From be2ad6596d2b70a49d0ccc12c01b227109547399 Mon Sep 17 00:00:00 2001 From: Rick Winter Date: Tue, 7 Feb 2023 17:33:07 -0800 Subject: [PATCH 001/107] Add azcore aasets.json --- sdk/azcore/assets.json | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 sdk/azcore/assets.json diff --git a/sdk/azcore/assets.json b/sdk/azcore/assets.json new file mode 100644 index 000000000000..55043f3348b0 --- /dev/null +++ b/sdk/azcore/assets.json @@ -0,0 +1,6 @@ +{ + "AssetsRepo": "Azure/azure-sdk-assets", + "AssetsRepoPrefixPath": "go", + "TagPrefix": "go/azcore", + "Tag": "" +} From f09340a4bb79f3f95da70683d4432055ed9d7d7e Mon Sep 17 00:00:00 2001 From: Rick Winter Date: Tue, 7 Feb 2023 17:34:33 -0800 Subject: [PATCH 002/107] Move azidentity recordings --- sdk/azidentity/assets.json | 6 + ...tClientCertificateCredentialADFS_Live.json | 145 --------- ...CertificateCredential_InvalidCertLive.json | 218 ------------- .../PEM.json | 213 ------------- .../PKCS12.json | 213 ------------- .../SNI.json | 213 ------------- .../instance_discovery_disabled.json | 136 -------- ...tClientCertificateCredential_Regional.json | 120 ------- .../TestClientSecretCredentialADFS_Live.json | 145 --------- ...entSecretCredential_InvalidSecretLive.json | 218 ------------- .../default_options.json | 213 ------------- .../instance_discovery_disabled.json | 138 -------- .../TestDeviceCodeCredentialADFS_Live.json | 183 ----------- .../default_options.json | 296 ----------------- .../instance_discovery_disabled.json | 179 ----------- .../optional_tenant.json | 299 ------------------ ...onmentCredentialADFS_ClientSecretLive.json | 145 --------- ...onmentCredentialADFS_UserPasswordLive.json | 149 --------- .../default_options.json | 213 ------------- .../instance_discovery_disabled.json | 136 -------- ...entCredential_InvalidClientSecretLive.json | 218 ------------- ...ronmentCredential_InvalidPasswordLive.json | 255 --------------- .../default_options.json | 255 --------------- .../instance_discovery_disabled.json | 180 ----------- ...edIdentityCredential_IMDSClientIDLive.json | 33 -- ...estManagedIdentityCredential_IMDSLive.json | 33 -- ...IdentityCredential_IMDSResourceIDLive.json | 33 -- ...stUsernamePasswordCredentialADFS_Live.json | 149 --------- ...asswordCredential_InvalidPasswordLive.json | 255 --------------- .../default_options.json | 255 --------------- .../instance_discovery_disabled.json | 177 ----------- 31 files changed, 6 insertions(+), 5415 deletions(-) create mode 100644 sdk/azidentity/assets.json delete mode 100644 sdk/azidentity/testdata/recordings/TestClientCertificateCredentialADFS_Live.json delete mode 100644 sdk/azidentity/testdata/recordings/TestClientCertificateCredential_InvalidCertLive.json delete mode 100644 sdk/azidentity/testdata/recordings/TestClientCertificateCredential_Live/PEM.json delete mode 100644 sdk/azidentity/testdata/recordings/TestClientCertificateCredential_Live/PKCS12.json delete mode 100644 sdk/azidentity/testdata/recordings/TestClientCertificateCredential_Live/SNI.json delete mode 100644 sdk/azidentity/testdata/recordings/TestClientCertificateCredential_Live/instance_discovery_disabled.json delete mode 100644 sdk/azidentity/testdata/recordings/TestClientCertificateCredential_Regional.json delete mode 100644 sdk/azidentity/testdata/recordings/TestClientSecretCredentialADFS_Live.json delete mode 100644 sdk/azidentity/testdata/recordings/TestClientSecretCredential_InvalidSecretLive.json delete mode 100644 sdk/azidentity/testdata/recordings/TestClientSecretCredential_Live/default_options.json delete mode 100644 sdk/azidentity/testdata/recordings/TestClientSecretCredential_Live/instance_discovery_disabled.json delete mode 100644 sdk/azidentity/testdata/recordings/TestDeviceCodeCredentialADFS_Live.json delete mode 100644 sdk/azidentity/testdata/recordings/TestDeviceCodeCredential_Live/default_options.json delete mode 100644 sdk/azidentity/testdata/recordings/TestDeviceCodeCredential_Live/instance_discovery_disabled.json delete mode 100644 sdk/azidentity/testdata/recordings/TestDeviceCodeCredential_Live/optional_tenant.json delete mode 100644 sdk/azidentity/testdata/recordings/TestEnvironmentCredentialADFS_ClientSecretLive.json delete mode 100644 sdk/azidentity/testdata/recordings/TestEnvironmentCredentialADFS_UserPasswordLive.json delete mode 100644 sdk/azidentity/testdata/recordings/TestEnvironmentCredential_ClientSecretLive/default_options.json delete mode 100644 sdk/azidentity/testdata/recordings/TestEnvironmentCredential_ClientSecretLive/instance_discovery_disabled.json delete mode 100644 sdk/azidentity/testdata/recordings/TestEnvironmentCredential_InvalidClientSecretLive.json delete mode 100644 sdk/azidentity/testdata/recordings/TestEnvironmentCredential_InvalidPasswordLive.json delete mode 100644 sdk/azidentity/testdata/recordings/TestEnvironmentCredential_UserPasswordLive/default_options.json delete mode 100644 sdk/azidentity/testdata/recordings/TestEnvironmentCredential_UserPasswordLive/instance_discovery_disabled.json delete mode 100644 sdk/azidentity/testdata/recordings/TestManagedIdentityCredential_IMDSClientIDLive.json delete mode 100644 sdk/azidentity/testdata/recordings/TestManagedIdentityCredential_IMDSLive.json delete mode 100644 sdk/azidentity/testdata/recordings/TestManagedIdentityCredential_IMDSResourceIDLive.json delete mode 100644 sdk/azidentity/testdata/recordings/TestUsernamePasswordCredentialADFS_Live.json delete mode 100644 sdk/azidentity/testdata/recordings/TestUsernamePasswordCredential_InvalidPasswordLive.json delete mode 100644 sdk/azidentity/testdata/recordings/TestUsernamePasswordCredential_Live/default_options.json delete mode 100644 sdk/azidentity/testdata/recordings/TestUsernamePasswordCredential_Live/instance_discovery_disabled.json diff --git a/sdk/azidentity/assets.json b/sdk/azidentity/assets.json new file mode 100644 index 000000000000..495d0a2db8a3 --- /dev/null +++ b/sdk/azidentity/assets.json @@ -0,0 +1,6 @@ +{ + "AssetsRepo": "Azure/azure-sdk-assets", + "AssetsRepoPrefixPath": "go", + "TagPrefix": "go/azidentity", + "Tag": "go/azidentity_ad45cd3446" +} diff --git a/sdk/azidentity/testdata/recordings/TestClientCertificateCredentialADFS_Live.json b/sdk/azidentity/testdata/recordings/TestClientCertificateCredentialADFS_Live.json deleted file mode 100644 index 5f9e74524d22..000000000000 --- a/sdk/azidentity/testdata/recordings/TestClientCertificateCredentialADFS_Live.json +++ /dev/null @@ -1,145 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://fake.adfs.local/adfs/.well-known/openid-configuration", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v1.3.0-beta.3 (go1.19.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Content-Length": "1986", - "Content-Security-Policy": "default-src \u0027self\u0027 \u0027unsafe-inline\u0027 \u0027unsafe-eval\u0027; img-src \u0027self\u0027 data:;", - "Content-Type": "application/json; charset=UTF-8", - "Date": "Mon, 30 Jan 2023 17:38:54 GMT", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age = 31536000", - "X-Content-Type-Options": "nosniff", - "X-XSS-Protection": "1; mode=block" - }, - "ResponseBody": { - "issuer": "https://fake.adfs.local/adfs/eae0822e-4c1b-41cf-8d9e-6bddf440029c/", - "authorization_endpoint": "https://fake.adfs.local/adfs/oauth2/authorize/", - "token_endpoint": "https://fake.adfs.local/adfs/oauth2/token/", - "jwks_uri": "https://fake.adfs.local/adfs/discovery/keys", - "token_endpoint_auth_methods_supported": [ - "client_secret_post", - "client_secret_basic", - "private_key_jwt", - "windows_client_authentication" - ], - "response_types_supported": [ - "code", - "id_token", - "code id_token", - "id_token token", - "code token", - "code id_token token" - ], - "response_modes_supported": [ - "query", - "fragment", - "form_post" - ], - "grant_types_supported": [ - "authorization_code", - "refresh_token", - "client_credentials", - "urn:ietf:params:oauth:grant-type:jwt-bearer", - "implicit", - "password", - "srv_challenge", - "urn:ietf:params:oauth:grant-type:device_code", - "device_code" - ], - "subject_types_supported": [ - "pairwise" - ], - "scopes_supported": [ - "aza", - "logon_cert", - "profile", - ".default", - "vpn_cert", - "email", - "openid", - "allatclaims", - "user_impersonation", - "winhello_cert" - ], - "id_token_signing_alg_values_supported": [ - "RS256" - ], - "token_endpoint_auth_signing_alg_values_supported": [ - "RS256" - ], - "access_token_issuer": "https://fake.adfs.local/adfs/eae0822e-4c1b-41cf-8d9e-6bddf440029c/", - "claims_supported": [ - "aud", - "iss", - "iat", - "exp", - "auth_time", - "nonce", - "at_hash", - "c_hash", - "sub", - "upn", - "unique_name", - "pwd_url", - "pwd_exp", - "mfa_auth_time", - "sid", - "nbf" - ], - "microsoft_multi_refresh_token": true, - "userinfo_endpoint": "https://fake.adfs.local/adfs/userinfo", - "capabilities": [ - "kdf_ver2" - ], - "end_session_endpoint": "https://fake.adfs.local/adfs/oauth2/logout", - "as_access_token_token_binding_supported": false, - "as_refresh_token_token_binding_supported": false, - "resource_access_token_token_binding_supported": false, - "op_id_token_token_binding_supported": false, - "rp_id_token_token_binding_supported": false, - "frontchannel_logout_supported": true, - "frontchannel_logout_session_supported": true, - "device_authorization_endpoint": "https://fake.adfs.local/adfs/oauth2/devicecode" - } - }, - { - "RequestUri": "https://fake.adfs.local/adfs/oauth2/token/", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Content-Length": "2", - "Content-Type": "application/x-www-form-urlencoded; charset=utf-8", - "User-Agent": "azsdk-go-azidentity/v1.3.0-beta.3 (go1.19.3; Windows_NT)" - }, - "RequestBody": {}, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store", - "Content-Length": "136", - "Content-Security-Policy": "default-src \u0027self\u0027 \u0027unsafe-inline\u0027 \u0027unsafe-eval\u0027; img-src \u0027self\u0027 data:;", - "Content-Type": "application/json; charset=UTF-8", - "Date": "Mon, 30 Jan 2023 17:38:54 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age = 31536000", - "X-Content-Type-Options": "nosniff", - "X-XSS-Protection": "1; mode=block" - }, - "ResponseBody": { - "access_token": "redacted", - "token_type": "bearer", - "expires_in": 3600, - "scope": "profile openid https://fake.adfs.local/fake-scope/.default" - } - } - ], - "Variables": {} -} diff --git a/sdk/azidentity/testdata/recordings/TestClientCertificateCredential_InvalidCertLive.json b/sdk/azidentity/testdata/recordings/TestClientCertificateCredential_InvalidCertLive.json deleted file mode 100644 index eed517e8ef6d..000000000000 --- a/sdk/azidentity/testdata/recordings/TestClientCertificateCredential_InvalidCertLive.json +++ /dev/null @@ -1,218 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https%3A%2F%2Flogin.microsoftonline.com%2Ffake-tenant%2Foauth2%2Fv2.0%2Fauthorize", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Methods": "GET, OPTIONS", - "Access-Control-Allow-Origin": "*", - "Cache-Control": "max-age=86400, private", - "Content-Length": "955", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:10 GMT", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMAwAAAAUigdkOAAAA; expires=Wed, 23-Feb-2022 22:41:11 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12381.20 - EUS ProdSlices", - "x-ms-request-id": "237378e3-1140-4884-b9e0-4637fb786300" - }, - "ResponseBody": { - "tenant_discovery_endpoint": "https://login.microsoftonline.com/fake-tenant/v2.0/.well-known/openid-configuration", - "api-version": "1.1", - "metadata": [ - { - "preferred_network": "login.microsoftonline.com", - "preferred_cache": "login.windows.net", - "aliases": [ - "login.microsoftonline.com", - "login.windows.net", - "login.microsoft.com", - "sts.windows.net" - ] - }, - { - "preferred_network": "login.partner.microsoftonline.cn", - "preferred_cache": "login.partner.microsoftonline.cn", - "aliases": [ - "login.partner.microsoftonline.cn", - "login.chinacloudapi.cn" - ] - }, - { - "preferred_network": "login.microsoftonline.de", - "preferred_cache": "login.microsoftonline.de", - "aliases": [ - "login.microsoftonline.de" - ] - }, - { - "preferred_network": "login.microsoftonline.us", - "preferred_cache": "login.microsoftonline.us", - "aliases": [ - "login.microsoftonline.us", - "login.usgovcloudapi.net" - ] - }, - { - "preferred_network": "login-us.microsoftonline.com", - "preferred_cache": "login-us.microsoftonline.com", - "aliases": [ - "login-us.microsoftonline.com" - ] - } - ] - } - }, - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/v2.0/.well-known/openid-configuration", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Methods": "GET, OPTIONS", - "Access-Control-Allow-Origin": "*", - "Cache-Control": "max-age=86400, private", - "Content-Length": "1578", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:10 GMT", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMAwAAAAUigdkOAAAA; expires=Wed, 23-Feb-2022 22:41:11 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12381.20 - WUS2 ProdSlices", - "x-ms-request-id": "407dfcf3-37e2-4813-951c-9e18168b0700" - }, - "ResponseBody": { - "token_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "token_endpoint_auth_methods_supported": [ - "client_secret_post", - "private_key_jwt", - "client_secret_basic" - ], - "jwks_uri": "https://login.microsoftonline.com/fake-tenant/discovery/v2.0/keys", - "response_modes_supported": [ - "query", - "fragment", - "form_post" - ], - "subject_types_supported": [ - "pairwise" - ], - "id_token_signing_alg_values_supported": [ - "RS256" - ], - "response_types_supported": [ - "code", - "id_token", - "code id_token", - "id_token token" - ], - "scopes_supported": [ - "openid", - "profile", - "email", - "offline_access" - ], - "issuer": "https://login.microsoftonline.com/fake-tenant/v2.0", - "request_uri_parameter_supported": false, - "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", - "authorization_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/authorize", - "device_authorization_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/devicecode", - "http_logout_supported": true, - "frontchannel_logout_supported": true, - "end_session_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/logout", - "claims_supported": [ - "sub", - "iss", - "cloud_instance_name", - "cloud_instance_host_name", - "cloud_graph_host_name", - "msgraph_host", - "aud", - "exp", - "iat", - "auth_time", - "acr", - "nonce", - "preferred_username", - "name", - "tid", - "ver", - "at_hash", - "c_hash", - "email" - ], - "kerberos_endpoint": "https://login.microsoftonline.com/fake-tenant/kerberos", - "tenant_region_scope": "NA", - "cloud_instance_name": "microsoftonline.com", - "cloud_graph_host_name": "graph.windows.net", - "msgraph_host": "graph.microsoft.com", - "rbac_url": "https://pas.windows.net" - } - }, - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "RequestMethod": "POST", - "RequestHeaders": { - ":method": "POST", - "Accept-Encoding": "gzip", - "Content-Length": "2", - "Content-Type": "application/x-www-form-urlencoded; charset=utf-8", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": {}, - "StatusCode": 401, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Length": "1325", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:10 GMT", - "Expires": "-1", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Pragma": "no-cache", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMBAAAAAUigdkOAAAA; expires=Wed, 23-Feb-2022 22:41:11 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - EUS ProdSlices", - "x-ms-request-id": "fc51a374-1d45-4b16-ac30-410a6352fb00" - }, - "ResponseBody": { - "error": "invalid_client", - "error_description": "AADSTS700027: Client assertion contains an invalid signature. [Reason - The key was not found., Thumbprint of key used by client: \u00278CA6895C58FD5C9AEED13121F784629BE0261977\u0027, Please visit the Azure Portal, Graph Explorer or directly use MS Graph to see configured keys for app Id \u002726790ce1-d05c-4de7-ba73-51837152f0bc\u0027. Review the documentation at https://docs.microsoft.com/en-us/graph/deployments to determine the corresponding service endpoint and https://docs.microsoft.com/en-us/graph/api/application-get?view=graph-rest-1.0\u0026tabs=http to build a query request URL, such as \u0027https://graph.microsoft.com/beta/applications/26790ce1-d05c-4de7-ba73-51837152f0bc\u0027]. Alternatively, SNI may be configured on the app. Please ensure that client assertion is being sent with the x5c claim in the JWT header using MSAL\u0027s WithSendX5C() method so that Azure Active Directory can validate the certificate being used.\r\nTrace ID: fc51a374-1d45-4b16-ac30-410a6352fb00\r\nCorrelation ID: 6c340c8c-14c7-4197-bd71-f510287fba40\r\nTimestamp: 2022-01-24 22:41:11Z", - "error_codes": [ - 700027 - ], - "timestamp": "2022-01-24 22:41:11Z", - "trace_id": "fc51a374-1d45-4b16-ac30-410a6352fb00", - "correlation_id": "6c340c8c-14c7-4197-bd71-f510287fba40", - "error_uri": "https://login.microsoftonline.com/error?code=700027" - } - } - ], - "Variables": {} -} diff --git a/sdk/azidentity/testdata/recordings/TestClientCertificateCredential_Live/PEM.json b/sdk/azidentity/testdata/recordings/TestClientCertificateCredential_Live/PEM.json deleted file mode 100644 index cd4c2de2c790..000000000000 --- a/sdk/azidentity/testdata/recordings/TestClientCertificateCredential_Live/PEM.json +++ /dev/null @@ -1,213 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https%3A%2F%2Flogin.microsoftonline.com%2Ffake-tenant%2Foauth2%2Fv2.0%2Fauthorize", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Methods": "GET, OPTIONS", - "Access-Control-Allow-Origin": "*", - "Cache-Control": "max-age=86400, private", - "Content-Length": "955", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:09 GMT", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwA; expires=Wed, 23-Feb-2022 22:41:10 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - SCUS ProdSlices", - "x-ms-request-id": "a71bb559-a871-4f92-839d-f5f2a88e7500" - }, - "ResponseBody": { - "tenant_discovery_endpoint": "https://login.microsoftonline.com/fake-tenant/v2.0/.well-known/openid-configuration", - "api-version": "1.1", - "metadata": [ - { - "preferred_network": "login.microsoftonline.com", - "preferred_cache": "login.windows.net", - "aliases": [ - "login.microsoftonline.com", - "login.windows.net", - "login.microsoft.com", - "sts.windows.net" - ] - }, - { - "preferred_network": "login.partner.microsoftonline.cn", - "preferred_cache": "login.partner.microsoftonline.cn", - "aliases": [ - "login.partner.microsoftonline.cn", - "login.chinacloudapi.cn" - ] - }, - { - "preferred_network": "login.microsoftonline.de", - "preferred_cache": "login.microsoftonline.de", - "aliases": [ - "login.microsoftonline.de" - ] - }, - { - "preferred_network": "login.microsoftonline.us", - "preferred_cache": "login.microsoftonline.us", - "aliases": [ - "login.microsoftonline.us", - "login.usgovcloudapi.net" - ] - }, - { - "preferred_network": "login-us.microsoftonline.com", - "preferred_cache": "login-us.microsoftonline.com", - "aliases": [ - "login-us.microsoftonline.com" - ] - } - ] - } - }, - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/v2.0/.well-known/openid-configuration", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Methods": "GET, OPTIONS", - "Access-Control-Allow-Origin": "*", - "Cache-Control": "max-age=86400, private", - "Content-Length": "1578", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:09 GMT", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwA; expires=Wed, 23-Feb-2022 22:41:10 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12381.20 - WUS2 ProdSlices", - "x-ms-request-id": "407dfcf3-37e2-4813-951c-9e18e58a0700" - }, - "ResponseBody": { - "token_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "token_endpoint_auth_methods_supported": [ - "client_secret_post", - "private_key_jwt", - "client_secret_basic" - ], - "jwks_uri": "https://login.microsoftonline.com/fake-tenant/discovery/v2.0/keys", - "response_modes_supported": [ - "query", - "fragment", - "form_post" - ], - "subject_types_supported": [ - "pairwise" - ], - "id_token_signing_alg_values_supported": [ - "RS256" - ], - "response_types_supported": [ - "code", - "id_token", - "code id_token", - "id_token token" - ], - "scopes_supported": [ - "openid", - "profile", - "email", - "offline_access" - ], - "issuer": "https://login.microsoftonline.com/fake-tenant/v2.0", - "request_uri_parameter_supported": false, - "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", - "authorization_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/authorize", - "device_authorization_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/devicecode", - "http_logout_supported": true, - "frontchannel_logout_supported": true, - "end_session_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/logout", - "claims_supported": [ - "sub", - "iss", - "cloud_instance_name", - "cloud_instance_host_name", - "cloud_graph_host_name", - "msgraph_host", - "aud", - "exp", - "iat", - "auth_time", - "acr", - "nonce", - "preferred_username", - "name", - "tid", - "ver", - "at_hash", - "c_hash", - "email" - ], - "kerberos_endpoint": "https://login.microsoftonline.com/fake-tenant/kerberos", - "tenant_region_scope": "NA", - "cloud_instance_name": "microsoftonline.com", - "cloud_graph_host_name": "graph.windows.net", - "msgraph_host": "graph.microsoft.com", - "rbac_url": "https://pas.windows.net" - } - }, - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "RequestMethod": "POST", - "RequestHeaders": { - ":method": "POST", - "Accept-Encoding": "gzip", - "Content-Length": "2", - "Content-Type": "application/x-www-form-urlencoded; charset=utf-8", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": {}, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Length": "89", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:09 GMT", - "Expires": "-1", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Pragma": "no-cache", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMAQAAAAUigdkOAAAA; expires=Wed, 23-Feb-2022 22:41:10 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - SCUS ProdSlices", - "x-ms-request-id": "8cba3351-104c-46eb-a7f8-cb7b6747d800" - }, - "ResponseBody": { - "token_type": "Bearer", - "expires_in": 3599, - "ext_expires_in": 3599, - "access_token": "redacted" - } - } - ], - "Variables": {} -} diff --git a/sdk/azidentity/testdata/recordings/TestClientCertificateCredential_Live/PKCS12.json b/sdk/azidentity/testdata/recordings/TestClientCertificateCredential_Live/PKCS12.json deleted file mode 100644 index 928a5286fb8a..000000000000 --- a/sdk/azidentity/testdata/recordings/TestClientCertificateCredential_Live/PKCS12.json +++ /dev/null @@ -1,213 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https%3A%2F%2Flogin.microsoftonline.com%2Ffake-tenant%2Foauth2%2Fv2.0%2Fauthorize", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Methods": "GET, OPTIONS", - "Access-Control-Allow-Origin": "*", - "Cache-Control": "max-age=86400, private", - "Content-Length": "955", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:09 GMT", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMAQAAAAUigdkOAAAA; expires=Wed, 23-Feb-2022 22:41:10 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - SCUS ProdSlices", - "x-ms-request-id": "c64b679b-de6c-4f79-b2da-637ac5a71e01" - }, - "ResponseBody": { - "tenant_discovery_endpoint": "https://login.microsoftonline.com/fake-tenant/v2.0/.well-known/openid-configuration", - "api-version": "1.1", - "metadata": [ - { - "preferred_network": "login.microsoftonline.com", - "preferred_cache": "login.windows.net", - "aliases": [ - "login.microsoftonline.com", - "login.windows.net", - "login.microsoft.com", - "sts.windows.net" - ] - }, - { - "preferred_network": "login.partner.microsoftonline.cn", - "preferred_cache": "login.partner.microsoftonline.cn", - "aliases": [ - "login.partner.microsoftonline.cn", - "login.chinacloudapi.cn" - ] - }, - { - "preferred_network": "login.microsoftonline.de", - "preferred_cache": "login.microsoftonline.de", - "aliases": [ - "login.microsoftonline.de" - ] - }, - { - "preferred_network": "login.microsoftonline.us", - "preferred_cache": "login.microsoftonline.us", - "aliases": [ - "login.microsoftonline.us", - "login.usgovcloudapi.net" - ] - }, - { - "preferred_network": "login-us.microsoftonline.com", - "preferred_cache": "login-us.microsoftonline.com", - "aliases": [ - "login-us.microsoftonline.com" - ] - } - ] - } - }, - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/v2.0/.well-known/openid-configuration", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Methods": "GET, OPTIONS", - "Access-Control-Allow-Origin": "*", - "Cache-Control": "max-age=86400, private", - "Content-Length": "1578", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:09 GMT", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMAQAAAAUigdkOAAAA; expires=Wed, 23-Feb-2022 22:41:10 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - EUS ProdSlices", - "x-ms-request-id": "fc51a374-1d45-4b16-ac30-410a2f52fb00" - }, - "ResponseBody": { - "token_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "token_endpoint_auth_methods_supported": [ - "client_secret_post", - "private_key_jwt", - "client_secret_basic" - ], - "jwks_uri": "https://login.microsoftonline.com/fake-tenant/discovery/v2.0/keys", - "response_modes_supported": [ - "query", - "fragment", - "form_post" - ], - "subject_types_supported": [ - "pairwise" - ], - "id_token_signing_alg_values_supported": [ - "RS256" - ], - "response_types_supported": [ - "code", - "id_token", - "code id_token", - "id_token token" - ], - "scopes_supported": [ - "openid", - "profile", - "email", - "offline_access" - ], - "issuer": "https://login.microsoftonline.com/fake-tenant/v2.0", - "request_uri_parameter_supported": false, - "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", - "authorization_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/authorize", - "device_authorization_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/devicecode", - "http_logout_supported": true, - "frontchannel_logout_supported": true, - "end_session_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/logout", - "claims_supported": [ - "sub", - "iss", - "cloud_instance_name", - "cloud_instance_host_name", - "cloud_graph_host_name", - "msgraph_host", - "aud", - "exp", - "iat", - "auth_time", - "acr", - "nonce", - "preferred_username", - "name", - "tid", - "ver", - "at_hash", - "c_hash", - "email" - ], - "kerberos_endpoint": "https://login.microsoftonline.com/fake-tenant/kerberos", - "tenant_region_scope": "NA", - "cloud_instance_name": "microsoftonline.com", - "cloud_graph_host_name": "graph.windows.net", - "msgraph_host": "graph.microsoft.com", - "rbac_url": "https://pas.windows.net" - } - }, - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "RequestMethod": "POST", - "RequestHeaders": { - ":method": "POST", - "Accept-Encoding": "gzip", - "Content-Length": "2", - "Content-Type": "application/x-www-form-urlencoded; charset=utf-8", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": {}, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Length": "89", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:09 GMT", - "Expires": "-1", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Pragma": "no-cache", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMAgAAAAUigdkOAAAA; expires=Wed, 23-Feb-2022 22:41:10 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - SCUS ProdSlices", - "x-ms-request-id": "7e3f8ad4-ea8b-4ee0-b49e-2844160ed300" - }, - "ResponseBody": { - "token_type": "Bearer", - "expires_in": 3599, - "ext_expires_in": 3599, - "access_token": "redacted" - } - } - ], - "Variables": {} -} diff --git a/sdk/azidentity/testdata/recordings/TestClientCertificateCredential_Live/SNI.json b/sdk/azidentity/testdata/recordings/TestClientCertificateCredential_Live/SNI.json deleted file mode 100644 index 00923d2d85ce..000000000000 --- a/sdk/azidentity/testdata/recordings/TestClientCertificateCredential_Live/SNI.json +++ /dev/null @@ -1,213 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https%3A%2F%2Flogin.microsoftonline.com%2Ffake-tenant%2Foauth2%2Fv2.0%2Fauthorize", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Methods": "GET, OPTIONS", - "Access-Control-Allow-Origin": "*", - "Cache-Control": "max-age=86400, private", - "Content-Length": "955", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:10 GMT", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMAgAAAAUigdkOAAAA; expires=Wed, 23-Feb-2022 22:41:10 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - EUS ProdSlices", - "x-ms-request-id": "69990d5e-d115-44af-92d0-8728ff0e8800" - }, - "ResponseBody": { - "tenant_discovery_endpoint": "https://login.microsoftonline.com/fake-tenant/v2.0/.well-known/openid-configuration", - "api-version": "1.1", - "metadata": [ - { - "preferred_network": "login.microsoftonline.com", - "preferred_cache": "login.windows.net", - "aliases": [ - "login.microsoftonline.com", - "login.windows.net", - "login.microsoft.com", - "sts.windows.net" - ] - }, - { - "preferred_network": "login.partner.microsoftonline.cn", - "preferred_cache": "login.partner.microsoftonline.cn", - "aliases": [ - "login.partner.microsoftonline.cn", - "login.chinacloudapi.cn" - ] - }, - { - "preferred_network": "login.microsoftonline.de", - "preferred_cache": "login.microsoftonline.de", - "aliases": [ - "login.microsoftonline.de" - ] - }, - { - "preferred_network": "login.microsoftonline.us", - "preferred_cache": "login.microsoftonline.us", - "aliases": [ - "login.microsoftonline.us", - "login.usgovcloudapi.net" - ] - }, - { - "preferred_network": "login-us.microsoftonline.com", - "preferred_cache": "login-us.microsoftonline.com", - "aliases": [ - "login-us.microsoftonline.com" - ] - } - ] - } - }, - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/v2.0/.well-known/openid-configuration", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Methods": "GET, OPTIONS", - "Access-Control-Allow-Origin": "*", - "Cache-Control": "max-age=86400, private", - "Content-Length": "1578", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:10 GMT", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMAgAAAAUigdkOAAAA; expires=Wed, 23-Feb-2022 22:41:11 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - NCUS ProdSlices", - "x-ms-request-id": "61c77800-294d-4552-af47-859469fcae00" - }, - "ResponseBody": { - "token_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "token_endpoint_auth_methods_supported": [ - "client_secret_post", - "private_key_jwt", - "client_secret_basic" - ], - "jwks_uri": "https://login.microsoftonline.com/fake-tenant/discovery/v2.0/keys", - "response_modes_supported": [ - "query", - "fragment", - "form_post" - ], - "subject_types_supported": [ - "pairwise" - ], - "id_token_signing_alg_values_supported": [ - "RS256" - ], - "response_types_supported": [ - "code", - "id_token", - "code id_token", - "id_token token" - ], - "scopes_supported": [ - "openid", - "profile", - "email", - "offline_access" - ], - "issuer": "https://login.microsoftonline.com/fake-tenant/v2.0", - "request_uri_parameter_supported": false, - "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", - "authorization_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/authorize", - "device_authorization_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/devicecode", - "http_logout_supported": true, - "frontchannel_logout_supported": true, - "end_session_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/logout", - "claims_supported": [ - "sub", - "iss", - "cloud_instance_name", - "cloud_instance_host_name", - "cloud_graph_host_name", - "msgraph_host", - "aud", - "exp", - "iat", - "auth_time", - "acr", - "nonce", - "preferred_username", - "name", - "tid", - "ver", - "at_hash", - "c_hash", - "email" - ], - "kerberos_endpoint": "https://login.microsoftonline.com/fake-tenant/kerberos", - "tenant_region_scope": "NA", - "cloud_instance_name": "microsoftonline.com", - "cloud_graph_host_name": "graph.windows.net", - "msgraph_host": "graph.microsoft.com", - "rbac_url": "https://pas.windows.net" - } - }, - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "RequestMethod": "POST", - "RequestHeaders": { - ":method": "POST", - "Accept-Encoding": "gzip", - "Content-Length": "2", - "Content-Type": "application/x-www-form-urlencoded; charset=utf-8", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": {}, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Length": "89", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:10 GMT", - "Expires": "-1", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Pragma": "no-cache", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMAwAAAAUigdkOAAAA; expires=Wed, 23-Feb-2022 22:41:11 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - SCUS ProdSlices", - "x-ms-request-id": "8cba3351-104c-46eb-a7f8-cb7b8b47d800" - }, - "ResponseBody": { - "token_type": "Bearer", - "expires_in": 3599, - "ext_expires_in": 3599, - "access_token": "redacted" - } - } - ], - "Variables": {} -} diff --git a/sdk/azidentity/testdata/recordings/TestClientCertificateCredential_Live/instance_discovery_disabled.json b/sdk/azidentity/testdata/recordings/TestClientCertificateCredential_Live/instance_discovery_disabled.json deleted file mode 100644 index 50b5ff3253b9..000000000000 --- a/sdk/azidentity/testdata/recordings/TestClientCertificateCredential_Live/instance_discovery_disabled.json +++ /dev/null @@ -1,136 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/v2.0/.well-known/openid-configuration", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v1.3.0-beta.3 (go1.19.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Methods": "GET, OPTIONS", - "Access-Control-Allow-Origin": "*", - "Cache-Control": "max-age=86400, private", - "Content-Length": "1578", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 27 Jan 2023 00:33:29 GMT", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Set-Cookie": [ - "fpc=AtldTtlEjTNPhKsSvKLZB72uN0zNAgAAAKkSZdsOAAAA; expires=Sun, 26-Feb-2023 00:33:30 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.14357.8 - EUS ProdSlices", - "x-ms-request-id": "cfe15df3-7e53-4953-9d2a-4436347f9800", - "X-XSS-Protection": "0" - }, - "ResponseBody": { - "token_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "token_endpoint_auth_methods_supported": [ - "client_secret_post", - "private_key_jwt", - "client_secret_basic" - ], - "jwks_uri": "https://login.microsoftonline.com/fake-tenant/discovery/v2.0/keys", - "response_modes_supported": [ - "query", - "fragment", - "form_post" - ], - "subject_types_supported": [ - "pairwise" - ], - "id_token_signing_alg_values_supported": [ - "RS256" - ], - "response_types_supported": [ - "code", - "id_token", - "code id_token", - "id_token token" - ], - "scopes_supported": [ - "openid", - "profile", - "email", - "offline_access" - ], - "issuer": "https://login.microsoftonline.com/fake-tenant/v2.0", - "request_uri_parameter_supported": false, - "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", - "authorization_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/authorize", - "device_authorization_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/devicecode", - "http_logout_supported": true, - "frontchannel_logout_supported": true, - "end_session_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/logout", - "claims_supported": [ - "sub", - "iss", - "cloud_instance_name", - "cloud_instance_host_name", - "cloud_graph_host_name", - "msgraph_host", - "aud", - "exp", - "iat", - "auth_time", - "acr", - "nonce", - "preferred_username", - "name", - "tid", - "ver", - "at_hash", - "c_hash", - "email" - ], - "kerberos_endpoint": "https://login.microsoftonline.com/fake-tenant/kerberos", - "tenant_region_scope": "NA", - "cloud_instance_name": "microsoftonline.com", - "cloud_graph_host_name": "graph.windows.net", - "msgraph_host": "graph.microsoft.com", - "rbac_url": "https://pas.windows.net" - } - }, - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Content-Length": "2", - "Content-Type": "application/x-www-form-urlencoded; charset=utf-8", - "User-Agent": "azsdk-go-azidentity/v1.3.0-beta.3 (go1.19.3; Windows_NT)" - }, - "RequestBody": {}, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Length": "89", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 27 Jan 2023 00:33:29 GMT", - "Expires": "-1", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Pragma": "no-cache", - "Set-Cookie": [ - "fpc=AtldTtlEjTNPhKsSvKLZB72uN0zNAwAAAKkSZdsOAAAA; expires=Sun, 26-Feb-2023 00:33:30 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.14357.8 - NCUS ProdSlices", - "x-ms-request-id": "a6552987-aa11-4b7f-bc1f-d828539f6f01", - "X-XSS-Protection": "0" - }, - "ResponseBody": { - "token_type": "Bearer", - "expires_in": 3599, - "ext_expires_in": 3599, - "access_token": "redacted" - } - } - ], - "Variables": {} -} diff --git a/sdk/azidentity/testdata/recordings/TestClientCertificateCredential_Regional.json b/sdk/azidentity/testdata/recordings/TestClientCertificateCredential_Regional.json deleted file mode 100644 index b0f03490f2c0..000000000000 --- a/sdk/azidentity/testdata/recordings/TestClientCertificateCredential_Regional.json +++ /dev/null @@ -1,120 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://westus2.r.login.microsoftonline.com/fake-tenant/v2.0/.well-known/openid-configuration", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v1.0.1 (go1.18.3; linux)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "max-age=86400, private", - "Content-Length": "1245", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 02 Jun 2022 16:27:23 GMT", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Set-Cookie": "fpc=Alg0CxoeRidMjWt5yaT51Z4; expires=Sat, 02-Jul-2022 16:27:24 GMT; path=/; secure; HttpOnly; SameSite=None", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12794.7 - WUS2 ProdSlices", - "x-ms-request-id": "19ce7346-9009-4435-9704-b567248f0802", - "X-XSS-Protection": "0" - }, - "ResponseBody": { - "token_endpoint": "https://westus2.r.login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "token_endpoint_auth_methods_supported": [ - "client_secret_post", - "private_key_jwt", - "client_secret_basic" - ], - "jwks_uri": "https://westus2.r.login.microsoftonline.com/fake-tenant/discovery/v2.0/keys", - "response_modes_supported": [ - "query", - "fragment", - "form_post" - ], - "subject_types_supported": [ - "pairwise" - ], - "id_token_signing_alg_values_supported": [ - "RS256" - ], - "response_types_supported": [ - "code", - "id_token", - "code id_token", - "id_token token" - ], - "scopes_supported": [ - "openid", - "profile", - "email", - "offline_access" - ], - "issuer": "https://login.microsoftonline.com/fake-tenant/v2.0", - "request_uri_parameter_supported": false, - "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", - "authorization_endpoint": "unsupported", - "claims_supported": [ - "sub", - "iss", - "cloud_instance_name", - "cloud_instance_host_name", - "cloud_graph_host_name", - "msgraph_host", - "aud", - "exp", - "iat", - "auth_time", - "acr", - "nonce", - "tid", - "ver", - "at_hash", - "c_hash" - ], - "tenant_region_scope": "NA", - "cloud_instance_name": "microsoftonline.com", - "cloud_graph_host_name": "graph.windows.net", - "msgraph_host": "graph.microsoft.com", - "rbac_url": "https://pas.windows.net" - } - }, - { - "RequestUri": "https://westus2.r.login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "RequestMethod": "POST", - "RequestHeaders": { - ":method": "POST", - "Accept-Encoding": "gzip", - "Content-Length": "2", - "Content-Type": "application/x-www-form-urlencoded; charset=utf-8", - "User-Agent": "azsdk-go-azidentity/v1.0.1 (go1.18.3; linux)" - }, - "RequestBody": {}, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Length": "89", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 02 Jun 2022 16:27:23 GMT", - "Expires": "-1", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Pragma": "no-cache", - "Set-Cookie": "fpc=Alg0CxoeRidMjWt5yaT51Z4; expires=Sat, 02-Jul-2022 16:27:24 GMT; path=/; secure; HttpOnly; SameSite=None", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12794.7 - WUS2 ProdSlices", - "x-ms-request-id": "e32199b8-7d70-45ec-b403-d1b39593e301", - "X-XSS-Protection": "0" - }, - "ResponseBody": { - "token_type": "Bearer", - "expires_in": 3599, - "ext_expires_in": 3599, - "access_token": "redacted" - } - } - ], - "Variables": {} - } diff --git a/sdk/azidentity/testdata/recordings/TestClientSecretCredentialADFS_Live.json b/sdk/azidentity/testdata/recordings/TestClientSecretCredentialADFS_Live.json deleted file mode 100644 index bbffff65f968..000000000000 --- a/sdk/azidentity/testdata/recordings/TestClientSecretCredentialADFS_Live.json +++ /dev/null @@ -1,145 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://fake.adfs.local/adfs/.well-known/openid-configuration", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v1.3.0-beta.3 (go1.19.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Content-Length": "1986", - "Content-Security-Policy": "default-src \u0027self\u0027 \u0027unsafe-inline\u0027 \u0027unsafe-eval\u0027; img-src \u0027self\u0027 data:;", - "Content-Type": "application/json; charset=UTF-8", - "Date": "Mon, 30 Jan 2023 17:29:01 GMT", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age = 31536000", - "X-Content-Type-Options": "nosniff", - "X-XSS-Protection": "1; mode=block" - }, - "ResponseBody": { - "issuer": "https://fake.adfs.local/adfs/eae0822e-4c1b-41cf-8d9e-6bddf440029c/", - "authorization_endpoint": "https://fake.adfs.local/adfs/oauth2/authorize/", - "token_endpoint": "https://fake.adfs.local/adfs/oauth2/token/", - "jwks_uri": "https://fake.adfs.local/adfs/discovery/keys", - "token_endpoint_auth_methods_supported": [ - "client_secret_post", - "client_secret_basic", - "private_key_jwt", - "windows_client_authentication" - ], - "response_types_supported": [ - "code", - "id_token", - "code id_token", - "id_token token", - "code token", - "code id_token token" - ], - "response_modes_supported": [ - "query", - "fragment", - "form_post" - ], - "grant_types_supported": [ - "authorization_code", - "refresh_token", - "client_credentials", - "urn:ietf:params:oauth:grant-type:jwt-bearer", - "implicit", - "password", - "srv_challenge", - "urn:ietf:params:oauth:grant-type:device_code", - "device_code" - ], - "subject_types_supported": [ - "pairwise" - ], - "scopes_supported": [ - "aza", - "logon_cert", - "profile", - ".default", - "vpn_cert", - "email", - "openid", - "allatclaims", - "user_impersonation", - "winhello_cert" - ], - "id_token_signing_alg_values_supported": [ - "RS256" - ], - "token_endpoint_auth_signing_alg_values_supported": [ - "RS256" - ], - "access_token_issuer": "https://fake.adfs.local/adfs/eae0822e-4c1b-41cf-8d9e-6bddf440029c/", - "claims_supported": [ - "aud", - "iss", - "iat", - "exp", - "auth_time", - "nonce", - "at_hash", - "c_hash", - "sub", - "upn", - "unique_name", - "pwd_url", - "pwd_exp", - "mfa_auth_time", - "sid", - "nbf" - ], - "microsoft_multi_refresh_token": true, - "userinfo_endpoint": "https://fake.adfs.local/adfs/userinfo", - "capabilities": [ - "kdf_ver2" - ], - "end_session_endpoint": "https://fake.adfs.local/adfs/oauth2/logout", - "as_access_token_token_binding_supported": false, - "as_refresh_token_token_binding_supported": false, - "resource_access_token_token_binding_supported": false, - "op_id_token_token_binding_supported": false, - "rp_id_token_token_binding_supported": false, - "frontchannel_logout_supported": true, - "frontchannel_logout_session_supported": true, - "device_authorization_endpoint": "https://fake.adfs.local/adfs/oauth2/devicecode" - } - }, - { - "RequestUri": "https://fake.adfs.local/adfs/oauth2/token/", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Content-Length": "2", - "Content-Type": "application/x-www-form-urlencoded; charset=utf-8", - "User-Agent": "azsdk-go-azidentity/v1.3.0-beta.3 (go1.19.3; Windows_NT)" - }, - "RequestBody": {}, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store", - "Content-Length": "136", - "Content-Security-Policy": "default-src \u0027self\u0027 \u0027unsafe-inline\u0027 \u0027unsafe-eval\u0027; img-src \u0027self\u0027 data:;", - "Content-Type": "application/json; charset=UTF-8", - "Date": "Mon, 30 Jan 2023 17:29:01 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age = 31536000", - "X-Content-Type-Options": "nosniff", - "X-XSS-Protection": "1; mode=block" - }, - "ResponseBody": { - "access_token": "redacted", - "token_type": "bearer", - "expires_in": 3600, - "scope": "profile openid https://fake.adfs.local/fake-scope/.default" - } - } - ], - "Variables": {} -} diff --git a/sdk/azidentity/testdata/recordings/TestClientSecretCredential_InvalidSecretLive.json b/sdk/azidentity/testdata/recordings/TestClientSecretCredential_InvalidSecretLive.json deleted file mode 100644 index e7169ab77a60..000000000000 --- a/sdk/azidentity/testdata/recordings/TestClientSecretCredential_InvalidSecretLive.json +++ /dev/null @@ -1,218 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https%3A%2F%2Flogin.microsoftonline.com%2Ffake-tenant%2Foauth2%2Fv2.0%2Fauthorize", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Methods": "GET, OPTIONS", - "Access-Control-Allow-Origin": "*", - "Cache-Control": "max-age=86400, private", - "Content-Length": "955", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:11 GMT", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMBQAAAAUigdkOAAAA; expires=Wed, 23-Feb-2022 22:41:12 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - SCUS ProdSlices", - "x-ms-request-id": "eb0308f8-8557-4220-b579-a574bb2e2001" - }, - "ResponseBody": { - "tenant_discovery_endpoint": "https://login.microsoftonline.com/fake-tenant/v2.0/.well-known/openid-configuration", - "api-version": "1.1", - "metadata": [ - { - "preferred_network": "login.microsoftonline.com", - "preferred_cache": "login.windows.net", - "aliases": [ - "login.microsoftonline.com", - "login.windows.net", - "login.microsoft.com", - "sts.windows.net" - ] - }, - { - "preferred_network": "login.partner.microsoftonline.cn", - "preferred_cache": "login.partner.microsoftonline.cn", - "aliases": [ - "login.partner.microsoftonline.cn", - "login.chinacloudapi.cn" - ] - }, - { - "preferred_network": "login.microsoftonline.de", - "preferred_cache": "login.microsoftonline.de", - "aliases": [ - "login.microsoftonline.de" - ] - }, - { - "preferred_network": "login.microsoftonline.us", - "preferred_cache": "login.microsoftonline.us", - "aliases": [ - "login.microsoftonline.us", - "login.usgovcloudapi.net" - ] - }, - { - "preferred_network": "login-us.microsoftonline.com", - "preferred_cache": "login-us.microsoftonline.com", - "aliases": [ - "login-us.microsoftonline.com" - ] - } - ] - } - }, - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/v2.0/.well-known/openid-configuration", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Methods": "GET, OPTIONS", - "Access-Control-Allow-Origin": "*", - "Cache-Control": "max-age=86400, private", - "Content-Length": "1578", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:11 GMT", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMBQAAAAUigdkOAAAA; expires=Wed, 23-Feb-2022 22:41:12 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12381.20 - WUS2 ProdSlices", - "x-ms-request-id": "2d1cb536-473f-4771-9d61-2c12aaa90700" - }, - "ResponseBody": { - "token_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "token_endpoint_auth_methods_supported": [ - "client_secret_post", - "private_key_jwt", - "client_secret_basic" - ], - "jwks_uri": "https://login.microsoftonline.com/fake-tenant/discovery/v2.0/keys", - "response_modes_supported": [ - "query", - "fragment", - "form_post" - ], - "subject_types_supported": [ - "pairwise" - ], - "id_token_signing_alg_values_supported": [ - "RS256" - ], - "response_types_supported": [ - "code", - "id_token", - "code id_token", - "id_token token" - ], - "scopes_supported": [ - "openid", - "profile", - "email", - "offline_access" - ], - "issuer": "https://login.microsoftonline.com/fake-tenant/v2.0", - "request_uri_parameter_supported": false, - "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", - "authorization_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/authorize", - "device_authorization_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/devicecode", - "http_logout_supported": true, - "frontchannel_logout_supported": true, - "end_session_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/logout", - "claims_supported": [ - "sub", - "iss", - "cloud_instance_name", - "cloud_instance_host_name", - "cloud_graph_host_name", - "msgraph_host", - "aud", - "exp", - "iat", - "auth_time", - "acr", - "nonce", - "preferred_username", - "name", - "tid", - "ver", - "at_hash", - "c_hash", - "email" - ], - "kerberos_endpoint": "https://login.microsoftonline.com/fake-tenant/kerberos", - "tenant_region_scope": "NA", - "cloud_instance_name": "microsoftonline.com", - "cloud_graph_host_name": "graph.windows.net", - "msgraph_host": "graph.microsoft.com", - "rbac_url": "https://pas.windows.net" - } - }, - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "RequestMethod": "POST", - "RequestHeaders": { - ":method": "POST", - "Accept-Encoding": "gzip", - "Content-Length": "2", - "Content-Type": "application/x-www-form-urlencoded; charset=utf-8", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": {}, - "StatusCode": 401, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Length": "632", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:11 GMT", - "Expires": "-1", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Pragma": "no-cache", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMBgAAAAUigdkOAAAA; expires=Wed, 23-Feb-2022 22:41:12 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12381.20 - WUS2 ProdSlices", - "x-ms-request-id": "efa7004d-8611-4e8e-aa74-4f43ecec0600" - }, - "ResponseBody": { - "error": "invalid_client", - "error_description": "AADSTS7000215: Invalid client secret provided. Ensure the secret being sent in the request is the client secret value, not the client secret ID, for a secret added to app \u002726790ce1-d05c-4de7-ba73-51837152f0bc\u0027.\r\nTrace ID: efa7004d-8611-4e8e-aa74-4f43ecec0600\r\nCorrelation ID: 781088e8-41a8-4b69-8d42-891673702834\r\nTimestamp: 2022-01-24 22:41:12Z", - "error_codes": [ - 7000215 - ], - "timestamp": "2022-01-24 22:41:12Z", - "trace_id": "efa7004d-8611-4e8e-aa74-4f43ecec0600", - "correlation_id": "781088e8-41a8-4b69-8d42-891673702834", - "error_uri": "https://login.microsoftonline.com/error?code=7000215" - } - } - ], - "Variables": {} -} diff --git a/sdk/azidentity/testdata/recordings/TestClientSecretCredential_Live/default_options.json b/sdk/azidentity/testdata/recordings/TestClientSecretCredential_Live/default_options.json deleted file mode 100644 index 7fd57ddd0da0..000000000000 --- a/sdk/azidentity/testdata/recordings/TestClientSecretCredential_Live/default_options.json +++ /dev/null @@ -1,213 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https%3A%2F%2Flogin.microsoftonline.com%2Ffake-tenant%2Foauth2%2Fv2.0%2Fauthorize", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Methods": "GET, OPTIONS", - "Access-Control-Allow-Origin": "*", - "Cache-Control": "max-age=86400, private", - "Content-Length": "955", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:11 GMT", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMBAAAAAUigdkOAAAA; expires=Wed, 23-Feb-2022 22:41:11 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - SCUS ProdSlices", - "x-ms-request-id": "3f6eb452-55c3-456d-bfc0-71d4da33a400" - }, - "ResponseBody": { - "tenant_discovery_endpoint": "https://login.microsoftonline.com/fake-tenant/v2.0/.well-known/openid-configuration", - "api-version": "1.1", - "metadata": [ - { - "preferred_network": "login.microsoftonline.com", - "preferred_cache": "login.windows.net", - "aliases": [ - "login.microsoftonline.com", - "login.windows.net", - "login.microsoft.com", - "sts.windows.net" - ] - }, - { - "preferred_network": "login.partner.microsoftonline.cn", - "preferred_cache": "login.partner.microsoftonline.cn", - "aliases": [ - "login.partner.microsoftonline.cn", - "login.chinacloudapi.cn" - ] - }, - { - "preferred_network": "login.microsoftonline.de", - "preferred_cache": "login.microsoftonline.de", - "aliases": [ - "login.microsoftonline.de" - ] - }, - { - "preferred_network": "login.microsoftonline.us", - "preferred_cache": "login.microsoftonline.us", - "aliases": [ - "login.microsoftonline.us", - "login.usgovcloudapi.net" - ] - }, - { - "preferred_network": "login-us.microsoftonline.com", - "preferred_cache": "login-us.microsoftonline.com", - "aliases": [ - "login-us.microsoftonline.com" - ] - } - ] - } - }, - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/v2.0/.well-known/openid-configuration", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Methods": "GET, OPTIONS", - "Access-Control-Allow-Origin": "*", - "Cache-Control": "max-age=86400, private", - "Content-Length": "1578", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:11 GMT", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMBAAAAAUigdkOAAAA; expires=Wed, 23-Feb-2022 22:41:11 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12381.20 - WUS2 ProdSlices", - "x-ms-request-id": "5a78bd7d-c9b3-4fa5-96b2-4dacf81e0a00" - }, - "ResponseBody": { - "token_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "token_endpoint_auth_methods_supported": [ - "client_secret_post", - "private_key_jwt", - "client_secret_basic" - ], - "jwks_uri": "https://login.microsoftonline.com/fake-tenant/discovery/v2.0/keys", - "response_modes_supported": [ - "query", - "fragment", - "form_post" - ], - "subject_types_supported": [ - "pairwise" - ], - "id_token_signing_alg_values_supported": [ - "RS256" - ], - "response_types_supported": [ - "code", - "id_token", - "code id_token", - "id_token token" - ], - "scopes_supported": [ - "openid", - "profile", - "email", - "offline_access" - ], - "issuer": "https://login.microsoftonline.com/fake-tenant/v2.0", - "request_uri_parameter_supported": false, - "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", - "authorization_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/authorize", - "device_authorization_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/devicecode", - "http_logout_supported": true, - "frontchannel_logout_supported": true, - "end_session_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/logout", - "claims_supported": [ - "sub", - "iss", - "cloud_instance_name", - "cloud_instance_host_name", - "cloud_graph_host_name", - "msgraph_host", - "aud", - "exp", - "iat", - "auth_time", - "acr", - "nonce", - "preferred_username", - "name", - "tid", - "ver", - "at_hash", - "c_hash", - "email" - ], - "kerberos_endpoint": "https://login.microsoftonline.com/fake-tenant/kerberos", - "tenant_region_scope": "NA", - "cloud_instance_name": "microsoftonline.com", - "cloud_graph_host_name": "graph.windows.net", - "msgraph_host": "graph.microsoft.com", - "rbac_url": "https://pas.windows.net" - } - }, - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "RequestMethod": "POST", - "RequestHeaders": { - ":method": "POST", - "Accept-Encoding": "gzip", - "Content-Length": "2", - "Content-Type": "application/x-www-form-urlencoded; charset=utf-8", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": {}, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Length": "89", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:11 GMT", - "Expires": "-1", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Pragma": "no-cache", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMBQAAAAUigdkOAAAA; expires=Wed, 23-Feb-2022 22:41:12 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - SCUS ProdSlices", - "x-ms-request-id": "7e3f8ad4-ea8b-4ee0-b49e-2844450ed300" - }, - "ResponseBody": { - "token_type": "Bearer", - "expires_in": 3599, - "ext_expires_in": 3599, - "access_token": "redacted" - } - } - ], - "Variables": {} -} diff --git a/sdk/azidentity/testdata/recordings/TestClientSecretCredential_Live/instance_discovery_disabled.json b/sdk/azidentity/testdata/recordings/TestClientSecretCredential_Live/instance_discovery_disabled.json deleted file mode 100644 index dbfa7164a2a3..000000000000 --- a/sdk/azidentity/testdata/recordings/TestClientSecretCredential_Live/instance_discovery_disabled.json +++ /dev/null @@ -1,138 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/v2.0/.well-known/openid-configuration", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v1.3.0-beta.3 (go1.19.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Methods": "GET, OPTIONS", - "Access-Control-Allow-Origin": "*", - "Cache-Control": "max-age=86400, private", - "Content-Length": "1578", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 27 Jan 2023 00:32:41 GMT", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Set-Cookie": [ - "fpc=AtldTtlEjTNPhKsSvKLZB70; expires=Sun, 26-Feb-2023 00:32:42 GMT; path=/; secure; HttpOnly; SameSite=None", - "esctx=PAQABAAEAAAD--DLA3VO7QrddgJg7WevrH4QEwxsg54bQ3AHgPb3j2Z5SVbJcbF9JVof0ngwf_m8vvYnyuBYhObOUB902nkrbIfGIED1xLlgmOerELuoXLOiulVYlwPlY1bVQ9ImtAn2wUh7raahFWVZRLsg-0WDEUxpkpvv2TqHYDtq4BDPd2P377fYE728LWRSUM3CsiY8gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.14357.8 - WUS2 ProdSlices", - "x-ms-request-id": "44ee3465-4da4-4581-9da2-e40e94389201", - "X-XSS-Protection": "0" - }, - "ResponseBody": { - "token_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "token_endpoint_auth_methods_supported": [ - "client_secret_post", - "private_key_jwt", - "client_secret_basic" - ], - "jwks_uri": "https://login.microsoftonline.com/fake-tenant/discovery/v2.0/keys", - "response_modes_supported": [ - "query", - "fragment", - "form_post" - ], - "subject_types_supported": [ - "pairwise" - ], - "id_token_signing_alg_values_supported": [ - "RS256" - ], - "response_types_supported": [ - "code", - "id_token", - "code id_token", - "id_token token" - ], - "scopes_supported": [ - "openid", - "profile", - "email", - "offline_access" - ], - "issuer": "https://login.microsoftonline.com/fake-tenant/v2.0", - "request_uri_parameter_supported": false, - "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", - "authorization_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/authorize", - "device_authorization_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/devicecode", - "http_logout_supported": true, - "frontchannel_logout_supported": true, - "end_session_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/logout", - "claims_supported": [ - "sub", - "iss", - "cloud_instance_name", - "cloud_instance_host_name", - "cloud_graph_host_name", - "msgraph_host", - "aud", - "exp", - "iat", - "auth_time", - "acr", - "nonce", - "preferred_username", - "name", - "tid", - "ver", - "at_hash", - "c_hash", - "email" - ], - "kerberos_endpoint": "https://login.microsoftonline.com/fake-tenant/kerberos", - "tenant_region_scope": "NA", - "cloud_instance_name": "microsoftonline.com", - "cloud_graph_host_name": "graph.windows.net", - "msgraph_host": "graph.microsoft.com", - "rbac_url": "https://pas.windows.net" - } - }, - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Content-Length": "2", - "Content-Type": "application/x-www-form-urlencoded; charset=utf-8", - "User-Agent": "azsdk-go-azidentity/v1.3.0-beta.3 (go1.19.3; Windows_NT)" - }, - "RequestBody": {}, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Length": "89", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 27 Jan 2023 00:32:41 GMT", - "Expires": "-1", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Pragma": "no-cache", - "Set-Cookie": [ - "fpc=AtldTtlEjTNPhKsSvKLZB72uN0zNAQAAAKkSZdsOAAAA; expires=Sun, 26-Feb-2023 00:32:42 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.14357.8 - EUS ProdSlices", - "x-ms-request-id": "cfe15df3-7e53-4953-9d2a-44364c789800", - "X-XSS-Protection": "0" - }, - "ResponseBody": { - "token_type": "Bearer", - "expires_in": 3599, - "ext_expires_in": 3599, - "access_token": "redacted" - } - } - ], - "Variables": {} -} diff --git a/sdk/azidentity/testdata/recordings/TestDeviceCodeCredentialADFS_Live.json b/sdk/azidentity/testdata/recordings/TestDeviceCodeCredentialADFS_Live.json deleted file mode 100644 index fd51420a1bef..000000000000 --- a/sdk/azidentity/testdata/recordings/TestDeviceCodeCredentialADFS_Live.json +++ /dev/null @@ -1,183 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://fake.adfs.local/adfs/.well-known/openid-configuration", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v1.3.0-beta.3 (go1.19.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Content-Length": "1986", - "Content-Security-Policy": "default-src \u0027self\u0027 \u0027unsafe-inline\u0027 \u0027unsafe-eval\u0027; img-src \u0027self\u0027 data:;", - "Content-Type": "application/json; charset=UTF-8", - "Date": "Mon, 30 Jan 2023 17:39:36 GMT", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age = 31536000", - "X-Content-Type-Options": "nosniff", - "X-XSS-Protection": "1; mode=block" - }, - "ResponseBody": { - "issuer": "https://fake.adfs.local/adfs/eae0822e-4c1b-41cf-8d9e-6bddf440029c/", - "authorization_endpoint": "https://fake.adfs.local/adfs/oauth2/authorize/", - "token_endpoint": "https://fake.adfs.local/adfs/oauth2/token/", - "jwks_uri": "https://fake.adfs.local/adfs/discovery/keys", - "token_endpoint_auth_methods_supported": [ - "client_secret_post", - "client_secret_basic", - "private_key_jwt", - "windows_client_authentication" - ], - "response_types_supported": [ - "code", - "id_token", - "code id_token", - "id_token token", - "code token", - "code id_token token" - ], - "response_modes_supported": [ - "query", - "fragment", - "form_post" - ], - "grant_types_supported": [ - "authorization_code", - "refresh_token", - "client_credentials", - "urn:ietf:params:oauth:grant-type:jwt-bearer", - "implicit", - "password", - "srv_challenge", - "urn:ietf:params:oauth:grant-type:device_code", - "device_code" - ], - "subject_types_supported": [ - "pairwise" - ], - "scopes_supported": [ - "aza", - "logon_cert", - "profile", - ".default", - "vpn_cert", - "email", - "openid", - "allatclaims", - "user_impersonation", - "winhello_cert" - ], - "id_token_signing_alg_values_supported": [ - "RS256" - ], - "token_endpoint_auth_signing_alg_values_supported": [ - "RS256" - ], - "access_token_issuer": "https://fake.adfs.local/adfs/eae0822e-4c1b-41cf-8d9e-6bddf440029c/", - "claims_supported": [ - "aud", - "iss", - "iat", - "exp", - "auth_time", - "nonce", - "at_hash", - "c_hash", - "sub", - "upn", - "unique_name", - "pwd_url", - "pwd_exp", - "mfa_auth_time", - "sid", - "nbf" - ], - "microsoft_multi_refresh_token": true, - "userinfo_endpoint": "https://fake.adfs.local/adfs/userinfo", - "capabilities": [ - "kdf_ver2" - ], - "end_session_endpoint": "https://fake.adfs.local/adfs/oauth2/logout", - "as_access_token_token_binding_supported": false, - "as_refresh_token_token_binding_supported": false, - "resource_access_token_token_binding_supported": false, - "op_id_token_token_binding_supported": false, - "rp_id_token_token_binding_supported": false, - "frontchannel_logout_supported": true, - "frontchannel_logout_session_supported": true, - "device_authorization_endpoint": "https://fake.adfs.local/adfs/oauth2/devicecode" - } - }, - { - "RequestUri": "https://fake.adfs.local/adfs/oauth2/devicecode/", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Content-Length": "2", - "Content-Type": "application/x-www-form-urlencoded; charset=utf-8", - "User-Agent": "azsdk-go-azidentity/v1.3.0-beta.3 (go1.19.3; Windows_NT)" - }, - "RequestBody": {}, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store", - "Content-Length": "388", - "Content-Security-Policy": "default-src \u0027self\u0027 \u0027unsafe-inline\u0027 \u0027unsafe-eval\u0027; img-src \u0027self\u0027 data:;", - "Content-Type": "application/json; charset=UTF-8", - "Date": "Mon, 30 Jan 2023 17:39:36 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age = 31536000", - "X-Content-Type-Options": "nosniff", - "X-XSS-Protection": "1; mode=block" - }, - "ResponseBody": { - "device_code": "redacted", - "expires_in": 900, - "interval": 5, - "message": "redacted", - "user_code": "redacted", - "verification_uri": "https://fake.adfs.local/adfs/oauth2/deviceauth", - "verification_uri_complete": "https://fake.adfs.local/adfs/oauth2/deviceauth?user_code=TPWGLBSKM\u0026client-request-id=2a5bf874-bebf-462e-f814-0080010000ee", - "verification_url": "https://fake.adfs.local/adfs/oauth2/deviceauth" - } - }, - { - "RequestUri": "https://fake.adfs.local/adfs/oauth2/token/", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Content-Length": "2", - "Content-Type": "application/x-www-form-urlencoded; charset=utf-8", - "User-Agent": "azsdk-go-azidentity/v1.3.0-beta.3 (go1.19.3; Windows_NT)" - }, - "RequestBody": {}, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store", - "Content-Length": "2231", - "Content-Security-Policy": "default-src \u0027self\u0027 \u0027unsafe-inline\u0027 \u0027unsafe-eval\u0027; img-src \u0027self\u0027 data:;", - "Content-Type": "application/json; charset=UTF-8", - "Date": "Mon, 30 Jan 2023 17:40:03 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age = 31536000", - "X-Content-Type-Options": "nosniff", - "X-XSS-Protection": "1; mode=block" - }, - "ResponseBody": { - "access_token": "redacted", - "token_type": "bearer", - "expires_in": 3600, - "resource": "https://adminmanagement.adfs.redmond.selfhost.local/eae0822e-4c1b-41cf-8d9e-6bddf440029c", - "refresh_token": "redacted", - "refresh_token_expires_in": 3600, - "scope": "profile openid https://fake.adfs.local/fake-scope/.default", - "id_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6InRoYUE3NzlSUlZvRWNwWmp5VnlKNXZhMm1oSSIsImtpZCI6InRoYUE3NzlSUlZvRWNwWmp5VnlKNXZhMm1oSSJ9.eyJhdWQiOiIxOTUwYTI1OC0yMjdiLTRlMzEtYTljZi03MTc0OTU5NDVmYzIiLCJpc3MiOiJodHRwczovL2FkZnMucmVkbW9uZC5henVyZXN0YWNrLmNvcnAubWljcm9zb2Z0LmNvbS9hZGZzL2VhZTA4MjJlLTRjMWItNDFjZi04ZDllLTZiZGRmNDQwMDI5Yy8iLCJpYXQiOjE2NzUxMDAzOTksIm5iZiI6MTY3NTEwMDM5OSwiZXhwIjoxNjc1MTAzOTk5LCJhdXRoX3RpbWUiOjE2NzUwOTk4ODEsInN1YiI6ImkrL01ROThlMFY1aUREYnhpV285N2RpRkJqLzJlUHYrRXVEemJtTW1nUk09Iiwic2lkIjoiNmJmZDhiNTItYTJhNy00ZDg5LWEyY2ItYTQ3NTFjODY0ZjQyIiwidXBuIjoiam9ubmd1eWVuQG1pY3Jvc29mdC5jb20iLCJ1bmlxdWVfbmFtZSI6Impvbm5ndXllbkBtaWNyb3NvZnQuY29tIiwiZmFtaWx5X25hbWUiOiJOZ3V5ZW4iLCJnaXZlbl9uYW1lIjoiSm9uYXRoYW4iLCJvaWQiOiJTLTEtNS0yMS0yMTI3NTIxMTg0LTE2MDQwMTI5MjAtMTg4NzkyNzUyNy02MDU0NTk3NCIsInRpZCI6ImVhZTA4MjJlLTRjMWItNDFjZi04ZDllLTZiZGRmNDQwMDI5YyIsImhhc2dyb3VwcyI6InRydWUiLCJhcHBpZGFjciI6IjAiLCJhdXRobWV0aG9kIjoiaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS93cy8yMDA4LzA2L2lkZW50aXR5L2F1dGhlbnRpY2F0aW9ubWV0aG9kL3dpbmRvd3MiLCJBcHBJZCI6IjE5NTBhMjU4LTIyN2ItNGUzMS1hOWNmLTcxNzQ5NTk0NWZjMiIsImFwcHR5cGUiOiJQdWJsaWMiLCJhcHBpZCI6IjE5NTBhMjU4LTIyN2ItNGUzMS1hOWNmLTcxNzQ5NTk0NWZjMiIsInZlciI6IjEuMCIsInNjcCI6InByb2ZpbGUgb3BlbmlkIC5kZWZhdWx0In0.va71bhTEI73k3SlVywEVvUxSK4HwPYHWbD1VTdHfhkLwLQMYBBHjB5Lq1MFnKGlwEZ-5grSojk4VdO2ub6Fy1C0DDRDnNB3JcKAZcb90zRdlVJX6fEzL_29ETHHl1zHzc4xs2um4ybm-HWTybusP9E9Ywl0Ql7oxcXyw_IMVgHJ2jY7_JUEO2cVx5-D9bq0qMvpN-xiFO8P5dWrt31a85uiZz9LdbJXqoroJQfLZTftcG-GzF7zzSlwoXsrPXrH--Gx8Lr4kQhKZcAoDtfMydAEylm_yxC4UPwstXszymZ2zPzFgVSqce96OHj00vqMVP2-8WVERP2DjP2gnWoyeK9Gr320rWQh1NVh6_ZP4Ib2JgG0VwnMhFeFfg9iVic768O_HKdXJ9cLqlvZe1BVPkMPtcQ61xeM2RueoYP8AxzdUKsuR3Ye64KBAz8DsD7egcf-uO0tT-50LfMczxJrE7yW-8hOIcsBvT6g4reRKBs0BzLsyY1DN-zAJCt5pGpYHYZQA15NWhvvDb-DtwFFh89qgeDNHu8wAJ-ihJwnrdcYrlxZeR6VpFzTrd3_Mv5kmJonQ16z-0HR6tdT9FeOtPu8nyXzDxClS13zj9QIOjV1Ua02AolmE_IibROj3g3wt0JJueZKsvMijC7iUtUDqUaoN3dxTTAR81j632F4frTI" - } - } - ], - "Variables": {} -} diff --git a/sdk/azidentity/testdata/recordings/TestDeviceCodeCredential_Live/default_options.json b/sdk/azidentity/testdata/recordings/TestDeviceCodeCredential_Live/default_options.json deleted file mode 100644 index 50761db19c57..000000000000 --- a/sdk/azidentity/testdata/recordings/TestDeviceCodeCredential_Live/default_options.json +++ /dev/null @@ -1,296 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https%3A%2F%2Flogin.microsoftonline.com%2Forganizations%2Foauth2%2Fv2.0%2Fauthorize", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v1.3.0-beta.3 (go1.19.3; linux)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Methods": "GET, OPTIONS", - "Access-Control-Allow-Origin": "*", - "Cache-Control": "max-age=86400, private", - "Content-Length": "957", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 27 Jan 2023 00:49:33 GMT", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Set-Cookie": [ - "fpc=AqAlGewT7B5JkCU6TpQSF6c; expires=Sun, 26-Feb-2023 00:49:33 GMT; path=/; secure; HttpOnly; SameSite=None", - "esctx=PAQABAAEAAAD--DLA3VO7QrddgJg7Wevr_L7XvOHAYbOWadW7aqOsG_byrhy0vaciCdHA52hyTUG50GbEWY0T0JLJPNo5WRiZUQOlkLsbhf_cmyAKhf_AxQ-GNg031zK-zMq7uWhcFxs7sVSINaxWDtRUGOW__1Cb2rj-eOaBENXfknrk7OmDADXDKJHA_-fcKaHPf0prau0gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.14357.8 - EUS ProdSlices", - "x-ms-request-id": "ffb7d6e0-5ccb-4a0e-9f3b-06624062d600", - "X-XSS-Protection": "0" - }, - "ResponseBody": { - "tenant_discovery_endpoint": "https://login.microsoftonline.com/organizations/v2.0/.well-known/openid-configuration", - "api-version": "1.1", - "metadata": [ - { - "preferred_network": "login.microsoftonline.com", - "preferred_cache": "login.windows.net", - "aliases": [ - "login.microsoftonline.com", - "login.windows.net", - "login.microsoft.com", - "sts.windows.net" - ] - }, - { - "preferred_network": "login.partner.microsoftonline.cn", - "preferred_cache": "login.partner.microsoftonline.cn", - "aliases": [ - "login.partner.microsoftonline.cn", - "login.chinacloudapi.cn" - ] - }, - { - "preferred_network": "login.microsoftonline.de", - "preferred_cache": "login.microsoftonline.de", - "aliases": [ - "login.microsoftonline.de" - ] - }, - { - "preferred_network": "login.microsoftonline.us", - "preferred_cache": "login.microsoftonline.us", - "aliases": [ - "login.microsoftonline.us", - "login.usgovcloudapi.net" - ] - }, - { - "preferred_network": "login-us.microsoftonline.com", - "preferred_cache": "login-us.microsoftonline.com", - "aliases": [ - "login-us.microsoftonline.com" - ] - } - ] - } - }, - { - "RequestUri": "https://login.microsoftonline.com/organizations/v2.0/.well-known/openid-configuration", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v1.3.0-beta.3 (go1.19.3; linux)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Methods": "GET, OPTIONS", - "Access-Control-Allow-Origin": "*", - "Cache-Control": "max-age=86400, private", - "Content-Length": "1589", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 27 Jan 2023 00:49:33 GMT", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Set-Cookie": [ - "fpc=AqAlGewT7B5JkCU6TpQSF6c; expires=Sun, 26-Feb-2023 00:49:34 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.14357.8 - WUS2 ProdSlices", - "x-ms-request-id": "1c1e15dc-ba3e-4b7a-a9de-bb6213f07c00", - "X-XSS-Protection": "0" - }, - "ResponseBody": { - "token_endpoint": "https://login.microsoftonline.com/organizations/oauth2/v2.0/token", - "token_endpoint_auth_methods_supported": [ - "client_secret_post", - "private_key_jwt", - "client_secret_basic" - ], - "jwks_uri": "https://login.microsoftonline.com/organizations/discovery/v2.0/keys", - "response_modes_supported": [ - "query", - "fragment", - "form_post" - ], - "subject_types_supported": [ - "pairwise" - ], - "id_token_signing_alg_values_supported": [ - "RS256" - ], - "response_types_supported": [ - "code", - "id_token", - "code id_token", - "id_token token" - ], - "scopes_supported": [ - "openid", - "profile", - "email", - "offline_access" - ], - "issuer": "https://login.microsoftonline.com/{tenantid}/v2.0", - "request_uri_parameter_supported": false, - "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", - "authorization_endpoint": "https://login.microsoftonline.com/organizations/oauth2/v2.0/authorize", - "device_authorization_endpoint": "https://login.microsoftonline.com/organizations/oauth2/v2.0/devicecode", - "http_logout_supported": true, - "frontchannel_logout_supported": true, - "end_session_endpoint": "https://login.microsoftonline.com/organizations/oauth2/v2.0/logout", - "claims_supported": [ - "sub", - "iss", - "cloud_instance_name", - "cloud_instance_host_name", - "cloud_graph_host_name", - "msgraph_host", - "aud", - "exp", - "iat", - "auth_time", - "acr", - "nonce", - "preferred_username", - "name", - "tid", - "ver", - "at_hash", - "c_hash", - "email" - ], - "kerberos_endpoint": "https://login.microsoftonline.com/organizations/kerberos", - "tenant_region_scope": null, - "cloud_instance_name": "microsoftonline.com", - "cloud_graph_host_name": "graph.windows.net", - "msgraph_host": "graph.microsoft.com", - "rbac_url": "https://pas.windows.net" - } - }, - { - "RequestUri": "https://login.microsoftonline.com/organizations/oauth2/v2.0/devicecode", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Content-Length": "2", - "Content-Type": "application/x-www-form-urlencoded; charset=utf-8", - "User-Agent": "azsdk-go-azidentity/v1.3.0-beta.3 (go1.19.3; linux)" - }, - "RequestBody": {}, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Length": "155", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 27 Jan 2023 00:49:33 GMT", - "Expires": "-1", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Pragma": "no-cache", - "Set-Cookie": [ - "fpc=AqAlGewT7B5JkCU6TpQSF6d1eSrYAQAAAJ4WZdsOAAAA; expires=Sun, 26-Feb-2023 00:49:34 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.14526.6 - NCUS ProdSlices", - "x-ms-request-id": "5d82da0f-b8a5-4c14-bd49-01915cff3900", - "X-XSS-Protection": "0" - }, - "ResponseBody": { - "user_code": "redacted", - "device_code": "redacted", - "verification_uri": "https://microsoft.com/devicelogin", - "expires_in": 900, - "interval": 5, - "message": "redacted" - } - }, - { - "RequestUri": "https://login.microsoftonline.com/organizations/oauth2/v2.0/token", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Content-Length": "2", - "Content-Type": "application/x-www-form-urlencoded; charset=utf-8", - "User-Agent": "azsdk-go-azidentity/v1.3.0-beta.3 (go1.19.3; linux)" - }, - "RequestBody": {}, - "StatusCode": 400, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Length": "510", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 27 Jan 2023 00:50:04 GMT", - "Expires": "-1", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Pragma": "no-cache", - "Set-Cookie": [ - "fpc=AqAlGewT7B5JkCU6TpQSF6d1eSrYAQAAAJ4WZdsOAAAA; expires=Sun, 26-Feb-2023 00:50:05 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.14357.8 - SCUS ProdSlices", - "x-ms-request-id": "2902ef55-9b43-4155-a7c0-1f02278e6600", - "X-XSS-Protection": "0" - }, - "ResponseBody": { - "error": "authorization_pending", - "error_description": "AADSTS70016: OAuth 2.0 device flow error. Authorization is pending. Continue polling.\r\nTrace ID: 2902ef55-9b43-4155-a7c0-1f02278e6600\r\nCorrelation ID: 867ce6b1-f4b6-4f78-ad0a-1d14cc78dbf9\r\nTimestamp: 2023-01-27 00:50:05Z", - "error_codes": [ - 70016 - ], - "timestamp": "2023-01-27 00:50:05Z", - "trace_id": "2902ef55-9b43-4155-a7c0-1f02278e6600", - "correlation_id": "867ce6b1-f4b6-4f78-ad0a-1d14cc78dbf9", - "error_uri": "https://login.microsoftonline.com/error?code=70016" - } - }, - { - "RequestUri": "https://login.microsoftonline.com/organizations/oauth2/v2.0/token", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Content-Length": "2", - "Content-Type": "application/x-www-form-urlencoded; charset=utf-8", - "User-Agent": "azsdk-go-azidentity/v1.3.0-beta.3 (go1.19.3; linux)" - }, - "RequestBody": {}, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Length": "1716", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 27 Jan 2023 00:50:09 GMT", - "Expires": "-1", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Pragma": "no-cache", - "Set-Cookie": [ - "fpc=AqAlGewT7B5JkCU6TpQSF6d1eSrYAQAAAJ4WZdsOAAAACxysCAEAAADBFmXbDgAAAA; expires=Sun, 26-Feb-2023 00:50:10 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.14526.6 - NCUS ProdSlices", - "x-ms-request-id": "4c4c8386-e2a7-4933-9588-add8c8cb7b00", - "X-XSS-Protection": "0" - }, - "ResponseBody": { - "token_type": "Bearer", - "scope": "https://management.core.windows.net//user_impersonation https://management.core.windows.net//.default", - "expires_in": 4145, - "ext_expires_in": 4145, - "access_token": "redacted", - "refresh_token": "redacted", - "foci": "1", - "id_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6Ii1LSTNROW5OUjdiUm9meG1lWm9YcWJIWkdldyJ9.eyJhdWQiOiIwNGIwNzc5NS04ZGRiLTQ2MWEtYmJlZS0wMmY5ZTFiZjdiNDYiLCJpc3MiOiJodHRwczovL2xvZ2luLm1pY3Jvc29mdG9ubGluZS5jb20vNzJmOTg4YmYtODZmMS00MWFmLTkxYWItMmQ3Y2QwMTFkYjQ3L3YyLjAiLCJpYXQiOjE2NzQ3ODAzMTAsIm5iZiI6MTY3NDc4MDMxMCwiZXhwIjoxNjc0Nzg0MjEwLCJhaW8iOiJBV1FBbS84VEFBQUFHajV6TkdEZllZQTIvNzdCM21DYlZUZUd0bEpYdS9qMXl3T05LZUtINWtQY0VBem9Va0Q1M3pkdVZtZ3UyQWNWUkNNYi9YdXYwUDFTUDFZQXJMQXhKeHRUTy9CckQ4YUNHWnFRZjNsdzh3anRnZHlxVnQ4N3JiaG9Hb1BtaHkzeSIsIm5hbWUiOiJDaGFybGVzIExvd2VsbCIsIm9pZCI6Ijc0Njc3NTU4LWYzNjktNDc5Mi1hZmU1LWY5OTczOGI1ZmE3YyIsInByZWZlcnJlZF91c2VybmFtZSI6ImNobG93ZUBtaWNyb3NvZnQuY29tIiwicHVpZCI6IjEwMDMwMDAwOEM1NTk3NzgiLCJyaCI6IjAuQVFFQXY0ajVjdkdHcjBHUnF5MTgwQkhiUjVWM3NBVGJqUnBHdS00Qy1lR19lMFlhQUx3LiIsInN1YiI6ImN2dmdUTkhneDJYS0F5NDVRVEhCQ3JuQl8tS2ZKeHNDLTBTWXBNVkNaUWsiLCJ0aWQiOiI3MmY5ODhiZi04NmYxLTQxYWYtOTFhYi0yZDdjZDAxMWRiNDciLCJ1dGkiOiJob05NVEtmaU0wbVZpSzNZeU10N0FBIiwidmVyIjoiMi4wIn0.hCvBG_-C9Wo4Vx3uUImdbE3DDiWDL5Z6CFgkJaK5wjsz2LZagv7UQWhz_P4p7NgqjX2fVzjHpp_cuY1-c4WUd6lsc0c7JU7ukTwhcub0oTiwxDmhGPJPQva1E5BnDCnQknb7u9X6xUPWcgosrPWhrQ3J9bI9ZbHHcgV9TYDWs_O5V9MiJMAdvjPU18DjEwCoceeiBojge5OG6uyPzMNrSEIh66Qp5bsqYAtPZDFDg8edUK8Kj9bv6gy-_zma-H0AU44cAsj0NEjDbBhbgotqo6T0Q1y5rwXDYlJioRfce71GzcKIGxYlyinjxM8gTUgYkfqU7svqYEkcsUzUGM0r8w", - "client_info": "eyJ1aWQiOiI3NDY3NzU1OC1mMzY5LTQ3OTItYWZlNS1mOTk3MzhiNWZhN2MiLCJ1dGlkIjoiNzJmOTg4YmYtODZmMS00MWFmLTkxYWItMmQ3Y2QwMTFkYjQ3In0" - } - } - ], - "Variables": {} -} diff --git a/sdk/azidentity/testdata/recordings/TestDeviceCodeCredential_Live/instance_discovery_disabled.json b/sdk/azidentity/testdata/recordings/TestDeviceCodeCredential_Live/instance_discovery_disabled.json deleted file mode 100644 index 497fdd4baf49..000000000000 --- a/sdk/azidentity/testdata/recordings/TestDeviceCodeCredential_Live/instance_discovery_disabled.json +++ /dev/null @@ -1,179 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/v2.0/.well-known/openid-configuration", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v1.3.0-beta.3 (go1.19.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Methods": "GET, OPTIONS", - "Access-Control-Allow-Origin": "*", - "Cache-Control": "max-age=86400, private", - "Content-Length": "1577", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 27 Jan 2023 01:08:55 GMT", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Set-Cookie": [ - "fpc=AtldTtlEjTNPhKsSvKLZB711eSrYAgAAAMMZZdsOAAAAu0ycEAIAAADkGWXbDgAAAA; expires=Sun, 26-Feb-2023 01:08:55 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.14357.8 - EUS ProdSlices", - "x-ms-request-id": "d5c1731a-1297-4b9e-9625-5b226f886700", - "X-XSS-Protection": "0" - }, - "ResponseBody": { - "token_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "token_endpoint_auth_methods_supported": [ - "client_secret_post", - "private_key_jwt", - "client_secret_basic" - ], - "jwks_uri": "https://login.microsoftonline.com/fake-tenant/discovery/v2.0/keys", - "response_modes_supported": [ - "query", - "fragment", - "form_post" - ], - "subject_types_supported": [ - "pairwise" - ], - "id_token_signing_alg_values_supported": [ - "RS256" - ], - "response_types_supported": [ - "code", - "id_token", - "code id_token", - "id_token token" - ], - "scopes_supported": [ - "openid", - "profile", - "email", - "offline_access" - ], - "issuer": "https://login.microsoftonline.com/{tenantid}/v2.0", - "request_uri_parameter_supported": false, - "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", - "authorization_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/authorize", - "device_authorization_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/devicecode", - "http_logout_supported": true, - "frontchannel_logout_supported": true, - "end_session_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/logout", - "claims_supported": [ - "sub", - "iss", - "cloud_instance_name", - "cloud_instance_host_name", - "cloud_graph_host_name", - "msgraph_host", - "aud", - "exp", - "iat", - "auth_time", - "acr", - "nonce", - "preferred_username", - "name", - "tid", - "ver", - "at_hash", - "c_hash", - "email" - ], - "kerberos_endpoint": "https://login.microsoftonline.com/fake-tenant/kerberos", - "tenant_region_scope": null, - "cloud_instance_name": "microsoftonline.com", - "cloud_graph_host_name": "graph.windows.net", - "msgraph_host": "graph.microsoft.com", - "rbac_url": "https://pas.windows.net" - } - }, - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/devicecode", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Content-Length": "2", - "Content-Type": "application/x-www-form-urlencoded; charset=utf-8", - "User-Agent": "azsdk-go-azidentity/v1.3.0-beta.3 (go1.19.3; Windows_NT)" - }, - "RequestBody": {}, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Length": "155", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 27 Jan 2023 01:08:55 GMT", - "Expires": "-1", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Pragma": "no-cache", - "Set-Cookie": [ - "fpc=AtldTtlEjTNPhKsSvKLZB711eSrYAQAAAO8aZdsOAAAAu0ycEAIAAADkGWXbDgAAAA; expires=Sun, 26-Feb-2023 01:08:55 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.14357.8 - WUS2 ProdSlices", - "x-ms-request-id": "4eabe359-c66c-4eda-82e9-606f0f540800", - "X-XSS-Protection": "0" - }, - "ResponseBody": { - "user_code": "redacted", - "device_code": "redacted", - "verification_uri": "https://microsoft.com/devicelogin", - "expires_in": 900, - "interval": 5, - "message": "redacted" - } - }, - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Content-Length": "2", - "Content-Type": "application/x-www-form-urlencoded; charset=utf-8", - "User-Agent": "azsdk-go-azidentity/v1.3.0-beta.3 (go1.19.3; Windows_NT)" - }, - "RequestBody": {}, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Length": "1753", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 27 Jan 2023 01:09:23 GMT", - "Expires": "-1", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Pragma": "no-cache", - "Set-Cookie": [ - "fpc=AtldTtlEjTNPhKsSvKLZB711eSrYAQAAAO8aZdsOAAAAu0ycEAEAAAAQG2XbDgAAAA; expires=Sun, 26-Feb-2023 01:09:24 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.14526.6 - EUS ProdSlices", - "x-ms-request-id": "269d4f7f-17d3-473c-99ff-4692d62c3500", - "X-XSS-Protection": "0" - }, - "ResponseBody": { - "token_type": "Bearer", - "scope": "https://management.core.windows.net//user_impersonation https://management.core.windows.net//.default", - "expires_in": 3868, - "ext_expires_in": 3868, - "access_token": "redacted", - "refresh_token": "redacted", - "foci": "1", - "id_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6Ii1LSTNROW5OUjdiUm9meG1lWm9YcWJIWkdldyJ9.eyJhdWQiOiIwNGIwNzc5NS04ZGRiLTQ2MWEtYmJlZS0wMmY5ZTFiZjdiNDYiLCJpc3MiOiJodHRwczovL2xvZ2luLm1pY3Jvc29mdG9ubGluZS5jb20vNzJmOTg4YmYtODZmMS00MWFmLTkxYWItMmQ3Y2QwMTFkYjQ3L3YyLjAiLCJpYXQiOjE2NzQ3ODE0NjMsIm5iZiI6MTY3NDc4MTQ2MywiZXhwIjoxNjc0Nzg1MzYzLCJhaW8iOiJBWFFBaS84VEFBQUFDdTZtZlZtUjd5TVFvTjJPclJiZy83cis0YnEzVFhXbmlFbGFNSXY2dFpFNVp6Ly9jejZ0NERKZ0o2Z3A2eDNyS2NDWC9rTGEvRU5NY1B2R2tDb1JQVlhyRUxKU3RaQXNlM2NMMnQ2c3pHQStQRTh4b0lxRWd2YiszcWQ4V3FJVkFuUFI2UjJ0dkdOOEdFVDQ0Q1I3WkE9PSIsIm5hbWUiOiJKb25hdGhhbiBOZ3V5ZW4iLCJvaWQiOiJjYjg2MjRhNi1iZWFjLTRlOGYtOTg3Zi05NzY5ZWFjZWEyZjgiLCJwcmVmZXJyZWRfdXNlcm5hbWUiOiJqb25uZ3V5ZW5AbWljcm9zb2Z0LmNvbSIsInB1aWQiOiIxMDAzMjAwMjI0MTEyNjc2IiwicmgiOiIwLkFSb0F2NGo1Y3ZHR3IwR1JxeTE4MEJIYlI1VjNzQVRialJwR3UtNEMtZUdfZTBZYUFFRS4iLCJzdWIiOiJaeWVJZ25PUENuX2JUWnJzSTJmc2xWckI2aDhmNGx4WlhtdHJSdDRMNXprIiwidGlkIjoiNzJmOTg4YmYtODZmMS00MWFmLTkxYWItMmQ3Y2QwMTFkYjQ3IiwidXRpIjoiZjAtZEp0TVhQRWVaXzBhUzFpdzFBQSIsInZlciI6IjIuMCJ9.eWFje3XfMww79Y6wcG4B87lB-nIl2EvRP3hioTpkaj_MU5yUVAUOPRNM_voIjTuDOk13we3GgKDxKTSJhF_jcc-xSnSC_JG14BpyyJ8H7SS6BWscfN-PCMGYDmaJ98LtO2imz_7niMwlw_DhD4nBZbc1NaQ2htILMEhzYRPW3X4D11kKsRn82dtfsA7Bo83Sc7FfTrlrYxanAxyrPkkE5MeV-KfhOBGRdQWZvWFlLrXb-D24QuAKZXE9LPDYEHfMTLWMUVtlYyP2WxytMCATWMBKKXMTIZ87UdsknCNZfxV-X9OhqP04pzHjPeoY1ERKu022WsCOcq_R_pHv8DwsdA", - "client_info": "eyJ1aWQiOiJjYjg2MjRhNi1iZWFjLTRlOGYtOTg3Zi05NzY5ZWFjZWEyZjgiLCJ1dGlkIjoiNzJmOTg4YmYtODZmMS00MWFmLTkxYWItMmQ3Y2QwMTFkYjQ3In0" - } - } - ], - "Variables": {} -} diff --git a/sdk/azidentity/testdata/recordings/TestDeviceCodeCredential_Live/optional_tenant.json b/sdk/azidentity/testdata/recordings/TestDeviceCodeCredential_Live/optional_tenant.json deleted file mode 100644 index 037121df960e..000000000000 --- a/sdk/azidentity/testdata/recordings/TestDeviceCodeCredential_Live/optional_tenant.json +++ /dev/null @@ -1,299 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https%3A%2F%2Flogin.microsoftonline.com%2Ffake-tenant%2Foauth2%2Fv2.0%2Fauthorize", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Methods": "GET, OPTIONS", - "Access-Control-Allow-Origin": "*", - "Cache-Control": "max-age=86400, private", - "Content-Length": "955", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 25 Jan 2022 00:31:27 GMT", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwA; expires=Thu, 24-Feb-2022 00:31:28 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - NCUS ProdSlices", - "x-ms-request-id": "85bf313d-a0fa-45ca-906b-c4a4111a1a00" - }, - "ResponseBody": { - "tenant_discovery_endpoint": "https://login.microsoftonline.com/fake-tenant/v2.0/.well-known/openid-configuration", - "api-version": "1.1", - "metadata": [ - { - "preferred_network": "login.microsoftonline.com", - "preferred_cache": "login.windows.net", - "aliases": [ - "login.microsoftonline.com", - "login.windows.net", - "login.microsoft.com", - "sts.windows.net" - ] - }, - { - "preferred_network": "login.partner.microsoftonline.cn", - "preferred_cache": "login.partner.microsoftonline.cn", - "aliases": [ - "login.partner.microsoftonline.cn", - "login.chinacloudapi.cn" - ] - }, - { - "preferred_network": "login.microsoftonline.de", - "preferred_cache": "login.microsoftonline.de", - "aliases": [ - "login.microsoftonline.de" - ] - }, - { - "preferred_network": "login.microsoftonline.us", - "preferred_cache": "login.microsoftonline.us", - "aliases": [ - "login.microsoftonline.us", - "login.usgovcloudapi.net" - ] - }, - { - "preferred_network": "login-us.microsoftonline.com", - "preferred_cache": "login-us.microsoftonline.com", - "aliases": [ - "login-us.microsoftonline.com" - ] - } - ] - } - }, - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/v2.0/.well-known/openid-configuration", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Methods": "GET, OPTIONS", - "Access-Control-Allow-Origin": "*", - "Cache-Control": "max-age=86400, private", - "Content-Length": "1578", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 25 Jan 2022 00:31:28 GMT", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwA; expires=Thu, 24-Feb-2022 00:31:29 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - EUS ProdSlices", - "x-ms-request-id": "fd83906d-505d-49f7-9332-0832b67e9700" - }, - "ResponseBody": { - "token_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "token_endpoint_auth_methods_supported": [ - "client_secret_post", - "private_key_jwt", - "client_secret_basic" - ], - "jwks_uri": "https://login.microsoftonline.com/fake-tenant/discovery/v2.0/keys", - "response_modes_supported": [ - "query", - "fragment", - "form_post" - ], - "subject_types_supported": [ - "pairwise" - ], - "id_token_signing_alg_values_supported": [ - "RS256" - ], - "response_types_supported": [ - "code", - "id_token", - "code id_token", - "id_token token" - ], - "scopes_supported": [ - "openid", - "profile", - "email", - "offline_access" - ], - "issuer": "https://login.microsoftonline.com/fake-tenant/v2.0", - "request_uri_parameter_supported": false, - "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", - "authorization_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/authorize", - "device_authorization_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/devicecode", - "http_logout_supported": true, - "frontchannel_logout_supported": true, - "end_session_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/logout", - "claims_supported": [ - "sub", - "iss", - "cloud_instance_name", - "cloud_instance_host_name", - "cloud_graph_host_name", - "msgraph_host", - "aud", - "exp", - "iat", - "auth_time", - "acr", - "nonce", - "preferred_username", - "name", - "tid", - "ver", - "at_hash", - "c_hash", - "email" - ], - "kerberos_endpoint": "https://login.microsoftonline.com/fake-tenant/kerberos", - "tenant_region_scope": "NA", - "cloud_instance_name": "microsoftonline.com", - "cloud_graph_host_name": "graph.windows.net", - "msgraph_host": "graph.microsoft.com", - "rbac_url": "https://pas.windows.net" - } - }, - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/devicecode", - "RequestMethod": "POST", - "RequestHeaders": { - ":method": "POST", - "Accept-Encoding": "gzip", - "Content-Length": "2", - "Content-Type": "application/x-www-form-urlencoded; charset=utf-8", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": {}, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Length": "155", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 25 Jan 2022 00:31:28 GMT", - "Expires": "-1", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Pragma": "no-cache", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwDerBK3AQAAAOA7gdkOAAAA; expires=Thu, 24-Feb-2022 00:31:29 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - NCUS ProdSlices", - "x-ms-request-id": "a4be07f0-9bbb-43a2-8435-3ac0d8955800" - }, - "ResponseBody": { - "user_code": "redacted", - "device_code": "redacted", - "verification_uri": "https://microsoft.com/devicelogin", - "expires_in": 900, - "interval": 5, - "message": "redacted" - } - }, - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "RequestMethod": "POST", - "RequestHeaders": { - ":method": "POST", - "Accept-Encoding": "gzip", - "Content-Length": "2", - "Content-Type": "application/x-www-form-urlencoded; charset=utf-8", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": {}, - "StatusCode": 400, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Length": "510", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 25 Jan 2022 00:31:41 GMT", - "Expires": "-1", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Pragma": "no-cache", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwDerBK3AQAAAOA7gdkOAAAA; expires=Thu, 24-Feb-2022 00:31:41 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - SCUS ProdSlices", - "x-ms-request-id": "11b07c5a-510c-401a-863b-865bb7b7bd00" - }, - "ResponseBody": { - "error": "authorization_pending", - "error_description": "AADSTS70016: OAuth 2.0 device flow error. Authorization is pending. Continue polling.\r\nTrace ID: 11b07c5a-510c-401a-863b-865bb7b7bd00\r\nCorrelation ID: 28a362d7-4334-4653-87d9-3545212ad4b7\r\nTimestamp: 2022-01-25 00:31:41Z", - "error_codes": [ - 70016 - ], - "timestamp": "2022-01-25 00:31:41Z", - "trace_id": "11b07c5a-510c-401a-863b-865bb7b7bd00", - "correlation_id": "28a362d7-4334-4653-87d9-3545212ad4b7", - "error_uri": "https://login.microsoftonline.com/error?code=70016" - } - }, - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "RequestMethod": "POST", - "RequestHeaders": { - ":method": "POST", - "Accept-Encoding": "gzip", - "Content-Length": "2", - "Content-Type": "application/x-www-form-urlencoded; charset=utf-8", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": {}, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Length": "1680", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 25 Jan 2022 00:31:46 GMT", - "Expires": "-1", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Pragma": "no-cache", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwDerBK3AQAAAOA7gdkOAAAAptODMAEAAADyO4HZDgAAAA; expires=Thu, 24-Feb-2022 00:31:46 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - WUS2 ProdSlices", - "x-ms-request-id": "e259a8e3-e82d-441d-b52e-32db07d4aa00" - }, - "ResponseBody": { - "token_type": "Bearer", - "scope": "https://management.core.windows.net//user_impersonation https://management.core.windows.net//.default", - "expires_in": 5395, - "ext_expires_in": 5395, - "access_token": "redacted", - "refresh_token": "redacted", - "foci": "1", - "id_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6Imwzc1EtNTBjQ0g0eEJWWkxIVEd3blNSNzY4MCJ9.eyJhdWQiOiIwNGIwNzc5NS04ZGRiLTQ2MWEtYmJlZS0wMmY5ZTFiZjdiNDYiLCJpc3MiOiJodHRwczovL2xvZ2luLm1pY3Jvc29mdG9ubGluZS5jb20vYzU0ZmFjODgtM2RkMy00NjFmLWE3YzQtOGEzNjhlMDM0MGIzL3YyLjAiLCJpYXQiOjE2MzcxODcyMDksIm5iZiI6MTYzNzE4NzIwOSwiZXhwIjoxNjM3MTkxMTA5LCJhaW8iOiJBWFFBaS84VEFBQUE2TEIyelluZGdKU2dGMFg3bFNCdmZDdmVMOWpHaWRvQytCNW9LdG43VTYrN0tmcXpPSElNQkIvK2phdWYzVmVWUUc4RElxbGVDZjFWZGxFZHZ6SzluaDRuakFGell4VndFUnpZakZrM1BtSmdiR1NQVzdNcENHdzlUNGFWME9RTTBDWDMxY2VKUkl4c1JCT0lUNWhBQXc9PSIsImlkcCI6Imh0dHBzOi8vc3RzLndpbmRvd3MubmV0LzcyZjk4OGJmLTg2ZjEtNDFhZi05MWFiLTJkN2NkMDExZGI0Ny8iLCJuYW1lIjoiQ2hhcmxlcyBMb3dlbGwiLCJwcmVmZXJyZWRfdXNlcm5hbWUiOiJjaGxvd2VAbWljcm9zb2Z0LmNvbSIsInJoIjoiMC5BUzBBaUt4UHhkTTlIMGFueElvMmpnTkFzNVYzc0FUYmpScEd1LTRDLWVHX2UwWXRBTHcuIiwic3ViIjoiaTAyeDB0VlRvZml5ZEItbHpDcllrZHFMMG9WWURJa1FZOWxjQkRaektYWSIsInRpZCI6ImM1NGZhYzg4LTNkZDMtNDYxZi1hN2M0LThhMzY4ZTAzNDBiMyIsInV0aSI6IlhhLTAzaEJYaEVDQzFlTnBBUG4tQUEiLCJ2ZXIiOiIyLjAifQ.jB_62weja3xe6gS25CuoGjWz0QoWflJwg-SVoCZfN9ceZoikftx2rh0elh-_qmh53TSHQM4txybxH02weo_K4tVR-g_KJB9BhsmN_RiHNrYZGC1UZ8R0pYFq3nYXo6XYyN1pN1GD8S6R_DB59IWGBe3TqBoMavn3tGHqXGipnKVkFMGvmoj5ac8MwAU4JoZizLla7Ue6QP_X_FsMaVIHI5W3WpVgHr-JQk8CoDgeiSFLkkjsJtx84Lpz6EVuObfMJ0yG00_zWuzPeDce6yTvirB0RaoY3jUiemwIEAqXliCYL9x4V930OxsPnR4Jtk8IK63ryRS6QcIMd_7JnpsaOw", - "client_info": "eyJ1aWQiOiI3NDY3NzU1OC1mMzY5LTQ3OTItYWZlNS1mOTk3MzhiNWZhN2MiLCJ1dGlkIjoiNzJmOTg4YmYtODZmMS00MWFmLTkxYWItMmQ3Y2QwMTFkYjQ3In0" - } - } - ], - "Variables": {} -} diff --git a/sdk/azidentity/testdata/recordings/TestEnvironmentCredentialADFS_ClientSecretLive.json b/sdk/azidentity/testdata/recordings/TestEnvironmentCredentialADFS_ClientSecretLive.json deleted file mode 100644 index 9fd2093bdf2a..000000000000 --- a/sdk/azidentity/testdata/recordings/TestEnvironmentCredentialADFS_ClientSecretLive.json +++ /dev/null @@ -1,145 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://fake.adfs.local/adfs/.well-known/openid-configuration", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v1.3.0-beta.3 (go1.19.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Content-Length": "1986", - "Content-Security-Policy": "default-src \u0027self\u0027 \u0027unsafe-inline\u0027 \u0027unsafe-eval\u0027; img-src \u0027self\u0027 data:;", - "Content-Type": "application/json; charset=UTF-8", - "Date": "Mon, 30 Jan 2023 17:45:18 GMT", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age = 31536000", - "X-Content-Type-Options": "nosniff", - "X-XSS-Protection": "1; mode=block" - }, - "ResponseBody": { - "issuer": "https://fake.adfs.local/adfs/eae0822e-4c1b-41cf-8d9e-6bddf440029c/", - "authorization_endpoint": "https://fake.adfs.local/adfs/oauth2/authorize/", - "token_endpoint": "https://fake.adfs.local/adfs/oauth2/token/", - "jwks_uri": "https://fake.adfs.local/adfs/discovery/keys", - "token_endpoint_auth_methods_supported": [ - "client_secret_post", - "client_secret_basic", - "private_key_jwt", - "windows_client_authentication" - ], - "response_types_supported": [ - "code", - "id_token", - "code id_token", - "id_token token", - "code token", - "code id_token token" - ], - "response_modes_supported": [ - "query", - "fragment", - "form_post" - ], - "grant_types_supported": [ - "authorization_code", - "refresh_token", - "client_credentials", - "urn:ietf:params:oauth:grant-type:jwt-bearer", - "implicit", - "password", - "srv_challenge", - "urn:ietf:params:oauth:grant-type:device_code", - "device_code" - ], - "subject_types_supported": [ - "pairwise" - ], - "scopes_supported": [ - "aza", - "logon_cert", - "profile", - ".default", - "vpn_cert", - "email", - "openid", - "allatclaims", - "user_impersonation", - "winhello_cert" - ], - "id_token_signing_alg_values_supported": [ - "RS256" - ], - "token_endpoint_auth_signing_alg_values_supported": [ - "RS256" - ], - "access_token_issuer": "https://fake.adfs.local/adfs/eae0822e-4c1b-41cf-8d9e-6bddf440029c/", - "claims_supported": [ - "aud", - "iss", - "iat", - "exp", - "auth_time", - "nonce", - "at_hash", - "c_hash", - "sub", - "upn", - "unique_name", - "pwd_url", - "pwd_exp", - "mfa_auth_time", - "sid", - "nbf" - ], - "microsoft_multi_refresh_token": true, - "userinfo_endpoint": "https://fake.adfs.local/adfs/userinfo", - "capabilities": [ - "kdf_ver2" - ], - "end_session_endpoint": "https://fake.adfs.local/adfs/oauth2/logout", - "as_access_token_token_binding_supported": false, - "as_refresh_token_token_binding_supported": false, - "resource_access_token_token_binding_supported": false, - "op_id_token_token_binding_supported": false, - "rp_id_token_token_binding_supported": false, - "frontchannel_logout_supported": true, - "frontchannel_logout_session_supported": true, - "device_authorization_endpoint": "https://fake.adfs.local/adfs/oauth2/devicecode" - } - }, - { - "RequestUri": "https://fake.adfs.local/adfs/oauth2/token/", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Content-Length": "2", - "Content-Type": "application/x-www-form-urlencoded; charset=utf-8", - "User-Agent": "azsdk-go-azidentity/v1.3.0-beta.3 (go1.19.3; Windows_NT)" - }, - "RequestBody": {}, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store", - "Content-Length": "136", - "Content-Security-Policy": "default-src \u0027self\u0027 \u0027unsafe-inline\u0027 \u0027unsafe-eval\u0027; img-src \u0027self\u0027 data:;", - "Content-Type": "application/json; charset=UTF-8", - "Date": "Mon, 30 Jan 2023 17:45:18 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age = 31536000", - "X-Content-Type-Options": "nosniff", - "X-XSS-Protection": "1; mode=block" - }, - "ResponseBody": { - "access_token": "redacted", - "token_type": "bearer", - "expires_in": 3600, - "scope": "profile openid https://fake.adfs.local/fake-scope/.default" - } - } - ], - "Variables": {} -} diff --git a/sdk/azidentity/testdata/recordings/TestEnvironmentCredentialADFS_UserPasswordLive.json b/sdk/azidentity/testdata/recordings/TestEnvironmentCredentialADFS_UserPasswordLive.json deleted file mode 100644 index b628ddd78d6c..000000000000 --- a/sdk/azidentity/testdata/recordings/TestEnvironmentCredentialADFS_UserPasswordLive.json +++ /dev/null @@ -1,149 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://fake.adfs.local/adfs/.well-known/openid-configuration", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v1.3.0-beta.3 (go1.19.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Content-Length": "1986", - "Content-Security-Policy": "default-src \u0027self\u0027 \u0027unsafe-inline\u0027 \u0027unsafe-eval\u0027; img-src \u0027self\u0027 data:;", - "Content-Type": "application/json; charset=UTF-8", - "Date": "Mon, 30 Jan 2023 17:45:46 GMT", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age = 31536000", - "X-Content-Type-Options": "nosniff", - "X-XSS-Protection": "1; mode=block" - }, - "ResponseBody": { - "issuer": "https://fake.adfs.local/adfs/eae0822e-4c1b-41cf-8d9e-6bddf440029c/", - "authorization_endpoint": "https://fake.adfs.local/adfs/oauth2/authorize/", - "token_endpoint": "https://fake.adfs.local/adfs/oauth2/token/", - "jwks_uri": "https://fake.adfs.local/adfs/discovery/keys", - "token_endpoint_auth_methods_supported": [ - "client_secret_post", - "client_secret_basic", - "private_key_jwt", - "windows_client_authentication" - ], - "response_types_supported": [ - "code", - "id_token", - "code id_token", - "id_token token", - "code token", - "code id_token token" - ], - "response_modes_supported": [ - "query", - "fragment", - "form_post" - ], - "grant_types_supported": [ - "authorization_code", - "refresh_token", - "client_credentials", - "urn:ietf:params:oauth:grant-type:jwt-bearer", - "implicit", - "password", - "srv_challenge", - "urn:ietf:params:oauth:grant-type:device_code", - "device_code" - ], - "subject_types_supported": [ - "pairwise" - ], - "scopes_supported": [ - "aza", - "logon_cert", - "profile", - ".default", - "vpn_cert", - "email", - "openid", - "allatclaims", - "user_impersonation", - "winhello_cert" - ], - "id_token_signing_alg_values_supported": [ - "RS256" - ], - "token_endpoint_auth_signing_alg_values_supported": [ - "RS256" - ], - "access_token_issuer": "https://fake.adfs.local/adfs/eae0822e-4c1b-41cf-8d9e-6bddf440029c/", - "claims_supported": [ - "aud", - "iss", - "iat", - "exp", - "auth_time", - "nonce", - "at_hash", - "c_hash", - "sub", - "upn", - "unique_name", - "pwd_url", - "pwd_exp", - "mfa_auth_time", - "sid", - "nbf" - ], - "microsoft_multi_refresh_token": true, - "userinfo_endpoint": "https://fake.adfs.local/adfs/userinfo", - "capabilities": [ - "kdf_ver2" - ], - "end_session_endpoint": "https://fake.adfs.local/adfs/oauth2/logout", - "as_access_token_token_binding_supported": false, - "as_refresh_token_token_binding_supported": false, - "resource_access_token_token_binding_supported": false, - "op_id_token_token_binding_supported": false, - "rp_id_token_token_binding_supported": false, - "frontchannel_logout_supported": true, - "frontchannel_logout_session_supported": true, - "device_authorization_endpoint": "https://fake.adfs.local/adfs/oauth2/devicecode" - } - }, - { - "RequestUri": "https://fake.adfs.local/adfs/oauth2/token/", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Content-Length": "2", - "Content-Type": "application/x-www-form-urlencoded; charset=utf-8", - "User-Agent": "azsdk-go-azidentity/v1.3.0-beta.3 (go1.19.3; Windows_NT)" - }, - "RequestBody": {}, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store", - "Content-Length": "2500", - "Content-Security-Policy": "default-src \u0027self\u0027 \u0027unsafe-inline\u0027 \u0027unsafe-eval\u0027; img-src \u0027self\u0027 data:;", - "Content-Type": "application/json; charset=UTF-8", - "Date": "Mon, 30 Jan 2023 17:45:46 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age = 31536000", - "X-Content-Type-Options": "nosniff", - "X-XSS-Protection": "1; mode=block" - }, - "ResponseBody": { - "access_token": "redacted", - "token_type": "bearer", - "expires_in": 3600, - "resource": "https://adminmanagement.adfs.redmond.selfhost.local/eae0822e-4c1b-41cf-8d9e-6bddf440029c", - "refresh_token": "redacted", - "refresh_token_expires_in": 143999, - "scope": "profile openid https://fake.adfs.local/fake-scope/.default", - "id_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6InRoYUE3NzlSUlZvRWNwWmp5VnlKNXZhMm1oSSIsImtpZCI6InRoYUE3NzlSUlZvRWNwWmp5VnlKNXZhMm1oSSJ9.eyJhdWQiOiIxOTUwYTI1OC0yMjdiLTRlMzEtYTljZi03MTc0OTU5NDVmYzIiLCJpc3MiOiJodHRwczovL2FkZnMucmVkbW9uZC5henVyZXN0YWNrLmNvcnAubWljcm9zb2Z0LmNvbS9hZGZzL2VhZTA4MjJlLTRjMWItNDFjZi04ZDllLTZiZGRmNDQwMDI5Yy8iLCJpYXQiOjE2NzUxMDA3NDYsIm5iZiI6MTY3NTEwMDc0NiwiZXhwIjoxNjc1MTA0MzQ2LCJhdXRoX3RpbWUiOjE2NzUxMDA3NDYsInN1YiI6IllKRDVqQ0V2OHlzU0dsc0RSUGprd1ZQdkJPKzl4UGd3dXlJZ283NEkrNGs9Iiwic2lkIjoiUy0xLTUtMjEtMjc3NTU5MDAyNy0xMjk3MjE4MTQ3LTE2NzM5NDYwOTgtMTI4MSIsInVwbiI6IkNsb3VkQWRtaW5AcmVkbW9uZC5zZWxmaG9zdC5sb2NhbCIsInVuaXF1ZV9uYW1lIjoiQ2xvdWRBZG1pbkByZWRtb25kLnNlbGZob3N0LmxvY2FsIiwib2lkIjoiUy0xLTUtMjEtMjc3NTU5MDAyNy0xMjk3MjE4MTQ3LTE2NzM5NDYwOTgtMTI4MSIsInRpZCI6ImVhZTA4MjJlLTRjMWItNDFjZi04ZDllLTZiZGRmNDQwMDI5YyIsImdyb3VwcyI6WyJTLTEtNS0yMS0yNzc1NTkwMDI3LTEyOTcyMTgxNDctMTY3Mzk0NjA5OC01MTMiLCJTLTEtMS0wIiwiUy0xLTUtMzItNTQ1IiwiUy0xLTUtMiIsIlMtMS01LTExIiwiUy0xLTUtMTUiLCJTLTEtMTgtMSIsIlMtMS01LTIxLTI3NzU1OTAwMjctMTI5NzIxODE0Ny0xNjczOTQ2MDk4LTE1Njc0IiwiUy0xLTUtMjEtMjc3NTU5MDAyNy0xMjk3MjE4MTQ3LTE2NzM5NDYwOTgtMTEzOCJdLCJnaXZlbl9uYW1lIjoiQ2xvdWRBZG1pbiIsImFwcGlkYWNyIjoiMCIsImF1dGhtZXRob2QiOiJ1cm46b2FzaXM6bmFtZXM6dGM6U0FNTDoyLjA6YWM6Y2xhc3NlczpQYXNzd29yZFByb3RlY3RlZFRyYW5zcG9ydCIsIkFwcElkIjoiMTk1MGEyNTgtMjI3Yi00ZTMxLWE5Y2YtNzE3NDk1OTQ1ZmMyIiwiYXBwdHlwZSI6IlB1YmxpYyIsImFwcGlkIjoiMTk1MGEyNTgtMjI3Yi00ZTMxLWE5Y2YtNzE3NDk1OTQ1ZmMyIiwidmVyIjoiMS4wIiwic2NwIjoicHJvZmlsZSBvcGVuaWQgLmRlZmF1bHQifQ.t5-E1Jtot3WLvhD8idEkcK27OcfG3OxTJO0D5O_73arDjkpBIbouQE4SW-tUkQcNi-rXdyPm_rvu6z4ZknhJS2BO9aWiQhC1phY7YtWQtcrUsRk3ImiLnB8GCCMuXlmcZk9AKjoGXTv42X2XsTikjLJGnYJagpsfr21ktqp7ws1RTjCCQByUOJRznmWjHTjD-KjFcba-UXcEsrj17An-nrfQ9BEjhG4tlGH8BQpMTdV581_DYhugNItrFDQcluTqc1_L-5yblsPbpYYTXYWYKB1OzGCDW0rD-HmhyQUGP85LtI_xgtYPbGQViqoxFWKmxZmSy0J1CVFTYvscSL76I5HGrjrXP6NW2tF09frJIKaPXt0VmkrdQL1nl5-kUt0ArXfYyzRLndHILhoUMqxzogw7fTa0WFQYxBUhJw7z8F6pUrTtISLIyCNsiwNtVbboEAlSFWk8nNm0iVIgpyuBSKD1CdrgGaYY5gQeLntiBXGmOO2Tv9ZasM_UD-rJH7RXmdpzLy9bYht5QtLaEqVh6bTcYqq6jiVQg6mblRf3j_6leUb8RInWlk7lNs0995ckJV0sDkC-41bTeXGB8eoF1p4BdtuFRHlrILkG_2m9HO79TyAPG9Q2eJcn4n2qtYt_5lqtGjLkHjMYX_XrFbv_Uzh6kSjeiGyMne4L0WvUQ8k" - } - } - ], - "Variables": {} -} diff --git a/sdk/azidentity/testdata/recordings/TestEnvironmentCredential_ClientSecretLive/default_options.json b/sdk/azidentity/testdata/recordings/TestEnvironmentCredential_ClientSecretLive/default_options.json deleted file mode 100644 index ebdf14724f2e..000000000000 --- a/sdk/azidentity/testdata/recordings/TestEnvironmentCredential_ClientSecretLive/default_options.json +++ /dev/null @@ -1,213 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https%3A%2F%2Flogin.microsoftonline.com%2Ffake-tenant%2Foauth2%2Fv2.0%2Fauthorize", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Methods": "GET, OPTIONS", - "Access-Control-Allow-Origin": "*", - "Cache-Control": "max-age=86400, private", - "Content-Length": "955", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:12 GMT", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMBgAAAAUigdkOAAAA; expires=Wed, 23-Feb-2022 22:41:12 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12381.20 - NCUS ProdSlices", - "x-ms-request-id": "43ab3c4c-81eb-4605-8058-96cf2dc84b00" - }, - "ResponseBody": { - "tenant_discovery_endpoint": "https://login.microsoftonline.com/fake-tenant/v2.0/.well-known/openid-configuration", - "api-version": "1.1", - "metadata": [ - { - "preferred_network": "login.microsoftonline.com", - "preferred_cache": "login.windows.net", - "aliases": [ - "login.microsoftonline.com", - "login.windows.net", - "login.microsoft.com", - "sts.windows.net" - ] - }, - { - "preferred_network": "login.partner.microsoftonline.cn", - "preferred_cache": "login.partner.microsoftonline.cn", - "aliases": [ - "login.partner.microsoftonline.cn", - "login.chinacloudapi.cn" - ] - }, - { - "preferred_network": "login.microsoftonline.de", - "preferred_cache": "login.microsoftonline.de", - "aliases": [ - "login.microsoftonline.de" - ] - }, - { - "preferred_network": "login.microsoftonline.us", - "preferred_cache": "login.microsoftonline.us", - "aliases": [ - "login.microsoftonline.us", - "login.usgovcloudapi.net" - ] - }, - { - "preferred_network": "login-us.microsoftonline.com", - "preferred_cache": "login-us.microsoftonline.com", - "aliases": [ - "login-us.microsoftonline.com" - ] - } - ] - } - }, - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/v2.0/.well-known/openid-configuration", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Methods": "GET, OPTIONS", - "Access-Control-Allow-Origin": "*", - "Cache-Control": "max-age=86400, private", - "Content-Length": "1578", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:12 GMT", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMBgAAAAUigdkOAAAA; expires=Wed, 23-Feb-2022 22:41:13 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - SCUS ProdSlices", - "x-ms-request-id": "d9754b96-c9f2-4215-84a2-dcfa069bd600" - }, - "ResponseBody": { - "token_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "token_endpoint_auth_methods_supported": [ - "client_secret_post", - "private_key_jwt", - "client_secret_basic" - ], - "jwks_uri": "https://login.microsoftonline.com/fake-tenant/discovery/v2.0/keys", - "response_modes_supported": [ - "query", - "fragment", - "form_post" - ], - "subject_types_supported": [ - "pairwise" - ], - "id_token_signing_alg_values_supported": [ - "RS256" - ], - "response_types_supported": [ - "code", - "id_token", - "code id_token", - "id_token token" - ], - "scopes_supported": [ - "openid", - "profile", - "email", - "offline_access" - ], - "issuer": "https://login.microsoftonline.com/fake-tenant/v2.0", - "request_uri_parameter_supported": false, - "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", - "authorization_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/authorize", - "device_authorization_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/devicecode", - "http_logout_supported": true, - "frontchannel_logout_supported": true, - "end_session_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/logout", - "claims_supported": [ - "sub", - "iss", - "cloud_instance_name", - "cloud_instance_host_name", - "cloud_graph_host_name", - "msgraph_host", - "aud", - "exp", - "iat", - "auth_time", - "acr", - "nonce", - "preferred_username", - "name", - "tid", - "ver", - "at_hash", - "c_hash", - "email" - ], - "kerberos_endpoint": "https://login.microsoftonline.com/fake-tenant/kerberos", - "tenant_region_scope": "NA", - "cloud_instance_name": "microsoftonline.com", - "cloud_graph_host_name": "graph.windows.net", - "msgraph_host": "graph.microsoft.com", - "rbac_url": "https://pas.windows.net" - } - }, - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "RequestMethod": "POST", - "RequestHeaders": { - ":method": "POST", - "Accept-Encoding": "gzip", - "Content-Length": "2", - "Content-Type": "application/x-www-form-urlencoded; charset=utf-8", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": {}, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Length": "89", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:12 GMT", - "Expires": "-1", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Pragma": "no-cache", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMBwAAAAUigdkOAAAA; expires=Wed, 23-Feb-2022 22:41:13 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - EUS ProdSlices", - "x-ms-request-id": "a0ff3da8-9a6b-4a93-b27e-8e4e5f6cfd00" - }, - "ResponseBody": { - "token_type": "Bearer", - "expires_in": 3599, - "ext_expires_in": 3599, - "access_token": "redacted" - } - } - ], - "Variables": {} -} diff --git a/sdk/azidentity/testdata/recordings/TestEnvironmentCredential_ClientSecretLive/instance_discovery_disabled.json b/sdk/azidentity/testdata/recordings/TestEnvironmentCredential_ClientSecretLive/instance_discovery_disabled.json deleted file mode 100644 index cf8c6325beaf..000000000000 --- a/sdk/azidentity/testdata/recordings/TestEnvironmentCredential_ClientSecretLive/instance_discovery_disabled.json +++ /dev/null @@ -1,136 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/v2.0/.well-known/openid-configuration", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v1.3.0-beta.3 (go1.19.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Methods": "GET, OPTIONS", - "Access-Control-Allow-Origin": "*", - "Cache-Control": "max-age=86400, private", - "Content-Length": "1578", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 27 Jan 2023 00:38:03 GMT", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Set-Cookie": [ - "fpc=AtldTtlEjTNPhKsSvKLZB72uN0zNAwAAAKkSZdsOAAAAdXkq2AIAAAAeE2XbDgAAALtMnBACAAAAZRNl2w4AAAA; expires=Sun, 26-Feb-2023 00:38:03 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.14357.8 - WUS2 ProdSlices", - "x-ms-request-id": "759172d1-9f39-4e83-820a-9b6d8b108801", - "X-XSS-Protection": "0" - }, - "ResponseBody": { - "token_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "token_endpoint_auth_methods_supported": [ - "client_secret_post", - "private_key_jwt", - "client_secret_basic" - ], - "jwks_uri": "https://login.microsoftonline.com/fake-tenant/discovery/v2.0/keys", - "response_modes_supported": [ - "query", - "fragment", - "form_post" - ], - "subject_types_supported": [ - "pairwise" - ], - "id_token_signing_alg_values_supported": [ - "RS256" - ], - "response_types_supported": [ - "code", - "id_token", - "code id_token", - "id_token token" - ], - "scopes_supported": [ - "openid", - "profile", - "email", - "offline_access" - ], - "issuer": "https://login.microsoftonline.com/fake-tenant/v2.0", - "request_uri_parameter_supported": false, - "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", - "authorization_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/authorize", - "device_authorization_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/devicecode", - "http_logout_supported": true, - "frontchannel_logout_supported": true, - "end_session_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/logout", - "claims_supported": [ - "sub", - "iss", - "cloud_instance_name", - "cloud_instance_host_name", - "cloud_graph_host_name", - "msgraph_host", - "aud", - "exp", - "iat", - "auth_time", - "acr", - "nonce", - "preferred_username", - "name", - "tid", - "ver", - "at_hash", - "c_hash", - "email" - ], - "kerberos_endpoint": "https://login.microsoftonline.com/fake-tenant/kerberos", - "tenant_region_scope": "NA", - "cloud_instance_name": "microsoftonline.com", - "cloud_graph_host_name": "graph.windows.net", - "msgraph_host": "graph.microsoft.com", - "rbac_url": "https://pas.windows.net" - } - }, - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Content-Length": "2", - "Content-Type": "application/x-www-form-urlencoded; charset=utf-8", - "User-Agent": "azsdk-go-azidentity/v1.3.0-beta.3 (go1.19.3; Windows_NT)" - }, - "RequestBody": {}, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Length": "89", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 27 Jan 2023 00:38:03 GMT", - "Expires": "-1", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Pragma": "no-cache", - "Set-Cookie": [ - "fpc=AtldTtlEjTNPhKsSvKLZB72uN0zNAQAAANUTZdsOAAAAdXkq2AIAAAAeE2XbDgAAALtMnBACAAAAZRNl2w4AAAA; expires=Sun, 26-Feb-2023 00:38:03 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.14357.8 - WUS2 ProdSlices", - "x-ms-request-id": "c1bb1c89-79f3-457b-9093-f7b9af423701", - "X-XSS-Protection": "0" - }, - "ResponseBody": { - "token_type": "Bearer", - "expires_in": 3599, - "ext_expires_in": 3599, - "access_token": "redacted" - } - } - ], - "Variables": {} -} diff --git a/sdk/azidentity/testdata/recordings/TestEnvironmentCredential_InvalidClientSecretLive.json b/sdk/azidentity/testdata/recordings/TestEnvironmentCredential_InvalidClientSecretLive.json deleted file mode 100644 index 33d8517ecb44..000000000000 --- a/sdk/azidentity/testdata/recordings/TestEnvironmentCredential_InvalidClientSecretLive.json +++ /dev/null @@ -1,218 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https%3A%2F%2Flogin.microsoftonline.com%2Ffake-tenant%2Foauth2%2Fv2.0%2Fauthorize", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Methods": "GET, OPTIONS", - "Access-Control-Allow-Origin": "*", - "Cache-Control": "max-age=86400, private", - "Content-Length": "955", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:12 GMT", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMBwAAAAUigdkOAAAA; expires=Wed, 23-Feb-2022 22:41:13 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - NCUS ProdSlices", - "x-ms-request-id": "b37f4dd8-15c3-4914-aeec-1c76be585a00" - }, - "ResponseBody": { - "tenant_discovery_endpoint": "https://login.microsoftonline.com/fake-tenant/v2.0/.well-known/openid-configuration", - "api-version": "1.1", - "metadata": [ - { - "preferred_network": "login.microsoftonline.com", - "preferred_cache": "login.windows.net", - "aliases": [ - "login.microsoftonline.com", - "login.windows.net", - "login.microsoft.com", - "sts.windows.net" - ] - }, - { - "preferred_network": "login.partner.microsoftonline.cn", - "preferred_cache": "login.partner.microsoftonline.cn", - "aliases": [ - "login.partner.microsoftonline.cn", - "login.chinacloudapi.cn" - ] - }, - { - "preferred_network": "login.microsoftonline.de", - "preferred_cache": "login.microsoftonline.de", - "aliases": [ - "login.microsoftonline.de" - ] - }, - { - "preferred_network": "login.microsoftonline.us", - "preferred_cache": "login.microsoftonline.us", - "aliases": [ - "login.microsoftonline.us", - "login.usgovcloudapi.net" - ] - }, - { - "preferred_network": "login-us.microsoftonline.com", - "preferred_cache": "login-us.microsoftonline.com", - "aliases": [ - "login-us.microsoftonline.com" - ] - } - ] - } - }, - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/v2.0/.well-known/openid-configuration", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Methods": "GET, OPTIONS", - "Access-Control-Allow-Origin": "*", - "Cache-Control": "max-age=86400, private", - "Content-Length": "1578", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:12 GMT", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMBwAAAAUigdkOAAAA; expires=Wed, 23-Feb-2022 22:41:13 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - SCUS ProdSlices", - "x-ms-request-id": "7e3f8ad4-ea8b-4ee0-b49e-2844800ed300" - }, - "ResponseBody": { - "token_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "token_endpoint_auth_methods_supported": [ - "client_secret_post", - "private_key_jwt", - "client_secret_basic" - ], - "jwks_uri": "https://login.microsoftonline.com/fake-tenant/discovery/v2.0/keys", - "response_modes_supported": [ - "query", - "fragment", - "form_post" - ], - "subject_types_supported": [ - "pairwise" - ], - "id_token_signing_alg_values_supported": [ - "RS256" - ], - "response_types_supported": [ - "code", - "id_token", - "code id_token", - "id_token token" - ], - "scopes_supported": [ - "openid", - "profile", - "email", - "offline_access" - ], - "issuer": "https://login.microsoftonline.com/fake-tenant/v2.0", - "request_uri_parameter_supported": false, - "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", - "authorization_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/authorize", - "device_authorization_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/devicecode", - "http_logout_supported": true, - "frontchannel_logout_supported": true, - "end_session_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/logout", - "claims_supported": [ - "sub", - "iss", - "cloud_instance_name", - "cloud_instance_host_name", - "cloud_graph_host_name", - "msgraph_host", - "aud", - "exp", - "iat", - "auth_time", - "acr", - "nonce", - "preferred_username", - "name", - "tid", - "ver", - "at_hash", - "c_hash", - "email" - ], - "kerberos_endpoint": "https://login.microsoftonline.com/fake-tenant/kerberos", - "tenant_region_scope": "NA", - "cloud_instance_name": "microsoftonline.com", - "cloud_graph_host_name": "graph.windows.net", - "msgraph_host": "graph.microsoft.com", - "rbac_url": "https://pas.windows.net" - } - }, - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "RequestMethod": "POST", - "RequestHeaders": { - ":method": "POST", - "Accept-Encoding": "gzip", - "Content-Length": "2", - "Content-Type": "application/x-www-form-urlencoded; charset=utf-8", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": {}, - "StatusCode": 401, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Length": "471", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:12 GMT", - "Expires": "-1", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Pragma": "no-cache", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMCAAAAAUigdkOAAAA; expires=Wed, 23-Feb-2022 22:41:13 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - SCUS ProdSlices", - "x-ms-request-id": "b266fc08-8ca0-436d-892d-fc938509d300" - }, - "ResponseBody": { - "error": "invalid_client", - "error_description": "AADSTS7000215: Invalid client secret is provided.\r\nTrace ID: b266fc08-8ca0-436d-892d-fc938509d300\r\nCorrelation ID: 23c34cfd-c80d-44b2-80b8-8985f01b24d3\r\nTimestamp: 2022-01-24 22:41:13Z", - "error_codes": [ - 7000215 - ], - "timestamp": "2022-01-24 22:41:13Z", - "trace_id": "b266fc08-8ca0-436d-892d-fc938509d300", - "correlation_id": "23c34cfd-c80d-44b2-80b8-8985f01b24d3", - "error_uri": "https://login.microsoftonline.com/error?code=7000215" - } - } - ], - "Variables": {} -} diff --git a/sdk/azidentity/testdata/recordings/TestEnvironmentCredential_InvalidPasswordLive.json b/sdk/azidentity/testdata/recordings/TestEnvironmentCredential_InvalidPasswordLive.json deleted file mode 100644 index b437ffe541ee..000000000000 --- a/sdk/azidentity/testdata/recordings/TestEnvironmentCredential_InvalidPasswordLive.json +++ /dev/null @@ -1,255 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https%3A%2F%2Flogin.microsoftonline.com%2Ffake-tenant%2Foauth2%2Fv2.0%2Fauthorize", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Methods": "GET, OPTIONS", - "Access-Control-Allow-Origin": "*", - "Cache-Control": "max-age=86400, private", - "Content-Length": "955", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:13 GMT", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMCAAAAAUigdkOAAAAT6t2KAEAAAAJIoHZDgAAAA; expires=Wed, 23-Feb-2022 22:41:14 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - EUS ProdSlices", - "x-ms-request-id": "ac3cb3e2-cdb2-4e78-8c2b-006ca4681c00" - }, - "ResponseBody": { - "tenant_discovery_endpoint": "https://login.microsoftonline.com/fake-tenant/v2.0/.well-known/openid-configuration", - "api-version": "1.1", - "metadata": [ - { - "preferred_network": "login.microsoftonline.com", - "preferred_cache": "login.windows.net", - "aliases": [ - "login.microsoftonline.com", - "login.windows.net", - "login.microsoft.com", - "sts.windows.net" - ] - }, - { - "preferred_network": "login.partner.microsoftonline.cn", - "preferred_cache": "login.partner.microsoftonline.cn", - "aliases": [ - "login.partner.microsoftonline.cn", - "login.chinacloudapi.cn" - ] - }, - { - "preferred_network": "login.microsoftonline.de", - "preferred_cache": "login.microsoftonline.de", - "aliases": [ - "login.microsoftonline.de" - ] - }, - { - "preferred_network": "login.microsoftonline.us", - "preferred_cache": "login.microsoftonline.us", - "aliases": [ - "login.microsoftonline.us", - "login.usgovcloudapi.net" - ] - }, - { - "preferred_network": "login-us.microsoftonline.com", - "preferred_cache": "login-us.microsoftonline.com", - "aliases": [ - "login-us.microsoftonline.com" - ] - } - ] - } - }, - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/v2.0/.well-known/openid-configuration", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Methods": "GET, OPTIONS", - "Access-Control-Allow-Origin": "*", - "Cache-Control": "max-age=86400, private", - "Content-Length": "1578", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:13 GMT", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMCAAAAAUigdkOAAAAT6t2KAEAAAAJIoHZDgAAAA; expires=Wed, 23-Feb-2022 22:41:14 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - NCUS ProdSlices", - "x-ms-request-id": "a4be07f0-9bbb-43a2-8435-3ac05bbf5300" - }, - "ResponseBody": { - "token_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "token_endpoint_auth_methods_supported": [ - "client_secret_post", - "private_key_jwt", - "client_secret_basic" - ], - "jwks_uri": "https://login.microsoftonline.com/fake-tenant/discovery/v2.0/keys", - "response_modes_supported": [ - "query", - "fragment", - "form_post" - ], - "subject_types_supported": [ - "pairwise" - ], - "id_token_signing_alg_values_supported": [ - "RS256" - ], - "response_types_supported": [ - "code", - "id_token", - "code id_token", - "id_token token" - ], - "scopes_supported": [ - "openid", - "profile", - "email", - "offline_access" - ], - "issuer": "https://login.microsoftonline.com/fake-tenant/v2.0", - "request_uri_parameter_supported": false, - "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", - "authorization_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/authorize", - "device_authorization_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/devicecode", - "http_logout_supported": true, - "frontchannel_logout_supported": true, - "end_session_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/logout", - "claims_supported": [ - "sub", - "iss", - "cloud_instance_name", - "cloud_instance_host_name", - "cloud_graph_host_name", - "msgraph_host", - "aud", - "exp", - "iat", - "auth_time", - "acr", - "nonce", - "preferred_username", - "name", - "tid", - "ver", - "at_hash", - "c_hash", - "email" - ], - "kerberos_endpoint": "https://login.microsoftonline.com/fake-tenant/kerberos", - "tenant_region_scope": "NA", - "cloud_instance_name": "microsoftonline.com", - "cloud_graph_host_name": "graph.windows.net", - "msgraph_host": "graph.microsoft.com", - "rbac_url": "https://pas.windows.net" - } - }, - { - "RequestUri": "https://login.microsoftonline.com/common/UserRealm/fake@user?api-version=1.0", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Disposition": "inline; filename=userrealm.json", - "Content-Length": "184", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:13 GMT", - "Expires": "-1", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Pragma": "no-cache", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMCAAAAAUigdkOAAAAT6t2KAEAAAAJIoHZDgAAAA; expires=Wed, 23-Feb-2022 22:41:14 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - EUS ProdSlices", - "x-ms-request-id": "3f05cebe-06a6-44f9-a3b9-93c40a25a400" - }, - "ResponseBody": { - "ver": "1.0", - "account_type": "Managed", - "domain_name": "azuresdkoutlook.onmicrosoft.com", - "cloud_instance_name": "microsoftonline.com", - "cloud_audience_urn": "urn:federation:MicrosoftOnline" - } - }, - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "RequestMethod": "POST", - "RequestHeaders": { - ":method": "POST", - "Accept-Encoding": "gzip", - "Content-Length": "2", - "Content-Type": "application/x-www-form-urlencoded; charset=utf-8", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": {}, - "StatusCode": 400, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Length": "495", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:14 GMT", - "Expires": "-1", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Pragma": "no-cache", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMCAAAAAUigdkOAAAAT6t2KAIAAAAJIoHZDgAAAA; expires=Wed, 23-Feb-2022 22:41:14 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - SCUS ProdSlices", - "x-ms-request-id": "be3e1080-9e7f-418d-9c32-dc4278f2d400" - }, - "ResponseBody": { - "error": "invalid_grant", - "error_description": "AADSTS50126: Error validating credentials due to invalid username or password.\r\nTrace ID: be3e1080-9e7f-418d-9c32-dc4278f2d400\r\nCorrelation ID: 2021f9d7-b14d-4d41-94e7-b8f068abaaba\r\nTimestamp: 2022-01-24 22:41:14Z", - "error_codes": [ - 50126 - ], - "timestamp": "2022-01-24 22:41:14Z", - "trace_id": "be3e1080-9e7f-418d-9c32-dc4278f2d400", - "correlation_id": "2021f9d7-b14d-4d41-94e7-b8f068abaaba", - "error_uri": "https://login.microsoftonline.com/error?code=50126" - } - } - ], - "Variables": {} -} diff --git a/sdk/azidentity/testdata/recordings/TestEnvironmentCredential_UserPasswordLive/default_options.json b/sdk/azidentity/testdata/recordings/TestEnvironmentCredential_UserPasswordLive/default_options.json deleted file mode 100644 index d5f20c0e0ed5..000000000000 --- a/sdk/azidentity/testdata/recordings/TestEnvironmentCredential_UserPasswordLive/default_options.json +++ /dev/null @@ -1,255 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https%3A%2F%2Flogin.microsoftonline.com%2Ffake-tenant%2Foauth2%2Fv2.0%2Fauthorize", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Methods": "GET, OPTIONS", - "Access-Control-Allow-Origin": "*", - "Cache-Control": "max-age=86400, private", - "Content-Length": "955", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:12 GMT", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMCAAAAAUigdkOAAAA; expires=Wed, 23-Feb-2022 22:41:13 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - NCUS ProdSlices", - "x-ms-request-id": "34954104-afb6-4679-954f-cd83f1ac9800" - }, - "ResponseBody": { - "tenant_discovery_endpoint": "https://login.microsoftonline.com/fake-tenant/v2.0/.well-known/openid-configuration", - "api-version": "1.1", - "metadata": [ - { - "preferred_network": "login.microsoftonline.com", - "preferred_cache": "login.windows.net", - "aliases": [ - "login.microsoftonline.com", - "login.windows.net", - "login.microsoft.com", - "sts.windows.net" - ] - }, - { - "preferred_network": "login.partner.microsoftonline.cn", - "preferred_cache": "login.partner.microsoftonline.cn", - "aliases": [ - "login.partner.microsoftonline.cn", - "login.chinacloudapi.cn" - ] - }, - { - "preferred_network": "login.microsoftonline.de", - "preferred_cache": "login.microsoftonline.de", - "aliases": [ - "login.microsoftonline.de" - ] - }, - { - "preferred_network": "login.microsoftonline.us", - "preferred_cache": "login.microsoftonline.us", - "aliases": [ - "login.microsoftonline.us", - "login.usgovcloudapi.net" - ] - }, - { - "preferred_network": "login-us.microsoftonline.com", - "preferred_cache": "login-us.microsoftonline.com", - "aliases": [ - "login-us.microsoftonline.com" - ] - } - ] - } - }, - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/v2.0/.well-known/openid-configuration", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Methods": "GET, OPTIONS", - "Access-Control-Allow-Origin": "*", - "Cache-Control": "max-age=86400, private", - "Content-Length": "1578", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:13 GMT", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMCAAAAAUigdkOAAAA; expires=Wed, 23-Feb-2022 22:41:13 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - NCUS ProdSlices", - "x-ms-request-id": "c482b4f6-560f-4681-9a5f-fb1e1bee9600" - }, - "ResponseBody": { - "token_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "token_endpoint_auth_methods_supported": [ - "client_secret_post", - "private_key_jwt", - "client_secret_basic" - ], - "jwks_uri": "https://login.microsoftonline.com/fake-tenant/discovery/v2.0/keys", - "response_modes_supported": [ - "query", - "fragment", - "form_post" - ], - "subject_types_supported": [ - "pairwise" - ], - "id_token_signing_alg_values_supported": [ - "RS256" - ], - "response_types_supported": [ - "code", - "id_token", - "code id_token", - "id_token token" - ], - "scopes_supported": [ - "openid", - "profile", - "email", - "offline_access" - ], - "issuer": "https://login.microsoftonline.com/fake-tenant/v2.0", - "request_uri_parameter_supported": false, - "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", - "authorization_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/authorize", - "device_authorization_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/devicecode", - "http_logout_supported": true, - "frontchannel_logout_supported": true, - "end_session_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/logout", - "claims_supported": [ - "sub", - "iss", - "cloud_instance_name", - "cloud_instance_host_name", - "cloud_graph_host_name", - "msgraph_host", - "aud", - "exp", - "iat", - "auth_time", - "acr", - "nonce", - "preferred_username", - "name", - "tid", - "ver", - "at_hash", - "c_hash", - "email" - ], - "kerberos_endpoint": "https://login.microsoftonline.com/fake-tenant/kerberos", - "tenant_region_scope": "NA", - "cloud_instance_name": "microsoftonline.com", - "cloud_graph_host_name": "graph.windows.net", - "msgraph_host": "graph.microsoft.com", - "rbac_url": "https://pas.windows.net" - } - }, - { - "RequestUri": "https://login.microsoftonline.com/common/UserRealm/fake@user?api-version=1.0", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Disposition": "inline; filename=userrealm.json", - "Content-Length": "184", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:13 GMT", - "Expires": "-1", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Pragma": "no-cache", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMCAAAAAUigdkOAAAA; expires=Wed, 23-Feb-2022 22:41:14 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - EUS ProdSlices", - "x-ms-request-id": "3f05cebe-06a6-44f9-a3b9-93c4e624a400" - }, - "ResponseBody": { - "ver": "1.0", - "account_type": "Managed", - "domain_name": "azuresdkoutlook.onmicrosoft.com", - "cloud_instance_name": "microsoftonline.com", - "cloud_audience_urn": "urn:federation:MicrosoftOnline" - } - }, - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "RequestMethod": "POST", - "RequestHeaders": { - ":method": "POST", - "Accept-Encoding": "gzip", - "Content-Length": "2", - "Content-Type": "application/x-www-form-urlencoded; charset=utf-8", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": {}, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Length": "1673", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:13 GMT", - "Expires": "-1", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Pragma": "no-cache", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMCAAAAAUigdkOAAAAT6t2KAEAAAAJIoHZDgAAAA; expires=Wed, 23-Feb-2022 22:41:14 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - NCUS ProdSlices", - "x-ms-request-id": "a4be07f0-9bbb-43a2-8435-3ac04cbf5300" - }, - "ResponseBody": { - "token_type": "Bearer", - "scope": "https://management.core.windows.net//user_impersonation https://management.core.windows.net//.default", - "expires_in": 5101, - "ext_expires_in": 5101, - "access_token": "redacted", - "refresh_token": "redacted", - "foci": "1", - "id_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6Imwzc1EtNTBjQ0g0eEJWWkxIVEd3blNSNzY4MCJ9.eyJhdWQiOiIwNGIwNzc5NS04ZGRiLTQ2MWEtYmJlZS0wMmY5ZTFiZjdiNDYiLCJpc3MiOiJodHRwczovL2xvZ2luLm1pY3Jvc29mdG9ubGluZS5jb20vYzU0ZmFjODgtM2RkMy00NjFmLWE3YzQtOGEzNjhlMDM0MGIzL3YyLjAiLCJpYXQiOjE2Mzc2MDYxMzAsIm5iZiI6MTYzNzYwNjEzMCwiZXhwIjoxNjM3NjEwMDMwLCJhaW8iOiJBVVFBdS84VEFBQUFSWGljK0VsYzA4NTZDSnR0S1RDYTdqNGh5ZVJscjhUbms3VDIzR1Jld3ZoZy84KzYvem5CRW1wVDFwaFk1YnVXY3dlUk50VEFJM1c4Q1dhY1R0aGd3UT09IiwiaWRwIjoiaHR0cHM6Ly9zdHMud2luZG93cy5uZXQvZTBiZDIzMjEtMDdmYS00Y2YwLTg3YjgtMDBhYTJhNzQ3MzI5LyIsIm5hbWUiOiJJZGVudGl0eSBUZXN0IFVzZXIiLCJwcmVmZXJyZWRfdXNlcm5hbWUiOiJpZGVudGl0eXRlc3R1c2VyQGF6dXJlc2Rrb3V0bG9vay5vbm1pY3Jvc29mdC5jb20iLCJyaCI6IjAuQVMwQWlLeFB4ZE05SDBhbnhJbzJqZ05BczVWM3NBVGJqUnBHdS00Qy1lR19lMFl0QUxFLiIsInN1YiI6ImMxYTBsY2xtbWxCYW9wc0MwVmlaLVpPMjFCT2dSUXE3SG9HRUtOOXloZnMiLCJ0aWQiOiJjNTRmYWM4OC0zZGQzLTQ2MWYtYTdjNC04YTM2OGUwMzQwYjMiLCJ1dGkiOiI0WjJ2Rm1EMF9rU1BUTTZhcXFpUEFBIiwidmVyIjoiMi4wIn0.PfTaFdt0K1Kd3H1zNBrRpSDbf3Bu-JKwR-rpUNi6L6gOtHA6ixJUjkPtRMa2iwF9GCert_9K8Pzu8kqY0Y_fYZhTiI2a2G1BlR134JoWZJsoPZOxOiuHNBMDBwgkprRSOcIGLn7X_hwSNc8FBKC21ob9eRHFBGRIuSO9QQMd1EiW19F4Fj15u6Wqcg0L8_ucbnElS3hI-hkaodeaV9cwEqFc3yHHTz19pJyjnK52KH1YI5mTe3ThRlsqxWdH7ildiViGTflBbtCLtgcP-aTMozIggd1mtK0GEPfww6RGDhUESiGYXy2sMlkdPniwMf05dJ3nL4TVx-PVyF7aXbuFXA", - "client_info": "eyJ1aWQiOiJjNzNjNmYyOC1hZTVmLTQxM2QtYTlhMi1lMTFlNWFmNjY4ZjgiLCJ1dGlkIjoiZTBiZDIzMjEtMDdmYS00Y2YwLTg3YjgtMDBhYTJhNzQ3MzI5In0" - } - } - ], - "Variables": {} -} diff --git a/sdk/azidentity/testdata/recordings/TestEnvironmentCredential_UserPasswordLive/instance_discovery_disabled.json b/sdk/azidentity/testdata/recordings/TestEnvironmentCredential_UserPasswordLive/instance_discovery_disabled.json deleted file mode 100644 index 085d6f3c10d4..000000000000 --- a/sdk/azidentity/testdata/recordings/TestEnvironmentCredential_UserPasswordLive/instance_discovery_disabled.json +++ /dev/null @@ -1,180 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/v2.0/.well-known/openid-configuration", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Methods": "GET, OPTIONS", - "Access-Control-Allow-Origin": "*", - "Cache-Control": "max-age=86400, private", - "Content-Length": "1578", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:13 GMT", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMCAAAAAUigdkOAAAA; expires=Wed, 23-Feb-2022 22:41:13 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - NCUS ProdSlices", - "x-ms-request-id": "c482b4f6-560f-4681-9a5f-fb1e1bee9600" - }, - "ResponseBody": { - "token_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "token_endpoint_auth_methods_supported": [ - "client_secret_post", - "private_key_jwt", - "client_secret_basic" - ], - "jwks_uri": "https://login.microsoftonline.com/fake-tenant/discovery/v2.0/keys", - "response_modes_supported": [ - "query", - "fragment", - "form_post" - ], - "subject_types_supported": [ - "pairwise" - ], - "id_token_signing_alg_values_supported": [ - "RS256" - ], - "response_types_supported": [ - "code", - "id_token", - "code id_token", - "id_token token" - ], - "scopes_supported": [ - "openid", - "profile", - "email", - "offline_access" - ], - "issuer": "https://login.microsoftonline.com/fake-tenant/v2.0", - "request_uri_parameter_supported": false, - "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", - "authorization_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/authorize", - "device_authorization_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/devicecode", - "http_logout_supported": true, - "frontchannel_logout_supported": true, - "end_session_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/logout", - "claims_supported": [ - "sub", - "iss", - "cloud_instance_name", - "cloud_instance_host_name", - "cloud_graph_host_name", - "msgraph_host", - "aud", - "exp", - "iat", - "auth_time", - "acr", - "nonce", - "preferred_username", - "name", - "tid", - "ver", - "at_hash", - "c_hash", - "email" - ], - "kerberos_endpoint": "https://login.microsoftonline.com/fake-tenant/kerberos", - "tenant_region_scope": "NA", - "cloud_instance_name": "microsoftonline.com", - "cloud_graph_host_name": "graph.windows.net", - "msgraph_host": "graph.microsoft.com", - "rbac_url": "https://pas.windows.net" - } - }, - { - "RequestUri": "https://login.microsoftonline.com/common/UserRealm/fake@user?api-version=1.0", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Disposition": "inline; filename=userrealm.json", - "Content-Length": "184", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:13 GMT", - "Expires": "-1", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Pragma": "no-cache", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMCAAAAAUigdkOAAAA; expires=Wed, 23-Feb-2022 22:41:14 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - EUS ProdSlices", - "x-ms-request-id": "3f05cebe-06a6-44f9-a3b9-93c4e624a400" - }, - "ResponseBody": { - "ver": "1.0", - "account_type": "Managed", - "domain_name": "azuresdkoutlook.onmicrosoft.com", - "cloud_instance_name": "microsoftonline.com", - "cloud_audience_urn": "urn:federation:MicrosoftOnline" - } - }, - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "RequestMethod": "POST", - "RequestHeaders": { - ":method": "POST", - "Accept-Encoding": "gzip", - "Content-Length": "2", - "Content-Type": "application/x-www-form-urlencoded; charset=utf-8", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": {}, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Length": "1673", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:13 GMT", - "Expires": "-1", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Pragma": "no-cache", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMCAAAAAUigdkOAAAAT6t2KAEAAAAJIoHZDgAAAA; expires=Wed, 23-Feb-2022 22:41:14 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - NCUS ProdSlices", - "x-ms-request-id": "a4be07f0-9bbb-43a2-8435-3ac04cbf5300" - }, - "ResponseBody": { - "token_type": "Bearer", - "scope": "https://management.core.windows.net//user_impersonation https://management.core.windows.net//.default", - "expires_in": 5101, - "ext_expires_in": 5101, - "access_token": "redacted", - "refresh_token": "redacted", - "foci": "1", - "id_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6Imwzc1EtNTBjQ0g0eEJWWkxIVEd3blNSNzY4MCJ9.eyJhdWQiOiIwNGIwNzc5NS04ZGRiLTQ2MWEtYmJlZS0wMmY5ZTFiZjdiNDYiLCJpc3MiOiJodHRwczovL2xvZ2luLm1pY3Jvc29mdG9ubGluZS5jb20vYzU0ZmFjODgtM2RkMy00NjFmLWE3YzQtOGEzNjhlMDM0MGIzL3YyLjAiLCJpYXQiOjE2Mzc2MDYxMzAsIm5iZiI6MTYzNzYwNjEzMCwiZXhwIjoxNjM3NjEwMDMwLCJhaW8iOiJBVVFBdS84VEFBQUFSWGljK0VsYzA4NTZDSnR0S1RDYTdqNGh5ZVJscjhUbms3VDIzR1Jld3ZoZy84KzYvem5CRW1wVDFwaFk1YnVXY3dlUk50VEFJM1c4Q1dhY1R0aGd3UT09IiwiaWRwIjoiaHR0cHM6Ly9zdHMud2luZG93cy5uZXQvZTBiZDIzMjEtMDdmYS00Y2YwLTg3YjgtMDBhYTJhNzQ3MzI5LyIsIm5hbWUiOiJJZGVudGl0eSBUZXN0IFVzZXIiLCJwcmVmZXJyZWRfdXNlcm5hbWUiOiJpZGVudGl0eXRlc3R1c2VyQGF6dXJlc2Rrb3V0bG9vay5vbm1pY3Jvc29mdC5jb20iLCJyaCI6IjAuQVMwQWlLeFB4ZE05SDBhbnhJbzJqZ05BczVWM3NBVGJqUnBHdS00Qy1lR19lMFl0QUxFLiIsInN1YiI6ImMxYTBsY2xtbWxCYW9wc0MwVmlaLVpPMjFCT2dSUXE3SG9HRUtOOXloZnMiLCJ0aWQiOiJjNTRmYWM4OC0zZGQzLTQ2MWYtYTdjNC04YTM2OGUwMzQwYjMiLCJ1dGkiOiI0WjJ2Rm1EMF9rU1BUTTZhcXFpUEFBIiwidmVyIjoiMi4wIn0.PfTaFdt0K1Kd3H1zNBrRpSDbf3Bu-JKwR-rpUNi6L6gOtHA6ixJUjkPtRMa2iwF9GCert_9K8Pzu8kqY0Y_fYZhTiI2a2G1BlR134JoWZJsoPZOxOiuHNBMDBwgkprRSOcIGLn7X_hwSNc8FBKC21ob9eRHFBGRIuSO9QQMd1EiW19F4Fj15u6Wqcg0L8_ucbnElS3hI-hkaodeaV9cwEqFc3yHHTz19pJyjnK52KH1YI5mTe3ThRlsqxWdH7ildiViGTflBbtCLtgcP-aTMozIggd1mtK0GEPfww6RGDhUESiGYXy2sMlkdPniwMf05dJ3nL4TVx-PVyF7aXbuFXA", - "client_info": "eyJ1aWQiOiJjNzNjNmYyOC1hZTVmLTQxM2QtYTlhMi1lMTFlNWFmNjY4ZjgiLCJ1dGlkIjoiZTBiZDIzMjEtMDdmYS00Y2YwLTg3YjgtMDBhYTJhNzQ3MzI5In0" - } - } - ], - "Variables": {} -} \ No newline at end of file diff --git a/sdk/azidentity/testdata/recordings/TestManagedIdentityCredential_IMDSClientIDLive.json b/sdk/azidentity/testdata/recordings/TestManagedIdentityCredential_IMDSClientIDLive.json deleted file mode 100644 index 661ae2b3d327..000000000000 --- a/sdk/azidentity/testdata/recordings/TestManagedIdentityCredential_IMDSClientIDLive.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "http://169.254.169.254/metadata/identity/oauth2/token?api-version=2018-02-01\u0026client_id=fake-client-id\u0026resource=https%3A%2F%2Fmanagement.core.windows.net%2F", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "metadata": "true", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.3; linux)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Content-Length": "226", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 25 Jan 2022 01:25:03 GMT", - "Server": "IMDS/150.870.65.528" - }, - "ResponseBody": { - "access_token": "redacted", - "client_id": "fake-client-id", - "expires_in": "85771", - "expires_on": "1643159675", - "ext_expires_in": "86399", - "not_before": "1643072975", - "resource": "https://management.core.windows.net/", - "token_type": "Bearer" - } - } - ], - "Variables": {} -} diff --git a/sdk/azidentity/testdata/recordings/TestManagedIdentityCredential_IMDSLive.json b/sdk/azidentity/testdata/recordings/TestManagedIdentityCredential_IMDSLive.json deleted file mode 100644 index ab93ba728c11..000000000000 --- a/sdk/azidentity/testdata/recordings/TestManagedIdentityCredential_IMDSLive.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "http://169.254.169.254/metadata/identity/oauth2/token?api-version=2018-02-01\u0026resource=https%3A%2F%2Fmanagement.core.windows.net%2F", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "metadata": "true", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.3; linux)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Content-Length": "248", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 25 Jan 2022 01:25:03 GMT", - "Server": "IMDS/150.870.65.528" - }, - "ResponseBody": { - "access_token": "redacted", - "client_id": "615e6319-bf4f-4279-937c-b9eb198e511f", - "expires_in": "85770", - "expires_on": "1643159674", - "ext_expires_in": "86399", - "not_before": "1643072974", - "resource": "https://management.core.windows.net/", - "token_type": "Bearer" - } - } - ], - "Variables": {} -} diff --git a/sdk/azidentity/testdata/recordings/TestManagedIdentityCredential_IMDSResourceIDLive.json b/sdk/azidentity/testdata/recordings/TestManagedIdentityCredential_IMDSResourceIDLive.json deleted file mode 100644 index 8fb648188f2c..000000000000 --- a/sdk/azidentity/testdata/recordings/TestManagedIdentityCredential_IMDSResourceIDLive.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "http://169.254.169.254/metadata/identity/oauth2/token?api-version=2018-02-01\u0026mi_res_id=%2Ffake%2Fresource%2FID\u0026resource=https%3A%2F%2Fmanagement.core.windows.net%2F", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "metadata": "true", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.3; linux)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Content-Length": "226", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 25 Jan 2022 01:25:03 GMT", - "Server": "IMDS/150.870.65.528" - }, - "ResponseBody": { - "access_token": "redacted", - "client_id": "fake-client-id", - "expires_in": "85771", - "expires_on": "1643159675", - "ext_expires_in": "86399", - "not_before": "1643072975", - "resource": "https://management.core.windows.net/", - "token_type": "Bearer" - } - } - ], - "Variables": {} -} diff --git a/sdk/azidentity/testdata/recordings/TestUsernamePasswordCredentialADFS_Live.json b/sdk/azidentity/testdata/recordings/TestUsernamePasswordCredentialADFS_Live.json deleted file mode 100644 index 5af411704056..000000000000 --- a/sdk/azidentity/testdata/recordings/TestUsernamePasswordCredentialADFS_Live.json +++ /dev/null @@ -1,149 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://fake.adfs.local/adfs/.well-known/openid-configuration", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v1.3.0-beta.3 (go1.19.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Content-Length": "1986", - "Content-Security-Policy": "default-src \u0027self\u0027 \u0027unsafe-inline\u0027 \u0027unsafe-eval\u0027; img-src \u0027self\u0027 data:;", - "Content-Type": "application/json; charset=UTF-8", - "Date": "Mon, 30 Jan 2023 17:47:07 GMT", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age = 31536000", - "X-Content-Type-Options": "nosniff", - "X-XSS-Protection": "1; mode=block" - }, - "ResponseBody": { - "issuer": "https://fake.adfs.local/adfs/eae0822e-4c1b-41cf-8d9e-6bddf440029c/", - "authorization_endpoint": "https://fake.adfs.local/adfs/oauth2/authorize/", - "token_endpoint": "https://fake.adfs.local/adfs/oauth2/token/", - "jwks_uri": "https://fake.adfs.local/adfs/discovery/keys", - "token_endpoint_auth_methods_supported": [ - "client_secret_post", - "client_secret_basic", - "private_key_jwt", - "windows_client_authentication" - ], - "response_types_supported": [ - "code", - "id_token", - "code id_token", - "id_token token", - "code token", - "code id_token token" - ], - "response_modes_supported": [ - "query", - "fragment", - "form_post" - ], - "grant_types_supported": [ - "authorization_code", - "refresh_token", - "client_credentials", - "urn:ietf:params:oauth:grant-type:jwt-bearer", - "implicit", - "password", - "srv_challenge", - "urn:ietf:params:oauth:grant-type:device_code", - "device_code" - ], - "subject_types_supported": [ - "pairwise" - ], - "scopes_supported": [ - "aza", - "logon_cert", - "profile", - ".default", - "vpn_cert", - "email", - "openid", - "allatclaims", - "user_impersonation", - "winhello_cert" - ], - "id_token_signing_alg_values_supported": [ - "RS256" - ], - "token_endpoint_auth_signing_alg_values_supported": [ - "RS256" - ], - "access_token_issuer": "https://fake.adfs.local/adfs/eae0822e-4c1b-41cf-8d9e-6bddf440029c/", - "claims_supported": [ - "aud", - "iss", - "iat", - "exp", - "auth_time", - "nonce", - "at_hash", - "c_hash", - "sub", - "upn", - "unique_name", - "pwd_url", - "pwd_exp", - "mfa_auth_time", - "sid", - "nbf" - ], - "microsoft_multi_refresh_token": true, - "userinfo_endpoint": "https://fake.adfs.local/adfs/userinfo", - "capabilities": [ - "kdf_ver2" - ], - "end_session_endpoint": "https://fake.adfs.local/adfs/oauth2/logout", - "as_access_token_token_binding_supported": false, - "as_refresh_token_token_binding_supported": false, - "resource_access_token_token_binding_supported": false, - "op_id_token_token_binding_supported": false, - "rp_id_token_token_binding_supported": false, - "frontchannel_logout_supported": true, - "frontchannel_logout_session_supported": true, - "device_authorization_endpoint": "https://fake.adfs.local/adfs/oauth2/devicecode" - } - }, - { - "RequestUri": "https://fake.adfs.local/adfs/oauth2/token/", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Content-Length": "2", - "Content-Type": "application/x-www-form-urlencoded; charset=utf-8", - "User-Agent": "azsdk-go-azidentity/v1.3.0-beta.3 (go1.19.3; Windows_NT)" - }, - "RequestBody": {}, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store", - "Content-Length": "2500", - "Content-Security-Policy": "default-src \u0027self\u0027 \u0027unsafe-inline\u0027 \u0027unsafe-eval\u0027; img-src \u0027self\u0027 data:;", - "Content-Type": "application/json; charset=UTF-8", - "Date": "Mon, 30 Jan 2023 17:47:07 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age = 31536000", - "X-Content-Type-Options": "nosniff", - "X-XSS-Protection": "1; mode=block" - }, - "ResponseBody": { - "access_token": "redacted", - "token_type": "bearer", - "expires_in": 3600, - "resource": "https://adminmanagement.adfs.redmond.selfhost.local/eae0822e-4c1b-41cf-8d9e-6bddf440029c", - "refresh_token": "redacted", - "refresh_token_expires_in": 143999, - "scope": "profile openid https://fake.adfs.local/fake-scope/.default", - "id_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6InRoYUE3NzlSUlZvRWNwWmp5VnlKNXZhMm1oSSIsImtpZCI6InRoYUE3NzlSUlZvRWNwWmp5VnlKNXZhMm1oSSJ9.eyJhdWQiOiIxOTUwYTI1OC0yMjdiLTRlMzEtYTljZi03MTc0OTU5NDVmYzIiLCJpc3MiOiJodHRwczovL2FkZnMucmVkbW9uZC5henVyZXN0YWNrLmNvcnAubWljcm9zb2Z0LmNvbS9hZGZzL2VhZTA4MjJlLTRjMWItNDFjZi04ZDllLTZiZGRmNDQwMDI5Yy8iLCJpYXQiOjE2NzUxMDA4MjcsIm5iZiI6MTY3NTEwMDgyNywiZXhwIjoxNjc1MTA0NDI3LCJhdXRoX3RpbWUiOjE2NzUxMDA4MjcsInN1YiI6IllKRDVqQ0V2OHlzU0dsc0RSUGprd1ZQdkJPKzl4UGd3dXlJZ283NEkrNGs9Iiwic2lkIjoiUy0xLTUtMjEtMjc3NTU5MDAyNy0xMjk3MjE4MTQ3LTE2NzM5NDYwOTgtMTI4MSIsInVwbiI6IkNsb3VkQWRtaW5AcmVkbW9uZC5zZWxmaG9zdC5sb2NhbCIsInVuaXF1ZV9uYW1lIjoiQ2xvdWRBZG1pbkByZWRtb25kLnNlbGZob3N0LmxvY2FsIiwib2lkIjoiUy0xLTUtMjEtMjc3NTU5MDAyNy0xMjk3MjE4MTQ3LTE2NzM5NDYwOTgtMTI4MSIsInRpZCI6ImVhZTA4MjJlLTRjMWItNDFjZi04ZDllLTZiZGRmNDQwMDI5YyIsImdyb3VwcyI6WyJTLTEtNS0yMS0yNzc1NTkwMDI3LTEyOTcyMTgxNDctMTY3Mzk0NjA5OC01MTMiLCJTLTEtMS0wIiwiUy0xLTUtMzItNTQ1IiwiUy0xLTUtMiIsIlMtMS01LTExIiwiUy0xLTUtMTUiLCJTLTEtMTgtMSIsIlMtMS01LTIxLTI3NzU1OTAwMjctMTI5NzIxODE0Ny0xNjczOTQ2MDk4LTE1Njc0IiwiUy0xLTUtMjEtMjc3NTU5MDAyNy0xMjk3MjE4MTQ3LTE2NzM5NDYwOTgtMTEzOCJdLCJnaXZlbl9uYW1lIjoiQ2xvdWRBZG1pbiIsImFwcGlkYWNyIjoiMCIsImF1dGhtZXRob2QiOiJ1cm46b2FzaXM6bmFtZXM6dGM6U0FNTDoyLjA6YWM6Y2xhc3NlczpQYXNzd29yZFByb3RlY3RlZFRyYW5zcG9ydCIsIkFwcElkIjoiMTk1MGEyNTgtMjI3Yi00ZTMxLWE5Y2YtNzE3NDk1OTQ1ZmMyIiwiYXBwdHlwZSI6IlB1YmxpYyIsImFwcGlkIjoiMTk1MGEyNTgtMjI3Yi00ZTMxLWE5Y2YtNzE3NDk1OTQ1ZmMyIiwidmVyIjoiMS4wIiwic2NwIjoicHJvZmlsZSBvcGVuaWQgLmRlZmF1bHQifQ.huIhjZORvIa2NMGzCfbTT_9Ju23g3SZmmm4XaR3YmUqmjnI5sbMGCQsAD2jSuxH4VYIm3pU9RRqH3Ohsy17kSaeZSj28nXRQDq2-92_O-p75RMrSq6RUhiKxANjhKD6v6jI9r1X5EFtpzkW_Cd9q5oqcEApvvVdGiSZkD5mT_07YxZ9omuHnGDTS5ff-sUBAHnu0tki6D5uX06_YKAx2qbArS1PnGR8MxyyVnUHc4FaEPPApKPLrPVueYurAb4W61cY52-Szxrql6Vz193RP8_IE7c7cgLAmF8f5ETKodr4nuJpTUcKxlykt-hkB99PC2Tm2b-Bl2TkIZqR9Fw1CfI5Uvr4nsNcxuPErKGsxriPf_wesxNUVpUXl3KO_t43iipvgN5w0l6xrktZxxkaMNY_5tT9aJOzMO2PDGlFC5_tA6GjQY_xCBFsqRAepaKysl6ZuYamtmWAVpdY7b_AYTUVKDK7CgP2Ua17UUp0l9fxJ7IPj1wxdsrGs-NhB_hz6lRzin0voA4oPN_zhVGuWJmreCX6hAFsEp6Ke7aqZb-pygRUiqyXqabFjz07jGh3YtqCJhzWz1-OnRoEjxEzsU1EHvDVLVqPmTrchpZUOi_oretBoSemhz3lYIbC8FfdCbPNp1FiFDv7KnGBKo1bNGsaK6eoPTOo8jx16h5MCWN4" - } - } - ], - "Variables": {} -} diff --git a/sdk/azidentity/testdata/recordings/TestUsernamePasswordCredential_InvalidPasswordLive.json b/sdk/azidentity/testdata/recordings/TestUsernamePasswordCredential_InvalidPasswordLive.json deleted file mode 100644 index bf384f61707a..000000000000 --- a/sdk/azidentity/testdata/recordings/TestUsernamePasswordCredential_InvalidPasswordLive.json +++ /dev/null @@ -1,255 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https%3A%2F%2Flogin.microsoftonline.com%2Ffake-tenant%2Foauth2%2Fv2.0%2Fauthorize", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Methods": "GET, OPTIONS", - "Access-Control-Allow-Origin": "*", - "Cache-Control": "max-age=86400, private", - "Content-Length": "955", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:14 GMT", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMCAAAAAUigdkOAAAAT6t2KAMAAAAJIoHZDgAAAA; expires=Wed, 23-Feb-2022 22:41:15 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - EUS ProdSlices", - "x-ms-request-id": "15e446e1-6762-4833-a890-6e8e1531d300" - }, - "ResponseBody": { - "tenant_discovery_endpoint": "https://login.microsoftonline.com/fake-tenant/v2.0/.well-known/openid-configuration", - "api-version": "1.1", - "metadata": [ - { - "preferred_network": "login.microsoftonline.com", - "preferred_cache": "login.windows.net", - "aliases": [ - "login.microsoftonline.com", - "login.windows.net", - "login.microsoft.com", - "sts.windows.net" - ] - }, - { - "preferred_network": "login.partner.microsoftonline.cn", - "preferred_cache": "login.partner.microsoftonline.cn", - "aliases": [ - "login.partner.microsoftonline.cn", - "login.chinacloudapi.cn" - ] - }, - { - "preferred_network": "login.microsoftonline.de", - "preferred_cache": "login.microsoftonline.de", - "aliases": [ - "login.microsoftonline.de" - ] - }, - { - "preferred_network": "login.microsoftonline.us", - "preferred_cache": "login.microsoftonline.us", - "aliases": [ - "login.microsoftonline.us", - "login.usgovcloudapi.net" - ] - }, - { - "preferred_network": "login-us.microsoftonline.com", - "preferred_cache": "login-us.microsoftonline.com", - "aliases": [ - "login-us.microsoftonline.com" - ] - } - ] - } - }, - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/v2.0/.well-known/openid-configuration", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Methods": "GET, OPTIONS", - "Access-Control-Allow-Origin": "*", - "Cache-Control": "max-age=86400, private", - "Content-Length": "1578", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:14 GMT", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMCAAAAAUigdkOAAAAT6t2KAMAAAAJIoHZDgAAAA; expires=Wed, 23-Feb-2022 22:41:15 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - NCUS ProdSlices", - "x-ms-request-id": "a4be07f0-9bbb-43a2-8435-3ac090bf5300" - }, - "ResponseBody": { - "token_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "token_endpoint_auth_methods_supported": [ - "client_secret_post", - "private_key_jwt", - "client_secret_basic" - ], - "jwks_uri": "https://login.microsoftonline.com/fake-tenant/discovery/v2.0/keys", - "response_modes_supported": [ - "query", - "fragment", - "form_post" - ], - "subject_types_supported": [ - "pairwise" - ], - "id_token_signing_alg_values_supported": [ - "RS256" - ], - "response_types_supported": [ - "code", - "id_token", - "code id_token", - "id_token token" - ], - "scopes_supported": [ - "openid", - "profile", - "email", - "offline_access" - ], - "issuer": "https://login.microsoftonline.com/fake-tenant/v2.0", - "request_uri_parameter_supported": false, - "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", - "authorization_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/authorize", - "device_authorization_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/devicecode", - "http_logout_supported": true, - "frontchannel_logout_supported": true, - "end_session_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/logout", - "claims_supported": [ - "sub", - "iss", - "cloud_instance_name", - "cloud_instance_host_name", - "cloud_graph_host_name", - "msgraph_host", - "aud", - "exp", - "iat", - "auth_time", - "acr", - "nonce", - "preferred_username", - "name", - "tid", - "ver", - "at_hash", - "c_hash", - "email" - ], - "kerberos_endpoint": "https://login.microsoftonline.com/fake-tenant/kerberos", - "tenant_region_scope": "NA", - "cloud_instance_name": "microsoftonline.com", - "cloud_graph_host_name": "graph.windows.net", - "msgraph_host": "graph.microsoft.com", - "rbac_url": "https://pas.windows.net" - } - }, - { - "RequestUri": "https://login.microsoftonline.com/common/UserRealm/fake@user?api-version=1.0", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Disposition": "inline; filename=userrealm.json", - "Content-Length": "184", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:15 GMT", - "Expires": "-1", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Pragma": "no-cache", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMCAAAAAUigdkOAAAAT6t2KAMAAAAJIoHZDgAAAA; expires=Wed, 23-Feb-2022 22:41:15 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - EUS ProdSlices", - "x-ms-request-id": "fd83906d-505d-49f7-9332-0832e22a9300" - }, - "ResponseBody": { - "ver": "1.0", - "account_type": "Managed", - "domain_name": "azuresdkoutlook.onmicrosoft.com", - "cloud_instance_name": "microsoftonline.com", - "cloud_audience_urn": "urn:federation:MicrosoftOnline" - } - }, - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "RequestMethod": "POST", - "RequestHeaders": { - ":method": "POST", - "Accept-Encoding": "gzip", - "Content-Length": "2", - "Content-Type": "application/x-www-form-urlencoded; charset=utf-8", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": {}, - "StatusCode": 400, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Length": "495", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:15 GMT", - "Expires": "-1", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Pragma": "no-cache", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMCAAAAAUigdkOAAAAT6t2KAQAAAAJIoHZDgAAAA; expires=Wed, 23-Feb-2022 22:41:16 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - SCUS ProdSlices", - "x-ms-request-id": "be3e1080-9e7f-418d-9c32-dc42cdf2d400" - }, - "ResponseBody": { - "error": "invalid_grant", - "error_description": "AADSTS50126: Error validating credentials due to invalid username or password.\r\nTrace ID: be3e1080-9e7f-418d-9c32-dc42cdf2d400\r\nCorrelation ID: e4caccbc-1ab2-43f8-a4b4-c74b9a94c87a\r\nTimestamp: 2022-01-24 22:41:16Z", - "error_codes": [ - 50126 - ], - "timestamp": "2022-01-24 22:41:16Z", - "trace_id": "be3e1080-9e7f-418d-9c32-dc42cdf2d400", - "correlation_id": "e4caccbc-1ab2-43f8-a4b4-c74b9a94c87a", - "error_uri": "https://login.microsoftonline.com/error?code=50126" - } - } - ], - "Variables": {} -} diff --git a/sdk/azidentity/testdata/recordings/TestUsernamePasswordCredential_Live/default_options.json b/sdk/azidentity/testdata/recordings/TestUsernamePasswordCredential_Live/default_options.json deleted file mode 100644 index 2b0a987d6949..000000000000 --- a/sdk/azidentity/testdata/recordings/TestUsernamePasswordCredential_Live/default_options.json +++ /dev/null @@ -1,255 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https%3A%2F%2Flogin.microsoftonline.com%2Ffake-tenant%2Foauth2%2Fv2.0%2Fauthorize", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Methods": "GET, OPTIONS", - "Access-Control-Allow-Origin": "*", - "Cache-Control": "max-age=86400, private", - "Content-Length": "955", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:14 GMT", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMCAAAAAUigdkOAAAAT6t2KAIAAAAJIoHZDgAAAA; expires=Wed, 23-Feb-2022 22:41:15 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - SCUS ProdSlices", - "x-ms-request-id": "044645a7-5a09-4968-9c61-129a6a81b700" - }, - "ResponseBody": { - "tenant_discovery_endpoint": "https://login.microsoftonline.com/fake-tenant/v2.0/.well-known/openid-configuration", - "api-version": "1.1", - "metadata": [ - { - "preferred_network": "login.microsoftonline.com", - "preferred_cache": "login.windows.net", - "aliases": [ - "login.microsoftonline.com", - "login.windows.net", - "login.microsoft.com", - "sts.windows.net" - ] - }, - { - "preferred_network": "login.partner.microsoftonline.cn", - "preferred_cache": "login.partner.microsoftonline.cn", - "aliases": [ - "login.partner.microsoftonline.cn", - "login.chinacloudapi.cn" - ] - }, - { - "preferred_network": "login.microsoftonline.de", - "preferred_cache": "login.microsoftonline.de", - "aliases": [ - "login.microsoftonline.de" - ] - }, - { - "preferred_network": "login.microsoftonline.us", - "preferred_cache": "login.microsoftonline.us", - "aliases": [ - "login.microsoftonline.us", - "login.usgovcloudapi.net" - ] - }, - { - "preferred_network": "login-us.microsoftonline.com", - "preferred_cache": "login-us.microsoftonline.com", - "aliases": [ - "login-us.microsoftonline.com" - ] - } - ] - } - }, - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/v2.0/.well-known/openid-configuration", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Methods": "GET, OPTIONS", - "Access-Control-Allow-Origin": "*", - "Cache-Control": "max-age=86400, private", - "Content-Length": "1578", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:14 GMT", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMCAAAAAUigdkOAAAAT6t2KAIAAAAJIoHZDgAAAA; expires=Wed, 23-Feb-2022 22:41:15 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - WUS2 ProdSlices", - "x-ms-request-id": "95797be6-852c-44d4-8e27-64da4c0fa000" - }, - "ResponseBody": { - "token_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "token_endpoint_auth_methods_supported": [ - "client_secret_post", - "private_key_jwt", - "client_secret_basic" - ], - "jwks_uri": "https://login.microsoftonline.com/fake-tenant/discovery/v2.0/keys", - "response_modes_supported": [ - "query", - "fragment", - "form_post" - ], - "subject_types_supported": [ - "pairwise" - ], - "id_token_signing_alg_values_supported": [ - "RS256" - ], - "response_types_supported": [ - "code", - "id_token", - "code id_token", - "id_token token" - ], - "scopes_supported": [ - "openid", - "profile", - "email", - "offline_access" - ], - "issuer": "https://login.microsoftonline.com/fake-tenant/v2.0", - "request_uri_parameter_supported": false, - "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", - "authorization_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/authorize", - "device_authorization_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/devicecode", - "http_logout_supported": true, - "frontchannel_logout_supported": true, - "end_session_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/logout", - "claims_supported": [ - "sub", - "iss", - "cloud_instance_name", - "cloud_instance_host_name", - "cloud_graph_host_name", - "msgraph_host", - "aud", - "exp", - "iat", - "auth_time", - "acr", - "nonce", - "preferred_username", - "name", - "tid", - "ver", - "at_hash", - "c_hash", - "email" - ], - "kerberos_endpoint": "https://login.microsoftonline.com/fake-tenant/kerberos", - "tenant_region_scope": "NA", - "cloud_instance_name": "microsoftonline.com", - "cloud_graph_host_name": "graph.windows.net", - "msgraph_host": "graph.microsoft.com", - "rbac_url": "https://pas.windows.net" - } - }, - { - "RequestUri": "https://login.microsoftonline.com/common/UserRealm/fake@user?api-version=1.0", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Disposition": "inline; filename=userrealm.json", - "Content-Length": "184", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:14 GMT", - "Expires": "-1", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Pragma": "no-cache", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMCAAAAAUigdkOAAAAT6t2KAIAAAAJIoHZDgAAAA; expires=Wed, 23-Feb-2022 22:41:15 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - EUS ProdSlices", - "x-ms-request-id": "3f05cebe-06a6-44f9-a3b9-93c43025a400" - }, - "ResponseBody": { - "ver": "1.0", - "account_type": "Managed", - "domain_name": "azuresdkoutlook.onmicrosoft.com", - "cloud_instance_name": "microsoftonline.com", - "cloud_audience_urn": "urn:federation:MicrosoftOnline" - } - }, - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "RequestMethod": "POST", - "RequestHeaders": { - ":method": "POST", - "Accept-Encoding": "gzip", - "Content-Length": "2", - "Content-Type": "application/x-www-form-urlencoded; charset=utf-8", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": {}, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Length": "1673", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:14 GMT", - "Expires": "-1", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Pragma": "no-cache", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMCAAAAAUigdkOAAAAT6t2KAMAAAAJIoHZDgAAAA; expires=Wed, 23-Feb-2022 22:41:15 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - NCUS ProdSlices", - "x-ms-request-id": "a4be07f0-9bbb-43a2-8435-3ac07fbf5300" - }, - "ResponseBody": { - "token_type": "Bearer", - "scope": "https://management.core.windows.net//user_impersonation https://management.core.windows.net//.default", - "expires_in": 4697, - "ext_expires_in": 4697, - "access_token": "redacted", - "refresh_token": "redacted", - "foci": "1", - "id_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6Imwzc1EtNTBjQ0g0eEJWWkxIVEd3blNSNzY4MCJ9.eyJhdWQiOiIwNGIwNzc5NS04ZGRiLTQ2MWEtYmJlZS0wMmY5ZTFiZjdiNDYiLCJpc3MiOiJodHRwczovL2xvZ2luLm1pY3Jvc29mdG9ubGluZS5jb20vYzU0ZmFjODgtM2RkMy00NjFmLWE3YzQtOGEzNjhlMDM0MGIzL3YyLjAiLCJpYXQiOjE2MzcxOTEyMTIsIm5iZiI6MTYzNzE5MTIxMiwiZXhwIjoxNjM3MTk1MTEyLCJhaW8iOiJBVVFBdS84VEFBQUFQMExOZGNRUXQxNmJoSkFreXlBdjFoUGJuQVhtT0o3RXJDVHV4N0hNTjhHd2VMb2FYMWR1cDJhQ2Y0a0p5bDFzNmovSzF5R05DZmVIQlBXM21QUWlDdz09IiwiaWRwIjoiaHR0cHM6Ly9zdHMud2luZG93cy5uZXQvZTBiZDIzMjEtMDdmYS00Y2YwLTg3YjgtMDBhYTJhNzQ3MzI5LyIsIm5hbWUiOiJJZGVudGl0eSBUZXN0IFVzZXIiLCJwcmVmZXJyZWRfdXNlcm5hbWUiOiJpZGVudGl0eXRlc3R1c2VyQGF6dXJlc2Rrb3V0bG9vay5vbm1pY3Jvc29mdC5jb20iLCJyaCI6IjAuQVMwQWlLeFB4ZE05SDBhbnhJbzJqZ05BczVWM3NBVGJqUnBHdS00Qy1lR19lMFl0QUxFLiIsInN1YiI6ImMxYTBsY2xtbWxCYW9wc0MwVmlaLVpPMjFCT2dSUXE3SG9HRUtOOXloZnMiLCJ0aWQiOiJjNTRmYWM4OC0zZGQzLTQ2MWYtYTdjNC04YTM2OGUwMzQwYjMiLCJ1dGkiOiI5TXFOSWI5WjdrQy1QVHRtai11X0FBIiwidmVyIjoiMi4wIn0.hh5Exz9MBjTXrTuTZnz7vceiuQjcC_oRSTeBIC9tYgSO2c2sqQRpZi91qBZFQD9okayLPPKcwqXgEJD9p0-c4nUR5UQN7YSeDLmYtZUYMG79EsA7IMiQaiy94AyIe2E-oBDcLwFycGwh1iIOwwOwjbanmu2Dx3HfQx831lH9uVjagf0Aow0wTkTVCsedGSZvG-cRUceFLj-kFN-feFH3NuScuOfLR2Magf541pJda7X7oStwL_RNUFqjJFTdsiFV4e-VHK5qo--3oPU06z0rS9bosj0pFSATIVHrrS4gY7jiSvgMbG837CDBQkz5b08GUN5GlLN9jlygl1plBmbgww", - "client_info": "eyJ1aWQiOiJjNzNjNmYyOC1hZTVmLTQxM2QtYTlhMi1lMTFlNWFmNjY4ZjgiLCJ1dGlkIjoiZTBiZDIzMjEtMDdmYS00Y2YwLTg3YjgtMDBhYTJhNzQ3MzI5In0" - } - } - ], - "Variables": {} -} diff --git a/sdk/azidentity/testdata/recordings/TestUsernamePasswordCredential_Live/instance_discovery_disabled.json b/sdk/azidentity/testdata/recordings/TestUsernamePasswordCredential_Live/instance_discovery_disabled.json deleted file mode 100644 index e804558be7f3..000000000000 --- a/sdk/azidentity/testdata/recordings/TestUsernamePasswordCredential_Live/instance_discovery_disabled.json +++ /dev/null @@ -1,177 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/v2.0/.well-known/openid-configuration", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v1.3.0-beta.3 (go1.19.3; linux)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Methods": "GET, OPTIONS", - "Access-Control-Allow-Origin": "*", - "Cache-Control": "max-age=86400, private", - "Content-Length": "1578", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 31 Jan 2023 00:44:57 GMT", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Set-Cookie": [ - "fpc=Ais9pGCFGF9Ft4kncpqhZpU; expires=Thu, 02-Mar-2023 00:44:57 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.14526.6 - WUS2 ProdSlices", - "x-ms-request-id": "eaf946b1-4fc5-48ac-a04f-f4e692091500", - "X-XSS-Protection": "0" - }, - "ResponseBody": { - "token_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "token_endpoint_auth_methods_supported": [ - "client_secret_post", - "private_key_jwt", - "client_secret_basic" - ], - "jwks_uri": "https://login.microsoftonline.com/fake-tenant/discovery/v2.0/keys", - "response_modes_supported": [ - "query", - "fragment", - "form_post" - ], - "subject_types_supported": [ - "pairwise" - ], - "id_token_signing_alg_values_supported": [ - "RS256" - ], - "response_types_supported": [ - "code", - "id_token", - "code id_token", - "id_token token" - ], - "scopes_supported": [ - "openid", - "profile", - "email", - "offline_access" - ], - "issuer": "https://login.microsoftonline.com/fake-tenant/v2.0", - "request_uri_parameter_supported": false, - "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", - "authorization_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/authorize", - "device_authorization_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/devicecode", - "http_logout_supported": true, - "frontchannel_logout_supported": true, - "end_session_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/logout", - "claims_supported": [ - "sub", - "iss", - "cloud_instance_name", - "cloud_instance_host_name", - "cloud_graph_host_name", - "msgraph_host", - "aud", - "exp", - "iat", - "auth_time", - "acr", - "nonce", - "preferred_username", - "name", - "tid", - "ver", - "at_hash", - "c_hash", - "email" - ], - "kerberos_endpoint": "https://login.microsoftonline.com/fake-tenant/kerberos", - "tenant_region_scope": "NA", - "cloud_instance_name": "microsoftonline.com", - "cloud_graph_host_name": "graph.windows.net", - "msgraph_host": "graph.microsoft.com", - "rbac_url": "https://pas.windows.net" - } - }, - { - "RequestUri": "https://login.microsoftonline.com/common/UserRealm/fake@user?api-version=1.0", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v1.3.0-beta.3 (go1.19.3; linux)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Disposition": "inline; filename=userrealm.json", - "Content-Length": "184", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 31 Jan 2023 00:44:57 GMT", - "Expires": "-1", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Pragma": "no-cache", - "Set-Cookie": [ - "fpc=Ais9pGCFGF9Ft4kncpqhZpU; expires=Thu, 02-Mar-2023 00:44:57 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.14526.6 - WUS2 ProdSlices", - "x-ms-request-id": "eaf946b1-4fc5-48ac-a04f-f4e697091500", - "X-XSS-Protection": "0" - }, - "ResponseBody": { - "ver": "1.0", - "account_type": "Managed", - "domain_name": "azuresdkoutlook.onmicrosoft.com", - "cloud_instance_name": "microsoftonline.com", - "cloud_audience_urn": "urn:federation:MicrosoftOnline" - } - }, - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Content-Length": "2", - "Content-Type": "application/x-www-form-urlencoded; charset=utf-8", - "User-Agent": "azsdk-go-azidentity/v1.3.0-beta.3 (go1.19.3; linux)" - }, - "RequestBody": {}, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Length": "1673", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 31 Jan 2023 00:44:57 GMT", - "Expires": "-1", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Pragma": "no-cache", - "Set-Cookie": [ - "fpc=Ais9pGCFGF9Ft4kncpqhZpVPq3YoAQAAAIlbatsOAAAA; expires=Thu, 02-Mar-2023 00:44:58 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.14357.8 - SCUS ProdSlices", - "x-ms-request-id": "767fe140-950b-475d-82c3-495050418b01", - "X-XSS-Protection": "0" - }, - "ResponseBody": { - "token_type": "Bearer", - "scope": "https://management.core.windows.net//user_impersonation https://management.core.windows.net//.default", - "expires_in": 5162, - "ext_expires_in": 5162, - "access_token": "redacted", - "refresh_token": "redacted", - "foci": "1", - "id_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6Ii1LSTNROW5OUjdiUm9meG1lWm9YcWJIWkdldyJ9.eyJhdWQiOiIwNGIwNzc5NS04ZGRiLTQ2MWEtYmJlZS0wMmY5ZTFiZjdiNDYiLCJpc3MiOiJodHRwczovL2xvZ2luLm1pY3Jvc29mdG9ubGluZS5jb20vZTBiZDIzMjEtMDdmYS00Y2YwLTg3YjgtMDBhYTJhNzQ3MzI5L3YyLjAiLCJpYXQiOjE2NzUxMjU1OTcsIm5iZiI6MTY3NTEyNTU5NywiZXhwIjoxNjc1MTI5NDk3LCJhaW8iOiJBVFFBeS84VEFBQUF1TVliellTOWgzOU5nN3YxV2wzOXhOdGxRWUtNejUvNjhNSHE1VXI3VUVTck14NnB3WFZsdTRmblJJZlZsanVGIiwibmFtZSI6IklkZW50aXR5IFRlc3QgVXNlciIsIm9pZCI6ImM3M2M2ZjI4LWFlNWYtNDEzZC1hOWEyLWUxMWU1YWY2NjhmOCIsInByZWZlcnJlZF91c2VybmFtZSI6ImlkZW50aXR5dGVzdHVzZXJAYXp1cmVzZGtvdXRsb29rLm9ubWljcm9zb2Z0LmNvbSIsInB1aWQiOiIxMDAzMjAwMTY1QzkwODU2IiwicmgiOiIwLkFWQUFJU085NFBvSDhFeUh1QUNxS25SektaVjNzQVRialJwR3UtNEMtZUdfZTBaUUFMRS4iLCJzdWIiOiJqUk5kRVZ2b0t4YW1GdzFoZEF4WHQzR216UXlOdU5YM3U5eEFyMFJqTDZnIiwidGlkIjoiZTBiZDIzMjEtMDdmYS00Y2YwLTg3YjgtMDBhYTJhNzQ3MzI5IiwidXRpIjoiUU9GX2RndVZYVWVDdzBsUVVFR0xBUSIsInZlciI6IjIuMCJ9.P2QWT0omgERZzaTt54Y7juKB3nmJIQ4Ixq0umMFYKeV1VvOQC52Uf9NBzQgVM_60bVwn8A9I2b6Jhg2HyKoR6n6yfIPKB4SjeZC2EtYVRCX0c1CpSNaXLzxMk5lFGIC-CJW_dNu_twjkrlwhS_5Oz_qiNQIaRicUm_sdprSXbsi1IhGvrkA0mnZOUIPpoquyZMxU1QjDMgp5rnGPUtMJ-02i1HA275yU1p0rd0x0q_kxB-u9i-fw58ScPI3UpUr_811LVsJkA_UFal_jcdZqHbwqm7x8SheOUG48AqkB5vMlA264k_X-jrQh_8xp9qmsnLI2V_91RE_nBFNOyEh5Fw", - "client_info": "eyJ1aWQiOiJjNzNjNmYyOC1hZTVmLTQxM2QtYTlhMi1lMTFlNWFmNjY4ZjgiLCJ1dGlkIjoiZTBiZDIzMjEtMDdmYS00Y2YwLTg3YjgtMDBhYTJhNzQ3MzI5In0" - } - } - ], - "Variables": {} -} \ No newline at end of file From 2ef60abc402d1b6b9ec8d71be5d83ed8b54d87b3 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Tue, 7 Feb 2023 23:02:03 -0800 Subject: [PATCH 003/107] Increment version for containers/azcontainerregistry releases (#19975) Increment package version after release of containers/azcontainerregistry --- sdk/containers/azcontainerregistry/CHANGELOG.md | 10 ++++++++++ sdk/containers/azcontainerregistry/custom_constants.go | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/sdk/containers/azcontainerregistry/CHANGELOG.md b/sdk/containers/azcontainerregistry/CHANGELOG.md index 598afc83a573..509ad1a5f7c9 100644 --- a/sdk/containers/azcontainerregistry/CHANGELOG.md +++ b/sdk/containers/azcontainerregistry/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 0.1.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 0.1.0 (2023-02-07) * This is the initial release of the `azcontainerregistry` library diff --git a/sdk/containers/azcontainerregistry/custom_constants.go b/sdk/containers/azcontainerregistry/custom_constants.go index 7509104164b5..e4ada50360aa 100644 --- a/sdk/containers/azcontainerregistry/custom_constants.go +++ b/sdk/containers/azcontainerregistry/custom_constants.go @@ -8,5 +8,5 @@ package azcontainerregistry const ( moduleName = "azcontainerregistry" - moduleVersion = "v0.1.0" + moduleVersion = "v0.1.1" ) From b9cc6e5e4c01ce583c77b1c2a81a6b95bc8358d0 Mon Sep 17 00:00:00 2001 From: gracewilcox <43627800+gracewilcox@users.noreply.github.com> Date: Wed, 8 Feb 2023 11:18:18 -0800 Subject: [PATCH 004/107] [azquery] Release prep and final updates (#19946) --- sdk/monitor/azquery/CHANGELOG.md | 9 +- sdk/monitor/azquery/README.md | 213 +++------------------ sdk/monitor/azquery/TROUBLESHOOTING.md | 26 ++- sdk/monitor/azquery/autorest.md | 34 +++- sdk/monitor/azquery/custom_client.go | 7 +- sdk/monitor/azquery/example_test.go | 79 ++++++-- sdk/monitor/azquery/logs_client.go | 8 +- sdk/monitor/azquery/logs_client_test.go | 4 - sdk/monitor/azquery/metrics_client.go | 16 +- sdk/monitor/azquery/metrics_client_test.go | 11 +- sdk/monitor/azquery/models.go | 18 +- sdk/monitor/azquery/models_serde.go | 12 +- sdk/monitor/azquery/version.go | 2 +- 13 files changed, 176 insertions(+), 263 deletions(-) diff --git a/sdk/monitor/azquery/CHANGELOG.md b/sdk/monitor/azquery/CHANGELOG.md index bcb91f10b5af..3a855e5d8492 100644 --- a/sdk/monitor/azquery/CHANGELOG.md +++ b/sdk/monitor/azquery/CHANGELOG.md @@ -1,14 +1,13 @@ # Release History -## 0.4.1 (Unreleased) - -### Features Added +## 1.0.0 (2023-02-08) ### Breaking Changes - -### Bugs Fixed +* Removed `LogsQueryOptions.String()` +* Fix casing on some metrics fields ### Other Changes +* Doc and example updates ## 0.4.0 (2023-01-12) diff --git a/sdk/monitor/azquery/README.md b/sdk/monitor/azquery/README.md index f019e578c57d..95777761bc72 100644 --- a/sdk/monitor/azquery/README.md +++ b/sdk/monitor/azquery/README.md @@ -2,10 +2,10 @@ The Azure Monitor Query client library is used to execute read-only queries against [Azure Monitor][azure_monitor_overview]'s two data platforms: -- [Logs](https://docs.microsoft.com/azure/azure-monitor/logs/data-platform-logs) - Collects and organizes log and performance data from monitored resources. Data from different sources such as platform logs from Azure services, log and performance data from virtual machines agents, and usage and performance data from apps can be consolidated into a single [Azure Log Analytics workspace](https://docs.microsoft.com/azure/azure-monitor/logs/data-platform-logs#log-analytics-and-workspaces). The various data types can be analyzed together using the [Kusto Query Language][kusto_query_language]. See the [Kusto to SQL cheat sheet][kusto_to_sql] for more information. -- [Metrics](https://docs.microsoft.com/azure/azure-monitor/essentials/data-platform-metrics) - Collects numeric data from monitored resources into a time series database. Metrics are numerical values that are collected at regular intervals and describe some aspect of a system at a particular time. Metrics are lightweight and capable of supporting near real-time scenarios, making them particularly useful for alerting and fast detection of issues. +- [Logs][logs_overview] - Collects and organizes log and performance data from monitored resources. Data from different sources such as platform logs from Azure services, log and performance data from virtual machines agents, and usage and performance data from apps can be consolidated into a single [Azure Log Analytics workspace][log_analytics_workspace]. The various data types can be analyzed together using the [Kusto Query Language][kusto_query_language]. See the [Kusto to SQL cheat sheet][kusto_to_sql] for more information. +- [Metrics][metrics_overview] - Collects numeric data from monitored resources into a time series database. Metrics are numerical values that are collected at regular intervals and describe some aspect of a system at a particular time. Metrics are lightweight and capable of supporting near real-time scenarios, making them particularly useful for alerting and fast detection of issues. -**NOTE**: This library is currently a beta. There may be breaking changes until it reaches semantic version `v1.0.0`. +[Source code][azquery_repo] | [Package (pkg.go.dev)][azquery_pkg_go] | [Product documentation][monitor_docs] | [Samples][azquery_pkg_go_samples] ## Getting started @@ -16,7 +16,7 @@ Install `azquery` and `azidentity` with `go get`: go get github.com/Azure/azure-sdk-for-go/sdk/monitor/azquery go get github.com/Azure/azure-sdk-for-go/sdk/azidentity ``` -[azidentity][azure_identity] is used for Azure Active Directory authentication as demonstrated below. +[azidentity][azure_identity] is used for Azure Active Directory authentication during client construction. ### Prerequisites @@ -33,23 +33,19 @@ The clients default to the Azure Public Cloud. See the [cloud][cloud_documentati #### Create a logs client -Example logs client: [link][example_logs_client] +Example [logs client][example_logs_client] #### Create a metrics client -Example metrics client: [link][example_metrics_client] - -### Execute the query - -For examples of Logs and Metrics queries, see the [Examples](#examples) section of this readme or in the example_test.go file of our GitHub repo for [azquery](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/monitor/azquery). +Example [metrics client][example_metrics_client] ## Key concepts -### Logs query rate limits and throttling +### Timespan -The Log Analytics service applies throttling when the request rate is too high. Limits, such as the maximum number of rows returned, are also applied on the Kusto queries. For more information, see [Query API](https://docs.microsoft.com/azure/azure-monitor/service-limits#la-query-api). +It's best practice to always query with a timespan (type `TimeInterval`) to prevent excessive queries of the entire logs or metrics data set. Log queries uses the ISO8601 Time Interval Standard. All time should be represented in UTC. If the timespan is included in both the Kusto query string and `Timespan` field, the timespan will be the intersection of the two values. -If you're executing a batch logs query, a throttled request will return a `ErrorInfo` object. That object's `code` value will be `ThrottledError`. +Use the `NewTimeInterval()` method for easy creation. ### Metrics data structure @@ -62,104 +58,11 @@ Each set of metric values is a time series with the following characteristics: - The value itself - Some metrics may have multiple dimensions as described in multi-dimensional metrics. Custom metrics can have up to 10 dimensions. -### Timespan - -It's best practice to always query with a timespan (type `TimeInterval`) to prevent excessive queries of the entire logs or metrics data set. Logs uses the ISO8601 Time Interval Standard. All time should be represented in UTC. If the timespan is included in both the kusto query string and `Timespan` field, the timespan will be the intersection of the two values. - -Use the `NewTimeInterval()` method for easy creation. - -Example timespan: [link][example_query_workspace] - -## Examples - -- [Logs query](#logs-query) - - [Logs query body structure](#logs-query-body-structure) - - [Logs query result structure](#logs-query-result-structure) -- [Batch logs query](#batch-query) - - [Batch query request structure](#batch-query-request-structure) - - [Batch query result structure](#batch-query-result-structure) -- [Advanced logs query](#advanced-logs-query) - - [Query multiple workspaces](#query-multiple-workspaces) - - [Increase wait time, include statistics, include render (visualization)](#increase-wait-time-include-statistics-include-render-visualization) -- [Metrics query](#metrics-query) - - [Metrics result structure](#metrics-result-structure) - - [List Metric Definitions](#list-metric-definitions) - - [List Metric Namespaces](#list-metric-namespaces) - -### Logs query -The example below shows a basic logs query using the `QueryWorkspace` method. `QueryWorkspace` takes in a [context][context], a [Log Analytics Workspace][log_analytics_workspace] ID string, a [Body](#logs-query-body-structure) struct, and a [LogsClientQueryWorkspaceOptions](#increase-wait-time-include-statistics-include-render-visualization) struct and returns a [Results](#logs-query-result-structure) struct. - -A workspace ID is required to query logs. To find the workspace ID: - -1. If not already made, [create a Log Analytics workspace][create_workspace]. -1. Navigate to your workspace's page in the Azure portal. -2. From the **Overview** blade, copy the value of the `Workspace ID` property. - -Example QueryWorkspace: [link][example_query_workspace] - -#### Logs query body structure -``` -Body -|---Query *string // Kusto Query -|---Timespan *TimeInterval // ISO8601 Standard Time Interval -|---AdditionalWorkspaces []*string // Optional- additional workspaces to query -``` - -#### Logs query result structure -``` -Results -|---Tables []*Table - |---Columns []*Column - |---Name *string - |---Type *LogsColumnType - |---Name *string - |---Rows []Row // Rows contain the actual results of the query -|---Error *ErrorInfo - |---Code *string -|---Visualization []byte -|---Statistics []byte -``` - -### Batch query -`QueryBatch` is an advanced method allowing users to execute multiple logs queries in a single request. The method accepts a [BatchRequest](#batch-query-request-structure) and returns a [BatchResponse](#batch-query-result-structure). `QueryBatch` can return results in any order (usually in order of completion/success). Use the `CorrelationID` field to identify the correct response. - -Example QueryBatch: [link][example_batch] - -#### Batch query request structure - -``` -BatchRequest -|---Body *Body - |---Query *string // Kusto Query - |---Timespan *TimeInterval // ISO8601 Standard Time Interval - |---Workspaces []*string // Optional- additional workspaces to query -|---CorrelationID *string // unique identifier for each query in batch -|---WorkspaceID *string -|---Headers map[string]*string // Optional- advanced query options in prefer header -|---Method *BatchQueryRequestMethod // Optional- defaults to POST -|---Path *BatchQueryRequestPath // Optional- defaults to /query -``` +### Logs query rate limits and throttling -#### Batch query result structure +The Log Analytics service applies throttling when the request rate is too high. Limits, such as the maximum number of rows returned, are also applied on the Kusto queries. For more information, see [Query API][service_limits]. -``` -BatchResponse -|---Responses []*BatchQueryResponse - |---Body *BatchQueryResults - |---Error *ErrorInfo - |---Code *string - |---Visualization []byte - |---Statistics []byte - |---Tables []*Table - |---Columns []*Column - |---Name *string - |---Type *LogsColumnType - |---Name *string - |---Rows []Row - |---Headers map[string]*string - |---CorrelationID *string - |---Status *int32 -``` +If you're executing a batch logs query, a throttled request will return a `ErrorInfo` object. That object's `code` value will be `ThrottledError`. ### Advanced logs query @@ -169,13 +72,11 @@ To run the same query against multiple Log Analytics workspaces, add the additio When multiple workspaces are included in the query, the logs in the result table are not grouped according to the workspace from which it was retrieved. -Example additional workspaces: [link][example_queryworkspace_2] - #### Increase wait time, include statistics, include render (visualization) The `LogsQueryOptions` type is used for advanced logs options. -By default, the Azure Monitor Query service will run your query for up to three minutes. To increase the default timeout, set `LogsQueryOptions.Wait` to desired number of seconds. Max wait time the service will allow is ten minutes (600 seconds). +By default, your query will run for up to three minutes. To increase the default timeout, set `LogsQueryOptions.Wait` to the desired number of seconds. The maximum wait time the service will allow is ten minutes (600 seconds). To get logs query execution statistics, such as CPU and memory consumption, set `LogsQueryOptions.Statistics` to `true`. @@ -191,71 +92,20 @@ azquery.LogsClientQueryWorkspaceOptions{ } ``` -Example QueryWorkspace options: [link][example_queryworkspace_2] - -To do the same with `QueryBatch`, set the values in the `BatchQueryRequest.Headers` map with a key of "prefer". - -### Metrics query - -You can query metrics on an Azure resource using the `MetricsClient.QueryResource` method. For each requested metric, a set of aggregated values is returned inside the `Timeseries` collection. - -A resource ID is required to query metrics. To find the resource ID: - -1. Navigate to your resource's page in the Azure portal. -2. From the **Overview** blade, select the **JSON View** link. -3. In the resulting JSON, copy the value of the `id` property. - -Example QueryResource example: [link][example_metrics_queryresource] - -#### Metrics result structure -``` -Response -|---Timespan *string -|---Value []*Metric - |---ID *string - |---Name *LocalizableString - |---Timeseries []*TimeSeriesElement - |---Data []*MetricValue - |---TimeStamp *time.Time - |---Average *float64 - |---Count *float64 - |---Maximum *float64 - |---Minimum *float64 - |---Total *float64 - |---Metadatavalues []*MetadataValue - |---Name *LocalizableString - |---Value *string - |---Type *string - |---Unit *MetricUnit - |---DisplayDescription *string - |---ErrorCode *string - |---ErrorMessage *string -|---Cost *int32 -|---Interval *string -|---Namespace *string -|---Resourceregion *string -``` - -#### List Metric Definitions - -To list the metric definitions for the resource, use the `NewListDefinitionsPager` method. +To do the same with `QueryBatch`, set the values in the `BatchQueryRequest.Headers` map with a key of "prefer", or use the `NewBatchQueryRequest` method. -Example NewListDefinitionsPager: [link][example_metrics_listdefinitions] +## Examples -#### List Metric Namespaces +Get started with our [examples][azquery_pkg_go_samples]. -To list the metric namespaces for the resource, use the `NewListNamespacesPager` method. +For the majority of log queries, use the `LogsClient.QueryWorkspace` method. The `LogsClient.QueryBatch` method should only be used in advanced scenerios. -Example NewListNamespacesPager: [link][example_metrics_listnamespaces] +Use `MetricsClient.QueryResource` for metric queries. ## Troubleshooting See our [troubleshooting guide][troubleshooting_guide] for details on how to diagnose various failure scenarios. -## Next steps - -To learn more about Azure Monitor, see the [Azure Monitor service documentation][azure_monitor_overview]. - ## Contributing This project welcomes contributions and suggestions. Most contributions require you to agree to a [Contributor License Agreement (CLA)][cla] declaring that you have the right to, and actually do, grant us the rights to use your contribution. @@ -269,30 +119,25 @@ the [Code of Conduct FAQ][coc_faq] or contact [opencode@microsoft.com][coc_conta comments. -[managed_identity]: https://docs.microsoft.com/azure/active-directory/managed-identities-azure-resources/overview -[azquery]: https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/monitor/azquery +[azquery_repo]: https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/monitor/azquery +[azquery_pkg_go]: https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/monitor/azquery +[azquery_pkg_go_samples]: https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/monitor/azquery#pkg-examples [azure_identity]: https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azidentity [azure_sub]: https://azure.microsoft.com/free/ -[azure_monitor_create_using_portal]: https://docs.microsoft.com/azure/azure-monitor/logs/quick-create-workspace -[azure_monitor_overview]: https://docs.microsoft.com/azure/azure-monitor/overview +[azure_monitor_overview]: https://learn.microsoft.com/azure/azure-monitor/overview [context]: https://pkg.go.dev/context [cloud_documentation]: https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud -[create_workspace]: https://learn.microsoft.com/azure/azure-monitor/logs/quick-create-workspace [default_cred_ref]: https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/azidentity#defaultazurecredential -[example_batch]: https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/monitor/azquery#example-LogsClient.QueryBatch -[example_query_workspace]: https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/monitor/azquery#example-LogsClient.QueryWorkspace -[example_queryworkspace_2]: https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/monitor/azquery#example-LogsClient.QueryWorkspace-Second -[example_logs_client]: https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/monitor/azquery#NewLogsClient -[example_metrics_client]: https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/monitor/azquery#NewMetricsClient -[example_metrics_listdefinitions]: https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/monitor/azquery#example-MetricsClient.NewListDefinitionsPager -[example_metrics_listnamespaces]: https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/monitor/azquery#example-MetricsClient.NewListNamespacesPager -[example_metrics_queryresource]: https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/monitor/azquery#example-MetricsClient.QueryResource +[example_logs_client]: https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/monitor/azquery#example-NewLogsClient +[example_metrics_client]: https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/monitor/azquery#example-NewMetricsClient [kusto_query_language]: https://learn.microsoft.com/azure/data-explorer/kusto/query/ [kusto_to_sql]: https://learn.microsoft.com/azure/data-explorer/kusto/query/sqlcheatsheet [log_analytics_workspace]: https://learn.microsoft.com/azure/azure-monitor/logs/log-analytics-workspace-overview -[log_analytics_workspace_create]: https://learn.microsoft.com/azure/azure-monitor/logs/quick-create-workspace?tabs=azure-portal -[time_go]: https://pkg.go.dev/time -[time_intervals]: https://en.wikipedia.org/wiki/ISO_8601#Time_intervals +[log_analytics_workspace_create]: https://learn.microsoft.com/azure/azure-monitor/logs/quick-create-workspace +[logs_overview]: https://learn.microsoft.com/azure/azure-monitor/logs/data-platform-logs +[metrics_overview]: https://learn.microsoft.com/azure/azure-monitor/essentials/data-platform-metrics +[monitor_docs]: https://learn.microsoft.com/azure/azure-monitor/ +[service_limits]: https://learn.microsoft.com/azure/azure-monitor/service-limits#la-query-api [troubleshooting_guide]: https://github.com/Azure/azure-sdk-for-go/blob/main/sdk/monitor/azquery/TROUBLESHOOTING.md [cla]: https://cla.microsoft.com [coc]: https://opensource.microsoft.com/codeofconduct/ diff --git a/sdk/monitor/azquery/TROUBLESHOOTING.md b/sdk/monitor/azquery/TROUBLESHOOTING.md index 4f70cca12759..9baf236e004f 100644 --- a/sdk/monitor/azquery/TROUBLESHOOTING.md +++ b/sdk/monitor/azquery/TROUBLESHOOTING.md @@ -114,20 +114,19 @@ The following code shows an example of setting the server timeout. By setting th ```go workspaceID := "" -prefer := "wait=600" // increases wait time to ten minutes -cred, err := azidentity.NewDefaultAzureCredential(nil) -if err != nil { - //TODO: handle error -} -client := azquery.NewLogsClient(cred, nil) +options := &azquery.LogsClientQueryWorkspaceOptions{ + Options: &azquery.LogsQueryOptions{ + Wait: to.Ptr(600), // increases wait time to ten minutes + }, + } -res, err := client.QueryWorkspace(context.Background(), +res, err := logsClient.QueryWorkspace(context.Background(), workspaceID, azquery.Body{Query: to.Ptr("AzureActivity | summarize Count = count() by ResourceGroup | top 10 by Count | project ResourceGroup")}, - &azquery.LogsClientQueryWorkspaceOptions{Prefer: &prefer}) + options) if err != nil { //TODO: handle error } @@ -144,9 +143,8 @@ sufficient permissions to query the workspace. {"error":{"code":"AuthorizationFailed","message":"The client '71d56230-5920-4856-8f33-c030b269d870' with object id '71d56230-5920-4856-8f33-c030b269d870' does not have authorization to perform action 'microsoft.insights/metrics/read' over scope '/subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/srnagar-azuresdkgroup/providers/Microsoft.CognitiveServices/accounts/srnagara-textanalytics/providers/microsoft.insights' or the scope is invalid. If access was recently granted, please refresh your credentials."}} ``` -1. Check that the application or user that is making the request has sufficient permissions: - * You can refer to this document to [manage access to workspaces][workspace_access] -2. If the user or application is granted sufficient privileges to query the workspace, make sure you are +1. Check that the application or user that is making the request has sufficient permissions. +2. If the user or application is granted sufficient privileges to query the resource, make sure you are authenticating as that user/application. If you are authenticating using the [DefaultAzureCredential][default_azure_cred] then check the logs to verify that the credential used is the one you expected. To enable logging, see [enable @@ -158,7 +156,7 @@ guide][azidentity_troubleshooting] ### Troubleshooting unsupported granularity for metrics query If you notice the following exception, this is due to an invalid time granularity in the metrics query request. Your -query might look something like the following where `MetricsQueryOptions().setGranularity()` is set to an unsupported +query might look something like the following where `MetricsClientQueryResourceOptions.Interval` is set to an unsupported duration. ```text @@ -172,6 +170,6 @@ As documented in the error message, the supported granularity for metrics querie [azidentity_docs]: https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azidentity [azidentity_troubleshooting]: https://github.com/Azure/azure-sdk-for-go/blob/main/sdk/azidentity/TROUBLESHOOTING.md [default_azure_cred]: https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/azidentity#defaultazurecredential -[kusto]: https://docs.microsoft.com/azure/data-explorer/kusto/query +[kusto]: https://learn.microsoft.com/azure/data-explorer/kusto/query [readme_authentication]: https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/monitor/azquery#authentication -[workspace_access]: https://docs.microsoft.com/azure/azure-monitor/logs/manage-access#manage-access-using-workspace-permissions +[workspace_access]: https://learn.microsoft.com/azure/azure-monitor/logs/manage-access#manage-access-using-workspace-permissions diff --git a/sdk/monitor/azquery/autorest.md b/sdk/monitor/azquery/autorest.md index 7183b90f62e9..95cfa50a0534 100644 --- a/sdk/monitor/azquery/autorest.md +++ b/sdk/monitor/azquery/autorest.md @@ -68,6 +68,26 @@ directive: from: MetricNamespaces_List to: Metrics_ListNamespaces + # rename some metrics fields + - from: swagger-document + where: $.definitions.Metric.properties.timeseries + transform: $["x-ms-client-name"] = "TimeSeries" + - from: swagger-document + where: $.definitions.TimeSeriesElement.properties.metadatavalues + transform: $["x-ms-client-name"] = "MetadataValues" + - from: swagger-document + where: $.definitions.Response.properties.resourceregion + transform: $["x-ms-client-name"] = "ResourceRegion" + - from: swagger-document + where: $.parameters.MetricNamespaceParameter + transform: $["x-ms-client-name"] = "MetricNamespace" + - from: swagger-document + where: $.parameters.MetricNamesParameter + transform: $["x-ms-client-name"] = "MetricNames" + - from: swagger-document + where: $.parameters.OrderByParameter + transform: $["x-ms-client-name"] = "OrderBy" + # rename Body.Workspaces to Body.AdditionalWorkspaces - from: swagger-document where: $.definitions.queryBody.properties.workspaces @@ -103,7 +123,7 @@ directive: transform: return $.replace(/Options \*string/g, "Options *LogsQueryOptions"); - from: logs_client.go where: $ - transform: return $.replace(/\*options\.Options/, "options.Options.String()"); + transform: return $.replace(/\*options\.Options/, "options.Options.preferHeader()"); # add default values for batch request path and method attributes - from: swagger-document @@ -128,6 +148,18 @@ directive: transform: return $.replace(/type ResultType string/, "//ResultType - Reduces the set of data collected. The syntax allowed depends on the operation. See the operation's description for details.\ntype ResultType string"); # update doc comments + - from: swagger-document + where: $.paths["/workspaces/{workspaceId}/query"].post + transform: $["description"] = "Executes an Analytics query for data." + - from: swagger-document + where: $.paths["/$batch"].post + transform: $["description"] = "Executes a batch of Analytics queries for data." + - from: swagger-document + where: $.definitions.queryResults.properties.tables + transform: $["description"] = "The results of the query in tabular format." + - from: swagger-document + where: $.definitions.batchQueryResults.properties.tables + transform: $["description"] = "The results of the query in tabular format." - from: swagger-document where: $.definitions.queryBody.properties.workspaces transform: $["description"] = "A list of workspaces to query in addition to the primary workspace." diff --git a/sdk/monitor/azquery/custom_client.go b/sdk/monitor/azquery/custom_client.go index b3ec109d2c97..0d2af3a01f2d 100644 --- a/sdk/monitor/azquery/custom_client.go +++ b/sdk/monitor/azquery/custom_client.go @@ -160,8 +160,9 @@ type LogsQueryOptions struct { Wait *int } -// String implements the fmt.Stringer interface for type LogsQueryOptions. -func (l LogsQueryOptions) String() string { +// preferHeader converts LogsQueryOptions from struct to properly formatted sting +// to be used in the request Prefer Header +func (l LogsQueryOptions) preferHeader() string { var options []string if l.Statistics != nil && *l.Statistics { options = append(options, "include-statistics=true") @@ -180,7 +181,7 @@ func NewBatchQueryRequest(workspaceID string, query string, timespan TimeInterva var optionsMap map[string]*string if options.Statistics != nil || options.Visualization != nil || options.Wait != nil { optionsMap = make(map[string]*string) - optionsString := options.String() + optionsString := options.preferHeader() optionsMap["prefer"] = &optionsString } diff --git a/sdk/monitor/azquery/example_test.go b/sdk/monitor/azquery/example_test.go index e2dacf2bdb09..61fda84ef100 100644 --- a/sdk/monitor/azquery/example_test.go +++ b/sdk/monitor/azquery/example_test.go @@ -56,8 +56,12 @@ func ExampleNewMetricsClient() { } func ExampleLogsClient_QueryWorkspace() { - // Basic QueryWorkspace example + // QueryWorkspace allows users to query log data. + // A workspace ID is required to query logs. To find the workspace ID: + // 1. If not already made, create a Log Analytics workspace (https://learn.microsoft.com/azure/azure-monitor/logs/quick-create-workspace). + // 2. Navigate to your workspace's page in the Azure portal. + // 3. From the **Overview** blade, copy the value of the ***Workspace ID*** property. workspaceID := "g4d1e129-fb1e-4b0a-b234-250abc987ea65" // example Azure Log Analytics Workspace ID res, err := logsClient.QueryWorkspace( @@ -84,10 +88,25 @@ func ExampleLogsClient_QueryWorkspace() { } func ExampleLogsClient_QueryWorkspace_second() { - // Advanced QueryWorkspace Example + // `QueryWorkspace` also has more advanced options, including querying multiple workspaces + // and LogsQueryOptions (including statistics and visualization information and increasing default timeout). + // When multiple workspaces are included in the query, the logs in the result table are not grouped + // according to the workspace from which it was retrieved. workspaceID1 := "g4d1e129-fb1e-4b0a-b234-250abc987ea65" // example Azure Log Analytics Workspace ID workspaceID2 := "h4bc4471-2e8c-4b1c-8f47-12b9a4d5ac71" + additionalWorkspaces := []*string{to.Ptr(workspaceID2)} + + // Advanced query options + // Setting Statistics to true returns stats information in Results.Statistics + // Setting Visualization to true returns visualization information in Results.Visualization + options := &azquery.LogsClientQueryWorkspaceOptions{ + Options: &azquery.LogsQueryOptions{ + Statistics: to.Ptr(true), + Visualization: to.Ptr(true), + Wait: to.Ptr(600), + }, + } res, err := logsClient.QueryWorkspace( context.TODO(), @@ -95,15 +114,9 @@ func ExampleLogsClient_QueryWorkspace_second() { azquery.Body{ Query: to.Ptr(query), Timespan: to.Ptr(azquery.NewTimeInterval(time.Date(2022, 12, 25, 0, 0, 0, 0, time.UTC), time.Date(2022, 12, 25, 12, 0, 0, 0, time.UTC))), - AdditionalWorkspaces: []*string{to.Ptr(workspaceID2)}, + AdditionalWorkspaces: additionalWorkspaces, }, - to.Ptr(azquery.LogsClientQueryWorkspaceOptions{ - Options: &azquery.LogsQueryOptions{ - Statistics: to.Ptr(true), - Visualization: to.Ptr(true), - Wait: to.Ptr(600), - }, - })) + options) if err != nil { //TODO: handle error } @@ -111,7 +124,9 @@ func ExampleLogsClient_QueryWorkspace_second() { //TODO: handle partial error } - // Example of converting table data into a slice of structs + // Example of converting table data into a slice of structs. + // Query results are returned in Table Rows and are of type any. + // Type assertion is required to access the underlying value of each index in a Row. var QueryResults []queryResult for _, table := range res.Tables { QueryResults = make([]queryResult, len(table.Rows)) @@ -126,9 +141,19 @@ func ExampleLogsClient_QueryWorkspace_second() { } fmt.Println(QueryResults) + + // Print out Statistics + fmt.Printf("Statistics: %s", string(res.Statistics)) + + // Print out Visualization information + fmt.Printf("Visualization: %s", string(res.Visualization)) + } func ExampleLogsClient_QueryBatch() { + // `QueryBatch` is an advanced method allowing users to execute multiple log queries in a single request. + // For help formatting a `BatchRequest`, please use the method `NewBatchQueryRequest`. + workspaceID := "g4d1e129-fb1e-4b0a-b234-250abc987ea65" // example Azure Log Analytics Workspace ID timespan := azquery.NewTimeInterval(time.Date(2022, 12, 25, 0, 0, 0, 0, time.UTC), time.Date(2022, 12, 25, 12, 0, 0, 0, time.UTC)) @@ -143,6 +168,8 @@ func ExampleLogsClient_QueryBatch() { //TODO: handle error } + // `QueryBatch` can return results in any order, usually by time it takes each individual query to complete. + // Use the `CorrelationID` field to identify the correct response. responses := res.BatchResponse.Responses fmt.Println("ID's of successful responses:") for _, response := range responses { @@ -153,26 +180,44 @@ func ExampleLogsClient_QueryBatch() { } func ExampleMetricsClient_QueryResource() { + // QueryResource is used to query metrics on an Azure resource. + // For each requested metric, a set of aggregated values is returned inside the `TimeSeries` collection. + + // resource ID is required to query metrics. To find the resource ID: + // 1. Navigate to your resource's page in the Azure portal. + // 2. From the **Overview** blade, select the **JSON View** link. + // 3. In the resulting JSON, copy the value of the `id` property. + resourceURI := "subscriptions/182c901a-129a-4f5d-86e4-afdsb294590a2/resourceGroups/test-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions" + res, err := metricsClient.QueryResource(context.TODO(), resourceURI, &azquery.MetricsClientQueryResourceOptions{ Timespan: to.Ptr(azquery.NewTimeInterval(time.Date(2022, 12, 25, 0, 0, 0, 0, time.UTC), time.Date(2022, 12, 25, 12, 0, 0, 0, time.UTC))), Interval: to.Ptr("PT1M"), - Metricnames: nil, + MetricNames: nil, Aggregation: to.Ptr("Average,count"), Top: to.Ptr[int32](3), - Orderby: to.Ptr("Average asc"), + OrderBy: to.Ptr("Average asc"), Filter: to.Ptr("BlobType eq '*'"), ResultType: nil, - Metricnamespace: to.Ptr("Microsoft.Storage/storageAccounts/blobServices"), + MetricNamespace: to.Ptr("Microsoft.Storage/storageAccounts/blobServices"), }) if err != nil { //TODO: handle error } - _ = res + + // Print out metric name and the time stamps of each metric data point + for _, metric := range res.Value { + fmt.Println(*metric.Name.Value) + for _, timeSeriesElement := range metric.TimeSeries { + for _, metricValue := range timeSeriesElement.Data { + fmt.Println(metricValue.TimeStamp) + } + } + } } func ExampleMetricsClient_NewListDefinitionsPager() { - pager := metricsClient.NewListDefinitionsPager("subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill/providers/microsoft.insights/metricdefinitions", &azquery.MetricsClientListDefinitionsOptions{Metricnamespace: to.Ptr("microsoft.insights/components")}) + pager := metricsClient.NewListDefinitionsPager(resourceURI, &azquery.MetricsClientListDefinitionsOptions{MetricNamespace: to.Ptr("microsoft.insights/components")}) for pager.More() { nextResult, err := pager.NextPage(context.TODO()) if err != nil { @@ -186,7 +231,7 @@ func ExampleMetricsClient_NewListDefinitionsPager() { } func ExampleMetricsClient_NewListNamespacesPager() { - pager := metricsClient.NewListNamespacesPager("subscriptions/182c901a-129a-4f5d-86e4-cc6b294590a2/resourceGroups/hyr-log/providers/microsoft.insights/components/f1-bill", &azquery.MetricsClientListNamespacesOptions{StartTime: to.Ptr("2020-08-31T15:53:00Z")}) + pager := metricsClient.NewListNamespacesPager(resourceURI, &azquery.MetricsClientListNamespacesOptions{StartTime: to.Ptr("2020-08-31T15:53:00Z")}) for pager.More() { nextResult, err := pager.NextPage(context.TODO()) if err != nil { diff --git a/sdk/monitor/azquery/logs_client.go b/sdk/monitor/azquery/logs_client.go index eb20a3d0989d..c370eaf389d1 100644 --- a/sdk/monitor/azquery/logs_client.go +++ b/sdk/monitor/azquery/logs_client.go @@ -19,8 +19,7 @@ import ( "strings" ) -// QueryBatch - Executes a batch of Analytics queries for data. Here [https://dev.loganalytics.io/documentation/Using-the-API] -// is an example for using POST with an Analytics query. +// QueryBatch - Executes a batch of Analytics queries for data. // If the operation fails it returns an *azcore.ResponseError type. // Generated from API version 2021-05-19_Preview // body - The batch request body @@ -60,8 +59,7 @@ func (client *LogsClient) queryBatchHandleResponse(resp *http.Response) (LogsCli return result, nil } -// QueryWorkspace - Executes an Analytics query for data. Here [https://dev.loganalytics.io/documentation/Using-the-API] is -// an example for using POST with an Analytics query. +// QueryWorkspace - Executes an Analytics query for data. // If the operation fails it returns an *azcore.ResponseError type. // Generated from API version 2021-05-19_Preview // workspaceID - Primary Workspace ID of the query. This is Workspace ID from the Properties blade in the Azure portal @@ -94,7 +92,7 @@ func (client *LogsClient) queryWorkspaceCreateRequest(ctx context.Context, works return nil, err } if options != nil && options.Options != nil { - req.Raw().Header["Prefer"] = []string{options.Options.String()} + req.Raw().Header["Prefer"] = []string{options.Options.preferHeader()} } req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, body) diff --git a/sdk/monitor/azquery/logs_client_test.go b/sdk/monitor/azquery/logs_client_test.go index 424bf1bcfc32..2221a8152088 100644 --- a/sdk/monitor/azquery/logs_client_test.go +++ b/sdk/monitor/azquery/logs_client_test.go @@ -260,10 +260,6 @@ func TestTimeInterval(t *testing.T) { require.Error(t, err) } -func TestLogsQueryOptions(t *testing.T) { - -} - func TestLogConstants(t *testing.T) { batchMethod := []azquery.BatchQueryRequestMethod{azquery.BatchQueryRequestMethodPOST} batchMethodRes := azquery.PossibleBatchQueryRequestMethodValues() diff --git a/sdk/monitor/azquery/metrics_client.go b/sdk/monitor/azquery/metrics_client.go index 2d1283f5974a..14f72cfc1c9a 100644 --- a/sdk/monitor/azquery/metrics_client.go +++ b/sdk/monitor/azquery/metrics_client.go @@ -54,8 +54,8 @@ func (client *MetricsClient) listDefinitionsCreateRequest(ctx context.Context, r } reqQP := req.Raw().URL.Query() reqQP.Set("api-version", "2018-01-01") - if options != nil && options.Metricnamespace != nil { - reqQP.Set("metricnamespace", *options.Metricnamespace) + if options != nil && options.MetricNamespace != nil { + reqQP.Set("metricnamespace", *options.MetricNamespace) } req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} @@ -159,8 +159,8 @@ func (client *MetricsClient) queryResourceCreateRequest(ctx context.Context, res if options != nil && options.Interval != nil { reqQP.Set("interval", *options.Interval) } - if options != nil && options.Metricnames != nil { - reqQP.Set("metricnames", *options.Metricnames) + if options != nil && options.MetricNames != nil { + reqQP.Set("metricnames", *options.MetricNames) } if options != nil && options.Aggregation != nil { reqQP.Set("aggregation", *options.Aggregation) @@ -168,8 +168,8 @@ func (client *MetricsClient) queryResourceCreateRequest(ctx context.Context, res if options != nil && options.Top != nil { reqQP.Set("top", strconv.FormatInt(int64(*options.Top), 10)) } - if options != nil && options.Orderby != nil { - reqQP.Set("orderby", *options.Orderby) + if options != nil && options.OrderBy != nil { + reqQP.Set("orderby", *options.OrderBy) } if options != nil && options.Filter != nil { reqQP.Set("$filter", *options.Filter) @@ -178,8 +178,8 @@ func (client *MetricsClient) queryResourceCreateRequest(ctx context.Context, res reqQP.Set("resultType", string(*options.ResultType)) } reqQP.Set("api-version", "2018-01-01") - if options != nil && options.Metricnamespace != nil { - reqQP.Set("metricnamespace", *options.Metricnamespace) + if options != nil && options.MetricNamespace != nil { + reqQP.Set("metricnamespace", *options.MetricNamespace) } req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} diff --git a/sdk/monitor/azquery/metrics_client_test.go b/sdk/monitor/azquery/metrics_client_test.go index 948790846149..02377f5f8f13 100644 --- a/sdk/monitor/azquery/metrics_client_test.go +++ b/sdk/monitor/azquery/metrics_client_test.go @@ -44,13 +44,13 @@ func TestQueryResource_BasicQuerySuccess(t *testing.T) { res, err := client.QueryResource(context.Background(), resourceURI, &azquery.MetricsClientQueryResourceOptions{Timespan: to.Ptr(timespan), Interval: to.Ptr("PT1M"), - Metricnames: nil, + MetricNames: nil, Aggregation: to.Ptr("Average,count"), Top: nil, - Orderby: to.Ptr("Average asc"), + OrderBy: to.Ptr("Average asc"), Filter: nil, ResultType: nil, - Metricnamespace: to.Ptr("Microsoft.AppConfiguration/configurationStores"), + MetricNamespace: to.Ptr("Microsoft.AppConfiguration/configurationStores"), }) require.NoError(t, err) require.NotNil(t, res.Response.Timespan) @@ -60,8 +60,7 @@ func TestQueryResource_BasicQuerySuccess(t *testing.T) { testSerde(t, &res) testSerde(t, res.Value[0]) testSerde(t, res.Value[0].Name) - testSerde(t, res.Value[0].Timeseries[0]) - //testSerde(t, res.Response.Value[0].Timeseries[0].Metadatavalues[0]) + testSerde(t, res.Value[0].TimeSeries[0]) } func TestQueryResource_BasicQueryFailure(t *testing.T) { @@ -80,7 +79,7 @@ func TestQueryResource_BasicQueryFailure(t *testing.T) { require.Nil(t, res.Cost) require.Nil(t, res.Interval) require.Nil(t, res.Namespace) - require.Nil(t, res.Resourceregion) + require.Nil(t, res.ResourceRegion) testSerde(t, &res) } diff --git a/sdk/monitor/azquery/models.go b/sdk/monitor/azquery/models.go index abafbf24cd4e..251e84a645bf 100644 --- a/sdk/monitor/azquery/models.go +++ b/sdk/monitor/azquery/models.go @@ -53,7 +53,7 @@ type BatchQueryResults struct { // Statistics represented in JSON format. Statistics []byte `json:"statistics,omitempty"` - // The list of tables, columns and rows. + // The results of the query in tabular format. Tables []*Table `json:"tables,omitempty"` // Visualization data in JSON format. @@ -132,7 +132,7 @@ type Metric struct { Name *LocalizableString `json:"name,omitempty"` // REQUIRED; the time series returned when a data query is performed. - Timeseries []*TimeSeriesElement `json:"timeseries,omitempty"` + TimeSeries []*TimeSeriesElement `json:"timeseries,omitempty"` // REQUIRED; the resource type of the metric resource. Type *string `json:"type,omitempty"` @@ -263,7 +263,7 @@ type MetricValue struct { // MetricsClientListDefinitionsOptions contains the optional parameters for the MetricsClient.ListDefinitions method. type MetricsClientListDefinitionsOptions struct { // Metric namespace to query metric definitions for. - Metricnamespace *string + MetricNamespace *string } // MetricsClientListNamespacesOptions contains the optional parameters for the MetricsClient.ListNamespaces method. @@ -291,12 +291,12 @@ type MetricsClientQueryResourceOptions struct { Interval *string // The names of the metrics (comma separated) to retrieve. Special case: If a metricname itself has a comma in it then use // %2 to indicate it. Eg: 'Metric,Name1' should be 'Metric%2Name1' - Metricnames *string + MetricNames *string // Metric namespace to query metric definitions for. - Metricnamespace *string + MetricNamespace *string // The aggregation to use for sorting results and the direction of the sort. Only one order can be specified. Examples: sum // asc. - Orderby *string + OrderBy *string // Reduces the set of data collected. The syntax allowed depends on the operation. See the operation's description for details. ResultType *ResultType // The timespan of the query. It is a string with the following format 'startDateTimeISO/endDateTimeISO'. @@ -327,12 +327,12 @@ type Response struct { Namespace *string `json:"namespace,omitempty"` // The region of the resource being queried for metrics. - Resourceregion *string `json:"resourceregion,omitempty"` + ResourceRegion *string `json:"resourceregion,omitempty"` } // Results - Contains the tables, columns & rows resulting from a query. type Results struct { - // REQUIRED; The list of tables, columns and rows. + // REQUIRED; The results of the query in tabular format. Tables []*Table `json:"tables,omitempty"` // The code and message for an error. @@ -363,5 +363,5 @@ type TimeSeriesElement struct { Data []*MetricValue `json:"data,omitempty"` // the metadata values returned if $filter was specified in the call. - Metadatavalues []*MetadataValue `json:"metadatavalues,omitempty"` + MetadataValues []*MetadataValue `json:"metadatavalues,omitempty"` } diff --git a/sdk/monitor/azquery/models_serde.go b/sdk/monitor/azquery/models_serde.go index 5917c83edc36..dd8ce7777038 100644 --- a/sdk/monitor/azquery/models_serde.go +++ b/sdk/monitor/azquery/models_serde.go @@ -338,7 +338,7 @@ func (m Metric) MarshalJSON() ([]byte, error) { populate(objectMap, "errorMessage", m.ErrorMessage) populate(objectMap, "id", m.ID) populate(objectMap, "name", m.Name) - populate(objectMap, "timeseries", m.Timeseries) + populate(objectMap, "timeseries", m.TimeSeries) populate(objectMap, "type", m.Type) populate(objectMap, "unit", m.Unit) return json.Marshal(objectMap) @@ -369,7 +369,7 @@ func (m *Metric) UnmarshalJSON(data []byte) error { err = unpopulate(val, "Name", &m.Name) delete(rawMsg, key) case "timeseries": - err = unpopulate(val, "Timeseries", &m.Timeseries) + err = unpopulate(val, "TimeSeries", &m.TimeSeries) delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &m.Type) @@ -668,7 +668,7 @@ func (r Response) MarshalJSON() ([]byte, error) { populate(objectMap, "cost", r.Cost) populate(objectMap, "interval", r.Interval) populate(objectMap, "namespace", r.Namespace) - populate(objectMap, "resourceregion", r.Resourceregion) + populate(objectMap, "resourceregion", r.ResourceRegion) populate(objectMap, "timespan", r.Timespan) populate(objectMap, "value", r.Value) return json.Marshal(objectMap) @@ -693,7 +693,7 @@ func (r *Response) UnmarshalJSON(data []byte) error { err = unpopulate(val, "Namespace", &r.Namespace) delete(rawMsg, key) case "resourceregion": - err = unpopulate(val, "Resourceregion", &r.Resourceregion) + err = unpopulate(val, "ResourceRegion", &r.ResourceRegion) delete(rawMsg, key) case "timespan": err = unpopulate(val, "Timespan", &r.Timespan) @@ -787,7 +787,7 @@ func (t *Table) UnmarshalJSON(data []byte) error { func (t TimeSeriesElement) MarshalJSON() ([]byte, error) { objectMap := make(map[string]interface{}) populate(objectMap, "data", t.Data) - populate(objectMap, "metadatavalues", t.Metadatavalues) + populate(objectMap, "metadatavalues", t.MetadataValues) return json.Marshal(objectMap) } @@ -804,7 +804,7 @@ func (t *TimeSeriesElement) UnmarshalJSON(data []byte) error { err = unpopulate(val, "Data", &t.Data) delete(rawMsg, key) case "metadatavalues": - err = unpopulate(val, "Metadatavalues", &t.Metadatavalues) + err = unpopulate(val, "MetadataValues", &t.MetadataValues) delete(rawMsg, key) } if err != nil { diff --git a/sdk/monitor/azquery/version.go b/sdk/monitor/azquery/version.go index 006f627d95b2..438f6be6010f 100644 --- a/sdk/monitor/azquery/version.go +++ b/sdk/monitor/azquery/version.go @@ -8,5 +8,5 @@ package azquery const ( moduleName = "azquery" - version = "v0.4.1" + version = "v1.0.0" ) From afa7fca16ec67826ff235a55a97f922905fa423c Mon Sep 17 00:00:00 2001 From: gracewilcox <43627800+gracewilcox@users.noreply.github.com> Date: Wed, 8 Feb 2023 15:50:43 -0800 Subject: [PATCH 005/107] [azquery] Change MetricsClientQueryResourceOptions.Aggregation from type *string to []*AggregationType (#19981) --- sdk/monitor/azquery/assets.json | 2 +- sdk/monitor/azquery/autorest.md | 13 ++++++++++++- sdk/monitor/azquery/custom_client.go | 10 ++++++++++ sdk/monitor/azquery/example_test.go | 2 +- sdk/monitor/azquery/metrics_client.go | 2 +- sdk/monitor/azquery/metrics_client_test.go | 5 +++-- sdk/monitor/azquery/models.go | 4 ++-- 7 files changed, 30 insertions(+), 8 deletions(-) diff --git a/sdk/monitor/azquery/assets.json b/sdk/monitor/azquery/assets.json index 5a6770d18f1d..fd1c49d37f59 100644 --- a/sdk/monitor/azquery/assets.json +++ b/sdk/monitor/azquery/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/monitor/azquery", - "Tag": "go/monitor/azquery_98fd781041" + "Tag": "go/monitor/azquery_123118d585" } diff --git a/sdk/monitor/azquery/autorest.md b/sdk/monitor/azquery/autorest.md index 95cfa50a0534..1de0bc8285d7 100644 --- a/sdk/monitor/azquery/autorest.md +++ b/sdk/monitor/azquery/autorest.md @@ -250,4 +250,15 @@ directive: transform: return $.replace(/Timespan \*string/g, "Timespan *TimeInterval"); - from: metrics_client.go where: $ - transform: return $.replace(/reqQP\.Set\(\"timespan\", \*options\.Timespan\)/g, "reqQP.Set(\"timespan\", string(*options.Timespan))"); \ No newline at end of file + transform: return $.replace(/reqQP\.Set\(\"timespan\", \*options\.Timespan\)/g, "reqQP.Set(\"timespan\", string(*options.Timespan))"); + + # change type of MetricsClientQueryResourceOptions.Aggregation from *string to []*AggregationType + - from: models.go + where: $ + transform: return $.replace(/Aggregation \*string/g, "Aggregation []*AggregationType"); + - from: metrics_client.go + where: $ + transform: return $.replace(/\*options.Aggregation/g, "aggregationTypeToString(options.Aggregation)"); + - from: swagger-document + where: $.parameters.AggregationsParameter + transform: $["description"] = "The list of aggregation types to retrieve" \ No newline at end of file diff --git a/sdk/monitor/azquery/custom_client.go b/sdk/monitor/azquery/custom_client.go index 0d2af3a01f2d..39f0d062ff7c 100644 --- a/sdk/monitor/azquery/custom_client.go +++ b/sdk/monitor/azquery/custom_client.go @@ -192,3 +192,13 @@ func NewBatchQueryRequest(workspaceID string, query string, timespan TimeInterva Headers: optionsMap, } } + +// aggregationTypeToString converts []*AggregationType to string, so the values can be sent +// in MetricsClient.QueryResource +func aggregationTypeToString(aggregations []*AggregationType) string { + var s []string + for _, aggregation := range aggregations { + s = append(s, string(*aggregation)) + } + return strings.Join(s, ",") +} diff --git a/sdk/monitor/azquery/example_test.go b/sdk/monitor/azquery/example_test.go index 61fda84ef100..30b788945e90 100644 --- a/sdk/monitor/azquery/example_test.go +++ b/sdk/monitor/azquery/example_test.go @@ -194,7 +194,7 @@ func ExampleMetricsClient_QueryResource() { Timespan: to.Ptr(azquery.NewTimeInterval(time.Date(2022, 12, 25, 0, 0, 0, 0, time.UTC), time.Date(2022, 12, 25, 12, 0, 0, 0, time.UTC))), Interval: to.Ptr("PT1M"), MetricNames: nil, - Aggregation: to.Ptr("Average,count"), + Aggregation: to.SliceOfPtrs(azquery.AggregationTypeAverage, azquery.AggregationTypeCount), Top: to.Ptr[int32](3), OrderBy: to.Ptr("Average asc"), Filter: to.Ptr("BlobType eq '*'"), diff --git a/sdk/monitor/azquery/metrics_client.go b/sdk/monitor/azquery/metrics_client.go index 14f72cfc1c9a..a8ef22e4c9fd 100644 --- a/sdk/monitor/azquery/metrics_client.go +++ b/sdk/monitor/azquery/metrics_client.go @@ -163,7 +163,7 @@ func (client *MetricsClient) queryResourceCreateRequest(ctx context.Context, res reqQP.Set("metricnames", *options.MetricNames) } if options != nil && options.Aggregation != nil { - reqQP.Set("aggregation", *options.Aggregation) + reqQP.Set("aggregation", aggregationTypeToString(options.Aggregation)) } if options != nil && options.Top != nil { reqQP.Set("top", strconv.FormatInt(int64(*options.Top), 10)) diff --git a/sdk/monitor/azquery/metrics_client_test.go b/sdk/monitor/azquery/metrics_client_test.go index 02377f5f8f13..3e832206399a 100644 --- a/sdk/monitor/azquery/metrics_client_test.go +++ b/sdk/monitor/azquery/metrics_client_test.go @@ -42,10 +42,11 @@ func TestQueryResource_BasicQuerySuccess(t *testing.T) { client := startMetricsTest(t) timespan := azquery.TimeInterval("PT12H") res, err := client.QueryResource(context.Background(), resourceURI, - &azquery.MetricsClientQueryResourceOptions{Timespan: to.Ptr(timespan), + &azquery.MetricsClientQueryResourceOptions{ + Timespan: to.Ptr(timespan), Interval: to.Ptr("PT1M"), MetricNames: nil, - Aggregation: to.Ptr("Average,count"), + Aggregation: to.SliceOfPtrs(azquery.AggregationTypeAverage, azquery.AggregationTypeCount), Top: nil, OrderBy: to.Ptr("Average asc"), Filter: nil, diff --git a/sdk/monitor/azquery/models.go b/sdk/monitor/azquery/models.go index 251e84a645bf..92d07d130f8f 100644 --- a/sdk/monitor/azquery/models.go +++ b/sdk/monitor/azquery/models.go @@ -274,8 +274,8 @@ type MetricsClientListNamespacesOptions struct { // MetricsClientQueryResourceOptions contains the optional parameters for the MetricsClient.QueryResource method. type MetricsClientQueryResourceOptions struct { - // The list of aggregation types (comma separated) to retrieve. - Aggregation *string + // The list of aggregation types to retrieve + Aggregation []*AggregationType // The $filter is used to reduce the set of metric data returned. Example: Metric contains metadata A, B and C. - Return all // time series of C where A = a1 and B = b1 or b2 $filter=A eq 'a1' and B eq 'b1' // or B eq 'b2' and C eq '' - Invalid variant: $filter=A eq 'a1' and B eq 'b1' and C eq '' or B = 'b2' This is invalid because From 2708bfb51fd4e211981b5a097b5de8cde511070b Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Wed, 8 Feb 2023 16:47:46 -0800 Subject: [PATCH 006/107] Increment version for monitor/azquery releases (#19982) Increment package version after release of monitor/azquery --- sdk/monitor/azquery/CHANGELOG.md | 10 ++++++++++ sdk/monitor/azquery/version.go | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/sdk/monitor/azquery/CHANGELOG.md b/sdk/monitor/azquery/CHANGELOG.md index 3a855e5d8492..ee2d4fe3b15e 100644 --- a/sdk/monitor/azquery/CHANGELOG.md +++ b/sdk/monitor/azquery/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.0.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.0.0 (2023-02-08) ### Breaking Changes diff --git a/sdk/monitor/azquery/version.go b/sdk/monitor/azquery/version.go index 438f6be6010f..805688549393 100644 --- a/sdk/monitor/azquery/version.go +++ b/sdk/monitor/azquery/version.go @@ -8,5 +8,5 @@ package azquery const ( moduleName = "azquery" - version = "v1.0.0" + version = "v1.0.1" ) From eda441febded5beb304825e8a4100b1309a38730 Mon Sep 17 00:00:00 2001 From: Rick Winter Date: Wed, 8 Feb 2023 17:29:30 -0800 Subject: [PATCH 007/107] Add 1.20 to the matrix (#19952) * Add 1.20 to the matrix * Update uses of rand.Seed to rand.NewSource --- eng/pipelines/mgmt-auto-release.yml | 2 +- .../jobs/archetype-sdk-client-samples.yml | 18 +++- .../templates/jobs/archetype-sdk-client.yml | 16 +++- .../jobs/archetype-sdk-eng-client.yml | 18 +++- .../templates/jobs/mgmt-mock-test.yml | 2 +- .../templates/stages/platform-matrix.json | 4 +- eng/pipelines/templates/variables/globals.yml | 2 +- eng/scripts/automation_init.sh | 6 +- sdk/resourcemanager/internal/go.mod | 2 +- sdk/resourcemanager/internal/go.sum | 4 +- .../internal/testutil/helper.go | 4 +- .../internal/testutil/recording.go | 93 ++++++++++++++----- .../internal/testutil/recording_test.go | 6 +- 13 files changed, 127 insertions(+), 50 deletions(-) diff --git a/eng/pipelines/mgmt-auto-release.yml b/eng/pipelines/mgmt-auto-release.yml index 0d3d2e294e2c..dfd10d30b63e 100644 --- a/eng/pipelines/mgmt-auto-release.yml +++ b/eng/pipelines/mgmt-auto-release.yml @@ -23,7 +23,7 @@ stages: - task: GoTool@0 inputs: - version: '1.19' + version: '1.20' - task: ShellScript@2 inputs: diff --git a/eng/pipelines/templates/jobs/archetype-sdk-client-samples.yml b/eng/pipelines/templates/jobs/archetype-sdk-client-samples.yml index 5233f298d52b..a49c20f8b345 100644 --- a/eng/pipelines/templates/jobs/archetype-sdk-client-samples.yml +++ b/eng/pipelines/templates/jobs/archetype-sdk-client-samples.yml @@ -18,19 +18,27 @@ stages: Linux_Go118: pool.name: azsdk-pool-mms-ubuntu-2004-general image.name: MMSUbuntu20.04 - go.version: '1.18.5' + go.version: '1.18.10' Windows_Go118: pool.name: azsdk-pool-mms-win-2022-general image.name: MMS2022 - go.version: '1.18.5' + go.version: '1.18.10' Linux_Go119: pool.name: azsdk-pool-mms-ubuntu-2004-general image.name: MMSUbuntu20.04 - go.version: '1.19' + go.version: '1.19.5' Windows_Go119: pool.name: azsdk-pool-mms-win-2022-general image.name: MMS2022 - go.version: '1.19' + go.version: '1.19.5' + Linux_Go120: + pool.name: azsdk-pool-mms-ubuntu-2004-general + image.name: MMSUbuntu20.04 + go.version: '1.20' + Windows_Go120: + pool.name: azsdk-pool-mms-win-2022-general + image.name: MMS2022 + go.version: '1.20' pool: name: $(pool.name) vmImage: $(image.name) @@ -63,7 +71,7 @@ stages: steps: - task: GoTool@0 inputs: - version: '1.19' + version: '1.20' displayName: "Select Go Version" - template: ../steps/create-go-workspace.yml diff --git a/eng/pipelines/templates/jobs/archetype-sdk-client.yml b/eng/pipelines/templates/jobs/archetype-sdk-client.yml index a8ada194cf36..b7d86177b8e6 100644 --- a/eng/pipelines/templates/jobs/archetype-sdk-client.yml +++ b/eng/pipelines/templates/jobs/archetype-sdk-client.yml @@ -85,11 +85,11 @@ stages: Linux_Go118: pool.name: azsdk-pool-mms-ubuntu-2004-general image.name: MMSUbuntu20.04 - go.version: '1.18.5' + go.version: '1.18.10' Windows_Go118: pool.name: azsdk-pool-mms-win-2022-general image.name: MMS2022 - go.version: '1.18.5' + go.version: '1.18.10' Linux_Go119: pool.name: azsdk-pool-mms-ubuntu-2004-general image.name: MMSUbuntu20.04 @@ -97,7 +97,15 @@ stages: Windows_Go119: pool.name: azsdk-pool-mms-win-2022-general image.name: MMS2022 - go.version: '1.19' + go.version: '1.19' + Linux_Go120: + pool.name: azsdk-pool-mms-ubuntu-2004-general + image.name: MMSUbuntu20.04 + go.version: '1.20' + Windows_Go120: + pool.name: azsdk-pool-mms-win-2022-general + image.name: MMS2022 + go.version: '1.20' generate.bom: true pool: name: $(pool.name) @@ -141,7 +149,7 @@ stages: - task: GoTool@0 inputs: - version: '1.19' + version: '1.20' displayName: "Select Go Version" - template: ../steps/create-go-workspace.yml diff --git a/eng/pipelines/templates/jobs/archetype-sdk-eng-client.yml b/eng/pipelines/templates/jobs/archetype-sdk-eng-client.yml index 4bba57e892a0..8d1d50d1700e 100644 --- a/eng/pipelines/templates/jobs/archetype-sdk-eng-client.yml +++ b/eng/pipelines/templates/jobs/archetype-sdk-eng-client.yml @@ -28,19 +28,27 @@ stages: Linux_Go118: pool.name: azsdk-pool-mms-ubuntu-2004-general image.name: MMSUbuntu20.04 - go.version: '1.18.5' + go.version: '1.18.10' Windows_Go118: pool.name: azsdk-pool-mms-win-2022-general image.name: MMS2022 - go.version: '1.18.5' + go.version: '1.18.10' Linux_Go119: pool.name: azsdk-pool-mms-ubuntu-2004-general image.name: MMSUbuntu20.04 - go.version: '1.19' + go.version: '1.19.5' Windows_Go119: pool.name: azsdk-pool-mms-win-2022-general image.name: MMS2022 - go.version: '1.19' + go.version: '1.19.5' + Linux_Go120: + pool.name: azsdk-pool-mms-ubuntu-2004-general + image.name: MMSUbuntu20.04 + go.version: '1.20' + Windows_Go120: + pool.name: azsdk-pool-mms-win-2022-general + image.name: MMS2022 + go.version: '1.20' generate.bom: true pool: name: $(pool.name) @@ -79,7 +87,7 @@ stages: - task: GoTool@0 inputs: - version: '1.19' + version: '1.20' displayName: "Select Go Version" - template: ../steps/create-go-workspace.yml diff --git a/eng/pipelines/templates/jobs/mgmt-mock-test.yml b/eng/pipelines/templates/jobs/mgmt-mock-test.yml index d0eda1553772..6ac45250fd55 100644 --- a/eng/pipelines/templates/jobs/mgmt-mock-test.yml +++ b/eng/pipelines/templates/jobs/mgmt-mock-test.yml @@ -14,7 +14,7 @@ jobs: displayName: 'Install autorest' - task: GoTool@0 inputs: - version: '1.19' + version: '1.20' displayName: "Select Go Version" - template: /eng/pipelines/templates/steps/create-go-workspace.yml diff --git a/eng/pipelines/templates/stages/platform-matrix.json b/eng/pipelines/templates/stages/platform-matrix.json index fb9df86651f8..c1f1c63729e9 100644 --- a/eng/pipelines/templates/stages/platform-matrix.json +++ b/eng/pipelines/templates/stages/platform-matrix.json @@ -11,7 +11,9 @@ } }, "GoVersion": [ - "1.18.2" + "1.18.10", + "1.19.5", + "1.20" ] } } diff --git a/eng/pipelines/templates/variables/globals.yml b/eng/pipelines/templates/variables/globals.yml index 1010bf70cd16..071313330e97 100644 --- a/eng/pipelines/templates/variables/globals.yml +++ b/eng/pipelines/templates/variables/globals.yml @@ -1,5 +1,5 @@ variables: - GoLintCLIVersion: 'v1.48.0' + GoLintCLIVersion: 'v1.51.1' Package.EnableSBOMSigning: true # Enable go native component governance detection # https://docs.opensource.microsoft.com/tools/cg/index.html diff --git a/eng/scripts/automation_init.sh b/eng/scripts/automation_init.sh index ca6c73ca6917..c5bb546012c0 100644 --- a/eng/scripts/automation_init.sh +++ b/eng/scripts/automation_init.sh @@ -17,10 +17,10 @@ outputFile="$(realpath $outputFile)" echo "output json file: $outputFile" TMPDIR="/tmp" -if [ ! "$(go version | awk '{print $3}' | cut -c 3-6)" = "1.19" ] +if [ ! "$(go version | awk '{print $3}' | cut -c 3-6)" = "1.20" ] then - wget https://golang.org/dl/go1.19.linux-amd64.tar.gz - tar -C $TMPDIR -xzf go1.19.linux-amd64.tar.gz + wget https://golang.org/dl/go1.20.linux-amd64.tar.gz + tar -C $TMPDIR -xzf go1.20.linux-amd64.tar.gz export GOROOT=$TMPDIR/go export PATH=$GOROOT/bin:$PATH fi diff --git a/sdk/resourcemanager/internal/go.mod b/sdk/resourcemanager/internal/go.mod index 3eb23e49e6fa..cc6d02a5dc22 100644 --- a/sdk/resourcemanager/internal/go.mod +++ b/sdk/resourcemanager/internal/go.mod @@ -5,7 +5,7 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.0 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.0.0 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.0.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.1.2 github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0 github.com/stretchr/testify v1.7.0 ) diff --git a/sdk/resourcemanager/internal/go.sum b/sdk/resourcemanager/internal/go.sum index 9a8fa60437af..87790b562164 100644 --- a/sdk/resourcemanager/internal/go.sum +++ b/sdk/resourcemanager/internal/go.sum @@ -2,8 +2,8 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.0 h1:Ut0ZGdOwJDw0npYEg+TLlPls3 github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.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/Azure/azure-sdk-for-go/sdk/internal v1.1.2 h1:+5VZ72z0Qan5Bog5C+ZkgSqUbeVUd9wgtHOrIKuc5b8= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.1.2/go.mod h1:eWRD7oawr1Mu1sLCawqVc0CUiF43ia3qQMxLscsKQ9w= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0 h1:ECsQtyERDVz3NP3kvDOTLvbQhqWp/x9EsGKtb4ogUr8= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0/go.mod h1:s1tW/At+xHqjNFvWU4G0c0Qv33KOhvbGNj0RCTQDV8s= github.com/AzureAD/microsoft-authentication-library-for-go v0.4.0 h1:WVsrXCnHlDDX8ls+tootqRE87/hL9S/g4ewig9RsD/c= diff --git a/sdk/resourcemanager/internal/testutil/helper.go b/sdk/resourcemanager/internal/testutil/helper.go index 68c17844baa1..35b8f188cd29 100644 --- a/sdk/resourcemanager/internal/testutil/helper.go +++ b/sdk/resourcemanager/internal/testutil/helper.go @@ -34,8 +34,8 @@ func GetEnv(key, fallback string) string { // a delegate function to delete the created resource group which can be used for clean up // and any error during the creation. func CreateResourceGroup(ctx context.Context, subscriptionId string, cred azcore.TokenCredential, options *arm.ClientOptions, location string) (*armresources.ResourceGroup, func() (*runtime.Poller[armresources.ResourceGroupsClientDeleteResponse], error), error) { - rand.Seed(time.Now().UnixNano()) - resourceGroupName := fmt.Sprintf("go-sdk-test-%d", rand.Intn(1000)) + r := rand.New(rand.NewSource(time.Now().UnixNano())) + resourceGroupName := fmt.Sprintf("go-sdk-test-%d", r.Intn(1000)) rgClient, err := armresources.NewResourceGroupsClient(subscriptionId, cred, options) if err != nil { return nil, nil, err diff --git a/sdk/resourcemanager/internal/testutil/recording.go b/sdk/resourcemanager/internal/testutil/recording.go index 9ba00fd0e15c..0b49b309ba9e 100644 --- a/sdk/resourcemanager/internal/testutil/recording.go +++ b/sdk/resourcemanager/internal/testutil/recording.go @@ -11,6 +11,7 @@ import ( "math/rand" "net/http" "strconv" + "strings" "testing" "time" @@ -21,8 +22,24 @@ import ( const recordingRandomSeedVariableName = "recordingRandomSeed" var ( - recordingRandomSeed int64 - letterRunes = []rune("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789") + recordingSeed int64 + recordingRandomSource rand.Source +) + +const ( + alphanumericBytes = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890" + alphanumericLowercaseBytes = "abcdefghijklmnopqrstuvwxyz1234567890" + randomSeedVariableName = "randomSeed" + nowVariableName = "now" + ModeEnvironmentVariableName = "AZURE_TEST_MODE" + recordingAssetConfigName = "assets.json" +) + +// Inspired by https://stackoverflow.com/questions/22892120/how-to-generate-a-random-string-of-a-fixed-length-in-go +const ( + letterIdxBits = 6 // 6 bits to represent a letter index + letterIdxMask = 1<= 0; { + if remain == 0 { + cache, remain = recordingRandomSource.Int63(), letterIdxMax + } + if lowercaseOnly { + if idx := int(cache & letterIdxMask); idx < len(alphanumericLowercaseBytes) { + sb.WriteByte(alphanumericLowercaseBytes[idx]) + i-- } - if recordingRandomSeed == 0 { - recordingRandomSeed = time.Now().Unix() + } else { + if idx := int(cache & letterIdxMask); idx < len(alphanumericBytes) { + sb.WriteByte(alphanumericBytes[idx]) + i-- } } - rand.Seed(recordingRandomSeed) - } else { - rand.Seed(time.Now().Unix()) - } - b := make([]rune, length) - for i := range b { - b[i] = letterRunes[rand.Intn(len(letterRunes))] + cache >>= letterIdxBits + remain-- } - return prefix + string(b) + str := sb.String() + return str } diff --git a/sdk/resourcemanager/internal/testutil/recording_test.go b/sdk/resourcemanager/internal/testutil/recording_test.go index 4e07ca4add5a..cd5b65b6c8fe 100644 --- a/sdk/resourcemanager/internal/testutil/recording_test.go +++ b/sdk/resourcemanager/internal/testutil/recording_test.go @@ -27,8 +27,8 @@ func TestRecordingPolicy(t *testing.T) { require.NoError(t, err) resp, err := pl.Do(req) require.NoError(t, err) - require.Equal(t, resp.StatusCode, http.StatusBadRequest) - require.Equal(t, resp.Request.URL.String(), testEndpoint) + require.Equal(t, http.StatusBadRequest, resp.StatusCode) + require.Equal(t, testEndpoint, resp.Request.URL.String()) } func TestStartStopRecording(t *testing.T) { @@ -39,6 +39,6 @@ func TestStartStopRecording(t *testing.T) { func TestGenerateAlphaNumericID(t *testing.T) { stop := StartRecording(t, pathToPackage) rnd := GenerateAlphaNumericID(t, "test", 6) - require.Equal(t, rnd, "testsUJVGl") + require.Equal(t, "testNlDAa8", rnd) defer stop() } From 1155bce7b3e83a115a3db90995e8426f1724d8f4 Mon Sep 17 00:00:00 2001 From: Chenjie Shi Date: Thu, 9 Feb 2023 10:28:35 +0800 Subject: [PATCH 008/107] fix wrong order of require.Equal arguments (#19977) * fix wrong order of require.Equal arguments * use require.True/False instead --- .../azcontainerregistry/blob_client_test.go | 2 +- .../azcontainerregistry/client_test.go | 28 +++++++++---------- .../internal/testutil/credential_test.go | 6 ++-- .../internal/testutil/helper_test.go | 6 ++-- 4 files changed, 21 insertions(+), 21 deletions(-) diff --git a/sdk/containers/azcontainerregistry/blob_client_test.go b/sdk/containers/azcontainerregistry/blob_client_test.go index 1213d0bd3e45..07d0be222181 100644 --- a/sdk/containers/azcontainerregistry/blob_client_test.go +++ b/sdk/containers/azcontainerregistry/blob_client_test.go @@ -102,7 +102,7 @@ func TestBlobClient_GetChunk(t *testing.T) { digest := "sha256:042a816809aac8d0f7d7cacac7965782ee2ecac3f21bcf9f24b1de1a7387b769" res, err := client.GetChunk(ctx, "alpine", digest, "bytes=0-999", nil) require.NoError(t, err) - require.Equal(t, *res.ContentLength, int64(1000)) + require.Equal(t, int64(1000), *res.ContentLength) } func TestBlobClient_GetUploadStatus(t *testing.T) { diff --git a/sdk/containers/azcontainerregistry/client_test.go b/sdk/containers/azcontainerregistry/client_test.go index f3dd93580096..725ece727b93 100644 --- a/sdk/containers/azcontainerregistry/client_test.go +++ b/sdk/containers/azcontainerregistry/client_test.go @@ -100,7 +100,7 @@ func TestClient_GetManifestProperties(t *testing.T) { require.NoError(t, err) tagRes, err := client.GetManifestProperties(ctx, "alpine", *resp.Tag.Digest, nil) require.NoError(t, err) - require.Equal(t, *tagRes.Manifest.Digest, digest) + require.Equal(t, digest, *tagRes.Manifest.Digest) } func TestClient_GetManifestProperties_wrongDigest(t *testing.T) { @@ -184,8 +184,8 @@ func TestClient_NewListManifestsPager(t *testing.T) { items++ } } - require.Equal(t, pages, 32) - require.Equal(t, items, 32) + require.Equal(t, 32, pages) + require.Equal(t, 32, items) pager = client.NewListManifestsPager("alpine", &ClientListManifestsOptions{ OrderBy: to.Ptr(ArtifactManifestOrderByLastUpdatedOnDescending), @@ -253,8 +253,8 @@ func TestClient_NewListRepositoriesPager(t *testing.T) { items++ } } - require.Equal(t, pages, 3) - require.Equal(t, items, 3) + require.Equal(t, 3, pages) + require.Equal(t, 3, items) } func TestClient_NewListTagsPager(t *testing.T) { @@ -273,14 +273,14 @@ func TestClient_NewListTagsPager(t *testing.T) { require.NoError(t, err) require.NotEmpty(t, page.Tags) pages++ - require.Equal(t, len(page.Tags), 1) + require.Equal(t, 1, len(page.Tags)) for i, v := range page.Tags { fmt.Printf("page %d tag %d: %s\n", pages, i+1, *v.Name) items++ } } - require.Equal(t, pages, 3) - require.Equal(t, items, 3) + require.Equal(t, 3, pages) + require.Equal(t, 3, items) pager = client.NewListTagsPager("alpine", &ClientListTagsOptions{ OrderBy: to.Ptr(ArtifactTagOrderByLastUpdatedOnDescending), @@ -342,13 +342,13 @@ func TestClient_UpdateManifestProperties(t *testing.T) { }, }) require.NoError(t, err) - require.Equal(t, *res.Manifest.ChangeableAttributes.CanWrite, false) + require.False(t, *res.Manifest.ChangeableAttributes.CanWrite) res, err = client.UpdateManifestProperties(ctx, "alpine", digest, &ClientUpdateManifestPropertiesOptions{Value: &ManifestWriteableProperties{ CanWrite: to.Ptr(true), }, }) require.NoError(t, err) - require.Equal(t, *res.Manifest.ChangeableAttributes.CanWrite, true) + require.True(t, *res.Manifest.ChangeableAttributes.CanWrite) } func TestClient_UpdateManifestProperties_wrongDigest(t *testing.T) { @@ -372,13 +372,13 @@ func TestClient_UpdateRepositoryProperties(t *testing.T) { }, }) require.NoError(t, err) - require.Equal(t, *res.ContainerRepositoryProperties.ChangeableAttributes.CanWrite, false) + require.False(t, *res.ContainerRepositoryProperties.ChangeableAttributes.CanWrite) res, err = client.UpdateRepositoryProperties(ctx, "ubuntu", &ClientUpdateRepositoryPropertiesOptions{Value: &RepositoryWriteableProperties{ CanWrite: to.Ptr(true), }, }) require.NoError(t, err) - require.Equal(t, *res.ContainerRepositoryProperties.ChangeableAttributes.CanWrite, true) + require.True(t, *res.ContainerRepositoryProperties.ChangeableAttributes.CanWrite) } func TestClient_UpdateRepositoryProperties_wrongRepository(t *testing.T) { @@ -405,13 +405,13 @@ func TestClient_UpdateTagProperties(t *testing.T) { }, }) require.NoError(t, err) - require.Equal(t, *res.Tag.ChangeableAttributes.CanWrite, false) + require.False(t, *res.Tag.ChangeableAttributes.CanWrite) res, err = client.UpdateTagProperties(ctx, "alpine", "3.17.1", &ClientUpdateTagPropertiesOptions{Value: &TagWriteableProperties{ CanWrite: to.Ptr(true), }, }) require.NoError(t, err) - require.Equal(t, *res.Tag.ChangeableAttributes.CanWrite, true) + require.True(t, *res.Tag.ChangeableAttributes.CanWrite) } func TestClient_UpdateTagProperties_wrongTag(t *testing.T) { diff --git a/sdk/resourcemanager/internal/testutil/credential_test.go b/sdk/resourcemanager/internal/testutil/credential_test.go index 7720b466098e..96cdbc434d87 100644 --- a/sdk/resourcemanager/internal/testutil/credential_test.go +++ b/sdk/resourcemanager/internal/testutil/credential_test.go @@ -45,9 +45,9 @@ func TestGetCredAndClientOptions(t *testing.T) { require.NoError(t, err) resp, err := pl.Do(req) require.NoError(t, err) - require.Equal(t, resp.StatusCode, http.StatusBadRequest) + require.Equal(t, http.StatusBadRequest, resp.StatusCode) if recording.GetRecordMode() == recording.PlaybackMode { - require.Equal(t, resp.Request.Header.Get("Authorization"), "Bearer FakeToken") + require.Equal(t, "Bearer FakeToken", resp.Request.Header.Get("Authorization")) } - require.Equal(t, resp.Request.URL.String(), testEndpoint) + require.Equal(t, testEndpoint, resp.Request.URL.String()) } diff --git a/sdk/resourcemanager/internal/testutil/helper_test.go b/sdk/resourcemanager/internal/testutil/helper_test.go index 8c6df10d9f06..1e07a3c7385c 100644 --- a/sdk/resourcemanager/internal/testutil/helper_test.go +++ b/sdk/resourcemanager/internal/testutil/helper_test.go @@ -24,8 +24,8 @@ const ( func TestGetEnv(t *testing.T) { err := os.Setenv("test", "test") require.NoError(t, err) - require.Equal(t, GetEnv("test", ""), "test") - require.Equal(t, GetEnv("testfail", "fail"), "fail") + require.Equal(t, "test", GetEnv("test", "")) + require.Equal(t, "fail", GetEnv("testfail", "fail")) } func TestCreateDeleteResourceGroup(t *testing.T) { @@ -36,7 +36,7 @@ func TestCreateDeleteResourceGroup(t *testing.T) { defer stop() resourceGroup, _, err := CreateResourceGroup(ctx, subscriptionID, cred, options, "eastus") require.NoError(t, err) - require.Equal(t, strings.HasPrefix(*resourceGroup.Name, "go-sdk-test-"), true) + require.True(t, strings.HasPrefix(*resourceGroup.Name, "go-sdk-test-")) _, err = DeleteResourceGroup(ctx, subscriptionID, cred, options, *resourceGroup.Name) require.NoError(t, err) } From 6c17ae425337e4f87609f91d69371487c7430246 Mon Sep 17 00:00:00 2001 From: Rick Winter Date: Thu, 9 Feb 2023 09:57:54 -0800 Subject: [PATCH 009/107] Adjust order of params (#19985) --- sdk/azcore/etag_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sdk/azcore/etag_test.go b/sdk/azcore/etag_test.go index 1edff01d0a8b..88d02b67657f 100644 --- a/sdk/azcore/etag_test.go +++ b/sdk/azcore/etag_test.go @@ -18,17 +18,17 @@ func createETag(s string) ETag { func TestETagEquals(t *testing.T) { e1 := createETag("tag") - require.Equal(t, string(e1), "tag") + require.Equal(t, "tag", string(e1)) e2 := createETag("\"tag\"") - require.Equal(t, string(e2), "\"tag\"") + require.Equal(t, "\"tag\"", string(e2)) e3 := createETag("W/\"weakETag\"") - require.Equal(t, string(e3), "W/\"weakETag\"") + require.Equal(t, "W/\"weakETag\"", string(e3)) require.Truef(t, e3.IsWeak(), "ETag is expected to be weak") strongETag := createETag("\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\"") - require.Equal(t, string(strongETag), "\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\"") + require.Equal(t, "\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\"", string(strongETag)) require.Falsef(t, ETagAny.IsWeak(), "ETagAny should not be weak") } From 6a0646d30945d7935845f6eadfd416cdd5667846 Mon Sep 17 00:00:00 2001 From: Ben Broderick Phillips Date: Thu, 9 Feb 2023 16:57:16 -0500 Subject: [PATCH 010/107] Update package regex to detect arbitrary length directory trees (#19971) --- eng/scripts/Language-Settings.ps1 | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/eng/scripts/Language-Settings.ps1 b/eng/scripts/Language-Settings.ps1 index bba1df3799a8..97f5ac88c227 100644 --- a/eng/scripts/Language-Settings.ps1 +++ b/eng/scripts/Language-Settings.ps1 @@ -37,10 +37,12 @@ function Get-GoModuleVersionInfo($modPath) function Get-GoModuleProperties($goModPath) { $goModPath = $goModPath -replace "\\", "/" - if ($goModPath -match "(?sdk/(?(resourcemanager/)?([^/]+/)?(?[^/]+$)))") + # We should keep this regex in sync with what is in the azure-sdk repo at https://github.com/Azure/azure-sdk/blob/main/eng/scripts/Query-Azure-Packages.ps1#L227 + # The serviceName named capture group is unused but used in azure-sdk, so it's kept here for parity + if ($goModPath -match "(?sdk/(?(.*?(?[^/]+)/)?(?[^/]+$)))") { $modPath = $matches["modPath"] - $modName = $matches["modName"] # We may need to start readong this from the go.mod file if the path and mod config start to differ + $modName = $matches["modName"] # We may need to start reading this from the go.mod file if the path and mod config start to differ $serviceDir = $matches["serviceDir"] $sdkType = "client" if ($modName.StartsWith("arm") -or $modPath.Contains("resourcemanager")) { $sdkType = "mgmt" } @@ -143,4 +145,4 @@ function Find-Go-Artifacts-For-Apireview($ArtifactPath, $PackageName) return $packages } return $null -} \ No newline at end of file +} From dd6cb8bfef675c2260199684b04977bd6d756bd9 Mon Sep 17 00:00:00 2001 From: Charles Lowell <10964656+chlowell@users.noreply.github.com> Date: Thu, 9 Feb 2023 14:31:24 -0800 Subject: [PATCH 011/107] Copy keyvault/internal to security/keyvault/internal (#19879) --- sdk/security/keyvault/internal/CHANGELOG.md | 66 +++++++ sdk/security/keyvault/internal/LICENSE.txt | 21 +++ sdk/security/keyvault/internal/README.md | 21 +++ .../keyvault/internal/challenge_policy.go | 175 ++++++++++++++++++ .../internal/challenge_policy_test.go | 109 +++++++++++ .../keyvault/internal/ci.securitykeyvault.yml | 28 +++ sdk/security/keyvault/internal/constants.go | 11 ++ sdk/security/keyvault/internal/doc.go | 7 + sdk/security/keyvault/internal/go.mod | 17 ++ sdk/security/keyvault/internal/go.sum | 19 ++ sdk/security/keyvault/internal/parse.go | 37 ++++ sdk/security/keyvault/internal/parse_test.go | 46 +++++ 12 files changed, 557 insertions(+) create mode 100644 sdk/security/keyvault/internal/CHANGELOG.md create mode 100644 sdk/security/keyvault/internal/LICENSE.txt create mode 100644 sdk/security/keyvault/internal/README.md create mode 100644 sdk/security/keyvault/internal/challenge_policy.go create mode 100644 sdk/security/keyvault/internal/challenge_policy_test.go create mode 100644 sdk/security/keyvault/internal/ci.securitykeyvault.yml create mode 100644 sdk/security/keyvault/internal/constants.go create mode 100644 sdk/security/keyvault/internal/doc.go create mode 100644 sdk/security/keyvault/internal/go.mod create mode 100644 sdk/security/keyvault/internal/go.sum create mode 100644 sdk/security/keyvault/internal/parse.go create mode 100644 sdk/security/keyvault/internal/parse_test.go diff --git a/sdk/security/keyvault/internal/CHANGELOG.md b/sdk/security/keyvault/internal/CHANGELOG.md new file mode 100644 index 000000000000..777d18d4f095 --- /dev/null +++ b/sdk/security/keyvault/internal/CHANGELOG.md @@ -0,0 +1,66 @@ +# Release History + +## 0.8.0 (Unreleased) + +### Features Added + +### Breaking Changes +* Moved to new location + +### Bugs Fixed + +### Other Changes +* Upgrade to `azcore` v1.3.0 + +## 0.7.1 (2022-11-14) + +### Bugs Fixed +* `KeyVaultChallengePolicy` uses incorrect authentication scope when challenge verification is disabled + +## 0.7.0 (2022-09-20) + +### Breaking Changes +* Added `*KeyVaultChallengePolicyOptions` parameter to `NewKeyVaultChallengePolicy` + +## 0.6.0 (2022-09-12) + +### Breaking Changes +* Verify the challenge resource matches the vault domain. See https://aka.ms/azsdk/blog/vault-uri for more information. +* `ParseID()` no longer appends a trailing slash to vault URLs + +## 0.5.0 (2022-05-12) + +### Breaking Changes +* Removed `ExpiringResource` and its dependencies in favor of shared implementation from `internal/temporal`. + +### Other Changes +* Updated to latest versions of `azcore` and `internal`. + +## 0.4.0 (2022-04-22) + +### Breaking Changes +* Updated `ExpiringResource` and its dependent types to use generics. + +### Other Changes +* Remove reference to `TokenRequestOptions.TenantID` as it's been removed and wasn't working anyways. + +## 0.3.0 (2022-04-04) + +### Features Added +* Adds the `ParseKeyvaultID` function to parse an ID into the Key Vault URL, item name, and item version + +### Breaking Changes +* Updates to azcore v0.23.0 + +## 0.2.1 (2022-01-31) + +### Bugs Fixed +* Avoid retries on terminal failures (#16932) + +## 0.2.0 (2022-01-12) + +### Bugs Fixed +* Fixes a bug with Managed HSMs that prevented correctly authorizing requests. + +## 0.1.0 (2021-11-09) +* This is the initial release of the `internal` library for KeyVault diff --git a/sdk/security/keyvault/internal/LICENSE.txt b/sdk/security/keyvault/internal/LICENSE.txt new file mode 100644 index 000000000000..d1ca00f20a89 --- /dev/null +++ b/sdk/security/keyvault/internal/LICENSE.txt @@ -0,0 +1,21 @@ + MIT License + + Copyright (c) Microsoft Corporation. All rights reserved. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE \ No newline at end of file diff --git a/sdk/security/keyvault/internal/README.md b/sdk/security/keyvault/internal/README.md new file mode 100644 index 000000000000..8516337cf614 --- /dev/null +++ b/sdk/security/keyvault/internal/README.md @@ -0,0 +1,21 @@ +# Key Vault Internal Module for Go + +This module contains shared code for all the Key Vault SDKs, mainly the challenge authentication policy. + +## Contributing +This project welcomes contributions and suggestions. Most contributions require +you to agree to a Contributor License Agreement (CLA) declaring that you have +the right to, and actually do, grant us the rights to use your contribution. +For details, visit [https://cla.microsoft.com](https://cla.microsoft.com). + +When you submit a pull request, a CLA-bot will automatically determine whether +you need to provide a CLA and decorate the PR appropriately (e.g., label, +comment). Simply follow the instructions provided by the bot. You will only +need to do this once across all repos using our CLA. + +This project has adopted the +[Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). +For more information, see the +[Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) +or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any +additional questions or comments. diff --git a/sdk/security/keyvault/internal/challenge_policy.go b/sdk/security/keyvault/internal/challenge_policy.go new file mode 100644 index 000000000000..f5c8b725f2f4 --- /dev/null +++ b/sdk/security/keyvault/internal/challenge_policy.go @@ -0,0 +1,175 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package internal + +import ( + "errors" + "fmt" + "io" + "net/http" + "net/url" + "strings" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/internal/errorinfo" +) + +const challengeMatchError = `challenge resource "%s" doesn't match the requested domain. Set DisableChallengeResourceVerification to true in your client options to disable. See https://aka.ms/azsdk/blog/vault-uri for more information` + +type KeyVaultChallengePolicyOptions struct { + // DisableChallengeResourceVerification controls whether the policy requires the + // authentication challenge resource to match the Key Vault or Managed HSM domain + DisableChallengeResourceVerification bool +} + +type keyVaultAuthorizer struct { + // tro is the policy's authentication parameters. These are discovered from an authentication challenge + // elicited ahead of the first client request. + tro policy.TokenRequestOptions + // TODO: move into tro once it has a tenant field (https://github.com/Azure/azure-sdk-for-go/issues/19841) + tenantID string + verifyChallengeResource bool +} + +type reqBody struct { + body io.ReadSeekCloser + contentType string +} + +func NewKeyVaultChallengePolicy(cred azcore.TokenCredential, opts *KeyVaultChallengePolicyOptions) policy.Policy { + if opts == nil { + opts = &KeyVaultChallengePolicyOptions{} + } + kv := keyVaultAuthorizer{ + verifyChallengeResource: !opts.DisableChallengeResourceVerification, + } + return runtime.NewBearerTokenPolicy(cred, nil, &policy.BearerTokenOptions{ + AuthorizationHandler: policy.AuthorizationHandler{ + OnRequest: kv.authorize, + OnChallenge: kv.authorizeOnChallenge, + }, + }) +} + +func (k *keyVaultAuthorizer) authorize(req *policy.Request, authNZ func(policy.TokenRequestOptions) error) error { + if len(k.tro.Scopes) == 0 || k.tenantID == "" { + if body := req.Body(); body != nil { + // We don't know the scope or tenant ID because we haven't seen a challenge yet. We elicit one now by sending + // the request without authorization, first removing its body, if any. authorizeOnChallenge will reattach the + // body, authorize the request, and send it again. + rb := reqBody{body, req.Raw().Header.Get("content-type")} + req.SetOperationValue(rb) + if err := req.SetBody(nil, ""); err != nil { + return err + } + } + // returning nil indicates the bearer token policy should send the request + return nil + } + // else we know the auth parameters and can authorize the request as normal + return authNZ(k.tro) +} + +func (k *keyVaultAuthorizer) authorizeOnChallenge(req *policy.Request, res *http.Response, authNZ func(policy.TokenRequestOptions) error) error { + // parse the challenge + if err := k.updateTokenRequestOptions(res, req.Raw()); err != nil { + return err + } + // reattach the request's original body, if it was removed by authorize(). If a bug prevents recovering + // the body, this policy will send the request without it and get a 400 response from Key Vault. + var rb reqBody + if req.OperationValue(&rb) { + if err := req.SetBody(rb.body, rb.contentType); err != nil { + return err + } + } + // authenticate with the parameters supplied by Key Vault, authorize the request, send it again + return authNZ(k.tro) +} + +// parses Tenant ID from auth challenge +// https://login.microsoftonline.com/00000000-0000-0000-0000-000000000000 +func parseTenant(url string) string { + if url == "" { + return "" + } + parts := strings.Split(url, "/") + tenant := parts[3] + tenant = strings.ReplaceAll(tenant, ",", "") + return tenant +} + +type challengePolicyError struct { + err error +} + +func (c *challengePolicyError) Error() string { + return c.err.Error() +} + +func (*challengePolicyError) NonRetriable() { + // marker method +} + +func (c *challengePolicyError) Unwrap() error { + return c.err +} + +var _ errorinfo.NonRetriable = (*challengePolicyError)(nil) + +// updateTokenRequestOptions parses authentication parameters from Key Vault's challenge +func (k *keyVaultAuthorizer) updateTokenRequestOptions(resp *http.Response, req *http.Request) error { + authHeader := resp.Header.Get("WWW-Authenticate") + if authHeader == "" { + return &challengePolicyError{err: errors.New("response has no WWW-Authenticate header for challenge authentication")} + } + + // Strip down to auth and resource + // Format is "Bearer authorization=\"\" resource=\"\"" OR + // "Bearer authorization=\"\" scope=\"\" resource=\"\"" + authHeader = strings.ReplaceAll(authHeader, "Bearer ", "") + + parts := strings.Split(authHeader, " ") + + vals := map[string]string{} + for _, part := range parts { + subParts := strings.Split(part, "=") + if len(subParts) == 2 { + stripped := strings.ReplaceAll(subParts[1], "\"", "") + stripped = strings.TrimSuffix(stripped, ",") + vals[subParts[0]] = stripped + } + } + + k.tenantID = parseTenant(vals["authorization"]) + scope := "" + if v, ok := vals["scope"]; ok { + scope = v + } else if v, ok := vals["resource"]; ok { + scope = v + } + if scope == "" { + return &challengePolicyError{err: errors.New("could not find a valid resource in the WWW-Authenticate header")} + } + if k.verifyChallengeResource { + // the challenge resource's host must match the requested vault's host + parsed, err := url.Parse(scope) + if err != nil { + return &challengePolicyError{err: fmt.Errorf(`invalid challenge resource "%s": %v`, scope, err)} + } + if !strings.HasSuffix(req.URL.Host, "."+parsed.Host) { + return &challengePolicyError{err: fmt.Errorf(challengeMatchError, scope)} + } + } + if !strings.HasSuffix(scope, "/.default") { + scope += "/.default" + } + k.tro.Scopes = []string{scope} + return nil +} diff --git a/sdk/security/keyvault/internal/challenge_policy_test.go b/sdk/security/keyvault/internal/challenge_policy_test.go new file mode 100644 index 000000000000..f9352aa18fed --- /dev/null +++ b/sdk/security/keyvault/internal/challenge_policy_test.go @@ -0,0 +1,109 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package internal + +import ( + "context" + "fmt" + "net/http" + "strings" + "testing" + "time" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/internal/mock" + "github.com/stretchr/testify/require" +) + +type credentialFunc func(context.Context, policy.TokenRequestOptions) (azcore.AccessToken, error) + +func (cf credentialFunc) GetToken(ctx context.Context, options policy.TokenRequestOptions) (azcore.AccessToken, error) { + return cf(ctx, options) +} + +func TestChallengePolicy(t *testing.T) { + accessToken := "***" + resource := "https://vault.azure.net" + scope := "https://vault.azure.net/.default" + challengeResource := `Bearer authorization="https://login.microsoftonline.com/{tenant}", resource="{resource}"` + challengeScope := `Bearer authorization="https://login.microsoftonline.com/{tenant}", scope="{resource}"` + + for _, test := range []struct { + expectedScope, format, resource string + disableVerify, err bool + }{ + // happy path: resource matches requested vault's host (vault.azure.net) + {format: challengeResource, resource: resource, expectedScope: scope}, + {format: challengeResource, resource: resource, disableVerify: true, expectedScope: scope}, + {format: challengeScope, resource: scope, expectedScope: scope}, + {format: challengeScope, resource: scope, disableVerify: true, expectedScope: scope}, + // the policy should prefer scope to resource when a challenge specifies both + {format: fmt.Sprintf(`%s scope="%s"`, challengeResource, scope), resource: resource, expectedScope: scope}, + {format: challengeScope + ` resource="ignore me"`, resource: scope, expectedScope: scope}, + + // error cases: resource/scope doesn't match the requested vault's host (vault.azure.net) + {format: challengeResource, resource: "https://vault.azure.cn", err: true}, + {format: challengeResource, resource: "https://myvault.azure.net", err: true}, + {format: challengeScope, resource: "https://vault.azure.cn/.default", err: true}, + {format: challengeScope, resource: "https://myvault.azure.net/.default", err: true}, + + // the policy shouldn't return errors for the above cases when verification is disabled + {format: challengeResource, resource: "https://vault.azure.cn", disableVerify: true, expectedScope: "https://vault.azure.cn/.default"}, + {format: challengeResource, resource: "https://myvault.azure.net", disableVerify: true, expectedScope: "https://myvault.azure.net/.default"}, + {format: challengeScope, resource: "https://vault.azure.cn/.default", disableVerify: true, expectedScope: "https://vault.azure.cn/.default"}, + {format: challengeScope, resource: "https://myvault.azure.net/.default", disableVerify: true, expectedScope: "https://myvault.azure.net/.default"}, + } { + t.Run("", func(t *testing.T) { + srv, close := mock.NewServer(mock.WithTransformAllRequestsToTestServerUrl()) + defer close() + srv.AppendResponse( + mock.WithHeader("WWW-Authenticate", strings.ReplaceAll(test.format, "{resource}", test.resource)), + mock.WithStatusCode(401), + ) + srv.AppendResponse(mock.WithPredicate(func(r *http.Request) bool { + if authz := r.Header.Values("Authorization"); len(authz) != 1 || authz[0] != "Bearer "+accessToken { + t.Errorf(`unexpected Authorization "%s"`, authz) + } + return true + })) + srv.AppendResponse() + authenticated := false + cred := credentialFunc(func(ctx context.Context, tro policy.TokenRequestOptions) (azcore.AccessToken, error) { + authenticated = true + require.Equal(t, []string{test.expectedScope}, tro.Scopes) + return azcore.AccessToken{Token: accessToken, ExpiresOn: time.Now().Add(time.Hour)}, nil + }) + p := NewKeyVaultChallengePolicy(cred, &KeyVaultChallengePolicyOptions{DisableChallengeResourceVerification: test.disableVerify}) + pl := runtime.NewPipeline("", "", + runtime.PipelineOptions{PerRetry: []policy.Policy{p}}, + &policy.ClientOptions{Transport: srv}, + ) + req, err := runtime.NewRequest(context.Background(), "GET", "https://42.vault.azure.net") + require.NoError(t, err) + _, err = pl.Do(req) + if test.err { + expected := fmt.Sprintf(challengeMatchError, test.resource) + require.EqualError(t, err, expected) + require.IsType(t, &challengePolicyError{}, err) + } else { + require.True(t, authenticated, "policy should have authenticated") + } + }) + } +} + +func TestParseTenant(t *testing.T) { + actual := parseTenant("") + require.Empty(t, actual) + + expected := "00000000-0000-0000-0000-000000000000" + sampleURL := "https://login.microsoftonline.com/" + expected + actual = parseTenant(sampleURL) + require.Equal(t, expected, actual, "tenant was not properly parsed, got %s, expected %s", actual, expected) +} diff --git a/sdk/security/keyvault/internal/ci.securitykeyvault.yml b/sdk/security/keyvault/internal/ci.securitykeyvault.yml new file mode 100644 index 000000000000..2f8b8e1a87ad --- /dev/null +++ b/sdk/security/keyvault/internal/ci.securitykeyvault.yml @@ -0,0 +1,28 @@ +# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. +trigger: + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/security/keyvault/internal + +pr: + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/security/keyvault/internal + +stages: +- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml + parameters: + ServiceDirectory: 'security/keyvault/internal' + RunLiveTests: false diff --git a/sdk/security/keyvault/internal/constants.go b/sdk/security/keyvault/internal/constants.go new file mode 100644 index 000000000000..610f1544f363 --- /dev/null +++ b/sdk/security/keyvault/internal/constants.go @@ -0,0 +1,11 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package internal + +const ( + version = "v0.8.0" //nolint +) diff --git a/sdk/security/keyvault/internal/doc.go b/sdk/security/keyvault/internal/doc.go new file mode 100644 index 000000000000..d8f93492f51d --- /dev/null +++ b/sdk/security/keyvault/internal/doc.go @@ -0,0 +1,7 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package internal diff --git a/sdk/security/keyvault/internal/go.mod b/sdk/security/keyvault/internal/go.mod new file mode 100644 index 000000000000..0debbe735836 --- /dev/null +++ b/sdk/security/keyvault/internal/go.mod @@ -0,0 +1,17 @@ +module github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/internal + +go 1.18 + +require ( + github.com/Azure/azure-sdk-for-go/sdk/azcore v1.3.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.1.1 + github.com/stretchr/testify v1.7.0 +) + +require ( + github.com/davecgh/go-spew v1.1.0 // indirect + github.com/pmezard/go-difflib v1.0.0 // indirect + golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4 // indirect + golang.org/x/text v0.3.7 // indirect + gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c // indirect +) diff --git a/sdk/security/keyvault/internal/go.sum b/sdk/security/keyvault/internal/go.sum new file mode 100644 index 000000000000..45bf8a734a06 --- /dev/null +++ b/sdk/security/keyvault/internal/go.sum @@ -0,0 +1,19 @@ +github.com/Azure/azure-sdk-for-go/sdk/azcore v1.3.0 h1:VuHAcMq8pU1IWNT/m5yRaGqbK0BiQKHT8X4DTp9CHdI= +github.com/Azure/azure-sdk-for-go/sdk/azcore v1.3.0/go.mod h1:tZoQYdDZNOiIjdSn0dVWVfl0NEPGOJqVLzSrcFk4Is0= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.1.1 h1:Oj853U9kG+RLTCQXpjvOnrv0WaZHxgmZz1TlLywgOPY= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.1.1/go.mod h1:eWRD7oawr1Mu1sLCawqVc0CUiF43ia3qQMxLscsKQ9w= +github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +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/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/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk= +golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo= +gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/sdk/security/keyvault/internal/parse.go b/sdk/security/keyvault/internal/parse.go new file mode 100644 index 000000000000..8511832d27c0 --- /dev/null +++ b/sdk/security/keyvault/internal/parse.go @@ -0,0 +1,37 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +package internal + +import ( + "fmt" + "net/url" + "strings" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" +) + +// ParseID parses "https://myvaultname.vault.azure.net/keys/key1053998307/b86c2e6ad9054f4abf69cc185b99aa60" +// into "https://myvaultname.managedhsm.azure.net/", "key1053998307", and "b86c2e6ad9054f4abf69cc185b99aa60" +func ParseID(id *string) (*string, *string, *string) { + if id == nil { + return nil, nil, nil + } + parsed, err := url.Parse(*id) + if err != nil { + return nil, nil, nil + } + + url := fmt.Sprintf("%s://%s", parsed.Scheme, parsed.Host) + split := strings.Split(strings.TrimPrefix(parsed.Path, "/"), "/") + if len(split) < 3 { + if len(split) == 2 { + return &url, to.Ptr(split[1]), nil + } + return &url, nil, nil + } + + return &url, to.Ptr(split[1]), to.Ptr(split[2]) +} diff --git a/sdk/security/keyvault/internal/parse_test.go b/sdk/security/keyvault/internal/parse_test.go new file mode 100644 index 000000000000..6f1fcb1bf62f --- /dev/null +++ b/sdk/security/keyvault/internal/parse_test.go @@ -0,0 +1,46 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +package internal + +import ( + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/stretchr/testify/require" +) + +func TestParseID(t *testing.T) { + examples := map[string]struct{ url, name, version *string }{ + "https://myvaultname.vault.azure.net/keys/key1053998307/b86c2e6ad9054f4abf69cc185b99aa60": {to.Ptr("https://myvaultname.vault.azure.net"), to.Ptr("key1053998307"), to.Ptr("b86c2e6ad9054f4abf69cc185b99aa60")}, + "https://myvaultname.vault.azure.net:8080/keys/key1053998307/b86c2e6ad9054f4abf69cc185b99aa60": {to.Ptr("https://myvaultname.vault.azure.net:8080"), to.Ptr("key1053998307"), to.Ptr("b86c2e6ad9054f4abf69cc185b99aa60")}, + "https://myvaultname.vault.azure.net/keys/key1053998307": {to.Ptr("https://myvaultname.vault.azure.net"), to.Ptr("key1053998307"), nil}, + "https://myvaultname.vault.azure.net:8080/keys/key1053998307": {to.Ptr("https://myvaultname.vault.azure.net:8080"), to.Ptr("key1053998307"), nil}, + "https://myvaultname.vault.azure.net/": {to.Ptr("https://myvaultname.vault.azure.net"), nil, nil}, + "https://myvaultname.vault.azure.net:8080": {to.Ptr("https://myvaultname.vault.azure.net:8080"), nil, nil}, + } + + for url, expected := range examples { + url, name, version := ParseID(&url) + if expected.url == nil { + require.Nil(t, url) + } else { + require.NotNil(t, url) + require.Equal(t, *expected.url, *url) + } + if expected.name == nil { + require.Nil(t, name) + } else { + require.NotNilf(t, name, "expected %s", *expected.name) + require.Equal(t, *expected.name, *name) + } + if expected.version == nil { + require.Nil(t, version) + } else { + require.NotNil(t, version) + require.Equal(t, *expected.version, *version) + } + } +} From a47082f1a8b4b2b8469e4c4b08bf9f6acc5245c9 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Thu, 9 Feb 2023 21:13:28 -0800 Subject: [PATCH 012/107] Sync eng/common directory with azure-sdk-tools for PR 5083 (#19993) * Remove language from profile zip * Revert "Remove language from profile zip" This reverts commit 2f670435b25f89955338170a7bdfbe4432cbe23f. * Remove Services parameter * Fix path to tests-file * Run both sync and async tests by default * Add LanguageVersion to common perf.yml --------- Co-authored-by: Mike Harder --- eng/common/pipelines/templates/jobs/perf.yml | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/eng/common/pipelines/templates/jobs/perf.yml b/eng/common/pipelines/templates/jobs/perf.yml index b19bd5c88bd4..ff2d53162558 100644 --- a/eng/common/pipelines/templates/jobs/perf.yml +++ b/eng/common/pipelines/templates/jobs/perf.yml @@ -17,6 +17,9 @@ parameters: - name: Language type: string default: '' +- name: LanguageVersion + type: string + default: '' - name: LanguageRepoName type: string default: $(Build.Repository.Name) @@ -38,9 +41,6 @@ parameters: - name: ServiceDirectory type: string default: '' -- name: Services - type: string - default: '' - name: PackageVersions type: string default: '.*' @@ -118,17 +118,12 @@ jobs: Location: westus ResourceType: perf - - pwsh: | - set-content -path config.yml -value "WorkingDirectories:" - add-content -path config.yml -value " ${{ parameters.Language }}: $(Agent.BuildDirectory)/s" - workingDirectory: azure-sdk-tools/tools/perf-automation/Azure.Sdk.Tools.PerfAutomation - displayName: Create config.yml - - script: >- dotnet run -- run - --no-sync - --languages ${{ parameters.Language }} - --services "${{ parameters.Services }}" + --language ${{ parameters.Language }} + --language-version ${{ parameters.LanguageVersion }} + --repo-root $(System.DefaultWorkingDirectory) + --tests-file $(System.DefaultWorkingDirectory)/sdk/${{ parameters.ServiceDirectory }}/perf-tests.yml --package-versions "${{ parameters.PackageVersions }}" --tests "${{ parameters.Tests }}" --arguments "${{ parameters.Arguments }}" From e6e1faf41cacb095f2528993506f5a8c51ab7225 Mon Sep 17 00:00:00 2001 From: Gauri Prasad <51212198+gapra-msft@users.noreply.github.com> Date: Fri, 10 Feb 2023 10:06:02 -0800 Subject: [PATCH 013/107] Added a few service client tests (#19924) * Added a few service client tests and some changes to testcommon * Fixed type of arg * Addressed comments from PR * Modified some tests and uploaded some assets * make sas unrecorded * fix ineffassign * Removing deprecated import * Ignoring unused lint --------- Co-authored-by: siminsavani-msft <77068571+siminsavani-msft@users.noreply.github.com> --- sdk/storage/azblob/appendblob/client_test.go | 8 +- sdk/storage/azblob/assets.json | 2 +- sdk/storage/azblob/blob/client_test.go | 10 +- sdk/storage/azblob/blob/retry_reader_test.go | 2 +- sdk/storage/azblob/blockblob/client_test.go | 10 +- .../internal/testcommon/clients_auth.go | 54 ++++--- sdk/storage/azblob/pageblob/client_test.go | 4 +- sdk/storage/azblob/service/client.go | 2 +- sdk/storage/azblob/service/client_test.go | 141 +++++++++++++++--- 9 files changed, 176 insertions(+), 57 deletions(-) diff --git a/sdk/storage/azblob/appendblob/client_test.go b/sdk/storage/azblob/appendblob/client_test.go index 009d066e02ad..63dca724f609 100644 --- a/sdk/storage/azblob/appendblob/client_test.go +++ b/sdk/storage/azblob/appendblob/client_test.go @@ -263,7 +263,7 @@ func (s *AppendBlobUnrecordedTestsSuite) TestAppendBlockFromURL() { // Get source abClient URL with SAS for AppendBlockFromURL. srcBlobParts, _ := blob.ParseURL(srcBlob.URL()) - credential, err := testcommon.GetGenericCredential(testcommon.TestAccountDefault) + credential, err := testcommon.GetGenericSharedKeyCredential(testcommon.TestAccountDefault) _require.Nil(err) perms := sas.BlobPermissions{Read: true} @@ -345,7 +345,7 @@ func (s *AppendBlobUnrecordedTestsSuite) TestAppendBlockFromURLWithMD5() { // Get source abClient URL with SAS for AppendBlockFromURL. srcBlobParts, _ := blob.ParseURL(srcBlob.URL()) - credential, err := testcommon.GetGenericCredential(testcommon.TestAccountDefault) + credential, err := testcommon.GetGenericSharedKeyCredential(testcommon.TestAccountDefault) _require.Nil(err) perms := sas.BlobPermissions{Read: true} @@ -1763,7 +1763,7 @@ func (s *AppendBlobRecordedTestsSuite) TestAppendBlockPermanentDelete() { parts, err := sas.ParseURL(abClient.URL()) // Get parts for BlobURL _require.Nil(err) - credential, err := testcommon.GetGenericCredential(testcommon.TestAccountDefault) + credential, err := testcommon.GetGenericSharedKeyCredential(testcommon.TestAccountDefault) _require.Nil(err) // Set Account SAS and set Permanent Delete to true @@ -1872,7 +1872,7 @@ func (s *AppendBlobRecordedTestsSuite) TestAppendBlockPermanentDeleteWithoutPerm parts, err := sas.ParseURL(abClient.URL()) // Get parts for BlobURL _require.Nil(err) - credential, err := testcommon.GetGenericCredential(testcommon.TestAccountDefault) + credential, err := testcommon.GetGenericSharedKeyCredential(testcommon.TestAccountDefault) _require.Nil(err) // Set Account SAS diff --git a/sdk/storage/azblob/assets.json b/sdk/storage/azblob/assets.json index 3ac1b0af1830..11783d2a84b4 100644 --- a/sdk/storage/azblob/assets.json +++ b/sdk/storage/azblob/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/storage/azblob", - "Tag": "go/storage/azblob_46e572d43a" + "Tag": "go/storage/azblob_658d0bdec9" } diff --git a/sdk/storage/azblob/blob/client_test.go b/sdk/storage/azblob/blob/client_test.go index 48059f028899..c7e985cd0487 100644 --- a/sdk/storage/azblob/blob/client_test.go +++ b/sdk/storage/azblob/blob/client_test.go @@ -111,7 +111,7 @@ func (s *BlobUnrecordedTestsSuite) TestCreateBlobClientWithSnapshotAndSAS() { currentTime, err := time.Parse(time.UnixDate, "Fri Jun 11 20:00:00 UTC 2049") _require.Nil(err) - credential, err := testcommon.GetGenericCredential(testcommon.TestAccountDefault) + credential, err := testcommon.GetGenericSharedKeyCredential(testcommon.TestAccountDefault) _require.Nil(err) sasQueryParams, err := sas.AccountSignatureValues{ @@ -152,7 +152,7 @@ func (s *BlobUnrecordedTestsSuite) TestCreateBlobClientWithSnapshotAndSASUsingCo currentTime, err := time.Parse(time.UnixDate, "Fri Jun 11 20:00:00 UTC 2049") _require.Nil(err) - credential, err := testcommon.GetGenericCredential(testcommon.TestAccountDefault) + credential, err := testcommon.GetGenericSharedKeyCredential(testcommon.TestAccountDefault) _require.Nil(err) sasQueryParams, err := sas.AccountSignatureValues{ Protocol: sas.ProtocolHTTPS, @@ -418,7 +418,7 @@ func (s *BlobRecordedTestsSuite) TestBlobStartCopySourcePrivate() { // bbClient := testcommon.CreateNewBlockBlob(context.Background(), _require, blockBlobName, containerClient) // // // Create sas values for the source blob -// credential, err := testcommon.GetGenericCredential(nil, testcommon.TestAccountDefault) +// credential, err := testcommon.GetGenericSharedKeyCredential(nil, testcommon.TestAccountDefault) // if err != nil { // s.T().Fatal("Couldn't fetch credential because " + err.Error()) // } @@ -3022,7 +3022,7 @@ func (s *BlobRecordedTestsSuite) TestPermanentDelete() { parts, err := sas.ParseURL(bbClient.URL()) // Get parts for BlobURL _require.Nil(err) - credential, err := testcommon.GetGenericCredential(testcommon.TestAccountDefault) + credential, err := testcommon.GetGenericSharedKeyCredential(testcommon.TestAccountDefault) _require.Nil(err) // Set Account SAS and set Permanent Delete to true @@ -3132,7 +3132,7 @@ func (s *BlobRecordedTestsSuite) TestPermanentDeleteWithoutPermission() { parts, err := sas.ParseURL(bbClient.URL()) // Get parts for BlobURL _require.Nil(err) - credential, err := testcommon.GetGenericCredential(testcommon.TestAccountDefault) + credential, err := testcommon.GetGenericSharedKeyCredential(testcommon.TestAccountDefault) _require.Nil(err) // Set Account SAS diff --git a/sdk/storage/azblob/blob/retry_reader_test.go b/sdk/storage/azblob/blob/retry_reader_test.go index e280a38193dd..9e34da5f0c19 100644 --- a/sdk/storage/azblob/blob/retry_reader_test.go +++ b/sdk/storage/azblob/blob/retry_reader_test.go @@ -8,10 +8,10 @@ package blob import ( "context" + "crypto/rand" "errors" "fmt" "io" - "math/rand" "net" "net/http" "testing" diff --git a/sdk/storage/azblob/blockblob/client_test.go b/sdk/storage/azblob/blockblob/client_test.go index 90389d37457a..346b3f51ac8b 100644 --- a/sdk/storage/azblob/blockblob/client_test.go +++ b/sdk/storage/azblob/blockblob/client_test.go @@ -190,7 +190,7 @@ type BlockBlobUnrecordedTestsSuite struct { // // Get source blob url with SAS for StageFromURL. // srcBlobParts, _ := NewBlobURLParts(srcBlob.URL()) // -// credential, err := testcommon.GetGenericCredential(nil, testcommon.TestAccountDefault) +// credential, err := testcommon.GetGenericSharedKeyCredential(nil, testcommon.TestAccountDefault) // _require.Nil(err) // // srcBlobParts.SAS, err = BlobSASSignatureValues{ @@ -287,7 +287,7 @@ type BlockBlobUnrecordedTestsSuite struct { // // Get source blob url with SAS for StageFromURL. // srcBlobParts, _ := NewBlobURLParts(srcBlob.URL()) // -// credential, err := testcommon.GetGenericCredential(nil, testcommon.TestAccountDefault) +// credential, err := testcommon.GetGenericSharedKeyCredential(nil, testcommon.TestAccountDefault) // _require.Nil(err) // // srcBlobParts.SAS, err = BlobSASSignatureValues{ @@ -387,7 +387,7 @@ type BlockBlobUnrecordedTestsSuite struct { // contentLanguageVal := "content-language-override" // contentTypeVal := "content-type-override" // -// credential, err := testcommon.GetGenericCredential(nil, testcommon.TestAccountDefault) +// credential, err := testcommon.GetGenericSharedKeyCredential(nil, testcommon.TestAccountDefault) // _require.Nil(err) // // Append User Delegation SAS token to URL // blobParts.SAS, err = BlobSASSignatureValues{ @@ -1308,7 +1308,7 @@ func (s *BlockBlobUnrecordedTestsSuite) TestSetTierOnCopyBlockBlobFromURL() { expiryTime, err := time.Parse(time.UnixDate, "Fri Jun 11 20:00:00 UTC 2049") _require.Nil(err) - credential, err := testcommon.GetGenericCredential(testcommon.TestAccountDefault) + credential, err := testcommon.GetGenericSharedKeyCredential(testcommon.TestAccountDefault) if err != nil { s.T().Fatal("Couldn't fetch credential because " + err.Error()) } @@ -1369,7 +1369,7 @@ func (s *BlockBlobUnrecordedTestsSuite) TestSetTierOnCopyBlockBlobFromURL() { // // // Get source blob url with SAS for StageFromURL. // srcBlobParts, _ := NewBlobURLParts(srcBlob.URL()) -// credential, err := testcommon.GetGenericCredential(nil, testcommon.TestAccountDefault) +// credential, err := testcommon.GetGenericSharedKeyCredential(nil, testcommon.TestAccountDefault) // _require.Nil(err) // srcBlobParts.SAS, err = blob.SASSignatureValues{ // Protocol: SASProtocolHTTPS, // Users MUST use HTTPS (not HTTP) diff --git a/sdk/storage/azblob/internal/testcommon/clients_auth.go b/sdk/storage/azblob/internal/testcommon/clients_auth.go index b49e9bb7be38..62b538f958e2 100644 --- a/sdk/storage/azblob/internal/testcommon/clients_auth.go +++ b/sdk/storage/azblob/internal/testcommon/clients_auth.go @@ -86,7 +86,7 @@ var SpecialCharBlobTagsMap = map[string]string{ "GO ": ".Net", } -func setClientOptions(t *testing.T, opts *azcore.ClientOptions) { +func SetClientOptions(t *testing.T, opts *azcore.ClientOptions) { opts.Logging.AllowedHeaders = append(opts.Logging.AllowedHeaders, "X-Request-Mismatch", "X-Request-Mismatch-Error") transport, err := recording.NewRecordingHTTPClient(t, nil) @@ -99,9 +99,9 @@ func GetClient(t *testing.T, accountType TestAccountType, options *azblob.Client options = &azblob.ClientOptions{} } - setClientOptions(t, &options.ClientOptions) + SetClientOptions(t, &options.ClientOptions) - cred, err := GetGenericCredential(accountType) + cred, err := GetGenericSharedKeyCredential(accountType) if err != nil { return nil, err } @@ -116,9 +116,9 @@ func GetServiceClient(t *testing.T, accountType TestAccountType, options *servic options = &service.ClientOptions{} } - setClientOptions(t, &options.ClientOptions) + SetClientOptions(t, &options.ClientOptions) - cred, err := GetGenericCredential(accountType) + cred, err := GetGenericSharedKeyCredential(accountType) if err != nil { return nil, err } @@ -128,7 +128,22 @@ func GetServiceClient(t *testing.T, accountType TestAccountType, options *servic return serviceClient, err } -func GetAccountInfo(accountType TestAccountType) (string, string) { +func GetServiceClientNoCredential(t *testing.T, sasUrl string, options *service.ClientOptions) (*service.Client, error) { + if options == nil { + options = &service.ClientOptions{} + } + + SetClientOptions(t, &options.ClientOptions) + + serviceClient, err := service.NewClientWithNoCredential(sasUrl, options) + + return serviceClient, err +} + +func GetGenericAccountInfo(accountType TestAccountType) (string, string) { + if recording.GetRecordMode() == recording.PlaybackMode { + return FakeStorageAccount, "ZmFrZQ==" + } accountNameEnvVar := string(accountType) + AccountNameEnvVar accountKeyEnvVar := string(accountType) + AccountKeyEnvVar accountName, _ := GetRequiredEnv(accountNameEnvVar) @@ -136,40 +151,39 @@ func GetAccountInfo(accountType TestAccountType) (string, string) { return accountName, accountKey } -func GetGenericCredential(accountType TestAccountType) (*azblob.SharedKeyCredential, error) { - if recording.GetRecordMode() == recording.PlaybackMode { - return azblob.NewSharedKeyCredential(FakeStorageAccount, "ZmFrZQ==") - } - - accountName, accountKey := GetAccountInfo(accountType) +func GetGenericSharedKeyCredential(accountType TestAccountType) (*azblob.SharedKeyCredential, error) { + accountName, accountKey := GetGenericAccountInfo(accountType) if accountName == "" || accountKey == "" { return nil, errors.New(string(accountType) + AccountNameEnvVar + " and/or " + string(accountType) + AccountKeyEnvVar + " environment variables not specified.") } return azblob.NewSharedKeyCredential(accountName, accountKey) } -func GetConnectionString(accountType TestAccountType) string { - accountName, accountKey := GetAccountInfo(accountType) +func GetGenericConnectionString(accountType TestAccountType) (*string, error) { + accountName, accountKey := GetGenericAccountInfo(accountType) + if accountName == "" || accountKey == "" { + return nil, errors.New(string(accountType) + AccountNameEnvVar + " and/or " + string(accountType) + AccountKeyEnvVar + " environment variables not specified.") + } connectionString := fmt.Sprintf("DefaultEndpointsProtocol=https;AccountName=%s;AccountKey=%s;EndpointSuffix=core.windows.net/", accountName, accountKey) - return connectionString + return &connectionString, nil } func GetServiceClientFromConnectionString(t *testing.T, accountType TestAccountType, options *service.ClientOptions) (*service.Client, error) { if options == nil { options = &service.ClientOptions{} } + SetClientOptions(t, &options.ClientOptions) transport, err := recording.NewRecordingHTTPClient(t, nil) require.NoError(t, err) options.Transport = transport - if recording.GetRecordMode() == recording.PlaybackMode { - return service.NewClientWithNoCredential(FakeStorageURL, options) + cred, err := GetGenericConnectionString(accountType) + if err != nil { + return nil, err } - - connectionString := GetConnectionString(accountType) - svcClient, err := service.NewClientFromConnectionString(connectionString, options) + svcClient, err := service.NewClientFromConnectionString(*cred, options) return svcClient, err } diff --git a/sdk/storage/azblob/pageblob/client_test.go b/sdk/storage/azblob/pageblob/client_test.go index fb0c6f405d20..8d133dec20b0 100644 --- a/sdk/storage/azblob/pageblob/client_test.go +++ b/sdk/storage/azblob/pageblob/client_test.go @@ -4029,7 +4029,7 @@ func (s *PageBlobRecordedTestsSuite) TestPageBlockPermanentDelete() { parts, err := sas.ParseURL(pbClient.URL()) // Get parts for BlobURL _require.Nil(err) - credential, err := testcommon.GetGenericCredential(testcommon.TestAccountDefault) + credential, err := testcommon.GetGenericSharedKeyCredential(testcommon.TestAccountDefault) _require.Nil(err) // Set Account SAS and set Permanent Delete to true @@ -4146,7 +4146,7 @@ func (s *PageBlobRecordedTestsSuite) TestPageBlockPermanentDeleteWithoutPermissi parts, err := sas.ParseURL(pbClient.URL()) // Get parts for BlobURL _require.Nil(err) - credential, err := testcommon.GetGenericCredential(testcommon.TestAccountDefault) + credential, err := testcommon.GetGenericSharedKeyCredential(testcommon.TestAccountDefault) _require.Nil(err) // Set Account SAS diff --git a/sdk/storage/azblob/service/client.go b/sdk/storage/azblob/service/client.go index 526f540ca937..19d613aaf65f 100644 --- a/sdk/storage/azblob/service/client.go +++ b/sdk/storage/azblob/service/client.go @@ -27,7 +27,7 @@ import ( // ClientOptions contains the optional parameters when creating a Client. type ClientOptions struct { - azcore.ClientOptions + azcore.ClientOptions //nolint:unused } // Client represents a URL to the Azure Blob Storage service allowing you to manipulate blob containers. diff --git a/sdk/storage/azblob/service/client_test.go b/sdk/storage/azblob/service/client_test.go index 42a61c62277a..00b88de5bcaf 100644 --- a/sdk/storage/azblob/service/client_test.go +++ b/sdk/storage/azblob/service/client_test.go @@ -81,10 +81,10 @@ func (s *ServiceUnrecordedTestsSuite) TestServiceClientFromConnectionString() { _require := require.New(s.T()) testName := s.T().Name() - accountName, _ := testcommon.GetAccountInfo(testcommon.TestAccountDefault) - connectionString := testcommon.GetConnectionString(testcommon.TestAccountDefault) + accountName, _ := testcommon.GetGenericAccountInfo(testcommon.TestAccountDefault) + connectionString, _ := testcommon.GetGenericConnectionString(testcommon.TestAccountDefault) - parsedConnStr, err := shared.ParseConnectionString(connectionString) + parsedConnStr, err := shared.ParseConnectionString(*connectionString) _require.Nil(err) _require.Equal(parsedConnStr.ServiceURL, "https://"+accountName+".blob.core.windows.net/") @@ -669,36 +669,38 @@ func (s *ServiceRecordedTestsSuite) TestAccountDeleteRetentionPolicyDaysOmitted( func (s *ServiceUnrecordedTestsSuite) TestSASServiceClient() { _require := require.New(s.T()) testName := s.T().Name() - accountName := os.Getenv("AZURE_STORAGE_ACCOUNT_NAME") - accountKey := os.Getenv("AZURE_STORAGE_ACCOUNT_KEY") - cred, err := azblob.NewSharedKeyCredential(accountName, accountKey) - _require.Nil(err) + cred, _ := testcommon.GetGenericSharedKeyCredential(testcommon.TestAccountDefault) - serviceClient, err := service.NewClientWithSharedKeyCredential(fmt.Sprintf("https://%s.blob.core.windows.net/", accountName), cred, nil) + serviceClient, err := service.NewClientWithSharedKeyCredential(fmt.Sprintf("https://%s.blob.core.windows.net/", cred.AccountName()), cred, nil) _require.Nil(err) containerName := testcommon.GenerateContainerName(testName) + // Note: Always set all permissions, services, types to true to ensure order of string formed is correct. resources := sas.AccountResourceTypes{ Object: true, Service: true, Container: true, } permissions := sas.AccountPermissions{ - Read: true, - Add: true, - Write: true, - Create: true, - Update: true, - Delete: true, + Read: true, + Write: true, + Delete: true, + DeletePreviousVersion: true, + List: true, + Add: true, + Create: true, + Update: true, + Process: true, + Tag: true, + FilterByTags: true, + PermanentDelete: true, } - expiry := time.Now().Add(time.Hour) - sasUrl, err := serviceClient.GetSASURL(resources, permissions, expiry, nil) _require.Nil(err) - svcClient, err := service.NewClientWithNoCredential(sasUrl, nil) + svcClient, err := testcommon.GetServiceClientNoCredential(s.T(), sasUrl, nil) _require.Nil(err) // create container using SAS @@ -709,6 +711,70 @@ func (s *ServiceUnrecordedTestsSuite) TestSASServiceClient() { _require.Nil(err) } +func (s *ServiceUnrecordedTestsSuite) TestSASServiceClientNoKey() { + _require := require.New(s.T()) + accountName := os.Getenv("AZURE_STORAGE_ACCOUNT_NAME") + + serviceClient, err := service.NewClientWithNoCredential(fmt.Sprintf("https://%s.blob.core.windows.net/", accountName), nil) + _require.Nil(err) + resources := sas.AccountResourceTypes{ + Object: true, + Service: true, + Container: true, + } + permissions := sas.AccountPermissions{ + Read: true, + Write: true, + Delete: true, + DeletePreviousVersion: true, + List: true, + Add: true, + Create: true, + Update: true, + Process: true, + Tag: true, + FilterByTags: true, + PermanentDelete: true, + } + + expiry := time.Now().Add(time.Hour) + _, err = serviceClient.GetSASURL(resources, permissions, expiry, nil) + _require.Equal(err.Error(), "SAS can only be signed with a SharedKeyCredential") +} + +func (s *ServiceUnrecordedTestsSuite) TestSASServiceClientSignNegative() { + _require := require.New(s.T()) + accountName := os.Getenv("AZURE_STORAGE_ACCOUNT_NAME") + accountKey := os.Getenv("AZURE_STORAGE_ACCOUNT_KEY") + cred, err := azblob.NewSharedKeyCredential(accountName, accountKey) + _require.Nil(err) + + serviceClient, err := service.NewClientWithSharedKeyCredential(fmt.Sprintf("https://%s.blob.core.windows.net/", accountName), cred, nil) + _require.Nil(err) + resources := sas.AccountResourceTypes{ + Object: true, + Service: true, + Container: true, + } + permissions := sas.AccountPermissions{ + Read: true, + Write: true, + Delete: true, + DeletePreviousVersion: true, + List: true, + Add: true, + Create: true, + Update: true, + Process: true, + Tag: true, + FilterByTags: true, + PermanentDelete: true, + } + expiry := time.Time{} + _, err = serviceClient.GetSASURL(resources, permissions, expiry, nil) + _require.Equal(err.Error(), "account SAS is missing at least one of these: ExpiryTime, Permissions, Service, or ResourceType") +} + func (s *ServiceUnrecordedTestsSuite) TestNoSharedKeyCredError() { _require := require.New(s.T()) accountName := os.Getenv("AZURE_STORAGE_ACCOUNT_NAME") @@ -904,7 +970,7 @@ func (s *ServiceUnrecordedTestsSuite) TestServiceSASUploadDownload() { _, err = svcClient.CreateContainer(context.Background(), containerName, nil) _require.Nil(err) - credential, err := testcommon.GetGenericCredential(testcommon.TestAccountDefault) + credential, err := testcommon.GetGenericSharedKeyCredential(testcommon.TestAccountDefault) _require.Nil(err) sasQueryParams, err := sas.BlobSignatureValues{ @@ -951,3 +1017,42 @@ func (s *ServiceUnrecordedTestsSuite) TestServiceSASUploadDownload() { err = reader.Close() _require.Nil(err) } + +func (s *ServiceRecordedTestsSuite) TestAccountGetStatistics() { + _require := require.New(s.T()) + accountName := os.Getenv("AZURE_STORAGE_ACCOUNT_NAME") + accountKey := os.Getenv("AZURE_STORAGE_ACCOUNT_KEY") + cred, err := azblob.NewSharedKeyCredential(accountName, accountKey) + _require.Nil(err) + + options := &service.ClientOptions{} + testcommon.SetClientOptions(s.T(), &options.ClientOptions) + serviceClient, err := service.NewClientWithSharedKeyCredential(fmt.Sprintf("https://%s-secondary.blob.core.windows.net/", accountName), cred, options) + _require.Nil(err) + + resp, err := serviceClient.GetStatistics(context.Background(), &service.GetStatisticsOptions{}) + _require.Nil(err) + _require.NotNil(resp.Version) + _require.NotNil(resp.RequestID) + _require.NotNil(resp.Date) + _require.NotNil(resp.GeoReplication) + _require.NotNil(resp.GeoReplication.Status) + if *resp.GeoReplication.Status == service.BlobGeoReplicationStatusLive { + _require.NotNil(resp.GeoReplication.LastSyncTime) + } else { + _require.Nil(resp.GeoReplication.LastSyncTime) + } +} + +// Note: Further tests for filterblobs in pageblob and appendblob +// TODO : Need to add scraping logic to remove any endpoints from Body +func (s *ServiceRecordedTestsSuite) TestAccountFilterBlobs() { + _require := require.New(s.T()) + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + filter := "\"key\"='value'" + resp, err := svcClient.FilterBlobs(context.Background(), filter, &service.FilterBlobsOptions{}) + _require.Nil(err) + _require.Len(resp.FilterBlobSegment.Blobs, 0) +} From d5b4c956bd5e36100a1afb766e7a6f261af51ebf Mon Sep 17 00:00:00 2001 From: Charles Lowell <10964656+chlowell@users.noreply.github.com> Date: Mon, 13 Feb 2023 09:56:45 -0800 Subject: [PATCH 014/107] Key Vault troubleshooting guide (#19997) --- sdk/keyvault/TROUBLESHOOTING.md | 121 ++++++++++++++++++ .../azcertificates/TROUBLESHOOTING.md | 4 + sdk/keyvault/azkeys/TROUBLESHOOTING.md | 4 + sdk/keyvault/azsecrets/TROUBLESHOOTING.md | 4 + 4 files changed, 133 insertions(+) create mode 100644 sdk/keyvault/TROUBLESHOOTING.md create mode 100644 sdk/keyvault/azcertificates/TROUBLESHOOTING.md create mode 100644 sdk/keyvault/azkeys/TROUBLESHOOTING.md create mode 100644 sdk/keyvault/azsecrets/TROUBLESHOOTING.md diff --git a/sdk/keyvault/TROUBLESHOOTING.md b/sdk/keyvault/TROUBLESHOOTING.md new file mode 100644 index 000000000000..3a14924fc429 --- /dev/null +++ b/sdk/keyvault/TROUBLESHOOTING.md @@ -0,0 +1,121 @@ +# Troubleshoot Azure Key Vault Client Module Issues + +The Azure Key Vault SDKs for Go use a common HTTP pipeline and authentication to create, update, and delete secrets, +keys, and certificates in Key Vault and Managed HSM. This troubleshooting guide contains steps for diagnosing issues +common to these SDKs. + +## Table of Contents + +* [Troubleshoot Authentication Issues](#troubleshooting-authentication-issues) + * [HTTP 401 Errors](#http-401-errors) + * [Frequent HTTP 401 Errors in Logs](#frequent-http-401-errors-in-logs) + * [Other Authentication Issues](#other-authentication-issues) + * [HTTP 403 Errors](#http-403-errors) + * [Operation Not Permitted](#operation-not-permitted) + * [Access Denied to First Party Service](#access-denied-to-first-party-service) + * [HTTP 429: Too Many Requests](#http-429-too-many-requests) +* [Other Service Errors](#other-service-errors) + +## Troubleshoot Authentication Issues + +### HTTP 401 Errors + +HTTP 401 errors may indicate authentication problems. + +#### Frequent HTTP 401 Errors in Logs + +Most often, this is expected. Azure Key Vault issues a challenge for initial requests that force authentication. You +may see 401 responses in logs during application startup. If you don't see subsequent errors from the Key Vault client, +these 401 responses are the expected authentication challenges. + +#### Other Authentication Issues + +If you are using the `azidentity` module to authenticate Azure Key Vault clients, please see its +[troubleshooting guide](https://github.com/Azure/azure-sdk-for-go/blob/main/sdk/azidentity/TROUBLESHOOTING.md). + +### HTTP 403 Errors + +HTTP 403 errors indicate the user isn't authorized to perform a specific operation in Key Vault or Managed HSM. + +#### Operation Not Permitted + +You may see an error similar to: + +```text +-------------------------------------------------------------------------------- +RESPONSE 403: 403 Forbidden +ERROR CODE: Forbidden +-------------------------------------------------------------------------------- +{ + "error": { + "code": "Forbidden", + "message": "Operation decrypt is not permitted on this key.", + "innererror": { + "code": "KeyOperationForbidden" + } + } +} +``` + +The operation and inner `code` may vary, but the rest of the text will indicate which operation isn't permitted. +This error indicates that the authenticated application or user doesn't have permission to perform that operation. + +1. Check that the application or user has the appropriate permission: + * [Access policies](https://learn.microsoft.com/azure/key-vault/general/assign-access-policy) (Key Vault) + * [Role-Based Access Control (RBAC)](https://learn.microsoft.com/azure/key-vault/general/rbac-guide) (Key Vault and Managed HSM) +2. If the appropriate permission is assigned to your application or user, make sure you are authenticating that application or user. + If using the [DefaultAzureCredential], a different credential might've been used than one you expected. + [Enable logging](https://github.com/Azure/azure-sdk-for-go/blob/main/sdk/azidentity/README.md#logging) + and you will see which credential the [DefaultAzureCredential] used as shown below, and why previously-attempted credentials + were rejected. + + ```text + AzureCLICredential.GetToken() acquired a token for scope https://vault.azure.net/.default + ``` + +#### Access Denied to First Party Service + +You may see an error similar to: + +```text +-------------------------------------------------------------------------------- +RESPONSE 403: 403 Forbidden +ERROR CODE: Forbidden +-------------------------------------------------------------------------------- +{ + "error": { + "code": "Forbidden", + "message": "Access denied to first party service...", + "innererror": { + "code": "AccessDenied" + } + } +} +``` + +The error `message` may also contain the tenant ID (`tid`) and application ID (`appid`). This error may occur because: + +1. You have the **Allow trust services** option enabled and are trying to access the Key Vault from a service not on + [this list](https://learn.microsoft.com/azure/key-vault/general/overview-vnet-service-endpoints#trusted-services) of + trusted services. +2. You logged into a Microsoft Account (MSA). See [above](#operation-not-permitted) for troubleshooting steps. + +### HTTP 429: Too Many Requests + +If you get an error or see logs describing an HTTP 429 response, you may be making too many requests to Key Vault too quickly. + +Possible solutions include: + +1. Use a single instance of any client in your application for a single Key Vault. +2. Use a single credential instance for all clients. +3. Cache Key Vault resources (certificates, keys, secrets) in memory to reduce calls to retrieve them. + +See the [Azure Key Vault throttling guide](https://learn.microsoft.com/azure/key-vault/general/overview-throttling) +for more information. + +## Other Service Errors + +To troubleshoot Key Vault errors not described in this guide, +see [Azure Key Vault REST API Error Codes](https://learn.microsoft.com/azure/key-vault/general/rest-error-codes). + +[DefaultAzureCredential]: https://github.com/Azure/azure-sdk-for-go/blob/main/sdk/azidentity/README.md#defaultazurecredential diff --git a/sdk/keyvault/azcertificates/TROUBLESHOOTING.md b/sdk/keyvault/azcertificates/TROUBLESHOOTING.md new file mode 100644 index 000000000000..4ccd9b3c4111 --- /dev/null +++ b/sdk/keyvault/azcertificates/TROUBLESHOOTING.md @@ -0,0 +1,4 @@ +# Troubleshoot Azure Key Vault Certificates Client Module Issues + +See our [Azure Key Vault SDK Troubleshooting Guide](https://github.com/Azure/azure-sdk-for-go/blob/main/sdk/keyvault/TROUBLESHOOTING.md) +to troubleshoot issues common to Azure Key Vault client modules. diff --git a/sdk/keyvault/azkeys/TROUBLESHOOTING.md b/sdk/keyvault/azkeys/TROUBLESHOOTING.md new file mode 100644 index 000000000000..75933f67fb5f --- /dev/null +++ b/sdk/keyvault/azkeys/TROUBLESHOOTING.md @@ -0,0 +1,4 @@ +# Troubleshoot Azure Key Vault Keys Client Module Issues + +See our [Azure Key Vault SDK Troubleshooting Guide](https://github.com/Azure/azure-sdk-for-go/blob/main/sdk/keyvault/TROUBLESHOOTING.md) +to troubleshoot issues common to Azure Key Vault client modules. diff --git a/sdk/keyvault/azsecrets/TROUBLESHOOTING.md b/sdk/keyvault/azsecrets/TROUBLESHOOTING.md new file mode 100644 index 000000000000..72269c7a0e22 --- /dev/null +++ b/sdk/keyvault/azsecrets/TROUBLESHOOTING.md @@ -0,0 +1,4 @@ +# Troubleshoot Azure Key Vault Secrets Client Module Issues + +See our [Azure Key Vault SDK Troubleshooting Guide](https://github.com/Azure/azure-sdk-for-go/blob/main/sdk/keyvault/TROUBLESHOOTING.md) +to troubleshoot issues common to Azure Key Vault client modules. From acf9938e58b9fd18dff64a6ff6263a41d0134343 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Mon, 13 Feb 2023 11:01:50 -0800 Subject: [PATCH 015/107] Improve diagnostics for copy-docs-to-blobstorage script (#19998) Co-authored-by: Wes Haggard --- .../scripts/copy-docs-to-blobstorage.ps1 | 25 ++++++++++++------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/eng/common/scripts/copy-docs-to-blobstorage.ps1 b/eng/common/scripts/copy-docs-to-blobstorage.ps1 index f037dcf51e4f..135d3f2cc8ac 100644 --- a/eng/common/scripts/copy-docs-to-blobstorage.ps1 +++ b/eng/common/scripts/copy-docs-to-blobstorage.ps1 @@ -1,5 +1,6 @@ # Note, due to how `Expand-Archive` is leveraged in this script, # powershell core is a requirement for successful execution. +[CmdletBinding()] param ( $AzCopy, $DocLocation, @@ -199,9 +200,9 @@ function Upload-Blobs LogDebug "Final Dest $($DocDest)/$($PkgName)/$($DocVersion)" LogDebug "Release Tag $($ReleaseTag)" - # Use the step to replace default branch link to release tag link + # Use the step to replace default branch link to release tag link if ($ReleaseTag) { - foreach ($htmlFile in (Get-ChildItem $DocDir -include *.html -r)) + foreach ($htmlFile in (Get-ChildItem $DocDir -include *.html -r)) { $fileContent = Get-Content -Path $htmlFile -Raw $updatedFileContent = $fileContent -replace $RepoReplaceRegex, "`${1}$ReleaseTag" @@ -209,22 +210,22 @@ function Upload-Blobs Set-Content -Path $htmlFile -Value $updatedFileContent -NoNewLine } } - } + } else { LogWarning "Not able to do the default branch link replacement, since no release tag found for the release. Please manually check." - } - + } + LogDebug "Uploading $($PkgName)/$($DocVersion) to $($DocDest)..." & $($AzCopy) cp "$($DocDir)/**" "$($DocDest)/$($PkgName)/$($DocVersion)$($SASKey)" --recursive=true --cache-control "max-age=300, must-revalidate" - + LogDebug "Handling versioning files under $($DocDest)/$($PkgName)/versioning/" $versionsObj = (Update-Existing-Versions -PkgName $PkgName -PkgVersion $DocVersion -DocDest $DocDest) - $latestVersion = $versionsObj.LatestGAPackage + $latestVersion = $versionsObj.LatestGAPackage if (!$latestVersion) { - $latestVersion = $versionsObj.LatestPreviewPackage + $latestVersion = $versionsObj.LatestPreviewPackage } LogDebug "Fetching the latest version $latestVersion" - + if ($UploadLatest -and ($latestVersion -eq $DocVersion)) { LogDebug "Uploading $($PkgName) to latest folder in $($DocDest)..." @@ -243,3 +244,9 @@ else See https://github.com/Azure/azure-sdk-tools/blob/main/doc/common/common_engsys.md#code-structure" } +# If we hit a failure then dump out the azcopy logs to help with debugging +if ($LASTEXITCODE) +{ + Write-Host "Copying failed with error code [$LASTEXITCODE]. Dumping the logs to help diagnose." + Get-ChildItem $env:UserProfile\.azcopy -Filter *.log | ForEach-Object { "LOG: " + $_; Get-Content $_; } +} \ No newline at end of file From 4f7ac1553d8284a7f2dfd3834e4e5026cbeb53b8 Mon Sep 17 00:00:00 2001 From: Konrad Jamrozik Date: Mon, 13 Feb 2023 13:42:44 -0800 Subject: [PATCH 016/107] Update `CODEOWNERS` paths: fix invalid paths (#19994) * Update `CODEOWNERS` paths: fix invalid paths As part of ongoing work of enabling wildcard support for `CODEOWNERS`: - https://github.com/Azure/azure-sdk-tools/issues/2770 - https://github.com/Azure/azure-sdk-tools/pull/5088 and enabling stricter validation: - https://github.com/Azure/azure-sdk-tools/issues/4859 this PR: - fixes invalid paths, to match rules explained [here](https://github.com/Azure/azure-sdk/blob/main/docs/policies/opensource.md#codeowners); - removes `/**/tests.yml` and `/**/ci.yml`, to avoid all build failure notifications being routed to it once we enable the new regex-based, wildcard-supporting `CODEOWNERS` matcher, per: https://github.com/Azure/azure-sdk-tools/pull/5088#issuecomment-1397330147 Once this PR is merged, I will enable the new `CODEOWNERS` matcher, similar to how it was done for `net` repo by these two PRs: - https://github.com/Azure/azure-sdk-tools/pull/5241 - https://github.com/Azure/azure-sdk-tools/pull/5240 Related PRs: - Similar PR fixing invalid paths, but for `net` repo: https://github.com/Azure/azure-sdk-for-net/pull/33584 - Similar PR deprioritizing the Azure SDK EngSys team ownership, but for `python` repo: https://github.com/Azure/azure-sdk-for-python/pull/28534 * Update .github/CODEOWNERS Co-authored-by: Ben Broderick Phillips --------- Co-authored-by: Ben Broderick Phillips --- .github/CODEOWNERS | 25 ++++++++++--------------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 9361952cdecb..345bbd5fa66e 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1,19 +1,12 @@ # Instructions for CODEOWNERS file format and automatic build failure notifications: # https://github.com/Azure/azure-sdk/blob/master/docs/policies/opensource.md#codeowners -################ -# Automation -################ - -# Git Hub integration and bot rules -/.github/ @jsquire @jhendrixMSFT @rickwinter @ronniegeraghty - ############# # SDK (track2) ############# # Catch all for non-code project files and unowned files | folders -* @rickwinter @jhendrixMSFT +/** @rickwinter @jhendrixMSFT /sdk/ @rickwinter @chlowell @richardpark-msft # Samples @@ -41,13 +34,10 @@ /sdk/keyvault/ @chlowell @jhendrixMSFT # PRLabel: %Service Bus -/sdk/messaging/azservicebus @richardpark-msft @jhendrixMSFT +/sdk/messaging/azservicebus/ @richardpark-msft @jhendrixMSFT # PRLabel: %Event Hubs -/sdk/messaging/azeventhubs @richardpark-msft @jhendrixMSFT - -# PRLabel: %Service Bus -/sdk/messaging/internal @richardpark-msft @jhendrixMSFT +/sdk/messaging/azeventhubs/ @richardpark-msft @jhendrixMSFT # PRLabel: %Monitor /sdk/monitor/ @gracewilcox @chlowell @jhendrixMSFT @@ -58,12 +48,17 @@ # PRLabel: %Storage /sdk/storage/ @siminsavani-msft @souravgupta-msft @tasherif-msft @jhendrixMSFT @gapra-msft +################ +# Automation +################ + +# Git Hub integration and bot rules +/.github/ @benbp @jsquire @jhendrixMSFT @rickwinter @ronniegeraghty + ########### # Eng Sys ########### /eng/ @benbp @weshaggard -/**/ci.yml @benbp -/**/tests.yml @benbp # PRLabel: %EngSys /sdk/template/ @benbp @weshaggard From ea7cedd2d95da883ef855c912d010ea4f809fdb8 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Mon, 13 Feb 2023 18:54:01 -0800 Subject: [PATCH 017/107] Sync eng/common directory with azure-sdk-tools for PR 5427 (#20006) Co-authored-by: archerzz --- eng/common/scripts/Cadl-Project-Sync.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eng/common/scripts/Cadl-Project-Sync.ps1 b/eng/common/scripts/Cadl-Project-Sync.ps1 index 79527b5b11cd..c6e8cf5ce531 100644 --- a/eng/common/scripts/Cadl-Project-Sync.ps1 +++ b/eng/common/scripts/Cadl-Project-Sync.ps1 @@ -44,10 +44,10 @@ function GetGitRemoteValue([string]$repo) { $gitRemotes = (git remote -v) foreach ($remote in $gitRemotes) { if ($remote.StartsWith("origin")) { - if ($remote -match 'https://github.com/\S+[\.git]') { + if ($remote -match 'https://github.com/\S+') { $result = "https://github.com/$repo.git" break - } elseif ($remote -match "git@github.com:\S+[\.git]"){ + } elseif ($remote -match "git@github.com:\S+"){ $result = "git@github.com:$repo.git" break } else { From db5f45b019ed6fa114e47a4d0b4cd9809b77db61 Mon Sep 17 00:00:00 2001 From: Peng Jiahui <46921893+Alancere@users.noreply.github.com> Date: Tue, 14 Feb 2023 15:38:27 +0800 Subject: [PATCH 018/107] fix changelog function filter (#20001) * fix changelog function filter * add test * fix * rename to BeginDelete * add test... --- .../cmd/v2/common/changelogProcessor.go | 4 ++-- .../cmd/v2/common/changelogProcessor_test.go | 4 ++-- .../cmd/v2/common/testdata/new/lro/lrofilter.go | 9 +++++++++ .../common/testdata/new/operation/funcfilter.go | 8 ++++++++ .../cmd/v2/common/testdata/old/lro/lrofilter.go | 9 +++++++++ .../common/testdata/old/operation/funcfilter.go | 17 +++++++++++++++++ 6 files changed, 47 insertions(+), 4 deletions(-) diff --git a/eng/tools/generator/cmd/v2/common/changelogProcessor.go b/eng/tools/generator/cmd/v2/common/changelogProcessor.go index 2ad14f40d6f6..d81a162879fb 100644 --- a/eng/tools/generator/cmd/v2/common/changelogProcessor.go +++ b/eng/tools/generator/cmd/v2/common/changelogProcessor.go @@ -305,7 +305,7 @@ func funcOperation(content *delta.Content) { if funcValue.Returns != nil { rs := strings.Split(*funcValue.Returns, ",") clientFuncResponse := rs[0] - if strings.Contains(clientFunc[1], "runtime.Poller") { + if strings.Contains(clientFuncResponse, "runtime") { re := regexp.MustCompile("\\[(?P.*)\\]") clientFuncResponse = re.FindString(clientFuncResponse) clientFuncResponse = re.ReplaceAllString(clientFuncResponse, "${response}") @@ -337,7 +337,7 @@ func LROFilter(changelog *model.Changelog) { clientFunc := strings.Split(bFunc, ".") if len(clientFunc) == 2 { if strings.Contains(clientFunc[1], "Begin") { - clientFunc[1] = strings.ReplaceAll(clientFunc[1], "Being", "") + clientFunc[1] = strings.TrimPrefix(clientFunc[1], "Begin") beginFunc = fmt.Sprintf("%s.%s", clientFunc[0], clientFunc[1]) } else { beginFunc = fmt.Sprintf("%s.Begin%s", clientFunc[0], clientFunc[1]) diff --git a/eng/tools/generator/cmd/v2/common/changelogProcessor_test.go b/eng/tools/generator/cmd/v2/common/changelogProcessor_test.go index afa5ca3dc424..676ffb5ae7dc 100644 --- a/eng/tools/generator/cmd/v2/common/changelogProcessor_test.go +++ b/eng/tools/generator/cmd/v2/common/changelogProcessor_test.go @@ -53,7 +53,7 @@ func TestFuncFilter(t *testing.T) { common.FilterChangelog(changelog, common.FuncFilter) - excepted := fmt.Sprint("### Breaking Changes\n\n- Function `*Client.Update` has been removed\n\n### Features Added\n\n- New function `*Client.BeginCreateOrUpdate(string, *ClientBeginCreateOrUpdateOptions) (ClientBeginCreateOrUpdateResponse, error)`\n") + excepted := fmt.Sprint("### Breaking Changes\n\n- Function `*Client.BeingDelete` has been removed\n- Function `*Client.NewListPager` has been removed\n- Function `*Client.Update` has been removed\n\n### Features Added\n\n- New function `*Client.BeginCreateOrUpdate(string, *ClientBeginCreateOrUpdateOptions) (ClientBeginCreateOrUpdateResponse, error)`\n- New function `*Client.NewListBySubscriptionPager(*ClientListBySubscriptionOptions) *runtime.Pager[ClientListBySubscriptionResponse]`\n") assert.Equal(t, excepted, changelog.ToCompactMarkdown()) } @@ -75,7 +75,7 @@ func TestLROFilter(t *testing.T) { common.FilterChangelog(changelog, common.FuncFilter, common.LROFilter) - excepted := fmt.Sprint("### Breaking Changes\n\n- Operation `*Client.CreateOrUpdate` has been changed to LRO, use `*Client.BeginCreateOrUpdate` instead.\n") + excepted := fmt.Sprint("### Breaking Changes\n\n- Operation `*Client.BeginDelete` has been changed to non-LRO, use `*Client.Delete` instead.\n- Operation `*Client.CreateOrUpdate` has been changed to LRO, use `*Client.BeginCreateOrUpdate` instead.\n") assert.Equal(t, excepted, changelog.ToCompactMarkdown()) } diff --git a/eng/tools/generator/cmd/v2/common/testdata/new/lro/lrofilter.go b/eng/tools/generator/cmd/v2/common/testdata/new/lro/lrofilter.go index 0ac663e79d73..d6042e048645 100644 --- a/eng/tools/generator/cmd/v2/common/testdata/new/lro/lrofilter.go +++ b/eng/tools/generator/cmd/v2/common/testdata/new/lro/lrofilter.go @@ -13,3 +13,12 @@ func (client *Client) BeginCreateOrUpdate(resourceGroupName string, options *Cli type ClientBeginCreateOrUpdateOptions struct{} type ClientBeginCreateOrUpdateResponse struct{} + +func (client *Client) Delete(resourceGroupName string, options *ClientDeleteOptions) (ClientDeleteResponse, error) { + + return ClientDeleteResponse{}, nil +} + +type ClientDeleteOptions struct{} + +type ClientDeleteResponse struct{} diff --git a/eng/tools/generator/cmd/v2/common/testdata/new/operation/funcfilter.go b/eng/tools/generator/cmd/v2/common/testdata/new/operation/funcfilter.go index 9ab1f58fe0c6..5671d6ff07ae 100644 --- a/eng/tools/generator/cmd/v2/common/testdata/new/operation/funcfilter.go +++ b/eng/tools/generator/cmd/v2/common/testdata/new/operation/funcfilter.go @@ -13,3 +13,11 @@ func (client *Client) BeginCreateOrUpdate(resourceGroupName string, options *Cli type ClientBeginCreateOrUpdateOptions struct{} type ClientBeginCreateOrUpdateResponse struct{} + +func (client *Client) NewListBySubscriptionPager(options *ClientListBySubscriptionOptions) *runtime.Pager[ClientListBySubscriptionResponse] { + return &runtime.Pager[ClientListBySubscriptionResponse] +} + +type ClientListBySubscriptionOptions struct{} + +type ClientListBySubscriptionResponse struct{} diff --git a/eng/tools/generator/cmd/v2/common/testdata/old/lro/lrofilter.go b/eng/tools/generator/cmd/v2/common/testdata/old/lro/lrofilter.go index 3dcaccb8c50d..030781bdc458 100644 --- a/eng/tools/generator/cmd/v2/common/testdata/old/lro/lrofilter.go +++ b/eng/tools/generator/cmd/v2/common/testdata/old/lro/lrofilter.go @@ -13,3 +13,12 @@ func (client *Client) CreateOrUpdate(resourceGroupName string, options *ClientCr type ClientCreateOrUpdateOptions struct{} type ClientCreateOrUpdateResponse struct{} + +func (client *Client) BeginDelete(resourceGroupName string, options *ClientBeginDeleteOptions) (ClientBeginDeleteResponse, error) { + + return ClientBeginDeleteResponse{}, nil +} + +type ClientBeginDeleteOptions struct{} + +type ClientBeginDeleteResponse struct{} diff --git a/eng/tools/generator/cmd/v2/common/testdata/old/operation/funcfilter.go b/eng/tools/generator/cmd/v2/common/testdata/old/operation/funcfilter.go index 17c1be9f25e7..8fd89cdf7501 100644 --- a/eng/tools/generator/cmd/v2/common/testdata/old/operation/funcfilter.go +++ b/eng/tools/generator/cmd/v2/common/testdata/old/operation/funcfilter.go @@ -13,3 +13,20 @@ func (client *Client) Update(resourceGroupName string, options *ClientUpdateOpti type ClientUpdateOptions struct{} type ClientUpdateResponse struct{} + +func (client *Client) BeingDelete(resourceGroupName string, options *ClientBeginDeleteOptions) (*runtime.Poller[ClientBeginDeleteResponse], error) { + + return &runtime.Poller[ClientBeginDeleteResponse]{}, nil +} + +type ClientBeginDeleteOptions struct{} + +type ClientBeginDeleteResponse struct{} + +func (client *Client) NewListPager(resourceGroupName string, options *ClientListOptions) *runtime.Pager[ClientListResponse] { + return &runtime.Pager[ClientListResponse] +} + +type ClientListOptions struct{} + +type ClientListResponse struct{} From 552351111cd8a8ec9a7619e0eacf644e1dbe5905 Mon Sep 17 00:00:00 2001 From: Richard Park <51494936+richardpark-msft@users.noreply.github.com> Date: Tue, 14 Feb 2023 09:27:10 -0800 Subject: [PATCH 019/107] [azservicebus] Validate that credits are within limits (not over or under) (#19992) Fixing issues where we could over-request credit (#19965) or allow for negative/zero credits (#19743), both of which could cause issues with go-amqp.. Fixes #19965 Fixes #19743 --- sdk/messaging/azservicebus/CHANGELOG.md | 3 + sdk/messaging/azservicebus/internal/mgmt.go | 4 +- .../mock/emulation/mock_data_receiver.go | 28 ++++-- .../internal/mock/mock_helpers.go | 17 ++++ .../internal/test/test_helpers.go | 41 ++++---- .../internal/utils/retrier_test.go | 3 +- sdk/messaging/azservicebus/receiver.go | 42 ++++---- .../azservicebus/receiver_simulated_test.go | 97 +++++++++++++++++++ .../azservicebus/receiver_unit_test.go | 9 +- .../azservicebus/session_receiver_test.go | 3 +- 10 files changed, 194 insertions(+), 53 deletions(-) diff --git a/sdk/messaging/azservicebus/CHANGELOG.md b/sdk/messaging/azservicebus/CHANGELOG.md index 4f036ba85523..81f58dc68b0e 100644 --- a/sdk/messaging/azservicebus/CHANGELOG.md +++ b/sdk/messaging/azservicebus/CHANGELOG.md @@ -8,6 +8,9 @@ ### Bugs Fixed +- Fixing issues where we could over-request credit (#19965) or allow for negative/zero credits (#19743), both of + which could cause issues with go-amqp. (PR#19992) + ### Other Changes ## 1.2.0 (2023-02-07) diff --git a/sdk/messaging/azservicebus/internal/mgmt.go b/sdk/messaging/azservicebus/internal/mgmt.go index 3824b3bd800a..8c60a6ff613d 100644 --- a/sdk/messaging/azservicebus/internal/mgmt.go +++ b/sdk/messaging/azservicebus/internal/mgmt.go @@ -504,9 +504,7 @@ func ScheduleMessages(ctx context.Context, rpcLink amqpwrap.RPCLink, linkName st const sequenceFieldName = "sequence-numbers" if rawArr, ok := rawVal[sequenceFieldName]; ok { if arr, ok := rawArr.([]int64); ok { - for i := range arr { - retval = append(retval, arr[i]) - } + retval = append(retval, arr...) return retval, nil } return nil, NewErrIncorrectType(sequenceFieldName, []int64{}, rawArr) diff --git a/sdk/messaging/azservicebus/internal/mock/emulation/mock_data_receiver.go b/sdk/messaging/azservicebus/internal/mock/emulation/mock_data_receiver.go index 2a17980322c4..a27ffc1a28aa 100644 --- a/sdk/messaging/azservicebus/internal/mock/emulation/mock_data_receiver.go +++ b/sdk/messaging/azservicebus/internal/mock/emulation/mock_data_receiver.go @@ -16,12 +16,19 @@ import ( type MockReceiver struct { *mock.MockAMQPReceiverCloser - Opts *amqp.ReceiverOptions - Session *MockSession - Source string - Status *Status - TargetAddress string + Opts *amqp.ReceiverOptions + Session *MockSession + Source string + Status *Status + TargetAddress string + + // InternalReceive will receive from our default mock. Useful if you want to + // change the default EXPECT() for AMQPReceiver.Receive(). InternalReceive func(ctx context.Context) (*amqp.Message, error) + + // InternalIssueCredit will issue credit for our default mock. Useful if you + // want to change the default EXPECT() for AMQPReceiver.IssueCredit(). + InternalIssueCredit func(credit uint32) error } func (rcvr *MockReceiver) Done() <-chan error { @@ -69,6 +76,7 @@ func (md *MockData) NewReceiver(ctx context.Context, source string, opts *amqp.R Source: source, Status: NewStatus(sess.Status), TargetAddress: opts.TargetAddress, + Opts: opts, } id := fmt.Sprintf("%s|%s|%s|e:%s", sess.Conn.Name(), sess.ID, md.nextUniqueName("r"), source) @@ -94,6 +102,11 @@ func (md *MockData) NewReceiver(ctx context.Context, source string, opts *amqp.R return m, nil } + rcvr.InternalIssueCredit = func(credit uint32) error { + credits += credit + return q.IssueCredit(credit, rcvr.LinkEvent(), rcvr.Status) + } + if err := md.options.PreReceiverMock(rcvr, ctx); err != nil { return nil, err } @@ -149,10 +162,7 @@ func (md *MockData) NewReceiver(ctx context.Context, source string, opts *amqp.R rcvr.EXPECT().Prefetched().Return((*amqp.Message)(nil)).AnyTimes() if opts.ManualCredits { - rcvr.EXPECT().IssueCredit(gomock.Any()).DoAndReturn(func(credit uint32) error { - credits += credit - return q.IssueCredit(credit, rcvr.LinkEvent(), rcvr.Status) - }).AnyTimes() + rcvr.EXPECT().IssueCredit(gomock.Any()).DoAndReturn(rcvr.InternalIssueCredit).AnyTimes() } else { // assume unlimited credits for this receiver - the AMQP stack is going to take care of replenishing credits. _ = q.IssueCredit(math.MaxUint32, rcvr.LinkEvent(), rcvr.Status) diff --git a/sdk/messaging/azservicebus/internal/mock/mock_helpers.go b/sdk/messaging/azservicebus/internal/mock/mock_helpers.go index 468ef39cc011..865c8a32d9bf 100644 --- a/sdk/messaging/azservicebus/internal/mock/mock_helpers.go +++ b/sdk/messaging/azservicebus/internal/mock/mock_helpers.go @@ -49,6 +49,23 @@ func SetupRPC(sender *MockAMQPSenderCloser, receiver *MockAMQPReceiverCloser, ex } } +type ContextWithValueMatcher[KT comparable, VT comparable] struct { + Key KT + Value VT +} + +func NewContextWithValueMatcher[KT comparable, VT comparable](key KT, value VT) ContextWithValueMatcher[KT, VT] { + return ContextWithValueMatcher[KT, VT]{key, value} +} + +func (m ContextWithValueMatcher[KT, VT]) Matches(x interface{}) bool { + ctx := x.(context.Context) + return ctx.Value(m.Key) == m.Value +} +func (m ContextWithValueMatcher[KT, VT]) String() string { + return fmt.Sprintf("Context has key %v and value %v", m.Key, m.Value) +} + // Cancelled matches context.Context instances that are cancelled. var Cancelled gomock.Matcher = ContextCancelledMatcher{true} diff --git a/sdk/messaging/azservicebus/internal/test/test_helpers.go b/sdk/messaging/azservicebus/internal/test/test_helpers.go index 328453b32235..2e2fcb39190e 100644 --- a/sdk/messaging/azservicebus/internal/test/test_helpers.go +++ b/sdk/messaging/azservicebus/internal/test/test_helpers.go @@ -28,11 +28,12 @@ var ( func init() { addSwappableLogger() - rand.Seed(time.Now().Unix()) } // RandomString generates a random string with prefix func RandomString(prefix string, length int) string { + rand := rand.New(rand.NewSource(time.Now().Unix())) + b := make([]rune, length) for i := range b { b[i] = letterRunes[rand.Intn(len(letterRunes))] @@ -142,38 +143,44 @@ func CaptureLogsForTestWithChannel(messagesCh chan string) func() []string { return nil } - close(messagesCh) - var messages []string - for msg := range messagesCh { - messages = append(messages, msg) + Loop: + for { + select { + case msg := <-messagesCh: + messages = append(messages, msg) + default: + break Loop + } } - messagesCh = nil return messages } } // EnableStdoutLogging turns on logging to stdout for diagnostics. -func EnableStdoutLogging() func() { +func EnableStdoutLogging(t *testing.T) { ch := make(chan string, 10000) cleanupLogs := CaptureLogsForTestWithChannel(ch) + ctx, cancel := context.WithCancel(context.Background()) - doneCh := make(chan struct{}) + t.Cleanup(func() { + cancel() + }) go func() { - defer close(doneCh) - - for msg := range ch { - log.Printf("%s", msg) + Loop: + for { + select { + case <-ctx.Done(): + _ = cleanupLogs() + break Loop + case msg := <-ch: + log.Printf("%s", msg) + } } }() - - return func() { - _ = cleanupLogs() - <-doneCh - } } func RequireClose(t *testing.T, closeable interface { diff --git a/sdk/messaging/azservicebus/internal/utils/retrier_test.go b/sdk/messaging/azservicebus/internal/utils/retrier_test.go index f9ba9a2a3546..be9c28d80c8b 100644 --- a/sdk/messaging/azservicebus/internal/utils/retrier_test.go +++ b/sdk/messaging/azservicebus/internal/utils/retrier_test.go @@ -323,8 +323,7 @@ func TestRetryLogging(t *testing.T) { }) t.Run("normal error2", func(t *testing.T) { - cleanup := test.EnableStdoutLogging() - defer cleanup() + test.EnableStdoutLogging(t) err := Retry(context.Background(), testLogEvent, "my_operation", func(ctx context.Context, args *RetryFnArgs) error { azlog.Writef("TestFunc", "Attempt %d, within test func, returning error hello", args.I) diff --git a/sdk/messaging/azservicebus/receiver.go b/sdk/messaging/azservicebus/receiver.go index bb8c2b5f9281..c9b35f74adff 100644 --- a/sdk/messaging/azservicebus/receiver.go +++ b/sdk/messaging/azservicebus/receiver.go @@ -45,22 +45,18 @@ const ( // Receiver receives messages using pull based functions (ReceiveMessages). type Receiver struct { - receiveMode ReceiveMode - entityPath string - - settler settler - retryOptions RetryOptions - cleanupOnClose func() - - lastPeekedSequenceNumber int64 amqpLinks internal.AMQPLinks - - mu sync.Mutex - receiving bool - + cancelReleaser *atomic.Value + cleanupOnClose func() defaultTimeAfterFirstMsg time.Duration - - cancelReleaser *atomic.Value + entityPath string + lastPeekedSequenceNumber int64 + maxAllowedCredits uint32 + mu sync.Mutex + receiveMode ReceiveMode + receiving bool + retryOptions RetryOptions + settler settler } // ReceiverOptions contains options for the `Client.NewReceiverForQueue` or `Client.NewReceiverForSubscription` @@ -85,7 +81,10 @@ type ReceiverOptions struct { SubQueue SubQueue } -const defaultLinkRxBuffer = 2048 +// defaultLinkRxBuffer is the maximum number of transfer frames we can handle +// on the Receiver. This matches the current default window size that go-amqp +// uses for sessions. +const defaultLinkRxBuffer uint32 = 5000 func applyReceiverOptions(receiver *Receiver, entity *entity, options *ReceiverOptions) error { if options == nil { @@ -131,11 +130,12 @@ func newReceiver(args newReceiverArgs, options *ReceiverOptions) (*Receiver, err } receiver := &Receiver{ - lastPeekedSequenceNumber: 0, + cancelReleaser: &atomic.Value{}, cleanupOnClose: args.cleanupOnClose, defaultTimeAfterFirstMsg: 20 * time.Millisecond, + lastPeekedSequenceNumber: 0, + maxAllowedCredits: defaultLinkRxBuffer, retryOptions: args.retryOptions, - cancelReleaser: &atomic.Value{}, } receiver.cancelReleaser.Store(emptyCancelFn) @@ -364,6 +364,14 @@ func (r *Receiver) receiveMessagesImpl(ctx context.Context, maxMessages int, opt cancelReleaser := r.cancelReleaser.Swap(emptyCancelFn).(func() string) _ = cancelReleaser() + if maxMessages <= 0 { + return nil, internal.NewErrNonRetriable("maxMessages should be greater than 0") + } + + if maxMessages > int(r.maxAllowedCredits) { + return nil, internal.NewErrNonRetriable(fmt.Sprintf("maxMessages cannot exceed %d", r.maxAllowedCredits)) + } + var linksWithID *internal.LinksWithID err := r.amqpLinks.Retry(ctx, EventReceiver, "receiveMessages.getlinks", func(ctx context.Context, lwid *internal.LinksWithID, args *utils.RetryFnArgs) error { diff --git a/sdk/messaging/azservicebus/receiver_simulated_test.go b/sdk/messaging/azservicebus/receiver_simulated_test.go index 551425f0d278..bc80e827f2b9 100644 --- a/sdk/messaging/azservicebus/receiver_simulated_test.go +++ b/sdk/messaging/azservicebus/receiver_simulated_test.go @@ -9,6 +9,7 @@ import ( "testing" "time" + azlog "github.com/Azure/azure-sdk-for-go/sdk/internal/log" "github.com/Azure/azure-sdk-for-go/sdk/internal/uuid" "github.com/Azure/azure-sdk-for-go/sdk/messaging/azservicebus/internal" "github.com/Azure/azure-sdk-for-go/sdk/messaging/azservicebus/internal/amqpwrap" @@ -553,6 +554,102 @@ func TestReceiver_ReceiveMessages_MessageReleaser(t *testing.T) { require.Equal(t, []string{"message available again after being released by releaser"}, getSortedBodies(messages)) } +func TestReceiver_ReceiveMessages_CreditValidation(t *testing.T) { + _, client, cleanup := newClientWithMockedConn(t, nil, nil) + defer cleanup() + + receiver, err := client.NewReceiverForQueue("queue", nil) + require.NoError(t, err) + require.NotNil(t, receiver) + + messages, err := receiver.ReceiveMessages(context.Background(), 5001, nil) + require.EqualError(t, err, "maxMessages cannot exceed 5000") + require.Empty(t, messages) + + messages, err = receiver.ReceiveMessages(context.Background(), -1, nil) + require.EqualError(t, err, "maxMessages should be greater than 0") + require.Empty(t, messages) + + messages, err = receiver.ReceiveMessages(context.Background(), 0, nil) + require.EqualError(t, err, "maxMessages should be greater than 0") + require.Empty(t, messages) +} + +func TestReceiver_CreditsDontExceedMax(t *testing.T) { + type keyType string + + md, client, cleanup := newClientWithMockedConn(t, &emulation.MockDataOptions{ + PreReceiverMock: func(mr *emulation.MockReceiver, ctx context.Context) error { + if mr.Source == "queue" { + // first actual request, 5000 fresh credits. + mr.EXPECT().IssueCredit(uint32(5000)).DoAndReturn(mr.InternalIssueCredit) + + // we're going to eat up one credit with a Receive() call and then + // issue 5000 again, and should only need to issue 1 new credit. + mr.EXPECT().IssueCredit(uint32(1)).DoAndReturn(mr.InternalIssueCredit) + + mr.EXPECT().Receive(mock.NewContextWithValueMatcher(keyType("FromReceive"), true)).DoAndReturn(mr.InternalReceive).AnyTimes() + + mr.EXPECT().Receive(gomock.Any()).DoAndReturn(func(ctx context.Context) (*amqp.Message, error) { + // interaction with the releaser just makes this test harder to make predictable and doesn't + // add or change anything. + azlog.Writef(azlog.Event("testing"), "===> Releaser asking for message, blocking on cancel.") + <-ctx.Done() + return nil, ctx.Err() + }).AnyTimes() + + require.Equal(t, defaultLinkRxBuffer, mr.Opts.Credit) + } + + return nil + }, + }, nil) + defer cleanup() + + receiver, err := client.NewReceiverForQueue("queue", nil) + require.NoError(t, err) + require.NotNil(t, receiver) + + sender, err := client.NewSender("queue", nil) + require.NoError(t, err) + + baseReceiveCtx := context.WithValue(context.Background(), keyType("FromReceive"), true) + + ctx, cancel := context.WithTimeout(baseReceiveCtx, time.Second) + defer cancel() + + messages, err := receiver.ReceiveMessages(ctx, 5000, nil) + require.ErrorIs(t, err, context.DeadlineExceeded) + require.Empty(t, messages) + + err = sender.SendMessage(context.Background(), &Message{Body: []byte("hello world")}, nil) + require.NoError(t, err) + + logsFn := test.CaptureLogsForTest() + + // no issue credit needed - we've still got the 5000 from last time since we didn't + // receive any messages. + messages, err = receiver.ReceiveMessages(baseReceiveCtx, 5000, nil) + require.NoError(t, err) + require.Equal(t, []string{"hello world"}, getSortedBodies(messages)) + require.Contains(t, logsFn(), "[azsb.Receiver] No additional credits needed, still have 5000 credits active") + + ctx, cancel = context.WithTimeout(baseReceiveCtx, time.Second) + defer cancel() + + logsFn = test.CaptureLogsForTest() + + // we ate a credit last time since we received a single message, so this time we'll still + // need to issue some more to backfill. + messages, err = receiver.ReceiveMessages(ctx, 5000, nil) + require.ErrorIs(t, err, context.DeadlineExceeded) + require.Empty(t, messages) + require.Contains(t, logsFn(), "[azsb.Receiver] Only need to issue 1 additional credits") + + require.Equal(t, 1, len(md.Events.GetOpenConns())) + require.Equal(t, 3+3, len(md.Events.GetOpenLinks()), "Sender and Receiver each own 3 links apiece ($mgmt, actual link)") +} + func TestSessionReceiver_ConnectionDeadForAccept(t *testing.T) { _, client, cleanup := newClientWithMockedConn(t, &emulation.MockDataOptions{ PreReceiverMock: func(mr *emulation.MockReceiver, ctx context.Context) error { diff --git a/sdk/messaging/azservicebus/receiver_unit_test.go b/sdk/messaging/azservicebus/receiver_unit_test.go index d06019b446b9..f5f0565607ed 100644 --- a/sdk/messaging/azservicebus/receiver_unit_test.go +++ b/sdk/messaging/azservicebus/receiver_unit_test.go @@ -27,7 +27,8 @@ func TestReceiver_ReceiveMessages_AMQPLinksFailure(t *testing.T) { amqpLinks: fakeAMQPLinks, receiveMode: ReceiveModePeekLock, // TODO: need to make this test rely less on stubbing. - cancelReleaser: &atomic.Value{}, + cancelReleaser: &atomic.Value{}, + maxAllowedCredits: defaultLinkRxBuffer, } receiver.cancelReleaser.Store(emptyCancelFn) @@ -63,7 +64,8 @@ func TestReceiverCancellationUnitTests(t *testing.T) { amqpLinks: &internal.FakeAMQPLinks{ Receiver: &internal.FakeAMQPReceiver{}, }, - cancelReleaser: &atomic.Value{}, + cancelReleaser: &atomic.Value{}, + maxAllowedCredits: defaultLinkRxBuffer, } r.cancelReleaser.Store(emptyCancelFn) @@ -89,7 +91,8 @@ func TestReceiverCancellationUnitTests(t *testing.T) { }, }, }, - cancelReleaser: &atomic.Value{}, + cancelReleaser: &atomic.Value{}, + maxAllowedCredits: defaultLinkRxBuffer, } r.cancelReleaser.Store(emptyCancelFn) diff --git a/sdk/messaging/azservicebus/session_receiver_test.go b/sdk/messaging/azservicebus/session_receiver_test.go index dadfe411412c..c58e4b6b3797 100644 --- a/sdk/messaging/azservicebus/session_receiver_test.go +++ b/sdk/messaging/azservicebus/session_receiver_test.go @@ -327,8 +327,7 @@ func TestSessionReceiver_Detach(t *testing.T) { }}) defer cleanup() - stopFn := test.EnableStdoutLogging() - defer stopFn() + test.EnableStdoutLogging(t) adminClient, err := admin.NewClientFromConnectionString(test.GetConnectionString(t), nil) require.NoError(t, err) From 6f4b9e38739bc11cb54634699c36134d9c117afd Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Tue, 14 Feb 2023 14:34:44 -0800 Subject: [PATCH 020/107] remove obsolete tests (#20008) Co-authored-by: Konrad Jamrozik --- eng/common/scripts/get-codeowners.ps1 | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/eng/common/scripts/get-codeowners.ps1 b/eng/common/scripts/get-codeowners.ps1 index 87271a6230d8..4264d472a5c9 100644 --- a/eng/common/scripts/get-codeowners.ps1 +++ b/eng/common/scripts/get-codeowners.ps1 @@ -81,13 +81,18 @@ function TestGetCodeOwner([string]$targetDirectory, [string]$codeOwnerFileLocati } if($Test) { - $testFile = (Resolve-Path $PSScriptRoot/../../../tools/code-owners-parser/Azure.Sdk.Tools.RetrieveCodeOwners.Tests/TestData/simple_path_CODEOWNERS) - TestGetCodeOwner -targetDirectory "sdk" -codeOwnerFileLocation $testFile -includeNonUserAliases $true -expectReturn @("person1", "person2") - TestGetCodeOwner -targetDirectory "sdk/noPath" -codeOwnerFileLocation $testFile -includeNonUserAliases $true -expectReturn @("person1", "person2") - TestGetCodeOwner -targetDirectory "/sdk/azconfig" -codeOwnerFileLocation $testFile -includeNonUserAliases $true -expectReturn @("person3", "person4") - TestGetCodeOwner -targetDirectory "/sdk/azconfig/package" -codeOwnerFileLocation $testFile -includeNonUserAliases $true $testFile -expectReturn @("person3", "person4") - TestGetCodeOwner -targetDirectory "/sd" -codeOwnerFileLocation $testFile -includeNonUserAliases $true -expectReturn @() - TestGetCodeOwner -targetDirectory "/sdk/testUser/" -codeOwnerFileLocation $testFile -expectReturn @("azure-sdk") + # These tests have been removed; now instead we should run tests from RetrieveCodeOwnersProgramTests, and in a way as explained in: + # https://github.com/Azure/azure-sdk-tools/issues/5434 + # https://github.com/Azure/azure-sdk-tools/pull/5103#discussion_r1068680818 + Write-Host "These tests have been removed. Please see https://github.com/Azure/azure-sdk-tools/issues/5434 for more." + # + # $testFile = (Resolve-Path $PSScriptRoot/../../../tools/code-owners-parser/Azure.Sdk.Tools.RetrieveCodeOwners.Tests/TestData/simple_path_CODEOWNERS) + # TestGetCodeOwner -targetDirectory "sdk" -codeOwnerFileLocation $testFile -includeNonUserAliases $true -expectReturn @("person1", "person2") + # TestGetCodeOwner -targetDirectory "sdk/noPath" -codeOwnerFileLocation $testFile -includeNonUserAliases $true -expectReturn @("person1", "person2") + # TestGetCodeOwner -targetDirectory "/sdk/azconfig" -codeOwnerFileLocation $testFile -includeNonUserAliases $true -expectReturn @("person3", "person4") + # TestGetCodeOwner -targetDirectory "/sdk/azconfig/package" -codeOwnerFileLocation $testFile -includeNonUserAliases $true $testFile -expectReturn @("person3", "person4") + # TestGetCodeOwner -targetDirectory "/sd" -codeOwnerFileLocation $testFile -includeNonUserAliases $true -expectReturn @() + # TestGetCodeOwner -targetDirectory "/sdk/testUser/" -codeOwnerFileLocation $testFile -expectReturn @("azure-sdk") exit 0 } else { From b19ab71fa677393fe6aa5ca3d32b9c21906fd9ab Mon Sep 17 00:00:00 2001 From: Richard Park <51494936+richardpark-msft@users.noreply.github.com> Date: Tue, 14 Feb 2023 16:01:53 -0800 Subject: [PATCH 021/107] [azservicebus] Remove old stress testing batch file (#20014) We have better automation now, no longer need this. --- .../internal/stress/buildstress.bat | 20 ------------------- 1 file changed, 20 deletions(-) delete mode 100644 sdk/messaging/azservicebus/internal/stress/buildstress.bat diff --git a/sdk/messaging/azservicebus/internal/stress/buildstress.bat b/sdk/messaging/azservicebus/internal/stress/buildstress.bat deleted file mode 100644 index c13d09627b31..000000000000 --- a/sdk/messaging/azservicebus/internal/stress/buildstress.bat +++ /dev/null @@ -1,20 +0,0 @@ -set GOOS=linux -set GOARCH=amd64 - -IMAGE_NAME="stresstestregistry.azurecr.io//gosbtest:latest" - -pushd .. -go build -o ./stress/stress ./stress -if errorlevel 1 goto :EOF -popd - -call az acr login -n stresstestregistry -if errorlevel 1 goto :EOF - -call docker build . -t %IMAGE_NAME% -if errorlevel 1 goto :EOF - -call docker push %IMAGE_NAME% -if errorlevel 1 goto :EOF - -kubectl replace -f job.yaml --force \ No newline at end of file From a9e3d56a9d68058f2b83f48001632ebb2b77b8dd Mon Sep 17 00:00:00 2001 From: Tamer Sherif <69483382+tasherif-msft@users.noreply.github.com> Date: Tue, 14 Feb 2023 16:10:28 -0800 Subject: [PATCH 022/107] AzQueue (#20013) * Generate Code for AzQueue (#19729) * first generation * removed queuename from url param * fixed georep * removed pagination * move to internal * last generation * [Feature] Queue Service Client + Key Credential Authentication (#19732) * first generation * removed queuename from url param * fixed georep * removed pagination * added basic methods * added basic models * regenrated and added pager * regenrated and added pager * autorest comment change * comments * comments * comments * version change * marker * rename to queue * further cleanup * rename service client * add license * Enable CI for azqueue (#19835) * Update to latest code generator for azqueue (#19837) * Update to latest code generator for azqueue Add build.go and format generated code. * add changelog * [Feature] SAS Support + Test Framework (#19756) * first generation * removed queuename from url param * fixed georep * removed pagination * added basic methods * added basic models * regenrated and added pager * regenrated and added pager * autorest comment change * comments * comments * comments * added sas perms and basic tests * spell check * cleanup * version change * added sas method for service client * uncomment test * cleanup * cleanup * sas test * cleanup * new test framework * update internal module to support test assets * set code coverage floor * fixed linter Co-authored-by: Joel Hendrix * Queue Client + More Tests (#19852) * added basic queue client * added create and delete queue * added tests to service client for queues * added test to ensure pagination behaves correctly * updated tests * added TODOs * more tests * assets * lint * added more queue methods * more methods * added tests * export * export * export * added more tests * cleanup * address comments * removed message id from composite * removed account services and cleaned up * renamed cors * renamed cors * fixed cors test failure * lint * Queues Live Pipeline + APIViews Feedback (#19955) * removed item suffix * test resources file * lint fix * renamed queues list * fix * More Service Client and Queue Client Tests (#19958) * removed item suffix * test resources file * lint fix * added more service client tests * added more service client tests * fix tests * fix tests * added more message related tests * added peek message tests * cleaup * added tests for clear and delete * added update tests * more code coverage * cleanup * added stats test * added one more test * removed test * added client tests * more sas tests * more tests * AzQueue Public Preview APIVIew Feedback (#20003) * Resolve APIView feedback for Public Preview * test * More api view comments * expose GRS * constants * tests * cleanup * Changelog Entry + doc.go File + Basic Samples (#20004) * added basic doc * added a doc.go file * sample todos * added readme file * readme update * cleanup * cleanup * added samples * go update * go update * link fix --------- Co-authored-by: Joel Hendrix --- eng/config.json | 4 + sdk/storage/azblob/container/client.go | 2 +- sdk/storage/azblob/sas/account.go | 2 +- sdk/storage/azblob/sas/service.go | 6 +- sdk/storage/azqueue/CHANGELOG.md | 5 + sdk/storage/azqueue/LICENSE.txt | 21 + sdk/storage/azqueue/README.md | 241 +++ sdk/storage/azqueue/assets.json | 6 + sdk/storage/azqueue/ci.yml | 28 + sdk/storage/azqueue/constants.go | 18 + sdk/storage/azqueue/doc.go | 168 ++ sdk/storage/azqueue/go.mod | 27 + sdk/storage/azqueue/go.sum | 46 + sdk/storage/azqueue/internal/base/clients.go | 59 + .../internal/exported/access_policy.go | 57 + .../exported/shared_key_credential.go | 218 +++ .../azqueue/internal/exported/version.go | 12 + .../azqueue/internal/generated/autorest.md | 150 ++ .../azqueue/internal/generated/build.go | 10 + .../internal/generated/queue_client.go | 17 + .../internal/generated/service_client.go | 17 + .../internal/generated/zz_constants.go | 154 ++ .../internal/generated/zz_messageid_client.go | 176 ++ .../internal/generated/zz_messages_client.go | 299 ++++ .../azqueue/internal/generated/zz_models.go | 430 +++++ .../internal/generated/zz_models_serde.go | 281 ++++ .../internal/generated/zz_queue_client.go | 432 +++++ .../internal/generated/zz_response_types.go | 225 +++ .../internal/generated/zz_service_client.go | 276 ++++ .../internal/generated/zz_time_rfc1123.go | 43 + .../internal/generated/zz_time_rfc3339.go | 59 + .../internal/generated/zz_xml_helper.go | 41 + sdk/storage/azqueue/internal/shared/shared.go | 146 ++ .../internal/testcommon/clients_auth.go | 131 ++ .../azqueue/internal/testcommon/common.go | 106 ++ sdk/storage/azqueue/models.go | 470 ++++++ sdk/storage/azqueue/queue_client.go | 252 +++ sdk/storage/azqueue/queue_client_test.go | 1458 +++++++++++++++++ sdk/storage/azqueue/queueerror/error_codes.go | 99 ++ sdk/storage/azqueue/responses.go | 67 + sdk/storage/azqueue/samples_test.go | 295 ++++ sdk/storage/azqueue/sas/account.go | 199 +++ sdk/storage/azqueue/sas/account_test.go | 137 ++ sdk/storage/azqueue/sas/query_params.go | 504 ++++++ sdk/storage/azqueue/sas/query_params_test.go | 242 +++ sdk/storage/azqueue/sas/service.go | 132 ++ sdk/storage/azqueue/sas/service_test.go | 81 + sdk/storage/azqueue/sas/url_parts.go | 98 ++ sdk/storage/azqueue/sas/url_parts_test.go | 56 + sdk/storage/azqueue/service_client.go | 223 +++ sdk/storage/azqueue/service_client_test.go | 673 ++++++++ sdk/storage/azqueue/test-resources.json | 516 ++++++ 52 files changed, 9410 insertions(+), 5 deletions(-) create mode 100644 sdk/storage/azqueue/CHANGELOG.md create mode 100644 sdk/storage/azqueue/LICENSE.txt create mode 100644 sdk/storage/azqueue/README.md create mode 100644 sdk/storage/azqueue/assets.json create mode 100644 sdk/storage/azqueue/ci.yml create mode 100644 sdk/storage/azqueue/constants.go create mode 100644 sdk/storage/azqueue/doc.go create mode 100644 sdk/storage/azqueue/go.mod create mode 100644 sdk/storage/azqueue/go.sum create mode 100644 sdk/storage/azqueue/internal/base/clients.go create mode 100644 sdk/storage/azqueue/internal/exported/access_policy.go create mode 100644 sdk/storage/azqueue/internal/exported/shared_key_credential.go create mode 100644 sdk/storage/azqueue/internal/exported/version.go create mode 100644 sdk/storage/azqueue/internal/generated/autorest.md create mode 100644 sdk/storage/azqueue/internal/generated/build.go create mode 100644 sdk/storage/azqueue/internal/generated/queue_client.go create mode 100644 sdk/storage/azqueue/internal/generated/service_client.go create mode 100644 sdk/storage/azqueue/internal/generated/zz_constants.go create mode 100644 sdk/storage/azqueue/internal/generated/zz_messageid_client.go create mode 100644 sdk/storage/azqueue/internal/generated/zz_messages_client.go create mode 100644 sdk/storage/azqueue/internal/generated/zz_models.go create mode 100644 sdk/storage/azqueue/internal/generated/zz_models_serde.go create mode 100644 sdk/storage/azqueue/internal/generated/zz_queue_client.go create mode 100644 sdk/storage/azqueue/internal/generated/zz_response_types.go create mode 100644 sdk/storage/azqueue/internal/generated/zz_service_client.go create mode 100644 sdk/storage/azqueue/internal/generated/zz_time_rfc1123.go create mode 100644 sdk/storage/azqueue/internal/generated/zz_time_rfc3339.go create mode 100644 sdk/storage/azqueue/internal/generated/zz_xml_helper.go create mode 100644 sdk/storage/azqueue/internal/shared/shared.go create mode 100644 sdk/storage/azqueue/internal/testcommon/clients_auth.go create mode 100644 sdk/storage/azqueue/internal/testcommon/common.go create mode 100644 sdk/storage/azqueue/models.go create mode 100644 sdk/storage/azqueue/queue_client.go create mode 100644 sdk/storage/azqueue/queue_client_test.go create mode 100644 sdk/storage/azqueue/queueerror/error_codes.go create mode 100644 sdk/storage/azqueue/responses.go create mode 100644 sdk/storage/azqueue/samples_test.go create mode 100644 sdk/storage/azqueue/sas/account.go create mode 100644 sdk/storage/azqueue/sas/account_test.go create mode 100644 sdk/storage/azqueue/sas/query_params.go create mode 100644 sdk/storage/azqueue/sas/query_params_test.go create mode 100644 sdk/storage/azqueue/sas/service.go create mode 100644 sdk/storage/azqueue/sas/service_test.go create mode 100644 sdk/storage/azqueue/sas/url_parts.go create mode 100644 sdk/storage/azqueue/sas/url_parts_test.go create mode 100644 sdk/storage/azqueue/service_client.go create mode 100644 sdk/storage/azqueue/service_client_test.go create mode 100644 sdk/storage/azqueue/test-resources.json diff --git a/eng/config.json b/eng/config.json index a508d682cab2..172d186b063f 100644 --- a/eng/config.json +++ b/eng/config.json @@ -24,6 +24,10 @@ "Name": "azidentity", "CoverageGoal": 0.68 }, + { + "Name": "azqueue", + "CoverageGoal": 0.60 + }, { "Name": "aztemplate", "CoverageGoal": 0.50 diff --git a/sdk/storage/azblob/container/client.go b/sdk/storage/azblob/container/client.go index 5de51e0d7531..966b24876eb0 100644 --- a/sdk/storage/azblob/container/client.go +++ b/sdk/storage/azblob/container/client.go @@ -190,7 +190,7 @@ func (c *Client) Restore(ctx context.Context, deletedContainerVersion string, op // For more information, see https://docs.microsoft.com/rest/api/storageservices/get-container-metadata. func (c *Client) GetProperties(ctx context.Context, o *GetPropertiesOptions) (GetPropertiesResponse, error) { // NOTE: GetMetadata actually calls GetProperties internally because GetProperties returns the metadata AND the properties. - // This allows us to not expose a GetProperties method at all simplifying the API. + // This allows us to not expose a GetMetadata method at all simplifying the API. // The optionals are nil, like they were in track 1.5 opts, leaseAccessConditions := o.format() diff --git a/sdk/storage/azblob/sas/account.go b/sdk/storage/azblob/sas/account.go index 472df472dd3e..ec5018656239 100644 --- a/sdk/storage/azblob/sas/account.go +++ b/sdk/storage/azblob/sas/account.go @@ -90,7 +90,7 @@ func (v AccountSignatureValues) SignWithSharedKey(sharedKeyCredential *SharedKey } // AccountPermissions type simplifies creating the permissions string for an Azure Storage Account SAS. -// Initialize an instance of this type and then call Client.GetSASURL with it or use the String method to set AccountSASSignatureValues Permissions field. +// Initialize an instance of this type and then call its String method to set AccountSASSignature value's Permissions field. type AccountPermissions struct { Read, Write, Delete, DeletePreviousVersion, PermanentDelete, List, Add, Create, Update, Process, FilterByTags, Tag, SetImmutabilityPolicy bool } diff --git a/sdk/storage/azblob/sas/service.go b/sdk/storage/azblob/sas/service.go index 3ccda6aab6e2..48feb64b6529 100644 --- a/sdk/storage/azblob/sas/service.go +++ b/sdk/storage/azblob/sas/service.go @@ -261,7 +261,7 @@ func getCanonicalName(account string, containerName string, blobName string, dir } // ContainerPermissions type simplifies creating the permissions string for an Azure Storage container SAS. -// Initialize an instance of this type and then call Client.GetSASURL with it or use the String method to set BlobSASSignatureValues Permissions field. +// Initialize an instance of this type and then call its String method to set BlobSASSignatureValues' Permissions field. // All permissions descriptions can be found here: https://docs.microsoft.com/en-us/rest/api/storageservices/create-service-sas#permissions-for-a-directory-container-or-blob type ContainerPermissions struct { Read, Add, Create, Write, Delete, DeletePreviousVersion, List, FilterByTags, Move, SetImmutabilityPolicy bool @@ -353,13 +353,13 @@ func parseContainerPermissions(s string) (ContainerPermissions, error) { } // BlobPermissions type simplifies creating the permissions string for an Azure Storage blob SAS. -// Initialize an instance of this type and then call Client.GetSASURL with it or use the String method to set BlobSASSignatureValues Permissions field. +// Initialize an instance of this type and then call its String method to set BlobSASSignatureValues' Permissions field. type BlobPermissions struct { Read, Add, Create, Write, Delete, DeletePreviousVersion, PermanentDelete, List, Tag, Move, Execute, Ownership, Permissions, SetImmutabilityPolicy bool } // String produces the SAS permissions string for an Azure Storage blob. -// Call this method to set BlobSignatureValue's Permissions field. +// Call this method to set BlobSignatureValues' Permissions field. func (p *BlobPermissions) String() string { var b bytes.Buffer if p.Read { diff --git a/sdk/storage/azqueue/CHANGELOG.md b/sdk/storage/azqueue/CHANGELOG.md new file mode 100644 index 000000000000..e54024879899 --- /dev/null +++ b/sdk/storage/azqueue/CHANGELOG.md @@ -0,0 +1,5 @@ +## 0.1.0 (2023-02-15) + +### Features Added + +* This is the initial preview release of the `azqueue` library diff --git a/sdk/storage/azqueue/LICENSE.txt b/sdk/storage/azqueue/LICENSE.txt new file mode 100644 index 000000000000..d1ca00f20a89 --- /dev/null +++ b/sdk/storage/azqueue/LICENSE.txt @@ -0,0 +1,21 @@ + MIT License + + Copyright (c) Microsoft Corporation. All rights reserved. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE \ No newline at end of file diff --git a/sdk/storage/azqueue/README.md b/sdk/storage/azqueue/README.md new file mode 100644 index 000000000000..69602ea662f8 --- /dev/null +++ b/sdk/storage/azqueue/README.md @@ -0,0 +1,241 @@ +# Azure Queue Storage SDK for Go + +> Server Version: 2018-03-28 + +Azure Queue storage is a service for storing large numbers of messages that can be accessed from anywhere in +the world via authenticated calls using HTTP or HTTPS. +A single queue message can be up to 64 KiB in size, and a queue can contain millions of messages, +up to the total capacity limit of a storage account. + +[Source code][source] | [API reference documentation][docs] | [REST API documentation][rest_docs] + +## Getting started + +### Install the package + +Install the Azure Queue Storage SDK for Go with [go get][goget]: + +```Powershell +go get github.com/Azure/azure-sdk-for-go/sdk/storage/azqueue +``` + +If you're going to authenticate with Azure Active Directory (recommended), install the [azidentity][azidentity] module. +```Powershell +go get github.com/Azure/azure-sdk-for-go/sdk/azidentity +``` + +### Prerequisites + +A supported [Go][godevdl] version (the Azure SDK supports the two most recent Go releases). + +You need an [Azure subscription][azure_sub] and a +[Storage Account][storage_account_docs] to use this package. + +To create a new Storage Account, you can use the [Azure Portal][storage_account_create_portal], +[Azure PowerShell][storage_account_create_ps], or the [Azure CLI][storage_account_create_cli]. +Here's an example using the Azure CLI: + +```Powershell +az storage account create --name MyStorageAccount --resource-group MyResourceGroup --location westus --sku Standard_LRS +``` + +### Authenticate the client + +In order to interact with the Azure Queue Storage service, you'll need to create an instance of the `azqueue.ServiceClient` type. The [azidentity][azidentity] module makes it easy to add Azure Active Directory support for authenticating Azure SDK clients with their corresponding Azure services. + +```go +// create a credential for authenticating with Azure Active Directory +cred, err := azidentity.NewDefaultAzureCredential(nil) +// TODO: handle err + +// create an azqueue.ServiceClient for the specified storage account that uses the above credential +client, err := azqueue.NewServiceClient("https://MYSTORAGEACCOUNT.queue.core.windows.net/", cred, nil) +// TODO: handle err +``` + +Learn more about enabling Azure Active Directory for authentication with Azure Storage in [our documentation][storage_ad] and [our samples](#next-steps). + +## Key concepts +The following components make up the Azure Queue Service: +* The storage account itself +* A queue within the storage account, which contains a set of messages +* A message within a queue, in any format, of up to 64 KiB + +The Azure Storage Queues client library for GO allows you to interact with each of these components through the +use of a dedicated client object. + +### Clients +Two different clients are provided to interact with the various components of the Queue Service: +1. ServiceClient - + this client represents interaction with the Azure storage account itself, and allows you to acquire preconfigured + client instances to access the queues within. It provides operations to retrieve and configure the account + properties as well as list, create, and delete queues within the account. To perform operations on a specific queue, + retrieve a client using the `NewQueueClient` method. +2. QueueClient - + this client represents interaction with a specific queue (which need not exist yet). It provides operations to + create, delete, or configure a queue and includes operations to enqueue, dequeue, peek, delete, and update messages + within it. + +### Messages +* **Enqueue** - Adds a message to the queue and optionally sets a visibility timeout for the message. +* **Dequeue** - Retrieves a message from the queue and makes it invisible to other consumers. +* **Peek** - Retrieves a message from the front of the queue, without changing the message visibility. +* **Update** - Updates the visibility timeout of a message and/or the message contents. +* **Delete** - Deletes a specified message from the queue. +* **Clear** - Clears all messages from the queue. + +### Goroutine safety +We guarantee that all client instance methods are goroutine-safe and independent of each other ([guideline](https://azure.github.io/azure-sdk/golang_introduction.html#thread-safety)). This ensures that the recommendation of reusing client instances is always safe, even across goroutines. + +### About Queue metadata +Queue metadata name/value pairs are valid HTTP headers and should adhere to all restrictions governing HTTP headers. Metadata names must be valid HTTP header names, may contain only ASCII characters, and should be treated as case-insensitive. Base64-encode or URL-encode metadata values containing non-ASCII characters. + +### Additional concepts + +[Client options](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azcore/policy#ClientOptions) | +[Accessing the response](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime#WithCaptureResponse) | +[Handling failures](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azcore#ResponseError) | +[Logging](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azcore/log) + + +## Examples + +### Queue Manipulation + +```go +const ( + accountName = "MYSTORAGEACCOUNT" + accountKey = "ACCOUNT_KEY" + queueName = "samplequeue" +) +``` + +### Exploring Queue Service APIs + +```go +// shared key credential set up +cred := azqueue.NewSharedKeyCredential(accountName, accountKey) + +// instantiate service client +serviceClient, err := azqueue.NewServiceClientWithSharedKeyCredential(account, cred, nil) +// TODO: handle error + +// 1. create queue +queueClient := serviceClient.NewQueueClient(queueName) +_, err = queueClient.Create(context.TODO(), nil) +// TODO: handle error + +// 2. enqueue message +_, err = queueClient.EnqueueMessage(context.TODO(), message, nil) +// TODO: handle error + +// 3. dequeue message +_, err = queueClient.DequeueMessage(context.TODO(), nil) +// TODO: handle error + +// 4. delete queue +_, err =queueClient.Delete(context.TODO(), nil) +// TODO: handle error +``` + +### Enumerating queues + +```go +const ( + account = "https://MYSTORAGEACCOUNT.queue.core.windows.net/" +) + +// authenticate with Azure Active Directory +cred, err := azidentity.NewDefaultAzureCredential(nil) +// TODO: handle error + +// create a client for the specified storage account +client, err := azqueue.NewServiceClient(account, cred, nil) +// TODO: handle error + +// queue listings are returned across multiple pages +pager := client.NewListQueuesPager(nil) + +// continue fetching pages until no more remain +for pager.More() { + resp, err := pager.NextPage(context.Background()) + _require.Nil(err) + // print queue name + for _, queue := range resp.Queues { + fmt.Println(*queue.Name) + } +} +``` + +## Troubleshooting + +All queue service operations will return an +[*azcore.ResponseError][azcore_response_error] on failure with a +populated `ErrorCode` field. Many of these errors are recoverable. +The [queueerror][queue_error] package provides the possible Storage error codes +along with various helper facilities for error handling. + +```go +const ( + connectionString = "" + queueName = "samplequeue" +) + +// create a client with the provided connection string +client, err := azqueue.NewServiceClientFromConnectionString(connectionString, nil) +// TODO: handle error + +// try to delete the queue, avoiding any potential race conditions with an in-progress or completed deletion +_, err = client.DeleteQueue(context.TODO(), queueName, nil) + +if queueerror.HasCode(err, queueerror.QueueBeingDeleted, queueerror.QueueNotFound) { + // ignore any errors if the queue is being deleted or already has been deleted +} else if err != nil { + // TODO: some other error +} +``` + +## Next steps + +Get started with our [Queue samples][samples]. They contain complete examples of the above snippets and more. + +## Contributing + +See the [Storage CONTRIBUTING.md][storage_contrib] for details on building, +testing, and contributing to this library. + +This project welcomes contributions and suggestions. Most contributions require +you to agree to a Contributor License Agreement (CLA) declaring that you have +the right to, and actually do, grant us the rights to use your contribution. For +details, visit [cla.microsoft.com][cla]. + +This project has adopted the [Microsoft Open Source Code of Conduct][coc]. +For more information see the [Code of Conduct FAQ][coc_faq] +or contact [opencode@microsoft.com][coc_contact] with any +additional questions or comments. + + +[source]: https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/storage/azqueue +[docs]: https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/storage/azqueue +[rest_docs]: https://docs.microsoft.com/rest/api/storageservices/queue-service-rest-api +[godevdl]: https://go.dev/dl/ +[goget]: https://pkg.go.dev/cmd/go#hdr-Add_dependencies_to_current_module_and_install_them +[storage_account_docs]: https://docs.microsoft.com/azure/storage/common/storage-account-overview +[storage_account_create_ps]: https://docs.microsoft.com/azure/storage/common/storage-quickstart-create-account?tabs=azure-powershell +[storage_account_create_cli]: https://docs.microsoft.com/azure/storage/common/storage-quickstart-create-account?tabs=azure-cli +[storage_account_create_portal]: https://docs.microsoft.com/azure/storage/common/storage-quickstart-create-account?tabs=azure-portal +[azure_cli]: https://docs.microsoft.com/cli/azure +[azure_sub]: https://azure.microsoft.com/free/ +[azidentity]: https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azidentity +[storage_ad]: https://docs.microsoft.com/azure/storage/common/storage-auth-aad +[azcore_response_error]: https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azcore#ResponseError +[samples]: https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/storage/azqueue/samples_test.go +[queue_error]: https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/storage/azqueue/queueerror/error_codes.go +[queue]: https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/storage/azqueue/queue_client.go +[sas]: https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/storage/azqueue/sas +[service]: https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/storage/azqueue/service_client.go +[storage_contrib]: https://github.com/Azure/azure-sdk-for-go/blob/main/CONTRIBUTING.md +[cla]: https://cla.microsoft.com +[coc]: https://opensource.microsoft.com/codeofconduct/ +[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/ +[coc_contact]: mailto:opencode@microsoft.com diff --git a/sdk/storage/azqueue/assets.json b/sdk/storage/azqueue/assets.json new file mode 100644 index 000000000000..3b1cfb256fa1 --- /dev/null +++ b/sdk/storage/azqueue/assets.json @@ -0,0 +1,6 @@ +{ + "AssetsRepo": "Azure/azure-sdk-assets", + "AssetsRepoPrefixPath": "go", + "TagPrefix": "go/storage/azqueue", + "Tag": "go/storage/azqueue_250a75f53b" +} diff --git a/sdk/storage/azqueue/ci.yml b/sdk/storage/azqueue/ci.yml new file mode 100644 index 000000000000..678839955e2c --- /dev/null +++ b/sdk/storage/azqueue/ci.yml @@ -0,0 +1,28 @@ +trigger: + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/storage/azqueue + +pr: + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/storage/azqueue + + +stages: + - template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml + parameters: + ServiceDirectory: 'storage/azqueue' + RunLiveTests: true diff --git a/sdk/storage/azqueue/constants.go b/sdk/storage/azqueue/constants.go new file mode 100644 index 000000000000..7e77b10c8728 --- /dev/null +++ b/sdk/storage/azqueue/constants.go @@ -0,0 +1,18 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package azqueue + +import "github.com/Azure/azure-sdk-for-go/sdk/storage/azqueue/internal/generated" + +// GeoReplicationStatus - The status of the secondary location +type GeoReplicationStatus = generated.GeoReplicationStatus + +const ( + GeoReplicationStatusLive GeoReplicationStatus = generated.GeoReplicationStatusLive + GeoReplicationStatusBootstrap GeoReplicationStatus = generated.GeoReplicationStatusBootstrap + GeoReplicationStatusUnavailable GeoReplicationStatus = generated.GeoReplicationStatusUnavailable +) diff --git a/sdk/storage/azqueue/doc.go b/sdk/storage/azqueue/doc.go new file mode 100644 index 000000000000..004d7a64ea27 --- /dev/null +++ b/sdk/storage/azqueue/doc.go @@ -0,0 +1,168 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +/* + +Package azqueue can access an Azure Queue Storage. + +The azqueue package is capable of :- + - Creating, deleting, and clearing queues in an account + - Enqueuing, dequeuing, and editing messages in a queue + - Creating Shared Access Signature for authentication + +Types of Resources + +The azqueue package allows you to interact with three types of resources :- + +* Azure storage accounts. +* Queues within those storage accounts. +* Messages within those queues. + +The Azure Queue Storage (azqueue) client library for Go allows you to interact with each of these components through the use of a dedicated client object. +To create a client object, you will need the account's queue service endpoint URL and a credential that allows you to access the account. + +Types of Credentials + +The clients support different forms of authentication. +The azqueue library supports any of the `azcore.TokenCredential` interfaces, authorization via a Connection String, +or authorization with a Shared Access Signature token. + +Using a Shared Key + +To use an account shared key (aka account key or access key), provide the key as a string. +This can be found in your storage account in the Azure Portal under the "Access Keys" section. + +Use the key as the credential parameter to authenticate the client: + + accountName, ok := os.LookupEnv("AZURE_STORAGE_ACCOUNT_NAME") + if !ok { + panic("AZURE_STORAGE_ACCOUNT_NAME could not be found") + } + accountKey, ok := os.LookupEnv("AZURE_STORAGE_ACCOUNT_KEY") + if !ok { + panic("AZURE_STORAGE_ACCOUNT_KEY could not be found") + } + + serviceURL := fmt.Sprintf("https://%s.queue.core.windows.net/", accountName) + + cred, err := azqueue.NewSharedKeyCredential(accountName, accountKey) + handle(err) + + serviceClient, err := azqueue.NewServiceClientWithSharedKey(serviceURL, cred, nil) + handle(err) + + fmt.Println(serviceClient.URL()) + +Using a Connection String + +Depending on your use case and authorization method, you may prefer to initialize a client instance with a connection string instead of providing the account URL and credential separately. +To do this, pass the connection string to the service client's `NewServiceClientFromConnectionString` method. +The connection string can be found in your storage account in the Azure Portal under the "Access Keys" section. + + connStr := "DefaultEndpointsProtocol=https;AccountName=;AccountKey=;EndpointSuffix=core.windows.net" + serviceClient, err := azqueue.NewServiceClientFromConnectionString(connStr, nil) + +Using a Shared Access Signature (SAS) Token + +To use a shared access signature (SAS) token, provide the token at the end of your service URL. +You can generate a SAS token from the Azure Portal under Shared Access Signature or use the ServiceClient.GetSASURL() functions. + + accountName, ok := os.LookupEnv("AZURE_STORAGE_ACCOUNT_NAME") + if !ok { + panic("AZURE_STORAGE_ACCOUNT_NAME could not be found") + } + accountKey, ok := os.LookupEnv("AZURE_STORAGE_ACCOUNT_KEY") + if !ok { + panic("AZURE_STORAGE_ACCOUNT_KEY could not be found") + } + serviceURL := fmt.Sprintf("https://%s.queue.core.windows.net/", accountName) + + cred, err := azqueue.NewSharedKeyCredential(accountName, accountKey) + handle(err) + serviceClient, err := azqueue.NewServiceClientWithSharedKey(serviceURL, cred, nil) + handle(err) + fmt.Println(serviceClient.URL()) + + // Alternatively, you can create SAS on the fly + + resources := azqueue.AccountResourceTypes{Service: true} + permission := azqueue.AccountSASPermissions{Read: true} + expiry := start.AddDate(0, 0, 1) + serviceURLWithSAS, err := serviceClient.GetSASURL(resources, permission, expiry, nil) + handle(err) + + serviceClientWithSAS, err := azqueue.NewServiceClientWithNoCredential(serviceURLWithSAS, nil) + handle(err) + + fmt.Println(serviceClientWithSAS.URL()) + +Types of Clients + +There are two different clients provided to interact with the various components of the Queue Service: + +1. **`ServiceClient`** + * Get and set account settings. + * Query, create, and delete queues within the account. + +2. **`QueueClient`** + * Get and set queue access settings and metadata. + * Enqueue, Dequeue and Peek messages within a queue. + * Update and Delete messages. + +Examples + + // Your account name and key can be obtained from the Azure Portal. + accountName, ok := os.LookupEnv("AZURE_STORAGE_ACCOUNT_NAME") + if !ok { + panic("AZURE_STORAGE_ACCOUNT_NAME could not be found") + } + + accountKey, ok := os.LookupEnv("AZURE_STORAGE_ACCOUNT_KEY") + if !ok { + panic("AZURE_STORAGE_ACCOUNT_KEY could not be found") + } + cred, err := azqueue.NewSharedKeyCredential(accountName, accountKey) + handle(err) + + // The service URL for queue endpoints is usually in the form: http(s)://.queue.core.windows.net/ + serviceClient, err := azqueue.NewServiceClientWithSharedKey(fmt.Sprintf("https://%s.queue.core.windows.net/", accountName), cred, nil) + handle(err) + + // ===== 1. Create a queue ===== + + // First, create a queue client, and use the Create method to create a new queue in your account + queueClient, err := serviceClient.NewQueueClient("testqueue") + handle(err) + + // All APIs have an options' bag struct as a parameter. + // The options' bag struct allows you to specify optional parameters such as metadata, access, etc. + // If you want to use the default options, pass in nil. + _, err = queueClient.Create(context.TODO(), nil) + handle(err) + + // ===== 2. Enqueue and Dequeue a message ===== + message := "Hello world!" + + // send message to queue + _, err = queueClient.EnqueueMessage(context.TODO(), message, nil) + handle(err) + + // dequeue message from queue, you can also use `DequeueMessage()` to dequeue more than one message (up to 32) + _, err = queueClient.DequeueMessage(context.TODO(), nil) + handle(err) + + // ===== 3. Peek messages ===== + // You can also peek messages from the queue (without removing them), you can peek a maximum of 32 messages. + + opts := azqueue.PeekMessagesOptions{NumberOfMessages: to.Ptr(int32(4))} + resp, err := queueClient.PeekMessages(context.TODO(), &opts) + + // Delete the queue. + _, err = queueClient.Delete(context.TODO(), nil) + handle(err) +*/ + +package azqueue diff --git a/sdk/storage/azqueue/go.mod b/sdk/storage/azqueue/go.mod new file mode 100644 index 000000000000..c3f687d02999 --- /dev/null +++ b/sdk/storage/azqueue/go.mod @@ -0,0 +1,27 @@ +module github.com/Azure/azure-sdk-for-go/sdk/storage/azqueue + +go 1.18 + +require ( + github.com/Azure/azure-sdk-for-go/sdk/azcore v1.3.1 + github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.1.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.1.2 + github.com/stretchr/testify v1.7.0 +) + +require ( + github.com/AzureAD/microsoft-authentication-library-for-go v0.5.1 // indirect + github.com/davecgh/go-spew v1.1.1 // indirect + github.com/dnaeon/go-vcr v1.1.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 + github.com/pmezard/go-difflib v1.0.0 // indirect + golang.org/x/crypto v0.0.0-20220511200225-c6db032c6c88 // 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 + gopkg.in/yaml.v2 v2.4.0 // indirect + gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect +) diff --git a/sdk/storage/azqueue/go.sum b/sdk/storage/azqueue/go.sum new file mode 100644 index 000000000000..b9c9d0bd698e --- /dev/null +++ b/sdk/storage/azqueue/go.sum @@ -0,0 +1,46 @@ +github.com/Azure/azure-sdk-for-go/sdk/azcore v1.3.1 h1:gVXuXcWd1i4C2Ruxe321aU+IKGaStvGB/S90PUPB/W8= +github.com/Azure/azure-sdk-for-go/sdk/azcore v1.3.1/go.mod h1:DffdKW9RFqa5VgmsjUOsS7UE7eiA5iAvYUs63bhKQ0M= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.1.0 h1:QkAcEIAKbNL4KoFr4SathZPhDhF4mVwpBMFlYjyAqy8= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.1.0/go.mod h1:bhXu1AjYL+wutSL/kpSq6s7733q2Rb0yuot9Zgfqa/0= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.1.2 h1:+5VZ72z0Qan5Bog5C+ZkgSqUbeVUd9wgtHOrIKuc5b8= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.1.2/go.mod h1:eWRD7oawr1Mu1sLCawqVc0CUiF43ia3qQMxLscsKQ9w= +github.com/AzureAD/microsoft-authentication-library-for-go v0.5.1 h1:BWe8a+f/t+7KY7zH2mqygeUD0t8hNFXe08p1Pb3/jKE= +github.com/AzureAD/microsoft-authentication-library-for-go v0.5.1/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/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +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= +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-20220511200225-c6db032c6c88 h1:Tgea0cVUD0ivh5ADBX4WwuI12DUd2to3nCYe2eayMIw= +golang.org/x/crypto v0.0.0-20220511200225-c6db032c6c88/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= +golang.org/x/net v0.7.0 h1:rJrUqqhjsgNp7KqAIc25s9pZnjU7TUcSY7HcVZjdn1g= +golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= +golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.5.0 h1:MUK/U/4lj1t1oPg0HfuXDN/Z1wv31ZJ/YcPiGccS4DU= +golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/text v0.7.0 h1:4BRB4x83lYWy72KwLD/qYDuTu7q9PjSagHvijDw7cLo= +golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= +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= +gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/sdk/storage/azqueue/internal/base/clients.go b/sdk/storage/azqueue/internal/base/clients.go new file mode 100644 index 000000000000..a979ac5444d5 --- /dev/null +++ b/sdk/storage/azqueue/internal/base/clients.go @@ -0,0 +1,59 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package base + +import ( + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/storage/azqueue/internal/exported" + "github.com/Azure/azure-sdk-for-go/sdk/storage/azqueue/internal/generated" +) + +type Client[T any] struct { + inner *T + sharedKey *exported.SharedKeyCredential +} + +func InnerClient[T any](client *Client[T]) *T { + return client.inner +} + +func SharedKey[T any](client *Client[T]) *exported.SharedKeyCredential { + return client.sharedKey +} + +func NewClient[T any](inner *T) *Client[T] { + return &Client[T]{inner: inner} +} + +func NewServiceClient(queueURL string, pipeline runtime.Pipeline, sharedKey *exported.SharedKeyCredential) *Client[generated.ServiceClient] { + return &Client[generated.ServiceClient]{ + inner: generated.NewServiceClient(queueURL, pipeline), + sharedKey: sharedKey, + } +} + +func NewQueueClient(queueURL string, pipeline runtime.Pipeline, sharedKey *exported.SharedKeyCredential) *CompositeClient[generated.QueueClient, generated.MessagesClient] { + return &CompositeClient[generated.QueueClient, generated.MessagesClient]{ + innerT: generated.NewQueueClient(queueURL, pipeline), + innerU: generated.NewMessagesClient(runtime.JoinPaths(queueURL, "messages"), pipeline), + sharedKey: sharedKey, + } +} + +type CompositeClient[T, U any] struct { + innerT *T + innerU *U + sharedKey *exported.SharedKeyCredential +} + +func InnerClients[T, U any](client *CompositeClient[T, U]) (*T, *U) { + return client.innerT, client.innerU +} + +func SharedKeyComposite[T, U any](client *CompositeClient[T, U]) *exported.SharedKeyCredential { + return client.sharedKey +} diff --git a/sdk/storage/azqueue/internal/exported/access_policy.go b/sdk/storage/azqueue/internal/exported/access_policy.go new file mode 100644 index 000000000000..5b154e97e2d5 --- /dev/null +++ b/sdk/storage/azqueue/internal/exported/access_policy.go @@ -0,0 +1,57 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package exported + +import ( + "bytes" + "fmt" +) + +// AccessPolicyPermission type simplifies creating the permissions string for a queue's access policy. +// Initialize an instance of this type and then call its String method to set AccessPolicy's Permission field. +type AccessPolicyPermission struct { + Read, Add, Update, Process bool +} + +// String produces the access policy permission string for an Azure Storage queue. +// Call this method to set AccessPolicy's Permission field. +func (p *AccessPolicyPermission) String() string { + var b bytes.Buffer + if p.Read { + b.WriteRune('r') + } + if p.Add { + b.WriteRune('a') + } + if p.Update { + b.WriteRune('u') + } + if p.Process { + b.WriteRune('p') + } + return b.String() +} + +// Parse initializes the AccessPolicyPermission's fields from a string. +func (p *AccessPolicyPermission) Parse(s string) error { + *p = AccessPolicyPermission{} // Clear the flags + for _, r := range s { + switch r { + case 'r': + p.Read = true + case 'a': + p.Add = true + case 'u': + p.Update = true + case 'p': + p.Process = true + default: + return fmt.Errorf("invalid permission: '%v'", r) + } + } + return nil +} diff --git a/sdk/storage/azqueue/internal/exported/shared_key_credential.go b/sdk/storage/azqueue/internal/exported/shared_key_credential.go new file mode 100644 index 000000000000..a8d648104cad --- /dev/null +++ b/sdk/storage/azqueue/internal/exported/shared_key_credential.go @@ -0,0 +1,218 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package exported + +import ( + "bytes" + "crypto/hmac" + "crypto/sha256" + "encoding/base64" + "fmt" + "net/http" + "net/url" + "sort" + "strings" + "sync/atomic" + "time" + + azlog "github.com/Azure/azure-sdk-for-go/sdk/azcore/log" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/internal/log" + "github.com/Azure/azure-sdk-for-go/sdk/storage/azqueue/internal/shared" +) + +// NewSharedKeyCredential creates an immutable SharedKeyCredential containing the +// storage account's name and either its primary or secondary key. +func NewSharedKeyCredential(accountName string, accountKey string) (*SharedKeyCredential, error) { + c := SharedKeyCredential{accountName: accountName} + if err := c.SetAccountKey(accountKey); err != nil { + return nil, err + } + return &c, nil +} + +// SharedKeyCredential contains an account's name and its primary or secondary key. +type SharedKeyCredential struct { + // Only the NewSharedKeyCredential method should set these; all other methods should treat them as read-only + accountName string + accountKey atomic.Value // []byte +} + +// AccountName returns the Storage account's name. +func (c *SharedKeyCredential) AccountName() string { + return c.accountName +} + +// SetAccountKey replaces the existing account key with the specified account key. +func (c *SharedKeyCredential) SetAccountKey(accountKey string) error { + _bytes, err := base64.StdEncoding.DecodeString(accountKey) + if err != nil { + return fmt.Errorf("decode account key: %w", err) + } + c.accountKey.Store(_bytes) + return nil +} + +// ComputeHMACSHA256 generates a hash signature for an HTTP request or for a SAS. +func (c *SharedKeyCredential) computeHMACSHA256(message string) (string, error) { + h := hmac.New(sha256.New, c.accountKey.Load().([]byte)) + _, err := h.Write([]byte(message)) + return base64.StdEncoding.EncodeToString(h.Sum(nil)), err +} + +func (c *SharedKeyCredential) buildStringToSign(req *http.Request) (string, error) { + // https://docs.microsoft.com/en-us/rest/api/storageservices/authentication-for-the-azure-storage-services + headers := req.Header + contentLength := getHeader(shared.HeaderContentLength, headers) + if contentLength == "0" { + contentLength = "" + } + + canonicalizedResource, err := c.buildCanonicalizedResource(req.URL) + if err != nil { + return "", err + } + + stringToSign := strings.Join([]string{ + req.Method, + getHeader(shared.HeaderContentEncoding, headers), + getHeader(shared.HeaderContentLanguage, headers), + contentLength, + getHeader(shared.HeaderContentMD5, headers), + getHeader(shared.HeaderContentType, headers), + "", // Empty date because x-ms-date is expected (as per web page above) + getHeader(shared.HeaderIfModifiedSince, headers), + getHeader(shared.HeaderIfMatch, headers), + getHeader(shared.HeaderIfNoneMatch, headers), + getHeader(shared.HeaderIfUnmodifiedSince, headers), + getHeader(shared.HeaderRange, headers), + c.buildCanonicalizedHeader(headers), + canonicalizedResource, + }, "\n") + return stringToSign, nil +} + +func getHeader(key string, headers map[string][]string) string { + if headers == nil { + return "" + } + if v, ok := headers[key]; ok { + if len(v) > 0 { + return v[0] + } + } + + return "" +} + +func (c *SharedKeyCredential) buildCanonicalizedHeader(headers http.Header) string { + cm := map[string][]string{} + for k, v := range headers { + headerName := strings.TrimSpace(strings.ToLower(k)) + if strings.HasPrefix(headerName, "x-ms-") { + cm[headerName] = v // NOTE: the value must not have any whitespace around it. + } + } + if len(cm) == 0 { + return "" + } + + keys := make([]string, 0, len(cm)) + for key := range cm { + keys = append(keys, key) + } + sort.Strings(keys) + ch := bytes.NewBufferString("") + for i, key := range keys { + if i > 0 { + ch.WriteRune('\n') + } + ch.WriteString(key) + ch.WriteRune(':') + ch.WriteString(strings.Join(cm[key], ",")) + } + return ch.String() +} + +func (c *SharedKeyCredential) buildCanonicalizedResource(u *url.URL) (string, error) { + // https://docs.microsoft.com/en-us/rest/api/storageservices/authentication-for-the-azure-storage-services + cr := bytes.NewBufferString("/") + cr.WriteString(c.accountName) + + if len(u.Path) > 0 { + // Any portion of the CanonicalizedResource string that is derived from + // the resource's URI should be encoded exactly as it is in the URI. + // -- https://msdn.microsoft.com/en-gb/library/azure/dd179428.aspx + cr.WriteString(u.EscapedPath()) + } else { + // a slash is required to indicate the root path + cr.WriteString("/") + } + + // params is a map[string][]string; param name is key; params values is []string + params, err := url.ParseQuery(u.RawQuery) // Returns URL decoded values + if err != nil { + return "", fmt.Errorf("failed to parse query params: %w", err) + } + + if len(params) > 0 { // There is at least 1 query parameter + var paramNames []string // We use this to sort the parameter key names + for paramName := range params { + paramNames = append(paramNames, paramName) // paramNames must be lowercase + } + sort.Strings(paramNames) + + for _, paramName := range paramNames { + paramValues := params[paramName] + sort.Strings(paramValues) + + // Join the sorted key values separated by ',' + // Then prepend "keyName:"; then add this string to the buffer + cr.WriteString("\n" + paramName + ":" + strings.Join(paramValues, ",")) + } + } + return cr.String(), nil +} + +// ComputeHMACSHA256 is a helper for computing the signed string outside of this package. +func ComputeHMACSHA256(cred *SharedKeyCredential, message string) (string, error) { + return cred.computeHMACSHA256(message) +} + +// the following content isn't actually exported but must live +// next to SharedKeyCredential as it uses its unexported methods + +type SharedKeyCredPolicy struct { + cred *SharedKeyCredential +} + +func NewSharedKeyCredPolicy(cred *SharedKeyCredential) *SharedKeyCredPolicy { + return &SharedKeyCredPolicy{cred: cred} +} + +func (s *SharedKeyCredPolicy) Do(req *policy.Request) (*http.Response, error) { + if d := getHeader(shared.HeaderXmsDate, req.Raw().Header); d == "" { + req.Raw().Header.Set(shared.HeaderXmsDate, time.Now().UTC().Format(http.TimeFormat)) + } + stringToSign, err := s.cred.buildStringToSign(req.Raw()) + if err != nil { + return nil, err + } + signature, err := s.cred.computeHMACSHA256(stringToSign) + if err != nil { + return nil, err + } + authHeader := strings.Join([]string{"SharedKey ", s.cred.AccountName(), ":", signature}, "") + req.Raw().Header.Set(shared.HeaderAuthorization, authHeader) + + response, err := req.Next() + if err != nil && response != nil && response.StatusCode == http.StatusForbidden { + // Service failed to authenticate request, log it + log.Write(azlog.EventResponse, "===== HTTP Forbidden status, String-to-Sign:\n"+stringToSign+"\n===============================\n") + } + return response, err +} diff --git a/sdk/storage/azqueue/internal/exported/version.go b/sdk/storage/azqueue/internal/exported/version.go new file mode 100644 index 000000000000..cfbc93f4ea9d --- /dev/null +++ b/sdk/storage/azqueue/internal/exported/version.go @@ -0,0 +1,12 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package exported + +const ( + ModuleName = "azqueue" + ModuleVersion = "v0.1.0" +) diff --git a/sdk/storage/azqueue/internal/generated/autorest.md b/sdk/storage/azqueue/internal/generated/autorest.md new file mode 100644 index 000000000000..3d8be8e852f0 --- /dev/null +++ b/sdk/storage/azqueue/internal/generated/autorest.md @@ -0,0 +1,150 @@ +# Code Generation - Azure Queue SDK for Golang + +### Settings + +```yaml +go: true +clear-output-folder: false +version: "^3.0.0" +license-header: MICROSOFT_MIT_NO_VERSION +input-file: "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/storage/data-plane/Microsoft.QueueStorage/preview/2018-03-28/queue.json" +credential-scope: "https://storage.azure.com/.default" +output-folder: ../generated +file-prefix: "zz_" +openapi-type: "data-plane" +verbose: true +security: AzureKey +modelerfour: + group-parameters: false + seal-single-value-enum-by-default: true + lenient-model-deduplication: true +export-clients: true +use: "@autorest/go@4.0.0-preview.45" +``` + +### Remove QueueName from parameter list since it is not needed + +``` yaml +directive: +- from: swagger-document + where: $["x-ms-paths"] + transform: > + for (const property in $) + { + if (property.includes('/{queueName}/messages/{messageid}')) + { + $[property]["parameters"] = $[property]["parameters"].filter(function(param) { return (typeof param['$ref'] === "undefined") || (false == param['$ref'].endsWith("#/parameters/QueueName") && false == param['$ref'].endsWith("#/parameters/MessageId"))}); + } + else if (property.includes('/{queueName}')) + { + $[property]["parameters"] = $[property]["parameters"].filter(function(param) { return (typeof param['$ref'] === "undefined") || (false == param['$ref'].endsWith("#/parameters/QueueName"))}); + } + } +``` + +### Fix GeoReplication + +``` yaml +directive: +- from: swagger-document + where: $.definitions + transform: > + delete $.GeoReplication.properties.Status["x-ms-enum"]; + $.GeoReplication.properties.Status["x-ms-enum"] = { + "name": "QueueGeoReplicationStatus", + "modelAsString": false + }; +``` + +### Remove pager method (since we implement it ourselves on the client layer) and export various generated methods in service client to utilize them in higher layers + +``` yaml +directive: + - from: zz_service_client.go + where: $ + transform: >- + return $. + replace(/func \(client \*ServiceClient\) NewListQueuesSegmentPager\(.+\/\/ listQueuesSegmentCreateRequest creates the ListQueuesSegment request/s, `// ListQueuesSegmentCreateRequest creates the ListQueuesFlatSegment ListQueuesSegment`). + replace(/\(client \*ServiceClient\) listQueuesSegmentCreateRequest\(/, `(client *ServiceClient) ListQueuesSegmentCreateRequest(`). + replace(/\(client \*ServiceClient\) listQueuesSegmentHandleResponse\(/, `(client *ServiceClient) ListQueuesSegmentHandleResponse(`); +``` + +### Change `VisibilityTimeout` parameter in queues to be options + +``` yaml +directive: +- from: swagger-document + where: $.parameters.VisibilityTimeoutRequired + transform: > + $.required = false; +``` + +### Change CORS acronym to be all caps + +``` yaml +directive: + - from: source-file-go + where: $ + transform: >- + return $. + replace(/Cors/g, "CORS"); +``` + +### Change cors xml to be correct + +``` yaml +directive: + - from: source-file-go + where: $ + transform: >- + return $. + replace(/xml:"CORS>CORSRule"/g, "xml:\"Cors>CorsRule\""); +``` + +### Remove `Item` suffix + +``` yaml +directive: +- rename-model: + from: DequeuedMessageItem + to: DequeuedMessage +- rename-model: + from: QueueItem + to: Queue +- rename-model: + from: PeekedMessageItem + to: PeekedMessage +``` + +### Remove `List` suffix + +``` yaml +directive: + - from: source-file-go + where: $ + transform: >- + return $. + replace(/QueueMessagesList/g, "Messages"); +``` + +### Remove `Item` suffix + +``` yaml +directive: + - from: source-file-go + where: $ + transform: >- + return $. + replace(/QueueItems/g, "Queues"); +``` + +### Remove `Queue` prefix + +``` yaml +directive: + - from: source-file-go + where: $ + transform: >- + return $. + replace(/QueueGeoReplicationStatus/g, "GeoReplicationStatus"); +``` diff --git a/sdk/storage/azqueue/internal/generated/build.go b/sdk/storage/azqueue/internal/generated/build.go new file mode 100644 index 000000000000..57f112001bd2 --- /dev/null +++ b/sdk/storage/azqueue/internal/generated/build.go @@ -0,0 +1,10 @@ +//go:build go1.18 +// +build go1.18 + +//go:generate autorest ./autorest.md +//go:generate gofmt -w . + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package generated diff --git a/sdk/storage/azqueue/internal/generated/queue_client.go b/sdk/storage/azqueue/internal/generated/queue_client.go new file mode 100644 index 000000000000..0820c93c0df1 --- /dev/null +++ b/sdk/storage/azqueue/internal/generated/queue_client.go @@ -0,0 +1,17 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package generated + +import "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + +func (client *QueueClient) Endpoint() string { + return client.endpoint +} + +func (client *QueueClient) Pipeline() runtime.Pipeline { + return client.pl +} diff --git a/sdk/storage/azqueue/internal/generated/service_client.go b/sdk/storage/azqueue/internal/generated/service_client.go new file mode 100644 index 000000000000..1f449b955e82 --- /dev/null +++ b/sdk/storage/azqueue/internal/generated/service_client.go @@ -0,0 +1,17 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package generated + +import "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + +func (client *ServiceClient) Endpoint() string { + return client.endpoint +} + +func (client *ServiceClient) Pipeline() runtime.Pipeline { + return client.pl +} diff --git a/sdk/storage/azqueue/internal/generated/zz_constants.go b/sdk/storage/azqueue/internal/generated/zz_constants.go new file mode 100644 index 000000000000..167981467b51 --- /dev/null +++ b/sdk/storage/azqueue/internal/generated/zz_constants.go @@ -0,0 +1,154 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package generated + +// GeoReplicationStatus - The status of the secondary location +type GeoReplicationStatus string + +const ( + GeoReplicationStatusLive GeoReplicationStatus = "live" + GeoReplicationStatusBootstrap GeoReplicationStatus = "bootstrap" + GeoReplicationStatusUnavailable GeoReplicationStatus = "unavailable" +) + +// PossibleGeoReplicationStatusValues returns the possible values for the GeoReplicationStatus const type. +func PossibleGeoReplicationStatusValues() []GeoReplicationStatus { + return []GeoReplicationStatus{ + GeoReplicationStatusLive, + GeoReplicationStatusBootstrap, + GeoReplicationStatusUnavailable, + } +} + +// StorageErrorCode - Error codes returned by the service +type StorageErrorCode string + +const ( + StorageErrorCodeAccountAlreadyExists StorageErrorCode = "AccountAlreadyExists" + StorageErrorCodeAccountBeingCreated StorageErrorCode = "AccountBeingCreated" + StorageErrorCodeAccountIsDisabled StorageErrorCode = "AccountIsDisabled" + StorageErrorCodeAuthenticationFailed StorageErrorCode = "AuthenticationFailed" + StorageErrorCodeAuthorizationFailure StorageErrorCode = "AuthorizationFailure" + StorageErrorCodeAuthorizationPermissionMismatch StorageErrorCode = "AuthorizationPermissionMismatch" + StorageErrorCodeAuthorizationProtocolMismatch StorageErrorCode = "AuthorizationProtocolMismatch" + StorageErrorCodeAuthorizationResourceTypeMismatch StorageErrorCode = "AuthorizationResourceTypeMismatch" + StorageErrorCodeAuthorizationServiceMismatch StorageErrorCode = "AuthorizationServiceMismatch" + StorageErrorCodeAuthorizationSourceIPMismatch StorageErrorCode = "AuthorizationSourceIPMismatch" + StorageErrorCodeConditionHeadersNotSupported StorageErrorCode = "ConditionHeadersNotSupported" + StorageErrorCodeConditionNotMet StorageErrorCode = "ConditionNotMet" + StorageErrorCodeEmptyMetadataKey StorageErrorCode = "EmptyMetadataKey" + StorageErrorCodeFeatureVersionMismatch StorageErrorCode = "FeatureVersionMismatch" + StorageErrorCodeInsufficientAccountPermissions StorageErrorCode = "InsufficientAccountPermissions" + StorageErrorCodeInternalError StorageErrorCode = "InternalError" + StorageErrorCodeInvalidAuthenticationInfo StorageErrorCode = "InvalidAuthenticationInfo" + StorageErrorCodeInvalidHTTPVerb StorageErrorCode = "InvalidHttpVerb" + StorageErrorCodeInvalidHeaderValue StorageErrorCode = "InvalidHeaderValue" + StorageErrorCodeInvalidInput StorageErrorCode = "InvalidInput" + StorageErrorCodeInvalidMD5 StorageErrorCode = "InvalidMd5" + StorageErrorCodeInvalidMarker StorageErrorCode = "InvalidMarker" + StorageErrorCodeInvalidMetadata StorageErrorCode = "InvalidMetadata" + StorageErrorCodeInvalidQueryParameterValue StorageErrorCode = "InvalidQueryParameterValue" + StorageErrorCodeInvalidRange StorageErrorCode = "InvalidRange" + StorageErrorCodeInvalidResourceName StorageErrorCode = "InvalidResourceName" + StorageErrorCodeInvalidURI StorageErrorCode = "InvalidUri" + StorageErrorCodeInvalidXMLDocument StorageErrorCode = "InvalidXmlDocument" + StorageErrorCodeInvalidXMLNodeValue StorageErrorCode = "InvalidXmlNodeValue" + StorageErrorCodeMD5Mismatch StorageErrorCode = "Md5Mismatch" + StorageErrorCodeMessageNotFound StorageErrorCode = "MessageNotFound" + StorageErrorCodeMessageTooLarge StorageErrorCode = "MessageTooLarge" + StorageErrorCodeMetadataTooLarge StorageErrorCode = "MetadataTooLarge" + StorageErrorCodeMissingContentLengthHeader StorageErrorCode = "MissingContentLengthHeader" + StorageErrorCodeMissingRequiredHeader StorageErrorCode = "MissingRequiredHeader" + StorageErrorCodeMissingRequiredQueryParameter StorageErrorCode = "MissingRequiredQueryParameter" + StorageErrorCodeMissingRequiredXMLNode StorageErrorCode = "MissingRequiredXmlNode" + StorageErrorCodeMultipleConditionHeadersNotSupported StorageErrorCode = "MultipleConditionHeadersNotSupported" + StorageErrorCodeOperationTimedOut StorageErrorCode = "OperationTimedOut" + StorageErrorCodeOutOfRangeInput StorageErrorCode = "OutOfRangeInput" + StorageErrorCodeOutOfRangeQueryParameterValue StorageErrorCode = "OutOfRangeQueryParameterValue" + StorageErrorCodePopReceiptMismatch StorageErrorCode = "PopReceiptMismatch" + StorageErrorCodeQueueAlreadyExists StorageErrorCode = "QueueAlreadyExists" + StorageErrorCodeQueueBeingDeleted StorageErrorCode = "QueueBeingDeleted" + StorageErrorCodeQueueDisabled StorageErrorCode = "QueueDisabled" + StorageErrorCodeQueueNotEmpty StorageErrorCode = "QueueNotEmpty" + StorageErrorCodeQueueNotFound StorageErrorCode = "QueueNotFound" + StorageErrorCodeRequestBodyTooLarge StorageErrorCode = "RequestBodyTooLarge" + StorageErrorCodeRequestURLFailedToParse StorageErrorCode = "RequestUrlFailedToParse" + StorageErrorCodeResourceAlreadyExists StorageErrorCode = "ResourceAlreadyExists" + StorageErrorCodeResourceNotFound StorageErrorCode = "ResourceNotFound" + StorageErrorCodeResourceTypeMismatch StorageErrorCode = "ResourceTypeMismatch" + StorageErrorCodeServerBusy StorageErrorCode = "ServerBusy" + StorageErrorCodeUnsupportedHTTPVerb StorageErrorCode = "UnsupportedHttpVerb" + StorageErrorCodeUnsupportedHeader StorageErrorCode = "UnsupportedHeader" + StorageErrorCodeUnsupportedQueryParameter StorageErrorCode = "UnsupportedQueryParameter" + StorageErrorCodeUnsupportedXMLNode StorageErrorCode = "UnsupportedXmlNode" +) + +// PossibleStorageErrorCodeValues returns the possible values for the StorageErrorCode const type. +func PossibleStorageErrorCodeValues() []StorageErrorCode { + return []StorageErrorCode{ + StorageErrorCodeAccountAlreadyExists, + StorageErrorCodeAccountBeingCreated, + StorageErrorCodeAccountIsDisabled, + StorageErrorCodeAuthenticationFailed, + StorageErrorCodeAuthorizationFailure, + StorageErrorCodeAuthorizationPermissionMismatch, + StorageErrorCodeAuthorizationProtocolMismatch, + StorageErrorCodeAuthorizationResourceTypeMismatch, + StorageErrorCodeAuthorizationServiceMismatch, + StorageErrorCodeAuthorizationSourceIPMismatch, + StorageErrorCodeConditionHeadersNotSupported, + StorageErrorCodeConditionNotMet, + StorageErrorCodeEmptyMetadataKey, + StorageErrorCodeFeatureVersionMismatch, + StorageErrorCodeInsufficientAccountPermissions, + StorageErrorCodeInternalError, + StorageErrorCodeInvalidAuthenticationInfo, + StorageErrorCodeInvalidHTTPVerb, + StorageErrorCodeInvalidHeaderValue, + StorageErrorCodeInvalidInput, + StorageErrorCodeInvalidMD5, + StorageErrorCodeInvalidMarker, + StorageErrorCodeInvalidMetadata, + StorageErrorCodeInvalidQueryParameterValue, + StorageErrorCodeInvalidRange, + StorageErrorCodeInvalidResourceName, + StorageErrorCodeInvalidURI, + StorageErrorCodeInvalidXMLDocument, + StorageErrorCodeInvalidXMLNodeValue, + StorageErrorCodeMD5Mismatch, + StorageErrorCodeMessageNotFound, + StorageErrorCodeMessageTooLarge, + StorageErrorCodeMetadataTooLarge, + StorageErrorCodeMissingContentLengthHeader, + StorageErrorCodeMissingRequiredHeader, + StorageErrorCodeMissingRequiredQueryParameter, + StorageErrorCodeMissingRequiredXMLNode, + StorageErrorCodeMultipleConditionHeadersNotSupported, + StorageErrorCodeOperationTimedOut, + StorageErrorCodeOutOfRangeInput, + StorageErrorCodeOutOfRangeQueryParameterValue, + StorageErrorCodePopReceiptMismatch, + StorageErrorCodeQueueAlreadyExists, + StorageErrorCodeQueueBeingDeleted, + StorageErrorCodeQueueDisabled, + StorageErrorCodeQueueNotEmpty, + StorageErrorCodeQueueNotFound, + StorageErrorCodeRequestBodyTooLarge, + StorageErrorCodeRequestURLFailedToParse, + StorageErrorCodeResourceAlreadyExists, + StorageErrorCodeResourceNotFound, + StorageErrorCodeResourceTypeMismatch, + StorageErrorCodeServerBusy, + StorageErrorCodeUnsupportedHTTPVerb, + StorageErrorCodeUnsupportedHeader, + StorageErrorCodeUnsupportedQueryParameter, + StorageErrorCodeUnsupportedXMLNode, + } +} diff --git a/sdk/storage/azqueue/internal/generated/zz_messageid_client.go b/sdk/storage/azqueue/internal/generated/zz_messageid_client.go new file mode 100644 index 000000000000..dc85dd32663d --- /dev/null +++ b/sdk/storage/azqueue/internal/generated/zz_messageid_client.go @@ -0,0 +1,176 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package generated + +import ( + "context" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "net/http" + "strconv" + "time" +) + +// MessageIDClient contains the methods for the MessageID group. +// Don't use this type directly, use NewMessageIDClient() instead. +type MessageIDClient struct { + endpoint string + pl runtime.Pipeline +} + +// NewMessageIDClient creates a new instance of MessageIDClient with the specified values. +// - endpoint - The URL of the service account, queue or message that is the target of the desired operation. +// - pl - the pipeline used for sending requests and handling responses. +func NewMessageIDClient(endpoint string, pl runtime.Pipeline) *MessageIDClient { + client := &MessageIDClient{ + endpoint: endpoint, + pl: pl, + } + return client +} + +// Delete - The Delete operation deletes the specified message. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2018-03-28 +// - popReceipt - Required. Specifies the valid pop receipt value returned from an earlier call to the Get Messages or Update +// Message operation. +// - options - MessageIDClientDeleteOptions contains the optional parameters for the MessageIDClient.Delete method. +func (client *MessageIDClient) Delete(ctx context.Context, popReceipt string, options *MessageIDClientDeleteOptions) (MessageIDClientDeleteResponse, error) { + req, err := client.deleteCreateRequest(ctx, popReceipt, options) + if err != nil { + return MessageIDClientDeleteResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return MessageIDClientDeleteResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusNoContent) { + return MessageIDClientDeleteResponse{}, runtime.NewResponseError(resp) + } + return client.deleteHandleResponse(resp) +} + +// deleteCreateRequest creates the Delete request. +func (client *MessageIDClient) deleteCreateRequest(ctx context.Context, popReceipt string, options *MessageIDClientDeleteOptions) (*policy.Request, error) { + req, err := runtime.NewRequest(ctx, http.MethodDelete, client.endpoint) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("popreceipt", popReceipt) + if options != nil && options.Timeout != nil { + reqQP.Set("timeout", strconv.FormatInt(int64(*options.Timeout), 10)) + } + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["x-ms-version"] = []string{"2018-03-28"} + if options != nil && options.RequestID != nil { + req.Raw().Header["x-ms-client-request-id"] = []string{*options.RequestID} + } + req.Raw().Header["Accept"] = []string{"application/xml"} + return req, nil +} + +// deleteHandleResponse handles the Delete response. +func (client *MessageIDClient) deleteHandleResponse(resp *http.Response) (MessageIDClientDeleteResponse, error) { + result := MessageIDClientDeleteResponse{} + if val := resp.Header.Get("x-ms-request-id"); val != "" { + result.RequestID = &val + } + if val := resp.Header.Get("x-ms-version"); val != "" { + result.Version = &val + } + if val := resp.Header.Get("Date"); val != "" { + date, err := time.Parse(time.RFC1123, val) + if err != nil { + return MessageIDClientDeleteResponse{}, err + } + result.Date = &date + } + return result, nil +} + +// Update - The Update operation was introduced with version 2011-08-18 of the Queue service API. The Update Message operation +// updates the visibility timeout of a message. You can also use this operation to +// update the contents of a message. A message must be in a format that can be included in an XML request with UTF-8 encoding, +// and the encoded message can be up to 64KB in size. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2018-03-28 +// - popReceipt - Required. Specifies the valid pop receipt value returned from an earlier call to the Get Messages or Update +// Message operation. +// - queueMessage - A Message object which can be stored in a Queue +// - options - MessageIDClientUpdateOptions contains the optional parameters for the MessageIDClient.Update method. +func (client *MessageIDClient) Update(ctx context.Context, popReceipt string, queueMessage QueueMessage, options *MessageIDClientUpdateOptions) (MessageIDClientUpdateResponse, error) { + req, err := client.updateCreateRequest(ctx, popReceipt, queueMessage, options) + if err != nil { + return MessageIDClientUpdateResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return MessageIDClientUpdateResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusNoContent) { + return MessageIDClientUpdateResponse{}, runtime.NewResponseError(resp) + } + return client.updateHandleResponse(resp) +} + +// updateCreateRequest creates the Update request. +func (client *MessageIDClient) updateCreateRequest(ctx context.Context, popReceipt string, queueMessage QueueMessage, options *MessageIDClientUpdateOptions) (*policy.Request, error) { + req, err := runtime.NewRequest(ctx, http.MethodPut, client.endpoint) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("popreceipt", popReceipt) + if options != nil && options.Visibilitytimeout != nil { + reqQP.Set("visibilitytimeout", strconv.FormatInt(int64(*options.Visibilitytimeout), 10)) + } + if options != nil && options.Timeout != nil { + reqQP.Set("timeout", strconv.FormatInt(int64(*options.Timeout), 10)) + } + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["x-ms-version"] = []string{"2018-03-28"} + if options != nil && options.RequestID != nil { + req.Raw().Header["x-ms-client-request-id"] = []string{*options.RequestID} + } + req.Raw().Header["Accept"] = []string{"application/xml"} + return req, runtime.MarshalAsXML(req, queueMessage) +} + +// updateHandleResponse handles the Update response. +func (client *MessageIDClient) updateHandleResponse(resp *http.Response) (MessageIDClientUpdateResponse, error) { + result := MessageIDClientUpdateResponse{} + if val := resp.Header.Get("x-ms-request-id"); val != "" { + result.RequestID = &val + } + if val := resp.Header.Get("x-ms-version"); val != "" { + result.Version = &val + } + if val := resp.Header.Get("Date"); val != "" { + date, err := time.Parse(time.RFC1123, val) + if err != nil { + return MessageIDClientUpdateResponse{}, err + } + result.Date = &date + } + if val := resp.Header.Get("x-ms-popreceipt"); val != "" { + result.PopReceipt = &val + } + if val := resp.Header.Get("x-ms-time-next-visible"); val != "" { + timeNextVisible, err := time.Parse(time.RFC1123, val) + if err != nil { + return MessageIDClientUpdateResponse{}, err + } + result.TimeNextVisible = &timeNextVisible + } + return result, nil +} diff --git a/sdk/storage/azqueue/internal/generated/zz_messages_client.go b/sdk/storage/azqueue/internal/generated/zz_messages_client.go new file mode 100644 index 000000000000..fd3f79ef8cfe --- /dev/null +++ b/sdk/storage/azqueue/internal/generated/zz_messages_client.go @@ -0,0 +1,299 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package generated + +import ( + "context" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "net/http" + "strconv" + "time" +) + +// MessagesClient contains the methods for the Messages group. +// Don't use this type directly, use NewMessagesClient() instead. +type MessagesClient struct { + endpoint string + pl runtime.Pipeline +} + +// NewMessagesClient creates a new instance of MessagesClient with the specified values. +// - endpoint - The URL of the service account, queue or message that is the target of the desired operation. +// - pl - the pipeline used for sending requests and handling responses. +func NewMessagesClient(endpoint string, pl runtime.Pipeline) *MessagesClient { + client := &MessagesClient{ + endpoint: endpoint, + pl: pl, + } + return client +} + +// Clear - The Clear operation deletes all messages from the specified queue. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2018-03-28 +// - options - MessagesClientClearOptions contains the optional parameters for the MessagesClient.Clear method. +func (client *MessagesClient) Clear(ctx context.Context, options *MessagesClientClearOptions) (MessagesClientClearResponse, error) { + req, err := client.clearCreateRequest(ctx, options) + if err != nil { + return MessagesClientClearResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return MessagesClientClearResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusNoContent) { + return MessagesClientClearResponse{}, runtime.NewResponseError(resp) + } + return client.clearHandleResponse(resp) +} + +// clearCreateRequest creates the Clear request. +func (client *MessagesClient) clearCreateRequest(ctx context.Context, options *MessagesClientClearOptions) (*policy.Request, error) { + req, err := runtime.NewRequest(ctx, http.MethodDelete, client.endpoint) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + if options != nil && options.Timeout != nil { + reqQP.Set("timeout", strconv.FormatInt(int64(*options.Timeout), 10)) + } + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["x-ms-version"] = []string{"2018-03-28"} + if options != nil && options.RequestID != nil { + req.Raw().Header["x-ms-client-request-id"] = []string{*options.RequestID} + } + req.Raw().Header["Accept"] = []string{"application/xml"} + return req, nil +} + +// clearHandleResponse handles the Clear response. +func (client *MessagesClient) clearHandleResponse(resp *http.Response) (MessagesClientClearResponse, error) { + result := MessagesClientClearResponse{} + if val := resp.Header.Get("x-ms-request-id"); val != "" { + result.RequestID = &val + } + if val := resp.Header.Get("x-ms-version"); val != "" { + result.Version = &val + } + if val := resp.Header.Get("Date"); val != "" { + date, err := time.Parse(time.RFC1123, val) + if err != nil { + return MessagesClientClearResponse{}, err + } + result.Date = &date + } + return result, nil +} + +// Dequeue - The Dequeue operation retrieves one or more messages from the front of the queue. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2018-03-28 +// - options - MessagesClientDequeueOptions contains the optional parameters for the MessagesClient.Dequeue method. +func (client *MessagesClient) Dequeue(ctx context.Context, options *MessagesClientDequeueOptions) (MessagesClientDequeueResponse, error) { + req, err := client.dequeueCreateRequest(ctx, options) + if err != nil { + return MessagesClientDequeueResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return MessagesClientDequeueResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return MessagesClientDequeueResponse{}, runtime.NewResponseError(resp) + } + return client.dequeueHandleResponse(resp) +} + +// dequeueCreateRequest creates the Dequeue request. +func (client *MessagesClient) dequeueCreateRequest(ctx context.Context, options *MessagesClientDequeueOptions) (*policy.Request, error) { + req, err := runtime.NewRequest(ctx, http.MethodGet, client.endpoint) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + if options != nil && options.NumberOfMessages != nil { + reqQP.Set("numofmessages", strconv.FormatInt(int64(*options.NumberOfMessages), 10)) + } + if options != nil && options.Visibilitytimeout != nil { + reqQP.Set("visibilitytimeout", strconv.FormatInt(int64(*options.Visibilitytimeout), 10)) + } + if options != nil && options.Timeout != nil { + reqQP.Set("timeout", strconv.FormatInt(int64(*options.Timeout), 10)) + } + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["x-ms-version"] = []string{"2018-03-28"} + if options != nil && options.RequestID != nil { + req.Raw().Header["x-ms-client-request-id"] = []string{*options.RequestID} + } + req.Raw().Header["Accept"] = []string{"application/xml"} + return req, nil +} + +// dequeueHandleResponse handles the Dequeue response. +func (client *MessagesClient) dequeueHandleResponse(resp *http.Response) (MessagesClientDequeueResponse, error) { + result := MessagesClientDequeueResponse{} + if val := resp.Header.Get("x-ms-request-id"); val != "" { + result.RequestID = &val + } + if val := resp.Header.Get("x-ms-version"); val != "" { + result.Version = &val + } + if val := resp.Header.Get("Date"); val != "" { + date, err := time.Parse(time.RFC1123, val) + if err != nil { + return MessagesClientDequeueResponse{}, err + } + result.Date = &date + } + if err := runtime.UnmarshalAsXML(resp, &result); err != nil { + return MessagesClientDequeueResponse{}, err + } + return result, nil +} + +// Enqueue - The Enqueue operation adds a new message to the back of the message queue. A visibility timeout can also be specified +// to make the message invisible until the visibility timeout expires. A message must +// be in a format that can be included in an XML request with UTF-8 encoding. The encoded message can be up to 64 KB in size +// for versions 2011-08-18 and newer, or 8 KB in size for previous versions. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2018-03-28 +// - queueMessage - A Message object which can be stored in a Queue +// - options - MessagesClientEnqueueOptions contains the optional parameters for the MessagesClient.Enqueue method. +func (client *MessagesClient) Enqueue(ctx context.Context, queueMessage QueueMessage, options *MessagesClientEnqueueOptions) (MessagesClientEnqueueResponse, error) { + req, err := client.enqueueCreateRequest(ctx, queueMessage, options) + if err != nil { + return MessagesClientEnqueueResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return MessagesClientEnqueueResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusCreated) { + return MessagesClientEnqueueResponse{}, runtime.NewResponseError(resp) + } + return client.enqueueHandleResponse(resp) +} + +// enqueueCreateRequest creates the Enqueue request. +func (client *MessagesClient) enqueueCreateRequest(ctx context.Context, queueMessage QueueMessage, options *MessagesClientEnqueueOptions) (*policy.Request, error) { + req, err := runtime.NewRequest(ctx, http.MethodPost, client.endpoint) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + if options != nil && options.Visibilitytimeout != nil { + reqQP.Set("visibilitytimeout", strconv.FormatInt(int64(*options.Visibilitytimeout), 10)) + } + if options != nil && options.MessageTimeToLive != nil { + reqQP.Set("messagettl", strconv.FormatInt(int64(*options.MessageTimeToLive), 10)) + } + if options != nil && options.Timeout != nil { + reqQP.Set("timeout", strconv.FormatInt(int64(*options.Timeout), 10)) + } + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["x-ms-version"] = []string{"2018-03-28"} + if options != nil && options.RequestID != nil { + req.Raw().Header["x-ms-client-request-id"] = []string{*options.RequestID} + } + req.Raw().Header["Accept"] = []string{"application/xml"} + return req, runtime.MarshalAsXML(req, queueMessage) +} + +// enqueueHandleResponse handles the Enqueue response. +func (client *MessagesClient) enqueueHandleResponse(resp *http.Response) (MessagesClientEnqueueResponse, error) { + result := MessagesClientEnqueueResponse{} + if val := resp.Header.Get("x-ms-request-id"); val != "" { + result.RequestID = &val + } + if val := resp.Header.Get("x-ms-version"); val != "" { + result.Version = &val + } + if val := resp.Header.Get("Date"); val != "" { + date, err := time.Parse(time.RFC1123, val) + if err != nil { + return MessagesClientEnqueueResponse{}, err + } + result.Date = &date + } + if err := runtime.UnmarshalAsXML(resp, &result); err != nil { + return MessagesClientEnqueueResponse{}, err + } + return result, nil +} + +// Peek - The Peek operation retrieves one or more messages from the front of the queue, but does not alter the visibility +// of the message. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2018-03-28 +// - options - MessagesClientPeekOptions contains the optional parameters for the MessagesClient.Peek method. +func (client *MessagesClient) Peek(ctx context.Context, options *MessagesClientPeekOptions) (MessagesClientPeekResponse, error) { + req, err := client.peekCreateRequest(ctx, options) + if err != nil { + return MessagesClientPeekResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return MessagesClientPeekResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return MessagesClientPeekResponse{}, runtime.NewResponseError(resp) + } + return client.peekHandleResponse(resp) +} + +// peekCreateRequest creates the Peek request. +func (client *MessagesClient) peekCreateRequest(ctx context.Context, options *MessagesClientPeekOptions) (*policy.Request, error) { + req, err := runtime.NewRequest(ctx, http.MethodGet, client.endpoint) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("peekonly", "true") + if options != nil && options.NumberOfMessages != nil { + reqQP.Set("numofmessages", strconv.FormatInt(int64(*options.NumberOfMessages), 10)) + } + if options != nil && options.Timeout != nil { + reqQP.Set("timeout", strconv.FormatInt(int64(*options.Timeout), 10)) + } + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["x-ms-version"] = []string{"2018-03-28"} + if options != nil && options.RequestID != nil { + req.Raw().Header["x-ms-client-request-id"] = []string{*options.RequestID} + } + req.Raw().Header["Accept"] = []string{"application/xml"} + return req, nil +} + +// peekHandleResponse handles the Peek response. +func (client *MessagesClient) peekHandleResponse(resp *http.Response) (MessagesClientPeekResponse, error) { + result := MessagesClientPeekResponse{} + if val := resp.Header.Get("x-ms-request-id"); val != "" { + result.RequestID = &val + } + if val := resp.Header.Get("x-ms-version"); val != "" { + result.Version = &val + } + if val := resp.Header.Get("Date"); val != "" { + date, err := time.Parse(time.RFC1123, val) + if err != nil { + return MessagesClientPeekResponse{}, err + } + result.Date = &date + } + if err := runtime.UnmarshalAsXML(resp, &result); err != nil { + return MessagesClientPeekResponse{}, err + } + return result, nil +} diff --git a/sdk/storage/azqueue/internal/generated/zz_models.go b/sdk/storage/azqueue/internal/generated/zz_models.go new file mode 100644 index 000000000000..560ae210d50d --- /dev/null +++ b/sdk/storage/azqueue/internal/generated/zz_models.go @@ -0,0 +1,430 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package generated + +import "time" + +// AccessPolicy - An Access policy +type AccessPolicy struct { + // the date-time the policy expires + Expiry *time.Time `xml:"Expiry"` + + // the permissions for the acl policy + Permission *string `xml:"Permission"` + + // the date-time the policy is active + Start *time.Time `xml:"Start"` +} + +// CORSRule - CORS is an HTTP feature that enables a web application running under one domain to access resources in another +// domain. Web browsers implement a security restriction known as same-origin policy that +// prevents a web page from calling APIs in a different domain; CORS provides a secure way to allow one domain (the origin +// domain) to call APIs in another domain +type CORSRule struct { + // REQUIRED; the request headers that the origin domain may specify on the CORS request. + AllowedHeaders *string `xml:"AllowedHeaders"` + + // REQUIRED; The methods (HTTP request verbs) that the origin domain may use for a CORS request. (comma separated) + AllowedMethods *string `xml:"AllowedMethods"` + + // REQUIRED; The origin domains that are permitted to make a request against the storage service via CORS. The origin domain + // is the domain from which the request originates. Note that the origin must be an exact + // case-sensitive match with the origin that the user age sends to the service. You can also use the wildcard character '*' + // to allow all origin domains to make requests via CORS. + AllowedOrigins *string `xml:"AllowedOrigins"` + + // REQUIRED; The response headers that may be sent in the response to the CORS request and exposed by the browser to the request + // issuer + ExposedHeaders *string `xml:"ExposedHeaders"` + + // REQUIRED; The maximum amount time that a browser should cache the preflight OPTIONS request. + MaxAgeInSeconds *int32 `xml:"MaxAgeInSeconds"` +} + +// DequeuedMessage - The object returned in the QueueMessageList array when calling Get Messages on a Queue. +type DequeuedMessage struct { + // REQUIRED; The number of times the message has been dequeued. + DequeueCount *int64 `xml:"DequeueCount"` + + // REQUIRED; The time that the Message will expire and be automatically deleted. + ExpirationTime *time.Time `xml:"ExpirationTime"` + + // REQUIRED; The time the Message was inserted into the Queue. + InsertionTime *time.Time `xml:"InsertionTime"` + + // REQUIRED; The Id of the Message. + MessageID *string `xml:"MessageId"` + + // REQUIRED; The content of the Message. + MessageText *string `xml:"MessageText"` + + // REQUIRED; This value is required to delete the Message. If deletion fails using this popreceipt then the message has been + // dequeued by another client. + PopReceipt *string `xml:"PopReceipt"` + + // REQUIRED; The time that the message will again become visible in the Queue. + TimeNextVisible *time.Time `xml:"TimeNextVisible"` +} + +// EnqueuedMessage - The object returned in the QueueMessageList array when calling Put Message on a Queue +type EnqueuedMessage struct { + // REQUIRED; The time that the Message will expire and be automatically deleted. + ExpirationTime *time.Time `xml:"ExpirationTime"` + + // REQUIRED; The time the Message was inserted into the Queue. + InsertionTime *time.Time `xml:"InsertionTime"` + + // REQUIRED; The Id of the Message. + MessageID *string `xml:"MessageId"` + + // REQUIRED; This value is required to delete the Message. If deletion fails using this popreceipt then the message has been + // dequeued by another client. + PopReceipt *string `xml:"PopReceipt"` + + // REQUIRED; The time that the message will again become visible in the Queue. + TimeNextVisible *time.Time `xml:"TimeNextVisible"` +} + +type GeoReplication struct { + // REQUIRED; A GMT date/time value, to the second. All primary writes preceding this value are guaranteed to be available + // for read operations at the secondary. Primary writes after this point in time may or may + // not be available for reads. + LastSyncTime *time.Time `xml:"LastSyncTime"` + + // REQUIRED; The status of the secondary location + Status *GeoReplicationStatus `xml:"Status"` +} + +// ListQueuesSegmentResponse - The object returned when calling List Queues on a Queue Service. +type ListQueuesSegmentResponse struct { + // REQUIRED + MaxResults *int32 `xml:"MaxResults"` + + // REQUIRED + NextMarker *string `xml:"NextMarker"` + + // REQUIRED + Prefix *string `xml:"Prefix"` + + // REQUIRED + ServiceEndpoint *string `xml:"ServiceEndpoint,attr"` + Marker *string `xml:"Marker"` + Queues []*Queue `xml:"Queues>Queue"` +} + +// Logging - Azure Analytics Logging settings. +type Logging struct { + // REQUIRED; Indicates whether all delete requests should be logged. + Delete *bool `xml:"Delete"` + + // REQUIRED; Indicates whether all read requests should be logged. + Read *bool `xml:"Read"` + + // REQUIRED; the retention policy + RetentionPolicy *RetentionPolicy `xml:"RetentionPolicy"` + + // REQUIRED; The version of Storage Analytics to configure. + Version *string `xml:"Version"` + + // REQUIRED; Indicates whether all write requests should be logged. + Write *bool `xml:"Write"` +} + +// MessageIDClientDeleteOptions contains the optional parameters for the MessageIDClient.Delete method. +type MessageIDClientDeleteOptions struct { + // Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage + // analytics logging is enabled. + RequestID *string + // The The timeout parameter is expressed in seconds. For more information, see + Timeout *int32 +} + +// MessageIDClientUpdateOptions contains the optional parameters for the MessageIDClient.Update method. +type MessageIDClientUpdateOptions struct { + // Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage + // analytics logging is enabled. + RequestID *string + // The The timeout parameter is expressed in seconds. For more information, see + Timeout *int32 + // Optional. Specifies the new visibility timeout value, in seconds, relative to server time. The default value is 30 seconds. + // A specified value must be larger than or equal to 1 second, and cannot be + // larger than 7 days, or larger than 2 hours on REST protocol versions prior to version 2011-08-18. The visibility timeout + // of a message can be set to a value later than the expiry time. + Visibilitytimeout *int32 +} + +// MessagesClientClearOptions contains the optional parameters for the MessagesClient.Clear method. +type MessagesClientClearOptions struct { + // Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage + // analytics logging is enabled. + RequestID *string + // The The timeout parameter is expressed in seconds. For more information, see + Timeout *int32 +} + +// MessagesClientDequeueOptions contains the optional parameters for the MessagesClient.Dequeue method. +type MessagesClientDequeueOptions struct { + // Optional. A nonzero integer value that specifies the number of messages to retrieve from the queue, up to a maximum of + // 32. If fewer are visible, the visible messages are returned. By default, a single + // message is retrieved from the queue with this operation. + NumberOfMessages *int32 + // Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage + // analytics logging is enabled. + RequestID *string + // The The timeout parameter is expressed in seconds. For more information, see + Timeout *int32 + // Optional. Specifies the new visibility timeout value, in seconds, relative to server time. The default value is 30 seconds. + // A specified value must be larger than or equal to 1 second, and cannot be + // larger than 7 days, or larger than 2 hours on REST protocol versions prior to version 2011-08-18. The visibility timeout + // of a message can be set to a value later than the expiry time. + Visibilitytimeout *int32 +} + +// MessagesClientEnqueueOptions contains the optional parameters for the MessagesClient.Enqueue method. +type MessagesClientEnqueueOptions struct { + // Optional. Specifies the time-to-live interval for the message, in seconds. Prior to version 2017-07-29, the maximum time-to-live + // allowed is 7 days. For version 2017-07-29 or later, the maximum + // time-to-live can be any positive number, as well as -1 indicating that the message does not expire. If this parameter is + // omitted, the default time-to-live is 7 days. + MessageTimeToLive *int32 + // Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage + // analytics logging is enabled. + RequestID *string + // The The timeout parameter is expressed in seconds. For more information, see + Timeout *int32 + // Optional. If specified, the request must be made using an x-ms-version of 2011-08-18 or later. If not specified, the default + // value is 0. Specifies the new visibility timeout value, in seconds, + // relative to server time. The new value must be larger than or equal to 0, and cannot be larger than 7 days. The visibility + // timeout of a message cannot be set to a value later than the expiry time. + // visibilitytimeout should be set to a value smaller than the time-to-live value. + Visibilitytimeout *int32 +} + +// MessagesClientPeekOptions contains the optional parameters for the MessagesClient.Peek method. +type MessagesClientPeekOptions struct { + // Optional. A nonzero integer value that specifies the number of messages to retrieve from the queue, up to a maximum of + // 32. If fewer are visible, the visible messages are returned. By default, a single + // message is retrieved from the queue with this operation. + NumberOfMessages *int32 + // Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage + // analytics logging is enabled. + RequestID *string + // The The timeout parameter is expressed in seconds. For more information, see + Timeout *int32 +} + +// Metrics - a summary of request statistics grouped by API in hour or minute aggregates for queues +type Metrics struct { + // REQUIRED; Indicates whether metrics are enabled for the Queue service. + Enabled *bool `xml:"Enabled"` + + // Indicates whether metrics should generate summary statistics for called API operations. + IncludeAPIs *bool `xml:"IncludeAPIs"` + + // the retention policy + RetentionPolicy *RetentionPolicy `xml:"RetentionPolicy"` + + // The version of Storage Analytics to configure. + Version *string `xml:"Version"` +} + +// PeekedMessage - The object returned in the QueueMessageList array when calling Peek Messages on a Queue +type PeekedMessage struct { + // REQUIRED; The number of times the message has been dequeued. + DequeueCount *int64 `xml:"DequeueCount"` + + // REQUIRED; The time that the Message will expire and be automatically deleted. + ExpirationTime *time.Time `xml:"ExpirationTime"` + + // REQUIRED; The time the Message was inserted into the Queue. + InsertionTime *time.Time `xml:"InsertionTime"` + + // REQUIRED; The Id of the Message. + MessageID *string `xml:"MessageId"` + + // REQUIRED; The content of the Message. + MessageText *string `xml:"MessageText"` +} + +// Queue - An Azure Storage Queue. +type Queue struct { + // REQUIRED; The name of the Queue. + Name *string `xml:"Name"` + + // Dictionary of + Metadata map[string]*string `xml:"Metadata"` +} + +// QueueClientCreateOptions contains the optional parameters for the QueueClient.Create method. +type QueueClientCreateOptions struct { + // Optional. Include this parameter to specify that the queue's metadata be returned as part of the response body. Note that + // metadata requested with this parameter must be stored in accordance with the + // naming restrictions imposed by the 2009-09-19 version of the Queue service. Beginning with this version, all metadata names + // must adhere to the naming conventions for C# identifiers. + Metadata map[string]*string + // Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage + // analytics logging is enabled. + RequestID *string + // The The timeout parameter is expressed in seconds. For more information, see + Timeout *int32 +} + +// QueueClientDeleteOptions contains the optional parameters for the QueueClient.Delete method. +type QueueClientDeleteOptions struct { + // Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage + // analytics logging is enabled. + RequestID *string + // The The timeout parameter is expressed in seconds. For more information, see + Timeout *int32 +} + +// QueueClientGetAccessPolicyOptions contains the optional parameters for the QueueClient.GetAccessPolicy method. +type QueueClientGetAccessPolicyOptions struct { + // Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage + // analytics logging is enabled. + RequestID *string + // The The timeout parameter is expressed in seconds. For more information, see + Timeout *int32 +} + +// QueueClientGetPropertiesOptions contains the optional parameters for the QueueClient.GetProperties method. +type QueueClientGetPropertiesOptions struct { + // Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage + // analytics logging is enabled. + RequestID *string + // The The timeout parameter is expressed in seconds. For more information, see + Timeout *int32 +} + +// QueueClientSetAccessPolicyOptions contains the optional parameters for the QueueClient.SetAccessPolicy method. +type QueueClientSetAccessPolicyOptions struct { + // Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage + // analytics logging is enabled. + RequestID *string + // The The timeout parameter is expressed in seconds. For more information, see + Timeout *int32 +} + +// QueueClientSetMetadataOptions contains the optional parameters for the QueueClient.SetMetadata method. +type QueueClientSetMetadataOptions struct { + // Optional. Include this parameter to specify that the queue's metadata be returned as part of the response body. Note that + // metadata requested with this parameter must be stored in accordance with the + // naming restrictions imposed by the 2009-09-19 version of the Queue service. Beginning with this version, all metadata names + // must adhere to the naming conventions for C# identifiers. + Metadata map[string]*string + // Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage + // analytics logging is enabled. + RequestID *string + // The The timeout parameter is expressed in seconds. For more information, see + Timeout *int32 +} + +// QueueMessage - A Message object which can be stored in a Queue +type QueueMessage struct { + // REQUIRED; The content of the message + MessageText *string `xml:"MessageText"` +} + +// RetentionPolicy - the retention policy +type RetentionPolicy struct { + // REQUIRED; Indicates whether a retention policy is enabled for the storage service + Enabled *bool `xml:"Enabled"` + + // Indicates the number of days that metrics or logging or soft-deleted data should be retained. All data older than this + // value will be deleted + Days *int32 `xml:"Days"` +} + +// ServiceClientGetPropertiesOptions contains the optional parameters for the ServiceClient.GetProperties method. +type ServiceClientGetPropertiesOptions struct { + // Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage + // analytics logging is enabled. + RequestID *string + // The The timeout parameter is expressed in seconds. For more information, see + Timeout *int32 +} + +// ServiceClientGetStatisticsOptions contains the optional parameters for the ServiceClient.GetStatistics method. +type ServiceClientGetStatisticsOptions struct { + // Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage + // analytics logging is enabled. + RequestID *string + // The The timeout parameter is expressed in seconds. For more information, see + Timeout *int32 +} + +// ServiceClientListQueuesSegmentOptions contains the optional parameters for the ServiceClient.NewListQueuesSegmentPager +// method. +type ServiceClientListQueuesSegmentOptions struct { + // Include this parameter to specify that the queues' metadata be returned as part of the response body. + Include []string + // A string value that identifies the portion of the list of queues to be returned with the next listing operation. The operation + // returns the NextMarker value within the response body if the listing + // operation did not return all queues remaining to be listed with the current page. The NextMarker value can be used as the + // value for the marker parameter in a subsequent call to request the next page + // of list items. The marker value is opaque to the client. + Marker *string + // Specifies the maximum number of queues to return. If the request does not specify maxresults, or specifies a value greater + // than 5000, the server will return up to 5000 items. Note that if the listing + // operation crosses a partition boundary, then the service will return a continuation token for retrieving the remainder + // of the results. For this reason, it is possible that the service will return + // fewer results than specified by maxresults, or than the default of 5000. + Maxresults *int32 + // Filters the results to return only queues whose name begins with the specified prefix. + Prefix *string + // Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage + // analytics logging is enabled. + RequestID *string + // The The timeout parameter is expressed in seconds. For more information, see + Timeout *int32 +} + +// ServiceClientSetPropertiesOptions contains the optional parameters for the ServiceClient.SetProperties method. +type ServiceClientSetPropertiesOptions struct { + // Provides a client-generated, opaque value with a 1 KB character limit that is recorded in the analytics logs when storage + // analytics logging is enabled. + RequestID *string + // The The timeout parameter is expressed in seconds. For more information, see + Timeout *int32 +} + +// SignedIdentifier - signed identifier +type SignedIdentifier struct { + // REQUIRED; The access policy + AccessPolicy *AccessPolicy `xml:"AccessPolicy"` + + // REQUIRED; a unique id + ID *string `xml:"Id"` +} + +type StorageError struct { + Message *string `json:"Message,omitempty"` +} + +// StorageServiceProperties - Storage Service Properties. +type StorageServiceProperties struct { + // The set of CORS rules. + CORS []*CORSRule `xml:"Cors>CorsRule"` + + // A summary of request statistics grouped by API in hourly aggregates for queues + HourMetrics *Metrics `xml:"HourMetrics"` + + // Azure Analytics Logging settings + Logging *Logging `xml:"Logging"` + + // a summary of request statistics grouped by API in minute aggregates for queues + MinuteMetrics *Metrics `xml:"MinuteMetrics"` +} + +// StorageServiceStats - Stats for the storage service. +type StorageServiceStats struct { + // Geo-Replication information for the Secondary Storage Service + GeoReplication *GeoReplication `xml:"GeoReplication"` +} diff --git a/sdk/storage/azqueue/internal/generated/zz_models_serde.go b/sdk/storage/azqueue/internal/generated/zz_models_serde.go new file mode 100644 index 000000000000..b3db14904ead --- /dev/null +++ b/sdk/storage/azqueue/internal/generated/zz_models_serde.go @@ -0,0 +1,281 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package generated + +import ( + "encoding/json" + "encoding/xml" + "fmt" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "reflect" + "time" +) + +// MarshalXML implements the xml.Marshaller interface for type AccessPolicy. +func (a AccessPolicy) MarshalXML(enc *xml.Encoder, start xml.StartElement) error { + type alias AccessPolicy + aux := &struct { + *alias + Expiry *timeRFC3339 `xml:"Expiry"` + Start *timeRFC3339 `xml:"Start"` + }{ + alias: (*alias)(&a), + Expiry: (*timeRFC3339)(a.Expiry), + Start: (*timeRFC3339)(a.Start), + } + return enc.EncodeElement(aux, start) +} + +// UnmarshalXML implements the xml.Unmarshaller interface for type AccessPolicy. +func (a *AccessPolicy) UnmarshalXML(dec *xml.Decoder, start xml.StartElement) error { + type alias AccessPolicy + aux := &struct { + *alias + Expiry *timeRFC3339 `xml:"Expiry"` + Start *timeRFC3339 `xml:"Start"` + }{ + alias: (*alias)(a), + } + if err := dec.DecodeElement(aux, &start); err != nil { + return err + } + a.Expiry = (*time.Time)(aux.Expiry) + a.Start = (*time.Time)(aux.Start) + return nil +} + +// MarshalXML implements the xml.Marshaller interface for type DequeuedMessage. +func (d DequeuedMessage) MarshalXML(enc *xml.Encoder, start xml.StartElement) error { + type alias DequeuedMessage + aux := &struct { + *alias + ExpirationTime *timeRFC1123 `xml:"ExpirationTime"` + InsertionTime *timeRFC1123 `xml:"InsertionTime"` + TimeNextVisible *timeRFC1123 `xml:"TimeNextVisible"` + }{ + alias: (*alias)(&d), + ExpirationTime: (*timeRFC1123)(d.ExpirationTime), + InsertionTime: (*timeRFC1123)(d.InsertionTime), + TimeNextVisible: (*timeRFC1123)(d.TimeNextVisible), + } + return enc.EncodeElement(aux, start) +} + +// UnmarshalXML implements the xml.Unmarshaller interface for type DequeuedMessage. +func (d *DequeuedMessage) UnmarshalXML(dec *xml.Decoder, start xml.StartElement) error { + type alias DequeuedMessage + aux := &struct { + *alias + ExpirationTime *timeRFC1123 `xml:"ExpirationTime"` + InsertionTime *timeRFC1123 `xml:"InsertionTime"` + TimeNextVisible *timeRFC1123 `xml:"TimeNextVisible"` + }{ + alias: (*alias)(d), + } + if err := dec.DecodeElement(aux, &start); err != nil { + return err + } + d.ExpirationTime = (*time.Time)(aux.ExpirationTime) + d.InsertionTime = (*time.Time)(aux.InsertionTime) + d.TimeNextVisible = (*time.Time)(aux.TimeNextVisible) + return nil +} + +// MarshalXML implements the xml.Marshaller interface for type EnqueuedMessage. +func (e EnqueuedMessage) MarshalXML(enc *xml.Encoder, start xml.StartElement) error { + type alias EnqueuedMessage + aux := &struct { + *alias + ExpirationTime *timeRFC1123 `xml:"ExpirationTime"` + InsertionTime *timeRFC1123 `xml:"InsertionTime"` + TimeNextVisible *timeRFC1123 `xml:"TimeNextVisible"` + }{ + alias: (*alias)(&e), + ExpirationTime: (*timeRFC1123)(e.ExpirationTime), + InsertionTime: (*timeRFC1123)(e.InsertionTime), + TimeNextVisible: (*timeRFC1123)(e.TimeNextVisible), + } + return enc.EncodeElement(aux, start) +} + +// UnmarshalXML implements the xml.Unmarshaller interface for type EnqueuedMessage. +func (e *EnqueuedMessage) UnmarshalXML(dec *xml.Decoder, start xml.StartElement) error { + type alias EnqueuedMessage + aux := &struct { + *alias + ExpirationTime *timeRFC1123 `xml:"ExpirationTime"` + InsertionTime *timeRFC1123 `xml:"InsertionTime"` + TimeNextVisible *timeRFC1123 `xml:"TimeNextVisible"` + }{ + alias: (*alias)(e), + } + if err := dec.DecodeElement(aux, &start); err != nil { + return err + } + e.ExpirationTime = (*time.Time)(aux.ExpirationTime) + e.InsertionTime = (*time.Time)(aux.InsertionTime) + e.TimeNextVisible = (*time.Time)(aux.TimeNextVisible) + return nil +} + +// MarshalXML implements the xml.Marshaller interface for type GeoReplication. +func (g GeoReplication) MarshalXML(enc *xml.Encoder, start xml.StartElement) error { + type alias GeoReplication + aux := &struct { + *alias + LastSyncTime *timeRFC1123 `xml:"LastSyncTime"` + }{ + alias: (*alias)(&g), + LastSyncTime: (*timeRFC1123)(g.LastSyncTime), + } + return enc.EncodeElement(aux, start) +} + +// UnmarshalXML implements the xml.Unmarshaller interface for type GeoReplication. +func (g *GeoReplication) UnmarshalXML(dec *xml.Decoder, start xml.StartElement) error { + type alias GeoReplication + aux := &struct { + *alias + LastSyncTime *timeRFC1123 `xml:"LastSyncTime"` + }{ + alias: (*alias)(g), + } + if err := dec.DecodeElement(aux, &start); err != nil { + return err + } + g.LastSyncTime = (*time.Time)(aux.LastSyncTime) + return nil +} + +// MarshalXML implements the xml.Marshaller interface for type ListQueuesSegmentResponse. +func (l ListQueuesSegmentResponse) MarshalXML(enc *xml.Encoder, start xml.StartElement) error { + type alias ListQueuesSegmentResponse + aux := &struct { + *alias + Queues *[]*Queue `xml:"Queues>Queue"` + }{ + alias: (*alias)(&l), + } + if l.Queues != nil { + aux.Queues = &l.Queues + } + return enc.EncodeElement(aux, start) +} + +// MarshalXML implements the xml.Marshaller interface for type PeekedMessage. +func (p PeekedMessage) MarshalXML(enc *xml.Encoder, start xml.StartElement) error { + type alias PeekedMessage + aux := &struct { + *alias + ExpirationTime *timeRFC1123 `xml:"ExpirationTime"` + InsertionTime *timeRFC1123 `xml:"InsertionTime"` + }{ + alias: (*alias)(&p), + ExpirationTime: (*timeRFC1123)(p.ExpirationTime), + InsertionTime: (*timeRFC1123)(p.InsertionTime), + } + return enc.EncodeElement(aux, start) +} + +// UnmarshalXML implements the xml.Unmarshaller interface for type PeekedMessage. +func (p *PeekedMessage) UnmarshalXML(dec *xml.Decoder, start xml.StartElement) error { + type alias PeekedMessage + aux := &struct { + *alias + ExpirationTime *timeRFC1123 `xml:"ExpirationTime"` + InsertionTime *timeRFC1123 `xml:"InsertionTime"` + }{ + alias: (*alias)(p), + } + if err := dec.DecodeElement(aux, &start); err != nil { + return err + } + p.ExpirationTime = (*time.Time)(aux.ExpirationTime) + p.InsertionTime = (*time.Time)(aux.InsertionTime) + return nil +} + +// UnmarshalXML implements the xml.Unmarshaller interface for type Queue. +func (q *Queue) UnmarshalXML(dec *xml.Decoder, start xml.StartElement) error { + type alias Queue + aux := &struct { + *alias + Metadata additionalProperties `xml:"Metadata"` + }{ + alias: (*alias)(q), + } + if err := dec.DecodeElement(aux, &start); err != nil { + return err + } + q.Metadata = (map[string]*string)(aux.Metadata) + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type StorageError. +func (s StorageError) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "Message", s.Message) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type StorageError. +func (s *StorageError) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "Message": + err = unpopulate(val, "Message", &s.Message) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalXML implements the xml.Marshaller interface for type StorageServiceProperties. +func (s StorageServiceProperties) MarshalXML(enc *xml.Encoder, start xml.StartElement) error { + type alias StorageServiceProperties + aux := &struct { + *alias + CORS *[]*CORSRule `xml:"Cors>CorsRule"` + }{ + alias: (*alias)(&s), + } + if s.CORS != nil { + aux.CORS = &s.CORS + } + return enc.EncodeElement(aux, start) +} + +func populate(m map[string]any, k string, v any) { + if v == nil { + return + } else if azcore.IsNullValue(v) { + m[k] = nil + } else if !reflect.ValueOf(v).IsNil() { + m[k] = v + } +} + +func unpopulate(data json.RawMessage, fn string, v any) error { + if data == nil { + return nil + } + if err := json.Unmarshal(data, v); err != nil { + return fmt.Errorf("struct field %s: %v", fn, err) + } + return nil +} diff --git a/sdk/storage/azqueue/internal/generated/zz_queue_client.go b/sdk/storage/azqueue/internal/generated/zz_queue_client.go new file mode 100644 index 000000000000..7fc10f7f2fbd --- /dev/null +++ b/sdk/storage/azqueue/internal/generated/zz_queue_client.go @@ -0,0 +1,432 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package generated + +import ( + "context" + "encoding/xml" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "net/http" + "strconv" + "strings" + "time" +) + +// QueueClient contains the methods for the Queue group. +// Don't use this type directly, use NewQueueClient() instead. +type QueueClient struct { + endpoint string + pl runtime.Pipeline +} + +// NewQueueClient creates a new instance of QueueClient with the specified values. +// - endpoint - The URL of the service account, queue or message that is the target of the desired operation. +// - pl - the pipeline used for sending requests and handling responses. +func NewQueueClient(endpoint string, pl runtime.Pipeline) *QueueClient { + client := &QueueClient{ + endpoint: endpoint, + pl: pl, + } + return client +} + +// Create - creates a new queue under the given account. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2018-03-28 +// - options - QueueClientCreateOptions contains the optional parameters for the QueueClient.Create method. +func (client *QueueClient) Create(ctx context.Context, options *QueueClientCreateOptions) (QueueClientCreateResponse, error) { + req, err := client.createCreateRequest(ctx, options) + if err != nil { + return QueueClientCreateResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return QueueClientCreateResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusCreated, http.StatusNoContent) { + return QueueClientCreateResponse{}, runtime.NewResponseError(resp) + } + return client.createHandleResponse(resp) +} + +// createCreateRequest creates the Create request. +func (client *QueueClient) createCreateRequest(ctx context.Context, options *QueueClientCreateOptions) (*policy.Request, error) { + req, err := runtime.NewRequest(ctx, http.MethodPut, client.endpoint) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + if options != nil && options.Timeout != nil { + reqQP.Set("timeout", strconv.FormatInt(int64(*options.Timeout), 10)) + } + req.Raw().URL.RawQuery = reqQP.Encode() + if options != nil && options.Metadata != nil { + for k, v := range options.Metadata { + if v != nil { + req.Raw().Header["x-ms-meta-"+k] = []string{*v} + } + } + } + req.Raw().Header["x-ms-version"] = []string{"2018-03-28"} + if options != nil && options.RequestID != nil { + req.Raw().Header["x-ms-client-request-id"] = []string{*options.RequestID} + } + req.Raw().Header["Accept"] = []string{"application/xml"} + return req, nil +} + +// createHandleResponse handles the Create response. +func (client *QueueClient) createHandleResponse(resp *http.Response) (QueueClientCreateResponse, error) { + result := QueueClientCreateResponse{} + if val := resp.Header.Get("x-ms-request-id"); val != "" { + result.RequestID = &val + } + if val := resp.Header.Get("x-ms-version"); val != "" { + result.Version = &val + } + if val := resp.Header.Get("Date"); val != "" { + date, err := time.Parse(time.RFC1123, val) + if err != nil { + return QueueClientCreateResponse{}, err + } + result.Date = &date + } + return result, nil +} + +// Delete - operation permanently deletes the specified queue +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2018-03-28 +// - options - QueueClientDeleteOptions contains the optional parameters for the QueueClient.Delete method. +func (client *QueueClient) Delete(ctx context.Context, options *QueueClientDeleteOptions) (QueueClientDeleteResponse, error) { + req, err := client.deleteCreateRequest(ctx, options) + if err != nil { + return QueueClientDeleteResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return QueueClientDeleteResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusNoContent) { + return QueueClientDeleteResponse{}, runtime.NewResponseError(resp) + } + return client.deleteHandleResponse(resp) +} + +// deleteCreateRequest creates the Delete request. +func (client *QueueClient) deleteCreateRequest(ctx context.Context, options *QueueClientDeleteOptions) (*policy.Request, error) { + req, err := runtime.NewRequest(ctx, http.MethodDelete, client.endpoint) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + if options != nil && options.Timeout != nil { + reqQP.Set("timeout", strconv.FormatInt(int64(*options.Timeout), 10)) + } + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["x-ms-version"] = []string{"2018-03-28"} + if options != nil && options.RequestID != nil { + req.Raw().Header["x-ms-client-request-id"] = []string{*options.RequestID} + } + req.Raw().Header["Accept"] = []string{"application/xml"} + return req, nil +} + +// deleteHandleResponse handles the Delete response. +func (client *QueueClient) deleteHandleResponse(resp *http.Response) (QueueClientDeleteResponse, error) { + result := QueueClientDeleteResponse{} + if val := resp.Header.Get("x-ms-request-id"); val != "" { + result.RequestID = &val + } + if val := resp.Header.Get("x-ms-version"); val != "" { + result.Version = &val + } + if val := resp.Header.Get("Date"); val != "" { + date, err := time.Parse(time.RFC1123, val) + if err != nil { + return QueueClientDeleteResponse{}, err + } + result.Date = &date + } + return result, nil +} + +// GetAccessPolicy - returns details about any stored access policies specified on the queue that may be used with Shared +// Access Signatures. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2018-03-28 +// - options - QueueClientGetAccessPolicyOptions contains the optional parameters for the QueueClient.GetAccessPolicy method. +func (client *QueueClient) GetAccessPolicy(ctx context.Context, options *QueueClientGetAccessPolicyOptions) (QueueClientGetAccessPolicyResponse, error) { + req, err := client.getAccessPolicyCreateRequest(ctx, options) + if err != nil { + return QueueClientGetAccessPolicyResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return QueueClientGetAccessPolicyResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return QueueClientGetAccessPolicyResponse{}, runtime.NewResponseError(resp) + } + return client.getAccessPolicyHandleResponse(resp) +} + +// getAccessPolicyCreateRequest creates the GetAccessPolicy request. +func (client *QueueClient) getAccessPolicyCreateRequest(ctx context.Context, options *QueueClientGetAccessPolicyOptions) (*policy.Request, error) { + req, err := runtime.NewRequest(ctx, http.MethodGet, client.endpoint) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("comp", "acl") + if options != nil && options.Timeout != nil { + reqQP.Set("timeout", strconv.FormatInt(int64(*options.Timeout), 10)) + } + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["x-ms-version"] = []string{"2018-03-28"} + if options != nil && options.RequestID != nil { + req.Raw().Header["x-ms-client-request-id"] = []string{*options.RequestID} + } + req.Raw().Header["Accept"] = []string{"application/xml"} + return req, nil +} + +// getAccessPolicyHandleResponse handles the GetAccessPolicy response. +func (client *QueueClient) getAccessPolicyHandleResponse(resp *http.Response) (QueueClientGetAccessPolicyResponse, error) { + result := QueueClientGetAccessPolicyResponse{} + if val := resp.Header.Get("x-ms-request-id"); val != "" { + result.RequestID = &val + } + if val := resp.Header.Get("x-ms-version"); val != "" { + result.Version = &val + } + if val := resp.Header.Get("Date"); val != "" { + date, err := time.Parse(time.RFC1123, val) + if err != nil { + return QueueClientGetAccessPolicyResponse{}, err + } + result.Date = &date + } + if err := runtime.UnmarshalAsXML(resp, &result); err != nil { + return QueueClientGetAccessPolicyResponse{}, err + } + return result, nil +} + +// GetProperties - Retrieves user-defined metadata and queue properties on the specified queue. Metadata is associated with +// the queue as name-values pairs. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2018-03-28 +// - options - QueueClientGetPropertiesOptions contains the optional parameters for the QueueClient.GetProperties method. +func (client *QueueClient) GetProperties(ctx context.Context, options *QueueClientGetPropertiesOptions) (QueueClientGetPropertiesResponse, error) { + req, err := client.getPropertiesCreateRequest(ctx, options) + if err != nil { + return QueueClientGetPropertiesResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return QueueClientGetPropertiesResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return QueueClientGetPropertiesResponse{}, runtime.NewResponseError(resp) + } + return client.getPropertiesHandleResponse(resp) +} + +// getPropertiesCreateRequest creates the GetProperties request. +func (client *QueueClient) getPropertiesCreateRequest(ctx context.Context, options *QueueClientGetPropertiesOptions) (*policy.Request, error) { + req, err := runtime.NewRequest(ctx, http.MethodGet, client.endpoint) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("comp", "metadata") + if options != nil && options.Timeout != nil { + reqQP.Set("timeout", strconv.FormatInt(int64(*options.Timeout), 10)) + } + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["x-ms-version"] = []string{"2018-03-28"} + if options != nil && options.RequestID != nil { + req.Raw().Header["x-ms-client-request-id"] = []string{*options.RequestID} + } + req.Raw().Header["Accept"] = []string{"application/xml"} + return req, nil +} + +// getPropertiesHandleResponse handles the GetProperties response. +func (client *QueueClient) getPropertiesHandleResponse(resp *http.Response) (QueueClientGetPropertiesResponse, error) { + result := QueueClientGetPropertiesResponse{} + for hh := range resp.Header { + if len(hh) > len("x-ms-meta-") && strings.EqualFold(hh[:len("x-ms-meta-")], "x-ms-meta-") { + if result.Metadata == nil { + result.Metadata = map[string]*string{} + } + result.Metadata[hh[len("x-ms-meta-"):]] = to.Ptr(resp.Header.Get(hh)) + } + } + if val := resp.Header.Get("x-ms-approximate-messages-count"); val != "" { + approximateMessagesCount32, err := strconv.ParseInt(val, 10, 32) + approximateMessagesCount := int32(approximateMessagesCount32) + if err != nil { + return QueueClientGetPropertiesResponse{}, err + } + result.ApproximateMessagesCount = &approximateMessagesCount + } + if val := resp.Header.Get("x-ms-request-id"); val != "" { + result.RequestID = &val + } + if val := resp.Header.Get("x-ms-version"); val != "" { + result.Version = &val + } + if val := resp.Header.Get("Date"); val != "" { + date, err := time.Parse(time.RFC1123, val) + if err != nil { + return QueueClientGetPropertiesResponse{}, err + } + result.Date = &date + } + return result, nil +} + +// SetAccessPolicy - sets stored access policies for the queue that may be used with Shared Access Signatures +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2018-03-28 +// - queueACL - the acls for the queue +// - options - QueueClientSetAccessPolicyOptions contains the optional parameters for the QueueClient.SetAccessPolicy method. +func (client *QueueClient) SetAccessPolicy(ctx context.Context, queueACL []*SignedIdentifier, options *QueueClientSetAccessPolicyOptions) (QueueClientSetAccessPolicyResponse, error) { + req, err := client.setAccessPolicyCreateRequest(ctx, queueACL, options) + if err != nil { + return QueueClientSetAccessPolicyResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return QueueClientSetAccessPolicyResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusNoContent) { + return QueueClientSetAccessPolicyResponse{}, runtime.NewResponseError(resp) + } + return client.setAccessPolicyHandleResponse(resp) +} + +// setAccessPolicyCreateRequest creates the SetAccessPolicy request. +func (client *QueueClient) setAccessPolicyCreateRequest(ctx context.Context, queueACL []*SignedIdentifier, options *QueueClientSetAccessPolicyOptions) (*policy.Request, error) { + req, err := runtime.NewRequest(ctx, http.MethodPut, client.endpoint) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("comp", "acl") + if options != nil && options.Timeout != nil { + reqQP.Set("timeout", strconv.FormatInt(int64(*options.Timeout), 10)) + } + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["x-ms-version"] = []string{"2018-03-28"} + if options != nil && options.RequestID != nil { + req.Raw().Header["x-ms-client-request-id"] = []string{*options.RequestID} + } + req.Raw().Header["Accept"] = []string{"application/xml"} + type wrapper struct { + XMLName xml.Name `xml:"SignedIdentifiers"` + QueueACL *[]*SignedIdentifier `xml:"SignedIdentifier"` + } + return req, runtime.MarshalAsXML(req, wrapper{QueueACL: &queueACL}) +} + +// setAccessPolicyHandleResponse handles the SetAccessPolicy response. +func (client *QueueClient) setAccessPolicyHandleResponse(resp *http.Response) (QueueClientSetAccessPolicyResponse, error) { + result := QueueClientSetAccessPolicyResponse{} + if val := resp.Header.Get("x-ms-request-id"); val != "" { + result.RequestID = &val + } + if val := resp.Header.Get("x-ms-version"); val != "" { + result.Version = &val + } + if val := resp.Header.Get("Date"); val != "" { + date, err := time.Parse(time.RFC1123, val) + if err != nil { + return QueueClientSetAccessPolicyResponse{}, err + } + result.Date = &date + } + return result, nil +} + +// SetMetadata - sets user-defined metadata on the specified queue. Metadata is associated with the queue as name-value pairs. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2018-03-28 +// - options - QueueClientSetMetadataOptions contains the optional parameters for the QueueClient.SetMetadata method. +func (client *QueueClient) SetMetadata(ctx context.Context, options *QueueClientSetMetadataOptions) (QueueClientSetMetadataResponse, error) { + req, err := client.setMetadataCreateRequest(ctx, options) + if err != nil { + return QueueClientSetMetadataResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return QueueClientSetMetadataResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusNoContent) { + return QueueClientSetMetadataResponse{}, runtime.NewResponseError(resp) + } + return client.setMetadataHandleResponse(resp) +} + +// setMetadataCreateRequest creates the SetMetadata request. +func (client *QueueClient) setMetadataCreateRequest(ctx context.Context, options *QueueClientSetMetadataOptions) (*policy.Request, error) { + req, err := runtime.NewRequest(ctx, http.MethodPut, client.endpoint) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("comp", "metadata") + if options != nil && options.Timeout != nil { + reqQP.Set("timeout", strconv.FormatInt(int64(*options.Timeout), 10)) + } + req.Raw().URL.RawQuery = reqQP.Encode() + if options != nil && options.Metadata != nil { + for k, v := range options.Metadata { + if v != nil { + req.Raw().Header["x-ms-meta-"+k] = []string{*v} + } + } + } + req.Raw().Header["x-ms-version"] = []string{"2018-03-28"} + if options != nil && options.RequestID != nil { + req.Raw().Header["x-ms-client-request-id"] = []string{*options.RequestID} + } + req.Raw().Header["Accept"] = []string{"application/xml"} + return req, nil +} + +// setMetadataHandleResponse handles the SetMetadata response. +func (client *QueueClient) setMetadataHandleResponse(resp *http.Response) (QueueClientSetMetadataResponse, error) { + result := QueueClientSetMetadataResponse{} + if val := resp.Header.Get("x-ms-request-id"); val != "" { + result.RequestID = &val + } + if val := resp.Header.Get("x-ms-version"); val != "" { + result.Version = &val + } + if val := resp.Header.Get("Date"); val != "" { + date, err := time.Parse(time.RFC1123, val) + if err != nil { + return QueueClientSetMetadataResponse{}, err + } + result.Date = &date + } + return result, nil +} diff --git a/sdk/storage/azqueue/internal/generated/zz_response_types.go b/sdk/storage/azqueue/internal/generated/zz_response_types.go new file mode 100644 index 000000000000..a5262814996c --- /dev/null +++ b/sdk/storage/azqueue/internal/generated/zz_response_types.go @@ -0,0 +1,225 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package generated + +import "time" + +// MessageIDClientDeleteResponse contains the response from method MessageIDClient.Delete. +type MessageIDClientDeleteResponse struct { + // Date contains the information returned from the Date header response. + Date *time.Time + + // RequestID contains the information returned from the x-ms-request-id header response. + RequestID *string + + // Version contains the information returned from the x-ms-version header response. + Version *string +} + +// MessageIDClientUpdateResponse contains the response from method MessageIDClient.Update. +type MessageIDClientUpdateResponse struct { + // Date contains the information returned from the Date header response. + Date *time.Time + + // PopReceipt contains the information returned from the x-ms-popreceipt header response. + PopReceipt *string + + // RequestID contains the information returned from the x-ms-request-id header response. + RequestID *string + + // TimeNextVisible contains the information returned from the x-ms-time-next-visible header response. + TimeNextVisible *time.Time + + // Version contains the information returned from the x-ms-version header response. + Version *string +} + +// MessagesClientClearResponse contains the response from method MessagesClient.Clear. +type MessagesClientClearResponse struct { + // Date contains the information returned from the Date header response. + Date *time.Time + + // RequestID contains the information returned from the x-ms-request-id header response. + RequestID *string + + // Version contains the information returned from the x-ms-version header response. + Version *string +} + +// MessagesClientDequeueResponse contains the response from method MessagesClient.Dequeue. +type MessagesClientDequeueResponse struct { + // Date contains the information returned from the Date header response. + Date *time.Time `xml:"Date"` + + // The object returned when calling Get Messages on a Queue + Messages []*DequeuedMessage `xml:"QueueMessage"` + + // RequestID contains the information returned from the x-ms-request-id header response. + RequestID *string `xml:"RequestID"` + + // Version contains the information returned from the x-ms-version header response. + Version *string `xml:"Version"` +} + +// MessagesClientEnqueueResponse contains the response from method MessagesClient.Enqueue. +type MessagesClientEnqueueResponse struct { + // Date contains the information returned from the Date header response. + Date *time.Time `xml:"Date"` + + // The object returned when calling Put Message on a Queue + Messages []*EnqueuedMessage `xml:"QueueMessage"` + + // RequestID contains the information returned from the x-ms-request-id header response. + RequestID *string `xml:"RequestID"` + + // Version contains the information returned from the x-ms-version header response. + Version *string `xml:"Version"` +} + +// MessagesClientPeekResponse contains the response from method MessagesClient.Peek. +type MessagesClientPeekResponse struct { + // Date contains the information returned from the Date header response. + Date *time.Time `xml:"Date"` + + // The object returned when calling Peek Messages on a Queue + Messages []*PeekedMessage `xml:"QueueMessage"` + + // RequestID contains the information returned from the x-ms-request-id header response. + RequestID *string `xml:"RequestID"` + + // Version contains the information returned from the x-ms-version header response. + Version *string `xml:"Version"` +} + +// QueueClientCreateResponse contains the response from method QueueClient.Create. +type QueueClientCreateResponse struct { + // Date contains the information returned from the Date header response. + Date *time.Time + + // RequestID contains the information returned from the x-ms-request-id header response. + RequestID *string + + // Version contains the information returned from the x-ms-version header response. + Version *string +} + +// QueueClientDeleteResponse contains the response from method QueueClient.Delete. +type QueueClientDeleteResponse struct { + // Date contains the information returned from the Date header response. + Date *time.Time + + // RequestID contains the information returned from the x-ms-request-id header response. + RequestID *string + + // Version contains the information returned from the x-ms-version header response. + Version *string +} + +// QueueClientGetAccessPolicyResponse contains the response from method QueueClient.GetAccessPolicy. +type QueueClientGetAccessPolicyResponse struct { + // Date contains the information returned from the Date header response. + Date *time.Time `xml:"Date"` + + // RequestID contains the information returned from the x-ms-request-id header response. + RequestID *string `xml:"RequestID"` + + // a collection of signed identifiers + SignedIdentifiers []*SignedIdentifier `xml:"SignedIdentifier"` + + // Version contains the information returned from the x-ms-version header response. + Version *string `xml:"Version"` +} + +// QueueClientGetPropertiesResponse contains the response from method QueueClient.GetProperties. +type QueueClientGetPropertiesResponse struct { + // ApproximateMessagesCount contains the information returned from the x-ms-approximate-messages-count header response. + ApproximateMessagesCount *int32 + + // Date contains the information returned from the Date header response. + Date *time.Time + + // Metadata contains the information returned from the x-ms-meta header response. + Metadata map[string]*string + + // RequestID contains the information returned from the x-ms-request-id header response. + RequestID *string + + // Version contains the information returned from the x-ms-version header response. + Version *string +} + +// QueueClientSetAccessPolicyResponse contains the response from method QueueClient.SetAccessPolicy. +type QueueClientSetAccessPolicyResponse struct { + // Date contains the information returned from the Date header response. + Date *time.Time + + // RequestID contains the information returned from the x-ms-request-id header response. + RequestID *string + + // Version contains the information returned from the x-ms-version header response. + Version *string +} + +// QueueClientSetMetadataResponse contains the response from method QueueClient.SetMetadata. +type QueueClientSetMetadataResponse struct { + // Date contains the information returned from the Date header response. + Date *time.Time + + // RequestID contains the information returned from the x-ms-request-id header response. + RequestID *string + + // Version contains the information returned from the x-ms-version header response. + Version *string +} + +// ServiceClientGetPropertiesResponse contains the response from method ServiceClient.GetProperties. +type ServiceClientGetPropertiesResponse struct { + StorageServiceProperties + // RequestID contains the information returned from the x-ms-request-id header response. + RequestID *string `xml:"RequestID"` + + // Version contains the information returned from the x-ms-version header response. + Version *string `xml:"Version"` +} + +// ServiceClientGetStatisticsResponse contains the response from method ServiceClient.GetStatistics. +type ServiceClientGetStatisticsResponse struct { + StorageServiceStats + // Date contains the information returned from the Date header response. + Date *time.Time `xml:"Date"` + + // RequestID contains the information returned from the x-ms-request-id header response. + RequestID *string `xml:"RequestID"` + + // Version contains the information returned from the x-ms-version header response. + Version *string `xml:"Version"` +} + +// ServiceClientListQueuesSegmentResponse contains the response from method ServiceClient.NewListQueuesSegmentPager. +type ServiceClientListQueuesSegmentResponse struct { + ListQueuesSegmentResponse + // Date contains the information returned from the Date header response. + Date *time.Time `xml:"Date"` + + // RequestID contains the information returned from the x-ms-request-id header response. + RequestID *string `xml:"RequestID"` + + // Version contains the information returned from the x-ms-version header response. + Version *string `xml:"Version"` +} + +// ServiceClientSetPropertiesResponse contains the response from method ServiceClient.SetProperties. +type ServiceClientSetPropertiesResponse struct { + // RequestID contains the information returned from the x-ms-request-id header response. + RequestID *string + + // Version contains the information returned from the x-ms-version header response. + Version *string +} diff --git a/sdk/storage/azqueue/internal/generated/zz_service_client.go b/sdk/storage/azqueue/internal/generated/zz_service_client.go new file mode 100644 index 000000000000..cc1e4c713d70 --- /dev/null +++ b/sdk/storage/azqueue/internal/generated/zz_service_client.go @@ -0,0 +1,276 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package generated + +import ( + "context" + "fmt" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "net/http" + "strconv" + "strings" + "time" +) + +// ServiceClient contains the methods for the Service group. +// Don't use this type directly, use NewServiceClient() instead. +type ServiceClient struct { + endpoint string + pl runtime.Pipeline +} + +// NewServiceClient creates a new instance of ServiceClient with the specified values. +// - endpoint - The URL of the service account, queue or message that is the target of the desired operation. +// - pl - the pipeline used for sending requests and handling responses. +func NewServiceClient(endpoint string, pl runtime.Pipeline) *ServiceClient { + client := &ServiceClient{ + endpoint: endpoint, + pl: pl, + } + return client +} + +// GetProperties - gets the properties of a storage account's Queue service, including properties for Storage Analytics and +// CORS (Cross-Origin Resource Sharing) rules. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2018-03-28 +// - options - ServiceClientGetPropertiesOptions contains the optional parameters for the ServiceClient.GetProperties method. +func (client *ServiceClient) GetProperties(ctx context.Context, options *ServiceClientGetPropertiesOptions) (ServiceClientGetPropertiesResponse, error) { + req, err := client.getPropertiesCreateRequest(ctx, options) + if err != nil { + return ServiceClientGetPropertiesResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return ServiceClientGetPropertiesResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return ServiceClientGetPropertiesResponse{}, runtime.NewResponseError(resp) + } + return client.getPropertiesHandleResponse(resp) +} + +// getPropertiesCreateRequest creates the GetProperties request. +func (client *ServiceClient) getPropertiesCreateRequest(ctx context.Context, options *ServiceClientGetPropertiesOptions) (*policy.Request, error) { + req, err := runtime.NewRequest(ctx, http.MethodGet, client.endpoint) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("restype", "service") + reqQP.Set("comp", "properties") + if options != nil && options.Timeout != nil { + reqQP.Set("timeout", strconv.FormatInt(int64(*options.Timeout), 10)) + } + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["x-ms-version"] = []string{"2018-03-28"} + if options != nil && options.RequestID != nil { + req.Raw().Header["x-ms-client-request-id"] = []string{*options.RequestID} + } + req.Raw().Header["Accept"] = []string{"application/xml"} + return req, nil +} + +// getPropertiesHandleResponse handles the GetProperties response. +func (client *ServiceClient) getPropertiesHandleResponse(resp *http.Response) (ServiceClientGetPropertiesResponse, error) { + result := ServiceClientGetPropertiesResponse{} + if val := resp.Header.Get("x-ms-request-id"); val != "" { + result.RequestID = &val + } + if val := resp.Header.Get("x-ms-version"); val != "" { + result.Version = &val + } + if err := runtime.UnmarshalAsXML(resp, &result.StorageServiceProperties); err != nil { + return ServiceClientGetPropertiesResponse{}, err + } + return result, nil +} + +// GetStatistics - Retrieves statistics related to replication for the Queue service. It is only available on the secondary +// location endpoint when read-access geo-redundant replication is enabled for the storage +// account. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2018-03-28 +// - options - ServiceClientGetStatisticsOptions contains the optional parameters for the ServiceClient.GetStatistics method. +func (client *ServiceClient) GetStatistics(ctx context.Context, options *ServiceClientGetStatisticsOptions) (ServiceClientGetStatisticsResponse, error) { + req, err := client.getStatisticsCreateRequest(ctx, options) + if err != nil { + return ServiceClientGetStatisticsResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return ServiceClientGetStatisticsResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return ServiceClientGetStatisticsResponse{}, runtime.NewResponseError(resp) + } + return client.getStatisticsHandleResponse(resp) +} + +// getStatisticsCreateRequest creates the GetStatistics request. +func (client *ServiceClient) getStatisticsCreateRequest(ctx context.Context, options *ServiceClientGetStatisticsOptions) (*policy.Request, error) { + req, err := runtime.NewRequest(ctx, http.MethodGet, client.endpoint) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("restype", "service") + reqQP.Set("comp", "stats") + if options != nil && options.Timeout != nil { + reqQP.Set("timeout", strconv.FormatInt(int64(*options.Timeout), 10)) + } + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["x-ms-version"] = []string{"2018-03-28"} + if options != nil && options.RequestID != nil { + req.Raw().Header["x-ms-client-request-id"] = []string{*options.RequestID} + } + req.Raw().Header["Accept"] = []string{"application/xml"} + return req, nil +} + +// getStatisticsHandleResponse handles the GetStatistics response. +func (client *ServiceClient) getStatisticsHandleResponse(resp *http.Response) (ServiceClientGetStatisticsResponse, error) { + result := ServiceClientGetStatisticsResponse{} + if val := resp.Header.Get("x-ms-request-id"); val != "" { + result.RequestID = &val + } + if val := resp.Header.Get("x-ms-version"); val != "" { + result.Version = &val + } + if val := resp.Header.Get("Date"); val != "" { + date, err := time.Parse(time.RFC1123, val) + if err != nil { + return ServiceClientGetStatisticsResponse{}, err + } + result.Date = &date + } + if err := runtime.UnmarshalAsXML(resp, &result.StorageServiceStats); err != nil { + return ServiceClientGetStatisticsResponse{}, err + } + return result, nil +} + +// NewListQueuesSegmentPager - The List Queues Segment operation returns a list of the queues under the specified account +// +// Generated from API version 2018-03-28 +// - options - ServiceClientListQueuesSegmentOptions contains the optional parameters for the ServiceClient.NewListQueuesSegmentPager +// method. +// +// ListQueuesSegmentCreateRequest creates the ListQueuesFlatSegment ListQueuesSegment. +func (client *ServiceClient) ListQueuesSegmentCreateRequest(ctx context.Context, options *ServiceClientListQueuesSegmentOptions) (*policy.Request, error) { + req, err := runtime.NewRequest(ctx, http.MethodGet, client.endpoint) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("comp", "list") + if options != nil && options.Prefix != nil { + reqQP.Set("prefix", *options.Prefix) + } + if options != nil && options.Marker != nil { + reqQP.Set("marker", *options.Marker) + } + if options != nil && options.Maxresults != nil { + reqQP.Set("maxresults", strconv.FormatInt(int64(*options.Maxresults), 10)) + } + if options != nil && options.Include != nil { + reqQP.Set("include", strings.Join(strings.Fields(strings.Trim(fmt.Sprint(options.Include), "[]")), ",")) + } + if options != nil && options.Timeout != nil { + reqQP.Set("timeout", strconv.FormatInt(int64(*options.Timeout), 10)) + } + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["x-ms-version"] = []string{"2018-03-28"} + if options != nil && options.RequestID != nil { + req.Raw().Header["x-ms-client-request-id"] = []string{*options.RequestID} + } + req.Raw().Header["Accept"] = []string{"application/xml"} + return req, nil +} + +// listQueuesSegmentHandleResponse handles the ListQueuesSegment response. +func (client *ServiceClient) ListQueuesSegmentHandleResponse(resp *http.Response) (ServiceClientListQueuesSegmentResponse, error) { + result := ServiceClientListQueuesSegmentResponse{} + if val := resp.Header.Get("x-ms-request-id"); val != "" { + result.RequestID = &val + } + if val := resp.Header.Get("x-ms-version"); val != "" { + result.Version = &val + } + if val := resp.Header.Get("Date"); val != "" { + date, err := time.Parse(time.RFC1123, val) + if err != nil { + return ServiceClientListQueuesSegmentResponse{}, err + } + result.Date = &date + } + if err := runtime.UnmarshalAsXML(resp, &result.ListQueuesSegmentResponse); err != nil { + return ServiceClientListQueuesSegmentResponse{}, err + } + return result, nil +} + +// SetProperties - Sets properties for a storage account's Queue service endpoint, including properties for Storage Analytics +// and CORS (Cross-Origin Resource Sharing) rules +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2018-03-28 +// - storageServiceProperties - The StorageService properties. +// - options - ServiceClientSetPropertiesOptions contains the optional parameters for the ServiceClient.SetProperties method. +func (client *ServiceClient) SetProperties(ctx context.Context, storageServiceProperties StorageServiceProperties, options *ServiceClientSetPropertiesOptions) (ServiceClientSetPropertiesResponse, error) { + req, err := client.setPropertiesCreateRequest(ctx, storageServiceProperties, options) + if err != nil { + return ServiceClientSetPropertiesResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return ServiceClientSetPropertiesResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusAccepted) { + return ServiceClientSetPropertiesResponse{}, runtime.NewResponseError(resp) + } + return client.setPropertiesHandleResponse(resp) +} + +// setPropertiesCreateRequest creates the SetProperties request. +func (client *ServiceClient) setPropertiesCreateRequest(ctx context.Context, storageServiceProperties StorageServiceProperties, options *ServiceClientSetPropertiesOptions) (*policy.Request, error) { + req, err := runtime.NewRequest(ctx, http.MethodPut, client.endpoint) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("restype", "service") + reqQP.Set("comp", "properties") + if options != nil && options.Timeout != nil { + reqQP.Set("timeout", strconv.FormatInt(int64(*options.Timeout), 10)) + } + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["x-ms-version"] = []string{"2018-03-28"} + if options != nil && options.RequestID != nil { + req.Raw().Header["x-ms-client-request-id"] = []string{*options.RequestID} + } + req.Raw().Header["Accept"] = []string{"application/xml"} + return req, runtime.MarshalAsXML(req, storageServiceProperties) +} + +// setPropertiesHandleResponse handles the SetProperties response. +func (client *ServiceClient) setPropertiesHandleResponse(resp *http.Response) (ServiceClientSetPropertiesResponse, error) { + result := ServiceClientSetPropertiesResponse{} + if val := resp.Header.Get("x-ms-request-id"); val != "" { + result.RequestID = &val + } + if val := resp.Header.Get("x-ms-version"); val != "" { + result.Version = &val + } + return result, nil +} diff --git a/sdk/storage/azqueue/internal/generated/zz_time_rfc1123.go b/sdk/storage/azqueue/internal/generated/zz_time_rfc1123.go new file mode 100644 index 000000000000..4b4d51aa3994 --- /dev/null +++ b/sdk/storage/azqueue/internal/generated/zz_time_rfc1123.go @@ -0,0 +1,43 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package generated + +import ( + "strings" + "time" +) + +const ( + rfc1123JSON = `"` + time.RFC1123 + `"` +) + +type timeRFC1123 time.Time + +func (t timeRFC1123) MarshalJSON() ([]byte, error) { + b := []byte(time.Time(t).Format(rfc1123JSON)) + return b, nil +} + +func (t timeRFC1123) MarshalText() ([]byte, error) { + b := []byte(time.Time(t).Format(time.RFC1123)) + return b, nil +} + +func (t *timeRFC1123) UnmarshalJSON(data []byte) error { + p, err := time.Parse(rfc1123JSON, strings.ToUpper(string(data))) + *t = timeRFC1123(p) + return err +} + +func (t *timeRFC1123) UnmarshalText(data []byte) error { + p, err := time.Parse(time.RFC1123, string(data)) + *t = timeRFC1123(p) + return err +} diff --git a/sdk/storage/azqueue/internal/generated/zz_time_rfc3339.go b/sdk/storage/azqueue/internal/generated/zz_time_rfc3339.go new file mode 100644 index 000000000000..1ce9d621164e --- /dev/null +++ b/sdk/storage/azqueue/internal/generated/zz_time_rfc3339.go @@ -0,0 +1,59 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package generated + +import ( + "regexp" + "strings" + "time" +) + +const ( + utcLayoutJSON = `"2006-01-02T15:04:05.999999999"` + utcLayout = "2006-01-02T15:04:05.999999999" + rfc3339JSON = `"` + time.RFC3339Nano + `"` +) + +// Azure reports time in UTC but it doesn't include the 'Z' time zone suffix in some cases. +var tzOffsetRegex = regexp.MustCompile(`(Z|z|\+|-)(\d+:\d+)*"*$`) + +type timeRFC3339 time.Time + +func (t timeRFC3339) MarshalJSON() (json []byte, err error) { + tt := time.Time(t) + return tt.MarshalJSON() +} + +func (t timeRFC3339) MarshalText() (text []byte, err error) { + tt := time.Time(t) + return tt.MarshalText() +} + +func (t *timeRFC3339) UnmarshalJSON(data []byte) error { + layout := utcLayoutJSON + if tzOffsetRegex.Match(data) { + layout = rfc3339JSON + } + return t.Parse(layout, string(data)) +} + +func (t *timeRFC3339) UnmarshalText(data []byte) (err error) { + layout := utcLayout + if tzOffsetRegex.Match(data) { + layout = time.RFC3339Nano + } + return t.Parse(layout, string(data)) +} + +func (t *timeRFC3339) Parse(layout, value string) error { + p, err := time.Parse(layout, strings.ToUpper(value)) + *t = timeRFC3339(p) + return err +} diff --git a/sdk/storage/azqueue/internal/generated/zz_xml_helper.go b/sdk/storage/azqueue/internal/generated/zz_xml_helper.go new file mode 100644 index 000000000000..144ea18e1aba --- /dev/null +++ b/sdk/storage/azqueue/internal/generated/zz_xml_helper.go @@ -0,0 +1,41 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package generated + +import ( + "encoding/xml" + "strings" +) + +type additionalProperties map[string]*string + +// UnmarshalXML implements the xml.Unmarshaler interface for additionalProperties. +func (ap *additionalProperties) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error { + tokName := "" + for t, err := d.Token(); err == nil; t, err = d.Token() { + switch tt := t.(type) { + case xml.StartElement: + tokName = strings.ToLower(tt.Name.Local) + break + case xml.CharData: + if tokName == "" { + continue + } + if *ap == nil { + *ap = additionalProperties{} + } + s := string(tt) + (*ap)[tokName] = &s + tokName = "" + break + } + } + return nil +} diff --git a/sdk/storage/azqueue/internal/shared/shared.go b/sdk/storage/azqueue/internal/shared/shared.go new file mode 100644 index 000000000000..e634fec6fbc6 --- /dev/null +++ b/sdk/storage/azqueue/internal/shared/shared.go @@ -0,0 +1,146 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package shared + +import ( + "errors" + "fmt" + "hash/crc64" + "net" + "strings" +) + +const ( + TokenScope = "https://storage.azure.com/.default" +) + +const ( + HeaderAuthorization = "Authorization" + HeaderXmsDate = "x-ms-date" + HeaderContentLength = "Content-Length" + HeaderContentEncoding = "Content-Encoding" + HeaderContentLanguage = "Content-Language" + HeaderContentType = "Content-Type" + HeaderContentMD5 = "Content-MD5" + HeaderIfModifiedSince = "If-Modified-Since" + HeaderIfMatch = "If-Match" + HeaderIfNoneMatch = "If-None-Match" + HeaderIfUnmodifiedSince = "If-Unmodified-Since" + HeaderRange = "Range" +) + +const crc64Polynomial uint64 = 0x9A6C9329AC4BC9B5 + +var CRC64Table = crc64.MakeTable(crc64Polynomial) + +// CopyOptions returns a zero-value T if opts is nil. +// If opts is not nil, a copy is made and its address returned. +func CopyOptions[T any](opts *T) *T { + if opts == nil { + return new(T) + } + cp := *opts + return &cp +} + +var errConnectionString = errors.New("connection string is either blank or malformed. The expected connection string " + + "should contain key value pairs separated by semicolons. For example 'DefaultEndpointsProtocol=https;AccountName=;" + + "AccountKey=;EndpointSuffix=core.windows.net'") + +type ParsedConnectionString struct { + ServiceURL string + AccountName string + AccountKey string +} + +func ParseConnectionString(connectionString string) (ParsedConnectionString, error) { + const ( + defaultScheme = "https" + defaultSuffix = "core.windows.net" + ) + + connStrMap := make(map[string]string) + connectionString = strings.TrimRight(connectionString, ";") + + splitString := strings.Split(connectionString, ";") + if len(splitString) == 0 { + return ParsedConnectionString{}, errConnectionString + } + for _, stringPart := range splitString { + parts := strings.SplitN(stringPart, "=", 2) + if len(parts) != 2 { + return ParsedConnectionString{}, errConnectionString + } + connStrMap[parts[0]] = parts[1] + } + + accountName, ok := connStrMap["AccountName"] + if !ok { + return ParsedConnectionString{}, errors.New("connection string missing AccountName") + } + + accountKey, ok := connStrMap["AccountKey"] + if !ok { + sharedAccessSignature, ok := connStrMap["SharedAccessSignature"] + if !ok { + return ParsedConnectionString{}, errors.New("connection string missing AccountKey and SharedAccessSignature") + } + return ParsedConnectionString{ + ServiceURL: fmt.Sprintf("%v://%v.queue.%v/?%v", defaultScheme, accountName, defaultSuffix, sharedAccessSignature), + }, nil + } + + protocol, ok := connStrMap["DefaultEndpointsProtocol"] + if !ok { + protocol = defaultScheme + } + + suffix, ok := connStrMap["EndpointSuffix"] + if !ok { + suffix = defaultSuffix + } + + if queueEndpoint, ok := connStrMap["QueueEndpoint"]; ok { + return ParsedConnectionString{ + ServiceURL: queueEndpoint, + AccountName: accountName, + AccountKey: accountKey, + }, nil + } + + return ParsedConnectionString{ + ServiceURL: fmt.Sprintf("%v://%v.queue.%v", protocol, accountName, suffix), + AccountName: accountName, + AccountKey: accountKey, + }, nil +} + +func GetClientOptions[T any](o *T) *T { + if o == nil { + return new(T) + } + return o +} + +// IsIPEndpointStyle checkes if URL's host is IP, in this case the storage account endpoint will be composed as: +// http(s)://IP(:port)/storageaccount/queue/... +// As url's Host property, host could be both host or host:port +func IsIPEndpointStyle(host string) bool { + if host == "" { + return false + } + if h, _, err := net.SplitHostPort(host); err == nil { + host = h + } + // For IPv6, there could be case where SplitHostPort fails for cannot finding port. + // In this case, eliminate the '[' and ']' in the URL. + // For details about IPv6 URL, please refer to https://tools.ietf.org/html/rfc2732 + if host[0] == '[' && host[len(host)-1] == ']' { + host = host[1 : len(host)-1] + } + return net.ParseIP(host) != nil +} diff --git a/sdk/storage/azqueue/internal/testcommon/clients_auth.go b/sdk/storage/azqueue/internal/testcommon/clients_auth.go new file mode 100644 index 000000000000..f8d76d4c3eb2 --- /dev/null +++ b/sdk/storage/azqueue/internal/testcommon/clients_auth.go @@ -0,0 +1,131 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +// Contains common helpers for TESTS ONLY + +package testcommon + +import ( + "context" + "errors" + "fmt" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" + "github.com/Azure/azure-sdk-for-go/sdk/storage/azqueue" + "github.com/stretchr/testify/require" + "testing" +) + +type TestAccountType string + +const ( + TestAccountDefault TestAccountType = "" + TestAccountSecondary TestAccountType = "SECONDARY_" + TestAccountPremium TestAccountType = "PREMIUM_" +) + +const ( + DefaultEndpointSuffix = "core.windows.net/" + DefaultQueueEndpointSuffix = "queue.core.windows.net/" + AccountNameEnvVar = "AZURE_STORAGE_ACCOUNT_NAME" + AccountKeyEnvVar = "AZURE_STORAGE_ACCOUNT_KEY" + DefaultEndpointSuffixEnvVar = "AZURE_STORAGE_ENDPOINT_SUFFIX" +) + +const ( + FakeStorageAccount = "fakestorage" + FakeStorageURL = "https://fakestorage.queue.core.windows.net" +) + +var BasicMetadata = map[string]*string{"Foo": to.Ptr("bar")} + +func setClientOptions(t *testing.T, opts *azcore.ClientOptions) { + opts.Logging.AllowedHeaders = append(opts.Logging.AllowedHeaders, "X-Request-Mismatch", "X-Request-Mismatch-Error") + + transport, err := recording.NewRecordingHTTPClient(t, nil) + require.NoError(t, err) + opts.Transport = transport +} + +func GetServiceClient(t *testing.T, accountType TestAccountType, options *azqueue.ClientOptions) (*azqueue.ServiceClient, error) { + if options == nil { + options = &azqueue.ClientOptions{} + } + + setClientOptions(t, &options.ClientOptions) + + cred, err := GetGenericCredential(accountType) + if err != nil { + return nil, err + } + + serviceClient, err := azqueue.NewServiceClientWithSharedKeyCredential("https://"+cred.AccountName()+".queue.core.windows.net/", cred, options) + + return serviceClient, err +} + +func GetAccountInfo(accountType TestAccountType) (string, string) { + accountNameEnvVar := string(accountType) + AccountNameEnvVar + accountKeyEnvVar := string(accountType) + AccountKeyEnvVar + accountName, _ := GetRequiredEnv(accountNameEnvVar) + accountKey, _ := GetRequiredEnv(accountKeyEnvVar) + return accountName, accountKey +} + +func GetGenericCredential(accountType TestAccountType) (*azqueue.SharedKeyCredential, error) { + if recording.GetRecordMode() == recording.PlaybackMode { + return azqueue.NewSharedKeyCredential(FakeStorageAccount, "ZmFrZQ==") + } + + accountName, accountKey := GetAccountInfo(accountType) + if accountName == "" || accountKey == "" { + return nil, errors.New(string(accountType) + AccountNameEnvVar + " and/or " + string(accountType) + AccountKeyEnvVar + " environment variables not specified.") + } + return azqueue.NewSharedKeyCredential(accountName, accountKey) +} + +func GetConnectionString(accountType TestAccountType) string { + accountName, accountKey := GetAccountInfo(accountType) + connectionString := fmt.Sprintf("DefaultEndpointsProtocol=https;AccountName=%s;AccountKey=%s;EndpointSuffix=core.windows.net/", + accountName, accountKey) + return connectionString +} + +func GetServiceClientFromConnectionString(t *testing.T, accountType TestAccountType, options *azqueue.ClientOptions) (*azqueue.ServiceClient, error) { + if options == nil { + options = &azqueue.ClientOptions{} + } + + transport, err := recording.NewRecordingHTTPClient(t, nil) + require.NoError(t, err) + options.Transport = transport + + if recording.GetRecordMode() == recording.PlaybackMode { + return azqueue.NewServiceClientWithNoCredential(FakeStorageURL, options) + } + + connectionString := GetConnectionString(accountType) + svcClient, err := azqueue.NewServiceClientFromConnectionString(connectionString, options) + return svcClient, err +} + +func GetQueueClient(queueName string, serviceClient *azqueue.ServiceClient) *azqueue.QueueClient { + return serviceClient.NewQueueClient(queueName) +} + +func CreateNewQueue(ctx context.Context, _require *require.Assertions, queueName string, serviceClient *azqueue.ServiceClient) *azqueue.QueueClient { + queueClient := GetQueueClient(queueName, serviceClient) + + _, err := queueClient.Create(ctx, nil) + _require.Nil(err) + return queueClient +} + +func DeleteQueue(ctx context.Context, _require *require.Assertions, queueClient *azqueue.QueueClient) { + _, err := queueClient.Delete(ctx, nil) + _require.Nil(err) +} diff --git a/sdk/storage/azqueue/internal/testcommon/common.go b/sdk/storage/azqueue/internal/testcommon/common.go new file mode 100644 index 000000000000..e38db6fd2f25 --- /dev/null +++ b/sdk/storage/azqueue/internal/testcommon/common.go @@ -0,0 +1,106 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package testcommon + +import ( + "errors" + "fmt" + + "os" + "runtime" + "strconv" + "strings" + "testing" + "time" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" + "github.com/Azure/azure-sdk-for-go/sdk/storage/azqueue/queueerror" + "github.com/stretchr/testify/require" +) + +const ( + QueuePrefix = "goq" + QueueDefaultData = "this is some default data" +) + +func GenerateQueueName(testName string) string { + return QueuePrefix + GenerateEntityName(testName) +} + +func GenerateName(prefix string) string { + pc := make([]uintptr, 10) + runtime.Callers(0, pc) + frames := runtime.CallersFrames(pc) + name := "" + for f, next := frames.Next(); next; f, next = frames.Next() { + name = f.Function + if strings.Contains(name, "Suite") { + break + } + } + funcNameStart := strings.Index(name, "Test") + name = name[funcNameStart+len("Test"):] // Just get the name of the test and not any of the garbage at the beginning + name = strings.ToLower(name) // Ensure it is a valid resource name + currentTime := time.Now() + name = fmt.Sprintf("%s%s%d%d%d", prefix, strings.ToLower(name), currentTime.Minute(), currentTime.Second(), currentTime.Nanosecond()) + return name +} + +func GenerateEntityName(testName string) string { + return strings.ReplaceAll(strings.ReplaceAll(strings.ToLower(testName), "/", ""), "test", "") +} + +func ValidateHTTPErrorCode(_require *require.Assertions, err error, code int) { + _require.NotNil(err) + var responseErr *azcore.ResponseError + errors.As(err, &responseErr) + if responseErr != nil { + _require.Equal(responseErr.StatusCode, code) + } else { + _require.Equal(strings.Contains(err.Error(), strconv.Itoa(code)), true) + } +} + +// GetRequiredEnv gets an environment variable by name and returns an error if it is not found +func GetRequiredEnv(name string) (string, error) { + env, ok := os.LookupEnv(name) + if ok { + return env, nil + } else { + return "", errors.New("Required environment variable not set: " + name) + } +} + +func BeforeTest(t *testing.T, suite string, test string) { + const urlRegex = `https://\S+\.queue\.core\.windows\.net` + require.NoError(t, recording.AddURISanitizer(FakeStorageURL, urlRegex, nil)) + // we freeze request IDs and timestamps to avoid creating noisy diffs + // NOTE: we can't freeze time stamps as that breaks some tests that use if-modified-since etc (maybe it can be fixed?) + //testframework.AddHeaderRegexSanitizer("X-Ms-Date", "Wed, 10 Aug 2022 23:34:14 GMT", "", nil) + require.NoError(t, recording.AddHeaderRegexSanitizer("x-ms-request-id", "00000000-0000-0000-0000-000000000000", "", nil)) + //testframework.AddHeaderRegexSanitizer("Date", "Wed, 10 Aug 2022 23:34:14 GMT", "", nil) + // TODO: more freezing + //testframework.AddBodyRegexSanitizer("RequestId:00000000-0000-0000-0000-000000000000", `RequestId:\w{8}-\w{4}-\w{4}-\w{4}-\w{12}`, nil) + //testframework.AddBodyRegexSanitizer("Time:2022-08-11T00:21:56.4562741Z", `Time:\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d*)?Z`, nil) + require.NoError(t, recording.Start(t, "sdk/storage/azqueue/testdata", nil)) +} + +func AfterTest(t *testing.T, suite string, test string) { + require.NoError(t, recording.Stop(t, nil)) +} + +func ValidateQueueErrorCode(_require *require.Assertions, err error, code queueerror.Code) { + _require.NotNil(err) + var responseErr *azcore.ResponseError + errors.As(err, &responseErr) + if responseErr != nil { + _require.Equal(string(code), responseErr.ErrorCode) + } else { + _require.Contains(err.Error(), code) + } +} diff --git a/sdk/storage/azqueue/models.go b/sdk/storage/azqueue/models.go new file mode 100644 index 000000000000..6d50c7b289a8 --- /dev/null +++ b/sdk/storage/azqueue/models.go @@ -0,0 +1,470 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package azqueue + +import ( + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/storage/azqueue/internal/exported" + "github.com/Azure/azure-sdk-for-go/sdk/storage/azqueue/internal/generated" + "github.com/Azure/azure-sdk-for-go/sdk/storage/azqueue/sas" + "time" +) + +// SharedKeyCredential contains an account's name and its primary or secondary key. +type SharedKeyCredential = exported.SharedKeyCredential + +// NewSharedKeyCredential creates an immutable SharedKeyCredential containing the +// storage account's name and either its primary or secondary key. +func NewSharedKeyCredential(accountName, accountKey string) (*SharedKeyCredential, error) { + return exported.NewSharedKeyCredential(accountName, accountKey) +} + +// URLParts object represents the components that make up an Azure Storage Queue URL. +// NOTE: Changing any SAS-related field requires computing a new SAS signature. +type URLParts = sas.URLParts + +// ParseURL parses a URL initializing URLParts' fields including any SAS-related & snapshot query parameters. Any other +// query parameters remain in the UnparsedParams field. This method overwrites all fields in the URLParts object. +func ParseURL(u string) (URLParts, error) { + return sas.ParseURL(u) +} + +// ================================================================ + +// CORSRule - CORS is an HTTP feature that enables a web application running under one domain to access resources in another +// domain. Web browsers implement a security restriction known as same-origin policy that +// prevents a web page from calling APIs in a different domain; CORS provides a secure way to allow one domain (the origin +// domain) to call APIs in another domain +type CORSRule = generated.CORSRule + +// GeoReplication - Geo-Replication information for the Secondary Storage Service +type GeoReplication = generated.GeoReplication + +// RetentionPolicy - the retention policy which determines how long the associated data should persist +type RetentionPolicy = generated.RetentionPolicy + +// Metrics - a summary of request statistics grouped by API in hour or minute aggregates for queues +type Metrics = generated.Metrics + +// Logging - Azure Analytics Logging settings. +type Logging = generated.Logging + +// StorageServiceProperties - Storage Service Properties. +type StorageServiceProperties = generated.StorageServiceProperties + +// StorageServiceStats - Stats for the storage service. +type StorageServiceStats = generated.StorageServiceStats + +// SignedIdentifier - signed identifier +type SignedIdentifier = generated.SignedIdentifier + +// EnqueuedMessage - enqueued message +type EnqueuedMessage = generated.EnqueuedMessage + +// DequeuedMessage - dequeued message +type DequeuedMessage = generated.DequeuedMessage + +// PeekedMessage - peeked message +type PeekedMessage = generated.PeekedMessage + +// ListQueuesSegmentResponse - response segment +type ListQueuesSegmentResponse = generated.ListQueuesSegmentResponse + +// Queue - queue item +type Queue = generated.Queue + +// AccessPolicy - An Access policy +type AccessPolicy = generated.AccessPolicy + +// AccessPolicyPermission type simplifies creating the permissions string for a queue's access policy. +// Initialize an instance of this type and then call its String method to set AccessPolicy's Permission field. +type AccessPolicyPermission = exported.AccessPolicyPermission + +// --------------------------------------------------------------------------------------------------------------------- + +// ListQueuesOptions provides set of configurations for ListQueues operation +type ListQueuesOptions struct { + Include ListQueuesInclude + + // A string value that identifies the portion of the list of queues to be returned with the next listing operation. The + // operation returns the NextMarker value within the response body if the listing operation did not return all queues + // remaining to be listed with the current page. The NextMarker value can be used as the value for the marker parameter in + // a subsequent call to request the next page of list items. The marker value is opaque to the client. + Marker *string + + // Specifies the maximum number of queues to return. If the request does not specify max results, or specifies a value + // greater than 5000, the server will return up to 5000 items. Note that if the listing operation crosses a partition boundary, + // then the service will return a continuation token for retrieving the remainder of the results. For this reason, it is possible + // that the service will return fewer results than specified by max results, or than the default of 5000. + MaxResults *int32 + + // Filters the results to return only queues whose name begins with the specified prefix. + Prefix *string +} + +// ListQueuesInclude indicates what additional information the service should return with each queue. +type ListQueuesInclude struct { + // Tells the service whether to return metadata for each queue. + Metadata bool +} + +// --------------------------------------------------------------------------------------------------------------------- + +// SetPropertiesOptions provides set of options for ServiceClient.SetProperties +type SetPropertiesOptions struct { + // The set of CORS rules. + CORS []*CORSRule + + // a summary of request statistics grouped by API in hour or minute aggregates for queues + HourMetrics *Metrics + + // Azure Analytics Logging settings. + Logging *Logging + + // a summary of request statistics grouped by API in hour or minute aggregates for queues + MinuteMetrics *Metrics +} + +func (o *SetPropertiesOptions) format() (generated.StorageServiceProperties, *generated.ServiceClientSetPropertiesOptions) { + if o == nil { + return generated.StorageServiceProperties{}, nil + } + + defaultVersion := to.Ptr[string]("1.0") + defaultAge := to.Ptr[int32](0) + emptyStr := to.Ptr[string]("") + + if o.CORS != nil { + for i := 0; i < len(o.CORS); i++ { + if o.CORS[i].AllowedHeaders == nil { + o.CORS[i].AllowedHeaders = emptyStr + } + if o.CORS[i].ExposedHeaders == nil { + o.CORS[i].ExposedHeaders = emptyStr + } + if o.CORS[i].MaxAgeInSeconds == nil { + o.CORS[i].MaxAgeInSeconds = defaultAge + } + } + } + + if o.HourMetrics != nil { + if o.HourMetrics.Version == nil { + o.HourMetrics.Version = defaultVersion + } + } + + if o.Logging != nil { + if o.Logging.Version == nil { + o.Logging.Version = defaultVersion + } + } + + if o.MinuteMetrics != nil { + if o.MinuteMetrics.Version == nil { + o.MinuteMetrics.Version = defaultVersion + } + + } + + return generated.StorageServiceProperties{ + CORS: o.CORS, + HourMetrics: o.HourMetrics, + Logging: o.Logging, + MinuteMetrics: o.MinuteMetrics, + }, nil +} + +// --------------------------------------------------------------------------------------------------------------------- + +// GetServicePropertiesOptions contains the optional parameters for the ServiceClient.GetServiceProperties method. +type GetServicePropertiesOptions struct { + // placeholder for future options +} + +func (o *GetServicePropertiesOptions) format() *generated.ServiceClientGetPropertiesOptions { + return nil +} + +// --------------------------------------------------------------------------------------------------------------------- + +// GetStatisticsOptions provides set of options for ServiceClient.GetStatistics +type GetStatisticsOptions struct { + // placeholder for future options +} + +func (o *GetStatisticsOptions) format() *generated.ServiceClientGetStatisticsOptions { + return nil +} + +// -------------------------------------------------QUEUES-------------------------------------------------------------- + +// CreateOptions contains the optional parameters for creating a queue. +type CreateOptions struct { + // Optional. Specifies a user-defined name-value pair associated with the queue. + Metadata map[string]*string +} + +func (o *CreateOptions) format() *generated.QueueClientCreateOptions { + if o == nil { + return nil + } + return &generated.QueueClientCreateOptions{Metadata: o.Metadata} +} + +// --------------------------------------------------------------------------------------------------------------------- + +// DeleteOptions contains the optional parameters for deleting a queue. +type DeleteOptions struct { +} + +func (o *DeleteOptions) format() *generated.QueueClientDeleteOptions { + return nil +} + +// --------------------------------------------------------------------------------------------------------------------- + +// SetMetadataOptions contains the optional parameters for the QueueClient.SetMetadata method. +type SetMetadataOptions struct { + Metadata map[string]*string +} + +func (o *SetMetadataOptions) format() *generated.QueueClientSetMetadataOptions { + if o == nil { + return nil + } + + return &generated.QueueClientSetMetadataOptions{Metadata: o.Metadata} +} + +// --------------------------------------------------------------------------------------------------------------------- + +// GetAccessPolicyOptions contains the optional parameters for the QueueClient.GetAccessPolicy method. +type GetAccessPolicyOptions struct { +} + +func (o *GetAccessPolicyOptions) format() *generated.QueueClientGetAccessPolicyOptions { + return nil +} + +// --------------------------------------------------------------------------------------------------------------------- + +// SetAccessPolicyOptions provides set of configurations for QueueClient.SetAccessPolicy operation +type SetAccessPolicyOptions struct { + QueueACL []*SignedIdentifier +} + +func (o *SetAccessPolicyOptions) format() (*generated.QueueClientSetAccessPolicyOptions, []*SignedIdentifier, error) { + if o == nil { + return nil, nil, nil + } + if o.QueueACL != nil { + for _, c := range o.QueueACL { + err := formatTime(c) + if err != nil { + return nil, nil, err + } + } + } + return &generated.QueueClientSetAccessPolicyOptions{}, o.QueueACL, nil +} + +func formatTime(c *SignedIdentifier) error { + if c.AccessPolicy == nil { + return nil + } + + if c.AccessPolicy.Start != nil { + st, err := time.Parse(time.RFC3339, c.AccessPolicy.Start.UTC().Format(time.RFC3339)) + if err != nil { + return err + } + c.AccessPolicy.Start = &st + } + if c.AccessPolicy.Expiry != nil { + et, err := time.Parse(time.RFC3339, c.AccessPolicy.Expiry.UTC().Format(time.RFC3339)) + if err != nil { + return err + } + c.AccessPolicy.Expiry = &et + } + + return nil +} + +// --------------------------------------------------------------------------------------------------------------------- + +// GetQueuePropertiesOptions contains the optional parameters for the QueueClient.GetProperties method. +type GetQueuePropertiesOptions struct { +} + +func (o *GetQueuePropertiesOptions) format() *generated.QueueClientGetPropertiesOptions { + return nil +} + +// --------------------------------------------------------------------------------------------------------------------- + +// EnqueueMessageOptions contains the optional parameters for the QueueClient.EnqueueMessage method. +type EnqueueMessageOptions struct { + // Specifies the time-to-live interval for the message, in seconds. + // The time-to-live may be any positive number or -1 for infinity. + // If this parameter is omitted, the default time-to-live is 7 days. + TimeToLive *int32 + // If not specified, the default value is 0. + // Specifies the new visibility timeout value, in seconds, relative to server time. + // The value must be larger than or equal to 0, and cannot be larger than 7 days. + // The visibility timeout of a message cannot be set to a value later than the expiry time. + // VisibilityTimeout should be set to a value smaller than the time-to-live value. + VisibilityTimeout *int32 +} + +func (o *EnqueueMessageOptions) format() *generated.MessagesClientEnqueueOptions { + if o == nil { + return nil + } + + return &generated.MessagesClientEnqueueOptions{MessageTimeToLive: o.TimeToLive, + Visibilitytimeout: o.VisibilityTimeout} +} + +// --------------------------------------------------------------------------------------------------------------------- + +// DequeueMessageOptions contains the optional parameters for the QueueClient.DequeueMessage method. +type DequeueMessageOptions struct { + // If not specified, the default value is 0. Specifies the new visibility timeout value, + // in seconds, relative to server time. The value must be larger than or equal to 0, and cannot be + // larger than 7 days. The visibility timeout of a message cannot be + // set to a value later than the expiry time. VisibilityTimeout + // should be set to a value smaller than the time-to-live value. + VisibilityTimeout *int32 +} + +func (o *DequeueMessageOptions) format() *generated.MessagesClientDequeueOptions { + numberOfMessages := int32(1) + if o == nil { + return &generated.MessagesClientDequeueOptions{NumberOfMessages: &numberOfMessages} + } + + return &generated.MessagesClientDequeueOptions{NumberOfMessages: &numberOfMessages, + Visibilitytimeout: o.VisibilityTimeout} +} + +// --------------------------------------------------------------------------------------------------------------------- + +// DequeueMessagesOptions contains the optional parameters for the QueueClient.DequeueMessages method. +type DequeueMessagesOptions struct { + // Optional. A nonzero integer value that specifies the number of messages to retrieve from the queue, + // up to a maximum of 32. If fewer messages are visible, the visible messages are returned. + // By default, a single message is retrieved from the queue with this operation. + NumberOfMessages *int32 + // If not specified, the default value is 30. Specifies the + // new visibility timeout value, in seconds, relative to server time. + // The value must be larger than or equal to 1, and cannot be + // larger than 7 days. The visibility timeout of a message cannot be + // set to a value later than the expiry time. VisibilityTimeout + // should be set to a value smaller than the time-to-live value. + VisibilityTimeout *int32 +} + +func (o *DequeueMessagesOptions) format() *generated.MessagesClientDequeueOptions { + if o == nil { + return nil + } + + return &generated.MessagesClientDequeueOptions{NumberOfMessages: o.NumberOfMessages, + Visibilitytimeout: o.VisibilityTimeout} +} + +// --------------------------------------------------------------------------------------------------------------------- + +// UpdateMessageOptions contains the optional parameters for the QueueClient.UpdateMessage method. +type UpdateMessageOptions struct { + VisibilityTimeout *int32 +} + +func (o *UpdateMessageOptions) format() *generated.MessageIDClientUpdateOptions { + defaultVT := to.Ptr(int32(0)) + if o == nil { + return &generated.MessageIDClientUpdateOptions{Visibilitytimeout: defaultVT} + } + if o.VisibilityTimeout == nil { + o.VisibilityTimeout = defaultVT + } + return &generated.MessageIDClientUpdateOptions{Visibilitytimeout: o.VisibilityTimeout} +} + +// --------------------------------------------------------------------------------------------------------------------- + +// DeleteMessageOptions contains the optional parameters for the QueueClient.DeleteMessage method. +type DeleteMessageOptions struct { +} + +func (o *DeleteMessageOptions) format() *generated.MessageIDClientDeleteOptions { + if o == nil { + return nil + } + + return nil +} + +// --------------------------------------------------------------------------------------------------------------------- + +// PeekMessageOptions contains the optional parameters for the QueueClient.PeekMessage method. +type PeekMessageOptions struct { +} + +func (o *PeekMessageOptions) format() *generated.MessagesClientPeekOptions { + numberOfMessages := int32(1) + return &generated.MessagesClientPeekOptions{NumberOfMessages: &numberOfMessages} +} + +// --------------------------------------------------------------------------------------------------------------------- + +// PeekMessagesOptions contains the optional parameters for the QueueClient.PeekMessages method. +type PeekMessagesOptions struct { + NumberOfMessages *int32 +} + +func (o *PeekMessagesOptions) format() *generated.MessagesClientPeekOptions { + if o == nil { + return nil + } + + return &generated.MessagesClientPeekOptions{NumberOfMessages: o.NumberOfMessages} +} + +// --------------------------------------------------------------------------------------------------------------------- + +// ClearMessagesOptions contains the optional parameters for the QueueClient.ClearMessages method. +type ClearMessagesOptions struct { +} + +func (o *ClearMessagesOptions) format() *generated.MessagesClientClearOptions { + if o == nil { + return nil + } + + return nil +} + +// --------------------------------------------------------------------------------------------------------------------- + +// GetSASURLOptions contains the optional parameters for the Client.GetSASURL method. +type GetSASURLOptions struct { + StartTime *time.Time +} + +func (o *GetSASURLOptions) format() time.Time { + if o == nil { + return time.Time{} + } + var st time.Time + if o.StartTime != nil { + st = o.StartTime.UTC() + } + return st +} diff --git a/sdk/storage/azqueue/queue_client.go b/sdk/storage/azqueue/queue_client.go new file mode 100644 index 000000000000..315b54e8364f --- /dev/null +++ b/sdk/storage/azqueue/queue_client.go @@ -0,0 +1,252 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package azqueue + +import ( + "context" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/storage/azqueue/internal/base" + "github.com/Azure/azure-sdk-for-go/sdk/storage/azqueue/internal/exported" + "github.com/Azure/azure-sdk-for-go/sdk/storage/azqueue/internal/generated" + "github.com/Azure/azure-sdk-for-go/sdk/storage/azqueue/internal/shared" + "github.com/Azure/azure-sdk-for-go/sdk/storage/azqueue/queueerror" + "github.com/Azure/azure-sdk-for-go/sdk/storage/azqueue/sas" + "time" +) + +// QueueClient represents a URL to the Azure Queue Storage service allowing you to manipulate queues. +type QueueClient base.CompositeClient[generated.QueueClient, generated.MessagesClient] + +func (q *QueueClient) queueClient() *generated.QueueClient { + queue, _ := base.InnerClients((*base.CompositeClient[generated.QueueClient, generated.MessagesClient])(q)) + return queue +} + +func (q *QueueClient) messagesClient() *generated.MessagesClient { + _, messages := base.InnerClients((*base.CompositeClient[generated.QueueClient, generated.MessagesClient])(q)) + return messages +} + +func (q *QueueClient) getMessageIDURL(messageID string) string { + return runtime.JoinPaths(q.queueClient().Endpoint(), "messages", messageID) +} + +func (q *QueueClient) sharedKey() *SharedKeyCredential { + return base.SharedKeyComposite((*base.CompositeClient[generated.QueueClient, generated.MessagesClient])(q)) +} + +// URL returns the URL endpoint used by the ServiceClient object. +func (q *QueueClient) URL() string { + return q.queueClient().Endpoint() +} + +// NewQueueClient creates an instance of ServiceClient with the specified values. +// - serviceURL - the URL of the storage account e.g. https://.queue.core.windows.net/ +// - cred - an Azure AD credential, typically obtained via the azidentity module +// - options - client options; pass nil to accept the default values +func NewQueueClient(queueURL string, cred azcore.TokenCredential, options *ClientOptions) (*QueueClient, error) { + authPolicy := runtime.NewBearerTokenPolicy(cred, []string{shared.TokenScope}, nil) + conOptions := shared.GetClientOptions(options) + conOptions.PerRetryPolicies = append(conOptions.PerRetryPolicies, authPolicy) + pl := runtime.NewPipeline(exported.ModuleName, exported.ModuleVersion, runtime.PipelineOptions{}, &conOptions.ClientOptions) + + return (*QueueClient)(base.NewQueueClient(queueURL, pl, nil)), nil +} + +// NewQueueClientWithNoCredential creates an instance of QueueClient with the specified values. +// This is used to anonymously access a storage account or with a shared access signature (SAS) token. +// - serviceURL - the URL of the storage account e.g. https://.queue.core.windows.net/? +// - options - client options; pass nil to accept the default values +func NewQueueClientWithNoCredential(queueURL string, options *ClientOptions) (*QueueClient, error) { + conOptions := shared.GetClientOptions(options) + pl := runtime.NewPipeline(exported.ModuleName, exported.ModuleVersion, runtime.PipelineOptions{}, &conOptions.ClientOptions) + + return (*QueueClient)(base.NewQueueClient(queueURL, pl, nil)), nil +} + +// NewQueueClientWithSharedKeyCredential creates an instance of ServiceClient with the specified values. +// - serviceURL - the URL of the storage account e.g. https://.queue.core.windows.net/ +// - cred - a SharedKeyCredential created with the matching storage account and access key +// - options - client options; pass nil to accept the default values +func NewQueueClientWithSharedKeyCredential(queueURL string, cred *SharedKeyCredential, options *ClientOptions) (*QueueClient, error) { + authPolicy := exported.NewSharedKeyCredPolicy(cred) + conOptions := shared.GetClientOptions(options) + conOptions.PerRetryPolicies = append(conOptions.PerRetryPolicies, authPolicy) + pl := runtime.NewPipeline(exported.ModuleName, exported.ModuleVersion, runtime.PipelineOptions{}, &conOptions.ClientOptions) + + return (*QueueClient)(base.NewQueueClient(queueURL, pl, cred)), nil +} + +// NewQueueClientFromConnectionString creates an instance of ServiceClient with the specified values. +// - connectionString - a connection string for the desired storage account +// - options - client options; pass nil to accept the default values +func NewQueueClientFromConnectionString(connectionString string, queueName string, options *ClientOptions) (*QueueClient, error) { + parsed, err := shared.ParseConnectionString(connectionString) + if err != nil { + return nil, err + } + parsed.ServiceURL = runtime.JoinPaths(parsed.ServiceURL, queueName) + if parsed.AccountKey != "" && parsed.AccountName != "" { + credential, err := exported.NewSharedKeyCredential(parsed.AccountName, parsed.AccountKey) + if err != nil { + return nil, err + } + return NewQueueClientWithSharedKeyCredential(parsed.ServiceURL, credential, options) + } + + return NewQueueClientWithNoCredential(parsed.ServiceURL, options) +} + +// Create creates a new queue within a storage account. If a queue with the same name already exists, the operation fails. +// For more information, see https://learn.microsoft.com/en-us/rest/api/storageservices/create-queue4. +func (q *QueueClient) Create(ctx context.Context, options *CreateOptions) (CreateResponse, error) { + opts := options.format() + resp, err := q.queueClient().Create(ctx, opts) + return resp, err +} + +// Delete deletes the specified queue. +// For more information, see https://learn.microsoft.com/en-us/rest/api/storageservices/delete-queue3. +func (q *QueueClient) Delete(ctx context.Context, options *DeleteOptions) (DeleteResponse, error) { + opts := options.format() + resp, err := q.queueClient().Delete(ctx, opts) + return resp, err +} + +// SetMetadata sets the metadata for the queue. +// For more information, see https://learn.microsoft.com/en-us/rest/api/storageservices/set-queue-metadata. +func (q *QueueClient) SetMetadata(ctx context.Context, options *SetMetadataOptions) (SetMetadataResponse, error) { + opts := options.format() + resp, err := q.queueClient().SetMetadata(ctx, opts) + return resp, err +} + +// GetProperties gets properties including metadata of a queue. +// For more information, see https://learn.microsoft.com/en-us/rest/api/storageservices/get-queue-metadata. +func (q *QueueClient) GetProperties(ctx context.Context, options *GetQueuePropertiesOptions) (GetQueuePropertiesResponse, error) { + opts := options.format() + resp, err := q.queueClient().GetProperties(ctx, opts) + return resp, err +} + +// GetAccessPolicy returns the queue's access policy. +// For more information, see https://learn.microsoft.com/en-us/rest/api/storageservices/get-queue-acl. +func (q *QueueClient) GetAccessPolicy(ctx context.Context, o *GetAccessPolicyOptions) (GetAccessPolicyResponse, error) { + options := o.format() + resp, err := q.queueClient().GetAccessPolicy(ctx, options) + return resp, err +} + +// SetAccessPolicy sets the queue's permissions. +// For more information, see https://learn.microsoft.com/en-us/rest/api/storageservices/set-queue-acl. +func (q *QueueClient) SetAccessPolicy(ctx context.Context, o *SetAccessPolicyOptions) (SetAccessPolicyResponse, error) { + opts, acl, err := o.format() + if err != nil { + return SetAccessPolicyResponse{}, err + } + resp, err := q.queueClient().SetAccessPolicy(ctx, acl, opts) + return resp, err +} + +// EnqueueMessage adds a message to the queue. +// For more information, see https://learn.microsoft.com/en-us/rest/api/storageservices/put-message. +func (q *QueueClient) EnqueueMessage(ctx context.Context, content string, o *EnqueueMessageOptions) (EnqueueMessagesResponse, error) { + opts := o.format() + message := generated.QueueMessage{MessageText: &content} + resp, err := q.messagesClient().Enqueue(ctx, message, opts) + return resp, err +} + +// DequeueMessage removes one message from the queue. +// For more information, see https://learn.microsoft.com/en-us/rest/api/storageservices/get-messages. +func (q *QueueClient) DequeueMessage(ctx context.Context, o *DequeueMessageOptions) (DequeueMessagesResponse, error) { + opts := o.format() + resp, err := q.messagesClient().Dequeue(ctx, opts) + return resp, err +} + +// UpdateMessage updates a message from the queue with the given popReceipt. +// For more information, see https://learn.microsoft.com/en-us/rest/api/storageservices/update-message. +func (q *QueueClient) UpdateMessage(ctx context.Context, messageID string, popReceipt string, content string, o *UpdateMessageOptions) (UpdateMessageResponse, error) { + opts := o.format() + message := generated.QueueMessage{MessageText: &content} + messageClient := generated.NewMessageIDClient(q.getMessageIDURL(messageID), q.queueClient().Pipeline()) + resp, err := messageClient.Update(ctx, popReceipt, message, opts) + return resp, err +} + +// DeleteMessage deletes message from queue with the given popReceipt. +// For more information, see https://learn.microsoft.com/en-us/rest/api/storageservices/delete-message2. +func (q *QueueClient) DeleteMessage(ctx context.Context, messageID string, popReceipt string, o *DeleteMessageOptions) (DeleteMessageResponse, error) { + opts := o.format() + messageClient := generated.NewMessageIDClient(q.getMessageIDURL(messageID), q.queueClient().Pipeline()) + resp, err := messageClient.Delete(ctx, popReceipt, opts) + return resp, err +} + +// PeekMessage peeks the first message from the queue. +// For more information, see https://learn.microsoft.com/en-us/rest/api/storageservices/peek-messages. +func (q *QueueClient) PeekMessage(ctx context.Context, o *PeekMessageOptions) (PeekMessagesResponse, error) { + opts := o.format() + resp, err := q.messagesClient().Peek(ctx, opts) + return resp, err +} + +// DequeueMessages removes one or more messages from the queue. +// For more information, see https://learn.microsoft.com/en-us/rest/api/storageservices/get-messages. +func (q *QueueClient) DequeueMessages(ctx context.Context, o *DequeueMessagesOptions) (DequeueMessagesResponse, error) { + opts := o.format() + resp, err := q.messagesClient().Dequeue(ctx, opts) + return resp, err +} + +// PeekMessages peeks one or more messages from the queue +// For more information, see https://learn.microsoft.com/en-us/rest/api/storageservices/peek-messages. +func (q *QueueClient) PeekMessages(ctx context.Context, o *PeekMessagesOptions) (PeekMessagesResponse, error) { + opts := o.format() + resp, err := q.messagesClient().Peek(ctx, opts) + return resp, err +} + +// ClearMessages deletes all messages from the queue. +// For more information, see https://learn.microsoft.com/en-us/rest/api/storageservices/clear-messages. +func (q *QueueClient) ClearMessages(ctx context.Context, o *ClearMessagesOptions) (ClearMessagesResponse, error) { + opts := o.format() + resp, err := q.messagesClient().Clear(ctx, opts) + return resp, err +} + +// GetSASURL is a convenience method for generating a SAS token for the currently pointed at account. +// It can only be used if the credential supplied during creation was a SharedKeyCredential. +// This validity can be checked with CanGetAccountSASToken(). +func (q *QueueClient) GetSASURL(permissions sas.QueuePermissions, expiry time.Time, o *GetSASURLOptions) (string, error) { + if q.sharedKey() == nil { + return "", queueerror.MissingSharedKeyCredential + } + + st := o.format() + urlParts, err := ParseURL(q.URL()) + if err != nil { + return "", err + } + qps, err := sas.QueueSignatureValues{ + Version: sas.Version, + Protocol: sas.ProtocolHTTPS, + StartTime: st, + ExpiryTime: expiry.UTC(), + Permissions: permissions.String(), + QueueName: urlParts.QueueName, + }.SignWithSharedKey(q.sharedKey()) + if err != nil { + return "", err + } + + endpoint := q.URL() + "?" + qps.Encode() + + return endpoint, nil +} diff --git a/sdk/storage/azqueue/queue_client_test.go b/sdk/storage/azqueue/queue_client_test.go new file mode 100644 index 000000000000..a009a67fb3ff --- /dev/null +++ b/sdk/storage/azqueue/queue_client_test.go @@ -0,0 +1,1458 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package azqueue_test + +import ( + "context" + "fmt" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/storage/azqueue" + "github.com/Azure/azure-sdk-for-go/sdk/storage/azqueue/internal/shared" + "github.com/Azure/azure-sdk-for-go/sdk/storage/azqueue/internal/testcommon" + "github.com/Azure/azure-sdk-for-go/sdk/storage/azqueue/queueerror" + "github.com/Azure/azure-sdk-for-go/sdk/storage/azqueue/sas" + "github.com/stretchr/testify/require" + "os" + "strconv" + "time" +) + +func (s *RecordedTestSuite) TestQueueCreateQueue() { + _require := require.New(s.T()) + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + testName := s.T().Name() + queueName := testcommon.GenerateQueueName(testName) + queueClient := testcommon.GetQueueClient(queueName, svcClient) + defer testcommon.DeleteQueue(context.Background(), _require, queueClient) + + resp, err := queueClient.Create(context.Background(), nil) + _require.Nil(err) + _require.NotZero(resp) +} + +func (s *UnrecordedTestSuite) TestQueueClientFromConnectionString() { + _require := require.New(s.T()) + testName := s.T().Name() + + accountName, _ := testcommon.GetAccountInfo(testcommon.TestAccountDefault) + connectionString := testcommon.GetConnectionString(testcommon.TestAccountDefault) + + parsedConnStr, err := shared.ParseConnectionString(connectionString) + _require.Nil(err) + _require.Equal(parsedConnStr.ServiceURL, "https://"+accountName+".queue.core.windows.net/") + + queueName := testcommon.GenerateQueueName(testName) + + sharedKeyCred, err := azqueue.NewSharedKeyCredential(parsedConnStr.AccountName, parsedConnStr.AccountKey) + _require.Nil(err) + + qClient, err := azqueue.NewQueueClientWithSharedKeyCredential( + runtime.JoinPaths(parsedConnStr.ServiceURL, queueName), sharedKeyCred, nil) + _require.Nil(err) + + _, err = qClient.Create(context.Background(), nil) + _require.Nil(err) +} + +func (s *UnrecordedTestSuite) TestQueueClientFromConnectionString1() { + _require := require.New(s.T()) + testName := s.T().Name() + + accountName, _ := testcommon.GetAccountInfo(testcommon.TestAccountDefault) + connectionString := testcommon.GetConnectionString(testcommon.TestAccountDefault) + + parsedConnStr, err := shared.ParseConnectionString(connectionString) + _require.Nil(err) + _require.Equal(parsedConnStr.ServiceURL, "https://"+accountName+".queue.core.windows.net/") + + queueName := testcommon.GenerateQueueName(testName) + + qClient, err := azqueue.NewQueueClientFromConnectionString(connectionString, queueName, nil) + _require.Nil(err) + + _, err = qClient.Create(context.Background(), nil) + _require.Nil(err) +} + +func (s *RecordedTestSuite) TestQueueCreateQueueWithMetadata() { + _require := require.New(s.T()) + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + testName := s.T().Name() + opts := azqueue.CreateOptions{Metadata: testcommon.BasicMetadata} + queueName := testcommon.GenerateQueueName(testName) + queueClient := testcommon.GetQueueClient(queueName, svcClient) + defer testcommon.DeleteQueue(context.Background(), _require, queueClient) + + resp, err := queueClient.Create(context.Background(), &opts) + _require.Nil(err) + _require.NotZero(resp) +} + +func (s *RecordedTestSuite) TestQueueDeleteQueue() { + _require := require.New(s.T()) + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + testName := s.T().Name() + queueName := testcommon.GenerateQueueName(testName) + queueClient := testcommon.GetQueueClient(queueName, svcClient) + resp, err := queueClient.Create(context.Background(), nil) + _require.Nil(err) + _require.NotZero(resp) + + delResp, err := queueClient.Delete(context.Background(), nil) + _require.Nil(err) + _require.NotZero(delResp) +} + +func (s *RecordedTestSuite) TestQueueSetMetadata() { + _require := require.New(s.T()) + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + testName := s.T().Name() + queueName := testcommon.GenerateQueueName(testName) + queueClient := testcommon.GetQueueClient(queueName, svcClient) + defer testcommon.DeleteQueue(context.Background(), _require, queueClient) + + _, err = queueClient.Create(context.Background(), nil) + _require.Nil(err) + + opts := azqueue.SetMetadataOptions{Metadata: testcommon.BasicMetadata} + _, err = queueClient.SetMetadata(context.Background(), &opts) + _require.Nil(err) + + resp, err := queueClient.GetProperties(context.Background(), nil) + _require.Equal(resp.Metadata, testcommon.BasicMetadata) + _require.Nil(err) +} + +func (s *RecordedTestSuite) TestQueueSetMetadataNilOptions() { + _require := require.New(s.T()) + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + testName := s.T().Name() + queueName := testcommon.GenerateQueueName(testName) + queueClient := testcommon.GetQueueClient(queueName, svcClient) + defer testcommon.DeleteQueue(context.Background(), _require, queueClient) + + _, err = queueClient.Create(context.Background(), nil) + _require.Nil(err) + + _, err = queueClient.SetMetadata(context.Background(), nil) + _require.Nil(err) + + _, err = queueClient.GetProperties(context.Background(), nil) + _require.Nil(err) +} + +func (s *RecordedTestSuite) TestQueueSetEmptyACL() { + _require := require.New(s.T()) + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + testName := s.T().Name() + queueName := testcommon.GenerateQueueName(testName) + queueClient := testcommon.GetQueueClient(queueName, svcClient) + defer testcommon.DeleteQueue(context.Background(), _require, queueClient) + + _, err = queueClient.Create(context.Background(), nil) + _require.Nil(err) + + opts := azqueue.SetAccessPolicyOptions{QueueACL: nil} + _, err = queueClient.SetAccessPolicy(context.Background(), &opts) + _require.Nil(err) +} + +func (s *RecordedTestSuite) TestQueueSetACLNil() { + _require := require.New(s.T()) + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + testName := s.T().Name() + queueName := testcommon.GenerateQueueName(testName) + queueClient := testcommon.GetQueueClient(queueName, svcClient) + defer testcommon.DeleteQueue(context.Background(), _require, queueClient) + + _, err = queueClient.Create(context.Background(), nil) + _require.Nil(err) + + _, err = queueClient.SetAccessPolicy(context.Background(), nil) + _require.Nil(err) +} + +func (s *RecordedTestSuite) TestQueueSetEmptyACL2() { + _require := require.New(s.T()) + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + testName := s.T().Name() + queueName := testcommon.GenerateQueueName(testName) + queueClient := testcommon.GetQueueClient(queueName, svcClient) + defer testcommon.DeleteQueue(context.Background(), _require, queueClient) + + _, err = queueClient.Create(context.Background(), nil) + _require.Nil(err) + + sI := make([]*azqueue.SignedIdentifier, 0) + opts := azqueue.SetAccessPolicyOptions{QueueACL: sI} + _, err = queueClient.SetAccessPolicy(context.Background(), &opts) + _require.Nil(err) +} + +func (s *RecordedTestSuite) TestQueueSetBasicACL() { + _require := require.New(s.T()) + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + testName := s.T().Name() + queueName := testcommon.GenerateQueueName(testName) + queueClient := testcommon.GetQueueClient(queueName, svcClient) + defer testcommon.DeleteQueue(context.Background(), _require, queueClient) + + _, err = queueClient.Create(context.Background(), nil) + _require.Nil(err) + + start := time.Date(2020, 1, 1, 0, 0, 0, 0, time.UTC) + expiration := time.Date(2024, 1, 1, 0, 0, 0, 0, time.UTC) + permission := "r" + id := "1" + + signedIdentifiers := make([]*azqueue.SignedIdentifier, 0) + + signedIdentifiers = append(signedIdentifiers, &azqueue.SignedIdentifier{ + AccessPolicy: &azqueue.AccessPolicy{ + Expiry: &expiration, + Start: &start, + Permission: &permission, + }, + ID: &id, + }) + options := azqueue.SetAccessPolicyOptions{QueueACL: signedIdentifiers} + _, err = queueClient.SetAccessPolicy(context.Background(), &options) + _require.Nil(err) +} + +func (s *RecordedTestSuite) TestQueueSetMultipleACL() { + _require := require.New(s.T()) + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + testName := s.T().Name() + queueName := testcommon.GenerateQueueName(testName) + queueClient := testcommon.GetQueueClient(queueName, svcClient) + defer testcommon.DeleteQueue(context.Background(), _require, queueClient) + + _, err = queueClient.Create(context.Background(), nil) + _require.Nil(err) + + id := "empty" + + signedIdentifiers := make([]*azqueue.SignedIdentifier, 0) + signedIdentifiers = append(signedIdentifiers, &azqueue.SignedIdentifier{ + ID: &id, + }) + + permission2 := "r" + id2 := "partial" + + signedIdentifiers = append(signedIdentifiers, &azqueue.SignedIdentifier{ + ID: &id2, + AccessPolicy: &azqueue.AccessPolicy{ + Permission: &permission2, + }, + }) + + id3 := "full" + permission3 := "r" + start := time.Date(2021, 6, 8, 2, 10, 9, 0, time.UTC) + expiry := time.Date(2021, 6, 8, 2, 10, 9, 0, time.UTC) + + signedIdentifiers = append(signedIdentifiers, &azqueue.SignedIdentifier{ + ID: &id3, + AccessPolicy: &azqueue.AccessPolicy{ + Start: &start, + Expiry: &expiry, + Permission: &permission3, + }, + }) + options := azqueue.SetAccessPolicyOptions{QueueACL: signedIdentifiers} + _, err = queueClient.SetAccessPolicy(context.Background(), &options) + _require.Nil(err) + + // Make a Get to assert two access policies + resp, err := queueClient.GetAccessPolicy(context.Background(), nil) + _require.Nil(err) + _require.Len(resp.SignedIdentifiers, 3) +} + +func (s *RecordedTestSuite) TestQueueGetMultipleACL() { + _require := require.New(s.T()) + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + testName := s.T().Name() + queueName := testcommon.GenerateQueueName(testName) + queueClient := testcommon.GetQueueClient(queueName, svcClient) + defer testcommon.DeleteQueue(context.Background(), _require, queueClient) + + _, err = queueClient.Create(context.Background(), nil) + _require.Nil(err) + + // Define the policies + start, err := time.Parse(time.UnixDate, "Fri Jun 11 20:00:00 UTC 2021") + _require.Nil(err) + expiry := start.Add(5 * time.Minute) + expiry2 := start.Add(time.Minute) + readWrite := to.Ptr(azqueue.AccessPolicyPermission{Read: true, Update: true}).String() + readOnly := to.Ptr(azqueue.AccessPolicyPermission{Read: true}).String() + id1, id2 := "0000", "0001" + permissions := []*azqueue.SignedIdentifier{ + {ID: &id1, + AccessPolicy: &azqueue.AccessPolicy{ + Start: &start, + Expiry: &expiry, + Permission: &readWrite, + }, + }, + {ID: &id2, + AccessPolicy: &azqueue.AccessPolicy{ + Start: &start, + Expiry: &expiry2, + Permission: &readOnly, + }, + }, + } + options := azqueue.SetAccessPolicyOptions{QueueACL: permissions} + _, err = queueClient.SetAccessPolicy(context.Background(), &options) + + _require.Nil(err) + + resp, err := queueClient.GetAccessPolicy(context.Background(), nil) + _require.Nil(err) + _require.EqualValues(resp.SignedIdentifiers, permissions) +} + +func (s *RecordedTestSuite) TestQueueSetACLMoreThanFive() { + _require := require.New(s.T()) + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + testName := s.T().Name() + queueName := testcommon.GenerateQueueName(testName) + queueClient := testcommon.GetQueueClient(queueName, svcClient) + defer testcommon.DeleteQueue(context.Background(), _require, queueClient) + + _, err = queueClient.Create(context.Background(), nil) + _require.Nil(err) + + start, err := time.Parse(time.UnixDate, "Fri Jun 11 20:00:00 UTC 2021") + _require.Nil(err) + expiry, err := time.Parse(time.UnixDate, "Fri Jun 11 20:00:00 UTC 2049") + _require.Nil(err) + permissions := make([]*azqueue.SignedIdentifier, 6) + listOnly := to.Ptr(azqueue.AccessPolicyPermission{Read: true}).String() + for i := 0; i < 6; i++ { + id := "000" + strconv.Itoa(i) + permissions[i] = &azqueue.SignedIdentifier{ + ID: &id, + AccessPolicy: &azqueue.AccessPolicy{ + Start: &start, + Expiry: &expiry, + Permission: &listOnly, + }, + } + } + + setAccessPolicyOptions := azqueue.SetAccessPolicyOptions{ + QueueACL: permissions, + } + _, err = queueClient.SetAccessPolicy(context.Background(), &setAccessPolicyOptions) + _require.NotNil(err) + testcommon.ValidateQueueErrorCode(_require, err, queueerror.InvalidXMLDocument) +} + +func (s *RecordedTestSuite) TestQueueSetPermissionsDeleteAndModifyACL() { + _require := require.New(s.T()) + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + testName := s.T().Name() + queueName := testcommon.GenerateQueueName(testName) + queueClient := testcommon.GetQueueClient(queueName, svcClient) + defer testcommon.DeleteQueue(context.Background(), _require, queueClient) + + _, err = queueClient.Create(context.Background(), nil) + _require.Nil(err) + + start, err := time.Parse(time.UnixDate, "Fri Jun 11 20:00:00 UTC 2021") + _require.Nil(err) + expiry, err := time.Parse(time.UnixDate, "Fri Jun 11 20:00:00 UTC 2049") + _require.Nil(err) + listOnly := to.Ptr(azqueue.AccessPolicyPermission{Read: true}).String() + permissions := make([]*azqueue.SignedIdentifier, 2) + for i := 0; i < 2; i++ { + id := "000" + strconv.Itoa(i) + permissions[i] = &azqueue.SignedIdentifier{ + ID: &id, + AccessPolicy: &azqueue.AccessPolicy{ + Start: &start, + Expiry: &expiry, + Permission: &listOnly, + }, + } + } + + setAccessPolicyOptions := azqueue.SetAccessPolicyOptions{ + QueueACL: permissions, + } + _, err = queueClient.SetAccessPolicy(context.Background(), &setAccessPolicyOptions) + _require.Nil(err) + + resp, err := queueClient.GetAccessPolicy(context.Background(), nil) + _require.Nil(err) + _require.EqualValues(resp.SignedIdentifiers, permissions) + + permissions = resp.SignedIdentifiers[:1] // Delete the first policy by removing it from the slice + newId := "0004" + permissions[0].ID = &newId // Modify the remaining policy which is at index 0 in the new slice + setAccessPolicyOptions1 := azqueue.SetAccessPolicyOptions{ + QueueACL: permissions, + } + _, err = queueClient.SetAccessPolicy(context.Background(), &setAccessPolicyOptions1) + _require.Nil(err) + + resp, err = queueClient.GetAccessPolicy(context.Background(), nil) + _require.Nil(err) + _require.Len(resp.SignedIdentifiers, 1) + _require.EqualValues(resp.SignedIdentifiers, permissions) +} + +func (s *RecordedTestSuite) TestQueueSetPermissionsDeleteAllPolicies() { + _require := require.New(s.T()) + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + testName := s.T().Name() + queueName := testcommon.GenerateQueueName(testName) + queueClient := testcommon.GetQueueClient(queueName, svcClient) + defer testcommon.DeleteQueue(context.Background(), _require, queueClient) + + _, err = queueClient.Create(context.Background(), nil) + _require.Nil(err) + + start, err := time.Parse(time.UnixDate, "Fri Jun 11 20:00:00 UTC 2021") + _require.Nil(err) + expiry, err := time.Parse(time.UnixDate, "Fri Jun 11 20:00:00 UTC 2049") + _require.Nil(err) + permissions := make([]*azqueue.SignedIdentifier, 2) + listOnly := to.Ptr(azqueue.AccessPolicyPermission{Read: true}).String() + for i := 0; i < 2; i++ { + id := "000" + strconv.Itoa(i) + permissions[i] = &azqueue.SignedIdentifier{ + ID: &id, + AccessPolicy: &azqueue.AccessPolicy{ + Start: &start, + Expiry: &expiry, + Permission: &listOnly, + }, + } + } + + setAccessPolicyOptions := azqueue.SetAccessPolicyOptions{ + QueueACL: permissions, + } + _, err = queueClient.SetAccessPolicy(context.Background(), &setAccessPolicyOptions) + _require.Nil(err) + + resp, err := queueClient.GetAccessPolicy(context.Background(), nil) + _require.Nil(err) + _require.Len(resp.SignedIdentifiers, len(permissions)) + _require.EqualValues(resp.SignedIdentifiers, permissions) + + setAccessPolicyOptions = azqueue.SetAccessPolicyOptions{ + QueueACL: []*azqueue.SignedIdentifier{}, + } + _, err = queueClient.SetAccessPolicy(context.Background(), &setAccessPolicyOptions) + _require.Nil(err) + + resp, err = queueClient.GetAccessPolicy(context.Background(), nil) + _require.Nil(err) + _require.Nil(resp.SignedIdentifiers) +} + +func (s *RecordedTestSuite) TestQueueSetPermissionsInvalidPolicyTimes() { + _require := require.New(s.T()) + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + testName := s.T().Name() + queueName := testcommon.GenerateQueueName(testName) + queueClient := testcommon.GetQueueClient(queueName, svcClient) + defer testcommon.DeleteQueue(context.Background(), _require, queueClient) + + _, err = queueClient.Create(context.Background(), nil) + _require.Nil(err) + + // Swap start and expiry + expiry, err := time.Parse(time.UnixDate, "Fri Jun 11 20:00:00 UTC 2021") + _require.Nil(err) + start, err := time.Parse(time.UnixDate, "Fri Jun 11 20:00:00 UTC 2049") + _require.Nil(err) + permissions := make([]*azqueue.SignedIdentifier, 2) + listOnly := to.Ptr(azqueue.AccessPolicyPermission{Read: true}).String() + for i := 0; i < 2; i++ { + id := "000" + strconv.Itoa(i) + permissions[i] = &azqueue.SignedIdentifier{ + ID: &id, + AccessPolicy: &azqueue.AccessPolicy{ + Start: &start, + Expiry: &expiry, + Permission: &listOnly, + }, + } + } + + setAccessPolicyOptions := azqueue.SetAccessPolicyOptions{ + QueueACL: permissions, + } + _, err = queueClient.SetAccessPolicy(context.Background(), &setAccessPolicyOptions) + _require.Nil(err) +} + +func (s *RecordedTestSuite) TestQueueSetPermissionsSignedIdentifierTooLong() { + _require := require.New(s.T()) + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + testName := s.T().Name() + queueName := testcommon.GenerateQueueName(testName) + queueClient := testcommon.GetQueueClient(queueName, svcClient) + defer testcommon.DeleteQueue(context.Background(), _require, queueClient) + + _, err = queueClient.Create(context.Background(), nil) + _require.Nil(err) + + id := "" + for i := 0; i < 65; i++ { + id += "a" + } + expiry, err := time.Parse(time.UnixDate, "Fri Jun 11 20:00:00 UTC 2021") + _require.Nil(err) + start := expiry.Add(5 * time.Minute).UTC() + permissions := make([]*azqueue.SignedIdentifier, 2) + listOnly := to.Ptr(azqueue.AccessPolicyPermission{Read: true}).String() + for i := 0; i < 2; i++ { + permissions[i] = &azqueue.SignedIdentifier{ + ID: &id, + AccessPolicy: &azqueue.AccessPolicy{ + Start: &start, + Expiry: &expiry, + Permission: &listOnly, + }, + } + } + + setAccessPolicyOptions := azqueue.SetAccessPolicyOptions{ + QueueACL: permissions, + } + _, err = queueClient.SetAccessPolicy(context.Background(), &setAccessPolicyOptions) + _require.NotNil(err) + + testcommon.ValidateQueueErrorCode(_require, err, queueerror.InvalidXMLDocument) +} + +func (s *RecordedTestSuite) TestEnqueueMessageBasic() { + _require := require.New(s.T()) + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + testName := s.T().Name() + queueName := testcommon.GenerateQueueName(testName) + queueClient := testcommon.GetQueueClient(queueName, svcClient) + defer testcommon.DeleteQueue(context.Background(), _require, queueClient) + + _, err = queueClient.Create(context.Background(), nil) + _require.Nil(err) + + // enqueue 4 messages + for i := 0; i < 4; i++ { + _, err = queueClient.EnqueueMessage(context.Background(), testcommon.QueueDefaultData, nil) + _require.Nil(err) + + } +} + +func (s *RecordedTestSuite) TestEnqueueMessageWithTimeToLive() { + _require := require.New(s.T()) + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + testName := s.T().Name() + queueName := testcommon.GenerateQueueName(testName) + queueClient := testcommon.GetQueueClient(queueName, svcClient) + defer testcommon.DeleteQueue(context.Background(), _require, queueClient) + + _, err = queueClient.Create(context.Background(), nil) + _require.Nil(err) + + opts := azqueue.EnqueueMessageOptions{TimeToLive: to.Ptr(int32(1))} + _, err = queueClient.EnqueueMessage(context.Background(), testcommon.QueueDefaultData, &opts) + _require.Nil(err) +} + +func (s *RecordedTestSuite) TestEnqueueMessageWithTimeToLiveExpired() { + _require := require.New(s.T()) + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + testName := s.T().Name() + queueName := testcommon.GenerateQueueName(testName) + queueClient := testcommon.GetQueueClient(queueName, svcClient) + defer testcommon.DeleteQueue(context.Background(), _require, queueClient) + + _, err = queueClient.Create(context.Background(), nil) + _require.Nil(err) + + opts := azqueue.EnqueueMessageOptions{TimeToLive: to.Ptr(int32(1))} + _, err = queueClient.EnqueueMessage(context.Background(), testcommon.QueueDefaultData, &opts) + _require.Nil(err) + + time.Sleep(time.Second * 2) + resp, err := queueClient.DequeueMessage(context.Background(), nil) + _require.Nil(err) + _require.Equal(0, len(resp.Messages)) +} + +func (s *RecordedTestSuite) TestEnqueueMessageWithInfiniteTimeToLive() { + _require := require.New(s.T()) + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + testName := s.T().Name() + queueName := testcommon.GenerateQueueName(testName) + queueClient := testcommon.GetQueueClient(queueName, svcClient) + defer testcommon.DeleteQueue(context.Background(), _require, queueClient) + + _, err = queueClient.Create(context.Background(), nil) + _require.Nil(err) + + opts := azqueue.EnqueueMessageOptions{TimeToLive: to.Ptr(int32(-1))} + _, err = queueClient.EnqueueMessage(context.Background(), testcommon.QueueDefaultData, &opts) + _require.Nil(err) +} + +func (s *RecordedTestSuite) TestEnqueueMessageWithVisibilityTimeout() { + _require := require.New(s.T()) + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + testName := s.T().Name() + queueName := testcommon.GenerateQueueName(testName) + queueClient := testcommon.GetQueueClient(queueName, svcClient) + defer testcommon.DeleteQueue(context.Background(), _require, queueClient) + + _, err = queueClient.Create(context.Background(), nil) + _require.Nil(err) + + opts := azqueue.EnqueueMessageOptions{VisibilityTimeout: to.Ptr(int32(1))} + _, err = queueClient.EnqueueMessage(context.Background(), testcommon.QueueDefaultData, &opts) + _require.Nil(err) +} + +func (s *RecordedTestSuite) TestEnqueueMessageWithVisibilityTimeoutSmallerThanTTL() { + _require := require.New(s.T()) + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + testName := s.T().Name() + queueName := testcommon.GenerateQueueName(testName) + queueClient := testcommon.GetQueueClient(queueName, svcClient) + defer testcommon.DeleteQueue(context.Background(), _require, queueClient) + + _, err = queueClient.Create(context.Background(), nil) + _require.Nil(err) + + opts := azqueue.EnqueueMessageOptions{TimeToLive: to.Ptr(int32(2)), VisibilityTimeout: to.Ptr(int32(1))} + _, err = queueClient.EnqueueMessage(context.Background(), testcommon.QueueDefaultData, &opts) + _require.Nil(err) +} + +func (s *RecordedTestSuite) TestEnqueueMessageWithVisibilityTimeoutLargerThanTTL() { + _require := require.New(s.T()) + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + testName := s.T().Name() + queueName := testcommon.GenerateQueueName(testName) + queueClient := testcommon.GetQueueClient(queueName, svcClient) + defer testcommon.DeleteQueue(context.Background(), _require, queueClient) + + _, err = queueClient.Create(context.Background(), nil) + _require.Nil(err) + + opts := azqueue.EnqueueMessageOptions{TimeToLive: to.Ptr(int32(1)), VisibilityTimeout: to.Ptr(int32(2))} + _, err = queueClient.EnqueueMessage(context.Background(), testcommon.QueueDefaultData, &opts) + // cannot have visibility timeout be greater than ttl + testcommon.ValidateQueueErrorCode(_require, err, queueerror.InvalidQueryParameterValue) +} + +func (s *RecordedTestSuite) TestDequeueMessageBasic() { + _require := require.New(s.T()) + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + testName := s.T().Name() + queueName := testcommon.GenerateQueueName(testName) + queueClient := testcommon.GetQueueClient(queueName, svcClient) + defer testcommon.DeleteQueue(context.Background(), _require, queueClient) + + _, err = queueClient.Create(context.Background(), nil) + _require.Nil(err) + + // enqueue 4 messages + for i := 0; i < 4; i++ { + _, err = queueClient.EnqueueMessage(context.Background(), testcommon.QueueDefaultData, nil) + _require.Nil(err) + } + + // dequeue 4 messages + for i := 0; i < 4; i++ { + resp, err := queueClient.DequeueMessage(context.Background(), nil) + _require.Nil(err) + _require.Equal(1, len(resp.Messages)) + _require.NotNil(resp.Messages[0].MessageID) + } + // should be 0 now + resp, err := queueClient.DequeueMessage(context.Background(), nil) + _require.Equal(0, len(resp.Messages)) + _require.Nil(err) +} + +func (s *RecordedTestSuite) TestDequeueMessageWithVisibilityTimeout() { + _require := require.New(s.T()) + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + testName := s.T().Name() + queueName := testcommon.GenerateQueueName(testName) + queueClient := testcommon.GetQueueClient(queueName, svcClient) + defer testcommon.DeleteQueue(context.Background(), _require, queueClient) + + _, err = queueClient.Create(context.Background(), nil) + _require.Nil(err) + + opts := azqueue.DequeueMessageOptions{VisibilityTimeout: to.Ptr(int32(1))} + _, err = queueClient.EnqueueMessage(context.Background(), testcommon.QueueDefaultData, nil) + _require.Nil(err) + + resp, err := queueClient.DequeueMessage(context.Background(), &opts) + _require.Nil(err) + _require.NotNil(resp.Messages[0].TimeNextVisible) +} + +func (s *RecordedTestSuite) TestDequeueMessagesBasic() { + _require := require.New(s.T()) + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + testName := s.T().Name() + queueName := testcommon.GenerateQueueName(testName) + queueClient := testcommon.GetQueueClient(queueName, svcClient) + defer testcommon.DeleteQueue(context.Background(), _require, queueClient) + + _, err = queueClient.Create(context.Background(), nil) + _require.Nil(err) + + // enqueue 4 messages + for i := 0; i < 4; i++ { + _, err = queueClient.EnqueueMessage(context.Background(), testcommon.QueueDefaultData, nil) + _require.Nil(err) + } + + // dequeue 4 messages + opts := azqueue.DequeueMessagesOptions{NumberOfMessages: to.Ptr(int32(4))} + resp, err := queueClient.DequeueMessages(context.Background(), &opts) + _require.Nil(err) + _require.Equal(4, len(resp.Messages)) +} + +func (s *RecordedTestSuite) TestDequeueMessagesDefault() { + _require := require.New(s.T()) + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + testName := s.T().Name() + queueName := testcommon.GenerateQueueName(testName) + queueClient := testcommon.GetQueueClient(queueName, svcClient) + defer testcommon.DeleteQueue(context.Background(), _require, queueClient) + + _, err = queueClient.Create(context.Background(), nil) + _require.Nil(err) + + // enqueue 4 messages + for i := 0; i < 4; i++ { + _, err = queueClient.EnqueueMessage(context.Background(), testcommon.QueueDefaultData, nil) + _require.Nil(err) + } + + // should dequeue only 1 message (since default num of messages is 1 when not specified) + resp, err := queueClient.DequeueMessages(context.Background(), nil) + _require.Nil(err) + _require.Equal(1, len(resp.Messages)) +} + +func (s *RecordedTestSuite) TestDequeueMessagesWithVisibilityTimeout() { + _require := require.New(s.T()) + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + testName := s.T().Name() + queueName := testcommon.GenerateQueueName(testName) + queueClient := testcommon.GetQueueClient(queueName, svcClient) + defer testcommon.DeleteQueue(context.Background(), _require, queueClient) + + _, err = queueClient.Create(context.Background(), nil) + _require.Nil(err) + + // enqueue 4 messages + for i := 0; i < 4; i++ { + _, err = queueClient.EnqueueMessage(context.Background(), testcommon.QueueDefaultData, nil) + _require.Nil(err) + } + + // dequeue 4 messages + opts := azqueue.DequeueMessagesOptions{NumberOfMessages: to.Ptr(int32(4)), VisibilityTimeout: to.Ptr(int32(2))} + _, err = queueClient.DequeueMessages(context.Background(), &opts) + _require.Nil(err) +} + +func (s *RecordedTestSuite) TestDequeueMessagesWithNumMessagesLargerThan32() { + _require := require.New(s.T()) + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + testName := s.T().Name() + queueName := testcommon.GenerateQueueName(testName) + queueClient := testcommon.GetQueueClient(queueName, svcClient) + defer testcommon.DeleteQueue(context.Background(), _require, queueClient) + + _, err = queueClient.Create(context.Background(), nil) + _require.Nil(err) + + // enqueue 33 messages + for i := 0; i < 33; i++ { + _, err = queueClient.EnqueueMessage(context.Background(), testcommon.QueueDefaultData, nil) + _require.Nil(err) + } + + opts := azqueue.DequeueMessagesOptions{NumberOfMessages: to.Ptr(int32(33))} + _, err = queueClient.DequeueMessages(context.Background(), &opts) + // should fail + testcommon.ValidateQueueErrorCode(_require, err, queueerror.OutOfRangeQueryParameterValue) +} + +func (s *RecordedTestSuite) TestDequeueMessagesWithLeftovers() { + _require := require.New(s.T()) + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + testName := s.T().Name() + queueName := testcommon.GenerateQueueName(testName) + queueClient := testcommon.GetQueueClient(queueName, svcClient) + defer testcommon.DeleteQueue(context.Background(), _require, queueClient) + + _, err = queueClient.Create(context.Background(), nil) + _require.Nil(err) + + // enqueue 10 messages + for i := 0; i < 10; i++ { + _, err = queueClient.EnqueueMessage(context.Background(), testcommon.QueueDefaultData, nil) + _require.Nil(err) + } + + // dequeue 5 messages + opts := azqueue.DequeueMessagesOptions{NumberOfMessages: to.Ptr(int32(5))} + resp, err := queueClient.DequeueMessages(context.Background(), &opts) + _require.Nil(err) + _require.Equal(*resp.Messages[0].MessageText, testcommon.QueueDefaultData) + _require.Equal(5, len(resp.Messages)) + + // dequeue other 5 messages + resp, err = queueClient.DequeueMessages(context.Background(), &opts) + _require.Nil(err) + _require.Equal(*resp.Messages[0].MessageText, testcommon.QueueDefaultData) + _require.Equal(5, len(resp.Messages)) +} + +func (s *RecordedTestSuite) TestPeekMessageBasic() { + _require := require.New(s.T()) + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + testName := s.T().Name() + queueName := testcommon.GenerateQueueName(testName) + queueClient := testcommon.GetQueueClient(queueName, svcClient) + defer testcommon.DeleteQueue(context.Background(), _require, queueClient) + + _, err = queueClient.Create(context.Background(), nil) + _require.Nil(err) + + // enqueue 4 messages + for i := 0; i < 4; i++ { + _, err = queueClient.EnqueueMessage(context.Background(), testcommon.QueueDefaultData, nil) + _require.Nil(err) + } + + // peek 4 messages + for i := 0; i < 4; i++ { + resp, err := queueClient.PeekMessage(context.Background(), nil) + _require.Nil(err) + _require.Equal(1, len(resp.Messages)) + _require.NotNil(resp.Messages[0].MessageID) + _require.Equal(*resp.Messages[0].MessageText, testcommon.QueueDefaultData) + } + + opts := azqueue.DequeueMessagesOptions{NumberOfMessages: to.Ptr(int32(4))} + // should all still be there + resp, err := queueClient.DequeueMessages(context.Background(), &opts) + _require.Equal(4, len(resp.Messages)) + _require.Nil(err) +} + +func (s *RecordedTestSuite) TestPeekMessagesBasic() { + _require := require.New(s.T()) + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + testName := s.T().Name() + queueName := testcommon.GenerateQueueName(testName) + queueClient := testcommon.GetQueueClient(queueName, svcClient) + defer testcommon.DeleteQueue(context.Background(), _require, queueClient) + + _, err = queueClient.Create(context.Background(), nil) + _require.Nil(err) + + // enqueue 4 messages + for i := 0; i < 4; i++ { + _, err = queueClient.EnqueueMessage(context.Background(), testcommon.QueueDefaultData, nil) + _require.Nil(err) + } + + // dequeue 4 messages + opts := azqueue.PeekMessagesOptions{NumberOfMessages: to.Ptr(int32(4))} + resp, err := queueClient.PeekMessages(context.Background(), &opts) + _require.Nil(err) + _require.Equal(4, len(resp.Messages)) + + opts1 := azqueue.DequeueMessagesOptions{NumberOfMessages: to.Ptr(int32(4))} + // should all still be there + resp1, err := queueClient.DequeueMessages(context.Background(), &opts1) + _require.Equal(4, len(resp1.Messages)) + _require.Nil(err) +} + +func (s *RecordedTestSuite) TestPeekMessagesDefault() { + _require := require.New(s.T()) + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + testName := s.T().Name() + queueName := testcommon.GenerateQueueName(testName) + queueClient := testcommon.GetQueueClient(queueName, svcClient) + defer testcommon.DeleteQueue(context.Background(), _require, queueClient) + + _, err = queueClient.Create(context.Background(), nil) + _require.Nil(err) + + // enqueue 4 messages + for i := 0; i < 4; i++ { + _, err = queueClient.EnqueueMessage(context.Background(), testcommon.QueueDefaultData, nil) + _require.Nil(err) + } + + // should peek only 1 message (since default num of messages is 1 when not specified) + resp, err := queueClient.PeekMessages(context.Background(), nil) + _require.Nil(err) + _require.Equal(1, len(resp.Messages)) + _require.Equal(*resp.Messages[0].MessageText, testcommon.QueueDefaultData) +} + +func (s *RecordedTestSuite) TestPeekMessagesWithNumMessagesLargerThan32() { + _require := require.New(s.T()) + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + testName := s.T().Name() + queueName := testcommon.GenerateQueueName(testName) + queueClient := testcommon.GetQueueClient(queueName, svcClient) + defer testcommon.DeleteQueue(context.Background(), _require, queueClient) + + _, err = queueClient.Create(context.Background(), nil) + _require.Nil(err) + + // enqueue 33 messages + for i := 0; i < 33; i++ { + _, err = queueClient.EnqueueMessage(context.Background(), testcommon.QueueDefaultData, nil) + _require.Nil(err) + } + + opts := azqueue.PeekMessagesOptions{NumberOfMessages: to.Ptr(int32(33))} + _, err = queueClient.PeekMessages(context.Background(), &opts) + // should fail + testcommon.ValidateQueueErrorCode(_require, err, queueerror.OutOfRangeQueryParameterValue) +} + +func (s *RecordedTestSuite) TestDeleteMessageBasic() { + _require := require.New(s.T()) + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + testName := s.T().Name() + queueName := testcommon.GenerateQueueName(testName) + queueClient := testcommon.GetQueueClient(queueName, svcClient) + defer testcommon.DeleteQueue(context.Background(), _require, queueClient) + + _, err = queueClient.Create(context.Background(), nil) + _require.Nil(err) + + var popReceipts []string + var messageIDs []string + // enqueue 4 messages + for i := 0; i < 4; i++ { + resp, err := queueClient.EnqueueMessage(context.Background(), testcommon.QueueDefaultData, nil) + _require.Nil(err) + popReceipts = append(popReceipts, *resp.Messages[0].PopReceipt) + messageIDs = append(messageIDs, *resp.Messages[0].MessageID) + } + + // delete 4 messages + for i := 0; i < 4; i++ { + opts := &azqueue.DeleteMessageOptions{} + _, err := queueClient.DeleteMessage(context.Background(), messageIDs[i], popReceipts[i], opts) + _require.Nil(err) + } + // should be 0 now + resp, err := queueClient.DequeueMessage(context.Background(), nil) + _require.Equal(0, len(resp.Messages)) + _require.Nil(err) +} + +func (s *RecordedTestSuite) TestDeleteMessageNilOptions() { + _require := require.New(s.T()) + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + testName := s.T().Name() + queueName := testcommon.GenerateQueueName(testName) + queueClient := testcommon.GetQueueClient(queueName, svcClient) + defer testcommon.DeleteQueue(context.Background(), _require, queueClient) + + _, err = queueClient.Create(context.Background(), nil) + _require.Nil(err) + + var popReceipts []string + var messageIDs []string + // enqueue 4 messages + for i := 0; i < 4; i++ { + resp, err := queueClient.EnqueueMessage(context.Background(), testcommon.QueueDefaultData, nil) + _require.Nil(err) + popReceipts = append(popReceipts, *resp.Messages[0].PopReceipt) + messageIDs = append(messageIDs, *resp.Messages[0].MessageID) + } + + // delete 4 messages + for i := 0; i < 4; i++ { + _, err := queueClient.DeleteMessage(context.Background(), messageIDs[i], popReceipts[i], nil) + _require.Nil(err) + } + // should be 0 now + resp, err := queueClient.DequeueMessage(context.Background(), nil) + _require.Equal(0, len(resp.Messages)) + _require.Nil(err) +} + +func (s *RecordedTestSuite) TestDeleteMessageDoesNotExist() { + _require := require.New(s.T()) + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + testName := s.T().Name() + queueName := testcommon.GenerateQueueName(testName) + queueClient := testcommon.GetQueueClient(queueName, svcClient) + defer testcommon.DeleteQueue(context.Background(), _require, queueClient) + + _, err = queueClient.Create(context.Background(), nil) + _require.Nil(err) + + resp, err := queueClient.EnqueueMessage(context.Background(), testcommon.QueueDefaultData, nil) + _require.Nil(err) + popReceipt := *resp.Messages[0].PopReceipt + messageID := *resp.Messages[0].MessageID + + opts := &azqueue.DeleteMessageOptions{} + _, err = queueClient.DeleteMessage(context.Background(), messageID, popReceipt, opts) + _require.Nil(err) + + // should fail since we already deleted it + _, err = queueClient.DeleteMessage(context.Background(), messageID, popReceipt, opts) + _require.NotNil(err) + testcommon.ValidateQueueErrorCode(_require, err, queueerror.MessageNotFound) +} + +func (s *RecordedTestSuite) TestClearMessagesBasic() { + _require := require.New(s.T()) + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + testName := s.T().Name() + queueName := testcommon.GenerateQueueName(testName) + queueClient := testcommon.GetQueueClient(queueName, svcClient) + defer testcommon.DeleteQueue(context.Background(), _require, queueClient) + + _, err = queueClient.Create(context.Background(), nil) + _require.Nil(err) + + // enqueue 4 messages + for i := 0; i < 4; i++ { + _, err = queueClient.EnqueueMessage(context.Background(), testcommon.QueueDefaultData, nil) + _require.Nil(err) + } + + // delete the queue's messages + opts := azqueue.ClearMessagesOptions{} + _, err = queueClient.ClearMessages(context.Background(), &opts) + _require.Nil(err) + + resp, err := queueClient.DequeueMessage(context.Background(), nil) + _require.Nil(err) + _require.Equal(0, len(resp.Messages)) +} + +func (s *RecordedTestSuite) TestClearMessagesNilOptions() { + _require := require.New(s.T()) + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + testName := s.T().Name() + queueName := testcommon.GenerateQueueName(testName) + queueClient := testcommon.GetQueueClient(queueName, svcClient) + defer testcommon.DeleteQueue(context.Background(), _require, queueClient) + + _, err = queueClient.Create(context.Background(), nil) + _require.Nil(err) + + // enqueue 4 messages + for i := 0; i < 4; i++ { + _, err = queueClient.EnqueueMessage(context.Background(), testcommon.QueueDefaultData, nil) + _require.Nil(err) + } + + // delete the queue's messages + _, err = queueClient.ClearMessages(context.Background(), nil) + _require.Nil(err) + + resp, err := queueClient.DequeueMessage(context.Background(), nil) + _require.Nil(err) + _require.Equal(0, len(resp.Messages)) +} + +func (s *RecordedTestSuite) TestClearMessagesMoreThan32() { + _require := require.New(s.T()) + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + testName := s.T().Name() + queueName := testcommon.GenerateQueueName(testName) + queueClient := testcommon.GetQueueClient(queueName, svcClient) + defer testcommon.DeleteQueue(context.Background(), _require, queueClient) + + _, err = queueClient.Create(context.Background(), nil) + _require.Nil(err) + + // enqueue 33 messages + for i := 0; i < 33; i++ { + _, err = queueClient.EnqueueMessage(context.Background(), testcommon.QueueDefaultData, nil) + _require.Nil(err) + } + + // delete the queue's messages + opts := azqueue.ClearMessagesOptions{} + _, err = queueClient.ClearMessages(context.Background(), &opts) + _require.Nil(err) + + resp, err := queueClient.DequeueMessage(context.Background(), nil) + _require.Nil(err) + _require.Equal(0, len(resp.Messages)) +} + +func (s *RecordedTestSuite) TestUpdateMessageBasic() { + _require := require.New(s.T()) + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + testName := s.T().Name() + queueName := testcommon.GenerateQueueName(testName) + queueClient := testcommon.GetQueueClient(queueName, svcClient) + defer testcommon.DeleteQueue(context.Background(), _require, queueClient) + + _, err = queueClient.Create(context.Background(), nil) + _require.Nil(err) + + resp, err := queueClient.EnqueueMessage(context.Background(), testcommon.QueueDefaultData, nil) + _require.Nil(err) + popReceipt := *resp.Messages[0].PopReceipt + messageID := *resp.Messages[0].MessageID + + opts := &azqueue.UpdateMessageOptions{} + _, err = queueClient.UpdateMessage(context.Background(), messageID, popReceipt, "new content", opts) + _require.Nil(err) + + resp1, err := queueClient.DequeueMessage(context.Background(), nil) + _require.Nil(err) + content := *resp1.Messages[0].MessageText + _require.Equal("new content", content) +} + +func (s *RecordedTestSuite) TestUpdateMessageWithVisibilityTimeout() { + _require := require.New(s.T()) + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + testName := s.T().Name() + queueName := testcommon.GenerateQueueName(testName) + queueClient := testcommon.GetQueueClient(queueName, svcClient) + defer testcommon.DeleteQueue(context.Background(), _require, queueClient) + + _, err = queueClient.Create(context.Background(), nil) + _require.Nil(err) + + resp, err := queueClient.EnqueueMessage(context.Background(), testcommon.QueueDefaultData, nil) + _require.Nil(err) + popReceipt := *resp.Messages[0].PopReceipt + messageID := *resp.Messages[0].MessageID + + opts := &azqueue.UpdateMessageOptions{VisibilityTimeout: to.Ptr(int32(1))} + _, err = queueClient.UpdateMessage(context.Background(), messageID, popReceipt, "new content", opts) + _require.Nil(err) + time.Sleep(time.Second * 2) + resp1, err := queueClient.DequeueMessage(context.Background(), nil) + _require.Nil(err) + content := *resp1.Messages[0].MessageText + _require.Equal("new content", content) +} + +// this test ensures that our sas related methods work properly +func (s *UnrecordedTestSuite) TestQueueSignatureValues() { + _require := require.New(s.T()) + testName := s.T().Name() + + accountName := os.Getenv("AZURE_STORAGE_ACCOUNT_NAME") + accountKey := os.Getenv("AZURE_STORAGE_ACCOUNT_KEY") + cred, err := azqueue.NewSharedKeyCredential(accountName, accountKey) + + _require.Nil(err) + queueName := testcommon.GenerateQueueName(testName) + + permissions := sas.QueuePermissions{ + Read: true, + Add: true, + Update: true, + } + + expiry := time.Now().Add(time.Hour) + qsv := sas.QueueSignatureValues{ + Version: sas.Version, + Protocol: sas.ProtocolHTTPS, + StartTime: time.Time{}, + ExpiryTime: expiry, + Permissions: permissions.String(), + QueueName: queueName, + } + _, err = qsv.SignWithSharedKey(cred) + _require.Nil(err) +} + +func (s *UnrecordedTestSuite) TestQueueGetSASURL() { + _require := require.New(s.T()) + testName := s.T().Name() + accountName := os.Getenv("AZURE_STORAGE_ACCOUNT_NAME") + accountKey := os.Getenv("AZURE_STORAGE_ACCOUNT_KEY") + cred, err := azqueue.NewSharedKeyCredential(accountName, accountKey) + _require.Nil(err) + + serviceClient, err := azqueue.NewServiceClientWithSharedKeyCredential(fmt.Sprintf("https://%s.queue.core.windows.net/", accountName), cred, nil) + _require.Nil(err) + + queueName := testcommon.GenerateQueueName(testName) + queueClient := serviceClient.NewQueueClient(queueName) + + permissions := sas.QueuePermissions{ + Read: true, + Add: true, + } + start := time.Now().Add(-5 * time.Minute).UTC() + expiry := time.Now().Add(time.Hour) + + opts := azqueue.GetSASURLOptions{StartTime: &start} + sasUrl, err := queueClient.GetSASURL(permissions, expiry, &opts) + _require.Nil(err) + + queueClient2, err := azqueue.NewQueueClientWithNoCredential(sasUrl, nil) + _require.Nil(err) + + _, err = queueClient2.Create(context.Background(), &azqueue.CreateOptions{Metadata: testcommon.BasicMetadata}) + _require.NotNil(err) + testcommon.ValidateQueueErrorCode(_require, err, queueerror.AuthorizationFailure) +} + +func (s *UnrecordedTestSuite) TestQueueGetSASURL2() { + _require := require.New(s.T()) + testName := s.T().Name() + accountName := os.Getenv("AZURE_STORAGE_ACCOUNT_NAME") + accountKey := os.Getenv("AZURE_STORAGE_ACCOUNT_KEY") + cred, err := azqueue.NewSharedKeyCredential(accountName, accountKey) + _require.Nil(err) + + serviceClient, err := azqueue.NewServiceClientWithSharedKeyCredential(fmt.Sprintf("https://%s.queue.core.windows.net/", accountName), cred, nil) + _require.Nil(err) + + queueName := testcommon.GenerateQueueName(testName) + queueClient := serviceClient.NewQueueClient(queueName) + start := time.Now().Add(-5 * time.Minute).UTC() + opts := azqueue.GetSASURLOptions{StartTime: &start} + + sasUrlReadAdd, err := queueClient.GetSASURL(sas.QueuePermissions{Add: true}, time.Now().Add(time.Hour), &opts) + _require.Nil(err) + _, err = queueClient.Create(context.Background(), &azqueue.CreateOptions{Metadata: testcommon.BasicMetadata}) + _require.Nil(err) + defer testcommon.DeleteQueue(context.Background(), _require, queueClient) + + queueClient1, err := azqueue.NewQueueClientWithNoCredential(sasUrlReadAdd, nil) + _require.Nil(err) + + // queue metadata and properties can't be read or written with SAS auth + _, err = queueClient1.GetProperties(context.Background(), nil) + _require.Error(err) + testcommon.ValidateQueueErrorCode(_require, err, queueerror.AuthorizationPermissionMismatch) + + start = time.Now().Add(-5 * time.Minute).UTC() + opts = azqueue.GetSASURLOptions{StartTime: &start} + + // this should work now + sasUrlRCWL, err := queueClient.GetSASURL(sas.QueuePermissions{Add: true, + Read: true, Update: true, Process: true}, time.Now().Add(time.Hour), &opts) + _require.Nil(err) + + queueClient2, err := azqueue.NewQueueClientWithNoCredential(sasUrlRCWL, nil) + _require.Nil(err) + + // queues can't be created, deleted, or listed with service SAS auth + _, err = queueClient2.Create(context.Background(), nil) + _require.Error(err) + testcommon.ValidateQueueErrorCode(_require, err, queueerror.AuthorizationFailure) +} + +func (s *UnrecordedTestSuite) TestServiceSASEnqueueMessage() { + _require := require.New(s.T()) + testName := s.T().Name() + accountName := os.Getenv("AZURE_STORAGE_ACCOUNT_NAME") + accountKey := os.Getenv("AZURE_STORAGE_ACCOUNT_KEY") + cred, err := azqueue.NewSharedKeyCredential(accountName, accountKey) + _require.Nil(err) + + serviceClient, err := azqueue.NewServiceClientWithSharedKeyCredential( + fmt.Sprintf("https://%s.queue.core.windows.net/", accountName), cred, nil) + _require.Nil(err) + + queueName := testcommon.GenerateQueueName(testName) + queueClient := serviceClient.NewQueueClient(queueName) + _, err = queueClient.Create(context.Background(), nil) + _require.Nil(err) + + defer testcommon.DeleteQueue(context.Background(), _require, queueClient) + + permissions := sas.QueuePermissions{ + Read: true, + Add: true, + Update: true, + } + + expiry := time.Now().Add(time.Hour) + + sasUrl, err := queueClient.GetSASURL(permissions, expiry, nil) + _require.Nil(err) + + queueClient1, err := azqueue.NewQueueClientWithNoCredential(sasUrl, nil) + _require.Nil(err) + + // enqueue 4 messages + for i := 0; i < 4; i++ { + _, err = queueClient1.EnqueueMessage(context.Background(), testcommon.QueueDefaultData, nil) + _require.Nil(err) + + } +} + +func (s *UnrecordedTestSuite) TestServiceSASDequeueMessage() { + _require := require.New(s.T()) + testName := s.T().Name() + accountName := os.Getenv("AZURE_STORAGE_ACCOUNT_NAME") + accountKey := os.Getenv("AZURE_STORAGE_ACCOUNT_KEY") + cred, err := azqueue.NewSharedKeyCredential(accountName, accountKey) + _require.Nil(err) + + serviceClient, err := azqueue.NewServiceClientWithSharedKeyCredential( + fmt.Sprintf("https://%s.queue.core.windows.net/", accountName), cred, nil) + _require.Nil(err) + + queueName := testcommon.GenerateQueueName(testName) + queueClient := serviceClient.NewQueueClient(queueName) + _, err = queueClient.Create(context.Background(), nil) + _require.Nil(err) + + defer testcommon.DeleteQueue(context.Background(), _require, queueClient) + + permissions := sas.QueuePermissions{ + Read: true, + Add: true, + Update: true, + Process: true, + } + + expiry := time.Now().Add(time.Hour) + + sasUrl, err := queueClient.GetSASURL(permissions, expiry, nil) + _require.Nil(err) + + queueClient1, err := azqueue.NewQueueClientWithNoCredential(sasUrl, nil) + _require.Nil(err) + + // enqueue 4 messages + for i := 0; i < 4; i++ { + _, err = queueClient1.EnqueueMessage(context.Background(), testcommon.QueueDefaultData, nil) + _require.Nil(err) + + } + // dequeue 4 messages + for i := 0; i < 4; i++ { + resp, err := queueClient1.DequeueMessage(context.Background(), nil) + _require.Nil(err) + _require.Equal(1, len(resp.Messages)) + _require.NotNil(resp.Messages[0].MessageID) + } + // should be 0 now + resp, err := queueClient1.DequeueMessage(context.Background(), nil) + _require.Equal(0, len(resp.Messages)) + _require.Nil(err) +} diff --git a/sdk/storage/azqueue/queueerror/error_codes.go b/sdk/storage/azqueue/queueerror/error_codes.go new file mode 100644 index 000000000000..3527c036f7f1 --- /dev/null +++ b/sdk/storage/azqueue/queueerror/error_codes.go @@ -0,0 +1,99 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package queueerror + +import ( + "errors" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/storage/azqueue/internal/generated" +) + +// HasCode returns true if the provided error is an *azcore.ResponseError +// with its ErrorCode field equal to one of the specified Codes. +func HasCode(err error, codes ...Code) bool { + var respErr *azcore.ResponseError + if !errors.As(err, &respErr) { + return false + } + + for _, code := range codes { + if respErr.ErrorCode == string(code) { + return true + } + } + + return false +} + +// Code - Error codes returned by the service +type Code = generated.StorageErrorCode + +const ( + AccountAlreadyExists Code = "AccountAlreadyExists" + AccountBeingCreated Code = "AccountBeingCreated" + AccountIsDisabled Code = "AccountIsDisabled" + AuthenticationFailed Code = "AuthenticationFailed" + AuthorizationFailure Code = "AuthorizationFailure" + AuthorizationPermissionMismatch Code = "AuthorizationPermissionMismatch" + AuthorizationProtocolMismatch Code = "AuthorizationProtocolMismatch" + AuthorizationResourceTypeMismatch Code = "AuthorizationResourceTypeMismatch" + AuthorizationServiceMismatch Code = "AuthorizationServiceMismatch" + AuthorizationSourceIPMismatch Code = "AuthorizationSourceIPMismatch" + ConditionHeadersNotSupported Code = "ConditionHeadersNotSupported" + ConditionNotMet Code = "ConditionNotMet" + EmptyMetadataKey Code = "EmptyMetadataKey" + FeatureVersionMismatch Code = "FeatureVersionMismatch" + InsufficientAccountPermissions Code = "InsufficientAccountPermissions" + InternalError Code = "InternalError" + InvalidAuthenticationInfo Code = "InvalidAuthenticationInfo" + InvalidHTTPVerb Code = "InvalidHttpVerb" + InvalidHeaderValue Code = "InvalidHeaderValue" + InvalidInput Code = "InvalidInput" + InvalidMD5 Code = "InvalidMd5" + InvalidMarker Code = "InvalidMarker" + InvalidMetadata Code = "InvalidMetadata" + InvalidQueryParameterValue Code = "InvalidQueryParameterValue" + InvalidRange Code = "InvalidRange" + InvalidResourceName Code = "InvalidResourceName" + InvalidURI Code = "InvalidUri" + InvalidXMLDocument Code = "InvalidXmlDocument" + InvalidXMLNodeValue Code = "InvalidXmlNodeValue" + MD5Mismatch Code = "Md5Mismatch" + MessageNotFound Code = "MessageNotFound" + MessageTooLarge Code = "MessageTooLarge" + MetadataTooLarge Code = "MetadataTooLarge" + MissingContentLengthHeader Code = "MissingContentLengthHeader" + MissingRequiredHeader Code = "MissingRequiredHeader" + MissingRequiredQueryParameter Code = "MissingRequiredQueryParameter" + MissingRequiredXMLNode Code = "MissingRequiredXmlNode" + MultipleConditionHeadersNotSupported Code = "MultipleConditionHeadersNotSupported" + OperationTimedOut Code = "OperationTimedOut" + OutOfRangeInput Code = "OutOfRangeInput" + OutOfRangeQueryParameterValue Code = "OutOfRangeQueryParameterValue" + PopReceiptMismatch Code = "PopReceiptMismatch" + QueueAlreadyExists Code = "QueueAlreadyExists" + QueueBeingDeleted Code = "QueueBeingDeleted" + QueueDisabled Code = "QueueDisabled" + QueueNotEmpty Code = "QueueNotEmpty" + QueueNotFound Code = "QueueNotFound" + RequestBodyTooLarge Code = "RequestBodyTooLarge" + RequestURLFailedToParse Code = "RequestUrlFailedToParse" + ResourceAlreadyExists Code = "ResourceAlreadyExists" + ResourceNotFound Code = "ResourceNotFound" + ResourceTypeMismatch Code = "ResourceTypeMismatch" + ServerBusy Code = "ServerBusy" + UnsupportedHTTPVerb Code = "UnsupportedHttpVerb" + UnsupportedHeader Code = "UnsupportedHeader" + UnsupportedQueryParameter Code = "UnsupportedQueryParameter" + UnsupportedXMLNode Code = "UnsupportedXmlNode" +) + +var ( + // MissingSharedKeyCredential - Error is returned when SAS URL is being created without SharedKeyCredential. + MissingSharedKeyCredential = errors.New("SAS can only be signed with a SharedKeyCredential") +) diff --git a/sdk/storage/azqueue/responses.go b/sdk/storage/azqueue/responses.go new file mode 100644 index 000000000000..70231c7ec9f6 --- /dev/null +++ b/sdk/storage/azqueue/responses.go @@ -0,0 +1,67 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package azqueue + +import ( + "github.com/Azure/azure-sdk-for-go/sdk/storage/azqueue/internal/generated" +) + +// CreateQueueResponse contains the response from method queue.ServiceClient.Create. +type CreateQueueResponse = generated.QueueClientCreateResponse + +// DeleteQueueResponse contains the response from method queue.ServiceClient.Delete +type DeleteQueueResponse = generated.QueueClientDeleteResponse + +// ListQueuesResponse contains the response from method ServiceClient.ListQueuesSegment. +type ListQueuesResponse = generated.ServiceClientListQueuesSegmentResponse + +// GetServicePropertiesResponse contains the response from method ServiceClient.GetServiceProperties. +type GetServicePropertiesResponse = generated.ServiceClientGetPropertiesResponse + +// SetPropertiesResponse contains the response from method ServiceClient.SetProperties. +type SetPropertiesResponse = generated.ServiceClientSetPropertiesResponse + +// GetStatisticsResponse contains the response from method ServiceClient.GetStatistics. +type GetStatisticsResponse = generated.ServiceClientGetStatisticsResponse + +//------------------------------------------ QUEUES ------------------------------------------------------------------- + +// CreateResponse contains the response from method QueueClient.Create. +type CreateResponse = generated.QueueClientCreateResponse + +// DeleteResponse contains the response from method QueueClient.Delete. +type DeleteResponse = generated.QueueClientDeleteResponse + +// SetMetadataResponse contains the response from method QueueClient.SetMetadata. +type SetMetadataResponse = generated.QueueClientSetMetadataResponse + +// GetAccessPolicyResponse contains the response from method QueueClient.GetAccessPolicy. +type GetAccessPolicyResponse = generated.QueueClientGetAccessPolicyResponse + +// SetAccessPolicyResponse contains the response from method QueueClient.SetAccessPolicy. +type SetAccessPolicyResponse = generated.QueueClientSetAccessPolicyResponse + +// GetQueuePropertiesResponse contains the response from method QueueClient.GetProperties. +type GetQueuePropertiesResponse = generated.QueueClientGetPropertiesResponse + +// EnqueueMessagesResponse contains the response from method QueueClient.EnqueueMessage. +type EnqueueMessagesResponse = generated.MessagesClientEnqueueResponse + +// DequeueMessagesResponse contains the response from method QueueClient.DequeueMessage or QueueClient.DequeueMessages. +type DequeueMessagesResponse = generated.MessagesClientDequeueResponse + +// UpdateMessageResponse contains the response from method QueueClient.UpdateMessage. +type UpdateMessageResponse = generated.MessageIDClientUpdateResponse + +// DeleteMessageResponse contains the response from method QueueClient.DeleteMessage. +type DeleteMessageResponse = generated.MessageIDClientDeleteResponse + +// PeekMessagesResponse contains the response from method QueueClient.PeekMessage or QueueClient.PeekMessages. +type PeekMessagesResponse = generated.MessagesClientPeekResponse + +// ClearMessagesResponse contains the response from method QueueClient.ClearMessages. +type ClearMessagesResponse = generated.MessagesClientClearResponse diff --git a/sdk/storage/azqueue/samples_test.go b/sdk/storage/azqueue/samples_test.go new file mode 100644 index 000000000000..e02c4475620e --- /dev/null +++ b/sdk/storage/azqueue/samples_test.go @@ -0,0 +1,295 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package azqueue_test + +import ( + "context" + "fmt" + "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/storage/azqueue" + "log" + "os" +) + +func handleError(err error) { + if err != nil { + log.Fatal(err.Error()) + } +} + +func Example_client_NewClient() { + // this example uses Azure Active Directory (AAD) to authenticate with Azure Queue Storage + accountName, ok := os.LookupEnv("AZURE_STORAGE_ACCOUNT_NAME") + if !ok { + panic("AZURE_STORAGE_ACCOUNT_NAME could not be found") + } + serviceURL := fmt.Sprintf("https://%s.queue.core.windows.net/", accountName) + + // https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azidentity#DefaultAzureCredential + cred, err := azidentity.NewDefaultAzureCredential(nil) + handleError(err) + + client, err := azqueue.NewServiceClient(serviceURL, cred, nil) + handleError(err) + + fmt.Println(client.URL()) +} + +func Example_client_NewClientWithSharedKeyCredential() { + // this example uses a shared key to authenticate with Azure queue Storage + accountName, ok := os.LookupEnv("AZURE_STORAGE_ACCOUNT_NAME") + if !ok { + panic("AZURE_STORAGE_ACCOUNT_NAME could not be found") + } + accountKey, ok := os.LookupEnv("AZURE_STORAGE_ACCOUNT_KEY") + if !ok { + panic("AZURE_STORAGE_ACCOUNT_KEY could not be found") + } + serviceURL := fmt.Sprintf("https://%s.queue.core.windows.net/", accountName) + + // shared key authentication requires the storage account name and access key + cred, err := azqueue.NewSharedKeyCredential(accountName, accountKey) + handleError(err) + serviceClient, err := azqueue.NewServiceClientWithSharedKeyCredential(serviceURL, cred, nil) + handleError(err) + fmt.Println(serviceClient.URL()) +} + +func Example_client_NewClientFromConnectionString() { + // this example uses a connection string to authenticate with Azure queue Storage + connectionString, ok := os.LookupEnv("AZURE_STORAGE_CONNECTION_STRING") + if !ok { + log.Fatal("the environment variable 'AZURE_STORAGE_CONNECTION_STRING' could not be found") + } + + serviceClient, err := azqueue.NewServiceClientFromConnectionString(connectionString, nil) + handleError(err) + fmt.Println(serviceClient.URL()) +} + +func Example_client_CreateQueue() { + accountName, ok := os.LookupEnv("AZURE_STORAGE_ACCOUNT_NAME") + if !ok { + panic("AZURE_STORAGE_ACCOUNT_NAME could not be found") + } + serviceURL := fmt.Sprintf("https://%s.queue.core.windows.net/", accountName) + + cred, err := azidentity.NewDefaultAzureCredential(nil) + handleError(err) + + client, err := azqueue.NewServiceClient(serviceURL, cred, nil) + handleError(err) + + resp, err := client.CreateQueue(context.TODO(), "testqueue", &azqueue.CreateOptions{ + Metadata: map[string]*string{"hello": to.Ptr("world")}, + }) + handleError(err) + fmt.Println(resp) + + // delete the queue + _, err = client.DeleteQueue(context.TODO(), "testqueue", nil) + handleError(err) + fmt.Println(resp) +} + +func Example_client_DeleteQueue() { + accountName, ok := os.LookupEnv("AZURE_STORAGE_ACCOUNT_NAME") + if !ok { + panic("AZURE_STORAGE_ACCOUNT_NAME could not be found") + } + serviceURL := fmt.Sprintf("https://%s.queue.core.windows.net/", accountName) + + cred, err := azidentity.NewDefaultAzureCredential(nil) + handleError(err) + + client, err := azqueue.NewServiceClient(serviceURL, cred, nil) + handleError(err) + + opts := &azqueue.DeleteOptions{} // or just pass nil to the method below + resp, err := client.DeleteQueue(context.TODO(), "testqueue", opts) + handleError(err) + fmt.Println(resp) +} + +func Example_client_NewListQueuesPager() { + accountName, ok := os.LookupEnv("AZURE_STORAGE_ACCOUNT_NAME") + if !ok { + panic("AZURE_STORAGE_ACCOUNT_NAME could not be found") + } + serviceURL := fmt.Sprintf("https://%s.queue.core.windows.net/", accountName) + + cred, err := azidentity.NewDefaultAzureCredential(nil) + handleError(err) + + client, err := azqueue.NewServiceClient(serviceURL, cred, nil) + handleError(err) + + pager := client.NewListQueuesPager(&azqueue.ListQueuesOptions{ + Include: azqueue.ListQueuesInclude{Metadata: true}, + }) + + // list pre-existing queues + for pager.More() { + resp, err := pager.NextPage(context.Background()) + handleError(err) // if err is not nil, break the loop. + for _, _queue := range resp.Queues { + fmt.Printf("%v", _queue) + } + } +} + +func Example_client_Enqueue_DequeueMessage() { + accountName, ok := os.LookupEnv("AZURE_STORAGE_ACCOUNT_NAME") + if !ok { + panic("AZURE_STORAGE_ACCOUNT_NAME could not be found") + } + serviceURL := fmt.Sprintf("https://%s.queue.core.windows.net/", accountName) + + cred, err := azidentity.NewDefaultAzureCredential(nil) + handleError(err) + + client, err := azqueue.NewServiceClient(serviceURL, cred, nil) + handleError(err) + + resp, err := client.CreateQueue(context.TODO(), "testqueue", &azqueue.CreateOptions{ + Metadata: map[string]*string{"hello": to.Ptr("world")}, + }) + handleError(err) + fmt.Println(resp) + + opts := &azqueue.EnqueueMessageOptions{TimeToLive: to.Ptr(int32(10))} + queueClient := client.NewQueueClient("testqueue") + resp1, err := queueClient.EnqueueMessage(context.Background(), "test content", opts) + handleError(err) + fmt.Println(resp1) + + resp2, err := queueClient.DequeueMessage(context.Background(), nil) + handleError(err) + // check message content + fmt.Println(resp2.Messages[0].MessageText) + + // delete the queue + _, err = client.DeleteQueue(context.TODO(), "testqueue", nil) + handleError(err) + fmt.Println(resp) +} + +func Example_client_PeekMessages() { + accountName, ok := os.LookupEnv("AZURE_STORAGE_ACCOUNT_NAME") + if !ok { + panic("AZURE_STORAGE_ACCOUNT_NAME could not be found") + } + serviceURL := fmt.Sprintf("https://%s.queue.core.windows.net/", accountName) + + cred, err := azidentity.NewDefaultAzureCredential(nil) + handleError(err) + + client, err := azqueue.NewServiceClient(serviceURL, cred, nil) + handleError(err) + + resp, err := client.CreateQueue(context.TODO(), "testqueue", &azqueue.CreateOptions{ + Metadata: map[string]*string{"hello": to.Ptr("world")}, + }) + handleError(err) + fmt.Println(resp) + + queueClient := client.NewQueueClient("testqueue") + + // enqueue 4 messages + for i := 0; i < 4; i++ { + resp1, err := queueClient.EnqueueMessage(context.Background(), "test content", nil) + handleError(err) + fmt.Println(resp1) + } + // only check 3 messages + opts := &azqueue.PeekMessagesOptions{NumberOfMessages: to.Ptr(int32(3))} + resp2, err := queueClient.PeekMessages(context.Background(), opts) + handleError(err) + // check 3 messages retrieved + fmt.Println(len(resp2.Messages)) + + // delete the queue + _, err = client.DeleteQueue(context.TODO(), "testqueue", nil) + handleError(err) + fmt.Println(resp) +} + +func Example_client_Update_Message() { + accountName, ok := os.LookupEnv("AZURE_STORAGE_ACCOUNT_NAME") + if !ok { + panic("AZURE_STORAGE_ACCOUNT_NAME could not be found") + } + serviceURL := fmt.Sprintf("https://%s.queue.core.windows.net/", accountName) + + cred, err := azidentity.NewDefaultAzureCredential(nil) + handleError(err) + + client, err := azqueue.NewServiceClient(serviceURL, cred, nil) + handleError(err) + + resp, err := client.CreateQueue(context.TODO(), "testqueue", &azqueue.CreateOptions{ + Metadata: map[string]*string{"hello": to.Ptr("world")}, + }) + handleError(err) + fmt.Println(resp) + + queueClient := client.NewQueueClient("testqueue") + resp1, err := queueClient.EnqueueMessage(context.Background(), "test content", nil) + handleError(err) + fmt.Println(resp1) + popReceipt := *resp1.Messages[0].PopReceipt + messageID := *resp1.Messages[0].MessageID + + opts := &azqueue.UpdateMessageOptions{} + _, err = queueClient.UpdateMessage(context.Background(), messageID, popReceipt, "new content", opts) + handleError(err) + + resp3, err := queueClient.DequeueMessage(context.Background(), nil) + handleError(err) + // check message content has updated + fmt.Println(resp3.Messages[0].MessageText) + + // delete the queue + _, err = client.DeleteQueue(context.TODO(), "testqueue", nil) + handleError(err) + fmt.Println(resp) +} + +func Example_client_Clear_Messages() { + accountName, ok := os.LookupEnv("AZURE_STORAGE_ACCOUNT_NAME") + if !ok { + panic("AZURE_STORAGE_ACCOUNT_NAME could not be found") + } + serviceURL := fmt.Sprintf("https://%s.queue.core.windows.net/", accountName) + + cred, err := azidentity.NewDefaultAzureCredential(nil) + handleError(err) + + client, err := azqueue.NewServiceClient(serviceURL, cred, nil) + handleError(err) + + resp, err := client.CreateQueue(context.TODO(), "testqueue", &azqueue.CreateOptions{ + Metadata: map[string]*string{"hello": to.Ptr("world")}, + }) + handleError(err) + fmt.Println(resp) + + queueClient := client.NewQueueClient("testqueue") + resp1, err := queueClient.EnqueueMessage(context.Background(), "test content", nil) + handleError(err) + fmt.Println(resp1) + + resp2, err := queueClient.ClearMessages(context.Background(), nil) + handleError(err) + fmt.Println(resp2) + + // delete the queue + _, err = client.DeleteQueue(context.TODO(), "testqueue", nil) + handleError(err) + fmt.Println(resp) +} diff --git a/sdk/storage/azqueue/sas/account.go b/sdk/storage/azqueue/sas/account.go new file mode 100644 index 000000000000..bcd0487aabc1 --- /dev/null +++ b/sdk/storage/azqueue/sas/account.go @@ -0,0 +1,199 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package sas + +import ( + "bytes" + "errors" + "fmt" + "strings" + "time" + + "github.com/Azure/azure-sdk-for-go/sdk/storage/azqueue/internal/exported" +) + +// SharedKeyCredential contains an account's name and its primary or secondary key. +type SharedKeyCredential = exported.SharedKeyCredential + +// AccountSignatureValues is used to generate a Shared Access Signature (SAS) for an Azure Storage account. +// For more information, see https://docs.microsoft.com/rest/api/storageservices/constructing-an-account-sas +type AccountSignatureValues struct { + Version string `param:"sv"` // If not specified, this format to SASVersion + Protocol Protocol `param:"spr"` // See the SASProtocol* constants + StartTime time.Time `param:"st"` // Not specified if IsZero + ExpiryTime time.Time `param:"se"` // Not specified if IsZero + Permissions string `param:"sp"` // Create by initializing a AccountSASPermissions and then call String() + IPRange IPRange `param:"sip"` + ResourceTypes string `param:"srt"` // Create by initializing AccountSASResourceTypes and then call String() +} + +// SignWithSharedKey uses an account's shared key credential to sign this signature values to produce +// the proper SAS query parameters. +func (v AccountSignatureValues) SignWithSharedKey(sharedKeyCredential *SharedKeyCredential) (QueryParameters, error) { + // https://docs.microsoft.com/en-us/rest/api/storageservices/Constructing-an-Account-SAS + if v.ExpiryTime.IsZero() || v.Permissions == "" || v.ResourceTypes == "" { + return QueryParameters{}, errors.New("account SAS is missing at least one of these: ExpiryTime, Permissions, Service, or ResourceType") + } + if v.Version == "" { + v.Version = Version + } + perms, err := parseAccountPermissions(v.Permissions) + if err != nil { + return QueryParameters{}, err + } + v.Permissions = perms.String() + + startTime, expiryTime := formatTimesForSigning(v.StartTime, v.ExpiryTime) + + stringToSign := strings.Join([]string{ + sharedKeyCredential.AccountName(), + v.Permissions, + "q", + v.ResourceTypes, + startTime, + expiryTime, + v.IPRange.String(), + string(v.Protocol), + v.Version, + ""}, // That is right, the account SAS requires a terminating extra newline + "\n") + + signature, err := exported.ComputeHMACSHA256(sharedKeyCredential, stringToSign) + if err != nil { + return QueryParameters{}, err + } + p := QueryParameters{ + // Common SAS parameters + version: v.Version, + protocol: v.Protocol, + startTime: v.StartTime, + expiryTime: v.ExpiryTime, + permissions: v.Permissions, + ipRange: v.IPRange, + + // Account-specific SAS parameters + services: "q", + resourceTypes: v.ResourceTypes, + + // Calculated SAS signature + signature: signature, + } + + return p, nil +} + +// AccountPermissions type simplifies creating the permissions string for an Azure Storage Account SAS. +// Initialize an instance of this type and then call its String method to set AccountSASSignatureValues' Permissions field. +type AccountPermissions struct { + Read, Write, Delete, DeletePreviousVersion, PermanentDelete, List, Add, Create, Update, Process, Tag, FilterByTags, SetImmutabilityPolicy bool +} + +// String produces the SAS permissions string for an Azure Storage account. +// Call this method to set AccountSASSignatureValues's Permissions field. +func (p *AccountPermissions) String() string { + var buffer bytes.Buffer + if p.Read { + buffer.WriteRune('r') + } + if p.Write { + buffer.WriteRune('w') + } + if p.Delete { + buffer.WriteRune('d') + } + if p.DeletePreviousVersion { + buffer.WriteRune('x') + } + if p.PermanentDelete { + buffer.WriteRune('y') + } + if p.List { + buffer.WriteRune('l') + } + if p.Add { + buffer.WriteRune('a') + } + if p.Create { + buffer.WriteRune('c') + } + if p.Update { + buffer.WriteRune('u') + } + if p.Process { + buffer.WriteRune('p') + } + if p.Tag { + buffer.WriteRune('t') + } + if p.FilterByTags { + buffer.WriteRune('f') + } + if p.SetImmutabilityPolicy { + buffer.WriteRune('i') + } + return buffer.String() +} + +// Parse initializes the AccountSASPermissions' fields from a string. +func parseAccountPermissions(s string) (AccountPermissions, error) { + p := AccountPermissions{} // Clear out the flags + for _, r := range s { + switch r { + case 'r': + p.Read = true + case 'w': + p.Write = true + case 'd': + p.Delete = true + case 'x': + p.DeletePreviousVersion = true + case 'y': + p.PermanentDelete = true + case 'l': + p.List = true + case 'a': + p.Add = true + case 'c': + p.Create = true + case 'u': + p.Update = true + case 'p': + p.Process = true + case 't': + p.Tag = true + case 'f': + p.FilterByTags = true + case 'i': + p.SetImmutabilityPolicy = true + default: + return AccountPermissions{}, fmt.Errorf("invalid permission character: '%v'", r) + } + } + return p, nil +} + +// AccountResourceTypes type simplifies creating the resource types string for an Azure Storage Account SAS. +// Initialize an instance of this type and then call its String method to set AccountSASSignatureValues' ResourceTypes field. +type AccountResourceTypes struct { + Service, Container, Object bool +} + +// String produces the SAS resource types string for an Azure Storage account. +// Call this method to set AccountSASSignatureValues' ResourceTypes field. +func (rt *AccountResourceTypes) String() string { + var buffer bytes.Buffer + if rt.Service { + buffer.WriteRune('s') + } + if rt.Container { + buffer.WriteRune('c') + } + if rt.Object { + buffer.WriteRune('o') + } + return buffer.String() +} diff --git a/sdk/storage/azqueue/sas/account_test.go b/sdk/storage/azqueue/sas/account_test.go new file mode 100644 index 000000000000..64cf84444f3e --- /dev/null +++ b/sdk/storage/azqueue/sas/account_test.go @@ -0,0 +1,137 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package sas + +import ( + "github.com/stretchr/testify/require" + "testing" +) + +func TestAccountPermissions_String(t *testing.T) { + testdata := []struct { + input AccountPermissions + expected string + }{ + {input: AccountPermissions{Read: true}, expected: "r"}, + {input: AccountPermissions{Write: true}, expected: "w"}, + {input: AccountPermissions{Delete: true}, expected: "d"}, + {input: AccountPermissions{DeletePreviousVersion: true}, expected: "x"}, + {input: AccountPermissions{PermanentDelete: true}, expected: "y"}, + {input: AccountPermissions{List: true}, expected: "l"}, + {input: AccountPermissions{Add: true}, expected: "a"}, + {input: AccountPermissions{Create: true}, expected: "c"}, + {input: AccountPermissions{Update: true}, expected: "u"}, + {input: AccountPermissions{Process: true}, expected: "p"}, + {input: AccountPermissions{Tag: true}, expected: "t"}, + {input: AccountPermissions{FilterByTags: true}, expected: "f"}, + {input: AccountPermissions{SetImmutabilityPolicy: true}, expected: "i"}, + {input: AccountPermissions{ + Read: true, + Write: true, + Delete: true, + DeletePreviousVersion: true, + PermanentDelete: true, + List: true, + Add: true, + Create: true, + Update: true, + Process: true, + Tag: true, + FilterByTags: true, + SetImmutabilityPolicy: true, + }, expected: "rwdxylacuptfi"}, + } + for _, c := range testdata { + require.Equal(t, c.expected, c.input.String()) + } +} + +func TestAccountPermissions_Parse(t *testing.T) { + testdata := []struct { + input string + expected AccountPermissions + }{ + {expected: AccountPermissions{Read: true}, input: "r"}, + {expected: AccountPermissions{Write: true}, input: "w"}, + {expected: AccountPermissions{Delete: true}, input: "d"}, + {expected: AccountPermissions{DeletePreviousVersion: true}, input: "x"}, + {expected: AccountPermissions{PermanentDelete: true}, input: "y"}, + {expected: AccountPermissions{List: true}, input: "l"}, + {expected: AccountPermissions{Add: true}, input: "a"}, + {expected: AccountPermissions{Create: true}, input: "c"}, + {expected: AccountPermissions{Update: true}, input: "u"}, + {expected: AccountPermissions{Process: true}, input: "p"}, + {expected: AccountPermissions{Tag: true}, input: "t"}, + {expected: AccountPermissions{FilterByTags: true}, input: "f"}, + {expected: AccountPermissions{SetImmutabilityPolicy: true}, input: "i"}, + {expected: AccountPermissions{ + Read: true, + Write: true, + Delete: true, + DeletePreviousVersion: true, + PermanentDelete: true, + List: true, + Add: true, + Create: true, + Update: true, + Process: true, + Tag: true, + FilterByTags: true, + SetImmutabilityPolicy: true, + }, input: "rwdxylacuptfi"}, + {expected: AccountPermissions{ + Read: true, + Write: true, + Delete: true, + DeletePreviousVersion: true, + PermanentDelete: true, + List: true, + Add: true, + Create: true, + Update: true, + Process: true, + Tag: true, + FilterByTags: true, + SetImmutabilityPolicy: true, + }, input: "trwlapdixfycu"}, + } + for _, c := range testdata { + permissions, err := parseAccountPermissions(c.input) + require.Nil(t, err) + require.Equal(t, c.expected, permissions) + } +} + +func TestAccountPermissions_ParseNegative(t *testing.T) { + _, err := parseAccountPermissions("trwlapdixfycuz") // Here 'z' is invalid + require.NotNil(t, err) + require.Contains(t, err.Error(), "122") +} + +func TestAccountResourceTypes_String(t *testing.T) { + testdata := []struct { + input AccountResourceTypes + expected string + }{ + {input: AccountResourceTypes{Service: true}, expected: "s"}, + {input: AccountResourceTypes{Container: true}, expected: "c"}, + {input: AccountResourceTypes{Object: true}, expected: "o"}, + {input: AccountResourceTypes{ + Service: true, + Container: true, + Object: true, + }, expected: "sco"}, + } + for _, c := range testdata { + require.Equal(t, c.expected, c.input.String()) + } +} + +// TODO: Sign With Shared Key +// Negative Case +// Version not provided +// SignWithSharedKey tests diff --git a/sdk/storage/azqueue/sas/query_params.go b/sdk/storage/azqueue/sas/query_params.go new file mode 100644 index 000000000000..6f64f6a243d5 --- /dev/null +++ b/sdk/storage/azqueue/sas/query_params.go @@ -0,0 +1,504 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package sas + +import ( + "errors" + "net" + "net/url" + "strings" + "time" +) + +// timeFormat represents the format of a SAS start or expiry time. Use it when formatting/parsing a time.Time. +const ( + timeFormat = "2006-01-02T15:04:05Z" // "2017-07-27T00:00:00Z" // ISO 8601 +) + +const ( + // Version is the default version encoded in the SAS token. + Version = "2020-02-10" +) + +// TimeFormats ISO 8601 format. +// Please refer to https://docs.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas for more details. +var timeFormats = []string{"2006-01-02T15:04:05.0000000Z", timeFormat, "2006-01-02T15:04Z", "2006-01-02"} + +// Protocol indicates the http/https. +type Protocol string + +const ( + // ProtocolHTTPS can be specified for a SAS protocol + ProtocolHTTPS Protocol = "https" + + // ProtocolHTTPSandHTTP can be specified for a SAS protocol + ProtocolHTTPSandHTTP Protocol = "https,http" +) + +// FormatTimesForSigning converts a time.Time to a snapshotTimeFormat string suitable for a +// Field's StartTime or ExpiryTime fields. Returns "" if value.IsZero(). +func formatTimesForSigning(startTime, expiryTime time.Time) (string, string) { + ss := "" + if !startTime.IsZero() { + ss = formatTimeWithDefaultFormat(&startTime) + } + se := "" + if !expiryTime.IsZero() { + se = formatTimeWithDefaultFormat(&expiryTime) + } + return ss, se +} + +// formatTimeWithDefaultFormat format time with ISO 8601 in "yyyy-MM-ddTHH:mm:ssZ". +func formatTimeWithDefaultFormat(t *time.Time) string { + return formatTime(t, timeFormat) // By default, "yyyy-MM-ddTHH:mm:ssZ" is used +} + +// formatTime format time with given format, use ISO 8601 in "yyyy-MM-ddTHH:mm:ssZ" by default. +func formatTime(t *time.Time, format string) string { + if format != "" { + return t.Format(format) + } + return t.Format(timeFormat) // By default, "yyyy-MM-ddTHH:mm:ssZ" is used +} + +// ParseTime try to parse a SAS time string. +func parseTime(val string) (t time.Time, timeFormat string, err error) { + for _, sasTimeFormat := range timeFormats { + t, err = time.Parse(sasTimeFormat, val) + if err == nil { + timeFormat = sasTimeFormat + break + } + } + + if err != nil { + err = errors.New("fail to parse time with IOS 8601 formats, please refer to https://docs.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas for more details") + } + + return +} + +// IPRange represents a SAS IP range's start IP and (optionally) end IP. +type IPRange struct { + Start net.IP // Not specified if length = 0 + End net.IP // Not specified if length = 0 +} + +// String returns a string representation of an IPRange. +func (ipr *IPRange) String() string { + if len(ipr.Start) == 0 { + return "" + } + start := ipr.Start.String() + if len(ipr.End) == 0 { + return start + } + return start + "-" + ipr.End.String() +} + +// https://docs.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas + +// QueryParameters object represents the components that make up an Azure Storage SAS' query parameters. +// You parse a map of query parameters into its fields by calling newQueryParameters(). You add the components +// to a query parameter map by calling AddToValues(). +// NOTE: Changing any field requires computing a new SAS signature using a XxxSASSignatureValues type. +// This type defines the components used by all Azure Storage resources (Containers, Blobs, Files, & Queues). +type QueryParameters struct { + // All members are immutable or values so copies of this struct are goroutine-safe. + version string `param:"sv"` + services string `param:"ss"` + resourceTypes string `param:"srt"` + protocol Protocol `param:"spr"` + startTime time.Time `param:"st"` + expiryTime time.Time `param:"se"` + snapshotTime time.Time `param:"snapshot"` + ipRange IPRange `param:"sip"` + identifier string `param:"si"` + resource string `param:"sr"` + permissions string `param:"sp"` + signature string `param:"sig"` + cacheControl string `param:"rscc"` + contentDisposition string `param:"rscd"` + contentEncoding string `param:"rsce"` + contentLanguage string `param:"rscl"` + contentType string `param:"rsct"` + signedOID string `param:"skoid"` + signedTID string `param:"sktid"` + signedStart time.Time `param:"skt"` + signedService string `param:"sks"` + signedExpiry time.Time `param:"ske"` + signedVersion string `param:"skv"` + signedDirectoryDepth string `param:"sdd"` + authorizedObjectID string `param:"saoid"` + unauthorizedObjectID string `param:"suoid"` + correlationID string `param:"scid"` + // private member used for startTime and expiryTime formatting. + stTimeFormat string + seTimeFormat string +} + +// AuthorizedObjectID returns authorizedObjectID +func (p *QueryParameters) AuthorizedObjectID() string { + return p.authorizedObjectID +} + +// UnauthorizedObjectID returns unauthorizedObjectID +func (p *QueryParameters) UnauthorizedObjectID() string { + return p.unauthorizedObjectID +} + +// SignedCorrelationID returns signedCorrelationID +func (p *QueryParameters) SignedCorrelationID() string { + return p.correlationID +} + +// SignedOID returns signedOID +func (p *QueryParameters) SignedOID() string { + return p.signedOID +} + +// SignedTID returns signedTID +func (p *QueryParameters) SignedTID() string { + return p.signedTID +} + +// SignedStart returns signedStart +func (p *QueryParameters) SignedStart() time.Time { + return p.signedStart +} + +// SignedExpiry returns signedExpiry +func (p *QueryParameters) SignedExpiry() time.Time { + return p.signedExpiry +} + +// SignedService returns signedService +func (p *QueryParameters) SignedService() string { + return p.signedService +} + +// SignedVersion returns signedVersion +func (p *QueryParameters) SignedVersion() string { + return p.signedVersion +} + +// SnapshotTime returns snapshotTime +func (p *QueryParameters) SnapshotTime() time.Time { + return p.snapshotTime +} + +// Version returns version +func (p *QueryParameters) Version() string { + return p.version +} + +// Services returns services +func (p *QueryParameters) Services() string { + return p.services +} + +// ResourceTypes returns resourceTypes +func (p *QueryParameters) ResourceTypes() string { + return p.resourceTypes +} + +// Protocol returns protocol +func (p *QueryParameters) Protocol() Protocol { + return p.protocol +} + +// StartTime returns startTime +func (p *QueryParameters) StartTime() time.Time { + return p.startTime +} + +// ExpiryTime returns expiryTime +func (p *QueryParameters) ExpiryTime() time.Time { + return p.expiryTime +} + +// IPRange returns ipRange +func (p *QueryParameters) IPRange() IPRange { + return p.ipRange +} + +// Identifier returns identifier +func (p *QueryParameters) Identifier() string { + return p.identifier +} + +// Resource returns resource +func (p *QueryParameters) Resource() string { + return p.resource +} + +// Permissions returns permissions +func (p *QueryParameters) Permissions() string { + return p.permissions +} + +// Signature returns signature +func (p *QueryParameters) Signature() string { + return p.signature +} + +// CacheControl returns cacheControl +func (p *QueryParameters) CacheControl() string { + return p.cacheControl +} + +// ContentDisposition returns contentDisposition +func (p *QueryParameters) ContentDisposition() string { + return p.contentDisposition +} + +// ContentEncoding returns contentEncoding +func (p *QueryParameters) ContentEncoding() string { + return p.contentEncoding +} + +// ContentLanguage returns contentLanguage +func (p *QueryParameters) ContentLanguage() string { + return p.contentLanguage +} + +// ContentType returns sontentType +func (p *QueryParameters) ContentType() string { + return p.contentType +} + +// SignedDirectoryDepth returns signedDirectoryDepth +func (p *QueryParameters) SignedDirectoryDepth() string { + return p.signedDirectoryDepth +} + +// Encode encodes the SAS query parameters into URL encoded form sorted by key. +func (p *QueryParameters) Encode() string { + v := url.Values{} + + if p.version != "" { + v.Add("sv", p.version) + } + if p.services != "" { + v.Add("ss", p.services) + } + if p.resourceTypes != "" { + v.Add("srt", p.resourceTypes) + } + if p.protocol != "" { + v.Add("spr", string(p.protocol)) + } + if !p.startTime.IsZero() { + v.Add("st", formatTime(&(p.startTime), p.stTimeFormat)) + } + if !p.expiryTime.IsZero() { + v.Add("se", formatTime(&(p.expiryTime), p.seTimeFormat)) + } + if len(p.ipRange.Start) > 0 { + v.Add("sip", p.ipRange.String()) + } + if p.identifier != "" { + v.Add("si", p.identifier) + } + if p.resource != "" { + v.Add("sr", p.resource) + } + if p.permissions != "" { + v.Add("sp", p.permissions) + } + if p.signedOID != "" { + v.Add("skoid", p.signedOID) + v.Add("sktid", p.signedTID) + v.Add("skt", p.signedStart.Format(timeFormat)) + v.Add("ske", p.signedExpiry.Format(timeFormat)) + v.Add("sks", p.signedService) + v.Add("skv", p.signedVersion) + } + if p.signature != "" { + v.Add("sig", p.signature) + } + if p.cacheControl != "" { + v.Add("rscc", p.cacheControl) + } + if p.contentDisposition != "" { + v.Add("rscd", p.contentDisposition) + } + if p.contentEncoding != "" { + v.Add("rsce", p.contentEncoding) + } + if p.contentLanguage != "" { + v.Add("rscl", p.contentLanguage) + } + if p.contentType != "" { + v.Add("rsct", p.contentType) + } + if p.signedDirectoryDepth != "" { + v.Add("sdd", p.signedDirectoryDepth) + } + if p.authorizedObjectID != "" { + v.Add("saoid", p.authorizedObjectID) + } + if p.unauthorizedObjectID != "" { + v.Add("suoid", p.unauthorizedObjectID) + } + if p.correlationID != "" { + v.Add("scid", p.correlationID) + } + + return v.Encode() +} + +// NewQueryParameters creates and initializes a QueryParameters object based on the +// query parameter map's passed-in values. If a key is unrecognized, it is ignored +func NewQueryParameters(values url.Values) QueryParameters { + p := QueryParameters{} + for k, v := range values { + val := v[0] + switch strings.ToLower(k) { + case "sv": + p.version = val + case "ss": + p.services = val + case "srt": + p.resourceTypes = val + case "spr": + p.protocol = Protocol(val) + case "st": + p.startTime, p.stTimeFormat, _ = parseTime(val) + case "se": + p.expiryTime, p.seTimeFormat, _ = parseTime(val) + case "sip": + dashIndex := strings.Index(val, "-") + if dashIndex == -1 { + p.ipRange.Start = net.ParseIP(val) + } else { + p.ipRange.Start = net.ParseIP(val[:dashIndex]) + p.ipRange.End = net.ParseIP(val[dashIndex+1:]) + } + case "si": + p.identifier = val + case "sr": + p.resource = val + case "sp": + p.permissions = val + case "sig": + p.signature = val + case "rscc": + p.cacheControl = val + case "rscd": + p.contentDisposition = val + case "rsce": + p.contentEncoding = val + case "rscl": + p.contentLanguage = val + case "rsct": + p.contentType = val + case "skoid": + p.signedOID = val + case "sktid": + p.signedTID = val + case "skt": + p.signedStart, _ = time.Parse(timeFormat, val) + case "ske": + p.signedExpiry, _ = time.Parse(timeFormat, val) + case "sks": + p.signedService = val + case "skv": + p.signedVersion = val + case "sdd": + p.signedDirectoryDepth = val + case "saoid": + p.authorizedObjectID = val + case "suoid": + p.unauthorizedObjectID = val + case "scid": + p.correlationID = val + default: + continue // query param didn't get recognized + } + } + return p +} + +// newQueryParameters creates and initializes a QueryParameters object based on the +// query parameter map's passed-in values. If deleteSASParametersFromValues is true, +// all SAS-related query parameters are removed from the passed-in map. If +// deleteSASParametersFromValues is false, the map passed-in map is unaltered. +func newQueryParameters(values url.Values, deleteSASParametersFromValues bool) QueryParameters { + p := QueryParameters{} + for k, v := range values { + val := v[0] + isSASKey := true + switch strings.ToLower(k) { + case "sv": + p.version = val + case "ss": + p.services = val + case "srt": + p.resourceTypes = val + case "spr": + p.protocol = Protocol(val) + case "st": + p.startTime, p.stTimeFormat, _ = parseTime(val) + case "se": + p.expiryTime, p.seTimeFormat, _ = parseTime(val) + case "sip": + dashIndex := strings.Index(val, "-") + if dashIndex == -1 { + p.ipRange.Start = net.ParseIP(val) + } else { + p.ipRange.Start = net.ParseIP(val[:dashIndex]) + p.ipRange.End = net.ParseIP(val[dashIndex+1:]) + } + case "si": + p.identifier = val + case "sr": + p.resource = val + case "sp": + p.permissions = val + case "sig": + p.signature = val + case "rscc": + p.cacheControl = val + case "rscd": + p.contentDisposition = val + case "rsce": + p.contentEncoding = val + case "rscl": + p.contentLanguage = val + case "rsct": + p.contentType = val + case "skoid": + p.signedOID = val + case "sktid": + p.signedTID = val + case "skt": + p.signedStart, _ = time.Parse(timeFormat, val) + case "ske": + p.signedExpiry, _ = time.Parse(timeFormat, val) + case "sks": + p.signedService = val + case "skv": + p.signedVersion = val + case "sdd": + p.signedDirectoryDepth = val + case "saoid": + p.authorizedObjectID = val + case "suoid": + p.unauthorizedObjectID = val + case "scid": + p.correlationID = val + default: + isSASKey = false // We didn't recognize the query parameter + } + if isSASKey && deleteSASParametersFromValues { + delete(values, k) + } + } + return p +} diff --git a/sdk/storage/azqueue/sas/query_params_test.go b/sdk/storage/azqueue/sas/query_params_test.go new file mode 100644 index 000000000000..eb2a710ddd5b --- /dev/null +++ b/sdk/storage/azqueue/sas/query_params_test.go @@ -0,0 +1,242 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package sas + +import ( + "fmt" + "net" + "net/url" + "strings" + "testing" + "time" + + "github.com/stretchr/testify/require" +) + +func TestFormatTimesForSigning(t *testing.T) { + testdata := []struct { + inputStart time.Time + inputEnd time.Time + inputSnapshot time.Time + expectedStart string + expectedEnd string + expectedSnapshot string + }{ + {expectedStart: "", expectedEnd: "", expectedSnapshot: ""}, + {inputStart: time.Date(1955, 6, 25, 22, 15, 56, 345456, time.UTC), expectedStart: "1955-06-25T22:15:56Z", expectedEnd: "", expectedSnapshot: ""}, + {inputEnd: time.Date(2023, 4, 5, 8, 50, 27, 4500, time.UTC), expectedStart: "", expectedEnd: "2023-04-05T08:50:27Z", expectedSnapshot: ""}, + {inputSnapshot: time.Date(2021, 1, 5, 22, 15, 33, 1234879, time.UTC), expectedStart: "", expectedEnd: "", expectedSnapshot: "2021-01-05T22:15:33.0012348Z"}, + { + inputStart: time.Date(1955, 6, 25, 22, 15, 56, 345456, time.UTC), + inputEnd: time.Date(2023, 4, 5, 8, 50, 27, 4500, time.UTC), + inputSnapshot: time.Date(2021, 1, 5, 22, 15, 33, 1234879, time.UTC), + expectedStart: "1955-06-25T22:15:56Z", + expectedEnd: "2023-04-05T08:50:27Z", + expectedSnapshot: "2021-01-05T22:15:33.0012348Z", + }, + } + for _, c := range testdata { + start, end := formatTimesForSigning(c.inputStart, c.inputEnd) + require.Equal(t, c.expectedStart, start) + require.Equal(t, c.expectedEnd, end) + } +} + +func TestFormatTimeWithDefaultFormat(t *testing.T) { + testdata := []struct { + input time.Time + expectedTime string + }{ + {input: time.Date(1955, 4, 5, 8, 50, 27, 4500, time.UTC), expectedTime: "1955-04-05T08:50:27Z"}, + {input: time.Date(1917, 3, 9, 16, 22, 56, 0, time.UTC), expectedTime: "1917-03-09T16:22:56Z"}, + {input: time.Date(2021, 1, 5, 22, 15, 0, 0, time.UTC), expectedTime: "2021-01-05T22:15:00Z"}, + {input: time.Date(2023, 6, 25, 0, 0, 0, 0, time.UTC), expectedTime: "2023-06-25T00:00:00Z"}, + } + for _, c := range testdata { + formattedTime := formatTimeWithDefaultFormat(&c.input) + require.Equal(t, c.expectedTime, formattedTime) + } +} + +func TestFormatTime(t *testing.T) { + testdata := []struct { + input time.Time + format string + expectedTime string + }{ + {input: time.Date(1955, 4, 5, 8, 50, 27, 4500, time.UTC), format: "2006-01-02T15:04:05.0000000Z", expectedTime: "1955-04-05T08:50:27.0000045Z"}, + {input: time.Date(1955, 4, 5, 8, 50, 27, 4500, time.UTC), format: "", expectedTime: "1955-04-05T08:50:27Z"}, + {input: time.Date(1917, 3, 9, 16, 22, 56, 0, time.UTC), format: "2006-01-02T15:04:05Z", expectedTime: "1917-03-09T16:22:56Z"}, + {input: time.Date(1917, 3, 9, 16, 22, 56, 0, time.UTC), format: "", expectedTime: "1917-03-09T16:22:56Z"}, + {input: time.Date(2021, 1, 5, 22, 15, 0, 0, time.UTC), format: "2006-01-02T15:04Z", expectedTime: "2021-01-05T22:15Z"}, + {input: time.Date(2021, 1, 5, 22, 15, 0, 0, time.UTC), format: "", expectedTime: "2021-01-05T22:15:00Z"}, + {input: time.Date(2023, 6, 25, 0, 0, 0, 0, time.UTC), format: "2006-01-02", expectedTime: "2023-06-25"}, + {input: time.Date(2023, 6, 25, 0, 0, 0, 0, time.UTC), format: "", expectedTime: "2023-06-25T00:00:00Z"}, + } + for _, c := range testdata { + formattedTime := formatTime(&c.input, c.format) + require.Equal(t, c.expectedTime, formattedTime) + } +} + +func TestParseTime(t *testing.T) { + testdata := []struct { + input string + expectedTime time.Time + expectedFormat string + }{ + {input: "1955-04-05T08:50:27.0000045Z", expectedTime: time.Date(1955, 4, 5, 8, 50, 27, 4500, time.UTC), expectedFormat: "2006-01-02T15:04:05.0000000Z"}, + {input: "1917-03-09T16:22:56Z", expectedTime: time.Date(1917, 3, 9, 16, 22, 56, 0, time.UTC), expectedFormat: "2006-01-02T15:04:05Z"}, + {input: "2021-01-05T22:15Z", expectedTime: time.Date(2021, 1, 5, 22, 15, 0, 0, time.UTC), expectedFormat: "2006-01-02T15:04Z"}, + {input: "2023-06-25", expectedTime: time.Date(2023, 6, 25, 0, 0, 0, 0, time.UTC), expectedFormat: "2006-01-02"}, + } + for _, c := range testdata { + parsedTime, format, err := parseTime(c.input) + require.Nil(t, err) + require.Equal(t, c.expectedTime, parsedTime) + require.Equal(t, c.expectedFormat, format) + } +} + +func TestParseTimeNegative(t *testing.T) { + _, _, err := parseTime("notatime") + require.Error(t, err, "fail to parse time with IOS 8601 formats, please refer to https://docs.microsoft.com/en-us/rest/api/storageservices/constructing-a-service-sas for more details") +} + +func TestIPRange_String(t *testing.T) { + testdata := []struct { + inputStart net.IP + inputEnd net.IP + expected string + }{ + {expected: ""}, + {inputStart: net.IPv4(10, 255, 0, 0), expected: "10.255.0.0"}, + {inputStart: net.IPv4(10, 255, 0, 0), inputEnd: net.IPv4(10, 255, 0, 50), expected: "10.255.0.0-10.255.0.50"}, + } + for _, c := range testdata { + var ipRange IPRange + if c.inputStart != nil { + ipRange.Start = c.inputStart + } + if c.inputEnd != nil { + ipRange.End = c.inputEnd + } + require.Equal(t, c.expected, ipRange.String()) + } +} + +func TestSAS(t *testing.T) { + // Note: This is a totally invalid fake SAS, this is just testing our ability to parse different query parameters on a SAS + const sas = "sv=2019-12-12&sr=b&st=2111-01-09T01:42:34.936Z&se=2222-03-09T01:42:34.936Z&sp=rw&sip=168.1.5.60-168.1.5.70&spr=https,http&si=myIdentifier&ss=bf&srt=s&rscc=cc&rscd=cd&rsce=ce&rscl=cl&rsct=ct&skoid=oid&sktid=tid&skt=2111-01-09T01:42:34.936Z&ske=2222-03-09T01:42:34.936Z&sks=s&skv=v&sdd=3&saoid=oid&suoid=oid&scid=cid&sig=clNxbtnkKSHw7f3KMEVVc4agaszoRFdbZr%2FWBmPNsrw%3D" + _url := fmt.Sprintf("https://teststorageaccount.blob.core.windows.net/testcontainer/testpath?%s", sas) + _uri, err := url.Parse(_url) + require.NoError(t, err) + sasQueryParams := newQueryParameters(_uri.Query(), true) + validateSAS(t, sas, sasQueryParams) +} + +func validateSAS(t *testing.T, sas string, parameters QueryParameters) { + sasCompMap := make(map[string]string) + for _, sasComp := range strings.Split(sas, "&") { + comp := strings.Split(sasComp, "=") + sasCompMap[comp[0]] = comp[1] + } + + require.Equal(t, parameters.Version(), sasCompMap["sv"]) + require.Equal(t, parameters.Services(), sasCompMap["ss"]) + require.Equal(t, parameters.ResourceTypes(), sasCompMap["srt"]) + require.Equal(t, string(parameters.Protocol()), sasCompMap["spr"]) + if _, ok := sasCompMap["st"]; ok { + startTime, _, err := parseTime(sasCompMap["st"]) + require.NoError(t, err) + require.Equal(t, parameters.StartTime(), startTime) + } + if _, ok := sasCompMap["se"]; ok { + endTime, _, err := parseTime(sasCompMap["se"]) + require.NoError(t, err) + require.Equal(t, parameters.ExpiryTime(), endTime) + } + + if _, ok := sasCompMap["snapshot"]; ok { + snapshotTime, _, err := parseTime(sasCompMap["snapshot"]) + require.NoError(t, err) + require.Equal(t, parameters.SnapshotTime(), snapshotTime) + } + ipRange := parameters.IPRange() + require.Equal(t, ipRange.String(), sasCompMap["sip"]) + require.Equal(t, parameters.Identifier(), sasCompMap["si"]) + require.Equal(t, parameters.Resource(), sasCompMap["sr"]) + require.Equal(t, parameters.Permissions(), sasCompMap["sp"]) + + sign, err := url.QueryUnescape(sasCompMap["sig"]) + require.NoError(t, err) + + require.Equal(t, parameters.Signature(), sign) + require.Equal(t, parameters.CacheControl(), sasCompMap["rscc"]) + require.Equal(t, parameters.ContentDisposition(), sasCompMap["rscd"]) + require.Equal(t, parameters.ContentEncoding(), sasCompMap["rsce"]) + require.Equal(t, parameters.ContentLanguage(), sasCompMap["rscl"]) + require.Equal(t, parameters.ContentType(), sasCompMap["rsct"]) + require.Equal(t, parameters.SignedOID(), sasCompMap["skoid"]) + require.Equal(t, parameters.SignedTID(), sasCompMap["sktid"]) + + if _, ok := sasCompMap["skt"]; ok { + signedStart, _, err := parseTime(sasCompMap["skt"]) + require.NoError(t, err) + require.Equal(t, parameters.SignedStart(), signedStart) + } + require.Equal(t, parameters.SignedService(), sasCompMap["sks"]) + + if _, ok := sasCompMap["ske"]; ok { + signedExpiry, _, err := parseTime(sasCompMap["ske"]) + require.NoError(t, err) + require.Equal(t, parameters.SignedExpiry(), signedExpiry) + } + + require.Equal(t, parameters.SignedVersion(), sasCompMap["skv"]) + require.Equal(t, parameters.SignedDirectoryDepth(), sasCompMap["sdd"]) + require.Equal(t, parameters.AuthorizedObjectID(), sasCompMap["saoid"]) + require.Equal(t, parameters.UnauthorizedObjectID(), sasCompMap["suoid"]) + require.Equal(t, parameters.SignedCorrelationID(), sasCompMap["scid"]) +} + +func TestSASInvalidQueryParameter(t *testing.T) { + // Signature is invalid below + const sas = "sv=2019-12-12&signature=clNxbtnkKSHw7f3KMEVVc4agaszoRFdbZr%2FWBmPNsrw%3D&sr=b" + _url := fmt.Sprintf("https://teststorageaccount.blob.core.windows.net/testcontainer/testpath?%s", sas) + _uri, err := url.Parse(_url) + require.NoError(t, err) + newQueryParameters(_uri.Query(), true) + // newQueryParameters should not delete signature + require.Contains(t, _uri.Query(), "signature") +} + +func TestEncode(t *testing.T) { + // Note: This is a totally invalid fake SAS, this is just testing our ability to parse different query parameters on a SAS + expected := "rscc=cc&rscd=cd&rsce=ce&rscl=cl&rsct=ct&saoid=oid&scid=cid&sdd=3&se=2222-03-09T01%3A42%3A34Z&si=myIdentifier&sig=clNxbtnkKSHw7f3KMEVVc4agaszoRFdbZr%2FWBmPNsrw%3D&sip=168.1.5.60-168.1.5.70&ske=2222-03-09T01%3A42%3A34Z&skoid=oid&sks=s&skt=2111-01-09T01%3A42%3A34Z&sktid=tid&skv=v&sp=rw&spr=https%2Chttp&sr=b&srt=sco&ss=bf&st=2111-01-09T01%3A42%3A34Z&suoid=oid&sv=2019-12-12" + randomOrder := "sdd=3&scid=cid&se=2222-03-09T01:42:34.936Z&rsce=ce&ss=bf&skoid=oid&si=myIdentifier&ske=2222-03-09T01:42:34.936Z&saoid=oid&sip=168.1.5.60-168.1.5.70&rscc=cc&srt=sco&sig=clNxbtnkKSHw7f3KMEVVc4agaszoRFdbZr%2FWBmPNsrw%3D&rsct=ct&skt=2111-01-09T01:42:34.936Z&rscl=cl&suoid=oid&sv=2019-12-12&sr=b&st=2111-01-09T01:42:34.936Z&rscd=cd&sp=rw&sktid=tid&spr=https,http&sks=s&skv=v" + testdata := []string{expected, randomOrder} + + for _, sas := range testdata { + _url := fmt.Sprintf("https://teststorageaccount.blob.core.windows.net/testcontainer/testpath?%s", sas) + _uri, err := url.Parse(_url) + require.NoError(t, err) + queryParams := newQueryParameters(_uri.Query(), true) + require.Equal(t, expected, queryParams.Encode()) + } +} + +func TestSASInvalidQueryParameterExported(t *testing.T) { + // Signature is invalid below + const sas = "sv=2019-12-12&signature=clNxbtnkKSHw7f3KMEVVc4agaszoRFdbZr%2FWBmPNsrw%3D&sr=b" + _url := fmt.Sprintf("https://teststorageaccount.blob.core.windows.net/testcontainer/testpath?%s", sas) + _uri, err := url.Parse(_url) + require.NoError(t, err) + NewQueryParameters(_uri.Query()) + // newQueryParameters should not delete signature + require.Contains(t, _uri.Query(), "signature") +} diff --git a/sdk/storage/azqueue/sas/service.go b/sdk/storage/azqueue/sas/service.go new file mode 100644 index 000000000000..79e7a7ab4b07 --- /dev/null +++ b/sdk/storage/azqueue/sas/service.go @@ -0,0 +1,132 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package sas + +import ( + "bytes" + "fmt" + "strings" + "time" + + "github.com/Azure/azure-sdk-for-go/sdk/storage/azqueue/internal/exported" +) + +// QueueSignatureValues is used to generate a Shared Access Signature (SAS) for an Azure Storage Queue. +// For more information on creating service sas, see https://docs.microsoft.com/rest/api/storageservices/constructing-a-service-sas +// Delegation SAS not supported for queues service +type QueueSignatureValues struct { + Version string `param:"sv"` // If not specified, this defaults to Version + Protocol Protocol `param:"spr"` // See the Protocol* constants + StartTime time.Time `param:"st"` // Not specified if IsZero + ExpiryTime time.Time `param:"se"` // Not specified if IsZero + Permissions string `param:"sp"` // Create by initializing a QueuePermissions and then call String() + IPRange IPRange `param:"sip"` + Identifier string `param:"si"` + QueueName string +} + +// SignWithSharedKey uses an account's SharedKeyCredential to sign this signature values to produce the proper SAS query parameters. +func (v QueueSignatureValues) SignWithSharedKey(sharedKeyCredential *SharedKeyCredential) (QueryParameters, error) { + if sharedKeyCredential == nil { + return QueryParameters{}, fmt.Errorf("cannot sign SAS query without Shared Key Credential") + } + + //Make sure the permission characters are in the correct order + perms, err := parseQueuePermissions(v.Permissions) + if err != nil { + return QueryParameters{}, err + } + v.Permissions = perms.String() + if v.Version == "" { + v.Version = Version + } + startTime, expiryTime := formatTimesForSigning(v.StartTime, v.ExpiryTime) + + signedIdentifier := v.Identifier + + // String to sign: http://msdn.microsoft.com/en-us/library/azure/dn140255.aspx + stringToSign := strings.Join([]string{ + v.Permissions, + startTime, + expiryTime, + getCanonicalName(sharedKeyCredential.AccountName(), v.QueueName), + signedIdentifier, + v.IPRange.String(), + string(v.Protocol), + v.Version}, + "\n") + + signature, err := exported.ComputeHMACSHA256(sharedKeyCredential, stringToSign) + if err != nil { + return QueryParameters{}, err + } + + p := QueryParameters{ + // Common SAS parameters + version: v.Version, + protocol: v.Protocol, + startTime: v.StartTime, + expiryTime: v.ExpiryTime, + permissions: v.Permissions, + ipRange: v.IPRange, + // Calculated SAS signature + signature: signature, + } + + return p, nil +} + +// getCanonicalName computes the canonical name for a queue resource for SAS signing. +func getCanonicalName(account string, queueName string) string { + elements := []string{"/queue/", account, "/", queueName} + return strings.Join(elements, "") +} + +// QueuePermissions type simplifies creating the permissions string for an Azure Storage Queue SAS. +// Initialize an instance of this type and then call its String method to set QueueSASSignatureValues' Permissions field. +type QueuePermissions struct { + Read, Add, Update, Process bool +} + +// String produces the SAS permissions string for an Azure Storage Queue. +// Call this method to set QueueSASSignatureValues' Permissions field. +func (p *QueuePermissions) String() string { + var b bytes.Buffer + if p.Read { + b.WriteRune('r') + } + if p.Add { + b.WriteRune('a') + } + if p.Update { + b.WriteRune('u') + } + if p.Process { + b.WriteRune('p') + } + return b.String() +} + +// Parse initializes the QueueSASPermissions' fields from a string. +func parseQueuePermissions(s string) (QueuePermissions, error) { + p := QueuePermissions{} + for _, r := range s { + switch r { + case 'r': + p.Read = true + case 'a': + p.Add = true + case 'u': + p.Update = true + case 'p': + p.Process = true + default: + return QueuePermissions{}, fmt.Errorf("invalid permission: '%v'", r) + } + } + return p, nil +} diff --git a/sdk/storage/azqueue/sas/service_test.go b/sdk/storage/azqueue/sas/service_test.go new file mode 100644 index 000000000000..be8d401f5bf7 --- /dev/null +++ b/sdk/storage/azqueue/sas/service_test.go @@ -0,0 +1,81 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package sas + +import ( + "github.com/stretchr/testify/require" + "testing" +) + +func TestQueuePermissions_String(t *testing.T) { + testdata := []struct { + input QueuePermissions + expected string + }{ + {input: QueuePermissions{Read: true}, expected: "r"}, + {input: QueuePermissions{Add: true}, expected: "a"}, + {input: QueuePermissions{Update: true}, expected: "u"}, + {input: QueuePermissions{Process: true}, expected: "p"}, + {input: QueuePermissions{ + Read: true, + Add: true, + Update: true, + Process: true, + }, expected: "raup"}, + } + for _, c := range testdata { + require.Equal(t, c.expected, c.input.String()) + } +} + +func TestQueuePermissions_Parse(t *testing.T) { + testdata := []struct { + input string + expected QueuePermissions + }{ + {expected: QueuePermissions{Read: true}, input: "r"}, + {expected: QueuePermissions{Add: true}, input: "a"}, + {expected: QueuePermissions{Update: true}, input: "u"}, + {expected: QueuePermissions{Process: true}, input: "p"}, + {expected: QueuePermissions{ + Read: true, + Add: true, + Update: true, + Process: true, + }, input: "raup"}, + {expected: QueuePermissions{ + Read: true, + Add: true, + Update: true, + Process: true, + }, input: "puar"}, // Wrong order parses correctly + } + for _, c := range testdata { + permissions, err := parseQueuePermissions(c.input) + require.Nil(t, err) + require.Equal(t, c.expected, permissions) + } +} + +func TestQueuePermissions_ParseNegative(t *testing.T) { + _, err := parseQueuePermissions("puatr") // Here 't' is invalid + require.NotNil(t, err) + require.Contains(t, err.Error(), "116") +} + +func TestGetCanonicalName(t *testing.T) { + testdata := []struct { + inputAccount string + inputQueue string + expected string + }{ + {inputAccount: "fakestorageaccount", inputQueue: "fakestoragequeue", expected: "/queue/fakestorageaccount/fakestoragequeue"}, + } + for _, c := range testdata { + require.Equal(t, c.expected, getCanonicalName(c.inputAccount, c.inputQueue)) + } +} diff --git a/sdk/storage/azqueue/sas/url_parts.go b/sdk/storage/azqueue/sas/url_parts.go new file mode 100644 index 000000000000..99e0732f9d15 --- /dev/null +++ b/sdk/storage/azqueue/sas/url_parts.go @@ -0,0 +1,98 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package sas + +import ( + "net/url" + "strings" + + "github.com/Azure/azure-sdk-for-go/sdk/storage/azqueue/internal/shared" +) + +// IPEndpointStyleInfo is used for IP endpoint style URL when working with Azure storage emulator. +// Ex: "https://10.132.141.33/accountname/queuename" +type IPEndpointStyleInfo struct { + AccountName string // "" if not using IP endpoint style +} + +// URLParts object represents the components that make up an Azure Storage Queue URL. +// NOTE: Changing any SAS-related field requires computing a new SAS signature. +type URLParts struct { + Scheme string // Ex: "https://" + Host string // Ex: "account.queue.core.windows.net", "10.132.141.33", "10.132.141.33:80" + IPEndpointStyleInfo IPEndpointStyleInfo + QueueName string // "" if no queue + SAS QueryParameters + UnparsedParams string +} + +// ParseURL parses a URL initializing URLParts' fields including any SAS-related query parameters. +// Any other query parameters remain in the UnparsedParams field. +func ParseURL(u string) (URLParts, error) { + uri, err := url.Parse(u) + if err != nil { + return URLParts{}, err + } + + up := URLParts{ + Scheme: uri.Scheme, + Host: uri.Host, + } + + // Find the queue name (if any) + if uri.Path != "" { + path := uri.Path + if path[0] == '/' { + path = path[1:] // If path starts with a slash, remove it + } + if shared.IsIPEndpointStyle(up.Host) { + if accountEndIndex := strings.Index(path, "/"); accountEndIndex == -1 { // Slash not found; path has account name & no queue name + up.IPEndpointStyleInfo.AccountName = path + path = "" // No queue name present in the URL so path should be empty + } else { + up.IPEndpointStyleInfo.AccountName = path[:accountEndIndex] // The account name is the part between the slashes + path = path[accountEndIndex+1:] // path refers to portion after the account name now (queue name) + } + } + up.QueueName = path + } + + // Convert the query parameters to a case-sensitive map & trim whitespace + paramsMap := uri.Query() + up.SAS = newQueryParameters(paramsMap, true) + up.UnparsedParams = paramsMap.Encode() + return up, nil +} + +// String returns a URL object whose fields are initialized from the URLParts fields. The URL's RawQuery +// field contains the SAS and unparsed query parameters. +func (up URLParts) String() string { + path := "" + if shared.IsIPEndpointStyle(up.Host) && up.IPEndpointStyleInfo.AccountName != "" { + path += "/" + up.IPEndpointStyleInfo.AccountName + } + // Concatenate queue name + if up.QueueName != "" { + path += "/" + up.QueueName + } + + rawQuery := up.UnparsedParams + sas := up.SAS.Encode() + if sas != "" { + if len(rawQuery) > 0 { + rawQuery += "&" + } + rawQuery += sas + } + u := url.URL{ + Scheme: up.Scheme, + Host: up.Host, + Path: path, + RawQuery: rawQuery, + } + return u.String() +} diff --git a/sdk/storage/azqueue/sas/url_parts_test.go b/sdk/storage/azqueue/sas/url_parts_test.go new file mode 100644 index 000000000000..c8db5de2ad94 --- /dev/null +++ b/sdk/storage/azqueue/sas/url_parts_test.go @@ -0,0 +1,56 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package sas + +import ( + "fmt" + "testing" + + "github.com/stretchr/testify/require" +) + +func TestParseURLIPStyle(t *testing.T) { + urlWithIP := "https://127.0.0.1:5000/fakestorageaccount" + queueURLParts, err := ParseURL(urlWithIP) + require.NoError(t, err) + require.Equal(t, queueURLParts.Scheme, "https") + require.Equal(t, queueURLParts.Host, "127.0.0.1:5000") + require.Equal(t, queueURLParts.IPEndpointStyleInfo.AccountName, "fakestorageaccount") + + urlWithIP = "https://127.0.0.1:5000/fakestorageaccount/fakequeue" + queueURLParts, err = ParseURL(urlWithIP) + require.NoError(t, err) + require.Equal(t, queueURLParts.Scheme, "https") + require.Equal(t, queueURLParts.Host, "127.0.0.1:5000") + require.Equal(t, queueURLParts.IPEndpointStyleInfo.AccountName, "fakestorageaccount") + require.Equal(t, queueURLParts.QueueName, "fakequeue") + + urlWithIP = "https://127.0.0.1:5000/fakestorageaccount/fakequeue" + queueURLParts, err = ParseURL(urlWithIP) + require.NoError(t, err) + require.Equal(t, queueURLParts.Scheme, "https") + require.Equal(t, queueURLParts.Host, "127.0.0.1:5000") + require.Equal(t, queueURLParts.IPEndpointStyleInfo.AccountName, "fakestorageaccount") + require.Equal(t, queueURLParts.QueueName, "fakequeue") +} + +func TestParseURL(t *testing.T) { + testStorageAccount := "fakestorageaccount" + host := fmt.Sprintf("%s.queue.core.windows.net", testStorageAccount) + testQueue := "fakequeue" + + const sasStr = "sv=2019-12-12&sr=b&st=2111-01-09T01:42:34.936Z&se=2222-03-09T01:42:34.936Z&sp=rw&sip=168.1.5.60-168.1.5.70&spr=https,http&si=myIdentifier&ss=bf&srt=s&sig=clNxbtnkKSHw7f3KMEVVc4agaszoRFdbZr%2FWBmPNsrw%3D" + + urlWithVersion := fmt.Sprintf("https://%s.queue.core.windows.net/%s?%s", testStorageAccount, testQueue, sasStr) + queueURLParts, err := ParseURL(urlWithVersion) + require.NoError(t, err) + + require.Equal(t, queueURLParts.Scheme, "https") + require.Equal(t, queueURLParts.Host, host) + require.Equal(t, queueURLParts.QueueName, testQueue) + validateSAS(t, sasStr, queueURLParts.SAS) +} diff --git a/sdk/storage/azqueue/service_client.go b/sdk/storage/azqueue/service_client.go new file mode 100644 index 000000000000..3782de662219 --- /dev/null +++ b/sdk/storage/azqueue/service_client.go @@ -0,0 +1,223 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package azqueue + +import ( + "context" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/storage/azqueue/internal/base" + "github.com/Azure/azure-sdk-for-go/sdk/storage/azqueue/internal/exported" + "github.com/Azure/azure-sdk-for-go/sdk/storage/azqueue/internal/generated" + "github.com/Azure/azure-sdk-for-go/sdk/storage/azqueue/internal/shared" + "github.com/Azure/azure-sdk-for-go/sdk/storage/azqueue/queueerror" + "github.com/Azure/azure-sdk-for-go/sdk/storage/azqueue/sas" + "net/http" + "net/url" + "strings" + "time" +) + +// ClientOptions contains the optional parameters when creating a ServiceClient or QueueClient. +type ClientOptions struct { + azcore.ClientOptions +} + +// ServiceClient represents a URL to the Azure Queue Storage service allowing you to manipulate queues. +type ServiceClient base.Client[generated.ServiceClient] + +// NewServiceClient creates an instance of ServiceClient with the specified values. +// - serviceURL - the URL of the storage account e.g. https://.queue.core.windows.net/ +// - cred - an Azure AD credential, typically obtained via the azidentity module +// - options - client options; pass nil to accept the default values +func NewServiceClient(serviceURL string, cred azcore.TokenCredential, options *ClientOptions) (*ServiceClient, error) { + authPolicy := runtime.NewBearerTokenPolicy(cred, []string{shared.TokenScope}, nil) + conOptions := shared.GetClientOptions(options) + conOptions.PerRetryPolicies = append(conOptions.PerRetryPolicies, authPolicy) + pl := runtime.NewPipeline(exported.ModuleName, exported.ModuleVersion, runtime.PipelineOptions{}, &conOptions.ClientOptions) + + return (*ServiceClient)(base.NewServiceClient(serviceURL, pl, nil)), nil +} + +// NewServiceClientWithNoCredential creates an instance of ServiceClient with the specified values. +// This is used to anonymously access a storage account or with a shared access signature (SAS) token. +// - serviceURL - the URL of the storage account e.g. https://.queue.core.windows.net/? +// - options - client options; pass nil to accept the default values +func NewServiceClientWithNoCredential(serviceURL string, options *ClientOptions) (*ServiceClient, error) { + conOptions := shared.GetClientOptions(options) + pl := runtime.NewPipeline(exported.ModuleName, exported.ModuleVersion, runtime.PipelineOptions{}, &conOptions.ClientOptions) + + return (*ServiceClient)(base.NewServiceClient(serviceURL, pl, nil)), nil +} + +// NewServiceClientWithSharedKeyCredential creates an instance of ServiceClient with the specified values. +// - serviceURL - the URL of the storage account e.g. https://.queue.core.windows.net/ +// - cred - a SharedKeyCredential created with the matching storage account and access key +// - options - client options; pass nil to accept the default values +func NewServiceClientWithSharedKeyCredential(serviceURL string, cred *SharedKeyCredential, options *ClientOptions) (*ServiceClient, error) { + authPolicy := exported.NewSharedKeyCredPolicy(cred) + conOptions := shared.GetClientOptions(options) + conOptions.PerRetryPolicies = append(conOptions.PerRetryPolicies, authPolicy) + pl := runtime.NewPipeline(exported.ModuleName, exported.ModuleVersion, runtime.PipelineOptions{}, &conOptions.ClientOptions) + + return (*ServiceClient)(base.NewServiceClient(serviceURL, pl, cred)), nil +} + +// NewServiceClientFromConnectionString creates an instance of ServiceClient with the specified values. +// - connectionString - a connection string for the desired storage account +// - options - client options; pass nil to accept the default values +func NewServiceClientFromConnectionString(connectionString string, options *ClientOptions) (*ServiceClient, error) { + parsed, err := shared.ParseConnectionString(connectionString) + if err != nil { + return nil, err + } + + if parsed.AccountKey != "" && parsed.AccountName != "" { + credential, err := exported.NewSharedKeyCredential(parsed.AccountName, parsed.AccountKey) + if err != nil { + return nil, err + } + return NewServiceClientWithSharedKeyCredential(parsed.ServiceURL, credential, options) + } + + return NewServiceClientWithNoCredential(parsed.ServiceURL, options) +} + +func (s *ServiceClient) generated() *generated.ServiceClient { + return base.InnerClient((*base.Client[generated.ServiceClient])(s)) +} + +func (s *ServiceClient) sharedKey() *SharedKeyCredential { + return base.SharedKey((*base.Client[generated.ServiceClient])(s)) +} + +// URL returns the URL endpoint used by the ServiceClient object. +func (s *ServiceClient) URL() string { + return s.generated().Endpoint() +} + +// GetServiceProperties - gets the properties of a storage account's Queue service, including properties for Storage Analytics +// and CORS (Cross-Origin Resource Sharing) rules. +func (s *ServiceClient) GetServiceProperties(ctx context.Context, o *GetServicePropertiesOptions) (GetServicePropertiesResponse, error) { + getPropertiesOptions := o.format() + resp, err := s.generated().GetProperties(ctx, getPropertiesOptions) + return resp, err +} + +// SetProperties Sets the properties of a storage account's Queue service, including Azure Storage Analytics. +// If an element (e.g. analytics_logging) is left as None, the existing settings on the service for that functionality are preserved. +func (s *ServiceClient) SetProperties(ctx context.Context, o *SetPropertiesOptions) (SetPropertiesResponse, error) { + properties, setPropertiesOptions := o.format() + resp, err := s.generated().SetProperties(ctx, properties, setPropertiesOptions) + return resp, err +} + +// GetStatistics Retrieves statistics related to replication for the Queue service. +func (s *ServiceClient) GetStatistics(ctx context.Context, o *GetStatisticsOptions) (GetStatisticsResponse, error) { + getStatisticsOptions := o.format() + resp, err := s.generated().GetStatistics(ctx, getStatisticsOptions) + + return resp, err +} + +// NewListQueuesPager operation returns a pager of the queues under the specified account. +// Use an empty Marker to start enumeration from the beginning. Queue names are returned in lexicographic order. +// For more information, see https://learn.microsoft.com/en-us/rest/api/storageservices/list-queues1. +func (s *ServiceClient) NewListQueuesPager(o *ListQueuesOptions) *runtime.Pager[ListQueuesResponse] { + listOptions := generated.ServiceClientListQueuesSegmentOptions{} + if o != nil { + if o.Include.Metadata { + listOptions.Include = append(listOptions.Include, "metadata") + } + listOptions.Marker = o.Marker + listOptions.Maxresults = o.MaxResults + listOptions.Prefix = o.Prefix + } + return runtime.NewPager(runtime.PagingHandler[ListQueuesResponse]{ + More: func(page ListQueuesResponse) bool { + return page.NextMarker != nil && len(*page.NextMarker) > 0 + }, + Fetcher: func(ctx context.Context, page *ListQueuesResponse) (ListQueuesResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = s.generated().ListQueuesSegmentCreateRequest(ctx, &listOptions) + } else { + listOptions.Marker = page.NextMarker + req, err = s.generated().ListQueuesSegmentCreateRequest(ctx, &listOptions) + } + if err != nil { + return ListQueuesResponse{}, err + } + resp, err := s.generated().Pipeline().Do(req) + if err != nil { + return ListQueuesResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return ListQueuesResponse{}, runtime.NewResponseError(resp) + } + return s.generated().ListQueuesSegmentHandleResponse(resp) + }, + }) +} + +// NewQueueClient creates a new QueueClient object by concatenating queueName to the end of +// this Client's URL. The new QueueClient uses the same request policy pipeline as the Client. +func (s *ServiceClient) NewQueueClient(queueName string) *QueueClient { + queueName = url.PathEscape(queueName) + queueURL := runtime.JoinPaths(s.URL(), queueName) + return (*QueueClient)(base.NewQueueClient(queueURL, s.generated().Pipeline(), s.sharedKey())) +} + +// CreateQueue creates a new queue within a storage account. If a queue with the same name already exists, the operation fails. +// For more information, see https://learn.microsoft.com/en-us/rest/api/storageservices/create-queue4. +func (s *ServiceClient) CreateQueue(ctx context.Context, queueName string, options *CreateOptions) (CreateResponse, error) { + queueName = url.PathEscape(queueName) + queueURL := runtime.JoinPaths(s.URL(), queueName) + qC := (*QueueClient)(base.NewQueueClient(queueURL, s.generated().Pipeline(), s.sharedKey())) + return qC.Create(ctx, options) +} + +// DeleteQueue deletes the specified queue. +// For more information, see https://learn.microsoft.com/en-us/rest/api/storageservices/delete-queue3. +func (s *ServiceClient) DeleteQueue(ctx context.Context, queueName string, options *DeleteOptions) (DeleteResponse, error) { + queueName = url.PathEscape(queueName) + queueURL := runtime.JoinPaths(s.URL(), queueName) + qC := (*QueueClient)(base.NewQueueClient(queueURL, s.generated().Pipeline(), s.sharedKey())) + return qC.Delete(ctx, options) +} + +// GetSASURL is a convenience method for generating a SAS token for the currently pointed at account. +// It can only be used if the credential supplied during creation was a SharedKeyCredential. +// This validity can be checked with CanGetAccountSASToken(). +func (s *ServiceClient) GetSASURL(resources sas.AccountResourceTypes, permissions sas.AccountPermissions, expiry time.Time, o *GetSASURLOptions) (string, error) { + if s.sharedKey() == nil { + return "", queueerror.MissingSharedKeyCredential + } + st := o.format() + qps, err := sas.AccountSignatureValues{ + Version: sas.Version, + Protocol: sas.ProtocolHTTPS, + Permissions: permissions.String(), + ResourceTypes: resources.String(), + StartTime: st, + ExpiryTime: expiry.UTC(), + }.SignWithSharedKey(s.sharedKey()) + if err != nil { + return "", err + } + + endpoint := s.URL() + if !strings.HasSuffix(endpoint, "/") { + // add a trailing slash to be consistent with the portal + endpoint += "/" + } + endpoint += "?" + qps.Encode() + + return endpoint, nil +} diff --git a/sdk/storage/azqueue/service_client_test.go b/sdk/storage/azqueue/service_client_test.go new file mode 100644 index 000000000000..373f1dc72dcd --- /dev/null +++ b/sdk/storage/azqueue/service_client_test.go @@ -0,0 +1,673 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package azqueue_test + +import ( + "context" + "fmt" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" + "github.com/Azure/azure-sdk-for-go/sdk/storage/azqueue" + "github.com/Azure/azure-sdk-for-go/sdk/storage/azqueue/internal/shared" + "github.com/Azure/azure-sdk-for-go/sdk/storage/azqueue/internal/testcommon" + "github.com/Azure/azure-sdk-for-go/sdk/storage/azqueue/queueerror" + "github.com/Azure/azure-sdk-for-go/sdk/storage/azqueue/sas" + "github.com/stretchr/testify/require" + "github.com/stretchr/testify/suite" + "os" + "testing" + "time" +) + +func Test(t *testing.T) { + recordMode := recording.GetRecordMode() + t.Logf("Running service Tests in %s mode\n", recordMode) + if recordMode == recording.LiveMode { + suite.Run(t, &RecordedTestSuite{}) + suite.Run(t, &UnrecordedTestSuite{}) + } else if recordMode == recording.PlaybackMode { + suite.Run(t, &RecordedTestSuite{}) + } else if recordMode == recording.RecordingMode { + suite.Run(t, &RecordedTestSuite{}) + } +} + +func (s *RecordedTestSuite) BeforeTest(suite string, test string) { + testcommon.BeforeTest(s.T(), suite, test) +} + +func (s *RecordedTestSuite) AfterTest(suite string, test string) { + testcommon.AfterTest(s.T(), suite, test) +} + +func (s *UnrecordedTestSuite) BeforeTest(suite string, test string) { + +} + +func (s *UnrecordedTestSuite) AfterTest(suite string, test string) { + +} + +type RecordedTestSuite struct { + suite.Suite +} + +type UnrecordedTestSuite struct { + suite.Suite +} + +func (s *UnrecordedTestSuite) TestServiceClientFromConnectionString() { + _require := require.New(s.T()) + //testName := s.T().Name() + + accountName, _ := testcommon.GetAccountInfo(testcommon.TestAccountDefault) + connectionString := testcommon.GetConnectionString(testcommon.TestAccountDefault) + + parsedConnStr, err := shared.ParseConnectionString(connectionString) + _require.Nil(err) + _require.Equal(parsedConnStr.ServiceURL, "https://"+accountName+".queue.core.windows.net/") + + sharedKeyCred, err := azqueue.NewSharedKeyCredential(parsedConnStr.AccountName, parsedConnStr.AccountKey) + _require.Nil(err) + + svcClient, err := azqueue.NewServiceClientWithSharedKeyCredential(parsedConnStr.ServiceURL, sharedKeyCred, nil) + _require.Nil(err) + + sProps, err := svcClient.GetServiceProperties(context.Background(), nil) + _require.Nil(err) + _require.NotZero(sProps) +} + +func (s *UnrecordedTestSuite) TestServiceClientFromConnectionString1() { + _require := require.New(s.T()) + + connectionString := testcommon.GetConnectionString(testcommon.TestAccountDefault) + + svcClient, err := azqueue.NewServiceClientFromConnectionString(connectionString, nil) + _require.Nil(err) + + sProps, err := svcClient.GetServiceProperties(context.Background(), nil) + _require.Nil(err) + _require.NotZero(sProps) +} + +func (s *RecordedTestSuite) TestSetPropertiesLogging() { + _require := require.New(s.T()) + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + days := to.Ptr[int32](5) + enabled := to.Ptr(true) + + loggingOpts := azqueue.Logging{ + Read: enabled, Write: enabled, Delete: enabled, + RetentionPolicy: &azqueue.RetentionPolicy{Enabled: enabled, Days: days}} + opts := azqueue.SetPropertiesOptions{Logging: &loggingOpts} + _, err = svcClient.SetProperties(context.Background(), &opts) + + _require.Nil(err) + resp1, err := svcClient.GetServiceProperties(context.Background(), nil) + + _require.Nil(err) + _require.Equal(resp1.Logging.Write, enabled) + _require.Equal(resp1.Logging.Read, enabled) + _require.Equal(resp1.Logging.Delete, enabled) + _require.Equal(resp1.Logging.RetentionPolicy.Days, days) + _require.Equal(resp1.Logging.RetentionPolicy.Enabled, enabled) +} + +func (s *RecordedTestSuite) TestSetPropertiesHourMetrics() { + _require := require.New(s.T()) + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + days := to.Ptr[int32](5) + enabled := to.Ptr(true) + + metricsOpts := azqueue.Metrics{ + Enabled: enabled, IncludeAPIs: enabled, RetentionPolicy: &azqueue.RetentionPolicy{Enabled: enabled, Days: days}} + opts := azqueue.SetPropertiesOptions{HourMetrics: &metricsOpts} + _, err = svcClient.SetProperties(context.Background(), &opts) + + _require.Nil(err) + resp1, err := svcClient.GetServiceProperties(context.Background(), nil) + + _require.Nil(err) + _require.Equal(resp1.HourMetrics.Enabled, enabled) + _require.Equal(resp1.HourMetrics.IncludeAPIs, enabled) + _require.Equal(resp1.HourMetrics.RetentionPolicy.Days, days) + _require.Equal(resp1.HourMetrics.RetentionPolicy.Enabled, enabled) +} + +func (s *RecordedTestSuite) TestSetPropertiesMinuteMetrics() { + _require := require.New(s.T()) + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + days := to.Ptr[int32](5) + enabled := to.Ptr(true) + + metricsOpts := azqueue.Metrics{ + Enabled: enabled, IncludeAPIs: enabled, RetentionPolicy: &azqueue.RetentionPolicy{Enabled: enabled, Days: days}} + opts := azqueue.SetPropertiesOptions{MinuteMetrics: &metricsOpts} + _, err = svcClient.SetProperties(context.Background(), &opts) + + _require.Nil(err) + resp1, err := svcClient.GetServiceProperties(context.Background(), nil) + + _require.Nil(err) + _require.Equal(resp1.MinuteMetrics.Enabled, enabled) + _require.Equal(resp1.MinuteMetrics.IncludeAPIs, enabled) + _require.Equal(resp1.MinuteMetrics.RetentionPolicy.Days, days) + _require.Equal(resp1.MinuteMetrics.RetentionPolicy.Enabled, enabled) +} + +func (s *RecordedTestSuite) TestSetPropertiesSetQueueCORS() { + _require := require.New(s.T()) + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + defaultAge := to.Ptr[int32](500) + defaultStr := to.Ptr[string]("") + + allowedOrigins1 := "www.xyz.com" + allowedMethods1 := "GET" + CORSOpts1 := &azqueue.CORSRule{AllowedOrigins: &allowedOrigins1, AllowedMethods: &allowedMethods1} + + allowedOrigins2 := "www.xyz.com,www.ab.com,www.bc.com" + allowedMethods2 := "GET, PUT" + maxAge2 := to.Ptr[int32](500) + exposedHeaders2 := "x-ms-meta-data*,x-ms-meta-source*,x-ms-meta-abc,x-ms-meta-bcd" + allowedHeaders2 := "x-ms-meta-data*,x-ms-meta-target*,x-ms-meta-xyz,x-ms-meta-foo" + + CORSOpts2 := &azqueue.CORSRule{ + AllowedOrigins: &allowedOrigins2, AllowedMethods: &allowedMethods2, + MaxAgeInSeconds: maxAge2, ExposedHeaders: &exposedHeaders2, AllowedHeaders: &allowedHeaders2} + + CORSRules := []*azqueue.CORSRule{CORSOpts1, CORSOpts2} + + opts := azqueue.SetPropertiesOptions{CORS: CORSRules} + _, err = svcClient.SetProperties(context.Background(), &opts) + + _require.Nil(err) + resp, err := svcClient.GetServiceProperties(context.Background(), nil) + for i := 0; i < len(resp.CORS); i++ { + if resp.CORS[i].AllowedOrigins == &allowedOrigins1 { + _require.Equal(resp.CORS[i].AllowedMethods, &allowedMethods1) + _require.Equal(resp.CORS[i].MaxAgeInSeconds, defaultAge) + _require.Equal(resp.CORS[i].ExposedHeaders, defaultStr) + _require.Equal(resp.CORS[i].AllowedHeaders, defaultStr) + + } else if resp.CORS[i].AllowedOrigins == &allowedOrigins2 { + _require.Equal(resp.CORS[i].AllowedMethods, &allowedMethods2) + _require.Equal(resp.CORS[i].MaxAgeInSeconds, &maxAge2) + _require.Equal(resp.CORS[i].ExposedHeaders, &exposedHeaders2) + _require.Equal(resp.CORS[i].AllowedHeaders, &allowedHeaders2) + } + } + _require.NoError(err) +} + +func (s *RecordedTestSuite) TestServiceGetProperties() { + _require := require.New(s.T()) + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + // Ensure the call succeeded. Don't test for specific account properties because we can't/don't want to set account properties. + sProps, err := svcClient.GetServiceProperties(context.Background(), nil) + _require.Nil(err) + _require.NotZero(sProps) +} + +func (s *RecordedTestSuite) TestServiceCreateQueue() { + _require := require.New(s.T()) + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + testName := s.T().Name() + queueName := testcommon.GenerateQueueName(testName) + queueClient := svcClient.NewQueueClient(queueName) + defer testcommon.DeleteQueue(context.Background(), _require, queueClient) + + resp, err := svcClient.CreateQueue(context.Background(), queueName, nil) + _require.Nil(err) + _require.NotZero(resp) +} + +func (s *RecordedTestSuite) TestServiceCreateQueueWithMetadata() { + _require := require.New(s.T()) + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + testName := s.T().Name() + queueName := testcommon.GenerateQueueName(testName) + queueClient := svcClient.NewQueueClient(queueName) + defer testcommon.DeleteQueue(context.Background(), _require, queueClient) + opts := azqueue.CreateOptions{Metadata: testcommon.BasicMetadata} + + resp, err := svcClient.CreateQueue(context.Background(), queueName, &opts) + _require.Nil(err) + _require.NotZero(resp) +} + +func (s *RecordedTestSuite) TestServiceDeleteQueue() { + _require := require.New(s.T()) + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + testName := s.T().Name() + queueName := testcommon.GenerateQueueName(testName) + createResp, err := svcClient.CreateQueue(context.Background(), queueName, nil) + _require.Nil(err) + _require.NotZero(createResp) + + delResp, err := svcClient.DeleteQueue(context.Background(), queueName, nil) + _require.Nil(err) + _require.NotZero(delResp) +} + +func (s *RecordedTestSuite) TestServiceListQueuesWithMetadata() { + _require := require.New(s.T()) + testName := s.T().Name() + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.Nil(err) + md := map[string]*string{ + "foo": to.Ptr("foovalue"), + "bar": to.Ptr("barvalue"), + } + + queueName := testcommon.GenerateQueueName(testName) + queueClient := testcommon.GetQueueClient(queueName, svcClient) + _, err = queueClient.Create(context.Background(), &azqueue.CreateOptions{Metadata: md}) + defer func(queueClient *azqueue.QueueClient, ctx context.Context, options *azqueue.DeleteOptions) { + _, err := queueClient.Delete(ctx, options) + if err != nil { + _require.Nil(err) + } + }(queueClient, context.Background(), nil) + _require.Nil(err) + listOptions := azqueue.ListQueuesOptions{Include: azqueue.ListQueuesInclude{Metadata: true}} + pager := svcClient.NewListQueuesPager(&listOptions) + + exists := false + for pager.More() { + resp, err := pager.NextPage(context.Background()) + _require.Nil(err) + for _, queue := range resp.Queues { + _require.NotNil(queue.Name) + if *queue.Name == queueName { + _require.NotNil(queue.Metadata) + unwrappedMeta := map[string]*string{} + for k, v := range queue.Metadata { + if v != nil { + unwrappedMeta[k] = v + } + } + _require.EqualValues(unwrappedMeta, md) + exists = true + } + } + if err != nil { + break + } + } + + _require.Nil(err) + _require.True(exists) +} + +func (s *RecordedTestSuite) TestServiceListQueuesPagination() { + _require := require.New(s.T()) + testName := s.T().Name() + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.Nil(err) + + queueName := testcommon.GenerateQueueName(testName) + queueNames := []string{queueName + "1", queueName + "2", queueName + "3"} + + for i := 0; i < len(queueNames); i++ { + _, err := svcClient.CreateQueue(context.Background(), queueNames[i], nil) + if err != nil { + _require.Nil(err) + } + } + // cleanup created queues + defer func(queueNames []string, ctx context.Context, options *azqueue.DeleteOptions) { + for i := 0; i < len(queueNames); i++ { + _, err := svcClient.DeleteQueue(ctx, queueNames[i], nil) + if err != nil { + _require.Nil(err) + } + } + }(queueNames, context.Background(), nil) + _require.Nil(err) + pager := svcClient.NewListQueuesPager(&azqueue.ListQueuesOptions{MaxResults: to.Ptr(int32(1))}) + + count := 0 + for pager.More() { + resp, err := pager.NextPage(context.Background()) + _require.Nil(err) + for _, queue := range resp.Queues { + _require.NotNil(queue.Name) + count += 1 + } + if err != nil { + break + } + } + // greater or equal since storage account might have more than the 3 queues created above + _require.GreaterOrEqual(count, 3) +} + +func (s *RecordedTestSuite) TestServiceListQueuesPaginationEmptyPrefix() { + _require := require.New(s.T()) + testName := s.T().Name() + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + queueClient1 := testcommon.CreateNewQueue(context.Background(), _require, testcommon.GenerateQueueName(testName)+"1", svcClient) + defer testcommon.DeleteQueue(context.Background(), _require, queueClient1) + queueClient2 := testcommon.CreateNewQueue(context.Background(), _require, testcommon.GenerateQueueName(testName)+"2", svcClient) + defer testcommon.DeleteQueue(context.Background(), _require, queueClient2) + + count := 0 + pager := svcClient.NewListQueuesPager(nil) + + for pager.More() { + resp, err := pager.NextPage(context.Background()) + _require.Nil(err) + + for _, queue := range resp.Queues { + count++ + _require.NotNil(queue.Name) + } + if err != nil { + break + } + } + _require.GreaterOrEqual(count, 2) +} + +func (s *RecordedTestSuite) TestServiceListQueuesPaged() { + _require := require.New(s.T()) + testName := s.T().Name() + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.Nil(err) + const numQueues = 6 + maxResults := int32(2) + const pagedqueuesPrefix = "azqueuepaged" + + queues := make([]*azqueue.QueueClient, numQueues) + expectedResults := make(map[string]bool) + for i := 0; i < numQueues; i++ { + queueName := pagedqueuesPrefix + testcommon.GenerateQueueName(testName) + fmt.Sprintf("%d", i) + queueClient := testcommon.CreateNewQueue(context.Background(), _require, queueName, svcClient) + queues[i] = queueClient + expectedResults[queueName] = false + } + + defer func() { + for i := range queues { + testcommon.DeleteQueue(context.Background(), _require, queues[i]) + } + }() + + prefix := pagedqueuesPrefix + testcommon.QueuePrefix + listOptions := azqueue.ListQueuesOptions{MaxResults: &maxResults, Prefix: &prefix, Include: azqueue.ListQueuesInclude{Metadata: true}} + count := 0 + results := make([]azqueue.Queue, 0) + pager := svcClient.NewListQueuesPager(&listOptions) + + for pager.More() { + resp, err := pager.NextPage(context.Background()) + _require.Nil(err) + for _, ctnr := range resp.Queues { + _require.NotNil(ctnr.Name) + results = append(results, *ctnr) + count += 1 + } + } + + _require.Equal(count, numQueues) + _require.Equal(len(results), numQueues) + + // make sure each queue we see is expected + for _, q := range results { + _, ok := expectedResults[*q.Name] + _require.Equal(ok, true) + expectedResults[*q.Name] = true + } + + // make sure every expected queue was seen + for _, seen := range expectedResults { + _require.Equal(seen, true) + } +} + +// this test ensures that our sas related methods work properly +func (s *UnrecordedTestSuite) TestServiceSignatureValues() { + _require := require.New(s.T()) + + accountName := os.Getenv("AZURE_STORAGE_ACCOUNT_NAME") + accountKey := os.Getenv("AZURE_STORAGE_ACCOUNT_KEY") + cred, err := azqueue.NewSharedKeyCredential(accountName, accountKey) + _require.Nil(err) + + resources := sas.AccountResourceTypes{ + Object: true, + Service: true, + Container: true, + } + permissions := sas.AccountPermissions{ + Read: true, + Add: true, + Write: true, + Create: true, + Update: true, + Delete: true, + } + + expiry := time.Now().Add(time.Hour) + + qsv := sas.AccountSignatureValues{ + Version: sas.Version, + Protocol: sas.ProtocolHTTPS, + StartTime: time.Time{}, + ExpiryTime: expiry, + ResourceTypes: resources.String(), + Permissions: permissions.String(), + } + _, err = qsv.SignWithSharedKey(cred) + _require.Nil(err) +} + +func (s *UnrecordedTestSuite) TestSASServiceClient() { + _require := require.New(s.T()) + testName := s.T().Name() + accountName := os.Getenv("AZURE_STORAGE_ACCOUNT_NAME") + accountKey := os.Getenv("AZURE_STORAGE_ACCOUNT_KEY") + cred, err := azqueue.NewSharedKeyCredential(accountName, accountKey) + _require.Nil(err) + + serviceClient, err := azqueue.NewServiceClientWithSharedKeyCredential(fmt.Sprintf("https://%s.queue.core.windows.net/", accountName), cred, nil) + _require.Nil(err) + + queueName := testcommon.GenerateQueueName(testName) + + resources := sas.AccountResourceTypes{ + Object: true, + Service: true, + Container: true, + } + permissions := sas.AccountPermissions{ + Read: true, + Add: true, + Write: true, + Create: true, + Update: true, + Delete: true, + } + + expiry := time.Now().Add(time.Hour) + + sasUrl, err := serviceClient.GetSASURL(resources, permissions, expiry, nil) + _require.Nil(err) + + svcClient, err := azqueue.NewServiceClientWithNoCredential(sasUrl, nil) + _require.Nil(err) + + // create queue using SAS + _, err = svcClient.CreateQueue(context.Background(), queueName, nil) + _require.Nil(err) + + _, err = svcClient.DeleteQueue(context.Background(), queueName, nil) + _require.Nil(err) +} + +func (s *UnrecordedTestSuite) TestNoSharedKeyCredError() { + _require := require.New(s.T()) + accountName := os.Getenv("AZURE_STORAGE_ACCOUNT_NAME") + + // Creating service client without credentials + serviceClient, err := azqueue.NewServiceClientWithNoCredential(fmt.Sprintf("https://%s.queue.core.windows.net/", accountName), nil) + _require.Nil(err) + + // Adding SAS and options + resources := sas.AccountResourceTypes{ + Object: true, + Service: true, + Container: true, + } + permissions := sas.AccountPermissions{ + Read: true, + Add: true, + Write: true, + Create: true, + Update: true, + Delete: true, + } + start := time.Now().Add(-time.Hour) + expiry := start.Add(time.Hour) + opts := azqueue.GetSASURLOptions{StartTime: &start} + + // GetSASURL fails (with MissingSharedKeyCredential) because service client is created without credentials + _, err = serviceClient.GetSASURL(resources, permissions, expiry, &opts) + _require.Equal(err, queueerror.MissingSharedKeyCredential) + +} + +func (s *UnrecordedTestSuite) TestAccountSASEnqueueMessage() { + _require := require.New(s.T()) + testName := s.T().Name() + accountName := os.Getenv("AZURE_STORAGE_ACCOUNT_NAME") + accountKey := os.Getenv("AZURE_STORAGE_ACCOUNT_KEY") + cred, err := azqueue.NewSharedKeyCredential(accountName, accountKey) + _require.Nil(err) + + serviceClient, err := azqueue.NewServiceClientWithSharedKeyCredential(fmt.Sprintf("https://%s.queue.core.windows.net/", accountName), cred, nil) + _require.Nil(err) + + queueName := testcommon.GenerateQueueName(testName) + + resources := sas.AccountResourceTypes{ + Object: true, + Service: true, + Container: true, + } + permissions := sas.AccountPermissions{ + Read: true, + Add: true, + Write: true, + Create: true, + Update: true, + Delete: true, + } + + expiry := time.Now().Add(time.Hour) + + sasUrl, err := serviceClient.GetSASURL(resources, permissions, expiry, nil) + _require.Nil(err) + + svcClient, err := azqueue.NewServiceClientWithNoCredential(sasUrl, nil) + _require.Nil(err) + + // create queue using account SAS + _, err = svcClient.CreateQueue(context.Background(), queueName, nil) + _require.Nil(err) + + queueClient := svcClient.NewQueueClient(queueName) + // enqueue 4 messages + for i := 0; i < 4; i++ { + _, err = queueClient.EnqueueMessage(context.Background(), testcommon.QueueDefaultData, nil) + _require.Nil(err) + + } + _, err = svcClient.DeleteQueue(context.Background(), queueName, nil) + _require.Nil(err) +} + +func (s *UnrecordedTestSuite) TestAccountSASDequeueMessage() { + _require := require.New(s.T()) + testName := s.T().Name() + accountName := os.Getenv("AZURE_STORAGE_ACCOUNT_NAME") + accountKey := os.Getenv("AZURE_STORAGE_ACCOUNT_KEY") + cred, err := azqueue.NewSharedKeyCredential(accountName, accountKey) + _require.Nil(err) + + serviceClient, err := azqueue.NewServiceClientWithSharedKeyCredential(fmt.Sprintf("https://%s.queue.core.windows.net/", accountName), cred, nil) + _require.Nil(err) + + queueName := testcommon.GenerateQueueName(testName) + + resources := sas.AccountResourceTypes{ + Object: true, + Service: true, + Container: true, + } + permissions := sas.AccountPermissions{ + Read: true, + Add: true, + Write: true, + Create: true, + Update: true, + Delete: true, + Process: true, + } + + expiry := time.Now().Add(time.Hour) + + sasUrl, err := serviceClient.GetSASURL(resources, permissions, expiry, nil) + _require.Nil(err) + + svcClient, err := azqueue.NewServiceClientWithNoCredential(sasUrl, nil) + _require.Nil(err) + + // create queue using account SAS + _, err = svcClient.CreateQueue(context.Background(), queueName, nil) + _require.Nil(err) + + queueClient := svcClient.NewQueueClient(queueName) + // enqueue 4 messages + for i := 0; i < 4; i++ { + _, err = queueClient.EnqueueMessage(context.Background(), testcommon.QueueDefaultData, nil) + _require.Nil(err) + } + + // dequeue 4 messages + for i := 0; i < 4; i++ { + resp, err := queueClient.DequeueMessage(context.Background(), nil) + _require.Nil(err) + _require.Equal(1, len(resp.Messages)) + _require.NotNil(resp.Messages[0].MessageID) + } + // should be 0 now + resp, err := queueClient.DequeueMessage(context.Background(), nil) + _require.Equal(0, len(resp.Messages)) + _require.Nil(err) + _, err = svcClient.DeleteQueue(context.Background(), queueName, nil) + _require.Nil(err) +} diff --git a/sdk/storage/azqueue/test-resources.json b/sdk/storage/azqueue/test-resources.json new file mode 100644 index 000000000000..5912abdc0a7c --- /dev/null +++ b/sdk/storage/azqueue/test-resources.json @@ -0,0 +1,516 @@ +{ + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "baseName": { + "type": "String" + }, + "tenantId": { + "type": "string", + "defaultValue": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "metadata": { + "description": "The tenant ID to which the application and resources belong." + } + }, + "testApplicationOid": { + "type": "string", + "metadata": { + "description": "The principal to assign the role to. This is application object id." + } + } + }, + "variables": { + "mgmtApiVersion": "2022-09-01", + "authorizationApiVersion": "2018-09-01-preview", + "blobDataContributorRoleId": "[concat('/subscriptions/', subscription().subscriptionId, '/providers/Microsoft.Authorization/roleDefinitions/ba92f5b4-2d11-453d-a403-e96b0029c9fe')]", + "contributorRoleId": "[concat('/subscriptions/', subscription().subscriptionId, '/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c')]", + "blobDataOwnerRoleId": "[concat('/subscriptions/', subscription().subscriptionId, '/providers/Microsoft.Authorization/roleDefinitions/b7e6dc6d-f1e8-4753-8033-0f276bb0955b')]", + "primaryAccountName": "[concat(parameters('baseName'), 'prim')]", + "immutableAccountName": "[concat(parameters('baseName'), 'imm')]", + "primaryEncryptionScopeName": "encryptionScope", + "primaryEncryptionScope": "[concat(parameters('baseName'), 'prim', concat('/', variables('primaryEncryptionScopeName')))]", + "secondaryAccountName": "[concat(parameters('baseName'), 'sec')]", + "premiumAccountName": "[concat(parameters('baseName'), 'prem')]", + "dataLakeAccountName": "[concat(parameters('baseName'), 'dtlk')]", + "softDeleteAccountName": "[concat(parameters('baseName'), 'sftdl')]", + "premiumFileAccountName": "[concat(parameters('baseName'), 'pfile')]", + "webjobsPrimaryAccountName": "[concat(parameters('baseName'), 'wjprim')]", + "webjobsSecondaryAccountName": "[concat(parameters('baseName'), 'wjsec')]", + "location": "[resourceGroup().location]", + "resourceGroupName": "[resourceGroup().name]", + "subscriptionId": "[subscription().subscriptionId]", + "encryption": { + "services": { + "file": { + "enabled": true + }, + "blob": { + "enabled": true + } + }, + "keySource": "Microsoft.Storage" + }, + "networkAcls": { + "bypass": "AzureServices", + "virtualNetworkRules": [], + "ipRules": [], + "defaultAction": "Allow" + } + }, + "resources": [ + { + "type": "Microsoft.Authorization/roleAssignments", + "apiVersion": "[variables('authorizationApiVersion')]", + "name": "[guid(concat('dataContributorRoleId', resourceGroup().id))]", + "properties": { + "roleDefinitionId": "[variables('blobDataContributorRoleId')]", + "principalId": "[parameters('testApplicationOid')]" + } + }, + { + "type": "Microsoft.Authorization/roleAssignments", + "apiVersion": "[variables('authorizationApiVersion')]", + "name": "[guid(concat('contributorRoleId', resourceGroup().id))]", + "properties": { + "roleDefinitionId": "[variables('contributorRoleId')]", + "principalId": "[parameters('testApplicationOid')]" + } + }, + { + "type": "Microsoft.Authorization/roleAssignments", + "apiVersion": "[variables('authorizationApiVersion')]", + "name": "[guid(concat('blobDataOwnerRoleId', resourceGroup().id))]", + "properties": { + "roleDefinitionId": "[variables('blobDataOwnerRoleId')]", + "principalId": "[parameters('testApplicationOid')]" + } + }, + { + "type": "Microsoft.Storage/storageAccounts", + "apiVersion": "[variables('mgmtApiVersion')]", + "name": "[variables('primaryAccountName')]", + "location": "[variables('location')]", + "sku": { + "name": "Standard_RAGRS", + "tier": "Standard" + }, + "kind": "StorageV2", + "properties": { + "networkAcls": "[variables('networkAcls')]", + "supportsHttpsTrafficOnly": true, + "encryption": "[variables('encryption')]", + "accessTier": "Hot" + } + }, + { + "type": "Microsoft.Storage/storageAccounts/blobServices", + "apiVersion": "[variables('mgmtApiVersion')]", + "name": "[concat(variables('primaryAccountName'), '/default')]", + "properties": { + "isVersioningEnabled": true, + "lastAccessTimeTrackingPolicy": { + "enable": true, + "name": "AccessTimeTracking", + "trackingGranularityInDays": 1, + "blobType": [ + "blockBlob" + ] + } + }, + "dependsOn": [ + "[variables('primaryAccountName')]" + ] + }, + { + "type": "Microsoft.Storage/storageAccounts/encryptionScopes", + "apiVersion": "[variables('mgmtApiVersion')]", + "name": "[variables('primaryEncryptionScope')]", + "properties": { + "source": "Microsoft.Storage", + "state": "Enabled" + }, + "dependsOn": [ + "[variables('primaryAccountName')]" + ] + }, + { + "type": "Microsoft.Storage/storageAccounts", + "apiVersion": "[variables('mgmtApiVersion')]", + "name": "[variables('secondaryAccountName')]", + "location": "[variables('location')]", + "sku": { + "name": "Standard_RAGRS", + "tier": "Standard" + }, + "kind": "StorageV2", + "properties": { + "networkAcls": "[variables('networkAcls')]", + "supportsHttpsTrafficOnly": true, + "encryption": "[variables('encryption')]", + "accessTier": "Hot" + } + }, + { + "type": "Microsoft.Storage/storageAccounts", + "apiVersion": "[variables('mgmtApiVersion')]", + "name": "[variables('premiumAccountName')]", + "location": "[variables('location')]", + "sku": { + "name": "Premium_LRS", + "tier": "Premium" + }, + "kind": "StorageV2", + "properties": { + "networkAcls": "[variables('networkAcls')]", + "supportsHttpsTrafficOnly": true, + "encryption": "[variables('encryption')]", + "accessTier": "Hot" + } + }, + { + "type": "Microsoft.Storage/storageAccounts", + "apiVersion": "[variables('mgmtApiVersion')]", + "name": "[variables('dataLakeAccountName')]", + "location": "[variables('location')]", + "sku": { + "name": "Standard_RAGRS", + "tier": "Standard" + }, + "kind": "StorageV2", + "properties": { + "isHnsEnabled": true, + "networkAcls": "[variables('networkAcls')]", + "supportsHttpsTrafficOnly": true, + "encryption": "[variables('encryption')]", + "accessTier": "Hot" + } + }, + { + "type": "Microsoft.Storage/storageAccounts/blobServices", + "apiVersion": "[variables('mgmtApiVersion')]", + "name": "[concat(variables('dataLakeAccountName'), '/default')]", + "properties": { + "containerDeleteRetentionPolicy": { + "enabled": true, + "days": 1 + } + }, + "dependsOn": [ + "[variables('dataLakeAccountName')]" + ] + }, + { + "type": "Microsoft.Storage/storageAccounts", + "apiVersion": "[variables('mgmtApiVersion')]", + "name": "[variables('softDeleteAccountName')]", + "location": "[variables('location')]", + "sku": { + "name": "Standard_RAGRS", + "tier": "Standard" + }, + "kind": "StorageV2", + "properties": { + "networkAcls": "[variables('networkAcls')]", + "supportsHttpsTrafficOnly": true, + "encryption": "[variables('encryption')]", + "accessTier": "Hot" + } + }, + { + "type": "Microsoft.Storage/storageAccounts/blobServices", + "apiVersion": "[variables('mgmtApiVersion')]", + "name": "[concat(variables('softDeleteAccountName'), '/default')]", + "properties": { + "isVersioningEnabled": true, + "deleteRetentionPolicy": { + "allowPermanentDelete": true, + "enabled": true, + "days": 1 + }, + "containerDeleteRetentionPolicy": { + "enabled": true, + "days": 1 + } + }, + "dependsOn": [ + "[variables('softDeleteAccountName')]" + ] + }, + { + "type": "Microsoft.Storage/storageAccounts/fileServices", + "apiVersion": "[variables('mgmtApiVersion')]", + "name": "[concat(variables('softDeleteAccountName'), '/default')]", + "properties": { + "shareDeleteRetentionPolicy": { + "enabled": true, + "days": 1 + } + }, + "dependsOn": [ + "[variables('softDeleteAccountName')]" + ] + }, + { + "type": "Microsoft.Storage/storageAccounts", + "apiVersion": "[variables('mgmtApiVersion')]", + "name": "[variables('premiumFileAccountName')]", + "location": "[variables('location')]", + "sku": { + "name": "Premium_LRS", + "tier": "Premium" + }, + "kind": "FileStorage", + "properties": { + "networkAcls": "[variables('networkAcls')]", + "supportsHttpsTrafficOnly": true, + "encryption": "[variables('encryption')]", + "accessTier": "Hot" + } + }, + { + "type": "Microsoft.Storage/storageAccounts", + "apiVersion": "[variables('mgmtApiVersion')]", + "name": "[variables('webjobsPrimaryAccountName')]", + "location": "[variables('location')]", + "sku": { + "name": "Standard_RAGRS", + "tier": "Standard" + }, + "kind": "StorageV2", + "properties": { + "networkAcls": "[variables('networkAcls')]", + "supportsHttpsTrafficOnly": true, + "encryption": "[variables('encryption')]", + "accessTier": "Hot" + } + }, + { + "type": "Microsoft.Storage/storageAccounts", + "apiVersion": "[variables('mgmtApiVersion')]", + "name": "[variables('webjobsSecondaryAccountName')]", + "location": "[variables('location')]", + "sku": { + "name": "Standard_RAGRS", + "tier": "Standard" + }, + "kind": "StorageV2", + "properties": { + "networkAcls": "[variables('networkAcls')]", + "supportsHttpsTrafficOnly": true, + "encryption": "[variables('encryption')]", + "accessTier": "Hot" + } + } + ], + "functions": [ + { + "namespace": "url", + "members": { + "serviceEndpointSuffix": { + "parameters": [ + { + "name": "endpoint", + "type": "string" + } + ], + "output": { + "type": "string", + "value": "[substring(parameters('endpoint'), add(indexOf(parameters('endpoint'), '.'),1), sub(length(parameters('endpoint')), add(indexOf(parameters('endpoint'), '.'),2)))]" + } + } + } + }, + { + "namespace": "connectionString", + "members": { + "create": { + "parameters": [ + { + "name": "accountName", + "type": "string" + }, + { + "name": "accountKey", + "type": "string" + }, + { + "name": "blobEndpoint", + "type": "string" + }, + { + "name": "queueEndpoint", + "type": "string" + }, + { + "name": "fileEndpoint", + "type": "string" + }, + { + "name": "tableEndpoint", + "type": "string" + } + ], + "output": { + "type": "string", + "value": "[concat('DefaultEndpointsProtocol=https;AccountName=', parameters('accountName'), ';AccountKey=', parameters('accountKey'), ';BlobEndpoint=', parameters('blobEndpoint'), ';QueueEndpoint=', parameters('queueEndpoint'), ';FileEndpoint=', parameters('fileEndpoint'), ';TableEndpoint=', parameters('tableEndpoint'))]" + } + } + } + } + ], + "outputs": { + "AZURE_STORAGE_ACCOUNT_NAME": { + "type": "string", + "value": "[variables('primaryAccountName')]" + }, + "AZURE_STORAGE_ACCOUNT_KEY": { + "type": "string", + "value": "[listKeys(resourceId('Microsoft.Storage/storageAccounts', variables('primaryAccountName')), variables('mgmtApiVersion')).keys[0].value]" + }, + "PRIMARY_STORAGE_ACCOUNT_BLOB_ENDPOINT_SUFFIX": { + "type": "string", + "value": "[url.serviceEndpointSuffix(reference(resourceId('Microsoft.Storage/storageAccounts', variables('primaryAccountName')), variables('mgmtApiVersion')).primaryEndpoints.blob)]" + }, + "PRIMARY_STORAGE_ACCOUNT_FILE_ENDPOINT_SUFFIX": { + "type": "string", + "value": "[url.serviceEndpointSuffix(reference(resourceId('Microsoft.Storage/storageAccounts', variables('primaryAccountName')), variables('mgmtApiVersion')).primaryEndpoints.file)]" + }, + "PRIMARY_STORAGE_ACCOUNT_QUEUE_ENDPOINT_SUFFIX": { + "type": "string", + "value": "[url.serviceEndpointSuffix(reference(resourceId('Microsoft.Storage/storageAccounts', variables('primaryAccountName')), variables('mgmtApiVersion')).primaryEndpoints.queue)]" + }, + "PRIMARY_STORAGE_ACCOUNT_TABLE_ENDPOINT_SUFFIX": { + "type": "string", + "value": "[url.serviceEndpointSuffix(reference(resourceId('Microsoft.Storage/storageAccounts', variables('primaryAccountName')), variables('mgmtApiVersion')).primaryEndpoints.table)]" + }, + "SECONDARY_AZURE_STORAGE_ACCOUNT_NAME": { + "type": "string", + "value": "[variables('secondaryAccountName')]" + }, + "SECONDARY_AZURE_STORAGE_ACCOUNT_KEY": { + "type": "string", + "value": "[listKeys(resourceId('Microsoft.Storage/storageAccounts', variables('secondaryAccountName')), variables('mgmtApiVersion')).keys[0].value]" + }, + "SECONDARY_STORAGE_ACCOUNT_BLOB_ENDPOINT_SUFFIX": { + "type": "string", + "value": "[url.serviceEndpointSuffix(reference(resourceId('Microsoft.Storage/storageAccounts', variables('secondaryAccountName')), variables('mgmtApiVersion')).primaryEndpoints.blob)]" + }, + "SECONDARY_STORAGE_ACCOUNT_FILE_ENDPOINT_SUFFIX": { + "type": "string", + "value": "[url.serviceEndpointSuffix(reference(resourceId('Microsoft.Storage/storageAccounts', variables('secondaryAccountName')), variables('mgmtApiVersion')).primaryEndpoints.file)]" + }, + "SECONDARY_STORAGE_ACCOUNT_QUEUE_ENDPOINT_SUFFIX": { + "type": "string", + "value": "[url.serviceEndpointSuffix(reference(resourceId('Microsoft.Storage/storageAccounts', variables('secondaryAccountName')), variables('mgmtApiVersion')).primaryEndpoints.queue)]" + }, + "SECONDARY_STORAGE_ACCOUNT_TABLE_ENDPOINT_SUFFIX": { + "type": "string", + "value": "[url.serviceEndpointSuffix(reference(resourceId('Microsoft.Storage/storageAccounts', variables('secondaryAccountName')), variables('mgmtApiVersion')).primaryEndpoints.table)]" + }, + "BLOB_STORAGE_ACCOUNT_NAME": { + "type": "string", + "value": "[variables('secondaryAccountName')]" + }, + "BLOB_STORAGE_ACCOUNT_KEY": { + "type": "string", + "value": "[listKeys(resourceId('Microsoft.Storage/storageAccounts', variables('secondaryAccountName')), variables('mgmtApiVersion')).keys[0].value]" + }, + "PREMIUM_AZURE_STORAGE_ACCOUNT_NAME": { + "type": "string", + "value": "[variables('premiumAccountName')]" + }, + "PREMIUM_AZURE_STORAGE_ACCOUNT_KEY": { + "type": "string", + "value": "[listKeys(resourceId('Microsoft.Storage/storageAccounts', variables('premiumAccountName')), variables('mgmtApiVersion')).keys[0].value]" + }, + "PREMIUM_STORAGE_ACCOUNT_BLOB_ENDPOINT_SUFFIX": { + "type": "string", + "value": "[url.serviceEndpointSuffix(reference(resourceId('Microsoft.Storage/storageAccounts', variables('premiumAccountName')), variables('mgmtApiVersion')).primaryEndpoints.blob)]" + }, + "DATALAKE_AZURE_STORAGE_ACCOUNT_NAME": { + "type": "string", + "value": "[variables('dataLakeAccountName')]" + }, + "DATALAKE_AZURE_STORAGE_ACCOUNT_KEY": { + "type": "string", + "value": "[listKeys(resourceId('Microsoft.Storage/storageAccounts', variables('dataLakeAccountName')), variables('mgmtApiVersion')).keys[0].value]" + }, + "DATALAKE_STORAGE_ACCOUNT_BLOB_ENDPOINT_SUFFIX": { + "type": "string", + "value": "[url.serviceEndpointSuffix(reference(resourceId('Microsoft.Storage/storageAccounts', variables('dataLakeAccountName')), variables('mgmtApiVersion')).primaryEndpoints.blob)]" + }, + "DATALAKE_STORAGE_ACCOUNT_FILE_ENDPOINT_SUFFIX": { + "type": "string", + "value": "[url.serviceEndpointSuffix(reference(resourceId('Microsoft.Storage/storageAccounts', variables('dataLakeAccountName')), variables('mgmtApiVersion')).primaryEndpoints.file)]" + }, + "DATALAKE_STORAGE_ACCOUNT_QUEUE_ENDPOINT_SUFFIX": { + "type": "string", + "value": "[url.serviceEndpointSuffix(reference(resourceId('Microsoft.Storage/storageAccounts', variables('dataLakeAccountName')), variables('mgmtApiVersion')).primaryEndpoints.queue)]" + }, + "DATALAKE_STORAGE_ACCOUNT_TABLE_ENDPOINT_SUFFIX": { + "type": "string", + "value": "[url.serviceEndpointSuffix(reference(resourceId('Microsoft.Storage/storageAccounts', variables('dataLakeAccountName')), variables('mgmtApiVersion')).primaryEndpoints.table)]" + }, + "SOFT_DELETE_AZURE_STORAGE_ACCOUNT_NAME": { + "type": "string", + "value": "[variables('softDeleteAccountName')]" + }, + "SOFT_DELETE_AZURE_STORAGE_ACCOUNT_KEY": { + "type": "string", + "value": "[listKeys(resourceId('Microsoft.Storage/storageAccounts', variables('softDeleteAccountName')), variables('mgmtApiVersion')).keys[0].value]" + }, + "SOFT_DELETE_AZURE_STORAGE_ACCOUNT_BLOB_ENDPOINT_SUFFIX": { + "type": "string", + "value": "[url.serviceEndpointSuffix(reference(resourceId('Microsoft.Storage/storageAccounts', variables('softDeleteAccountName')), variables('mgmtApiVersion')).primaryEndpoints.blob)]" + }, + "SOFT_DELETE_AZURE_STORAGE_ACCOUNT_FILE_ENDPOINT_SUFFIX": { + "type": "string", + "value": "[url.serviceEndpointSuffix(reference(resourceId('Microsoft.Storage/storageAccounts', variables('softDeleteAccountName')), variables('mgmtApiVersion')).primaryEndpoints.file)]" + }, + "SOFT_DELETE_AZURE_STORAGE_ACCOUNT_QUEUE_ENDPOINT_SUFFIX": { + "type": "string", + "value": "[url.serviceEndpointSuffix(reference(resourceId('Microsoft.Storage/storageAccounts', variables('softDeleteAccountName')), variables('mgmtApiVersion')).primaryEndpoints.queue)]" + }, + "SOFT_DELETE_AZURE_STORAGE_ACCOUNT_TABLE_ENDPOINT_SUFFIX": { + "type": "string", + "value": "[url.serviceEndpointSuffix(reference(resourceId('Microsoft.Storage/storageAccounts', variables('softDeleteAccountName')), variables('mgmtApiVersion')).primaryEndpoints.table)]" + }, + "PREMIUM_FILE_STORAGE_ACCOUNT_NAME": { + "type": "string", + "value": "[variables('premiumFileAccountName')]" + }, + "PREMIUM_FILE_STORAGE_ACCOUNT_KEY": { + "type": "string", + "value": "[listKeys(resourceId('Microsoft.Storage/storageAccounts', variables('premiumFileAccountName')), variables('mgmtApiVersion')).keys[0].value]" + }, + "PREMIUM_FILE_STORAGE_ACCOUNT_FILE_ENDPOINT_SUFFIX": { + "type": "string", + "value": "[url.serviceEndpointSuffix(reference(resourceId('Microsoft.Storage/storageAccounts', variables('premiumFileAccountName')), variables('mgmtApiVersion')).primaryEndpoints.file)]" + }, + "AZUREWEBJOBSSTORAGE": { + "type": "string", + "value": "[connectionString.create(variables('webjobsPrimaryAccountName'), listKeys(resourceId('Microsoft.Storage/storageAccounts', variables('webjobsPrimaryAccountName')), variables('mgmtApiVersion')).keys[0].value, reference(resourceId('Microsoft.Storage/storageAccounts', variables('webjobsPrimaryAccountName')), variables('mgmtApiVersion')).primaryEndpoints.blob, reference(resourceId('Microsoft.Storage/storageAccounts', variables('webjobsPrimaryAccountName')), variables('mgmtApiVersion')).primaryEndpoints.queue, reference(resourceId('Microsoft.Storage/storageAccounts', variables('webjobsPrimaryAccountName')), variables('mgmtApiVersion')).primaryEndpoints.file, reference(resourceId('Microsoft.Storage/storageAccounts', variables('webjobsPrimaryAccountName')), variables('mgmtApiVersion')).primaryEndpoints.table)]" + }, + "AZUREWEBJOBSSECONDARYSTORAGE": { + "type": "string", + "value": "[connectionString.create(variables('webjobsSecondaryAccountName'), listKeys(resourceId('Microsoft.Storage/storageAccounts', variables('webjobsSecondaryAccountName')), variables('mgmtApiVersion')).keys[0].value, reference(resourceId('Microsoft.Storage/storageAccounts', variables('webjobsSecondaryAccountName')), variables('mgmtApiVersion')).primaryEndpoints.blob, reference(resourceId('Microsoft.Storage/storageAccounts', variables('webjobsSecondaryAccountName')), variables('mgmtApiVersion')).primaryEndpoints.queue, reference(resourceId('Microsoft.Storage/storageAccounts', variables('webjobsSecondaryAccountName')), variables('mgmtApiVersion')).primaryEndpoints.file, reference(resourceId('Microsoft.Storage/storageAccounts', variables('webjobsSecondaryAccountName')), variables('mgmtApiVersion')).primaryEndpoints.table)]" + }, + "RESOURCE_GROUP_NAME": { + "type": "string", + "value": "[variables('resourceGroupName')]" + }, + "SUBSCRIPTION_ID": { + "type": "string", + "value": "[variables('subscriptionId')]" + }, + "LOCATION": { + "type": "string", + "value": "[variables('location')]" + }, + "AZURE_STORAGE_ENCRYPTION_SCOPE": { + "type": "string", + "value": "[variables('primaryEncryptionScopeName')]" + } + } + } + \ No newline at end of file From 679027e3f634535440269bdc470caab29a32577d Mon Sep 17 00:00:00 2001 From: Scott Beddall <45376673+scbedd@users.noreply.github.com> Date: Tue, 14 Feb 2023 16:59:59 -0800 Subject: [PATCH 023/107] Trigger `aztables` when proxy files are updated (#19969) * autotrigger the tables CI when a testproxy file is changed --- sdk/data/aztables/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sdk/data/aztables/ci.yml b/sdk/data/aztables/ci.yml index d46e8d5b2a56..6b0fe54e26db 100644 --- a/sdk/data/aztables/ci.yml +++ b/sdk/data/aztables/ci.yml @@ -20,6 +20,8 @@ pr: paths: include: - sdk/data/aztables + - eng/common/testproxy + # adding eng/common/testproxy as aztables is a good exercise of the test-proxy features. if a new proxy version works on this build, we can be confident updating to it stages: - template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml From a079d718a6692ac374ac861b805c27a712373254 Mon Sep 17 00:00:00 2001 From: Peng Jiahui <46921893+Alancere@users.noreply.github.com> Date: Wed, 15 Feb 2023 11:03:49 +0800 Subject: [PATCH 024/107] [Release] sdk/resourcemanager/liftrqumulo/armqumulo/0.1.0 (#19960) * [Release] sdk/resourcemanager/liftrqumulo/armqumulo/0.1.0 generation from spec commit: 9918780b4dc4bdc111cf3facc11561904d609ad7 * Update CHANGELOG.md --- .../liftrqumulo/armqumulo/CHANGELOG.md | 7 + .../liftrqumulo/armqumulo/LICENSE.txt | 21 + .../liftrqumulo/armqumulo/README.md | 77 ++ .../liftrqumulo/armqumulo/autorest.md | 13 + .../liftrqumulo/armqumulo/build.go | 7 + .../liftrqumulo/armqumulo/ci.yml | 28 + .../liftrqumulo/armqumulo/constants.go | 169 +++++ .../armqumulo/filesystems_client.go | 430 +++++++++++ .../filesystems_client_example_test.go | 711 ++++++++++++++++++ .../liftrqumulo/armqumulo/go.mod | 21 + .../liftrqumulo/armqumulo/go.sum | 30 + .../liftrqumulo/armqumulo/models.go | 274 +++++++ .../liftrqumulo/armqumulo/models_serde.go | 564 ++++++++++++++ .../armqumulo/operations_client.go | 105 +++ .../operations_client_example_test.go | 85 +++ .../liftrqumulo/armqumulo/response_types.go | 45 ++ .../liftrqumulo/armqumulo/time_rfc3339.go | 87 +++ 17 files changed, 2674 insertions(+) create mode 100644 sdk/resourcemanager/liftrqumulo/armqumulo/CHANGELOG.md create mode 100644 sdk/resourcemanager/liftrqumulo/armqumulo/LICENSE.txt create mode 100644 sdk/resourcemanager/liftrqumulo/armqumulo/README.md create mode 100644 sdk/resourcemanager/liftrqumulo/armqumulo/autorest.md create mode 100644 sdk/resourcemanager/liftrqumulo/armqumulo/build.go create mode 100644 sdk/resourcemanager/liftrqumulo/armqumulo/ci.yml create mode 100644 sdk/resourcemanager/liftrqumulo/armqumulo/constants.go create mode 100644 sdk/resourcemanager/liftrqumulo/armqumulo/filesystems_client.go create mode 100644 sdk/resourcemanager/liftrqumulo/armqumulo/filesystems_client_example_test.go create mode 100644 sdk/resourcemanager/liftrqumulo/armqumulo/go.mod create mode 100644 sdk/resourcemanager/liftrqumulo/armqumulo/go.sum create mode 100644 sdk/resourcemanager/liftrqumulo/armqumulo/models.go create mode 100644 sdk/resourcemanager/liftrqumulo/armqumulo/models_serde.go create mode 100644 sdk/resourcemanager/liftrqumulo/armqumulo/operations_client.go create mode 100644 sdk/resourcemanager/liftrqumulo/armqumulo/operations_client_example_test.go create mode 100644 sdk/resourcemanager/liftrqumulo/armqumulo/response_types.go create mode 100644 sdk/resourcemanager/liftrqumulo/armqumulo/time_rfc3339.go diff --git a/sdk/resourcemanager/liftrqumulo/armqumulo/CHANGELOG.md b/sdk/resourcemanager/liftrqumulo/armqumulo/CHANGELOG.md new file mode 100644 index 000000000000..4de383526764 --- /dev/null +++ b/sdk/resourcemanager/liftrqumulo/armqumulo/CHANGELOG.md @@ -0,0 +1,7 @@ +# Release History + +## 0.1.0 (2023-02-15) + +The package of `github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/liftrqumulo/armqumulo` is using our [next generation design principles](https://azure.github.io/azure-sdk/general_introduction.html). + +To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/go/mgmt). diff --git a/sdk/resourcemanager/liftrqumulo/armqumulo/LICENSE.txt b/sdk/resourcemanager/liftrqumulo/armqumulo/LICENSE.txt new file mode 100644 index 000000000000..dc0c2ffb3dc1 --- /dev/null +++ b/sdk/resourcemanager/liftrqumulo/armqumulo/LICENSE.txt @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Microsoft Corporation. All rights reserved. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/sdk/resourcemanager/liftrqumulo/armqumulo/README.md b/sdk/resourcemanager/liftrqumulo/armqumulo/README.md new file mode 100644 index 000000000000..7b36d022cb15 --- /dev/null +++ b/sdk/resourcemanager/liftrqumulo/armqumulo/README.md @@ -0,0 +1,77 @@ +# Azure Liftr Qumulo Module for Go + +[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/liftrqumulo/armqumulo)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/liftrqumulo/armqumulo) + +The `armqumulo` module provides operations for working with Azure Liftr Qumulo. + +[Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/liftrqumulo/armqumulo) + +# Getting started + +## Prerequisites + +- an [Azure subscription](https://azure.microsoft.com/free/) +- Go 1.18 or above (You could download and install the latest version of Go from [here](https://go.dev/doc/install). It will replace the existing Go on your machine. If you want to install multiple Go versions on the same machine, you could refer this [doc](https://go.dev/doc/manage-install).) + +## Install the package + +This project uses [Go modules](https://github.com/golang/go/wiki/Modules) for versioning and dependency management. + +Install the Azure Liftr Qumulo module: + +```sh +go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/liftrqumulo/armqumulo +``` + +## Authorization + +When creating a client, you will need to provide a credential for authenticating with Azure Liftr Qumulo. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. + +```go +cred, err := azidentity.NewDefaultAzureCredential(nil) +``` + +For more information on authentication, please see the documentation for `azidentity` at [pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azidentity](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azidentity). + +## Clients + +Azure Liftr Qumulo modules consist of one or more clients. A client groups a set of related APIs, providing access to its functionality within the specified subscription. Create one or more clients to access the APIs you require using your credential. + +```go +client, err := armqumulo.NewFileSystemsClient(, cred, nil) +``` + +You can use `ClientOptions` in package `github.com/Azure/azure-sdk-for-go/sdk/azcore/arm` to set endpoint to connect with public and sovereign clouds as well as Azure Stack. For more information, please see the documentation for `azcore` at [pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azcore](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azcore). + +```go +options := arm.ClientOptions{ + ClientOptions: azcore.ClientOptions { + Cloud: cloud.AzureChina, + }, +} +client, err := armqumulo.NewFileSystemsClient(, cred, &options) +``` + +## Provide Feedback + +If you encounter bugs or have suggestions, please +[open an issue](https://github.com/Azure/azure-sdk-for-go/issues) and assign the `Liftr Qumulo` label. + +# Contributing + +This project welcomes contributions and suggestions. Most contributions require +you to agree to a Contributor License Agreement (CLA) declaring that you have +the right to, and actually do, grant us the rights to use your contribution. +For details, visit [https://cla.microsoft.com](https://cla.microsoft.com). + +When you submit a pull request, a CLA-bot will automatically determine whether +you need to provide a CLA and decorate the PR appropriately (e.g., label, +comment). Simply follow the instructions provided by the bot. You will only +need to do this once across all repos using our CLA. + +This project has adopted the +[Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). +For more information, see the +[Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) +or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any +additional questions or comments. \ No newline at end of file diff --git a/sdk/resourcemanager/liftrqumulo/armqumulo/autorest.md b/sdk/resourcemanager/liftrqumulo/armqumulo/autorest.md new file mode 100644 index 000000000000..e4929ac8d3b4 --- /dev/null +++ b/sdk/resourcemanager/liftrqumulo/armqumulo/autorest.md @@ -0,0 +1,13 @@ +### AutoRest Configuration + +> see https://aka.ms/autorest + +``` yaml +azure-arm: true +require: +- https://github.com/Azure/azure-rest-api-specs/blob/9918780b4dc4bdc111cf3facc11561904d609ad7/specification/liftrqumulo/resource-manager/readme.md +- https://github.com/Azure/azure-rest-api-specs/blob/9918780b4dc4bdc111cf3facc11561904d609ad7/specification/liftrqumulo/resource-manager/readme.go.md +license-header: MICROSOFT_MIT_NO_VERSION +module-version: 0.1.0 + +``` \ No newline at end of file diff --git a/sdk/resourcemanager/liftrqumulo/armqumulo/build.go b/sdk/resourcemanager/liftrqumulo/armqumulo/build.go new file mode 100644 index 000000000000..f5cf562c55f6 --- /dev/null +++ b/sdk/resourcemanager/liftrqumulo/armqumulo/build.go @@ -0,0 +1,7 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// 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 -alwaysSetBodyParamRequired -removeUnreferencedTypes resourcemanager/liftrqumulo/armqumulo + +package armqumulo diff --git a/sdk/resourcemanager/liftrqumulo/armqumulo/ci.yml b/sdk/resourcemanager/liftrqumulo/armqumulo/ci.yml new file mode 100644 index 000000000000..d81835cea252 --- /dev/null +++ b/sdk/resourcemanager/liftrqumulo/armqumulo/ci.yml @@ -0,0 +1,28 @@ +# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. +trigger: + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/resourcemanager/liftrqumulo/armqumulo/ + +pr: + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/resourcemanager/liftrqumulo/armqumulo/ + +stages: +- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml + parameters: + IncludeRelease: true + ServiceDirectory: 'resourcemanager/liftrqumulo/armqumulo' diff --git a/sdk/resourcemanager/liftrqumulo/armqumulo/constants.go b/sdk/resourcemanager/liftrqumulo/armqumulo/constants.go new file mode 100644 index 000000000000..8a23223b3708 --- /dev/null +++ b/sdk/resourcemanager/liftrqumulo/armqumulo/constants.go @@ -0,0 +1,169 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armqumulo + +const ( + moduleName = "armqumulo" + moduleVersion = "v0.1.0" +) + +// ActionType - Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. +type ActionType string + +const ( + ActionTypeInternal ActionType = "Internal" +) + +// PossibleActionTypeValues returns the possible values for the ActionType const type. +func PossibleActionTypeValues() []ActionType { + return []ActionType{ + ActionTypeInternal, + } +} + +// CreatedByType - The type of identity that created the resource. +type CreatedByType string + +const ( + CreatedByTypeApplication CreatedByType = "Application" + CreatedByTypeKey CreatedByType = "Key" + CreatedByTypeManagedIdentity CreatedByType = "ManagedIdentity" + CreatedByTypeUser CreatedByType = "User" +) + +// PossibleCreatedByTypeValues returns the possible values for the CreatedByType const type. +func PossibleCreatedByTypeValues() []CreatedByType { + return []CreatedByType{ + CreatedByTypeApplication, + CreatedByTypeKey, + CreatedByTypeManagedIdentity, + CreatedByTypeUser, + } +} + +// 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, + } +} + +// MarketplaceSubscriptionStatus - Marketplace subscription status of the file system resource +type MarketplaceSubscriptionStatus string + +const ( + // MarketplaceSubscriptionStatusPendingFulfillmentStart - Fulfillment has not started + MarketplaceSubscriptionStatusPendingFulfillmentStart MarketplaceSubscriptionStatus = "PendingFulfillmentStart" + // MarketplaceSubscriptionStatusSubscribed - Marketplace offer is subscribed + MarketplaceSubscriptionStatusSubscribed MarketplaceSubscriptionStatus = "Subscribed" + // MarketplaceSubscriptionStatusSuspended - Marketplace offer is suspended because of non payment + MarketplaceSubscriptionStatusSuspended MarketplaceSubscriptionStatus = "Suspended" + // MarketplaceSubscriptionStatusUnsubscribed - Marketplace offer is unsubscribed + MarketplaceSubscriptionStatusUnsubscribed MarketplaceSubscriptionStatus = "Unsubscribed" +) + +// PossibleMarketplaceSubscriptionStatusValues returns the possible values for the MarketplaceSubscriptionStatus const type. +func PossibleMarketplaceSubscriptionStatusValues() []MarketplaceSubscriptionStatus { + return []MarketplaceSubscriptionStatus{ + MarketplaceSubscriptionStatusPendingFulfillmentStart, + MarketplaceSubscriptionStatusSubscribed, + MarketplaceSubscriptionStatusSuspended, + MarketplaceSubscriptionStatusUnsubscribed, + } +} + +// Origin - The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default +// value is "user,system" +type Origin string + +const ( + OriginSystem Origin = "system" + OriginUser Origin = "user" + OriginUserSystem Origin = "user,system" +) + +// PossibleOriginValues returns the possible values for the Origin const type. +func PossibleOriginValues() []Origin { + return []Origin{ + OriginSystem, + OriginUser, + OriginUserSystem, + } +} + +// ProvisioningState - Provisioning State of the File system resource +type ProvisioningState string + +const ( + // ProvisioningStateAccepted - File system resource creation request accepted + ProvisioningStateAccepted ProvisioningState = "Accepted" + // ProvisioningStateCreating - File system resource creation started + ProvisioningStateCreating ProvisioningState = "Creating" + // ProvisioningStateUpdating - File system resource is being updated + ProvisioningStateUpdating ProvisioningState = "Updating" + // ProvisioningStateDeleting - File system resource deletion started + ProvisioningStateDeleting ProvisioningState = "Deleting" + // ProvisioningStateSucceeded - File system resource creation successful + ProvisioningStateSucceeded ProvisioningState = "Succeeded" + // ProvisioningStateFailed - File system resource creation failed + ProvisioningStateFailed ProvisioningState = "Failed" + // ProvisioningStateCanceled - File system resource creation canceled + ProvisioningStateCanceled ProvisioningState = "Canceled" + // ProvisioningStateDeleted - File system resource is deleted + ProvisioningStateDeleted ProvisioningState = "Deleted" + // ProvisioningStateNotSpecified - File system resource state is unknown + ProvisioningStateNotSpecified ProvisioningState = "NotSpecified" +) + +// PossibleProvisioningStateValues returns the possible values for the ProvisioningState const type. +func PossibleProvisioningStateValues() []ProvisioningState { + return []ProvisioningState{ + ProvisioningStateAccepted, + ProvisioningStateCreating, + ProvisioningStateUpdating, + ProvisioningStateDeleting, + ProvisioningStateSucceeded, + ProvisioningStateFailed, + ProvisioningStateCanceled, + ProvisioningStateDeleted, + ProvisioningStateNotSpecified, + } +} + +// StorageSKU - Storage Sku +type StorageSKU string + +const ( + // StorageSKUStandard - Standard Storage Sku + StorageSKUStandard StorageSKU = "Standard" + // StorageSKUPerformance - Performance Storage Sku + StorageSKUPerformance StorageSKU = "Performance" +) + +// PossibleStorageSKUValues returns the possible values for the StorageSKU const type. +func PossibleStorageSKUValues() []StorageSKU { + return []StorageSKU{ + StorageSKUStandard, + StorageSKUPerformance, + } +} diff --git a/sdk/resourcemanager/liftrqumulo/armqumulo/filesystems_client.go b/sdk/resourcemanager/liftrqumulo/armqumulo/filesystems_client.go new file mode 100644 index 000000000000..ab98a02ffe3c --- /dev/null +++ b/sdk/resourcemanager/liftrqumulo/armqumulo/filesystems_client.go @@ -0,0 +1,430 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armqumulo + +import ( + "context" + "errors" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "net/http" + "net/url" + "strings" +) + +// FileSystemsClient contains the methods for the FileSystems group. +// Don't use this type directly, use NewFileSystemsClient() instead. +type FileSystemsClient struct { + host string + subscriptionID string + pl runtime.Pipeline +} + +// NewFileSystemsClient creates a new instance of FileSystemsClient with the specified values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. +func NewFileSystemsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*FileSystemsClient, error) { + if options == nil { + options = &arm.ClientOptions{} + } + ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err + } + client := &FileSystemsClient{ + subscriptionID: subscriptionID, + host: ep, + pl: pl, + } + return client, nil +} + +// BeginCreateOrUpdate - Create a FileSystemResource +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-10-12-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - fileSystemName - Name of the File System resource +// - resource - Resource create parameters. +// - options - FileSystemsClientBeginCreateOrUpdateOptions contains the optional parameters for the FileSystemsClient.BeginCreateOrUpdate +// method. +func (client *FileSystemsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, fileSystemName string, resource FileSystemResource, options *FileSystemsClientBeginCreateOrUpdateOptions) (*runtime.Poller[FileSystemsClientCreateOrUpdateResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.createOrUpdate(ctx, resourceGroupName, fileSystemName, resource, options) + if err != nil { + return nil, err + } + return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[FileSystemsClientCreateOrUpdateResponse]{ + FinalStateVia: runtime.FinalStateViaAzureAsyncOp, + }) + } else { + return runtime.NewPollerFromResumeToken[FileSystemsClientCreateOrUpdateResponse](options.ResumeToken, client.pl, nil) + } +} + +// CreateOrUpdate - Create a FileSystemResource +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-10-12-preview +func (client *FileSystemsClient) createOrUpdate(ctx context.Context, resourceGroupName string, fileSystemName string, resource FileSystemResource, options *FileSystemsClientBeginCreateOrUpdateOptions) (*http.Response, error) { + req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, fileSystemName, resource, options) + if err != nil { + return nil, err + } + resp, err := client.pl.Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusCreated) { + return nil, runtime.NewResponseError(resp) + } + return resp, nil +} + +// createOrUpdateCreateRequest creates the CreateOrUpdate request. +func (client *FileSystemsClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, fileSystemName string, resource FileSystemResource, options *FileSystemsClientBeginCreateOrUpdateOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Qumulo.Storage/fileSystems/{fileSystemName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if fileSystemName == "" { + return nil, errors.New("parameter fileSystemName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{fileSystemName}", url.PathEscape(fileSystemName)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-10-12-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, runtime.MarshalAsJSON(req, resource) +} + +// BeginDelete - Delete a FileSystemResource +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-10-12-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - fileSystemName - Name of the File System resource +// - options - FileSystemsClientBeginDeleteOptions contains the optional parameters for the FileSystemsClient.BeginDelete method. +func (client *FileSystemsClient) BeginDelete(ctx context.Context, resourceGroupName string, fileSystemName string, options *FileSystemsClientBeginDeleteOptions) (*runtime.Poller[FileSystemsClientDeleteResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.deleteOperation(ctx, resourceGroupName, fileSystemName, options) + if err != nil { + return nil, err + } + return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[FileSystemsClientDeleteResponse]{ + FinalStateVia: runtime.FinalStateViaAzureAsyncOp, + }) + } else { + return runtime.NewPollerFromResumeToken[FileSystemsClientDeleteResponse](options.ResumeToken, client.pl, nil) + } +} + +// Delete - Delete a FileSystemResource +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-10-12-preview +func (client *FileSystemsClient) deleteOperation(ctx context.Context, resourceGroupName string, fileSystemName string, options *FileSystemsClientBeginDeleteOptions) (*http.Response, error) { + req, err := client.deleteCreateRequest(ctx, resourceGroupName, fileSystemName, options) + if err != nil { + return nil, err + } + resp, err := client.pl.Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { + return nil, runtime.NewResponseError(resp) + } + return resp, nil +} + +// deleteCreateRequest creates the Delete request. +func (client *FileSystemsClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, fileSystemName string, options *FileSystemsClientBeginDeleteOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Qumulo.Storage/fileSystems/{fileSystemName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if fileSystemName == "" { + return nil, errors.New("parameter fileSystemName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{fileSystemName}", url.PathEscape(fileSystemName)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-10-12-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// Get - Get a FileSystemResource +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-10-12-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - fileSystemName - Name of the File System resource +// - options - FileSystemsClientGetOptions contains the optional parameters for the FileSystemsClient.Get method. +func (client *FileSystemsClient) Get(ctx context.Context, resourceGroupName string, fileSystemName string, options *FileSystemsClientGetOptions) (FileSystemsClientGetResponse, error) { + req, err := client.getCreateRequest(ctx, resourceGroupName, fileSystemName, options) + if err != nil { + return FileSystemsClientGetResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return FileSystemsClientGetResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return FileSystemsClientGetResponse{}, runtime.NewResponseError(resp) + } + return client.getHandleResponse(resp) +} + +// getCreateRequest creates the Get request. +func (client *FileSystemsClient) getCreateRequest(ctx context.Context, resourceGroupName string, fileSystemName string, options *FileSystemsClientGetOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Qumulo.Storage/fileSystems/{fileSystemName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if fileSystemName == "" { + return nil, errors.New("parameter fileSystemName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{fileSystemName}", url.PathEscape(fileSystemName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-10-12-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// getHandleResponse handles the Get response. +func (client *FileSystemsClient) getHandleResponse(resp *http.Response) (FileSystemsClientGetResponse, error) { + result := FileSystemsClientGetResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.FileSystemResource); err != nil { + return FileSystemsClientGetResponse{}, err + } + return result, nil +} + +// NewListByResourceGroupPager - List FileSystemResource resources by resource group +// +// Generated from API version 2022-10-12-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - options - FileSystemsClientListByResourceGroupOptions contains the optional parameters for the FileSystemsClient.NewListByResourceGroupPager +// method. +func (client *FileSystemsClient) NewListByResourceGroupPager(resourceGroupName string, options *FileSystemsClientListByResourceGroupOptions) *runtime.Pager[FileSystemsClientListByResourceGroupResponse] { + return runtime.NewPager(runtime.PagingHandler[FileSystemsClientListByResourceGroupResponse]{ + More: func(page FileSystemsClientListByResourceGroupResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 + }, + Fetcher: func(ctx context.Context, page *FileSystemsClientListByResourceGroupResponse) (FileSystemsClientListByResourceGroupResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listByResourceGroupCreateRequest(ctx, resourceGroupName, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return FileSystemsClientListByResourceGroupResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return FileSystemsClientListByResourceGroupResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return FileSystemsClientListByResourceGroupResponse{}, runtime.NewResponseError(resp) + } + return client.listByResourceGroupHandleResponse(resp) + }, + }) +} + +// listByResourceGroupCreateRequest creates the ListByResourceGroup request. +func (client *FileSystemsClient) listByResourceGroupCreateRequest(ctx context.Context, resourceGroupName string, options *FileSystemsClientListByResourceGroupOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Qumulo.Storage/fileSystems" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-10-12-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listByResourceGroupHandleResponse handles the ListByResourceGroup response. +func (client *FileSystemsClient) listByResourceGroupHandleResponse(resp *http.Response) (FileSystemsClientListByResourceGroupResponse, error) { + result := FileSystemsClientListByResourceGroupResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.FileSystemResourceListResult); err != nil { + return FileSystemsClientListByResourceGroupResponse{}, err + } + return result, nil +} + +// NewListBySubscriptionPager - List FileSystemResource resources by subscription ID +// +// Generated from API version 2022-10-12-preview +// - options - FileSystemsClientListBySubscriptionOptions contains the optional parameters for the FileSystemsClient.NewListBySubscriptionPager +// method. +func (client *FileSystemsClient) NewListBySubscriptionPager(options *FileSystemsClientListBySubscriptionOptions) *runtime.Pager[FileSystemsClientListBySubscriptionResponse] { + return runtime.NewPager(runtime.PagingHandler[FileSystemsClientListBySubscriptionResponse]{ + More: func(page FileSystemsClientListBySubscriptionResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 + }, + Fetcher: func(ctx context.Context, page *FileSystemsClientListBySubscriptionResponse) (FileSystemsClientListBySubscriptionResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listBySubscriptionCreateRequest(ctx, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return FileSystemsClientListBySubscriptionResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return FileSystemsClientListBySubscriptionResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return FileSystemsClientListBySubscriptionResponse{}, runtime.NewResponseError(resp) + } + return client.listBySubscriptionHandleResponse(resp) + }, + }) +} + +// listBySubscriptionCreateRequest creates the ListBySubscription request. +func (client *FileSystemsClient) listBySubscriptionCreateRequest(ctx context.Context, options *FileSystemsClientListBySubscriptionOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/providers/Qumulo.Storage/fileSystems" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-10-12-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listBySubscriptionHandleResponse handles the ListBySubscription response. +func (client *FileSystemsClient) listBySubscriptionHandleResponse(resp *http.Response) (FileSystemsClientListBySubscriptionResponse, error) { + result := FileSystemsClientListBySubscriptionResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.FileSystemResourceListResult); err != nil { + return FileSystemsClientListBySubscriptionResponse{}, err + } + return result, nil +} + +// Update - Update a FileSystemResource +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-10-12-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - fileSystemName - Name of the File System resource +// - properties - The resource properties to be updated. +// - options - FileSystemsClientUpdateOptions contains the optional parameters for the FileSystemsClient.Update method. +func (client *FileSystemsClient) Update(ctx context.Context, resourceGroupName string, fileSystemName string, properties FileSystemResourceUpdate, options *FileSystemsClientUpdateOptions) (FileSystemsClientUpdateResponse, error) { + req, err := client.updateCreateRequest(ctx, resourceGroupName, fileSystemName, properties, options) + if err != nil { + return FileSystemsClientUpdateResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return FileSystemsClientUpdateResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return FileSystemsClientUpdateResponse{}, runtime.NewResponseError(resp) + } + return client.updateHandleResponse(resp) +} + +// updateCreateRequest creates the Update request. +func (client *FileSystemsClient) updateCreateRequest(ctx context.Context, resourceGroupName string, fileSystemName string, properties FileSystemResourceUpdate, options *FileSystemsClientUpdateOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Qumulo.Storage/fileSystems/{fileSystemName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if fileSystemName == "" { + return nil, errors.New("parameter fileSystemName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{fileSystemName}", url.PathEscape(fileSystemName)) + req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-10-12-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, runtime.MarshalAsJSON(req, properties) +} + +// updateHandleResponse handles the Update response. +func (client *FileSystemsClient) updateHandleResponse(resp *http.Response) (FileSystemsClientUpdateResponse, error) { + result := FileSystemsClientUpdateResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.FileSystemResource); err != nil { + return FileSystemsClientUpdateResponse{}, err + } + return result, nil +} diff --git a/sdk/resourcemanager/liftrqumulo/armqumulo/filesystems_client_example_test.go b/sdk/resourcemanager/liftrqumulo/armqumulo/filesystems_client_example_test.go new file mode 100644 index 000000000000..fdafeb7edbc1 --- /dev/null +++ b/sdk/resourcemanager/liftrqumulo/armqumulo/filesystems_client_example_test.go @@ -0,0 +1,711 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armqumulo_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/liftrqumulo/armqumulo" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/9918780b4dc4bdc111cf3facc11561904d609ad7/specification/liftrqumulo/resource-manager/Qumulo.Storage/preview/2022-10-12-preview/examples/FileSystems_ListBySubscription_MaximumSet_Gen.json +func ExampleFileSystemsClient_NewListBySubscriptionPager_fileSystemsListBySubscriptionMaximumSetGen() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armqumulo.NewFileSystemsClient("ulseeqylxb", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListBySubscriptionPager(nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.FileSystemResourceListResult = armqumulo.FileSystemResourceListResult{ + // Value: []*armqumulo.FileSystemResource{ + // { + // Name: to.Ptr("bii"), + // Type: to.Ptr("qtvxrqwpoistduq"), + // ID: to.Ptr("tvelgpobdtazrweunifqzaxkgjauyx"), + // SystemData: &armqumulo.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-10-14T04:40:17.991Z"); return t}()), + // CreatedBy: to.Ptr("mtdhqooysjhueaojwpmvophkgntl"), + // CreatedByType: to.Ptr(armqumulo.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-10-14T04:40:17.991Z"); return t}()), + // LastModifiedBy: to.Ptr("jcywglomzuamsxltnoegdrkzlscxl"), + // LastModifiedByType: to.Ptr(armqumulo.CreatedByTypeUser), + // }, + // Location: to.Ptr("przdlsmlzsszphnixq"), + // Tags: map[string]*string{ + // "key6565": to.Ptr("cgdhmupta"), + // }, + // Identity: &armqumulo.ManagedServiceIdentity{ + // Type: to.Ptr(armqumulo.ManagedServiceIdentityTypeNone), + // PrincipalID: to.Ptr("11111111-1111-1111-1111-111111111111"), + // TenantID: to.Ptr("11111111-1111-1111-1111-111111111111"), + // UserAssignedIdentities: map[string]*armqumulo.UserAssignedIdentity{ + // "key4522": &armqumulo.UserAssignedIdentity{ + // ClientID: to.Ptr("11111111-1111-1111-1111-111111111111"), + // PrincipalID: to.Ptr("11111111-1111-1111-1111-111111111111"), + // }, + // }, + // }, + // Properties: &armqumulo.FileSystemResourceProperties{ + // AvailabilityZone: to.Ptr("maseyqhlnhoiwbabcqabtedbjpip"), + // ClusterLoginURL: to.Ptr("jjqhgevy"), + // DelegatedSubnetID: to.Ptr("neqctctqdmjezfgt"), + // InitialCapacity: to.Ptr[int32](9), + // MarketplaceDetails: &armqumulo.MarketplaceDetails{ + // MarketplaceSubscriptionID: to.Ptr("ujrcqvxfnhxxheoth"), + // MarketplaceSubscriptionStatus: to.Ptr(armqumulo.MarketplaceSubscriptionStatusPendingFulfillmentStart), + // OfferID: to.Ptr("eiyhbmpwgezcmzrrfoiskuxlcvwojf"), + // PlanID: to.Ptr("x"), + // PublisherID: to.Ptr("wfmokfdjbwpjhz"), + // }, + // PrivateIPs: []*string{ + // to.Ptr("kslguxrwbwkrj")}, + // ProvisioningState: to.Ptr(armqumulo.ProvisioningStateSucceeded), + // StorageSKU: to.Ptr(armqumulo.StorageSKUStandard), + // UserDetails: &armqumulo.UserDetails{ + // }, + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/9918780b4dc4bdc111cf3facc11561904d609ad7/specification/liftrqumulo/resource-manager/Qumulo.Storage/preview/2022-10-12-preview/examples/FileSystems_ListBySubscription_MinimumSet_Gen.json +func ExampleFileSystemsClient_NewListBySubscriptionPager_fileSystemsListBySubscriptionMinimumSetGen() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armqumulo.NewFileSystemsClient("aaaaaaa", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListBySubscriptionPager(nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.FileSystemResourceListResult = armqumulo.FileSystemResourceListResult{ + // Value: []*armqumulo.FileSystemResource{ + // { + // Name: to.Ptr("aaaaa"), + // ID: to.Ptr("aaaaaaaaaaaaaaaaa"), + // Location: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaa"), + // Properties: &armqumulo.FileSystemResourceProperties{ + // DelegatedSubnetID: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaaa"), + // InitialCapacity: to.Ptr[int32](9), + // MarketplaceDetails: &armqumulo.MarketplaceDetails{ + // MarketplaceSubscriptionID: to.Ptr("aaaaaaaaaaaaaaaaa"), + // MarketplaceSubscriptionStatus: to.Ptr(armqumulo.MarketplaceSubscriptionStatusPendingFulfillmentStart), + // OfferID: to.Ptr("aaaaaaaaa"), + // PlanID: to.Ptr("aaaaaaa"), + // PublisherID: to.Ptr("aaaaaaaaaaaaaaaaaaaa"), + // }, + // ProvisioningState: to.Ptr(armqumulo.ProvisioningStateSucceeded), + // StorageSKU: to.Ptr(armqumulo.StorageSKUStandard), + // UserDetails: &armqumulo.UserDetails{ + // }, + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/9918780b4dc4bdc111cf3facc11561904d609ad7/specification/liftrqumulo/resource-manager/Qumulo.Storage/preview/2022-10-12-preview/examples/FileSystems_ListByResourceGroup_MaximumSet_Gen.json +func ExampleFileSystemsClient_NewListByResourceGroupPager_fileSystemsListByResourceGroupMaximumSetGen() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armqumulo.NewFileSystemsClient("ulseeqylxb", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListByResourceGroupPager("rgQumulo", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.FileSystemResourceListResult = armqumulo.FileSystemResourceListResult{ + // Value: []*armqumulo.FileSystemResource{ + // { + // Name: to.Ptr("bii"), + // Type: to.Ptr("qtvxrqwpoistduq"), + // ID: to.Ptr("tvelgpobdtazrweunifqzaxkgjauyx"), + // SystemData: &armqumulo.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-10-14T04:40:17.991Z"); return t}()), + // CreatedBy: to.Ptr("mtdhqooysjhueaojwpmvophkgntl"), + // CreatedByType: to.Ptr(armqumulo.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-10-14T04:40:17.991Z"); return t}()), + // LastModifiedBy: to.Ptr("jcywglomzuamsxltnoegdrkzlscxl"), + // LastModifiedByType: to.Ptr(armqumulo.CreatedByTypeUser), + // }, + // Location: to.Ptr("przdlsmlzsszphnixq"), + // Tags: map[string]*string{ + // "key6565": to.Ptr("cgdhmupta"), + // }, + // Identity: &armqumulo.ManagedServiceIdentity{ + // Type: to.Ptr(armqumulo.ManagedServiceIdentityTypeNone), + // PrincipalID: to.Ptr("11111111-1111-1111-1111-111111111111"), + // TenantID: to.Ptr("11111111-1111-1111-1111-111111111111"), + // UserAssignedIdentities: map[string]*armqumulo.UserAssignedIdentity{ + // "key4522": &armqumulo.UserAssignedIdentity{ + // ClientID: to.Ptr("11111111-1111-1111-1111-111111111111"), + // PrincipalID: to.Ptr("11111111-1111-1111-1111-111111111111"), + // }, + // }, + // }, + // Properties: &armqumulo.FileSystemResourceProperties{ + // AvailabilityZone: to.Ptr("maseyqhlnhoiwbabcqabtedbjpip"), + // ClusterLoginURL: to.Ptr("jjqhgevy"), + // DelegatedSubnetID: to.Ptr("neqctctqdmjezfgt"), + // InitialCapacity: to.Ptr[int32](9), + // MarketplaceDetails: &armqumulo.MarketplaceDetails{ + // MarketplaceSubscriptionID: to.Ptr("ujrcqvxfnhxxheoth"), + // MarketplaceSubscriptionStatus: to.Ptr(armqumulo.MarketplaceSubscriptionStatusPendingFulfillmentStart), + // OfferID: to.Ptr("eiyhbmpwgezcmzrrfoiskuxlcvwojf"), + // PlanID: to.Ptr("x"), + // PublisherID: to.Ptr("wfmokfdjbwpjhz"), + // }, + // PrivateIPs: []*string{ + // to.Ptr("kslguxrwbwkrj")}, + // ProvisioningState: to.Ptr(armqumulo.ProvisioningStateSucceeded), + // StorageSKU: to.Ptr(armqumulo.StorageSKUStandard), + // UserDetails: &armqumulo.UserDetails{ + // }, + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/9918780b4dc4bdc111cf3facc11561904d609ad7/specification/liftrqumulo/resource-manager/Qumulo.Storage/preview/2022-10-12-preview/examples/FileSystems_ListByResourceGroup_MinimumSet_Gen.json +func ExampleFileSystemsClient_NewListByResourceGroupPager_fileSystemsListByResourceGroupMinimumSetGen() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armqumulo.NewFileSystemsClient("aaaaaaa", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListByResourceGroupPager("rgQumulo", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.FileSystemResourceListResult = armqumulo.FileSystemResourceListResult{ + // Value: []*armqumulo.FileSystemResource{ + // { + // Name: to.Ptr("aaaaa"), + // ID: to.Ptr("aaaaaaaaaaaaaaaaa"), + // Location: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaa"), + // Properties: &armqumulo.FileSystemResourceProperties{ + // DelegatedSubnetID: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaaa"), + // InitialCapacity: to.Ptr[int32](9), + // MarketplaceDetails: &armqumulo.MarketplaceDetails{ + // MarketplaceSubscriptionID: to.Ptr("aaaaaaaaaaaaaaaaa"), + // MarketplaceSubscriptionStatus: to.Ptr(armqumulo.MarketplaceSubscriptionStatusPendingFulfillmentStart), + // OfferID: to.Ptr("aaaaaaaaa"), + // PlanID: to.Ptr("aaaaaaa"), + // PublisherID: to.Ptr("aaaaaaaaaaaaaaaaaaaa"), + // }, + // ProvisioningState: to.Ptr(armqumulo.ProvisioningStateSucceeded), + // StorageSKU: to.Ptr(armqumulo.StorageSKUStandard), + // UserDetails: &armqumulo.UserDetails{ + // }, + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/9918780b4dc4bdc111cf3facc11561904d609ad7/specification/liftrqumulo/resource-manager/Qumulo.Storage/preview/2022-10-12-preview/examples/FileSystems_Get_MaximumSet_Gen.json +func ExampleFileSystemsClient_Get_fileSystemsGetMaximumSetGen() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armqumulo.NewFileSystemsClient("ulseeqylxb", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "rgQumulo", "nauwwbfoqehgbhdsmkewoboyxeqg", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.FileSystemResource = armqumulo.FileSystemResource{ + // Name: to.Ptr("bii"), + // Type: to.Ptr("qtvxrqwpoistduq"), + // ID: to.Ptr("tvelgpobdtazrweunifqzaxkgjauyx"), + // SystemData: &armqumulo.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-10-14T04:40:17.991Z"); return t}()), + // CreatedBy: to.Ptr("mtdhqooysjhueaojwpmvophkgntl"), + // CreatedByType: to.Ptr(armqumulo.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-10-14T04:40:17.991Z"); return t}()), + // LastModifiedBy: to.Ptr("jcywglomzuamsxltnoegdrkzlscxl"), + // LastModifiedByType: to.Ptr(armqumulo.CreatedByTypeUser), + // }, + // Location: to.Ptr("przdlsmlzsszphnixq"), + // Tags: map[string]*string{ + // "key6565": to.Ptr("cgdhmupta"), + // }, + // Identity: &armqumulo.ManagedServiceIdentity{ + // Type: to.Ptr(armqumulo.ManagedServiceIdentityTypeNone), + // PrincipalID: to.Ptr("11111111-1111-1111-1111-111111111111"), + // TenantID: to.Ptr("11111111-1111-1111-1111-111111111111"), + // UserAssignedIdentities: map[string]*armqumulo.UserAssignedIdentity{ + // "key4522": &armqumulo.UserAssignedIdentity{ + // ClientID: to.Ptr("11111111-1111-1111-1111-111111111111"), + // PrincipalID: to.Ptr("11111111-1111-1111-1111-111111111111"), + // }, + // }, + // }, + // Properties: &armqumulo.FileSystemResourceProperties{ + // AvailabilityZone: to.Ptr("maseyqhlnhoiwbabcqabtedbjpip"), + // ClusterLoginURL: to.Ptr("jjqhgevy"), + // DelegatedSubnetID: to.Ptr("neqctctqdmjezfgt"), + // InitialCapacity: to.Ptr[int32](9), + // MarketplaceDetails: &armqumulo.MarketplaceDetails{ + // MarketplaceSubscriptionID: to.Ptr("ujrcqvxfnhxxheoth"), + // MarketplaceSubscriptionStatus: to.Ptr(armqumulo.MarketplaceSubscriptionStatusPendingFulfillmentStart), + // OfferID: to.Ptr("eiyhbmpwgezcmzrrfoiskuxlcvwojf"), + // PlanID: to.Ptr("x"), + // PublisherID: to.Ptr("wfmokfdjbwpjhz"), + // }, + // PrivateIPs: []*string{ + // to.Ptr("kslguxrwbwkrj")}, + // ProvisioningState: to.Ptr(armqumulo.ProvisioningStateSucceeded), + // StorageSKU: to.Ptr(armqumulo.StorageSKUStandard), + // UserDetails: &armqumulo.UserDetails{ + // }, + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/9918780b4dc4bdc111cf3facc11561904d609ad7/specification/liftrqumulo/resource-manager/Qumulo.Storage/preview/2022-10-12-preview/examples/FileSystems_Get_MinimumSet_Gen.json +func ExampleFileSystemsClient_Get_fileSystemsGetMinimumSetGen() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armqumulo.NewFileSystemsClient("aaaaaaa", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "rgQumulo", "aaaaaaaaaaaaaaaaa", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.FileSystemResource = armqumulo.FileSystemResource{ + // Name: to.Ptr("aaaaa"), + // ID: to.Ptr("aaaaaaaaaaaaaaaaa"), + // Location: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaa"), + // Properties: &armqumulo.FileSystemResourceProperties{ + // DelegatedSubnetID: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaaa"), + // InitialCapacity: to.Ptr[int32](9), + // MarketplaceDetails: &armqumulo.MarketplaceDetails{ + // MarketplaceSubscriptionID: to.Ptr("aaaaaaaaaaaaaaaaa"), + // MarketplaceSubscriptionStatus: to.Ptr(armqumulo.MarketplaceSubscriptionStatusPendingFulfillmentStart), + // OfferID: to.Ptr("aaaaaaaaa"), + // PlanID: to.Ptr("aaaaaaa"), + // PublisherID: to.Ptr("aaaaaaaaaaaaaaaaaaaa"), + // }, + // ProvisioningState: to.Ptr(armqumulo.ProvisioningStateSucceeded), + // StorageSKU: to.Ptr(armqumulo.StorageSKUStandard), + // UserDetails: &armqumulo.UserDetails{ + // }, + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/9918780b4dc4bdc111cf3facc11561904d609ad7/specification/liftrqumulo/resource-manager/Qumulo.Storage/preview/2022-10-12-preview/examples/FileSystems_CreateOrUpdate_MaximumSet_Gen.json +func ExampleFileSystemsClient_BeginCreateOrUpdate_fileSystemsCreateOrUpdateMaximumSetGen() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armqumulo.NewFileSystemsClient("ulseeqylxb", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreateOrUpdate(ctx, "rgQumulo", "nauwwbfoqehgbhdsmkewoboyxeqg", armqumulo.FileSystemResource{ + Location: to.Ptr("przdlsmlzsszphnixq"), + Tags: map[string]*string{ + "key6565": to.Ptr("cgdhmupta"), + }, + Identity: &armqumulo.ManagedServiceIdentity{ + Type: to.Ptr(armqumulo.ManagedServiceIdentityTypeNone), + UserAssignedIdentities: map[string]*armqumulo.UserAssignedIdentity{ + "key4522": {}, + }, + }, + Properties: &armqumulo.FileSystemResourceProperties{ + AdminPassword: to.Ptr("ekceujoecaashtjlsgcymnrdozk"), + AvailabilityZone: to.Ptr("maseyqhlnhoiwbabcqabtedbjpip"), + ClusterLoginURL: to.Ptr("jjqhgevy"), + DelegatedSubnetID: to.Ptr("neqctctqdmjezfgt"), + InitialCapacity: to.Ptr[int32](9), + MarketplaceDetails: &armqumulo.MarketplaceDetails{ + MarketplaceSubscriptionID: to.Ptr("ujrcqvxfnhxxheoth"), + MarketplaceSubscriptionStatus: to.Ptr(armqumulo.MarketplaceSubscriptionStatusPendingFulfillmentStart), + OfferID: to.Ptr("eiyhbmpwgezcmzrrfoiskuxlcvwojf"), + PlanID: to.Ptr("x"), + PublisherID: to.Ptr("wfmokfdjbwpjhz"), + }, + PrivateIPs: []*string{ + to.Ptr("kslguxrwbwkrj")}, + ProvisioningState: to.Ptr(armqumulo.ProvisioningStateAccepted), + StorageSKU: to.Ptr(armqumulo.StorageSKUStandard), + UserDetails: &armqumulo.UserDetails{ + Email: to.Ptr("viptslwulnpaupfljvnjeq"), + }, + }, + }, 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.FileSystemResource = armqumulo.FileSystemResource{ + // Name: to.Ptr("bii"), + // Type: to.Ptr("qtvxrqwpoistduq"), + // ID: to.Ptr("tvelgpobdtazrweunifqzaxkgjauyx"), + // SystemData: &armqumulo.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-10-14T04:40:17.991Z"); return t}()), + // CreatedBy: to.Ptr("mtdhqooysjhueaojwpmvophkgntl"), + // CreatedByType: to.Ptr(armqumulo.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-10-14T04:40:17.991Z"); return t}()), + // LastModifiedBy: to.Ptr("jcywglomzuamsxltnoegdrkzlscxl"), + // LastModifiedByType: to.Ptr(armqumulo.CreatedByTypeUser), + // }, + // Location: to.Ptr("przdlsmlzsszphnixq"), + // Tags: map[string]*string{ + // "key6565": to.Ptr("cgdhmupta"), + // }, + // Identity: &armqumulo.ManagedServiceIdentity{ + // Type: to.Ptr(armqumulo.ManagedServiceIdentityTypeNone), + // PrincipalID: to.Ptr("11111111-1111-1111-1111-111111111111"), + // TenantID: to.Ptr("11111111-1111-1111-1111-111111111111"), + // UserAssignedIdentities: map[string]*armqumulo.UserAssignedIdentity{ + // "key4522": &armqumulo.UserAssignedIdentity{ + // ClientID: to.Ptr("11111111-1111-1111-1111-111111111111"), + // PrincipalID: to.Ptr("11111111-1111-1111-1111-111111111111"), + // }, + // }, + // }, + // Properties: &armqumulo.FileSystemResourceProperties{ + // AvailabilityZone: to.Ptr("maseyqhlnhoiwbabcqabtedbjpip"), + // ClusterLoginURL: to.Ptr("jjqhgevy"), + // DelegatedSubnetID: to.Ptr("neqctctqdmjezfgt"), + // InitialCapacity: to.Ptr[int32](9), + // MarketplaceDetails: &armqumulo.MarketplaceDetails{ + // MarketplaceSubscriptionID: to.Ptr("ujrcqvxfnhxxheoth"), + // MarketplaceSubscriptionStatus: to.Ptr(armqumulo.MarketplaceSubscriptionStatusPendingFulfillmentStart), + // OfferID: to.Ptr("eiyhbmpwgezcmzrrfoiskuxlcvwojf"), + // PlanID: to.Ptr("x"), + // PublisherID: to.Ptr("wfmokfdjbwpjhz"), + // }, + // PrivateIPs: []*string{ + // to.Ptr("kslguxrwbwkrj")}, + // ProvisioningState: to.Ptr(armqumulo.ProvisioningStateSucceeded), + // StorageSKU: to.Ptr(armqumulo.StorageSKUStandard), + // UserDetails: &armqumulo.UserDetails{ + // }, + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/9918780b4dc4bdc111cf3facc11561904d609ad7/specification/liftrqumulo/resource-manager/Qumulo.Storage/preview/2022-10-12-preview/examples/FileSystems_CreateOrUpdate_MinimumSet_Gen.json +func ExampleFileSystemsClient_BeginCreateOrUpdate_fileSystemsCreateOrUpdateMinimumSetGen() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armqumulo.NewFileSystemsClient("aaaaaaaaaaaaaaaaaaaaaaaa", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreateOrUpdate(ctx, "rgopenapi", "aaaaaaaa", armqumulo.FileSystemResource{ + Location: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaa"), + Properties: &armqumulo.FileSystemResourceProperties{ + AdminPassword: to.Ptr("ekceujoecaashtjlsgcymnrdozk"), + DelegatedSubnetID: to.Ptr("aaaaaaaaaa"), + InitialCapacity: to.Ptr[int32](9), + MarketplaceDetails: &armqumulo.MarketplaceDetails{ + MarketplaceSubscriptionID: to.Ptr("aaaaaaaaaaaaa"), + MarketplaceSubscriptionStatus: to.Ptr(armqumulo.MarketplaceSubscriptionStatusPendingFulfillmentStart), + OfferID: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaa"), + PlanID: to.Ptr("aaaaaa"), + PublisherID: to.Ptr("aa"), + }, + ProvisioningState: to.Ptr(armqumulo.ProvisioningStateAccepted), + StorageSKU: to.Ptr(armqumulo.StorageSKUStandard), + UserDetails: &armqumulo.UserDetails{ + Email: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaa"), + }, + }, + }, 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.FileSystemResource = armqumulo.FileSystemResource{ + // ID: to.Ptr("aaaaaaaaaaaaaaaaa"), + // Location: to.Ptr("aaaaaaaaa"), + // Properties: &armqumulo.FileSystemResourceProperties{ + // DelegatedSubnetID: to.Ptr("aaaaaaaaaa"), + // InitialCapacity: to.Ptr[int32](9), + // MarketplaceDetails: &armqumulo.MarketplaceDetails{ + // MarketplaceSubscriptionID: to.Ptr("aaaaaaaaaaaaa"), + // MarketplaceSubscriptionStatus: to.Ptr(armqumulo.MarketplaceSubscriptionStatusPendingFulfillmentStart), + // OfferID: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaa"), + // PlanID: to.Ptr("aaaaaa"), + // PublisherID: to.Ptr("aa"), + // }, + // ProvisioningState: to.Ptr(armqumulo.ProvisioningStateSucceeded), + // StorageSKU: to.Ptr(armqumulo.StorageSKUStandard), + // UserDetails: &armqumulo.UserDetails{ + // }, + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/9918780b4dc4bdc111cf3facc11561904d609ad7/specification/liftrqumulo/resource-manager/Qumulo.Storage/preview/2022-10-12-preview/examples/FileSystems_Update_MaximumSet_Gen.json +func ExampleFileSystemsClient_Update_fileSystemsUpdateMaximumSetGen() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armqumulo.NewFileSystemsClient("ulseeqylxb", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Update(ctx, "rgQumulo", "nauwwbfoqehgbhdsmkewoboyxeqg", armqumulo.FileSystemResourceUpdate{ + Identity: &armqumulo.ManagedServiceIdentity{ + Type: to.Ptr(armqumulo.ManagedServiceIdentityTypeNone), + UserAssignedIdentities: map[string]*armqumulo.UserAssignedIdentity{ + "key4522": {}, + }, + }, + Properties: &armqumulo.FileSystemResourceUpdateProperties{ + ClusterLoginURL: to.Ptr("adabmuthwrbjshzfbo"), + DelegatedSubnetID: to.Ptr("vjfirtaljehawmflyfianw"), + MarketplaceDetails: &armqumulo.MarketplaceDetails{ + MarketplaceSubscriptionID: to.Ptr("ujrcqvxfnhxxheoth"), + MarketplaceSubscriptionStatus: to.Ptr(armqumulo.MarketplaceSubscriptionStatusPendingFulfillmentStart), + OfferID: to.Ptr("eiyhbmpwgezcmzrrfoiskuxlcvwojf"), + PlanID: to.Ptr("x"), + PublisherID: to.Ptr("wfmokfdjbwpjhz"), + }, + PrivateIPs: []*string{ + to.Ptr("eugjqbaoucgjsopzfrq")}, + UserDetails: &armqumulo.UserDetails{ + Email: to.Ptr("viptslwulnpaupfljvnjeq"), + }, + }, + Tags: map[string]*string{ + "key7534": to.Ptr("jsgqvqbagquvxowbrkanyhzvo"), + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.FileSystemResource = armqumulo.FileSystemResource{ + // Name: to.Ptr("bii"), + // Type: to.Ptr("qtvxrqwpoistduq"), + // ID: to.Ptr("tvelgpobdtazrweunifqzaxkgjauyx"), + // SystemData: &armqumulo.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-10-14T04:40:17.991Z"); return t}()), + // CreatedBy: to.Ptr("mtdhqooysjhueaojwpmvophkgntl"), + // CreatedByType: to.Ptr(armqumulo.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-10-14T04:40:17.991Z"); return t}()), + // LastModifiedBy: to.Ptr("jcywglomzuamsxltnoegdrkzlscxl"), + // LastModifiedByType: to.Ptr(armqumulo.CreatedByTypeUser), + // }, + // Location: to.Ptr("przdlsmlzsszphnixq"), + // Tags: map[string]*string{ + // "key6565": to.Ptr("cgdhmupta"), + // }, + // Identity: &armqumulo.ManagedServiceIdentity{ + // Type: to.Ptr(armqumulo.ManagedServiceIdentityTypeNone), + // PrincipalID: to.Ptr("11111111-1111-1111-1111-111111111111"), + // TenantID: to.Ptr("11111111-1111-1111-1111-111111111111"), + // UserAssignedIdentities: map[string]*armqumulo.UserAssignedIdentity{ + // "key4522": &armqumulo.UserAssignedIdentity{ + // ClientID: to.Ptr("11111111-1111-1111-1111-111111111111"), + // PrincipalID: to.Ptr("11111111-1111-1111-1111-111111111111"), + // }, + // }, + // }, + // Properties: &armqumulo.FileSystemResourceProperties{ + // AvailabilityZone: to.Ptr("maseyqhlnhoiwbabcqabtedbjpip"), + // ClusterLoginURL: to.Ptr("jjqhgevy"), + // DelegatedSubnetID: to.Ptr("neqctctqdmjezfgt"), + // InitialCapacity: to.Ptr[int32](9), + // MarketplaceDetails: &armqumulo.MarketplaceDetails{ + // MarketplaceSubscriptionID: to.Ptr("ujrcqvxfnhxxheoth"), + // MarketplaceSubscriptionStatus: to.Ptr(armqumulo.MarketplaceSubscriptionStatusPendingFulfillmentStart), + // OfferID: to.Ptr("eiyhbmpwgezcmzrrfoiskuxlcvwojf"), + // PlanID: to.Ptr("x"), + // PublisherID: to.Ptr("wfmokfdjbwpjhz"), + // }, + // PrivateIPs: []*string{ + // to.Ptr("eugjqbaoucgjsopzfrq")}, + // ProvisioningState: to.Ptr(armqumulo.ProvisioningStateSucceeded), + // StorageSKU: to.Ptr(armqumulo.StorageSKUStandard), + // UserDetails: &armqumulo.UserDetails{ + // }, + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/9918780b4dc4bdc111cf3facc11561904d609ad7/specification/liftrqumulo/resource-manager/Qumulo.Storage/preview/2022-10-12-preview/examples/FileSystems_Update_MinimumSet_Gen.json +func ExampleFileSystemsClient_Update_fileSystemsUpdateMinimumSetGen() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armqumulo.NewFileSystemsClient("aaaaaaa", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Update(ctx, "rgQumulo", "aaaaaaaaaaaaaaaaa", armqumulo.FileSystemResourceUpdate{}, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.FileSystemResource = armqumulo.FileSystemResource{ + // Name: to.Ptr("aaaaa"), + // Location: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaa"), + // Properties: &armqumulo.FileSystemResourceProperties{ + // DelegatedSubnetID: to.Ptr("aaaaaaaaaaaaaaaaaaaaaaaaaaaaa"), + // InitialCapacity: to.Ptr[int32](9), + // MarketplaceDetails: &armqumulo.MarketplaceDetails{ + // MarketplaceSubscriptionID: to.Ptr("aaaaaaaaaaaaaaaaa"), + // MarketplaceSubscriptionStatus: to.Ptr(armqumulo.MarketplaceSubscriptionStatusPendingFulfillmentStart), + // OfferID: to.Ptr("aaaaaaaaa"), + // PlanID: to.Ptr("aaaaaaa"), + // PublisherID: to.Ptr("aaaaaaaaaaaaaaaaaaaa"), + // }, + // ProvisioningState: to.Ptr(armqumulo.ProvisioningStateSucceeded), + // StorageSKU: to.Ptr(armqumulo.StorageSKUStandard), + // UserDetails: &armqumulo.UserDetails{ + // }, + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/9918780b4dc4bdc111cf3facc11561904d609ad7/specification/liftrqumulo/resource-manager/Qumulo.Storage/preview/2022-10-12-preview/examples/FileSystems_Delete_MaximumSet_Gen.json +func ExampleFileSystemsClient_BeginDelete_fileSystemsDeleteMaximumSetGen() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armqumulo.NewFileSystemsClient("ulseeqylxb", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginDelete(ctx, "rgQumulo", "nauwwbfoqehgbhdsmkewoboyxeqg", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + _, err = poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/9918780b4dc4bdc111cf3facc11561904d609ad7/specification/liftrqumulo/resource-manager/Qumulo.Storage/preview/2022-10-12-preview/examples/FileSystems_Delete_MinimumSet_Gen.json +func ExampleFileSystemsClient_BeginDelete_fileSystemsDeleteMinimumSetGen() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armqumulo.NewFileSystemsClient("ulseeqylxb", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginDelete(ctx, "rgQumulo", "nauwwbfoqehgbhdsmkewoboyxeqg", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + _, err = poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } +} diff --git a/sdk/resourcemanager/liftrqumulo/armqumulo/go.mod b/sdk/resourcemanager/liftrqumulo/armqumulo/go.mod new file mode 100644 index 000000000000..eea3396f1940 --- /dev/null +++ b/sdk/resourcemanager/liftrqumulo/armqumulo/go.mod @@ -0,0 +1,21 @@ +module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/liftrqumulo/armqumulo + +go 1.18 + +require ( + github.com/Azure/azure-sdk-for-go/sdk/azcore v1.0.0 + github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.1 +) + +require ( + github.com/Azure/azure-sdk-for-go/sdk/internal v1.0.0 // indirect + github.com/AzureAD/microsoft-authentication-library-for-go v0.8.1 // indirect + github.com/golang-jwt/jwt/v4 v4.4.2 // 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-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/liftrqumulo/armqumulo/go.sum b/sdk/resourcemanager/liftrqumulo/armqumulo/go.sum new file mode 100644 index 000000000000..67cfef6bdf6e --- /dev/null +++ b/sdk/resourcemanager/liftrqumulo/armqumulo/go.sum @@ -0,0 +1,30 @@ +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.2.1 h1:T8quHYlUGyb/oqtSTwqlCr1ilJHrDv+ZtpSfo+hm1BU= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.1/go.mod h1:gLa1CL2RNE4s7M3yopJ/p0iq5DdY6Yv5ZUt9MTRZOQM= +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.8.1 h1:oPdPEZFSbl7oSPEAIPMPBMUmiL+mqgzBJwM/9qYcwNg= +github.com/AzureAD/microsoft-authentication-library-for-go v0.8.1/go.mod h1:4qFor3D/HDsvBME35Xy9rwW9DecL+M2sNw1ybjPtwA0= +github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= +github.com/dnaeon/go-vcr v1.1.0 h1:ReYa/UBrRyQdant9B4fNHGoCNKw6qh6P0fsdGmZpR7c= +github.com/golang-jwt/jwt/v4 v4.4.2 h1:rcc4lwaZgFMCZ5jxF9ABolDcIHdBytAFgqFPbSJQAYs= +github.com/golang-jwt/jwt/v4 v4.4.2/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= +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/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/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= +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-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= +gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= +gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo= diff --git a/sdk/resourcemanager/liftrqumulo/armqumulo/models.go b/sdk/resourcemanager/liftrqumulo/armqumulo/models.go new file mode 100644 index 000000000000..3b9921489f59 --- /dev/null +++ b/sdk/resourcemanager/liftrqumulo/armqumulo/models.go @@ -0,0 +1,274 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armqumulo + +import "time" + +// FileSystemResource - A FileSystem Resource by Qumulo +type FileSystemResource struct { + // REQUIRED; The geo-location where the resource lives + Location *string `json:"location,omitempty"` + + // REQUIRED; The resource-specific properties for this resource. + Properties *FileSystemResourceProperties `json:"properties,omitempty"` + + // The managed service identities assigned to this resource. + Identity *ManagedServiceIdentity `json:"identity,omitempty"` + + // Resource tags. + Tags map[string]*string `json:"tags,omitempty"` + + // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string `json:"id,omitempty" azure:"ro"` + + // READ-ONLY; The name of the resource + Name *string `json:"name,omitempty" azure:"ro"` + + // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. + SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + + // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string `json:"type,omitempty" azure:"ro"` +} + +// FileSystemResourceListResult - The response of a FileSystemResource list operation. +type FileSystemResourceListResult struct { + // REQUIRED; The FileSystemResource items on this page + Value []*FileSystemResource `json:"value,omitempty"` + + // The link to the next page of items + NextLink *string `json:"nextLink,omitempty"` +} + +// FileSystemResourceProperties - Properties specific to the Qumulo File System resource +type FileSystemResourceProperties struct { + // REQUIRED; Initial administrator password of the resource + AdminPassword *string `json:"adminPassword,omitempty"` + + // REQUIRED; Delegated subnet id for Vnet injection + DelegatedSubnetID *string `json:"delegatedSubnetId,omitempty"` + + // REQUIRED; Storage capacity in TB + InitialCapacity *int32 `json:"initialCapacity,omitempty"` + + // REQUIRED; Marketplace details + MarketplaceDetails *MarketplaceDetails `json:"marketplaceDetails,omitempty"` + + // REQUIRED; Storage Sku + StorageSKU *StorageSKU `json:"storageSku,omitempty"` + + // REQUIRED; User Details + UserDetails *UserDetails `json:"userDetails,omitempty"` + + // Availability zone + AvailabilityZone *string `json:"availabilityZone,omitempty"` + + // File system Id of the resource + ClusterLoginURL *string `json:"clusterLoginUrl,omitempty"` + + // Private IPs of the resource + PrivateIPs []*string `json:"privateIPs,omitempty"` + + // READ-ONLY; Provisioning State of the resource + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` +} + +// FileSystemResourceUpdate - The type used for update operations of the FileSystemResource. +type FileSystemResourceUpdate struct { + // The managed service identities assigned to this resource. + Identity *ManagedServiceIdentity `json:"identity,omitempty"` + + // The updatable properties of the FileSystemResource. + Properties *FileSystemResourceUpdateProperties `json:"properties,omitempty"` + + // Resource tags. + Tags map[string]*string `json:"tags,omitempty"` +} + +// FileSystemResourceUpdateProperties - The updatable properties of the FileSystemResource. +type FileSystemResourceUpdateProperties struct { + // File system Id of the resource + ClusterLoginURL *string `json:"clusterLoginUrl,omitempty"` + + // Delegated subnet id for Vnet injection + DelegatedSubnetID *string `json:"delegatedSubnetId,omitempty"` + + // Marketplace details + MarketplaceDetails *MarketplaceDetails `json:"marketplaceDetails,omitempty"` + + // Private IPs of the resource + PrivateIPs []*string `json:"privateIPs,omitempty"` + + // User Details + UserDetails *UserDetails `json:"userDetails,omitempty"` +} + +// FileSystemsClientBeginCreateOrUpdateOptions contains the optional parameters for the FileSystemsClient.BeginCreateOrUpdate +// method. +type FileSystemsClientBeginCreateOrUpdateOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// FileSystemsClientBeginDeleteOptions contains the optional parameters for the FileSystemsClient.BeginDelete method. +type FileSystemsClientBeginDeleteOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// FileSystemsClientGetOptions contains the optional parameters for the FileSystemsClient.Get method. +type FileSystemsClientGetOptions struct { + // placeholder for future optional parameters +} + +// FileSystemsClientListByResourceGroupOptions contains the optional parameters for the FileSystemsClient.NewListByResourceGroupPager +// method. +type FileSystemsClientListByResourceGroupOptions struct { + // placeholder for future optional parameters +} + +// FileSystemsClientListBySubscriptionOptions contains the optional parameters for the FileSystemsClient.NewListBySubscriptionPager +// method. +type FileSystemsClientListBySubscriptionOptions struct { + // placeholder for future optional parameters +} + +// FileSystemsClientUpdateOptions contains the optional parameters for the FileSystemsClient.Update method. +type FileSystemsClientUpdateOptions struct { + // placeholder for future optional parameters +} + +// 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 `json:"type,omitempty"` + + // 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 `json:"userAssignedIdentities,omitempty"` + + // READ-ONLY; The service principal ID of the system assigned identity. This property will only be provided for a system assigned + // identity. + PrincipalID *string `json:"principalId,omitempty" azure:"ro"` + + // READ-ONLY; The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. + TenantID *string `json:"tenantId,omitempty" azure:"ro"` +} + +// MarketplaceDetails of Qumulo FileSystem resource +type MarketplaceDetails struct { + // REQUIRED; Offer Id + OfferID *string `json:"offerId,omitempty"` + + // REQUIRED; Plan Id + PlanID *string `json:"planId,omitempty"` + + // REQUIRED; Publisher Id + PublisherID *string `json:"publisherId,omitempty"` + + // Marketplace Subscription Id + MarketplaceSubscriptionID *string `json:"marketplaceSubscriptionId,omitempty"` + + // READ-ONLY; Marketplace subscription status + MarketplaceSubscriptionStatus *MarketplaceSubscriptionStatus `json:"marketplaceSubscriptionStatus,omitempty" azure:"ro"` +} + +// Operation - Details of a REST API operation, returned from the Resource Provider Operations API +type Operation struct { + // Localized display information for this particular operation. + Display *OperationDisplay `json:"display,omitempty"` + + // READ-ONLY; Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. + ActionType *ActionType `json:"actionType,omitempty" azure:"ro"` + + // READ-ONLY; Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for ARM/control-plane + // operations. + IsDataAction *bool `json:"isDataAction,omitempty" azure:"ro"` + + // READ-ONLY; The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", + // "Microsoft.Compute/virtualMachines/capture/action" + Name *string `json:"name,omitempty" azure:"ro"` + + // READ-ONLY; The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default + // value is "user,system" + Origin *Origin `json:"origin,omitempty" azure:"ro"` +} + +// OperationDisplay - Localized display information for this particular operation. +type OperationDisplay struct { + // READ-ONLY; The short, localized friendly description of the operation; suitable for tool tips and detailed views. + Description *string `json:"description,omitempty" azure:"ro"` + + // READ-ONLY; The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual + // Machine", "Restart Virtual Machine". + Operation *string `json:"operation,omitempty" azure:"ro"` + + // READ-ONLY; The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft + // Compute". + Provider *string `json:"provider,omitempty" azure:"ro"` + + // READ-ONLY; The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job + // Schedule Collections". + Resource *string `json:"resource,omitempty" azure:"ro"` +} + +// OperationListResult - A list of REST API operations supported by an Azure Resource Provider. It contains an 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"` + + // READ-ONLY; List of operations supported by the resource provider + Value []*Operation `json:"value,omitempty" azure:"ro"` +} + +// OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method. +type OperationsClientListOptions struct { + // placeholder for future optional parameters +} + +// 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"` + + // The identity that created the resource. + CreatedBy *string `json:"createdBy,omitempty"` + + // The type of identity that created the resource. + CreatedByType *CreatedByType `json:"createdByType,omitempty"` + + // The timestamp of resource last modification (UTC) + LastModifiedAt *time.Time `json:"lastModifiedAt,omitempty"` + + // The identity that last modified the resource. + LastModifiedBy *string `json:"lastModifiedBy,omitempty"` + + // The type of identity that last modified the resource. + LastModifiedByType *CreatedByType `json:"lastModifiedByType,omitempty"` +} + +// UserAssignedIdentity - User assigned identity properties +type UserAssignedIdentity struct { + // READ-ONLY; The client ID of the assigned identity. + ClientID *string `json:"clientId,omitempty" azure:"ro"` + + // READ-ONLY; The principal ID of the assigned identity. + PrincipalID *string `json:"principalId,omitempty" azure:"ro"` +} + +// UserDetails - User Details of Qumulo FileSystem resource +type UserDetails struct { + // REQUIRED; User Email + Email *string `json:"email,omitempty"` +} diff --git a/sdk/resourcemanager/liftrqumulo/armqumulo/models_serde.go b/sdk/resourcemanager/liftrqumulo/armqumulo/models_serde.go new file mode 100644 index 000000000000..2c4444ff8eee --- /dev/null +++ b/sdk/resourcemanager/liftrqumulo/armqumulo/models_serde.go @@ -0,0 +1,564 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armqumulo + +import ( + "encoding/json" + "fmt" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "reflect" +) + +// MarshalJSON implements the json.Marshaller interface for type FileSystemResource. +func (f FileSystemResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", f.ID) + populate(objectMap, "identity", f.Identity) + populate(objectMap, "location", f.Location) + populate(objectMap, "name", f.Name) + populate(objectMap, "properties", f.Properties) + populate(objectMap, "systemData", f.SystemData) + populate(objectMap, "tags", f.Tags) + populate(objectMap, "type", f.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type FileSystemResource. +func (f *FileSystemResource) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", f, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &f.ID) + delete(rawMsg, key) + case "identity": + err = unpopulate(val, "Identity", &f.Identity) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &f.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &f.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &f.Properties) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &f.SystemData) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &f.Tags) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &f.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", f, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type FileSystemResourceListResult. +func (f FileSystemResourceListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", f.NextLink) + populate(objectMap, "value", f.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type FileSystemResourceListResult. +func (f *FileSystemResourceListResult) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", f, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &f.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &f.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", f, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type FileSystemResourceProperties. +func (f FileSystemResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "adminPassword", f.AdminPassword) + populate(objectMap, "availabilityZone", f.AvailabilityZone) + populate(objectMap, "clusterLoginUrl", f.ClusterLoginURL) + populate(objectMap, "delegatedSubnetId", f.DelegatedSubnetID) + populate(objectMap, "initialCapacity", f.InitialCapacity) + populate(objectMap, "marketplaceDetails", f.MarketplaceDetails) + populate(objectMap, "privateIPs", f.PrivateIPs) + populate(objectMap, "provisioningState", f.ProvisioningState) + populate(objectMap, "storageSku", f.StorageSKU) + populate(objectMap, "userDetails", f.UserDetails) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type FileSystemResourceProperties. +func (f *FileSystemResourceProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", f, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "adminPassword": + err = unpopulate(val, "AdminPassword", &f.AdminPassword) + delete(rawMsg, key) + case "availabilityZone": + err = unpopulate(val, "AvailabilityZone", &f.AvailabilityZone) + delete(rawMsg, key) + case "clusterLoginUrl": + err = unpopulate(val, "ClusterLoginURL", &f.ClusterLoginURL) + delete(rawMsg, key) + case "delegatedSubnetId": + err = unpopulate(val, "DelegatedSubnetID", &f.DelegatedSubnetID) + delete(rawMsg, key) + case "initialCapacity": + err = unpopulate(val, "InitialCapacity", &f.InitialCapacity) + delete(rawMsg, key) + case "marketplaceDetails": + err = unpopulate(val, "MarketplaceDetails", &f.MarketplaceDetails) + delete(rawMsg, key) + case "privateIPs": + err = unpopulate(val, "PrivateIPs", &f.PrivateIPs) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &f.ProvisioningState) + delete(rawMsg, key) + case "storageSku": + err = unpopulate(val, "StorageSKU", &f.StorageSKU) + delete(rawMsg, key) + case "userDetails": + err = unpopulate(val, "UserDetails", &f.UserDetails) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", f, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type FileSystemResourceUpdate. +func (f FileSystemResourceUpdate) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "identity", f.Identity) + populate(objectMap, "properties", f.Properties) + populate(objectMap, "tags", f.Tags) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type FileSystemResourceUpdate. +func (f *FileSystemResourceUpdate) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", f, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "identity": + err = unpopulate(val, "Identity", &f.Identity) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &f.Properties) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &f.Tags) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", f, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type FileSystemResourceUpdateProperties. +func (f FileSystemResourceUpdateProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "clusterLoginUrl", f.ClusterLoginURL) + populate(objectMap, "delegatedSubnetId", f.DelegatedSubnetID) + populate(objectMap, "marketplaceDetails", f.MarketplaceDetails) + populate(objectMap, "privateIPs", f.PrivateIPs) + populate(objectMap, "userDetails", f.UserDetails) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type FileSystemResourceUpdateProperties. +func (f *FileSystemResourceUpdateProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", f, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "clusterLoginUrl": + err = unpopulate(val, "ClusterLoginURL", &f.ClusterLoginURL) + delete(rawMsg, key) + case "delegatedSubnetId": + err = unpopulate(val, "DelegatedSubnetID", &f.DelegatedSubnetID) + delete(rawMsg, key) + case "marketplaceDetails": + err = unpopulate(val, "MarketplaceDetails", &f.MarketplaceDetails) + delete(rawMsg, key) + case "privateIPs": + err = unpopulate(val, "PrivateIPs", &f.PrivateIPs) + delete(rawMsg, key) + case "userDetails": + err = unpopulate(val, "UserDetails", &f.UserDetails) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", f, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type 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 MarketplaceDetails. +func (m MarketplaceDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "marketplaceSubscriptionId", m.MarketplaceSubscriptionID) + populate(objectMap, "marketplaceSubscriptionStatus", m.MarketplaceSubscriptionStatus) + populate(objectMap, "offerId", m.OfferID) + populate(objectMap, "planId", m.PlanID) + populate(objectMap, "publisherId", m.PublisherID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type MarketplaceDetails. +func (m *MarketplaceDetails) 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 "marketplaceSubscriptionId": + err = unpopulate(val, "MarketplaceSubscriptionID", &m.MarketplaceSubscriptionID) + delete(rawMsg, key) + case "marketplaceSubscriptionStatus": + err = unpopulate(val, "MarketplaceSubscriptionStatus", &m.MarketplaceSubscriptionStatus) + delete(rawMsg, key) + case "offerId": + err = unpopulate(val, "OfferID", &m.OfferID) + delete(rawMsg, key) + case "planId": + err = unpopulate(val, "PlanID", &m.PlanID) + delete(rawMsg, key) + case "publisherId": + err = unpopulate(val, "PublisherID", &m.PublisherID) + 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 Operation. +func (o Operation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "actionType", o.ActionType) + populate(objectMap, "display", o.Display) + populate(objectMap, "isDataAction", o.IsDataAction) + populate(objectMap, "name", o.Name) + populate(objectMap, "origin", o.Origin) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Operation. +func (o *Operation) 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", o, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "actionType": + err = unpopulate(val, "ActionType", &o.ActionType) + delete(rawMsg, key) + case "display": + err = unpopulate(val, "Display", &o.Display) + delete(rawMsg, key) + case "isDataAction": + err = unpopulate(val, "IsDataAction", &o.IsDataAction) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &o.Name) + delete(rawMsg, key) + case "origin": + err = unpopulate(val, "Origin", &o.Origin) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", o, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "description", o.Description) + populate(objectMap, "operation", o.Operation) + populate(objectMap, "provider", o.Provider) + populate(objectMap, "resource", o.Resource) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type OperationDisplay. +func (o *OperationDisplay) 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", o, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "description": + err = unpopulate(val, "Description", &o.Description) + delete(rawMsg, key) + case "operation": + err = unpopulate(val, "Operation", &o.Operation) + delete(rawMsg, key) + case "provider": + err = unpopulate(val, "Provider", &o.Provider) + delete(rawMsg, key) + case "resource": + err = unpopulate(val, "Resource", &o.Resource) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", o, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type OperationListResult. +func (o OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", o.NextLink) + populate(objectMap, "value", o.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type OperationListResult. +func (o *OperationListResult) 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", o, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &o.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &o.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", o, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SystemData. +func (s SystemData) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateTimeRFC3339(objectMap, "createdAt", s.CreatedAt) + populate(objectMap, "createdBy", s.CreatedBy) + populate(objectMap, "createdByType", s.CreatedByType) + populateTimeRFC3339(objectMap, "lastModifiedAt", s.LastModifiedAt) + populate(objectMap, "lastModifiedBy", s.LastModifiedBy) + populate(objectMap, "lastModifiedByType", s.LastModifiedByType) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SystemData. +func (s *SystemData) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "createdAt": + err = unpopulateTimeRFC3339(val, "CreatedAt", &s.CreatedAt) + delete(rawMsg, key) + case "createdBy": + err = unpopulate(val, "CreatedBy", &s.CreatedBy) + delete(rawMsg, key) + case "createdByType": + err = unpopulate(val, "CreatedByType", &s.CreatedByType) + delete(rawMsg, key) + case "lastModifiedAt": + err = unpopulateTimeRFC3339(val, "LastModifiedAt", &s.LastModifiedAt) + delete(rawMsg, key) + case "lastModifiedBy": + err = unpopulate(val, "LastModifiedBy", &s.LastModifiedBy) + delete(rawMsg, key) + case "lastModifiedByType": + err = unpopulate(val, "LastModifiedByType", &s.LastModifiedByType) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type 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 UserDetails. +func (u UserDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "email", u.Email) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type UserDetails. +func (u *UserDetails) 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 "email": + err = unpopulate(val, "Email", &u.Email) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", u, err) + } + } + return nil +} + +func populate(m map[string]any, k string, v any) { + if v == nil { + return + } else if azcore.IsNullValue(v) { + m[k] = nil + } else if !reflect.ValueOf(v).IsNil() { + m[k] = v + } +} + +func unpopulate(data json.RawMessage, fn string, v any) error { + if data == nil { + return nil + } + if err := json.Unmarshal(data, v); err != nil { + return fmt.Errorf("struct field %s: %v", fn, err) + } + return nil +} diff --git a/sdk/resourcemanager/liftrqumulo/armqumulo/operations_client.go b/sdk/resourcemanager/liftrqumulo/armqumulo/operations_client.go new file mode 100644 index 000000000000..b56594574a1c --- /dev/null +++ b/sdk/resourcemanager/liftrqumulo/armqumulo/operations_client.go @@ -0,0 +1,105 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armqumulo + +import ( + "context" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "net/http" +) + +// OperationsClient contains the methods for the Operations group. +// Don't use this type directly, use NewOperationsClient() instead. +type OperationsClient struct { + host string + pl runtime.Pipeline +} + +// NewOperationsClient creates a new instance of OperationsClient with the specified values. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. +func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*OperationsClient, error) { + if options == nil { + options = &arm.ClientOptions{} + } + ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err + } + client := &OperationsClient{ + host: ep, + pl: pl, + } + return client, nil +} + +// NewListPager - List the operations for the provider +// +// Generated from API version 2022-10-12-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]{ + More: func(page OperationsClientListResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 + }, + Fetcher: func(ctx context.Context, page *OperationsClientListResponse) (OperationsClientListResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listCreateRequest(ctx, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return OperationsClientListResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return OperationsClientListResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return OperationsClientListResponse{}, runtime.NewResponseError(resp) + } + return client.listHandleResponse(resp) + }, + }) +} + +// listCreateRequest creates the List request. +func (client *OperationsClient) listCreateRequest(ctx context.Context, options *OperationsClientListOptions) (*policy.Request, error) { + urlPath := "/providers/Qumulo.Storage/operations" + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-10-12-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listHandleResponse handles the List response. +func (client *OperationsClient) listHandleResponse(resp *http.Response) (OperationsClientListResponse, error) { + result := OperationsClientListResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.OperationListResult); err != nil { + return OperationsClientListResponse{}, err + } + return result, nil +} diff --git a/sdk/resourcemanager/liftrqumulo/armqumulo/operations_client_example_test.go b/sdk/resourcemanager/liftrqumulo/armqumulo/operations_client_example_test.go new file mode 100644 index 000000000000..5bf69bc60e90 --- /dev/null +++ b/sdk/resourcemanager/liftrqumulo/armqumulo/operations_client_example_test.go @@ -0,0 +1,85 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armqumulo_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/liftrqumulo/armqumulo" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/9918780b4dc4bdc111cf3facc11561904d609ad7/specification/liftrqumulo/resource-manager/Qumulo.Storage/preview/2022-10-12-preview/examples/Operations_List_MaximumSet_Gen.json +func ExampleOperationsClient_NewListPager_operationsListMaximumSetGen() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armqumulo.NewOperationsClient(cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListPager(nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.OperationListResult = armqumulo.OperationListResult{ + // Value: []*armqumulo.Operation{ + // { + // Name: to.Ptr("runmssufdtztqwcjrxyuyodlzbxidp"), + // ActionType: to.Ptr(armqumulo.ActionTypeInternal), + // Display: &armqumulo.OperationDisplay{ + // Description: to.Ptr("cnjdpucbtzreoihwdqnkprk"), + // Operation: to.Ptr("fgyvgifprfxdgyqdbglrysjjsozm"), + // Provider: to.Ptr("e"), + // Resource: to.Ptr("cgzkjnfpkvddogcszpdn"), + // }, + // IsDataAction: to.Ptr(true), + // Origin: to.Ptr(armqumulo.OriginUser), + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/9918780b4dc4bdc111cf3facc11561904d609ad7/specification/liftrqumulo/resource-manager/Qumulo.Storage/preview/2022-10-12-preview/examples/Operations_List_MinimumSet_Gen.json +func ExampleOperationsClient_NewListPager_operationsListMinimumSetGen() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armqumulo.NewOperationsClient(cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListPager(nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.OperationListResult = armqumulo.OperationListResult{ + // } + } +} diff --git a/sdk/resourcemanager/liftrqumulo/armqumulo/response_types.go b/sdk/resourcemanager/liftrqumulo/armqumulo/response_types.go new file mode 100644 index 000000000000..6dacad3ea3e1 --- /dev/null +++ b/sdk/resourcemanager/liftrqumulo/armqumulo/response_types.go @@ -0,0 +1,45 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armqumulo + +// FileSystemsClientCreateOrUpdateResponse contains the response from method FileSystemsClient.BeginCreateOrUpdate. +type FileSystemsClientCreateOrUpdateResponse struct { + FileSystemResource +} + +// FileSystemsClientDeleteResponse contains the response from method FileSystemsClient.BeginDelete. +type FileSystemsClientDeleteResponse struct { + // placeholder for future response values +} + +// FileSystemsClientGetResponse contains the response from method FileSystemsClient.Get. +type FileSystemsClientGetResponse struct { + FileSystemResource +} + +// FileSystemsClientListByResourceGroupResponse contains the response from method FileSystemsClient.NewListByResourceGroupPager. +type FileSystemsClientListByResourceGroupResponse struct { + FileSystemResourceListResult +} + +// FileSystemsClientListBySubscriptionResponse contains the response from method FileSystemsClient.NewListBySubscriptionPager. +type FileSystemsClientListBySubscriptionResponse struct { + FileSystemResourceListResult +} + +// FileSystemsClientUpdateResponse contains the response from method FileSystemsClient.Update. +type FileSystemsClientUpdateResponse struct { + FileSystemResource +} + +// OperationsClientListResponse contains the response from method OperationsClient.NewListPager. +type OperationsClientListResponse struct { + OperationListResult +} diff --git a/sdk/resourcemanager/liftrqumulo/armqumulo/time_rfc3339.go b/sdk/resourcemanager/liftrqumulo/armqumulo/time_rfc3339.go new file mode 100644 index 000000000000..921c9080264d --- /dev/null +++ b/sdk/resourcemanager/liftrqumulo/armqumulo/time_rfc3339.go @@ -0,0 +1,87 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armqumulo + +import ( + "encoding/json" + "fmt" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "reflect" + "regexp" + "strings" + "time" +) + +const ( + utcLayoutJSON = `"2006-01-02T15:04:05.999999999"` + utcLayout = "2006-01-02T15:04:05.999999999" + rfc3339JSON = `"` + time.RFC3339Nano + `"` +) + +// Azure reports time in UTC but it doesn't include the 'Z' time zone suffix in some cases. +var tzOffsetRegex = regexp.MustCompile(`(Z|z|\+|-)(\d+:\d+)*"*$`) + +type timeRFC3339 time.Time + +func (t timeRFC3339) MarshalJSON() (json []byte, err error) { + tt := time.Time(t) + return tt.MarshalJSON() +} + +func (t timeRFC3339) MarshalText() (text []byte, err error) { + tt := time.Time(t) + return tt.MarshalText() +} + +func (t *timeRFC3339) UnmarshalJSON(data []byte) error { + layout := utcLayoutJSON + if tzOffsetRegex.Match(data) { + layout = rfc3339JSON + } + return t.Parse(layout, string(data)) +} + +func (t *timeRFC3339) UnmarshalText(data []byte) (err error) { + layout := utcLayout + if tzOffsetRegex.Match(data) { + layout = time.RFC3339Nano + } + return t.Parse(layout, string(data)) +} + +func (t *timeRFC3339) Parse(layout, value string) error { + p, err := time.Parse(layout, strings.ToUpper(value)) + *t = timeRFC3339(p) + return err +} + +func populateTimeRFC3339(m map[string]any, k string, t *time.Time) { + if t == nil { + return + } else if azcore.IsNullValue(t) { + m[k] = nil + return + } else if reflect.ValueOf(t).IsNil() { + return + } + m[k] = (*timeRFC3339)(t) +} + +func unpopulateTimeRFC3339(data json.RawMessage, fn string, t **time.Time) error { + if data == nil || strings.EqualFold(string(data), "null") { + return nil + } + var aux timeRFC3339 + if err := json.Unmarshal(data, &aux); err != nil { + return fmt.Errorf("struct field %s: %v", fn, err) + } + *t = (*time.Time)(&aux) + return nil +} From 7e7d2a8dcb1e0fd36ba74024b645c4348671bcf4 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Wed, 15 Feb 2023 00:47:10 -0800 Subject: [PATCH 025/107] Sync eng/common directory with azure-sdk-tools for PR 5456 (#20020) * Add parameter TimeoutInMinutes * Update pools and images to latest * Remove all usage of vmImage --------- Co-authored-by: Mike Harder --- eng/common/pipelines/templates/jobs/perf.yml | 22 ++++++-------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/eng/common/pipelines/templates/jobs/perf.yml b/eng/common/pipelines/templates/jobs/perf.yml index ff2d53162558..073e5de641cb 100644 --- a/eng/common/pipelines/templates/jobs/perf.yml +++ b/eng/common/pipelines/templates/jobs/perf.yml @@ -2,18 +2,15 @@ parameters: - name: JobName type: string default: 'Perf' +- name: TimeoutInMinutes + type: number + default: '360' - name: LinuxPool type: string - default: 'azsdk-pool-mms-ubuntu-2004-perf' -- name: LinuxVmImage - type: string - default: 'MMSUbuntu20.04' + default: 'azsdk-pool-mms-ubuntu-2204-perf' - name: WindowsPool type: string - default: 'azsdk-pool-mms-win-2019-perf' -- name: WindowsVmImage - type: string - default: 'MMS2019' + default: 'azsdk-pool-mms-win-2022-perf' - name: Language type: string default: '' @@ -65,18 +62,16 @@ parameters: jobs: - job: ${{ parameters.JobName }} - timeoutInMinutes: 360 + timeoutInMinutes: ${{ parameters.TimeoutInMinutes }} strategy: matrix: ${{ if contains(parameters.OperatingSystems, 'Linux') }}: Linux: Pool: ${{ parameters.LinuxPool }} - OsVmImage: ${{ parameters.LinuxVmImage }} MatrixName: 'Linux' ${{ if contains(parameters.OperatingSystems, 'Windows') }}: Windows: Pool: ${{ parameters.WindowsPool }} - OsVmImage: ${{ parameters.WindowsVmImage }} MatrixName: 'Windows' variables: - ${{ parameters.Variables }} @@ -87,7 +82,6 @@ jobs: value: '' pool: name: $(Pool) - vmImage: $(OSVmImage) steps: - template: /eng/common/pipelines/templates/steps/sparse-checkout.yml @@ -106,10 +100,6 @@ jobs: Commitish: ${{ parameters.ToolsRepoCommitish }} WorkingDirectory: $(System.DefaultWorkingDirectory)/azure-sdk-tools - - template: /eng/common/pipelines/templates/steps/verify-agent-os.yml - parameters: - AgentImage: $(OSVmImage) - - ${{ parameters.InstallLanguageSteps }} - template: /eng/common/TestResources/deploy-test-resources.yml From fab2a5a8ac7fc759e322e02c7fe5f87bd191269d Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Wed, 15 Feb 2023 10:03:43 -0800 Subject: [PATCH 026/107] Increment package version after release of storage/azqueue (#20025) --- sdk/storage/azqueue/CHANGELOG.md | 14 +++++++++++++- sdk/storage/azqueue/internal/exported/version.go | 2 +- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/sdk/storage/azqueue/CHANGELOG.md b/sdk/storage/azqueue/CHANGELOG.md index e54024879899..81127f99b819 100644 --- a/sdk/storage/azqueue/CHANGELOG.md +++ b/sdk/storage/azqueue/CHANGELOG.md @@ -1,4 +1,16 @@ -## 0.1.0 (2023-02-15) +## Release History + +### 0.1.1 (Unreleased) + +#### Features Added + +#### Breaking Changes + +#### Bugs Fixed + +#### Other Changes + +### 0.1.0 (2023-02-15) ### Features Added diff --git a/sdk/storage/azqueue/internal/exported/version.go b/sdk/storage/azqueue/internal/exported/version.go index cfbc93f4ea9d..9ad8cee51fad 100644 --- a/sdk/storage/azqueue/internal/exported/version.go +++ b/sdk/storage/azqueue/internal/exported/version.go @@ -8,5 +8,5 @@ package exported const ( ModuleName = "azqueue" - ModuleVersion = "v0.1.0" + ModuleVersion = "v0.1.1" ) From 3909a454b8a66f6e9ccae9e0e8a76c4499ba2b74 Mon Sep 17 00:00:00 2001 From: karunmotorq <105210556+karunmotorq@users.noreply.github.com> Date: Thu, 16 Feb 2023 01:36:47 +0530 Subject: [PATCH 027/107] Null Partition Key for Cosmos (#20002) * Nil partition key * Changelog * Update CHANGELOG.md * Tests for Null Partition Key * Unit Tests for Null Partition Key CRUD Operations on Emulator * NullPartitionKey variable instead of function * Typo Edit * Docstring --- sdk/data/azcosmos/CHANGELOG.md | 1 + .../azcosmos/emulator_cosmos_item_test.go | 175 ++++++++++++++++++ sdk/data/azcosmos/partition_key.go | 5 + sdk/data/azcosmos/partition_key_test.go | 7 + 4 files changed, 188 insertions(+) diff --git a/sdk/data/azcosmos/CHANGELOG.md b/sdk/data/azcosmos/CHANGELOG.md index e110a9000af9..b95809c018a6 100644 --- a/sdk/data/azcosmos/CHANGELOG.md +++ b/sdk/data/azcosmos/CHANGELOG.md @@ -3,6 +3,7 @@ ## 0.3.4 (Unreleased) ### Features Added +* Added `NullPartitionKey` variable to create and query documents with null partition key in CosmosDB ### Breaking Changes diff --git a/sdk/data/azcosmos/emulator_cosmos_item_test.go b/sdk/data/azcosmos/emulator_cosmos_item_test.go index 3a402efc0cf6..1086f62d7366 100644 --- a/sdk/data/azcosmos/emulator_cosmos_item_test.go +++ b/sdk/data/azcosmos/emulator_cosmos_item_test.go @@ -188,6 +188,181 @@ func TestItemCRUD(t *testing.T) { } } +func TestItemCRUDforNullPartitionKey(t *testing.T) { + emulatorTests := newEmulatorTests(t) + client := emulatorTests.getClient(t) + + database := emulatorTests.createDatabase(t, context.TODO(), client, "itemCRUD") + defer emulatorTests.deleteDatabase(t, context.TODO(), database) + properties := ContainerProperties{ + ID: "aContainer", + PartitionKeyDefinition: PartitionKeyDefinition{ + Paths: []string{"/partitionKey"}, + }, + } + + _, err := database.CreateContainer(context.TODO(), properties, nil) + if err != nil { + t.Fatalf("Failed to create container: %v", err) + } + + item := map[string]interface{}{ + "partitionKey": nil, + "id": "1", + "value": "2", + "count": 3, + "description": "4", + } + + container, _ := database.NewContainer("aContainer") + pk := NullPartitionKey + + marshalled, err := json.Marshal(item) + if err != nil { + t.Fatal(err) + } + + itemResponse, err := container.CreateItem(context.TODO(), pk, marshalled, nil) + if err != nil { + t.Fatalf("Failed to create item: %v", err) + } + + if itemResponse.SessionToken == "" { + t.Fatalf("Session token is empty") + } + + // No content on write by default + if len(itemResponse.Value) != 0 { + t.Fatalf("Expected empty response, got %v", itemResponse.Value) + } + + itemResponse, err = container.ReadItem(context.TODO(), pk, "1", nil) + if err != nil { + t.Fatalf("Failed to read item: %v", err) + } + + if len(itemResponse.Value) == 0 { + t.Fatalf("Expected non-empty response, got %v", itemResponse.Value) + } + + var itemResponseBody map[string]interface{} + err = json.Unmarshal(itemResponse.Value, &itemResponseBody) + if err != nil { + t.Fatalf("Failed to unmarshal item response: %v", err) + } + if itemResponseBody["id"] != "1" { + t.Fatalf("Expected id to be 1, got %v", itemResponseBody["id"]) + } + if itemResponseBody["value"] != "2" { + t.Fatalf("Expected value to be 2, got %v", itemResponseBody["value"]) + } + + item["value"] = "3" + marshalled, err = json.Marshal(item) + if err != nil { + t.Fatal(err) + } + itemResponse, err = container.ReplaceItem(context.TODO(), pk, "1", marshalled, &ItemOptions{EnableContentResponseOnWrite: true}) + if err != nil { + t.Fatalf("Failed to replace item: %v", err) + } + + // Explicitly requesting body on write + if len(itemResponse.Value) == 0 { + t.Fatalf("Expected non-empty response, got %v", itemResponse.Value) + } + + err = json.Unmarshal(itemResponse.Value, &itemResponseBody) + if err != nil { + t.Fatalf("Failed to unmarshal item response: %v", err) + } + if itemResponseBody["id"] != "1" { + t.Fatalf("Expected id to be 1, got %v", itemResponseBody["id"]) + } + if itemResponseBody["value"] != "3" { + t.Fatalf("Expected value to be 3, got %v", itemResponseBody["value"]) + } + + item["value"] = "4" + marshalled, err = json.Marshal(item) + if err != nil { + t.Fatal(err) + } + itemResponse, err = container.UpsertItem(context.TODO(), pk, marshalled, &ItemOptions{EnableContentResponseOnWrite: true}) + if err != nil { + t.Fatalf("Failed to upsert item: %v", err) + } + + // Explicitly requesting body on write + if len(itemResponse.Value) == 0 { + t.Fatalf("Expected non-empty response, got %v", itemResponse.Value) + } + + err = json.Unmarshal(itemResponse.Value, &itemResponseBody) + if err != nil { + t.Fatalf("Failed to unmarshal item response: %v", err) + } + if itemResponseBody["id"] != "1" { + t.Fatalf("Expected id to be 1, got %v", itemResponseBody["id"]) + } + if itemResponseBody["value"] != "4" { + t.Fatalf("Expected value to be 4, got %v", itemResponseBody["value"]) + } + + patchItem := PatchOperations{} + patchItem.AppendReplace("/value", "5") + patchItem.AppendSet("/hello", "world") + patchItem.AppendAdd("/foo", "bar") + patchItem.AppendRemove("/description") + patchItem.AppendIncrement("/count", 1) + + itemResponse, err = container.PatchItem(context.TODO(), pk, "1", patchItem, nil) + if err != nil { + t.Fatalf("Failed to patch item: %v", err) + } + + // No content on write by default + if len(itemResponse.Value) != 0 { + t.Fatalf("Expected empty response, got %v", itemResponse.Value) + } + + itemResponse, _ = container.ReadItem(context.TODO(), pk, "1", nil) + + err = json.Unmarshal(itemResponse.Value, &itemResponseBody) + if err != nil { + t.Fatalf("Failed to unmarshal item response: %v", err) + } + + if itemResponseBody["value"] != "5" { + t.Fatalf("Expected value to be 5, got %v", itemResponseBody["id"]) + } + + if itemResponseBody["hello"] != "world" { + t.Fatalf("Expected hello to be world, got %v", itemResponseBody["hello"]) + } + + if itemResponseBody["foo"] != "bar" { + t.Fatalf("Expected foo to be bar, got %v", itemResponseBody["foo"]) + } + + if itemResponseBody["count"].(float64) != float64(4) { + t.Fatalf("Expected count to be 4, got %v", itemResponseBody["count"]) + } + + if itemResponseBody["toremove"] != nil { + t.Fatalf("Expected toremove to be nil, got %v", itemResponseBody) + } + + itemResponse, err = container.DeleteItem(context.TODO(), pk, "1", nil) + if err != nil { + t.Fatalf("Failed to replace item: %v", err) + } + + if len(itemResponse.Value) != 0 { + t.Fatalf("Expected empty response, got %v", itemResponse.Value) + } +} + func TestItemIdEncodingRoutingGW(t *testing.T) { emulatorTests := newEmulatorTests(t) client := emulatorTests.getClient(t) diff --git a/sdk/data/azcosmos/partition_key.go b/sdk/data/azcosmos/partition_key.go index da0ac27763d0..ca61aec87ae2 100644 --- a/sdk/data/azcosmos/partition_key.go +++ b/sdk/data/azcosmos/partition_key.go @@ -14,6 +14,11 @@ type PartitionKey struct { values []interface{} } +// NullPartitionKey represents a partition key with a null value. +var NullPartitionKey PartitionKey = PartitionKey{ + values: []interface{}{nil}, +} + // NewPartitionKeyString creates a partition key with a string value. func NewPartitionKeyString(value string) PartitionKey { components := []interface{}{value} diff --git a/sdk/data/azcosmos/partition_key_test.go b/sdk/data/azcosmos/partition_key_test.go index 44096f5444c5..bd7e651aba29 100644 --- a/sdk/data/azcosmos/partition_key_test.go +++ b/sdk/data/azcosmos/partition_key_test.go @@ -15,6 +15,7 @@ func TestSerialization(t *testing.T) { "[\"some string\"]": NewPartitionKeyString("some string"), "[true]": NewPartitionKeyBool(true), "[false]": NewPartitionKeyBool(false), + "[null]": NullPartitionKey, } for expectedSerialization, pk := range validTypes { @@ -68,4 +69,10 @@ func TestPartitionKeyEquality(t *testing.T) { if !reflect.DeepEqual(pk, pk2) { t.Errorf("Expected %v to equal %v", pk, pk2) } + + pk = NullPartitionKey + pk2 = NullPartitionKey + if !reflect.DeepEqual(pk, pk2) { + t.Errorf("Expected %v to equal %v", pk, pk2) + } } From a8700a4c87c8a63382b608d3ff2d03533a6f76bc Mon Sep 17 00:00:00 2001 From: Richard Park <51494936+richardpark-msft@users.noreply.github.com> Date: Wed, 15 Feb 2023 17:02:44 -0800 Subject: [PATCH 028/107] [azeventhubs] Fix credit requesting errors (#20015) The current go-amqp can have issues if your active credits are greater than the session window size. We have a blocking-release bug here: https://github.com/Azure/go-amqp/issues/240. I've also added validation to prevent asking for <= 0 credits as well, which isn't supported. I've also updated the stress tests to build with Go1.20 - it doesn't change the requirements for customer code. --- .../azeventhubs/internal/eh/stress/Dockerfile | 2 +- .../azeventhubs/internal/eh/stress/stress.go | 4 - sdk/messaging/azeventhubs/partition_client.go | 19 ++- .../azeventhubs/partition_client_unit_test.go | 113 ++++++++++++++++++ 4 files changed, 132 insertions(+), 6 deletions(-) diff --git a/sdk/messaging/azeventhubs/internal/eh/stress/Dockerfile b/sdk/messaging/azeventhubs/internal/eh/stress/Dockerfile index 39f0df136873..10cf2a3ef84f 100644 --- a/sdk/messaging/azeventhubs/internal/eh/stress/Dockerfile +++ b/sdk/messaging/azeventhubs/internal/eh/stress/Dockerfile @@ -1,4 +1,4 @@ -FROM mcr.microsoft.com/oss/go/microsoft/golang:1.18 as build +FROM mcr.microsoft.com/oss/go/microsoft/golang:1.20 as build # you'll need to run this build from the root of the azeventhubs module ENV GOOS=linux ENV GOARCH=amd64 diff --git a/sdk/messaging/azeventhubs/internal/eh/stress/stress.go b/sdk/messaging/azeventhubs/internal/eh/stress/stress.go index eab8fda44267..81ab35a93964 100644 --- a/sdk/messaging/azeventhubs/internal/eh/stress/stress.go +++ b/sdk/messaging/azeventhubs/internal/eh/stress/stress.go @@ -5,10 +5,8 @@ package main import ( "context" "fmt" - "math/rand" "os" "sort" - "time" "github.com/Azure/azure-sdk-for-go/sdk/messaging/azeventhubs/internal/eh/stress/tests" ) @@ -42,8 +40,6 @@ func main() { for _, test := range tests { if test.name == testName { - rand.Seed(time.Now().UnixNano()) - if err := test.fn(context.Background()); err != nil { fmt.Printf("ERROR: %s\n", err) os.Exit(1) diff --git a/sdk/messaging/azeventhubs/partition_client.go b/sdk/messaging/azeventhubs/partition_client.go index eec90d5615e1..8640a2a781be 100644 --- a/sdk/messaging/azeventhubs/partition_client.go +++ b/sdk/messaging/azeventhubs/partition_client.go @@ -21,7 +21,11 @@ import ( const DefaultConsumerGroup = "$Default" const defaultPrefetchSize = uint32(300) -const defaultMaxCreditSize = uint32(2048) + +// defaultLinkRxBuffer is the maximum number of transfer frames we can handle +// on the Receiver. This matches the current default window size that go-amqp +// uses for sessions. +const defaultMaxCreditSize = uint32(5000) // StartPosition indicates the position to start receiving events within a partition. // The default position is Latest. @@ -100,6 +104,14 @@ func (pc *PartitionClient) ReceiveEvents(ctx context.Context, count int, options prefetchDisabled := pc.prefetch < 0 + if count <= 0 { + return nil, internal.NewErrNonRetriable("count should be greater than 0") + } + + if prefetchDisabled && count > int(defaultMaxCreditSize) { + return nil, internal.NewErrNonRetriable(fmt.Sprintf("count cannot exceed %d", defaultMaxCreditSize)) + } + err := pc.links.Retry(ctx, EventConsumer, "ReceiveEvents", pc.partitionID, pc.retryOptions, func(ctx context.Context, lwid internal.LinkWithID[amqpwrap.AMQPReceiverCloser]) error { events = nil @@ -259,6 +271,11 @@ func newPartitionClient(args partitionClientArgs, options *PartitionClientOption return nil, err } + if options.Prefetch > int32(defaultMaxCreditSize) { + // don't allow them to set the prefetch above the session window size. + return nil, internal.NewErrNonRetriable(fmt.Sprintf("options.Prefetch cannot exceed %d", defaultMaxCreditSize)) + } + client := &PartitionClient{ eventHub: args.eventHub, partitionID: args.partitionID, diff --git a/sdk/messaging/azeventhubs/partition_client_unit_test.go b/sdk/messaging/azeventhubs/partition_client_unit_test.go index bf18e3e57ffb..e03eb2d5eb99 100644 --- a/sdk/messaging/azeventhubs/partition_client_unit_test.go +++ b/sdk/messaging/azeventhubs/partition_client_unit_test.go @@ -5,11 +5,13 @@ package azeventhubs import ( "context" + "fmt" "testing" "time" "github.com/Azure/azure-sdk-for-go/sdk/messaging/azeventhubs/internal" "github.com/Azure/azure-sdk-for-go/sdk/messaging/azeventhubs/internal/go-amqp" + "github.com/Azure/azure-sdk-for-go/sdk/messaging/azeventhubs/internal/test" "github.com/stretchr/testify/require" ) @@ -41,6 +43,43 @@ func TestUnit_PartitionClient_PrefetchOff(t *testing.T) { require.True(t, ns.Receiver.ManualCreditsSetFromOptions) } +func TestUnit_PartitionClient_PrefetchOff_CreditLimits(t *testing.T) { + ns := &internal.FakeNSForPartClient{ + Receiver: &internal.FakeAMQPReceiver{ + Messages: fakeMessages(int(defaultMaxCreditSize)), + }, + } + + client, err := newPartitionClient(partitionClientArgs{ + namespace: ns, + }, &PartitionClientOptions{ + Prefetch: -1, + }) + require.NoError(t, err) + + ctx, cancel := context.WithTimeout(context.Background(), time.Second) + defer cancel() + + // can't request over the max + events, err := client.ReceiveEvents(ctx, int(defaultMaxCreditSize+1), nil) + require.EqualError(t, err, "count cannot exceed 5000") + require.Empty(t, events) + + // can't request negative/0 credits + events, err = client.ReceiveEvents(ctx, 0, nil) + require.EqualError(t, err, "count should be greater than 0") + require.Empty(t, events) + + events, err = client.ReceiveEvents(ctx, -1, nil) + require.EqualError(t, err, "count should be greater than 0") + require.Empty(t, events) + + // can request the max + events, err = client.ReceiveEvents(ctx, int(defaultMaxCreditSize), nil) + require.NoError(t, err) + require.NotEmpty(t, events) +} + func TestUnit_PartitionClient_PrefetchOffOnlyBackfillsCredits(t *testing.T) { testData := []struct { Name string @@ -116,3 +155,77 @@ func TestUnit_PartitionClient_PrefetchOn(t *testing.T) { require.Equal(t, uint32(td.initialCredits-3), ns.Receiver.ActiveCredits, "All messages should have been received") } } + +func TestUnit_PartitionClient_PrefetchLimit(t *testing.T) { + newPartitionClient := func(prefetch int32) (*PartitionClient, error) { + ns := &internal.FakeNSForPartClient{ + Receiver: &internal.FakeAMQPReceiver{ + Messages: fakeMessages(int(defaultMaxCreditSize) + 1), + }, + } + + client, err := newPartitionClient(partitionClientArgs{namespace: ns}, &PartitionClientOptions{ + Prefetch: prefetch, + }) + + return client, err + } + + t.Run("max allowed credits is defaultMaxCreditSize", func(t *testing.T) { + client, err := newPartitionClient(int32(defaultMaxCreditSize)) + require.NoError(t, err) + require.NotNil(t, client) + + test.RequireClose(t, client) + }) + + t.Run("can't request zero or negative credits", func(t *testing.T) { + client, err := newPartitionClient(int32(defaultMaxCreditSize)) + require.NoError(t, err) + require.NotNil(t, client) + + events, err := client.ReceiveEvents(context.Background(), 0, nil) + require.EqualError(t, err, "count should be greater than 0") + require.Empty(t, events) + + events, err = client.ReceiveEvents(context.Background(), -1, nil) + require.EqualError(t, err, "count should be greater than 0") + require.Empty(t, events) + + test.RequireClose(t, client) + }) + + t.Run("can receive more than defaultMaxCreditSize in prefetch mode", func(t *testing.T) { + client, err := newPartitionClient(0) + require.NoError(t, err) + require.NotNil(t, client) + + // if you're using prefetch it's fine to ask for more than the `defaultMaxCreditSize` + // since it doesn't actually cause to request more credits than is allowed. + ctx, cancel := context.WithTimeout(context.Background(), time.Second) + defer cancel() + + events, err := client.ReceiveEvents(ctx, int(defaultMaxCreditSize+1), nil) + require.NoError(t, err) + require.NotEmpty(t, events) + + test.RequireClose(t, client) + }) + + t.Run("can't set a option.Prefetch > defaultMaxCreditSize", func(t *testing.T) { + // and you can't create a PartitionClient that uses more credits than allowed. + client, err := newPartitionClient(int32(defaultMaxCreditSize) + 1) + require.EqualError(t, err, fmt.Sprintf("options.Prefetch cannot exceed %d", defaultMaxCreditSize)) + require.Nil(t, client) + }) +} + +func fakeMessages(count int) []*amqp.Message { + var messages []*amqp.Message + + for i := 0; i < count; i++ { + messages = append(messages, &amqp.Message{}) + } + + return messages +} From d38c486127a99b9ac26ba56ba54903b38cb15138 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Thu, 16 Feb 2023 16:41:13 -0500 Subject: [PATCH 029/107] Sync eng/common directory with azure-sdk-tools for PR 5103 (#20030) * - improve $commandOutput processing - capitalization fixups + some naming refactoring - update ToolVersion to 1.0.0-dev.20230213.7 - fix param: --codeowners-file-path -> --codeowners-file-path-or-url; minor fixes - update Azure.Sdk.Tools.RetrieveCodeOwners package ver to 20230213.2 - document params + add TargetPath * update ToolVersion to 1.0.0-dev.20230214.3 * Add diag output + tests * replace sima-zhu with konrad-jamrozik --------- Co-authored-by: Konrad Jamrozik --- eng/common/scripts/get-codeowners.ps1 | 177 ++++++++++++++++++-------- 1 file changed, 127 insertions(+), 50 deletions(-) diff --git a/eng/common/scripts/get-codeowners.ps1 b/eng/common/scripts/get-codeowners.ps1 index 4264d472a5c9..5c2bb9b50ab2 100644 --- a/eng/common/scripts/get-codeowners.ps1 +++ b/eng/common/scripts/get-codeowners.ps1 @@ -1,25 +1,86 @@ +<# +.SYNOPSIS +A script that given as input $TargetPath param, returns the owners +of that path, as determined by CODEOWNERS file passed in $CodeOwnersFileLocation +param. + +.PARAMETER TargetPath +Required*. Path to file or directory whose owners are to be determined from a +CODEOWNERS file. e.g. sdk/core/azure-amqp/ or sdk/core/foo.txt. + +*for backward compatibility, you might provide $TargetDirectory instead. + +.PARAMETER TargetDirectory +Obsolete. Replaced by $TargetPath. Kept for backward-compatibility. +If both $TargetPath and $TargetDirectory are provided, $TargetDirectory is +ignored. + +.PARAMETER CodeOwnerFileLocation +Optional. An absolute path to the CODEOWNERS file against which the $TargetPath param +will be checked to determine its owners. + +.PARAMETER ToolVersion +Optional. The NuGet package version of the package containing the "retrieve-codeowners" +tool, around which this script is a wrapper. + +.PARAMETER ToolPath +Optional. The place to check the "retrieve-codeowners" tool existence. + +.PARAMETER DevOpsFeed +Optional. The NuGet package feed from which the "retrieve-codeowners" tool is to be installed. + +NuGet feed: +https://dev.azure.com/azure-sdk/public/_artifacts/feed/azure-sdk-for-net/NuGet/Azure.Sdk.Tools.RetrieveCodeOwners + +Pipeline publishing the NuGet package to the feed, "tools - code-owners-parser": +https://dev.azure.com/azure-sdk/internal/_build?definitionId=3188 + +.PARAMETER VsoVariable +Optional. If provided, the determined owners, based on $TargetPath matched against CODEOWNERS file at $CodeOwnerFileLocation, +will be output to Azure DevOps pipeline log as variable named $VsoVariable. + +Reference: +https://learn.microsoft.com/en-us/azure/devops/pipelines/process/variables?view=azure-devops&tabs=yaml%2Cbatch +https://learn.microsoft.com/en-us/azure/devops/pipelines/scripts/logging-commands?view=azure-devops&tabs=bash#logging-command-format + +.PARAMETER IncludeNonUserAliases +Optional. Whether to include in the returned owners list aliases that are team aliases, e.g. Azure/azure-sdk-team + +.PARAMETER Test +Optional. Whether to run the script against hard-coded tests. + +#> param ( - [string]$TargetDirectory = "", # Code path to code owners. e.g sdk/core/azure-amqp - [string]$CodeOwnerFileLocation = (Resolve-Path $PSScriptRoot/../../../.github/CODEOWNERS), # The absolute path of CODEOWNERS file. - [string]$ToolVersion = "1.0.0-dev.20230108.6", - [string]$ToolPath = (Join-Path ([System.IO.Path]::GetTempPath()) "codeowners-tool-path"), # The place to check the tool existence. Put temp path as default - [string]$DevOpsFeed = "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-net/nuget/v3/index.json", # DevOp tool feeds. - [string]$VsoVariable = "", # Option of write code owners into devop variable - [switch]$IncludeNonUserAliases, # Option to filter out the team alias in code owner list. e.g. Azure/azure-sdk-team - [switch]$Test #Run test functions against the script logic + [string]$TargetPath = "", + [string]$TargetDirectory = "", + # The path used assumes the script is located in azure-sdk-tools/eng/common/scripts/get-codeowners.ps1 + [string]$CodeOwnerFileLocation = (Resolve-Path $PSScriptRoot/../../../.github/CODEOWNERS), + # The $ToolVersion 1.0.0-dev.20230214.3 includes following PR: + # Use CodeownersFile.UseRegexMatcherDefault everywhere where applicable + remove obsolete tests + # https://github.com/Azure/azure-sdk-tools/pull/5437 + # + # but not this one: + # Remove the obsolete, prefix-based CODEOWNERS matcher & related tests + # https://github.com/Azure/azure-sdk-tools/pull/5431 + [string]$ToolVersion = "1.0.0-dev.20230214.3", + [string]$ToolPath = (Join-Path ([System.IO.Path]::GetTempPath()) "codeowners-tool-path"), + [string]$DevOpsFeed = "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-net/nuget/v3/index.json", + [string]$VsoVariable = "", + [switch]$IncludeNonUserAliases, + [switch]$Test ) -function Get-CodeOwnersTool() +function Get-CodeownersTool() { - $command = Join-Path $ToolPath "retrieve-codeowners" - # Check if the retrieve-codeowners tool exsits or not. - if (Get-Command $command -errorAction SilentlyContinue) { - return $command + $codeownersToolCommand = Join-Path $ToolPath "retrieve-codeowners" + # Check if the retrieve-codeowners tool exists or not. + if (Get-Command $codeownersToolCommand -errorAction SilentlyContinue) { + return $codeownersToolCommand } if (!(Test-Path $ToolPath)) { New-Item -ItemType Directory -Path $ToolPath | Out-Null } - Write-Host "Installing the retrieve-codeowners tool under $ToolPath... " + Write-Host "Installing the retrieve-codeowners tool under tool path: $ToolPath ..." # Run command under tool path to avoid dotnet tool install command checking .csproj files. # This is a bug for dotnet tool command. Issue: https://github.com/dotnet/sdk/issues/9623 @@ -27,46 +88,64 @@ function Get-CodeOwnersTool() dotnet tool install --tool-path $ToolPath --add-source $DevOpsFeed --version $ToolVersion "Azure.Sdk.Tools.RetrieveCodeOwners" | Out-Null Pop-Location # Test to see if the tool properly installed. - if (!(Get-Command $command -errorAction SilentlyContinue)) { - Write-Error "The retrieve-codeowners tool is not properly installed. Please check your tool path. $ToolPath" + if (!(Get-Command $codeownersToolCommand -errorAction SilentlyContinue)) { + Write-Error "The retrieve-codeowners tool is not properly installed. Please check your tool path: $ToolPath" return } - return $command + return $codeownersToolCommand } -function Get-CodeOwners ([string]$targetDirectory, [string]$codeOwnerFileLocation, [bool]$includeNonUserAliases = $false) +function Get-Codeowners( + [string]$targetPath, + [string]$targetDirectory, + [string]$codeownersFileLocation, + [bool]$includeNonUserAliases = $false) { - $command = Get-CodeOwnersTool - # Filter out the non user alias from code owner list. - if($includeNonUserAliases) { - $codeOwnersString = & $command --target-directory $targetDirectory --code-owner-file-path $codeOwnerFileLocation 2>&1 - } - else { - $codeOwnersString = & $command --target-directory $targetDirectory --code-owner-file-path $codeOwnerFileLocation --filter-out-non-user-aliases 2>&1 + # Backward compaitiblity: if $targetPath is not provided, fall-back to the legacy $targetDirectory + if ([string]::IsNullOrWhiteSpace($targetPath)) { + $targetPath = $targetDirectory } - # Failed at the command of fetching code owners. - if ($LASTEXITCODE -ne 0) { - Write-Host $codeOwnersString + if ([string]::IsNullOrWhiteSpace($targetPath)) { + Write-Error "TargetPath (or TargetDirectory) parameter must be neither null nor whitespace." return ,@() } - - $codeOwnersJson = $codeOwnersString | ConvertFrom-Json - if (!$codeOwnersJson) { - Write-Host "No code owners returned from the path: $targetDirectory" + + $codeownersToolCommand = Get-CodeownersTool + Write-Host "Executing: & $codeownersToolCommand --target-path $targetPath --codeowners-file-path-or-url $codeownersFileLocation --exclude-non-user-aliases:$(!$includeNonUserAliases)" + $commandOutput = & $codeownersToolCommand ` + --target-path $targetPath ` + --codeowners-file-path-or-url $codeownersFileLocation ` + --exclude-non-user-aliases:$(!$includeNonUserAliases) ` + 2>&1 + + if ($LASTEXITCODE -ne 0) { + Write-Host "Command $codeownersToolCommand execution failed (exit code = $LASTEXITCODE). Output string: $commandOutput" return ,@() + } else + { + Write-Host "Command $codeownersToolCommand executed successfully (exit code = 0). Output string length: $($commandOutput.length)" } + +# Assert: $commandOutput is a valid JSON representing: +# - a single CodeownersEntry, if the $targetPath was a single path +# - or a dictionary of CodeownerEntries, keyes by each path resolved from a $targetPath glob path. +# +# For implementation details, see Azure.Sdk.Tools.RetrieveCodeOwners.Program.Main + +$codeownersJson = $commandOutput | ConvertFrom-Json if ($VsoVariable) { - $codeOwners = $codeOwnersJson.Owners -join "," - Write-Host "##vso[task.setvariable variable=$VsoVariable;]$codeOwners" + $codeowners = $codeownersJson.Owners -join "," + Write-Host "##vso[task.setvariable variable=$VsoVariable;]$codeowners" } - return ,@($codeOwnersJson.Owners) + return ,@($codeownersJson.Owners) } -function TestGetCodeOwner([string]$targetDirectory, [string]$codeOwnerFileLocation, [bool]$includeNonUserAliases = $false, [string[]]$expectReturn) { - Write-Host "Testing on $targetDirectory..." - $actualReturn = Get-CodeOwners -targetDirectory $targetDirectory -codeOwnerFileLocation $codeOwnerFileLocation -includeNonUserAliases $IncludeNonUserAliases +function TestGetCodeowners([string]$targetPath, [string]$codeownersFileLocation, [bool]$includeNonUserAliases = $false, [string[]]$expectReturn) { + Write-Host "Test: find owners matching '$targetPath' ..." + + $actualReturn = Get-Codeowners -targetPath $targetPath -codeownersFileLocation $codeownersFileLocation -includeNonUserAliases $IncludeNonUserAliases if ($actualReturn.Count -ne $expectReturn.Count) { Write-Error "The length of actual result is not as expected. Expected length: $($expectReturn.Count), Actual length: $($actualReturn.Count)." @@ -80,21 +159,19 @@ function TestGetCodeOwner([string]$targetDirectory, [string]$codeOwnerFileLocati } } -if($Test) { - # These tests have been removed; now instead we should run tests from RetrieveCodeOwnersProgramTests, and in a way as explained in: +if ($Test) { + # Most of tests here have been removed; now instead we should run tests from RetrieveCodeOwnersProgramTests, and in a way as explained in: # https://github.com/Azure/azure-sdk-tools/issues/5434 # https://github.com/Azure/azure-sdk-tools/pull/5103#discussion_r1068680818 - Write-Host "These tests have been removed. Please see https://github.com/Azure/azure-sdk-tools/issues/5434 for more." - # - # $testFile = (Resolve-Path $PSScriptRoot/../../../tools/code-owners-parser/Azure.Sdk.Tools.RetrieveCodeOwners.Tests/TestData/simple_path_CODEOWNERS) - # TestGetCodeOwner -targetDirectory "sdk" -codeOwnerFileLocation $testFile -includeNonUserAliases $true -expectReturn @("person1", "person2") - # TestGetCodeOwner -targetDirectory "sdk/noPath" -codeOwnerFileLocation $testFile -includeNonUserAliases $true -expectReturn @("person1", "person2") - # TestGetCodeOwner -targetDirectory "/sdk/azconfig" -codeOwnerFileLocation $testFile -includeNonUserAliases $true -expectReturn @("person3", "person4") - # TestGetCodeOwner -targetDirectory "/sdk/azconfig/package" -codeOwnerFileLocation $testFile -includeNonUserAliases $true $testFile -expectReturn @("person3", "person4") - # TestGetCodeOwner -targetDirectory "/sd" -codeOwnerFileLocation $testFile -includeNonUserAliases $true -expectReturn @() - # TestGetCodeOwner -targetDirectory "/sdk/testUser/" -codeOwnerFileLocation $testFile -expectReturn @("azure-sdk") + Write-Host "Running reduced test suite at `$PSScriptRoot of $PSSCriptRoot. Please see https://github.com/Azure/azure-sdk-tools/issues/5434 for more." + + $azSdkToolsCodeowners = (Resolve-Path "$PSScriptRoot/../../../.github/CODEOWNERS") + TestGetCodeowners -targetPath "eng/common/scripts/get-codeowners.ps1" -codeownersFileLocation $azSdkToolsCodeowners -includeNonUserAliases $true -expectReturn @("konrad-jamrozik", "weshaggard", "benbp") + + $testCodeowners = (Resolve-Path "$PSScriptRoot/../../../tools/code-owners-parser/Azure.Sdk.Tools.RetrieveCodeOwners.Tests/TestData/glob_path_CODEOWNERS") + TestGetCodeowners -targetPath "tools/code-owners-parser/Azure.Sdk.Tools.RetrieveCodeOwners.Tests/TestData/InputDir/a.txt" -codeownersFileLocation $testCodeowners -includeNonUserAliases $true -expectReturn @("2star") exit 0 } else { - return Get-CodeOwners -targetDirectory $TargetDirectory -codeOwnerFileLocation $CodeOwnerFileLocation -includeNonUserAliases $IncludeNonUserAliases + return Get-Codeowners -targetPath $TargetPath -targetDirectory $TargetDirectory -codeownersFileLocation $CodeOwnerFileLocation -includeNonUserAliases $IncludeNonUserAliases } From 193ab960e6c1bbd5bbcae084569c96ead23b74e0 Mon Sep 17 00:00:00 2001 From: Peng Jiahui <46921893+Alancere@users.noreply.github.com> Date: Fri, 17 Feb 2023 10:16:08 +0800 Subject: [PATCH 030/107] changelog generator tool add `PageableFilter` and `type to any changelog print` (#20021) * changelog generator tool add and print is /c/WINDOWS/system32/print * add Copyright * add equalToAny func, add tests * Copyright * update --- .../generator/autorest/model/changelog.go | 64 ++++++++++++++----- .../cmd/v2/common/changelogProcessor.go | 24 +++++++ .../cmd/v2/common/changelogProcessor_test.go | 42 ++++++++++++ .../generator/cmd/v2/common/generation.go | 2 +- .../cmd/v2/common/testdata/new/page/page.go | 24 +++++++ .../cmd/v2/common/testdata/new/toany/toany.go | 9 +++ .../cmd/v2/common/testdata/old/page/page.go | 24 +++++++ .../cmd/v2/common/testdata/old/toany/toany.go | 9 +++ 8 files changed, 182 insertions(+), 16 deletions(-) create mode 100644 eng/tools/generator/cmd/v2/common/testdata/new/page/page.go create mode 100644 eng/tools/generator/cmd/v2/common/testdata/new/toany/toany.go create mode 100644 eng/tools/generator/cmd/v2/common/testdata/old/page/page.go create mode 100644 eng/tools/generator/cmd/v2/common/testdata/old/toany/toany.go diff --git a/eng/tools/generator/autorest/model/changelog.go b/eng/tools/generator/autorest/model/changelog.go index 06f0ad3da90c..6b6e0cfb9125 100644 --- a/eng/tools/generator/autorest/model/changelog.go +++ b/eng/tools/generator/autorest/model/changelog.go @@ -94,9 +94,13 @@ func writeChangelogForPackage(r *report.Package) string { } // write additional changes + toAny := typeToAny(r.BreakingChanges, true) additives := getNewContents(r.AdditiveChanges) - if len(additives) > 0 { + if len(additives) > 0 || len(toAny) > 0 { md.WriteHeader("Features Added") + for _, item := range toAny { + md.WriteListItem(item) + } for _, item := range additives { md.WriteListItem(item) } @@ -261,15 +265,8 @@ func getSignatureChangeItems(b *report.BreakingChanges) []string { } } // write struct changes - if len(b.Structs) > 0 { - for _, k := range sortChangeItem(b.Structs) { - v := b.Structs[k] - for f, d := range v.Fields { - line := fmt.Sprintf("Type of `%s.%s` has been changed from `%s` to `%s`", k, f, d.From, d.To) - items = append(items, line) - } - } - } + items = append(items, typeToAny(b, false)...) + // interfaces are skipped, which are identical to some of the functions return items @@ -316,22 +313,33 @@ func getRemovedContent(removed *delta.Content) []string { // write functions if len(removed.Funcs) > 0 { var lroItem []string + var paginationItem []string for _, k := range sortFuncItem(removed.Funcs) { v := removed.Funcs[k] if v.ReplacedBy != nil { var line string - if !strings.Contains(k, "Begin") { - line = fmt.Sprintf("Operation `%s` has been changed to LRO, use `%s` instead.", k, *v.ReplacedBy) - } else { - line = fmt.Sprintf("Operation `%s` has been changed to non-LRO, use `%s` instead.", k, *v.ReplacedBy) + if strings.Contains(k, "Begin") || strings.Contains(*v.ReplacedBy, "Begin") { + if !strings.Contains(k, "Begin") { + line = fmt.Sprintf("Operation `%s` has been changed to LRO, use `%s` instead.", k, *v.ReplacedBy) + } else { + line = fmt.Sprintf("Operation `%s` has been changed to non-LRO, use `%s` instead.", k, *v.ReplacedBy) + } + lroItem = append(lroItem, line) + } else if strings.Contains(k, "Pager") || strings.Contains(*v.ReplacedBy, "Pager") { + if !strings.Contains(k, "Pager") { + line = fmt.Sprintf("Operation `%s` has supported pagination, use `%s` instead.", k, *v.ReplacedBy) + } else { + line = fmt.Sprintf("Operation `%s` does not support pagination anymore, use `%s` instead.", k, *v.ReplacedBy) + } + paginationItem = append(paginationItem, line) } - lroItem = append(lroItem, line) continue } line := fmt.Sprintf("Function `%s` has been removed", k) items = append(items, line) } items = append(items, lroItem...) + items = append(items, paginationItem...) } // write complete struct removal if len(removed.CompleteStructs) > 0 { @@ -364,6 +372,10 @@ type sortItem interface { } func sortChangeItem[T sortItem](change map[string]T) []string { + if len(change) == 0 { + return nil + } + s := make([]string, 0, len(change)) for k := range change { s = append(s, k) @@ -419,3 +431,25 @@ func removePattern(funcName string, returnValue string) string { return fmt.Sprintf("%s.%s", before, after) } + +func typeToAny(b *report.BreakingChanges, flag bool) []string { + if b.IsEmpty() { + return nil + } + + var items []string + if len(b.Structs) > 0 { + for _, k := range sortChangeItem(b.Structs) { + v := b.Structs[k] + for _, f := range sortChangeItem(v.Fields) { + d := v.Fields[f] + if flag == (d.To == "any") { + line := fmt.Sprintf("Type of `%s.%s` has been changed from `%s` to `%s`", k, f, d.From, d.To) + items = append(items, line) + } + } + } + } + + return items +} diff --git a/eng/tools/generator/cmd/v2/common/changelogProcessor.go b/eng/tools/generator/cmd/v2/common/changelogProcessor.go index d81a162879fb..060d21ded6d1 100644 --- a/eng/tools/generator/cmd/v2/common/changelogProcessor.go +++ b/eng/tools/generator/cmd/v2/common/changelogProcessor.go @@ -352,6 +352,30 @@ func LROFilter(changelog *model.Changelog) { } } +// PageableFilter PageableFilter after OperationFilter +func PageableFilter(changelog *model.Changelog) { + if changelog.Modified.HasBreakingChanges() && changelog.Modified.HasAdditiveChanges() && changelog.Modified.BreakingChanges.Removed != nil && changelog.Modified.BreakingChanges.Removed.Funcs != nil { + removedContent := changelog.Modified.BreakingChanges.Removed + for bFunc, v := range removedContent.Funcs { + var pagination string + clientFunc := strings.Split(bFunc, ".") + if len(clientFunc) == 2 { + if strings.Contains(clientFunc[1], "New") && strings.Contains(clientFunc[1], "Pager") { + clientFunc[1] = strings.TrimPrefix(strings.TrimSuffix(clientFunc[1], "Pager"), "New") + pagination = fmt.Sprintf("%s.%s", clientFunc[0], clientFunc[1]) + } else { + pagination = fmt.Sprintf("%s.New%sPager", clientFunc[0], clientFunc[1]) + } + if _, ok := changelog.Modified.AdditiveChanges.Funcs[pagination]; ok { + delete(changelog.Modified.AdditiveChanges.Funcs, pagination) + v.ReplacedBy = &pagination + removedContent.Funcs[bFunc] = v + } + } + } + } +} + func InterfaceToAnyFilter(changelog *model.Changelog) { if changelog.HasBreakingChanges() { for structName, s := range changelog.Modified.BreakingChanges.Structs { diff --git a/eng/tools/generator/cmd/v2/common/changelogProcessor_test.go b/eng/tools/generator/cmd/v2/common/changelogProcessor_test.go index 676ffb5ae7dc..8f4bf7428a0d 100644 --- a/eng/tools/generator/cmd/v2/common/changelogProcessor_test.go +++ b/eng/tools/generator/cmd/v2/common/changelogProcessor_test.go @@ -79,6 +79,28 @@ func TestLROFilter(t *testing.T) { assert.Equal(t, excepted, changelog.ToCompactMarkdown()) } +func TestPageableFilter(t *testing.T) { + oldExport, err := exports.Get("./testdata/old/page") + if err != nil { + t.Fatal(err) + } + + newExport, err := exports.Get("./testdata/new/page") + if err != nil { + t.Fatal(err) + } + + changelog, err := autorest.GetChangelogForPackage(&oldExport, &newExport) + if err != nil { + t.Fatal(err) + } + + common.FilterChangelog(changelog, common.FuncFilter, common.PageableFilter) + + excepted := fmt.Sprint("### Breaking Changes\n\n- Operation `*Client.GetLog` has supported pagination, use `*Client.NewGetLogPager` instead.\n- Operation `*Client.NewListPager` does not support pagination anymore, use `*Client.List` instead.\n") + assert.Equal(t, excepted, changelog.ToCompactMarkdown()) +} + func TestInterfaceToAnyFilter(t *testing.T) { oldExport, err := exports.Get("./testdata/old/interfacetoany") if err != nil { @@ -100,3 +122,23 @@ func TestInterfaceToAnyFilter(t *testing.T) { excepted := fmt.Sprint("### Breaking Changes\n\n- Type of `Interface2Any.NewType` has been changed from `interface{}` to `string`\n") assert.Equal(t, excepted, changelog.ToCompactMarkdown()) } + +func TestTypeToAny(t *testing.T) { + oldExport, err := exports.Get("./testdata/old/toany") + if err != nil { + t.Fatal(err) + } + + newExport, err := exports.Get("./testdata/new/toany") + if err != nil { + t.Fatal(err) + } + + changelog, err := autorest.GetChangelogForPackage(&oldExport, &newExport) + if err != nil { + t.Fatal(err) + } + + excepted := fmt.Sprint("### Breaking Changes\n\n- Type of `Client.M` has been changed from `map[string]string` to `map[string]any`\n\n### Features Added\n\n- Type of `Client.A` has been changed from `*int` to `any`\n") + assert.Equal(t, excepted, changelog.ToCompactMarkdown()) +} diff --git a/eng/tools/generator/cmd/v2/common/generation.go b/eng/tools/generator/cmd/v2/common/generation.go index b5fdbf9faaba..d8de768cbd2f 100644 --- a/eng/tools/generator/cmd/v2/common/generation.go +++ b/eng/tools/generator/cmd/v2/common/generation.go @@ -211,7 +211,7 @@ func (ctx *GenerateContext) GenerateForSingleRPNamespace(generateParam *Generate } log.Printf("filter changelog...") - FilterChangelog(changelog, MarshalUnmarshalFilter, EnumFilter, FuncFilter, LROFilter, InterfaceToAnyFilter) + FilterChangelog(changelog, MarshalUnmarshalFilter, EnumFilter, FuncFilter, LROFilter, PageableFilter, InterfaceToAnyFilter) if onBoard { log.Printf("Replace {{NewClientName}} placeholder in the README.md ") diff --git a/eng/tools/generator/cmd/v2/common/testdata/new/page/page.go b/eng/tools/generator/cmd/v2/common/testdata/new/page/page.go new file mode 100644 index 000000000000..e23254484ad7 --- /dev/null +++ b/eng/tools/generator/cmd/v2/common/testdata/new/page/page.go @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package page + +type Client struct{} + +func (client *Client) NewGetLogPager(resourceGroupName string, options *ClientNewGetLogPagerOptions) (ClientNewGetLogPagerResponse, error) { + + return ClientNewGetLogPagerResponse{}, nil +} + +type ClientNewGetLogPagerOptions struct{} + +type ClientNewGetLogPagerResponse struct{} + +func (client *Client) List(resourceGroupName string, options *ClientListOptions) (ClientListResponse, error) { + + return ClientListResponse{}, nil +} + +type ClientListOptions struct{} + +type ClientListResponse struct{} diff --git a/eng/tools/generator/cmd/v2/common/testdata/new/toany/toany.go b/eng/tools/generator/cmd/v2/common/testdata/new/toany/toany.go new file mode 100644 index 000000000000..c7cc527e193f --- /dev/null +++ b/eng/tools/generator/cmd/v2/common/testdata/new/toany/toany.go @@ -0,0 +1,9 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package toany + +type Client struct { + A any + M map[string]any +} diff --git a/eng/tools/generator/cmd/v2/common/testdata/old/page/page.go b/eng/tools/generator/cmd/v2/common/testdata/old/page/page.go new file mode 100644 index 000000000000..a0e99019be77 --- /dev/null +++ b/eng/tools/generator/cmd/v2/common/testdata/old/page/page.go @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package page + +type Client struct{} + +func (client *Client) GetLog(resourceGroupName string, options *ClientGetLogOptions) (ClientGetLogResponse, error) { + + return ClientGetLogResponse{}, nil +} + +type ClientGetLogOptions struct{} + +type ClientGetLogResponse struct{} + +func (client *Client) NewListPager(resourceGroupName string, options *ClientNewListPagerOptions) (ClientNewListPagerResponse, error) { + + return ClientNewListPagerResponse{}, nil +} + +type ClientNewListPagerOptions struct{} + +type ClientNewListPagerResponse struct{} diff --git a/eng/tools/generator/cmd/v2/common/testdata/old/toany/toany.go b/eng/tools/generator/cmd/v2/common/testdata/old/toany/toany.go new file mode 100644 index 000000000000..ae73cc1d696b --- /dev/null +++ b/eng/tools/generator/cmd/v2/common/testdata/old/toany/toany.go @@ -0,0 +1,9 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package toany + +type Client struct { + A *int + M map[string]string +} From 176dfa50376540feda690c32ffb2ea965fa18af0 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Thu, 16 Feb 2023 21:41:29 -0500 Subject: [PATCH 031/107] MMS2022 -> windows-2022 (#20032) Co-authored-by: Konrad Jamrozik --- .../pipelines/templates/stages/archetype-sdk-tool-pwsh.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/common/pipelines/templates/stages/archetype-sdk-tool-pwsh.yml b/eng/common/pipelines/templates/stages/archetype-sdk-tool-pwsh.yml index 0b46240cc7e4..e01694adf034 100644 --- a/eng/common/pipelines/templates/stages/archetype-sdk-tool-pwsh.yml +++ b/eng/common/pipelines/templates/stages/archetype-sdk-tool-pwsh.yml @@ -22,7 +22,7 @@ stages: matrix: Windows: Pool: 'azsdk-pool-mms-win-2022-general' - Image: 'MMS2022' + Image: 'windows-2022' Linux: Pool: azsdk-pool-mms-ubuntu-2204-general Image: MMSUbuntu22.04 From 236a89a075e40941b5cd6435499fd12b1593e294 Mon Sep 17 00:00:00 2001 From: Chenjie Shi Date: Fri, 17 Feb 2023 11:57:35 +0800 Subject: [PATCH 032/107] show SDK log for CI test (#20028) --- eng/pipelines/templates/steps/build-test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/eng/pipelines/templates/steps/build-test.yml b/eng/pipelines/templates/steps/build-test.yml index f91481b6b7dd..3fc3d3f05d83 100644 --- a/eng/pipelines/templates/steps/build-test.yml +++ b/eng/pipelines/templates/steps/build-test.yml @@ -66,6 +66,7 @@ steps: PROXY_CERT: $(Build.SourcesDirectory)/eng/common/testproxy/dotnet-devcert.crt ${{ insert }}: ${{ parameters.EnvVars }} GOTRACEBACK: all + AZURE_SDK_GO_LOGGING: all - task: PowerShell@2 displayName: 'Build Performance Tests' From dfbe352d198f50860fdf71282975d468f2f24eae Mon Sep 17 00:00:00 2001 From: Peng Jiahui <46921893+Alancere@users.noreply.github.com> Date: Fri, 17 Feb 2023 14:31:25 +0800 Subject: [PATCH 033/107] func typeToAny bug fix (#20033) * fix null pointer exception when generating changelog --- eng/tools/generator/autorest/model/changelog.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/eng/tools/generator/autorest/model/changelog.go b/eng/tools/generator/autorest/model/changelog.go index 6b6e0cfb9125..53b35fcc61ae 100644 --- a/eng/tools/generator/autorest/model/changelog.go +++ b/eng/tools/generator/autorest/model/changelog.go @@ -433,11 +433,12 @@ func removePattern(funcName string, returnValue string) string { } func typeToAny(b *report.BreakingChanges, flag bool) []string { - if b.IsEmpty() { - return nil + var items []string + + if b == nil || b.IsEmpty() { + return items } - var items []string if len(b.Structs) > 0 { for _, k := range sortChangeItem(b.Structs) { v := b.Structs[k] From 479c04ac2fcefe8914e992a1a60f8c8f7642411e Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Mon, 20 Feb 2023 02:45:24 -0500 Subject: [PATCH 034/107] [Release] sdk/resourcemanager/dataprotection/armdataprotection/2.0.0 (#19909) * [Release] sdk/resourcemanager/dataprotection/armdataprotection/2.0.0-beta.2 generation from spec commit: 630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f * sdk/resourcemanager/dataprotection/armdataprotection/v2.0.0 --------- Co-authored-by: ReleaseHelper Co-authored-by: Alancere <804873052@qq.com> --- .../armdataprotection/CHANGELOG.md | 37 +- .../armdataprotection/autorest.md | 7 +- .../backupinstances_client.go | 312 +++++---- .../backupinstances_client_example_test.go | 253 ++++++- .../backupinstancesextensionrouting_client.go | 113 ---- ...cesextensionrouting_client_example_test.go | 41 -- .../backuppolicies_client.go | 68 +- .../backuppolicies_client_example_test.go | 286 +++++++- .../backupvaultoperationresults_client.go | 22 +- ...ultoperationresults_client_example_test.go | 26 +- .../armdataprotection/backupvaults_client.go | 149 +++-- .../backupvaults_client_example_test.go | 288 +++++++- .../armdataprotection/client.go | 18 +- .../armdataprotection/client_example_test.go | 25 +- .../armdataprotection/constants.go | 62 +- .../deletedbackupinstances_client.go | 61 +- ...etedbackupinstances_client_example_test.go | 100 ++- .../dppresourceguardproxy_client.go | 360 ---------- ...presourceguardproxy_client_example_test.go | 124 ---- .../armdataprotection/exportjobs_client.go | 23 +- .../exportjobs_client_example_test.go | 3 +- .../exportjobsoperationresult_client.go | 24 +- ...jobsoperationresult_client_example_test.go | 12 +- .../dataprotection/armdataprotection/go.mod | 4 +- .../dataprotection/armdataprotection/go.sum | 8 +- .../armdataprotection/jobs_client.go | 36 +- .../jobs_client_example_test.go | 182 ++++- .../armdataprotection/models.go | 192 +++--- .../armdataprotection/models_serde.go | 626 ++++++++---------- .../operationresult_client.go | 16 +- .../operationresult_client_example_test.go | 10 +- .../armdataprotection/operations_client.go | 11 +- .../operations_client_example_test.go | 533 ++++++++++++++- .../operationstatus_client.go | 16 +- .../operationstatus_client_example_test.go | 13 +- ...perationstatusbackupvaultcontext_client.go | 22 +- ...sbackupvaultcontext_client_example_test.go | 13 +- ...rationstatusresourcegroupcontext_client.go | 20 +- ...esourcegroupcontext_client_example_test.go | 13 +- .../armdataprotection/polymorphic_helpers.go | 32 +- .../recoverypoints_client.go | 38 +- .../recoverypoints_client_example_test.go | 91 ++- .../resourceguards_client.go | 266 ++++---- .../resourceguards_client_example_test.go | 329 +++++++-- .../armdataprotection/response_types.go | 96 +-- .../restorabletimeranges_client.go | 26 +- ...estorabletimeranges_client_example_test.go | 19 +- .../armdataprotection/time_rfc3339.go | 2 +- 48 files changed, 3033 insertions(+), 1995 deletions(-) delete mode 100644 sdk/resourcemanager/dataprotection/armdataprotection/backupinstancesextensionrouting_client.go delete mode 100644 sdk/resourcemanager/dataprotection/armdataprotection/backupinstancesextensionrouting_client_example_test.go delete mode 100644 sdk/resourcemanager/dataprotection/armdataprotection/dppresourceguardproxy_client.go delete mode 100644 sdk/resourcemanager/dataprotection/armdataprotection/dppresourceguardproxy_client_example_test.go diff --git a/sdk/resourcemanager/dataprotection/armdataprotection/CHANGELOG.md b/sdk/resourcemanager/dataprotection/armdataprotection/CHANGELOG.md index 128136bcbe80..e07ff5dd8d55 100644 --- a/sdk/resourcemanager/dataprotection/armdataprotection/CHANGELOG.md +++ b/sdk/resourcemanager/dataprotection/armdataprotection/CHANGELOG.md @@ -1,38 +1,34 @@ # Release History -## 2.0.0-beta.1 (2023-01-13) +## 2.0.0 (2023-02-24) ### Breaking Changes -- Type of `ResourceGuard.ProvisioningState` has been changed from `*ProvisioningState` to `*ResourceGuardProvisioningState` +- Function `*ResourceGuardsClient.Patch` parameter(s) have been changed from `(context.Context, string, string, PatchResourceRequestInput, *ResourceGuardsClientPatchOptions)` to `(context.Context, string, string, PatchResourceGuardInput, *ResourceGuardsClientPatchOptions)` +- Const `StorageSettingStoreTypesSnapshotStore` from type alias `StorageSettingStoreTypes` has been removed +- Operation `*BackupVaultsClient.Delete` has been changed to LRO, use `*BackupVaultsClient.BeginDelete` instead. +- Field `Identity` of struct `ResourceGuardResource` has been removed ### Features Added +- New value `SourceDataStoreTypeOperationalStore` added to type alias `SourceDataStoreType` +- New value `StorageSettingStoreTypesOperationalStore` added to type alias `StorageSettingStoreTypes` - New value `StorageSettingTypesZoneRedundant` added to type alias `StorageSettingTypes` +- New type alias `CrossSubscriptionRestoreState` with values `CrossSubscriptionRestoreStateDisabled`, `CrossSubscriptionRestoreStateEnabled`, `CrossSubscriptionRestoreStatePermanentlyDisabled` - New type alias `ExistingResourcePolicy` with values `ExistingResourcePolicyPatch`, `ExistingResourcePolicySkip` - New type alias `ImmutabilityState` with values `ImmutabilityStateDisabled`, `ImmutabilityStateLocked`, `ImmutabilityStateUnlocked` - New type alias `PersistentVolumeRestoreMode` with values `PersistentVolumeRestoreModeRestoreWithVolumeData`, `PersistentVolumeRestoreModeRestoreWithoutVolumeData` -- New type alias `ResourceGuardProvisioningState` with values `ResourceGuardProvisioningStateFailed`, `ResourceGuardProvisioningStateProvisioning`, `ResourceGuardProvisioningStateSucceeded`, `ResourceGuardProvisioningStateUnknown`, `ResourceGuardProvisioningStateUpdating` - New type alias `SoftDeleteState` with values `SoftDeleteStateAlwaysOn`, `SoftDeleteStateOff`, `SoftDeleteStateOn` - New function `*BackupDatasourceParameters.GetBackupDatasourceParameters() *BackupDatasourceParameters` -- New function `NewBackupInstancesExtensionRoutingClient(azcore.TokenCredential, *arm.ClientOptions) (*BackupInstancesExtensionRoutingClient, error)` -- New function `*BackupInstancesExtensionRoutingClient.NewListPager(string, *BackupInstancesExtensionRoutingClientListOptions) *runtime.Pager[BackupInstancesExtensionRoutingClientListResponse]` - New function `*BlobBackupDatasourceParameters.GetBackupDatasourceParameters() *BackupDatasourceParameters` - New function `NewDeletedBackupInstancesClient(string, azcore.TokenCredential, *arm.ClientOptions) (*DeletedBackupInstancesClient, error)` - New function `*DeletedBackupInstancesClient.Get(context.Context, string, string, string, *DeletedBackupInstancesClientGetOptions) (DeletedBackupInstancesClientGetResponse, error)` - New function `*DeletedBackupInstancesClient.NewListPager(string, string, *DeletedBackupInstancesClientListOptions) *runtime.Pager[DeletedBackupInstancesClientListResponse]` - New function `*DeletedBackupInstancesClient.BeginUndelete(context.Context, string, string, string, *DeletedBackupInstancesClientBeginUndeleteOptions) (*runtime.Poller[DeletedBackupInstancesClientUndeleteResponse], error)` -- New function `NewDppResourceGuardProxyClient(string, azcore.TokenCredential, *arm.ClientOptions) (*DppResourceGuardProxyClient, error)` -- New function `*DppResourceGuardProxyClient.Delete(context.Context, string, string, string, *DppResourceGuardProxyClientDeleteOptions) (DppResourceGuardProxyClientDeleteResponse, error)` -- New function `*DppResourceGuardProxyClient.Get(context.Context, string, string, string, *DppResourceGuardProxyClientGetOptions) (DppResourceGuardProxyClientGetResponse, error)` -- New function `*DppResourceGuardProxyClient.NewListPager(string, string, *DppResourceGuardProxyClientListOptions) *runtime.Pager[DppResourceGuardProxyClientListResponse]` -- New function `*DppResourceGuardProxyClient.Put(context.Context, string, string, string, ResourceGuardProxyBaseResource, *DppResourceGuardProxyClientPutOptions) (DppResourceGuardProxyClientPutResponse, error)` -- New function `*DppResourceGuardProxyClient.UnlockDelete(context.Context, string, string, string, UnlockDeleteRequest, *DppResourceGuardProxyClientUnlockDeleteOptions) (DppResourceGuardProxyClientUnlockDeleteResponse, error)` - New function `*ItemPathBasedRestoreCriteria.GetItemLevelRestoreCriteria() *ItemLevelRestoreCriteria` - New function `*KubernetesClusterBackupDatasourceParameters.GetBackupDatasourceParameters() *BackupDatasourceParameters` - New function `*KubernetesClusterRestoreCriteria.GetItemLevelRestoreCriteria() *ItemLevelRestoreCriteria` -- New struct `BackupInstancesExtensionRoutingClient` -- New struct `BackupInstancesExtensionRoutingClientListResponse` - New struct `BlobBackupDatasourceParameters` +- New struct `CrossSubscriptionRestoreSettings` - New struct `DeletedBackupInstance` - New struct `DeletedBackupInstanceResource` - New struct `DeletedBackupInstanceResourceList` @@ -40,26 +36,25 @@ - New struct `DeletedBackupInstancesClientListResponse` - New struct `DeletedBackupInstancesClientUndeleteResponse` - New struct `DeletionInfo` +- New struct `DppBaseTrackedResource` - New struct `DppProxyResource` -- New struct `DppResourceGuardProxyClient` -- New struct `DppResourceGuardProxyClientListResponse` +- New struct `FeatureSettings` - New struct `ImmutabilitySettings` - New struct `ItemPathBasedRestoreCriteria` - New struct `KubernetesClusterBackupDatasourceParameters` - New struct `KubernetesClusterRestoreCriteria` -- New struct `ResourceGuardOperationDetail` -- New struct `ResourceGuardProxyBase` -- New struct `ResourceGuardProxyBaseResource` -- New struct `ResourceGuardProxyBaseResourceList` +- New struct `PatchResourceGuardInput` - New struct `SecuritySettings` - New struct `SoftDeleteSettings` -- New struct `UnlockDeleteRequest` -- New struct `UnlockDeleteResponse` +- New field `ExpiryTime` in struct `AzureBackupDiscreteRecoveryPoint` - New field `Tags` in struct `BackupInstanceResource` +- New field `FeatureSettings` in struct `BackupVault` - New field `IsVaultProtectedByResourceGuard` in struct `BackupVault` - New field `SecuritySettings` in struct `BackupVault` +- New field `FeatureSettings` in struct `PatchBackupVaultInput` - New field `SecuritySettings` in struct `PatchBackupVaultInput` - New field `BackupDatasourceParametersList` in struct `PolicyParameters` +- New field `TargetResourceArmID` in struct `TargetDetails` ## 1.0.0 (2022-05-18) diff --git a/sdk/resourcemanager/dataprotection/armdataprotection/autorest.md b/sdk/resourcemanager/dataprotection/armdataprotection/autorest.md index 73f95b97a638..8655eee76069 100644 --- a/sdk/resourcemanager/dataprotection/armdataprotection/autorest.md +++ b/sdk/resourcemanager/dataprotection/armdataprotection/autorest.md @@ -5,9 +5,8 @@ ``` yaml azure-arm: true require: -- https://github.com/Azure/azure-rest-api-specs/blob/3f36931e7edfce60595fd5558a722e0230a44eb1/specification/dataprotection/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/3f36931e7edfce60595fd5558a722e0230a44eb1/specification/dataprotection/resource-manager/readme.go.md +- https://github.com/Azure/azure-rest-api-specs/blob/3035214dea933cd02b1ecfa982c185a572f84b8a/specification/dataprotection/resource-manager/readme.md +- https://github.com/Azure/azure-rest-api-specs/blob/3035214dea933cd02b1ecfa982c185a572f84b8a/specification/dataprotection/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 2.0.0-beta.1 -tag: package-preview-2022-11 +module-version: 2.0.0 ``` \ No newline at end of file diff --git a/sdk/resourcemanager/dataprotection/armdataprotection/backupinstances_client.go b/sdk/resourcemanager/dataprotection/armdataprotection/backupinstances_client.go index 1bead20c45ea..7c34897ad19f 100644 --- a/sdk/resourcemanager/dataprotection/armdataprotection/backupinstances_client.go +++ b/sdk/resourcemanager/dataprotection/armdataprotection/backupinstances_client.go @@ -32,9 +32,9 @@ type BackupInstancesClient struct { } // NewBackupInstancesClient creates a new instance of BackupInstancesClient with the specified values. -// subscriptionID - The subscription Id. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewBackupInstancesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*BackupInstancesClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,13 +57,14 @@ func NewBackupInstancesClient(subscriptionID string, credential azcore.TokenCred // BeginAdhocBackup - Trigger adhoc backup // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-11-01-preview -// resourceGroupName - The name of the resource group where the backup vault is present. -// vaultName - The name of the backup vault. -// backupInstanceName - The name of the backup instance -// parameters - Request body for operation -// options - BackupInstancesClientBeginAdhocBackupOptions contains the optional parameters for the BackupInstancesClient.BeginAdhocBackup -// method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - vaultName - The name of the backup vault. +// - backupInstanceName - The name of the backup instance. +// - parameters - Request body for operation +// - options - BackupInstancesClientBeginAdhocBackupOptions contains the optional parameters for the BackupInstancesClient.BeginAdhocBackup +// method. func (client *BackupInstancesClient) BeginAdhocBackup(ctx context.Context, resourceGroupName string, vaultName string, backupInstanceName string, parameters TriggerBackupRequest, options *BackupInstancesClientBeginAdhocBackupOptions) (*runtime.Poller[BackupInstancesClientAdhocBackupResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.adhocBackup(ctx, resourceGroupName, vaultName, backupInstanceName, parameters, options) @@ -78,7 +79,8 @@ func (client *BackupInstancesClient) BeginAdhocBackup(ctx context.Context, resou // AdhocBackup - Trigger adhoc backup // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-11-01-preview +// +// Generated from API version 2023-01-01 func (client *BackupInstancesClient) adhocBackup(ctx context.Context, resourceGroupName string, vaultName string, backupInstanceName string, parameters TriggerBackupRequest, options *BackupInstancesClientBeginAdhocBackupOptions) (*http.Response, error) { req, err := client.adhocBackupCreateRequest(ctx, resourceGroupName, vaultName, backupInstanceName, parameters, options) if err != nil { @@ -97,9 +99,6 @@ func (client *BackupInstancesClient) adhocBackup(ctx context.Context, resourceGr // adhocBackupCreateRequest creates the AdhocBackup request. func (client *BackupInstancesClient) adhocBackupCreateRequest(ctx context.Context, resourceGroupName string, vaultName string, backupInstanceName string, parameters TriggerBackupRequest, options *BackupInstancesClientBeginAdhocBackupOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/backup" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -118,7 +117,7 @@ func (client *BackupInstancesClient) adhocBackupCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-11-01-preview") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, parameters) @@ -126,13 +125,14 @@ func (client *BackupInstancesClient) adhocBackupCreateRequest(ctx context.Contex // BeginCreateOrUpdate - Create or update a backup instance in a backup vault // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-11-01-preview -// resourceGroupName - The name of the resource group where the backup vault is present. -// vaultName - The name of the backup vault. -// backupInstanceName - The name of the backup instance -// parameters - Request body for operation -// options - BackupInstancesClientBeginCreateOrUpdateOptions contains the optional parameters for the BackupInstancesClient.BeginCreateOrUpdate -// method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - vaultName - The name of the backup vault. +// - backupInstanceName - The name of the backup instance. +// - parameters - Request body for operation +// - options - BackupInstancesClientBeginCreateOrUpdateOptions contains the optional parameters for the BackupInstancesClient.BeginCreateOrUpdate +// method. func (client *BackupInstancesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, vaultName string, backupInstanceName string, parameters BackupInstanceResource, options *BackupInstancesClientBeginCreateOrUpdateOptions) (*runtime.Poller[BackupInstancesClientCreateOrUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createOrUpdate(ctx, resourceGroupName, vaultName, backupInstanceName, parameters, options) @@ -147,7 +147,8 @@ func (client *BackupInstancesClient) BeginCreateOrUpdate(ctx context.Context, re // CreateOrUpdate - Create or update a backup instance in a backup vault // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-11-01-preview +// +// Generated from API version 2023-01-01 func (client *BackupInstancesClient) createOrUpdate(ctx context.Context, resourceGroupName string, vaultName string, backupInstanceName string, parameters BackupInstanceResource, options *BackupInstancesClientBeginCreateOrUpdateOptions) (*http.Response, error) { req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, vaultName, backupInstanceName, parameters, options) if err != nil { @@ -166,9 +167,6 @@ func (client *BackupInstancesClient) createOrUpdate(ctx context.Context, resourc // createOrUpdateCreateRequest creates the CreateOrUpdate request. func (client *BackupInstancesClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, vaultName string, backupInstanceName string, parameters BackupInstanceResource, options *BackupInstancesClientBeginCreateOrUpdateOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -187,7 +185,7 @@ func (client *BackupInstancesClient) createOrUpdateCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-11-01-preview") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, parameters) @@ -195,12 +193,13 @@ func (client *BackupInstancesClient) createOrUpdateCreateRequest(ctx context.Con // BeginDelete - Delete a backup instance in a backup vault // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-11-01-preview -// resourceGroupName - The name of the resource group where the backup vault is present. -// vaultName - The name of the backup vault. -// backupInstanceName - The name of the backup instance -// options - BackupInstancesClientBeginDeleteOptions contains the optional parameters for the BackupInstancesClient.BeginDelete -// method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - vaultName - The name of the backup vault. +// - backupInstanceName - The name of the backup instance. +// - options - BackupInstancesClientBeginDeleteOptions contains the optional parameters for the BackupInstancesClient.BeginDelete +// method. func (client *BackupInstancesClient) BeginDelete(ctx context.Context, resourceGroupName string, vaultName string, backupInstanceName string, options *BackupInstancesClientBeginDeleteOptions) (*runtime.Poller[BackupInstancesClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, vaultName, backupInstanceName, options) @@ -215,7 +214,8 @@ func (client *BackupInstancesClient) BeginDelete(ctx context.Context, resourceGr // Delete - Delete a backup instance in a backup vault // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-11-01-preview +// +// Generated from API version 2023-01-01 func (client *BackupInstancesClient) deleteOperation(ctx context.Context, resourceGroupName string, vaultName string, backupInstanceName string, options *BackupInstancesClientBeginDeleteOptions) (*http.Response, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, vaultName, backupInstanceName, options) if err != nil { @@ -234,9 +234,6 @@ func (client *BackupInstancesClient) deleteOperation(ctx context.Context, resour // deleteCreateRequest creates the Delete request. func (client *BackupInstancesClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, vaultName string, backupInstanceName string, options *BackupInstancesClientBeginDeleteOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -255,7 +252,7 @@ func (client *BackupInstancesClient) deleteCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-11-01-preview") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -263,11 +260,12 @@ func (client *BackupInstancesClient) deleteCreateRequest(ctx context.Context, re // Get - Gets a backup instance with name in a backup vault // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-11-01-preview -// resourceGroupName - The name of the resource group where the backup vault is present. -// vaultName - The name of the backup vault. -// backupInstanceName - The name of the backup instance -// options - BackupInstancesClientGetOptions contains the optional parameters for the BackupInstancesClient.Get method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - vaultName - The name of the backup vault. +// - backupInstanceName - The name of the backup instance. +// - options - BackupInstancesClientGetOptions contains the optional parameters for the BackupInstancesClient.Get method. func (client *BackupInstancesClient) Get(ctx context.Context, resourceGroupName string, vaultName string, backupInstanceName string, options *BackupInstancesClientGetOptions) (BackupInstancesClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, vaultName, backupInstanceName, options) if err != nil { @@ -286,9 +284,6 @@ func (client *BackupInstancesClient) Get(ctx context.Context, resourceGroupName // getCreateRequest creates the Get request. func (client *BackupInstancesClient) getCreateRequest(ctx context.Context, resourceGroupName string, vaultName string, backupInstanceName string, options *BackupInstancesClientGetOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -307,7 +302,7 @@ func (client *BackupInstancesClient) getCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-11-01-preview") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -324,11 +319,13 @@ func (client *BackupInstancesClient) getHandleResponse(resp *http.Response) (Bac // GetBackupInstanceOperationResult - Get result of backup instance creation operation // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-11-01-preview -// resourceGroupName - The name of the resource group where the backup vault is present. -// vaultName - The name of the backup vault. -// options - BackupInstancesClientGetBackupInstanceOperationResultOptions contains the optional parameters for the BackupInstancesClient.GetBackupInstanceOperationResult -// method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - vaultName - The name of the backup vault. +// - backupInstanceName - The name of the backup instance. +// - options - BackupInstancesClientGetBackupInstanceOperationResultOptions contains the optional parameters for the BackupInstancesClient.GetBackupInstanceOperationResult +// method. func (client *BackupInstancesClient) GetBackupInstanceOperationResult(ctx context.Context, resourceGroupName string, vaultName string, backupInstanceName string, operationID string, options *BackupInstancesClientGetBackupInstanceOperationResultOptions) (BackupInstancesClientGetBackupInstanceOperationResultResponse, error) { req, err := client.getBackupInstanceOperationResultCreateRequest(ctx, resourceGroupName, vaultName, backupInstanceName, operationID, options) if err != nil { @@ -347,9 +344,6 @@ func (client *BackupInstancesClient) GetBackupInstanceOperationResult(ctx contex // getBackupInstanceOperationResultCreateRequest creates the GetBackupInstanceOperationResult request. func (client *BackupInstancesClient) getBackupInstanceOperationResultCreateRequest(ctx context.Context, resourceGroupName string, vaultName string, backupInstanceName string, operationID string, options *BackupInstancesClientGetBackupInstanceOperationResultOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/operationResults/{operationId}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -372,7 +366,7 @@ func (client *BackupInstancesClient) getBackupInstanceOperationResultCreateReque return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-11-01-preview") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -388,10 +382,12 @@ func (client *BackupInstancesClient) getBackupInstanceOperationResultHandleRespo } // NewListPager - Gets a backup instances belonging to a backup vault -// Generated from API version 2022-11-01-preview -// resourceGroupName - The name of the resource group where the backup vault is present. -// vaultName - The name of the backup vault. -// options - BackupInstancesClientListOptions contains the optional parameters for the BackupInstancesClient.List method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - vaultName - The name of the backup vault. +// - options - BackupInstancesClientListOptions contains the optional parameters for the BackupInstancesClient.NewListPager +// method. func (client *BackupInstancesClient) NewListPager(resourceGroupName string, vaultName string, options *BackupInstancesClientListOptions) *runtime.Pager[BackupInstancesClientListResponse] { return runtime.NewPager(runtime.PagingHandler[BackupInstancesClientListResponse]{ More: func(page BackupInstancesClientListResponse) bool { @@ -423,9 +419,6 @@ func (client *BackupInstancesClient) NewListPager(resourceGroupName string, vaul // listCreateRequest creates the List request. func (client *BackupInstancesClient) listCreateRequest(ctx context.Context, resourceGroupName string, vaultName string, options *BackupInstancesClientListOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -440,7 +433,7 @@ func (client *BackupInstancesClient) listCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-11-01-preview") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -457,11 +450,13 @@ func (client *BackupInstancesClient) listHandleResponse(resp *http.Response) (Ba // BeginResumeBackups - This operation will resume backups for backup instance // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-11-01-preview -// resourceGroupName - The name of the resource group where the backup vault is present. -// vaultName - The name of the backup vault. -// options - BackupInstancesClientBeginResumeBackupsOptions contains the optional parameters for the BackupInstancesClient.BeginResumeBackups -// method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - vaultName - The name of the backup vault. +// - backupInstanceName - The name of the backup instance. +// - options - BackupInstancesClientBeginResumeBackupsOptions contains the optional parameters for the BackupInstancesClient.BeginResumeBackups +// method. func (client *BackupInstancesClient) BeginResumeBackups(ctx context.Context, resourceGroupName string, vaultName string, backupInstanceName string, options *BackupInstancesClientBeginResumeBackupsOptions) (*runtime.Poller[BackupInstancesClientResumeBackupsResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.resumeBackups(ctx, resourceGroupName, vaultName, backupInstanceName, options) @@ -476,7 +471,8 @@ func (client *BackupInstancesClient) BeginResumeBackups(ctx context.Context, res // ResumeBackups - This operation will resume backups for backup instance // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-11-01-preview +// +// Generated from API version 2023-01-01 func (client *BackupInstancesClient) resumeBackups(ctx context.Context, resourceGroupName string, vaultName string, backupInstanceName string, options *BackupInstancesClientBeginResumeBackupsOptions) (*http.Response, error) { req, err := client.resumeBackupsCreateRequest(ctx, resourceGroupName, vaultName, backupInstanceName, options) if err != nil { @@ -495,9 +491,6 @@ func (client *BackupInstancesClient) resumeBackups(ctx context.Context, resource // resumeBackupsCreateRequest creates the ResumeBackups request. func (client *BackupInstancesClient) resumeBackupsCreateRequest(ctx context.Context, resourceGroupName string, vaultName string, backupInstanceName string, options *BackupInstancesClientBeginResumeBackupsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/resumeBackups" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -516,7 +509,7 @@ func (client *BackupInstancesClient) resumeBackupsCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-11-01-preview") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -524,11 +517,13 @@ func (client *BackupInstancesClient) resumeBackupsCreateRequest(ctx context.Cont // BeginResumeProtection - This operation will resume protection for a stopped backup instance // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-11-01-preview -// resourceGroupName - The name of the resource group where the backup vault is present. -// vaultName - The name of the backup vault. -// options - BackupInstancesClientBeginResumeProtectionOptions contains the optional parameters for the BackupInstancesClient.BeginResumeProtection -// method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - vaultName - The name of the backup vault. +// - backupInstanceName - The name of the backup instance. +// - options - BackupInstancesClientBeginResumeProtectionOptions contains the optional parameters for the BackupInstancesClient.BeginResumeProtection +// method. func (client *BackupInstancesClient) BeginResumeProtection(ctx context.Context, resourceGroupName string, vaultName string, backupInstanceName string, options *BackupInstancesClientBeginResumeProtectionOptions) (*runtime.Poller[BackupInstancesClientResumeProtectionResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.resumeProtection(ctx, resourceGroupName, vaultName, backupInstanceName, options) @@ -543,7 +538,8 @@ func (client *BackupInstancesClient) BeginResumeProtection(ctx context.Context, // ResumeProtection - This operation will resume protection for a stopped backup instance // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-11-01-preview +// +// Generated from API version 2023-01-01 func (client *BackupInstancesClient) resumeProtection(ctx context.Context, resourceGroupName string, vaultName string, backupInstanceName string, options *BackupInstancesClientBeginResumeProtectionOptions) (*http.Response, error) { req, err := client.resumeProtectionCreateRequest(ctx, resourceGroupName, vaultName, backupInstanceName, options) if err != nil { @@ -562,9 +558,6 @@ func (client *BackupInstancesClient) resumeProtection(ctx context.Context, resou // resumeProtectionCreateRequest creates the ResumeProtection request. func (client *BackupInstancesClient) resumeProtectionCreateRequest(ctx context.Context, resourceGroupName string, vaultName string, backupInstanceName string, options *BackupInstancesClientBeginResumeProtectionOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/resumeProtection" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -583,7 +576,7 @@ func (client *BackupInstancesClient) resumeProtectionCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-11-01-preview") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -591,11 +584,13 @@ func (client *BackupInstancesClient) resumeProtectionCreateRequest(ctx context.C // BeginStopProtection - This operation will stop protection of a backup instance and data will be held forever // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-11-01-preview -// resourceGroupName - The name of the resource group where the backup vault is present. -// vaultName - The name of the backup vault. -// options - BackupInstancesClientBeginStopProtectionOptions contains the optional parameters for the BackupInstancesClient.BeginStopProtection -// method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - vaultName - The name of the backup vault. +// - backupInstanceName - The name of the backup instance. +// - options - BackupInstancesClientBeginStopProtectionOptions contains the optional parameters for the BackupInstancesClient.BeginStopProtection +// method. func (client *BackupInstancesClient) BeginStopProtection(ctx context.Context, resourceGroupName string, vaultName string, backupInstanceName string, options *BackupInstancesClientBeginStopProtectionOptions) (*runtime.Poller[BackupInstancesClientStopProtectionResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.stopProtection(ctx, resourceGroupName, vaultName, backupInstanceName, options) @@ -610,7 +605,8 @@ func (client *BackupInstancesClient) BeginStopProtection(ctx context.Context, re // StopProtection - This operation will stop protection of a backup instance and data will be held forever // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-11-01-preview +// +// Generated from API version 2023-01-01 func (client *BackupInstancesClient) stopProtection(ctx context.Context, resourceGroupName string, vaultName string, backupInstanceName string, options *BackupInstancesClientBeginStopProtectionOptions) (*http.Response, error) { req, err := client.stopProtectionCreateRequest(ctx, resourceGroupName, vaultName, backupInstanceName, options) if err != nil { @@ -629,9 +625,6 @@ func (client *BackupInstancesClient) stopProtection(ctx context.Context, resourc // stopProtectionCreateRequest creates the StopProtection request. func (client *BackupInstancesClient) stopProtectionCreateRequest(ctx context.Context, resourceGroupName string, vaultName string, backupInstanceName string, options *BackupInstancesClientBeginStopProtectionOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/stopProtection" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -650,7 +643,7 @@ func (client *BackupInstancesClient) stopProtectionCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-11-01-preview") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -659,11 +652,13 @@ func (client *BackupInstancesClient) stopProtectionCreateRequest(ctx context.Con // BeginSuspendBackups - This operation will stop backup for a backup instance and retains the backup data as per the policy // (except latest Recovery point, which will be retained forever) // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-11-01-preview -// resourceGroupName - The name of the resource group where the backup vault is present. -// vaultName - The name of the backup vault. -// options - BackupInstancesClientBeginSuspendBackupsOptions contains the optional parameters for the BackupInstancesClient.BeginSuspendBackups -// method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - vaultName - The name of the backup vault. +// - backupInstanceName - The name of the backup instance. +// - options - BackupInstancesClientBeginSuspendBackupsOptions contains the optional parameters for the BackupInstancesClient.BeginSuspendBackups +// method. func (client *BackupInstancesClient) BeginSuspendBackups(ctx context.Context, resourceGroupName string, vaultName string, backupInstanceName string, options *BackupInstancesClientBeginSuspendBackupsOptions) (*runtime.Poller[BackupInstancesClientSuspendBackupsResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.suspendBackups(ctx, resourceGroupName, vaultName, backupInstanceName, options) @@ -679,7 +674,8 @@ func (client *BackupInstancesClient) BeginSuspendBackups(ctx context.Context, re // SuspendBackups - This operation will stop backup for a backup instance and retains the backup data as per the policy (except // latest Recovery point, which will be retained forever) // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-11-01-preview +// +// Generated from API version 2023-01-01 func (client *BackupInstancesClient) suspendBackups(ctx context.Context, resourceGroupName string, vaultName string, backupInstanceName string, options *BackupInstancesClientBeginSuspendBackupsOptions) (*http.Response, error) { req, err := client.suspendBackupsCreateRequest(ctx, resourceGroupName, vaultName, backupInstanceName, options) if err != nil { @@ -698,9 +694,6 @@ func (client *BackupInstancesClient) suspendBackups(ctx context.Context, resourc // suspendBackupsCreateRequest creates the SuspendBackups request. func (client *BackupInstancesClient) suspendBackupsCreateRequest(ctx context.Context, resourceGroupName string, vaultName string, backupInstanceName string, options *BackupInstancesClientBeginSuspendBackupsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/suspendBackups" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -719,7 +712,7 @@ func (client *BackupInstancesClient) suspendBackupsCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-11-01-preview") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -728,12 +721,14 @@ func (client *BackupInstancesClient) suspendBackupsCreateRequest(ctx context.Con // BeginSyncBackupInstance - Sync backup instance again in case of failure This action will retry last failed operation and // will bring backup instance to valid state // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-11-01-preview -// resourceGroupName - The name of the resource group where the backup vault is present. -// vaultName - The name of the backup vault. -// parameters - Request body for operation -// options - BackupInstancesClientBeginSyncBackupInstanceOptions contains the optional parameters for the BackupInstancesClient.BeginSyncBackupInstance -// method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - vaultName - The name of the backup vault. +// - backupInstanceName - The name of the backup instance. +// - parameters - Request body for operation +// - options - BackupInstancesClientBeginSyncBackupInstanceOptions contains the optional parameters for the BackupInstancesClient.BeginSyncBackupInstance +// method. func (client *BackupInstancesClient) BeginSyncBackupInstance(ctx context.Context, resourceGroupName string, vaultName string, backupInstanceName string, parameters SyncBackupInstanceRequest, options *BackupInstancesClientBeginSyncBackupInstanceOptions) (*runtime.Poller[BackupInstancesClientSyncBackupInstanceResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.syncBackupInstance(ctx, resourceGroupName, vaultName, backupInstanceName, parameters, options) @@ -749,7 +744,8 @@ func (client *BackupInstancesClient) BeginSyncBackupInstance(ctx context.Context // SyncBackupInstance - Sync backup instance again in case of failure This action will retry last failed operation and will // bring backup instance to valid state // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-11-01-preview +// +// Generated from API version 2023-01-01 func (client *BackupInstancesClient) syncBackupInstance(ctx context.Context, resourceGroupName string, vaultName string, backupInstanceName string, parameters SyncBackupInstanceRequest, options *BackupInstancesClientBeginSyncBackupInstanceOptions) (*http.Response, error) { req, err := client.syncBackupInstanceCreateRequest(ctx, resourceGroupName, vaultName, backupInstanceName, parameters, options) if err != nil { @@ -768,9 +764,6 @@ func (client *BackupInstancesClient) syncBackupInstance(ctx context.Context, res // syncBackupInstanceCreateRequest creates the SyncBackupInstance request. func (client *BackupInstancesClient) syncBackupInstanceCreateRequest(ctx context.Context, resourceGroupName string, vaultName string, backupInstanceName string, parameters SyncBackupInstanceRequest, options *BackupInstancesClientBeginSyncBackupInstanceOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/sync" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -789,7 +782,7 @@ func (client *BackupInstancesClient) syncBackupInstanceCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-11-01-preview") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, parameters) @@ -797,12 +790,14 @@ func (client *BackupInstancesClient) syncBackupInstanceCreateRequest(ctx context // BeginTriggerRehydrate - rehydrate recovery point for restore for a BackupInstance // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-11-01-preview -// resourceGroupName - The name of the resource group where the backup vault is present. -// vaultName - The name of the backup vault. -// parameters - Request body for operation -// options - BackupInstancesClientBeginTriggerRehydrateOptions contains the optional parameters for the BackupInstancesClient.BeginTriggerRehydrate -// method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - vaultName - The name of the backup vault. +// - backupInstanceName - The name of the backup instance. +// - parameters - Request body for operation +// - options - BackupInstancesClientBeginTriggerRehydrateOptions contains the optional parameters for the BackupInstancesClient.BeginTriggerRehydrate +// method. func (client *BackupInstancesClient) BeginTriggerRehydrate(ctx context.Context, resourceGroupName string, vaultName string, backupInstanceName string, parameters AzureBackupRehydrationRequest, options *BackupInstancesClientBeginTriggerRehydrateOptions) (*runtime.Poller[BackupInstancesClientTriggerRehydrateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.triggerRehydrate(ctx, resourceGroupName, vaultName, backupInstanceName, parameters, options) @@ -817,7 +812,8 @@ func (client *BackupInstancesClient) BeginTriggerRehydrate(ctx context.Context, // TriggerRehydrate - rehydrate recovery point for restore for a BackupInstance // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-11-01-preview +// +// Generated from API version 2023-01-01 func (client *BackupInstancesClient) triggerRehydrate(ctx context.Context, resourceGroupName string, vaultName string, backupInstanceName string, parameters AzureBackupRehydrationRequest, options *BackupInstancesClientBeginTriggerRehydrateOptions) (*http.Response, error) { req, err := client.triggerRehydrateCreateRequest(ctx, resourceGroupName, vaultName, backupInstanceName, parameters, options) if err != nil { @@ -840,9 +836,6 @@ func (client *BackupInstancesClient) triggerRehydrateCreateRequest(ctx context.C return nil, errors.New("parameter resourceGroupName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if vaultName == "" { return nil, errors.New("parameter vaultName cannot be empty") @@ -857,7 +850,7 @@ func (client *BackupInstancesClient) triggerRehydrateCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-11-01-preview") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, parameters) @@ -865,13 +858,14 @@ func (client *BackupInstancesClient) triggerRehydrateCreateRequest(ctx context.C // BeginTriggerRestore - Triggers restore for a BackupInstance // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-11-01-preview -// resourceGroupName - The name of the resource group where the backup vault is present. -// vaultName - The name of the backup vault. -// backupInstanceName - The name of the backup instance -// parameters - Request body for operation -// options - BackupInstancesClientBeginTriggerRestoreOptions contains the optional parameters for the BackupInstancesClient.BeginTriggerRestore -// method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - vaultName - The name of the backup vault. +// - backupInstanceName - The name of the backup instance. +// - parameters - Request body for operation +// - options - BackupInstancesClientBeginTriggerRestoreOptions contains the optional parameters for the BackupInstancesClient.BeginTriggerRestore +// method. func (client *BackupInstancesClient) BeginTriggerRestore(ctx context.Context, resourceGroupName string, vaultName string, backupInstanceName string, parameters AzureBackupRestoreRequestClassification, options *BackupInstancesClientBeginTriggerRestoreOptions) (*runtime.Poller[BackupInstancesClientTriggerRestoreResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.triggerRestore(ctx, resourceGroupName, vaultName, backupInstanceName, parameters, options) @@ -886,7 +880,8 @@ func (client *BackupInstancesClient) BeginTriggerRestore(ctx context.Context, re // TriggerRestore - Triggers restore for a BackupInstance // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-11-01-preview +// +// Generated from API version 2023-01-01 func (client *BackupInstancesClient) triggerRestore(ctx context.Context, resourceGroupName string, vaultName string, backupInstanceName string, parameters AzureBackupRestoreRequestClassification, options *BackupInstancesClientBeginTriggerRestoreOptions) (*http.Response, error) { req, err := client.triggerRestoreCreateRequest(ctx, resourceGroupName, vaultName, backupInstanceName, parameters, options) if err != nil { @@ -905,9 +900,6 @@ func (client *BackupInstancesClient) triggerRestore(ctx context.Context, resourc // triggerRestoreCreateRequest creates the TriggerRestore request. func (client *BackupInstancesClient) triggerRestoreCreateRequest(ctx context.Context, resourceGroupName string, vaultName string, backupInstanceName string, parameters AzureBackupRestoreRequestClassification, options *BackupInstancesClientBeginTriggerRestoreOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/restore" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -926,7 +918,7 @@ func (client *BackupInstancesClient) triggerRestoreCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-11-01-preview") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, parameters) @@ -934,12 +926,13 @@ func (client *BackupInstancesClient) triggerRestoreCreateRequest(ctx context.Con // BeginValidateForBackup - Validate whether adhoc backup will be successful or not // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-11-01-preview -// resourceGroupName - The name of the resource group where the backup vault is present. -// vaultName - The name of the backup vault. -// parameters - Request body for operation -// options - BackupInstancesClientBeginValidateForBackupOptions contains the optional parameters for the BackupInstancesClient.BeginValidateForBackup -// method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - vaultName - The name of the backup vault. +// - parameters - Request body for operation +// - options - BackupInstancesClientBeginValidateForBackupOptions contains the optional parameters for the BackupInstancesClient.BeginValidateForBackup +// method. func (client *BackupInstancesClient) BeginValidateForBackup(ctx context.Context, resourceGroupName string, vaultName string, parameters ValidateForBackupRequest, options *BackupInstancesClientBeginValidateForBackupOptions) (*runtime.Poller[BackupInstancesClientValidateForBackupResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.validateForBackup(ctx, resourceGroupName, vaultName, parameters, options) @@ -954,7 +947,8 @@ func (client *BackupInstancesClient) BeginValidateForBackup(ctx context.Context, // ValidateForBackup - Validate whether adhoc backup will be successful or not // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-11-01-preview +// +// Generated from API version 2023-01-01 func (client *BackupInstancesClient) validateForBackup(ctx context.Context, resourceGroupName string, vaultName string, parameters ValidateForBackupRequest, options *BackupInstancesClientBeginValidateForBackupOptions) (*http.Response, error) { req, err := client.validateForBackupCreateRequest(ctx, resourceGroupName, vaultName, parameters, options) if err != nil { @@ -973,9 +967,6 @@ func (client *BackupInstancesClient) validateForBackup(ctx context.Context, reso // validateForBackupCreateRequest creates the ValidateForBackup request. func (client *BackupInstancesClient) validateForBackupCreateRequest(ctx context.Context, resourceGroupName string, vaultName string, parameters ValidateForBackupRequest, options *BackupInstancesClientBeginValidateForBackupOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/validateForBackup" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -990,7 +981,7 @@ func (client *BackupInstancesClient) validateForBackupCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-11-01-preview") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, parameters) @@ -998,13 +989,14 @@ func (client *BackupInstancesClient) validateForBackupCreateRequest(ctx context. // BeginValidateForRestore - Validates if Restore can be triggered for a DataSource // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-11-01-preview -// resourceGroupName - The name of the resource group where the backup vault is present. -// vaultName - The name of the backup vault. -// backupInstanceName - The name of the backup instance -// parameters - Request body for operation -// options - BackupInstancesClientBeginValidateForRestoreOptions contains the optional parameters for the BackupInstancesClient.BeginValidateForRestore -// method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - vaultName - The name of the backup vault. +// - backupInstanceName - The name of the backup instance. +// - parameters - Request body for operation +// - options - BackupInstancesClientBeginValidateForRestoreOptions contains the optional parameters for the BackupInstancesClient.BeginValidateForRestore +// method. func (client *BackupInstancesClient) BeginValidateForRestore(ctx context.Context, resourceGroupName string, vaultName string, backupInstanceName string, parameters ValidateRestoreRequestObject, options *BackupInstancesClientBeginValidateForRestoreOptions) (*runtime.Poller[BackupInstancesClientValidateForRestoreResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.validateForRestore(ctx, resourceGroupName, vaultName, backupInstanceName, parameters, options) @@ -1019,7 +1011,8 @@ func (client *BackupInstancesClient) BeginValidateForRestore(ctx context.Context // ValidateForRestore - Validates if Restore can be triggered for a DataSource // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-11-01-preview +// +// Generated from API version 2023-01-01 func (client *BackupInstancesClient) validateForRestore(ctx context.Context, resourceGroupName string, vaultName string, backupInstanceName string, parameters ValidateRestoreRequestObject, options *BackupInstancesClientBeginValidateForRestoreOptions) (*http.Response, error) { req, err := client.validateForRestoreCreateRequest(ctx, resourceGroupName, vaultName, backupInstanceName, parameters, options) if err != nil { @@ -1038,9 +1031,6 @@ func (client *BackupInstancesClient) validateForRestore(ctx context.Context, res // validateForRestoreCreateRequest creates the ValidateForRestore request. func (client *BackupInstancesClient) validateForRestoreCreateRequest(ctx context.Context, resourceGroupName string, vaultName string, backupInstanceName string, parameters ValidateRestoreRequestObject, options *BackupInstancesClientBeginValidateForRestoreOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/validateRestore" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -1059,7 +1049,7 @@ func (client *BackupInstancesClient) validateForRestoreCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-11-01-preview") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, parameters) diff --git a/sdk/resourcemanager/dataprotection/armdataprotection/backupinstances_client_example_test.go b/sdk/resourcemanager/dataprotection/armdataprotection/backupinstances_client_example_test.go index 10f503a96825..14c40273c4ff 100644 --- a/sdk/resourcemanager/dataprotection/armdataprotection/backupinstances_client_example_test.go +++ b/sdk/resourcemanager/dataprotection/armdataprotection/backupinstances_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armdataprotection_test @@ -17,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dataprotection/armdataprotection/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/ListBackupInstances.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3035214dea933cd02b1ecfa982c185a572f84b8a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/BackupInstanceOperations/ListBackupInstances.json func ExampleBackupInstancesClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -30,18 +31,60 @@ func ExampleBackupInstancesClient_NewListPager() { } pager := client.NewListPager("000pikumar", "PratikPrivatePreviewVault1", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.BackupInstanceResourceList = armdataprotection.BackupInstanceResourceList{ + // Value: []*armdataprotection.BackupInstanceResource{ + // { + // Name: to.Ptr("harshitbi2"), + // Type: to.Ptr("Microsoft.DataProtection/backupVaults/backupInstances"), + // ID: to.Ptr("/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/backupVaults/PratikPrivatePreviewVault1/backupInstances/harshitbi2"), + // Tags: map[string]*string{ + // "key1": to.Ptr("val1"), + // }, + // Properties: &armdataprotection.BackupInstance{ + // DataSourceInfo: &armdataprotection.Datasource{ + // DatasourceType: to.Ptr("OssDB"), + // ObjectType: to.Ptr("Datasource"), + // ResourceID: to.Ptr("/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/testdb"), + // ResourceLocation: to.Ptr(""), + // ResourceName: to.Ptr("testdb"), + // ResourceType: to.Ptr("OssDB"), + // ResourceURI: to.Ptr(""), + // }, + // DataSourceSetInfo: &armdataprotection.DatasourceSet{ + // DatasourceType: to.Ptr("OssDB"), + // ObjectType: to.Ptr("DatasourceSet"), + // ResourceID: to.Ptr("/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest"), + // ResourceLocation: to.Ptr(""), + // ResourceName: to.Ptr("viveksipgtest"), + // ResourceType: to.Ptr("OssDB"), + // ResourceURI: to.Ptr(""), + // }, + // FriendlyName: to.Ptr("harshitbi2"), + // ObjectType: to.Ptr("BackupInstance"), + // PolicyInfo: &armdataprotection.PolicyInfo{ + // PolicyID: to.Ptr("/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/backupVaults/PratikPrivatePreviewVault1/backupPolicies/PratikPolicy1"), + // PolicyVersion: to.Ptr("3.2"), + // }, + // ProtectionStatus: &armdataprotection.ProtectionStatusDetails{ + // Status: to.Ptr(armdataprotection.Status("NotProtected")), + // }, + // ProvisioningState: to.Ptr("Succeeded"), + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/GetBackupInstance.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3035214dea933cd02b1ecfa982c185a572f84b8a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/BackupInstanceOperations/GetBackupInstance.json func ExampleBackupInstancesClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -56,11 +99,50 @@ func ExampleBackupInstancesClient_Get() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.BackupInstanceResource = armdataprotection.BackupInstanceResource{ + // Name: to.Ptr("harshitbi2"), + // Type: to.Ptr("Microsoft.DataProtection/backupVaults/backupInstances"), + // ID: to.Ptr("/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/backupVaults/PratikPrivatePreviewVault1/backupInstances/harshitbi2"), + // Tags: map[string]*string{ + // "key1": to.Ptr("val1"), + // }, + // Properties: &armdataprotection.BackupInstance{ + // DataSourceInfo: &armdataprotection.Datasource{ + // DatasourceType: to.Ptr("OssDB"), + // ObjectType: to.Ptr("Datasource"), + // ResourceID: to.Ptr("/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/testdb"), + // ResourceLocation: to.Ptr(""), + // ResourceName: to.Ptr("testdb"), + // ResourceType: to.Ptr("OssDB"), + // ResourceURI: to.Ptr(""), + // }, + // DataSourceSetInfo: &armdataprotection.DatasourceSet{ + // DatasourceType: to.Ptr("OssDB"), + // ObjectType: to.Ptr("DatasourceSet"), + // ResourceID: to.Ptr("/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest"), + // ResourceLocation: to.Ptr(""), + // ResourceName: to.Ptr("viveksipgtest"), + // ResourceType: to.Ptr("OssDB"), + // ResourceURI: to.Ptr(""), + // }, + // FriendlyName: to.Ptr("harshitbi2"), + // ObjectType: to.Ptr("BackupInstance"), + // PolicyInfo: &armdataprotection.PolicyInfo{ + // PolicyID: to.Ptr("/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/backupVaults/PratikPrivatePreviewVault1/backupPolicies/PratikPolicy1"), + // PolicyVersion: to.Ptr("3.2"), + // }, + // ProtectionStatus: &armdataprotection.ProtectionStatusDetails{ + // Status: to.Ptr(armdataprotection.Status("NotProtected")), + // }, + // ProvisioningState: to.Ptr("Succeeded"), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/PutBackupInstance.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3035214dea933cd02b1ecfa982c185a572f84b8a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/BackupInstanceOperations/PutBackupInstance.json func ExampleBackupInstancesClient_BeginCreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -124,11 +206,58 @@ func ExampleBackupInstancesClient_BeginCreateOrUpdate() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.BackupInstanceResource = armdataprotection.BackupInstanceResource{ + // Name: to.Ptr("harshitbi2"), + // Type: to.Ptr("Microsoft.DataProtection/backupVaults/backupInstances"), + // ID: to.Ptr("/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/backupVaults/PratikPrivatePreviewVault1/backupInstances/harshitbi2"), + // Tags: map[string]*string{ + // "key1": to.Ptr("val1"), + // }, + // Properties: &armdataprotection.BackupInstance{ + // DataSourceInfo: &armdataprotection.Datasource{ + // DatasourceType: to.Ptr("OssDB"), + // ObjectType: to.Ptr("Datasource"), + // ResourceID: to.Ptr("/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/testdb"), + // ResourceLocation: to.Ptr(""), + // ResourceName: to.Ptr("testdb"), + // ResourceType: to.Ptr("OssDB"), + // ResourceURI: to.Ptr(""), + // }, + // DataSourceSetInfo: &armdataprotection.DatasourceSet{ + // DatasourceType: to.Ptr("OssDB"), + // ObjectType: to.Ptr("DatasourceSet"), + // ResourceID: to.Ptr("/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest"), + // ResourceLocation: to.Ptr(""), + // ResourceName: to.Ptr("viveksipgtest"), + // ResourceType: to.Ptr("OssDB"), + // ResourceURI: to.Ptr(""), + // }, + // FriendlyName: to.Ptr("harshitbi2"), + // ObjectType: to.Ptr("BackupInstance"), + // PolicyInfo: &armdataprotection.PolicyInfo{ + // PolicyID: to.Ptr("/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/backupVaults/PratikPrivatePreviewVault1/backupPolicies/PratikPolicy1"), + // PolicyParameters: &armdataprotection.PolicyParameters{ + // DataStoreParametersList: []armdataprotection.DataStoreParametersClassification{ + // &armdataprotection.AzureOperationalStoreParameters{ + // DataStoreType: to.Ptr(armdataprotection.DataStoreTypesOperationalStore), + // ObjectType: to.Ptr("AzureOperationalStoreParameters"), + // ResourceGroupID: to.Ptr("/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest"), + // }}, + // }, + // PolicyVersion: to.Ptr("3.2"), + // }, + // ProtectionStatus: &armdataprotection.ProtectionStatusDetails{ + // Status: to.Ptr(armdataprotection.Status("NotProtected")), + // }, + // ProvisioningState: to.Ptr("Succeeded"), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/DeleteBackupInstance.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3035214dea933cd02b1ecfa982c185a572f84b8a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/BackupInstanceOperations/DeleteBackupInstance.json func ExampleBackupInstancesClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -149,7 +278,7 @@ func ExampleBackupInstancesClient_BeginDelete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/TriggerBackup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3035214dea933cd02b1ecfa982c185a572f84b8a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/BackupInstanceOperations/TriggerBackup.json func ExampleBackupInstancesClient_BeginAdhocBackup() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -175,11 +304,16 @@ func ExampleBackupInstancesClient_BeginAdhocBackup() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.OperationJobExtendedInfo = armdataprotection.OperationJobExtendedInfo{ + // ObjectType: to.Ptr("OperationJobExtendedInfo"), + // JobID: to.Ptr("c60cb49-63e8-4b21-b9bd-26277b3fdfae"), + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/ValidateForBackup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3035214dea933cd02b1ecfa982c185a572f84b8a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/BackupInstanceOperations/ValidateForBackup.json func ExampleBackupInstancesClient_BeginValidateForBackup() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -231,11 +365,16 @@ func ExampleBackupInstancesClient_BeginValidateForBackup() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.OperationJobExtendedInfo = armdataprotection.OperationJobExtendedInfo{ + // ObjectType: to.Ptr("OperationJobExtendedInfo"), + // JobID: to.Ptr("c60cb49-63e8-4b21-b9bd-26277b3fdfae"), + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/GetBackupInstanceOperationResult.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3035214dea933cd02b1ecfa982c185a572f84b8a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/BackupInstanceOperations/GetBackupInstanceOperationResult.json func ExampleBackupInstancesClient_GetBackupInstanceOperationResult() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -250,11 +389,47 @@ func ExampleBackupInstancesClient_GetBackupInstanceOperationResult() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.BackupInstanceResource = armdataprotection.BackupInstanceResource{ + // Name: to.Ptr("testInstance1"), + // Type: to.Ptr("Microsoft.DataProtection/backupVaults/backupInstances"), + // ID: to.Ptr("/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/SampleResourceGroup/providers/Microsoft.DataProtection/backupVaults/swaggerExample/backupInstances/testInstance1"), + // Properties: &armdataprotection.BackupInstance{ + // DataSourceInfo: &armdataprotection.Datasource{ + // DatasourceType: to.Ptr("OssDB"), + // ObjectType: to.Ptr("Datasource"), + // ResourceID: to.Ptr("/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/testdb"), + // ResourceLocation: to.Ptr(""), + // ResourceName: to.Ptr("testdb"), + // ResourceType: to.Ptr("OssDB"), + // ResourceURI: to.Ptr(""), + // }, + // DataSourceSetInfo: &armdataprotection.DatasourceSet{ + // DatasourceType: to.Ptr("OssDB"), + // ObjectType: to.Ptr("DatasourceSet"), + // ResourceID: to.Ptr("/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest"), + // ResourceLocation: to.Ptr(""), + // ResourceName: to.Ptr("viveksipgtest"), + // ResourceType: to.Ptr("OssDB"), + // ResourceURI: to.Ptr(""), + // }, + // FriendlyName: to.Ptr("testInstance1"), + // ObjectType: to.Ptr("BackupInstance"), + // PolicyInfo: &armdataprotection.PolicyInfo{ + // PolicyID: to.Ptr("/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/SampleResourceGroup/providers/Microsoft.DataProtection/backupVaults/swaggerExample/backupPolicies/PratikPolicy1"), + // PolicyVersion: to.Ptr("3.2"), + // }, + // ProtectionStatus: &armdataprotection.ProtectionStatusDetails{ + // Status: to.Ptr(armdataprotection.StatusConfiguringProtection), + // }, + // ProvisioningState: to.Ptr("Succeeded"), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/TriggerRehydrate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3035214dea933cd02b1ecfa982c185a572f84b8a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/BackupInstanceOperations/TriggerRehydrate.json func ExampleBackupInstancesClient_BeginTriggerRehydrate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -279,7 +454,7 @@ func ExampleBackupInstancesClient_BeginTriggerRehydrate() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/TriggerRestore.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3035214dea933cd02b1ecfa982c185a572f84b8a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/BackupInstanceOperations/TriggerRestore.json func ExampleBackupInstancesClient_BeginTriggerRestore_triggerRestore() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -333,11 +508,16 @@ func ExampleBackupInstancesClient_BeginTriggerRestore_triggerRestore() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.OperationJobExtendedInfo = armdataprotection.OperationJobExtendedInfo{ + // ObjectType: to.Ptr("OperationJobExtendedInfo"), + // JobID: to.Ptr("c60cb49-63e8-4b21-b9bd-26277b3fdfae"), + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/TriggerRestoreAsFiles.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3035214dea933cd02b1ecfa982c185a572f84b8a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/BackupInstanceOperations/TriggerRestoreAsFiles.json func ExampleBackupInstancesClient_BeginTriggerRestore_triggerRestoreAsFiles() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -371,11 +551,16 @@ func ExampleBackupInstancesClient_BeginTriggerRestore_triggerRestoreAsFiles() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.OperationJobExtendedInfo = armdataprotection.OperationJobExtendedInfo{ + // ObjectType: to.Ptr("OperationJobExtendedInfo"), + // JobID: to.Ptr("c60cb49-63e8-4b21-b9bd-26277b3fdfae"), + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/TriggerRestoreWithRehydration.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3035214dea933cd02b1ecfa982c185a572f84b8a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/BackupInstanceOperations/TriggerRestoreWithRehydration.json func ExampleBackupInstancesClient_BeginTriggerRestore_triggerRestoreWithRehydration() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -424,11 +609,16 @@ func ExampleBackupInstancesClient_BeginTriggerRestore_triggerRestoreWithRehydrat if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.OperationJobExtendedInfo = armdataprotection.OperationJobExtendedInfo{ + // ObjectType: to.Ptr("OperationJobExtendedInfo"), + // JobID: to.Ptr("c60cb49-63e8-4b21-b9bd-26277b3fdfae"), + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/ResumeBackups.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3035214dea933cd02b1ecfa982c185a572f84b8a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/BackupInstanceOperations/ResumeBackups.json func ExampleBackupInstancesClient_BeginResumeBackups() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -449,7 +639,7 @@ func ExampleBackupInstancesClient_BeginResumeBackups() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/ResumeProtection.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3035214dea933cd02b1ecfa982c185a572f84b8a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/BackupInstanceOperations/ResumeProtection.json func ExampleBackupInstancesClient_BeginResumeProtection() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -470,7 +660,7 @@ func ExampleBackupInstancesClient_BeginResumeProtection() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/StopProtection.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3035214dea933cd02b1ecfa982c185a572f84b8a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/BackupInstanceOperations/StopProtection.json func ExampleBackupInstancesClient_BeginStopProtection() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -491,7 +681,7 @@ func ExampleBackupInstancesClient_BeginStopProtection() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/SuspendBackups.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3035214dea933cd02b1ecfa982c185a572f84b8a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/BackupInstanceOperations/SuspendBackups.json func ExampleBackupInstancesClient_BeginSuspendBackups() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -512,7 +702,7 @@ func ExampleBackupInstancesClient_BeginSuspendBackups() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/SyncBackupInstance.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3035214dea933cd02b1ecfa982c185a572f84b8a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/BackupInstanceOperations/SyncBackupInstance.json func ExampleBackupInstancesClient_BeginSyncBackupInstance() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -535,7 +725,7 @@ func ExampleBackupInstancesClient_BeginSyncBackupInstance() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/ValidateRestore.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3035214dea933cd02b1ecfa982c185a572f84b8a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/BackupInstanceOperations/ValidateRestore.json func ExampleBackupInstancesClient_BeginValidateForRestore() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -591,6 +781,11 @@ func ExampleBackupInstancesClient_BeginValidateForRestore() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.OperationJobExtendedInfo = armdataprotection.OperationJobExtendedInfo{ + // ObjectType: to.Ptr("OperationJobExtendedInfo"), + // JobID: to.Ptr("c60cb49-63e8-4b21-b9bd-26277b3fdfae"), + // } } diff --git a/sdk/resourcemanager/dataprotection/armdataprotection/backupinstancesextensionrouting_client.go b/sdk/resourcemanager/dataprotection/armdataprotection/backupinstancesextensionrouting_client.go deleted file mode 100644 index c52ce95c8952..000000000000 --- a/sdk/resourcemanager/dataprotection/armdataprotection/backupinstancesextensionrouting_client.go +++ /dev/null @@ -1,113 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armdataprotection - -import ( - "context" - "errors" - "github.com/Azure/azure-sdk-for-go/sdk/azcore" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" - "net/http" - "net/url" - "strings" -) - -// BackupInstancesExtensionRoutingClient contains the methods for the BackupInstancesExtensionRouting group. -// Don't use this type directly, use NewBackupInstancesExtensionRoutingClient() instead. -type BackupInstancesExtensionRoutingClient struct { - host string - pl runtime.Pipeline -} - -// NewBackupInstancesExtensionRoutingClient creates a new instance of BackupInstancesExtensionRoutingClient with the specified values. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. -func NewBackupInstancesExtensionRoutingClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*BackupInstancesExtensionRoutingClient, error) { - if options == nil { - options = &arm.ClientOptions{} - } - ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint - if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { - ep = c.Endpoint - } - pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) - if err != nil { - return nil, err - } - client := &BackupInstancesExtensionRoutingClient{ - host: ep, - pl: pl, - } - return client, nil -} - -// NewListPager - Gets a list backup instances associated with a tracked resource -// Generated from API version 2022-11-01-preview -// resourceID - ARM path of the resource to be protected using Microsoft.DataProtection -// options - BackupInstancesExtensionRoutingClientListOptions contains the optional parameters for the BackupInstancesExtensionRoutingClient.List -// method. -func (client *BackupInstancesExtensionRoutingClient) NewListPager(resourceID string, options *BackupInstancesExtensionRoutingClientListOptions) *runtime.Pager[BackupInstancesExtensionRoutingClientListResponse] { - return runtime.NewPager(runtime.PagingHandler[BackupInstancesExtensionRoutingClientListResponse]{ - More: func(page BackupInstancesExtensionRoutingClientListResponse) bool { - return page.NextLink != nil && len(*page.NextLink) > 0 - }, - Fetcher: func(ctx context.Context, page *BackupInstancesExtensionRoutingClientListResponse) (BackupInstancesExtensionRoutingClientListResponse, error) { - var req *policy.Request - var err error - if page == nil { - req, err = client.listCreateRequest(ctx, resourceID, options) - } else { - req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) - } - if err != nil { - return BackupInstancesExtensionRoutingClientListResponse{}, err - } - resp, err := client.pl.Do(req) - if err != nil { - return BackupInstancesExtensionRoutingClientListResponse{}, err - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return BackupInstancesExtensionRoutingClientListResponse{}, runtime.NewResponseError(resp) - } - return client.listHandleResponse(resp) - }, - }) -} - -// listCreateRequest creates the List request. -func (client *BackupInstancesExtensionRoutingClient) listCreateRequest(ctx context.Context, resourceID string, options *BackupInstancesExtensionRoutingClientListOptions) (*policy.Request, error) { - urlPath := "/{resourceId}/providers/Microsoft.DataProtection/backupInstances" - if resourceID == "" { - return nil, errors.New("parameter resourceID cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{resourceId}", url.PathEscape(resourceID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) - if err != nil { - return nil, err - } - reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-11-01-preview") - req.Raw().URL.RawQuery = reqQP.Encode() - req.Raw().Header["Accept"] = []string{"application/json"} - return req, nil -} - -// listHandleResponse handles the List response. -func (client *BackupInstancesExtensionRoutingClient) listHandleResponse(resp *http.Response) (BackupInstancesExtensionRoutingClientListResponse, error) { - result := BackupInstancesExtensionRoutingClientListResponse{} - if err := runtime.UnmarshalAsJSON(resp, &result.BackupInstanceResourceList); err != nil { - return BackupInstancesExtensionRoutingClientListResponse{}, err - } - return result, nil -} diff --git a/sdk/resourcemanager/dataprotection/armdataprotection/backupinstancesextensionrouting_client_example_test.go b/sdk/resourcemanager/dataprotection/armdataprotection/backupinstancesextensionrouting_client_example_test.go deleted file mode 100644 index bee3fc3de4ec..000000000000 --- a/sdk/resourcemanager/dataprotection/armdataprotection/backupinstancesextensionrouting_client_example_test.go +++ /dev/null @@ -1,41 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armdataprotection_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dataprotection/armdataprotection/v2" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/ListBackupInstancesExtensionRouting.json -func ExampleBackupInstancesExtensionRoutingClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armdataprotection.NewBackupInstancesExtensionRoutingClient(cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListPager("subscriptions/36d32b25-3dc7-41b0-bde1-397500644591/resourceGroups/testRG/providers/Microsoft.Compute/disks/testDisk", nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} diff --git a/sdk/resourcemanager/dataprotection/armdataprotection/backuppolicies_client.go b/sdk/resourcemanager/dataprotection/armdataprotection/backuppolicies_client.go index 8a380bdd5108..74d37491dbb7 100644 --- a/sdk/resourcemanager/dataprotection/armdataprotection/backuppolicies_client.go +++ b/sdk/resourcemanager/dataprotection/armdataprotection/backuppolicies_client.go @@ -32,9 +32,9 @@ type BackupPoliciesClient struct { } // NewBackupPoliciesClient creates a new instance of BackupPoliciesClient with the specified values. -// subscriptionID - The subscription Id. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewBackupPoliciesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*BackupPoliciesClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,13 +57,14 @@ func NewBackupPoliciesClient(subscriptionID string, credential azcore.TokenCrede // CreateOrUpdate - Creates or Updates a backup policy belonging to a backup vault // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-11-01-preview -// resourceGroupName - The name of the resource group where the backup vault is present. -// vaultName - The name of the backup vault. -// backupPolicyName - Name of the policy -// parameters - Request body for operation -// options - BackupPoliciesClientCreateOrUpdateOptions contains the optional parameters for the BackupPoliciesClient.CreateOrUpdate -// method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - vaultName - The name of the backup vault. +// - backupPolicyName - Name of the policy +// - parameters - Request body for operation +// - options - BackupPoliciesClientCreateOrUpdateOptions contains the optional parameters for the BackupPoliciesClient.CreateOrUpdate +// method. func (client *BackupPoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, vaultName string, backupPolicyName string, parameters BaseBackupPolicyResource, options *BackupPoliciesClientCreateOrUpdateOptions) (BackupPoliciesClientCreateOrUpdateResponse, error) { req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, vaultName, backupPolicyName, parameters, options) if err != nil { @@ -82,9 +83,6 @@ func (client *BackupPoliciesClient) CreateOrUpdate(ctx context.Context, resource // createOrUpdateCreateRequest creates the CreateOrUpdate request. func (client *BackupPoliciesClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, vaultName string, backupPolicyName string, parameters BaseBackupPolicyResource, options *BackupPoliciesClientCreateOrUpdateOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupPolicies/{backupPolicyName}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -103,7 +101,7 @@ func (client *BackupPoliciesClient) createOrUpdateCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-11-01-preview") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, parameters) @@ -120,10 +118,11 @@ func (client *BackupPoliciesClient) createOrUpdateHandleResponse(resp *http.Resp // Delete - Deletes a backup policy belonging to a backup vault // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-11-01-preview -// resourceGroupName - The name of the resource group where the backup vault is present. -// vaultName - The name of the backup vault. -// options - BackupPoliciesClientDeleteOptions contains the optional parameters for the BackupPoliciesClient.Delete method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - vaultName - The name of the backup vault. +// - options - BackupPoliciesClientDeleteOptions contains the optional parameters for the BackupPoliciesClient.Delete method. func (client *BackupPoliciesClient) Delete(ctx context.Context, resourceGroupName string, vaultName string, backupPolicyName string, options *BackupPoliciesClientDeleteOptions) (BackupPoliciesClientDeleteResponse, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, vaultName, backupPolicyName, options) if err != nil { @@ -142,9 +141,6 @@ func (client *BackupPoliciesClient) Delete(ctx context.Context, resourceGroupNam // deleteCreateRequest creates the Delete request. func (client *BackupPoliciesClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, vaultName string, backupPolicyName string, options *BackupPoliciesClientDeleteOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupPolicies/{backupPolicyName}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -163,7 +159,7 @@ func (client *BackupPoliciesClient) deleteCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-11-01-preview") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -171,10 +167,11 @@ func (client *BackupPoliciesClient) deleteCreateRequest(ctx context.Context, res // Get - Gets a backup policy belonging to a backup vault // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-11-01-preview -// resourceGroupName - The name of the resource group where the backup vault is present. -// vaultName - The name of the backup vault. -// options - BackupPoliciesClientGetOptions contains the optional parameters for the BackupPoliciesClient.Get method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - vaultName - The name of the backup vault. +// - options - BackupPoliciesClientGetOptions contains the optional parameters for the BackupPoliciesClient.Get method. func (client *BackupPoliciesClient) Get(ctx context.Context, resourceGroupName string, vaultName string, backupPolicyName string, options *BackupPoliciesClientGetOptions) (BackupPoliciesClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, vaultName, backupPolicyName, options) if err != nil { @@ -193,9 +190,6 @@ func (client *BackupPoliciesClient) Get(ctx context.Context, resourceGroupName s // getCreateRequest creates the Get request. func (client *BackupPoliciesClient) getCreateRequest(ctx context.Context, resourceGroupName string, vaultName string, backupPolicyName string, options *BackupPoliciesClientGetOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupPolicies/{backupPolicyName}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -214,7 +208,7 @@ func (client *BackupPoliciesClient) getCreateRequest(ctx context.Context, resour return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-11-01-preview") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -230,10 +224,11 @@ func (client *BackupPoliciesClient) getHandleResponse(resp *http.Response) (Back } // NewListPager - Returns list of backup policies belonging to a backup vault -// Generated from API version 2022-11-01-preview -// resourceGroupName - The name of the resource group where the backup vault is present. -// vaultName - The name of the backup vault. -// options - BackupPoliciesClientListOptions contains the optional parameters for the BackupPoliciesClient.List method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - vaultName - The name of the backup vault. +// - options - BackupPoliciesClientListOptions contains the optional parameters for the BackupPoliciesClient.NewListPager method. func (client *BackupPoliciesClient) NewListPager(resourceGroupName string, vaultName string, options *BackupPoliciesClientListOptions) *runtime.Pager[BackupPoliciesClientListResponse] { return runtime.NewPager(runtime.PagingHandler[BackupPoliciesClientListResponse]{ More: func(page BackupPoliciesClientListResponse) bool { @@ -265,9 +260,6 @@ func (client *BackupPoliciesClient) NewListPager(resourceGroupName string, vault // listCreateRequest creates the List request. func (client *BackupPoliciesClient) listCreateRequest(ctx context.Context, resourceGroupName string, vaultName string, options *BackupPoliciesClientListOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupPolicies" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -282,7 +274,7 @@ func (client *BackupPoliciesClient) listCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-11-01-preview") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/dataprotection/armdataprotection/backuppolicies_client_example_test.go b/sdk/resourcemanager/dataprotection/armdataprotection/backuppolicies_client_example_test.go index 1d95e52176e7..7f2224e21f22 100644 --- a/sdk/resourcemanager/dataprotection/armdataprotection/backuppolicies_client_example_test.go +++ b/sdk/resourcemanager/dataprotection/armdataprotection/backuppolicies_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armdataprotection_test @@ -19,7 +20,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dataprotection/armdataprotection/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/PolicyCRUD/ListBackupPolicy.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3035214dea933cd02b1ecfa982c185a572f84b8a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/PolicyCRUD/ListBackupPolicy.json func ExampleBackupPoliciesClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -32,18 +33,109 @@ func ExampleBackupPoliciesClient_NewListPager() { } pager := client.NewListPager("000pikumar", "PrivatePreviewVault", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.BaseBackupPolicyResourceList = armdataprotection.BaseBackupPolicyResourceList{ + // Value: []*armdataprotection.BaseBackupPolicyResource{ + // { + // Name: to.Ptr("OSSDBPolicy"), + // Type: to.Ptr("Microsoft.DataProtection/backupVaults/backupPolicies"), + // ID: to.Ptr("/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/backupVaults/PrivatePreviewVault/backupPolicies/OSSDBPolicy"), + // Properties: &armdataprotection.BackupPolicy{ + // DatasourceTypes: []*string{ + // to.Ptr("OssDB")}, + // ObjectType: to.Ptr("BackupPolicy"), + // PolicyRules: []armdataprotection.BasePolicyRuleClassification{ + // &armdataprotection.AzureBackupRule{ + // Name: to.Ptr("BackupWeekly"), + // ObjectType: to.Ptr("AzureBackupRule"), + // BackupParameters: &armdataprotection.AzureBackupParams{ + // ObjectType: to.Ptr("AzureBackupParams"), + // BackupType: to.Ptr("Full"), + // }, + // DataStore: &armdataprotection.DataStoreInfoBase{ + // DataStoreType: to.Ptr(armdataprotection.DataStoreTypesVaultStore), + // ObjectType: to.Ptr("DataStoreInfoBase"), + // }, + // Trigger: &armdataprotection.ScheduleBasedTriggerContext{ + // ObjectType: to.Ptr("ScheduleBasedTriggerContext"), + // Schedule: &armdataprotection.BackupSchedule{ + // RepeatingTimeIntervals: []*string{ + // to.Ptr("R/2019-11-20T08:00:00-08:00/P1W")}, + // }, + // TaggingCriteria: []*armdataprotection.TaggingCriteria{ + // { + // IsDefault: to.Ptr(true), + // TagInfo: &armdataprotection.RetentionTag{ + // ID: to.Ptr("Default_"), + // TagName: to.Ptr("Default"), + // }, + // TaggingPriority: to.Ptr[int64](99), + // }, + // { + // Criteria: []armdataprotection.BackupCriteriaClassification{ + // &armdataprotection.ScheduleBasedBackupCriteria{ + // ObjectType: to.Ptr("ScheduleBasedBackupCriteria"), + // DaysOfTheWeek: []*armdataprotection.DayOfWeek{ + // to.Ptr(armdataprotection.DayOfWeekSunday)}, + // ScheduleTimes: []*time.Time{ + // to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-03-01T13:00:00Z"); return t}())}, + // }}, + // IsDefault: to.Ptr(false), + // TagInfo: &armdataprotection.RetentionTag{ + // ID: to.Ptr("Weekly_"), + // TagName: to.Ptr("Weekly"), + // }, + // TaggingPriority: to.Ptr[int64](20), + // }}, + // }, + // }, + // &armdataprotection.AzureRetentionRule{ + // Name: to.Ptr("Default"), + // ObjectType: to.Ptr("AzureRetentionRule"), + // IsDefault: to.Ptr(true), + // Lifecycles: []*armdataprotection.SourceLifeCycle{ + // { + // DeleteAfter: &armdataprotection.AbsoluteDeleteOption{ + // Duration: to.Ptr("P1W"), + // ObjectType: to.Ptr("AbsoluteDeleteOption"), + // }, + // SourceDataStore: &armdataprotection.DataStoreInfoBase{ + // DataStoreType: to.Ptr(armdataprotection.DataStoreTypesVaultStore), + // ObjectType: to.Ptr("DataStoreInfoBase"), + // }, + // }}, + // }, + // &armdataprotection.AzureRetentionRule{ + // Name: to.Ptr("Weekly"), + // ObjectType: to.Ptr("AzureRetentionRule"), + // IsDefault: to.Ptr(false), + // Lifecycles: []*armdataprotection.SourceLifeCycle{ + // { + // DeleteAfter: &armdataprotection.AbsoluteDeleteOption{ + // Duration: to.Ptr("P12W"), + // ObjectType: to.Ptr("AbsoluteDeleteOption"), + // }, + // SourceDataStore: &armdataprotection.DataStoreInfoBase{ + // DataStoreType: to.Ptr(armdataprotection.DataStoreTypesVaultStore), + // ObjectType: to.Ptr("DataStoreInfoBase"), + // }, + // }}, + // }}, + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/PolicyCRUD/GetBackupPolicy.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3035214dea933cd02b1ecfa982c185a572f84b8a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/PolicyCRUD/GetBackupPolicy.json func ExampleBackupPoliciesClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -58,11 +150,99 @@ func ExampleBackupPoliciesClient_Get() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.BaseBackupPolicyResource = armdataprotection.BaseBackupPolicyResource{ + // Name: to.Ptr("OSSDBPolicy"), + // Type: to.Ptr("Microsoft.DataProtection/backupVaults/backupPolicies"), + // ID: to.Ptr("/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/backupVaults/PrivatePreviewVault/backupPolicies/OSSDBPolicy"), + // Properties: &armdataprotection.BackupPolicy{ + // DatasourceTypes: []*string{ + // to.Ptr("OssDB")}, + // ObjectType: to.Ptr("BackupPolicy"), + // PolicyRules: []armdataprotection.BasePolicyRuleClassification{ + // &armdataprotection.AzureBackupRule{ + // Name: to.Ptr("BackupWeekly"), + // ObjectType: to.Ptr("AzureBackupRule"), + // BackupParameters: &armdataprotection.AzureBackupParams{ + // ObjectType: to.Ptr("AzureBackupParams"), + // BackupType: to.Ptr("Full"), + // }, + // DataStore: &armdataprotection.DataStoreInfoBase{ + // DataStoreType: to.Ptr(armdataprotection.DataStoreTypesVaultStore), + // ObjectType: to.Ptr("DataStoreInfoBase"), + // }, + // Trigger: &armdataprotection.ScheduleBasedTriggerContext{ + // ObjectType: to.Ptr("ScheduleBasedTriggerContext"), + // Schedule: &armdataprotection.BackupSchedule{ + // RepeatingTimeIntervals: []*string{ + // to.Ptr("R/2019-11-20T08:00:00-08:00/P1W")}, + // }, + // TaggingCriteria: []*armdataprotection.TaggingCriteria{ + // { + // IsDefault: to.Ptr(true), + // TagInfo: &armdataprotection.RetentionTag{ + // ID: to.Ptr("Default_"), + // TagName: to.Ptr("Default"), + // }, + // TaggingPriority: to.Ptr[int64](99), + // }, + // { + // Criteria: []armdataprotection.BackupCriteriaClassification{ + // &armdataprotection.ScheduleBasedBackupCriteria{ + // ObjectType: to.Ptr("ScheduleBasedBackupCriteria"), + // DaysOfTheWeek: []*armdataprotection.DayOfWeek{ + // to.Ptr(armdataprotection.DayOfWeekSunday)}, + // ScheduleTimes: []*time.Time{ + // to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-03-01T13:00:00Z"); return t}())}, + // }}, + // IsDefault: to.Ptr(false), + // TagInfo: &armdataprotection.RetentionTag{ + // ID: to.Ptr("Weekly_"), + // TagName: to.Ptr("Weekly"), + // }, + // TaggingPriority: to.Ptr[int64](20), + // }}, + // }, + // }, + // &armdataprotection.AzureRetentionRule{ + // Name: to.Ptr("Default"), + // ObjectType: to.Ptr("AzureRetentionRule"), + // IsDefault: to.Ptr(true), + // Lifecycles: []*armdataprotection.SourceLifeCycle{ + // { + // DeleteAfter: &armdataprotection.AbsoluteDeleteOption{ + // Duration: to.Ptr("P1W"), + // ObjectType: to.Ptr("AbsoluteDeleteOption"), + // }, + // SourceDataStore: &armdataprotection.DataStoreInfoBase{ + // DataStoreType: to.Ptr(armdataprotection.DataStoreTypesVaultStore), + // ObjectType: to.Ptr("DataStoreInfoBase"), + // }, + // }}, + // }, + // &armdataprotection.AzureRetentionRule{ + // Name: to.Ptr("Weekly"), + // ObjectType: to.Ptr("AzureRetentionRule"), + // IsDefault: to.Ptr(false), + // Lifecycles: []*armdataprotection.SourceLifeCycle{ + // { + // DeleteAfter: &armdataprotection.AbsoluteDeleteOption{ + // Duration: to.Ptr("P12W"), + // ObjectType: to.Ptr("AbsoluteDeleteOption"), + // }, + // SourceDataStore: &armdataprotection.DataStoreInfoBase{ + // DataStoreType: to.Ptr(armdataprotection.DataStoreTypesVaultStore), + // ObjectType: to.Ptr("DataStoreInfoBase"), + // }, + // }}, + // }}, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/PolicyCRUD/CreateOrUpdateBackupPolicy.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3035214dea933cd02b1ecfa982c185a572f84b8a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/PolicyCRUD/CreateOrUpdateBackupPolicy.json func ExampleBackupPoliciesClient_CreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -158,11 +338,99 @@ func ExampleBackupPoliciesClient_CreateOrUpdate() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.BaseBackupPolicyResource = armdataprotection.BaseBackupPolicyResource{ + // Name: to.Ptr("OSSDBPolicy"), + // Type: to.Ptr("Microsoft.DataProtection/backupVaults/backupPolicies"), + // ID: to.Ptr("/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/backupVaults/PrivatePreviewVault/backupPolicies/OSSDBPolicy"), + // Properties: &armdataprotection.BackupPolicy{ + // DatasourceTypes: []*string{ + // to.Ptr("OssDB")}, + // ObjectType: to.Ptr("BackupPolicy"), + // PolicyRules: []armdataprotection.BasePolicyRuleClassification{ + // &armdataprotection.AzureBackupRule{ + // Name: to.Ptr("BackupWeekly"), + // ObjectType: to.Ptr("AzureBackupRule"), + // BackupParameters: &armdataprotection.AzureBackupParams{ + // ObjectType: to.Ptr("AzureBackupParams"), + // BackupType: to.Ptr("Full"), + // }, + // DataStore: &armdataprotection.DataStoreInfoBase{ + // DataStoreType: to.Ptr(armdataprotection.DataStoreTypesVaultStore), + // ObjectType: to.Ptr("DataStoreInfoBase"), + // }, + // Trigger: &armdataprotection.ScheduleBasedTriggerContext{ + // ObjectType: to.Ptr("ScheduleBasedTriggerContext"), + // Schedule: &armdataprotection.BackupSchedule{ + // RepeatingTimeIntervals: []*string{ + // to.Ptr("R/2019-11-20T08:00:00-08:00/P1W")}, + // }, + // TaggingCriteria: []*armdataprotection.TaggingCriteria{ + // { + // IsDefault: to.Ptr(true), + // TagInfo: &armdataprotection.RetentionTag{ + // ID: to.Ptr("Default_"), + // TagName: to.Ptr("Default"), + // }, + // TaggingPriority: to.Ptr[int64](99), + // }, + // { + // Criteria: []armdataprotection.BackupCriteriaClassification{ + // &armdataprotection.ScheduleBasedBackupCriteria{ + // ObjectType: to.Ptr("ScheduleBasedBackupCriteria"), + // DaysOfTheWeek: []*armdataprotection.DayOfWeek{ + // to.Ptr(armdataprotection.DayOfWeekSunday)}, + // ScheduleTimes: []*time.Time{ + // to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-03-01T13:00:00Z"); return t}())}, + // }}, + // IsDefault: to.Ptr(false), + // TagInfo: &armdataprotection.RetentionTag{ + // ID: to.Ptr("Weekly_"), + // TagName: to.Ptr("Weekly"), + // }, + // TaggingPriority: to.Ptr[int64](20), + // }}, + // }, + // }, + // &armdataprotection.AzureRetentionRule{ + // Name: to.Ptr("Default"), + // ObjectType: to.Ptr("AzureRetentionRule"), + // IsDefault: to.Ptr(true), + // Lifecycles: []*armdataprotection.SourceLifeCycle{ + // { + // DeleteAfter: &armdataprotection.AbsoluteDeleteOption{ + // Duration: to.Ptr("P1W"), + // ObjectType: to.Ptr("AbsoluteDeleteOption"), + // }, + // SourceDataStore: &armdataprotection.DataStoreInfoBase{ + // DataStoreType: to.Ptr(armdataprotection.DataStoreTypesVaultStore), + // ObjectType: to.Ptr("DataStoreInfoBase"), + // }, + // }}, + // }, + // &armdataprotection.AzureRetentionRule{ + // Name: to.Ptr("Weekly"), + // ObjectType: to.Ptr("AzureRetentionRule"), + // IsDefault: to.Ptr(false), + // Lifecycles: []*armdataprotection.SourceLifeCycle{ + // { + // DeleteAfter: &armdataprotection.AbsoluteDeleteOption{ + // Duration: to.Ptr("P12W"), + // ObjectType: to.Ptr("AbsoluteDeleteOption"), + // }, + // SourceDataStore: &armdataprotection.DataStoreInfoBase{ + // DataStoreType: to.Ptr(armdataprotection.DataStoreTypesVaultStore), + // ObjectType: to.Ptr("DataStoreInfoBase"), + // }, + // }}, + // }}, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/PolicyCRUD/DeleteBackupPolicy.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3035214dea933cd02b1ecfa982c185a572f84b8a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/PolicyCRUD/DeleteBackupPolicy.json func ExampleBackupPoliciesClient_Delete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/dataprotection/armdataprotection/backupvaultoperationresults_client.go b/sdk/resourcemanager/dataprotection/armdataprotection/backupvaultoperationresults_client.go index d9218e7f7a38..b4398e27d3de 100644 --- a/sdk/resourcemanager/dataprotection/armdataprotection/backupvaultoperationresults_client.go +++ b/sdk/resourcemanager/dataprotection/armdataprotection/backupvaultoperationresults_client.go @@ -33,9 +33,9 @@ type BackupVaultOperationResultsClient struct { } // NewBackupVaultOperationResultsClient creates a new instance of BackupVaultOperationResultsClient with the specified values. -// subscriptionID - The subscription Id. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewBackupVaultOperationResultsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*BackupVaultOperationResultsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -58,11 +58,12 @@ func NewBackupVaultOperationResultsClient(subscriptionID string, credential azco // Get - // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-11-01-preview -// resourceGroupName - The name of the resource group where the backup vault is present. -// vaultName - The name of the backup vault. -// options - BackupVaultOperationResultsClientGetOptions contains the optional parameters for the BackupVaultOperationResultsClient.Get -// method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - vaultName - The name of the backup vault. +// - options - BackupVaultOperationResultsClientGetOptions contains the optional parameters for the BackupVaultOperationResultsClient.Get +// method. func (client *BackupVaultOperationResultsClient) Get(ctx context.Context, resourceGroupName string, vaultName string, operationID string, options *BackupVaultOperationResultsClientGetOptions) (BackupVaultOperationResultsClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, vaultName, operationID, options) if err != nil { @@ -81,9 +82,6 @@ func (client *BackupVaultOperationResultsClient) Get(ctx context.Context, resour // getCreateRequest creates the Get request. func (client *BackupVaultOperationResultsClient) getCreateRequest(ctx context.Context, resourceGroupName string, vaultName string, operationID string, options *BackupVaultOperationResultsClientGetOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/operationResults/{operationId}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -102,7 +100,7 @@ func (client *BackupVaultOperationResultsClient) getCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-11-01-preview") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/dataprotection/armdataprotection/backupvaultoperationresults_client_example_test.go b/sdk/resourcemanager/dataprotection/armdataprotection/backupvaultoperationresults_client_example_test.go index 0fc9819e6b60..1934beabd4c3 100644 --- a/sdk/resourcemanager/dataprotection/armdataprotection/backupvaultoperationresults_client_example_test.go +++ b/sdk/resourcemanager/dataprotection/armdataprotection/backupvaultoperationresults_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armdataprotection_test @@ -16,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dataprotection/armdataprotection/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/VaultCRUD/GetOperationResultPatch.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3035214dea933cd02b1ecfa982c185a572f84b8a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/VaultCRUD/GetOperationResultPatch.json func ExampleBackupVaultOperationResultsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -31,6 +32,27 @@ func ExampleBackupVaultOperationResultsClient_Get() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.BackupVaultResource = armdataprotection.BackupVaultResource{ + // Name: to.Ptr("swaggerExample"), + // Type: to.Ptr("Microsoft.DataProtection/Backupvaults"), + // ID: to.Ptr("/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/SampleResourceGroup/providers/Microsoft.DataProtection/Backupvaults/swaggerExample"), + // Location: to.Ptr("WestUS"), + // Tags: map[string]*string{ + // "key1": to.Ptr("val1"), + // }, + // Identity: &armdataprotection.DppIdentityDetails{ + // Type: to.Ptr("None"), + // }, + // Properties: &armdataprotection.BackupVault{ + // ProvisioningState: to.Ptr(armdataprotection.ProvisioningStateSucceeded), + // StorageSettings: []*armdataprotection.StorageSetting{ + // { + // Type: to.Ptr(armdataprotection.StorageSettingTypesLocallyRedundant), + // DatastoreType: to.Ptr(armdataprotection.StorageSettingStoreTypesVaultStore), + // }}, + // }, + // } } diff --git a/sdk/resourcemanager/dataprotection/armdataprotection/backupvaults_client.go b/sdk/resourcemanager/dataprotection/armdataprotection/backupvaults_client.go index ebd0f3f6c056..455f97a57bb4 100644 --- a/sdk/resourcemanager/dataprotection/armdataprotection/backupvaults_client.go +++ b/sdk/resourcemanager/dataprotection/armdataprotection/backupvaults_client.go @@ -32,9 +32,9 @@ type BackupVaultsClient struct { } // NewBackupVaultsClient creates a new instance of BackupVaultsClient with the specified values. -// subscriptionID - The subscription Id. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewBackupVaultsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*BackupVaultsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,12 +57,13 @@ func NewBackupVaultsClient(subscriptionID string, credential azcore.TokenCredent // CheckNameAvailability - API to check for resource name availability // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-11-01-preview -// resourceGroupName - The name of the resource group where the backup vault is present. -// location - The location in which uniqueness will be verified. -// parameters - Check name availability request -// options - BackupVaultsClientCheckNameAvailabilityOptions contains the optional parameters for the BackupVaultsClient.CheckNameAvailability -// method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - location - The location in which uniqueness will be verified. +// - parameters - Check name availability request +// - options - BackupVaultsClientCheckNameAvailabilityOptions contains the optional parameters for the BackupVaultsClient.CheckNameAvailability +// method. func (client *BackupVaultsClient) CheckNameAvailability(ctx context.Context, resourceGroupName string, location string, parameters CheckNameAvailabilityRequest, options *BackupVaultsClientCheckNameAvailabilityOptions) (BackupVaultsClientCheckNameAvailabilityResponse, error) { req, err := client.checkNameAvailabilityCreateRequest(ctx, resourceGroupName, location, parameters, options) if err != nil { @@ -85,9 +86,6 @@ func (client *BackupVaultsClient) checkNameAvailabilityCreateRequest(ctx context return nil, errors.New("parameter resourceGroupName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if location == "" { return nil, errors.New("parameter location cannot be empty") @@ -98,7 +96,7 @@ func (client *BackupVaultsClient) checkNameAvailabilityCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-11-01-preview") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, parameters) @@ -115,12 +113,13 @@ func (client *BackupVaultsClient) checkNameAvailabilityHandleResponse(resp *http // BeginCreateOrUpdate - Creates or updates a BackupVault resource belonging to a resource group. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-11-01-preview -// resourceGroupName - The name of the resource group where the backup vault is present. -// vaultName - The name of the backup vault. -// parameters - Request body for operation -// options - BackupVaultsClientBeginCreateOrUpdateOptions contains the optional parameters for the BackupVaultsClient.BeginCreateOrUpdate -// method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - vaultName - The name of the backup vault. +// - parameters - Request body for operation +// - options - BackupVaultsClientBeginCreateOrUpdateOptions contains the optional parameters for the BackupVaultsClient.BeginCreateOrUpdate +// method. func (client *BackupVaultsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, vaultName string, parameters BackupVaultResource, options *BackupVaultsClientBeginCreateOrUpdateOptions) (*runtime.Poller[BackupVaultsClientCreateOrUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createOrUpdate(ctx, resourceGroupName, vaultName, parameters, options) @@ -135,7 +134,8 @@ func (client *BackupVaultsClient) BeginCreateOrUpdate(ctx context.Context, resou // CreateOrUpdate - Creates or updates a BackupVault resource belonging to a resource group. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-11-01-preview +// +// Generated from API version 2023-01-01 func (client *BackupVaultsClient) createOrUpdate(ctx context.Context, resourceGroupName string, vaultName string, parameters BackupVaultResource, options *BackupVaultsClientBeginCreateOrUpdateOptions) (*http.Response, error) { req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, vaultName, parameters, options) if err != nil { @@ -154,9 +154,6 @@ func (client *BackupVaultsClient) createOrUpdate(ctx context.Context, resourceGr // createOrUpdateCreateRequest creates the CreateOrUpdate request. func (client *BackupVaultsClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, vaultName string, parameters BackupVaultResource, options *BackupVaultsClientBeginCreateOrUpdateOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -171,39 +168,54 @@ func (client *BackupVaultsClient) createOrUpdateCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-11-01-preview") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, parameters) } +// BeginDelete - Deletes a BackupVault resource from the resource group. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - vaultName - The name of the backup vault. +// - options - BackupVaultsClientBeginDeleteOptions contains the optional parameters for the BackupVaultsClient.BeginDelete +// method. +func (client *BackupVaultsClient) BeginDelete(ctx context.Context, resourceGroupName string, vaultName string, options *BackupVaultsClientBeginDeleteOptions) (*runtime.Poller[BackupVaultsClientDeleteResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.deleteOperation(ctx, resourceGroupName, vaultName, options) + if err != nil { + return nil, err + } + return runtime.NewPoller[BackupVaultsClientDeleteResponse](resp, client.pl, nil) + } else { + return runtime.NewPollerFromResumeToken[BackupVaultsClientDeleteResponse](options.ResumeToken, client.pl, nil) + } +} + // Delete - Deletes a BackupVault resource from the resource group. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-11-01-preview -// resourceGroupName - The name of the resource group where the backup vault is present. -// vaultName - The name of the backup vault. -// options - BackupVaultsClientDeleteOptions contains the optional parameters for the BackupVaultsClient.Delete method. -func (client *BackupVaultsClient) Delete(ctx context.Context, resourceGroupName string, vaultName string, options *BackupVaultsClientDeleteOptions) (BackupVaultsClientDeleteResponse, error) { +// +// Generated from API version 2023-01-01 +func (client *BackupVaultsClient) deleteOperation(ctx context.Context, resourceGroupName string, vaultName string, options *BackupVaultsClientBeginDeleteOptions) (*http.Response, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, vaultName, options) if err != nil { - return BackupVaultsClientDeleteResponse{}, err + return nil, err } resp, err := client.pl.Do(req) if err != nil { - return BackupVaultsClientDeleteResponse{}, err + return nil, err } if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { - return BackupVaultsClientDeleteResponse{}, runtime.NewResponseError(resp) + return nil, runtime.NewResponseError(resp) } - return BackupVaultsClientDeleteResponse{}, nil + return resp, nil } // deleteCreateRequest creates the Delete request. -func (client *BackupVaultsClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, vaultName string, options *BackupVaultsClientDeleteOptions) (*policy.Request, error) { +func (client *BackupVaultsClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, vaultName string, options *BackupVaultsClientBeginDeleteOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -218,7 +230,7 @@ func (client *BackupVaultsClient) deleteCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-11-01-preview") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -226,10 +238,11 @@ func (client *BackupVaultsClient) deleteCreateRequest(ctx context.Context, resou // Get - Returns a resource belonging to a resource group. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-11-01-preview -// resourceGroupName - The name of the resource group where the backup vault is present. -// vaultName - The name of the backup vault. -// options - BackupVaultsClientGetOptions contains the optional parameters for the BackupVaultsClient.Get method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - vaultName - The name of the backup vault. +// - options - BackupVaultsClientGetOptions contains the optional parameters for the BackupVaultsClient.Get method. func (client *BackupVaultsClient) Get(ctx context.Context, resourceGroupName string, vaultName string, options *BackupVaultsClientGetOptions) (BackupVaultsClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, vaultName, options) if err != nil { @@ -248,9 +261,6 @@ func (client *BackupVaultsClient) Get(ctx context.Context, resourceGroupName str // getCreateRequest creates the Get request. func (client *BackupVaultsClient) getCreateRequest(ctx context.Context, resourceGroupName string, vaultName string, options *BackupVaultsClientGetOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -265,7 +275,7 @@ func (client *BackupVaultsClient) getCreateRequest(ctx context.Context, resource return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-11-01-preview") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -281,10 +291,11 @@ func (client *BackupVaultsClient) getHandleResponse(resp *http.Response) (Backup } // NewGetInResourceGroupPager - Returns resource collection belonging to a resource group. -// Generated from API version 2022-11-01-preview -// resourceGroupName - The name of the resource group where the backup vault is present. -// options - BackupVaultsClientGetInResourceGroupOptions contains the optional parameters for the BackupVaultsClient.GetInResourceGroup -// method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - options - BackupVaultsClientGetInResourceGroupOptions contains the optional parameters for the BackupVaultsClient.NewGetInResourceGroupPager +// method. func (client *BackupVaultsClient) NewGetInResourceGroupPager(resourceGroupName string, options *BackupVaultsClientGetInResourceGroupOptions) *runtime.Pager[BackupVaultsClientGetInResourceGroupResponse] { return runtime.NewPager(runtime.PagingHandler[BackupVaultsClientGetInResourceGroupResponse]{ More: func(page BackupVaultsClientGetInResourceGroupResponse) bool { @@ -320,16 +331,13 @@ func (client *BackupVaultsClient) getInResourceGroupCreateRequest(ctx context.Co return nil, errors.New("parameter resourceGroupName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-11-01-preview") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -345,9 +353,10 @@ func (client *BackupVaultsClient) getInResourceGroupHandleResponse(resp *http.Re } // NewGetInSubscriptionPager - Returns resource collection belonging to a subscription. -// Generated from API version 2022-11-01-preview -// options - BackupVaultsClientGetInSubscriptionOptions contains the optional parameters for the BackupVaultsClient.GetInSubscription -// method. +// +// Generated from API version 2023-01-01 +// - options - BackupVaultsClientGetInSubscriptionOptions contains the optional parameters for the BackupVaultsClient.NewGetInSubscriptionPager +// method. func (client *BackupVaultsClient) NewGetInSubscriptionPager(options *BackupVaultsClientGetInSubscriptionOptions) *runtime.Pager[BackupVaultsClientGetInSubscriptionResponse] { return runtime.NewPager(runtime.PagingHandler[BackupVaultsClientGetInSubscriptionResponse]{ More: func(page BackupVaultsClientGetInSubscriptionResponse) bool { @@ -379,16 +388,13 @@ func (client *BackupVaultsClient) NewGetInSubscriptionPager(options *BackupVault // getInSubscriptionCreateRequest creates the GetInSubscription request. func (client *BackupVaultsClient) getInSubscriptionCreateRequest(ctx context.Context, options *BackupVaultsClientGetInSubscriptionOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.DataProtection/backupVaults" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-11-01-preview") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -405,12 +411,13 @@ func (client *BackupVaultsClient) getInSubscriptionHandleResponse(resp *http.Res // BeginUpdate - Updates a BackupVault resource belonging to a resource group. For example, updating tags for a resource. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-11-01-preview -// resourceGroupName - The name of the resource group where the backup vault is present. -// vaultName - The name of the backup vault. -// parameters - Request body for operation -// options - BackupVaultsClientBeginUpdateOptions contains the optional parameters for the BackupVaultsClient.BeginUpdate -// method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - vaultName - The name of the backup vault. +// - parameters - Request body for operation +// - options - BackupVaultsClientBeginUpdateOptions contains the optional parameters for the BackupVaultsClient.BeginUpdate +// method. func (client *BackupVaultsClient) BeginUpdate(ctx context.Context, resourceGroupName string, vaultName string, parameters PatchResourceRequestInput, options *BackupVaultsClientBeginUpdateOptions) (*runtime.Poller[BackupVaultsClientUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.update(ctx, resourceGroupName, vaultName, parameters, options) @@ -425,7 +432,8 @@ func (client *BackupVaultsClient) BeginUpdate(ctx context.Context, resourceGroup // Update - Updates a BackupVault resource belonging to a resource group. For example, updating tags for a resource. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-11-01-preview +// +// Generated from API version 2023-01-01 func (client *BackupVaultsClient) update(ctx context.Context, resourceGroupName string, vaultName string, parameters PatchResourceRequestInput, options *BackupVaultsClientBeginUpdateOptions) (*http.Response, error) { req, err := client.updateCreateRequest(ctx, resourceGroupName, vaultName, parameters, options) if err != nil { @@ -444,9 +452,6 @@ func (client *BackupVaultsClient) update(ctx context.Context, resourceGroupName // updateCreateRequest creates the Update request. func (client *BackupVaultsClient) updateCreateRequest(ctx context.Context, resourceGroupName string, vaultName string, parameters PatchResourceRequestInput, options *BackupVaultsClientBeginUpdateOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -461,7 +466,7 @@ func (client *BackupVaultsClient) updateCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-11-01-preview") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, parameters) diff --git a/sdk/resourcemanager/dataprotection/armdataprotection/backupvaults_client_example_test.go b/sdk/resourcemanager/dataprotection/armdataprotection/backupvaults_client_example_test.go index bc41c23e024f..5a4bb5614f30 100644 --- a/sdk/resourcemanager/dataprotection/armdataprotection/backupvaults_client_example_test.go +++ b/sdk/resourcemanager/dataprotection/armdataprotection/backupvaults_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armdataprotection_test @@ -17,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dataprotection/armdataprotection/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/VaultCRUD/GetBackupVaultsInSubscription.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3035214dea933cd02b1ecfa982c185a572f84b8a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/VaultCRUD/GetBackupVaultsInSubscription.json func ExampleBackupVaultsClient_NewGetInSubscriptionPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -30,18 +31,62 @@ func ExampleBackupVaultsClient_NewGetInSubscriptionPager() { } pager := client.NewGetInSubscriptionPager(nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.BackupVaultResourceList = armdataprotection.BackupVaultResourceList{ + // Value: []*armdataprotection.BackupVaultResource{ + // { + // Name: to.Ptr("ExampleVault1"), + // Type: to.Ptr("Microsoft.DataProtection/BackupVaults"), + // ID: to.Ptr("/subscriptions/0b352192-dcac-4cc7-992e-a96190ccc68c/resourceGroups/SampleResourceGroup2/providers/Microsoft.DataProtection/BackupVaults/ExampleVault1"), + // Location: to.Ptr("WestUS"), + // Tags: map[string]*string{ + // "key1": to.Ptr("val1"), + // }, + // Identity: &armdataprotection.DppIdentityDetails{ + // Type: to.Ptr("None"), + // }, + // Properties: &armdataprotection.BackupVault{ + // ProvisioningState: to.Ptr(armdataprotection.ProvisioningStateSucceeded), + // StorageSettings: []*armdataprotection.StorageSetting{ + // { + // Type: to.Ptr(armdataprotection.StorageSettingTypesLocallyRedundant), + // DatastoreType: to.Ptr(armdataprotection.StorageSettingStoreTypesVaultStore), + // }}, + // }, + // }, + // { + // Name: to.Ptr("ExampleVault2"), + // Type: to.Ptr("Microsoft.DataProtection/BackupVaults"), + // ID: to.Ptr("/subscriptions/0b352192-dcac-4cc7-992e-a96190ccc68c/resourceGroups/SampleResourceGroup/providers/Microsoft.DataProtection/BackupVaults/ExampleVault2"), + // Location: to.Ptr("WestUS"), + // Tags: map[string]*string{ + // "key1": to.Ptr("val1"), + // }, + // Identity: &armdataprotection.DppIdentityDetails{ + // Type: to.Ptr("None"), + // }, + // Properties: &armdataprotection.BackupVault{ + // ProvisioningState: to.Ptr(armdataprotection.ProvisioningStateSucceeded), + // StorageSettings: []*armdataprotection.StorageSetting{ + // { + // Type: to.Ptr(armdataprotection.StorageSettingTypesLocallyRedundant), + // DatastoreType: to.Ptr(armdataprotection.StorageSettingStoreTypesVaultStore), + // }}, + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/VaultCRUD/GetBackupVaultsInResourceGroup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3035214dea933cd02b1ecfa982c185a572f84b8a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/VaultCRUD/GetBackupVaultsInResourceGroup.json func ExampleBackupVaultsClient_NewGetInResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -54,18 +99,69 @@ func ExampleBackupVaultsClient_NewGetInResourceGroupPager() { } pager := client.NewGetInResourceGroupPager("SampleResourceGroup", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.BackupVaultResourceList = armdataprotection.BackupVaultResourceList{ + // Value: []*armdataprotection.BackupVaultResource{ + // { + // Name: to.Ptr("ExampleVault1"), + // Type: to.Ptr("Microsoft.DataProtection/BackupVaults"), + // ID: to.Ptr("/subscriptions/0b352192-dcac-4cc7-992e-a96190ccc68c/resourceGroups/SampleResourceGroup/providers/Microsoft.DataProtection/BackupVaults/ExampleVault1"), + // Location: to.Ptr("WestUS"), + // Tags: map[string]*string{ + // "key1": to.Ptr("val1"), + // }, + // Identity: &armdataprotection.DppIdentityDetails{ + // Type: to.Ptr("None"), + // }, + // Properties: &armdataprotection.BackupVault{ + // ProvisioningState: to.Ptr(armdataprotection.ProvisioningStateSucceeded), + // StorageSettings: []*armdataprotection.StorageSetting{ + // { + // Type: to.Ptr(armdataprotection.StorageSettingTypesLocallyRedundant), + // DatastoreType: to.Ptr(armdataprotection.StorageSettingStoreTypesVaultStore), + // }}, + // }, + // }, + // { + // Name: to.Ptr("ExampleVault2"), + // Type: to.Ptr("Microsoft.DataProtection/BackupVaults"), + // ID: to.Ptr("/subscriptions/0b352192-dcac-4cc7-992e-a96190ccc68c/resourceGroups/SampleResourceGroup/providers/Microsoft.DataProtection/BackupVaults/ExampleVault2"), + // Location: to.Ptr("WestUS"), + // Tags: map[string]*string{ + // "key1": to.Ptr("val1"), + // }, + // Identity: &armdataprotection.DppIdentityDetails{ + // Type: to.Ptr("SystemAssigned"), + // PrincipalID: to.Ptr("c009b9a0-0024-417c-83cd-025d3776045d"), + // TenantID: to.Ptr("83abe5cd-bcc3-441a-bd86-e6a75360cecc"), + // }, + // Properties: &armdataprotection.BackupVault{ + // MonitoringSettings: &armdataprotection.MonitoringSettings{ + // AzureMonitorAlertSettings: &armdataprotection.AzureMonitorAlertSettings{ + // AlertsForAllJobFailures: to.Ptr(armdataprotection.AlertsStateEnabled), + // }, + // }, + // ProvisioningState: to.Ptr(armdataprotection.ProvisioningStateSucceeded), + // StorageSettings: []*armdataprotection.StorageSetting{ + // { + // Type: to.Ptr(armdataprotection.StorageSettingTypesLocallyRedundant), + // DatastoreType: to.Ptr(armdataprotection.StorageSettingStoreTypesVaultStore), + // }}, + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/VaultCRUD/GetBackupVault.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3035214dea933cd02b1ecfa982c185a572f84b8a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/VaultCRUD/GetBackupVault.json func ExampleBackupVaultsClient_Get_getBackupVault() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -80,11 +176,37 @@ func ExampleBackupVaultsClient_Get_getBackupVault() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.BackupVaultResource = armdataprotection.BackupVaultResource{ + // Name: to.Ptr("swaggerExample"), + // Type: to.Ptr("Microsoft.DataProtection/Backupvaults"), + // ID: to.Ptr("/subscriptions/0b352192-dcac-4cc7-992e-a96190ccc68c/resourceGroups/SampleResourceGroup/providers/Microsoft.DataProtection/Backupvaults/swaggerExample"), + // Location: to.Ptr("WestUS"), + // Tags: map[string]*string{ + // "key1": to.Ptr("val1"), + // }, + // Identity: &armdataprotection.DppIdentityDetails{ + // Type: to.Ptr("None"), + // }, + // Properties: &armdataprotection.BackupVault{ + // MonitoringSettings: &armdataprotection.MonitoringSettings{ + // AzureMonitorAlertSettings: &armdataprotection.AzureMonitorAlertSettings{ + // AlertsForAllJobFailures: to.Ptr(armdataprotection.AlertsStateEnabled), + // }, + // }, + // ProvisioningState: to.Ptr(armdataprotection.ProvisioningStateSucceeded), + // StorageSettings: []*armdataprotection.StorageSetting{ + // { + // Type: to.Ptr(armdataprotection.StorageSettingTypesLocallyRedundant), + // DatastoreType: to.Ptr(armdataprotection.StorageSettingStoreTypesVaultStore), + // }}, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/VaultCRUD/GetBackupVaultWithMSI.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3035214dea933cd02b1ecfa982c185a572f84b8a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/VaultCRUD/GetBackupVaultWithMSI.json func ExampleBackupVaultsClient_Get_getBackupVaultWithMsi() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -99,11 +221,34 @@ func ExampleBackupVaultsClient_Get_getBackupVaultWithMsi() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.BackupVaultResource = armdataprotection.BackupVaultResource{ + // Name: to.Ptr("swaggerExample"), + // Type: to.Ptr("Microsoft.DataProtection/Backupvaults"), + // ID: to.Ptr("/subscriptions/0b352192-dcac-4cc7-992e-a96190ccc68c/resourceGroups/SampleResourceGroup/providers/Microsoft.DataProtection/Backupvaults/swaggerExample"), + // Location: to.Ptr("WestUS"), + // Tags: map[string]*string{ + // "key1": to.Ptr("val1"), + // }, + // Identity: &armdataprotection.DppIdentityDetails{ + // Type: to.Ptr("SystemAssigned"), + // PrincipalID: to.Ptr("c009b9a0-0024-417c-83cd-025d3776045d"), + // TenantID: to.Ptr("83abe5cd-bcc3-441a-bd86-e6a75360cecc"), + // }, + // Properties: &armdataprotection.BackupVault{ + // ProvisioningState: to.Ptr(armdataprotection.ProvisioningStateSucceeded), + // StorageSettings: []*armdataprotection.StorageSetting{ + // { + // Type: to.Ptr(armdataprotection.StorageSettingTypesLocallyRedundant), + // DatastoreType: to.Ptr(armdataprotection.StorageSettingStoreTypesVaultStore), + // }}, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/VaultCRUD/PutBackupVault.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3035214dea933cd02b1ecfa982c185a572f84b8a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/VaultCRUD/PutBackupVault.json func ExampleBackupVaultsClient_BeginCreateOrUpdate_createBackupVault() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -115,13 +260,13 @@ func ExampleBackupVaultsClient_BeginCreateOrUpdate_createBackupVault() { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "SampleResourceGroup", "swaggerExample", armdataprotection.BackupVaultResource{ - Identity: &armdataprotection.DppIdentityDetails{ - Type: to.Ptr("None"), - }, Location: to.Ptr("WestUS"), Tags: map[string]*string{ "key1": to.Ptr("val1"), }, + Identity: &armdataprotection.DppIdentityDetails{ + Type: to.Ptr("None"), + }, Properties: &armdataprotection.BackupVault{ MonitoringSettings: &armdataprotection.MonitoringSettings{ AzureMonitorAlertSettings: &armdataprotection.AzureMonitorAlertSettings{ @@ -142,11 +287,37 @@ func ExampleBackupVaultsClient_BeginCreateOrUpdate_createBackupVault() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.BackupVaultResource = armdataprotection.BackupVaultResource{ + // Name: to.Ptr("swaggerExample"), + // Type: to.Ptr("Microsoft.DataProtection/Backupvaults"), + // ID: to.Ptr("/subscriptions/0b352192-dcac-4cc7-992e-a96190ccc68c/resourceGroups/SampleResourceGroup/providers/Microsoft.DataProtection/Backupvaults/swaggerExample"), + // Location: to.Ptr("WestUS"), + // Tags: map[string]*string{ + // "key1": to.Ptr("val1"), + // }, + // Identity: &armdataprotection.DppIdentityDetails{ + // Type: to.Ptr("None"), + // }, + // Properties: &armdataprotection.BackupVault{ + // MonitoringSettings: &armdataprotection.MonitoringSettings{ + // AzureMonitorAlertSettings: &armdataprotection.AzureMonitorAlertSettings{ + // AlertsForAllJobFailures: to.Ptr(armdataprotection.AlertsStateEnabled), + // }, + // }, + // ProvisioningState: to.Ptr(armdataprotection.ProvisioningStateSucceeded), + // StorageSettings: []*armdataprotection.StorageSetting{ + // { + // Type: to.Ptr(armdataprotection.StorageSettingTypesLocallyRedundant), + // DatastoreType: to.Ptr(armdataprotection.StorageSettingStoreTypesVaultStore), + // }}, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/VaultCRUD/PutBackupVaultWithMSI.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3035214dea933cd02b1ecfa982c185a572f84b8a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/VaultCRUD/PutBackupVaultWithMSI.json func ExampleBackupVaultsClient_BeginCreateOrUpdate_createBackupVaultWithMsi() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -158,13 +329,13 @@ func ExampleBackupVaultsClient_BeginCreateOrUpdate_createBackupVaultWithMsi() { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "SampleResourceGroup", "swaggerExample", armdataprotection.BackupVaultResource{ - Identity: &armdataprotection.DppIdentityDetails{ - Type: to.Ptr("systemAssigned"), - }, Location: to.Ptr("WestUS"), Tags: map[string]*string{ "key1": to.Ptr("val1"), }, + Identity: &armdataprotection.DppIdentityDetails{ + Type: to.Ptr("systemAssigned"), + }, Properties: &armdataprotection.BackupVault{ MonitoringSettings: &armdataprotection.MonitoringSettings{ AzureMonitorAlertSettings: &armdataprotection.AzureMonitorAlertSettings{ @@ -185,12 +356,40 @@ func ExampleBackupVaultsClient_BeginCreateOrUpdate_createBackupVaultWithMsi() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.BackupVaultResource = armdataprotection.BackupVaultResource{ + // Name: to.Ptr("swaggerExample"), + // Type: to.Ptr("Microsoft.DataProtection/Backupvaults"), + // ID: to.Ptr("/subscriptions/0b352192-dcac-4cc7-992e-a96190ccc68c/resourceGroups/SampleResourceGroup/providers/Microsoft.DataProtection/Backupvaults/swaggerExample"), + // Location: to.Ptr("WestUS"), + // Tags: map[string]*string{ + // "key1": to.Ptr("val1"), + // }, + // Identity: &armdataprotection.DppIdentityDetails{ + // Type: to.Ptr("SystemAssigned"), + // PrincipalID: to.Ptr("c009b9a0-0024-417c-83cd-025d3776045d"), + // TenantID: to.Ptr("83abe5cd-bcc3-441a-bd86-e6a75360cecc"), + // }, + // Properties: &armdataprotection.BackupVault{ + // MonitoringSettings: &armdataprotection.MonitoringSettings{ + // AzureMonitorAlertSettings: &armdataprotection.AzureMonitorAlertSettings{ + // AlertsForAllJobFailures: to.Ptr(armdataprotection.AlertsStateEnabled), + // }, + // }, + // ProvisioningState: to.Ptr(armdataprotection.ProvisioningStateSucceeded), + // StorageSettings: []*armdataprotection.StorageSetting{ + // { + // Type: to.Ptr(armdataprotection.StorageSettingTypesLocallyRedundant), + // DatastoreType: to.Ptr(armdataprotection.StorageSettingStoreTypesVaultStore), + // }}, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/VaultCRUD/DeleteBackupVault.json -func ExampleBackupVaultsClient_Delete() { +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3035214dea933cd02b1ecfa982c185a572f84b8a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/VaultCRUD/DeleteBackupVault.json +func ExampleBackupVaultsClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -200,13 +399,17 @@ func ExampleBackupVaultsClient_Delete() { if err != nil { log.Fatalf("failed to create client: %v", err) } - _, err = client.Delete(ctx, "SampleResourceGroup", "swaggerExample", nil) + poller, err := client.BeginDelete(ctx, "SampleResourceGroup", "swaggerExample", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } + _, err = poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/VaultCRUD/PatchBackupVault.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3035214dea933cd02b1ecfa982c185a572f84b8a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/VaultCRUD/PatchBackupVault.json func ExampleBackupVaultsClient_BeginUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -236,11 +439,34 @@ func ExampleBackupVaultsClient_BeginUpdate() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.BackupVaultResource = armdataprotection.BackupVaultResource{ + // Name: to.Ptr("swaggerExample"), + // Type: to.Ptr("Microsoft.DataProtection/Backupvaults"), + // ID: to.Ptr("/subscriptions/0b352192-dcac-4cc7-992e-a96190ccc68c/resourceGroups/SampleResourceGroup/providers/Microsoft.DataProtection/Backupvaults/swaggerExample"), + // Location: to.Ptr("WestUS"), + // Tags: map[string]*string{ + // "newKey": to.Ptr("newVal"), + // }, + // Properties: &armdataprotection.BackupVault{ + // MonitoringSettings: &armdataprotection.MonitoringSettings{ + // AzureMonitorAlertSettings: &armdataprotection.AzureMonitorAlertSettings{ + // AlertsForAllJobFailures: to.Ptr(armdataprotection.AlertsStateEnabled), + // }, + // }, + // ProvisioningState: to.Ptr(armdataprotection.ProvisioningStateSucceeded), + // StorageSettings: []*armdataprotection.StorageSetting{ + // { + // Type: to.Ptr(armdataprotection.StorageSettingTypesLocallyRedundant), + // DatastoreType: to.Ptr(armdataprotection.StorageSettingStoreTypesVaultStore), + // }}, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/VaultCRUD/CheckBackupVaultsNameAvailability.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3035214dea933cd02b1ecfa982c185a572f84b8a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/VaultCRUD/CheckBackupVaultsNameAvailability.json func ExampleBackupVaultsClient_CheckNameAvailability() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -258,6 +484,10 @@ func ExampleBackupVaultsClient_CheckNameAvailability() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.CheckNameAvailabilityResult = armdataprotection.CheckNameAvailabilityResult{ + // NameAvailable: to.Ptr(true), + // } } diff --git a/sdk/resourcemanager/dataprotection/armdataprotection/client.go b/sdk/resourcemanager/dataprotection/armdataprotection/client.go index 26c0b2714ff9..422524def953 100644 --- a/sdk/resourcemanager/dataprotection/armdataprotection/client.go +++ b/sdk/resourcemanager/dataprotection/armdataprotection/client.go @@ -32,9 +32,9 @@ type Client struct { } // NewClient creates a new instance of Client with the specified values. -// subscriptionID - The subscription Id. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*Client, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,9 +57,10 @@ func NewClient(subscriptionID string, credential azcore.TokenCredential, options // CheckFeatureSupport - Validates if a feature is supported // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-11-01-preview -// parameters - Feature support request object -// options - ClientCheckFeatureSupportOptions contains the optional parameters for the Client.CheckFeatureSupport method. +// +// Generated from API version 2023-01-01 +// - parameters - Feature support request object +// - options - ClientCheckFeatureSupportOptions contains the optional parameters for the Client.CheckFeatureSupport method. func (client *Client) CheckFeatureSupport(ctx context.Context, location string, parameters FeatureValidationRequestBaseClassification, options *ClientCheckFeatureSupportOptions) (ClientCheckFeatureSupportResponse, error) { req, err := client.checkFeatureSupportCreateRequest(ctx, location, parameters, options) if err != nil { @@ -78,9 +79,6 @@ func (client *Client) CheckFeatureSupport(ctx context.Context, location string, // checkFeatureSupportCreateRequest creates the CheckFeatureSupport request. func (client *Client) checkFeatureSupportCreateRequest(ctx context.Context, location string, parameters FeatureValidationRequestBaseClassification, options *ClientCheckFeatureSupportOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.DataProtection/locations/{location}/checkFeatureSupport" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if location == "" { return nil, errors.New("parameter location cannot be empty") @@ -91,7 +89,7 @@ func (client *Client) checkFeatureSupportCreateRequest(ctx context.Context, loca return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-11-01-preview") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, parameters) diff --git a/sdk/resourcemanager/dataprotection/armdataprotection/client_example_test.go b/sdk/resourcemanager/dataprotection/armdataprotection/client_example_test.go index 94a7d5db3d42..0eac43d67eee 100644 --- a/sdk/resourcemanager/dataprotection/armdataprotection/client_example_test.go +++ b/sdk/resourcemanager/dataprotection/armdataprotection/client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armdataprotection_test @@ -17,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dataprotection/armdataprotection/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/CheckfeatureSupport.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3035214dea933cd02b1ecfa982c185a572f84b8a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/CheckfeatureSupport.json func ExampleClient_CheckFeatureSupport() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -35,6 +36,26 @@ func ExampleClient_CheckFeatureSupport() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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 = armdataprotection.ClientCheckFeatureSupportResponse{ + // FeatureValidationResponseBaseClassification: &armdataprotection.FeatureValidationResponse{ + // ObjectType: to.Ptr("FeatureValidationResponse"), + // FeatureType: to.Ptr(armdataprotection.FeatureTypeDataSourceType), + // Features: []*armdataprotection.SupportedFeature{ + // { + // ExposureControlledFeatures: []*string{ + // }, + // FeatureName: to.Ptr("Microsoft.Storage/storageAccounts/blobServices"), + // SupportStatus: to.Ptr(armdataprotection.FeatureSupportStatusPrivatePreview), + // }, + // { + // ExposureControlledFeatures: []*string{ + // }, + // FeatureName: to.Ptr("Microsoft.DBforPostgreSQL/servers/databases"), + // SupportStatus: to.Ptr(armdataprotection.FeatureSupportStatusPublicPreview), + // }}, + // }, + // } } diff --git a/sdk/resourcemanager/dataprotection/armdataprotection/constants.go b/sdk/resourcemanager/dataprotection/armdataprotection/constants.go index 0cef969462a2..b50052f5e6a2 100644 --- a/sdk/resourcemanager/dataprotection/armdataprotection/constants.go +++ b/sdk/resourcemanager/dataprotection/armdataprotection/constants.go @@ -11,7 +11,7 @@ package armdataprotection const ( moduleName = "armdataprotection" - moduleVersion = "v2.0.0-beta.1" + moduleVersion = "v2.0.0" ) type AbsoluteMarker string @@ -70,6 +70,24 @@ func PossibleCreatedByTypeValues() []CreatedByType { } } +// CrossSubscriptionRestoreState - CrossSubscriptionRestore state +type CrossSubscriptionRestoreState string + +const ( + CrossSubscriptionRestoreStateDisabled CrossSubscriptionRestoreState = "Disabled" + CrossSubscriptionRestoreStateEnabled CrossSubscriptionRestoreState = "Enabled" + CrossSubscriptionRestoreStatePermanentlyDisabled CrossSubscriptionRestoreState = "PermanentlyDisabled" +) + +// PossibleCrossSubscriptionRestoreStateValues returns the possible values for the CrossSubscriptionRestoreState const type. +func PossibleCrossSubscriptionRestoreStateValues() []CrossSubscriptionRestoreState { + return []CrossSubscriptionRestoreState{ + CrossSubscriptionRestoreStateDisabled, + CrossSubscriptionRestoreStateEnabled, + CrossSubscriptionRestoreStatePermanentlyDisabled, + } +} + // CurrentProtectionState - Specifies the current protection state of the resource type CurrentProtectionState string @@ -259,8 +277,8 @@ func PossibleMonthValues() []Month { } } -// PersistentVolumeRestoreMode - Gets or sets the PV Restore Mode property. This property sets whether volumes needs to be -// restored. +// PersistentVolumeRestoreMode - Gets or sets the PV (Persistent Volume) Restore Mode property. This property sets whether +// volumes needs to be restored. type PersistentVolumeRestoreMode string const ( @@ -351,28 +369,6 @@ func PossibleRehydrationStatusValues() []RehydrationStatus { } } -// ResourceGuardProvisioningState - Provisioning state of the BackupVault resource -type ResourceGuardProvisioningState string - -const ( - ResourceGuardProvisioningStateFailed ResourceGuardProvisioningState = "Failed" - ResourceGuardProvisioningStateProvisioning ResourceGuardProvisioningState = "Provisioning" - ResourceGuardProvisioningStateSucceeded ResourceGuardProvisioningState = "Succeeded" - ResourceGuardProvisioningStateUnknown ResourceGuardProvisioningState = "Unknown" - ResourceGuardProvisioningStateUpdating ResourceGuardProvisioningState = "Updating" -) - -// PossibleResourceGuardProvisioningStateValues returns the possible values for the ResourceGuardProvisioningState const type. -func PossibleResourceGuardProvisioningStateValues() []ResourceGuardProvisioningState { - return []ResourceGuardProvisioningState{ - ResourceGuardProvisioningStateFailed, - ResourceGuardProvisioningStateProvisioning, - ResourceGuardProvisioningStateSucceeded, - ResourceGuardProvisioningStateUnknown, - ResourceGuardProvisioningStateUpdating, - } -} - // ResourceMoveState - Resource move state for backup vault type ResourceMoveState string @@ -482,15 +478,17 @@ func PossibleSoftDeleteStateValues() []SoftDeleteState { type SourceDataStoreType string const ( - SourceDataStoreTypeArchiveStore SourceDataStoreType = "ArchiveStore" - SourceDataStoreTypeSnapshotStore SourceDataStoreType = "SnapshotStore" - SourceDataStoreTypeVaultStore SourceDataStoreType = "VaultStore" + SourceDataStoreTypeArchiveStore SourceDataStoreType = "ArchiveStore" + SourceDataStoreTypeOperationalStore SourceDataStoreType = "OperationalStore" + SourceDataStoreTypeSnapshotStore SourceDataStoreType = "SnapshotStore" + SourceDataStoreTypeVaultStore SourceDataStoreType = "VaultStore" ) // PossibleSourceDataStoreTypeValues returns the possible values for the SourceDataStoreType const type. func PossibleSourceDataStoreTypeValues() []SourceDataStoreType { return []SourceDataStoreType{ SourceDataStoreTypeArchiveStore, + SourceDataStoreTypeOperationalStore, SourceDataStoreTypeSnapshotStore, SourceDataStoreTypeVaultStore, } @@ -524,16 +522,16 @@ func PossibleStatusValues() []Status { type StorageSettingStoreTypes string const ( - StorageSettingStoreTypesArchiveStore StorageSettingStoreTypes = "ArchiveStore" - StorageSettingStoreTypesSnapshotStore StorageSettingStoreTypes = "SnapshotStore" - StorageSettingStoreTypesVaultStore StorageSettingStoreTypes = "VaultStore" + StorageSettingStoreTypesArchiveStore StorageSettingStoreTypes = "ArchiveStore" + StorageSettingStoreTypesOperationalStore StorageSettingStoreTypes = "OperationalStore" + StorageSettingStoreTypesVaultStore StorageSettingStoreTypes = "VaultStore" ) // PossibleStorageSettingStoreTypesValues returns the possible values for the StorageSettingStoreTypes const type. func PossibleStorageSettingStoreTypesValues() []StorageSettingStoreTypes { return []StorageSettingStoreTypes{ StorageSettingStoreTypesArchiveStore, - StorageSettingStoreTypesSnapshotStore, + StorageSettingStoreTypesOperationalStore, StorageSettingStoreTypesVaultStore, } } diff --git a/sdk/resourcemanager/dataprotection/armdataprotection/deletedbackupinstances_client.go b/sdk/resourcemanager/dataprotection/armdataprotection/deletedbackupinstances_client.go index 4529ee90706b..4c8d9281fa91 100644 --- a/sdk/resourcemanager/dataprotection/armdataprotection/deletedbackupinstances_client.go +++ b/sdk/resourcemanager/dataprotection/armdataprotection/deletedbackupinstances_client.go @@ -32,9 +32,9 @@ type DeletedBackupInstancesClient struct { } // NewDeletedBackupInstancesClient creates a new instance of DeletedBackupInstancesClient with the specified values. -// subscriptionID - The subscription Id. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewDeletedBackupInstancesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DeletedBackupInstancesClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,12 +57,13 @@ func NewDeletedBackupInstancesClient(subscriptionID string, credential azcore.To // Get - Gets a deleted backup instance with name in a backup vault // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-11-01-preview -// resourceGroupName - The name of the resource group where the backup vault is present. -// vaultName - The name of the backup vault. -// backupInstanceName - The name of the deleted backup instance -// options - DeletedBackupInstancesClientGetOptions contains the optional parameters for the DeletedBackupInstancesClient.Get -// method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - vaultName - The name of the backup vault. +// - backupInstanceName - The name of the deleted backup instance +// - options - DeletedBackupInstancesClientGetOptions contains the optional parameters for the DeletedBackupInstancesClient.Get +// method. func (client *DeletedBackupInstancesClient) Get(ctx context.Context, resourceGroupName string, vaultName string, backupInstanceName string, options *DeletedBackupInstancesClientGetOptions) (DeletedBackupInstancesClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, vaultName, backupInstanceName, options) if err != nil { @@ -81,9 +82,6 @@ func (client *DeletedBackupInstancesClient) Get(ctx context.Context, resourceGro // getCreateRequest creates the Get request. func (client *DeletedBackupInstancesClient) getCreateRequest(ctx context.Context, resourceGroupName string, vaultName string, backupInstanceName string, options *DeletedBackupInstancesClientGetOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/deletedBackupInstances/{backupInstanceName}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -102,7 +100,7 @@ func (client *DeletedBackupInstancesClient) getCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-11-01-preview") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -118,11 +116,12 @@ func (client *DeletedBackupInstancesClient) getHandleResponse(resp *http.Respons } // NewListPager - Gets deleted backup instances belonging to a backup vault -// Generated from API version 2022-11-01-preview -// resourceGroupName - The name of the resource group where the backup vault is present. -// vaultName - The name of the backup vault. -// options - DeletedBackupInstancesClientListOptions contains the optional parameters for the DeletedBackupInstancesClient.List -// method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - vaultName - The name of the backup vault. +// - options - DeletedBackupInstancesClientListOptions contains the optional parameters for the DeletedBackupInstancesClient.NewListPager +// method. func (client *DeletedBackupInstancesClient) NewListPager(resourceGroupName string, vaultName string, options *DeletedBackupInstancesClientListOptions) *runtime.Pager[DeletedBackupInstancesClientListResponse] { return runtime.NewPager(runtime.PagingHandler[DeletedBackupInstancesClientListResponse]{ More: func(page DeletedBackupInstancesClientListResponse) bool { @@ -154,9 +153,6 @@ func (client *DeletedBackupInstancesClient) NewListPager(resourceGroupName strin // listCreateRequest creates the List request. func (client *DeletedBackupInstancesClient) listCreateRequest(ctx context.Context, resourceGroupName string, vaultName string, options *DeletedBackupInstancesClientListOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/deletedBackupInstances" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -171,7 +167,7 @@ func (client *DeletedBackupInstancesClient) listCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-11-01-preview") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -188,12 +184,13 @@ func (client *DeletedBackupInstancesClient) listHandleResponse(resp *http.Respon // BeginUndelete - // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-11-01-preview -// resourceGroupName - The name of the resource group where the backup vault is present. -// vaultName - The name of the backup vault. -// backupInstanceName - The name of the deleted backup instance -// options - DeletedBackupInstancesClientBeginUndeleteOptions contains the optional parameters for the DeletedBackupInstancesClient.BeginUndelete -// method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - vaultName - The name of the backup vault. +// - backupInstanceName - The name of the deleted backup instance +// - options - DeletedBackupInstancesClientBeginUndeleteOptions contains the optional parameters for the DeletedBackupInstancesClient.BeginUndelete +// method. func (client *DeletedBackupInstancesClient) BeginUndelete(ctx context.Context, resourceGroupName string, vaultName string, backupInstanceName string, options *DeletedBackupInstancesClientBeginUndeleteOptions) (*runtime.Poller[DeletedBackupInstancesClientUndeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.undelete(ctx, resourceGroupName, vaultName, backupInstanceName, options) @@ -208,7 +205,8 @@ func (client *DeletedBackupInstancesClient) BeginUndelete(ctx context.Context, r // Undelete - // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-11-01-preview +// +// Generated from API version 2023-01-01 func (client *DeletedBackupInstancesClient) undelete(ctx context.Context, resourceGroupName string, vaultName string, backupInstanceName string, options *DeletedBackupInstancesClientBeginUndeleteOptions) (*http.Response, error) { req, err := client.undeleteCreateRequest(ctx, resourceGroupName, vaultName, backupInstanceName, options) if err != nil { @@ -227,9 +225,6 @@ func (client *DeletedBackupInstancesClient) undelete(ctx context.Context, resour // undeleteCreateRequest creates the Undelete request. func (client *DeletedBackupInstancesClient) undeleteCreateRequest(ctx context.Context, resourceGroupName string, vaultName string, backupInstanceName string, options *DeletedBackupInstancesClientBeginUndeleteOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/deletedBackupInstances/{backupInstanceName}/undelete" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -248,7 +243,7 @@ func (client *DeletedBackupInstancesClient) undeleteCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-11-01-preview") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/dataprotection/armdataprotection/deletedbackupinstances_client_example_test.go b/sdk/resourcemanager/dataprotection/armdataprotection/deletedbackupinstances_client_example_test.go index 723e10483fa7..b8ffa84fb60f 100644 --- a/sdk/resourcemanager/dataprotection/armdataprotection/deletedbackupinstances_client_example_test.go +++ b/sdk/resourcemanager/dataprotection/armdataprotection/deletedbackupinstances_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armdataprotection_test @@ -16,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dataprotection/armdataprotection/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/DeletedBackupInstanceOperations/ListDeletedBackupInstances.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3035214dea933cd02b1ecfa982c185a572f84b8a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/DeletedBackupInstanceOperations/ListDeletedBackupInstances.json func ExampleDeletedBackupInstancesClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -29,18 +30,62 @@ func ExampleDeletedBackupInstancesClient_NewListPager() { } pager := client.NewListPager("000pikumar", "PratikPrivatePreviewVault1", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.DeletedBackupInstanceResourceList = armdataprotection.DeletedBackupInstanceResourceList{ + // Value: []*armdataprotection.DeletedBackupInstanceResource{ + // { + // Name: to.Ptr("testInstance1"), + // Type: to.Ptr("Microsoft.DataProtection/backupVaults/deletedBackupInstances"), + // ID: to.Ptr("/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/backupVaults/PratikPrivatePreviewVault1/deletedBackupInstances/testInstance1"), + // Properties: &armdataprotection.DeletedBackupInstance{ + // DataSourceInfo: &armdataprotection.Datasource{ + // DatasourceType: to.Ptr("Microsoft.DBforPostgreSQL/servers/databases"), + // ObjectType: to.Ptr("Datasource"), + // ResourceID: to.Ptr("/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/testdb"), + // ResourceLocation: to.Ptr(""), + // ResourceName: to.Ptr("testdb"), + // ResourceType: to.Ptr("Microsoft.DBforPostgreSQL/servers/databases"), + // ResourceURI: to.Ptr(""), + // }, + // DataSourceSetInfo: &armdataprotection.DatasourceSet{ + // DatasourceType: to.Ptr("Microsoft.DBforPostgreSQL/servers/databases"), + // ObjectType: to.Ptr("DatasourceSet"), + // ResourceID: to.Ptr("/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest"), + // ResourceLocation: to.Ptr(""), + // ResourceName: to.Ptr("viveksipgtest"), + // ResourceType: to.Ptr("Microsoft.DBforPostgreSQL/servers"), + // ResourceURI: to.Ptr(""), + // }, + // FriendlyName: to.Ptr("testInstance1"), + // ObjectType: to.Ptr("DeletedBackupInstance"), + // PolicyInfo: &armdataprotection.PolicyInfo{ + // PolicyID: to.Ptr("/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/backupVaults/PratikPrivatePreviewVault1/backupPolicies/PratikPolicy1"), + // }, + // ProtectionStatus: &armdataprotection.ProtectionStatusDetails{ + // Status: to.Ptr(armdataprotection.StatusSoftDeleted), + // }, + // ProvisioningState: to.Ptr("Succeeded"), + // DeletionInfo: &armdataprotection.DeletionInfo{ + // BillingEndDate: to.Ptr("2022-05-06T00:00:36.6660445Z"), + // DeleteActivityID: to.Ptr("1e9ec790-d198-4efb-bbd7-e4669d5351a4"), + // DeletionTime: to.Ptr("2022-05-04T00:00:36.6660445Z"), + // ScheduledPurgeTime: to.Ptr("2022-05-20T00:00:36.6660445Z"), + // }, + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/DeletedBackupInstanceOperations/GetDeletedBackupInstance.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3035214dea933cd02b1ecfa982c185a572f84b8a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/DeletedBackupInstanceOperations/GetDeletedBackupInstance.json func ExampleDeletedBackupInstancesClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -55,11 +100,52 @@ func ExampleDeletedBackupInstancesClient_Get() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.DeletedBackupInstanceResource = armdataprotection.DeletedBackupInstanceResource{ + // Name: to.Ptr("testInstance1"), + // Type: to.Ptr("Microsoft.DataProtection/backupVaults/deletedBackupInstances"), + // ID: to.Ptr("/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/backupVaults/PratikPrivatePreviewVault1/deletedBackupInstances/testInstance1"), + // Properties: &armdataprotection.DeletedBackupInstance{ + // DataSourceInfo: &armdataprotection.Datasource{ + // DatasourceType: to.Ptr("Microsoft.DBforPostgreSQL/servers/databases"), + // ObjectType: to.Ptr("Datasource"), + // ResourceID: to.Ptr("/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest/databases/testdb"), + // ResourceLocation: to.Ptr(""), + // ResourceName: to.Ptr("testdb"), + // ResourceType: to.Ptr("Microsoft.DBforPostgreSQL/servers/databases"), + // ResourceURI: to.Ptr(""), + // }, + // DataSourceSetInfo: &armdataprotection.DatasourceSet{ + // DatasourceType: to.Ptr("Microsoft.DBforPostgreSQL/servers/databases"), + // ObjectType: to.Ptr("DatasourceSet"), + // ResourceID: to.Ptr("/subscriptions/f75d8d8b-6735-4697-82e1-1a7a3ff0d5d4/resourceGroups/viveksipgtest/providers/Microsoft.DBforPostgreSQL/servers/viveksipgtest"), + // ResourceLocation: to.Ptr(""), + // ResourceName: to.Ptr("viveksipgtest"), + // ResourceType: to.Ptr("Microsoft.DBforPostgreSQL/servers"), + // ResourceURI: to.Ptr(""), + // }, + // FriendlyName: to.Ptr("testInstance1"), + // ObjectType: to.Ptr("DeletedBackupInstance"), + // PolicyInfo: &armdataprotection.PolicyInfo{ + // PolicyID: to.Ptr("/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/000pikumar/providers/Microsoft.DataProtection/backupVaults/PratikPrivatePreviewVault1/backupPolicies/PratikPolicy1"), + // }, + // ProtectionStatus: &armdataprotection.ProtectionStatusDetails{ + // Status: to.Ptr(armdataprotection.StatusSoftDeleted), + // }, + // ProvisioningState: to.Ptr("Succeeded"), + // DeletionInfo: &armdataprotection.DeletionInfo{ + // BillingEndDate: to.Ptr("2022-05-06T00:00:36.6660445Z"), + // DeleteActivityID: to.Ptr("1e9ec790-d198-4efb-bbd7-e4669d5351a4"), + // DeletionTime: to.Ptr("2022-05-04T00:00:36.6660445Z"), + // ScheduledPurgeTime: to.Ptr("2022-05-20T00:00:36.6660445Z"), + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/DeletedBackupInstanceOperations/UndeleteDeletedBackupInstance.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3035214dea933cd02b1ecfa982c185a572f84b8a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/DeletedBackupInstanceOperations/UndeleteDeletedBackupInstance.json func ExampleDeletedBackupInstancesClient_BeginUndelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/dataprotection/armdataprotection/dppresourceguardproxy_client.go b/sdk/resourcemanager/dataprotection/armdataprotection/dppresourceguardproxy_client.go deleted file mode 100644 index a5c359ae0b38..000000000000 --- a/sdk/resourcemanager/dataprotection/armdataprotection/dppresourceguardproxy_client.go +++ /dev/null @@ -1,360 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armdataprotection - -import ( - "context" - "errors" - "github.com/Azure/azure-sdk-for-go/sdk/azcore" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" - "net/http" - "net/url" - "strings" -) - -// DppResourceGuardProxyClient contains the methods for the DppResourceGuardProxy group. -// Don't use this type directly, use NewDppResourceGuardProxyClient() instead. -type DppResourceGuardProxyClient struct { - host string - subscriptionID string - pl runtime.Pipeline -} - -// NewDppResourceGuardProxyClient creates a new instance of DppResourceGuardProxyClient with the specified values. -// subscriptionID - The subscription Id. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. -func NewDppResourceGuardProxyClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DppResourceGuardProxyClient, error) { - if options == nil { - options = &arm.ClientOptions{} - } - ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint - if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { - ep = c.Endpoint - } - pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) - if err != nil { - return nil, err - } - client := &DppResourceGuardProxyClient{ - subscriptionID: subscriptionID, - host: ep, - pl: pl, - } - return client, nil -} - -// Delete - -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-11-01-preview -// resourceGroupName - The name of the resource group where the backup vault is present. -// vaultName - The name of the backup vault. -// options - DppResourceGuardProxyClientDeleteOptions contains the optional parameters for the DppResourceGuardProxyClient.Delete -// method. -func (client *DppResourceGuardProxyClient) Delete(ctx context.Context, resourceGroupName string, vaultName string, resourceGuardProxyName string, options *DppResourceGuardProxyClientDeleteOptions) (DppResourceGuardProxyClientDeleteResponse, error) { - req, err := client.deleteCreateRequest(ctx, resourceGroupName, vaultName, resourceGuardProxyName, options) - if err != nil { - return DppResourceGuardProxyClientDeleteResponse{}, err - } - resp, err := client.pl.Do(req) - if err != nil { - return DppResourceGuardProxyClientDeleteResponse{}, err - } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusNoContent) { - return DppResourceGuardProxyClientDeleteResponse{}, runtime.NewResponseError(resp) - } - return DppResourceGuardProxyClientDeleteResponse{}, nil -} - -// deleteCreateRequest creates the Delete request. -func (client *DppResourceGuardProxyClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, vaultName string, resourceGuardProxyName string, options *DppResourceGuardProxyClientDeleteOptions) (*policy.Request, error) { - urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupResourceGuardProxies/{resourceGuardProxyName}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - if resourceGroupName == "" { - return nil, errors.New("parameter resourceGroupName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) - if vaultName == "" { - return nil, errors.New("parameter vaultName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{vaultName}", url.PathEscape(vaultName)) - if resourceGuardProxyName == "" { - return nil, errors.New("parameter resourceGuardProxyName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{resourceGuardProxyName}", url.PathEscape(resourceGuardProxyName)) - req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath)) - if err != nil { - return nil, err - } - reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-11-01-preview") - req.Raw().URL.RawQuery = reqQP.Encode() - req.Raw().Header["Accept"] = []string{"application/json"} - return req, nil -} - -// Get - -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-11-01-preview -// resourceGroupName - The name of the resource group where the backup vault is present. -// vaultName - The name of the backup vault. -// options - DppResourceGuardProxyClientGetOptions contains the optional parameters for the DppResourceGuardProxyClient.Get -// method. -func (client *DppResourceGuardProxyClient) Get(ctx context.Context, resourceGroupName string, vaultName string, resourceGuardProxyName string, options *DppResourceGuardProxyClientGetOptions) (DppResourceGuardProxyClientGetResponse, error) { - req, err := client.getCreateRequest(ctx, resourceGroupName, vaultName, resourceGuardProxyName, options) - if err != nil { - return DppResourceGuardProxyClientGetResponse{}, err - } - resp, err := client.pl.Do(req) - if err != nil { - return DppResourceGuardProxyClientGetResponse{}, err - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return DppResourceGuardProxyClientGetResponse{}, runtime.NewResponseError(resp) - } - return client.getHandleResponse(resp) -} - -// getCreateRequest creates the Get request. -func (client *DppResourceGuardProxyClient) getCreateRequest(ctx context.Context, resourceGroupName string, vaultName string, resourceGuardProxyName string, options *DppResourceGuardProxyClientGetOptions) (*policy.Request, error) { - urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupResourceGuardProxies/{resourceGuardProxyName}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - if resourceGroupName == "" { - return nil, errors.New("parameter resourceGroupName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) - if vaultName == "" { - return nil, errors.New("parameter vaultName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{vaultName}", url.PathEscape(vaultName)) - if resourceGuardProxyName == "" { - return nil, errors.New("parameter resourceGuardProxyName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{resourceGuardProxyName}", url.PathEscape(resourceGuardProxyName)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) - if err != nil { - return nil, err - } - reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-11-01-preview") - req.Raw().URL.RawQuery = reqQP.Encode() - req.Raw().Header["Accept"] = []string{"application/json"} - return req, nil -} - -// getHandleResponse handles the Get response. -func (client *DppResourceGuardProxyClient) getHandleResponse(resp *http.Response) (DppResourceGuardProxyClientGetResponse, error) { - result := DppResourceGuardProxyClientGetResponse{} - if err := runtime.UnmarshalAsJSON(resp, &result.ResourceGuardProxyBaseResource); err != nil { - return DppResourceGuardProxyClientGetResponse{}, err - } - return result, nil -} - -// resourceGroupName - The name of the resource group where the backup vault is present. -// vaultName - The name of the backup vault. -// options - DppResourceGuardProxyClientListOptions contains the optional parameters for the DppResourceGuardProxyClient.List -// method. -func (client *DppResourceGuardProxyClient) NewListPager(resourceGroupName string, vaultName string, options *DppResourceGuardProxyClientListOptions) *runtime.Pager[DppResourceGuardProxyClientListResponse] { - return runtime.NewPager(runtime.PagingHandler[DppResourceGuardProxyClientListResponse]{ - More: func(page DppResourceGuardProxyClientListResponse) bool { - return page.NextLink != nil && len(*page.NextLink) > 0 - }, - Fetcher: func(ctx context.Context, page *DppResourceGuardProxyClientListResponse) (DppResourceGuardProxyClientListResponse, error) { - var req *policy.Request - var err error - if page == nil { - req, err = client.listCreateRequest(ctx, resourceGroupName, vaultName, options) - } else { - req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) - } - if err != nil { - return DppResourceGuardProxyClientListResponse{}, err - } - resp, err := client.pl.Do(req) - if err != nil { - return DppResourceGuardProxyClientListResponse{}, err - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return DppResourceGuardProxyClientListResponse{}, runtime.NewResponseError(resp) - } - return client.listHandleResponse(resp) - }, - }) -} - -// listCreateRequest creates the List request. -func (client *DppResourceGuardProxyClient) listCreateRequest(ctx context.Context, resourceGroupName string, vaultName string, options *DppResourceGuardProxyClientListOptions) (*policy.Request, error) { - urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupResourceGuardProxies" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - if resourceGroupName == "" { - return nil, errors.New("parameter resourceGroupName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) - if vaultName == "" { - return nil, errors.New("parameter vaultName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{vaultName}", url.PathEscape(vaultName)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) - if err != nil { - return nil, err - } - reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-11-01-preview") - req.Raw().URL.RawQuery = reqQP.Encode() - req.Raw().Header["Accept"] = []string{"application/json"} - return req, nil -} - -// listHandleResponse handles the List response. -func (client *DppResourceGuardProxyClient) listHandleResponse(resp *http.Response) (DppResourceGuardProxyClientListResponse, error) { - result := DppResourceGuardProxyClientListResponse{} - if err := runtime.UnmarshalAsJSON(resp, &result.ResourceGuardProxyBaseResourceList); err != nil { - return DppResourceGuardProxyClientListResponse{}, err - } - return result, nil -} - -// Put - -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-11-01-preview -// resourceGroupName - The name of the resource group where the backup vault is present. -// vaultName - The name of the backup vault. -// parameters - Request body for operation -// options - DppResourceGuardProxyClientPutOptions contains the optional parameters for the DppResourceGuardProxyClient.Put -// method. -func (client *DppResourceGuardProxyClient) Put(ctx context.Context, resourceGroupName string, vaultName string, resourceGuardProxyName string, parameters ResourceGuardProxyBaseResource, options *DppResourceGuardProxyClientPutOptions) (DppResourceGuardProxyClientPutResponse, error) { - req, err := client.putCreateRequest(ctx, resourceGroupName, vaultName, resourceGuardProxyName, parameters, options) - if err != nil { - return DppResourceGuardProxyClientPutResponse{}, err - } - resp, err := client.pl.Do(req) - if err != nil { - return DppResourceGuardProxyClientPutResponse{}, err - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return DppResourceGuardProxyClientPutResponse{}, runtime.NewResponseError(resp) - } - return client.putHandleResponse(resp) -} - -// putCreateRequest creates the Put request. -func (client *DppResourceGuardProxyClient) putCreateRequest(ctx context.Context, resourceGroupName string, vaultName string, resourceGuardProxyName string, parameters ResourceGuardProxyBaseResource, options *DppResourceGuardProxyClientPutOptions) (*policy.Request, error) { - urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupResourceGuardProxies/{resourceGuardProxyName}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - if resourceGroupName == "" { - return nil, errors.New("parameter resourceGroupName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) - if vaultName == "" { - return nil, errors.New("parameter vaultName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{vaultName}", url.PathEscape(vaultName)) - if resourceGuardProxyName == "" { - return nil, errors.New("parameter resourceGuardProxyName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{resourceGuardProxyName}", url.PathEscape(resourceGuardProxyName)) - req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath)) - if err != nil { - return nil, err - } - reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-11-01-preview") - req.Raw().URL.RawQuery = reqQP.Encode() - req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, parameters) -} - -// putHandleResponse handles the Put response. -func (client *DppResourceGuardProxyClient) putHandleResponse(resp *http.Response) (DppResourceGuardProxyClientPutResponse, error) { - result := DppResourceGuardProxyClientPutResponse{} - if err := runtime.UnmarshalAsJSON(resp, &result.ResourceGuardProxyBaseResource); err != nil { - return DppResourceGuardProxyClientPutResponse{}, err - } - return result, nil -} - -// UnlockDelete - -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-11-01-preview -// resourceGroupName - The name of the resource group where the backup vault is present. -// vaultName - The name of the backup vault. -// parameters - Request body for operation -// options - DppResourceGuardProxyClientUnlockDeleteOptions contains the optional parameters for the DppResourceGuardProxyClient.UnlockDelete -// method. -func (client *DppResourceGuardProxyClient) UnlockDelete(ctx context.Context, resourceGroupName string, vaultName string, resourceGuardProxyName string, parameters UnlockDeleteRequest, options *DppResourceGuardProxyClientUnlockDeleteOptions) (DppResourceGuardProxyClientUnlockDeleteResponse, error) { - req, err := client.unlockDeleteCreateRequest(ctx, resourceGroupName, vaultName, resourceGuardProxyName, parameters, options) - if err != nil { - return DppResourceGuardProxyClientUnlockDeleteResponse{}, err - } - resp, err := client.pl.Do(req) - if err != nil { - return DppResourceGuardProxyClientUnlockDeleteResponse{}, err - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return DppResourceGuardProxyClientUnlockDeleteResponse{}, runtime.NewResponseError(resp) - } - return client.unlockDeleteHandleResponse(resp) -} - -// unlockDeleteCreateRequest creates the UnlockDelete request. -func (client *DppResourceGuardProxyClient) unlockDeleteCreateRequest(ctx context.Context, resourceGroupName string, vaultName string, resourceGuardProxyName string, parameters UnlockDeleteRequest, options *DppResourceGuardProxyClientUnlockDeleteOptions) (*policy.Request, error) { - urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupResourceGuardProxies/{resourceGuardProxyName}/unlockDelete" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - if resourceGroupName == "" { - return nil, errors.New("parameter resourceGroupName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) - if vaultName == "" { - return nil, errors.New("parameter vaultName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{vaultName}", url.PathEscape(vaultName)) - if resourceGuardProxyName == "" { - return nil, errors.New("parameter resourceGuardProxyName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{resourceGuardProxyName}", url.PathEscape(resourceGuardProxyName)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) - if err != nil { - return nil, err - } - reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-11-01-preview") - req.Raw().URL.RawQuery = reqQP.Encode() - req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, parameters) -} - -// unlockDeleteHandleResponse handles the UnlockDelete response. -func (client *DppResourceGuardProxyClient) unlockDeleteHandleResponse(resp *http.Response) (DppResourceGuardProxyClientUnlockDeleteResponse, error) { - result := DppResourceGuardProxyClientUnlockDeleteResponse{} - if err := runtime.UnmarshalAsJSON(resp, &result.UnlockDeleteResponse); err != nil { - return DppResourceGuardProxyClientUnlockDeleteResponse{}, err - } - return result, nil -} diff --git a/sdk/resourcemanager/dataprotection/armdataprotection/dppresourceguardproxy_client_example_test.go b/sdk/resourcemanager/dataprotection/armdataprotection/dppresourceguardproxy_client_example_test.go deleted file mode 100644 index 1c37a6088976..000000000000 --- a/sdk/resourcemanager/dataprotection/armdataprotection/dppresourceguardproxy_client_example_test.go +++ /dev/null @@ -1,124 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armdataprotection_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dataprotection/armdataprotection/v2" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/ResourceGuardProxyCRUD/ListResourceGuardProxy.json -func ExampleDppResourceGuardProxyClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armdataprotection.NewDppResourceGuardProxyClient("5e13b949-1218-4d18-8b99-7e12155ec4f7", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListPager("SampleResourceGroup", "sampleVault", nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/ResourceGuardProxyCRUD/GetResourceGuardProxy.json -func ExampleDppResourceGuardProxyClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armdataprotection.NewDppResourceGuardProxyClient("5e13b949-1218-4d18-8b99-7e12155ec4f7", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, "SampleResourceGroup", "sampleVault", "swaggerExample", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/ResourceGuardProxyCRUD/PutResourceGuardProxy.json -func ExampleDppResourceGuardProxyClient_Put() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armdataprotection.NewDppResourceGuardProxyClient("5e13b949-1218-4d18-8b99-7e12155ec4f7", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Put(ctx, "SampleResourceGroup", "sampleVault", "swaggerExample", armdataprotection.ResourceGuardProxyBaseResource{ - Properties: &armdataprotection.ResourceGuardProxyBase{ - ResourceGuardResourceID: to.Ptr("/subscriptions/f9e67185-f313-4e79-aa71-6458d429369d/resourceGroups/ResourceGuardSecurityAdminRG/providers/Microsoft.DataProtection/resourceGuards/ResourceGuardTestResource"), - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/ResourceGuardProxyCRUD/DeleteResourceGuardProxy.json -func ExampleDppResourceGuardProxyClient_Delete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armdataprotection.NewDppResourceGuardProxyClient("5e13b949-1218-4d18-8b99-7e12155ec4f7", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = client.Delete(ctx, "SampleResourceGroup", "sampleVault", "swaggerExample", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/ResourceGuardProxyCRUD/UnlockDeleteResourceGuardProxy.json -func ExampleDppResourceGuardProxyClient_UnlockDelete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armdataprotection.NewDppResourceGuardProxyClient("5e13b949-1218-4d18-8b99-7e12155ec4f7", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.UnlockDelete(ctx, "SampleResourceGroup", "sampleVault", "swaggerExample", armdataprotection.UnlockDeleteRequest{ - ResourceGuardOperationRequests: []*string{ - to.Ptr("/subscriptions/f9e67185-f313-4e79-aa71-6458d429369d/resourceGroups/ResourceGuardSecurityAdminRG/providers/Microsoft.DataProtection/resourceGuards/ResourceGuardTestResource/deleteBackupInstanceRequests/default")}, - ResourceToBeDeleted: to.Ptr("/subscriptions/5e13b949-1218-4d18-8b99-7e12155ec4f7/resourceGroups/SampleResourceGroup/providers/Microsoft.DataProtection/backupVaults/sampleVault/backupInstances/TestBI9779f4de"), - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} diff --git a/sdk/resourcemanager/dataprotection/armdataprotection/exportjobs_client.go b/sdk/resourcemanager/dataprotection/armdataprotection/exportjobs_client.go index 6d60e1aaad37..efaee43b9797 100644 --- a/sdk/resourcemanager/dataprotection/armdataprotection/exportjobs_client.go +++ b/sdk/resourcemanager/dataprotection/armdataprotection/exportjobs_client.go @@ -32,9 +32,9 @@ type ExportJobsClient struct { } // NewExportJobsClient creates a new instance of ExportJobsClient with the specified values. -// subscriptionID - The subscription Id. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewExportJobsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ExportJobsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,10 +57,11 @@ func NewExportJobsClient(subscriptionID string, credential azcore.TokenCredentia // BeginTrigger - Triggers export of jobs and returns an OperationID to track. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-11-01-preview -// resourceGroupName - The name of the resource group where the backup vault is present. -// vaultName - The name of the backup vault. -// options - ExportJobsClientBeginTriggerOptions contains the optional parameters for the ExportJobsClient.BeginTrigger method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - vaultName - The name of the backup vault. +// - options - ExportJobsClientBeginTriggerOptions contains the optional parameters for the ExportJobsClient.BeginTrigger method. func (client *ExportJobsClient) BeginTrigger(ctx context.Context, resourceGroupName string, vaultName string, options *ExportJobsClientBeginTriggerOptions) (*runtime.Poller[ExportJobsClientTriggerResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.trigger(ctx, resourceGroupName, vaultName, options) @@ -77,7 +78,8 @@ func (client *ExportJobsClient) BeginTrigger(ctx context.Context, resourceGroupN // Trigger - Triggers export of jobs and returns an OperationID to track. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-11-01-preview +// +// Generated from API version 2023-01-01 func (client *ExportJobsClient) trigger(ctx context.Context, resourceGroupName string, vaultName string, options *ExportJobsClientBeginTriggerOptions) (*http.Response, error) { req, err := client.triggerCreateRequest(ctx, resourceGroupName, vaultName, options) if err != nil { @@ -96,9 +98,6 @@ func (client *ExportJobsClient) trigger(ctx context.Context, resourceGroupName s // triggerCreateRequest creates the Trigger request. func (client *ExportJobsClient) triggerCreateRequest(ctx context.Context, resourceGroupName string, vaultName string, options *ExportJobsClientBeginTriggerOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/exportBackupJobs" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -113,7 +112,7 @@ func (client *ExportJobsClient) triggerCreateRequest(ctx context.Context, resour return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-11-01-preview") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/dataprotection/armdataprotection/exportjobs_client_example_test.go b/sdk/resourcemanager/dataprotection/armdataprotection/exportjobs_client_example_test.go index ba380f65d753..a776f4571fea 100644 --- a/sdk/resourcemanager/dataprotection/armdataprotection/exportjobs_client_example_test.go +++ b/sdk/resourcemanager/dataprotection/armdataprotection/exportjobs_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armdataprotection_test @@ -16,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dataprotection/armdataprotection/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/JobCRUD/TriggerExportJobs.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3035214dea933cd02b1ecfa982c185a572f84b8a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/JobCRUD/TriggerExportJobs.json func ExampleExportJobsClient_BeginTrigger() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/dataprotection/armdataprotection/exportjobsoperationresult_client.go b/sdk/resourcemanager/dataprotection/armdataprotection/exportjobsoperationresult_client.go index fca360652dae..e2ca5b59e22f 100644 --- a/sdk/resourcemanager/dataprotection/armdataprotection/exportjobsoperationresult_client.go +++ b/sdk/resourcemanager/dataprotection/armdataprotection/exportjobsoperationresult_client.go @@ -32,9 +32,9 @@ type ExportJobsOperationResultClient struct { } // NewExportJobsOperationResultClient creates a new instance of ExportJobsOperationResultClient with the specified values. -// subscriptionID - The subscription Id. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewExportJobsOperationResultClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ExportJobsOperationResultClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -59,12 +59,13 @@ func NewExportJobsOperationResultClient(subscriptionID string, credential azcore // contains URL of a Blob and a SAS key to access the same. The blob contains exported // jobs in JSON serialized format. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-11-01-preview -// resourceGroupName - The name of the resource group where the backup vault is present. -// vaultName - The name of the backup vault. -// operationID - OperationID which represents the export job. -// options - ExportJobsOperationResultClientGetOptions contains the optional parameters for the ExportJobsOperationResultClient.Get -// method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - vaultName - The name of the backup vault. +// - operationID - OperationID which represents the export job. +// - options - ExportJobsOperationResultClientGetOptions contains the optional parameters for the ExportJobsOperationResultClient.Get +// method. func (client *ExportJobsOperationResultClient) Get(ctx context.Context, resourceGroupName string, vaultName string, operationID string, options *ExportJobsOperationResultClientGetOptions) (ExportJobsOperationResultClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, vaultName, operationID, options) if err != nil { @@ -83,9 +84,6 @@ func (client *ExportJobsOperationResultClient) Get(ctx context.Context, resource // getCreateRequest creates the Get request. func (client *ExportJobsOperationResultClient) getCreateRequest(ctx context.Context, resourceGroupName string, vaultName string, operationID string, options *ExportJobsOperationResultClientGetOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupJobs/operations/{operationId}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -104,7 +102,7 @@ func (client *ExportJobsOperationResultClient) getCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-11-01-preview") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/dataprotection/armdataprotection/exportjobsoperationresult_client_example_test.go b/sdk/resourcemanager/dataprotection/armdataprotection/exportjobsoperationresult_client_example_test.go index 8e612e67cf23..87addde525d9 100644 --- a/sdk/resourcemanager/dataprotection/armdataprotection/exportjobsoperationresult_client_example_test.go +++ b/sdk/resourcemanager/dataprotection/armdataprotection/exportjobsoperationresult_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armdataprotection_test @@ -16,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dataprotection/armdataprotection/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/JobCRUD/GetExportJobsOperationResult.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3035214dea933cd02b1ecfa982c185a572f84b8a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/JobCRUD/GetExportJobsOperationResult.json func ExampleExportJobsOperationResultClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -31,6 +32,13 @@ func ExampleExportJobsOperationResultClient_Get() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.ExportJobsResult = armdataprotection.ExportJobsResult{ + // BlobSasKey: to.Ptr("someKey"), + // BlobURL: to.Ptr("https://azureblob.blob.core.windows.net/reportcontainer/exportjobsreport00000000-0000-0000-0000-000000000000"), + // ExcelFileBlobSasKey: to.Ptr("someKey"), + // ExcelFileBlobURL: to.Ptr("https://azureblob.blob.core.windows.net/reportcontainer/exportjobsreport00000000-0000-0000-0000-000000000000_ExcelFile.xlsx"), + // } } diff --git a/sdk/resourcemanager/dataprotection/armdataprotection/go.mod b/sdk/resourcemanager/dataprotection/armdataprotection/go.mod index 076a3c9ba2ac..263649c906e0 100644 --- a/sdk/resourcemanager/dataprotection/armdataprotection/go.mod +++ b/sdk/resourcemanager/dataprotection/armdataprotection/go.mod @@ -4,12 +4,12 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.0.0 - github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.0 + github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.1 ) require ( github.com/Azure/azure-sdk-for-go/sdk/internal v1.0.0 // indirect - github.com/AzureAD/microsoft-authentication-library-for-go v0.7.0 // indirect + github.com/AzureAD/microsoft-authentication-library-for-go v0.8.1 // indirect github.com/golang-jwt/jwt/v4 v4.4.2 // indirect github.com/google/uuid v1.1.1 // indirect github.com/kylelemons/godebug v1.1.0 // indirect diff --git a/sdk/resourcemanager/dataprotection/armdataprotection/go.sum b/sdk/resourcemanager/dataprotection/armdataprotection/go.sum index 8c0539b73123..67cfef6bdf6e 100644 --- a/sdk/resourcemanager/dataprotection/armdataprotection/go.sum +++ b/sdk/resourcemanager/dataprotection/armdataprotection/go.sum @@ -1,11 +1,11 @@ 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.2.0 h1:t/W5MYAuQy81cvM8VUNfRLzhtKpXhVUAN7Cd7KVbTyc= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.0/go.mod h1:NBanQUfSWiWn3QEpWDTCU0IjBECKOYvl2R8xdRtMtiM= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.1 h1:T8quHYlUGyb/oqtSTwqlCr1ilJHrDv+ZtpSfo+hm1BU= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.1/go.mod h1:gLa1CL2RNE4s7M3yopJ/p0iq5DdY6Yv5ZUt9MTRZOQM= 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.7.0 h1:VgSJlZH5u0k2qxSpqyghcFQKmvYckj46uymKK5XzkBM= -github.com/AzureAD/microsoft-authentication-library-for-go v0.7.0/go.mod h1:BDJ5qMFKx9DugEg3+uQSDCdbYPr5s9vBTrL9P8TpqOU= +github.com/AzureAD/microsoft-authentication-library-for-go v0.8.1 h1:oPdPEZFSbl7oSPEAIPMPBMUmiL+mqgzBJwM/9qYcwNg= +github.com/AzureAD/microsoft-authentication-library-for-go v0.8.1/go.mod h1:4qFor3D/HDsvBME35Xy9rwW9DecL+M2sNw1ybjPtwA0= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/dnaeon/go-vcr v1.1.0 h1:ReYa/UBrRyQdant9B4fNHGoCNKw6qh6P0fsdGmZpR7c= github.com/golang-jwt/jwt/v4 v4.4.2 h1:rcc4lwaZgFMCZ5jxF9ABolDcIHdBytAFgqFPbSJQAYs= diff --git a/sdk/resourcemanager/dataprotection/armdataprotection/jobs_client.go b/sdk/resourcemanager/dataprotection/armdataprotection/jobs_client.go index eaa3d890fddd..59990c50b880 100644 --- a/sdk/resourcemanager/dataprotection/armdataprotection/jobs_client.go +++ b/sdk/resourcemanager/dataprotection/armdataprotection/jobs_client.go @@ -32,9 +32,9 @@ type JobsClient struct { } // NewJobsClient creates a new instance of JobsClient with the specified values. -// subscriptionID - The subscription Id. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewJobsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*JobsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,11 +57,12 @@ func NewJobsClient(subscriptionID string, credential azcore.TokenCredential, opt // Get - Gets a job with id in a backup vault // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-11-01-preview -// resourceGroupName - The name of the resource group where the backup vault is present. -// vaultName - The name of the backup vault. -// jobID - The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). -// options - JobsClientGetOptions contains the optional parameters for the JobsClient.Get method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - vaultName - The name of the backup vault. +// - jobID - The Job ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). +// - options - JobsClientGetOptions contains the optional parameters for the JobsClient.Get method. func (client *JobsClient) Get(ctx context.Context, resourceGroupName string, vaultName string, jobID string, options *JobsClientGetOptions) (JobsClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, vaultName, jobID, options) if err != nil { @@ -80,9 +81,6 @@ func (client *JobsClient) Get(ctx context.Context, resourceGroupName string, vau // getCreateRequest creates the Get request. func (client *JobsClient) getCreateRequest(ctx context.Context, resourceGroupName string, vaultName string, jobID string, options *JobsClientGetOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupJobs/{jobId}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -101,7 +99,7 @@ func (client *JobsClient) getCreateRequest(ctx context.Context, resourceGroupNam return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-11-01-preview") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -117,10 +115,11 @@ func (client *JobsClient) getHandleResponse(resp *http.Response) (JobsClientGetR } // NewListPager - Returns list of jobs belonging to a backup vault -// Generated from API version 2022-11-01-preview -// resourceGroupName - The name of the resource group where the backup vault is present. -// vaultName - The name of the backup vault. -// options - JobsClientListOptions contains the optional parameters for the JobsClient.List method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - vaultName - The name of the backup vault. +// - options - JobsClientListOptions contains the optional parameters for the JobsClient.NewListPager method. func (client *JobsClient) NewListPager(resourceGroupName string, vaultName string, options *JobsClientListOptions) *runtime.Pager[JobsClientListResponse] { return runtime.NewPager(runtime.PagingHandler[JobsClientListResponse]{ More: func(page JobsClientListResponse) bool { @@ -152,9 +151,6 @@ func (client *JobsClient) NewListPager(resourceGroupName string, vaultName strin // listCreateRequest creates the List request. func (client *JobsClient) listCreateRequest(ctx context.Context, resourceGroupName string, vaultName string, options *JobsClientListOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupJobs" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -169,7 +165,7 @@ func (client *JobsClient) listCreateRequest(ctx context.Context, resourceGroupNa return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-11-01-preview") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/dataprotection/armdataprotection/jobs_client_example_test.go b/sdk/resourcemanager/dataprotection/armdataprotection/jobs_client_example_test.go index 0a0ebbb49af2..3067a997739e 100644 --- a/sdk/resourcemanager/dataprotection/armdataprotection/jobs_client_example_test.go +++ b/sdk/resourcemanager/dataprotection/armdataprotection/jobs_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armdataprotection_test @@ -16,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dataprotection/armdataprotection/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/JobCRUD/ListJobs.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3035214dea933cd02b1ecfa982c185a572f84b8a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/JobCRUD/ListJobs.json func ExampleJobsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -29,18 +30,143 @@ func ExampleJobsClient_NewListPager() { } pager := client.NewListPager("BugBash1", "BugBashVaultForCCYv11", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.AzureBackupJobResourceList = armdataprotection.AzureBackupJobResourceList{ + // Value: []*armdataprotection.AzureBackupJobResource{ + // { + // Name: to.Ptr("8989416e-7573-4836-8cf1-0e90954f1002"), + // Type: to.Ptr("Microsoft.DataProtection/Backupvaults/backupJobs"), + // ID: to.Ptr("/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BugBash1/providers/Microsoft.DataProtection/Backupvaults/BugBashVaultForCCYv11/backupJobs/8989416e-7573-4836-8cf1-0e90954f1002"), + // Properties: &armdataprotection.AzureBackupJob{ + // ActivityID: to.Ptr("932925c4-3d81-4550-8105-c7f7b0a934c5"), + // BackupInstanceFriendlyName: to.Ptr("mabtestingccybasicv11\\bugbashdb4"), + // BackupInstanceID: to.Ptr("/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BugBash1/providers/Microsoft.DataProtection/backupVaults/BugBashVaultForCCYv11/backupInstances/3048870f-b1b7-44c4-b078-368da3fd000e"), + // DataSourceID: to.Ptr("/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/DppPostgresTestingCcy/providers/Microsoft.DBforPostgreSQL/servers/mabtestingccybasicv11/databases/bugbashdb4"), + // DataSourceLocation: to.Ptr("centraluseuap"), + // DataSourceName: to.Ptr("bugbashdb4"), + // DataSourceSetName: to.Ptr("mabtestingccybasicv11"), + // DataSourceType: to.Ptr("Microsoft.DBforPostgreSQL/servers/databases"), + // Duration: to.Ptr("00:00:00"), + // IsUserTriggered: to.Ptr(false), + // Operation: to.Ptr("Backup"), + // OperationCategory: to.Ptr("Backup"), + // PolicyID: to.Ptr("/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BugBash1/providers/Microsoft.DataProtection/backupVaults/BugBashVaultForCCYv11/backupPolicies/jakavetPolicy2"), + // PolicyName: to.Ptr("jakavetPolicy2"), + // ProgressEnabled: to.Ptr(false), + // SourceResourceGroup: to.Ptr("DppPostgresTestingCcy"), + // SourceSubscriptionID: to.Ptr("62b829ee-7936-40c9-a1c9-47a93f9f3965"), + // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-16T05:00:08.1746833Z"); return t}()), + // Status: to.Ptr("Started"), + // SubscriptionID: to.Ptr("62b829ee-7936-40c9-a1c9-47a93f9f3965"), + // SupportedActions: []*string{ + // }, + // VaultName: to.Ptr("BugBashVaultForCCYv11"), + // }, + // }, + // { + // Name: to.Ptr("ad218c05-242a-47c2-b7b7-c16bd0f8870c"), + // Type: to.Ptr("Microsoft.DataProtection/Backupvaults/backupJobs"), + // ID: to.Ptr("/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BugBash1/providers/Microsoft.DataProtection/Backupvaults/BugBashVaultForCCYv11/backupJobs/ad218c05-242a-47c2-b7b7-c16bd0f8870c"), + // Properties: &armdataprotection.AzureBackupJob{ + // ActivityID: to.Ptr("b4f32e03-ded0-46fc-9afc-91853878efcd"), + // BackupInstanceFriendlyName: to.Ptr("mabtestingccybasicv11\\bugbashdb5"), + // BackupInstanceID: to.Ptr("/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BugBash1/providers/Microsoft.DataProtection/backupVaults/BugBashVaultForCCYv11/backupInstances/943c60db-c033-4d93-bb00-66048474e00e"), + // DataSourceID: to.Ptr("/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/DppPostgresTestingCcy/providers/Microsoft.DBforPostgreSQL/servers/mabtestingccybasicv11/databases/bugbashdb5"), + // DataSourceLocation: to.Ptr("centraluseuap"), + // DataSourceName: to.Ptr("bugbashdb5"), + // DataSourceSetName: to.Ptr("mabtestingccybasicv11"), + // DataSourceType: to.Ptr("Microsoft.DBforPostgreSQL/servers/databases"), + // Duration: to.Ptr("00:00:00"), + // IsUserTriggered: to.Ptr(false), + // Operation: to.Ptr("Backup"), + // OperationCategory: to.Ptr("Backup"), + // PolicyID: to.Ptr("/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BugBash1/providers/Microsoft.DataProtection/backupVaults/BugBashVaultForCCYv11/backupPolicies/jakavetPolicy3"), + // PolicyName: to.Ptr("jakavetPolicy3"), + // ProgressEnabled: to.Ptr(false), + // SourceResourceGroup: to.Ptr("DppPostgresTestingCcy"), + // SourceSubscriptionID: to.Ptr("62b829ee-7936-40c9-a1c9-47a93f9f3965"), + // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-16T18:00:03.6660733Z"); return t}()), + // Status: to.Ptr("Started"), + // SubscriptionID: to.Ptr("62b829ee-7936-40c9-a1c9-47a93f9f3965"), + // SupportedActions: []*string{ + // }, + // VaultName: to.Ptr("BugBashVaultForCCYv11"), + // }, + // }, + // { + // Name: to.Ptr("3c60cb49-63e8-4b21-b9bd-26277b3fdfae"), + // Type: to.Ptr("Microsoft.DataProtection/Backupvaults/backupJobs"), + // ID: to.Ptr("/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BugBash1/providers/Microsoft.DataProtection/Backupvaults/BugBashVaultForCCYv11/backupJobs/3c60cb49-63e8-4b21-b9bd-26277b3fdfae"), + // Properties: &armdataprotection.AzureBackupJob{ + // ActivityID: to.Ptr("c4344fb4-7c11-43a4-8307-7ae7c7fb09b9"), + // BackupInstanceFriendlyName: to.Ptr("mabtestingccybasicv11\\bugbashdb2"), + // BackupInstanceID: to.Ptr("/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BugBash1/providers/Microsoft.DataProtection/backupVaults/BugBashVaultForCCYv11/backupInstances/28460a9d-707a-45f3-ace6-b16284c2900e"), + // DataSourceID: to.Ptr("/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/DppPostgresTestingCcy/providers/Microsoft.DBforPostgreSQL/servers/mabtestingccybasicv11/databases/bugbashdb2"), + // DataSourceLocation: to.Ptr("centraluseuap"), + // DataSourceName: to.Ptr("bugbashdb2"), + // DataSourceSetName: to.Ptr("mabtestingccybasicv11"), + // DataSourceType: to.Ptr("Microsoft.DBforPostgreSQL/servers/databases"), + // Duration: to.Ptr("00:00:00"), + // IsUserTriggered: to.Ptr(false), + // Operation: to.Ptr("Backup"), + // OperationCategory: to.Ptr("Backup"), + // PolicyID: to.Ptr("/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BugBash1/providers/Microsoft.DataProtection/backupVaults/BugBashVaultForCCYv11/backupPolicies/jakavetdailypolicy"), + // PolicyName: to.Ptr("jakavetdailypolicy"), + // ProgressEnabled: to.Ptr(false), + // SourceResourceGroup: to.Ptr("DppPostgresTestingCcy"), + // SourceSubscriptionID: to.Ptr("62b829ee-7936-40c9-a1c9-47a93f9f3965"), + // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-17T03:00:03.7604146Z"); return t}()), + // Status: to.Ptr("Started"), + // SubscriptionID: to.Ptr("62b829ee-7936-40c9-a1c9-47a93f9f3965"), + // SupportedActions: []*string{ + // }, + // VaultName: to.Ptr("BugBashVaultForCCYv11"), + // }, + // }, + // { + // Name: to.Ptr("43252662-1b43-44fd-a856-0055665cb097"), + // Type: to.Ptr("Microsoft.DataProtection/Backupvaults/backupJobs"), + // ID: to.Ptr("/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BugBash1/providers/Microsoft.DataProtection/Backupvaults/BugBashVaultForCCYv11/backupJobs/43252662-1b43-44fd-a856-0055665cb097"), + // Properties: &armdataprotection.AzureBackupJob{ + // ActivityID: to.Ptr("94052cf1-a47f-4c1b-93e7-79e07b2bd008-Tue Mar 17 2021 11:11:48 GMT+0530 (India Standard Time)-Ibz"), + // BackupInstanceFriendlyName: to.Ptr("mabtestingccybasicv11\\bugbashdb3"), + // BackupInstanceID: to.Ptr("/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BugBash1/providers/Microsoft.DataProtection/backupVaults/BugBashVaultForCCYv11/backupInstances/0b247869-b8be-4885-b832-8ac4cdf5b00e"), + // DataSourceID: to.Ptr("/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/DppPostgresTestingCcy/providers/Microsoft.DBforPostgreSQL/servers/mabtestingccybasicv11/databases/bugbashdb3"), + // DataSourceLocation: to.Ptr("centraluseuap"), + // DataSourceName: to.Ptr("bugbashdb3"), + // DataSourceSetName: to.Ptr("mabtestingccybasicv11"), + // DataSourceType: to.Ptr("Microsoft.DBforPostgreSQL/servers/databases"), + // Duration: to.Ptr("00:02:11.9724387"), + // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-17T11:14:02.5319646Z"); return t}()), + // IsUserTriggered: to.Ptr(true), + // Operation: to.Ptr("Backup"), + // OperationCategory: to.Ptr("Backup"), + // PolicyID: to.Ptr("/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BugBash1/providers/Microsoft.DataProtection/backupVaults/BugBashVaultForCCYv11/backupPolicies/jakavetPolicy1"), + // PolicyName: to.Ptr("jakavetPolicy1"), + // ProgressEnabled: to.Ptr(false), + // SourceResourceGroup: to.Ptr("DppPostgresTestingCcy"), + // SourceSubscriptionID: to.Ptr("62b829ee-7936-40c9-a1c9-47a93f9f3965"), + // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-17T11:11:50.5595259Z"); return t}()), + // Status: to.Ptr("Succeeded"), + // SubscriptionID: to.Ptr("62b829ee-7936-40c9-a1c9-47a93f9f3965"), + // SupportedActions: []*string{ + // to.Ptr("")}, + // VaultName: to.Ptr("BugBashVaultForCCYv11"), + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/JobCRUD/GetJob.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3035214dea933cd02b1ecfa982c185a572f84b8a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/JobCRUD/GetJob.json func ExampleJobsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -55,6 +181,50 @@ func ExampleJobsClient_Get() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.AzureBackupJobResource = armdataprotection.AzureBackupJobResource{ + // Name: to.Ptr("3c60cb49-63e8-4b21-b9bd-26277b3fdfae"), + // Type: to.Ptr("Microsoft.DataProtection/Backupvaults/backupJobs"), + // ID: to.Ptr("/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BugBash1/providers/Microsoft.DataProtection/Backupvaults/BugBashVaultForCCYv11/backupJobs/3c60cb49-63e8-4b21-b9bd-26277b3fdfae"), + // Properties: &armdataprotection.AzureBackupJob{ + // ActivityID: to.Ptr("c4344fb4-7c11-43a4-8307-7ae7c7fb09b9"), + // BackupInstanceFriendlyName: to.Ptr("mabtestingccybasicv11\\bugbashdb2"), + // BackupInstanceID: to.Ptr("/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BugBash1/providers/Microsoft.DataProtection/backupVaults/BugBashVaultForCCYv11/backupInstances/28460a9d-707a-45f3-ace6-b16284c2900e"), + // DataSourceID: to.Ptr("/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/DppPostgresTestingCcy/providers/Microsoft.DBforPostgreSQL/servers/mabtestingccybasicv11/databases/bugbashdb2"), + // DataSourceLocation: to.Ptr("centraluseuap"), + // DataSourceName: to.Ptr("bugbashdb2"), + // DataSourceSetName: to.Ptr("mabtestingccybasicv11"), + // DataSourceType: to.Ptr("Microsoft.DBforPostgreSQL/servers/databases"), + // Duration: to.Ptr("00:00:00"), + // ExtendedInfo: &armdataprotection.JobExtendedInfo{ + // AdditionalDetails: map[string]*string{ + // "PolicyRuleName": to.Ptr("BackupWeekly"), + // "RetentionTag": to.Ptr("Default"), + // "TaskId": to.Ptr("c4344fb4-7c11-43a4-8307-7ae7c7fb09b9"), + // }, + // SubTasks: []*armdataprotection.JobSubTask{ + // { + // TaskID: to.Ptr[int32](1), + // TaskName: to.Ptr("Trigger Backup"), + // TaskStatus: to.Ptr("Started"), + // }}, + // }, + // IsUserTriggered: to.Ptr(false), + // Operation: to.Ptr("Backup"), + // OperationCategory: to.Ptr("Backup"), + // PolicyID: to.Ptr("/subscriptions/62b829ee-7936-40c9-a1c9-47a93f9f3965/resourceGroups/BugBash1/providers/Microsoft.DataProtection/backupVaults/BugBashVaultForCCYv11/backupPolicies/jakavetdailypolicy"), + // PolicyName: to.Ptr("jakavetdailypolicy"), + // ProgressEnabled: to.Ptr(false), + // SourceResourceGroup: to.Ptr("DppPostgresTestingCcy"), + // SourceSubscriptionID: to.Ptr("62b829ee-7936-40c9-a1c9-47a93f9f3965"), + // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-17T03:00:03.7604146Z"); return t}()), + // Status: to.Ptr("Started"), + // SubscriptionID: to.Ptr("62b829ee-7936-40c9-a1c9-47a93f9f3965"), + // SupportedActions: []*string{ + // }, + // VaultName: to.Ptr("BugBashVaultForCCYv11"), + // }, + // } } diff --git a/sdk/resourcemanager/dataprotection/armdataprotection/models.go b/sdk/resourcemanager/dataprotection/armdataprotection/models.go index 3bbf0974f8c3..a22e69738043 100644 --- a/sdk/resourcemanager/dataprotection/armdataprotection/models.go +++ b/sdk/resourcemanager/dataprotection/armdataprotection/models.go @@ -97,6 +97,9 @@ type AzureBackupDiscreteRecoveryPoint struct { RecoveryPointType *string `json:"recoveryPointType,omitempty"` RetentionTagName *string `json:"retentionTagName,omitempty"` RetentionTagVersion *string `json:"retentionTagVersion,omitempty"` + + // READ-ONLY + ExpiryTime *time.Time `json:"expiryTime,omitempty" azure:"ro"` } // GetAzureBackupRecoveryPoint implements the AzureBackupRecoveryPointClassification interface for type AzureBackupDiscreteRecoveryPoint. @@ -766,17 +769,11 @@ type BackupInstancesClientGetOptions struct { // placeholder for future optional parameters } -// BackupInstancesClientListOptions contains the optional parameters for the BackupInstancesClient.List method. +// BackupInstancesClientListOptions contains the optional parameters for the BackupInstancesClient.NewListPager method. type BackupInstancesClientListOptions struct { // placeholder for future optional parameters } -// BackupInstancesExtensionRoutingClientListOptions contains the optional parameters for the BackupInstancesExtensionRoutingClient.List -// method. -type BackupInstancesExtensionRoutingClientListOptions struct { - // placeholder for future optional parameters -} - // BackupParametersClassification provides polymorphic access to related types. // Call the interface's GetBackupParameters() method to access the common type. // Use a type switch to determine the concrete type. The possible types are: @@ -811,7 +808,7 @@ type BackupPoliciesClientGetOptions struct { // placeholder for future optional parameters } -// BackupPoliciesClientListOptions contains the optional parameters for the BackupPoliciesClient.List method. +// BackupPoliciesClientListOptions contains the optional parameters for the BackupPoliciesClient.NewListPager method. type BackupPoliciesClientListOptions struct { // placeholder for future optional parameters } @@ -850,6 +847,9 @@ type BackupVault struct { // REQUIRED; Storage Settings StorageSettings []*StorageSetting `json:"storageSettings,omitempty"` + // Feature Settings + FeatureSettings *FeatureSettings `json:"featureSettings,omitempty"` + // Monitoring Settings MonitoringSettings *MonitoringSettings `json:"monitoringSettings,omitempty"` @@ -921,6 +921,12 @@ type BackupVaultsClientBeginCreateOrUpdateOptions struct { ResumeToken string } +// BackupVaultsClientBeginDeleteOptions contains the optional parameters for the BackupVaultsClient.BeginDelete method. +type BackupVaultsClientBeginDeleteOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + // BackupVaultsClientBeginUpdateOptions contains the optional parameters for the BackupVaultsClient.BeginUpdate method. type BackupVaultsClientBeginUpdateOptions struct { // Resumes the LRO from the provided token. @@ -933,18 +939,13 @@ type BackupVaultsClientCheckNameAvailabilityOptions struct { // placeholder for future optional parameters } -// BackupVaultsClientDeleteOptions contains the optional parameters for the BackupVaultsClient.Delete method. -type BackupVaultsClientDeleteOptions struct { - // placeholder for future optional parameters -} - -// BackupVaultsClientGetInResourceGroupOptions contains the optional parameters for the BackupVaultsClient.GetInResourceGroup +// BackupVaultsClientGetInResourceGroupOptions contains the optional parameters for the BackupVaultsClient.NewGetInResourceGroupPager // method. type BackupVaultsClientGetInResourceGroupOptions struct { // placeholder for future optional parameters } -// BackupVaultsClientGetInSubscriptionOptions contains the optional parameters for the BackupVaultsClient.GetInSubscription +// BackupVaultsClientGetInSubscriptionOptions contains the optional parameters for the BackupVaultsClient.NewGetInSubscriptionPager // method. type BackupVaultsClientGetInSubscriptionOptions struct { // placeholder for future optional parameters @@ -1163,6 +1164,12 @@ type CopyOption struct { // GetCopyOption implements the CopyOptionClassification interface for type CopyOption. func (c *CopyOption) GetCopyOption() *CopyOption { return c } +// CrossSubscriptionRestoreSettings - CrossSubscriptionRestore Settings +type CrossSubscriptionRestoreSettings struct { + // CrossSubscriptionRestore state + State *CrossSubscriptionRestoreState `json:"state,omitempty"` +} + // CustomCopyOption - Duration based custom options to copy type CustomCopyOption struct { // REQUIRED; Type of the specific object - used for deserializing @@ -1367,7 +1374,8 @@ type DeletedBackupInstancesClientGetOptions struct { // placeholder for future optional parameters } -// DeletedBackupInstancesClientListOptions contains the optional parameters for the DeletedBackupInstancesClient.List method. +// DeletedBackupInstancesClientListOptions contains the optional parameters for the DeletedBackupInstancesClient.NewListPager +// method. type DeletedBackupInstancesClientListOptions struct { // placeholder for future optional parameters } @@ -1408,6 +1416,29 @@ type DppBaseResourceList struct { Value []*DppBaseResource `json:"value,omitempty"` } +type DppBaseTrackedResource struct { + // Optional ETag. + ETag *string `json:"eTag,omitempty"` + + // Resource location. + Location *string `json:"location,omitempty"` + + // Resource tags. + Tags map[string]*string `json:"tags,omitempty"` + + // READ-ONLY; Resource Id represents the complete path to the resource. + ID *string `json:"id,omitempty" azure:"ro"` + + // READ-ONLY; Resource name associated with the resource. + Name *string `json:"name,omitempty" azure:"ro"` + + // READ-ONLY; Metadata pertaining to creation and last modification of the resource. + SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + + // READ-ONLY; Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/… + Type *string `json:"type,omitempty" azure:"ro"` +} + // DppIdentityDetails - Identity details type DppIdentityDetails struct { // The identityType which can be either SystemAssigned or None @@ -1453,32 +1484,6 @@ type DppResource struct { Type *string `json:"type,omitempty" azure:"ro"` } -// DppResourceGuardProxyClientDeleteOptions contains the optional parameters for the DppResourceGuardProxyClient.Delete method. -type DppResourceGuardProxyClientDeleteOptions struct { - // placeholder for future optional parameters -} - -// DppResourceGuardProxyClientGetOptions contains the optional parameters for the DppResourceGuardProxyClient.Get method. -type DppResourceGuardProxyClientGetOptions struct { - // placeholder for future optional parameters -} - -// DppResourceGuardProxyClientListOptions contains the optional parameters for the DppResourceGuardProxyClient.List method. -type DppResourceGuardProxyClientListOptions struct { - // placeholder for future optional parameters -} - -// DppResourceGuardProxyClientPutOptions contains the optional parameters for the DppResourceGuardProxyClient.Put method. -type DppResourceGuardProxyClientPutOptions struct { - // placeholder for future optional parameters -} - -// DppResourceGuardProxyClientUnlockDeleteOptions contains the optional parameters for the DppResourceGuardProxyClient.UnlockDelete -// method. -type DppResourceGuardProxyClientUnlockDeleteOptions struct { - // placeholder for future optional parameters -} - // DppResourceList - ListResource type DppResourceList struct { // The uri to fetch the next page of resources. Call ListNext() fetches next page of resources. @@ -1551,7 +1556,7 @@ type Error struct { // ErrorAdditionalInfo - The resource management error additional info. type ErrorAdditionalInfo struct { // READ-ONLY; The additional info. - Info interface{} `json:"info,omitempty" azure:"ro"` + Info any `json:"info,omitempty" azure:"ro"` // READ-ONLY; The additional info type. Type *string `json:"type,omitempty" azure:"ro"` @@ -1584,6 +1589,12 @@ type ExportJobsResult struct { ExcelFileBlobURL *string `json:"excelFileBlobUrl,omitempty" azure:"ro"` } +// FeatureSettings - Class containing feature settings of vault +type FeatureSettings struct { + // CrossSubscriptionRestore Settings + CrossSubscriptionRestoreSettings *CrossSubscriptionRestoreSettings `json:"crossSubscriptionRestoreSettings,omitempty"` +} + // FeatureValidationRequest - Base class for feature object type FeatureValidationRequest struct { // REQUIRED; Type of the specific object - used for deserializing @@ -1815,7 +1826,7 @@ type JobsClientGetOptions struct { // placeholder for future optional parameters } -// JobsClientListOptions contains the optional parameters for the JobsClient.List method. +// JobsClientListOptions contains the optional parameters for the JobsClient.NewListPager method. type JobsClientListOptions struct { // placeholder for future optional parameters } @@ -1887,7 +1898,7 @@ type KubernetesClusterRestoreCriteria struct { // Gets or sets the Namespace Mappings property. This property sets if namespace needs to be change during restore. NamespaceMappings map[string]*string `json:"namespaceMappings,omitempty"` - // Gets or sets the PV Restore Mode property. This property sets whether volumes needs to be restored. + // Gets or sets the PV (Persistent Volume) Restore Mode property. This property sets whether volumes needs to be restored. PersistentVolumeRestoreMode *PersistentVolumeRestoreMode `json:"persistentVolumeRestoreMode,omitempty"` } @@ -2022,13 +2033,16 @@ type OperationStatusResourceGroupContextClientGetOptions struct { // placeholder for future optional parameters } -// OperationsClientListOptions contains the optional parameters for the OperationsClient.List method. +// OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method. type OperationsClientListOptions struct { // placeholder for future optional parameters } // PatchBackupVaultInput - Backup Vault Contract for Patch Backup Vault API. type PatchBackupVaultInput struct { + // Feature Settings + FeatureSettings *FeatureSettings `json:"featureSettings,omitempty"` + // Monitoring Settings MonitoringSettings *MonitoringSettings `json:"monitoringSettings,omitempty"` @@ -2036,6 +2050,12 @@ type PatchBackupVaultInput struct { SecuritySettings *SecuritySettings `json:"securitySettings,omitempty"` } +// PatchResourceGuardInput - Patch Request content for Microsoft.DataProtection Resource Guard resources +type PatchResourceGuardInput struct { + // Resource Guard tags. + Tags map[string]*string `json:"tags,omitempty"` +} + // PatchResourceRequestInput - Patch Request content for Microsoft.DataProtection resources type PatchResourceRequestInput struct { // Input Managed Identity Details @@ -2119,7 +2139,7 @@ type RecoveryPointsClientGetOptions struct { // placeholder for future optional parameters } -// RecoveryPointsClientListOptions contains the optional parameters for the RecoveryPointsClient.List method. +// RecoveryPointsClientListOptions contains the optional parameters for the RecoveryPointsClient.NewListPager method. type RecoveryPointsClientListOptions struct { // OData filter options. Filter *string @@ -2147,7 +2167,7 @@ type ResourceGuard struct { Description *string `json:"description,omitempty" azure:"ro"` // READ-ONLY; Provisioning state of the BackupVault resource - ProvisioningState *ResourceGuardProvisioningState `json:"provisioningState,omitempty" azure:"ro"` + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; {readonly} List of operation details those are protected by the ResourceGuard resource ResourceGuardOperations []*ResourceGuardOperation `json:"resourceGuardOperations,omitempty" azure:"ro"` @@ -2162,51 +2182,10 @@ type ResourceGuardOperation struct { VaultCriticalOperation *string `json:"vaultCriticalOperation,omitempty" azure:"ro"` } -type ResourceGuardOperationDetail struct { - DefaultResourceRequest *string `json:"defaultResourceRequest,omitempty"` - VaultCriticalOperation *string `json:"vaultCriticalOperation,omitempty"` -} - -type ResourceGuardProxyBase struct { - Description *string `json:"description,omitempty"` - LastUpdatedTime *string `json:"lastUpdatedTime,omitempty"` - ResourceGuardOperationDetails []*ResourceGuardOperationDetail `json:"resourceGuardOperationDetails,omitempty"` - ResourceGuardResourceID *string `json:"resourceGuardResourceId,omitempty"` -} - -type ResourceGuardProxyBaseResource struct { - // ResourceGuardProxyBaseResource properties - Properties *ResourceGuardProxyBase `json:"properties,omitempty"` - - // READ-ONLY; Resource Id represents the complete path to the resource. - ID *string `json:"id,omitempty" azure:"ro"` - - // READ-ONLY; Resource name associated with the resource. - Name *string `json:"name,omitempty" azure:"ro"` - - // READ-ONLY; Metadata pertaining to creation and last modification of the resource. - SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` - - // READ-ONLY; Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/… - Type *string `json:"type,omitempty" azure:"ro"` -} - -// ResourceGuardProxyBaseResourceList - List of ResourceGuardProxyBase resources -type ResourceGuardProxyBaseResourceList struct { - // The uri to fetch the next page of resources. Call ListNext() fetches next page of resources. - NextLink *string `json:"nextLink,omitempty"` - - // List of resources. - Value []*ResourceGuardProxyBaseResource `json:"value,omitempty"` -} - type ResourceGuardResource struct { // Optional ETag. ETag *string `json:"eTag,omitempty"` - // Input Managed Identity Details - Identity *DppIdentityDetails `json:"identity,omitempty"` - // Resource location. Location *string `json:"location,omitempty"` @@ -2243,7 +2222,7 @@ type ResourceGuardsClientDeleteOptions struct { // placeholder for future optional parameters } -// ResourceGuardsClientGetBackupSecurityPINRequestsObjectsOptions contains the optional parameters for the ResourceGuardsClient.GetBackupSecurityPINRequestsObjects +// ResourceGuardsClientGetBackupSecurityPINRequestsObjectsOptions contains the optional parameters for the ResourceGuardsClient.NewGetBackupSecurityPINRequestsObjectsPager // method. type ResourceGuardsClientGetBackupSecurityPINRequestsObjectsOptions struct { // placeholder for future optional parameters @@ -2285,19 +2264,19 @@ type ResourceGuardsClientGetDefaultUpdateProtectionPolicyRequestsObjectOptions s // placeholder for future optional parameters } -// ResourceGuardsClientGetDeleteProtectedItemRequestsObjectsOptions contains the optional parameters for the ResourceGuardsClient.GetDeleteProtectedItemRequestsObjects +// ResourceGuardsClientGetDeleteProtectedItemRequestsObjectsOptions contains the optional parameters for the ResourceGuardsClient.NewGetDeleteProtectedItemRequestsObjectsPager // method. type ResourceGuardsClientGetDeleteProtectedItemRequestsObjectsOptions struct { // placeholder for future optional parameters } -// ResourceGuardsClientGetDeleteResourceGuardProxyRequestsObjectsOptions contains the optional parameters for the ResourceGuardsClient.GetDeleteResourceGuardProxyRequestsObjects +// ResourceGuardsClientGetDeleteResourceGuardProxyRequestsObjectsOptions contains the optional parameters for the ResourceGuardsClient.NewGetDeleteResourceGuardProxyRequestsObjectsPager // method. type ResourceGuardsClientGetDeleteResourceGuardProxyRequestsObjectsOptions struct { // placeholder for future optional parameters } -// ResourceGuardsClientGetDisableSoftDeleteRequestsObjectsOptions contains the optional parameters for the ResourceGuardsClient.GetDisableSoftDeleteRequestsObjects +// ResourceGuardsClientGetDisableSoftDeleteRequestsObjectsOptions contains the optional parameters for the ResourceGuardsClient.NewGetDisableSoftDeleteRequestsObjectsPager // method. type ResourceGuardsClientGetDisableSoftDeleteRequestsObjectsOptions struct { // placeholder for future optional parameters @@ -2308,25 +2287,25 @@ type ResourceGuardsClientGetOptions struct { // placeholder for future optional parameters } -// ResourceGuardsClientGetResourcesInResourceGroupOptions contains the optional parameters for the ResourceGuardsClient.GetResourcesInResourceGroup +// ResourceGuardsClientGetResourcesInResourceGroupOptions contains the optional parameters for the ResourceGuardsClient.NewGetResourcesInResourceGroupPager // method. type ResourceGuardsClientGetResourcesInResourceGroupOptions struct { // placeholder for future optional parameters } -// ResourceGuardsClientGetResourcesInSubscriptionOptions contains the optional parameters for the ResourceGuardsClient.GetResourcesInSubscription +// ResourceGuardsClientGetResourcesInSubscriptionOptions contains the optional parameters for the ResourceGuardsClient.NewGetResourcesInSubscriptionPager // method. type ResourceGuardsClientGetResourcesInSubscriptionOptions struct { // placeholder for future optional parameters } -// ResourceGuardsClientGetUpdateProtectedItemRequestsObjectsOptions contains the optional parameters for the ResourceGuardsClient.GetUpdateProtectedItemRequestsObjects +// ResourceGuardsClientGetUpdateProtectedItemRequestsObjectsOptions contains the optional parameters for the ResourceGuardsClient.NewGetUpdateProtectedItemRequestsObjectsPager // method. type ResourceGuardsClientGetUpdateProtectedItemRequestsObjectsOptions struct { // placeholder for future optional parameters } -// ResourceGuardsClientGetUpdateProtectionPolicyRequestsObjectsOptions contains the optional parameters for the ResourceGuardsClient.GetUpdateProtectionPolicyRequestsObjects +// ResourceGuardsClientGetUpdateProtectionPolicyRequestsObjectsOptions contains the optional parameters for the ResourceGuardsClient.NewGetUpdateProtectionPolicyRequestsObjectsPager // method. type ResourceGuardsClientGetUpdateProtectionPolicyRequestsObjectsOptions struct { // placeholder for future optional parameters @@ -2614,7 +2593,7 @@ type SystemData struct { // The type of identity that created the resource. CreatedByType *CreatedByType `json:"createdByType,omitempty"` - // The type of identity that last modified the resource. + // The timestamp of resource last modification (UTC) LastModifiedAt *time.Time `json:"lastModifiedAt,omitempty"` // The identity that last modified the resource. @@ -2659,6 +2638,11 @@ type TargetDetails struct { // REQUIRED; Url denoting the restore destination. It can point to container / file share etc URL *string `json:"url,omitempty"` + + // Full ARM Id denoting the restore destination. It is the ARM Id pointing to container / file share This is optional if the + // target subscription can be identified with the URL field. If not then this is + // needed if CrossSubscriptionRestore field of BackupVault is in any of the disabled states + TargetResourceArmID *string `json:"targetResourceArmId,omitempty"` } // TriggerBackupRequest - Trigger backup request @@ -2685,18 +2669,6 @@ type TriggerContext struct { // GetTriggerContext implements the TriggerContextClassification interface for type TriggerContext. func (t *TriggerContext) GetTriggerContext() *TriggerContext { return t } -// UnlockDeleteRequest - Request body of unlock delete API. -type UnlockDeleteRequest struct { - ResourceGuardOperationRequests []*string `json:"resourceGuardOperationRequests,omitempty"` - ResourceToBeDeleted *string `json:"resourceToBeDeleted,omitempty"` -} - -// UnlockDeleteResponse - Response of Unlock Delete API. -type UnlockDeleteResponse struct { - // This is the time when unlock delete privileges will get expired. - UnlockDeleteExpiryTime *string `json:"unlockDeleteExpiryTime,omitempty"` -} - // UserFacingError - Error object used by layers that have access to localized content, and propagate that to user type UserFacingError struct { // Unique code for this error diff --git a/sdk/resourcemanager/dataprotection/armdataprotection/models_serde.go b/sdk/resourcemanager/dataprotection/armdataprotection/models_serde.go index 70bd127dd835..43fa361ff674 100644 --- a/sdk/resourcemanager/dataprotection/armdataprotection/models_serde.go +++ b/sdk/resourcemanager/dataprotection/armdataprotection/models_serde.go @@ -19,7 +19,7 @@ import ( // MarshalJSON implements the json.Marshaller interface for type AbsoluteDeleteOption. func (a AbsoluteDeleteOption) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "duration", a.Duration) objectMap["objectType"] = "AbsoluteDeleteOption" return json.Marshal(objectMap) @@ -50,7 +50,7 @@ func (a *AbsoluteDeleteOption) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AdHocBackupRuleOptions. func (a AdHocBackupRuleOptions) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "ruleName", a.RuleName) populate(objectMap, "triggerOption", a.TriggerOption) return json.Marshal(objectMap) @@ -81,7 +81,7 @@ func (a *AdHocBackupRuleOptions) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AdhocBackupTriggerOption. func (a AdhocBackupTriggerOption) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "retentionTagOverride", a.RetentionTagOverride) return json.Marshal(objectMap) } @@ -108,7 +108,7 @@ func (a *AdhocBackupTriggerOption) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AdhocBasedTaggingCriteria. func (a AdhocBasedTaggingCriteria) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "tagInfo", a.TagInfo) return json.Marshal(objectMap) } @@ -135,7 +135,7 @@ func (a *AdhocBasedTaggingCriteria) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AdhocBasedTriggerContext. func (a AdhocBasedTriggerContext) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) objectMap["objectType"] = "AdhocBasedTriggerContext" populate(objectMap, "taggingCriteria", a.TaggingCriteria) return json.Marshal(objectMap) @@ -166,7 +166,7 @@ func (a *AdhocBasedTriggerContext) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AuthCredentials. func (a AuthCredentials) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) objectMap["objectType"] = a.ObjectType return json.Marshal(objectMap) } @@ -193,7 +193,8 @@ func (a *AuthCredentials) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureBackupDiscreteRecoveryPoint. func (a AzureBackupDiscreteRecoveryPoint) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) + populateTimeRFC3339(objectMap, "expiryTime", a.ExpiryTime) populate(objectMap, "friendlyName", a.FriendlyName) objectMap["objectType"] = "AzureBackupDiscreteRecoveryPoint" populate(objectMap, "policyName", a.PolicyName) @@ -216,6 +217,9 @@ func (a *AzureBackupDiscreteRecoveryPoint) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { + case "expiryTime": + err = unpopulateTimeRFC3339(val, "ExpiryTime", &a.ExpiryTime) + delete(rawMsg, key) case "friendlyName": err = unpopulate(val, "FriendlyName", &a.FriendlyName) delete(rawMsg, key) @@ -256,7 +260,7 @@ func (a *AzureBackupDiscreteRecoveryPoint) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureBackupFindRestorableTimeRangesRequest. func (a AzureBackupFindRestorableTimeRangesRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "endTime", a.EndTime) populate(objectMap, "sourceDataStoreType", a.SourceDataStoreType) populate(objectMap, "startTime", a.StartTime) @@ -291,7 +295,7 @@ func (a *AzureBackupFindRestorableTimeRangesRequest) UnmarshalJSON(data []byte) // MarshalJSON implements the json.Marshaller interface for type AzureBackupFindRestorableTimeRangesRequestResource. func (a AzureBackupFindRestorableTimeRangesRequestResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "content", a.Content) populate(objectMap, "cultureInfo", a.CultureInfo) populate(objectMap, "httpMethod", a.HTTPMethod) @@ -346,7 +350,7 @@ func (a *AzureBackupFindRestorableTimeRangesRequestResource) UnmarshalJSON(data // MarshalJSON implements the json.Marshaller interface for type AzureBackupFindRestorableTimeRangesResponse. func (a AzureBackupFindRestorableTimeRangesResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "objectType", a.ObjectType) populate(objectMap, "restorableTimeRanges", a.RestorableTimeRanges) return json.Marshal(objectMap) @@ -377,7 +381,7 @@ func (a *AzureBackupFindRestorableTimeRangesResponse) UnmarshalJSON(data []byte) // MarshalJSON implements the json.Marshaller interface for type AzureBackupFindRestorableTimeRangesResponseResource. func (a AzureBackupFindRestorableTimeRangesResponseResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", a.ID) populate(objectMap, "name", a.Name) populate(objectMap, "properties", a.Properties) @@ -420,7 +424,7 @@ func (a *AzureBackupFindRestorableTimeRangesResponseResource) UnmarshalJSON(data // MarshalJSON implements the json.Marshaller interface for type AzureBackupJob. func (a AzureBackupJob) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "activityID", a.ActivityID) populate(objectMap, "backupInstanceFriendlyName", a.BackupInstanceFriendlyName) populate(objectMap, "backupInstanceId", a.BackupInstanceID) @@ -563,7 +567,7 @@ func (a *AzureBackupJob) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureBackupJobResource. func (a AzureBackupJobResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", a.ID) populate(objectMap, "name", a.Name) populate(objectMap, "properties", a.Properties) @@ -606,7 +610,7 @@ func (a *AzureBackupJobResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureBackupJobResourceList. func (a AzureBackupJobResourceList) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", a.NextLink) populate(objectMap, "value", a.Value) return json.Marshal(objectMap) @@ -637,7 +641,7 @@ func (a *AzureBackupJobResourceList) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureBackupParams. func (a AzureBackupParams) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "backupType", a.BackupType) objectMap["objectType"] = "AzureBackupParams" return json.Marshal(objectMap) @@ -668,7 +672,7 @@ func (a *AzureBackupParams) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureBackupRecoveryPoint. func (a AzureBackupRecoveryPoint) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) objectMap["objectType"] = a.ObjectType return json.Marshal(objectMap) } @@ -695,7 +699,7 @@ func (a *AzureBackupRecoveryPoint) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureBackupRecoveryPointBasedRestoreRequest. func (a AzureBackupRecoveryPointBasedRestoreRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) objectMap["objectType"] = "AzureBackupRecoveryPointBasedRestoreRequest" populate(objectMap, "recoveryPointId", a.RecoveryPointID) populate(objectMap, "restoreTargetInfo", a.RestoreTargetInfo) @@ -738,7 +742,7 @@ func (a *AzureBackupRecoveryPointBasedRestoreRequest) UnmarshalJSON(data []byte) // MarshalJSON implements the json.Marshaller interface for type AzureBackupRecoveryPointResource. func (a AzureBackupRecoveryPointResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", a.ID) populate(objectMap, "name", a.Name) populate(objectMap, "properties", a.Properties) @@ -781,7 +785,7 @@ func (a *AzureBackupRecoveryPointResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureBackupRecoveryPointResourceList. func (a AzureBackupRecoveryPointResourceList) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", a.NextLink) populate(objectMap, "value", a.Value) return json.Marshal(objectMap) @@ -812,7 +816,7 @@ func (a *AzureBackupRecoveryPointResourceList) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type AzureBackupRecoveryTimeBasedRestoreRequest. func (a AzureBackupRecoveryTimeBasedRestoreRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) objectMap["objectType"] = "AzureBackupRecoveryTimeBasedRestoreRequest" populate(objectMap, "recoveryPointTime", a.RecoveryPointTime) populate(objectMap, "restoreTargetInfo", a.RestoreTargetInfo) @@ -855,7 +859,7 @@ func (a *AzureBackupRecoveryTimeBasedRestoreRequest) UnmarshalJSON(data []byte) // MarshalJSON implements the json.Marshaller interface for type AzureBackupRehydrationRequest. func (a AzureBackupRehydrationRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "recoveryPointId", a.RecoveryPointID) populate(objectMap, "rehydrationPriority", a.RehydrationPriority) populate(objectMap, "rehydrationRetentionDuration", a.RehydrationRetentionDuration) @@ -890,7 +894,7 @@ func (a *AzureBackupRehydrationRequest) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureBackupRestoreRequest. func (a AzureBackupRestoreRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) objectMap["objectType"] = a.ObjectType populate(objectMap, "restoreTargetInfo", a.RestoreTargetInfo) populate(objectMap, "sourceDataStoreType", a.SourceDataStoreType) @@ -929,7 +933,7 @@ func (a *AzureBackupRestoreRequest) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureBackupRestoreWithRehydrationRequest. func (a AzureBackupRestoreWithRehydrationRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) objectMap["objectType"] = "AzureBackupRestoreWithRehydrationRequest" populate(objectMap, "recoveryPointId", a.RecoveryPointID) populate(objectMap, "rehydrationPriority", a.RehydrationPriority) @@ -980,7 +984,7 @@ func (a *AzureBackupRestoreWithRehydrationRequest) UnmarshalJSON(data []byte) er // MarshalJSON implements the json.Marshaller interface for type AzureBackupRule. func (a AzureBackupRule) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "backupParameters", a.BackupParameters) populate(objectMap, "dataStore", a.DataStore) populate(objectMap, "name", a.Name) @@ -1023,7 +1027,7 @@ func (a *AzureBackupRule) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureMonitorAlertSettings. func (a AzureMonitorAlertSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "alertsForAllJobFailures", a.AlertsForAllJobFailures) return json.Marshal(objectMap) } @@ -1050,7 +1054,7 @@ func (a *AzureMonitorAlertSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureOperationalStoreParameters. func (a AzureOperationalStoreParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dataStoreType", a.DataStoreType) objectMap["objectType"] = "AzureOperationalStoreParameters" populate(objectMap, "resourceGroupId", a.ResourceGroupID) @@ -1085,7 +1089,7 @@ func (a *AzureOperationalStoreParameters) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureRetentionRule. func (a AzureRetentionRule) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "isDefault", a.IsDefault) populate(objectMap, "lifecycles", a.Lifecycles) populate(objectMap, "name", a.Name) @@ -1124,7 +1128,7 @@ func (a *AzureRetentionRule) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type BackupCriteria. func (b BackupCriteria) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) objectMap["objectType"] = b.ObjectType return json.Marshal(objectMap) } @@ -1151,7 +1155,7 @@ func (b *BackupCriteria) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type BackupDatasourceParameters. func (b BackupDatasourceParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) objectMap["objectType"] = b.ObjectType return json.Marshal(objectMap) } @@ -1178,7 +1182,7 @@ func (b *BackupDatasourceParameters) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type BackupInstance. func (b BackupInstance) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "currentProtectionState", b.CurrentProtectionState) populate(objectMap, "dataSourceInfo", b.DataSourceInfo) populate(objectMap, "dataSourceSetInfo", b.DataSourceSetInfo) @@ -1245,7 +1249,7 @@ func (b *BackupInstance) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type BackupInstanceResource. func (b BackupInstanceResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", b.ID) populate(objectMap, "name", b.Name) populate(objectMap, "properties", b.Properties) @@ -1292,7 +1296,7 @@ func (b *BackupInstanceResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type BackupInstanceResourceList. func (b BackupInstanceResourceList) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", b.NextLink) populate(objectMap, "value", b.Value) return json.Marshal(objectMap) @@ -1323,7 +1327,7 @@ func (b *BackupInstanceResourceList) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type BackupParameters. func (b BackupParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) objectMap["objectType"] = b.ObjectType return json.Marshal(objectMap) } @@ -1350,7 +1354,7 @@ func (b *BackupParameters) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type BackupPolicy. func (b BackupPolicy) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "datasourceTypes", b.DatasourceTypes) objectMap["objectType"] = "BackupPolicy" populate(objectMap, "policyRules", b.PolicyRules) @@ -1385,7 +1389,7 @@ func (b *BackupPolicy) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type BackupSchedule. func (b BackupSchedule) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "repeatingTimeIntervals", b.RepeatingTimeIntervals) populate(objectMap, "timeZone", b.TimeZone) return json.Marshal(objectMap) @@ -1416,7 +1420,8 @@ func (b *BackupSchedule) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type BackupVault. func (b BackupVault) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) + populate(objectMap, "featureSettings", b.FeatureSettings) populate(objectMap, "isVaultProtectedByResourceGuard", b.IsVaultProtectedByResourceGuard) populate(objectMap, "monitoringSettings", b.MonitoringSettings) populate(objectMap, "provisioningState", b.ProvisioningState) @@ -1436,6 +1441,9 @@ func (b *BackupVault) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { + case "featureSettings": + err = unpopulate(val, "FeatureSettings", &b.FeatureSettings) + delete(rawMsg, key) case "isVaultProtectedByResourceGuard": err = unpopulate(val, "IsVaultProtectedByResourceGuard", &b.IsVaultProtectedByResourceGuard) delete(rawMsg, key) @@ -1467,7 +1475,7 @@ func (b *BackupVault) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type BackupVaultResource. func (b BackupVaultResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "eTag", b.ETag) populate(objectMap, "id", b.ID) populate(objectMap, "identity", b.Identity) @@ -1526,7 +1534,7 @@ func (b *BackupVaultResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type BackupVaultResourceList. func (b BackupVaultResourceList) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", b.NextLink) populate(objectMap, "value", b.Value) return json.Marshal(objectMap) @@ -1557,7 +1565,7 @@ func (b *BackupVaultResourceList) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type BaseBackupPolicy. func (b BaseBackupPolicy) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "datasourceTypes", b.DatasourceTypes) objectMap["objectType"] = b.ObjectType return json.Marshal(objectMap) @@ -1588,7 +1596,7 @@ func (b *BaseBackupPolicy) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type BaseBackupPolicyResource. func (b BaseBackupPolicyResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", b.ID) populate(objectMap, "name", b.Name) populate(objectMap, "properties", b.Properties) @@ -1631,7 +1639,7 @@ func (b *BaseBackupPolicyResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type BaseBackupPolicyResourceList. func (b BaseBackupPolicyResourceList) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", b.NextLink) populate(objectMap, "value", b.Value) return json.Marshal(objectMap) @@ -1662,7 +1670,7 @@ func (b *BaseBackupPolicyResourceList) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type BasePolicyRule. func (b BasePolicyRule) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "name", b.Name) objectMap["objectType"] = b.ObjectType return json.Marshal(objectMap) @@ -1693,7 +1701,7 @@ func (b *BasePolicyRule) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type BlobBackupDatasourceParameters. func (b BlobBackupDatasourceParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "containersList", b.ContainersList) objectMap["objectType"] = "BlobBackupDatasourceParameters" return json.Marshal(objectMap) @@ -1724,7 +1732,7 @@ func (b *BlobBackupDatasourceParameters) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CheckNameAvailabilityRequest. func (c CheckNameAvailabilityRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "name", c.Name) populate(objectMap, "type", c.Type) return json.Marshal(objectMap) @@ -1755,7 +1763,7 @@ func (c *CheckNameAvailabilityRequest) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CheckNameAvailabilityResult. func (c CheckNameAvailabilityResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "message", c.Message) populate(objectMap, "nameAvailable", c.NameAvailable) populate(objectMap, "reason", c.Reason) @@ -1790,7 +1798,7 @@ func (c *CheckNameAvailabilityResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ClientDiscoveryDisplay. func (c ClientDiscoveryDisplay) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "description", c.Description) populate(objectMap, "operation", c.Operation) populate(objectMap, "provider", c.Provider) @@ -1829,7 +1837,7 @@ func (c *ClientDiscoveryDisplay) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ClientDiscoveryForLogSpecification. func (c ClientDiscoveryForLogSpecification) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "blobDuration", c.BlobDuration) populate(objectMap, "displayName", c.DisplayName) populate(objectMap, "name", c.Name) @@ -1864,7 +1872,7 @@ func (c *ClientDiscoveryForLogSpecification) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ClientDiscoveryForProperties. func (c ClientDiscoveryForProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "serviceSpecification", c.ServiceSpecification) return json.Marshal(objectMap) } @@ -1891,7 +1899,7 @@ func (c *ClientDiscoveryForProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ClientDiscoveryForServiceSpecification. func (c ClientDiscoveryForServiceSpecification) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "logSpecifications", c.LogSpecifications) return json.Marshal(objectMap) } @@ -1918,7 +1926,7 @@ func (c *ClientDiscoveryForServiceSpecification) UnmarshalJSON(data []byte) erro // MarshalJSON implements the json.Marshaller interface for type ClientDiscoveryResponse. func (c ClientDiscoveryResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", c.NextLink) populate(objectMap, "value", c.Value) return json.Marshal(objectMap) @@ -1949,7 +1957,7 @@ func (c *ClientDiscoveryResponse) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ClientDiscoveryValueForSingleAPI. func (c ClientDiscoveryValueForSingleAPI) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "display", c.Display) populate(objectMap, "isDataAction", c.IsDataAction) populate(objectMap, "name", c.Name) @@ -1992,7 +2000,7 @@ func (c *ClientDiscoveryValueForSingleAPI) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CopyOnExpiryOption. func (c CopyOnExpiryOption) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) objectMap["objectType"] = "CopyOnExpiryOption" return json.Marshal(objectMap) } @@ -2019,7 +2027,7 @@ func (c *CopyOnExpiryOption) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CopyOption. func (c CopyOption) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) objectMap["objectType"] = c.ObjectType return json.Marshal(objectMap) } @@ -2044,9 +2052,36 @@ func (c *CopyOption) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type CrossSubscriptionRestoreSettings. +func (c CrossSubscriptionRestoreSettings) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "state", c.State) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CrossSubscriptionRestoreSettings. +func (c *CrossSubscriptionRestoreSettings) 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 "state": + err = unpopulate(val, "State", &c.State) + 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 CustomCopyOption. func (c CustomCopyOption) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "duration", c.Duration) objectMap["objectType"] = "CustomCopyOption" return json.Marshal(objectMap) @@ -2077,7 +2112,7 @@ func (c *CustomCopyOption) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DataStoreInfoBase. func (d DataStoreInfoBase) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dataStoreType", d.DataStoreType) populate(objectMap, "objectType", d.ObjectType) return json.Marshal(objectMap) @@ -2108,7 +2143,7 @@ func (d *DataStoreInfoBase) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DataStoreParameters. func (d DataStoreParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dataStoreType", d.DataStoreType) objectMap["objectType"] = d.ObjectType return json.Marshal(objectMap) @@ -2139,7 +2174,7 @@ func (d *DataStoreParameters) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Datasource. func (d Datasource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "datasourceType", d.DatasourceType) populate(objectMap, "objectType", d.ObjectType) populate(objectMap, "resourceID", d.ResourceID) @@ -2190,7 +2225,7 @@ func (d *Datasource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DatasourceSet. func (d DatasourceSet) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "datasourceType", d.DatasourceType) populate(objectMap, "objectType", d.ObjectType) populate(objectMap, "resourceID", d.ResourceID) @@ -2241,7 +2276,7 @@ func (d *DatasourceSet) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Day. func (d Day) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "date", d.Date) populate(objectMap, "isLast", d.IsLast) return json.Marshal(objectMap) @@ -2272,7 +2307,7 @@ func (d *Day) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DeleteOption. func (d DeleteOption) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "duration", d.Duration) objectMap["objectType"] = d.ObjectType return json.Marshal(objectMap) @@ -2303,7 +2338,7 @@ func (d *DeleteOption) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DeletedBackupInstance. func (d DeletedBackupInstance) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "currentProtectionState", d.CurrentProtectionState) populate(objectMap, "dataSourceInfo", d.DataSourceInfo) populate(objectMap, "dataSourceSetInfo", d.DataSourceSetInfo) @@ -2374,7 +2409,7 @@ func (d *DeletedBackupInstance) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DeletedBackupInstanceResource. func (d DeletedBackupInstanceResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", d.ID) populate(objectMap, "name", d.Name) populate(objectMap, "properties", d.Properties) @@ -2417,7 +2452,7 @@ func (d *DeletedBackupInstanceResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DeletedBackupInstanceResourceList. func (d DeletedBackupInstanceResourceList) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", d.NextLink) populate(objectMap, "value", d.Value) return json.Marshal(objectMap) @@ -2448,7 +2483,7 @@ func (d *DeletedBackupInstanceResourceList) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DeletionInfo. func (d DeletionInfo) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "billingEndDate", d.BillingEndDate) populate(objectMap, "deleteActivityID", d.DeleteActivityID) populate(objectMap, "deletionTime", d.DeletionTime) @@ -2487,7 +2522,7 @@ func (d *DeletionInfo) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DppBaseResource. func (d DppBaseResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", d.ID) populate(objectMap, "name", d.Name) populate(objectMap, "type", d.Type) @@ -2522,7 +2557,7 @@ func (d *DppBaseResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DppBaseResourceList. func (d DppBaseResourceList) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", d.NextLink) populate(objectMap, "value", d.Value) return json.Marshal(objectMap) @@ -2551,9 +2586,60 @@ func (d *DppBaseResourceList) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type DppBaseTrackedResource. +func (d DppBaseTrackedResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "eTag", d.ETag) + populate(objectMap, "id", d.ID) + populate(objectMap, "location", d.Location) + populate(objectMap, "name", d.Name) + populate(objectMap, "systemData", d.SystemData) + populate(objectMap, "tags", d.Tags) + populate(objectMap, "type", d.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DppBaseTrackedResource. +func (d *DppBaseTrackedResource) 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", d, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "eTag": + err = unpopulate(val, "ETag", &d.ETag) + delete(rawMsg, key) + case "id": + err = unpopulate(val, "ID", &d.ID) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &d.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &d.Name) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &d.SystemData) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &d.Tags) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &d.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type DppIdentityDetails. func (d DppIdentityDetails) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "principalId", d.PrincipalID) populate(objectMap, "tenantId", d.TenantID) populate(objectMap, "type", d.Type) @@ -2588,7 +2674,7 @@ func (d *DppIdentityDetails) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DppProxyResource. func (d DppProxyResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", d.ID) populate(objectMap, "name", d.Name) populate(objectMap, "systemData", d.SystemData) @@ -2631,7 +2717,7 @@ func (d *DppProxyResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DppResource. func (d DppResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", d.ID) populate(objectMap, "name", d.Name) populate(objectMap, "systemData", d.SystemData) @@ -2670,7 +2756,7 @@ func (d *DppResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DppResourceList. func (d DppResourceList) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", d.NextLink) return json.Marshal(objectMap) } @@ -2697,7 +2783,7 @@ func (d *DppResourceList) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DppTrackedResource. func (d DppTrackedResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "eTag", d.ETag) populate(objectMap, "id", d.ID) populate(objectMap, "identity", d.Identity) @@ -2752,7 +2838,7 @@ func (d *DppTrackedResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DppTrackedResourceList. func (d DppTrackedResourceList) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", d.NextLink) return json.Marshal(objectMap) } @@ -2779,7 +2865,7 @@ func (d *DppTrackedResourceList) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DppWorkerRequest. func (d DppWorkerRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "cultureInfo", d.CultureInfo) populate(objectMap, "httpMethod", d.HTTPMethod) populate(objectMap, "headers", d.Headers) @@ -2830,7 +2916,7 @@ func (d *DppWorkerRequest) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Error. func (e Error) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalInfo", e.AdditionalInfo) populate(objectMap, "code", e.Code) populate(objectMap, "details", e.Details) @@ -2873,7 +2959,7 @@ func (e *Error) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ErrorAdditionalInfo. func (e ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "info", &e.Info) populate(objectMap, "type", e.Type) return json.Marshal(objectMap) @@ -2904,7 +2990,7 @@ func (e *ErrorAdditionalInfo) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ExportJobsResult. func (e ExportJobsResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "blobSasKey", e.BlobSasKey) populate(objectMap, "blobUrl", e.BlobURL) populate(objectMap, "excelFileBlobSasKey", e.ExcelFileBlobSasKey) @@ -2941,9 +3027,36 @@ func (e *ExportJobsResult) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type FeatureSettings. +func (f FeatureSettings) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "crossSubscriptionRestoreSettings", f.CrossSubscriptionRestoreSettings) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type FeatureSettings. +func (f *FeatureSettings) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", f, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "crossSubscriptionRestoreSettings": + err = unpopulate(val, "CrossSubscriptionRestoreSettings", &f.CrossSubscriptionRestoreSettings) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", f, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type FeatureValidationRequest. func (f FeatureValidationRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "featureName", f.FeatureName) populate(objectMap, "featureType", f.FeatureType) objectMap["objectType"] = "FeatureValidationRequest" @@ -2978,7 +3091,7 @@ func (f *FeatureValidationRequest) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type FeatureValidationRequestBase. func (f FeatureValidationRequestBase) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) objectMap["objectType"] = f.ObjectType return json.Marshal(objectMap) } @@ -3005,7 +3118,7 @@ func (f *FeatureValidationRequestBase) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type FeatureValidationResponse. func (f FeatureValidationResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "featureType", f.FeatureType) populate(objectMap, "features", f.Features) objectMap["objectType"] = "FeatureValidationResponse" @@ -3040,7 +3153,7 @@ func (f *FeatureValidationResponse) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type FeatureValidationResponseBase. func (f FeatureValidationResponseBase) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) objectMap["objectType"] = f.ObjectType return json.Marshal(objectMap) } @@ -3067,7 +3180,7 @@ func (f *FeatureValidationResponseBase) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ImmediateCopyOption. func (i ImmediateCopyOption) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) objectMap["objectType"] = "ImmediateCopyOption" return json.Marshal(objectMap) } @@ -3094,7 +3207,7 @@ func (i *ImmediateCopyOption) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ImmutabilitySettings. func (i ImmutabilitySettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "state", i.State) return json.Marshal(objectMap) } @@ -3121,7 +3234,7 @@ func (i *ImmutabilitySettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type InnerError. func (i InnerError) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalInfo", i.AdditionalInfo) populate(objectMap, "code", i.Code) populate(objectMap, "embeddedInnerError", i.EmbeddedInnerError) @@ -3156,7 +3269,7 @@ func (i *InnerError) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ItemLevelRestoreCriteria. func (i ItemLevelRestoreCriteria) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) objectMap["objectType"] = i.ObjectType return json.Marshal(objectMap) } @@ -3183,7 +3296,7 @@ func (i *ItemLevelRestoreCriteria) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ItemLevelRestoreTargetInfo. func (i ItemLevelRestoreTargetInfo) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "datasourceAuthCredentials", i.DatasourceAuthCredentials) populate(objectMap, "datasourceInfo", i.DatasourceInfo) populate(objectMap, "datasourceSetInfo", i.DatasourceSetInfo) @@ -3234,7 +3347,7 @@ func (i *ItemLevelRestoreTargetInfo) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ItemPathBasedRestoreCriteria. func (i ItemPathBasedRestoreCriteria) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "isPathRelativeToBackupItem", i.IsPathRelativeToBackupItem) populate(objectMap, "itemPath", i.ItemPath) objectMap["objectType"] = "ItemPathBasedRestoreCriteria" @@ -3273,7 +3386,7 @@ func (i *ItemPathBasedRestoreCriteria) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type JobExtendedInfo. func (j JobExtendedInfo) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalDetails", j.AdditionalDetails) populate(objectMap, "backupInstanceState", j.BackupInstanceState) populate(objectMap, "dataTransferredInBytes", j.DataTransferredInBytes) @@ -3324,7 +3437,7 @@ func (j *JobExtendedInfo) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type JobSubTask. func (j JobSubTask) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalDetails", j.AdditionalDetails) populate(objectMap, "taskId", j.TaskID) populate(objectMap, "taskName", j.TaskName) @@ -3367,7 +3480,7 @@ func (j *JobSubTask) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type KubernetesClusterBackupDatasourceParameters. func (k KubernetesClusterBackupDatasourceParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "excludedNamespaces", k.ExcludedNamespaces) populate(objectMap, "excludedResourceTypes", k.ExcludedResourceTypes) populate(objectMap, "includeClusterScopeResources", k.IncludeClusterScopeResources) @@ -3422,7 +3535,7 @@ func (k *KubernetesClusterBackupDatasourceParameters) UnmarshalJSON(data []byte) // MarshalJSON implements the json.Marshaller interface for type KubernetesClusterRestoreCriteria. func (k KubernetesClusterRestoreCriteria) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "conflictPolicy", k.ConflictPolicy) populate(objectMap, "excludedNamespaces", k.ExcludedNamespaces) populate(objectMap, "excludedResourceTypes", k.ExcludedResourceTypes) @@ -3485,7 +3598,7 @@ func (k *KubernetesClusterRestoreCriteria) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type KubernetesPVRestoreCriteria. func (k KubernetesPVRestoreCriteria) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "name", k.Name) objectMap["objectType"] = "KubernetesPVRestoreCriteria" populate(objectMap, "storageClassName", k.StorageClassName) @@ -3520,7 +3633,7 @@ func (k *KubernetesPVRestoreCriteria) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type KubernetesStorageClassRestoreCriteria. func (k KubernetesStorageClassRestoreCriteria) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) objectMap["objectType"] = "KubernetesStorageClassRestoreCriteria" populate(objectMap, "provisioner", k.Provisioner) populate(objectMap, "selectedStorageClassName", k.SelectedStorageClassName) @@ -3555,7 +3668,7 @@ func (k *KubernetesStorageClassRestoreCriteria) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type MonitoringSettings. func (m MonitoringSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "azureMonitorAlertSettings", m.AzureMonitorAlertSettings) return json.Marshal(objectMap) } @@ -3582,7 +3695,7 @@ func (m *MonitoringSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OperationExtendedInfo. func (o OperationExtendedInfo) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) objectMap["objectType"] = o.ObjectType return json.Marshal(objectMap) } @@ -3609,7 +3722,7 @@ func (o *OperationExtendedInfo) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OperationJobExtendedInfo. func (o OperationJobExtendedInfo) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "jobId", o.JobID) objectMap["objectType"] = "OperationJobExtendedInfo" return json.Marshal(objectMap) @@ -3640,7 +3753,7 @@ func (o *OperationJobExtendedInfo) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OperationResource. func (o OperationResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populateTimeRFC3339(objectMap, "endTime", o.EndTime) populate(objectMap, "error", o.Error) populate(objectMap, "id", o.ID) @@ -3691,7 +3804,8 @@ func (o *OperationResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PatchBackupVaultInput. func (p PatchBackupVaultInput) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) + populate(objectMap, "featureSettings", p.FeatureSettings) populate(objectMap, "monitoringSettings", p.MonitoringSettings) populate(objectMap, "securitySettings", p.SecuritySettings) return json.Marshal(objectMap) @@ -3706,6 +3820,9 @@ func (p *PatchBackupVaultInput) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { + case "featureSettings": + err = unpopulate(val, "FeatureSettings", &p.FeatureSettings) + delete(rawMsg, key) case "monitoringSettings": err = unpopulate(val, "MonitoringSettings", &p.MonitoringSettings) delete(rawMsg, key) @@ -3720,9 +3837,36 @@ func (p *PatchBackupVaultInput) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type PatchResourceGuardInput. +func (p PatchResourceGuardInput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "tags", p.Tags) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PatchResourceGuardInput. +func (p *PatchResourceGuardInput) 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", p, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "tags": + err = unpopulate(val, "Tags", &p.Tags) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", p, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type PatchResourceRequestInput. func (p PatchResourceRequestInput) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "identity", p.Identity) populate(objectMap, "properties", p.Properties) populate(objectMap, "tags", p.Tags) @@ -3757,7 +3901,7 @@ func (p *PatchResourceRequestInput) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PolicyInfo. func (p PolicyInfo) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "policyId", p.PolicyID) populate(objectMap, "policyParameters", p.PolicyParameters) populate(objectMap, "policyVersion", p.PolicyVersion) @@ -3792,7 +3936,7 @@ func (p *PolicyInfo) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PolicyParameters. func (p PolicyParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "backupDatasourceParametersList", p.BackupDatasourceParametersList) populate(objectMap, "dataStoreParametersList", p.DataStoreParametersList) return json.Marshal(objectMap) @@ -3823,7 +3967,7 @@ func (p *PolicyParameters) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ProtectionStatusDetails. func (p ProtectionStatusDetails) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "errorDetails", p.ErrorDetails) populate(objectMap, "status", p.Status) return json.Marshal(objectMap) @@ -3854,7 +3998,7 @@ func (p *ProtectionStatusDetails) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RangeBasedItemLevelRestoreCriteria. func (r RangeBasedItemLevelRestoreCriteria) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "maxMatchingValue", r.MaxMatchingValue) populate(objectMap, "minMatchingValue", r.MinMatchingValue) objectMap["objectType"] = "RangeBasedItemLevelRestoreCriteria" @@ -3889,7 +4033,7 @@ func (r *RangeBasedItemLevelRestoreCriteria) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RecoveryPointDataStoreDetails. func (r RecoveryPointDataStoreDetails) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populateTimeRFC3339(objectMap, "creationTime", r.CreationTime) populateTimeRFC3339(objectMap, "expiryTime", r.ExpiryTime) populate(objectMap, "id", r.ID) @@ -3948,7 +4092,7 @@ func (r *RecoveryPointDataStoreDetails) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RecoveryPointsFilters. func (r RecoveryPointsFilters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "endDate", r.EndDate) populate(objectMap, "extendedInfo", r.ExtendedInfo) populate(objectMap, "isVisible", r.IsVisible) @@ -3995,7 +4139,7 @@ func (r *RecoveryPointsFilters) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ResourceGuard. func (r ResourceGuard) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "allowAutoApprovals", r.AllowAutoApprovals) populate(objectMap, "description", r.Description) populate(objectMap, "provisioningState", r.ProvisioningState) @@ -4038,7 +4182,7 @@ func (r *ResourceGuard) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ResourceGuardOperation. func (r ResourceGuardOperation) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "requestResourceType", r.RequestResourceType) populate(objectMap, "vaultCriticalOperation", r.VaultCriticalOperation) return json.Marshal(objectMap) @@ -4067,156 +4211,11 @@ func (r *ResourceGuardOperation) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type ResourceGuardOperationDetail. -func (r ResourceGuardOperationDetail) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "defaultResourceRequest", r.DefaultResourceRequest) - populate(objectMap, "vaultCriticalOperation", r.VaultCriticalOperation) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type ResourceGuardOperationDetail. -func (r *ResourceGuardOperationDetail) 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 "defaultResourceRequest": - err = unpopulate(val, "DefaultResourceRequest", &r.DefaultResourceRequest) - delete(rawMsg, key) - case "vaultCriticalOperation": - err = unpopulate(val, "VaultCriticalOperation", &r.VaultCriticalOperation) - 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 ResourceGuardProxyBase. -func (r ResourceGuardProxyBase) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "description", r.Description) - populate(objectMap, "lastUpdatedTime", r.LastUpdatedTime) - populate(objectMap, "resourceGuardOperationDetails", r.ResourceGuardOperationDetails) - populate(objectMap, "resourceGuardResourceId", r.ResourceGuardResourceID) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type ResourceGuardProxyBase. -func (r *ResourceGuardProxyBase) 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 "description": - err = unpopulate(val, "Description", &r.Description) - delete(rawMsg, key) - case "lastUpdatedTime": - err = unpopulate(val, "LastUpdatedTime", &r.LastUpdatedTime) - delete(rawMsg, key) - case "resourceGuardOperationDetails": - err = unpopulate(val, "ResourceGuardOperationDetails", &r.ResourceGuardOperationDetails) - delete(rawMsg, key) - case "resourceGuardResourceId": - err = unpopulate(val, "ResourceGuardResourceID", &r.ResourceGuardResourceID) - 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 ResourceGuardProxyBaseResource. -func (r ResourceGuardProxyBaseResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", r.ID) - populate(objectMap, "name", r.Name) - populate(objectMap, "properties", r.Properties) - populate(objectMap, "systemData", r.SystemData) - populate(objectMap, "type", r.Type) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type ResourceGuardProxyBaseResource. -func (r *ResourceGuardProxyBaseResource) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", r, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "id": - err = unpopulate(val, "ID", &r.ID) - delete(rawMsg, key) - case "name": - err = unpopulate(val, "Name", &r.Name) - delete(rawMsg, key) - case "properties": - err = unpopulate(val, "Properties", &r.Properties) - delete(rawMsg, key) - case "systemData": - err = unpopulate(val, "SystemData", &r.SystemData) - 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 ResourceGuardProxyBaseResourceList. -func (r ResourceGuardProxyBaseResourceList) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "nextLink", r.NextLink) - populate(objectMap, "value", r.Value) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type ResourceGuardProxyBaseResourceList. -func (r *ResourceGuardProxyBaseResourceList) 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 "nextLink": - err = unpopulate(val, "NextLink", &r.NextLink) - delete(rawMsg, key) - case "value": - err = unpopulate(val, "Value", &r.Value) - 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 ResourceGuardResource. func (r ResourceGuardResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "eTag", r.ETag) populate(objectMap, "id", r.ID) - populate(objectMap, "identity", r.Identity) populate(objectMap, "location", r.Location) populate(objectMap, "name", r.Name) populate(objectMap, "properties", r.Properties) @@ -4241,9 +4240,6 @@ func (r *ResourceGuardResource) UnmarshalJSON(data []byte) error { case "id": err = unpopulate(val, "ID", &r.ID) delete(rawMsg, key) - case "identity": - err = unpopulate(val, "Identity", &r.Identity) - delete(rawMsg, key) case "location": err = unpopulate(val, "Location", &r.Location) delete(rawMsg, key) @@ -4272,7 +4268,7 @@ func (r *ResourceGuardResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ResourceGuardResourceList. func (r ResourceGuardResourceList) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", r.NextLink) populate(objectMap, "value", r.Value) return json.Marshal(objectMap) @@ -4303,7 +4299,7 @@ func (r *ResourceGuardResourceList) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ResourceMoveDetails. func (r ResourceMoveDetails) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "completionTimeUtc", r.CompletionTimeUTC) populate(objectMap, "operationId", r.OperationID) populate(objectMap, "sourceResourcePath", r.SourceResourcePath) @@ -4346,7 +4342,7 @@ func (r *ResourceMoveDetails) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RestorableTimeRange. func (r RestorableTimeRange) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "endTime", r.EndTime) populate(objectMap, "objectType", r.ObjectType) populate(objectMap, "startTime", r.StartTime) @@ -4381,7 +4377,7 @@ func (r *RestorableTimeRange) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RestoreFilesTargetInfo. func (r RestoreFilesTargetInfo) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) objectMap["objectType"] = "RestoreFilesTargetInfo" populate(objectMap, "recoveryOption", r.RecoveryOption) populate(objectMap, "restoreLocation", r.RestoreLocation) @@ -4420,7 +4416,7 @@ func (r *RestoreFilesTargetInfo) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RestoreJobRecoveryPointDetails. func (r RestoreJobRecoveryPointDetails) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "recoveryPointID", r.RecoveryPointID) populateTimeRFC3339(objectMap, "recoveryPointTime", r.RecoveryPointTime) return json.Marshal(objectMap) @@ -4451,7 +4447,7 @@ func (r *RestoreJobRecoveryPointDetails) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RestoreTargetInfo. func (r RestoreTargetInfo) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "datasourceAuthCredentials", r.DatasourceAuthCredentials) populate(objectMap, "datasourceInfo", r.DatasourceInfo) populate(objectMap, "datasourceSetInfo", r.DatasourceSetInfo) @@ -4498,7 +4494,7 @@ func (r *RestoreTargetInfo) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RestoreTargetInfoBase. func (r RestoreTargetInfoBase) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) objectMap["objectType"] = r.ObjectType populate(objectMap, "recoveryOption", r.RecoveryOption) populate(objectMap, "restoreLocation", r.RestoreLocation) @@ -4533,7 +4529,7 @@ func (r *RestoreTargetInfoBase) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RetentionTag. func (r RetentionTag) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "eTag", r.ETag) populate(objectMap, "id", r.ID) populate(objectMap, "tagName", r.TagName) @@ -4568,7 +4564,7 @@ func (r *RetentionTag) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ScheduleBasedBackupCriteria. func (s ScheduleBasedBackupCriteria) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "absoluteCriteria", s.AbsoluteCriteria) populate(objectMap, "daysOfMonth", s.DaysOfMonth) populate(objectMap, "daysOfTheWeek", s.DaysOfTheWeek) @@ -4627,7 +4623,7 @@ func (s *ScheduleBasedBackupCriteria) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ScheduleBasedTriggerContext. func (s ScheduleBasedTriggerContext) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) objectMap["objectType"] = "ScheduleBasedTriggerContext" populate(objectMap, "schedule", s.Schedule) populate(objectMap, "taggingCriteria", s.TaggingCriteria) @@ -4662,7 +4658,7 @@ func (s *ScheduleBasedTriggerContext) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SecretStoreBasedAuthCredentials. func (s SecretStoreBasedAuthCredentials) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) objectMap["objectType"] = "SecretStoreBasedAuthCredentials" populate(objectMap, "secretStoreResource", s.SecretStoreResource) return json.Marshal(objectMap) @@ -4693,7 +4689,7 @@ func (s *SecretStoreBasedAuthCredentials) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SecretStoreResource. func (s SecretStoreResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "secretStoreType", s.SecretStoreType) populate(objectMap, "uri", s.URI) populate(objectMap, "value", s.Value) @@ -4728,7 +4724,7 @@ func (s *SecretStoreResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SecuritySettings. func (s SecuritySettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "immutabilitySettings", s.ImmutabilitySettings) populate(objectMap, "softDeleteSettings", s.SoftDeleteSettings) return json.Marshal(objectMap) @@ -4759,7 +4755,7 @@ func (s *SecuritySettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SoftDeleteSettings. func (s SoftDeleteSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "retentionDurationInDays", s.RetentionDurationInDays) populate(objectMap, "state", s.State) return json.Marshal(objectMap) @@ -4790,7 +4786,7 @@ func (s *SoftDeleteSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SourceLifeCycle. func (s SourceLifeCycle) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "deleteAfter", s.DeleteAfter) populate(objectMap, "sourceDataStore", s.SourceDataStore) populate(objectMap, "targetDataStoreCopySettings", s.TargetDataStoreCopySettings) @@ -4825,7 +4821,7 @@ func (s *SourceLifeCycle) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type StorageSetting. func (s StorageSetting) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "datastoreType", s.DatastoreType) populate(objectMap, "type", s.Type) return json.Marshal(objectMap) @@ -4856,7 +4852,7 @@ func (s *StorageSetting) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SupportedFeature. func (s SupportedFeature) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "exposureControlledFeatures", s.ExposureControlledFeatures) populate(objectMap, "featureName", s.FeatureName) populate(objectMap, "supportStatus", s.SupportStatus) @@ -4891,7 +4887,7 @@ func (s *SupportedFeature) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SyncBackupInstanceRequest. func (s SyncBackupInstanceRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "syncType", s.SyncType) return json.Marshal(objectMap) } @@ -4918,7 +4914,7 @@ func (s *SyncBackupInstanceRequest) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SystemData. func (s SystemData) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populateTimeRFC3339(objectMap, "createdAt", s.CreatedAt) populate(objectMap, "createdBy", s.CreatedBy) populate(objectMap, "createdByType", s.CreatedByType) @@ -4965,7 +4961,7 @@ func (s *SystemData) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TaggingCriteria. func (t TaggingCriteria) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "criteria", t.Criteria) populate(objectMap, "isDefault", t.IsDefault) populate(objectMap, "tagInfo", t.TagInfo) @@ -5004,7 +5000,7 @@ func (t *TaggingCriteria) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TargetCopySetting. func (t TargetCopySetting) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "copyAfter", t.CopyAfter) populate(objectMap, "dataStore", t.DataStore) return json.Marshal(objectMap) @@ -5035,9 +5031,10 @@ func (t *TargetCopySetting) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TargetDetails. func (t TargetDetails) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "filePrefix", t.FilePrefix) populate(objectMap, "restoreTargetLocationType", t.RestoreTargetLocationType) + populate(objectMap, "targetResourceArmId", t.TargetResourceArmID) populate(objectMap, "url", t.URL) return json.Marshal(objectMap) } @@ -5057,6 +5054,9 @@ func (t *TargetDetails) UnmarshalJSON(data []byte) error { case "restoreTargetLocationType": err = unpopulate(val, "RestoreTargetLocationType", &t.RestoreTargetLocationType) delete(rawMsg, key) + case "targetResourceArmId": + err = unpopulate(val, "TargetResourceArmID", &t.TargetResourceArmID) + delete(rawMsg, key) case "url": err = unpopulate(val, "URL", &t.URL) delete(rawMsg, key) @@ -5070,7 +5070,7 @@ func (t *TargetDetails) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TriggerBackupRequest. func (t TriggerBackupRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "backupRuleOptions", t.BackupRuleOptions) return json.Marshal(objectMap) } @@ -5097,7 +5097,7 @@ func (t *TriggerBackupRequest) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TriggerContext. func (t TriggerContext) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) objectMap["objectType"] = t.ObjectType return json.Marshal(objectMap) } @@ -5122,67 +5122,9 @@ func (t *TriggerContext) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type UnlockDeleteRequest. -func (u UnlockDeleteRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "resourceGuardOperationRequests", u.ResourceGuardOperationRequests) - populate(objectMap, "resourceToBeDeleted", u.ResourceToBeDeleted) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type UnlockDeleteRequest. -func (u *UnlockDeleteRequest) 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 "resourceGuardOperationRequests": - err = unpopulate(val, "ResourceGuardOperationRequests", &u.ResourceGuardOperationRequests) - delete(rawMsg, key) - case "resourceToBeDeleted": - err = unpopulate(val, "ResourceToBeDeleted", &u.ResourceToBeDeleted) - 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 UnlockDeleteResponse. -func (u UnlockDeleteResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "unlockDeleteExpiryTime", u.UnlockDeleteExpiryTime) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type UnlockDeleteResponse. -func (u *UnlockDeleteResponse) 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 "unlockDeleteExpiryTime": - err = unpopulate(val, "UnlockDeleteExpiryTime", &u.UnlockDeleteExpiryTime) - 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 UserFacingError. func (u UserFacingError) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "code", u.Code) populate(objectMap, "details", u.Details) populate(objectMap, "innerError", u.InnerError) @@ -5241,7 +5183,7 @@ func (u *UserFacingError) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ValidateForBackupRequest. func (v ValidateForBackupRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "backupInstance", v.BackupInstance) return json.Marshal(objectMap) } @@ -5268,7 +5210,7 @@ func (v *ValidateForBackupRequest) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ValidateRestoreRequestObject. func (v ValidateRestoreRequestObject) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "restoreRequestObject", v.RestoreRequestObject) return json.Marshal(objectMap) } @@ -5293,7 +5235,7 @@ func (v *ValidateRestoreRequestObject) UnmarshalJSON(data []byte) error { return nil } -func populate(m map[string]interface{}, k string, v interface{}) { +func populate(m map[string]any, k string, v any) { if v == nil { return } else if azcore.IsNullValue(v) { @@ -5303,7 +5245,7 @@ func populate(m map[string]interface{}, k string, v interface{}) { } } -func unpopulate(data json.RawMessage, fn string, v interface{}) error { +func unpopulate(data json.RawMessage, fn string, v any) error { if data == nil { return nil } diff --git a/sdk/resourcemanager/dataprotection/armdataprotection/operationresult_client.go b/sdk/resourcemanager/dataprotection/armdataprotection/operationresult_client.go index 94cd009b9216..f93e72d38ce8 100644 --- a/sdk/resourcemanager/dataprotection/armdataprotection/operationresult_client.go +++ b/sdk/resourcemanager/dataprotection/armdataprotection/operationresult_client.go @@ -33,9 +33,9 @@ type OperationResultClient struct { } // NewOperationResultClient creates a new instance of OperationResultClient with the specified values. -// subscriptionID - The subscription Id. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewOperationResultClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*OperationResultClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -58,8 +58,9 @@ func NewOperationResultClient(subscriptionID string, credential azcore.TokenCred // Get - Gets the operation result for a resource // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-11-01-preview -// options - OperationResultClientGetOptions contains the optional parameters for the OperationResultClient.Get method. +// +// Generated from API version 2023-01-01 +// - options - OperationResultClientGetOptions contains the optional parameters for the OperationResultClient.Get method. func (client *OperationResultClient) Get(ctx context.Context, operationID string, location string, options *OperationResultClientGetOptions) (OperationResultClientGetResponse, error) { req, err := client.getCreateRequest(ctx, operationID, location, options) if err != nil { @@ -78,9 +79,6 @@ func (client *OperationResultClient) Get(ctx context.Context, operationID string // getCreateRequest creates the Get request. func (client *OperationResultClient) getCreateRequest(ctx context.Context, operationID string, location string, options *OperationResultClientGetOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.DataProtection/locations/{location}/operationResults/{operationId}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if operationID == "" { return nil, errors.New("parameter operationID cannot be empty") @@ -95,7 +93,7 @@ func (client *OperationResultClient) getCreateRequest(ctx context.Context, opera return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-11-01-preview") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/dataprotection/armdataprotection/operationresult_client_example_test.go b/sdk/resourcemanager/dataprotection/armdataprotection/operationresult_client_example_test.go index 1c8f557ac452..fd462b835a94 100644 --- a/sdk/resourcemanager/dataprotection/armdataprotection/operationresult_client_example_test.go +++ b/sdk/resourcemanager/dataprotection/armdataprotection/operationresult_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armdataprotection_test @@ -16,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dataprotection/armdataprotection/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/GetOperationResult.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3035214dea933cd02b1ecfa982c185a572f84b8a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/GetOperationResult.json func ExampleOperationResultClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -31,6 +32,11 @@ func ExampleOperationResultClient_Get() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.OperationJobExtendedInfo = armdataprotection.OperationJobExtendedInfo{ + // ObjectType: to.Ptr("OperationJobExtendedInfo"), + // JobID: to.Ptr("c60cb49-63e8-4b21-b9bd-26277b3fdfae"), + // } } diff --git a/sdk/resourcemanager/dataprotection/armdataprotection/operations_client.go b/sdk/resourcemanager/dataprotection/armdataprotection/operations_client.go index 712920796bf1..a5da34d7471a 100644 --- a/sdk/resourcemanager/dataprotection/armdataprotection/operations_client.go +++ b/sdk/resourcemanager/dataprotection/armdataprotection/operations_client.go @@ -28,8 +28,8 @@ type OperationsClient struct { } // NewOperationsClient creates a new instance of OperationsClient with the specified values. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*OperationsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -50,8 +50,9 @@ func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientO } // NewListPager - Returns the list of available operations. -// Generated from API version 2022-11-01-preview -// options - OperationsClientListOptions contains the optional parameters for the OperationsClient.List method. +// +// Generated from API version 2023-01-01 +// - options - OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method. func (client *OperationsClient) NewListPager(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse] { return runtime.NewPager(runtime.PagingHandler[OperationsClientListResponse]{ More: func(page OperationsClientListResponse) bool { @@ -88,7 +89,7 @@ func (client *OperationsClient) listCreateRequest(ctx context.Context, options * return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-11-01-preview") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/dataprotection/armdataprotection/operations_client_example_test.go b/sdk/resourcemanager/dataprotection/armdataprotection/operations_client_example_test.go index f76b5f63ebf1..14f57b2a04f4 100644 --- a/sdk/resourcemanager/dataprotection/armdataprotection/operations_client_example_test.go +++ b/sdk/resourcemanager/dataprotection/armdataprotection/operations_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armdataprotection_test @@ -16,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dataprotection/armdataprotection/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/Operations/List.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3035214dea933cd02b1ecfa982c185a572f84b8a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/Operations/List.json func ExampleOperationsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -29,13 +30,537 @@ func ExampleOperationsClient_NewListPager() { } pager := client.NewListPager(nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.ClientDiscoveryResponse = armdataprotection.ClientDiscoveryResponse{ + // Value: []*armdataprotection.ClientDiscoveryValueForSingleAPI{ + // { + // Name: to.Ptr("Microsoft.DataProtection/locations/getBackupStatus/action"), + // Display: &armdataprotection.ClientDiscoveryDisplay{ + // Description: to.Ptr("Check Backup Status for Recovery Services Vaults"), + // Operation: to.Ptr("Check Backup Status for Vault"), + // Provider: to.Ptr("Microsoft.DataProtection"), + // Resource: to.Ptr("Backup Status"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("Microsoft.DataProtection/backupVaults/backupInstances/write"), + // Display: &armdataprotection.ClientDiscoveryDisplay{ + // Description: to.Ptr("Creates a Backup Instance"), + // Operation: to.Ptr("Create a Backup Instance"), + // Provider: to.Ptr("Microsoft.DataProtection"), + // Resource: to.Ptr("Backup Instance"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("Microsoft.DataProtection/backupVaults/backupInstances/delete"), + // Display: &armdataprotection.ClientDiscoveryDisplay{ + // Description: to.Ptr("Deletes the Backup Instance"), + // Operation: to.Ptr("Delete Backup Instance"), + // Provider: to.Ptr("Microsoft.DataProtection"), + // Resource: to.Ptr("Backup Instance"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("Microsoft.DataProtection/backupVaults/backupInstances/read"), + // Display: &armdataprotection.ClientDiscoveryDisplay{ + // Description: to.Ptr("Returns details of the Backup Instance"), + // Operation: to.Ptr("Get Backup Instance Details"), + // Provider: to.Ptr("Microsoft.DataProtection"), + // Resource: to.Ptr("Backup Instance"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("Microsoft.DataProtection/backupVaults/backupInstances/read"), + // Display: &armdataprotection.ClientDiscoveryDisplay{ + // Description: to.Ptr("Returns all Backup Instances"), + // Operation: to.Ptr("Get Backup Instances"), + // Provider: to.Ptr("Microsoft.DataProtection"), + // Resource: to.Ptr("Backup Instance"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("Microsoft.DataProtection/backupVaults/backupInstances/backup/action"), + // Display: &armdataprotection.ClientDiscoveryDisplay{ + // Description: to.Ptr("Performs Backup on the Backup Instance"), + // Operation: to.Ptr("Backup Backup Instance"), + // Provider: to.Ptr("Microsoft.DataProtection"), + // Resource: to.Ptr("Backup Instance"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("Microsoft.DataProtection/backupVaults/backupInstances/sync/action"), + // Display: &armdataprotection.ClientDiscoveryDisplay{ + // Description: to.Ptr("Sync operation retries last failed operation on backup instance to bring it to a valid state."), + // Operation: to.Ptr("Sync Backup Instance"), + // Provider: to.Ptr("Microsoft.DataProtection"), + // Resource: to.Ptr("Backup Instance"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("Microsoft.DataProtection/backupVaults/backupInstances/operationResults/read"), + // Display: &armdataprotection.ClientDiscoveryDisplay{ + // Description: to.Ptr("Returns Backup Operation Result for Backup Vault."), + // Operation: to.Ptr("Get Backup Operation Result"), + // Provider: to.Ptr("Microsoft.DataProtection"), + // Resource: to.Ptr("Backup Instance"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("Microsoft.DataProtection/backupVaults/backupInstances/stopProtection/action"), + // Display: &armdataprotection.ClientDiscoveryDisplay{ + // Description: to.Ptr("Stop Protection operation stops both backup and retention schedules of backup instance. Existing data will be retained forever."), + // Operation: to.Ptr("Stop Protection of Backup Instance"), + // Provider: to.Ptr("Microsoft.DataProtection"), + // Resource: to.Ptr("Backup Instance"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("Microsoft.DataProtection/backupVaults/backupInstances/suspendBackups/action"), + // Display: &armdataprotection.ClientDiscoveryDisplay{ + // Description: to.Ptr("Suspend Backups operation stops only backups of backup instance. Retention activities will continue and hence data will be ratained as per policy."), + // Operation: to.Ptr("Suspend Backups of Backup Instance"), + // Provider: to.Ptr("Microsoft.DataProtection"), + // Resource: to.Ptr("Backup Instance"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("Microsoft.DataProtection/backupVaults/backupInstances/resumeProtection/action"), + // Display: &armdataprotection.ClientDiscoveryDisplay{ + // Description: to.Ptr("Resume protection of a ProtectionStopped BI."), + // Operation: to.Ptr("Resume Protection of Backup Instance"), + // Provider: to.Ptr("Microsoft.DataProtection"), + // Resource: to.Ptr("Backup Instance"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("Microsoft.DataProtection/backupVaults/backupInstances/resumeBackups/action"), + // Display: &armdataprotection.ClientDiscoveryDisplay{ + // Description: to.Ptr("Resume Backups for a BackupsSuspended BI."), + // Operation: to.Ptr("Resume Backups of Backup Instance"), + // Provider: to.Ptr("Microsoft.DataProtection"), + // Resource: to.Ptr("Backup Instance"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("Microsoft.DataProtection/backupVaults/backupInstances/validateRestore/action"), + // Display: &armdataprotection.ClientDiscoveryDisplay{ + // Description: to.Ptr("Validates for Restore of the Backup Instance"), + // Operation: to.Ptr("Validate for Restore of Backup Instance"), + // Provider: to.Ptr("Microsoft.DataProtection"), + // Resource: to.Ptr("Backup Instance"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("Microsoft.DataProtection/backupVaults/backupInstances/restore/action"), + // Display: &armdataprotection.ClientDiscoveryDisplay{ + // Description: to.Ptr("Triggers restore on the Backup Instance"), + // Operation: to.Ptr("Restore Backup Instance"), + // Provider: to.Ptr("Microsoft.DataProtection"), + // Resource: to.Ptr("Backup Instance"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("Microsoft.DataProtection/backupVaults/backupPolicies/write"), + // Display: &armdataprotection.ClientDiscoveryDisplay{ + // Description: to.Ptr("Creates Backup Policy"), + // Operation: to.Ptr("Create Backup Policy"), + // Provider: to.Ptr("Microsoft.DataProtection"), + // Resource: to.Ptr("Backup Policies"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("Microsoft.DataProtection/backupVaults/backupPolicies/delete"), + // Display: &armdataprotection.ClientDiscoveryDisplay{ + // Description: to.Ptr("Deletes the Backup Policy"), + // Operation: to.Ptr("Delete Backup Policy"), + // Provider: to.Ptr("Microsoft.DataProtection"), + // Resource: to.Ptr("Backup Policies"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("Microsoft.DataProtection/backupVaults/backupPolicies/read"), + // Display: &armdataprotection.ClientDiscoveryDisplay{ + // Description: to.Ptr("Returns details of the Backup Policy"), + // Operation: to.Ptr("Get Backup Policy details"), + // Provider: to.Ptr("Microsoft.DataProtection"), + // Resource: to.Ptr("Backup Policies"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("Microsoft.DataProtection/backupVaults/backupPolicies/read"), + // Display: &armdataprotection.ClientDiscoveryDisplay{ + // Description: to.Ptr("Returns all Backup Policies"), + // Operation: to.Ptr("Get Backup Policies"), + // Provider: to.Ptr("Microsoft.DataProtection"), + // Resource: to.Ptr("Backup Policies"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("Microsoft.DataProtection/backupVaults/backupResourceGuardProxies/read"), + // Display: &armdataprotection.ClientDiscoveryDisplay{ + // Description: to.Ptr("Get the list of ResourceGuard proxies for a resource"), + // Operation: to.Ptr("Get the list of ResourceGuard proxies for a resource"), + // Provider: to.Ptr("Microsoft.DataProtection"), + // Resource: to.Ptr("Resource Guard Proxy"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("Microsoft.DataProtection/backupVaults/backupResourceGuardProxies/read"), + // Display: &armdataprotection.ClientDiscoveryDisplay{ + // Description: to.Ptr("Get ResourceGuard proxy operation gets an object representing the Azure resource of type 'ResourceGuard proxy'"), + // Operation: to.Ptr("Get ResourceGuard proxy"), + // Provider: to.Ptr("Microsoft.DataProtection"), + // Resource: to.Ptr("Resource Guard Proxy"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("Microsoft.DataProtection/backupVaults/backupResourceGuardProxies/write"), + // Display: &armdataprotection.ClientDiscoveryDisplay{ + // Description: to.Ptr("Create ResourceGuard proxy operation creates an Azure resource of type 'ResourceGuard Proxy'"), + // Operation: to.Ptr("Create ResourceGuard proxy"), + // Provider: to.Ptr("Microsoft.DataProtection"), + // Resource: to.Ptr("Resource Guard Proxy"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("Microsoft.DataProtection/backupVaults/backupResourceGuardProxies/delete"), + // Display: &armdataprotection.ClientDiscoveryDisplay{ + // Description: to.Ptr("The Delete ResourceGuard proxy operation deletes the specified Azure resource of type 'ResourceGuard proxy'"), + // Operation: to.Ptr("Delete ResourceGuard proxy"), + // Provider: to.Ptr("Microsoft.DataProtection"), + // Resource: to.Ptr("Resource Guard Proxy"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("Microsoft.DataProtection/backupVaults/backupResourceGuardProxies/unlockDelete/action"), + // Display: &armdataprotection.ClientDiscoveryDisplay{ + // Description: to.Ptr("Unlock delete ResourceGuard proxy operation unlocks the next delete critical operation"), + // Operation: to.Ptr("Unlock delete ResourceGuard proxy operation unlocks the next delete critical operation"), + // Provider: to.Ptr("Microsoft.DataProtection"), + // Resource: to.Ptr("Resource Guard Proxy"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints/read"), + // Display: &armdataprotection.ClientDiscoveryDisplay{ + // Description: to.Ptr("Returns details of the Recovery Point"), + // Operation: to.Ptr("Get Recovery Point Details"), + // Provider: to.Ptr("Microsoft.DataProtection"), + // Resource: to.Ptr("Recovery Points"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("Microsoft.DataProtection/backupVaults/backupInstances/recoveryPoints/read"), + // Display: &armdataprotection.ClientDiscoveryDisplay{ + // Description: to.Ptr("Returns all Recovery Points"), + // Operation: to.Ptr("Get Recovery Points"), + // Provider: to.Ptr("Microsoft.DataProtection"), + // Resource: to.Ptr("Recovery Points"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("Microsoft.DataProtection/backupVaults/backupInstances/findRestorableTimeRanges/action"), + // Display: &armdataprotection.ClientDiscoveryDisplay{ + // Description: to.Ptr("Finds Restorable Time Ranges"), + // Operation: to.Ptr("Find Restorable Time Ranges"), + // Provider: to.Ptr("Microsoft.DataProtection"), + // Resource: to.Ptr("Restorable Time Ranges"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("Microsoft.DataProtection/backupVaults/write"), + // Display: &armdataprotection.ClientDiscoveryDisplay{ + // Description: to.Ptr("Create BackupVault operation creates an Azure resource of type 'Backup Vault'"), + // Operation: to.Ptr("Create Backup Vault"), + // Provider: to.Ptr("Microsoft.DataProtection"), + // Resource: to.Ptr("Backup Vaults"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("Microsoft.DataProtection/backupVaults/read"), + // Display: &armdataprotection.ClientDiscoveryDisplay{ + // Description: to.Ptr("Create BackupVault operation creates an Azure resource of type 'Backup Vault'"), + // Operation: to.Ptr("Create Backup Vault"), + // Provider: to.Ptr("Microsoft.DataProtection"), + // Resource: to.Ptr("Backup Vaults"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("Microsoft.DataProtection/backupVaults/delete"), + // Display: &armdataprotection.ClientDiscoveryDisplay{ + // Description: to.Ptr("Create BackupVault operation creates an Azure resource of type 'Backup Vault'"), + // Operation: to.Ptr("Create Backup Vault"), + // Provider: to.Ptr("Microsoft.DataProtection"), + // Resource: to.Ptr("Backup Vaults"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("Microsoft.DataProtection/backupVaults/operationResults/read"), + // Display: &armdataprotection.ClientDiscoveryDisplay{ + // Description: to.Ptr("Gets Operation Result of a Patch Operation for a Backup Vault"), + // Operation: to.Ptr("Get Operation Result of a Patch Operation for a Backup Vault"), + // Provider: to.Ptr("Microsoft.DataProtection"), + // Resource: to.Ptr("Backup Vaults"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("Microsoft.DataProtection/locations/checkNameAvailability/action"), + // Display: &armdataprotection.ClientDiscoveryDisplay{ + // Description: to.Ptr("Checks if the requested BackupVault Name is Available"), + // Operation: to.Ptr("Check if the requested BackupVault Name is Available"), + // Provider: to.Ptr("Microsoft.DataProtection"), + // Resource: to.Ptr("Backup Vaults"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("Microsoft.DataProtection/backupVaults/read"), + // Display: &armdataprotection.ClientDiscoveryDisplay{ + // Description: to.Ptr("Gets list of Backup Vaults in a Resource Group"), + // Operation: to.Ptr("Get Backup Vaults in a Resource Group"), + // Provider: to.Ptr("Microsoft.DataProtection"), + // Resource: to.Ptr("Backup Vaults"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("Microsoft.DataProtection/backupVaults/read"), + // Display: &armdataprotection.ClientDiscoveryDisplay{ + // Description: to.Ptr("Gets list of Backup Vaults in a Subscription"), + // Operation: to.Ptr("Get Backup Vaults in a Subscription"), + // Provider: to.Ptr("Microsoft.DataProtection"), + // Resource: to.Ptr("Backup Vaults"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("Microsoft.DataProtection/subscriptions/resourceGroups/providers/resourceGuards/write"), + // Display: &armdataprotection.ClientDiscoveryDisplay{ + // Description: to.Ptr("Create ResourceGuard operation creates an Azure resource of type 'ResourceGuard'"), + // Operation: to.Ptr("Create ResourceGuard"), + // Provider: to.Ptr("Microsoft.DataProtection"), + // Resource: to.Ptr("Resource Guards"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("Microsoft.DataProtection/subscriptions/resourceGroups/providers/resourceGuards/read"), + // Display: &armdataprotection.ClientDiscoveryDisplay{ + // Description: to.Ptr("The Get ResourceGuard operation gets an object representing the Azure resource of type 'ResourceGuard'"), + // Operation: to.Ptr("Get ResourceGuard"), + // Provider: to.Ptr("Microsoft.DataProtection"), + // Resource: to.Ptr("Resource Guards"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("Microsoft.DataProtection/subscriptions/resourceGroups/providers/resourceGuards/delete"), + // Display: &armdataprotection.ClientDiscoveryDisplay{ + // Description: to.Ptr("The Delete ResourceGuard operation deletes the specified Azure resource of type 'ResourceGuard'"), + // Operation: to.Ptr("Delete ResourceGuard"), + // Provider: to.Ptr("Microsoft.DataProtection"), + // Resource: to.Ptr("Resource Guards"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("Microsoft.DataProtection/subscriptions/resourceGroups/providers/resourceGuards/read"), + // Display: &armdataprotection.ClientDiscoveryDisplay{ + // Description: to.Ptr("Gets list of ResourceGuards in a Resource Group"), + // Operation: to.Ptr("Get ResourceGuards in a Resource Group"), + // Provider: to.Ptr("Microsoft.DataProtection"), + // Resource: to.Ptr("Resource Guards"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("Microsoft.DataProtection/subscriptions/providers/resourceGuards/read"), + // Display: &armdataprotection.ClientDiscoveryDisplay{ + // Description: to.Ptr("Gets list of ResourceGuards in a Subscription"), + // Operation: to.Ptr("Get ResourceGuards in a Subscription"), + // Provider: to.Ptr("Microsoft.DataProtection"), + // Resource: to.Ptr("Resource Guards"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("Microsoft.DataProtection/subscriptions/resourceGroups/providers/resourceGuards/write"), + // Display: &armdataprotection.ClientDiscoveryDisplay{ + // Description: to.Ptr("Update ResouceGuard operation updates an Azure resource of type 'ResourceGuard'"), + // Operation: to.Ptr("Update ResourceGuard"), + // Provider: to.Ptr("Microsoft.DataProtection"), + // Resource: to.Ptr("Resource Guards"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("Microsoft.DataProtection/subscriptions/resourceGroups/providers/resourceGuards/{operationName}/read"), + // Display: &armdataprotection.ClientDiscoveryDisplay{ + // Description: to.Ptr("Gets ResourceGuard operation request info"), + // Operation: to.Ptr("Get ResourceGuard operation request info"), + // Provider: to.Ptr("Microsoft.DataProtection"), + // Resource: to.Ptr("Resource Guards"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("Microsoft.DataProtection/subscriptions/resourceGroups/providers/resourceGuards/{operationName}/read"), + // Display: &armdataprotection.ClientDiscoveryDisplay{ + // Description: to.Ptr("Gets ResourceGuard default operation request info"), + // Operation: to.Ptr("Get ResourceGuard default operation request info"), + // Provider: to.Ptr("Microsoft.DataProtection"), + // Resource: to.Ptr("Resource Guards"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("Microsoft.DataProtection/subscriptions/providers/locations/checkFeatureSupport/action"), + // Display: &armdataprotection.ClientDiscoveryDisplay{ + // Description: to.Ptr("Validates if a feature is supported"), + // Operation: to.Ptr("Validate if a feature is supported"), + // Provider: to.Ptr("Microsoft.DataProtection"), + // Resource: to.Ptr("Resource Provider Operation"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("Microsoft.DataProtection/locations/operationStatus/read"), + // Display: &armdataprotection.ClientDiscoveryDisplay{ + // Description: to.Ptr("Returns Backup Operation Status for Backup Vault."), + // Operation: to.Ptr("Get Backup Operation Status"), + // Provider: to.Ptr("Microsoft.DataProtection"), + // Resource: to.Ptr("Backup Operation Status"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("Microsoft.DataProtection/backupVaults/operationStatus/read"), + // Display: &armdataprotection.ClientDiscoveryDisplay{ + // Description: to.Ptr("Returns Backup Operation Status for Backup Vault."), + // Operation: to.Ptr("Get Backup Operation Status"), + // Provider: to.Ptr("Microsoft.DataProtection"), + // Resource: to.Ptr("Backup Operation Status"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("Microsoft.DataProtection/subscriptions/resourceGroups/providers/operationStatus/read"), + // Display: &armdataprotection.ClientDiscoveryDisplay{ + // Description: to.Ptr("Returns Backup Operation Status for Backup Vault."), + // Operation: to.Ptr("Get Backup Operation Status"), + // Provider: to.Ptr("Microsoft.DataProtection"), + // Resource: to.Ptr("Backup Operation Status"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("Microsoft.DataProtection/locations/operationResults/read"), + // Display: &armdataprotection.ClientDiscoveryDisplay{ + // Description: to.Ptr("Returns Backup Operation Result for Backup Vault."), + // Operation: to.Ptr("Get Backup Operation Result"), + // Provider: to.Ptr("Microsoft.DataProtection"), + // Resource: to.Ptr("Backup Operation Results"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("Microsoft.DataProtection/backupVaults/validateForBackup/action"), + // Display: &armdataprotection.ClientDiscoveryDisplay{ + // Description: to.Ptr("Validates for backup of Backup Instance"), + // Operation: to.Ptr("Validate for backup of Backup Instance"), + // Provider: to.Ptr("Microsoft.DataProtection"), + // Resource: to.Ptr("Validate Backup"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("Microsoft.DataProtection/backupVaults/backupJobs/read"), + // Display: &armdataprotection.ClientDiscoveryDisplay{ + // Description: to.Ptr("Get Jobs list"), + // Operation: to.Ptr("Backup Jobs"), + // Provider: to.Ptr("Microsoft.DataProtection"), + // Resource: to.Ptr("Backup Jobs"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("Microsoft.RecoveryServices/Vaults/backupJobs/read"), + // Display: &armdataprotection.ClientDiscoveryDisplay{ + // Description: to.Ptr("Get Job details"), + // Operation: to.Ptr("Backup Job Object"), + // Provider: to.Ptr("Microsoft.DataProtection"), + // Resource: to.Ptr("Backup Jobs"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("Microsoft.DataProtection/register/action"), + // Display: &armdataprotection.ClientDiscoveryDisplay{ + // Description: to.Ptr("Registers subscription for given Resource Provider"), + // Operation: to.Ptr("Register Resource Provider"), + // Provider: to.Ptr("Microsoft.DataProtection"), + // Resource: to.Ptr("Resource Provider Operation"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("Microsoft.DataProtection/unregister/action"), + // Display: &armdataprotection.ClientDiscoveryDisplay{ + // Description: to.Ptr("Unregisters subscription for given Resource Provider"), + // Operation: to.Ptr("Unregister Resource Provider"), + // Provider: to.Ptr("Microsoft.DataProtection"), + // Resource: to.Ptr("Resource Provider Operation"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("Microsoft.DataProtection/operations/read"), + // Display: &armdataprotection.ClientDiscoveryDisplay{ + // Description: to.Ptr("Operation returns the list of Operations for a Resource Provider"), + // Operation: to.Ptr("List of Operations"), + // Provider: to.Ptr("Microsoft.DataProtection"), + // Resource: to.Ptr("Resource Provider Operation"), + // }, + // Origin: to.Ptr("user"), + // }}, + // } } } diff --git a/sdk/resourcemanager/dataprotection/armdataprotection/operationstatus_client.go b/sdk/resourcemanager/dataprotection/armdataprotection/operationstatus_client.go index 52fc09dba7e2..e445a9a64a2e 100644 --- a/sdk/resourcemanager/dataprotection/armdataprotection/operationstatus_client.go +++ b/sdk/resourcemanager/dataprotection/armdataprotection/operationstatus_client.go @@ -32,9 +32,9 @@ type OperationStatusClient struct { } // NewOperationStatusClient creates a new instance of OperationStatusClient with the specified values. -// subscriptionID - The subscription Id. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewOperationStatusClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*OperationStatusClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,8 +57,9 @@ func NewOperationStatusClient(subscriptionID string, credential azcore.TokenCred // Get - Gets the operation status for a resource. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-11-01-preview -// options - OperationStatusClientGetOptions contains the optional parameters for the OperationStatusClient.Get method. +// +// Generated from API version 2023-01-01 +// - options - OperationStatusClientGetOptions contains the optional parameters for the OperationStatusClient.Get method. func (client *OperationStatusClient) Get(ctx context.Context, location string, operationID string, options *OperationStatusClientGetOptions) (OperationStatusClientGetResponse, error) { req, err := client.getCreateRequest(ctx, location, operationID, options) if err != nil { @@ -77,9 +78,6 @@ func (client *OperationStatusClient) Get(ctx context.Context, location string, o // getCreateRequest creates the Get request. func (client *OperationStatusClient) getCreateRequest(ctx context.Context, location string, operationID string, options *OperationStatusClientGetOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.DataProtection/locations/{location}/operationStatus/{operationId}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if location == "" { return nil, errors.New("parameter location cannot be empty") @@ -94,7 +92,7 @@ func (client *OperationStatusClient) getCreateRequest(ctx context.Context, locat return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-11-01-preview") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/dataprotection/armdataprotection/operationstatus_client_example_test.go b/sdk/resourcemanager/dataprotection/armdataprotection/operationstatus_client_example_test.go index e5a93782c7b3..faa47ed25280 100644 --- a/sdk/resourcemanager/dataprotection/armdataprotection/operationstatus_client_example_test.go +++ b/sdk/resourcemanager/dataprotection/armdataprotection/operationstatus_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armdataprotection_test @@ -16,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dataprotection/armdataprotection/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/GetOperationStatus.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3035214dea933cd02b1ecfa982c185a572f84b8a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/GetOperationStatus.json func ExampleOperationStatusClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -31,6 +32,14 @@ func ExampleOperationStatusClient_Get() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.OperationResource = armdataprotection.OperationResource{ + // Name: to.Ptr("MjkxOTMyODMtYTE3My00YzJjLTg5NjctN2E4MDIxNDA3NjA2OzdjNGE2ZWRjLWJjMmItNDRkYi1hYzMzLWY1YzEwNzk5Y2EyOA=="), + // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-11-20T09:49:46Z"); return t}()), + // ID: to.Ptr("/subscriptions/0b352192-dcac-4cc7-992e-a96190ccc68c/providers/Microsoft.DataProtection/locations/WestUS/operationStatus/MjkxOTMyODMtYTE3My00YzJjLTg5NjctN2E4MDIxNDA3NjA2OzdjNGE2ZWRjLWJjMmItNDRkYi1hYzMzLWY1YzEwNzk5Y2EyOA=="), + // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-11-20T09:49:44.0478496Z"); return t}()), + // Status: to.Ptr("Succeeded"), + // } } diff --git a/sdk/resourcemanager/dataprotection/armdataprotection/operationstatusbackupvaultcontext_client.go b/sdk/resourcemanager/dataprotection/armdataprotection/operationstatusbackupvaultcontext_client.go index e31fa3c3a5a8..a1677dfe899a 100644 --- a/sdk/resourcemanager/dataprotection/armdataprotection/operationstatusbackupvaultcontext_client.go +++ b/sdk/resourcemanager/dataprotection/armdataprotection/operationstatusbackupvaultcontext_client.go @@ -32,9 +32,9 @@ type OperationStatusBackupVaultContextClient struct { } // NewOperationStatusBackupVaultContextClient creates a new instance of OperationStatusBackupVaultContextClient with the specified values. -// subscriptionID - The subscription Id. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewOperationStatusBackupVaultContextClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*OperationStatusBackupVaultContextClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,11 +57,12 @@ func NewOperationStatusBackupVaultContextClient(subscriptionID string, credentia // Get - Gets the operation status for an operation over a BackupVault's context. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-11-01-preview -// resourceGroupName - The name of the resource group where the backup vault is present. -// vaultName - The name of the backup vault. -// options - OperationStatusBackupVaultContextClientGetOptions contains the optional parameters for the OperationStatusBackupVaultContextClient.Get -// method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - vaultName - The name of the backup vault. +// - options - OperationStatusBackupVaultContextClientGetOptions contains the optional parameters for the OperationStatusBackupVaultContextClient.Get +// method. func (client *OperationStatusBackupVaultContextClient) Get(ctx context.Context, resourceGroupName string, vaultName string, operationID string, options *OperationStatusBackupVaultContextClientGetOptions) (OperationStatusBackupVaultContextClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, vaultName, operationID, options) if err != nil { @@ -80,9 +81,6 @@ func (client *OperationStatusBackupVaultContextClient) Get(ctx context.Context, // getCreateRequest creates the Get request. func (client *OperationStatusBackupVaultContextClient) getCreateRequest(ctx context.Context, resourceGroupName string, vaultName string, operationID string, options *OperationStatusBackupVaultContextClientGetOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/operationStatus/{operationId}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -101,7 +99,7 @@ func (client *OperationStatusBackupVaultContextClient) getCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-11-01-preview") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/dataprotection/armdataprotection/operationstatusbackupvaultcontext_client_example_test.go b/sdk/resourcemanager/dataprotection/armdataprotection/operationstatusbackupvaultcontext_client_example_test.go index 52dab3b8b914..c4b218f903c2 100644 --- a/sdk/resourcemanager/dataprotection/armdataprotection/operationstatusbackupvaultcontext_client_example_test.go +++ b/sdk/resourcemanager/dataprotection/armdataprotection/operationstatusbackupvaultcontext_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armdataprotection_test @@ -16,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dataprotection/armdataprotection/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/GetOperationStatusVaultContext.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3035214dea933cd02b1ecfa982c185a572f84b8a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/GetOperationStatusVaultContext.json func ExampleOperationStatusBackupVaultContextClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -31,6 +32,14 @@ func ExampleOperationStatusBackupVaultContextClient_Get() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.OperationResource = armdataprotection.OperationResource{ + // Name: to.Ptr("MjkxOTMyODMtYTE3My00YzJjLTg5NjctN2E4MDIxNDA3NjA2OzdjNGE2ZWRjLWJjMmItNDRkYi1hYzMzLWY1YzEwNzk5Y2EyOA=="), + // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-11-20T09:49:46Z"); return t}()), + // ID: to.Ptr("/subscriptions/0b352192-dcac-4cc7-992e-a96190ccc68c/resourceGroups/SampleResourceGroup/providers/Microsoft.DataProtection/backupVaults/swaggerExample/operationStatus/MjkxOTMyODMtYTE3My00YzJjLTg5NjctN2E4MDIxNDA3NjA2OzdjNGE2ZWRjLWJjMmItNDRkYi1hYzMzLWY1YzEwNzk5Y2EyOA=="), + // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-11-20T09:49:44.0478496Z"); return t}()), + // Status: to.Ptr("Succeeded"), + // } } diff --git a/sdk/resourcemanager/dataprotection/armdataprotection/operationstatusresourcegroupcontext_client.go b/sdk/resourcemanager/dataprotection/armdataprotection/operationstatusresourcegroupcontext_client.go index a39d0f5ada78..23c99e72536e 100644 --- a/sdk/resourcemanager/dataprotection/armdataprotection/operationstatusresourcegroupcontext_client.go +++ b/sdk/resourcemanager/dataprotection/armdataprotection/operationstatusresourcegroupcontext_client.go @@ -32,9 +32,9 @@ type OperationStatusResourceGroupContextClient struct { } // NewOperationStatusResourceGroupContextClient creates a new instance of OperationStatusResourceGroupContextClient with the specified values. -// subscriptionID - The subscription Id. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewOperationStatusResourceGroupContextClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*OperationStatusResourceGroupContextClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,10 +57,11 @@ func NewOperationStatusResourceGroupContextClient(subscriptionID string, credent // Get - Gets the operation status for an operation over a ResourceGroup's context. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-11-01-preview -// resourceGroupName - The name of the resource group where the backup vault is present. -// options - OperationStatusResourceGroupContextClientGetOptions contains the optional parameters for the OperationStatusResourceGroupContextClient.Get -// method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - options - OperationStatusResourceGroupContextClientGetOptions contains the optional parameters for the OperationStatusResourceGroupContextClient.Get +// method. func (client *OperationStatusResourceGroupContextClient) Get(ctx context.Context, resourceGroupName string, operationID string, options *OperationStatusResourceGroupContextClientGetOptions) (OperationStatusResourceGroupContextClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, operationID, options) if err != nil { @@ -83,9 +84,6 @@ func (client *OperationStatusResourceGroupContextClient) getCreateRequest(ctx co return nil, errors.New("parameter resourceGroupName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if operationID == "" { return nil, errors.New("parameter operationID cannot be empty") @@ -96,7 +94,7 @@ func (client *OperationStatusResourceGroupContextClient) getCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-11-01-preview") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/dataprotection/armdataprotection/operationstatusresourcegroupcontext_client_example_test.go b/sdk/resourcemanager/dataprotection/armdataprotection/operationstatusresourcegroupcontext_client_example_test.go index d10b7f2edd42..e418a51d354f 100644 --- a/sdk/resourcemanager/dataprotection/armdataprotection/operationstatusresourcegroupcontext_client_example_test.go +++ b/sdk/resourcemanager/dataprotection/armdataprotection/operationstatusresourcegroupcontext_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armdataprotection_test @@ -16,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dataprotection/armdataprotection/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/GetOperationStatusRGContext.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3035214dea933cd02b1ecfa982c185a572f84b8a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/GetOperationStatusRGContext.json func ExampleOperationStatusResourceGroupContextClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -31,6 +32,14 @@ func ExampleOperationStatusResourceGroupContextClient_Get() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.OperationResource = armdataprotection.OperationResource{ + // Name: to.Ptr("MjkxOTMyODMtYTE3My00YzJjLTg5NjctN2E4MDIxNDA3NjA2OzdjNGE2ZWRjLWJjMmItNDRkYi1hYzMzLWY1YzEwNzk5Y2EyOA=="), + // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-11-20T09:49:46Z"); return t}()), + // ID: to.Ptr("/subscriptions/0b352192-dcac-4cc7-992e-a96190ccc68c/resourceGroups/SampleResourceGroup/providers/Microsoft.DataProtection/operationStatus/MjkxOTMyODMtYTE3My00YzJjLTg5NjctN2E4MDIxNDA3NjA2OzdjNGE2ZWRjLWJjMmItNDRkYi1hYzMzLWY1YzEwNzk5Y2EyOA=="), + // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-11-20T09:49:44.0478496Z"); return t}()), + // Status: to.Ptr("Succeeded"), + // } } diff --git a/sdk/resourcemanager/dataprotection/armdataprotection/polymorphic_helpers.go b/sdk/resourcemanager/dataprotection/armdataprotection/polymorphic_helpers.go index 93aa96364bf2..6844a467f6f5 100644 --- a/sdk/resourcemanager/dataprotection/armdataprotection/polymorphic_helpers.go +++ b/sdk/resourcemanager/dataprotection/armdataprotection/polymorphic_helpers.go @@ -15,7 +15,7 @@ func unmarshalAuthCredentialsClassification(rawMsg json.RawMessage) (AuthCredent if rawMsg == nil { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } @@ -33,7 +33,7 @@ func unmarshalAzureBackupRecoveryPointClassification(rawMsg json.RawMessage) (Az if rawMsg == nil { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } @@ -51,7 +51,7 @@ func unmarshalAzureBackupRestoreRequestClassification(rawMsg json.RawMessage) (A if rawMsg == nil { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } @@ -73,7 +73,7 @@ func unmarshalBackupCriteriaClassification(rawMsg json.RawMessage) (BackupCriter if rawMsg == nil { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } @@ -110,7 +110,7 @@ func unmarshalBackupDatasourceParametersClassification(rawMsg json.RawMessage) ( if rawMsg == nil { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } @@ -149,7 +149,7 @@ func unmarshalBackupParametersClassification(rawMsg json.RawMessage) (BackupPara if rawMsg == nil { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } @@ -167,7 +167,7 @@ func unmarshalBaseBackupPolicyClassification(rawMsg json.RawMessage) (BaseBackup if rawMsg == nil { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } @@ -185,7 +185,7 @@ func unmarshalBasePolicyRuleClassification(rawMsg json.RawMessage) (BasePolicyRu if rawMsg == nil { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } @@ -224,7 +224,7 @@ func unmarshalCopyOptionClassification(rawMsg json.RawMessage) (CopyOptionClassi if rawMsg == nil { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } @@ -246,7 +246,7 @@ func unmarshalDataStoreParametersClassification(rawMsg json.RawMessage) (DataSto if rawMsg == nil { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } @@ -283,7 +283,7 @@ func unmarshalDeleteOptionClassification(rawMsg json.RawMessage) (DeleteOptionCl if rawMsg == nil { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } @@ -301,7 +301,7 @@ func unmarshalFeatureValidationResponseBaseClassification(rawMsg json.RawMessage if rawMsg == nil { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } @@ -319,7 +319,7 @@ func unmarshalItemLevelRestoreCriteriaClassification(rawMsg json.RawMessage) (It if rawMsg == nil { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } @@ -364,7 +364,7 @@ func unmarshalOperationExtendedInfoClassification(rawMsg json.RawMessage) (Opera if rawMsg == nil { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } @@ -382,7 +382,7 @@ func unmarshalRestoreTargetInfoBaseClassification(rawMsg json.RawMessage) (Resto if rawMsg == nil { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } @@ -404,7 +404,7 @@ func unmarshalTriggerContextClassification(rawMsg json.RawMessage) (TriggerConte if rawMsg == nil { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } diff --git a/sdk/resourcemanager/dataprotection/armdataprotection/recoverypoints_client.go b/sdk/resourcemanager/dataprotection/armdataprotection/recoverypoints_client.go index 11dcedc901a3..f0b2d666ecc8 100644 --- a/sdk/resourcemanager/dataprotection/armdataprotection/recoverypoints_client.go +++ b/sdk/resourcemanager/dataprotection/armdataprotection/recoverypoints_client.go @@ -32,9 +32,9 @@ type RecoveryPointsClient struct { } // NewRecoveryPointsClient creates a new instance of RecoveryPointsClient with the specified values. -// subscriptionID - The subscription Id. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewRecoveryPointsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*RecoveryPointsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,11 +57,12 @@ func NewRecoveryPointsClient(subscriptionID string, credential azcore.TokenCrede // Get - Gets a Recovery Point using recoveryPointId for a Datasource. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-11-01-preview -// resourceGroupName - The name of the resource group where the backup vault is present. -// vaultName - The name of the backup vault. -// backupInstanceName - The name of the backup instance -// options - RecoveryPointsClientGetOptions contains the optional parameters for the RecoveryPointsClient.Get method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - vaultName - The name of the backup vault. +// - backupInstanceName - The name of the backup instance. +// - options - RecoveryPointsClientGetOptions contains the optional parameters for the RecoveryPointsClient.Get method. func (client *RecoveryPointsClient) Get(ctx context.Context, resourceGroupName string, vaultName string, backupInstanceName string, recoveryPointID string, options *RecoveryPointsClientGetOptions) (RecoveryPointsClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, vaultName, backupInstanceName, recoveryPointID, options) if err != nil { @@ -80,9 +81,6 @@ func (client *RecoveryPointsClient) Get(ctx context.Context, resourceGroupName s // getCreateRequest creates the Get request. func (client *RecoveryPointsClient) getCreateRequest(ctx context.Context, resourceGroupName string, vaultName string, backupInstanceName string, recoveryPointID string, options *RecoveryPointsClientGetOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/recoveryPoints/{recoveryPointId}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -105,7 +103,7 @@ func (client *RecoveryPointsClient) getCreateRequest(ctx context.Context, resour return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-11-01-preview") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -121,11 +119,12 @@ func (client *RecoveryPointsClient) getHandleResponse(resp *http.Response) (Reco } // NewListPager - Returns a list of Recovery Points for a DataSource in a vault. -// Generated from API version 2022-11-01-preview -// resourceGroupName - The name of the resource group where the backup vault is present. -// vaultName - The name of the backup vault. -// backupInstanceName - The name of the backup instance -// options - RecoveryPointsClientListOptions contains the optional parameters for the RecoveryPointsClient.List method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - vaultName - The name of the backup vault. +// - backupInstanceName - The name of the backup instance. +// - options - RecoveryPointsClientListOptions contains the optional parameters for the RecoveryPointsClient.NewListPager method. func (client *RecoveryPointsClient) NewListPager(resourceGroupName string, vaultName string, backupInstanceName string, options *RecoveryPointsClientListOptions) *runtime.Pager[RecoveryPointsClientListResponse] { return runtime.NewPager(runtime.PagingHandler[RecoveryPointsClientListResponse]{ More: func(page RecoveryPointsClientListResponse) bool { @@ -157,9 +156,6 @@ func (client *RecoveryPointsClient) NewListPager(resourceGroupName string, vault // listCreateRequest creates the List request. func (client *RecoveryPointsClient) listCreateRequest(ctx context.Context, resourceGroupName string, vaultName string, backupInstanceName string, options *RecoveryPointsClientListOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/recoveryPoints" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -178,7 +174,7 @@ func (client *RecoveryPointsClient) listCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-11-01-preview") + reqQP.Set("api-version", "2023-01-01") if options != nil && options.Filter != nil { reqQP.Set("$filter", *options.Filter) } diff --git a/sdk/resourcemanager/dataprotection/armdataprotection/recoverypoints_client_example_test.go b/sdk/resourcemanager/dataprotection/armdataprotection/recoverypoints_client_example_test.go index f013438c1d07..b91bb454a9e1 100644 --- a/sdk/resourcemanager/dataprotection/armdataprotection/recoverypoints_client_example_test.go +++ b/sdk/resourcemanager/dataprotection/armdataprotection/recoverypoints_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armdataprotection_test @@ -16,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dataprotection/armdataprotection/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/ListRecoveryPoints.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3035214dea933cd02b1ecfa982c185a572f84b8a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/BackupInstanceOperations/ListRecoveryPoints.json func ExampleRecoveryPointsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -31,18 +32,71 @@ func ExampleRecoveryPointsClient_NewListPager() { SkipToken: nil, }) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.AzureBackupRecoveryPointResourceList = armdataprotection.AzureBackupRecoveryPointResourceList{ + // Value: []*armdataprotection.AzureBackupRecoveryPointResource{ + // { + // Name: to.Ptr("7fb2cddd-c5b3-44f6-a0d9-db3c4f9d5e35"), + // Type: to.Ptr("microsoft.dataprotection/backupvaults/backupInstances/recoveryPoints"), + // ID: to.Ptr("/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/HelloTest/providers/Microsoft.DataProtection/backupVaults/HelloTestVault/backupInstances/653213d-c5b3-44f6-a0d9-db3c4f9d8e34/recoveryPoints/7fb2cddd-c5b3-44f6-a0d9-db3c4f9d5f25"), + // Properties: &armdataprotection.AzureBackupDiscreteRecoveryPoint{ + // ObjectType: to.Ptr("AzureBackupDiscreteRecoveryPoint"), + // ExpiryTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-03-01T13:00:00Z"); return t}()), + // FriendlyName: to.Ptr("panbha4"), + // RecoveryPointDataStoresDetails: []*armdataprotection.RecoveryPointDataStoreDetails{ + // { + // Type: to.Ptr("Snapshot"), + // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-03-01T13:00:00Z"); return t}()), + // ID: to.Ptr("0ff03512-b333-4509-a6c7-12164c8b1dce"), + // MetaData: to.Ptr("123456"), + // }, + // { + // Type: to.Ptr("BackupStorage"), + // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-03-01T13:00:00Z"); return t}()), + // ID: to.Ptr("5d8cfd30-722e-4bab-85f6-4a9d01ffc6f1"), + // MetaData: to.Ptr("123456"), + // }}, + // RecoveryPointTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-03-01T13:00:00Z"); return t}()), + // RecoveryPointType: to.Ptr("Full"), + // }, + // }, + // { + // Name: to.Ptr("7fb2cddd-c5b3-44f6-a0d9-db3c4f9d5f25"), + // Type: to.Ptr("microsoft.dataprotection/backupvaults/backupInstances/recoveryPoints"), + // ID: to.Ptr("/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/HelloTest/providers/Microsoft.DataProtection/backupVaults/HelloTestVault/backupInstances/653213d-c5b3-44f6-a0d9-db3c4f9d8e34/recoveryPoints/7fb2cddd-c5b3-44f6-a0d9-db3c4f9d5f25"), + // Properties: &armdataprotection.AzureBackupDiscreteRecoveryPoint{ + // ObjectType: to.Ptr("AzureBackupDiscreteRecoveryPoint"), + // FriendlyName: to.Ptr("panbha4"), + // RecoveryPointDataStoresDetails: []*armdataprotection.RecoveryPointDataStoreDetails{ + // { + // Type: to.Ptr("Snapshot"), + // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-03-01T13:00:00Z"); return t}()), + // ID: to.Ptr("808cfd30-722e-4bab-85f6-4a9d01ffc6f2"), + // MetaData: to.Ptr("123456"), + // }, + // { + // Type: to.Ptr("BackupStorage"), + // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-03-01T13:00:00Z"); return t}()), + // ID: to.Ptr("798cfd30-722e-4bab-85f6-4a9d01ffc6f3"), + // MetaData: to.Ptr("123456"), + // }}, + // RecoveryPointTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-03-01T13:00:00Z"); return t}()), + // RecoveryPointType: to.Ptr("Full"), + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/GetRecoveryPoint.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3035214dea933cd02b1ecfa982c185a572f84b8a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/BackupInstanceOperations/GetRecoveryPoint.json func ExampleRecoveryPointsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -57,6 +111,31 @@ func ExampleRecoveryPointsClient_Get() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.AzureBackupRecoveryPointResource = armdataprotection.AzureBackupRecoveryPointResource{ + // Name: to.Ptr("7fb2cddd-c5b3-44f6-a0d9-db3c4f9d5f25"), + // Type: to.Ptr("microsoft.dataprotection/backupvaults/backupInstances/recoveryPoints"), + // ID: to.Ptr("/subscriptions/04cf684a-d41f-4550-9f70-7708a3a2283b/resourceGroups/HelloTest/providers/Microsoft.DataProtection/backupVaults/HelloTestVault/backupInstances/653213d-c5b3-44f6-a0d9-db3c4f9d8e34/recoveryPoints/7fb2cddd-c5b3-44f6-a0d9-db3c4f9d5f25"), + // Properties: &armdataprotection.AzureBackupDiscreteRecoveryPoint{ + // ObjectType: to.Ptr("AzureBackupDiscreteRecoveryPoint"), + // FriendlyName: to.Ptr("panbha4"), + // RecoveryPointDataStoresDetails: []*armdataprotection.RecoveryPointDataStoreDetails{ + // { + // Type: to.Ptr("Snapshot"), + // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-03-01T13:00:00Z"); return t}()), + // ID: to.Ptr("0ff03512-b333-4509-a6c7-12164c8b1dce"), + // MetaData: to.Ptr("123456"), + // }, + // { + // Type: to.Ptr("BackupStorage"), + // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-03-01T13:00:00Z"); return t}()), + // ID: to.Ptr("5d8cfd30-722e-4bab-85f6-4a9d01ffc6f1"), + // MetaData: to.Ptr("123456"), + // }}, + // RecoveryPointTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-03-01T13:00:00Z"); return t}()), + // RecoveryPointType: to.Ptr("Full"), + // }, + // } } diff --git a/sdk/resourcemanager/dataprotection/armdataprotection/resourceguards_client.go b/sdk/resourcemanager/dataprotection/armdataprotection/resourceguards_client.go index f95a36fdb8aa..c8fe16b8c7cd 100644 --- a/sdk/resourcemanager/dataprotection/armdataprotection/resourceguards_client.go +++ b/sdk/resourcemanager/dataprotection/armdataprotection/resourceguards_client.go @@ -32,9 +32,9 @@ type ResourceGuardsClient struct { } // NewResourceGuardsClient creates a new instance of ResourceGuardsClient with the specified values. -// subscriptionID - The subscription Id. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewResourceGuardsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ResourceGuardsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,10 +57,11 @@ func NewResourceGuardsClient(subscriptionID string, credential azcore.TokenCrede // Delete - Deletes a ResourceGuard resource from the resource group. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-11-01-preview -// resourceGroupName - The name of the resource group where the backup vault is present. -// resourceGuardsName - The name of ResourceGuard -// options - ResourceGuardsClientDeleteOptions contains the optional parameters for the ResourceGuardsClient.Delete method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - resourceGuardsName - The name of ResourceGuard +// - options - ResourceGuardsClientDeleteOptions contains the optional parameters for the ResourceGuardsClient.Delete method. func (client *ResourceGuardsClient) Delete(ctx context.Context, resourceGroupName string, resourceGuardsName string, options *ResourceGuardsClientDeleteOptions) (ResourceGuardsClientDeleteResponse, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, resourceGuardsName, options) if err != nil { @@ -83,9 +84,6 @@ func (client *ResourceGuardsClient) deleteCreateRequest(ctx context.Context, res return nil, errors.New("parameter resourceGroupName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGuardsName == "" { return nil, errors.New("parameter resourceGuardsName cannot be empty") @@ -96,7 +94,7 @@ func (client *ResourceGuardsClient) deleteCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-11-01-preview") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -104,10 +102,11 @@ func (client *ResourceGuardsClient) deleteCreateRequest(ctx context.Context, res // Get - Returns a ResourceGuard belonging to a resource group. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-11-01-preview -// resourceGroupName - The name of the resource group where the backup vault is present. -// resourceGuardsName - The name of ResourceGuard -// options - ResourceGuardsClientGetOptions contains the optional parameters for the ResourceGuardsClient.Get method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - resourceGuardsName - The name of ResourceGuard +// - options - ResourceGuardsClientGetOptions contains the optional parameters for the ResourceGuardsClient.Get method. func (client *ResourceGuardsClient) Get(ctx context.Context, resourceGroupName string, resourceGuardsName string, options *ResourceGuardsClientGetOptions) (ResourceGuardsClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, resourceGuardsName, options) if err != nil { @@ -130,9 +129,6 @@ func (client *ResourceGuardsClient) getCreateRequest(ctx context.Context, resour return nil, errors.New("parameter resourceGroupName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGuardsName == "" { return nil, errors.New("parameter resourceGuardsName cannot be empty") @@ -143,7 +139,7 @@ func (client *ResourceGuardsClient) getCreateRequest(ctx context.Context, resour return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-11-01-preview") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -160,10 +156,11 @@ func (client *ResourceGuardsClient) getHandleResponse(resp *http.Response) (Reso // NewGetBackupSecurityPINRequestsObjectsPager - Returns collection of operation request objects for a critical operation // protected by the given ResourceGuard resource. -// Generated from API version 2022-11-01-preview -// resourceGroupName - The name of the resource group where the backup vault is present. -// options - ResourceGuardsClientGetBackupSecurityPINRequestsObjectsOptions contains the optional parameters for the ResourceGuardsClient.GetBackupSecurityPINRequestsObjects -// method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - options - ResourceGuardsClientGetBackupSecurityPINRequestsObjectsOptions contains the optional parameters for the ResourceGuardsClient.NewGetBackupSecurityPINRequestsObjectsPager +// method. func (client *ResourceGuardsClient) NewGetBackupSecurityPINRequestsObjectsPager(resourceGroupName string, resourceGuardsName string, options *ResourceGuardsClientGetBackupSecurityPINRequestsObjectsOptions) *runtime.Pager[ResourceGuardsClientGetBackupSecurityPINRequestsObjectsResponse] { return runtime.NewPager(runtime.PagingHandler[ResourceGuardsClientGetBackupSecurityPINRequestsObjectsResponse]{ More: func(page ResourceGuardsClientGetBackupSecurityPINRequestsObjectsResponse) bool { @@ -199,9 +196,6 @@ func (client *ResourceGuardsClient) getBackupSecurityPINRequestsObjectsCreateReq return nil, errors.New("parameter resourceGroupName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGuardsName == "" { return nil, errors.New("parameter resourceGuardsName cannot be empty") @@ -212,7 +206,7 @@ func (client *ResourceGuardsClient) getBackupSecurityPINRequestsObjectsCreateReq return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-11-01-preview") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -230,10 +224,11 @@ func (client *ResourceGuardsClient) getBackupSecurityPINRequestsObjectsHandleRes // GetDefaultBackupSecurityPINRequestsObject - Returns collection of operation request objects for a critical operation protected // by the given ResourceGuard resource. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-11-01-preview -// resourceGroupName - The name of the resource group where the backup vault is present. -// options - ResourceGuardsClientGetDefaultBackupSecurityPINRequestsObjectOptions contains the optional parameters for the -// ResourceGuardsClient.GetDefaultBackupSecurityPINRequestsObject method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - options - ResourceGuardsClientGetDefaultBackupSecurityPINRequestsObjectOptions contains the optional parameters for the +// ResourceGuardsClient.GetDefaultBackupSecurityPINRequestsObject method. func (client *ResourceGuardsClient) GetDefaultBackupSecurityPINRequestsObject(ctx context.Context, resourceGroupName string, resourceGuardsName string, requestName string, options *ResourceGuardsClientGetDefaultBackupSecurityPINRequestsObjectOptions) (ResourceGuardsClientGetDefaultBackupSecurityPINRequestsObjectResponse, error) { req, err := client.getDefaultBackupSecurityPINRequestsObjectCreateRequest(ctx, resourceGroupName, resourceGuardsName, requestName, options) if err != nil { @@ -256,9 +251,6 @@ func (client *ResourceGuardsClient) getDefaultBackupSecurityPINRequestsObjectCre return nil, errors.New("parameter resourceGroupName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGuardsName == "" { return nil, errors.New("parameter resourceGuardsName cannot be empty") @@ -273,7 +265,7 @@ func (client *ResourceGuardsClient) getDefaultBackupSecurityPINRequestsObjectCre return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-11-01-preview") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -291,10 +283,11 @@ func (client *ResourceGuardsClient) getDefaultBackupSecurityPINRequestsObjectHan // GetDefaultDeleteProtectedItemRequestsObject - Returns collection of operation request objects for a critical operation // protected by the given ResourceGuard resource. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-11-01-preview -// resourceGroupName - The name of the resource group where the backup vault is present. -// options - ResourceGuardsClientGetDefaultDeleteProtectedItemRequestsObjectOptions contains the optional parameters for the -// ResourceGuardsClient.GetDefaultDeleteProtectedItemRequestsObject method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - options - ResourceGuardsClientGetDefaultDeleteProtectedItemRequestsObjectOptions contains the optional parameters for the +// ResourceGuardsClient.GetDefaultDeleteProtectedItemRequestsObject method. func (client *ResourceGuardsClient) GetDefaultDeleteProtectedItemRequestsObject(ctx context.Context, resourceGroupName string, resourceGuardsName string, requestName string, options *ResourceGuardsClientGetDefaultDeleteProtectedItemRequestsObjectOptions) (ResourceGuardsClientGetDefaultDeleteProtectedItemRequestsObjectResponse, error) { req, err := client.getDefaultDeleteProtectedItemRequestsObjectCreateRequest(ctx, resourceGroupName, resourceGuardsName, requestName, options) if err != nil { @@ -317,9 +310,6 @@ func (client *ResourceGuardsClient) getDefaultDeleteProtectedItemRequestsObjectC return nil, errors.New("parameter resourceGroupName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGuardsName == "" { return nil, errors.New("parameter resourceGuardsName cannot be empty") @@ -334,7 +324,7 @@ func (client *ResourceGuardsClient) getDefaultDeleteProtectedItemRequestsObjectC return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-11-01-preview") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -352,10 +342,11 @@ func (client *ResourceGuardsClient) getDefaultDeleteProtectedItemRequestsObjectH // GetDefaultDeleteResourceGuardProxyRequestsObject - Returns collection of operation request objects for a critical operation // protected by the given ResourceGuard resource. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-11-01-preview -// resourceGroupName - The name of the resource group where the backup vault is present. -// options - ResourceGuardsClientGetDefaultDeleteResourceGuardProxyRequestsObjectOptions contains the optional parameters -// for the ResourceGuardsClient.GetDefaultDeleteResourceGuardProxyRequestsObject method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - options - ResourceGuardsClientGetDefaultDeleteResourceGuardProxyRequestsObjectOptions contains the optional parameters +// for the ResourceGuardsClient.GetDefaultDeleteResourceGuardProxyRequestsObject method. func (client *ResourceGuardsClient) GetDefaultDeleteResourceGuardProxyRequestsObject(ctx context.Context, resourceGroupName string, resourceGuardsName string, requestName string, options *ResourceGuardsClientGetDefaultDeleteResourceGuardProxyRequestsObjectOptions) (ResourceGuardsClientGetDefaultDeleteResourceGuardProxyRequestsObjectResponse, error) { req, err := client.getDefaultDeleteResourceGuardProxyRequestsObjectCreateRequest(ctx, resourceGroupName, resourceGuardsName, requestName, options) if err != nil { @@ -378,9 +369,6 @@ func (client *ResourceGuardsClient) getDefaultDeleteResourceGuardProxyRequestsOb return nil, errors.New("parameter resourceGroupName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGuardsName == "" { return nil, errors.New("parameter resourceGuardsName cannot be empty") @@ -395,7 +383,7 @@ func (client *ResourceGuardsClient) getDefaultDeleteResourceGuardProxyRequestsOb return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-11-01-preview") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -413,10 +401,11 @@ func (client *ResourceGuardsClient) getDefaultDeleteResourceGuardProxyRequestsOb // GetDefaultDisableSoftDeleteRequestsObject - Returns collection of operation request objects for a critical operation protected // by the given ResourceGuard resource. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-11-01-preview -// resourceGroupName - The name of the resource group where the backup vault is present. -// options - ResourceGuardsClientGetDefaultDisableSoftDeleteRequestsObjectOptions contains the optional parameters for the -// ResourceGuardsClient.GetDefaultDisableSoftDeleteRequestsObject method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - options - ResourceGuardsClientGetDefaultDisableSoftDeleteRequestsObjectOptions contains the optional parameters for the +// ResourceGuardsClient.GetDefaultDisableSoftDeleteRequestsObject method. func (client *ResourceGuardsClient) GetDefaultDisableSoftDeleteRequestsObject(ctx context.Context, resourceGroupName string, resourceGuardsName string, requestName string, options *ResourceGuardsClientGetDefaultDisableSoftDeleteRequestsObjectOptions) (ResourceGuardsClientGetDefaultDisableSoftDeleteRequestsObjectResponse, error) { req, err := client.getDefaultDisableSoftDeleteRequestsObjectCreateRequest(ctx, resourceGroupName, resourceGuardsName, requestName, options) if err != nil { @@ -439,9 +428,6 @@ func (client *ResourceGuardsClient) getDefaultDisableSoftDeleteRequestsObjectCre return nil, errors.New("parameter resourceGroupName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGuardsName == "" { return nil, errors.New("parameter resourceGuardsName cannot be empty") @@ -456,7 +442,7 @@ func (client *ResourceGuardsClient) getDefaultDisableSoftDeleteRequestsObjectCre return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-11-01-preview") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -474,10 +460,11 @@ func (client *ResourceGuardsClient) getDefaultDisableSoftDeleteRequestsObjectHan // GetDefaultUpdateProtectedItemRequestsObject - Returns collection of operation request objects for a critical operation // protected by the given ResourceGuard resource. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-11-01-preview -// resourceGroupName - The name of the resource group where the backup vault is present. -// options - ResourceGuardsClientGetDefaultUpdateProtectedItemRequestsObjectOptions contains the optional parameters for the -// ResourceGuardsClient.GetDefaultUpdateProtectedItemRequestsObject method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - options - ResourceGuardsClientGetDefaultUpdateProtectedItemRequestsObjectOptions contains the optional parameters for the +// ResourceGuardsClient.GetDefaultUpdateProtectedItemRequestsObject method. func (client *ResourceGuardsClient) GetDefaultUpdateProtectedItemRequestsObject(ctx context.Context, resourceGroupName string, resourceGuardsName string, requestName string, options *ResourceGuardsClientGetDefaultUpdateProtectedItemRequestsObjectOptions) (ResourceGuardsClientGetDefaultUpdateProtectedItemRequestsObjectResponse, error) { req, err := client.getDefaultUpdateProtectedItemRequestsObjectCreateRequest(ctx, resourceGroupName, resourceGuardsName, requestName, options) if err != nil { @@ -500,9 +487,6 @@ func (client *ResourceGuardsClient) getDefaultUpdateProtectedItemRequestsObjectC return nil, errors.New("parameter resourceGroupName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGuardsName == "" { return nil, errors.New("parameter resourceGuardsName cannot be empty") @@ -517,7 +501,7 @@ func (client *ResourceGuardsClient) getDefaultUpdateProtectedItemRequestsObjectC return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-11-01-preview") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -535,10 +519,11 @@ func (client *ResourceGuardsClient) getDefaultUpdateProtectedItemRequestsObjectH // GetDefaultUpdateProtectionPolicyRequestsObject - Returns collection of operation request objects for a critical operation // protected by the given ResourceGuard resource. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-11-01-preview -// resourceGroupName - The name of the resource group where the backup vault is present. -// options - ResourceGuardsClientGetDefaultUpdateProtectionPolicyRequestsObjectOptions contains the optional parameters for -// the ResourceGuardsClient.GetDefaultUpdateProtectionPolicyRequestsObject method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - options - ResourceGuardsClientGetDefaultUpdateProtectionPolicyRequestsObjectOptions contains the optional parameters for +// the ResourceGuardsClient.GetDefaultUpdateProtectionPolicyRequestsObject method. func (client *ResourceGuardsClient) GetDefaultUpdateProtectionPolicyRequestsObject(ctx context.Context, resourceGroupName string, resourceGuardsName string, requestName string, options *ResourceGuardsClientGetDefaultUpdateProtectionPolicyRequestsObjectOptions) (ResourceGuardsClientGetDefaultUpdateProtectionPolicyRequestsObjectResponse, error) { req, err := client.getDefaultUpdateProtectionPolicyRequestsObjectCreateRequest(ctx, resourceGroupName, resourceGuardsName, requestName, options) if err != nil { @@ -561,9 +546,6 @@ func (client *ResourceGuardsClient) getDefaultUpdateProtectionPolicyRequestsObje return nil, errors.New("parameter resourceGroupName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGuardsName == "" { return nil, errors.New("parameter resourceGuardsName cannot be empty") @@ -578,7 +560,7 @@ func (client *ResourceGuardsClient) getDefaultUpdateProtectionPolicyRequestsObje return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-11-01-preview") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -595,10 +577,11 @@ func (client *ResourceGuardsClient) getDefaultUpdateProtectionPolicyRequestsObje // NewGetDeleteProtectedItemRequestsObjectsPager - Returns collection of operation request objects for a critical operation // protected by the given ResourceGuard resource. -// Generated from API version 2022-11-01-preview -// resourceGroupName - The name of the resource group where the backup vault is present. -// options - ResourceGuardsClientGetDeleteProtectedItemRequestsObjectsOptions contains the optional parameters for the ResourceGuardsClient.GetDeleteProtectedItemRequestsObjects -// method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - options - ResourceGuardsClientGetDeleteProtectedItemRequestsObjectsOptions contains the optional parameters for the ResourceGuardsClient.NewGetDeleteProtectedItemRequestsObjectsPager +// method. func (client *ResourceGuardsClient) NewGetDeleteProtectedItemRequestsObjectsPager(resourceGroupName string, resourceGuardsName string, options *ResourceGuardsClientGetDeleteProtectedItemRequestsObjectsOptions) *runtime.Pager[ResourceGuardsClientGetDeleteProtectedItemRequestsObjectsResponse] { return runtime.NewPager(runtime.PagingHandler[ResourceGuardsClientGetDeleteProtectedItemRequestsObjectsResponse]{ More: func(page ResourceGuardsClientGetDeleteProtectedItemRequestsObjectsResponse) bool { @@ -634,9 +617,6 @@ func (client *ResourceGuardsClient) getDeleteProtectedItemRequestsObjectsCreateR return nil, errors.New("parameter resourceGroupName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGuardsName == "" { return nil, errors.New("parameter resourceGuardsName cannot be empty") @@ -647,7 +627,7 @@ func (client *ResourceGuardsClient) getDeleteProtectedItemRequestsObjectsCreateR return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-11-01-preview") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -664,10 +644,11 @@ func (client *ResourceGuardsClient) getDeleteProtectedItemRequestsObjectsHandleR // NewGetDeleteResourceGuardProxyRequestsObjectsPager - Returns collection of operation request objects for a critical operation // protected by the given ResourceGuard resource. -// Generated from API version 2022-11-01-preview -// resourceGroupName - The name of the resource group where the backup vault is present. -// options - ResourceGuardsClientGetDeleteResourceGuardProxyRequestsObjectsOptions contains the optional parameters for the -// ResourceGuardsClient.GetDeleteResourceGuardProxyRequestsObjects method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - options - ResourceGuardsClientGetDeleteResourceGuardProxyRequestsObjectsOptions contains the optional parameters for the +// ResourceGuardsClient.NewGetDeleteResourceGuardProxyRequestsObjectsPager method. func (client *ResourceGuardsClient) NewGetDeleteResourceGuardProxyRequestsObjectsPager(resourceGroupName string, resourceGuardsName string, options *ResourceGuardsClientGetDeleteResourceGuardProxyRequestsObjectsOptions) *runtime.Pager[ResourceGuardsClientGetDeleteResourceGuardProxyRequestsObjectsResponse] { return runtime.NewPager(runtime.PagingHandler[ResourceGuardsClientGetDeleteResourceGuardProxyRequestsObjectsResponse]{ More: func(page ResourceGuardsClientGetDeleteResourceGuardProxyRequestsObjectsResponse) bool { @@ -703,9 +684,6 @@ func (client *ResourceGuardsClient) getDeleteResourceGuardProxyRequestsObjectsCr return nil, errors.New("parameter resourceGroupName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGuardsName == "" { return nil, errors.New("parameter resourceGuardsName cannot be empty") @@ -716,7 +694,7 @@ func (client *ResourceGuardsClient) getDeleteResourceGuardProxyRequestsObjectsCr return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-11-01-preview") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -733,10 +711,11 @@ func (client *ResourceGuardsClient) getDeleteResourceGuardProxyRequestsObjectsHa // NewGetDisableSoftDeleteRequestsObjectsPager - Returns collection of operation request objects for a critical operation // protected by the given ResourceGuard resource. -// Generated from API version 2022-11-01-preview -// resourceGroupName - The name of the resource group where the backup vault is present. -// options - ResourceGuardsClientGetDisableSoftDeleteRequestsObjectsOptions contains the optional parameters for the ResourceGuardsClient.GetDisableSoftDeleteRequestsObjects -// method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - options - ResourceGuardsClientGetDisableSoftDeleteRequestsObjectsOptions contains the optional parameters for the ResourceGuardsClient.NewGetDisableSoftDeleteRequestsObjectsPager +// method. func (client *ResourceGuardsClient) NewGetDisableSoftDeleteRequestsObjectsPager(resourceGroupName string, resourceGuardsName string, options *ResourceGuardsClientGetDisableSoftDeleteRequestsObjectsOptions) *runtime.Pager[ResourceGuardsClientGetDisableSoftDeleteRequestsObjectsResponse] { return runtime.NewPager(runtime.PagingHandler[ResourceGuardsClientGetDisableSoftDeleteRequestsObjectsResponse]{ More: func(page ResourceGuardsClientGetDisableSoftDeleteRequestsObjectsResponse) bool { @@ -772,9 +751,6 @@ func (client *ResourceGuardsClient) getDisableSoftDeleteRequestsObjectsCreateReq return nil, errors.New("parameter resourceGroupName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGuardsName == "" { return nil, errors.New("parameter resourceGuardsName cannot be empty") @@ -785,7 +761,7 @@ func (client *ResourceGuardsClient) getDisableSoftDeleteRequestsObjectsCreateReq return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-11-01-preview") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -801,10 +777,11 @@ func (client *ResourceGuardsClient) getDisableSoftDeleteRequestsObjectsHandleRes } // NewGetResourcesInResourceGroupPager - Returns ResourceGuards collection belonging to a ResourceGroup. -// Generated from API version 2022-11-01-preview -// resourceGroupName - The name of the resource group where the backup vault is present. -// options - ResourceGuardsClientGetResourcesInResourceGroupOptions contains the optional parameters for the ResourceGuardsClient.GetResourcesInResourceGroup -// method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - options - ResourceGuardsClientGetResourcesInResourceGroupOptions contains the optional parameters for the ResourceGuardsClient.NewGetResourcesInResourceGroupPager +// method. func (client *ResourceGuardsClient) NewGetResourcesInResourceGroupPager(resourceGroupName string, options *ResourceGuardsClientGetResourcesInResourceGroupOptions) *runtime.Pager[ResourceGuardsClientGetResourcesInResourceGroupResponse] { return runtime.NewPager(runtime.PagingHandler[ResourceGuardsClientGetResourcesInResourceGroupResponse]{ More: func(page ResourceGuardsClientGetResourcesInResourceGroupResponse) bool { @@ -836,9 +813,6 @@ func (client *ResourceGuardsClient) NewGetResourcesInResourceGroupPager(resource // getResourcesInResourceGroupCreateRequest creates the GetResourcesInResourceGroup request. func (client *ResourceGuardsClient) getResourcesInResourceGroupCreateRequest(ctx context.Context, resourceGroupName string, options *ResourceGuardsClientGetResourcesInResourceGroupOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -849,7 +823,7 @@ func (client *ResourceGuardsClient) getResourcesInResourceGroupCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-11-01-preview") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -865,9 +839,10 @@ func (client *ResourceGuardsClient) getResourcesInResourceGroupHandleResponse(re } // NewGetResourcesInSubscriptionPager - Returns ResourceGuards collection belonging to a subscription. -// Generated from API version 2022-11-01-preview -// options - ResourceGuardsClientGetResourcesInSubscriptionOptions contains the optional parameters for the ResourceGuardsClient.GetResourcesInSubscription -// method. +// +// Generated from API version 2023-01-01 +// - options - ResourceGuardsClientGetResourcesInSubscriptionOptions contains the optional parameters for the ResourceGuardsClient.NewGetResourcesInSubscriptionPager +// method. func (client *ResourceGuardsClient) NewGetResourcesInSubscriptionPager(options *ResourceGuardsClientGetResourcesInSubscriptionOptions) *runtime.Pager[ResourceGuardsClientGetResourcesInSubscriptionResponse] { return runtime.NewPager(runtime.PagingHandler[ResourceGuardsClientGetResourcesInSubscriptionResponse]{ More: func(page ResourceGuardsClientGetResourcesInSubscriptionResponse) bool { @@ -899,16 +874,13 @@ func (client *ResourceGuardsClient) NewGetResourcesInSubscriptionPager(options * // getResourcesInSubscriptionCreateRequest creates the GetResourcesInSubscription request. func (client *ResourceGuardsClient) getResourcesInSubscriptionCreateRequest(ctx context.Context, options *ResourceGuardsClientGetResourcesInSubscriptionOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.DataProtection/resourceGuards" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-11-01-preview") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -925,10 +897,11 @@ func (client *ResourceGuardsClient) getResourcesInSubscriptionHandleResponse(res // NewGetUpdateProtectedItemRequestsObjectsPager - Returns collection of operation request objects for a critical operation // protected by the given ResourceGuard resource. -// Generated from API version 2022-11-01-preview -// resourceGroupName - The name of the resource group where the backup vault is present. -// options - ResourceGuardsClientGetUpdateProtectedItemRequestsObjectsOptions contains the optional parameters for the ResourceGuardsClient.GetUpdateProtectedItemRequestsObjects -// method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - options - ResourceGuardsClientGetUpdateProtectedItemRequestsObjectsOptions contains the optional parameters for the ResourceGuardsClient.NewGetUpdateProtectedItemRequestsObjectsPager +// method. func (client *ResourceGuardsClient) NewGetUpdateProtectedItemRequestsObjectsPager(resourceGroupName string, resourceGuardsName string, options *ResourceGuardsClientGetUpdateProtectedItemRequestsObjectsOptions) *runtime.Pager[ResourceGuardsClientGetUpdateProtectedItemRequestsObjectsResponse] { return runtime.NewPager(runtime.PagingHandler[ResourceGuardsClientGetUpdateProtectedItemRequestsObjectsResponse]{ More: func(page ResourceGuardsClientGetUpdateProtectedItemRequestsObjectsResponse) bool { @@ -964,9 +937,6 @@ func (client *ResourceGuardsClient) getUpdateProtectedItemRequestsObjectsCreateR return nil, errors.New("parameter resourceGroupName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGuardsName == "" { return nil, errors.New("parameter resourceGuardsName cannot be empty") @@ -977,7 +947,7 @@ func (client *ResourceGuardsClient) getUpdateProtectedItemRequestsObjectsCreateR return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-11-01-preview") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -994,10 +964,11 @@ func (client *ResourceGuardsClient) getUpdateProtectedItemRequestsObjectsHandleR // NewGetUpdateProtectionPolicyRequestsObjectsPager - Returns collection of operation request objects for a critical operation // protected by the given ResourceGuard resource. -// Generated from API version 2022-11-01-preview -// resourceGroupName - The name of the resource group where the backup vault is present. -// options - ResourceGuardsClientGetUpdateProtectionPolicyRequestsObjectsOptions contains the optional parameters for the -// ResourceGuardsClient.GetUpdateProtectionPolicyRequestsObjects method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - options - ResourceGuardsClientGetUpdateProtectionPolicyRequestsObjectsOptions contains the optional parameters for the +// ResourceGuardsClient.NewGetUpdateProtectionPolicyRequestsObjectsPager method. func (client *ResourceGuardsClient) NewGetUpdateProtectionPolicyRequestsObjectsPager(resourceGroupName string, resourceGuardsName string, options *ResourceGuardsClientGetUpdateProtectionPolicyRequestsObjectsOptions) *runtime.Pager[ResourceGuardsClientGetUpdateProtectionPolicyRequestsObjectsResponse] { return runtime.NewPager(runtime.PagingHandler[ResourceGuardsClientGetUpdateProtectionPolicyRequestsObjectsResponse]{ More: func(page ResourceGuardsClientGetUpdateProtectionPolicyRequestsObjectsResponse) bool { @@ -1033,9 +1004,6 @@ func (client *ResourceGuardsClient) getUpdateProtectionPolicyRequestsObjectsCrea return nil, errors.New("parameter resourceGroupName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGuardsName == "" { return nil, errors.New("parameter resourceGuardsName cannot be empty") @@ -1046,7 +1014,7 @@ func (client *ResourceGuardsClient) getUpdateProtectionPolicyRequestsObjectsCrea return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-11-01-preview") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1063,12 +1031,13 @@ func (client *ResourceGuardsClient) getUpdateProtectionPolicyRequestsObjectsHand // Patch - Updates a ResourceGuard resource belonging to a resource group. For example, updating tags for a resource. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-11-01-preview -// resourceGroupName - The name of the resource group where the backup vault is present. -// resourceGuardsName - The name of ResourceGuard -// parameters - Request body for operation -// options - ResourceGuardsClientPatchOptions contains the optional parameters for the ResourceGuardsClient.Patch method. -func (client *ResourceGuardsClient) Patch(ctx context.Context, resourceGroupName string, resourceGuardsName string, parameters PatchResourceRequestInput, options *ResourceGuardsClientPatchOptions) (ResourceGuardsClientPatchResponse, error) { +// +// Generated from API version 2023-01-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - resourceGuardsName - The name of ResourceGuard +// - parameters - Request body for operation +// - options - ResourceGuardsClientPatchOptions contains the optional parameters for the ResourceGuardsClient.Patch method. +func (client *ResourceGuardsClient) Patch(ctx context.Context, resourceGroupName string, resourceGuardsName string, parameters PatchResourceGuardInput, options *ResourceGuardsClientPatchOptions) (ResourceGuardsClientPatchResponse, error) { req, err := client.patchCreateRequest(ctx, resourceGroupName, resourceGuardsName, parameters, options) if err != nil { return ResourceGuardsClientPatchResponse{}, err @@ -1084,15 +1053,12 @@ func (client *ResourceGuardsClient) Patch(ctx context.Context, resourceGroupName } // patchCreateRequest creates the Patch request. -func (client *ResourceGuardsClient) patchCreateRequest(ctx context.Context, resourceGroupName string, resourceGuardsName string, parameters PatchResourceRequestInput, options *ResourceGuardsClientPatchOptions) (*policy.Request, error) { +func (client *ResourceGuardsClient) patchCreateRequest(ctx context.Context, resourceGroupName string, resourceGuardsName string, parameters PatchResourceGuardInput, options *ResourceGuardsClientPatchOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/resourceGuards/{resourceGuardsName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGuardsName == "" { return nil, errors.New("parameter resourceGuardsName cannot be empty") @@ -1103,7 +1069,7 @@ func (client *ResourceGuardsClient) patchCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-11-01-preview") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, parameters) @@ -1120,11 +1086,12 @@ func (client *ResourceGuardsClient) patchHandleResponse(resp *http.Response) (Re // Put - Creates or updates a ResourceGuard resource belonging to a resource group. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-11-01-preview -// resourceGroupName - The name of the resource group where the backup vault is present. -// resourceGuardsName - The name of ResourceGuard -// parameters - Request body for operation -// options - ResourceGuardsClientPutOptions contains the optional parameters for the ResourceGuardsClient.Put method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - resourceGuardsName - The name of ResourceGuard +// - parameters - Request body for operation +// - options - ResourceGuardsClientPutOptions contains the optional parameters for the ResourceGuardsClient.Put method. func (client *ResourceGuardsClient) Put(ctx context.Context, resourceGroupName string, resourceGuardsName string, parameters ResourceGuardResource, options *ResourceGuardsClientPutOptions) (ResourceGuardsClientPutResponse, error) { req, err := client.putCreateRequest(ctx, resourceGroupName, resourceGuardsName, parameters, options) if err != nil { @@ -1134,7 +1101,7 @@ func (client *ResourceGuardsClient) Put(ctx context.Context, resourceGroupName s if err != nil { return ResourceGuardsClientPutResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { + if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusCreated) { return ResourceGuardsClientPutResponse{}, runtime.NewResponseError(resp) } return client.putHandleResponse(resp) @@ -1147,9 +1114,6 @@ func (client *ResourceGuardsClient) putCreateRequest(ctx context.Context, resour return nil, errors.New("parameter resourceGroupName cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGuardsName == "" { return nil, errors.New("parameter resourceGuardsName cannot be empty") @@ -1160,7 +1124,7 @@ func (client *ResourceGuardsClient) putCreateRequest(ctx context.Context, resour return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-11-01-preview") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, parameters) diff --git a/sdk/resourcemanager/dataprotection/armdataprotection/resourceguards_client_example_test.go b/sdk/resourcemanager/dataprotection/armdataprotection/resourceguards_client_example_test.go index 0f25f75641df..462fbdb4983b 100644 --- a/sdk/resourcemanager/dataprotection/armdataprotection/resourceguards_client_example_test.go +++ b/sdk/resourcemanager/dataprotection/armdataprotection/resourceguards_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armdataprotection_test @@ -17,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dataprotection/armdataprotection/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/ResourceGuardCRUD/GetResourceGuardsInSubscription.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3035214dea933cd02b1ecfa982c185a572f84b8a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/ResourceGuardCRUD/GetResourceGuardsInSubscription.json func ExampleResourceGuardsClient_NewGetResourcesInSubscriptionPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -30,18 +31,47 @@ func ExampleResourceGuardsClient_NewGetResourcesInSubscriptionPager() { } pager := client.NewGetResourcesInSubscriptionPager(nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.ResourceGuardResourceList = armdataprotection.ResourceGuardResourceList{ + // Value: []*armdataprotection.ResourceGuardResource{ + // { + // Name: to.Ptr("VaultGuardTestNew"), + // Type: to.Ptr("Microsoft.DataProtection/resourceGuards"), + // ID: to.Ptr("/subscriptions/c999d45b-944f-418c-a0d8-c3fcfd1802c8/resourceGroups/vaultguardRGNew/providers/Microsoft.DataProtection/resourceGuards/VaultGuardTestNew"), + // Location: to.Ptr("eastus"), + // Tags: map[string]*string{ + // "TestKey": to.Ptr("TestValue"), + // }, + // Properties: &armdataprotection.ResourceGuard{ + // Description: to.Ptr("Please take JIT access before performing any of the critical operation"), + // AllowAutoApprovals: to.Ptr(true), + // ProvisioningState: to.Ptr(armdataprotection.ProvisioningStateSucceeded), + // ResourceGuardOperations: []*armdataprotection.ResourceGuardOperation{ + // { + // RequestResourceType: to.Ptr("Microsoft.DataProtection/resourceGuards/deleteResourceGuardProxyRequests"), + // VaultCriticalOperation: to.Ptr("Microsoft.RecoveryServices/vaults/backupResourceGuardProxies/delete"), + // }, + // { + // RequestResourceType: to.Ptr("Microsoft.DataProtection/resourceGuards/disableSoftDeleteRequests"), + // VaultCriticalOperation: to.Ptr("Microsoft.RecoveryServices/vaults/backupconfig/write"), + // }}, + // VaultCriticalOperationExclusionList: []*string{ + // }, + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/ResourceGuardCRUD/GetResourceGuardsInResourceGroup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3035214dea933cd02b1ecfa982c185a572f84b8a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/ResourceGuardCRUD/GetResourceGuardsInResourceGroup.json func ExampleResourceGuardsClient_NewGetResourcesInResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -54,18 +84,47 @@ func ExampleResourceGuardsClient_NewGetResourcesInResourceGroupPager() { } pager := client.NewGetResourcesInResourceGroupPager("SampleResourceGroup", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.ResourceGuardResourceList = armdataprotection.ResourceGuardResourceList{ + // Value: []*armdataprotection.ResourceGuardResource{ + // { + // Name: to.Ptr("VaultGuardTestNew"), + // Type: to.Ptr("Microsoft.DataProtection/resourceGuards"), + // ID: to.Ptr("/subscriptions/c999d45b-944f-418c-a0d8-c3fcfd1802c8/resourceGroups/vaultguardRGNew/providers/Microsoft.DataProtection/resourceGuards/VaultGuardTestNew"), + // Location: to.Ptr("eastus"), + // Tags: map[string]*string{ + // "TestKey": to.Ptr("TestValue"), + // }, + // Properties: &armdataprotection.ResourceGuard{ + // Description: to.Ptr("Please take JIT access before performing any of the critical operation"), + // AllowAutoApprovals: to.Ptr(true), + // ProvisioningState: to.Ptr(armdataprotection.ProvisioningStateSucceeded), + // ResourceGuardOperations: []*armdataprotection.ResourceGuardOperation{ + // { + // RequestResourceType: to.Ptr("Microsoft.DataProtection/resourceGuards/deleteResourceGuardProxyRequests"), + // VaultCriticalOperation: to.Ptr("Microsoft.RecoveryServices/vaults/backupResourceGuardProxies/delete"), + // }, + // { + // RequestResourceType: to.Ptr("Microsoft.DataProtection/resourceGuards/disableSoftDeleteRequests"), + // VaultCriticalOperation: to.Ptr("Microsoft.RecoveryServices/vaults/backupconfig/write"), + // }}, + // VaultCriticalOperationExclusionList: []*string{ + // }, + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/ResourceGuardCRUD/PutResourceGuard.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3035214dea933cd02b1ecfa982c185a572f84b8a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/ResourceGuardCRUD/PutResourceGuard.json func ExampleResourceGuardsClient_Put() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -85,11 +144,37 @@ func ExampleResourceGuardsClient_Put() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.ResourceGuardResource = armdataprotection.ResourceGuardResource{ + // Name: to.Ptr("VaultGuardTestNew"), + // Type: to.Ptr("Microsoft.DataProtection/resourceGuards"), + // ID: to.Ptr("/subscriptions/c999d45b-944f-418c-a0d8-c3fcfd1802c8/resourceGroups/vaultguardRGNew/providers/Microsoft.DataProtection/resourceGuards/VaultGuardTestNew"), + // Location: to.Ptr("eastus"), + // Tags: map[string]*string{ + // "TestKey": to.Ptr("TestValue"), + // }, + // Properties: &armdataprotection.ResourceGuard{ + // Description: to.Ptr("Please take JIT access before performing any of the critical operation"), + // AllowAutoApprovals: to.Ptr(true), + // ProvisioningState: to.Ptr(armdataprotection.ProvisioningStateSucceeded), + // ResourceGuardOperations: []*armdataprotection.ResourceGuardOperation{ + // { + // RequestResourceType: to.Ptr("Microsoft.DataProtection/resourceGuards/deleteResourceGuardProxyRequests"), + // VaultCriticalOperation: to.Ptr("Microsoft.RecoveryServices/vaults/backupResourceGuardProxies/delete"), + // }, + // { + // RequestResourceType: to.Ptr("Microsoft.DataProtection/resourceGuards/disableSoftDeleteRequests"), + // VaultCriticalOperation: to.Ptr("Microsoft.RecoveryServices/vaults/backupconfig/write"), + // }}, + // VaultCriticalOperationExclusionList: []*string{ + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/ResourceGuardCRUD/GetResourceGuard.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3035214dea933cd02b1ecfa982c185a572f84b8a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/ResourceGuardCRUD/GetResourceGuard.json func ExampleResourceGuardsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -104,11 +189,37 @@ func ExampleResourceGuardsClient_Get() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.ResourceGuardResource = armdataprotection.ResourceGuardResource{ + // Name: to.Ptr("ResourceGuardTestNew"), + // Type: to.Ptr("Microsoft.DataProtection/resourceGuards"), + // ID: to.Ptr("/subscriptions/c999d45b-944f-418c-a0d8-c3fcfd1802c8/resourceGroups/vaultguardRGNew/providers/Microsoft.DataProtection/resourceGuards/VaultGuardTestNew"), + // Location: to.Ptr("eastus"), + // Tags: map[string]*string{ + // "TestKey": to.Ptr("TestValue"), + // }, + // Properties: &armdataprotection.ResourceGuard{ + // Description: to.Ptr("Please take JIT access before performing any of the critical operation"), + // AllowAutoApprovals: to.Ptr(true), + // ProvisioningState: to.Ptr(armdataprotection.ProvisioningStateSucceeded), + // ResourceGuardOperations: []*armdataprotection.ResourceGuardOperation{ + // { + // RequestResourceType: to.Ptr("Microsoft.DataProtection/resourceGuards/deleteResourceGuardProxyRequests"), + // VaultCriticalOperation: to.Ptr("Microsoft.RecoveryServices/vaults/backupResourceGuardProxies/delete"), + // }, + // { + // RequestResourceType: to.Ptr("Microsoft.DataProtection/resourceGuards/disableSoftDeleteRequests"), + // VaultCriticalOperation: to.Ptr("Microsoft.RecoveryServices/vaults/backupconfig/write"), + // }}, + // VaultCriticalOperationExclusionList: []*string{ + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/ResourceGuardCRUD/DeleteResourceGuard.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3035214dea933cd02b1ecfa982c185a572f84b8a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/ResourceGuardCRUD/DeleteResourceGuard.json func ExampleResourceGuardsClient_Delete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -125,7 +236,7 @@ func ExampleResourceGuardsClient_Delete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/ResourceGuardCRUD/PatchResourceGuard.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3035214dea933cd02b1ecfa982c185a572f84b8a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/ResourceGuardCRUD/PatchResourceGuard.json func ExampleResourceGuardsClient_Patch() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -136,7 +247,7 @@ func ExampleResourceGuardsClient_Patch() { if err != nil { log.Fatalf("failed to create client: %v", err) } - res, err := client.Patch(ctx, "SampleResourceGroup", "swaggerExample", armdataprotection.PatchResourceRequestInput{ + res, err := client.Patch(ctx, "SampleResourceGroup", "swaggerExample", armdataprotection.PatchResourceGuardInput{ Tags: map[string]*string{ "newKey": to.Ptr("newVal"), }, @@ -144,11 +255,35 @@ func ExampleResourceGuardsClient_Patch() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.ResourceGuardResource = armdataprotection.ResourceGuardResource{ + // Name: to.Ptr("VaultGuardTestNew"), + // Type: to.Ptr("Microsoft.DataProtection/resourceGuards"), + // ID: to.Ptr("/subscriptions/c999d45b-944f-418c-a0d8-c3fcfd1802c8/resourceGroups/vaultguardRGNew/providers/Microsoft.DataProtection/resourceGuards/VaultGuardTestNew"), + // Location: to.Ptr("eastus"), + // Tags: map[string]*string{ + // "TestKey": to.Ptr("TestValue"), + // }, + // Properties: &armdataprotection.ResourceGuard{ + // Description: to.Ptr("Please take JIT access before performing any of the critical operation"), + // AllowAutoApprovals: to.Ptr(true), + // ProvisioningState: to.Ptr(armdataprotection.ProvisioningStateSucceeded), + // ResourceGuardOperations: []*armdataprotection.ResourceGuardOperation{ + // { + // RequestResourceType: to.Ptr("Microsoft.DataProtection/resourceGuards/deleteResourceGuardProxyRequests"), + // VaultCriticalOperation: to.Ptr("Microsoft.RecoveryServices/vaults/backupResourceGuardProxies/delete"), + // }, + // { + // RequestResourceType: to.Ptr("Microsoft.DataProtection/resourceGuards/disableSoftDeleteRequests"), + // VaultCriticalOperation: to.Ptr("Microsoft.RecoveryServices/vaults/backupconfig/write"), + // }}, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/ResourceGuardCRUD/ListDisableSoftDeleteRequests.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3035214dea933cd02b1ecfa982c185a572f84b8a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/ResourceGuardCRUD/ListDisableSoftDeleteRequests.json func ExampleResourceGuardsClient_NewGetDisableSoftDeleteRequestsObjectsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -161,18 +296,27 @@ func ExampleResourceGuardsClient_NewGetDisableSoftDeleteRequestsObjectsPager() { } pager := client.NewGetDisableSoftDeleteRequestsObjectsPager("SampleResourceGroup", "swaggerExample", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.DppBaseResourceList = armdataprotection.DppBaseResourceList{ + // Value: []*armdataprotection.DppBaseResource{ + // { + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.DataProtection/resourceGuards/disableSoftDeleteRequests"), + // ID: to.Ptr("subscriotions/0b352192-dcac-4cc7-992e-a96190ccc68c/resourceGroups/SampleResourceGroup/providers/Microsoft.DataProtection/resourceGuards/swaggerExample/disableSoftDeleteRequests/default"), + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/ResourceGuardCRUD/ListDeleteResourceGuardProxyRequests.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3035214dea933cd02b1ecfa982c185a572f84b8a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/ResourceGuardCRUD/ListDeleteResourceGuardProxyRequests.json func ExampleResourceGuardsClient_NewGetDeleteResourceGuardProxyRequestsObjectsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -185,18 +329,27 @@ func ExampleResourceGuardsClient_NewGetDeleteResourceGuardProxyRequestsObjectsPa } pager := client.NewGetDeleteResourceGuardProxyRequestsObjectsPager("SampleResourceGroup", "swaggerExample", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.DppBaseResourceList = armdataprotection.DppBaseResourceList{ + // Value: []*armdataprotection.DppBaseResource{ + // { + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.DataProtection/resourceGuards/deleteResourceGuardProxyRequests"), + // ID: to.Ptr("subscriotions/0b352192-dcac-4cc7-992e-a96190ccc68c/resourceGroups/SampleResourceGroup/providers/Microsoft.DataProtection/resourceGuards/swaggerExample/deleteResourceGuardProxyRequests/default"), + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/ResourceGuardCRUD/ListBackupSecurityPINRequests.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3035214dea933cd02b1ecfa982c185a572f84b8a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/ResourceGuardCRUD/ListBackupSecurityPINRequests.json func ExampleResourceGuardsClient_NewGetBackupSecurityPINRequestsObjectsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -209,18 +362,27 @@ func ExampleResourceGuardsClient_NewGetBackupSecurityPINRequestsObjectsPager() { } pager := client.NewGetBackupSecurityPINRequestsObjectsPager("SampleResourceGroup", "swaggerExample", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.DppBaseResourceList = armdataprotection.DppBaseResourceList{ + // Value: []*armdataprotection.DppBaseResource{ + // { + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.DataProtection/resourceGuards/getBackupSecurityPINRequests"), + // ID: to.Ptr("subscriotions/0b352192-dcac-4cc7-992e-a96190ccc68c/resourceGroups/SampleResourceGroup/providers/Microsoft.DataProtection/resourceGuards/swaggerExample/getBackupSecurityPINRequests/default"), + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/ResourceGuardCRUD/ListDeleteProtectedItemRequests.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3035214dea933cd02b1ecfa982c185a572f84b8a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/ResourceGuardCRUD/ListDeleteProtectedItemRequests.json func ExampleResourceGuardsClient_NewGetDeleteProtectedItemRequestsObjectsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -233,18 +395,27 @@ func ExampleResourceGuardsClient_NewGetDeleteProtectedItemRequestsObjectsPager() } pager := client.NewGetDeleteProtectedItemRequestsObjectsPager("SampleResourceGroup", "swaggerExample", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.DppBaseResourceList = armdataprotection.DppBaseResourceList{ + // Value: []*armdataprotection.DppBaseResource{ + // { + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.DataProtection/resourceGuards/deleteProtectedItemRequests"), + // ID: to.Ptr("subscriotions/0b352192-dcac-4cc7-992e-a96190ccc68c/resourceGroups/SampleResourceGroup/providers/Microsoft.DataProtection/resourceGuards/swaggerExample/deleteProtectedItemRequests/default"), + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/ResourceGuardCRUD/ListUpdateProtectionPolicyRequests.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3035214dea933cd02b1ecfa982c185a572f84b8a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/ResourceGuardCRUD/ListUpdateProtectionPolicyRequests.json func ExampleResourceGuardsClient_NewGetUpdateProtectionPolicyRequestsObjectsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -257,18 +428,27 @@ func ExampleResourceGuardsClient_NewGetUpdateProtectionPolicyRequestsObjectsPage } pager := client.NewGetUpdateProtectionPolicyRequestsObjectsPager("SampleResourceGroup", "swaggerExample", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.DppBaseResourceList = armdataprotection.DppBaseResourceList{ + // Value: []*armdataprotection.DppBaseResource{ + // { + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.DataProtection/resourceGuards/updateProtectionPolicyRequests"), + // ID: to.Ptr("subscriotions/0b352192-dcac-4cc7-992e-a96190ccc68c/resourceGroups/SampleResourceGroup/providers/Microsoft.DataProtection/resourceGuards/swaggerExample/updateProtectionPolicyRequests/default"), + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/ResourceGuardCRUD/ListUpdateProtectedItemRequests.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3035214dea933cd02b1ecfa982c185a572f84b8a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/ResourceGuardCRUD/ListUpdateProtectedItemRequests.json func ExampleResourceGuardsClient_NewGetUpdateProtectedItemRequestsObjectsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -281,18 +461,27 @@ func ExampleResourceGuardsClient_NewGetUpdateProtectedItemRequestsObjectsPager() } pager := client.NewGetUpdateProtectedItemRequestsObjectsPager("SampleResourceGroup", "swaggerExample", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.DppBaseResourceList = armdataprotection.DppBaseResourceList{ + // Value: []*armdataprotection.DppBaseResource{ + // { + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.DataProtection/resourceGuards/updateProtectedItemRequests"), + // ID: to.Ptr("subscriotions/0b352192-dcac-4cc7-992e-a96190ccc68c/resourceGroups/SampleResourceGroup/providers/Microsoft.DataProtection/resourceGuards/swaggerExample/updateProtectedItemRequests/default"), + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/ResourceGuardCRUD/GetDefaultDisableSoftDeleteRequests.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3035214dea933cd02b1ecfa982c185a572f84b8a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/ResourceGuardCRUD/GetDefaultDisableSoftDeleteRequests.json func ExampleResourceGuardsClient_GetDefaultDisableSoftDeleteRequestsObject() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -307,11 +496,17 @@ func ExampleResourceGuardsClient_GetDefaultDisableSoftDeleteRequestsObject() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.DppBaseResource = armdataprotection.DppBaseResource{ + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.DataProtection/resourceGuards/disableSoftDeleteRequests"), + // ID: to.Ptr("subscriotions/0b352192-dcac-4cc7-992e-a96190ccc68c/resourceGroups/SampleResourceGroup/providers/Microsoft.DataProtection/resourceGuards/swaggerExample/disableSoftDeleteRequests/default"), + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/ResourceGuardCRUD/GetDefaultDeleteResourceGuardProxyRequests.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3035214dea933cd02b1ecfa982c185a572f84b8a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/ResourceGuardCRUD/GetDefaultDeleteResourceGuardProxyRequests.json func ExampleResourceGuardsClient_GetDefaultDeleteResourceGuardProxyRequestsObject() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -326,11 +521,17 @@ func ExampleResourceGuardsClient_GetDefaultDeleteResourceGuardProxyRequestsObjec if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.DppBaseResource = armdataprotection.DppBaseResource{ + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.DataProtection/resourceGuards/deleteResourceGuardProxyRequests"), + // ID: to.Ptr("subscriotions/0b352192-dcac-4cc7-992e-a96190ccc68c/resourceGroups/SampleResourceGroup/providers/Microsoft.DataProtection/resourceGuards/swaggerExample/deleteResourceGuardProxyRequests/default"), + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/ResourceGuardCRUD/GetDefaultBackupSecurityPINRequests.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3035214dea933cd02b1ecfa982c185a572f84b8a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/ResourceGuardCRUD/GetDefaultBackupSecurityPINRequests.json func ExampleResourceGuardsClient_GetDefaultBackupSecurityPINRequestsObject() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -345,11 +546,17 @@ func ExampleResourceGuardsClient_GetDefaultBackupSecurityPINRequestsObject() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.DppBaseResource = armdataprotection.DppBaseResource{ + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.DataProtection/resourceGuards/getBackupSecurityPINRequests"), + // ID: to.Ptr("subscriotions/0b352192-dcac-4cc7-992e-a96190ccc68c/resourceGroups/SampleResourceGroup/providers/Microsoft.DataProtection/resourceGuards/swaggerExample/getBackupSecurityPINRequests/default"), + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/ResourceGuardCRUD/GetDefaultDeleteProtectedItemRequests.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3035214dea933cd02b1ecfa982c185a572f84b8a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/ResourceGuardCRUD/GetDefaultDeleteProtectedItemRequests.json func ExampleResourceGuardsClient_GetDefaultDeleteProtectedItemRequestsObject() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -364,11 +571,17 @@ func ExampleResourceGuardsClient_GetDefaultDeleteProtectedItemRequestsObject() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.DppBaseResource = armdataprotection.DppBaseResource{ + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.DataProtection/resourceGuards/deleteProtectedItemRequests"), + // ID: to.Ptr("subscriotions/0b352192-dcac-4cc7-992e-a96190ccc68c/resourceGroups/SampleResourceGroup/providers/Microsoft.DataProtection/resourceGuards/swaggerExample/deleteProtectedItemRequests/default"), + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/ResourceGuardCRUD/GetDefaultUpdateProtectionPolicyRequests.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3035214dea933cd02b1ecfa982c185a572f84b8a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/ResourceGuardCRUD/GetDefaultUpdateProtectionPolicyRequests.json func ExampleResourceGuardsClient_GetDefaultUpdateProtectionPolicyRequestsObject() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -383,11 +596,17 @@ func ExampleResourceGuardsClient_GetDefaultUpdateProtectionPolicyRequestsObject( if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.DppBaseResource = armdataprotection.DppBaseResource{ + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.DataProtection/resourceGuards/updateProtectionPolicyRequests"), + // ID: to.Ptr("subscriotions/0b352192-dcac-4cc7-992e-a96190ccc68c/resourceGroups/SampleResourceGroup/providers/Microsoft.DataProtection/resourceGuards/swaggerExample/updateProtectionPolicyRequests/default"), + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/ResourceGuardCRUD/GetDefaultUpdateProtectedItemRequests.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3035214dea933cd02b1ecfa982c185a572f84b8a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/ResourceGuardCRUD/GetDefaultUpdateProtectedItemRequests.json func ExampleResourceGuardsClient_GetDefaultUpdateProtectedItemRequestsObject() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -402,6 +621,12 @@ func ExampleResourceGuardsClient_GetDefaultUpdateProtectedItemRequestsObject() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.DppBaseResource = armdataprotection.DppBaseResource{ + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.DataProtection/resourceGuards/updateProtectedItemRequests"), + // ID: to.Ptr("subscriotions/0b352192-dcac-4cc7-992e-a96190ccc68c/resourceGroups/SampleResourceGroup/providers/Microsoft.DataProtection/resourceGuards/swaggerExample/updateProtectedItemRequests/default"), + // } } diff --git a/sdk/resourcemanager/dataprotection/armdataprotection/response_types.go b/sdk/resourcemanager/dataprotection/armdataprotection/response_types.go index 22e7e2474470..2e55ed7bfb1a 100644 --- a/sdk/resourcemanager/dataprotection/armdataprotection/response_types.go +++ b/sdk/resourcemanager/dataprotection/armdataprotection/response_types.go @@ -9,17 +9,17 @@ package armdataprotection -// BackupInstancesClientAdhocBackupResponse contains the response from method BackupInstancesClient.AdhocBackup. +// BackupInstancesClientAdhocBackupResponse contains the response from method BackupInstancesClient.BeginAdhocBackup. type BackupInstancesClientAdhocBackupResponse struct { OperationJobExtendedInfo } -// BackupInstancesClientCreateOrUpdateResponse contains the response from method BackupInstancesClient.CreateOrUpdate. +// BackupInstancesClientCreateOrUpdateResponse contains the response from method BackupInstancesClient.BeginCreateOrUpdate. type BackupInstancesClientCreateOrUpdateResponse struct { BackupInstanceResource } -// BackupInstancesClientDeleteResponse contains the response from method BackupInstancesClient.Delete. +// BackupInstancesClientDeleteResponse contains the response from method BackupInstancesClient.BeginDelete. type BackupInstancesClientDeleteResponse struct { // placeholder for future response values } @@ -34,61 +34,56 @@ type BackupInstancesClientGetResponse struct { BackupInstanceResource } -// BackupInstancesClientListResponse contains the response from method BackupInstancesClient.List. +// BackupInstancesClientListResponse contains the response from method BackupInstancesClient.NewListPager. type BackupInstancesClientListResponse struct { BackupInstanceResourceList } -// BackupInstancesClientResumeBackupsResponse contains the response from method BackupInstancesClient.ResumeBackups. +// BackupInstancesClientResumeBackupsResponse contains the response from method BackupInstancesClient.BeginResumeBackups. type BackupInstancesClientResumeBackupsResponse struct { // placeholder for future response values } -// BackupInstancesClientResumeProtectionResponse contains the response from method BackupInstancesClient.ResumeProtection. +// BackupInstancesClientResumeProtectionResponse contains the response from method BackupInstancesClient.BeginResumeProtection. type BackupInstancesClientResumeProtectionResponse struct { // placeholder for future response values } -// BackupInstancesClientStopProtectionResponse contains the response from method BackupInstancesClient.StopProtection. +// BackupInstancesClientStopProtectionResponse contains the response from method BackupInstancesClient.BeginStopProtection. type BackupInstancesClientStopProtectionResponse struct { // placeholder for future response values } -// BackupInstancesClientSuspendBackupsResponse contains the response from method BackupInstancesClient.SuspendBackups. +// BackupInstancesClientSuspendBackupsResponse contains the response from method BackupInstancesClient.BeginSuspendBackups. type BackupInstancesClientSuspendBackupsResponse struct { // placeholder for future response values } -// BackupInstancesClientSyncBackupInstanceResponse contains the response from method BackupInstancesClient.SyncBackupInstance. +// BackupInstancesClientSyncBackupInstanceResponse contains the response from method BackupInstancesClient.BeginSyncBackupInstance. type BackupInstancesClientSyncBackupInstanceResponse struct { // placeholder for future response values } -// BackupInstancesClientTriggerRehydrateResponse contains the response from method BackupInstancesClient.TriggerRehydrate. +// BackupInstancesClientTriggerRehydrateResponse contains the response from method BackupInstancesClient.BeginTriggerRehydrate. type BackupInstancesClientTriggerRehydrateResponse struct { // placeholder for future response values } -// BackupInstancesClientTriggerRestoreResponse contains the response from method BackupInstancesClient.TriggerRestore. +// BackupInstancesClientTriggerRestoreResponse contains the response from method BackupInstancesClient.BeginTriggerRestore. type BackupInstancesClientTriggerRestoreResponse struct { OperationJobExtendedInfo } -// BackupInstancesClientValidateForBackupResponse contains the response from method BackupInstancesClient.ValidateForBackup. +// BackupInstancesClientValidateForBackupResponse contains the response from method BackupInstancesClient.BeginValidateForBackup. type BackupInstancesClientValidateForBackupResponse struct { OperationJobExtendedInfo } -// BackupInstancesClientValidateForRestoreResponse contains the response from method BackupInstancesClient.ValidateForRestore. +// BackupInstancesClientValidateForRestoreResponse contains the response from method BackupInstancesClient.BeginValidateForRestore. type BackupInstancesClientValidateForRestoreResponse struct { OperationJobExtendedInfo } -// BackupInstancesExtensionRoutingClientListResponse contains the response from method BackupInstancesExtensionRoutingClient.List. -type BackupInstancesExtensionRoutingClientListResponse struct { - BackupInstanceResourceList -} - // BackupPoliciesClientCreateOrUpdateResponse contains the response from method BackupPoliciesClient.CreateOrUpdate. type BackupPoliciesClientCreateOrUpdateResponse struct { BaseBackupPolicyResource @@ -104,7 +99,7 @@ type BackupPoliciesClientGetResponse struct { BaseBackupPolicyResource } -// BackupPoliciesClientListResponse contains the response from method BackupPoliciesClient.List. +// BackupPoliciesClientListResponse contains the response from method BackupPoliciesClient.NewListPager. type BackupPoliciesClientListResponse struct { BaseBackupPolicyResourceList } @@ -127,22 +122,22 @@ type BackupVaultsClientCheckNameAvailabilityResponse struct { CheckNameAvailabilityResult } -// BackupVaultsClientCreateOrUpdateResponse contains the response from method BackupVaultsClient.CreateOrUpdate. +// BackupVaultsClientCreateOrUpdateResponse contains the response from method BackupVaultsClient.BeginCreateOrUpdate. type BackupVaultsClientCreateOrUpdateResponse struct { BackupVaultResource } -// BackupVaultsClientDeleteResponse contains the response from method BackupVaultsClient.Delete. +// BackupVaultsClientDeleteResponse contains the response from method BackupVaultsClient.BeginDelete. type BackupVaultsClientDeleteResponse struct { // placeholder for future response values } -// BackupVaultsClientGetInResourceGroupResponse contains the response from method BackupVaultsClient.GetInResourceGroup. +// BackupVaultsClientGetInResourceGroupResponse contains the response from method BackupVaultsClient.NewGetInResourceGroupPager. type BackupVaultsClientGetInResourceGroupResponse struct { BackupVaultResourceList } -// BackupVaultsClientGetInSubscriptionResponse contains the response from method BackupVaultsClient.GetInSubscription. +// BackupVaultsClientGetInSubscriptionResponse contains the response from method BackupVaultsClient.NewGetInSubscriptionPager. type BackupVaultsClientGetInSubscriptionResponse struct { BackupVaultResourceList } @@ -152,7 +147,7 @@ type BackupVaultsClientGetResponse struct { BackupVaultResource } -// BackupVaultsClientUpdateResponse contains the response from method BackupVaultsClient.Update. +// BackupVaultsClientUpdateResponse contains the response from method BackupVaultsClient.BeginUpdate. type BackupVaultsClientUpdateResponse struct { BackupVaultResource } @@ -177,42 +172,17 @@ type DeletedBackupInstancesClientGetResponse struct { DeletedBackupInstanceResource } -// DeletedBackupInstancesClientListResponse contains the response from method DeletedBackupInstancesClient.List. +// DeletedBackupInstancesClientListResponse contains the response from method DeletedBackupInstancesClient.NewListPager. type DeletedBackupInstancesClientListResponse struct { DeletedBackupInstanceResourceList } -// DeletedBackupInstancesClientUndeleteResponse contains the response from method DeletedBackupInstancesClient.Undelete. +// DeletedBackupInstancesClientUndeleteResponse contains the response from method DeletedBackupInstancesClient.BeginUndelete. type DeletedBackupInstancesClientUndeleteResponse struct { // placeholder for future response values } -// DppResourceGuardProxyClientDeleteResponse contains the response from method DppResourceGuardProxyClient.Delete. -type DppResourceGuardProxyClientDeleteResponse struct { - // placeholder for future response values -} - -// DppResourceGuardProxyClientGetResponse contains the response from method DppResourceGuardProxyClient.Get. -type DppResourceGuardProxyClientGetResponse struct { - ResourceGuardProxyBaseResource -} - -// DppResourceGuardProxyClientListResponse contains the response from method DppResourceGuardProxyClient.List. -type DppResourceGuardProxyClientListResponse struct { - ResourceGuardProxyBaseResourceList -} - -// DppResourceGuardProxyClientPutResponse contains the response from method DppResourceGuardProxyClient.Put. -type DppResourceGuardProxyClientPutResponse struct { - ResourceGuardProxyBaseResource -} - -// DppResourceGuardProxyClientUnlockDeleteResponse contains the response from method DppResourceGuardProxyClient.UnlockDelete. -type DppResourceGuardProxyClientUnlockDeleteResponse struct { - UnlockDeleteResponse -} - -// ExportJobsClientTriggerResponse contains the response from method ExportJobsClient.Trigger. +// ExportJobsClientTriggerResponse contains the response from method ExportJobsClient.BeginTrigger. type ExportJobsClientTriggerResponse struct { // placeholder for future response values } @@ -227,7 +197,7 @@ type JobsClientGetResponse struct { AzureBackupJobResource } -// JobsClientListResponse contains the response from method JobsClient.List. +// JobsClientListResponse contains the response from method JobsClient.NewListPager. type JobsClientListResponse struct { AzureBackupJobResourceList } @@ -260,7 +230,7 @@ type OperationStatusResourceGroupContextClientGetResponse struct { OperationResource } -// OperationsClientListResponse contains the response from method OperationsClient.List. +// OperationsClientListResponse contains the response from method OperationsClient.NewListPager. type OperationsClientListResponse struct { ClientDiscoveryResponse } @@ -270,7 +240,7 @@ type RecoveryPointsClientGetResponse struct { AzureBackupRecoveryPointResource } -// RecoveryPointsClientListResponse contains the response from method RecoveryPointsClient.List. +// RecoveryPointsClientListResponse contains the response from method RecoveryPointsClient.NewListPager. type RecoveryPointsClientListResponse struct { AzureBackupRecoveryPointResourceList } @@ -280,7 +250,7 @@ type ResourceGuardsClientDeleteResponse struct { // placeholder for future response values } -// ResourceGuardsClientGetBackupSecurityPINRequestsObjectsResponse contains the response from method ResourceGuardsClient.GetBackupSecurityPINRequestsObjects. +// ResourceGuardsClientGetBackupSecurityPINRequestsObjectsResponse contains the response from method ResourceGuardsClient.NewGetBackupSecurityPINRequestsObjectsPager. type ResourceGuardsClientGetBackupSecurityPINRequestsObjectsResponse struct { DppBaseResourceList } @@ -315,27 +285,27 @@ type ResourceGuardsClientGetDefaultUpdateProtectionPolicyRequestsObjectResponse DppBaseResource } -// ResourceGuardsClientGetDeleteProtectedItemRequestsObjectsResponse contains the response from method ResourceGuardsClient.GetDeleteProtectedItemRequestsObjects. +// ResourceGuardsClientGetDeleteProtectedItemRequestsObjectsResponse contains the response from method ResourceGuardsClient.NewGetDeleteProtectedItemRequestsObjectsPager. type ResourceGuardsClientGetDeleteProtectedItemRequestsObjectsResponse struct { DppBaseResourceList } -// ResourceGuardsClientGetDeleteResourceGuardProxyRequestsObjectsResponse contains the response from method ResourceGuardsClient.GetDeleteResourceGuardProxyRequestsObjects. +// ResourceGuardsClientGetDeleteResourceGuardProxyRequestsObjectsResponse contains the response from method ResourceGuardsClient.NewGetDeleteResourceGuardProxyRequestsObjectsPager. type ResourceGuardsClientGetDeleteResourceGuardProxyRequestsObjectsResponse struct { DppBaseResourceList } -// ResourceGuardsClientGetDisableSoftDeleteRequestsObjectsResponse contains the response from method ResourceGuardsClient.GetDisableSoftDeleteRequestsObjects. +// ResourceGuardsClientGetDisableSoftDeleteRequestsObjectsResponse contains the response from method ResourceGuardsClient.NewGetDisableSoftDeleteRequestsObjectsPager. type ResourceGuardsClientGetDisableSoftDeleteRequestsObjectsResponse struct { DppBaseResourceList } -// ResourceGuardsClientGetResourcesInResourceGroupResponse contains the response from method ResourceGuardsClient.GetResourcesInResourceGroup. +// ResourceGuardsClientGetResourcesInResourceGroupResponse contains the response from method ResourceGuardsClient.NewGetResourcesInResourceGroupPager. type ResourceGuardsClientGetResourcesInResourceGroupResponse struct { ResourceGuardResourceList } -// ResourceGuardsClientGetResourcesInSubscriptionResponse contains the response from method ResourceGuardsClient.GetResourcesInSubscription. +// ResourceGuardsClientGetResourcesInSubscriptionResponse contains the response from method ResourceGuardsClient.NewGetResourcesInSubscriptionPager. type ResourceGuardsClientGetResourcesInSubscriptionResponse struct { ResourceGuardResourceList } @@ -345,12 +315,12 @@ type ResourceGuardsClientGetResponse struct { ResourceGuardResource } -// ResourceGuardsClientGetUpdateProtectedItemRequestsObjectsResponse contains the response from method ResourceGuardsClient.GetUpdateProtectedItemRequestsObjects. +// ResourceGuardsClientGetUpdateProtectedItemRequestsObjectsResponse contains the response from method ResourceGuardsClient.NewGetUpdateProtectedItemRequestsObjectsPager. type ResourceGuardsClientGetUpdateProtectedItemRequestsObjectsResponse struct { DppBaseResourceList } -// ResourceGuardsClientGetUpdateProtectionPolicyRequestsObjectsResponse contains the response from method ResourceGuardsClient.GetUpdateProtectionPolicyRequestsObjects. +// ResourceGuardsClientGetUpdateProtectionPolicyRequestsObjectsResponse contains the response from method ResourceGuardsClient.NewGetUpdateProtectionPolicyRequestsObjectsPager. type ResourceGuardsClientGetUpdateProtectionPolicyRequestsObjectsResponse struct { DppBaseResourceList } diff --git a/sdk/resourcemanager/dataprotection/armdataprotection/restorabletimeranges_client.go b/sdk/resourcemanager/dataprotection/armdataprotection/restorabletimeranges_client.go index 6681f48ffcbf..8c24e35e9f57 100644 --- a/sdk/resourcemanager/dataprotection/armdataprotection/restorabletimeranges_client.go +++ b/sdk/resourcemanager/dataprotection/armdataprotection/restorabletimeranges_client.go @@ -32,9 +32,9 @@ type RestorableTimeRangesClient struct { } // NewRestorableTimeRangesClient creates a new instance of RestorableTimeRangesClient with the specified values. -// subscriptionID - The subscription Id. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewRestorableTimeRangesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*RestorableTimeRangesClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,13 +57,14 @@ func NewRestorableTimeRangesClient(subscriptionID string, credential azcore.Toke // Find - // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-11-01-preview -// resourceGroupName - The name of the resource group where the backup vault is present. -// vaultName - The name of the backup vault. -// backupInstanceName - The name of the backup instance -// parameters - Request body for operation -// options - RestorableTimeRangesClientFindOptions contains the optional parameters for the RestorableTimeRangesClient.Find -// method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - vaultName - The name of the backup vault. +// - backupInstanceName - The name of the backup instance. +// - parameters - Request body for operation +// - options - RestorableTimeRangesClientFindOptions contains the optional parameters for the RestorableTimeRangesClient.Find +// method. func (client *RestorableTimeRangesClient) Find(ctx context.Context, resourceGroupName string, vaultName string, backupInstanceName string, parameters AzureBackupFindRestorableTimeRangesRequest, options *RestorableTimeRangesClientFindOptions) (RestorableTimeRangesClientFindResponse, error) { req, err := client.findCreateRequest(ctx, resourceGroupName, vaultName, backupInstanceName, parameters, options) if err != nil { @@ -82,9 +83,6 @@ func (client *RestorableTimeRangesClient) Find(ctx context.Context, resourceGrou // findCreateRequest creates the Find request. func (client *RestorableTimeRangesClient) findCreateRequest(ctx context.Context, resourceGroupName string, vaultName string, backupInstanceName string, parameters AzureBackupFindRestorableTimeRangesRequest, options *RestorableTimeRangesClientFindOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataProtection/backupVaults/{vaultName}/backupInstances/{backupInstanceName}/findRestorableTimeRanges" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -103,7 +101,7 @@ func (client *RestorableTimeRangesClient) findCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-11-01-preview") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, parameters) diff --git a/sdk/resourcemanager/dataprotection/armdataprotection/restorabletimeranges_client_example_test.go b/sdk/resourcemanager/dataprotection/armdataprotection/restorabletimeranges_client_example_test.go index 2105cacf28ba..c20db2296468 100644 --- a/sdk/resourcemanager/dataprotection/armdataprotection/restorabletimeranges_client_example_test.go +++ b/sdk/resourcemanager/dataprotection/armdataprotection/restorabletimeranges_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armdataprotection_test @@ -17,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/dataprotection/armdataprotection/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/dataprotection/resource-manager/Microsoft.DataProtection/preview/2022-11-01-preview/examples/BackupInstanceOperations/FindRestorableTimeRanges.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3035214dea933cd02b1ecfa982c185a572f84b8a/specification/dataprotection/resource-manager/Microsoft.DataProtection/stable/2023-01-01/examples/BackupInstanceOperations/FindRestorableTimeRanges.json func ExampleRestorableTimeRangesClient_Find() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -36,6 +37,20 @@ func ExampleRestorableTimeRangesClient_Find() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.AzureBackupFindRestorableTimeRangesResponseResource = armdataprotection.AzureBackupFindRestorableTimeRangesResponseResource{ + // Type: to.Ptr("Microsoft.DataProtection/backupVaults/backupInstances/findRestorableTimeRanges"), + // ID: to.Ptr("zblobbackuptestsa58"), + // Properties: &armdataprotection.AzureBackupFindRestorableTimeRangesResponse{ + // ObjectType: to.Ptr("AzureBackupFindRestorableTimeRangesResponse"), + // RestorableTimeRanges: []*armdataprotection.RestorableTimeRange{ + // { + // EndTime: to.Ptr("2021-02-24T00:35:17.0000000Z"), + // ObjectType: to.Ptr("RestorableTimeRange"), + // StartTime: to.Ptr("2021-02-23T18:33:51.6349708Z"), + // }}, + // }, + // } } diff --git a/sdk/resourcemanager/dataprotection/armdataprotection/time_rfc3339.go b/sdk/resourcemanager/dataprotection/armdataprotection/time_rfc3339.go index c98824f86dfa..8ee2848040f9 100644 --- a/sdk/resourcemanager/dataprotection/armdataprotection/time_rfc3339.go +++ b/sdk/resourcemanager/dataprotection/armdataprotection/time_rfc3339.go @@ -62,7 +62,7 @@ func (t *timeRFC3339) Parse(layout, value string) error { return err } -func populateTimeRFC3339(m map[string]interface{}, k string, t *time.Time) { +func populateTimeRFC3339(m map[string]any, k string, t *time.Time) { if t == nil { return } else if azcore.IsNullValue(t) { From 8000b7a34712f590ea6858c7f7124549626385d1 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 21 Feb 2023 07:12:45 -0800 Subject: [PATCH 035/107] Bump golang.org/x/net from 0.5.0 to 0.7.0 in /sdk/azcore (#20038) Bumps [golang.org/x/net](https://github.com/golang/net) from 0.5.0 to 0.7.0. - [Release notes](https://github.com/golang/net/releases) - [Commits](https://github.com/golang/net/compare/v0.5.0...v0.7.0) --- updated-dependencies: - dependency-name: golang.org/x/net dependency-type: direct:production ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- sdk/azcore/go.mod | 4 ++-- sdk/azcore/go.sum | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/sdk/azcore/go.mod b/sdk/azcore/go.mod index 61645d496c0b..7c4b07230f23 100644 --- a/sdk/azcore/go.mod +++ b/sdk/azcore/go.mod @@ -5,12 +5,12 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/internal v1.1.2 github.com/stretchr/testify v1.7.0 - golang.org/x/net v0.5.0 + golang.org/x/net v0.7.0 ) require ( github.com/davecgh/go-spew v1.1.0 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect - golang.org/x/text v0.6.0 // indirect + golang.org/x/text v0.7.0 // indirect gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c // indirect ) diff --git a/sdk/azcore/go.sum b/sdk/azcore/go.sum index e6e3bd4fa2b1..417d560cac01 100644 --- a/sdk/azcore/go.sum +++ b/sdk/azcore/go.sum @@ -7,10 +7,10 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN 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/net v0.5.0 h1:GyT4nK/YDHSqa1c4753ouYCDajOYKTja9Xb/OHtgvSw= -golang.org/x/net v0.5.0/go.mod h1:DivGGAXEgPSlEBzxGzZI+ZLohi+xUj054jfeKui00ws= -golang.org/x/text v0.6.0 h1:3XmdazWV+ubf7QgHSTWeykHOci5oeekaGJBLkrkaw4k= -golang.org/x/text v0.6.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +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/text v0.7.0 h1:4BRB4x83lYWy72KwLD/qYDuTu7q9PjSagHvijDw7cLo= +golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo= From 82977624dd73caeb69c989a2a814bb0581cd082b Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Tue, 21 Feb 2023 18:13:36 -0500 Subject: [PATCH 036/107] Add vmImage back to common perf.yml - Fixes #5466 - Partially reverts #5456 (#20043) Co-authored-by: Mike Harder --- eng/common/pipelines/templates/jobs/perf.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/eng/common/pipelines/templates/jobs/perf.yml b/eng/common/pipelines/templates/jobs/perf.yml index 073e5de641cb..d1204f284ceb 100644 --- a/eng/common/pipelines/templates/jobs/perf.yml +++ b/eng/common/pipelines/templates/jobs/perf.yml @@ -8,9 +8,15 @@ parameters: - name: LinuxPool type: string default: 'azsdk-pool-mms-ubuntu-2204-perf' +- name: LinuxVmImage + type: string + default: 'ubuntu-22.04' - name: WindowsPool type: string default: 'azsdk-pool-mms-win-2022-perf' +- name: WindowsVmImage + type: string + default: 'windows-2022' - name: Language type: string default: '' @@ -68,10 +74,12 @@ jobs: ${{ if contains(parameters.OperatingSystems, 'Linux') }}: Linux: Pool: ${{ parameters.LinuxPool }} + OsVmImage: ${{ parameters.LinuxVmImage }} MatrixName: 'Linux' ${{ if contains(parameters.OperatingSystems, 'Windows') }}: Windows: Pool: ${{ parameters.WindowsPool }} + OsVmImage: ${{ parameters.WindowsVmImage }} MatrixName: 'Windows' variables: - ${{ parameters.Variables }} @@ -82,6 +90,7 @@ jobs: value: '' pool: name: $(Pool) + vmImage: $(OSVmImage) steps: - template: /eng/common/pipelines/templates/steps/sparse-checkout.yml @@ -100,6 +109,10 @@ jobs: Commitish: ${{ parameters.ToolsRepoCommitish }} WorkingDirectory: $(System.DefaultWorkingDirectory)/azure-sdk-tools + - template: /eng/common/pipelines/templates/steps/verify-agent-os.yml + parameters: + AgentImage: $(OSVmImage) + - ${{ parameters.InstallLanguageSteps }} - template: /eng/common/TestResources/deploy-test-resources.yml From 33d689e5aef3f21ed80df125c5096b20df2e39c5 Mon Sep 17 00:00:00 2001 From: Chenjie Shi Date: Wed, 22 Feb 2023 10:31:07 +0800 Subject: [PATCH 037/107] Add GenerateAlphaNumericID for test-proxy to recording package (#20009) * Add GenerateAlphaNumericID for test-proxy to recording package * refine with review comment --- sdk/internal/recording/recording.go | 144 ++++++++++++------ sdk/internal/recording/recording_test.go | 43 ++++++ .../TestGenerateAlphaNumericID.json | 6 + 3 files changed, 149 insertions(+), 44 deletions(-) create mode 100644 sdk/internal/recording/testdata/recordings/TestGenerateAlphaNumericID.json diff --git a/sdk/internal/recording/recording.go b/sdk/internal/recording/recording.go index e4acd49a84a8..b9b2a3e0ca4a 100644 --- a/sdk/internal/recording/recording.go +++ b/sdk/internal/recording/recording.go @@ -237,38 +237,8 @@ func (r *Recording) UUID() uuid.UUID { // GenerateAlphaNumericID will generate a recorded random alpha numeric id // if the recording has a randomSeed already set, the value will be generated from that seed, else a new random seed will be used func (r *Recording) GenerateAlphaNumericID(prefix string, length int, lowercaseOnly bool) (string, error) { - - if length <= len(prefix) { - return "", errors.New("length must be greater than prefix") - } - r.initRandomSource() - - sb := strings.Builder{} - sb.Grow(length) - sb.WriteString(prefix) - i := length - len(prefix) - 1 - // A src.Int63() generates 63 random bits, enough for letterIdxMax characters! - for cache, remain := r.src.Int63(), letterIdxMax; i >= 0; { - if remain == 0 { - cache, remain = r.src.Int63(), letterIdxMax - } - if lowercaseOnly { - if idx := int(cache & letterIdxMask); idx < len(alphanumericLowercaseBytes) { - sb.WriteByte(alphanumericLowercaseBytes[idx]) - i-- - } - } else { - if idx := int(cache & letterIdxMask); idx < len(alphanumericBytes) { - sb.WriteByte(alphanumericBytes[idx]) - i-- - } - } - cache >>= letterIdxBits - remain-- - } - str := sb.String() - return str, nil + return generateAlphaNumericID(prefix, length, lowercaseOnly, r.src) } // getRequiredEnv gets an environment variable by name and returns an error if it is not found @@ -496,22 +466,27 @@ func init() { } } -var recordMode string -var rootCAs *x509.CertPool +var ( + recordMode string + rootCAs *x509.CertPool +) const ( - RecordingMode = "record" - PlaybackMode = "playback" - LiveMode = "live" - IDHeader = "x-recording-id" - ModeHeader = "x-recording-mode" - UpstreamURIHeader = "x-recording-upstream-base-uri" + RecordingMode = "record" + PlaybackMode = "playback" + LiveMode = "live" + IDHeader = "x-recording-id" + ModeHeader = "x-recording-mode" + UpstreamURIHeader = "x-recording-upstream-base-uri" + recordingRandSeedVarKey = "randSeed" ) type recordedTest struct { - recordingId string - liveOnly bool - variables map[string]interface{} + recordingId string + liveOnly bool + variables map[string]interface{} + recordingSeed int64 + recordingRandSrc rand.Source } // testMap maps test names to metadata @@ -534,6 +509,11 @@ func (t *testMap) Store(name string, data recordedTest) { t.m.Store(name, data) } +// Remove delete metadata for the named test +func (t *testMap) Remove(name string) { + t.m.Delete(name) +} + var testSuite = testMap{&sync.Map{}} var client = http.Client{ @@ -778,6 +758,12 @@ func Stop(t *testing.T, options *RecordingOptions) error { // test should only be run live, don't want to generate recording return nil } + if testStruct.recordingSeed != 0 { + if options.Variables == nil { + options.Variables = map[string]interface{}{} + } + options.Variables[recordingRandSeedVarKey] = strconv.FormatInt(testStruct.recordingSeed, 10) + } } url := fmt.Sprintf("%v/%v/stop", options.baseURL(), recordMode) @@ -801,6 +787,7 @@ func Stop(t *testing.T, options *RecordingOptions) error { return errors.New("Recording ID was never set. Did you call StartRecording?") } req.Header.Set(IDHeader, recTest.recordingId) + testSuite.Remove(t.Name()) resp, err := client.Do(req) if resp.StatusCode != 200 { b, err := io.ReadAll(resp.Body) @@ -814,7 +801,76 @@ func Stop(t *testing.T, options *RecordingOptions) error { return err } -// This looks up an environment variable and if it is not found, returns the recordedValue +func getRandomSource(t *testing.T) rand.Source { + if testStruct, ok := testSuite.Load(t.Name()); ok { + if testStruct.recordingRandSrc != nil { + return testStruct.recordingRandSrc + } + } + + var seed int64 + var err error + + variables := GetVariables(t) + seedString, ok := variables[recordingRandSeedVarKey] + if ok { + seed, err = strconv.ParseInt(seedString.(string), 10, 64) + } + + // We did not have a random seed already stored; create a new one + if !ok || err != nil || GetRecordMode() == "live" { + seed = time.Now().Unix() + } + + source := rand.NewSource(seed) + if testStruct, ok := testSuite.Load(t.Name()); ok { + testStruct.recordingSeed = seed + testStruct.recordingRandSrc = source + testSuite.Store(t.Name(), testStruct) + } + + return source +} + +// GenerateAlphaNumericID will generate a recorded random alpha numeric id. +// When live mode or the recording has a randomSeed already set, the value will be generated from that seed, else a new random seed will be used. +func GenerateAlphaNumericID(t *testing.T, prefix string, length int, lowercaseOnly bool) (string, error) { + return generateAlphaNumericID(prefix, length, lowercaseOnly, getRandomSource(t)) +} + +func generateAlphaNumericID(prefix string, length int, lowercaseOnly bool, randomSource rand.Source) (string, error) { + if length <= len(prefix) { + return "", errors.New("length must be greater than prefix") + } + + sb := strings.Builder{} + sb.Grow(length) + sb.WriteString(prefix) + i := length - len(prefix) - 1 + // A src.Int63() generates 63 random bits, enough for letterIdxMax characters! + for cache, remain := randomSource.Int63(), letterIdxMax; i >= 0; { + if remain == 0 { + cache, remain = randomSource.Int63(), letterIdxMax + } + if lowercaseOnly { + if idx := int(cache & letterIdxMask); idx < len(alphanumericLowercaseBytes) { + sb.WriteByte(alphanumericLowercaseBytes[idx]) + i-- + } + } else { + if idx := int(cache & letterIdxMask); idx < len(alphanumericBytes) { + sb.WriteByte(alphanumericBytes[idx]) + i-- + } + } + cache >>= letterIdxBits + remain-- + } + str := sb.String() + return str, nil +} + +// GetEnvVariable looks up an environment variable and if it is not found, returns the recordedValue func GetEnvVariable(varName string, recordedValue string) string { val, ok := os.LookupEnv(varName) if !ok || GetRecordMode() == PlaybackMode { @@ -835,7 +891,7 @@ func LiveOnly(t *testing.T) { } } -// Function for sleeping during a test for `duration` seconds. This method will only execute when +// Sleep during a test for `duration` seconds. This method will only execute when // AZURE_RECORD_MODE = "record", if a test is running in playback this will be a noop. func Sleep(duration time.Duration) { if GetRecordMode() != PlaybackMode { diff --git a/sdk/internal/recording/recording_test.go b/sdk/internal/recording/recording_test.go index 2e7ee9bde6a4..5d4d6bbc473a 100644 --- a/sdk/internal/recording/recording_test.go +++ b/sdk/internal/recording/recording_test.go @@ -10,6 +10,7 @@ import ( "encoding/json" "fmt" "io" + "math/rand" "net/http" "os" "path/filepath" @@ -693,3 +694,45 @@ func TestRace(t *testing.T) { }) } } + +func Test_generateAlphaNumericID(t *testing.T) { + seed1 := int64(1234567) + seed2 := int64(7654321) + randomSource1 := rand.NewSource(seed1) + randomSource2 := rand.NewSource(seed2) + randomSource3 := rand.NewSource(seed2) + rand1, err := generateAlphaNumericID("test", 10, false, randomSource1) + require.NoError(t, err) + require.Equal(t, 10, len(rand1)) + require.Equal(t, "test", rand1[0:4]) + rand2, err := generateAlphaNumericID("test", 10, false, randomSource2) + require.NoError(t, err) + rand3, err := generateAlphaNumericID("test", 10, false, randomSource3) + require.NoError(t, err) + require.Equal(t, rand2, rand3) + require.NotEqual(t, rand1, rand2) +} + +func TestGenerateAlphaNumericID(t *testing.T) { + recordMode = RecordingMode + err := Start(t, packagePath, nil) + require.NoError(t, err) + rand1, err := GenerateAlphaNumericID(t, "test", 10, false) + require.NoError(t, err) + rand2, err := GenerateAlphaNumericID(t, "test", 10, false) + require.NoError(t, err) + require.NotEqual(t, rand1, rand2) + err = Stop(t, nil) + require.NoError(t, err) + recordMode = PlaybackMode + err = Start(t, packagePath, nil) + require.NoError(t, err) + rand3, err := GenerateAlphaNumericID(t, "test", 10, false) + require.NoError(t, err) + rand4, err := GenerateAlphaNumericID(t, "test", 10, false) + require.NoError(t, err) + require.Equal(t, rand1, rand3) + require.Equal(t, rand2, rand4) + err = Stop(t, nil) + require.NoError(t, err) +} diff --git a/sdk/internal/recording/testdata/recordings/TestGenerateAlphaNumericID.json b/sdk/internal/recording/testdata/recordings/TestGenerateAlphaNumericID.json new file mode 100644 index 000000000000..412797423e84 --- /dev/null +++ b/sdk/internal/recording/testdata/recordings/TestGenerateAlphaNumericID.json @@ -0,0 +1,6 @@ +{ + "Entries": [], + "Variables": { + "randSeed": "1676365801" + } +} From bdcf6483e30c8e6744d1ade64fe21553b3bb1abf Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Tue, 21 Feb 2023 22:36:10 -0500 Subject: [PATCH 038/107] Temporarily pin Node 18 to 18.13.0 - Fixes #5536 (#20047) Co-authored-by: Mike Harder --- eng/common/pipelines/templates/steps/check-spelling.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eng/common/pipelines/templates/steps/check-spelling.yml b/eng/common/pipelines/templates/steps/check-spelling.yml index a25fd9444118..0c489f089354 100644 --- a/eng/common/pipelines/templates/steps/check-spelling.yml +++ b/eng/common/pipelines/templates/steps/check-spelling.yml @@ -18,8 +18,8 @@ steps: - task: NodeTool@0 condition: and(succeededOrFailed(), ne(variables['Skip.SpellCheck'],'true')) inputs: - versionSpec: 18.x - displayName: Use Node.js 18.x + versionSpec: 18.13.0 + displayName: Use Node.js 18.13.0 - task: PowerShell@2 displayName: Check spelling (cspell) From 03983866a93cf82e74e85befa3a74d1400f223f4 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Wed, 22 Feb 2023 03:46:45 -0500 Subject: [PATCH 039/107] [Release] sdk/resourcemanager/synapse/armsynapse/0.6.0 generation from spec commit: 630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f (#19913) Co-authored-by: ReleaseHelper --- .../synapse/armsynapse/CHANGELOG.md | 50 + .../synapse/armsynapse/autorest.md | 6 +- ...o => azureadonlyauthentications_client.go} | 42 +- ...onlyauthentications_client_example_test.go | 125 + ...pools_client.go => bigdatapools_client.go} | 63 +- .../bigdatapools_client_example_test.go | 367 + ...zz_generated_constants.go => constants.go} | 97 +- ...lient.go => datamaskingpolicies_client.go} | 29 +- ...datamaskingpolicies_client_example_test.go | 127 + ...s_client.go => datamaskingrules_client.go} | 45 +- .../datamaskingrules_client_example_test.go | 288 + ...ndedsqlpoolblobauditingpolicies_client.go} | 43 +- ...lobauditingpolicies_client_example_test.go | 236 + .../synapse/armsynapse/get_client.go | 260 + .../armsynapse/get_client_example_test.go | 102 + sdk/resourcemanager/synapse/armsynapse/go.mod | 6 +- sdk/resourcemanager/synapse/armsynapse/go.sum | 15 +- ...o => integrationruntimeauthkeys_client.go} | 31 +- ...ionruntimeauthkeys_client_example_test.go} | 35 +- ...tegrationruntimeconnectioninfos_client.go} | 18 +- ...imeconnectioninfos_client_example_test.go} | 20 +- ...> integrationruntimecredentials_client.go} | 18 +- ...runtimecredentials_client_example_test.go} | 9 +- ...ntegrationruntimemonitoringdata_client.go} | 18 +- ...ntimemonitoringdata_client_example_test.go | 51 + ...integrationruntimenodeipaddress_client.go} | 20 +- ...ntimenodeipaddress_client_example_test.go} | 16 +- ...t.go => integrationruntimenodes_client.go} | 48 +- ...grationruntimenodes_client_example_test.go | 121 + ...ntegrationruntimeobjectmetadata_client.go} | 34 +- ...ntimeobjectmetadata_client_example_test.go | 577 + ...lient.go => integrationruntimes_client.go} | 139 +- ...integrationruntimes_client_example_test.go | 387 + ....go => integrationruntimestatus_client.go} | 18 +- ...rationruntimestatus_client_example_test.go | 87 + ...es_client.go => ipfirewallrules_client.go} | 64 +- .../ipfirewallrules_client_example_test.go | 189 + ...enerated_keys_client.go => keys_client.go} | 45 +- .../armsynapse/keys_client_example_test.go | 157 + ...ns_client.go => kustooperations_client.go} | 10 +- ...=> kustooperations_client_example_test.go} | 22 +- ...lattacheddatabaseconfigurations_client.go} | 62 +- ...abaseconfigurations_client_example_test.go | 223 + ...nt.go => kustopoolchildresource_client.go} | 20 +- ...topoolchildresource_client_example_test.go | 75 + ...ooldatabaseprincipalassignments_client.go} | 85 +- ...rincipalassignments_client_example_test.go | 207 + ...client.go => kustopooldatabases_client.go} | 76 +- .../kustopooldatabases_client_example_test.go | 208 + ....go => kustopooldataconnections_client.go} | 119 +- ...pooldataconnections_client_example_test.go | 278 + ...> kustopoolprincipalassignments_client.go} | 75 +- ...rincipalassignments_client_example_test.go | 207 + .../kustopoolprivatelinkresources_client.go | 125 + ...rivatelinkresources_client_example_test.go | 69 + ...topools_client.go => kustopools_client.go} | 172 +- .../kustopools_client_example_test.go | 647 + ...ibraries_client.go => libraries_client.go} | 17 +- .../libraries_client_example_test.go | 76 + ...ed_library_client.go => library_client.go} | 16 +- .../armsynapse/library_client_example_test.go | 53 + .../{zz_generated_models.go => models.go} | 340 +- .../synapse/armsynapse/models_serde.go | 12707 ++++++++++++++++ ...rations_client.go => operations_client.go} | 39 +- .../operations_client_example_test.go | 1579 ++ ...phic_helpers.go => polymorphic_helpers.go} | 17 +- ...o => privateendpointconnections_client.go} | 54 +- ...endpointconnections_client_example_test.go | 167 + ...dpointconnectionsprivatelinkhub_client.go} | 28 +- ...tionsprivatelinkhub_client_example_test.go | 108 + ...vatelinkhubprivatelinkresources_client.go} | 28 +- ...rivatelinkresources_client_example_test.go | 90 + ...bs_client.go => privatelinkhubs_client.go} | 57 +- .../privatelinkhubs_client_example_test.go | 250 + ...ient.go => privatelinkresources_client.go} | 28 +- ...rivatelinkresources_client_example_test.go | 90 + ...ed_response_types.go => response_types.go} | 308 +- ...go => restorabledroppedsqlpools_client.go} | 28 +- ...abledroppedsqlpools_client_example_test.go | 111 + ...client.go => sparkconfiguration_client.go} | 16 +- .../sparkconfiguration_client_example_test.go | 66 + ...lient.go => sparkconfigurations_client.go} | 17 +- ...sparkconfigurations_client_example_test.go | 102 + ... => sqlpoolblobauditingpolicies_client.go} | 43 +- ...lobauditingpolicies_client_example_test.go | 195 + ...mns_client.go => sqlpoolcolumns_client.go} | 22 +- .../sqlpoolcolumns_client_example_test.go | 46 + ...go => sqlpoolconnectionpolicies_client.go} | 20 +- ...lconnectionpolicies_client_example_test.go | 53 + ...pooldatawarehouseuseractivities_client.go} | 20 +- ...houseuseractivities_client_example_test.go | 46 + ....go => sqlpoolgeobackuppolicies_client.go} | 47 +- ...olgeobackuppolicies_client_example_test.go | 119 + ...sqlpoolmaintenancewindowoptions_client.go} | 20 +- ...enancewindowoptions_client_example_test.go | 57 + ...go => sqlpoolmaintenancewindows_client.go} | 35 +- ...lmaintenancewindows_client_example_test.go | 78 + ...o => sqlpoolmetadatasyncconfigs_client.go} | 35 +- ...metadatasyncconfigs_client_example_test.go | 79 + ...t.go => sqlpooloperationresults_client.go} | 57 +- ...ooloperationresults_client_example_test.go | 58 + ..._client.go => sqlpooloperations_client.go} | 18 +- .../sqlpooloperations_client_example_test.go | 80 + ...oolrecommendedsensitivitylabels_client.go} | 18 +- ...edsensitivitylabels_client_example_test.go | 62 + ...t.go => sqlpoolreplicationlinks_client.go} | 32 +- ...oolreplicationlinks_client_example_test.go | 102 + ...ient.go => sqlpoolrestorepoints_client.go} | 59 +- ...qlpoolrestorepoints_client_example_test.go | 164 + ..._sqlpools_client.go => sqlpools_client.go} | 129 +- .../sqlpools_client_example_test.go | 486 + ...mas_client.go => sqlpoolschemas_client.go} | 28 +- .../sqlpoolschemas_client_example_test.go | 81 + ...=> sqlpoolsecurityalertpolicies_client.go} | 47 +- ...curityalertpolicies_client_example_test.go | 193 + ....go => sqlpoolsensitivitylabels_client.go} | 131 +- ...olsensitivitylabels_client_example_test.go | 303 + ...lient.go => sqlpooltablecolumns_client.go} | 23 +- ...sqlpooltablecolumns_client_example_test.go | 62 + ...bles_client.go => sqlpooltables_client.go} | 34 +- .../sqlpooltables_client_example_test.go | 81 + ...lpooltransparentdataencryptions_client.go} | 47 +- ...rentdataencryptions_client_example_test.go | 118 + ...ages_client.go => sqlpoolusages_client.go} | 17 +- ...o => sqlpoolusages_client_example_test.go} | 26 +- ...rabilityassessmentrulebaselines_client.go} | 66 +- ...ssmentrulebaselines_client_example_test.go | 144 + ...sqlpoolvulnerabilityassessments_client.go} | 60 +- ...rabilityassessments_client_example_test.go | 235 + ...oolvulnerabilityassessmentscans_client.go} | 67 +- ...lityassessmentscans_client_example_test.go | 179 + ...go => sqlpoolworkloadclassifier_client.go} | 70 +- ...lworkloadclassifier_client_example_test.go | 227 + ...ient.go => sqlpoolworkloadgroup_client.go} | 62 +- ...qlpoolworkloadgroup_client_example_test.go | 229 + ...erated_time_rfc3339.go => time_rfc3339.go} | 3 +- ...client.go => workspaceaadadmins_client.go} | 36 +- .../workspaceaadadmins_client_example_test.go | 111 + ...nagedidentitysqlcontrolsettings_client.go} | 28 +- ...ysqlcontrolsettings_client_example_test.go | 89 + ...edsqlserverblobauditingpolicies_client.go} | 42 +- ...lobauditingpolicies_client_example_test.go | 201 + ...rdedicatedsqlminimaltlssettings_client.go} | 42 +- ...lminimaltlssettings_client_example_test.go | 130 + ...gedsqlserverencryptionprotector_client.go} | 54 +- ...encryptionprotector_client_example_test.go | 192 + ...verextendedblobauditingpolicies_client.go} | 42 +- ...lobauditingpolicies_client_example_test.go | 203 + ...gedsqlserverrecoverablesqlpools_client.go} | 28 +- ...recoverablesqlpools_client_example_test.go | 106 + ...gedsqlserversecurityalertpolicy_client.go} | 42 +- ...securityalertpolicy_client_example_test.go | 204 + ...workspacemanagedsqlserverusages_client.go} | 17 +- ...agedsqlserverusages_client_example_test.go | 62 + ...lservervulnerabilityassessments_client.go} | 52 +- ...rabilityassessments_client_example_test.go | 240 + ...kspaces_client.go => workspaces_client.go} | 56 +- .../workspaces_client_example_test.go | 558 + ...ent.go => workspacesqlaadadmins_client.go} | 38 +- ...rkspacesqlaadadmins_client_example_test.go | 111 + ..._azureadonlyauthentications_client_test.go | 99 - ...erated_example_bigdatapools_client_test.go | 176 - ...example_datamaskingpolicies_client_test.go | 70 - ...ed_example_datamaskingrules_client_test.go | 76 - ...sqlpoolblobauditingpolicies_client_test.go | 70 - ...rationruntimemonitoringdata_client_test.go | 40 - ...ple_integrationruntimenodes_client_test.go | 91 - ...rationruntimeobjectmetadata_client_test.go | 71 - ...example_integrationruntimes_client_test.go | 298 - ...le_integrationruntimestatus_client_test.go | 40 - ...ted_example_ipfirewallrules_client_test.go | 165 - .../ze_generated_example_keys_client_test.go | 119 - ...acheddatabaseconfigurations_client_test.go | 145 - ...mple_kustopoolchildresource_client_test.go | 45 - ...atabaseprincipalassignments_client_test.go | 163 - ..._example_kustopooldatabases_client_test.go | 164 - ...le_kustopooldataconnections_client_test.go | 234 - ...stopoolprincipalassignments_client_test.go | 158 - ...enerated_example_kustopools_client_test.go | 395 - ...generated_example_libraries_client_test.go | 43 - ...e_generated_example_library_client_test.go | 40 - ...enerated_example_operations_client_test.go | 106 - ..._privateendpointconnections_client_test.go | 127 - ...ntconnectionsprivatelinkhub_client_test.go | 66 - ...linkhubprivatelinkresources_client_test.go | 66 - ...ted_example_privatelinkhubs_client_test.go | 169 - ...xample_privatelinkresources_client_test.go | 66 - ...e_restorabledroppedsqlpools_client_test.go | 66 - ..._example_sparkconfiguration_client_test.go | 40 - ...example_sparkconfigurations_client_test.go | 43 - ...sqlpoolblobauditingpolicies_client_test.go | 79 - ...ated_example_sqlpoolcolumns_client_test.go | 43 - ...e_sqlpoolconnectionpolicies_client_test.go | 41 - ...datawarehouseuseractivities_client_test.go | 41 - ...le_sqlpoolgeobackuppolicies_client_test.go | 98 - ...oolmaintenancewindowoptions_client_test.go | 41 - ...e_sqlpoolmaintenancewindows_client_test.go | 74 - ..._sqlpoolmetadatasyncconfigs_client_test.go | 69 - ...ple_sqlpooloperationresults_client_test.go | 41 - ...d_example_sqlpooloperations_client_test.go | 44 - ...ecommendedsensitivitylabels_client_test.go | 66 - ...ple_sqlpoolreplicationlinks_client_test.go | 68 - ...xample_sqlpoolrestorepoints_client_test.go | 121 - ..._generated_example_sqlpools_client_test.go | 253 - ...ated_example_sqlpoolschemas_client_test.go | 68 - ...qlpoolsecurityalertpolicies_client_test.go | 108 - ...le_sqlpoolsensitivitylabels_client_test.go | 274 - ...example_sqlpooltablecolumns_client_test.go | 46 - ...rated_example_sqlpooltables_client_test.go | 70 - ...ltransparentdataencryptions_client_test.go | 98 - ...lityassessmentrulebaselines_client_test.go | 115 - ...oolvulnerabilityassessments_client_test.go | 129 - ...ulnerabilityassessmentscans_client_test.go | 122 - ...e_sqlpoolworkloadclassifier_client_test.go | 137 - ...xample_sqlpoolworkloadgroup_client_test.go | 133 - ..._example_workspaceaadadmins_client_test.go | 98 - ...didentitysqlcontrolsettings_client_test.go | 73 - ...lserverblobauditingpolicies_client_test.go | 110 - ...icatedsqlminimaltlssettings_client_test.go | 99 - ...qlserverencryptionprotector_client_test.go | 125 - ...xtendedblobauditingpolicies_client_test.go | 110 - ...qlserverrecoverablesqlpools_client_test.go | 66 - ...qlserversecurityalertpolicy_client_test.go | 108 - ...spacemanagedsqlserverusages_client_test.go | 43 - ...vervulnerabilityassessments_client_test.go | 125 - ...enerated_example_workspaces_client_test.go | 261 - ...ample_workspacesqlaadadmins_client_test.go | 98 - .../armsynapse/zz_generated_models_serde.go | 3312 ---- 228 files changed, 28612 insertions(+), 12318 deletions(-) rename sdk/resourcemanager/synapse/armsynapse/{zz_generated_azureadonlyauthentications_client.go => azureadonlyauthentications_client.go} (90%) create mode 100644 sdk/resourcemanager/synapse/armsynapse/azureadonlyauthentications_client_example_test.go rename sdk/resourcemanager/synapse/armsynapse/{zz_generated_bigdatapools_client.go => bigdatapools_client.go} (90%) create mode 100644 sdk/resourcemanager/synapse/armsynapse/bigdatapools_client_example_test.go rename sdk/resourcemanager/synapse/armsynapse/{zz_generated_constants.go => constants.go} (94%) rename sdk/resourcemanager/synapse/armsynapse/{zz_generated_datamaskingpolicies_client.go => datamaskingpolicies_client.go} (89%) create mode 100644 sdk/resourcemanager/synapse/armsynapse/datamaskingpolicies_client_example_test.go rename sdk/resourcemanager/synapse/armsynapse/{zz_generated_datamaskingrules_client.go => datamaskingrules_client.go} (89%) create mode 100644 sdk/resourcemanager/synapse/armsynapse/datamaskingrules_client_example_test.go rename sdk/resourcemanager/synapse/armsynapse/{zz_generated_extendedsqlpoolblobauditingpolicies_client.go => extendedsqlpoolblobauditingpolicies_client.go} (89%) create mode 100644 sdk/resourcemanager/synapse/armsynapse/extendedsqlpoolblobauditingpolicies_client_example_test.go create mode 100644 sdk/resourcemanager/synapse/armsynapse/get_client.go create mode 100644 sdk/resourcemanager/synapse/armsynapse/get_client_example_test.go rename sdk/resourcemanager/synapse/armsynapse/{zz_generated_integrationruntimeauthkeys_client.go => integrationruntimeauthkeys_client.go} (88%) rename sdk/resourcemanager/synapse/armsynapse/{ze_generated_example_integrationruntimeauthkeys_client_test.go => integrationruntimeauthkeys_client_example_test.go} (50%) rename sdk/resourcemanager/synapse/armsynapse/{zz_generated_integrationruntimeconnectioninfos_client.go => integrationruntimeconnectioninfos_client.go} (89%) rename sdk/resourcemanager/synapse/armsynapse/{ze_generated_example_integrationruntimeconnectioninfos_client_test.go => integrationruntimeconnectioninfos_client_example_test.go} (51%) rename sdk/resourcemanager/synapse/armsynapse/{zz_generated_integrationruntimecredentials_client.go => integrationruntimecredentials_client.go} (89%) rename sdk/resourcemanager/synapse/armsynapse/{ze_generated_example_integrationruntimecredentials_client_test.go => integrationruntimecredentials_client_example_test.go} (76%) rename sdk/resourcemanager/synapse/armsynapse/{zz_generated_integrationruntimemonitoringdata_client.go => integrationruntimemonitoringdata_client.go} (89%) create mode 100644 sdk/resourcemanager/synapse/armsynapse/integrationruntimemonitoringdata_client_example_test.go rename sdk/resourcemanager/synapse/armsynapse/{zz_generated_integrationruntimenodeipaddress_client.go => integrationruntimenodeipaddress_client.go} (89%) rename sdk/resourcemanager/synapse/armsynapse/{ze_generated_example_integrationruntimenodeipaddress_client_test.go => integrationruntimenodeipaddress_client_example_test.go} (58%) rename sdk/resourcemanager/synapse/armsynapse/{zz_generated_integrationruntimenodes_client.go => integrationruntimenodes_client.go} (88%) create mode 100644 sdk/resourcemanager/synapse/armsynapse/integrationruntimenodes_client_example_test.go rename sdk/resourcemanager/synapse/armsynapse/{zz_generated_integrationruntimeobjectmetadata_client.go => integrationruntimeobjectmetadata_client.go} (88%) create mode 100644 sdk/resourcemanager/synapse/armsynapse/integrationruntimeobjectmetadata_client_example_test.go rename sdk/resourcemanager/synapse/armsynapse/{zz_generated_integrationruntimes_client.go => integrationruntimes_client.go} (89%) create mode 100644 sdk/resourcemanager/synapse/armsynapse/integrationruntimes_client_example_test.go rename sdk/resourcemanager/synapse/armsynapse/{zz_generated_integrationruntimestatus_client.go => integrationruntimestatus_client.go} (89%) create mode 100644 sdk/resourcemanager/synapse/armsynapse/integrationruntimestatus_client_example_test.go rename sdk/resourcemanager/synapse/armsynapse/{zz_generated_ipfirewallrules_client.go => ipfirewallrules_client.go} (90%) create mode 100644 sdk/resourcemanager/synapse/armsynapse/ipfirewallrules_client_example_test.go rename sdk/resourcemanager/synapse/armsynapse/{zz_generated_keys_client.go => keys_client.go} (89%) create mode 100644 sdk/resourcemanager/synapse/armsynapse/keys_client_example_test.go rename sdk/resourcemanager/synapse/armsynapse/{zz_generated_kustooperations_client.go => kustooperations_client.go} (92%) rename sdk/resourcemanager/synapse/armsynapse/{ze_generated_example_kustooperations_client_test.go => kustooperations_client_example_test.go} (52%) rename sdk/resourcemanager/synapse/armsynapse/{zz_generated_kustopoolattacheddatabaseconfigurations_client.go => kustopoolattacheddatabaseconfigurations_client.go} (88%) create mode 100644 sdk/resourcemanager/synapse/armsynapse/kustopoolattacheddatabaseconfigurations_client_example_test.go rename sdk/resourcemanager/synapse/armsynapse/{zz_generated_kustopoolchildresource_client.go => kustopoolchildresource_client.go} (88%) create mode 100644 sdk/resourcemanager/synapse/armsynapse/kustopoolchildresource_client_example_test.go rename sdk/resourcemanager/synapse/armsynapse/{zz_generated_kustopooldatabaseprincipalassignments_client.go => kustopooldatabaseprincipalassignments_client.go} (88%) create mode 100644 sdk/resourcemanager/synapse/armsynapse/kustopooldatabaseprincipalassignments_client_example_test.go rename sdk/resourcemanager/synapse/armsynapse/{zz_generated_kustopooldatabases_client.go => kustopooldatabases_client.go} (89%) create mode 100644 sdk/resourcemanager/synapse/armsynapse/kustopooldatabases_client_example_test.go rename sdk/resourcemanager/synapse/armsynapse/{zz_generated_kustopooldataconnections_client.go => kustopooldataconnections_client.go} (88%) create mode 100644 sdk/resourcemanager/synapse/armsynapse/kustopooldataconnections_client_example_test.go rename sdk/resourcemanager/synapse/armsynapse/{zz_generated_kustopoolprincipalassignments_client.go => kustopoolprincipalassignments_client.go} (88%) create mode 100644 sdk/resourcemanager/synapse/armsynapse/kustopoolprincipalassignments_client_example_test.go create mode 100644 sdk/resourcemanager/synapse/armsynapse/kustopoolprivatelinkresources_client.go create mode 100644 sdk/resourcemanager/synapse/armsynapse/kustopoolprivatelinkresources_client_example_test.go rename sdk/resourcemanager/synapse/armsynapse/{zz_generated_kustopools_client.go => kustopools_client.go} (90%) create mode 100644 sdk/resourcemanager/synapse/armsynapse/kustopools_client_example_test.go rename sdk/resourcemanager/synapse/armsynapse/{zz_generated_libraries_client.go => libraries_client.go} (90%) create mode 100644 sdk/resourcemanager/synapse/armsynapse/libraries_client_example_test.go rename sdk/resourcemanager/synapse/armsynapse/{zz_generated_library_client.go => library_client.go} (89%) create mode 100644 sdk/resourcemanager/synapse/armsynapse/library_client_example_test.go rename sdk/resourcemanager/synapse/armsynapse/{zz_generated_models.go => models.go} (96%) create mode 100644 sdk/resourcemanager/synapse/armsynapse/models_serde.go rename sdk/resourcemanager/synapse/armsynapse/{zz_generated_operations_client.go => operations_client.go} (90%) create mode 100644 sdk/resourcemanager/synapse/armsynapse/operations_client_example_test.go rename sdk/resourcemanager/synapse/armsynapse/{zz_generated_polymorphic_helpers.go => polymorphic_helpers.go} (96%) rename sdk/resourcemanager/synapse/armsynapse/{zz_generated_privateendpointconnections_client.go => privateendpointconnections_client.go} (89%) create mode 100644 sdk/resourcemanager/synapse/armsynapse/privateendpointconnections_client_example_test.go rename sdk/resourcemanager/synapse/armsynapse/{zz_generated_privateendpointconnectionsprivatelinkhub_client.go => privateendpointconnectionsprivatelinkhub_client.go} (90%) create mode 100644 sdk/resourcemanager/synapse/armsynapse/privateendpointconnectionsprivatelinkhub_client_example_test.go rename sdk/resourcemanager/synapse/armsynapse/{zz_generated_privatelinkhubprivatelinkresources_client.go => privatelinkhubprivatelinkresources_client.go} (89%) create mode 100644 sdk/resourcemanager/synapse/armsynapse/privatelinkhubprivatelinkresources_client_example_test.go rename sdk/resourcemanager/synapse/armsynapse/{zz_generated_privatelinkhubs_client.go => privatelinkhubs_client.go} (90%) create mode 100644 sdk/resourcemanager/synapse/armsynapse/privatelinkhubs_client_example_test.go rename sdk/resourcemanager/synapse/armsynapse/{zz_generated_privatelinkresources_client.go => privatelinkresources_client.go} (89%) create mode 100644 sdk/resourcemanager/synapse/armsynapse/privatelinkresources_client_example_test.go rename sdk/resourcemanager/synapse/armsynapse/{zz_generated_response_types.go => response_types.go} (86%) rename sdk/resourcemanager/synapse/armsynapse/{zz_generated_restorabledroppedsqlpools_client.go => restorabledroppedsqlpools_client.go} (89%) create mode 100644 sdk/resourcemanager/synapse/armsynapse/restorabledroppedsqlpools_client_example_test.go rename sdk/resourcemanager/synapse/armsynapse/{zz_generated_sparkconfiguration_client.go => sparkconfiguration_client.go} (89%) create mode 100644 sdk/resourcemanager/synapse/armsynapse/sparkconfiguration_client_example_test.go rename sdk/resourcemanager/synapse/armsynapse/{zz_generated_sparkconfigurations_client.go => sparkconfigurations_client.go} (90%) create mode 100644 sdk/resourcemanager/synapse/armsynapse/sparkconfigurations_client_example_test.go rename sdk/resourcemanager/synapse/armsynapse/{zz_generated_sqlpoolblobauditingpolicies_client.go => sqlpoolblobauditingpolicies_client.go} (89%) create mode 100644 sdk/resourcemanager/synapse/armsynapse/sqlpoolblobauditingpolicies_client_example_test.go rename sdk/resourcemanager/synapse/armsynapse/{zz_generated_sqlpoolcolumns_client.go => sqlpoolcolumns_client.go} (88%) create mode 100644 sdk/resourcemanager/synapse/armsynapse/sqlpoolcolumns_client_example_test.go rename sdk/resourcemanager/synapse/armsynapse/{zz_generated_sqlpoolconnectionpolicies_client.go => sqlpoolconnectionpolicies_client.go} (89%) create mode 100644 sdk/resourcemanager/synapse/armsynapse/sqlpoolconnectionpolicies_client_example_test.go rename sdk/resourcemanager/synapse/armsynapse/{zz_generated_sqlpooldatawarehouseuseractivities_client.go => sqlpooldatawarehouseuseractivities_client.go} (89%) create mode 100644 sdk/resourcemanager/synapse/armsynapse/sqlpooldatawarehouseuseractivities_client_example_test.go rename sdk/resourcemanager/synapse/armsynapse/{zz_generated_sqlpoolgeobackuppolicies_client.go => sqlpoolgeobackuppolicies_client.go} (88%) create mode 100644 sdk/resourcemanager/synapse/armsynapse/sqlpoolgeobackuppolicies_client_example_test.go rename sdk/resourcemanager/synapse/armsynapse/{zz_generated_sqlpoolmaintenancewindowoptions_client.go => sqlpoolmaintenancewindowoptions_client.go} (88%) create mode 100644 sdk/resourcemanager/synapse/armsynapse/sqlpoolmaintenancewindowoptions_client_example_test.go rename sdk/resourcemanager/synapse/armsynapse/{zz_generated_sqlpoolmaintenancewindows_client.go => sqlpoolmaintenancewindows_client.go} (87%) create mode 100644 sdk/resourcemanager/synapse/armsynapse/sqlpoolmaintenancewindows_client_example_test.go rename sdk/resourcemanager/synapse/armsynapse/{zz_generated_sqlpoolmetadatasyncconfigs_client.go => sqlpoolmetadatasyncconfigs_client.go} (88%) create mode 100644 sdk/resourcemanager/synapse/armsynapse/sqlpoolmetadatasyncconfigs_client_example_test.go rename sdk/resourcemanager/synapse/armsynapse/{zz_generated_sqlpooloperationresults_client.go => sqlpooloperationresults_client.go} (68%) create mode 100644 sdk/resourcemanager/synapse/armsynapse/sqlpooloperationresults_client_example_test.go rename sdk/resourcemanager/synapse/armsynapse/{zz_generated_sqlpooloperations_client.go => sqlpooloperations_client.go} (90%) create mode 100644 sdk/resourcemanager/synapse/armsynapse/sqlpooloperations_client_example_test.go rename sdk/resourcemanager/synapse/armsynapse/{zz_generated_sqlpoolrecommendedsensitivitylabels_client.go => sqlpoolrecommendedsensitivitylabels_client.go} (89%) create mode 100644 sdk/resourcemanager/synapse/armsynapse/sqlpoolrecommendedsensitivitylabels_client_example_test.go rename sdk/resourcemanager/synapse/armsynapse/{zz_generated_sqlpoolreplicationlinks_client.go => sqlpoolreplicationlinks_client.go} (89%) create mode 100644 sdk/resourcemanager/synapse/armsynapse/sqlpoolreplicationlinks_client_example_test.go rename sdk/resourcemanager/synapse/armsynapse/{zz_generated_sqlpoolrestorepoints_client.go => sqlpoolrestorepoints_client.go} (89%) create mode 100644 sdk/resourcemanager/synapse/armsynapse/sqlpoolrestorepoints_client_example_test.go rename sdk/resourcemanager/synapse/armsynapse/{zz_generated_sqlpools_client.go => sqlpools_client.go} (86%) create mode 100644 sdk/resourcemanager/synapse/armsynapse/sqlpools_client_example_test.go rename sdk/resourcemanager/synapse/armsynapse/{zz_generated_sqlpoolschemas_client.go => sqlpoolschemas_client.go} (90%) create mode 100644 sdk/resourcemanager/synapse/armsynapse/sqlpoolschemas_client_example_test.go rename sdk/resourcemanager/synapse/armsynapse/{zz_generated_sqlpoolsecurityalertpolicies_client.go => sqlpoolsecurityalertpolicies_client.go} (89%) create mode 100644 sdk/resourcemanager/synapse/armsynapse/sqlpoolsecurityalertpolicies_client_example_test.go rename sdk/resourcemanager/synapse/armsynapse/{zz_generated_sqlpoolsensitivitylabels_client.go => sqlpoolsensitivitylabels_client.go} (89%) create mode 100644 sdk/resourcemanager/synapse/armsynapse/sqlpoolsensitivitylabels_client_example_test.go rename sdk/resourcemanager/synapse/armsynapse/{zz_generated_sqlpooltablecolumns_client.go => sqlpooltablecolumns_client.go} (90%) create mode 100644 sdk/resourcemanager/synapse/armsynapse/sqlpooltablecolumns_client_example_test.go rename sdk/resourcemanager/synapse/armsynapse/{zz_generated_sqlpooltables_client.go => sqlpooltables_client.go} (89%) create mode 100644 sdk/resourcemanager/synapse/armsynapse/sqlpooltables_client_example_test.go rename sdk/resourcemanager/synapse/armsynapse/{zz_generated_sqlpooltransparentdataencryptions_client.go => sqlpooltransparentdataencryptions_client.go} (88%) create mode 100644 sdk/resourcemanager/synapse/armsynapse/sqlpooltransparentdataencryptions_client_example_test.go rename sdk/resourcemanager/synapse/armsynapse/{zz_generated_sqlpoolusages_client.go => sqlpoolusages_client.go} (90%) rename sdk/resourcemanager/synapse/armsynapse/{ze_generated_example_sqlpoolusages_client_test.go => sqlpoolusages_client_example_test.go} (51%) rename sdk/resourcemanager/synapse/armsynapse/{zz_generated_sqlpoolvulnerabilityassessmentrulebaselines_client.go => sqlpoolvulnerabilityassessmentrulebaselines_client.go} (85%) create mode 100644 sdk/resourcemanager/synapse/armsynapse/sqlpoolvulnerabilityassessmentrulebaselines_client_example_test.go rename sdk/resourcemanager/synapse/armsynapse/{zz_generated_sqlpoolvulnerabilityassessments_client.go => sqlpoolvulnerabilityassessments_client.go} (89%) create mode 100644 sdk/resourcemanager/synapse/armsynapse/sqlpoolvulnerabilityassessments_client_example_test.go rename sdk/resourcemanager/synapse/armsynapse/{zz_generated_sqlpoolvulnerabilityassessmentscans_client.go => sqlpoolvulnerabilityassessmentscans_client.go} (88%) create mode 100644 sdk/resourcemanager/synapse/armsynapse/sqlpoolvulnerabilityassessmentscans_client_example_test.go rename sdk/resourcemanager/synapse/armsynapse/{zz_generated_sqlpoolworkloadclassifier_client.go => sqlpoolworkloadclassifier_client.go} (89%) create mode 100644 sdk/resourcemanager/synapse/armsynapse/sqlpoolworkloadclassifier_client_example_test.go rename sdk/resourcemanager/synapse/armsynapse/{zz_generated_sqlpoolworkloadgroup_client.go => sqlpoolworkloadgroup_client.go} (89%) create mode 100644 sdk/resourcemanager/synapse/armsynapse/sqlpoolworkloadgroup_client_example_test.go rename sdk/resourcemanager/synapse/armsynapse/{zz_generated_time_rfc3339.go => time_rfc3339.go} (96%) rename sdk/resourcemanager/synapse/armsynapse/{zz_generated_workspaceaadadmins_client.go => workspaceaadadmins_client.go} (89%) create mode 100644 sdk/resourcemanager/synapse/armsynapse/workspaceaadadmins_client_example_test.go rename sdk/resourcemanager/synapse/armsynapse/{zz_generated_workspacemanagedidentitysqlcontrolsettings_client.go => workspacemanagedidentitysqlcontrolsettings_client.go} (89%) create mode 100644 sdk/resourcemanager/synapse/armsynapse/workspacemanagedidentitysqlcontrolsettings_client_example_test.go rename sdk/resourcemanager/synapse/armsynapse/{zz_generated_workspacemanagedsqlserverblobauditingpolicies_client.go => workspacemanagedsqlserverblobauditingpolicies_client.go} (89%) create mode 100644 sdk/resourcemanager/synapse/armsynapse/workspacemanagedsqlserverblobauditingpolicies_client_example_test.go rename sdk/resourcemanager/synapse/armsynapse/{zz_generated_workspacemanagedsqlserverdedicatedsqlminimaltlssettings_client.go => workspacemanagedsqlserverdedicatedsqlminimaltlssettings_client.go} (89%) create mode 100644 sdk/resourcemanager/synapse/armsynapse/workspacemanagedsqlserverdedicatedsqlminimaltlssettings_client_example_test.go rename sdk/resourcemanager/synapse/armsynapse/{zz_generated_workspacemanagedsqlserverencryptionprotector_client.go => workspacemanagedsqlserverencryptionprotector_client.go} (89%) create mode 100644 sdk/resourcemanager/synapse/armsynapse/workspacemanagedsqlserverencryptionprotector_client_example_test.go rename sdk/resourcemanager/synapse/armsynapse/{zz_generated_workspacemanagedsqlserverextendedblobauditingpolicies_client.go => workspacemanagedsqlserverextendedblobauditingpolicies_client.go} (89%) create mode 100644 sdk/resourcemanager/synapse/armsynapse/workspacemanagedsqlserverextendedblobauditingpolicies_client_example_test.go rename sdk/resourcemanager/synapse/armsynapse/{zz_generated_workspacemanagedsqlserverrecoverablesqlpools_client.go => workspacemanagedsqlserverrecoverablesqlpools_client.go} (90%) create mode 100644 sdk/resourcemanager/synapse/armsynapse/workspacemanagedsqlserverrecoverablesqlpools_client_example_test.go rename sdk/resourcemanager/synapse/armsynapse/{zz_generated_workspacemanagedsqlserversecurityalertpolicy_client.go => workspacemanagedsqlserversecurityalertpolicy_client.go} (89%) create mode 100644 sdk/resourcemanager/synapse/armsynapse/workspacemanagedsqlserversecurityalertpolicy_client_example_test.go rename sdk/resourcemanager/synapse/armsynapse/{zz_generated_workspacemanagedsqlserverusages_client.go => workspacemanagedsqlserverusages_client.go} (90%) create mode 100644 sdk/resourcemanager/synapse/armsynapse/workspacemanagedsqlserverusages_client_example_test.go rename sdk/resourcemanager/synapse/armsynapse/{zz_generated_workspacemanagedsqlservervulnerabilityassessments_client.go => workspacemanagedsqlservervulnerabilityassessments_client.go} (89%) create mode 100644 sdk/resourcemanager/synapse/armsynapse/workspacemanagedsqlservervulnerabilityassessments_client_example_test.go rename sdk/resourcemanager/synapse/armsynapse/{zz_generated_workspaces_client.go => workspaces_client.go} (90%) create mode 100644 sdk/resourcemanager/synapse/armsynapse/workspaces_client_example_test.go rename sdk/resourcemanager/synapse/armsynapse/{zz_generated_workspacesqlaadadmins_client.go => workspacesqlaadadmins_client.go} (89%) create mode 100644 sdk/resourcemanager/synapse/armsynapse/workspacesqlaadadmins_client_example_test.go delete mode 100644 sdk/resourcemanager/synapse/armsynapse/ze_generated_example_azureadonlyauthentications_client_test.go delete mode 100644 sdk/resourcemanager/synapse/armsynapse/ze_generated_example_bigdatapools_client_test.go delete mode 100644 sdk/resourcemanager/synapse/armsynapse/ze_generated_example_datamaskingpolicies_client_test.go delete mode 100644 sdk/resourcemanager/synapse/armsynapse/ze_generated_example_datamaskingrules_client_test.go delete mode 100644 sdk/resourcemanager/synapse/armsynapse/ze_generated_example_extendedsqlpoolblobauditingpolicies_client_test.go delete mode 100644 sdk/resourcemanager/synapse/armsynapse/ze_generated_example_integrationruntimemonitoringdata_client_test.go delete mode 100644 sdk/resourcemanager/synapse/armsynapse/ze_generated_example_integrationruntimenodes_client_test.go delete mode 100644 sdk/resourcemanager/synapse/armsynapse/ze_generated_example_integrationruntimeobjectmetadata_client_test.go delete mode 100644 sdk/resourcemanager/synapse/armsynapse/ze_generated_example_integrationruntimes_client_test.go delete mode 100644 sdk/resourcemanager/synapse/armsynapse/ze_generated_example_integrationruntimestatus_client_test.go delete mode 100644 sdk/resourcemanager/synapse/armsynapse/ze_generated_example_ipfirewallrules_client_test.go delete mode 100644 sdk/resourcemanager/synapse/armsynapse/ze_generated_example_keys_client_test.go delete mode 100644 sdk/resourcemanager/synapse/armsynapse/ze_generated_example_kustopoolattacheddatabaseconfigurations_client_test.go delete mode 100644 sdk/resourcemanager/synapse/armsynapse/ze_generated_example_kustopoolchildresource_client_test.go delete mode 100644 sdk/resourcemanager/synapse/armsynapse/ze_generated_example_kustopooldatabaseprincipalassignments_client_test.go delete mode 100644 sdk/resourcemanager/synapse/armsynapse/ze_generated_example_kustopooldatabases_client_test.go delete mode 100644 sdk/resourcemanager/synapse/armsynapse/ze_generated_example_kustopooldataconnections_client_test.go delete mode 100644 sdk/resourcemanager/synapse/armsynapse/ze_generated_example_kustopoolprincipalassignments_client_test.go delete mode 100644 sdk/resourcemanager/synapse/armsynapse/ze_generated_example_kustopools_client_test.go delete mode 100644 sdk/resourcemanager/synapse/armsynapse/ze_generated_example_libraries_client_test.go delete mode 100644 sdk/resourcemanager/synapse/armsynapse/ze_generated_example_library_client_test.go delete mode 100644 sdk/resourcemanager/synapse/armsynapse/ze_generated_example_operations_client_test.go delete mode 100644 sdk/resourcemanager/synapse/armsynapse/ze_generated_example_privateendpointconnections_client_test.go delete mode 100644 sdk/resourcemanager/synapse/armsynapse/ze_generated_example_privateendpointconnectionsprivatelinkhub_client_test.go delete mode 100644 sdk/resourcemanager/synapse/armsynapse/ze_generated_example_privatelinkhubprivatelinkresources_client_test.go delete mode 100644 sdk/resourcemanager/synapse/armsynapse/ze_generated_example_privatelinkhubs_client_test.go delete mode 100644 sdk/resourcemanager/synapse/armsynapse/ze_generated_example_privatelinkresources_client_test.go delete mode 100644 sdk/resourcemanager/synapse/armsynapse/ze_generated_example_restorabledroppedsqlpools_client_test.go delete mode 100644 sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sparkconfiguration_client_test.go delete mode 100644 sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sparkconfigurations_client_test.go delete mode 100644 sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpoolblobauditingpolicies_client_test.go delete mode 100644 sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpoolcolumns_client_test.go delete mode 100644 sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpoolconnectionpolicies_client_test.go delete mode 100644 sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpooldatawarehouseuseractivities_client_test.go delete mode 100644 sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpoolgeobackuppolicies_client_test.go delete mode 100644 sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpoolmaintenancewindowoptions_client_test.go delete mode 100644 sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpoolmaintenancewindows_client_test.go delete mode 100644 sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpoolmetadatasyncconfigs_client_test.go delete mode 100644 sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpooloperationresults_client_test.go delete mode 100644 sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpooloperations_client_test.go delete mode 100644 sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpoolrecommendedsensitivitylabels_client_test.go delete mode 100644 sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpoolreplicationlinks_client_test.go delete mode 100644 sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpoolrestorepoints_client_test.go delete mode 100644 sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpools_client_test.go delete mode 100644 sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpoolschemas_client_test.go delete mode 100644 sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpoolsecurityalertpolicies_client_test.go delete mode 100644 sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpoolsensitivitylabels_client_test.go delete mode 100644 sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpooltablecolumns_client_test.go delete mode 100644 sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpooltables_client_test.go delete mode 100644 sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpooltransparentdataencryptions_client_test.go delete mode 100644 sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpoolvulnerabilityassessmentrulebaselines_client_test.go delete mode 100644 sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpoolvulnerabilityassessments_client_test.go delete mode 100644 sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpoolvulnerabilityassessmentscans_client_test.go delete mode 100644 sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpoolworkloadclassifier_client_test.go delete mode 100644 sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpoolworkloadgroup_client_test.go delete mode 100644 sdk/resourcemanager/synapse/armsynapse/ze_generated_example_workspaceaadadmins_client_test.go delete mode 100644 sdk/resourcemanager/synapse/armsynapse/ze_generated_example_workspacemanagedidentitysqlcontrolsettings_client_test.go delete mode 100644 sdk/resourcemanager/synapse/armsynapse/ze_generated_example_workspacemanagedsqlserverblobauditingpolicies_client_test.go delete mode 100644 sdk/resourcemanager/synapse/armsynapse/ze_generated_example_workspacemanagedsqlserverdedicatedsqlminimaltlssettings_client_test.go delete mode 100644 sdk/resourcemanager/synapse/armsynapse/ze_generated_example_workspacemanagedsqlserverencryptionprotector_client_test.go delete mode 100644 sdk/resourcemanager/synapse/armsynapse/ze_generated_example_workspacemanagedsqlserverextendedblobauditingpolicies_client_test.go delete mode 100644 sdk/resourcemanager/synapse/armsynapse/ze_generated_example_workspacemanagedsqlserverrecoverablesqlpools_client_test.go delete mode 100644 sdk/resourcemanager/synapse/armsynapse/ze_generated_example_workspacemanagedsqlserversecurityalertpolicy_client_test.go delete mode 100644 sdk/resourcemanager/synapse/armsynapse/ze_generated_example_workspacemanagedsqlserverusages_client_test.go delete mode 100644 sdk/resourcemanager/synapse/armsynapse/ze_generated_example_workspacemanagedsqlservervulnerabilityassessments_client_test.go delete mode 100644 sdk/resourcemanager/synapse/armsynapse/ze_generated_example_workspaces_client_test.go delete mode 100644 sdk/resourcemanager/synapse/armsynapse/ze_generated_example_workspacesqlaadadmins_client_test.go delete mode 100644 sdk/resourcemanager/synapse/armsynapse/zz_generated_models_serde.go diff --git a/sdk/resourcemanager/synapse/armsynapse/CHANGELOG.md b/sdk/resourcemanager/synapse/armsynapse/CHANGELOG.md index a673ec08da58..2f5481ba6447 100644 --- a/sdk/resourcemanager/synapse/armsynapse/CHANGELOG.md +++ b/sdk/resourcemanager/synapse/armsynapse/CHANGELOG.md @@ -1,5 +1,55 @@ # Release History +## 0.6.0 (2023-02-24) +### Breaking Changes + +- Type of `ManagedIdentitySQLControlSettingsModelPropertiesGrantSQLControlToManagedIdentity.DesiredState` has been changed from `*ManagedIdentitySQLControlSettingsModelPropertiesGrantSQLControlToManagedIdentityDesiredState` to `*DesiredState` +- Type of `ManagedIdentitySQLControlSettingsModelPropertiesGrantSQLControlToManagedIdentity.ActualState` has been changed from `*ManagedIdentitySQLControlSettingsModelPropertiesGrantSQLControlToManagedIdentityActualState` to `*ActualState` +- Type alias `ManagedIdentitySQLControlSettingsModelPropertiesGrantSQLControlToManagedIdentityActualState` has been removed +- Type alias `ManagedIdentitySQLControlSettingsModelPropertiesGrantSQLControlToManagedIdentityDesiredState` has been removed +- Operation `*SQLPoolOperationResultsClient.GetLocationHeaderResult` has been changed to LRO, use `*SQLPoolOperationResultsClient.BeginGetLocationHeaderResult` instead. +- Operation `*SQLPoolsClient.Update` has been changed to LRO, use `*SQLPoolsClient.BeginUpdate` instead. +- Field `Interface` of struct `BigDataPoolsClientDeleteResponse` has been removed +- Field `Interface` of struct `IPFirewallRulesClientDeleteResponse` has been removed +- Field `Interface` of struct `SQLPoolsClientDeleteResponse` has been removed +- Field `Interface` of struct `SQLPoolsClientPauseResponse` has been removed +- Field `Interface` of struct `SQLPoolsClientResumeResponse` has been removed +- Field `Interface` of struct `WorkspacesClientDeleteResponse` has been removed + +### Features Added + +- New type alias `ActualState` with values `ActualStateDisabled`, `ActualStateDisabling`, `ActualStateEnabled`, `ActualStateEnabling`, `ActualStateUnknown` +- New type alias `DesiredState` with values `DesiredStateDisabled`, `DesiredStateEnabled` +- New type alias `WorkspaceStatus` with values `WorkspaceStatusFailed`, `WorkspaceStatusInProgress`, `WorkspaceStatusSucceeded` +- New function `NewGetClient(string, azcore.TokenCredential, *arm.ClientOptions) (*GetClient, error)` +- New function `*GetClient.IntegrationRuntimeEnableInteractivequery(context.Context, string, string, string, string, *GetClientIntegrationRuntimeEnableInteractivequeryOptions) (GetClientIntegrationRuntimeEnableInteractivequeryResponse, error)` +- New function `*GetClient.IntegrationRuntimeStart(context.Context, string, string, string, string, *GetClientIntegrationRuntimeStartOptions) (GetClientIntegrationRuntimeStartResponse, error)` +- New function `*GetClient.IntegrationRuntimeStop(context.Context, string, string, string, string, *GetClientIntegrationRuntimeStopOptions) (GetClientIntegrationRuntimeStopResponse, error)` +- New function `NewKustoPoolPrivateLinkResourcesClient(string, azcore.TokenCredential, *arm.ClientOptions) (*KustoPoolPrivateLinkResourcesClient, error)` +- New function `*KustoPoolPrivateLinkResourcesClient.NewListPager(string, string, string, *KustoPoolPrivateLinkResourcesClientListOptions) *runtime.Pager[KustoPoolPrivateLinkResourcesClientListResponse]` +- New struct `ErrorResponseAutoGenerated` +- New struct `GetClient` +- New struct `IntegrationRuntimeEnableinteractivequery` +- New struct `IntegrationRuntimeOperationStatus` +- New struct `IntegrationRuntimeStopOperationStatus` +- New struct `KustoPoolPrivateLinkResources` +- New struct `KustoPoolPrivateLinkResourcesClient` +- New struct `KustoPoolPrivateLinkResourcesClientListResponse` +- New struct `PrivateLinkResources` +- New struct `PrivateLinkResourcesProperties` +- New field `IsAutotuneEnabled` in struct `BigDataPoolResourceProperties` +- New anonymous field `BigDataPoolResourceInfo` in struct `BigDataPoolsClientDeleteResponse` +- New field `AADObjectID` in struct `ClusterPrincipalProperties` +- New field `AADObjectID` in struct `DatabasePrincipalProperties` +- New anonymous field `IPFirewallRuleInfo` in struct `IPFirewallRulesClientDeleteResponse` +- New anonymous field `SQLPool` in struct `SQLPoolOperationResultsClientGetLocationHeaderResultResponse` +- New anonymous field `SQLPool` in struct `SQLPoolsClientDeleteResponse` +- New anonymous field `SQLPool` in struct `SQLPoolsClientPauseResponse` +- New anonymous field `SQLPool` in struct `SQLPoolsClientResumeResponse` +- New field `ConfigMergeRule` in struct `SparkConfigurationInfo` +- New anonymous field `Workspace` in struct `WorkspacesClientDeleteResponse` + + ## 0.5.0 (2022-05-17) The package of `github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse` is using our [next generation design principles](https://azure.github.io/azure-sdk/general_introduction.html) since version 0.5.0, which contains breaking changes. diff --git a/sdk/resourcemanager/synapse/armsynapse/autorest.md b/sdk/resourcemanager/synapse/armsynapse/autorest.md index 02e8ad77d55a..2aa56987b1a2 100644 --- a/sdk/resourcemanager/synapse/armsynapse/autorest.md +++ b/sdk/resourcemanager/synapse/armsynapse/autorest.md @@ -5,9 +5,9 @@ ``` yaml azure-arm: true require: -- https://github.com/Azure/azure-rest-api-specs/blob/7a2ac91de424f271cf91cc8009f3fe9ee8249086/specification/synapse/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/7a2ac91de424f271cf91cc8009f3fe9ee8249086/specification/synapse/resource-manager/readme.go.md +- https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/readme.md +- https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 0.5.0 +module-version: 0.6.0 ``` \ No newline at end of file diff --git a/sdk/resourcemanager/synapse/armsynapse/zz_generated_azureadonlyauthentications_client.go b/sdk/resourcemanager/synapse/armsynapse/azureadonlyauthentications_client.go similarity index 90% rename from sdk/resourcemanager/synapse/armsynapse/zz_generated_azureadonlyauthentications_client.go rename to sdk/resourcemanager/synapse/armsynapse/azureadonlyauthentications_client.go index 40204f19763d..f098539dda43 100644 --- a/sdk/resourcemanager/synapse/armsynapse/zz_generated_azureadonlyauthentications_client.go +++ b/sdk/resourcemanager/synapse/armsynapse/azureadonlyauthentications_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse @@ -31,9 +32,9 @@ type AzureADOnlyAuthenticationsClient struct { } // NewAzureADOnlyAuthenticationsClient creates a new instance of AzureADOnlyAuthenticationsClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewAzureADOnlyAuthenticationsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*AzureADOnlyAuthenticationsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,13 +57,14 @@ func NewAzureADOnlyAuthenticationsClient(subscriptionID string, credential azcor // BeginCreate - Create or Update a Azure Active Directory only authentication property for the workspaces // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// azureADOnlyAuthenticationName - name of the property -// azureADOnlyAuthenticationInfo - Azure Active Directory Property -// options - AzureADOnlyAuthenticationsClientBeginCreateOptions contains the optional parameters for the AzureADOnlyAuthenticationsClient.BeginCreate -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - azureADOnlyAuthenticationName - name of the property +// - azureADOnlyAuthenticationInfo - Azure Active Directory Property +// - options - AzureADOnlyAuthenticationsClientBeginCreateOptions contains the optional parameters for the AzureADOnlyAuthenticationsClient.BeginCreate +// method. func (client *AzureADOnlyAuthenticationsClient) BeginCreate(ctx context.Context, resourceGroupName string, workspaceName string, azureADOnlyAuthenticationName AzureADOnlyAuthenticationName, azureADOnlyAuthenticationInfo AzureADOnlyAuthentication, options *AzureADOnlyAuthenticationsClientBeginCreateOptions) (*runtime.Poller[AzureADOnlyAuthenticationsClientCreateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.create(ctx, resourceGroupName, workspaceName, azureADOnlyAuthenticationName, azureADOnlyAuthenticationInfo, options) @@ -79,6 +81,7 @@ func (client *AzureADOnlyAuthenticationsClient) BeginCreate(ctx context.Context, // Create - Create or Update a Azure Active Directory only authentication property for the workspaces // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 func (client *AzureADOnlyAuthenticationsClient) create(ctx context.Context, resourceGroupName string, workspaceName string, azureADOnlyAuthenticationName AzureADOnlyAuthenticationName, azureADOnlyAuthenticationInfo AzureADOnlyAuthentication, options *AzureADOnlyAuthenticationsClientBeginCreateOptions) (*http.Response, error) { req, err := client.createCreateRequest(ctx, resourceGroupName, workspaceName, azureADOnlyAuthenticationName, azureADOnlyAuthenticationInfo, options) @@ -127,12 +130,13 @@ func (client *AzureADOnlyAuthenticationsClient) createCreateRequest(ctx context. // Get - Gets a Azure Active Directory only authentication property // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// azureADOnlyAuthenticationName - name of the property -// options - AzureADOnlyAuthenticationsClientGetOptions contains the optional parameters for the AzureADOnlyAuthenticationsClient.Get -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - azureADOnlyAuthenticationName - name of the property +// - options - AzureADOnlyAuthenticationsClientGetOptions contains the optional parameters for the AzureADOnlyAuthenticationsClient.Get +// method. func (client *AzureADOnlyAuthenticationsClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, azureADOnlyAuthenticationName AzureADOnlyAuthenticationName, options *AzureADOnlyAuthenticationsClientGetOptions) (AzureADOnlyAuthenticationsClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, workspaceName, azureADOnlyAuthenticationName, options) if err != nil { @@ -188,12 +192,12 @@ func (client *AzureADOnlyAuthenticationsClient) getHandleResponse(resp *http.Res } // NewListPager - Gets a list of Azure Active Directory only authentication property for a workspace -// If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// options - AzureADOnlyAuthenticationsClientListOptions contains the optional parameters for the AzureADOnlyAuthenticationsClient.List -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - options - AzureADOnlyAuthenticationsClientListOptions contains the optional parameters for the AzureADOnlyAuthenticationsClient.NewListPager +// method. func (client *AzureADOnlyAuthenticationsClient) NewListPager(resourceGroupName string, workspaceName string, options *AzureADOnlyAuthenticationsClientListOptions) *runtime.Pager[AzureADOnlyAuthenticationsClientListResponse] { return runtime.NewPager(runtime.PagingHandler[AzureADOnlyAuthenticationsClientListResponse]{ More: func(page AzureADOnlyAuthenticationsClientListResponse) bool { diff --git a/sdk/resourcemanager/synapse/armsynapse/azureadonlyauthentications_client_example_test.go b/sdk/resourcemanager/synapse/armsynapse/azureadonlyauthentications_client_example_test.go new file mode 100644 index 000000000000..285477b6e232 --- /dev/null +++ b/sdk/resourcemanager/synapse/armsynapse/azureadonlyauthentications_client_example_test.go @@ -0,0 +1,125 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armsynapse_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetAzureADOnlyAuthentication.json +func ExampleAzureADOnlyAuthenticationsClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewAzureADOnlyAuthenticationsClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "workspace-6852", "workspace-2080", armsynapse.AzureADOnlyAuthenticationNameDefault, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.AzureADOnlyAuthentication = armsynapse.AzureADOnlyAuthentication{ + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/azureADOnlyAuthentications"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-6852/providers/Microsoft.Synapse/workspaces/workspace-2080/azureADOnlyAuthentications/default"), + // Properties: &armsynapse.AzureADOnlyAuthenticationProperties{ + // AzureADOnlyAuthentication: to.Ptr(true), + // CreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-10T00:56:19.2Z"); return t}()), + // State: to.Ptr(armsynapse.StateValueConsistent), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateAzureADOnlyAuthentication.json +func ExampleAzureADOnlyAuthenticationsClient_BeginCreate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewAzureADOnlyAuthenticationsClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreate(ctx, "workspace-6852", "workspace-2080", armsynapse.AzureADOnlyAuthenticationNameDefault, armsynapse.AzureADOnlyAuthentication{ + Properties: &armsynapse.AzureADOnlyAuthenticationProperties{ + AzureADOnlyAuthentication: to.Ptr(true), + }, + }, 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.AzureADOnlyAuthentication = armsynapse.AzureADOnlyAuthentication{ + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/azureADOnlyAuthentications"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-6852/providers/Microsoft.Synapse/workspaces/workspace-2080/azureADOnlyAuthentications/default"), + // Properties: &armsynapse.AzureADOnlyAuthenticationProperties{ + // AzureADOnlyAuthentication: to.Ptr(true), + // CreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-10T00:56:19.2Z"); return t}()), + // State: to.Ptr(armsynapse.StateValueConsistent), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListAzureADOnlyAuthentication.json +func ExampleAzureADOnlyAuthenticationsClient_NewListPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewAzureADOnlyAuthenticationsClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListPager("workspace-6852", "workspace-2080", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.AzureADOnlyAuthenticationListResult = armsynapse.AzureADOnlyAuthenticationListResult{ + // Value: []*armsynapse.AzureADOnlyAuthentication{ + // { + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/azureADOnlyAuthentications"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-6852/providers/Microsoft.Synapse/workspaces/workspace-2080/azureADOnlyAuthentications/default"), + // Properties: &armsynapse.AzureADOnlyAuthenticationProperties{ + // AzureADOnlyAuthentication: to.Ptr(true), + // CreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-10T00:56:19.2Z"); return t}()), + // State: to.Ptr(armsynapse.StateValueConsistent), + // }, + // }}, + // } + } +} diff --git a/sdk/resourcemanager/synapse/armsynapse/zz_generated_bigdatapools_client.go b/sdk/resourcemanager/synapse/armsynapse/bigdatapools_client.go similarity index 90% rename from sdk/resourcemanager/synapse/armsynapse/zz_generated_bigdatapools_client.go rename to sdk/resourcemanager/synapse/armsynapse/bigdatapools_client.go index f65c5b48fdcd..71dd86d492b0 100644 --- a/sdk/resourcemanager/synapse/armsynapse/zz_generated_bigdatapools_client.go +++ b/sdk/resourcemanager/synapse/armsynapse/bigdatapools_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse @@ -32,9 +33,9 @@ type BigDataPoolsClient struct { } // NewBigDataPoolsClient creates a new instance of BigDataPoolsClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewBigDataPoolsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*BigDataPoolsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,13 +58,14 @@ func NewBigDataPoolsClient(subscriptionID string, credential azcore.TokenCredent // BeginCreateOrUpdate - Create a new Big Data pool. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// bigDataPoolName - Big Data pool name -// bigDataPoolInfo - The Big Data pool to create. -// options - BigDataPoolsClientBeginCreateOrUpdateOptions contains the optional parameters for the BigDataPoolsClient.BeginCreateOrUpdate -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - bigDataPoolName - Big Data pool name +// - bigDataPoolInfo - The Big Data pool to create. +// - options - BigDataPoolsClientBeginCreateOrUpdateOptions contains the optional parameters for the BigDataPoolsClient.BeginCreateOrUpdate +// method. func (client *BigDataPoolsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, bigDataPoolName string, bigDataPoolInfo BigDataPoolResourceInfo, options *BigDataPoolsClientBeginCreateOrUpdateOptions) (*runtime.Poller[BigDataPoolsClientCreateOrUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createOrUpdate(ctx, resourceGroupName, workspaceName, bigDataPoolName, bigDataPoolInfo, options) @@ -80,6 +82,7 @@ func (client *BigDataPoolsClient) BeginCreateOrUpdate(ctx context.Context, resou // CreateOrUpdate - Create a new Big Data pool. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview func (client *BigDataPoolsClient) createOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, bigDataPoolName string, bigDataPoolInfo BigDataPoolResourceInfo, options *BigDataPoolsClientBeginCreateOrUpdateOptions) (*http.Response, error) { req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, workspaceName, bigDataPoolName, bigDataPoolInfo, options) @@ -131,12 +134,13 @@ func (client *BigDataPoolsClient) createOrUpdateCreateRequest(ctx context.Contex // BeginDelete - Delete a Big Data pool from the workspace. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// bigDataPoolName - Big Data pool name -// options - BigDataPoolsClientBeginDeleteOptions contains the optional parameters for the BigDataPoolsClient.BeginDelete -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - bigDataPoolName - Big Data pool name +// - options - BigDataPoolsClientBeginDeleteOptions contains the optional parameters for the BigDataPoolsClient.BeginDelete +// method. func (client *BigDataPoolsClient) BeginDelete(ctx context.Context, resourceGroupName string, workspaceName string, bigDataPoolName string, options *BigDataPoolsClientBeginDeleteOptions) (*runtime.Poller[BigDataPoolsClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, workspaceName, bigDataPoolName, options) @@ -153,6 +157,7 @@ func (client *BigDataPoolsClient) BeginDelete(ctx context.Context, resourceGroup // Delete - Delete a Big Data pool from the workspace. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview func (client *BigDataPoolsClient) deleteOperation(ctx context.Context, resourceGroupName string, workspaceName string, bigDataPoolName string, options *BigDataPoolsClientBeginDeleteOptions) (*http.Response, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, workspaceName, bigDataPoolName, options) @@ -201,11 +206,12 @@ func (client *BigDataPoolsClient) deleteCreateRequest(ctx context.Context, resou // Get - Get a Big Data pool. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// bigDataPoolName - Big Data pool name -// options - BigDataPoolsClientGetOptions contains the optional parameters for the BigDataPoolsClient.Get method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - bigDataPoolName - Big Data pool name +// - options - BigDataPoolsClientGetOptions contains the optional parameters for the BigDataPoolsClient.Get method. func (client *BigDataPoolsClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, bigDataPoolName string, options *BigDataPoolsClientGetOptions) (BigDataPoolsClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, workspaceName, bigDataPoolName, options) if err != nil { @@ -261,12 +267,12 @@ func (client *BigDataPoolsClient) getHandleResponse(resp *http.Response) (BigDat } // NewListByWorkspacePager - List Big Data pools in a workspace. -// If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// options - BigDataPoolsClientListByWorkspaceOptions contains the optional parameters for the BigDataPoolsClient.ListByWorkspace -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - options - BigDataPoolsClientListByWorkspaceOptions contains the optional parameters for the BigDataPoolsClient.NewListByWorkspacePager +// method. func (client *BigDataPoolsClient) NewListByWorkspacePager(resourceGroupName string, workspaceName string, options *BigDataPoolsClientListByWorkspaceOptions) *runtime.Pager[BigDataPoolsClientListByWorkspaceResponse] { return runtime.NewPager(runtime.PagingHandler[BigDataPoolsClientListByWorkspaceResponse]{ More: func(page BigDataPoolsClientListByWorkspaceResponse) bool { @@ -332,12 +338,13 @@ func (client *BigDataPoolsClient) listByWorkspaceHandleResponse(resp *http.Respo // Update - Patch a Big Data pool. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// bigDataPoolName - Big Data pool name -// bigDataPoolPatchInfo - The updated Big Data pool properties -// options - BigDataPoolsClientUpdateOptions contains the optional parameters for the BigDataPoolsClient.Update method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - bigDataPoolName - Big Data pool name +// - bigDataPoolPatchInfo - The updated Big Data pool properties +// - options - BigDataPoolsClientUpdateOptions contains the optional parameters for the BigDataPoolsClient.Update method. func (client *BigDataPoolsClient) Update(ctx context.Context, resourceGroupName string, workspaceName string, bigDataPoolName string, bigDataPoolPatchInfo BigDataPoolPatchInfo, options *BigDataPoolsClientUpdateOptions) (BigDataPoolsClientUpdateResponse, error) { req, err := client.updateCreateRequest(ctx, resourceGroupName, workspaceName, bigDataPoolName, bigDataPoolPatchInfo, options) if err != nil { diff --git a/sdk/resourcemanager/synapse/armsynapse/bigdatapools_client_example_test.go b/sdk/resourcemanager/synapse/armsynapse/bigdatapools_client_example_test.go new file mode 100644 index 000000000000..bb98b73ab23e --- /dev/null +++ b/sdk/resourcemanager/synapse/armsynapse/bigdatapools_client_example_test.go @@ -0,0 +1,367 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armsynapse_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/GetBigDataPool.json +func ExampleBigDataPoolsClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewBigDataPoolsClient("01234567-89ab-4def-0123-456789abcdef", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "ExampleResourceGroup", "ExampleWorkspace", "ExamplePool", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.BigDataPoolResourceInfo = armsynapse.BigDataPoolResourceInfo{ + // Name: to.Ptr("ExamplePool"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/bigDataPools"), + // ID: to.Ptr("/subscriptions/01234567-89ab-4def-0123-456789abcdef/resourceGroups/ExampleResourceGroup/providers/Microsoft.Synapse/workspaces/ExampleWorkspace/bigDataPools/ExamplePool"), + // Location: to.Ptr("West US 2"), + // Tags: map[string]*string{ + // }, + // Properties: &armsynapse.BigDataPoolResourceProperties{ + // AutoPause: &armsynapse.AutoPauseProperties{ + // DelayInMinutes: to.Ptr[int32](15), + // Enabled: to.Ptr(true), + // }, + // AutoScale: &armsynapse.AutoScaleProperties{ + // Enabled: to.Ptr(true), + // MaxNodeCount: to.Ptr[int32](50), + // MinNodeCount: to.Ptr[int32](3), + // }, + // CreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1970-01-01T00:00:00Z"); return t}()), + // DefaultSparkLogFolder: to.Ptr("/logs"), + // IsAutotuneEnabled: to.Ptr(false), + // LibraryRequirements: &armsynapse.LibraryRequirements{ + // Content: to.Ptr(""), + // Filename: to.Ptr("requirements.txt"), + // Time: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1970-01-01T00:00:00Z"); return t}()), + // }, + // NodeCount: to.Ptr[int32](4), + // NodeSize: to.Ptr(armsynapse.NodeSizeMedium), + // NodeSizeFamily: to.Ptr(armsynapse.NodeSizeFamilyMemoryOptimized), + // ProvisioningState: to.Ptr("Succeeded"), + // SparkEventsFolder: to.Ptr("/events"), + // SparkVersion: to.Ptr("3.3"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/UpdateBigDataPool.json +func ExampleBigDataPoolsClient_Update() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewBigDataPoolsClient("01234567-89ab-4def-0123-456789abcdef", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Update(ctx, "ExampleResourceGroup", "ExampleWorkspace", "ExamplePool", armsynapse.BigDataPoolPatchInfo{ + Tags: map[string]*string{ + "key": to.Ptr("value"), + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.BigDataPoolResourceInfo = armsynapse.BigDataPoolResourceInfo{ + // Name: to.Ptr("ExamplePool"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/bigDataPools"), + // ID: to.Ptr("/subscriptions/01234567-89ab-4def-0123-456789abcdef/resourceGroups/ExampleResourceGroup/providers/Microsoft.Synapse/workspaces/ExampleWorkspace/bigDataPools/ExamplePool"), + // Location: to.Ptr("West US 2"), + // Tags: map[string]*string{ + // "key": to.Ptr("value"), + // }, + // Properties: &armsynapse.BigDataPoolResourceProperties{ + // AutoPause: &armsynapse.AutoPauseProperties{ + // DelayInMinutes: to.Ptr[int32](15), + // Enabled: to.Ptr(true), + // }, + // AutoScale: &armsynapse.AutoScaleProperties{ + // Enabled: to.Ptr(true), + // MaxNodeCount: to.Ptr[int32](50), + // MinNodeCount: to.Ptr[int32](3), + // }, + // CreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1970-01-01T00:00:00Z"); return t}()), + // DefaultSparkLogFolder: to.Ptr("/logs"), + // IsAutotuneEnabled: to.Ptr(false), + // LibraryRequirements: &armsynapse.LibraryRequirements{ + // Content: to.Ptr(""), + // Filename: to.Ptr("requirements.txt"), + // Time: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1970-01-01T00:00:00Z"); return t}()), + // }, + // NodeCount: to.Ptr[int32](4), + // NodeSize: to.Ptr(armsynapse.NodeSizeMedium), + // NodeSizeFamily: to.Ptr(armsynapse.NodeSizeFamilyMemoryOptimized), + // ProvisioningState: to.Ptr("Succeeded"), + // SparkEventsFolder: to.Ptr("/events"), + // SparkVersion: to.Ptr("3.3"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/CreateOrUpdateBigDataPool.json +func ExampleBigDataPoolsClient_BeginCreateOrUpdate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewBigDataPoolsClient("01234567-89ab-4def-0123-456789abcdef", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreateOrUpdate(ctx, "ExampleResourceGroup", "ExampleWorkspace", "ExamplePool", armsynapse.BigDataPoolResourceInfo{ + Location: to.Ptr("West US 2"), + Tags: map[string]*string{ + "key": to.Ptr("value"), + }, + Properties: &armsynapse.BigDataPoolResourceProperties{ + AutoPause: &armsynapse.AutoPauseProperties{ + DelayInMinutes: to.Ptr[int32](15), + Enabled: to.Ptr(true), + }, + AutoScale: &armsynapse.AutoScaleProperties{ + Enabled: to.Ptr(true), + MaxNodeCount: to.Ptr[int32](50), + MinNodeCount: to.Ptr[int32](3), + }, + DefaultSparkLogFolder: to.Ptr("/logs"), + IsAutotuneEnabled: to.Ptr(false), + LibraryRequirements: &armsynapse.LibraryRequirements{ + Content: to.Ptr(""), + Filename: to.Ptr("requirements.txt"), + }, + NodeCount: to.Ptr[int32](4), + NodeSize: to.Ptr(armsynapse.NodeSizeMedium), + NodeSizeFamily: to.Ptr(armsynapse.NodeSizeFamilyMemoryOptimized), + SparkEventsFolder: to.Ptr("/events"), + SparkVersion: to.Ptr("3.3"), + }, + }, &armsynapse.BigDataPoolsClientBeginCreateOrUpdateOptions{Force: 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.BigDataPoolResourceInfo = armsynapse.BigDataPoolResourceInfo{ + // Name: to.Ptr("ExamplePool"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/bigDataPools"), + // ID: to.Ptr("/subscriptions/01234567-89ab-4def-0123-456789abcdef/resourceGroups/ExampleResourceGroup/providers/Microsoft.Synapse/workspaces/ExampleWorkspace/bigDataPools/ExamplePool"), + // Location: to.Ptr("West US 2"), + // Tags: map[string]*string{ + // "key": to.Ptr("value"), + // }, + // Properties: &armsynapse.BigDataPoolResourceProperties{ + // AutoPause: &armsynapse.AutoPauseProperties{ + // DelayInMinutes: to.Ptr[int32](15), + // Enabled: to.Ptr(true), + // }, + // AutoScale: &armsynapse.AutoScaleProperties{ + // Enabled: to.Ptr(true), + // MaxNodeCount: to.Ptr[int32](50), + // MinNodeCount: to.Ptr[int32](3), + // }, + // CreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1970-01-01T00:00:00Z"); return t}()), + // DefaultSparkLogFolder: to.Ptr("/logs"), + // IsAutotuneEnabled: to.Ptr(false), + // LastSucceededTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1970-01-01T10:00:00Z"); return t}()), + // LibraryRequirements: &armsynapse.LibraryRequirements{ + // Content: to.Ptr(""), + // Filename: to.Ptr("requirements.txt"), + // Time: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1970-01-01T00:00:00Z"); return t}()), + // }, + // NodeCount: to.Ptr[int32](4), + // NodeSize: to.Ptr(armsynapse.NodeSizeMedium), + // NodeSizeFamily: to.Ptr(armsynapse.NodeSizeFamilyMemoryOptimized), + // ProvisioningState: to.Ptr("Succeeded"), + // SparkEventsFolder: to.Ptr("/events"), + // SparkVersion: to.Ptr("3.3"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/DeleteBigDataPool.json +func ExampleBigDataPoolsClient_BeginDelete() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewBigDataPoolsClient("01234567-89ab-4def-0123-456789abcdef", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginDelete(ctx, "ExampleResourceGroup", "ExampleWorkspace", "ExamplePool", 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.BigDataPoolResourceInfo = armsynapse.BigDataPoolResourceInfo{ + // Name: to.Ptr("ExamplePool"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/bigDataPools"), + // ID: to.Ptr("/subscriptions/01234567-89ab-4def-0123-456789abcdef/resourceGroups/ExampleResourceGroup/providers/Microsoft.Synapse/workspaces/ExampleWorkspace/bigDataPools/ExamplePool"), + // Location: to.Ptr("West US 2"), + // Tags: map[string]*string{ + // }, + // Properties: &armsynapse.BigDataPoolResourceProperties{ + // AutoPause: &armsynapse.AutoPauseProperties{ + // DelayInMinutes: to.Ptr[int32](15), + // Enabled: to.Ptr(true), + // }, + // AutoScale: &armsynapse.AutoScaleProperties{ + // Enabled: to.Ptr(true), + // MaxNodeCount: to.Ptr[int32](50), + // MinNodeCount: to.Ptr[int32](3), + // }, + // CreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1970-01-01T00:00:00Z"); return t}()), + // DefaultSparkLogFolder: to.Ptr("/logs"), + // IsAutotuneEnabled: to.Ptr(false), + // LibraryRequirements: &armsynapse.LibraryRequirements{ + // Content: to.Ptr(""), + // Filename: to.Ptr("requirements.txt"), + // Time: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1970-01-01T00:00:00Z"); return t}()), + // }, + // NodeCount: to.Ptr[int32](4), + // NodeSize: to.Ptr(armsynapse.NodeSizeMedium), + // NodeSizeFamily: to.Ptr(armsynapse.NodeSizeFamilyMemoryOptimized), + // ProvisioningState: to.Ptr("Succeeded"), + // SparkEventsFolder: to.Ptr("/events"), + // SparkVersion: to.Ptr("3.3"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ListBigDataPoolsInWorkspace.json +func ExampleBigDataPoolsClient_NewListByWorkspacePager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewBigDataPoolsClient("01234567-89ab-4def-0123-456789abcdef", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListByWorkspacePager("ExampleResourceGroup", "ExampleWorkspace", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.BigDataPoolResourceInfoListResult = armsynapse.BigDataPoolResourceInfoListResult{ + // Value: []*armsynapse.BigDataPoolResourceInfo{ + // { + // Name: to.Ptr("ExamplePool"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/bigDataPools"), + // ID: to.Ptr("/subscriptions/01234567-89ab-4def-0123-456789abcdef/resourceGroups/ExampleResourceGroup/providers/Microsoft.Synapse/workspaces/ExampleWorkspace/bigDataPools/ExamplePool"), + // Location: to.Ptr("West US 2"), + // Tags: map[string]*string{ + // }, + // Properties: &armsynapse.BigDataPoolResourceProperties{ + // AutoPause: &armsynapse.AutoPauseProperties{ + // DelayInMinutes: to.Ptr[int32](15), + // Enabled: to.Ptr(true), + // }, + // AutoScale: &armsynapse.AutoScaleProperties{ + // Enabled: to.Ptr(true), + // MaxNodeCount: to.Ptr[int32](50), + // MinNodeCount: to.Ptr[int32](3), + // }, + // CreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1970-01-01T00:00:00Z"); return t}()), + // DefaultSparkLogFolder: to.Ptr("/logs"), + // IsAutotuneEnabled: to.Ptr(false), + // LibraryRequirements: &armsynapse.LibraryRequirements{ + // Content: to.Ptr(""), + // Filename: to.Ptr("requirements.txt"), + // Time: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1970-01-01T00:00:00Z"); return t}()), + // }, + // NodeCount: to.Ptr[int32](4), + // NodeSize: to.Ptr(armsynapse.NodeSizeMedium), + // NodeSizeFamily: to.Ptr(armsynapse.NodeSizeFamilyMemoryOptimized), + // ProvisioningState: to.Ptr("Succeeded"), + // SparkEventsFolder: to.Ptr("/events"), + // SparkVersion: to.Ptr("3.3"), + // }, + // }, + // { + // Name: to.Ptr("ExamplePool2"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/bigDataPools"), + // ID: to.Ptr("/subscriptions/01234567-89ab-4def-0123-456789abcdef/resourceGroups/ExampleResourceGroup/providers/Microsoft.Synapse/workspaces/ExampleWorkspace/bigDataPools/ExamplePool2"), + // Location: to.Ptr("West US 2"), + // Tags: map[string]*string{ + // }, + // Properties: &armsynapse.BigDataPoolResourceProperties{ + // AutoPause: &armsynapse.AutoPauseProperties{ + // DelayInMinutes: to.Ptr[int32](15), + // Enabled: to.Ptr(true), + // }, + // AutoScale: &armsynapse.AutoScaleProperties{ + // Enabled: to.Ptr(true), + // MaxNodeCount: to.Ptr[int32](50), + // MinNodeCount: to.Ptr[int32](3), + // }, + // CreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1970-01-01T00:00:00Z"); return t}()), + // DefaultSparkLogFolder: to.Ptr("/logs"), + // IsAutotuneEnabled: to.Ptr(false), + // LibraryRequirements: &armsynapse.LibraryRequirements{ + // Content: to.Ptr(""), + // Filename: to.Ptr("requirements.txt"), + // Time: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1970-01-01T00:00:00Z"); return t}()), + // }, + // NodeCount: to.Ptr[int32](4), + // NodeSize: to.Ptr(armsynapse.NodeSizeMedium), + // NodeSizeFamily: to.Ptr(armsynapse.NodeSizeFamilyMemoryOptimized), + // ProvisioningState: to.Ptr("Succeeded"), + // SparkEventsFolder: to.Ptr("/events"), + // SparkVersion: to.Ptr("3.3"), + // }, + // }}, + // } + } +} diff --git a/sdk/resourcemanager/synapse/armsynapse/zz_generated_constants.go b/sdk/resourcemanager/synapse/armsynapse/constants.go similarity index 94% rename from sdk/resourcemanager/synapse/armsynapse/zz_generated_constants.go rename to sdk/resourcemanager/synapse/armsynapse/constants.go index 8f0048698a43..a682eb46f4c4 100644 --- a/sdk/resourcemanager/synapse/armsynapse/zz_generated_constants.go +++ b/sdk/resourcemanager/synapse/armsynapse/constants.go @@ -5,14 +5,37 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse const ( moduleName = "armsynapse" - moduleVersion = "v0.5.0" + moduleVersion = "v0.6.0" ) +// ActualState - Actual state +type ActualState string + +const ( + ActualStateEnabling ActualState = "Enabling" + ActualStateEnabled ActualState = "Enabled" + ActualStateDisabling ActualState = "Disabling" + ActualStateDisabled ActualState = "Disabled" + ActualStateUnknown ActualState = "Unknown" +) + +// PossibleActualStateValues returns the possible values for the ActualState const type. +func PossibleActualStateValues() []ActualState { + return []ActualState{ + ActualStateEnabling, + ActualStateEnabled, + ActualStateDisabling, + ActualStateDisabled, + ActualStateUnknown, + } +} + type AzureADOnlyAuthenticationName string const ( @@ -468,6 +491,22 @@ func PossibleDefaultPrincipalsModificationKindValues() []DefaultPrincipalsModifi } } +// DesiredState - Desired state +type DesiredState string + +const ( + DesiredStateEnabled DesiredState = "Enabled" + DesiredStateDisabled DesiredState = "Disabled" +) + +// PossibleDesiredStateValues returns the possible values for the DesiredState const type. +func PossibleDesiredStateValues() []DesiredState { + return []DesiredState{ + DesiredStateEnabled, + DesiredStateDisabled, + } +} + type EncryptionProtectorName string const ( @@ -860,44 +899,6 @@ func PossibleLanguageExtensionNameValues() []LanguageExtensionName { } } -// ManagedIdentitySQLControlSettingsModelPropertiesGrantSQLControlToManagedIdentityActualState - Actual state -type ManagedIdentitySQLControlSettingsModelPropertiesGrantSQLControlToManagedIdentityActualState string - -const ( - ManagedIdentitySQLControlSettingsModelPropertiesGrantSQLControlToManagedIdentityActualStateDisabled ManagedIdentitySQLControlSettingsModelPropertiesGrantSQLControlToManagedIdentityActualState = "Disabled" - ManagedIdentitySQLControlSettingsModelPropertiesGrantSQLControlToManagedIdentityActualStateDisabling ManagedIdentitySQLControlSettingsModelPropertiesGrantSQLControlToManagedIdentityActualState = "Disabling" - ManagedIdentitySQLControlSettingsModelPropertiesGrantSQLControlToManagedIdentityActualStateEnabled ManagedIdentitySQLControlSettingsModelPropertiesGrantSQLControlToManagedIdentityActualState = "Enabled" - ManagedIdentitySQLControlSettingsModelPropertiesGrantSQLControlToManagedIdentityActualStateEnabling ManagedIdentitySQLControlSettingsModelPropertiesGrantSQLControlToManagedIdentityActualState = "Enabling" - ManagedIdentitySQLControlSettingsModelPropertiesGrantSQLControlToManagedIdentityActualStateUnknown ManagedIdentitySQLControlSettingsModelPropertiesGrantSQLControlToManagedIdentityActualState = "Unknown" -) - -// PossibleManagedIdentitySQLControlSettingsModelPropertiesGrantSQLControlToManagedIdentityActualStateValues returns the possible values for the ManagedIdentitySQLControlSettingsModelPropertiesGrantSQLControlToManagedIdentityActualState const type. -func PossibleManagedIdentitySQLControlSettingsModelPropertiesGrantSQLControlToManagedIdentityActualStateValues() []ManagedIdentitySQLControlSettingsModelPropertiesGrantSQLControlToManagedIdentityActualState { - return []ManagedIdentitySQLControlSettingsModelPropertiesGrantSQLControlToManagedIdentityActualState{ - ManagedIdentitySQLControlSettingsModelPropertiesGrantSQLControlToManagedIdentityActualStateDisabled, - ManagedIdentitySQLControlSettingsModelPropertiesGrantSQLControlToManagedIdentityActualStateDisabling, - ManagedIdentitySQLControlSettingsModelPropertiesGrantSQLControlToManagedIdentityActualStateEnabled, - ManagedIdentitySQLControlSettingsModelPropertiesGrantSQLControlToManagedIdentityActualStateEnabling, - ManagedIdentitySQLControlSettingsModelPropertiesGrantSQLControlToManagedIdentityActualStateUnknown, - } -} - -// ManagedIdentitySQLControlSettingsModelPropertiesGrantSQLControlToManagedIdentityDesiredState - Desired state -type ManagedIdentitySQLControlSettingsModelPropertiesGrantSQLControlToManagedIdentityDesiredState string - -const ( - ManagedIdentitySQLControlSettingsModelPropertiesGrantSQLControlToManagedIdentityDesiredStateDisabled ManagedIdentitySQLControlSettingsModelPropertiesGrantSQLControlToManagedIdentityDesiredState = "Disabled" - ManagedIdentitySQLControlSettingsModelPropertiesGrantSQLControlToManagedIdentityDesiredStateEnabled ManagedIdentitySQLControlSettingsModelPropertiesGrantSQLControlToManagedIdentityDesiredState = "Enabled" -) - -// PossibleManagedIdentitySQLControlSettingsModelPropertiesGrantSQLControlToManagedIdentityDesiredStateValues returns the possible values for the ManagedIdentitySQLControlSettingsModelPropertiesGrantSQLControlToManagedIdentityDesiredState const type. -func PossibleManagedIdentitySQLControlSettingsModelPropertiesGrantSQLControlToManagedIdentityDesiredStateValues() []ManagedIdentitySQLControlSettingsModelPropertiesGrantSQLControlToManagedIdentityDesiredState { - return []ManagedIdentitySQLControlSettingsModelPropertiesGrantSQLControlToManagedIdentityDesiredState{ - ManagedIdentitySQLControlSettingsModelPropertiesGrantSQLControlToManagedIdentityDesiredStateDisabled, - ManagedIdentitySQLControlSettingsModelPropertiesGrantSQLControlToManagedIdentityDesiredStateEnabled, - } -} - // ManagedIntegrationRuntimeNodeStatus - The managed integration runtime node status. type ManagedIntegrationRuntimeNodeStatus string @@ -1663,3 +1664,21 @@ func PossibleWorkspacePublicNetworkAccessValues() []WorkspacePublicNetworkAccess WorkspacePublicNetworkAccessEnabled, } } + +// WorkspaceStatus - status of Start Integrationruntimes. +type WorkspaceStatus string + +const ( + WorkspaceStatusFailed WorkspaceStatus = "Failed" + WorkspaceStatusInProgress WorkspaceStatus = "InProgress" + WorkspaceStatusSucceeded WorkspaceStatus = "Succeeded" +) + +// PossibleWorkspaceStatusValues returns the possible values for the WorkspaceStatus const type. +func PossibleWorkspaceStatusValues() []WorkspaceStatus { + return []WorkspaceStatus{ + WorkspaceStatusFailed, + WorkspaceStatusInProgress, + WorkspaceStatusSucceeded, + } +} diff --git a/sdk/resourcemanager/synapse/armsynapse/zz_generated_datamaskingpolicies_client.go b/sdk/resourcemanager/synapse/armsynapse/datamaskingpolicies_client.go similarity index 89% rename from sdk/resourcemanager/synapse/armsynapse/zz_generated_datamaskingpolicies_client.go rename to sdk/resourcemanager/synapse/armsynapse/datamaskingpolicies_client.go index edca8e449b69..7d824debc7f6 100644 --- a/sdk/resourcemanager/synapse/armsynapse/zz_generated_datamaskingpolicies_client.go +++ b/sdk/resourcemanager/synapse/armsynapse/datamaskingpolicies_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse @@ -31,9 +32,9 @@ type DataMaskingPoliciesClient struct { } // NewDataMaskingPoliciesClient creates a new instance of DataMaskingPoliciesClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewDataMaskingPoliciesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DataMaskingPoliciesClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,13 +57,14 @@ func NewDataMaskingPoliciesClient(subscriptionID string, credential azcore.Token // CreateOrUpdate - Creates or updates a Sql pool data masking policy // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// sqlPoolName - SQL pool name -// parameters - Parameters for creating or updating a data masking policy. -// options - DataMaskingPoliciesClientCreateOrUpdateOptions contains the optional parameters for the DataMaskingPoliciesClient.CreateOrUpdate -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - sqlPoolName - SQL pool name +// - parameters - Parameters for creating or updating a data masking policy. +// - options - DataMaskingPoliciesClientCreateOrUpdateOptions contains the optional parameters for the DataMaskingPoliciesClient.CreateOrUpdate +// method. func (client *DataMaskingPoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, sqlPoolName string, parameters DataMaskingPolicy, options *DataMaskingPoliciesClientCreateOrUpdateOptions) (DataMaskingPoliciesClientCreateOrUpdateResponse, error) { req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, workspaceName, sqlPoolName, parameters, options) if err != nil { @@ -120,11 +122,12 @@ func (client *DataMaskingPoliciesClient) createOrUpdateHandleResponse(resp *http // Get - Gets a Sql pool data masking policy. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// sqlPoolName - SQL pool name -// options - DataMaskingPoliciesClientGetOptions contains the optional parameters for the DataMaskingPoliciesClient.Get method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - sqlPoolName - SQL pool name +// - options - DataMaskingPoliciesClientGetOptions contains the optional parameters for the DataMaskingPoliciesClient.Get method. func (client *DataMaskingPoliciesClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, sqlPoolName string, options *DataMaskingPoliciesClientGetOptions) (DataMaskingPoliciesClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, workspaceName, sqlPoolName, options) if err != nil { diff --git a/sdk/resourcemanager/synapse/armsynapse/datamaskingpolicies_client_example_test.go b/sdk/resourcemanager/synapse/armsynapse/datamaskingpolicies_client_example_test.go new file mode 100644 index 000000000000..0b2404d4f389 --- /dev/null +++ b/sdk/resourcemanager/synapse/armsynapse/datamaskingpolicies_client_example_test.go @@ -0,0 +1,127 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armsynapse_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DataMaskingPolicyCreateOrUpdateMax.json +func ExampleDataMaskingPoliciesClient_CreateOrUpdate_createOrUpdateDataMaskingPolicyMax() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewDataMaskingPoliciesClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.CreateOrUpdate(ctx, "sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-331", armsynapse.DataMaskingPolicy{ + Properties: &armsynapse.DataMaskingPolicyProperties{ + DataMaskingState: to.Ptr(armsynapse.DataMaskingStateEnabled), + ExemptPrincipals: to.Ptr("testuser;"), + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.DataMaskingPolicy = armsynapse.DataMaskingPolicy{ + // Name: to.Ptr("Default"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/dataMaskingPolicies"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6852/providers/Microsoft.Synapse/workspaces/sqlcrudtest-2080/sqlPools/sqlcrudtest-331/dataMaskingPolicies/Default"), + // Location: to.Ptr("Central US"), + // ManagedBy: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6852/providers/Microsoft.Synapse/workspaces/sqlcrudtest-2080/sqlPools/sqlcrudtest-331"), + // Properties: &armsynapse.DataMaskingPolicyProperties{ + // ApplicationPrincipals: to.Ptr(""), + // DataMaskingState: to.Ptr(armsynapse.DataMaskingStateEnabled), + // ExemptPrincipals: to.Ptr("testuser;"), + // MaskingLevel: to.Ptr(""), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DataMaskingPolicyCreateOrUpdateMin.json +func ExampleDataMaskingPoliciesClient_CreateOrUpdate_createOrUpdateDataMaskingPolicyMin() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewDataMaskingPoliciesClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.CreateOrUpdate(ctx, "sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-331", armsynapse.DataMaskingPolicy{ + Properties: &armsynapse.DataMaskingPolicyProperties{ + DataMaskingState: to.Ptr(armsynapse.DataMaskingStateEnabled), + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.DataMaskingPolicy = armsynapse.DataMaskingPolicy{ + // Name: to.Ptr("Default"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/dataMaskingPolicies"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6852/providers/Microsoft.Synapse/workspaces/sqlcrudtest-2080/sqlPools/sqlcrudtest-331/dataMaskingPolicies/Default"), + // Location: to.Ptr("Central US"), + // ManagedBy: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6852/providers/Microsoft.Synapse/workspaces/sqlcrudtest-2080/sqlPools/sqlcrudtest-331"), + // Properties: &armsynapse.DataMaskingPolicyProperties{ + // ApplicationPrincipals: to.Ptr(""), + // DataMaskingState: to.Ptr(armsynapse.DataMaskingStateEnabled), + // ExemptPrincipals: to.Ptr(""), + // MaskingLevel: to.Ptr(""), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DataMaskingPolicyGet.json +func ExampleDataMaskingPoliciesClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewDataMaskingPoliciesClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-331", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.DataMaskingPolicy = armsynapse.DataMaskingPolicy{ + // Name: to.Ptr("Default"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/dataMaskingPolicies"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6852/providers/Microsoft.Synapse/workspaces/sqlcrudtest-2080/sqlPools/sqlcrudtest-331/dataMaskingPolicies/Default"), + // Location: to.Ptr("Central US"), + // ManagedBy: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6852/providers/Microsoft.Synapse/workspaces/sqlcrudtest-2080/sqlPools/sqlcrudtest-331"), + // Properties: &armsynapse.DataMaskingPolicyProperties{ + // ApplicationPrincipals: to.Ptr(""), + // DataMaskingState: to.Ptr(armsynapse.DataMaskingStateEnabled), + // ExemptPrincipals: to.Ptr(""), + // MaskingLevel: to.Ptr(""), + // }, + // } +} diff --git a/sdk/resourcemanager/synapse/armsynapse/zz_generated_datamaskingrules_client.go b/sdk/resourcemanager/synapse/armsynapse/datamaskingrules_client.go similarity index 89% rename from sdk/resourcemanager/synapse/armsynapse/zz_generated_datamaskingrules_client.go rename to sdk/resourcemanager/synapse/armsynapse/datamaskingrules_client.go index ddb8094cc8aa..bd5da7329dd4 100644 --- a/sdk/resourcemanager/synapse/armsynapse/zz_generated_datamaskingrules_client.go +++ b/sdk/resourcemanager/synapse/armsynapse/datamaskingrules_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse @@ -31,9 +32,9 @@ type DataMaskingRulesClient struct { } // NewDataMaskingRulesClient creates a new instance of DataMaskingRulesClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewDataMaskingRulesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DataMaskingRulesClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,14 +57,15 @@ func NewDataMaskingRulesClient(subscriptionID string, credential azcore.TokenCre // CreateOrUpdate - Creates or updates a Sql pool data masking rule. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// sqlPoolName - SQL pool name -// dataMaskingRuleName - The name of the data masking rule. -// parameters - The required parameters for creating or updating a data masking rule. -// options - DataMaskingRulesClientCreateOrUpdateOptions contains the optional parameters for the DataMaskingRulesClient.CreateOrUpdate -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - sqlPoolName - SQL pool name +// - dataMaskingRuleName - The name of the data masking rule. +// - parameters - The required parameters for creating or updating a data masking rule. +// - options - DataMaskingRulesClientCreateOrUpdateOptions contains the optional parameters for the DataMaskingRulesClient.CreateOrUpdate +// method. func (client *DataMaskingRulesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, sqlPoolName string, dataMaskingRuleName string, parameters DataMaskingRule, options *DataMaskingRulesClientCreateOrUpdateOptions) (DataMaskingRulesClientCreateOrUpdateResponse, error) { req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, workspaceName, sqlPoolName, dataMaskingRuleName, parameters, options) if err != nil { @@ -125,12 +127,13 @@ func (client *DataMaskingRulesClient) createOrUpdateHandleResponse(resp *http.Re // Get - Gets the specific Sql pool data masking rule. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// sqlPoolName - SQL pool name -// dataMaskingRuleName - The name of the data masking rule. -// options - DataMaskingRulesClientGetOptions contains the optional parameters for the DataMaskingRulesClient.Get method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - sqlPoolName - SQL pool name +// - dataMaskingRuleName - The name of the data masking rule. +// - options - DataMaskingRulesClientGetOptions contains the optional parameters for the DataMaskingRulesClient.Get method. func (client *DataMaskingRulesClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, sqlPoolName string, dataMaskingRuleName string, options *DataMaskingRulesClientGetOptions) (DataMaskingRulesClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, workspaceName, sqlPoolName, dataMaskingRuleName, options) if err != nil { @@ -191,13 +194,13 @@ func (client *DataMaskingRulesClient) getHandleResponse(resp *http.Response) (Da } // NewListBySQLPoolPager - Gets a list of Sql pool data masking rules. -// If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// sqlPoolName - SQL pool name -// options - DataMaskingRulesClientListBySQLPoolOptions contains the optional parameters for the DataMaskingRulesClient.ListBySQLPool -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - sqlPoolName - SQL pool name +// - options - DataMaskingRulesClientListBySQLPoolOptions contains the optional parameters for the DataMaskingRulesClient.NewListBySQLPoolPager +// method. func (client *DataMaskingRulesClient) NewListBySQLPoolPager(resourceGroupName string, workspaceName string, sqlPoolName string, options *DataMaskingRulesClientListBySQLPoolOptions) *runtime.Pager[DataMaskingRulesClientListBySQLPoolResponse] { return runtime.NewPager(runtime.PagingHandler[DataMaskingRulesClientListBySQLPoolResponse]{ More: func(page DataMaskingRulesClientListBySQLPoolResponse) bool { diff --git a/sdk/resourcemanager/synapse/armsynapse/datamaskingrules_client_example_test.go b/sdk/resourcemanager/synapse/armsynapse/datamaskingrules_client_example_test.go new file mode 100644 index 000000000000..215aee682338 --- /dev/null +++ b/sdk/resourcemanager/synapse/armsynapse/datamaskingrules_client_example_test.go @@ -0,0 +1,288 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armsynapse_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DataMaskingRuleCreateOrUpdateDefaultMax.json +func ExampleDataMaskingRulesClient_CreateOrUpdate_createUpdateDataMaskingRuleForDefaultMax() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewDataMaskingRulesClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.CreateOrUpdate(ctx, "sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-331", "rule1", armsynapse.DataMaskingRule{ + Properties: &armsynapse.DataMaskingRuleProperties{ + AliasName: to.Ptr("nickname"), + ColumnName: to.Ptr("test1"), + MaskingFunction: to.Ptr(armsynapse.DataMaskingFunctionDefault), + RuleState: to.Ptr(armsynapse.DataMaskingRuleStateEnabled), + SchemaName: to.Ptr("dbo"), + TableName: to.Ptr("Table_1"), + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.DataMaskingRule = armsynapse.DataMaskingRule{ + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/dataMaskingPolicies/rules"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6852/providers/Microsoft.Synapse/workspaces/sqlcrudtest-6852/sqlPools/sqlcrudtest-331/dataMaskingPolicies/Default/rules/"), + // Location: to.Ptr("Central US"), + // Properties: &armsynapse.DataMaskingRuleProperties{ + // AliasName: to.Ptr("nickname"), + // ColumnName: to.Ptr("test1"), + // ID: to.Ptr("dbo_Table_1_test1"), + // MaskingFunction: to.Ptr(armsynapse.DataMaskingFunctionDefault), + // RuleState: to.Ptr(armsynapse.DataMaskingRuleStateEnabled), + // SchemaName: to.Ptr("dbo"), + // TableName: to.Ptr("Table_1"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DataMaskingRuleCreateOrUpdateDefaultMin.json +func ExampleDataMaskingRulesClient_CreateOrUpdate_createUpdateDataMaskingRuleForDefaultMin() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewDataMaskingRulesClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.CreateOrUpdate(ctx, "sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-331", "rule1", armsynapse.DataMaskingRule{ + Properties: &armsynapse.DataMaskingRuleProperties{ + ColumnName: to.Ptr("test1"), + MaskingFunction: to.Ptr(armsynapse.DataMaskingFunctionDefault), + SchemaName: to.Ptr("dbo"), + TableName: to.Ptr("Table_1"), + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.DataMaskingRule = armsynapse.DataMaskingRule{ + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/dataMaskingPolicies/rules"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6852/providers/Microsoft.Synapse/workspaces/sqlcrudtest-6852/sqlPools/sqlcrudtest-331/dataMaskingPolicies/Default/rules/"), + // Location: to.Ptr("Central US"), + // Properties: &armsynapse.DataMaskingRuleProperties{ + // ColumnName: to.Ptr("test1"), + // ID: to.Ptr("dbo_Table_1_test1"), + // MaskingFunction: to.Ptr(armsynapse.DataMaskingFunctionDefault), + // RuleState: to.Ptr(armsynapse.DataMaskingRuleStateEnabled), + // SchemaName: to.Ptr("dbo"), + // TableName: to.Ptr("Table_1"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DataMaskingRuleCreateOrUpdateNumber.json +func ExampleDataMaskingRulesClient_CreateOrUpdate_createUpdateDataMaskingRuleForNumbers() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewDataMaskingRulesClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.CreateOrUpdate(ctx, "sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-331", "rule1", armsynapse.DataMaskingRule{ + Properties: &armsynapse.DataMaskingRuleProperties{ + ColumnName: to.Ptr("test1"), + MaskingFunction: to.Ptr(armsynapse.DataMaskingFunctionNumber), + NumberFrom: to.Ptr("0"), + NumberTo: to.Ptr("2"), + SchemaName: to.Ptr("dbo"), + TableName: to.Ptr("Table_1"), + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.DataMaskingRule = armsynapse.DataMaskingRule{ + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/dataMaskingPolicies/rules"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6852/providers/Microsoft.Synapse/workspaces/sqlcrudtest-6852/sqlPools/sqlcrudtest-331/dataMaskingPolicies/Default/rules/"), + // Location: to.Ptr("Central US"), + // Properties: &armsynapse.DataMaskingRuleProperties{ + // ColumnName: to.Ptr("test1"), + // ID: to.Ptr("dbo_Table_1_test1"), + // MaskingFunction: to.Ptr(armsynapse.DataMaskingFunctionNumber), + // NumberFrom: to.Ptr("0"), + // NumberTo: to.Ptr("2"), + // RuleState: to.Ptr(armsynapse.DataMaskingRuleStateEnabled), + // SchemaName: to.Ptr("dbo"), + // TableName: to.Ptr("Table_1"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DataMaskingRuleCreateOrUpdateText.json +func ExampleDataMaskingRulesClient_CreateOrUpdate_createUpdateDataMaskingRuleForText() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewDataMaskingRulesClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.CreateOrUpdate(ctx, "sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-331", "rule1", armsynapse.DataMaskingRule{ + Properties: &armsynapse.DataMaskingRuleProperties{ + ColumnName: to.Ptr("test1"), + MaskingFunction: to.Ptr(armsynapse.DataMaskingFunctionText), + PrefixSize: to.Ptr("1"), + ReplacementString: to.Ptr("asdf"), + SchemaName: to.Ptr("dbo"), + SuffixSize: to.Ptr("0"), + TableName: to.Ptr("Table_1"), + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.DataMaskingRule = armsynapse.DataMaskingRule{ + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/dataMaskingPolicies/rules"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6852/providers/Microsoft.Synapse/workspaces/sqlcrudtest-6852/sqlPools/sqlcrudtest-331/dataMaskingPolicies/Default/rules/"), + // Location: to.Ptr("Central US"), + // Properties: &armsynapse.DataMaskingRuleProperties{ + // ColumnName: to.Ptr("test1"), + // ID: to.Ptr("dbo_Table_1_test1"), + // MaskingFunction: to.Ptr(armsynapse.DataMaskingFunctionText), + // PrefixSize: to.Ptr("1"), + // ReplacementString: to.Ptr("asdf"), + // RuleState: to.Ptr(armsynapse.DataMaskingRuleStateEnabled), + // SchemaName: to.Ptr("dbo"), + // SuffixSize: to.Ptr("0"), + // TableName: to.Ptr("Table_1"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DataMaskingRuleGet.json +func ExampleDataMaskingRulesClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewDataMaskingRulesClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-331", "rule1", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.DataMaskingRule = armsynapse.DataMaskingRule{ + // Name: to.Ptr("rule1"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/dataMaskingPolicies/rules"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6852/providers/Microsoft.Synapse/workspaces/sqlcrudtest-6852/sqlPools/sqlcrudtest-331/dataMaskingPolicies/Default/rules/"), + // Location: to.Ptr("Central US"), + // Properties: &armsynapse.DataMaskingRuleProperties{ + // ColumnName: to.Ptr("test1"), + // ID: to.Ptr("dbo_Table_1_test1"), + // MaskingFunction: to.Ptr(armsynapse.DataMaskingFunctionText), + // PrefixSize: to.Ptr("1"), + // ReplacementString: to.Ptr("asdf"), + // RuleState: to.Ptr(armsynapse.DataMaskingRuleStateEnabled), + // SchemaName: to.Ptr("dbo"), + // SuffixSize: to.Ptr("0"), + // TableName: to.Ptr("Table_1"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DataMaskingRuleList.json +func ExampleDataMaskingRulesClient_NewListBySQLPoolPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewDataMaskingRulesClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListBySQLPoolPager("sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-331", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.DataMaskingRuleListResult = armsynapse.DataMaskingRuleListResult{ + // Value: []*armsynapse.DataMaskingRule{ + // { + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/dataMaskingPolicies/rules"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6852/providers/Microsoft.Synapse/workspaces/sqlcrudtest-6852/sqlPools/sqlcrudtest-331/dataMaskingPolicies/Default/rules/"), + // Location: to.Ptr("Central US"), + // Properties: &armsynapse.DataMaskingRuleProperties{ + // ColumnName: to.Ptr("test1"), + // ID: to.Ptr("dbo_Table_1_test1"), + // MaskingFunction: to.Ptr(armsynapse.DataMaskingFunctionText), + // PrefixSize: to.Ptr("1"), + // ReplacementString: to.Ptr("asdf"), + // RuleState: to.Ptr(armsynapse.DataMaskingRuleStateEnabled), + // SchemaName: to.Ptr("dbo"), + // SuffixSize: to.Ptr("0"), + // TableName: to.Ptr("Table_1"), + // }, + // }, + // { + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/dataMaskingPolicies/rules"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6852/providers/Microsoft.Synapse/workspaces/sqlcrudtest-6852/sqlPools/sqlcrudtest-331/dataMaskingPolicies/Default/rules/"), + // Location: to.Ptr("Central US"), + // Properties: &armsynapse.DataMaskingRuleProperties{ + // ColumnName: to.Ptr("test1"), + // ID: to.Ptr("dbo_Table_1_test1"), + // MaskingFunction: to.Ptr(armsynapse.DataMaskingFunctionNumber), + // NumberFrom: to.Ptr("0"), + // NumberTo: to.Ptr("2"), + // RuleState: to.Ptr(armsynapse.DataMaskingRuleStateEnabled), + // SchemaName: to.Ptr("dbo"), + // TableName: to.Ptr("Table_1"), + // }, + // }}, + // } + } +} diff --git a/sdk/resourcemanager/synapse/armsynapse/zz_generated_extendedsqlpoolblobauditingpolicies_client.go b/sdk/resourcemanager/synapse/armsynapse/extendedsqlpoolblobauditingpolicies_client.go similarity index 89% rename from sdk/resourcemanager/synapse/armsynapse/zz_generated_extendedsqlpoolblobauditingpolicies_client.go rename to sdk/resourcemanager/synapse/armsynapse/extendedsqlpoolblobauditingpolicies_client.go index fab321633bb0..8242cfec6fb9 100644 --- a/sdk/resourcemanager/synapse/armsynapse/zz_generated_extendedsqlpoolblobauditingpolicies_client.go +++ b/sdk/resourcemanager/synapse/armsynapse/extendedsqlpoolblobauditingpolicies_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse @@ -31,9 +32,9 @@ type ExtendedSQLPoolBlobAuditingPoliciesClient struct { } // NewExtendedSQLPoolBlobAuditingPoliciesClient creates a new instance of ExtendedSQLPoolBlobAuditingPoliciesClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewExtendedSQLPoolBlobAuditingPoliciesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ExtendedSQLPoolBlobAuditingPoliciesClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,13 +57,14 @@ func NewExtendedSQLPoolBlobAuditingPoliciesClient(subscriptionID string, credent // CreateOrUpdate - Creates or updates an extended Sql pool's blob auditing policy. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// sqlPoolName - SQL pool name -// parameters - The extended Sql pool blob auditing policy. -// options - ExtendedSQLPoolBlobAuditingPoliciesClientCreateOrUpdateOptions contains the optional parameters for the ExtendedSQLPoolBlobAuditingPoliciesClient.CreateOrUpdate -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - sqlPoolName - SQL pool name +// - parameters - The extended Sql pool blob auditing policy. +// - options - ExtendedSQLPoolBlobAuditingPoliciesClientCreateOrUpdateOptions contains the optional parameters for the ExtendedSQLPoolBlobAuditingPoliciesClient.CreateOrUpdate +// method. func (client *ExtendedSQLPoolBlobAuditingPoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, sqlPoolName string, parameters ExtendedSQLPoolBlobAuditingPolicy, options *ExtendedSQLPoolBlobAuditingPoliciesClientCreateOrUpdateOptions) (ExtendedSQLPoolBlobAuditingPoliciesClientCreateOrUpdateResponse, error) { req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, workspaceName, sqlPoolName, parameters, options) if err != nil { @@ -120,12 +122,13 @@ func (client *ExtendedSQLPoolBlobAuditingPoliciesClient) createOrUpdateHandleRes // Get - Gets an extended Sql pool's blob auditing policy. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// sqlPoolName - SQL pool name -// options - ExtendedSQLPoolBlobAuditingPoliciesClientGetOptions contains the optional parameters for the ExtendedSQLPoolBlobAuditingPoliciesClient.Get -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - sqlPoolName - SQL pool name +// - options - ExtendedSQLPoolBlobAuditingPoliciesClientGetOptions contains the optional parameters for the ExtendedSQLPoolBlobAuditingPoliciesClient.Get +// method. func (client *ExtendedSQLPoolBlobAuditingPoliciesClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, sqlPoolName string, options *ExtendedSQLPoolBlobAuditingPoliciesClientGetOptions) (ExtendedSQLPoolBlobAuditingPoliciesClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, workspaceName, sqlPoolName, options) if err != nil { @@ -182,13 +185,13 @@ func (client *ExtendedSQLPoolBlobAuditingPoliciesClient) getHandleResponse(resp } // NewListBySQLPoolPager - Lists extended auditing settings of a Sql pool. -// If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// sqlPoolName - SQL pool name -// options - ExtendedSQLPoolBlobAuditingPoliciesClientListBySQLPoolOptions contains the optional parameters for the ExtendedSQLPoolBlobAuditingPoliciesClient.ListBySQLPool -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - sqlPoolName - SQL pool name +// - options - ExtendedSQLPoolBlobAuditingPoliciesClientListBySQLPoolOptions contains the optional parameters for the ExtendedSQLPoolBlobAuditingPoliciesClient.NewListBySQLPoolPager +// method. func (client *ExtendedSQLPoolBlobAuditingPoliciesClient) NewListBySQLPoolPager(resourceGroupName string, workspaceName string, sqlPoolName string, options *ExtendedSQLPoolBlobAuditingPoliciesClientListBySQLPoolOptions) *runtime.Pager[ExtendedSQLPoolBlobAuditingPoliciesClientListBySQLPoolResponse] { return runtime.NewPager(runtime.PagingHandler[ExtendedSQLPoolBlobAuditingPoliciesClientListBySQLPoolResponse]{ More: func(page ExtendedSQLPoolBlobAuditingPoliciesClientListBySQLPoolResponse) bool { diff --git a/sdk/resourcemanager/synapse/armsynapse/extendedsqlpoolblobauditingpolicies_client_example_test.go b/sdk/resourcemanager/synapse/armsynapse/extendedsqlpoolblobauditingpolicies_client_example_test.go new file mode 100644 index 000000000000..f1b32abc0f1d --- /dev/null +++ b/sdk/resourcemanager/synapse/armsynapse/extendedsqlpoolblobauditingpolicies_client_example_test.go @@ -0,0 +1,236 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armsynapse_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ExtendedSqlPoolBlobAuditingGet.json +func ExampleExtendedSQLPoolBlobAuditingPoliciesClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewExtendedSQLPoolBlobAuditingPoliciesClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "blobauditingtest-6852", "blobauditingtest-2080", "testdb", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.ExtendedSQLPoolBlobAuditingPolicy = armsynapse.ExtendedSQLPoolBlobAuditingPolicy{ + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/extendedAuditingSettings"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/blobauditingtest-6852/providers/Microsoft.Synapse/workspaces/blobauditingtest-2080/sqlPools/testdb"), + // Properties: &armsynapse.ExtendedSQLPoolBlobAuditingPolicyProperties{ + // AuditActionsAndGroups: []*string{ + // }, + // IsAzureMonitorTargetEnabled: to.Ptr(false), + // IsStorageSecondaryKeyInUse: to.Ptr(false), + // PredicateExpression: to.Ptr("statement = 'select 1'"), + // RetentionDays: to.Ptr[int32](0), + // State: to.Ptr(armsynapse.BlobAuditingPolicyStateDisabled), + // StorageAccountSubscriptionID: to.Ptr("00000000-0000-0000-0000-000000000000"), + // StorageEndpoint: to.Ptr(""), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ExtendedSqlPoolAzureMonitorAuditingCreateMin.json +func ExampleExtendedSQLPoolBlobAuditingPoliciesClient_CreateOrUpdate_createOrUpdateAnExtendedSqlPoolsAzureMonitorAuditingPolicyWithMinimalParameters() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewExtendedSQLPoolBlobAuditingPoliciesClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.CreateOrUpdate(ctx, "blobauditingtest-4799", "blobauditingtest-6440", "testdb", armsynapse.ExtendedSQLPoolBlobAuditingPolicy{ + Properties: &armsynapse.ExtendedSQLPoolBlobAuditingPolicyProperties{ + IsAzureMonitorTargetEnabled: to.Ptr(true), + State: to.Ptr(armsynapse.BlobAuditingPolicyStateEnabled), + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.ExtendedSQLPoolBlobAuditingPolicy = armsynapse.ExtendedSQLPoolBlobAuditingPolicy{ + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/extendedAuditingSettings"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/blobauditingtest-4799/providers/Microsoft.Synapse/workspaces/blobauditingtest-6440/sqlPools/testdb"), + // Properties: &armsynapse.ExtendedSQLPoolBlobAuditingPolicyProperties{ + // AuditActionsAndGroups: []*string{ + // to.Ptr("SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP"), + // to.Ptr("FAILED_DATABASE_AUTHENTICATION_GROUP"), + // to.Ptr("BATCH_COMPLETED_GROUP")}, + // IsAzureMonitorTargetEnabled: to.Ptr(true), + // IsStorageSecondaryKeyInUse: to.Ptr(false), + // RetentionDays: to.Ptr[int32](0), + // State: to.Ptr(armsynapse.BlobAuditingPolicyStateEnabled), + // StorageAccountSubscriptionID: to.Ptr("00000000-0000-0000-0000-000000000000"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ExtendedSqlPoolBlobAuditingCreateMax.json +func ExampleExtendedSQLPoolBlobAuditingPoliciesClient_CreateOrUpdate_createOrUpdateAnExtendedSqlPoolsBlobAuditingPolicyWithAllParameters() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewExtendedSQLPoolBlobAuditingPoliciesClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.CreateOrUpdate(ctx, "blobauditingtest-4799", "blobauditingtest-6440", "testdb", armsynapse.ExtendedSQLPoolBlobAuditingPolicy{ + Properties: &armsynapse.ExtendedSQLPoolBlobAuditingPolicyProperties{ + AuditActionsAndGroups: []*string{ + to.Ptr("DATABASE_LOGOUT_GROUP"), + to.Ptr("DATABASE_ROLE_MEMBER_CHANGE_GROUP"), + to.Ptr("UPDATE on database::TestDatabaseName by public")}, + IsAzureMonitorTargetEnabled: to.Ptr(true), + IsStorageSecondaryKeyInUse: to.Ptr(false), + PredicateExpression: to.Ptr("statement = 'select 1'"), + RetentionDays: to.Ptr[int32](6), + State: to.Ptr(armsynapse.BlobAuditingPolicyStateEnabled), + StorageAccountAccessKey: to.Ptr("sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3RSD=="), + StorageAccountSubscriptionID: to.Ptr("00000000-1234-0000-5678-000000000000"), + StorageEndpoint: to.Ptr("https://mystorage.blob.core.windows.net"), + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.ExtendedSQLPoolBlobAuditingPolicy = armsynapse.ExtendedSQLPoolBlobAuditingPolicy{ + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/extendedAuditingSettings"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/blobauditingtest-4799/providers/Microsoft.Synapse/workspaces/blobauditingtest-6440/sqlPools/testdb"), + // Properties: &armsynapse.ExtendedSQLPoolBlobAuditingPolicyProperties{ + // AuditActionsAndGroups: []*string{ + // to.Ptr("DATABASE_LOGOUT_GROUP"), + // to.Ptr("DATABASE_ROLE_MEMBER_CHANGE_GROUP"), + // to.Ptr("UPDATE on database::TestDatabaseName by public")}, + // IsAzureMonitorTargetEnabled: to.Ptr(true), + // IsStorageSecondaryKeyInUse: to.Ptr(false), + // PredicateExpression: to.Ptr("statement = 'select 1'"), + // RetentionDays: to.Ptr[int32](0), + // State: to.Ptr(armsynapse.BlobAuditingPolicyStateEnabled), + // StorageAccountSubscriptionID: to.Ptr("00000000-1234-0000-5678-000000000000"), + // StorageEndpoint: to.Ptr("https://mystorage.blob.core.windows.net"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ExtendedSqlPoolBlobAuditingCreateMin.json +func ExampleExtendedSQLPoolBlobAuditingPoliciesClient_CreateOrUpdate_createOrUpdateAnExtendedSqlPoolsBlobAuditingPolicyWithMinimalParameters() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewExtendedSQLPoolBlobAuditingPoliciesClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.CreateOrUpdate(ctx, "blobauditingtest-4799", "blobauditingtest-6440", "testdb", armsynapse.ExtendedSQLPoolBlobAuditingPolicy{ + Properties: &armsynapse.ExtendedSQLPoolBlobAuditingPolicyProperties{ + State: to.Ptr(armsynapse.BlobAuditingPolicyStateEnabled), + StorageAccountAccessKey: to.Ptr("sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3RSD=="), + StorageEndpoint: to.Ptr("https://mystorage.blob.core.windows.net"), + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.ExtendedSQLPoolBlobAuditingPolicy = armsynapse.ExtendedSQLPoolBlobAuditingPolicy{ + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/extendedAuditingSettings"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/blobauditingtest-4799/providers/Microsoft.Synapse/workspaces/blobauditingtest-6440/sqlPools/testdb"), + // Properties: &armsynapse.ExtendedSQLPoolBlobAuditingPolicyProperties{ + // AuditActionsAndGroups: []*string{ + // to.Ptr("SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP"), + // to.Ptr("FAILED_DATABASE_AUTHENTICATION_GROUP"), + // to.Ptr("BATCH_COMPLETED_GROUP")}, + // IsAzureMonitorTargetEnabled: to.Ptr(false), + // IsStorageSecondaryKeyInUse: to.Ptr(false), + // RetentionDays: to.Ptr[int32](0), + // State: to.Ptr(armsynapse.BlobAuditingPolicyStateEnabled), + // StorageAccountSubscriptionID: to.Ptr("00000000-0000-0000-0000-000000000000"), + // StorageEndpoint: to.Ptr("https://mystorage.blob.core.windows.net"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolExtendedAuditingSettingsList.json +func ExampleExtendedSQLPoolBlobAuditingPoliciesClient_NewListBySQLPoolPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewExtendedSQLPoolBlobAuditingPoliciesClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListBySQLPoolPager("blobauditingtest-6852", "blobauditingtest-2080", "testdb", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.ExtendedSQLPoolBlobAuditingPolicyListResult = armsynapse.ExtendedSQLPoolBlobAuditingPolicyListResult{ + // Value: []*armsynapse.ExtendedSQLPoolBlobAuditingPolicy{ + // { + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/extendedAuditingSettings"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/blobauditingtest-6852/providers/Microsoft.Synapse/workspaces/blobauditingtest-2080/sqlPools/testdb/extendedAuditingSettings/default"), + // Properties: &armsynapse.ExtendedSQLPoolBlobAuditingPolicyProperties{ + // AuditActionsAndGroups: []*string{ + // }, + // IsAzureMonitorTargetEnabled: to.Ptr(false), + // IsStorageSecondaryKeyInUse: to.Ptr(false), + // PredicateExpression: to.Ptr("statement = 'select 1'"), + // RetentionDays: to.Ptr[int32](0), + // State: to.Ptr(armsynapse.BlobAuditingPolicyStateDisabled), + // StorageAccountSubscriptionID: to.Ptr("00000000-0000-0000-0000-000000000000"), + // StorageEndpoint: to.Ptr(""), + // }, + // }}, + // } + } +} diff --git a/sdk/resourcemanager/synapse/armsynapse/get_client.go b/sdk/resourcemanager/synapse/armsynapse/get_client.go new file mode 100644 index 000000000000..dd5a574245e1 --- /dev/null +++ b/sdk/resourcemanager/synapse/armsynapse/get_client.go @@ -0,0 +1,260 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armsynapse + +import ( + "context" + "errors" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "net/http" + "net/url" + "strings" +) + +// GetClient contains the methods for the Get group. +// Don't use this type directly, use NewGetClient() instead. +type GetClient struct { + host string + subscriptionID string + pl runtime.Pipeline +} + +// NewGetClient creates a new instance of GetClient with the specified values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. +func NewGetClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*GetClient, error) { + if options == nil { + options = &arm.ClientOptions{} + } + ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err + } + client := &GetClient{ + subscriptionID: subscriptionID, + host: ep, + pl: pl, + } + return client, nil +} + +// IntegrationRuntimeEnableInteractivequery - Get an integration runtime enable interactivequery operation status +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2021-06-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - integrationRuntimeName - Integration runtime name +// - integrationRuntimeOperationID - Integration runtime Operation Id +// - options - GetClientIntegrationRuntimeEnableInteractivequeryOptions contains the optional parameters for the GetClient.IntegrationRuntimeEnableInteractivequery +// method. +func (client *GetClient) IntegrationRuntimeEnableInteractivequery(ctx context.Context, resourceGroupName string, workspaceName string, integrationRuntimeName string, integrationRuntimeOperationID string, options *GetClientIntegrationRuntimeEnableInteractivequeryOptions) (GetClientIntegrationRuntimeEnableInteractivequeryResponse, error) { + req, err := client.integrationRuntimeEnableInteractivequeryCreateRequest(ctx, resourceGroupName, workspaceName, integrationRuntimeName, integrationRuntimeOperationID, options) + if err != nil { + return GetClientIntegrationRuntimeEnableInteractivequeryResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return GetClientIntegrationRuntimeEnableInteractivequeryResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return GetClientIntegrationRuntimeEnableInteractivequeryResponse{}, runtime.NewResponseError(resp) + } + return client.integrationRuntimeEnableInteractivequeryHandleResponse(resp) +} + +// integrationRuntimeEnableInteractivequeryCreateRequest creates the IntegrationRuntimeEnableInteractivequery request. +func (client *GetClient) integrationRuntimeEnableInteractivequeryCreateRequest(ctx context.Context, resourceGroupName string, workspaceName string, integrationRuntimeName string, integrationRuntimeOperationID string, options *GetClientIntegrationRuntimeEnableInteractivequeryOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/enableinteractivequery/operationstatuses/{integrationRuntimeOperationId}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if workspaceName == "" { + return nil, errors.New("parameter workspaceName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{workspaceName}", url.PathEscape(workspaceName)) + if integrationRuntimeName == "" { + return nil, errors.New("parameter integrationRuntimeName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{integrationRuntimeName}", url.PathEscape(integrationRuntimeName)) + if integrationRuntimeOperationID == "" { + return nil, errors.New("parameter integrationRuntimeOperationID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{integrationRuntimeOperationId}", url.PathEscape(integrationRuntimeOperationID)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2021-06-01-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// integrationRuntimeEnableInteractivequeryHandleResponse handles the IntegrationRuntimeEnableInteractivequery response. +func (client *GetClient) integrationRuntimeEnableInteractivequeryHandleResponse(resp *http.Response) (GetClientIntegrationRuntimeEnableInteractivequeryResponse, error) { + result := GetClientIntegrationRuntimeEnableInteractivequeryResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.IntegrationRuntimeEnableinteractivequery); err != nil { + return GetClientIntegrationRuntimeEnableInteractivequeryResponse{}, err + } + return result, nil +} + +// IntegrationRuntimeStart - Get an integration runtime start operation status +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2021-06-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - integrationRuntimeName - Integration runtime name +// - integrationRuntimeOperationID - Integration runtime Operation Id +// - options - GetClientIntegrationRuntimeStartOptions contains the optional parameters for the GetClient.IntegrationRuntimeStart +// method. +func (client *GetClient) IntegrationRuntimeStart(ctx context.Context, resourceGroupName string, workspaceName string, integrationRuntimeName string, integrationRuntimeOperationID string, options *GetClientIntegrationRuntimeStartOptions) (GetClientIntegrationRuntimeStartResponse, error) { + req, err := client.integrationRuntimeStartCreateRequest(ctx, resourceGroupName, workspaceName, integrationRuntimeName, integrationRuntimeOperationID, options) + if err != nil { + return GetClientIntegrationRuntimeStartResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return GetClientIntegrationRuntimeStartResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return GetClientIntegrationRuntimeStartResponse{}, runtime.NewResponseError(resp) + } + return client.integrationRuntimeStartHandleResponse(resp) +} + +// integrationRuntimeStartCreateRequest creates the IntegrationRuntimeStart request. +func (client *GetClient) integrationRuntimeStartCreateRequest(ctx context.Context, resourceGroupName string, workspaceName string, integrationRuntimeName string, integrationRuntimeOperationID string, options *GetClientIntegrationRuntimeStartOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/start/operationstatuses/{integrationRuntimeOperationId}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if workspaceName == "" { + return nil, errors.New("parameter workspaceName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{workspaceName}", url.PathEscape(workspaceName)) + if integrationRuntimeName == "" { + return nil, errors.New("parameter integrationRuntimeName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{integrationRuntimeName}", url.PathEscape(integrationRuntimeName)) + if integrationRuntimeOperationID == "" { + return nil, errors.New("parameter integrationRuntimeOperationID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{integrationRuntimeOperationId}", url.PathEscape(integrationRuntimeOperationID)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2021-06-01-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// integrationRuntimeStartHandleResponse handles the IntegrationRuntimeStart response. +func (client *GetClient) integrationRuntimeStartHandleResponse(resp *http.Response) (GetClientIntegrationRuntimeStartResponse, error) { + result := GetClientIntegrationRuntimeStartResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.IntegrationRuntimeOperationStatus); err != nil { + return GetClientIntegrationRuntimeStartResponse{}, err + } + return result, nil +} + +// IntegrationRuntimeStop - Get an integration runtime stop operation status +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2021-06-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - integrationRuntimeName - Integration runtime name +// - integrationRuntimeOperationID - Integration runtime Operation Id +// - options - GetClientIntegrationRuntimeStopOptions contains the optional parameters for the GetClient.IntegrationRuntimeStop +// method. +func (client *GetClient) IntegrationRuntimeStop(ctx context.Context, resourceGroupName string, workspaceName string, integrationRuntimeName string, integrationRuntimeOperationID string, options *GetClientIntegrationRuntimeStopOptions) (GetClientIntegrationRuntimeStopResponse, error) { + req, err := client.integrationRuntimeStopCreateRequest(ctx, resourceGroupName, workspaceName, integrationRuntimeName, integrationRuntimeOperationID, options) + if err != nil { + return GetClientIntegrationRuntimeStopResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return GetClientIntegrationRuntimeStopResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return GetClientIntegrationRuntimeStopResponse{}, runtime.NewResponseError(resp) + } + return client.integrationRuntimeStopHandleResponse(resp) +} + +// integrationRuntimeStopCreateRequest creates the IntegrationRuntimeStop request. +func (client *GetClient) integrationRuntimeStopCreateRequest(ctx context.Context, resourceGroupName string, workspaceName string, integrationRuntimeName string, integrationRuntimeOperationID string, options *GetClientIntegrationRuntimeStopOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/integrationRuntimes/{integrationRuntimeName}/stop/operationstatuses/{integrationRuntimeOperationId}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if workspaceName == "" { + return nil, errors.New("parameter workspaceName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{workspaceName}", url.PathEscape(workspaceName)) + if integrationRuntimeName == "" { + return nil, errors.New("parameter integrationRuntimeName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{integrationRuntimeName}", url.PathEscape(integrationRuntimeName)) + if integrationRuntimeOperationID == "" { + return nil, errors.New("parameter integrationRuntimeOperationID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{integrationRuntimeOperationId}", url.PathEscape(integrationRuntimeOperationID)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2021-06-01-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// integrationRuntimeStopHandleResponse handles the IntegrationRuntimeStop response. +func (client *GetClient) integrationRuntimeStopHandleResponse(resp *http.Response) (GetClientIntegrationRuntimeStopResponse, error) { + result := GetClientIntegrationRuntimeStopResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.IntegrationRuntimeStopOperationStatus); err != nil { + return GetClientIntegrationRuntimeStopResponse{}, err + } + return result, nil +} diff --git a/sdk/resourcemanager/synapse/armsynapse/get_client_example_test.go b/sdk/resourcemanager/synapse/armsynapse/get_client_example_test.go new file mode 100644 index 000000000000..35b350c1efaa --- /dev/null +++ b/sdk/resourcemanager/synapse/armsynapse/get_client_example_test.go @@ -0,0 +1,102 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armsynapse_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimes_Start_OperationStatus.json +func ExampleGetClient_IntegrationRuntimeStart() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewGetClient("2d03866b-587b-4e1f-a2fe-0a55958c655e", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.IntegrationRuntimeStart(ctx, "drage-felles-prod-rg", "felles-prod-synapse-workspace", "SSIS-intergrationRuntime-Drage", "5752dcdf918e4aecb941245ddf6ebb83", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.IntegrationRuntimeOperationStatus = armsynapse.IntegrationRuntimeOperationStatus{ + // Properties: map[string]any{ + // "name": "5752dcdf918e4aecb941245ddf6ebb83", + // "error": nil, + // "properties": nil, + // "status": "InProgress", + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimes_Stop_OperationStatus.json +func ExampleGetClient_IntegrationRuntimeStop() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewGetClient("2d03866b-587b-4e1f-a2fe-0a55958c655e", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.IntegrationRuntimeStop(ctx, "drage-felles-prod-rg", "felles-prod-synapse-workspace", "SSIS-intergrationRuntime-Drage", "5752dcdf918e4aecb941245ddf6ebb83", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.IntegrationRuntimeStopOperationStatus = armsynapse.IntegrationRuntimeStopOperationStatus{ + // Properties: map[string]any{ + // "name": "5752dcdf918e4aecb941245ddf6ebb83", + // "error": nil, + // "properties": nil, + // "status": "InProgress", + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/EnableInteractivequery_IntegrationRuntimes.json +func ExampleGetClient_IntegrationRuntimeEnableInteractivequery() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewGetClient("2d03866b-587b-4e1f-a2fe-0a55958c655e", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.IntegrationRuntimeEnableInteractivequery(ctx, "drage-felles-prod-rg", "felles-prod-synapse-workspace", "SSIS-intergrationRuntime-Drage", "5752dcdf918e4aecb941245ddf6ebb83", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.IntegrationRuntimeEnableinteractivequery = armsynapse.IntegrationRuntimeEnableinteractivequery{ + // Properties: map[string]any{ + // "name": "5752dcdf918e4aecb941245ddf6ebb83", + // "error": nil, + // "properties": nil, + // "status": "InProgress", + // }, + // } +} diff --git a/sdk/resourcemanager/synapse/armsynapse/go.mod b/sdk/resourcemanager/synapse/armsynapse/go.mod index 2538cb677912..b0b88fb2c10a 100644 --- a/sdk/resourcemanager/synapse/armsynapse/go.mod +++ b/sdk/resourcemanager/synapse/armsynapse/go.mod @@ -4,13 +4,13 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.0.0 - github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.0.0 + github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.1 ) require ( 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/AzureAD/microsoft-authentication-library-for-go v0.8.1 // indirect + github.com/golang-jwt/jwt/v4 v4.4.2 // 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 diff --git a/sdk/resourcemanager/synapse/armsynapse/go.sum b/sdk/resourcemanager/synapse/armsynapse/go.sum index ed5b814680ee..67cfef6bdf6e 100644 --- a/sdk/resourcemanager/synapse/armsynapse/go.sum +++ b/sdk/resourcemanager/synapse/armsynapse/go.sum @@ -1,21 +1,19 @@ 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/azidentity v1.2.1 h1:T8quHYlUGyb/oqtSTwqlCr1ilJHrDv+ZtpSfo+hm1BU= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.1/go.mod h1:gLa1CL2RNE4s7M3yopJ/p0iq5DdY6Yv5ZUt9MTRZOQM= 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/AzureAD/microsoft-authentication-library-for-go v0.8.1 h1:oPdPEZFSbl7oSPEAIPMPBMUmiL+mqgzBJwM/9qYcwNg= +github.com/AzureAD/microsoft-authentication-library-for-go v0.8.1/go.mod h1:4qFor3D/HDsvBME35Xy9rwW9DecL+M2sNw1ybjPtwA0= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/dnaeon/go-vcr v1.1.0 h1:ReYa/UBrRyQdant9B4fNHGoCNKw6qh6P0fsdGmZpR7c= -github.com/golang-jwt/jwt 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= +github.com/golang-jwt/jwt/v4 v4.4.2 h1:rcc4lwaZgFMCZ5jxF9ABolDcIHdBytAFgqFPbSJQAYs= +github.com/golang-jwt/jwt/v4 v4.4.2/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= 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/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= @@ -24,7 +22,6 @@ golang.org/x/crypto v0.0.0-20220511200225-c6db032c6c88 h1:Tgea0cVUD0ivh5ADBX4Wwu 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-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= diff --git a/sdk/resourcemanager/synapse/armsynapse/zz_generated_integrationruntimeauthkeys_client.go b/sdk/resourcemanager/synapse/armsynapse/integrationruntimeauthkeys_client.go similarity index 88% rename from sdk/resourcemanager/synapse/armsynapse/zz_generated_integrationruntimeauthkeys_client.go rename to sdk/resourcemanager/synapse/armsynapse/integrationruntimeauthkeys_client.go index c8c792389e59..60bdba556da4 100644 --- a/sdk/resourcemanager/synapse/armsynapse/zz_generated_integrationruntimeauthkeys_client.go +++ b/sdk/resourcemanager/synapse/armsynapse/integrationruntimeauthkeys_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse @@ -31,9 +32,9 @@ type IntegrationRuntimeAuthKeysClient struct { } // NewIntegrationRuntimeAuthKeysClient creates a new instance of IntegrationRuntimeAuthKeysClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewIntegrationRuntimeAuthKeysClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*IntegrationRuntimeAuthKeysClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,12 +57,13 @@ func NewIntegrationRuntimeAuthKeysClient(subscriptionID string, credential azcor // List - List authentication keys in an integration runtime // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// integrationRuntimeName - Integration runtime name -// options - IntegrationRuntimeAuthKeysClientListOptions contains the optional parameters for the IntegrationRuntimeAuthKeysClient.List -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - integrationRuntimeName - Integration runtime name +// - options - IntegrationRuntimeAuthKeysClientListOptions contains the optional parameters for the IntegrationRuntimeAuthKeysClient.List +// method. func (client *IntegrationRuntimeAuthKeysClient) List(ctx context.Context, resourceGroupName string, workspaceName string, integrationRuntimeName string, options *IntegrationRuntimeAuthKeysClientListOptions) (IntegrationRuntimeAuthKeysClientListResponse, error) { req, err := client.listCreateRequest(ctx, resourceGroupName, workspaceName, integrationRuntimeName, options) if err != nil { @@ -118,13 +120,14 @@ func (client *IntegrationRuntimeAuthKeysClient) listHandleResponse(resp *http.Re // Regenerate - Regenerate the authentication key for an integration runtime // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// integrationRuntimeName - Integration runtime name -// regenerateKeyParameters - The parameters for regenerating integration runtime authentication key. -// options - IntegrationRuntimeAuthKeysClientRegenerateOptions contains the optional parameters for the IntegrationRuntimeAuthKeysClient.Regenerate -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - integrationRuntimeName - Integration runtime name +// - regenerateKeyParameters - The parameters for regenerating integration runtime authentication key. +// - options - IntegrationRuntimeAuthKeysClientRegenerateOptions contains the optional parameters for the IntegrationRuntimeAuthKeysClient.Regenerate +// method. func (client *IntegrationRuntimeAuthKeysClient) Regenerate(ctx context.Context, resourceGroupName string, workspaceName string, integrationRuntimeName string, regenerateKeyParameters IntegrationRuntimeRegenerateKeyParameters, options *IntegrationRuntimeAuthKeysClientRegenerateOptions) (IntegrationRuntimeAuthKeysClientRegenerateResponse, error) { req, err := client.regenerateCreateRequest(ctx, resourceGroupName, workspaceName, integrationRuntimeName, regenerateKeyParameters, options) if err != nil { diff --git a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_integrationruntimeauthkeys_client_test.go b/sdk/resourcemanager/synapse/armsynapse/integrationruntimeauthkeys_client_example_test.go similarity index 50% rename from sdk/resourcemanager/synapse/armsynapse/ze_generated_example_integrationruntimeauthkeys_client_test.go rename to sdk/resourcemanager/synapse/armsynapse/integrationruntimeauthkeys_client_example_test.go index bbb135c63879..6df4921c176d 100644 --- a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_integrationruntimeauthkeys_client_test.go +++ b/sdk/resourcemanager/synapse/armsynapse/integrationruntimeauthkeys_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse_test @@ -17,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimes_RegenerateAuthKey.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimes_RegenerateAuthKey.json func ExampleIntegrationRuntimeAuthKeysClient_Regenerate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -28,22 +29,21 @@ func ExampleIntegrationRuntimeAuthKeysClient_Regenerate() { if err != nil { log.Fatalf("failed to create client: %v", err) } - res, err := client.Regenerate(ctx, - "exampleResourceGroup", - "exampleWorkspace", - "exampleIntegrationRuntime", - armsynapse.IntegrationRuntimeRegenerateKeyParameters{ - KeyName: to.Ptr(armsynapse.IntegrationRuntimeAuthKeyNameAuthKey2), - }, - nil) + res, err := client.Regenerate(ctx, "exampleResourceGroup", "exampleWorkspace", "exampleIntegrationRuntime", armsynapse.IntegrationRuntimeRegenerateKeyParameters{ + KeyName: to.Ptr(armsynapse.IntegrationRuntimeAuthKeyNameAuthKey2), + }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.IntegrationRuntimeAuthKeys = armsynapse.IntegrationRuntimeAuthKeys{ + // AuthKey2: to.Ptr("**********"), + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimes_ListAuthKeys.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimes_ListAuthKeys.json func ExampleIntegrationRuntimeAuthKeysClient_List() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -54,14 +54,15 @@ func ExampleIntegrationRuntimeAuthKeysClient_List() { if err != nil { log.Fatalf("failed to create client: %v", err) } - res, err := client.List(ctx, - "exampleResourceGroup", - "exampleWorkspace", - "exampleIntegrationRuntime", - nil) + res, err := client.List(ctx, "exampleResourceGroup", "exampleWorkspace", "exampleIntegrationRuntime", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.IntegrationRuntimeAuthKeys = armsynapse.IntegrationRuntimeAuthKeys{ + // AuthKey1: to.Ptr("**********"), + // AuthKey2: to.Ptr("**********"), + // } } diff --git a/sdk/resourcemanager/synapse/armsynapse/zz_generated_integrationruntimeconnectioninfos_client.go b/sdk/resourcemanager/synapse/armsynapse/integrationruntimeconnectioninfos_client.go similarity index 89% rename from sdk/resourcemanager/synapse/armsynapse/zz_generated_integrationruntimeconnectioninfos_client.go rename to sdk/resourcemanager/synapse/armsynapse/integrationruntimeconnectioninfos_client.go index ea3d65d6300c..7042efca91d9 100644 --- a/sdk/resourcemanager/synapse/armsynapse/zz_generated_integrationruntimeconnectioninfos_client.go +++ b/sdk/resourcemanager/synapse/armsynapse/integrationruntimeconnectioninfos_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse @@ -31,9 +32,9 @@ type IntegrationRuntimeConnectionInfosClient struct { } // NewIntegrationRuntimeConnectionInfosClient creates a new instance of IntegrationRuntimeConnectionInfosClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewIntegrationRuntimeConnectionInfosClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*IntegrationRuntimeConnectionInfosClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,12 +57,13 @@ func NewIntegrationRuntimeConnectionInfosClient(subscriptionID string, credentia // Get - Get connection info for an integration runtime // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// integrationRuntimeName - Integration runtime name -// options - IntegrationRuntimeConnectionInfosClientGetOptions contains the optional parameters for the IntegrationRuntimeConnectionInfosClient.Get -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - integrationRuntimeName - Integration runtime name +// - options - IntegrationRuntimeConnectionInfosClientGetOptions contains the optional parameters for the IntegrationRuntimeConnectionInfosClient.Get +// method. func (client *IntegrationRuntimeConnectionInfosClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, integrationRuntimeName string, options *IntegrationRuntimeConnectionInfosClientGetOptions) (IntegrationRuntimeConnectionInfosClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, workspaceName, integrationRuntimeName, options) if err != nil { diff --git a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_integrationruntimeconnectioninfos_client_test.go b/sdk/resourcemanager/synapse/armsynapse/integrationruntimeconnectioninfos_client_example_test.go similarity index 51% rename from sdk/resourcemanager/synapse/armsynapse/ze_generated_example_integrationruntimeconnectioninfos_client_test.go rename to sdk/resourcemanager/synapse/armsynapse/integrationruntimeconnectioninfos_client_example_test.go index eb74514b440d..f2026c2e60d2 100644 --- a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_integrationruntimeconnectioninfos_client_test.go +++ b/sdk/resourcemanager/synapse/armsynapse/integrationruntimeconnectioninfos_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse_test @@ -16,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimes_GetConnectionInfo.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimes_GetConnectionInfo.json func ExampleIntegrationRuntimeConnectionInfosClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -27,14 +28,19 @@ func ExampleIntegrationRuntimeConnectionInfosClient_Get() { if err != nil { log.Fatalf("failed to create client: %v", err) } - res, err := client.Get(ctx, - "exampleResourceGroup", - "exampleWorkspace", - "exampleIntegrationRuntime", - nil) + res, err := client.Get(ctx, "exampleResourceGroup", "exampleWorkspace", "exampleIntegrationRuntime", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.IntegrationRuntimeConnectionInfo = armsynapse.IntegrationRuntimeConnectionInfo{ + // HostServiceURI: to.Ptr("https://yanzhang-dt.fareast.corp.microsoft.com:8050/HostServiceRemote.svc/"), + // IdentityCertThumbprint: to.Ptr("**********"), + // IsIdentityCertExprired: to.Ptr(false), + // PublicKey: to.Ptr("**********"), + // ServiceToken: to.Ptr("**********"), + // Version: to.Ptr("3.8.6730.2"), + // } } diff --git a/sdk/resourcemanager/synapse/armsynapse/zz_generated_integrationruntimecredentials_client.go b/sdk/resourcemanager/synapse/armsynapse/integrationruntimecredentials_client.go similarity index 89% rename from sdk/resourcemanager/synapse/armsynapse/zz_generated_integrationruntimecredentials_client.go rename to sdk/resourcemanager/synapse/armsynapse/integrationruntimecredentials_client.go index 5b27a4a9d43d..60128cf6f630 100644 --- a/sdk/resourcemanager/synapse/armsynapse/zz_generated_integrationruntimecredentials_client.go +++ b/sdk/resourcemanager/synapse/armsynapse/integrationruntimecredentials_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse @@ -31,9 +32,9 @@ type IntegrationRuntimeCredentialsClient struct { } // NewIntegrationRuntimeCredentialsClient creates a new instance of IntegrationRuntimeCredentialsClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewIntegrationRuntimeCredentialsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*IntegrationRuntimeCredentialsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -59,12 +60,13 @@ func NewIntegrationRuntimeCredentialsClient(subscriptionID string, credential az // If you already have the latest credential backup file, you should manually import it (preferred) on any self-hosted integration // runtime node than using this API directly. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// integrationRuntimeName - Integration runtime name -// options - IntegrationRuntimeCredentialsClientSyncOptions contains the optional parameters for the IntegrationRuntimeCredentialsClient.Sync -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - integrationRuntimeName - Integration runtime name +// - options - IntegrationRuntimeCredentialsClientSyncOptions contains the optional parameters for the IntegrationRuntimeCredentialsClient.Sync +// method. func (client *IntegrationRuntimeCredentialsClient) Sync(ctx context.Context, resourceGroupName string, workspaceName string, integrationRuntimeName string, options *IntegrationRuntimeCredentialsClientSyncOptions) (IntegrationRuntimeCredentialsClientSyncResponse, error) { req, err := client.syncCreateRequest(ctx, resourceGroupName, workspaceName, integrationRuntimeName, options) if err != nil { diff --git a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_integrationruntimecredentials_client_test.go b/sdk/resourcemanager/synapse/armsynapse/integrationruntimecredentials_client_example_test.go similarity index 76% rename from sdk/resourcemanager/synapse/armsynapse/ze_generated_example_integrationruntimecredentials_client_test.go rename to sdk/resourcemanager/synapse/armsynapse/integrationruntimecredentials_client_example_test.go index e5660a40883c..02fc34c01179 100644 --- a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_integrationruntimecredentials_client_test.go +++ b/sdk/resourcemanager/synapse/armsynapse/integrationruntimecredentials_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse_test @@ -16,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimes_SyncCredentials.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimes_SyncCredentials.json func ExampleIntegrationRuntimeCredentialsClient_Sync() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -27,11 +28,7 @@ func ExampleIntegrationRuntimeCredentialsClient_Sync() { if err != nil { log.Fatalf("failed to create client: %v", err) } - _, err = client.Sync(ctx, - "exampleResourceGroup", - "exampleWorkspace", - "exampleIntegrationRuntime", - nil) + _, err = client.Sync(ctx, "exampleResourceGroup", "exampleWorkspace", "exampleIntegrationRuntime", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } diff --git a/sdk/resourcemanager/synapse/armsynapse/zz_generated_integrationruntimemonitoringdata_client.go b/sdk/resourcemanager/synapse/armsynapse/integrationruntimemonitoringdata_client.go similarity index 89% rename from sdk/resourcemanager/synapse/armsynapse/zz_generated_integrationruntimemonitoringdata_client.go rename to sdk/resourcemanager/synapse/armsynapse/integrationruntimemonitoringdata_client.go index 0a0f53f3c077..6ba67b5fb5b2 100644 --- a/sdk/resourcemanager/synapse/armsynapse/zz_generated_integrationruntimemonitoringdata_client.go +++ b/sdk/resourcemanager/synapse/armsynapse/integrationruntimemonitoringdata_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse @@ -31,9 +32,9 @@ type IntegrationRuntimeMonitoringDataClient struct { } // NewIntegrationRuntimeMonitoringDataClient creates a new instance of IntegrationRuntimeMonitoringDataClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewIntegrationRuntimeMonitoringDataClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*IntegrationRuntimeMonitoringDataClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,12 +57,13 @@ func NewIntegrationRuntimeMonitoringDataClient(subscriptionID string, credential // List - Get monitoring data for an integration runtime // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// integrationRuntimeName - Integration runtime name -// options - IntegrationRuntimeMonitoringDataClientListOptions contains the optional parameters for the IntegrationRuntimeMonitoringDataClient.List -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - integrationRuntimeName - Integration runtime name +// - options - IntegrationRuntimeMonitoringDataClientListOptions contains the optional parameters for the IntegrationRuntimeMonitoringDataClient.List +// method. func (client *IntegrationRuntimeMonitoringDataClient) List(ctx context.Context, resourceGroupName string, workspaceName string, integrationRuntimeName string, options *IntegrationRuntimeMonitoringDataClientListOptions) (IntegrationRuntimeMonitoringDataClientListResponse, error) { req, err := client.listCreateRequest(ctx, resourceGroupName, workspaceName, integrationRuntimeName, options) if err != nil { diff --git a/sdk/resourcemanager/synapse/armsynapse/integrationruntimemonitoringdata_client_example_test.go b/sdk/resourcemanager/synapse/armsynapse/integrationruntimemonitoringdata_client_example_test.go new file mode 100644 index 000000000000..b8cc86568e65 --- /dev/null +++ b/sdk/resourcemanager/synapse/armsynapse/integrationruntimemonitoringdata_client_example_test.go @@ -0,0 +1,51 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armsynapse_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimeMonitoringData_List.json +func ExampleIntegrationRuntimeMonitoringDataClient_List() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewIntegrationRuntimeMonitoringDataClient("12345678-1234-1234-1234-12345678abc", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.List(ctx, "exampleResourceGroup", "exampleWorkspace", "exampleIntegrationRuntime", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.IntegrationRuntimeMonitoringData = armsynapse.IntegrationRuntimeMonitoringData{ + // Name: to.Ptr("exampleIntegrationRuntime"), + // Nodes: []*armsynapse.IntegrationRuntimeNodeMonitoringData{ + // { + // AvailableMemoryInMB: to.Ptr[int32](16740), + // ConcurrentJobsLimit: to.Ptr[int32](28), + // ConcurrentJobsRunning: to.Ptr[int32](0), + // CPUUtilization: to.Ptr[int32](15), + // NodeName: to.Ptr("Node_1"), + // ReceivedBytes: to.Ptr[float32](6.731423377990723), + // SentBytes: to.Ptr[float32](2.647491693496704), + // }}, + // } +} diff --git a/sdk/resourcemanager/synapse/armsynapse/zz_generated_integrationruntimenodeipaddress_client.go b/sdk/resourcemanager/synapse/armsynapse/integrationruntimenodeipaddress_client.go similarity index 89% rename from sdk/resourcemanager/synapse/armsynapse/zz_generated_integrationruntimenodeipaddress_client.go rename to sdk/resourcemanager/synapse/armsynapse/integrationruntimenodeipaddress_client.go index 9fc8ee5ec19d..3e1b0814dfc7 100644 --- a/sdk/resourcemanager/synapse/armsynapse/zz_generated_integrationruntimenodeipaddress_client.go +++ b/sdk/resourcemanager/synapse/armsynapse/integrationruntimenodeipaddress_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse @@ -31,9 +32,9 @@ type IntegrationRuntimeNodeIPAddressClient struct { } // NewIntegrationRuntimeNodeIPAddressClient creates a new instance of IntegrationRuntimeNodeIPAddressClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewIntegrationRuntimeNodeIPAddressClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*IntegrationRuntimeNodeIPAddressClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,13 +57,14 @@ func NewIntegrationRuntimeNodeIPAddressClient(subscriptionID string, credential // Get - Get the IP address of an integration runtime node // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// integrationRuntimeName - Integration runtime name -// nodeName - Integration runtime node name -// options - IntegrationRuntimeNodeIPAddressClientGetOptions contains the optional parameters for the IntegrationRuntimeNodeIPAddressClient.Get -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - integrationRuntimeName - Integration runtime name +// - nodeName - Integration runtime node name +// - options - IntegrationRuntimeNodeIPAddressClientGetOptions contains the optional parameters for the IntegrationRuntimeNodeIPAddressClient.Get +// method. func (client *IntegrationRuntimeNodeIPAddressClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, integrationRuntimeName string, nodeName string, options *IntegrationRuntimeNodeIPAddressClientGetOptions) (IntegrationRuntimeNodeIPAddressClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, workspaceName, integrationRuntimeName, nodeName, options) if err != nil { diff --git a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_integrationruntimenodeipaddress_client_test.go b/sdk/resourcemanager/synapse/armsynapse/integrationruntimenodeipaddress_client_example_test.go similarity index 58% rename from sdk/resourcemanager/synapse/armsynapse/ze_generated_example_integrationruntimenodeipaddress_client_test.go rename to sdk/resourcemanager/synapse/armsynapse/integrationruntimenodeipaddress_client_example_test.go index 8b1fceb616b4..00e1c4d7f12e 100644 --- a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_integrationruntimenodeipaddress_client_test.go +++ b/sdk/resourcemanager/synapse/armsynapse/integrationruntimenodeipaddress_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse_test @@ -16,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimeNodes_GetIpAddress.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimeNodes_GetIpAddress.json func ExampleIntegrationRuntimeNodeIPAddressClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -27,15 +28,14 @@ func ExampleIntegrationRuntimeNodeIPAddressClient_Get() { if err != nil { log.Fatalf("failed to create client: %v", err) } - res, err := client.Get(ctx, - "exampleResourceGroup", - "exampleWorkspace", - "exampleIntegrationRuntime", - "Node_1", - nil) + res, err := client.Get(ctx, "exampleResourceGroup", "exampleWorkspace", "exampleIntegrationRuntime", "Node_1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.IntegrationRuntimeNodeIPAddress = armsynapse.IntegrationRuntimeNodeIPAddress{ + // IPAddress: to.Ptr("**********"), + // } } diff --git a/sdk/resourcemanager/synapse/armsynapse/zz_generated_integrationruntimenodes_client.go b/sdk/resourcemanager/synapse/armsynapse/integrationruntimenodes_client.go similarity index 88% rename from sdk/resourcemanager/synapse/armsynapse/zz_generated_integrationruntimenodes_client.go rename to sdk/resourcemanager/synapse/armsynapse/integrationruntimenodes_client.go index c580ddc463e3..41c2f41749f0 100644 --- a/sdk/resourcemanager/synapse/armsynapse/zz_generated_integrationruntimenodes_client.go +++ b/sdk/resourcemanager/synapse/armsynapse/integrationruntimenodes_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse @@ -31,9 +32,9 @@ type IntegrationRuntimeNodesClient struct { } // NewIntegrationRuntimeNodesClient creates a new instance of IntegrationRuntimeNodesClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewIntegrationRuntimeNodesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*IntegrationRuntimeNodesClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,13 +57,14 @@ func NewIntegrationRuntimeNodesClient(subscriptionID string, credential azcore.T // Delete - Delete an integration runtime node // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// integrationRuntimeName - Integration runtime name -// nodeName - Integration runtime node name -// options - IntegrationRuntimeNodesClientDeleteOptions contains the optional parameters for the IntegrationRuntimeNodesClient.Delete -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - integrationRuntimeName - Integration runtime name +// - nodeName - Integration runtime node name +// - options - IntegrationRuntimeNodesClientDeleteOptions contains the optional parameters for the IntegrationRuntimeNodesClient.Delete +// method. func (client *IntegrationRuntimeNodesClient) Delete(ctx context.Context, resourceGroupName string, workspaceName string, integrationRuntimeName string, nodeName string, options *IntegrationRuntimeNodesClientDeleteOptions) (IntegrationRuntimeNodesClientDeleteResponse, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, workspaceName, integrationRuntimeName, nodeName, options) if err != nil { @@ -114,13 +116,14 @@ func (client *IntegrationRuntimeNodesClient) deleteCreateRequest(ctx context.Con // Get - Get an integration runtime node // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// integrationRuntimeName - Integration runtime name -// nodeName - Integration runtime node name -// options - IntegrationRuntimeNodesClientGetOptions contains the optional parameters for the IntegrationRuntimeNodesClient.Get -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - integrationRuntimeName - Integration runtime name +// - nodeName - Integration runtime node name +// - options - IntegrationRuntimeNodesClientGetOptions contains the optional parameters for the IntegrationRuntimeNodesClient.Get +// method. func (client *IntegrationRuntimeNodesClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, integrationRuntimeName string, nodeName string, options *IntegrationRuntimeNodesClientGetOptions) (IntegrationRuntimeNodesClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, workspaceName, integrationRuntimeName, nodeName, options) if err != nil { @@ -181,14 +184,15 @@ func (client *IntegrationRuntimeNodesClient) getHandleResponse(resp *http.Respon // Update - Create an integration runtime node // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// integrationRuntimeName - Integration runtime name -// nodeName - Integration runtime node name -// updateIntegrationRuntimeNodeRequest - The parameters for updating an integration runtime node. -// options - IntegrationRuntimeNodesClientUpdateOptions contains the optional parameters for the IntegrationRuntimeNodesClient.Update -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - integrationRuntimeName - Integration runtime name +// - nodeName - Integration runtime node name +// - updateIntegrationRuntimeNodeRequest - The parameters for updating an integration runtime node. +// - options - IntegrationRuntimeNodesClientUpdateOptions contains the optional parameters for the IntegrationRuntimeNodesClient.Update +// method. func (client *IntegrationRuntimeNodesClient) Update(ctx context.Context, resourceGroupName string, workspaceName string, integrationRuntimeName string, nodeName string, updateIntegrationRuntimeNodeRequest UpdateIntegrationRuntimeNodeRequest, options *IntegrationRuntimeNodesClientUpdateOptions) (IntegrationRuntimeNodesClientUpdateResponse, error) { req, err := client.updateCreateRequest(ctx, resourceGroupName, workspaceName, integrationRuntimeName, nodeName, updateIntegrationRuntimeNodeRequest, options) if err != nil { diff --git a/sdk/resourcemanager/synapse/armsynapse/integrationruntimenodes_client_example_test.go b/sdk/resourcemanager/synapse/armsynapse/integrationruntimenodes_client_example_test.go new file mode 100644 index 000000000000..d67fc091f02d --- /dev/null +++ b/sdk/resourcemanager/synapse/armsynapse/integrationruntimenodes_client_example_test.go @@ -0,0 +1,121 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armsynapse_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimeNodes_Get.json +func ExampleIntegrationRuntimeNodesClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewIntegrationRuntimeNodesClient("12345678-1234-1234-1234-12345678abc", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "exampleResourceGroup", "exampleWorkspace", "exampleIntegrationRuntime", "Node_1", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.SelfHostedIntegrationRuntimeNode = armsynapse.SelfHostedIntegrationRuntimeNode{ + // Capabilities: map[string]*string{ + // "connectedToResourceManager": to.Ptr("True"), + // "credentialInSync": to.Ptr("True"), + // "httpsPortEnabled": to.Ptr("True"), + // "nodeEnabled": to.Ptr("True"), + // "serviceBusConnected": to.Ptr("True"), + // }, + // HostServiceURI: to.Ptr("https://yanzhang-dt.fareast.corp.microsoft.com:8050/HostServiceRemote.svc/"), + // IsActiveDispatcher: to.Ptr(true), + // LastConnectTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-17T06:30:46.6262976Z"); return t}()), + // LastStartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-17T03:45:30.8499851Z"); return t}()), + // LastUpdateResult: to.Ptr(armsynapse.IntegrationRuntimeUpdateResultNone), + // MachineName: to.Ptr("YANZHANG-DT"), + // MaxConcurrentJobs: to.Ptr[int32](20), + // NodeName: to.Ptr("Node_1"), + // RegisterTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-17T03:44:55.8012825Z"); return t}()), + // Status: to.Ptr(armsynapse.SelfHostedIntegrationRuntimeNodeStatusOnline), + // Version: to.Ptr("3.8.6743.6"), + // VersionStatus: to.Ptr("UpToDate"), + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimeNodes_Update.json +func ExampleIntegrationRuntimeNodesClient_Update() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewIntegrationRuntimeNodesClient("12345678-1234-1234-1234-12345678abc", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Update(ctx, "exampleResourceGroup", "exampleWorkspace", "exampleIntegrationRuntime", "Node_1", armsynapse.UpdateIntegrationRuntimeNodeRequest{ + ConcurrentJobsLimit: to.Ptr[int32](2), + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.SelfHostedIntegrationRuntimeNode = armsynapse.SelfHostedIntegrationRuntimeNode{ + // Capabilities: map[string]*string{ + // "connectedToResourceManager": to.Ptr("True"), + // "credentialInSync": to.Ptr("True"), + // "httpsPortEnabled": to.Ptr("True"), + // "nodeEnabled": to.Ptr("True"), + // "serviceBusConnected": to.Ptr("True"), + // }, + // ConcurrentJobsLimit: to.Ptr[int32](2), + // HostServiceURI: to.Ptr("https://yanzhang-dt.fareast.corp.microsoft.com:8050/HostServiceRemote.svc/"), + // IsActiveDispatcher: to.Ptr(true), + // LastConnectTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-14T15:00:35.7544322Z"); return t}()), + // LastStartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-14T14:52:59.8933313Z"); return t}()), + // LastUpdateResult: to.Ptr(armsynapse.IntegrationRuntimeUpdateResultNone), + // MachineName: to.Ptr("YANZHANG-DT"), + // MaxConcurrentJobs: to.Ptr[int32](56), + // NodeName: to.Ptr("Node_1"), + // RegisterTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-14T14:51:44.9237069Z"); return t}()), + // Status: to.Ptr(armsynapse.SelfHostedIntegrationRuntimeNodeStatusOnline), + // Version: to.Ptr("3.8.6730.2"), + // VersionStatus: to.Ptr("UpToDate"), + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimeNodes_Delete.json +func ExampleIntegrationRuntimeNodesClient_Delete() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewIntegrationRuntimeNodesClient("12345678-1234-1234-1234-12345678abc", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + _, err = client.Delete(ctx, "exampleResourceGroup", "exampleWorkspace", "exampleIntegrationRuntime", "Node_1", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } +} diff --git a/sdk/resourcemanager/synapse/armsynapse/zz_generated_integrationruntimeobjectmetadata_client.go b/sdk/resourcemanager/synapse/armsynapse/integrationruntimeobjectmetadata_client.go similarity index 88% rename from sdk/resourcemanager/synapse/armsynapse/zz_generated_integrationruntimeobjectmetadata_client.go rename to sdk/resourcemanager/synapse/armsynapse/integrationruntimeobjectmetadata_client.go index 7ff9f7935c8a..31582ffc50ec 100644 --- a/sdk/resourcemanager/synapse/armsynapse/zz_generated_integrationruntimeobjectmetadata_client.go +++ b/sdk/resourcemanager/synapse/armsynapse/integrationruntimeobjectmetadata_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse @@ -31,9 +32,9 @@ type IntegrationRuntimeObjectMetadataClient struct { } // NewIntegrationRuntimeObjectMetadataClient creates a new instance of IntegrationRuntimeObjectMetadataClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewIntegrationRuntimeObjectMetadataClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*IntegrationRuntimeObjectMetadataClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,12 +57,13 @@ func NewIntegrationRuntimeObjectMetadataClient(subscriptionID string, credential // List - Get object metadata from an integration runtime // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// integrationRuntimeName - Integration runtime name -// options - IntegrationRuntimeObjectMetadataClientListOptions contains the optional parameters for the IntegrationRuntimeObjectMetadataClient.List -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - integrationRuntimeName - Integration runtime name +// - options - IntegrationRuntimeObjectMetadataClientListOptions contains the optional parameters for the IntegrationRuntimeObjectMetadataClient.List +// method. func (client *IntegrationRuntimeObjectMetadataClient) List(ctx context.Context, resourceGroupName string, workspaceName string, integrationRuntimeName string, options *IntegrationRuntimeObjectMetadataClientListOptions) (IntegrationRuntimeObjectMetadataClientListResponse, error) { req, err := client.listCreateRequest(ctx, resourceGroupName, workspaceName, integrationRuntimeName, options) if err != nil { @@ -121,19 +123,22 @@ func (client *IntegrationRuntimeObjectMetadataClient) listHandleResponse(resp *h // BeginRefresh - Refresh the object metadata in an integration runtime // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// integrationRuntimeName - Integration runtime name -// options - IntegrationRuntimeObjectMetadataClientBeginRefreshOptions contains the optional parameters for the IntegrationRuntimeObjectMetadataClient.BeginRefresh -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - integrationRuntimeName - Integration runtime name +// - options - IntegrationRuntimeObjectMetadataClientBeginRefreshOptions contains the optional parameters for the IntegrationRuntimeObjectMetadataClient.BeginRefresh +// method. func (client *IntegrationRuntimeObjectMetadataClient) BeginRefresh(ctx context.Context, resourceGroupName string, workspaceName string, integrationRuntimeName string, options *IntegrationRuntimeObjectMetadataClientBeginRefreshOptions) (*runtime.Poller[IntegrationRuntimeObjectMetadataClientRefreshResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.refresh(ctx, resourceGroupName, workspaceName, integrationRuntimeName, options) if err != nil { return nil, err } - return runtime.NewPoller[IntegrationRuntimeObjectMetadataClientRefreshResponse](resp, client.pl, nil) + return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[IntegrationRuntimeObjectMetadataClientRefreshResponse]{ + FinalStateVia: runtime.FinalStateViaAzureAsyncOp, + }) } else { return runtime.NewPollerFromResumeToken[IntegrationRuntimeObjectMetadataClientRefreshResponse](options.ResumeToken, client.pl, nil) } @@ -141,6 +146,7 @@ func (client *IntegrationRuntimeObjectMetadataClient) BeginRefresh(ctx context.C // Refresh - Refresh the object metadata in an integration runtime // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview func (client *IntegrationRuntimeObjectMetadataClient) refresh(ctx context.Context, resourceGroupName string, workspaceName string, integrationRuntimeName string, options *IntegrationRuntimeObjectMetadataClientBeginRefreshOptions) (*http.Response, error) { req, err := client.refreshCreateRequest(ctx, resourceGroupName, workspaceName, integrationRuntimeName, options) diff --git a/sdk/resourcemanager/synapse/armsynapse/integrationruntimeobjectmetadata_client_example_test.go b/sdk/resourcemanager/synapse/armsynapse/integrationruntimeobjectmetadata_client_example_test.go new file mode 100644 index 000000000000..05351b309794 --- /dev/null +++ b/sdk/resourcemanager/synapse/armsynapse/integrationruntimeobjectmetadata_client_example_test.go @@ -0,0 +1,577 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armsynapse_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimeObjectMetadata_List.json +func ExampleIntegrationRuntimeObjectMetadataClient_List() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewIntegrationRuntimeObjectMetadataClient("12345678-1234-1234-1234-12345678abc", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.List(ctx, "exampleResourceGroup", "exampleWorkspace", "testactivityv2", &armsynapse.IntegrationRuntimeObjectMetadataClientListOptions{GetMetadataRequest: &armsynapse.GetSsisObjectMetadataRequest{ + MetadataPath: to.Ptr("ssisFolders"), + }, + }) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.SsisObjectMetadataListResponse = armsynapse.SsisObjectMetadataListResponse{ + // Value: []armsynapse.SsisObjectMetadataClassification{ + // &armsynapse.SsisFolder{ + // Name: to.Ptr("TestFolder"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // Description: to.Ptr(""), + // ID: to.Ptr[int64](1), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("EnvironmentFolder"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // Description: to.Ptr(""), + // ID: to.Ptr[int64](2), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("ActivityTest"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // Description: to.Ptr(""), + // ID: to.Ptr[int64](3), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("这是文件夹"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // Description: to.Ptr(""), + // ID: to.Ptr[int64](4), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("1"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](5), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("2"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](6), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("3"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](7), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("4"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](8), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("5"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](9), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("6"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](10), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("7"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](11), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("8"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](12), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("9"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](13), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("10"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](14), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("11"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](15), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("12"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](16), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("13"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](17), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("14"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](18), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("15"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](19), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("16"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](20), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("17"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](21), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("18"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](22), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("19"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](23), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("20"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](24), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("21"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](25), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("22"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](26), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("23"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](27), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("24"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](28), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("25"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](29), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("26"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](30), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("27"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](31), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("28"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](32), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("29"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](33), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("30"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](34), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("31"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](35), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("32"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](36), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("33"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](37), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("34"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](38), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("35"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](39), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("36"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](40), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("37"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](41), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("38"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](42), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("39"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](43), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("40"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](44), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("41"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](45), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("42"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](46), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("43"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](47), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("44"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](48), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("45"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](49), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("46"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](50), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("47"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](51), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("48"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](52), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("49"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](53), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("50"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](54), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("51"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](55), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("52"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](56), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("53"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](57), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("54"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](58), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("55"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](59), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("56"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](60), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("57"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](61), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("58"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](62), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("59"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](63), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("60"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](64), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("61"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](65), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("62"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](66), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("63"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](67), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("64"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](68), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("65"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](69), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("66"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](70), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("67"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](71), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("68"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](72), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("69"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](73), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("70"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](74), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("71"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](75), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("72"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](76), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("73"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](77), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("74"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](78), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("75"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](79), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("76"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](80), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("77"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](81), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("78"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](82), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("79"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](83), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("80"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](84), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("81"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](85), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("82"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](86), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("83"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](87), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("84"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](88), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("85"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](89), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("86"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](90), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("87"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](91), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("88"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](92), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("89"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](93), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("90"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](94), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("91"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](95), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("92"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](96), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("93"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](97), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("94"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](98), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("95"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](99), + // }, + // &armsynapse.SsisFolder{ + // Name: to.Ptr("96"), + // Type: to.Ptr(armsynapse.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](100), + // }}, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimeObjectMetadata_Refresh.json +func ExampleIntegrationRuntimeObjectMetadataClient_BeginRefresh() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewIntegrationRuntimeObjectMetadataClient("12345678-1234-1234-1234-12345678abc", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginRefresh(ctx, "exampleResourceGroup", "exampleWorkspace", "testactivityv2", 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.SsisObjectMetadataStatusResponse = armsynapse.SsisObjectMetadataStatusResponse{ + // Name: to.Ptr("ca63c855b72d44959653ffcc6eb0b96c"), + // Status: to.Ptr("Succeeded"), + // } +} diff --git a/sdk/resourcemanager/synapse/armsynapse/zz_generated_integrationruntimes_client.go b/sdk/resourcemanager/synapse/armsynapse/integrationruntimes_client.go similarity index 89% rename from sdk/resourcemanager/synapse/armsynapse/zz_generated_integrationruntimes_client.go rename to sdk/resourcemanager/synapse/armsynapse/integrationruntimes_client.go index b2780a1f0f30..9efb0ae03ae4 100644 --- a/sdk/resourcemanager/synapse/armsynapse/zz_generated_integrationruntimes_client.go +++ b/sdk/resourcemanager/synapse/armsynapse/integrationruntimes_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse @@ -31,9 +32,9 @@ type IntegrationRuntimesClient struct { } // NewIntegrationRuntimesClient creates a new instance of IntegrationRuntimesClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewIntegrationRuntimesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*IntegrationRuntimesClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,13 +57,14 @@ func NewIntegrationRuntimesClient(subscriptionID string, credential azcore.Token // BeginCreate - Create an integration runtime // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// integrationRuntimeName - Integration runtime name -// integrationRuntime - Integration runtime resource definition. -// options - IntegrationRuntimesClientBeginCreateOptions contains the optional parameters for the IntegrationRuntimesClient.BeginCreate -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - integrationRuntimeName - Integration runtime name +// - integrationRuntime - Integration runtime resource definition. +// - options - IntegrationRuntimesClientBeginCreateOptions contains the optional parameters for the IntegrationRuntimesClient.BeginCreate +// method. func (client *IntegrationRuntimesClient) BeginCreate(ctx context.Context, resourceGroupName string, workspaceName string, integrationRuntimeName string, integrationRuntime IntegrationRuntimeResource, options *IntegrationRuntimesClientBeginCreateOptions) (*runtime.Poller[IntegrationRuntimesClientCreateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.create(ctx, resourceGroupName, workspaceName, integrationRuntimeName, integrationRuntime, options) @@ -77,6 +79,7 @@ func (client *IntegrationRuntimesClient) BeginCreate(ctx context.Context, resour // Create - Create an integration runtime // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview func (client *IntegrationRuntimesClient) create(ctx context.Context, resourceGroupName string, workspaceName string, integrationRuntimeName string, integrationRuntime IntegrationRuntimeResource, options *IntegrationRuntimesClientBeginCreateOptions) (*http.Response, error) { req, err := client.createCreateRequest(ctx, resourceGroupName, workspaceName, integrationRuntimeName, integrationRuntime, options) @@ -128,12 +131,13 @@ func (client *IntegrationRuntimesClient) createCreateRequest(ctx context.Context // BeginDelete - Delete an integration runtime // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// integrationRuntimeName - Integration runtime name -// options - IntegrationRuntimesClientBeginDeleteOptions contains the optional parameters for the IntegrationRuntimesClient.BeginDelete -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - integrationRuntimeName - Integration runtime name +// - options - IntegrationRuntimesClientBeginDeleteOptions contains the optional parameters for the IntegrationRuntimesClient.BeginDelete +// method. func (client *IntegrationRuntimesClient) BeginDelete(ctx context.Context, resourceGroupName string, workspaceName string, integrationRuntimeName string, options *IntegrationRuntimesClientBeginDeleteOptions) (*runtime.Poller[IntegrationRuntimesClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, workspaceName, integrationRuntimeName, options) @@ -148,6 +152,7 @@ func (client *IntegrationRuntimesClient) BeginDelete(ctx context.Context, resour // Delete - Delete an integration runtime // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview func (client *IntegrationRuntimesClient) deleteOperation(ctx context.Context, resourceGroupName string, workspaceName string, integrationRuntimeName string, options *IntegrationRuntimesClientBeginDeleteOptions) (*http.Response, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, workspaceName, integrationRuntimeName, options) @@ -196,12 +201,13 @@ func (client *IntegrationRuntimesClient) deleteCreateRequest(ctx context.Context // BeginDisableInteractiveQuery - Disable interactive query in integration runtime // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// integrationRuntimeName - Integration runtime name -// options - IntegrationRuntimesClientBeginDisableInteractiveQueryOptions contains the optional parameters for the IntegrationRuntimesClient.BeginDisableInteractiveQuery -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - integrationRuntimeName - Integration runtime name +// - options - IntegrationRuntimesClientBeginDisableInteractiveQueryOptions contains the optional parameters for the IntegrationRuntimesClient.BeginDisableInteractiveQuery +// method. func (client *IntegrationRuntimesClient) BeginDisableInteractiveQuery(ctx context.Context, resourceGroupName string, workspaceName string, integrationRuntimeName string, options *IntegrationRuntimesClientBeginDisableInteractiveQueryOptions) (*runtime.Poller[IntegrationRuntimesClientDisableInteractiveQueryResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.disableInteractiveQuery(ctx, resourceGroupName, workspaceName, integrationRuntimeName, options) @@ -216,6 +222,7 @@ func (client *IntegrationRuntimesClient) BeginDisableInteractiveQuery(ctx contex // DisableInteractiveQuery - Disable interactive query in integration runtime // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview func (client *IntegrationRuntimesClient) disableInteractiveQuery(ctx context.Context, resourceGroupName string, workspaceName string, integrationRuntimeName string, options *IntegrationRuntimesClientBeginDisableInteractiveQueryOptions) (*http.Response, error) { req, err := client.disableInteractiveQueryCreateRequest(ctx, resourceGroupName, workspaceName, integrationRuntimeName, options) @@ -264,12 +271,13 @@ func (client *IntegrationRuntimesClient) disableInteractiveQueryCreateRequest(ct // BeginEnableInteractiveQuery - Enable interactive query in integration runtime // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// integrationRuntimeName - Integration runtime name -// options - IntegrationRuntimesClientBeginEnableInteractiveQueryOptions contains the optional parameters for the IntegrationRuntimesClient.BeginEnableInteractiveQuery -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - integrationRuntimeName - Integration runtime name +// - options - IntegrationRuntimesClientBeginEnableInteractiveQueryOptions contains the optional parameters for the IntegrationRuntimesClient.BeginEnableInteractiveQuery +// method. func (client *IntegrationRuntimesClient) BeginEnableInteractiveQuery(ctx context.Context, resourceGroupName string, workspaceName string, integrationRuntimeName string, options *IntegrationRuntimesClientBeginEnableInteractiveQueryOptions) (*runtime.Poller[IntegrationRuntimesClientEnableInteractiveQueryResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.enableInteractiveQuery(ctx, resourceGroupName, workspaceName, integrationRuntimeName, options) @@ -284,6 +292,7 @@ func (client *IntegrationRuntimesClient) BeginEnableInteractiveQuery(ctx context // EnableInteractiveQuery - Enable interactive query in integration runtime // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview func (client *IntegrationRuntimesClient) enableInteractiveQuery(ctx context.Context, resourceGroupName string, workspaceName string, integrationRuntimeName string, options *IntegrationRuntimesClientBeginEnableInteractiveQueryOptions) (*http.Response, error) { req, err := client.enableInteractiveQueryCreateRequest(ctx, resourceGroupName, workspaceName, integrationRuntimeName, options) @@ -332,11 +341,12 @@ func (client *IntegrationRuntimesClient) enableInteractiveQueryCreateRequest(ctx // Get - Get an integration runtime // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// integrationRuntimeName - Integration runtime name -// options - IntegrationRuntimesClientGetOptions contains the optional parameters for the IntegrationRuntimesClient.Get method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - integrationRuntimeName - Integration runtime name +// - options - IntegrationRuntimesClientGetOptions contains the optional parameters for the IntegrationRuntimesClient.Get method. func (client *IntegrationRuntimesClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, integrationRuntimeName string, options *IntegrationRuntimesClientGetOptions) (IntegrationRuntimesClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, workspaceName, integrationRuntimeName, options) if err != nil { @@ -395,12 +405,12 @@ func (client *IntegrationRuntimesClient) getHandleResponse(resp *http.Response) } // NewListByWorkspacePager - List all integration runtimes -// If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// options - IntegrationRuntimesClientListByWorkspaceOptions contains the optional parameters for the IntegrationRuntimesClient.ListByWorkspace -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - options - IntegrationRuntimesClientListByWorkspaceOptions contains the optional parameters for the IntegrationRuntimesClient.NewListByWorkspacePager +// method. func (client *IntegrationRuntimesClient) NewListByWorkspacePager(resourceGroupName string, workspaceName string, options *IntegrationRuntimesClientListByWorkspaceOptions) *runtime.Pager[IntegrationRuntimesClientListByWorkspaceResponse] { return runtime.NewPager(runtime.PagingHandler[IntegrationRuntimesClientListByWorkspaceResponse]{ More: func(page IntegrationRuntimesClientListByWorkspaceResponse) bool { @@ -467,12 +477,13 @@ func (client *IntegrationRuntimesClient) listByWorkspaceHandleResponse(resp *htt // ListOutboundNetworkDependenciesEndpoints - Gets the list of outbound network dependencies for a given Azure-SSIS integration // runtime. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// integrationRuntimeName - Integration runtime name -// options - IntegrationRuntimesClientListOutboundNetworkDependenciesEndpointsOptions contains the optional parameters for -// the IntegrationRuntimesClient.ListOutboundNetworkDependenciesEndpoints method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - integrationRuntimeName - Integration runtime name +// - options - IntegrationRuntimesClientListOutboundNetworkDependenciesEndpointsOptions contains the optional parameters for +// the IntegrationRuntimesClient.ListOutboundNetworkDependenciesEndpoints method. func (client *IntegrationRuntimesClient) ListOutboundNetworkDependenciesEndpoints(ctx context.Context, resourceGroupName string, workspaceName string, integrationRuntimeName string, options *IntegrationRuntimesClientListOutboundNetworkDependenciesEndpointsOptions) (IntegrationRuntimesClientListOutboundNetworkDependenciesEndpointsResponse, error) { req, err := client.listOutboundNetworkDependenciesEndpointsCreateRequest(ctx, resourceGroupName, workspaceName, integrationRuntimeName, options) if err != nil { @@ -529,19 +540,22 @@ func (client *IntegrationRuntimesClient) listOutboundNetworkDependenciesEndpoint // BeginStart - Start an integration runtime // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// integrationRuntimeName - Integration runtime name -// options - IntegrationRuntimesClientBeginStartOptions contains the optional parameters for the IntegrationRuntimesClient.BeginStart -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - integrationRuntimeName - Integration runtime name +// - options - IntegrationRuntimesClientBeginStartOptions contains the optional parameters for the IntegrationRuntimesClient.BeginStart +// method. func (client *IntegrationRuntimesClient) BeginStart(ctx context.Context, resourceGroupName string, workspaceName string, integrationRuntimeName string, options *IntegrationRuntimesClientBeginStartOptions) (*runtime.Poller[IntegrationRuntimesClientStartResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.start(ctx, resourceGroupName, workspaceName, integrationRuntimeName, options) if err != nil { return nil, err } - return runtime.NewPoller[IntegrationRuntimesClientStartResponse](resp, client.pl, nil) + return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[IntegrationRuntimesClientStartResponse]{ + FinalStateVia: runtime.FinalStateViaAzureAsyncOp, + }) } else { return runtime.NewPollerFromResumeToken[IntegrationRuntimesClientStartResponse](options.ResumeToken, client.pl, nil) } @@ -549,6 +563,7 @@ func (client *IntegrationRuntimesClient) BeginStart(ctx context.Context, resourc // Start - Start an integration runtime // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview func (client *IntegrationRuntimesClient) start(ctx context.Context, resourceGroupName string, workspaceName string, integrationRuntimeName string, options *IntegrationRuntimesClientBeginStartOptions) (*http.Response, error) { req, err := client.startCreateRequest(ctx, resourceGroupName, workspaceName, integrationRuntimeName, options) @@ -597,12 +612,13 @@ func (client *IntegrationRuntimesClient) startCreateRequest(ctx context.Context, // BeginStop - Stop an integration runtime // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// integrationRuntimeName - Integration runtime name -// options - IntegrationRuntimesClientBeginStopOptions contains the optional parameters for the IntegrationRuntimesClient.BeginStop -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - integrationRuntimeName - Integration runtime name +// - options - IntegrationRuntimesClientBeginStopOptions contains the optional parameters for the IntegrationRuntimesClient.BeginStop +// method. func (client *IntegrationRuntimesClient) BeginStop(ctx context.Context, resourceGroupName string, workspaceName string, integrationRuntimeName string, options *IntegrationRuntimesClientBeginStopOptions) (*runtime.Poller[IntegrationRuntimesClientStopResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.stop(ctx, resourceGroupName, workspaceName, integrationRuntimeName, options) @@ -617,6 +633,7 @@ func (client *IntegrationRuntimesClient) BeginStop(ctx context.Context, resource // Stop - Stop an integration runtime // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview func (client *IntegrationRuntimesClient) stop(ctx context.Context, resourceGroupName string, workspaceName string, integrationRuntimeName string, options *IntegrationRuntimesClientBeginStopOptions) (*http.Response, error) { req, err := client.stopCreateRequest(ctx, resourceGroupName, workspaceName, integrationRuntimeName, options) @@ -665,13 +682,14 @@ func (client *IntegrationRuntimesClient) stopCreateRequest(ctx context.Context, // Update - Update an integration runtime // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// integrationRuntimeName - Integration runtime name -// updateIntegrationRuntimeRequest - The parameters for updating an integration runtime. -// options - IntegrationRuntimesClientUpdateOptions contains the optional parameters for the IntegrationRuntimesClient.Update -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - integrationRuntimeName - Integration runtime name +// - updateIntegrationRuntimeRequest - The parameters for updating an integration runtime. +// - options - IntegrationRuntimesClientUpdateOptions contains the optional parameters for the IntegrationRuntimesClient.Update +// method. func (client *IntegrationRuntimesClient) Update(ctx context.Context, resourceGroupName string, workspaceName string, integrationRuntimeName string, updateIntegrationRuntimeRequest UpdateIntegrationRuntimeRequest, options *IntegrationRuntimesClientUpdateOptions) (IntegrationRuntimesClientUpdateResponse, error) { req, err := client.updateCreateRequest(ctx, resourceGroupName, workspaceName, integrationRuntimeName, updateIntegrationRuntimeRequest, options) if err != nil { @@ -728,12 +746,13 @@ func (client *IntegrationRuntimesClient) updateHandleResponse(resp *http.Respons // Upgrade - Upgrade an integration runtime // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// integrationRuntimeName - Integration runtime name -// options - IntegrationRuntimesClientUpgradeOptions contains the optional parameters for the IntegrationRuntimesClient.Upgrade -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - integrationRuntimeName - Integration runtime name +// - options - IntegrationRuntimesClientUpgradeOptions contains the optional parameters for the IntegrationRuntimesClient.Upgrade +// method. func (client *IntegrationRuntimesClient) Upgrade(ctx context.Context, resourceGroupName string, workspaceName string, integrationRuntimeName string, options *IntegrationRuntimesClientUpgradeOptions) (IntegrationRuntimesClientUpgradeResponse, error) { req, err := client.upgradeCreateRequest(ctx, resourceGroupName, workspaceName, integrationRuntimeName, options) if err != nil { diff --git a/sdk/resourcemanager/synapse/armsynapse/integrationruntimes_client_example_test.go b/sdk/resourcemanager/synapse/armsynapse/integrationruntimes_client_example_test.go new file mode 100644 index 000000000000..aaad98d237ad --- /dev/null +++ b/sdk/resourcemanager/synapse/armsynapse/integrationruntimes_client_example_test.go @@ -0,0 +1,387 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armsynapse_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimes_Update.json +func ExampleIntegrationRuntimesClient_Update() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewIntegrationRuntimesClient("12345678-1234-1234-1234-12345678abc", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Update(ctx, "exampleResourceGroup", "exampleWorkspace", "exampleIntegrationRuntime", armsynapse.UpdateIntegrationRuntimeRequest{ + AutoUpdate: to.Ptr(armsynapse.IntegrationRuntimeAutoUpdateOff), + UpdateDelayOffset: to.Ptr("\"PT3H\""), + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.IntegrationRuntimeResource = armsynapse.IntegrationRuntimeResource{ + // Name: to.Ptr("exampleIntegrationRuntime"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/integrationruntimes"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.Synapse/workspaces/exampleWorkspaceName/integrationruntimes/exampleIntegrationRuntime"), + // Etag: to.Ptr("0400f1a1-0000-0000-0000-5b2188640000"), + // Properties: &armsynapse.SelfHostedIntegrationRuntime{ + // Type: to.Ptr(armsynapse.IntegrationRuntimeTypeSelfHosted), + // Description: to.Ptr("A selfhosted integration runtime"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimes_Get.json +func ExampleIntegrationRuntimesClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewIntegrationRuntimesClient("12345678-1234-1234-1234-12345678abc", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "exampleResourceGroup", "exampleWorkspace", "exampleIntegrationRuntime", &armsynapse.IntegrationRuntimesClientGetOptions{IfNoneMatch: nil}) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.IntegrationRuntimeResource = armsynapse.IntegrationRuntimeResource{ + // Name: to.Ptr("exampleIntegrationRuntime"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/integrationruntimes"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.Synapse/workspaces/exampleWorkspaceName/integrationruntimes/exampleIntegrationRuntime"), + // Etag: to.Ptr("15003c4f-0000-0200-0000-5cbe090b0000"), + // Properties: &armsynapse.SelfHostedIntegrationRuntime{ + // Type: to.Ptr(armsynapse.IntegrationRuntimeTypeSelfHosted), + // Description: to.Ptr("A selfhosted integration runtime"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimes_Create.json +func ExampleIntegrationRuntimesClient_BeginCreate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewIntegrationRuntimesClient("12345678-1234-1234-1234-12345678abc", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreate(ctx, "exampleResourceGroup", "exampleWorkspace", "exampleIntegrationRuntime", armsynapse.IntegrationRuntimeResource{ + Properties: &armsynapse.SelfHostedIntegrationRuntime{ + Type: to.Ptr(armsynapse.IntegrationRuntimeTypeSelfHosted), + Description: to.Ptr("A selfhosted integration runtime"), + }, + }, &armsynapse.IntegrationRuntimesClientBeginCreateOptions{IfMatch: 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.IntegrationRuntimeResource = armsynapse.IntegrationRuntimeResource{ + // Name: to.Ptr("exampleIntegrationRuntime"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/integrationruntimes"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.Synapse/workspaces/exampleWorkspaceName/integrationruntimes/exampleIntegrationRuntime"), + // Etag: to.Ptr("000046c4-0000-0000-0000-5b2198bf0000"), + // Properties: &armsynapse.SelfHostedIntegrationRuntime{ + // Type: to.Ptr(armsynapse.IntegrationRuntimeTypeSelfHosted), + // Description: to.Ptr("A selfhosted integration runtime"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimes_Delete.json +func ExampleIntegrationRuntimesClient_BeginDelete() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewIntegrationRuntimesClient("12345678-1234-1234-1234-12345678abc", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginDelete(ctx, "exampleResourceGroup", "exampleWorkspace", "exampleIntegrationRuntime", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + _, err = poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimes_Upgrade.json +func ExampleIntegrationRuntimesClient_Upgrade() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewIntegrationRuntimesClient("12345678-1234-1234-1234-12345678abc", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + _, err = client.Upgrade(ctx, "exampleResourceGroup", "exampleWorkspace", "exampleIntegrationRuntime", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimes_ListByWorkspace.json +func ExampleIntegrationRuntimesClient_NewListByWorkspacePager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewIntegrationRuntimesClient("12345678-1234-1234-1234-12345678abc", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListByWorkspacePager("exampleResourceGroup", "exampleWorkspace", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.IntegrationRuntimeListResponse = armsynapse.IntegrationRuntimeListResponse{ + // Value: []*armsynapse.IntegrationRuntimeResource{ + // { + // Name: to.Ptr("exampleIntegrationRuntime"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/integrationruntimes"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.Synapse/workspaces/exampleWorkspaceName/integrationruntimes/exampleIntegrationRuntime"), + // Etag: to.Ptr("0400f1a1-0000-0000-0000-5b2188640000"), + // Properties: &armsynapse.SelfHostedIntegrationRuntime{ + // Type: to.Ptr(armsynapse.IntegrationRuntimeTypeSelfHosted), + // Description: to.Ptr("A selfhosted integration runtime"), + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimes_Start.json +func ExampleIntegrationRuntimesClient_BeginStart() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewIntegrationRuntimesClient("12345678-1234-1234-1234-12345678abc", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginStart(ctx, "exampleResourceGroup", "exampleWorkspace", "exampleManagedIntegrationRuntime", 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.IntegrationRuntimeStatusResponse = armsynapse.IntegrationRuntimeStatusResponse{ + // Name: to.Ptr("exampleManagedIntegrationRuntime"), + // Properties: &armsynapse.ManagedIntegrationRuntimeStatus{ + // Type: to.Ptr(armsynapse.IntegrationRuntimeTypeManaged), + // DataFactoryName: to.Ptr("exampleWorkspaceName"), + // State: to.Ptr(armsynapse.IntegrationRuntimeStateStarted), + // TypeProperties: &armsynapse.ManagedIntegrationRuntimeStatusTypeProperties{ + // CreateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-13T21:11:01.8695494Z"); return t}()), + // Nodes: []*armsynapse.ManagedIntegrationRuntimeNode{ + // }, + // OtherErrors: []*armsynapse.ManagedIntegrationRuntimeError{ + // }, + // }, + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimes_Stop.json +func ExampleIntegrationRuntimesClient_BeginStop() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewIntegrationRuntimesClient("12345678-1234-1234-1234-12345678abc", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginStop(ctx, "exampleResourceGroup", "exampleWorkspace", "exampleManagedIntegrationRuntime", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + _, err = poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimes_ListOutboundNetworkDependenciesEndpoints.json +func ExampleIntegrationRuntimesClient_ListOutboundNetworkDependenciesEndpoints() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewIntegrationRuntimesClient("ade9c2b6-c160-4305-9bb9-80342f6c1ae2", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.ListOutboundNetworkDependenciesEndpoints(ctx, "exampleResourceGroup", "exampleWorkspace", "exampleIntegrationRuntime", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse = armsynapse.IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse{ + // Value: []*armsynapse.IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint{ + // { + // Category: to.Ptr("Azure Data Factory (Management)"), + // Endpoints: []*armsynapse.IntegrationRuntimeOutboundNetworkDependenciesEndpoint{ + // { + // DomainName: to.Ptr("wu.frontend.int.clouddatahub-int.net"), + // EndpointDetails: []*armsynapse.IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails{ + // { + // Port: to.Ptr[int32](443), + // }}, + // }}, + // }, + // { + // Category: to.Ptr("Azure Storage (Management)"), + // Endpoints: []*armsynapse.IntegrationRuntimeOutboundNetworkDependenciesEndpoint{ + // { + // DomainName: to.Ptr("*.blob.core.windows.net"), + // EndpointDetails: []*armsynapse.IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails{ + // { + // Port: to.Ptr[int32](443), + // }}, + // }, + // { + // DomainName: to.Ptr("*.table.core.windows.net"), + // EndpointDetails: []*armsynapse.IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails{ + // { + // Port: to.Ptr[int32](443), + // }}, + // }}, + // }, + // { + // Category: to.Ptr("Event Hub (Logging)"), + // Endpoints: []*armsynapse.IntegrationRuntimeOutboundNetworkDependenciesEndpoint{ + // { + // DomainName: to.Ptr("*.servicebus.windows.net"), + // EndpointDetails: []*armsynapse.IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails{ + // { + // Port: to.Ptr[int32](443), + // }}, + // }}, + // }, + // { + // Category: to.Ptr("Microsoft Logging service (Internal Use)"), + // Endpoints: []*armsynapse.IntegrationRuntimeOutboundNetworkDependenciesEndpoint{ + // { + // DomainName: to.Ptr("gcs.prod.monitoring.core.windows.net"), + // EndpointDetails: []*armsynapse.IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails{ + // { + // Port: to.Ptr[int32](443), + // }}, + // }, + // { + // DomainName: to.Ptr("prod.warmpath.msftcloudes.com"), + // EndpointDetails: []*armsynapse.IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails{ + // { + // Port: to.Ptr[int32](443), + // }}, + // }, + // { + // DomainName: to.Ptr("azurewatsonanalysis-prod.core.windows.net"), + // EndpointDetails: []*armsynapse.IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails{ + // { + // Port: to.Ptr[int32](443), + // }}, + // }}, + // }}, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimes_EnableInteractiveQuery.json +func ExampleIntegrationRuntimesClient_BeginEnableInteractiveQuery() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewIntegrationRuntimesClient("12345678-1234-1234-1234-12345678abc", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginEnableInteractiveQuery(ctx, "exampleResourceGroup", "exampleWorkspace", "exampleManagedIntegrationRuntime", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + _, err = poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimes_DisableInteractiveQuery.json +func ExampleIntegrationRuntimesClient_BeginDisableInteractiveQuery() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewIntegrationRuntimesClient("12345678-1234-1234-1234-12345678abc", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginDisableInteractiveQuery(ctx, "exampleResourceGroup", "exampleWorkspace", "exampleManagedIntegrationRuntime", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + _, err = poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } +} diff --git a/sdk/resourcemanager/synapse/armsynapse/zz_generated_integrationruntimestatus_client.go b/sdk/resourcemanager/synapse/armsynapse/integrationruntimestatus_client.go similarity index 89% rename from sdk/resourcemanager/synapse/armsynapse/zz_generated_integrationruntimestatus_client.go rename to sdk/resourcemanager/synapse/armsynapse/integrationruntimestatus_client.go index 184497b313fd..490c73ab48d9 100644 --- a/sdk/resourcemanager/synapse/armsynapse/zz_generated_integrationruntimestatus_client.go +++ b/sdk/resourcemanager/synapse/armsynapse/integrationruntimestatus_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse @@ -31,9 +32,9 @@ type IntegrationRuntimeStatusClient struct { } // NewIntegrationRuntimeStatusClient creates a new instance of IntegrationRuntimeStatusClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewIntegrationRuntimeStatusClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*IntegrationRuntimeStatusClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,12 +57,13 @@ func NewIntegrationRuntimeStatusClient(subscriptionID string, credential azcore. // Get - Get the integration runtime status // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// integrationRuntimeName - Integration runtime name -// options - IntegrationRuntimeStatusClientGetOptions contains the optional parameters for the IntegrationRuntimeStatusClient.Get -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - integrationRuntimeName - Integration runtime name +// - options - IntegrationRuntimeStatusClientGetOptions contains the optional parameters for the IntegrationRuntimeStatusClient.Get +// method. func (client *IntegrationRuntimeStatusClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, integrationRuntimeName string, options *IntegrationRuntimeStatusClientGetOptions) (IntegrationRuntimeStatusClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, workspaceName, integrationRuntimeName, options) if err != nil { diff --git a/sdk/resourcemanager/synapse/armsynapse/integrationruntimestatus_client_example_test.go b/sdk/resourcemanager/synapse/armsynapse/integrationruntimestatus_client_example_test.go new file mode 100644 index 000000000000..9a48bf015f39 --- /dev/null +++ b/sdk/resourcemanager/synapse/armsynapse/integrationruntimestatus_client_example_test.go @@ -0,0 +1,87 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armsynapse_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimes_GetStatus.json +func ExampleIntegrationRuntimeStatusClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewIntegrationRuntimeStatusClient("12345678-1234-1234-1234-12345678abc", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "exampleResourceGroup", "exampleWorkspace", "exampleIntegrationRuntime", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.IntegrationRuntimeStatusResponse = armsynapse.IntegrationRuntimeStatusResponse{ + // Name: to.Ptr("exampleIntegrationRuntime"), + // Properties: &armsynapse.SelfHostedIntegrationRuntimeStatus{ + // Type: to.Ptr(armsynapse.IntegrationRuntimeTypeSelfHosted), + // State: to.Ptr(armsynapse.IntegrationRuntimeStateOnline), + // TypeProperties: &armsynapse.SelfHostedIntegrationRuntimeStatusTypeProperties{ + // AutoUpdate: to.Ptr(armsynapse.IntegrationRuntimeAutoUpdateOff), + // Capabilities: map[string]*string{ + // "connectedToResourceManager": to.Ptr("True"), + // "credentialInSync": to.Ptr("True"), + // "httpsPortEnabled": to.Ptr("True"), + // "nodeEnabled": to.Ptr("True"), + // "serviceBusConnected": to.Ptr("True"), + // }, + // CreateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-14T09:17:45.1839685Z"); return t}()), + // LatestVersion: to.Ptr("3.7.6711.1"), + // LocalTimeZoneOffset: to.Ptr("PT8H"), + // Nodes: []*armsynapse.SelfHostedIntegrationRuntimeNode{ + // { + // Capabilities: map[string]*string{ + // "connectedToResourceManager": to.Ptr("True"), + // "credentialInSync": to.Ptr("True"), + // "httpsPortEnabled": to.Ptr("True"), + // "nodeEnabled": to.Ptr("True"), + // "serviceBusConnected": to.Ptr("True"), + // }, + // HostServiceURI: to.Ptr("https://yanzhang-dt.fareast.corp.microsoft.com:8050/HostServiceRemote.svc/"), + // IsActiveDispatcher: to.Ptr(true), + // LastConnectTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-14T14:52:59.8933313Z"); return t}()), + // LastStartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-14T14:52:59.8933313Z"); return t}()), + // LastUpdateResult: to.Ptr(armsynapse.IntegrationRuntimeUpdateResultNone), + // MachineName: to.Ptr("YANZHANG-DT"), + // MaxConcurrentJobs: to.Ptr[int32](56), + // NodeName: to.Ptr("Node_1"), + // RegisterTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-14T14:51:44.9237069Z"); return t}()), + // Status: to.Ptr(armsynapse.SelfHostedIntegrationRuntimeNodeStatusOnline), + // Version: to.Ptr("3.8.6730.2"), + // VersionStatus: to.Ptr("UpToDate"), + // }}, + // ServiceUrls: []*string{ + // to.Ptr("wu.frontend.int.clouddatahub-int.net"), + // to.Ptr("*.servicebus.windows.net")}, + // TaskQueueID: to.Ptr("1a6296ab-423c-4346-9bcc-85a78c2c0582"), + // UpdateDelayOffset: to.Ptr("PT3H"), + // Version: to.Ptr("3.8.6730.2"), + // VersionStatus: to.Ptr("UpToDate"), + // }, + // }, + // } +} diff --git a/sdk/resourcemanager/synapse/armsynapse/zz_generated_ipfirewallrules_client.go b/sdk/resourcemanager/synapse/armsynapse/ipfirewallrules_client.go similarity index 90% rename from sdk/resourcemanager/synapse/armsynapse/zz_generated_ipfirewallrules_client.go rename to sdk/resourcemanager/synapse/armsynapse/ipfirewallrules_client.go index 8c615668ccb6..1a7af54158a9 100644 --- a/sdk/resourcemanager/synapse/armsynapse/zz_generated_ipfirewallrules_client.go +++ b/sdk/resourcemanager/synapse/armsynapse/ipfirewallrules_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse @@ -31,9 +32,9 @@ type IPFirewallRulesClient struct { } // NewIPFirewallRulesClient creates a new instance of IPFirewallRulesClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewIPFirewallRulesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*IPFirewallRulesClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,13 +57,14 @@ func NewIPFirewallRulesClient(subscriptionID string, credential azcore.TokenCred // BeginCreateOrUpdate - Creates or updates a firewall rule // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// ruleName - The IP firewall rule name -// ipFirewallRuleInfo - IP firewall rule properties -// options - IPFirewallRulesClientBeginCreateOrUpdateOptions contains the optional parameters for the IPFirewallRulesClient.BeginCreateOrUpdate -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - ruleName - The IP firewall rule name +// - ipFirewallRuleInfo - IP firewall rule properties +// - options - IPFirewallRulesClientBeginCreateOrUpdateOptions contains the optional parameters for the IPFirewallRulesClient.BeginCreateOrUpdate +// method. func (client *IPFirewallRulesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, ruleName string, ipFirewallRuleInfo IPFirewallRuleInfo, options *IPFirewallRulesClientBeginCreateOrUpdateOptions) (*runtime.Poller[IPFirewallRulesClientCreateOrUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createOrUpdate(ctx, resourceGroupName, workspaceName, ruleName, ipFirewallRuleInfo, options) @@ -79,6 +81,7 @@ func (client *IPFirewallRulesClient) BeginCreateOrUpdate(ctx context.Context, re // CreateOrUpdate - Creates or updates a firewall rule // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 func (client *IPFirewallRulesClient) createOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, ruleName string, ipFirewallRuleInfo IPFirewallRuleInfo, options *IPFirewallRulesClientBeginCreateOrUpdateOptions) (*http.Response, error) { req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, workspaceName, ruleName, ipFirewallRuleInfo, options) @@ -127,12 +130,13 @@ func (client *IPFirewallRulesClient) createOrUpdateCreateRequest(ctx context.Con // BeginDelete - Deletes a firewall rule // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// ruleName - The IP firewall rule name -// options - IPFirewallRulesClientBeginDeleteOptions contains the optional parameters for the IPFirewallRulesClient.BeginDelete -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - ruleName - The IP firewall rule name +// - options - IPFirewallRulesClientBeginDeleteOptions contains the optional parameters for the IPFirewallRulesClient.BeginDelete +// method. func (client *IPFirewallRulesClient) BeginDelete(ctx context.Context, resourceGroupName string, workspaceName string, ruleName string, options *IPFirewallRulesClientBeginDeleteOptions) (*runtime.Poller[IPFirewallRulesClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, workspaceName, ruleName, options) @@ -149,6 +153,7 @@ func (client *IPFirewallRulesClient) BeginDelete(ctx context.Context, resourceGr // Delete - Deletes a firewall rule // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 func (client *IPFirewallRulesClient) deleteOperation(ctx context.Context, resourceGroupName string, workspaceName string, ruleName string, options *IPFirewallRulesClientBeginDeleteOptions) (*http.Response, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, workspaceName, ruleName, options) @@ -197,11 +202,12 @@ func (client *IPFirewallRulesClient) deleteCreateRequest(ctx context.Context, re // Get - Get a firewall rule // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// ruleName - The IP firewall rule name -// options - IPFirewallRulesClientGetOptions contains the optional parameters for the IPFirewallRulesClient.Get method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - ruleName - The IP firewall rule name +// - options - IPFirewallRulesClientGetOptions contains the optional parameters for the IPFirewallRulesClient.Get method. func (client *IPFirewallRulesClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, ruleName string, options *IPFirewallRulesClientGetOptions) (IPFirewallRulesClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, workspaceName, ruleName, options) if err != nil { @@ -257,12 +263,12 @@ func (client *IPFirewallRulesClient) getHandleResponse(resp *http.Response) (IPF } // NewListByWorkspacePager - Returns a list of firewall rules -// If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// options - IPFirewallRulesClientListByWorkspaceOptions contains the optional parameters for the IPFirewallRulesClient.ListByWorkspace -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - options - IPFirewallRulesClientListByWorkspaceOptions contains the optional parameters for the IPFirewallRulesClient.NewListByWorkspacePager +// method. func (client *IPFirewallRulesClient) NewListByWorkspacePager(resourceGroupName string, workspaceName string, options *IPFirewallRulesClientListByWorkspaceOptions) *runtime.Pager[IPFirewallRulesClientListByWorkspaceResponse] { return runtime.NewPager(runtime.PagingHandler[IPFirewallRulesClientListByWorkspaceResponse]{ More: func(page IPFirewallRulesClientListByWorkspaceResponse) bool { @@ -328,12 +334,13 @@ func (client *IPFirewallRulesClient) listByWorkspaceHandleResponse(resp *http.Re // BeginReplaceAll - Replaces firewall rules // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// request - Replace all IP firewall rules request -// options - IPFirewallRulesClientBeginReplaceAllOptions contains the optional parameters for the IPFirewallRulesClient.BeginReplaceAll -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - request - Replace all IP firewall rules request +// - options - IPFirewallRulesClientBeginReplaceAllOptions contains the optional parameters for the IPFirewallRulesClient.BeginReplaceAll +// method. func (client *IPFirewallRulesClient) BeginReplaceAll(ctx context.Context, resourceGroupName string, workspaceName string, request ReplaceAllIPFirewallRulesRequest, options *IPFirewallRulesClientBeginReplaceAllOptions) (*runtime.Poller[IPFirewallRulesClientReplaceAllResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.replaceAll(ctx, resourceGroupName, workspaceName, request, options) @@ -350,6 +357,7 @@ func (client *IPFirewallRulesClient) BeginReplaceAll(ctx context.Context, resour // ReplaceAll - Replaces firewall rules // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 func (client *IPFirewallRulesClient) replaceAll(ctx context.Context, resourceGroupName string, workspaceName string, request ReplaceAllIPFirewallRulesRequest, options *IPFirewallRulesClientBeginReplaceAllOptions) (*http.Response, error) { req, err := client.replaceAllCreateRequest(ctx, resourceGroupName, workspaceName, request, options) diff --git a/sdk/resourcemanager/synapse/armsynapse/ipfirewallrules_client_example_test.go b/sdk/resourcemanager/synapse/armsynapse/ipfirewallrules_client_example_test.go new file mode 100644 index 000000000000..75758143e47d --- /dev/null +++ b/sdk/resourcemanager/synapse/armsynapse/ipfirewallrules_client_example_test.go @@ -0,0 +1,189 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armsynapse_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListIpFirewallRules.json +func ExampleIPFirewallRulesClient_NewListByWorkspacePager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewIPFirewallRulesClient("01234567-89ab-4def-0123-456789abcdef", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListByWorkspacePager("ExampleResourceGroup", "ExampleWorkspace", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.IPFirewallRuleInfoListResult = armsynapse.IPFirewallRuleInfoListResult{ + // Value: []*armsynapse.IPFirewallRuleInfo{ + // }, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateIpFirewallRule.json +func ExampleIPFirewallRulesClient_BeginCreateOrUpdate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewIPFirewallRulesClient("01234567-89ab-4def-0123-456789abcdef", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreateOrUpdate(ctx, "ExampleResourceGroup", "ExampleWorkspace", "ExampleIpFirewallRule", armsynapse.IPFirewallRuleInfo{ + Properties: &armsynapse.IPFirewallRuleProperties{ + EndIPAddress: to.Ptr("10.0.0.254"), + StartIPAddress: to.Ptr("10.0.0.0"), + }, + }, 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.IPFirewallRuleInfo = armsynapse.IPFirewallRuleInfo{ + // Name: to.Ptr("ExampleIpFirewallRule"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/firewallRules"), + // ID: to.Ptr("/subscriptions/01234567-89ab-4def-0123-456789abcdef/resourceGroups/ExampleResourceGroup/providers/Microsoft.Synapse/workspaces/ExampleWorkspace/firewallRules/ExampleIpFirewallRule"), + // Properties: &armsynapse.IPFirewallRuleProperties{ + // EndIPAddress: to.Ptr("10.0.0.254"), + // ProvisioningState: to.Ptr(armsynapse.ProvisioningStateSucceeded), + // StartIPAddress: to.Ptr("10.0.0.0"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeleteIpFirewallRule.json +func ExampleIPFirewallRulesClient_BeginDelete() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewIPFirewallRulesClient("01234567-89ab-4def-0123-456789abcdef", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginDelete(ctx, "ExampleResourceGroup", "ExampleWorkspace", "ExampleIpFirewallRule", 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.IPFirewallRuleInfo = armsynapse.IPFirewallRuleInfo{ + // Name: to.Ptr("ExampleIpFirewallRule"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/firewallRules"), + // ID: to.Ptr("/subscriptions/01234567-89ab-4def-0123-456789abcdef/resourceGroups/ExampleResourceGroup/providers/Microsoft.Synapse/workspaces/ExampleWorkspace/firewallRules/ExampleIpFirewallRule"), + // Properties: &armsynapse.IPFirewallRuleProperties{ + // EndIPAddress: to.Ptr("10.0.0.254"), + // ProvisioningState: to.Ptr(armsynapse.ProvisioningStateSucceeded), + // StartIPAddress: to.Ptr("10.0.0.0"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetIpFirewallRule.json +func ExampleIPFirewallRulesClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewIPFirewallRulesClient("01234567-89ab-4def-0123-456789abcdef", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "ExampleResourceGroup", "ExampleWorkspace", "ExampleIpFirewallRule", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.IPFirewallRuleInfo = armsynapse.IPFirewallRuleInfo{ + // Name: to.Ptr("ExampleIpFirewallRule"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/firewallRules"), + // ID: to.Ptr("/subscriptions/01234567-89ab-4def-0123-456789abcdef/resourceGroups/ExampleResourceGroup/providers/Microsoft.Synapse/workspaces/ExampleWorkspace/firewallRules/ExampleIpFirewallRule"), + // Properties: &armsynapse.IPFirewallRuleProperties{ + // EndIPAddress: to.Ptr("10.0.0.254"), + // ProvisioningState: to.Ptr(armsynapse.ProvisioningStateSucceeded), + // StartIPAddress: to.Ptr("10.0.0.0"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ReplaceAllIpFirewallRules.json +func ExampleIPFirewallRulesClient_BeginReplaceAll() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewIPFirewallRulesClient("01234567-89ab-4def-0123-456789abcdef", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginReplaceAll(ctx, "ExampleResourceGroup", "ExampleWorkspace", armsynapse.ReplaceAllIPFirewallRulesRequest{ + IPFirewallRules: map[string]*armsynapse.IPFirewallRuleProperties{ + "AnotherExampleFirewallRule": { + EndIPAddress: to.Ptr("10.0.1.254"), + StartIPAddress: to.Ptr("10.0.1.0"), + }, + "ExampleFirewallRule": { + EndIPAddress: to.Ptr("10.0.0.254"), + StartIPAddress: to.Ptr("10.0.0.0"), + }, + }, + }, 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.ReplaceAllFirewallRulesOperationResponse = armsynapse.ReplaceAllFirewallRulesOperationResponse{ + // OperationID: to.Ptr("00000000-1111-4444-2222-333333333333"), + // } +} diff --git a/sdk/resourcemanager/synapse/armsynapse/zz_generated_keys_client.go b/sdk/resourcemanager/synapse/armsynapse/keys_client.go similarity index 89% rename from sdk/resourcemanager/synapse/armsynapse/zz_generated_keys_client.go rename to sdk/resourcemanager/synapse/armsynapse/keys_client.go index ceac39fe6b3f..bc2dbd4dd2b8 100644 --- a/sdk/resourcemanager/synapse/armsynapse/zz_generated_keys_client.go +++ b/sdk/resourcemanager/synapse/armsynapse/keys_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse @@ -31,9 +32,9 @@ type KeysClient struct { } // NewKeysClient creates a new instance of KeysClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewKeysClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*KeysClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,12 +57,13 @@ func NewKeysClient(subscriptionID string, credential azcore.TokenCredential, opt // CreateOrUpdate - Creates or updates a workspace key // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// keyName - The name of the workspace key -// keyProperties - Key put request properties -// options - KeysClientCreateOrUpdateOptions contains the optional parameters for the KeysClient.CreateOrUpdate method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - keyName - The name of the workspace key +// - keyProperties - Key put request properties +// - options - KeysClientCreateOrUpdateOptions contains the optional parameters for the KeysClient.CreateOrUpdate method. func (client *KeysClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, keyName string, keyProperties Key, options *KeysClientCreateOrUpdateOptions) (KeysClientCreateOrUpdateResponse, error) { req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, workspaceName, keyName, keyProperties, options) if err != nil { @@ -118,11 +120,12 @@ func (client *KeysClient) createOrUpdateHandleResponse(resp *http.Response) (Key // Delete - Deletes a workspace key // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// keyName - The name of the workspace key -// options - KeysClientDeleteOptions contains the optional parameters for the KeysClient.Delete method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - keyName - The name of the workspace key +// - options - KeysClientDeleteOptions contains the optional parameters for the KeysClient.Delete method. func (client *KeysClient) Delete(ctx context.Context, resourceGroupName string, workspaceName string, keyName string, options *KeysClientDeleteOptions) (KeysClientDeleteResponse, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, workspaceName, keyName, options) if err != nil { @@ -179,11 +182,12 @@ func (client *KeysClient) deleteHandleResponse(resp *http.Response) (KeysClientD // Get - Gets a workspace key // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// keyName - The name of the workspace key -// options - KeysClientGetOptions contains the optional parameters for the KeysClient.Get method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - keyName - The name of the workspace key +// - options - KeysClientGetOptions contains the optional parameters for the KeysClient.Get method. func (client *KeysClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, keyName string, options *KeysClientGetOptions) (KeysClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, workspaceName, keyName, options) if err != nil { @@ -239,11 +243,12 @@ func (client *KeysClient) getHandleResponse(resp *http.Response) (KeysClientGetR } // NewListByWorkspacePager - Returns a list of keys in a workspace -// If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// options - KeysClientListByWorkspaceOptions contains the optional parameters for the KeysClient.ListByWorkspace method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - options - KeysClientListByWorkspaceOptions contains the optional parameters for the KeysClient.NewListByWorkspacePager +// method. func (client *KeysClient) NewListByWorkspacePager(resourceGroupName string, workspaceName string, options *KeysClientListByWorkspaceOptions) *runtime.Pager[KeysClientListByWorkspaceResponse] { return runtime.NewPager(runtime.PagingHandler[KeysClientListByWorkspaceResponse]{ More: func(page KeysClientListByWorkspaceResponse) bool { diff --git a/sdk/resourcemanager/synapse/armsynapse/keys_client_example_test.go b/sdk/resourcemanager/synapse/armsynapse/keys_client_example_test.go new file mode 100644 index 000000000000..c86526122d8a --- /dev/null +++ b/sdk/resourcemanager/synapse/armsynapse/keys_client_example_test.go @@ -0,0 +1,157 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armsynapse_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListKeysInWorkspace.json +func ExampleKeysClient_NewListByWorkspacePager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewKeysClient("01234567-89ab-4def-0123-456789abcdef", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListByWorkspacePager("ExampleResourceGroup", "ExampleWorkspace", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.KeyInfoListResult = armsynapse.KeyInfoListResult{ + // Value: []*armsynapse.Key{ + // { + // Name: to.Ptr("key1"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/keys"), + // ID: to.Ptr("/subscriptions/01234567-89ab-4def-0123-456789abcdef/resourceGroups/ExampleResourceGroup/providers/Microsoft.Synapse/workspaces/ExampleWorkspace/keys/key1"), + // Properties: &armsynapse.KeyProperties{ + // IsActiveCMK: to.Ptr(false), + // KeyVaultURL: to.Ptr("https://vault.azure.net/keys/somesecret1"), + // }, + // }, + // { + // Name: to.Ptr("key2"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/keys"), + // ID: to.Ptr("/subscriptions/01234567-89ab-4def-0123-456789abcdef/resourceGroups/ExampleResourceGroup/providers/Microsoft.Synapse/workspaces/ExampleWorkspace/keys/key2"), + // Properties: &armsynapse.KeyProperties{ + // IsActiveCMK: to.Ptr(true), + // KeyVaultURL: to.Ptr("https://vault.azure.net/keys/somesecret2"), + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetKey.json +func ExampleKeysClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewKeysClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "ExampleResourceGroup", "ExampleWorkspace", "somekey", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.Key = armsynapse.Key{ + // Name: to.Ptr("somekey"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/keys"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/ExampleResourceGroup/providers/Microsoft.Synapse/workspaces/ExampleWorkspace/keys/somekey"), + // Properties: &armsynapse.KeyProperties{ + // IsActiveCMK: to.Ptr(true), + // KeyVaultURL: to.Ptr("https://vault.azure.net/keys/key1"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateKey.json +func ExampleKeysClient_CreateOrUpdate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewKeysClient("01234567-89ab-4def-0123-456789abcdef", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.CreateOrUpdate(ctx, "ExampleResourceGroup", "ExampleWorkspace", "somekey", armsynapse.Key{ + Properties: &armsynapse.KeyProperties{ + IsActiveCMK: to.Ptr(true), + KeyVaultURL: to.Ptr("https://vault.azure.net/keys/somesecret"), + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.Key = armsynapse.Key{ + // Name: to.Ptr("somekey"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/keys"), + // ID: to.Ptr("/subscriptions/01234567-89ab-4def-0123-456789abcdef/resourceGroups/ExampleResourceGroup/providers/Microsoft.Synapse/workspaces/ExampleWorkspace/keys/somekey"), + // Properties: &armsynapse.KeyProperties{ + // IsActiveCMK: to.Ptr(true), + // KeyVaultURL: to.Ptr("https://vault.azure.net/keys/somesecret"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeleteKey.json +func ExampleKeysClient_Delete() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewKeysClient("01234567-89ab-4def-0123-456789abcdef", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Delete(ctx, "ExampleResourceGroup", "ExampleWorkspace", "somekey", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.Key = armsynapse.Key{ + // Name: to.Ptr("somekey"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/keys"), + // ID: to.Ptr("/subscriptions/01234567-89ab-4def-0123-456789abcdef/resourceGroups/ExampleResourceGroup/providers/Microsoft.Synapse/workspaces/ExampleWorkspace/keys/somekey"), + // Properties: &armsynapse.KeyProperties{ + // IsActiveCMK: to.Ptr(true), + // KeyVaultURL: to.Ptr("https://vault.azure.net/keys/key1"), + // }, + // } +} diff --git a/sdk/resourcemanager/synapse/armsynapse/zz_generated_kustooperations_client.go b/sdk/resourcemanager/synapse/armsynapse/kustooperations_client.go similarity index 92% rename from sdk/resourcemanager/synapse/armsynapse/zz_generated_kustooperations_client.go rename to sdk/resourcemanager/synapse/armsynapse/kustooperations_client.go index 09d862653e86..a3aeb29d6c0d 100644 --- a/sdk/resourcemanager/synapse/armsynapse/zz_generated_kustooperations_client.go +++ b/sdk/resourcemanager/synapse/armsynapse/kustooperations_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse @@ -27,8 +28,8 @@ type KustoOperationsClient struct { } // NewKustoOperationsClient creates a new instance of KustoOperationsClient with the specified values. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewKustoOperationsClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*KustoOperationsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -49,9 +50,10 @@ func NewKustoOperationsClient(credential azcore.TokenCredential, options *arm.Cl } // NewListPager - Lists available operations for the Kusto sub-resources inside Microsoft.Synapse provider. -// If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview -// options - KustoOperationsClientListOptions contains the optional parameters for the KustoOperationsClient.List method. +// - options - KustoOperationsClientListOptions contains the optional parameters for the KustoOperationsClient.NewListPager +// method. func (client *KustoOperationsClient) NewListPager(options *KustoOperationsClientListOptions) *runtime.Pager[KustoOperationsClientListResponse] { return runtime.NewPager(runtime.PagingHandler[KustoOperationsClientListResponse]{ More: func(page KustoOperationsClientListResponse) bool { diff --git a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_kustooperations_client_test.go b/sdk/resourcemanager/synapse/armsynapse/kustooperations_client_example_test.go similarity index 52% rename from sdk/resourcemanager/synapse/armsynapse/ze_generated_example_kustooperations_client_test.go rename to sdk/resourcemanager/synapse/armsynapse/kustooperations_client_example_test.go index b88a0776fd39..fd45e8f7ce30 100644 --- a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_kustooperations_client_test.go +++ b/sdk/resourcemanager/synapse/armsynapse/kustooperations_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse_test @@ -16,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoOperationsList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoOperationsList.json func ExampleKustoOperationsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -29,13 +30,26 @@ func ExampleKustoOperationsClient_NewListPager() { } pager := client.NewListPager(nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.OperationListResult = armsynapse.OperationListResult{ + // Value: []*armsynapse.Operation{ + // { + // Name: to.Ptr("operationName"), + // Display: &armsynapse.OperationDisplay{ + // Description: to.Ptr("operation description"), + // Operation: to.Ptr("operationName"), + // Provider: to.Ptr("providerName"), + // Resource: to.Ptr("resourceName"), + // }, + // }}, + // } } } diff --git a/sdk/resourcemanager/synapse/armsynapse/zz_generated_kustopoolattacheddatabaseconfigurations_client.go b/sdk/resourcemanager/synapse/armsynapse/kustopoolattacheddatabaseconfigurations_client.go similarity index 88% rename from sdk/resourcemanager/synapse/armsynapse/zz_generated_kustopoolattacheddatabaseconfigurations_client.go rename to sdk/resourcemanager/synapse/armsynapse/kustopoolattacheddatabaseconfigurations_client.go index ac4cc6e08f32..6423125fc7bf 100644 --- a/sdk/resourcemanager/synapse/armsynapse/zz_generated_kustopoolattacheddatabaseconfigurations_client.go +++ b/sdk/resourcemanager/synapse/armsynapse/kustopoolattacheddatabaseconfigurations_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse @@ -31,9 +32,9 @@ type KustoPoolAttachedDatabaseConfigurationsClient struct { } // NewKustoPoolAttachedDatabaseConfigurationsClient creates a new instance of KustoPoolAttachedDatabaseConfigurationsClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewKustoPoolAttachedDatabaseConfigurationsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*KustoPoolAttachedDatabaseConfigurationsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,14 +57,15 @@ func NewKustoPoolAttachedDatabaseConfigurationsClient(subscriptionID string, cre // BeginCreateOrUpdate - Creates or updates an attached database configuration. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview -// workspaceName - The name of the workspace. -// kustoPoolName - The name of the Kusto pool. -// attachedDatabaseConfigurationName - The name of the attached database configuration. -// resourceGroupName - The name of the resource group. The name is case insensitive. -// parameters - The database parameters supplied to the CreateOrUpdate operation. -// options - KustoPoolAttachedDatabaseConfigurationsClientBeginCreateOrUpdateOptions contains the optional parameters for -// the KustoPoolAttachedDatabaseConfigurationsClient.BeginCreateOrUpdate method. +// - workspaceName - The name of the workspace. +// - kustoPoolName - The name of the Kusto pool. +// - attachedDatabaseConfigurationName - The name of the attached database configuration. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - parameters - The database parameters supplied to the CreateOrUpdate operation. +// - options - KustoPoolAttachedDatabaseConfigurationsClientBeginCreateOrUpdateOptions contains the optional parameters for +// the KustoPoolAttachedDatabaseConfigurationsClient.BeginCreateOrUpdate method. func (client *KustoPoolAttachedDatabaseConfigurationsClient) BeginCreateOrUpdate(ctx context.Context, workspaceName string, kustoPoolName string, attachedDatabaseConfigurationName string, resourceGroupName string, parameters AttachedDatabaseConfiguration, options *KustoPoolAttachedDatabaseConfigurationsClientBeginCreateOrUpdateOptions) (*runtime.Poller[KustoPoolAttachedDatabaseConfigurationsClientCreateOrUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createOrUpdate(ctx, workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName, parameters, options) @@ -78,6 +80,7 @@ func (client *KustoPoolAttachedDatabaseConfigurationsClient) BeginCreateOrUpdate // CreateOrUpdate - Creates or updates an attached database configuration. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview func (client *KustoPoolAttachedDatabaseConfigurationsClient) createOrUpdate(ctx context.Context, workspaceName string, kustoPoolName string, attachedDatabaseConfigurationName string, resourceGroupName string, parameters AttachedDatabaseConfiguration, options *KustoPoolAttachedDatabaseConfigurationsClientBeginCreateOrUpdateOptions) (*http.Response, error) { req, err := client.createOrUpdateCreateRequest(ctx, workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName, parameters, options) @@ -130,13 +133,14 @@ func (client *KustoPoolAttachedDatabaseConfigurationsClient) createOrUpdateCreat // BeginDelete - Deletes the attached database configuration with the given name. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview -// workspaceName - The name of the workspace. -// kustoPoolName - The name of the Kusto pool. -// attachedDatabaseConfigurationName - The name of the attached database configuration. -// resourceGroupName - The name of the resource group. The name is case insensitive. -// options - KustoPoolAttachedDatabaseConfigurationsClientBeginDeleteOptions contains the optional parameters for the KustoPoolAttachedDatabaseConfigurationsClient.BeginDelete -// method. +// - workspaceName - The name of the workspace. +// - kustoPoolName - The name of the Kusto pool. +// - attachedDatabaseConfigurationName - The name of the attached database configuration. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - options - KustoPoolAttachedDatabaseConfigurationsClientBeginDeleteOptions contains the optional parameters for the KustoPoolAttachedDatabaseConfigurationsClient.BeginDelete +// method. func (client *KustoPoolAttachedDatabaseConfigurationsClient) BeginDelete(ctx context.Context, workspaceName string, kustoPoolName string, attachedDatabaseConfigurationName string, resourceGroupName string, options *KustoPoolAttachedDatabaseConfigurationsClientBeginDeleteOptions) (*runtime.Poller[KustoPoolAttachedDatabaseConfigurationsClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName, options) @@ -151,6 +155,7 @@ func (client *KustoPoolAttachedDatabaseConfigurationsClient) BeginDelete(ctx con // Delete - Deletes the attached database configuration with the given name. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview func (client *KustoPoolAttachedDatabaseConfigurationsClient) deleteOperation(ctx context.Context, workspaceName string, kustoPoolName string, attachedDatabaseConfigurationName string, resourceGroupName string, options *KustoPoolAttachedDatabaseConfigurationsClientBeginDeleteOptions) (*http.Response, error) { req, err := client.deleteCreateRequest(ctx, workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName, options) @@ -203,13 +208,14 @@ func (client *KustoPoolAttachedDatabaseConfigurationsClient) deleteCreateRequest // Get - Returns an attached database configuration. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview -// workspaceName - The name of the workspace. -// kustoPoolName - The name of the Kusto pool. -// attachedDatabaseConfigurationName - The name of the attached database configuration. -// resourceGroupName - The name of the resource group. The name is case insensitive. -// options - KustoPoolAttachedDatabaseConfigurationsClientGetOptions contains the optional parameters for the KustoPoolAttachedDatabaseConfigurationsClient.Get -// method. +// - workspaceName - The name of the workspace. +// - kustoPoolName - The name of the Kusto pool. +// - attachedDatabaseConfigurationName - The name of the attached database configuration. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - options - KustoPoolAttachedDatabaseConfigurationsClientGetOptions contains the optional parameters for the KustoPoolAttachedDatabaseConfigurationsClient.Get +// method. func (client *KustoPoolAttachedDatabaseConfigurationsClient) Get(ctx context.Context, workspaceName string, kustoPoolName string, attachedDatabaseConfigurationName string, resourceGroupName string, options *KustoPoolAttachedDatabaseConfigurationsClientGetOptions) (KustoPoolAttachedDatabaseConfigurationsClientGetResponse, error) { req, err := client.getCreateRequest(ctx, workspaceName, kustoPoolName, attachedDatabaseConfigurationName, resourceGroupName, options) if err != nil { @@ -269,13 +275,13 @@ func (client *KustoPoolAttachedDatabaseConfigurationsClient) getHandleResponse(r } // NewListByKustoPoolPager - Returns the list of attached database configurations of the given Kusto Pool. -// If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview -// workspaceName - The name of the workspace. -// kustoPoolName - The name of the Kusto pool. -// resourceGroupName - The name of the resource group. The name is case insensitive. -// options - KustoPoolAttachedDatabaseConfigurationsClientListByKustoPoolOptions contains the optional parameters for the -// KustoPoolAttachedDatabaseConfigurationsClient.ListByKustoPool method. +// - workspaceName - The name of the workspace. +// - kustoPoolName - The name of the Kusto pool. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - options - KustoPoolAttachedDatabaseConfigurationsClientListByKustoPoolOptions contains the optional parameters for the +// KustoPoolAttachedDatabaseConfigurationsClient.NewListByKustoPoolPager method. func (client *KustoPoolAttachedDatabaseConfigurationsClient) NewListByKustoPoolPager(workspaceName string, kustoPoolName string, resourceGroupName string, options *KustoPoolAttachedDatabaseConfigurationsClientListByKustoPoolOptions) *runtime.Pager[KustoPoolAttachedDatabaseConfigurationsClientListByKustoPoolResponse] { return runtime.NewPager(runtime.PagingHandler[KustoPoolAttachedDatabaseConfigurationsClientListByKustoPoolResponse]{ More: func(page KustoPoolAttachedDatabaseConfigurationsClientListByKustoPoolResponse) bool { diff --git a/sdk/resourcemanager/synapse/armsynapse/kustopoolattacheddatabaseconfigurations_client_example_test.go b/sdk/resourcemanager/synapse/armsynapse/kustopoolattacheddatabaseconfigurations_client_example_test.go new file mode 100644 index 000000000000..d1f75d7ec57e --- /dev/null +++ b/sdk/resourcemanager/synapse/armsynapse/kustopoolattacheddatabaseconfigurations_client_example_test.go @@ -0,0 +1,223 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armsynapse_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolAttachedDatabaseConfigurationsListByKustoPool.json +func ExampleKustoPoolAttachedDatabaseConfigurationsClient_NewListByKustoPoolPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewKustoPoolAttachedDatabaseConfigurationsClient("12345678-1234-1234-1234-123456789098", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListByKustoPoolPager("kustorptest", "kustoclusterrptest4", "kustorptest", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.AttachedDatabaseConfigurationListResult = armsynapse.AttachedDatabaseConfigurationListResult{ + // Value: []*armsynapse.AttachedDatabaseConfiguration{ + // { + // Name: to.Ptr("KustoClusterRPTest4/KustoDatabase8"), + // Type: to.Ptr("Microsoft.Synapse/Workspaces/KustoPools/AttachedDatabaseConfigurations"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Synapse/Workspaces/kustorptest/KustoPools/kustoclusterrptest4/AttachedDatabaseConfigurations/KustoDatabase8"), + // Location: to.Ptr("westus"), + // Properties: &armsynapse.AttachedDatabaseConfigurationProperties{ + // KustoPoolResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Synapse/Workspaces/kustorptest/KustoPools/KustoClusterLeader"), + // DatabaseName: to.Ptr("db1"), + // DefaultPrincipalsModificationKind: to.Ptr(armsynapse.DefaultPrincipalsModificationKindUnion), + // ProvisioningState: to.Ptr(armsynapse.ResourceProvisioningStateSucceeded), + // }, + // }, + // { + // Name: to.Ptr("KustoClusterRPTest4/KustoDatabase9"), + // Type: to.Ptr("Microsoft.Synapse/Workspaces/KustoPools/AttachedDatabaseConfigurations"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Synapse/Workspaces/kustorptest/KustoPools/kustoclusterrptest4/AttachedDatabaseConfigurations/KustoDatabase9"), + // Location: to.Ptr("westus"), + // Properties: &armsynapse.AttachedDatabaseConfigurationProperties{ + // KustoPoolResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Synapse/Workspaces/kustorptest/KustoPools/KustoClusterLeader"), + // DatabaseName: to.Ptr("db1"), + // DefaultPrincipalsModificationKind: to.Ptr(armsynapse.DefaultPrincipalsModificationKindUnion), + // ProvisioningState: to.Ptr(armsynapse.ResourceProvisioningStateSucceeded), + // TableLevelSharingProperties: &armsynapse.TableLevelSharingProperties{ + // ExternalTablesToExclude: []*string{ + // to.Ptr("ExternalTable2")}, + // ExternalTablesToInclude: []*string{ + // to.Ptr("ExternalTable1")}, + // MaterializedViewsToExclude: []*string{ + // to.Ptr("MaterializedViewTable2")}, + // MaterializedViewsToInclude: []*string{ + // to.Ptr("MaterializedViewTable1")}, + // TablesToExclude: []*string{ + // to.Ptr("Table2")}, + // TablesToInclude: []*string{ + // to.Ptr("Table1")}, + // }, + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolAttachedDatabaseConfigurationsGet.json +func ExampleKustoPoolAttachedDatabaseConfigurationsClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewKustoPoolAttachedDatabaseConfigurationsClient("12345678-1234-1234-1234-123456789098", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "kustorptest", "kustoclusterrptest4", "attachedDatabaseConfigurations1", "kustorptest", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.AttachedDatabaseConfiguration = armsynapse.AttachedDatabaseConfiguration{ + // Name: to.Ptr("KustoClusterRPTest4/attachedDatabaseConfigurations1"), + // Type: to.Ptr("Microsoft.Synapse/Workspaces/KustoPools/AttachedDatabaseConfigurations"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Synapse/Workspaces/kustorptest/KustoPools/kustoclusterrptest4/AttachedDatabaseConfigurations/attachedDatabaseConfigurations1"), + // Location: to.Ptr("westus"), + // Properties: &armsynapse.AttachedDatabaseConfigurationProperties{ + // KustoPoolResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Synapse/Workspaces/kustorptest/KustoPools/kustoclusterrptest4"), + // DatabaseName: to.Ptr("*"), + // DefaultPrincipalsModificationKind: to.Ptr(armsynapse.DefaultPrincipalsModificationKindUnion), + // ProvisioningState: to.Ptr(armsynapse.ResourceProvisioningStateSucceeded), + // TableLevelSharingProperties: &armsynapse.TableLevelSharingProperties{ + // ExternalTablesToExclude: []*string{ + // to.Ptr("ExternalTable2")}, + // ExternalTablesToInclude: []*string{ + // to.Ptr("ExternalTable1")}, + // MaterializedViewsToExclude: []*string{ + // to.Ptr("MaterializedViewTable2")}, + // MaterializedViewsToInclude: []*string{ + // to.Ptr("MaterializedViewTable1")}, + // TablesToExclude: []*string{ + // to.Ptr("Table2")}, + // TablesToInclude: []*string{ + // to.Ptr("Table1")}, + // }, + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolAttachedDatabaseConfigurationsCreateOrUpdate.json +func ExampleKustoPoolAttachedDatabaseConfigurationsClient_BeginCreateOrUpdate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewKustoPoolAttachedDatabaseConfigurationsClient("12345678-1234-1234-1234-123456789098", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreateOrUpdate(ctx, "kustorptest", "kustoclusterrptest4", "attachedDatabaseConfigurations1", "kustorptest", armsynapse.AttachedDatabaseConfiguration{ + Location: to.Ptr("westus"), + Properties: &armsynapse.AttachedDatabaseConfigurationProperties{ + KustoPoolResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Synapse/Workspaces/kustorptest/KustoPools/kustoclusterrptest4"), + DatabaseName: to.Ptr("kustodatabase"), + DefaultPrincipalsModificationKind: to.Ptr(armsynapse.DefaultPrincipalsModificationKindUnion), + TableLevelSharingProperties: &armsynapse.TableLevelSharingProperties{ + ExternalTablesToExclude: []*string{ + to.Ptr("ExternalTable2")}, + ExternalTablesToInclude: []*string{ + to.Ptr("ExternalTable1")}, + MaterializedViewsToExclude: []*string{ + to.Ptr("MaterializedViewTable2")}, + MaterializedViewsToInclude: []*string{ + to.Ptr("MaterializedViewTable1")}, + TablesToExclude: []*string{ + to.Ptr("Table2")}, + TablesToInclude: []*string{ + to.Ptr("Table1")}, + }, + }, + }, 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.AttachedDatabaseConfiguration = armsynapse.AttachedDatabaseConfiguration{ + // Name: to.Ptr("KustoClusterRPTest4/attachedDatabaseConfigurations1"), + // Type: to.Ptr("Microsoft.Synapse/Workspaces/KustoPools/AttachedDatabaseConfigurations"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Synapse/Workspaces/kustorptest/KustoPools/kustoclusterrptest4/attachedDatabaseConfigurations/attachedDatabaseConfigurations1"), + // Location: to.Ptr("westus"), + // Properties: &armsynapse.AttachedDatabaseConfigurationProperties{ + // KustoPoolResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Synapse/Workspaces/kustorptest/KustoPools/KustoClusterLeader"), + // DatabaseName: to.Ptr("db1"), + // DefaultPrincipalsModificationKind: to.Ptr(armsynapse.DefaultPrincipalsModificationKindUnion), + // ProvisioningState: to.Ptr(armsynapse.ResourceProvisioningStateSucceeded), + // TableLevelSharingProperties: &armsynapse.TableLevelSharingProperties{ + // ExternalTablesToExclude: []*string{ + // to.Ptr("ExternalTable2")}, + // ExternalTablesToInclude: []*string{ + // to.Ptr("ExternalTable1")}, + // MaterializedViewsToExclude: []*string{ + // to.Ptr("MaterializedViewTable2")}, + // MaterializedViewsToInclude: []*string{ + // to.Ptr("MaterializedViewTable1")}, + // TablesToExclude: []*string{ + // to.Ptr("Table2")}, + // TablesToInclude: []*string{ + // to.Ptr("Table1")}, + // }, + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolAttachedDatabaseConfigurationsDelete.json +func ExampleKustoPoolAttachedDatabaseConfigurationsClient_BeginDelete() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewKustoPoolAttachedDatabaseConfigurationsClient("12345678-1234-1234-1234-123456789098", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginDelete(ctx, "kustorptest", "kustoclusterrptest4", "attachedDatabaseConfigurations1", "kustorptest", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + _, err = poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } +} diff --git a/sdk/resourcemanager/synapse/armsynapse/zz_generated_kustopoolchildresource_client.go b/sdk/resourcemanager/synapse/armsynapse/kustopoolchildresource_client.go similarity index 88% rename from sdk/resourcemanager/synapse/armsynapse/zz_generated_kustopoolchildresource_client.go rename to sdk/resourcemanager/synapse/armsynapse/kustopoolchildresource_client.go index e9cebb70db40..19ba511da99d 100644 --- a/sdk/resourcemanager/synapse/armsynapse/zz_generated_kustopoolchildresource_client.go +++ b/sdk/resourcemanager/synapse/armsynapse/kustopoolchildresource_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse @@ -31,9 +32,9 @@ type KustoPoolChildResourceClient struct { } // NewKustoPoolChildResourceClient creates a new instance of KustoPoolChildResourceClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewKustoPoolChildResourceClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*KustoPoolChildResourceClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,13 +57,14 @@ func NewKustoPoolChildResourceClient(subscriptionID string, credential azcore.To // CheckNameAvailability - Checks that the Kusto Pool child resource name is valid and is not already in use. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview -// workspaceName - The name of the workspace. -// kustoPoolName - The name of the Kusto pool. -// resourceGroupName - The name of the resource group. The name is case insensitive. -// resourceName - The name of the Kusto Pool child resource. -// options - KustoPoolChildResourceClientCheckNameAvailabilityOptions contains the optional parameters for the KustoPoolChildResourceClient.CheckNameAvailability -// method. +// - workspaceName - The name of the workspace. +// - kustoPoolName - The name of the Kusto pool. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - resourceName - The name of the Kusto Pool child resource. +// - options - KustoPoolChildResourceClientCheckNameAvailabilityOptions contains the optional parameters for the KustoPoolChildResourceClient.CheckNameAvailability +// method. func (client *KustoPoolChildResourceClient) CheckNameAvailability(ctx context.Context, workspaceName string, kustoPoolName string, resourceGroupName string, resourceName DatabaseCheckNameRequest, options *KustoPoolChildResourceClientCheckNameAvailabilityOptions) (KustoPoolChildResourceClientCheckNameAvailabilityResponse, error) { req, err := client.checkNameAvailabilityCreateRequest(ctx, workspaceName, kustoPoolName, resourceGroupName, resourceName, options) if err != nil { diff --git a/sdk/resourcemanager/synapse/armsynapse/kustopoolchildresource_client_example_test.go b/sdk/resourcemanager/synapse/armsynapse/kustopoolchildresource_client_example_test.go new file mode 100644 index 000000000000..47eb9e2df157 --- /dev/null +++ b/sdk/resourcemanager/synapse/armsynapse/kustopoolchildresource_client_example_test.go @@ -0,0 +1,75 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armsynapse_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolAttachedDatabaseConfigurationCheckNameAvailability.json +func ExampleKustoPoolChildResourceClient_CheckNameAvailability_kustoPoolAttachedDatabaseConfigurationCheckNameAvailability() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewKustoPoolChildResourceClient("12345678-1234-1234-1234-123456789098", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.CheckNameAvailability(ctx, "kustorptest", "kustoclusterrptest4", "kustorptest", armsynapse.DatabaseCheckNameRequest{ + Name: to.Ptr("adc1"), + Type: to.Ptr(armsynapse.TypeMicrosoftSynapseWorkspacesKustoPoolsAttachedDatabaseConfigurations), + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.CheckNameResult = armsynapse.CheckNameResult{ + // Name: to.Ptr("adc1"), + // Message: to.Ptr("Name 'adc1' is already taken. Please specify a different name"), + // NameAvailable: to.Ptr(false), + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolDatabasesCheckNameAvailability.json +func ExampleKustoPoolChildResourceClient_CheckNameAvailability_kustoPoolDatabasesCheckNameAvailability() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewKustoPoolChildResourceClient("12345678-1234-1234-1234-123456789098", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.CheckNameAvailability(ctx, "synapseWorkspaceName", "kustoclusterrptest4", "kustorptest", armsynapse.DatabaseCheckNameRequest{ + Name: to.Ptr("database1"), + Type: to.Ptr(armsynapse.TypeMicrosoftSynapseWorkspacesKustoPoolsDatabases), + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.CheckNameResult = armsynapse.CheckNameResult{ + // Name: to.Ptr("database1"), + // Message: to.Ptr("Name 'database1' is already taken. Please specify a different name"), + // NameAvailable: to.Ptr(false), + // } +} diff --git a/sdk/resourcemanager/synapse/armsynapse/zz_generated_kustopooldatabaseprincipalassignments_client.go b/sdk/resourcemanager/synapse/armsynapse/kustopooldatabaseprincipalassignments_client.go similarity index 88% rename from sdk/resourcemanager/synapse/armsynapse/zz_generated_kustopooldatabaseprincipalassignments_client.go rename to sdk/resourcemanager/synapse/armsynapse/kustopooldatabaseprincipalassignments_client.go index 4a48ad9b64e8..64822f61ec79 100644 --- a/sdk/resourcemanager/synapse/armsynapse/zz_generated_kustopooldatabaseprincipalassignments_client.go +++ b/sdk/resourcemanager/synapse/armsynapse/kustopooldatabaseprincipalassignments_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse @@ -31,9 +32,9 @@ type KustoPoolDatabasePrincipalAssignmentsClient struct { } // NewKustoPoolDatabasePrincipalAssignmentsClient creates a new instance of KustoPoolDatabasePrincipalAssignmentsClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewKustoPoolDatabasePrincipalAssignmentsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*KustoPoolDatabasePrincipalAssignmentsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,14 +57,15 @@ func NewKustoPoolDatabasePrincipalAssignmentsClient(subscriptionID string, crede // CheckNameAvailability - Checks that the database principal assignment is valid and is not already in use. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview -// workspaceName - The name of the workspace. -// kustoPoolName - The name of the Kusto pool. -// databaseName - The name of the database in the Kusto pool. -// resourceGroupName - The name of the resource group. The name is case insensitive. -// principalAssignmentName - The name of the resource. -// options - KustoPoolDatabasePrincipalAssignmentsClientCheckNameAvailabilityOptions contains the optional parameters for -// the KustoPoolDatabasePrincipalAssignmentsClient.CheckNameAvailability method. +// - workspaceName - The name of the workspace. +// - kustoPoolName - The name of the Kusto pool. +// - databaseName - The name of the database in the Kusto pool. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - principalAssignmentName - The name of the resource. +// - options - KustoPoolDatabasePrincipalAssignmentsClientCheckNameAvailabilityOptions contains the optional parameters for +// the KustoPoolDatabasePrincipalAssignmentsClient.CheckNameAvailability method. func (client *KustoPoolDatabasePrincipalAssignmentsClient) CheckNameAvailability(ctx context.Context, workspaceName string, kustoPoolName string, databaseName string, resourceGroupName string, principalAssignmentName DatabasePrincipalAssignmentCheckNameRequest, options *KustoPoolDatabasePrincipalAssignmentsClientCheckNameAvailabilityOptions) (KustoPoolDatabasePrincipalAssignmentsClientCheckNameAvailabilityResponse, error) { req, err := client.checkNameAvailabilityCreateRequest(ctx, workspaceName, kustoPoolName, databaseName, resourceGroupName, principalAssignmentName, options) if err != nil { @@ -124,15 +126,16 @@ func (client *KustoPoolDatabasePrincipalAssignmentsClient) checkNameAvailability // BeginCreateOrUpdate - Creates a Kusto pool database principalAssignment. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview -// workspaceName - The name of the workspace. -// kustoPoolName - The name of the Kusto pool. -// databaseName - The name of the database in the Kusto pool. -// principalAssignmentName - The name of the Kusto principalAssignment. -// resourceGroupName - The name of the resource group. The name is case insensitive. -// parameters - The Kusto principalAssignments parameters supplied for the operation. -// options - KustoPoolDatabasePrincipalAssignmentsClientBeginCreateOrUpdateOptions contains the optional parameters for the -// KustoPoolDatabasePrincipalAssignmentsClient.BeginCreateOrUpdate method. +// - workspaceName - The name of the workspace. +// - kustoPoolName - The name of the Kusto pool. +// - databaseName - The name of the database in the Kusto pool. +// - principalAssignmentName - The name of the Kusto principalAssignment. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - parameters - The Kusto principalAssignments parameters supplied for the operation. +// - options - KustoPoolDatabasePrincipalAssignmentsClientBeginCreateOrUpdateOptions contains the optional parameters for the +// KustoPoolDatabasePrincipalAssignmentsClient.BeginCreateOrUpdate method. func (client *KustoPoolDatabasePrincipalAssignmentsClient) BeginCreateOrUpdate(ctx context.Context, workspaceName string, kustoPoolName string, databaseName string, principalAssignmentName string, resourceGroupName string, parameters DatabasePrincipalAssignment, options *KustoPoolDatabasePrincipalAssignmentsClientBeginCreateOrUpdateOptions) (*runtime.Poller[KustoPoolDatabasePrincipalAssignmentsClientCreateOrUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createOrUpdate(ctx, workspaceName, kustoPoolName, databaseName, principalAssignmentName, resourceGroupName, parameters, options) @@ -147,6 +150,7 @@ func (client *KustoPoolDatabasePrincipalAssignmentsClient) BeginCreateOrUpdate(c // CreateOrUpdate - Creates a Kusto pool database principalAssignment. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview func (client *KustoPoolDatabasePrincipalAssignmentsClient) createOrUpdate(ctx context.Context, workspaceName string, kustoPoolName string, databaseName string, principalAssignmentName string, resourceGroupName string, parameters DatabasePrincipalAssignment, options *KustoPoolDatabasePrincipalAssignmentsClientBeginCreateOrUpdateOptions) (*http.Response, error) { req, err := client.createOrUpdateCreateRequest(ctx, workspaceName, kustoPoolName, databaseName, principalAssignmentName, resourceGroupName, parameters, options) @@ -203,14 +207,15 @@ func (client *KustoPoolDatabasePrincipalAssignmentsClient) createOrUpdateCreateR // BeginDelete - Deletes a Kusto pool principalAssignment. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview -// workspaceName - The name of the workspace. -// kustoPoolName - The name of the Kusto pool. -// databaseName - The name of the database in the Kusto pool. -// principalAssignmentName - The name of the Kusto principalAssignment. -// resourceGroupName - The name of the resource group. The name is case insensitive. -// options - KustoPoolDatabasePrincipalAssignmentsClientBeginDeleteOptions contains the optional parameters for the KustoPoolDatabasePrincipalAssignmentsClient.BeginDelete -// method. +// - workspaceName - The name of the workspace. +// - kustoPoolName - The name of the Kusto pool. +// - databaseName - The name of the database in the Kusto pool. +// - principalAssignmentName - The name of the Kusto principalAssignment. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - options - KustoPoolDatabasePrincipalAssignmentsClientBeginDeleteOptions contains the optional parameters for the KustoPoolDatabasePrincipalAssignmentsClient.BeginDelete +// method. func (client *KustoPoolDatabasePrincipalAssignmentsClient) BeginDelete(ctx context.Context, workspaceName string, kustoPoolName string, databaseName string, principalAssignmentName string, resourceGroupName string, options *KustoPoolDatabasePrincipalAssignmentsClientBeginDeleteOptions) (*runtime.Poller[KustoPoolDatabasePrincipalAssignmentsClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, workspaceName, kustoPoolName, databaseName, principalAssignmentName, resourceGroupName, options) @@ -225,6 +230,7 @@ func (client *KustoPoolDatabasePrincipalAssignmentsClient) BeginDelete(ctx conte // Delete - Deletes a Kusto pool principalAssignment. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview func (client *KustoPoolDatabasePrincipalAssignmentsClient) deleteOperation(ctx context.Context, workspaceName string, kustoPoolName string, databaseName string, principalAssignmentName string, resourceGroupName string, options *KustoPoolDatabasePrincipalAssignmentsClientBeginDeleteOptions) (*http.Response, error) { req, err := client.deleteCreateRequest(ctx, workspaceName, kustoPoolName, databaseName, principalAssignmentName, resourceGroupName, options) @@ -281,14 +287,15 @@ func (client *KustoPoolDatabasePrincipalAssignmentsClient) deleteCreateRequest(c // Get - Gets a Kusto pool database principalAssignment. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview -// workspaceName - The name of the workspace. -// kustoPoolName - The name of the Kusto pool. -// databaseName - The name of the database in the Kusto pool. -// principalAssignmentName - The name of the Kusto principalAssignment. -// resourceGroupName - The name of the resource group. The name is case insensitive. -// options - KustoPoolDatabasePrincipalAssignmentsClientGetOptions contains the optional parameters for the KustoPoolDatabasePrincipalAssignmentsClient.Get -// method. +// - workspaceName - The name of the workspace. +// - kustoPoolName - The name of the Kusto pool. +// - databaseName - The name of the database in the Kusto pool. +// - principalAssignmentName - The name of the Kusto principalAssignment. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - options - KustoPoolDatabasePrincipalAssignmentsClientGetOptions contains the optional parameters for the KustoPoolDatabasePrincipalAssignmentsClient.Get +// method. func (client *KustoPoolDatabasePrincipalAssignmentsClient) Get(ctx context.Context, workspaceName string, kustoPoolName string, databaseName string, principalAssignmentName string, resourceGroupName string, options *KustoPoolDatabasePrincipalAssignmentsClientGetOptions) (KustoPoolDatabasePrincipalAssignmentsClientGetResponse, error) { req, err := client.getCreateRequest(ctx, workspaceName, kustoPoolName, databaseName, principalAssignmentName, resourceGroupName, options) if err != nil { @@ -352,14 +359,14 @@ func (client *KustoPoolDatabasePrincipalAssignmentsClient) getHandleResponse(res } // NewListPager - Lists all Kusto pool database principalAssignments. -// If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview -// workspaceName - The name of the workspace. -// kustoPoolName - The name of the Kusto pool. -// databaseName - The name of the database in the Kusto pool. -// resourceGroupName - The name of the resource group. The name is case insensitive. -// options - KustoPoolDatabasePrincipalAssignmentsClientListOptions contains the optional parameters for the KustoPoolDatabasePrincipalAssignmentsClient.List -// method. +// - workspaceName - The name of the workspace. +// - kustoPoolName - The name of the Kusto pool. +// - databaseName - The name of the database in the Kusto pool. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - options - KustoPoolDatabasePrincipalAssignmentsClientListOptions contains the optional parameters for the KustoPoolDatabasePrincipalAssignmentsClient.NewListPager +// method. func (client *KustoPoolDatabasePrincipalAssignmentsClient) NewListPager(workspaceName string, kustoPoolName string, databaseName string, resourceGroupName string, options *KustoPoolDatabasePrincipalAssignmentsClientListOptions) *runtime.Pager[KustoPoolDatabasePrincipalAssignmentsClientListResponse] { return runtime.NewPager(runtime.PagingHandler[KustoPoolDatabasePrincipalAssignmentsClientListResponse]{ More: func(page KustoPoolDatabasePrincipalAssignmentsClientListResponse) bool { diff --git a/sdk/resourcemanager/synapse/armsynapse/kustopooldatabaseprincipalassignments_client_example_test.go b/sdk/resourcemanager/synapse/armsynapse/kustopooldatabaseprincipalassignments_client_example_test.go new file mode 100644 index 000000000000..7ea18f40b0d4 --- /dev/null +++ b/sdk/resourcemanager/synapse/armsynapse/kustopooldatabaseprincipalassignments_client_example_test.go @@ -0,0 +1,207 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armsynapse_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolDatabasePrincipalAssignmentsCheckNameAvailability.json +func ExampleKustoPoolDatabasePrincipalAssignmentsClient_CheckNameAvailability() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewKustoPoolDatabasePrincipalAssignmentsClient("12345678-1234-1234-1234-123456789098", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.CheckNameAvailability(ctx, "synapseWorkspaceName", "kustoclusterrptest4", "Kustodatabase8", "kustorptest", armsynapse.DatabasePrincipalAssignmentCheckNameRequest{ + Name: to.Ptr("kustoprincipal1"), + Type: to.Ptr("Microsoft.Synapse/workspaces/kustoPools/databases/principalAssignments"), + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.CheckNameResult = armsynapse.CheckNameResult{ + // Name: to.Ptr("kustoprincipal1"), + // Message: to.Ptr("Name 'kustoprincipal1' is already taken. Please specify a different name"), + // NameAvailable: to.Ptr(false), + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolDatabasePrincipalAssignmentsList.json +func ExampleKustoPoolDatabasePrincipalAssignmentsClient_NewListPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewKustoPoolDatabasePrincipalAssignmentsClient("12345678-1234-1234-1234-123456789098", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListPager("synapseWorkspaceName", "kustoclusterrptest4", "Kustodatabase8", "kustorptest", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.DatabasePrincipalAssignmentListResult = armsynapse.DatabasePrincipalAssignmentListResult{ + // Value: []*armsynapse.DatabasePrincipalAssignment{ + // { + // Name: to.Ptr("synapseWorkspaceName/kustoclusterrptest4/Kustodatabase8/kustoprincipal1"), + // Type: to.Ptr("Microsoft.Synapse/Workspaces/KustoPools/Databases/PrincipalAssignments"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Synapse/workspaces/synapseWorkspaceName/kustoPools/kustoclusterrptest4/Databases/Kustodatabase8/PrincipalAssignments/kustoprincipal1"), + // Properties: &armsynapse.DatabasePrincipalProperties{ + // AADObjectID: to.Ptr("98765432-1234-1234-1234-123456789123"), + // PrincipalID: to.Ptr("87654321-1234-1234-1234-123456789123"), + // PrincipalName: to.Ptr("TestApp"), + // PrincipalType: to.Ptr(armsynapse.PrincipalTypeApp), + // ProvisioningState: to.Ptr(armsynapse.ResourceProvisioningStateSucceeded), + // Role: to.Ptr(armsynapse.DatabasePrincipalRoleAdmin), + // TenantID: to.Ptr("12345678-1234-1234-1234-123456789123"), + // TenantName: to.Ptr("tenantName"), + // }, + // }, + // { + // Name: to.Ptr("synapseWorkspaceName/kustoclusterrptest4/Kustodatabase8/kustoprincipal2"), + // Type: to.Ptr("Microsoft.Synapse/Workspaces/KustoPools/Databases/PrincipalAssignments"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Synapse/workspaces/synapseWorkspaceName/kustoPools/kustoclusterrptest4/Databases/Kustodatabase8/PrincipalAssignments/kustoprincipal2"), + // Properties: &armsynapse.DatabasePrincipalProperties{ + // AADObjectID: to.Ptr("98765432-1234-1234-1234-123456789123"), + // PrincipalID: to.Ptr("87654321-1234-1234-1234-123456789123"), + // PrincipalName: to.Ptr("TestApp"), + // PrincipalType: to.Ptr(armsynapse.PrincipalTypeApp), + // ProvisioningState: to.Ptr(armsynapse.ResourceProvisioningStateSucceeded), + // Role: to.Ptr(armsynapse.DatabasePrincipalRoleAdmin), + // TenantID: to.Ptr("12345678-1234-1234-1234-123456789123"), + // TenantName: to.Ptr("tenantName"), + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolDatabasePrincipalAssignmentsGet.json +func ExampleKustoPoolDatabasePrincipalAssignmentsClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewKustoPoolDatabasePrincipalAssignmentsClient("12345678-1234-1234-1234-123456789098", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "synapseWorkspaceName", "kustoclusterrptest4", "Kustodatabase8", "kustoprincipal1", "kustorptest", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.DatabasePrincipalAssignment = armsynapse.DatabasePrincipalAssignment{ + // Name: to.Ptr("synapseWorkspaceName/kustoclusterrptest4/Kustodatabase8/kustoprincipal1"), + // Type: to.Ptr("Microsoft.Synapse/Workspaces/KustoPools/Databases/PrincipalAssignments"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Synapse/workspaces/synapseWorkspaceName/kustoPools/kustoclusterrptest4/Databases/Kustodatabase8/PrincipalAssignments/kustoprincipal1"), + // Properties: &armsynapse.DatabasePrincipalProperties{ + // AADObjectID: to.Ptr("98765432-1234-1234-1234-123456789123"), + // PrincipalID: to.Ptr("87654321-1234-1234-1234-123456789123"), + // PrincipalName: to.Ptr("TestApp"), + // PrincipalType: to.Ptr(armsynapse.PrincipalTypeApp), + // ProvisioningState: to.Ptr(armsynapse.ResourceProvisioningStateSucceeded), + // Role: to.Ptr(armsynapse.DatabasePrincipalRoleAdmin), + // TenantID: to.Ptr("12345678-1234-1234-1234-123456789123"), + // TenantName: to.Ptr("tenantName"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolDatabasePrincipalAssignmentsCreateOrUpdate.json +func ExampleKustoPoolDatabasePrincipalAssignmentsClient_BeginCreateOrUpdate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewKustoPoolDatabasePrincipalAssignmentsClient("12345678-1234-1234-1234-123456789098", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreateOrUpdate(ctx, "synapseWorkspaceName", "kustoclusterrptest4", "Kustodatabase8", "kustoprincipal1", "kustorptest", armsynapse.DatabasePrincipalAssignment{ + Properties: &armsynapse.DatabasePrincipalProperties{ + PrincipalID: to.Ptr("87654321-1234-1234-1234-123456789123"), + PrincipalType: to.Ptr(armsynapse.PrincipalTypeApp), + Role: to.Ptr(armsynapse.DatabasePrincipalRoleAdmin), + TenantID: to.Ptr("12345678-1234-1234-1234-123456789123"), + }, + }, 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.DatabasePrincipalAssignment = armsynapse.DatabasePrincipalAssignment{ + // Name: to.Ptr("synapseWorkspaceName/kustoclusterrptest4/Kustodatabase8/kustoprincipal1"), + // Type: to.Ptr("Microsoft.Synapse/Workspaces/KustoPools/Databases/PrincipalAssignments"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Synapse/workspaces/synapseWorkspaceName/kustoPools/kustoclusterrptest4/Databases/Kustodatabase8/PrincipalAssignments/kustoprincipal1"), + // Properties: &armsynapse.DatabasePrincipalProperties{ + // AADObjectID: to.Ptr("98765432-1234-1234-1234-123456789123"), + // PrincipalID: to.Ptr("87654321-1234-1234-1234-123456789123"), + // PrincipalName: to.Ptr("TestApp"), + // PrincipalType: to.Ptr(armsynapse.PrincipalTypeApp), + // ProvisioningState: to.Ptr(armsynapse.ResourceProvisioningStateSucceeded), + // Role: to.Ptr(armsynapse.DatabasePrincipalRoleAdmin), + // TenantID: to.Ptr("12345678-1234-1234-1234-123456789123"), + // TenantName: to.Ptr("tenantName"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolDatabasePrincipalAssignmentsDelete.json +func ExampleKustoPoolDatabasePrincipalAssignmentsClient_BeginDelete() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewKustoPoolDatabasePrincipalAssignmentsClient("12345678-1234-1234-1234-123456789098", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginDelete(ctx, "synapseWorkspaceName", "kustoclusterrptest4", "Kustodatabase8", "kustoprincipal1", "kustorptest", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + _, err = poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } +} diff --git a/sdk/resourcemanager/synapse/armsynapse/zz_generated_kustopooldatabases_client.go b/sdk/resourcemanager/synapse/armsynapse/kustopooldatabases_client.go similarity index 89% rename from sdk/resourcemanager/synapse/armsynapse/zz_generated_kustopooldatabases_client.go rename to sdk/resourcemanager/synapse/armsynapse/kustopooldatabases_client.go index 40bd72299096..3fa6b8dcffc7 100644 --- a/sdk/resourcemanager/synapse/armsynapse/zz_generated_kustopooldatabases_client.go +++ b/sdk/resourcemanager/synapse/armsynapse/kustopooldatabases_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse @@ -31,9 +32,9 @@ type KustoPoolDatabasesClient struct { } // NewKustoPoolDatabasesClient creates a new instance of KustoPoolDatabasesClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewKustoPoolDatabasesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*KustoPoolDatabasesClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,14 +57,15 @@ func NewKustoPoolDatabasesClient(subscriptionID string, credential azcore.TokenC // BeginCreateOrUpdate - Creates or updates a database. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// kustoPoolName - The name of the Kusto pool. -// databaseName - The name of the database in the Kusto pool. -// parameters - The database parameters supplied to the CreateOrUpdate operation. -// options - KustoPoolDatabasesClientBeginCreateOrUpdateOptions contains the optional parameters for the KustoPoolDatabasesClient.BeginCreateOrUpdate -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - kustoPoolName - The name of the Kusto pool. +// - databaseName - The name of the database in the Kusto pool. +// - parameters - The database parameters supplied to the CreateOrUpdate operation. +// - options - KustoPoolDatabasesClientBeginCreateOrUpdateOptions contains the optional parameters for the KustoPoolDatabasesClient.BeginCreateOrUpdate +// method. func (client *KustoPoolDatabasesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, kustoPoolName string, databaseName string, parameters DatabaseClassification, options *KustoPoolDatabasesClientBeginCreateOrUpdateOptions) (*runtime.Poller[KustoPoolDatabasesClientCreateOrUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createOrUpdate(ctx, resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters, options) @@ -78,6 +80,7 @@ func (client *KustoPoolDatabasesClient) BeginCreateOrUpdate(ctx context.Context, // CreateOrUpdate - Creates or updates a database. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview func (client *KustoPoolDatabasesClient) createOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, kustoPoolName string, databaseName string, parameters DatabaseClassification, options *KustoPoolDatabasesClientBeginCreateOrUpdateOptions) (*http.Response, error) { req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters, options) @@ -130,13 +133,14 @@ func (client *KustoPoolDatabasesClient) createOrUpdateCreateRequest(ctx context. // BeginDelete - Deletes the database with the given name. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// kustoPoolName - The name of the Kusto pool. -// databaseName - The name of the database in the Kusto pool. -// options - KustoPoolDatabasesClientBeginDeleteOptions contains the optional parameters for the KustoPoolDatabasesClient.BeginDelete -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - kustoPoolName - The name of the Kusto pool. +// - databaseName - The name of the database in the Kusto pool. +// - options - KustoPoolDatabasesClientBeginDeleteOptions contains the optional parameters for the KustoPoolDatabasesClient.BeginDelete +// method. func (client *KustoPoolDatabasesClient) BeginDelete(ctx context.Context, resourceGroupName string, workspaceName string, kustoPoolName string, databaseName string, options *KustoPoolDatabasesClientBeginDeleteOptions) (*runtime.Poller[KustoPoolDatabasesClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, workspaceName, kustoPoolName, databaseName, options) @@ -151,6 +155,7 @@ func (client *KustoPoolDatabasesClient) BeginDelete(ctx context.Context, resourc // Delete - Deletes the database with the given name. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview func (client *KustoPoolDatabasesClient) deleteOperation(ctx context.Context, resourceGroupName string, workspaceName string, kustoPoolName string, databaseName string, options *KustoPoolDatabasesClientBeginDeleteOptions) (*http.Response, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, workspaceName, kustoPoolName, databaseName, options) @@ -203,12 +208,13 @@ func (client *KustoPoolDatabasesClient) deleteCreateRequest(ctx context.Context, // Get - Returns a database. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// kustoPoolName - The name of the Kusto pool. -// databaseName - The name of the database in the Kusto pool. -// options - KustoPoolDatabasesClientGetOptions contains the optional parameters for the KustoPoolDatabasesClient.Get method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - kustoPoolName - The name of the Kusto pool. +// - databaseName - The name of the database in the Kusto pool. +// - options - KustoPoolDatabasesClientGetOptions contains the optional parameters for the KustoPoolDatabasesClient.Get method. func (client *KustoPoolDatabasesClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, kustoPoolName string, databaseName string, options *KustoPoolDatabasesClientGetOptions) (KustoPoolDatabasesClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, workspaceName, kustoPoolName, databaseName, options) if err != nil { @@ -268,13 +274,13 @@ func (client *KustoPoolDatabasesClient) getHandleResponse(resp *http.Response) ( } // NewListByKustoPoolPager - Returns the list of databases of the given Kusto pool. -// If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// kustoPoolName - The name of the Kusto pool. -// options - KustoPoolDatabasesClientListByKustoPoolOptions contains the optional parameters for the KustoPoolDatabasesClient.ListByKustoPool -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - kustoPoolName - The name of the Kusto pool. +// - options - KustoPoolDatabasesClientListByKustoPoolOptions contains the optional parameters for the KustoPoolDatabasesClient.NewListByKustoPoolPager +// method. func (client *KustoPoolDatabasesClient) NewListByKustoPoolPager(resourceGroupName string, workspaceName string, kustoPoolName string, options *KustoPoolDatabasesClientListByKustoPoolOptions) *runtime.Pager[KustoPoolDatabasesClientListByKustoPoolResponse] { return runtime.NewPager(runtime.PagingHandler[KustoPoolDatabasesClientListByKustoPoolResponse]{ More: func(page KustoPoolDatabasesClientListByKustoPoolResponse) bool { @@ -338,14 +344,15 @@ func (client *KustoPoolDatabasesClient) listByKustoPoolHandleResponse(resp *http // BeginUpdate - Updates a database. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// kustoPoolName - The name of the Kusto pool. -// databaseName - The name of the database in the Kusto pool. -// parameters - The database parameters supplied to the Update operation. -// options - KustoPoolDatabasesClientBeginUpdateOptions contains the optional parameters for the KustoPoolDatabasesClient.BeginUpdate -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - kustoPoolName - The name of the Kusto pool. +// - databaseName - The name of the database in the Kusto pool. +// - parameters - The database parameters supplied to the Update operation. +// - options - KustoPoolDatabasesClientBeginUpdateOptions contains the optional parameters for the KustoPoolDatabasesClient.BeginUpdate +// method. func (client *KustoPoolDatabasesClient) BeginUpdate(ctx context.Context, resourceGroupName string, workspaceName string, kustoPoolName string, databaseName string, parameters DatabaseClassification, options *KustoPoolDatabasesClientBeginUpdateOptions) (*runtime.Poller[KustoPoolDatabasesClientUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.update(ctx, resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters, options) @@ -360,6 +367,7 @@ func (client *KustoPoolDatabasesClient) BeginUpdate(ctx context.Context, resourc // Update - Updates a database. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview func (client *KustoPoolDatabasesClient) update(ctx context.Context, resourceGroupName string, workspaceName string, kustoPoolName string, databaseName string, parameters DatabaseClassification, options *KustoPoolDatabasesClientBeginUpdateOptions) (*http.Response, error) { req, err := client.updateCreateRequest(ctx, resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters, options) diff --git a/sdk/resourcemanager/synapse/armsynapse/kustopooldatabases_client_example_test.go b/sdk/resourcemanager/synapse/armsynapse/kustopooldatabases_client_example_test.go new file mode 100644 index 000000000000..80b6abda3887 --- /dev/null +++ b/sdk/resourcemanager/synapse/armsynapse/kustopooldatabases_client_example_test.go @@ -0,0 +1,208 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armsynapse_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoDatabasesListByKustoPool.json +func ExampleKustoPoolDatabasesClient_NewListByKustoPoolPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewKustoPoolDatabasesClient("12345678-1234-1234-1234-123456789098", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListByKustoPoolPager("kustorptest", "synapseWorkspaceName", "kustoclusterrptest4", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.DatabaseListResult = armsynapse.DatabaseListResult{ + // Value: []armsynapse.DatabaseClassification{ + // &armsynapse.ReadWriteDatabase{ + // Name: to.Ptr("KustoClusterRPTest4/KustoDatabase8"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/kustopools/Databases"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Synapse/workspaces/kustorptest/kustopools/KustoClusterRPTest4/Databases/KustoDatabase8"), + // Kind: to.Ptr(armsynapse.KindReadWrite), + // Location: to.Ptr("westus"), + // Properties: &armsynapse.ReadWriteDatabaseProperties{ + // ProvisioningState: to.Ptr(armsynapse.ResourceProvisioningStateSucceeded), + // SoftDeletePeriod: to.Ptr("P1D"), + // }, + // }, + // &armsynapse.ReadWriteDatabase{ + // Name: to.Ptr("KustoClusterRPTest4/KustoDatabase9"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/kustopools/Databases"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Synapse/workspaces/kustorptest/kustopools/KustoClusterRPTest4/Databases/KustoDatabase9"), + // Kind: to.Ptr(armsynapse.KindReadWrite), + // Location: to.Ptr("westus"), + // Properties: &armsynapse.ReadWriteDatabaseProperties{ + // ProvisioningState: to.Ptr(armsynapse.ResourceProvisioningStateSucceeded), + // SoftDeletePeriod: to.Ptr("P1D"), + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolDatabasesGet.json +func ExampleKustoPoolDatabasesClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewKustoPoolDatabasesClient("12345678-1234-1234-1234-123456789098", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "kustorptest", "synapseWorkspaceName", "kustoclusterrptest4", "KustoDatabase8", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res = armsynapse.KustoPoolDatabasesClientGetResponse{ + // DatabaseClassification: &armsynapse.ReadWriteDatabase{ + // Name: to.Ptr("KustoClusterRPTest4/KustoDatabase8"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/kustopools/Databases"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/providers/Microsoft.Synapse/workspaces/synapseWorkspaceName/kustopools/KustoClusterRPTest4/Databases/KustoDatabase8"), + // Kind: to.Ptr(armsynapse.KindReadWrite), + // Location: to.Ptr("westus"), + // Properties: &armsynapse.ReadWriteDatabaseProperties{ + // ProvisioningState: to.Ptr(armsynapse.ResourceProvisioningStateSucceeded), + // SoftDeletePeriod: to.Ptr("P1D"), + // }, + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolDatabasesCreateOrUpdate.json +func ExampleKustoPoolDatabasesClient_BeginCreateOrUpdate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewKustoPoolDatabasesClient("12345678-1234-1234-1234-123456789098", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreateOrUpdate(ctx, "kustorptest", "synapseWorkspaceName", "kustoclusterrptest4", "KustoDatabase8", &armsynapse.ReadWriteDatabase{ + Kind: to.Ptr(armsynapse.KindReadWrite), + Location: to.Ptr("westus"), + Properties: &armsynapse.ReadWriteDatabaseProperties{ + SoftDeletePeriod: to.Ptr("P1D"), + }, + }, 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 = armsynapse.KustoPoolDatabasesClientCreateOrUpdateResponse{ + // DatabaseClassification: &armsynapse.ReadWriteDatabase{ + // Name: to.Ptr("KustoClusterRPTest4/KustoDatabase8"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/kustopools/Databases"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Synapse/workspaces/synapseWorkspaceName/kustopools/KustoClusterRPTest4/Databases/KustoDatabase8"), + // Kind: to.Ptr(armsynapse.KindReadWrite), + // Location: to.Ptr("westus"), + // Properties: &armsynapse.ReadWriteDatabaseProperties{ + // ProvisioningState: to.Ptr(armsynapse.ResourceProvisioningStateSucceeded), + // SoftDeletePeriod: to.Ptr("P1D"), + // }, + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolDatabasesUpdate.json +func ExampleKustoPoolDatabasesClient_BeginUpdate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewKustoPoolDatabasesClient("12345678-1234-1234-1234-123456789098", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginUpdate(ctx, "kustorptest", "synapseWorkspaceName", "kustoclusterrptest4", "KustoDatabase8", &armsynapse.ReadWriteDatabase{ + Kind: to.Ptr(armsynapse.KindReadWrite), + Properties: &armsynapse.ReadWriteDatabaseProperties{ + SoftDeletePeriod: to.Ptr("P1D"), + }, + }, 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 = armsynapse.KustoPoolDatabasesClientUpdateResponse{ + // DatabaseClassification: &armsynapse.ReadWriteDatabase{ + // Name: to.Ptr("KustoClusterRPTest4/KustoDatabase8"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/kustopools/Databases"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Synapse/workspaces/synapseWorkspaceName/kustopools/KustoClusterRPTest4/Databases/KustoDatabase8"), + // Kind: to.Ptr(armsynapse.KindReadWrite), + // Location: to.Ptr("westus"), + // Properties: &armsynapse.ReadWriteDatabaseProperties{ + // ProvisioningState: to.Ptr(armsynapse.ResourceProvisioningStateSucceeded), + // SoftDeletePeriod: to.Ptr("P1D"), + // }, + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolDatabasesDelete.json +func ExampleKustoPoolDatabasesClient_BeginDelete() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewKustoPoolDatabasesClient("12345678-1234-1234-1234-123456789098", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginDelete(ctx, "kustorptest", "synapseWorkspaceName", "kustoclusterrptest4", "KustoDatabase8", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + _, err = poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } +} diff --git a/sdk/resourcemanager/synapse/armsynapse/zz_generated_kustopooldataconnections_client.go b/sdk/resourcemanager/synapse/armsynapse/kustopooldataconnections_client.go similarity index 88% rename from sdk/resourcemanager/synapse/armsynapse/zz_generated_kustopooldataconnections_client.go rename to sdk/resourcemanager/synapse/armsynapse/kustopooldataconnections_client.go index 3a6942e81e86..e323c6c435d0 100644 --- a/sdk/resourcemanager/synapse/armsynapse/zz_generated_kustopooldataconnections_client.go +++ b/sdk/resourcemanager/synapse/armsynapse/kustopooldataconnections_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse @@ -31,9 +32,9 @@ type KustoPoolDataConnectionsClient struct { } // NewKustoPoolDataConnectionsClient creates a new instance of KustoPoolDataConnectionsClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewKustoPoolDataConnectionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*KustoPoolDataConnectionsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,14 +57,15 @@ func NewKustoPoolDataConnectionsClient(subscriptionID string, credential azcore. // CheckNameAvailability - Checks that the data connection name is valid and is not already in use. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// kustoPoolName - The name of the Kusto pool. -// databaseName - The name of the database in the Kusto pool. -// dataConnectionName - The name of the data connection. -// options - KustoPoolDataConnectionsClientCheckNameAvailabilityOptions contains the optional parameters for the KustoPoolDataConnectionsClient.CheckNameAvailability -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - kustoPoolName - The name of the Kusto pool. +// - databaseName - The name of the database in the Kusto pool. +// - dataConnectionName - The name of the data connection. +// - options - KustoPoolDataConnectionsClientCheckNameAvailabilityOptions contains the optional parameters for the KustoPoolDataConnectionsClient.CheckNameAvailability +// method. func (client *KustoPoolDataConnectionsClient) CheckNameAvailability(ctx context.Context, resourceGroupName string, workspaceName string, kustoPoolName string, databaseName string, dataConnectionName DataConnectionCheckNameRequest, options *KustoPoolDataConnectionsClientCheckNameAvailabilityOptions) (KustoPoolDataConnectionsClientCheckNameAvailabilityResponse, error) { req, err := client.checkNameAvailabilityCreateRequest(ctx, resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, options) if err != nil { @@ -124,15 +126,16 @@ func (client *KustoPoolDataConnectionsClient) checkNameAvailabilityHandleRespons // BeginCreateOrUpdate - Creates or updates a data connection. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// kustoPoolName - The name of the Kusto pool. -// databaseName - The name of the database in the Kusto pool. -// dataConnectionName - The name of the data connection. -// parameters - The data connection parameters supplied to the CreateOrUpdate operation. -// options - KustoPoolDataConnectionsClientBeginCreateOrUpdateOptions contains the optional parameters for the KustoPoolDataConnectionsClient.BeginCreateOrUpdate -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - kustoPoolName - The name of the Kusto pool. +// - databaseName - The name of the database in the Kusto pool. +// - dataConnectionName - The name of the data connection. +// - parameters - The data connection parameters supplied to the CreateOrUpdate operation. +// - options - KustoPoolDataConnectionsClientBeginCreateOrUpdateOptions contains the optional parameters for the KustoPoolDataConnectionsClient.BeginCreateOrUpdate +// method. func (client *KustoPoolDataConnectionsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, kustoPoolName string, databaseName string, dataConnectionName string, parameters DataConnectionClassification, options *KustoPoolDataConnectionsClientBeginCreateOrUpdateOptions) (*runtime.Poller[KustoPoolDataConnectionsClientCreateOrUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createOrUpdate(ctx, resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, parameters, options) @@ -147,6 +150,7 @@ func (client *KustoPoolDataConnectionsClient) BeginCreateOrUpdate(ctx context.Co // CreateOrUpdate - Creates or updates a data connection. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview func (client *KustoPoolDataConnectionsClient) createOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, kustoPoolName string, databaseName string, dataConnectionName string, parameters DataConnectionClassification, options *KustoPoolDataConnectionsClientBeginCreateOrUpdateOptions) (*http.Response, error) { req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, parameters, options) @@ -203,14 +207,15 @@ func (client *KustoPoolDataConnectionsClient) createOrUpdateCreateRequest(ctx co // BeginDataConnectionValidation - Checks that the data connection parameters are valid. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// kustoPoolName - The name of the Kusto pool. -// databaseName - The name of the database in the Kusto pool. -// parameters - The data connection parameters supplied to the CreateOrUpdate operation. -// options - KustoPoolDataConnectionsClientBeginDataConnectionValidationOptions contains the optional parameters for the KustoPoolDataConnectionsClient.BeginDataConnectionValidation -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - kustoPoolName - The name of the Kusto pool. +// - databaseName - The name of the database in the Kusto pool. +// - parameters - The data connection parameters supplied to the CreateOrUpdate operation. +// - options - KustoPoolDataConnectionsClientBeginDataConnectionValidationOptions contains the optional parameters for the KustoPoolDataConnectionsClient.BeginDataConnectionValidation +// method. func (client *KustoPoolDataConnectionsClient) BeginDataConnectionValidation(ctx context.Context, resourceGroupName string, workspaceName string, kustoPoolName string, databaseName string, parameters DataConnectionValidation, options *KustoPoolDataConnectionsClientBeginDataConnectionValidationOptions) (*runtime.Poller[KustoPoolDataConnectionsClientDataConnectionValidationResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.dataConnectionValidation(ctx, resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters, options) @@ -227,6 +232,7 @@ func (client *KustoPoolDataConnectionsClient) BeginDataConnectionValidation(ctx // DataConnectionValidation - Checks that the data connection parameters are valid. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview func (client *KustoPoolDataConnectionsClient) dataConnectionValidation(ctx context.Context, resourceGroupName string, workspaceName string, kustoPoolName string, databaseName string, parameters DataConnectionValidation, options *KustoPoolDataConnectionsClientBeginDataConnectionValidationOptions) (*http.Response, error) { req, err := client.dataConnectionValidationCreateRequest(ctx, resourceGroupName, workspaceName, kustoPoolName, databaseName, parameters, options) @@ -279,14 +285,15 @@ func (client *KustoPoolDataConnectionsClient) dataConnectionValidationCreateRequ // BeginDelete - Deletes the data connection with the given name. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// kustoPoolName - The name of the Kusto pool. -// databaseName - The name of the database in the Kusto pool. -// dataConnectionName - The name of the data connection. -// options - KustoPoolDataConnectionsClientBeginDeleteOptions contains the optional parameters for the KustoPoolDataConnectionsClient.BeginDelete -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - kustoPoolName - The name of the Kusto pool. +// - databaseName - The name of the database in the Kusto pool. +// - dataConnectionName - The name of the data connection. +// - options - KustoPoolDataConnectionsClientBeginDeleteOptions contains the optional parameters for the KustoPoolDataConnectionsClient.BeginDelete +// method. func (client *KustoPoolDataConnectionsClient) BeginDelete(ctx context.Context, resourceGroupName string, workspaceName string, kustoPoolName string, databaseName string, dataConnectionName string, options *KustoPoolDataConnectionsClientBeginDeleteOptions) (*runtime.Poller[KustoPoolDataConnectionsClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, options) @@ -301,6 +308,7 @@ func (client *KustoPoolDataConnectionsClient) BeginDelete(ctx context.Context, r // Delete - Deletes the data connection with the given name. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview func (client *KustoPoolDataConnectionsClient) deleteOperation(ctx context.Context, resourceGroupName string, workspaceName string, kustoPoolName string, databaseName string, dataConnectionName string, options *KustoPoolDataConnectionsClientBeginDeleteOptions) (*http.Response, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, options) @@ -357,14 +365,15 @@ func (client *KustoPoolDataConnectionsClient) deleteCreateRequest(ctx context.Co // Get - Returns a data connection. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// kustoPoolName - The name of the Kusto pool. -// databaseName - The name of the database in the Kusto pool. -// dataConnectionName - The name of the data connection. -// options - KustoPoolDataConnectionsClientGetOptions contains the optional parameters for the KustoPoolDataConnectionsClient.Get -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - kustoPoolName - The name of the Kusto pool. +// - databaseName - The name of the database in the Kusto pool. +// - dataConnectionName - The name of the data connection. +// - options - KustoPoolDataConnectionsClientGetOptions contains the optional parameters for the KustoPoolDataConnectionsClient.Get +// method. func (client *KustoPoolDataConnectionsClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, kustoPoolName string, databaseName string, dataConnectionName string, options *KustoPoolDataConnectionsClientGetOptions) (KustoPoolDataConnectionsClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, options) if err != nil { @@ -428,14 +437,14 @@ func (client *KustoPoolDataConnectionsClient) getHandleResponse(resp *http.Respo } // NewListByDatabasePager - Returns the list of data connections of the given Kusto pool database. -// If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// kustoPoolName - The name of the Kusto pool. -// databaseName - The name of the database in the Kusto pool. -// options - KustoPoolDataConnectionsClientListByDatabaseOptions contains the optional parameters for the KustoPoolDataConnectionsClient.ListByDatabase -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - kustoPoolName - The name of the Kusto pool. +// - databaseName - The name of the database in the Kusto pool. +// - options - KustoPoolDataConnectionsClientListByDatabaseOptions contains the optional parameters for the KustoPoolDataConnectionsClient.NewListByDatabasePager +// method. func (client *KustoPoolDataConnectionsClient) NewListByDatabasePager(resourceGroupName string, workspaceName string, kustoPoolName string, databaseName string, options *KustoPoolDataConnectionsClientListByDatabaseOptions) *runtime.Pager[KustoPoolDataConnectionsClientListByDatabaseResponse] { return runtime.NewPager(runtime.PagingHandler[KustoPoolDataConnectionsClientListByDatabaseResponse]{ More: func(page KustoPoolDataConnectionsClientListByDatabaseResponse) bool { @@ -503,15 +512,16 @@ func (client *KustoPoolDataConnectionsClient) listByDatabaseHandleResponse(resp // BeginUpdate - Updates a data connection. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// kustoPoolName - The name of the Kusto pool. -// databaseName - The name of the database in the Kusto pool. -// dataConnectionName - The name of the data connection. -// parameters - The data connection parameters supplied to the Update operation. -// options - KustoPoolDataConnectionsClientBeginUpdateOptions contains the optional parameters for the KustoPoolDataConnectionsClient.BeginUpdate -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - kustoPoolName - The name of the Kusto pool. +// - databaseName - The name of the database in the Kusto pool. +// - dataConnectionName - The name of the data connection. +// - parameters - The data connection parameters supplied to the Update operation. +// - options - KustoPoolDataConnectionsClientBeginUpdateOptions contains the optional parameters for the KustoPoolDataConnectionsClient.BeginUpdate +// method. func (client *KustoPoolDataConnectionsClient) BeginUpdate(ctx context.Context, resourceGroupName string, workspaceName string, kustoPoolName string, databaseName string, dataConnectionName string, parameters DataConnectionClassification, options *KustoPoolDataConnectionsClientBeginUpdateOptions) (*runtime.Poller[KustoPoolDataConnectionsClientUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.update(ctx, resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, parameters, options) @@ -526,6 +536,7 @@ func (client *KustoPoolDataConnectionsClient) BeginUpdate(ctx context.Context, r // Update - Updates a data connection. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview func (client *KustoPoolDataConnectionsClient) update(ctx context.Context, resourceGroupName string, workspaceName string, kustoPoolName string, databaseName string, dataConnectionName string, parameters DataConnectionClassification, options *KustoPoolDataConnectionsClientBeginUpdateOptions) (*http.Response, error) { req, err := client.updateCreateRequest(ctx, resourceGroupName, workspaceName, kustoPoolName, databaseName, dataConnectionName, parameters, options) diff --git a/sdk/resourcemanager/synapse/armsynapse/kustopooldataconnections_client_example_test.go b/sdk/resourcemanager/synapse/armsynapse/kustopooldataconnections_client_example_test.go new file mode 100644 index 000000000000..af50af1c6342 --- /dev/null +++ b/sdk/resourcemanager/synapse/armsynapse/kustopooldataconnections_client_example_test.go @@ -0,0 +1,278 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armsynapse_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolDataConnectionsCheckNameAvailability.json +func ExampleKustoPoolDataConnectionsClient_CheckNameAvailability() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewKustoPoolDataConnectionsClient("12345678-1234-1234-1234-123456789098", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.CheckNameAvailability(ctx, "kustorptest", "synapseWorkspaceName", "kustoclusterrptest4", "Kustodatabase8", armsynapse.DataConnectionCheckNameRequest{ + Name: to.Ptr("DataConnections8"), + Type: to.Ptr("Microsoft.Synapse/workspaces/kustoPools/databases/dataConnections"), + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.CheckNameResult = armsynapse.CheckNameResult{ + // Name: to.Ptr("DataConnections8"), + // Message: to.Ptr("Name 'DataConnections8' is already taken. Please specify a different name."), + // NameAvailable: to.Ptr(false), + // Reason: to.Ptr(armsynapse.ReasonAlreadyExists), + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolDataConnectionValidation.json +func ExampleKustoPoolDataConnectionsClient_BeginDataConnectionValidation() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewKustoPoolDataConnectionsClient("12345678-1234-1234-1234-123456789098", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginDataConnectionValidation(ctx, "kustorptest", "kustorptest", "kustoclusterrptest4", "KustoDatabase8", armsynapse.DataConnectionValidation{ + DataConnectionName: to.Ptr("DataConnections8"), + Properties: &armsynapse.EventHubDataConnection{ + Kind: to.Ptr(armsynapse.DataConnectionKindEventHub), + }, + }, 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.DataConnectionValidationListResult = armsynapse.DataConnectionValidationListResult{ + // Value: []*armsynapse.DataConnectionValidationResult{ + // { + // ErrorMessage: to.Ptr("Event hub's namespace does not exist"), + // }, + // { + // ErrorMessage: to.Ptr("Database does not exist"), + // }}, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolDataConnectionsListByDatabase.json +func ExampleKustoPoolDataConnectionsClient_NewListByDatabasePager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewKustoPoolDataConnectionsClient("12345678-1234-1234-1234-123456789098", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListByDatabasePager("kustorptest", "synapseWorkspaceName", "kustoclusterrptest4", "KustoDatabase8", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.DataConnectionListResult = armsynapse.DataConnectionListResult{ + // Value: []armsynapse.DataConnectionClassification{ + // &armsynapse.EventHubDataConnection{ + // Name: to.Ptr("KustoClusterRPTest4/KustoDatabase8/KustoDataConnection8"), + // Type: to.Ptr("Microsoft.Kusto/Clusters/Databases/DataConnections"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Synapse/workspaces/synapseWorkspaceName/kustopools/KustoClusterRPTest4/Databases/KustoDatabase8/DataConnections/KustoDataConnection8"), + // Kind: to.Ptr(armsynapse.DataConnectionKindEventHub), + // Location: to.Ptr("westus"), + // Properties: &armsynapse.EventHubConnectionProperties{ + // ConsumerGroup: to.Ptr("testConsumerGroup1"), + // EventHubResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest1"), + // }, + // }, + // &armsynapse.EventHubDataConnection{ + // Name: to.Ptr("KustoClusterRPTest4/KustoDatabase9/KustoDataConnection9"), + // Type: to.Ptr("Microsoft.Kusto/Clusters/Databases/DataConnections"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Synapse/workspaces/synapseWorkspaceName/kustopools/KustoClusterRPTest4/Databases/KustoDatabase9/DataConnections/KustoDataConnection9"), + // Kind: to.Ptr(armsynapse.DataConnectionKindEventHub), + // Location: to.Ptr("westus"), + // Properties: &armsynapse.EventHubConnectionProperties{ + // ConsumerGroup: to.Ptr("testConsumerGroup2"), + // EventHubResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns2/eventhubs/eventhubTest2"), + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolDataConnectionsGet.json +func ExampleKustoPoolDataConnectionsClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewKustoPoolDataConnectionsClient("12345678-1234-1234-1234-123456789098", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "kustorptest", "synapseWorkspaceName", "kustoclusterrptest4", "KustoDatabase8", "DataConnections8", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res = armsynapse.KustoPoolDataConnectionsClientGetResponse{ + // DataConnectionClassification: &armsynapse.EventHubDataConnection{ + // Name: to.Ptr("KustoClusterRPTest4/KustoDatabase8/DataConnections8"), + // Type: to.Ptr("Microsoft.Kusto/Clusters/Databases/DataConnections"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Synapse/workspaces/synapseWorkspaceName/kustopools/KustoClusterRPTest4/Databases/KustoDatabase8/DataConnections/DataConnections8"), + // Kind: to.Ptr(armsynapse.DataConnectionKindEventHub), + // Location: to.Ptr("westus"), + // Properties: &armsynapse.EventHubConnectionProperties{ + // ConsumerGroup: to.Ptr("testConsumerGroup1"), + // EventHubResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest1"), + // }, + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolDataConnectionsCreateOrUpdate.json +func ExampleKustoPoolDataConnectionsClient_BeginCreateOrUpdate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewKustoPoolDataConnectionsClient("12345678-1234-1234-1234-123456789098", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreateOrUpdate(ctx, "kustorptest", "synapseWorkspaceName", "kustoclusterrptest4", "KustoDatabase8", "DataConnections8", &armsynapse.EventHubDataConnection{ + Kind: to.Ptr(armsynapse.DataConnectionKindEventHub), + Location: to.Ptr("westus"), + Properties: &armsynapse.EventHubConnectionProperties{ + ConsumerGroup: to.Ptr("testConsumerGroup1"), + EventHubResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest1"), + }, + }, 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 = armsynapse.KustoPoolDataConnectionsClientCreateOrUpdateResponse{ + // DataConnectionClassification: &armsynapse.EventHubDataConnection{ + // Name: to.Ptr("KustoClusterRPTest4/KustoDatabase8/DataConnections8"), + // Type: to.Ptr("Microsoft.Kusto/Clusters/Databases/DataConnections"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Synapse/workspaces/synapseWorkspaceName/kustopools/KustoClusterRPTest4/Databases/KustoDatabase8/DataConnections/DataConnections8"), + // Kind: to.Ptr(armsynapse.DataConnectionKindEventHub), + // Location: to.Ptr("westus"), + // Properties: &armsynapse.EventHubConnectionProperties{ + // ConsumerGroup: to.Ptr("testConsumerGroup1"), + // EventHubResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest1"), + // }, + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolDataConnectionsUpdate.json +func ExampleKustoPoolDataConnectionsClient_BeginUpdate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewKustoPoolDataConnectionsClient("12345678-1234-1234-1234-123456789098", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginUpdate(ctx, "kustorptest", "synapseWorkspaceName", "kustoclusterrptest4", "KustoDatabase8", "DataConnections8", &armsynapse.EventHubDataConnection{ + Kind: to.Ptr(armsynapse.DataConnectionKindEventHub), + Location: to.Ptr("westus"), + Properties: &armsynapse.EventHubConnectionProperties{ + ConsumerGroup: to.Ptr("testConsumerGroup1"), + EventHubResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest1"), + }, + }, 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 = armsynapse.KustoPoolDataConnectionsClientUpdateResponse{ + // DataConnectionClassification: &armsynapse.EventHubDataConnection{ + // Name: to.Ptr("KustoClusterRPTest4/KustoDatabase8/DataConnections8"), + // Type: to.Ptr("Microsoft.Kusto/Clusters/Databases/DataConnections"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Synapse/workspaces/synapseWorkspaceName/kustopools/KustoClusterRPTest4/Databases/KustoDatabase8/DataConnections/DataConnections8"), + // Kind: to.Ptr(armsynapse.DataConnectionKindEventHub), + // Location: to.Ptr("westus"), + // Properties: &armsynapse.EventHubConnectionProperties{ + // ConsumerGroup: to.Ptr("testConsumerGroup1"), + // EventHubResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest1"), + // }, + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolDataConnectionsDelete.json +func ExampleKustoPoolDataConnectionsClient_BeginDelete() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewKustoPoolDataConnectionsClient("12345678-1234-1234-1234-123456789098", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginDelete(ctx, "kustorptest", "synapseWorkspaceName", "kustoclusterrptest4", "KustoDatabase8", "kustoeventhubconnection1", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + _, err = poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } +} diff --git a/sdk/resourcemanager/synapse/armsynapse/zz_generated_kustopoolprincipalassignments_client.go b/sdk/resourcemanager/synapse/armsynapse/kustopoolprincipalassignments_client.go similarity index 88% rename from sdk/resourcemanager/synapse/armsynapse/zz_generated_kustopoolprincipalassignments_client.go rename to sdk/resourcemanager/synapse/armsynapse/kustopoolprincipalassignments_client.go index 09ded771b7e4..462d6079a10e 100644 --- a/sdk/resourcemanager/synapse/armsynapse/zz_generated_kustopoolprincipalassignments_client.go +++ b/sdk/resourcemanager/synapse/armsynapse/kustopoolprincipalassignments_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse @@ -31,9 +32,9 @@ type KustoPoolPrincipalAssignmentsClient struct { } // NewKustoPoolPrincipalAssignmentsClient creates a new instance of KustoPoolPrincipalAssignmentsClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewKustoPoolPrincipalAssignmentsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*KustoPoolPrincipalAssignmentsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,13 +57,14 @@ func NewKustoPoolPrincipalAssignmentsClient(subscriptionID string, credential az // CheckNameAvailability - Checks that the principal assignment name is valid and is not already in use. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview -// workspaceName - The name of the workspace. -// kustoPoolName - The name of the Kusto pool. -// resourceGroupName - The name of the resource group. The name is case insensitive. -// principalAssignmentName - The name of the principal assignment. -// options - KustoPoolPrincipalAssignmentsClientCheckNameAvailabilityOptions contains the optional parameters for the KustoPoolPrincipalAssignmentsClient.CheckNameAvailability -// method. +// - workspaceName - The name of the workspace. +// - kustoPoolName - The name of the Kusto pool. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - principalAssignmentName - The name of the principal assignment. +// - options - KustoPoolPrincipalAssignmentsClientCheckNameAvailabilityOptions contains the optional parameters for the KustoPoolPrincipalAssignmentsClient.CheckNameAvailability +// method. func (client *KustoPoolPrincipalAssignmentsClient) CheckNameAvailability(ctx context.Context, workspaceName string, kustoPoolName string, resourceGroupName string, principalAssignmentName ClusterPrincipalAssignmentCheckNameRequest, options *KustoPoolPrincipalAssignmentsClientCheckNameAvailabilityOptions) (KustoPoolPrincipalAssignmentsClientCheckNameAvailabilityResponse, error) { req, err := client.checkNameAvailabilityCreateRequest(ctx, workspaceName, kustoPoolName, resourceGroupName, principalAssignmentName, options) if err != nil { @@ -119,14 +121,15 @@ func (client *KustoPoolPrincipalAssignmentsClient) checkNameAvailabilityHandleRe // BeginCreateOrUpdate - Create a Kusto pool principalAssignment. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview -// workspaceName - The name of the workspace. -// kustoPoolName - The name of the Kusto pool. -// principalAssignmentName - The name of the Kusto principalAssignment. -// resourceGroupName - The name of the resource group. The name is case insensitive. -// parameters - The Kusto pool principalAssignment's parameters supplied for the operation. -// options - KustoPoolPrincipalAssignmentsClientBeginCreateOrUpdateOptions contains the optional parameters for the KustoPoolPrincipalAssignmentsClient.BeginCreateOrUpdate -// method. +// - workspaceName - The name of the workspace. +// - kustoPoolName - The name of the Kusto pool. +// - principalAssignmentName - The name of the Kusto principalAssignment. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - parameters - The Kusto pool principalAssignment's parameters supplied for the operation. +// - options - KustoPoolPrincipalAssignmentsClientBeginCreateOrUpdateOptions contains the optional parameters for the KustoPoolPrincipalAssignmentsClient.BeginCreateOrUpdate +// method. func (client *KustoPoolPrincipalAssignmentsClient) BeginCreateOrUpdate(ctx context.Context, workspaceName string, kustoPoolName string, principalAssignmentName string, resourceGroupName string, parameters ClusterPrincipalAssignment, options *KustoPoolPrincipalAssignmentsClientBeginCreateOrUpdateOptions) (*runtime.Poller[KustoPoolPrincipalAssignmentsClientCreateOrUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createOrUpdate(ctx, workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName, parameters, options) @@ -141,6 +144,7 @@ func (client *KustoPoolPrincipalAssignmentsClient) BeginCreateOrUpdate(ctx conte // CreateOrUpdate - Create a Kusto pool principalAssignment. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview func (client *KustoPoolPrincipalAssignmentsClient) createOrUpdate(ctx context.Context, workspaceName string, kustoPoolName string, principalAssignmentName string, resourceGroupName string, parameters ClusterPrincipalAssignment, options *KustoPoolPrincipalAssignmentsClientBeginCreateOrUpdateOptions) (*http.Response, error) { req, err := client.createOrUpdateCreateRequest(ctx, workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName, parameters, options) @@ -193,13 +197,14 @@ func (client *KustoPoolPrincipalAssignmentsClient) createOrUpdateCreateRequest(c // BeginDelete - Deletes a Kusto pool principalAssignment. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview -// workspaceName - The name of the workspace. -// kustoPoolName - The name of the Kusto pool. -// principalAssignmentName - The name of the Kusto principalAssignment. -// resourceGroupName - The name of the resource group. The name is case insensitive. -// options - KustoPoolPrincipalAssignmentsClientBeginDeleteOptions contains the optional parameters for the KustoPoolPrincipalAssignmentsClient.BeginDelete -// method. +// - workspaceName - The name of the workspace. +// - kustoPoolName - The name of the Kusto pool. +// - principalAssignmentName - The name of the Kusto principalAssignment. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - options - KustoPoolPrincipalAssignmentsClientBeginDeleteOptions contains the optional parameters for the KustoPoolPrincipalAssignmentsClient.BeginDelete +// method. func (client *KustoPoolPrincipalAssignmentsClient) BeginDelete(ctx context.Context, workspaceName string, kustoPoolName string, principalAssignmentName string, resourceGroupName string, options *KustoPoolPrincipalAssignmentsClientBeginDeleteOptions) (*runtime.Poller[KustoPoolPrincipalAssignmentsClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName, options) @@ -214,6 +219,7 @@ func (client *KustoPoolPrincipalAssignmentsClient) BeginDelete(ctx context.Conte // Delete - Deletes a Kusto pool principalAssignment. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview func (client *KustoPoolPrincipalAssignmentsClient) deleteOperation(ctx context.Context, workspaceName string, kustoPoolName string, principalAssignmentName string, resourceGroupName string, options *KustoPoolPrincipalAssignmentsClientBeginDeleteOptions) (*http.Response, error) { req, err := client.deleteCreateRequest(ctx, workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName, options) @@ -266,13 +272,14 @@ func (client *KustoPoolPrincipalAssignmentsClient) deleteCreateRequest(ctx conte // Get - Gets a Kusto pool principalAssignment. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview -// workspaceName - The name of the workspace. -// kustoPoolName - The name of the Kusto pool. -// principalAssignmentName - The name of the Kusto principalAssignment. -// resourceGroupName - The name of the resource group. The name is case insensitive. -// options - KustoPoolPrincipalAssignmentsClientGetOptions contains the optional parameters for the KustoPoolPrincipalAssignmentsClient.Get -// method. +// - workspaceName - The name of the workspace. +// - kustoPoolName - The name of the Kusto pool. +// - principalAssignmentName - The name of the Kusto principalAssignment. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - options - KustoPoolPrincipalAssignmentsClientGetOptions contains the optional parameters for the KustoPoolPrincipalAssignmentsClient.Get +// method. func (client *KustoPoolPrincipalAssignmentsClient) Get(ctx context.Context, workspaceName string, kustoPoolName string, principalAssignmentName string, resourceGroupName string, options *KustoPoolPrincipalAssignmentsClientGetOptions) (KustoPoolPrincipalAssignmentsClientGetResponse, error) { req, err := client.getCreateRequest(ctx, workspaceName, kustoPoolName, principalAssignmentName, resourceGroupName, options) if err != nil { @@ -332,13 +339,13 @@ func (client *KustoPoolPrincipalAssignmentsClient) getHandleResponse(resp *http. } // NewListPager - Lists all Kusto pool principalAssignments. -// If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview -// workspaceName - The name of the workspace. -// kustoPoolName - The name of the Kusto pool. -// resourceGroupName - The name of the resource group. The name is case insensitive. -// options - KustoPoolPrincipalAssignmentsClientListOptions contains the optional parameters for the KustoPoolPrincipalAssignmentsClient.List -// method. +// - workspaceName - The name of the workspace. +// - kustoPoolName - The name of the Kusto pool. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - options - KustoPoolPrincipalAssignmentsClientListOptions contains the optional parameters for the KustoPoolPrincipalAssignmentsClient.NewListPager +// method. func (client *KustoPoolPrincipalAssignmentsClient) NewListPager(workspaceName string, kustoPoolName string, resourceGroupName string, options *KustoPoolPrincipalAssignmentsClientListOptions) *runtime.Pager[KustoPoolPrincipalAssignmentsClientListResponse] { return runtime.NewPager(runtime.PagingHandler[KustoPoolPrincipalAssignmentsClientListResponse]{ More: func(page KustoPoolPrincipalAssignmentsClientListResponse) bool { diff --git a/sdk/resourcemanager/synapse/armsynapse/kustopoolprincipalassignments_client_example_test.go b/sdk/resourcemanager/synapse/armsynapse/kustopoolprincipalassignments_client_example_test.go new file mode 100644 index 000000000000..32bbed5c559c --- /dev/null +++ b/sdk/resourcemanager/synapse/armsynapse/kustopoolprincipalassignments_client_example_test.go @@ -0,0 +1,207 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armsynapse_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolPrincipalAssignmentsCheckNameAvailability.json +func ExampleKustoPoolPrincipalAssignmentsClient_CheckNameAvailability() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewKustoPoolPrincipalAssignmentsClient("12345678-1234-1234-1234-123456789098", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.CheckNameAvailability(ctx, "synapseWorkspaceName", "kustoclusterrptest4", "kustorptest", armsynapse.ClusterPrincipalAssignmentCheckNameRequest{ + Name: to.Ptr("kustoprincipal1"), + Type: to.Ptr("Microsoft.Synapse/workspaces/kustoPools/principalAssignments"), + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.CheckNameResult = armsynapse.CheckNameResult{ + // Name: to.Ptr("kustoprincipal1"), + // Message: to.Ptr("Name 'kustoprincipal1' is already taken. Please specify a different name"), + // NameAvailable: to.Ptr(false), + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolPrincipalAssignmentsList.json +func ExampleKustoPoolPrincipalAssignmentsClient_NewListPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewKustoPoolPrincipalAssignmentsClient("12345678-1234-1234-1234-123456789098", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListPager("synapseWorkspaceName", "kustoclusterrptest4", "kustorptest", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.ClusterPrincipalAssignmentListResult = armsynapse.ClusterPrincipalAssignmentListResult{ + // Value: []*armsynapse.ClusterPrincipalAssignment{ + // { + // Name: to.Ptr("synapseWorkspaceName/kustoclusterrptest4/kustoprincipal1"), + // Type: to.Ptr("Microsoft.Synapse/Workspaces/KustoPools/PrincipalAssignments"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Synapse/workspaces/synapseWorkspaceName/kustoPools/kustoclusterrptest4/PrincipalAssignments/kustoprincipal1"), + // Properties: &armsynapse.ClusterPrincipalProperties{ + // AADObjectID: to.Ptr("98765432-1234-1234-1234-123456789123"), + // PrincipalID: to.Ptr("87654321-1234-1234-1234-123456789123"), + // PrincipalName: to.Ptr("TestApp"), + // PrincipalType: to.Ptr(armsynapse.PrincipalTypeApp), + // ProvisioningState: to.Ptr(armsynapse.ResourceProvisioningStateSucceeded), + // Role: to.Ptr(armsynapse.ClusterPrincipalRole("Admin")), + // TenantID: to.Ptr("12345678-1234-1234-1234-123456789123"), + // TenantName: to.Ptr("tenantName"), + // }, + // }, + // { + // Name: to.Ptr("synapseWorkspaceName/kustoclusterrptest4/kustoprincipal2"), + // Type: to.Ptr("Microsoft.Synapse/Workspaces/KustoPools/PrincipalAssignments"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Synapse/workspaces/synapseWorkspaceName/kustoPools/kustoclusterrptest4/PrincipalAssignments/kustoprincipal2"), + // Properties: &armsynapse.ClusterPrincipalProperties{ + // AADObjectID: to.Ptr("98765432-1234-1234-1234-123456789123"), + // PrincipalID: to.Ptr("87654321-1234-1234-1234-123456789123"), + // PrincipalName: to.Ptr("TestApp"), + // PrincipalType: to.Ptr(armsynapse.PrincipalTypeApp), + // ProvisioningState: to.Ptr(armsynapse.ResourceProvisioningStateSucceeded), + // Role: to.Ptr(armsynapse.ClusterPrincipalRole("Admin")), + // TenantID: to.Ptr("12345678-1234-1234-1234-123456789123"), + // TenantName: to.Ptr("tenantName"), + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolPrincipalAssignmentsGet.json +func ExampleKustoPoolPrincipalAssignmentsClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewKustoPoolPrincipalAssignmentsClient("12345678-1234-1234-1234-123456789098", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "synapseWorkspaceName", "kustoclusterrptest4", "kustoprincipal1", "kustorptest", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.ClusterPrincipalAssignment = armsynapse.ClusterPrincipalAssignment{ + // Name: to.Ptr("synapseWorkspaceName/kustoclusterrptest4/kustoprincipal1"), + // Type: to.Ptr("Microsoft.Synapse/Workspaces/KustoPools/PrincipalAssignments"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Synapse/workspaces/synapseWorkspaceName/kustoPools/kustoclusterrptest4/PrincipalAssignments/kustoprincipal1"), + // Properties: &armsynapse.ClusterPrincipalProperties{ + // AADObjectID: to.Ptr("98765432-1234-1234-1234-123456789123"), + // PrincipalID: to.Ptr("87654321-1234-1234-1234-123456789123"), + // PrincipalName: to.Ptr("TestApp"), + // PrincipalType: to.Ptr(armsynapse.PrincipalTypeApp), + // ProvisioningState: to.Ptr(armsynapse.ResourceProvisioningStateSucceeded), + // Role: to.Ptr(armsynapse.ClusterPrincipalRole("Admin")), + // TenantID: to.Ptr("12345678-1234-1234-1234-123456789123"), + // TenantName: to.Ptr("tenantName"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolPrincipalAssignmentsCreateOrUpdate.json +func ExampleKustoPoolPrincipalAssignmentsClient_BeginCreateOrUpdate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewKustoPoolPrincipalAssignmentsClient("12345678-1234-1234-1234-123456789098", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreateOrUpdate(ctx, "synapseWorkspaceName", "kustoclusterrptest4", "kustoprincipal1", "kustorptest", armsynapse.ClusterPrincipalAssignment{ + Properties: &armsynapse.ClusterPrincipalProperties{ + PrincipalID: to.Ptr("87654321-1234-1234-1234-123456789123"), + PrincipalType: to.Ptr(armsynapse.PrincipalTypeApp), + Role: to.Ptr(armsynapse.ClusterPrincipalRoleAllDatabasesAdmin), + TenantID: to.Ptr("12345678-1234-1234-1234-123456789123"), + }, + }, 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.ClusterPrincipalAssignment = armsynapse.ClusterPrincipalAssignment{ + // Name: to.Ptr("synapseWorkspaceName/kustoclusterrptest4/kustoprincipal1"), + // Type: to.Ptr("Microsoft.Synapse/Workspaces/KustoPools/PrincipalAssignments"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Synapse/workspaces/synapseWorkspaceName/kustoPools/kustoclusterrptest4/PrincipalAssignments/kustoprincipal1"), + // Properties: &armsynapse.ClusterPrincipalProperties{ + // AADObjectID: to.Ptr("98765432-1234-1234-1234-123456789123"), + // PrincipalID: to.Ptr("87654321-1234-1234-1234-123456789123"), + // PrincipalName: to.Ptr("TestApp"), + // PrincipalType: to.Ptr(armsynapse.PrincipalTypeApp), + // ProvisioningState: to.Ptr(armsynapse.ResourceProvisioningStateSucceeded), + // Role: to.Ptr(armsynapse.ClusterPrincipalRole("Admin")), + // TenantID: to.Ptr("12345678-1234-1234-1234-123456789123"), + // TenantName: to.Ptr("tenantName"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolPrincipalAssignmentsDelete.json +func ExampleKustoPoolPrincipalAssignmentsClient_BeginDelete() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewKustoPoolPrincipalAssignmentsClient("12345678-1234-1234-1234-123456789098", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginDelete(ctx, "synapseWorkspaceName", "kustoclusterrptest4", "kustoprincipal1", "kustorptest", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + _, err = poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } +} diff --git a/sdk/resourcemanager/synapse/armsynapse/kustopoolprivatelinkresources_client.go b/sdk/resourcemanager/synapse/armsynapse/kustopoolprivatelinkresources_client.go new file mode 100644 index 000000000000..d80086f0d7ee --- /dev/null +++ b/sdk/resourcemanager/synapse/armsynapse/kustopoolprivatelinkresources_client.go @@ -0,0 +1,125 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armsynapse + +import ( + "context" + "errors" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "net/http" + "net/url" + "strings" +) + +// KustoPoolPrivateLinkResourcesClient contains the methods for the KustoPoolPrivateLinkResources group. +// Don't use this type directly, use NewKustoPoolPrivateLinkResourcesClient() instead. +type KustoPoolPrivateLinkResourcesClient struct { + host string + subscriptionID string + pl runtime.Pipeline +} + +// NewKustoPoolPrivateLinkResourcesClient creates a new instance of KustoPoolPrivateLinkResourcesClient with the specified values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. +func NewKustoPoolPrivateLinkResourcesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*KustoPoolPrivateLinkResourcesClient, error) { + if options == nil { + options = &arm.ClientOptions{} + } + ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err + } + client := &KustoPoolPrivateLinkResourcesClient{ + subscriptionID: subscriptionID, + host: ep, + pl: pl, + } + return client, nil +} + +// NewListPager - Lists all Kusto pool PrivateLinkResources. +// +// Generated from API version 2021-06-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - kustoPoolName - The name of the Kusto pool. +// - options - KustoPoolPrivateLinkResourcesClientListOptions contains the optional parameters for the KustoPoolPrivateLinkResourcesClient.NewListPager +// method. +func (client *KustoPoolPrivateLinkResourcesClient) NewListPager(resourceGroupName string, workspaceName string, kustoPoolName string, options *KustoPoolPrivateLinkResourcesClientListOptions) *runtime.Pager[KustoPoolPrivateLinkResourcesClientListResponse] { + return runtime.NewPager(runtime.PagingHandler[KustoPoolPrivateLinkResourcesClientListResponse]{ + More: func(page KustoPoolPrivateLinkResourcesClientListResponse) bool { + return false + }, + Fetcher: func(ctx context.Context, page *KustoPoolPrivateLinkResourcesClientListResponse) (KustoPoolPrivateLinkResourcesClientListResponse, error) { + req, err := client.listCreateRequest(ctx, resourceGroupName, workspaceName, kustoPoolName, options) + if err != nil { + return KustoPoolPrivateLinkResourcesClientListResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return KustoPoolPrivateLinkResourcesClientListResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return KustoPoolPrivateLinkResourcesClientListResponse{}, runtime.NewResponseError(resp) + } + return client.listHandleResponse(resp) + }, + }) +} + +// listCreateRequest creates the List request. +func (client *KustoPoolPrivateLinkResourcesClient) listCreateRequest(ctx context.Context, resourceGroupName string, workspaceName string, kustoPoolName string, options *KustoPoolPrivateLinkResourcesClientListOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/privateLinkResources" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if workspaceName == "" { + return nil, errors.New("parameter workspaceName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{workspaceName}", url.PathEscape(workspaceName)) + if kustoPoolName == "" { + return nil, errors.New("parameter kustoPoolName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{kustoPoolName}", url.PathEscape(kustoPoolName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2021-06-01-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listHandleResponse handles the List response. +func (client *KustoPoolPrivateLinkResourcesClient) listHandleResponse(resp *http.Response) (KustoPoolPrivateLinkResourcesClientListResponse, error) { + result := KustoPoolPrivateLinkResourcesClientListResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.PrivateLinkResources); err != nil { + return KustoPoolPrivateLinkResourcesClientListResponse{}, err + } + return result, nil +} diff --git a/sdk/resourcemanager/synapse/armsynapse/kustopoolprivatelinkresources_client_example_test.go b/sdk/resourcemanager/synapse/armsynapse/kustopoolprivatelinkresources_client_example_test.go new file mode 100644 index 000000000000..1bef806e1412 --- /dev/null +++ b/sdk/resourcemanager/synapse/armsynapse/kustopoolprivatelinkresources_client_example_test.go @@ -0,0 +1,69 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armsynapse_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolPrivateLinkResourcesList.json +func ExampleKustoPoolPrivateLinkResourcesClient_NewListPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewKustoPoolPrivateLinkResourcesClient("7a587823-959d-4ad0-85bd-cf2a7cef436a", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListPager("DP-900", "synapse-ws-ebi-data", "dataexplorerpool900", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.PrivateLinkResources = armsynapse.PrivateLinkResources{ + // Value: []*armsynapse.KustoPoolPrivateLinkResources{ + // { + // Name: to.Ptr("synapseWorkspaceName/dataexplorerpool900/privateLinkResources"), + // Type: to.Ptr("Microsoft.Synapse/Workspaces/KustoPools/privateLinkResources"), + // ID: to.Ptr("/subscriptions/7a587823-959d-4ad0-85bd-cf2a7cef436a/resourceGroups/DP-900/providers/Microsoft.Synapse/workspaces/synapse-ws-ebi-data/kustoPools/dataexplorerpool900/privateLinkResources"), + // Properties: &armsynapse.PrivateLinkResourcesProperties{ + // GroupID: to.Ptr("aaaaa"), + // ProvisioningState: to.Ptr(armsynapse.ResourceProvisioningStateSucceeded), + // RequiredMembers: []*string{ + // to.Ptr("Engine"), + // to.Ptr("DataManagement"), + // to.Ptr("blob-ne3kstrldkustoCluster00"), + // to.Ptr("queue-ne3kstrldkustoCluster00"), + // to.Ptr("table-ne3kstrldkustoCluster00"), + // to.Ptr("blob-qmukstrldkustoCluster01"), + // to.Ptr("queue-qmukstrldkustoCluster01"), + // to.Ptr("table-qmukstrldkustoCluster01")}, + // RequiredZoneNames: []*string{ + // to.Ptr("privatelink.westus2.kusto.windows.net"), + // to.Ptr("privatelink.blob.core.windows.net"), + // to.Ptr("privatelink.queue.core.windows.net"), + // to.Ptr("privatelink.table.core.windows.net")}, + // }, + // }}, + // } + } +} diff --git a/sdk/resourcemanager/synapse/armsynapse/zz_generated_kustopools_client.go b/sdk/resourcemanager/synapse/armsynapse/kustopools_client.go similarity index 90% rename from sdk/resourcemanager/synapse/armsynapse/zz_generated_kustopools_client.go rename to sdk/resourcemanager/synapse/armsynapse/kustopools_client.go index 38ed14456f93..e0c1c6892424 100644 --- a/sdk/resourcemanager/synapse/armsynapse/zz_generated_kustopools_client.go +++ b/sdk/resourcemanager/synapse/armsynapse/kustopools_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse @@ -31,9 +32,9 @@ type KustoPoolsClient struct { } // NewKustoPoolsClient creates a new instance of KustoPoolsClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewKustoPoolsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*KustoPoolsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,13 +57,14 @@ func NewKustoPoolsClient(subscriptionID string, credential azcore.TokenCredentia // BeginAddLanguageExtensions - Add a list of language extensions that can run within KQL queries. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview -// workspaceName - The name of the workspace. -// kustoPoolName - The name of the Kusto pool. -// resourceGroupName - The name of the resource group. The name is case insensitive. -// languageExtensionsToAdd - The language extensions to add. -// options - KustoPoolsClientBeginAddLanguageExtensionsOptions contains the optional parameters for the KustoPoolsClient.BeginAddLanguageExtensions -// method. +// - workspaceName - The name of the workspace. +// - kustoPoolName - The name of the Kusto pool. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - languageExtensionsToAdd - The language extensions to add. +// - options - KustoPoolsClientBeginAddLanguageExtensionsOptions contains the optional parameters for the KustoPoolsClient.BeginAddLanguageExtensions +// method. func (client *KustoPoolsClient) BeginAddLanguageExtensions(ctx context.Context, workspaceName string, kustoPoolName string, resourceGroupName string, languageExtensionsToAdd LanguageExtensionsList, options *KustoPoolsClientBeginAddLanguageExtensionsOptions) (*runtime.Poller[KustoPoolsClientAddLanguageExtensionsResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.addLanguageExtensions(ctx, workspaceName, kustoPoolName, resourceGroupName, languageExtensionsToAdd, options) @@ -77,6 +79,7 @@ func (client *KustoPoolsClient) BeginAddLanguageExtensions(ctx context.Context, // AddLanguageExtensions - Add a list of language extensions that can run within KQL queries. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview func (client *KustoPoolsClient) addLanguageExtensions(ctx context.Context, workspaceName string, kustoPoolName string, resourceGroupName string, languageExtensionsToAdd LanguageExtensionsList, options *KustoPoolsClientBeginAddLanguageExtensionsOptions) (*http.Response, error) { req, err := client.addLanguageExtensionsCreateRequest(ctx, workspaceName, kustoPoolName, resourceGroupName, languageExtensionsToAdd, options) @@ -125,11 +128,12 @@ func (client *KustoPoolsClient) addLanguageExtensionsCreateRequest(ctx context.C // CheckNameAvailability - Checks that the kusto pool name is valid and is not already in use. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview -// location - The name of Azure region. -// kustoPoolName - The name of the cluster. -// options - KustoPoolsClientCheckNameAvailabilityOptions contains the optional parameters for the KustoPoolsClient.CheckNameAvailability -// method. +// - location - The name of Azure region. +// - kustoPoolName - The name of the cluster. +// - options - KustoPoolsClientCheckNameAvailabilityOptions contains the optional parameters for the KustoPoolsClient.CheckNameAvailability +// method. func (client *KustoPoolsClient) CheckNameAvailability(ctx context.Context, location string, kustoPoolName KustoPoolCheckNameRequest, options *KustoPoolsClientCheckNameAvailabilityOptions) (KustoPoolsClientCheckNameAvailabilityResponse, error) { req, err := client.checkNameAvailabilityCreateRequest(ctx, location, kustoPoolName, options) if err != nil { @@ -178,13 +182,14 @@ func (client *KustoPoolsClient) checkNameAvailabilityHandleResponse(resp *http.R // BeginCreateOrUpdate - Create or update a Kusto pool. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview -// workspaceName - The name of the workspace. -// resourceGroupName - The name of the resource group. The name is case insensitive. -// kustoPoolName - The name of the Kusto pool. -// parameters - The Kusto pool parameters supplied to the CreateOrUpdate operation. -// options - KustoPoolsClientBeginCreateOrUpdateOptions contains the optional parameters for the KustoPoolsClient.BeginCreateOrUpdate -// method. +// - workspaceName - The name of the workspace. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - kustoPoolName - The name of the Kusto pool. +// - parameters - The Kusto pool parameters supplied to the CreateOrUpdate operation. +// - options - KustoPoolsClientBeginCreateOrUpdateOptions contains the optional parameters for the KustoPoolsClient.BeginCreateOrUpdate +// method. func (client *KustoPoolsClient) BeginCreateOrUpdate(ctx context.Context, workspaceName string, resourceGroupName string, kustoPoolName string, parameters KustoPool, options *KustoPoolsClientBeginCreateOrUpdateOptions) (*runtime.Poller[KustoPoolsClientCreateOrUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createOrUpdate(ctx, workspaceName, resourceGroupName, kustoPoolName, parameters, options) @@ -199,6 +204,7 @@ func (client *KustoPoolsClient) BeginCreateOrUpdate(ctx context.Context, workspa // CreateOrUpdate - Create or update a Kusto pool. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview func (client *KustoPoolsClient) createOrUpdate(ctx context.Context, workspaceName string, resourceGroupName string, kustoPoolName string, parameters KustoPool, options *KustoPoolsClientBeginCreateOrUpdateOptions) (*http.Response, error) { req, err := client.createOrUpdateCreateRequest(ctx, workspaceName, resourceGroupName, kustoPoolName, parameters, options) @@ -253,11 +259,12 @@ func (client *KustoPoolsClient) createOrUpdateCreateRequest(ctx context.Context, // BeginDelete - Deletes a Kusto pool. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview -// workspaceName - The name of the workspace. -// resourceGroupName - The name of the resource group. The name is case insensitive. -// kustoPoolName - The name of the Kusto pool. -// options - KustoPoolsClientBeginDeleteOptions contains the optional parameters for the KustoPoolsClient.BeginDelete method. +// - workspaceName - The name of the workspace. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - kustoPoolName - The name of the Kusto pool. +// - options - KustoPoolsClientBeginDeleteOptions contains the optional parameters for the KustoPoolsClient.BeginDelete method. func (client *KustoPoolsClient) BeginDelete(ctx context.Context, workspaceName string, resourceGroupName string, kustoPoolName string, options *KustoPoolsClientBeginDeleteOptions) (*runtime.Poller[KustoPoolsClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, workspaceName, resourceGroupName, kustoPoolName, options) @@ -272,6 +279,7 @@ func (client *KustoPoolsClient) BeginDelete(ctx context.Context, workspaceName s // Delete - Deletes a Kusto pool. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview func (client *KustoPoolsClient) deleteOperation(ctx context.Context, workspaceName string, resourceGroupName string, kustoPoolName string, options *KustoPoolsClientBeginDeleteOptions) (*http.Response, error) { req, err := client.deleteCreateRequest(ctx, workspaceName, resourceGroupName, kustoPoolName, options) @@ -320,13 +328,14 @@ func (client *KustoPoolsClient) deleteCreateRequest(ctx context.Context, workspa // BeginDetachFollowerDatabases - Detaches all followers of a database owned by this Kusto Pool. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview -// workspaceName - The name of the workspace. -// kustoPoolName - The name of the Kusto pool. -// resourceGroupName - The name of the resource group. The name is case insensitive. -// followerDatabaseToRemove - The follower databases properties to remove. -// options - KustoPoolsClientBeginDetachFollowerDatabasesOptions contains the optional parameters for the KustoPoolsClient.BeginDetachFollowerDatabases -// method. +// - workspaceName - The name of the workspace. +// - kustoPoolName - The name of the Kusto pool. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - followerDatabaseToRemove - The follower databases properties to remove. +// - options - KustoPoolsClientBeginDetachFollowerDatabasesOptions contains the optional parameters for the KustoPoolsClient.BeginDetachFollowerDatabases +// method. func (client *KustoPoolsClient) BeginDetachFollowerDatabases(ctx context.Context, workspaceName string, kustoPoolName string, resourceGroupName string, followerDatabaseToRemove FollowerDatabaseDefinition, options *KustoPoolsClientBeginDetachFollowerDatabasesOptions) (*runtime.Poller[KustoPoolsClientDetachFollowerDatabasesResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.detachFollowerDatabases(ctx, workspaceName, kustoPoolName, resourceGroupName, followerDatabaseToRemove, options) @@ -341,6 +350,7 @@ func (client *KustoPoolsClient) BeginDetachFollowerDatabases(ctx context.Context // DetachFollowerDatabases - Detaches all followers of a database owned by this Kusto Pool. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview func (client *KustoPoolsClient) detachFollowerDatabases(ctx context.Context, workspaceName string, kustoPoolName string, resourceGroupName string, followerDatabaseToRemove FollowerDatabaseDefinition, options *KustoPoolsClientBeginDetachFollowerDatabasesOptions) (*http.Response, error) { req, err := client.detachFollowerDatabasesCreateRequest(ctx, workspaceName, kustoPoolName, resourceGroupName, followerDatabaseToRemove, options) @@ -389,11 +399,12 @@ func (client *KustoPoolsClient) detachFollowerDatabasesCreateRequest(ctx context // Get - Gets a Kusto pool. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview -// workspaceName - The name of the workspace. -// kustoPoolName - The name of the Kusto pool. -// resourceGroupName - The name of the resource group. The name is case insensitive. -// options - KustoPoolsClientGetOptions contains the optional parameters for the KustoPoolsClient.Get method. +// - workspaceName - The name of the workspace. +// - kustoPoolName - The name of the Kusto pool. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - options - KustoPoolsClientGetOptions contains the optional parameters for the KustoPoolsClient.Get method. func (client *KustoPoolsClient) Get(ctx context.Context, workspaceName string, kustoPoolName string, resourceGroupName string, options *KustoPoolsClientGetOptions) (KustoPoolsClientGetResponse, error) { req, err := client.getCreateRequest(ctx, workspaceName, kustoPoolName, resourceGroupName, options) if err != nil { @@ -450,11 +461,12 @@ func (client *KustoPoolsClient) getHandleResponse(resp *http.Response) (KustoPoo // ListByWorkspace - List all Kusto pools // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// options - KustoPoolsClientListByWorkspaceOptions contains the optional parameters for the KustoPoolsClient.ListByWorkspace -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - options - KustoPoolsClientListByWorkspaceOptions contains the optional parameters for the KustoPoolsClient.ListByWorkspace +// method. func (client *KustoPoolsClient) ListByWorkspace(ctx context.Context, resourceGroupName string, workspaceName string, options *KustoPoolsClientListByWorkspaceOptions) (KustoPoolsClientListByWorkspaceResponse, error) { req, err := client.listByWorkspaceCreateRequest(ctx, resourceGroupName, workspaceName, options) if err != nil { @@ -507,13 +519,13 @@ func (client *KustoPoolsClient) listByWorkspaceHandleResponse(resp *http.Respons // NewListFollowerDatabasesPager - Returns a list of databases that are owned by this Kusto Pool and were followed by another // Kusto Pool. -// If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview -// workspaceName - The name of the workspace. -// kustoPoolName - The name of the Kusto pool. -// resourceGroupName - The name of the resource group. The name is case insensitive. -// options - KustoPoolsClientListFollowerDatabasesOptions contains the optional parameters for the KustoPoolsClient.ListFollowerDatabases -// method. +// - workspaceName - The name of the workspace. +// - kustoPoolName - The name of the Kusto pool. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - options - KustoPoolsClientListFollowerDatabasesOptions contains the optional parameters for the KustoPoolsClient.NewListFollowerDatabasesPager +// method. func (client *KustoPoolsClient) NewListFollowerDatabasesPager(workspaceName string, kustoPoolName string, resourceGroupName string, options *KustoPoolsClientListFollowerDatabasesOptions) *runtime.Pager[KustoPoolsClientListFollowerDatabasesResponse] { return runtime.NewPager(runtime.PagingHandler[KustoPoolsClientListFollowerDatabasesResponse]{ More: func(page KustoPoolsClientListFollowerDatabasesResponse) bool { @@ -576,13 +588,13 @@ func (client *KustoPoolsClient) listFollowerDatabasesHandleResponse(resp *http.R } // NewListLanguageExtensionsPager - Returns a list of language extensions that can run within KQL queries. -// If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview -// workspaceName - The name of the workspace. -// kustoPoolName - The name of the Kusto pool. -// resourceGroupName - The name of the resource group. The name is case insensitive. -// options - KustoPoolsClientListLanguageExtensionsOptions contains the optional parameters for the KustoPoolsClient.ListLanguageExtensions -// method. +// - workspaceName - The name of the workspace. +// - kustoPoolName - The name of the Kusto pool. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - options - KustoPoolsClientListLanguageExtensionsOptions contains the optional parameters for the KustoPoolsClient.NewListLanguageExtensionsPager +// method. func (client *KustoPoolsClient) NewListLanguageExtensionsPager(workspaceName string, kustoPoolName string, resourceGroupName string, options *KustoPoolsClientListLanguageExtensionsOptions) *runtime.Pager[KustoPoolsClientListLanguageExtensionsResponse] { return runtime.NewPager(runtime.PagingHandler[KustoPoolsClientListLanguageExtensionsResponse]{ More: func(page KustoPoolsClientListLanguageExtensionsResponse) bool { @@ -645,9 +657,9 @@ func (client *KustoPoolsClient) listLanguageExtensionsHandleResponse(resp *http. } // NewListSKUsPager - Lists eligible SKUs for Kusto Pool resource. -// If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview -// options - KustoPoolsClientListSKUsOptions contains the optional parameters for the KustoPoolsClient.ListSKUs method. +// - options - KustoPoolsClientListSKUsOptions contains the optional parameters for the KustoPoolsClient.NewListSKUsPager method. func (client *KustoPoolsClient) NewListSKUsPager(options *KustoPoolsClientListSKUsOptions) *runtime.Pager[KustoPoolsClientListSKUsResponse] { return runtime.NewPager(runtime.PagingHandler[KustoPoolsClientListSKUsResponse]{ More: func(page KustoPoolsClientListSKUsResponse) bool { @@ -698,13 +710,13 @@ func (client *KustoPoolsClient) listSKUsHandleResponse(resp *http.Response) (Kus } // NewListSKUsByResourcePager - Returns the SKUs available for the provided resource. -// If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview -// workspaceName - The name of the workspace. -// kustoPoolName - The name of the Kusto pool. -// resourceGroupName - The name of the resource group. The name is case insensitive. -// options - KustoPoolsClientListSKUsByResourceOptions contains the optional parameters for the KustoPoolsClient.ListSKUsByResource -// method. +// - workspaceName - The name of the workspace. +// - kustoPoolName - The name of the Kusto pool. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - options - KustoPoolsClientListSKUsByResourceOptions contains the optional parameters for the KustoPoolsClient.NewListSKUsByResourcePager +// method. func (client *KustoPoolsClient) NewListSKUsByResourcePager(workspaceName string, kustoPoolName string, resourceGroupName string, options *KustoPoolsClientListSKUsByResourceOptions) *runtime.Pager[KustoPoolsClientListSKUsByResourceResponse] { return runtime.NewPager(runtime.PagingHandler[KustoPoolsClientListSKUsByResourceResponse]{ More: func(page KustoPoolsClientListSKUsByResourceResponse) bool { @@ -768,13 +780,14 @@ func (client *KustoPoolsClient) listSKUsByResourceHandleResponse(resp *http.Resp // BeginRemoveLanguageExtensions - Remove a list of language extensions that can run within KQL queries. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview -// workspaceName - The name of the workspace. -// kustoPoolName - The name of the Kusto pool. -// resourceGroupName - The name of the resource group. The name is case insensitive. -// languageExtensionsToRemove - The language extensions to remove. -// options - KustoPoolsClientBeginRemoveLanguageExtensionsOptions contains the optional parameters for the KustoPoolsClient.BeginRemoveLanguageExtensions -// method. +// - workspaceName - The name of the workspace. +// - kustoPoolName - The name of the Kusto pool. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - languageExtensionsToRemove - The language extensions to remove. +// - options - KustoPoolsClientBeginRemoveLanguageExtensionsOptions contains the optional parameters for the KustoPoolsClient.BeginRemoveLanguageExtensions +// method. func (client *KustoPoolsClient) BeginRemoveLanguageExtensions(ctx context.Context, workspaceName string, kustoPoolName string, resourceGroupName string, languageExtensionsToRemove LanguageExtensionsList, options *KustoPoolsClientBeginRemoveLanguageExtensionsOptions) (*runtime.Poller[KustoPoolsClientRemoveLanguageExtensionsResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.removeLanguageExtensions(ctx, workspaceName, kustoPoolName, resourceGroupName, languageExtensionsToRemove, options) @@ -789,6 +802,7 @@ func (client *KustoPoolsClient) BeginRemoveLanguageExtensions(ctx context.Contex // RemoveLanguageExtensions - Remove a list of language extensions that can run within KQL queries. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview func (client *KustoPoolsClient) removeLanguageExtensions(ctx context.Context, workspaceName string, kustoPoolName string, resourceGroupName string, languageExtensionsToRemove LanguageExtensionsList, options *KustoPoolsClientBeginRemoveLanguageExtensionsOptions) (*http.Response, error) { req, err := client.removeLanguageExtensionsCreateRequest(ctx, workspaceName, kustoPoolName, resourceGroupName, languageExtensionsToRemove, options) @@ -837,11 +851,12 @@ func (client *KustoPoolsClient) removeLanguageExtensionsCreateRequest(ctx contex // BeginStart - Starts a Kusto pool. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview -// workspaceName - The name of the workspace. -// kustoPoolName - The name of the Kusto pool. -// resourceGroupName - The name of the resource group. The name is case insensitive. -// options - KustoPoolsClientBeginStartOptions contains the optional parameters for the KustoPoolsClient.BeginStart method. +// - workspaceName - The name of the workspace. +// - kustoPoolName - The name of the Kusto pool. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - options - KustoPoolsClientBeginStartOptions contains the optional parameters for the KustoPoolsClient.BeginStart method. func (client *KustoPoolsClient) BeginStart(ctx context.Context, workspaceName string, kustoPoolName string, resourceGroupName string, options *KustoPoolsClientBeginStartOptions) (*runtime.Poller[KustoPoolsClientStartResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.start(ctx, workspaceName, kustoPoolName, resourceGroupName, options) @@ -856,6 +871,7 @@ func (client *KustoPoolsClient) BeginStart(ctx context.Context, workspaceName st // Start - Starts a Kusto pool. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview func (client *KustoPoolsClient) start(ctx context.Context, workspaceName string, kustoPoolName string, resourceGroupName string, options *KustoPoolsClientBeginStartOptions) (*http.Response, error) { req, err := client.startCreateRequest(ctx, workspaceName, kustoPoolName, resourceGroupName, options) @@ -904,11 +920,12 @@ func (client *KustoPoolsClient) startCreateRequest(ctx context.Context, workspac // BeginStop - Stops a Kusto pool. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview -// workspaceName - The name of the workspace. -// kustoPoolName - The name of the Kusto pool. -// resourceGroupName - The name of the resource group. The name is case insensitive. -// options - KustoPoolsClientBeginStopOptions contains the optional parameters for the KustoPoolsClient.BeginStop method. +// - workspaceName - The name of the workspace. +// - kustoPoolName - The name of the Kusto pool. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - options - KustoPoolsClientBeginStopOptions contains the optional parameters for the KustoPoolsClient.BeginStop method. func (client *KustoPoolsClient) BeginStop(ctx context.Context, workspaceName string, kustoPoolName string, resourceGroupName string, options *KustoPoolsClientBeginStopOptions) (*runtime.Poller[KustoPoolsClientStopResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.stop(ctx, workspaceName, kustoPoolName, resourceGroupName, options) @@ -923,6 +940,7 @@ func (client *KustoPoolsClient) BeginStop(ctx context.Context, workspaceName str // Stop - Stops a Kusto pool. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview func (client *KustoPoolsClient) stop(ctx context.Context, workspaceName string, kustoPoolName string, resourceGroupName string, options *KustoPoolsClientBeginStopOptions) (*http.Response, error) { req, err := client.stopCreateRequest(ctx, workspaceName, kustoPoolName, resourceGroupName, options) @@ -971,12 +989,13 @@ func (client *KustoPoolsClient) stopCreateRequest(ctx context.Context, workspace // BeginUpdate - Update a Kusto Kusto Pool. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview -// workspaceName - The name of the workspace. -// resourceGroupName - The name of the resource group. The name is case insensitive. -// kustoPoolName - The name of the Kusto pool. -// parameters - The Kusto pool parameters supplied to the Update operation. -// options - KustoPoolsClientBeginUpdateOptions contains the optional parameters for the KustoPoolsClient.BeginUpdate method. +// - workspaceName - The name of the workspace. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - kustoPoolName - The name of the Kusto pool. +// - parameters - The Kusto pool parameters supplied to the Update operation. +// - options - KustoPoolsClientBeginUpdateOptions contains the optional parameters for the KustoPoolsClient.BeginUpdate method. func (client *KustoPoolsClient) BeginUpdate(ctx context.Context, workspaceName string, resourceGroupName string, kustoPoolName string, parameters KustoPoolUpdate, options *KustoPoolsClientBeginUpdateOptions) (*runtime.Poller[KustoPoolsClientUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.update(ctx, workspaceName, resourceGroupName, kustoPoolName, parameters, options) @@ -991,6 +1010,7 @@ func (client *KustoPoolsClient) BeginUpdate(ctx context.Context, workspaceName s // Update - Update a Kusto Kusto Pool. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview func (client *KustoPoolsClient) update(ctx context.Context, workspaceName string, resourceGroupName string, kustoPoolName string, parameters KustoPoolUpdate, options *KustoPoolsClientBeginUpdateOptions) (*http.Response, error) { req, err := client.updateCreateRequest(ctx, workspaceName, resourceGroupName, kustoPoolName, parameters, options) diff --git a/sdk/resourcemanager/synapse/armsynapse/kustopools_client_example_test.go b/sdk/resourcemanager/synapse/armsynapse/kustopools_client_example_test.go new file mode 100644 index 000000000000..f8aeb2a6ba8d --- /dev/null +++ b/sdk/resourcemanager/synapse/armsynapse/kustopools_client_example_test.go @@ -0,0 +1,647 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armsynapse_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolsListSkus.json +func ExampleKustoPoolsClient_NewListSKUsPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewKustoPoolsClient("12345678-1234-1234-1234-123456789098", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListSKUsPager(nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.SKUDescriptionList = armsynapse.SKUDescriptionList{ + // Value: []*armsynapse.SKUDescription{ + // { + // Name: to.Ptr("Compute optimized"), + // LocationInfo: []*armsynapse.SKULocationInfoItem{ + // { + // Location: to.Ptr("West US"), + // Zones: []*string{ + // to.Ptr("1"), + // to.Ptr("2"), + // to.Ptr("3")}, + // }, + // { + // Location: to.Ptr("West Europe"), + // Zones: []*string{ + // }, + // }}, + // Locations: []*string{ + // to.Ptr("West US"), + // to.Ptr("West Europe")}, + // Size: to.Ptr("Medium"), + // }, + // { + // Name: to.Ptr("Compute optimized"), + // LocationInfo: []*armsynapse.SKULocationInfoItem{ + // { + // Location: to.Ptr("West US"), + // Zones: []*string{ + // to.Ptr("1"), + // to.Ptr("2"), + // to.Ptr("3")}, + // }, + // { + // Location: to.Ptr("West Europe"), + // Zones: []*string{ + // }, + // }}, + // Locations: []*string{ + // to.Ptr("West US"), + // to.Ptr("West Europe")}, + // Size: to.Ptr("Large"), + // }, + // { + // Name: to.Ptr("Storage optimized"), + // LocationInfo: []*armsynapse.SKULocationInfoItem{ + // { + // Location: to.Ptr("West US"), + // Zones: []*string{ + // to.Ptr("1"), + // to.Ptr("2"), + // to.Ptr("3")}, + // }, + // { + // Location: to.Ptr("West Europe"), + // Zones: []*string{ + // }, + // }}, + // Locations: []*string{ + // to.Ptr("West US"), + // to.Ptr("West Europe")}, + // Size: to.Ptr("Medium"), + // }, + // { + // Name: to.Ptr("Storage optimized"), + // LocationInfo: []*armsynapse.SKULocationInfoItem{ + // { + // Location: to.Ptr("West US"), + // Zones: []*string{ + // to.Ptr("1"), + // to.Ptr("2"), + // to.Ptr("3")}, + // }, + // { + // Location: to.Ptr("West Europe"), + // Zones: []*string{ + // }, + // }}, + // Locations: []*string{ + // to.Ptr("West US"), + // to.Ptr("West Europe")}, + // Size: to.Ptr("Large"), + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolsCheckNameAvailability.json +func ExampleKustoPoolsClient_CheckNameAvailability() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewKustoPoolsClient("12345678-1234-1234-1234-123456789098", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.CheckNameAvailability(ctx, "westus", armsynapse.KustoPoolCheckNameRequest{ + Name: to.Ptr("kustoclusterrptest4"), + Type: to.Ptr("Microsoft.Synapse/workspaces/kustoPools"), + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.CheckNameResult = armsynapse.CheckNameResult{ + // Name: to.Ptr("kustoclusterrptest4"), + // Message: to.Ptr("Name 'kustoclusterrptest4' is already taken. Please specify a different name"), + // NameAvailable: to.Ptr(false), + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolsListByWorkspace.json +func ExampleKustoPoolsClient_ListByWorkspace() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewKustoPoolsClient("12345678-1234-1234-1234-123456789098", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.ListByWorkspace(ctx, "kustorptest", "kustorptest", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.KustoPoolListResult = armsynapse.KustoPoolListResult{ + // Value: []*armsynapse.KustoPool{ + // { + // Name: to.Ptr("KustoClusterRPTest4"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/kustopools"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Synapse/workspaces/kustorptest/kustopools/KustoClusterRPTest4"), + // Location: to.Ptr("westus"), + // Etag: to.Ptr("abcd123"), + // Properties: &armsynapse.KustoPoolProperties{ + // ProvisioningState: to.Ptr(armsynapse.ResourceProvisioningStateSucceeded), + // }, + // SKU: &armsynapse.AzureSKU{ + // Name: to.Ptr(armsynapse.SKUNameStorageOptimized), + // Capacity: to.Ptr[int32](2), + // Size: to.Ptr(armsynapse.SKUSizeMedium), + // }, + // }, + // { + // Name: to.Ptr("KustoClusterRPTest3"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/kustopools"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Synapse/workspaces/kustorptest/kustopools/KustoClusterRPTest3"), + // Location: to.Ptr("westus"), + // Etag: to.Ptr("abcd123"), + // Properties: &armsynapse.KustoPoolProperties{ + // ProvisioningState: to.Ptr(armsynapse.ResourceProvisioningStateSucceeded), + // }, + // SKU: &armsynapse.AzureSKU{ + // Name: to.Ptr(armsynapse.SKUNameComputeOptimized), + // Capacity: to.Ptr[int32](2), + // Size: to.Ptr(armsynapse.SKUSizeSmall), + // }, + // }}, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolsGet.json +func ExampleKustoPoolsClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewKustoPoolsClient("12345678-1234-1234-1234-123456789098", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "synapseWorkspaceName", "kustoclusterrptest4", "kustorptest", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.KustoPool = armsynapse.KustoPool{ + // Name: to.Ptr("KustoClusterRPTest5"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/kustopools"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Synapse/workspaces/synapseWorkspaceName/kustopools/KustoClusterRPTest5"), + // Location: to.Ptr("westus"), + // Etag: to.Ptr("abcd123"), + // Properties: &armsynapse.KustoPoolProperties{ + // ProvisioningState: to.Ptr(armsynapse.ResourceProvisioningStateSucceeded), + // }, + // SKU: &armsynapse.AzureSKU{ + // Name: to.Ptr(armsynapse.SKUNameStorageOptimized), + // Capacity: to.Ptr[int32](2), + // Size: to.Ptr(armsynapse.SKUSizeMedium), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolsCreateOrUpdate.json +func ExampleKustoPoolsClient_BeginCreateOrUpdate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewKustoPoolsClient("12345678-1234-1234-1234-123456789098", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreateOrUpdate(ctx, "synapseWorkspaceName", "kustorptest", "kustoclusterrptest4", armsynapse.KustoPool{ + Location: to.Ptr("westus"), + Properties: &armsynapse.KustoPoolProperties{ + EnablePurge: to.Ptr(true), + EnableStreamingIngest: to.Ptr(true), + WorkspaceUID: to.Ptr("11111111-2222-3333-444444444444"), + }, + SKU: &armsynapse.AzureSKU{ + Name: to.Ptr(armsynapse.SKUNameStorageOptimized), + Capacity: to.Ptr[int32](2), + Size: to.Ptr(armsynapse.SKUSizeMedium), + }, + }, &armsynapse.KustoPoolsClientBeginCreateOrUpdateOptions{IfMatch: nil, + IfNoneMatch: 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.KustoPool = armsynapse.KustoPool{ + // Name: to.Ptr("KustoClusterRPTest4"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/kustopools"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Synapse/workspaces/synapseWorkspaceName/kustopools/KustoClusterRPTest4"), + // Location: to.Ptr("westus"), + // Etag: to.Ptr("abcd"), + // Properties: &armsynapse.KustoPoolProperties{ + // EnablePurge: to.Ptr(true), + // EnableStreamingIngest: to.Ptr(true), + // ProvisioningState: to.Ptr(armsynapse.ResourceProvisioningStateSucceeded), + // }, + // SKU: &armsynapse.AzureSKU{ + // Name: to.Ptr(armsynapse.SKUNameStorageOptimized), + // Capacity: to.Ptr[int32](2), + // Size: to.Ptr(armsynapse.SKUSizeMedium), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolsUpdate.json +func ExampleKustoPoolsClient_BeginUpdate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewKustoPoolsClient("12345678-1234-1234-1234-123456789098", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginUpdate(ctx, "synapseWorkspaceName", "kustorptest", "kustoclusterrptest4", armsynapse.KustoPoolUpdate{ + Properties: &armsynapse.KustoPoolProperties{ + EnablePurge: to.Ptr(true), + EnableStreamingIngest: to.Ptr(true), + WorkspaceUID: to.Ptr("11111111-2222-3333-444444444444"), + }, + SKU: &armsynapse.AzureSKU{ + Name: to.Ptr(armsynapse.SKUNameStorageOptimized), + Capacity: to.Ptr[int32](2), + Size: to.Ptr(armsynapse.SKUSizeMedium), + }, + }, &armsynapse.KustoPoolsClientBeginUpdateOptions{IfMatch: 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.KustoPool = armsynapse.KustoPool{ + // Name: to.Ptr("KustoClusterRPTest4"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/kustopools"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Synapse/workspaces/synapseWorkspaceName/kustopools/KustoClusterRPTest4"), + // Location: to.Ptr("westus"), + // Etag: to.Ptr("abcd"), + // Properties: &armsynapse.KustoPoolProperties{ + // EnablePurge: to.Ptr(true), + // EnableStreamingIngest: to.Ptr(true), + // ProvisioningState: to.Ptr(armsynapse.ResourceProvisioningStateSucceeded), + // }, + // SKU: &armsynapse.AzureSKU{ + // Name: to.Ptr(armsynapse.SKUNameStorageOptimized), + // Capacity: to.Ptr[int32](2), + // Size: to.Ptr(armsynapse.SKUSizeMedium), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolsDelete.json +func ExampleKustoPoolsClient_BeginDelete() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewKustoPoolsClient("12345678-1234-1234-1234-123456789098", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginDelete(ctx, "kustorptest", "kustorptest", "kustoclusterrptest4", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + _, err = poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolsStop.json +func ExampleKustoPoolsClient_BeginStop() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewKustoPoolsClient("12345678-1234-1234-1234-123456789098", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginStop(ctx, "kustorptest", "kustoclusterrptest4", "kustorptest", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + _, err = poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolsStart.json +func ExampleKustoPoolsClient_BeginStart() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewKustoPoolsClient("12345678-1234-1234-1234-123456789098", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginStart(ctx, "kustorptest", "kustoclusterrptest4", "kustorptest", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + _, err = poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolsListResourceSkus.json +func ExampleKustoPoolsClient_NewListSKUsByResourcePager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewKustoPoolsClient("12345678-1234-1234-1234-123456789098", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListSKUsByResourcePager("synapseWorkspaceName", "kustoclusterrptest4", "kustorptest", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.ListResourceSKUsResult = armsynapse.ListResourceSKUsResult{ + // Value: []*armsynapse.AzureResourceSKU{ + // { + // Capacity: &armsynapse.AzureCapacity{ + // Default: to.Ptr[int32](2), + // Maximum: to.Ptr[int32](100), + // Minimum: to.Ptr[int32](2), + // ScaleType: to.Ptr(armsynapse.AzureScaleTypeAutomatic), + // }, + // ResourceType: to.Ptr("workspaces/kustoPools"), + // SKU: &armsynapse.AzureSKU{ + // Name: to.Ptr(armsynapse.SKUNameComputeOptimized), + // Size: to.Ptr(armsynapse.SKUSizeMedium), + // }, + // }, + // { + // Capacity: &armsynapse.AzureCapacity{ + // Default: to.Ptr[int32](2), + // Maximum: to.Ptr[int32](100), + // Minimum: to.Ptr[int32](2), + // ScaleType: to.Ptr(armsynapse.AzureScaleTypeAutomatic), + // }, + // ResourceType: to.Ptr("workspaces/kustoPools"), + // SKU: &armsynapse.AzureSKU{ + // Name: to.Ptr(armsynapse.SKUNameComputeOptimized), + // Size: to.Ptr(armsynapse.SKUSizeLarge), + // }, + // }, + // { + // Capacity: &armsynapse.AzureCapacity{ + // Default: to.Ptr[int32](2), + // Maximum: to.Ptr[int32](100), + // Minimum: to.Ptr[int32](2), + // ScaleType: to.Ptr(armsynapse.AzureScaleTypeAutomatic), + // }, + // ResourceType: to.Ptr("workspaces/kustoPools"), + // SKU: &armsynapse.AzureSKU{ + // Name: to.Ptr(armsynapse.SKUNameStorageOptimized), + // Size: to.Ptr(armsynapse.SKUSizeMedium), + // }, + // }, + // { + // Capacity: &armsynapse.AzureCapacity{ + // Default: to.Ptr[int32](2), + // Maximum: to.Ptr[int32](100), + // Minimum: to.Ptr[int32](2), + // ScaleType: to.Ptr(armsynapse.AzureScaleTypeAutomatic), + // }, + // ResourceType: to.Ptr("workspaces/kustoPools"), + // SKU: &armsynapse.AzureSKU{ + // Name: to.Ptr(armsynapse.SKUNameStorageOptimized), + // Size: to.Ptr(armsynapse.SKUSizeLarge), + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolLanguageExtensionsList.json +func ExampleKustoPoolsClient_NewListLanguageExtensionsPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewKustoPoolsClient("12345678-1234-1234-1234-123456789098", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListLanguageExtensionsPager("kustorptest", "kustoclusterrptest4", "kustorptest", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.LanguageExtensionsList = armsynapse.LanguageExtensionsList{ + // Value: []*armsynapse.LanguageExtension{ + // { + // LanguageExtensionName: to.Ptr(armsynapse.LanguageExtensionNamePYTHON), + // }, + // { + // LanguageExtensionName: to.Ptr(armsynapse.LanguageExtensionNameR), + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolLanguageExtensionsAdd.json +func ExampleKustoPoolsClient_BeginAddLanguageExtensions() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewKustoPoolsClient("12345678-1234-1234-1234-123456789098", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginAddLanguageExtensions(ctx, "kustorptest", "kustoclusterrptest4", "kustorptest", armsynapse.LanguageExtensionsList{ + Value: []*armsynapse.LanguageExtension{ + { + LanguageExtensionName: to.Ptr(armsynapse.LanguageExtensionNamePYTHON), + }, + { + LanguageExtensionName: to.Ptr(armsynapse.LanguageExtensionNameR), + }}, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + _, err = poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolLanguageExtensionsRemove.json +func ExampleKustoPoolsClient_BeginRemoveLanguageExtensions() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewKustoPoolsClient("12345678-1234-1234-1234-123456789098", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginRemoveLanguageExtensions(ctx, "kustorptest", "kustoclusterrptest4", "kustorptest", armsynapse.LanguageExtensionsList{ + Value: []*armsynapse.LanguageExtension{ + { + LanguageExtensionName: to.Ptr(armsynapse.LanguageExtensionNamePYTHON), + }, + { + LanguageExtensionName: to.Ptr(armsynapse.LanguageExtensionNameR), + }}, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + _, err = poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolFollowerDatabasesList.json +func ExampleKustoPoolsClient_NewListFollowerDatabasesPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewKustoPoolsClient("12345678-1234-1234-1234-123456789098", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListFollowerDatabasesPager("kustorptest", "kustoclusterrptest4", "kustorptest", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.FollowerDatabaseListResult = armsynapse.FollowerDatabaseListResult{ + // Value: []*armsynapse.FollowerDatabaseDefinition{ + // { + // AttachedDatabaseConfigurationName: to.Ptr("attachedDbConfiguration"), + // KustoPoolResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Synapse/workspaces/kustorptest/kustoPools/follower1"), + // DatabaseName: to.Ptr("*"), + // }, + // { + // AttachedDatabaseConfigurationName: to.Ptr("attachedDbConfiguration2"), + // KustoPoolResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Synapse/workspaces/kustorptest/kustoPools/follower4"), + // DatabaseName: to.Ptr("db1"), + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolFollowerDatabasesDetach.json +func ExampleKustoPoolsClient_BeginDetachFollowerDatabases() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewKustoPoolsClient("12345678-1234-1234-1234-123456789098", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginDetachFollowerDatabases(ctx, "kustorptest", "kustoclusterrptest4", "kustorptest", armsynapse.FollowerDatabaseDefinition{ + AttachedDatabaseConfigurationName: to.Ptr("myAttachedDatabaseConfiguration"), + KustoPoolResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Synapse/workspaces/kustorptest/kustoPools/leader4"), + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + _, err = poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } +} diff --git a/sdk/resourcemanager/synapse/armsynapse/zz_generated_libraries_client.go b/sdk/resourcemanager/synapse/armsynapse/libraries_client.go similarity index 90% rename from sdk/resourcemanager/synapse/armsynapse/zz_generated_libraries_client.go rename to sdk/resourcemanager/synapse/armsynapse/libraries_client.go index 8fe333c60239..d83f2190ec86 100644 --- a/sdk/resourcemanager/synapse/armsynapse/zz_generated_libraries_client.go +++ b/sdk/resourcemanager/synapse/armsynapse/libraries_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse @@ -31,9 +32,9 @@ type LibrariesClient struct { } // NewLibrariesClient creates a new instance of LibrariesClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewLibrariesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*LibrariesClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -55,12 +56,12 @@ func NewLibrariesClient(subscriptionID string, credential azcore.TokenCredential } // NewListByWorkspacePager - List libraries in a workspace. -// If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// options - LibrariesClientListByWorkspaceOptions contains the optional parameters for the LibrariesClient.ListByWorkspace -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - options - LibrariesClientListByWorkspaceOptions contains the optional parameters for the LibrariesClient.NewListByWorkspacePager +// method. func (client *LibrariesClient) NewListByWorkspacePager(resourceGroupName string, workspaceName string, options *LibrariesClientListByWorkspaceOptions) *runtime.Pager[LibrariesClientListByWorkspaceResponse] { return runtime.NewPager(runtime.PagingHandler[LibrariesClientListByWorkspaceResponse]{ More: func(page LibrariesClientListByWorkspaceResponse) bool { diff --git a/sdk/resourcemanager/synapse/armsynapse/libraries_client_example_test.go b/sdk/resourcemanager/synapse/armsynapse/libraries_client_example_test.go new file mode 100644 index 000000000000..59a9eb78195b --- /dev/null +++ b/sdk/resourcemanager/synapse/armsynapse/libraries_client_example_test.go @@ -0,0 +1,76 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armsynapse_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/Libraries_ListByWorkspace.json +func ExampleLibrariesClient_NewListByWorkspacePager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewLibrariesClient("12345678-1234-1234-1234-12345678abc", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListByWorkspacePager("exampleResourceGroup", "exampleWorkspace", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.LibraryListResponse = armsynapse.LibraryListResponse{ + // Value: []*armsynapse.LibraryResource{ + // { + // Name: to.Ptr("exampleLibraryName1.jar"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/libraries"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.Synapse/workspaces/exampleWorkspace/libraries/exampleLibraryName1.jar"), + // Etag: to.Ptr("1500474f-0000-0200-0000-5cbe090d0000"), + // Properties: &armsynapse.LibraryInfo{ + // Name: to.Ptr("exampleLibraryName1.jar"), + // Type: to.Ptr("jar"), + // Path: to.Ptr("exampleWorkspace/libraries/exampleLibraryName1.jar"), + // ContainerName: to.Ptr("exampleContainer"), + // CreatorID: to.Ptr("2222222e-222d-222f-2222-22a2f222d2f2"), + // ProvisioningStatus: to.Ptr("Succeeded"), + // UploadedTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-10-23T07:59:29.1573546+00:00"); return t}()), + // }, + // }, + // { + // Name: to.Ptr("exampleLibraryName2.jar"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/libraries"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.Synapse/workspaces/exampleWorkspace/libraries/exampleLibraryName2.jar"), + // Etag: to.Ptr("1500474f-0000-0200-0000-5cbe090d0000"), + // Properties: &armsynapse.LibraryInfo{ + // Name: to.Ptr("exampleLibraryName2.jar"), + // Type: to.Ptr("jar"), + // Path: to.Ptr("exampleWorkspace/libraries/exampleLibraryName2.jar"), + // ContainerName: to.Ptr("exampleContainer"), + // CreatorID: to.Ptr("2222222e-222d-222f-2222-22a2f222d2f2"), + // ProvisioningStatus: to.Ptr("Succeeded"), + // UploadedTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-10-23T07:59:29.1573546+00:00"); return t}()), + // }, + // }}, + // } + } +} diff --git a/sdk/resourcemanager/synapse/armsynapse/zz_generated_library_client.go b/sdk/resourcemanager/synapse/armsynapse/library_client.go similarity index 89% rename from sdk/resourcemanager/synapse/armsynapse/zz_generated_library_client.go rename to sdk/resourcemanager/synapse/armsynapse/library_client.go index 71502b259eaa..8d8f14796349 100644 --- a/sdk/resourcemanager/synapse/armsynapse/zz_generated_library_client.go +++ b/sdk/resourcemanager/synapse/armsynapse/library_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse @@ -31,9 +32,9 @@ type LibraryClient struct { } // NewLibraryClient creates a new instance of LibraryClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewLibraryClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*LibraryClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,11 +57,12 @@ func NewLibraryClient(subscriptionID string, credential azcore.TokenCredential, // Get - Get library by name in a workspace. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// libraryName - Library name -// workspaceName - The name of the workspace. -// options - LibraryClientGetOptions contains the optional parameters for the LibraryClient.Get method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - libraryName - Library name +// - workspaceName - The name of the workspace. +// - options - LibraryClientGetOptions contains the optional parameters for the LibraryClient.Get method. func (client *LibraryClient) Get(ctx context.Context, resourceGroupName string, libraryName string, workspaceName string, options *LibraryClientGetOptions) (LibraryClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, libraryName, workspaceName, options) if err != nil { diff --git a/sdk/resourcemanager/synapse/armsynapse/library_client_example_test.go b/sdk/resourcemanager/synapse/armsynapse/library_client_example_test.go new file mode 100644 index 000000000000..8ad546491778 --- /dev/null +++ b/sdk/resourcemanager/synapse/armsynapse/library_client_example_test.go @@ -0,0 +1,53 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armsynapse_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/Library_Get.json +func ExampleLibraryClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewLibraryClient("12345678-1234-1234-1234-12345678abc", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "exampleResourceGroup", "exampleLibraryName.jar", "exampleWorkspace", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.LibraryResource = armsynapse.LibraryResource{ + // Name: to.Ptr("exampleLibraryName.jar"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/libraries"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.Synapse/workspaces/exampleWorkspace/libraries/exampleLibraryName.jar"), + // Etag: to.Ptr("1500474f-0000-0200-0000-5cbe090d0000"), + // Properties: &armsynapse.LibraryInfo{ + // Name: to.Ptr("exampleLibraryName.jar"), + // Type: to.Ptr("jar"), + // Path: to.Ptr("exampleWorkspace/libraries/exampleLibraryName.jar"), + // ContainerName: to.Ptr("exampleContainer"), + // CreatorID: to.Ptr("2222222e-222d-222f-2222-22a2f222d2f2"), + // ProvisioningStatus: to.Ptr("Succeeded"), + // UploadedTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-10-23T07:59:29.1573546+00:00"); return t}()), + // }, + // } +} diff --git a/sdk/resourcemanager/synapse/armsynapse/zz_generated_models.go b/sdk/resourcemanager/synapse/armsynapse/models.go similarity index 96% rename from sdk/resourcemanager/synapse/armsynapse/zz_generated_models.go rename to sdk/resourcemanager/synapse/armsynapse/models.go index 27d2a5d6dd2a..7321251728d2 100644 --- a/sdk/resourcemanager/synapse/armsynapse/zz_generated_models.go +++ b/sdk/resourcemanager/synapse/armsynapse/models.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse @@ -177,7 +178,7 @@ type AzureADOnlyAuthenticationsClientGetOptions struct { // placeholder for future optional parameters } -// AzureADOnlyAuthenticationsClientListOptions contains the optional parameters for the AzureADOnlyAuthenticationsClient.List +// AzureADOnlyAuthenticationsClientListOptions contains the optional parameters for the AzureADOnlyAuthenticationsClient.NewListPager // method. type AzureADOnlyAuthenticationsClientListOptions struct { // placeholder for future optional parameters @@ -293,6 +294,9 @@ type BigDataPoolResourceProperties struct { // Dynamic Executor Allocation DynamicExecutorAllocation *DynamicExecutorAllocation `json:"dynamicExecutorAllocation,omitempty"` + // Whether autotune is required or not. + IsAutotuneEnabled *bool `json:"isAutotuneEnabled,omitempty"` + // Whether compute isolation is required or not. IsComputeIsolationEnabled *bool `json:"isComputeIsolationEnabled,omitempty"` @@ -350,7 +354,8 @@ type BigDataPoolsClientGetOptions struct { // placeholder for future optional parameters } -// BigDataPoolsClientListByWorkspaceOptions contains the optional parameters for the BigDataPoolsClient.ListByWorkspace method. +// BigDataPoolsClientListByWorkspaceOptions contains the optional parameters for the BigDataPoolsClient.NewListByWorkspacePager +// method. type BigDataPoolsClientListByWorkspaceOptions struct { // placeholder for future optional parameters } @@ -422,7 +427,8 @@ type ClusterPrincipalAssignmentCheckNameRequest struct { // REQUIRED; Principal Assignment resource name. Name *string `json:"name,omitempty"` - // REQUIRED; The type of resource, Microsoft.Synapse/workspaces/kustoPools/principalAssignments. + // CONSTANT; The type of resource, Microsoft.Synapse/workspaces/kustoPools/principalAssignments. + // Field has constant value "Microsoft.Synapse/workspaces/kustoPools/principalAssignments", any specified value is ignored. Type *string `json:"type,omitempty"` } @@ -447,6 +453,9 @@ type ClusterPrincipalProperties struct { // The tenant id of the principal TenantID *string `json:"tenantId,omitempty"` + // READ-ONLY; The service principal object id in AAD (Azure active directory) + AADObjectID *string `json:"aadObjectId,omitempty" azure:"ro"` + // READ-ONLY; The principal name PrincipalName *string `json:"principalName,omitempty" azure:"ro"` @@ -479,10 +488,10 @@ type CmdkeySetupTypeProperties struct { Password SecretBaseClassification `json:"password,omitempty"` // REQUIRED; The server name of data source access. - TargetName interface{} `json:"targetName,omitempty"` + TargetName any `json:"targetName,omitempty"` // REQUIRED; The user name of data source access. - UserName interface{} `json:"userName,omitempty"` + UserName any `json:"userName,omitempty"` } // ComponentSetup - The custom setup of installing 3rd party components. @@ -581,7 +590,8 @@ type DataConnectionCheckNameRequest struct { // REQUIRED; Data Connection name. Name *string `json:"name,omitempty"` - // REQUIRED; The type of resource, Microsoft.Synapse/workspaces/kustoPools/databases/dataConnections. + // CONSTANT; The type of resource, Microsoft.Synapse/workspaces/kustoPools/databases/dataConnections. + // Field has constant value "Microsoft.Synapse/workspaces/kustoPools/databases/dataConnections", any specified value is ignored. Type *string `json:"type,omitempty"` } @@ -762,7 +772,7 @@ type DataMaskingRulesClientGetOptions struct { // placeholder for future optional parameters } -// DataMaskingRulesClientListBySQLPoolOptions contains the optional parameters for the DataMaskingRulesClient.ListBySQLPool +// DataMaskingRulesClientListBySQLPoolOptions contains the optional parameters for the DataMaskingRulesClient.NewListBySQLPoolPager // method. type DataMaskingRulesClientListBySQLPoolOptions struct { // placeholder for future optional parameters @@ -861,7 +871,9 @@ type DatabasePrincipalAssignmentCheckNameRequest struct { // REQUIRED; Principal Assignment resource name. Name *string `json:"name,omitempty"` - // REQUIRED; The type of resource, Microsoft.Synapse/workspaces/kustoPools/databases/principalAssignments. + // CONSTANT; The type of resource, Microsoft.Synapse/workspaces/kustoPools/databases/principalAssignments. + // Field has constant value "Microsoft.Synapse/workspaces/kustoPools/databases/principalAssignments", any specified value + // is ignored. Type *string `json:"type,omitempty"` } @@ -886,6 +898,9 @@ type DatabasePrincipalProperties struct { // The tenant id of the principal TenantID *string `json:"tenantId,omitempty"` + // READ-ONLY; The service principal object id in AAD (Azure active directory) + AADObjectID *string `json:"aadObjectId,omitempty" azure:"ro"` + // READ-ONLY; The principal name PrincipalName *string `json:"principalName,omitempty" azure:"ro"` @@ -1047,7 +1062,7 @@ type EnvironmentVariableSetupTypeProperties struct { // ErrorAdditionalInfo - The resource management error additional info. type ErrorAdditionalInfo struct { // READ-ONLY; The additional info. - Info interface{} `json:"info,omitempty" azure:"ro"` + Info any `json:"info,omitempty" azure:"ro"` // READ-ONLY; The additional info type. Type *string `json:"type,omitempty" azure:"ro"` @@ -1078,6 +1093,25 @@ type ErrorResponse struct { Error *ErrorDetail `json:"error,omitempty"` } +// ErrorResponseAutoGenerated - Common error response for all Azure Resource Manager APIs to return error details for failed +// operations. (This also follows the OData error response format.) +type ErrorResponseAutoGenerated struct { + // READ-ONLY; The error additional info. + AdditionalInfo []*ErrorAdditionalInfo `json:"additionalInfo,omitempty" azure:"ro"` + + // READ-ONLY; The error code. + Code *string `json:"code,omitempty" azure:"ro"` + + // READ-ONLY; The error details. + Details []*ErrorResponseAutoGenerated `json:"details,omitempty" azure:"ro"` + + // READ-ONLY; The error message. + Message *string `json:"message,omitempty" azure:"ro"` + + // READ-ONLY; The error target. + Target *string `json:"target,omitempty" azure:"ro"` +} + // EventGridConnectionProperties - Class representing the Kusto event grid connection properties. type EventGridConnectionProperties struct { // REQUIRED; The event hub consumer group. @@ -1222,7 +1256,7 @@ type ExtendedSQLPoolBlobAuditingPoliciesClientGetOptions struct { // placeholder for future optional parameters } -// ExtendedSQLPoolBlobAuditingPoliciesClientListBySQLPoolOptions contains the optional parameters for the ExtendedSQLPoolBlobAuditingPoliciesClient.ListBySQLPool +// ExtendedSQLPoolBlobAuditingPoliciesClientListBySQLPoolOptions contains the optional parameters for the ExtendedSQLPoolBlobAuditingPoliciesClient.NewListBySQLPoolPager // method. type ExtendedSQLPoolBlobAuditingPoliciesClientListBySQLPoolOptions struct { // placeholder for future optional parameters @@ -1491,6 +1525,22 @@ type GeoBackupPolicyProperties struct { StorageType *string `json:"storageType,omitempty" azure:"ro"` } +// GetClientIntegrationRuntimeEnableInteractivequeryOptions contains the optional parameters for the GetClient.IntegrationRuntimeEnableInteractivequery +// method. +type GetClientIntegrationRuntimeEnableInteractivequeryOptions struct { + // placeholder for future optional parameters +} + +// GetClientIntegrationRuntimeStartOptions contains the optional parameters for the GetClient.IntegrationRuntimeStart method. +type GetClientIntegrationRuntimeStartOptions struct { + // placeholder for future optional parameters +} + +// GetClientIntegrationRuntimeStopOptions contains the optional parameters for the GetClient.IntegrationRuntimeStop method. +type GetClientIntegrationRuntimeStopOptions struct { + // placeholder for future optional parameters +} + // GetSsisObjectMetadataRequest - The request payload of get SSIS object metadata. type GetSsisObjectMetadataRequest struct { // Metadata path. @@ -1558,7 +1608,7 @@ type IPFirewallRulesClientGetOptions struct { // placeholder for future optional parameters } -// IPFirewallRulesClientListByWorkspaceOptions contains the optional parameters for the IPFirewallRulesClient.ListByWorkspace +// IPFirewallRulesClientListByWorkspaceOptions contains the optional parameters for the IPFirewallRulesClient.NewListByWorkspacePager // method. type IPFirewallRulesClientListByWorkspaceOptions struct { // placeholder for future optional parameters @@ -1579,7 +1629,7 @@ type IntegrationRuntime struct { Type *IntegrationRuntimeType `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Integration runtime description. Description *string `json:"description,omitempty"` @@ -1612,7 +1662,7 @@ type IntegrationRuntimeAuthKeysClientRegenerateOptions struct { // IntegrationRuntimeComputeProperties - The compute resource properties for managed integration runtime. type IntegrationRuntimeComputeProperties struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Data flow properties for managed integration runtime. DataFlowProperties *IntegrationRuntimeDataFlowProperties `json:"dataFlowProperties,omitempty"` @@ -1636,7 +1686,7 @@ type IntegrationRuntimeComputeProperties struct { // IntegrationRuntimeConnectionInfo - Connection information for encrypting the on-premises data source credentials. type IntegrationRuntimeConnectionInfo struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // READ-ONLY; The on-premises integration runtime host URL. HostServiceURI *string `json:"hostServiceUri,omitempty" azure:"ro"` @@ -1681,7 +1731,7 @@ type IntegrationRuntimeCustomSetupScriptProperties struct { // IntegrationRuntimeDataFlowProperties - Data flow properties for managed integration runtime. type IntegrationRuntimeDataFlowProperties struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Cluster will not be recycled and it will be used in next data flow activity run until TTL (time to live) is reached if // this is set as false. Default is true. @@ -1709,6 +1759,21 @@ type IntegrationRuntimeDataProxyProperties struct { StagingLinkedService *EntityReference `json:"stagingLinkedService,omitempty"` } +// IntegrationRuntimeEnableinteractivequery - Integration Runtime Operation Status Properties +type IntegrationRuntimeEnableinteractivequery struct { + // The operation error message. + Error *string `json:"error,omitempty"` + + // The operation name. + Name *string `json:"name,omitempty"` + + // The operation properties. + Properties any `json:"properties,omitempty"` + + // EnableInteractivequery status of Integrationruntimes. + Status *WorkspaceStatus `json:"status,omitempty"` +} + // IntegrationRuntimeListResponse - A list of integration runtime resources. type IntegrationRuntimeListResponse struct { // REQUIRED; List of integration runtimes. @@ -1748,7 +1813,7 @@ type IntegrationRuntimeNodeIPAddressClientGetOptions struct { // IntegrationRuntimeNodeMonitoringData - Monitoring data for integration runtime node. type IntegrationRuntimeNodeMonitoringData struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // READ-ONLY; Available memory (MB) on the integration runtime node. AvailableMemoryInMB *int32 `json:"availableMemoryInMB,omitempty" azure:"ro"` @@ -1806,6 +1871,21 @@ type IntegrationRuntimeObjectMetadataClientListOptions struct { GetMetadataRequest *GetSsisObjectMetadataRequest } +// IntegrationRuntimeOperationStatus - Integration Runtime Operation Status Properties +type IntegrationRuntimeOperationStatus struct { + // The operation error message. + Error *string `json:"error,omitempty"` + + // The operation name. + Name *string `json:"name,omitempty"` + + // The operation properties. + Properties any `json:"properties,omitempty"` + + // status of Start Integrationruntimes. + Status *WorkspaceStatus `json:"status,omitempty"` +} + // IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint - Azure-SSIS integration runtime outbound network dependency // endpoints for one category. type IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint struct { @@ -1867,7 +1947,7 @@ type IntegrationRuntimeResource struct { // IntegrationRuntimeSsisCatalogInfo - Catalog information for managed dedicated integration runtime. type IntegrationRuntimeSsisCatalogInfo struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // The password of the administrator user account of the catalog database. CatalogAdminPassword *SecureString `json:"catalogAdminPassword,omitempty"` @@ -1885,7 +1965,7 @@ type IntegrationRuntimeSsisCatalogInfo struct { // IntegrationRuntimeSsisProperties - SSIS properties for managed integration runtime. type IntegrationRuntimeSsisProperties struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Catalog information for managed dedicated integration runtime. CatalogInfo *IntegrationRuntimeSsisCatalogInfo `json:"catalogInfo,omitempty"` @@ -1921,7 +2001,7 @@ type IntegrationRuntimeStatus struct { Type *IntegrationRuntimeType `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // READ-ONLY; The workspace name which the integration runtime belong to. DataFactoryName *string `json:"dataFactoryName,omitempty" azure:"ro"` @@ -1947,10 +2027,25 @@ type IntegrationRuntimeStatusResponse struct { Name *string `json:"name,omitempty" azure:"ro"` } +// IntegrationRuntimeStopOperationStatus - Integration Runtime Operation Status Properties +type IntegrationRuntimeStopOperationStatus struct { + // The operation error message. + Error *string `json:"error,omitempty"` + + // The operation name. + Name *string `json:"name,omitempty"` + + // The operation properties. + Properties any `json:"properties,omitempty"` + + // status of Start Integrationruntimes. + Status *WorkspaceStatus `json:"status,omitempty"` +} + // IntegrationRuntimeVNetProperties - VNet properties for managed integration runtime. type IntegrationRuntimeVNetProperties struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Resource IDs of the public IP addresses that this integration runtime will use. PublicIPs []*string `json:"publicIPs,omitempty"` @@ -2017,7 +2112,7 @@ type IntegrationRuntimesClientGetOptions struct { IfNoneMatch *string } -// IntegrationRuntimesClientListByWorkspaceOptions contains the optional parameters for the IntegrationRuntimesClient.ListByWorkspace +// IntegrationRuntimesClientListByWorkspaceOptions contains the optional parameters for the IntegrationRuntimesClient.NewListByWorkspacePager // method. type IntegrationRuntimesClientListByWorkspaceOptions struct { // placeholder for future optional parameters @@ -2105,7 +2200,7 @@ func (i *IotHubDataConnection) GetDataConnection() *DataConnection { // KekIdentityProperties - Key encryption key properties type KekIdentityProperties struct { // Boolean specifying whether to use system assigned identity or not - UseSystemAssignedIdentity interface{} `json:"useSystemAssignedIdentity,omitempty"` + UseSystemAssignedIdentity any `json:"useSystemAssignedIdentity,omitempty"` // User assigned identity resource Id UserAssignedIdentity *string `json:"userAssignedIdentity,omitempty"` @@ -2159,12 +2254,12 @@ type KeysClientGetOptions struct { // placeholder for future optional parameters } -// KeysClientListByWorkspaceOptions contains the optional parameters for the KeysClient.ListByWorkspace method. +// KeysClientListByWorkspaceOptions contains the optional parameters for the KeysClient.NewListByWorkspacePager method. type KeysClientListByWorkspaceOptions struct { // placeholder for future optional parameters } -// KustoOperationsClientListOptions contains the optional parameters for the KustoOperationsClient.List method. +// KustoOperationsClientListOptions contains the optional parameters for the KustoOperationsClient.NewListPager method. type KustoOperationsClientListOptions struct { // placeholder for future optional parameters } @@ -2219,7 +2314,7 @@ type KustoPoolAttachedDatabaseConfigurationsClientGetOptions struct { // placeholder for future optional parameters } -// KustoPoolAttachedDatabaseConfigurationsClientListByKustoPoolOptions contains the optional parameters for the KustoPoolAttachedDatabaseConfigurationsClient.ListByKustoPool +// KustoPoolAttachedDatabaseConfigurationsClientListByKustoPoolOptions contains the optional parameters for the KustoPoolAttachedDatabaseConfigurationsClient.NewListByKustoPoolPager // method. type KustoPoolAttachedDatabaseConfigurationsClientListByKustoPoolOptions struct { // placeholder for future optional parameters @@ -2230,7 +2325,8 @@ type KustoPoolCheckNameRequest struct { // REQUIRED; Kusto Pool name. Name *string `json:"name,omitempty"` - // REQUIRED; The type of resource, Microsoft.Synapse/workspaces/kustoPools. + // CONSTANT; The type of resource, Microsoft.Synapse/workspaces/kustoPools. + // Field has constant value "Microsoft.Synapse/workspaces/kustoPools", any specified value is ignored. Type *string `json:"type,omitempty"` } @@ -2279,7 +2375,7 @@ type KustoPoolDataConnectionsClientGetOptions struct { // placeholder for future optional parameters } -// KustoPoolDataConnectionsClientListByDatabaseOptions contains the optional parameters for the KustoPoolDataConnectionsClient.ListByDatabase +// KustoPoolDataConnectionsClientListByDatabaseOptions contains the optional parameters for the KustoPoolDataConnectionsClient.NewListByDatabasePager // method. type KustoPoolDataConnectionsClientListByDatabaseOptions struct { // placeholder for future optional parameters @@ -2311,7 +2407,7 @@ type KustoPoolDatabasePrincipalAssignmentsClientGetOptions struct { // placeholder for future optional parameters } -// KustoPoolDatabasePrincipalAssignmentsClientListOptions contains the optional parameters for the KustoPoolDatabasePrincipalAssignmentsClient.List +// KustoPoolDatabasePrincipalAssignmentsClientListOptions contains the optional parameters for the KustoPoolDatabasePrincipalAssignmentsClient.NewListPager // method. type KustoPoolDatabasePrincipalAssignmentsClientListOptions struct { // placeholder for future optional parameters @@ -2343,7 +2439,7 @@ type KustoPoolDatabasesClientGetOptions struct { // placeholder for future optional parameters } -// KustoPoolDatabasesClientListByKustoPoolOptions contains the optional parameters for the KustoPoolDatabasesClient.ListByKustoPool +// KustoPoolDatabasesClientListByKustoPoolOptions contains the optional parameters for the KustoPoolDatabasesClient.NewListByKustoPoolPager // method. type KustoPoolDatabasesClientListByKustoPoolOptions struct { // placeholder for future optional parameters @@ -2381,12 +2477,36 @@ type KustoPoolPrincipalAssignmentsClientGetOptions struct { // placeholder for future optional parameters } -// KustoPoolPrincipalAssignmentsClientListOptions contains the optional parameters for the KustoPoolPrincipalAssignmentsClient.List +// KustoPoolPrincipalAssignmentsClientListOptions contains the optional parameters for the KustoPoolPrincipalAssignmentsClient.NewListPager // method. type KustoPoolPrincipalAssignmentsClientListOptions struct { // placeholder for future optional parameters } +// KustoPoolPrivateLinkResources - Class representing a Private Link Resources. +type KustoPoolPrivateLinkResources struct { + // The Private Link Resources. + Properties *PrivateLinkResourcesProperties `json:"properties,omitempty"` + + // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string `json:"id,omitempty" azure:"ro"` + + // READ-ONLY; The name of the resource + Name *string `json:"name,omitempty" azure:"ro"` + + // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. + SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + + // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string `json:"type,omitempty" azure:"ro"` +} + +// KustoPoolPrivateLinkResourcesClientListOptions contains the optional parameters for the KustoPoolPrivateLinkResourcesClient.NewListPager +// method. +type KustoPoolPrivateLinkResourcesClientListOptions struct { + // placeholder for future optional parameters +} + // KustoPoolProperties - Class representing the Kusto pool properties. type KustoPoolProperties struct { // A boolean value that indicates if the purge operations are enabled. @@ -2518,25 +2638,25 @@ type KustoPoolsClientListByWorkspaceOptions struct { // placeholder for future optional parameters } -// KustoPoolsClientListFollowerDatabasesOptions contains the optional parameters for the KustoPoolsClient.ListFollowerDatabases +// KustoPoolsClientListFollowerDatabasesOptions contains the optional parameters for the KustoPoolsClient.NewListFollowerDatabasesPager // method. type KustoPoolsClientListFollowerDatabasesOptions struct { // placeholder for future optional parameters } -// KustoPoolsClientListLanguageExtensionsOptions contains the optional parameters for the KustoPoolsClient.ListLanguageExtensions +// KustoPoolsClientListLanguageExtensionsOptions contains the optional parameters for the KustoPoolsClient.NewListLanguageExtensionsPager // method. type KustoPoolsClientListLanguageExtensionsOptions struct { // placeholder for future optional parameters } -// KustoPoolsClientListSKUsByResourceOptions contains the optional parameters for the KustoPoolsClient.ListSKUsByResource +// KustoPoolsClientListSKUsByResourceOptions contains the optional parameters for the KustoPoolsClient.NewListSKUsByResourcePager // method. type KustoPoolsClientListSKUsByResourceOptions struct { // placeholder for future optional parameters } -// KustoPoolsClientListSKUsOptions contains the optional parameters for the KustoPoolsClient.ListSKUs method. +// KustoPoolsClientListSKUsOptions contains the optional parameters for the KustoPoolsClient.NewListSKUsPager method. type KustoPoolsClientListSKUsOptions struct { // placeholder for future optional parameters } @@ -2553,7 +2673,8 @@ type LanguageExtensionsList struct { Value []*LanguageExtension `json:"value,omitempty"` } -// LibrariesClientListByWorkspaceOptions contains the optional parameters for the LibrariesClient.ListByWorkspace method. +// LibrariesClientListByWorkspaceOptions contains the optional parameters for the LibrariesClient.NewListByWorkspacePager +// method. type LibrariesClientListByWorkspaceOptions struct { // placeholder for future optional parameters } @@ -2830,10 +2951,10 @@ type ManagedIdentitySQLControlSettingsModelProperties struct { // ManagedIdentitySQLControlSettingsModelPropertiesGrantSQLControlToManagedIdentity - Grant sql control to managed identity type ManagedIdentitySQLControlSettingsModelPropertiesGrantSQLControlToManagedIdentity struct { // Desired state - DesiredState *ManagedIdentitySQLControlSettingsModelPropertiesGrantSQLControlToManagedIdentityDesiredState `json:"desiredState,omitempty"` + DesiredState *DesiredState `json:"desiredState,omitempty"` // READ-ONLY; Actual state - ActualState *ManagedIdentitySQLControlSettingsModelPropertiesGrantSQLControlToManagedIdentityActualState `json:"actualState,omitempty" azure:"ro"` + ActualState *ActualState `json:"actualState,omitempty" azure:"ro"` } // ManagedIntegrationRuntime - Managed integration runtime, including managed elastic and managed dedicated integration runtimes. @@ -2845,7 +2966,7 @@ type ManagedIntegrationRuntime struct { TypeProperties *ManagedIntegrationRuntimeTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Integration runtime description. Description *string `json:"description,omitempty"` @@ -2869,7 +2990,7 @@ func (m *ManagedIntegrationRuntime) GetIntegrationRuntime() *IntegrationRuntime // ManagedIntegrationRuntimeError - Error definition for managed integration runtime. type ManagedIntegrationRuntimeError struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // READ-ONLY; Error code. Code *string `json:"code,omitempty" azure:"ro"` @@ -2899,7 +3020,7 @@ type ManagedIntegrationRuntimeManagedVirtualNetworkReference struct { // ManagedIntegrationRuntimeNode - Properties of integration runtime node. type ManagedIntegrationRuntimeNode struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // The errors that occurred on this integration runtime node. Errors []*ManagedIntegrationRuntimeError `json:"errors,omitempty"` @@ -2914,7 +3035,7 @@ type ManagedIntegrationRuntimeNode struct { // ManagedIntegrationRuntimeOperationResult - Properties of managed integration runtime operation result. type ManagedIntegrationRuntimeOperationResult struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // READ-ONLY; The activity id for the operation request. ActivityID *string `json:"activityId,omitempty" azure:"ro"` @@ -2944,7 +3065,7 @@ type ManagedIntegrationRuntimeStatus struct { TypeProperties *ManagedIntegrationRuntimeStatusTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // READ-ONLY; The workspace name which the integration runtime belong to. DataFactoryName *string `json:"dataFactoryName,omitempty" azure:"ro"` @@ -3035,7 +3156,7 @@ type Operation struct { Origin *string `json:"origin,omitempty"` // Properties of the operation. - Properties interface{} `json:"properties,omitempty"` + Properties any `json:"properties,omitempty"` } // OperationDisplay - The object that describes the operation. @@ -3156,7 +3277,7 @@ type OperationResource struct { PercentComplete *float32 `json:"percentComplete,omitempty"` // Operation properties - Properties interface{} `json:"properties,omitempty"` + Properties any `json:"properties,omitempty"` // Operation start time StartTime *time.Time `json:"startTime,omitempty"` @@ -3295,7 +3416,7 @@ type PrivateEndpointConnectionsClientGetOptions struct { // placeholder for future optional parameters } -// PrivateEndpointConnectionsClientListOptions contains the optional parameters for the PrivateEndpointConnectionsClient.List +// PrivateEndpointConnectionsClientListOptions contains the optional parameters for the PrivateEndpointConnectionsClient.NewListPager // method. type PrivateEndpointConnectionsClientListOptions struct { // placeholder for future optional parameters @@ -3307,7 +3428,7 @@ type PrivateEndpointConnectionsPrivateLinkHubClientGetOptions struct { // placeholder for future optional parameters } -// PrivateEndpointConnectionsPrivateLinkHubClientListOptions contains the optional parameters for the PrivateEndpointConnectionsPrivateLinkHubClient.List +// PrivateEndpointConnectionsPrivateLinkHubClientListOptions contains the optional parameters for the PrivateEndpointConnectionsPrivateLinkHubClient.NewListPager // method. type PrivateEndpointConnectionsPrivateLinkHubClientListOptions struct { // placeholder for future optional parameters @@ -3355,7 +3476,7 @@ type PrivateLinkHubPrivateLinkResourcesClientGetOptions struct { // placeholder for future optional parameters } -// PrivateLinkHubPrivateLinkResourcesClientListOptions contains the optional parameters for the PrivateLinkHubPrivateLinkResourcesClient.List +// PrivateLinkHubPrivateLinkResourcesClientListOptions contains the optional parameters for the PrivateLinkHubPrivateLinkResourcesClient.NewListPager // method. type PrivateLinkHubPrivateLinkResourcesClientListOptions struct { // placeholder for future optional parameters @@ -3387,13 +3508,13 @@ type PrivateLinkHubsClientGetOptions struct { // placeholder for future optional parameters } -// PrivateLinkHubsClientListByResourceGroupOptions contains the optional parameters for the PrivateLinkHubsClient.ListByResourceGroup +// PrivateLinkHubsClientListByResourceGroupOptions contains the optional parameters for the PrivateLinkHubsClient.NewListByResourceGroupPager // method. type PrivateLinkHubsClientListByResourceGroupOptions struct { // placeholder for future optional parameters } -// PrivateLinkHubsClientListOptions contains the optional parameters for the PrivateLinkHubsClient.List method. +// PrivateLinkHubsClientListOptions contains the optional parameters for the PrivateLinkHubsClient.NewListPager method. type PrivateLinkHubsClientListOptions struct { // placeholder for future optional parameters } @@ -3439,16 +3560,38 @@ type PrivateLinkResourceProperties struct { RequiredZoneNames []*string `json:"requiredZoneNames,omitempty" azure:"ro"` } +// PrivateLinkResources - The list Kusto Private Link Resources operation response. +type PrivateLinkResources struct { + // The list of Kusto Private Link Resources. + Value []*KustoPoolPrivateLinkResources `json:"value,omitempty"` +} + // PrivateLinkResourcesClientGetOptions contains the optional parameters for the PrivateLinkResourcesClient.Get method. type PrivateLinkResourcesClientGetOptions struct { // placeholder for future optional parameters } -// PrivateLinkResourcesClientListOptions contains the optional parameters for the PrivateLinkResourcesClient.List method. +// PrivateLinkResourcesClientListOptions contains the optional parameters for the PrivateLinkResourcesClient.NewListPager +// method. type PrivateLinkResourcesClientListOptions struct { // placeholder for future optional parameters } +// PrivateLinkResourcesProperties - Private Link Resources Properties. +type PrivateLinkResourcesProperties struct { + // READ-ONLY; The Private link resources GroupId + GroupID *string `json:"groupId,omitempty" azure:"ro"` + + // READ-ONLY; The provisioned state of the resource. + ProvisioningState *ResourceProvisioningState `json:"provisioningState,omitempty" azure:"ro"` + + // READ-ONLY; The private link resource required member names. + RequiredMembers []*string `json:"requiredMembers,omitempty" azure:"ro"` + + // READ-ONLY; The private link resource required zone names. + RequiredZoneNames []*string `json:"requiredZoneNames,omitempty" azure:"ro"` +} + // PrivateLinkServiceConnectionState - Connection state details of the private endpoint type PrivateLinkServiceConnectionState struct { // The private link service connection description. @@ -3851,7 +3994,7 @@ type RestorableDroppedSQLPoolsClientGetOptions struct { // placeholder for future optional parameters } -// RestorableDroppedSQLPoolsClientListByWorkspaceOptions contains the optional parameters for the RestorableDroppedSQLPoolsClient.ListByWorkspace +// RestorableDroppedSQLPoolsClientListByWorkspaceOptions contains the optional parameters for the RestorableDroppedSQLPoolsClient.NewListByWorkspacePager // method. type RestorableDroppedSQLPoolsClientListByWorkspaceOptions struct { // placeholder for future optional parameters @@ -3927,7 +4070,7 @@ type SKUDescription struct { ResourceType *string `json:"resourceType,omitempty" azure:"ro"` // READ-ONLY; The restrictions because of which SKU cannot be used - Restrictions []interface{} `json:"restrictions,omitempty" azure:"ro"` + Restrictions []any `json:"restrictions,omitempty" azure:"ro"` // READ-ONLY; The size of the SKU Size *string `json:"size,omitempty" azure:"ro"` @@ -3984,7 +4127,7 @@ type SQLPoolBlobAuditingPoliciesClientGetOptions struct { // placeholder for future optional parameters } -// SQLPoolBlobAuditingPoliciesClientListBySQLPoolOptions contains the optional parameters for the SQLPoolBlobAuditingPoliciesClient.ListBySQLPool +// SQLPoolBlobAuditingPoliciesClientListBySQLPoolOptions contains the optional parameters for the SQLPoolBlobAuditingPoliciesClient.NewListBySQLPoolPager // method. type SQLPoolBlobAuditingPoliciesClientListBySQLPoolOptions struct { // placeholder for future optional parameters @@ -4195,7 +4338,7 @@ type SQLPoolGeoBackupPoliciesClientGetOptions struct { // placeholder for future optional parameters } -// SQLPoolGeoBackupPoliciesClientListOptions contains the optional parameters for the SQLPoolGeoBackupPoliciesClient.List +// SQLPoolGeoBackupPoliciesClientListOptions contains the optional parameters for the SQLPoolGeoBackupPoliciesClient.NewListPager // method. type SQLPoolGeoBackupPoliciesClientListOptions struct { // placeholder for future optional parameters @@ -4300,13 +4443,14 @@ type SQLPoolOperationProperties struct { State *ManagementOperationState `json:"state,omitempty" azure:"ro"` } -// SQLPoolOperationResultsClientGetLocationHeaderResultOptions contains the optional parameters for the SQLPoolOperationResultsClient.GetLocationHeaderResult +// SQLPoolOperationResultsClientBeginGetLocationHeaderResultOptions contains the optional parameters for the SQLPoolOperationResultsClient.BeginGetLocationHeaderResult // method. -type SQLPoolOperationResultsClientGetLocationHeaderResultOptions struct { - // placeholder for future optional parameters +type SQLPoolOperationResultsClientBeginGetLocationHeaderResultOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string } -// SQLPoolOperationsClientListOptions contains the optional parameters for the SQLPoolOperationsClient.List method. +// SQLPoolOperationsClientListOptions contains the optional parameters for the SQLPoolOperationsClient.NewListPager method. type SQLPoolOperationsClientListOptions struct { // placeholder for future optional parameters } @@ -4338,7 +4482,8 @@ type SQLPoolReplicationLinksClientGetByNameOptions struct { // placeholder for future optional parameters } -// SQLPoolReplicationLinksClientListOptions contains the optional parameters for the SQLPoolReplicationLinksClient.List method. +// SQLPoolReplicationLinksClientListOptions contains the optional parameters for the SQLPoolReplicationLinksClient.NewListPager +// method. type SQLPoolReplicationLinksClientListOptions struct { // placeholder for future optional parameters } @@ -4405,7 +4550,8 @@ type SQLPoolRestorePointsClientGetOptions struct { // placeholder for future optional parameters } -// SQLPoolRestorePointsClientListOptions contains the optional parameters for the SQLPoolRestorePointsClient.List method. +// SQLPoolRestorePointsClientListOptions contains the optional parameters for the SQLPoolRestorePointsClient.NewListPager +// method. type SQLPoolRestorePointsClientListOptions struct { // placeholder for future optional parameters } @@ -4436,7 +4582,7 @@ type SQLPoolSchemasClientGetOptions struct { // placeholder for future optional parameters } -// SQLPoolSchemasClientListOptions contains the optional parameters for the SQLPoolSchemasClient.List method. +// SQLPoolSchemasClientListOptions contains the optional parameters for the SQLPoolSchemasClient.NewListPager method. type SQLPoolSchemasClientListOptions struct { // An OData filter expression that filters elements in the collection. Filter *string @@ -4454,7 +4600,7 @@ type SQLPoolSecurityAlertPoliciesClientGetOptions struct { // placeholder for future optional parameters } -// SQLPoolSecurityAlertPoliciesClientListOptions contains the optional parameters for the SQLPoolSecurityAlertPoliciesClient.List +// SQLPoolSecurityAlertPoliciesClientListOptions contains the optional parameters for the SQLPoolSecurityAlertPoliciesClient.NewListPager // method. type SQLPoolSecurityAlertPoliciesClientListOptions struct { // placeholder for future optional parameters @@ -4504,14 +4650,14 @@ type SQLPoolSensitivityLabelsClientGetOptions struct { // placeholder for future optional parameters } -// SQLPoolSensitivityLabelsClientListCurrentOptions contains the optional parameters for the SQLPoolSensitivityLabelsClient.ListCurrent +// SQLPoolSensitivityLabelsClientListCurrentOptions contains the optional parameters for the SQLPoolSensitivityLabelsClient.NewListCurrentPager // method. type SQLPoolSensitivityLabelsClientListCurrentOptions struct { // An OData filter expression that filters elements in the collection. Filter *string } -// SQLPoolSensitivityLabelsClientListRecommendedOptions contains the optional parameters for the SQLPoolSensitivityLabelsClient.ListRecommended +// SQLPoolSensitivityLabelsClientListRecommendedOptions contains the optional parameters for the SQLPoolSensitivityLabelsClient.NewListRecommendedPager // method. type SQLPoolSensitivityLabelsClientListRecommendedOptions struct { // An OData filter expression that filters elements in the collection. @@ -4540,7 +4686,7 @@ type SQLPoolTable struct { Type *string `json:"type,omitempty" azure:"ro"` } -// SQLPoolTableColumnsClientListByTableNameOptions contains the optional parameters for the SQLPoolTableColumnsClient.ListByTableName +// SQLPoolTableColumnsClientListByTableNameOptions contains the optional parameters for the SQLPoolTableColumnsClient.NewListByTableNamePager // method. type SQLPoolTableColumnsClientListByTableNameOptions struct { // An OData filter expression that filters elements in the collection. @@ -4561,7 +4707,8 @@ type SQLPoolTablesClientGetOptions struct { // placeholder for future optional parameters } -// SQLPoolTablesClientListBySchemaOptions contains the optional parameters for the SQLPoolTablesClient.ListBySchema method. +// SQLPoolTablesClientListBySchemaOptions contains the optional parameters for the SQLPoolTablesClient.NewListBySchemaPager +// method. type SQLPoolTablesClientListBySchemaOptions struct { // An OData filter expression that filters elements in the collection. Filter *string @@ -4579,7 +4726,7 @@ type SQLPoolTransparentDataEncryptionsClientGetOptions struct { // placeholder for future optional parameters } -// SQLPoolTransparentDataEncryptionsClientListOptions contains the optional parameters for the SQLPoolTransparentDataEncryptionsClient.List +// SQLPoolTransparentDataEncryptionsClientListOptions contains the optional parameters for the SQLPoolTransparentDataEncryptionsClient.NewListPager // method. type SQLPoolTransparentDataEncryptionsClientListOptions struct { // placeholder for future optional parameters @@ -4618,7 +4765,7 @@ type SQLPoolUsageListResult struct { NextLink *string `json:"nextLink,omitempty" azure:"ro"` } -// SQLPoolUsagesClientListOptions contains the optional parameters for the SQLPoolUsagesClient.List method. +// SQLPoolUsagesClientListOptions contains the optional parameters for the SQLPoolUsagesClient.NewListPager method. type SQLPoolUsagesClientListOptions struct { // placeholder for future optional parameters } @@ -4736,7 +4883,7 @@ type SQLPoolVulnerabilityAssessmentScansClientGetOptions struct { // placeholder for future optional parameters } -// SQLPoolVulnerabilityAssessmentScansClientListOptions contains the optional parameters for the SQLPoolVulnerabilityAssessmentScansClient.List +// SQLPoolVulnerabilityAssessmentScansClientListOptions contains the optional parameters for the SQLPoolVulnerabilityAssessmentScansClient.NewListPager // method. type SQLPoolVulnerabilityAssessmentScansClientListOptions struct { // placeholder for future optional parameters @@ -4775,7 +4922,7 @@ type SQLPoolVulnerabilityAssessmentsClientGetOptions struct { // placeholder for future optional parameters } -// SQLPoolVulnerabilityAssessmentsClientListOptions contains the optional parameters for the SQLPoolVulnerabilityAssessmentsClient.List +// SQLPoolVulnerabilityAssessmentsClientListOptions contains the optional parameters for the SQLPoolVulnerabilityAssessmentsClient.NewListPager // method. type SQLPoolVulnerabilityAssessmentsClientListOptions struct { // placeholder for future optional parameters @@ -4801,7 +4948,7 @@ type SQLPoolWorkloadClassifierClientGetOptions struct { // placeholder for future optional parameters } -// SQLPoolWorkloadClassifierClientListOptions contains the optional parameters for the SQLPoolWorkloadClassifierClient.List +// SQLPoolWorkloadClassifierClientListOptions contains the optional parameters for the SQLPoolWorkloadClassifierClient.NewListPager // method. type SQLPoolWorkloadClassifierClientListOptions struct { // placeholder for future optional parameters @@ -4826,7 +4973,8 @@ type SQLPoolWorkloadGroupClientGetOptions struct { // placeholder for future optional parameters } -// SQLPoolWorkloadGroupClientListOptions contains the optional parameters for the SQLPoolWorkloadGroupClient.List method. +// SQLPoolWorkloadGroupClientListOptions contains the optional parameters for the SQLPoolWorkloadGroupClient.NewListPager +// method. type SQLPoolWorkloadGroupClientListOptions struct { // placeholder for future optional parameters } @@ -4855,12 +5003,18 @@ type SQLPoolsClientBeginResumeOptions struct { ResumeToken string } +// SQLPoolsClientBeginUpdateOptions contains the optional parameters for the SQLPoolsClient.BeginUpdate method. +type SQLPoolsClientBeginUpdateOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + // SQLPoolsClientGetOptions contains the optional parameters for the SQLPoolsClient.Get method. type SQLPoolsClientGetOptions struct { // placeholder for future optional parameters } -// SQLPoolsClientListByWorkspaceOptions contains the optional parameters for the SQLPoolsClient.ListByWorkspace method. +// SQLPoolsClientListByWorkspaceOptions contains the optional parameters for the SQLPoolsClient.NewListByWorkspacePager method. type SQLPoolsClientListByWorkspaceOptions struct { // placeholder for future optional parameters } @@ -4870,11 +5024,6 @@ type SQLPoolsClientRenameOptions struct { // placeholder for future optional parameters } -// SQLPoolsClientUpdateOptions contains the optional parameters for the SQLPoolsClient.Update method. -type SQLPoolsClientUpdateOptions struct { - // placeholder for future optional parameters -} - // SecretBaseClassification provides polymorphic access to related types. // Call the interface's GetSecretBase() method to access the common type. // Use a type switch to determine the concrete type. The possible types are: @@ -4946,7 +5095,7 @@ type SelfHostedIntegrationRuntime struct { Type *IntegrationRuntimeType `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Integration runtime description. Description *string `json:"description,omitempty"` @@ -4968,7 +5117,7 @@ func (s *SelfHostedIntegrationRuntime) GetIntegrationRuntime() *IntegrationRunti // SelfHostedIntegrationRuntimeNode - Properties of Self-hosted integration runtime node. type SelfHostedIntegrationRuntimeNode struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // READ-ONLY; The integration runtime capabilities dictionary Capabilities map[string]*string `json:"capabilities,omitempty" azure:"ro"` @@ -5034,7 +5183,7 @@ type SelfHostedIntegrationRuntimeStatus struct { TypeProperties *SelfHostedIntegrationRuntimeStatusTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // READ-ONLY; The workspace name which the integration runtime belong to. DataFactoryName *string `json:"dataFactoryName,omitempty" azure:"ro"` @@ -5478,6 +5627,9 @@ type SparkConfigurationInfo struct { // Annotations for SparkConfiguration. Annotations []*string `json:"annotations,omitempty"` + // SparkConfiguration merge configs. + ConfigMergeRule map[string]*string `json:"configMergeRule,omitempty"` + // The timestamp of resource creation. Created *time.Time `json:"created,omitempty"` @@ -5518,7 +5670,7 @@ type SparkConfigurationResource struct { Type *string `json:"type,omitempty" azure:"ro"` } -// SparkConfigurationsClientListByWorkspaceOptions contains the optional parameters for the SparkConfigurationsClient.ListByWorkspace +// SparkConfigurationsClientListByWorkspaceOptions contains the optional parameters for the SparkConfigurationsClient.NewListByWorkspacePager // method. type SparkConfigurationsClientListByWorkspaceOptions struct { // placeholder for future optional parameters @@ -6223,7 +6375,7 @@ type WorkspaceManagedSQLServerBlobAuditingPoliciesClientGetOptions struct { // placeholder for future optional parameters } -// WorkspaceManagedSQLServerBlobAuditingPoliciesClientListByWorkspaceOptions contains the optional parameters for the WorkspaceManagedSQLServerBlobAuditingPoliciesClient.ListByWorkspace +// WorkspaceManagedSQLServerBlobAuditingPoliciesClientListByWorkspaceOptions contains the optional parameters for the WorkspaceManagedSQLServerBlobAuditingPoliciesClient.NewListByWorkspacePager // method. type WorkspaceManagedSQLServerBlobAuditingPoliciesClientListByWorkspaceOptions struct { // placeholder for future optional parameters @@ -6242,7 +6394,7 @@ type WorkspaceManagedSQLServerDedicatedSQLMinimalTLSSettingsClientGetOptions str // placeholder for future optional parameters } -// WorkspaceManagedSQLServerDedicatedSQLMinimalTLSSettingsClientListOptions contains the optional parameters for the WorkspaceManagedSQLServerDedicatedSQLMinimalTLSSettingsClient.List +// WorkspaceManagedSQLServerDedicatedSQLMinimalTLSSettingsClientListOptions contains the optional parameters for the WorkspaceManagedSQLServerDedicatedSQLMinimalTLSSettingsClient.NewListPager // method. type WorkspaceManagedSQLServerDedicatedSQLMinimalTLSSettingsClientListOptions struct { // placeholder for future optional parameters @@ -6268,7 +6420,7 @@ type WorkspaceManagedSQLServerEncryptionProtectorClientGetOptions struct { // placeholder for future optional parameters } -// WorkspaceManagedSQLServerEncryptionProtectorClientListOptions contains the optional parameters for the WorkspaceManagedSQLServerEncryptionProtectorClient.List +// WorkspaceManagedSQLServerEncryptionProtectorClientListOptions contains the optional parameters for the WorkspaceManagedSQLServerEncryptionProtectorClient.NewListPager // method. type WorkspaceManagedSQLServerEncryptionProtectorClientListOptions struct { // placeholder for future optional parameters @@ -6288,7 +6440,7 @@ type WorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClientGetOptions struc } // WorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClientListByWorkspaceOptions contains the optional parameters for -// the WorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClient.ListByWorkspace method. +// the WorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClient.NewListByWorkspacePager method. type WorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClientListByWorkspaceOptions struct { // placeholder for future optional parameters } @@ -6299,7 +6451,7 @@ type WorkspaceManagedSQLServerRecoverableSQLPoolsClientGetOptions struct { // placeholder for future optional parameters } -// WorkspaceManagedSQLServerRecoverableSQLPoolsClientListOptions contains the optional parameters for the WorkspaceManagedSQLServerRecoverableSQLPoolsClient.List +// WorkspaceManagedSQLServerRecoverableSQLPoolsClientListOptions contains the optional parameters for the WorkspaceManagedSQLServerRecoverableSQLPoolsClient.NewListPager // method. type WorkspaceManagedSQLServerRecoverableSQLPoolsClientListOptions struct { // placeholder for future optional parameters @@ -6318,13 +6470,13 @@ type WorkspaceManagedSQLServerSecurityAlertPolicyClientGetOptions struct { // placeholder for future optional parameters } -// WorkspaceManagedSQLServerSecurityAlertPolicyClientListOptions contains the optional parameters for the WorkspaceManagedSQLServerSecurityAlertPolicyClient.List +// WorkspaceManagedSQLServerSecurityAlertPolicyClientListOptions contains the optional parameters for the WorkspaceManagedSQLServerSecurityAlertPolicyClient.NewListPager // method. type WorkspaceManagedSQLServerSecurityAlertPolicyClientListOptions struct { // placeholder for future optional parameters } -// WorkspaceManagedSQLServerUsagesClientListOptions contains the optional parameters for the WorkspaceManagedSQLServerUsagesClient.List +// WorkspaceManagedSQLServerUsagesClientListOptions contains the optional parameters for the WorkspaceManagedSQLServerUsagesClient.NewListPager // method. type WorkspaceManagedSQLServerUsagesClientListOptions struct { // placeholder for future optional parameters @@ -6348,7 +6500,7 @@ type WorkspaceManagedSQLServerVulnerabilityAssessmentsClientGetOptions struct { // placeholder for future optional parameters } -// WorkspaceManagedSQLServerVulnerabilityAssessmentsClientListOptions contains the optional parameters for the WorkspaceManagedSQLServerVulnerabilityAssessmentsClient.List +// WorkspaceManagedSQLServerVulnerabilityAssessmentsClientListOptions contains the optional parameters for the WorkspaceManagedSQLServerVulnerabilityAssessmentsClient.NewListPager // method. type WorkspaceManagedSQLServerVulnerabilityAssessmentsClientListOptions struct { // placeholder for future optional parameters @@ -6448,13 +6600,13 @@ type WorkspaceProperties struct { AdlaResourceID *string `json:"adlaResourceId,omitempty" azure:"ro"` // READ-ONLY; Workspace level configs and feature flags - ExtraProperties map[string]interface{} `json:"extraProperties,omitempty" azure:"ro"` + ExtraProperties map[string]any `json:"extraProperties,omitempty" azure:"ro"` // READ-ONLY; Resource provisioning state ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; Workspace settings - Settings map[string]interface{} `json:"settings,omitempty" azure:"ro"` + Settings map[string]any `json:"settings,omitempty" azure:"ro"` // READ-ONLY; The workspace unique identifier WorkspaceUID *string `json:"workspaceUID,omitempty" azure:"ro"` @@ -6533,13 +6685,13 @@ type WorkspacesClientGetOptions struct { // placeholder for future optional parameters } -// WorkspacesClientListByResourceGroupOptions contains the optional parameters for the WorkspacesClient.ListByResourceGroup +// WorkspacesClientListByResourceGroupOptions contains the optional parameters for the WorkspacesClient.NewListByResourceGroupPager // method. type WorkspacesClientListByResourceGroupOptions struct { // placeholder for future optional parameters } -// WorkspacesClientListOptions contains the optional parameters for the WorkspacesClient.List method. +// WorkspacesClientListOptions contains the optional parameters for the WorkspacesClient.NewListPager method. type WorkspacesClientListOptions struct { // placeholder for future optional parameters } diff --git a/sdk/resourcemanager/synapse/armsynapse/models_serde.go b/sdk/resourcemanager/synapse/armsynapse/models_serde.go new file mode 100644 index 000000000000..2103fa19323b --- /dev/null +++ b/sdk/resourcemanager/synapse/armsynapse/models_serde.go @@ -0,0 +1,12707 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armsynapse + +import ( + "encoding/json" + "fmt" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "reflect" +) + +// MarshalJSON implements the json.Marshaller interface for type AADAdminProperties. +func (a AADAdminProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "administratorType", a.AdministratorType) + populate(objectMap, "login", a.Login) + populate(objectMap, "sid", a.Sid) + populate(objectMap, "tenantId", a.TenantID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AADAdminProperties. +func (a *AADAdminProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "administratorType": + err = unpopulate(val, "AdministratorType", &a.AdministratorType) + delete(rawMsg, key) + case "login": + err = unpopulate(val, "Login", &a.Login) + delete(rawMsg, key) + case "sid": + err = unpopulate(val, "Sid", &a.Sid) + delete(rawMsg, key) + case "tenantId": + err = unpopulate(val, "TenantID", &a.TenantID) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type AttachedDatabaseConfiguration. +func (a AttachedDatabaseConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", a.ID) + populate(objectMap, "location", a.Location) + populate(objectMap, "name", a.Name) + populate(objectMap, "properties", a.Properties) + populate(objectMap, "systemData", a.SystemData) + populate(objectMap, "type", a.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AttachedDatabaseConfiguration. +func (a *AttachedDatabaseConfiguration) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &a.ID) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &a.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &a.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &a.Properties) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &a.SystemData) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &a.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type AttachedDatabaseConfigurationListResult. +func (a AttachedDatabaseConfigurationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "value", a.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AttachedDatabaseConfigurationListResult. +func (a *AttachedDatabaseConfigurationListResult) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "value": + err = unpopulate(val, "Value", &a.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type AttachedDatabaseConfigurationProperties. +func (a AttachedDatabaseConfigurationProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "attachedDatabaseNames", a.AttachedDatabaseNames) + populate(objectMap, "databaseName", a.DatabaseName) + populate(objectMap, "defaultPrincipalsModificationKind", a.DefaultPrincipalsModificationKind) + populate(objectMap, "clusterResourceId", a.KustoPoolResourceID) + populate(objectMap, "provisioningState", a.ProvisioningState) + populate(objectMap, "tableLevelSharingProperties", a.TableLevelSharingProperties) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AttachedDatabaseConfigurationProperties. +func (a *AttachedDatabaseConfigurationProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "attachedDatabaseNames": + err = unpopulate(val, "AttachedDatabaseNames", &a.AttachedDatabaseNames) + delete(rawMsg, key) + case "databaseName": + err = unpopulate(val, "DatabaseName", &a.DatabaseName) + delete(rawMsg, key) + case "defaultPrincipalsModificationKind": + err = unpopulate(val, "DefaultPrincipalsModificationKind", &a.DefaultPrincipalsModificationKind) + delete(rawMsg, key) + case "clusterResourceId": + err = unpopulate(val, "KustoPoolResourceID", &a.KustoPoolResourceID) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &a.ProvisioningState) + delete(rawMsg, key) + case "tableLevelSharingProperties": + err = unpopulate(val, "TableLevelSharingProperties", &a.TableLevelSharingProperties) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type AutoPauseProperties. +func (a AutoPauseProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "delayInMinutes", a.DelayInMinutes) + populate(objectMap, "enabled", a.Enabled) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AutoPauseProperties. +func (a *AutoPauseProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "delayInMinutes": + err = unpopulate(val, "DelayInMinutes", &a.DelayInMinutes) + delete(rawMsg, key) + case "enabled": + err = unpopulate(val, "Enabled", &a.Enabled) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type AutoScaleProperties. +func (a AutoScaleProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "enabled", a.Enabled) + populate(objectMap, "maxNodeCount", a.MaxNodeCount) + populate(objectMap, "minNodeCount", a.MinNodeCount) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AutoScaleProperties. +func (a *AutoScaleProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "enabled": + err = unpopulate(val, "Enabled", &a.Enabled) + delete(rawMsg, key) + case "maxNodeCount": + err = unpopulate(val, "MaxNodeCount", &a.MaxNodeCount) + delete(rawMsg, key) + case "minNodeCount": + err = unpopulate(val, "MinNodeCount", &a.MinNodeCount) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type AvailableRpOperation. +func (a AvailableRpOperation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "display", a.Display) + populate(objectMap, "isDataAction", a.IsDataAction) + populate(objectMap, "name", a.Name) + populate(objectMap, "origin", a.Origin) + populate(objectMap, "properties", a.Properties) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AvailableRpOperation. +func (a *AvailableRpOperation) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "display": + err = unpopulate(val, "Display", &a.Display) + delete(rawMsg, key) + case "isDataAction": + err = unpopulate(val, "IsDataAction", &a.IsDataAction) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &a.Name) + delete(rawMsg, key) + case "origin": + err = unpopulate(val, "Origin", &a.Origin) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &a.Properties) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type AvailableRpOperationDisplayInfo. +func (a AvailableRpOperationDisplayInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "description", a.Description) + populate(objectMap, "operation", a.Operation) + populate(objectMap, "provider", a.Provider) + populate(objectMap, "resource", a.Resource) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AvailableRpOperationDisplayInfo. +func (a *AvailableRpOperationDisplayInfo) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "description": + err = unpopulate(val, "Description", &a.Description) + delete(rawMsg, key) + case "operation": + err = unpopulate(val, "Operation", &a.Operation) + delete(rawMsg, key) + case "provider": + err = unpopulate(val, "Provider", &a.Provider) + delete(rawMsg, key) + case "resource": + err = unpopulate(val, "Resource", &a.Resource) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type AzureADOnlyAuthentication. +func (a AzureADOnlyAuthentication) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", a.ID) + populate(objectMap, "name", a.Name) + populate(objectMap, "properties", a.Properties) + populate(objectMap, "type", a.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AzureADOnlyAuthentication. +func (a *AzureADOnlyAuthentication) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &a.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &a.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &a.Properties) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &a.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type AzureADOnlyAuthenticationListResult. +func (a AzureADOnlyAuthenticationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", a.NextLink) + populate(objectMap, "value", a.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AzureADOnlyAuthenticationListResult. +func (a *AzureADOnlyAuthenticationListResult) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &a.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &a.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type AzureADOnlyAuthenticationProperties. +func (a AzureADOnlyAuthenticationProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "azureADOnlyAuthentication", a.AzureADOnlyAuthentication) + populateTimeRFC3339(objectMap, "creationDate", a.CreationDate) + populate(objectMap, "state", a.State) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AzureADOnlyAuthenticationProperties. +func (a *AzureADOnlyAuthenticationProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "azureADOnlyAuthentication": + err = unpopulate(val, "AzureADOnlyAuthentication", &a.AzureADOnlyAuthentication) + delete(rawMsg, key) + case "creationDate": + err = unpopulateTimeRFC3339(val, "CreationDate", &a.CreationDate) + delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &a.State) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type AzureCapacity. +func (a AzureCapacity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "default", a.Default) + populate(objectMap, "maximum", a.Maximum) + populate(objectMap, "minimum", a.Minimum) + populate(objectMap, "scaleType", a.ScaleType) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AzureCapacity. +func (a *AzureCapacity) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "default": + err = unpopulate(val, "Default", &a.Default) + delete(rawMsg, key) + case "maximum": + err = unpopulate(val, "Maximum", &a.Maximum) + delete(rawMsg, key) + case "minimum": + err = unpopulate(val, "Minimum", &a.Minimum) + delete(rawMsg, key) + case "scaleType": + err = unpopulate(val, "ScaleType", &a.ScaleType) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type AzureEntityResource. +func (a AzureEntityResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "etag", a.Etag) + populate(objectMap, "id", a.ID) + populate(objectMap, "name", a.Name) + populate(objectMap, "type", a.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AzureEntityResource. +func (a *AzureEntityResource) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "etag": + err = unpopulate(val, "Etag", &a.Etag) + delete(rawMsg, key) + case "id": + err = unpopulate(val, "ID", &a.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &a.Name) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &a.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type AzureResourceSKU. +func (a AzureResourceSKU) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "capacity", a.Capacity) + populate(objectMap, "resourceType", a.ResourceType) + populate(objectMap, "sku", a.SKU) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AzureResourceSKU. +func (a *AzureResourceSKU) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "capacity": + err = unpopulate(val, "Capacity", &a.Capacity) + delete(rawMsg, key) + case "resourceType": + err = unpopulate(val, "ResourceType", &a.ResourceType) + delete(rawMsg, key) + case "sku": + err = unpopulate(val, "SKU", &a.SKU) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type AzureSKU. +func (a AzureSKU) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "capacity", a.Capacity) + populate(objectMap, "name", a.Name) + populate(objectMap, "size", a.Size) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AzureSKU. +func (a *AzureSKU) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "capacity": + err = unpopulate(val, "Capacity", &a.Capacity) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &a.Name) + delete(rawMsg, key) + case "size": + err = unpopulate(val, "Size", &a.Size) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type BigDataPoolPatchInfo. +func (b BigDataPoolPatchInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "tags", b.Tags) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type BigDataPoolPatchInfo. +func (b *BigDataPoolPatchInfo) 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", b, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "tags": + err = unpopulate(val, "Tags", &b.Tags) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", b, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type BigDataPoolResourceInfo. +func (b BigDataPoolResourceInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", b.ID) + populate(objectMap, "location", b.Location) + populate(objectMap, "name", b.Name) + populate(objectMap, "properties", b.Properties) + populate(objectMap, "tags", b.Tags) + populate(objectMap, "type", b.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type BigDataPoolResourceInfo. +func (b *BigDataPoolResourceInfo) 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", b, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &b.ID) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &b.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &b.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &b.Properties) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &b.Tags) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &b.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", b, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type BigDataPoolResourceInfoListResult. +func (b BigDataPoolResourceInfoListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", b.NextLink) + populate(objectMap, "value", b.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type BigDataPoolResourceInfoListResult. +func (b *BigDataPoolResourceInfoListResult) 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", b, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &b.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &b.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", b, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type BigDataPoolResourceProperties. +func (b BigDataPoolResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "autoPause", b.AutoPause) + populate(objectMap, "autoScale", b.AutoScale) + populate(objectMap, "cacheSize", b.CacheSize) + populateTimeRFC3339(objectMap, "creationDate", b.CreationDate) + populate(objectMap, "customLibraries", b.CustomLibraries) + populate(objectMap, "defaultSparkLogFolder", b.DefaultSparkLogFolder) + populate(objectMap, "dynamicExecutorAllocation", b.DynamicExecutorAllocation) + populate(objectMap, "isAutotuneEnabled", b.IsAutotuneEnabled) + populate(objectMap, "isComputeIsolationEnabled", b.IsComputeIsolationEnabled) + populateTimeRFC3339(objectMap, "lastSucceededTimestamp", b.LastSucceededTimestamp) + populate(objectMap, "libraryRequirements", b.LibraryRequirements) + populate(objectMap, "nodeCount", b.NodeCount) + populate(objectMap, "nodeSize", b.NodeSize) + populate(objectMap, "nodeSizeFamily", b.NodeSizeFamily) + populate(objectMap, "provisioningState", b.ProvisioningState) + populate(objectMap, "sessionLevelPackagesEnabled", b.SessionLevelPackagesEnabled) + populate(objectMap, "sparkConfigProperties", b.SparkConfigProperties) + populate(objectMap, "sparkEventsFolder", b.SparkEventsFolder) + populate(objectMap, "sparkVersion", b.SparkVersion) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type BigDataPoolResourceProperties. +func (b *BigDataPoolResourceProperties) 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", b, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "autoPause": + err = unpopulate(val, "AutoPause", &b.AutoPause) + delete(rawMsg, key) + case "autoScale": + err = unpopulate(val, "AutoScale", &b.AutoScale) + delete(rawMsg, key) + case "cacheSize": + err = unpopulate(val, "CacheSize", &b.CacheSize) + delete(rawMsg, key) + case "creationDate": + err = unpopulateTimeRFC3339(val, "CreationDate", &b.CreationDate) + delete(rawMsg, key) + case "customLibraries": + err = unpopulate(val, "CustomLibraries", &b.CustomLibraries) + delete(rawMsg, key) + case "defaultSparkLogFolder": + err = unpopulate(val, "DefaultSparkLogFolder", &b.DefaultSparkLogFolder) + delete(rawMsg, key) + case "dynamicExecutorAllocation": + err = unpopulate(val, "DynamicExecutorAllocation", &b.DynamicExecutorAllocation) + delete(rawMsg, key) + case "isAutotuneEnabled": + err = unpopulate(val, "IsAutotuneEnabled", &b.IsAutotuneEnabled) + delete(rawMsg, key) + case "isComputeIsolationEnabled": + err = unpopulate(val, "IsComputeIsolationEnabled", &b.IsComputeIsolationEnabled) + delete(rawMsg, key) + case "lastSucceededTimestamp": + err = unpopulateTimeRFC3339(val, "LastSucceededTimestamp", &b.LastSucceededTimestamp) + delete(rawMsg, key) + case "libraryRequirements": + err = unpopulate(val, "LibraryRequirements", &b.LibraryRequirements) + delete(rawMsg, key) + case "nodeCount": + err = unpopulate(val, "NodeCount", &b.NodeCount) + delete(rawMsg, key) + case "nodeSize": + err = unpopulate(val, "NodeSize", &b.NodeSize) + delete(rawMsg, key) + case "nodeSizeFamily": + err = unpopulate(val, "NodeSizeFamily", &b.NodeSizeFamily) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &b.ProvisioningState) + delete(rawMsg, key) + case "sessionLevelPackagesEnabled": + err = unpopulate(val, "SessionLevelPackagesEnabled", &b.SessionLevelPackagesEnabled) + delete(rawMsg, key) + case "sparkConfigProperties": + err = unpopulate(val, "SparkConfigProperties", &b.SparkConfigProperties) + delete(rawMsg, key) + case "sparkEventsFolder": + err = unpopulate(val, "SparkEventsFolder", &b.SparkEventsFolder) + delete(rawMsg, key) + case "sparkVersion": + err = unpopulate(val, "SparkVersion", &b.SparkVersion) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", b, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type CheckNameAvailabilityRequest. +func (c CheckNameAvailabilityRequest) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "name", c.Name) + populate(objectMap, "type", c.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CheckNameAvailabilityRequest. +func (c *CheckNameAvailabilityRequest) 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 "name": + err = unpopulate(val, "Name", &c.Name) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &c.Type) + 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 CheckNameAvailabilityResponse. +func (c CheckNameAvailabilityResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "available", c.Available) + populate(objectMap, "message", c.Message) + populate(objectMap, "name", c.Name) + populate(objectMap, "reason", c.Reason) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CheckNameAvailabilityResponse. +func (c *CheckNameAvailabilityResponse) 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 "available": + err = unpopulate(val, "Available", &c.Available) + delete(rawMsg, key) + case "message": + err = unpopulate(val, "Message", &c.Message) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &c.Name) + delete(rawMsg, key) + case "reason": + err = unpopulate(val, "Reason", &c.Reason) + 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 CheckNameResult. +func (c CheckNameResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "message", c.Message) + populate(objectMap, "name", c.Name) + populate(objectMap, "nameAvailable", c.NameAvailable) + populate(objectMap, "reason", c.Reason) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CheckNameResult. +func (c *CheckNameResult) 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 "message": + err = unpopulate(val, "Message", &c.Message) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &c.Name) + delete(rawMsg, key) + case "nameAvailable": + err = unpopulate(val, "NameAvailable", &c.NameAvailable) + delete(rawMsg, key) + case "reason": + err = unpopulate(val, "Reason", &c.Reason) + 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 ClusterPrincipalAssignment. +func (c ClusterPrincipalAssignment) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", c.ID) + populate(objectMap, "name", c.Name) + populate(objectMap, "properties", c.Properties) + populate(objectMap, "systemData", c.SystemData) + populate(objectMap, "type", c.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ClusterPrincipalAssignment. +func (c *ClusterPrincipalAssignment) 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 "id": + err = unpopulate(val, "ID", &c.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &c.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &c.Properties) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &c.SystemData) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &c.Type) + 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 ClusterPrincipalAssignmentCheckNameRequest. +func (c ClusterPrincipalAssignmentCheckNameRequest) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "name", c.Name) + objectMap["type"] = "Microsoft.Synapse/workspaces/kustoPools/principalAssignments" + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ClusterPrincipalAssignmentCheckNameRequest. +func (c *ClusterPrincipalAssignmentCheckNameRequest) 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 "name": + err = unpopulate(val, "Name", &c.Name) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &c.Type) + 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 ClusterPrincipalAssignmentListResult. +func (c ClusterPrincipalAssignmentListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "value", c.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ClusterPrincipalAssignmentListResult. +func (c *ClusterPrincipalAssignmentListResult) 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 "value": + err = unpopulate(val, "Value", &c.Value) + 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 ClusterPrincipalProperties. +func (c ClusterPrincipalProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "aadObjectId", c.AADObjectID) + populate(objectMap, "principalId", c.PrincipalID) + populate(objectMap, "principalName", c.PrincipalName) + populate(objectMap, "principalType", c.PrincipalType) + populate(objectMap, "provisioningState", c.ProvisioningState) + populate(objectMap, "role", c.Role) + populate(objectMap, "tenantId", c.TenantID) + populate(objectMap, "tenantName", c.TenantName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ClusterPrincipalProperties. +func (c *ClusterPrincipalProperties) 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 "aadObjectId": + err = unpopulate(val, "AADObjectID", &c.AADObjectID) + delete(rawMsg, key) + case "principalId": + err = unpopulate(val, "PrincipalID", &c.PrincipalID) + delete(rawMsg, key) + case "principalName": + err = unpopulate(val, "PrincipalName", &c.PrincipalName) + delete(rawMsg, key) + case "principalType": + err = unpopulate(val, "PrincipalType", &c.PrincipalType) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &c.ProvisioningState) + delete(rawMsg, key) + case "role": + err = unpopulate(val, "Role", &c.Role) + delete(rawMsg, key) + case "tenantId": + err = unpopulate(val, "TenantID", &c.TenantID) + delete(rawMsg, key) + case "tenantName": + err = unpopulate(val, "TenantName", &c.TenantName) + 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 CmdkeySetup. +func (c CmdkeySetup) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + objectMap["type"] = "CmdkeySetup" + populate(objectMap, "typeProperties", c.TypeProperties) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CmdkeySetup. +func (c *CmdkeySetup) 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 "type": + err = unpopulate(val, "Type", &c.Type) + delete(rawMsg, key) + case "typeProperties": + err = unpopulate(val, "TypeProperties", &c.TypeProperties) + 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 CmdkeySetupTypeProperties. +func (c CmdkeySetupTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "password", c.Password) + populate(objectMap, "targetName", &c.TargetName) + populate(objectMap, "userName", &c.UserName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CmdkeySetupTypeProperties. +func (c *CmdkeySetupTypeProperties) 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 "password": + c.Password, err = unmarshalSecretBaseClassification(val) + delete(rawMsg, key) + case "targetName": + err = unpopulate(val, "TargetName", &c.TargetName) + delete(rawMsg, key) + case "userName": + err = unpopulate(val, "UserName", &c.UserName) + 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 ComponentSetup. +func (c ComponentSetup) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + objectMap["type"] = "ComponentSetup" + populate(objectMap, "typeProperties", c.TypeProperties) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ComponentSetup. +func (c *ComponentSetup) 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 "type": + err = unpopulate(val, "Type", &c.Type) + delete(rawMsg, key) + case "typeProperties": + err = unpopulate(val, "TypeProperties", &c.TypeProperties) + 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 CreateSQLPoolRestorePointDefinition. +func (c CreateSQLPoolRestorePointDefinition) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "restorePointLabel", c.RestorePointLabel) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CreateSQLPoolRestorePointDefinition. +func (c *CreateSQLPoolRestorePointDefinition) 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 "restorePointLabel": + err = unpopulate(val, "RestorePointLabel", &c.RestorePointLabel) + 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 CspWorkspaceAdminProperties. +func (c CspWorkspaceAdminProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "initialWorkspaceAdminObjectId", c.InitialWorkspaceAdminObjectID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CspWorkspaceAdminProperties. +func (c *CspWorkspaceAdminProperties) 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 "initialWorkspaceAdminObjectId": + err = unpopulate(val, "InitialWorkspaceAdminObjectID", &c.InitialWorkspaceAdminObjectID) + 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 CustomSetupBase. +func (c CustomSetupBase) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + objectMap["type"] = c.Type + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CustomSetupBase. +func (c *CustomSetupBase) 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 "type": + err = unpopulate(val, "Type", &c.Type) + 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 CustomerManagedKeyDetails. +func (c CustomerManagedKeyDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "kekIdentity", c.KekIdentity) + populate(objectMap, "key", c.Key) + populate(objectMap, "status", c.Status) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CustomerManagedKeyDetails. +func (c *CustomerManagedKeyDetails) 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 "kekIdentity": + err = unpopulate(val, "KekIdentity", &c.KekIdentity) + delete(rawMsg, key) + case "key": + err = unpopulate(val, "Key", &c.Key) + delete(rawMsg, key) + case "status": + err = unpopulate(val, "Status", &c.Status) + 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 DataConnection. +func (d DataConnection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", d.ID) + objectMap["kind"] = d.Kind + populate(objectMap, "location", d.Location) + populate(objectMap, "name", d.Name) + populate(objectMap, "systemData", d.SystemData) + populate(objectMap, "type", d.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DataConnection. +func (d *DataConnection) 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", d, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &d.ID) + delete(rawMsg, key) + case "kind": + err = unpopulate(val, "Kind", &d.Kind) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &d.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &d.Name) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &d.SystemData) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &d.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type DataConnectionCheckNameRequest. +func (d DataConnectionCheckNameRequest) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "name", d.Name) + objectMap["type"] = "Microsoft.Synapse/workspaces/kustoPools/databases/dataConnections" + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DataConnectionCheckNameRequest. +func (d *DataConnectionCheckNameRequest) 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", d, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "name": + err = unpopulate(val, "Name", &d.Name) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &d.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type DataConnectionListResult. +func (d DataConnectionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "value", d.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DataConnectionListResult. +func (d *DataConnectionListResult) 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", d, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "value": + d.Value, err = unmarshalDataConnectionClassificationArray(val) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type DataConnectionValidation. +func (d DataConnectionValidation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "dataConnectionName", d.DataConnectionName) + populate(objectMap, "properties", d.Properties) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DataConnectionValidation. +func (d *DataConnectionValidation) 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", d, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "dataConnectionName": + err = unpopulate(val, "DataConnectionName", &d.DataConnectionName) + delete(rawMsg, key) + case "properties": + d.Properties, err = unmarshalDataConnectionClassification(val) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type DataConnectionValidationListResult. +func (d DataConnectionValidationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "value", d.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DataConnectionValidationListResult. +func (d *DataConnectionValidationListResult) 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", d, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "value": + err = unpopulate(val, "Value", &d.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type DataConnectionValidationResult. +func (d DataConnectionValidationResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "errorMessage", d.ErrorMessage) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DataConnectionValidationResult. +func (d *DataConnectionValidationResult) 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", d, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "errorMessage": + err = unpopulate(val, "ErrorMessage", &d.ErrorMessage) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type DataLakeStorageAccountDetails. +func (d DataLakeStorageAccountDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "accountUrl", d.AccountURL) + populate(objectMap, "createManagedPrivateEndpoint", d.CreateManagedPrivateEndpoint) + populate(objectMap, "filesystem", d.Filesystem) + populate(objectMap, "resourceId", d.ResourceID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DataLakeStorageAccountDetails. +func (d *DataLakeStorageAccountDetails) 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", d, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "accountUrl": + err = unpopulate(val, "AccountURL", &d.AccountURL) + delete(rawMsg, key) + case "createManagedPrivateEndpoint": + err = unpopulate(val, "CreateManagedPrivateEndpoint", &d.CreateManagedPrivateEndpoint) + delete(rawMsg, key) + case "filesystem": + err = unpopulate(val, "Filesystem", &d.Filesystem) + delete(rawMsg, key) + case "resourceId": + err = unpopulate(val, "ResourceID", &d.ResourceID) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type DataMaskingPolicy. +func (d DataMaskingPolicy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", d.ID) + populate(objectMap, "kind", d.Kind) + populate(objectMap, "location", d.Location) + populate(objectMap, "managedBy", d.ManagedBy) + populate(objectMap, "name", d.Name) + populate(objectMap, "properties", d.Properties) + populate(objectMap, "type", d.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DataMaskingPolicy. +func (d *DataMaskingPolicy) 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", d, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &d.ID) + delete(rawMsg, key) + case "kind": + err = unpopulate(val, "Kind", &d.Kind) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &d.Location) + delete(rawMsg, key) + case "managedBy": + err = unpopulate(val, "ManagedBy", &d.ManagedBy) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &d.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &d.Properties) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &d.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type DataMaskingPolicyProperties. +func (d DataMaskingPolicyProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "applicationPrincipals", d.ApplicationPrincipals) + populate(objectMap, "dataMaskingState", d.DataMaskingState) + populate(objectMap, "exemptPrincipals", d.ExemptPrincipals) + populate(objectMap, "maskingLevel", d.MaskingLevel) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DataMaskingPolicyProperties. +func (d *DataMaskingPolicyProperties) 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", d, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "applicationPrincipals": + err = unpopulate(val, "ApplicationPrincipals", &d.ApplicationPrincipals) + delete(rawMsg, key) + case "dataMaskingState": + err = unpopulate(val, "DataMaskingState", &d.DataMaskingState) + delete(rawMsg, key) + case "exemptPrincipals": + err = unpopulate(val, "ExemptPrincipals", &d.ExemptPrincipals) + delete(rawMsg, key) + case "maskingLevel": + err = unpopulate(val, "MaskingLevel", &d.MaskingLevel) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type DataMaskingRule. +func (d DataMaskingRule) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", d.ID) + populate(objectMap, "kind", d.Kind) + populate(objectMap, "location", d.Location) + populate(objectMap, "name", d.Name) + populate(objectMap, "properties", d.Properties) + populate(objectMap, "type", d.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DataMaskingRule. +func (d *DataMaskingRule) 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", d, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &d.ID) + delete(rawMsg, key) + case "kind": + err = unpopulate(val, "Kind", &d.Kind) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &d.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &d.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &d.Properties) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &d.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type DataMaskingRuleListResult. +func (d DataMaskingRuleListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "value", d.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DataMaskingRuleListResult. +func (d *DataMaskingRuleListResult) 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", d, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "value": + err = unpopulate(val, "Value", &d.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type DataMaskingRuleProperties. +func (d DataMaskingRuleProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "aliasName", d.AliasName) + populate(objectMap, "columnName", d.ColumnName) + populate(objectMap, "id", d.ID) + populate(objectMap, "maskingFunction", d.MaskingFunction) + populate(objectMap, "numberFrom", d.NumberFrom) + populate(objectMap, "numberTo", d.NumberTo) + populate(objectMap, "prefixSize", d.PrefixSize) + populate(objectMap, "replacementString", d.ReplacementString) + populate(objectMap, "ruleState", d.RuleState) + populate(objectMap, "schemaName", d.SchemaName) + populate(objectMap, "suffixSize", d.SuffixSize) + populate(objectMap, "tableName", d.TableName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DataMaskingRuleProperties. +func (d *DataMaskingRuleProperties) 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", d, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "aliasName": + err = unpopulate(val, "AliasName", &d.AliasName) + delete(rawMsg, key) + case "columnName": + err = unpopulate(val, "ColumnName", &d.ColumnName) + delete(rawMsg, key) + case "id": + err = unpopulate(val, "ID", &d.ID) + delete(rawMsg, key) + case "maskingFunction": + err = unpopulate(val, "MaskingFunction", &d.MaskingFunction) + delete(rawMsg, key) + case "numberFrom": + err = unpopulate(val, "NumberFrom", &d.NumberFrom) + delete(rawMsg, key) + case "numberTo": + err = unpopulate(val, "NumberTo", &d.NumberTo) + delete(rawMsg, key) + case "prefixSize": + err = unpopulate(val, "PrefixSize", &d.PrefixSize) + delete(rawMsg, key) + case "replacementString": + err = unpopulate(val, "ReplacementString", &d.ReplacementString) + delete(rawMsg, key) + case "ruleState": + err = unpopulate(val, "RuleState", &d.RuleState) + delete(rawMsg, key) + case "schemaName": + err = unpopulate(val, "SchemaName", &d.SchemaName) + delete(rawMsg, key) + case "suffixSize": + err = unpopulate(val, "SuffixSize", &d.SuffixSize) + delete(rawMsg, key) + case "tableName": + err = unpopulate(val, "TableName", &d.TableName) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type DataWarehouseUserActivities. +func (d DataWarehouseUserActivities) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", d.ID) + populate(objectMap, "name", d.Name) + populate(objectMap, "properties", d.Properties) + populate(objectMap, "type", d.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DataWarehouseUserActivities. +func (d *DataWarehouseUserActivities) 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", d, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &d.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &d.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &d.Properties) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &d.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type DataWarehouseUserActivitiesProperties. +func (d DataWarehouseUserActivitiesProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "activeQueriesCount", d.ActiveQueriesCount) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DataWarehouseUserActivitiesProperties. +func (d *DataWarehouseUserActivitiesProperties) 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", d, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "activeQueriesCount": + err = unpopulate(val, "ActiveQueriesCount", &d.ActiveQueriesCount) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type Database. +func (d Database) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", d.ID) + objectMap["kind"] = d.Kind + populate(objectMap, "location", d.Location) + populate(objectMap, "name", d.Name) + populate(objectMap, "systemData", d.SystemData) + populate(objectMap, "type", d.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Database. +func (d *Database) 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", d, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &d.ID) + delete(rawMsg, key) + case "kind": + err = unpopulate(val, "Kind", &d.Kind) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &d.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &d.Name) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &d.SystemData) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &d.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type DatabaseCheckNameRequest. +func (d DatabaseCheckNameRequest) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "name", d.Name) + populate(objectMap, "type", d.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DatabaseCheckNameRequest. +func (d *DatabaseCheckNameRequest) 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", d, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "name": + err = unpopulate(val, "Name", &d.Name) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &d.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type DatabaseListResult. +func (d DatabaseListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "value", d.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DatabaseListResult. +func (d *DatabaseListResult) 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", d, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "value": + d.Value, err = unmarshalDatabaseClassificationArray(val) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type DatabasePrincipalAssignment. +func (d DatabasePrincipalAssignment) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", d.ID) + populate(objectMap, "name", d.Name) + populate(objectMap, "properties", d.Properties) + populate(objectMap, "systemData", d.SystemData) + populate(objectMap, "type", d.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DatabasePrincipalAssignment. +func (d *DatabasePrincipalAssignment) 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", d, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &d.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &d.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &d.Properties) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &d.SystemData) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &d.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type DatabasePrincipalAssignmentCheckNameRequest. +func (d DatabasePrincipalAssignmentCheckNameRequest) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "name", d.Name) + objectMap["type"] = "Microsoft.Synapse/workspaces/kustoPools/databases/principalAssignments" + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DatabasePrincipalAssignmentCheckNameRequest. +func (d *DatabasePrincipalAssignmentCheckNameRequest) 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", d, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "name": + err = unpopulate(val, "Name", &d.Name) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &d.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type DatabasePrincipalAssignmentListResult. +func (d DatabasePrincipalAssignmentListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "value", d.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DatabasePrincipalAssignmentListResult. +func (d *DatabasePrincipalAssignmentListResult) 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", d, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "value": + err = unpopulate(val, "Value", &d.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type DatabasePrincipalProperties. +func (d DatabasePrincipalProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "aadObjectId", d.AADObjectID) + populate(objectMap, "principalId", d.PrincipalID) + populate(objectMap, "principalName", d.PrincipalName) + populate(objectMap, "principalType", d.PrincipalType) + populate(objectMap, "provisioningState", d.ProvisioningState) + populate(objectMap, "role", d.Role) + populate(objectMap, "tenantId", d.TenantID) + populate(objectMap, "tenantName", d.TenantName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DatabasePrincipalProperties. +func (d *DatabasePrincipalProperties) 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", d, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "aadObjectId": + err = unpopulate(val, "AADObjectID", &d.AADObjectID) + delete(rawMsg, key) + case "principalId": + err = unpopulate(val, "PrincipalID", &d.PrincipalID) + delete(rawMsg, key) + case "principalName": + err = unpopulate(val, "PrincipalName", &d.PrincipalName) + delete(rawMsg, key) + case "principalType": + err = unpopulate(val, "PrincipalType", &d.PrincipalType) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &d.ProvisioningState) + delete(rawMsg, key) + case "role": + err = unpopulate(val, "Role", &d.Role) + delete(rawMsg, key) + case "tenantId": + err = unpopulate(val, "TenantID", &d.TenantID) + delete(rawMsg, key) + case "tenantName": + err = unpopulate(val, "TenantName", &d.TenantName) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type DatabaseStatistics. +func (d DatabaseStatistics) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "size", d.Size) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DatabaseStatistics. +func (d *DatabaseStatistics) 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", d, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "size": + err = unpopulate(val, "Size", &d.Size) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type DedicatedSQLminimalTLSSettings. +func (d DedicatedSQLminimalTLSSettings) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", d.ID) + populate(objectMap, "location", d.Location) + populate(objectMap, "name", d.Name) + populate(objectMap, "properties", d.Properties) + populate(objectMap, "type", d.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DedicatedSQLminimalTLSSettings. +func (d *DedicatedSQLminimalTLSSettings) 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", d, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &d.ID) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &d.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &d.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &d.Properties) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &d.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type DedicatedSQLminimalTLSSettingsListResult. +func (d DedicatedSQLminimalTLSSettingsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", d.NextLink) + populate(objectMap, "value", d.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DedicatedSQLminimalTLSSettingsListResult. +func (d *DedicatedSQLminimalTLSSettingsListResult) 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", d, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &d.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &d.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type DedicatedSQLminimalTLSSettingsPatchInfo. +func (d DedicatedSQLminimalTLSSettingsPatchInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "minimalTlsVersion", d.MinimalTLSVersion) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DedicatedSQLminimalTLSSettingsPatchInfo. +func (d *DedicatedSQLminimalTLSSettingsPatchInfo) 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", d, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "minimalTlsVersion": + err = unpopulate(val, "MinimalTLSVersion", &d.MinimalTLSVersion) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type DedicatedSQLminimalTLSSettingsProperties. +func (d DedicatedSQLminimalTLSSettingsProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "minimalTlsVersion", d.MinimalTLSVersion) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DedicatedSQLminimalTLSSettingsProperties. +func (d *DedicatedSQLminimalTLSSettingsProperties) 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", d, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "minimalTlsVersion": + err = unpopulate(val, "MinimalTLSVersion", &d.MinimalTLSVersion) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type DynamicExecutorAllocation. +func (d DynamicExecutorAllocation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "enabled", d.Enabled) + populate(objectMap, "maxExecutors", d.MaxExecutors) + populate(objectMap, "minExecutors", d.MinExecutors) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DynamicExecutorAllocation. +func (d *DynamicExecutorAllocation) 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", d, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "enabled": + err = unpopulate(val, "Enabled", &d.Enabled) + delete(rawMsg, key) + case "maxExecutors": + err = unpopulate(val, "MaxExecutors", &d.MaxExecutors) + delete(rawMsg, key) + case "minExecutors": + err = unpopulate(val, "MinExecutors", &d.MinExecutors) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type EncryptionDetails. +func (e EncryptionDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "cmk", e.Cmk) + populate(objectMap, "doubleEncryptionEnabled", e.DoubleEncryptionEnabled) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type EncryptionDetails. +func (e *EncryptionDetails) 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 "cmk": + err = unpopulate(val, "Cmk", &e.Cmk) + delete(rawMsg, key) + case "doubleEncryptionEnabled": + err = unpopulate(val, "DoubleEncryptionEnabled", &e.DoubleEncryptionEnabled) + 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 EncryptionProtector. +func (e EncryptionProtector) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", e.ID) + populate(objectMap, "kind", e.Kind) + populate(objectMap, "location", e.Location) + populate(objectMap, "name", e.Name) + populate(objectMap, "properties", e.Properties) + populate(objectMap, "type", e.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type EncryptionProtector. +func (e *EncryptionProtector) 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 "id": + err = unpopulate(val, "ID", &e.ID) + delete(rawMsg, key) + case "kind": + err = unpopulate(val, "Kind", &e.Kind) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &e.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &e.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &e.Properties) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &e.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", e, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type EncryptionProtectorListResult. +func (e EncryptionProtectorListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", e.NextLink) + populate(objectMap, "value", e.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type EncryptionProtectorListResult. +func (e *EncryptionProtectorListResult) 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 "nextLink": + err = unpopulate(val, "NextLink", &e.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &e.Value) + 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 EncryptionProtectorProperties. +func (e EncryptionProtectorProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "serverKeyName", e.ServerKeyName) + populate(objectMap, "serverKeyType", e.ServerKeyType) + populate(objectMap, "subregion", e.Subregion) + populate(objectMap, "thumbprint", e.Thumbprint) + populate(objectMap, "uri", e.URI) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type EncryptionProtectorProperties. +func (e *EncryptionProtectorProperties) 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 "serverKeyName": + err = unpopulate(val, "ServerKeyName", &e.ServerKeyName) + delete(rawMsg, key) + case "serverKeyType": + err = unpopulate(val, "ServerKeyType", &e.ServerKeyType) + delete(rawMsg, key) + case "subregion": + err = unpopulate(val, "Subregion", &e.Subregion) + delete(rawMsg, key) + case "thumbprint": + err = unpopulate(val, "Thumbprint", &e.Thumbprint) + delete(rawMsg, key) + case "uri": + err = unpopulate(val, "URI", &e.URI) + 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 EntityReference. +func (e EntityReference) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "referenceName", e.ReferenceName) + populate(objectMap, "type", e.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type EntityReference. +func (e *EntityReference) 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 "referenceName": + err = unpopulate(val, "ReferenceName", &e.ReferenceName) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &e.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", e, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type EnvironmentVariableSetup. +func (e EnvironmentVariableSetup) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + objectMap["type"] = "EnvironmentVariableSetup" + populate(objectMap, "typeProperties", e.TypeProperties) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type EnvironmentVariableSetup. +func (e *EnvironmentVariableSetup) 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 "type": + err = unpopulate(val, "Type", &e.Type) + delete(rawMsg, key) + case "typeProperties": + err = unpopulate(val, "TypeProperties", &e.TypeProperties) + 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 EnvironmentVariableSetupTypeProperties. +func (e EnvironmentVariableSetupTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "variableName", e.VariableName) + populate(objectMap, "variableValue", e.VariableValue) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type EnvironmentVariableSetupTypeProperties. +func (e *EnvironmentVariableSetupTypeProperties) 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 "variableName": + err = unpopulate(val, "VariableName", &e.VariableName) + delete(rawMsg, key) + case "variableValue": + err = unpopulate(val, "VariableValue", &e.VariableValue) + 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 ErrorAdditionalInfo. +func (e ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "info", &e.Info) + populate(objectMap, "type", e.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ErrorAdditionalInfo. +func (e *ErrorAdditionalInfo) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", e, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "info": + err = unpopulate(val, "Info", &e.Info) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &e.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", e, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ErrorDetail. +func (e ErrorDetail) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "additionalInfo", e.AdditionalInfo) + populate(objectMap, "code", e.Code) + populate(objectMap, "details", e.Details) + populate(objectMap, "message", e.Message) + populate(objectMap, "target", e.Target) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ErrorDetail. +func (e *ErrorDetail) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", e, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "additionalInfo": + err = unpopulate(val, "AdditionalInfo", &e.AdditionalInfo) + delete(rawMsg, key) + case "code": + err = unpopulate(val, "Code", &e.Code) + delete(rawMsg, key) + case "details": + err = unpopulate(val, "Details", &e.Details) + delete(rawMsg, key) + case "message": + err = unpopulate(val, "Message", &e.Message) + delete(rawMsg, key) + case "target": + err = unpopulate(val, "Target", &e.Target) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", e, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ErrorResponse. +func (e ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "error", e.Error) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ErrorResponse. +func (e *ErrorResponse) 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 "error": + err = unpopulate(val, "Error", &e.Error) + 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 ErrorResponseAutoGenerated. +func (e ErrorResponseAutoGenerated) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "additionalInfo", e.AdditionalInfo) + populate(objectMap, "code", e.Code) + populate(objectMap, "details", e.Details) + populate(objectMap, "message", e.Message) + populate(objectMap, "target", e.Target) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ErrorResponseAutoGenerated. +func (e *ErrorResponseAutoGenerated) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", e, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "additionalInfo": + err = unpopulate(val, "AdditionalInfo", &e.AdditionalInfo) + delete(rawMsg, key) + case "code": + err = unpopulate(val, "Code", &e.Code) + delete(rawMsg, key) + case "details": + err = unpopulate(val, "Details", &e.Details) + delete(rawMsg, key) + case "message": + err = unpopulate(val, "Message", &e.Message) + delete(rawMsg, key) + case "target": + err = unpopulate(val, "Target", &e.Target) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", e, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type EventGridConnectionProperties. +func (e EventGridConnectionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "blobStorageEventType", e.BlobStorageEventType) + populate(objectMap, "consumerGroup", e.ConsumerGroup) + populate(objectMap, "dataFormat", e.DataFormat) + populate(objectMap, "eventHubResourceId", e.EventHubResourceID) + populate(objectMap, "ignoreFirstRecord", e.IgnoreFirstRecord) + populate(objectMap, "mappingRuleName", e.MappingRuleName) + populate(objectMap, "provisioningState", e.ProvisioningState) + populate(objectMap, "storageAccountResourceId", e.StorageAccountResourceID) + populate(objectMap, "tableName", e.TableName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type EventGridConnectionProperties. +func (e *EventGridConnectionProperties) 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 "blobStorageEventType": + err = unpopulate(val, "BlobStorageEventType", &e.BlobStorageEventType) + delete(rawMsg, key) + case "consumerGroup": + err = unpopulate(val, "ConsumerGroup", &e.ConsumerGroup) + delete(rawMsg, key) + case "dataFormat": + err = unpopulate(val, "DataFormat", &e.DataFormat) + delete(rawMsg, key) + case "eventHubResourceId": + err = unpopulate(val, "EventHubResourceID", &e.EventHubResourceID) + delete(rawMsg, key) + case "ignoreFirstRecord": + err = unpopulate(val, "IgnoreFirstRecord", &e.IgnoreFirstRecord) + delete(rawMsg, key) + case "mappingRuleName": + err = unpopulate(val, "MappingRuleName", &e.MappingRuleName) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &e.ProvisioningState) + delete(rawMsg, key) + case "storageAccountResourceId": + err = unpopulate(val, "StorageAccountResourceID", &e.StorageAccountResourceID) + delete(rawMsg, key) + case "tableName": + err = unpopulate(val, "TableName", &e.TableName) + 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 EventGridDataConnection. +func (e EventGridDataConnection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", e.ID) + objectMap["kind"] = DataConnectionKindEventGrid + populate(objectMap, "location", e.Location) + populate(objectMap, "name", e.Name) + populate(objectMap, "properties", e.Properties) + populate(objectMap, "systemData", e.SystemData) + populate(objectMap, "type", e.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type EventGridDataConnection. +func (e *EventGridDataConnection) 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 "id": + err = unpopulate(val, "ID", &e.ID) + delete(rawMsg, key) + case "kind": + err = unpopulate(val, "Kind", &e.Kind) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &e.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &e.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &e.Properties) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &e.SystemData) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &e.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", e, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type EventHubConnectionProperties. +func (e EventHubConnectionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "compression", e.Compression) + populate(objectMap, "consumerGroup", e.ConsumerGroup) + populate(objectMap, "dataFormat", e.DataFormat) + populate(objectMap, "eventHubResourceId", e.EventHubResourceID) + populate(objectMap, "eventSystemProperties", e.EventSystemProperties) + populate(objectMap, "managedIdentityResourceId", e.ManagedIdentityResourceID) + populate(objectMap, "mappingRuleName", e.MappingRuleName) + populate(objectMap, "provisioningState", e.ProvisioningState) + populate(objectMap, "tableName", e.TableName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type EventHubConnectionProperties. +func (e *EventHubConnectionProperties) 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 "compression": + err = unpopulate(val, "Compression", &e.Compression) + delete(rawMsg, key) + case "consumerGroup": + err = unpopulate(val, "ConsumerGroup", &e.ConsumerGroup) + delete(rawMsg, key) + case "dataFormat": + err = unpopulate(val, "DataFormat", &e.DataFormat) + delete(rawMsg, key) + case "eventHubResourceId": + err = unpopulate(val, "EventHubResourceID", &e.EventHubResourceID) + delete(rawMsg, key) + case "eventSystemProperties": + err = unpopulate(val, "EventSystemProperties", &e.EventSystemProperties) + delete(rawMsg, key) + case "managedIdentityResourceId": + err = unpopulate(val, "ManagedIdentityResourceID", &e.ManagedIdentityResourceID) + delete(rawMsg, key) + case "mappingRuleName": + err = unpopulate(val, "MappingRuleName", &e.MappingRuleName) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &e.ProvisioningState) + delete(rawMsg, key) + case "tableName": + err = unpopulate(val, "TableName", &e.TableName) + 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 EventHubDataConnection. +func (e EventHubDataConnection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", e.ID) + objectMap["kind"] = DataConnectionKindEventHub + populate(objectMap, "location", e.Location) + populate(objectMap, "name", e.Name) + populate(objectMap, "properties", e.Properties) + populate(objectMap, "systemData", e.SystemData) + populate(objectMap, "type", e.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type EventHubDataConnection. +func (e *EventHubDataConnection) 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 "id": + err = unpopulate(val, "ID", &e.ID) + delete(rawMsg, key) + case "kind": + err = unpopulate(val, "Kind", &e.Kind) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &e.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &e.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &e.Properties) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &e.SystemData) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &e.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", e, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ExtendedSQLPoolBlobAuditingPolicy. +func (e ExtendedSQLPoolBlobAuditingPolicy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", e.ID) + populate(objectMap, "name", e.Name) + populate(objectMap, "properties", e.Properties) + populate(objectMap, "type", e.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ExtendedSQLPoolBlobAuditingPolicy. +func (e *ExtendedSQLPoolBlobAuditingPolicy) 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 "id": + err = unpopulate(val, "ID", &e.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &e.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &e.Properties) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &e.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", e, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ExtendedSQLPoolBlobAuditingPolicyListResult. +func (e ExtendedSQLPoolBlobAuditingPolicyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", e.NextLink) + populate(objectMap, "value", e.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ExtendedSQLPoolBlobAuditingPolicyListResult. +func (e *ExtendedSQLPoolBlobAuditingPolicyListResult) 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 "nextLink": + err = unpopulate(val, "NextLink", &e.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &e.Value) + 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 ExtendedSQLPoolBlobAuditingPolicyProperties. +func (e ExtendedSQLPoolBlobAuditingPolicyProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "auditActionsAndGroups", e.AuditActionsAndGroups) + populate(objectMap, "isAzureMonitorTargetEnabled", e.IsAzureMonitorTargetEnabled) + populate(objectMap, "isStorageSecondaryKeyInUse", e.IsStorageSecondaryKeyInUse) + populate(objectMap, "predicateExpression", e.PredicateExpression) + populate(objectMap, "queueDelayMs", e.QueueDelayMs) + populate(objectMap, "retentionDays", e.RetentionDays) + populate(objectMap, "state", e.State) + populate(objectMap, "storageAccountAccessKey", e.StorageAccountAccessKey) + populate(objectMap, "storageAccountSubscriptionId", e.StorageAccountSubscriptionID) + populate(objectMap, "storageEndpoint", e.StorageEndpoint) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ExtendedSQLPoolBlobAuditingPolicyProperties. +func (e *ExtendedSQLPoolBlobAuditingPolicyProperties) 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 "auditActionsAndGroups": + err = unpopulate(val, "AuditActionsAndGroups", &e.AuditActionsAndGroups) + delete(rawMsg, key) + case "isAzureMonitorTargetEnabled": + err = unpopulate(val, "IsAzureMonitorTargetEnabled", &e.IsAzureMonitorTargetEnabled) + delete(rawMsg, key) + case "isStorageSecondaryKeyInUse": + err = unpopulate(val, "IsStorageSecondaryKeyInUse", &e.IsStorageSecondaryKeyInUse) + delete(rawMsg, key) + case "predicateExpression": + err = unpopulate(val, "PredicateExpression", &e.PredicateExpression) + delete(rawMsg, key) + case "queueDelayMs": + err = unpopulate(val, "QueueDelayMs", &e.QueueDelayMs) + delete(rawMsg, key) + case "retentionDays": + err = unpopulate(val, "RetentionDays", &e.RetentionDays) + delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &e.State) + delete(rawMsg, key) + case "storageAccountAccessKey": + err = unpopulate(val, "StorageAccountAccessKey", &e.StorageAccountAccessKey) + delete(rawMsg, key) + case "storageAccountSubscriptionId": + err = unpopulate(val, "StorageAccountSubscriptionID", &e.StorageAccountSubscriptionID) + delete(rawMsg, key) + case "storageEndpoint": + err = unpopulate(val, "StorageEndpoint", &e.StorageEndpoint) + 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 ExtendedServerBlobAuditingPolicy. +func (e ExtendedServerBlobAuditingPolicy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", e.ID) + populate(objectMap, "name", e.Name) + populate(objectMap, "properties", e.Properties) + populate(objectMap, "type", e.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ExtendedServerBlobAuditingPolicy. +func (e *ExtendedServerBlobAuditingPolicy) 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 "id": + err = unpopulate(val, "ID", &e.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &e.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &e.Properties) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &e.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", e, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ExtendedServerBlobAuditingPolicyListResult. +func (e ExtendedServerBlobAuditingPolicyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", e.NextLink) + populate(objectMap, "value", e.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ExtendedServerBlobAuditingPolicyListResult. +func (e *ExtendedServerBlobAuditingPolicyListResult) 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 "nextLink": + err = unpopulate(val, "NextLink", &e.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &e.Value) + 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 ExtendedServerBlobAuditingPolicyProperties. +func (e ExtendedServerBlobAuditingPolicyProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "auditActionsAndGroups", e.AuditActionsAndGroups) + populate(objectMap, "isAzureMonitorTargetEnabled", e.IsAzureMonitorTargetEnabled) + populate(objectMap, "isDevopsAuditEnabled", e.IsDevopsAuditEnabled) + populate(objectMap, "isStorageSecondaryKeyInUse", e.IsStorageSecondaryKeyInUse) + populate(objectMap, "predicateExpression", e.PredicateExpression) + populate(objectMap, "queueDelayMs", e.QueueDelayMs) + populate(objectMap, "retentionDays", e.RetentionDays) + populate(objectMap, "state", e.State) + populate(objectMap, "storageAccountAccessKey", e.StorageAccountAccessKey) + populate(objectMap, "storageAccountSubscriptionId", e.StorageAccountSubscriptionID) + populate(objectMap, "storageEndpoint", e.StorageEndpoint) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ExtendedServerBlobAuditingPolicyProperties. +func (e *ExtendedServerBlobAuditingPolicyProperties) 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 "auditActionsAndGroups": + err = unpopulate(val, "AuditActionsAndGroups", &e.AuditActionsAndGroups) + delete(rawMsg, key) + case "isAzureMonitorTargetEnabled": + err = unpopulate(val, "IsAzureMonitorTargetEnabled", &e.IsAzureMonitorTargetEnabled) + delete(rawMsg, key) + case "isDevopsAuditEnabled": + err = unpopulate(val, "IsDevopsAuditEnabled", &e.IsDevopsAuditEnabled) + delete(rawMsg, key) + case "isStorageSecondaryKeyInUse": + err = unpopulate(val, "IsStorageSecondaryKeyInUse", &e.IsStorageSecondaryKeyInUse) + delete(rawMsg, key) + case "predicateExpression": + err = unpopulate(val, "PredicateExpression", &e.PredicateExpression) + delete(rawMsg, key) + case "queueDelayMs": + err = unpopulate(val, "QueueDelayMs", &e.QueueDelayMs) + delete(rawMsg, key) + case "retentionDays": + err = unpopulate(val, "RetentionDays", &e.RetentionDays) + delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &e.State) + delete(rawMsg, key) + case "storageAccountAccessKey": + err = unpopulate(val, "StorageAccountAccessKey", &e.StorageAccountAccessKey) + delete(rawMsg, key) + case "storageAccountSubscriptionId": + err = unpopulate(val, "StorageAccountSubscriptionID", &e.StorageAccountSubscriptionID) + delete(rawMsg, key) + case "storageEndpoint": + err = unpopulate(val, "StorageEndpoint", &e.StorageEndpoint) + 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 FollowerDatabaseDefinition. +func (f FollowerDatabaseDefinition) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "attachedDatabaseConfigurationName", f.AttachedDatabaseConfigurationName) + populate(objectMap, "databaseName", f.DatabaseName) + populate(objectMap, "clusterResourceId", f.KustoPoolResourceID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type FollowerDatabaseDefinition. +func (f *FollowerDatabaseDefinition) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", f, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "attachedDatabaseConfigurationName": + err = unpopulate(val, "AttachedDatabaseConfigurationName", &f.AttachedDatabaseConfigurationName) + delete(rawMsg, key) + case "databaseName": + err = unpopulate(val, "DatabaseName", &f.DatabaseName) + delete(rawMsg, key) + case "clusterResourceId": + err = unpopulate(val, "KustoPoolResourceID", &f.KustoPoolResourceID) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", f, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type FollowerDatabaseListResult. +func (f FollowerDatabaseListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "value", f.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type FollowerDatabaseListResult. +func (f *FollowerDatabaseListResult) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", f, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "value": + err = unpopulate(val, "Value", &f.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", f, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type GeoBackupPolicy. +func (g GeoBackupPolicy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", g.ID) + populate(objectMap, "kind", g.Kind) + populate(objectMap, "location", g.Location) + populate(objectMap, "name", g.Name) + populate(objectMap, "properties", g.Properties) + populate(objectMap, "type", g.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type GeoBackupPolicy. +func (g *GeoBackupPolicy) 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", g, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &g.ID) + delete(rawMsg, key) + case "kind": + err = unpopulate(val, "Kind", &g.Kind) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &g.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &g.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &g.Properties) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &g.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", g, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type GeoBackupPolicyListResult. +func (g GeoBackupPolicyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "value", g.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type GeoBackupPolicyListResult. +func (g *GeoBackupPolicyListResult) 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", g, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "value": + err = unpopulate(val, "Value", &g.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", g, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type GeoBackupPolicyProperties. +func (g GeoBackupPolicyProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "state", g.State) + populate(objectMap, "storageType", g.StorageType) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type GeoBackupPolicyProperties. +func (g *GeoBackupPolicyProperties) 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", g, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "state": + err = unpopulate(val, "State", &g.State) + delete(rawMsg, key) + case "storageType": + err = unpopulate(val, "StorageType", &g.StorageType) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", g, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type GetSsisObjectMetadataRequest. +func (g GetSsisObjectMetadataRequest) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "metadataPath", g.MetadataPath) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type GetSsisObjectMetadataRequest. +func (g *GetSsisObjectMetadataRequest) 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", g, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "metadataPath": + err = unpopulate(val, "MetadataPath", &g.MetadataPath) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", g, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type IPFirewallRuleInfo. +func (i IPFirewallRuleInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", i.ID) + populate(objectMap, "name", i.Name) + populate(objectMap, "properties", i.Properties) + populate(objectMap, "type", i.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type IPFirewallRuleInfo. +func (i *IPFirewallRuleInfo) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &i.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &i.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &i.Properties) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &i.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type IPFirewallRuleInfoListResult. +func (i IPFirewallRuleInfoListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", i.NextLink) + populate(objectMap, "value", i.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type IPFirewallRuleInfoListResult. +func (i *IPFirewallRuleInfoListResult) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &i.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &i.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type IPFirewallRuleProperties. +func (i IPFirewallRuleProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "endIpAddress", i.EndIPAddress) + populate(objectMap, "provisioningState", i.ProvisioningState) + populate(objectMap, "startIpAddress", i.StartIPAddress) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type IPFirewallRuleProperties. +func (i *IPFirewallRuleProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "endIpAddress": + err = unpopulate(val, "EndIPAddress", &i.EndIPAddress) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &i.ProvisioningState) + delete(rawMsg, key) + case "startIpAddress": + err = unpopulate(val, "StartIPAddress", &i.StartIPAddress) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type IntegrationRuntime. +func (i IntegrationRuntime) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "description", i.Description) + objectMap["type"] = i.Type + if i.AdditionalProperties != nil { + for key, val := range i.AdditionalProperties { + objectMap[key] = val + } + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntime. +func (i *IntegrationRuntime) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "description": + err = unpopulate(val, "Description", &i.Description) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &i.Type) + delete(rawMsg, key) + default: + if i.AdditionalProperties == nil { + i.AdditionalProperties = map[string]any{} + } + if val != nil { + var aux any + err = json.Unmarshal(val, &aux) + i.AdditionalProperties[key] = aux + } + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeAuthKeys. +func (i IntegrationRuntimeAuthKeys) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "authKey1", i.AuthKey1) + populate(objectMap, "authKey2", i.AuthKey2) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntimeAuthKeys. +func (i *IntegrationRuntimeAuthKeys) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "authKey1": + err = unpopulate(val, "AuthKey1", &i.AuthKey1) + delete(rawMsg, key) + case "authKey2": + err = unpopulate(val, "AuthKey2", &i.AuthKey2) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeComputeProperties. +func (i IntegrationRuntimeComputeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "dataFlowProperties", i.DataFlowProperties) + populate(objectMap, "location", i.Location) + populate(objectMap, "maxParallelExecutionsPerNode", i.MaxParallelExecutionsPerNode) + populate(objectMap, "nodeSize", i.NodeSize) + populate(objectMap, "numberOfNodes", i.NumberOfNodes) + populate(objectMap, "vNetProperties", i.VNetProperties) + if i.AdditionalProperties != nil { + for key, val := range i.AdditionalProperties { + objectMap[key] = val + } + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntimeComputeProperties. +func (i *IntegrationRuntimeComputeProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "dataFlowProperties": + err = unpopulate(val, "DataFlowProperties", &i.DataFlowProperties) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &i.Location) + delete(rawMsg, key) + case "maxParallelExecutionsPerNode": + err = unpopulate(val, "MaxParallelExecutionsPerNode", &i.MaxParallelExecutionsPerNode) + delete(rawMsg, key) + case "nodeSize": + err = unpopulate(val, "NodeSize", &i.NodeSize) + delete(rawMsg, key) + case "numberOfNodes": + err = unpopulate(val, "NumberOfNodes", &i.NumberOfNodes) + delete(rawMsg, key) + case "vNetProperties": + err = unpopulate(val, "VNetProperties", &i.VNetProperties) + delete(rawMsg, key) + default: + if i.AdditionalProperties == nil { + i.AdditionalProperties = map[string]any{} + } + if val != nil { + var aux any + err = json.Unmarshal(val, &aux) + i.AdditionalProperties[key] = aux + } + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeConnectionInfo. +func (i IntegrationRuntimeConnectionInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "hostServiceUri", i.HostServiceURI) + populate(objectMap, "identityCertThumbprint", i.IdentityCertThumbprint) + populate(objectMap, "isIdentityCertExprired", i.IsIdentityCertExprired) + populate(objectMap, "publicKey", i.PublicKey) + populate(objectMap, "serviceToken", i.ServiceToken) + populate(objectMap, "version", i.Version) + if i.AdditionalProperties != nil { + for key, val := range i.AdditionalProperties { + objectMap[key] = val + } + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntimeConnectionInfo. +func (i *IntegrationRuntimeConnectionInfo) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "hostServiceUri": + err = unpopulate(val, "HostServiceURI", &i.HostServiceURI) + delete(rawMsg, key) + case "identityCertThumbprint": + err = unpopulate(val, "IdentityCertThumbprint", &i.IdentityCertThumbprint) + delete(rawMsg, key) + case "isIdentityCertExprired": + err = unpopulate(val, "IsIdentityCertExprired", &i.IsIdentityCertExprired) + delete(rawMsg, key) + case "publicKey": + err = unpopulate(val, "PublicKey", &i.PublicKey) + delete(rawMsg, key) + case "serviceToken": + err = unpopulate(val, "ServiceToken", &i.ServiceToken) + delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &i.Version) + delete(rawMsg, key) + default: + if i.AdditionalProperties == nil { + i.AdditionalProperties = map[string]any{} + } + if val != nil { + var aux any + err = json.Unmarshal(val, &aux) + i.AdditionalProperties[key] = aux + } + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeCustomSetupScriptProperties. +func (i IntegrationRuntimeCustomSetupScriptProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "blobContainerUri", i.BlobContainerURI) + populate(objectMap, "sasToken", i.SasToken) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntimeCustomSetupScriptProperties. +func (i *IntegrationRuntimeCustomSetupScriptProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "blobContainerUri": + err = unpopulate(val, "BlobContainerURI", &i.BlobContainerURI) + delete(rawMsg, key) + case "sasToken": + err = unpopulate(val, "SasToken", &i.SasToken) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeDataFlowProperties. +func (i IntegrationRuntimeDataFlowProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "cleanup", i.Cleanup) + populate(objectMap, "computeType", i.ComputeType) + populate(objectMap, "coreCount", i.CoreCount) + populate(objectMap, "timeToLive", i.TimeToLive) + if i.AdditionalProperties != nil { + for key, val := range i.AdditionalProperties { + objectMap[key] = val + } + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntimeDataFlowProperties. +func (i *IntegrationRuntimeDataFlowProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "cleanup": + err = unpopulate(val, "Cleanup", &i.Cleanup) + delete(rawMsg, key) + case "computeType": + err = unpopulate(val, "ComputeType", &i.ComputeType) + delete(rawMsg, key) + case "coreCount": + err = unpopulate(val, "CoreCount", &i.CoreCount) + delete(rawMsg, key) + case "timeToLive": + err = unpopulate(val, "TimeToLive", &i.TimeToLive) + delete(rawMsg, key) + default: + if i.AdditionalProperties == nil { + i.AdditionalProperties = map[string]any{} + } + if val != nil { + var aux any + err = json.Unmarshal(val, &aux) + i.AdditionalProperties[key] = aux + } + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeDataProxyProperties. +func (i IntegrationRuntimeDataProxyProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "connectVia", i.ConnectVia) + populate(objectMap, "path", i.Path) + populate(objectMap, "stagingLinkedService", i.StagingLinkedService) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntimeDataProxyProperties. +func (i *IntegrationRuntimeDataProxyProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "connectVia": + err = unpopulate(val, "ConnectVia", &i.ConnectVia) + delete(rawMsg, key) + case "path": + err = unpopulate(val, "Path", &i.Path) + delete(rawMsg, key) + case "stagingLinkedService": + err = unpopulate(val, "StagingLinkedService", &i.StagingLinkedService) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeEnableinteractivequery. +func (i IntegrationRuntimeEnableinteractivequery) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "error", i.Error) + populate(objectMap, "name", i.Name) + populate(objectMap, "properties", &i.Properties) + populate(objectMap, "status", i.Status) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntimeEnableinteractivequery. +func (i *IntegrationRuntimeEnableinteractivequery) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "error": + err = unpopulate(val, "Error", &i.Error) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &i.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &i.Properties) + delete(rawMsg, key) + case "status": + err = unpopulate(val, "Status", &i.Status) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeListResponse. +func (i IntegrationRuntimeListResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", i.NextLink) + populate(objectMap, "value", i.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntimeListResponse. +func (i *IntegrationRuntimeListResponse) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &i.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &i.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeMonitoringData. +func (i IntegrationRuntimeMonitoringData) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "name", i.Name) + populate(objectMap, "nodes", i.Nodes) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntimeMonitoringData. +func (i *IntegrationRuntimeMonitoringData) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "name": + err = unpopulate(val, "Name", &i.Name) + delete(rawMsg, key) + case "nodes": + err = unpopulate(val, "Nodes", &i.Nodes) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeNodeIPAddress. +func (i IntegrationRuntimeNodeIPAddress) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "ipAddress", i.IPAddress) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntimeNodeIPAddress. +func (i *IntegrationRuntimeNodeIPAddress) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "ipAddress": + err = unpopulate(val, "IPAddress", &i.IPAddress) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeNodeMonitoringData. +func (i IntegrationRuntimeNodeMonitoringData) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "availableMemoryInMB", i.AvailableMemoryInMB) + populate(objectMap, "cpuUtilization", i.CPUUtilization) + populate(objectMap, "concurrentJobsLimit", i.ConcurrentJobsLimit) + populate(objectMap, "concurrentJobsRunning", i.ConcurrentJobsRunning) + populate(objectMap, "maxConcurrentJobs", i.MaxConcurrentJobs) + populate(objectMap, "nodeName", i.NodeName) + populate(objectMap, "receivedBytes", i.ReceivedBytes) + populate(objectMap, "sentBytes", i.SentBytes) + if i.AdditionalProperties != nil { + for key, val := range i.AdditionalProperties { + objectMap[key] = val + } + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntimeNodeMonitoringData. +func (i *IntegrationRuntimeNodeMonitoringData) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "availableMemoryInMB": + err = unpopulate(val, "AvailableMemoryInMB", &i.AvailableMemoryInMB) + delete(rawMsg, key) + case "cpuUtilization": + err = unpopulate(val, "CPUUtilization", &i.CPUUtilization) + delete(rawMsg, key) + case "concurrentJobsLimit": + err = unpopulate(val, "ConcurrentJobsLimit", &i.ConcurrentJobsLimit) + delete(rawMsg, key) + case "concurrentJobsRunning": + err = unpopulate(val, "ConcurrentJobsRunning", &i.ConcurrentJobsRunning) + delete(rawMsg, key) + case "maxConcurrentJobs": + err = unpopulate(val, "MaxConcurrentJobs", &i.MaxConcurrentJobs) + delete(rawMsg, key) + case "nodeName": + err = unpopulate(val, "NodeName", &i.NodeName) + delete(rawMsg, key) + case "receivedBytes": + err = unpopulate(val, "ReceivedBytes", &i.ReceivedBytes) + delete(rawMsg, key) + case "sentBytes": + err = unpopulate(val, "SentBytes", &i.SentBytes) + delete(rawMsg, key) + default: + if i.AdditionalProperties == nil { + i.AdditionalProperties = map[string]any{} + } + if val != nil { + var aux any + err = json.Unmarshal(val, &aux) + i.AdditionalProperties[key] = aux + } + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeOperationStatus. +func (i IntegrationRuntimeOperationStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "error", i.Error) + populate(objectMap, "name", i.Name) + populate(objectMap, "properties", &i.Properties) + populate(objectMap, "status", i.Status) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntimeOperationStatus. +func (i *IntegrationRuntimeOperationStatus) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "error": + err = unpopulate(val, "Error", &i.Error) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &i.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &i.Properties) + delete(rawMsg, key) + case "status": + err = unpopulate(val, "Status", &i.Status) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint. +func (i IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "category", i.Category) + populate(objectMap, "endpoints", i.Endpoints) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint. +func (i *IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "category": + err = unpopulate(val, "Category", &i.Category) + delete(rawMsg, key) + case "endpoints": + err = unpopulate(val, "Endpoints", &i.Endpoints) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeOutboundNetworkDependenciesEndpoint. +func (i IntegrationRuntimeOutboundNetworkDependenciesEndpoint) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "domainName", i.DomainName) + populate(objectMap, "endpointDetails", i.EndpointDetails) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntimeOutboundNetworkDependenciesEndpoint. +func (i *IntegrationRuntimeOutboundNetworkDependenciesEndpoint) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "domainName": + err = unpopulate(val, "DomainName", &i.DomainName) + delete(rawMsg, key) + case "endpointDetails": + err = unpopulate(val, "EndpointDetails", &i.EndpointDetails) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails. +func (i IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "port", i.Port) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails. +func (i *IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "port": + err = unpopulate(val, "Port", &i.Port) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse. +func (i IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "value", i.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse. +func (i *IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "value": + err = unpopulate(val, "Value", &i.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeRegenerateKeyParameters. +func (i IntegrationRuntimeRegenerateKeyParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "keyName", i.KeyName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntimeRegenerateKeyParameters. +func (i *IntegrationRuntimeRegenerateKeyParameters) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "keyName": + err = unpopulate(val, "KeyName", &i.KeyName) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeResource. +func (i IntegrationRuntimeResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "etag", i.Etag) + populate(objectMap, "id", i.ID) + populate(objectMap, "name", i.Name) + populate(objectMap, "properties", i.Properties) + populate(objectMap, "type", i.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntimeResource. +func (i *IntegrationRuntimeResource) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "etag": + err = unpopulate(val, "Etag", &i.Etag) + delete(rawMsg, key) + case "id": + err = unpopulate(val, "ID", &i.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &i.Name) + delete(rawMsg, key) + case "properties": + i.Properties, err = unmarshalIntegrationRuntimeClassification(val) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &i.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeSsisCatalogInfo. +func (i IntegrationRuntimeSsisCatalogInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "catalogAdminPassword", i.CatalogAdminPassword) + populate(objectMap, "catalogAdminUserName", i.CatalogAdminUserName) + populate(objectMap, "catalogPricingTier", i.CatalogPricingTier) + populate(objectMap, "catalogServerEndpoint", i.CatalogServerEndpoint) + if i.AdditionalProperties != nil { + for key, val := range i.AdditionalProperties { + objectMap[key] = val + } + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntimeSsisCatalogInfo. +func (i *IntegrationRuntimeSsisCatalogInfo) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "catalogAdminPassword": + err = unpopulate(val, "CatalogAdminPassword", &i.CatalogAdminPassword) + delete(rawMsg, key) + case "catalogAdminUserName": + err = unpopulate(val, "CatalogAdminUserName", &i.CatalogAdminUserName) + delete(rawMsg, key) + case "catalogPricingTier": + err = unpopulate(val, "CatalogPricingTier", &i.CatalogPricingTier) + delete(rawMsg, key) + case "catalogServerEndpoint": + err = unpopulate(val, "CatalogServerEndpoint", &i.CatalogServerEndpoint) + delete(rawMsg, key) + default: + if i.AdditionalProperties == nil { + i.AdditionalProperties = map[string]any{} + } + if val != nil { + var aux any + err = json.Unmarshal(val, &aux) + i.AdditionalProperties[key] = aux + } + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeSsisProperties. +func (i IntegrationRuntimeSsisProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "catalogInfo", i.CatalogInfo) + populate(objectMap, "customSetupScriptProperties", i.CustomSetupScriptProperties) + populate(objectMap, "dataProxyProperties", i.DataProxyProperties) + populate(objectMap, "edition", i.Edition) + populate(objectMap, "expressCustomSetupProperties", i.ExpressCustomSetupProperties) + populate(objectMap, "licenseType", i.LicenseType) + if i.AdditionalProperties != nil { + for key, val := range i.AdditionalProperties { + objectMap[key] = val + } + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntimeSsisProperties. +func (i *IntegrationRuntimeSsisProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "catalogInfo": + err = unpopulate(val, "CatalogInfo", &i.CatalogInfo) + delete(rawMsg, key) + case "customSetupScriptProperties": + err = unpopulate(val, "CustomSetupScriptProperties", &i.CustomSetupScriptProperties) + delete(rawMsg, key) + case "dataProxyProperties": + err = unpopulate(val, "DataProxyProperties", &i.DataProxyProperties) + delete(rawMsg, key) + case "edition": + err = unpopulate(val, "Edition", &i.Edition) + delete(rawMsg, key) + case "expressCustomSetupProperties": + i.ExpressCustomSetupProperties, err = unmarshalCustomSetupBaseClassificationArray(val) + delete(rawMsg, key) + case "licenseType": + err = unpopulate(val, "LicenseType", &i.LicenseType) + delete(rawMsg, key) + default: + if i.AdditionalProperties == nil { + i.AdditionalProperties = map[string]any{} + } + if val != nil { + var aux any + err = json.Unmarshal(val, &aux) + i.AdditionalProperties[key] = aux + } + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeStatus. +func (i IntegrationRuntimeStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "dataFactoryName", i.DataFactoryName) + populate(objectMap, "state", i.State) + objectMap["type"] = i.Type + if i.AdditionalProperties != nil { + for key, val := range i.AdditionalProperties { + objectMap[key] = val + } + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntimeStatus. +func (i *IntegrationRuntimeStatus) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "dataFactoryName": + err = unpopulate(val, "DataFactoryName", &i.DataFactoryName) + delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &i.State) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &i.Type) + delete(rawMsg, key) + default: + if i.AdditionalProperties == nil { + i.AdditionalProperties = map[string]any{} + } + if val != nil { + var aux any + err = json.Unmarshal(val, &aux) + i.AdditionalProperties[key] = aux + } + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeStatusResponse. +func (i IntegrationRuntimeStatusResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "name", i.Name) + populate(objectMap, "properties", i.Properties) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntimeStatusResponse. +func (i *IntegrationRuntimeStatusResponse) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "name": + err = unpopulate(val, "Name", &i.Name) + delete(rawMsg, key) + case "properties": + i.Properties, err = unmarshalIntegrationRuntimeStatusClassification(val) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeStopOperationStatus. +func (i IntegrationRuntimeStopOperationStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "error", i.Error) + populate(objectMap, "name", i.Name) + populate(objectMap, "properties", &i.Properties) + populate(objectMap, "status", i.Status) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntimeStopOperationStatus. +func (i *IntegrationRuntimeStopOperationStatus) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "error": + err = unpopulate(val, "Error", &i.Error) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &i.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &i.Properties) + delete(rawMsg, key) + case "status": + err = unpopulate(val, "Status", &i.Status) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeVNetProperties. +func (i IntegrationRuntimeVNetProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "publicIPs", i.PublicIPs) + populate(objectMap, "subnet", i.Subnet) + populate(objectMap, "subnetId", i.SubnetID) + populate(objectMap, "vNetId", i.VNetID) + if i.AdditionalProperties != nil { + for key, val := range i.AdditionalProperties { + objectMap[key] = val + } + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntimeVNetProperties. +func (i *IntegrationRuntimeVNetProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "publicIPs": + err = unpopulate(val, "PublicIPs", &i.PublicIPs) + delete(rawMsg, key) + case "subnet": + err = unpopulate(val, "Subnet", &i.Subnet) + delete(rawMsg, key) + case "subnetId": + err = unpopulate(val, "SubnetID", &i.SubnetID) + delete(rawMsg, key) + case "vNetId": + err = unpopulate(val, "VNetID", &i.VNetID) + delete(rawMsg, key) + default: + if i.AdditionalProperties == nil { + i.AdditionalProperties = map[string]any{} + } + if val != nil { + var aux any + err = json.Unmarshal(val, &aux) + i.AdditionalProperties[key] = aux + } + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type IotHubConnectionProperties. +func (i IotHubConnectionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "consumerGroup", i.ConsumerGroup) + populate(objectMap, "dataFormat", i.DataFormat) + populate(objectMap, "eventSystemProperties", i.EventSystemProperties) + populate(objectMap, "iotHubResourceId", i.IotHubResourceID) + populate(objectMap, "mappingRuleName", i.MappingRuleName) + populate(objectMap, "provisioningState", i.ProvisioningState) + populate(objectMap, "sharedAccessPolicyName", i.SharedAccessPolicyName) + populate(objectMap, "tableName", i.TableName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type IotHubConnectionProperties. +func (i *IotHubConnectionProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "consumerGroup": + err = unpopulate(val, "ConsumerGroup", &i.ConsumerGroup) + delete(rawMsg, key) + case "dataFormat": + err = unpopulate(val, "DataFormat", &i.DataFormat) + delete(rawMsg, key) + case "eventSystemProperties": + err = unpopulate(val, "EventSystemProperties", &i.EventSystemProperties) + delete(rawMsg, key) + case "iotHubResourceId": + err = unpopulate(val, "IotHubResourceID", &i.IotHubResourceID) + delete(rawMsg, key) + case "mappingRuleName": + err = unpopulate(val, "MappingRuleName", &i.MappingRuleName) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &i.ProvisioningState) + delete(rawMsg, key) + case "sharedAccessPolicyName": + err = unpopulate(val, "SharedAccessPolicyName", &i.SharedAccessPolicyName) + delete(rawMsg, key) + case "tableName": + err = unpopulate(val, "TableName", &i.TableName) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type IotHubDataConnection. +func (i IotHubDataConnection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", i.ID) + objectMap["kind"] = DataConnectionKindIotHub + populate(objectMap, "location", i.Location) + populate(objectMap, "name", i.Name) + populate(objectMap, "properties", i.Properties) + populate(objectMap, "systemData", i.SystemData) + populate(objectMap, "type", i.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type IotHubDataConnection. +func (i *IotHubDataConnection) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &i.ID) + delete(rawMsg, key) + case "kind": + err = unpopulate(val, "Kind", &i.Kind) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &i.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &i.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &i.Properties) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &i.SystemData) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &i.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type KekIdentityProperties. +func (k KekIdentityProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "useSystemAssignedIdentity", &k.UseSystemAssignedIdentity) + populate(objectMap, "userAssignedIdentity", k.UserAssignedIdentity) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type KekIdentityProperties. +func (k *KekIdentityProperties) 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", k, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "useSystemAssignedIdentity": + err = unpopulate(val, "UseSystemAssignedIdentity", &k.UseSystemAssignedIdentity) + delete(rawMsg, key) + case "userAssignedIdentity": + err = unpopulate(val, "UserAssignedIdentity", &k.UserAssignedIdentity) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", k, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type Key. +func (k Key) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", k.ID) + populate(objectMap, "name", k.Name) + populate(objectMap, "properties", k.Properties) + populate(objectMap, "type", k.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Key. +func (k *Key) 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", k, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &k.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &k.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &k.Properties) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &k.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", k, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type KeyInfoListResult. +func (k KeyInfoListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", k.NextLink) + populate(objectMap, "value", k.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type KeyInfoListResult. +func (k *KeyInfoListResult) 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", k, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &k.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &k.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", k, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type KeyProperties. +func (k KeyProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "isActiveCMK", k.IsActiveCMK) + populate(objectMap, "keyVaultUrl", k.KeyVaultURL) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type KeyProperties. +func (k *KeyProperties) 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", k, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "isActiveCMK": + err = unpopulate(val, "IsActiveCMK", &k.IsActiveCMK) + delete(rawMsg, key) + case "keyVaultUrl": + err = unpopulate(val, "KeyVaultURL", &k.KeyVaultURL) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", k, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type KustoPool. +func (k KustoPool) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "etag", k.Etag) + populate(objectMap, "id", k.ID) + populate(objectMap, "location", k.Location) + populate(objectMap, "name", k.Name) + populate(objectMap, "properties", k.Properties) + populate(objectMap, "sku", k.SKU) + populate(objectMap, "systemData", k.SystemData) + populate(objectMap, "tags", k.Tags) + populate(objectMap, "type", k.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type KustoPool. +func (k *KustoPool) 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", k, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "etag": + err = unpopulate(val, "Etag", &k.Etag) + delete(rawMsg, key) + case "id": + err = unpopulate(val, "ID", &k.ID) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &k.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &k.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &k.Properties) + delete(rawMsg, key) + case "sku": + err = unpopulate(val, "SKU", &k.SKU) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &k.SystemData) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &k.Tags) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &k.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", k, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type KustoPoolCheckNameRequest. +func (k KustoPoolCheckNameRequest) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "name", k.Name) + objectMap["type"] = "Microsoft.Synapse/workspaces/kustoPools" + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type KustoPoolCheckNameRequest. +func (k *KustoPoolCheckNameRequest) 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", k, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "name": + err = unpopulate(val, "Name", &k.Name) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &k.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", k, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type KustoPoolListResult. +func (k KustoPoolListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "value", k.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type KustoPoolListResult. +func (k *KustoPoolListResult) 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", k, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "value": + err = unpopulate(val, "Value", &k.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", k, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type KustoPoolPrivateLinkResources. +func (k KustoPoolPrivateLinkResources) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", k.ID) + populate(objectMap, "name", k.Name) + populate(objectMap, "properties", k.Properties) + populate(objectMap, "systemData", k.SystemData) + populate(objectMap, "type", k.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type KustoPoolPrivateLinkResources. +func (k *KustoPoolPrivateLinkResources) 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", k, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &k.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &k.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &k.Properties) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &k.SystemData) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &k.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", k, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type KustoPoolProperties. +func (k KustoPoolProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "dataIngestionUri", k.DataIngestionURI) + populate(objectMap, "enablePurge", k.EnablePurge) + populate(objectMap, "enableStreamingIngest", k.EnableStreamingIngest) + populate(objectMap, "languageExtensions", k.LanguageExtensions) + populate(objectMap, "optimizedAutoscale", k.OptimizedAutoscale) + populate(objectMap, "provisioningState", k.ProvisioningState) + populate(objectMap, "state", k.State) + populate(objectMap, "stateReason", k.StateReason) + populate(objectMap, "uri", k.URI) + populate(objectMap, "workspaceUID", k.WorkspaceUID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type KustoPoolProperties. +func (k *KustoPoolProperties) 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", k, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "dataIngestionUri": + err = unpopulate(val, "DataIngestionURI", &k.DataIngestionURI) + delete(rawMsg, key) + case "enablePurge": + err = unpopulate(val, "EnablePurge", &k.EnablePurge) + delete(rawMsg, key) + case "enableStreamingIngest": + err = unpopulate(val, "EnableStreamingIngest", &k.EnableStreamingIngest) + delete(rawMsg, key) + case "languageExtensions": + err = unpopulate(val, "LanguageExtensions", &k.LanguageExtensions) + delete(rawMsg, key) + case "optimizedAutoscale": + err = unpopulate(val, "OptimizedAutoscale", &k.OptimizedAutoscale) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &k.ProvisioningState) + delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &k.State) + delete(rawMsg, key) + case "stateReason": + err = unpopulate(val, "StateReason", &k.StateReason) + delete(rawMsg, key) + case "uri": + err = unpopulate(val, "URI", &k.URI) + delete(rawMsg, key) + case "workspaceUID": + err = unpopulate(val, "WorkspaceUID", &k.WorkspaceUID) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", k, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type KustoPoolUpdate. +func (k KustoPoolUpdate) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", k.ID) + populate(objectMap, "name", k.Name) + populate(objectMap, "properties", k.Properties) + populate(objectMap, "sku", k.SKU) + populate(objectMap, "tags", k.Tags) + populate(objectMap, "type", k.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type KustoPoolUpdate. +func (k *KustoPoolUpdate) 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", k, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &k.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &k.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &k.Properties) + delete(rawMsg, key) + case "sku": + err = unpopulate(val, "SKU", &k.SKU) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &k.Tags) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &k.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", k, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type LanguageExtension. +func (l LanguageExtension) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "languageExtensionName", l.LanguageExtensionName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type LanguageExtension. +func (l *LanguageExtension) 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", l, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "languageExtensionName": + err = unpopulate(val, "LanguageExtensionName", &l.LanguageExtensionName) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", l, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type LanguageExtensionsList. +func (l LanguageExtensionsList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "value", l.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type LanguageExtensionsList. +func (l *LanguageExtensionsList) 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", l, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "value": + err = unpopulate(val, "Value", &l.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", l, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type LibraryInfo. +func (l LibraryInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "containerName", l.ContainerName) + populate(objectMap, "creatorId", l.CreatorID) + populate(objectMap, "name", l.Name) + populate(objectMap, "path", l.Path) + populate(objectMap, "provisioningStatus", l.ProvisioningStatus) + populate(objectMap, "type", l.Type) + populateTimeRFC3339(objectMap, "uploadedTimestamp", l.UploadedTimestamp) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type LibraryInfo. +func (l *LibraryInfo) 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", l, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "containerName": + err = unpopulate(val, "ContainerName", &l.ContainerName) + delete(rawMsg, key) + case "creatorId": + err = unpopulate(val, "CreatorID", &l.CreatorID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &l.Name) + delete(rawMsg, key) + case "path": + err = unpopulate(val, "Path", &l.Path) + delete(rawMsg, key) + case "provisioningStatus": + err = unpopulate(val, "ProvisioningStatus", &l.ProvisioningStatus) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &l.Type) + delete(rawMsg, key) + case "uploadedTimestamp": + err = unpopulateTimeRFC3339(val, "UploadedTimestamp", &l.UploadedTimestamp) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", l, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type LibraryListResponse. +func (l LibraryListResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", l.NextLink) + populate(objectMap, "value", l.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type LibraryListResponse. +func (l *LibraryListResponse) 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", l, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &l.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &l.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", l, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type LibraryRequirements. +func (l LibraryRequirements) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "content", l.Content) + populate(objectMap, "filename", l.Filename) + populateTimeRFC3339(objectMap, "time", l.Time) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type LibraryRequirements. +func (l *LibraryRequirements) 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", l, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "content": + err = unpopulate(val, "Content", &l.Content) + delete(rawMsg, key) + case "filename": + err = unpopulate(val, "Filename", &l.Filename) + delete(rawMsg, key) + case "time": + err = unpopulateTimeRFC3339(val, "Time", &l.Time) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", l, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type LibraryResource. +func (l LibraryResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "etag", l.Etag) + populate(objectMap, "id", l.ID) + populate(objectMap, "name", l.Name) + populate(objectMap, "properties", l.Properties) + populate(objectMap, "type", l.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type LibraryResource. +func (l *LibraryResource) 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", l, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "etag": + err = unpopulate(val, "Etag", &l.Etag) + delete(rawMsg, key) + case "id": + err = unpopulate(val, "ID", &l.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &l.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &l.Properties) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &l.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", l, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type LicensedComponentSetupTypeProperties. +func (l LicensedComponentSetupTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "componentName", l.ComponentName) + populate(objectMap, "licenseKey", l.LicenseKey) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type LicensedComponentSetupTypeProperties. +func (l *LicensedComponentSetupTypeProperties) 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", l, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "componentName": + err = unpopulate(val, "ComponentName", &l.ComponentName) + delete(rawMsg, key) + case "licenseKey": + l.LicenseKey, err = unmarshalSecretBaseClassification(val) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", l, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type LinkedIntegrationRuntime. +func (l LinkedIntegrationRuntime) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateTimeRFC3339(objectMap, "createTime", l.CreateTime) + populate(objectMap, "dataFactoryLocation", l.DataFactoryLocation) + populate(objectMap, "dataFactoryName", l.DataFactoryName) + populate(objectMap, "name", l.Name) + populate(objectMap, "subscriptionId", l.SubscriptionID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type LinkedIntegrationRuntime. +func (l *LinkedIntegrationRuntime) 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", l, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "createTime": + err = unpopulateTimeRFC3339(val, "CreateTime", &l.CreateTime) + delete(rawMsg, key) + case "dataFactoryLocation": + err = unpopulate(val, "DataFactoryLocation", &l.DataFactoryLocation) + delete(rawMsg, key) + case "dataFactoryName": + err = unpopulate(val, "DataFactoryName", &l.DataFactoryName) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &l.Name) + delete(rawMsg, key) + case "subscriptionId": + err = unpopulate(val, "SubscriptionID", &l.SubscriptionID) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", l, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type LinkedIntegrationRuntimeKeyAuthorization. +func (l LinkedIntegrationRuntimeKeyAuthorization) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + objectMap["authorizationType"] = "Key" + populate(objectMap, "key", l.Key) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type LinkedIntegrationRuntimeKeyAuthorization. +func (l *LinkedIntegrationRuntimeKeyAuthorization) 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", l, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "authorizationType": + err = unpopulate(val, "AuthorizationType", &l.AuthorizationType) + delete(rawMsg, key) + case "key": + err = unpopulate(val, "Key", &l.Key) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", l, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type LinkedIntegrationRuntimeRbacAuthorization. +func (l LinkedIntegrationRuntimeRbacAuthorization) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + objectMap["authorizationType"] = "RBAC" + populate(objectMap, "resourceId", l.ResourceID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type LinkedIntegrationRuntimeRbacAuthorization. +func (l *LinkedIntegrationRuntimeRbacAuthorization) 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", l, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "authorizationType": + err = unpopulate(val, "AuthorizationType", &l.AuthorizationType) + delete(rawMsg, key) + case "resourceId": + err = unpopulate(val, "ResourceID", &l.ResourceID) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", l, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type LinkedIntegrationRuntimeType. +func (l LinkedIntegrationRuntimeType) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + objectMap["authorizationType"] = l.AuthorizationType + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type LinkedIntegrationRuntimeType. +func (l *LinkedIntegrationRuntimeType) 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", l, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "authorizationType": + err = unpopulate(val, "AuthorizationType", &l.AuthorizationType) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", l, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ListResourceSKUsResult. +func (l ListResourceSKUsResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "value", l.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ListResourceSKUsResult. +func (l *ListResourceSKUsResult) 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", l, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "value": + err = unpopulate(val, "Value", &l.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", l, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ListSQLPoolSecurityAlertPolicies. +func (l ListSQLPoolSecurityAlertPolicies) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", l.NextLink) + populate(objectMap, "value", l.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ListSQLPoolSecurityAlertPolicies. +func (l *ListSQLPoolSecurityAlertPolicies) 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", l, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &l.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &l.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", l, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type MaintenanceWindowOptions. +func (m MaintenanceWindowOptions) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", m.ID) + populate(objectMap, "name", m.Name) + populate(objectMap, "properties", m.Properties) + populate(objectMap, "type", m.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type MaintenanceWindowOptions. +func (m *MaintenanceWindowOptions) 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 "id": + err = unpopulate(val, "ID", &m.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &m.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &m.Properties) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &m.Type) + 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 MaintenanceWindowOptionsProperties. +func (m MaintenanceWindowOptionsProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "allowMultipleMaintenanceWindowsPerCycle", m.AllowMultipleMaintenanceWindowsPerCycle) + populate(objectMap, "defaultDurationInMinutes", m.DefaultDurationInMinutes) + populate(objectMap, "isEnabled", m.IsEnabled) + populate(objectMap, "maintenanceWindowCycles", m.MaintenanceWindowCycles) + populate(objectMap, "minCycles", m.MinCycles) + populate(objectMap, "minDurationInMinutes", m.MinDurationInMinutes) + populate(objectMap, "timeGranularityInMinutes", m.TimeGranularityInMinutes) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type MaintenanceWindowOptionsProperties. +func (m *MaintenanceWindowOptionsProperties) 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 "allowMultipleMaintenanceWindowsPerCycle": + err = unpopulate(val, "AllowMultipleMaintenanceWindowsPerCycle", &m.AllowMultipleMaintenanceWindowsPerCycle) + delete(rawMsg, key) + case "defaultDurationInMinutes": + err = unpopulate(val, "DefaultDurationInMinutes", &m.DefaultDurationInMinutes) + delete(rawMsg, key) + case "isEnabled": + err = unpopulate(val, "IsEnabled", &m.IsEnabled) + delete(rawMsg, key) + case "maintenanceWindowCycles": + err = unpopulate(val, "MaintenanceWindowCycles", &m.MaintenanceWindowCycles) + delete(rawMsg, key) + case "minCycles": + err = unpopulate(val, "MinCycles", &m.MinCycles) + delete(rawMsg, key) + case "minDurationInMinutes": + err = unpopulate(val, "MinDurationInMinutes", &m.MinDurationInMinutes) + delete(rawMsg, key) + case "timeGranularityInMinutes": + err = unpopulate(val, "TimeGranularityInMinutes", &m.TimeGranularityInMinutes) + 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 MaintenanceWindowTimeRange. +func (m MaintenanceWindowTimeRange) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "dayOfWeek", m.DayOfWeek) + populate(objectMap, "duration", m.Duration) + populate(objectMap, "startTime", m.StartTime) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type MaintenanceWindowTimeRange. +func (m *MaintenanceWindowTimeRange) 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 "dayOfWeek": + err = unpopulate(val, "DayOfWeek", &m.DayOfWeek) + delete(rawMsg, key) + case "duration": + err = unpopulate(val, "Duration", &m.Duration) + delete(rawMsg, key) + case "startTime": + err = unpopulate(val, "StartTime", &m.StartTime) + 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 MaintenanceWindows. +func (m MaintenanceWindows) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", m.ID) + populate(objectMap, "name", m.Name) + populate(objectMap, "properties", m.Properties) + populate(objectMap, "type", m.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type MaintenanceWindows. +func (m *MaintenanceWindows) 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 "id": + err = unpopulate(val, "ID", &m.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &m.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &m.Properties) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &m.Type) + 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 MaintenanceWindowsProperties. +func (m MaintenanceWindowsProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "timeRanges", m.TimeRanges) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type MaintenanceWindowsProperties. +func (m *MaintenanceWindowsProperties) 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 "timeRanges": + err = unpopulate(val, "TimeRanges", &m.TimeRanges) + 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 ManagedIdentity. +func (m ManagedIdentity) 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 ManagedIdentity. +func (m *ManagedIdentity) 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 ManagedIdentitySQLControlSettingsModel. +func (m ManagedIdentitySQLControlSettingsModel) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", m.ID) + populate(objectMap, "name", m.Name) + populate(objectMap, "properties", m.Properties) + populate(objectMap, "type", m.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ManagedIdentitySQLControlSettingsModel. +func (m *ManagedIdentitySQLControlSettingsModel) 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 "id": + err = unpopulate(val, "ID", &m.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &m.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &m.Properties) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &m.Type) + 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 ManagedIdentitySQLControlSettingsModelProperties. +func (m ManagedIdentitySQLControlSettingsModelProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "grantSqlControlToManagedIdentity", m.GrantSQLControlToManagedIdentity) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ManagedIdentitySQLControlSettingsModelProperties. +func (m *ManagedIdentitySQLControlSettingsModelProperties) 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 "grantSqlControlToManagedIdentity": + err = unpopulate(val, "GrantSQLControlToManagedIdentity", &m.GrantSQLControlToManagedIdentity) + 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 ManagedIdentitySQLControlSettingsModelPropertiesGrantSQLControlToManagedIdentity. +func (m ManagedIdentitySQLControlSettingsModelPropertiesGrantSQLControlToManagedIdentity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "actualState", m.ActualState) + populate(objectMap, "desiredState", m.DesiredState) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ManagedIdentitySQLControlSettingsModelPropertiesGrantSQLControlToManagedIdentity. +func (m *ManagedIdentitySQLControlSettingsModelPropertiesGrantSQLControlToManagedIdentity) 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 "actualState": + err = unpopulate(val, "ActualState", &m.ActualState) + delete(rawMsg, key) + case "desiredState": + err = unpopulate(val, "DesiredState", &m.DesiredState) + 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 ManagedIntegrationRuntime. +func (m ManagedIntegrationRuntime) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "description", m.Description) + populate(objectMap, "managedVirtualNetwork", m.ManagedVirtualNetwork) + populate(objectMap, "state", m.State) + objectMap["type"] = IntegrationRuntimeTypeManaged + populate(objectMap, "typeProperties", m.TypeProperties) + if m.AdditionalProperties != nil { + for key, val := range m.AdditionalProperties { + objectMap[key] = val + } + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ManagedIntegrationRuntime. +func (m *ManagedIntegrationRuntime) 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 "description": + err = unpopulate(val, "Description", &m.Description) + delete(rawMsg, key) + case "managedVirtualNetwork": + err = unpopulate(val, "ManagedVirtualNetwork", &m.ManagedVirtualNetwork) + delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &m.State) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &m.Type) + delete(rawMsg, key) + case "typeProperties": + err = unpopulate(val, "TypeProperties", &m.TypeProperties) + delete(rawMsg, key) + default: + if m.AdditionalProperties == nil { + m.AdditionalProperties = map[string]any{} + } + if val != nil { + var aux any + err = json.Unmarshal(val, &aux) + m.AdditionalProperties[key] = aux + } + 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 ManagedIntegrationRuntimeError. +func (m ManagedIntegrationRuntimeError) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "code", m.Code) + populate(objectMap, "message", m.Message) + populate(objectMap, "parameters", m.Parameters) + populateTimeRFC3339(objectMap, "time", m.Time) + if m.AdditionalProperties != nil { + for key, val := range m.AdditionalProperties { + objectMap[key] = val + } + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ManagedIntegrationRuntimeError. +func (m *ManagedIntegrationRuntimeError) 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 "code": + err = unpopulate(val, "Code", &m.Code) + delete(rawMsg, key) + case "message": + err = unpopulate(val, "Message", &m.Message) + delete(rawMsg, key) + case "parameters": + err = unpopulate(val, "Parameters", &m.Parameters) + delete(rawMsg, key) + case "time": + err = unpopulateTimeRFC3339(val, "Time", &m.Time) + delete(rawMsg, key) + default: + if m.AdditionalProperties == nil { + m.AdditionalProperties = map[string]any{} + } + if val != nil { + var aux any + err = json.Unmarshal(val, &aux) + m.AdditionalProperties[key] = aux + } + 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 ManagedIntegrationRuntimeManagedVirtualNetworkReference. +func (m ManagedIntegrationRuntimeManagedVirtualNetworkReference) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", m.ID) + populate(objectMap, "referenceName", m.ReferenceName) + populate(objectMap, "type", m.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ManagedIntegrationRuntimeManagedVirtualNetworkReference. +func (m *ManagedIntegrationRuntimeManagedVirtualNetworkReference) 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 "id": + err = unpopulate(val, "ID", &m.ID) + delete(rawMsg, key) + case "referenceName": + err = unpopulate(val, "ReferenceName", &m.ReferenceName) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &m.Type) + 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 ManagedIntegrationRuntimeNode. +func (m ManagedIntegrationRuntimeNode) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "errors", m.Errors) + populate(objectMap, "nodeId", m.NodeID) + populate(objectMap, "status", m.Status) + if m.AdditionalProperties != nil { + for key, val := range m.AdditionalProperties { + objectMap[key] = val + } + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ManagedIntegrationRuntimeNode. +func (m *ManagedIntegrationRuntimeNode) 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 "errors": + err = unpopulate(val, "Errors", &m.Errors) + delete(rawMsg, key) + case "nodeId": + err = unpopulate(val, "NodeID", &m.NodeID) + delete(rawMsg, key) + case "status": + err = unpopulate(val, "Status", &m.Status) + delete(rawMsg, key) + default: + if m.AdditionalProperties == nil { + m.AdditionalProperties = map[string]any{} + } + if val != nil { + var aux any + err = json.Unmarshal(val, &aux) + m.AdditionalProperties[key] = aux + } + 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 ManagedIntegrationRuntimeOperationResult. +func (m ManagedIntegrationRuntimeOperationResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "activityId", m.ActivityID) + populate(objectMap, "errorCode", m.ErrorCode) + populate(objectMap, "parameters", m.Parameters) + populate(objectMap, "result", m.Result) + populateTimeRFC3339(objectMap, "startTime", m.StartTime) + populate(objectMap, "type", m.Type) + if m.AdditionalProperties != nil { + for key, val := range m.AdditionalProperties { + objectMap[key] = val + } + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ManagedIntegrationRuntimeOperationResult. +func (m *ManagedIntegrationRuntimeOperationResult) 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 "activityId": + err = unpopulate(val, "ActivityID", &m.ActivityID) + delete(rawMsg, key) + case "errorCode": + err = unpopulate(val, "ErrorCode", &m.ErrorCode) + delete(rawMsg, key) + case "parameters": + err = unpopulate(val, "Parameters", &m.Parameters) + delete(rawMsg, key) + case "result": + err = unpopulate(val, "Result", &m.Result) + delete(rawMsg, key) + case "startTime": + err = unpopulateTimeRFC3339(val, "StartTime", &m.StartTime) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &m.Type) + delete(rawMsg, key) + default: + if m.AdditionalProperties == nil { + m.AdditionalProperties = map[string]any{} + } + if val != nil { + var aux any + err = json.Unmarshal(val, &aux) + m.AdditionalProperties[key] = aux + } + 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 ManagedIntegrationRuntimeStatus. +func (m ManagedIntegrationRuntimeStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "dataFactoryName", m.DataFactoryName) + populate(objectMap, "state", m.State) + objectMap["type"] = IntegrationRuntimeTypeManaged + populate(objectMap, "typeProperties", m.TypeProperties) + if m.AdditionalProperties != nil { + for key, val := range m.AdditionalProperties { + objectMap[key] = val + } + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ManagedIntegrationRuntimeStatus. +func (m *ManagedIntegrationRuntimeStatus) 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 "dataFactoryName": + err = unpopulate(val, "DataFactoryName", &m.DataFactoryName) + delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &m.State) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &m.Type) + delete(rawMsg, key) + case "typeProperties": + err = unpopulate(val, "TypeProperties", &m.TypeProperties) + delete(rawMsg, key) + default: + if m.AdditionalProperties == nil { + m.AdditionalProperties = map[string]any{} + } + if val != nil { + var aux any + err = json.Unmarshal(val, &aux) + m.AdditionalProperties[key] = aux + } + 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 ManagedIntegrationRuntimeStatusTypeProperties. +func (m ManagedIntegrationRuntimeStatusTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateTimeRFC3339(objectMap, "createTime", m.CreateTime) + populate(objectMap, "lastOperation", m.LastOperation) + populate(objectMap, "nodes", m.Nodes) + populate(objectMap, "otherErrors", m.OtherErrors) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ManagedIntegrationRuntimeStatusTypeProperties. +func (m *ManagedIntegrationRuntimeStatusTypeProperties) 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 "createTime": + err = unpopulateTimeRFC3339(val, "CreateTime", &m.CreateTime) + delete(rawMsg, key) + case "lastOperation": + err = unpopulate(val, "LastOperation", &m.LastOperation) + delete(rawMsg, key) + case "nodes": + err = unpopulate(val, "Nodes", &m.Nodes) + delete(rawMsg, key) + case "otherErrors": + err = unpopulate(val, "OtherErrors", &m.OtherErrors) + 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 ManagedIntegrationRuntimeTypeProperties. +func (m ManagedIntegrationRuntimeTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "computeProperties", m.ComputeProperties) + populate(objectMap, "ssisProperties", m.SsisProperties) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ManagedIntegrationRuntimeTypeProperties. +func (m *ManagedIntegrationRuntimeTypeProperties) 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 "computeProperties": + err = unpopulate(val, "ComputeProperties", &m.ComputeProperties) + delete(rawMsg, key) + case "ssisProperties": + err = unpopulate(val, "SsisProperties", &m.SsisProperties) + 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 ManagedVirtualNetworkSettings. +func (m ManagedVirtualNetworkSettings) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "allowedAadTenantIdsForLinking", m.AllowedAADTenantIDsForLinking) + populate(objectMap, "linkedAccessCheckOnTargetResource", m.LinkedAccessCheckOnTargetResource) + populate(objectMap, "preventDataExfiltration", m.PreventDataExfiltration) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ManagedVirtualNetworkSettings. +func (m *ManagedVirtualNetworkSettings) 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 "allowedAadTenantIdsForLinking": + err = unpopulate(val, "AllowedAADTenantIDsForLinking", &m.AllowedAADTenantIDsForLinking) + delete(rawMsg, key) + case "linkedAccessCheckOnTargetResource": + err = unpopulate(val, "LinkedAccessCheckOnTargetResource", &m.LinkedAccessCheckOnTargetResource) + delete(rawMsg, key) + case "preventDataExfiltration": + err = unpopulate(val, "PreventDataExfiltration", &m.PreventDataExfiltration) + 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 MetadataSyncConfig. +func (m MetadataSyncConfig) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", m.ID) + populate(objectMap, "name", m.Name) + populate(objectMap, "properties", m.Properties) + populate(objectMap, "type", m.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type MetadataSyncConfig. +func (m *MetadataSyncConfig) 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 "id": + err = unpopulate(val, "ID", &m.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &m.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &m.Properties) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &m.Type) + 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 MetadataSyncConfigProperties. +func (m MetadataSyncConfigProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "enabled", m.Enabled) + populate(objectMap, "syncIntervalInMinutes", m.SyncIntervalInMinutes) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type MetadataSyncConfigProperties. +func (m *MetadataSyncConfigProperties) 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 "enabled": + err = unpopulate(val, "Enabled", &m.Enabled) + delete(rawMsg, key) + case "syncIntervalInMinutes": + err = unpopulate(val, "SyncIntervalInMinutes", &m.SyncIntervalInMinutes) + 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 Operation. +func (o Operation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "display", o.Display) + populate(objectMap, "name", o.Name) + populate(objectMap, "origin", o.Origin) + populate(objectMap, "properties", &o.Properties) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Operation. +func (o *Operation) 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", o, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "display": + err = unpopulate(val, "Display", &o.Display) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &o.Name) + delete(rawMsg, key) + case "origin": + err = unpopulate(val, "Origin", &o.Origin) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &o.Properties) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", o, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "description", o.Description) + populate(objectMap, "operation", o.Operation) + populate(objectMap, "provider", o.Provider) + populate(objectMap, "resource", o.Resource) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type OperationDisplay. +func (o *OperationDisplay) 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", o, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "description": + err = unpopulate(val, "Description", &o.Description) + delete(rawMsg, key) + case "operation": + err = unpopulate(val, "Operation", &o.Operation) + delete(rawMsg, key) + case "provider": + err = unpopulate(val, "Provider", &o.Provider) + delete(rawMsg, key) + case "resource": + err = unpopulate(val, "Resource", &o.Resource) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", o, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type OperationListResult. +func (o OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", o.NextLink) + populate(objectMap, "value", o.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type OperationListResult. +func (o *OperationListResult) 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", o, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &o.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &o.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", o, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type OperationMetaLogSpecification. +func (o OperationMetaLogSpecification) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "blobDuration", o.BlobDuration) + populate(objectMap, "displayName", o.DisplayName) + populate(objectMap, "name", o.Name) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type OperationMetaLogSpecification. +func (o *OperationMetaLogSpecification) 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", o, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "blobDuration": + err = unpopulate(val, "BlobDuration", &o.BlobDuration) + delete(rawMsg, key) + case "displayName": + err = unpopulate(val, "DisplayName", &o.DisplayName) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &o.Name) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", o, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type OperationMetaMetricDimensionSpecification. +func (o OperationMetaMetricDimensionSpecification) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "displayName", o.DisplayName) + populate(objectMap, "name", o.Name) + populate(objectMap, "toBeExportedForShoebox", o.ToBeExportedForShoebox) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type OperationMetaMetricDimensionSpecification. +func (o *OperationMetaMetricDimensionSpecification) 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", o, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "displayName": + err = unpopulate(val, "DisplayName", &o.DisplayName) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &o.Name) + delete(rawMsg, key) + case "toBeExportedForShoebox": + err = unpopulate(val, "ToBeExportedForShoebox", &o.ToBeExportedForShoebox) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", o, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type OperationMetaMetricSpecification. +func (o OperationMetaMetricSpecification) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "aggregationType", o.AggregationType) + populate(objectMap, "dimensions", o.Dimensions) + populate(objectMap, "displayDescription", o.DisplayDescription) + populate(objectMap, "displayName", o.DisplayName) + populate(objectMap, "enableRegionalMdmAccount", o.EnableRegionalMdmAccount) + populate(objectMap, "metricFilterPattern", o.MetricFilterPattern) + populate(objectMap, "name", o.Name) + populate(objectMap, "sourceMdmAccount", o.SourceMdmAccount) + populate(objectMap, "sourceMdmNamespace", o.SourceMdmNamespace) + populate(objectMap, "supportsInstanceLevelAggregation", o.SupportsInstanceLevelAggregation) + populate(objectMap, "unit", o.Unit) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type OperationMetaMetricSpecification. +func (o *OperationMetaMetricSpecification) 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", o, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "aggregationType": + err = unpopulate(val, "AggregationType", &o.AggregationType) + delete(rawMsg, key) + case "dimensions": + err = unpopulate(val, "Dimensions", &o.Dimensions) + delete(rawMsg, key) + case "displayDescription": + err = unpopulate(val, "DisplayDescription", &o.DisplayDescription) + delete(rawMsg, key) + case "displayName": + err = unpopulate(val, "DisplayName", &o.DisplayName) + delete(rawMsg, key) + case "enableRegionalMdmAccount": + err = unpopulate(val, "EnableRegionalMdmAccount", &o.EnableRegionalMdmAccount) + delete(rawMsg, key) + case "metricFilterPattern": + err = unpopulate(val, "MetricFilterPattern", &o.MetricFilterPattern) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &o.Name) + delete(rawMsg, key) + case "sourceMdmAccount": + err = unpopulate(val, "SourceMdmAccount", &o.SourceMdmAccount) + delete(rawMsg, key) + case "sourceMdmNamespace": + err = unpopulate(val, "SourceMdmNamespace", &o.SourceMdmNamespace) + delete(rawMsg, key) + case "supportsInstanceLevelAggregation": + err = unpopulate(val, "SupportsInstanceLevelAggregation", &o.SupportsInstanceLevelAggregation) + delete(rawMsg, key) + case "unit": + err = unpopulate(val, "Unit", &o.Unit) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", o, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type OperationMetaPropertyInfo. +func (o OperationMetaPropertyInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "serviceSpecification", o.ServiceSpecification) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type OperationMetaPropertyInfo. +func (o *OperationMetaPropertyInfo) 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", o, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "serviceSpecification": + err = unpopulate(val, "ServiceSpecification", &o.ServiceSpecification) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", o, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type OperationMetaServiceSpecification. +func (o OperationMetaServiceSpecification) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "logSpecifications", o.LogSpecifications) + populate(objectMap, "metricSpecifications", o.MetricSpecifications) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type OperationMetaServiceSpecification. +func (o *OperationMetaServiceSpecification) 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", o, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "logSpecifications": + err = unpopulate(val, "LogSpecifications", &o.LogSpecifications) + delete(rawMsg, key) + case "metricSpecifications": + err = unpopulate(val, "MetricSpecifications", &o.MetricSpecifications) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", o, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type OperationResource. +func (o OperationResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateTimeRFC3339(objectMap, "endTime", o.EndTime) + populate(objectMap, "error", o.Error) + populate(objectMap, "id", o.ID) + populate(objectMap, "name", o.Name) + populate(objectMap, "percentComplete", o.PercentComplete) + populate(objectMap, "properties", &o.Properties) + populateTimeRFC3339(objectMap, "startTime", o.StartTime) + populate(objectMap, "status", o.Status) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type OperationResource. +func (o *OperationResource) 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", o, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "endTime": + err = unpopulateTimeRFC3339(val, "EndTime", &o.EndTime) + delete(rawMsg, key) + case "error": + err = unpopulate(val, "Error", &o.Error) + delete(rawMsg, key) + case "id": + err = unpopulate(val, "ID", &o.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &o.Name) + delete(rawMsg, key) + case "percentComplete": + err = unpopulate(val, "PercentComplete", &o.PercentComplete) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &o.Properties) + delete(rawMsg, key) + case "startTime": + err = unpopulateTimeRFC3339(val, "StartTime", &o.StartTime) + delete(rawMsg, key) + case "status": + err = unpopulate(val, "Status", &o.Status) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", o, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type OptimizedAutoscale. +func (o OptimizedAutoscale) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "isEnabled", o.IsEnabled) + populate(objectMap, "maximum", o.Maximum) + populate(objectMap, "minimum", o.Minimum) + populate(objectMap, "version", o.Version) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type OptimizedAutoscale. +func (o *OptimizedAutoscale) 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", o, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "isEnabled": + err = unpopulate(val, "IsEnabled", &o.IsEnabled) + delete(rawMsg, key) + case "maximum": + err = unpopulate(val, "Maximum", &o.Maximum) + delete(rawMsg, key) + case "minimum": + err = unpopulate(val, "Minimum", &o.Minimum) + delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &o.Version) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", o, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type PrivateEndpoint. +func (p PrivateEndpoint) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", p.ID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PrivateEndpoint. +func (p *PrivateEndpoint) 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", p, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &p.ID) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", p, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type PrivateEndpointConnection. +func (p PrivateEndpointConnection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", p.ID) + populate(objectMap, "name", p.Name) + populate(objectMap, "properties", p.Properties) + populate(objectMap, "type", p.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PrivateEndpointConnection. +func (p *PrivateEndpointConnection) 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", p, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &p.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &p.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &p.Properties) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &p.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", p, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type PrivateEndpointConnectionForPrivateLinkHub. +func (p PrivateEndpointConnectionForPrivateLinkHub) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", p.ID) + populate(objectMap, "name", p.Name) + populate(objectMap, "properties", p.Properties) + populate(objectMap, "type", p.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PrivateEndpointConnectionForPrivateLinkHub. +func (p *PrivateEndpointConnectionForPrivateLinkHub) 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", p, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &p.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &p.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &p.Properties) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &p.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", p, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type PrivateEndpointConnectionForPrivateLinkHubBasic. +func (p PrivateEndpointConnectionForPrivateLinkHubBasic) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", p.ID) + populate(objectMap, "properties", p.Properties) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PrivateEndpointConnectionForPrivateLinkHubBasic. +func (p *PrivateEndpointConnectionForPrivateLinkHubBasic) 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", p, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &p.ID) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &p.Properties) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", p, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type PrivateEndpointConnectionForPrivateLinkHubBasicAutoGenerated. +func (p PrivateEndpointConnectionForPrivateLinkHubBasicAutoGenerated) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", p.ID) + populate(objectMap, "properties", p.Properties) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PrivateEndpointConnectionForPrivateLinkHubBasicAutoGenerated. +func (p *PrivateEndpointConnectionForPrivateLinkHubBasicAutoGenerated) 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", p, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &p.ID) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &p.Properties) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", p, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse. +func (p PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", p.NextLink) + populate(objectMap, "value", p.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse. +func (p *PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse) 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", p, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &p.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &p.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", p, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type PrivateEndpointConnectionList. +func (p PrivateEndpointConnectionList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", p.NextLink) + populate(objectMap, "value", p.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PrivateEndpointConnectionList. +func (p *PrivateEndpointConnectionList) 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", p, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &p.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &p.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", p, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type PrivateEndpointConnectionProperties. +func (p PrivateEndpointConnectionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "privateEndpoint", p.PrivateEndpoint) + populate(objectMap, "privateLinkServiceConnectionState", p.PrivateLinkServiceConnectionState) + populate(objectMap, "provisioningState", p.ProvisioningState) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PrivateEndpointConnectionProperties. +func (p *PrivateEndpointConnectionProperties) 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", p, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "privateEndpoint": + err = unpopulate(val, "PrivateEndpoint", &p.PrivateEndpoint) + delete(rawMsg, key) + case "privateLinkServiceConnectionState": + err = unpopulate(val, "PrivateLinkServiceConnectionState", &p.PrivateLinkServiceConnectionState) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &p.ProvisioningState) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", p, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type PrivateLinkHub. +func (p PrivateLinkHub) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", p.ID) + populate(objectMap, "location", p.Location) + populate(objectMap, "name", p.Name) + populate(objectMap, "properties", p.Properties) + populate(objectMap, "tags", p.Tags) + populate(objectMap, "type", p.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PrivateLinkHub. +func (p *PrivateLinkHub) 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", p, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &p.ID) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &p.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &p.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &p.Properties) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &p.Tags) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &p.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", p, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type PrivateLinkHubInfoListResult. +func (p PrivateLinkHubInfoListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", p.NextLink) + populate(objectMap, "value", p.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PrivateLinkHubInfoListResult. +func (p *PrivateLinkHubInfoListResult) 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", p, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &p.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &p.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", p, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type PrivateLinkHubPatchInfo. +func (p PrivateLinkHubPatchInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "tags", p.Tags) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PrivateLinkHubPatchInfo. +func (p *PrivateLinkHubPatchInfo) 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", p, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "tags": + err = unpopulate(val, "Tags", &p.Tags) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", p, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type PrivateLinkHubProperties. +func (p PrivateLinkHubProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "privateEndpointConnections", p.PrivateEndpointConnections) + populate(objectMap, "provisioningState", p.ProvisioningState) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PrivateLinkHubProperties. +func (p *PrivateLinkHubProperties) 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", p, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "privateEndpointConnections": + err = unpopulate(val, "PrivateEndpointConnections", &p.PrivateEndpointConnections) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &p.ProvisioningState) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", p, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type PrivateLinkResource. +func (p PrivateLinkResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", p.ID) + populate(objectMap, "name", p.Name) + populate(objectMap, "properties", p.Properties) + populate(objectMap, "type", p.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PrivateLinkResource. +func (p *PrivateLinkResource) 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", p, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &p.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &p.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &p.Properties) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &p.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", p, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type PrivateLinkResourceListResult. +func (p PrivateLinkResourceListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", p.NextLink) + populate(objectMap, "value", p.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PrivateLinkResourceListResult. +func (p *PrivateLinkResourceListResult) 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", p, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &p.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &p.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", p, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type PrivateLinkResourceProperties. +func (p PrivateLinkResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "groupId", p.GroupID) + populate(objectMap, "requiredMembers", p.RequiredMembers) + populate(objectMap, "requiredZoneNames", p.RequiredZoneNames) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PrivateLinkResourceProperties. +func (p *PrivateLinkResourceProperties) 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", p, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "groupId": + err = unpopulate(val, "GroupID", &p.GroupID) + delete(rawMsg, key) + case "requiredMembers": + err = unpopulate(val, "RequiredMembers", &p.RequiredMembers) + delete(rawMsg, key) + case "requiredZoneNames": + err = unpopulate(val, "RequiredZoneNames", &p.RequiredZoneNames) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", p, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type PrivateLinkResources. +func (p PrivateLinkResources) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "value", p.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PrivateLinkResources. +func (p *PrivateLinkResources) 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", p, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "value": + err = unpopulate(val, "Value", &p.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", p, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type PrivateLinkResourcesProperties. +func (p PrivateLinkResourcesProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "groupId", p.GroupID) + populate(objectMap, "provisioningState", p.ProvisioningState) + populate(objectMap, "requiredMembers", p.RequiredMembers) + populate(objectMap, "requiredZoneNames", p.RequiredZoneNames) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PrivateLinkResourcesProperties. +func (p *PrivateLinkResourcesProperties) 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", p, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "groupId": + err = unpopulate(val, "GroupID", &p.GroupID) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &p.ProvisioningState) + delete(rawMsg, key) + case "requiredMembers": + err = unpopulate(val, "RequiredMembers", &p.RequiredMembers) + delete(rawMsg, key) + case "requiredZoneNames": + err = unpopulate(val, "RequiredZoneNames", &p.RequiredZoneNames) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", p, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type PrivateLinkServiceConnectionState. +func (p PrivateLinkServiceConnectionState) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "actionsRequired", p.ActionsRequired) + populate(objectMap, "description", p.Description) + populate(objectMap, "status", p.Status) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PrivateLinkServiceConnectionState. +func (p *PrivateLinkServiceConnectionState) 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", p, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "actionsRequired": + err = unpopulate(val, "ActionsRequired", &p.ActionsRequired) + delete(rawMsg, key) + case "description": + err = unpopulate(val, "Description", &p.Description) + delete(rawMsg, key) + case "status": + err = unpopulate(val, "Status", &p.Status) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", p, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ProxyResource. +func (p ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", p.ID) + populate(objectMap, "name", p.Name) + populate(objectMap, "type", p.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ProxyResource. +func (p *ProxyResource) 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", p, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &p.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &p.Name) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &p.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", p, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type PurviewConfiguration. +func (p PurviewConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "purviewResourceId", p.PurviewResourceID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PurviewConfiguration. +func (p *PurviewConfiguration) 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", p, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "purviewResourceId": + err = unpopulate(val, "PurviewResourceID", &p.PurviewResourceID) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", p, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type QueryInterval. +func (q QueryInterval) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "executionCount", q.ExecutionCount) + populateTimeRFC3339(objectMap, "intervalStartTime", q.IntervalStartTime) + populate(objectMap, "metrics", q.Metrics) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type QueryInterval. +func (q *QueryInterval) 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", q, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "executionCount": + err = unpopulate(val, "ExecutionCount", &q.ExecutionCount) + delete(rawMsg, key) + case "intervalStartTime": + err = unpopulateTimeRFC3339(val, "IntervalStartTime", &q.IntervalStartTime) + delete(rawMsg, key) + case "metrics": + err = unpopulate(val, "Metrics", &q.Metrics) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", q, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type QueryMetric. +func (q QueryMetric) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "displayName", q.DisplayName) + populate(objectMap, "name", q.Name) + populate(objectMap, "unit", q.Unit) + populate(objectMap, "value", q.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type QueryMetric. +func (q *QueryMetric) 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", q, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "displayName": + err = unpopulate(val, "DisplayName", &q.DisplayName) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &q.Name) + delete(rawMsg, key) + case "unit": + err = unpopulate(val, "Unit", &q.Unit) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &q.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", q, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type QueryStatistic. +func (q QueryStatistic) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "intervals", q.Intervals) + populate(objectMap, "queryId", q.QueryID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type QueryStatistic. +func (q *QueryStatistic) 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", q, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "intervals": + err = unpopulate(val, "Intervals", &q.Intervals) + delete(rawMsg, key) + case "queryId": + err = unpopulate(val, "QueryID", &q.QueryID) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", q, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ReadOnlyFollowingDatabase. +func (r ReadOnlyFollowingDatabase) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", r.ID) + objectMap["kind"] = KindReadOnlyFollowing + populate(objectMap, "location", r.Location) + populate(objectMap, "name", r.Name) + populate(objectMap, "properties", r.Properties) + populate(objectMap, "systemData", r.SystemData) + populate(objectMap, "type", r.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ReadOnlyFollowingDatabase. +func (r *ReadOnlyFollowingDatabase) 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 "kind": + err = unpopulate(val, "Kind", &r.Kind) + 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 "properties": + err = unpopulate(val, "Properties", &r.Properties) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &r.SystemData) + 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 ReadOnlyFollowingDatabaseProperties. +func (r ReadOnlyFollowingDatabaseProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "attachedDatabaseConfigurationName", r.AttachedDatabaseConfigurationName) + populate(objectMap, "hotCachePeriod", r.HotCachePeriod) + populate(objectMap, "leaderClusterResourceId", r.LeaderClusterResourceID) + populate(objectMap, "principalsModificationKind", r.PrincipalsModificationKind) + populate(objectMap, "provisioningState", r.ProvisioningState) + populate(objectMap, "softDeletePeriod", r.SoftDeletePeriod) + populate(objectMap, "statistics", r.Statistics) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ReadOnlyFollowingDatabaseProperties. +func (r *ReadOnlyFollowingDatabaseProperties) 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 "attachedDatabaseConfigurationName": + err = unpopulate(val, "AttachedDatabaseConfigurationName", &r.AttachedDatabaseConfigurationName) + delete(rawMsg, key) + case "hotCachePeriod": + err = unpopulate(val, "HotCachePeriod", &r.HotCachePeriod) + delete(rawMsg, key) + case "leaderClusterResourceId": + err = unpopulate(val, "LeaderClusterResourceID", &r.LeaderClusterResourceID) + delete(rawMsg, key) + case "principalsModificationKind": + err = unpopulate(val, "PrincipalsModificationKind", &r.PrincipalsModificationKind) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &r.ProvisioningState) + delete(rawMsg, key) + case "softDeletePeriod": + err = unpopulate(val, "SoftDeletePeriod", &r.SoftDeletePeriod) + delete(rawMsg, key) + case "statistics": + err = unpopulate(val, "Statistics", &r.Statistics) + 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 ReadWriteDatabase. +func (r ReadWriteDatabase) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", r.ID) + objectMap["kind"] = KindReadWrite + populate(objectMap, "location", r.Location) + populate(objectMap, "name", r.Name) + populate(objectMap, "properties", r.Properties) + populate(objectMap, "systemData", r.SystemData) + populate(objectMap, "type", r.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ReadWriteDatabase. +func (r *ReadWriteDatabase) 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 "kind": + err = unpopulate(val, "Kind", &r.Kind) + 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 "properties": + err = unpopulate(val, "Properties", &r.Properties) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &r.SystemData) + 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 ReadWriteDatabaseProperties. +func (r ReadWriteDatabaseProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "hotCachePeriod", r.HotCachePeriod) + populate(objectMap, "isFollowed", r.IsFollowed) + populate(objectMap, "provisioningState", r.ProvisioningState) + populate(objectMap, "softDeletePeriod", r.SoftDeletePeriod) + populate(objectMap, "statistics", r.Statistics) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ReadWriteDatabaseProperties. +func (r *ReadWriteDatabaseProperties) 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 "hotCachePeriod": + err = unpopulate(val, "HotCachePeriod", &r.HotCachePeriod) + delete(rawMsg, key) + case "isFollowed": + err = unpopulate(val, "IsFollowed", &r.IsFollowed) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &r.ProvisioningState) + delete(rawMsg, key) + case "softDeletePeriod": + err = unpopulate(val, "SoftDeletePeriod", &r.SoftDeletePeriod) + delete(rawMsg, key) + case "statistics": + err = unpopulate(val, "Statistics", &r.Statistics) + 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 RecommendedSensitivityLabelUpdate. +func (r RecommendedSensitivityLabelUpdate) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", r.ID) + populate(objectMap, "name", r.Name) + populate(objectMap, "properties", r.Properties) + populate(objectMap, "type", r.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RecommendedSensitivityLabelUpdate. +func (r *RecommendedSensitivityLabelUpdate) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", r, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &r.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &r.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &r.Properties) + 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 RecommendedSensitivityLabelUpdateList. +func (r RecommendedSensitivityLabelUpdateList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "operations", r.Operations) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RecommendedSensitivityLabelUpdateList. +func (r *RecommendedSensitivityLabelUpdateList) 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 "operations": + err = unpopulate(val, "Operations", &r.Operations) + 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 RecommendedSensitivityLabelUpdateProperties. +func (r RecommendedSensitivityLabelUpdateProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "column", r.Column) + populate(objectMap, "op", r.Op) + populate(objectMap, "schema", r.Schema) + populate(objectMap, "table", r.Table) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RecommendedSensitivityLabelUpdateProperties. +func (r *RecommendedSensitivityLabelUpdateProperties) 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 "column": + err = unpopulate(val, "Column", &r.Column) + delete(rawMsg, key) + case "op": + err = unpopulate(val, "Op", &r.Op) + delete(rawMsg, key) + case "schema": + err = unpopulate(val, "Schema", &r.Schema) + delete(rawMsg, key) + case "table": + err = unpopulate(val, "Table", &r.Table) + 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 RecoverableSQLPool. +func (r RecoverableSQLPool) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", r.ID) + populate(objectMap, "name", r.Name) + populate(objectMap, "properties", r.Properties) + populate(objectMap, "type", r.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RecoverableSQLPool. +func (r *RecoverableSQLPool) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", r, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &r.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &r.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &r.Properties) + 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 RecoverableSQLPoolListResult. +func (r RecoverableSQLPoolListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", r.NextLink) + populate(objectMap, "value", r.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RecoverableSQLPoolListResult. +func (r *RecoverableSQLPoolListResult) 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 "nextLink": + err = unpopulate(val, "NextLink", &r.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &r.Value) + 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 RecoverableSQLPoolProperties. +func (r RecoverableSQLPoolProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "edition", r.Edition) + populate(objectMap, "elasticPoolName", r.ElasticPoolName) + populateTimeRFC3339(objectMap, "lastAvailableBackupDate", r.LastAvailableBackupDate) + populate(objectMap, "serviceLevelObjective", r.ServiceLevelObjective) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RecoverableSQLPoolProperties. +func (r *RecoverableSQLPoolProperties) 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 "edition": + err = unpopulate(val, "Edition", &r.Edition) + delete(rawMsg, key) + case "elasticPoolName": + err = unpopulate(val, "ElasticPoolName", &r.ElasticPoolName) + delete(rawMsg, key) + case "lastAvailableBackupDate": + err = unpopulateTimeRFC3339(val, "LastAvailableBackupDate", &r.LastAvailableBackupDate) + delete(rawMsg, key) + case "serviceLevelObjective": + err = unpopulate(val, "ServiceLevelObjective", &r.ServiceLevelObjective) + 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 ReplaceAllFirewallRulesOperationResponse. +func (r ReplaceAllFirewallRulesOperationResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "operationId", r.OperationID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ReplaceAllFirewallRulesOperationResponse. +func (r *ReplaceAllFirewallRulesOperationResponse) 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 "operationId": + err = unpopulate(val, "OperationID", &r.OperationID) + 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 ReplaceAllIPFirewallRulesRequest. +func (r ReplaceAllIPFirewallRulesRequest) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "ipFirewallRules", r.IPFirewallRules) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ReplaceAllIPFirewallRulesRequest. +func (r *ReplaceAllIPFirewallRulesRequest) 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 "ipFirewallRules": + err = unpopulate(val, "IPFirewallRules", &r.IPFirewallRules) + 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 ReplicationLink. +func (r ReplicationLink) 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, "properties", r.Properties) + populate(objectMap, "type", r.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ReplicationLink. +func (r *ReplicationLink) 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 "properties": + err = unpopulate(val, "Properties", &r.Properties) + 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 ReplicationLinkListResult. +func (r ReplicationLinkListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", r.NextLink) + populate(objectMap, "value", r.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ReplicationLinkListResult. +func (r *ReplicationLinkListResult) 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 "nextLink": + err = unpopulate(val, "NextLink", &r.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &r.Value) + 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 ReplicationLinkProperties. +func (r ReplicationLinkProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "isTerminationAllowed", r.IsTerminationAllowed) + populate(objectMap, "partnerDatabase", r.PartnerDatabase) + populate(objectMap, "partnerLocation", r.PartnerLocation) + populate(objectMap, "partnerRole", r.PartnerRole) + populate(objectMap, "partnerServer", r.PartnerServer) + populate(objectMap, "percentComplete", r.PercentComplete) + populate(objectMap, "replicationMode", r.ReplicationMode) + populate(objectMap, "replicationState", r.ReplicationState) + populate(objectMap, "role", r.Role) + populateTimeRFC3339(objectMap, "startTime", r.StartTime) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ReplicationLinkProperties. +func (r *ReplicationLinkProperties) 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 "isTerminationAllowed": + err = unpopulate(val, "IsTerminationAllowed", &r.IsTerminationAllowed) + delete(rawMsg, key) + case "partnerDatabase": + err = unpopulate(val, "PartnerDatabase", &r.PartnerDatabase) + delete(rawMsg, key) + case "partnerLocation": + err = unpopulate(val, "PartnerLocation", &r.PartnerLocation) + delete(rawMsg, key) + case "partnerRole": + err = unpopulate(val, "PartnerRole", &r.PartnerRole) + delete(rawMsg, key) + case "partnerServer": + err = unpopulate(val, "PartnerServer", &r.PartnerServer) + delete(rawMsg, key) + case "percentComplete": + err = unpopulate(val, "PercentComplete", &r.PercentComplete) + delete(rawMsg, key) + case "replicationMode": + err = unpopulate(val, "ReplicationMode", &r.ReplicationMode) + delete(rawMsg, key) + case "replicationState": + err = unpopulate(val, "ReplicationState", &r.ReplicationState) + delete(rawMsg, key) + case "role": + err = unpopulate(val, "Role", &r.Role) + delete(rawMsg, key) + case "startTime": + err = unpopulateTimeRFC3339(val, "StartTime", &r.StartTime) + 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 Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", r.ID) + populate(objectMap, "name", r.Name) + populate(objectMap, "type", r.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Resource. +func (r *Resource) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", r, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &r.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &r.Name) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &r.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", r, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ResourceMoveDefinition. +func (r ResourceMoveDefinition) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", r.ID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ResourceMoveDefinition. +func (r *ResourceMoveDefinition) 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) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", r, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type RestorableDroppedSQLPool. +func (r RestorableDroppedSQLPool) 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, "properties", r.Properties) + populate(objectMap, "type", r.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RestorableDroppedSQLPool. +func (r *RestorableDroppedSQLPool) 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 "properties": + err = unpopulate(val, "Properties", &r.Properties) + 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 RestorableDroppedSQLPoolListResult. +func (r RestorableDroppedSQLPoolListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "value", r.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RestorableDroppedSQLPoolListResult. +func (r *RestorableDroppedSQLPoolListResult) 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 "value": + err = unpopulate(val, "Value", &r.Value) + 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 RestorableDroppedSQLPoolProperties. +func (r RestorableDroppedSQLPoolProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateTimeRFC3339(objectMap, "creationDate", r.CreationDate) + populate(objectMap, "databaseName", r.DatabaseName) + populateTimeRFC3339(objectMap, "deletionDate", r.DeletionDate) + populateTimeRFC3339(objectMap, "earliestRestoreDate", r.EarliestRestoreDate) + populate(objectMap, "edition", r.Edition) + populate(objectMap, "elasticPoolName", r.ElasticPoolName) + populate(objectMap, "maxSizeBytes", r.MaxSizeBytes) + populate(objectMap, "serviceLevelObjective", r.ServiceLevelObjective) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RestorableDroppedSQLPoolProperties. +func (r *RestorableDroppedSQLPoolProperties) 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 "creationDate": + err = unpopulateTimeRFC3339(val, "CreationDate", &r.CreationDate) + delete(rawMsg, key) + case "databaseName": + err = unpopulate(val, "DatabaseName", &r.DatabaseName) + delete(rawMsg, key) + case "deletionDate": + err = unpopulateTimeRFC3339(val, "DeletionDate", &r.DeletionDate) + delete(rawMsg, key) + case "earliestRestoreDate": + err = unpopulateTimeRFC3339(val, "EarliestRestoreDate", &r.EarliestRestoreDate) + delete(rawMsg, key) + case "edition": + err = unpopulate(val, "Edition", &r.Edition) + delete(rawMsg, key) + case "elasticPoolName": + err = unpopulate(val, "ElasticPoolName", &r.ElasticPoolName) + delete(rawMsg, key) + case "maxSizeBytes": + err = unpopulate(val, "MaxSizeBytes", &r.MaxSizeBytes) + delete(rawMsg, key) + case "serviceLevelObjective": + err = unpopulate(val, "ServiceLevelObjective", &r.ServiceLevelObjective) + 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 RestorePoint. +func (r RestorePoint) 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, "properties", r.Properties) + populate(objectMap, "type", r.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RestorePoint. +func (r *RestorePoint) 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 "properties": + err = unpopulate(val, "Properties", &r.Properties) + 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 RestorePointListResult. +func (r RestorePointListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", r.NextLink) + populate(objectMap, "value", r.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RestorePointListResult. +func (r *RestorePointListResult) 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 "nextLink": + err = unpopulate(val, "NextLink", &r.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &r.Value) + 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 RestorePointProperties. +func (r RestorePointProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateTimeRFC3339(objectMap, "earliestRestoreDate", r.EarliestRestoreDate) + populateTimeRFC3339(objectMap, "restorePointCreationDate", r.RestorePointCreationDate) + populate(objectMap, "restorePointLabel", r.RestorePointLabel) + populate(objectMap, "restorePointType", r.RestorePointType) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RestorePointProperties. +func (r *RestorePointProperties) 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 "earliestRestoreDate": + err = unpopulateTimeRFC3339(val, "EarliestRestoreDate", &r.EarliestRestoreDate) + delete(rawMsg, key) + case "restorePointCreationDate": + err = unpopulateTimeRFC3339(val, "RestorePointCreationDate", &r.RestorePointCreationDate) + delete(rawMsg, key) + case "restorePointLabel": + err = unpopulate(val, "RestorePointLabel", &r.RestorePointLabel) + delete(rawMsg, key) + case "restorePointType": + err = unpopulate(val, "RestorePointType", &r.RestorePointType) + 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 SKU. +func (s SKU) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "capacity", s.Capacity) + populate(objectMap, "name", s.Name) + populate(objectMap, "tier", s.Tier) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SKU. +func (s *SKU) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "capacity": + err = unpopulate(val, "Capacity", &s.Capacity) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &s.Name) + delete(rawMsg, key) + case "tier": + err = unpopulate(val, "Tier", &s.Tier) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SKUDescription. +func (s SKUDescription) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "locationInfo", s.LocationInfo) + populate(objectMap, "locations", s.Locations) + populate(objectMap, "name", s.Name) + populate(objectMap, "resourceType", s.ResourceType) + populate(objectMap, "restrictions", s.Restrictions) + populate(objectMap, "size", s.Size) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SKUDescription. +func (s *SKUDescription) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "locationInfo": + err = unpopulate(val, "LocationInfo", &s.LocationInfo) + delete(rawMsg, key) + case "locations": + err = unpopulate(val, "Locations", &s.Locations) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &s.Name) + delete(rawMsg, key) + case "resourceType": + err = unpopulate(val, "ResourceType", &s.ResourceType) + delete(rawMsg, key) + case "restrictions": + err = unpopulate(val, "Restrictions", &s.Restrictions) + delete(rawMsg, key) + case "size": + err = unpopulate(val, "Size", &s.Size) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SKUDescriptionList. +func (s SKUDescriptionList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "value", s.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SKUDescriptionList. +func (s *SKUDescriptionList) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "value": + err = unpopulate(val, "Value", &s.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SKULocationInfoItem. +func (s SKULocationInfoItem) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "location", s.Location) + populate(objectMap, "zones", s.Zones) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SKULocationInfoItem. +func (s *SKULocationInfoItem) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "location": + err = unpopulate(val, "Location", &s.Location) + delete(rawMsg, key) + case "zones": + err = unpopulate(val, "Zones", &s.Zones) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SQLPool. +func (s SQLPool) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", s.ID) + populate(objectMap, "location", s.Location) + populate(objectMap, "name", s.Name) + populate(objectMap, "properties", s.Properties) + populate(objectMap, "sku", s.SKU) + populate(objectMap, "tags", s.Tags) + populate(objectMap, "type", s.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SQLPool. +func (s *SQLPool) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &s.ID) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &s.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &s.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &s.Properties) + delete(rawMsg, key) + case "sku": + err = unpopulate(val, "SKU", &s.SKU) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &s.Tags) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &s.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SQLPoolBlobAuditingPolicy. +func (s SQLPoolBlobAuditingPolicy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", s.ID) + populate(objectMap, "kind", s.Kind) + populate(objectMap, "name", s.Name) + populate(objectMap, "properties", s.Properties) + populate(objectMap, "type", s.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SQLPoolBlobAuditingPolicy. +func (s *SQLPoolBlobAuditingPolicy) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &s.ID) + delete(rawMsg, key) + case "kind": + err = unpopulate(val, "Kind", &s.Kind) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &s.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &s.Properties) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &s.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SQLPoolBlobAuditingPolicyListResult. +func (s SQLPoolBlobAuditingPolicyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", s.NextLink) + populate(objectMap, "value", s.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SQLPoolBlobAuditingPolicyListResult. +func (s *SQLPoolBlobAuditingPolicyListResult) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &s.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &s.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SQLPoolBlobAuditingPolicyProperties. +func (s SQLPoolBlobAuditingPolicyProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "auditActionsAndGroups", s.AuditActionsAndGroups) + populate(objectMap, "isAzureMonitorTargetEnabled", s.IsAzureMonitorTargetEnabled) + populate(objectMap, "isStorageSecondaryKeyInUse", s.IsStorageSecondaryKeyInUse) + populate(objectMap, "retentionDays", s.RetentionDays) + populate(objectMap, "state", s.State) + populate(objectMap, "storageAccountAccessKey", s.StorageAccountAccessKey) + populate(objectMap, "storageAccountSubscriptionId", s.StorageAccountSubscriptionID) + populate(objectMap, "storageEndpoint", s.StorageEndpoint) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SQLPoolBlobAuditingPolicyProperties. +func (s *SQLPoolBlobAuditingPolicyProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "auditActionsAndGroups": + err = unpopulate(val, "AuditActionsAndGroups", &s.AuditActionsAndGroups) + delete(rawMsg, key) + case "isAzureMonitorTargetEnabled": + err = unpopulate(val, "IsAzureMonitorTargetEnabled", &s.IsAzureMonitorTargetEnabled) + delete(rawMsg, key) + case "isStorageSecondaryKeyInUse": + err = unpopulate(val, "IsStorageSecondaryKeyInUse", &s.IsStorageSecondaryKeyInUse) + delete(rawMsg, key) + case "retentionDays": + err = unpopulate(val, "RetentionDays", &s.RetentionDays) + delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &s.State) + delete(rawMsg, key) + case "storageAccountAccessKey": + err = unpopulate(val, "StorageAccountAccessKey", &s.StorageAccountAccessKey) + delete(rawMsg, key) + case "storageAccountSubscriptionId": + err = unpopulate(val, "StorageAccountSubscriptionID", &s.StorageAccountSubscriptionID) + delete(rawMsg, key) + case "storageEndpoint": + err = unpopulate(val, "StorageEndpoint", &s.StorageEndpoint) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SQLPoolBlobAuditingPolicySQLPoolOperationListResult. +func (s SQLPoolBlobAuditingPolicySQLPoolOperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", s.NextLink) + populate(objectMap, "value", s.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SQLPoolBlobAuditingPolicySQLPoolOperationListResult. +func (s *SQLPoolBlobAuditingPolicySQLPoolOperationListResult) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &s.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &s.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SQLPoolColumn. +func (s SQLPoolColumn) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", s.ID) + populate(objectMap, "name", s.Name) + populate(objectMap, "properties", s.Properties) + populate(objectMap, "type", s.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SQLPoolColumn. +func (s *SQLPoolColumn) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &s.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &s.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &s.Properties) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &s.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SQLPoolColumnListResult. +func (s SQLPoolColumnListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", s.NextLink) + populate(objectMap, "value", s.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SQLPoolColumnListResult. +func (s *SQLPoolColumnListResult) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &s.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &s.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SQLPoolColumnProperties. +func (s SQLPoolColumnProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "columnType", s.ColumnType) + populate(objectMap, "isComputed", s.IsComputed) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SQLPoolColumnProperties. +func (s *SQLPoolColumnProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "columnType": + err = unpopulate(val, "ColumnType", &s.ColumnType) + delete(rawMsg, key) + case "isComputed": + err = unpopulate(val, "IsComputed", &s.IsComputed) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SQLPoolConnectionPolicy. +func (s SQLPoolConnectionPolicy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", s.ID) + populate(objectMap, "kind", s.Kind) + populate(objectMap, "location", s.Location) + populate(objectMap, "name", s.Name) + populate(objectMap, "properties", s.Properties) + populate(objectMap, "type", s.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SQLPoolConnectionPolicy. +func (s *SQLPoolConnectionPolicy) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &s.ID) + delete(rawMsg, key) + case "kind": + err = unpopulate(val, "Kind", &s.Kind) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &s.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &s.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &s.Properties) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &s.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SQLPoolConnectionPolicyProperties. +func (s SQLPoolConnectionPolicyProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "proxyDnsName", s.ProxyDNSName) + populate(objectMap, "proxyPort", s.ProxyPort) + populate(objectMap, "redirectionState", s.RedirectionState) + populate(objectMap, "securityEnabledAccess", s.SecurityEnabledAccess) + populate(objectMap, "state", s.State) + populate(objectMap, "useServerDefault", s.UseServerDefault) + populate(objectMap, "visibility", s.Visibility) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SQLPoolConnectionPolicyProperties. +func (s *SQLPoolConnectionPolicyProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "proxyDnsName": + err = unpopulate(val, "ProxyDNSName", &s.ProxyDNSName) + delete(rawMsg, key) + case "proxyPort": + err = unpopulate(val, "ProxyPort", &s.ProxyPort) + delete(rawMsg, key) + case "redirectionState": + err = unpopulate(val, "RedirectionState", &s.RedirectionState) + delete(rawMsg, key) + case "securityEnabledAccess": + err = unpopulate(val, "SecurityEnabledAccess", &s.SecurityEnabledAccess) + delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &s.State) + delete(rawMsg, key) + case "useServerDefault": + err = unpopulate(val, "UseServerDefault", &s.UseServerDefault) + delete(rawMsg, key) + case "visibility": + err = unpopulate(val, "Visibility", &s.Visibility) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SQLPoolInfoListResult. +func (s SQLPoolInfoListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", s.NextLink) + populate(objectMap, "value", s.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SQLPoolInfoListResult. +func (s *SQLPoolInfoListResult) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &s.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &s.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SQLPoolOperation. +func (s SQLPoolOperation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", s.ID) + populate(objectMap, "name", s.Name) + populate(objectMap, "properties", s.Properties) + populate(objectMap, "type", s.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SQLPoolOperation. +func (s *SQLPoolOperation) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &s.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &s.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &s.Properties) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &s.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SQLPoolOperationProperties. +func (s SQLPoolOperationProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "databaseName", s.DatabaseName) + populate(objectMap, "description", s.Description) + populate(objectMap, "errorCode", s.ErrorCode) + populate(objectMap, "errorDescription", s.ErrorDescription) + populate(objectMap, "errorSeverity", s.ErrorSeverity) + populateTimeRFC3339(objectMap, "estimatedCompletionTime", s.EstimatedCompletionTime) + populate(objectMap, "isCancellable", s.IsCancellable) + populate(objectMap, "isUserError", s.IsUserError) + populate(objectMap, "operation", s.Operation) + populate(objectMap, "operationFriendlyName", s.OperationFriendlyName) + populate(objectMap, "percentComplete", s.PercentComplete) + populate(objectMap, "serverName", s.ServerName) + populateTimeRFC3339(objectMap, "startTime", s.StartTime) + populate(objectMap, "state", s.State) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SQLPoolOperationProperties. +func (s *SQLPoolOperationProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "databaseName": + err = unpopulate(val, "DatabaseName", &s.DatabaseName) + delete(rawMsg, key) + case "description": + err = unpopulate(val, "Description", &s.Description) + delete(rawMsg, key) + case "errorCode": + err = unpopulate(val, "ErrorCode", &s.ErrorCode) + delete(rawMsg, key) + case "errorDescription": + err = unpopulate(val, "ErrorDescription", &s.ErrorDescription) + delete(rawMsg, key) + case "errorSeverity": + err = unpopulate(val, "ErrorSeverity", &s.ErrorSeverity) + delete(rawMsg, key) + case "estimatedCompletionTime": + err = unpopulateTimeRFC3339(val, "EstimatedCompletionTime", &s.EstimatedCompletionTime) + delete(rawMsg, key) + case "isCancellable": + err = unpopulate(val, "IsCancellable", &s.IsCancellable) + delete(rawMsg, key) + case "isUserError": + err = unpopulate(val, "IsUserError", &s.IsUserError) + delete(rawMsg, key) + case "operation": + err = unpopulate(val, "Operation", &s.Operation) + delete(rawMsg, key) + case "operationFriendlyName": + err = unpopulate(val, "OperationFriendlyName", &s.OperationFriendlyName) + delete(rawMsg, key) + case "percentComplete": + err = unpopulate(val, "PercentComplete", &s.PercentComplete) + delete(rawMsg, key) + case "serverName": + err = unpopulate(val, "ServerName", &s.ServerName) + delete(rawMsg, key) + case "startTime": + err = unpopulateTimeRFC3339(val, "StartTime", &s.StartTime) + delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &s.State) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SQLPoolPatchInfo. +func (s SQLPoolPatchInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "location", s.Location) + populate(objectMap, "properties", s.Properties) + populate(objectMap, "sku", s.SKU) + populate(objectMap, "tags", s.Tags) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SQLPoolPatchInfo. +func (s *SQLPoolPatchInfo) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "location": + err = unpopulate(val, "Location", &s.Location) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &s.Properties) + delete(rawMsg, key) + case "sku": + err = unpopulate(val, "SKU", &s.SKU) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &s.Tags) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SQLPoolResourceProperties. +func (s SQLPoolResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "collation", s.Collation) + populate(objectMap, "createMode", s.CreateMode) + populateTimeRFC3339(objectMap, "creationDate", s.CreationDate) + populate(objectMap, "maxSizeBytes", s.MaxSizeBytes) + populate(objectMap, "provisioningState", s.ProvisioningState) + populate(objectMap, "recoverableDatabaseId", s.RecoverableDatabaseID) + populateTimeRFC3339(objectMap, "restorePointInTime", s.RestorePointInTime) + populateTimeRFC3339(objectMap, "sourceDatabaseDeletionDate", s.SourceDatabaseDeletionDate) + populate(objectMap, "sourceDatabaseId", s.SourceDatabaseID) + populate(objectMap, "status", s.Status) + populate(objectMap, "storageAccountType", s.StorageAccountType) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SQLPoolResourceProperties. +func (s *SQLPoolResourceProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "collation": + err = unpopulate(val, "Collation", &s.Collation) + delete(rawMsg, key) + case "createMode": + err = unpopulate(val, "CreateMode", &s.CreateMode) + delete(rawMsg, key) + case "creationDate": + err = unpopulateTimeRFC3339(val, "CreationDate", &s.CreationDate) + delete(rawMsg, key) + case "maxSizeBytes": + err = unpopulate(val, "MaxSizeBytes", &s.MaxSizeBytes) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &s.ProvisioningState) + delete(rawMsg, key) + case "recoverableDatabaseId": + err = unpopulate(val, "RecoverableDatabaseID", &s.RecoverableDatabaseID) + delete(rawMsg, key) + case "restorePointInTime": + err = unpopulateTimeRFC3339(val, "RestorePointInTime", &s.RestorePointInTime) + delete(rawMsg, key) + case "sourceDatabaseDeletionDate": + err = unpopulateTimeRFC3339(val, "SourceDatabaseDeletionDate", &s.SourceDatabaseDeletionDate) + delete(rawMsg, key) + case "sourceDatabaseId": + err = unpopulate(val, "SourceDatabaseID", &s.SourceDatabaseID) + delete(rawMsg, key) + case "status": + err = unpopulate(val, "Status", &s.Status) + delete(rawMsg, key) + case "storageAccountType": + err = unpopulate(val, "StorageAccountType", &s.StorageAccountType) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SQLPoolSchema. +func (s SQLPoolSchema) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", s.ID) + populate(objectMap, "name", s.Name) + populate(objectMap, "type", s.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SQLPoolSchema. +func (s *SQLPoolSchema) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &s.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &s.Name) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &s.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SQLPoolSchemaListResult. +func (s SQLPoolSchemaListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", s.NextLink) + populate(objectMap, "value", s.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SQLPoolSchemaListResult. +func (s *SQLPoolSchemaListResult) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &s.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &s.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SQLPoolSecurityAlertPolicy. +func (s SQLPoolSecurityAlertPolicy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", s.ID) + populate(objectMap, "name", s.Name) + populate(objectMap, "properties", s.Properties) + populate(objectMap, "type", s.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SQLPoolSecurityAlertPolicy. +func (s *SQLPoolSecurityAlertPolicy) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &s.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &s.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &s.Properties) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &s.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SQLPoolTable. +func (s SQLPoolTable) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", s.ID) + populate(objectMap, "name", s.Name) + populate(objectMap, "type", s.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SQLPoolTable. +func (s *SQLPoolTable) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &s.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &s.Name) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &s.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SQLPoolTableListResult. +func (s SQLPoolTableListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", s.NextLink) + populate(objectMap, "value", s.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SQLPoolTableListResult. +func (s *SQLPoolTableListResult) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &s.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &s.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SQLPoolUsage. +func (s SQLPoolUsage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "currentValue", s.CurrentValue) + populate(objectMap, "displayName", s.DisplayName) + populate(objectMap, "limit", s.Limit) + populate(objectMap, "name", s.Name) + populateTimeRFC3339(objectMap, "nextResetTime", s.NextResetTime) + populate(objectMap, "resourceName", s.ResourceName) + populate(objectMap, "unit", s.Unit) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SQLPoolUsage. +func (s *SQLPoolUsage) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "currentValue": + err = unpopulate(val, "CurrentValue", &s.CurrentValue) + delete(rawMsg, key) + case "displayName": + err = unpopulate(val, "DisplayName", &s.DisplayName) + delete(rawMsg, key) + case "limit": + err = unpopulate(val, "Limit", &s.Limit) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &s.Name) + delete(rawMsg, key) + case "nextResetTime": + err = unpopulateTimeRFC3339(val, "NextResetTime", &s.NextResetTime) + delete(rawMsg, key) + case "resourceName": + err = unpopulate(val, "ResourceName", &s.ResourceName) + delete(rawMsg, key) + case "unit": + err = unpopulate(val, "Unit", &s.Unit) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SQLPoolUsageListResult. +func (s SQLPoolUsageListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", s.NextLink) + populate(objectMap, "value", s.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SQLPoolUsageListResult. +func (s *SQLPoolUsageListResult) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &s.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &s.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SQLPoolVulnerabilityAssessment. +func (s SQLPoolVulnerabilityAssessment) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", s.ID) + populate(objectMap, "name", s.Name) + populate(objectMap, "properties", s.Properties) + populate(objectMap, "type", s.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SQLPoolVulnerabilityAssessment. +func (s *SQLPoolVulnerabilityAssessment) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &s.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &s.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &s.Properties) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &s.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SQLPoolVulnerabilityAssessmentListResult. +func (s SQLPoolVulnerabilityAssessmentListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", s.NextLink) + populate(objectMap, "value", s.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SQLPoolVulnerabilityAssessmentListResult. +func (s *SQLPoolVulnerabilityAssessmentListResult) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &s.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &s.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SQLPoolVulnerabilityAssessmentProperties. +func (s SQLPoolVulnerabilityAssessmentProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "recurringScans", s.RecurringScans) + populate(objectMap, "storageAccountAccessKey", s.StorageAccountAccessKey) + populate(objectMap, "storageContainerPath", s.StorageContainerPath) + populate(objectMap, "storageContainerSasKey", s.StorageContainerSasKey) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SQLPoolVulnerabilityAssessmentProperties. +func (s *SQLPoolVulnerabilityAssessmentProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "recurringScans": + err = unpopulate(val, "RecurringScans", &s.RecurringScans) + delete(rawMsg, key) + case "storageAccountAccessKey": + err = unpopulate(val, "StorageAccountAccessKey", &s.StorageAccountAccessKey) + delete(rawMsg, key) + case "storageContainerPath": + err = unpopulate(val, "StorageContainerPath", &s.StorageContainerPath) + delete(rawMsg, key) + case "storageContainerSasKey": + err = unpopulate(val, "StorageContainerSasKey", &s.StorageContainerSasKey) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SQLPoolVulnerabilityAssessmentRuleBaseline. +func (s SQLPoolVulnerabilityAssessmentRuleBaseline) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", s.ID) + populate(objectMap, "name", s.Name) + populate(objectMap, "properties", s.Properties) + populate(objectMap, "type", s.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SQLPoolVulnerabilityAssessmentRuleBaseline. +func (s *SQLPoolVulnerabilityAssessmentRuleBaseline) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &s.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &s.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &s.Properties) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &s.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SQLPoolVulnerabilityAssessmentRuleBaselineItem. +func (s SQLPoolVulnerabilityAssessmentRuleBaselineItem) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "result", s.Result) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SQLPoolVulnerabilityAssessmentRuleBaselineItem. +func (s *SQLPoolVulnerabilityAssessmentRuleBaselineItem) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "result": + err = unpopulate(val, "Result", &s.Result) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SQLPoolVulnerabilityAssessmentRuleBaselineProperties. +func (s SQLPoolVulnerabilityAssessmentRuleBaselineProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "baselineResults", s.BaselineResults) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SQLPoolVulnerabilityAssessmentRuleBaselineProperties. +func (s *SQLPoolVulnerabilityAssessmentRuleBaselineProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "baselineResults": + err = unpopulate(val, "BaselineResults", &s.BaselineResults) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SQLPoolVulnerabilityAssessmentScanExportProperties. +func (s SQLPoolVulnerabilityAssessmentScanExportProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "exportedReportLocation", s.ExportedReportLocation) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SQLPoolVulnerabilityAssessmentScanExportProperties. +func (s *SQLPoolVulnerabilityAssessmentScanExportProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "exportedReportLocation": + err = unpopulate(val, "ExportedReportLocation", &s.ExportedReportLocation) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SQLPoolVulnerabilityAssessmentScansExport. +func (s SQLPoolVulnerabilityAssessmentScansExport) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", s.ID) + populate(objectMap, "name", s.Name) + populate(objectMap, "properties", s.Properties) + populate(objectMap, "type", s.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SQLPoolVulnerabilityAssessmentScansExport. +func (s *SQLPoolVulnerabilityAssessmentScansExport) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &s.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &s.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &s.Properties) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &s.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SecretBase. +func (s SecretBase) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + objectMap["type"] = s.Type + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SecretBase. +func (s *SecretBase) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "type": + err = unpopulate(val, "Type", &s.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SecureString. +func (s SecureString) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + objectMap["type"] = "SecureString" + populate(objectMap, "value", s.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SecureString. +func (s *SecureString) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "type": + err = unpopulate(val, "Type", &s.Type) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &s.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SecurityAlertPolicyProperties. +func (s SecurityAlertPolicyProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateTimeRFC3339(objectMap, "creationTime", s.CreationTime) + populate(objectMap, "disabledAlerts", s.DisabledAlerts) + populate(objectMap, "emailAccountAdmins", s.EmailAccountAdmins) + populate(objectMap, "emailAddresses", s.EmailAddresses) + populate(objectMap, "retentionDays", s.RetentionDays) + populate(objectMap, "state", s.State) + populate(objectMap, "storageAccountAccessKey", s.StorageAccountAccessKey) + populate(objectMap, "storageEndpoint", s.StorageEndpoint) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SecurityAlertPolicyProperties. +func (s *SecurityAlertPolicyProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "creationTime": + err = unpopulateTimeRFC3339(val, "CreationTime", &s.CreationTime) + delete(rawMsg, key) + case "disabledAlerts": + err = unpopulate(val, "DisabledAlerts", &s.DisabledAlerts) + delete(rawMsg, key) + case "emailAccountAdmins": + err = unpopulate(val, "EmailAccountAdmins", &s.EmailAccountAdmins) + delete(rawMsg, key) + case "emailAddresses": + err = unpopulate(val, "EmailAddresses", &s.EmailAddresses) + delete(rawMsg, key) + case "retentionDays": + err = unpopulate(val, "RetentionDays", &s.RetentionDays) + delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &s.State) + delete(rawMsg, key) + case "storageAccountAccessKey": + err = unpopulate(val, "StorageAccountAccessKey", &s.StorageAccountAccessKey) + delete(rawMsg, key) + case "storageEndpoint": + err = unpopulate(val, "StorageEndpoint", &s.StorageEndpoint) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SelfHostedIntegrationRuntime. +func (s SelfHostedIntegrationRuntime) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "description", s.Description) + objectMap["type"] = IntegrationRuntimeTypeSelfHosted + populate(objectMap, "typeProperties", s.TypeProperties) + if s.AdditionalProperties != nil { + for key, val := range s.AdditionalProperties { + objectMap[key] = val + } + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SelfHostedIntegrationRuntime. +func (s *SelfHostedIntegrationRuntime) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "description": + err = unpopulate(val, "Description", &s.Description) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &s.Type) + delete(rawMsg, key) + case "typeProperties": + err = unpopulate(val, "TypeProperties", &s.TypeProperties) + delete(rawMsg, key) + default: + if s.AdditionalProperties == nil { + s.AdditionalProperties = map[string]any{} + } + if val != nil { + var aux any + err = json.Unmarshal(val, &aux) + s.AdditionalProperties[key] = aux + } + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SelfHostedIntegrationRuntimeNode. +func (s SelfHostedIntegrationRuntimeNode) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "capabilities", s.Capabilities) + populate(objectMap, "concurrentJobsLimit", s.ConcurrentJobsLimit) + populateTimeRFC3339(objectMap, "expiryTime", s.ExpiryTime) + populate(objectMap, "hostServiceUri", s.HostServiceURI) + populate(objectMap, "isActiveDispatcher", s.IsActiveDispatcher) + populateTimeRFC3339(objectMap, "lastConnectTime", s.LastConnectTime) + populateTimeRFC3339(objectMap, "lastEndUpdateTime", s.LastEndUpdateTime) + populateTimeRFC3339(objectMap, "lastStartTime", s.LastStartTime) + populateTimeRFC3339(objectMap, "lastStartUpdateTime", s.LastStartUpdateTime) + populateTimeRFC3339(objectMap, "lastStopTime", s.LastStopTime) + populate(objectMap, "lastUpdateResult", s.LastUpdateResult) + populate(objectMap, "machineName", s.MachineName) + populate(objectMap, "maxConcurrentJobs", s.MaxConcurrentJobs) + populate(objectMap, "nodeName", s.NodeName) + populateTimeRFC3339(objectMap, "registerTime", s.RegisterTime) + populate(objectMap, "status", s.Status) + populate(objectMap, "version", s.Version) + populate(objectMap, "versionStatus", s.VersionStatus) + if s.AdditionalProperties != nil { + for key, val := range s.AdditionalProperties { + objectMap[key] = val + } + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SelfHostedIntegrationRuntimeNode. +func (s *SelfHostedIntegrationRuntimeNode) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "capabilities": + err = unpopulate(val, "Capabilities", &s.Capabilities) + delete(rawMsg, key) + case "concurrentJobsLimit": + err = unpopulate(val, "ConcurrentJobsLimit", &s.ConcurrentJobsLimit) + delete(rawMsg, key) + case "expiryTime": + err = unpopulateTimeRFC3339(val, "ExpiryTime", &s.ExpiryTime) + delete(rawMsg, key) + case "hostServiceUri": + err = unpopulate(val, "HostServiceURI", &s.HostServiceURI) + delete(rawMsg, key) + case "isActiveDispatcher": + err = unpopulate(val, "IsActiveDispatcher", &s.IsActiveDispatcher) + delete(rawMsg, key) + case "lastConnectTime": + err = unpopulateTimeRFC3339(val, "LastConnectTime", &s.LastConnectTime) + delete(rawMsg, key) + case "lastEndUpdateTime": + err = unpopulateTimeRFC3339(val, "LastEndUpdateTime", &s.LastEndUpdateTime) + delete(rawMsg, key) + case "lastStartTime": + err = unpopulateTimeRFC3339(val, "LastStartTime", &s.LastStartTime) + delete(rawMsg, key) + case "lastStartUpdateTime": + err = unpopulateTimeRFC3339(val, "LastStartUpdateTime", &s.LastStartUpdateTime) + delete(rawMsg, key) + case "lastStopTime": + err = unpopulateTimeRFC3339(val, "LastStopTime", &s.LastStopTime) + delete(rawMsg, key) + case "lastUpdateResult": + err = unpopulate(val, "LastUpdateResult", &s.LastUpdateResult) + delete(rawMsg, key) + case "machineName": + err = unpopulate(val, "MachineName", &s.MachineName) + delete(rawMsg, key) + case "maxConcurrentJobs": + err = unpopulate(val, "MaxConcurrentJobs", &s.MaxConcurrentJobs) + delete(rawMsg, key) + case "nodeName": + err = unpopulate(val, "NodeName", &s.NodeName) + delete(rawMsg, key) + case "registerTime": + err = unpopulateTimeRFC3339(val, "RegisterTime", &s.RegisterTime) + delete(rawMsg, key) + case "status": + err = unpopulate(val, "Status", &s.Status) + delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &s.Version) + delete(rawMsg, key) + case "versionStatus": + err = unpopulate(val, "VersionStatus", &s.VersionStatus) + delete(rawMsg, key) + default: + if s.AdditionalProperties == nil { + s.AdditionalProperties = map[string]any{} + } + if val != nil { + var aux any + err = json.Unmarshal(val, &aux) + s.AdditionalProperties[key] = aux + } + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SelfHostedIntegrationRuntimeStatus. +func (s SelfHostedIntegrationRuntimeStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "dataFactoryName", s.DataFactoryName) + populate(objectMap, "state", s.State) + objectMap["type"] = IntegrationRuntimeTypeSelfHosted + populate(objectMap, "typeProperties", s.TypeProperties) + if s.AdditionalProperties != nil { + for key, val := range s.AdditionalProperties { + objectMap[key] = val + } + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SelfHostedIntegrationRuntimeStatus. +func (s *SelfHostedIntegrationRuntimeStatus) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "dataFactoryName": + err = unpopulate(val, "DataFactoryName", &s.DataFactoryName) + delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &s.State) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &s.Type) + delete(rawMsg, key) + case "typeProperties": + err = unpopulate(val, "TypeProperties", &s.TypeProperties) + delete(rawMsg, key) + default: + if s.AdditionalProperties == nil { + s.AdditionalProperties = map[string]any{} + } + if val != nil { + var aux any + err = json.Unmarshal(val, &aux) + s.AdditionalProperties[key] = aux + } + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SelfHostedIntegrationRuntimeStatusTypeProperties. +func (s SelfHostedIntegrationRuntimeStatusTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "autoUpdate", s.AutoUpdate) + populateTimeRFC3339(objectMap, "autoUpdateETA", s.AutoUpdateETA) + populate(objectMap, "capabilities", s.Capabilities) + populateTimeRFC3339(objectMap, "createTime", s.CreateTime) + populate(objectMap, "internalChannelEncryption", s.InternalChannelEncryption) + populate(objectMap, "latestVersion", s.LatestVersion) + populate(objectMap, "links", s.Links) + populate(objectMap, "localTimeZoneOffset", s.LocalTimeZoneOffset) + populate(objectMap, "newerVersions", s.NewerVersions) + populate(objectMap, "nodeCommunicationChannelEncryptionMode", s.NodeCommunicationChannelEncryptionMode) + populate(objectMap, "nodes", s.Nodes) + populate(objectMap, "pushedVersion", s.PushedVersion) + populateTimeRFC3339(objectMap, "scheduledUpdateDate", s.ScheduledUpdateDate) + populate(objectMap, "serviceRegion", s.ServiceRegion) + populate(objectMap, "serviceUrls", s.ServiceUrls) + populate(objectMap, "taskQueueId", s.TaskQueueID) + populate(objectMap, "updateDelayOffset", s.UpdateDelayOffset) + populate(objectMap, "version", s.Version) + populate(objectMap, "versionStatus", s.VersionStatus) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SelfHostedIntegrationRuntimeStatusTypeProperties. +func (s *SelfHostedIntegrationRuntimeStatusTypeProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "autoUpdate": + err = unpopulate(val, "AutoUpdate", &s.AutoUpdate) + delete(rawMsg, key) + case "autoUpdateETA": + err = unpopulateTimeRFC3339(val, "AutoUpdateETA", &s.AutoUpdateETA) + delete(rawMsg, key) + case "capabilities": + err = unpopulate(val, "Capabilities", &s.Capabilities) + delete(rawMsg, key) + case "createTime": + err = unpopulateTimeRFC3339(val, "CreateTime", &s.CreateTime) + delete(rawMsg, key) + case "internalChannelEncryption": + err = unpopulate(val, "InternalChannelEncryption", &s.InternalChannelEncryption) + delete(rawMsg, key) + case "latestVersion": + err = unpopulate(val, "LatestVersion", &s.LatestVersion) + delete(rawMsg, key) + case "links": + err = unpopulate(val, "Links", &s.Links) + delete(rawMsg, key) + case "localTimeZoneOffset": + err = unpopulate(val, "LocalTimeZoneOffset", &s.LocalTimeZoneOffset) + delete(rawMsg, key) + case "newerVersions": + err = unpopulate(val, "NewerVersions", &s.NewerVersions) + delete(rawMsg, key) + case "nodeCommunicationChannelEncryptionMode": + err = unpopulate(val, "NodeCommunicationChannelEncryptionMode", &s.NodeCommunicationChannelEncryptionMode) + delete(rawMsg, key) + case "nodes": + err = unpopulate(val, "Nodes", &s.Nodes) + delete(rawMsg, key) + case "pushedVersion": + err = unpopulate(val, "PushedVersion", &s.PushedVersion) + delete(rawMsg, key) + case "scheduledUpdateDate": + err = unpopulateTimeRFC3339(val, "ScheduledUpdateDate", &s.ScheduledUpdateDate) + delete(rawMsg, key) + case "serviceRegion": + err = unpopulate(val, "ServiceRegion", &s.ServiceRegion) + delete(rawMsg, key) + case "serviceUrls": + err = unpopulate(val, "ServiceUrls", &s.ServiceUrls) + delete(rawMsg, key) + case "taskQueueId": + err = unpopulate(val, "TaskQueueID", &s.TaskQueueID) + delete(rawMsg, key) + case "updateDelayOffset": + err = unpopulate(val, "UpdateDelayOffset", &s.UpdateDelayOffset) + delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &s.Version) + delete(rawMsg, key) + case "versionStatus": + err = unpopulate(val, "VersionStatus", &s.VersionStatus) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SelfHostedIntegrationRuntimeTypeProperties. +func (s SelfHostedIntegrationRuntimeTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "linkedInfo", s.LinkedInfo) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SelfHostedIntegrationRuntimeTypeProperties. +func (s *SelfHostedIntegrationRuntimeTypeProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "linkedInfo": + s.LinkedInfo, err = unmarshalLinkedIntegrationRuntimeTypeClassification(val) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SensitivityLabel. +func (s SensitivityLabel) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", s.ID) + populate(objectMap, "managedBy", s.ManagedBy) + populate(objectMap, "name", s.Name) + populate(objectMap, "properties", s.Properties) + populate(objectMap, "type", s.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SensitivityLabel. +func (s *SensitivityLabel) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &s.ID) + delete(rawMsg, key) + case "managedBy": + err = unpopulate(val, "ManagedBy", &s.ManagedBy) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &s.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &s.Properties) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &s.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SensitivityLabelListResult. +func (s SensitivityLabelListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", s.NextLink) + populate(objectMap, "value", s.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SensitivityLabelListResult. +func (s *SensitivityLabelListResult) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &s.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &s.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SensitivityLabelProperties. +func (s SensitivityLabelProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "columnName", s.ColumnName) + populate(objectMap, "informationType", s.InformationType) + populate(objectMap, "informationTypeId", s.InformationTypeID) + populate(objectMap, "isDisabled", s.IsDisabled) + populate(objectMap, "labelId", s.LabelID) + populate(objectMap, "labelName", s.LabelName) + populate(objectMap, "rank", s.Rank) + populate(objectMap, "schemaName", s.SchemaName) + populate(objectMap, "tableName", s.TableName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SensitivityLabelProperties. +func (s *SensitivityLabelProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "columnName": + err = unpopulate(val, "ColumnName", &s.ColumnName) + delete(rawMsg, key) + case "informationType": + err = unpopulate(val, "InformationType", &s.InformationType) + delete(rawMsg, key) + case "informationTypeId": + err = unpopulate(val, "InformationTypeID", &s.InformationTypeID) + delete(rawMsg, key) + case "isDisabled": + err = unpopulate(val, "IsDisabled", &s.IsDisabled) + delete(rawMsg, key) + case "labelId": + err = unpopulate(val, "LabelID", &s.LabelID) + delete(rawMsg, key) + case "labelName": + err = unpopulate(val, "LabelName", &s.LabelName) + delete(rawMsg, key) + case "rank": + err = unpopulate(val, "Rank", &s.Rank) + delete(rawMsg, key) + case "schemaName": + err = unpopulate(val, "SchemaName", &s.SchemaName) + delete(rawMsg, key) + case "tableName": + err = unpopulate(val, "TableName", &s.TableName) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SensitivityLabelUpdate. +func (s SensitivityLabelUpdate) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", s.ID) + populate(objectMap, "name", s.Name) + populate(objectMap, "properties", s.Properties) + populate(objectMap, "type", s.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SensitivityLabelUpdate. +func (s *SensitivityLabelUpdate) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &s.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &s.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &s.Properties) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &s.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SensitivityLabelUpdateList. +func (s SensitivityLabelUpdateList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "operations", s.Operations) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SensitivityLabelUpdateList. +func (s *SensitivityLabelUpdateList) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "operations": + err = unpopulate(val, "Operations", &s.Operations) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SensitivityLabelUpdateProperties. +func (s SensitivityLabelUpdateProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "column", s.Column) + populate(objectMap, "op", s.Op) + populate(objectMap, "schema", s.Schema) + populate(objectMap, "sensitivityLabel", s.SensitivityLabel) + populate(objectMap, "table", s.Table) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SensitivityLabelUpdateProperties. +func (s *SensitivityLabelUpdateProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "column": + err = unpopulate(val, "Column", &s.Column) + delete(rawMsg, key) + case "op": + err = unpopulate(val, "Op", &s.Op) + delete(rawMsg, key) + case "schema": + err = unpopulate(val, "Schema", &s.Schema) + delete(rawMsg, key) + case "sensitivityLabel": + err = unpopulate(val, "SensitivityLabel", &s.SensitivityLabel) + delete(rawMsg, key) + case "table": + err = unpopulate(val, "Table", &s.Table) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ServerBlobAuditingPolicy. +func (s ServerBlobAuditingPolicy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", s.ID) + populate(objectMap, "name", s.Name) + populate(objectMap, "properties", s.Properties) + populate(objectMap, "type", s.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ServerBlobAuditingPolicy. +func (s *ServerBlobAuditingPolicy) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &s.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &s.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &s.Properties) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &s.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ServerBlobAuditingPolicyListResult. +func (s ServerBlobAuditingPolicyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", s.NextLink) + populate(objectMap, "value", s.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ServerBlobAuditingPolicyListResult. +func (s *ServerBlobAuditingPolicyListResult) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &s.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &s.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ServerBlobAuditingPolicyProperties. +func (s ServerBlobAuditingPolicyProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "auditActionsAndGroups", s.AuditActionsAndGroups) + populate(objectMap, "isAzureMonitorTargetEnabled", s.IsAzureMonitorTargetEnabled) + populate(objectMap, "isDevopsAuditEnabled", s.IsDevopsAuditEnabled) + populate(objectMap, "isStorageSecondaryKeyInUse", s.IsStorageSecondaryKeyInUse) + populate(objectMap, "queueDelayMs", s.QueueDelayMs) + populate(objectMap, "retentionDays", s.RetentionDays) + populate(objectMap, "state", s.State) + populate(objectMap, "storageAccountAccessKey", s.StorageAccountAccessKey) + populate(objectMap, "storageAccountSubscriptionId", s.StorageAccountSubscriptionID) + populate(objectMap, "storageEndpoint", s.StorageEndpoint) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ServerBlobAuditingPolicyProperties. +func (s *ServerBlobAuditingPolicyProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "auditActionsAndGroups": + err = unpopulate(val, "AuditActionsAndGroups", &s.AuditActionsAndGroups) + delete(rawMsg, key) + case "isAzureMonitorTargetEnabled": + err = unpopulate(val, "IsAzureMonitorTargetEnabled", &s.IsAzureMonitorTargetEnabled) + delete(rawMsg, key) + case "isDevopsAuditEnabled": + err = unpopulate(val, "IsDevopsAuditEnabled", &s.IsDevopsAuditEnabled) + delete(rawMsg, key) + case "isStorageSecondaryKeyInUse": + err = unpopulate(val, "IsStorageSecondaryKeyInUse", &s.IsStorageSecondaryKeyInUse) + delete(rawMsg, key) + case "queueDelayMs": + err = unpopulate(val, "QueueDelayMs", &s.QueueDelayMs) + delete(rawMsg, key) + case "retentionDays": + err = unpopulate(val, "RetentionDays", &s.RetentionDays) + delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &s.State) + delete(rawMsg, key) + case "storageAccountAccessKey": + err = unpopulate(val, "StorageAccountAccessKey", &s.StorageAccountAccessKey) + delete(rawMsg, key) + case "storageAccountSubscriptionId": + err = unpopulate(val, "StorageAccountSubscriptionID", &s.StorageAccountSubscriptionID) + delete(rawMsg, key) + case "storageEndpoint": + err = unpopulate(val, "StorageEndpoint", &s.StorageEndpoint) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ServerSecurityAlertPolicy. +func (s ServerSecurityAlertPolicy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", s.ID) + populate(objectMap, "name", s.Name) + populate(objectMap, "properties", s.Properties) + populate(objectMap, "type", s.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ServerSecurityAlertPolicy. +func (s *ServerSecurityAlertPolicy) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &s.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &s.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &s.Properties) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &s.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ServerSecurityAlertPolicyListResult. +func (s ServerSecurityAlertPolicyListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", s.NextLink) + populate(objectMap, "value", s.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ServerSecurityAlertPolicyListResult. +func (s *ServerSecurityAlertPolicyListResult) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &s.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &s.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ServerSecurityAlertPolicyProperties. +func (s ServerSecurityAlertPolicyProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateTimeRFC3339(objectMap, "creationTime", s.CreationTime) + populate(objectMap, "disabledAlerts", s.DisabledAlerts) + populate(objectMap, "emailAccountAdmins", s.EmailAccountAdmins) + populate(objectMap, "emailAddresses", s.EmailAddresses) + populate(objectMap, "retentionDays", s.RetentionDays) + populate(objectMap, "state", s.State) + populate(objectMap, "storageAccountAccessKey", s.StorageAccountAccessKey) + populate(objectMap, "storageEndpoint", s.StorageEndpoint) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ServerSecurityAlertPolicyProperties. +func (s *ServerSecurityAlertPolicyProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "creationTime": + err = unpopulateTimeRFC3339(val, "CreationTime", &s.CreationTime) + delete(rawMsg, key) + case "disabledAlerts": + err = unpopulate(val, "DisabledAlerts", &s.DisabledAlerts) + delete(rawMsg, key) + case "emailAccountAdmins": + err = unpopulate(val, "EmailAccountAdmins", &s.EmailAccountAdmins) + delete(rawMsg, key) + case "emailAddresses": + err = unpopulate(val, "EmailAddresses", &s.EmailAddresses) + delete(rawMsg, key) + case "retentionDays": + err = unpopulate(val, "RetentionDays", &s.RetentionDays) + delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &s.State) + delete(rawMsg, key) + case "storageAccountAccessKey": + err = unpopulate(val, "StorageAccountAccessKey", &s.StorageAccountAccessKey) + delete(rawMsg, key) + case "storageEndpoint": + err = unpopulate(val, "StorageEndpoint", &s.StorageEndpoint) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ServerUsage. +func (s ServerUsage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "currentValue", s.CurrentValue) + populate(objectMap, "displayName", s.DisplayName) + populate(objectMap, "limit", s.Limit) + populate(objectMap, "name", s.Name) + populateTimeRFC3339(objectMap, "nextResetTime", s.NextResetTime) + populate(objectMap, "resourceName", s.ResourceName) + populate(objectMap, "unit", s.Unit) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ServerUsage. +func (s *ServerUsage) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "currentValue": + err = unpopulate(val, "CurrentValue", &s.CurrentValue) + delete(rawMsg, key) + case "displayName": + err = unpopulate(val, "DisplayName", &s.DisplayName) + delete(rawMsg, key) + case "limit": + err = unpopulate(val, "Limit", &s.Limit) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &s.Name) + delete(rawMsg, key) + case "nextResetTime": + err = unpopulateTimeRFC3339(val, "NextResetTime", &s.NextResetTime) + delete(rawMsg, key) + case "resourceName": + err = unpopulate(val, "ResourceName", &s.ResourceName) + delete(rawMsg, key) + case "unit": + err = unpopulate(val, "Unit", &s.Unit) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ServerUsageListResult. +func (s ServerUsageListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", s.NextLink) + populate(objectMap, "value", s.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ServerUsageListResult. +func (s *ServerUsageListResult) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &s.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &s.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ServerVulnerabilityAssessment. +func (s ServerVulnerabilityAssessment) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", s.ID) + populate(objectMap, "name", s.Name) + populate(objectMap, "properties", s.Properties) + populate(objectMap, "type", s.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ServerVulnerabilityAssessment. +func (s *ServerVulnerabilityAssessment) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &s.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &s.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &s.Properties) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &s.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ServerVulnerabilityAssessmentListResult. +func (s ServerVulnerabilityAssessmentListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", s.NextLink) + populate(objectMap, "value", s.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ServerVulnerabilityAssessmentListResult. +func (s *ServerVulnerabilityAssessmentListResult) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &s.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &s.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ServerVulnerabilityAssessmentProperties. +func (s ServerVulnerabilityAssessmentProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "recurringScans", s.RecurringScans) + populate(objectMap, "storageAccountAccessKey", s.StorageAccountAccessKey) + populate(objectMap, "storageContainerPath", s.StorageContainerPath) + populate(objectMap, "storageContainerSasKey", s.StorageContainerSasKey) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ServerVulnerabilityAssessmentProperties. +func (s *ServerVulnerabilityAssessmentProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "recurringScans": + err = unpopulate(val, "RecurringScans", &s.RecurringScans) + delete(rawMsg, key) + case "storageAccountAccessKey": + err = unpopulate(val, "StorageAccountAccessKey", &s.StorageAccountAccessKey) + delete(rawMsg, key) + case "storageContainerPath": + err = unpopulate(val, "StorageContainerPath", &s.StorageContainerPath) + delete(rawMsg, key) + case "storageContainerSasKey": + err = unpopulate(val, "StorageContainerSasKey", &s.StorageContainerSasKey) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SparkConfigProperties. +func (s SparkConfigProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "configurationType", s.ConfigurationType) + populate(objectMap, "content", s.Content) + populate(objectMap, "filename", s.Filename) + populateTimeRFC3339(objectMap, "time", s.Time) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SparkConfigProperties. +func (s *SparkConfigProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "configurationType": + err = unpopulate(val, "ConfigurationType", &s.ConfigurationType) + delete(rawMsg, key) + case "content": + err = unpopulate(val, "Content", &s.Content) + delete(rawMsg, key) + case "filename": + err = unpopulate(val, "Filename", &s.Filename) + delete(rawMsg, key) + case "time": + err = unpopulateTimeRFC3339(val, "Time", &s.Time) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SparkConfigurationInfo. +func (s SparkConfigurationInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "annotations", s.Annotations) + populate(objectMap, "configMergeRule", s.ConfigMergeRule) + populate(objectMap, "configs", s.Configs) + populateTimeRFC3339(objectMap, "created", s.Created) + populate(objectMap, "createdBy", s.CreatedBy) + populate(objectMap, "description", s.Description) + populate(objectMap, "notes", s.Notes) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SparkConfigurationInfo. +func (s *SparkConfigurationInfo) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "annotations": + err = unpopulate(val, "Annotations", &s.Annotations) + delete(rawMsg, key) + case "configMergeRule": + err = unpopulate(val, "ConfigMergeRule", &s.ConfigMergeRule) + delete(rawMsg, key) + case "configs": + err = unpopulate(val, "Configs", &s.Configs) + delete(rawMsg, key) + case "created": + err = unpopulateTimeRFC3339(val, "Created", &s.Created) + delete(rawMsg, key) + case "createdBy": + err = unpopulate(val, "CreatedBy", &s.CreatedBy) + delete(rawMsg, key) + case "description": + err = unpopulate(val, "Description", &s.Description) + delete(rawMsg, key) + case "notes": + err = unpopulate(val, "Notes", &s.Notes) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SparkConfigurationListResponse. +func (s SparkConfigurationListResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", s.NextLink) + populate(objectMap, "value", s.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SparkConfigurationListResponse. +func (s *SparkConfigurationListResponse) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &s.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &s.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SparkConfigurationResource. +func (s SparkConfigurationResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "etag", s.Etag) + populate(objectMap, "id", s.ID) + populate(objectMap, "name", s.Name) + populate(objectMap, "properties", s.Properties) + populate(objectMap, "type", s.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SparkConfigurationResource. +func (s *SparkConfigurationResource) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "etag": + err = unpopulate(val, "Etag", &s.Etag) + delete(rawMsg, key) + case "id": + err = unpopulate(val, "ID", &s.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &s.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &s.Properties) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &s.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SsisEnvironment. +func (s SsisEnvironment) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "description", s.Description) + populate(objectMap, "folderId", s.FolderID) + populate(objectMap, "id", s.ID) + populate(objectMap, "name", s.Name) + objectMap["type"] = SsisObjectMetadataTypeEnvironment + populate(objectMap, "variables", s.Variables) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SsisEnvironment. +func (s *SsisEnvironment) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "description": + err = unpopulate(val, "Description", &s.Description) + delete(rawMsg, key) + case "folderId": + err = unpopulate(val, "FolderID", &s.FolderID) + delete(rawMsg, key) + case "id": + err = unpopulate(val, "ID", &s.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &s.Name) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &s.Type) + delete(rawMsg, key) + case "variables": + err = unpopulate(val, "Variables", &s.Variables) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SsisEnvironmentReference. +func (s SsisEnvironmentReference) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "environmentFolderName", s.EnvironmentFolderName) + populate(objectMap, "environmentName", s.EnvironmentName) + populate(objectMap, "id", s.ID) + populate(objectMap, "referenceType", s.ReferenceType) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SsisEnvironmentReference. +func (s *SsisEnvironmentReference) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "environmentFolderName": + err = unpopulate(val, "EnvironmentFolderName", &s.EnvironmentFolderName) + delete(rawMsg, key) + case "environmentName": + err = unpopulate(val, "EnvironmentName", &s.EnvironmentName) + delete(rawMsg, key) + case "id": + err = unpopulate(val, "ID", &s.ID) + delete(rawMsg, key) + case "referenceType": + err = unpopulate(val, "ReferenceType", &s.ReferenceType) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SsisFolder. +func (s SsisFolder) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "description", s.Description) + populate(objectMap, "id", s.ID) + populate(objectMap, "name", s.Name) + objectMap["type"] = SsisObjectMetadataTypeFolder + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SsisFolder. +func (s *SsisFolder) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "description": + err = unpopulate(val, "Description", &s.Description) + delete(rawMsg, key) + case "id": + err = unpopulate(val, "ID", &s.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &s.Name) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &s.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SsisObjectMetadata. +func (s SsisObjectMetadata) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "description", s.Description) + populate(objectMap, "id", s.ID) + populate(objectMap, "name", s.Name) + objectMap["type"] = s.Type + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SsisObjectMetadata. +func (s *SsisObjectMetadata) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "description": + err = unpopulate(val, "Description", &s.Description) + delete(rawMsg, key) + case "id": + err = unpopulate(val, "ID", &s.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &s.Name) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &s.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SsisObjectMetadataListResponse. +func (s SsisObjectMetadataListResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", s.NextLink) + populate(objectMap, "value", s.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SsisObjectMetadataListResponse. +func (s *SsisObjectMetadataListResponse) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &s.NextLink) + delete(rawMsg, key) + case "value": + s.Value, err = unmarshalSsisObjectMetadataClassificationArray(val) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SsisObjectMetadataStatusResponse. +func (s SsisObjectMetadataStatusResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "error", s.Error) + populate(objectMap, "name", s.Name) + populate(objectMap, "properties", s.Properties) + populate(objectMap, "status", s.Status) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SsisObjectMetadataStatusResponse. +func (s *SsisObjectMetadataStatusResponse) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "error": + err = unpopulate(val, "Error", &s.Error) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &s.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &s.Properties) + delete(rawMsg, key) + case "status": + err = unpopulate(val, "Status", &s.Status) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SsisPackage. +func (s SsisPackage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "description", s.Description) + populate(objectMap, "folderId", s.FolderID) + populate(objectMap, "id", s.ID) + populate(objectMap, "name", s.Name) + populate(objectMap, "parameters", s.Parameters) + populate(objectMap, "projectId", s.ProjectID) + populate(objectMap, "projectVersion", s.ProjectVersion) + objectMap["type"] = SsisObjectMetadataTypePackage + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SsisPackage. +func (s *SsisPackage) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "description": + err = unpopulate(val, "Description", &s.Description) + delete(rawMsg, key) + case "folderId": + err = unpopulate(val, "FolderID", &s.FolderID) + delete(rawMsg, key) + case "id": + err = unpopulate(val, "ID", &s.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &s.Name) + delete(rawMsg, key) + case "parameters": + err = unpopulate(val, "Parameters", &s.Parameters) + delete(rawMsg, key) + case "projectId": + err = unpopulate(val, "ProjectID", &s.ProjectID) + delete(rawMsg, key) + case "projectVersion": + err = unpopulate(val, "ProjectVersion", &s.ProjectVersion) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &s.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SsisParameter. +func (s SsisParameter) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "dataType", s.DataType) + populate(objectMap, "defaultValue", s.DefaultValue) + populate(objectMap, "description", s.Description) + populate(objectMap, "designDefaultValue", s.DesignDefaultValue) + populate(objectMap, "id", s.ID) + populate(objectMap, "name", s.Name) + populate(objectMap, "required", s.Required) + populate(objectMap, "sensitive", s.Sensitive) + populate(objectMap, "sensitiveDefaultValue", s.SensitiveDefaultValue) + populate(objectMap, "valueSet", s.ValueSet) + populate(objectMap, "valueType", s.ValueType) + populate(objectMap, "variable", s.Variable) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SsisParameter. +func (s *SsisParameter) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "dataType": + err = unpopulate(val, "DataType", &s.DataType) + delete(rawMsg, key) + case "defaultValue": + err = unpopulate(val, "DefaultValue", &s.DefaultValue) + delete(rawMsg, key) + case "description": + err = unpopulate(val, "Description", &s.Description) + delete(rawMsg, key) + case "designDefaultValue": + err = unpopulate(val, "DesignDefaultValue", &s.DesignDefaultValue) + delete(rawMsg, key) + case "id": + err = unpopulate(val, "ID", &s.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &s.Name) + delete(rawMsg, key) + case "required": + err = unpopulate(val, "Required", &s.Required) + delete(rawMsg, key) + case "sensitive": + err = unpopulate(val, "Sensitive", &s.Sensitive) + delete(rawMsg, key) + case "sensitiveDefaultValue": + err = unpopulate(val, "SensitiveDefaultValue", &s.SensitiveDefaultValue) + delete(rawMsg, key) + case "valueSet": + err = unpopulate(val, "ValueSet", &s.ValueSet) + delete(rawMsg, key) + case "valueType": + err = unpopulate(val, "ValueType", &s.ValueType) + delete(rawMsg, key) + case "variable": + err = unpopulate(val, "Variable", &s.Variable) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SsisProject. +func (s SsisProject) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "description", s.Description) + populate(objectMap, "environmentRefs", s.EnvironmentRefs) + populate(objectMap, "folderId", s.FolderID) + populate(objectMap, "id", s.ID) + populate(objectMap, "name", s.Name) + populate(objectMap, "parameters", s.Parameters) + objectMap["type"] = SsisObjectMetadataTypeProject + populate(objectMap, "version", s.Version) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SsisProject. +func (s *SsisProject) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "description": + err = unpopulate(val, "Description", &s.Description) + delete(rawMsg, key) + case "environmentRefs": + err = unpopulate(val, "EnvironmentRefs", &s.EnvironmentRefs) + delete(rawMsg, key) + case "folderId": + err = unpopulate(val, "FolderID", &s.FolderID) + delete(rawMsg, key) + case "id": + err = unpopulate(val, "ID", &s.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &s.Name) + delete(rawMsg, key) + case "parameters": + err = unpopulate(val, "Parameters", &s.Parameters) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &s.Type) + delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &s.Version) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SsisVariable. +func (s SsisVariable) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "dataType", s.DataType) + populate(objectMap, "description", s.Description) + populate(objectMap, "id", s.ID) + populate(objectMap, "name", s.Name) + populate(objectMap, "sensitive", s.Sensitive) + populate(objectMap, "sensitiveValue", s.SensitiveValue) + populate(objectMap, "value", s.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SsisVariable. +func (s *SsisVariable) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "dataType": + err = unpopulate(val, "DataType", &s.DataType) + delete(rawMsg, key) + case "description": + err = unpopulate(val, "Description", &s.Description) + delete(rawMsg, key) + case "id": + err = unpopulate(val, "ID", &s.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &s.Name) + delete(rawMsg, key) + case "sensitive": + err = unpopulate(val, "Sensitive", &s.Sensitive) + delete(rawMsg, key) + case "sensitiveValue": + err = unpopulate(val, "SensitiveValue", &s.SensitiveValue) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &s.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SubResource. +func (s SubResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "etag", s.Etag) + populate(objectMap, "id", s.ID) + populate(objectMap, "name", s.Name) + populate(objectMap, "type", s.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SubResource. +func (s *SubResource) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "etag": + err = unpopulate(val, "Etag", &s.Etag) + delete(rawMsg, key) + case "id": + err = unpopulate(val, "ID", &s.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &s.Name) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &s.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SystemData. +func (s SystemData) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateTimeRFC3339(objectMap, "createdAt", s.CreatedAt) + populate(objectMap, "createdBy", s.CreatedBy) + populate(objectMap, "createdByType", s.CreatedByType) + populateTimeRFC3339(objectMap, "lastModifiedAt", s.LastModifiedAt) + populate(objectMap, "lastModifiedBy", s.LastModifiedBy) + populate(objectMap, "lastModifiedByType", s.LastModifiedByType) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SystemData. +func (s *SystemData) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "createdAt": + err = unpopulateTimeRFC3339(val, "CreatedAt", &s.CreatedAt) + delete(rawMsg, key) + case "createdBy": + err = unpopulate(val, "CreatedBy", &s.CreatedBy) + delete(rawMsg, key) + case "createdByType": + err = unpopulate(val, "CreatedByType", &s.CreatedByType) + delete(rawMsg, key) + case "lastModifiedAt": + err = unpopulateTimeRFC3339(val, "LastModifiedAt", &s.LastModifiedAt) + delete(rawMsg, key) + case "lastModifiedBy": + err = unpopulate(val, "LastModifiedBy", &s.LastModifiedBy) + delete(rawMsg, key) + case "lastModifiedByType": + err = unpopulate(val, "LastModifiedByType", &s.LastModifiedByType) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type TableLevelSharingProperties. +func (t TableLevelSharingProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "externalTablesToExclude", t.ExternalTablesToExclude) + populate(objectMap, "externalTablesToInclude", t.ExternalTablesToInclude) + populate(objectMap, "materializedViewsToExclude", t.MaterializedViewsToExclude) + populate(objectMap, "materializedViewsToInclude", t.MaterializedViewsToInclude) + populate(objectMap, "tablesToExclude", t.TablesToExclude) + populate(objectMap, "tablesToInclude", t.TablesToInclude) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type TableLevelSharingProperties. +func (t *TableLevelSharingProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "externalTablesToExclude": + err = unpopulate(val, "ExternalTablesToExclude", &t.ExternalTablesToExclude) + delete(rawMsg, key) + case "externalTablesToInclude": + err = unpopulate(val, "ExternalTablesToInclude", &t.ExternalTablesToInclude) + delete(rawMsg, key) + case "materializedViewsToExclude": + err = unpopulate(val, "MaterializedViewsToExclude", &t.MaterializedViewsToExclude) + delete(rawMsg, key) + case "materializedViewsToInclude": + err = unpopulate(val, "MaterializedViewsToInclude", &t.MaterializedViewsToInclude) + delete(rawMsg, key) + case "tablesToExclude": + err = unpopulate(val, "TablesToExclude", &t.TablesToExclude) + delete(rawMsg, key) + case "tablesToInclude": + err = unpopulate(val, "TablesToInclude", &t.TablesToInclude) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type TopQueries. +func (t TopQueries) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "aggregationFunction", t.AggregationFunction) + populate(objectMap, "executionType", t.ExecutionType) + populate(objectMap, "intervalType", t.IntervalType) + populate(objectMap, "numberOfTopQueries", t.NumberOfTopQueries) + populateTimeRFC3339(objectMap, "observationEndTime", t.ObservationEndTime) + populateTimeRFC3339(objectMap, "observationStartTime", t.ObservationStartTime) + populate(objectMap, "observedMetric", t.ObservedMetric) + populate(objectMap, "queries", t.Queries) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type TopQueries. +func (t *TopQueries) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "aggregationFunction": + err = unpopulate(val, "AggregationFunction", &t.AggregationFunction) + delete(rawMsg, key) + case "executionType": + err = unpopulate(val, "ExecutionType", &t.ExecutionType) + delete(rawMsg, key) + case "intervalType": + err = unpopulate(val, "IntervalType", &t.IntervalType) + delete(rawMsg, key) + case "numberOfTopQueries": + err = unpopulate(val, "NumberOfTopQueries", &t.NumberOfTopQueries) + delete(rawMsg, key) + case "observationEndTime": + err = unpopulateTimeRFC3339(val, "ObservationEndTime", &t.ObservationEndTime) + delete(rawMsg, key) + case "observationStartTime": + err = unpopulateTimeRFC3339(val, "ObservationStartTime", &t.ObservationStartTime) + delete(rawMsg, key) + case "observedMetric": + err = unpopulate(val, "ObservedMetric", &t.ObservedMetric) + delete(rawMsg, key) + case "queries": + err = unpopulate(val, "Queries", &t.Queries) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type TopQueriesListResult. +func (t TopQueriesListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "value", t.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type TopQueriesListResult. +func (t *TopQueriesListResult) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "value": + err = unpopulate(val, "Value", &t.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type TrackedResource. +func (t TrackedResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", t.ID) + populate(objectMap, "location", t.Location) + populate(objectMap, "name", t.Name) + populate(objectMap, "tags", t.Tags) + populate(objectMap, "type", t.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type TrackedResource. +func (t *TrackedResource) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &t.ID) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &t.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &t.Name) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &t.Tags) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &t.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type TransparentDataEncryption. +func (t TransparentDataEncryption) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", t.ID) + populate(objectMap, "location", t.Location) + populate(objectMap, "name", t.Name) + populate(objectMap, "properties", t.Properties) + populate(objectMap, "type", t.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type TransparentDataEncryption. +func (t *TransparentDataEncryption) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &t.ID) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &t.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &t.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &t.Properties) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &t.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type TransparentDataEncryptionListResult. +func (t TransparentDataEncryptionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", t.NextLink) + populate(objectMap, "value", t.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type TransparentDataEncryptionListResult. +func (t *TransparentDataEncryptionListResult) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &t.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &t.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type TransparentDataEncryptionProperties. +func (t TransparentDataEncryptionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "status", t.Status) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type TransparentDataEncryptionProperties. +func (t *TransparentDataEncryptionProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "status": + err = unpopulate(val, "Status", &t.Status) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type UpdateIntegrationRuntimeNodeRequest. +func (u UpdateIntegrationRuntimeNodeRequest) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "concurrentJobsLimit", u.ConcurrentJobsLimit) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type UpdateIntegrationRuntimeNodeRequest. +func (u *UpdateIntegrationRuntimeNodeRequest) 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 "concurrentJobsLimit": + err = unpopulate(val, "ConcurrentJobsLimit", &u.ConcurrentJobsLimit) + 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 UpdateIntegrationRuntimeRequest. +func (u UpdateIntegrationRuntimeRequest) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "autoUpdate", u.AutoUpdate) + populate(objectMap, "updateDelayOffset", u.UpdateDelayOffset) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type UpdateIntegrationRuntimeRequest. +func (u *UpdateIntegrationRuntimeRequest) 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 "autoUpdate": + err = unpopulate(val, "AutoUpdate", &u.AutoUpdate) + delete(rawMsg, key) + case "updateDelayOffset": + err = unpopulate(val, "UpdateDelayOffset", &u.UpdateDelayOffset) + 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 UserAssignedManagedIdentity. +func (u UserAssignedManagedIdentity) 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 UserAssignedManagedIdentity. +func (u *UserAssignedManagedIdentity) 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 VirtualNetworkProfile. +func (v VirtualNetworkProfile) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "computeSubnetId", v.ComputeSubnetID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualNetworkProfile. +func (v *VirtualNetworkProfile) 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", v, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "computeSubnetId": + err = unpopulate(val, "ComputeSubnetID", &v.ComputeSubnetID) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", v, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type VulnerabilityAssessmentRecurringScansProperties. +func (v VulnerabilityAssessmentRecurringScansProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "emailSubscriptionAdmins", v.EmailSubscriptionAdmins) + populate(objectMap, "emails", v.Emails) + populate(objectMap, "isEnabled", v.IsEnabled) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VulnerabilityAssessmentRecurringScansProperties. +func (v *VulnerabilityAssessmentRecurringScansProperties) 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", v, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "emailSubscriptionAdmins": + err = unpopulate(val, "EmailSubscriptionAdmins", &v.EmailSubscriptionAdmins) + delete(rawMsg, key) + case "emails": + err = unpopulate(val, "Emails", &v.Emails) + delete(rawMsg, key) + case "isEnabled": + err = unpopulate(val, "IsEnabled", &v.IsEnabled) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", v, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type VulnerabilityAssessmentScanError. +func (v VulnerabilityAssessmentScanError) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "code", v.Code) + populate(objectMap, "message", v.Message) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VulnerabilityAssessmentScanError. +func (v *VulnerabilityAssessmentScanError) 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", v, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "code": + err = unpopulate(val, "Code", &v.Code) + delete(rawMsg, key) + case "message": + err = unpopulate(val, "Message", &v.Message) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", v, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type VulnerabilityAssessmentScanRecord. +func (v VulnerabilityAssessmentScanRecord) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", v.ID) + populate(objectMap, "name", v.Name) + populate(objectMap, "properties", v.Properties) + populate(objectMap, "type", v.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VulnerabilityAssessmentScanRecord. +func (v *VulnerabilityAssessmentScanRecord) 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", v, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &v.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &v.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &v.Properties) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &v.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", v, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type VulnerabilityAssessmentScanRecordListResult. +func (v VulnerabilityAssessmentScanRecordListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", v.NextLink) + populate(objectMap, "value", v.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VulnerabilityAssessmentScanRecordListResult. +func (v *VulnerabilityAssessmentScanRecordListResult) 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", v, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &v.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &v.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", v, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type VulnerabilityAssessmentScanRecordProperties. +func (v VulnerabilityAssessmentScanRecordProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateTimeRFC3339(objectMap, "endTime", v.EndTime) + populate(objectMap, "errors", v.Errors) + populate(objectMap, "numberOfFailedSecurityChecks", v.NumberOfFailedSecurityChecks) + populate(objectMap, "scanId", v.ScanID) + populateTimeRFC3339(objectMap, "startTime", v.StartTime) + populate(objectMap, "state", v.State) + populate(objectMap, "storageContainerPath", v.StorageContainerPath) + populate(objectMap, "triggerType", v.TriggerType) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type VulnerabilityAssessmentScanRecordProperties. +func (v *VulnerabilityAssessmentScanRecordProperties) 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", v, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "endTime": + err = unpopulateTimeRFC3339(val, "EndTime", &v.EndTime) + delete(rawMsg, key) + case "errors": + err = unpopulate(val, "Errors", &v.Errors) + delete(rawMsg, key) + case "numberOfFailedSecurityChecks": + err = unpopulate(val, "NumberOfFailedSecurityChecks", &v.NumberOfFailedSecurityChecks) + delete(rawMsg, key) + case "scanId": + err = unpopulate(val, "ScanID", &v.ScanID) + delete(rawMsg, key) + case "startTime": + err = unpopulateTimeRFC3339(val, "StartTime", &v.StartTime) + delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &v.State) + delete(rawMsg, key) + case "storageContainerPath": + err = unpopulate(val, "StorageContainerPath", &v.StorageContainerPath) + delete(rawMsg, key) + case "triggerType": + err = unpopulate(val, "TriggerType", &v.TriggerType) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", v, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type WorkloadClassifier. +func (w WorkloadClassifier) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", w.ID) + populate(objectMap, "name", w.Name) + populate(objectMap, "properties", w.Properties) + populate(objectMap, "type", w.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type WorkloadClassifier. +func (w *WorkloadClassifier) 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", w, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &w.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &w.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &w.Properties) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &w.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", w, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type WorkloadClassifierListResult. +func (w WorkloadClassifierListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", w.NextLink) + populate(objectMap, "value", w.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type WorkloadClassifierListResult. +func (w *WorkloadClassifierListResult) 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", w, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &w.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &w.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", w, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type WorkloadClassifierProperties. +func (w WorkloadClassifierProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "context", w.Context) + populate(objectMap, "endTime", w.EndTime) + populate(objectMap, "importance", w.Importance) + populate(objectMap, "label", w.Label) + populate(objectMap, "memberName", w.MemberName) + populate(objectMap, "startTime", w.StartTime) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type WorkloadClassifierProperties. +func (w *WorkloadClassifierProperties) 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", w, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "context": + err = unpopulate(val, "Context", &w.Context) + delete(rawMsg, key) + case "endTime": + err = unpopulate(val, "EndTime", &w.EndTime) + delete(rawMsg, key) + case "importance": + err = unpopulate(val, "Importance", &w.Importance) + delete(rawMsg, key) + case "label": + err = unpopulate(val, "Label", &w.Label) + delete(rawMsg, key) + case "memberName": + err = unpopulate(val, "MemberName", &w.MemberName) + delete(rawMsg, key) + case "startTime": + err = unpopulate(val, "StartTime", &w.StartTime) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", w, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type WorkloadGroup. +func (w WorkloadGroup) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", w.ID) + populate(objectMap, "name", w.Name) + populate(objectMap, "properties", w.Properties) + populate(objectMap, "type", w.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type WorkloadGroup. +func (w *WorkloadGroup) 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", w, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &w.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &w.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &w.Properties) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &w.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", w, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type WorkloadGroupListResult. +func (w WorkloadGroupListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", w.NextLink) + populate(objectMap, "value", w.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type WorkloadGroupListResult. +func (w *WorkloadGroupListResult) 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", w, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &w.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &w.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", w, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type WorkloadGroupProperties. +func (w WorkloadGroupProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "importance", w.Importance) + populate(objectMap, "maxResourcePercent", w.MaxResourcePercent) + populate(objectMap, "maxResourcePercentPerRequest", w.MaxResourcePercentPerRequest) + populate(objectMap, "minResourcePercent", w.MinResourcePercent) + populate(objectMap, "minResourcePercentPerRequest", w.MinResourcePercentPerRequest) + populate(objectMap, "queryExecutionTimeout", w.QueryExecutionTimeout) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type WorkloadGroupProperties. +func (w *WorkloadGroupProperties) 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", w, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "importance": + err = unpopulate(val, "Importance", &w.Importance) + delete(rawMsg, key) + case "maxResourcePercent": + err = unpopulate(val, "MaxResourcePercent", &w.MaxResourcePercent) + delete(rawMsg, key) + case "maxResourcePercentPerRequest": + err = unpopulate(val, "MaxResourcePercentPerRequest", &w.MaxResourcePercentPerRequest) + delete(rawMsg, key) + case "minResourcePercent": + err = unpopulate(val, "MinResourcePercent", &w.MinResourcePercent) + delete(rawMsg, key) + case "minResourcePercentPerRequest": + err = unpopulate(val, "MinResourcePercentPerRequest", &w.MinResourcePercentPerRequest) + delete(rawMsg, key) + case "queryExecutionTimeout": + err = unpopulate(val, "QueryExecutionTimeout", &w.QueryExecutionTimeout) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", w, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type Workspace. +func (w Workspace) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", w.ID) + populate(objectMap, "identity", w.Identity) + populate(objectMap, "location", w.Location) + populate(objectMap, "name", w.Name) + populate(objectMap, "properties", w.Properties) + populate(objectMap, "tags", w.Tags) + populate(objectMap, "type", w.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Workspace. +func (w *Workspace) 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", w, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &w.ID) + delete(rawMsg, key) + case "identity": + err = unpopulate(val, "Identity", &w.Identity) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &w.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &w.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &w.Properties) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &w.Tags) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &w.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", w, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type WorkspaceAADAdminInfo. +func (w WorkspaceAADAdminInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", w.ID) + populate(objectMap, "name", w.Name) + populate(objectMap, "properties", w.Properties) + populate(objectMap, "type", w.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type WorkspaceAADAdminInfo. +func (w *WorkspaceAADAdminInfo) 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", w, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &w.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &w.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &w.Properties) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &w.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", w, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type WorkspaceInfoListResult. +func (w WorkspaceInfoListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", w.NextLink) + populate(objectMap, "value", w.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type WorkspaceInfoListResult. +func (w *WorkspaceInfoListResult) 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", w, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &w.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &w.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", w, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type WorkspaceKeyDetails. +func (w WorkspaceKeyDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "keyVaultUrl", w.KeyVaultURL) + populate(objectMap, "name", w.Name) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type WorkspaceKeyDetails. +func (w *WorkspaceKeyDetails) 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", w, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "keyVaultUrl": + err = unpopulate(val, "KeyVaultURL", &w.KeyVaultURL) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &w.Name) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", w, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type WorkspacePatchInfo. +func (w WorkspacePatchInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "identity", w.Identity) + populate(objectMap, "properties", w.Properties) + populate(objectMap, "tags", w.Tags) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type WorkspacePatchInfo. +func (w *WorkspacePatchInfo) 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", w, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "identity": + err = unpopulate(val, "Identity", &w.Identity) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &w.Properties) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &w.Tags) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", w, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type WorkspacePatchProperties. +func (w WorkspacePatchProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "encryption", w.Encryption) + populate(objectMap, "managedVirtualNetworkSettings", w.ManagedVirtualNetworkSettings) + populate(objectMap, "provisioningState", w.ProvisioningState) + populate(objectMap, "publicNetworkAccess", w.PublicNetworkAccess) + populate(objectMap, "purviewConfiguration", w.PurviewConfiguration) + populate(objectMap, "sqlAdministratorLoginPassword", w.SQLAdministratorLoginPassword) + populate(objectMap, "workspaceRepositoryConfiguration", w.WorkspaceRepositoryConfiguration) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type WorkspacePatchProperties. +func (w *WorkspacePatchProperties) 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", w, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "encryption": + err = unpopulate(val, "Encryption", &w.Encryption) + delete(rawMsg, key) + case "managedVirtualNetworkSettings": + err = unpopulate(val, "ManagedVirtualNetworkSettings", &w.ManagedVirtualNetworkSettings) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &w.ProvisioningState) + delete(rawMsg, key) + case "publicNetworkAccess": + err = unpopulate(val, "PublicNetworkAccess", &w.PublicNetworkAccess) + delete(rawMsg, key) + case "purviewConfiguration": + err = unpopulate(val, "PurviewConfiguration", &w.PurviewConfiguration) + delete(rawMsg, key) + case "sqlAdministratorLoginPassword": + err = unpopulate(val, "SQLAdministratorLoginPassword", &w.SQLAdministratorLoginPassword) + delete(rawMsg, key) + case "workspaceRepositoryConfiguration": + err = unpopulate(val, "WorkspaceRepositoryConfiguration", &w.WorkspaceRepositoryConfiguration) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", w, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type WorkspaceProperties. +func (w WorkspaceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "adlaResourceId", w.AdlaResourceID) + populate(objectMap, "azureADOnlyAuthentication", w.AzureADOnlyAuthentication) + populate(objectMap, "connectivityEndpoints", w.ConnectivityEndpoints) + populate(objectMap, "cspWorkspaceAdminProperties", w.CspWorkspaceAdminProperties) + populate(objectMap, "defaultDataLakeStorage", w.DefaultDataLakeStorage) + populate(objectMap, "encryption", w.Encryption) + populate(objectMap, "extraProperties", w.ExtraProperties) + populate(objectMap, "managedResourceGroupName", w.ManagedResourceGroupName) + populate(objectMap, "managedVirtualNetwork", w.ManagedVirtualNetwork) + populate(objectMap, "managedVirtualNetworkSettings", w.ManagedVirtualNetworkSettings) + populate(objectMap, "privateEndpointConnections", w.PrivateEndpointConnections) + populate(objectMap, "provisioningState", w.ProvisioningState) + populate(objectMap, "publicNetworkAccess", w.PublicNetworkAccess) + populate(objectMap, "purviewConfiguration", w.PurviewConfiguration) + populate(objectMap, "sqlAdministratorLogin", w.SQLAdministratorLogin) + populate(objectMap, "sqlAdministratorLoginPassword", w.SQLAdministratorLoginPassword) + populate(objectMap, "settings", w.Settings) + populate(objectMap, "trustedServiceBypassEnabled", w.TrustedServiceBypassEnabled) + populate(objectMap, "virtualNetworkProfile", w.VirtualNetworkProfile) + populate(objectMap, "workspaceRepositoryConfiguration", w.WorkspaceRepositoryConfiguration) + populate(objectMap, "workspaceUID", w.WorkspaceUID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type WorkspaceProperties. +func (w *WorkspaceProperties) 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", w, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "adlaResourceId": + err = unpopulate(val, "AdlaResourceID", &w.AdlaResourceID) + delete(rawMsg, key) + case "azureADOnlyAuthentication": + err = unpopulate(val, "AzureADOnlyAuthentication", &w.AzureADOnlyAuthentication) + delete(rawMsg, key) + case "connectivityEndpoints": + err = unpopulate(val, "ConnectivityEndpoints", &w.ConnectivityEndpoints) + delete(rawMsg, key) + case "cspWorkspaceAdminProperties": + err = unpopulate(val, "CspWorkspaceAdminProperties", &w.CspWorkspaceAdminProperties) + delete(rawMsg, key) + case "defaultDataLakeStorage": + err = unpopulate(val, "DefaultDataLakeStorage", &w.DefaultDataLakeStorage) + delete(rawMsg, key) + case "encryption": + err = unpopulate(val, "Encryption", &w.Encryption) + delete(rawMsg, key) + case "extraProperties": + err = unpopulate(val, "ExtraProperties", &w.ExtraProperties) + delete(rawMsg, key) + case "managedResourceGroupName": + err = unpopulate(val, "ManagedResourceGroupName", &w.ManagedResourceGroupName) + delete(rawMsg, key) + case "managedVirtualNetwork": + err = unpopulate(val, "ManagedVirtualNetwork", &w.ManagedVirtualNetwork) + delete(rawMsg, key) + case "managedVirtualNetworkSettings": + err = unpopulate(val, "ManagedVirtualNetworkSettings", &w.ManagedVirtualNetworkSettings) + delete(rawMsg, key) + case "privateEndpointConnections": + err = unpopulate(val, "PrivateEndpointConnections", &w.PrivateEndpointConnections) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &w.ProvisioningState) + delete(rawMsg, key) + case "publicNetworkAccess": + err = unpopulate(val, "PublicNetworkAccess", &w.PublicNetworkAccess) + delete(rawMsg, key) + case "purviewConfiguration": + err = unpopulate(val, "PurviewConfiguration", &w.PurviewConfiguration) + delete(rawMsg, key) + case "sqlAdministratorLogin": + err = unpopulate(val, "SQLAdministratorLogin", &w.SQLAdministratorLogin) + delete(rawMsg, key) + case "sqlAdministratorLoginPassword": + err = unpopulate(val, "SQLAdministratorLoginPassword", &w.SQLAdministratorLoginPassword) + delete(rawMsg, key) + case "settings": + err = unpopulate(val, "Settings", &w.Settings) + delete(rawMsg, key) + case "trustedServiceBypassEnabled": + err = unpopulate(val, "TrustedServiceBypassEnabled", &w.TrustedServiceBypassEnabled) + delete(rawMsg, key) + case "virtualNetworkProfile": + err = unpopulate(val, "VirtualNetworkProfile", &w.VirtualNetworkProfile) + delete(rawMsg, key) + case "workspaceRepositoryConfiguration": + err = unpopulate(val, "WorkspaceRepositoryConfiguration", &w.WorkspaceRepositoryConfiguration) + delete(rawMsg, key) + case "workspaceUID": + err = unpopulate(val, "WorkspaceUID", &w.WorkspaceUID) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", w, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type WorkspaceRepositoryConfiguration. +func (w WorkspaceRepositoryConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "accountName", w.AccountName) + populate(objectMap, "collaborationBranch", w.CollaborationBranch) + populate(objectMap, "hostName", w.HostName) + populate(objectMap, "lastCommitId", w.LastCommitID) + populate(objectMap, "projectName", w.ProjectName) + populate(objectMap, "repositoryName", w.RepositoryName) + populate(objectMap, "rootFolder", w.RootFolder) + populate(objectMap, "tenantId", w.TenantID) + populate(objectMap, "type", w.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type WorkspaceRepositoryConfiguration. +func (w *WorkspaceRepositoryConfiguration) 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", w, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "accountName": + err = unpopulate(val, "AccountName", &w.AccountName) + delete(rawMsg, key) + case "collaborationBranch": + err = unpopulate(val, "CollaborationBranch", &w.CollaborationBranch) + delete(rawMsg, key) + case "hostName": + err = unpopulate(val, "HostName", &w.HostName) + delete(rawMsg, key) + case "lastCommitId": + err = unpopulate(val, "LastCommitID", &w.LastCommitID) + delete(rawMsg, key) + case "projectName": + err = unpopulate(val, "ProjectName", &w.ProjectName) + delete(rawMsg, key) + case "repositoryName": + err = unpopulate(val, "RepositoryName", &w.RepositoryName) + delete(rawMsg, key) + case "rootFolder": + err = unpopulate(val, "RootFolder", &w.RootFolder) + delete(rawMsg, key) + case "tenantId": + err = unpopulate(val, "TenantID", &w.TenantID) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &w.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", w, err) + } + } + return nil +} + +func populate(m map[string]any, k string, v any) { + if v == nil { + return + } else if azcore.IsNullValue(v) { + m[k] = nil + } else if !reflect.ValueOf(v).IsNil() { + m[k] = v + } +} + +func unpopulate(data json.RawMessage, fn string, v any) error { + if data == nil { + return nil + } + if err := json.Unmarshal(data, v); err != nil { + return fmt.Errorf("struct field %s: %v", fn, err) + } + return nil +} diff --git a/sdk/resourcemanager/synapse/armsynapse/zz_generated_operations_client.go b/sdk/resourcemanager/synapse/armsynapse/operations_client.go similarity index 90% rename from sdk/resourcemanager/synapse/armsynapse/zz_generated_operations_client.go rename to sdk/resourcemanager/synapse/armsynapse/operations_client.go index d7a94b995199..d22911b80b2a 100644 --- a/sdk/resourcemanager/synapse/armsynapse/zz_generated_operations_client.go +++ b/sdk/resourcemanager/synapse/armsynapse/operations_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse @@ -31,9 +32,9 @@ type OperationsClient struct { } // NewOperationsClient creates a new instance of OperationsClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewOperationsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*OperationsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,10 +57,11 @@ func NewOperationsClient(subscriptionID string, credential azcore.TokenCredentia // CheckNameAvailability - Check whether a workspace name is available // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// request - The check request -// options - OperationsClientCheckNameAvailabilityOptions contains the optional parameters for the OperationsClient.CheckNameAvailability -// method. +// - request - The check request +// - options - OperationsClientCheckNameAvailabilityOptions contains the optional parameters for the OperationsClient.CheckNameAvailability +// method. func (client *OperationsClient) CheckNameAvailability(ctx context.Context, request CheckNameAvailabilityRequest, options *OperationsClientCheckNameAvailabilityOptions) (OperationsClientCheckNameAvailabilityResponse, error) { req, err := client.checkNameAvailabilityCreateRequest(ctx, request, options) if err != nil { @@ -104,12 +106,13 @@ func (client *OperationsClient) checkNameAvailabilityHandleResponse(resp *http.R // GetAzureAsyncHeaderResult - Get the status of an operation // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// operationID - Operation ID -// options - OperationsClientGetAzureAsyncHeaderResultOptions contains the optional parameters for the OperationsClient.GetAzureAsyncHeaderResult -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - operationID - Operation ID +// - options - OperationsClientGetAzureAsyncHeaderResultOptions contains the optional parameters for the OperationsClient.GetAzureAsyncHeaderResult +// method. func (client *OperationsClient) GetAzureAsyncHeaderResult(ctx context.Context, resourceGroupName string, workspaceName string, operationID string, options *OperationsClientGetAzureAsyncHeaderResultOptions) (OperationsClientGetAzureAsyncHeaderResultResponse, error) { req, err := client.getAzureAsyncHeaderResultCreateRequest(ctx, resourceGroupName, workspaceName, operationID, options) if err != nil { @@ -166,12 +169,13 @@ func (client *OperationsClient) getAzureAsyncHeaderResultHandleResponse(resp *ht // GetLocationHeaderResult - Get the result of an operation // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// operationID - Operation ID -// options - OperationsClientGetLocationHeaderResultOptions contains the optional parameters for the OperationsClient.GetLocationHeaderResult -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - operationID - Operation ID +// - options - OperationsClientGetLocationHeaderResultOptions contains the optional parameters for the OperationsClient.GetLocationHeaderResult +// method. func (client *OperationsClient) GetLocationHeaderResult(ctx context.Context, resourceGroupName string, workspaceName string, operationID string, options *OperationsClientGetLocationHeaderResultOptions) (OperationsClientGetLocationHeaderResultResponse, error) { req, err := client.getLocationHeaderResultCreateRequest(ctx, resourceGroupName, workspaceName, operationID, options) if err != nil { @@ -219,8 +223,9 @@ func (client *OperationsClient) getLocationHeaderResultCreateRequest(ctx context // List - Get all available operations // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// options - OperationsClientListOptions contains the optional parameters for the OperationsClient.List method. +// - options - OperationsClientListOptions contains the optional parameters for the OperationsClient.List method. func (client *OperationsClient) List(ctx context.Context, options *OperationsClientListOptions) (OperationsClientListResponse, error) { req, err := client.listCreateRequest(ctx, options) if err != nil { diff --git a/sdk/resourcemanager/synapse/armsynapse/operations_client_example_test.go b/sdk/resourcemanager/synapse/armsynapse/operations_client_example_test.go new file mode 100644 index 000000000000..703accd0d721 --- /dev/null +++ b/sdk/resourcemanager/synapse/armsynapse/operations_client_example_test.go @@ -0,0 +1,1579 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armsynapse_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CheckNameAvailabilityWorkspaceAlreadyExists.json +func ExampleOperationsClient_CheckNameAvailability_checkForAWorkspaceNameThatAlreadyExists() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewOperationsClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.CheckNameAvailability(ctx, armsynapse.CheckNameAvailabilityRequest{ + Name: to.Ptr("workspace1"), + Type: to.Ptr("Microsoft.Synapse/workspaces"), + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.CheckNameAvailabilityResponse = armsynapse.CheckNameAvailabilityResponse{ + // Name: to.Ptr("workspace1"), + // Available: to.Ptr(false), + // Message: to.Ptr("Specified workspace name is already used"), + // Reason: to.Ptr("AlreadyExists"), + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CheckNameAvailabilityWorkspaceAvailable.json +func ExampleOperationsClient_CheckNameAvailability_checkForAWorkspaceNameThatIsAvailable() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewOperationsClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.CheckNameAvailability(ctx, armsynapse.CheckNameAvailabilityRequest{ + Name: to.Ptr("workspace1"), + Type: to.Ptr("Microsoft.ProjectArcadia/workspaces"), + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.CheckNameAvailabilityResponse = armsynapse.CheckNameAvailabilityResponse{ + // Name: to.Ptr("workspace1"), + // Available: to.Ptr(true), + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetAvailableOperations.json +func ExampleOperationsClient_List() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewOperationsClient("", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.List(ctx, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.AvailableRpOperationArray = []*armsynapse.AvailableRpOperation{ + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/integrationRuntimes/read"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Get any Integration Runtime."), + // Operation: to.Ptr("Get Integration Runtime Operation result."), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("Integration Runtimes."), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/managedIdentitySqlControlSettings/write"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Update Managed Identity SQL Control Settings on the workspace"), + // Operation: to.Ptr("Update Managed Identity SQL Control Settings"), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("Managed Identity SQL Control Settings"), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/managedIdentitySqlControlSettings/read"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Get Managed Identity SQL Control Settings"), + // Operation: to.Ptr("Get Managed Identity SQL Control Settings"), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("Managed Identity SQL Control Settings"), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/operations/read"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Read Available Operations from the Analytics 365 Resource Provider."), + // Operation: to.Ptr("Read Available Operations."), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("Available Operations"), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/integrationRuntimes/nodes/read"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Get any Integration Runtime Node."), + // Operation: to.Ptr("Get Integration Runtime Node."), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("Integration Runtimes."), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/integrationRuntimes/nodes/delete"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Delete any Integration Runtime Node."), + // Operation: to.Ptr("Delete Integration Runtime Node."), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("Integration Runtimes."), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/integrationRuntimes/nodes/write"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Patch any Integration Runtime Node."), + // Operation: to.Ptr("Patch Integration Runtime Node."), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("Integration Runtimes."), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/integrationRuntimes/nodes/ipAddress/action"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Get Integration Runtime Ip Address"), + // Operation: to.Ptr("Get Integration Runtime Ip Address"), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("Integration Runtimes."), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/integrationruntimes/write"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Create or Update any Integration Runtimes."), + // Operation: to.Ptr("Create or Update Integration Runtimes."), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("Integration Runtimes."), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/integrationRuntimes/delete"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Delete any Integration Runtime"), + // Operation: to.Ptr("Delete Integration Runtimes"), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("Integration Runtimes."), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/integrationRuntimes/getStatus/action"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Get any Integration Runtime's Status"), + // Operation: to.Ptr("Get an Integration Runtime Status"), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("Integration Runtimes."), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/integrationRuntimes/start/action"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Start any Integration Runtime"), + // Operation: to.Ptr("Start an Integration Runtime"), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("Integration Runtimes."), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/integrationRuntimes/stop/action"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Stop any Integration Runtime"), + // Operation: to.Ptr("Stop an Integration Runtime"), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("Integration Runtimes."), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/integrationRuntimes/getConnectionInfo/action"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Get Connection Info of any Integration Runtime"), + // Operation: to.Ptr("Get Connection Info of an Integration Runtime"), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("Integration Runtimes."), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/integrationRuntimes/regenerateAuthKey/action"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Regenerate auth key of any Integration Runtime"), + // Operation: to.Ptr("Regenerate auth key of an Integration Runtime"), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("Integration Runtimes."), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/integrationRuntimes/listAuthKeys/action"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("List Auth Keys of any Integration Runtime"), + // Operation: to.Ptr("List Auth Keys of an Integration Runtime"), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("Integration Runtimes."), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/integrationRuntimes/removeNode/action"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Remove any Integration Runtime node"), + // Operation: to.Ptr("Remove an Integration Runtime node"), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("Integration Runtimes."), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/integrationRuntimes/monitoringData/action"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Get any Integration Runtime's monitoring data"), + // Operation: to.Ptr("Get an Integration Runtime's monitoring data"), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("Integration Runtimes."), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/integrationRuntimes/syncCredentials/action"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Sync credential on any Integration Runtime"), + // Operation: to.Ptr("Sync credential on an Integration Runtime"), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("Integration Runtimes."), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/integrationRuntimes/upgrade/action"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Upgrade any Integration Runtime"), + // Operation: to.Ptr("Upgrade an Integration Runtime"), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("Integration Runtimes."), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/integrationRuntimes/removeLinks/action"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Remove any Integration Runtime link"), + // Operation: to.Ptr("Remove an Integration Runtime link"), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("Integration Runtimes."), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/integrationRuntimes/enableInteractiveQuery/action"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Enable Interactive query on any Integration Runtime"), + // Operation: to.Ptr("Enable Interactive query on an Integration Runtime"), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("Integration Runtimes."), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/integrationRuntimes/disableInteractiveQuery/action"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Disable Interactive query on any Integration Runtime"), + // Operation: to.Ptr("Disable Interactive query on an Integration Runtime"), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("Integration Runtimes."), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/integrationRuntimes/refreshObjectMetadata/action"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Refresh Object metadata on any Intergration Runtime"), + // Operation: to.Ptr("Refresh Object metadata on an Intergration Runtime"), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("Integration Runtimes."), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/integrationRuntimes/getObjectMetadata/action"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Get Object metadata on any Intergration Runtime"), + // Operation: to.Ptr("Get Object metadata on an Intergration Runtime"), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("Integration Runtimes."), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/firewallRules/write"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Create or update any IP Firewall Rule."), + // Operation: to.Ptr("Create or update IP Firewall Rule."), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("IP Firewall Rule."), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/firewallRules/read"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Read IP Firewall Rule"), + // Operation: to.Ptr("Read IP Firewall Rule"), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("IP Firewall Rule."), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/firewallRules/delete"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Delete any IP Firewall Rule."), + // Operation: to.Ptr("Delete IP Firewall Rule"), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("IP Firewall Rule."), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/replaceAllIpFirewallRules/action"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Replaces all Ip Firewall Rules for the Workspace."), + // Operation: to.Ptr("Replace all Ip Firewall Rules for the Workspace."), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("Workspaces"), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/write"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Create or Update any SQL Analytics pools."), + // Operation: to.Ptr("Create or Update SQL Analytics pools."), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("SQL Analytics pools"), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/read"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Read any SQL Analytics pools."), + // Operation: to.Ptr("Read SQL Analytics pools."), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("SQL Analytics pools"), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/dataWarehouseQueries/read"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Read any SQL Analytics pool Queries."), + // Operation: to.Ptr("Read SQL Analytics pool Queries."), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("SQL Analytics pool Queries"), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/geoBackupPolicies/read"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Read any SQL Analytics pool Geo Backup Policies."), + // Operation: to.Ptr("Read SQL Analytics pool Geo Backup Policies."), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("SQL Analytics pool Geo Backup Policies"), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/dataWarehouseUserActivities/read"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Read any SQL Analytics pool User Activities."), + // Operation: to.Ptr("Read SQL Analytics pool User Activities."), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("SQL Analytics pool User Activities"), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/restorePoints/read"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Read any SQL Analytics pool Restore Points."), + // Operation: to.Ptr("Read SQL Analytics pool Restore Points."), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("SQL Analytics pool Restore Points"), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/dataWarehouseQueries/dataWarehouseQuerySteps/read"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Read any SQL Analytics pool Query Steps."), + // Operation: to.Ptr("Read SQL Analytics pool Query Steps."), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("SQL Analytics pool Query Steps"), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/maintenanceWindows/read"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Read any SQL Analytics pool Maintenance Windows."), + // Operation: to.Ptr("Read SQL Analytics pool Maintenance Windows."), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("SQL Analytics pool Maintenance Windows"), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/maintenanceWindowOptions/read"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Read any SQL Analytics pool Maintenance Window Options."), + // Operation: to.Ptr("Read SQL Analytics pool Maintenance Window Options."), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("SQL Analytics pool Maintenance Window Options"), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/replicationLinks/read"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Read any SQL Analytics pool Replication Links."), + // Operation: to.Ptr("Read SQL Analytics pool Replication Links."), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("SQL Analytics pool Replication Links"), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/transparentDataEncryption/read"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Read any SQL Analytics pool Transparent Data Encryption Configuration."), + // Operation: to.Ptr("Read SQL Analytics pool Transparent Data Encryption Configuration."), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("SQL Analytics pool Transparent Data Encryption Configuration"), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/transparentDataEncryption/operationResults/read"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Read any SQL Analytics pool Transparent Data Encryption Configuration Operation Results."), + // Operation: to.Ptr("Read SQL Analytics pool Transparent Data Encryption Configuration Operation Results."), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("SQL Analytics pool Transparent Data Encryption Configuration Operation Results"), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/auditingSettings/read"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Read any SQL Analytics pool Auditing Settings."), + // Operation: to.Ptr("Read SQL Analytics pool Auditing Settings."), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("SQL Analytics pool Auditing Settings"), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/operations/read"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Read any SQL Analytics pool Operations."), + // Operation: to.Ptr("Read SQL Analytics pool Operations."), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("SQL Analytics pool Operations"), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/usages/read"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Read any SQL Analytics pool Usages."), + // Operation: to.Ptr("Read SQL Analytics pool Usages."), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("SQL Analytics pool Usages"), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/currentSensitivityLabels/read"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Read any SQL Analytics pool Current Sensitivity Labels."), + // Operation: to.Ptr("Read SQL Analytics pool Current Sensitivity Labels."), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("SQL Analytics pool Current Sensitivity Labels"), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/recommendedSensitivityLabels/read"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Read any SQL Analytics pool Recommended Sensitivity Labels."), + // Operation: to.Ptr("Read SQL Analytics pool Recommended Sensitivity Labels."), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("SQL Analytics pool Recommended Sensitivity Labels"), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/schemas/read"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Read any SQL Analytics pool Schemas."), + // Operation: to.Ptr("Read SQL Analytics pool Schemas."), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("SQL Analytics pool Schemas"), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/schemas/tables/read"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Read any SQL Analytics pool Schema Tables."), + // Operation: to.Ptr("Read SQL Analytics pool Schema Tables."), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("SQL Analytics pool Schema Tables"), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/schemas/tables/columns/read"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Read any SQL Analytics pool Schema Table Columns."), + // Operation: to.Ptr("Read SQL Analytics pool Schema Table Columns."), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("SQL Analytics pool Schema Table Columns"), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/connectionPolicies/read"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Read any SQL Analytics pool Connection Policies."), + // Operation: to.Ptr("Read SQL Analytics pool Connection Policies."), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("SQL Analytics pool Connection Policies"), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/vulnerabilityAssessments/read"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Read any SQL Analytics pool Vulnerability Assessment."), + // Operation: to.Ptr("Read SQL Analytics pool Vulnerability Assessment."), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("SQL Analytics pool Vulnerability Assessment"), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/vulnerabilityAssessments/scans/read"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Read any SQL Analytics pool Vulnerability Assessment Scan Records."), + // Operation: to.Ptr("Read SQL Analytics pool Vulnerability Assessment Scan Records."), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("SQL Analytics pool Vulnerability Assessment Scan Records"), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/securityAlertPolicies/read"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Read any Sql Analytics pool Threat Detection Policies."), + // Operation: to.Ptr("Read Sql Analytics pool Threat Detection Policies."), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("SQL Analytics pool Security Alert Policies"), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/delete"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Delete any SQL Analytics pools."), + // Operation: to.Ptr("Delete SQL Analytics pools."), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("SQL Analytics pools"), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/pause/action"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Pause any SQL Analytics pools."), + // Operation: to.Ptr("Pause SQL Analytics pools."), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("SQL Analytics pools"), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/resume/action"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Resume any SQL Analytics pools."), + // Operation: to.Ptr("Resume SQL Analytics pools."), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("SQL Analytics pools"), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/restorePoints/action"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Create a SQL Analytics pool Restore Point."), + // Operation: to.Ptr("Create SQL Analytics pool Restore Point."), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("SQL Analytics pool Restore Points"), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/move/action"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Rename any SQL Analytics pools."), + // Operation: to.Ptr("Rename SQL Analytics pools."), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("SQL Analytics pools"), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/schemas/tables/columns/sensitivityLabels/enable/action"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Enable any SQL Analytics pool Sensitivity Labels."), + // Operation: to.Ptr("Enable SQL Analytics pool Sensitivity Labels."), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("SQL Analytics pool Sensitivity Labels"), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/schemas/tables/columns/sensitivityLabels/disable/action"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Disable any SQL Analytics pool Sensitivity Labels."), + // Operation: to.Ptr("Disable SQL Analytics pool Sensitivity Labels."), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("SQL Analytics pool Sensitivity Labels"), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/vulnerabilityAssessments/scans/initiateScan/action"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Initiate any SQL Analytics pool Vulnerability Assessment Scan Records."), + // Operation: to.Ptr("Initiate SQL Analytics pool Vulnerability Assessment Scan Records."), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("SQL Analytics pool Vulnerability Assessment Scan Records"), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/vulnerabilityAssessments/scans/export/action"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Export any SQL Analytics pool Vulnerability Assessment Scan Records."), + // Operation: to.Ptr("Export SQL Analytics pool Vulnerability Assessment Scan Records."), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("SQL Analytics pool Vulnerability Assessment Scan Records"), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/maintenanceWindows/write"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Read any SQL Analytics pool Maintenance Windows."), + // Operation: to.Ptr("Create or Update SQL Analytics pool Maintenance Windows."), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("SQL Analytics pool Maintenance Windows"), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/auditingSettings/write"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Create or Update any SQL Analytics pool Auditing Settings."), + // Operation: to.Ptr("Create or Update SQL Analytics pool Auditing Settings."), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("SQL Analytics pool Auditing Settings"), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/schemas/tables/columns/sensitivityLabels/write"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Create or Update any SQL Analytics pool Sensitivity Labels."), + // Operation: to.Ptr("Create or update SQL Analytics pool Sensitivity Labels."), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("SQL Analytics pool Sensitivity Labels"), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/transparentDataEncryption/write"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Create or Update any SQL Analytics pool Transparent Data Encryption Configuration."), + // Operation: to.Ptr("Create or Update SQL Analytics pool Transparent Data Encryption Configuration."), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("SQL Analytics pool Transparent Data Encryption Configuration"), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/securityAlertPolicies/write"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Create or Update any SQL Analytics pool Threat Detection Policies."), + // Operation: to.Ptr("Create or Update SQL Analytics pool Threat Detection Policies."), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("SQL Analytics pool Security Alert Policies"), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/vulnerabilityAssessments/rules/baselines/write"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Create or Update any SQL Analytics pool Vulnerability Assessment Rule Baseline."), + // Operation: to.Ptr("Create or Update SQL Analytics pool Vulnerability Assessment Rule Baseline."), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("SQL Analytics pool Vulnerability Assessment Rule Baseline"), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/schemas/tables/columns/sensitivityLabels/delete"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Delete any SQL Analytics pool Sensitivity Labels."), + // Operation: to.Ptr("Delete SQL Analytics pool Sensitivity Labels.2"), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("SQL Analytics pool Sensitivity Labels"), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/vulnerabilityAssessments/delete"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Delete any SQL Analytics pool Vulnerability Assessment."), + // Operation: to.Ptr("Delete SQL Analytics pool Vulnerability Assessment."), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("SQL Analytics pool Vulnerability Assessment"), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/vulnerabilityAssessments/rules/baselines/delete"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Delete any SQL Analytics pool Vulnerability Assessment Rule Baseline."), + // Operation: to.Ptr("Delete SQL Analytics pool Vulnerability Assessment Rule Baseline."), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("SQL Analytics pool Vulnerability Assessment Rule Baseline"), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/operationStatus/read"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Read any Async Operation Status."), + // Operation: to.Ptr("Read Async Operation Status."), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("Async Operation Status."), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/operationResults/read"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Read any Async Operation Result."), + // Operation: to.Ptr("Read Async Operation Result."), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("Async Operation Result"), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/operationResults/read"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Read any Async Operation Result."), + // Operation: to.Ptr("Read Async Operation Result."), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("Async Operation Result"), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/checkNameAvailability/action"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Checks Workspace name availability."), + // Operation: to.Ptr("Checks Workspace name availability."), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("Check Name Availability"), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/bigDataPools/write"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Create or Update any Spark pools."), + // Operation: to.Ptr("Create or Update Spark pools."), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("Spark pools"), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/bigDataPools/read"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Read any Spark pools."), + // Operation: to.Ptr("Read Spark pools."), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("Spark pools"), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/bigDataPools/delete"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Delete any Spark pools."), + // Operation: to.Ptr("Delete Spark pools."), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("Spark pools"), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/metadataSync/read"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Read SQL Analytics pool Metadata Sync Config"), + // Operation: to.Ptr("Read SQL Analytics pool Metadata Sync Config"), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("SQL Analytics pool Metadata Sync Config"), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/metadataSync/write"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Create or Update SQL Analytics pool Metadata Sync Config"), + // Operation: to.Ptr("Create or Update SQL Analytics pool Metadata Sync Config"), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("SQL Analytics pool Metadata Sync Config"), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/register/action"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Registers the Analytics 365 Resource Provider and enables the creation of Workspaces."), + // Operation: to.Ptr("Registers the Analytics 365 Resource Provider."), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("Analytics 365 Resource Provider."), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/administrators/write"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Set Active Directory Administrator on the Workspace"), + // Operation: to.Ptr("Set Active Directory Administrator"), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("Administrators"), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/administrators/read"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Get Workspace Active Directory Administrator"), + // Operation: to.Ptr("Get Workspace Active Directory Administrator"), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("Administrators"), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/administrators/delete"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Delete Workspace Active Directory Administrator"), + // Operation: to.Ptr("Delete Workspace Active Directory Administrator"), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("Administrators"), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/write"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Create or Update any Workspaces."), + // Operation: to.Ptr("Create or Update Workspaces."), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("Workspaces"), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/read"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Read any Workspaces."), + // Operation: to.Ptr("Read Workspaces."), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("Workspaces"), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/delete"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Delete any Workspaces."), + // Operation: to.Ptr("Delete Workspaces."), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("Workspaces"), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/privateEndpointConnectionProxies/validate/action"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Validates Private Endpoint Connection Proxy"), + // Operation: to.Ptr("Validates Private Endpoint Connection Proxy"), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("Validate Private Endpoint Connection Proxy"), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/privateEndpointConnectionProxies/write"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Create or Update Private Endpoint Connection Proxy"), + // Operation: to.Ptr("Create or Update Private Endpoint Connection Proxy"), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("Private Endpoint Connection Proxy"), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/privateEndpointConnectionProxies/read"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Read any Private Endpoint Connection Proxy"), + // Operation: to.Ptr("Read Private Endpoint Connection Proxies"), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("Private Endpoint Connection Proxy"), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/privateLinkResources/read"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Get a list of Private Link Resources"), + // Operation: to.Ptr("Get Private Link Resources"), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("Private Link Resources"), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/serverKeys/write"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Creates or updates a server key"), + // Operation: to.Ptr("Creates or updates a server key"), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("SQL Server Key"), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/serverKeys/delete"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Deletes the server key with the given name."), + // Operation: to.Ptr("Deletes the server key with the given name."), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("SQL Server Key"), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/extendedAuditingSettings/write"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Create or Update SQL server extended auditing settings."), + // Operation: to.Ptr("Create or Update SQL server extended auditing settings."), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("SQL Server Extended Auditing Settings"), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/extendedAuditingSettings/read"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Read SQL server extended auditing settings."), + // Operation: to.Ptr("Read SQL server extended auditing settings."), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("SQL Server Extended Auditing Settings"), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/auditingSettings/write"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Create or Update SQL server auditing settings."), + // Operation: to.Ptr("Create or Update SQL server auditing settings."), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("SQL Server Auditing Settings"), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/auditingSettings/read"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Read SQL server auditing settings."), + // Operation: to.Ptr("Read SQL server auditing settings."), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("SQL Server Auditing Settings"), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/securityAlertPolicies/write"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Create or Update SQL server security alert policies."), + // Operation: to.Ptr("Create or Update SQL server security alert policies."), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("SQL Server Security Alert Policy"), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/securityAlertPolicies/read"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Read SQL server security alert policies."), + // Operation: to.Ptr("Read SQL server security alert policies."), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("SQL Server Security Alert Policy"), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/vulnerabilityAssessments/write"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Create or Update SQL server vulnerability assement report."), + // Operation: to.Ptr("Create or Update SQL server vulnerability assement report."), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("SQL Server Vulnerability Assesment"), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/vulnerabilityAssessments/read"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Read SQL server vulnerability assement report."), + // Operation: to.Ptr("Read SQL server vulnerability assement report."), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("SQL Server Vulnerability Assesment"), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/vulnerabilityAssessments/delete"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Delete SQL server vulnerability assement report."), + // Operation: to.Ptr("Delete SQL server vulnerability assement report."), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("SQL Server Vulnerability Assesment"), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/encryptionProtector/write"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Update the properties for the specified Server Encryption Protector."), + // Operation: to.Ptr("Update the properties for the specified Server Encryption Protector."), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("SQL Server Encryption Protector"), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/encryptionProtector/read"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Returns a list of server encryption protectors or gets the properties for the specified server encryption protector."), + // Operation: to.Ptr("Returns a list of server encryption protectors or gets the properties for the specified server encryption protector."), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("SQL Server Encryption Protector"), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/encryptionProtector/revalidate/action"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Revalidates an existing encryption protector."), + // Operation: to.Ptr("Revalidates an existing encryption protector."), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("SQL Server Encryption Protector"), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/providers/Microsoft.Insights/metricDefinitions/read"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Gets the available metrics for workspace"), + // Operation: to.Ptr("Read workspace metric definitions"), + // Provider: to.Ptr("Microsoft Azure Synapse Analytics"), + // Resource: to.Ptr("Workspace"), + // }, + // Origin: to.Ptr("system"), + // Properties: &armsynapse.OperationMetaPropertyInfo{ + // ServiceSpecification: &armsynapse.OperationMetaServiceSpecification{ + // MetricSpecifications: []*armsynapse.OperationMetaMetricSpecification{ + // { + // Name: to.Ptr("PipelineFailedRuns"), + // AggregationType: to.Ptr("Total"), + // Dimensions: []*armsynapse.OperationMetaMetricDimensionSpecification{ + // { + // Name: to.Ptr("FailureType"), + // DisplayName: to.Ptr("Failure Type"), + // ToBeExportedForShoebox: to.Ptr(true), + // }, + // { + // Name: to.Ptr("Name"), + // DisplayName: to.Ptr("Pipeline"), + // ToBeExportedForShoebox: to.Ptr(true), + // }}, + // DisplayName: to.Ptr("Failed pipeline runs"), + // SourceMdmAccount: to.Ptr("MicrosoftDataFactoryProdShoebox"), + // SourceMdmNamespace: to.Ptr("ADFMetrics"), + // Unit: to.Ptr("Count"), + // }, + // { + // Name: to.Ptr("PipelineSucceededRuns"), + // AggregationType: to.Ptr("Total"), + // Dimensions: []*armsynapse.OperationMetaMetricDimensionSpecification{ + // { + // Name: to.Ptr("FailureType"), + // DisplayName: to.Ptr("Failure Type"), + // ToBeExportedForShoebox: to.Ptr(true), + // }, + // { + // Name: to.Ptr("Name"), + // DisplayName: to.Ptr("Pipeline"), + // ToBeExportedForShoebox: to.Ptr(true), + // }}, + // DisplayName: to.Ptr("Succeeded pipeline runs"), + // SourceMdmAccount: to.Ptr("MicrosoftDataFactoryProdShoebox"), + // SourceMdmNamespace: to.Ptr("ADFMetrics"), + // Unit: to.Ptr("Count"), + // }, + // { + // Name: to.Ptr("PipelineCancelledRuns"), + // AggregationType: to.Ptr("Total"), + // Dimensions: []*armsynapse.OperationMetaMetricDimensionSpecification{ + // { + // Name: to.Ptr("FailureType"), + // DisplayName: to.Ptr("Failure Type"), + // ToBeExportedForShoebox: to.Ptr(true), + // }, + // { + // Name: to.Ptr("Name"), + // DisplayName: to.Ptr("Pipeline"), + // ToBeExportedForShoebox: to.Ptr(true), + // }}, + // DisplayName: to.Ptr("Cancelled pipeline runs"), + // SourceMdmAccount: to.Ptr("MicrosoftDataFactoryProdShoebox"), + // SourceMdmNamespace: to.Ptr("ADFMetrics"), + // Unit: to.Ptr("Count"), + // }, + // { + // Name: to.Ptr("ActivityFailedRuns"), + // AggregationType: to.Ptr("Total"), + // Dimensions: []*armsynapse.OperationMetaMetricDimensionSpecification{ + // { + // Name: to.Ptr("ActivityType"), + // DisplayName: to.Ptr("Activity Type"), + // ToBeExportedForShoebox: to.Ptr(true), + // }, + // { + // Name: to.Ptr("PipelineName"), + // DisplayName: to.Ptr("Pipeline"), + // ToBeExportedForShoebox: to.Ptr(true), + // }, + // { + // Name: to.Ptr("FailureType"), + // DisplayName: to.Ptr("Failure Type"), + // ToBeExportedForShoebox: to.Ptr(true), + // }, + // { + // Name: to.Ptr("Name"), + // DisplayName: to.Ptr("Activity"), + // ToBeExportedForShoebox: to.Ptr(true), + // }}, + // DisplayName: to.Ptr("Failed activity runs"), + // SourceMdmAccount: to.Ptr("MicrosoftDataFactoryProdShoebox"), + // SourceMdmNamespace: to.Ptr("ADFMetrics"), + // Unit: to.Ptr("Count"), + // }, + // { + // Name: to.Ptr("ActivitySucceededRuns"), + // AggregationType: to.Ptr("Total"), + // Dimensions: []*armsynapse.OperationMetaMetricDimensionSpecification{ + // { + // Name: to.Ptr("ActivityType"), + // DisplayName: to.Ptr("Activity Type"), + // ToBeExportedForShoebox: to.Ptr(true), + // }, + // { + // Name: to.Ptr("PipelineName"), + // DisplayName: to.Ptr("Pipeline"), + // ToBeExportedForShoebox: to.Ptr(true), + // }, + // { + // Name: to.Ptr("FailureType"), + // DisplayName: to.Ptr("Failure Type"), + // ToBeExportedForShoebox: to.Ptr(true), + // }, + // { + // Name: to.Ptr("Name"), + // DisplayName: to.Ptr("Activity"), + // ToBeExportedForShoebox: to.Ptr(true), + // }}, + // DisplayName: to.Ptr("Succeeded activity runs"), + // SourceMdmAccount: to.Ptr("MicrosoftDataFactoryProdShoebox"), + // SourceMdmNamespace: to.Ptr("ADFMetrics"), + // Unit: to.Ptr("Count"), + // }, + // { + // Name: to.Ptr("ActivityCancelledRuns"), + // AggregationType: to.Ptr("Total"), + // Dimensions: []*armsynapse.OperationMetaMetricDimensionSpecification{ + // { + // Name: to.Ptr("ActivityType"), + // DisplayName: to.Ptr("Activity Type"), + // ToBeExportedForShoebox: to.Ptr(true), + // }, + // { + // Name: to.Ptr("PipelineName"), + // DisplayName: to.Ptr("Pipeline"), + // ToBeExportedForShoebox: to.Ptr(true), + // }, + // { + // Name: to.Ptr("FailureType"), + // DisplayName: to.Ptr("Failure Type"), + // ToBeExportedForShoebox: to.Ptr(true), + // }, + // { + // Name: to.Ptr("Name"), + // DisplayName: to.Ptr("Activity"), + // ToBeExportedForShoebox: to.Ptr(true), + // }}, + // DisplayName: to.Ptr("Cancelled activity runs"), + // SourceMdmAccount: to.Ptr("MicrosoftDataFactoryProdShoebox"), + // SourceMdmNamespace: to.Ptr("ADFMetrics"), + // Unit: to.Ptr("Count"), + // }, + // { + // Name: to.Ptr("TriggerFailedRuns"), + // AggregationType: to.Ptr("Total"), + // Dimensions: []*armsynapse.OperationMetaMetricDimensionSpecification{ + // { + // Name: to.Ptr("Name"), + // DisplayName: to.Ptr("Trigger"), + // ToBeExportedForShoebox: to.Ptr(true), + // }, + // { + // Name: to.Ptr("FailureType"), + // DisplayName: to.Ptr("Failure Type"), + // ToBeExportedForShoebox: to.Ptr(true), + // }}, + // DisplayName: to.Ptr("Failed trigger runs"), + // SourceMdmAccount: to.Ptr("MicrosoftDataFactoryProdShoebox"), + // SourceMdmNamespace: to.Ptr("ADFMetrics"), + // Unit: to.Ptr("Count"), + // }, + // { + // Name: to.Ptr("TriggerSucceededRuns"), + // AggregationType: to.Ptr("Total"), + // Dimensions: []*armsynapse.OperationMetaMetricDimensionSpecification{ + // { + // Name: to.Ptr("Name"), + // DisplayName: to.Ptr("Trigger"), + // ToBeExportedForShoebox: to.Ptr(true), + // }, + // { + // Name: to.Ptr("FailureType"), + // DisplayName: to.Ptr("Failure Type"), + // ToBeExportedForShoebox: to.Ptr(true), + // }}, + // DisplayName: to.Ptr("Succeeded trigger runs"), + // SourceMdmAccount: to.Ptr("MicrosoftDataFactoryProdShoebox"), + // SourceMdmNamespace: to.Ptr("ADFMetrics"), + // Unit: to.Ptr("Count"), + // }, + // { + // Name: to.Ptr("TriggerCancelledRuns"), + // AggregationType: to.Ptr("Total"), + // Dimensions: []*armsynapse.OperationMetaMetricDimensionSpecification{ + // { + // Name: to.Ptr("Name"), + // DisplayName: to.Ptr("Trigger"), + // ToBeExportedForShoebox: to.Ptr(true), + // }, + // { + // Name: to.Ptr("FailureType"), + // DisplayName: to.Ptr("Failure Type"), + // ToBeExportedForShoebox: to.Ptr(true), + // }}, + // DisplayName: to.Ptr("Cancelled trigger runs"), + // SourceMdmAccount: to.Ptr("MicrosoftDataFactoryProdShoebox"), + // SourceMdmNamespace: to.Ptr("ADFMetrics"), + // Unit: to.Ptr("Count"), + // }}, + // }, + // }, + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/providers/Microsoft.Insights/diagnosticSettings/read"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Gets the diagnostic setting for the resource"), + // Operation: to.Ptr("Read diagnostic setting"), + // Provider: to.Ptr("Microsoft Azure Synapse Analytics"), + // Resource: to.Ptr("Workspace"), + // }, + // Origin: to.Ptr("system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/providers/Microsoft.Insights/diagnosticSettings/write"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Creates or updates the diagnostic setting for the resource"), + // Operation: to.Ptr("Write diagnostic setting"), + // Provider: to.Ptr("Microsoft Azure Synapse Analytics"), + // Resource: to.Ptr("Workspace"), + // }, + // Origin: to.Ptr("system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/providers/Microsoft.Insights/logDefinitions/read"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Gets the available logs for workspace"), + // Operation: to.Ptr("Read workspace log definitions"), + // Provider: to.Ptr("Microsoft Azure Synapse Analytics"), + // Resource: to.Ptr("The log definition of workspace"), + // }, + // Origin: to.Ptr("system"), + // Properties: &armsynapse.OperationMetaPropertyInfo{ + // ServiceSpecification: &armsynapse.OperationMetaServiceSpecification{ + // LogSpecifications: []*armsynapse.OperationMetaLogSpecification{ + // { + // Name: to.Ptr("ActivityRuns"), + // BlobDuration: to.Ptr("PT1H"), + // DisplayName: to.Ptr("Activity runs"), + // }, + // { + // Name: to.Ptr("PipelineRuns"), + // BlobDuration: to.Ptr("PT1H"), + // DisplayName: to.Ptr("Pipeline runs"), + // }, + // { + // Name: to.Ptr("TriggerRuns"), + // BlobDuration: to.Ptr("PT1H"), + // DisplayName: to.Ptr("Trigger runs"), + // }}, + // }, + // }, + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/recoverableSqlPools/read"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Gets recoverable SQL Analytics Pools, which are the resources representing geo backups of SQL Analytics Pools."), + // Operation: to.Ptr("Gets recoverable SQL Analytics Pools."), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("Recoverable Sql Analytics Pools"), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }, + // { + // Name: to.Ptr("Microsoft.Synapse/workspaces/sqlUsages/read"), + // Display: &armsynapse.AvailableRpOperationDisplayInfo{ + // Description: to.Ptr("Gets usage limits available for SQL Analytics Pools."), + // Operation: to.Ptr("Gets usage limits available for SQL Analytics Pools."), + // Provider: to.Ptr("Analytics 365 Resource Provider."), + // Resource: to.Ptr("SQL Analytics pool Usages"), + // }, + // IsDataAction: to.Ptr("false"), + // Origin: to.Ptr("user, system"), + // }} +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetLocationHeader.json +func ExampleOperationsClient_GetLocationHeaderResult() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewOperationsClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + _, err = client.GetLocationHeaderResult(ctx, "resourceGroup1", "workspace1", "01234567-89ab-4def-0123-456789abcdef", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetAzureAsyncOperationHeader.json +func ExampleOperationsClient_GetAzureAsyncHeaderResult() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewOperationsClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.GetAzureAsyncHeaderResult(ctx, "resourceGroup1", "workspace1", "01234567-89ab-4def-0123-456789abcdef", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.OperationResource = armsynapse.OperationResource{ + // Status: to.Ptr(armsynapse.OperationStatusInProgress), + // } +} diff --git a/sdk/resourcemanager/synapse/armsynapse/zz_generated_polymorphic_helpers.go b/sdk/resourcemanager/synapse/armsynapse/polymorphic_helpers.go similarity index 96% rename from sdk/resourcemanager/synapse/armsynapse/zz_generated_polymorphic_helpers.go rename to sdk/resourcemanager/synapse/armsynapse/polymorphic_helpers.go index 6c9ec057eebe..1a05b548df6c 100644 --- a/sdk/resourcemanager/synapse/armsynapse/zz_generated_polymorphic_helpers.go +++ b/sdk/resourcemanager/synapse/armsynapse/polymorphic_helpers.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse @@ -14,7 +15,7 @@ func unmarshalCustomSetupBaseClassification(rawMsg json.RawMessage) (CustomSetup if rawMsg == nil { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } @@ -55,7 +56,7 @@ func unmarshalDataConnectionClassification(rawMsg json.RawMessage) (DataConnecti if rawMsg == nil { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } @@ -96,7 +97,7 @@ func unmarshalDatabaseClassification(rawMsg json.RawMessage) (DatabaseClassifica if rawMsg == nil { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } @@ -135,7 +136,7 @@ func unmarshalIntegrationRuntimeClassification(rawMsg json.RawMessage) (Integrat if rawMsg == nil { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } @@ -155,7 +156,7 @@ func unmarshalIntegrationRuntimeStatusClassification(rawMsg json.RawMessage) (In if rawMsg == nil { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } @@ -175,7 +176,7 @@ func unmarshalLinkedIntegrationRuntimeTypeClassification(rawMsg json.RawMessage) if rawMsg == nil { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } @@ -195,7 +196,7 @@ func unmarshalSecretBaseClassification(rawMsg json.RawMessage) (SecretBaseClassi if rawMsg == nil { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } @@ -213,7 +214,7 @@ func unmarshalSsisObjectMetadataClassification(rawMsg json.RawMessage) (SsisObje if rawMsg == nil { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } diff --git a/sdk/resourcemanager/synapse/armsynapse/zz_generated_privateendpointconnections_client.go b/sdk/resourcemanager/synapse/armsynapse/privateendpointconnections_client.go similarity index 89% rename from sdk/resourcemanager/synapse/armsynapse/zz_generated_privateendpointconnections_client.go rename to sdk/resourcemanager/synapse/armsynapse/privateendpointconnections_client.go index e443ad9d9c16..1ef623b7f7ac 100644 --- a/sdk/resourcemanager/synapse/armsynapse/zz_generated_privateendpointconnections_client.go +++ b/sdk/resourcemanager/synapse/armsynapse/privateendpointconnections_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse @@ -31,9 +32,9 @@ type PrivateEndpointConnectionsClient struct { } // NewPrivateEndpointConnectionsClient creates a new instance of PrivateEndpointConnectionsClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewPrivateEndpointConnectionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PrivateEndpointConnectionsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,13 +57,14 @@ func NewPrivateEndpointConnectionsClient(subscriptionID string, credential azcor // BeginCreate - Approve or reject a private endpoint connection. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// privateEndpointConnectionName - The name of the private endpoint connection. -// request - Request body of private endpoint connection to create. -// options - PrivateEndpointConnectionsClientBeginCreateOptions contains the optional parameters for the PrivateEndpointConnectionsClient.BeginCreate -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - privateEndpointConnectionName - The name of the private endpoint connection. +// - request - Request body of private endpoint connection to create. +// - options - PrivateEndpointConnectionsClientBeginCreateOptions contains the optional parameters for the PrivateEndpointConnectionsClient.BeginCreate +// method. func (client *PrivateEndpointConnectionsClient) BeginCreate(ctx context.Context, resourceGroupName string, workspaceName string, privateEndpointConnectionName string, request PrivateEndpointConnection, options *PrivateEndpointConnectionsClientBeginCreateOptions) (*runtime.Poller[PrivateEndpointConnectionsClientCreateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.create(ctx, resourceGroupName, workspaceName, privateEndpointConnectionName, request, options) @@ -79,6 +81,7 @@ func (client *PrivateEndpointConnectionsClient) BeginCreate(ctx context.Context, // Create - Approve or reject a private endpoint connection. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 func (client *PrivateEndpointConnectionsClient) create(ctx context.Context, resourceGroupName string, workspaceName string, privateEndpointConnectionName string, request PrivateEndpointConnection, options *PrivateEndpointConnectionsClientBeginCreateOptions) (*http.Response, error) { req, err := client.createCreateRequest(ctx, resourceGroupName, workspaceName, privateEndpointConnectionName, request, options) @@ -127,12 +130,13 @@ func (client *PrivateEndpointConnectionsClient) createCreateRequest(ctx context. // BeginDelete - Delete a private endpoint connection. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// privateEndpointConnectionName - The name of the private endpoint connection. -// options - PrivateEndpointConnectionsClientBeginDeleteOptions contains the optional parameters for the PrivateEndpointConnectionsClient.BeginDelete -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - privateEndpointConnectionName - The name of the private endpoint connection. +// - options - PrivateEndpointConnectionsClientBeginDeleteOptions contains the optional parameters for the PrivateEndpointConnectionsClient.BeginDelete +// method. func (client *PrivateEndpointConnectionsClient) BeginDelete(ctx context.Context, resourceGroupName string, workspaceName string, privateEndpointConnectionName string, options *PrivateEndpointConnectionsClientBeginDeleteOptions) (*runtime.Poller[PrivateEndpointConnectionsClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, workspaceName, privateEndpointConnectionName, options) @@ -147,6 +151,7 @@ func (client *PrivateEndpointConnectionsClient) BeginDelete(ctx context.Context, // Delete - Delete a private endpoint connection. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 func (client *PrivateEndpointConnectionsClient) deleteOperation(ctx context.Context, resourceGroupName string, workspaceName string, privateEndpointConnectionName string, options *PrivateEndpointConnectionsClientBeginDeleteOptions) (*http.Response, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, workspaceName, privateEndpointConnectionName, options) @@ -195,12 +200,13 @@ func (client *PrivateEndpointConnectionsClient) deleteCreateRequest(ctx context. // Get - Gets a private endpoint connection. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// privateEndpointConnectionName - The name of the private endpoint connection. -// options - PrivateEndpointConnectionsClientGetOptions contains the optional parameters for the PrivateEndpointConnectionsClient.Get -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - privateEndpointConnectionName - The name of the private endpoint connection. +// - options - PrivateEndpointConnectionsClientGetOptions contains the optional parameters for the PrivateEndpointConnectionsClient.Get +// method. func (client *PrivateEndpointConnectionsClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, privateEndpointConnectionName string, options *PrivateEndpointConnectionsClientGetOptions) (PrivateEndpointConnectionsClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, workspaceName, privateEndpointConnectionName, options) if err != nil { @@ -256,12 +262,12 @@ func (client *PrivateEndpointConnectionsClient) getHandleResponse(resp *http.Res } // NewListPager - Lists private endpoint connection in workspace. -// If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// options - PrivateEndpointConnectionsClientListOptions contains the optional parameters for the PrivateEndpointConnectionsClient.List -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - options - PrivateEndpointConnectionsClientListOptions contains the optional parameters for the PrivateEndpointConnectionsClient.NewListPager +// method. func (client *PrivateEndpointConnectionsClient) NewListPager(resourceGroupName string, workspaceName string, options *PrivateEndpointConnectionsClientListOptions) *runtime.Pager[PrivateEndpointConnectionsClientListResponse] { return runtime.NewPager(runtime.PagingHandler[PrivateEndpointConnectionsClientListResponse]{ More: func(page PrivateEndpointConnectionsClientListResponse) bool { diff --git a/sdk/resourcemanager/synapse/armsynapse/privateendpointconnections_client_example_test.go b/sdk/resourcemanager/synapse/armsynapse/privateendpointconnections_client_example_test.go new file mode 100644 index 000000000000..90db6e4335be --- /dev/null +++ b/sdk/resourcemanager/synapse/armsynapse/privateendpointconnections_client_example_test.go @@ -0,0 +1,167 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armsynapse_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetPrivateEndpointConnection.json +func ExamplePrivateEndpointConnectionsClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewPrivateEndpointConnectionsClient("01234567-89ab-4def-0123-456789abcdef", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "ExampleResourceGroup", "ExampleWorkspace", "ExamplePrivateEndpointConnection", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.PrivateEndpointConnection = armsynapse.PrivateEndpointConnection{ + // Name: to.Ptr("sql"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/privateEndpointConnections"), + // ID: to.Ptr("/subscriptions/01234567-89ab-4def-0123-456789abcdef/resourceGroups/ExampleResourceGroup/providers/Microsoft.Synapse/workspaces/ExampleWorkspace/privateEndpointConnections/ExamplePrivateEndpointConnection"), + // Properties: &armsynapse.PrivateEndpointConnectionProperties{ + // PrivateEndpoint: &armsynapse.PrivateEndpoint{ + // ID: to.Ptr("/subscriptions/01234567-89ab-4def-0123-456789abcdef/resourceGroups/ExampleResourceGroup/providers/Microsoft.Network/privateEndpoints/ExamplePrivateEndpoint"), + // }, + // PrivateLinkServiceConnectionState: &armsynapse.PrivateLinkServiceConnectionState{ + // Description: to.Ptr("Auto-approved"), + // ActionsRequired: to.Ptr("None"), + // Status: to.Ptr("Approved"), + // }, + // ProvisioningState: to.Ptr("Succeeded"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ApprovePrivateEndpointConnection.json +func ExamplePrivateEndpointConnectionsClient_BeginCreate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewPrivateEndpointConnectionsClient("01234567-89ab-4def-0123-456789abcdef", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreate(ctx, "ExampleResourceGroup", "ExampleWorkspace", "ExamplePrivateEndpointConnection", armsynapse.PrivateEndpointConnection{ + Properties: &armsynapse.PrivateEndpointConnectionProperties{ + PrivateLinkServiceConnectionState: &armsynapse.PrivateLinkServiceConnectionState{ + Description: to.Ptr("Approved by abc@example.com"), + Status: to.Ptr("Approved"), + }, + }, + }, 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.PrivateEndpointConnection = armsynapse.PrivateEndpointConnection{ + // Name: to.Ptr("sql"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/privateEndpointConnections"), + // ID: to.Ptr("/subscriptions/01234567-89ab-4def-0123-456789abcdef/resourceGroups/ExampleResourceGroup/providers/Microsoft.Synapse/workspaces/ExampleWorkspace/privateEndpointConnections/ExamplePrivateEndpointConnection"), + // Properties: &armsynapse.PrivateEndpointConnectionProperties{ + // PrivateEndpoint: &armsynapse.PrivateEndpoint{ + // ID: to.Ptr("/subscriptions/01234567-89ab-4def-0123-456789abcdef/resourceGroups/ExampleResourceGroup/providers/Microsoft.Network/privateEndpoints/ExamplePrivateEndpoint"), + // }, + // PrivateLinkServiceConnectionState: &armsynapse.PrivateLinkServiceConnectionState{ + // Description: to.Ptr("Auto-approved"), + // ActionsRequired: to.Ptr("None"), + // Status: to.Ptr("Approved"), + // }, + // ProvisioningState: to.Ptr("Succeeded"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeletePrivateEndpointConnection.json +func ExamplePrivateEndpointConnectionsClient_BeginDelete() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewPrivateEndpointConnectionsClient("01234567-89ab-4def-0123-456789abcdef", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginDelete(ctx, "ExampleResourceGroup", "ExampleWorkspace", "ExamplePrivateEndpointConnection", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + _, err = poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListPrivateEndpointConnections.json +func ExamplePrivateEndpointConnectionsClient_NewListPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewPrivateEndpointConnectionsClient("01234567-89ab-4def-0123-456789abcdef", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListPager("ExampleResourceGroup", "ExampleWorkspace", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.PrivateEndpointConnectionList = armsynapse.PrivateEndpointConnectionList{ + // Value: []*armsynapse.PrivateEndpointConnection{ + // { + // Name: to.Ptr("sql"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/privateEndpointConnections"), + // ID: to.Ptr("/subscriptions/01234567-89ab-4def-0123-456789abcdef/resourceGroups/ExampleResourceGroup/providers/Microsoft.Synapse/workspaces/ExampleWorkspace/privateEndpointConnections/ExamplePrivateEndpointConnection"), + // Properties: &armsynapse.PrivateEndpointConnectionProperties{ + // PrivateEndpoint: &armsynapse.PrivateEndpoint{ + // ID: to.Ptr("/subscriptions/01234567-89ab-4def-0123-456789abcdef/resourceGroups/ExampleResourceGroup/providers/Microsoft.Network/privateEndpoints/ExamplePrivateEndpoint"), + // }, + // PrivateLinkServiceConnectionState: &armsynapse.PrivateLinkServiceConnectionState{ + // Description: to.Ptr("Auto-approved"), + // ActionsRequired: to.Ptr("None"), + // Status: to.Ptr("Approved"), + // }, + // ProvisioningState: to.Ptr("Succeeded"), + // }, + // }}, + // } + } +} diff --git a/sdk/resourcemanager/synapse/armsynapse/zz_generated_privateendpointconnectionsprivatelinkhub_client.go b/sdk/resourcemanager/synapse/armsynapse/privateendpointconnectionsprivatelinkhub_client.go similarity index 90% rename from sdk/resourcemanager/synapse/armsynapse/zz_generated_privateendpointconnectionsprivatelinkhub_client.go rename to sdk/resourcemanager/synapse/armsynapse/privateendpointconnectionsprivatelinkhub_client.go index 01a418bf2ec2..419899c48056 100644 --- a/sdk/resourcemanager/synapse/armsynapse/zz_generated_privateendpointconnectionsprivatelinkhub_client.go +++ b/sdk/resourcemanager/synapse/armsynapse/privateendpointconnectionsprivatelinkhub_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse @@ -31,9 +32,9 @@ type PrivateEndpointConnectionsPrivateLinkHubClient struct { } // NewPrivateEndpointConnectionsPrivateLinkHubClient creates a new instance of PrivateEndpointConnectionsPrivateLinkHubClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewPrivateEndpointConnectionsPrivateLinkHubClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PrivateEndpointConnectionsPrivateLinkHubClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,12 +57,13 @@ func NewPrivateEndpointConnectionsPrivateLinkHubClient(subscriptionID string, cr // Get - Get all PrivateEndpointConnection in the PrivateLinkHub by name // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// privateLinkHubName - Name of the privateLinkHub -// privateEndpointConnectionName - Name of the privateEndpointConnection -// options - PrivateEndpointConnectionsPrivateLinkHubClientGetOptions contains the optional parameters for the PrivateEndpointConnectionsPrivateLinkHubClient.Get -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - privateLinkHubName - Name of the privateLinkHub +// - privateEndpointConnectionName - Name of the privateEndpointConnection +// - options - PrivateEndpointConnectionsPrivateLinkHubClientGetOptions contains the optional parameters for the PrivateEndpointConnectionsPrivateLinkHubClient.Get +// method. func (client *PrivateEndpointConnectionsPrivateLinkHubClient) Get(ctx context.Context, resourceGroupName string, privateLinkHubName string, privateEndpointConnectionName string, options *PrivateEndpointConnectionsPrivateLinkHubClientGetOptions) (PrivateEndpointConnectionsPrivateLinkHubClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, privateLinkHubName, privateEndpointConnectionName, options) if err != nil { @@ -117,12 +119,12 @@ func (client *PrivateEndpointConnectionsPrivateLinkHubClient) getHandleResponse( } // NewListPager - Get all PrivateEndpointConnections in the PrivateLinkHub -// If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// privateLinkHubName - Name of the privateLinkHub -// options - PrivateEndpointConnectionsPrivateLinkHubClientListOptions contains the optional parameters for the PrivateEndpointConnectionsPrivateLinkHubClient.List -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - privateLinkHubName - Name of the privateLinkHub +// - options - PrivateEndpointConnectionsPrivateLinkHubClientListOptions contains the optional parameters for the PrivateEndpointConnectionsPrivateLinkHubClient.NewListPager +// method. func (client *PrivateEndpointConnectionsPrivateLinkHubClient) NewListPager(resourceGroupName string, privateLinkHubName string, options *PrivateEndpointConnectionsPrivateLinkHubClientListOptions) *runtime.Pager[PrivateEndpointConnectionsPrivateLinkHubClientListResponse] { return runtime.NewPager(runtime.PagingHandler[PrivateEndpointConnectionsPrivateLinkHubClientListResponse]{ More: func(page PrivateEndpointConnectionsPrivateLinkHubClientListResponse) bool { diff --git a/sdk/resourcemanager/synapse/armsynapse/privateendpointconnectionsprivatelinkhub_client_example_test.go b/sdk/resourcemanager/synapse/armsynapse/privateendpointconnectionsprivatelinkhub_client_example_test.go new file mode 100644 index 000000000000..6c237c0c62ba --- /dev/null +++ b/sdk/resourcemanager/synapse/armsynapse/privateendpointconnectionsprivatelinkhub_client_example_test.go @@ -0,0 +1,108 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armsynapse_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/PrivateEndpointConnectionsPrivateLinkHub_List.json +func ExamplePrivateEndpointConnectionsPrivateLinkHubClient_NewListPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewPrivateEndpointConnectionsPrivateLinkHubClient("48b08652-d7a1-4d52-b13f-5a2471dce57b", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListPager("gh-res-grp", "pe0", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse = armsynapse.PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse{ + // Value: []*armsynapse.PrivateEndpointConnectionForPrivateLinkHub{ + // { + // ID: to.Ptr("/subscriptions/48b08652-d7a1-4d52-b13f-5a2471dce57b/resourceGroups/gh-res-grp/providers/Microsoft.Synapse/privateLinkHubs/plh900/privateEndpointConnections/pe0-f3ed30f5-338c-4855-a542-24a403694ad2"), + // Properties: &armsynapse.PrivateEndpointConnectionProperties{ + // PrivateEndpoint: &armsynapse.PrivateEndpoint{ + // ID: to.Ptr("/subscriptions/48b08652-d7a1-4d52-b13f-5a2471dce57b/resourceGroups/gh-res-grp/providers/Microsoft.Network/privateEndpoints/pe0"), + // }, + // PrivateLinkServiceConnectionState: &armsynapse.PrivateLinkServiceConnectionState{ + // Status: to.Ptr("Approved"), + // }, + // ProvisioningState: to.Ptr("Succeeded"), + // }, + // Name: to.Ptr("pe0-f3ed30f5-338c-4855-a542-24a403694ad2"), + // Type: to.Ptr("Microsoft.Synapse/privateLinkHubs/privateEndpointConnections"), + // }, + // { + // ID: to.Ptr("/subscriptions/48b08652-d7a1-4d52-b13f-5a2471dce57b/resourceGroups/gh-res-grp/providers/Microsoft.Synapse/privateLinkHubs/plh900/privateEndpointConnections/pe-xbox-3e425dc3-edd9-434c-9bca-3ac6cecbc7e4"), + // Properties: &armsynapse.PrivateEndpointConnectionProperties{ + // PrivateEndpoint: &armsynapse.PrivateEndpoint{ + // ID: to.Ptr("/subscriptions/48b08652-d7a1-4d52-b13f-5a2471dce57b/resourceGroups/gh-res-grp/providers/Microsoft.Network/privateEndpoints/pe-xbox"), + // }, + // PrivateLinkServiceConnectionState: &armsynapse.PrivateLinkServiceConnectionState{ + // Status: to.Ptr("Approved"), + // }, + // ProvisioningState: to.Ptr("Succeeded"), + // }, + // Name: to.Ptr("pe-xbox-3e425dc3-edd9-434c-9bca-3ac6cecbc7e4"), + // Type: to.Ptr("Microsoft.Synapse/privateLinkHubs/privateEndpointConnections"), + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/PrivateEndpointConnectionsPrivateLinkHub_Get.json +func ExamplePrivateEndpointConnectionsPrivateLinkHubClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewPrivateEndpointConnectionsPrivateLinkHubClient("48b08652-d7a1-4d52-b13f-5a2471dce57b", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "gh-res-grp", "pe0", "pe0-f3ed30f5-338c-4855-a542-24a403694ad2", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.PrivateEndpointConnectionForPrivateLinkHub = armsynapse.PrivateEndpointConnectionForPrivateLinkHub{ + // ID: to.Ptr("/subscriptions/48b08652-d7a1-4d52-b13f-5a2471dce57b/resourceGroups/gh-res-grp/providers/Microsoft.Synapse/privateLinkHubs/plh900/privateEndpointConnections/pe0-f3ed30f5-338c-4855-a542-24a403694ad2"), + // Properties: &armsynapse.PrivateEndpointConnectionProperties{ + // PrivateEndpoint: &armsynapse.PrivateEndpoint{ + // ID: to.Ptr("/subscriptions/48b08652-d7a1-4d52-b13f-5a2471dce57b/resourceGroups/gh-res-grp/providers/Microsoft.Network/privateEndpoints/pe0"), + // }, + // PrivateLinkServiceConnectionState: &armsynapse.PrivateLinkServiceConnectionState{ + // Status: to.Ptr("Approved"), + // }, + // ProvisioningState: to.Ptr("Succeeded"), + // }, + // Name: to.Ptr("pe0-f3ed30f5-338c-4855-a542-24a403694ad2"), + // Type: to.Ptr("Microsoft.Synapse/privateLinkHubs/privateEndpointConnections"), + // } +} diff --git a/sdk/resourcemanager/synapse/armsynapse/zz_generated_privatelinkhubprivatelinkresources_client.go b/sdk/resourcemanager/synapse/armsynapse/privatelinkhubprivatelinkresources_client.go similarity index 89% rename from sdk/resourcemanager/synapse/armsynapse/zz_generated_privatelinkhubprivatelinkresources_client.go rename to sdk/resourcemanager/synapse/armsynapse/privatelinkhubprivatelinkresources_client.go index cedda6ffd143..683d1e554a7b 100644 --- a/sdk/resourcemanager/synapse/armsynapse/zz_generated_privatelinkhubprivatelinkresources_client.go +++ b/sdk/resourcemanager/synapse/armsynapse/privatelinkhubprivatelinkresources_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse @@ -31,9 +32,9 @@ type PrivateLinkHubPrivateLinkResourcesClient struct { } // NewPrivateLinkHubPrivateLinkResourcesClient creates a new instance of PrivateLinkHubPrivateLinkResourcesClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewPrivateLinkHubPrivateLinkResourcesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PrivateLinkHubPrivateLinkResourcesClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,12 +57,13 @@ func NewPrivateLinkHubPrivateLinkResourcesClient(subscriptionID string, credenti // Get - Get private link resource in private link hub // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// privateLinkHubName - The name of the private link hub -// privateLinkResourceName - The name of the private link resource -// options - PrivateLinkHubPrivateLinkResourcesClientGetOptions contains the optional parameters for the PrivateLinkHubPrivateLinkResourcesClient.Get -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - privateLinkHubName - The name of the private link hub +// - privateLinkResourceName - The name of the private link resource +// - options - PrivateLinkHubPrivateLinkResourcesClientGetOptions contains the optional parameters for the PrivateLinkHubPrivateLinkResourcesClient.Get +// method. func (client *PrivateLinkHubPrivateLinkResourcesClient) Get(ctx context.Context, resourceGroupName string, privateLinkHubName string, privateLinkResourceName string, options *PrivateLinkHubPrivateLinkResourcesClientGetOptions) (PrivateLinkHubPrivateLinkResourcesClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, privateLinkHubName, privateLinkResourceName, options) if err != nil { @@ -117,12 +119,12 @@ func (client *PrivateLinkHubPrivateLinkResourcesClient) getHandleResponse(resp * } // NewListPager - Get all private link resources for a private link hub -// If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// privateLinkHubName - The name of the private link hub -// options - PrivateLinkHubPrivateLinkResourcesClientListOptions contains the optional parameters for the PrivateLinkHubPrivateLinkResourcesClient.List -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - privateLinkHubName - The name of the private link hub +// - options - PrivateLinkHubPrivateLinkResourcesClientListOptions contains the optional parameters for the PrivateLinkHubPrivateLinkResourcesClient.NewListPager +// method. func (client *PrivateLinkHubPrivateLinkResourcesClient) NewListPager(resourceGroupName string, privateLinkHubName string, options *PrivateLinkHubPrivateLinkResourcesClientListOptions) *runtime.Pager[PrivateLinkHubPrivateLinkResourcesClientListResponse] { return runtime.NewPager(runtime.PagingHandler[PrivateLinkHubPrivateLinkResourcesClientListResponse]{ More: func(page PrivateLinkHubPrivateLinkResourcesClientListResponse) bool { diff --git a/sdk/resourcemanager/synapse/armsynapse/privatelinkhubprivatelinkresources_client_example_test.go b/sdk/resourcemanager/synapse/armsynapse/privatelinkhubprivatelinkresources_client_example_test.go new file mode 100644 index 000000000000..93915c06ec40 --- /dev/null +++ b/sdk/resourcemanager/synapse/armsynapse/privatelinkhubprivatelinkresources_client_example_test.go @@ -0,0 +1,90 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armsynapse_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListPrivateLinkHubPrivateLinkResources.json +func ExamplePrivateLinkHubPrivateLinkResourcesClient_NewListPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewPrivateLinkHubPrivateLinkResourcesClient("01234567-89ab-4def-0123-456789abcdef", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListPager("ExampleResourceGroup", "ExamplePrivateLinkHub", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.PrivateLinkResourceListResult = armsynapse.PrivateLinkResourceListResult{ + // Value: []*armsynapse.PrivateLinkResource{ + // { + // Name: to.Ptr("sql"), + // Type: to.Ptr("Microsoft.Synapse/privateLinkHubs/privateLinkResources"), + // ID: to.Ptr("/subscriptions/01234567-89ab-4def-0123-456789abcdef/resourceGroups/ExampleResourceGroup/providers/Microsoft.Synapse/privateLinkHubs/ExamplePrivateLinkHub/privateLinkResources/sql"), + // Properties: &armsynapse.PrivateLinkResourceProperties{ + // GroupID: to.Ptr("sql"), + // RequiredMembers: []*string{ + // to.Ptr("sql")}, + // RequiredZoneNames: []*string{ + // to.Ptr("privatelink.sql.azuresynapse.net")}, + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetPrivateLinkHubPrivateLinkResource.json +func ExamplePrivateLinkHubPrivateLinkResourcesClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewPrivateLinkHubPrivateLinkResourcesClient("01234567-89ab-4def-0123-456789abcdef", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "ExampleResourceGroup", "ExamplePrivateLinkHub", "sql", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.PrivateLinkResource = armsynapse.PrivateLinkResource{ + // Name: to.Ptr("sql"), + // Type: to.Ptr("Microsoft.Synapse/privateLinkHubs/privateLinkResources"), + // ID: to.Ptr("/subscriptions/01234567-89ab-4def-0123-456789abcdef/resourceGroups/ExampleResourceGroup/providers/Microsoft.Synapse/privateLinkHubs/ExamplePrivateLinkHub/privateLinkResources/sql"), + // Properties: &armsynapse.PrivateLinkResourceProperties{ + // GroupID: to.Ptr("sql"), + // RequiredMembers: []*string{ + // to.Ptr("sql")}, + // RequiredZoneNames: []*string{ + // to.Ptr("privatelink.sql.azuresynapse.net")}, + // }, + // } +} diff --git a/sdk/resourcemanager/synapse/armsynapse/zz_generated_privatelinkhubs_client.go b/sdk/resourcemanager/synapse/armsynapse/privatelinkhubs_client.go similarity index 90% rename from sdk/resourcemanager/synapse/armsynapse/zz_generated_privatelinkhubs_client.go rename to sdk/resourcemanager/synapse/armsynapse/privatelinkhubs_client.go index eb7d90cdd38f..d4c9f4658aed 100644 --- a/sdk/resourcemanager/synapse/armsynapse/zz_generated_privatelinkhubs_client.go +++ b/sdk/resourcemanager/synapse/armsynapse/privatelinkhubs_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse @@ -31,9 +32,9 @@ type PrivateLinkHubsClient struct { } // NewPrivateLinkHubsClient creates a new instance of PrivateLinkHubsClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewPrivateLinkHubsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PrivateLinkHubsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,12 +57,13 @@ func NewPrivateLinkHubsClient(subscriptionID string, credential azcore.TokenCred // CreateOrUpdate - Creates or updates a privateLinkHub // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// privateLinkHubName - Name of the privateLinkHub -// privateLinkHubInfo - PrivateLinkHub create or update request properties -// options - PrivateLinkHubsClientCreateOrUpdateOptions contains the optional parameters for the PrivateLinkHubsClient.CreateOrUpdate -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - privateLinkHubName - Name of the privateLinkHub +// - privateLinkHubInfo - PrivateLinkHub create or update request properties +// - options - PrivateLinkHubsClientCreateOrUpdateOptions contains the optional parameters for the PrivateLinkHubsClient.CreateOrUpdate +// method. func (client *PrivateLinkHubsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, privateLinkHubName string, privateLinkHubInfo PrivateLinkHub, options *PrivateLinkHubsClientCreateOrUpdateOptions) (PrivateLinkHubsClientCreateOrUpdateResponse, error) { req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, privateLinkHubName, privateLinkHubInfo, options) if err != nil { @@ -114,11 +116,12 @@ func (client *PrivateLinkHubsClient) createOrUpdateHandleResponse(resp *http.Res // BeginDelete - Deletes a privateLinkHub // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// privateLinkHubName - Name of the privateLinkHub -// options - PrivateLinkHubsClientBeginDeleteOptions contains the optional parameters for the PrivateLinkHubsClient.BeginDelete -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - privateLinkHubName - Name of the privateLinkHub +// - options - PrivateLinkHubsClientBeginDeleteOptions contains the optional parameters for the PrivateLinkHubsClient.BeginDelete +// method. func (client *PrivateLinkHubsClient) BeginDelete(ctx context.Context, resourceGroupName string, privateLinkHubName string, options *PrivateLinkHubsClientBeginDeleteOptions) (*runtime.Poller[PrivateLinkHubsClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, privateLinkHubName, options) @@ -133,6 +136,7 @@ func (client *PrivateLinkHubsClient) BeginDelete(ctx context.Context, resourceGr // Delete - Deletes a privateLinkHub // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 func (client *PrivateLinkHubsClient) deleteOperation(ctx context.Context, resourceGroupName string, privateLinkHubName string, options *PrivateLinkHubsClientBeginDeleteOptions) (*http.Response, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, privateLinkHubName, options) @@ -177,10 +181,11 @@ func (client *PrivateLinkHubsClient) deleteCreateRequest(ctx context.Context, re // Get - Gets a privateLinkHub // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// privateLinkHubName - Name of the privateLinkHub -// options - PrivateLinkHubsClientGetOptions contains the optional parameters for the PrivateLinkHubsClient.Get method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - privateLinkHubName - Name of the privateLinkHub +// - options - PrivateLinkHubsClientGetOptions contains the optional parameters for the PrivateLinkHubsClient.Get method. func (client *PrivateLinkHubsClient) Get(ctx context.Context, resourceGroupName string, privateLinkHubName string, options *PrivateLinkHubsClientGetOptions) (PrivateLinkHubsClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, privateLinkHubName, options) if err != nil { @@ -232,9 +237,10 @@ func (client *PrivateLinkHubsClient) getHandleResponse(resp *http.Response) (Pri } // NewListPager - Returns a list of privateLinkHubs in a subscription -// If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// options - PrivateLinkHubsClientListOptions contains the optional parameters for the PrivateLinkHubsClient.List method. +// - options - PrivateLinkHubsClientListOptions contains the optional parameters for the PrivateLinkHubsClient.NewListPager +// method. func (client *PrivateLinkHubsClient) NewListPager(options *PrivateLinkHubsClientListOptions) *runtime.Pager[PrivateLinkHubsClientListResponse] { return runtime.NewPager(runtime.PagingHandler[PrivateLinkHubsClientListResponse]{ More: func(page PrivateLinkHubsClientListResponse) bool { @@ -291,11 +297,11 @@ func (client *PrivateLinkHubsClient) listHandleResponse(resp *http.Response) (Pr } // NewListByResourceGroupPager - Returns a list of privateLinkHubs in a resource group -// If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// options - PrivateLinkHubsClientListByResourceGroupOptions contains the optional parameters for the PrivateLinkHubsClient.ListByResourceGroup -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - options - PrivateLinkHubsClientListByResourceGroupOptions contains the optional parameters for the PrivateLinkHubsClient.NewListByResourceGroupPager +// method. func (client *PrivateLinkHubsClient) NewListByResourceGroupPager(resourceGroupName string, options *PrivateLinkHubsClientListByResourceGroupOptions) *runtime.Pager[PrivateLinkHubsClientListByResourceGroupResponse] { return runtime.NewPager(runtime.PagingHandler[PrivateLinkHubsClientListByResourceGroupResponse]{ More: func(page PrivateLinkHubsClientListByResourceGroupResponse) bool { @@ -357,11 +363,12 @@ func (client *PrivateLinkHubsClient) listByResourceGroupHandleResponse(resp *htt // Update - Updates a privateLinkHub // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// privateLinkHubName - Name of the privateLinkHub -// privateLinkHubPatchInfo - PrivateLinkHub patch request properties -// options - PrivateLinkHubsClientUpdateOptions contains the optional parameters for the PrivateLinkHubsClient.Update method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - privateLinkHubName - Name of the privateLinkHub +// - privateLinkHubPatchInfo - PrivateLinkHub patch request properties +// - options - PrivateLinkHubsClientUpdateOptions contains the optional parameters for the PrivateLinkHubsClient.Update method. func (client *PrivateLinkHubsClient) Update(ctx context.Context, resourceGroupName string, privateLinkHubName string, privateLinkHubPatchInfo PrivateLinkHubPatchInfo, options *PrivateLinkHubsClientUpdateOptions) (PrivateLinkHubsClientUpdateResponse, error) { req, err := client.updateCreateRequest(ctx, resourceGroupName, privateLinkHubName, privateLinkHubPatchInfo, options) if err != nil { diff --git a/sdk/resourcemanager/synapse/armsynapse/privatelinkhubs_client_example_test.go b/sdk/resourcemanager/synapse/armsynapse/privatelinkhubs_client_example_test.go new file mode 100644 index 000000000000..043399396b06 --- /dev/null +++ b/sdk/resourcemanager/synapse/armsynapse/privatelinkhubs_client_example_test.go @@ -0,0 +1,250 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armsynapse_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListPrivateLinkHubsInResourceGroup.json +func ExamplePrivateLinkHubsClient_NewListByResourceGroupPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewPrivateLinkHubsClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListByResourceGroupPager("resourceGroup1", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.PrivateLinkHubInfoListResult = armsynapse.PrivateLinkHubInfoListResult{ + // Value: []*armsynapse.PrivateLinkHub{ + // { + // Name: to.Ptr("privateLinkHub1"), + // Type: to.Ptr("Microsoft.Synapse/privateLinkHubs"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup1/providers/Microsoft.Synapse/privateLinkHubs/privateLinkHub1"), + // Location: to.Ptr("East US"), + // Tags: map[string]*string{ + // "key": to.Ptr("value"), + // }, + // Properties: &armsynapse.PrivateLinkHubProperties{ + // ProvisioningState: to.Ptr("Succeeded"), + // }, + // }, + // { + // Name: to.Ptr("privateLinkHub2"), + // Type: to.Ptr("Microsoft.Synapse/privateLinkHubs"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup1/providers/Microsoft.Synapse/privateLinkHubs/privateLinkHub2"), + // Location: to.Ptr("East US"), + // Tags: map[string]*string{ + // "key": to.Ptr("value"), + // }, + // Properties: &armsynapse.PrivateLinkHubProperties{ + // ProvisioningState: to.Ptr("Succeeded"), + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetPrivateLinkHub.json +func ExamplePrivateLinkHubsClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewPrivateLinkHubsClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "resourceGroup1", "privateLinkHub1", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.PrivateLinkHub = armsynapse.PrivateLinkHub{ + // Name: to.Ptr("privateLinkHub1"), + // Type: to.Ptr("Microsoft.Synapse/privateLinkHubs"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup1/providers/Microsoft.Synapse/privateLinkHubs/privateLinkHub1"), + // Location: to.Ptr("East US"), + // Tags: map[string]*string{ + // "key": to.Ptr("value"), + // }, + // Properties: &armsynapse.PrivateLinkHubProperties{ + // ProvisioningState: to.Ptr("Succeeded"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/UpdatePrivateLinkHub.json +func ExamplePrivateLinkHubsClient_Update() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewPrivateLinkHubsClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Update(ctx, "resourceGroup1", "privateLinkHub1", armsynapse.PrivateLinkHubPatchInfo{ + Tags: map[string]*string{ + "key": to.Ptr("value"), + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.PrivateLinkHub = armsynapse.PrivateLinkHub{ + // Name: to.Ptr("privateLinkHub1"), + // Type: to.Ptr("Microsoft.Synapse/privateLinkHubs"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup1/providers/Microsoft.Synapse/privateLinkHubs/privateLinkHub1"), + // Location: to.Ptr("East US"), + // Tags: map[string]*string{ + // "key": to.Ptr("value"), + // }, + // Properties: &armsynapse.PrivateLinkHubProperties{ + // ProvisioningState: to.Ptr("Succeeded"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdatePrivateLinkHub.json +func ExamplePrivateLinkHubsClient_CreateOrUpdate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewPrivateLinkHubsClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.CreateOrUpdate(ctx, "resourceGroup1", "privateLinkHub1", armsynapse.PrivateLinkHub{ + Location: to.Ptr("East US"), + Tags: map[string]*string{ + "key": to.Ptr("value"), + }, + Properties: &armsynapse.PrivateLinkHubProperties{}, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.PrivateLinkHub = armsynapse.PrivateLinkHub{ + // Name: to.Ptr("privateLinkHub1"), + // Type: to.Ptr("Microsoft.Synapse/privateLinkHubs"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup1/providers/Microsoft.Synapse/privateLinkHubs/privateLinkHub1"), + // Location: to.Ptr("East US"), + // Tags: map[string]*string{ + // "key": to.Ptr("value"), + // }, + // Properties: &armsynapse.PrivateLinkHubProperties{ + // ProvisioningState: to.Ptr("Succeeded"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeletePrivateLinkHub.json +func ExamplePrivateLinkHubsClient_BeginDelete() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewPrivateLinkHubsClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginDelete(ctx, "resourceGroup1", "privateLinkHub1", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + _, err = poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListPrivateLinkHubsInSubscription.json +func ExamplePrivateLinkHubsClient_NewListPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewPrivateLinkHubsClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListPager(nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.PrivateLinkHubInfoListResult = armsynapse.PrivateLinkHubInfoListResult{ + // Value: []*armsynapse.PrivateLinkHub{ + // { + // Name: to.Ptr("privateLinkHub1"), + // Type: to.Ptr("Microsoft.Synapse/privateLinkHubs"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup1/providers/Microsoft.Synapse/privateLinkHubs/privateLinkHub1"), + // Location: to.Ptr("East US"), + // Tags: map[string]*string{ + // "key": to.Ptr("value"), + // }, + // Properties: &armsynapse.PrivateLinkHubProperties{ + // ProvisioningState: to.Ptr("Succeeded"), + // }, + // }, + // { + // Name: to.Ptr("privateLinkHub2"), + // Type: to.Ptr("Microsoft.Synapse/privateLinkHubs"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup1/providers/Microsoft.Synapse/privateLinkHubs/privateLinkHub2"), + // Location: to.Ptr("East US"), + // Tags: map[string]*string{ + // "key": to.Ptr("value"), + // }, + // Properties: &armsynapse.PrivateLinkHubProperties{ + // ProvisioningState: to.Ptr("Succeeded"), + // }, + // }}, + // } + } +} diff --git a/sdk/resourcemanager/synapse/armsynapse/zz_generated_privatelinkresources_client.go b/sdk/resourcemanager/synapse/armsynapse/privatelinkresources_client.go similarity index 89% rename from sdk/resourcemanager/synapse/armsynapse/zz_generated_privatelinkresources_client.go rename to sdk/resourcemanager/synapse/armsynapse/privatelinkresources_client.go index 5988548d93e6..e595346fd400 100644 --- a/sdk/resourcemanager/synapse/armsynapse/zz_generated_privatelinkresources_client.go +++ b/sdk/resourcemanager/synapse/armsynapse/privatelinkresources_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse @@ -31,9 +32,9 @@ type PrivateLinkResourcesClient struct { } // NewPrivateLinkResourcesClient creates a new instance of PrivateLinkResourcesClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewPrivateLinkResourcesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PrivateLinkResourcesClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,12 +57,13 @@ func NewPrivateLinkResourcesClient(subscriptionID string, credential azcore.Toke // Get - Get private link resource in workspace // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// privateLinkResourceName - The name of the private link resource -// options - PrivateLinkResourcesClientGetOptions contains the optional parameters for the PrivateLinkResourcesClient.Get -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - privateLinkResourceName - The name of the private link resource +// - options - PrivateLinkResourcesClientGetOptions contains the optional parameters for the PrivateLinkResourcesClient.Get +// method. func (client *PrivateLinkResourcesClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, privateLinkResourceName string, options *PrivateLinkResourcesClientGetOptions) (PrivateLinkResourcesClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, workspaceName, privateLinkResourceName, options) if err != nil { @@ -117,12 +119,12 @@ func (client *PrivateLinkResourcesClient) getHandleResponse(resp *http.Response) } // NewListPager - Get all private link resources for a workspaces -// If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// options - PrivateLinkResourcesClientListOptions contains the optional parameters for the PrivateLinkResourcesClient.List -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - options - PrivateLinkResourcesClientListOptions contains the optional parameters for the PrivateLinkResourcesClient.NewListPager +// method. func (client *PrivateLinkResourcesClient) NewListPager(resourceGroupName string, workspaceName string, options *PrivateLinkResourcesClientListOptions) *runtime.Pager[PrivateLinkResourcesClientListResponse] { return runtime.NewPager(runtime.PagingHandler[PrivateLinkResourcesClientListResponse]{ More: func(page PrivateLinkResourcesClientListResponse) bool { diff --git a/sdk/resourcemanager/synapse/armsynapse/privatelinkresources_client_example_test.go b/sdk/resourcemanager/synapse/armsynapse/privatelinkresources_client_example_test.go new file mode 100644 index 000000000000..670d1f153668 --- /dev/null +++ b/sdk/resourcemanager/synapse/armsynapse/privatelinkresources_client_example_test.go @@ -0,0 +1,90 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armsynapse_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListPrivateLinkResources.json +func ExamplePrivateLinkResourcesClient_NewListPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewPrivateLinkResourcesClient("01234567-89ab-4def-0123-456789abcdef", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListPager("ExampleResourceGroup", "ExampleWorkspace", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.PrivateLinkResourceListResult = armsynapse.PrivateLinkResourceListResult{ + // Value: []*armsynapse.PrivateLinkResource{ + // { + // Name: to.Ptr("sql"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/privateLinkResources"), + // ID: to.Ptr("/subscriptions/01234567-89ab-4def-0123-456789abcdef/resourceGroups/ExampleResourceGroup/providers/Microsoft.Synapse/workspaces/ExampleWorkspace/privateLinkResources/sql"), + // Properties: &armsynapse.PrivateLinkResourceProperties{ + // GroupID: to.Ptr("sql"), + // RequiredMembers: []*string{ + // to.Ptr("sql")}, + // RequiredZoneNames: []*string{ + // to.Ptr("privatelink.sql.azuresynapse.net")}, + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetPrivateLinkResource.json +func ExamplePrivateLinkResourcesClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewPrivateLinkResourcesClient("01234567-89ab-4def-0123-456789abcdef", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "ExampleResourceGroup", "ExampleWorkspace", "sql", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.PrivateLinkResource = armsynapse.PrivateLinkResource{ + // Name: to.Ptr("sql"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/privateLinkResources"), + // ID: to.Ptr("/subscriptions/01234567-89ab-4def-0123-456789abcdef/resourceGroups/ExampleResourceGroup/providers/Microsoft.Synapse/workspaces/ExampleWorkspace/privateLinkResources/sql"), + // Properties: &armsynapse.PrivateLinkResourceProperties{ + // GroupID: to.Ptr("sql"), + // RequiredMembers: []*string{ + // to.Ptr("sql")}, + // RequiredZoneNames: []*string{ + // to.Ptr("privatelink.sql.azuresynapse.net")}, + // }, + // } +} diff --git a/sdk/resourcemanager/synapse/armsynapse/zz_generated_response_types.go b/sdk/resourcemanager/synapse/armsynapse/response_types.go similarity index 86% rename from sdk/resourcemanager/synapse/armsynapse/zz_generated_response_types.go rename to sdk/resourcemanager/synapse/armsynapse/response_types.go index 496f3dfe15de..f3bea8487745 100644 --- a/sdk/resourcemanager/synapse/armsynapse/zz_generated_response_types.go +++ b/sdk/resourcemanager/synapse/armsynapse/response_types.go @@ -5,12 +5,11 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse -import "encoding/json" - -// AzureADOnlyAuthenticationsClientCreateResponse contains the response from method AzureADOnlyAuthenticationsClient.Create. +// AzureADOnlyAuthenticationsClientCreateResponse contains the response from method AzureADOnlyAuthenticationsClient.BeginCreate. type AzureADOnlyAuthenticationsClientCreateResponse struct { AzureADOnlyAuthentication } @@ -20,25 +19,19 @@ type AzureADOnlyAuthenticationsClientGetResponse struct { AzureADOnlyAuthentication } -// AzureADOnlyAuthenticationsClientListResponse contains the response from method AzureADOnlyAuthenticationsClient.List. +// AzureADOnlyAuthenticationsClientListResponse contains the response from method AzureADOnlyAuthenticationsClient.NewListPager. type AzureADOnlyAuthenticationsClientListResponse struct { AzureADOnlyAuthenticationListResult } -// BigDataPoolsClientCreateOrUpdateResponse contains the response from method BigDataPoolsClient.CreateOrUpdate. +// BigDataPoolsClientCreateOrUpdateResponse contains the response from method BigDataPoolsClient.BeginCreateOrUpdate. type BigDataPoolsClientCreateOrUpdateResponse struct { BigDataPoolResourceInfo } -// BigDataPoolsClientDeleteResponse contains the response from method BigDataPoolsClient.Delete. +// BigDataPoolsClientDeleteResponse contains the response from method BigDataPoolsClient.BeginDelete. type BigDataPoolsClientDeleteResponse struct { - // Anything - Interface interface{} -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type BigDataPoolsClientDeleteResponse. -func (b *BigDataPoolsClientDeleteResponse) UnmarshalJSON(data []byte) error { - return json.Unmarshal(data, &b.Interface) + BigDataPoolResourceInfo } // BigDataPoolsClientGetResponse contains the response from method BigDataPoolsClient.Get. @@ -46,7 +39,7 @@ type BigDataPoolsClientGetResponse struct { BigDataPoolResourceInfo } -// BigDataPoolsClientListByWorkspaceResponse contains the response from method BigDataPoolsClient.ListByWorkspace. +// BigDataPoolsClientListByWorkspaceResponse contains the response from method BigDataPoolsClient.NewListByWorkspacePager. type BigDataPoolsClientListByWorkspaceResponse struct { BigDataPoolResourceInfoListResult } @@ -76,7 +69,7 @@ type DataMaskingRulesClientGetResponse struct { DataMaskingRule } -// DataMaskingRulesClientListBySQLPoolResponse contains the response from method DataMaskingRulesClient.ListBySQLPool. +// DataMaskingRulesClientListBySQLPoolResponse contains the response from method DataMaskingRulesClient.NewListBySQLPoolPager. type DataMaskingRulesClientListBySQLPoolResponse struct { DataMaskingRuleListResult } @@ -91,25 +84,34 @@ type ExtendedSQLPoolBlobAuditingPoliciesClientGetResponse struct { ExtendedSQLPoolBlobAuditingPolicy } -// ExtendedSQLPoolBlobAuditingPoliciesClientListBySQLPoolResponse contains the response from method ExtendedSQLPoolBlobAuditingPoliciesClient.ListBySQLPool. +// ExtendedSQLPoolBlobAuditingPoliciesClientListBySQLPoolResponse contains the response from method ExtendedSQLPoolBlobAuditingPoliciesClient.NewListBySQLPoolPager. type ExtendedSQLPoolBlobAuditingPoliciesClientListBySQLPoolResponse struct { ExtendedSQLPoolBlobAuditingPolicyListResult } -// IPFirewallRulesClientCreateOrUpdateResponse contains the response from method IPFirewallRulesClient.CreateOrUpdate. +// GetClientIntegrationRuntimeEnableInteractivequeryResponse contains the response from method GetClient.IntegrationRuntimeEnableInteractivequery. +type GetClientIntegrationRuntimeEnableInteractivequeryResponse struct { + IntegrationRuntimeEnableinteractivequery +} + +// GetClientIntegrationRuntimeStartResponse contains the response from method GetClient.IntegrationRuntimeStart. +type GetClientIntegrationRuntimeStartResponse struct { + IntegrationRuntimeOperationStatus +} + +// GetClientIntegrationRuntimeStopResponse contains the response from method GetClient.IntegrationRuntimeStop. +type GetClientIntegrationRuntimeStopResponse struct { + IntegrationRuntimeStopOperationStatus +} + +// IPFirewallRulesClientCreateOrUpdateResponse contains the response from method IPFirewallRulesClient.BeginCreateOrUpdate. type IPFirewallRulesClientCreateOrUpdateResponse struct { IPFirewallRuleInfo } -// IPFirewallRulesClientDeleteResponse contains the response from method IPFirewallRulesClient.Delete. +// IPFirewallRulesClientDeleteResponse contains the response from method IPFirewallRulesClient.BeginDelete. type IPFirewallRulesClientDeleteResponse struct { - // Anything - Interface interface{} -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type IPFirewallRulesClientDeleteResponse. -func (i *IPFirewallRulesClientDeleteResponse) UnmarshalJSON(data []byte) error { - return json.Unmarshal(data, &i.Interface) + IPFirewallRuleInfo } // IPFirewallRulesClientGetResponse contains the response from method IPFirewallRulesClient.Get. @@ -117,12 +119,12 @@ type IPFirewallRulesClientGetResponse struct { IPFirewallRuleInfo } -// IPFirewallRulesClientListByWorkspaceResponse contains the response from method IPFirewallRulesClient.ListByWorkspace. +// IPFirewallRulesClientListByWorkspaceResponse contains the response from method IPFirewallRulesClient.NewListByWorkspacePager. type IPFirewallRulesClientListByWorkspaceResponse struct { IPFirewallRuleInfoListResult } -// IPFirewallRulesClientReplaceAllResponse contains the response from method IPFirewallRulesClient.ReplaceAll. +// IPFirewallRulesClientReplaceAllResponse contains the response from method IPFirewallRulesClient.BeginReplaceAll. type IPFirewallRulesClientReplaceAllResponse struct { ReplaceAllFirewallRulesOperationResponse } @@ -177,7 +179,7 @@ type IntegrationRuntimeObjectMetadataClientListResponse struct { SsisObjectMetadataListResponse } -// IntegrationRuntimeObjectMetadataClientRefreshResponse contains the response from method IntegrationRuntimeObjectMetadataClient.Refresh. +// IntegrationRuntimeObjectMetadataClientRefreshResponse contains the response from method IntegrationRuntimeObjectMetadataClient.BeginRefresh. type IntegrationRuntimeObjectMetadataClientRefreshResponse struct { SsisObjectMetadataStatusResponse } @@ -187,22 +189,22 @@ type IntegrationRuntimeStatusClientGetResponse struct { IntegrationRuntimeStatusResponse } -// IntegrationRuntimesClientCreateResponse contains the response from method IntegrationRuntimesClient.Create. +// IntegrationRuntimesClientCreateResponse contains the response from method IntegrationRuntimesClient.BeginCreate. type IntegrationRuntimesClientCreateResponse struct { IntegrationRuntimeResource } -// IntegrationRuntimesClientDeleteResponse contains the response from method IntegrationRuntimesClient.Delete. +// IntegrationRuntimesClientDeleteResponse contains the response from method IntegrationRuntimesClient.BeginDelete. type IntegrationRuntimesClientDeleteResponse struct { // placeholder for future response values } -// IntegrationRuntimesClientDisableInteractiveQueryResponse contains the response from method IntegrationRuntimesClient.DisableInteractiveQuery. +// IntegrationRuntimesClientDisableInteractiveQueryResponse contains the response from method IntegrationRuntimesClient.BeginDisableInteractiveQuery. type IntegrationRuntimesClientDisableInteractiveQueryResponse struct { // placeholder for future response values } -// IntegrationRuntimesClientEnableInteractiveQueryResponse contains the response from method IntegrationRuntimesClient.EnableInteractiveQuery. +// IntegrationRuntimesClientEnableInteractiveQueryResponse contains the response from method IntegrationRuntimesClient.BeginEnableInteractiveQuery. type IntegrationRuntimesClientEnableInteractiveQueryResponse struct { // placeholder for future response values } @@ -212,7 +214,7 @@ type IntegrationRuntimesClientGetResponse struct { IntegrationRuntimeResource } -// IntegrationRuntimesClientListByWorkspaceResponse contains the response from method IntegrationRuntimesClient.ListByWorkspace. +// IntegrationRuntimesClientListByWorkspaceResponse contains the response from method IntegrationRuntimesClient.NewListByWorkspacePager. type IntegrationRuntimesClientListByWorkspaceResponse struct { IntegrationRuntimeListResponse } @@ -222,12 +224,12 @@ type IntegrationRuntimesClientListOutboundNetworkDependenciesEndpointsResponse s IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse } -// IntegrationRuntimesClientStartResponse contains the response from method IntegrationRuntimesClient.Start. +// IntegrationRuntimesClientStartResponse contains the response from method IntegrationRuntimesClient.BeginStart. type IntegrationRuntimesClientStartResponse struct { IntegrationRuntimeStatusResponse } -// IntegrationRuntimesClientStopResponse contains the response from method IntegrationRuntimesClient.Stop. +// IntegrationRuntimesClientStopResponse contains the response from method IntegrationRuntimesClient.BeginStop. type IntegrationRuntimesClientStopResponse struct { // placeholder for future response values } @@ -257,22 +259,22 @@ type KeysClientGetResponse struct { Key } -// KeysClientListByWorkspaceResponse contains the response from method KeysClient.ListByWorkspace. +// KeysClientListByWorkspaceResponse contains the response from method KeysClient.NewListByWorkspacePager. type KeysClientListByWorkspaceResponse struct { KeyInfoListResult } -// KustoOperationsClientListResponse contains the response from method KustoOperationsClient.List. +// KustoOperationsClientListResponse contains the response from method KustoOperationsClient.NewListPager. type KustoOperationsClientListResponse struct { OperationListResult } -// KustoPoolAttachedDatabaseConfigurationsClientCreateOrUpdateResponse contains the response from method KustoPoolAttachedDatabaseConfigurationsClient.CreateOrUpdate. +// KustoPoolAttachedDatabaseConfigurationsClientCreateOrUpdateResponse contains the response from method KustoPoolAttachedDatabaseConfigurationsClient.BeginCreateOrUpdate. type KustoPoolAttachedDatabaseConfigurationsClientCreateOrUpdateResponse struct { AttachedDatabaseConfiguration } -// KustoPoolAttachedDatabaseConfigurationsClientDeleteResponse contains the response from method KustoPoolAttachedDatabaseConfigurationsClient.Delete. +// KustoPoolAttachedDatabaseConfigurationsClientDeleteResponse contains the response from method KustoPoolAttachedDatabaseConfigurationsClient.BeginDelete. type KustoPoolAttachedDatabaseConfigurationsClientDeleteResponse struct { // placeholder for future response values } @@ -282,7 +284,7 @@ type KustoPoolAttachedDatabaseConfigurationsClientGetResponse struct { AttachedDatabaseConfiguration } -// KustoPoolAttachedDatabaseConfigurationsClientListByKustoPoolResponse contains the response from method KustoPoolAttachedDatabaseConfigurationsClient.ListByKustoPool. +// KustoPoolAttachedDatabaseConfigurationsClientListByKustoPoolResponse contains the response from method KustoPoolAttachedDatabaseConfigurationsClient.NewListByKustoPoolPager. type KustoPoolAttachedDatabaseConfigurationsClientListByKustoPoolResponse struct { AttachedDatabaseConfigurationListResult } @@ -297,7 +299,7 @@ type KustoPoolDataConnectionsClientCheckNameAvailabilityResponse struct { CheckNameResult } -// KustoPoolDataConnectionsClientCreateOrUpdateResponse contains the response from method KustoPoolDataConnectionsClient.CreateOrUpdate. +// KustoPoolDataConnectionsClientCreateOrUpdateResponse contains the response from method KustoPoolDataConnectionsClient.BeginCreateOrUpdate. type KustoPoolDataConnectionsClientCreateOrUpdateResponse struct { DataConnectionClassification } @@ -312,12 +314,12 @@ func (k *KustoPoolDataConnectionsClientCreateOrUpdateResponse) UnmarshalJSON(dat return nil } -// KustoPoolDataConnectionsClientDataConnectionValidationResponse contains the response from method KustoPoolDataConnectionsClient.DataConnectionValidation. +// KustoPoolDataConnectionsClientDataConnectionValidationResponse contains the response from method KustoPoolDataConnectionsClient.BeginDataConnectionValidation. type KustoPoolDataConnectionsClientDataConnectionValidationResponse struct { DataConnectionValidationListResult } -// KustoPoolDataConnectionsClientDeleteResponse contains the response from method KustoPoolDataConnectionsClient.Delete. +// KustoPoolDataConnectionsClientDeleteResponse contains the response from method KustoPoolDataConnectionsClient.BeginDelete. type KustoPoolDataConnectionsClientDeleteResponse struct { // placeholder for future response values } @@ -337,12 +339,12 @@ func (k *KustoPoolDataConnectionsClientGetResponse) UnmarshalJSON(data []byte) e return nil } -// KustoPoolDataConnectionsClientListByDatabaseResponse contains the response from method KustoPoolDataConnectionsClient.ListByDatabase. +// KustoPoolDataConnectionsClientListByDatabaseResponse contains the response from method KustoPoolDataConnectionsClient.NewListByDatabasePager. type KustoPoolDataConnectionsClientListByDatabaseResponse struct { DataConnectionListResult } -// KustoPoolDataConnectionsClientUpdateResponse contains the response from method KustoPoolDataConnectionsClient.Update. +// KustoPoolDataConnectionsClientUpdateResponse contains the response from method KustoPoolDataConnectionsClient.BeginUpdate. type KustoPoolDataConnectionsClientUpdateResponse struct { DataConnectionClassification } @@ -362,12 +364,12 @@ type KustoPoolDatabasePrincipalAssignmentsClientCheckNameAvailabilityResponse st CheckNameResult } -// KustoPoolDatabasePrincipalAssignmentsClientCreateOrUpdateResponse contains the response from method KustoPoolDatabasePrincipalAssignmentsClient.CreateOrUpdate. +// KustoPoolDatabasePrincipalAssignmentsClientCreateOrUpdateResponse contains the response from method KustoPoolDatabasePrincipalAssignmentsClient.BeginCreateOrUpdate. type KustoPoolDatabasePrincipalAssignmentsClientCreateOrUpdateResponse struct { DatabasePrincipalAssignment } -// KustoPoolDatabasePrincipalAssignmentsClientDeleteResponse contains the response from method KustoPoolDatabasePrincipalAssignmentsClient.Delete. +// KustoPoolDatabasePrincipalAssignmentsClientDeleteResponse contains the response from method KustoPoolDatabasePrincipalAssignmentsClient.BeginDelete. type KustoPoolDatabasePrincipalAssignmentsClientDeleteResponse struct { // placeholder for future response values } @@ -377,12 +379,12 @@ type KustoPoolDatabasePrincipalAssignmentsClientGetResponse struct { DatabasePrincipalAssignment } -// KustoPoolDatabasePrincipalAssignmentsClientListResponse contains the response from method KustoPoolDatabasePrincipalAssignmentsClient.List. +// KustoPoolDatabasePrincipalAssignmentsClientListResponse contains the response from method KustoPoolDatabasePrincipalAssignmentsClient.NewListPager. type KustoPoolDatabasePrincipalAssignmentsClientListResponse struct { DatabasePrincipalAssignmentListResult } -// KustoPoolDatabasesClientCreateOrUpdateResponse contains the response from method KustoPoolDatabasesClient.CreateOrUpdate. +// KustoPoolDatabasesClientCreateOrUpdateResponse contains the response from method KustoPoolDatabasesClient.BeginCreateOrUpdate. type KustoPoolDatabasesClientCreateOrUpdateResponse struct { DatabaseClassification } @@ -397,7 +399,7 @@ func (k *KustoPoolDatabasesClientCreateOrUpdateResponse) UnmarshalJSON(data []by return nil } -// KustoPoolDatabasesClientDeleteResponse contains the response from method KustoPoolDatabasesClient.Delete. +// KustoPoolDatabasesClientDeleteResponse contains the response from method KustoPoolDatabasesClient.BeginDelete. type KustoPoolDatabasesClientDeleteResponse struct { // placeholder for future response values } @@ -417,12 +419,12 @@ func (k *KustoPoolDatabasesClientGetResponse) UnmarshalJSON(data []byte) error { return nil } -// KustoPoolDatabasesClientListByKustoPoolResponse contains the response from method KustoPoolDatabasesClient.ListByKustoPool. +// KustoPoolDatabasesClientListByKustoPoolResponse contains the response from method KustoPoolDatabasesClient.NewListByKustoPoolPager. type KustoPoolDatabasesClientListByKustoPoolResponse struct { DatabaseListResult } -// KustoPoolDatabasesClientUpdateResponse contains the response from method KustoPoolDatabasesClient.Update. +// KustoPoolDatabasesClientUpdateResponse contains the response from method KustoPoolDatabasesClient.BeginUpdate. type KustoPoolDatabasesClientUpdateResponse struct { DatabaseClassification } @@ -442,12 +444,12 @@ type KustoPoolPrincipalAssignmentsClientCheckNameAvailabilityResponse struct { CheckNameResult } -// KustoPoolPrincipalAssignmentsClientCreateOrUpdateResponse contains the response from method KustoPoolPrincipalAssignmentsClient.CreateOrUpdate. +// KustoPoolPrincipalAssignmentsClientCreateOrUpdateResponse contains the response from method KustoPoolPrincipalAssignmentsClient.BeginCreateOrUpdate. type KustoPoolPrincipalAssignmentsClientCreateOrUpdateResponse struct { ClusterPrincipalAssignment } -// KustoPoolPrincipalAssignmentsClientDeleteResponse contains the response from method KustoPoolPrincipalAssignmentsClient.Delete. +// KustoPoolPrincipalAssignmentsClientDeleteResponse contains the response from method KustoPoolPrincipalAssignmentsClient.BeginDelete. type KustoPoolPrincipalAssignmentsClientDeleteResponse struct { // placeholder for future response values } @@ -457,12 +459,17 @@ type KustoPoolPrincipalAssignmentsClientGetResponse struct { ClusterPrincipalAssignment } -// KustoPoolPrincipalAssignmentsClientListResponse contains the response from method KustoPoolPrincipalAssignmentsClient.List. +// KustoPoolPrincipalAssignmentsClientListResponse contains the response from method KustoPoolPrincipalAssignmentsClient.NewListPager. type KustoPoolPrincipalAssignmentsClientListResponse struct { ClusterPrincipalAssignmentListResult } -// KustoPoolsClientAddLanguageExtensionsResponse contains the response from method KustoPoolsClient.AddLanguageExtensions. +// KustoPoolPrivateLinkResourcesClientListResponse contains the response from method KustoPoolPrivateLinkResourcesClient.NewListPager. +type KustoPoolPrivateLinkResourcesClientListResponse struct { + PrivateLinkResources +} + +// KustoPoolsClientAddLanguageExtensionsResponse contains the response from method KustoPoolsClient.BeginAddLanguageExtensions. type KustoPoolsClientAddLanguageExtensionsResponse struct { // placeholder for future response values } @@ -472,17 +479,17 @@ type KustoPoolsClientCheckNameAvailabilityResponse struct { CheckNameResult } -// KustoPoolsClientCreateOrUpdateResponse contains the response from method KustoPoolsClient.CreateOrUpdate. +// KustoPoolsClientCreateOrUpdateResponse contains the response from method KustoPoolsClient.BeginCreateOrUpdate. type KustoPoolsClientCreateOrUpdateResponse struct { KustoPool } -// KustoPoolsClientDeleteResponse contains the response from method KustoPoolsClient.Delete. +// KustoPoolsClientDeleteResponse contains the response from method KustoPoolsClient.BeginDelete. type KustoPoolsClientDeleteResponse struct { // placeholder for future response values } -// KustoPoolsClientDetachFollowerDatabasesResponse contains the response from method KustoPoolsClient.DetachFollowerDatabases. +// KustoPoolsClientDetachFollowerDatabasesResponse contains the response from method KustoPoolsClient.BeginDetachFollowerDatabases. type KustoPoolsClientDetachFollowerDatabasesResponse struct { // placeholder for future response values } @@ -497,47 +504,47 @@ type KustoPoolsClientListByWorkspaceResponse struct { KustoPoolListResult } -// KustoPoolsClientListFollowerDatabasesResponse contains the response from method KustoPoolsClient.ListFollowerDatabases. +// KustoPoolsClientListFollowerDatabasesResponse contains the response from method KustoPoolsClient.NewListFollowerDatabasesPager. type KustoPoolsClientListFollowerDatabasesResponse struct { FollowerDatabaseListResult } -// KustoPoolsClientListLanguageExtensionsResponse contains the response from method KustoPoolsClient.ListLanguageExtensions. +// KustoPoolsClientListLanguageExtensionsResponse contains the response from method KustoPoolsClient.NewListLanguageExtensionsPager. type KustoPoolsClientListLanguageExtensionsResponse struct { LanguageExtensionsList } -// KustoPoolsClientListSKUsByResourceResponse contains the response from method KustoPoolsClient.ListSKUsByResource. +// KustoPoolsClientListSKUsByResourceResponse contains the response from method KustoPoolsClient.NewListSKUsByResourcePager. type KustoPoolsClientListSKUsByResourceResponse struct { ListResourceSKUsResult } -// KustoPoolsClientListSKUsResponse contains the response from method KustoPoolsClient.ListSKUs. +// KustoPoolsClientListSKUsResponse contains the response from method KustoPoolsClient.NewListSKUsPager. type KustoPoolsClientListSKUsResponse struct { SKUDescriptionList } -// KustoPoolsClientRemoveLanguageExtensionsResponse contains the response from method KustoPoolsClient.RemoveLanguageExtensions. +// KustoPoolsClientRemoveLanguageExtensionsResponse contains the response from method KustoPoolsClient.BeginRemoveLanguageExtensions. type KustoPoolsClientRemoveLanguageExtensionsResponse struct { // placeholder for future response values } -// KustoPoolsClientStartResponse contains the response from method KustoPoolsClient.Start. +// KustoPoolsClientStartResponse contains the response from method KustoPoolsClient.BeginStart. type KustoPoolsClientStartResponse struct { // placeholder for future response values } -// KustoPoolsClientStopResponse contains the response from method KustoPoolsClient.Stop. +// KustoPoolsClientStopResponse contains the response from method KustoPoolsClient.BeginStop. type KustoPoolsClientStopResponse struct { // placeholder for future response values } -// KustoPoolsClientUpdateResponse contains the response from method KustoPoolsClient.Update. +// KustoPoolsClientUpdateResponse contains the response from method KustoPoolsClient.BeginUpdate. type KustoPoolsClientUpdateResponse struct { KustoPool } -// LibrariesClientListByWorkspaceResponse contains the response from method LibrariesClient.ListByWorkspace. +// LibrariesClientListByWorkspaceResponse contains the response from method LibrariesClient.NewListByWorkspacePager. type LibrariesClientListByWorkspaceResponse struct { LibraryListResponse } @@ -568,12 +575,12 @@ type OperationsClientListResponse struct { AvailableRpOperationArray []*AvailableRpOperation } -// PrivateEndpointConnectionsClientCreateResponse contains the response from method PrivateEndpointConnectionsClient.Create. +// PrivateEndpointConnectionsClientCreateResponse contains the response from method PrivateEndpointConnectionsClient.BeginCreate. type PrivateEndpointConnectionsClientCreateResponse struct { PrivateEndpointConnection } -// PrivateEndpointConnectionsClientDeleteResponse contains the response from method PrivateEndpointConnectionsClient.Delete. +// PrivateEndpointConnectionsClientDeleteResponse contains the response from method PrivateEndpointConnectionsClient.BeginDelete. type PrivateEndpointConnectionsClientDeleteResponse struct { OperationResource } @@ -583,7 +590,7 @@ type PrivateEndpointConnectionsClientGetResponse struct { PrivateEndpointConnection } -// PrivateEndpointConnectionsClientListResponse contains the response from method PrivateEndpointConnectionsClient.List. +// PrivateEndpointConnectionsClientListResponse contains the response from method PrivateEndpointConnectionsClient.NewListPager. type PrivateEndpointConnectionsClientListResponse struct { PrivateEndpointConnectionList } @@ -593,7 +600,7 @@ type PrivateEndpointConnectionsPrivateLinkHubClientGetResponse struct { PrivateEndpointConnectionForPrivateLinkHub } -// PrivateEndpointConnectionsPrivateLinkHubClientListResponse contains the response from method PrivateEndpointConnectionsPrivateLinkHubClient.List. +// PrivateEndpointConnectionsPrivateLinkHubClientListResponse contains the response from method PrivateEndpointConnectionsPrivateLinkHubClient.NewListPager. type PrivateEndpointConnectionsPrivateLinkHubClientListResponse struct { PrivateEndpointConnectionForPrivateLinkHubResourceCollectionResponse } @@ -603,7 +610,7 @@ type PrivateLinkHubPrivateLinkResourcesClientGetResponse struct { PrivateLinkResource } -// PrivateLinkHubPrivateLinkResourcesClientListResponse contains the response from method PrivateLinkHubPrivateLinkResourcesClient.List. +// PrivateLinkHubPrivateLinkResourcesClientListResponse contains the response from method PrivateLinkHubPrivateLinkResourcesClient.NewListPager. type PrivateLinkHubPrivateLinkResourcesClientListResponse struct { PrivateLinkResourceListResult } @@ -613,7 +620,7 @@ type PrivateLinkHubsClientCreateOrUpdateResponse struct { PrivateLinkHub } -// PrivateLinkHubsClientDeleteResponse contains the response from method PrivateLinkHubsClient.Delete. +// PrivateLinkHubsClientDeleteResponse contains the response from method PrivateLinkHubsClient.BeginDelete. type PrivateLinkHubsClientDeleteResponse struct { // placeholder for future response values } @@ -623,12 +630,12 @@ type PrivateLinkHubsClientGetResponse struct { PrivateLinkHub } -// PrivateLinkHubsClientListByResourceGroupResponse contains the response from method PrivateLinkHubsClient.ListByResourceGroup. +// PrivateLinkHubsClientListByResourceGroupResponse contains the response from method PrivateLinkHubsClient.NewListByResourceGroupPager. type PrivateLinkHubsClientListByResourceGroupResponse struct { PrivateLinkHubInfoListResult } -// PrivateLinkHubsClientListResponse contains the response from method PrivateLinkHubsClient.List. +// PrivateLinkHubsClientListResponse contains the response from method PrivateLinkHubsClient.NewListPager. type PrivateLinkHubsClientListResponse struct { PrivateLinkHubInfoListResult } @@ -643,7 +650,7 @@ type PrivateLinkResourcesClientGetResponse struct { PrivateLinkResource } -// PrivateLinkResourcesClientListResponse contains the response from method PrivateLinkResourcesClient.List. +// PrivateLinkResourcesClientListResponse contains the response from method PrivateLinkResourcesClient.NewListPager. type PrivateLinkResourcesClientListResponse struct { PrivateLinkResourceListResult } @@ -653,7 +660,7 @@ type RestorableDroppedSQLPoolsClientGetResponse struct { RestorableDroppedSQLPool } -// RestorableDroppedSQLPoolsClientListByWorkspaceResponse contains the response from method RestorableDroppedSQLPoolsClient.ListByWorkspace. +// RestorableDroppedSQLPoolsClientListByWorkspaceResponse contains the response from method RestorableDroppedSQLPoolsClient.NewListByWorkspacePager. type RestorableDroppedSQLPoolsClientListByWorkspaceResponse struct { RestorableDroppedSQLPoolListResult } @@ -668,7 +675,7 @@ type SQLPoolBlobAuditingPoliciesClientGetResponse struct { SQLPoolBlobAuditingPolicy } -// SQLPoolBlobAuditingPoliciesClientListBySQLPoolResponse contains the response from method SQLPoolBlobAuditingPoliciesClient.ListBySQLPool. +// SQLPoolBlobAuditingPoliciesClientListBySQLPoolResponse contains the response from method SQLPoolBlobAuditingPoliciesClient.NewListBySQLPoolPager. type SQLPoolBlobAuditingPoliciesClientListBySQLPoolResponse struct { SQLPoolBlobAuditingPolicyListResult } @@ -698,7 +705,7 @@ type SQLPoolGeoBackupPoliciesClientGetResponse struct { GeoBackupPolicy } -// SQLPoolGeoBackupPoliciesClientListResponse contains the response from method SQLPoolGeoBackupPoliciesClient.List. +// SQLPoolGeoBackupPoliciesClientListResponse contains the response from method SQLPoolGeoBackupPoliciesClient.NewListPager. type SQLPoolGeoBackupPoliciesClientListResponse struct { GeoBackupPolicyListResult } @@ -728,13 +735,12 @@ type SQLPoolMetadataSyncConfigsClientGetResponse struct { MetadataSyncConfig } -// SQLPoolOperationResultsClientGetLocationHeaderResultResponse contains the response from method SQLPoolOperationResultsClient.GetLocationHeaderResult. +// SQLPoolOperationResultsClientGetLocationHeaderResultResponse contains the response from method SQLPoolOperationResultsClient.BeginGetLocationHeaderResult. type SQLPoolOperationResultsClientGetLocationHeaderResultResponse struct { - // Anything - Interface interface{} + SQLPool } -// SQLPoolOperationsClientListResponse contains the response from method SQLPoolOperationsClient.List. +// SQLPoolOperationsClientListResponse contains the response from method SQLPoolOperationsClient.NewListPager. type SQLPoolOperationsClientListResponse struct { SQLPoolBlobAuditingPolicySQLPoolOperationListResult } @@ -749,12 +755,12 @@ type SQLPoolReplicationLinksClientGetByNameResponse struct { ReplicationLink } -// SQLPoolReplicationLinksClientListResponse contains the response from method SQLPoolReplicationLinksClient.List. +// SQLPoolReplicationLinksClientListResponse contains the response from method SQLPoolReplicationLinksClient.NewListPager. type SQLPoolReplicationLinksClientListResponse struct { ReplicationLinkListResult } -// SQLPoolRestorePointsClientCreateResponse contains the response from method SQLPoolRestorePointsClient.Create. +// SQLPoolRestorePointsClientCreateResponse contains the response from method SQLPoolRestorePointsClient.BeginCreate. type SQLPoolRestorePointsClientCreateResponse struct { RestorePoint } @@ -769,7 +775,7 @@ type SQLPoolRestorePointsClientGetResponse struct { RestorePoint } -// SQLPoolRestorePointsClientListResponse contains the response from method SQLPoolRestorePointsClient.List. +// SQLPoolRestorePointsClientListResponse contains the response from method SQLPoolRestorePointsClient.NewListPager. type SQLPoolRestorePointsClientListResponse struct { RestorePointListResult } @@ -779,7 +785,7 @@ type SQLPoolSchemasClientGetResponse struct { SQLPoolSchema } -// SQLPoolSchemasClientListResponse contains the response from method SQLPoolSchemasClient.List. +// SQLPoolSchemasClientListResponse contains the response from method SQLPoolSchemasClient.NewListPager. type SQLPoolSchemasClientListResponse struct { SQLPoolSchemaListResult } @@ -794,7 +800,7 @@ type SQLPoolSecurityAlertPoliciesClientGetResponse struct { SQLPoolSecurityAlertPolicy } -// SQLPoolSecurityAlertPoliciesClientListResponse contains the response from method SQLPoolSecurityAlertPoliciesClient.List. +// SQLPoolSecurityAlertPoliciesClientListResponse contains the response from method SQLPoolSecurityAlertPoliciesClient.NewListPager. type SQLPoolSecurityAlertPoliciesClientListResponse struct { ListSQLPoolSecurityAlertPolicies } @@ -824,12 +830,12 @@ type SQLPoolSensitivityLabelsClientGetResponse struct { SensitivityLabel } -// SQLPoolSensitivityLabelsClientListCurrentResponse contains the response from method SQLPoolSensitivityLabelsClient.ListCurrent. +// SQLPoolSensitivityLabelsClientListCurrentResponse contains the response from method SQLPoolSensitivityLabelsClient.NewListCurrentPager. type SQLPoolSensitivityLabelsClientListCurrentResponse struct { SensitivityLabelListResult } -// SQLPoolSensitivityLabelsClientListRecommendedResponse contains the response from method SQLPoolSensitivityLabelsClient.ListRecommended. +// SQLPoolSensitivityLabelsClientListRecommendedResponse contains the response from method SQLPoolSensitivityLabelsClient.NewListRecommendedPager. type SQLPoolSensitivityLabelsClientListRecommendedResponse struct { SensitivityLabelListResult } @@ -839,7 +845,7 @@ type SQLPoolSensitivityLabelsClientUpdateResponse struct { // placeholder for future response values } -// SQLPoolTableColumnsClientListByTableNameResponse contains the response from method SQLPoolTableColumnsClient.ListByTableName. +// SQLPoolTableColumnsClientListByTableNameResponse contains the response from method SQLPoolTableColumnsClient.NewListByTableNamePager. type SQLPoolTableColumnsClientListByTableNameResponse struct { SQLPoolColumnListResult } @@ -849,7 +855,7 @@ type SQLPoolTablesClientGetResponse struct { SQLPoolTable } -// SQLPoolTablesClientListBySchemaResponse contains the response from method SQLPoolTablesClient.ListBySchema. +// SQLPoolTablesClientListBySchemaResponse contains the response from method SQLPoolTablesClient.NewListBySchemaPager. type SQLPoolTablesClientListBySchemaResponse struct { SQLPoolTableListResult } @@ -864,12 +870,12 @@ type SQLPoolTransparentDataEncryptionsClientGetResponse struct { TransparentDataEncryption } -// SQLPoolTransparentDataEncryptionsClientListResponse contains the response from method SQLPoolTransparentDataEncryptionsClient.List. +// SQLPoolTransparentDataEncryptionsClientListResponse contains the response from method SQLPoolTransparentDataEncryptionsClient.NewListPager. type SQLPoolTransparentDataEncryptionsClientListResponse struct { TransparentDataEncryptionListResult } -// SQLPoolUsagesClientListResponse contains the response from method SQLPoolUsagesClient.List. +// SQLPoolUsagesClientListResponse contains the response from method SQLPoolUsagesClient.NewListPager. type SQLPoolUsagesClientListResponse struct { SQLPoolUsageListResult } @@ -899,12 +905,12 @@ type SQLPoolVulnerabilityAssessmentScansClientGetResponse struct { VulnerabilityAssessmentScanRecord } -// SQLPoolVulnerabilityAssessmentScansClientInitiateScanResponse contains the response from method SQLPoolVulnerabilityAssessmentScansClient.InitiateScan. +// SQLPoolVulnerabilityAssessmentScansClientInitiateScanResponse contains the response from method SQLPoolVulnerabilityAssessmentScansClient.BeginInitiateScan. type SQLPoolVulnerabilityAssessmentScansClientInitiateScanResponse struct { // placeholder for future response values } -// SQLPoolVulnerabilityAssessmentScansClientListResponse contains the response from method SQLPoolVulnerabilityAssessmentScansClient.List. +// SQLPoolVulnerabilityAssessmentScansClientListResponse contains the response from method SQLPoolVulnerabilityAssessmentScansClient.NewListPager. type SQLPoolVulnerabilityAssessmentScansClientListResponse struct { VulnerabilityAssessmentScanRecordListResult } @@ -924,17 +930,17 @@ type SQLPoolVulnerabilityAssessmentsClientGetResponse struct { SQLPoolVulnerabilityAssessment } -// SQLPoolVulnerabilityAssessmentsClientListResponse contains the response from method SQLPoolVulnerabilityAssessmentsClient.List. +// SQLPoolVulnerabilityAssessmentsClientListResponse contains the response from method SQLPoolVulnerabilityAssessmentsClient.NewListPager. type SQLPoolVulnerabilityAssessmentsClientListResponse struct { SQLPoolVulnerabilityAssessmentListResult } -// SQLPoolWorkloadClassifierClientCreateOrUpdateResponse contains the response from method SQLPoolWorkloadClassifierClient.CreateOrUpdate. +// SQLPoolWorkloadClassifierClientCreateOrUpdateResponse contains the response from method SQLPoolWorkloadClassifierClient.BeginCreateOrUpdate. type SQLPoolWorkloadClassifierClientCreateOrUpdateResponse struct { WorkloadClassifier } -// SQLPoolWorkloadClassifierClientDeleteResponse contains the response from method SQLPoolWorkloadClassifierClient.Delete. +// SQLPoolWorkloadClassifierClientDeleteResponse contains the response from method SQLPoolWorkloadClassifierClient.BeginDelete. type SQLPoolWorkloadClassifierClientDeleteResponse struct { // placeholder for future response values } @@ -944,17 +950,17 @@ type SQLPoolWorkloadClassifierClientGetResponse struct { WorkloadClassifier } -// SQLPoolWorkloadClassifierClientListResponse contains the response from method SQLPoolWorkloadClassifierClient.List. +// SQLPoolWorkloadClassifierClientListResponse contains the response from method SQLPoolWorkloadClassifierClient.NewListPager. type SQLPoolWorkloadClassifierClientListResponse struct { WorkloadClassifierListResult } -// SQLPoolWorkloadGroupClientCreateOrUpdateResponse contains the response from method SQLPoolWorkloadGroupClient.CreateOrUpdate. +// SQLPoolWorkloadGroupClientCreateOrUpdateResponse contains the response from method SQLPoolWorkloadGroupClient.BeginCreateOrUpdate. type SQLPoolWorkloadGroupClientCreateOrUpdateResponse struct { WorkloadGroup } -// SQLPoolWorkloadGroupClientDeleteResponse contains the response from method SQLPoolWorkloadGroupClient.Delete. +// SQLPoolWorkloadGroupClientDeleteResponse contains the response from method SQLPoolWorkloadGroupClient.BeginDelete. type SQLPoolWorkloadGroupClientDeleteResponse struct { // placeholder for future response values } @@ -964,25 +970,19 @@ type SQLPoolWorkloadGroupClientGetResponse struct { WorkloadGroup } -// SQLPoolWorkloadGroupClientListResponse contains the response from method SQLPoolWorkloadGroupClient.List. +// SQLPoolWorkloadGroupClientListResponse contains the response from method SQLPoolWorkloadGroupClient.NewListPager. type SQLPoolWorkloadGroupClientListResponse struct { WorkloadGroupListResult } -// SQLPoolsClientCreateResponse contains the response from method SQLPoolsClient.Create. +// SQLPoolsClientCreateResponse contains the response from method SQLPoolsClient.BeginCreate. type SQLPoolsClientCreateResponse struct { SQLPool } -// SQLPoolsClientDeleteResponse contains the response from method SQLPoolsClient.Delete. +// SQLPoolsClientDeleteResponse contains the response from method SQLPoolsClient.BeginDelete. type SQLPoolsClientDeleteResponse struct { - // Anything - Interface interface{} -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type SQLPoolsClientDeleteResponse. -func (s *SQLPoolsClientDeleteResponse) UnmarshalJSON(data []byte) error { - return json.Unmarshal(data, &s.Interface) + SQLPool } // SQLPoolsClientGetResponse contains the response from method SQLPoolsClient.Get. @@ -990,20 +990,14 @@ type SQLPoolsClientGetResponse struct { SQLPool } -// SQLPoolsClientListByWorkspaceResponse contains the response from method SQLPoolsClient.ListByWorkspace. +// SQLPoolsClientListByWorkspaceResponse contains the response from method SQLPoolsClient.NewListByWorkspacePager. type SQLPoolsClientListByWorkspaceResponse struct { SQLPoolInfoListResult } -// SQLPoolsClientPauseResponse contains the response from method SQLPoolsClient.Pause. +// SQLPoolsClientPauseResponse contains the response from method SQLPoolsClient.BeginPause. type SQLPoolsClientPauseResponse struct { - // Anything - Interface interface{} -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type SQLPoolsClientPauseResponse. -func (s *SQLPoolsClientPauseResponse) UnmarshalJSON(data []byte) error { - return json.Unmarshal(data, &s.Interface) + SQLPool } // SQLPoolsClientRenameResponse contains the response from method SQLPoolsClient.Rename. @@ -1011,18 +1005,12 @@ type SQLPoolsClientRenameResponse struct { // placeholder for future response values } -// SQLPoolsClientResumeResponse contains the response from method SQLPoolsClient.Resume. +// SQLPoolsClientResumeResponse contains the response from method SQLPoolsClient.BeginResume. type SQLPoolsClientResumeResponse struct { - // Anything - Interface interface{} -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type SQLPoolsClientResumeResponse. -func (s *SQLPoolsClientResumeResponse) UnmarshalJSON(data []byte) error { - return json.Unmarshal(data, &s.Interface) + SQLPool } -// SQLPoolsClientUpdateResponse contains the response from method SQLPoolsClient.Update. +// SQLPoolsClientUpdateResponse contains the response from method SQLPoolsClient.BeginUpdate. type SQLPoolsClientUpdateResponse struct { SQLPool } @@ -1032,17 +1020,17 @@ type SparkConfigurationClientGetResponse struct { SparkConfigurationResource } -// SparkConfigurationsClientListByWorkspaceResponse contains the response from method SparkConfigurationsClient.ListByWorkspace. +// SparkConfigurationsClientListByWorkspaceResponse contains the response from method SparkConfigurationsClient.NewListByWorkspacePager. type SparkConfigurationsClientListByWorkspaceResponse struct { SparkConfigurationListResponse } -// WorkspaceAADAdminsClientCreateOrUpdateResponse contains the response from method WorkspaceAADAdminsClient.CreateOrUpdate. +// WorkspaceAADAdminsClientCreateOrUpdateResponse contains the response from method WorkspaceAADAdminsClient.BeginCreateOrUpdate. type WorkspaceAADAdminsClientCreateOrUpdateResponse struct { WorkspaceAADAdminInfo } -// WorkspaceAADAdminsClientDeleteResponse contains the response from method WorkspaceAADAdminsClient.Delete. +// WorkspaceAADAdminsClientDeleteResponse contains the response from method WorkspaceAADAdminsClient.BeginDelete. type WorkspaceAADAdminsClientDeleteResponse struct { // placeholder for future response values } @@ -1052,7 +1040,7 @@ type WorkspaceAADAdminsClientGetResponse struct { WorkspaceAADAdminInfo } -// WorkspaceManagedIdentitySQLControlSettingsClientCreateOrUpdateResponse contains the response from method WorkspaceManagedIdentitySQLControlSettingsClient.CreateOrUpdate. +// WorkspaceManagedIdentitySQLControlSettingsClientCreateOrUpdateResponse contains the response from method WorkspaceManagedIdentitySQLControlSettingsClient.BeginCreateOrUpdate. type WorkspaceManagedIdentitySQLControlSettingsClientCreateOrUpdateResponse struct { ManagedIdentitySQLControlSettingsModel } @@ -1062,7 +1050,7 @@ type WorkspaceManagedIdentitySQLControlSettingsClientGetResponse struct { ManagedIdentitySQLControlSettingsModel } -// WorkspaceManagedSQLServerBlobAuditingPoliciesClientCreateOrUpdateResponse contains the response from method WorkspaceManagedSQLServerBlobAuditingPoliciesClient.CreateOrUpdate. +// WorkspaceManagedSQLServerBlobAuditingPoliciesClientCreateOrUpdateResponse contains the response from method WorkspaceManagedSQLServerBlobAuditingPoliciesClient.BeginCreateOrUpdate. type WorkspaceManagedSQLServerBlobAuditingPoliciesClientCreateOrUpdateResponse struct { ServerBlobAuditingPolicy } @@ -1072,7 +1060,7 @@ type WorkspaceManagedSQLServerBlobAuditingPoliciesClientGetResponse struct { ServerBlobAuditingPolicy } -// WorkspaceManagedSQLServerBlobAuditingPoliciesClientListByWorkspaceResponse contains the response from method WorkspaceManagedSQLServerBlobAuditingPoliciesClient.ListByWorkspace. +// WorkspaceManagedSQLServerBlobAuditingPoliciesClientListByWorkspaceResponse contains the response from method WorkspaceManagedSQLServerBlobAuditingPoliciesClient.NewListByWorkspacePager. type WorkspaceManagedSQLServerBlobAuditingPoliciesClientListByWorkspaceResponse struct { ServerBlobAuditingPolicyListResult } @@ -1082,17 +1070,17 @@ type WorkspaceManagedSQLServerDedicatedSQLMinimalTLSSettingsClientGetResponse st DedicatedSQLminimalTLSSettings } -// WorkspaceManagedSQLServerDedicatedSQLMinimalTLSSettingsClientListResponse contains the response from method WorkspaceManagedSQLServerDedicatedSQLMinimalTLSSettingsClient.List. +// WorkspaceManagedSQLServerDedicatedSQLMinimalTLSSettingsClientListResponse contains the response from method WorkspaceManagedSQLServerDedicatedSQLMinimalTLSSettingsClient.NewListPager. type WorkspaceManagedSQLServerDedicatedSQLMinimalTLSSettingsClientListResponse struct { DedicatedSQLminimalTLSSettingsListResult } -// WorkspaceManagedSQLServerDedicatedSQLMinimalTLSSettingsClientUpdateResponse contains the response from method WorkspaceManagedSQLServerDedicatedSQLMinimalTLSSettingsClient.Update. +// WorkspaceManagedSQLServerDedicatedSQLMinimalTLSSettingsClientUpdateResponse contains the response from method WorkspaceManagedSQLServerDedicatedSQLMinimalTLSSettingsClient.BeginUpdate. type WorkspaceManagedSQLServerDedicatedSQLMinimalTLSSettingsClientUpdateResponse struct { DedicatedSQLminimalTLSSettings } -// WorkspaceManagedSQLServerEncryptionProtectorClientCreateOrUpdateResponse contains the response from method WorkspaceManagedSQLServerEncryptionProtectorClient.CreateOrUpdate. +// WorkspaceManagedSQLServerEncryptionProtectorClientCreateOrUpdateResponse contains the response from method WorkspaceManagedSQLServerEncryptionProtectorClient.BeginCreateOrUpdate. type WorkspaceManagedSQLServerEncryptionProtectorClientCreateOrUpdateResponse struct { EncryptionProtector } @@ -1102,17 +1090,17 @@ type WorkspaceManagedSQLServerEncryptionProtectorClientGetResponse struct { EncryptionProtector } -// WorkspaceManagedSQLServerEncryptionProtectorClientListResponse contains the response from method WorkspaceManagedSQLServerEncryptionProtectorClient.List. +// WorkspaceManagedSQLServerEncryptionProtectorClientListResponse contains the response from method WorkspaceManagedSQLServerEncryptionProtectorClient.NewListPager. type WorkspaceManagedSQLServerEncryptionProtectorClientListResponse struct { EncryptionProtectorListResult } -// WorkspaceManagedSQLServerEncryptionProtectorClientRevalidateResponse contains the response from method WorkspaceManagedSQLServerEncryptionProtectorClient.Revalidate. +// WorkspaceManagedSQLServerEncryptionProtectorClientRevalidateResponse contains the response from method WorkspaceManagedSQLServerEncryptionProtectorClient.BeginRevalidate. type WorkspaceManagedSQLServerEncryptionProtectorClientRevalidateResponse struct { // placeholder for future response values } -// WorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClientCreateOrUpdateResponse contains the response from method WorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClient.CreateOrUpdate. +// WorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClientCreateOrUpdateResponse contains the response from method WorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClient.BeginCreateOrUpdate. type WorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClientCreateOrUpdateResponse struct { ExtendedServerBlobAuditingPolicy } @@ -1122,7 +1110,7 @@ type WorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClientGetResponse stru ExtendedServerBlobAuditingPolicy } -// WorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClientListByWorkspaceResponse contains the response from method WorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClient.ListByWorkspace. +// WorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClientListByWorkspaceResponse contains the response from method WorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClient.NewListByWorkspacePager. type WorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClientListByWorkspaceResponse struct { ExtendedServerBlobAuditingPolicyListResult } @@ -1132,12 +1120,12 @@ type WorkspaceManagedSQLServerRecoverableSQLPoolsClientGetResponse struct { RecoverableSQLPool } -// WorkspaceManagedSQLServerRecoverableSQLPoolsClientListResponse contains the response from method WorkspaceManagedSQLServerRecoverableSQLPoolsClient.List. +// WorkspaceManagedSQLServerRecoverableSQLPoolsClientListResponse contains the response from method WorkspaceManagedSQLServerRecoverableSQLPoolsClient.NewListPager. type WorkspaceManagedSQLServerRecoverableSQLPoolsClientListResponse struct { RecoverableSQLPoolListResult } -// WorkspaceManagedSQLServerSecurityAlertPolicyClientCreateOrUpdateResponse contains the response from method WorkspaceManagedSQLServerSecurityAlertPolicyClient.CreateOrUpdate. +// WorkspaceManagedSQLServerSecurityAlertPolicyClientCreateOrUpdateResponse contains the response from method WorkspaceManagedSQLServerSecurityAlertPolicyClient.BeginCreateOrUpdate. type WorkspaceManagedSQLServerSecurityAlertPolicyClientCreateOrUpdateResponse struct { ServerSecurityAlertPolicy } @@ -1147,12 +1135,12 @@ type WorkspaceManagedSQLServerSecurityAlertPolicyClientGetResponse struct { ServerSecurityAlertPolicy } -// WorkspaceManagedSQLServerSecurityAlertPolicyClientListResponse contains the response from method WorkspaceManagedSQLServerSecurityAlertPolicyClient.List. +// WorkspaceManagedSQLServerSecurityAlertPolicyClientListResponse contains the response from method WorkspaceManagedSQLServerSecurityAlertPolicyClient.NewListPager. type WorkspaceManagedSQLServerSecurityAlertPolicyClientListResponse struct { ServerSecurityAlertPolicyListResult } -// WorkspaceManagedSQLServerUsagesClientListResponse contains the response from method WorkspaceManagedSQLServerUsagesClient.List. +// WorkspaceManagedSQLServerUsagesClientListResponse contains the response from method WorkspaceManagedSQLServerUsagesClient.NewListPager. type WorkspaceManagedSQLServerUsagesClientListResponse struct { ServerUsageListResult } @@ -1172,17 +1160,17 @@ type WorkspaceManagedSQLServerVulnerabilityAssessmentsClientGetResponse struct { ServerVulnerabilityAssessment } -// WorkspaceManagedSQLServerVulnerabilityAssessmentsClientListResponse contains the response from method WorkspaceManagedSQLServerVulnerabilityAssessmentsClient.List. +// WorkspaceManagedSQLServerVulnerabilityAssessmentsClientListResponse contains the response from method WorkspaceManagedSQLServerVulnerabilityAssessmentsClient.NewListPager. type WorkspaceManagedSQLServerVulnerabilityAssessmentsClientListResponse struct { ServerVulnerabilityAssessmentListResult } -// WorkspaceSQLAADAdminsClientCreateOrUpdateResponse contains the response from method WorkspaceSQLAADAdminsClient.CreateOrUpdate. +// WorkspaceSQLAADAdminsClientCreateOrUpdateResponse contains the response from method WorkspaceSQLAADAdminsClient.BeginCreateOrUpdate. type WorkspaceSQLAADAdminsClientCreateOrUpdateResponse struct { WorkspaceAADAdminInfo } -// WorkspaceSQLAADAdminsClientDeleteResponse contains the response from method WorkspaceSQLAADAdminsClient.Delete. +// WorkspaceSQLAADAdminsClientDeleteResponse contains the response from method WorkspaceSQLAADAdminsClient.BeginDelete. type WorkspaceSQLAADAdminsClientDeleteResponse struct { // placeholder for future response values } @@ -1192,20 +1180,14 @@ type WorkspaceSQLAADAdminsClientGetResponse struct { WorkspaceAADAdminInfo } -// WorkspacesClientCreateOrUpdateResponse contains the response from method WorkspacesClient.CreateOrUpdate. +// WorkspacesClientCreateOrUpdateResponse contains the response from method WorkspacesClient.BeginCreateOrUpdate. type WorkspacesClientCreateOrUpdateResponse struct { Workspace } -// WorkspacesClientDeleteResponse contains the response from method WorkspacesClient.Delete. +// WorkspacesClientDeleteResponse contains the response from method WorkspacesClient.BeginDelete. type WorkspacesClientDeleteResponse struct { - // Anything - Interface interface{} -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type WorkspacesClientDeleteResponse. -func (w *WorkspacesClientDeleteResponse) UnmarshalJSON(data []byte) error { - return json.Unmarshal(data, &w.Interface) + Workspace } // WorkspacesClientGetResponse contains the response from method WorkspacesClient.Get. @@ -1213,17 +1195,17 @@ type WorkspacesClientGetResponse struct { Workspace } -// WorkspacesClientListByResourceGroupResponse contains the response from method WorkspacesClient.ListByResourceGroup. +// WorkspacesClientListByResourceGroupResponse contains the response from method WorkspacesClient.NewListByResourceGroupPager. type WorkspacesClientListByResourceGroupResponse struct { WorkspaceInfoListResult } -// WorkspacesClientListResponse contains the response from method WorkspacesClient.List. +// WorkspacesClientListResponse contains the response from method WorkspacesClient.NewListPager. type WorkspacesClientListResponse struct { WorkspaceInfoListResult } -// WorkspacesClientUpdateResponse contains the response from method WorkspacesClient.Update. +// WorkspacesClientUpdateResponse contains the response from method WorkspacesClient.BeginUpdate. type WorkspacesClientUpdateResponse struct { Workspace } diff --git a/sdk/resourcemanager/synapse/armsynapse/zz_generated_restorabledroppedsqlpools_client.go b/sdk/resourcemanager/synapse/armsynapse/restorabledroppedsqlpools_client.go similarity index 89% rename from sdk/resourcemanager/synapse/armsynapse/zz_generated_restorabledroppedsqlpools_client.go rename to sdk/resourcemanager/synapse/armsynapse/restorabledroppedsqlpools_client.go index 1e32ed0b4357..11ab498ba83f 100644 --- a/sdk/resourcemanager/synapse/armsynapse/zz_generated_restorabledroppedsqlpools_client.go +++ b/sdk/resourcemanager/synapse/armsynapse/restorabledroppedsqlpools_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse @@ -31,9 +32,9 @@ type RestorableDroppedSQLPoolsClient struct { } // NewRestorableDroppedSQLPoolsClient creates a new instance of RestorableDroppedSQLPoolsClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewRestorableDroppedSQLPoolsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*RestorableDroppedSQLPoolsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,12 +57,13 @@ func NewRestorableDroppedSQLPoolsClient(subscriptionID string, credential azcore // Get - Gets a deleted sql pool that can be restored // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// restorableDroppedSQLPoolID - The id of the deleted Sql Pool in the form of sqlPoolName,deletionTimeInFileTimeFormat -// options - RestorableDroppedSQLPoolsClientGetOptions contains the optional parameters for the RestorableDroppedSQLPoolsClient.Get -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - restorableDroppedSQLPoolID - The id of the deleted Sql Pool in the form of sqlPoolName,deletionTimeInFileTimeFormat +// - options - RestorableDroppedSQLPoolsClientGetOptions contains the optional parameters for the RestorableDroppedSQLPoolsClient.Get +// method. func (client *RestorableDroppedSQLPoolsClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, restorableDroppedSQLPoolID string, options *RestorableDroppedSQLPoolsClientGetOptions) (RestorableDroppedSQLPoolsClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, workspaceName, restorableDroppedSQLPoolID, options) if err != nil { @@ -117,12 +119,12 @@ func (client *RestorableDroppedSQLPoolsClient) getHandleResponse(resp *http.Resp } // NewListByWorkspacePager - Gets a list of deleted Sql pools that can be restored -// If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// options - RestorableDroppedSQLPoolsClientListByWorkspaceOptions contains the optional parameters for the RestorableDroppedSQLPoolsClient.ListByWorkspace -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - options - RestorableDroppedSQLPoolsClientListByWorkspaceOptions contains the optional parameters for the RestorableDroppedSQLPoolsClient.NewListByWorkspacePager +// method. func (client *RestorableDroppedSQLPoolsClient) NewListByWorkspacePager(resourceGroupName string, workspaceName string, options *RestorableDroppedSQLPoolsClientListByWorkspaceOptions) *runtime.Pager[RestorableDroppedSQLPoolsClientListByWorkspaceResponse] { return runtime.NewPager(runtime.PagingHandler[RestorableDroppedSQLPoolsClientListByWorkspaceResponse]{ More: func(page RestorableDroppedSQLPoolsClientListByWorkspaceResponse) bool { diff --git a/sdk/resourcemanager/synapse/armsynapse/restorabledroppedsqlpools_client_example_test.go b/sdk/resourcemanager/synapse/armsynapse/restorabledroppedsqlpools_client_example_test.go new file mode 100644 index 000000000000..3b24c6d5e0d8 --- /dev/null +++ b/sdk/resourcemanager/synapse/armsynapse/restorabledroppedsqlpools_client_example_test.go @@ -0,0 +1,111 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armsynapse_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/RestorableDroppedSqlPoolGet.json +func ExampleRestorableDroppedSQLPoolsClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewRestorableDroppedSQLPoolsClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "restorabledroppeddatabasetest-1257", "restorabledroppeddatabasetest-2389", "restorabledroppeddatabasetest-7654,131403269876900000", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.RestorableDroppedSQLPool = armsynapse.RestorableDroppedSQLPool{ + // Name: to.Ptr("restorabledroppeddatabasetest-7654,131403269876900000"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/restorableDroppedSqlPools"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/restorabledroppeddatabasetest-1257/providers/Microsoft.Synapse/workspaces/restorabledroppeddatabasetest-2389/restorableDroppedSqlPools/restorabledroppeddatabasetest-7654,131403269876900000"), + // Location: to.Ptr("Japan East"), + // Properties: &armsynapse.RestorableDroppedSQLPoolProperties{ + // CreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-10T00:56:19.2Z"); return t}()), + // DatabaseName: to.Ptr("restorabledroppeddatabasetest-7654"), + // DeletionDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-05-27T02:49:47.69Z"); return t}()), + // EarliestRestoreDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-05-20T02:49:47.69Z"); return t}()), + // Edition: to.Ptr("Datawarehouse"), + // MaxSizeBytes: to.Ptr("2147483648"), + // ServiceLevelObjective: to.Ptr("DW100c"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/RestorableDroppedSqlpoolList.json +func ExampleRestorableDroppedSQLPoolsClient_NewListByWorkspacePager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewRestorableDroppedSQLPoolsClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListByWorkspacePager("restorabledroppeddatabasetest-1349", "restorabledroppeddatabasetest-1840", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.RestorableDroppedSQLPoolListResult = armsynapse.RestorableDroppedSQLPoolListResult{ + // Value: []*armsynapse.RestorableDroppedSQLPool{ + // { + // Name: to.Ptr("restorabledroppeddatabasetest-1345,131403269876900000"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/restorableDroppedSqlPools"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/restorabledroppeddatabasetest-1349/providers/Microsoft.Synapse/workspaces/restorabledroppeddatabasetest-1840/restorableDroppedSqlPools/restorabledroppeddatabasetest-1345,131403269876900000"), + // Location: to.Ptr("Japan East"), + // Properties: &armsynapse.RestorableDroppedSQLPoolProperties{ + // CreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-10T00:56:19.2Z"); return t}()), + // DatabaseName: to.Ptr("restorabledroppeddatabasetest-1345"), + // DeletionDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-05-27T02:49:47.69Z"); return t}()), + // EarliestRestoreDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-05-20T02:49:47.69Z"); return t}()), + // Edition: to.Ptr("Basic"), + // MaxSizeBytes: to.Ptr("2147483648"), + // ServiceLevelObjective: to.Ptr("Basic"), + // }, + // }, + // { + // Name: to.Ptr("restorabledroppeddatabasetest-2764,131403249684030000"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/restorableDroppedSqlPools"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/restorabledroppeddatabasetest-1349/providers/Microsoft.Synapse/workspaces/restorabledroppeddatabasetest-1840/restorableDroppedSqlPools/restorabledroppeddatabasetest-2764,131403249684030000"), + // Location: to.Ptr("Japan East"), + // Properties: &armsynapse.RestorableDroppedSQLPoolProperties{ + // CreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-05-10T00:56:19.2Z"); return t}()), + // DatabaseName: to.Ptr("restorabledroppeddatabasetest-2764"), + // DeletionDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-05-27T02:16:08.403Z"); return t}()), + // EarliestRestoreDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-21T02:49:47.69Z"); return t}()), + // Edition: to.Ptr("Standard"), + // MaxSizeBytes: to.Ptr("268435456000"), + // ServiceLevelObjective: to.Ptr("S0"), + // }, + // }}, + // } + } +} diff --git a/sdk/resourcemanager/synapse/armsynapse/zz_generated_sparkconfiguration_client.go b/sdk/resourcemanager/synapse/armsynapse/sparkconfiguration_client.go similarity index 89% rename from sdk/resourcemanager/synapse/armsynapse/zz_generated_sparkconfiguration_client.go rename to sdk/resourcemanager/synapse/armsynapse/sparkconfiguration_client.go index bfbc8912296b..9d139dc2f476 100644 --- a/sdk/resourcemanager/synapse/armsynapse/zz_generated_sparkconfiguration_client.go +++ b/sdk/resourcemanager/synapse/armsynapse/sparkconfiguration_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse @@ -31,9 +32,9 @@ type SparkConfigurationClient struct { } // NewSparkConfigurationClient creates a new instance of SparkConfigurationClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewSparkConfigurationClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SparkConfigurationClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,11 +57,12 @@ func NewSparkConfigurationClient(subscriptionID string, credential azcore.TokenC // Get - Get SparkConfiguration by name in a workspace. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// sparkConfigurationName - SparkConfiguration name -// workspaceName - The name of the workspace. -// options - SparkConfigurationClientGetOptions contains the optional parameters for the SparkConfigurationClient.Get method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - sparkConfigurationName - SparkConfiguration name +// - workspaceName - The name of the workspace. +// - options - SparkConfigurationClientGetOptions contains the optional parameters for the SparkConfigurationClient.Get method. func (client *SparkConfigurationClient) Get(ctx context.Context, resourceGroupName string, sparkConfigurationName string, workspaceName string, options *SparkConfigurationClientGetOptions) (SparkConfigurationClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, sparkConfigurationName, workspaceName, options) if err != nil { diff --git a/sdk/resourcemanager/synapse/armsynapse/sparkconfiguration_client_example_test.go b/sdk/resourcemanager/synapse/armsynapse/sparkconfiguration_client_example_test.go new file mode 100644 index 000000000000..4728f95414bb --- /dev/null +++ b/sdk/resourcemanager/synapse/armsynapse/sparkconfiguration_client_example_test.go @@ -0,0 +1,66 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armsynapse_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/SparkConfiguration_Get.json +func ExampleSparkConfigurationClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewSparkConfigurationClient("12345678-1234-1234-1234-12345678abc", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "exampleResourceGroup", "exampleSparkConfigurationName", "exampleWorkspace", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.SparkConfigurationResource = armsynapse.SparkConfigurationResource{ + // Name: to.Ptr("exampleSparkConfigurationName"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sparkconfigurations"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.Synapse/workspaces/exampleWorkspace/sparkconfigurations/exampleSparkConfigurationName"), + // Etag: to.Ptr("1500474f-0000-0200-0000-5cbe090d0000"), + // Properties: &armsynapse.SparkConfigurationInfo{ + // Description: to.Ptr("test sparkconfiguration description"), + // Annotations: []*string{ + // to.Ptr("testAnnotation1"), + // to.Ptr("testAnnotation2")}, + // ConfigMergeRule: map[string]*string{ + // "allowedNextOperations.spark.key1": to.Ptr("replace,delete"), + // "allowedNextOperations.spark.key2": to.Ptr("replace,delete,append"), + // "currentOperation.append.separator.spark.key1": to.Ptr("space"), + // "currentOperation.append.separator.spark.key2": to.Ptr("comma"), + // "currentOperation.spark.key1": to.Ptr("append"), + // "currentOperation.spark.key2": to.Ptr("append"), + // }, + // Configs: map[string]*string{ + // "prop1": to.Ptr("true"), + // "prop2": to.Ptr("true"), + // "prop3": to.Ptr("123"), + // }, + // Created: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1970-01-01T00:00:00Z"); return t}()), + // CreatedBy: to.Ptr("test@microsoft.com"), + // Notes: to.Ptr("testNotes"), + // }, + // } +} diff --git a/sdk/resourcemanager/synapse/armsynapse/zz_generated_sparkconfigurations_client.go b/sdk/resourcemanager/synapse/armsynapse/sparkconfigurations_client.go similarity index 90% rename from sdk/resourcemanager/synapse/armsynapse/zz_generated_sparkconfigurations_client.go rename to sdk/resourcemanager/synapse/armsynapse/sparkconfigurations_client.go index 723b06a3b82e..7389bbc0b3f0 100644 --- a/sdk/resourcemanager/synapse/armsynapse/zz_generated_sparkconfigurations_client.go +++ b/sdk/resourcemanager/synapse/armsynapse/sparkconfigurations_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse @@ -31,9 +32,9 @@ type SparkConfigurationsClient struct { } // NewSparkConfigurationsClient creates a new instance of SparkConfigurationsClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewSparkConfigurationsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SparkConfigurationsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -55,12 +56,12 @@ func NewSparkConfigurationsClient(subscriptionID string, credential azcore.Token } // NewListByWorkspacePager - List sparkConfigurations in a workspace. -// If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// options - SparkConfigurationsClientListByWorkspaceOptions contains the optional parameters for the SparkConfigurationsClient.ListByWorkspace -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - options - SparkConfigurationsClientListByWorkspaceOptions contains the optional parameters for the SparkConfigurationsClient.NewListByWorkspacePager +// method. func (client *SparkConfigurationsClient) NewListByWorkspacePager(resourceGroupName string, workspaceName string, options *SparkConfigurationsClientListByWorkspaceOptions) *runtime.Pager[SparkConfigurationsClientListByWorkspaceResponse] { return runtime.NewPager(runtime.PagingHandler[SparkConfigurationsClientListByWorkspaceResponse]{ More: func(page SparkConfigurationsClientListByWorkspaceResponse) bool { diff --git a/sdk/resourcemanager/synapse/armsynapse/sparkconfigurations_client_example_test.go b/sdk/resourcemanager/synapse/armsynapse/sparkconfigurations_client_example_test.go new file mode 100644 index 000000000000..d7d05aabfe24 --- /dev/null +++ b/sdk/resourcemanager/synapse/armsynapse/sparkconfigurations_client_example_test.go @@ -0,0 +1,102 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armsynapse_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/SparkConfigurations_ListByWorkspace.json +func ExampleSparkConfigurationsClient_NewListByWorkspacePager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewSparkConfigurationsClient("12345678-1234-1234-1234-12345678abc", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListByWorkspacePager("exampleResourceGroup", "exampleWorkspace", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.SparkConfigurationListResponse = armsynapse.SparkConfigurationListResponse{ + // Value: []*armsynapse.SparkConfigurationResource{ + // { + // Name: to.Ptr("exampleSparkConfigurationName1"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sparkconfigurations"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.Synapse/workspaces/exampleWorkspace/sparkconfigurations/exampleSparkConfigurationName"), + // Etag: to.Ptr("1500474f-0000-0200-0000-5cbe090d0000"), + // Properties: &armsynapse.SparkConfigurationInfo{ + // Description: to.Ptr("test sparkconfiguration description1"), + // Annotations: []*string{ + // to.Ptr("testAnnotation1"), + // to.Ptr("testAnnotation2")}, + // ConfigMergeRule: map[string]*string{ + // "allowedNextOperations.spark.key1": to.Ptr("replace,delete"), + // "allowedNextOperations.spark.key2": to.Ptr("replace,delete,append"), + // "currentOperation.append.separator.spark.key1": to.Ptr("space"), + // "currentOperation.append.separator.spark.key2": to.Ptr("comma"), + // "currentOperation.spark.key1": to.Ptr("append"), + // "currentOperation.spark.key2": to.Ptr("append"), + // }, + // Configs: map[string]*string{ + // "prop1": to.Ptr("true"), + // "prop2": to.Ptr("true"), + // "prop3": to.Ptr("123"), + // }, + // Created: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1970-01-01T00:00:00Z"); return t}()), + // CreatedBy: to.Ptr("test@microsoft.com"), + // Notes: to.Ptr("testNotes"), + // }, + // }, + // { + // Name: to.Ptr("exampleSparkConfigurationName2"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sparkconfigurations"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.Synapse/workspaces/exampleWorkspace/sparkconfigurations/exampleSparkConfigurationName2"), + // Etag: to.Ptr("1500474f-0000-0200-0000-5cbe090d0000"), + // Properties: &armsynapse.SparkConfigurationInfo{ + // Description: to.Ptr("test sparkconfiguration description2"), + // Annotations: []*string{ + // to.Ptr("testAnnotation1"), + // to.Ptr("testAnnotation2")}, + // ConfigMergeRule: map[string]*string{ + // "allowedNextOperations.spark.key1": to.Ptr("replace,delete"), + // "allowedNextOperations.spark.key2": to.Ptr("replace,delete,append"), + // "currentOperation.append.separator.spark.key1": to.Ptr("space"), + // "currentOperation.append.separator.spark.key2": to.Ptr("comma"), + // "currentOperation.spark.key1": to.Ptr("append"), + // "currentOperation.spark.key2": to.Ptr("append"), + // }, + // Configs: map[string]*string{ + // "prop1": to.Ptr("true"), + // "prop2": to.Ptr("true"), + // "prop3": to.Ptr("123"), + // }, + // Created: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1970-01-01T00:00:00Z"); return t}()), + // CreatedBy: to.Ptr("test@microsoft.com"), + // Notes: to.Ptr("testNotes"), + // }, + // }}, + // } + } +} diff --git a/sdk/resourcemanager/synapse/armsynapse/zz_generated_sqlpoolblobauditingpolicies_client.go b/sdk/resourcemanager/synapse/armsynapse/sqlpoolblobauditingpolicies_client.go similarity index 89% rename from sdk/resourcemanager/synapse/armsynapse/zz_generated_sqlpoolblobauditingpolicies_client.go rename to sdk/resourcemanager/synapse/armsynapse/sqlpoolblobauditingpolicies_client.go index 8b51de03f33a..945b9c5849f2 100644 --- a/sdk/resourcemanager/synapse/armsynapse/zz_generated_sqlpoolblobauditingpolicies_client.go +++ b/sdk/resourcemanager/synapse/armsynapse/sqlpoolblobauditingpolicies_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse @@ -31,9 +32,9 @@ type SQLPoolBlobAuditingPoliciesClient struct { } // NewSQLPoolBlobAuditingPoliciesClient creates a new instance of SQLPoolBlobAuditingPoliciesClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewSQLPoolBlobAuditingPoliciesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SQLPoolBlobAuditingPoliciesClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,13 +57,14 @@ func NewSQLPoolBlobAuditingPoliciesClient(subscriptionID string, credential azco // CreateOrUpdate - Creates or updates a SQL pool's blob auditing policy. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// sqlPoolName - SQL pool name -// parameters - The database blob auditing policy. -// options - SQLPoolBlobAuditingPoliciesClientCreateOrUpdateOptions contains the optional parameters for the SQLPoolBlobAuditingPoliciesClient.CreateOrUpdate -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - sqlPoolName - SQL pool name +// - parameters - The database blob auditing policy. +// - options - SQLPoolBlobAuditingPoliciesClientCreateOrUpdateOptions contains the optional parameters for the SQLPoolBlobAuditingPoliciesClient.CreateOrUpdate +// method. func (client *SQLPoolBlobAuditingPoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, sqlPoolName string, parameters SQLPoolBlobAuditingPolicy, options *SQLPoolBlobAuditingPoliciesClientCreateOrUpdateOptions) (SQLPoolBlobAuditingPoliciesClientCreateOrUpdateResponse, error) { req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, workspaceName, sqlPoolName, parameters, options) if err != nil { @@ -120,12 +122,13 @@ func (client *SQLPoolBlobAuditingPoliciesClient) createOrUpdateHandleResponse(re // Get - Get a SQL pool's blob auditing policy. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// sqlPoolName - SQL pool name -// options - SQLPoolBlobAuditingPoliciesClientGetOptions contains the optional parameters for the SQLPoolBlobAuditingPoliciesClient.Get -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - sqlPoolName - SQL pool name +// - options - SQLPoolBlobAuditingPoliciesClientGetOptions contains the optional parameters for the SQLPoolBlobAuditingPoliciesClient.Get +// method. func (client *SQLPoolBlobAuditingPoliciesClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, sqlPoolName string, options *SQLPoolBlobAuditingPoliciesClientGetOptions) (SQLPoolBlobAuditingPoliciesClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, workspaceName, sqlPoolName, options) if err != nil { @@ -182,13 +185,13 @@ func (client *SQLPoolBlobAuditingPoliciesClient) getHandleResponse(resp *http.Re } // NewListBySQLPoolPager - Lists auditing settings of a Sql pool. -// If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// sqlPoolName - SQL pool name -// options - SQLPoolBlobAuditingPoliciesClientListBySQLPoolOptions contains the optional parameters for the SQLPoolBlobAuditingPoliciesClient.ListBySQLPool -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - sqlPoolName - SQL pool name +// - options - SQLPoolBlobAuditingPoliciesClientListBySQLPoolOptions contains the optional parameters for the SQLPoolBlobAuditingPoliciesClient.NewListBySQLPoolPager +// method. func (client *SQLPoolBlobAuditingPoliciesClient) NewListBySQLPoolPager(resourceGroupName string, workspaceName string, sqlPoolName string, options *SQLPoolBlobAuditingPoliciesClientListBySQLPoolOptions) *runtime.Pager[SQLPoolBlobAuditingPoliciesClientListBySQLPoolResponse] { return runtime.NewPager(runtime.PagingHandler[SQLPoolBlobAuditingPoliciesClientListBySQLPoolResponse]{ More: func(page SQLPoolBlobAuditingPoliciesClientListBySQLPoolResponse) bool { diff --git a/sdk/resourcemanager/synapse/armsynapse/sqlpoolblobauditingpolicies_client_example_test.go b/sdk/resourcemanager/synapse/armsynapse/sqlpoolblobauditingpolicies_client_example_test.go new file mode 100644 index 000000000000..32d89c598830 --- /dev/null +++ b/sdk/resourcemanager/synapse/armsynapse/sqlpoolblobauditingpolicies_client_example_test.go @@ -0,0 +1,195 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armsynapse_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolBlobAuditing.json +func ExampleSQLPoolBlobAuditingPoliciesClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewSQLPoolBlobAuditingPoliciesClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "blobauditingtest-6852", "blobauditingtest-2080", "testdb", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.SQLPoolBlobAuditingPolicy = armsynapse.SQLPoolBlobAuditingPolicy{ + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/auditingSettings"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/blobauditingtest-6852/providers/Microsoft.Synapse/workspaces/blobauditingtest-2080/sqlPools/testdb"), + // Kind: to.Ptr("V12"), + // Properties: &armsynapse.SQLPoolBlobAuditingPolicyProperties{ + // AuditActionsAndGroups: []*string{ + // }, + // IsAzureMonitorTargetEnabled: to.Ptr(false), + // IsStorageSecondaryKeyInUse: to.Ptr(false), + // RetentionDays: to.Ptr[int32](0), + // State: to.Ptr(armsynapse.BlobAuditingPolicyStateDisabled), + // StorageAccountSubscriptionID: to.Ptr("00000000-0000-0000-0000-000000000000"), + // StorageEndpoint: to.Ptr(""), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateSqlPoolBlobAuditingWithAllParameters.json +func ExampleSQLPoolBlobAuditingPoliciesClient_CreateOrUpdate_createOrUpdateADatabasesBlobAuditingPolicyWithAllParameters() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewSQLPoolBlobAuditingPoliciesClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.CreateOrUpdate(ctx, "blobauditingtest-4799", "blobauditingtest-6440", "testdb", armsynapse.SQLPoolBlobAuditingPolicy{ + Properties: &armsynapse.SQLPoolBlobAuditingPolicyProperties{ + AuditActionsAndGroups: []*string{ + to.Ptr("DATABASE_LOGOUT_GROUP"), + to.Ptr("DATABASE_ROLE_MEMBER_CHANGE_GROUP"), + to.Ptr("UPDATE on database::TestDatabaseName by public")}, + IsAzureMonitorTargetEnabled: to.Ptr(true), + IsStorageSecondaryKeyInUse: to.Ptr(false), + RetentionDays: to.Ptr[int32](6), + State: to.Ptr(armsynapse.BlobAuditingPolicyStateEnabled), + StorageAccountAccessKey: to.Ptr("sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3RSD=="), + StorageAccountSubscriptionID: to.Ptr("00000000-1234-0000-5678-000000000000"), + StorageEndpoint: to.Ptr("https://mystorage.blob.core.windows.net"), + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.SQLPoolBlobAuditingPolicy = armsynapse.SQLPoolBlobAuditingPolicy{ + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/auditingSettings"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/blobauditingtest-4799/providers/Microsoft.Synapse/workspaces/blobauditingtest-6440/sqlPools/testdb"), + // Kind: to.Ptr("V12"), + // Properties: &armsynapse.SQLPoolBlobAuditingPolicyProperties{ + // AuditActionsAndGroups: []*string{ + // to.Ptr("DATABASE_LOGOUT_GROUP"), + // to.Ptr("DATABASE_ROLE_MEMBER_CHANGE_GROUP"), + // to.Ptr("UPDATE on database::TestDatabaseName by public")}, + // IsAzureMonitorTargetEnabled: to.Ptr(true), + // IsStorageSecondaryKeyInUse: to.Ptr(false), + // RetentionDays: to.Ptr[int32](0), + // State: to.Ptr(armsynapse.BlobAuditingPolicyStateEnabled), + // StorageAccountSubscriptionID: to.Ptr("00000000-1234-0000-5678-000000000000"), + // StorageEndpoint: to.Ptr("https://mystorage.blob.core.windows.net"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateSqlPoolBlobAuditingWithMinParameters.json +func ExampleSQLPoolBlobAuditingPoliciesClient_CreateOrUpdate_createOrUpdateADatabasesBlobAuditingPolicyWithMinimalParameters() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewSQLPoolBlobAuditingPoliciesClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.CreateOrUpdate(ctx, "blobauditingtest-4799", "blobauditingtest-6440", "testdb", armsynapse.SQLPoolBlobAuditingPolicy{ + Properties: &armsynapse.SQLPoolBlobAuditingPolicyProperties{ + State: to.Ptr(armsynapse.BlobAuditingPolicyStateEnabled), + StorageAccountAccessKey: to.Ptr("sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3RSD=="), + StorageEndpoint: to.Ptr("https://mystorage.blob.core.windows.net"), + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.SQLPoolBlobAuditingPolicy = armsynapse.SQLPoolBlobAuditingPolicy{ + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/auditingSettings"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/blobauditingtest-4799/providers/Microsoft.Synapse/workspaces/blobauditingtest-6440/sqlPools/testdb"), + // Kind: to.Ptr("V12"), + // Properties: &armsynapse.SQLPoolBlobAuditingPolicyProperties{ + // AuditActionsAndGroups: []*string{ + // to.Ptr("SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP"), + // to.Ptr("FAILED_DATABASE_AUTHENTICATION_GROUP"), + // to.Ptr("BATCH_COMPLETED_GROUP")}, + // IsAzureMonitorTargetEnabled: to.Ptr(false), + // IsStorageSecondaryKeyInUse: to.Ptr(false), + // RetentionDays: to.Ptr[int32](0), + // State: to.Ptr(armsynapse.BlobAuditingPolicyStateEnabled), + // StorageAccountSubscriptionID: to.Ptr("00000000-0000-0000-0000-000000000000"), + // StorageEndpoint: to.Ptr("https://mystorage.blob.core.windows.net"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolAuditingSettingsList.json +func ExampleSQLPoolBlobAuditingPoliciesClient_NewListBySQLPoolPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewSQLPoolBlobAuditingPoliciesClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListBySQLPoolPager("blobauditingtest-6852", "blobauditingtest-2080", "testdb", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.SQLPoolBlobAuditingPolicyListResult = armsynapse.SQLPoolBlobAuditingPolicyListResult{ + // Value: []*armsynapse.SQLPoolBlobAuditingPolicy{ + // { + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/auditingSettings"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/blobauditingtest-6852/providers/Microsoft.Synapse/workspaces/blobauditingtest-2080/sqlPools/testdb"), + // Kind: to.Ptr("V12"), + // Properties: &armsynapse.SQLPoolBlobAuditingPolicyProperties{ + // AuditActionsAndGroups: []*string{ + // }, + // IsAzureMonitorTargetEnabled: to.Ptr(false), + // IsStorageSecondaryKeyInUse: to.Ptr(false), + // RetentionDays: to.Ptr[int32](0), + // State: to.Ptr(armsynapse.BlobAuditingPolicyStateDisabled), + // StorageAccountSubscriptionID: to.Ptr("00000000-0000-0000-0000-000000000000"), + // StorageEndpoint: to.Ptr(""), + // }, + // }}, + // } + } +} diff --git a/sdk/resourcemanager/synapse/armsynapse/zz_generated_sqlpoolcolumns_client.go b/sdk/resourcemanager/synapse/armsynapse/sqlpoolcolumns_client.go similarity index 88% rename from sdk/resourcemanager/synapse/armsynapse/zz_generated_sqlpoolcolumns_client.go rename to sdk/resourcemanager/synapse/armsynapse/sqlpoolcolumns_client.go index 59dff98de894..a7aca43c6059 100644 --- a/sdk/resourcemanager/synapse/armsynapse/zz_generated_sqlpoolcolumns_client.go +++ b/sdk/resourcemanager/synapse/armsynapse/sqlpoolcolumns_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse @@ -31,9 +32,9 @@ type SQLPoolColumnsClient struct { } // NewSQLPoolColumnsClient creates a new instance of SQLPoolColumnsClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewSQLPoolColumnsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SQLPoolColumnsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,14 +57,15 @@ func NewSQLPoolColumnsClient(subscriptionID string, credential azcore.TokenCrede // Get - Get Sql pool column // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// sqlPoolName - SQL pool name -// schemaName - The name of the schema. -// tableName - The name of the table. -// columnName - The name of the column. -// options - SQLPoolColumnsClientGetOptions contains the optional parameters for the SQLPoolColumnsClient.Get method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - sqlPoolName - SQL pool name +// - schemaName - The name of the schema. +// - tableName - The name of the table. +// - columnName - The name of the column. +// - options - SQLPoolColumnsClientGetOptions contains the optional parameters for the SQLPoolColumnsClient.Get method. func (client *SQLPoolColumnsClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, sqlPoolName string, schemaName string, tableName string, columnName string, options *SQLPoolColumnsClientGetOptions) (SQLPoolColumnsClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName, options) if err != nil { diff --git a/sdk/resourcemanager/synapse/armsynapse/sqlpoolcolumns_client_example_test.go b/sdk/resourcemanager/synapse/armsynapse/sqlpoolcolumns_client_example_test.go new file mode 100644 index 000000000000..9c66343172f2 --- /dev/null +++ b/sdk/resourcemanager/synapse/armsynapse/sqlpoolcolumns_client_example_test.go @@ -0,0 +1,46 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armsynapse_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolColumnGet.json +func ExampleSQLPoolColumnsClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewSQLPoolColumnsClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "myRG", "serverName", "myDatabase", "dbo", "table1", "column1", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.SQLPoolColumn = armsynapse.SQLPoolColumn{ + // Name: to.Ptr("column1"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/schemas/tables/columns"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myRG/providers/Microsoft.Synapse/workspaces/serverName/sqlPools/myDatabase/schemas/dbo/tables/table1/columns/column1"), + // Properties: &armsynapse.SQLPoolColumnProperties{ + // ColumnType: to.Ptr(armsynapse.ColumnDataTypeBit), + // }, + // } +} diff --git a/sdk/resourcemanager/synapse/armsynapse/zz_generated_sqlpoolconnectionpolicies_client.go b/sdk/resourcemanager/synapse/armsynapse/sqlpoolconnectionpolicies_client.go similarity index 89% rename from sdk/resourcemanager/synapse/armsynapse/zz_generated_sqlpoolconnectionpolicies_client.go rename to sdk/resourcemanager/synapse/armsynapse/sqlpoolconnectionpolicies_client.go index f54a34b17251..243b31b2cb15 100644 --- a/sdk/resourcemanager/synapse/armsynapse/zz_generated_sqlpoolconnectionpolicies_client.go +++ b/sdk/resourcemanager/synapse/armsynapse/sqlpoolconnectionpolicies_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse @@ -31,9 +32,9 @@ type SQLPoolConnectionPoliciesClient struct { } // NewSQLPoolConnectionPoliciesClient creates a new instance of SQLPoolConnectionPoliciesClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewSQLPoolConnectionPoliciesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SQLPoolConnectionPoliciesClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,13 +57,14 @@ func NewSQLPoolConnectionPoliciesClient(subscriptionID string, credential azcore // Get - Get a Sql pool's connection policy, which is used with table auditing. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// sqlPoolName - SQL pool name -// connectionPolicyName - The name of the connection policy. -// options - SQLPoolConnectionPoliciesClientGetOptions contains the optional parameters for the SQLPoolConnectionPoliciesClient.Get -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - sqlPoolName - SQL pool name +// - connectionPolicyName - The name of the connection policy. +// - options - SQLPoolConnectionPoliciesClientGetOptions contains the optional parameters for the SQLPoolConnectionPoliciesClient.Get +// method. func (client *SQLPoolConnectionPoliciesClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, sqlPoolName string, connectionPolicyName ConnectionPolicyName, options *SQLPoolConnectionPoliciesClientGetOptions) (SQLPoolConnectionPoliciesClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, workspaceName, sqlPoolName, connectionPolicyName, options) if err != nil { diff --git a/sdk/resourcemanager/synapse/armsynapse/sqlpoolconnectionpolicies_client_example_test.go b/sdk/resourcemanager/synapse/armsynapse/sqlpoolconnectionpolicies_client_example_test.go new file mode 100644 index 000000000000..cafb9204a133 --- /dev/null +++ b/sdk/resourcemanager/synapse/armsynapse/sqlpoolconnectionpolicies_client_example_test.go @@ -0,0 +1,53 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armsynapse_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolConnectionPolicy.json +func ExampleSQLPoolConnectionPoliciesClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewSQLPoolConnectionPoliciesClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "blobauditingtest-6852", "blobauditingtest-2080", "testdb", armsynapse.ConnectionPolicyNameDefault, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.SQLPoolConnectionPolicy = armsynapse.SQLPoolConnectionPolicy{ + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/connectionPolicies"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/blobauditingtest-6852/providers/Microsoft.Synapse/workspaces/blobauditingtest-2080/sqlPools/testdb/connectionPolicies/default"), + // Location: to.Ptr("West US"), + // Properties: &armsynapse.SQLPoolConnectionPolicyProperties{ + // ProxyDNSName: to.Ptr("blobauditingtest-2080.database.secure.windows.net"), + // ProxyPort: to.Ptr("1433"), + // RedirectionState: to.Ptr("Disabled"), + // SecurityEnabledAccess: to.Ptr("Optional"), + // State: to.Ptr("New"), + // UseServerDefault: to.Ptr("Enabled"), + // Visibility: to.Ptr("Visible"), + // }, + // } +} diff --git a/sdk/resourcemanager/synapse/armsynapse/zz_generated_sqlpooldatawarehouseuseractivities_client.go b/sdk/resourcemanager/synapse/armsynapse/sqlpooldatawarehouseuseractivities_client.go similarity index 89% rename from sdk/resourcemanager/synapse/armsynapse/zz_generated_sqlpooldatawarehouseuseractivities_client.go rename to sdk/resourcemanager/synapse/armsynapse/sqlpooldatawarehouseuseractivities_client.go index 8cbb571ff86e..781c7b14b65b 100644 --- a/sdk/resourcemanager/synapse/armsynapse/zz_generated_sqlpooldatawarehouseuseractivities_client.go +++ b/sdk/resourcemanager/synapse/armsynapse/sqlpooldatawarehouseuseractivities_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse @@ -31,9 +32,9 @@ type SQLPoolDataWarehouseUserActivitiesClient struct { } // NewSQLPoolDataWarehouseUserActivitiesClient creates a new instance of SQLPoolDataWarehouseUserActivitiesClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewSQLPoolDataWarehouseUserActivitiesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SQLPoolDataWarehouseUserActivitiesClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,13 +57,14 @@ func NewSQLPoolDataWarehouseUserActivitiesClient(subscriptionID string, credenti // Get - Gets the user activities of a SQL pool which includes running and suspended queries // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// sqlPoolName - SQL pool name -// dataWarehouseUserActivityName - The activity name of the Sql pool. -// options - SQLPoolDataWarehouseUserActivitiesClientGetOptions contains the optional parameters for the SQLPoolDataWarehouseUserActivitiesClient.Get -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - sqlPoolName - SQL pool name +// - dataWarehouseUserActivityName - The activity name of the Sql pool. +// - options - SQLPoolDataWarehouseUserActivitiesClientGetOptions contains the optional parameters for the SQLPoolDataWarehouseUserActivitiesClient.Get +// method. func (client *SQLPoolDataWarehouseUserActivitiesClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, sqlPoolName string, dataWarehouseUserActivityName DataWarehouseUserActivityName, options *SQLPoolDataWarehouseUserActivitiesClientGetOptions) (SQLPoolDataWarehouseUserActivitiesClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, workspaceName, sqlPoolName, dataWarehouseUserActivityName, options) if err != nil { diff --git a/sdk/resourcemanager/synapse/armsynapse/sqlpooldatawarehouseuseractivities_client_example_test.go b/sdk/resourcemanager/synapse/armsynapse/sqlpooldatawarehouseuseractivities_client_example_test.go new file mode 100644 index 000000000000..46cfab1b76e8 --- /dev/null +++ b/sdk/resourcemanager/synapse/armsynapse/sqlpooldatawarehouseuseractivities_client_example_test.go @@ -0,0 +1,46 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armsynapse_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolUserActivity.json +func ExampleSQLPoolDataWarehouseUserActivitiesClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewSQLPoolDataWarehouseUserActivitiesClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "Default-SQL-SouthEastAsia", "testsvr", "testdb", armsynapse.DataWarehouseUserActivityNameCurrent, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.DataWarehouseUserActivities = armsynapse.DataWarehouseUserActivities{ + // Name: to.Ptr("current"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/dataWarehouseUserActivities"), + // ID: to.Ptr("subscriptions/326affc3-21f4-4471-a545-e37430b70113/resourceGroups/Default-SQL-Onebox/providers/Microsoft.Synapse/workspaces/testsvr/sqlPools/dwdb01/dataWarehouseUserActivities/current"), + // Properties: &armsynapse.DataWarehouseUserActivitiesProperties{ + // ActiveQueriesCount: to.Ptr[int32](0), + // }, + // } +} diff --git a/sdk/resourcemanager/synapse/armsynapse/zz_generated_sqlpoolgeobackuppolicies_client.go b/sdk/resourcemanager/synapse/armsynapse/sqlpoolgeobackuppolicies_client.go similarity index 88% rename from sdk/resourcemanager/synapse/armsynapse/zz_generated_sqlpoolgeobackuppolicies_client.go rename to sdk/resourcemanager/synapse/armsynapse/sqlpoolgeobackuppolicies_client.go index f9d6a1a071a2..8f4a7892ae85 100644 --- a/sdk/resourcemanager/synapse/armsynapse/zz_generated_sqlpoolgeobackuppolicies_client.go +++ b/sdk/resourcemanager/synapse/armsynapse/sqlpoolgeobackuppolicies_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse @@ -31,9 +32,9 @@ type SQLPoolGeoBackupPoliciesClient struct { } // NewSQLPoolGeoBackupPoliciesClient creates a new instance of SQLPoolGeoBackupPoliciesClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewSQLPoolGeoBackupPoliciesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SQLPoolGeoBackupPoliciesClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,14 +57,15 @@ func NewSQLPoolGeoBackupPoliciesClient(subscriptionID string, credential azcore. // CreateOrUpdate - Updates a SQL Pool geo backup policy. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// sqlPoolName - SQL pool name -// geoBackupPolicyName - The name of the geo backup policy. -// parameters - The required parameters for creating or updating the geo backup policy. -// options - SQLPoolGeoBackupPoliciesClientCreateOrUpdateOptions contains the optional parameters for the SQLPoolGeoBackupPoliciesClient.CreateOrUpdate -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - sqlPoolName - SQL pool name +// - geoBackupPolicyName - The name of the geo backup policy. +// - parameters - The required parameters for creating or updating the geo backup policy. +// - options - SQLPoolGeoBackupPoliciesClientCreateOrUpdateOptions contains the optional parameters for the SQLPoolGeoBackupPoliciesClient.CreateOrUpdate +// method. func (client *SQLPoolGeoBackupPoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, sqlPoolName string, geoBackupPolicyName GeoBackupPolicyName, parameters GeoBackupPolicy, options *SQLPoolGeoBackupPoliciesClientCreateOrUpdateOptions) (SQLPoolGeoBackupPoliciesClientCreateOrUpdateResponse, error) { req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, workspaceName, sqlPoolName, geoBackupPolicyName, parameters, options) if err != nil { @@ -124,13 +126,14 @@ func (client *SQLPoolGeoBackupPoliciesClient) createOrUpdateHandleResponse(resp // Get - Get the specified SQL pool geo backup policy // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// sqlPoolName - SQL pool name -// geoBackupPolicyName - The name of the geo backup policy. -// options - SQLPoolGeoBackupPoliciesClientGetOptions contains the optional parameters for the SQLPoolGeoBackupPoliciesClient.Get -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - sqlPoolName - SQL pool name +// - geoBackupPolicyName - The name of the geo backup policy. +// - options - SQLPoolGeoBackupPoliciesClientGetOptions contains the optional parameters for the SQLPoolGeoBackupPoliciesClient.Get +// method. func (client *SQLPoolGeoBackupPoliciesClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, sqlPoolName string, geoBackupPolicyName GeoBackupPolicyName, options *SQLPoolGeoBackupPoliciesClientGetOptions) (SQLPoolGeoBackupPoliciesClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, workspaceName, sqlPoolName, geoBackupPolicyName, options) if err != nil { @@ -190,13 +193,13 @@ func (client *SQLPoolGeoBackupPoliciesClient) getHandleResponse(resp *http.Respo } // NewListPager - Get list of SQL pool geo backup policies -// If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// sqlPoolName - SQL pool name -// options - SQLPoolGeoBackupPoliciesClientListOptions contains the optional parameters for the SQLPoolGeoBackupPoliciesClient.List -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - sqlPoolName - SQL pool name +// - options - SQLPoolGeoBackupPoliciesClientListOptions contains the optional parameters for the SQLPoolGeoBackupPoliciesClient.NewListPager +// method. func (client *SQLPoolGeoBackupPoliciesClient) NewListPager(resourceGroupName string, workspaceName string, sqlPoolName string, options *SQLPoolGeoBackupPoliciesClientListOptions) *runtime.Pager[SQLPoolGeoBackupPoliciesClientListResponse] { return runtime.NewPager(runtime.PagingHandler[SQLPoolGeoBackupPoliciesClientListResponse]{ More: func(page SQLPoolGeoBackupPoliciesClientListResponse) bool { diff --git a/sdk/resourcemanager/synapse/armsynapse/sqlpoolgeobackuppolicies_client_example_test.go b/sdk/resourcemanager/synapse/armsynapse/sqlpoolgeobackuppolicies_client_example_test.go new file mode 100644 index 000000000000..dd6a2ab30e1c --- /dev/null +++ b/sdk/resourcemanager/synapse/armsynapse/sqlpoolgeobackuppolicies_client_example_test.go @@ -0,0 +1,119 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armsynapse_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolGeoBackupPolicies_List.json +func ExampleSQLPoolGeoBackupPoliciesClient_NewListPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewSQLPoolGeoBackupPoliciesClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListPager("sqlcrudtest-4799", "sqlcrudtest-5961", "testdw", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.GeoBackupPolicyListResult = armsynapse.GeoBackupPolicyListResult{ + // Value: []*armsynapse.GeoBackupPolicy{ + // { + // Name: to.Ptr("Default"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/geoBackupPolicies"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-4799/providers/Microsoft.Synapse/workspaces/sqlcrudtest-5961/sqlPools/testdw/geoBackupPolicies/Default"), + // Location: to.Ptr("Central US"), + // Properties: &armsynapse.GeoBackupPolicyProperties{ + // State: to.Ptr(armsynapse.GeoBackupPolicyStateEnabled), + // StorageType: to.Ptr("Premium"), + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateGeoBackupPolicies.json +func ExampleSQLPoolGeoBackupPoliciesClient_CreateOrUpdate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewSQLPoolGeoBackupPoliciesClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.CreateOrUpdate(ctx, "testrg", "testws", "testdw", armsynapse.GeoBackupPolicyNameDefault, armsynapse.GeoBackupPolicy{ + Properties: &armsynapse.GeoBackupPolicyProperties{ + State: to.Ptr(armsynapse.GeoBackupPolicyStateEnabled), + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.GeoBackupPolicy = armsynapse.GeoBackupPolicy{ + // Name: to.Ptr("Default"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlpools/geoBackupPolicies"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Synapse/workspaces/testws/databases/testdw/geoBackupPolicies/Default"), + // Properties: &armsynapse.GeoBackupPolicyProperties{ + // State: to.Ptr(armsynapse.GeoBackupPolicyStateEnabled), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolGeoBackupPolicy.json +func ExampleSQLPoolGeoBackupPoliciesClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewSQLPoolGeoBackupPoliciesClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "sqlcrudtest-4799", "sqlcrudtest-5961", "testdw", armsynapse.GeoBackupPolicyNameDefault, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.GeoBackupPolicy = armsynapse.GeoBackupPolicy{ + // Name: to.Ptr("Default"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/geoBackupPolicies"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-4799/providers/Microsoft.Synapse/workspaces/sqlcrudtest-5961/sqlPools/testdw/geoBackupPolicies/Default"), + // Location: to.Ptr("Central US"), + // Properties: &armsynapse.GeoBackupPolicyProperties{ + // State: to.Ptr(armsynapse.GeoBackupPolicyStateEnabled), + // StorageType: to.Ptr("Premium"), + // }, + // } +} diff --git a/sdk/resourcemanager/synapse/armsynapse/zz_generated_sqlpoolmaintenancewindowoptions_client.go b/sdk/resourcemanager/synapse/armsynapse/sqlpoolmaintenancewindowoptions_client.go similarity index 88% rename from sdk/resourcemanager/synapse/armsynapse/zz_generated_sqlpoolmaintenancewindowoptions_client.go rename to sdk/resourcemanager/synapse/armsynapse/sqlpoolmaintenancewindowoptions_client.go index 54889fce5661..1d55c8915750 100644 --- a/sdk/resourcemanager/synapse/armsynapse/zz_generated_sqlpoolmaintenancewindowoptions_client.go +++ b/sdk/resourcemanager/synapse/armsynapse/sqlpoolmaintenancewindowoptions_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse @@ -31,9 +32,9 @@ type SQLPoolMaintenanceWindowOptionsClient struct { } // NewSQLPoolMaintenanceWindowOptionsClient creates a new instance of SQLPoolMaintenanceWindowOptionsClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewSQLPoolMaintenanceWindowOptionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SQLPoolMaintenanceWindowOptionsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,13 +57,14 @@ func NewSQLPoolMaintenanceWindowOptionsClient(subscriptionID string, credential // Get - Get list of SQL pool's available maintenance windows. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// sqlPoolName - SQL pool name -// maintenanceWindowOptionsName - Maintenance window options name. -// options - SQLPoolMaintenanceWindowOptionsClientGetOptions contains the optional parameters for the SQLPoolMaintenanceWindowOptionsClient.Get -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - sqlPoolName - SQL pool name +// - maintenanceWindowOptionsName - Maintenance window options name. +// - options - SQLPoolMaintenanceWindowOptionsClientGetOptions contains the optional parameters for the SQLPoolMaintenanceWindowOptionsClient.Get +// method. func (client *SQLPoolMaintenanceWindowOptionsClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, sqlPoolName string, maintenanceWindowOptionsName string, options *SQLPoolMaintenanceWindowOptionsClientGetOptions) (SQLPoolMaintenanceWindowOptionsClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, workspaceName, sqlPoolName, maintenanceWindowOptionsName, options) if err != nil { diff --git a/sdk/resourcemanager/synapse/armsynapse/sqlpoolmaintenancewindowoptions_client_example_test.go b/sdk/resourcemanager/synapse/armsynapse/sqlpoolmaintenancewindowoptions_client_example_test.go new file mode 100644 index 000000000000..1acf817b22ee --- /dev/null +++ b/sdk/resourcemanager/synapse/armsynapse/sqlpoolmaintenancewindowoptions_client_example_test.go @@ -0,0 +1,57 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armsynapse_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetMaintenanceWindowOptions.json +func ExampleSQLPoolMaintenanceWindowOptionsClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewSQLPoolMaintenanceWindowOptionsClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "samplerg", "testworkspace", "testsp", "current", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.MaintenanceWindowOptions = armsynapse.MaintenanceWindowOptions{ + // Name: to.Ptr("current"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/maintenanceWindowOptions"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/samplerg/providers/Microsoft.Synapse/workspaces/testworkspace/sqlPools/testsp/maintenanceWindowOptions/current"), + // Properties: &armsynapse.MaintenanceWindowOptionsProperties{ + // AllowMultipleMaintenanceWindowsPerCycle: to.Ptr(true), + // DefaultDurationInMinutes: to.Ptr[int32](120), + // IsEnabled: to.Ptr(true), + // MaintenanceWindowCycles: []*armsynapse.MaintenanceWindowTimeRange{ + // { + // DayOfWeek: to.Ptr(armsynapse.DayOfWeekSaturday), + // Duration: to.Ptr("PT60M"), + // StartTime: to.Ptr("00:00:00"), + // }}, + // MinCycles: to.Ptr[int32](2), + // MinDurationInMinutes: to.Ptr[int32](60), + // TimeGranularityInMinutes: to.Ptr[int32](5), + // }, + // } +} diff --git a/sdk/resourcemanager/synapse/armsynapse/zz_generated_sqlpoolmaintenancewindows_client.go b/sdk/resourcemanager/synapse/armsynapse/sqlpoolmaintenancewindows_client.go similarity index 87% rename from sdk/resourcemanager/synapse/armsynapse/zz_generated_sqlpoolmaintenancewindows_client.go rename to sdk/resourcemanager/synapse/armsynapse/sqlpoolmaintenancewindows_client.go index 3b936536d331..6ffa27297a90 100644 --- a/sdk/resourcemanager/synapse/armsynapse/zz_generated_sqlpoolmaintenancewindows_client.go +++ b/sdk/resourcemanager/synapse/armsynapse/sqlpoolmaintenancewindows_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse @@ -31,9 +32,9 @@ type SQLPoolMaintenanceWindowsClient struct { } // NewSQLPoolMaintenanceWindowsClient creates a new instance of SQLPoolMaintenanceWindowsClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewSQLPoolMaintenanceWindowsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SQLPoolMaintenanceWindowsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,14 +57,15 @@ func NewSQLPoolMaintenanceWindowsClient(subscriptionID string, credential azcore // CreateOrUpdate - Creates or updates a Sql pool's maintenance windows settings. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// sqlPoolName - SQL pool name -// maintenanceWindowName - Maintenance window name. -// parameters - The required parameters for creating or updating Maintenance Windows settings -// options - SQLPoolMaintenanceWindowsClientCreateOrUpdateOptions contains the optional parameters for the SQLPoolMaintenanceWindowsClient.CreateOrUpdate -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - sqlPoolName - SQL pool name +// - maintenanceWindowName - Maintenance window name. +// - parameters - The required parameters for creating or updating Maintenance Windows settings +// - options - SQLPoolMaintenanceWindowsClientCreateOrUpdateOptions contains the optional parameters for the SQLPoolMaintenanceWindowsClient.CreateOrUpdate +// method. func (client *SQLPoolMaintenanceWindowsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, sqlPoolName string, maintenanceWindowName string, parameters MaintenanceWindows, options *SQLPoolMaintenanceWindowsClientCreateOrUpdateOptions) (SQLPoolMaintenanceWindowsClientCreateOrUpdateResponse, error) { req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, workspaceName, sqlPoolName, maintenanceWindowName, parameters, options) if err != nil { @@ -111,13 +113,14 @@ func (client *SQLPoolMaintenanceWindowsClient) createOrUpdateCreateRequest(ctx c // Get - Get a SQL pool's Maintenance Windows. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// sqlPoolName - SQL pool name -// maintenanceWindowName - Maintenance window name. -// options - SQLPoolMaintenanceWindowsClientGetOptions contains the optional parameters for the SQLPoolMaintenanceWindowsClient.Get -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - sqlPoolName - SQL pool name +// - maintenanceWindowName - Maintenance window name. +// - options - SQLPoolMaintenanceWindowsClientGetOptions contains the optional parameters for the SQLPoolMaintenanceWindowsClient.Get +// method. func (client *SQLPoolMaintenanceWindowsClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, sqlPoolName string, maintenanceWindowName string, options *SQLPoolMaintenanceWindowsClientGetOptions) (SQLPoolMaintenanceWindowsClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, workspaceName, sqlPoolName, maintenanceWindowName, options) if err != nil { diff --git a/sdk/resourcemanager/synapse/armsynapse/sqlpoolmaintenancewindows_client_example_test.go b/sdk/resourcemanager/synapse/armsynapse/sqlpoolmaintenancewindows_client_example_test.go new file mode 100644 index 000000000000..75f0dc3ea806 --- /dev/null +++ b/sdk/resourcemanager/synapse/armsynapse/sqlpoolmaintenancewindows_client_example_test.go @@ -0,0 +1,78 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armsynapse_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetMaintenanceWindows.json +func ExampleSQLPoolMaintenanceWindowsClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewSQLPoolMaintenanceWindowsClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "samplerg", "testworkspace", "testsp", "current", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.MaintenanceWindows = armsynapse.MaintenanceWindows{ + // Name: to.Ptr("current"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/maintenancewindows"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/samplerg/providers/Microsoft.Synapse/workspaces/testworkspace/sqlPools/testsp/maintenancewindows/current"), + // Properties: &armsynapse.MaintenanceWindowsProperties{ + // TimeRanges: []*armsynapse.MaintenanceWindowTimeRange{ + // { + // DayOfWeek: to.Ptr(armsynapse.DayOfWeekSaturday), + // Duration: to.Ptr("PT60M"), + // StartTime: to.Ptr("00:00:00"), + // }}, + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateMaintenanceWindows.json +func ExampleSQLPoolMaintenanceWindowsClient_CreateOrUpdate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewSQLPoolMaintenanceWindowsClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + _, err = client.CreateOrUpdate(ctx, "samplerg", "testworkspace", "testsp", "current", armsynapse.MaintenanceWindows{ + Properties: &armsynapse.MaintenanceWindowsProperties{ + TimeRanges: []*armsynapse.MaintenanceWindowTimeRange{ + { + DayOfWeek: to.Ptr(armsynapse.DayOfWeekSaturday), + Duration: to.Ptr("PT60M"), + StartTime: to.Ptr("00:00:00"), + }}, + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } +} diff --git a/sdk/resourcemanager/synapse/armsynapse/zz_generated_sqlpoolmetadatasyncconfigs_client.go b/sdk/resourcemanager/synapse/armsynapse/sqlpoolmetadatasyncconfigs_client.go similarity index 88% rename from sdk/resourcemanager/synapse/armsynapse/zz_generated_sqlpoolmetadatasyncconfigs_client.go rename to sdk/resourcemanager/synapse/armsynapse/sqlpoolmetadatasyncconfigs_client.go index 583f36278de7..5671cc49c8b9 100644 --- a/sdk/resourcemanager/synapse/armsynapse/zz_generated_sqlpoolmetadatasyncconfigs_client.go +++ b/sdk/resourcemanager/synapse/armsynapse/sqlpoolmetadatasyncconfigs_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse @@ -31,9 +32,9 @@ type SQLPoolMetadataSyncConfigsClient struct { } // NewSQLPoolMetadataSyncConfigsClient creates a new instance of SQLPoolMetadataSyncConfigsClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewSQLPoolMetadataSyncConfigsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SQLPoolMetadataSyncConfigsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,13 +57,14 @@ func NewSQLPoolMetadataSyncConfigsClient(subscriptionID string, credential azcor // Create - Set the metadata sync configuration for a SQL pool // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// sqlPoolName - SQL pool name -// metadataSyncConfiguration - Metadata sync configuration -// options - SQLPoolMetadataSyncConfigsClientCreateOptions contains the optional parameters for the SQLPoolMetadataSyncConfigsClient.Create -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - sqlPoolName - SQL pool name +// - metadataSyncConfiguration - Metadata sync configuration +// - options - SQLPoolMetadataSyncConfigsClientCreateOptions contains the optional parameters for the SQLPoolMetadataSyncConfigsClient.Create +// method. func (client *SQLPoolMetadataSyncConfigsClient) Create(ctx context.Context, resourceGroupName string, workspaceName string, sqlPoolName string, metadataSyncConfiguration MetadataSyncConfig, options *SQLPoolMetadataSyncConfigsClientCreateOptions) (SQLPoolMetadataSyncConfigsClientCreateResponse, error) { req, err := client.createCreateRequest(ctx, resourceGroupName, workspaceName, sqlPoolName, metadataSyncConfiguration, options) if err != nil { @@ -72,7 +74,7 @@ func (client *SQLPoolMetadataSyncConfigsClient) Create(ctx context.Context, reso if err != nil { return SQLPoolMetadataSyncConfigsClientCreateResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusNotFound) { + if !runtime.HasStatusCode(resp, http.StatusOK) { return SQLPoolMetadataSyncConfigsClientCreateResponse{}, runtime.NewResponseError(resp) } return client.createHandleResponse(resp) @@ -119,12 +121,13 @@ func (client *SQLPoolMetadataSyncConfigsClient) createHandleResponse(resp *http. // Get - Get the metadata sync configuration for a SQL pool // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// sqlPoolName - SQL pool name -// options - SQLPoolMetadataSyncConfigsClientGetOptions contains the optional parameters for the SQLPoolMetadataSyncConfigsClient.Get -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - sqlPoolName - SQL pool name +// - options - SQLPoolMetadataSyncConfigsClientGetOptions contains the optional parameters for the SQLPoolMetadataSyncConfigsClient.Get +// method. func (client *SQLPoolMetadataSyncConfigsClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, sqlPoolName string, options *SQLPoolMetadataSyncConfigsClientGetOptions) (SQLPoolMetadataSyncConfigsClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, workspaceName, sqlPoolName, options) if err != nil { @@ -134,7 +137,7 @@ func (client *SQLPoolMetadataSyncConfigsClient) Get(ctx context.Context, resourc if err != nil { return SQLPoolMetadataSyncConfigsClientGetResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusNotFound) { + if !runtime.HasStatusCode(resp, http.StatusOK) { return SQLPoolMetadataSyncConfigsClientGetResponse{}, runtime.NewResponseError(resp) } return client.getHandleResponse(resp) diff --git a/sdk/resourcemanager/synapse/armsynapse/sqlpoolmetadatasyncconfigs_client_example_test.go b/sdk/resourcemanager/synapse/armsynapse/sqlpoolmetadatasyncconfigs_client_example_test.go new file mode 100644 index 000000000000..c94eaabc5684 --- /dev/null +++ b/sdk/resourcemanager/synapse/armsynapse/sqlpoolmetadatasyncconfigs_client_example_test.go @@ -0,0 +1,79 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armsynapse_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolMetadataSyncConfig.json +func ExampleSQLPoolMetadataSyncConfigsClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewSQLPoolMetadataSyncConfigsClient("01234567-89ab-4def-0123-456789abcdef", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "ExampleResourceGroup", "ExampleWorkspace", "ExampleSqlPool", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.MetadataSyncConfig = armsynapse.MetadataSyncConfig{ + // Name: to.Ptr("config"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/bigDataPools/metadataSync/config"), + // ID: to.Ptr("/subscriptions/01234567-89ab-4def-0123-456789abcdef/resourceGroups/ExampleResourceGroup/providers/Microsoft.Synapse/workspaces/ExampleWorkspace/bigDataPools/ExamplePool/metadataSync/config"), + // Properties: &armsynapse.MetadataSyncConfigProperties{ + // Enabled: to.Ptr(true), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateSqlPoolMetadataSyncConfig.json +func ExampleSQLPoolMetadataSyncConfigsClient_Create() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewSQLPoolMetadataSyncConfigsClient("01234567-89ab-4def-0123-456789abcdef", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Create(ctx, "ExampleResourceGroup", "ExampleWorkspace", "ExampleSqlPool", armsynapse.MetadataSyncConfig{ + Properties: &armsynapse.MetadataSyncConfigProperties{ + Enabled: to.Ptr(true), + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.MetadataSyncConfig = armsynapse.MetadataSyncConfig{ + // Name: to.Ptr("config"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/bigDataPools/metadataSync/config"), + // ID: to.Ptr("/subscriptions/01234567-89ab-4def-0123-456789abcdef/resourceGroups/ExampleResourceGroup/providers/Microsoft.Synapse/workspaces/ExampleWorkspace/bigDataPools/ExamplePool/metadataSync/config"), + // Properties: &armsynapse.MetadataSyncConfigProperties{ + // Enabled: to.Ptr(true), + // }, + // } +} diff --git a/sdk/resourcemanager/synapse/armsynapse/zz_generated_sqlpooloperationresults_client.go b/sdk/resourcemanager/synapse/armsynapse/sqlpooloperationresults_client.go similarity index 68% rename from sdk/resourcemanager/synapse/armsynapse/zz_generated_sqlpooloperationresults_client.go rename to sdk/resourcemanager/synapse/armsynapse/sqlpooloperationresults_client.go index 9e81dd321ea2..acfdbea278dc 100644 --- a/sdk/resourcemanager/synapse/armsynapse/zz_generated_sqlpooloperationresults_client.go +++ b/sdk/resourcemanager/synapse/armsynapse/sqlpooloperationresults_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse @@ -31,9 +32,9 @@ type SQLPoolOperationResultsClient struct { } // NewSQLPoolOperationResultsClient creates a new instance of SQLPoolOperationResultsClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewSQLPoolOperationResultsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SQLPoolOperationResultsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -54,32 +55,49 @@ func NewSQLPoolOperationResultsClient(subscriptionID string, credential azcore.T return client, nil } +// BeginGetLocationHeaderResult - Get the status of a SQL pool operation +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2021-06-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - sqlPoolName - SQL pool name +// - operationID - Operation ID +// - options - SQLPoolOperationResultsClientBeginGetLocationHeaderResultOptions contains the optional parameters for the SQLPoolOperationResultsClient.BeginGetLocationHeaderResult +// method. +func (client *SQLPoolOperationResultsClient) BeginGetLocationHeaderResult(ctx context.Context, resourceGroupName string, workspaceName string, sqlPoolName string, operationID string, options *SQLPoolOperationResultsClientBeginGetLocationHeaderResultOptions) (*runtime.Poller[SQLPoolOperationResultsClientGetLocationHeaderResultResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.getLocationHeaderResult(ctx, resourceGroupName, workspaceName, sqlPoolName, operationID, options) + if err != nil { + return nil, err + } + return runtime.NewPoller[SQLPoolOperationResultsClientGetLocationHeaderResultResponse](resp, client.pl, nil) + } else { + return runtime.NewPollerFromResumeToken[SQLPoolOperationResultsClientGetLocationHeaderResultResponse](options.ResumeToken, client.pl, nil) + } +} + // GetLocationHeaderResult - Get the status of a SQL pool operation // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// sqlPoolName - SQL pool name -// operationID - Operation ID -// options - SQLPoolOperationResultsClientGetLocationHeaderResultOptions contains the optional parameters for the SQLPoolOperationResultsClient.GetLocationHeaderResult -// method. -func (client *SQLPoolOperationResultsClient) GetLocationHeaderResult(ctx context.Context, resourceGroupName string, workspaceName string, sqlPoolName string, operationID string, options *SQLPoolOperationResultsClientGetLocationHeaderResultOptions) (SQLPoolOperationResultsClientGetLocationHeaderResultResponse, error) { +func (client *SQLPoolOperationResultsClient) getLocationHeaderResult(ctx context.Context, resourceGroupName string, workspaceName string, sqlPoolName string, operationID string, options *SQLPoolOperationResultsClientBeginGetLocationHeaderResultOptions) (*http.Response, error) { req, err := client.getLocationHeaderResultCreateRequest(ctx, resourceGroupName, workspaceName, sqlPoolName, operationID, options) if err != nil { - return SQLPoolOperationResultsClientGetLocationHeaderResultResponse{}, err + return nil, err } resp, err := client.pl.Do(req) if err != nil { - return SQLPoolOperationResultsClientGetLocationHeaderResultResponse{}, err + return nil, err } if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return SQLPoolOperationResultsClientGetLocationHeaderResultResponse{}, runtime.NewResponseError(resp) + return nil, runtime.NewResponseError(resp) } - return client.getLocationHeaderResultHandleResponse(resp) + return resp, nil } // getLocationHeaderResultCreateRequest creates the GetLocationHeaderResult request. -func (client *SQLPoolOperationResultsClient) getLocationHeaderResultCreateRequest(ctx context.Context, resourceGroupName string, workspaceName string, sqlPoolName string, operationID string, options *SQLPoolOperationResultsClientGetLocationHeaderResultOptions) (*policy.Request, error) { +func (client *SQLPoolOperationResultsClient) getLocationHeaderResultCreateRequest(ctx context.Context, resourceGroupName string, workspaceName string, sqlPoolName string, operationID string, options *SQLPoolOperationResultsClientBeginGetLocationHeaderResultOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/operationResults/{operationId}" if client.subscriptionID == "" { return nil, errors.New("parameter client.subscriptionID cannot be empty") @@ -111,12 +129,3 @@ func (client *SQLPoolOperationResultsClient) getLocationHeaderResultCreateReques req.Raw().Header["Accept"] = []string{"application/json"} return req, nil } - -// getLocationHeaderResultHandleResponse handles the GetLocationHeaderResult response. -func (client *SQLPoolOperationResultsClient) getLocationHeaderResultHandleResponse(resp *http.Response) (SQLPoolOperationResultsClientGetLocationHeaderResultResponse, error) { - result := SQLPoolOperationResultsClientGetLocationHeaderResultResponse{} - if err := runtime.UnmarshalAsJSON(resp, &result.Interface); err != nil { - return SQLPoolOperationResultsClientGetLocationHeaderResultResponse{}, err - } - return result, nil -} diff --git a/sdk/resourcemanager/synapse/armsynapse/sqlpooloperationresults_client_example_test.go b/sdk/resourcemanager/synapse/armsynapse/sqlpooloperationresults_client_example_test.go new file mode 100644 index 000000000000..b6f3a4460f5b --- /dev/null +++ b/sdk/resourcemanager/synapse/armsynapse/sqlpooloperationresults_client_example_test.go @@ -0,0 +1,58 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armsynapse_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetLocationHeaderResultWithSqlPool.json +func ExampleSQLPoolOperationResultsClient_BeginGetLocationHeaderResult() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewSQLPoolOperationResultsClient("01234567-89ab-4def-0123-456789abcdef", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginGetLocationHeaderResult(ctx, "ExampleResourceGroup", "ExampleWorkspace", "ExampleSqlPool", "fedcba98-7654-4210-fedc-ba9876543210", 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.SQLPool = armsynapse.SQLPool{ + // Name: to.Ptr("SampleSQLPool"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/rg_ursa/providers/Microsoft.Synapse/workspaces/ursascaneastus/sqlPools/SampleSQLPool"), + // Location: to.Ptr("eastus"), + // Tags: map[string]*string{ + // }, + // Properties: &armsynapse.SQLPoolResourceProperties{ + // Collation: to.Ptr("SQL_Latin1_General_CP1_CI_AS"), + // CreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-08-25T09:22:46.68Z"); return t}()), + // MaxSizeBytes: to.Ptr[int64](263882790666240), + // Status: to.Ptr("Paused"), + // }, + // SKU: &armsynapse.SKU{ + // }, + // } +} diff --git a/sdk/resourcemanager/synapse/armsynapse/zz_generated_sqlpooloperations_client.go b/sdk/resourcemanager/synapse/armsynapse/sqlpooloperations_client.go similarity index 90% rename from sdk/resourcemanager/synapse/armsynapse/zz_generated_sqlpooloperations_client.go rename to sdk/resourcemanager/synapse/armsynapse/sqlpooloperations_client.go index a01af1648f09..5f4e933d4051 100644 --- a/sdk/resourcemanager/synapse/armsynapse/zz_generated_sqlpooloperations_client.go +++ b/sdk/resourcemanager/synapse/armsynapse/sqlpooloperations_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse @@ -31,9 +32,9 @@ type SQLPoolOperationsClient struct { } // NewSQLPoolOperationsClient creates a new instance of SQLPoolOperationsClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewSQLPoolOperationsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SQLPoolOperationsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -55,12 +56,13 @@ func NewSQLPoolOperationsClient(subscriptionID string, credential azcore.TokenCr } // NewListPager - Gets a list of operations performed on the SQL pool. -// If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// sqlPoolName - SQL pool name -// options - SQLPoolOperationsClientListOptions contains the optional parameters for the SQLPoolOperationsClient.List method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - sqlPoolName - SQL pool name +// - options - SQLPoolOperationsClientListOptions contains the optional parameters for the SQLPoolOperationsClient.NewListPager +// method. func (client *SQLPoolOperationsClient) NewListPager(resourceGroupName string, workspaceName string, sqlPoolName string, options *SQLPoolOperationsClientListOptions) *runtime.Pager[SQLPoolOperationsClientListResponse] { return runtime.NewPager(runtime.PagingHandler[SQLPoolOperationsClientListResponse]{ More: func(page SQLPoolOperationsClientListResponse) bool { diff --git a/sdk/resourcemanager/synapse/armsynapse/sqlpooloperations_client_example_test.go b/sdk/resourcemanager/synapse/armsynapse/sqlpooloperations_client_example_test.go new file mode 100644 index 000000000000..1fd1e53c085d --- /dev/null +++ b/sdk/resourcemanager/synapse/armsynapse/sqlpooloperations_client_example_test.go @@ -0,0 +1,80 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armsynapse_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListSqlPoolOperations.json +func ExampleSQLPoolOperationsClient_NewListPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewSQLPoolOperationsClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListPager("sqlcrudtest-7398", "sqlcrudtest-4645", "testdb", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.SQLPoolBlobAuditingPolicySQLPoolOperationListResult = armsynapse.SQLPoolBlobAuditingPolicySQLPoolOperationListResult{ + // Value: []*armsynapse.SQLPoolOperation{ + // { + // Name: to.Ptr("11111111-1111-1111-1111-111111111111"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/operations"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-7398/providers/Microsoft.Synapse/workspaces/sqlcrudtest-4645/sqlPools/testdb/operations/11111111-1111-1111-1111-111111111111"), + // Properties: &armsynapse.SQLPoolOperationProperties{ + // Description: to.Ptr("UpdateLogicalDatabase on 'testdb', target ServiceLevelObjective S3"), + // DatabaseName: to.Ptr("testdb"), + // EstimatedCompletionTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-06-01T13:10:10Z"); return t}()), + // IsCancellable: to.Ptr(false), + // Operation: to.Ptr("UpdateLogicalDatabase"), + // OperationFriendlyName: to.Ptr("ALTER DATABASE"), + // PercentComplete: to.Ptr[int32](100), + // ServerName: to.Ptr("sqlcrudtest-4645"), + // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-06-01T09:10:08.10Z"); return t}()), + // State: to.Ptr(armsynapse.ManagementOperationStateSucceeded), + // }, + // }, + // { + // Name: to.Ptr("55555555-5555-5555-5555-555555555555"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/operations"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-7398/providers/Microsoft.Synapse/workspaces/sqlcrudtest-4645/sqlPools/testdb/operations/55555555-5555-5555-5555-555555555555"), + // Properties: &armsynapse.SQLPoolOperationProperties{ + // Description: to.Ptr("UpdateLogicalDatabase on 'testdb', target ServiceLevelObjective S3"), + // DatabaseName: to.Ptr("testdb"), + // EstimatedCompletionTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-06-01T13:10:10Z"); return t}()), + // IsCancellable: to.Ptr(true), + // Operation: to.Ptr("UpdateLogicalDatabase"), + // OperationFriendlyName: to.Ptr("ALTER DATABASE"), + // PercentComplete: to.Ptr[int32](19), + // ServerName: to.Ptr("sqlcrudtest-4645"), + // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-06-01T10:10:08.10Z"); return t}()), + // State: to.Ptr(armsynapse.ManagementOperationStateInProgress), + // }, + // }}, + // } + } +} diff --git a/sdk/resourcemanager/synapse/armsynapse/zz_generated_sqlpoolrecommendedsensitivitylabels_client.go b/sdk/resourcemanager/synapse/armsynapse/sqlpoolrecommendedsensitivitylabels_client.go similarity index 89% rename from sdk/resourcemanager/synapse/armsynapse/zz_generated_sqlpoolrecommendedsensitivitylabels_client.go rename to sdk/resourcemanager/synapse/armsynapse/sqlpoolrecommendedsensitivitylabels_client.go index 7ac8b63e5c72..d222a63d98f1 100644 --- a/sdk/resourcemanager/synapse/armsynapse/zz_generated_sqlpoolrecommendedsensitivitylabels_client.go +++ b/sdk/resourcemanager/synapse/armsynapse/sqlpoolrecommendedsensitivitylabels_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse @@ -31,9 +32,9 @@ type SQLPoolRecommendedSensitivityLabelsClient struct { } // NewSQLPoolRecommendedSensitivityLabelsClient creates a new instance of SQLPoolRecommendedSensitivityLabelsClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewSQLPoolRecommendedSensitivityLabelsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SQLPoolRecommendedSensitivityLabelsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,12 +57,13 @@ func NewSQLPoolRecommendedSensitivityLabelsClient(subscriptionID string, credent // Update - Update recommended sensitivity labels states of a given SQL Pool using an operations batch. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// sqlPoolName - SQL pool name -// options - SQLPoolRecommendedSensitivityLabelsClientUpdateOptions contains the optional parameters for the SQLPoolRecommendedSensitivityLabelsClient.Update -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - sqlPoolName - SQL pool name +// - options - SQLPoolRecommendedSensitivityLabelsClientUpdateOptions contains the optional parameters for the SQLPoolRecommendedSensitivityLabelsClient.Update +// method. func (client *SQLPoolRecommendedSensitivityLabelsClient) Update(ctx context.Context, resourceGroupName string, workspaceName string, sqlPoolName string, parameters RecommendedSensitivityLabelUpdateList, options *SQLPoolRecommendedSensitivityLabelsClientUpdateOptions) (SQLPoolRecommendedSensitivityLabelsClientUpdateResponse, error) { req, err := client.updateCreateRequest(ctx, resourceGroupName, workspaceName, sqlPoolName, parameters, options) if err != nil { diff --git a/sdk/resourcemanager/synapse/armsynapse/sqlpoolrecommendedsensitivitylabels_client_example_test.go b/sdk/resourcemanager/synapse/armsynapse/sqlpoolrecommendedsensitivitylabels_client_example_test.go new file mode 100644 index 000000000000..c26db980949f --- /dev/null +++ b/sdk/resourcemanager/synapse/armsynapse/sqlpoolrecommendedsensitivitylabels_client_example_test.go @@ -0,0 +1,62 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armsynapse_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SensitivityLabelsRecommendedUpdate.json +func ExampleSQLPoolRecommendedSensitivityLabelsClient_Update() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewSQLPoolRecommendedSensitivityLabelsClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + _, err = client.Update(ctx, "myRG", "myWorkspace", "mySqlPool", armsynapse.RecommendedSensitivityLabelUpdateList{ + Operations: []*armsynapse.RecommendedSensitivityLabelUpdate{ + { + Properties: &armsynapse.RecommendedSensitivityLabelUpdateProperties{ + Schema: to.Ptr("dbo"), + Column: to.Ptr("column1"), + Op: to.Ptr(armsynapse.RecommendedSensitivityLabelUpdateKindEnable), + Table: to.Ptr("table1"), + }, + }, + { + Properties: &armsynapse.RecommendedSensitivityLabelUpdateProperties{ + Schema: to.Ptr("dbo"), + Column: to.Ptr("column2"), + Op: to.Ptr(armsynapse.RecommendedSensitivityLabelUpdateKindEnable), + Table: to.Ptr("table2"), + }, + }, + { + Properties: &armsynapse.RecommendedSensitivityLabelUpdateProperties{ + Schema: to.Ptr("dbo"), + Column: to.Ptr("column3"), + Op: to.Ptr(armsynapse.RecommendedSensitivityLabelUpdateKindDisable), + Table: to.Ptr("table1"), + }, + }}, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } +} diff --git a/sdk/resourcemanager/synapse/armsynapse/zz_generated_sqlpoolreplicationlinks_client.go b/sdk/resourcemanager/synapse/armsynapse/sqlpoolreplicationlinks_client.go similarity index 89% rename from sdk/resourcemanager/synapse/armsynapse/zz_generated_sqlpoolreplicationlinks_client.go rename to sdk/resourcemanager/synapse/armsynapse/sqlpoolreplicationlinks_client.go index dfb77d0985a8..1de7bd223b6d 100644 --- a/sdk/resourcemanager/synapse/armsynapse/zz_generated_sqlpoolreplicationlinks_client.go +++ b/sdk/resourcemanager/synapse/armsynapse/sqlpoolreplicationlinks_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse @@ -31,9 +32,9 @@ type SQLPoolReplicationLinksClient struct { } // NewSQLPoolReplicationLinksClient creates a new instance of SQLPoolReplicationLinksClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewSQLPoolReplicationLinksClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SQLPoolReplicationLinksClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,13 +57,14 @@ func NewSQLPoolReplicationLinksClient(subscriptionID string, credential azcore.T // GetByName - Get SQL pool replication link by name. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// sqlPoolName - SQL pool name -// linkID - The ID of the replication link. -// options - SQLPoolReplicationLinksClientGetByNameOptions contains the optional parameters for the SQLPoolReplicationLinksClient.GetByName -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - sqlPoolName - SQL pool name +// - linkID - The ID of the replication link. +// - options - SQLPoolReplicationLinksClientGetByNameOptions contains the optional parameters for the SQLPoolReplicationLinksClient.GetByName +// method. func (client *SQLPoolReplicationLinksClient) GetByName(ctx context.Context, resourceGroupName string, workspaceName string, sqlPoolName string, linkID string, options *SQLPoolReplicationLinksClientGetByNameOptions) (SQLPoolReplicationLinksClientGetByNameResponse, error) { req, err := client.getByNameCreateRequest(ctx, resourceGroupName, workspaceName, sqlPoolName, linkID, options) if err != nil { @@ -122,13 +124,13 @@ func (client *SQLPoolReplicationLinksClient) getByNameHandleResponse(resp *http. } // NewListPager - Lists a Sql pool's replication links. -// If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// sqlPoolName - SQL pool name -// options - SQLPoolReplicationLinksClientListOptions contains the optional parameters for the SQLPoolReplicationLinksClient.List -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - sqlPoolName - SQL pool name +// - options - SQLPoolReplicationLinksClientListOptions contains the optional parameters for the SQLPoolReplicationLinksClient.NewListPager +// method. func (client *SQLPoolReplicationLinksClient) NewListPager(resourceGroupName string, workspaceName string, sqlPoolName string, options *SQLPoolReplicationLinksClientListOptions) *runtime.Pager[SQLPoolReplicationLinksClientListResponse] { return runtime.NewPager(runtime.PagingHandler[SQLPoolReplicationLinksClientListResponse]{ More: func(page SQLPoolReplicationLinksClientListResponse) bool { diff --git a/sdk/resourcemanager/synapse/armsynapse/sqlpoolreplicationlinks_client_example_test.go b/sdk/resourcemanager/synapse/armsynapse/sqlpoolreplicationlinks_client_example_test.go new file mode 100644 index 000000000000..e1ea539e7fc1 --- /dev/null +++ b/sdk/resourcemanager/synapse/armsynapse/sqlpoolreplicationlinks_client_example_test.go @@ -0,0 +1,102 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armsynapse_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListSqlPoolReplicationLinks.json +func ExampleSQLPoolReplicationLinksClient_NewListPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewSQLPoolReplicationLinksClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListPager("sqlcrudtest-4799", "sqlcrudtest-6440", "testdb", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.ReplicationLinkListResult = armsynapse.ReplicationLinkListResult{ + // Value: []*armsynapse.ReplicationLink{ + // { + // Name: to.Ptr("5b301b68-03f6-4b26-b0f4-73ebb8634238"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/replicationLinks"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-4799/providers/Microsoft.Synapse/workspaces/sqlcrudtest-6440/sqlPools/testdb/replicationLinks/5b301b68-03f6-4b26-b0f4-73ebb8634238"), + // Location: to.Ptr("Japan East"), + // Properties: &armsynapse.ReplicationLinkProperties{ + // IsTerminationAllowed: to.Ptr(true), + // PartnerDatabase: to.Ptr("testdb"), + // PartnerLocation: to.Ptr("Japan East"), + // PartnerRole: to.Ptr(armsynapse.ReplicationRolePrimary), + // PartnerServer: to.Ptr("sqlcrudtest-5961"), + // PercentComplete: to.Ptr[int32](100), + // ReplicationMode: to.Ptr("ASYNC"), + // ReplicationState: to.Ptr(armsynapse.ReplicationStateCATCHUP), + // Role: to.Ptr(armsynapse.ReplicationRoleSecondary), + // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-10T01:44:27.117Z"); return t}()), + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolReplicationLinks_GetByName.json +func ExampleSQLPoolReplicationLinksClient_GetByName() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewSQLPoolReplicationLinksClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.GetByName(ctx, "sqlcrudtest-4799", "sqlcrudtest-6440", "testdb", "5b301b68-03f6-4b26-b0f4-73ebb8634238", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.ReplicationLink = armsynapse.ReplicationLink{ + // Name: to.Ptr("5b301b68-03f6-4b26-b0f4-73ebb8634238"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/replicationLinks"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-4799/providers/Microsoft.Synapse/workspaces/sqlcrudtest-6440/sqlPools/testdb/replicationLinks/5b301b68-03f6-4b26-b0f4-73ebb8634238"), + // Location: to.Ptr("Japan East"), + // Properties: &armsynapse.ReplicationLinkProperties{ + // IsTerminationAllowed: to.Ptr(true), + // PartnerDatabase: to.Ptr("testdb"), + // PartnerLocation: to.Ptr("Japan East"), + // PartnerRole: to.Ptr(armsynapse.ReplicationRolePrimary), + // PartnerServer: to.Ptr("sqlcrudtest-5961"), + // PercentComplete: to.Ptr[int32](100), + // ReplicationMode: to.Ptr("ASYNC"), + // ReplicationState: to.Ptr(armsynapse.ReplicationStateCATCHUP), + // Role: to.Ptr(armsynapse.ReplicationRoleSecondary), + // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-10T01:44:27.117Z"); return t}()), + // }, + // } +} diff --git a/sdk/resourcemanager/synapse/armsynapse/zz_generated_sqlpoolrestorepoints_client.go b/sdk/resourcemanager/synapse/armsynapse/sqlpoolrestorepoints_client.go similarity index 89% rename from sdk/resourcemanager/synapse/armsynapse/zz_generated_sqlpoolrestorepoints_client.go rename to sdk/resourcemanager/synapse/armsynapse/sqlpoolrestorepoints_client.go index 35f8506e6d4a..880f24492149 100644 --- a/sdk/resourcemanager/synapse/armsynapse/zz_generated_sqlpoolrestorepoints_client.go +++ b/sdk/resourcemanager/synapse/armsynapse/sqlpoolrestorepoints_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse @@ -31,9 +32,9 @@ type SQLPoolRestorePointsClient struct { } // NewSQLPoolRestorePointsClient creates a new instance of SQLPoolRestorePointsClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewSQLPoolRestorePointsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SQLPoolRestorePointsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,13 +57,14 @@ func NewSQLPoolRestorePointsClient(subscriptionID string, credential azcore.Toke // BeginCreate - Creates a restore point for a data warehouse. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// sqlPoolName - SQL pool name -// parameters - The definition for creating the restore point of this Sql pool. -// options - SQLPoolRestorePointsClientBeginCreateOptions contains the optional parameters for the SQLPoolRestorePointsClient.BeginCreate -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - sqlPoolName - SQL pool name +// - parameters - The definition for creating the restore point of this Sql pool. +// - options - SQLPoolRestorePointsClientBeginCreateOptions contains the optional parameters for the SQLPoolRestorePointsClient.BeginCreate +// method. func (client *SQLPoolRestorePointsClient) BeginCreate(ctx context.Context, resourceGroupName string, workspaceName string, sqlPoolName string, parameters CreateSQLPoolRestorePointDefinition, options *SQLPoolRestorePointsClientBeginCreateOptions) (*runtime.Poller[SQLPoolRestorePointsClientCreateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.create(ctx, resourceGroupName, workspaceName, sqlPoolName, parameters, options) @@ -79,6 +81,7 @@ func (client *SQLPoolRestorePointsClient) BeginCreate(ctx context.Context, resou // Create - Creates a restore point for a data warehouse. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 func (client *SQLPoolRestorePointsClient) create(ctx context.Context, resourceGroupName string, workspaceName string, sqlPoolName string, parameters CreateSQLPoolRestorePointDefinition, options *SQLPoolRestorePointsClientBeginCreateOptions) (*http.Response, error) { req, err := client.createCreateRequest(ctx, resourceGroupName, workspaceName, sqlPoolName, parameters, options) @@ -127,13 +130,14 @@ func (client *SQLPoolRestorePointsClient) createCreateRequest(ctx context.Contex // Delete - Deletes a restore point. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// sqlPoolName - SQL pool name -// restorePointName - The name of the restore point. -// options - SQLPoolRestorePointsClientDeleteOptions contains the optional parameters for the SQLPoolRestorePointsClient.Delete -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - sqlPoolName - SQL pool name +// - restorePointName - The name of the restore point. +// - options - SQLPoolRestorePointsClientDeleteOptions contains the optional parameters for the SQLPoolRestorePointsClient.Delete +// method. func (client *SQLPoolRestorePointsClient) Delete(ctx context.Context, resourceGroupName string, workspaceName string, sqlPoolName string, restorePointName string, options *SQLPoolRestorePointsClientDeleteOptions) (SQLPoolRestorePointsClientDeleteResponse, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, workspaceName, sqlPoolName, restorePointName, options) if err != nil { @@ -184,13 +188,14 @@ func (client *SQLPoolRestorePointsClient) deleteCreateRequest(ctx context.Contex // Get - Gets a restore point. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// sqlPoolName - SQL pool name -// restorePointName - The name of the restore point. -// options - SQLPoolRestorePointsClientGetOptions contains the optional parameters for the SQLPoolRestorePointsClient.Get -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - sqlPoolName - SQL pool name +// - restorePointName - The name of the restore point. +// - options - SQLPoolRestorePointsClientGetOptions contains the optional parameters for the SQLPoolRestorePointsClient.Get +// method. func (client *SQLPoolRestorePointsClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, sqlPoolName string, restorePointName string, options *SQLPoolRestorePointsClientGetOptions) (SQLPoolRestorePointsClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, workspaceName, sqlPoolName, restorePointName, options) if err != nil { @@ -250,13 +255,13 @@ func (client *SQLPoolRestorePointsClient) getHandleResponse(resp *http.Response) } // NewListPager - Get SQL pool backup information -// If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// sqlPoolName - SQL pool name -// options - SQLPoolRestorePointsClientListOptions contains the optional parameters for the SQLPoolRestorePointsClient.List -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - sqlPoolName - SQL pool name +// - options - SQLPoolRestorePointsClientListOptions contains the optional parameters for the SQLPoolRestorePointsClient.NewListPager +// method. func (client *SQLPoolRestorePointsClient) NewListPager(resourceGroupName string, workspaceName string, sqlPoolName string, options *SQLPoolRestorePointsClientListOptions) *runtime.Pager[SQLPoolRestorePointsClientListResponse] { return runtime.NewPager(runtime.PagingHandler[SQLPoolRestorePointsClientListResponse]{ More: func(page SQLPoolRestorePointsClientListResponse) bool { diff --git a/sdk/resourcemanager/synapse/armsynapse/sqlpoolrestorepoints_client_example_test.go b/sdk/resourcemanager/synapse/armsynapse/sqlpoolrestorepoints_client_example_test.go new file mode 100644 index 000000000000..c39cce72e203 --- /dev/null +++ b/sdk/resourcemanager/synapse/armsynapse/sqlpoolrestorepoints_client_example_test.go @@ -0,0 +1,164 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armsynapse_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListSqlPoolRestorePoints.json +func ExampleSQLPoolRestorePointsClient_NewListPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewSQLPoolRestorePointsClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListPager("Default-SQL-SouthEastAsia", "testserver", "testDatabase", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.RestorePointListResult = armsynapse.RestorePointListResult{ + // Value: []*armsynapse.RestorePoint{ + // { + // Name: to.Ptr("131546477590000000"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/restorePoints"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/providers/Microsoft.Synapse/workspaces/testserver/sqlPools/testDatabase/restorePoints/131546477590000000"), + // Location: to.Ptr("japaneast"), + // Properties: &armsynapse.RestorePointProperties{ + // RestorePointCreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-10T08:00:00.000Z"); return t}()), + // RestorePointLabel: to.Ptr("mylabel1"), + // RestorePointType: to.Ptr(armsynapse.RestorePointTypeDISCRETE), + // }, + // }, + // { + // Name: to.Ptr("131553636140000000"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/restorePoints"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/providers/Microsoft.Synapse/workspaces/testserver/sqlPools/testDatabase/restorePoints/131553636140000000"), + // Location: to.Ptr("japaneast"), + // Properties: &armsynapse.RestorePointProperties{ + // RestorePointCreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-17T03:40:14Z"); return t}()), + // RestorePointLabel: to.Ptr("mylabel2"), + // RestorePointType: to.Ptr(armsynapse.RestorePointTypeDISCRETE), + // }, + // }, + // { + // Name: to.Ptr("131553619750000000"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/restorePoints"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/providers/Microsoft.Synapse/workspaces/testserver/sqlPools/testDatabase/restorePoints/131553619750000000"), + // Location: to.Ptr("japaneast"), + // Properties: &armsynapse.RestorePointProperties{ + // RestorePointCreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-17T03:12:55Z"); return t}()), + // RestorePointType: to.Ptr(armsynapse.RestorePointTypeDISCRETE), + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateSqlPoolRestorePoints.json +func ExampleSQLPoolRestorePointsClient_BeginCreate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewSQLPoolRestorePointsClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreate(ctx, "Default-SQL-SouthEastAsia", "testserver", "testDatabase", armsynapse.CreateSQLPoolRestorePointDefinition{ + RestorePointLabel: to.Ptr("mylabel"), + }, 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.RestorePoint = armsynapse.RestorePoint{ + // Name: to.Ptr("131546477590000000"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/restorePoints"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/providers/Microsoft.Synapse/workspaces/testserver/sqlPools/testDatabase/restorePoints/131546477590000000"), + // Location: to.Ptr("japaneast"), + // Properties: &armsynapse.RestorePointProperties{ + // RestorePointCreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-10T08:00:00.000Z"); return t}()), + // RestorePointLabel: to.Ptr("mylabel"), + // RestorePointType: to.Ptr(armsynapse.RestorePointTypeDISCRETE), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolRestorePointsGet.json +func ExampleSQLPoolRestorePointsClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewSQLPoolRestorePointsClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "Default-SQL-SouthEastAsia", "testws", "testpool", "131546477590000000", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.RestorePoint = armsynapse.RestorePoint{ + // Name: to.Ptr("131546477590000000"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/restorePoints"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/providers/Microsoft.Synapse/workspaces/testws/sqlPools/testpool/restorePoints/131546477590000000"), + // Location: to.Ptr("japaneast"), + // Properties: &armsynapse.RestorePointProperties{ + // RestorePointCreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-10T08:00:00.000Z"); return t}()), + // RestorePointLabel: to.Ptr("mylabel"), + // RestorePointType: to.Ptr(armsynapse.RestorePointTypeDISCRETE), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolRestorePointsDelete.json +func ExampleSQLPoolRestorePointsClient_Delete() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewSQLPoolRestorePointsClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + _, err = client.Delete(ctx, "Default-SQL-SouthEastAsia", "testws", "testpool", "131546477590000000", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } +} diff --git a/sdk/resourcemanager/synapse/armsynapse/zz_generated_sqlpools_client.go b/sdk/resourcemanager/synapse/armsynapse/sqlpools_client.go similarity index 86% rename from sdk/resourcemanager/synapse/armsynapse/zz_generated_sqlpools_client.go rename to sdk/resourcemanager/synapse/armsynapse/sqlpools_client.go index 528526e8bf96..d814488fb76c 100644 --- a/sdk/resourcemanager/synapse/armsynapse/zz_generated_sqlpools_client.go +++ b/sdk/resourcemanager/synapse/armsynapse/sqlpools_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse @@ -31,9 +32,9 @@ type SQLPoolsClient struct { } // NewSQLPoolsClient creates a new instance of SQLPoolsClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewSQLPoolsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SQLPoolsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,12 +57,13 @@ func NewSQLPoolsClient(subscriptionID string, credential azcore.TokenCredential, // BeginCreate - Create a SQL pool // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// sqlPoolName - SQL pool name -// sqlPoolInfo - The SQL pool to create -// options - SQLPoolsClientBeginCreateOptions contains the optional parameters for the SQLPoolsClient.BeginCreate method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - sqlPoolName - SQL pool name +// - sqlPoolInfo - The SQL pool to create +// - options - SQLPoolsClientBeginCreateOptions contains the optional parameters for the SQLPoolsClient.BeginCreate method. func (client *SQLPoolsClient) BeginCreate(ctx context.Context, resourceGroupName string, workspaceName string, sqlPoolName string, sqlPoolInfo SQLPool, options *SQLPoolsClientBeginCreateOptions) (*runtime.Poller[SQLPoolsClientCreateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.create(ctx, resourceGroupName, workspaceName, sqlPoolName, sqlPoolInfo, options) @@ -78,6 +80,7 @@ func (client *SQLPoolsClient) BeginCreate(ctx context.Context, resourceGroupName // Create - Create a SQL pool // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 func (client *SQLPoolsClient) create(ctx context.Context, resourceGroupName string, workspaceName string, sqlPoolName string, sqlPoolInfo SQLPool, options *SQLPoolsClientBeginCreateOptions) (*http.Response, error) { req, err := client.createCreateRequest(ctx, resourceGroupName, workspaceName, sqlPoolName, sqlPoolInfo, options) @@ -88,7 +91,7 @@ func (client *SQLPoolsClient) create(ctx context.Context, resourceGroupName stri if err != nil { return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted, http.StatusNotFound) { + if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { return nil, runtime.NewResponseError(resp) } return resp, nil @@ -126,11 +129,12 @@ func (client *SQLPoolsClient) createCreateRequest(ctx context.Context, resourceG // BeginDelete - Delete a SQL pool // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// sqlPoolName - SQL pool name -// options - SQLPoolsClientBeginDeleteOptions contains the optional parameters for the SQLPoolsClient.BeginDelete method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - sqlPoolName - SQL pool name +// - options - SQLPoolsClientBeginDeleteOptions contains the optional parameters for the SQLPoolsClient.BeginDelete method. func (client *SQLPoolsClient) BeginDelete(ctx context.Context, resourceGroupName string, workspaceName string, sqlPoolName string, options *SQLPoolsClientBeginDeleteOptions) (*runtime.Poller[SQLPoolsClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, workspaceName, sqlPoolName, options) @@ -147,6 +151,7 @@ func (client *SQLPoolsClient) BeginDelete(ctx context.Context, resourceGroupName // Delete - Delete a SQL pool // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 func (client *SQLPoolsClient) deleteOperation(ctx context.Context, resourceGroupName string, workspaceName string, sqlPoolName string, options *SQLPoolsClientBeginDeleteOptions) (*http.Response, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, workspaceName, sqlPoolName, options) @@ -195,11 +200,12 @@ func (client *SQLPoolsClient) deleteCreateRequest(ctx context.Context, resourceG // Get - Get SQL pool properties // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// sqlPoolName - SQL pool name -// options - SQLPoolsClientGetOptions contains the optional parameters for the SQLPoolsClient.Get method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - sqlPoolName - SQL pool name +// - options - SQLPoolsClientGetOptions contains the optional parameters for the SQLPoolsClient.Get method. func (client *SQLPoolsClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, sqlPoolName string, options *SQLPoolsClientGetOptions) (SQLPoolsClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, workspaceName, sqlPoolName, options) if err != nil { @@ -255,12 +261,12 @@ func (client *SQLPoolsClient) getHandleResponse(resp *http.Response) (SQLPoolsCl } // NewListByWorkspacePager - List all SQL pools -// If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// options - SQLPoolsClientListByWorkspaceOptions contains the optional parameters for the SQLPoolsClient.ListByWorkspace -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - options - SQLPoolsClientListByWorkspaceOptions contains the optional parameters for the SQLPoolsClient.NewListByWorkspacePager +// method. func (client *SQLPoolsClient) NewListByWorkspacePager(resourceGroupName string, workspaceName string, options *SQLPoolsClientListByWorkspaceOptions) *runtime.Pager[SQLPoolsClientListByWorkspaceResponse] { return runtime.NewPager(runtime.PagingHandler[SQLPoolsClientListByWorkspaceResponse]{ More: func(page SQLPoolsClientListByWorkspaceResponse) bool { @@ -326,11 +332,12 @@ func (client *SQLPoolsClient) listByWorkspaceHandleResponse(resp *http.Response) // BeginPause - Pause a SQL pool // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// sqlPoolName - SQL pool name -// options - SQLPoolsClientBeginPauseOptions contains the optional parameters for the SQLPoolsClient.BeginPause method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - sqlPoolName - SQL pool name +// - options - SQLPoolsClientBeginPauseOptions contains the optional parameters for the SQLPoolsClient.BeginPause method. func (client *SQLPoolsClient) BeginPause(ctx context.Context, resourceGroupName string, workspaceName string, sqlPoolName string, options *SQLPoolsClientBeginPauseOptions) (*runtime.Poller[SQLPoolsClientPauseResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.pause(ctx, resourceGroupName, workspaceName, sqlPoolName, options) @@ -347,6 +354,7 @@ func (client *SQLPoolsClient) BeginPause(ctx context.Context, resourceGroupName // Pause - Pause a SQL pool // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 func (client *SQLPoolsClient) pause(ctx context.Context, resourceGroupName string, workspaceName string, sqlPoolName string, options *SQLPoolsClientBeginPauseOptions) (*http.Response, error) { req, err := client.pauseCreateRequest(ctx, resourceGroupName, workspaceName, sqlPoolName, options) @@ -395,12 +403,13 @@ func (client *SQLPoolsClient) pauseCreateRequest(ctx context.Context, resourceGr // Rename - Rename a SQL pool. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// sqlPoolName - SQL pool name -// parameters - The resource move definition for renaming this Sql pool. -// options - SQLPoolsClientRenameOptions contains the optional parameters for the SQLPoolsClient.Rename method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - sqlPoolName - SQL pool name +// - parameters - The resource move definition for renaming this Sql pool. +// - options - SQLPoolsClientRenameOptions contains the optional parameters for the SQLPoolsClient.Rename method. func (client *SQLPoolsClient) Rename(ctx context.Context, resourceGroupName string, workspaceName string, sqlPoolName string, parameters ResourceMoveDefinition, options *SQLPoolsClientRenameOptions) (SQLPoolsClientRenameResponse, error) { req, err := client.renameCreateRequest(ctx, resourceGroupName, workspaceName, sqlPoolName, parameters, options) if err != nil { @@ -447,11 +456,12 @@ func (client *SQLPoolsClient) renameCreateRequest(ctx context.Context, resourceG // BeginResume - Resume a SQL pool // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// sqlPoolName - SQL pool name -// options - SQLPoolsClientBeginResumeOptions contains the optional parameters for the SQLPoolsClient.BeginResume method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - sqlPoolName - SQL pool name +// - options - SQLPoolsClientBeginResumeOptions contains the optional parameters for the SQLPoolsClient.BeginResume method. func (client *SQLPoolsClient) BeginResume(ctx context.Context, resourceGroupName string, workspaceName string, sqlPoolName string, options *SQLPoolsClientBeginResumeOptions) (*runtime.Poller[SQLPoolsClientResumeResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.resume(ctx, resourceGroupName, workspaceName, sqlPoolName, options) @@ -468,6 +478,7 @@ func (client *SQLPoolsClient) BeginResume(ctx context.Context, resourceGroupName // Resume - Resume a SQL pool // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 func (client *SQLPoolsClient) resume(ctx context.Context, resourceGroupName string, workspaceName string, sqlPoolName string, options *SQLPoolsClientBeginResumeOptions) (*http.Response, error) { req, err := client.resumeCreateRequest(ctx, resourceGroupName, workspaceName, sqlPoolName, options) @@ -514,31 +525,48 @@ func (client *SQLPoolsClient) resumeCreateRequest(ctx context.Context, resourceG return req, nil } +// BeginUpdate - Apply a partial update to a SQL pool +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2021-06-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - sqlPoolName - SQL pool name +// - sqlPoolInfo - The updated SQL pool properties +// - options - SQLPoolsClientBeginUpdateOptions contains the optional parameters for the SQLPoolsClient.BeginUpdate method. +func (client *SQLPoolsClient) BeginUpdate(ctx context.Context, resourceGroupName string, workspaceName string, sqlPoolName string, sqlPoolInfo SQLPoolPatchInfo, options *SQLPoolsClientBeginUpdateOptions) (*runtime.Poller[SQLPoolsClientUpdateResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.update(ctx, resourceGroupName, workspaceName, sqlPoolName, sqlPoolInfo, options) + if err != nil { + return nil, err + } + return runtime.NewPoller[SQLPoolsClientUpdateResponse](resp, client.pl, nil) + } else { + return runtime.NewPollerFromResumeToken[SQLPoolsClientUpdateResponse](options.ResumeToken, client.pl, nil) + } +} + // Update - Apply a partial update to a SQL pool // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// sqlPoolName - SQL pool name -// sqlPoolInfo - The updated SQL pool properties -// options - SQLPoolsClientUpdateOptions contains the optional parameters for the SQLPoolsClient.Update method. -func (client *SQLPoolsClient) Update(ctx context.Context, resourceGroupName string, workspaceName string, sqlPoolName string, sqlPoolInfo SQLPoolPatchInfo, options *SQLPoolsClientUpdateOptions) (SQLPoolsClientUpdateResponse, error) { +func (client *SQLPoolsClient) update(ctx context.Context, resourceGroupName string, workspaceName string, sqlPoolName string, sqlPoolInfo SQLPoolPatchInfo, options *SQLPoolsClientBeginUpdateOptions) (*http.Response, error) { req, err := client.updateCreateRequest(ctx, resourceGroupName, workspaceName, sqlPoolName, sqlPoolInfo, options) if err != nil { - return SQLPoolsClientUpdateResponse{}, err + return nil, err } resp, err := client.pl.Do(req) if err != nil { - return SQLPoolsClientUpdateResponse{}, err + return nil, err } if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return SQLPoolsClientUpdateResponse{}, runtime.NewResponseError(resp) + return nil, runtime.NewResponseError(resp) } - return client.updateHandleResponse(resp) + return resp, nil } // updateCreateRequest creates the Update request. -func (client *SQLPoolsClient) updateCreateRequest(ctx context.Context, resourceGroupName string, workspaceName string, sqlPoolName string, sqlPoolInfo SQLPoolPatchInfo, options *SQLPoolsClientUpdateOptions) (*policy.Request, error) { +func (client *SQLPoolsClient) updateCreateRequest(ctx context.Context, resourceGroupName string, workspaceName string, sqlPoolName string, sqlPoolInfo SQLPoolPatchInfo, options *SQLPoolsClientBeginUpdateOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}" if client.subscriptionID == "" { return nil, errors.New("parameter client.subscriptionID cannot be empty") @@ -566,12 +594,3 @@ func (client *SQLPoolsClient) updateCreateRequest(ctx context.Context, resourceG req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, sqlPoolInfo) } - -// updateHandleResponse handles the Update response. -func (client *SQLPoolsClient) updateHandleResponse(resp *http.Response) (SQLPoolsClientUpdateResponse, error) { - result := SQLPoolsClientUpdateResponse{} - if err := runtime.UnmarshalAsJSON(resp, &result.SQLPool); err != nil { - return SQLPoolsClientUpdateResponse{}, err - } - return result, nil -} diff --git a/sdk/resourcemanager/synapse/armsynapse/sqlpools_client_example_test.go b/sdk/resourcemanager/synapse/armsynapse/sqlpools_client_example_test.go new file mode 100644 index 000000000000..b7de250a0825 --- /dev/null +++ b/sdk/resourcemanager/synapse/armsynapse/sqlpools_client_example_test.go @@ -0,0 +1,486 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armsynapse_test + +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/synapse/armsynapse" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPool.json +func ExampleSQLPoolsClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewSQLPoolsClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-9187", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.SQLPool = armsynapse.SQLPool{ + // Name: to.Ptr("sqlcrudtest-9187"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6852/providers/Microsoft.Synapse/workspaces/sqlcrudtest-2080/sqlPools/sqlcrudtest-9187"), + // Location: to.Ptr("Japan East"), + // Tags: map[string]*string{ + // "tagKey1": to.Ptr("TagValue1"), + // }, + // Properties: &armsynapse.SQLPoolResourceProperties{ + // Collation: to.Ptr("SQL_Latin1_General_CP1_CI_AS"), + // CreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-10T00:56:19.2Z"); return t}()), + // MaxSizeBytes: to.Ptr[int64](268435456000), + // ProvisioningState: to.Ptr("Succeeded"), + // RestorePointInTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "0001-01-01T00:00:00Z"); return t}()), + // Status: to.Ptr("Online"), + // StorageAccountType: to.Ptr(armsynapse.StorageAccountTypeGRS), + // }, + // SKU: &armsynapse.SKU{ + // Name: to.Ptr("DW100c"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/UpdateSqlPool.json +func ExampleSQLPoolsClient_BeginUpdate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewSQLPoolsClient("01234567-89ab-4def-0123-456789abcdef", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginUpdate(ctx, "ExampleResourceGroup", "ExampleWorkspace", "ExampleSqlPool", armsynapse.SQLPoolPatchInfo{ + Location: to.Ptr("West US 2"), + Properties: &armsynapse.SQLPoolResourceProperties{ + Collation: to.Ptr(""), + MaxSizeBytes: to.Ptr[int64](0), + RestorePointInTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1970-01-01T00:00:00.000Z"); return t }()), + }, + SKU: &armsynapse.SKU{ + Name: to.Ptr(""), + Tier: to.Ptr(""), + }, + Tags: map[string]*string{}, + }, 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.SQLPool = armsynapse.SQLPool{ + // Name: to.Ptr("ExampleSqlPool"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools"), + // ID: to.Ptr("/subscriptions/01234567-89ab-4def-0123-456789abcdef/resourceGroups/ExampleResourceGroup/providers/Microsoft.Synapse/workspaces/ExampleWorkspaces/sqlPools/ExampleSqlPool"), + // Location: to.Ptr("West US 2"), + // Tags: map[string]*string{ + // }, + // Properties: &armsynapse.SQLPoolResourceProperties{ + // Collation: to.Ptr(""), + // CreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1970-01-01T00:00:00.000Z"); return t}()), + // MaxSizeBytes: to.Ptr[int64](0), + // ProvisioningState: to.Ptr("Succeeded"), + // RecoverableDatabaseID: to.Ptr(""), + // RestorePointInTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1970-01-01T00:00:00.000Z"); return t}()), + // Status: to.Ptr("Paused"), + // StorageAccountType: to.Ptr(armsynapse.StorageAccountTypeGRS), + // }, + // SKU: &armsynapse.SKU{ + // Name: to.Ptr(""), + // Tier: to.Ptr(""), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateSqlPool.json +func ExampleSQLPoolsClient_BeginCreate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewSQLPoolsClient("01234567-89ab-4def-0123-456789abcdef", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreate(ctx, "ExampleResourceGroup", "ExampleWorkspace", "ExampleSqlPool", armsynapse.SQLPool{ + Location: to.Ptr("Southeast Asia"), + Tags: map[string]*string{}, + Properties: &armsynapse.SQLPoolResourceProperties{ + Collation: to.Ptr(""), + CreateMode: to.Ptr(armsynapse.CreateMode("")), + MaxSizeBytes: to.Ptr[int64](0), + RecoverableDatabaseID: to.Ptr(""), + SourceDatabaseID: to.Ptr(""), + StorageAccountType: to.Ptr(armsynapse.StorageAccountTypeLRS), + }, + SKU: &armsynapse.SKU{ + Name: to.Ptr(""), + Tier: to.Ptr(""), + }, + }, 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.SQLPool = armsynapse.SQLPool{ + // Name: to.Ptr("ExampleSqlPool"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools"), + // ID: to.Ptr("/subscriptions/01234567-89ab-4def-0123-456789abcdef/resourceGroups/ExampleResourceGroup/providers/Microsoft.Synapse/workspaces/ExampleWorkspaces/sqlPools/ExampleSqlPool"), + // Location: to.Ptr("Southeast Asia"), + // Tags: map[string]*string{ + // }, + // Properties: &armsynapse.SQLPoolResourceProperties{ + // Collation: to.Ptr(""), + // CreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1970-01-01T00:00:00.000Z"); return t}()), + // MaxSizeBytes: to.Ptr[int64](0), + // ProvisioningState: to.Ptr("Succeeded"), + // RecoverableDatabaseID: to.Ptr(""), + // RestorePointInTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1970-01-01T00:00:00.000Z"); return t}()), + // Status: to.Ptr("Paused"), + // StorageAccountType: to.Ptr(armsynapse.StorageAccountTypeLRS), + // }, + // SKU: &armsynapse.SKU{ + // Name: to.Ptr(""), + // Tier: to.Ptr(""), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeleteSqlPool.json +func ExampleSQLPoolsClient_BeginDelete() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewSQLPoolsClient("01234567-89ab-4def-0123-456789abcdef", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginDelete(ctx, "ExampleResourceGroup", "ExampleWorkspace", "ExampleSqlPool", 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.SQLPool = armsynapse.SQLPool{ + // Name: to.Ptr("ExampleSqlPool"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools"), + // ID: to.Ptr("/subscriptions/01234567-89ab-4def-0123-456789abcdef/resourceGroups/ExampleResourceGroup/providers/Microsoft.Synapse/workspaces/ExampleWorkspace/sqlPools/ExampleSqlPool"), + // Location: to.Ptr("West US 2"), + // Properties: &armsynapse.SQLPoolResourceProperties{ + // ProvisioningState: to.Ptr("Succeeded"), + // Status: to.Ptr("Paused"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListSqlPoolsInWorkspace.json +func ExampleSQLPoolsClient_NewListByWorkspacePager_listSqlAnalyticsPoolsInAWorkspace() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewSQLPoolsClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListByWorkspacePager("sqlcrudtest-6845", "sqlcrudtest-7177", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.SQLPoolInfoListResult = armsynapse.SQLPoolInfoListResult{ + // Value: []*armsynapse.SQLPool{ + // { + // Name: to.Ptr("master"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6845/providers/Microsoft.Synapse/workspaces/sqlcrudtest-7177/sqlPools/master"), + // Location: to.Ptr("Japan East"), + // Properties: &armsynapse.SQLPoolResourceProperties{ + // Collation: to.Ptr("SQL_Latin1_General_CP1_CI_AS"), + // CreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-10T00:59:33.483Z"); return t}()), + // MaxSizeBytes: to.Ptr[int64](32212254720), + // ProvisioningState: to.Ptr("Succeeded"), + // RestorePointInTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "0001-01-01T00:00:00Z"); return t}()), + // Status: to.Ptr("Online"), + // StorageAccountType: to.Ptr(armsynapse.StorageAccountTypeGRS), + // }, + // SKU: &armsynapse.SKU{ + // Name: to.Ptr("GP_Gen5_2"), + // }, + // }, + // { + // Name: to.Ptr("sqlcrudtest-1142"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6845/providers/Microsoft.Synapse/workspaces/sqlcrudtest-7177/sqlPools/sqlcrudtest-1142"), + // Location: to.Ptr("Japan East"), + // Properties: &armsynapse.SQLPoolResourceProperties{ + // Collation: to.Ptr("SQL_Latin1_General_CP1_CI_AS"), + // CreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-10T01:03:34.04Z"); return t}()), + // MaxSizeBytes: to.Ptr[int64](268435456000), + // ProvisioningState: to.Ptr("Succeeded"), + // RestorePointInTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "0001-01-01T00:00:00Z"); return t}()), + // Status: to.Ptr("Online"), + // StorageAccountType: to.Ptr(armsynapse.StorageAccountTypeGRS), + // }, + // SKU: &armsynapse.SKU{ + // Name: to.Ptr("DW100c"), + // }, + // }, + // { + // Name: to.Ptr("sqlcrudtest-2788"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6845/providers/Microsoft.Synapse/workspaces/sqlcrudtest-7177/sqlPools/sqlcrudtest-2788"), + // Location: to.Ptr("Japan East"), + // Properties: &armsynapse.SQLPoolResourceProperties{ + // Collation: to.Ptr("SQL_Latin1_General_CP1_CI_AS"), + // CreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-10T01:00:21.067Z"); return t}()), + // MaxSizeBytes: to.Ptr[int64](268435456000), + // ProvisioningState: to.Ptr("Succeeded"), + // RestorePointInTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "0001-01-01T00:00:00Z"); return t}()), + // Status: to.Ptr("Online"), + // StorageAccountType: to.Ptr(armsynapse.StorageAccountTypeGRS), + // }, + // SKU: &armsynapse.SKU{ + // Name: to.Ptr("DW100c"), + // }, + // }, + // { + // Name: to.Ptr("sqlcrudtest-6877"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6845/providers/Microsoft.Synapse/workspaces/sqlcrudtest-7177/sqlPools/sqlcrudtest-6877"), + // Location: to.Ptr("Southeast Asia"), + // Properties: &armsynapse.SQLPoolResourceProperties{ + // Collation: to.Ptr("SQL_Latin1_General_CP1_CI_AS"), + // CreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-10T01:02:28.853Z"); return t}()), + // MaxSizeBytes: to.Ptr[int64](268435456000), + // ProvisioningState: to.Ptr("Succeeded"), + // RestorePointInTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "0001-01-01T00:00:00Z"); return t}()), + // Status: to.Ptr("Online"), + // StorageAccountType: to.Ptr(armsynapse.StorageAccountTypeLRS), + // }, + // SKU: &armsynapse.SKU{ + // Name: to.Ptr("DW100c"), + // }, + // }, + // { + // Name: to.Ptr("sqlcrudtest-9888"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6845/providers/Microsoft.Synapse/workspaces/sqlcrudtest-7177/sqlPools/sqlcrudtest-9888"), + // Location: to.Ptr("Japan East"), + // Properties: &armsynapse.SQLPoolResourceProperties{ + // Collation: to.Ptr("SQL_Latin1_General_CP1_CI_AS"), + // CreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-10T01:01:25.347Z"); return t}()), + // MaxSizeBytes: to.Ptr[int64](268435456000), + // ProvisioningState: to.Ptr("Succeeded"), + // RestorePointInTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "0001-01-01T00:00:00Z"); return t}()), + // Status: to.Ptr("Online"), + // StorageAccountType: to.Ptr(armsynapse.StorageAccountTypeGRS), + // }, + // SKU: &armsynapse.SKU{ + // Name: to.Ptr("DW100c"), + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListSqlPoolsInWorkspaceWithFilter.json +func ExampleSQLPoolsClient_NewListByWorkspacePager_listSqlAnalyticsPoolsInAWorkspaceWithFilter() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewSQLPoolsClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListByWorkspacePager("sqlcrudtest-6845", "sqlcrudtest-7177", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.SQLPoolInfoListResult = armsynapse.SQLPoolInfoListResult{ + // Value: []*armsynapse.SQLPool{ + // { + // Name: to.Ptr("master"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6845/providers/Microsoft.Synapse/workspaces/sqlcrudtest-7177/sqlPools/master"), + // Location: to.Ptr("Japan East"), + // Properties: &armsynapse.SQLPoolResourceProperties{ + // Collation: to.Ptr("SQL_Latin1_General_CP1_CI_AS"), + // CreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-10T00:59:33.483Z"); return t}()), + // MaxSizeBytes: to.Ptr[int64](32212254720), + // ProvisioningState: to.Ptr("Succeeded"), + // RestorePointInTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "0001-01-01T00:00:00Z"); return t}()), + // Status: to.Ptr("Online"), + // StorageAccountType: to.Ptr(armsynapse.StorageAccountTypeGRS), + // }, + // SKU: &armsynapse.SKU{ + // Name: to.Ptr("GP_Gen5_2"), + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/PauseSqlPool.json +func ExampleSQLPoolsClient_BeginPause() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewSQLPoolsClient("01234567-89ab-4def-0123-456789abcdef", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginPause(ctx, "Default-SQL-SouthEastAsia", "testsvr", "testdwdb", 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.SQLPool = armsynapse.SQLPool{ + // Name: to.Ptr("testdwdb"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default-SQL-SouthEastAsia/providers/Microsoft.Synapse/workspaces/testsvr/sqlPools/testdwdb"), + // Location: to.Ptr("Japan East"), + // Tags: map[string]*string{ + // "tagKey1": to.Ptr("TagValue1"), + // }, + // Properties: &armsynapse.SQLPoolResourceProperties{ + // Collation: to.Ptr("SQL_Latin1_General_CP1_CI_AS"), + // CreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-10T00:56:19.2Z"); return t}()), + // MaxSizeBytes: to.Ptr[int64](268435456000), + // ProvisioningState: to.Ptr("Succeeded"), + // RestorePointInTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "0001-01-01T00:00:00Z"); return t}()), + // Status: to.Ptr("Online"), + // }, + // SKU: &armsynapse.SKU{ + // Name: to.Ptr("DW100c"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ResumeSqlPool.json +func ExampleSQLPoolsClient_BeginResume() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewSQLPoolsClient("01234567-89ab-4def-0123-456789abcdef", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginResume(ctx, "sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-9187", 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.SQLPool = armsynapse.SQLPool{ + // Name: to.Ptr("sqlcrudtest-9187"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6852/providers/Microsoft.Synapse/workspaces/sqlcrudtest-2080/sqlPools/sqlcrudtest-9187"), + // Location: to.Ptr("Japan East"), + // Tags: map[string]*string{ + // "tagKey1": to.Ptr("TagValue1"), + // }, + // Properties: &armsynapse.SQLPoolResourceProperties{ + // Collation: to.Ptr("SQL_Latin1_General_CP1_CI_AS"), + // CreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-10T00:56:19.2Z"); return t}()), + // MaxSizeBytes: to.Ptr[int64](268435456000), + // ProvisioningState: to.Ptr("Succeeded"), + // RestorePointInTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "0001-01-01T00:00:00Z"); return t}()), + // Status: to.Ptr("Online"), + // }, + // SKU: &armsynapse.SKU{ + // Name: to.Ptr("DW100c"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/RenameSqlPool.json +func ExampleSQLPoolsClient_Rename() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewSQLPoolsClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + _, err = client.Rename(ctx, "Default-SQL-SouthEastAsia", "testsvr", "testdb", armsynapse.ResourceMoveDefinition{ + ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default-SQL-SouthEastAsia/providers/Microsoft.Synapse/workspaces/testsvr/sqlPools/newtestdb"), + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } +} diff --git a/sdk/resourcemanager/synapse/armsynapse/zz_generated_sqlpoolschemas_client.go b/sdk/resourcemanager/synapse/armsynapse/sqlpoolschemas_client.go similarity index 90% rename from sdk/resourcemanager/synapse/armsynapse/zz_generated_sqlpoolschemas_client.go rename to sdk/resourcemanager/synapse/armsynapse/sqlpoolschemas_client.go index 712cac5627cf..37c1a79d37de 100644 --- a/sdk/resourcemanager/synapse/armsynapse/zz_generated_sqlpoolschemas_client.go +++ b/sdk/resourcemanager/synapse/armsynapse/sqlpoolschemas_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse @@ -31,9 +32,9 @@ type SQLPoolSchemasClient struct { } // NewSQLPoolSchemasClient creates a new instance of SQLPoolSchemasClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewSQLPoolSchemasClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SQLPoolSchemasClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,12 +57,13 @@ func NewSQLPoolSchemasClient(subscriptionID string, credential azcore.TokenCrede // Get - Get Sql Pool schema // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// sqlPoolName - SQL pool name -// schemaName - The name of the schema. -// options - SQLPoolSchemasClientGetOptions contains the optional parameters for the SQLPoolSchemasClient.Get method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - sqlPoolName - SQL pool name +// - schemaName - The name of the schema. +// - options - SQLPoolSchemasClientGetOptions contains the optional parameters for the SQLPoolSchemasClient.Get method. func (client *SQLPoolSchemasClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, sqlPoolName string, schemaName string, options *SQLPoolSchemasClientGetOptions) (SQLPoolSchemasClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, workspaceName, sqlPoolName, schemaName, options) if err != nil { @@ -121,12 +123,12 @@ func (client *SQLPoolSchemasClient) getHandleResponse(resp *http.Response) (SQLP } // NewListPager - Gets schemas of a given SQL pool. -// If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// sqlPoolName - SQL pool name -// options - SQLPoolSchemasClientListOptions contains the optional parameters for the SQLPoolSchemasClient.List method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - sqlPoolName - SQL pool name +// - options - SQLPoolSchemasClientListOptions contains the optional parameters for the SQLPoolSchemasClient.NewListPager method. func (client *SQLPoolSchemasClient) NewListPager(resourceGroupName string, workspaceName string, sqlPoolName string, options *SQLPoolSchemasClientListOptions) *runtime.Pager[SQLPoolSchemasClientListResponse] { return runtime.NewPager(runtime.PagingHandler[SQLPoolSchemasClientListResponse]{ More: func(page SQLPoolSchemasClientListResponse) bool { diff --git a/sdk/resourcemanager/synapse/armsynapse/sqlpoolschemas_client_example_test.go b/sdk/resourcemanager/synapse/armsynapse/sqlpoolschemas_client_example_test.go new file mode 100644 index 000000000000..1f3a3c27c340 --- /dev/null +++ b/sdk/resourcemanager/synapse/armsynapse/sqlpoolschemas_client_example_test.go @@ -0,0 +1,81 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armsynapse_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListSqlPoolSchema.json +func ExampleSQLPoolSchemasClient_NewListPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewSQLPoolSchemasClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListPager("myRG", "serverName", "myDatabase", &armsynapse.SQLPoolSchemasClientListOptions{Filter: nil}) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.SQLPoolSchemaListResult = armsynapse.SQLPoolSchemaListResult{ + // Value: []*armsynapse.SQLPoolSchema{ + // { + // Name: to.Ptr("dbo"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/schemas"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myRG/providers/Microsoft.Synapse/workspaces/serverName/sqlPools/myDatabase/schemas/dbo"), + // }, + // { + // Name: to.Ptr("schema2"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/schemas"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myRG/providers/Microsoft.Synapse/workspaces/serverName/sqlPools/myDatabase/schemas/schema2"), + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolSchemaGet.json +func ExampleSQLPoolSchemasClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewSQLPoolSchemasClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "myRG", "serverName", "myDatabase", "dbo", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.SQLPoolSchema = armsynapse.SQLPoolSchema{ + // Name: to.Ptr("dbo"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/schemas"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myRG/providers/Microsoft.Synapse/workspaces/serverName/sqlPools/myDatabase/schemas/dbo"), + // } +} diff --git a/sdk/resourcemanager/synapse/armsynapse/zz_generated_sqlpoolsecurityalertpolicies_client.go b/sdk/resourcemanager/synapse/armsynapse/sqlpoolsecurityalertpolicies_client.go similarity index 89% rename from sdk/resourcemanager/synapse/armsynapse/zz_generated_sqlpoolsecurityalertpolicies_client.go rename to sdk/resourcemanager/synapse/armsynapse/sqlpoolsecurityalertpolicies_client.go index 25a631f70eb2..5ddde4cd085a 100644 --- a/sdk/resourcemanager/synapse/armsynapse/zz_generated_sqlpoolsecurityalertpolicies_client.go +++ b/sdk/resourcemanager/synapse/armsynapse/sqlpoolsecurityalertpolicies_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse @@ -31,9 +32,9 @@ type SQLPoolSecurityAlertPoliciesClient struct { } // NewSQLPoolSecurityAlertPoliciesClient creates a new instance of SQLPoolSecurityAlertPoliciesClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewSQLPoolSecurityAlertPoliciesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SQLPoolSecurityAlertPoliciesClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,14 +57,15 @@ func NewSQLPoolSecurityAlertPoliciesClient(subscriptionID string, credential azc // CreateOrUpdate - Create or update a Sql pool's security alert policy. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// sqlPoolName - SQL pool name -// securityAlertPolicyName - The name of the security alert policy. -// parameters - The Sql pool security alert policy. -// options - SQLPoolSecurityAlertPoliciesClientCreateOrUpdateOptions contains the optional parameters for the SQLPoolSecurityAlertPoliciesClient.CreateOrUpdate -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - sqlPoolName - SQL pool name +// - securityAlertPolicyName - The name of the security alert policy. +// - parameters - The Sql pool security alert policy. +// - options - SQLPoolSecurityAlertPoliciesClientCreateOrUpdateOptions contains the optional parameters for the SQLPoolSecurityAlertPoliciesClient.CreateOrUpdate +// method. func (client *SQLPoolSecurityAlertPoliciesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, sqlPoolName string, securityAlertPolicyName SecurityAlertPolicyName, parameters SQLPoolSecurityAlertPolicy, options *SQLPoolSecurityAlertPoliciesClientCreateOrUpdateOptions) (SQLPoolSecurityAlertPoliciesClientCreateOrUpdateResponse, error) { req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, workspaceName, sqlPoolName, securityAlertPolicyName, parameters, options) if err != nil { @@ -124,13 +126,14 @@ func (client *SQLPoolSecurityAlertPoliciesClient) createOrUpdateHandleResponse(r // Get - Get a Sql pool's security alert policy. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// sqlPoolName - SQL pool name -// securityAlertPolicyName - The name of the security alert policy. -// options - SQLPoolSecurityAlertPoliciesClientGetOptions contains the optional parameters for the SQLPoolSecurityAlertPoliciesClient.Get -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - sqlPoolName - SQL pool name +// - securityAlertPolicyName - The name of the security alert policy. +// - options - SQLPoolSecurityAlertPoliciesClientGetOptions contains the optional parameters for the SQLPoolSecurityAlertPoliciesClient.Get +// method. func (client *SQLPoolSecurityAlertPoliciesClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, sqlPoolName string, securityAlertPolicyName SecurityAlertPolicyName, options *SQLPoolSecurityAlertPoliciesClientGetOptions) (SQLPoolSecurityAlertPoliciesClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, workspaceName, sqlPoolName, securityAlertPolicyName, options) if err != nil { @@ -190,13 +193,13 @@ func (client *SQLPoolSecurityAlertPoliciesClient) getHandleResponse(resp *http.R } // NewListPager - Get a list of Sql pool's security alert policies. -// If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// sqlPoolName - SQL pool name -// options - SQLPoolSecurityAlertPoliciesClientListOptions contains the optional parameters for the SQLPoolSecurityAlertPoliciesClient.List -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - sqlPoolName - SQL pool name +// - options - SQLPoolSecurityAlertPoliciesClientListOptions contains the optional parameters for the SQLPoolSecurityAlertPoliciesClient.NewListPager +// method. func (client *SQLPoolSecurityAlertPoliciesClient) NewListPager(resourceGroupName string, workspaceName string, sqlPoolName string, options *SQLPoolSecurityAlertPoliciesClientListOptions) *runtime.Pager[SQLPoolSecurityAlertPoliciesClientListResponse] { return runtime.NewPager(runtime.PagingHandler[SQLPoolSecurityAlertPoliciesClientListResponse]{ More: func(page SQLPoolSecurityAlertPoliciesClientListResponse) bool { diff --git a/sdk/resourcemanager/synapse/armsynapse/sqlpoolsecurityalertpolicies_client_example_test.go b/sdk/resourcemanager/synapse/armsynapse/sqlpoolsecurityalertpolicies_client_example_test.go new file mode 100644 index 000000000000..e1761b0efdb9 --- /dev/null +++ b/sdk/resourcemanager/synapse/armsynapse/sqlpoolsecurityalertpolicies_client_example_test.go @@ -0,0 +1,193 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armsynapse_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolSecurityAlertPolicies_List.json +func ExampleSQLPoolSecurityAlertPoliciesClient_NewListPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewSQLPoolSecurityAlertPoliciesClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListPager("securityalert-6852", "securityalert-2080", "testdb", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.ListSQLPoolSecurityAlertPolicies = armsynapse.ListSQLPoolSecurityAlertPolicies{ + // Value: []*armsynapse.SQLPoolSecurityAlertPolicy{ + // { + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/securityAlertPolicies"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/securityalert-6852/providers/Microsoft.Synapse/workspaces/securityalert-2080/sqlPools/testdb"), + // Properties: &armsynapse.SecurityAlertPolicyProperties{ + // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-10-08T00:00:00Z"); return t}()), + // DisabledAlerts: []*string{ + // to.Ptr("Usage_Anomaly")}, + // EmailAccountAdmins: to.Ptr(true), + // EmailAddresses: []*string{ + // to.Ptr("test@microsoft.com"), + // to.Ptr("user@microsoft.com")}, + // RetentionDays: to.Ptr[int32](0), + // State: to.Ptr(armsynapse.SecurityAlertPolicyStateEnabled), + // StorageAccountAccessKey: to.Ptr(""), + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolSecurityAlert.json +func ExampleSQLPoolSecurityAlertPoliciesClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewSQLPoolSecurityAlertPoliciesClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "securityalert-6852", "securityalert-2080", "testdb", armsynapse.SecurityAlertPolicyNameDefault, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.SQLPoolSecurityAlertPolicy = armsynapse.SQLPoolSecurityAlertPolicy{ + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/securityAlertPolicies"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/securityalert-6852/providers/Microsoft.Synapse/workspaces/securityalert-2080/sqlPools/testdb"), + // Properties: &armsynapse.SecurityAlertPolicyProperties{ + // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-10-08T00:00:00Z"); return t}()), + // DisabledAlerts: []*string{ + // to.Ptr("Usage_Anomaly")}, + // EmailAccountAdmins: to.Ptr(true), + // EmailAddresses: []*string{ + // to.Ptr("test@microsoft.com"), + // to.Ptr("user@microsoft.com")}, + // RetentionDays: to.Ptr[int32](0), + // State: to.Ptr(armsynapse.SecurityAlertPolicyStateEnabled), + // StorageAccountAccessKey: to.Ptr(""), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateSqlPoolSecurityAlertWithAllParameters.json +func ExampleSQLPoolSecurityAlertPoliciesClient_CreateOrUpdate_updateASqlPoolsThreatDetectionPolicyWithAllParameters() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewSQLPoolSecurityAlertPoliciesClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.CreateOrUpdate(ctx, "securityalert-4799", "securityalert-6440", "testdb", armsynapse.SecurityAlertPolicyNameDefault, armsynapse.SQLPoolSecurityAlertPolicy{ + Properties: &armsynapse.SecurityAlertPolicyProperties{ + DisabledAlerts: []*string{ + to.Ptr("Sql_Injection"), + to.Ptr("Usage_Anomaly")}, + EmailAccountAdmins: to.Ptr(true), + EmailAddresses: []*string{ + to.Ptr("test@microsoft.com"), + to.Ptr("user@microsoft.com")}, + RetentionDays: to.Ptr[int32](6), + State: to.Ptr(armsynapse.SecurityAlertPolicyStateEnabled), + StorageAccountAccessKey: to.Ptr("sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3RSD=="), + StorageEndpoint: to.Ptr("https://mystorage.blob.core.windows.net"), + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.SQLPoolSecurityAlertPolicy = armsynapse.SQLPoolSecurityAlertPolicy{ + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/securityAlertPolicies"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/securityalert-4799/providers/Microsoft.Synapse/workspaces/securityalert-6440/sqlPools/testdb"), + // Properties: &armsynapse.SecurityAlertPolicyProperties{ + // DisabledAlerts: []*string{ + // to.Ptr("Sql_Injection"), + // to.Ptr("Usage_Anomaly")}, + // EmailAccountAdmins: to.Ptr(true), + // EmailAddresses: []*string{ + // to.Ptr("test@microsoft.com"), + // to.Ptr("user@microsoft.com")}, + // RetentionDays: to.Ptr[int32](6), + // State: to.Ptr(armsynapse.SecurityAlertPolicyStateEnabled), + // StorageAccountAccessKey: to.Ptr(""), + // StorageEndpoint: to.Ptr("https://mystorage.blob.core.windows.net"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateSqlPoolSecurityAlertWithMinParameters.json +func ExampleSQLPoolSecurityAlertPoliciesClient_CreateOrUpdate_updateASqlPoolsThreatDetectionPolicyWithMinimalParameters() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewSQLPoolSecurityAlertPoliciesClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.CreateOrUpdate(ctx, "securityalert-4799", "securityalert-6440", "testdb", armsynapse.SecurityAlertPolicyNameDefault, armsynapse.SQLPoolSecurityAlertPolicy{ + Properties: &armsynapse.SecurityAlertPolicyProperties{ + State: to.Ptr(armsynapse.SecurityAlertPolicyStateEnabled), + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.SQLPoolSecurityAlertPolicy = armsynapse.SQLPoolSecurityAlertPolicy{ + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/securityAlertPolicies"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/securityalert-4799/providers/Microsoft.Synapse/workspaces/securityalert-6440/sqlPools/testdb"), + // Properties: &armsynapse.SecurityAlertPolicyProperties{ + // DisabledAlerts: []*string{ + // }, + // EmailAccountAdmins: to.Ptr(true), + // EmailAddresses: []*string{ + // }, + // RetentionDays: to.Ptr[int32](0), + // State: to.Ptr(armsynapse.SecurityAlertPolicyStateEnabled), + // StorageAccountAccessKey: to.Ptr(""), + // StorageEndpoint: to.Ptr(""), + // }, + // } +} diff --git a/sdk/resourcemanager/synapse/armsynapse/zz_generated_sqlpoolsensitivitylabels_client.go b/sdk/resourcemanager/synapse/armsynapse/sqlpoolsensitivitylabels_client.go similarity index 89% rename from sdk/resourcemanager/synapse/armsynapse/zz_generated_sqlpoolsensitivitylabels_client.go rename to sdk/resourcemanager/synapse/armsynapse/sqlpoolsensitivitylabels_client.go index 8a88825f0e6d..ff5f4f700992 100644 --- a/sdk/resourcemanager/synapse/armsynapse/zz_generated_sqlpoolsensitivitylabels_client.go +++ b/sdk/resourcemanager/synapse/armsynapse/sqlpoolsensitivitylabels_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse @@ -32,9 +33,9 @@ type SQLPoolSensitivityLabelsClient struct { } // NewSQLPoolSensitivityLabelsClient creates a new instance of SQLPoolSensitivityLabelsClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewSQLPoolSensitivityLabelsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SQLPoolSensitivityLabelsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,16 +58,17 @@ func NewSQLPoolSensitivityLabelsClient(subscriptionID string, credential azcore. // CreateOrUpdate - Creates or updates the sensitivity label of a given column in a Sql pool // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// sqlPoolName - SQL pool name -// schemaName - The name of the schema. -// tableName - The name of the table. -// columnName - The name of the column. -// parameters - The column sensitivity label resource. -// options - SQLPoolSensitivityLabelsClientCreateOrUpdateOptions contains the optional parameters for the SQLPoolSensitivityLabelsClient.CreateOrUpdate -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - sqlPoolName - SQL pool name +// - schemaName - The name of the schema. +// - tableName - The name of the table. +// - columnName - The name of the column. +// - parameters - The column sensitivity label resource. +// - options - SQLPoolSensitivityLabelsClientCreateOrUpdateOptions contains the optional parameters for the SQLPoolSensitivityLabelsClient.CreateOrUpdate +// method. func (client *SQLPoolSensitivityLabelsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, sqlPoolName string, schemaName string, tableName string, columnName string, parameters SensitivityLabel, options *SQLPoolSensitivityLabelsClientCreateOrUpdateOptions) (SQLPoolSensitivityLabelsClientCreateOrUpdateResponse, error) { req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName, parameters, options) if err != nil { @@ -136,15 +138,16 @@ func (client *SQLPoolSensitivityLabelsClient) createOrUpdateHandleResponse(resp // Delete - Deletes the sensitivity label of a given column in a Sql pool // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// sqlPoolName - SQL pool name -// schemaName - The name of the schema. -// tableName - The name of the table. -// columnName - The name of the column. -// options - SQLPoolSensitivityLabelsClientDeleteOptions contains the optional parameters for the SQLPoolSensitivityLabelsClient.Delete -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - sqlPoolName - SQL pool name +// - schemaName - The name of the schema. +// - tableName - The name of the table. +// - columnName - The name of the column. +// - options - SQLPoolSensitivityLabelsClientDeleteOptions contains the optional parameters for the SQLPoolSensitivityLabelsClient.Delete +// method. func (client *SQLPoolSensitivityLabelsClient) Delete(ctx context.Context, resourceGroupName string, workspaceName string, sqlPoolName string, schemaName string, tableName string, columnName string, options *SQLPoolSensitivityLabelsClientDeleteOptions) (SQLPoolSensitivityLabelsClientDeleteResponse, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName, options) if err != nil { @@ -204,15 +207,16 @@ func (client *SQLPoolSensitivityLabelsClient) deleteCreateRequest(ctx context.Co // DisableRecommendation - Disables sensitivity recommendations on a given column // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// sqlPoolName - SQL pool name -// schemaName - The name of the schema. -// tableName - The name of the table. -// columnName - The name of the column. -// options - SQLPoolSensitivityLabelsClientDisableRecommendationOptions contains the optional parameters for the SQLPoolSensitivityLabelsClient.DisableRecommendation -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - sqlPoolName - SQL pool name +// - schemaName - The name of the schema. +// - tableName - The name of the table. +// - columnName - The name of the column. +// - options - SQLPoolSensitivityLabelsClientDisableRecommendationOptions contains the optional parameters for the SQLPoolSensitivityLabelsClient.DisableRecommendation +// method. func (client *SQLPoolSensitivityLabelsClient) DisableRecommendation(ctx context.Context, resourceGroupName string, workspaceName string, sqlPoolName string, schemaName string, tableName string, columnName string, options *SQLPoolSensitivityLabelsClientDisableRecommendationOptions) (SQLPoolSensitivityLabelsClientDisableRecommendationResponse, error) { req, err := client.disableRecommendationCreateRequest(ctx, resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName, options) if err != nil { @@ -273,15 +277,16 @@ func (client *SQLPoolSensitivityLabelsClient) disableRecommendationCreateRequest // EnableRecommendation - Enables sensitivity recommendations on a given column (recommendations are enabled by default on // all columns) // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// sqlPoolName - SQL pool name -// schemaName - The name of the schema. -// tableName - The name of the table. -// columnName - The name of the column. -// options - SQLPoolSensitivityLabelsClientEnableRecommendationOptions contains the optional parameters for the SQLPoolSensitivityLabelsClient.EnableRecommendation -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - sqlPoolName - SQL pool name +// - schemaName - The name of the schema. +// - tableName - The name of the table. +// - columnName - The name of the column. +// - options - SQLPoolSensitivityLabelsClientEnableRecommendationOptions contains the optional parameters for the SQLPoolSensitivityLabelsClient.EnableRecommendation +// method. func (client *SQLPoolSensitivityLabelsClient) EnableRecommendation(ctx context.Context, resourceGroupName string, workspaceName string, sqlPoolName string, schemaName string, tableName string, columnName string, options *SQLPoolSensitivityLabelsClientEnableRecommendationOptions) (SQLPoolSensitivityLabelsClientEnableRecommendationResponse, error) { req, err := client.enableRecommendationCreateRequest(ctx, resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName, options) if err != nil { @@ -341,16 +346,17 @@ func (client *SQLPoolSensitivityLabelsClient) enableRecommendationCreateRequest( // Get - Gets the sensitivity label of a given column // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// sqlPoolName - SQL pool name -// schemaName - The name of the schema. -// tableName - The name of the table. -// columnName - The name of the column. -// sensitivityLabelSource - The source of the sensitivity label. -// options - SQLPoolSensitivityLabelsClientGetOptions contains the optional parameters for the SQLPoolSensitivityLabelsClient.Get -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - sqlPoolName - SQL pool name +// - schemaName - The name of the schema. +// - tableName - The name of the table. +// - columnName - The name of the column. +// - sensitivityLabelSource - The source of the sensitivity label. +// - options - SQLPoolSensitivityLabelsClientGetOptions contains the optional parameters for the SQLPoolSensitivityLabelsClient.Get +// method. func (client *SQLPoolSensitivityLabelsClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, sqlPoolName string, schemaName string, tableName string, columnName string, sensitivityLabelSource SensitivityLabelSource, options *SQLPoolSensitivityLabelsClientGetOptions) (SQLPoolSensitivityLabelsClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, columnName, sensitivityLabelSource, options) if err != nil { @@ -422,13 +428,13 @@ func (client *SQLPoolSensitivityLabelsClient) getHandleResponse(resp *http.Respo } // NewListCurrentPager - Gets SQL pool sensitivity labels. -// If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// sqlPoolName - SQL pool name -// options - SQLPoolSensitivityLabelsClientListCurrentOptions contains the optional parameters for the SQLPoolSensitivityLabelsClient.ListCurrent -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - sqlPoolName - SQL pool name +// - options - SQLPoolSensitivityLabelsClientListCurrentOptions contains the optional parameters for the SQLPoolSensitivityLabelsClient.NewListCurrentPager +// method. func (client *SQLPoolSensitivityLabelsClient) NewListCurrentPager(resourceGroupName string, workspaceName string, sqlPoolName string, options *SQLPoolSensitivityLabelsClientListCurrentOptions) *runtime.Pager[SQLPoolSensitivityLabelsClientListCurrentResponse] { return runtime.NewPager(runtime.PagingHandler[SQLPoolSensitivityLabelsClientListCurrentResponse]{ More: func(page SQLPoolSensitivityLabelsClientListCurrentResponse) bool { @@ -500,13 +506,13 @@ func (client *SQLPoolSensitivityLabelsClient) listCurrentHandleResponse(resp *ht } // NewListRecommendedPager - Gets sensitivity labels of a given SQL pool. -// If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// sqlPoolName - SQL pool name -// options - SQLPoolSensitivityLabelsClientListRecommendedOptions contains the optional parameters for the SQLPoolSensitivityLabelsClient.ListRecommended -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - sqlPoolName - SQL pool name +// - options - SQLPoolSensitivityLabelsClientListRecommendedOptions contains the optional parameters for the SQLPoolSensitivityLabelsClient.NewListRecommendedPager +// method. func (client *SQLPoolSensitivityLabelsClient) NewListRecommendedPager(resourceGroupName string, workspaceName string, sqlPoolName string, options *SQLPoolSensitivityLabelsClientListRecommendedOptions) *runtime.Pager[SQLPoolSensitivityLabelsClientListRecommendedResponse] { return runtime.NewPager(runtime.PagingHandler[SQLPoolSensitivityLabelsClientListRecommendedResponse]{ More: func(page SQLPoolSensitivityLabelsClientListRecommendedResponse) bool { @@ -585,12 +591,13 @@ func (client *SQLPoolSensitivityLabelsClient) listRecommendedHandleResponse(resp // Update - Update sensitivity labels of a given SQL Pool using an operations batch. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// sqlPoolName - SQL pool name -// options - SQLPoolSensitivityLabelsClientUpdateOptions contains the optional parameters for the SQLPoolSensitivityLabelsClient.Update -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - sqlPoolName - SQL pool name +// - options - SQLPoolSensitivityLabelsClientUpdateOptions contains the optional parameters for the SQLPoolSensitivityLabelsClient.Update +// method. func (client *SQLPoolSensitivityLabelsClient) Update(ctx context.Context, resourceGroupName string, workspaceName string, sqlPoolName string, parameters SensitivityLabelUpdateList, options *SQLPoolSensitivityLabelsClientUpdateOptions) (SQLPoolSensitivityLabelsClientUpdateResponse, error) { req, err := client.updateCreateRequest(ctx, resourceGroupName, workspaceName, sqlPoolName, parameters, options) if err != nil { diff --git a/sdk/resourcemanager/synapse/armsynapse/sqlpoolsensitivitylabels_client_example_test.go b/sdk/resourcemanager/synapse/armsynapse/sqlpoolsensitivitylabels_client_example_test.go new file mode 100644 index 000000000000..c4e49b01a077 --- /dev/null +++ b/sdk/resourcemanager/synapse/armsynapse/sqlpoolsensitivitylabels_client_example_test.go @@ -0,0 +1,303 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armsynapse_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListSqlPoolsSensitivityLabelsWithSourceCurrent.json +func ExampleSQLPoolSensitivityLabelsClient_NewListCurrentPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewSQLPoolSensitivityLabelsClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListCurrentPager("myRG", "myServer", "myDatabase", &armsynapse.SQLPoolSensitivityLabelsClientListCurrentOptions{Filter: nil}) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.SensitivityLabelListResult = armsynapse.SensitivityLabelListResult{ + // Value: []*armsynapse.SensitivityLabel{ + // { + // Name: to.Ptr("current"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/schemas/tables/columns/sensitivityLabels"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myRG/providers/Microsoft.Synapse/workspaces/myServer/sqlPools/myDatabase/schemas/dbo/tables/myTable/columns/myColumn3/sensitivityLabels/current"), + // Properties: &armsynapse.SensitivityLabelProperties{ + // InformationType: to.Ptr("Financial"), + // InformationTypeID: to.Ptr("d22fa6e9-5ee4-3bde-4c2b-a409604c4646"), + // LabelID: to.Ptr("05e6eaa1-075a-4fb4-a732-a92215a2444a"), + // LabelName: to.Ptr("Sensitive"), + // }, + // }, + // { + // Name: to.Ptr("current"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/schemas/tables/columns/sensitivityLabels"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myRG/providers/Microsoft.Synapse/workspaces/myServer/sqlPools/myDatabase/schemas/dbo/tables/myTable/columns/myColumn4/sensitivityLabels/current"), + // Properties: &armsynapse.SensitivityLabelProperties{ + // InformationType: to.Ptr("Email"), + // InformationTypeID: to.Ptr("d22fa6e9-5ee4-3bde-4c2b-a409604c4646"), + // LabelID: to.Ptr("bf91e08c-f4f0-478a-b016-25164b2a65ff"), + // LabelName: to.Ptr("PII"), + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SensitivityLabelsCurrentUpdate.json +func ExampleSQLPoolSensitivityLabelsClient_Update() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewSQLPoolSensitivityLabelsClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + _, err = client.Update(ctx, "myRG", "myWorkspace", "mySqlPool", armsynapse.SensitivityLabelUpdateList{ + Operations: []*armsynapse.SensitivityLabelUpdate{ + { + Properties: &armsynapse.SensitivityLabelUpdateProperties{ + Schema: to.Ptr("dbo"), + Column: to.Ptr("column1"), + Op: to.Ptr(armsynapse.SensitivityLabelUpdateKindSet), + SensitivityLabel: &armsynapse.SensitivityLabel{ + Properties: &armsynapse.SensitivityLabelProperties{ + InformationType: to.Ptr("Financial"), + InformationTypeID: to.Ptr("1D3652D6-422C-4115-82F1-65DAEBC665C8"), + LabelID: to.Ptr("3A477B16-9423-432B-AA97-6069B481CEC3"), + LabelName: to.Ptr("Highly Confidential"), + Rank: to.Ptr(armsynapse.SensitivityLabelRankLow), + }, + }, + Table: to.Ptr("table1"), + }, + }, + { + Properties: &armsynapse.SensitivityLabelUpdateProperties{ + Schema: to.Ptr("dbo"), + Column: to.Ptr("column2"), + Op: to.Ptr(armsynapse.SensitivityLabelUpdateKindSet), + SensitivityLabel: &armsynapse.SensitivityLabel{ + Properties: &armsynapse.SensitivityLabelProperties{ + InformationType: to.Ptr("PhoneNumber"), + InformationTypeID: to.Ptr("d22fa6e9-5ee4-3bde-4c2b-a409604c4646"), + LabelID: to.Ptr("bf91e08c-f4f0-478a-b016-25164b2a65ff"), + LabelName: to.Ptr("PII"), + Rank: to.Ptr(armsynapse.SensitivityLabelRankCritical), + }, + }, + Table: to.Ptr("table2"), + }, + }, + { + Properties: &armsynapse.SensitivityLabelUpdateProperties{ + Schema: to.Ptr("dbo"), + Column: to.Ptr("Column3"), + Op: to.Ptr(armsynapse.SensitivityLabelUpdateKindRemove), + Table: to.Ptr("Table1"), + }, + }}, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListSqlPoolSensitivityLabelsWithSourceRecommended.json +func ExampleSQLPoolSensitivityLabelsClient_NewListRecommendedPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewSQLPoolSensitivityLabelsClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListRecommendedPager("myRG", "myServer", "myDatabase", &armsynapse.SQLPoolSensitivityLabelsClientListRecommendedOptions{IncludeDisabledRecommendations: nil, + SkipToken: nil, + Filter: nil, + }) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.SensitivityLabelListResult = armsynapse.SensitivityLabelListResult{ + // Value: []*armsynapse.SensitivityLabel{ + // { + // Name: to.Ptr("recommended"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/schemas/tables/columns/sensitivityLabels"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myRG/providers/Microsoft.Synapse/workspaces/myServer/sqlPools/myDatabase/schemas/dbo/tables/myTable/columns/myColumn/sensitivityLabels/recommended"), + // Properties: &armsynapse.SensitivityLabelProperties{ + // InformationType: to.Ptr("Financial"), + // InformationTypeID: to.Ptr("d22fa6e9-5ee4-3bde-4c2b-a409604c4646"), + // LabelID: to.Ptr("05e6eaa1-075a-4fb4-a732-a92215a2444a"), + // LabelName: to.Ptr("Sensitive"), + // }, + // }, + // { + // Name: to.Ptr("recommended"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/schemas/tables/columns/sensitivityLabels"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myRG/providers/Microsoft.Synapse/workspaces/myServer/sqlPools/myDatabase/schemas/dbo/tables/myTable/columns/myColumn2/sensitivityLabels/recommended"), + // Properties: &armsynapse.SensitivityLabelProperties{ + // InformationType: to.Ptr("Email"), + // InformationTypeID: to.Ptr("d22fa6e9-5ee4-3bde-4c2b-a409604c4646"), + // LabelID: to.Ptr("bf91e08c-f4f0-478a-b016-25164b2a65ff"), + // LabelName: to.Ptr("PII"), + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateSqlPoolColumnSensitivityLabelWithAllParameters.json +func ExampleSQLPoolSensitivityLabelsClient_CreateOrUpdate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewSQLPoolSensitivityLabelsClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.CreateOrUpdate(ctx, "myRG", "myServer", "myDatabase", "dbo", "myTable", "myColumn", armsynapse.SensitivityLabel{ + Properties: &armsynapse.SensitivityLabelProperties{ + InformationType: to.Ptr("PhoneNumber"), + InformationTypeID: to.Ptr("d22fa6e9-5ee4-3bde-4c2b-a409604c4646"), + LabelID: to.Ptr("bf91e08c-f4f0-478a-b016-25164b2a65ff"), + LabelName: to.Ptr("PII"), + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.SensitivityLabel = armsynapse.SensitivityLabel{ + // Name: to.Ptr("current"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/schemas/tables/columns/sensitivityLabels"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myRG/providers/Microsoft.Synapse/workspaces/myServer/sqlPools/myDatabase/schemas/dbo/tables/myTable/columns/myColumn/sensitivityLabels/current"), + // Properties: &armsynapse.SensitivityLabelProperties{ + // InformationType: to.Ptr("PhoneNumber"), + // InformationTypeID: to.Ptr("d22fa6e9-5ee4-3bde-4c2b-a409604c4646"), + // LabelID: to.Ptr("bf91e08c-f4f0-478a-b016-25164b2a65ff"), + // LabelName: to.Ptr("PII"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeleteSqlPoolColumnSensitivityLabel.json +func ExampleSQLPoolSensitivityLabelsClient_Delete() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewSQLPoolSensitivityLabelsClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + _, err = client.Delete(ctx, "myRG", "myServer", "myDatabase", "dbo", "myTable", "myColumn", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolColumnSensitivityLabelGet.json +func ExampleSQLPoolSensitivityLabelsClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewSQLPoolSensitivityLabelsClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "myRG", "myServer", "myDatabase", "dbo", "myTable", "myColumn", armsynapse.SensitivityLabelSourceCurrent, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.SensitivityLabel = armsynapse.SensitivityLabel{ + // Name: to.Ptr("current"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/schemas/tables/columns/sensitivityLabels"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myRG/providers/Microsoft.Synapse/workspaces/myServer/sqlPools/myDatabase/schemas/dbo/tables/myTable/columns/myColumn/sensitivityLabels/current"), + // Properties: &armsynapse.SensitivityLabelProperties{ + // InformationType: to.Ptr("PhoneNumber"), + // InformationTypeID: to.Ptr("d22fa6e9-5ee4-3bde-4c2b-a409604c4646"), + // LabelID: to.Ptr("bf91e08c-f4f0-478a-b016-25164b2a65ff"), + // LabelName: to.Ptr("PII"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/RecommendedColumnSensitivityLabelEnable.json +func ExampleSQLPoolSensitivityLabelsClient_EnableRecommendation() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewSQLPoolSensitivityLabelsClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + _, err = client.EnableRecommendation(ctx, "myRG", "myServer", "myDatabase", "dbo", "myTable", "myColumn", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/RecommendedColumnSensitivityLabelDisable.json +func ExampleSQLPoolSensitivityLabelsClient_DisableRecommendation() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewSQLPoolSensitivityLabelsClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + _, err = client.DisableRecommendation(ctx, "myRG", "myServer", "myDatabase", "dbo", "myTable", "myColumn", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } +} diff --git a/sdk/resourcemanager/synapse/armsynapse/zz_generated_sqlpooltablecolumns_client.go b/sdk/resourcemanager/synapse/armsynapse/sqlpooltablecolumns_client.go similarity index 90% rename from sdk/resourcemanager/synapse/armsynapse/zz_generated_sqlpooltablecolumns_client.go rename to sdk/resourcemanager/synapse/armsynapse/sqlpooltablecolumns_client.go index baa78e23aad4..41a5246af777 100644 --- a/sdk/resourcemanager/synapse/armsynapse/zz_generated_sqlpooltablecolumns_client.go +++ b/sdk/resourcemanager/synapse/armsynapse/sqlpooltablecolumns_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse @@ -31,9 +32,9 @@ type SQLPoolTableColumnsClient struct { } // NewSQLPoolTableColumnsClient creates a new instance of SQLPoolTableColumnsClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewSQLPoolTableColumnsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SQLPoolTableColumnsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -55,15 +56,15 @@ func NewSQLPoolTableColumnsClient(subscriptionID string, credential azcore.Token } // NewListByTableNamePager - Gets columns in a given table in a SQL pool. -// If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// sqlPoolName - SQL pool name -// schemaName - The name of the schema. -// tableName - The name of the table. -// options - SQLPoolTableColumnsClientListByTableNameOptions contains the optional parameters for the SQLPoolTableColumnsClient.ListByTableName -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - sqlPoolName - SQL pool name +// - schemaName - The name of the schema. +// - tableName - The name of the table. +// - options - SQLPoolTableColumnsClientListByTableNameOptions contains the optional parameters for the SQLPoolTableColumnsClient.NewListByTableNamePager +// method. func (client *SQLPoolTableColumnsClient) NewListByTableNamePager(resourceGroupName string, workspaceName string, sqlPoolName string, schemaName string, tableName string, options *SQLPoolTableColumnsClientListByTableNameOptions) *runtime.Pager[SQLPoolTableColumnsClientListByTableNameResponse] { return runtime.NewPager(runtime.PagingHandler[SQLPoolTableColumnsClientListByTableNameResponse]{ More: func(page SQLPoolTableColumnsClientListByTableNameResponse) bool { diff --git a/sdk/resourcemanager/synapse/armsynapse/sqlpooltablecolumns_client_example_test.go b/sdk/resourcemanager/synapse/armsynapse/sqlpooltablecolumns_client_example_test.go new file mode 100644 index 000000000000..1d8a18ea6816 --- /dev/null +++ b/sdk/resourcemanager/synapse/armsynapse/sqlpooltablecolumns_client_example_test.go @@ -0,0 +1,62 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armsynapse_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListSqlPoolColumns.json +func ExampleSQLPoolTableColumnsClient_NewListByTableNamePager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewSQLPoolTableColumnsClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListByTableNamePager("myRG", "serverName", "myDatabase", "dbo", "table1", &armsynapse.SQLPoolTableColumnsClientListByTableNameOptions{Filter: nil}) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.SQLPoolColumnListResult = armsynapse.SQLPoolColumnListResult{ + // Value: []*armsynapse.SQLPoolColumn{ + // { + // Name: to.Ptr("col1"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/schemas/tables/columns"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myRG/providers/Microsoft.Synapse/workspaces/serverName/sqlPools/myDatabase/schemas/dbo/tables/table1/columns/col1"), + // Properties: &armsynapse.SQLPoolColumnProperties{ + // ColumnType: to.Ptr(armsynapse.ColumnDataTypeNvarchar), + // }, + // }, + // { + // Name: to.Ptr("col2"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/schemas/tables/columns"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myRG/providers/Microsoft.Synapse/workspaces/serverName/sqlPools/myDatabase/schemas/dbo/tables/table1/columns/col2"), + // Properties: &armsynapse.SQLPoolColumnProperties{ + // ColumnType: to.Ptr(armsynapse.ColumnDataTypeBit), + // }, + // }}, + // } + } +} diff --git a/sdk/resourcemanager/synapse/armsynapse/zz_generated_sqlpooltables_client.go b/sdk/resourcemanager/synapse/armsynapse/sqlpooltables_client.go similarity index 89% rename from sdk/resourcemanager/synapse/armsynapse/zz_generated_sqlpooltables_client.go rename to sdk/resourcemanager/synapse/armsynapse/sqlpooltables_client.go index f2817e57de58..6551f2d325fd 100644 --- a/sdk/resourcemanager/synapse/armsynapse/zz_generated_sqlpooltables_client.go +++ b/sdk/resourcemanager/synapse/armsynapse/sqlpooltables_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse @@ -31,9 +32,9 @@ type SQLPoolTablesClient struct { } // NewSQLPoolTablesClient creates a new instance of SQLPoolTablesClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewSQLPoolTablesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SQLPoolTablesClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,13 +57,14 @@ func NewSQLPoolTablesClient(subscriptionID string, credential azcore.TokenCreden // Get - Get Sql pool table // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// sqlPoolName - SQL pool name -// schemaName - The name of the schema. -// tableName - The name of the table. -// options - SQLPoolTablesClientGetOptions contains the optional parameters for the SQLPoolTablesClient.Get method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - sqlPoolName - SQL pool name +// - schemaName - The name of the schema. +// - tableName - The name of the table. +// - options - SQLPoolTablesClientGetOptions contains the optional parameters for the SQLPoolTablesClient.Get method. func (client *SQLPoolTablesClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, sqlPoolName string, schemaName string, tableName string, options *SQLPoolTablesClientGetOptions) (SQLPoolTablesClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, workspaceName, sqlPoolName, schemaName, tableName, options) if err != nil { @@ -126,14 +128,14 @@ func (client *SQLPoolTablesClient) getHandleResponse(resp *http.Response) (SQLPo } // NewListBySchemaPager - Gets tables of a given schema in a SQL pool. -// If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// sqlPoolName - SQL pool name -// schemaName - The name of the schema. -// options - SQLPoolTablesClientListBySchemaOptions contains the optional parameters for the SQLPoolTablesClient.ListBySchema -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - sqlPoolName - SQL pool name +// - schemaName - The name of the schema. +// - options - SQLPoolTablesClientListBySchemaOptions contains the optional parameters for the SQLPoolTablesClient.NewListBySchemaPager +// method. func (client *SQLPoolTablesClient) NewListBySchemaPager(resourceGroupName string, workspaceName string, sqlPoolName string, schemaName string, options *SQLPoolTablesClientListBySchemaOptions) *runtime.Pager[SQLPoolTablesClientListBySchemaResponse] { return runtime.NewPager(runtime.PagingHandler[SQLPoolTablesClientListBySchemaResponse]{ More: func(page SQLPoolTablesClientListBySchemaResponse) bool { diff --git a/sdk/resourcemanager/synapse/armsynapse/sqlpooltables_client_example_test.go b/sdk/resourcemanager/synapse/armsynapse/sqlpooltables_client_example_test.go new file mode 100644 index 000000000000..7117fc2b3ada --- /dev/null +++ b/sdk/resourcemanager/synapse/armsynapse/sqlpooltables_client_example_test.go @@ -0,0 +1,81 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armsynapse_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListSqlPoolTables.json +func ExampleSQLPoolTablesClient_NewListBySchemaPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewSQLPoolTablesClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListBySchemaPager("myRG", "serverName", "myDatabase", "dbo", &armsynapse.SQLPoolTablesClientListBySchemaOptions{Filter: nil}) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.SQLPoolTableListResult = armsynapse.SQLPoolTableListResult{ + // Value: []*armsynapse.SQLPoolTable{ + // { + // Name: to.Ptr("table1"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/schemas/tables"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myRG/providers/Microsoft.Synapse/workspaces/serverName/sqlPools/myDatabase/schemas/dbo/tables/table1"), + // }, + // { + // Name: to.Ptr("table2"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/schemas/tables"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myRG/providers/Microsoft.Synapse/workspaces/serverName/sqlPools/myDatabase/schemas/dbo/tables/table2"), + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolTableGet.json +func ExampleSQLPoolTablesClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewSQLPoolTablesClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "myRG", "serverName", "myDatabase", "dbo", "table1", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.SQLPoolTable = armsynapse.SQLPoolTable{ + // Name: to.Ptr("table1"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/schemas/tables"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myRG/providers/Microsoft.Synapse/workspaces/serverName/sqlPools/myDatabase/schemas/dbo/tables/table1"), + // } +} diff --git a/sdk/resourcemanager/synapse/armsynapse/zz_generated_sqlpooltransparentdataencryptions_client.go b/sdk/resourcemanager/synapse/armsynapse/sqlpooltransparentdataencryptions_client.go similarity index 88% rename from sdk/resourcemanager/synapse/armsynapse/zz_generated_sqlpooltransparentdataencryptions_client.go rename to sdk/resourcemanager/synapse/armsynapse/sqlpooltransparentdataencryptions_client.go index 5aee0eafd4ce..2255508cabcb 100644 --- a/sdk/resourcemanager/synapse/armsynapse/zz_generated_sqlpooltransparentdataencryptions_client.go +++ b/sdk/resourcemanager/synapse/armsynapse/sqlpooltransparentdataencryptions_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse @@ -31,9 +32,9 @@ type SQLPoolTransparentDataEncryptionsClient struct { } // NewSQLPoolTransparentDataEncryptionsClient creates a new instance of SQLPoolTransparentDataEncryptionsClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewSQLPoolTransparentDataEncryptionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SQLPoolTransparentDataEncryptionsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,14 +57,15 @@ func NewSQLPoolTransparentDataEncryptionsClient(subscriptionID string, credentia // CreateOrUpdate - Creates or updates a Sql pool's transparent data encryption configuration. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// sqlPoolName - SQL pool name -// transparentDataEncryptionName - The name of the transparent data encryption configuration. -// parameters - The required parameters for creating or updating transparent data encryption. -// options - SQLPoolTransparentDataEncryptionsClientCreateOrUpdateOptions contains the optional parameters for the SQLPoolTransparentDataEncryptionsClient.CreateOrUpdate -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - sqlPoolName - SQL pool name +// - transparentDataEncryptionName - The name of the transparent data encryption configuration. +// - parameters - The required parameters for creating or updating transparent data encryption. +// - options - SQLPoolTransparentDataEncryptionsClientCreateOrUpdateOptions contains the optional parameters for the SQLPoolTransparentDataEncryptionsClient.CreateOrUpdate +// method. func (client *SQLPoolTransparentDataEncryptionsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, sqlPoolName string, transparentDataEncryptionName TransparentDataEncryptionName, parameters TransparentDataEncryption, options *SQLPoolTransparentDataEncryptionsClientCreateOrUpdateOptions) (SQLPoolTransparentDataEncryptionsClientCreateOrUpdateResponse, error) { req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, workspaceName, sqlPoolName, transparentDataEncryptionName, parameters, options) if err != nil { @@ -124,13 +126,14 @@ func (client *SQLPoolTransparentDataEncryptionsClient) createOrUpdateHandleRespo // Get - Get a SQL pool's transparent data encryption configuration. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// sqlPoolName - SQL pool name -// transparentDataEncryptionName - The name of the transparent data encryption configuration. -// options - SQLPoolTransparentDataEncryptionsClientGetOptions contains the optional parameters for the SQLPoolTransparentDataEncryptionsClient.Get -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - sqlPoolName - SQL pool name +// - transparentDataEncryptionName - The name of the transparent data encryption configuration. +// - options - SQLPoolTransparentDataEncryptionsClientGetOptions contains the optional parameters for the SQLPoolTransparentDataEncryptionsClient.Get +// method. func (client *SQLPoolTransparentDataEncryptionsClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, sqlPoolName string, transparentDataEncryptionName TransparentDataEncryptionName, options *SQLPoolTransparentDataEncryptionsClientGetOptions) (SQLPoolTransparentDataEncryptionsClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, workspaceName, sqlPoolName, transparentDataEncryptionName, options) if err != nil { @@ -190,13 +193,13 @@ func (client *SQLPoolTransparentDataEncryptionsClient) getHandleResponse(resp *h } // NewListPager - Get list of SQL pool's transparent data encryption configurations. -// If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// sqlPoolName - SQL pool name -// options - SQLPoolTransparentDataEncryptionsClientListOptions contains the optional parameters for the SQLPoolTransparentDataEncryptionsClient.List -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - sqlPoolName - SQL pool name +// - options - SQLPoolTransparentDataEncryptionsClientListOptions contains the optional parameters for the SQLPoolTransparentDataEncryptionsClient.NewListPager +// method. func (client *SQLPoolTransparentDataEncryptionsClient) NewListPager(resourceGroupName string, workspaceName string, sqlPoolName string, options *SQLPoolTransparentDataEncryptionsClientListOptions) *runtime.Pager[SQLPoolTransparentDataEncryptionsClientListResponse] { return runtime.NewPager(runtime.PagingHandler[SQLPoolTransparentDataEncryptionsClientListResponse]{ More: func(page SQLPoolTransparentDataEncryptionsClientListResponse) bool { diff --git a/sdk/resourcemanager/synapse/armsynapse/sqlpooltransparentdataencryptions_client_example_test.go b/sdk/resourcemanager/synapse/armsynapse/sqlpooltransparentdataencryptions_client_example_test.go new file mode 100644 index 000000000000..92577f794ecf --- /dev/null +++ b/sdk/resourcemanager/synapse/armsynapse/sqlpooltransparentdataencryptions_client_example_test.go @@ -0,0 +1,118 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armsynapse_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolTransparentDataEncryption.json +func ExampleSQLPoolTransparentDataEncryptionsClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewSQLPoolTransparentDataEncryptionsClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-9187", armsynapse.TransparentDataEncryptionNameCurrent, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.TransparentDataEncryption = armsynapse.TransparentDataEncryption{ + // Name: to.Ptr("current"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/transparentDataEncryption"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6852/providers/Microsoft.Synapse/workspaces/sqlcrudtest-2080/sqlPools/sqlcrudtest-9187/transparentDataEncryption/current"), + // Location: to.Ptr("North Europe"), + // Properties: &armsynapse.TransparentDataEncryptionProperties{ + // Status: to.Ptr(armsynapse.TransparentDataEncryptionStatusEnabled), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateSqlPoolTransparentDataEncryption.json +func ExampleSQLPoolTransparentDataEncryptionsClient_CreateOrUpdate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewSQLPoolTransparentDataEncryptionsClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.CreateOrUpdate(ctx, "sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-9187", armsynapse.TransparentDataEncryptionNameCurrent, armsynapse.TransparentDataEncryption{ + Properties: &armsynapse.TransparentDataEncryptionProperties{ + Status: to.Ptr(armsynapse.TransparentDataEncryptionStatusEnabled), + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.TransparentDataEncryption = armsynapse.TransparentDataEncryption{ + // Name: to.Ptr("current"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/transparentDataEncryption"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6852/providers/Microsoft.Synapse/workspaces/sqlcrudtest-2080/sqlPools/sqlcrudtest-9187/transparentDataEncryption/current"), + // Location: to.Ptr("North Europe"), + // Properties: &armsynapse.TransparentDataEncryptionProperties{ + // Status: to.Ptr(armsynapse.TransparentDataEncryptionStatusEnabled), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolTransparentDataEncryptionList.json +func ExampleSQLPoolTransparentDataEncryptionsClient_NewListPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewSQLPoolTransparentDataEncryptionsClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListPager("sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-9187", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.TransparentDataEncryptionListResult = armsynapse.TransparentDataEncryptionListResult{ + // Value: []*armsynapse.TransparentDataEncryption{ + // { + // Name: to.Ptr("current"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/transparentDataEncryption"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6852/providers/Microsoft.Synapse/workspaces/sqlcrudtest-2080/sqlPools/sqlcrudtest-9187/transparentDataEncryption/current"), + // Location: to.Ptr("North Europe"), + // Properties: &armsynapse.TransparentDataEncryptionProperties{ + // Status: to.Ptr(armsynapse.TransparentDataEncryptionStatusEnabled), + // }, + // }}, + // } + } +} diff --git a/sdk/resourcemanager/synapse/armsynapse/zz_generated_sqlpoolusages_client.go b/sdk/resourcemanager/synapse/armsynapse/sqlpoolusages_client.go similarity index 90% rename from sdk/resourcemanager/synapse/armsynapse/zz_generated_sqlpoolusages_client.go rename to sdk/resourcemanager/synapse/armsynapse/sqlpoolusages_client.go index 5616fc07d591..28e60a32c504 100644 --- a/sdk/resourcemanager/synapse/armsynapse/zz_generated_sqlpoolusages_client.go +++ b/sdk/resourcemanager/synapse/armsynapse/sqlpoolusages_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse @@ -31,9 +32,9 @@ type SQLPoolUsagesClient struct { } // NewSQLPoolUsagesClient creates a new instance of SQLPoolUsagesClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewSQLPoolUsagesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SQLPoolUsagesClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -55,12 +56,12 @@ func NewSQLPoolUsagesClient(subscriptionID string, credential azcore.TokenCreden } // NewListPager - Gets SQL pool usages. -// If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// sqlPoolName - SQL pool name -// options - SQLPoolUsagesClientListOptions contains the optional parameters for the SQLPoolUsagesClient.List method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - sqlPoolName - SQL pool name +// - options - SQLPoolUsagesClientListOptions contains the optional parameters for the SQLPoolUsagesClient.NewListPager method. func (client *SQLPoolUsagesClient) NewListPager(resourceGroupName string, workspaceName string, sqlPoolName string, options *SQLPoolUsagesClientListOptions) *runtime.Pager[SQLPoolUsagesClientListResponse] { return runtime.NewPager(runtime.PagingHandler[SQLPoolUsagesClientListResponse]{ More: func(page SQLPoolUsagesClientListResponse) bool { diff --git a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpoolusages_client_test.go b/sdk/resourcemanager/synapse/armsynapse/sqlpoolusages_client_example_test.go similarity index 51% rename from sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpoolusages_client_test.go rename to sdk/resourcemanager/synapse/armsynapse/sqlpoolusages_client_example_test.go index cdb74db03472..3e0113291510 100644 --- a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpoolusages_client_test.go +++ b/sdk/resourcemanager/synapse/armsynapse/sqlpoolusages_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse_test @@ -16,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolUsageMetricsList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolUsageMetricsList.json func ExampleSQLPoolUsagesClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -27,18 +28,27 @@ func ExampleSQLPoolUsagesClient_NewListPager() { if err != nil { log.Fatalf("failed to create client: %v", err) } - pager := client.NewListPager("sqlcrudtest-6730", - "sqlcrudtest-9007", - "3481", - nil) + pager := client.NewListPager("sqlcrudtest-6730", "sqlcrudtest-9007", "3481", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.SQLPoolUsageListResult = armsynapse.SQLPoolUsageListResult{ + // Value: []*armsynapse.SQLPoolUsage{ + // { + // Name: to.Ptr("database_size"), + // CurrentValue: to.Ptr[float64](4194304), + // DisplayName: to.Ptr("Database Size"), + // Limit: to.Ptr[float64](268435456000), + // ResourceName: to.Ptr("3481"), + // Unit: to.Ptr("Bytes"), + // }}, + // } } } diff --git a/sdk/resourcemanager/synapse/armsynapse/zz_generated_sqlpoolvulnerabilityassessmentrulebaselines_client.go b/sdk/resourcemanager/synapse/armsynapse/sqlpoolvulnerabilityassessmentrulebaselines_client.go similarity index 85% rename from sdk/resourcemanager/synapse/armsynapse/zz_generated_sqlpoolvulnerabilityassessmentrulebaselines_client.go rename to sdk/resourcemanager/synapse/armsynapse/sqlpoolvulnerabilityassessmentrulebaselines_client.go index 098cca8b550c..b85a23ceeaf7 100644 --- a/sdk/resourcemanager/synapse/armsynapse/zz_generated_sqlpoolvulnerabilityassessmentrulebaselines_client.go +++ b/sdk/resourcemanager/synapse/armsynapse/sqlpoolvulnerabilityassessmentrulebaselines_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse @@ -31,9 +32,9 @@ type SQLPoolVulnerabilityAssessmentRuleBaselinesClient struct { } // NewSQLPoolVulnerabilityAssessmentRuleBaselinesClient creates a new instance of SQLPoolVulnerabilityAssessmentRuleBaselinesClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewSQLPoolVulnerabilityAssessmentRuleBaselinesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SQLPoolVulnerabilityAssessmentRuleBaselinesClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,17 +57,18 @@ func NewSQLPoolVulnerabilityAssessmentRuleBaselinesClient(subscriptionID string, // CreateOrUpdate - Creates or updates a Sql pool's vulnerability assessment rule baseline. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// sqlPoolName - SQL pool name -// vulnerabilityAssessmentName - The name of the vulnerability assessment. -// ruleID - The vulnerability assessment rule ID. -// baselineName - The name of the vulnerability assessment rule baseline (default implies a baseline on a Sql pool level rule -// and master for workspace level rule). -// parameters - The requested rule baseline resource. -// options - SQLPoolVulnerabilityAssessmentRuleBaselinesClientCreateOrUpdateOptions contains the optional parameters for the -// SQLPoolVulnerabilityAssessmentRuleBaselinesClient.CreateOrUpdate method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - sqlPoolName - SQL pool name +// - vulnerabilityAssessmentName - The name of the vulnerability assessment. +// - ruleID - The vulnerability assessment rule ID. +// - baselineName - The name of the vulnerability assessment rule baseline (default implies a baseline on a Sql pool level rule +// and master for workspace level rule). +// - parameters - The requested rule baseline resource. +// - options - SQLPoolVulnerabilityAssessmentRuleBaselinesClientCreateOrUpdateOptions contains the optional parameters for the +// SQLPoolVulnerabilityAssessmentRuleBaselinesClient.CreateOrUpdate method. func (client *SQLPoolVulnerabilityAssessmentRuleBaselinesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, sqlPoolName string, vulnerabilityAssessmentName VulnerabilityAssessmentName, ruleID string, baselineName VulnerabilityAssessmentPolicyBaselineName, parameters SQLPoolVulnerabilityAssessmentRuleBaseline, options *SQLPoolVulnerabilityAssessmentRuleBaselinesClientCreateOrUpdateOptions) (SQLPoolVulnerabilityAssessmentRuleBaselinesClientCreateOrUpdateResponse, error) { req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, ruleID, baselineName, parameters, options) if err != nil { @@ -135,16 +137,17 @@ func (client *SQLPoolVulnerabilityAssessmentRuleBaselinesClient) createOrUpdateH // Delete - Removes the database's vulnerability assessment rule baseline. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// sqlPoolName - SQL pool name -// vulnerabilityAssessmentName - The name of the vulnerability assessment. -// ruleID - The vulnerability assessment rule ID. -// baselineName - The name of the vulnerability assessment rule baseline (default implies a baseline on a Sql pool level rule -// and master for workspace level rule). -// options - SQLPoolVulnerabilityAssessmentRuleBaselinesClientDeleteOptions contains the optional parameters for the SQLPoolVulnerabilityAssessmentRuleBaselinesClient.Delete -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - sqlPoolName - SQL pool name +// - vulnerabilityAssessmentName - The name of the vulnerability assessment. +// - ruleID - The vulnerability assessment rule ID. +// - baselineName - The name of the vulnerability assessment rule baseline (default implies a baseline on a Sql pool level rule +// and master for workspace level rule). +// - options - SQLPoolVulnerabilityAssessmentRuleBaselinesClientDeleteOptions contains the optional parameters for the SQLPoolVulnerabilityAssessmentRuleBaselinesClient.Delete +// method. func (client *SQLPoolVulnerabilityAssessmentRuleBaselinesClient) Delete(ctx context.Context, resourceGroupName string, workspaceName string, sqlPoolName string, vulnerabilityAssessmentName VulnerabilityAssessmentName, ruleID string, baselineName VulnerabilityAssessmentPolicyBaselineName, options *SQLPoolVulnerabilityAssessmentRuleBaselinesClientDeleteOptions) (SQLPoolVulnerabilityAssessmentRuleBaselinesClientDeleteResponse, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, ruleID, baselineName, options) if err != nil { @@ -203,16 +206,17 @@ func (client *SQLPoolVulnerabilityAssessmentRuleBaselinesClient) deleteCreateReq // Get - Gets a SqlPool's vulnerability assessment rule baseline. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// sqlPoolName - SQL pool name -// vulnerabilityAssessmentName - The name of the vulnerability assessment. -// ruleID - The vulnerability assessment rule ID. -// baselineName - The name of the vulnerability assessment rule baseline (default implies a baseline on a Sql pool level rule -// and master for server level rule). -// options - SQLPoolVulnerabilityAssessmentRuleBaselinesClientGetOptions contains the optional parameters for the SQLPoolVulnerabilityAssessmentRuleBaselinesClient.Get -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - sqlPoolName - SQL pool name +// - vulnerabilityAssessmentName - The name of the vulnerability assessment. +// - ruleID - The vulnerability assessment rule ID. +// - baselineName - The name of the vulnerability assessment rule baseline (default implies a baseline on a Sql pool level rule +// and master for server level rule). +// - options - SQLPoolVulnerabilityAssessmentRuleBaselinesClientGetOptions contains the optional parameters for the SQLPoolVulnerabilityAssessmentRuleBaselinesClient.Get +// method. func (client *SQLPoolVulnerabilityAssessmentRuleBaselinesClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, sqlPoolName string, vulnerabilityAssessmentName VulnerabilityAssessmentName, ruleID string, baselineName VulnerabilityAssessmentPolicyBaselineName, options *SQLPoolVulnerabilityAssessmentRuleBaselinesClientGetOptions) (SQLPoolVulnerabilityAssessmentRuleBaselinesClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, ruleID, baselineName, options) if err != nil { diff --git a/sdk/resourcemanager/synapse/armsynapse/sqlpoolvulnerabilityassessmentrulebaselines_client_example_test.go b/sdk/resourcemanager/synapse/armsynapse/sqlpoolvulnerabilityassessmentrulebaselines_client_example_test.go new file mode 100644 index 000000000000..3e3d39f46bdd --- /dev/null +++ b/sdk/resourcemanager/synapse/armsynapse/sqlpoolvulnerabilityassessmentrulebaselines_client_example_test.go @@ -0,0 +1,144 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armsynapse_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateSqlPoolVulnerabilityAssessmentRuleBaseline.json +func ExampleSQLPoolVulnerabilityAssessmentRuleBaselinesClient_CreateOrUpdate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewSQLPoolVulnerabilityAssessmentRuleBaselinesClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.CreateOrUpdate(ctx, "vulnerabilityaseessmenttest-4799", "vulnerabilityaseessmenttest-6440", "testdb", armsynapse.VulnerabilityAssessmentNameDefault, "VA1001", armsynapse.VulnerabilityAssessmentPolicyBaselineNameDefault, armsynapse.SQLPoolVulnerabilityAssessmentRuleBaseline{ + Properties: &armsynapse.SQLPoolVulnerabilityAssessmentRuleBaselineProperties{ + BaselineResults: []*armsynapse.SQLPoolVulnerabilityAssessmentRuleBaselineItem{ + { + Result: []*string{ + to.Ptr("userA"), + to.Ptr("SELECT")}, + }, + { + Result: []*string{ + to.Ptr("userB"), + to.Ptr("SELECT")}, + }, + { + Result: []*string{ + to.Ptr("userC"), + to.Ptr("SELECT"), + to.Ptr("tableId_4")}, + }}, + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.SQLPoolVulnerabilityAssessmentRuleBaseline = armsynapse.SQLPoolVulnerabilityAssessmentRuleBaseline{ + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/vulnerabilityAssessments/rules/baselines"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/vulnerabilityaseessmenttest-4799/providers/Microsoft.Synapse/workspaces/vulnerabilityaseessmenttest-6440/sqlPools/testdb/vulnerabilityAssessments/default/rules/VA1001/baselines/default"), + // Properties: &armsynapse.SQLPoolVulnerabilityAssessmentRuleBaselineProperties{ + // BaselineResults: []*armsynapse.SQLPoolVulnerabilityAssessmentRuleBaselineItem{ + // { + // Result: []*string{ + // to.Ptr("userA"), + // to.Ptr("SELECT")}, + // }, + // { + // Result: []*string{ + // to.Ptr("userB"), + // to.Ptr("SELECT")}, + // }, + // { + // Result: []*string{ + // to.Ptr("userC"), + // to.Ptr("SELECT"), + // to.Ptr("tableId_4")}, + // }}, + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeleteSqlPoolVulnerabilityAssessmentRuleBaseline.json +func ExampleSQLPoolVulnerabilityAssessmentRuleBaselinesClient_Delete() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewSQLPoolVulnerabilityAssessmentRuleBaselinesClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + _, err = client.Delete(ctx, "vulnerabilityaseessmenttest-4799", "vulnerabilityaseessmenttest-6440", "testdb", armsynapse.VulnerabilityAssessmentNameDefault, "VA1001", armsynapse.VulnerabilityAssessmentPolicyBaselineNameDefault, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolVulnerabilityAssessmentRuleBaselineGet.json +func ExampleSQLPoolVulnerabilityAssessmentRuleBaselinesClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewSQLPoolVulnerabilityAssessmentRuleBaselinesClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "vulnerabilityaseessmenttest-4711", "vulnerabilityaseessmenttest-6411", "testdb", armsynapse.VulnerabilityAssessmentNameDefault, "VA1001", armsynapse.VulnerabilityAssessmentPolicyBaselineNameMaster, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.SQLPoolVulnerabilityAssessmentRuleBaseline = armsynapse.SQLPoolVulnerabilityAssessmentRuleBaseline{ + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/vulnerabilityAssessments/rules/baselines"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/vulnerabilityaseessmenttest-4799/providers/Microsoft.Synapse/workspaces/vulnerabilityaseessmenttest-6440/sqlPools/testdb/vulnerabilityAssessments/default/rules/VA1001/baselines/default"), + // Properties: &armsynapse.SQLPoolVulnerabilityAssessmentRuleBaselineProperties{ + // BaselineResults: []*armsynapse.SQLPoolVulnerabilityAssessmentRuleBaselineItem{ + // { + // Result: []*string{ + // to.Ptr("userA"), + // to.Ptr("SELECT")}, + // }, + // { + // Result: []*string{ + // to.Ptr("userB"), + // to.Ptr("SELECT")}, + // }, + // { + // Result: []*string{ + // to.Ptr("userC"), + // to.Ptr("SELECT"), + // to.Ptr("tableId_4")}, + // }}, + // }, + // } +} diff --git a/sdk/resourcemanager/synapse/armsynapse/zz_generated_sqlpoolvulnerabilityassessments_client.go b/sdk/resourcemanager/synapse/armsynapse/sqlpoolvulnerabilityassessments_client.go similarity index 89% rename from sdk/resourcemanager/synapse/armsynapse/zz_generated_sqlpoolvulnerabilityassessments_client.go rename to sdk/resourcemanager/synapse/armsynapse/sqlpoolvulnerabilityassessments_client.go index 1019f30e7339..9b1a7d381dcd 100644 --- a/sdk/resourcemanager/synapse/armsynapse/zz_generated_sqlpoolvulnerabilityassessments_client.go +++ b/sdk/resourcemanager/synapse/armsynapse/sqlpoolvulnerabilityassessments_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse @@ -31,9 +32,9 @@ type SQLPoolVulnerabilityAssessmentsClient struct { } // NewSQLPoolVulnerabilityAssessmentsClient creates a new instance of SQLPoolVulnerabilityAssessmentsClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewSQLPoolVulnerabilityAssessmentsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SQLPoolVulnerabilityAssessmentsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,14 +57,15 @@ func NewSQLPoolVulnerabilityAssessmentsClient(subscriptionID string, credential // CreateOrUpdate - Creates or updates the Sql pool vulnerability assessment. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// sqlPoolName - SQL pool name -// vulnerabilityAssessmentName - The name of the vulnerability assessment. -// parameters - The requested resource. -// options - SQLPoolVulnerabilityAssessmentsClientCreateOrUpdateOptions contains the optional parameters for the SQLPoolVulnerabilityAssessmentsClient.CreateOrUpdate -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - sqlPoolName - SQL pool name +// - vulnerabilityAssessmentName - The name of the vulnerability assessment. +// - parameters - The requested resource. +// - options - SQLPoolVulnerabilityAssessmentsClientCreateOrUpdateOptions contains the optional parameters for the SQLPoolVulnerabilityAssessmentsClient.CreateOrUpdate +// method. func (client *SQLPoolVulnerabilityAssessmentsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, sqlPoolName string, vulnerabilityAssessmentName VulnerabilityAssessmentName, parameters SQLPoolVulnerabilityAssessment, options *SQLPoolVulnerabilityAssessmentsClientCreateOrUpdateOptions) (SQLPoolVulnerabilityAssessmentsClientCreateOrUpdateResponse, error) { req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, parameters, options) if err != nil { @@ -124,13 +126,14 @@ func (client *SQLPoolVulnerabilityAssessmentsClient) createOrUpdateHandleRespons // Delete - Removes the database's vulnerability assessment. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// sqlPoolName - SQL pool name -// vulnerabilityAssessmentName - The name of the vulnerability assessment. -// options - SQLPoolVulnerabilityAssessmentsClientDeleteOptions contains the optional parameters for the SQLPoolVulnerabilityAssessmentsClient.Delete -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - sqlPoolName - SQL pool name +// - vulnerabilityAssessmentName - The name of the vulnerability assessment. +// - options - SQLPoolVulnerabilityAssessmentsClientDeleteOptions contains the optional parameters for the SQLPoolVulnerabilityAssessmentsClient.Delete +// method. func (client *SQLPoolVulnerabilityAssessmentsClient) Delete(ctx context.Context, resourceGroupName string, workspaceName string, sqlPoolName string, vulnerabilityAssessmentName VulnerabilityAssessmentName, options *SQLPoolVulnerabilityAssessmentsClientDeleteOptions) (SQLPoolVulnerabilityAssessmentsClientDeleteResponse, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, options) if err != nil { @@ -181,13 +184,14 @@ func (client *SQLPoolVulnerabilityAssessmentsClient) deleteCreateRequest(ctx con // Get - Gets the Sql pool's vulnerability assessment. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// sqlPoolName - SQL pool name -// vulnerabilityAssessmentName - The name of the vulnerability assessment. -// options - SQLPoolVulnerabilityAssessmentsClientGetOptions contains the optional parameters for the SQLPoolVulnerabilityAssessmentsClient.Get -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - sqlPoolName - SQL pool name +// - vulnerabilityAssessmentName - The name of the vulnerability assessment. +// - options - SQLPoolVulnerabilityAssessmentsClientGetOptions contains the optional parameters for the SQLPoolVulnerabilityAssessmentsClient.Get +// method. func (client *SQLPoolVulnerabilityAssessmentsClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, sqlPoolName string, vulnerabilityAssessmentName VulnerabilityAssessmentName, options *SQLPoolVulnerabilityAssessmentsClientGetOptions) (SQLPoolVulnerabilityAssessmentsClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, options) if err != nil { @@ -247,13 +251,13 @@ func (client *SQLPoolVulnerabilityAssessmentsClient) getHandleResponse(resp *htt } // NewListPager - Lists the vulnerability assessment policies associated with a SQL pool. -// If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// sqlPoolName - SQL pool name -// options - SQLPoolVulnerabilityAssessmentsClientListOptions contains the optional parameters for the SQLPoolVulnerabilityAssessmentsClient.List -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - sqlPoolName - SQL pool name +// - options - SQLPoolVulnerabilityAssessmentsClientListOptions contains the optional parameters for the SQLPoolVulnerabilityAssessmentsClient.NewListPager +// method. func (client *SQLPoolVulnerabilityAssessmentsClient) NewListPager(resourceGroupName string, workspaceName string, sqlPoolName string, options *SQLPoolVulnerabilityAssessmentsClientListOptions) *runtime.Pager[SQLPoolVulnerabilityAssessmentsClientListResponse] { return runtime.NewPager(runtime.PagingHandler[SQLPoolVulnerabilityAssessmentsClientListResponse]{ More: func(page SQLPoolVulnerabilityAssessmentsClientListResponse) bool { diff --git a/sdk/resourcemanager/synapse/armsynapse/sqlpoolvulnerabilityassessments_client_example_test.go b/sdk/resourcemanager/synapse/armsynapse/sqlpoolvulnerabilityassessments_client_example_test.go new file mode 100644 index 000000000000..18960fe782ab --- /dev/null +++ b/sdk/resourcemanager/synapse/armsynapse/sqlpoolvulnerabilityassessments_client_example_test.go @@ -0,0 +1,235 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armsynapse_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListSqlPoolVulnerabilityAssessments.json +func ExampleSQLPoolVulnerabilityAssessmentsClient_NewListPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewSQLPoolVulnerabilityAssessmentsClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListPager("vulnerabilityaseessmenttest-4799", "vulnerabilityaseessmenttest-6440", "testdb", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.SQLPoolVulnerabilityAssessmentListResult = armsynapse.SQLPoolVulnerabilityAssessmentListResult{ + // Value: []*armsynapse.SQLPoolVulnerabilityAssessment{ + // { + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/vulnerabilityAssessments"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/vulnerabilityaseessmenttest-4799/providers/Microsoft.Synapse/workspaces/vulnerabilityaseessmenttest-6440/sqlPools/testdb/vulnerabilityAssessments/default"), + // Properties: &armsynapse.SQLPoolVulnerabilityAssessmentProperties{ + // RecurringScans: &armsynapse.VulnerabilityAssessmentRecurringScansProperties{ + // EmailSubscriptionAdmins: to.Ptr(true), + // Emails: []*string{ + // to.Ptr("email1@mail.com"), + // to.Ptr("email2@mail.com")}, + // IsEnabled: to.Ptr(true), + // }, + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolVulnerabilityAssessment.json +func ExampleSQLPoolVulnerabilityAssessmentsClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewSQLPoolVulnerabilityAssessmentsClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "vulnerabilityaseessmenttest-4799", "vulnerabilityaseessmenttest-6440", "testdb", armsynapse.VulnerabilityAssessmentNameDefault, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.SQLPoolVulnerabilityAssessment = armsynapse.SQLPoolVulnerabilityAssessment{ + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/vulnerabilityAssessments"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/vulnerabilityaseessmenttest-4799/providers/Microsoft.Synapse/workspaces/vulnerabilityaseessmenttest-6440/sqlPools/testdb/vulnerabilityAssessments/default"), + // Properties: &armsynapse.SQLPoolVulnerabilityAssessmentProperties{ + // RecurringScans: &armsynapse.VulnerabilityAssessmentRecurringScansProperties{ + // EmailSubscriptionAdmins: to.Ptr(true), + // Emails: []*string{ + // to.Ptr("email1@mail.com"), + // to.Ptr("email2@mail.com")}, + // IsEnabled: to.Ptr(true), + // }, + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateSqlPoolVulnerabilityAssessmentWithAllParameters.json +func ExampleSQLPoolVulnerabilityAssessmentsClient_CreateOrUpdate_createADatabasesVulnerabilityAssessmentWithAllParameters() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewSQLPoolVulnerabilityAssessmentsClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.CreateOrUpdate(ctx, "vulnerabilityaseessmenttest-4799", "vulnerabilityaseessmenttest-6440", "testdb", armsynapse.VulnerabilityAssessmentNameDefault, armsynapse.SQLPoolVulnerabilityAssessment{ + Properties: &armsynapse.SQLPoolVulnerabilityAssessmentProperties{ + RecurringScans: &armsynapse.VulnerabilityAssessmentRecurringScansProperties{ + EmailSubscriptionAdmins: to.Ptr(true), + Emails: []*string{ + to.Ptr("email1@mail.com"), + to.Ptr("email2@mail.com")}, + IsEnabled: to.Ptr(true), + }, + StorageAccountAccessKey: to.Ptr("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"), + StorageContainerPath: to.Ptr("https://myStorage.blob.core.windows.net/vulnerability-assessment/"), + StorageContainerSasKey: to.Ptr("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"), + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.SQLPoolVulnerabilityAssessment = armsynapse.SQLPoolVulnerabilityAssessment{ + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/vulnerabilityAssessments"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/vulnerabilityaseessmenttest-4799/providers/Microsoft.Synapse/workspaces/vulnerabilityaseessmenttest-6440/sqlPools/testdb/vulnerabilityAssessments/default"), + // Properties: &armsynapse.SQLPoolVulnerabilityAssessmentProperties{ + // RecurringScans: &armsynapse.VulnerabilityAssessmentRecurringScansProperties{ + // EmailSubscriptionAdmins: to.Ptr(true), + // Emails: []*string{ + // to.Ptr("email1@mail.com"), + // to.Ptr("email2@mail.com")}, + // IsEnabled: to.Ptr(true), + // }, + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateVulnerabilityAssessmentWithStorageAccessKeyAndMinParameters.json +func ExampleSQLPoolVulnerabilityAssessmentsClient_CreateOrUpdate_createADatabasesVulnerabilityAssessmentWithMinimalParametersWhenStorageAccountAccessKeyIsSpecified() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewSQLPoolVulnerabilityAssessmentsClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.CreateOrUpdate(ctx, "vulnerabilityaseessmenttest-4799", "vulnerabilityaseessmenttest-6440", "testdb", armsynapse.VulnerabilityAssessmentNameDefault, armsynapse.SQLPoolVulnerabilityAssessment{ + Properties: &armsynapse.SQLPoolVulnerabilityAssessmentProperties{ + StorageAccountAccessKey: to.Ptr("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"), + StorageContainerPath: to.Ptr("https://myStorage.blob.core.windows.net/vulnerability-assessment/"), + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.SQLPoolVulnerabilityAssessment = armsynapse.SQLPoolVulnerabilityAssessment{ + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/vulnerabilityAssessments"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/vulnerabilityaseessmenttest-4799/Microsoft.Synapse/workspaces/vulnerabilityaseessmenttest-6440/sqlPools/testdb/vulnerabilityAssessments/default"), + // Properties: &armsynapse.SQLPoolVulnerabilityAssessmentProperties{ + // RecurringScans: &armsynapse.VulnerabilityAssessmentRecurringScansProperties{ + // EmailSubscriptionAdmins: to.Ptr(false), + // Emails: []*string{ + // }, + // IsEnabled: to.Ptr(true), + // }, + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateSqlPoolVulnerabilityAssessmentWithContainerSasKeyAndMinParameters.json +func ExampleSQLPoolVulnerabilityAssessmentsClient_CreateOrUpdate_createADatabasesVulnerabilityAssessmentWithMinimalParametersWhenStorageContainerSasKeyIsSpecified() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewSQLPoolVulnerabilityAssessmentsClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.CreateOrUpdate(ctx, "vulnerabilityaseessmenttest-4799", "vulnerabilityaseessmenttest-6440", "testdb", armsynapse.VulnerabilityAssessmentNameDefault, armsynapse.SQLPoolVulnerabilityAssessment{ + Properties: &armsynapse.SQLPoolVulnerabilityAssessmentProperties{ + StorageContainerPath: to.Ptr("https://myStorage.blob.core.windows.net/vulnerability-assessment/"), + StorageContainerSasKey: to.Ptr("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"), + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.SQLPoolVulnerabilityAssessment = armsynapse.SQLPoolVulnerabilityAssessment{ + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/vulnerabilityAssessments"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/vulnerabilityaseessmenttest-4799/providers/Microsoft.Synapse/workspaces/vulnerabilityaseessmenttest-6440/sqlPools/testdb/vulnerabilityAssessments/default"), + // Properties: &armsynapse.SQLPoolVulnerabilityAssessmentProperties{ + // RecurringScans: &armsynapse.VulnerabilityAssessmentRecurringScansProperties{ + // EmailSubscriptionAdmins: to.Ptr(false), + // Emails: []*string{ + // }, + // IsEnabled: to.Ptr(true), + // }, + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeleteSqlPoolVulnerabilityAssessment.json +func ExampleSQLPoolVulnerabilityAssessmentsClient_Delete() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewSQLPoolVulnerabilityAssessmentsClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + _, err = client.Delete(ctx, "vulnerabilityaseessmenttest-4799", "vulnerabilityaseessmenttest-6440", "testdb", armsynapse.VulnerabilityAssessmentNameDefault, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } +} diff --git a/sdk/resourcemanager/synapse/armsynapse/zz_generated_sqlpoolvulnerabilityassessmentscans_client.go b/sdk/resourcemanager/synapse/armsynapse/sqlpoolvulnerabilityassessmentscans_client.go similarity index 88% rename from sdk/resourcemanager/synapse/armsynapse/zz_generated_sqlpoolvulnerabilityassessmentscans_client.go rename to sdk/resourcemanager/synapse/armsynapse/sqlpoolvulnerabilityassessmentscans_client.go index 5d0a21f6ddf0..6bc170132e7b 100644 --- a/sdk/resourcemanager/synapse/armsynapse/zz_generated_sqlpoolvulnerabilityassessmentscans_client.go +++ b/sdk/resourcemanager/synapse/armsynapse/sqlpoolvulnerabilityassessmentscans_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse @@ -31,9 +32,9 @@ type SQLPoolVulnerabilityAssessmentScansClient struct { } // NewSQLPoolVulnerabilityAssessmentScansClient creates a new instance of SQLPoolVulnerabilityAssessmentScansClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewSQLPoolVulnerabilityAssessmentScansClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SQLPoolVulnerabilityAssessmentScansClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,14 +57,15 @@ func NewSQLPoolVulnerabilityAssessmentScansClient(subscriptionID string, credent // Export - Convert an existing scan result to a human readable format. If already exists nothing happens // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// sqlPoolName - SQL pool name -// vulnerabilityAssessmentName - The name of the vulnerability assessment. -// scanID - The vulnerability assessment scan Id of the scan to retrieve. -// options - SQLPoolVulnerabilityAssessmentScansClientExportOptions contains the optional parameters for the SQLPoolVulnerabilityAssessmentScansClient.Export -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - sqlPoolName - SQL pool name +// - vulnerabilityAssessmentName - The name of the vulnerability assessment. +// - scanID - The vulnerability assessment scan Id of the scan to retrieve. +// - options - SQLPoolVulnerabilityAssessmentScansClientExportOptions contains the optional parameters for the SQLPoolVulnerabilityAssessmentScansClient.Export +// method. func (client *SQLPoolVulnerabilityAssessmentScansClient) Export(ctx context.Context, resourceGroupName string, workspaceName string, sqlPoolName string, vulnerabilityAssessmentName VulnerabilityAssessmentName, scanID string, options *SQLPoolVulnerabilityAssessmentScansClientExportOptions) (SQLPoolVulnerabilityAssessmentScansClientExportResponse, error) { req, err := client.exportCreateRequest(ctx, resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, scanID, options) if err != nil { @@ -128,14 +130,15 @@ func (client *SQLPoolVulnerabilityAssessmentScansClient) exportHandleResponse(re // Get - Gets a vulnerability assessment scan record of a Sql pool. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// sqlPoolName - SQL pool name -// vulnerabilityAssessmentName - The name of the vulnerability assessment. -// scanID - The vulnerability assessment scan Id of the scan to retrieve. -// options - SQLPoolVulnerabilityAssessmentScansClientGetOptions contains the optional parameters for the SQLPoolVulnerabilityAssessmentScansClient.Get -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - sqlPoolName - SQL pool name +// - vulnerabilityAssessmentName - The name of the vulnerability assessment. +// - scanID - The vulnerability assessment scan Id of the scan to retrieve. +// - options - SQLPoolVulnerabilityAssessmentScansClientGetOptions contains the optional parameters for the SQLPoolVulnerabilityAssessmentScansClient.Get +// method. func (client *SQLPoolVulnerabilityAssessmentScansClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, sqlPoolName string, vulnerabilityAssessmentName VulnerabilityAssessmentName, scanID string, options *SQLPoolVulnerabilityAssessmentScansClientGetOptions) (SQLPoolVulnerabilityAssessmentScansClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, scanID, options) if err != nil { @@ -200,14 +203,15 @@ func (client *SQLPoolVulnerabilityAssessmentScansClient) getHandleResponse(resp // BeginInitiateScan - Executes a Vulnerability Assessment database scan. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// sqlPoolName - SQL pool name -// vulnerabilityAssessmentName - The name of the vulnerability assessment. -// scanID - The vulnerability assessment scan Id of the scan to retrieve. -// options - SQLPoolVulnerabilityAssessmentScansClientBeginInitiateScanOptions contains the optional parameters for the SQLPoolVulnerabilityAssessmentScansClient.BeginInitiateScan -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - sqlPoolName - SQL pool name +// - vulnerabilityAssessmentName - The name of the vulnerability assessment. +// - scanID - The vulnerability assessment scan Id of the scan to retrieve. +// - options - SQLPoolVulnerabilityAssessmentScansClientBeginInitiateScanOptions contains the optional parameters for the SQLPoolVulnerabilityAssessmentScansClient.BeginInitiateScan +// method. func (client *SQLPoolVulnerabilityAssessmentScansClient) BeginInitiateScan(ctx context.Context, resourceGroupName string, workspaceName string, sqlPoolName string, vulnerabilityAssessmentName VulnerabilityAssessmentName, scanID string, options *SQLPoolVulnerabilityAssessmentScansClientBeginInitiateScanOptions) (*runtime.Poller[SQLPoolVulnerabilityAssessmentScansClientInitiateScanResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.initiateScan(ctx, resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, scanID, options) @@ -222,6 +226,7 @@ func (client *SQLPoolVulnerabilityAssessmentScansClient) BeginInitiateScan(ctx c // InitiateScan - Executes a Vulnerability Assessment database scan. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 func (client *SQLPoolVulnerabilityAssessmentScansClient) initiateScan(ctx context.Context, resourceGroupName string, workspaceName string, sqlPoolName string, vulnerabilityAssessmentName VulnerabilityAssessmentName, scanID string, options *SQLPoolVulnerabilityAssessmentScansClientBeginInitiateScanOptions) (*http.Response, error) { req, err := client.initiateScanCreateRequest(ctx, resourceGroupName, workspaceName, sqlPoolName, vulnerabilityAssessmentName, scanID, options) @@ -276,14 +281,14 @@ func (client *SQLPoolVulnerabilityAssessmentScansClient) initiateScanCreateReque } // NewListPager - Lists the vulnerability assessment scans of a SQL pool. -// If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// sqlPoolName - SQL pool name -// vulnerabilityAssessmentName - The name of the vulnerability assessment. -// options - SQLPoolVulnerabilityAssessmentScansClientListOptions contains the optional parameters for the SQLPoolVulnerabilityAssessmentScansClient.List -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - sqlPoolName - SQL pool name +// - vulnerabilityAssessmentName - The name of the vulnerability assessment. +// - options - SQLPoolVulnerabilityAssessmentScansClientListOptions contains the optional parameters for the SQLPoolVulnerabilityAssessmentScansClient.NewListPager +// method. func (client *SQLPoolVulnerabilityAssessmentScansClient) NewListPager(resourceGroupName string, workspaceName string, sqlPoolName string, vulnerabilityAssessmentName VulnerabilityAssessmentName, options *SQLPoolVulnerabilityAssessmentScansClientListOptions) *runtime.Pager[SQLPoolVulnerabilityAssessmentScansClientListResponse] { return runtime.NewPager(runtime.PagingHandler[SQLPoolVulnerabilityAssessmentScansClientListResponse]{ More: func(page SQLPoolVulnerabilityAssessmentScansClientListResponse) bool { diff --git a/sdk/resourcemanager/synapse/armsynapse/sqlpoolvulnerabilityassessmentscans_client_example_test.go b/sdk/resourcemanager/synapse/armsynapse/sqlpoolvulnerabilityassessmentscans_client_example_test.go new file mode 100644 index 000000000000..e78b3665e33b --- /dev/null +++ b/sdk/resourcemanager/synapse/armsynapse/sqlpoolvulnerabilityassessmentscans_client_example_test.go @@ -0,0 +1,179 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armsynapse_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListSqlPoolVulnerabilityAssessmentScanRecords.json +func ExampleSQLPoolVulnerabilityAssessmentScansClient_NewListPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewSQLPoolVulnerabilityAssessmentScansClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListPager("vulnerabilityassessmenttest-4711", "vulnerabilityassessmenttest-6411", "testdb", armsynapse.VulnerabilityAssessmentNameDefault, nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.VulnerabilityAssessmentScanRecordListResult = armsynapse.VulnerabilityAssessmentScanRecordListResult{ + // Value: []*armsynapse.VulnerabilityAssessmentScanRecord{ + // { + // Name: to.Ptr("scan001"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/vulnerabilityAssessments/scans"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/vulnerabilityassessmenttest-4799/providers/Microsoft.Synapse/workspaces/vulnerabilityassessmenttest-6440/sqlPools/testdb/vulnerabilityAssessments/default/scans/scan001"), + // Properties: &armsynapse.VulnerabilityAssessmentScanRecordProperties{ + // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-12-12T17:47:06Z"); return t}()), + // Errors: []*armsynapse.VulnerabilityAssessmentScanError{ + // }, + // NumberOfFailedSecurityChecks: to.Ptr[int32](9), + // ScanID: to.Ptr("scan001"), + // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-12-12T17:45:06Z"); return t}()), + // State: to.Ptr(armsynapse.VulnerabilityAssessmentScanStatePassed), + // TriggerType: to.Ptr(armsynapse.VulnerabilityAssessmentScanTriggerTypeOnDemand), + // }, + // }, + // { + // Name: to.Ptr("scan002"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/vulnerabilityAssessments/scans"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/vulnerabilityassessmenttest-4799/providers/Microsoft.Synapse/workspaces/vulnerabilityassessmenttest-6440/sqlPools/testdb/vulnerabilityAssessments/default/scans/scan002"), + // Properties: &armsynapse.VulnerabilityAssessmentScanRecordProperties{ + // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-12-12T17:47:06Z"); return t}()), + // Errors: []*armsynapse.VulnerabilityAssessmentScanError{ + // }, + // NumberOfFailedSecurityChecks: to.Ptr[int32](9), + // ScanID: to.Ptr("scan002"), + // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-12-12T17:45:06Z"); return t}()), + // State: to.Ptr(armsynapse.VulnerabilityAssessmentScanStateFailed), + // TriggerType: to.Ptr(armsynapse.VulnerabilityAssessmentScanTriggerTypeRecurring), + // }, + // }, + // { + // Name: to.Ptr("scan003"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/vulnerabilityAssessments/scans"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/vulnerabilityassessmenttest-4799/providers/Microsoft.Synapse/workspaces/vulnerabilityassessmenttest-6440/sqlPools/testdb/vulnerabilityAssessments/default/scans/scan003"), + // Properties: &armsynapse.VulnerabilityAssessmentScanRecordProperties{ + // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-12-12T17:47:06Z"); return t}()), + // Errors: []*armsynapse.VulnerabilityAssessmentScanError{ + // { + // Code: to.Ptr("StorageNotFound"), + // Message: to.Ptr("Storage not found"), + // }}, + // NumberOfFailedSecurityChecks: to.Ptr[int32](0), + // ScanID: to.Ptr("scan003"), + // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-12-12T17:45:06Z"); return t}()), + // State: to.Ptr(armsynapse.VulnerabilityAssessmentScanStateFailedToRun), + // TriggerType: to.Ptr(armsynapse.VulnerabilityAssessmentScanTriggerTypeRecurring), + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ExecuteSqlPoolVulnerabilityAssessmentScans.json +func ExampleSQLPoolVulnerabilityAssessmentScansClient_BeginInitiateScan() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewSQLPoolVulnerabilityAssessmentScansClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginInitiateScan(ctx, "vulnerabilityassessmenttest-4711", "vulnerabilityassessmenttest-6411", "testdb", armsynapse.VulnerabilityAssessmentNameDefault, "scan01", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + _, err = poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ExportSqlPoolVulnerabilityAssessmentScan.json +func ExampleSQLPoolVulnerabilityAssessmentScansClient_Export() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewSQLPoolVulnerabilityAssessmentScansClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Export(ctx, "vulnerabilityassessmenttest-4799", "vulnerabilityassessmenttest-6440", "testdb", armsynapse.VulnerabilityAssessmentNameDefault, "scan001", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.SQLPoolVulnerabilityAssessmentScansExport = armsynapse.SQLPoolVulnerabilityAssessmentScansExport{ + // Name: to.Ptr("scan001"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/vulnerabilityAssessments/scans/export"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/vulnerabilityassessmenttest-4799/providers/Microsoft.Synapse/workspaces/vulnerabilityassessmenttest-6440/sqlPools/testdb/vulnerabilityAssessments/default/scans/scan001/export"), + // Properties: &armsynapse.SQLPoolVulnerabilityAssessmentScanExportProperties{ + // ExportedReportLocation: to.Ptr("https://myaccount.blob.core.windows.net/vulnerabilityAssessment/vulnerabilityassessmenttest-6440/testdb/scan001.xlsx"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolVulnerabilityAssessmentScanRecordsGet.json +func ExampleSQLPoolVulnerabilityAssessmentScansClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewSQLPoolVulnerabilityAssessmentScansClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "vulnerabilityassessmenttest-4711", "vulnerabilityassessmenttest-6411", "testdb", armsynapse.VulnerabilityAssessmentNameDefault, "scan001", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.VulnerabilityAssessmentScanRecord = armsynapse.VulnerabilityAssessmentScanRecord{ + // Name: to.Ptr("scan001"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/vulnerabilityAssessments/scans"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/vulnerabilityassessmenttest-4799/providers/Microsoft.Synapse/workspaces/vulnerabilityassessmenttest-6440/sqlPools/testdb/vulnerabilityAssessments/default/scans/scan001"), + // Properties: &armsynapse.VulnerabilityAssessmentScanRecordProperties{ + // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-12-12T17:47:06Z"); return t}()), + // Errors: []*armsynapse.VulnerabilityAssessmentScanError{ + // }, + // NumberOfFailedSecurityChecks: to.Ptr[int32](9), + // ScanID: to.Ptr("scan001"), + // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-12-12T17:45:06Z"); return t}()), + // State: to.Ptr(armsynapse.VulnerabilityAssessmentScanStatePassed), + // StorageContainerPath: to.Ptr("https://myaccount.blob.core.windows.net/vulnerability-assessment"), + // TriggerType: to.Ptr(armsynapse.VulnerabilityAssessmentScanTriggerTypeOnDemand), + // }, + // } +} diff --git a/sdk/resourcemanager/synapse/armsynapse/zz_generated_sqlpoolworkloadclassifier_client.go b/sdk/resourcemanager/synapse/armsynapse/sqlpoolworkloadclassifier_client.go similarity index 89% rename from sdk/resourcemanager/synapse/armsynapse/zz_generated_sqlpoolworkloadclassifier_client.go rename to sdk/resourcemanager/synapse/armsynapse/sqlpoolworkloadclassifier_client.go index afb9b3fbada2..976f98f6d929 100644 --- a/sdk/resourcemanager/synapse/armsynapse/zz_generated_sqlpoolworkloadclassifier_client.go +++ b/sdk/resourcemanager/synapse/armsynapse/sqlpoolworkloadclassifier_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse @@ -31,9 +32,9 @@ type SQLPoolWorkloadClassifierClient struct { } // NewSQLPoolWorkloadClassifierClient creates a new instance of SQLPoolWorkloadClassifierClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewSQLPoolWorkloadClassifierClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SQLPoolWorkloadClassifierClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,15 +57,16 @@ func NewSQLPoolWorkloadClassifierClient(subscriptionID string, credential azcore // BeginCreateOrUpdate - Create Or Update workload classifier for a Sql pool's workload group. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// sqlPoolName - SQL pool name -// workloadGroupName - The name of the workload group. -// workloadClassifierName - The name of the workload classifier. -// parameters - The properties of the workload classifier. -// options - SQLPoolWorkloadClassifierClientBeginCreateOrUpdateOptions contains the optional parameters for the SQLPoolWorkloadClassifierClient.BeginCreateOrUpdate -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - sqlPoolName - SQL pool name +// - workloadGroupName - The name of the workload group. +// - workloadClassifierName - The name of the workload classifier. +// - parameters - The properties of the workload classifier. +// - options - SQLPoolWorkloadClassifierClientBeginCreateOrUpdateOptions contains the optional parameters for the SQLPoolWorkloadClassifierClient.BeginCreateOrUpdate +// method. func (client *SQLPoolWorkloadClassifierClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, sqlPoolName string, workloadGroupName string, workloadClassifierName string, parameters WorkloadClassifier, options *SQLPoolWorkloadClassifierClientBeginCreateOrUpdateOptions) (*runtime.Poller[SQLPoolWorkloadClassifierClientCreateOrUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createOrUpdate(ctx, resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, workloadClassifierName, parameters, options) @@ -79,6 +81,7 @@ func (client *SQLPoolWorkloadClassifierClient) BeginCreateOrUpdate(ctx context.C // CreateOrUpdate - Create Or Update workload classifier for a Sql pool's workload group. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 func (client *SQLPoolWorkloadClassifierClient) createOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, sqlPoolName string, workloadGroupName string, workloadClassifierName string, parameters WorkloadClassifier, options *SQLPoolWorkloadClassifierClientBeginCreateOrUpdateOptions) (*http.Response, error) { req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, workloadClassifierName, parameters, options) @@ -135,14 +138,15 @@ func (client *SQLPoolWorkloadClassifierClient) createOrUpdateCreateRequest(ctx c // BeginDelete - Remove workload classifier of a Sql pool's workload group. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// sqlPoolName - SQL pool name -// workloadGroupName - The name of the workload group. -// workloadClassifierName - The name of the workload classifier. -// options - SQLPoolWorkloadClassifierClientBeginDeleteOptions contains the optional parameters for the SQLPoolWorkloadClassifierClient.BeginDelete -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - sqlPoolName - SQL pool name +// - workloadGroupName - The name of the workload group. +// - workloadClassifierName - The name of the workload classifier. +// - options - SQLPoolWorkloadClassifierClientBeginDeleteOptions contains the optional parameters for the SQLPoolWorkloadClassifierClient.BeginDelete +// method. func (client *SQLPoolWorkloadClassifierClient) BeginDelete(ctx context.Context, resourceGroupName string, workspaceName string, sqlPoolName string, workloadGroupName string, workloadClassifierName string, options *SQLPoolWorkloadClassifierClientBeginDeleteOptions) (*runtime.Poller[SQLPoolWorkloadClassifierClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, workloadClassifierName, options) @@ -157,6 +161,7 @@ func (client *SQLPoolWorkloadClassifierClient) BeginDelete(ctx context.Context, // Delete - Remove workload classifier of a Sql pool's workload group. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 func (client *SQLPoolWorkloadClassifierClient) deleteOperation(ctx context.Context, resourceGroupName string, workspaceName string, sqlPoolName string, workloadGroupName string, workloadClassifierName string, options *SQLPoolWorkloadClassifierClientBeginDeleteOptions) (*http.Response, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, workloadClassifierName, options) @@ -212,14 +217,15 @@ func (client *SQLPoolWorkloadClassifierClient) deleteCreateRequest(ctx context.C // Get - Get a workload classifier of Sql pool's workload group. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// sqlPoolName - SQL pool name -// workloadGroupName - The name of the workload group. -// workloadClassifierName - The name of the workload classifier. -// options - SQLPoolWorkloadClassifierClientGetOptions contains the optional parameters for the SQLPoolWorkloadClassifierClient.Get -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - sqlPoolName - SQL pool name +// - workloadGroupName - The name of the workload group. +// - workloadClassifierName - The name of the workload classifier. +// - options - SQLPoolWorkloadClassifierClientGetOptions contains the optional parameters for the SQLPoolWorkloadClassifierClient.Get +// method. func (client *SQLPoolWorkloadClassifierClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, sqlPoolName string, workloadGroupName string, workloadClassifierName string, options *SQLPoolWorkloadClassifierClientGetOptions) (SQLPoolWorkloadClassifierClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, workloadClassifierName, options) if err != nil { @@ -283,14 +289,14 @@ func (client *SQLPoolWorkloadClassifierClient) getHandleResponse(resp *http.Resp } // NewListPager - Get list of Sql pool's workload classifier for workload groups. -// If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// sqlPoolName - SQL pool name -// workloadGroupName - The name of the workload group. -// options - SQLPoolWorkloadClassifierClientListOptions contains the optional parameters for the SQLPoolWorkloadClassifierClient.List -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - sqlPoolName - SQL pool name +// - workloadGroupName - The name of the workload group. +// - options - SQLPoolWorkloadClassifierClientListOptions contains the optional parameters for the SQLPoolWorkloadClassifierClient.NewListPager +// method. func (client *SQLPoolWorkloadClassifierClient) NewListPager(resourceGroupName string, workspaceName string, sqlPoolName string, workloadGroupName string, options *SQLPoolWorkloadClassifierClientListOptions) *runtime.Pager[SQLPoolWorkloadClassifierClientListResponse] { return runtime.NewPager(runtime.PagingHandler[SQLPoolWorkloadClassifierClientListResponse]{ More: func(page SQLPoolWorkloadClassifierClientListResponse) bool { diff --git a/sdk/resourcemanager/synapse/armsynapse/sqlpoolworkloadclassifier_client_example_test.go b/sdk/resourcemanager/synapse/armsynapse/sqlpoolworkloadclassifier_client_example_test.go new file mode 100644 index 000000000000..a93ac410c9c3 --- /dev/null +++ b/sdk/resourcemanager/synapse/armsynapse/sqlpoolworkloadclassifier_client_example_test.go @@ -0,0 +1,227 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armsynapse_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolWorkloadGroupWorkloadClassifier.json +func ExampleSQLPoolWorkloadClassifierClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewSQLPoolWorkloadClassifierClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-9187", "wlm_workloadgroup", "wlm_classifier", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.WorkloadClassifier = armsynapse.WorkloadClassifier{ + // Name: to.Ptr("wlm_classifier"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/workloadGroups/workloadClassifiers"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6852/providers/Microsoft.Synapse/workspaces/sqlcrudtest-2080/sqlPools/sqlcrudtest-9187/workloadGroups/wlm_workloadgroup/workloadClassifiers/wlm_classifier"), + // Properties: &armsynapse.WorkloadClassifierProperties{ + // Context: to.Ptr("test_context"), + // EndTime: to.Ptr("14:00"), + // Importance: to.Ptr("high"), + // Label: to.Ptr("test_label"), + // MemberName: to.Ptr("dbo"), + // StartTime: to.Ptr("12:00"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateSqlPoolWorkloadClassifierMax.json +func ExampleSQLPoolWorkloadClassifierClient_BeginCreateOrUpdate_createAWorkloadClassifierWithAllPropertiesSpecified() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewSQLPoolWorkloadClassifierClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreateOrUpdate(ctx, "sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-9187", "wlm_workloadgroup", "wlm_workloadclassifier", armsynapse.WorkloadClassifier{ + Properties: &armsynapse.WorkloadClassifierProperties{ + Context: to.Ptr("test_context"), + EndTime: to.Ptr("14:00"), + Importance: to.Ptr("high"), + Label: to.Ptr("test_label"), + MemberName: to.Ptr("dbo"), + StartTime: to.Ptr("12:00"), + }, + }, 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.WorkloadClassifier = armsynapse.WorkloadClassifier{ + // Name: to.Ptr("wlm_workloadclassifier"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/workloadGroups/workloadClassifiers"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6852/providers/Microsoft.Synapse/workspaces/sqlcrudtest-2080/sqlPools/sqlcrudtest-9187/workloadGroups/wlm_workloadgroup/workloadClassifiers/wlm_workloadclassifier"), + // Properties: &armsynapse.WorkloadClassifierProperties{ + // Context: to.Ptr("test_context"), + // EndTime: to.Ptr("14:00"), + // Importance: to.Ptr("high"), + // Label: to.Ptr("test_label"), + // MemberName: to.Ptr("dbo"), + // StartTime: to.Ptr("12:00"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateSqlPoolWorkloadClassifierMin.json +func ExampleSQLPoolWorkloadClassifierClient_BeginCreateOrUpdate_createAWorkloadClassifierWithTheRequiredPropertiesSpecified() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewSQLPoolWorkloadClassifierClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreateOrUpdate(ctx, "sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-9187", "wlm_workloadgroup", "wlm_workloadclassifier", armsynapse.WorkloadClassifier{ + Properties: &armsynapse.WorkloadClassifierProperties{ + MemberName: to.Ptr("dbo"), + }, + }, 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.WorkloadClassifier = armsynapse.WorkloadClassifier{ + // Name: to.Ptr("wlm_workloadclassifier"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/workloadGroups/workloadClassifiers"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6852/providers/Microsoft.Synapse/workspaces/sqlcrudtest-2080/sqlPools/sqlcrudtest-9187/workloadGroups/wlm_workloadgroup/workloadClassifiers/wlm_workloadclassifier"), + // Properties: &armsynapse.WorkloadClassifierProperties{ + // Context: to.Ptr(""), + // EndTime: to.Ptr(""), + // Importance: to.Ptr(""), + // Label: to.Ptr(""), + // MemberName: to.Ptr("dbo"), + // StartTime: to.Ptr(""), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeleteSqlPoolWorkloadGroupWorkloadClassifer.json +func ExampleSQLPoolWorkloadClassifierClient_BeginDelete() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewSQLPoolWorkloadClassifierClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginDelete(ctx, "sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-9187", "wlm_workloadgroup", "wlm_workloadclassifier", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + _, err = poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolWorkloadGroupWorkloadClassifierList.json +func ExampleSQLPoolWorkloadClassifierClient_NewListPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewSQLPoolWorkloadClassifierClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListPager("sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-9187", "wlm_workloadgroup", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.WorkloadClassifierListResult = armsynapse.WorkloadClassifierListResult{ + // Value: []*armsynapse.WorkloadClassifier{ + // { + // Name: to.Ptr("classifier3"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/workloadGroups/workloadClassifiers"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6852/providers/Microsoft.Synapse/workspaces/sqlcrudtest-2080/sqlPools/sqlcrudtest-9187/workloadGroups/wlm_workloadgroup/workloadClassifiers/classifier3"), + // Properties: &armsynapse.WorkloadClassifierProperties{ + // Context: to.Ptr(""), + // EndTime: to.Ptr(""), + // Importance: to.Ptr("high"), + // Label: to.Ptr(""), + // MemberName: to.Ptr("dbo"), + // StartTime: to.Ptr(""), + // }, + // }, + // { + // Name: to.Ptr("classifier1"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/workloadGroups/workloadClassifiers"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6852/providers/Microsoft.Synapse/workspaces/sqlcrudtest-2080/sqlPools/sqlcrudtest-9187/workloadGroups/wlm_workloadgroup/workloadClassifiers/classifier1"), + // Properties: &armsynapse.WorkloadClassifierProperties{ + // Context: to.Ptr("test_context"), + // EndTime: to.Ptr("14:00"), + // Importance: to.Ptr("high"), + // Label: to.Ptr("test_label"), + // MemberName: to.Ptr("dbo"), + // StartTime: to.Ptr("12:00"), + // }, + // }, + // { + // Name: to.Ptr("classifier2"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/workloadGroups/workloadClassifiers"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6852/providers/Microsoft.Synapse/workspaces/sqlcrudtest-2080/sqlPools/sqlcrudtest-9187/workloadGroups/wlm_workloadgroup/workloadClassifiers/classifier2"), + // Properties: &armsynapse.WorkloadClassifierProperties{ + // Context: to.Ptr(""), + // EndTime: to.Ptr("17:00"), + // Importance: to.Ptr("high"), + // Label: to.Ptr(""), + // MemberName: to.Ptr("dbo"), + // StartTime: to.Ptr("11:00"), + // }, + // }}, + // } + } +} diff --git a/sdk/resourcemanager/synapse/armsynapse/zz_generated_sqlpoolworkloadgroup_client.go b/sdk/resourcemanager/synapse/armsynapse/sqlpoolworkloadgroup_client.go similarity index 89% rename from sdk/resourcemanager/synapse/armsynapse/zz_generated_sqlpoolworkloadgroup_client.go rename to sdk/resourcemanager/synapse/armsynapse/sqlpoolworkloadgroup_client.go index e3370a925c9c..94fe28ca4aa8 100644 --- a/sdk/resourcemanager/synapse/armsynapse/zz_generated_sqlpoolworkloadgroup_client.go +++ b/sdk/resourcemanager/synapse/armsynapse/sqlpoolworkloadgroup_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse @@ -31,9 +32,9 @@ type SQLPoolWorkloadGroupClient struct { } // NewSQLPoolWorkloadGroupClient creates a new instance of SQLPoolWorkloadGroupClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewSQLPoolWorkloadGroupClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SQLPoolWorkloadGroupClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,14 +57,15 @@ func NewSQLPoolWorkloadGroupClient(subscriptionID string, credential azcore.Toke // BeginCreateOrUpdate - Create Or Update a Sql pool's workload group. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// sqlPoolName - SQL pool name -// workloadGroupName - The name of the workload group. -// parameters - The requested workload group state. -// options - SQLPoolWorkloadGroupClientBeginCreateOrUpdateOptions contains the optional parameters for the SQLPoolWorkloadGroupClient.BeginCreateOrUpdate -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - sqlPoolName - SQL pool name +// - workloadGroupName - The name of the workload group. +// - parameters - The requested workload group state. +// - options - SQLPoolWorkloadGroupClientBeginCreateOrUpdateOptions contains the optional parameters for the SQLPoolWorkloadGroupClient.BeginCreateOrUpdate +// method. func (client *SQLPoolWorkloadGroupClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, sqlPoolName string, workloadGroupName string, parameters WorkloadGroup, options *SQLPoolWorkloadGroupClientBeginCreateOrUpdateOptions) (*runtime.Poller[SQLPoolWorkloadGroupClientCreateOrUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createOrUpdate(ctx, resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, parameters, options) @@ -78,6 +80,7 @@ func (client *SQLPoolWorkloadGroupClient) BeginCreateOrUpdate(ctx context.Contex // CreateOrUpdate - Create Or Update a Sql pool's workload group. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 func (client *SQLPoolWorkloadGroupClient) createOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, sqlPoolName string, workloadGroupName string, parameters WorkloadGroup, options *SQLPoolWorkloadGroupClientBeginCreateOrUpdateOptions) (*http.Response, error) { req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, parameters, options) @@ -130,13 +133,14 @@ func (client *SQLPoolWorkloadGroupClient) createOrUpdateCreateRequest(ctx contex // BeginDelete - Remove Sql pool's workload group. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// sqlPoolName - SQL pool name -// workloadGroupName - The name of the workload group. -// options - SQLPoolWorkloadGroupClientBeginDeleteOptions contains the optional parameters for the SQLPoolWorkloadGroupClient.BeginDelete -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - sqlPoolName - SQL pool name +// - workloadGroupName - The name of the workload group. +// - options - SQLPoolWorkloadGroupClientBeginDeleteOptions contains the optional parameters for the SQLPoolWorkloadGroupClient.BeginDelete +// method. func (client *SQLPoolWorkloadGroupClient) BeginDelete(ctx context.Context, resourceGroupName string, workspaceName string, sqlPoolName string, workloadGroupName string, options *SQLPoolWorkloadGroupClientBeginDeleteOptions) (*runtime.Poller[SQLPoolWorkloadGroupClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, options) @@ -151,6 +155,7 @@ func (client *SQLPoolWorkloadGroupClient) BeginDelete(ctx context.Context, resou // Delete - Remove Sql pool's workload group. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 func (client *SQLPoolWorkloadGroupClient) deleteOperation(ctx context.Context, resourceGroupName string, workspaceName string, sqlPoolName string, workloadGroupName string, options *SQLPoolWorkloadGroupClientBeginDeleteOptions) (*http.Response, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, options) @@ -202,13 +207,14 @@ func (client *SQLPoolWorkloadGroupClient) deleteCreateRequest(ctx context.Contex // Get - Get a Sql pool's workload group. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// sqlPoolName - SQL pool name -// workloadGroupName - The name of the workload group. -// options - SQLPoolWorkloadGroupClientGetOptions contains the optional parameters for the SQLPoolWorkloadGroupClient.Get -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - sqlPoolName - SQL pool name +// - workloadGroupName - The name of the workload group. +// - options - SQLPoolWorkloadGroupClientGetOptions contains the optional parameters for the SQLPoolWorkloadGroupClient.Get +// method. func (client *SQLPoolWorkloadGroupClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, sqlPoolName string, workloadGroupName string, options *SQLPoolWorkloadGroupClientGetOptions) (SQLPoolWorkloadGroupClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, workspaceName, sqlPoolName, workloadGroupName, options) if err != nil { @@ -268,13 +274,13 @@ func (client *SQLPoolWorkloadGroupClient) getHandleResponse(resp *http.Response) } // NewListPager - Get list of Sql pool's workload groups. -// If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// sqlPoolName - SQL pool name -// options - SQLPoolWorkloadGroupClientListOptions contains the optional parameters for the SQLPoolWorkloadGroupClient.List -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - sqlPoolName - SQL pool name +// - options - SQLPoolWorkloadGroupClientListOptions contains the optional parameters for the SQLPoolWorkloadGroupClient.NewListPager +// method. func (client *SQLPoolWorkloadGroupClient) NewListPager(resourceGroupName string, workspaceName string, sqlPoolName string, options *SQLPoolWorkloadGroupClientListOptions) *runtime.Pager[SQLPoolWorkloadGroupClientListResponse] { return runtime.NewPager(runtime.PagingHandler[SQLPoolWorkloadGroupClientListResponse]{ More: func(page SQLPoolWorkloadGroupClientListResponse) bool { diff --git a/sdk/resourcemanager/synapse/armsynapse/sqlpoolworkloadgroup_client_example_test.go b/sdk/resourcemanager/synapse/armsynapse/sqlpoolworkloadgroup_client_example_test.go new file mode 100644 index 000000000000..0b873b525461 --- /dev/null +++ b/sdk/resourcemanager/synapse/armsynapse/sqlpoolworkloadgroup_client_example_test.go @@ -0,0 +1,229 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armsynapse_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolWorkloadGroup.json +func ExampleSQLPoolWorkloadGroupClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewSQLPoolWorkloadGroupClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-9187", "smallrc", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.WorkloadGroup = armsynapse.WorkloadGroup{ + // Name: to.Ptr("smallrc"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/workloadGroups"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6852/providers/Microsoft.Synapse/workspaces/sqlcrudtest-2080/sqlPools/sqlcrudtest-9187/workloadGroups/smallrc"), + // Properties: &armsynapse.WorkloadGroupProperties{ + // Importance: to.Ptr("normal"), + // MaxResourcePercent: to.Ptr[int32](100), + // MaxResourcePercentPerRequest: to.Ptr[float64](3), + // MinResourcePercent: to.Ptr[int32](0), + // MinResourcePercentPerRequest: to.Ptr[float64](3), + // QueryExecutionTimeout: to.Ptr[int32](0), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateSqlPoolWorkloadGroupMax.json +func ExampleSQLPoolWorkloadGroupClient_BeginCreateOrUpdate_createAWorkloadGroupWithAllPropertiesSpecified() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewSQLPoolWorkloadGroupClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreateOrUpdate(ctx, "sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-9187", "smallrc", armsynapse.WorkloadGroup{ + Properties: &armsynapse.WorkloadGroupProperties{ + Importance: to.Ptr("normal"), + MaxResourcePercent: to.Ptr[int32](100), + MaxResourcePercentPerRequest: to.Ptr[float64](3), + MinResourcePercent: to.Ptr[int32](0), + MinResourcePercentPerRequest: to.Ptr[float64](3), + QueryExecutionTimeout: to.Ptr[int32](0), + }, + }, 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.WorkloadGroup = armsynapse.WorkloadGroup{ + // Name: to.Ptr("smallrc"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/workloadGroups"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6852/providers/Microsoft.Synapse/workspaces/sqlcrudtest-2080/sqlPools/workloadGroups/smallrc"), + // Properties: &armsynapse.WorkloadGroupProperties{ + // Importance: to.Ptr("normal"), + // MaxResourcePercent: to.Ptr[int32](100), + // MaxResourcePercentPerRequest: to.Ptr[float64](3), + // MinResourcePercent: to.Ptr[int32](0), + // MinResourcePercentPerRequest: to.Ptr[float64](3), + // QueryExecutionTimeout: to.Ptr[int32](0), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateSqlPoolWorkloadGroupMin.json +func ExampleSQLPoolWorkloadGroupClient_BeginCreateOrUpdate_createAWorkloadGroupWithTheRequiredPropertiesSpecified() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewSQLPoolWorkloadGroupClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreateOrUpdate(ctx, "sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-9187", "smallrc", armsynapse.WorkloadGroup{ + Properties: &armsynapse.WorkloadGroupProperties{ + MaxResourcePercent: to.Ptr[int32](100), + MinResourcePercent: to.Ptr[int32](0), + MinResourcePercentPerRequest: to.Ptr[float64](3), + }, + }, 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.WorkloadGroup = armsynapse.WorkloadGroup{ + // Name: to.Ptr("smallrc"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/workloadGroups"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6852/providers/Microsoft.Synapse/workspaces/sqlcrudtest-2080/sqlPools/workloadGroups/smallrc"), + // Properties: &armsynapse.WorkloadGroupProperties{ + // Importance: to.Ptr("normal"), + // MaxResourcePercent: to.Ptr[int32](100), + // MaxResourcePercentPerRequest: to.Ptr[float64](3), + // MinResourcePercent: to.Ptr[int32](0), + // MinResourcePercentPerRequest: to.Ptr[float64](3), + // QueryExecutionTimeout: to.Ptr[int32](0), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeleteSqlPoolWorkloadGroup.json +func ExampleSQLPoolWorkloadGroupClient_BeginDelete() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewSQLPoolWorkloadGroupClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginDelete(ctx, "sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-9187", "wlm_workloadgroup", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + _, err = poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolWorkloadGroupList.json +func ExampleSQLPoolWorkloadGroupClient_NewListPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewSQLPoolWorkloadGroupClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListPager("sqlcrudtest-6852", "sqlcrudtest-2080", "sqlcrudtest-9187", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.WorkloadGroupListResult = armsynapse.WorkloadGroupListResult{ + // Value: []*armsynapse.WorkloadGroup{ + // { + // Name: to.Ptr("smallrc"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/workloadGroups"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6852/providers/Microsoft.Synapse/workspaces/sqlcrudtest-2080/sqlPools/sqlcrudtest-9187/workloadGroups/smallrc"), + // Properties: &armsynapse.WorkloadGroupProperties{ + // Importance: to.Ptr("normal"), + // MaxResourcePercent: to.Ptr[int32](100), + // MaxResourcePercentPerRequest: to.Ptr[float64](5), + // MinResourcePercent: to.Ptr[int32](0), + // MinResourcePercentPerRequest: to.Ptr[float64](5), + // QueryExecutionTimeout: to.Ptr[int32](0), + // }, + // }, + // { + // Name: to.Ptr("mediumrc"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/workloadGroups"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6852/providers/Microsoft.Synapse/workspaces/sqlcrudtest-2080/sqlPools/sqlcrudtest-9187/workloadGroups/mediumrc"), + // Properties: &armsynapse.WorkloadGroupProperties{ + // Importance: to.Ptr("normal"), + // MaxResourcePercent: to.Ptr[int32](100), + // MaxResourcePercentPerRequest: to.Ptr[float64](10), + // MinResourcePercent: to.Ptr[int32](0), + // MinResourcePercentPerRequest: to.Ptr[float64](10), + // QueryExecutionTimeout: to.Ptr[int32](0), + // }, + // }, + // { + // Name: to.Ptr("largerc"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/sqlPools/workloadGroups"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/sqlcrudtest-6852/providers/Microsoft.Synapse/workspaces/sqlcrudtest-2080/sqlPools/sqlcrudtest-9187/workloadGroups/largerc"), + // Properties: &armsynapse.WorkloadGroupProperties{ + // Importance: to.Ptr("high"), + // MaxResourcePercent: to.Ptr[int32](100), + // MaxResourcePercentPerRequest: to.Ptr[float64](20), + // MinResourcePercent: to.Ptr[int32](0), + // MinResourcePercentPerRequest: to.Ptr[float64](20), + // QueryExecutionTimeout: to.Ptr[int32](0), + // }, + // }}, + // } + } +} diff --git a/sdk/resourcemanager/synapse/armsynapse/zz_generated_time_rfc3339.go b/sdk/resourcemanager/synapse/armsynapse/time_rfc3339.go similarity index 96% rename from sdk/resourcemanager/synapse/armsynapse/zz_generated_time_rfc3339.go rename to sdk/resourcemanager/synapse/armsynapse/time_rfc3339.go index 66a34145e8a9..ae82870e9311 100644 --- a/sdk/resourcemanager/synapse/armsynapse/zz_generated_time_rfc3339.go +++ b/sdk/resourcemanager/synapse/armsynapse/time_rfc3339.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse @@ -61,7 +62,7 @@ func (t *timeRFC3339) Parse(layout, value string) error { return err } -func populateTimeRFC3339(m map[string]interface{}, k string, t *time.Time) { +func populateTimeRFC3339(m map[string]any, k string, t *time.Time) { if t == nil { return } else if azcore.IsNullValue(t) { diff --git a/sdk/resourcemanager/synapse/armsynapse/zz_generated_workspaceaadadmins_client.go b/sdk/resourcemanager/synapse/armsynapse/workspaceaadadmins_client.go similarity index 89% rename from sdk/resourcemanager/synapse/armsynapse/zz_generated_workspaceaadadmins_client.go rename to sdk/resourcemanager/synapse/armsynapse/workspaceaadadmins_client.go index 8fa8fb39b3f1..717bd81061ec 100644 --- a/sdk/resourcemanager/synapse/armsynapse/zz_generated_workspaceaadadmins_client.go +++ b/sdk/resourcemanager/synapse/armsynapse/workspaceaadadmins_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse @@ -31,9 +32,9 @@ type WorkspaceAADAdminsClient struct { } // NewWorkspaceAADAdminsClient creates a new instance of WorkspaceAADAdminsClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewWorkspaceAADAdminsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*WorkspaceAADAdminsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,12 +57,13 @@ func NewWorkspaceAADAdminsClient(subscriptionID string, credential azcore.TokenC // BeginCreateOrUpdate - Creates or updates a workspace active directory admin // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// aadAdminInfo - Workspace active directory administrator properties -// options - WorkspaceAADAdminsClientBeginCreateOrUpdateOptions contains the optional parameters for the WorkspaceAADAdminsClient.BeginCreateOrUpdate -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - aadAdminInfo - Workspace active directory administrator properties +// - options - WorkspaceAADAdminsClientBeginCreateOrUpdateOptions contains the optional parameters for the WorkspaceAADAdminsClient.BeginCreateOrUpdate +// method. func (client *WorkspaceAADAdminsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, aadAdminInfo WorkspaceAADAdminInfo, options *WorkspaceAADAdminsClientBeginCreateOrUpdateOptions) (*runtime.Poller[WorkspaceAADAdminsClientCreateOrUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createOrUpdate(ctx, resourceGroupName, workspaceName, aadAdminInfo, options) @@ -78,6 +80,7 @@ func (client *WorkspaceAADAdminsClient) BeginCreateOrUpdate(ctx context.Context, // CreateOrUpdate - Creates or updates a workspace active directory admin // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 func (client *WorkspaceAADAdminsClient) createOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, aadAdminInfo WorkspaceAADAdminInfo, options *WorkspaceAADAdminsClientBeginCreateOrUpdateOptions) (*http.Response, error) { req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, workspaceName, aadAdminInfo, options) @@ -122,11 +125,12 @@ func (client *WorkspaceAADAdminsClient) createOrUpdateCreateRequest(ctx context. // BeginDelete - Deletes a workspace active directory admin // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// options - WorkspaceAADAdminsClientBeginDeleteOptions contains the optional parameters for the WorkspaceAADAdminsClient.BeginDelete -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - options - WorkspaceAADAdminsClientBeginDeleteOptions contains the optional parameters for the WorkspaceAADAdminsClient.BeginDelete +// method. func (client *WorkspaceAADAdminsClient) BeginDelete(ctx context.Context, resourceGroupName string, workspaceName string, options *WorkspaceAADAdminsClientBeginDeleteOptions) (*runtime.Poller[WorkspaceAADAdminsClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, workspaceName, options) @@ -143,6 +147,7 @@ func (client *WorkspaceAADAdminsClient) BeginDelete(ctx context.Context, resourc // Delete - Deletes a workspace active directory admin // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 func (client *WorkspaceAADAdminsClient) deleteOperation(ctx context.Context, resourceGroupName string, workspaceName string, options *WorkspaceAADAdminsClientBeginDeleteOptions) (*http.Response, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, workspaceName, options) @@ -187,10 +192,11 @@ func (client *WorkspaceAADAdminsClient) deleteCreateRequest(ctx context.Context, // Get - Gets a workspace active directory admin // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// options - WorkspaceAADAdminsClientGetOptions contains the optional parameters for the WorkspaceAADAdminsClient.Get method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - options - WorkspaceAADAdminsClientGetOptions contains the optional parameters for the WorkspaceAADAdminsClient.Get method. func (client *WorkspaceAADAdminsClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, options *WorkspaceAADAdminsClientGetOptions) (WorkspaceAADAdminsClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, workspaceName, options) if err != nil { diff --git a/sdk/resourcemanager/synapse/armsynapse/workspaceaadadmins_client_example_test.go b/sdk/resourcemanager/synapse/armsynapse/workspaceaadadmins_client_example_test.go new file mode 100644 index 000000000000..bb7de348f4ae --- /dev/null +++ b/sdk/resourcemanager/synapse/armsynapse/workspaceaadadmins_client_example_test.go @@ -0,0 +1,111 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armsynapse_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetWorkspaceAadAdmin.json +func ExampleWorkspaceAADAdminsClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewWorkspaceAADAdminsClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "resourceGroup1", "workspace1", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.WorkspaceAADAdminInfo = armsynapse.WorkspaceAADAdminInfo{ + // Name: to.Ptr("activeDirectory"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup1/providers/Microsoft.Synapse/workspaces/workspace1/administrators/activeDirectory"), + // Properties: &armsynapse.AADAdminProperties{ + // AdministratorType: to.Ptr("ActiveDirectory"), + // Login: to.Ptr("bob@contoso.com"), + // Sid: to.Ptr("c6b82b90-a647-49cb-8a62-0d2d3cb7ac7c"), + // TenantID: to.Ptr("c6b82b90-a647-49cb-8a62-0d2d3cb7ac7c"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateWorkspaceAadAdmin.json +func ExampleWorkspaceAADAdminsClient_BeginCreateOrUpdate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewWorkspaceAADAdminsClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreateOrUpdate(ctx, "resourceGroup1", "workspace1", armsynapse.WorkspaceAADAdminInfo{ + Properties: &armsynapse.AADAdminProperties{ + AdministratorType: to.Ptr("ActiveDirectory"), + Login: to.Ptr("bob@contoso.com"), + Sid: to.Ptr("c6b82b90-a647-49cb-8a62-0d2d3cb7ac7c"), + TenantID: to.Ptr("c6b82b90-a647-49cb-8a62-0d2d3cb7ac7c"), + }, + }, 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.WorkspaceAADAdminInfo = armsynapse.WorkspaceAADAdminInfo{ + // Name: to.Ptr("activeDirectory"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup1/providers/Microsoft.Synapse/workspaces/workspace1/administrators/activeDirectory"), + // Properties: &armsynapse.AADAdminProperties{ + // AdministratorType: to.Ptr("ActiveDirectory"), + // Login: to.Ptr("bob@contoso.com"), + // Sid: to.Ptr("c6b82b90-a647-49cb-8a62-0d2d3cb7ac7c"), + // TenantID: to.Ptr("c6b82b90-a647-49cb-8a62-0d2d3cb7ac7c"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeleteWorkspaceAadAdmin.json +func ExampleWorkspaceAADAdminsClient_BeginDelete() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewWorkspaceAADAdminsClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginDelete(ctx, "resourceGroup1", "workspace1", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + _, err = poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } +} diff --git a/sdk/resourcemanager/synapse/armsynapse/zz_generated_workspacemanagedidentitysqlcontrolsettings_client.go b/sdk/resourcemanager/synapse/armsynapse/workspacemanagedidentitysqlcontrolsettings_client.go similarity index 89% rename from sdk/resourcemanager/synapse/armsynapse/zz_generated_workspacemanagedidentitysqlcontrolsettings_client.go rename to sdk/resourcemanager/synapse/armsynapse/workspacemanagedidentitysqlcontrolsettings_client.go index 19b71db53ecd..3c33aeefd857 100644 --- a/sdk/resourcemanager/synapse/armsynapse/zz_generated_workspacemanagedidentitysqlcontrolsettings_client.go +++ b/sdk/resourcemanager/synapse/armsynapse/workspacemanagedidentitysqlcontrolsettings_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse @@ -31,9 +32,9 @@ type WorkspaceManagedIdentitySQLControlSettingsClient struct { } // NewWorkspaceManagedIdentitySQLControlSettingsClient creates a new instance of WorkspaceManagedIdentitySQLControlSettingsClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewWorkspaceManagedIdentitySQLControlSettingsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*WorkspaceManagedIdentitySQLControlSettingsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,12 +57,13 @@ func NewWorkspaceManagedIdentitySQLControlSettingsClient(subscriptionID string, // BeginCreateOrUpdate - Create or update Managed Identity Sql Control Settings // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// managedIdentitySQLControlSettings - Managed Identity Sql Control Settings -// options - WorkspaceManagedIdentitySQLControlSettingsClientBeginCreateOrUpdateOptions contains the optional parameters for -// the WorkspaceManagedIdentitySQLControlSettingsClient.BeginCreateOrUpdate method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - managedIdentitySQLControlSettings - Managed Identity Sql Control Settings +// - options - WorkspaceManagedIdentitySQLControlSettingsClientBeginCreateOrUpdateOptions contains the optional parameters for +// the WorkspaceManagedIdentitySQLControlSettingsClient.BeginCreateOrUpdate method. func (client *WorkspaceManagedIdentitySQLControlSettingsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, managedIdentitySQLControlSettings ManagedIdentitySQLControlSettingsModel, options *WorkspaceManagedIdentitySQLControlSettingsClientBeginCreateOrUpdateOptions) (*runtime.Poller[WorkspaceManagedIdentitySQLControlSettingsClientCreateOrUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createOrUpdate(ctx, resourceGroupName, workspaceName, managedIdentitySQLControlSettings, options) @@ -78,6 +80,7 @@ func (client *WorkspaceManagedIdentitySQLControlSettingsClient) BeginCreateOrUpd // CreateOrUpdate - Create or update Managed Identity Sql Control Settings // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 func (client *WorkspaceManagedIdentitySQLControlSettingsClient) createOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, managedIdentitySQLControlSettings ManagedIdentitySQLControlSettingsModel, options *WorkspaceManagedIdentitySQLControlSettingsClientBeginCreateOrUpdateOptions) (*http.Response, error) { req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, workspaceName, managedIdentitySQLControlSettings, options) @@ -122,11 +125,12 @@ func (client *WorkspaceManagedIdentitySQLControlSettingsClient) createOrUpdateCr // Get - Get Managed Identity Sql Control Settings // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// options - WorkspaceManagedIdentitySQLControlSettingsClientGetOptions contains the optional parameters for the WorkspaceManagedIdentitySQLControlSettingsClient.Get -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - options - WorkspaceManagedIdentitySQLControlSettingsClientGetOptions contains the optional parameters for the WorkspaceManagedIdentitySQLControlSettingsClient.Get +// method. func (client *WorkspaceManagedIdentitySQLControlSettingsClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, options *WorkspaceManagedIdentitySQLControlSettingsClientGetOptions) (WorkspaceManagedIdentitySQLControlSettingsClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, workspaceName, options) if err != nil { diff --git a/sdk/resourcemanager/synapse/armsynapse/workspacemanagedidentitysqlcontrolsettings_client_example_test.go b/sdk/resourcemanager/synapse/armsynapse/workspacemanagedidentitysqlcontrolsettings_client_example_test.go new file mode 100644 index 000000000000..2f44d3103cec --- /dev/null +++ b/sdk/resourcemanager/synapse/armsynapse/workspacemanagedidentitysqlcontrolsettings_client_example_test.go @@ -0,0 +1,89 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armsynapse_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetManagedIdentitySqlControlSettings.json +func ExampleWorkspaceManagedIdentitySQLControlSettingsClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewWorkspaceManagedIdentitySQLControlSettingsClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "resourceGroup1", "workspace1", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.ManagedIdentitySQLControlSettingsModel = armsynapse.ManagedIdentitySQLControlSettingsModel{ + // Name: to.Ptr("default"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup1/providers/Microsoft.Synapse/workspaces/workspace1/managedIdentitySqlControlSettings/default"), + // Properties: &armsynapse.ManagedIdentitySQLControlSettingsModelProperties{ + // GrantSQLControlToManagedIdentity: &armsynapse.ManagedIdentitySQLControlSettingsModelPropertiesGrantSQLControlToManagedIdentity{ + // ActualState: to.Ptr(armsynapse.ActualStateEnabled), + // DesiredState: to.Ptr(armsynapse.DesiredStateEnabled), + // }, + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateManagedIdentitySqlControlSettings.json +func ExampleWorkspaceManagedIdentitySQLControlSettingsClient_BeginCreateOrUpdate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewWorkspaceManagedIdentitySQLControlSettingsClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreateOrUpdate(ctx, "resourceGroup1", "workspace1", armsynapse.ManagedIdentitySQLControlSettingsModel{ + Properties: &armsynapse.ManagedIdentitySQLControlSettingsModelProperties{ + GrantSQLControlToManagedIdentity: &armsynapse.ManagedIdentitySQLControlSettingsModelPropertiesGrantSQLControlToManagedIdentity{ + DesiredState: to.Ptr(armsynapse.DesiredStateEnabled), + }, + }, + }, 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.ManagedIdentitySQLControlSettingsModel = armsynapse.ManagedIdentitySQLControlSettingsModel{ + // Name: to.Ptr("default"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup1/providers/Microsoft.Synapse/workspaces/workspace1/managedIdentitySqlControlSettings/default"), + // Properties: &armsynapse.ManagedIdentitySQLControlSettingsModelProperties{ + // GrantSQLControlToManagedIdentity: &armsynapse.ManagedIdentitySQLControlSettingsModelPropertiesGrantSQLControlToManagedIdentity{ + // ActualState: to.Ptr(armsynapse.ActualStateEnabling), + // DesiredState: to.Ptr(armsynapse.DesiredStateEnabled), + // }, + // }, + // } +} diff --git a/sdk/resourcemanager/synapse/armsynapse/zz_generated_workspacemanagedsqlserverblobauditingpolicies_client.go b/sdk/resourcemanager/synapse/armsynapse/workspacemanagedsqlserverblobauditingpolicies_client.go similarity index 89% rename from sdk/resourcemanager/synapse/armsynapse/zz_generated_workspacemanagedsqlserverblobauditingpolicies_client.go rename to sdk/resourcemanager/synapse/armsynapse/workspacemanagedsqlserverblobauditingpolicies_client.go index 6c856d002a9e..1ab467f50db4 100644 --- a/sdk/resourcemanager/synapse/armsynapse/zz_generated_workspacemanagedsqlserverblobauditingpolicies_client.go +++ b/sdk/resourcemanager/synapse/armsynapse/workspacemanagedsqlserverblobauditingpolicies_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse @@ -31,9 +32,9 @@ type WorkspaceManagedSQLServerBlobAuditingPoliciesClient struct { } // NewWorkspaceManagedSQLServerBlobAuditingPoliciesClient creates a new instance of WorkspaceManagedSQLServerBlobAuditingPoliciesClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewWorkspaceManagedSQLServerBlobAuditingPoliciesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*WorkspaceManagedSQLServerBlobAuditingPoliciesClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,13 +57,14 @@ func NewWorkspaceManagedSQLServerBlobAuditingPoliciesClient(subscriptionID strin // BeginCreateOrUpdate - Create or Update a workspace managed sql server's blob auditing policy. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// blobAuditingPolicyName - The name of the blob auditing policy. -// parameters - Properties of extended blob auditing policy. -// options - WorkspaceManagedSQLServerBlobAuditingPoliciesClientBeginCreateOrUpdateOptions contains the optional parameters -// for the WorkspaceManagedSQLServerBlobAuditingPoliciesClient.BeginCreateOrUpdate method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - blobAuditingPolicyName - The name of the blob auditing policy. +// - parameters - Properties of extended blob auditing policy. +// - options - WorkspaceManagedSQLServerBlobAuditingPoliciesClientBeginCreateOrUpdateOptions contains the optional parameters +// for the WorkspaceManagedSQLServerBlobAuditingPoliciesClient.BeginCreateOrUpdate method. func (client *WorkspaceManagedSQLServerBlobAuditingPoliciesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, blobAuditingPolicyName BlobAuditingPolicyName, parameters ServerBlobAuditingPolicy, options *WorkspaceManagedSQLServerBlobAuditingPoliciesClientBeginCreateOrUpdateOptions) (*runtime.Poller[WorkspaceManagedSQLServerBlobAuditingPoliciesClientCreateOrUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createOrUpdate(ctx, resourceGroupName, workspaceName, blobAuditingPolicyName, parameters, options) @@ -77,6 +79,7 @@ func (client *WorkspaceManagedSQLServerBlobAuditingPoliciesClient) BeginCreateOr // CreateOrUpdate - Create or Update a workspace managed sql server's blob auditing policy. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 func (client *WorkspaceManagedSQLServerBlobAuditingPoliciesClient) createOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, blobAuditingPolicyName BlobAuditingPolicyName, parameters ServerBlobAuditingPolicy, options *WorkspaceManagedSQLServerBlobAuditingPoliciesClientBeginCreateOrUpdateOptions) (*http.Response, error) { req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, workspaceName, blobAuditingPolicyName, parameters, options) @@ -125,12 +128,13 @@ func (client *WorkspaceManagedSQLServerBlobAuditingPoliciesClient) createOrUpdat // Get - Get a workspace managed sql server's blob auditing policy. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// blobAuditingPolicyName - The name of the blob auditing policy. -// options - WorkspaceManagedSQLServerBlobAuditingPoliciesClientGetOptions contains the optional parameters for the WorkspaceManagedSQLServerBlobAuditingPoliciesClient.Get -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - blobAuditingPolicyName - The name of the blob auditing policy. +// - options - WorkspaceManagedSQLServerBlobAuditingPoliciesClientGetOptions contains the optional parameters for the WorkspaceManagedSQLServerBlobAuditingPoliciesClient.Get +// method. func (client *WorkspaceManagedSQLServerBlobAuditingPoliciesClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, blobAuditingPolicyName BlobAuditingPolicyName, options *WorkspaceManagedSQLServerBlobAuditingPoliciesClientGetOptions) (WorkspaceManagedSQLServerBlobAuditingPoliciesClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, workspaceName, blobAuditingPolicyName, options) if err != nil { @@ -186,12 +190,12 @@ func (client *WorkspaceManagedSQLServerBlobAuditingPoliciesClient) getHandleResp } // NewListByWorkspacePager - List workspace managed sql server's blob auditing policies. -// If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// options - WorkspaceManagedSQLServerBlobAuditingPoliciesClientListByWorkspaceOptions contains the optional parameters for -// the WorkspaceManagedSQLServerBlobAuditingPoliciesClient.ListByWorkspace method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - options - WorkspaceManagedSQLServerBlobAuditingPoliciesClientListByWorkspaceOptions contains the optional parameters for +// the WorkspaceManagedSQLServerBlobAuditingPoliciesClient.NewListByWorkspacePager method. func (client *WorkspaceManagedSQLServerBlobAuditingPoliciesClient) NewListByWorkspacePager(resourceGroupName string, workspaceName string, options *WorkspaceManagedSQLServerBlobAuditingPoliciesClientListByWorkspaceOptions) *runtime.Pager[WorkspaceManagedSQLServerBlobAuditingPoliciesClientListByWorkspaceResponse] { return runtime.NewPager(runtime.PagingHandler[WorkspaceManagedSQLServerBlobAuditingPoliciesClientListByWorkspaceResponse]{ More: func(page WorkspaceManagedSQLServerBlobAuditingPoliciesClientListByWorkspaceResponse) bool { diff --git a/sdk/resourcemanager/synapse/armsynapse/workspacemanagedsqlserverblobauditingpolicies_client_example_test.go b/sdk/resourcemanager/synapse/armsynapse/workspacemanagedsqlserverblobauditingpolicies_client_example_test.go new file mode 100644 index 000000000000..d5c4570d3258 --- /dev/null +++ b/sdk/resourcemanager/synapse/armsynapse/workspacemanagedsqlserverblobauditingpolicies_client_example_test.go @@ -0,0 +1,201 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armsynapse_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetWorkspaceManagedSqlServerBlobAuditingSettings.json +func ExampleWorkspaceManagedSQLServerBlobAuditingPoliciesClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewWorkspaceManagedSQLServerBlobAuditingPoliciesClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "wsg-7398", "testWorkspace", armsynapse.BlobAuditingPolicyNameDefault, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.ServerBlobAuditingPolicy = armsynapse.ServerBlobAuditingPolicy{ + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/auditingSettings"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/wsg-7398/providers/Microsoft.Synapse/workspaces/testWorkspace/auditingSettings/default"), + // Properties: &armsynapse.ServerBlobAuditingPolicyProperties{ + // AuditActionsAndGroups: []*string{ + // }, + // IsAzureMonitorTargetEnabled: to.Ptr(false), + // IsDevopsAuditEnabled: to.Ptr(false), + // IsStorageSecondaryKeyInUse: to.Ptr(false), + // RetentionDays: to.Ptr[int32](0), + // State: to.Ptr(armsynapse.BlobAuditingPolicyStateDisabled), + // StorageAccountSubscriptionID: to.Ptr("00000000-0000-0000-0000-000000000000"), + // StorageEndpoint: to.Ptr(""), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateWorkspaceManagedSqlServerBlobAuditingSettingsWithAllParameters.json +func ExampleWorkspaceManagedSQLServerBlobAuditingPoliciesClient_BeginCreateOrUpdate_createOrUpdateBlobAuditingPolicyOfWorkspaceSqlServerWithAllParameters() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewWorkspaceManagedSQLServerBlobAuditingPoliciesClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreateOrUpdate(ctx, "wsg-7398", "testWorkspace", armsynapse.BlobAuditingPolicyNameDefault, armsynapse.ServerBlobAuditingPolicy{ + Properties: &armsynapse.ServerBlobAuditingPolicyProperties{ + AuditActionsAndGroups: []*string{ + to.Ptr("SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP"), + to.Ptr("FAILED_DATABASE_AUTHENTICATION_GROUP"), + to.Ptr("BATCH_COMPLETED_GROUP")}, + IsAzureMonitorTargetEnabled: to.Ptr(true), + IsStorageSecondaryKeyInUse: to.Ptr(false), + QueueDelayMs: to.Ptr[int32](4000), + RetentionDays: to.Ptr[int32](6), + State: to.Ptr(armsynapse.BlobAuditingPolicyStateEnabled), + StorageAccountAccessKey: to.Ptr("sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3RSD=="), + StorageAccountSubscriptionID: to.Ptr("00000000-1234-0000-5678-000000000000"), + StorageEndpoint: to.Ptr("https://mystorage.blob.core.windows.net"), + }, + }, 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.ServerBlobAuditingPolicy = armsynapse.ServerBlobAuditingPolicy{ + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/auditingSettings"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/wsg-7398/providers/Microsoft.Synapse/workspaces/testWorkspace/auditingSettings/default"), + // Properties: &armsynapse.ServerBlobAuditingPolicyProperties{ + // AuditActionsAndGroups: []*string{ + // to.Ptr("SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP"), + // to.Ptr("FAILED_DATABASE_AUTHENTICATION_GROUP"), + // to.Ptr("BATCH_COMPLETED_GROUP")}, + // IsAzureMonitorTargetEnabled: to.Ptr(true), + // IsStorageSecondaryKeyInUse: to.Ptr(false), + // QueueDelayMs: to.Ptr[int32](4000), + // RetentionDays: to.Ptr[int32](6), + // State: to.Ptr(armsynapse.BlobAuditingPolicyStateEnabled), + // StorageAccountSubscriptionID: to.Ptr("00000000-1234-0000-5678-000000000000"), + // StorageEndpoint: to.Ptr("https://mystorage.blob.core.windows.net"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateWorkspaceManagedSqlServerBlobAuditingSettingsWithMinParameters.json +func ExampleWorkspaceManagedSQLServerBlobAuditingPoliciesClient_BeginCreateOrUpdate_createOrUpdateBlobAuditingPolicyOfWorkspaceManagedSqlServerWithMinimalParameters() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewWorkspaceManagedSQLServerBlobAuditingPoliciesClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreateOrUpdate(ctx, "wsg-7398", "testWorkspace", armsynapse.BlobAuditingPolicyNameDefault, armsynapse.ServerBlobAuditingPolicy{ + Properties: &armsynapse.ServerBlobAuditingPolicyProperties{ + State: to.Ptr(armsynapse.BlobAuditingPolicyStateEnabled), + StorageAccountAccessKey: to.Ptr("sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3RSD=="), + StorageEndpoint: to.Ptr("https://mystorage.blob.core.windows.net"), + }, + }, 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.ServerBlobAuditingPolicy = armsynapse.ServerBlobAuditingPolicy{ + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/auditingSettings"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/wsg-7398/providers/Microsoft.Synapse/workspaces/testWorkspace/auditingSettings/default"), + // Properties: &armsynapse.ServerBlobAuditingPolicyProperties{ + // AuditActionsAndGroups: []*string{ + // to.Ptr("SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP"), + // to.Ptr("FAILED_DATABASE_AUTHENTICATION_GROUP"), + // to.Ptr("BATCH_COMPLETED_GROUP")}, + // IsStorageSecondaryKeyInUse: to.Ptr(false), + // RetentionDays: to.Ptr[int32](6), + // State: to.Ptr(armsynapse.BlobAuditingPolicyStateEnabled), + // StorageAccountSubscriptionID: to.Ptr("00000000-1234-0000-5678-000000000000"), + // StorageEndpoint: to.Ptr("https://mystorage.blob.core.windows.net"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListWorkspaceManagedSqlServerBlobAuditingSettings.json +func ExampleWorkspaceManagedSQLServerBlobAuditingPoliciesClient_NewListByWorkspacePager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewWorkspaceManagedSQLServerBlobAuditingPoliciesClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListByWorkspacePager("wsg-7398", "testWorkspace", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.ServerBlobAuditingPolicyListResult = armsynapse.ServerBlobAuditingPolicyListResult{ + // Value: []*armsynapse.ServerBlobAuditingPolicy{ + // { + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/auditingSettings"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/wsg-7398/providers/Microsoft.Synapse/workspaces/testWorkspace/auditingSettings/default"), + // Properties: &armsynapse.ServerBlobAuditingPolicyProperties{ + // AuditActionsAndGroups: []*string{ + // }, + // IsAzureMonitorTargetEnabled: to.Ptr(false), + // IsStorageSecondaryKeyInUse: to.Ptr(false), + // RetentionDays: to.Ptr[int32](0), + // State: to.Ptr(armsynapse.BlobAuditingPolicyStateDisabled), + // StorageAccountSubscriptionID: to.Ptr("00000000-0000-0000-0000-000000000000"), + // StorageEndpoint: to.Ptr(""), + // }, + // }}, + // } + } +} diff --git a/sdk/resourcemanager/synapse/armsynapse/zz_generated_workspacemanagedsqlserverdedicatedsqlminimaltlssettings_client.go b/sdk/resourcemanager/synapse/armsynapse/workspacemanagedsqlserverdedicatedsqlminimaltlssettings_client.go similarity index 89% rename from sdk/resourcemanager/synapse/armsynapse/zz_generated_workspacemanagedsqlserverdedicatedsqlminimaltlssettings_client.go rename to sdk/resourcemanager/synapse/armsynapse/workspacemanagedsqlserverdedicatedsqlminimaltlssettings_client.go index b48bf49c1882..12d293852f4c 100644 --- a/sdk/resourcemanager/synapse/armsynapse/zz_generated_workspacemanagedsqlserverdedicatedsqlminimaltlssettings_client.go +++ b/sdk/resourcemanager/synapse/armsynapse/workspacemanagedsqlserverdedicatedsqlminimaltlssettings_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse @@ -31,9 +32,9 @@ type WorkspaceManagedSQLServerDedicatedSQLMinimalTLSSettingsClient struct { } // NewWorkspaceManagedSQLServerDedicatedSQLMinimalTLSSettingsClient creates a new instance of WorkspaceManagedSQLServerDedicatedSQLMinimalTLSSettingsClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewWorkspaceManagedSQLServerDedicatedSQLMinimalTLSSettingsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*WorkspaceManagedSQLServerDedicatedSQLMinimalTLSSettingsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,12 +57,13 @@ func NewWorkspaceManagedSQLServerDedicatedSQLMinimalTLSSettingsClient(subscripti // Get - Get workspace managed sql server's minimal tls settings. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// dedicatedSQLminimalTLSSettingsName - The name of the dedicated sql minimal tls settings. -// options - WorkspaceManagedSQLServerDedicatedSQLMinimalTLSSettingsClientGetOptions contains the optional parameters for -// the WorkspaceManagedSQLServerDedicatedSQLMinimalTLSSettingsClient.Get method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - dedicatedSQLminimalTLSSettingsName - The name of the dedicated sql minimal tls settings. +// - options - WorkspaceManagedSQLServerDedicatedSQLMinimalTLSSettingsClientGetOptions contains the optional parameters for +// the WorkspaceManagedSQLServerDedicatedSQLMinimalTLSSettingsClient.Get method. func (client *WorkspaceManagedSQLServerDedicatedSQLMinimalTLSSettingsClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, dedicatedSQLminimalTLSSettingsName string, options *WorkspaceManagedSQLServerDedicatedSQLMinimalTLSSettingsClientGetOptions) (WorkspaceManagedSQLServerDedicatedSQLMinimalTLSSettingsClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, workspaceName, dedicatedSQLminimalTLSSettingsName, options) if err != nil { @@ -117,12 +119,12 @@ func (client *WorkspaceManagedSQLServerDedicatedSQLMinimalTLSSettingsClient) get } // NewListPager - List workspace managed sql server's minimal tls settings. -// If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// options - WorkspaceManagedSQLServerDedicatedSQLMinimalTLSSettingsClientListOptions contains the optional parameters for -// the WorkspaceManagedSQLServerDedicatedSQLMinimalTLSSettingsClient.List method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - options - WorkspaceManagedSQLServerDedicatedSQLMinimalTLSSettingsClientListOptions contains the optional parameters for +// the WorkspaceManagedSQLServerDedicatedSQLMinimalTLSSettingsClient.NewListPager method. func (client *WorkspaceManagedSQLServerDedicatedSQLMinimalTLSSettingsClient) NewListPager(resourceGroupName string, workspaceName string, options *WorkspaceManagedSQLServerDedicatedSQLMinimalTLSSettingsClientListOptions) *runtime.Pager[WorkspaceManagedSQLServerDedicatedSQLMinimalTLSSettingsClientListResponse] { return runtime.NewPager(runtime.PagingHandler[WorkspaceManagedSQLServerDedicatedSQLMinimalTLSSettingsClientListResponse]{ More: func(page WorkspaceManagedSQLServerDedicatedSQLMinimalTLSSettingsClientListResponse) bool { @@ -188,13 +190,14 @@ func (client *WorkspaceManagedSQLServerDedicatedSQLMinimalTLSSettingsClient) lis // BeginUpdate - Update workspace managed sql server's minimal tls settings. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// dedicatedSQLminimalTLSSettingsName - The name of the dedicated sql minimal tls settings. -// parameters - minimal tls settings -// options - WorkspaceManagedSQLServerDedicatedSQLMinimalTLSSettingsClientBeginUpdateOptions contains the optional parameters -// for the WorkspaceManagedSQLServerDedicatedSQLMinimalTLSSettingsClient.BeginUpdate method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - dedicatedSQLminimalTLSSettingsName - The name of the dedicated sql minimal tls settings. +// - parameters - minimal tls settings +// - options - WorkspaceManagedSQLServerDedicatedSQLMinimalTLSSettingsClientBeginUpdateOptions contains the optional parameters +// for the WorkspaceManagedSQLServerDedicatedSQLMinimalTLSSettingsClient.BeginUpdate method. func (client *WorkspaceManagedSQLServerDedicatedSQLMinimalTLSSettingsClient) BeginUpdate(ctx context.Context, resourceGroupName string, workspaceName string, dedicatedSQLminimalTLSSettingsName DedicatedSQLMinimalTLSSettingsName, parameters DedicatedSQLminimalTLSSettings, options *WorkspaceManagedSQLServerDedicatedSQLMinimalTLSSettingsClientBeginUpdateOptions) (*runtime.Poller[WorkspaceManagedSQLServerDedicatedSQLMinimalTLSSettingsClientUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.update(ctx, resourceGroupName, workspaceName, dedicatedSQLminimalTLSSettingsName, parameters, options) @@ -209,6 +212,7 @@ func (client *WorkspaceManagedSQLServerDedicatedSQLMinimalTLSSettingsClient) Beg // Update - Update workspace managed sql server's minimal tls settings. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 func (client *WorkspaceManagedSQLServerDedicatedSQLMinimalTLSSettingsClient) update(ctx context.Context, resourceGroupName string, workspaceName string, dedicatedSQLminimalTLSSettingsName DedicatedSQLMinimalTLSSettingsName, parameters DedicatedSQLminimalTLSSettings, options *WorkspaceManagedSQLServerDedicatedSQLMinimalTLSSettingsClientBeginUpdateOptions) (*http.Response, error) { req, err := client.updateCreateRequest(ctx, resourceGroupName, workspaceName, dedicatedSQLminimalTLSSettingsName, parameters, options) diff --git a/sdk/resourcemanager/synapse/armsynapse/workspacemanagedsqlserverdedicatedsqlminimaltlssettings_client_example_test.go b/sdk/resourcemanager/synapse/armsynapse/workspacemanagedsqlserverdedicatedsqlminimaltlssettings_client_example_test.go new file mode 100644 index 000000000000..8936c3848053 --- /dev/null +++ b/sdk/resourcemanager/synapse/armsynapse/workspacemanagedsqlserverdedicatedsqlminimaltlssettings_client_example_test.go @@ -0,0 +1,130 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armsynapse_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/UpdateWorkspaceManagedSqlServerDedicatedSQLminimalTlsSettings.json +func ExampleWorkspaceManagedSQLServerDedicatedSQLMinimalTLSSettingsClient_BeginUpdate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewWorkspaceManagedSQLServerDedicatedSQLMinimalTLSSettingsClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginUpdate(ctx, "workspace-6852", "workspace-2080", armsynapse.DedicatedSQLMinimalTLSSettingsNameDefault, armsynapse.DedicatedSQLminimalTLSSettings{ + Properties: &armsynapse.DedicatedSQLminimalTLSSettingsProperties{ + MinimalTLSVersion: to.Ptr("1.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.DedicatedSQLminimalTLSSettings = armsynapse.DedicatedSQLminimalTLSSettings{ + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/dedicatedSQLminimalTlsSettings"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-6852/providers/Microsoft.Synapse/workspaces/workspace-2080/dedicatedSQLminimalTlsSettings/default"), + // Properties: &armsynapse.DedicatedSQLminimalTLSSettingsProperties{ + // MinimalTLSVersion: to.Ptr("1.1"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetWorkspaceManagedSqlServerDedicatedSQLminimalTlsSettings.json +func ExampleWorkspaceManagedSQLServerDedicatedSQLMinimalTLSSettingsClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewWorkspaceManagedSQLServerDedicatedSQLMinimalTLSSettingsClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "workspace-6852", "workspace-2080", "default", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.DedicatedSQLminimalTLSSettings = armsynapse.DedicatedSQLminimalTLSSettings{ + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/dedicatedSQLminimalTlsSettings"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-6852/providers/Microsoft.Synapse/workspaces/workspace-2080/dedicatedSQLminimalTlsSettings/default"), + // Location: to.Ptr("eastus"), + // Properties: &armsynapse.DedicatedSQLminimalTLSSettingsProperties{ + // MinimalTLSVersion: to.Ptr("1.1"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListWorkspaceManagedSqlServerDedicatedSQLminimalTlsSettings.json +func ExampleWorkspaceManagedSQLServerDedicatedSQLMinimalTLSSettingsClient_NewListPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewWorkspaceManagedSQLServerDedicatedSQLMinimalTLSSettingsClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListPager("workspace-6852", "workspace-2080", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.DedicatedSQLminimalTLSSettingsListResult = armsynapse.DedicatedSQLminimalTLSSettingsListResult{ + // Value: []*armsynapse.DedicatedSQLminimalTLSSettings{ + // { + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/dedicatedSQLminimalTlsSettings"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-6852/providers/Microsoft.Synapse/workspaces/workspace-2080/dedicatedSQLminimalTlsSettings/default"), + // Location: to.Ptr("eastus"), + // Properties: &armsynapse.DedicatedSQLminimalTLSSettingsProperties{ + // MinimalTLSVersion: to.Ptr("1.1"), + // }, + // }, + // { + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/dedicatedSQLminimalTlsSettings"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-6852/providers/Microsoft.Synapse/workspaces/workspace-2080/dedicatedSQLminimalTlsSettings/default"), + // Location: to.Ptr("eastus"), + // Properties: &armsynapse.DedicatedSQLminimalTLSSettingsProperties{ + // MinimalTLSVersion: to.Ptr("1.1"), + // }, + // }}, + // } + } +} diff --git a/sdk/resourcemanager/synapse/armsynapse/zz_generated_workspacemanagedsqlserverencryptionprotector_client.go b/sdk/resourcemanager/synapse/armsynapse/workspacemanagedsqlserverencryptionprotector_client.go similarity index 89% rename from sdk/resourcemanager/synapse/armsynapse/zz_generated_workspacemanagedsqlserverencryptionprotector_client.go rename to sdk/resourcemanager/synapse/armsynapse/workspacemanagedsqlserverencryptionprotector_client.go index 5e58019aa011..57b99df195a5 100644 --- a/sdk/resourcemanager/synapse/armsynapse/zz_generated_workspacemanagedsqlserverencryptionprotector_client.go +++ b/sdk/resourcemanager/synapse/armsynapse/workspacemanagedsqlserverencryptionprotector_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse @@ -31,9 +32,9 @@ type WorkspaceManagedSQLServerEncryptionProtectorClient struct { } // NewWorkspaceManagedSQLServerEncryptionProtectorClient creates a new instance of WorkspaceManagedSQLServerEncryptionProtectorClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewWorkspaceManagedSQLServerEncryptionProtectorClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*WorkspaceManagedSQLServerEncryptionProtectorClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,13 +57,14 @@ func NewWorkspaceManagedSQLServerEncryptionProtectorClient(subscriptionID string // BeginCreateOrUpdate - Updates workspace managed sql server's encryption protector. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// encryptionProtectorName - The name of the encryption protector. -// parameters - The requested encryption protector resource state. -// options - WorkspaceManagedSQLServerEncryptionProtectorClientBeginCreateOrUpdateOptions contains the optional parameters -// for the WorkspaceManagedSQLServerEncryptionProtectorClient.BeginCreateOrUpdate method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - encryptionProtectorName - The name of the encryption protector. +// - parameters - The requested encryption protector resource state. +// - options - WorkspaceManagedSQLServerEncryptionProtectorClientBeginCreateOrUpdateOptions contains the optional parameters +// for the WorkspaceManagedSQLServerEncryptionProtectorClient.BeginCreateOrUpdate method. func (client *WorkspaceManagedSQLServerEncryptionProtectorClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, encryptionProtectorName EncryptionProtectorName, parameters EncryptionProtector, options *WorkspaceManagedSQLServerEncryptionProtectorClientBeginCreateOrUpdateOptions) (*runtime.Poller[WorkspaceManagedSQLServerEncryptionProtectorClientCreateOrUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createOrUpdate(ctx, resourceGroupName, workspaceName, encryptionProtectorName, parameters, options) @@ -77,6 +79,7 @@ func (client *WorkspaceManagedSQLServerEncryptionProtectorClient) BeginCreateOrU // CreateOrUpdate - Updates workspace managed sql server's encryption protector. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 func (client *WorkspaceManagedSQLServerEncryptionProtectorClient) createOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, encryptionProtectorName EncryptionProtectorName, parameters EncryptionProtector, options *WorkspaceManagedSQLServerEncryptionProtectorClientBeginCreateOrUpdateOptions) (*http.Response, error) { req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, workspaceName, encryptionProtectorName, parameters, options) @@ -125,12 +128,13 @@ func (client *WorkspaceManagedSQLServerEncryptionProtectorClient) createOrUpdate // Get - Get workspace managed sql server's encryption protector. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// encryptionProtectorName - The name of the encryption protector. -// options - WorkspaceManagedSQLServerEncryptionProtectorClientGetOptions contains the optional parameters for the WorkspaceManagedSQLServerEncryptionProtectorClient.Get -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - encryptionProtectorName - The name of the encryption protector. +// - options - WorkspaceManagedSQLServerEncryptionProtectorClientGetOptions contains the optional parameters for the WorkspaceManagedSQLServerEncryptionProtectorClient.Get +// method. func (client *WorkspaceManagedSQLServerEncryptionProtectorClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, encryptionProtectorName EncryptionProtectorName, options *WorkspaceManagedSQLServerEncryptionProtectorClientGetOptions) (WorkspaceManagedSQLServerEncryptionProtectorClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, workspaceName, encryptionProtectorName, options) if err != nil { @@ -186,12 +190,12 @@ func (client *WorkspaceManagedSQLServerEncryptionProtectorClient) getHandleRespo } // NewListPager - Get list of encryption protectors for workspace managed sql server. -// If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// options - WorkspaceManagedSQLServerEncryptionProtectorClientListOptions contains the optional parameters for the WorkspaceManagedSQLServerEncryptionProtectorClient.List -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - options - WorkspaceManagedSQLServerEncryptionProtectorClientListOptions contains the optional parameters for the WorkspaceManagedSQLServerEncryptionProtectorClient.NewListPager +// method. func (client *WorkspaceManagedSQLServerEncryptionProtectorClient) NewListPager(resourceGroupName string, workspaceName string, options *WorkspaceManagedSQLServerEncryptionProtectorClientListOptions) *runtime.Pager[WorkspaceManagedSQLServerEncryptionProtectorClientListResponse] { return runtime.NewPager(runtime.PagingHandler[WorkspaceManagedSQLServerEncryptionProtectorClientListResponse]{ More: func(page WorkspaceManagedSQLServerEncryptionProtectorClientListResponse) bool { @@ -257,12 +261,13 @@ func (client *WorkspaceManagedSQLServerEncryptionProtectorClient) listHandleResp // BeginRevalidate - Revalidates workspace managed sql server's existing encryption protector. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// encryptionProtectorName - The name of the encryption protector. -// options - WorkspaceManagedSQLServerEncryptionProtectorClientBeginRevalidateOptions contains the optional parameters for -// the WorkspaceManagedSQLServerEncryptionProtectorClient.BeginRevalidate method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - encryptionProtectorName - The name of the encryption protector. +// - options - WorkspaceManagedSQLServerEncryptionProtectorClientBeginRevalidateOptions contains the optional parameters for +// the WorkspaceManagedSQLServerEncryptionProtectorClient.BeginRevalidate method. func (client *WorkspaceManagedSQLServerEncryptionProtectorClient) BeginRevalidate(ctx context.Context, resourceGroupName string, workspaceName string, encryptionProtectorName EncryptionProtectorName, options *WorkspaceManagedSQLServerEncryptionProtectorClientBeginRevalidateOptions) (*runtime.Poller[WorkspaceManagedSQLServerEncryptionProtectorClientRevalidateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.revalidate(ctx, resourceGroupName, workspaceName, encryptionProtectorName, options) @@ -277,6 +282,7 @@ func (client *WorkspaceManagedSQLServerEncryptionProtectorClient) BeginRevalidat // Revalidate - Revalidates workspace managed sql server's existing encryption protector. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 func (client *WorkspaceManagedSQLServerEncryptionProtectorClient) revalidate(ctx context.Context, resourceGroupName string, workspaceName string, encryptionProtectorName EncryptionProtectorName, options *WorkspaceManagedSQLServerEncryptionProtectorClientBeginRevalidateOptions) (*http.Response, error) { req, err := client.revalidateCreateRequest(ctx, resourceGroupName, workspaceName, encryptionProtectorName, options) diff --git a/sdk/resourcemanager/synapse/armsynapse/workspacemanagedsqlserverencryptionprotector_client_example_test.go b/sdk/resourcemanager/synapse/armsynapse/workspacemanagedsqlserverencryptionprotector_client_example_test.go new file mode 100644 index 000000000000..d32318643fe6 --- /dev/null +++ b/sdk/resourcemanager/synapse/armsynapse/workspacemanagedsqlserverencryptionprotector_client_example_test.go @@ -0,0 +1,192 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armsynapse_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetWorkspaceManagedSqlServerEncryptionProtector.json +func ExampleWorkspaceManagedSQLServerEncryptionProtectorClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewWorkspaceManagedSQLServerEncryptionProtectorClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "wsg-7398", "testWorkspace", armsynapse.EncryptionProtectorNameCurrent, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.EncryptionProtector = armsynapse.EncryptionProtector{ + // Name: to.Ptr("current"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/encryptionProtector"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/wsg-7398/providers/Microsoft.Synapse/workspaces/testWorkspace/encryptionProtector/current"), + // Kind: to.Ptr("azurekeyvault"), + // Location: to.Ptr("Japan East"), + // Properties: &armsynapse.EncryptionProtectorProperties{ + // ServerKeyName: to.Ptr("someVault_someKey_01234567890123456789012345678901"), + // ServerKeyType: to.Ptr(armsynapse.ServerKeyTypeAzureKeyVault), + // URI: to.Ptr("https://someVault.vault.azure.net/keys/someKey/01234567890123456789012345678901"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateKeyVault.json +func ExampleWorkspaceManagedSQLServerEncryptionProtectorClient_BeginCreateOrUpdate_updateTheEncryptionProtectorToKeyVault() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewWorkspaceManagedSQLServerEncryptionProtectorClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreateOrUpdate(ctx, "wsg-7398", "testWorkspace", armsynapse.EncryptionProtectorNameCurrent, armsynapse.EncryptionProtector{ + Properties: &armsynapse.EncryptionProtectorProperties{ + ServerKeyName: to.Ptr("someVault_someKey_01234567890123456789012345678901"), + ServerKeyType: to.Ptr(armsynapse.ServerKeyTypeAzureKeyVault), + }, + }, 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.EncryptionProtector = armsynapse.EncryptionProtector{ + // Name: to.Ptr("current"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/encryptionProtector"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/wsg-7398/providers/Microsoft.Synapse/workspaces/testWorkspace/encryptionProtector/current"), + // Kind: to.Ptr("azurekeyvault"), + // Location: to.Ptr("West US"), + // Properties: &armsynapse.EncryptionProtectorProperties{ + // ServerKeyName: to.Ptr("someVault_someKey_01234567890123456789012345678901"), + // ServerKeyType: to.Ptr(armsynapse.ServerKeyTypeAzureKeyVault), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateServiceManaged.json +func ExampleWorkspaceManagedSQLServerEncryptionProtectorClient_BeginCreateOrUpdate_updateTheEncryptionProtectorToServiceManaged() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewWorkspaceManagedSQLServerEncryptionProtectorClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreateOrUpdate(ctx, "wsg-7398", "testWorkspace", armsynapse.EncryptionProtectorNameCurrent, armsynapse.EncryptionProtector{ + Properties: &armsynapse.EncryptionProtectorProperties{ + ServerKeyName: to.Ptr("ServiceManaged"), + ServerKeyType: to.Ptr(armsynapse.ServerKeyTypeServiceManaged), + }, + }, 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.EncryptionProtector = armsynapse.EncryptionProtector{ + // Name: to.Ptr("current"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/encryptionProtector"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/wsg-7398/providers/Microsoft.Synapse/workspaces/testWorkspace/encryptionProtector/current"), + // Kind: to.Ptr("servicemanaged"), + // Location: to.Ptr("West US"), + // Properties: &armsynapse.EncryptionProtectorProperties{ + // ServerKeyName: to.Ptr("ServiceManaged"), + // ServerKeyType: to.Ptr(armsynapse.ServerKeyTypeServiceManaged), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetWorkspaceManagedSqlServerEncryptionProtectorList.json +func ExampleWorkspaceManagedSQLServerEncryptionProtectorClient_NewListPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewWorkspaceManagedSQLServerEncryptionProtectorClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListPager("wsg-7398", "testWorkspace", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.EncryptionProtectorListResult = armsynapse.EncryptionProtectorListResult{ + // Value: []*armsynapse.EncryptionProtector{ + // { + // Name: to.Ptr("current"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/encryptionProtector"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/wsg-7398/providers/Microsoft.Synapse/workspaces/testWorkspace/encryptionProtector/current"), + // Kind: to.Ptr("azurekeyvault"), + // Location: to.Ptr("Japan East"), + // Properties: &armsynapse.EncryptionProtectorProperties{ + // ServerKeyName: to.Ptr("someVault_someKey_01234567890123456789012345678901"), + // ServerKeyType: to.Ptr(armsynapse.ServerKeyTypeAzureKeyVault), + // URI: to.Ptr("https://someVault.vault.azure.net/keys/someKey/01234567890123456789012345678901"), + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/WorkspaceManagedSqlServerEncryptionProtectorRevalidate.json +func ExampleWorkspaceManagedSQLServerEncryptionProtectorClient_BeginRevalidate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewWorkspaceManagedSQLServerEncryptionProtectorClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginRevalidate(ctx, "wsg-7398", "testWorkspace", armsynapse.EncryptionProtectorNameCurrent, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + _, err = poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } +} diff --git a/sdk/resourcemanager/synapse/armsynapse/zz_generated_workspacemanagedsqlserverextendedblobauditingpolicies_client.go b/sdk/resourcemanager/synapse/armsynapse/workspacemanagedsqlserverextendedblobauditingpolicies_client.go similarity index 89% rename from sdk/resourcemanager/synapse/armsynapse/zz_generated_workspacemanagedsqlserverextendedblobauditingpolicies_client.go rename to sdk/resourcemanager/synapse/armsynapse/workspacemanagedsqlserverextendedblobauditingpolicies_client.go index 1a1fe28469fb..8dc4384a4116 100644 --- a/sdk/resourcemanager/synapse/armsynapse/zz_generated_workspacemanagedsqlserverextendedblobauditingpolicies_client.go +++ b/sdk/resourcemanager/synapse/armsynapse/workspacemanagedsqlserverextendedblobauditingpolicies_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse @@ -31,9 +32,9 @@ type WorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClient struct { } // NewWorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClient creates a new instance of WorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewWorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*WorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,13 +57,14 @@ func NewWorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClient(subscription // BeginCreateOrUpdate - Create or Update a workspace managed sql server's extended blob auditing policy. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// blobAuditingPolicyName - The name of the blob auditing policy. -// parameters - Properties of extended blob auditing policy. -// options - WorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClientBeginCreateOrUpdateOptions contains the optional parameters -// for the WorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClient.BeginCreateOrUpdate method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - blobAuditingPolicyName - The name of the blob auditing policy. +// - parameters - Properties of extended blob auditing policy. +// - options - WorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClientBeginCreateOrUpdateOptions contains the optional parameters +// for the WorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClient.BeginCreateOrUpdate method. func (client *WorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, blobAuditingPolicyName BlobAuditingPolicyName, parameters ExtendedServerBlobAuditingPolicy, options *WorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClientBeginCreateOrUpdateOptions) (*runtime.Poller[WorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClientCreateOrUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createOrUpdate(ctx, resourceGroupName, workspaceName, blobAuditingPolicyName, parameters, options) @@ -77,6 +79,7 @@ func (client *WorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClient) Begin // CreateOrUpdate - Create or Update a workspace managed sql server's extended blob auditing policy. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 func (client *WorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClient) createOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, blobAuditingPolicyName BlobAuditingPolicyName, parameters ExtendedServerBlobAuditingPolicy, options *WorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClientBeginCreateOrUpdateOptions) (*http.Response, error) { req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, workspaceName, blobAuditingPolicyName, parameters, options) @@ -125,12 +128,13 @@ func (client *WorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClient) creat // Get - Get a workspace SQL server's extended blob auditing policy. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// blobAuditingPolicyName - The name of the blob auditing policy. -// options - WorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClientGetOptions contains the optional parameters for the -// WorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClient.Get method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - blobAuditingPolicyName - The name of the blob auditing policy. +// - options - WorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClientGetOptions contains the optional parameters for the +// WorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClient.Get method. func (client *WorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, blobAuditingPolicyName BlobAuditingPolicyName, options *WorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClientGetOptions) (WorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, workspaceName, blobAuditingPolicyName, options) if err != nil { @@ -186,12 +190,12 @@ func (client *WorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClient) getHa } // NewListByWorkspacePager - List workspace managed sql server's extended blob auditing policies. -// If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// options - WorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClientListByWorkspaceOptions contains the optional parameters -// for the WorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClient.ListByWorkspace method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - options - WorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClientListByWorkspaceOptions contains the optional parameters +// for the WorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClient.NewListByWorkspacePager method. func (client *WorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClient) NewListByWorkspacePager(resourceGroupName string, workspaceName string, options *WorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClientListByWorkspaceOptions) *runtime.Pager[WorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClientListByWorkspaceResponse] { return runtime.NewPager(runtime.PagingHandler[WorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClientListByWorkspaceResponse]{ More: func(page WorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClientListByWorkspaceResponse) bool { diff --git a/sdk/resourcemanager/synapse/armsynapse/workspacemanagedsqlserverextendedblobauditingpolicies_client_example_test.go b/sdk/resourcemanager/synapse/armsynapse/workspacemanagedsqlserverextendedblobauditingpolicies_client_example_test.go new file mode 100644 index 000000000000..dcee4a6ef00e --- /dev/null +++ b/sdk/resourcemanager/synapse/armsynapse/workspacemanagedsqlserverextendedblobauditingpolicies_client_example_test.go @@ -0,0 +1,203 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armsynapse_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetWorkspaceManagedSqlExtendedServerBlobAuditingSettings.json +func ExampleWorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewWorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "wsg-7398", "testWorkspace", armsynapse.BlobAuditingPolicyNameDefault, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.ExtendedServerBlobAuditingPolicy = armsynapse.ExtendedServerBlobAuditingPolicy{ + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/extendedAuditingSettings"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/wsg-7398/providers/Microsoft.Synapse/workspaces/testWorkspace/extendedAuditingSettings/default"), + // Properties: &armsynapse.ExtendedServerBlobAuditingPolicyProperties{ + // AuditActionsAndGroups: []*string{ + // }, + // IsAzureMonitorTargetEnabled: to.Ptr(false), + // IsStorageSecondaryKeyInUse: to.Ptr(false), + // PredicateExpression: to.Ptr("object_name = 'SensitiveData'"), + // RetentionDays: to.Ptr[int32](0), + // State: to.Ptr(armsynapse.BlobAuditingPolicyStateDisabled), + // StorageAccountSubscriptionID: to.Ptr("00000000-0000-0000-0000-000000000000"), + // StorageEndpoint: to.Ptr(""), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateWorkspaceManagedSqlServerExtendedBlobAuditingSettingsWithAllParameters.json +func ExampleWorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClient_BeginCreateOrUpdate_createOrUpdateWorkspaceManagedSqlServersExtendedBlobAuditingPolicyOfWithAllParameters() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewWorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreateOrUpdate(ctx, "wsg-7398", "testWorkspace", armsynapse.BlobAuditingPolicyNameDefault, armsynapse.ExtendedServerBlobAuditingPolicy{ + Properties: &armsynapse.ExtendedServerBlobAuditingPolicyProperties{ + AuditActionsAndGroups: []*string{ + to.Ptr("SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP"), + to.Ptr("FAILED_DATABASE_AUTHENTICATION_GROUP"), + to.Ptr("BATCH_COMPLETED_GROUP")}, + IsAzureMonitorTargetEnabled: to.Ptr(true), + IsStorageSecondaryKeyInUse: to.Ptr(false), + PredicateExpression: to.Ptr("object_name = 'SensitiveData'"), + RetentionDays: to.Ptr[int32](6), + State: to.Ptr(armsynapse.BlobAuditingPolicyStateEnabled), + StorageAccountAccessKey: to.Ptr("sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3RSD=="), + StorageAccountSubscriptionID: to.Ptr("00000000-1234-0000-5678-000000000000"), + StorageEndpoint: to.Ptr("https://mystorage.blob.core.windows.net"), + }, + }, 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.ExtendedServerBlobAuditingPolicy = armsynapse.ExtendedServerBlobAuditingPolicy{ + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/extendedAuditingSettings"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/wsg-7398/providers/Microsoft.Synapse/workspaces/testWorkspace/extendedAuditingSettings/default"), + // Properties: &armsynapse.ExtendedServerBlobAuditingPolicyProperties{ + // AuditActionsAndGroups: []*string{ + // to.Ptr("SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP"), + // to.Ptr("FAILED_DATABASE_AUTHENTICATION_GROUP"), + // to.Ptr("BATCH_COMPLETED_GROUP")}, + // IsAzureMonitorTargetEnabled: to.Ptr(true), + // IsStorageSecondaryKeyInUse: to.Ptr(false), + // PredicateExpression: to.Ptr("object_name = 'SensitiveData'"), + // RetentionDays: to.Ptr[int32](6), + // State: to.Ptr(armsynapse.BlobAuditingPolicyStateEnabled), + // StorageAccountSubscriptionID: to.Ptr("00000000-1234-0000-5678-000000000000"), + // StorageEndpoint: to.Ptr("https://mystorage.blob.core.windows.net"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateWorkspaceManagedSqlServerExetendedBlobAuditingSettingsWithMinParameters.json +func ExampleWorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClient_BeginCreateOrUpdate_createOrUpdateWorkspaceManagedSqlServersExtendedBlobAuditingPolicyOfWithMinimalParameters() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewWorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreateOrUpdate(ctx, "wsg-7398", "testWorkspace", armsynapse.BlobAuditingPolicyNameDefault, armsynapse.ExtendedServerBlobAuditingPolicy{ + Properties: &armsynapse.ExtendedServerBlobAuditingPolicyProperties{ + State: to.Ptr(armsynapse.BlobAuditingPolicyStateEnabled), + StorageAccountAccessKey: to.Ptr("sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3RSD=="), + StorageEndpoint: to.Ptr("https://mystorage.blob.core.windows.net"), + }, + }, 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.ExtendedServerBlobAuditingPolicy = armsynapse.ExtendedServerBlobAuditingPolicy{ + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/extendedAuditingSettings"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/wsg-7398/providers/Microsoft.Synapse/workspaces/testWorkspace/extendedAuditingSettings/default"), + // Properties: &armsynapse.ExtendedServerBlobAuditingPolicyProperties{ + // AuditActionsAndGroups: []*string{ + // to.Ptr("SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP"), + // to.Ptr("FAILED_DATABASE_AUTHENTICATION_GROUP"), + // to.Ptr("BATCH_COMPLETED_GROUP")}, + // IsAzureMonitorTargetEnabled: to.Ptr(false), + // IsStorageSecondaryKeyInUse: to.Ptr(false), + // RetentionDays: to.Ptr[int32](6), + // State: to.Ptr(armsynapse.BlobAuditingPolicyStateEnabled), + // StorageAccountSubscriptionID: to.Ptr("00000000-1234-0000-5678-000000000000"), + // StorageEndpoint: to.Ptr("https://mystorage.blob.core.windows.net"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListWorkspaceManagedSqlServerExtendedBlobAuditingSettings.json +func ExampleWorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClient_NewListByWorkspacePager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewWorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListByWorkspacePager("wsg-7398", "testWorkspace", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.ExtendedServerBlobAuditingPolicyListResult = armsynapse.ExtendedServerBlobAuditingPolicyListResult{ + // Value: []*armsynapse.ExtendedServerBlobAuditingPolicy{ + // { + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/extendedAuditingSettings"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/wsg-7398/providers/Microsoft.Synapse/workspaces/testWorkspace/extendedAuditingSettings/default"), + // Properties: &armsynapse.ExtendedServerBlobAuditingPolicyProperties{ + // AuditActionsAndGroups: []*string{ + // }, + // IsAzureMonitorTargetEnabled: to.Ptr(false), + // IsStorageSecondaryKeyInUse: to.Ptr(false), + // PredicateExpression: to.Ptr("object_name = 'SensitiveData'"), + // RetentionDays: to.Ptr[int32](0), + // State: to.Ptr(armsynapse.BlobAuditingPolicyStateDisabled), + // StorageAccountSubscriptionID: to.Ptr("00000000-0000-0000-0000-000000000000"), + // StorageEndpoint: to.Ptr(""), + // }, + // }}, + // } + } +} diff --git a/sdk/resourcemanager/synapse/armsynapse/zz_generated_workspacemanagedsqlserverrecoverablesqlpools_client.go b/sdk/resourcemanager/synapse/armsynapse/workspacemanagedsqlserverrecoverablesqlpools_client.go similarity index 90% rename from sdk/resourcemanager/synapse/armsynapse/zz_generated_workspacemanagedsqlserverrecoverablesqlpools_client.go rename to sdk/resourcemanager/synapse/armsynapse/workspacemanagedsqlserverrecoverablesqlpools_client.go index 66eb42b7b82a..f513fb19cb8d 100644 --- a/sdk/resourcemanager/synapse/armsynapse/zz_generated_workspacemanagedsqlserverrecoverablesqlpools_client.go +++ b/sdk/resourcemanager/synapse/armsynapse/workspacemanagedsqlserverrecoverablesqlpools_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse @@ -31,9 +32,9 @@ type WorkspaceManagedSQLServerRecoverableSQLPoolsClient struct { } // NewWorkspaceManagedSQLServerRecoverableSQLPoolsClient creates a new instance of WorkspaceManagedSQLServerRecoverableSQLPoolsClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewWorkspaceManagedSQLServerRecoverableSQLPoolsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*WorkspaceManagedSQLServerRecoverableSQLPoolsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,12 +57,13 @@ func NewWorkspaceManagedSQLServerRecoverableSQLPoolsClient(subscriptionID string // Get - Get recoverable sql pools for workspace managed sql server. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// sqlPoolName - The name of the sql pool -// options - WorkspaceManagedSQLServerRecoverableSQLPoolsClientGetOptions contains the optional parameters for the WorkspaceManagedSQLServerRecoverableSQLPoolsClient.Get -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - sqlPoolName - The name of the sql pool +// - options - WorkspaceManagedSQLServerRecoverableSQLPoolsClientGetOptions contains the optional parameters for the WorkspaceManagedSQLServerRecoverableSQLPoolsClient.Get +// method. func (client *WorkspaceManagedSQLServerRecoverableSQLPoolsClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, sqlPoolName string, options *WorkspaceManagedSQLServerRecoverableSQLPoolsClientGetOptions) (WorkspaceManagedSQLServerRecoverableSQLPoolsClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, workspaceName, sqlPoolName, options) if err != nil { @@ -117,12 +119,12 @@ func (client *WorkspaceManagedSQLServerRecoverableSQLPoolsClient) getHandleRespo } // NewListPager - Get list of recoverable sql pools for workspace managed sql server. -// If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// options - WorkspaceManagedSQLServerRecoverableSQLPoolsClientListOptions contains the optional parameters for the WorkspaceManagedSQLServerRecoverableSQLPoolsClient.List -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - options - WorkspaceManagedSQLServerRecoverableSQLPoolsClientListOptions contains the optional parameters for the WorkspaceManagedSQLServerRecoverableSQLPoolsClient.NewListPager +// method. func (client *WorkspaceManagedSQLServerRecoverableSQLPoolsClient) NewListPager(resourceGroupName string, workspaceName string, options *WorkspaceManagedSQLServerRecoverableSQLPoolsClientListOptions) *runtime.Pager[WorkspaceManagedSQLServerRecoverableSQLPoolsClientListResponse] { return runtime.NewPager(runtime.PagingHandler[WorkspaceManagedSQLServerRecoverableSQLPoolsClientListResponse]{ More: func(page WorkspaceManagedSQLServerRecoverableSQLPoolsClientListResponse) bool { diff --git a/sdk/resourcemanager/synapse/armsynapse/workspacemanagedsqlserverrecoverablesqlpools_client_example_test.go b/sdk/resourcemanager/synapse/armsynapse/workspacemanagedsqlserverrecoverablesqlpools_client_example_test.go new file mode 100644 index 000000000000..b976d29fe2ac --- /dev/null +++ b/sdk/resourcemanager/synapse/armsynapse/workspacemanagedsqlserverrecoverablesqlpools_client_example_test.go @@ -0,0 +1,106 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armsynapse_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListWorkspaceManagedSqlServerRecoverableSqlPool.json +func ExampleWorkspaceManagedSQLServerRecoverableSQLPoolsClient_NewListPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewWorkspaceManagedSQLServerRecoverableSQLPoolsClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListPager("wsg-7398", "testWorkspace", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.RecoverableSQLPoolListResult = armsynapse.RecoverableSQLPoolListResult{ + // Value: []*armsynapse.RecoverableSQLPool{ + // { + // Name: to.Ptr("recoverableSqlpools-1235"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/recoverableSqlpools"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/wsg-7398/providers/Microsoft.Synapse/workspaces/testWorkspace/recoverableSqlpools/recoverableSqlpools-1235"), + // Properties: &armsynapse.RecoverableSQLPoolProperties{ + // Edition: to.Ptr("Standard"), + // LastAvailableBackupDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-05-26T01:06:29.78Z"); return t}()), + // ServiceLevelObjective: to.Ptr("S0"), + // }, + // }, + // { + // Name: to.Ptr("recoverableSqlpools-9231"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/recoverableSqlpools"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/wsg-7398/providers/Microsoft.Synapse/workspaces/testWorkspace/recoverableSqlpools/recoverableSqlpools-9231"), + // Properties: &armsynapse.RecoverableSQLPoolProperties{ + // Edition: to.Ptr("Premium"), + // LastAvailableBackupDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-05-26T03:20:31.78Z"); return t}()), + // ServiceLevelObjective: to.Ptr("P1"), + // }, + // }, + // { + // Name: to.Ptr("recoverableSqlpools-0342"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/recoverableSqlpools"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/wsg-7398/providers/Microsoft.Synapse/workspaces/testWorkspace/recoverableSqlpools/recoverableSqlpools-0342"), + // Properties: &armsynapse.RecoverableSQLPoolProperties{ + // Edition: to.Ptr("Basic"), + // LastAvailableBackupDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-05-24T02:06:18.78Z"); return t}()), + // ServiceLevelObjective: to.Ptr("Basic"), + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetWorkspaceManagedSqlServerRecoverableSqlPool.json +func ExampleWorkspaceManagedSQLServerRecoverableSQLPoolsClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewWorkspaceManagedSQLServerRecoverableSQLPoolsClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "wsg-7398", "testWorkspace", "recoverableSqlpools-1235", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.RecoverableSQLPool = armsynapse.RecoverableSQLPool{ + // Name: to.Ptr("recoverableSqlpools-1235"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/recoverableSqlpools"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/wsg-7398/providers/Microsoft.Synapse/workspaces/testWorkspace/recoverableSqlpools/recoverableSqlpools-1235"), + // Properties: &armsynapse.RecoverableSQLPoolProperties{ + // Edition: to.Ptr("Standard"), + // LastAvailableBackupDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-05-26T01:06:29.78Z"); return t}()), + // ServiceLevelObjective: to.Ptr("S0"), + // }, + // } +} diff --git a/sdk/resourcemanager/synapse/armsynapse/zz_generated_workspacemanagedsqlserversecurityalertpolicy_client.go b/sdk/resourcemanager/synapse/armsynapse/workspacemanagedsqlserversecurityalertpolicy_client.go similarity index 89% rename from sdk/resourcemanager/synapse/armsynapse/zz_generated_workspacemanagedsqlserversecurityalertpolicy_client.go rename to sdk/resourcemanager/synapse/armsynapse/workspacemanagedsqlserversecurityalertpolicy_client.go index d79ed3a78019..c461dedcb7c8 100644 --- a/sdk/resourcemanager/synapse/armsynapse/zz_generated_workspacemanagedsqlserversecurityalertpolicy_client.go +++ b/sdk/resourcemanager/synapse/armsynapse/workspacemanagedsqlserversecurityalertpolicy_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse @@ -31,9 +32,9 @@ type WorkspaceManagedSQLServerSecurityAlertPolicyClient struct { } // NewWorkspaceManagedSQLServerSecurityAlertPolicyClient creates a new instance of WorkspaceManagedSQLServerSecurityAlertPolicyClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewWorkspaceManagedSQLServerSecurityAlertPolicyClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*WorkspaceManagedSQLServerSecurityAlertPolicyClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,13 +57,14 @@ func NewWorkspaceManagedSQLServerSecurityAlertPolicyClient(subscriptionID string // BeginCreateOrUpdate - Create or Update a workspace managed sql server's threat detection policy. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// securityAlertPolicyName - The name of the security alert policy. -// parameters - The workspace managed sql server security alert policy. -// options - WorkspaceManagedSQLServerSecurityAlertPolicyClientBeginCreateOrUpdateOptions contains the optional parameters -// for the WorkspaceManagedSQLServerSecurityAlertPolicyClient.BeginCreateOrUpdate method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - securityAlertPolicyName - The name of the security alert policy. +// - parameters - The workspace managed sql server security alert policy. +// - options - WorkspaceManagedSQLServerSecurityAlertPolicyClientBeginCreateOrUpdateOptions contains the optional parameters +// for the WorkspaceManagedSQLServerSecurityAlertPolicyClient.BeginCreateOrUpdate method. func (client *WorkspaceManagedSQLServerSecurityAlertPolicyClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, securityAlertPolicyName SecurityAlertPolicyNameAutoGenerated, parameters ServerSecurityAlertPolicy, options *WorkspaceManagedSQLServerSecurityAlertPolicyClientBeginCreateOrUpdateOptions) (*runtime.Poller[WorkspaceManagedSQLServerSecurityAlertPolicyClientCreateOrUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createOrUpdate(ctx, resourceGroupName, workspaceName, securityAlertPolicyName, parameters, options) @@ -77,6 +79,7 @@ func (client *WorkspaceManagedSQLServerSecurityAlertPolicyClient) BeginCreateOrU // CreateOrUpdate - Create or Update a workspace managed sql server's threat detection policy. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 func (client *WorkspaceManagedSQLServerSecurityAlertPolicyClient) createOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, securityAlertPolicyName SecurityAlertPolicyNameAutoGenerated, parameters ServerSecurityAlertPolicy, options *WorkspaceManagedSQLServerSecurityAlertPolicyClientBeginCreateOrUpdateOptions) (*http.Response, error) { req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, workspaceName, securityAlertPolicyName, parameters, options) @@ -125,12 +128,13 @@ func (client *WorkspaceManagedSQLServerSecurityAlertPolicyClient) createOrUpdate // Get - Get a workspace managed sql server's security alert policy. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// securityAlertPolicyName - The name of the security alert policy. -// options - WorkspaceManagedSQLServerSecurityAlertPolicyClientGetOptions contains the optional parameters for the WorkspaceManagedSQLServerSecurityAlertPolicyClient.Get -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - securityAlertPolicyName - The name of the security alert policy. +// - options - WorkspaceManagedSQLServerSecurityAlertPolicyClientGetOptions contains the optional parameters for the WorkspaceManagedSQLServerSecurityAlertPolicyClient.Get +// method. func (client *WorkspaceManagedSQLServerSecurityAlertPolicyClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, securityAlertPolicyName SecurityAlertPolicyNameAutoGenerated, options *WorkspaceManagedSQLServerSecurityAlertPolicyClientGetOptions) (WorkspaceManagedSQLServerSecurityAlertPolicyClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, workspaceName, securityAlertPolicyName, options) if err != nil { @@ -186,12 +190,12 @@ func (client *WorkspaceManagedSQLServerSecurityAlertPolicyClient) getHandleRespo } // NewListPager - Get workspace managed sql server's threat detection policies. -// If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// options - WorkspaceManagedSQLServerSecurityAlertPolicyClientListOptions contains the optional parameters for the WorkspaceManagedSQLServerSecurityAlertPolicyClient.List -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - options - WorkspaceManagedSQLServerSecurityAlertPolicyClientListOptions contains the optional parameters for the WorkspaceManagedSQLServerSecurityAlertPolicyClient.NewListPager +// method. func (client *WorkspaceManagedSQLServerSecurityAlertPolicyClient) NewListPager(resourceGroupName string, workspaceName string, options *WorkspaceManagedSQLServerSecurityAlertPolicyClientListOptions) *runtime.Pager[WorkspaceManagedSQLServerSecurityAlertPolicyClientListResponse] { return runtime.NewPager(runtime.PagingHandler[WorkspaceManagedSQLServerSecurityAlertPolicyClientListResponse]{ More: func(page WorkspaceManagedSQLServerSecurityAlertPolicyClientListResponse) bool { diff --git a/sdk/resourcemanager/synapse/armsynapse/workspacemanagedsqlserversecurityalertpolicy_client_example_test.go b/sdk/resourcemanager/synapse/armsynapse/workspacemanagedsqlserversecurityalertpolicy_client_example_test.go new file mode 100644 index 000000000000..35c6e964c527 --- /dev/null +++ b/sdk/resourcemanager/synapse/armsynapse/workspacemanagedsqlserversecurityalertpolicy_client_example_test.go @@ -0,0 +1,204 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armsynapse_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetWorkspaceManagedSqlServerSecurityAlertPolicy.json +func ExampleWorkspaceManagedSQLServerSecurityAlertPolicyClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewWorkspaceManagedSQLServerSecurityAlertPolicyClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "wsg-7398", "testWorkspace", armsynapse.SecurityAlertPolicyNameAutoGeneratedDefault, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.ServerSecurityAlertPolicy = armsynapse.ServerSecurityAlertPolicy{ + // Name: to.Ptr("Default"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/securityAlertPolicies"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/wsg-7398/providers/Microsoft.Synapse/workspaces/testWorkspace/securityAlertPolicies/Default"), + // Properties: &armsynapse.ServerSecurityAlertPolicyProperties{ + // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-10-23T04:52:49.52Z"); return t}()), + // DisabledAlerts: []*string{ + // to.Ptr("Access_Anomaly")}, + // EmailAccountAdmins: to.Ptr(true), + // EmailAddresses: []*string{ + // to.Ptr("test@microsoft.com;user@microsoft.com")}, + // RetentionDays: to.Ptr[int32](0), + // State: to.Ptr(armsynapse.SecurityAlertPolicyStateDisabled), + // StorageAccountAccessKey: to.Ptr(""), + // StorageEndpoint: to.Ptr("https://mystorage.blob.core.windows.net"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/WorkspaceManagedSqlServerSecurityAlertWithAllParameters.json +func ExampleWorkspaceManagedSQLServerSecurityAlertPolicyClient_BeginCreateOrUpdate_updateAWorkspaceManagedSqlServersThreatDetectionPolicyWithAllParameters() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewWorkspaceManagedSQLServerSecurityAlertPolicyClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreateOrUpdate(ctx, "wsg-7398", "testWorkspace", armsynapse.SecurityAlertPolicyNameAutoGeneratedDefault, armsynapse.ServerSecurityAlertPolicy{ + Properties: &armsynapse.ServerSecurityAlertPolicyProperties{ + DisabledAlerts: []*string{ + to.Ptr("Access_Anomaly"), + to.Ptr("Usage_Anomaly")}, + EmailAccountAdmins: to.Ptr(true), + EmailAddresses: []*string{ + to.Ptr("testSecurityAlert@microsoft.com")}, + RetentionDays: to.Ptr[int32](5), + State: to.Ptr(armsynapse.SecurityAlertPolicyStateEnabled), + StorageAccountAccessKey: to.Ptr("sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3RSD=="), + StorageEndpoint: to.Ptr("https://mystorage.blob.core.windows.net"), + }, + }, 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.ServerSecurityAlertPolicy = armsynapse.ServerSecurityAlertPolicy{ + // Name: to.Ptr("Default"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/securityAlertPolicies"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/wsg-7398/providers/Microsoft.Synapse/workspaces/testWorkspace/securityAlertPolicies/Default"), + // Properties: &armsynapse.ServerSecurityAlertPolicyProperties{ + // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-10-23T04:52:49.52Z"); return t}()), + // DisabledAlerts: []*string{ + // to.Ptr("Access_Anomaly"), + // to.Ptr("Usage_Anomaly")}, + // EmailAccountAdmins: to.Ptr(true), + // EmailAddresses: []*string{ + // to.Ptr("testSecurityAlert@microsoft.com")}, + // RetentionDays: to.Ptr[int32](5), + // State: to.Ptr(armsynapse.SecurityAlertPolicyStateEnabled), + // StorageAccountAccessKey: to.Ptr(""), + // StorageEndpoint: to.Ptr("https://mystorage.blob.core.windows.net"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/WorkspaceManagedSqlServerSecurityAlertCreateWithMinParameters.json +func ExampleWorkspaceManagedSQLServerSecurityAlertPolicyClient_BeginCreateOrUpdate_updateAWorkspaceManagedSqlServersThreatDetectionPolicyWithMinimalParameters() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewWorkspaceManagedSQLServerSecurityAlertPolicyClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreateOrUpdate(ctx, "wsg-7398", "testWorkspace", armsynapse.SecurityAlertPolicyNameAutoGeneratedDefault, armsynapse.ServerSecurityAlertPolicy{ + Properties: &armsynapse.ServerSecurityAlertPolicyProperties{ + EmailAccountAdmins: to.Ptr(true), + State: to.Ptr(armsynapse.SecurityAlertPolicyStateDisabled), + StorageAccountAccessKey: to.Ptr("sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3RSD=="), + StorageEndpoint: to.Ptr("https://mystorage.blob.core.windows.net"), + }, + }, 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.ServerSecurityAlertPolicy = armsynapse.ServerSecurityAlertPolicy{ + // Name: to.Ptr("Default"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/securityAlertPolicies"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/wsg-7398/providers/Microsoft.Synapse/workspaces/testWorkspace/securityAlertPolicies/Default"), + // Properties: &armsynapse.ServerSecurityAlertPolicyProperties{ + // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-10-23T04:52:49.52Z"); return t}()), + // DisabledAlerts: []*string{ + // to.Ptr("")}, + // EmailAccountAdmins: to.Ptr(true), + // EmailAddresses: []*string{ + // to.Ptr("")}, + // RetentionDays: to.Ptr[int32](0), + // State: to.Ptr(armsynapse.SecurityAlertPolicyStateEnabled), + // StorageAccountAccessKey: to.Ptr(""), + // StorageEndpoint: to.Ptr("https://mystorage.blob.core.windows.net"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListWorkspaceManagedSqlServerSecurityAlertPolicies.json +func ExampleWorkspaceManagedSQLServerSecurityAlertPolicyClient_NewListPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewWorkspaceManagedSQLServerSecurityAlertPolicyClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListPager("wsg-7398", "testWorkspace", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.ServerSecurityAlertPolicyListResult = armsynapse.ServerSecurityAlertPolicyListResult{ + // Value: []*armsynapse.ServerSecurityAlertPolicy{ + // { + // Name: to.Ptr("Default"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/securityAlertPolicies"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/wsg-7398/providers/Microsoft.Synapse/workspaces/testWorkspace/securityAlertPolicies"), + // Properties: &armsynapse.ServerSecurityAlertPolicyProperties{ + // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-10-23T04:52:49.52Z"); return t}()), + // DisabledAlerts: []*string{ + // to.Ptr("Access_Anomaly")}, + // EmailAccountAdmins: to.Ptr(true), + // EmailAddresses: []*string{ + // to.Ptr("test@microsoft.com;user@microsoft.com")}, + // RetentionDays: to.Ptr[int32](0), + // State: to.Ptr(armsynapse.SecurityAlertPolicyStateDisabled), + // StorageAccountAccessKey: to.Ptr(""), + // StorageEndpoint: to.Ptr("https://mystorage.blob.core.windows.net"), + // }, + // }}, + // } + } +} diff --git a/sdk/resourcemanager/synapse/armsynapse/zz_generated_workspacemanagedsqlserverusages_client.go b/sdk/resourcemanager/synapse/armsynapse/workspacemanagedsqlserverusages_client.go similarity index 90% rename from sdk/resourcemanager/synapse/armsynapse/zz_generated_workspacemanagedsqlserverusages_client.go rename to sdk/resourcemanager/synapse/armsynapse/workspacemanagedsqlserverusages_client.go index be5c0fe428cc..e624316434b3 100644 --- a/sdk/resourcemanager/synapse/armsynapse/zz_generated_workspacemanagedsqlserverusages_client.go +++ b/sdk/resourcemanager/synapse/armsynapse/workspacemanagedsqlserverusages_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse @@ -31,9 +32,9 @@ type WorkspaceManagedSQLServerUsagesClient struct { } // NewWorkspaceManagedSQLServerUsagesClient creates a new instance of WorkspaceManagedSQLServerUsagesClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewWorkspaceManagedSQLServerUsagesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*WorkspaceManagedSQLServerUsagesClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -55,12 +56,12 @@ func NewWorkspaceManagedSQLServerUsagesClient(subscriptionID string, credential } // NewListPager - Get list of server usages metric for workspace managed sql server. -// If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// options - WorkspaceManagedSQLServerUsagesClientListOptions contains the optional parameters for the WorkspaceManagedSQLServerUsagesClient.List -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - options - WorkspaceManagedSQLServerUsagesClientListOptions contains the optional parameters for the WorkspaceManagedSQLServerUsagesClient.NewListPager +// method. func (client *WorkspaceManagedSQLServerUsagesClient) NewListPager(resourceGroupName string, workspaceName string, options *WorkspaceManagedSQLServerUsagesClientListOptions) *runtime.Pager[WorkspaceManagedSQLServerUsagesClientListResponse] { return runtime.NewPager(runtime.PagingHandler[WorkspaceManagedSQLServerUsagesClientListResponse]{ More: func(page WorkspaceManagedSQLServerUsagesClientListResponse) bool { diff --git a/sdk/resourcemanager/synapse/armsynapse/workspacemanagedsqlserverusages_client_example_test.go b/sdk/resourcemanager/synapse/armsynapse/workspacemanagedsqlserverusages_client_example_test.go new file mode 100644 index 000000000000..33977bf9ecf8 --- /dev/null +++ b/sdk/resourcemanager/synapse/armsynapse/workspacemanagedsqlserverusages_client_example_test.go @@ -0,0 +1,62 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armsynapse_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListWorkspaceManagedSqlServerUsages.json +func ExampleWorkspaceManagedSQLServerUsagesClient_NewListPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewWorkspaceManagedSQLServerUsagesClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListPager("wsg-7398", "testWorkspace", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.ServerUsageListResult = armsynapse.ServerUsageListResult{ + // Value: []*armsynapse.ServerUsage{ + // { + // Name: to.Ptr("server_dtu_quota"), + // CurrentValue: to.Ptr[float64](0), + // DisplayName: to.Ptr("Database Throughput Unit Quota"), + // Limit: to.Ptr[float64](45000), + // ResourceName: to.Ptr("testWorkspace"), + // Unit: to.Ptr("DTUs"), + // }, + // { + // Name: to.Ptr("server_dtu_quota_current"), + // CurrentValue: to.Ptr[float64](0), + // DisplayName: to.Ptr("Database Throughput Unit Quota"), + // Limit: to.Ptr[float64](45000), + // ResourceName: to.Ptr("testWorkspace"), + // Unit: to.Ptr("DTUs"), + // }}, + // } + } +} diff --git a/sdk/resourcemanager/synapse/armsynapse/zz_generated_workspacemanagedsqlservervulnerabilityassessments_client.go b/sdk/resourcemanager/synapse/armsynapse/workspacemanagedsqlservervulnerabilityassessments_client.go similarity index 89% rename from sdk/resourcemanager/synapse/armsynapse/zz_generated_workspacemanagedsqlservervulnerabilityassessments_client.go rename to sdk/resourcemanager/synapse/armsynapse/workspacemanagedsqlservervulnerabilityassessments_client.go index e38360ad2abe..fc36c8df3a43 100644 --- a/sdk/resourcemanager/synapse/armsynapse/zz_generated_workspacemanagedsqlservervulnerabilityassessments_client.go +++ b/sdk/resourcemanager/synapse/armsynapse/workspacemanagedsqlservervulnerabilityassessments_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse @@ -31,9 +32,9 @@ type WorkspaceManagedSQLServerVulnerabilityAssessmentsClient struct { } // NewWorkspaceManagedSQLServerVulnerabilityAssessmentsClient creates a new instance of WorkspaceManagedSQLServerVulnerabilityAssessmentsClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewWorkspaceManagedSQLServerVulnerabilityAssessmentsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*WorkspaceManagedSQLServerVulnerabilityAssessmentsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,13 +57,14 @@ func NewWorkspaceManagedSQLServerVulnerabilityAssessmentsClient(subscriptionID s // CreateOrUpdate - Create or Update workspace managed sql server's vulnerability assessment. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// vulnerabilityAssessmentName - The name of the vulnerability assessment. -// parameters - Properties for vulnerability assessment. -// options - WorkspaceManagedSQLServerVulnerabilityAssessmentsClientCreateOrUpdateOptions contains the optional parameters -// for the WorkspaceManagedSQLServerVulnerabilityAssessmentsClient.CreateOrUpdate method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - vulnerabilityAssessmentName - The name of the vulnerability assessment. +// - parameters - Properties for vulnerability assessment. +// - options - WorkspaceManagedSQLServerVulnerabilityAssessmentsClientCreateOrUpdateOptions contains the optional parameters +// for the WorkspaceManagedSQLServerVulnerabilityAssessmentsClient.CreateOrUpdate method. func (client *WorkspaceManagedSQLServerVulnerabilityAssessmentsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, vulnerabilityAssessmentName VulnerabilityAssessmentName, parameters ServerVulnerabilityAssessment, options *WorkspaceManagedSQLServerVulnerabilityAssessmentsClientCreateOrUpdateOptions) (WorkspaceManagedSQLServerVulnerabilityAssessmentsClientCreateOrUpdateResponse, error) { req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, workspaceName, vulnerabilityAssessmentName, parameters, options) if err != nil { @@ -119,12 +121,13 @@ func (client *WorkspaceManagedSQLServerVulnerabilityAssessmentsClient) createOrU // Delete - Remove workspace managed sql server's vulnerability assessment. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// vulnerabilityAssessmentName - The name of the vulnerability assessment. -// options - WorkspaceManagedSQLServerVulnerabilityAssessmentsClientDeleteOptions contains the optional parameters for the -// WorkspaceManagedSQLServerVulnerabilityAssessmentsClient.Delete method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - vulnerabilityAssessmentName - The name of the vulnerability assessment. +// - options - WorkspaceManagedSQLServerVulnerabilityAssessmentsClientDeleteOptions contains the optional parameters for the +// WorkspaceManagedSQLServerVulnerabilityAssessmentsClient.Delete method. func (client *WorkspaceManagedSQLServerVulnerabilityAssessmentsClient) Delete(ctx context.Context, resourceGroupName string, workspaceName string, vulnerabilityAssessmentName VulnerabilityAssessmentName, options *WorkspaceManagedSQLServerVulnerabilityAssessmentsClientDeleteOptions) (WorkspaceManagedSQLServerVulnerabilityAssessmentsClientDeleteResponse, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, workspaceName, vulnerabilityAssessmentName, options) if err != nil { @@ -171,12 +174,13 @@ func (client *WorkspaceManagedSQLServerVulnerabilityAssessmentsClient) deleteCre // Get - Get workspace managed sql server's vulnerability assessment. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// vulnerabilityAssessmentName - The name of the vulnerability assessment. -// options - WorkspaceManagedSQLServerVulnerabilityAssessmentsClientGetOptions contains the optional parameters for the WorkspaceManagedSQLServerVulnerabilityAssessmentsClient.Get -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - vulnerabilityAssessmentName - The name of the vulnerability assessment. +// - options - WorkspaceManagedSQLServerVulnerabilityAssessmentsClientGetOptions contains the optional parameters for the WorkspaceManagedSQLServerVulnerabilityAssessmentsClient.Get +// method. func (client *WorkspaceManagedSQLServerVulnerabilityAssessmentsClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, vulnerabilityAssessmentName VulnerabilityAssessmentName, options *WorkspaceManagedSQLServerVulnerabilityAssessmentsClientGetOptions) (WorkspaceManagedSQLServerVulnerabilityAssessmentsClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, workspaceName, vulnerabilityAssessmentName, options) if err != nil { @@ -232,12 +236,12 @@ func (client *WorkspaceManagedSQLServerVulnerabilityAssessmentsClient) getHandle } // NewListPager - Lists the vulnerability assessment policies associated with a workspace managed sql server. -// If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// options - WorkspaceManagedSQLServerVulnerabilityAssessmentsClientListOptions contains the optional parameters for the WorkspaceManagedSQLServerVulnerabilityAssessmentsClient.List -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - options - WorkspaceManagedSQLServerVulnerabilityAssessmentsClientListOptions contains the optional parameters for the WorkspaceManagedSQLServerVulnerabilityAssessmentsClient.NewListPager +// method. func (client *WorkspaceManagedSQLServerVulnerabilityAssessmentsClient) NewListPager(resourceGroupName string, workspaceName string, options *WorkspaceManagedSQLServerVulnerabilityAssessmentsClientListOptions) *runtime.Pager[WorkspaceManagedSQLServerVulnerabilityAssessmentsClientListResponse] { return runtime.NewPager(runtime.PagingHandler[WorkspaceManagedSQLServerVulnerabilityAssessmentsClientListResponse]{ More: func(page WorkspaceManagedSQLServerVulnerabilityAssessmentsClientListResponse) bool { diff --git a/sdk/resourcemanager/synapse/armsynapse/workspacemanagedsqlservervulnerabilityassessments_client_example_test.go b/sdk/resourcemanager/synapse/armsynapse/workspacemanagedsqlservervulnerabilityassessments_client_example_test.go new file mode 100644 index 000000000000..e393a07d5d9d --- /dev/null +++ b/sdk/resourcemanager/synapse/armsynapse/workspacemanagedsqlservervulnerabilityassessments_client_example_test.go @@ -0,0 +1,240 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armsynapse_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetWorkspaceManagedSqlServerVulnerabilityAssessment.json +func ExampleWorkspaceManagedSQLServerVulnerabilityAssessmentsClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewWorkspaceManagedSQLServerVulnerabilityAssessmentsClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "wsg-7398", "testWorkspace", armsynapse.VulnerabilityAssessmentNameDefault, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.ServerVulnerabilityAssessment = armsynapse.ServerVulnerabilityAssessment{ + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/vulnerabilityAssessments"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/wsg-7398/providers/Microsoft.Synapse/workspaces/testWorkspace/vulnerabilityAssessments/default"), + // Properties: &armsynapse.ServerVulnerabilityAssessmentProperties{ + // RecurringScans: &armsynapse.VulnerabilityAssessmentRecurringScansProperties{ + // EmailSubscriptionAdmins: to.Ptr(true), + // Emails: []*string{ + // to.Ptr("email1@mail.com"), + // to.Ptr("email2@mail.com")}, + // IsEnabled: to.Ptr(true), + // }, + // StorageContainerPath: to.Ptr("https://myStorage.blob.core.windows.net/vulnerability-assessment/"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/PutWorkspaceManagedSqlServerVulnerabilityAssessmentWithAllParameters.json +func ExampleWorkspaceManagedSQLServerVulnerabilityAssessmentsClient_CreateOrUpdate_createOrUpdateAWorkspaceManagedSqlServersVulnerabilityAssessmentWithAllParameters() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewWorkspaceManagedSQLServerVulnerabilityAssessmentsClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.CreateOrUpdate(ctx, "wsg-7398", "testWorkspace", armsynapse.VulnerabilityAssessmentNameDefault, armsynapse.ServerVulnerabilityAssessment{ + Properties: &armsynapse.ServerVulnerabilityAssessmentProperties{ + RecurringScans: &armsynapse.VulnerabilityAssessmentRecurringScansProperties{ + EmailSubscriptionAdmins: to.Ptr(true), + Emails: []*string{ + to.Ptr("email1@mail.com"), + to.Ptr("email2@mail.com")}, + IsEnabled: to.Ptr(true), + }, + StorageAccountAccessKey: to.Ptr("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"), + StorageContainerPath: to.Ptr("https://myStorage.blob.core.windows.net/vulnerability-assessment/"), + StorageContainerSasKey: to.Ptr("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"), + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.ServerVulnerabilityAssessment = armsynapse.ServerVulnerabilityAssessment{ + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/vulnerabilityAssessments"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/wsg-7398/providers/Microsoft.Synapse/workspaces/testWorkspace/vulnerabilityAssessments/default"), + // Properties: &armsynapse.ServerVulnerabilityAssessmentProperties{ + // RecurringScans: &armsynapse.VulnerabilityAssessmentRecurringScansProperties{ + // EmailSubscriptionAdmins: to.Ptr(true), + // Emails: []*string{ + // to.Ptr("email1@mail.com"), + // to.Ptr("email2@mail.com")}, + // IsEnabled: to.Ptr(true), + // }, + // StorageContainerPath: to.Ptr("https://myStorage.blob.core.windows.net/vulnerability-assessment/"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/PutWorkspaceMangedSqlServerVulnerabilityAssessmentCreateStorageAccessKeyMin.json +func ExampleWorkspaceManagedSQLServerVulnerabilityAssessmentsClient_CreateOrUpdate_createOrUpdateAWorkspaceManagedSqlServersVulnerabilityAssessmentWithMinimalParametersWhenStorageAccountAccessKeyIsSpecified() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewWorkspaceManagedSQLServerVulnerabilityAssessmentsClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.CreateOrUpdate(ctx, "wsg-7398", "testWorkspace", armsynapse.VulnerabilityAssessmentNameDefault, armsynapse.ServerVulnerabilityAssessment{ + Properties: &armsynapse.ServerVulnerabilityAssessmentProperties{ + StorageAccountAccessKey: to.Ptr("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"), + StorageContainerPath: to.Ptr("https://myStorage.blob.core.windows.net/vulnerability-assessment/"), + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.ServerVulnerabilityAssessment = armsynapse.ServerVulnerabilityAssessment{ + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/vulnerabilityAssessments"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/wsg-7398/providers/Microsoft.Synapse/workspaces/testWorkspace/vulnerabilityAssessments/default"), + // Properties: &armsynapse.ServerVulnerabilityAssessmentProperties{ + // RecurringScans: &armsynapse.VulnerabilityAssessmentRecurringScansProperties{ + // EmailSubscriptionAdmins: to.Ptr(false), + // Emails: []*string{ + // }, + // IsEnabled: to.Ptr(true), + // }, + // StorageContainerPath: to.Ptr("https://myStorage.blob.core.windows.net/vulnerability-assessment/"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/PutWorkspaceMangedSqlServerVulnerabilityAssessmentCreateContainerSasKeyMin.json +func ExampleWorkspaceManagedSQLServerVulnerabilityAssessmentsClient_CreateOrUpdate_createOrUpdateAWorkspaceManagedSqlServersVulnerabilityAssessmentWithMinimalParametersWhenStorageContainerSasKeyIsSpecified() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewWorkspaceManagedSQLServerVulnerabilityAssessmentsClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.CreateOrUpdate(ctx, "wsg-7398", "testWorkspace", armsynapse.VulnerabilityAssessmentNameDefault, armsynapse.ServerVulnerabilityAssessment{ + Properties: &armsynapse.ServerVulnerabilityAssessmentProperties{ + StorageContainerPath: to.Ptr("https://myStorage.blob.core.windows.net/vulnerability-assessment/"), + StorageContainerSasKey: to.Ptr("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"), + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.ServerVulnerabilityAssessment = armsynapse.ServerVulnerabilityAssessment{ + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/vulnerabilityAssessments"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/wsg-7398/providers/Microsoft.Synapse/workspaces/testWorkspace/vulnerabilityAssessments/default"), + // Properties: &armsynapse.ServerVulnerabilityAssessmentProperties{ + // RecurringScans: &armsynapse.VulnerabilityAssessmentRecurringScansProperties{ + // EmailSubscriptionAdmins: to.Ptr(false), + // Emails: []*string{ + // }, + // IsEnabled: to.Ptr(true), + // }, + // StorageContainerPath: to.Ptr("https://myStorage.blob.core.windows.net/vulnerability-assessment/"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeleteWorkspaceManagedSqlServerVulnerabilityAssessment.json +func ExampleWorkspaceManagedSQLServerVulnerabilityAssessmentsClient_Delete() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewWorkspaceManagedSQLServerVulnerabilityAssessmentsClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + _, err = client.Delete(ctx, "wsg-7398", "testWorkspace", armsynapse.VulnerabilityAssessmentNameDefault, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListWorkspaceManagedSqlServerVulnerabilityAssessmentPolicies.json +func ExampleWorkspaceManagedSQLServerVulnerabilityAssessmentsClient_NewListPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewWorkspaceManagedSQLServerVulnerabilityAssessmentsClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListPager("wsg-7398", "testWorkspace", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.ServerVulnerabilityAssessmentListResult = armsynapse.ServerVulnerabilityAssessmentListResult{ + // Value: []*armsynapse.ServerVulnerabilityAssessment{ + // { + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/vulnerabilityAssessments"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/wsg-7398/providers/Microsoft.Synapse/workspaces/testWorkspace/vulnerabilityAssessments/default"), + // Properties: &armsynapse.ServerVulnerabilityAssessmentProperties{ + // RecurringScans: &armsynapse.VulnerabilityAssessmentRecurringScansProperties{ + // EmailSubscriptionAdmins: to.Ptr(true), + // Emails: []*string{ + // to.Ptr("email1@mail.com"), + // to.Ptr("email2@mail.com")}, + // IsEnabled: to.Ptr(true), + // }, + // StorageContainerPath: to.Ptr("https://myStorage.blob.core.windows.net/vulnerability-assessment/"), + // }, + // }}, + // } + } +} diff --git a/sdk/resourcemanager/synapse/armsynapse/zz_generated_workspaces_client.go b/sdk/resourcemanager/synapse/armsynapse/workspaces_client.go similarity index 90% rename from sdk/resourcemanager/synapse/armsynapse/zz_generated_workspaces_client.go rename to sdk/resourcemanager/synapse/armsynapse/workspaces_client.go index 7e93015e47d5..4eb819f8314b 100644 --- a/sdk/resourcemanager/synapse/armsynapse/zz_generated_workspaces_client.go +++ b/sdk/resourcemanager/synapse/armsynapse/workspaces_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse @@ -31,9 +32,9 @@ type WorkspacesClient struct { } // NewWorkspacesClient creates a new instance of WorkspacesClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewWorkspacesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*WorkspacesClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,12 +57,13 @@ func NewWorkspacesClient(subscriptionID string, credential azcore.TokenCredentia // BeginCreateOrUpdate - Creates or updates a workspace // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// workspaceInfo - Workspace create or update request properties -// options - WorkspacesClientBeginCreateOrUpdateOptions contains the optional parameters for the WorkspacesClient.BeginCreateOrUpdate -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - workspaceInfo - Workspace create or update request properties +// - options - WorkspacesClientBeginCreateOrUpdateOptions contains the optional parameters for the WorkspacesClient.BeginCreateOrUpdate +// method. func (client *WorkspacesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, workspaceInfo Workspace, options *WorkspacesClientBeginCreateOrUpdateOptions) (*runtime.Poller[WorkspacesClientCreateOrUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createOrUpdate(ctx, resourceGroupName, workspaceName, workspaceInfo, options) @@ -78,6 +80,7 @@ func (client *WorkspacesClient) BeginCreateOrUpdate(ctx context.Context, resourc // CreateOrUpdate - Creates or updates a workspace // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 func (client *WorkspacesClient) createOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, workspaceInfo Workspace, options *WorkspacesClientBeginCreateOrUpdateOptions) (*http.Response, error) { req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, workspaceName, workspaceInfo, options) @@ -122,10 +125,11 @@ func (client *WorkspacesClient) createOrUpdateCreateRequest(ctx context.Context, // BeginDelete - Deletes a workspace // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// options - WorkspacesClientBeginDeleteOptions contains the optional parameters for the WorkspacesClient.BeginDelete method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - options - WorkspacesClientBeginDeleteOptions contains the optional parameters for the WorkspacesClient.BeginDelete method. func (client *WorkspacesClient) BeginDelete(ctx context.Context, resourceGroupName string, workspaceName string, options *WorkspacesClientBeginDeleteOptions) (*runtime.Poller[WorkspacesClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, workspaceName, options) @@ -142,6 +146,7 @@ func (client *WorkspacesClient) BeginDelete(ctx context.Context, resourceGroupNa // Delete - Deletes a workspace // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 func (client *WorkspacesClient) deleteOperation(ctx context.Context, resourceGroupName string, workspaceName string, options *WorkspacesClientBeginDeleteOptions) (*http.Response, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, workspaceName, options) @@ -186,10 +191,11 @@ func (client *WorkspacesClient) deleteCreateRequest(ctx context.Context, resourc // Get - Gets a workspace // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// options - WorkspacesClientGetOptions contains the optional parameters for the WorkspacesClient.Get method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - options - WorkspacesClientGetOptions contains the optional parameters for the WorkspacesClient.Get method. func (client *WorkspacesClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, options *WorkspacesClientGetOptions) (WorkspacesClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, workspaceName, options) if err != nil { @@ -241,9 +247,9 @@ func (client *WorkspacesClient) getHandleResponse(resp *http.Response) (Workspac } // NewListPager - Returns a list of workspaces in a subscription -// If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// options - WorkspacesClientListOptions contains the optional parameters for the WorkspacesClient.List method. +// - options - WorkspacesClientListOptions contains the optional parameters for the WorkspacesClient.NewListPager method. func (client *WorkspacesClient) NewListPager(options *WorkspacesClientListOptions) *runtime.Pager[WorkspacesClientListResponse] { return runtime.NewPager(runtime.PagingHandler[WorkspacesClientListResponse]{ More: func(page WorkspacesClientListResponse) bool { @@ -300,11 +306,11 @@ func (client *WorkspacesClient) listHandleResponse(resp *http.Response) (Workspa } // NewListByResourceGroupPager - Returns a list of workspaces in a resource group -// If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// options - WorkspacesClientListByResourceGroupOptions contains the optional parameters for the WorkspacesClient.ListByResourceGroup -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - options - WorkspacesClientListByResourceGroupOptions contains the optional parameters for the WorkspacesClient.NewListByResourceGroupPager +// method. func (client *WorkspacesClient) NewListByResourceGroupPager(resourceGroupName string, options *WorkspacesClientListByResourceGroupOptions) *runtime.Pager[WorkspacesClientListByResourceGroupResponse] { return runtime.NewPager(runtime.PagingHandler[WorkspacesClientListByResourceGroupResponse]{ More: func(page WorkspacesClientListByResourceGroupResponse) bool { @@ -366,11 +372,12 @@ func (client *WorkspacesClient) listByResourceGroupHandleResponse(resp *http.Res // BeginUpdate - Updates a workspace // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// workspacePatchInfo - Workspace patch request properties -// options - WorkspacesClientBeginUpdateOptions contains the optional parameters for the WorkspacesClient.BeginUpdate method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - workspacePatchInfo - Workspace patch request properties +// - options - WorkspacesClientBeginUpdateOptions contains the optional parameters for the WorkspacesClient.BeginUpdate method. func (client *WorkspacesClient) BeginUpdate(ctx context.Context, resourceGroupName string, workspaceName string, workspacePatchInfo WorkspacePatchInfo, options *WorkspacesClientBeginUpdateOptions) (*runtime.Poller[WorkspacesClientUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.update(ctx, resourceGroupName, workspaceName, workspacePatchInfo, options) @@ -387,6 +394,7 @@ func (client *WorkspacesClient) BeginUpdate(ctx context.Context, resourceGroupNa // Update - Updates a workspace // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 func (client *WorkspacesClient) update(ctx context.Context, resourceGroupName string, workspaceName string, workspacePatchInfo WorkspacePatchInfo, options *WorkspacesClientBeginUpdateOptions) (*http.Response, error) { req, err := client.updateCreateRequest(ctx, resourceGroupName, workspaceName, workspacePatchInfo, options) diff --git a/sdk/resourcemanager/synapse/armsynapse/workspaces_client_example_test.go b/sdk/resourcemanager/synapse/armsynapse/workspaces_client_example_test.go new file mode 100644 index 000000000000..965b7a870e4a --- /dev/null +++ b/sdk/resourcemanager/synapse/armsynapse/workspaces_client_example_test.go @@ -0,0 +1,558 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armsynapse_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListWorkspacesInResourceGroup.json +func ExampleWorkspacesClient_NewListByResourceGroupPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewWorkspacesClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListByResourceGroupPager("resourceGroup1", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.WorkspaceInfoListResult = armsynapse.WorkspaceInfoListResult{ + // Value: []*armsynapse.Workspace{ + // { + // Name: to.Ptr("workspace1"), + // Type: to.Ptr("Microsoft.Synapse/workspaces"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup1/providers/Microsoft.Synapse/workspaces/workspace1"), + // Location: to.Ptr("East US"), + // Tags: map[string]*string{ + // "key": to.Ptr("value"), + // }, + // Properties: &armsynapse.WorkspaceProperties{ + // ConnectivityEndpoints: map[string]*string{ + // "dev": to.Ptr("workspace1.dev.projectarcadia.net"), + // "sql": to.Ptr("workspace1.sql.projectarcadia.net"), + // }, + // DefaultDataLakeStorage: &armsynapse.DataLakeStorageAccountDetails{ + // AccountURL: to.Ptr("https://accountname.dfs.core.windows.net"), + // Filesystem: to.Ptr("default"), + // }, + // ManagedResourceGroupName: to.Ptr("resourceGroup2"), + // ProvisioningState: to.Ptr("Succeeded"), + // SQLAdministratorLogin: to.Ptr("login"), + // SQLAdministratorLoginPassword: to.Ptr("password"), + // }, + // }, + // { + // Name: to.Ptr("workspace2"), + // Type: to.Ptr("Microsoft.Synapse/workspaces"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup1/providers/Microsoft.Synapse/workspaces/workspace2"), + // Location: to.Ptr("East US"), + // Tags: map[string]*string{ + // "key": to.Ptr("value"), + // }, + // Properties: &armsynapse.WorkspaceProperties{ + // ConnectivityEndpoints: map[string]*string{ + // "dev": to.Ptr("workspace2.dev.projectarcadia.net"), + // "sql": to.Ptr("workspace2.sql.projectarcadia.net"), + // }, + // DefaultDataLakeStorage: &armsynapse.DataLakeStorageAccountDetails{ + // AccountURL: to.Ptr("https://accountname.dfs.core.windows.net"), + // Filesystem: to.Ptr("default"), + // }, + // ManagedResourceGroupName: to.Ptr("resourceGroup2"), + // ProvisioningState: to.Ptr("Succeeded"), + // SQLAdministratorLogin: to.Ptr("login"), + // SQLAdministratorLoginPassword: to.Ptr("password"), + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetWorkspace.json +func ExampleWorkspacesClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewWorkspacesClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "resourceGroup1", "workspace1", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.Workspace = armsynapse.Workspace{ + // Name: to.Ptr("workspace1"), + // Type: to.Ptr("Microsoft.Synapse/workspaces"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup1/providers/Microsoft.Synapse/workspaces/workspace1"), + // Location: to.Ptr("East US"), + // Tags: map[string]*string{ + // "key": to.Ptr("value"), + // }, + // Properties: &armsynapse.WorkspaceProperties{ + // ConnectivityEndpoints: map[string]*string{ + // "dev": to.Ptr("workspace1.dev.projectarcadia.net"), + // "sql": to.Ptr("workspace1.sql.projectarcadia.net"), + // }, + // CspWorkspaceAdminProperties: &armsynapse.CspWorkspaceAdminProperties{ + // InitialWorkspaceAdminObjectID: to.Ptr("6c20646f-8050-49ec-b3b1-80a0e58e454d"), + // }, + // DefaultDataLakeStorage: &armsynapse.DataLakeStorageAccountDetails{ + // AccountURL: to.Ptr("https://accountname.dfs.core.windows.net"), + // Filesystem: to.Ptr("default"), + // }, + // ExtraProperties: map[string]any{ + // "IsScopeEnabled": "false", + // "WorkspaceType": "Normal", + // }, + // ManagedResourceGroupName: to.Ptr("resourceGroup2"), + // ManagedVirtualNetworkSettings: &armsynapse.ManagedVirtualNetworkSettings{ + // AllowedAADTenantIDsForLinking: []*string{ + // to.Ptr("740239CE-A25B-485B-86A0-262F29F6EBDB")}, + // LinkedAccessCheckOnTargetResource: to.Ptr(false), + // PreventDataExfiltration: to.Ptr(false), + // }, + // PrivateEndpointConnections: []*armsynapse.PrivateEndpointConnection{ + // { + // Name: to.Ptr("sql"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/privateEndpointConnections"), + // ID: to.Ptr("/subscriptions/01234567-89ab-4def-0123-456789abcdef/resourceGroups/ExampleResourceGroup/providers/Microsoft.Synapse/workspaces/ExampleWorkspace/privateEndpointConnections/ExamplePrivateEndpointConnection"), + // Properties: &armsynapse.PrivateEndpointConnectionProperties{ + // PrivateEndpoint: &armsynapse.PrivateEndpoint{ + // ID: to.Ptr("/subscriptions/01234567-89ab-4def-0123-456789abcdef/resourceGroups/ExampleResourceGroup/providers/Microsoft.Network/privateEndpoints/ExamplePrivateEndpoint"), + // }, + // PrivateLinkServiceConnectionState: &armsynapse.PrivateLinkServiceConnectionState{ + // Description: to.Ptr("Auto-approved"), + // ActionsRequired: to.Ptr("None"), + // Status: to.Ptr("Approved"), + // }, + // ProvisioningState: to.Ptr("Succeeded"), + // }, + // }}, + // ProvisioningState: to.Ptr("Succeeded"), + // PurviewConfiguration: &armsynapse.PurviewConfiguration{ + // PurviewResourceID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup1/providers/Microsoft.ProjectPurview/accounts/accountname1"), + // }, + // SQLAdministratorLogin: to.Ptr("login"), + // WorkspaceRepositoryConfiguration: &armsynapse.WorkspaceRepositoryConfiguration{ + // Type: to.Ptr("FactoryGitHubConfiguration"), + // AccountName: to.Ptr("myGithubAccount"), + // CollaborationBranch: to.Ptr("master"), + // HostName: to.Ptr(""), + // ProjectName: to.Ptr("myProject"), + // RepositoryName: to.Ptr("myRepository"), + // RootFolder: to.Ptr("/"), + // TenantID: to.Ptr("00000000-1111-2222-3333-444444444444"), + // }, + // WorkspaceUID: to.Ptr("00000000-1111-2222-3333-444444444444"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/UpdateWorkspace.json +func ExampleWorkspacesClient_BeginUpdate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewWorkspacesClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginUpdate(ctx, "resourceGroup1", "workspace1", armsynapse.WorkspacePatchInfo{ + Identity: &armsynapse.ManagedIdentity{ + Type: to.Ptr(armsynapse.ResourceIdentityTypeSystemAssigned), + }, + Properties: &armsynapse.WorkspacePatchProperties{ + Encryption: &armsynapse.EncryptionDetails{ + Cmk: &armsynapse.CustomerManagedKeyDetails{ + Key: &armsynapse.WorkspaceKeyDetails{ + Name: to.Ptr("default"), + KeyVaultURL: to.Ptr("https://vault.azure.net/keys/key1"), + }, + }, + }, + ManagedVirtualNetworkSettings: &armsynapse.ManagedVirtualNetworkSettings{ + AllowedAADTenantIDsForLinking: []*string{ + to.Ptr("740239CE-A25B-485B-86A0-262F29F6EBDB")}, + LinkedAccessCheckOnTargetResource: to.Ptr(false), + PreventDataExfiltration: to.Ptr(false), + }, + PublicNetworkAccess: to.Ptr(armsynapse.WorkspacePublicNetworkAccessEnabled), + PurviewConfiguration: &armsynapse.PurviewConfiguration{ + PurviewResourceID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup1/providers/Microsoft.ProjectPurview/accounts/accountname1"), + }, + SQLAdministratorLoginPassword: to.Ptr("password"), + WorkspaceRepositoryConfiguration: &armsynapse.WorkspaceRepositoryConfiguration{ + Type: to.Ptr("FactoryGitHubConfiguration"), + AccountName: to.Ptr("adifferentacount"), + CollaborationBranch: to.Ptr("master"), + HostName: to.Ptr(""), + ProjectName: to.Ptr("myproject"), + RepositoryName: to.Ptr("myrepository"), + RootFolder: to.Ptr("/"), + }, + }, + Tags: map[string]*string{ + "key": to.Ptr("value"), + }, + }, 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.Workspace = armsynapse.Workspace{ + // Name: to.Ptr("workspace1"), + // Type: to.Ptr("Microsoft.Synapse/workspaces"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup1/providers/Microsoft.Synapse/workspaces/workspace1"), + // Location: to.Ptr("East US"), + // Tags: map[string]*string{ + // "key": to.Ptr("value"), + // }, + // Properties: &armsynapse.WorkspaceProperties{ + // ConnectivityEndpoints: map[string]*string{ + // "dev": to.Ptr("workspace1.dev.projectarcadia.net"), + // "sql": to.Ptr("workspace1.sql.projectarcadia.net"), + // }, + // DefaultDataLakeStorage: &armsynapse.DataLakeStorageAccountDetails{ + // AccountURL: to.Ptr("https://accountname.dfs.core.windows.net"), + // Filesystem: to.Ptr("default"), + // }, + // Encryption: &armsynapse.EncryptionDetails{ + // Cmk: &armsynapse.CustomerManagedKeyDetails{ + // Key: &armsynapse.WorkspaceKeyDetails{ + // Name: to.Ptr("default"), + // KeyVaultURL: to.Ptr("https://vault.azure.net/keys/key1"), + // }, + // Status: to.Ptr("Consistent"), + // }, + // DoubleEncryptionEnabled: to.Ptr(true), + // }, + // ManagedResourceGroupName: to.Ptr("resourceGroup2"), + // ManagedVirtualNetworkSettings: &armsynapse.ManagedVirtualNetworkSettings{ + // AllowedAADTenantIDsForLinking: []*string{ + // to.Ptr("740239CE-A25B-485B-86A0-262F29F6EBDB")}, + // LinkedAccessCheckOnTargetResource: to.Ptr(false), + // PreventDataExfiltration: to.Ptr(false), + // }, + // ProvisioningState: to.Ptr("Succeeded"), + // PublicNetworkAccess: to.Ptr(armsynapse.WorkspacePublicNetworkAccessEnabled), + // PurviewConfiguration: &armsynapse.PurviewConfiguration{ + // PurviewResourceID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup1/providers/Microsoft.ProjectPurview/accounts/accountname1"), + // }, + // SQLAdministratorLogin: to.Ptr("login"), + // WorkspaceUID: to.Ptr("00000000-1111-2222-3333-444444444444"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateWorkspace.json +func ExampleWorkspacesClient_BeginCreateOrUpdate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewWorkspacesClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreateOrUpdate(ctx, "resourceGroup1", "workspace1", armsynapse.Workspace{ + Location: to.Ptr("East US"), + Tags: map[string]*string{ + "key": to.Ptr("value"), + }, + Identity: &armsynapse.ManagedIdentity{ + Type: to.Ptr(armsynapse.ResourceIdentityTypeSystemAssignedUserAssigned), + UserAssignedIdentities: map[string]*armsynapse.UserAssignedManagedIdentity{ + "/subscriptions/00000000-1111-2222-3333-444444444444/resourcegroups/resourceGroup1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uami1": {}, + }, + }, + Properties: &armsynapse.WorkspaceProperties{ + CspWorkspaceAdminProperties: &armsynapse.CspWorkspaceAdminProperties{ + InitialWorkspaceAdminObjectID: to.Ptr("6c20646f-8050-49ec-b3b1-80a0e58e454d"), + }, + DefaultDataLakeStorage: &armsynapse.DataLakeStorageAccountDetails{ + AccountURL: to.Ptr("https://accountname.dfs.core.windows.net"), + Filesystem: to.Ptr("default"), + }, + Encryption: &armsynapse.EncryptionDetails{ + Cmk: &armsynapse.CustomerManagedKeyDetails{ + KekIdentity: &armsynapse.KekIdentityProperties{ + UseSystemAssignedIdentity: false, + UserAssignedIdentity: to.Ptr("/subscriptions/b64d7b94-73e7-4d36-94b2-7764ea3fd74a/resourcegroups/SynapseCI/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uami1"), + }, + Key: &armsynapse.WorkspaceKeyDetails{ + Name: to.Ptr("default"), + KeyVaultURL: to.Ptr("https://vault.azure.net/keys/key1"), + }, + }, + }, + ManagedResourceGroupName: to.Ptr("workspaceManagedResourceGroupUnique"), + ManagedVirtualNetwork: to.Ptr("default"), + ManagedVirtualNetworkSettings: &armsynapse.ManagedVirtualNetworkSettings{ + AllowedAADTenantIDsForLinking: []*string{ + to.Ptr("740239CE-A25B-485B-86A0-262F29F6EBDB")}, + LinkedAccessCheckOnTargetResource: to.Ptr(false), + PreventDataExfiltration: to.Ptr(false), + }, + PublicNetworkAccess: to.Ptr(armsynapse.WorkspacePublicNetworkAccessEnabled), + PurviewConfiguration: &armsynapse.PurviewConfiguration{ + PurviewResourceID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup1/providers/Microsoft.ProjectPurview/accounts/accountname1"), + }, + SQLAdministratorLogin: to.Ptr("login"), + SQLAdministratorLoginPassword: to.Ptr("password"), + WorkspaceRepositoryConfiguration: &armsynapse.WorkspaceRepositoryConfiguration{ + Type: to.Ptr("FactoryGitHubConfiguration"), + AccountName: to.Ptr("mygithubaccount"), + CollaborationBranch: to.Ptr("master"), + HostName: to.Ptr(""), + ProjectName: to.Ptr("myproject"), + RepositoryName: to.Ptr("myrepository"), + RootFolder: to.Ptr("/"), + }, + }, + }, 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.Workspace = armsynapse.Workspace{ + // Name: to.Ptr("workspace1"), + // Type: to.Ptr("Microsoft.Synapse/workspaces"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup1/providers/Microsoft.Synapse/workspaces/workspace1"), + // Location: to.Ptr("East US"), + // Tags: map[string]*string{ + // "key": to.Ptr("value"), + // }, + // Identity: &armsynapse.ManagedIdentity{ + // Type: to.Ptr(armsynapse.ResourceIdentityTypeSystemAssignedUserAssigned), + // PrincipalID: to.Ptr("00000000-1111-2222-3333-444444444444"), + // TenantID: to.Ptr("00000000-1111-2222-3333-444444444444"), + // UserAssignedIdentities: map[string]*armsynapse.UserAssignedManagedIdentity{ + // "/subscriptions/00000000-1111-2222-3333-444444444444/resourcegroups/resourceGroup1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uami1": &armsynapse.UserAssignedManagedIdentity{ + // ClientID: to.Ptr("ffffffff-8888-4444-8888-333333333333"), + // PrincipalID: to.Ptr("eeeeeeee-9999-4444-8888-333333333333"), + // }, + // }, + // }, + // Properties: &armsynapse.WorkspaceProperties{ + // ConnectivityEndpoints: map[string]*string{ + // "dev": to.Ptr("workspace1.dev.projectarcadia.net"), + // "sql": to.Ptr("workspace1.sql.projectarcadia.net"), + // }, + // DefaultDataLakeStorage: &armsynapse.DataLakeStorageAccountDetails{ + // AccountURL: to.Ptr("https://accountname.dfs.core.windows.net"), + // Filesystem: to.Ptr("default"), + // }, + // Encryption: &armsynapse.EncryptionDetails{ + // Cmk: &armsynapse.CustomerManagedKeyDetails{ + // KekIdentity: &armsynapse.KekIdentityProperties{ + // UseSystemAssignedIdentity: false, + // UserAssignedIdentity: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourcegroups/resourceGroup1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uami1"), + // }, + // Key: &armsynapse.WorkspaceKeyDetails{ + // Name: to.Ptr("default"), + // KeyVaultURL: to.Ptr("https://vault.azure.net/keys/key1"), + // }, + // Status: to.Ptr("Consistent"), + // }, + // DoubleEncryptionEnabled: to.Ptr(true), + // }, + // ManagedResourceGroupName: to.Ptr("workspaceManagedResourceGroupUnique"), + // ManagedVirtualNetwork: to.Ptr("default"), + // ManagedVirtualNetworkSettings: &armsynapse.ManagedVirtualNetworkSettings{ + // AllowedAADTenantIDsForLinking: []*string{ + // to.Ptr("740239CE-A25B-485B-86A0-262F29F6EBDB")}, + // LinkedAccessCheckOnTargetResource: to.Ptr(false), + // PreventDataExfiltration: to.Ptr(false), + // }, + // PrivateEndpointConnections: []*armsynapse.PrivateEndpointConnection{ + // { + // Name: to.Ptr("sql"), + // Type: to.Ptr("Microsoft.Synapse/workspaces/privateEndpointConnections"), + // ID: to.Ptr("/subscriptions/01234567-89ab-4def-0123-456789abcdef/resourceGroups/ExampleResourceGroup/providers/Microsoft.Synapse/workspaces/ExampleWorkspace/privateEndpointConnections/ExamplePrivateEndpointConnection"), + // Properties: &armsynapse.PrivateEndpointConnectionProperties{ + // PrivateEndpoint: &armsynapse.PrivateEndpoint{ + // ID: to.Ptr("/subscriptions/01234567-89ab-4def-0123-456789abcdef/resourceGroups/ExampleResourceGroup/providers/Microsoft.Network/privateEndpoints/ExamplePrivateEndpoint"), + // }, + // PrivateLinkServiceConnectionState: &armsynapse.PrivateLinkServiceConnectionState{ + // Description: to.Ptr("Auto-approved"), + // ActionsRequired: to.Ptr("None"), + // Status: to.Ptr("Approved"), + // }, + // ProvisioningState: to.Ptr("Succeeded"), + // }, + // }}, + // ProvisioningState: to.Ptr("Succeeded"), + // PublicNetworkAccess: to.Ptr(armsynapse.WorkspacePublicNetworkAccessEnabled), + // PurviewConfiguration: &armsynapse.PurviewConfiguration{ + // PurviewResourceID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup1/providers/Microsoft.ProjectPurview/accounts/accountname1"), + // }, + // SQLAdministratorLogin: to.Ptr("login"), + // WorkspaceUID: to.Ptr("00000000-1111-2222-3333-444444444444"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeleteWorkspace.json +func ExampleWorkspacesClient_BeginDelete() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewWorkspacesClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginDelete(ctx, "resourceGroup1", "workspace1", 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.Workspace = armsynapse.Workspace{ + // Name: to.Ptr("workspace1"), + // Type: to.Ptr("Microsoft.Synapse/workspaces"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup1/providers/Microsoft.Synapse/workspaces/workspace1"), + // Location: to.Ptr("East US"), + // Tags: map[string]*string{ + // "key": to.Ptr("value"), + // }, + // Properties: &armsynapse.WorkspaceProperties{ + // ConnectivityEndpoints: map[string]*string{ + // "dev": to.Ptr("workspace1.dev.projectarcadia.net"), + // "sql": to.Ptr("workspace1.sql.projectarcadia.net"), + // }, + // DefaultDataLakeStorage: &armsynapse.DataLakeStorageAccountDetails{ + // AccountURL: to.Ptr("https://accountname.dfs.core.windows.net"), + // Filesystem: to.Ptr("default"), + // }, + // ManagedResourceGroupName: to.Ptr("resourceGroup2"), + // ProvisioningState: to.Ptr("Succeeded"), + // SQLAdministratorLogin: to.Ptr("login"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListWorkspacesInSubscription.json +func ExampleWorkspacesClient_NewListPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewWorkspacesClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListPager(nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.WorkspaceInfoListResult = armsynapse.WorkspaceInfoListResult{ + // Value: []*armsynapse.Workspace{ + // { + // Name: to.Ptr("workspace1"), + // Type: to.Ptr("Microsoft.Synapse/workspaces"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup1/providers/Microsoft.Synapse/workspaces/workspace1"), + // Location: to.Ptr("East US"), + // Tags: map[string]*string{ + // "key": to.Ptr("value"), + // }, + // Properties: &armsynapse.WorkspaceProperties{ + // ConnectivityEndpoints: map[string]*string{ + // "dev": to.Ptr("workspace1.dev.projectarcadia.net"), + // "sql": to.Ptr("workspace1.sql.projectarcadia.net"), + // }, + // DefaultDataLakeStorage: &armsynapse.DataLakeStorageAccountDetails{ + // AccountURL: to.Ptr("https://accountname.dfs.core.windows.net"), + // Filesystem: to.Ptr("default"), + // }, + // ManagedResourceGroupName: to.Ptr("resourceGroup2"), + // ProvisioningState: to.Ptr("Succeeded"), + // SQLAdministratorLogin: to.Ptr("login"), + // WorkspaceUID: to.Ptr("00000000-1111-2222-3333-444444444444"), + // }, + // }, + // { + // Name: to.Ptr("workspace2"), + // Type: to.Ptr("Microsoft.Synapse/workspaces"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup1/providers/Microsoft.Synapse/workspaces/workspace2"), + // Location: to.Ptr("East US"), + // Tags: map[string]*string{ + // "key": to.Ptr("value"), + // }, + // Properties: &armsynapse.WorkspaceProperties{ + // ConnectivityEndpoints: map[string]*string{ + // "dev": to.Ptr("workspace2.dev.projectarcadia.net"), + // "sql": to.Ptr("workspace2.sql.projectarcadia.net"), + // }, + // DefaultDataLakeStorage: &armsynapse.DataLakeStorageAccountDetails{ + // AccountURL: to.Ptr("https://accountname.dfs.core.windows.net"), + // Filesystem: to.Ptr("default"), + // }, + // ManagedResourceGroupName: to.Ptr("resourceGroup2"), + // ProvisioningState: to.Ptr("Succeeded"), + // SQLAdministratorLogin: to.Ptr("login"), + // WorkspaceUID: to.Ptr("00000000-1111-2222-3333-444444444444"), + // }, + // }}, + // } + } +} diff --git a/sdk/resourcemanager/synapse/armsynapse/zz_generated_workspacesqlaadadmins_client.go b/sdk/resourcemanager/synapse/armsynapse/workspacesqlaadadmins_client.go similarity index 89% rename from sdk/resourcemanager/synapse/armsynapse/zz_generated_workspacesqlaadadmins_client.go rename to sdk/resourcemanager/synapse/armsynapse/workspacesqlaadadmins_client.go index 714ee6829437..348963fa9cb3 100644 --- a/sdk/resourcemanager/synapse/armsynapse/zz_generated_workspacesqlaadadmins_client.go +++ b/sdk/resourcemanager/synapse/armsynapse/workspacesqlaadadmins_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armsynapse @@ -31,9 +32,9 @@ type WorkspaceSQLAADAdminsClient struct { } // NewWorkspaceSQLAADAdminsClient creates a new instance of WorkspaceSQLAADAdminsClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewWorkspaceSQLAADAdminsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*WorkspaceSQLAADAdminsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,12 +57,13 @@ func NewWorkspaceSQLAADAdminsClient(subscriptionID string, credential azcore.Tok // BeginCreateOrUpdate - Creates or updates a workspace SQL active directory admin // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// aadAdminInfo - Workspace active directory administrator properties -// options - WorkspaceSQLAADAdminsClientBeginCreateOrUpdateOptions contains the optional parameters for the WorkspaceSQLAADAdminsClient.BeginCreateOrUpdate -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - aadAdminInfo - Workspace active directory administrator properties +// - options - WorkspaceSQLAADAdminsClientBeginCreateOrUpdateOptions contains the optional parameters for the WorkspaceSQLAADAdminsClient.BeginCreateOrUpdate +// method. func (client *WorkspaceSQLAADAdminsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, aadAdminInfo WorkspaceAADAdminInfo, options *WorkspaceSQLAADAdminsClientBeginCreateOrUpdateOptions) (*runtime.Poller[WorkspaceSQLAADAdminsClientCreateOrUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createOrUpdate(ctx, resourceGroupName, workspaceName, aadAdminInfo, options) @@ -78,6 +80,7 @@ func (client *WorkspaceSQLAADAdminsClient) BeginCreateOrUpdate(ctx context.Conte // CreateOrUpdate - Creates or updates a workspace SQL active directory admin // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 func (client *WorkspaceSQLAADAdminsClient) createOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, aadAdminInfo WorkspaceAADAdminInfo, options *WorkspaceSQLAADAdminsClientBeginCreateOrUpdateOptions) (*http.Response, error) { req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, workspaceName, aadAdminInfo, options) @@ -122,11 +125,12 @@ func (client *WorkspaceSQLAADAdminsClient) createOrUpdateCreateRequest(ctx conte // BeginDelete - Deletes a workspace SQL active directory admin // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// options - WorkspaceSQLAADAdminsClientBeginDeleteOptions contains the optional parameters for the WorkspaceSQLAADAdminsClient.BeginDelete -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - options - WorkspaceSQLAADAdminsClientBeginDeleteOptions contains the optional parameters for the WorkspaceSQLAADAdminsClient.BeginDelete +// method. func (client *WorkspaceSQLAADAdminsClient) BeginDelete(ctx context.Context, resourceGroupName string, workspaceName string, options *WorkspaceSQLAADAdminsClientBeginDeleteOptions) (*runtime.Poller[WorkspaceSQLAADAdminsClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, workspaceName, options) @@ -143,6 +147,7 @@ func (client *WorkspaceSQLAADAdminsClient) BeginDelete(ctx context.Context, reso // Delete - Deletes a workspace SQL active directory admin // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 func (client *WorkspaceSQLAADAdminsClient) deleteOperation(ctx context.Context, resourceGroupName string, workspaceName string, options *WorkspaceSQLAADAdminsClientBeginDeleteOptions) (*http.Response, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, workspaceName, options) @@ -187,11 +192,12 @@ func (client *WorkspaceSQLAADAdminsClient) deleteCreateRequest(ctx context.Conte // Get - Gets a workspace SQL active directory admin // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2021-06-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// workspaceName - The name of the workspace. -// options - WorkspaceSQLAADAdminsClientGetOptions contains the optional parameters for the WorkspaceSQLAADAdminsClient.Get -// method. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - workspaceName - The name of the workspace. +// - options - WorkspaceSQLAADAdminsClientGetOptions contains the optional parameters for the WorkspaceSQLAADAdminsClient.Get +// method. func (client *WorkspaceSQLAADAdminsClient) Get(ctx context.Context, resourceGroupName string, workspaceName string, options *WorkspaceSQLAADAdminsClientGetOptions) (WorkspaceSQLAADAdminsClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, workspaceName, options) if err != nil { diff --git a/sdk/resourcemanager/synapse/armsynapse/workspacesqlaadadmins_client_example_test.go b/sdk/resourcemanager/synapse/armsynapse/workspacesqlaadadmins_client_example_test.go new file mode 100644 index 000000000000..7f13f85a0d12 --- /dev/null +++ b/sdk/resourcemanager/synapse/armsynapse/workspacesqlaadadmins_client_example_test.go @@ -0,0 +1,111 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armsynapse_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetWorkspaceAadAdmin.json +func ExampleWorkspaceSQLAADAdminsClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewWorkspaceSQLAADAdminsClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "resourceGroup1", "workspace1", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.WorkspaceAADAdminInfo = armsynapse.WorkspaceAADAdminInfo{ + // Name: to.Ptr("activeDirectory"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup1/providers/Microsoft.Synapse/workspaces/workspace1/administrators/activeDirectory"), + // Properties: &armsynapse.AADAdminProperties{ + // AdministratorType: to.Ptr("ActiveDirectory"), + // Login: to.Ptr("bob@contoso.com"), + // Sid: to.Ptr("c6b82b90-a647-49cb-8a62-0d2d3cb7ac7c"), + // TenantID: to.Ptr("c6b82b90-a647-49cb-8a62-0d2d3cb7ac7c"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateWorkspaceAadAdmin.json +func ExampleWorkspaceSQLAADAdminsClient_BeginCreateOrUpdate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewWorkspaceSQLAADAdminsClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreateOrUpdate(ctx, "resourceGroup1", "workspace1", armsynapse.WorkspaceAADAdminInfo{ + Properties: &armsynapse.AADAdminProperties{ + AdministratorType: to.Ptr("ActiveDirectory"), + Login: to.Ptr("bob@contoso.com"), + Sid: to.Ptr("c6b82b90-a647-49cb-8a62-0d2d3cb7ac7c"), + TenantID: to.Ptr("c6b82b90-a647-49cb-8a62-0d2d3cb7ac7c"), + }, + }, 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.WorkspaceAADAdminInfo = armsynapse.WorkspaceAADAdminInfo{ + // Name: to.Ptr("activeDirectory"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup1/providers/Microsoft.Synapse/workspaces/workspace1/administrators/activeDirectory"), + // Properties: &armsynapse.AADAdminProperties{ + // AdministratorType: to.Ptr("ActiveDirectory"), + // Login: to.Ptr("bob@contoso.com"), + // Sid: to.Ptr("c6b82b90-a647-49cb-8a62-0d2d3cb7ac7c"), + // TenantID: to.Ptr("c6b82b90-a647-49cb-8a62-0d2d3cb7ac7c"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeleteWorkspaceAadAdmin.json +func ExampleWorkspaceSQLAADAdminsClient_BeginDelete() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armsynapse.NewWorkspaceSQLAADAdminsClient("00000000-1111-2222-3333-444444444444", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginDelete(ctx, "resourceGroup1", "workspace1", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + _, err = poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } +} diff --git a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_azureadonlyauthentications_client_test.go b/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_azureadonlyauthentications_client_test.go deleted file mode 100644 index 271220ff8a8d..000000000000 --- a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_azureadonlyauthentications_client_test.go +++ /dev/null @@ -1,99 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armsynapse_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetAzureADOnlyAuthentication.json -func ExampleAzureADOnlyAuthenticationsClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewAzureADOnlyAuthenticationsClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "workspace-6852", - "workspace-2080", - armsynapse.AzureADOnlyAuthenticationNameDefault, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateAzureADOnlyAuthentication.json -func ExampleAzureADOnlyAuthenticationsClient_BeginCreate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewAzureADOnlyAuthenticationsClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginCreate(ctx, - "workspace-6852", - "workspace-2080", - armsynapse.AzureADOnlyAuthenticationNameDefault, - armsynapse.AzureADOnlyAuthentication{ - Properties: &armsynapse.AzureADOnlyAuthenticationProperties{ - AzureADOnlyAuthentication: to.Ptr(true), - }, - }, - 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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListAzureADOnlyAuthentication.json -func ExampleAzureADOnlyAuthenticationsClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewAzureADOnlyAuthenticationsClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListPager("workspace-6852", - "workspace-2080", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} diff --git a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_bigdatapools_client_test.go b/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_bigdatapools_client_test.go deleted file mode 100644 index 86de9253206e..000000000000 --- a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_bigdatapools_client_test.go +++ /dev/null @@ -1,176 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armsynapse_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/GetBigDataPool.json -func ExampleBigDataPoolsClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewBigDataPoolsClient("01234567-89ab-4def-0123-456789abcdef", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "ExampleResourceGroup", - "ExampleWorkspace", - "ExamplePool", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/UpdateBigDataPool.json -func ExampleBigDataPoolsClient_Update() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewBigDataPoolsClient("01234567-89ab-4def-0123-456789abcdef", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Update(ctx, - "ExampleResourceGroup", - "ExampleWorkspace", - "ExamplePool", - armsynapse.BigDataPoolPatchInfo{ - Tags: map[string]*string{ - "key": to.Ptr("value"), - }, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/CreateOrUpdateBigDataPool.json -func ExampleBigDataPoolsClient_BeginCreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewBigDataPoolsClient("01234567-89ab-4def-0123-456789abcdef", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginCreateOrUpdate(ctx, - "ExampleResourceGroup", - "ExampleWorkspace", - "ExamplePool", - armsynapse.BigDataPoolResourceInfo{ - Location: to.Ptr("West US 2"), - Tags: map[string]*string{ - "key": to.Ptr("value"), - }, - Properties: &armsynapse.BigDataPoolResourceProperties{ - AutoPause: &armsynapse.AutoPauseProperties{ - DelayInMinutes: to.Ptr[int32](15), - Enabled: to.Ptr(true), - }, - AutoScale: &armsynapse.AutoScaleProperties{ - Enabled: to.Ptr(true), - MaxNodeCount: to.Ptr[int32](50), - MinNodeCount: to.Ptr[int32](3), - }, - DefaultSparkLogFolder: to.Ptr("/logs"), - LibraryRequirements: &armsynapse.LibraryRequirements{ - Content: to.Ptr(""), - Filename: to.Ptr("requirements.txt"), - }, - NodeCount: to.Ptr[int32](4), - NodeSize: to.Ptr(armsynapse.NodeSizeMedium), - NodeSizeFamily: to.Ptr(armsynapse.NodeSizeFamilyMemoryOptimized), - SparkEventsFolder: to.Ptr("/events"), - SparkVersion: to.Ptr("2.4"), - }, - }, - &armsynapse.BigDataPoolsClientBeginCreateOrUpdateOptions{Force: 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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/DeleteBigDataPool.json -func ExampleBigDataPoolsClient_BeginDelete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewBigDataPoolsClient("01234567-89ab-4def-0123-456789abcdef", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginDelete(ctx, - "ExampleResourceGroup", - "ExampleWorkspace", - "ExamplePool", - 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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/ListBigDataPoolsInWorkspace.json -func ExampleBigDataPoolsClient_NewListByWorkspacePager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewBigDataPoolsClient("01234567-89ab-4def-0123-456789abcdef", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListByWorkspacePager("ExampleResourceGroup", - "ExampleWorkspace", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} diff --git a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_datamaskingpolicies_client_test.go b/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_datamaskingpolicies_client_test.go deleted file mode 100644 index ba404b2689ca..000000000000 --- a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_datamaskingpolicies_client_test.go +++ /dev/null @@ -1,70 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armsynapse_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DataMaskingPolicyCreateOrUpdateMax.json -func ExampleDataMaskingPoliciesClient_CreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewDataMaskingPoliciesClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.CreateOrUpdate(ctx, - "sqlcrudtest-6852", - "sqlcrudtest-2080", - "sqlcrudtest-331", - armsynapse.DataMaskingPolicy{ - Properties: &armsynapse.DataMaskingPolicyProperties{ - DataMaskingState: to.Ptr(armsynapse.DataMaskingStateEnabled), - ExemptPrincipals: to.Ptr("testuser;"), - }, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DataMaskingPolicyGet.json -func ExampleDataMaskingPoliciesClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewDataMaskingPoliciesClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "sqlcrudtest-6852", - "sqlcrudtest-2080", - "sqlcrudtest-331", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} diff --git a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_datamaskingrules_client_test.go b/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_datamaskingrules_client_test.go deleted file mode 100644 index 7b88fa8f9992..000000000000 --- a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_datamaskingrules_client_test.go +++ /dev/null @@ -1,76 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armsynapse_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DataMaskingRuleCreateOrUpdateDefaultMax.json -func ExampleDataMaskingRulesClient_CreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewDataMaskingRulesClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.CreateOrUpdate(ctx, - "sqlcrudtest-6852", - "sqlcrudtest-2080", - "sqlcrudtest-331", - "rule1", - armsynapse.DataMaskingRule{ - Properties: &armsynapse.DataMaskingRuleProperties{ - AliasName: to.Ptr("nickname"), - ColumnName: to.Ptr("test1"), - MaskingFunction: to.Ptr(armsynapse.DataMaskingFunctionDefault), - RuleState: to.Ptr(armsynapse.DataMaskingRuleStateEnabled), - SchemaName: to.Ptr("dbo"), - TableName: to.Ptr("Table_1"), - }, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DataMaskingRuleGet.json -func ExampleDataMaskingRulesClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewDataMaskingRulesClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "sqlcrudtest-6852", - "sqlcrudtest-2080", - "sqlcrudtest-331", - "rule1", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} diff --git a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_extendedsqlpoolblobauditingpolicies_client_test.go b/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_extendedsqlpoolblobauditingpolicies_client_test.go deleted file mode 100644 index 2f0ad518cf7c..000000000000 --- a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_extendedsqlpoolblobauditingpolicies_client_test.go +++ /dev/null @@ -1,70 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armsynapse_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ExtendedSqlPoolBlobAuditingGet.json -func ExampleExtendedSQLPoolBlobAuditingPoliciesClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewExtendedSQLPoolBlobAuditingPoliciesClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "blobauditingtest-6852", - "blobauditingtest-2080", - "testdb", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ExtendedSqlPoolAzureMonitorAuditingCreateMin.json -func ExampleExtendedSQLPoolBlobAuditingPoliciesClient_CreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewExtendedSQLPoolBlobAuditingPoliciesClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.CreateOrUpdate(ctx, - "blobauditingtest-4799", - "blobauditingtest-6440", - "testdb", - armsynapse.ExtendedSQLPoolBlobAuditingPolicy{ - Properties: &armsynapse.ExtendedSQLPoolBlobAuditingPolicyProperties{ - IsAzureMonitorTargetEnabled: to.Ptr(true), - State: to.Ptr(armsynapse.BlobAuditingPolicyStateEnabled), - }, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} diff --git a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_integrationruntimemonitoringdata_client_test.go b/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_integrationruntimemonitoringdata_client_test.go deleted file mode 100644 index 2bbea893b555..000000000000 --- a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_integrationruntimemonitoringdata_client_test.go +++ /dev/null @@ -1,40 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armsynapse_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimeMonitoringData_List.json -func ExampleIntegrationRuntimeMonitoringDataClient_List() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewIntegrationRuntimeMonitoringDataClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.List(ctx, - "exampleResourceGroup", - "exampleWorkspace", - "exampleIntegrationRuntime", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} diff --git a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_integrationruntimenodes_client_test.go b/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_integrationruntimenodes_client_test.go deleted file mode 100644 index 41634f429fc3..000000000000 --- a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_integrationruntimenodes_client_test.go +++ /dev/null @@ -1,91 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armsynapse_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimeNodes_Get.json -func ExampleIntegrationRuntimeNodesClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewIntegrationRuntimeNodesClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "exampleResourceGroup", - "exampleWorkspace", - "exampleIntegrationRuntime", - "Node_1", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimeNodes_Update.json -func ExampleIntegrationRuntimeNodesClient_Update() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewIntegrationRuntimeNodesClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Update(ctx, - "exampleResourceGroup", - "exampleWorkspace", - "exampleIntegrationRuntime", - "Node_1", - armsynapse.UpdateIntegrationRuntimeNodeRequest{ - ConcurrentJobsLimit: to.Ptr[int32](2), - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimeNodes_Delete.json -func ExampleIntegrationRuntimeNodesClient_Delete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewIntegrationRuntimeNodesClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = client.Delete(ctx, - "exampleResourceGroup", - "exampleWorkspace", - "exampleIntegrationRuntime", - "Node_1", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} diff --git a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_integrationruntimeobjectmetadata_client_test.go b/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_integrationruntimeobjectmetadata_client_test.go deleted file mode 100644 index 9c8c3203f3b7..000000000000 --- a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_integrationruntimeobjectmetadata_client_test.go +++ /dev/null @@ -1,71 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armsynapse_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimeObjectMetadata_List.json -func ExampleIntegrationRuntimeObjectMetadataClient_List() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewIntegrationRuntimeObjectMetadataClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.List(ctx, - "exampleResourceGroup", - "exampleWorkspace", - "testactivityv2", - &armsynapse.IntegrationRuntimeObjectMetadataClientListOptions{GetMetadataRequest: &armsynapse.GetSsisObjectMetadataRequest{ - MetadataPath: to.Ptr("ssisFolders"), - }, - }) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimeObjectMetadata_Refresh.json -func ExampleIntegrationRuntimeObjectMetadataClient_BeginRefresh() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewIntegrationRuntimeObjectMetadataClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginRefresh(ctx, - "exampleResourceGroup", - "exampleWorkspace", - "testactivityv2", - 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) - } - // TODO: use response item - _ = res -} diff --git a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_integrationruntimes_client_test.go b/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_integrationruntimes_client_test.go deleted file mode 100644 index ece5970d40e7..000000000000 --- a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_integrationruntimes_client_test.go +++ /dev/null @@ -1,298 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armsynapse_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimes_Update.json -func ExampleIntegrationRuntimesClient_Update() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewIntegrationRuntimesClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Update(ctx, - "exampleResourceGroup", - "exampleWorkspace", - "exampleIntegrationRuntime", - armsynapse.UpdateIntegrationRuntimeRequest{ - AutoUpdate: to.Ptr(armsynapse.IntegrationRuntimeAutoUpdateOff), - UpdateDelayOffset: to.Ptr("\"PT3H\""), - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimes_Get.json -func ExampleIntegrationRuntimesClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewIntegrationRuntimesClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "exampleResourceGroup", - "exampleWorkspace", - "exampleIntegrationRuntime", - &armsynapse.IntegrationRuntimesClientGetOptions{IfNoneMatch: nil}) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimes_Create.json -func ExampleIntegrationRuntimesClient_BeginCreate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewIntegrationRuntimesClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginCreate(ctx, - "exampleResourceGroup", - "exampleWorkspace", - "exampleIntegrationRuntime", - armsynapse.IntegrationRuntimeResource{ - Properties: &armsynapse.SelfHostedIntegrationRuntime{ - Type: to.Ptr(armsynapse.IntegrationRuntimeTypeSelfHosted), - Description: to.Ptr("A selfhosted integration runtime"), - }, - }, - &armsynapse.IntegrationRuntimesClientBeginCreateOptions{IfMatch: 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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimes_Delete.json -func ExampleIntegrationRuntimesClient_BeginDelete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewIntegrationRuntimesClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginDelete(ctx, - "exampleResourceGroup", - "exampleWorkspace", - "exampleIntegrationRuntime", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimes_Upgrade.json -func ExampleIntegrationRuntimesClient_Upgrade() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewIntegrationRuntimesClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = client.Upgrade(ctx, - "exampleResourceGroup", - "exampleWorkspace", - "exampleIntegrationRuntime", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimes_ListByWorkspace.json -func ExampleIntegrationRuntimesClient_NewListByWorkspacePager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewIntegrationRuntimesClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListByWorkspacePager("exampleResourceGroup", - "exampleWorkspace", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimes_Start.json -func ExampleIntegrationRuntimesClient_BeginStart() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewIntegrationRuntimesClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginStart(ctx, - "exampleResourceGroup", - "exampleWorkspace", - "exampleManagedIntegrationRuntime", - 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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimes_Stop.json -func ExampleIntegrationRuntimesClient_BeginStop() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewIntegrationRuntimesClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginStop(ctx, - "exampleResourceGroup", - "exampleWorkspace", - "exampleManagedIntegrationRuntime", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimes_ListOutboundNetworkDependenciesEndpoints.json -func ExampleIntegrationRuntimesClient_ListOutboundNetworkDependenciesEndpoints() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewIntegrationRuntimesClient("ade9c2b6-c160-4305-9bb9-80342f6c1ae2", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.ListOutboundNetworkDependenciesEndpoints(ctx, - "exampleResourceGroup", - "exampleWorkspace", - "exampleIntegrationRuntime", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimes_EnableInteractiveQuery.json -func ExampleIntegrationRuntimesClient_BeginEnableInteractiveQuery() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewIntegrationRuntimesClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginEnableInteractiveQuery(ctx, - "exampleResourceGroup", - "exampleWorkspace", - "exampleManagedIntegrationRuntime", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimes_DisableInteractiveQuery.json -func ExampleIntegrationRuntimesClient_BeginDisableInteractiveQuery() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewIntegrationRuntimesClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginDisableInteractiveQuery(ctx, - "exampleResourceGroup", - "exampleWorkspace", - "exampleManagedIntegrationRuntime", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} diff --git a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_integrationruntimestatus_client_test.go b/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_integrationruntimestatus_client_test.go deleted file mode 100644 index f8d3d4ae0f0b..000000000000 --- a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_integrationruntimestatus_client_test.go +++ /dev/null @@ -1,40 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armsynapse_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/IntegrationRuntimes_GetStatus.json -func ExampleIntegrationRuntimeStatusClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewIntegrationRuntimeStatusClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "exampleResourceGroup", - "exampleWorkspace", - "exampleIntegrationRuntime", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} diff --git a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_ipfirewallrules_client_test.go b/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_ipfirewallrules_client_test.go deleted file mode 100644 index a90ae2466a36..000000000000 --- a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_ipfirewallrules_client_test.go +++ /dev/null @@ -1,165 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armsynapse_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListIpFirewallRules.json -func ExampleIPFirewallRulesClient_NewListByWorkspacePager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewIPFirewallRulesClient("01234567-89ab-4def-0123-456789abcdef", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListByWorkspacePager("ExampleResourceGroup", - "ExampleWorkspace", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateIpFirewallRule.json -func ExampleIPFirewallRulesClient_BeginCreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewIPFirewallRulesClient("01234567-89ab-4def-0123-456789abcdef", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginCreateOrUpdate(ctx, - "ExampleResourceGroup", - "ExampleWorkspace", - "ExampleIpFirewallRule", - armsynapse.IPFirewallRuleInfo{ - Properties: &armsynapse.IPFirewallRuleProperties{ - EndIPAddress: to.Ptr("10.0.0.254"), - StartIPAddress: to.Ptr("10.0.0.0"), - }, - }, - 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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeleteIpFirewallRule.json -func ExampleIPFirewallRulesClient_BeginDelete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewIPFirewallRulesClient("01234567-89ab-4def-0123-456789abcdef", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginDelete(ctx, - "ExampleResourceGroup", - "ExampleWorkspace", - "ExampleIpFirewallRule", - 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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetIpFirewallRule.json -func ExampleIPFirewallRulesClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewIPFirewallRulesClient("01234567-89ab-4def-0123-456789abcdef", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "ExampleResourceGroup", - "ExampleWorkspace", - "ExampleIpFirewallRule", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ReplaceAllIpFirewallRules.json -func ExampleIPFirewallRulesClient_BeginReplaceAll() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewIPFirewallRulesClient("01234567-89ab-4def-0123-456789abcdef", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginReplaceAll(ctx, - "ExampleResourceGroup", - "ExampleWorkspace", - armsynapse.ReplaceAllIPFirewallRulesRequest{ - IPFirewallRules: map[string]*armsynapse.IPFirewallRuleProperties{ - "AnotherExampleFirewallRule": { - EndIPAddress: to.Ptr("10.0.1.254"), - StartIPAddress: to.Ptr("10.0.1.0"), - }, - "ExampleFirewallRule": { - EndIPAddress: to.Ptr("10.0.0.254"), - StartIPAddress: to.Ptr("10.0.0.0"), - }, - }, - }, - 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) - } - // TODO: use response item - _ = res -} diff --git a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_keys_client_test.go b/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_keys_client_test.go deleted file mode 100644 index 94aeb1dc37c1..000000000000 --- a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_keys_client_test.go +++ /dev/null @@ -1,119 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armsynapse_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListKeysInWorkspace.json -func ExampleKeysClient_NewListByWorkspacePager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewKeysClient("01234567-89ab-4def-0123-456789abcdef", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListByWorkspacePager("ExampleResourceGroup", - "ExampleWorkspace", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetKey.json -func ExampleKeysClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewKeysClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "ExampleResourceGroup", - "ExampleWorkspace", - "somekey", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateKey.json -func ExampleKeysClient_CreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewKeysClient("01234567-89ab-4def-0123-456789abcdef", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.CreateOrUpdate(ctx, - "ExampleResourceGroup", - "ExampleWorkspace", - "somekey", - armsynapse.Key{ - Properties: &armsynapse.KeyProperties{ - IsActiveCMK: to.Ptr(true), - KeyVaultURL: to.Ptr("https://vault.azure.net/keys/somesecret"), - }, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeleteKey.json -func ExampleKeysClient_Delete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewKeysClient("01234567-89ab-4def-0123-456789abcdef", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Delete(ctx, - "ExampleResourceGroup", - "ExampleWorkspace", - "somekey", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} diff --git a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_kustopoolattacheddatabaseconfigurations_client_test.go b/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_kustopoolattacheddatabaseconfigurations_client_test.go deleted file mode 100644 index 20a79827a490..000000000000 --- a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_kustopoolattacheddatabaseconfigurations_client_test.go +++ /dev/null @@ -1,145 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armsynapse_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolAttachedDatabaseConfigurationsListByKustoPool.json -func ExampleKustoPoolAttachedDatabaseConfigurationsClient_NewListByKustoPoolPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewKustoPoolAttachedDatabaseConfigurationsClient("12345678-1234-1234-1234-123456789098", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListByKustoPoolPager("kustorptest", - "kustoclusterrptest4", - "kustorptest", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolAttachedDatabaseConfigurationsGet.json -func ExampleKustoPoolAttachedDatabaseConfigurationsClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewKustoPoolAttachedDatabaseConfigurationsClient("12345678-1234-1234-1234-123456789098", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "kustorptest", - "kustoclusterrptest4", - "attachedDatabaseConfigurations1", - "kustorptest", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolAttachedDatabaseConfigurationsCreateOrUpdate.json -func ExampleKustoPoolAttachedDatabaseConfigurationsClient_BeginCreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewKustoPoolAttachedDatabaseConfigurationsClient("12345678-1234-1234-1234-123456789098", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginCreateOrUpdate(ctx, - "kustorptest", - "kustoclusterrptest4", - "attachedDatabaseConfigurations1", - "kustorptest", - armsynapse.AttachedDatabaseConfiguration{ - Location: to.Ptr("westus"), - Properties: &armsynapse.AttachedDatabaseConfigurationProperties{ - KustoPoolResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Synapse/Workspaces/kustorptest/KustoPools/kustoclusterrptest4"), - DatabaseName: to.Ptr("kustodatabase"), - DefaultPrincipalsModificationKind: to.Ptr(armsynapse.DefaultPrincipalsModificationKindUnion), - TableLevelSharingProperties: &armsynapse.TableLevelSharingProperties{ - ExternalTablesToExclude: []*string{ - to.Ptr("ExternalTable2")}, - ExternalTablesToInclude: []*string{ - to.Ptr("ExternalTable1")}, - MaterializedViewsToExclude: []*string{ - to.Ptr("MaterializedViewTable2")}, - MaterializedViewsToInclude: []*string{ - to.Ptr("MaterializedViewTable1")}, - TablesToExclude: []*string{ - to.Ptr("Table2")}, - TablesToInclude: []*string{ - to.Ptr("Table1")}, - }, - }, - }, - 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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolAttachedDatabaseConfigurationsDelete.json -func ExampleKustoPoolAttachedDatabaseConfigurationsClient_BeginDelete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewKustoPoolAttachedDatabaseConfigurationsClient("12345678-1234-1234-1234-123456789098", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginDelete(ctx, - "kustorptest", - "kustoclusterrptest4", - "attachedDatabaseConfigurations1", - "kustorptest", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} diff --git a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_kustopoolchildresource_client_test.go b/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_kustopoolchildresource_client_test.go deleted file mode 100644 index dd3735f4f2d6..000000000000 --- a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_kustopoolchildresource_client_test.go +++ /dev/null @@ -1,45 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armsynapse_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolAttachedDatabaseConfigurationCheckNameAvailability.json -func ExampleKustoPoolChildResourceClient_CheckNameAvailability() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewKustoPoolChildResourceClient("12345678-1234-1234-1234-123456789098", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.CheckNameAvailability(ctx, - "kustorptest", - "kustoclusterrptest4", - "kustorptest", - armsynapse.DatabaseCheckNameRequest{ - Name: to.Ptr("adc1"), - Type: to.Ptr(armsynapse.TypeMicrosoftSynapseWorkspacesKustoPoolsAttachedDatabaseConfigurations), - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} diff --git a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_kustopooldatabaseprincipalassignments_client_test.go b/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_kustopooldatabaseprincipalassignments_client_test.go deleted file mode 100644 index 7e2687a5a906..000000000000 --- a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_kustopooldatabaseprincipalassignments_client_test.go +++ /dev/null @@ -1,163 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armsynapse_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolDatabasePrincipalAssignmentsCheckNameAvailability.json -func ExampleKustoPoolDatabasePrincipalAssignmentsClient_CheckNameAvailability() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewKustoPoolDatabasePrincipalAssignmentsClient("12345678-1234-1234-1234-123456789098", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.CheckNameAvailability(ctx, - "synapseWorkspaceName", - "kustoclusterrptest4", - "Kustodatabase8", - "kustorptest", - armsynapse.DatabasePrincipalAssignmentCheckNameRequest{ - Name: to.Ptr("kustoprincipal1"), - Type: to.Ptr("Microsoft.Synapse/workspaces/kustoPools/databases/principalAssignments"), - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolDatabasePrincipalAssignmentsList.json -func ExampleKustoPoolDatabasePrincipalAssignmentsClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewKustoPoolDatabasePrincipalAssignmentsClient("12345678-1234-1234-1234-123456789098", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListPager("synapseWorkspaceName", - "kustoclusterrptest4", - "Kustodatabase8", - "kustorptest", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolDatabasePrincipalAssignmentsGet.json -func ExampleKustoPoolDatabasePrincipalAssignmentsClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewKustoPoolDatabasePrincipalAssignmentsClient("12345678-1234-1234-1234-123456789098", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "synapseWorkspaceName", - "kustoclusterrptest4", - "Kustodatabase8", - "kustoprincipal1", - "kustorptest", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolDatabasePrincipalAssignmentsCreateOrUpdate.json -func ExampleKustoPoolDatabasePrincipalAssignmentsClient_BeginCreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewKustoPoolDatabasePrincipalAssignmentsClient("12345678-1234-1234-1234-123456789098", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginCreateOrUpdate(ctx, - "synapseWorkspaceName", - "kustoclusterrptest4", - "Kustodatabase8", - "kustoprincipal1", - "kustorptest", - armsynapse.DatabasePrincipalAssignment{ - Properties: &armsynapse.DatabasePrincipalProperties{ - PrincipalID: to.Ptr("87654321-1234-1234-1234-123456789123"), - PrincipalType: to.Ptr(armsynapse.PrincipalTypeApp), - Role: to.Ptr(armsynapse.DatabasePrincipalRoleAdmin), - TenantID: to.Ptr("12345678-1234-1234-1234-123456789123"), - }, - }, - 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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolDatabasePrincipalAssignmentsDelete.json -func ExampleKustoPoolDatabasePrincipalAssignmentsClient_BeginDelete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewKustoPoolDatabasePrincipalAssignmentsClient("12345678-1234-1234-1234-123456789098", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginDelete(ctx, - "synapseWorkspaceName", - "kustoclusterrptest4", - "Kustodatabase8", - "kustoprincipal1", - "kustorptest", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} diff --git a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_kustopooldatabases_client_test.go b/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_kustopooldatabases_client_test.go deleted file mode 100644 index 8befa3cc4095..000000000000 --- a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_kustopooldatabases_client_test.go +++ /dev/null @@ -1,164 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armsynapse_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoDatabasesListByKustoPool.json -func ExampleKustoPoolDatabasesClient_NewListByKustoPoolPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewKustoPoolDatabasesClient("12345678-1234-1234-1234-123456789098", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListByKustoPoolPager("kustorptest", - "synapseWorkspaceName", - "kustoclusterrptest4", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolDatabasesGet.json -func ExampleKustoPoolDatabasesClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewKustoPoolDatabasesClient("12345678-1234-1234-1234-123456789098", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "kustorptest", - "synapseWorkspaceName", - "kustoclusterrptest4", - "KustoDatabase8", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolDatabasesCreateOrUpdate.json -func ExampleKustoPoolDatabasesClient_BeginCreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewKustoPoolDatabasesClient("12345678-1234-1234-1234-123456789098", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginCreateOrUpdate(ctx, - "kustorptest", - "synapseWorkspaceName", - "kustoclusterrptest4", - "KustoDatabase8", - &armsynapse.ReadWriteDatabase{ - Kind: to.Ptr(armsynapse.KindReadWrite), - Location: to.Ptr("westus"), - Properties: &armsynapse.ReadWriteDatabaseProperties{ - SoftDeletePeriod: to.Ptr("P1D"), - }, - }, - 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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolDatabasesUpdate.json -func ExampleKustoPoolDatabasesClient_BeginUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewKustoPoolDatabasesClient("12345678-1234-1234-1234-123456789098", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginUpdate(ctx, - "kustorptest", - "synapseWorkspaceName", - "kustoclusterrptest4", - "KustoDatabase8", - &armsynapse.ReadWriteDatabase{ - Kind: to.Ptr(armsynapse.KindReadWrite), - Properties: &armsynapse.ReadWriteDatabaseProperties{ - SoftDeletePeriod: to.Ptr("P1D"), - }, - }, - 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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolDatabasesDelete.json -func ExampleKustoPoolDatabasesClient_BeginDelete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewKustoPoolDatabasesClient("12345678-1234-1234-1234-123456789098", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginDelete(ctx, - "kustorptest", - "synapseWorkspaceName", - "kustoclusterrptest4", - "KustoDatabase8", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} diff --git a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_kustopooldataconnections_client_test.go b/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_kustopooldataconnections_client_test.go deleted file mode 100644 index b868925cfb55..000000000000 --- a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_kustopooldataconnections_client_test.go +++ /dev/null @@ -1,234 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armsynapse_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolDataConnectionsCheckNameAvailability.json -func ExampleKustoPoolDataConnectionsClient_CheckNameAvailability() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewKustoPoolDataConnectionsClient("12345678-1234-1234-1234-123456789098", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.CheckNameAvailability(ctx, - "kustorptest", - "synapseWorkspaceName", - "kustoclusterrptest4", - "Kustodatabase8", - armsynapse.DataConnectionCheckNameRequest{ - Name: to.Ptr("DataConnections8"), - Type: to.Ptr("Microsoft.Synapse/workspaces/kustoPools/databases/dataConnections"), - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolDataConnectionValidation.json -func ExampleKustoPoolDataConnectionsClient_BeginDataConnectionValidation() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewKustoPoolDataConnectionsClient("12345678-1234-1234-1234-123456789098", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginDataConnectionValidation(ctx, - "kustorptest", - "kustorptest", - "kustoclusterrptest4", - "KustoDatabase8", - armsynapse.DataConnectionValidation{ - DataConnectionName: to.Ptr("DataConnections8"), - Properties: &armsynapse.EventHubDataConnection{ - Kind: to.Ptr(armsynapse.DataConnectionKindEventHub), - }, - }, - 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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolDataConnectionsListByDatabase.json -func ExampleKustoPoolDataConnectionsClient_NewListByDatabasePager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewKustoPoolDataConnectionsClient("12345678-1234-1234-1234-123456789098", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListByDatabasePager("kustorptest", - "synapseWorkspaceName", - "kustoclusterrptest4", - "KustoDatabase8", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolDataConnectionsGet.json -func ExampleKustoPoolDataConnectionsClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewKustoPoolDataConnectionsClient("12345678-1234-1234-1234-123456789098", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "kustorptest", - "synapseWorkspaceName", - "kustoclusterrptest4", - "KustoDatabase8", - "DataConnections8", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolDataConnectionsCreateOrUpdate.json -func ExampleKustoPoolDataConnectionsClient_BeginCreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewKustoPoolDataConnectionsClient("12345678-1234-1234-1234-123456789098", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginCreateOrUpdate(ctx, - "kustorptest", - "synapseWorkspaceName", - "kustoclusterrptest4", - "KustoDatabase8", - "DataConnections8", - &armsynapse.EventHubDataConnection{ - Kind: to.Ptr(armsynapse.DataConnectionKindEventHub), - Location: to.Ptr("westus"), - Properties: &armsynapse.EventHubConnectionProperties{ - ConsumerGroup: to.Ptr("testConsumerGroup1"), - EventHubResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest1"), - }, - }, - 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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolDataConnectionsUpdate.json -func ExampleKustoPoolDataConnectionsClient_BeginUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewKustoPoolDataConnectionsClient("12345678-1234-1234-1234-123456789098", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginUpdate(ctx, - "kustorptest", - "synapseWorkspaceName", - "kustoclusterrptest4", - "KustoDatabase8", - "DataConnections8", - &armsynapse.EventHubDataConnection{ - Kind: to.Ptr(armsynapse.DataConnectionKindEventHub), - Location: to.Ptr("westus"), - Properties: &armsynapse.EventHubConnectionProperties{ - ConsumerGroup: to.Ptr("testConsumerGroup1"), - EventHubResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest1"), - }, - }, - 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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolDataConnectionsDelete.json -func ExampleKustoPoolDataConnectionsClient_BeginDelete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewKustoPoolDataConnectionsClient("12345678-1234-1234-1234-123456789098", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginDelete(ctx, - "kustorptest", - "synapseWorkspaceName", - "kustoclusterrptest4", - "KustoDatabase8", - "kustoeventhubconnection1", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} diff --git a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_kustopoolprincipalassignments_client_test.go b/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_kustopoolprincipalassignments_client_test.go deleted file mode 100644 index aebfb61f9137..000000000000 --- a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_kustopoolprincipalassignments_client_test.go +++ /dev/null @@ -1,158 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armsynapse_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolPrincipalAssignmentsCheckNameAvailability.json -func ExampleKustoPoolPrincipalAssignmentsClient_CheckNameAvailability() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewKustoPoolPrincipalAssignmentsClient("12345678-1234-1234-1234-123456789098", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.CheckNameAvailability(ctx, - "synapseWorkspaceName", - "kustoclusterrptest4", - "kustorptest", - armsynapse.ClusterPrincipalAssignmentCheckNameRequest{ - Name: to.Ptr("kustoprincipal1"), - Type: to.Ptr("Microsoft.Synapse/workspaces/kustoPools/principalAssignments"), - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolPrincipalAssignmentsList.json -func ExampleKustoPoolPrincipalAssignmentsClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewKustoPoolPrincipalAssignmentsClient("12345678-1234-1234-1234-123456789098", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListPager("synapseWorkspaceName", - "kustoclusterrptest4", - "kustorptest", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolPrincipalAssignmentsGet.json -func ExampleKustoPoolPrincipalAssignmentsClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewKustoPoolPrincipalAssignmentsClient("12345678-1234-1234-1234-123456789098", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "synapseWorkspaceName", - "kustoclusterrptest4", - "kustoprincipal1", - "kustorptest", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolPrincipalAssignmentsCreateOrUpdate.json -func ExampleKustoPoolPrincipalAssignmentsClient_BeginCreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewKustoPoolPrincipalAssignmentsClient("12345678-1234-1234-1234-123456789098", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginCreateOrUpdate(ctx, - "synapseWorkspaceName", - "kustoclusterrptest4", - "kustoprincipal1", - "kustorptest", - armsynapse.ClusterPrincipalAssignment{ - Properties: &armsynapse.ClusterPrincipalProperties{ - PrincipalID: to.Ptr("87654321-1234-1234-1234-123456789123"), - PrincipalType: to.Ptr(armsynapse.PrincipalTypeApp), - Role: to.Ptr(armsynapse.ClusterPrincipalRoleAllDatabasesAdmin), - TenantID: to.Ptr("12345678-1234-1234-1234-123456789123"), - }, - }, - 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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolPrincipalAssignmentsDelete.json -func ExampleKustoPoolPrincipalAssignmentsClient_BeginDelete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewKustoPoolPrincipalAssignmentsClient("12345678-1234-1234-1234-123456789098", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginDelete(ctx, - "synapseWorkspaceName", - "kustoclusterrptest4", - "kustoprincipal1", - "kustorptest", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} diff --git a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_kustopools_client_test.go b/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_kustopools_client_test.go deleted file mode 100644 index c91cd5d77afa..000000000000 --- a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_kustopools_client_test.go +++ /dev/null @@ -1,395 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armsynapse_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolsCheckNameAvailability.json -func ExampleKustoPoolsClient_CheckNameAvailability() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewKustoPoolsClient("12345678-1234-1234-1234-123456789098", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.CheckNameAvailability(ctx, - "westus", - armsynapse.KustoPoolCheckNameRequest{ - Name: to.Ptr("kustoclusterrptest4"), - Type: to.Ptr("Microsoft.Synapse/workspaces/kustoPools"), - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolsListByWorkspace.json -func ExampleKustoPoolsClient_ListByWorkspace() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewKustoPoolsClient("12345678-1234-1234-1234-123456789098", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.ListByWorkspace(ctx, - "kustorptest", - "kustorptest", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolsGet.json -func ExampleKustoPoolsClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewKustoPoolsClient("12345678-1234-1234-1234-123456789098", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "synapseWorkspaceName", - "kustoclusterrptest4", - "kustorptest", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolsCreateOrUpdate.json -func ExampleKustoPoolsClient_BeginCreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewKustoPoolsClient("12345678-1234-1234-1234-123456789098", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginCreateOrUpdate(ctx, - "synapseWorkspaceName", - "kustorptest", - "kustoclusterrptest4", - armsynapse.KustoPool{ - Location: to.Ptr("westus"), - Properties: &armsynapse.KustoPoolProperties{ - EnablePurge: to.Ptr(true), - EnableStreamingIngest: to.Ptr(true), - WorkspaceUID: to.Ptr("11111111-2222-3333-444444444444"), - }, - SKU: &armsynapse.AzureSKU{ - Name: to.Ptr(armsynapse.SKUNameStorageOptimized), - Capacity: to.Ptr[int32](2), - Size: to.Ptr(armsynapse.SKUSizeMedium), - }, - }, - &armsynapse.KustoPoolsClientBeginCreateOrUpdateOptions{IfMatch: nil, - IfNoneMatch: 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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolsUpdate.json -func ExampleKustoPoolsClient_BeginUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewKustoPoolsClient("12345678-1234-1234-1234-123456789098", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginUpdate(ctx, - "synapseWorkspaceName", - "kustorptest", - "kustoclusterrptest4", - armsynapse.KustoPoolUpdate{ - Properties: &armsynapse.KustoPoolProperties{ - EnablePurge: to.Ptr(true), - EnableStreamingIngest: to.Ptr(true), - WorkspaceUID: to.Ptr("11111111-2222-3333-444444444444"), - }, - SKU: &armsynapse.AzureSKU{ - Name: to.Ptr(armsynapse.SKUNameStorageOptimized), - Capacity: to.Ptr[int32](2), - Size: to.Ptr(armsynapse.SKUSizeMedium), - }, - }, - &armsynapse.KustoPoolsClientBeginUpdateOptions{IfMatch: 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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolsDelete.json -func ExampleKustoPoolsClient_BeginDelete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewKustoPoolsClient("12345678-1234-1234-1234-123456789098", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginDelete(ctx, - "kustorptest", - "kustorptest", - "kustoclusterrptest4", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolsStop.json -func ExampleKustoPoolsClient_BeginStop() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewKustoPoolsClient("12345678-1234-1234-1234-123456789098", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginStop(ctx, - "kustorptest", - "kustoclusterrptest4", - "kustorptest", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolsStart.json -func ExampleKustoPoolsClient_BeginStart() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewKustoPoolsClient("12345678-1234-1234-1234-123456789098", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginStart(ctx, - "kustorptest", - "kustoclusterrptest4", - "kustorptest", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolLanguageExtensionsList.json -func ExampleKustoPoolsClient_NewListLanguageExtensionsPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewKustoPoolsClient("12345678-1234-1234-1234-123456789098", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListLanguageExtensionsPager("kustorptest", - "kustoclusterrptest4", - "kustorptest", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolLanguageExtensionsAdd.json -func ExampleKustoPoolsClient_BeginAddLanguageExtensions() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewKustoPoolsClient("12345678-1234-1234-1234-123456789098", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginAddLanguageExtensions(ctx, - "kustorptest", - "kustoclusterrptest4", - "kustorptest", - armsynapse.LanguageExtensionsList{ - Value: []*armsynapse.LanguageExtension{ - { - LanguageExtensionName: to.Ptr(armsynapse.LanguageExtensionNamePYTHON), - }, - { - LanguageExtensionName: to.Ptr(armsynapse.LanguageExtensionNameR), - }}, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolLanguageExtensionsRemove.json -func ExampleKustoPoolsClient_BeginRemoveLanguageExtensions() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewKustoPoolsClient("12345678-1234-1234-1234-123456789098", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginRemoveLanguageExtensions(ctx, - "kustorptest", - "kustoclusterrptest4", - "kustorptest", - armsynapse.LanguageExtensionsList{ - Value: []*armsynapse.LanguageExtension{ - { - LanguageExtensionName: to.Ptr(armsynapse.LanguageExtensionNamePYTHON), - }, - { - LanguageExtensionName: to.Ptr(armsynapse.LanguageExtensionNameR), - }}, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolFollowerDatabasesList.json -func ExampleKustoPoolsClient_NewListFollowerDatabasesPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewKustoPoolsClient("12345678-1234-1234-1234-123456789098", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListFollowerDatabasesPager("kustorptest", - "kustoclusterrptest4", - "kustorptest", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/KustoPoolFollowerDatabasesDetach.json -func ExampleKustoPoolsClient_BeginDetachFollowerDatabases() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewKustoPoolsClient("12345678-1234-1234-1234-123456789098", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginDetachFollowerDatabases(ctx, - "kustorptest", - "kustoclusterrptest4", - "kustorptest", - armsynapse.FollowerDatabaseDefinition{ - AttachedDatabaseConfigurationName: to.Ptr("myAttachedDatabaseConfiguration"), - KustoPoolResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Synapse/workspaces/kustorptest/kustoPools/leader4"), - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} diff --git a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_libraries_client_test.go b/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_libraries_client_test.go deleted file mode 100644 index 87dd400b83a0..000000000000 --- a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_libraries_client_test.go +++ /dev/null @@ -1,43 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armsynapse_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/Libraries_ListByWorkspace.json -func ExampleLibrariesClient_NewListByWorkspacePager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewLibrariesClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListByWorkspacePager("exampleResourceGroup", - "exampleWorkspace", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} diff --git a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_library_client_test.go b/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_library_client_test.go deleted file mode 100644 index add53f327756..000000000000 --- a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_library_client_test.go +++ /dev/null @@ -1,40 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armsynapse_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/Library_Get.json -func ExampleLibraryClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewLibraryClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "exampleResourceGroup", - "exampleLibraryName.jar", - "exampleWorkspace", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} diff --git a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_operations_client_test.go b/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_operations_client_test.go deleted file mode 100644 index 170b6f281faf..000000000000 --- a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_operations_client_test.go +++ /dev/null @@ -1,106 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armsynapse_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CheckNameAvailabilityWorkspaceAlreadyExists.json -func ExampleOperationsClient_CheckNameAvailability() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewOperationsClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.CheckNameAvailability(ctx, - armsynapse.CheckNameAvailabilityRequest{ - Name: to.Ptr("workspace1"), - Type: to.Ptr("Microsoft.Synapse/workspaces"), - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetAvailableOperations.json -func ExampleOperationsClient_List() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewOperationsClient("", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.List(ctx, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetLocationHeader.json -func ExampleOperationsClient_GetLocationHeaderResult() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewOperationsClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = client.GetLocationHeaderResult(ctx, - "resourceGroup1", - "workspace1", - "01234567-89ab-4def-0123-456789abcdef", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetAzureAsyncOperationHeader.json -func ExampleOperationsClient_GetAzureAsyncHeaderResult() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewOperationsClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.GetAzureAsyncHeaderResult(ctx, - "resourceGroup1", - "workspace1", - "01234567-89ab-4def-0123-456789abcdef", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} diff --git a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_privateendpointconnections_client_test.go b/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_privateendpointconnections_client_test.go deleted file mode 100644 index 7b79dc290a93..000000000000 --- a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_privateendpointconnections_client_test.go +++ /dev/null @@ -1,127 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armsynapse_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetPrivateEndpointConnection.json -func ExamplePrivateEndpointConnectionsClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewPrivateEndpointConnectionsClient("01234567-89ab-4def-0123-456789abcdef", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "ExampleResourceGroup", - "ExampleWorkspace", - "ExamplePrivateEndpointConnection", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ApprovePrivateEndpointConnection.json -func ExamplePrivateEndpointConnectionsClient_BeginCreate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewPrivateEndpointConnectionsClient("01234567-89ab-4def-0123-456789abcdef", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginCreate(ctx, - "ExampleResourceGroup", - "ExampleWorkspace", - "ExamplePrivateEndpointConnection", - armsynapse.PrivateEndpointConnection{ - Properties: &armsynapse.PrivateEndpointConnectionProperties{ - PrivateLinkServiceConnectionState: &armsynapse.PrivateLinkServiceConnectionState{ - Description: to.Ptr("Approved by abc@example.com"), - Status: to.Ptr("Approved"), - }, - }, - }, - 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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeletePrivateEndpointConnection.json -func ExamplePrivateEndpointConnectionsClient_BeginDelete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewPrivateEndpointConnectionsClient("01234567-89ab-4def-0123-456789abcdef", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginDelete(ctx, - "ExampleResourceGroup", - "ExampleWorkspace", - "ExamplePrivateEndpointConnection", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListPrivateEndpointConnections.json -func ExamplePrivateEndpointConnectionsClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewPrivateEndpointConnectionsClient("01234567-89ab-4def-0123-456789abcdef", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListPager("ExampleResourceGroup", - "ExampleWorkspace", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} diff --git a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_privateendpointconnectionsprivatelinkhub_client_test.go b/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_privateendpointconnectionsprivatelinkhub_client_test.go deleted file mode 100644 index 38384446d11f..000000000000 --- a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_privateendpointconnectionsprivatelinkhub_client_test.go +++ /dev/null @@ -1,66 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armsynapse_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/PrivateEndpointConnectionsPrivateLinkHub_List.json -func ExamplePrivateEndpointConnectionsPrivateLinkHubClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewPrivateEndpointConnectionsPrivateLinkHubClient("48b08652-d7a1-4d52-b13f-5a2471dce57b", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListPager("gh-res-grp", - "pe0", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/PrivateEndpointConnectionsPrivateLinkHub_Get.json -func ExamplePrivateEndpointConnectionsPrivateLinkHubClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewPrivateEndpointConnectionsPrivateLinkHubClient("48b08652-d7a1-4d52-b13f-5a2471dce57b", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "gh-res-grp", - "pe0", - "pe0-f3ed30f5-338c-4855-a542-24a403694ad2", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} diff --git a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_privatelinkhubprivatelinkresources_client_test.go b/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_privatelinkhubprivatelinkresources_client_test.go deleted file mode 100644 index 83656f39ce93..000000000000 --- a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_privatelinkhubprivatelinkresources_client_test.go +++ /dev/null @@ -1,66 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armsynapse_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListPrivateLinkHubPrivateLinkResources.json -func ExamplePrivateLinkHubPrivateLinkResourcesClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewPrivateLinkHubPrivateLinkResourcesClient("01234567-89ab-4def-0123-456789abcdef", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListPager("ExampleResourceGroup", - "ExamplePrivateLinkHub", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetPrivateLinkHubPrivateLinkResource.json -func ExamplePrivateLinkHubPrivateLinkResourcesClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewPrivateLinkHubPrivateLinkResourcesClient("01234567-89ab-4def-0123-456789abcdef", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "ExampleResourceGroup", - "ExamplePrivateLinkHub", - "sql", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} diff --git a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_privatelinkhubs_client_test.go b/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_privatelinkhubs_client_test.go deleted file mode 100644 index f8be4a65a2a1..000000000000 --- a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_privatelinkhubs_client_test.go +++ /dev/null @@ -1,169 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armsynapse_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListPrivateLinkHubsInResourceGroup.json -func ExamplePrivateLinkHubsClient_NewListByResourceGroupPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewPrivateLinkHubsClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListByResourceGroupPager("resourceGroup1", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetPrivateLinkHub.json -func ExamplePrivateLinkHubsClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewPrivateLinkHubsClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "resourceGroup1", - "privateLinkHub1", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/UpdatePrivateLinkHub.json -func ExamplePrivateLinkHubsClient_Update() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewPrivateLinkHubsClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Update(ctx, - "resourceGroup1", - "privateLinkHub1", - armsynapse.PrivateLinkHubPatchInfo{ - Tags: map[string]*string{ - "key": to.Ptr("value"), - }, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdatePrivateLinkHub.json -func ExamplePrivateLinkHubsClient_CreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewPrivateLinkHubsClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.CreateOrUpdate(ctx, - "resourceGroup1", - "privateLinkHub1", - armsynapse.PrivateLinkHub{ - Location: to.Ptr("East US"), - Tags: map[string]*string{ - "key": to.Ptr("value"), - }, - Properties: &armsynapse.PrivateLinkHubProperties{}, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeletePrivateLinkHub.json -func ExamplePrivateLinkHubsClient_BeginDelete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewPrivateLinkHubsClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginDelete(ctx, - "resourceGroup1", - "privateLinkHub1", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListPrivateLinkHubsInSubscription.json -func ExamplePrivateLinkHubsClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewPrivateLinkHubsClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListPager(nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} diff --git a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_privatelinkresources_client_test.go b/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_privatelinkresources_client_test.go deleted file mode 100644 index 9644dce5e011..000000000000 --- a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_privatelinkresources_client_test.go +++ /dev/null @@ -1,66 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armsynapse_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListPrivateLinkResources.json -func ExamplePrivateLinkResourcesClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewPrivateLinkResourcesClient("01234567-89ab-4def-0123-456789abcdef", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListPager("ExampleResourceGroup", - "ExampleWorkspace", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetPrivateLinkResource.json -func ExamplePrivateLinkResourcesClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewPrivateLinkResourcesClient("01234567-89ab-4def-0123-456789abcdef", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "ExampleResourceGroup", - "ExampleWorkspace", - "sql", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} diff --git a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_restorabledroppedsqlpools_client_test.go b/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_restorabledroppedsqlpools_client_test.go deleted file mode 100644 index 1c1092d43580..000000000000 --- a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_restorabledroppedsqlpools_client_test.go +++ /dev/null @@ -1,66 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armsynapse_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/RestorableDroppedSqlPoolGet.json -func ExampleRestorableDroppedSQLPoolsClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewRestorableDroppedSQLPoolsClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "restorabledroppeddatabasetest-1257", - "restorabledroppeddatabasetest-2389", - "restorabledroppeddatabasetest-7654,131403269876900000", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/RestorableDroppedSqlpoolList.json -func ExampleRestorableDroppedSQLPoolsClient_NewListByWorkspacePager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewRestorableDroppedSQLPoolsClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListByWorkspacePager("restorabledroppeddatabasetest-1349", - "restorabledroppeddatabasetest-1840", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} diff --git a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sparkconfiguration_client_test.go b/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sparkconfiguration_client_test.go deleted file mode 100644 index 199856b5aeb9..000000000000 --- a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sparkconfiguration_client_test.go +++ /dev/null @@ -1,40 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armsynapse_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/SparkConfiguration_Get.json -func ExampleSparkConfigurationClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewSparkConfigurationClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "exampleResourceGroup", - "exampleSparkConfigurationName", - "exampleWorkspace", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} diff --git a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sparkconfigurations_client_test.go b/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sparkconfigurations_client_test.go deleted file mode 100644 index 43d7ae5f69c1..000000000000 --- a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sparkconfigurations_client_test.go +++ /dev/null @@ -1,43 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armsynapse_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/preview/2021-06-01-preview/examples/SparkConfigurations_ListByWorkspace.json -func ExampleSparkConfigurationsClient_NewListByWorkspacePager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewSparkConfigurationsClient("12345678-1234-1234-1234-12345678abc", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListByWorkspacePager("exampleResourceGroup", - "exampleWorkspace", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} diff --git a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpoolblobauditingpolicies_client_test.go b/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpoolblobauditingpolicies_client_test.go deleted file mode 100644 index 103e984b6417..000000000000 --- a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpoolblobauditingpolicies_client_test.go +++ /dev/null @@ -1,79 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armsynapse_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolBlobAuditing.json -func ExampleSQLPoolBlobAuditingPoliciesClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewSQLPoolBlobAuditingPoliciesClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "blobauditingtest-6852", - "blobauditingtest-2080", - "testdb", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateSqlPoolBlobAuditingWithAllParameters.json -func ExampleSQLPoolBlobAuditingPoliciesClient_CreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewSQLPoolBlobAuditingPoliciesClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.CreateOrUpdate(ctx, - "blobauditingtest-4799", - "blobauditingtest-6440", - "testdb", - armsynapse.SQLPoolBlobAuditingPolicy{ - Properties: &armsynapse.SQLPoolBlobAuditingPolicyProperties{ - AuditActionsAndGroups: []*string{ - to.Ptr("DATABASE_LOGOUT_GROUP"), - to.Ptr("DATABASE_ROLE_MEMBER_CHANGE_GROUP"), - to.Ptr("UPDATE on database::TestDatabaseName by public")}, - IsAzureMonitorTargetEnabled: to.Ptr(true), - IsStorageSecondaryKeyInUse: to.Ptr(false), - RetentionDays: to.Ptr[int32](6), - State: to.Ptr(armsynapse.BlobAuditingPolicyStateEnabled), - StorageAccountAccessKey: to.Ptr("sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3RSD=="), - StorageAccountSubscriptionID: to.Ptr("00000000-1234-0000-5678-000000000000"), - StorageEndpoint: to.Ptr("https://mystorage.blob.core.windows.net"), - }, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} diff --git a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpoolcolumns_client_test.go b/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpoolcolumns_client_test.go deleted file mode 100644 index 045b715c1fd3..000000000000 --- a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpoolcolumns_client_test.go +++ /dev/null @@ -1,43 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armsynapse_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolColumnGet.json -func ExampleSQLPoolColumnsClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewSQLPoolColumnsClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "myRG", - "serverName", - "myDatabase", - "dbo", - "table1", - "column1", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} diff --git a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpoolconnectionpolicies_client_test.go b/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpoolconnectionpolicies_client_test.go deleted file mode 100644 index 1e9cc33d9809..000000000000 --- a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpoolconnectionpolicies_client_test.go +++ /dev/null @@ -1,41 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armsynapse_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolConnectionPolicy.json -func ExampleSQLPoolConnectionPoliciesClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewSQLPoolConnectionPoliciesClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "blobauditingtest-6852", - "blobauditingtest-2080", - "testdb", - armsynapse.ConnectionPolicyNameDefault, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} diff --git a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpooldatawarehouseuseractivities_client_test.go b/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpooldatawarehouseuseractivities_client_test.go deleted file mode 100644 index 4469d20e07ab..000000000000 --- a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpooldatawarehouseuseractivities_client_test.go +++ /dev/null @@ -1,41 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armsynapse_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolUserActivity.json -func ExampleSQLPoolDataWarehouseUserActivitiesClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewSQLPoolDataWarehouseUserActivitiesClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "Default-SQL-SouthEastAsia", - "testsvr", - "testdb", - armsynapse.DataWarehouseUserActivityNameCurrent, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} diff --git a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpoolgeobackuppolicies_client_test.go b/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpoolgeobackuppolicies_client_test.go deleted file mode 100644 index 9d0c29365dab..000000000000 --- a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpoolgeobackuppolicies_client_test.go +++ /dev/null @@ -1,98 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armsynapse_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolGeoBackupPolicies_List.json -func ExampleSQLPoolGeoBackupPoliciesClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewSQLPoolGeoBackupPoliciesClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListPager("sqlcrudtest-4799", - "sqlcrudtest-5961", - "testdw", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateGeoBackupPolicies.json -func ExampleSQLPoolGeoBackupPoliciesClient_CreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewSQLPoolGeoBackupPoliciesClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.CreateOrUpdate(ctx, - "testrg", - "testws", - "testdw", - armsynapse.GeoBackupPolicyNameDefault, - armsynapse.GeoBackupPolicy{ - Properties: &armsynapse.GeoBackupPolicyProperties{ - State: to.Ptr(armsynapse.GeoBackupPolicyStateEnabled), - }, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolGeoBackupPolicy.json -func ExampleSQLPoolGeoBackupPoliciesClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewSQLPoolGeoBackupPoliciesClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "sqlcrudtest-4799", - "sqlcrudtest-5961", - "testdw", - armsynapse.GeoBackupPolicyNameDefault, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} diff --git a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpoolmaintenancewindowoptions_client_test.go b/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpoolmaintenancewindowoptions_client_test.go deleted file mode 100644 index 08e35591d93c..000000000000 --- a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpoolmaintenancewindowoptions_client_test.go +++ /dev/null @@ -1,41 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armsynapse_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetMaintenanceWindowOptions.json -func ExampleSQLPoolMaintenanceWindowOptionsClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewSQLPoolMaintenanceWindowOptionsClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "samplerg", - "testworkspace", - "testsp", - "current", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} diff --git a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpoolmaintenancewindows_client_test.go b/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpoolmaintenancewindows_client_test.go deleted file mode 100644 index e32d42da7dfa..000000000000 --- a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpoolmaintenancewindows_client_test.go +++ /dev/null @@ -1,74 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armsynapse_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetMaintenanceWindows.json -func ExampleSQLPoolMaintenanceWindowsClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewSQLPoolMaintenanceWindowsClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "samplerg", - "testworkspace", - "testsp", - "current", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateMaintenanceWindows.json -func ExampleSQLPoolMaintenanceWindowsClient_CreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewSQLPoolMaintenanceWindowsClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = client.CreateOrUpdate(ctx, - "samplerg", - "testworkspace", - "testsp", - "current", - armsynapse.MaintenanceWindows{ - Properties: &armsynapse.MaintenanceWindowsProperties{ - TimeRanges: []*armsynapse.MaintenanceWindowTimeRange{ - { - DayOfWeek: to.Ptr(armsynapse.DayOfWeekSaturday), - Duration: to.Ptr("PT60M"), - StartTime: to.Ptr("00:00:00"), - }}, - }, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} diff --git a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpoolmetadatasyncconfigs_client_test.go b/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpoolmetadatasyncconfigs_client_test.go deleted file mode 100644 index e931354cc631..000000000000 --- a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpoolmetadatasyncconfigs_client_test.go +++ /dev/null @@ -1,69 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armsynapse_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolMetadataSyncConfig.json -func ExampleSQLPoolMetadataSyncConfigsClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewSQLPoolMetadataSyncConfigsClient("01234567-89ab-4def-0123-456789abcdef", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "ExampleResourceGroup", - "ExampleWorkspace", - "ExampleSqlPool", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateSqlPoolMetadataSyncConfig.json -func ExampleSQLPoolMetadataSyncConfigsClient_Create() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewSQLPoolMetadataSyncConfigsClient("01234567-89ab-4def-0123-456789abcdef", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Create(ctx, - "ExampleResourceGroup", - "ExampleWorkspace", - "ExampleSqlPool", - armsynapse.MetadataSyncConfig{ - Properties: &armsynapse.MetadataSyncConfigProperties{ - Enabled: to.Ptr(true), - }, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} diff --git a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpooloperationresults_client_test.go b/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpooloperationresults_client_test.go deleted file mode 100644 index 8313edd90b35..000000000000 --- a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpooloperationresults_client_test.go +++ /dev/null @@ -1,41 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armsynapse_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetLocationHeaderResultWithSqlPool.json -func ExampleSQLPoolOperationResultsClient_GetLocationHeaderResult() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewSQLPoolOperationResultsClient("01234567-89ab-4def-0123-456789abcdef", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.GetLocationHeaderResult(ctx, - "ExampleResourceGroup", - "ExampleWorkspace", - "ExampleSqlPool", - "fedcba98-7654-4210-fedc-ba9876543210", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} diff --git a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpooloperations_client_test.go b/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpooloperations_client_test.go deleted file mode 100644 index 07f665882a66..000000000000 --- a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpooloperations_client_test.go +++ /dev/null @@ -1,44 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armsynapse_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListSqlPoolOperations.json -func ExampleSQLPoolOperationsClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewSQLPoolOperationsClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListPager("sqlcrudtest-7398", - "sqlcrudtest-4645", - "testdb", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} diff --git a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpoolrecommendedsensitivitylabels_client_test.go b/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpoolrecommendedsensitivitylabels_client_test.go deleted file mode 100644 index 0940649b7060..000000000000 --- a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpoolrecommendedsensitivitylabels_client_test.go +++ /dev/null @@ -1,66 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armsynapse_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SensitivityLabelsRecommendedUpdate.json -func ExampleSQLPoolRecommendedSensitivityLabelsClient_Update() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewSQLPoolRecommendedSensitivityLabelsClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = client.Update(ctx, - "myRG", - "myWorkspace", - "mySqlPool", - armsynapse.RecommendedSensitivityLabelUpdateList{ - Operations: []*armsynapse.RecommendedSensitivityLabelUpdate{ - { - Properties: &armsynapse.RecommendedSensitivityLabelUpdateProperties{ - Schema: to.Ptr("dbo"), - Column: to.Ptr("column1"), - Op: to.Ptr(armsynapse.RecommendedSensitivityLabelUpdateKindEnable), - Table: to.Ptr("table1"), - }, - }, - { - Properties: &armsynapse.RecommendedSensitivityLabelUpdateProperties{ - Schema: to.Ptr("dbo"), - Column: to.Ptr("column2"), - Op: to.Ptr(armsynapse.RecommendedSensitivityLabelUpdateKindEnable), - Table: to.Ptr("table2"), - }, - }, - { - Properties: &armsynapse.RecommendedSensitivityLabelUpdateProperties{ - Schema: to.Ptr("dbo"), - Column: to.Ptr("column3"), - Op: to.Ptr(armsynapse.RecommendedSensitivityLabelUpdateKindDisable), - Table: to.Ptr("table1"), - }, - }}, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} diff --git a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpoolreplicationlinks_client_test.go b/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpoolreplicationlinks_client_test.go deleted file mode 100644 index 8f48feeb951e..000000000000 --- a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpoolreplicationlinks_client_test.go +++ /dev/null @@ -1,68 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armsynapse_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListSqlPoolReplicationLinks.json -func ExampleSQLPoolReplicationLinksClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewSQLPoolReplicationLinksClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListPager("sqlcrudtest-4799", - "sqlcrudtest-6440", - "testdb", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolReplicationLinks_GetByName.json -func ExampleSQLPoolReplicationLinksClient_GetByName() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewSQLPoolReplicationLinksClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.GetByName(ctx, - "sqlcrudtest-4799", - "sqlcrudtest-6440", - "testdb", - "5b301b68-03f6-4b26-b0f4-73ebb8634238", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} diff --git a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpoolrestorepoints_client_test.go b/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpoolrestorepoints_client_test.go deleted file mode 100644 index 1dcaea26cc7b..000000000000 --- a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpoolrestorepoints_client_test.go +++ /dev/null @@ -1,121 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armsynapse_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListSqlPoolRestorePoints.json -func ExampleSQLPoolRestorePointsClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewSQLPoolRestorePointsClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListPager("Default-SQL-SouthEastAsia", - "testserver", - "testDatabase", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateSqlPoolRestorePoints.json -func ExampleSQLPoolRestorePointsClient_BeginCreate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewSQLPoolRestorePointsClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginCreate(ctx, - "Default-SQL-SouthEastAsia", - "testserver", - "testDatabase", - armsynapse.CreateSQLPoolRestorePointDefinition{ - RestorePointLabel: to.Ptr("mylabel"), - }, - 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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolRestorePointsGet.json -func ExampleSQLPoolRestorePointsClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewSQLPoolRestorePointsClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "Default-SQL-SouthEastAsia", - "testws", - "testpool", - "131546477590000000", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolRestorePointsDelete.json -func ExampleSQLPoolRestorePointsClient_Delete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewSQLPoolRestorePointsClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = client.Delete(ctx, - "Default-SQL-SouthEastAsia", - "testws", - "testpool", - "131546477590000000", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} diff --git a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpools_client_test.go b/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpools_client_test.go deleted file mode 100644 index cbd7a1ae9de4..000000000000 --- a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpools_client_test.go +++ /dev/null @@ -1,253 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armsynapse_test - -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/synapse/armsynapse" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPool.json -func ExampleSQLPoolsClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewSQLPoolsClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "sqlcrudtest-6852", - "sqlcrudtest-2080", - "sqlcrudtest-9187", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/UpdateSqlPool.json -func ExampleSQLPoolsClient_Update() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewSQLPoolsClient("01234567-89ab-4def-0123-456789abcdef", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Update(ctx, - "ExampleResourceGroup", - "ExampleWorkspace", - "ExampleSqlPool", - armsynapse.SQLPoolPatchInfo{ - Location: to.Ptr("West US 2"), - Properties: &armsynapse.SQLPoolResourceProperties{ - Collation: to.Ptr(""), - MaxSizeBytes: to.Ptr[int64](0), - RestorePointInTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "1970-01-01T00:00:00.000Z"); return t }()), - }, - SKU: &armsynapse.SKU{ - Name: to.Ptr(""), - Tier: to.Ptr(""), - }, - Tags: map[string]*string{}, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateSqlPool.json -func ExampleSQLPoolsClient_BeginCreate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewSQLPoolsClient("01234567-89ab-4def-0123-456789abcdef", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginCreate(ctx, - "ExampleResourceGroup", - "ExampleWorkspace", - "ExampleSqlPool", - armsynapse.SQLPool{ - Location: to.Ptr("Southeast Asia"), - Tags: map[string]*string{}, - Properties: &armsynapse.SQLPoolResourceProperties{ - Collation: to.Ptr(""), - CreateMode: to.Ptr(armsynapse.CreateMode("")), - MaxSizeBytes: to.Ptr[int64](0), - RecoverableDatabaseID: to.Ptr(""), - SourceDatabaseID: to.Ptr(""), - StorageAccountType: to.Ptr(armsynapse.StorageAccountTypeLRS), - }, - SKU: &armsynapse.SKU{ - Name: to.Ptr(""), - Tier: to.Ptr(""), - }, - }, - 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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeleteSqlPool.json -func ExampleSQLPoolsClient_BeginDelete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewSQLPoolsClient("01234567-89ab-4def-0123-456789abcdef", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginDelete(ctx, - "ExampleResourceGroup", - "ExampleWorkspace", - "ExampleSqlPool", - 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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListSqlPoolsInWorkspace.json -func ExampleSQLPoolsClient_NewListByWorkspacePager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewSQLPoolsClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListByWorkspacePager("sqlcrudtest-6845", - "sqlcrudtest-7177", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/PauseSqlPool.json -func ExampleSQLPoolsClient_BeginPause() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewSQLPoolsClient("01234567-89ab-4def-0123-456789abcdef", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginPause(ctx, - "Default-SQL-SouthEastAsia", - "testsvr", - "testdwdb", - 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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ResumeSqlPool.json -func ExampleSQLPoolsClient_BeginResume() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewSQLPoolsClient("01234567-89ab-4def-0123-456789abcdef", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginResume(ctx, - "sqlcrudtest-6852", - "sqlcrudtest-2080", - "sqlcrudtest-9187", - 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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/RenameSqlPool.json -func ExampleSQLPoolsClient_Rename() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewSQLPoolsClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = client.Rename(ctx, - "Default-SQL-SouthEastAsia", - "testsvr", - "testdb", - armsynapse.ResourceMoveDefinition{ - ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default-SQL-SouthEastAsia/providers/Microsoft.Synapse/workspaces/testsvr/sqlPools/newtestdb"), - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} diff --git a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpoolschemas_client_test.go b/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpoolschemas_client_test.go deleted file mode 100644 index 05b30f511a93..000000000000 --- a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpoolschemas_client_test.go +++ /dev/null @@ -1,68 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armsynapse_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListSqlPoolSchema.json -func ExampleSQLPoolSchemasClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewSQLPoolSchemasClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListPager("myRG", - "serverName", - "myDatabase", - &armsynapse.SQLPoolSchemasClientListOptions{Filter: nil}) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolSchemaGet.json -func ExampleSQLPoolSchemasClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewSQLPoolSchemasClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "myRG", - "serverName", - "myDatabase", - "dbo", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} diff --git a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpoolsecurityalertpolicies_client_test.go b/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpoolsecurityalertpolicies_client_test.go deleted file mode 100644 index 3e0693765bfe..000000000000 --- a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpoolsecurityalertpolicies_client_test.go +++ /dev/null @@ -1,108 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armsynapse_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolSecurityAlertPolicies_List.json -func ExampleSQLPoolSecurityAlertPoliciesClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewSQLPoolSecurityAlertPoliciesClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListPager("securityalert-6852", - "securityalert-2080", - "testdb", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolSecurityAlert.json -func ExampleSQLPoolSecurityAlertPoliciesClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewSQLPoolSecurityAlertPoliciesClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "securityalert-6852", - "securityalert-2080", - "testdb", - armsynapse.SecurityAlertPolicyNameDefault, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateSqlPoolSecurityAlertWithAllParameters.json -func ExampleSQLPoolSecurityAlertPoliciesClient_CreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewSQLPoolSecurityAlertPoliciesClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.CreateOrUpdate(ctx, - "securityalert-4799", - "securityalert-6440", - "testdb", - armsynapse.SecurityAlertPolicyNameDefault, - armsynapse.SQLPoolSecurityAlertPolicy{ - Properties: &armsynapse.SecurityAlertPolicyProperties{ - DisabledAlerts: []*string{ - to.Ptr("Sql_Injection"), - to.Ptr("Usage_Anomaly")}, - EmailAccountAdmins: to.Ptr(true), - EmailAddresses: []*string{ - to.Ptr("test@microsoft.com"), - to.Ptr("user@microsoft.com")}, - RetentionDays: to.Ptr[int32](6), - State: to.Ptr(armsynapse.SecurityAlertPolicyStateEnabled), - StorageAccountAccessKey: to.Ptr("sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3RSD=="), - StorageEndpoint: to.Ptr("https://mystorage.blob.core.windows.net"), - }, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} diff --git a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpoolsensitivitylabels_client_test.go b/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpoolsensitivitylabels_client_test.go deleted file mode 100644 index acf6a7c246f8..000000000000 --- a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpoolsensitivitylabels_client_test.go +++ /dev/null @@ -1,274 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armsynapse_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListSqlPoolsSensitivityLabelsWithSourceCurrent.json -func ExampleSQLPoolSensitivityLabelsClient_NewListCurrentPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewSQLPoolSensitivityLabelsClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListCurrentPager("myRG", - "myServer", - "myDatabase", - &armsynapse.SQLPoolSensitivityLabelsClientListCurrentOptions{Filter: nil}) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SensitivityLabelsCurrentUpdate.json -func ExampleSQLPoolSensitivityLabelsClient_Update() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewSQLPoolSensitivityLabelsClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = client.Update(ctx, - "myRG", - "myWorkspace", - "mySqlPool", - armsynapse.SensitivityLabelUpdateList{ - Operations: []*armsynapse.SensitivityLabelUpdate{ - { - Properties: &armsynapse.SensitivityLabelUpdateProperties{ - Schema: to.Ptr("dbo"), - Column: to.Ptr("column1"), - Op: to.Ptr(armsynapse.SensitivityLabelUpdateKindSet), - SensitivityLabel: &armsynapse.SensitivityLabel{ - Properties: &armsynapse.SensitivityLabelProperties{ - InformationType: to.Ptr("Financial"), - InformationTypeID: to.Ptr("1D3652D6-422C-4115-82F1-65DAEBC665C8"), - LabelID: to.Ptr("3A477B16-9423-432B-AA97-6069B481CEC3"), - LabelName: to.Ptr("Highly Confidential"), - Rank: to.Ptr(armsynapse.SensitivityLabelRankLow), - }, - }, - Table: to.Ptr("table1"), - }, - }, - { - Properties: &armsynapse.SensitivityLabelUpdateProperties{ - Schema: to.Ptr("dbo"), - Column: to.Ptr("column2"), - Op: to.Ptr(armsynapse.SensitivityLabelUpdateKindSet), - SensitivityLabel: &armsynapse.SensitivityLabel{ - Properties: &armsynapse.SensitivityLabelProperties{ - InformationType: to.Ptr("PhoneNumber"), - InformationTypeID: to.Ptr("d22fa6e9-5ee4-3bde-4c2b-a409604c4646"), - LabelID: to.Ptr("bf91e08c-f4f0-478a-b016-25164b2a65ff"), - LabelName: to.Ptr("PII"), - Rank: to.Ptr(armsynapse.SensitivityLabelRankCritical), - }, - }, - Table: to.Ptr("table2"), - }, - }, - { - Properties: &armsynapse.SensitivityLabelUpdateProperties{ - Schema: to.Ptr("dbo"), - Column: to.Ptr("Column3"), - Op: to.Ptr(armsynapse.SensitivityLabelUpdateKindRemove), - Table: to.Ptr("Table1"), - }, - }}, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListSqlPoolSensitivityLabelsWithSourceRecommended.json -func ExampleSQLPoolSensitivityLabelsClient_NewListRecommendedPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewSQLPoolSensitivityLabelsClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListRecommendedPager("myRG", - "myServer", - "myDatabase", - &armsynapse.SQLPoolSensitivityLabelsClientListRecommendedOptions{IncludeDisabledRecommendations: nil, - SkipToken: nil, - Filter: nil, - }) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateSqlPoolColumnSensitivityLabelWithAllParameters.json -func ExampleSQLPoolSensitivityLabelsClient_CreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewSQLPoolSensitivityLabelsClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.CreateOrUpdate(ctx, - "myRG", - "myServer", - "myDatabase", - "dbo", - "myTable", - "myColumn", - armsynapse.SensitivityLabel{ - Properties: &armsynapse.SensitivityLabelProperties{ - InformationType: to.Ptr("PhoneNumber"), - InformationTypeID: to.Ptr("d22fa6e9-5ee4-3bde-4c2b-a409604c4646"), - LabelID: to.Ptr("bf91e08c-f4f0-478a-b016-25164b2a65ff"), - LabelName: to.Ptr("PII"), - }, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeleteSqlPoolColumnSensitivityLabel.json -func ExampleSQLPoolSensitivityLabelsClient_Delete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewSQLPoolSensitivityLabelsClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = client.Delete(ctx, - "myRG", - "myServer", - "myDatabase", - "dbo", - "myTable", - "myColumn", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolColumnSensitivityLabelGet.json -func ExampleSQLPoolSensitivityLabelsClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewSQLPoolSensitivityLabelsClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "myRG", - "myServer", - "myDatabase", - "dbo", - "myTable", - "myColumn", - armsynapse.SensitivityLabelSourceCurrent, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/RecommendedColumnSensitivityLabelEnable.json -func ExampleSQLPoolSensitivityLabelsClient_EnableRecommendation() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewSQLPoolSensitivityLabelsClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = client.EnableRecommendation(ctx, - "myRG", - "myServer", - "myDatabase", - "dbo", - "myTable", - "myColumn", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/RecommendedColumnSensitivityLabelDisable.json -func ExampleSQLPoolSensitivityLabelsClient_DisableRecommendation() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewSQLPoolSensitivityLabelsClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = client.DisableRecommendation(ctx, - "myRG", - "myServer", - "myDatabase", - "dbo", - "myTable", - "myColumn", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} diff --git a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpooltablecolumns_client_test.go b/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpooltablecolumns_client_test.go deleted file mode 100644 index 43941b7f631f..000000000000 --- a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpooltablecolumns_client_test.go +++ /dev/null @@ -1,46 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armsynapse_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListSqlPoolColumns.json -func ExampleSQLPoolTableColumnsClient_NewListByTableNamePager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewSQLPoolTableColumnsClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListByTableNamePager("myRG", - "serverName", - "myDatabase", - "dbo", - "table1", - &armsynapse.SQLPoolTableColumnsClientListByTableNameOptions{Filter: nil}) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} diff --git a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpooltables_client_test.go b/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpooltables_client_test.go deleted file mode 100644 index 87c4a913f8d3..000000000000 --- a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpooltables_client_test.go +++ /dev/null @@ -1,70 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armsynapse_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListSqlPoolTables.json -func ExampleSQLPoolTablesClient_NewListBySchemaPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewSQLPoolTablesClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListBySchemaPager("myRG", - "serverName", - "myDatabase", - "dbo", - &armsynapse.SQLPoolTablesClientListBySchemaOptions{Filter: nil}) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolTableGet.json -func ExampleSQLPoolTablesClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewSQLPoolTablesClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "myRG", - "serverName", - "myDatabase", - "dbo", - "table1", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} diff --git a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpooltransparentdataencryptions_client_test.go b/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpooltransparentdataencryptions_client_test.go deleted file mode 100644 index a131a794caad..000000000000 --- a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpooltransparentdataencryptions_client_test.go +++ /dev/null @@ -1,98 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armsynapse_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolTransparentDataEncryption.json -func ExampleSQLPoolTransparentDataEncryptionsClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewSQLPoolTransparentDataEncryptionsClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "sqlcrudtest-6852", - "sqlcrudtest-2080", - "sqlcrudtest-9187", - armsynapse.TransparentDataEncryptionNameCurrent, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateSqlPoolTransparentDataEncryption.json -func ExampleSQLPoolTransparentDataEncryptionsClient_CreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewSQLPoolTransparentDataEncryptionsClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.CreateOrUpdate(ctx, - "sqlcrudtest-6852", - "sqlcrudtest-2080", - "sqlcrudtest-9187", - armsynapse.TransparentDataEncryptionNameCurrent, - armsynapse.TransparentDataEncryption{ - Properties: &armsynapse.TransparentDataEncryptionProperties{ - Status: to.Ptr(armsynapse.TransparentDataEncryptionStatusEnabled), - }, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolTransparentDataEncryptionList.json -func ExampleSQLPoolTransparentDataEncryptionsClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewSQLPoolTransparentDataEncryptionsClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListPager("sqlcrudtest-6852", - "sqlcrudtest-2080", - "sqlcrudtest-9187", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} diff --git a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpoolvulnerabilityassessmentrulebaselines_client_test.go b/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpoolvulnerabilityassessmentrulebaselines_client_test.go deleted file mode 100644 index f0a7db5ccd37..000000000000 --- a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpoolvulnerabilityassessmentrulebaselines_client_test.go +++ /dev/null @@ -1,115 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armsynapse_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateSqlPoolVulnerabilityAssessmentRuleBaseline.json -func ExampleSQLPoolVulnerabilityAssessmentRuleBaselinesClient_CreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewSQLPoolVulnerabilityAssessmentRuleBaselinesClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.CreateOrUpdate(ctx, - "vulnerabilityaseessmenttest-4799", - "vulnerabilityaseessmenttest-6440", - "testdb", - armsynapse.VulnerabilityAssessmentNameDefault, - "VA1001", - armsynapse.VulnerabilityAssessmentPolicyBaselineNameDefault, - armsynapse.SQLPoolVulnerabilityAssessmentRuleBaseline{ - Properties: &armsynapse.SQLPoolVulnerabilityAssessmentRuleBaselineProperties{ - BaselineResults: []*armsynapse.SQLPoolVulnerabilityAssessmentRuleBaselineItem{ - { - Result: []*string{ - to.Ptr("userA"), - to.Ptr("SELECT")}, - }, - { - Result: []*string{ - to.Ptr("userB"), - to.Ptr("SELECT")}, - }, - { - Result: []*string{ - to.Ptr("userC"), - to.Ptr("SELECT"), - to.Ptr("tableId_4")}, - }}, - }, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeleteSqlPoolVulnerabilityAssessmentRuleBaseline.json -func ExampleSQLPoolVulnerabilityAssessmentRuleBaselinesClient_Delete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewSQLPoolVulnerabilityAssessmentRuleBaselinesClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = client.Delete(ctx, - "vulnerabilityaseessmenttest-4799", - "vulnerabilityaseessmenttest-6440", - "testdb", - armsynapse.VulnerabilityAssessmentNameDefault, - "VA1001", - armsynapse.VulnerabilityAssessmentPolicyBaselineNameDefault, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolVulnerabilityAssessmentRuleBaselineGet.json -func ExampleSQLPoolVulnerabilityAssessmentRuleBaselinesClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewSQLPoolVulnerabilityAssessmentRuleBaselinesClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "vulnerabilityaseessmenttest-4711", - "vulnerabilityaseessmenttest-6411", - "testdb", - armsynapse.VulnerabilityAssessmentNameDefault, - "VA1001", - armsynapse.VulnerabilityAssessmentPolicyBaselineNameMaster, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} diff --git a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpoolvulnerabilityassessments_client_test.go b/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpoolvulnerabilityassessments_client_test.go deleted file mode 100644 index ff3a56059731..000000000000 --- a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpoolvulnerabilityassessments_client_test.go +++ /dev/null @@ -1,129 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armsynapse_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListSqlPoolVulnerabilityAssessments.json -func ExampleSQLPoolVulnerabilityAssessmentsClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewSQLPoolVulnerabilityAssessmentsClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListPager("vulnerabilityaseessmenttest-4799", - "vulnerabilityaseessmenttest-6440", - "testdb", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolVulnerabilityAssessment.json -func ExampleSQLPoolVulnerabilityAssessmentsClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewSQLPoolVulnerabilityAssessmentsClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "vulnerabilityaseessmenttest-4799", - "vulnerabilityaseessmenttest-6440", - "testdb", - armsynapse.VulnerabilityAssessmentNameDefault, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateSqlPoolVulnerabilityAssessmentWithAllParameters.json -func ExampleSQLPoolVulnerabilityAssessmentsClient_CreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewSQLPoolVulnerabilityAssessmentsClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.CreateOrUpdate(ctx, - "vulnerabilityaseessmenttest-4799", - "vulnerabilityaseessmenttest-6440", - "testdb", - armsynapse.VulnerabilityAssessmentNameDefault, - armsynapse.SQLPoolVulnerabilityAssessment{ - Properties: &armsynapse.SQLPoolVulnerabilityAssessmentProperties{ - RecurringScans: &armsynapse.VulnerabilityAssessmentRecurringScansProperties{ - EmailSubscriptionAdmins: to.Ptr(true), - Emails: []*string{ - to.Ptr("email1@mail.com"), - to.Ptr("email2@mail.com")}, - IsEnabled: to.Ptr(true), - }, - StorageAccountAccessKey: to.Ptr("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"), - StorageContainerPath: to.Ptr("https://myStorage.blob.core.windows.net/vulnerability-assessment/"), - StorageContainerSasKey: to.Ptr("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"), - }, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeleteSqlPoolVulnerabilityAssessment.json -func ExampleSQLPoolVulnerabilityAssessmentsClient_Delete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewSQLPoolVulnerabilityAssessmentsClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = client.Delete(ctx, - "vulnerabilityaseessmenttest-4799", - "vulnerabilityaseessmenttest-6440", - "testdb", - armsynapse.VulnerabilityAssessmentNameDefault, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} diff --git a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpoolvulnerabilityassessmentscans_client_test.go b/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpoolvulnerabilityassessmentscans_client_test.go deleted file mode 100644 index 496930e45d52..000000000000 --- a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpoolvulnerabilityassessmentscans_client_test.go +++ /dev/null @@ -1,122 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armsynapse_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListSqlPoolVulnerabilityAssessmentScanRecords.json -func ExampleSQLPoolVulnerabilityAssessmentScansClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewSQLPoolVulnerabilityAssessmentScansClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListPager("vulnerabilityassessmenttest-4711", - "vulnerabilityassessmenttest-6411", - "testdb", - armsynapse.VulnerabilityAssessmentNameDefault, - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ExecuteSqlPoolVulnerabilityAssessmentScans.json -func ExampleSQLPoolVulnerabilityAssessmentScansClient_BeginInitiateScan() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewSQLPoolVulnerabilityAssessmentScansClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginInitiateScan(ctx, - "vulnerabilityassessmenttest-4711", - "vulnerabilityassessmenttest-6411", - "testdb", - armsynapse.VulnerabilityAssessmentNameDefault, - "scan01", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ExportSqlPoolVulnerabilityAssessmentScan.json -func ExampleSQLPoolVulnerabilityAssessmentScansClient_Export() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewSQLPoolVulnerabilityAssessmentScansClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Export(ctx, - "vulnerabilityassessmenttest-4799", - "vulnerabilityassessmenttest-6440", - "testdb", - armsynapse.VulnerabilityAssessmentNameDefault, - "scan001", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/SqlPoolVulnerabilityAssessmentScanRecordsGet.json -func ExampleSQLPoolVulnerabilityAssessmentScansClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewSQLPoolVulnerabilityAssessmentScansClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "vulnerabilityassessmenttest-4711", - "vulnerabilityassessmenttest-6411", - "testdb", - armsynapse.VulnerabilityAssessmentNameDefault, - "scan001", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} diff --git a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpoolworkloadclassifier_client_test.go b/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpoolworkloadclassifier_client_test.go deleted file mode 100644 index 4d43df98eb46..000000000000 --- a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpoolworkloadclassifier_client_test.go +++ /dev/null @@ -1,137 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armsynapse_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolWorkloadGroupWorkloadClassifier.json -func ExampleSQLPoolWorkloadClassifierClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewSQLPoolWorkloadClassifierClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "sqlcrudtest-6852", - "sqlcrudtest-2080", - "sqlcrudtest-9187", - "wlm_workloadgroup", - "wlm_classifier", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateSqlPoolWorkloadClassifierMax.json -func ExampleSQLPoolWorkloadClassifierClient_BeginCreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewSQLPoolWorkloadClassifierClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginCreateOrUpdate(ctx, - "sqlcrudtest-6852", - "sqlcrudtest-2080", - "sqlcrudtest-9187", - "wlm_workloadgroup", - "wlm_workloadclassifier", - armsynapse.WorkloadClassifier{ - Properties: &armsynapse.WorkloadClassifierProperties{ - Context: to.Ptr("test_context"), - EndTime: to.Ptr("14:00"), - Importance: to.Ptr("high"), - Label: to.Ptr("test_label"), - MemberName: to.Ptr("dbo"), - StartTime: to.Ptr("12:00"), - }, - }, - 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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeleteSqlPoolWorkloadGroupWorkloadClassifer.json -func ExampleSQLPoolWorkloadClassifierClient_BeginDelete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewSQLPoolWorkloadClassifierClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginDelete(ctx, - "sqlcrudtest-6852", - "sqlcrudtest-2080", - "sqlcrudtest-9187", - "wlm_workloadgroup", - "wlm_workloadclassifier", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolWorkloadGroupWorkloadClassifierList.json -func ExampleSQLPoolWorkloadClassifierClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewSQLPoolWorkloadClassifierClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListPager("sqlcrudtest-6852", - "sqlcrudtest-2080", - "sqlcrudtest-9187", - "wlm_workloadgroup", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} diff --git a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpoolworkloadgroup_client_test.go b/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpoolworkloadgroup_client_test.go deleted file mode 100644 index 52f53e144ae7..000000000000 --- a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_sqlpoolworkloadgroup_client_test.go +++ /dev/null @@ -1,133 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armsynapse_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolWorkloadGroup.json -func ExampleSQLPoolWorkloadGroupClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewSQLPoolWorkloadGroupClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "sqlcrudtest-6852", - "sqlcrudtest-2080", - "sqlcrudtest-9187", - "smallrc", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateSqlPoolWorkloadGroupMax.json -func ExampleSQLPoolWorkloadGroupClient_BeginCreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewSQLPoolWorkloadGroupClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginCreateOrUpdate(ctx, - "sqlcrudtest-6852", - "sqlcrudtest-2080", - "sqlcrudtest-9187", - "smallrc", - armsynapse.WorkloadGroup{ - Properties: &armsynapse.WorkloadGroupProperties{ - Importance: to.Ptr("normal"), - MaxResourcePercent: to.Ptr[int32](100), - MaxResourcePercentPerRequest: to.Ptr[float64](3), - MinResourcePercent: to.Ptr[int32](0), - MinResourcePercentPerRequest: to.Ptr[float64](3), - QueryExecutionTimeout: to.Ptr[int32](0), - }, - }, - 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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeleteSqlPoolWorkloadGroup.json -func ExampleSQLPoolWorkloadGroupClient_BeginDelete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewSQLPoolWorkloadGroupClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginDelete(ctx, - "sqlcrudtest-6852", - "sqlcrudtest-2080", - "sqlcrudtest-9187", - "wlm_workloadgroup", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetSqlPoolWorkloadGroupList.json -func ExampleSQLPoolWorkloadGroupClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewSQLPoolWorkloadGroupClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListPager("sqlcrudtest-6852", - "sqlcrudtest-2080", - "sqlcrudtest-9187", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} diff --git a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_workspaceaadadmins_client_test.go b/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_workspaceaadadmins_client_test.go deleted file mode 100644 index ec8cada145a4..000000000000 --- a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_workspaceaadadmins_client_test.go +++ /dev/null @@ -1,98 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armsynapse_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetWorkspaceAadAdmin.json -func ExampleWorkspaceAADAdminsClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewWorkspaceAADAdminsClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "resourceGroup1", - "workspace1", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateWorkspaceAadAdmin.json -func ExampleWorkspaceAADAdminsClient_BeginCreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewWorkspaceAADAdminsClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginCreateOrUpdate(ctx, - "resourceGroup1", - "workspace1", - armsynapse.WorkspaceAADAdminInfo{ - Properties: &armsynapse.AADAdminProperties{ - AdministratorType: to.Ptr("ActiveDirectory"), - Login: to.Ptr("bob@contoso.com"), - Sid: to.Ptr("c6b82b90-a647-49cb-8a62-0d2d3cb7ac7c"), - TenantID: to.Ptr("c6b82b90-a647-49cb-8a62-0d2d3cb7ac7c"), - }, - }, - 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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeleteWorkspaceAadAdmin.json -func ExampleWorkspaceAADAdminsClient_BeginDelete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewWorkspaceAADAdminsClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginDelete(ctx, - "resourceGroup1", - "workspace1", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} diff --git a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_workspacemanagedidentitysqlcontrolsettings_client_test.go b/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_workspacemanagedidentitysqlcontrolsettings_client_test.go deleted file mode 100644 index af29702c94b8..000000000000 --- a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_workspacemanagedidentitysqlcontrolsettings_client_test.go +++ /dev/null @@ -1,73 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armsynapse_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetManagedIdentitySqlControlSettings.json -func ExampleWorkspaceManagedIdentitySQLControlSettingsClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewWorkspaceManagedIdentitySQLControlSettingsClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "resourceGroup1", - "workspace1", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateManagedIdentitySqlControlSettings.json -func ExampleWorkspaceManagedIdentitySQLControlSettingsClient_BeginCreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewWorkspaceManagedIdentitySQLControlSettingsClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginCreateOrUpdate(ctx, - "resourceGroup1", - "workspace1", - armsynapse.ManagedIdentitySQLControlSettingsModel{ - Properties: &armsynapse.ManagedIdentitySQLControlSettingsModelProperties{ - GrantSQLControlToManagedIdentity: &armsynapse.ManagedIdentitySQLControlSettingsModelPropertiesGrantSQLControlToManagedIdentity{ - DesiredState: to.Ptr(armsynapse.ManagedIdentitySQLControlSettingsModelPropertiesGrantSQLControlToManagedIdentityDesiredStateEnabled), - }, - }, - }, - 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) - } - // TODO: use response item - _ = res -} diff --git a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_workspacemanagedsqlserverblobauditingpolicies_client_test.go b/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_workspacemanagedsqlserverblobauditingpolicies_client_test.go deleted file mode 100644 index 8aeec587253a..000000000000 --- a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_workspacemanagedsqlserverblobauditingpolicies_client_test.go +++ /dev/null @@ -1,110 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armsynapse_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetWorkspaceManagedSqlServerBlobAuditingSettings.json -func ExampleWorkspaceManagedSQLServerBlobAuditingPoliciesClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewWorkspaceManagedSQLServerBlobAuditingPoliciesClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "wsg-7398", - "testWorkspace", - armsynapse.BlobAuditingPolicyNameDefault, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateWorkspaceManagedSqlServerBlobAuditingSettingsWithAllParameters.json -func ExampleWorkspaceManagedSQLServerBlobAuditingPoliciesClient_BeginCreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewWorkspaceManagedSQLServerBlobAuditingPoliciesClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginCreateOrUpdate(ctx, - "wsg-7398", - "testWorkspace", - armsynapse.BlobAuditingPolicyNameDefault, - armsynapse.ServerBlobAuditingPolicy{ - Properties: &armsynapse.ServerBlobAuditingPolicyProperties{ - AuditActionsAndGroups: []*string{ - to.Ptr("SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP"), - to.Ptr("FAILED_DATABASE_AUTHENTICATION_GROUP"), - to.Ptr("BATCH_COMPLETED_GROUP")}, - IsAzureMonitorTargetEnabled: to.Ptr(true), - IsStorageSecondaryKeyInUse: to.Ptr(false), - QueueDelayMs: to.Ptr[int32](4000), - RetentionDays: to.Ptr[int32](6), - State: to.Ptr(armsynapse.BlobAuditingPolicyStateEnabled), - StorageAccountAccessKey: to.Ptr("sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3RSD=="), - StorageAccountSubscriptionID: to.Ptr("00000000-1234-0000-5678-000000000000"), - StorageEndpoint: to.Ptr("https://mystorage.blob.core.windows.net"), - }, - }, - 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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListWorkspaceManagedSqlServerBlobAuditingSettings.json -func ExampleWorkspaceManagedSQLServerBlobAuditingPoliciesClient_NewListByWorkspacePager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewWorkspaceManagedSQLServerBlobAuditingPoliciesClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListByWorkspacePager("wsg-7398", - "testWorkspace", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} diff --git a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_workspacemanagedsqlserverdedicatedsqlminimaltlssettings_client_test.go b/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_workspacemanagedsqlserverdedicatedsqlminimaltlssettings_client_test.go deleted file mode 100644 index 18e8f5102270..000000000000 --- a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_workspacemanagedsqlserverdedicatedsqlminimaltlssettings_client_test.go +++ /dev/null @@ -1,99 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armsynapse_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/UpdateWorkspaceManagedSqlServerDedicatedSQLminimalTlsSettings.json -func ExampleWorkspaceManagedSQLServerDedicatedSQLMinimalTLSSettingsClient_BeginUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewWorkspaceManagedSQLServerDedicatedSQLMinimalTLSSettingsClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginUpdate(ctx, - "workspace-6852", - "workspace-2080", - armsynapse.DedicatedSQLMinimalTLSSettingsNameDefault, - armsynapse.DedicatedSQLminimalTLSSettings{ - Properties: &armsynapse.DedicatedSQLminimalTLSSettingsProperties{ - MinimalTLSVersion: to.Ptr("1.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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetWorkspaceManagedSqlServerDedicatedSQLminimalTlsSettings.json -func ExampleWorkspaceManagedSQLServerDedicatedSQLMinimalTLSSettingsClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewWorkspaceManagedSQLServerDedicatedSQLMinimalTLSSettingsClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "workspace-6852", - "workspace-2080", - "default", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListWorkspaceManagedSqlServerDedicatedSQLminimalTlsSettings.json -func ExampleWorkspaceManagedSQLServerDedicatedSQLMinimalTLSSettingsClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewWorkspaceManagedSQLServerDedicatedSQLMinimalTLSSettingsClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListPager("workspace-6852", - "workspace-2080", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} diff --git a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_workspacemanagedsqlserverencryptionprotector_client_test.go b/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_workspacemanagedsqlserverencryptionprotector_client_test.go deleted file mode 100644 index efcab85869b6..000000000000 --- a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_workspacemanagedsqlserverencryptionprotector_client_test.go +++ /dev/null @@ -1,125 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armsynapse_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetWorkspaceManagedSqlServerEncryptionProtector.json -func ExampleWorkspaceManagedSQLServerEncryptionProtectorClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewWorkspaceManagedSQLServerEncryptionProtectorClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "wsg-7398", - "testWorkspace", - armsynapse.EncryptionProtectorNameCurrent, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/WorkspaceManagedSqlServerEncryptionProtectorCreateOrUpdateKeyVault.json -func ExampleWorkspaceManagedSQLServerEncryptionProtectorClient_BeginCreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewWorkspaceManagedSQLServerEncryptionProtectorClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginCreateOrUpdate(ctx, - "wsg-7398", - "testWorkspace", - armsynapse.EncryptionProtectorNameCurrent, - armsynapse.EncryptionProtector{ - Properties: &armsynapse.EncryptionProtectorProperties{ - ServerKeyName: to.Ptr("someVault_someKey_01234567890123456789012345678901"), - ServerKeyType: to.Ptr(armsynapse.ServerKeyTypeAzureKeyVault), - }, - }, - 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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetWorkspaceManagedSqlServerEncryptionProtectorList.json -func ExampleWorkspaceManagedSQLServerEncryptionProtectorClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewWorkspaceManagedSQLServerEncryptionProtectorClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListPager("wsg-7398", - "testWorkspace", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/WorkspaceManagedSqlServerEncryptionProtectorRevalidate.json -func ExampleWorkspaceManagedSQLServerEncryptionProtectorClient_BeginRevalidate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewWorkspaceManagedSQLServerEncryptionProtectorClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginRevalidate(ctx, - "wsg-7398", - "testWorkspace", - armsynapse.EncryptionProtectorNameCurrent, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} diff --git a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_workspacemanagedsqlserverextendedblobauditingpolicies_client_test.go b/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_workspacemanagedsqlserverextendedblobauditingpolicies_client_test.go deleted file mode 100644 index 7468578ea007..000000000000 --- a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_workspacemanagedsqlserverextendedblobauditingpolicies_client_test.go +++ /dev/null @@ -1,110 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armsynapse_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetWorkspaceManagedSqlExtendedServerBlobAuditingSettings.json -func ExampleWorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewWorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "wsg-7398", - "testWorkspace", - armsynapse.BlobAuditingPolicyNameDefault, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateWorkspaceManagedSqlServerExtendedBlobAuditingSettingsWithAllParameters.json -func ExampleWorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClient_BeginCreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewWorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginCreateOrUpdate(ctx, - "wsg-7398", - "testWorkspace", - armsynapse.BlobAuditingPolicyNameDefault, - armsynapse.ExtendedServerBlobAuditingPolicy{ - Properties: &armsynapse.ExtendedServerBlobAuditingPolicyProperties{ - AuditActionsAndGroups: []*string{ - to.Ptr("SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP"), - to.Ptr("FAILED_DATABASE_AUTHENTICATION_GROUP"), - to.Ptr("BATCH_COMPLETED_GROUP")}, - IsAzureMonitorTargetEnabled: to.Ptr(true), - IsStorageSecondaryKeyInUse: to.Ptr(false), - PredicateExpression: to.Ptr("object_name = 'SensitiveData'"), - RetentionDays: to.Ptr[int32](6), - State: to.Ptr(armsynapse.BlobAuditingPolicyStateEnabled), - StorageAccountAccessKey: to.Ptr("sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3RSD=="), - StorageAccountSubscriptionID: to.Ptr("00000000-1234-0000-5678-000000000000"), - StorageEndpoint: to.Ptr("https://mystorage.blob.core.windows.net"), - }, - }, - 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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListWorkspaceManagedSqlServerExtendedBlobAuditingSettings.json -func ExampleWorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClient_NewListByWorkspacePager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewWorkspaceManagedSQLServerExtendedBlobAuditingPoliciesClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListByWorkspacePager("wsg-7398", - "testWorkspace", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} diff --git a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_workspacemanagedsqlserverrecoverablesqlpools_client_test.go b/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_workspacemanagedsqlserverrecoverablesqlpools_client_test.go deleted file mode 100644 index dd2d47b6e80e..000000000000 --- a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_workspacemanagedsqlserverrecoverablesqlpools_client_test.go +++ /dev/null @@ -1,66 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armsynapse_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListWorkspaceManagedSqlServerRecoverableSqlPool.json -func ExampleWorkspaceManagedSQLServerRecoverableSQLPoolsClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewWorkspaceManagedSQLServerRecoverableSQLPoolsClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListPager("wsg-7398", - "testWorkspace", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetWorkspaceManagedSqlServerRecoverableSqlPool.json -func ExampleWorkspaceManagedSQLServerRecoverableSQLPoolsClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewWorkspaceManagedSQLServerRecoverableSQLPoolsClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "wsg-7398", - "testWorkspace", - "recoverableSqlpools-1235", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} diff --git a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_workspacemanagedsqlserversecurityalertpolicy_client_test.go b/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_workspacemanagedsqlserversecurityalertpolicy_client_test.go deleted file mode 100644 index 4c6ad9c740f0..000000000000 --- a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_workspacemanagedsqlserversecurityalertpolicy_client_test.go +++ /dev/null @@ -1,108 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armsynapse_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetWorkspaceManagedSqlServerSecurityAlertPolicy.json -func ExampleWorkspaceManagedSQLServerSecurityAlertPolicyClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewWorkspaceManagedSQLServerSecurityAlertPolicyClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "wsg-7398", - "testWorkspace", - armsynapse.SecurityAlertPolicyNameAutoGeneratedDefault, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/WorkspaceManagedSqlServerSecurityAlertWithAllParameters.json -func ExampleWorkspaceManagedSQLServerSecurityAlertPolicyClient_BeginCreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewWorkspaceManagedSQLServerSecurityAlertPolicyClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginCreateOrUpdate(ctx, - "wsg-7398", - "testWorkspace", - armsynapse.SecurityAlertPolicyNameAutoGeneratedDefault, - armsynapse.ServerSecurityAlertPolicy{ - Properties: &armsynapse.ServerSecurityAlertPolicyProperties{ - DisabledAlerts: []*string{ - to.Ptr("Access_Anomaly"), - to.Ptr("Usage_Anomaly")}, - EmailAccountAdmins: to.Ptr(true), - EmailAddresses: []*string{ - to.Ptr("testSecurityAlert@microsoft.com")}, - RetentionDays: to.Ptr[int32](5), - State: to.Ptr(armsynapse.SecurityAlertPolicyStateEnabled), - StorageAccountAccessKey: to.Ptr("sdlfkjabc+sdlfkjsdlkfsjdfLDKFTERLKFDFKLjsdfksjdflsdkfD2342309432849328476458/3RSD=="), - StorageEndpoint: to.Ptr("https://mystorage.blob.core.windows.net"), - }, - }, - 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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListWorkspaceManagedSqlServerSecurityAlertPolicies.json -func ExampleWorkspaceManagedSQLServerSecurityAlertPolicyClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewWorkspaceManagedSQLServerSecurityAlertPolicyClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListPager("wsg-7398", - "testWorkspace", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} diff --git a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_workspacemanagedsqlserverusages_client_test.go b/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_workspacemanagedsqlserverusages_client_test.go deleted file mode 100644 index ae1dd4a79fd2..000000000000 --- a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_workspacemanagedsqlserverusages_client_test.go +++ /dev/null @@ -1,43 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armsynapse_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListWorkspaceManagedSqlServerUsages.json -func ExampleWorkspaceManagedSQLServerUsagesClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewWorkspaceManagedSQLServerUsagesClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListPager("wsg-7398", - "testWorkspace", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} diff --git a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_workspacemanagedsqlservervulnerabilityassessments_client_test.go b/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_workspacemanagedsqlservervulnerabilityassessments_client_test.go deleted file mode 100644 index 5212684aff48..000000000000 --- a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_workspacemanagedsqlservervulnerabilityassessments_client_test.go +++ /dev/null @@ -1,125 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armsynapse_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetWorkspaceManagedSqlServerVulnerabilityAssessment.json -func ExampleWorkspaceManagedSQLServerVulnerabilityAssessmentsClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewWorkspaceManagedSQLServerVulnerabilityAssessmentsClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "wsg-7398", - "testWorkspace", - armsynapse.VulnerabilityAssessmentNameDefault, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/PutWorkspaceManagedSqlServerVulnerabilityAssessmentWithAllParameters.json -func ExampleWorkspaceManagedSQLServerVulnerabilityAssessmentsClient_CreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewWorkspaceManagedSQLServerVulnerabilityAssessmentsClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.CreateOrUpdate(ctx, - "wsg-7398", - "testWorkspace", - armsynapse.VulnerabilityAssessmentNameDefault, - armsynapse.ServerVulnerabilityAssessment{ - Properties: &armsynapse.ServerVulnerabilityAssessmentProperties{ - RecurringScans: &armsynapse.VulnerabilityAssessmentRecurringScansProperties{ - EmailSubscriptionAdmins: to.Ptr(true), - Emails: []*string{ - to.Ptr("email1@mail.com"), - to.Ptr("email2@mail.com")}, - IsEnabled: to.Ptr(true), - }, - StorageAccountAccessKey: to.Ptr("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"), - StorageContainerPath: to.Ptr("https://myStorage.blob.core.windows.net/vulnerability-assessment/"), - StorageContainerSasKey: to.Ptr("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"), - }, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeleteWorkspaceManagedSqlServerVulnerabilityAssessment.json -func ExampleWorkspaceManagedSQLServerVulnerabilityAssessmentsClient_Delete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewWorkspaceManagedSQLServerVulnerabilityAssessmentsClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = client.Delete(ctx, - "wsg-7398", - "testWorkspace", - armsynapse.VulnerabilityAssessmentNameDefault, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListWorkspaceManagedSqlServerVulnerabilityAssessmentPolicies.json -func ExampleWorkspaceManagedSQLServerVulnerabilityAssessmentsClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewWorkspaceManagedSQLServerVulnerabilityAssessmentsClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListPager("wsg-7398", - "testWorkspace", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} diff --git a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_workspaces_client_test.go b/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_workspaces_client_test.go deleted file mode 100644 index 12cf79448ae6..000000000000 --- a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_workspaces_client_test.go +++ /dev/null @@ -1,261 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armsynapse_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListWorkspacesInResourceGroup.json -func ExampleWorkspacesClient_NewListByResourceGroupPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewWorkspacesClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListByResourceGroupPager("resourceGroup1", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetWorkspace.json -func ExampleWorkspacesClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewWorkspacesClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "resourceGroup1", - "workspace1", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/UpdateWorkspace.json -func ExampleWorkspacesClient_BeginUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewWorkspacesClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginUpdate(ctx, - "resourceGroup1", - "workspace1", - armsynapse.WorkspacePatchInfo{ - Identity: &armsynapse.ManagedIdentity{ - Type: to.Ptr(armsynapse.ResourceIdentityTypeSystemAssigned), - }, - Properties: &armsynapse.WorkspacePatchProperties{ - Encryption: &armsynapse.EncryptionDetails{ - Cmk: &armsynapse.CustomerManagedKeyDetails{ - Key: &armsynapse.WorkspaceKeyDetails{ - Name: to.Ptr("default"), - KeyVaultURL: to.Ptr("https://vault.azure.net/keys/key1"), - }, - }, - }, - ManagedVirtualNetworkSettings: &armsynapse.ManagedVirtualNetworkSettings{ - AllowedAADTenantIDsForLinking: []*string{ - to.Ptr("740239CE-A25B-485B-86A0-262F29F6EBDB")}, - LinkedAccessCheckOnTargetResource: to.Ptr(false), - PreventDataExfiltration: to.Ptr(false), - }, - PublicNetworkAccess: to.Ptr(armsynapse.WorkspacePublicNetworkAccessEnabled), - PurviewConfiguration: &armsynapse.PurviewConfiguration{ - PurviewResourceID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup1/providers/Microsoft.ProjectPurview/accounts/accountname1"), - }, - SQLAdministratorLoginPassword: to.Ptr("password"), - WorkspaceRepositoryConfiguration: &armsynapse.WorkspaceRepositoryConfiguration{ - Type: to.Ptr("FactoryGitHubConfiguration"), - AccountName: to.Ptr("adifferentacount"), - CollaborationBranch: to.Ptr("master"), - HostName: to.Ptr(""), - ProjectName: to.Ptr("myproject"), - RepositoryName: to.Ptr("myrepository"), - RootFolder: to.Ptr("/"), - }, - }, - Tags: map[string]*string{ - "key": to.Ptr("value"), - }, - }, - 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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateWorkspace.json -func ExampleWorkspacesClient_BeginCreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewWorkspacesClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginCreateOrUpdate(ctx, - "resourceGroup1", - "workspace1", - armsynapse.Workspace{ - Location: to.Ptr("East US"), - Tags: map[string]*string{ - "key": to.Ptr("value"), - }, - Identity: &armsynapse.ManagedIdentity{ - Type: to.Ptr(armsynapse.ResourceIdentityTypeSystemAssignedUserAssigned), - UserAssignedIdentities: map[string]*armsynapse.UserAssignedManagedIdentity{ - "/subscriptions/00000000-1111-2222-3333-444444444444/resourcegroups/resourceGroup1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uami1": {}, - }, - }, - Properties: &armsynapse.WorkspaceProperties{ - CspWorkspaceAdminProperties: &armsynapse.CspWorkspaceAdminProperties{ - InitialWorkspaceAdminObjectID: to.Ptr("6c20646f-8050-49ec-b3b1-80a0e58e454d"), - }, - DefaultDataLakeStorage: &armsynapse.DataLakeStorageAccountDetails{ - AccountURL: to.Ptr("https://accountname.dfs.core.windows.net"), - Filesystem: to.Ptr("default"), - }, - Encryption: &armsynapse.EncryptionDetails{ - Cmk: &armsynapse.CustomerManagedKeyDetails{ - KekIdentity: &armsynapse.KekIdentityProperties{ - UseSystemAssignedIdentity: false, - UserAssignedIdentity: to.Ptr("/subscriptions/b64d7b94-73e7-4d36-94b2-7764ea3fd74a/resourcegroups/SynapseCI/providers/Microsoft.ManagedIdentity/userAssignedIdentities/uami1"), - }, - Key: &armsynapse.WorkspaceKeyDetails{ - Name: to.Ptr("default"), - KeyVaultURL: to.Ptr("https://vault.azure.net/keys/key1"), - }, - }, - }, - ManagedResourceGroupName: to.Ptr("workspaceManagedResourceGroupUnique"), - ManagedVirtualNetwork: to.Ptr("default"), - ManagedVirtualNetworkSettings: &armsynapse.ManagedVirtualNetworkSettings{ - AllowedAADTenantIDsForLinking: []*string{ - to.Ptr("740239CE-A25B-485B-86A0-262F29F6EBDB")}, - LinkedAccessCheckOnTargetResource: to.Ptr(false), - PreventDataExfiltration: to.Ptr(false), - }, - PublicNetworkAccess: to.Ptr(armsynapse.WorkspacePublicNetworkAccessEnabled), - PurviewConfiguration: &armsynapse.PurviewConfiguration{ - PurviewResourceID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup1/providers/Microsoft.ProjectPurview/accounts/accountname1"), - }, - SQLAdministratorLogin: to.Ptr("login"), - SQLAdministratorLoginPassword: to.Ptr("password"), - WorkspaceRepositoryConfiguration: &armsynapse.WorkspaceRepositoryConfiguration{ - Type: to.Ptr("FactoryGitHubConfiguration"), - AccountName: to.Ptr("mygithubaccount"), - CollaborationBranch: to.Ptr("master"), - HostName: to.Ptr(""), - ProjectName: to.Ptr("myproject"), - RepositoryName: to.Ptr("myrepository"), - RootFolder: to.Ptr("/"), - }, - }, - }, - 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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeleteWorkspace.json -func ExampleWorkspacesClient_BeginDelete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewWorkspacesClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginDelete(ctx, - "resourceGroup1", - "workspace1", - 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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListWorkspacesInSubscription.json -func ExampleWorkspacesClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewWorkspacesClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListPager(nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} diff --git a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_workspacesqlaadadmins_client_test.go b/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_workspacesqlaadadmins_client_test.go deleted file mode 100644 index a2928f2f528f..000000000000 --- a/sdk/resourcemanager/synapse/armsynapse/ze_generated_example_workspacesqlaadadmins_client_test.go +++ /dev/null @@ -1,98 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armsynapse_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/synapse/armsynapse" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetWorkspaceAadAdmin.json -func ExampleWorkspaceSQLAADAdminsClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewWorkspaceSQLAADAdminsClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "resourceGroup1", - "workspace1", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/CreateOrUpdateWorkspaceAadAdmin.json -func ExampleWorkspaceSQLAADAdminsClient_BeginCreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewWorkspaceSQLAADAdminsClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginCreateOrUpdate(ctx, - "resourceGroup1", - "workspace1", - armsynapse.WorkspaceAADAdminInfo{ - Properties: &armsynapse.AADAdminProperties{ - AdministratorType: to.Ptr("ActiveDirectory"), - Login: to.Ptr("bob@contoso.com"), - Sid: to.Ptr("c6b82b90-a647-49cb-8a62-0d2d3cb7ac7c"), - TenantID: to.Ptr("c6b82b90-a647-49cb-8a62-0d2d3cb7ac7c"), - }, - }, - 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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/DeleteWorkspaceAadAdmin.json -func ExampleWorkspaceSQLAADAdminsClient_BeginDelete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armsynapse.NewWorkspaceSQLAADAdminsClient("00000000-1111-2222-3333-444444444444", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginDelete(ctx, - "resourceGroup1", - "workspace1", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} diff --git a/sdk/resourcemanager/synapse/armsynapse/zz_generated_models_serde.go b/sdk/resourcemanager/synapse/armsynapse/zz_generated_models_serde.go deleted file mode 100644 index 497b6df5d0bf..000000000000 --- a/sdk/resourcemanager/synapse/armsynapse/zz_generated_models_serde.go +++ /dev/null @@ -1,3312 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armsynapse - -import ( - "encoding/json" - "fmt" - "github.com/Azure/azure-sdk-for-go/sdk/azcore" - "reflect" -) - -// MarshalJSON implements the json.Marshaller interface for type AttachedDatabaseConfigurationProperties. -func (a AttachedDatabaseConfigurationProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "attachedDatabaseNames", a.AttachedDatabaseNames) - populate(objectMap, "databaseName", a.DatabaseName) - populate(objectMap, "defaultPrincipalsModificationKind", a.DefaultPrincipalsModificationKind) - populate(objectMap, "clusterResourceId", a.KustoPoolResourceID) - populate(objectMap, "provisioningState", a.ProvisioningState) - populate(objectMap, "tableLevelSharingProperties", a.TableLevelSharingProperties) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type AzureADOnlyAuthenticationProperties. -func (a AzureADOnlyAuthenticationProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "azureADOnlyAuthentication", a.AzureADOnlyAuthentication) - populateTimeRFC3339(objectMap, "creationDate", a.CreationDate) - populate(objectMap, "state", a.State) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type AzureADOnlyAuthenticationProperties. -func (a *AzureADOnlyAuthenticationProperties) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", a, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "azureADOnlyAuthentication": - err = unpopulate(val, "AzureADOnlyAuthentication", &a.AzureADOnlyAuthentication) - delete(rawMsg, key) - case "creationDate": - err = unpopulateTimeRFC3339(val, "CreationDate", &a.CreationDate) - delete(rawMsg, key) - case "state": - err = unpopulate(val, "State", &a.State) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", a, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type BigDataPoolPatchInfo. -func (b BigDataPoolPatchInfo) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "tags", b.Tags) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type BigDataPoolResourceInfo. -func (b BigDataPoolResourceInfo) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", b.ID) - populate(objectMap, "location", b.Location) - populate(objectMap, "name", b.Name) - populate(objectMap, "properties", b.Properties) - populate(objectMap, "tags", b.Tags) - populate(objectMap, "type", b.Type) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type BigDataPoolResourceProperties. -func (b BigDataPoolResourceProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "autoPause", b.AutoPause) - populate(objectMap, "autoScale", b.AutoScale) - populate(objectMap, "cacheSize", b.CacheSize) - populateTimeRFC3339(objectMap, "creationDate", b.CreationDate) - populate(objectMap, "customLibraries", b.CustomLibraries) - populate(objectMap, "defaultSparkLogFolder", b.DefaultSparkLogFolder) - populate(objectMap, "dynamicExecutorAllocation", b.DynamicExecutorAllocation) - populate(objectMap, "isComputeIsolationEnabled", b.IsComputeIsolationEnabled) - populateTimeRFC3339(objectMap, "lastSucceededTimestamp", b.LastSucceededTimestamp) - populate(objectMap, "libraryRequirements", b.LibraryRequirements) - populate(objectMap, "nodeCount", b.NodeCount) - populate(objectMap, "nodeSize", b.NodeSize) - populate(objectMap, "nodeSizeFamily", b.NodeSizeFamily) - populate(objectMap, "provisioningState", b.ProvisioningState) - populate(objectMap, "sessionLevelPackagesEnabled", b.SessionLevelPackagesEnabled) - populate(objectMap, "sparkConfigProperties", b.SparkConfigProperties) - populate(objectMap, "sparkEventsFolder", b.SparkEventsFolder) - populate(objectMap, "sparkVersion", b.SparkVersion) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type BigDataPoolResourceProperties. -func (b *BigDataPoolResourceProperties) 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", b, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "autoPause": - err = unpopulate(val, "AutoPause", &b.AutoPause) - delete(rawMsg, key) - case "autoScale": - err = unpopulate(val, "AutoScale", &b.AutoScale) - delete(rawMsg, key) - case "cacheSize": - err = unpopulate(val, "CacheSize", &b.CacheSize) - delete(rawMsg, key) - case "creationDate": - err = unpopulateTimeRFC3339(val, "CreationDate", &b.CreationDate) - delete(rawMsg, key) - case "customLibraries": - err = unpopulate(val, "CustomLibraries", &b.CustomLibraries) - delete(rawMsg, key) - case "defaultSparkLogFolder": - err = unpopulate(val, "DefaultSparkLogFolder", &b.DefaultSparkLogFolder) - delete(rawMsg, key) - case "dynamicExecutorAllocation": - err = unpopulate(val, "DynamicExecutorAllocation", &b.DynamicExecutorAllocation) - delete(rawMsg, key) - case "isComputeIsolationEnabled": - err = unpopulate(val, "IsComputeIsolationEnabled", &b.IsComputeIsolationEnabled) - delete(rawMsg, key) - case "lastSucceededTimestamp": - err = unpopulateTimeRFC3339(val, "LastSucceededTimestamp", &b.LastSucceededTimestamp) - delete(rawMsg, key) - case "libraryRequirements": - err = unpopulate(val, "LibraryRequirements", &b.LibraryRequirements) - delete(rawMsg, key) - case "nodeCount": - err = unpopulate(val, "NodeCount", &b.NodeCount) - delete(rawMsg, key) - case "nodeSize": - err = unpopulate(val, "NodeSize", &b.NodeSize) - delete(rawMsg, key) - case "nodeSizeFamily": - err = unpopulate(val, "NodeSizeFamily", &b.NodeSizeFamily) - delete(rawMsg, key) - case "provisioningState": - err = unpopulate(val, "ProvisioningState", &b.ProvisioningState) - delete(rawMsg, key) - case "sessionLevelPackagesEnabled": - err = unpopulate(val, "SessionLevelPackagesEnabled", &b.SessionLevelPackagesEnabled) - delete(rawMsg, key) - case "sparkConfigProperties": - err = unpopulate(val, "SparkConfigProperties", &b.SparkConfigProperties) - delete(rawMsg, key) - case "sparkEventsFolder": - err = unpopulate(val, "SparkEventsFolder", &b.SparkEventsFolder) - delete(rawMsg, key) - case "sparkVersion": - err = unpopulate(val, "SparkVersion", &b.SparkVersion) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", b, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type CmdkeySetup. -func (c CmdkeySetup) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - objectMap["type"] = "CmdkeySetup" - populate(objectMap, "typeProperties", c.TypeProperties) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type CmdkeySetup. -func (c *CmdkeySetup) 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 "type": - err = unpopulate(val, "Type", &c.Type) - delete(rawMsg, key) - case "typeProperties": - err = unpopulate(val, "TypeProperties", &c.TypeProperties) - 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 CmdkeySetupTypeProperties. -func (c CmdkeySetupTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "password", c.Password) - populate(objectMap, "targetName", &c.TargetName) - populate(objectMap, "userName", &c.UserName) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type CmdkeySetupTypeProperties. -func (c *CmdkeySetupTypeProperties) 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 "password": - c.Password, err = unmarshalSecretBaseClassification(val) - delete(rawMsg, key) - case "targetName": - err = unpopulate(val, "TargetName", &c.TargetName) - delete(rawMsg, key) - case "userName": - err = unpopulate(val, "UserName", &c.UserName) - 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 ComponentSetup. -func (c ComponentSetup) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - objectMap["type"] = "ComponentSetup" - populate(objectMap, "typeProperties", c.TypeProperties) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type ComponentSetup. -func (c *ComponentSetup) 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 "type": - err = unpopulate(val, "Type", &c.Type) - delete(rawMsg, key) - case "typeProperties": - err = unpopulate(val, "TypeProperties", &c.TypeProperties) - 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 DataConnection. -func (d DataConnection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", d.ID) - objectMap["kind"] = d.Kind - populate(objectMap, "location", d.Location) - populate(objectMap, "name", d.Name) - populate(objectMap, "systemData", d.SystemData) - populate(objectMap, "type", d.Type) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type DataConnectionListResult. -func (d *DataConnectionListResult) 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", d, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "value": - d.Value, err = unmarshalDataConnectionClassificationArray(val) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", d, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type DataConnectionValidation. -func (d DataConnectionValidation) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "dataConnectionName", d.DataConnectionName) - populate(objectMap, "properties", d.Properties) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type DataConnectionValidation. -func (d *DataConnectionValidation) 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", d, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "dataConnectionName": - err = unpopulate(val, "DataConnectionName", &d.DataConnectionName) - delete(rawMsg, key) - case "properties": - d.Properties, err = unmarshalDataConnectionClassification(val) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", d, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type Database. -func (d Database) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", d.ID) - objectMap["kind"] = d.Kind - populate(objectMap, "location", d.Location) - populate(objectMap, "name", d.Name) - populate(objectMap, "systemData", d.SystemData) - populate(objectMap, "type", d.Type) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type DatabaseListResult. -func (d *DatabaseListResult) 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", d, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "value": - d.Value, err = unmarshalDatabaseClassificationArray(val) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", d, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type EnvironmentVariableSetup. -func (e EnvironmentVariableSetup) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - objectMap["type"] = "EnvironmentVariableSetup" - populate(objectMap, "typeProperties", e.TypeProperties) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type EnvironmentVariableSetup. -func (e *EnvironmentVariableSetup) 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 "type": - err = unpopulate(val, "Type", &e.Type) - delete(rawMsg, key) - case "typeProperties": - err = unpopulate(val, "TypeProperties", &e.TypeProperties) - 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 EventGridDataConnection. -func (e EventGridDataConnection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", e.ID) - objectMap["kind"] = DataConnectionKindEventGrid - populate(objectMap, "location", e.Location) - populate(objectMap, "name", e.Name) - populate(objectMap, "properties", e.Properties) - populate(objectMap, "systemData", e.SystemData) - populate(objectMap, "type", e.Type) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type EventGridDataConnection. -func (e *EventGridDataConnection) 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 "id": - err = unpopulate(val, "ID", &e.ID) - delete(rawMsg, key) - case "kind": - err = unpopulate(val, "Kind", &e.Kind) - delete(rawMsg, key) - case "location": - err = unpopulate(val, "Location", &e.Location) - delete(rawMsg, key) - case "name": - err = unpopulate(val, "Name", &e.Name) - delete(rawMsg, key) - case "properties": - err = unpopulate(val, "Properties", &e.Properties) - delete(rawMsg, key) - case "systemData": - err = unpopulate(val, "SystemData", &e.SystemData) - delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &e.Type) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", e, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type EventHubConnectionProperties. -func (e EventHubConnectionProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "compression", e.Compression) - populate(objectMap, "consumerGroup", e.ConsumerGroup) - populate(objectMap, "dataFormat", e.DataFormat) - populate(objectMap, "eventHubResourceId", e.EventHubResourceID) - populate(objectMap, "eventSystemProperties", e.EventSystemProperties) - populate(objectMap, "managedIdentityResourceId", e.ManagedIdentityResourceID) - populate(objectMap, "mappingRuleName", e.MappingRuleName) - populate(objectMap, "provisioningState", e.ProvisioningState) - populate(objectMap, "tableName", e.TableName) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type EventHubDataConnection. -func (e EventHubDataConnection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", e.ID) - objectMap["kind"] = DataConnectionKindEventHub - populate(objectMap, "location", e.Location) - populate(objectMap, "name", e.Name) - populate(objectMap, "properties", e.Properties) - populate(objectMap, "systemData", e.SystemData) - populate(objectMap, "type", e.Type) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type EventHubDataConnection. -func (e *EventHubDataConnection) 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 "id": - err = unpopulate(val, "ID", &e.ID) - delete(rawMsg, key) - case "kind": - err = unpopulate(val, "Kind", &e.Kind) - delete(rawMsg, key) - case "location": - err = unpopulate(val, "Location", &e.Location) - delete(rawMsg, key) - case "name": - err = unpopulate(val, "Name", &e.Name) - delete(rawMsg, key) - case "properties": - err = unpopulate(val, "Properties", &e.Properties) - delete(rawMsg, key) - case "systemData": - err = unpopulate(val, "SystemData", &e.SystemData) - delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &e.Type) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", e, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type ExtendedSQLPoolBlobAuditingPolicyProperties. -func (e ExtendedSQLPoolBlobAuditingPolicyProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "auditActionsAndGroups", e.AuditActionsAndGroups) - populate(objectMap, "isAzureMonitorTargetEnabled", e.IsAzureMonitorTargetEnabled) - populate(objectMap, "isStorageSecondaryKeyInUse", e.IsStorageSecondaryKeyInUse) - populate(objectMap, "predicateExpression", e.PredicateExpression) - populate(objectMap, "queueDelayMs", e.QueueDelayMs) - populate(objectMap, "retentionDays", e.RetentionDays) - populate(objectMap, "state", e.State) - populate(objectMap, "storageAccountAccessKey", e.StorageAccountAccessKey) - populate(objectMap, "storageAccountSubscriptionId", e.StorageAccountSubscriptionID) - populate(objectMap, "storageEndpoint", e.StorageEndpoint) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type ExtendedServerBlobAuditingPolicyProperties. -func (e ExtendedServerBlobAuditingPolicyProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "auditActionsAndGroups", e.AuditActionsAndGroups) - populate(objectMap, "isAzureMonitorTargetEnabled", e.IsAzureMonitorTargetEnabled) - populate(objectMap, "isDevopsAuditEnabled", e.IsDevopsAuditEnabled) - populate(objectMap, "isStorageSecondaryKeyInUse", e.IsStorageSecondaryKeyInUse) - populate(objectMap, "predicateExpression", e.PredicateExpression) - populate(objectMap, "queueDelayMs", e.QueueDelayMs) - populate(objectMap, "retentionDays", e.RetentionDays) - populate(objectMap, "state", e.State) - populate(objectMap, "storageAccountAccessKey", e.StorageAccountAccessKey) - populate(objectMap, "storageAccountSubscriptionId", e.StorageAccountSubscriptionID) - populate(objectMap, "storageEndpoint", e.StorageEndpoint) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type IntegrationRuntime. -func (i IntegrationRuntime) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "description", i.Description) - objectMap["type"] = i.Type - if i.AdditionalProperties != nil { - for key, val := range i.AdditionalProperties { - objectMap[key] = val - } - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntime. -func (i *IntegrationRuntime) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", i, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "description": - err = unpopulate(val, "Description", &i.Description) - delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &i.Type) - delete(rawMsg, key) - default: - if i.AdditionalProperties == nil { - i.AdditionalProperties = map[string]interface{}{} - } - if val != nil { - var aux interface{} - err = json.Unmarshal(val, &aux) - i.AdditionalProperties[key] = aux - } - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", i, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeComputeProperties. -func (i IntegrationRuntimeComputeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "dataFlowProperties", i.DataFlowProperties) - populate(objectMap, "location", i.Location) - populate(objectMap, "maxParallelExecutionsPerNode", i.MaxParallelExecutionsPerNode) - populate(objectMap, "nodeSize", i.NodeSize) - populate(objectMap, "numberOfNodes", i.NumberOfNodes) - populate(objectMap, "vNetProperties", i.VNetProperties) - if i.AdditionalProperties != nil { - for key, val := range i.AdditionalProperties { - objectMap[key] = val - } - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntimeComputeProperties. -func (i *IntegrationRuntimeComputeProperties) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", i, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "dataFlowProperties": - err = unpopulate(val, "DataFlowProperties", &i.DataFlowProperties) - delete(rawMsg, key) - case "location": - err = unpopulate(val, "Location", &i.Location) - delete(rawMsg, key) - case "maxParallelExecutionsPerNode": - err = unpopulate(val, "MaxParallelExecutionsPerNode", &i.MaxParallelExecutionsPerNode) - delete(rawMsg, key) - case "nodeSize": - err = unpopulate(val, "NodeSize", &i.NodeSize) - delete(rawMsg, key) - case "numberOfNodes": - err = unpopulate(val, "NumberOfNodes", &i.NumberOfNodes) - delete(rawMsg, key) - case "vNetProperties": - err = unpopulate(val, "VNetProperties", &i.VNetProperties) - delete(rawMsg, key) - default: - if i.AdditionalProperties == nil { - i.AdditionalProperties = map[string]interface{}{} - } - if val != nil { - var aux interface{} - err = json.Unmarshal(val, &aux) - i.AdditionalProperties[key] = aux - } - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", i, err) - } - } - return nil -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntimeConnectionInfo. -func (i *IntegrationRuntimeConnectionInfo) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", i, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "hostServiceUri": - err = unpopulate(val, "HostServiceURI", &i.HostServiceURI) - delete(rawMsg, key) - case "identityCertThumbprint": - err = unpopulate(val, "IdentityCertThumbprint", &i.IdentityCertThumbprint) - delete(rawMsg, key) - case "isIdentityCertExprired": - err = unpopulate(val, "IsIdentityCertExprired", &i.IsIdentityCertExprired) - delete(rawMsg, key) - case "publicKey": - err = unpopulate(val, "PublicKey", &i.PublicKey) - delete(rawMsg, key) - case "serviceToken": - err = unpopulate(val, "ServiceToken", &i.ServiceToken) - delete(rawMsg, key) - case "version": - err = unpopulate(val, "Version", &i.Version) - delete(rawMsg, key) - default: - if i.AdditionalProperties == nil { - i.AdditionalProperties = map[string]interface{}{} - } - if val != nil { - var aux interface{} - err = json.Unmarshal(val, &aux) - i.AdditionalProperties[key] = aux - } - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", i, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeDataFlowProperties. -func (i IntegrationRuntimeDataFlowProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "cleanup", i.Cleanup) - populate(objectMap, "computeType", i.ComputeType) - populate(objectMap, "coreCount", i.CoreCount) - populate(objectMap, "timeToLive", i.TimeToLive) - if i.AdditionalProperties != nil { - for key, val := range i.AdditionalProperties { - objectMap[key] = val - } - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntimeDataFlowProperties. -func (i *IntegrationRuntimeDataFlowProperties) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", i, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "cleanup": - err = unpopulate(val, "Cleanup", &i.Cleanup) - delete(rawMsg, key) - case "computeType": - err = unpopulate(val, "ComputeType", &i.ComputeType) - delete(rawMsg, key) - case "coreCount": - err = unpopulate(val, "CoreCount", &i.CoreCount) - delete(rawMsg, key) - case "timeToLive": - err = unpopulate(val, "TimeToLive", &i.TimeToLive) - delete(rawMsg, key) - default: - if i.AdditionalProperties == nil { - i.AdditionalProperties = map[string]interface{}{} - } - if val != nil { - var aux interface{} - err = json.Unmarshal(val, &aux) - i.AdditionalProperties[key] = aux - } - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", i, err) - } - } - return nil -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntimeNodeMonitoringData. -func (i *IntegrationRuntimeNodeMonitoringData) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", i, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "availableMemoryInMB": - err = unpopulate(val, "AvailableMemoryInMB", &i.AvailableMemoryInMB) - delete(rawMsg, key) - case "cpuUtilization": - err = unpopulate(val, "CPUUtilization", &i.CPUUtilization) - delete(rawMsg, key) - case "concurrentJobsLimit": - err = unpopulate(val, "ConcurrentJobsLimit", &i.ConcurrentJobsLimit) - delete(rawMsg, key) - case "concurrentJobsRunning": - err = unpopulate(val, "ConcurrentJobsRunning", &i.ConcurrentJobsRunning) - delete(rawMsg, key) - case "maxConcurrentJobs": - err = unpopulate(val, "MaxConcurrentJobs", &i.MaxConcurrentJobs) - delete(rawMsg, key) - case "nodeName": - err = unpopulate(val, "NodeName", &i.NodeName) - delete(rawMsg, key) - case "receivedBytes": - err = unpopulate(val, "ReceivedBytes", &i.ReceivedBytes) - delete(rawMsg, key) - case "sentBytes": - err = unpopulate(val, "SentBytes", &i.SentBytes) - delete(rawMsg, key) - default: - if i.AdditionalProperties == nil { - i.AdditionalProperties = map[string]interface{}{} - } - if val != nil { - var aux interface{} - err = json.Unmarshal(val, &aux) - i.AdditionalProperties[key] = aux - } - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", i, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeResource. -func (i IntegrationRuntimeResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "etag", i.Etag) - populate(objectMap, "id", i.ID) - populate(objectMap, "name", i.Name) - populate(objectMap, "properties", i.Properties) - populate(objectMap, "type", i.Type) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntimeResource. -func (i *IntegrationRuntimeResource) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", i, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "etag": - err = unpopulate(val, "Etag", &i.Etag) - delete(rawMsg, key) - case "id": - err = unpopulate(val, "ID", &i.ID) - delete(rawMsg, key) - case "name": - err = unpopulate(val, "Name", &i.Name) - delete(rawMsg, key) - case "properties": - i.Properties, err = unmarshalIntegrationRuntimeClassification(val) - delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &i.Type) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", i, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeSsisCatalogInfo. -func (i IntegrationRuntimeSsisCatalogInfo) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "catalogAdminPassword", i.CatalogAdminPassword) - populate(objectMap, "catalogAdminUserName", i.CatalogAdminUserName) - populate(objectMap, "catalogPricingTier", i.CatalogPricingTier) - populate(objectMap, "catalogServerEndpoint", i.CatalogServerEndpoint) - if i.AdditionalProperties != nil { - for key, val := range i.AdditionalProperties { - objectMap[key] = val - } - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntimeSsisCatalogInfo. -func (i *IntegrationRuntimeSsisCatalogInfo) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", i, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "catalogAdminPassword": - err = unpopulate(val, "CatalogAdminPassword", &i.CatalogAdminPassword) - delete(rawMsg, key) - case "catalogAdminUserName": - err = unpopulate(val, "CatalogAdminUserName", &i.CatalogAdminUserName) - delete(rawMsg, key) - case "catalogPricingTier": - err = unpopulate(val, "CatalogPricingTier", &i.CatalogPricingTier) - delete(rawMsg, key) - case "catalogServerEndpoint": - err = unpopulate(val, "CatalogServerEndpoint", &i.CatalogServerEndpoint) - delete(rawMsg, key) - default: - if i.AdditionalProperties == nil { - i.AdditionalProperties = map[string]interface{}{} - } - if val != nil { - var aux interface{} - err = json.Unmarshal(val, &aux) - i.AdditionalProperties[key] = aux - } - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", i, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeSsisProperties. -func (i IntegrationRuntimeSsisProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "catalogInfo", i.CatalogInfo) - populate(objectMap, "customSetupScriptProperties", i.CustomSetupScriptProperties) - populate(objectMap, "dataProxyProperties", i.DataProxyProperties) - populate(objectMap, "edition", i.Edition) - populate(objectMap, "expressCustomSetupProperties", i.ExpressCustomSetupProperties) - populate(objectMap, "licenseType", i.LicenseType) - if i.AdditionalProperties != nil { - for key, val := range i.AdditionalProperties { - objectMap[key] = val - } - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntimeSsisProperties. -func (i *IntegrationRuntimeSsisProperties) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", i, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "catalogInfo": - err = unpopulate(val, "CatalogInfo", &i.CatalogInfo) - delete(rawMsg, key) - case "customSetupScriptProperties": - err = unpopulate(val, "CustomSetupScriptProperties", &i.CustomSetupScriptProperties) - delete(rawMsg, key) - case "dataProxyProperties": - err = unpopulate(val, "DataProxyProperties", &i.DataProxyProperties) - delete(rawMsg, key) - case "edition": - err = unpopulate(val, "Edition", &i.Edition) - delete(rawMsg, key) - case "expressCustomSetupProperties": - i.ExpressCustomSetupProperties, err = unmarshalCustomSetupBaseClassificationArray(val) - delete(rawMsg, key) - case "licenseType": - err = unpopulate(val, "LicenseType", &i.LicenseType) - delete(rawMsg, key) - default: - if i.AdditionalProperties == nil { - i.AdditionalProperties = map[string]interface{}{} - } - if val != nil { - var aux interface{} - err = json.Unmarshal(val, &aux) - i.AdditionalProperties[key] = aux - } - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", i, err) - } - } - return nil -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntimeStatus. -func (i *IntegrationRuntimeStatus) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", i, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "dataFactoryName": - err = unpopulate(val, "DataFactoryName", &i.DataFactoryName) - delete(rawMsg, key) - case "state": - err = unpopulate(val, "State", &i.State) - delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &i.Type) - delete(rawMsg, key) - default: - if i.AdditionalProperties == nil { - i.AdditionalProperties = map[string]interface{}{} - } - if val != nil { - var aux interface{} - err = json.Unmarshal(val, &aux) - i.AdditionalProperties[key] = aux - } - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", i, err) - } - } - return nil -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntimeStatusResponse. -func (i *IntegrationRuntimeStatusResponse) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", i, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "name": - err = unpopulate(val, "Name", &i.Name) - delete(rawMsg, key) - case "properties": - i.Properties, err = unmarshalIntegrationRuntimeStatusClassification(val) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", i, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeVNetProperties. -func (i IntegrationRuntimeVNetProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "publicIPs", i.PublicIPs) - populate(objectMap, "subnet", i.Subnet) - populate(objectMap, "subnetId", i.SubnetID) - populate(objectMap, "vNetId", i.VNetID) - if i.AdditionalProperties != nil { - for key, val := range i.AdditionalProperties { - objectMap[key] = val - } - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type IntegrationRuntimeVNetProperties. -func (i *IntegrationRuntimeVNetProperties) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", i, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "publicIPs": - err = unpopulate(val, "PublicIPs", &i.PublicIPs) - delete(rawMsg, key) - case "subnet": - err = unpopulate(val, "Subnet", &i.Subnet) - delete(rawMsg, key) - case "subnetId": - err = unpopulate(val, "SubnetID", &i.SubnetID) - delete(rawMsg, key) - case "vNetId": - err = unpopulate(val, "VNetID", &i.VNetID) - delete(rawMsg, key) - default: - if i.AdditionalProperties == nil { - i.AdditionalProperties = map[string]interface{}{} - } - if val != nil { - var aux interface{} - err = json.Unmarshal(val, &aux) - i.AdditionalProperties[key] = aux - } - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", i, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type IotHubConnectionProperties. -func (i IotHubConnectionProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "consumerGroup", i.ConsumerGroup) - populate(objectMap, "dataFormat", i.DataFormat) - populate(objectMap, "eventSystemProperties", i.EventSystemProperties) - populate(objectMap, "iotHubResourceId", i.IotHubResourceID) - populate(objectMap, "mappingRuleName", i.MappingRuleName) - populate(objectMap, "provisioningState", i.ProvisioningState) - populate(objectMap, "sharedAccessPolicyName", i.SharedAccessPolicyName) - populate(objectMap, "tableName", i.TableName) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type IotHubDataConnection. -func (i IotHubDataConnection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", i.ID) - objectMap["kind"] = DataConnectionKindIotHub - populate(objectMap, "location", i.Location) - populate(objectMap, "name", i.Name) - populate(objectMap, "properties", i.Properties) - populate(objectMap, "systemData", i.SystemData) - populate(objectMap, "type", i.Type) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type IotHubDataConnection. -func (i *IotHubDataConnection) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", i, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "id": - err = unpopulate(val, "ID", &i.ID) - delete(rawMsg, key) - case "kind": - err = unpopulate(val, "Kind", &i.Kind) - delete(rawMsg, key) - case "location": - err = unpopulate(val, "Location", &i.Location) - delete(rawMsg, key) - case "name": - err = unpopulate(val, "Name", &i.Name) - delete(rawMsg, key) - case "properties": - err = unpopulate(val, "Properties", &i.Properties) - delete(rawMsg, key) - case "systemData": - err = unpopulate(val, "SystemData", &i.SystemData) - delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &i.Type) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", i, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type KustoPool. -func (k KustoPool) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "etag", k.Etag) - populate(objectMap, "id", k.ID) - populate(objectMap, "location", k.Location) - populate(objectMap, "name", k.Name) - populate(objectMap, "properties", k.Properties) - populate(objectMap, "sku", k.SKU) - populate(objectMap, "systemData", k.SystemData) - populate(objectMap, "tags", k.Tags) - populate(objectMap, "type", k.Type) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type KustoPoolUpdate. -func (k KustoPoolUpdate) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", k.ID) - populate(objectMap, "name", k.Name) - populate(objectMap, "properties", k.Properties) - populate(objectMap, "sku", k.SKU) - populate(objectMap, "tags", k.Tags) - populate(objectMap, "type", k.Type) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type LanguageExtensionsList. -func (l LanguageExtensionsList) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "value", l.Value) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type LibraryInfo. -func (l LibraryInfo) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "containerName", l.ContainerName) - populate(objectMap, "creatorId", l.CreatorID) - populate(objectMap, "name", l.Name) - populate(objectMap, "path", l.Path) - populate(objectMap, "provisioningStatus", l.ProvisioningStatus) - populate(objectMap, "type", l.Type) - populateTimeRFC3339(objectMap, "uploadedTimestamp", l.UploadedTimestamp) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type LibraryInfo. -func (l *LibraryInfo) 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", l, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "containerName": - err = unpopulate(val, "ContainerName", &l.ContainerName) - delete(rawMsg, key) - case "creatorId": - err = unpopulate(val, "CreatorID", &l.CreatorID) - delete(rawMsg, key) - case "name": - err = unpopulate(val, "Name", &l.Name) - delete(rawMsg, key) - case "path": - err = unpopulate(val, "Path", &l.Path) - delete(rawMsg, key) - case "provisioningStatus": - err = unpopulate(val, "ProvisioningStatus", &l.ProvisioningStatus) - delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &l.Type) - delete(rawMsg, key) - case "uploadedTimestamp": - err = unpopulateTimeRFC3339(val, "UploadedTimestamp", &l.UploadedTimestamp) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", l, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type LibraryRequirements. -func (l LibraryRequirements) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "content", l.Content) - populate(objectMap, "filename", l.Filename) - populateTimeRFC3339(objectMap, "time", l.Time) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type LibraryRequirements. -func (l *LibraryRequirements) 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", l, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "content": - err = unpopulate(val, "Content", &l.Content) - delete(rawMsg, key) - case "filename": - err = unpopulate(val, "Filename", &l.Filename) - delete(rawMsg, key) - case "time": - err = unpopulateTimeRFC3339(val, "Time", &l.Time) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", l, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type LicensedComponentSetupTypeProperties. -func (l LicensedComponentSetupTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "componentName", l.ComponentName) - populate(objectMap, "licenseKey", l.LicenseKey) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type LicensedComponentSetupTypeProperties. -func (l *LicensedComponentSetupTypeProperties) 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", l, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "componentName": - err = unpopulate(val, "ComponentName", &l.ComponentName) - delete(rawMsg, key) - case "licenseKey": - l.LicenseKey, err = unmarshalSecretBaseClassification(val) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", l, err) - } - } - return nil -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type LinkedIntegrationRuntime. -func (l *LinkedIntegrationRuntime) 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", l, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "createTime": - err = unpopulateTimeRFC3339(val, "CreateTime", &l.CreateTime) - delete(rawMsg, key) - case "dataFactoryLocation": - err = unpopulate(val, "DataFactoryLocation", &l.DataFactoryLocation) - delete(rawMsg, key) - case "dataFactoryName": - err = unpopulate(val, "DataFactoryName", &l.DataFactoryName) - delete(rawMsg, key) - case "name": - err = unpopulate(val, "Name", &l.Name) - delete(rawMsg, key) - case "subscriptionId": - err = unpopulate(val, "SubscriptionID", &l.SubscriptionID) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", l, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type LinkedIntegrationRuntimeKeyAuthorization. -func (l LinkedIntegrationRuntimeKeyAuthorization) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - objectMap["authorizationType"] = "Key" - populate(objectMap, "key", l.Key) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type LinkedIntegrationRuntimeKeyAuthorization. -func (l *LinkedIntegrationRuntimeKeyAuthorization) 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", l, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "authorizationType": - err = unpopulate(val, "AuthorizationType", &l.AuthorizationType) - delete(rawMsg, key) - case "key": - err = unpopulate(val, "Key", &l.Key) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", l, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type LinkedIntegrationRuntimeRbacAuthorization. -func (l LinkedIntegrationRuntimeRbacAuthorization) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - objectMap["authorizationType"] = "RBAC" - populate(objectMap, "resourceId", l.ResourceID) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type LinkedIntegrationRuntimeRbacAuthorization. -func (l *LinkedIntegrationRuntimeRbacAuthorization) 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", l, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "authorizationType": - err = unpopulate(val, "AuthorizationType", &l.AuthorizationType) - delete(rawMsg, key) - case "resourceId": - err = unpopulate(val, "ResourceID", &l.ResourceID) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", l, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type MaintenanceWindowOptionsProperties. -func (m MaintenanceWindowOptionsProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "allowMultipleMaintenanceWindowsPerCycle", m.AllowMultipleMaintenanceWindowsPerCycle) - populate(objectMap, "defaultDurationInMinutes", m.DefaultDurationInMinutes) - populate(objectMap, "isEnabled", m.IsEnabled) - populate(objectMap, "maintenanceWindowCycles", m.MaintenanceWindowCycles) - populate(objectMap, "minCycles", m.MinCycles) - populate(objectMap, "minDurationInMinutes", m.MinDurationInMinutes) - populate(objectMap, "timeGranularityInMinutes", m.TimeGranularityInMinutes) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type MaintenanceWindowsProperties. -func (m MaintenanceWindowsProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "timeRanges", m.TimeRanges) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type ManagedIdentity. -func (m ManagedIdentity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "principalId", m.PrincipalID) - populate(objectMap, "tenantId", m.TenantID) - populate(objectMap, "type", m.Type) - populate(objectMap, "userAssignedIdentities", m.UserAssignedIdentities) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type ManagedIntegrationRuntime. -func (m ManagedIntegrationRuntime) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "description", m.Description) - populate(objectMap, "managedVirtualNetwork", m.ManagedVirtualNetwork) - populate(objectMap, "state", m.State) - objectMap["type"] = IntegrationRuntimeTypeManaged - populate(objectMap, "typeProperties", m.TypeProperties) - if m.AdditionalProperties != nil { - for key, val := range m.AdditionalProperties { - objectMap[key] = val - } - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type ManagedIntegrationRuntime. -func (m *ManagedIntegrationRuntime) 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 "description": - err = unpopulate(val, "Description", &m.Description) - delete(rawMsg, key) - case "managedVirtualNetwork": - err = unpopulate(val, "ManagedVirtualNetwork", &m.ManagedVirtualNetwork) - delete(rawMsg, key) - case "state": - err = unpopulate(val, "State", &m.State) - delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &m.Type) - delete(rawMsg, key) - case "typeProperties": - err = unpopulate(val, "TypeProperties", &m.TypeProperties) - delete(rawMsg, key) - default: - if m.AdditionalProperties == nil { - m.AdditionalProperties = map[string]interface{}{} - } - if val != nil { - var aux interface{} - err = json.Unmarshal(val, &aux) - m.AdditionalProperties[key] = aux - } - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", m, err) - } - } - return nil -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type ManagedIntegrationRuntimeError. -func (m *ManagedIntegrationRuntimeError) 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 "code": - err = unpopulate(val, "Code", &m.Code) - delete(rawMsg, key) - case "message": - err = unpopulate(val, "Message", &m.Message) - delete(rawMsg, key) - case "parameters": - err = unpopulate(val, "Parameters", &m.Parameters) - delete(rawMsg, key) - case "time": - err = unpopulateTimeRFC3339(val, "Time", &m.Time) - delete(rawMsg, key) - default: - if m.AdditionalProperties == nil { - m.AdditionalProperties = map[string]interface{}{} - } - if val != nil { - var aux interface{} - err = json.Unmarshal(val, &aux) - m.AdditionalProperties[key] = aux - } - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", m, err) - } - } - return nil -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type ManagedIntegrationRuntimeNode. -func (m *ManagedIntegrationRuntimeNode) 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 "errors": - err = unpopulate(val, "Errors", &m.Errors) - delete(rawMsg, key) - case "nodeId": - err = unpopulate(val, "NodeID", &m.NodeID) - delete(rawMsg, key) - case "status": - err = unpopulate(val, "Status", &m.Status) - delete(rawMsg, key) - default: - if m.AdditionalProperties == nil { - m.AdditionalProperties = map[string]interface{}{} - } - if val != nil { - var aux interface{} - err = json.Unmarshal(val, &aux) - m.AdditionalProperties[key] = aux - } - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", m, err) - } - } - return nil -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type ManagedIntegrationRuntimeOperationResult. -func (m *ManagedIntegrationRuntimeOperationResult) 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 "activityId": - err = unpopulate(val, "ActivityID", &m.ActivityID) - delete(rawMsg, key) - case "errorCode": - err = unpopulate(val, "ErrorCode", &m.ErrorCode) - delete(rawMsg, key) - case "parameters": - err = unpopulate(val, "Parameters", &m.Parameters) - delete(rawMsg, key) - case "result": - err = unpopulate(val, "Result", &m.Result) - delete(rawMsg, key) - case "startTime": - err = unpopulateTimeRFC3339(val, "StartTime", &m.StartTime) - delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &m.Type) - delete(rawMsg, key) - default: - if m.AdditionalProperties == nil { - m.AdditionalProperties = map[string]interface{}{} - } - if val != nil { - var aux interface{} - err = json.Unmarshal(val, &aux) - m.AdditionalProperties[key] = aux - } - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", m, err) - } - } - return nil -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type ManagedIntegrationRuntimeStatus. -func (m *ManagedIntegrationRuntimeStatus) 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 "dataFactoryName": - err = unpopulate(val, "DataFactoryName", &m.DataFactoryName) - delete(rawMsg, key) - case "state": - err = unpopulate(val, "State", &m.State) - delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &m.Type) - delete(rawMsg, key) - case "typeProperties": - err = unpopulate(val, "TypeProperties", &m.TypeProperties) - delete(rawMsg, key) - default: - if m.AdditionalProperties == nil { - m.AdditionalProperties = map[string]interface{}{} - } - if val != nil { - var aux interface{} - err = json.Unmarshal(val, &aux) - m.AdditionalProperties[key] = aux - } - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", m, err) - } - } - return nil -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type ManagedIntegrationRuntimeStatusTypeProperties. -func (m *ManagedIntegrationRuntimeStatusTypeProperties) 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 "createTime": - err = unpopulateTimeRFC3339(val, "CreateTime", &m.CreateTime) - delete(rawMsg, key) - case "lastOperation": - err = unpopulate(val, "LastOperation", &m.LastOperation) - delete(rawMsg, key) - case "nodes": - err = unpopulate(val, "Nodes", &m.Nodes) - delete(rawMsg, key) - case "otherErrors": - err = unpopulate(val, "OtherErrors", &m.OtherErrors) - 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 ManagedVirtualNetworkSettings. -func (m ManagedVirtualNetworkSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "allowedAadTenantIdsForLinking", m.AllowedAADTenantIDsForLinking) - populate(objectMap, "linkedAccessCheckOnTargetResource", m.LinkedAccessCheckOnTargetResource) - populate(objectMap, "preventDataExfiltration", m.PreventDataExfiltration) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type OperationResource. -func (o *OperationResource) 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", o, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "endTime": - err = unpopulateTimeRFC3339(val, "EndTime", &o.EndTime) - delete(rawMsg, key) - case "error": - err = unpopulate(val, "Error", &o.Error) - delete(rawMsg, key) - case "id": - err = unpopulate(val, "ID", &o.ID) - delete(rawMsg, key) - case "name": - err = unpopulate(val, "Name", &o.Name) - delete(rawMsg, key) - case "percentComplete": - err = unpopulate(val, "PercentComplete", &o.PercentComplete) - delete(rawMsg, key) - case "properties": - err = unpopulate(val, "Properties", &o.Properties) - delete(rawMsg, key) - case "startTime": - err = unpopulateTimeRFC3339(val, "StartTime", &o.StartTime) - delete(rawMsg, key) - case "status": - err = unpopulate(val, "Status", &o.Status) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", o, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type PrivateLinkHub. -func (p PrivateLinkHub) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", p.ID) - populate(objectMap, "location", p.Location) - populate(objectMap, "name", p.Name) - populate(objectMap, "properties", p.Properties) - populate(objectMap, "tags", p.Tags) - populate(objectMap, "type", p.Type) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type PrivateLinkHubPatchInfo. -func (p PrivateLinkHubPatchInfo) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "tags", p.Tags) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type PrivateLinkHubProperties. -func (p PrivateLinkHubProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "privateEndpointConnections", p.PrivateEndpointConnections) - populate(objectMap, "provisioningState", p.ProvisioningState) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type PrivateLinkResourceProperties. -func (p PrivateLinkResourceProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "groupId", p.GroupID) - populate(objectMap, "requiredMembers", p.RequiredMembers) - populate(objectMap, "requiredZoneNames", p.RequiredZoneNames) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type QueryInterval. -func (q *QueryInterval) 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", q, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "executionCount": - err = unpopulate(val, "ExecutionCount", &q.ExecutionCount) - delete(rawMsg, key) - case "intervalStartTime": - err = unpopulateTimeRFC3339(val, "IntervalStartTime", &q.IntervalStartTime) - delete(rawMsg, key) - case "metrics": - err = unpopulate(val, "Metrics", &q.Metrics) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", q, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type ReadOnlyFollowingDatabase. -func (r ReadOnlyFollowingDatabase) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", r.ID) - objectMap["kind"] = KindReadOnlyFollowing - populate(objectMap, "location", r.Location) - populate(objectMap, "name", r.Name) - populate(objectMap, "properties", r.Properties) - populate(objectMap, "systemData", r.SystemData) - populate(objectMap, "type", r.Type) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type ReadOnlyFollowingDatabase. -func (r *ReadOnlyFollowingDatabase) 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 "kind": - err = unpopulate(val, "Kind", &r.Kind) - 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 "properties": - err = unpopulate(val, "Properties", &r.Properties) - delete(rawMsg, key) - case "systemData": - err = unpopulate(val, "SystemData", &r.SystemData) - 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 ReadWriteDatabase. -func (r ReadWriteDatabase) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", r.ID) - objectMap["kind"] = KindReadWrite - populate(objectMap, "location", r.Location) - populate(objectMap, "name", r.Name) - populate(objectMap, "properties", r.Properties) - populate(objectMap, "systemData", r.SystemData) - populate(objectMap, "type", r.Type) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type ReadWriteDatabase. -func (r *ReadWriteDatabase) 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 "kind": - err = unpopulate(val, "Kind", &r.Kind) - 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 "properties": - err = unpopulate(val, "Properties", &r.Properties) - delete(rawMsg, key) - case "systemData": - err = unpopulate(val, "SystemData", &r.SystemData) - 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 RecommendedSensitivityLabelUpdateList. -func (r RecommendedSensitivityLabelUpdateList) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "operations", r.Operations) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type RecoverableSQLPoolProperties. -func (r RecoverableSQLPoolProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "edition", r.Edition) - populate(objectMap, "elasticPoolName", r.ElasticPoolName) - populateTimeRFC3339(objectMap, "lastAvailableBackupDate", r.LastAvailableBackupDate) - populate(objectMap, "serviceLevelObjective", r.ServiceLevelObjective) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type RecoverableSQLPoolProperties. -func (r *RecoverableSQLPoolProperties) 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 "edition": - err = unpopulate(val, "Edition", &r.Edition) - delete(rawMsg, key) - case "elasticPoolName": - err = unpopulate(val, "ElasticPoolName", &r.ElasticPoolName) - delete(rawMsg, key) - case "lastAvailableBackupDate": - err = unpopulateTimeRFC3339(val, "LastAvailableBackupDate", &r.LastAvailableBackupDate) - delete(rawMsg, key) - case "serviceLevelObjective": - err = unpopulate(val, "ServiceLevelObjective", &r.ServiceLevelObjective) - 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 ReplaceAllIPFirewallRulesRequest. -func (r ReplaceAllIPFirewallRulesRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "ipFirewallRules", r.IPFirewallRules) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type ReplicationLinkProperties. -func (r ReplicationLinkProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "isTerminationAllowed", r.IsTerminationAllowed) - populate(objectMap, "partnerDatabase", r.PartnerDatabase) - populate(objectMap, "partnerLocation", r.PartnerLocation) - populate(objectMap, "partnerRole", r.PartnerRole) - populate(objectMap, "partnerServer", r.PartnerServer) - populate(objectMap, "percentComplete", r.PercentComplete) - populate(objectMap, "replicationMode", r.ReplicationMode) - populate(objectMap, "replicationState", r.ReplicationState) - populate(objectMap, "role", r.Role) - populateTimeRFC3339(objectMap, "startTime", r.StartTime) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type ReplicationLinkProperties. -func (r *ReplicationLinkProperties) 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 "isTerminationAllowed": - err = unpopulate(val, "IsTerminationAllowed", &r.IsTerminationAllowed) - delete(rawMsg, key) - case "partnerDatabase": - err = unpopulate(val, "PartnerDatabase", &r.PartnerDatabase) - delete(rawMsg, key) - case "partnerLocation": - err = unpopulate(val, "PartnerLocation", &r.PartnerLocation) - delete(rawMsg, key) - case "partnerRole": - err = unpopulate(val, "PartnerRole", &r.PartnerRole) - delete(rawMsg, key) - case "partnerServer": - err = unpopulate(val, "PartnerServer", &r.PartnerServer) - delete(rawMsg, key) - case "percentComplete": - err = unpopulate(val, "PercentComplete", &r.PercentComplete) - delete(rawMsg, key) - case "replicationMode": - err = unpopulate(val, "ReplicationMode", &r.ReplicationMode) - delete(rawMsg, key) - case "replicationState": - err = unpopulate(val, "ReplicationState", &r.ReplicationState) - delete(rawMsg, key) - case "role": - err = unpopulate(val, "Role", &r.Role) - delete(rawMsg, key) - case "startTime": - err = unpopulateTimeRFC3339(val, "StartTime", &r.StartTime) - 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 RestorableDroppedSQLPoolProperties. -func (r RestorableDroppedSQLPoolProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populateTimeRFC3339(objectMap, "creationDate", r.CreationDate) - populate(objectMap, "databaseName", r.DatabaseName) - populateTimeRFC3339(objectMap, "deletionDate", r.DeletionDate) - populateTimeRFC3339(objectMap, "earliestRestoreDate", r.EarliestRestoreDate) - populate(objectMap, "edition", r.Edition) - populate(objectMap, "elasticPoolName", r.ElasticPoolName) - populate(objectMap, "maxSizeBytes", r.MaxSizeBytes) - populate(objectMap, "serviceLevelObjective", r.ServiceLevelObjective) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type RestorableDroppedSQLPoolProperties. -func (r *RestorableDroppedSQLPoolProperties) 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 "creationDate": - err = unpopulateTimeRFC3339(val, "CreationDate", &r.CreationDate) - delete(rawMsg, key) - case "databaseName": - err = unpopulate(val, "DatabaseName", &r.DatabaseName) - delete(rawMsg, key) - case "deletionDate": - err = unpopulateTimeRFC3339(val, "DeletionDate", &r.DeletionDate) - delete(rawMsg, key) - case "earliestRestoreDate": - err = unpopulateTimeRFC3339(val, "EarliestRestoreDate", &r.EarliestRestoreDate) - delete(rawMsg, key) - case "edition": - err = unpopulate(val, "Edition", &r.Edition) - delete(rawMsg, key) - case "elasticPoolName": - err = unpopulate(val, "ElasticPoolName", &r.ElasticPoolName) - delete(rawMsg, key) - case "maxSizeBytes": - err = unpopulate(val, "MaxSizeBytes", &r.MaxSizeBytes) - delete(rawMsg, key) - case "serviceLevelObjective": - err = unpopulate(val, "ServiceLevelObjective", &r.ServiceLevelObjective) - 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 RestorePointProperties. -func (r RestorePointProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populateTimeRFC3339(objectMap, "earliestRestoreDate", r.EarliestRestoreDate) - populateTimeRFC3339(objectMap, "restorePointCreationDate", r.RestorePointCreationDate) - populate(objectMap, "restorePointLabel", r.RestorePointLabel) - populate(objectMap, "restorePointType", r.RestorePointType) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type RestorePointProperties. -func (r *RestorePointProperties) 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 "earliestRestoreDate": - err = unpopulateTimeRFC3339(val, "EarliestRestoreDate", &r.EarliestRestoreDate) - delete(rawMsg, key) - case "restorePointCreationDate": - err = unpopulateTimeRFC3339(val, "RestorePointCreationDate", &r.RestorePointCreationDate) - delete(rawMsg, key) - case "restorePointLabel": - err = unpopulate(val, "RestorePointLabel", &r.RestorePointLabel) - delete(rawMsg, key) - case "restorePointType": - err = unpopulate(val, "RestorePointType", &r.RestorePointType) - 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 SQLPool. -func (s SQLPool) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", s.ID) - populate(objectMap, "location", s.Location) - populate(objectMap, "name", s.Name) - populate(objectMap, "properties", s.Properties) - populate(objectMap, "sku", s.SKU) - populate(objectMap, "tags", s.Tags) - populate(objectMap, "type", s.Type) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type SQLPoolBlobAuditingPolicyProperties. -func (s SQLPoolBlobAuditingPolicyProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "auditActionsAndGroups", s.AuditActionsAndGroups) - populate(objectMap, "isAzureMonitorTargetEnabled", s.IsAzureMonitorTargetEnabled) - populate(objectMap, "isStorageSecondaryKeyInUse", s.IsStorageSecondaryKeyInUse) - populate(objectMap, "retentionDays", s.RetentionDays) - populate(objectMap, "state", s.State) - populate(objectMap, "storageAccountAccessKey", s.StorageAccountAccessKey) - populate(objectMap, "storageAccountSubscriptionId", s.StorageAccountSubscriptionID) - populate(objectMap, "storageEndpoint", s.StorageEndpoint) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type SQLPoolOperationProperties. -func (s SQLPoolOperationProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "databaseName", s.DatabaseName) - populate(objectMap, "description", s.Description) - populate(objectMap, "errorCode", s.ErrorCode) - populate(objectMap, "errorDescription", s.ErrorDescription) - populate(objectMap, "errorSeverity", s.ErrorSeverity) - populateTimeRFC3339(objectMap, "estimatedCompletionTime", s.EstimatedCompletionTime) - populate(objectMap, "isCancellable", s.IsCancellable) - populate(objectMap, "isUserError", s.IsUserError) - populate(objectMap, "operation", s.Operation) - populate(objectMap, "operationFriendlyName", s.OperationFriendlyName) - populate(objectMap, "percentComplete", s.PercentComplete) - populate(objectMap, "serverName", s.ServerName) - populateTimeRFC3339(objectMap, "startTime", s.StartTime) - populate(objectMap, "state", s.State) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type SQLPoolOperationProperties. -func (s *SQLPoolOperationProperties) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "databaseName": - err = unpopulate(val, "DatabaseName", &s.DatabaseName) - delete(rawMsg, key) - case "description": - err = unpopulate(val, "Description", &s.Description) - delete(rawMsg, key) - case "errorCode": - err = unpopulate(val, "ErrorCode", &s.ErrorCode) - delete(rawMsg, key) - case "errorDescription": - err = unpopulate(val, "ErrorDescription", &s.ErrorDescription) - delete(rawMsg, key) - case "errorSeverity": - err = unpopulate(val, "ErrorSeverity", &s.ErrorSeverity) - delete(rawMsg, key) - case "estimatedCompletionTime": - err = unpopulateTimeRFC3339(val, "EstimatedCompletionTime", &s.EstimatedCompletionTime) - delete(rawMsg, key) - case "isCancellable": - err = unpopulate(val, "IsCancellable", &s.IsCancellable) - delete(rawMsg, key) - case "isUserError": - err = unpopulate(val, "IsUserError", &s.IsUserError) - delete(rawMsg, key) - case "operation": - err = unpopulate(val, "Operation", &s.Operation) - delete(rawMsg, key) - case "operationFriendlyName": - err = unpopulate(val, "OperationFriendlyName", &s.OperationFriendlyName) - delete(rawMsg, key) - case "percentComplete": - err = unpopulate(val, "PercentComplete", &s.PercentComplete) - delete(rawMsg, key) - case "serverName": - err = unpopulate(val, "ServerName", &s.ServerName) - delete(rawMsg, key) - case "startTime": - err = unpopulateTimeRFC3339(val, "StartTime", &s.StartTime) - delete(rawMsg, key) - case "state": - err = unpopulate(val, "State", &s.State) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type SQLPoolPatchInfo. -func (s SQLPoolPatchInfo) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "location", s.Location) - populate(objectMap, "properties", s.Properties) - populate(objectMap, "sku", s.SKU) - populate(objectMap, "tags", s.Tags) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type SQLPoolResourceProperties. -func (s SQLPoolResourceProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "collation", s.Collation) - populate(objectMap, "createMode", s.CreateMode) - populateTimeRFC3339(objectMap, "creationDate", s.CreationDate) - populate(objectMap, "maxSizeBytes", s.MaxSizeBytes) - populate(objectMap, "provisioningState", s.ProvisioningState) - populate(objectMap, "recoverableDatabaseId", s.RecoverableDatabaseID) - populateTimeRFC3339(objectMap, "restorePointInTime", s.RestorePointInTime) - populateTimeRFC3339(objectMap, "sourceDatabaseDeletionDate", s.SourceDatabaseDeletionDate) - populate(objectMap, "sourceDatabaseId", s.SourceDatabaseID) - populate(objectMap, "status", s.Status) - populate(objectMap, "storageAccountType", s.StorageAccountType) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type SQLPoolResourceProperties. -func (s *SQLPoolResourceProperties) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "collation": - err = unpopulate(val, "Collation", &s.Collation) - delete(rawMsg, key) - case "createMode": - err = unpopulate(val, "CreateMode", &s.CreateMode) - delete(rawMsg, key) - case "creationDate": - err = unpopulateTimeRFC3339(val, "CreationDate", &s.CreationDate) - delete(rawMsg, key) - case "maxSizeBytes": - err = unpopulate(val, "MaxSizeBytes", &s.MaxSizeBytes) - delete(rawMsg, key) - case "provisioningState": - err = unpopulate(val, "ProvisioningState", &s.ProvisioningState) - delete(rawMsg, key) - case "recoverableDatabaseId": - err = unpopulate(val, "RecoverableDatabaseID", &s.RecoverableDatabaseID) - delete(rawMsg, key) - case "restorePointInTime": - err = unpopulateTimeRFC3339(val, "RestorePointInTime", &s.RestorePointInTime) - delete(rawMsg, key) - case "sourceDatabaseDeletionDate": - err = unpopulateTimeRFC3339(val, "SourceDatabaseDeletionDate", &s.SourceDatabaseDeletionDate) - delete(rawMsg, key) - case "sourceDatabaseId": - err = unpopulate(val, "SourceDatabaseID", &s.SourceDatabaseID) - delete(rawMsg, key) - case "status": - err = unpopulate(val, "Status", &s.Status) - delete(rawMsg, key) - case "storageAccountType": - err = unpopulate(val, "StorageAccountType", &s.StorageAccountType) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - } - return nil -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type SQLPoolUsage. -func (s *SQLPoolUsage) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "currentValue": - err = unpopulate(val, "CurrentValue", &s.CurrentValue) - delete(rawMsg, key) - case "displayName": - err = unpopulate(val, "DisplayName", &s.DisplayName) - delete(rawMsg, key) - case "limit": - err = unpopulate(val, "Limit", &s.Limit) - delete(rawMsg, key) - case "name": - err = unpopulate(val, "Name", &s.Name) - delete(rawMsg, key) - case "nextResetTime": - err = unpopulateTimeRFC3339(val, "NextResetTime", &s.NextResetTime) - delete(rawMsg, key) - case "resourceName": - err = unpopulate(val, "ResourceName", &s.ResourceName) - delete(rawMsg, key) - case "unit": - err = unpopulate(val, "Unit", &s.Unit) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type SQLPoolVulnerabilityAssessmentRuleBaselineItem. -func (s SQLPoolVulnerabilityAssessmentRuleBaselineItem) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "result", s.Result) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type SQLPoolVulnerabilityAssessmentRuleBaselineProperties. -func (s SQLPoolVulnerabilityAssessmentRuleBaselineProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "baselineResults", s.BaselineResults) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type SecureString. -func (s SecureString) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - objectMap["type"] = "SecureString" - populate(objectMap, "value", s.Value) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type SecureString. -func (s *SecureString) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "type": - err = unpopulate(val, "Type", &s.Type) - delete(rawMsg, key) - case "value": - err = unpopulate(val, "Value", &s.Value) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type SecurityAlertPolicyProperties. -func (s SecurityAlertPolicyProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populateTimeRFC3339(objectMap, "creationTime", s.CreationTime) - populate(objectMap, "disabledAlerts", s.DisabledAlerts) - populate(objectMap, "emailAccountAdmins", s.EmailAccountAdmins) - populate(objectMap, "emailAddresses", s.EmailAddresses) - populate(objectMap, "retentionDays", s.RetentionDays) - populate(objectMap, "state", s.State) - populate(objectMap, "storageAccountAccessKey", s.StorageAccountAccessKey) - populate(objectMap, "storageEndpoint", s.StorageEndpoint) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type SecurityAlertPolicyProperties. -func (s *SecurityAlertPolicyProperties) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "creationTime": - err = unpopulateTimeRFC3339(val, "CreationTime", &s.CreationTime) - delete(rawMsg, key) - case "disabledAlerts": - err = unpopulate(val, "DisabledAlerts", &s.DisabledAlerts) - delete(rawMsg, key) - case "emailAccountAdmins": - err = unpopulate(val, "EmailAccountAdmins", &s.EmailAccountAdmins) - delete(rawMsg, key) - case "emailAddresses": - err = unpopulate(val, "EmailAddresses", &s.EmailAddresses) - delete(rawMsg, key) - case "retentionDays": - err = unpopulate(val, "RetentionDays", &s.RetentionDays) - delete(rawMsg, key) - case "state": - err = unpopulate(val, "State", &s.State) - delete(rawMsg, key) - case "storageAccountAccessKey": - err = unpopulate(val, "StorageAccountAccessKey", &s.StorageAccountAccessKey) - delete(rawMsg, key) - case "storageEndpoint": - err = unpopulate(val, "StorageEndpoint", &s.StorageEndpoint) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type SelfHostedIntegrationRuntime. -func (s SelfHostedIntegrationRuntime) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "description", s.Description) - objectMap["type"] = IntegrationRuntimeTypeSelfHosted - populate(objectMap, "typeProperties", s.TypeProperties) - if s.AdditionalProperties != nil { - for key, val := range s.AdditionalProperties { - objectMap[key] = val - } - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type SelfHostedIntegrationRuntime. -func (s *SelfHostedIntegrationRuntime) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "description": - err = unpopulate(val, "Description", &s.Description) - delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &s.Type) - delete(rawMsg, key) - case "typeProperties": - err = unpopulate(val, "TypeProperties", &s.TypeProperties) - delete(rawMsg, key) - default: - if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} - } - if val != nil { - var aux interface{} - err = json.Unmarshal(val, &aux) - s.AdditionalProperties[key] = aux - } - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - } - return nil -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type SelfHostedIntegrationRuntimeNode. -func (s *SelfHostedIntegrationRuntimeNode) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "capabilities": - err = unpopulate(val, "Capabilities", &s.Capabilities) - delete(rawMsg, key) - case "concurrentJobsLimit": - err = unpopulate(val, "ConcurrentJobsLimit", &s.ConcurrentJobsLimit) - delete(rawMsg, key) - case "expiryTime": - err = unpopulateTimeRFC3339(val, "ExpiryTime", &s.ExpiryTime) - delete(rawMsg, key) - case "hostServiceUri": - err = unpopulate(val, "HostServiceURI", &s.HostServiceURI) - delete(rawMsg, key) - case "isActiveDispatcher": - err = unpopulate(val, "IsActiveDispatcher", &s.IsActiveDispatcher) - delete(rawMsg, key) - case "lastConnectTime": - err = unpopulateTimeRFC3339(val, "LastConnectTime", &s.LastConnectTime) - delete(rawMsg, key) - case "lastEndUpdateTime": - err = unpopulateTimeRFC3339(val, "LastEndUpdateTime", &s.LastEndUpdateTime) - delete(rawMsg, key) - case "lastStartTime": - err = unpopulateTimeRFC3339(val, "LastStartTime", &s.LastStartTime) - delete(rawMsg, key) - case "lastStartUpdateTime": - err = unpopulateTimeRFC3339(val, "LastStartUpdateTime", &s.LastStartUpdateTime) - delete(rawMsg, key) - case "lastStopTime": - err = unpopulateTimeRFC3339(val, "LastStopTime", &s.LastStopTime) - delete(rawMsg, key) - case "lastUpdateResult": - err = unpopulate(val, "LastUpdateResult", &s.LastUpdateResult) - delete(rawMsg, key) - case "machineName": - err = unpopulate(val, "MachineName", &s.MachineName) - delete(rawMsg, key) - case "maxConcurrentJobs": - err = unpopulate(val, "MaxConcurrentJobs", &s.MaxConcurrentJobs) - delete(rawMsg, key) - case "nodeName": - err = unpopulate(val, "NodeName", &s.NodeName) - delete(rawMsg, key) - case "registerTime": - err = unpopulateTimeRFC3339(val, "RegisterTime", &s.RegisterTime) - delete(rawMsg, key) - case "status": - err = unpopulate(val, "Status", &s.Status) - delete(rawMsg, key) - case "version": - err = unpopulate(val, "Version", &s.Version) - delete(rawMsg, key) - case "versionStatus": - err = unpopulate(val, "VersionStatus", &s.VersionStatus) - delete(rawMsg, key) - default: - if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} - } - if val != nil { - var aux interface{} - err = json.Unmarshal(val, &aux) - s.AdditionalProperties[key] = aux - } - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - } - return nil -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type SelfHostedIntegrationRuntimeStatus. -func (s *SelfHostedIntegrationRuntimeStatus) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "dataFactoryName": - err = unpopulate(val, "DataFactoryName", &s.DataFactoryName) - delete(rawMsg, key) - case "state": - err = unpopulate(val, "State", &s.State) - delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &s.Type) - delete(rawMsg, key) - case "typeProperties": - err = unpopulate(val, "TypeProperties", &s.TypeProperties) - delete(rawMsg, key) - default: - if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} - } - if val != nil { - var aux interface{} - err = json.Unmarshal(val, &aux) - s.AdditionalProperties[key] = aux - } - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - } - return nil -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type SelfHostedIntegrationRuntimeStatusTypeProperties. -func (s *SelfHostedIntegrationRuntimeStatusTypeProperties) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "autoUpdate": - err = unpopulate(val, "AutoUpdate", &s.AutoUpdate) - delete(rawMsg, key) - case "autoUpdateETA": - err = unpopulateTimeRFC3339(val, "AutoUpdateETA", &s.AutoUpdateETA) - delete(rawMsg, key) - case "capabilities": - err = unpopulate(val, "Capabilities", &s.Capabilities) - delete(rawMsg, key) - case "createTime": - err = unpopulateTimeRFC3339(val, "CreateTime", &s.CreateTime) - delete(rawMsg, key) - case "internalChannelEncryption": - err = unpopulate(val, "InternalChannelEncryption", &s.InternalChannelEncryption) - delete(rawMsg, key) - case "latestVersion": - err = unpopulate(val, "LatestVersion", &s.LatestVersion) - delete(rawMsg, key) - case "links": - err = unpopulate(val, "Links", &s.Links) - delete(rawMsg, key) - case "localTimeZoneOffset": - err = unpopulate(val, "LocalTimeZoneOffset", &s.LocalTimeZoneOffset) - delete(rawMsg, key) - case "newerVersions": - err = unpopulate(val, "NewerVersions", &s.NewerVersions) - delete(rawMsg, key) - case "nodeCommunicationChannelEncryptionMode": - err = unpopulate(val, "NodeCommunicationChannelEncryptionMode", &s.NodeCommunicationChannelEncryptionMode) - delete(rawMsg, key) - case "nodes": - err = unpopulate(val, "Nodes", &s.Nodes) - delete(rawMsg, key) - case "pushedVersion": - err = unpopulate(val, "PushedVersion", &s.PushedVersion) - delete(rawMsg, key) - case "scheduledUpdateDate": - err = unpopulateTimeRFC3339(val, "ScheduledUpdateDate", &s.ScheduledUpdateDate) - delete(rawMsg, key) - case "serviceRegion": - err = unpopulate(val, "ServiceRegion", &s.ServiceRegion) - delete(rawMsg, key) - case "serviceUrls": - err = unpopulate(val, "ServiceUrls", &s.ServiceUrls) - delete(rawMsg, key) - case "taskQueueId": - err = unpopulate(val, "TaskQueueID", &s.TaskQueueID) - delete(rawMsg, key) - case "updateDelayOffset": - err = unpopulate(val, "UpdateDelayOffset", &s.UpdateDelayOffset) - delete(rawMsg, key) - case "version": - err = unpopulate(val, "Version", &s.Version) - delete(rawMsg, key) - case "versionStatus": - err = unpopulate(val, "VersionStatus", &s.VersionStatus) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type SelfHostedIntegrationRuntimeTypeProperties. -func (s SelfHostedIntegrationRuntimeTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "linkedInfo", s.LinkedInfo) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type SelfHostedIntegrationRuntimeTypeProperties. -func (s *SelfHostedIntegrationRuntimeTypeProperties) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "linkedInfo": - s.LinkedInfo, err = unmarshalLinkedIntegrationRuntimeTypeClassification(val) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type SensitivityLabelUpdateList. -func (s SensitivityLabelUpdateList) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "operations", s.Operations) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type ServerBlobAuditingPolicyProperties. -func (s ServerBlobAuditingPolicyProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "auditActionsAndGroups", s.AuditActionsAndGroups) - populate(objectMap, "isAzureMonitorTargetEnabled", s.IsAzureMonitorTargetEnabled) - populate(objectMap, "isDevopsAuditEnabled", s.IsDevopsAuditEnabled) - populate(objectMap, "isStorageSecondaryKeyInUse", s.IsStorageSecondaryKeyInUse) - populate(objectMap, "queueDelayMs", s.QueueDelayMs) - populate(objectMap, "retentionDays", s.RetentionDays) - populate(objectMap, "state", s.State) - populate(objectMap, "storageAccountAccessKey", s.StorageAccountAccessKey) - populate(objectMap, "storageAccountSubscriptionId", s.StorageAccountSubscriptionID) - populate(objectMap, "storageEndpoint", s.StorageEndpoint) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type ServerSecurityAlertPolicyProperties. -func (s ServerSecurityAlertPolicyProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populateTimeRFC3339(objectMap, "creationTime", s.CreationTime) - populate(objectMap, "disabledAlerts", s.DisabledAlerts) - populate(objectMap, "emailAccountAdmins", s.EmailAccountAdmins) - populate(objectMap, "emailAddresses", s.EmailAddresses) - populate(objectMap, "retentionDays", s.RetentionDays) - populate(objectMap, "state", s.State) - populate(objectMap, "storageAccountAccessKey", s.StorageAccountAccessKey) - populate(objectMap, "storageEndpoint", s.StorageEndpoint) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type ServerSecurityAlertPolicyProperties. -func (s *ServerSecurityAlertPolicyProperties) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "creationTime": - err = unpopulateTimeRFC3339(val, "CreationTime", &s.CreationTime) - delete(rawMsg, key) - case "disabledAlerts": - err = unpopulate(val, "DisabledAlerts", &s.DisabledAlerts) - delete(rawMsg, key) - case "emailAccountAdmins": - err = unpopulate(val, "EmailAccountAdmins", &s.EmailAccountAdmins) - delete(rawMsg, key) - case "emailAddresses": - err = unpopulate(val, "EmailAddresses", &s.EmailAddresses) - delete(rawMsg, key) - case "retentionDays": - err = unpopulate(val, "RetentionDays", &s.RetentionDays) - delete(rawMsg, key) - case "state": - err = unpopulate(val, "State", &s.State) - delete(rawMsg, key) - case "storageAccountAccessKey": - err = unpopulate(val, "StorageAccountAccessKey", &s.StorageAccountAccessKey) - delete(rawMsg, key) - case "storageEndpoint": - err = unpopulate(val, "StorageEndpoint", &s.StorageEndpoint) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - } - return nil -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type ServerUsage. -func (s *ServerUsage) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "currentValue": - err = unpopulate(val, "CurrentValue", &s.CurrentValue) - delete(rawMsg, key) - case "displayName": - err = unpopulate(val, "DisplayName", &s.DisplayName) - delete(rawMsg, key) - case "limit": - err = unpopulate(val, "Limit", &s.Limit) - delete(rawMsg, key) - case "name": - err = unpopulate(val, "Name", &s.Name) - delete(rawMsg, key) - case "nextResetTime": - err = unpopulateTimeRFC3339(val, "NextResetTime", &s.NextResetTime) - delete(rawMsg, key) - case "resourceName": - err = unpopulate(val, "ResourceName", &s.ResourceName) - delete(rawMsg, key) - case "unit": - err = unpopulate(val, "Unit", &s.Unit) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type SparkConfigProperties. -func (s SparkConfigProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "configurationType", s.ConfigurationType) - populate(objectMap, "content", s.Content) - populate(objectMap, "filename", s.Filename) - populateTimeRFC3339(objectMap, "time", s.Time) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type SparkConfigProperties. -func (s *SparkConfigProperties) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "configurationType": - err = unpopulate(val, "ConfigurationType", &s.ConfigurationType) - delete(rawMsg, key) - case "content": - err = unpopulate(val, "Content", &s.Content) - delete(rawMsg, key) - case "filename": - err = unpopulate(val, "Filename", &s.Filename) - delete(rawMsg, key) - case "time": - err = unpopulateTimeRFC3339(val, "Time", &s.Time) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type SparkConfigurationInfo. -func (s SparkConfigurationInfo) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "annotations", s.Annotations) - populate(objectMap, "configs", s.Configs) - populateTimeRFC3339(objectMap, "created", s.Created) - populate(objectMap, "createdBy", s.CreatedBy) - populate(objectMap, "description", s.Description) - populate(objectMap, "notes", s.Notes) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type SparkConfigurationInfo. -func (s *SparkConfigurationInfo) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "annotations": - err = unpopulate(val, "Annotations", &s.Annotations) - delete(rawMsg, key) - case "configs": - err = unpopulate(val, "Configs", &s.Configs) - delete(rawMsg, key) - case "created": - err = unpopulateTimeRFC3339(val, "Created", &s.Created) - delete(rawMsg, key) - case "createdBy": - err = unpopulate(val, "CreatedBy", &s.CreatedBy) - delete(rawMsg, key) - case "description": - err = unpopulate(val, "Description", &s.Description) - delete(rawMsg, key) - case "notes": - err = unpopulate(val, "Notes", &s.Notes) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - } - return nil -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type SsisEnvironment. -func (s *SsisEnvironment) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "description": - err = unpopulate(val, "Description", &s.Description) - delete(rawMsg, key) - case "folderId": - err = unpopulate(val, "FolderID", &s.FolderID) - delete(rawMsg, key) - case "id": - err = unpopulate(val, "ID", &s.ID) - delete(rawMsg, key) - case "name": - err = unpopulate(val, "Name", &s.Name) - delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &s.Type) - delete(rawMsg, key) - case "variables": - err = unpopulate(val, "Variables", &s.Variables) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - } - return nil -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type SsisFolder. -func (s *SsisFolder) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "description": - err = unpopulate(val, "Description", &s.Description) - delete(rawMsg, key) - case "id": - err = unpopulate(val, "ID", &s.ID) - delete(rawMsg, key) - case "name": - err = unpopulate(val, "Name", &s.Name) - delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &s.Type) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - } - return nil -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type SsisObjectMetadataListResponse. -func (s *SsisObjectMetadataListResponse) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "nextLink": - err = unpopulate(val, "NextLink", &s.NextLink) - delete(rawMsg, key) - case "value": - s.Value, err = unmarshalSsisObjectMetadataClassificationArray(val) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - } - return nil -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type SsisPackage. -func (s *SsisPackage) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "description": - err = unpopulate(val, "Description", &s.Description) - delete(rawMsg, key) - case "folderId": - err = unpopulate(val, "FolderID", &s.FolderID) - delete(rawMsg, key) - case "id": - err = unpopulate(val, "ID", &s.ID) - delete(rawMsg, key) - case "name": - err = unpopulate(val, "Name", &s.Name) - delete(rawMsg, key) - case "parameters": - err = unpopulate(val, "Parameters", &s.Parameters) - delete(rawMsg, key) - case "projectId": - err = unpopulate(val, "ProjectID", &s.ProjectID) - delete(rawMsg, key) - case "projectVersion": - err = unpopulate(val, "ProjectVersion", &s.ProjectVersion) - delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &s.Type) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - } - return nil -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type SsisProject. -func (s *SsisProject) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "description": - err = unpopulate(val, "Description", &s.Description) - delete(rawMsg, key) - case "environmentRefs": - err = unpopulate(val, "EnvironmentRefs", &s.EnvironmentRefs) - delete(rawMsg, key) - case "folderId": - err = unpopulate(val, "FolderID", &s.FolderID) - delete(rawMsg, key) - case "id": - err = unpopulate(val, "ID", &s.ID) - delete(rawMsg, key) - case "name": - err = unpopulate(val, "Name", &s.Name) - delete(rawMsg, key) - case "parameters": - err = unpopulate(val, "Parameters", &s.Parameters) - delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &s.Type) - delete(rawMsg, key) - case "version": - err = unpopulate(val, "Version", &s.Version) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type SystemData. -func (s SystemData) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populateTimeRFC3339(objectMap, "createdAt", s.CreatedAt) - populate(objectMap, "createdBy", s.CreatedBy) - populate(objectMap, "createdByType", s.CreatedByType) - populateTimeRFC3339(objectMap, "lastModifiedAt", s.LastModifiedAt) - populate(objectMap, "lastModifiedBy", s.LastModifiedBy) - populate(objectMap, "lastModifiedByType", s.LastModifiedByType) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type SystemData. -func (s *SystemData) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "createdAt": - err = unpopulateTimeRFC3339(val, "CreatedAt", &s.CreatedAt) - delete(rawMsg, key) - case "createdBy": - err = unpopulate(val, "CreatedBy", &s.CreatedBy) - delete(rawMsg, key) - case "createdByType": - err = unpopulate(val, "CreatedByType", &s.CreatedByType) - delete(rawMsg, key) - case "lastModifiedAt": - err = unpopulateTimeRFC3339(val, "LastModifiedAt", &s.LastModifiedAt) - delete(rawMsg, key) - case "lastModifiedBy": - err = unpopulate(val, "LastModifiedBy", &s.LastModifiedBy) - delete(rawMsg, key) - case "lastModifiedByType": - err = unpopulate(val, "LastModifiedByType", &s.LastModifiedByType) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type TableLevelSharingProperties. -func (t TableLevelSharingProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "externalTablesToExclude", t.ExternalTablesToExclude) - populate(objectMap, "externalTablesToInclude", t.ExternalTablesToInclude) - populate(objectMap, "materializedViewsToExclude", t.MaterializedViewsToExclude) - populate(objectMap, "materializedViewsToInclude", t.MaterializedViewsToInclude) - populate(objectMap, "tablesToExclude", t.TablesToExclude) - populate(objectMap, "tablesToInclude", t.TablesToInclude) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type TopQueries. -func (t *TopQueries) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", t, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "aggregationFunction": - err = unpopulate(val, "AggregationFunction", &t.AggregationFunction) - delete(rawMsg, key) - case "executionType": - err = unpopulate(val, "ExecutionType", &t.ExecutionType) - delete(rawMsg, key) - case "intervalType": - err = unpopulate(val, "IntervalType", &t.IntervalType) - delete(rawMsg, key) - case "numberOfTopQueries": - err = unpopulate(val, "NumberOfTopQueries", &t.NumberOfTopQueries) - delete(rawMsg, key) - case "observationEndTime": - err = unpopulateTimeRFC3339(val, "ObservationEndTime", &t.ObservationEndTime) - delete(rawMsg, key) - case "observationStartTime": - err = unpopulateTimeRFC3339(val, "ObservationStartTime", &t.ObservationStartTime) - delete(rawMsg, key) - case "observedMetric": - err = unpopulate(val, "ObservedMetric", &t.ObservedMetric) - delete(rawMsg, key) - case "queries": - err = unpopulate(val, "Queries", &t.Queries) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", t, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type TrackedResource. -func (t TrackedResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", t.ID) - populate(objectMap, "location", t.Location) - populate(objectMap, "name", t.Name) - populate(objectMap, "tags", t.Tags) - populate(objectMap, "type", t.Type) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type UpdateIntegrationRuntimeNodeRequest. -func (u UpdateIntegrationRuntimeNodeRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "concurrentJobsLimit", u.ConcurrentJobsLimit) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type UpdateIntegrationRuntimeRequest. -func (u UpdateIntegrationRuntimeRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "autoUpdate", u.AutoUpdate) - populate(objectMap, "updateDelayOffset", u.UpdateDelayOffset) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type VulnerabilityAssessmentRecurringScansProperties. -func (v VulnerabilityAssessmentRecurringScansProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "emailSubscriptionAdmins", v.EmailSubscriptionAdmins) - populate(objectMap, "emails", v.Emails) - populate(objectMap, "isEnabled", v.IsEnabled) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type VulnerabilityAssessmentScanRecordProperties. -func (v VulnerabilityAssessmentScanRecordProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populateTimeRFC3339(objectMap, "endTime", v.EndTime) - populate(objectMap, "errors", v.Errors) - populate(objectMap, "numberOfFailedSecurityChecks", v.NumberOfFailedSecurityChecks) - populate(objectMap, "scanId", v.ScanID) - populateTimeRFC3339(objectMap, "startTime", v.StartTime) - populate(objectMap, "state", v.State) - populate(objectMap, "storageContainerPath", v.StorageContainerPath) - populate(objectMap, "triggerType", v.TriggerType) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type VulnerabilityAssessmentScanRecordProperties. -func (v *VulnerabilityAssessmentScanRecordProperties) 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", v, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "endTime": - err = unpopulateTimeRFC3339(val, "EndTime", &v.EndTime) - delete(rawMsg, key) - case "errors": - err = unpopulate(val, "Errors", &v.Errors) - delete(rawMsg, key) - case "numberOfFailedSecurityChecks": - err = unpopulate(val, "NumberOfFailedSecurityChecks", &v.NumberOfFailedSecurityChecks) - delete(rawMsg, key) - case "scanId": - err = unpopulate(val, "ScanID", &v.ScanID) - delete(rawMsg, key) - case "startTime": - err = unpopulateTimeRFC3339(val, "StartTime", &v.StartTime) - delete(rawMsg, key) - case "state": - err = unpopulate(val, "State", &v.State) - delete(rawMsg, key) - case "storageContainerPath": - err = unpopulate(val, "StorageContainerPath", &v.StorageContainerPath) - delete(rawMsg, key) - case "triggerType": - err = unpopulate(val, "TriggerType", &v.TriggerType) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", v, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type Workspace. -func (w Workspace) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", w.ID) - populate(objectMap, "identity", w.Identity) - populate(objectMap, "location", w.Location) - populate(objectMap, "name", w.Name) - populate(objectMap, "properties", w.Properties) - populate(objectMap, "tags", w.Tags) - populate(objectMap, "type", w.Type) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type WorkspacePatchInfo. -func (w WorkspacePatchInfo) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "identity", w.Identity) - populate(objectMap, "properties", w.Properties) - populate(objectMap, "tags", w.Tags) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type WorkspaceProperties. -func (w WorkspaceProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "adlaResourceId", w.AdlaResourceID) - populate(objectMap, "azureADOnlyAuthentication", w.AzureADOnlyAuthentication) - populate(objectMap, "connectivityEndpoints", w.ConnectivityEndpoints) - populate(objectMap, "cspWorkspaceAdminProperties", w.CspWorkspaceAdminProperties) - populate(objectMap, "defaultDataLakeStorage", w.DefaultDataLakeStorage) - populate(objectMap, "encryption", w.Encryption) - populate(objectMap, "extraProperties", w.ExtraProperties) - populate(objectMap, "managedResourceGroupName", w.ManagedResourceGroupName) - populate(objectMap, "managedVirtualNetwork", w.ManagedVirtualNetwork) - populate(objectMap, "managedVirtualNetworkSettings", w.ManagedVirtualNetworkSettings) - populate(objectMap, "privateEndpointConnections", w.PrivateEndpointConnections) - populate(objectMap, "provisioningState", w.ProvisioningState) - populate(objectMap, "publicNetworkAccess", w.PublicNetworkAccess) - populate(objectMap, "purviewConfiguration", w.PurviewConfiguration) - populate(objectMap, "sqlAdministratorLogin", w.SQLAdministratorLogin) - populate(objectMap, "sqlAdministratorLoginPassword", w.SQLAdministratorLoginPassword) - populate(objectMap, "settings", w.Settings) - populate(objectMap, "trustedServiceBypassEnabled", w.TrustedServiceBypassEnabled) - populate(objectMap, "virtualNetworkProfile", w.VirtualNetworkProfile) - populate(objectMap, "workspaceRepositoryConfiguration", w.WorkspaceRepositoryConfiguration) - populate(objectMap, "workspaceUID", w.WorkspaceUID) - return json.Marshal(objectMap) -} - -func populate(m map[string]interface{}, k string, v interface{}) { - if v == nil { - return - } else if azcore.IsNullValue(v) { - m[k] = nil - } else if !reflect.ValueOf(v).IsNil() { - m[k] = v - } -} - -func unpopulate(data json.RawMessage, fn string, v interface{}) error { - if data == nil { - return nil - } - if err := json.Unmarshal(data, v); err != nil { - return fmt.Errorf("struct field %s: %v", fn, err) - } - return nil -} From 75ed7bc05b8a68e7ad698e244804b5f9d1956041 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Wed, 22 Feb 2023 03:50:47 -0500 Subject: [PATCH 040/107] [Release] sdk/resourcemanager/reservations/armreservations/2.0.0 (#19912) * [Release] sdk/resourcemanager/reservations/armreservations/2.0.0 generation from spec commit: 630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f * update CHANGELOG.md --------- Co-authored-by: ReleaseHelper Co-authored-by: Alancere <804873052@qq.com> --- .../reservations/armreservations/CHANGELOG.md | 42 + .../reservations/armreservations/autorest.md | 6 +- .../azurereservationapi_client.go | 80 +- ...azurereservationapi_client_example_test.go | 194 ++++- .../calculateexchange_client.go | 18 +- .../calculateexchange_client_example_test.go | 125 ++- .../armreservations/calculaterefund_client.go | 15 +- .../calculaterefund_client_example_test.go | 57 +- .../reservations/armreservations/constants.go | 61 +- .../reservations/armreservations/date_type.go | 2 +- .../armreservations/exchange_client.go | 16 +- .../exchange_client_example_test.go | 112 ++- .../reservations/armreservations/go.mod | 8 +- .../reservations/armreservations/go.sum | 15 +- .../reservations/armreservations/models.go | 509 ++++++++--- .../armreservations/models_serde.go | 656 ++++++++++++--- .../armreservations/operation_client.go | 11 +- .../operation_client_example_test.go | 105 ++- .../armreservations/quota_client.go | 60 +- .../quota_client_example_test.go | 276 +++++- .../quotarequeststatus_client.go | 25 +- .../quotarequeststatus_client_example_test.go | 205 ++++- .../armreservations/reservation_client.go | 167 ++-- .../reservation_client_example_test.go | 787 +++++++++++++++++- .../reservationorder_client.go | 61 +- .../reservationorder_client_example_test.go | 326 +++++++- .../armreservations/response_types.go | 41 +- .../armreservations/return_client.go | 59 +- .../return_client_example_test.go | 13 +- .../armreservations/time_rfc3339.go | 2 +- 30 files changed, 3484 insertions(+), 570 deletions(-) diff --git a/sdk/resourcemanager/reservations/armreservations/CHANGELOG.md b/sdk/resourcemanager/reservations/armreservations/CHANGELOG.md index 5ca7d6a3d111..b87d6273f886 100644 --- a/sdk/resourcemanager/reservations/armreservations/CHANGELOG.md +++ b/sdk/resourcemanager/reservations/armreservations/CHANGELOG.md @@ -1,5 +1,47 @@ # Release History +## 2.0.0 (2023-02-24) +### Breaking Changes + +- Operation `*AzureReservationAPIClient.GetCatalog` has supported pagination, use `*AzureReservationAPIClient.NewGetCatalogPager` instead. +- Operation `*ReturnClient.Post` has been changed to LRO, use `*ReturnClient.BeginPost` instead. + +### Features Added + +- New value `AppliedScopeTypeManagementGroup` added to type alias `AppliedScopeType` +- New value `DisplayProvisioningStateNoBenefit`, `DisplayProvisioningStateWarning` added to type alias `DisplayProvisioningState` +- New type alias `BillingPlan` with values `BillingPlanP1M` +- New type alias `CommitmentGrain` with values `CommitmentGrainHourly` +- New type alias `SavingsPlanTerm` with values `SavingsPlanTermP1Y`, `SavingsPlanTermP3Y` +- New struct `AppliedScopeProperties` +- New struct `CatalogsResult` +- New struct `Commitment` +- New struct `ProxyResource` +- New struct `ReservationSwapProperties` +- New struct `Resource` +- New struct `SavingsPlanPurchaseRequest` +- New struct `SavingsPlanPurchaseRequestProperties` +- New struct `SavingsPlanToPurchaseCalculateExchange` +- New struct `SavingsPlanToPurchaseExchange` +- New anonymous field `CatalogsResult` in struct `AzureReservationAPIClientGetCatalogResponse` +- New field `SavingsPlansToPurchase` in struct `CalculateExchangeRequestProperties` +- New field `SavingsPlansToPurchase` in struct `CalculateExchangeResponseProperties` +- New field `SavingsPlansToPurchase` in struct `ExchangeResponseProperties` +- New field `AppliedScopeProperties` in struct `PatchProperties` +- New field `ReviewDateTime` in struct `PatchProperties` +- New field `AppliedScopeProperties` in struct `Properties` +- New field `ExpiryDateTime` in struct `Properties` +- New field `PurchaseDateTime` in struct `Properties` +- New field `ReviewDateTime` in struct `Properties` +- New field `SwapProperties` in struct `Properties` +- New field `AppliedScopeProperties` in struct `PurchaseRequestProperties` +- New field `ReviewDateTime` in struct `PurchaseRequestProperties` +- New field `ExpiryDateTime` in struct `ReservationOrderProperties` +- New field `ReviewDateTime` in struct `ReservationOrderProperties` +- New field `NoBenefitCount` in struct `ReservationSummary` +- New field `WarningCount` in struct `ReservationSummary` + + ## 1.1.0 (2022-09-16) ### Features Added diff --git a/sdk/resourcemanager/reservations/armreservations/autorest.md b/sdk/resourcemanager/reservations/armreservations/autorest.md index 618f8033fa82..d7ba676e93c6 100644 --- a/sdk/resourcemanager/reservations/armreservations/autorest.md +++ b/sdk/resourcemanager/reservations/armreservations/autorest.md @@ -5,9 +5,9 @@ ``` yaml azure-arm: true require: -- https://github.com/Azure/azure-rest-api-specs/blob/0507c3d410681049bb5cd9545b49a7578a91d3d0/specification/reservations/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/0507c3d410681049bb5cd9545b49a7578a91d3d0/specification/reservations/resource-manager/readme.go.md +- https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/reservations/resource-manager/readme.md +- https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/reservations/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 1.1.0 +module-version: 2.0.0 ``` \ No newline at end of file diff --git a/sdk/resourcemanager/reservations/armreservations/azurereservationapi_client.go b/sdk/resourcemanager/reservations/armreservations/azurereservationapi_client.go index 3f2e6950939e..239495f0b3c6 100644 --- a/sdk/resourcemanager/reservations/armreservations/azurereservationapi_client.go +++ b/sdk/resourcemanager/reservations/armreservations/azurereservationapi_client.go @@ -20,6 +20,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "net/http" "net/url" + "strconv" "strings" ) @@ -31,8 +32,8 @@ type AzureReservationAPIClient struct { } // NewAzureReservationAPIClient creates a new instance of AzureReservationAPIClient with the specified values. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewAzureReservationAPIClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*AzureReservationAPIClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -55,10 +56,11 @@ func NewAzureReservationAPIClient(credential azcore.TokenCredential, options *ar // GetAppliedReservationList - Get applicable Reservations that are applied to this subscription or a resource group under // this subscription. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// subscriptionID - Id of the subscription -// options - AzureReservationAPIClientGetAppliedReservationListOptions contains the optional parameters for the AzureReservationAPIClient.GetAppliedReservationList -// method. +// +// Generated from API version 2022-11-01 +// - subscriptionID - Id of the subscription +// - options - AzureReservationAPIClientGetAppliedReservationListOptions contains the optional parameters for the AzureReservationAPIClient.GetAppliedReservationList +// method. func (client *AzureReservationAPIClient) GetAppliedReservationList(ctx context.Context, subscriptionID string, options *AzureReservationAPIClientGetAppliedReservationListOptions) (AzureReservationAPIClientGetAppliedReservationListResponse, error) { req, err := client.getAppliedReservationListCreateRequest(ctx, subscriptionID, options) if err != nil { @@ -86,7 +88,7 @@ func (client *AzureReservationAPIClient) getAppliedReservationListCreateRequest( return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -101,25 +103,38 @@ func (client *AzureReservationAPIClient) getAppliedReservationListHandleResponse return result, nil } -// GetCatalog - Get the regions and skus that are available for RI purchase for the specified Azure subscription. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// subscriptionID - Id of the subscription -// options - AzureReservationAPIClientGetCatalogOptions contains the optional parameters for the AzureReservationAPIClient.GetCatalog -// method. -func (client *AzureReservationAPIClient) GetCatalog(ctx context.Context, subscriptionID string, options *AzureReservationAPIClientGetCatalogOptions) (AzureReservationAPIClientGetCatalogResponse, error) { - req, err := client.getCatalogCreateRequest(ctx, subscriptionID, options) - if err != nil { - return AzureReservationAPIClientGetCatalogResponse{}, err - } - resp, err := client.pl.Do(req) - if err != nil { - return AzureReservationAPIClientGetCatalogResponse{}, err - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return AzureReservationAPIClientGetCatalogResponse{}, runtime.NewResponseError(resp) - } - return client.getCatalogHandleResponse(resp) +// NewGetCatalogPager - Get the regions and skus that are available for RI purchase for the specified Azure subscription. +// +// Generated from API version 2022-11-01 +// - subscriptionID - Id of the subscription +// - options - AzureReservationAPIClientGetCatalogOptions contains the optional parameters for the AzureReservationAPIClient.NewGetCatalogPager +// method. +func (client *AzureReservationAPIClient) NewGetCatalogPager(subscriptionID string, options *AzureReservationAPIClientGetCatalogOptions) *runtime.Pager[AzureReservationAPIClientGetCatalogResponse] { + return runtime.NewPager(runtime.PagingHandler[AzureReservationAPIClientGetCatalogResponse]{ + More: func(page AzureReservationAPIClientGetCatalogResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 + }, + Fetcher: func(ctx context.Context, page *AzureReservationAPIClientGetCatalogResponse) (AzureReservationAPIClientGetCatalogResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.getCatalogCreateRequest(ctx, subscriptionID, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return AzureReservationAPIClientGetCatalogResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return AzureReservationAPIClientGetCatalogResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return AzureReservationAPIClientGetCatalogResponse{}, runtime.NewResponseError(resp) + } + return client.getCatalogHandleResponse(resp) + }, + }) } // getCatalogCreateRequest creates the GetCatalog request. @@ -134,7 +149,7 @@ func (client *AzureReservationAPIClient) getCatalogCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-11-01") if options != nil && options.ReservedResourceType != nil { reqQP.Set("reservedResourceType", *options.ReservedResourceType) } @@ -150,6 +165,15 @@ func (client *AzureReservationAPIClient) getCatalogCreateRequest(ctx context.Con if options != nil && options.PlanID != nil { reqQP.Set("planId", *options.PlanID) } + if options != nil && options.Filter != nil { + reqQP.Set("$filter", *options.Filter) + } + if options != nil && options.Skip != nil { + reqQP.Set("$skip", strconv.FormatFloat(float64(*options.Skip), 'f', -1, 32)) + } + if options != nil && options.Take != nil { + reqQP.Set("$take", strconv.FormatFloat(float64(*options.Take), 'f', -1, 32)) + } req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -158,7 +182,7 @@ func (client *AzureReservationAPIClient) getCatalogCreateRequest(ctx context.Con // getCatalogHandleResponse handles the GetCatalog response. func (client *AzureReservationAPIClient) getCatalogHandleResponse(resp *http.Response) (AzureReservationAPIClientGetCatalogResponse, error) { result := AzureReservationAPIClientGetCatalogResponse{} - if err := runtime.UnmarshalAsJSON(resp, &result.CatalogArray); err != nil { + if err := runtime.UnmarshalAsJSON(resp, &result.CatalogsResult); err != nil { return AzureReservationAPIClientGetCatalogResponse{}, err } return result, nil diff --git a/sdk/resourcemanager/reservations/armreservations/azurereservationapi_client_example_test.go b/sdk/resourcemanager/reservations/armreservations/azurereservationapi_client_example_test.go index b44945c929bf..55dce3723819 100644 --- a/sdk/resourcemanager/reservations/armreservations/azurereservationapi_client_example_test.go +++ b/sdk/resourcemanager/reservations/armreservations/azurereservationapi_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armreservations_test @@ -14,11 +15,11 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/reservations/armreservations" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/reservations/armreservations/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/reservations/resource-manager/Microsoft.Capacity/stable/2022-03-01/examples/GetCatalog.json -func ExampleAzureReservationAPIClient_GetCatalog() { +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/reservations/resource-manager/Microsoft.Capacity/stable/2022-11-01/examples/GetCatalog.json +func ExampleAzureReservationAPIClient_NewGetCatalogPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -28,20 +29,169 @@ func ExampleAzureReservationAPIClient_GetCatalog() { if err != nil { log.Fatalf("failed to create client: %v", err) } - res, err := client.GetCatalog(ctx, "23bc208b-083f-4901-ae85-4f98c0c3b4b6", &armreservations.AzureReservationAPIClientGetCatalogOptions{ReservedResourceType: to.Ptr("VirtualMachines"), + pager := client.NewGetCatalogPager("23bc208b-083f-4901-ae85-4f98c0c3b4b6", &armreservations.AzureReservationAPIClientGetCatalogOptions{ReservedResourceType: to.Ptr("VirtualMachines"), Location: to.Ptr("eastus"), PublisherID: nil, OfferID: nil, PlanID: nil, + Filter: nil, + Skip: nil, + Take: nil, }) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.CatalogsResult = armreservations.CatalogsResult{ + // TotalItems: to.Ptr[int64](1000), + // Value: []*armreservations.Catalog{ + // { + // Name: to.Ptr("Standard_DS5_v2"), + // BillingPlans: map[string][]*armreservations.ReservationBillingPlan{ + // "P1Y": []*armreservations.ReservationBillingPlan{ + // to.Ptr(armreservations.ReservationBillingPlanUpfront), + // to.Ptr(armreservations.ReservationBillingPlanMonthly)}, + // "P3Y": []*armreservations.ReservationBillingPlan{ + // to.Ptr(armreservations.ReservationBillingPlanUpfront), + // to.Ptr(armreservations.ReservationBillingPlanMonthly)}, + // }, + // Locations: []*string{ + // to.Ptr("eastus")}, + // ResourceType: to.Ptr("VirtualMachines"), + // Restrictions: []*armreservations.SKURestriction{ + // }, + // SKUProperties: []*armreservations.SKUProperty{ + // { + // Name: to.Ptr("Cores"), + // Value: to.Ptr("16"), + // }, + // { + // Name: to.Ptr("ProductTitle"), + // Value: to.Ptr("DSv2 Series, DS5"), + // }, + // { + // Name: to.Ptr("ProductShortName"), + // Value: to.Ptr("DSv2 Series"), + // }, + // { + // Name: to.Ptr("SKUName"), + // Value: to.Ptr("DS5 v2"), + // }, + // { + // Name: to.Ptr("MeterId"), + // Value: to.Ptr("12bc208b-083f-4901-ae85-4f98c0c3b4b8"), + // }}, + // Terms: []*armreservations.ReservationTerm{ + // to.Ptr(armreservations.ReservationTermP1Y), + // to.Ptr(armreservations.ReservationTermP3Y)}, + // }, + // { + // Name: to.Ptr("Standard_D1"), + // BillingPlans: map[string][]*armreservations.ReservationBillingPlan{ + // "P1Y": []*armreservations.ReservationBillingPlan{ + // to.Ptr(armreservations.ReservationBillingPlanUpfront), + // to.Ptr(armreservations.ReservationBillingPlanMonthly)}, + // "P3Y": []*armreservations.ReservationBillingPlan{ + // to.Ptr(armreservations.ReservationBillingPlanUpfront), + // to.Ptr(armreservations.ReservationBillingPlanMonthly)}, + // }, + // Locations: []*string{ + // to.Ptr("eastus")}, + // ResourceType: to.Ptr("VirtualMachines"), + // Restrictions: []*armreservations.SKURestriction{ + // { + // Type: to.Ptr("Term"), + // ReasonCode: to.Ptr("NotAvailableForSubscription"), + // Values: []*string{ + // to.Ptr("P1Y")}, + // }, + // { + // Type: to.Ptr("Term"), + // ReasonCode: to.Ptr("NotAvailableForSubscription"), + // Values: []*string{ + // to.Ptr("P3Y")}, + // }}, + // SKUProperties: []*armreservations.SKUProperty{ + // { + // Name: to.Ptr("Cores"), + // Value: to.Ptr("1"), + // }, + // { + // Name: to.Ptr("ProductTitle"), + // Value: to.Ptr("D Series, D1"), + // }, + // { + // Name: to.Ptr("ProductShortName"), + // Value: to.Ptr("D Series"), + // }, + // { + // Name: to.Ptr("SKUName"), + // Value: to.Ptr("D1"), + // }, + // { + // Name: to.Ptr("MeterId"), + // Value: to.Ptr("12bc208b-083f-4901-ae85-4f98c0c3b4b8"), + // }}, + // Terms: []*armreservations.ReservationTerm{ + // to.Ptr(armreservations.ReservationTermP1Y), + // to.Ptr(armreservations.ReservationTermP3Y)}, + // }, + // { + // Name: to.Ptr("Standard_F2"), + // BillingPlans: map[string][]*armreservations.ReservationBillingPlan{ + // "P1Y": []*armreservations.ReservationBillingPlan{ + // to.Ptr(armreservations.ReservationBillingPlanUpfront), + // to.Ptr(armreservations.ReservationBillingPlanMonthly)}, + // "P3Y": []*armreservations.ReservationBillingPlan{ + // to.Ptr(armreservations.ReservationBillingPlanUpfront), + // to.Ptr(armreservations.ReservationBillingPlanMonthly)}, + // }, + // Locations: []*string{ + // to.Ptr("eastus")}, + // ResourceType: to.Ptr("VirtualMachines"), + // Restrictions: []*armreservations.SKURestriction{ + // { + // Type: to.Ptr("Location"), + // ReasonCode: to.Ptr("NotAvailableForSubscription"), + // Values: []*string{ + // to.Ptr("eastus")}, + // }}, + // SKUProperties: []*armreservations.SKUProperty{ + // { + // Name: to.Ptr("Cores"), + // Value: to.Ptr("2"), + // }, + // { + // Name: to.Ptr("ProductTitle"), + // Value: to.Ptr("F Series, F2"), + // }, + // { + // Name: to.Ptr("ProductShortName"), + // Value: to.Ptr("F Series"), + // }, + // { + // Name: to.Ptr("SKUName"), + // Value: to.Ptr("F2"), + // }, + // { + // Name: to.Ptr("MeterId"), + // Value: to.Ptr("12bc208b-083f-4901-ae85-4f98c0c3b4b8"), + // }}, + // Terms: []*armreservations.ReservationTerm{ + // to.Ptr(armreservations.ReservationTermP1Y), + // to.Ptr(armreservations.ReservationTermP3Y)}, + // }}, + // } } - // TODO: use response item - _ = res } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/reservations/resource-manager/Microsoft.Capacity/stable/2022-03-01/examples/GetAppliedReservations.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/reservations/resource-manager/Microsoft.Capacity/stable/2022-11-01/examples/GetAppliedReservations.json func ExampleAzureReservationAPIClient_GetAppliedReservationList() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -56,6 +206,30 @@ func ExampleAzureReservationAPIClient_GetAppliedReservationList() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.AppliedReservations = armreservations.AppliedReservations{ + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.Capacity/AppliedReservations"), + // ID: to.Ptr("/subscriptions/23bc208b-083f-4901-ae85-4f98c0c3b4b6/providers/microsoft.capacity/AppliedReservations/default"), + // Properties: &armreservations.AppliedReservationsProperties{ + // ReservationOrderIDs: &armreservations.AppliedReservationList{ + // Value: []*string{ + // to.Ptr("/providers/Microsoft.Capacity/reservationorders/e1eccf0b-2db4-4e84-97e7-98b50e9d46f7"), + // to.Ptr("/providers/Microsoft.Capacity/reservationorders/741a32eb-6158-4cee-9642-a0243ae79fac"), + // to.Ptr("/providers/Microsoft.Capacity/reservationorders/e061223d-fcff-4d10-bd49-56a740cfb96a"), + // to.Ptr("/providers/Microsoft.Capacity/reservationorders/2eeb7234-970e-4663-b60b-85241b515901"), + // to.Ptr("/providers/Microsoft.Capacity/reservationorders/9db2f4c5-b1c5-42a8-bd79-ee56cdde2c7f"), + // to.Ptr("/providers/Microsoft.Capacity/reservationorders/5da7a877-6d6e-44af-8880-ed3f533bf928"), + // to.Ptr("/providers/Microsoft.Capacity/reservationorders/f65b0d0a-f945-4105-821c-d00bc8bacde8"), + // to.Ptr("/providers/Microsoft.Capacity/reservationorders/51304124-e477-4b07-b9fa-03b05c8b924b"), + // to.Ptr("/providers/Microsoft.Capacity/reservationorders/f5409b98-8a42-4dc6-be0a-cc59bef4d0db"), + // to.Ptr("/providers/Microsoft.Capacity/reservationorders/a495550a-80a4-46f8-8843-34d4df46f9a6"), + // to.Ptr("/providers/Microsoft.Capacity/reservationorders/1a966e18-c272-4ce1-a0c2-d4e1039023c3"), + // to.Ptr("/providers/Microsoft.Capacity/reservationorders/939310b4-f9de-4645-9569-ab5b6cfe958e"), + // to.Ptr("/providers/Microsoft.Capacity/reservationorders/4193a889-7c3b-44dc-8b7b-bfd7aad6c723")}, + // }, + // }, + // } } diff --git a/sdk/resourcemanager/reservations/armreservations/calculateexchange_client.go b/sdk/resourcemanager/reservations/armreservations/calculateexchange_client.go index 8bc2907980a0..c3344aa85ed1 100644 --- a/sdk/resourcemanager/reservations/armreservations/calculateexchange_client.go +++ b/sdk/resourcemanager/reservations/armreservations/calculateexchange_client.go @@ -28,8 +28,8 @@ type CalculateExchangeClient struct { } // NewCalculateExchangeClient creates a new instance of CalculateExchangeClient with the specified values. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewCalculateExchangeClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*CalculateExchangeClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -51,10 +51,11 @@ func NewCalculateExchangeClient(credential azcore.TokenCredential, options *arm. // BeginPost - Calculates price for exchanging Reservations if there are no policy errors. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// body - Request containing purchases and refunds that need to be executed. -// options - CalculateExchangeClientBeginPostOptions contains the optional parameters for the CalculateExchangeClient.BeginPost -// method. +// +// Generated from API version 2022-11-01 +// - body - Request containing purchases and refunds that need to be executed. +// - options - CalculateExchangeClientBeginPostOptions contains the optional parameters for the CalculateExchangeClient.BeginPost +// method. func (client *CalculateExchangeClient) BeginPost(ctx context.Context, body CalculateExchangeRequest, options *CalculateExchangeClientBeginPostOptions) (*runtime.Poller[CalculateExchangeClientPostResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.post(ctx, body, options) @@ -71,7 +72,8 @@ func (client *CalculateExchangeClient) BeginPost(ctx context.Context, body Calcu // Post - Calculates price for exchanging Reservations if there are no policy errors. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2022-11-01 func (client *CalculateExchangeClient) post(ctx context.Context, body CalculateExchangeRequest, options *CalculateExchangeClientBeginPostOptions) (*http.Response, error) { req, err := client.postCreateRequest(ctx, body, options) if err != nil { @@ -95,7 +97,7 @@ func (client *CalculateExchangeClient) postCreateRequest(ctx context.Context, bo return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, body) diff --git a/sdk/resourcemanager/reservations/armreservations/calculateexchange_client_example_test.go b/sdk/resourcemanager/reservations/armreservations/calculateexchange_client_example_test.go index d3dbfd6bbf4e..1af0f9c8b9d4 100644 --- a/sdk/resourcemanager/reservations/armreservations/calculateexchange_client_example_test.go +++ b/sdk/resourcemanager/reservations/armreservations/calculateexchange_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armreservations_test @@ -14,10 +15,10 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/reservations/armreservations" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/reservations/armreservations/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/reservations/resource-manager/Microsoft.Capacity/stable/2022-03-01/examples/CalculateExchange.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/reservations/resource-manager/Microsoft.Capacity/stable/2022-11-01/examples/CalculateExchange.json func ExampleCalculateExchangeClient_BeginPost() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -55,6 +56,26 @@ func ExampleCalculateExchangeClient_BeginPost() { Name: to.Ptr("Standard_B1ls"), }, }}, + SavingsPlansToPurchase: []*armreservations.SavingsPlanPurchaseRequest{ + { + Properties: &armreservations.SavingsPlanPurchaseRequestProperties{ + AppliedScopeProperties: &armreservations.AppliedScopeProperties{ + ResourceGroupID: to.Ptr("/subscriptions/10000000-0000-0000-0000-000000000000/resourceGroups/testrg"), + }, + AppliedScopeType: to.Ptr(armreservations.AppliedScopeTypeSingle), + BillingScopeID: to.Ptr("/subscriptions/10000000-0000-0000-0000-000000000000"), + Commitment: &armreservations.Commitment{ + Amount: to.Ptr[float64](15.23), + CurrencyCode: to.Ptr("USD"), + Grain: to.Ptr(armreservations.CommitmentGrainHourly), + }, + DisplayName: to.Ptr("ComputeSavingsPlan"), + Term: to.Ptr(armreservations.SavingsPlanTermP1Y), + }, + SKU: &armreservations.SKUName{ + Name: to.Ptr("Compute_Savings_Plan"), + }, + }}, }, }, nil) if err != nil { @@ -64,6 +85,104 @@ func ExampleCalculateExchangeClient_BeginPost() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.CalculateExchangeOperationResultResponse = armreservations.CalculateExchangeOperationResultResponse{ + // Name: to.Ptr("4e2ffff7-b331-4fcb-ab11-b5fa49368188"), + // ID: to.Ptr("/providers/microsoft.capacity/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188"), + // Properties: &armreservations.CalculateExchangeResponseProperties{ + // NetPayable: &armreservations.Price{ + // Amount: to.Ptr[float64](149254.8), + // CurrencyCode: to.Ptr("USD"), + // }, + // PolicyResult: &armreservations.ExchangePolicyErrors{ + // }, + // PurchasesTotal: &armreservations.Price{ + // Amount: to.Ptr[float64](153214.8), + // CurrencyCode: to.Ptr("USD"), + // }, + // RefundsTotal: &armreservations.Price{ + // Amount: to.Ptr[float64](3960), + // CurrencyCode: to.Ptr("USD"), + // }, + // ReservationsToExchange: []*armreservations.ReservationToExchange{ + // { + // BillingInformation: &armreservations.BillingInformation{ + // BillingCurrencyProratedAmount: &armreservations.Price{ + // Amount: to.Ptr[float64](149254.8), + // CurrencyCode: to.Ptr("USD"), + // }, + // BillingCurrencyRemainingCommitmentAmount: &armreservations.Price{ + // Amount: to.Ptr[float64](0), + // CurrencyCode: to.Ptr("USD"), + // }, + // BillingCurrencyTotalPaidAmount: &armreservations.Price{ + // Amount: to.Ptr[float64](153214.8), + // CurrencyCode: to.Ptr("USD"), + // }, + // }, + // BillingRefundAmount: &armreservations.Price{ + // Amount: to.Ptr[float64](3960), + // CurrencyCode: to.Ptr("USD"), + // }, + // Quantity: to.Ptr[int32](1), + // ReservationID: to.Ptr("/providers/microsoft.capacity/reservationOrders/1f14354c-dc12-4c8d-8090-6f295a3a34aa/reservations/c8c926bd-fc5d-4e29-9d43-b68340ac23a6"), + // }}, + // ReservationsToPurchase: []*armreservations.ReservationToPurchaseCalculateExchange{ + // { + // BillingCurrencyTotal: &armreservations.Price{ + // Amount: to.Ptr[float64](19800), + // CurrencyCode: to.Ptr("USD"), + // }, + // Properties: &armreservations.PurchaseRequest{ + // Location: to.Ptr("westus"), + // Properties: &armreservations.PurchaseRequestProperties{ + // AppliedScopeType: to.Ptr(armreservations.AppliedScopeTypeShared), + // BillingPlan: to.Ptr(armreservations.ReservationBillingPlanUpfront), + // BillingScopeID: to.Ptr("/subscriptions/ed3a1871-612d-abcd-a849-c2542a68be83"), + // DisplayName: to.Ptr("testDisplayName"), + // Quantity: to.Ptr[int32](1), + // Renew: to.Ptr(false), + // ReservedResourceProperties: &armreservations.PurchaseRequestPropertiesReservedResourceProperties{ + // InstanceFlexibility: to.Ptr(armreservations.InstanceFlexibilityOn), + // }, + // ReservedResourceType: to.Ptr(armreservations.ReservedResourceTypeVirtualMachines), + // Term: to.Ptr(armreservations.ReservationTermP1Y), + // }, + // SKU: &armreservations.SKUName{ + // Name: to.Ptr("Standard_B1ls"), + // }, + // }, + // }}, + // SavingsPlansToPurchase: []*armreservations.SavingsPlanToPurchaseCalculateExchange{ + // { + // BillingCurrencyTotal: &armreservations.Price{ + // Amount: to.Ptr[float64](133414.8), + // CurrencyCode: to.Ptr("USD"), + // }, + // Properties: &armreservations.SavingsPlanPurchaseRequest{ + // Properties: &armreservations.SavingsPlanPurchaseRequestProperties{ + // AppliedScopeProperties: &armreservations.AppliedScopeProperties{ + // ResourceGroupID: to.Ptr("/subscriptions/10000000-0000-0000-0000-000000000000/resourceGroups/testrg"), + // }, + // AppliedScopeType: to.Ptr(armreservations.AppliedScopeTypeSingle), + // BillingScopeID: to.Ptr("/subscriptions/10000000-0000-0000-0000-000000000000"), + // Commitment: &armreservations.Commitment{ + // Amount: to.Ptr[float64](15.23), + // CurrencyCode: to.Ptr("USD"), + // Grain: to.Ptr(armreservations.CommitmentGrainHourly), + // }, + // DisplayName: to.Ptr("ComputeSavingsPlan"), + // Term: to.Ptr(armreservations.SavingsPlanTermP1Y), + // }, + // SKU: &armreservations.SKUName{ + // Name: to.Ptr("Compute_Savings_Plan"), + // }, + // }, + // }}, + // SessionID: to.Ptr("66e2ac8f-439e-4345-8235-6fef07608081"), + // }, + // Status: to.Ptr(armreservations.CalculateExchangeOperationResultStatusSucceeded), + // } } diff --git a/sdk/resourcemanager/reservations/armreservations/calculaterefund_client.go b/sdk/resourcemanager/reservations/armreservations/calculaterefund_client.go index b095ae5fcb34..77d5b1e25089 100644 --- a/sdk/resourcemanager/reservations/armreservations/calculaterefund_client.go +++ b/sdk/resourcemanager/reservations/armreservations/calculaterefund_client.go @@ -31,8 +31,8 @@ type CalculateRefundClient struct { } // NewCalculateRefundClient creates a new instance of CalculateRefundClient with the specified values. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewCalculateRefundClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*CalculateRefundClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -54,10 +54,11 @@ func NewCalculateRefundClient(credential azcore.TokenCredential, options *arm.Cl // Post - Calculate price for returning Reservations if there are no policy errors. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// reservationOrderID - Order Id of the reservation -// body - Information needed for calculating refund of a reservation. -// options - CalculateRefundClientPostOptions contains the optional parameters for the CalculateRefundClient.Post method. +// +// Generated from API version 2022-11-01 +// - reservationOrderID - Order Id of the reservation +// - body - Information needed for calculating refund of a reservation. +// - options - CalculateRefundClientPostOptions contains the optional parameters for the CalculateRefundClient.Post method. func (client *CalculateRefundClient) Post(ctx context.Context, reservationOrderID string, body CalculateRefundRequest, options *CalculateRefundClientPostOptions) (CalculateRefundClientPostResponse, error) { req, err := client.postCreateRequest(ctx, reservationOrderID, body, options) if err != nil { @@ -85,7 +86,7 @@ func (client *CalculateRefundClient) postCreateRequest(ctx context.Context, rese return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, body) diff --git a/sdk/resourcemanager/reservations/armreservations/calculaterefund_client_example_test.go b/sdk/resourcemanager/reservations/armreservations/calculaterefund_client_example_test.go index 752dd02e1daa..30887438e2a7 100644 --- a/sdk/resourcemanager/reservations/armreservations/calculaterefund_client_example_test.go +++ b/sdk/resourcemanager/reservations/armreservations/calculaterefund_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armreservations_test @@ -14,10 +15,10 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/reservations/armreservations" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/reservations/armreservations/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/reservations/resource-manager/Microsoft.Capacity/stable/2022-03-01/examples/CalculateRefund.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/reservations/resource-manager/Microsoft.Capacity/stable/2022-11-01/examples/CalculateRefund.json func ExampleCalculateRefundClient_Post() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -41,6 +42,56 @@ func ExampleCalculateRefundClient_Post() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.CalculateRefundResponse = armreservations.CalculateRefundResponse{ + // ID: to.Ptr("/providers/Microsoft.Capacity/reservationOrders/50000000-aaaa-bbbb-cccc-100000000004/reservations/40000000-aaaa-bbbb-cccc-100000000000"), + // Properties: &armreservations.RefundResponseProperties{ + // BillingInformation: &armreservations.RefundBillingInformation{ + // BillingCurrencyProratedAmount: &armreservations.Price{ + // Amount: to.Ptr[float64](3.28), + // CurrencyCode: to.Ptr("GBP"), + // }, + // BillingCurrencyRemainingCommitmentAmount: &armreservations.Price{ + // Amount: to.Ptr[float64](0), + // CurrencyCode: to.Ptr("GBP"), + // }, + // BillingCurrencyTotalPaidAmount: &armreservations.Price{ + // Amount: to.Ptr[float64](24), + // CurrencyCode: to.Ptr("GBP"), + // }, + // BillingPlan: to.Ptr(armreservations.ReservationBillingPlanUpfront), + // CompletedTransactions: to.Ptr[int32](1), + // TotalTransactions: to.Ptr[int32](1), + // }, + // BillingRefundAmount: &armreservations.Price{ + // Amount: to.Ptr[float64](20.72), + // CurrencyCode: to.Ptr("GBP"), + // }, + // PolicyResult: &armreservations.RefundPolicyResult{ + // Properties: &armreservations.RefundPolicyResultProperty{ + // ConsumedRefundsTotal: &armreservations.Price{ + // Amount: to.Ptr[float64](83.69), + // CurrencyCode: to.Ptr("USD"), + // }, + // MaxRefundLimit: &armreservations.Price{ + // Amount: to.Ptr[float64](50000), + // CurrencyCode: to.Ptr("USD"), + // }, + // PolicyErrors: []*armreservations.RefundPolicyError{ + // { + // Code: to.Ptr(armreservations.ErrorResponseCodeSelfServiceRefundNotSupported), + // Message: to.Ptr("Self Service refunds are currently not supported for this resource, please contact support."), + // }}, + // }, + // }, + // PricingRefundAmount: &armreservations.Price{ + // Amount: to.Ptr[float64](24.92), + // CurrencyCode: to.Ptr("USD"), + // }, + // Quantity: to.Ptr[int32](1), + // SessionID: to.Ptr("10000000-aaaa-bbbb-cccc-200000000000"), + // }, + // } } diff --git a/sdk/resourcemanager/reservations/armreservations/constants.go b/sdk/resourcemanager/reservations/armreservations/constants.go index 5c6ee01bc836..82fc95af6455 100644 --- a/sdk/resourcemanager/reservations/armreservations/constants.go +++ b/sdk/resourcemanager/reservations/armreservations/constants.go @@ -11,25 +11,41 @@ package armreservations const ( moduleName = "armreservations" - moduleVersion = "v1.1.0" + moduleVersion = "v2.0.0" ) // AppliedScopeType - Type of the Applied Scope. type AppliedScopeType string const ( - AppliedScopeTypeShared AppliedScopeType = "Shared" - AppliedScopeTypeSingle AppliedScopeType = "Single" + AppliedScopeTypeManagementGroup AppliedScopeType = "ManagementGroup" + AppliedScopeTypeShared AppliedScopeType = "Shared" + AppliedScopeTypeSingle AppliedScopeType = "Single" ) // PossibleAppliedScopeTypeValues returns the possible values for the AppliedScopeType const type. func PossibleAppliedScopeTypeValues() []AppliedScopeType { return []AppliedScopeType{ + AppliedScopeTypeManagementGroup, AppliedScopeTypeShared, AppliedScopeTypeSingle, } } +// BillingPlan - Represents the billing plan in ISO 8601 format. Required only for monthly billing plans. +type BillingPlan string + +const ( + BillingPlanP1M BillingPlan = "P1M" +) + +// PossibleBillingPlanValues returns the possible values for the BillingPlan const type. +func PossibleBillingPlanValues() []BillingPlan { + return []BillingPlan{ + BillingPlanP1M, + } +} + // CalculateExchangeOperationResultStatus - Status of the operation. type CalculateExchangeOperationResultStatus string @@ -50,6 +66,20 @@ func PossibleCalculateExchangeOperationResultStatusValues() []CalculateExchangeO } } +// CommitmentGrain - Commitment grain. +type CommitmentGrain string + +const ( + CommitmentGrainHourly CommitmentGrain = "Hourly" +) + +// PossibleCommitmentGrainValues returns the possible values for the CommitmentGrain const type. +func PossibleCommitmentGrainValues() []CommitmentGrain { + return []CommitmentGrain{ + CommitmentGrainHourly, + } +} + // CreatedByType - The type of identity that created the resource. type CreatedByType string @@ -70,7 +100,7 @@ func PossibleCreatedByTypeValues() []CreatedByType { } } -// DisplayProvisioningState - Represent the current display state of the Reservation. +// DisplayProvisioningState - Represent the current display state of the reservation. type DisplayProvisioningState string const ( @@ -78,9 +108,11 @@ const ( DisplayProvisioningStateExpired DisplayProvisioningState = "Expired" DisplayProvisioningStateExpiring DisplayProvisioningState = "Expiring" DisplayProvisioningStateFailed DisplayProvisioningState = "Failed" + DisplayProvisioningStateNoBenefit DisplayProvisioningState = "NoBenefit" DisplayProvisioningStatePending DisplayProvisioningState = "Pending" DisplayProvisioningStateProcessing DisplayProvisioningState = "Processing" DisplayProvisioningStateSucceeded DisplayProvisioningState = "Succeeded" + DisplayProvisioningStateWarning DisplayProvisioningState = "Warning" ) // PossibleDisplayProvisioningStateValues returns the possible values for the DisplayProvisioningState const type. @@ -90,12 +122,15 @@ func PossibleDisplayProvisioningStateValues() []DisplayProvisioningState { DisplayProvisioningStateExpired, DisplayProvisioningStateExpiring, DisplayProvisioningStateFailed, + DisplayProvisioningStateNoBenefit, DisplayProvisioningStatePending, DisplayProvisioningStateProcessing, DisplayProvisioningStateSucceeded, + DisplayProvisioningStateWarning, } } +// ErrorResponseCode - Error code describing the reason that service is not able to process the incoming request type ErrorResponseCode string const ( @@ -469,7 +504,7 @@ func PossibleReservationStatusCodeValues() []ReservationStatusCode { } } -// ReservationTerm - Represent the term of Reservation. +// ReservationTerm - Represent the term of reservation. type ReservationTerm string const ( @@ -573,6 +608,22 @@ func PossibleResourceTypeValues() []ResourceType { } } +// SavingsPlanTerm - Represent savings plan term in ISO 8601 format. +type SavingsPlanTerm string + +const ( + SavingsPlanTermP1Y SavingsPlanTerm = "P1Y" + SavingsPlanTermP3Y SavingsPlanTerm = "P3Y" +) + +// PossibleSavingsPlanTermValues returns the possible values for the SavingsPlanTerm const type. +func PossibleSavingsPlanTermValues() []SavingsPlanTerm { + return []SavingsPlanTerm{ + SavingsPlanTermP1Y, + SavingsPlanTermP3Y, + } +} + // UserFriendlyAppliedScopeType - The applied scope type type UserFriendlyAppliedScopeType string diff --git a/sdk/resourcemanager/reservations/armreservations/date_type.go b/sdk/resourcemanager/reservations/armreservations/date_type.go index eb58bfe3d9e0..dc1137638a16 100644 --- a/sdk/resourcemanager/reservations/armreservations/date_type.go +++ b/sdk/resourcemanager/reservations/armreservations/date_type.go @@ -35,7 +35,7 @@ func (d *dateType) UnmarshalJSON(data []byte) (err error) { return err } -func populateDateType(m map[string]interface{}, k string, t *time.Time) { +func populateDateType(m map[string]any, k string, t *time.Time) { if t == nil { return } else if azcore.IsNullValue(t) { diff --git a/sdk/resourcemanager/reservations/armreservations/exchange_client.go b/sdk/resourcemanager/reservations/armreservations/exchange_client.go index cd1b8890cd3d..f90836dac72d 100644 --- a/sdk/resourcemanager/reservations/armreservations/exchange_client.go +++ b/sdk/resourcemanager/reservations/armreservations/exchange_client.go @@ -28,8 +28,8 @@ type ExchangeClient struct { } // NewExchangeClient creates a new instance of ExchangeClient with the specified values. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewExchangeClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*ExchangeClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -51,9 +51,10 @@ func NewExchangeClient(credential azcore.TokenCredential, options *arm.ClientOpt // BeginPost - Returns one or more Reservations in exchange for one or more Reservation purchases. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// body - Request containing the refunds and purchases that need to be executed. -// options - ExchangeClientBeginPostOptions contains the optional parameters for the ExchangeClient.BeginPost method. +// +// Generated from API version 2022-11-01 +// - body - Request containing the refunds and purchases that need to be executed. +// - options - ExchangeClientBeginPostOptions contains the optional parameters for the ExchangeClient.BeginPost method. func (client *ExchangeClient) BeginPost(ctx context.Context, body ExchangeRequest, options *ExchangeClientBeginPostOptions) (*runtime.Poller[ExchangeClientPostResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.post(ctx, body, options) @@ -70,7 +71,8 @@ func (client *ExchangeClient) BeginPost(ctx context.Context, body ExchangeReques // Post - Returns one or more Reservations in exchange for one or more Reservation purchases. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2022-11-01 func (client *ExchangeClient) post(ctx context.Context, body ExchangeRequest, options *ExchangeClientBeginPostOptions) (*http.Response, error) { req, err := client.postCreateRequest(ctx, body, options) if err != nil { @@ -94,7 +96,7 @@ func (client *ExchangeClient) postCreateRequest(ctx context.Context, body Exchan return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, body) diff --git a/sdk/resourcemanager/reservations/armreservations/exchange_client_example_test.go b/sdk/resourcemanager/reservations/armreservations/exchange_client_example_test.go index d508fad686a4..f7142ed60f33 100644 --- a/sdk/resourcemanager/reservations/armreservations/exchange_client_example_test.go +++ b/sdk/resourcemanager/reservations/armreservations/exchange_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armreservations_test @@ -14,10 +15,10 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/reservations/armreservations" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/reservations/armreservations/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/reservations/resource-manager/Microsoft.Capacity/stable/2022-03-01/examples/Exchange.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/reservations/resource-manager/Microsoft.Capacity/stable/2022-11-01/examples/Exchange.json func ExampleExchangeClient_BeginPost() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -40,6 +41,111 @@ func ExampleExchangeClient_BeginPost() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.ExchangeOperationResultResponse = armreservations.ExchangeOperationResultResponse{ + // Name: to.Ptr("4e2ffff7-b331-4fcb-ab11-b5fa49368188"), + // ID: to.Ptr("/providers/microsoft.capacity/operationResults/4e2ffff7-b331-4fcb-ab11-b5fa49368188"), + // Properties: &armreservations.ExchangeResponseProperties{ + // NetPayable: &armreservations.Price{ + // Amount: to.Ptr[float64](149254.8), + // CurrencyCode: to.Ptr("USD"), + // }, + // PolicyResult: &armreservations.ExchangePolicyErrors{ + // }, + // PurchasesTotal: &armreservations.Price{ + // Amount: to.Ptr[float64](153214.8), + // CurrencyCode: to.Ptr("USD"), + // }, + // RefundsTotal: &armreservations.Price{ + // Amount: to.Ptr[float64](3960), + // CurrencyCode: to.Ptr("USD"), + // }, + // ReservationsToExchange: []*armreservations.ReservationToReturnForExchange{ + // { + // BillingInformation: &armreservations.BillingInformation{ + // BillingCurrencyProratedAmount: &armreservations.Price{ + // Amount: to.Ptr[float64](149254.8), + // CurrencyCode: to.Ptr("USD"), + // }, + // BillingCurrencyRemainingCommitmentAmount: &armreservations.Price{ + // Amount: to.Ptr[float64](0), + // CurrencyCode: to.Ptr("USD"), + // }, + // BillingCurrencyTotalPaidAmount: &armreservations.Price{ + // Amount: to.Ptr[float64](153214.8), + // CurrencyCode: to.Ptr("USD"), + // }, + // }, + // BillingRefundAmount: &armreservations.Price{ + // Amount: to.Ptr[float64](3960), + // CurrencyCode: to.Ptr("USD"), + // }, + // Quantity: to.Ptr[int32](1), + // ReservationID: to.Ptr("/providers/microsoft.capacity/reservationOrders/1f14354c-dc12-4c8d-8090-6f295a3a34aa/reservations/c8c926bd-fc5d-4e29-9d43-b68340ac23a6"), + // Status: to.Ptr(armreservations.OperationStatusSucceeded), + // }}, + // ReservationsToPurchase: []*armreservations.ReservationToPurchaseExchange{ + // { + // BillingCurrencyTotal: &armreservations.Price{ + // Amount: to.Ptr[float64](19800), + // CurrencyCode: to.Ptr("USD"), + // }, + // Properties: &armreservations.PurchaseRequest{ + // Location: to.Ptr("westus"), + // Properties: &armreservations.PurchaseRequestProperties{ + // AppliedScopeType: to.Ptr(armreservations.AppliedScopeTypeShared), + // BillingPlan: to.Ptr(armreservations.ReservationBillingPlanUpfront), + // BillingScopeID: to.Ptr("/subscriptions/ed3a1871-612d-abcd-a849-c2542a68be83"), + // DisplayName: to.Ptr("testDisplayName"), + // Quantity: to.Ptr[int32](1), + // Renew: to.Ptr(false), + // ReservedResourceProperties: &armreservations.PurchaseRequestPropertiesReservedResourceProperties{ + // InstanceFlexibility: to.Ptr(armreservations.InstanceFlexibilityOn), + // }, + // ReservedResourceType: to.Ptr(armreservations.ReservedResourceTypeVirtualMachines), + // Term: to.Ptr(armreservations.ReservationTermP1Y), + // }, + // SKU: &armreservations.SKUName{ + // Name: to.Ptr("Standard_B1ls"), + // }, + // }, + // ReservationID: to.Ptr("/providers/microsoft.capacity/reservationOrders/1e85c519-b815-4169-8d79-62fc460c608f/reservations/0c80fceb-305c-40a8-b5a6-11445807bbb3"), + // ReservationOrderID: to.Ptr("/providers/microsoft.capacity/reservationOrders/1e85c519-b815-4169-8d79-62fc460c608f"), + // Status: to.Ptr(armreservations.OperationStatusSucceeded), + // }}, + // SavingsPlansToPurchase: []*armreservations.SavingsPlanToPurchaseExchange{ + // { + // BillingCurrencyTotal: &armreservations.Price{ + // Amount: to.Ptr[float64](133414.8), + // CurrencyCode: to.Ptr("USD"), + // }, + // Properties: &armreservations.SavingsPlanPurchaseRequest{ + // Properties: &armreservations.SavingsPlanPurchaseRequestProperties{ + // AppliedScopeProperties: &armreservations.AppliedScopeProperties{ + // ResourceGroupID: to.Ptr("/subscriptions/10000000-0000-0000-0000-000000000000/resourceGroups/testrg"), + // }, + // AppliedScopeType: to.Ptr(armreservations.AppliedScopeTypeSingle), + // BillingScopeID: to.Ptr("/subscriptions/10000000-0000-0000-0000-000000000000"), + // Commitment: &armreservations.Commitment{ + // Amount: to.Ptr[float64](15.23), + // CurrencyCode: to.Ptr("USD"), + // Grain: to.Ptr(armreservations.CommitmentGrainHourly), + // }, + // DisplayName: to.Ptr("ComputeSavingsPlan"), + // Term: to.Ptr(armreservations.SavingsPlanTermP1Y), + // }, + // SKU: &armreservations.SKUName{ + // Name: to.Ptr("Compute_Savings_Plan"), + // }, + // }, + // SavingsPlanID: to.Ptr("/providers/Microsoft.BillingBenefits/savingsPlanOrders/20000000-0000-0000-0000-000000000000/savingsPlans/30000000-0000-0000-0000-000000000000"), + // SavingsPlanOrderID: to.Ptr("/providers/Microsoft.BillingBenefits/savingsPlanOrders/20000000-0000-0000-0000-000000000000"), + // Status: to.Ptr(armreservations.OperationStatusSucceeded), + // }}, + // SessionID: to.Ptr("66e2ac8f-439e-4345-8235-6fef07608081"), + // }, + // Status: to.Ptr(armreservations.ExchangeOperationResultStatusSucceeded), + // } } diff --git a/sdk/resourcemanager/reservations/armreservations/go.mod b/sdk/resourcemanager/reservations/armreservations/go.mod index af4f14ce0411..5d4eadcb26ee 100644 --- a/sdk/resourcemanager/reservations/armreservations/go.mod +++ b/sdk/resourcemanager/reservations/armreservations/go.mod @@ -1,16 +1,16 @@ -module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/reservations/armreservations +module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/reservations/armreservations/v2 go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.0.0 - github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.1.0 + github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.1 ) require ( github.com/Azure/azure-sdk-for-go/sdk/internal v1.0.0 // indirect - github.com/AzureAD/microsoft-authentication-library-for-go v0.5.1 // indirect - github.com/golang-jwt/jwt v3.2.1+incompatible // indirect + github.com/AzureAD/microsoft-authentication-library-for-go v0.8.1 // indirect + github.com/golang-jwt/jwt/v4 v4.4.2 // 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 diff --git a/sdk/resourcemanager/reservations/armreservations/go.sum b/sdk/resourcemanager/reservations/armreservations/go.sum index 8828b17b1853..67cfef6bdf6e 100644 --- a/sdk/resourcemanager/reservations/armreservations/go.sum +++ b/sdk/resourcemanager/reservations/armreservations/go.sum @@ -1,21 +1,19 @@ 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.1.0 h1:QkAcEIAKbNL4KoFr4SathZPhDhF4mVwpBMFlYjyAqy8= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.1.0/go.mod h1:bhXu1AjYL+wutSL/kpSq6s7733q2Rb0yuot9Zgfqa/0= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.1 h1:T8quHYlUGyb/oqtSTwqlCr1ilJHrDv+ZtpSfo+hm1BU= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.1/go.mod h1:gLa1CL2RNE4s7M3yopJ/p0iq5DdY6Yv5ZUt9MTRZOQM= 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.5.1 h1:BWe8a+f/t+7KY7zH2mqygeUD0t8hNFXe08p1Pb3/jKE= -github.com/AzureAD/microsoft-authentication-library-for-go v0.5.1/go.mod h1:Vt9sXTKwMyGcOxSmLDMnGPgqsUg7m8pe215qMLrDXw4= +github.com/AzureAD/microsoft-authentication-library-for-go v0.8.1 h1:oPdPEZFSbl7oSPEAIPMPBMUmiL+mqgzBJwM/9qYcwNg= +github.com/AzureAD/microsoft-authentication-library-for-go v0.8.1/go.mod h1:4qFor3D/HDsvBME35Xy9rwW9DecL+M2sNw1ybjPtwA0= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/dnaeon/go-vcr v1.1.0 h1:ReYa/UBrRyQdant9B4fNHGoCNKw6qh6P0fsdGmZpR7c= -github.com/golang-jwt/jwt 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= +github.com/golang-jwt/jwt/v4 v4.4.2 h1:rcc4lwaZgFMCZ5jxF9ABolDcIHdBytAFgqFPbSJQAYs= +github.com/golang-jwt/jwt/v4 v4.4.2/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= 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/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= @@ -24,7 +22,6 @@ golang.org/x/crypto v0.0.0-20220511200225-c6db032c6c88 h1:Tgea0cVUD0ivh5ADBX4Wwu 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-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= diff --git a/sdk/resourcemanager/reservations/armreservations/models.go b/sdk/resourcemanager/reservations/armreservations/models.go index 00c9ee3c7684..da544764da77 100644 --- a/sdk/resourcemanager/reservations/armreservations/models.go +++ b/sdk/resourcemanager/reservations/armreservations/models.go @@ -11,13 +11,16 @@ package armreservations import "time" +// AppliedReservationList - Paginated list of applied reservations type AppliedReservationList struct { // Url to get the next page of reservations NextLink *string `json:"nextLink,omitempty"` Value []*string `json:"value,omitempty"` } +// AppliedReservations - The response for applied reservations api type AppliedReservations struct { + // Properties for applied reservations returned Properties *AppliedReservationsProperties `json:"properties,omitempty"` // READ-ONLY; Identifier of the applied reservations @@ -30,11 +33,34 @@ type AppliedReservations struct { Type *string `json:"type,omitempty" azure:"ro"` } +// AppliedReservationsProperties - Properties for applied reservations returned type AppliedReservationsProperties struct { + // Paginated list of applied reservations ReservationOrderIDs *AppliedReservationList `json:"reservationOrderIds,omitempty"` } +// AppliedScopeProperties - Properties specific to applied scope type. Not required if not applicable. Required and need to +// provide tenantId and managementGroupId if AppliedScopeType is ManagementGroup +type AppliedScopeProperties struct { + // Display name + DisplayName *string `json:"displayName,omitempty"` + + // Fully-qualified identifier of the management group where the benefit must be applied. + ManagementGroupID *string `json:"managementGroupId,omitempty"` + + // Fully-qualified identifier of the resource group. + ResourceGroupID *string `json:"resourceGroupId,omitempty"` + + // Fully-qualified identifier of the subscription. + SubscriptionID *string `json:"subscriptionId,omitempty"` + + // Tenant ID where the savings plan should apply benefit. + TenantID *string `json:"tenantId,omitempty"` +} + +// AvailableScopeProperties - The response of available scope api containing scopes and their eligibilities. type AvailableScopeProperties struct { + // The scopes checked by the available scope api. Properties *SubscriptionScopeProperties `json:"properties,omitempty"` } @@ -55,10 +81,12 @@ type AzureReservationAPIClientGetAppliedReservationListOptions struct { // placeholder for future optional parameters } -// AzureReservationAPIClientGetCatalogOptions contains the optional parameters for the AzureReservationAPIClient.GetCatalog +// AzureReservationAPIClientGetCatalogOptions contains the optional parameters for the AzureReservationAPIClient.NewGetCatalogPager // method. type AzureReservationAPIClientGetCatalogOptions struct { - // Filters the skus based on the location specified in this parameter. This can be an azure region or global + // May be used to filter by Catalog properties. The filter supports 'eq', 'or', and 'and'. + Filter *string + // Filters the skus based on the location specified in this parameter. This can be an Azure region or global Location *string // Offer id used to get the third party products OfferID *string @@ -68,13 +96,22 @@ type AzureReservationAPIClientGetCatalogOptions struct { PublisherID *string // The type of the resource for which the skus should be provided. ReservedResourceType *string + // The number of reservations to skip from the list before returning results + Skip *float32 + // To number of reservations to return + Take *float32 } // BillingInformation - billing information type BillingInformation struct { - BillingCurrencyProratedAmount *Price `json:"billingCurrencyProratedAmount,omitempty"` + // Pricing information containing the amount and the currency code + BillingCurrencyProratedAmount *Price `json:"billingCurrencyProratedAmount,omitempty"` + + // Pricing information containing the amount and the currency code BillingCurrencyRemainingCommitmentAmount *Price `json:"billingCurrencyRemainingCommitmentAmount,omitempty"` - BillingCurrencyTotalPaidAmount *Price `json:"billingCurrencyTotalPaidAmount,omitempty"` + + // Pricing information containing the amount and the currency code + BillingCurrencyTotalPaidAmount *Price `json:"billingCurrencyTotalPaidAmount,omitempty"` } // CalculateExchangeClientBeginPostOptions contains the optional parameters for the CalculateExchangeClient.BeginPost method. @@ -114,16 +151,24 @@ type CalculateExchangeRequestProperties struct { // List of reservations that are being purchased in this exchange. ReservationsToPurchase []*PurchaseRequest `json:"reservationsToPurchase,omitempty"` + + // List of savings plans that are being purchased in this exchange. + SavingsPlansToPurchase []*SavingsPlanPurchaseRequest `json:"savingsPlansToPurchase,omitempty"` } // CalculateExchangeResponseProperties - CalculateExchange response properties type CalculateExchangeResponseProperties struct { + // Pricing information containing the amount and the currency code NetPayable *Price `json:"netPayable,omitempty"` // Exchange policy errors - PolicyResult *ExchangePolicyErrors `json:"policyResult,omitempty"` - PurchasesTotal *Price `json:"purchasesTotal,omitempty"` - RefundsTotal *Price `json:"refundsTotal,omitempty"` + PolicyResult *ExchangePolicyErrors `json:"policyResult,omitempty"` + + // Pricing information containing the amount and the currency code + PurchasesTotal *Price `json:"purchasesTotal,omitempty"` + + // Pricing information containing the amount and the currency code + RefundsTotal *Price `json:"refundsTotal,omitempty"` // Details of the reservations being returned ReservationsToExchange []*ReservationToExchange `json:"reservationsToExchange,omitempty"` @@ -131,14 +176,20 @@ type CalculateExchangeResponseProperties struct { // Details of the reservations being purchased ReservationsToPurchase []*ReservationToPurchaseCalculateExchange `json:"reservationsToPurchase,omitempty"` + // Details of the savings plans being purchased + SavingsPlansToPurchase []*SavingsPlanToPurchaseCalculateExchange `json:"savingsPlansToPurchase,omitempty"` + // Exchange session identifier SessionID *string `json:"sessionId,omitempty"` } +// CalculatePriceResponse - The response of calculate price for reservation. type CalculatePriceResponse struct { + // Properties for calculate price response Properties *CalculatePriceResponseProperties `json:"properties,omitempty"` } +// CalculatePriceResponseProperties - Properties for calculate price response type CalculatePriceResponseProperties struct { // Currency and amount that customer will be charged in customer's local currency. Tax is not included. BillingCurrencyTotal *CalculatePriceResponsePropertiesBillingCurrencyTotal `json:"billingCurrencyTotal,omitempty"` @@ -162,10 +213,10 @@ type CalculatePriceResponseProperties struct { // GUID that represents reservation order that can be placed after calculating price. ReservationOrderID *string `json:"reservationOrderId,omitempty"` - // Description of SKU that is being purchased. + // Description of sku that is being purchased. SKUDescription *string `json:"skuDescription,omitempty"` - // Title of SKU that is being purchased. + // Title of sku that is being purchased. SKUTitle *string `json:"skuTitle,omitempty"` // Tax amount in pricing currency. @@ -196,12 +247,17 @@ type CalculateRefundClientPostOptions struct { // placeholder for future optional parameters } +// CalculateRefundRequest - Request containing information needed for calculating refund. type CalculateRefundRequest struct { // Fully qualified identifier of the reservation order being returned - ID *string `json:"id,omitempty"` + ID *string `json:"id,omitempty"` + + // Properties needed for calculate refund including the scope and the reservation to be returned. Properties *CalculateRefundRequestProperties `json:"properties,omitempty"` } +// CalculateRefundRequestProperties - Properties needed for calculate refund including the scope and the reservation to be +// returned. type CalculateRefundRequestProperties struct { // Reservation to return ReservationToReturn *ReservationToReturn `json:"reservationToReturn,omitempty"` @@ -210,14 +266,18 @@ type CalculateRefundRequestProperties struct { Scope *string `json:"scope,omitempty"` } +// CalculateRefundResponse - The response of calculate refund containing refund information of reservation type CalculateRefundResponse struct { // Fully qualified identifier of the reservation being returned - ID *string `json:"id,omitempty"` + ID *string `json:"id,omitempty"` + + // The refund properties of reservation Properties *RefundResponseProperties `json:"properties,omitempty"` } +// Catalog - Product details of a type of resource. type Catalog struct { - // The billing plan options available for this SKU. + // The billing plan options available for this sku. BillingPlans map[string][]*ReservationBillingPlan `json:"billingPlans,omitempty"` // READ-ONLY @@ -226,13 +286,13 @@ type Catalog struct { // READ-ONLY Locations []*string `json:"locations,omitempty" azure:"ro"` - // READ-ONLY; Pricing information about the SKU + // READ-ONLY; Pricing information about the sku Msrp *CatalogMsrp `json:"msrp,omitempty" azure:"ro"` - // READ-ONLY; The name of SKU + // READ-ONLY; The name of sku Name *string `json:"name,omitempty" azure:"ro"` - // READ-ONLY; The type of resource the SKU applies to. + // READ-ONLY; The type of resource the sku applies to. ResourceType *string `json:"resourceType,omitempty" azure:"ro"` // READ-ONLY @@ -241,22 +301,35 @@ type Catalog struct { // READ-ONLY SKUProperties []*SKUProperty `json:"skuProperties,omitempty" azure:"ro"` - // READ-ONLY; The size of this SKU + // READ-ONLY; The size of this sku Size *string `json:"size,omitempty" azure:"ro"` // READ-ONLY; Available reservation terms for this resource Terms []*ReservationTerm `json:"terms,omitempty" azure:"ro"` - // READ-ONLY; The tier of this SKU + // READ-ONLY; The tier of this sku Tier *string `json:"tier,omitempty" azure:"ro"` } -// CatalogMsrp - Pricing information about the SKU +// CatalogMsrp - Pricing information about the sku type CatalogMsrp struct { // Amount in pricing currency. Tax not included. P1Y *Price `json:"p1Y,omitempty"` } +// CatalogsResult - The list of catalogs and pagination information. +type CatalogsResult struct { + // The total amount of catalog items. + TotalItems *int64 `json:"totalItems,omitempty"` + + // READ-ONLY; The link (url) to the next page of results. + NextLink *string `json:"nextLink,omitempty" azure:"ro"` + + // READ-ONLY; The list of catalogs. + Value []*Catalog `json:"value,omitempty" azure:"ro"` +} + +// ChangeDirectoryRequest - Request body for change directory of a reservation. type ChangeDirectoryRequest struct { // Tenant id GUID that reservation order is to be transferred to DestinationTenantID *string `json:"destinationTenantId,omitempty"` @@ -284,6 +357,17 @@ type ChangeDirectoryResult struct { Name *string `json:"name,omitempty"` } +// Commitment towards the benefit. +type Commitment struct { + Amount *float64 `json:"amount,omitempty"` + + // The ISO 4217 3-letter currency code for the currency used by this purchase record. + CurrencyCode *string `json:"currencyCode,omitempty"` + + // Commitment grain. + Grain *CommitmentGrain `json:"grain,omitempty"` +} + // CreateGenericQuotaRequestParameters - Quota change requests information. type CreateGenericQuotaRequestParameters struct { // Quota change requests. @@ -314,7 +398,9 @@ type CurrentQuotaLimitBase struct { Type *string `json:"type,omitempty" azure:"ro"` } +// Error information type Error struct { + // Extended error information including error code and error message Error *ExtendedErrorInfo `json:"error,omitempty"` } @@ -393,12 +479,17 @@ type ExchangeRequestProperties struct { // ExchangeResponseProperties - Exchange response properties type ExchangeResponseProperties struct { + // Pricing information containing the amount and the currency code NetPayable *Price `json:"netPayable,omitempty"` // Exchange policy errors - PolicyResult *ExchangePolicyErrors `json:"policyResult,omitempty"` - PurchasesTotal *Price `json:"purchasesTotal,omitempty"` - RefundsTotal *Price `json:"refundsTotal,omitempty"` + PolicyResult *ExchangePolicyErrors `json:"policyResult,omitempty"` + + // Pricing information containing the amount and the currency code + PurchasesTotal *Price `json:"purchasesTotal,omitempty"` + + // Pricing information containing the amount and the currency code + RefundsTotal *Price `json:"refundsTotal,omitempty"` // Details of the reservations being returned ReservationsToExchange []*ReservationToReturnForExchange `json:"reservationsToExchange,omitempty"` @@ -406,11 +497,16 @@ type ExchangeResponseProperties struct { // Details of the reservations being purchased ReservationsToPurchase []*ReservationToPurchaseExchange `json:"reservationsToPurchase,omitempty"` + // Details of the savings plans being purchased + SavingsPlansToPurchase []*SavingsPlanToPurchaseExchange `json:"savingsPlansToPurchase,omitempty"` + // Exchange session identifier SessionID *string `json:"sessionId,omitempty"` } +// ExtendedErrorInfo - Extended error information including error code and error message type ExtendedErrorInfo struct { + // Error code describing the reason that service is not able to process the incoming request Code *ErrorResponseCode `json:"code,omitempty"` Message *string `json:"message,omitempty"` } @@ -433,20 +529,24 @@ type ListResult struct { Value []*ReservationResponse `json:"value,omitempty" azure:"ro"` } +// MergeProperties - Properties for reservation merge type MergeProperties struct { // Format of the resource id should be /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId} Sources []*string `json:"sources,omitempty"` } +// MergeRequest - The request for reservation merge type MergeRequest struct { + // Properties for reservation merge Properties *MergeProperties `json:"properties,omitempty"` } -// OperationClientListOptions contains the optional parameters for the OperationClient.List method. +// OperationClientListOptions contains the optional parameters for the OperationClient.NewListPager method. type OperationClientListOptions struct { // placeholder for future optional parameters } +// OperationDisplay - Information about an operation type OperationDisplay struct { Description *string `json:"description,omitempty"` Operation *string `json:"operation,omitempty"` @@ -454,12 +554,14 @@ type OperationDisplay struct { Resource *string `json:"resource,omitempty"` } +// OperationList - Paginated list of operations type OperationList struct { // Url to get the next page of items. NextLink *string `json:"nextLink,omitempty"` Value []*OperationResponse `json:"value,omitempty"` } +// OperationResponse - The response containing operation information type OperationResponse struct { // Display of the operation Display *OperationDisplay `json:"display,omitempty"` @@ -474,7 +576,7 @@ type OperationResponse struct { Origin *string `json:"origin,omitempty"` // Properties of the operation - Properties interface{} `json:"properties,omitempty"` + Properties any `json:"properties,omitempty"` } // OperationResultError - Required if status == failed or status == canceled. @@ -488,11 +590,18 @@ type OperationResultError struct { Message *string `json:"message,omitempty"` } +// Patch - The request for reservation patch type Patch struct { + // Properties for reservation patch Properties *PatchProperties `json:"properties,omitempty"` } +// PatchProperties - Properties for reservation patch type PatchProperties struct { + // Properties specific to applied scope type. Not required if not applicable. Required and need to provide tenantId and managementGroupId + // if AppliedScopeType is ManagementGroup + AppliedScopeProperties *AppliedScopeProperties `json:"appliedScopeProperties,omitempty"` + // Type of the Applied Scope. AppliedScopeType *AppliedScopeType `json:"appliedScopeType,omitempty"` @@ -503,15 +612,19 @@ type PatchProperties struct { // reserved resource type. InstanceFlexibility *InstanceFlexibility `json:"instanceFlexibility,omitempty"` - // Name of the Reservation + // Display name of the reservation Name *string `json:"name,omitempty"` // Setting this to true will automatically purchase a new reservation on the expiration date time. Renew *bool `json:"renew,omitempty"` RenewProperties *PatchPropertiesRenewProperties `json:"renewProperties,omitempty"` + + // This is the date-time when the Azure hybrid benefit needs to be reviewed. + ReviewDateTime *time.Time `json:"reviewDateTime,omitempty"` } type PatchPropertiesRenewProperties struct { + // The request for reservation purchase PurchaseProperties *PurchaseRequest `json:"purchaseProperties,omitempty"` } @@ -537,6 +650,7 @@ type PaymentDetail struct { Status *PaymentStatus `json:"status,omitempty"` } +// Price - Pricing information containing the amount and the currency code type Price struct { Amount *float64 `json:"amount,omitempty"` @@ -546,6 +660,10 @@ type Price struct { // Properties - The properties of the reservations type Properties struct { + // Properties specific to applied scope type. Not required if not applicable. Required and need to provide tenantId and managementGroupId + // if AppliedScopeType is ManagementGroup + AppliedScopeProperties *AppliedScopeProperties `json:"appliedScopeProperties,omitempty"` + // The applied scope type AppliedScopeType *AppliedScopeType `json:"appliedScopeType,omitempty"` @@ -558,10 +676,10 @@ type Properties struct { // This is the DateTime when the reservation benefit started. BenefitStartTime *time.Time `json:"benefitStartTime,omitempty"` - // The billing plan options available for this SKU. + // The billing plan options available for this sku. BillingPlan *ReservationBillingPlan `json:"billingPlan,omitempty"` - // Subscription that will be charged for purchasing Reservation + // Subscription that will be charged for purchasing reservation or savings plan BillingScopeID *string `json:"billingScopeId,omitempty"` // Capabilities of the reservation @@ -570,35 +688,45 @@ type Properties struct { // Friendly name for user to easily identify the reservation DisplayName *string `json:"displayName,omitempty"` - // DateTime of the Reservation starting when this version is effective from. + // DateTime of the reservation starting when this version is effective from. EffectiveDateTime *time.Time `json:"effectiveDateTime,omitempty"` - // This is the date when the Reservation will expire. + // This is the date when the reservation will expire. ExpiryDate *time.Time `json:"expiryDate,omitempty"` + // This is the date-time when the reservation will expire. + ExpiryDateTime *time.Time `json:"expiryDateTime,omitempty"` + // The message giving detailed information about the status code. ExtendedStatusInfo *ExtendedStatusInfo `json:"extendedStatusInfo,omitempty"` - // Allows reservation discount to be applied across skus within the same Autofit group. Not all skus support instance size + // Allows reservation discount to be applied across skus within the same auto fit group. Not all skus support instance size // flexibility. - InstanceFlexibility *InstanceFlexibility `json:"instanceFlexibility,omitempty"` - MergeProperties *ReservationMergeProperties `json:"mergeProperties,omitempty"` + InstanceFlexibility *InstanceFlexibility `json:"instanceFlexibility,omitempty"` + + // Properties of reservation merge + MergeProperties *ReservationMergeProperties `json:"mergeProperties,omitempty"` // Current state of the reservation. ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` - // This is the date when the Reservation was purchased. + // This is the date when the reservation was purchased. PurchaseDate *time.Time `json:"purchaseDate,omitempty"` - // Quantity of the SKUs that are part of the Reservation. + // This is the date-time when the reservation was purchased. + PurchaseDateTime *time.Time `json:"purchaseDateTime,omitempty"` + + // Quantity of the skus that are part of the reservation. Quantity *int32 `json:"quantity,omitempty"` // Setting this to true will automatically purchase a new reservation on the expiration date time. Renew *bool `json:"renew,omitempty"` // Reservation Id of the reservation which is purchased because of renew. Format of the resource Id is /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}. - RenewDestination *string `json:"renewDestination,omitempty"` - RenewProperties *RenewPropertiesResponse `json:"renewProperties,omitempty"` + RenewDestination *string `json:"renewDestination,omitempty"` + + // The renew properties for a reservation. + RenewProperties *RenewPropertiesResponse `json:"renewProperties,omitempty"` // Reservation Id of the reservation from which this reservation is renewed. Format of the resource Id is // /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}. @@ -607,20 +735,28 @@ type Properties struct { // The type of the resource that is being reserved. ReservedResourceType *ReservedResourceType `json:"reservedResourceType,omitempty"` - // Description of the SKU in english. - SKUDescription *string `json:"skuDescription,omitempty"` + // This is the date-time when the Azure Hybrid Benefit needs to be reviewed. + ReviewDateTime *time.Time `json:"reviewDateTime,omitempty"` + + // Description of the sku in english. + SKUDescription *string `json:"skuDescription,omitempty"` + + // Properties of reservation split SplitProperties *ReservationSplitProperties `json:"splitProperties,omitempty"` - // Represent the term of Reservation. + // Properties of reservation swap + SwapProperties *ReservationSwapProperties `json:"swapProperties,omitempty"` + + // Represent the term of reservation. Term *ReservationTerm `json:"term,omitempty"` // READ-ONLY; The provisioning state of the reservation for display, e.g. Succeeded DisplayProvisioningState *string `json:"displayProvisioningState,omitempty" azure:"ro"` - // READ-ONLY; DateTime of the last time the Reservation was updated. + // READ-ONLY; DateTime of the last time the reservation was updated. LastUpdatedDateTime *time.Time `json:"lastUpdatedDateTime,omitempty" azure:"ro"` - // READ-ONLY; The provisioning state of the reservation, e.g. Succeeded + // READ-ONLY; The provisioning sub-state of the reservation, e.g. Succeeded ProvisioningSubState *string `json:"provisioningSubState,omitempty" azure:"ro"` // READ-ONLY; The applied scope type of the reservation for display, e.g. Shared @@ -638,18 +774,44 @@ type PropertiesUtilization struct { // The array of aggregates of a reservation's utilization Aggregates []*ReservationUtilizationAggregates `json:"aggregates,omitempty"` - // READ-ONLY; The number of days trend for a reservation + // READ-ONLY; last 7 day utilization trend for a reservation Trend *string `json:"trend,omitempty" azure:"ro"` } +// ProxyResource - The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a +// location +type ProxyResource struct { + // READ-ONLY; Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + ID *string `json:"id,omitempty" azure:"ro"` + + // READ-ONLY; The name of the resource + Name *string `json:"name,omitempty" azure:"ro"` + + // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. + SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + + // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string `json:"type,omitempty" azure:"ro"` +} + +// PurchaseRequest - The request for reservation purchase type PurchaseRequest struct { - // The Azure Region where the reserved resource lives. - Location *string `json:"location,omitempty"` + // The Azure region where the reserved resource lives. + Location *string `json:"location,omitempty"` + + // Properties of reservation purchase request Properties *PurchaseRequestProperties `json:"properties,omitempty"` - SKU *SKUName `json:"sku,omitempty"` + + // The name of sku + SKU *SKUName `json:"sku,omitempty"` } +// PurchaseRequestProperties - Properties of reservation purchase request type PurchaseRequestProperties struct { + // Properties specific to applied scope type. Not required if not applicable. Required and need to provide tenantId and managementGroupId + // if AppliedScopeType is ManagementGroup + AppliedScopeProperties *AppliedScopeProperties `json:"appliedScopeProperties,omitempty"` + // Type of the Applied Scope. AppliedScopeType *AppliedScopeType `json:"appliedScopeType,omitempty"` @@ -659,13 +821,13 @@ type PurchaseRequestProperties struct { // Represent the billing plans. BillingPlan *ReservationBillingPlan `json:"billingPlan,omitempty"` - // Subscription that will be charged for purchasing Reservation + // Subscription that will be charged for purchasing reservation or savings plan BillingScopeID *string `json:"billingScopeId,omitempty"` - // Friendly name of the Reservation + // Friendly name of the reservation DisplayName *string `json:"displayName,omitempty"` - // Quantity of the SKUs that are part of the Reservation. + // Quantity of the skus that are part of the reservation. Quantity *int32 `json:"quantity,omitempty"` // Setting this to true will automatically purchase a new reservation on the expiration date time. @@ -677,7 +839,10 @@ type PurchaseRequestProperties struct { // The type of the resource that is being reserved. ReservedResourceType *ReservedResourceType `json:"reservedResourceType,omitempty"` - // Represent the term of Reservation. + // This is the date-time when the Azure hybrid benefit needs to be reviewed. + ReviewDateTime *time.Time `json:"reviewDateTime,omitempty"` + + // Represent the term of reservation. Term *ReservationTerm `json:"term,omitempty"` } @@ -706,7 +871,7 @@ type QuotaClientGetOptions struct { // placeholder for future optional parameters } -// QuotaClientListOptions contains the optional parameters for the QuotaClient.List method. +// QuotaClientListOptions contains the optional parameters for the QuotaClient.NewListPager method. type QuotaClientListOptions struct { // placeholder for future optional parameters } @@ -738,7 +903,7 @@ type QuotaProperties struct { Name *ResourceName `json:"name,omitempty"` // Additional properties for the specified resource provider. - Properties interface{} `json:"properties,omitempty"` + Properties any `json:"properties,omitempty"` // The name of the resource type. ResourceType *ResourceType `json:"resourceType,omitempty"` @@ -831,7 +996,7 @@ type QuotaRequestStatusClientGetOptions struct { // placeholder for future optional parameters } -// QuotaRequestStatusClientListOptions contains the optional parameters for the QuotaRequestStatusClient.List method. +// QuotaRequestStatusClientListOptions contains the optional parameters for the QuotaRequestStatusClient.NewListPager method. type QuotaRequestStatusClientListOptions struct { // FIELD SUPPORTED OPERATORS // requestSubmitTime ge, le, eq, gt, lt @@ -885,9 +1050,14 @@ type QuotaRequestSubmitResponse201 struct { // RefundBillingInformation - billing information type RefundBillingInformation struct { - BillingCurrencyProratedAmount *Price `json:"billingCurrencyProratedAmount,omitempty"` + // Pricing information containing the amount and the currency code + BillingCurrencyProratedAmount *Price `json:"billingCurrencyProratedAmount,omitempty"` + + // Pricing information containing the amount and the currency code BillingCurrencyRemainingCommitmentAmount *Price `json:"billingCurrencyRemainingCommitmentAmount,omitempty"` - BillingCurrencyTotalPaidAmount *Price `json:"billingCurrencyTotalPaidAmount,omitempty"` + + // Pricing information containing the amount and the currency code + BillingCurrencyTotalPaidAmount *Price `json:"billingCurrencyTotalPaidAmount,omitempty"` // Represent the billing plans. BillingPlan *ReservationBillingPlan `json:"billingPlan,omitempty"` @@ -901,6 +1071,7 @@ type RefundBillingInformation struct { // RefundPolicyError - error details type RefundPolicyError struct { + // Error code describing the reason that service is not able to process the incoming request Code *ErrorResponseCode `json:"code,omitempty"` Message *string `json:"message,omitempty"` } @@ -913,17 +1084,25 @@ type RefundPolicyResult struct { // RefundPolicyResultProperty - Refund policy result property type RefundPolicyResultProperty struct { + // Pricing information containing the amount and the currency code ConsumedRefundsTotal *Price `json:"consumedRefundsTotal,omitempty"` - MaxRefundLimit *Price `json:"maxRefundLimit,omitempty"` + + // Pricing information containing the amount and the currency code + MaxRefundLimit *Price `json:"maxRefundLimit,omitempty"` // Refund Policy errors PolicyErrors []*RefundPolicyError `json:"policyErrors,omitempty"` } +// RefundRequest - Request containing information needed for returning reservation. type RefundRequest struct { + // Properties needed for refund request including the session id from calculate refund, the scope, the reservation to be returned + // and the return reason. Properties *RefundRequestProperties `json:"properties,omitempty"` } +// RefundRequestProperties - Properties needed for refund request including the session id from calculate refund, the scope, +// the reservation to be returned and the return reason. type RefundRequestProperties struct { // Reservation to return ReservationToReturn *ReservationToReturn `json:"reservationToReturn,omitempty"` @@ -938,20 +1117,28 @@ type RefundRequestProperties struct { SessionID *string `json:"sessionId,omitempty"` } +// RefundResponse - The response of refund request containing refund information of reservation type RefundResponse struct { // Fully qualified identifier of the reservation being returned - ID *string `json:"id,omitempty"` + ID *string `json:"id,omitempty"` + + // The refund properties of reservation Properties *RefundResponseProperties `json:"properties,omitempty"` } +// RefundResponseProperties - The refund properties of reservation type RefundResponseProperties struct { // billing information - BillingInformation *RefundBillingInformation `json:"billingInformation,omitempty"` - BillingRefundAmount *Price `json:"billingRefundAmount,omitempty"` + BillingInformation *RefundBillingInformation `json:"billingInformation,omitempty"` + + // Pricing information containing the amount and the currency code + BillingRefundAmount *Price `json:"billingRefundAmount,omitempty"` // Refund policy result - PolicyResult *RefundPolicyResult `json:"policyResult,omitempty"` - PricingRefundAmount *Price `json:"pricingRefundAmount,omitempty"` + PolicyResult *RefundPolicyResult `json:"policyResult,omitempty"` + + // Pricing information containing the amount and the currency code + PricingRefundAmount *Price `json:"pricingRefundAmount,omitempty"` // Quantity to be returned Quantity *int32 `json:"quantity,omitempty"` @@ -960,6 +1147,7 @@ type RefundResponseProperties struct { SessionID *string `json:"sessionId,omitempty"` } +// RenewPropertiesResponse - The renew properties for a reservation. type RenewPropertiesResponse struct { // Currency and amount that customer will be charged in customer's local currency for renewal purchase. Tax is not included. BillingCurrencyTotal *RenewPropertiesResponseBillingCurrencyTotal `json:"billingCurrencyTotal,omitempty"` @@ -967,7 +1155,9 @@ type RenewPropertiesResponse struct { // Amount that Microsoft uses for record. Used during refund for calculating refund limit. Tax is not included. This is locked // price 30 days before expiry. PricingCurrencyTotal *RenewPropertiesResponsePricingCurrencyTotal `json:"pricingCurrencyTotal,omitempty"` - PurchaseProperties *PurchaseRequest `json:"purchaseProperties,omitempty"` + + // The request for reservation purchase + PurchaseProperties *PurchaseRequest `json:"purchaseProperties,omitempty"` } // RenewPropertiesResponseBillingCurrencyTotal - Currency and amount that customer will be charged in customer's local currency @@ -1024,12 +1214,12 @@ type ReservationClientGetOptions struct { Expand *string } -// ReservationClientListAllOptions contains the optional parameters for the ReservationClient.ListAll method. +// ReservationClientListAllOptions contains the optional parameters for the ReservationClient.NewListAllPager method. type ReservationClientListAllOptions struct { // May be used to filter by reservation properties. The filter supports 'eq', 'or', and 'and'. It does not currently support // 'ne', 'gt', 'le', 'ge', or 'not'. Reservation properties include sku/name, - // properties/{appliedScopeType, archived, displayName, displayProvisioningState, effectiveDateTime, expiryDate, provisioningState, - // quantity, renew, reservedResourceType, term, + // properties/{appliedScopeType, archived, displayName, displayProvisioningState, effectiveDateTime, expiryDate, expiryDateTime, + // provisioningState, quantity, renew, reservedResourceType, term, // userFriendlyAppliedScopeType, userFriendlyRenewState} Filter *string // May be used to sort order by reservation properties. @@ -1044,12 +1234,13 @@ type ReservationClientListAllOptions struct { Take *float32 } -// ReservationClientListOptions contains the optional parameters for the ReservationClient.List method. +// ReservationClientListOptions contains the optional parameters for the ReservationClient.NewListPager method. type ReservationClientListOptions struct { // placeholder for future optional parameters } -// ReservationClientListRevisionsOptions contains the optional parameters for the ReservationClient.ListRevisions method. +// ReservationClientListRevisionsOptions contains the optional parameters for the ReservationClient.NewListRevisionsPager +// method. type ReservationClientListRevisionsOptions struct { // placeholder for future optional parameters } @@ -1059,17 +1250,19 @@ type ReservationClientUnarchiveOptions struct { // placeholder for future optional parameters } +// ReservationList - List of Reservations type ReservationList struct { // Url to get the next page of reservations. NextLink *string `json:"nextLink,omitempty"` Value []*ReservationResponse `json:"value,omitempty"` } +// ReservationMergeProperties - Properties of reservation merge type ReservationMergeProperties struct { - // Reservation Resource Id Created due to the merge. Format of the resource Id is /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId} + // Reservation resource id Created due to the merge. Format of the resource id is /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId} MergeDestination *string `json:"mergeDestination,omitempty"` - // Resource Ids of the Source Reservation's merged to form this Reservation. Format of the resource Id is /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId} + // Resource ids of the source reservation's merged to form this reservation. Format of the resource id is /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId} MergeSources []*string `json:"mergeSources,omitempty"` } @@ -1110,17 +1303,19 @@ type ReservationOrderClientGetOptions struct { Expand *string } -// ReservationOrderClientListOptions contains the optional parameters for the ReservationOrderClient.List method. +// ReservationOrderClientListOptions contains the optional parameters for the ReservationOrderClient.NewListPager method. type ReservationOrderClientListOptions struct { // placeholder for future optional parameters } +// ReservationOrderList - List of ReservationOrders type ReservationOrderList struct { // Url to get the next page of reservationOrders. NextLink *string `json:"nextLink,omitempty"` Value []*ReservationOrderResponse `json:"value,omitempty"` } +// ReservationOrderProperties - Properties of a reservation order. type ReservationOrderProperties struct { // This is the DateTime when the reservation benefit started. BenefitStartTime *time.Time `json:"benefitStartTime,omitempty"` @@ -1134,10 +1329,13 @@ type ReservationOrderProperties struct { // Friendly name for user to easily identified the reservation. DisplayName *string `json:"displayName,omitempty"` - // This is the date when the Reservation will expire. + // This is the date when the reservation will expire. ExpiryDate *time.Time `json:"expiryDate,omitempty"` - // Total Quantity of the SKUs purchased in the Reservation. + // This is the date-time when the reservation will expire. + ExpiryDateTime *time.Time `json:"expiryDateTime,omitempty"` + + // Total Quantity of the skus purchased in the reservation. OriginalQuantity *int32 `json:"originalQuantity,omitempty"` // Information describing the type of billing plan for this reservation. @@ -1150,12 +1348,18 @@ type ReservationOrderProperties struct { RequestDateTime *time.Time `json:"requestDateTime,omitempty"` Reservations []*ReservationResponse `json:"reservations,omitempty"` - // Represent the term of Reservation. + // This is the date-time when the Azure Hybrid Benefit needs to be reviewed. + ReviewDateTime *time.Time `json:"reviewDateTime,omitempty"` + + // Represent the term of reservation. Term *ReservationTerm `json:"term,omitempty"` } +// ReservationOrderResponse - Details of a reservation order being returned. type ReservationOrderResponse struct { - Etag *int32 `json:"etag,omitempty"` + Etag *int32 `json:"etag,omitempty"` + + // Properties of a reservation order. Properties *ReservationOrderProperties `json:"properties,omitempty"` // READ-ONLY; Identifier of the reservation @@ -1178,7 +1382,7 @@ type ReservationResponse struct { // Resource Provider type to be reserved. Kind *string `json:"kind,omitempty"` - // The Azure Region where the reserved resource lives. + // The Azure region where the reserved resource lives. Location *string `json:"location,omitempty"` // The properties associated to this reservation @@ -1187,24 +1391,25 @@ type ReservationResponse struct { // The sku information associated to this reservation SKU *SKUName `json:"sku,omitempty"` - // READ-ONLY; Identifier of the reservation + // READ-ONLY; Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" ID *string `json:"id,omitempty" azure:"ro"` - // READ-ONLY; Name of the reservation + // READ-ONLY; The name of the resource Name *string `json:"name,omitempty" azure:"ro"` - // READ-ONLY; Metadata pertaining to creation and last modification of the resource. + // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` - // READ-ONLY; Type of resource. "Microsoft.Capacity/reservationOrders/reservations" + // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" Type *string `json:"type,omitempty" azure:"ro"` } +// ReservationSplitProperties - Properties of reservation split type ReservationSplitProperties struct { - // List of destination Resource Id that are created due to split. Format of the resource Id is /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId} + // List of destination resource id that are created due to split. Format of the resource id is /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId} SplitDestinations []*string `json:"splitDestinations,omitempty"` - // Resource Id of the Reservation from which this is split. Format of the resource Id is /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId} + // Resource id of the reservation from which this is split. Format of the resource id is /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId} SplitSource *string `json:"splitSource,omitempty"` } @@ -1222,6 +1427,9 @@ type ReservationSummary struct { // READ-ONLY; The number of reservation in Failed state FailedCount *float32 `json:"failedCount,omitempty" azure:"ro"` + // READ-ONLY; The number of reservation in NoBenefit state + NoBenefitCount *float32 `json:"noBenefitCount,omitempty" azure:"ro"` + // READ-ONLY; The number of reservation in Pending state PendingCount *float32 `json:"pendingCount,omitempty" azure:"ro"` @@ -1230,37 +1438,57 @@ type ReservationSummary struct { // READ-ONLY; The number of reservation in Succeeded state SucceededCount *float32 `json:"succeededCount,omitempty" azure:"ro"` + + // READ-ONLY; The number of reservation in Warning state + WarningCount *float32 `json:"warningCount,omitempty" azure:"ro"` +} + +// ReservationSwapProperties - Properties of reservation swap +type ReservationSwapProperties struct { + // Reservation resource id that the original resource gets swapped to. Format of the resource id is /providers/microsoft.capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId} + SwapDestination *string `json:"swapDestination,omitempty"` + + // Resource id of the source reservation that gets swapped. Format of the resource id is /providers/microsoft.capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId} + SwapSource *string `json:"swapSource,omitempty"` } // ReservationToExchange - Reservation refund details type ReservationToExchange struct { // billing information - BillingInformation *BillingInformation `json:"billingInformation,omitempty"` - BillingRefundAmount *Price `json:"billingRefundAmount,omitempty"` + BillingInformation *BillingInformation `json:"billingInformation,omitempty"` + + // Pricing information containing the amount and the currency code + BillingRefundAmount *Price `json:"billingRefundAmount,omitempty"` // Quantity to be returned Quantity *int32 `json:"quantity,omitempty"` - // Fully qualified id of the Reservation being returned. + // Fully qualified id of the reservation being returned. ReservationID *string `json:"reservationId,omitempty"` } // ReservationToPurchaseCalculateExchange - Reservation purchase details type ReservationToPurchaseCalculateExchange struct { - BillingCurrencyTotal *Price `json:"billingCurrencyTotal,omitempty"` - Properties *PurchaseRequest `json:"properties,omitempty"` + // Pricing information containing the amount and the currency code + BillingCurrencyTotal *Price `json:"billingCurrencyTotal,omitempty"` + + // The request for reservation purchase + Properties *PurchaseRequest `json:"properties,omitempty"` } // ReservationToPurchaseExchange - Reservation purchase details type ReservationToPurchaseExchange struct { - BillingCurrencyTotal *Price `json:"billingCurrencyTotal,omitempty"` - Properties *PurchaseRequest `json:"properties,omitempty"` + // Pricing information containing the amount and the currency code + BillingCurrencyTotal *Price `json:"billingCurrencyTotal,omitempty"` - // Fully qualified id of the Reservation being purchased. This value is only guaranteed to be non-null if the purchase is + // The request for reservation purchase + Properties *PurchaseRequest `json:"properties,omitempty"` + + // Fully qualified id of the reservation being purchased. This value is only guaranteed to be non-null if the purchase is // successful. ReservationID *string `json:"reservationId,omitempty"` - // Fully qualified id of the ReservationOrder being purchased + // Fully qualified id of the reservationOrder being purchased ReservationOrderID *string `json:"reservationOrderId,omitempty"` // Status of the individual operation. @@ -1272,20 +1500,22 @@ type ReservationToReturn struct { // Quantity to be returned. Must be greater than zero. Quantity *int32 `json:"quantity,omitempty"` - // Fully qualified identifier of the Reservation being returned + // Fully qualified identifier of the reservation being returned ReservationID *string `json:"reservationId,omitempty"` } // ReservationToReturnForExchange - Reservation refund details type ReservationToReturnForExchange struct { // billing information - BillingInformation *BillingInformation `json:"billingInformation,omitempty"` - BillingRefundAmount *Price `json:"billingRefundAmount,omitempty"` + BillingInformation *BillingInformation `json:"billingInformation,omitempty"` + + // Pricing information containing the amount and the currency code + BillingRefundAmount *Price `json:"billingRefundAmount,omitempty"` // Quantity to be returned Quantity *int32 `json:"quantity,omitempty"` - // Fully qualified id of the Reservation being returned. + // Fully qualified id of the reservation being returned. ReservationID *string `json:"reservationId,omitempty"` // Status of the individual operation. @@ -1307,6 +1537,21 @@ type ReservationUtilizationAggregates struct { ValueUnit *string `json:"valueUnit,omitempty" azure:"ro"` } +// Resource - Common fields that are returned in the response for all Azure Resource Manager resources +type Resource struct { + // READ-ONLY; Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + ID *string `json:"id,omitempty" azure:"ro"` + + // READ-ONLY; The name of the resource + Name *string `json:"name,omitempty" azure:"ro"` + + // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. + SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + + // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string `json:"type,omitempty" azure:"ro"` +} + // ResourceName - Resource name provided by the resource provider. Use this property for quotaRequest parameter. type ResourceName struct { // Resource name. @@ -1316,11 +1561,13 @@ type ResourceName struct { LocalizedValue *string `json:"localizedValue,omitempty" azure:"ro"` } -// ReturnClientPostOptions contains the optional parameters for the ReturnClient.Post method. -type ReturnClientPostOptions struct { - // placeholder for future optional parameters +// ReturnClientBeginPostOptions contains the optional parameters for the ReturnClient.BeginPost method. +type ReturnClientBeginPostOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string } +// SKUCapability - Capability of a sku. type SKUCapability struct { // An invariant to describe the feature. Name *string `json:"name,omitempty"` @@ -1329,10 +1576,12 @@ type SKUCapability struct { Value *string `json:"value,omitempty"` } +// SKUName - The name of sku type SKUName struct { Name *string `json:"name,omitempty"` } +// SKUProperty - Property of a sku. type SKUProperty struct { // An invariant to describe the feature. Name *string `json:"name,omitempty"` @@ -1341,6 +1590,7 @@ type SKUProperty struct { Value *string `json:"value,omitempty"` } +// SKURestriction - Restriction of a sku. type SKURestriction struct { // The reason for restriction. ReasonCode *string `json:"reasonCode,omitempty"` @@ -1348,11 +1598,74 @@ type SKURestriction struct { // The type of restrictions. Type *string `json:"type,omitempty"` - // The value of restrictions. If the restriction type is set to location. This would be different locations where the SKU + // The value of restrictions. If the restriction type is set to location. This would be different locations where the sku // is restricted. Values []*string `json:"values,omitempty"` } +// SavingsPlanPurchaseRequest - Request body for savings plan purchase +type SavingsPlanPurchaseRequest struct { + // Properties of a savings plan purchase + Properties *SavingsPlanPurchaseRequestProperties `json:"properties,omitempty"` + + // The name of sku + SKU *SKUName `json:"sku,omitempty"` +} + +// SavingsPlanPurchaseRequestProperties - Properties of a savings plan purchase +type SavingsPlanPurchaseRequestProperties struct { + // Properties specific to applied scope type. Not required if not applicable. Required and need to provide tenantId and managementGroupId + // if AppliedScopeType is ManagementGroup + AppliedScopeProperties *AppliedScopeProperties `json:"appliedScopeProperties,omitempty"` + + // Type of the Applied Scope. + AppliedScopeType *AppliedScopeType `json:"appliedScopeType,omitempty"` + + // Represents the billing plan in ISO 8601 format. Required only for monthly billing plans. + BillingPlan *BillingPlan `json:"billingPlan,omitempty"` + + // Subscription that will be charged for purchasing reservation or savings plan + BillingScopeID *string `json:"billingScopeId,omitempty"` + + // Commitment towards the benefit. + Commitment *Commitment `json:"commitment,omitempty"` + + // Friendly name of the savings plan + DisplayName *string `json:"displayName,omitempty"` + + // Represent savings plan term in ISO 8601 format. + Term *SavingsPlanTerm `json:"term,omitempty"` +} + +// SavingsPlanToPurchaseCalculateExchange - Savings plan purchase details +type SavingsPlanToPurchaseCalculateExchange struct { + // Pricing information containing the amount and the currency code + BillingCurrencyTotal *Price `json:"billingCurrencyTotal,omitempty"` + + // Request body for savings plan purchase + Properties *SavingsPlanPurchaseRequest `json:"properties,omitempty"` +} + +// SavingsPlanToPurchaseExchange - Savings plan purchase details +type SavingsPlanToPurchaseExchange struct { + // Pricing information containing the amount and the currency code + BillingCurrencyTotal *Price `json:"billingCurrencyTotal,omitempty"` + + // Request body for savings plan purchase + Properties *SavingsPlanPurchaseRequest `json:"properties,omitempty"` + + // Fully qualified id of the savings plan being purchased. This value is only guaranteed to be non-null if the purchase is + // successful. + SavingsPlanID *string `json:"savingsPlanId,omitempty"` + + // Fully qualified id of the savings plan order being purchased + SavingsPlanOrderID *string `json:"savingsPlanOrderId,omitempty"` + + // Status of the individual operation. + Status *OperationStatus `json:"status,omitempty"` +} + +// ScopeProperties - The scope and whether it is valid. type ScopeProperties struct { Scope *string `json:"scope,omitempty"` Valid *bool `json:"valid,omitempty"` @@ -1379,6 +1692,7 @@ type ServiceErrorDetail struct { Message *string `json:"message,omitempty" azure:"ro"` } +// SplitProperties - Properties for reservation split type SplitProperties struct { // List of the quantities in the new reservations to create. Quantities []*int32 `json:"quantities,omitempty"` @@ -1387,7 +1701,9 @@ type SplitProperties struct { ReservationID *string `json:"reservationId,omitempty"` } +// SplitRequest - The request for reservation split type SplitRequest struct { + // Properties for reservation split Properties *SplitProperties `json:"properties,omitempty"` } @@ -1415,6 +1731,7 @@ type SubRequest struct { SubRequestID *string `json:"subRequestId,omitempty" azure:"ro"` } +// SubscriptionScopeProperties - The scopes checked by the available scope api. type SubscriptionScopeProperties struct { Scopes []*ScopeProperties `json:"scopes,omitempty"` } diff --git a/sdk/resourcemanager/reservations/armreservations/models_serde.go b/sdk/resourcemanager/reservations/armreservations/models_serde.go index c42ad5582ca1..048ef8e37d4d 100644 --- a/sdk/resourcemanager/reservations/armreservations/models_serde.go +++ b/sdk/resourcemanager/reservations/armreservations/models_serde.go @@ -18,7 +18,7 @@ import ( // MarshalJSON implements the json.Marshaller interface for type AppliedReservationList. func (a AppliedReservationList) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", a.NextLink) populate(objectMap, "value", a.Value) return json.Marshal(objectMap) @@ -49,7 +49,7 @@ func (a *AppliedReservationList) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AppliedReservations. func (a AppliedReservations) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", a.ID) populate(objectMap, "name", a.Name) populate(objectMap, "properties", a.Properties) @@ -88,7 +88,7 @@ func (a *AppliedReservations) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AppliedReservationsProperties. func (a AppliedReservationsProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "reservationOrderIds", a.ReservationOrderIDs) return json.Marshal(objectMap) } @@ -113,9 +113,52 @@ func (a *AppliedReservationsProperties) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type AppliedScopeProperties. +func (a AppliedScopeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "displayName", a.DisplayName) + populate(objectMap, "managementGroupId", a.ManagementGroupID) + populate(objectMap, "resourceGroupId", a.ResourceGroupID) + populate(objectMap, "subscriptionId", a.SubscriptionID) + populate(objectMap, "tenantId", a.TenantID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AppliedScopeProperties. +func (a *AppliedScopeProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "displayName": + err = unpopulate(val, "DisplayName", &a.DisplayName) + delete(rawMsg, key) + case "managementGroupId": + err = unpopulate(val, "ManagementGroupID", &a.ManagementGroupID) + delete(rawMsg, key) + case "resourceGroupId": + err = unpopulate(val, "ResourceGroupID", &a.ResourceGroupID) + delete(rawMsg, key) + case "subscriptionId": + err = unpopulate(val, "SubscriptionID", &a.SubscriptionID) + delete(rawMsg, key) + case "tenantId": + err = unpopulate(val, "TenantID", &a.TenantID) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type AvailableScopeProperties. func (a AvailableScopeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "properties", a.Properties) return json.Marshal(objectMap) } @@ -142,7 +185,7 @@ func (a *AvailableScopeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AvailableScopeRequest. func (a AvailableScopeRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "properties", a.Properties) return json.Marshal(objectMap) } @@ -169,7 +212,7 @@ func (a *AvailableScopeRequest) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AvailableScopeRequestProperties. func (a AvailableScopeRequestProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "scopes", a.Scopes) return json.Marshal(objectMap) } @@ -196,7 +239,7 @@ func (a *AvailableScopeRequestProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type BillingInformation. func (b BillingInformation) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "billingCurrencyProratedAmount", b.BillingCurrencyProratedAmount) populate(objectMap, "billingCurrencyRemainingCommitmentAmount", b.BillingCurrencyRemainingCommitmentAmount) populate(objectMap, "billingCurrencyTotalPaidAmount", b.BillingCurrencyTotalPaidAmount) @@ -231,7 +274,7 @@ func (b *BillingInformation) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CalculateExchangeOperationResultResponse. func (c CalculateExchangeOperationResultResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "error", c.Error) populate(objectMap, "id", c.ID) populate(objectMap, "name", c.Name) @@ -274,7 +317,7 @@ func (c *CalculateExchangeOperationResultResponse) UnmarshalJSON(data []byte) er // MarshalJSON implements the json.Marshaller interface for type CalculateExchangeRequest. func (c CalculateExchangeRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "properties", c.Properties) return json.Marshal(objectMap) } @@ -301,9 +344,10 @@ func (c *CalculateExchangeRequest) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CalculateExchangeRequestProperties. func (c CalculateExchangeRequestProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "reservationsToExchange", c.ReservationsToExchange) populate(objectMap, "reservationsToPurchase", c.ReservationsToPurchase) + populate(objectMap, "savingsPlansToPurchase", c.SavingsPlansToPurchase) return json.Marshal(objectMap) } @@ -322,6 +366,9 @@ func (c *CalculateExchangeRequestProperties) UnmarshalJSON(data []byte) error { case "reservationsToPurchase": err = unpopulate(val, "ReservationsToPurchase", &c.ReservationsToPurchase) delete(rawMsg, key) + case "savingsPlansToPurchase": + err = unpopulate(val, "SavingsPlansToPurchase", &c.SavingsPlansToPurchase) + delete(rawMsg, key) } if err != nil { return fmt.Errorf("unmarshalling type %T: %v", c, err) @@ -332,13 +379,14 @@ func (c *CalculateExchangeRequestProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CalculateExchangeResponseProperties. func (c CalculateExchangeResponseProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "netPayable", c.NetPayable) populate(objectMap, "policyResult", c.PolicyResult) populate(objectMap, "purchasesTotal", c.PurchasesTotal) populate(objectMap, "refundsTotal", c.RefundsTotal) populate(objectMap, "reservationsToExchange", c.ReservationsToExchange) populate(objectMap, "reservationsToPurchase", c.ReservationsToPurchase) + populate(objectMap, "savingsPlansToPurchase", c.SavingsPlansToPurchase) populate(objectMap, "sessionId", c.SessionID) return json.Marshal(objectMap) } @@ -370,6 +418,9 @@ func (c *CalculateExchangeResponseProperties) UnmarshalJSON(data []byte) error { case "reservationsToPurchase": err = unpopulate(val, "ReservationsToPurchase", &c.ReservationsToPurchase) delete(rawMsg, key) + case "savingsPlansToPurchase": + err = unpopulate(val, "SavingsPlansToPurchase", &c.SavingsPlansToPurchase) + delete(rawMsg, key) case "sessionId": err = unpopulate(val, "SessionID", &c.SessionID) delete(rawMsg, key) @@ -383,7 +434,7 @@ func (c *CalculateExchangeResponseProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CalculatePriceResponse. func (c CalculatePriceResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "properties", c.Properties) return json.Marshal(objectMap) } @@ -410,7 +461,7 @@ func (c *CalculatePriceResponse) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CalculatePriceResponseProperties. func (c CalculatePriceResponseProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "billingCurrencyTotal", c.BillingCurrencyTotal) populate(objectMap, "grandTotal", c.GrandTotal) populate(objectMap, "isBillingPartnerManaged", c.IsBillingPartnerManaged) @@ -477,7 +528,7 @@ func (c *CalculatePriceResponseProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CalculatePriceResponsePropertiesBillingCurrencyTotal. func (c CalculatePriceResponsePropertiesBillingCurrencyTotal) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "amount", c.Amount) populate(objectMap, "currencyCode", c.CurrencyCode) return json.Marshal(objectMap) @@ -508,7 +559,7 @@ func (c *CalculatePriceResponsePropertiesBillingCurrencyTotal) UnmarshalJSON(dat // MarshalJSON implements the json.Marshaller interface for type CalculatePriceResponsePropertiesPricingCurrencyTotal. func (c CalculatePriceResponsePropertiesPricingCurrencyTotal) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "amount", c.Amount) populate(objectMap, "currencyCode", c.CurrencyCode) return json.Marshal(objectMap) @@ -539,7 +590,7 @@ func (c *CalculatePriceResponsePropertiesPricingCurrencyTotal) UnmarshalJSON(dat // MarshalJSON implements the json.Marshaller interface for type CalculateRefundRequest. func (c CalculateRefundRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", c.ID) populate(objectMap, "properties", c.Properties) return json.Marshal(objectMap) @@ -570,7 +621,7 @@ func (c *CalculateRefundRequest) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CalculateRefundRequestProperties. func (c CalculateRefundRequestProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "reservationToReturn", c.ReservationToReturn) populate(objectMap, "scope", c.Scope) return json.Marshal(objectMap) @@ -601,7 +652,7 @@ func (c *CalculateRefundRequestProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CalculateRefundResponse. func (c CalculateRefundResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", c.ID) populate(objectMap, "properties", c.Properties) return json.Marshal(objectMap) @@ -632,7 +683,7 @@ func (c *CalculateRefundResponse) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Catalog. func (c Catalog) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "billingPlans", c.BillingPlans) populate(objectMap, "capabilities", c.Capabilities) populate(objectMap, "locations", c.Locations) @@ -699,7 +750,7 @@ func (c *Catalog) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CatalogMsrp. func (c CatalogMsrp) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "p1Y", c.P1Y) return json.Marshal(objectMap) } @@ -724,9 +775,44 @@ func (c *CatalogMsrp) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type CatalogsResult. +func (c CatalogsResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", c.NextLink) + populate(objectMap, "totalItems", c.TotalItems) + populate(objectMap, "value", c.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CatalogsResult. +func (c *CatalogsResult) 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 "nextLink": + err = unpopulate(val, "NextLink", &c.NextLink) + delete(rawMsg, key) + case "totalItems": + err = unpopulate(val, "TotalItems", &c.TotalItems) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &c.Value) + 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 ChangeDirectoryRequest. func (c ChangeDirectoryRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "destinationTenantId", c.DestinationTenantID) return json.Marshal(objectMap) } @@ -753,7 +839,7 @@ func (c *ChangeDirectoryRequest) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ChangeDirectoryResponse. func (c ChangeDirectoryResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "reservationOrder", c.ReservationOrder) populate(objectMap, "reservations", c.Reservations) return json.Marshal(objectMap) @@ -784,7 +870,7 @@ func (c *ChangeDirectoryResponse) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ChangeDirectoryResult. func (c ChangeDirectoryResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "error", c.Error) populate(objectMap, "id", c.ID) populate(objectMap, "isSucceeded", c.IsSucceeded) @@ -821,9 +907,44 @@ func (c *ChangeDirectoryResult) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type Commitment. +func (c Commitment) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "amount", c.Amount) + populate(objectMap, "currencyCode", c.CurrencyCode) + populate(objectMap, "grain", c.Grain) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Commitment. +func (c *Commitment) 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 "amount": + err = unpopulate(val, "Amount", &c.Amount) + delete(rawMsg, key) + case "currencyCode": + err = unpopulate(val, "CurrencyCode", &c.CurrencyCode) + delete(rawMsg, key) + case "grain": + err = unpopulate(val, "Grain", &c.Grain) + 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 CreateGenericQuotaRequestParameters. func (c CreateGenericQuotaRequestParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "value", c.Value) return json.Marshal(objectMap) } @@ -850,7 +971,7 @@ func (c *CreateGenericQuotaRequestParameters) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CurrentQuotaLimit. func (c CurrentQuotaLimit) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "properties", c.Properties) populate(objectMap, "quotaInformation", c.QuotaInformation) return json.Marshal(objectMap) @@ -881,7 +1002,7 @@ func (c *CurrentQuotaLimit) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CurrentQuotaLimitBase. func (c CurrentQuotaLimitBase) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", c.ID) populate(objectMap, "name", c.Name) populate(objectMap, "properties", c.Properties) @@ -920,7 +1041,7 @@ func (c *CurrentQuotaLimitBase) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Error. func (e Error) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "error", e.Error) return json.Marshal(objectMap) } @@ -947,7 +1068,7 @@ func (e *Error) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ErrorDetails. func (e ErrorDetails) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "code", e.Code) populate(objectMap, "message", e.Message) populate(objectMap, "target", e.Target) @@ -982,7 +1103,7 @@ func (e *ErrorDetails) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ErrorResponse. func (e ErrorResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "error", e.Error) return json.Marshal(objectMap) } @@ -1009,7 +1130,7 @@ func (e *ErrorResponse) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ExceptionResponse. func (e ExceptionResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "error", e.Error) return json.Marshal(objectMap) } @@ -1036,7 +1157,7 @@ func (e *ExceptionResponse) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ExchangeOperationResultResponse. func (e ExchangeOperationResultResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "error", e.Error) populate(objectMap, "id", e.ID) populate(objectMap, "name", e.Name) @@ -1079,7 +1200,7 @@ func (e *ExchangeOperationResultResponse) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ExchangePolicyError. func (e ExchangePolicyError) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "code", e.Code) populate(objectMap, "message", e.Message) return json.Marshal(objectMap) @@ -1110,7 +1231,7 @@ func (e *ExchangePolicyError) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ExchangePolicyErrors. func (e ExchangePolicyErrors) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "policyErrors", e.PolicyErrors) return json.Marshal(objectMap) } @@ -1137,7 +1258,7 @@ func (e *ExchangePolicyErrors) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ExchangeRequest. func (e ExchangeRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "properties", e.Properties) return json.Marshal(objectMap) } @@ -1164,7 +1285,7 @@ func (e *ExchangeRequest) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ExchangeRequestProperties. func (e ExchangeRequestProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "sessionId", e.SessionID) return json.Marshal(objectMap) } @@ -1191,13 +1312,14 @@ func (e *ExchangeRequestProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ExchangeResponseProperties. func (e ExchangeResponseProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "netPayable", e.NetPayable) populate(objectMap, "policyResult", e.PolicyResult) populate(objectMap, "purchasesTotal", e.PurchasesTotal) populate(objectMap, "refundsTotal", e.RefundsTotal) populate(objectMap, "reservationsToExchange", e.ReservationsToExchange) populate(objectMap, "reservationsToPurchase", e.ReservationsToPurchase) + populate(objectMap, "savingsPlansToPurchase", e.SavingsPlansToPurchase) populate(objectMap, "sessionId", e.SessionID) return json.Marshal(objectMap) } @@ -1229,6 +1351,9 @@ func (e *ExchangeResponseProperties) UnmarshalJSON(data []byte) error { case "reservationsToPurchase": err = unpopulate(val, "ReservationsToPurchase", &e.ReservationsToPurchase) delete(rawMsg, key) + case "savingsPlansToPurchase": + err = unpopulate(val, "SavingsPlansToPurchase", &e.SavingsPlansToPurchase) + delete(rawMsg, key) case "sessionId": err = unpopulate(val, "SessionID", &e.SessionID) delete(rawMsg, key) @@ -1242,7 +1367,7 @@ func (e *ExchangeResponseProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ExtendedErrorInfo. func (e ExtendedErrorInfo) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "code", e.Code) populate(objectMap, "message", e.Message) return json.Marshal(objectMap) @@ -1273,7 +1398,7 @@ func (e *ExtendedErrorInfo) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ExtendedStatusInfo. func (e ExtendedStatusInfo) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "message", e.Message) populate(objectMap, "statusCode", e.StatusCode) return json.Marshal(objectMap) @@ -1304,7 +1429,7 @@ func (e *ExtendedStatusInfo) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ListResult. func (l ListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", l.NextLink) populate(objectMap, "summary", l.Summary) populate(objectMap, "value", l.Value) @@ -1339,7 +1464,7 @@ func (l *ListResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MergeProperties. func (m MergeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "sources", m.Sources) return json.Marshal(objectMap) } @@ -1366,7 +1491,7 @@ func (m *MergeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MergeRequest. func (m MergeRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "properties", m.Properties) return json.Marshal(objectMap) } @@ -1393,7 +1518,7 @@ func (m *MergeRequest) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OperationDisplay. func (o OperationDisplay) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "description", o.Description) populate(objectMap, "operation", o.Operation) populate(objectMap, "provider", o.Provider) @@ -1432,7 +1557,7 @@ func (o *OperationDisplay) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OperationList. func (o OperationList) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", o.NextLink) populate(objectMap, "value", o.Value) return json.Marshal(objectMap) @@ -1463,7 +1588,7 @@ func (o *OperationList) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OperationResponse. func (o OperationResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "display", o.Display) populate(objectMap, "isDataAction", o.IsDataAction) populate(objectMap, "name", o.Name) @@ -1506,7 +1631,7 @@ func (o *OperationResponse) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OperationResultError. func (o OperationResultError) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "code", o.Code) populate(objectMap, "message", o.Message) return json.Marshal(objectMap) @@ -1537,7 +1662,7 @@ func (o *OperationResultError) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Patch. func (p Patch) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "properties", p.Properties) return json.Marshal(objectMap) } @@ -1564,13 +1689,15 @@ func (p *Patch) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PatchProperties. func (p PatchProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) + populate(objectMap, "appliedScopeProperties", p.AppliedScopeProperties) populate(objectMap, "appliedScopeType", p.AppliedScopeType) populate(objectMap, "appliedScopes", p.AppliedScopes) populate(objectMap, "instanceFlexibility", p.InstanceFlexibility) populate(objectMap, "name", p.Name) populate(objectMap, "renew", p.Renew) populate(objectMap, "renewProperties", p.RenewProperties) + populateTimeRFC3339(objectMap, "reviewDateTime", p.ReviewDateTime) return json.Marshal(objectMap) } @@ -1583,6 +1710,9 @@ func (p *PatchProperties) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { + case "appliedScopeProperties": + err = unpopulate(val, "AppliedScopeProperties", &p.AppliedScopeProperties) + delete(rawMsg, key) case "appliedScopeType": err = unpopulate(val, "AppliedScopeType", &p.AppliedScopeType) delete(rawMsg, key) @@ -1601,6 +1731,9 @@ func (p *PatchProperties) UnmarshalJSON(data []byte) error { case "renewProperties": err = unpopulate(val, "RenewProperties", &p.RenewProperties) delete(rawMsg, key) + case "reviewDateTime": + err = unpopulateTimeRFC3339(val, "ReviewDateTime", &p.ReviewDateTime) + delete(rawMsg, key) } if err != nil { return fmt.Errorf("unmarshalling type %T: %v", p, err) @@ -1611,7 +1744,7 @@ func (p *PatchProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PatchPropertiesRenewProperties. func (p PatchPropertiesRenewProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "purchaseProperties", p.PurchaseProperties) return json.Marshal(objectMap) } @@ -1638,7 +1771,7 @@ func (p *PatchPropertiesRenewProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PaymentDetail. func (p PaymentDetail) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "billingAccount", p.BillingAccount) populate(objectMap, "billingCurrencyTotal", p.BillingCurrencyTotal) populateDateType(objectMap, "dueDate", p.DueDate) @@ -1689,7 +1822,7 @@ func (p *PaymentDetail) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Price. func (p Price) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "amount", p.Amount) populate(objectMap, "currencyCode", p.CurrencyCode) return json.Marshal(objectMap) @@ -1720,7 +1853,8 @@ func (p *Price) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Properties. func (p Properties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) + populate(objectMap, "appliedScopeProperties", p.AppliedScopeProperties) populate(objectMap, "appliedScopeType", p.AppliedScopeType) populate(objectMap, "appliedScopes", p.AppliedScopes) populate(objectMap, "archived", p.Archived) @@ -1732,6 +1866,7 @@ func (p Properties) MarshalJSON() ([]byte, error) { populate(objectMap, "displayProvisioningState", p.DisplayProvisioningState) populateTimeRFC3339(objectMap, "effectiveDateTime", p.EffectiveDateTime) populateDateType(objectMap, "expiryDate", p.ExpiryDate) + populateTimeRFC3339(objectMap, "expiryDateTime", p.ExpiryDateTime) populate(objectMap, "extendedStatusInfo", p.ExtendedStatusInfo) populate(objectMap, "instanceFlexibility", p.InstanceFlexibility) populateTimeRFC3339(objectMap, "lastUpdatedDateTime", p.LastUpdatedDateTime) @@ -1739,14 +1874,17 @@ func (p Properties) MarshalJSON() ([]byte, error) { populate(objectMap, "provisioningState", p.ProvisioningState) populate(objectMap, "provisioningSubState", p.ProvisioningSubState) populateDateType(objectMap, "purchaseDate", p.PurchaseDate) + populateTimeRFC3339(objectMap, "purchaseDateTime", p.PurchaseDateTime) populate(objectMap, "quantity", p.Quantity) populate(objectMap, "renew", p.Renew) populate(objectMap, "renewDestination", p.RenewDestination) populate(objectMap, "renewProperties", p.RenewProperties) populate(objectMap, "renewSource", p.RenewSource) populate(objectMap, "reservedResourceType", p.ReservedResourceType) + populateTimeRFC3339(objectMap, "reviewDateTime", p.ReviewDateTime) populate(objectMap, "skuDescription", p.SKUDescription) populate(objectMap, "splitProperties", p.SplitProperties) + populate(objectMap, "swapProperties", p.SwapProperties) populate(objectMap, "term", p.Term) populate(objectMap, "userFriendlyAppliedScopeType", p.UserFriendlyAppliedScopeType) populate(objectMap, "userFriendlyRenewState", p.UserFriendlyRenewState) @@ -1763,6 +1901,9 @@ func (p *Properties) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { + case "appliedScopeProperties": + err = unpopulate(val, "AppliedScopeProperties", &p.AppliedScopeProperties) + delete(rawMsg, key) case "appliedScopeType": err = unpopulate(val, "AppliedScopeType", &p.AppliedScopeType) delete(rawMsg, key) @@ -1796,6 +1937,9 @@ func (p *Properties) UnmarshalJSON(data []byte) error { case "expiryDate": err = unpopulateDateType(val, "ExpiryDate", &p.ExpiryDate) delete(rawMsg, key) + case "expiryDateTime": + err = unpopulateTimeRFC3339(val, "ExpiryDateTime", &p.ExpiryDateTime) + delete(rawMsg, key) case "extendedStatusInfo": err = unpopulate(val, "ExtendedStatusInfo", &p.ExtendedStatusInfo) delete(rawMsg, key) @@ -1817,6 +1961,9 @@ func (p *Properties) UnmarshalJSON(data []byte) error { case "purchaseDate": err = unpopulateDateType(val, "PurchaseDate", &p.PurchaseDate) delete(rawMsg, key) + case "purchaseDateTime": + err = unpopulateTimeRFC3339(val, "PurchaseDateTime", &p.PurchaseDateTime) + delete(rawMsg, key) case "quantity": err = unpopulate(val, "Quantity", &p.Quantity) delete(rawMsg, key) @@ -1835,12 +1982,18 @@ func (p *Properties) UnmarshalJSON(data []byte) error { case "reservedResourceType": err = unpopulate(val, "ReservedResourceType", &p.ReservedResourceType) delete(rawMsg, key) + case "reviewDateTime": + err = unpopulateTimeRFC3339(val, "ReviewDateTime", &p.ReviewDateTime) + delete(rawMsg, key) case "skuDescription": err = unpopulate(val, "SKUDescription", &p.SKUDescription) delete(rawMsg, key) case "splitProperties": err = unpopulate(val, "SplitProperties", &p.SplitProperties) delete(rawMsg, key) + case "swapProperties": + err = unpopulate(val, "SwapProperties", &p.SwapProperties) + delete(rawMsg, key) case "term": err = unpopulate(val, "Term", &p.Term) delete(rawMsg, key) @@ -1863,7 +2016,7 @@ func (p *Properties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PropertiesUtilization. func (p PropertiesUtilization) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "aggregates", p.Aggregates) populate(objectMap, "trend", p.Trend) return json.Marshal(objectMap) @@ -1892,9 +2045,48 @@ func (p *PropertiesUtilization) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type ProxyResource. +func (p ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", p.ID) + populate(objectMap, "name", p.Name) + populate(objectMap, "systemData", p.SystemData) + populate(objectMap, "type", p.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ProxyResource. +func (p *ProxyResource) 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", p, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &p.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &p.Name) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &p.SystemData) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &p.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", p, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type PurchaseRequest. func (p PurchaseRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "location", p.Location) populate(objectMap, "properties", p.Properties) populate(objectMap, "sku", p.SKU) @@ -1929,7 +2121,8 @@ func (p *PurchaseRequest) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PurchaseRequestProperties. func (p PurchaseRequestProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) + populate(objectMap, "appliedScopeProperties", p.AppliedScopeProperties) populate(objectMap, "appliedScopeType", p.AppliedScopeType) populate(objectMap, "appliedScopes", p.AppliedScopes) populate(objectMap, "billingPlan", p.BillingPlan) @@ -1939,6 +2132,7 @@ func (p PurchaseRequestProperties) MarshalJSON() ([]byte, error) { populate(objectMap, "renew", p.Renew) populate(objectMap, "reservedResourceProperties", p.ReservedResourceProperties) populate(objectMap, "reservedResourceType", p.ReservedResourceType) + populateTimeRFC3339(objectMap, "reviewDateTime", p.ReviewDateTime) populate(objectMap, "term", p.Term) return json.Marshal(objectMap) } @@ -1952,6 +2146,9 @@ func (p *PurchaseRequestProperties) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { + case "appliedScopeProperties": + err = unpopulate(val, "AppliedScopeProperties", &p.AppliedScopeProperties) + delete(rawMsg, key) case "appliedScopeType": err = unpopulate(val, "AppliedScopeType", &p.AppliedScopeType) delete(rawMsg, key) @@ -1979,6 +2176,9 @@ func (p *PurchaseRequestProperties) UnmarshalJSON(data []byte) error { case "reservedResourceType": err = unpopulate(val, "ReservedResourceType", &p.ReservedResourceType) delete(rawMsg, key) + case "reviewDateTime": + err = unpopulateTimeRFC3339(val, "ReviewDateTime", &p.ReviewDateTime) + delete(rawMsg, key) case "term": err = unpopulate(val, "Term", &p.Term) delete(rawMsg, key) @@ -1992,7 +2192,7 @@ func (p *PurchaseRequestProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PurchaseRequestPropertiesReservedResourceProperties. func (p PurchaseRequestPropertiesReservedResourceProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "instanceFlexibility", p.InstanceFlexibility) return json.Marshal(objectMap) } @@ -2019,7 +2219,7 @@ func (p *PurchaseRequestPropertiesReservedResourceProperties) UnmarshalJSON(data // MarshalJSON implements the json.Marshaller interface for type QuotaLimits. func (q QuotaLimits) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", q.NextLink) populate(objectMap, "value", q.Value) return json.Marshal(objectMap) @@ -2050,7 +2250,7 @@ func (q *QuotaLimits) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type QuotaLimitsResponse. func (q QuotaLimitsResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", q.NextLink) populate(objectMap, "value", q.Value) return json.Marshal(objectMap) @@ -2081,7 +2281,7 @@ func (q *QuotaLimitsResponse) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type QuotaProperties. func (q QuotaProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "currentValue", q.CurrentValue) populate(objectMap, "limit", q.Limit) populate(objectMap, "name", q.Name) @@ -2132,7 +2332,7 @@ func (q *QuotaProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type QuotaRequestDetails. func (q QuotaRequestDetails) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", q.ID) populate(objectMap, "name", q.Name) populate(objectMap, "properties", q.Properties) @@ -2171,7 +2371,7 @@ func (q *QuotaRequestDetails) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type QuotaRequestDetailsList. func (q QuotaRequestDetailsList) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", q.NextLink) populate(objectMap, "value", q.Value) return json.Marshal(objectMap) @@ -2202,7 +2402,7 @@ func (q *QuotaRequestDetailsList) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type QuotaRequestOneResourceProperties. func (q QuotaRequestOneResourceProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "message", q.Message) populate(objectMap, "properties", q.Properties) populate(objectMap, "provisioningState", q.ProvisioningState) @@ -2241,7 +2441,7 @@ func (q *QuotaRequestOneResourceProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type QuotaRequestOneResourceSubmitResponse. func (q QuotaRequestOneResourceSubmitResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", q.ID) populate(objectMap, "name", q.Name) populate(objectMap, "properties", q.Properties) @@ -2280,7 +2480,7 @@ func (q *QuotaRequestOneResourceSubmitResponse) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type QuotaRequestProperties. func (q QuotaRequestProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "message", q.Message) populate(objectMap, "provisioningState", q.ProvisioningState) populateTimeRFC3339(objectMap, "requestSubmitTime", q.RequestSubmitTime) @@ -2319,7 +2519,7 @@ func (q *QuotaRequestProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type QuotaRequestStatusDetails. func (q QuotaRequestStatusDetails) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "message", q.Message) populate(objectMap, "provisioningState", q.ProvisioningState) return json.Marshal(objectMap) @@ -2350,7 +2550,7 @@ func (q *QuotaRequestStatusDetails) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type QuotaRequestSubmitResponse. func (q QuotaRequestSubmitResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", q.ID) populate(objectMap, "name", q.Name) populate(objectMap, "properties", q.Properties) @@ -2389,7 +2589,7 @@ func (q *QuotaRequestSubmitResponse) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type QuotaRequestSubmitResponse201. func (q QuotaRequestSubmitResponse201) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", q.ID) populate(objectMap, "name", q.Name) populate(objectMap, "properties", q.Properties) @@ -2428,7 +2628,7 @@ func (q *QuotaRequestSubmitResponse201) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RefundBillingInformation. func (r RefundBillingInformation) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "billingCurrencyProratedAmount", r.BillingCurrencyProratedAmount) populate(objectMap, "billingCurrencyRemainingCommitmentAmount", r.BillingCurrencyRemainingCommitmentAmount) populate(objectMap, "billingCurrencyTotalPaidAmount", r.BillingCurrencyTotalPaidAmount) @@ -2475,7 +2675,7 @@ func (r *RefundBillingInformation) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RefundPolicyError. func (r RefundPolicyError) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "code", r.Code) populate(objectMap, "message", r.Message) return json.Marshal(objectMap) @@ -2506,7 +2706,7 @@ func (r *RefundPolicyError) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RefundPolicyResult. func (r RefundPolicyResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "properties", r.Properties) return json.Marshal(objectMap) } @@ -2533,7 +2733,7 @@ func (r *RefundPolicyResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RefundPolicyResultProperty. func (r RefundPolicyResultProperty) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "consumedRefundsTotal", r.ConsumedRefundsTotal) populate(objectMap, "maxRefundLimit", r.MaxRefundLimit) populate(objectMap, "policyErrors", r.PolicyErrors) @@ -2568,7 +2768,7 @@ func (r *RefundPolicyResultProperty) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RefundRequest. func (r RefundRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "properties", r.Properties) return json.Marshal(objectMap) } @@ -2595,7 +2795,7 @@ func (r *RefundRequest) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RefundRequestProperties. func (r RefundRequestProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "reservationToReturn", r.ReservationToReturn) populate(objectMap, "returnReason", r.ReturnReason) populate(objectMap, "scope", r.Scope) @@ -2634,7 +2834,7 @@ func (r *RefundRequestProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RefundResponse. func (r RefundResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", r.ID) populate(objectMap, "properties", r.Properties) return json.Marshal(objectMap) @@ -2665,7 +2865,7 @@ func (r *RefundResponse) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RefundResponseProperties. func (r RefundResponseProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "billingInformation", r.BillingInformation) populate(objectMap, "billingRefundAmount", r.BillingRefundAmount) populate(objectMap, "policyResult", r.PolicyResult) @@ -2712,7 +2912,7 @@ func (r *RefundResponseProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RenewPropertiesResponse. func (r RenewPropertiesResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "billingCurrencyTotal", r.BillingCurrencyTotal) populate(objectMap, "pricingCurrencyTotal", r.PricingCurrencyTotal) populate(objectMap, "purchaseProperties", r.PurchaseProperties) @@ -2747,7 +2947,7 @@ func (r *RenewPropertiesResponse) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RenewPropertiesResponseBillingCurrencyTotal. func (r RenewPropertiesResponseBillingCurrencyTotal) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "amount", r.Amount) populate(objectMap, "currencyCode", r.CurrencyCode) return json.Marshal(objectMap) @@ -2778,7 +2978,7 @@ func (r *RenewPropertiesResponseBillingCurrencyTotal) UnmarshalJSON(data []byte) // MarshalJSON implements the json.Marshaller interface for type RenewPropertiesResponsePricingCurrencyTotal. func (r RenewPropertiesResponsePricingCurrencyTotal) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "amount", r.Amount) populate(objectMap, "currencyCode", r.CurrencyCode) return json.Marshal(objectMap) @@ -2809,7 +3009,7 @@ func (r *RenewPropertiesResponsePricingCurrencyTotal) UnmarshalJSON(data []byte) // MarshalJSON implements the json.Marshaller interface for type ReservationList. func (r ReservationList) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", r.NextLink) populate(objectMap, "value", r.Value) return json.Marshal(objectMap) @@ -2840,7 +3040,7 @@ func (r *ReservationList) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ReservationMergeProperties. func (r ReservationMergeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "mergeDestination", r.MergeDestination) populate(objectMap, "mergeSources", r.MergeSources) return json.Marshal(objectMap) @@ -2871,7 +3071,7 @@ func (r *ReservationMergeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ReservationOrderBillingPlanInformation. func (r ReservationOrderBillingPlanInformation) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populateDateType(objectMap, "nextPaymentDueDate", r.NextPaymentDueDate) populate(objectMap, "pricingCurrencyTotal", r.PricingCurrencyTotal) populateDateType(objectMap, "startDate", r.StartDate) @@ -2910,7 +3110,7 @@ func (r *ReservationOrderBillingPlanInformation) UnmarshalJSON(data []byte) erro // MarshalJSON implements the json.Marshaller interface for type ReservationOrderList. func (r ReservationOrderList) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", r.NextLink) populate(objectMap, "value", r.Value) return json.Marshal(objectMap) @@ -2941,17 +3141,19 @@ func (r *ReservationOrderList) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ReservationOrderProperties. func (r ReservationOrderProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populateTimeRFC3339(objectMap, "benefitStartTime", r.BenefitStartTime) populate(objectMap, "billingPlan", r.BillingPlan) populateTimeRFC3339(objectMap, "createdDateTime", r.CreatedDateTime) populate(objectMap, "displayName", r.DisplayName) populateDateType(objectMap, "expiryDate", r.ExpiryDate) + populateTimeRFC3339(objectMap, "expiryDateTime", r.ExpiryDateTime) populate(objectMap, "originalQuantity", r.OriginalQuantity) populate(objectMap, "planInformation", r.PlanInformation) populate(objectMap, "provisioningState", r.ProvisioningState) populateTimeRFC3339(objectMap, "requestDateTime", r.RequestDateTime) populate(objectMap, "reservations", r.Reservations) + populateTimeRFC3339(objectMap, "reviewDateTime", r.ReviewDateTime) populate(objectMap, "term", r.Term) return json.Marshal(objectMap) } @@ -2980,6 +3182,9 @@ func (r *ReservationOrderProperties) UnmarshalJSON(data []byte) error { case "expiryDate": err = unpopulateDateType(val, "ExpiryDate", &r.ExpiryDate) delete(rawMsg, key) + case "expiryDateTime": + err = unpopulateTimeRFC3339(val, "ExpiryDateTime", &r.ExpiryDateTime) + delete(rawMsg, key) case "originalQuantity": err = unpopulate(val, "OriginalQuantity", &r.OriginalQuantity) delete(rawMsg, key) @@ -2995,6 +3200,9 @@ func (r *ReservationOrderProperties) UnmarshalJSON(data []byte) error { case "reservations": err = unpopulate(val, "Reservations", &r.Reservations) delete(rawMsg, key) + case "reviewDateTime": + err = unpopulateTimeRFC3339(val, "ReviewDateTime", &r.ReviewDateTime) + delete(rawMsg, key) case "term": err = unpopulate(val, "Term", &r.Term) delete(rawMsg, key) @@ -3008,7 +3216,7 @@ func (r *ReservationOrderProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ReservationOrderResponse. func (r ReservationOrderResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "etag", r.Etag) populate(objectMap, "id", r.ID) populate(objectMap, "name", r.Name) @@ -3055,7 +3263,7 @@ func (r *ReservationOrderResponse) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ReservationResponse. func (r ReservationResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "etag", r.Etag) populate(objectMap, "id", r.ID) objectMap["kind"] = "Microsoft.Compute" @@ -3114,7 +3322,7 @@ func (r *ReservationResponse) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ReservationSplitProperties. func (r ReservationSplitProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "splitDestinations", r.SplitDestinations) populate(objectMap, "splitSource", r.SplitSource) return json.Marshal(objectMap) @@ -3145,14 +3353,16 @@ func (r *ReservationSplitProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ReservationSummary. func (r ReservationSummary) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "cancelledCount", r.CancelledCount) populate(objectMap, "expiredCount", r.ExpiredCount) populate(objectMap, "expiringCount", r.ExpiringCount) populate(objectMap, "failedCount", r.FailedCount) + populate(objectMap, "noBenefitCount", r.NoBenefitCount) populate(objectMap, "pendingCount", r.PendingCount) populate(objectMap, "processingCount", r.ProcessingCount) populate(objectMap, "succeededCount", r.SucceededCount) + populate(objectMap, "warningCount", r.WarningCount) return json.Marshal(objectMap) } @@ -3177,6 +3387,9 @@ func (r *ReservationSummary) UnmarshalJSON(data []byte) error { case "failedCount": err = unpopulate(val, "FailedCount", &r.FailedCount) delete(rawMsg, key) + case "noBenefitCount": + err = unpopulate(val, "NoBenefitCount", &r.NoBenefitCount) + delete(rawMsg, key) case "pendingCount": err = unpopulate(val, "PendingCount", &r.PendingCount) delete(rawMsg, key) @@ -3186,6 +3399,40 @@ func (r *ReservationSummary) UnmarshalJSON(data []byte) error { case "succeededCount": err = unpopulate(val, "SucceededCount", &r.SucceededCount) delete(rawMsg, key) + case "warningCount": + err = unpopulate(val, "WarningCount", &r.WarningCount) + 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 ReservationSwapProperties. +func (r ReservationSwapProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "swapDestination", r.SwapDestination) + populate(objectMap, "swapSource", r.SwapSource) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ReservationSwapProperties. +func (r *ReservationSwapProperties) 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 "swapDestination": + err = unpopulate(val, "SwapDestination", &r.SwapDestination) + delete(rawMsg, key) + case "swapSource": + err = unpopulate(val, "SwapSource", &r.SwapSource) + delete(rawMsg, key) } if err != nil { return fmt.Errorf("unmarshalling type %T: %v", r, err) @@ -3196,7 +3443,7 @@ func (r *ReservationSummary) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ReservationToExchange. func (r ReservationToExchange) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "billingInformation", r.BillingInformation) populate(objectMap, "billingRefundAmount", r.BillingRefundAmount) populate(objectMap, "quantity", r.Quantity) @@ -3235,7 +3482,7 @@ func (r *ReservationToExchange) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ReservationToPurchaseCalculateExchange. func (r ReservationToPurchaseCalculateExchange) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "billingCurrencyTotal", r.BillingCurrencyTotal) populate(objectMap, "properties", r.Properties) return json.Marshal(objectMap) @@ -3266,7 +3513,7 @@ func (r *ReservationToPurchaseCalculateExchange) UnmarshalJSON(data []byte) erro // MarshalJSON implements the json.Marshaller interface for type ReservationToPurchaseExchange. func (r ReservationToPurchaseExchange) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "billingCurrencyTotal", r.BillingCurrencyTotal) populate(objectMap, "properties", r.Properties) populate(objectMap, "reservationId", r.ReservationID) @@ -3309,7 +3556,7 @@ func (r *ReservationToPurchaseExchange) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ReservationToReturn. func (r ReservationToReturn) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "quantity", r.Quantity) populate(objectMap, "reservationId", r.ReservationID) return json.Marshal(objectMap) @@ -3340,7 +3587,7 @@ func (r *ReservationToReturn) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ReservationToReturnForExchange. func (r ReservationToReturnForExchange) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "billingInformation", r.BillingInformation) populate(objectMap, "billingRefundAmount", r.BillingRefundAmount) populate(objectMap, "quantity", r.Quantity) @@ -3383,7 +3630,7 @@ func (r *ReservationToReturnForExchange) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ReservationUtilizationAggregates. func (r ReservationUtilizationAggregates) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "grain", r.Grain) populate(objectMap, "grainUnit", r.GrainUnit) populate(objectMap, "value", r.Value) @@ -3420,9 +3667,48 @@ func (r *ReservationUtilizationAggregates) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", r.ID) + populate(objectMap, "name", r.Name) + populate(objectMap, "systemData", r.SystemData) + populate(objectMap, "type", r.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Resource. +func (r *Resource) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", r, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &r.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &r.Name) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &r.SystemData) + 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 ResourceName. func (r ResourceName) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "localizedValue", r.LocalizedValue) populate(objectMap, "value", r.Value) return json.Marshal(objectMap) @@ -3453,7 +3739,7 @@ func (r *ResourceName) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SKUCapability. func (s SKUCapability) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "name", s.Name) populate(objectMap, "value", s.Value) return json.Marshal(objectMap) @@ -3484,7 +3770,7 @@ func (s *SKUCapability) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SKUName. func (s SKUName) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "name", s.Name) return json.Marshal(objectMap) } @@ -3511,7 +3797,7 @@ func (s *SKUName) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SKUProperty. func (s SKUProperty) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "name", s.Name) populate(objectMap, "value", s.Value) return json.Marshal(objectMap) @@ -3542,7 +3828,7 @@ func (s *SKUProperty) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SKURestriction. func (s SKURestriction) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "reasonCode", s.ReasonCode) populate(objectMap, "type", s.Type) populate(objectMap, "values", s.Values) @@ -3575,9 +3861,165 @@ func (s *SKURestriction) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type SavingsPlanPurchaseRequest. +func (s SavingsPlanPurchaseRequest) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "properties", s.Properties) + populate(objectMap, "sku", s.SKU) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SavingsPlanPurchaseRequest. +func (s *SavingsPlanPurchaseRequest) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "properties": + err = unpopulate(val, "Properties", &s.Properties) + delete(rawMsg, key) + case "sku": + err = unpopulate(val, "SKU", &s.SKU) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SavingsPlanPurchaseRequestProperties. +func (s SavingsPlanPurchaseRequestProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "appliedScopeProperties", s.AppliedScopeProperties) + populate(objectMap, "appliedScopeType", s.AppliedScopeType) + populate(objectMap, "billingPlan", s.BillingPlan) + populate(objectMap, "billingScopeId", s.BillingScopeID) + populate(objectMap, "commitment", s.Commitment) + populate(objectMap, "displayName", s.DisplayName) + populate(objectMap, "term", s.Term) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SavingsPlanPurchaseRequestProperties. +func (s *SavingsPlanPurchaseRequestProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "appliedScopeProperties": + err = unpopulate(val, "AppliedScopeProperties", &s.AppliedScopeProperties) + delete(rawMsg, key) + case "appliedScopeType": + err = unpopulate(val, "AppliedScopeType", &s.AppliedScopeType) + delete(rawMsg, key) + case "billingPlan": + err = unpopulate(val, "BillingPlan", &s.BillingPlan) + delete(rawMsg, key) + case "billingScopeId": + err = unpopulate(val, "BillingScopeID", &s.BillingScopeID) + delete(rawMsg, key) + case "commitment": + err = unpopulate(val, "Commitment", &s.Commitment) + delete(rawMsg, key) + case "displayName": + err = unpopulate(val, "DisplayName", &s.DisplayName) + delete(rawMsg, key) + case "term": + err = unpopulate(val, "Term", &s.Term) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SavingsPlanToPurchaseCalculateExchange. +func (s SavingsPlanToPurchaseCalculateExchange) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "billingCurrencyTotal", s.BillingCurrencyTotal) + populate(objectMap, "properties", s.Properties) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SavingsPlanToPurchaseCalculateExchange. +func (s *SavingsPlanToPurchaseCalculateExchange) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "billingCurrencyTotal": + err = unpopulate(val, "BillingCurrencyTotal", &s.BillingCurrencyTotal) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &s.Properties) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SavingsPlanToPurchaseExchange. +func (s SavingsPlanToPurchaseExchange) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "billingCurrencyTotal", s.BillingCurrencyTotal) + populate(objectMap, "properties", s.Properties) + populate(objectMap, "savingsPlanId", s.SavingsPlanID) + populate(objectMap, "savingsPlanOrderId", s.SavingsPlanOrderID) + populate(objectMap, "status", s.Status) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SavingsPlanToPurchaseExchange. +func (s *SavingsPlanToPurchaseExchange) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "billingCurrencyTotal": + err = unpopulate(val, "BillingCurrencyTotal", &s.BillingCurrencyTotal) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &s.Properties) + delete(rawMsg, key) + case "savingsPlanId": + err = unpopulate(val, "SavingsPlanID", &s.SavingsPlanID) + delete(rawMsg, key) + case "savingsPlanOrderId": + err = unpopulate(val, "SavingsPlanOrderID", &s.SavingsPlanOrderID) + delete(rawMsg, key) + case "status": + err = unpopulate(val, "Status", &s.Status) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type ScopeProperties. func (s ScopeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "scope", s.Scope) populate(objectMap, "valid", s.Valid) return json.Marshal(objectMap) @@ -3608,7 +4050,7 @@ func (s *ScopeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ServiceError. func (s ServiceError) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "code", s.Code) populate(objectMap, "details", s.Details) populate(objectMap, "message", s.Message) @@ -3643,7 +4085,7 @@ func (s *ServiceError) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ServiceErrorDetail. func (s ServiceErrorDetail) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "code", s.Code) populate(objectMap, "message", s.Message) return json.Marshal(objectMap) @@ -3674,7 +4116,7 @@ func (s *ServiceErrorDetail) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SplitProperties. func (s SplitProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "quantities", s.Quantities) populate(objectMap, "reservationId", s.ReservationID) return json.Marshal(objectMap) @@ -3705,7 +4147,7 @@ func (s *SplitProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SplitRequest. func (s SplitRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "properties", s.Properties) return json.Marshal(objectMap) } @@ -3732,7 +4174,7 @@ func (s *SplitRequest) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SubRequest. func (s SubRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "limit", s.Limit) populate(objectMap, "message", s.Message) populate(objectMap, "name", s.Name) @@ -3783,7 +4225,7 @@ func (s *SubRequest) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SubscriptionScopeProperties. func (s SubscriptionScopeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "scopes", s.Scopes) return json.Marshal(objectMap) } @@ -3810,7 +4252,7 @@ func (s *SubscriptionScopeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SystemData. func (s SystemData) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populateTimeRFC3339(objectMap, "createdAt", s.CreatedAt) populate(objectMap, "createdBy", s.CreatedBy) populate(objectMap, "createdByType", s.CreatedByType) @@ -3855,7 +4297,7 @@ func (s *SystemData) UnmarshalJSON(data []byte) error { return nil } -func populate(m map[string]interface{}, k string, v interface{}) { +func populate(m map[string]any, k string, v any) { if v == nil { return } else if azcore.IsNullValue(v) { @@ -3865,7 +4307,7 @@ func populate(m map[string]interface{}, k string, v interface{}) { } } -func unpopulate(data json.RawMessage, fn string, v interface{}) error { +func unpopulate(data json.RawMessage, fn string, v any) error { if data == nil { return nil } diff --git a/sdk/resourcemanager/reservations/armreservations/operation_client.go b/sdk/resourcemanager/reservations/armreservations/operation_client.go index d11ad25936ce..3faacf8412b5 100644 --- a/sdk/resourcemanager/reservations/armreservations/operation_client.go +++ b/sdk/resourcemanager/reservations/armreservations/operation_client.go @@ -28,8 +28,8 @@ type OperationClient struct { } // NewOperationClient creates a new instance of OperationClient with the specified values. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewOperationClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*OperationClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -50,8 +50,9 @@ func NewOperationClient(credential azcore.TokenCredential, options *arm.ClientOp } // NewListPager - List all the operations. -// Generated from API version 2022-03-01 -// options - OperationClientListOptions contains the optional parameters for the OperationClient.List method. +// +// Generated from API version 2022-11-01 +// - options - OperationClientListOptions contains the optional parameters for the OperationClient.NewListPager method. func (client *OperationClient) NewListPager(options *OperationClientListOptions) *runtime.Pager[OperationClientListResponse] { return runtime.NewPager(runtime.PagingHandler[OperationClientListResponse]{ More: func(page OperationClientListResponse) bool { @@ -88,7 +89,7 @@ func (client *OperationClient) listCreateRequest(ctx context.Context, options *O return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/reservations/armreservations/operation_client_example_test.go b/sdk/resourcemanager/reservations/armreservations/operation_client_example_test.go index 4081ead15252..73208584b79d 100644 --- a/sdk/resourcemanager/reservations/armreservations/operation_client_example_test.go +++ b/sdk/resourcemanager/reservations/armreservations/operation_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armreservations_test @@ -13,10 +14,10 @@ import ( "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/reservations/armreservations" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/reservations/armreservations/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/reservations/resource-manager/Microsoft.Capacity/stable/2022-03-01/examples/GetOperations.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/reservations/resource-manager/Microsoft.Capacity/stable/2022-11-01/examples/GetOperations.json func ExampleOperationClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -29,13 +30,107 @@ func ExampleOperationClient_NewListPager() { } pager := client.NewListPager(nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.OperationList = armreservations.OperationList{ + // Value: []*armreservations.OperationResponse{ + // { + // Name: to.Ptr("Microsoft.Capacity/reservationorders/read"), + // Display: &armreservations.OperationDisplay{ + // Description: to.Ptr("Read All Reservations"), + // Operation: to.Ptr("Get Reservations"), + // Provider: to.Ptr("Microsoft Capacity"), + // Resource: to.Ptr("Reservations"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.Capacity/reservationorders/write"), + // Display: &armreservations.OperationDisplay{ + // Description: to.Ptr("Create any Reservation"), + // Operation: to.Ptr("Create Reservations"), + // Provider: to.Ptr("Microsoft Capacity"), + // Resource: to.Ptr("Reservations"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.Capacity/reservationorders/action"), + // Display: &armreservations.OperationDisplay{ + // Description: to.Ptr("Update any Reservation"), + // Operation: to.Ptr("Update Reservations"), + // Provider: to.Ptr("Microsoft Capacity"), + // Resource: to.Ptr("Reservations"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.Capacity/reservationorders/delete"), + // Display: &armreservations.OperationDisplay{ + // Description: to.Ptr("Delete any Reservation"), + // Operation: to.Ptr("Delete Reservations"), + // Provider: to.Ptr("Microsoft Capacity"), + // Resource: to.Ptr("Reservations"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.Capacity/reservationorders/reservations/read"), + // Display: &armreservations.OperationDisplay{ + // Description: to.Ptr("Read All Reservations"), + // Operation: to.Ptr("Get Reservations"), + // Provider: to.Ptr("Microsoft Capacity"), + // Resource: to.Ptr("Reservations"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.Capacity/reservationorders/reservations/write"), + // Display: &armreservations.OperationDisplay{ + // Description: to.Ptr("Create any Reservation"), + // Operation: to.Ptr("Create Reservations"), + // Provider: to.Ptr("Microsoft Capacity"), + // Resource: to.Ptr("Reservations"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.Capacity/reservationorders/reservations/action"), + // Display: &armreservations.OperationDisplay{ + // Description: to.Ptr("Update any Reservation"), + // Operation: to.Ptr("Update Reservations"), + // Provider: to.Ptr("Microsoft Capacity"), + // Resource: to.Ptr("Reservations"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.Capacity/reservationorders/reservations/delete"), + // Display: &armreservations.OperationDisplay{ + // Description: to.Ptr("Delete any Reservation"), + // Operation: to.Ptr("Delete Reservations"), + // Provider: to.Ptr("Microsoft Capacity"), + // Resource: to.Ptr("Reservations"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.Capacity/reservationorders/reservations/revisions/read"), + // Display: &armreservations.OperationDisplay{ + // Description: to.Ptr("Read All Reservations"), + // Operation: to.Ptr("Get Reservations"), + // Provider: to.Ptr("Microsoft Capacity"), + // Resource: to.Ptr("Reservations"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.Capacity/register/action"), + // Display: &armreservations.OperationDisplay{ + // Description: to.Ptr("Registers the Capacity resource provider and enables the creation of Capacity resources."), + // Operation: to.Ptr("Registers the Capacity Resource Provider."), + // Provider: to.Ptr("Microsoft Capacity"), + // Resource: to.Ptr("Reservations"), + // }, + // }}, + // } } } diff --git a/sdk/resourcemanager/reservations/armreservations/quota_client.go b/sdk/resourcemanager/reservations/armreservations/quota_client.go index d8a423620c4c..89b950c26e42 100644 --- a/sdk/resourcemanager/reservations/armreservations/quota_client.go +++ b/sdk/resourcemanager/reservations/armreservations/quota_client.go @@ -31,8 +31,8 @@ type QuotaClient struct { } // NewQuotaClient creates a new instance of QuotaClient with the specified values. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewQuotaClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*QuotaClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -58,15 +58,16 @@ func NewQuotaClient(credential azcore.TokenCredential, options *arm.ClientOption // 3. Submit the JSON to the quota request API to update the quota. The Create quota request may be constructed as follows. // The PUT operation can be used to update the quota. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2020-10-25 -// subscriptionID - Azure subscription ID. -// providerID - Azure resource provider ID. -// location - Azure region. -// resourceName - The resource name for a resource provider, such as SKU name for Microsoft.Compute, Sku or TotalLowPriorityCores -// for Microsoft.MachineLearningServices -// createQuotaRequest - Quota requests payload. -// options - QuotaClientBeginCreateOrUpdateOptions contains the optional parameters for the QuotaClient.BeginCreateOrUpdate -// method. +// - subscriptionID - Azure subscription ID. +// - providerID - Azure resource provider ID. +// - location - Azure region. +// - resourceName - The resource name for a resource provider, such as SKU name for Microsoft.Compute, Sku or TotalLowPriorityCores +// for Microsoft.MachineLearningServices +// - createQuotaRequest - Quota requests payload. +// - options - QuotaClientBeginCreateOrUpdateOptions contains the optional parameters for the QuotaClient.BeginCreateOrUpdate +// method. func (client *QuotaClient) BeginCreateOrUpdate(ctx context.Context, subscriptionID string, providerID string, location string, resourceName string, createQuotaRequest CurrentQuotaLimitBase, options *QuotaClientBeginCreateOrUpdateOptions) (*runtime.Poller[QuotaClientCreateOrUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createOrUpdate(ctx, subscriptionID, providerID, location, resourceName, createQuotaRequest, options) @@ -87,6 +88,7 @@ func (client *QuotaClient) BeginCreateOrUpdate(ctx context.Context, subscription // 3. Submit the JSON to the quota request API to update the quota. The Create quota request may be constructed as follows. // The PUT operation can be used to update the quota. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2020-10-25 func (client *QuotaClient) createOrUpdate(ctx context.Context, subscriptionID string, providerID string, location string, resourceName string, createQuotaRequest CurrentQuotaLimitBase, options *QuotaClientBeginCreateOrUpdateOptions) (*http.Response, error) { req, err := client.createOrUpdateCreateRequest(ctx, subscriptionID, providerID, location, resourceName, createQuotaRequest, options) @@ -136,13 +138,14 @@ func (client *QuotaClient) createOrUpdateCreateRequest(ctx context.Context, subs // Get - Get the current quota (service limit) and usage of a resource. You can use the response from the GET operation to // submit quota update request. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2020-10-25 -// subscriptionID - Azure subscription ID. -// providerID - Azure resource provider ID. -// location - Azure region. -// resourceName - The resource name for a resource provider, such as SKU name for Microsoft.Compute, Sku or TotalLowPriorityCores -// for Microsoft.MachineLearningServices -// options - QuotaClientGetOptions contains the optional parameters for the QuotaClient.Get method. +// - subscriptionID - Azure subscription ID. +// - providerID - Azure resource provider ID. +// - location - Azure region. +// - resourceName - The resource name for a resource provider, such as SKU name for Microsoft.Compute, Sku or TotalLowPriorityCores +// for Microsoft.MachineLearningServices +// - options - QuotaClientGetOptions contains the optional parameters for the QuotaClient.Get method. func (client *QuotaClient) Get(ctx context.Context, subscriptionID string, providerID string, location string, resourceName string, options *QuotaClientGetOptions) (QuotaClientGetResponse, error) { req, err := client.getCreateRequest(ctx, subscriptionID, providerID, location, resourceName, options) if err != nil { @@ -202,11 +205,12 @@ func (client *QuotaClient) getHandleResponse(resp *http.Response) (QuotaClientGe // NewListPager - Gets a list of current quotas (service limits) and usage for all resources. The response from the list quota // operation can be leveraged to request quota updates. +// // Generated from API version 2020-10-25 -// subscriptionID - Azure subscription ID. -// providerID - Azure resource provider ID. -// location - Azure region. -// options - QuotaClientListOptions contains the optional parameters for the QuotaClient.List method. +// - subscriptionID - Azure subscription ID. +// - providerID - Azure resource provider ID. +// - location - Azure region. +// - options - QuotaClientListOptions contains the optional parameters for the QuotaClient.NewListPager method. func (client *QuotaClient) NewListPager(subscriptionID string, providerID string, location string, options *QuotaClientListOptions) *runtime.Pager[QuotaClientListResponse] { return runtime.NewPager(runtime.PagingHandler[QuotaClientListResponse]{ More: func(page QuotaClientListResponse) bool { @@ -278,14 +282,15 @@ func (client *QuotaClient) listHandleResponse(resp *http.Response) (QuotaClientL // from the GET response to a new value. • To update the quota value, submit the JSON response to the quota request API to // update the quota. • To update the quota. use the PATCH operation. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2020-10-25 -// subscriptionID - Azure subscription ID. -// providerID - Azure resource provider ID. -// location - Azure region. -// resourceName - The resource name for a resource provider, such as SKU name for Microsoft.Compute, Sku or TotalLowPriorityCores -// for Microsoft.MachineLearningServices -// createQuotaRequest - Payload for the quota request. -// options - QuotaClientBeginUpdateOptions contains the optional parameters for the QuotaClient.BeginUpdate method. +// - subscriptionID - Azure subscription ID. +// - providerID - Azure resource provider ID. +// - location - Azure region. +// - resourceName - The resource name for a resource provider, such as SKU name for Microsoft.Compute, Sku or TotalLowPriorityCores +// for Microsoft.MachineLearningServices +// - createQuotaRequest - Payload for the quota request. +// - options - QuotaClientBeginUpdateOptions contains the optional parameters for the QuotaClient.BeginUpdate method. func (client *QuotaClient) BeginUpdate(ctx context.Context, subscriptionID string, providerID string, location string, resourceName string, createQuotaRequest CurrentQuotaLimitBase, options *QuotaClientBeginUpdateOptions) (*runtime.Poller[QuotaClientUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.update(ctx, subscriptionID, providerID, location, resourceName, createQuotaRequest, options) @@ -305,6 +310,7 @@ func (client *QuotaClient) BeginUpdate(ctx context.Context, subscriptionID strin // from the GET response to a new value. • To update the quota value, submit the JSON response to the quota request API to // update the quota. • To update the quota. use the PATCH operation. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2020-10-25 func (client *QuotaClient) update(ctx context.Context, subscriptionID string, providerID string, location string, resourceName string, createQuotaRequest CurrentQuotaLimitBase, options *QuotaClientBeginUpdateOptions) (*http.Response, error) { req, err := client.updateCreateRequest(ctx, subscriptionID, providerID, location, resourceName, createQuotaRequest, options) diff --git a/sdk/resourcemanager/reservations/armreservations/quota_client_example_test.go b/sdk/resourcemanager/reservations/armreservations/quota_client_example_test.go index 954b39cfe57c..1b2643170f90 100644 --- a/sdk/resourcemanager/reservations/armreservations/quota_client_example_test.go +++ b/sdk/resourcemanager/reservations/armreservations/quota_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armreservations_test @@ -14,10 +15,10 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/reservations/armreservations" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/reservations/armreservations/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getComputeOneSkuUsages.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getComputeOneSkuUsages.json func ExampleQuotaClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -32,11 +33,23 @@ func ExampleQuotaClient_Get() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.CurrentQuotaLimitBase = armreservations.CurrentQuotaLimitBase{ + // Properties: &armreservations.QuotaProperties{ + // Name: &armreservations.ResourceName{ + // LocalizedValue: to.Ptr("Standard NDS Family vCPUs"), + // Value: to.Ptr("standardNDSFamily"), + // }, + // CurrentValue: to.Ptr[int32](0), + // Limit: to.Ptr[int32](10), + // Unit: to.Ptr("Count"), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/putComputeOneSkuQuotaRequest.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/putComputeOneSkuQuotaRequest.json func ExampleQuotaClient_BeginCreateOrUpdate_quotasRequestPutForCompute() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -63,11 +76,29 @@ func ExampleQuotaClient_BeginCreateOrUpdate_quotasRequestPutForCompute() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.CurrentQuotaLimitBase = armreservations.CurrentQuotaLimitBase{ + // Name: to.Ptr("2B5C8515-37D8-4B6A-879B-CD641A2CF605"), + // Type: to.Ptr("Microsoft.Capacity/serviceLimits"), + // ID: to.Ptr("/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Capacity/resourceProviders/Microsoft.Compute/locations/eastus/serviceLimitsRequests/2B5C8515-37D8-4B6A-879B-CD641A2CF605"), + // Properties: &armreservations.QuotaProperties{ + // Name: &armreservations.ResourceName{ + // LocalizedValue: to.Ptr("Standard FSv2 Family vCPUs"), + // Value: to.Ptr("standardFSv2Family"), + // }, + // CurrentValue: to.Ptr[int32](160), + // Limit: to.Ptr[int32](200), + // Properties: map[string]any{ + // }, + // QuotaPeriod: to.Ptr(""), + // Unit: to.Ptr("Count"), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/putMachineLearningServicesQuotaRequestDedicated.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/putMachineLearningServicesQuotaRequestDedicated.json func ExampleQuotaClient_BeginCreateOrUpdate_quotasRequestPutForMachineLearningServicesDedicatedResource() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -95,11 +126,30 @@ func ExampleQuotaClient_BeginCreateOrUpdate_quotasRequestPutForMachineLearningSe if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.CurrentQuotaLimitBase = armreservations.CurrentQuotaLimitBase{ + // Name: to.Ptr("2B5C8515-37D8-4B6A-879B-CD641A2CF605"), + // Type: to.Ptr("Microsoft.Capacity/serviceLimits"), + // ID: to.Ptr("/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Capacity/resourceProviders/Microsoft.MachineLearningServices/locations/eastus/serviceLimitsRequests/2B5C8515-37D8-4B6A-879B-CD641A2CF605"), + // Properties: &armreservations.QuotaProperties{ + // Name: &armreservations.ResourceName{ + // LocalizedValue: to.Ptr("Standard Dv2 Family Cluster Dedicated vCPUs"), + // Value: to.Ptr("StandardDv2Family"), + // }, + // CurrentValue: to.Ptr[int32](160), + // Limit: to.Ptr[int32](200), + // Properties: map[string]any{ + // }, + // QuotaPeriod: to.Ptr(""), + // ResourceType: to.Ptr(armreservations.ResourceTypeDedicated), + // Unit: to.Ptr("Count"), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/putMachineLearningServicesQuotaRequestLowPriority.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/putMachineLearningServicesQuotaRequestLowPriority.json func ExampleQuotaClient_BeginCreateOrUpdate_quotasRequestPutForMachineLearningServicesLowPriorityResource() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -127,11 +177,30 @@ func ExampleQuotaClient_BeginCreateOrUpdate_quotasRequestPutForMachineLearningSe if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.CurrentQuotaLimitBase = armreservations.CurrentQuotaLimitBase{ + // Name: to.Ptr("2B5C8515-37D8-4B6A-879B-CD641A2CF605"), + // Type: to.Ptr("Microsoft.Capacity/serviceLimits"), + // ID: to.Ptr("/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Capacity/resourceProviders/Microsoft.MachineLearningServices/locations/eastus/serviceLimitsRequests/2B5C8515-37D8-4B6A-879B-CD641A2CF605"), + // Properties: &armreservations.QuotaProperties{ + // Name: &armreservations.ResourceName{ + // LocalizedValue: to.Ptr("Total Cluster Low Priority Regional vCPUs"), + // Value: to.Ptr("TotalLowPriorityCores"), + // }, + // CurrentValue: to.Ptr[int32](160), + // Limit: to.Ptr[int32](200), + // Properties: map[string]any{ + // }, + // QuotaPeriod: to.Ptr(""), + // ResourceType: to.Ptr(armreservations.ResourceTypeLowPriority), + // Unit: to.Ptr("Count"), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/patchComputeQuotaRequest.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/patchComputeQuotaRequest.json func ExampleQuotaClient_BeginUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -158,11 +227,29 @@ func ExampleQuotaClient_BeginUpdate() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.CurrentQuotaLimitBase = armreservations.CurrentQuotaLimitBase{ + // Name: to.Ptr("2B5C8515-37D8-4B6A-879B-CD641A2CF605"), + // Type: to.Ptr("Microsoft.Capacity/serviceLimits"), + // ID: to.Ptr("/subscriptions/D7EC67B3-7657-4966-BFFC-41EFD36BAAB3/providers/Microsoft.Capacity/resourceProviders/Microsoft.Compute/locations/eastus/serviceLimitsRequests/2B5C8515-37D8-4B6A-879B-CD641A2CF605"), + // Properties: &armreservations.QuotaProperties{ + // Name: &armreservations.ResourceName{ + // LocalizedValue: to.Ptr("Standard FSv2 Family vCPUs"), + // Value: to.Ptr("standardFSv2Family"), + // }, + // CurrentValue: to.Ptr[int32](160), + // Limit: to.Ptr[int32](200), + // Properties: map[string]any{ + // }, + // QuotaPeriod: to.Ptr(""), + // Unit: to.Ptr("Count"), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getComputeUsages.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getComputeUsages.json func ExampleQuotaClient_NewListPager_quotasListUsagesForCompute() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -175,18 +262,143 @@ func ExampleQuotaClient_NewListPager_quotasListUsagesForCompute() { } pager := client.NewListPager("00000000-0000-0000-0000-000000000000", "Microsoft.Compute", "eastus", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.QuotaLimits = armreservations.QuotaLimits{ + // Value: []*armreservations.CurrentQuotaLimitBase{ + // { + // Properties: &armreservations.QuotaProperties{ + // Name: &armreservations.ResourceName{ + // LocalizedValue: to.Ptr("Standard FSv2 Family vCPUs"), + // Value: to.Ptr("standardFSv2Family"), + // }, + // CurrentValue: to.Ptr[int32](0), + // Limit: to.Ptr[int32](100), + // Unit: to.Ptr("Count"), + // }, + // }, + // { + // Properties: &armreservations.QuotaProperties{ + // Name: &armreservations.ResourceName{ + // LocalizedValue: to.Ptr("Standard NDS Family vCPUs"), + // Value: to.Ptr("standardNDSFamily"), + // }, + // CurrentValue: to.Ptr[int32](0), + // Limit: to.Ptr[int32](0), + // Unit: to.Ptr("Count"), + // }, + // }, + // { + // Properties: &armreservations.QuotaProperties{ + // Name: &armreservations.ResourceName{ + // LocalizedValue: to.Ptr("Standard NCSv2 Family vCPUs"), + // Value: to.Ptr("standardNCSv2Family"), + // }, + // CurrentValue: to.Ptr[int32](0), + // Limit: to.Ptr[int32](0), + // Unit: to.Ptr("Count"), + // }, + // }, + // { + // Properties: &armreservations.QuotaProperties{ + // Name: &armreservations.ResourceName{ + // LocalizedValue: to.Ptr("Standard NCSv3 Family vCPUs"), + // Value: to.Ptr("standardNCSv3Family"), + // }, + // CurrentValue: to.Ptr[int32](0), + // Limit: to.Ptr[int32](0), + // Unit: to.Ptr("Count"), + // }, + // }, + // { + // Properties: &armreservations.QuotaProperties{ + // Name: &armreservations.ResourceName{ + // LocalizedValue: to.Ptr("Standard LSv2 Family vCPUs"), + // Value: to.Ptr("standardLSv2Family"), + // }, + // CurrentValue: to.Ptr[int32](0), + // Limit: to.Ptr[int32](100), + // Unit: to.Ptr("Count"), + // }, + // }, + // { + // Properties: &armreservations.QuotaProperties{ + // Name: &armreservations.ResourceName{ + // LocalizedValue: to.Ptr("Standard PBS Family vCPUs"), + // Value: to.Ptr("standardPBSFamily"), + // }, + // CurrentValue: to.Ptr[int32](0), + // Limit: to.Ptr[int32](6), + // Unit: to.Ptr("Count"), + // }, + // }, + // { + // Properties: &armreservations.QuotaProperties{ + // Name: &armreservations.ResourceName{ + // LocalizedValue: to.Ptr("Standard EIv3 Family vCPUs"), + // Value: to.Ptr("standardEIv3Family"), + // }, + // CurrentValue: to.Ptr[int32](0), + // Limit: to.Ptr[int32](100), + // Unit: to.Ptr("Count"), + // }, + // }, + // { + // Properties: &armreservations.QuotaProperties{ + // Name: &armreservations.ResourceName{ + // LocalizedValue: to.Ptr("Standard EISv3 Family vCPUs"), + // Value: to.Ptr("standardEISv3Family"), + // }, + // CurrentValue: to.Ptr[int32](0), + // Limit: to.Ptr[int32](100), + // Unit: to.Ptr("Count"), + // }, + // }, + // { + // Properties: &armreservations.QuotaProperties{ + // Name: &armreservations.ResourceName{ + // LocalizedValue: to.Ptr("Standard DCS Family vCPUs"), + // Value: to.Ptr("standardDCSFamily"), + // }, + // CurrentValue: to.Ptr[int32](0), + // Limit: to.Ptr[int32](8), + // Unit: to.Ptr("Count"), + // }, + // }, + // { + // Properties: &armreservations.QuotaProperties{ + // Name: &armreservations.ResourceName{ + // LocalizedValue: to.Ptr("Standard NVSv2 Family vCPUs"), + // Value: to.Ptr("standardNVSv2Family"), + // }, + // CurrentValue: to.Ptr[int32](0), + // Limit: to.Ptr[int32](0), + // Unit: to.Ptr("Count"), + // }, + // }, + // { + // Properties: &armreservations.QuotaProperties{ + // Name: &armreservations.ResourceName{ + // LocalizedValue: to.Ptr("Standard MSv2 Family vCPUs"), + // Value: to.Ptr("standardMSv2Family"), + // }, + // CurrentValue: to.Ptr[int32](0), + // Limit: to.Ptr[int32](0), + // Unit: to.Ptr("Count"), + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getMachineLearningServicesUsages.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getMachineLearningServicesUsages.json func ExampleQuotaClient_NewListPager_quotasListUsagesMachineLearningServices() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -199,13 +411,39 @@ func ExampleQuotaClient_NewListPager_quotasListUsagesMachineLearningServices() { } pager := client.NewListPager("00000000-0000-0000-0000-000000000000", "Microsoft.MachineLearningServices", "eastus", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.QuotaLimits = armreservations.QuotaLimits{ + // Value: []*armreservations.CurrentQuotaLimitBase{ + // { + // Properties: &armreservations.QuotaProperties{ + // Name: &armreservations.ResourceName{ + // LocalizedValue: to.Ptr("Standard Dv2 Family vCPUs"), + // Value: to.Ptr("standardDv2Family"), + // }, + // CurrentValue: to.Ptr[int32](15), + // Limit: to.Ptr[int32](20), + // ResourceType: to.Ptr(armreservations.ResourceTypeDedicated), + // }, + // }, + // { + // Properties: &armreservations.QuotaProperties{ + // Name: &armreservations.ResourceName{ + // LocalizedValue: to.Ptr("Total Regional Low-priority vCPUs"), + // Value: to.Ptr("totalLowPriorityCores"), + // }, + // CurrentValue: to.Ptr[int32](49), + // Limit: to.Ptr[int32](600), + // ResourceType: to.Ptr(armreservations.ResourceTypeLowPriority), + // }, + // }}, + // } } } diff --git a/sdk/resourcemanager/reservations/armreservations/quotarequeststatus_client.go b/sdk/resourcemanager/reservations/armreservations/quotarequeststatus_client.go index a426d63513ad..80ec69eddfdc 100644 --- a/sdk/resourcemanager/reservations/armreservations/quotarequeststatus_client.go +++ b/sdk/resourcemanager/reservations/armreservations/quotarequeststatus_client.go @@ -32,8 +32,8 @@ type QuotaRequestStatusClient struct { } // NewQuotaRequestStatusClient creates a new instance of QuotaRequestStatusClient with the specified values. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewQuotaRequestStatusClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*QuotaRequestStatusClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,12 +57,13 @@ func NewQuotaRequestStatusClient(credential azcore.TokenCredential, options *arm // for the resources of the resource provider. The PUT request for the quota (service // limit) returns a response with the requestId parameter. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2020-10-25 -// subscriptionID - Azure subscription ID. -// providerID - Azure resource provider ID. -// location - Azure region. -// id - Quota Request ID. -// options - QuotaRequestStatusClientGetOptions contains the optional parameters for the QuotaRequestStatusClient.Get method. +// - subscriptionID - Azure subscription ID. +// - providerID - Azure resource provider ID. +// - location - Azure region. +// - id - Quota Request ID. +// - options - QuotaRequestStatusClientGetOptions contains the optional parameters for the QuotaRequestStatusClient.Get method. func (client *QuotaRequestStatusClient) Get(ctx context.Context, subscriptionID string, providerID string, location string, id string, options *QuotaRequestStatusClientGetOptions) (QuotaRequestStatusClientGetResponse, error) { req, err := client.getCreateRequest(ctx, subscriptionID, providerID, location, id, options) if err != nil { @@ -119,11 +120,13 @@ func (client *QuotaRequestStatusClient) getHandleResponse(resp *http.Response) ( // NewListPager - For the specified Azure region (location), subscription, and resource provider, get the history of the quota // requests for the past year. To select specific quota requests, use the oData filter. +// // Generated from API version 2020-10-25 -// subscriptionID - Azure subscription ID. -// providerID - Azure resource provider ID. -// location - Azure region. -// options - QuotaRequestStatusClientListOptions contains the optional parameters for the QuotaRequestStatusClient.List method. +// - subscriptionID - Azure subscription ID. +// - providerID - Azure resource provider ID. +// - location - Azure region. +// - options - QuotaRequestStatusClientListOptions contains the optional parameters for the QuotaRequestStatusClient.NewListPager +// method. func (client *QuotaRequestStatusClient) NewListPager(subscriptionID string, providerID string, location string, options *QuotaRequestStatusClientListOptions) *runtime.Pager[QuotaRequestStatusClientListResponse] { return runtime.NewPager(runtime.PagingHandler[QuotaRequestStatusClientListResponse]{ More: func(page QuotaRequestStatusClientListResponse) bool { diff --git a/sdk/resourcemanager/reservations/armreservations/quotarequeststatus_client_example_test.go b/sdk/resourcemanager/reservations/armreservations/quotarequeststatus_client_example_test.go index 5ad51d51194f..53bd691ed5dd 100644 --- a/sdk/resourcemanager/reservations/armreservations/quotarequeststatus_client_example_test.go +++ b/sdk/resourcemanager/reservations/armreservations/quotarequeststatus_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armreservations_test @@ -13,10 +14,10 @@ import ( "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/reservations/armreservations" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/reservations/armreservations/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestStatusFailed.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestStatusFailed.json func ExampleQuotaRequestStatusClient_Get_quotaRequestFailed() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -31,11 +32,43 @@ func ExampleQuotaRequestStatusClient_Get_quotaRequestFailed() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.QuotaRequestDetails = armreservations.QuotaRequestDetails{ + // Name: to.Ptr("00000000-0000-0000-0000-000000000000/2B5C8515-37D8-4B6A-879B-CD641A2CF605"), + // Type: to.Ptr("Microsoft.Capacity/serviceLimitsRequests"), + // ID: to.Ptr("2B5C8515-37D8-4B6A-879B-CD641A2CF605"), + // Properties: &armreservations.QuotaRequestProperties{ + // Message: to.Ptr("Request failed, please contatct support."), + // ProvisioningState: to.Ptr(armreservations.QuotaRequestStateSucceeded), + // RequestSubmitTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-08-19T19:23:17.904Z"); return t}()), + // Value: []*armreservations.SubRequest{ + // { + // Name: &armreservations.ResourceName{ + // LocalizedValue: to.Ptr("Standard HCS Family vCPUs"), + // Value: to.Ptr("standardHCSFamily"), + // }, + // Limit: to.Ptr[int32](200), + // Message: to.Ptr("Request completed"), + // ProvisioningState: to.Ptr(armreservations.QuotaRequestStateSucceeded), + // SubRequestID: to.Ptr("AD07450A-DE86-4FD3-859B-107BEF218C4C"), + // }, + // { + // Name: &armreservations.ResourceName{ + // LocalizedValue: to.Ptr("Standard NC Promo Family vCPUs"), + // Value: to.Ptr("standardNCPromoFamily"), + // }, + // Limit: to.Ptr[int32](50), + // Message: to.Ptr("RRequest failed, please contatct support."), + // ProvisioningState: to.Ptr(armreservations.QuotaRequestStateSucceeded), + // SubRequestID: to.Ptr("AD07450A-DE86-4FD3-859B-107BEF218C4C"), + // }}, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestStatusInProgress.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestStatusInProgress.json func ExampleQuotaRequestStatusClient_Get_quotaRequestInProgress() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -50,11 +83,33 @@ func ExampleQuotaRequestStatusClient_Get_quotaRequestInProgress() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.QuotaRequestDetails = armreservations.QuotaRequestDetails{ + // Name: to.Ptr("00000000-0000-0000-0000-000000000000/2B5C8515-37D8-4B6A-879B-CD641A2CF605"), + // Type: to.Ptr("Microsoft.Capacity/serviceLimitsRequests"), + // ID: to.Ptr("2B5C8515-37D8-4B6A-879B-CD641A2CF605"), + // Properties: &armreservations.QuotaRequestProperties{ + // Message: to.Ptr("Request processing"), + // ProvisioningState: to.Ptr(armreservations.QuotaRequestStateSucceeded), + // RequestSubmitTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-08-19T19:23:17.904Z"); return t}()), + // Value: []*armreservations.SubRequest{ + // { + // Name: &armreservations.ResourceName{ + // LocalizedValue: to.Ptr("Standard NC Promo Family vCPUs"), + // Value: to.Ptr("standardNCPromoFamily"), + // }, + // Limit: to.Ptr[int32](50), + // Message: to.Ptr("Request processing"), + // ProvisioningState: to.Ptr(armreservations.QuotaRequestStateSucceeded), + // SubRequestID: to.Ptr("AD07450A-DE86-4FD3-859B-107BEF218C4C"), + // }}, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestStatusById.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestStatusById.json func ExampleQuotaRequestStatusClient_Get_quotaRequestStatus() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -69,11 +124,42 @@ func ExampleQuotaRequestStatusClient_Get_quotaRequestStatus() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.QuotaRequestDetails = armreservations.QuotaRequestDetails{ + // Name: to.Ptr("00000000-0000-0000-0000-000000000000/2B5C8515-37D8-4B6A-879B-CD641A2CF605"), + // Type: to.Ptr("Microsoft.Capacity/serviceLimitsRequests"), + // ID: to.Ptr("2B5C8515-37D8-4B6A-879B-CD641A2CF605"), + // Properties: &armreservations.QuotaRequestProperties{ + // Message: to.Ptr("Request completed"), + // ProvisioningState: to.Ptr(armreservations.QuotaRequestStateSucceeded), + // RequestSubmitTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-08-19T19:23:17.904Z"); return t}()), + // Value: []*armreservations.SubRequest{ + // { + // Name: &armreservations.ResourceName{ + // LocalizedValue: to.Ptr("Standard HCS Family vCPUs"), + // Value: to.Ptr("standardHCSFamily"), + // }, + // Limit: to.Ptr[int32](200), + // Message: to.Ptr("Request completed"), + // ProvisioningState: to.Ptr(armreservations.QuotaRequestStateSucceeded), + // SubRequestID: to.Ptr("AD07450A-DE86-4FD3-859B-107BEF218C4C"), + // }, + // { + // Name: &armreservations.ResourceName{ + // LocalizedValue: to.Ptr("Standard NC Promo Family vCPUs"), + // Value: to.Ptr("standardNCPromoFamily"), + // }, + // Limit: to.Ptr[int32](50), + // Message: to.Ptr("Request completed"), + // ProvisioningState: to.Ptr(armreservations.QuotaRequestStateSucceeded), + // }}, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestsHistory.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestsHistory.json func ExampleQuotaRequestStatusClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -89,13 +175,110 @@ func ExampleQuotaRequestStatusClient_NewListPager() { Skiptoken: nil, }) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.QuotaRequestDetailsList = armreservations.QuotaRequestDetailsList{ + // Value: []*armreservations.QuotaRequestDetails{ + // { + // Name: to.Ptr("00000000-0000-0000-0000-000000000000/2B5C8515-37D8-4B6A-879B-CD641A2CF605"), + // Type: to.Ptr("Microsoft.Capacity/serviceLimitsRequests"), + // ID: to.Ptr("2B5C8515-37D8-4B6A-879B-CD641A2CF605"), + // Properties: &armreservations.QuotaRequestProperties{ + // Message: to.Ptr("Request completed"), + // ProvisioningState: to.Ptr(armreservations.QuotaRequestStateSucceeded), + // RequestSubmitTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-08-19T19:23:17.904Z"); return t}()), + // Value: []*armreservations.SubRequest{ + // { + // Name: &armreservations.ResourceName{ + // LocalizedValue: to.Ptr("Standard HCS Family vCPUs"), + // Value: to.Ptr("standardHCSFamily"), + // }, + // Limit: to.Ptr[int32](200), + // Message: to.Ptr("Request completed"), + // ProvisioningState: to.Ptr(armreservations.QuotaRequestStateSucceeded), + // SubRequestID: to.Ptr("AD07450A-DE86-4FD3-859B-107BEF218C4C"), + // }, + // { + // Name: &armreservations.ResourceName{ + // LocalizedValue: to.Ptr("Standard NC Promo Family vCPUs"), + // Value: to.Ptr("standardNCPromoFamily"), + // }, + // Limit: to.Ptr[int32](50), + // Message: to.Ptr("Request completed"), + // ProvisioningState: to.Ptr(armreservations.QuotaRequestStateSucceeded), + // SubRequestID: to.Ptr("AD07450A-DE86-4FD3-859B-107BEF218C4C"), + // }}, + // }, + // }, + // { + // Name: to.Ptr("00000000-0000-0000-0000-000000000000/7E73A85C-83BB-4DE4-903F-076F1A2B91D6"), + // Type: to.Ptr("Microsoft.Capacity/serviceLimitsRequests"), + // ID: to.Ptr("7E73A85C-83BB-4DE4-903F-076F1A2B91D6"), + // Properties: &armreservations.QuotaRequestProperties{ + // Message: to.Ptr("Request completed"), + // ProvisioningState: to.Ptr(armreservations.QuotaRequestStateSucceeded), + // RequestSubmitTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-08-18T19:23:17.904Z"); return t}()), + // Value: []*armreservations.SubRequest{ + // { + // Name: &armreservations.ResourceName{ + // LocalizedValue: to.Ptr("Standard NVSv3 Family vCPUs"), + // Value: to.Ptr("standardNVSv3Family"), + // }, + // Limit: to.Ptr[int32](100), + // Message: to.Ptr("Request completed"), + // ProvisioningState: to.Ptr(armreservations.QuotaRequestStateSucceeded), + // SubRequestID: to.Ptr("AD07450A-DE86-4FD3-859B-107BEF218C4C"), + // }, + // { + // Name: &armreservations.ResourceName{ + // LocalizedValue: to.Ptr("Standard NV Promo Family vCPUs"), + // Value: to.Ptr("standardNVPromoFamily"), + // }, + // Limit: to.Ptr[int32](150), + // Message: to.Ptr("Request completed"), + // ProvisioningState: to.Ptr(armreservations.QuotaRequestStateSucceeded), + // SubRequestID: to.Ptr("AD07450A-DE86-4FD3-859B-107BEF218C4C"), + // }}, + // }, + // }, + // { + // Name: to.Ptr("00000000-0000-0000-0000-000000000000/5E460077-AB53-4802-8997-A6940E0B7649"), + // Type: to.Ptr("Microsoft.Capacity/serviceLimitsRequests"), + // ID: to.Ptr("5E460077-AB53-4802-8997-A6940E0B7649"), + // Properties: &armreservations.QuotaRequestProperties{ + // Message: to.Ptr("Request completed"), + // ProvisioningState: to.Ptr(armreservations.QuotaRequestStateSucceeded), + // RequestSubmitTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-08-17T19:23:17.904Z"); return t}()), + // Value: []*armreservations.SubRequest{ + // { + // Name: &armreservations.ResourceName{ + // LocalizedValue: to.Ptr("Standard NC Promo Family vCPUs"), + // Value: to.Ptr("standardNCPromoFamily"), + // }, + // Limit: to.Ptr[int32](70), + // Message: to.Ptr("Request completed"), + // ProvisioningState: to.Ptr(armreservations.QuotaRequestStateSucceeded), + // SubRequestID: to.Ptr("AD07450A-DE86-4FD3-859B-107BEF218C4C"), + // }, + // { + // Name: &armreservations.ResourceName{ + // LocalizedValue: to.Ptr("Standard HBS Family vCPUs"), + // Value: to.Ptr("standardHBSFamily"), + // }, + // Limit: to.Ptr[int32](52), + // Message: to.Ptr("Request completed"), + // ProvisioningState: to.Ptr(armreservations.QuotaRequestStateSucceeded), + // SubRequestID: to.Ptr("AD07450A-DE86-4FD3-859B-107BEF218C4C"), + // }}, + // }, + // }}, + // } } } diff --git a/sdk/resourcemanager/reservations/armreservations/reservation_client.go b/sdk/resourcemanager/reservations/armreservations/reservation_client.go index 6cc8b3c93e35..567ca2579d42 100644 --- a/sdk/resourcemanager/reservations/armreservations/reservation_client.go +++ b/sdk/resourcemanager/reservations/armreservations/reservation_client.go @@ -32,8 +32,8 @@ type ReservationClient struct { } // NewReservationClient creates a new instance of ReservationClient with the specified values. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewReservationClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*ReservationClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -55,10 +55,11 @@ func NewReservationClient(credential azcore.TokenCredential, options *arm.Client // Archive - Archiving a Reservation moves it to Archived state. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// reservationOrderID - Order Id of the reservation -// reservationID - Id of the Reservation Item -// options - ReservationClientArchiveOptions contains the optional parameters for the ReservationClient.Archive method. +// +// Generated from API version 2022-11-01 +// - reservationOrderID - Order Id of the reservation +// - reservationID - Id of the reservation item +// - options - ReservationClientArchiveOptions contains the optional parameters for the ReservationClient.Archive method. func (client *ReservationClient) Archive(ctx context.Context, reservationOrderID string, reservationID string, options *ReservationClientArchiveOptions) (ReservationClientArchiveResponse, error) { req, err := client.archiveCreateRequest(ctx, reservationOrderID, reservationID, options) if err != nil { @@ -90,19 +91,21 @@ func (client *ReservationClient) archiveCreateRequest(ctx context.Context, reser return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil } -// BeginAvailableScopes - Get Available Scopes for Reservation. +// BeginAvailableScopes - Check whether the scopes from request is valid for Reservation. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// reservationOrderID - Order Id of the reservation -// reservationID - Id of the Reservation Item -// options - ReservationClientBeginAvailableScopesOptions contains the optional parameters for the ReservationClient.BeginAvailableScopes -// method. +// +// Generated from API version 2022-11-01 +// - reservationOrderID - Order Id of the reservation +// - reservationID - Id of the reservation item +// - body - Scopes to be checked for eligibility. +// - options - ReservationClientBeginAvailableScopesOptions contains the optional parameters for the ReservationClient.BeginAvailableScopes +// method. func (client *ReservationClient) BeginAvailableScopes(ctx context.Context, reservationOrderID string, reservationID string, body AvailableScopeRequest, options *ReservationClientBeginAvailableScopesOptions) (*runtime.Poller[ReservationClientAvailableScopesResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.availableScopes(ctx, reservationOrderID, reservationID, body, options) @@ -115,9 +118,10 @@ func (client *ReservationClient) BeginAvailableScopes(ctx context.Context, reser } } -// AvailableScopes - Get Available Scopes for Reservation. +// AvailableScopes - Check whether the scopes from request is valid for Reservation. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2022-11-01 func (client *ReservationClient) availableScopes(ctx context.Context, reservationOrderID string, reservationID string, body AvailableScopeRequest, options *ReservationClientBeginAvailableScopesOptions) (*http.Response, error) { req, err := client.availableScopesCreateRequest(ctx, reservationOrderID, reservationID, body, options) if err != nil { @@ -149,7 +153,7 @@ func (client *ReservationClient) availableScopesCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, body) @@ -157,12 +161,13 @@ func (client *ReservationClient) availableScopesCreateRequest(ctx context.Contex // Get - Get specific Reservation details. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// reservationID - Id of the Reservation Item -// reservationOrderID - Order Id of the reservation -// options - ReservationClientGetOptions contains the optional parameters for the ReservationClient.Get method. -func (client *ReservationClient) Get(ctx context.Context, reservationID string, reservationOrderID string, options *ReservationClientGetOptions) (ReservationClientGetResponse, error) { - req, err := client.getCreateRequest(ctx, reservationID, reservationOrderID, options) +// +// Generated from API version 2022-11-01 +// - reservationOrderID - Order Id of the reservation +// - reservationID - Id of the reservation item +// - options - ReservationClientGetOptions contains the optional parameters for the ReservationClient.Get method. +func (client *ReservationClient) Get(ctx context.Context, reservationOrderID string, reservationID string, options *ReservationClientGetOptions) (ReservationClientGetResponse, error) { + req, err := client.getCreateRequest(ctx, reservationOrderID, reservationID, options) if err != nil { return ReservationClientGetResponse{}, err } @@ -177,24 +182,24 @@ func (client *ReservationClient) Get(ctx context.Context, reservationID string, } // getCreateRequest creates the Get request. -func (client *ReservationClient) getCreateRequest(ctx context.Context, reservationID string, reservationOrderID string, options *ReservationClientGetOptions) (*policy.Request, error) { +func (client *ReservationClient) getCreateRequest(ctx context.Context, reservationOrderID string, reservationID string, options *ReservationClientGetOptions) (*policy.Request, error) { urlPath := "/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}" - if reservationID == "" { - return nil, errors.New("parameter reservationID cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{reservationId}", url.PathEscape(reservationID)) if reservationOrderID == "" { return nil, errors.New("parameter reservationOrderID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{reservationOrderId}", url.PathEscape(reservationOrderID)) + if reservationID == "" { + return nil, errors.New("parameter reservationID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{reservationId}", url.PathEscape(reservationID)) req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-11-01") if options != nil && options.Expand != nil { - reqQP.Set("expand", *options.Expand) + reqQP.Set("$expand", *options.Expand) } req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} @@ -211,9 +216,10 @@ func (client *ReservationClient) getHandleResponse(resp *http.Response) (Reserva } // NewListPager - List Reservations within a single ReservationOrder. -// Generated from API version 2022-03-01 -// reservationOrderID - Order Id of the reservation -// options - ReservationClientListOptions contains the optional parameters for the ReservationClient.List method. +// +// Generated from API version 2022-11-01 +// - reservationOrderID - Order Id of the reservation +// - options - ReservationClientListOptions contains the optional parameters for the ReservationClient.NewListPager method. func (client *ReservationClient) NewListPager(reservationOrderID string, options *ReservationClientListOptions) *runtime.Pager[ReservationClientListResponse] { return runtime.NewPager(runtime.PagingHandler[ReservationClientListResponse]{ More: func(page ReservationClientListResponse) bool { @@ -254,7 +260,7 @@ func (client *ReservationClient) listCreateRequest(ctx context.Context, reservat return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -271,8 +277,9 @@ func (client *ReservationClient) listHandleResponse(resp *http.Response) (Reserv // NewListAllPager - List the reservations and the roll up counts of reservations group by provisioning states that the user // has access to in the current tenant. -// Generated from API version 2022-03-01 -// options - ReservationClientListAllOptions contains the optional parameters for the ReservationClient.ListAll method. +// +// Generated from API version 2022-11-01 +// - options - ReservationClientListAllOptions contains the optional parameters for the ReservationClient.NewListAllPager method. func (client *ReservationClient) NewListAllPager(options *ReservationClientListAllOptions) *runtime.Pager[ReservationClientListAllResponse] { return runtime.NewPager(runtime.PagingHandler[ReservationClientListAllResponse]{ More: func(page ReservationClientListAllResponse) bool { @@ -309,7 +316,7 @@ func (client *ReservationClient) listAllCreateRequest(ctx context.Context, optio return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-11-01") if options != nil && options.Filter != nil { reqQP.Set("$filter", *options.Filter) } @@ -343,12 +350,13 @@ func (client *ReservationClient) listAllHandleResponse(resp *http.Response) (Res } // NewListRevisionsPager - List of all the revisions for the Reservation. -// Generated from API version 2022-03-01 -// reservationID - Id of the Reservation Item -// reservationOrderID - Order Id of the reservation -// options - ReservationClientListRevisionsOptions contains the optional parameters for the ReservationClient.ListRevisions -// method. -func (client *ReservationClient) NewListRevisionsPager(reservationID string, reservationOrderID string, options *ReservationClientListRevisionsOptions) *runtime.Pager[ReservationClientListRevisionsResponse] { +// +// Generated from API version 2022-11-01 +// - reservationOrderID - Order Id of the reservation +// - reservationID - Id of the reservation item +// - options - ReservationClientListRevisionsOptions contains the optional parameters for the ReservationClient.NewListRevisionsPager +// method. +func (client *ReservationClient) NewListRevisionsPager(reservationOrderID string, reservationID string, options *ReservationClientListRevisionsOptions) *runtime.Pager[ReservationClientListRevisionsResponse] { return runtime.NewPager(runtime.PagingHandler[ReservationClientListRevisionsResponse]{ More: func(page ReservationClientListRevisionsResponse) bool { return page.NextLink != nil && len(*page.NextLink) > 0 @@ -357,7 +365,7 @@ func (client *ReservationClient) NewListRevisionsPager(reservationID string, res var req *policy.Request var err error if page == nil { - req, err = client.listRevisionsCreateRequest(ctx, reservationID, reservationOrderID, options) + req, err = client.listRevisionsCreateRequest(ctx, reservationOrderID, reservationID, options) } else { req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) } @@ -377,22 +385,22 @@ func (client *ReservationClient) NewListRevisionsPager(reservationID string, res } // listRevisionsCreateRequest creates the ListRevisions request. -func (client *ReservationClient) listRevisionsCreateRequest(ctx context.Context, reservationID string, reservationOrderID string, options *ReservationClientListRevisionsOptions) (*policy.Request, error) { +func (client *ReservationClient) listRevisionsCreateRequest(ctx context.Context, reservationOrderID string, reservationID string, options *ReservationClientListRevisionsOptions) (*policy.Request, error) { urlPath := "/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}/revisions" - if reservationID == "" { - return nil, errors.New("parameter reservationID cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{reservationId}", url.PathEscape(reservationID)) if reservationOrderID == "" { return nil, errors.New("parameter reservationOrderID cannot be empty") } urlPath = strings.ReplaceAll(urlPath, "{reservationOrderId}", url.PathEscape(reservationOrderID)) + if reservationID == "" { + return nil, errors.New("parameter reservationID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{reservationId}", url.PathEscape(reservationID)) req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -410,10 +418,11 @@ func (client *ReservationClient) listRevisionsHandleResponse(resp *http.Response // BeginMerge - Merge the specified Reservations into a new Reservation. The two Reservations being merged must have same // properties. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// reservationOrderID - Order Id of the reservation -// body - Information needed for commercial request for a reservation -// options - ReservationClientBeginMergeOptions contains the optional parameters for the ReservationClient.BeginMerge method. +// +// Generated from API version 2022-11-01 +// - reservationOrderID - Order Id of the reservation +// - body - Information needed for commercial request for a reservation +// - options - ReservationClientBeginMergeOptions contains the optional parameters for the ReservationClient.BeginMerge method. func (client *ReservationClient) BeginMerge(ctx context.Context, reservationOrderID string, body MergeRequest, options *ReservationClientBeginMergeOptions) (*runtime.Poller[ReservationClientMergeResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.merge(ctx, reservationOrderID, body, options) @@ -430,7 +439,8 @@ func (client *ReservationClient) BeginMerge(ctx context.Context, reservationOrde // Merge - Merge the specified Reservations into a new Reservation. The two Reservations being merged must have same properties. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2022-11-01 func (client *ReservationClient) merge(ctx context.Context, reservationOrderID string, body MergeRequest, options *ReservationClientBeginMergeOptions) (*http.Response, error) { req, err := client.mergeCreateRequest(ctx, reservationOrderID, body, options) if err != nil { @@ -458,7 +468,7 @@ func (client *ReservationClient) mergeCreateRequest(ctx context.Context, reserva return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, body) @@ -466,10 +476,11 @@ func (client *ReservationClient) mergeCreateRequest(ctx context.Context, reserva // BeginSplit - Split a Reservation into two Reservations with specified quantity distribution. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// reservationOrderID - Order Id of the reservation -// body - Information needed to Split a reservation item -// options - ReservationClientBeginSplitOptions contains the optional parameters for the ReservationClient.BeginSplit method. +// +// Generated from API version 2022-11-01 +// - reservationOrderID - Order Id of the reservation +// - body - Information needed to Split a reservation item +// - options - ReservationClientBeginSplitOptions contains the optional parameters for the ReservationClient.BeginSplit method. func (client *ReservationClient) BeginSplit(ctx context.Context, reservationOrderID string, body SplitRequest, options *ReservationClientBeginSplitOptions) (*runtime.Poller[ReservationClientSplitResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.split(ctx, reservationOrderID, body, options) @@ -486,7 +497,8 @@ func (client *ReservationClient) BeginSplit(ctx context.Context, reservationOrde // Split - Split a Reservation into two Reservations with specified quantity distribution. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2022-11-01 func (client *ReservationClient) split(ctx context.Context, reservationOrderID string, body SplitRequest, options *ReservationClientBeginSplitOptions) (*http.Response, error) { req, err := client.splitCreateRequest(ctx, reservationOrderID, body, options) if err != nil { @@ -514,18 +526,19 @@ func (client *ReservationClient) splitCreateRequest(ctx context.Context, reserva return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, body) } -// Unarchive - Unarchiving a Reservation moves it to the state it was before archiving. +// Unarchive - Restores a Reservation to the state it was before archiving. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// reservationOrderID - Order Id of the reservation -// reservationID - Id of the Reservation Item -// options - ReservationClientUnarchiveOptions contains the optional parameters for the ReservationClient.Unarchive method. +// +// Generated from API version 2022-11-01 +// - reservationOrderID - Order Id of the reservation +// - reservationID - Id of the reservation item +// - options - ReservationClientUnarchiveOptions contains the optional parameters for the ReservationClient.Unarchive method. func (client *ReservationClient) Unarchive(ctx context.Context, reservationOrderID string, reservationID string, options *ReservationClientUnarchiveOptions) (ReservationClientUnarchiveResponse, error) { req, err := client.unarchiveCreateRequest(ctx, reservationOrderID, reservationID, options) if err != nil { @@ -557,7 +570,7 @@ func (client *ReservationClient) unarchiveCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -565,18 +578,21 @@ func (client *ReservationClient) unarchiveCreateRequest(ctx context.Context, res // BeginUpdate - Updates the applied scopes of the Reservation. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// reservationOrderID - Order Id of the reservation -// reservationID - Id of the Reservation Item -// parameters - Information needed to patch a reservation item -// options - ReservationClientBeginUpdateOptions contains the optional parameters for the ReservationClient.BeginUpdate method. +// +// Generated from API version 2022-11-01 +// - reservationOrderID - Order Id of the reservation +// - reservationID - Id of the reservation item +// - parameters - Information needed to patch a reservation item +// - options - ReservationClientBeginUpdateOptions contains the optional parameters for the ReservationClient.BeginUpdate method. func (client *ReservationClient) BeginUpdate(ctx context.Context, reservationOrderID string, reservationID string, parameters Patch, options *ReservationClientBeginUpdateOptions) (*runtime.Poller[ReservationClientUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.update(ctx, reservationOrderID, reservationID, parameters, options) if err != nil { return nil, err } - return runtime.NewPoller[ReservationClientUpdateResponse](resp, client.pl, nil) + return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[ReservationClientUpdateResponse]{ + FinalStateVia: runtime.FinalStateViaAzureAsyncOp, + }) } else { return runtime.NewPollerFromResumeToken[ReservationClientUpdateResponse](options.ResumeToken, client.pl, nil) } @@ -584,7 +600,8 @@ func (client *ReservationClient) BeginUpdate(ctx context.Context, reservationOrd // Update - Updates the applied scopes of the Reservation. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2022-11-01 func (client *ReservationClient) update(ctx context.Context, reservationOrderID string, reservationID string, parameters Patch, options *ReservationClientBeginUpdateOptions) (*http.Response, error) { req, err := client.updateCreateRequest(ctx, reservationOrderID, reservationID, parameters, options) if err != nil { @@ -616,7 +633,7 @@ func (client *ReservationClient) updateCreateRequest(ctx context.Context, reserv return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, parameters) diff --git a/sdk/resourcemanager/reservations/armreservations/reservation_client_example_test.go b/sdk/resourcemanager/reservations/armreservations/reservation_client_example_test.go index 70c63958cffe..f5fba1f79d2f 100644 --- a/sdk/resourcemanager/reservations/armreservations/reservation_client_example_test.go +++ b/sdk/resourcemanager/reservations/armreservations/reservation_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armreservations_test @@ -14,10 +15,10 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/reservations/armreservations" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/reservations/armreservations/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/reservations/resource-manager/Microsoft.Capacity/stable/2022-03-01/examples/GetAvailableScope.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/reservations/resource-manager/Microsoft.Capacity/stable/2022-11-01/examples/GetAvailableScope.json func ExampleReservationClient_BeginAvailableScopes() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -41,11 +42,21 @@ func ExampleReservationClient_BeginAvailableScopes() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.AvailableScopeProperties = armreservations.AvailableScopeProperties{ + // Properties: &armreservations.SubscriptionScopeProperties{ + // Scopes: []*armreservations.ScopeProperties{ + // { + // Scope: to.Ptr("/subscriptions/efc7c997-7700-4a74-b731-55aec16c15e9"), + // Valid: to.Ptr(true), + // }}, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/reservations/resource-manager/Microsoft.Capacity/stable/2022-03-01/examples/SplitReservation.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/reservations/resource-manager/Microsoft.Capacity/stable/2022-11-01/examples/SplitReservation.json func ExampleReservationClient_BeginSplit() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -71,11 +82,118 @@ func ExampleReservationClient_BeginSplit() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.ReservationResponseArray = []*armreservations.ReservationResponse{ + // { + // Name: to.Ptr("00238563-7312-4c20-a134-8c030bf938a7"), + // Type: to.Ptr("Microsoft.Capacity/reservationOrders/reservations"), + // ID: to.Ptr("/providers/microsoft.capacity/reservationOrders/276e7ae4-84d0-4da6-ab4b-d6b94f3557da/reservations/00238563-7312-4c20-a134-8c030bf938a7"), + // Etag: to.Ptr[int32](2), + // Location: to.Ptr("eastus"), + // Properties: &armreservations.Properties{ + // AppliedScopeProperties: &armreservations.AppliedScopeProperties{ + // DisplayName: to.Ptr("Azure subscription 1"), + // SubscriptionID: to.Ptr("/subscriptions/98df3792-7962-4f18-8be2-d5576f122de3"), + // }, + // AppliedScopeType: to.Ptr(armreservations.AppliedScopeTypeSingle), + // BillingPlan: to.Ptr(armreservations.ReservationBillingPlanMonthly), + // BillingScopeID: to.Ptr("/subscriptions/19376483-64b8-49e4-a931-d5248828720a"), + // DisplayName: to.Ptr("cabri_test"), + // EffectiveDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-09-22T01:00:30.9253826Z"); return t}()), + // ExpiryDate: to.Ptr(func() time.Time { t, _ := time.Parse("2006-01-02", "2018-09-22"); return t}()), + // ExpiryDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-09-22T01:00:30.9253826Z"); return t}()), + // InstanceFlexibility: to.Ptr(armreservations.InstanceFlexibilityOff), + // LastUpdatedDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-09-22T01:00:36.3191627Z"); return t}()), + // ProvisioningState: to.Ptr(armreservations.ProvisioningStateSucceeded), + // Quantity: to.Ptr[int32](1), + // Renew: to.Ptr(false), + // ReservedResourceType: to.Ptr(armreservations.ReservedResourceTypeVirtualMachines), + // SKUDescription: to.Ptr("D1 v2"), + // SplitProperties: &armreservations.ReservationSplitProperties{ + // SplitSource: to.Ptr("/providers/microsoft.capacity/reservationOrders/276e7ae4-84d0-4da6-ab4b-d6b94f3557da/reservations/bcae77cd-3119-4766-919f-b50d36c75c7a"), + // }, + // }, + // SKU: &armreservations.SKUName{ + // Name: to.Ptr("Standard_DS1_v2"), + // }, + // }, + // { + // Name: to.Ptr("e0e4b4f5-77ea-4984-9ee4-6bf9850ee6de"), + // Type: to.Ptr("Microsoft.Capacity/reservationOrders/reservations"), + // ID: to.Ptr("/providers/microsoft.capacity/reservationOrders/276e7ae4-84d0-4da6-ab4b-d6b94f3557da/reservations/e0e4b4f5-77ea-4984-9ee4-6bf9850ee6de"), + // Etag: to.Ptr[int32](2), + // Location: to.Ptr("eastus"), + // Properties: &armreservations.Properties{ + // AppliedScopeProperties: &armreservations.AppliedScopeProperties{ + // DisplayName: to.Ptr("Azure subscription 1"), + // SubscriptionID: to.Ptr("/subscriptions/98df3792-7962-4f18-8be2-d5576f122de3"), + // }, + // AppliedScopeType: to.Ptr(armreservations.AppliedScopeTypeSingle), + // BillingPlan: to.Ptr(armreservations.ReservationBillingPlanMonthly), + // BillingScopeID: to.Ptr("/subscriptions/19376483-64b8-49e4-a931-d5248828720a"), + // DisplayName: to.Ptr("cabri_test"), + // EffectiveDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-09-22T01:00:30.9253826Z"); return t}()), + // ExpiryDate: to.Ptr(func() time.Time { t, _ := time.Parse("2006-01-02", "2018-09-22"); return t}()), + // ExpiryDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-09-22T01:00:30.9253826Z"); return t}()), + // InstanceFlexibility: to.Ptr(armreservations.InstanceFlexibilityOff), + // LastUpdatedDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-09-22T01:00:36.3191627Z"); return t}()), + // ProvisioningState: to.Ptr(armreservations.ProvisioningStateSucceeded), + // Quantity: to.Ptr[int32](2), + // Renew: to.Ptr(false), + // ReservedResourceType: to.Ptr(armreservations.ReservedResourceTypeVirtualMachines), + // SKUDescription: to.Ptr("D1 v2"), + // SplitProperties: &armreservations.ReservationSplitProperties{ + // SplitSource: to.Ptr("/providers/microsoft.capacity/reservationOrders/276e7ae4-84d0-4da6-ab4b-d6b94f3557da/reservations/bcae77cd-3119-4766-919f-b50d36c75c7a"), + // }, + // }, + // SKU: &armreservations.SKUName{ + // Name: to.Ptr("Standard_DS1_v2"), + // }, + // }, + // { + // Name: to.Ptr("bcae77cd-3119-4766-919f-b50d36c75c7a"), + // Type: to.Ptr("Microsoft.Capacity/reservationOrders/reservations"), + // ID: to.Ptr("/providers/microsoft.capacity/reservationOrders/276e7ae4-84d0-4da6-ab4b-d6b94f3557da/reservations/bcae77cd-3119-4766-919f-b50d36c75c7a"), + // Etag: to.Ptr[int32](10), + // Location: to.Ptr("eastus"), + // Properties: &armreservations.Properties{ + // AppliedScopeProperties: &armreservations.AppliedScopeProperties{ + // DisplayName: to.Ptr("Azure subscription 1"), + // SubscriptionID: to.Ptr("/subscriptions/98df3792-7962-4f18-8be2-d5576f122de3"), + // }, + // AppliedScopeType: to.Ptr(armreservations.AppliedScopeTypeSingle), + // BillingPlan: to.Ptr(armreservations.ReservationBillingPlanMonthly), + // BillingScopeID: to.Ptr("/subscriptions/19376483-64b8-49e4-a931-d5248828720a"), + // DisplayName: to.Ptr("cabri_test"), + // EffectiveDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-09-22T01:00:30.9253826Z"); return t}()), + // ExpiryDate: to.Ptr(func() time.Time { t, _ := time.Parse("2006-01-02", "2018-09-22"); return t}()), + // ExpiryDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-09-22T01:00:30.9253826Z"); return t}()), + // ExtendedStatusInfo: &armreservations.ExtendedStatusInfo{ + // Message: to.Ptr("This reservation was split and is no longer active."), + // StatusCode: to.Ptr(armreservations.ReservationStatusCodeSplit), + // }, + // InstanceFlexibility: to.Ptr(armreservations.InstanceFlexibilityOff), + // LastUpdatedDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-09-22T01:00:36.3191627Z"); return t}()), + // ProvisioningState: to.Ptr(armreservations.ProvisioningStateSucceeded), + // Quantity: to.Ptr[int32](3), + // Renew: to.Ptr(false), + // ReservedResourceType: to.Ptr(armreservations.ReservedResourceTypeVirtualMachines), + // SKUDescription: to.Ptr("D1 v2"), + // SplitProperties: &armreservations.ReservationSplitProperties{ + // SplitDestinations: []*string{ + // to.Ptr("/providers/microsoft.capacity/reservationOrders/276e7ae4-84d0-4da6-ab4b-d6b94f3557da/reservations/00238563-7312-4c20-a134-8c030bf938a7"), + // to.Ptr("/providers/microsoft.capacity/reservationOrders/276e7ae4-84d0-4da6-ab4b-d6b94f3557da/reservations/e0e4b4f5-77ea-4984-9ee4-6bf9850ee6de")}, + // }, + // }, + // SKU: &armreservations.SKUName{ + // Name: to.Ptr("Standard_DS1_v2"), + // }, + // }} } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/reservations/resource-manager/Microsoft.Capacity/stable/2022-03-01/examples/MergeReservations.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/reservations/resource-manager/Microsoft.Capacity/stable/2022-11-01/examples/MergeReservations.json func ExampleReservationClient_BeginMerge() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -100,11 +218,128 @@ func ExampleReservationClient_BeginMerge() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.ReservationResponseArray = []*armreservations.ReservationResponse{ + // { + // Name: to.Ptr("00238563-7312-4c20-a134-8c030bf938a7"), + // Type: to.Ptr("Microsoft.Capacity/reservationOrders/reservations"), + // ID: to.Ptr("/providers/microsoft.capacity/reservationOrders/276e7ae4-84d0-4da6-ab4b-d6b94f3557da/reservations/00238563-7312-4c20-a134-8c030bf938a7"), + // Etag: to.Ptr[int32](5), + // Location: to.Ptr("eastus"), + // Properties: &armreservations.Properties{ + // AppliedScopeProperties: &armreservations.AppliedScopeProperties{ + // DisplayName: to.Ptr("Azure subscription 1"), + // SubscriptionID: to.Ptr("/subscriptions/98df3792-7962-4f18-8be2-d5576f122de3"), + // }, + // AppliedScopeType: to.Ptr(armreservations.AppliedScopeTypeSingle), + // BillingPlan: to.Ptr(armreservations.ReservationBillingPlanMonthly), + // BillingScopeID: to.Ptr("/subscriptions/19376483-64b8-49e4-a931-d5248828720a"), + // DisplayName: to.Ptr("cabri_test"), + // EffectiveDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-09-22T22:46:32.7632798Z"); return t}()), + // ExpiryDate: to.Ptr(func() time.Time { t, _ := time.Parse("2006-01-02", "2018-09-22"); return t}()), + // ExpiryDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-09-22T22:46:32.7632798Z"); return t}()), + // ExtendedStatusInfo: &armreservations.ExtendedStatusInfo{ + // Message: to.Ptr("This reservation was merged and is no longer active."), + // StatusCode: to.Ptr(armreservations.ReservationStatusCodeMerged), + // }, + // InstanceFlexibility: to.Ptr(armreservations.InstanceFlexibilityOff), + // LastUpdatedDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-09-22T22:46:32.7632798Z"); return t}()), + // MergeProperties: &armreservations.ReservationMergeProperties{ + // MergeDestination: to.Ptr("/providers/microsoft.capacity/reservationOrders/276e7ae4-84d0-4da6-ab4b-d6b94f3557da/reservations/6ef59113-3482-40da-8d79-787f823e34bc"), + // }, + // ProvisioningState: to.Ptr(armreservations.ProvisioningStateSucceeded), + // Quantity: to.Ptr[int32](1), + // Renew: to.Ptr(false), + // ReservedResourceType: to.Ptr(armreservations.ReservedResourceTypeVirtualMachines), + // SKUDescription: to.Ptr("D1 v2"), + // SplitProperties: &armreservations.ReservationSplitProperties{ + // SplitSource: to.Ptr("/providers/microsoft.capacity/reservationOrders/276e7ae4-84d0-4da6-ab4b-d6b94f3557da/reservations/bcae77cd-3119-4766-919f-b50d36c75c7a"), + // }, + // }, + // SKU: &armreservations.SKUName{ + // Name: to.Ptr("Standard_DS1_v2"), + // }, + // }, + // { + // Name: to.Ptr("e0e4b4f5-77ea-4984-9ee4-6bf9850ee6de"), + // Type: to.Ptr("Microsoft.Capacity/reservationOrders/reservations"), + // ID: to.Ptr("/providers/microsoft.capacity/reservationOrders/276e7ae4-84d0-4da6-ab4b-d6b94f3557da/reservations/e0e4b4f5-77ea-4984-9ee4-6bf9850ee6de"), + // Etag: to.Ptr[int32](4), + // Location: to.Ptr("eastus"), + // Properties: &armreservations.Properties{ + // AppliedScopeProperties: &armreservations.AppliedScopeProperties{ + // DisplayName: to.Ptr("Azure subscription 1"), + // SubscriptionID: to.Ptr("/subscriptions/98df3792-7962-4f18-8be2-d5576f122de3"), + // }, + // AppliedScopeType: to.Ptr(armreservations.AppliedScopeTypeSingle), + // BillingPlan: to.Ptr(armreservations.ReservationBillingPlanMonthly), + // BillingScopeID: to.Ptr("/subscriptions/19376483-64b8-49e4-a931-d5248828720a"), + // DisplayName: to.Ptr("cabri_test"), + // EffectiveDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-09-22T22:46:32.7632798Z"); return t}()), + // ExpiryDate: to.Ptr(func() time.Time { t, _ := time.Parse("2006-01-02", "2018-09-22"); return t}()), + // ExpiryDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-09-22T22:46:32.7632798Z"); return t}()), + // ExtendedStatusInfo: &armreservations.ExtendedStatusInfo{ + // Message: to.Ptr("This reservation was merged and is no longer active."), + // StatusCode: to.Ptr(armreservations.ReservationStatusCodeMerged), + // }, + // InstanceFlexibility: to.Ptr(armreservations.InstanceFlexibilityOff), + // LastUpdatedDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-09-22T22:46:32.7632798Z"); return t}()), + // MergeProperties: &armreservations.ReservationMergeProperties{ + // MergeDestination: to.Ptr("/providers/microsoft.capacity/reservationOrders/276e7ae4-84d0-4da6-ab4b-d6b94f3557da/reservations/6ef59113-3482-40da-8d79-787f823e34bc"), + // }, + // ProvisioningState: to.Ptr(armreservations.ProvisioningStateSucceeded), + // Quantity: to.Ptr[int32](2), + // Renew: to.Ptr(false), + // ReservedResourceType: to.Ptr(armreservations.ReservedResourceTypeVirtualMachines), + // SKUDescription: to.Ptr("D1 v2"), + // SplitProperties: &armreservations.ReservationSplitProperties{ + // SplitSource: to.Ptr("/providers/microsoft.capacity/reservationOrders/276e7ae4-84d0-4da6-ab4b-d6b94f3557da/reservations/bcae77cd-3119-4766-919f-b50d36c75c7a"), + // }, + // }, + // SKU: &armreservations.SKUName{ + // Name: to.Ptr("Standard_DS1_v2"), + // }, + // }, + // { + // Name: to.Ptr("6ef59113-3482-40da-8d79-787f823e34bc"), + // Type: to.Ptr("Microsoft.Capacity/reservationOrders/reservations"), + // ID: to.Ptr("/providers/microsoft.capacity/reservationOrders/276e7ae4-84d0-4da6-ab4b-d6b94f3557da/reservations/6ef59113-3482-40da-8d79-787f823e34bc"), + // Etag: to.Ptr[int32](2), + // Location: to.Ptr("eastus"), + // Properties: &armreservations.Properties{ + // AppliedScopeProperties: &armreservations.AppliedScopeProperties{ + // DisplayName: to.Ptr("Azure subscription 1"), + // SubscriptionID: to.Ptr("/subscriptions/98df3792-7962-4f18-8be2-d5576f122de3"), + // }, + // AppliedScopeType: to.Ptr(armreservations.AppliedScopeTypeSingle), + // BillingPlan: to.Ptr(armreservations.ReservationBillingPlanMonthly), + // BillingScopeID: to.Ptr("/subscriptions/19376483-64b8-49e4-a931-d5248828720a"), + // DisplayName: to.Ptr("cabri_test"), + // EffectiveDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-09-22T22:46:32.7632798Z"); return t}()), + // ExpiryDate: to.Ptr(func() time.Time { t, _ := time.Parse("2006-01-02", "2018-09-22"); return t}()), + // ExpiryDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-09-22T22:46:32.7632798Z"); return t}()), + // InstanceFlexibility: to.Ptr(armreservations.InstanceFlexibilityOff), + // LastUpdatedDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-09-22T22:46:32.7632798Z"); return t}()), + // MergeProperties: &armreservations.ReservationMergeProperties{ + // MergeSources: []*string{ + // to.Ptr("/providers/microsoft.capacity/reservationOrders/276e7ae4-84d0-4da6-ab4b-d6b94f3557da/reservations/00238563-7312-4c20-a134-8c030bf938a7"), + // to.Ptr("/providers/microsoft.capacity/reservationOrders/276e7ae4-84d0-4da6-ab4b-d6b94f3557da/reservations/e0e4b4f5-77ea-4984-9ee4-6bf9850ee6de")}, + // }, + // ProvisioningState: to.Ptr(armreservations.ProvisioningStateSucceeded), + // Quantity: to.Ptr[int32](3), + // Renew: to.Ptr(false), + // ReservedResourceType: to.Ptr(armreservations.ReservedResourceTypeVirtualMachines), + // SKUDescription: to.Ptr("D1 v2"), + // }, + // SKU: &armreservations.SKUName{ + // Name: to.Ptr("Standard_DS1_v2"), + // }, + // }} } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/reservations/resource-manager/Microsoft.Capacity/stable/2022-03-01/examples/GetReservationsFromOrder.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/reservations/resource-manager/Microsoft.Capacity/stable/2022-11-01/examples/GetReservationsFromOrder.json func ExampleReservationClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -117,18 +352,214 @@ func ExampleReservationClient_NewListPager() { } pager := client.NewListPager("276e7ae4-84d0-4da6-ab4b-d6b94f3557da", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.ReservationList = armreservations.ReservationList{ + // Value: []*armreservations.ReservationResponse{ + // { + // Name: to.Ptr("bcae77cd-3119-4766-919f-b50d36c75c7a"), + // Type: to.Ptr("Microsoft.Capacity/reservationOrders/reservations"), + // ID: to.Ptr("/providers/microsoft.capacity/reservationOrders/276e7ae4-84d0-4da6-ab4b-d6b94f3557da/reservations/bcae77cd-3119-4766-919f-b50d36c75c7a"), + // Etag: to.Ptr[int32](10), + // Location: to.Ptr("eastus"), + // Properties: &armreservations.Properties{ + // AppliedScopeProperties: &armreservations.AppliedScopeProperties{ + // DisplayName: to.Ptr("Azure subscription 1"), + // SubscriptionID: to.Ptr("/subscriptions/98df3792-7962-4f18-8be2-d5576f122de3"), + // }, + // AppliedScopeType: to.Ptr(armreservations.AppliedScopeTypeSingle), + // BenefitStartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-09-22T01:00:30.9253826Z"); return t}()), + // BillingPlan: to.Ptr(armreservations.ReservationBillingPlanMonthly), + // BillingScopeID: to.Ptr("/subscriptions/19376483-64b8-49e4-a931-d5248828720a"), + // DisplayName: to.Ptr("cabri_test"), + // EffectiveDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-09-22T01:00:30.9253826Z"); return t}()), + // ExpiryDate: to.Ptr(func() time.Time { t, _ := time.Parse("2006-01-02", "2018-09-22"); return t}()), + // ExpiryDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-09-22T01:00:30.9253826Z"); return t}()), + // ExtendedStatusInfo: &armreservations.ExtendedStatusInfo{ + // Message: to.Ptr("This reservation was split and is no longer active."), + // StatusCode: to.Ptr(armreservations.ReservationStatusCodeSplit), + // }, + // InstanceFlexibility: to.Ptr(armreservations.InstanceFlexibilityOn), + // LastUpdatedDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-09-22T01:00:36.3191627Z"); return t}()), + // ProvisioningState: to.Ptr(armreservations.ProvisioningStateSucceeded), + // Quantity: to.Ptr[int32](3), + // Renew: to.Ptr(false), + // ReservedResourceType: to.Ptr(armreservations.ReservedResourceTypeVirtualMachines), + // SKUDescription: to.Ptr("D1 v2"), + // SplitProperties: &armreservations.ReservationSplitProperties{ + // SplitDestinations: []*string{ + // to.Ptr("/providers/microsoft.capacity/reservationOrders/276e7ae4-84d0-4da6-ab4b-d6b94f3557da/reservations/00238563-7312-4c20-a134-8c030bf938a7"), + // to.Ptr("/providers/microsoft.capacity/reservationOrders/276e7ae4-84d0-4da6-ab4b-d6b94f3557da/reservations/e0e4b4f5-77ea-4984-9ee4-6bf9850ee6de")}, + // }, + // }, + // SKU: &armreservations.SKUName{ + // Name: to.Ptr("Standard_DS1_v2"), + // }, + // }, + // { + // Name: to.Ptr("00238563-7312-4c20-a134-8c030bf938a7"), + // Type: to.Ptr("Microsoft.Capacity/reservationOrders/reservations"), + // ID: to.Ptr("/providers/microsoft.capacity/reservationOrders/276e7ae4-84d0-4da6-ab4b-d6b94f3557da/reservations/00238563-7312-4c20-a134-8c030bf938a7"), + // Etag: to.Ptr[int32](5), + // Location: to.Ptr("eastus"), + // Properties: &armreservations.Properties{ + // AppliedScopeProperties: &armreservations.AppliedScopeProperties{ + // DisplayName: to.Ptr("Azure subscription 1"), + // SubscriptionID: to.Ptr("/subscriptions/98df3792-7962-4f18-8be2-d5576f122de3"), + // }, + // AppliedScopeType: to.Ptr(armreservations.AppliedScopeTypeSingle), + // BenefitStartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-09-22T22:46:32.7632798Z"); return t}()), + // BillingPlan: to.Ptr(armreservations.ReservationBillingPlanMonthly), + // BillingScopeID: to.Ptr("/subscriptions/19376483-64b8-49e4-a931-d5248828720a"), + // DisplayName: to.Ptr("cabri_test"), + // EffectiveDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-09-22T22:46:32.7632798Z"); return t}()), + // ExpiryDate: to.Ptr(func() time.Time { t, _ := time.Parse("2006-01-02", "2018-09-22"); return t}()), + // ExpiryDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-09-22T22:46:32.7632798Z"); return t}()), + // ExtendedStatusInfo: &armreservations.ExtendedStatusInfo{ + // Message: to.Ptr("This reservation was merged and is no longer active."), + // StatusCode: to.Ptr(armreservations.ReservationStatusCodeMerged), + // }, + // InstanceFlexibility: to.Ptr(armreservations.InstanceFlexibilityOn), + // LastUpdatedDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-09-22T22:46:32.7632798Z"); return t}()), + // MergeProperties: &armreservations.ReservationMergeProperties{ + // MergeDestination: to.Ptr("/providers/microsoft.capacity/reservationOrders/276e7ae4-84d0-4da6-ab4b-d6b94f3557da/reservations/6ef59113-3482-40da-8d79-787f823e34bc"), + // }, + // ProvisioningState: to.Ptr(armreservations.ProvisioningStateSucceeded), + // Quantity: to.Ptr[int32](1), + // Renew: to.Ptr(false), + // ReservedResourceType: to.Ptr(armreservations.ReservedResourceTypeVirtualMachines), + // SKUDescription: to.Ptr("D1 v2"), + // SplitProperties: &armreservations.ReservationSplitProperties{ + // SplitSource: to.Ptr("/providers/microsoft.capacity/reservationOrders/276e7ae4-84d0-4da6-ab4b-d6b94f3557da/reservations/bcae77cd-3119-4766-919f-b50d36c75c7a"), + // }, + // }, + // SKU: &armreservations.SKUName{ + // Name: to.Ptr("Standard_DS1_v2"), + // }, + // }, + // { + // Name: to.Ptr("e0e4b4f5-77ea-4984-9ee4-6bf9850ee6de"), + // Type: to.Ptr("Microsoft.Capacity/reservationOrders/reservations"), + // ID: to.Ptr("/providers/microsoft.capacity/reservationOrders/276e7ae4-84d0-4da6-ab4b-d6b94f3557da/reservations/e0e4b4f5-77ea-4984-9ee4-6bf9850ee6de"), + // Etag: to.Ptr[int32](4), + // Location: to.Ptr("eastus"), + // Properties: &armreservations.Properties{ + // AppliedScopeProperties: &armreservations.AppliedScopeProperties{ + // DisplayName: to.Ptr("Azure subscription 1"), + // SubscriptionID: to.Ptr("/subscriptions/98df3792-7962-4f18-8be2-d5576f122de3"), + // }, + // AppliedScopeType: to.Ptr(armreservations.AppliedScopeTypeSingle), + // BenefitStartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-09-22T22:46:32.7632798Z"); return t}()), + // BillingPlan: to.Ptr(armreservations.ReservationBillingPlanMonthly), + // BillingScopeID: to.Ptr("/subscriptions/19376483-64b8-49e4-a931-d5248828720a"), + // DisplayName: to.Ptr("cabri_test"), + // EffectiveDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-09-22T22:46:32.7632798Z"); return t}()), + // ExpiryDate: to.Ptr(func() time.Time { t, _ := time.Parse("2006-01-02", "2018-09-22"); return t}()), + // ExpiryDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-09-22T22:46:32.7632798Z"); return t}()), + // ExtendedStatusInfo: &armreservations.ExtendedStatusInfo{ + // Message: to.Ptr("This reservation was merged and is no longer active."), + // StatusCode: to.Ptr(armreservations.ReservationStatusCodeMerged), + // }, + // InstanceFlexibility: to.Ptr(armreservations.InstanceFlexibilityOn), + // LastUpdatedDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-09-22T22:46:32.7632798Z"); return t}()), + // MergeProperties: &armreservations.ReservationMergeProperties{ + // MergeDestination: to.Ptr("/providers/microsoft.capacity/reservationOrders/276e7ae4-84d0-4da6-ab4b-d6b94f3557da/reservations/6ef59113-3482-40da-8d79-787f823e34bc"), + // }, + // ProvisioningState: to.Ptr(armreservations.ProvisioningStateSucceeded), + // Quantity: to.Ptr[int32](2), + // Renew: to.Ptr(false), + // ReservedResourceType: to.Ptr(armreservations.ReservedResourceTypeVirtualMachines), + // SKUDescription: to.Ptr("D1 v2"), + // SplitProperties: &armreservations.ReservationSplitProperties{ + // SplitSource: to.Ptr("/providers/microsoft.capacity/reservationOrders/276e7ae4-84d0-4da6-ab4b-d6b94f3557da/reservations/bcae77cd-3119-4766-919f-b50d36c75c7a"), + // }, + // }, + // SKU: &armreservations.SKUName{ + // Name: to.Ptr("Standard_DS1_v2"), + // }, + // }, + // { + // Name: to.Ptr("6ef59113-3482-40da-8d79-787f823e34bc"), + // Type: to.Ptr("Microsoft.Capacity/reservationOrders/reservations"), + // ID: to.Ptr("/providers/microsoft.capacity/reservationOrders/276e7ae4-84d0-4da6-ab4b-d6b94f3557da/reservations/6ef59113-3482-40da-8d79-787f823e34bc"), + // Etag: to.Ptr[int32](2), + // Location: to.Ptr("eastus"), + // Properties: &armreservations.Properties{ + // AppliedScopeProperties: &armreservations.AppliedScopeProperties{ + // DisplayName: to.Ptr("Azure subscription 1"), + // SubscriptionID: to.Ptr("/subscriptions/98df3792-7962-4f18-8be2-d5576f122de3"), + // }, + // AppliedScopeType: to.Ptr(armreservations.AppliedScopeTypeSingle), + // BenefitStartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-09-22T22:46:32.7632798Z"); return t}()), + // BillingPlan: to.Ptr(armreservations.ReservationBillingPlanMonthly), + // BillingScopeID: to.Ptr("/subscriptions/19376483-64b8-49e4-a931-d5248828720a"), + // DisplayName: to.Ptr("cabri_test"), + // EffectiveDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-09-22T22:46:32.7632798Z"); return t}()), + // ExpiryDate: to.Ptr(func() time.Time { t, _ := time.Parse("2006-01-02", "2018-09-22"); return t}()), + // ExpiryDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-09-22T22:46:32.7632798Z"); return t}()), + // InstanceFlexibility: to.Ptr(armreservations.InstanceFlexibilityOn), + // LastUpdatedDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-09-22T22:46:32.7632798Z"); return t}()), + // MergeProperties: &armreservations.ReservationMergeProperties{ + // MergeSources: []*string{ + // to.Ptr("/providers/microsoft.capacity/reservationOrders/276e7ae4-84d0-4da6-ab4b-d6b94f3557da/reservations/00238563-7312-4c20-a134-8c030bf938a7"), + // to.Ptr("/providers/microsoft.capacity/reservationOrders/276e7ae4-84d0-4da6-ab4b-d6b94f3557da/reservations/e0e4b4f5-77ea-4984-9ee4-6bf9850ee6de")}, + // }, + // ProvisioningState: to.Ptr(armreservations.ProvisioningStateSucceeded), + // Quantity: to.Ptr[int32](3), + // Renew: to.Ptr(false), + // ReservedResourceType: to.Ptr(armreservations.ReservedResourceTypeVirtualMachines), + // SKUDescription: to.Ptr("D1 v2"), + // }, + // SKU: &armreservations.SKUName{ + // Name: to.Ptr("Standard_DS1_v2"), + // }, + // }, + // { + // Name: to.Ptr("5se63214-3382-40da-ed79-787f823e34bc"), + // Type: to.Ptr("Microsoft.Capacity/reservationOrders/reservations"), + // ID: to.Ptr("/providers/microsoft.capacity/reservationOrders/276e7ae4-84d0-4da6-ab4b-d6b94f3557da/reservations/5se63214-3382-40da-ed79-787f823e34bc"), + // Etag: to.Ptr[int32](2), + // Location: to.Ptr("eastus"), + // Properties: &armreservations.Properties{ + // AppliedScopeProperties: &armreservations.AppliedScopeProperties{ + // DisplayName: to.Ptr("Azure subscription 1"), + // SubscriptionID: to.Ptr("/subscriptions/98df3792-7962-4f18-8be2-d5576f122de3"), + // }, + // AppliedScopeType: to.Ptr(armreservations.AppliedScopeTypeSingle), + // BenefitStartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-09-22T22:40:32.7632798Z"); return t}()), + // BillingPlan: to.Ptr(armreservations.ReservationBillingPlanMonthly), + // BillingScopeID: to.Ptr("/subscriptions/19376483-64b8-49e4-a931-d5248828720a"), + // DisplayName: to.Ptr("cabri_test"), + // EffectiveDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-09-22T22:46:32.7632798Z"); return t}()), + // ExpiryDate: to.Ptr(func() time.Time { t, _ := time.Parse("2006-01-02", "2018-09-22"); return t}()), + // ExpiryDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-09-22T22:46:32.7632798Z"); return t}()), + // InstanceFlexibility: to.Ptr(armreservations.InstanceFlexibilityOn), + // LastUpdatedDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-09-22T22:46:32.7632798Z"); return t}()), + // ProvisioningState: to.Ptr(armreservations.ProvisioningStateSucceeded), + // Quantity: to.Ptr[int32](3), + // Renew: to.Ptr(false), + // ReservedResourceType: to.Ptr(armreservations.ReservedResourceTypeVirtualMachines), + // SKUDescription: to.Ptr("D1 v2"), + // SwapProperties: &armreservations.ReservationSwapProperties{ + // SwapDestination: to.Ptr("/providers/microsoft.capacity/reservationOrders/63027ae3-389a-4716-ad77-04f42ce93c06/reservations/4jf50113-3382-40da-ed79-787f823e34bc"), + // }, + // }, + // SKU: &armreservations.SKUName{ + // Name: to.Ptr("Standard_D1_v2"), + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/reservations/resource-manager/Microsoft.Capacity/stable/2022-03-01/examples/GetReservationDetails.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/reservations/resource-manager/Microsoft.Capacity/stable/2022-11-01/examples/GetReservationDetails.json func ExampleReservationClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -139,15 +570,86 @@ func ExampleReservationClient_Get() { if err != nil { log.Fatalf("failed to create client: %v", err) } - res, err := client.Get(ctx, "6ef59113-3482-40da-8d79-787f823e34bc", "276e7ae4-84d0-4da6-ab4b-d6b94f3557da", &armreservations.ReservationClientGetOptions{Expand: to.Ptr("renewProperties")}) + res, err := client.Get(ctx, "276e7ae4-84d0-4da6-ab4b-d6b94f3557da", "6ef59113-3482-40da-8d79-787f823e34bc", &armreservations.ReservationClientGetOptions{Expand: to.Ptr("renewProperties")}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.ReservationResponse = armreservations.ReservationResponse{ + // Name: to.Ptr("6ef59113-3482-40da-8d79-787f823e34bc"), + // Type: to.Ptr("Microsoft.Capacity/reservationOrders/reservations"), + // ID: to.Ptr("/providers/microsoft.capacity/reservationOrders/276e7ae4-84d0-4da6-ab4b-d6b94f3557da/reservations/6ef59113-3482-40da-8d79-787f823e34bc"), + // Etag: to.Ptr[int32](2), + // Location: to.Ptr("eastus"), + // Properties: &armreservations.Properties{ + // AppliedScopeProperties: &armreservations.AppliedScopeProperties{ + // DisplayName: to.Ptr("Azure subscription 1"), + // SubscriptionID: to.Ptr("/subscriptions/98df3792-7962-4f18-8be2-d5576f122de3"), + // }, + // AppliedScopeType: to.Ptr(armreservations.AppliedScopeTypeSingle), + // BenefitStartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-09-22T22:46:32.7632798Z"); return t}()), + // BillingPlan: to.Ptr(armreservations.ReservationBillingPlanMonthly), + // BillingScopeID: to.Ptr("/subscriptions/19376483-64b8-49e4-a931-d5248828720a"), + // DisplayName: to.Ptr("cabri_test"), + // EffectiveDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-09-22T22:46:32.7632798Z"); return t}()), + // ExpiryDate: to.Ptr(func() time.Time { t, _ := time.Parse("2006-01-02", "2018-09-22"); return t}()), + // ExpiryDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-09-22T22:46:32.7632798Z"); return t}()), + // InstanceFlexibility: to.Ptr(armreservations.InstanceFlexibilityOff), + // LastUpdatedDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-09-22T22:46:32.7632798Z"); return t}()), + // MergeProperties: &armreservations.ReservationMergeProperties{ + // MergeSources: []*string{ + // to.Ptr("/providers/microsoft.capacity/reservationOrders/276e7ae4-84d0-4da6-ab4b-d6b94f3557da/reservations/00238563-7312-4c20-a134-8c030bf938a7"), + // to.Ptr("/providers/microsoft.capacity/reservationOrders/276e7ae4-84d0-4da6-ab4b-d6b94f3557da/reservations/e0e4b4f5-77ea-4984-9ee4-6bf9850ee6de")}, + // }, + // ProvisioningState: to.Ptr(armreservations.ProvisioningStateSucceeded), + // Quantity: to.Ptr[int32](3), + // Renew: to.Ptr(false), + // RenewDestination: to.Ptr("/providers/microsoft.capacity/reservationOrders/276e7ae4-84d0-4da6-ab4b-d6b94f3557da/reservations/00238563-7312-4c20-a134-8c030bf938a7"), + // RenewProperties: &armreservations.RenewPropertiesResponse{ + // BillingCurrencyTotal: &armreservations.RenewPropertiesResponseBillingCurrencyTotal{ + // Amount: to.Ptr[float32](466), + // CurrencyCode: to.Ptr("USD"), + // }, + // PricingCurrencyTotal: &armreservations.RenewPropertiesResponsePricingCurrencyTotal{ + // Amount: to.Ptr[float32](466), + // CurrencyCode: to.Ptr("USD"), + // }, + // PurchaseProperties: &armreservations.PurchaseRequest{ + // Location: to.Ptr("westus"), + // Properties: &armreservations.PurchaseRequestProperties{ + // AppliedScopeType: to.Ptr(armreservations.AppliedScopeTypeShared), + // BillingScopeID: to.Ptr("/subscriptions/19376483-64b8-49e4-a931-d5248828720a"), + // DisplayName: to.Ptr("Renew_Test_0618"), + // Quantity: to.Ptr[int32](2), + // Renew: to.Ptr(false), + // ReservedResourceProperties: &armreservations.PurchaseRequestPropertiesReservedResourceProperties{ + // InstanceFlexibility: to.Ptr(armreservations.InstanceFlexibilityOn), + // }, + // ReservedResourceType: to.Ptr(armreservations.ReservedResourceTypeVirtualMachines), + // Term: to.Ptr(armreservations.ReservationTermP1Y), + // }, + // SKU: &armreservations.SKUName{ + // Name: to.Ptr("Standard_D1"), + // }, + // }, + // }, + // RenewSource: to.Ptr("/providers/microsoft.capacity/reservationOrders/276e7ae4-84d0-4da6-ab4b-d6b94f3557da/reservations/00238563-7312-4c20-a134-8c030bf938a7"), + // ReservedResourceType: to.Ptr(armreservations.ReservedResourceTypeVirtualMachines), + // SKUDescription: to.Ptr("D1 v2"), + // SwapProperties: &armreservations.ReservationSwapProperties{ + // SwapSource: to.Ptr("/providers/microsoft.capacity/reservationOrders/63037ae3-385a-4716-ad77-02f42ce93c06/reservations/5c6383f5-3f2c-4159-ae74-j72i1c1a49bc"), + // }, + // Term: to.Ptr(armreservations.ReservationTermP1Y), + // }, + // SKU: &armreservations.SKUName{ + // Name: to.Ptr("Standard_DS1_v2"), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/reservations/resource-manager/Microsoft.Capacity/stable/2022-03-01/examples/UpdateReservation.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/reservations/resource-manager/Microsoft.Capacity/stable/2022-11-01/examples/UpdateReservation.json func ExampleReservationClient_BeginUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -171,11 +673,43 @@ func ExampleReservationClient_BeginUpdate() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.ReservationResponse = armreservations.ReservationResponse{ + // Name: to.Ptr("6ef59113-3482-40da-8d79-787f823e34bc"), + // Type: to.Ptr("Microsoft.Capacity/reservationOrders/reservations"), + // ID: to.Ptr("/providers/microsoft.capacity/reservationOrders/276e7ae4-84d0-4da6-ab4b-d6b94f3557da/reservations/6ef59113-3482-40da-8d79-787f823e34bc"), + // Etag: to.Ptr[int32](4), + // Location: to.Ptr("eastus"), + // Properties: &armreservations.Properties{ + // AppliedScopeType: to.Ptr(armreservations.AppliedScopeTypeShared), + // BillingPlan: to.Ptr(armreservations.ReservationBillingPlanMonthly), + // BillingScopeID: to.Ptr("/subscriptions/19376483-64b8-49e4-a931-d5248828720a"), + // DisplayName: to.Ptr("cabri_test"), + // EffectiveDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-09-22T23:57:48.1891638Z"); return t}()), + // ExpiryDate: to.Ptr(func() time.Time { t, _ := time.Parse("2006-01-02", "2018-09-22"); return t}()), + // ExpiryDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-09-22T23:57:48.1891638Z"); return t}()), + // InstanceFlexibility: to.Ptr(armreservations.InstanceFlexibilityOff), + // LastUpdatedDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-09-22T23:57:54.3768768Z"); return t}()), + // MergeProperties: &armreservations.ReservationMergeProperties{ + // MergeSources: []*string{ + // to.Ptr("/providers/microsoft.capacity/reservationOrders/276e7ae4-84d0-4da6-ab4b-d6b94f3557da/reservations/00238563-7312-4c20-a134-8c030bf938a7"), + // to.Ptr("/providers/microsoft.capacity/reservationOrders/276e7ae4-84d0-4da6-ab4b-d6b94f3557da/reservations/e0e4b4f5-77ea-4984-9ee4-6bf9850ee6de")}, + // }, + // ProvisioningState: to.Ptr(armreservations.ProvisioningStateSucceeded), + // Quantity: to.Ptr[int32](3), + // Renew: to.Ptr(false), + // ReservedResourceType: to.Ptr(armreservations.ReservedResourceTypeVirtualMachines), + // SKUDescription: to.Ptr("D1 v2"), + // }, + // SKU: &armreservations.SKUName{ + // Name: to.Ptr("Standard_DS1_v2"), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/reservations/resource-manager/Microsoft.Capacity/stable/2022-03-01/examples/Archive.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/reservations/resource-manager/Microsoft.Capacity/stable/2022-11-01/examples/Archive.json func ExampleReservationClient_Archive() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -192,7 +726,7 @@ func ExampleReservationClient_Archive() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/reservations/resource-manager/Microsoft.Capacity/stable/2022-03-01/examples/Unarchive.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/reservations/resource-manager/Microsoft.Capacity/stable/2022-11-01/examples/Unarchive.json func ExampleReservationClient_Unarchive() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -209,7 +743,7 @@ func ExampleReservationClient_Unarchive() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/reservations/resource-manager/Microsoft.Capacity/stable/2022-03-01/examples/GetReservationRevisions.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/reservations/resource-manager/Microsoft.Capacity/stable/2022-11-01/examples/GetReservationRevisions.json func ExampleReservationClient_NewListRevisionsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -220,20 +754,158 @@ func ExampleReservationClient_NewListRevisionsPager() { if err != nil { log.Fatalf("failed to create client: %v", err) } - pager := client.NewListRevisionsPager("6ef59113-3482-40da-8d79-787f823e34bc", "276e7ae4-84d0-4da6-ab4b-d6b94f3557da", nil) + pager := client.NewListRevisionsPager("276e7ae4-84d0-4da6-ab4b-d6b94f3557da", "6ef59113-3482-40da-8d79-787f823e34bc", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.ReservationList = armreservations.ReservationList{ + // Value: []*armreservations.ReservationResponse{ + // { + // Name: to.Ptr("4"), + // Type: to.Ptr("Microsoft.Capacity/reservationOrders/reservations/revisions"), + // ID: to.Ptr("/providers/microsoft.capacity/reservationOrders/276e7ae4-84d0-4da6-ab4b-d6b94f3557da/reservations/6ef59113-3482-40da-8d79-787f823e34bc/revisions/4"), + // Etag: to.Ptr[int32](4), + // Location: to.Ptr("eastus"), + // Properties: &armreservations.Properties{ + // AppliedScopeType: to.Ptr(armreservations.AppliedScopeTypeShared), + // BillingPlan: to.Ptr(armreservations.ReservationBillingPlanMonthly), + // DisplayName: to.Ptr("cabri_test"), + // EffectiveDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-09-22T23:57:48.1891638Z"); return t}()), + // ExpiryDate: to.Ptr(func() time.Time { t, _ := time.Parse("2006-01-02", "2018-09-22"); return t}()), + // ExpiryDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-09-22T23:57:48.1891638Z"); return t}()), + // InstanceFlexibility: to.Ptr(armreservations.InstanceFlexibilityOn), + // LastUpdatedDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-09-22T23:57:54.3768768Z"); return t}()), + // MergeProperties: &armreservations.ReservationMergeProperties{ + // MergeSources: []*string{ + // to.Ptr("/providers/microsoft.capacity/reservationOrders/276e7ae4-84d0-4da6-ab4b-d6b94f3557da/reservations/00238563-7312-4c20-a134-8c030bf938a7"), + // to.Ptr("/providers/microsoft.capacity/reservationOrders/276e7ae4-84d0-4da6-ab4b-d6b94f3557da/reservations/e0e4b4f5-77ea-4984-9ee4-6bf9850ee6de")}, + // }, + // ProvisioningState: to.Ptr(armreservations.ProvisioningStateSucceeded), + // Quantity: to.Ptr[int32](3), + // ReservedResourceType: to.Ptr(armreservations.ReservedResourceTypeVirtualMachines), + // SKUDescription: to.Ptr("D1 v2"), + // }, + // SKU: &armreservations.SKUName{ + // Name: to.Ptr("Standard_DS1_v2"), + // }, + // }, + // { + // Name: to.Ptr("3"), + // Type: to.Ptr("Microsoft.Capacity/reservationOrders/reservations/revisions"), + // ID: to.Ptr("/providers/microsoft.capacity/reservationOrders/276e7ae4-84d0-4da6-ab4b-d6b94f3557da/reservations/6ef59113-3482-40da-8d79-787f823e34bc/revisions/3"), + // Etag: to.Ptr[int32](3), + // Location: to.Ptr("eastus"), + // Properties: &armreservations.Properties{ + // AppliedScopeProperties: &armreservations.AppliedScopeProperties{ + // DisplayName: to.Ptr("Azure subscription 1"), + // SubscriptionID: to.Ptr("/subscriptions/98df3792-7962-4f18-8be2-d5576f122de3"), + // }, + // AppliedScopeType: to.Ptr(armreservations.AppliedScopeTypeSingle), + // BillingPlan: to.Ptr(armreservations.ReservationBillingPlanMonthly), + // DisplayName: to.Ptr("cabri_test"), + // EffectiveDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-09-22T22:46:32.7632798Z"); return t}()), + // ExpiryDate: to.Ptr(func() time.Time { t, _ := time.Parse("2006-01-02", "2018-09-22"); return t}()), + // ExpiryDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-09-22T22:46:32.7632798Z"); return t}()), + // ExtendedStatusInfo: &armreservations.ExtendedStatusInfo{ + // Message: to.Ptr("An operation is in progress on your reservation. Please wait for operation to complete before taking further action"), + // StatusCode: to.Ptr(armreservations.ReservationStatusCodePending), + // }, + // InstanceFlexibility: to.Ptr(armreservations.InstanceFlexibilityOn), + // LastUpdatedDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-09-22T23:57:47.488284Z"); return t}()), + // MergeProperties: &armreservations.ReservationMergeProperties{ + // MergeSources: []*string{ + // to.Ptr("/providers/microsoft.capacity/reservationOrders/276e7ae4-84d0-4da6-ab4b-d6b94f3557da/reservations/00238563-7312-4c20-a134-8c030bf938a7"), + // to.Ptr("/providers/microsoft.capacity/reservationOrders/276e7ae4-84d0-4da6-ab4b-d6b94f3557da/reservations/e0e4b4f5-77ea-4984-9ee4-6bf9850ee6de")}, + // }, + // ProvisioningState: to.Ptr(armreservations.ProvisioningStateSucceeded), + // Quantity: to.Ptr[int32](3), + // ReservedResourceType: to.Ptr(armreservations.ReservedResourceTypeVirtualMachines), + // SKUDescription: to.Ptr("D1 v2"), + // }, + // SKU: &armreservations.SKUName{ + // Name: to.Ptr("Standard_DS1_v2"), + // }, + // }, + // { + // Name: to.Ptr("2"), + // Type: to.Ptr("Microsoft.Capacity/reservationOrders/reservations/revisions"), + // ID: to.Ptr("/providers/microsoft.capacity/reservationOrders/276e7ae4-84d0-4da6-ab4b-d6b94f3557da/reservations/6ef59113-3482-40da-8d79-787f823e34bc/revisions/2"), + // Etag: to.Ptr[int32](2), + // Location: to.Ptr("eastus"), + // Properties: &armreservations.Properties{ + // AppliedScopeProperties: &armreservations.AppliedScopeProperties{ + // DisplayName: to.Ptr("Azure subscription 1"), + // SubscriptionID: to.Ptr("/subscriptions/98df3792-7962-4f18-8be2-d5576f122de3"), + // }, + // AppliedScopeType: to.Ptr(armreservations.AppliedScopeTypeSingle), + // BillingPlan: to.Ptr(armreservations.ReservationBillingPlanMonthly), + // DisplayName: to.Ptr("cabri_test"), + // EffectiveDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-09-22T22:46:32.7632798Z"); return t}()), + // ExpiryDate: to.Ptr(func() time.Time { t, _ := time.Parse("2006-01-02", "2018-09-22"); return t}()), + // ExpiryDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-09-22T22:46:32.7632798Z"); return t}()), + // InstanceFlexibility: to.Ptr(armreservations.InstanceFlexibilityOn), + // LastUpdatedDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-09-22T22:46:32.7632798Z"); return t}()), + // MergeProperties: &armreservations.ReservationMergeProperties{ + // MergeSources: []*string{ + // to.Ptr("/providers/microsoft.capacity/reservationOrders/276e7ae4-84d0-4da6-ab4b-d6b94f3557da/reservations/00238563-7312-4c20-a134-8c030bf938a7"), + // to.Ptr("/providers/microsoft.capacity/reservationOrders/276e7ae4-84d0-4da6-ab4b-d6b94f3557da/reservations/e0e4b4f5-77ea-4984-9ee4-6bf9850ee6de")}, + // }, + // ProvisioningState: to.Ptr(armreservations.ProvisioningStateSucceeded), + // Quantity: to.Ptr[int32](3), + // ReservedResourceType: to.Ptr(armreservations.ReservedResourceTypeVirtualMachines), + // SKUDescription: to.Ptr("D1 v2"), + // SwapProperties: &armreservations.ReservationSwapProperties{ + // SwapDestination: to.Ptr("/providers/microsoft.capacity/reservationOrders/afadf486-3432-4254-b297-4db8ef055f38/reservations/317efb41-b3ef-3706-8447-c2c045ab3ef5"), + // }, + // }, + // SKU: &armreservations.SKUName{ + // Name: to.Ptr("Standard_DS1_v2"), + // }, + // }, + // { + // Name: to.Ptr("1"), + // Type: to.Ptr("Microsoft.Capacity/reservationOrders/reservations/revisions"), + // ID: to.Ptr("/providers/microsoft.capacity/reservationOrders/276e7ae4-84d0-4da6-ab4b-d6b94f3557da/reservations/6ef59113-3482-40da-8d79-787f823e34bc/revisions/1"), + // Etag: to.Ptr[int32](1), + // Location: to.Ptr("eastus"), + // Properties: &armreservations.Properties{ + // AppliedScopeProperties: &armreservations.AppliedScopeProperties{ + // DisplayName: to.Ptr("Azure subscription 1"), + // SubscriptionID: to.Ptr("/subscriptions/98df3792-7962-4f18-8be2-d5576f122de3"), + // }, + // AppliedScopeType: to.Ptr(armreservations.AppliedScopeTypeSingle), + // DisplayName: to.Ptr("cabri_test"), + // EffectiveDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-09-22T22:46:27.3313607Z"); return t}()), + // ExpiryDate: to.Ptr(func() time.Time { t, _ := time.Parse("2006-01-02", "2018-09-22"); return t}()), + // ExpiryDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-09-22T22:46:27.3313607Z"); return t}()), + // InstanceFlexibility: to.Ptr(armreservations.InstanceFlexibilityOn), + // LastUpdatedDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-09-22T22:46:27.3313607Z"); return t}()), + // MergeProperties: &armreservations.ReservationMergeProperties{ + // MergeSources: []*string{ + // to.Ptr("/providers/microsoft.capacity/reservationOrders/276e7ae4-84d0-4da6-ab4b-d6b94f3557da/reservations/00238563-7312-4c20-a134-8c030bf938a7"), + // to.Ptr("/providers/microsoft.capacity/reservationOrders/276e7ae4-84d0-4da6-ab4b-d6b94f3557da/reservations/e0e4b4f5-77ea-4984-9ee4-6bf9850ee6de")}, + // }, + // ProvisioningState: to.Ptr(armreservations.ProvisioningStateSucceeded), + // Quantity: to.Ptr[int32](3), + // ReservedResourceType: to.Ptr(armreservations.ReservedResourceTypeVirtualMachines), + // SKUDescription: to.Ptr("D1 v2"), + // }, + // SKU: &armreservations.SKUName{ + // Name: to.Ptr("Standard_DS1_v2"), + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/reservations/resource-manager/Microsoft.Capacity/stable/2022-03-01/examples/GetReservations.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/reservations/resource-manager/Microsoft.Capacity/stable/2022-11-01/examples/GetReservations.json func ExampleReservationClient_NewListAllPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -252,13 +924,74 @@ func ExampleReservationClient_NewListAllPager() { Take: to.Ptr[float32](1), }) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.ListResult = armreservations.ListResult{ + // Summary: &armreservations.ReservationSummary{ + // CancelledCount: to.Ptr[float32](0), + // ExpiredCount: to.Ptr[float32](0), + // ExpiringCount: to.Ptr[float32](0), + // FailedCount: to.Ptr[float32](0), + // PendingCount: to.Ptr[float32](0), + // SucceededCount: to.Ptr[float32](1), + // }, + // Value: []*armreservations.ReservationResponse{ + // { + // Name: to.Ptr("00000000-0000-0000-0000-000000000001/00000000-0000-0000-0000-000000000000"), + // Type: to.Ptr("Microsoft.Capacity/reservationOrders/reservations"), + // ID: to.Ptr("/providers/microsoft.capacity/reservationOrders/00000000-0000-0000-0000-000000000001/reservations/00000000-0000-0000-0000-000000000000"), + // Location: to.Ptr("westus"), + // Properties: &armreservations.Properties{ + // AppliedScopeType: to.Ptr(armreservations.AppliedScopeTypeShared), + // DisplayName: to.Ptr("VM_RI_07-21-2020_12-06"), + // DisplayProvisioningState: to.Ptr("Succeeded"), + // EffectiveDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-09-22T22:46:32.7632798Z"); return t}()), + // ExpiryDate: to.Ptr(func() time.Time { t, _ := time.Parse("2006-01-02", "2023-07-21"); return t}()), + // ExpiryDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-07-21T22:46:32.7632798Z"); return t}()), + // ProvisioningState: to.Ptr(armreservations.ProvisioningStateSucceeded), + // PurchaseDate: to.Ptr(func() time.Time { t, _ := time.Parse("2006-01-02", "2021-04-22"); return t}()), + // PurchaseDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-04-22T22:46:32.7632798Z"); return t}()), + // Quantity: to.Ptr[int32](2), + // Renew: to.Ptr(false), + // RenewSource: to.Ptr("/providers/Microsoft.Capacity/reservationorders/00000000-0000-0000-0000-000000000002/reservations/00000000-0000-0000-0000-000000000003"), + // ReservedResourceType: to.Ptr(armreservations.ReservedResourceTypeVirtualMachines), + // Term: to.Ptr(armreservations.ReservationTermP3Y), + // UserFriendlyAppliedScopeType: to.Ptr("Shared"), + // UserFriendlyRenewState: to.Ptr("Off"), + // Utilization: &armreservations.PropertiesUtilization{ + // Aggregates: []*armreservations.ReservationUtilizationAggregates{ + // { + // Grain: to.Ptr[float32](1), + // GrainUnit: to.Ptr("days"), + // Value: to.Ptr[float32](0.05), + // ValueUnit: to.Ptr("percentage"), + // }, + // { + // Grain: to.Ptr[float32](7), + // GrainUnit: to.Ptr("days"), + // Value: to.Ptr[float32](0.05), + // ValueUnit: to.Ptr("percentage"), + // }, + // { + // Grain: to.Ptr[float32](30), + // GrainUnit: to.Ptr("days"), + // Value: to.Ptr[float32](0.05), + // ValueUnit: to.Ptr("percentage"), + // }}, + // Trend: to.Ptr("UP"), + // }, + // }, + // SKU: &armreservations.SKUName{ + // Name: to.Ptr("Standard_D1"), + // }, + // }}, + // } } } diff --git a/sdk/resourcemanager/reservations/armreservations/reservationorder_client.go b/sdk/resourcemanager/reservations/armreservations/reservationorder_client.go index 9e9154f91a0b..526934e23251 100644 --- a/sdk/resourcemanager/reservations/armreservations/reservationorder_client.go +++ b/sdk/resourcemanager/reservations/armreservations/reservationorder_client.go @@ -31,8 +31,8 @@ type ReservationOrderClient struct { } // NewReservationOrderClient creates a new instance of ReservationOrderClient with the specified values. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewReservationOrderClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*ReservationOrderClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -54,10 +54,11 @@ func NewReservationOrderClient(credential azcore.TokenCredential, options *arm.C // Calculate - Calculate price for placing a ReservationOrder. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// body - Information needed for calculate or purchase reservation -// options - ReservationOrderClientCalculateOptions contains the optional parameters for the ReservationOrderClient.Calculate -// method. +// +// Generated from API version 2022-11-01 +// - body - Information needed for calculate or purchase reservation +// - options - ReservationOrderClientCalculateOptions contains the optional parameters for the ReservationOrderClient.Calculate +// method. func (client *ReservationOrderClient) Calculate(ctx context.Context, body PurchaseRequest, options *ReservationOrderClientCalculateOptions) (ReservationOrderClientCalculateResponse, error) { req, err := client.calculateCreateRequest(ctx, body, options) if err != nil { @@ -81,7 +82,7 @@ func (client *ReservationOrderClient) calculateCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, body) @@ -98,11 +99,12 @@ func (client *ReservationOrderClient) calculateHandleResponse(resp *http.Respons // ChangeDirectory - Change directory (tenant) of ReservationOrder and all Reservation under it to specified tenant id // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// reservationOrderID - Order Id of the reservation -// body - Information needed to change directory of reservation order -// options - ReservationOrderClientChangeDirectoryOptions contains the optional parameters for the ReservationOrderClient.ChangeDirectory -// method. +// +// Generated from API version 2022-11-01 +// - reservationOrderID - Order Id of the reservation +// - body - Information needed to change directory of reservation order +// - options - ReservationOrderClientChangeDirectoryOptions contains the optional parameters for the ReservationOrderClient.ChangeDirectory +// method. func (client *ReservationOrderClient) ChangeDirectory(ctx context.Context, reservationOrderID string, body ChangeDirectoryRequest, options *ReservationOrderClientChangeDirectoryOptions) (ReservationOrderClientChangeDirectoryResponse, error) { req, err := client.changeDirectoryCreateRequest(ctx, reservationOrderID, body, options) if err != nil { @@ -130,7 +132,7 @@ func (client *ReservationOrderClient) changeDirectoryCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, body) @@ -147,9 +149,10 @@ func (client *ReservationOrderClient) changeDirectoryHandleResponse(resp *http.R // Get - Get the details of the ReservationOrder. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// reservationOrderID - Order Id of the reservation -// options - ReservationOrderClientGetOptions contains the optional parameters for the ReservationOrderClient.Get method. +// +// Generated from API version 2022-11-01 +// - reservationOrderID - Order Id of the reservation +// - options - ReservationOrderClientGetOptions contains the optional parameters for the ReservationOrderClient.Get method. func (client *ReservationOrderClient) Get(ctx context.Context, reservationOrderID string, options *ReservationOrderClientGetOptions) (ReservationOrderClientGetResponse, error) { req, err := client.getCreateRequest(ctx, reservationOrderID, options) if err != nil { @@ -177,7 +180,7 @@ func (client *ReservationOrderClient) getCreateRequest(ctx context.Context, rese return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-11-01") if options != nil && options.Expand != nil { reqQP.Set("$expand", *options.Expand) } @@ -196,8 +199,10 @@ func (client *ReservationOrderClient) getHandleResponse(resp *http.Response) (Re } // NewListPager - List of all the ReservationOrders that the user has access to in the current tenant. -// Generated from API version 2022-03-01 -// options - ReservationOrderClientListOptions contains the optional parameters for the ReservationOrderClient.List method. +// +// Generated from API version 2022-11-01 +// - options - ReservationOrderClientListOptions contains the optional parameters for the ReservationOrderClient.NewListPager +// method. func (client *ReservationOrderClient) NewListPager(options *ReservationOrderClientListOptions) *runtime.Pager[ReservationOrderClientListResponse] { return runtime.NewPager(runtime.PagingHandler[ReservationOrderClientListResponse]{ More: func(page ReservationOrderClientListResponse) bool { @@ -234,7 +239,7 @@ func (client *ReservationOrderClient) listCreateRequest(ctx context.Context, opt return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -251,11 +256,12 @@ func (client *ReservationOrderClient) listHandleResponse(resp *http.Response) (R // BeginPurchase - Purchase ReservationOrder and create resource under the specified URI. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// reservationOrderID - Order Id of the reservation -// body - Information needed for calculate or purchase reservation -// options - ReservationOrderClientBeginPurchaseOptions contains the optional parameters for the ReservationOrderClient.BeginPurchase -// method. +// +// Generated from API version 2022-11-01 +// - reservationOrderID - Order Id of the reservation +// - body - Information needed for calculate or purchase reservation +// - options - ReservationOrderClientBeginPurchaseOptions contains the optional parameters for the ReservationOrderClient.BeginPurchase +// method. func (client *ReservationOrderClient) BeginPurchase(ctx context.Context, reservationOrderID string, body PurchaseRequest, options *ReservationOrderClientBeginPurchaseOptions) (*runtime.Poller[ReservationOrderClientPurchaseResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.purchase(ctx, reservationOrderID, body, options) @@ -272,7 +278,8 @@ func (client *ReservationOrderClient) BeginPurchase(ctx context.Context, reserva // Purchase - Purchase ReservationOrder and create resource under the specified URI. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 +// +// Generated from API version 2022-11-01 func (client *ReservationOrderClient) purchase(ctx context.Context, reservationOrderID string, body PurchaseRequest, options *ReservationOrderClientBeginPurchaseOptions) (*http.Response, error) { req, err := client.purchaseCreateRequest(ctx, reservationOrderID, body, options) if err != nil { @@ -300,7 +307,7 @@ func (client *ReservationOrderClient) purchaseCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, body) diff --git a/sdk/resourcemanager/reservations/armreservations/reservationorder_client_example_test.go b/sdk/resourcemanager/reservations/armreservations/reservationorder_client_example_test.go index 7d2faa89561a..1167e5945753 100644 --- a/sdk/resourcemanager/reservations/armreservations/reservationorder_client_example_test.go +++ b/sdk/resourcemanager/reservations/armreservations/reservationorder_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armreservations_test @@ -14,10 +15,10 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/reservations/armreservations" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/reservations/armreservations/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/reservations/resource-manager/Microsoft.Capacity/stable/2022-03-01/examples/CalculateReservationOrder.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/reservations/resource-manager/Microsoft.Capacity/stable/2022-11-01/examples/CalculateReservationOrder.json func ExampleReservationOrderClient_Calculate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -49,11 +50,53 @@ func ExampleReservationOrderClient_Calculate() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.CalculatePriceResponse = armreservations.CalculatePriceResponse{ + // Properties: &armreservations.CalculatePriceResponseProperties{ + // BillingCurrencyTotal: &armreservations.CalculatePriceResponsePropertiesBillingCurrencyTotal{ + // Amount: to.Ptr[float64](46), + // CurrencyCode: to.Ptr("USD"), + // }, + // PaymentSchedule: []*armreservations.PaymentDetail{ + // { + // BillingCurrencyTotal: &armreservations.Price{ + // Amount: to.Ptr[float64](40), + // CurrencyCode: to.Ptr("EUR"), + // }, + // DueDate: to.Ptr(func() time.Time { t, _ := time.Parse("2006-01-02", "2019-05-14"); return t}()), + // PricingCurrencyTotal: &armreservations.Price{ + // Amount: to.Ptr[float64](46), + // CurrencyCode: to.Ptr("USD"), + // }, + // }, + // { + // DueDate: to.Ptr(func() time.Time { t, _ := time.Parse("2006-01-02", "2019-06-14"); return t}()), + // PricingCurrencyTotal: &armreservations.Price{ + // Amount: to.Ptr[float64](46), + // CurrencyCode: to.Ptr("USD"), + // }, + // }, + // { + // DueDate: to.Ptr(func() time.Time { t, _ := time.Parse("2006-01-02", "2019-07-14"); return t}()), + // PricingCurrencyTotal: &armreservations.Price{ + // Amount: to.Ptr[float64](46), + // CurrencyCode: to.Ptr("USD"), + // }, + // }}, + // PricingCurrencyTotal: &armreservations.CalculatePriceResponsePropertiesPricingCurrencyTotal{ + // Amount: to.Ptr[float32](46), + // CurrencyCode: to.Ptr("USD"), + // }, + // ReservationOrderID: to.Ptr("6d9cec54-7de8-abcd-9de7-80f5d634f2d2"), + // SKUDescription: to.Ptr("standard_D1"), + // SKUTitle: to.Ptr("Reserved VM Instance, Standard_D1, US West, 1 Year"), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/reservations/resource-manager/Microsoft.Capacity/stable/2022-03-01/examples/GetReservationOrders.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/reservations/resource-manager/Microsoft.Capacity/stable/2022-11-01/examples/GetReservationOrders.json func ExampleReservationOrderClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -66,18 +109,88 @@ func ExampleReservationOrderClient_NewListPager() { } pager := client.NewListPager(nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.ReservationOrderList = armreservations.ReservationOrderList{ + // Value: []*armreservations.ReservationOrderResponse{ + // { + // Name: to.Ptr("1e6407ba-37a5-499f-80ed-a3f0f338e443"), + // Type: to.Ptr("Microsoft.Capacity/reservationOrders"), + // Etag: to.Ptr[int32](7), + // ID: to.Ptr("/providers/microsoft.capacity/reservationOrders/1e6407ba-37a5-499f-80ed-a3f0f338e443"), + // Properties: &armreservations.ReservationOrderProperties{ + // BenefitStartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-08-29T21:20:23.8134834Z"); return t}()), + // BillingPlan: to.Ptr(armreservations.ReservationBillingPlanMonthly), + // CreatedDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-08-29T21:22:56.8541664Z"); return t}()), + // DisplayName: to.Ptr("cabri"), + // ExpiryDate: to.Ptr(func() time.Time { t, _ := time.Parse("2006-01-02", "2018-08-29"); return t}()), + // ExpiryDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-29T21:20:23.8134834Z"); return t}()), + // OriginalQuantity: to.Ptr[int32](1), + // ProvisioningState: to.Ptr(armreservations.ProvisioningStateSucceeded), + // RequestDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-08-29T21:20:23.8134834Z"); return t}()), + // Reservations: []*armreservations.ReservationResponse{ + // { + // ID: to.Ptr("/providers/microsoft.capacity/reservationOrders/1e6407ba-37a5-499f-80ed-a3f0f338e443/reservations/cae5924e-7a15-419f-a369-124f52d4a106"), + // }}, + // Term: to.Ptr(armreservations.ReservationTermP1Y), + // }, + // }, + // { + // Name: to.Ptr("1ea6e203-288e-4732-b9e1-da8bbe10c614"), + // Type: to.Ptr("Microsoft.Capacity/reservationOrders"), + // Etag: to.Ptr[int32](7), + // ID: to.Ptr("/providers/microsoft.capacity/reservationOrders/1ea6e203-288e-4732-b9e1-da8bbe10c614"), + // Properties: &armreservations.ReservationOrderProperties{ + // BenefitStartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-08-30T12:55:40.2799114Z"); return t}()), + // BillingPlan: to.Ptr(armreservations.ReservationBillingPlanMonthly), + // CreatedDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-08-30T12:58:20.526Z"); return t}()), + // DisplayName: to.Ptr("cabri"), + // ExpiryDate: to.Ptr(func() time.Time { t, _ := time.Parse("2006-01-02", "2018-08-30"); return t}()), + // ExpiryDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-30T12:58:20.526Z"); return t}()), + // OriginalQuantity: to.Ptr[int32](9), + // ProvisioningState: to.Ptr(armreservations.ProvisioningStateSucceeded), + // RequestDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-08-30T12:55:40.2799114Z"); return t}()), + // Reservations: []*armreservations.ReservationResponse{ + // { + // ID: to.Ptr("/providers/microsoft.capacity/reservationOrders/1ea6e203-288e-4732-b9e1-da8bbe10c614/reservations/d04fd48d-e3f6-42a3-a8f6-1ad0b7513e48"), + // }}, + // Term: to.Ptr(armreservations.ReservationTermP1Y), + // }, + // }, + // { + // Name: to.Ptr("1f14354c-dc12-4c8d-8090-6f295a3a34aa"), + // Type: to.Ptr("Microsoft.Capacity/reservationOrders"), + // Etag: to.Ptr[int32](7), + // ID: to.Ptr("/providers/microsoft.capacity/reservationOrders/1f14354c-dc12-4c8d-8090-6f295a3a34aa"), + // Properties: &armreservations.ReservationOrderProperties{ + // BenefitStartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-08-30T03:49:19.0252126Z"); return t}()), + // BillingPlan: to.Ptr(armreservations.ReservationBillingPlanMonthly), + // CreatedDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-08-30T03:51:49.8083758Z"); return t}()), + // DisplayName: to.Ptr("cabri"), + // ExpiryDate: to.Ptr(func() time.Time { t, _ := time.Parse("2006-01-02", "2018-08-30"); return t}()), + // ExpiryDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-30T03:51:49.8083758Z"); return t}()), + // OriginalQuantity: to.Ptr[int32](7), + // ProvisioningState: to.Ptr(armreservations.ProvisioningStateSucceeded), + // RequestDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-08-30T03:49:19.0252126Z"); return t}()), + // Reservations: []*armreservations.ReservationResponse{ + // { + // ID: to.Ptr("/providers/microsoft.capacity/reservationOrders/1f14354c-dc12-4c8d-8090-6f295a3a34aa/reservations/c8c926bd-fc5d-4e29-9d43-b68340ac23a6"), + // }}, + // Term: to.Ptr(armreservations.ReservationTermP1Y), + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/reservations/resource-manager/Microsoft.Capacity/stable/2022-03-01/examples/PurchaseReservationOrder.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/reservations/resource-manager/Microsoft.Capacity/stable/2022-11-01/examples/PurchaseReservationOrder.json func ExampleReservationOrderClient_BeginPurchase() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -114,12 +227,34 @@ func ExampleReservationOrderClient_BeginPurchase() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.ReservationOrderResponse = armreservations.ReservationOrderResponse{ + // Name: to.Ptr("1f14354c-dc12-4c8d-8090-6f295a3a34aa"), + // Type: to.Ptr("Microsoft.Capacity/reservationOrders"), + // Etag: to.Ptr[int32](7), + // ID: to.Ptr("/providers/microsoft.capacity/reservationOrders/1f14354c-dc12-4c8d-8090-6f295a3a34aa"), + // Properties: &armreservations.ReservationOrderProperties{ + // BillingPlan: to.Ptr(armreservations.ReservationBillingPlanMonthly), + // CreatedDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-08-30T03:51:49.8083758Z"); return t}()), + // DisplayName: to.Ptr("cabri"), + // ExpiryDate: to.Ptr(func() time.Time { t, _ := time.Parse("2006-01-02", "2018-08-30"); return t}()), + // ExpiryDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-30T03:51:49.8083758Z"); return t}()), + // OriginalQuantity: to.Ptr[int32](7), + // ProvisioningState: to.Ptr(armreservations.ProvisioningStateSucceeded), + // RequestDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-08-30T03:49:19.0252126Z"); return t}()), + // Reservations: []*armreservations.ReservationResponse{ + // { + // ID: to.Ptr("/providers/microsoft.capacity/reservationOrders/1f14354c-dc12-4c8d-8090-6f295a3a34aa/reservations/c8c926bd-fc5d-4e29-9d43-b68340ac23a6"), + // }}, + // Term: to.Ptr(armreservations.ReservationTermP1Y), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/reservations/resource-manager/Microsoft.Capacity/stable/2022-03-01/examples/GetReservationOrderDetails.json -func ExampleReservationOrderClient_Get_getReservation() { +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/reservations/resource-manager/Microsoft.Capacity/stable/2022-11-01/examples/GetReservationOrderDetails.json +func ExampleReservationOrderClient_Get_getReservationOrder() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -133,11 +268,34 @@ func ExampleReservationOrderClient_Get_getReservation() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.ReservationOrderResponse = armreservations.ReservationOrderResponse{ + // Name: to.Ptr("1f14354c-dc12-4c8d-8090-6f295a3a34aa"), + // Type: to.Ptr("Microsoft.Capacity/reservationOrders"), + // Etag: to.Ptr[int32](7), + // ID: to.Ptr("/providers/microsoft.capacity/reservationOrders/1f14354c-dc12-4c8d-8090-6f295a3a34aa"), + // Properties: &armreservations.ReservationOrderProperties{ + // BenefitStartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-08-30T03:49:19.0252126Z"); return t}()), + // BillingPlan: to.Ptr(armreservations.ReservationBillingPlanMonthly), + // CreatedDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-08-30T03:51:49.8083758Z"); return t}()), + // DisplayName: to.Ptr("cabri"), + // ExpiryDate: to.Ptr(func() time.Time { t, _ := time.Parse("2006-01-02", "2018-08-30"); return t}()), + // ExpiryDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-30T03:51:49.8083758Z"); return t}()), + // OriginalQuantity: to.Ptr[int32](7), + // ProvisioningState: to.Ptr(armreservations.ProvisioningStateSucceeded), + // RequestDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-08-30T03:49:19.0252126Z"); return t}()), + // Reservations: []*armreservations.ReservationResponse{ + // { + // ID: to.Ptr("/providers/microsoft.capacity/reservationOrders/1f14354c-dc12-4c8d-8090-6f295a3a34aa/reservations/c8c926bd-fc5d-4e29-9d43-b68340ac23a6"), + // }}, + // Term: to.Ptr(armreservations.ReservationTermP1Y), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/reservations/resource-manager/Microsoft.Capacity/stable/2022-03-01/examples/GetReservationOrderDetailsWithExpandPlanInformation.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/reservations/resource-manager/Microsoft.Capacity/stable/2022-11-01/examples/GetReservationOrderDetailsWithExpandPlanInformation.json func ExampleReservationOrderClient_Get_getReservationWithExpandPayments() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -152,11 +310,131 @@ func ExampleReservationOrderClient_Get_getReservationWithExpandPayments() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.ReservationOrderResponse = armreservations.ReservationOrderResponse{ + // Name: to.Ptr("1f14354c-dc12-4c8d-8090-6f295a3a34aa"), + // Type: to.Ptr("Microsoft.Capacity/reservationOrders"), + // Etag: to.Ptr[int32](7), + // ID: to.Ptr("/providers/microsoft.capacity/reservationOrders/1f14354c-dc12-4c8d-8090-6f295a3a34aa"), + // Properties: &armreservations.ReservationOrderProperties{ + // BenefitStartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-08-30T03:51:49Z"); return t}()), + // BillingPlan: to.Ptr(armreservations.ReservationBillingPlanMonthly), + // CreatedDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-08-30T03:51:49Z"); return t}()), + // DisplayName: to.Ptr("cabri"), + // ExpiryDate: to.Ptr(func() time.Time { t, _ := time.Parse("2006-01-02", "2018-08-30"); return t}()), + // ExpiryDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-30T03:51:49Z"); return t}()), + // OriginalQuantity: to.Ptr[int32](7), + // PlanInformation: &armreservations.ReservationOrderBillingPlanInformation{ + // NextPaymentDueDate: to.Ptr(func() time.Time { t, _ := time.Parse("2006-01-02", "2019-09-30"); return t}()), + // PricingCurrencyTotal: &armreservations.Price{ + // Amount: to.Ptr[float64](466), + // CurrencyCode: to.Ptr("USD"), + // }, + // StartDate: to.Ptr(func() time.Time { t, _ := time.Parse("2006-01-02", "2019-08-30"); return t}()), + // Transactions: []*armreservations.PaymentDetail{ + // { + // BillingAccount: to.Ptr("23456"), + // BillingCurrencyTotal: &armreservations.Price{ + // Amount: to.Ptr[float64](466), + // CurrencyCode: to.Ptr("USD"), + // }, + // DueDate: to.Ptr(func() time.Time { t, _ := time.Parse("2006-01-02", "2019-09-30"); return t}()), + // PaymentDate: to.Ptr(func() time.Time { t, _ := time.Parse("2006-01-02", "2019-09-30"); return t}()), + // PricingCurrencyTotal: &armreservations.Price{ + // Amount: to.Ptr[float64](466), + // CurrencyCode: to.Ptr("USD"), + // }, + // Status: to.Ptr(armreservations.PaymentStatusSucceeded), + // }, + // { + // BillingAccount: to.Ptr("23456"), + // BillingCurrencyTotal: &armreservations.Price{ + // Amount: to.Ptr[float64](466), + // CurrencyCode: to.Ptr("USD"), + // }, + // DueDate: to.Ptr(func() time.Time { t, _ := time.Parse("2006-01-02", "2019-10-30"); return t}()), + // ExtendedStatusInfo: &armreservations.ExtendedStatusInfo{ + // Message: to.Ptr("Credit card charge failed."), + // StatusCode: to.Ptr(armreservations.ReservationStatusCode("PaymentDeclined")), + // }, + // PaymentDate: to.Ptr(func() time.Time { t, _ := time.Parse("2006-01-02", "2019-10-30"); return t}()), + // PricingCurrencyTotal: &armreservations.Price{ + // Amount: to.Ptr[float64](466), + // CurrencyCode: to.Ptr("USD"), + // }, + // Status: to.Ptr(armreservations.PaymentStatusFailed), + // }, + // { + // BillingAccount: to.Ptr("23456"), + // BillingCurrencyTotal: &armreservations.Price{ + // Amount: to.Ptr[float64](466), + // CurrencyCode: to.Ptr("USD"), + // }, + // DueDate: to.Ptr(func() time.Time { t, _ := time.Parse("2006-01-02", "2019-10-31"); return t}()), + // PaymentDate: to.Ptr(func() time.Time { t, _ := time.Parse("2006-01-02", "2019-10-31"); return t}()), + // PricingCurrencyTotal: &armreservations.Price{ + // Amount: to.Ptr[float64](466), + // CurrencyCode: to.Ptr("USD"), + // }, + // Status: to.Ptr(armreservations.PaymentStatusSucceeded), + // }, + // { + // BillingAccount: to.Ptr("23456"), + // BillingCurrencyTotal: &armreservations.Price{ + // Amount: to.Ptr[float64](466), + // CurrencyCode: to.Ptr("USD"), + // }, + // DueDate: to.Ptr(func() time.Time { t, _ := time.Parse("2006-01-02", "2019-11-30"); return t}()), + // PaymentDate: to.Ptr(func() time.Time { t, _ := time.Parse("2006-01-02", "2019-11-30"); return t}()), + // PricingCurrencyTotal: &armreservations.Price{ + // Amount: to.Ptr[float64](466), + // CurrencyCode: to.Ptr("USD"), + // }, + // Status: to.Ptr(armreservations.PaymentStatusSucceeded), + // }, + // { + // BillingAccount: to.Ptr("23456"), + // BillingCurrencyTotal: &armreservations.Price{ + // Amount: to.Ptr[float64](466), + // CurrencyCode: to.Ptr("USD"), + // }, + // DueDate: to.Ptr(func() time.Time { t, _ := time.Parse("2006-01-02", "2019-07-14"); return t}()), + // PaymentDate: to.Ptr(func() time.Time { t, _ := time.Parse("2006-01-02", "2019-06-14"); return t}()), + // PricingCurrencyTotal: &armreservations.Price{ + // Amount: to.Ptr[float64](466), + // CurrencyCode: to.Ptr("USD"), + // }, + // Status: to.Ptr(armreservations.PaymentStatusScheduled), + // }, + // { + // BillingAccount: to.Ptr("23456"), + // BillingCurrencyTotal: &armreservations.Price{ + // Amount: to.Ptr[float64](466), + // CurrencyCode: to.Ptr("USD"), + // }, + // DueDate: to.Ptr(func() time.Time { t, _ := time.Parse("2006-01-02", "2019-06-14"); return t}()), + // PaymentDate: to.Ptr(func() time.Time { t, _ := time.Parse("2006-01-02", "2019-08-14"); return t}()), + // PricingCurrencyTotal: &armreservations.Price{ + // Amount: to.Ptr[float64](466), + // CurrencyCode: to.Ptr("USD"), + // }, + // Status: to.Ptr(armreservations.PaymentStatusScheduled), + // }}, + // }, + // ProvisioningState: to.Ptr(armreservations.ProvisioningStateSucceeded), + // RequestDateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-08-30T03:49:19Z"); return t}()), + // Reservations: []*armreservations.ReservationResponse{ + // { + // ID: to.Ptr("/providers/microsoft.capacity/reservationOrders/1f14354c-dc12-4c8d-8090-6f295a3a34aa/reservations/c8c926bd-fc5d-4e29-9d43-b68340ac23a6"), + // }}, + // Term: to.Ptr(armreservations.ReservationTermP1Y), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/reservations/resource-manager/Microsoft.Capacity/stable/2022-03-01/examples/ChangeDirectoryReservationOrder.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/reservations/resource-manager/Microsoft.Capacity/stable/2022-11-01/examples/ChangeDirectoryReservationOrder.json func ExampleReservationOrderClient_ChangeDirectory() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -173,6 +451,22 @@ func ExampleReservationOrderClient_ChangeDirectory() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.ChangeDirectoryResponse = armreservations.ChangeDirectoryResponse{ + // ReservationOrder: &armreservations.ChangeDirectoryResult{ + // Name: to.Ptr("VM_RI_10-02-2020_15-21"), + // Error: to.Ptr("error string"), + // ID: to.Ptr("a075419f-44cc-497f-b68a-14ee811d48b9"), + // IsSucceeded: to.Ptr(true), + // }, + // Reservations: []*armreservations.ChangeDirectoryResult{ + // { + // Name: to.Ptr("VM_RI_10-02-2020_15-21"), + // Error: to.Ptr("error string"), + // ID: to.Ptr("1f14354c-dc12-4c8d-8090-6f295a3a34aa"), + // IsSucceeded: to.Ptr(true), + // }}, + // } } diff --git a/sdk/resourcemanager/reservations/armreservations/response_types.go b/sdk/resourcemanager/reservations/armreservations/response_types.go index 9792a3d47b63..41d5940005c1 100644 --- a/sdk/resourcemanager/reservations/armreservations/response_types.go +++ b/sdk/resourcemanager/reservations/armreservations/response_types.go @@ -16,13 +16,12 @@ type AzureReservationAPIClientGetAppliedReservationListResponse struct { AppliedReservations } -// AzureReservationAPIClientGetCatalogResponse contains the response from method AzureReservationAPIClient.GetCatalog. +// AzureReservationAPIClientGetCatalogResponse contains the response from method AzureReservationAPIClient.NewGetCatalogPager. type AzureReservationAPIClientGetCatalogResponse struct { - // Array of Catalog - CatalogArray []*Catalog + CatalogsResult } -// CalculateExchangeClientPostResponse contains the response from method CalculateExchangeClient.Post. +// CalculateExchangeClientPostResponse contains the response from method CalculateExchangeClient.BeginPost. type CalculateExchangeClientPostResponse struct { CalculateExchangeOperationResultResponse } @@ -32,17 +31,17 @@ type CalculateRefundClientPostResponse struct { CalculateRefundResponse } -// ExchangeClientPostResponse contains the response from method ExchangeClient.Post. +// ExchangeClientPostResponse contains the response from method ExchangeClient.BeginPost. type ExchangeClientPostResponse struct { ExchangeOperationResultResponse } -// OperationClientListResponse contains the response from method OperationClient.List. +// OperationClientListResponse contains the response from method OperationClient.NewListPager. type OperationClientListResponse struct { OperationList } -// QuotaClientCreateOrUpdateResponse contains the response from method QuotaClient.CreateOrUpdate. +// QuotaClientCreateOrUpdateResponse contains the response from method QuotaClient.BeginCreateOrUpdate. type QuotaClientCreateOrUpdateResponse struct { CurrentQuotaLimitBase } @@ -54,14 +53,14 @@ type QuotaClientGetResponse struct { ETag *string } -// QuotaClientListResponse contains the response from method QuotaClient.List. +// QuotaClientListResponse contains the response from method QuotaClient.NewListPager. type QuotaClientListResponse struct { QuotaLimits // ETag contains the information returned from the ETag header response. ETag *string } -// QuotaClientUpdateResponse contains the response from method QuotaClient.Update. +// QuotaClientUpdateResponse contains the response from method QuotaClient.BeginUpdate. type QuotaClientUpdateResponse struct { CurrentQuotaLimitBase } @@ -71,7 +70,7 @@ type QuotaRequestStatusClientGetResponse struct { QuotaRequestDetails } -// QuotaRequestStatusClientListResponse contains the response from method QuotaRequestStatusClient.List. +// QuotaRequestStatusClientListResponse contains the response from method QuotaRequestStatusClient.NewListPager. type QuotaRequestStatusClientListResponse struct { QuotaRequestDetailsList } @@ -81,7 +80,7 @@ type ReservationClientArchiveResponse struct { // placeholder for future response values } -// ReservationClientAvailableScopesResponse contains the response from method ReservationClient.AvailableScopes. +// ReservationClientAvailableScopesResponse contains the response from method ReservationClient.BeginAvailableScopes. type ReservationClientAvailableScopesResponse struct { AvailableScopeProperties } @@ -91,22 +90,22 @@ type ReservationClientGetResponse struct { ReservationResponse } -// ReservationClientListAllResponse contains the response from method ReservationClient.ListAll. +// ReservationClientListAllResponse contains the response from method ReservationClient.NewListAllPager. type ReservationClientListAllResponse struct { ListResult } -// ReservationClientListResponse contains the response from method ReservationClient.List. +// ReservationClientListResponse contains the response from method ReservationClient.NewListPager. type ReservationClientListResponse struct { ReservationList } -// ReservationClientListRevisionsResponse contains the response from method ReservationClient.ListRevisions. +// ReservationClientListRevisionsResponse contains the response from method ReservationClient.NewListRevisionsPager. type ReservationClientListRevisionsResponse struct { ReservationList } -// ReservationClientMergeResponse contains the response from method ReservationClient.Merge. +// ReservationClientMergeResponse contains the response from method ReservationClient.BeginMerge. type ReservationClientMergeResponse struct { // Array of ReservationResponse ReservationResponseArray []*ReservationResponse @@ -117,7 +116,7 @@ func (r *ReservationClientMergeResponse) UnmarshalJSON(data []byte) error { return json.Unmarshal(data, &r.ReservationResponseArray) } -// ReservationClientSplitResponse contains the response from method ReservationClient.Split. +// ReservationClientSplitResponse contains the response from method ReservationClient.BeginSplit. type ReservationClientSplitResponse struct { // Array of ReservationResponse ReservationResponseArray []*ReservationResponse @@ -133,7 +132,7 @@ type ReservationClientUnarchiveResponse struct { // placeholder for future response values } -// ReservationClientUpdateResponse contains the response from method ReservationClient.Update. +// ReservationClientUpdateResponse contains the response from method ReservationClient.BeginUpdate. type ReservationClientUpdateResponse struct { ReservationResponse } @@ -153,19 +152,17 @@ type ReservationOrderClientGetResponse struct { ReservationOrderResponse } -// ReservationOrderClientListResponse contains the response from method ReservationOrderClient.List. +// ReservationOrderClientListResponse contains the response from method ReservationOrderClient.NewListPager. type ReservationOrderClientListResponse struct { ReservationOrderList } -// ReservationOrderClientPurchaseResponse contains the response from method ReservationOrderClient.Purchase. +// ReservationOrderClientPurchaseResponse contains the response from method ReservationOrderClient.BeginPurchase. type ReservationOrderClientPurchaseResponse struct { ReservationOrderResponse } -// ReturnClientPostResponse contains the response from method ReturnClient.Post. +// ReturnClientPostResponse contains the response from method ReturnClient.BeginPost. type ReturnClientPostResponse struct { RefundResponse - // Location contains the information returned from the Location header response. - Location *string } diff --git a/sdk/resourcemanager/reservations/armreservations/return_client.go b/sdk/resourcemanager/reservations/armreservations/return_client.go index 4b90d1163e21..0f4da0ee1ae7 100644 --- a/sdk/resourcemanager/reservations/armreservations/return_client.go +++ b/sdk/resourcemanager/reservations/armreservations/return_client.go @@ -31,8 +31,8 @@ type ReturnClient struct { } // NewReturnClient creates a new instance of ReturnClient with the specified values. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewReturnClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*ReturnClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -52,29 +52,48 @@ func NewReturnClient(credential azcore.TokenCredential, options *arm.ClientOptio return client, nil } -// Post - Return a reservation. +// BeginPost - Return a reservation and get refund information. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-03-01 -// reservationOrderID - Order Id of the reservation -// body - Information needed for returning reservation. -// options - ReturnClientPostOptions contains the optional parameters for the ReturnClient.Post method. -func (client *ReturnClient) Post(ctx context.Context, reservationOrderID string, body RefundRequest, options *ReturnClientPostOptions) (ReturnClientPostResponse, error) { +// +// Generated from API version 2022-11-01 +// - reservationOrderID - Order Id of the reservation +// - body - Information needed for returning reservation. +// - options - ReturnClientBeginPostOptions contains the optional parameters for the ReturnClient.BeginPost method. +func (client *ReturnClient) BeginPost(ctx context.Context, reservationOrderID string, body RefundRequest, options *ReturnClientBeginPostOptions) (*runtime.Poller[ReturnClientPostResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.post(ctx, reservationOrderID, body, options) + if err != nil { + return nil, err + } + return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[ReturnClientPostResponse]{ + FinalStateVia: runtime.FinalStateViaLocation, + }) + } else { + return runtime.NewPollerFromResumeToken[ReturnClientPostResponse](options.ResumeToken, client.pl, nil) + } +} + +// Post - Return a reservation and get refund information. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-11-01 +func (client *ReturnClient) post(ctx context.Context, reservationOrderID string, body RefundRequest, options *ReturnClientBeginPostOptions) (*http.Response, error) { req, err := client.postCreateRequest(ctx, reservationOrderID, body, options) if err != nil { - return ReturnClientPostResponse{}, err + return nil, err } resp, err := client.pl.Do(req) if err != nil { - return ReturnClientPostResponse{}, err + return nil, err } if !runtime.HasStatusCode(resp, http.StatusAccepted) { - return ReturnClientPostResponse{}, runtime.NewResponseError(resp) + return nil, runtime.NewResponseError(resp) } - return client.postHandleResponse(resp) + return resp, nil } // postCreateRequest creates the Post request. -func (client *ReturnClient) postCreateRequest(ctx context.Context, reservationOrderID string, body RefundRequest, options *ReturnClientPostOptions) (*policy.Request, error) { +func (client *ReturnClient) postCreateRequest(ctx context.Context, reservationOrderID string, body RefundRequest, options *ReturnClientBeginPostOptions) (*policy.Request, error) { urlPath := "/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/return" if reservationOrderID == "" { return nil, errors.New("parameter reservationOrderID cannot be empty") @@ -85,20 +104,8 @@ func (client *ReturnClient) postCreateRequest(ctx context.Context, reservationOr return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-03-01") + reqQP.Set("api-version", "2022-11-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, body) } - -// postHandleResponse handles the Post response. -func (client *ReturnClient) postHandleResponse(resp *http.Response) (ReturnClientPostResponse, error) { - result := ReturnClientPostResponse{} - if val := resp.Header.Get("Location"); val != "" { - result.Location = &val - } - if err := runtime.UnmarshalAsJSON(resp, &result.RefundResponse); err != nil { - return ReturnClientPostResponse{}, err - } - return result, nil -} diff --git a/sdk/resourcemanager/reservations/armreservations/return_client_example_test.go b/sdk/resourcemanager/reservations/armreservations/return_client_example_test.go index 62a4427ab6f6..c4f5f2bd6d7a 100644 --- a/sdk/resourcemanager/reservations/armreservations/return_client_example_test.go +++ b/sdk/resourcemanager/reservations/armreservations/return_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armreservations_test @@ -14,11 +15,11 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/reservations/armreservations" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/reservations/armreservations/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/reservations/resource-manager/Microsoft.Capacity/stable/2022-03-01/examples/Return.json -func ExampleReturnClient_Post() { +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/reservations/resource-manager/Microsoft.Capacity/stable/2022-11-01/examples/Return.json +func ExampleReturnClient_BeginPost() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -28,7 +29,7 @@ func ExampleReturnClient_Post() { if err != nil { log.Fatalf("failed to create client: %v", err) } - _, err = client.Post(ctx, "276e7ae4-84d0-4da6-ab4b-d6b94f3557da", armreservations.RefundRequest{ + poller, err := client.BeginPost(ctx, "50000000-aaaa-bbbb-cccc-100000000004", armreservations.RefundRequest{ Properties: &armreservations.RefundRequestProperties{ ReservationToReturn: &armreservations.ReservationToReturn{ Quantity: to.Ptr[int32](1), @@ -42,4 +43,8 @@ func ExampleReturnClient_Post() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } + _, err = poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } } diff --git a/sdk/resourcemanager/reservations/armreservations/time_rfc3339.go b/sdk/resourcemanager/reservations/armreservations/time_rfc3339.go index 125c370e554f..8cc0ea56c97b 100644 --- a/sdk/resourcemanager/reservations/armreservations/time_rfc3339.go +++ b/sdk/resourcemanager/reservations/armreservations/time_rfc3339.go @@ -62,7 +62,7 @@ func (t *timeRFC3339) Parse(layout, value string) error { return err } -func populateTimeRFC3339(m map[string]interface{}, k string, t *time.Time) { +func populateTimeRFC3339(m map[string]any, k string, t *time.Time) { if t == nil { return } else if azcore.IsNullValue(t) { From c085139ecfe15ea971f73596546af9ee27f2a9df Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Wed, 22 Feb 2023 03:54:25 -0500 Subject: [PATCH 041/107] [Release] sdk/resourcemanager/cognitiveservices/armcognitiveservices/1.3.0 generation from spec commit: 630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f (#19908) Co-authored-by: ReleaseHelper --- .../armcognitiveservices/CHANGELOG.md | 44 + .../armcognitiveservices/accounts_client.go | 138 +- .../accounts_client_example_test.go | 335 ++- .../armcognitiveservices/autorest.md | 6 +- .../commitmentplans_client.go | 729 +++++- .../commitmentplans_client_example_test.go | 446 +++- .../commitmenttiers_client.go | 16 +- .../commitmenttiers_client_example_test.go | 26 +- .../armcognitiveservices/constants.go | 62 +- .../deletedaccounts_client.go | 45 +- .../deletedaccounts_client_example_test.go | 102 +- .../deployments_client.go | 66 +- .../deployments_client_example_test.go | 76 +- .../armcognitiveservices/go.mod | 6 +- .../armcognitiveservices/go.sum | 15 +- .../armcognitiveservices/management_client.go | 30 +- .../management_client_example_test.go | 26 +- .../armcognitiveservices/models.go | 198 +- .../armcognitiveservices/models_serde.go | 446 +++- .../armcognitiveservices/operations_client.go | 11 +- .../operations_client_example_test.go | 43 +- .../privateendpointconnections_client.go | 72 +- ...endpointconnections_client_example_test.go | 66 +- .../privatelinkresources_client.go | 19 +- ...rivatelinkresources_client_example_test.go | 21 +- .../resourceskus_client.go | 13 +- .../resourceskus_client_example_test.go | 2163 ++++++++++++++++- .../armcognitiveservices/response_types.go | 86 +- .../armcognitiveservices/time_rfc3339.go | 2 +- 29 files changed, 4894 insertions(+), 414 deletions(-) diff --git a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/CHANGELOG.md b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/CHANGELOG.md index 0fe857c17ab4..75bdb004b084 100644 --- a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/CHANGELOG.md +++ b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/CHANGELOG.md @@ -1,5 +1,49 @@ # Release History +## 1.3.0 (2023-02-24) +### Features Added + +- New type alias `CommitmentPlanProvisioningState` with values `CommitmentPlanProvisioningStateAccepted`, `CommitmentPlanProvisioningStateCanceled`, `CommitmentPlanProvisioningStateCreating`, `CommitmentPlanProvisioningStateDeleting`, `CommitmentPlanProvisioningStateFailed`, `CommitmentPlanProvisioningStateMoving`, `CommitmentPlanProvisioningStateSucceeded` +- New type alias `ModelLifecycleStatus` with values `ModelLifecycleStatusGenerallyAvailable`, `ModelLifecycleStatusPreview` +- New type alias `RoutingMethods` with values `RoutingMethodsPerformance`, `RoutingMethodsPriority`, `RoutingMethodsWeighted` +- New function `*CommitmentPlansClient.BeginCreateOrUpdateAssociation(context.Context, string, string, string, CommitmentPlanAccountAssociation, *CommitmentPlansClientBeginCreateOrUpdateAssociationOptions) (*runtime.Poller[CommitmentPlansClientCreateOrUpdateAssociationResponse], error)` +- New function `*CommitmentPlansClient.BeginCreateOrUpdatePlan(context.Context, string, string, CommitmentPlan, *CommitmentPlansClientBeginCreateOrUpdatePlanOptions) (*runtime.Poller[CommitmentPlansClientCreateOrUpdatePlanResponse], error)` +- New function `*CommitmentPlansClient.BeginDeleteAssociation(context.Context, string, string, string, *CommitmentPlansClientBeginDeleteAssociationOptions) (*runtime.Poller[CommitmentPlansClientDeleteAssociationResponse], error)` +- New function `*CommitmentPlansClient.BeginDeletePlan(context.Context, string, string, *CommitmentPlansClientBeginDeletePlanOptions) (*runtime.Poller[CommitmentPlansClientDeletePlanResponse], error)` +- New function `*CommitmentPlansClient.GetAssociation(context.Context, string, string, string, *CommitmentPlansClientGetAssociationOptions) (CommitmentPlansClientGetAssociationResponse, error)` +- New function `*CommitmentPlansClient.GetPlan(context.Context, string, string, *CommitmentPlansClientGetPlanOptions) (CommitmentPlansClientGetPlanResponse, error)` +- New function `*CommitmentPlansClient.NewListAssociationsPager(string, string, *CommitmentPlansClientListAssociationsOptions) *runtime.Pager[CommitmentPlansClientListAssociationsResponse]` +- New function `*CommitmentPlansClient.NewListPlansByResourceGroupPager(string, *CommitmentPlansClientListPlansByResourceGroupOptions) *runtime.Pager[CommitmentPlansClientListPlansByResourceGroupResponse]` +- New function `*CommitmentPlansClient.NewListPlansBySubscriptionPager(*CommitmentPlansClientListPlansBySubscriptionOptions) *runtime.Pager[CommitmentPlansClientListPlansBySubscriptionResponse]` +- New function `*CommitmentPlansClient.BeginUpdatePlan(context.Context, string, string, PatchResourceTagsAndSKU, *CommitmentPlansClientBeginUpdatePlanOptions) (*runtime.Poller[CommitmentPlansClientUpdatePlanResponse], error)` +- New struct `CommitmentPlanAccountAssociation` +- New struct `CommitmentPlanAccountAssociationListResult` +- New struct `CommitmentPlanAccountAssociationProperties` +- New struct `CommitmentPlanAssociation` +- New struct `CommitmentPlansClientCreateOrUpdateAssociationResponse` +- New struct `CommitmentPlansClientCreateOrUpdatePlanResponse` +- New struct `CommitmentPlansClientDeleteAssociationResponse` +- New struct `CommitmentPlansClientDeletePlanResponse` +- New struct `CommitmentPlansClientListAssociationsResponse` +- New struct `CommitmentPlansClientListPlansByResourceGroupResponse` +- New struct `CommitmentPlansClientListPlansBySubscriptionResponse` +- New struct `CommitmentPlansClientUpdatePlanResponse` +- New struct `MultiRegionSettings` +- New struct `PatchResourceTags` +- New struct `PatchResourceTagsAndSKU` +- New struct `RegionSetting` +- New field `FinetuneCapabilities` in struct `AccountModel` +- New field `LifecycleStatus` in struct `AccountModel` +- New field `CommitmentPlanAssociations` in struct `AccountProperties` +- New field `Locations` in struct `AccountProperties` +- New field `Kind` in struct `CommitmentPlan` +- New field `Location` in struct `CommitmentPlan` +- New field `SKU` in struct `CommitmentPlan` +- New field `Tags` in struct `CommitmentPlan` +- New field `CommitmentPlanGUID` in struct `CommitmentPlanProperties` +- New field `ProvisioningState` in struct `CommitmentPlanProperties` + + ## 1.2.0 (2022-10-20) ### Features Added diff --git a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/accounts_client.go b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/accounts_client.go index ca8f68f9290f..965ba921e125 100644 --- a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/accounts_client.go +++ b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/accounts_client.go @@ -32,9 +32,9 @@ type AccountsClient struct { } // NewAccountsClient creates a new instance of AccountsClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewAccountsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*AccountsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -58,11 +58,12 @@ func NewAccountsClient(subscriptionID string, credential azcore.TokenCredential, // BeginCreate - Create Cognitive Services Account. Accounts is a resource group wide resource type. It holds the keys for // developer to access intelligent APIs. It's also the resource type for billing. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-10-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - The name of Cognitive Services account. -// account - The parameters to provide for the created account. -// options - AccountsClientBeginCreateOptions contains the optional parameters for the AccountsClient.BeginCreate method. +// +// Generated from API version 2022-12-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - The name of Cognitive Services account. +// - account - The parameters to provide for the created account. +// - options - AccountsClientBeginCreateOptions contains the optional parameters for the AccountsClient.BeginCreate method. func (client *AccountsClient) BeginCreate(ctx context.Context, resourceGroupName string, accountName string, account Account, options *AccountsClientBeginCreateOptions) (*runtime.Poller[AccountsClientCreateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.create(ctx, resourceGroupName, accountName, account, options) @@ -78,7 +79,8 @@ func (client *AccountsClient) BeginCreate(ctx context.Context, resourceGroupName // Create - Create Cognitive Services Account. Accounts is a resource group wide resource type. It holds the keys for developer // to access intelligent APIs. It's also the resource type for billing. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-10-01 +// +// Generated from API version 2022-12-01 func (client *AccountsClient) create(ctx context.Context, resourceGroupName string, accountName string, account Account, options *AccountsClientBeginCreateOptions) (*http.Response, error) { req, err := client.createCreateRequest(ctx, resourceGroupName, accountName, account, options) if err != nil { @@ -114,7 +116,7 @@ func (client *AccountsClient) createCreateRequest(ctx context.Context, resourceG return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-10-01") + reqQP.Set("api-version", "2022-12-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, account) @@ -122,10 +124,11 @@ func (client *AccountsClient) createCreateRequest(ctx context.Context, resourceG // BeginDelete - Deletes a Cognitive Services account from the resource group. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-10-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - The name of Cognitive Services account. -// options - AccountsClientBeginDeleteOptions contains the optional parameters for the AccountsClient.BeginDelete method. +// +// Generated from API version 2022-12-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - The name of Cognitive Services account. +// - options - AccountsClientBeginDeleteOptions contains the optional parameters for the AccountsClient.BeginDelete method. func (client *AccountsClient) BeginDelete(ctx context.Context, resourceGroupName string, accountName string, options *AccountsClientBeginDeleteOptions) (*runtime.Poller[AccountsClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, accountName, options) @@ -140,7 +143,8 @@ func (client *AccountsClient) BeginDelete(ctx context.Context, resourceGroupName // Delete - Deletes a Cognitive Services account from the resource group. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-10-01 +// +// Generated from API version 2022-12-01 func (client *AccountsClient) deleteOperation(ctx context.Context, resourceGroupName string, accountName string, options *AccountsClientBeginDeleteOptions) (*http.Response, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, accountName, options) if err != nil { @@ -176,7 +180,7 @@ func (client *AccountsClient) deleteCreateRequest(ctx context.Context, resourceG return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-10-01") + reqQP.Set("api-version", "2022-12-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -184,10 +188,11 @@ func (client *AccountsClient) deleteCreateRequest(ctx context.Context, resourceG // Get - Returns a Cognitive Services account specified by the parameters. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-10-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - The name of Cognitive Services account. -// options - AccountsClientGetOptions contains the optional parameters for the AccountsClient.Get method. +// +// Generated from API version 2022-12-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - The name of Cognitive Services account. +// - options - AccountsClientGetOptions contains the optional parameters for the AccountsClient.Get method. func (client *AccountsClient) Get(ctx context.Context, resourceGroupName string, accountName string, options *AccountsClientGetOptions) (AccountsClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, accountName, options) if err != nil { @@ -223,7 +228,7 @@ func (client *AccountsClient) getCreateRequest(ctx context.Context, resourceGrou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-10-01") + reqQP.Set("api-version", "2022-12-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -239,8 +244,9 @@ func (client *AccountsClient) getHandleResponse(resp *http.Response) (AccountsCl } // NewListPager - Returns all the resources of a particular type belonging to a subscription. -// Generated from API version 2022-10-01 -// options - AccountsClientListOptions contains the optional parameters for the AccountsClient.List method. +// +// Generated from API version 2022-12-01 +// - options - AccountsClientListOptions contains the optional parameters for the AccountsClient.NewListPager method. func (client *AccountsClient) NewListPager(options *AccountsClientListOptions) *runtime.Pager[AccountsClientListResponse] { return runtime.NewPager(runtime.PagingHandler[AccountsClientListResponse]{ More: func(page AccountsClientListResponse) bool { @@ -281,7 +287,7 @@ func (client *AccountsClient) listCreateRequest(ctx context.Context, options *Ac return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-10-01") + reqQP.Set("api-version", "2022-12-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -297,10 +303,11 @@ func (client *AccountsClient) listHandleResponse(resp *http.Response) (AccountsC } // NewListByResourceGroupPager - Returns all the resources of a particular type belonging to a resource group -// Generated from API version 2022-10-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// options - AccountsClientListByResourceGroupOptions contains the optional parameters for the AccountsClient.ListByResourceGroup -// method. +// +// Generated from API version 2022-12-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - options - AccountsClientListByResourceGroupOptions contains the optional parameters for the AccountsClient.NewListByResourceGroupPager +// method. func (client *AccountsClient) NewListByResourceGroupPager(resourceGroupName string, options *AccountsClientListByResourceGroupOptions) *runtime.Pager[AccountsClientListByResourceGroupResponse] { return runtime.NewPager(runtime.PagingHandler[AccountsClientListByResourceGroupResponse]{ More: func(page AccountsClientListByResourceGroupResponse) bool { @@ -345,7 +352,7 @@ func (client *AccountsClient) listByResourceGroupCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-10-01") + reqQP.Set("api-version", "2022-12-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -362,10 +369,11 @@ func (client *AccountsClient) listByResourceGroupHandleResponse(resp *http.Respo // ListKeys - Lists the account keys for the specified Cognitive Services account. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-10-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - The name of Cognitive Services account. -// options - AccountsClientListKeysOptions contains the optional parameters for the AccountsClient.ListKeys method. +// +// Generated from API version 2022-12-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - The name of Cognitive Services account. +// - options - AccountsClientListKeysOptions contains the optional parameters for the AccountsClient.ListKeys method. func (client *AccountsClient) ListKeys(ctx context.Context, resourceGroupName string, accountName string, options *AccountsClientListKeysOptions) (AccountsClientListKeysResponse, error) { req, err := client.listKeysCreateRequest(ctx, resourceGroupName, accountName, options) if err != nil { @@ -401,7 +409,7 @@ func (client *AccountsClient) listKeysCreateRequest(ctx context.Context, resourc return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-10-01") + reqQP.Set("api-version", "2022-12-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -417,10 +425,11 @@ func (client *AccountsClient) listKeysHandleResponse(resp *http.Response) (Accou } // NewListModelsPager - List available Models for the requested Cognitive Services account -// Generated from API version 2022-10-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - The name of Cognitive Services account. -// options - AccountsClientListModelsOptions contains the optional parameters for the AccountsClient.ListModels method. +// +// Generated from API version 2022-12-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - The name of Cognitive Services account. +// - options - AccountsClientListModelsOptions contains the optional parameters for the AccountsClient.NewListModelsPager method. func (client *AccountsClient) NewListModelsPager(resourceGroupName string, accountName string, options *AccountsClientListModelsOptions) *runtime.Pager[AccountsClientListModelsResponse] { return runtime.NewPager(runtime.PagingHandler[AccountsClientListModelsResponse]{ More: func(page AccountsClientListModelsResponse) bool { @@ -469,7 +478,7 @@ func (client *AccountsClient) listModelsCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-10-01") + reqQP.Set("api-version", "2022-12-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -486,10 +495,11 @@ func (client *AccountsClient) listModelsHandleResponse(resp *http.Response) (Acc // ListSKUs - List available SKUs for the requested Cognitive Services account // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-10-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - The name of Cognitive Services account. -// options - AccountsClientListSKUsOptions contains the optional parameters for the AccountsClient.ListSKUs method. +// +// Generated from API version 2022-12-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - The name of Cognitive Services account. +// - options - AccountsClientListSKUsOptions contains the optional parameters for the AccountsClient.ListSKUs method. func (client *AccountsClient) ListSKUs(ctx context.Context, resourceGroupName string, accountName string, options *AccountsClientListSKUsOptions) (AccountsClientListSKUsResponse, error) { req, err := client.listSKUsCreateRequest(ctx, resourceGroupName, accountName, options) if err != nil { @@ -525,7 +535,7 @@ func (client *AccountsClient) listSKUsCreateRequest(ctx context.Context, resourc return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-10-01") + reqQP.Set("api-version", "2022-12-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -542,10 +552,11 @@ func (client *AccountsClient) listSKUsHandleResponse(resp *http.Response) (Accou // ListUsages - Get usages for the requested Cognitive Services account // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-10-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - The name of Cognitive Services account. -// options - AccountsClientListUsagesOptions contains the optional parameters for the AccountsClient.ListUsages method. +// +// Generated from API version 2022-12-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - The name of Cognitive Services account. +// - options - AccountsClientListUsagesOptions contains the optional parameters for the AccountsClient.ListUsages method. func (client *AccountsClient) ListUsages(ctx context.Context, resourceGroupName string, accountName string, options *AccountsClientListUsagesOptions) (AccountsClientListUsagesResponse, error) { req, err := client.listUsagesCreateRequest(ctx, resourceGroupName, accountName, options) if err != nil { @@ -581,7 +592,7 @@ func (client *AccountsClient) listUsagesCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-10-01") + reqQP.Set("api-version", "2022-12-01") if options != nil && options.Filter != nil { reqQP.Set("$filter", *options.Filter) } @@ -601,11 +612,12 @@ func (client *AccountsClient) listUsagesHandleResponse(resp *http.Response) (Acc // RegenerateKey - Regenerates the specified account key for the specified Cognitive Services account. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-10-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - The name of Cognitive Services account. -// parameters - regenerate key parameters. -// options - AccountsClientRegenerateKeyOptions contains the optional parameters for the AccountsClient.RegenerateKey method. +// +// Generated from API version 2022-12-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - The name of Cognitive Services account. +// - parameters - regenerate key parameters. +// - options - AccountsClientRegenerateKeyOptions contains the optional parameters for the AccountsClient.RegenerateKey method. func (client *AccountsClient) RegenerateKey(ctx context.Context, resourceGroupName string, accountName string, parameters RegenerateKeyParameters, options *AccountsClientRegenerateKeyOptions) (AccountsClientRegenerateKeyResponse, error) { req, err := client.regenerateKeyCreateRequest(ctx, resourceGroupName, accountName, parameters, options) if err != nil { @@ -641,7 +653,7 @@ func (client *AccountsClient) regenerateKeyCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-10-01") + reqQP.Set("api-version", "2022-12-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, parameters) @@ -658,11 +670,12 @@ func (client *AccountsClient) regenerateKeyHandleResponse(resp *http.Response) ( // BeginUpdate - Updates a Cognitive Services account // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-10-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - The name of Cognitive Services account. -// account - The parameters to provide for the created account. -// options - AccountsClientBeginUpdateOptions contains the optional parameters for the AccountsClient.BeginUpdate method. +// +// Generated from API version 2022-12-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - The name of Cognitive Services account. +// - account - The parameters to provide for the created account. +// - options - AccountsClientBeginUpdateOptions contains the optional parameters for the AccountsClient.BeginUpdate method. func (client *AccountsClient) BeginUpdate(ctx context.Context, resourceGroupName string, accountName string, account Account, options *AccountsClientBeginUpdateOptions) (*runtime.Poller[AccountsClientUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.update(ctx, resourceGroupName, accountName, account, options) @@ -677,7 +690,8 @@ func (client *AccountsClient) BeginUpdate(ctx context.Context, resourceGroupName // Update - Updates a Cognitive Services account // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-10-01 +// +// Generated from API version 2022-12-01 func (client *AccountsClient) update(ctx context.Context, resourceGroupName string, accountName string, account Account, options *AccountsClientBeginUpdateOptions) (*http.Response, error) { req, err := client.updateCreateRequest(ctx, resourceGroupName, accountName, account, options) if err != nil { @@ -713,7 +727,7 @@ func (client *AccountsClient) updateCreateRequest(ctx context.Context, resourceG return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-10-01") + reqQP.Set("api-version", "2022-12-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, account) diff --git a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/accounts_client_example_test.go b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/accounts_client_example_test.go index fe80c08d7e37..0283a181bc23 100644 --- a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/accounts_client_example_test.go +++ b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/accounts_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armcognitiveservices_test @@ -17,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cognitiveservices/armcognitiveservices" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-10-01/examples/CreateAccount.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-12-01/examples/CreateAccount.json func ExampleAccountsClient_BeginCreate_createAccount() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -59,11 +60,44 @@ func ExampleAccountsClient_BeginCreate_createAccount() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.Account = armcognitiveservices.Account{ + // Name: to.Ptr("testCreate1"), + // Type: to.Ptr("Microsoft.CognitiveServices/accounts"), + // ID: to.Ptr("/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.CognitiveServices/accounts/testCreate1"), + // Etag: to.Ptr("W/\"datetime'2017-04-10T08%3A00%3A05.445595Z'\""), + // Identity: &armcognitiveservices.Identity{ + // Type: to.Ptr(armcognitiveservices.ResourceIdentityTypeSystemAssigned), + // PrincipalID: to.Ptr("b5cf119e-a5c2-42c7-802f-592e0efb169f"), + // TenantID: to.Ptr("72f988bf-86f1-41af-91ab-2d7cd011db47"), + // }, + // Kind: to.Ptr("Emotion"), + // Location: to.Ptr("West US"), + // Properties: &armcognitiveservices.AccountProperties{ + // Encryption: &armcognitiveservices.Encryption{ + // KeySource: to.Ptr(armcognitiveservices.KeySourceMicrosoftKeyVault), + // KeyVaultProperties: &armcognitiveservices.KeyVaultProperties{ + // KeyName: to.Ptr("FakeKeyName"), + // KeyVaultURI: to.Ptr("https://pltfrmscrts-use-pc-dev.vault.azure.net/"), + // KeyVersion: to.Ptr("891CF236-D241-4738-9462-D506AF493DFA"), + // }, + // }, + // Endpoint: to.Ptr("https://westus.api.cognitive.microsoft.com/emotion/v1.0"), + // ProvisioningState: to.Ptr(armcognitiveservices.ProvisioningStateSucceeded), + // UserOwnedStorage: []*armcognitiveservices.UserOwnedStorage{ + // { + // ResourceID: to.Ptr("/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount"), + // }}, + // }, + // SKU: &armcognitiveservices.SKU{ + // Name: to.Ptr("S0"), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-10-01/examples/CreateAccountMin.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-12-01/examples/CreateAccountMin.json func ExampleAccountsClient_BeginCreate_createAccountMin() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -92,11 +126,32 @@ func ExampleAccountsClient_BeginCreate_createAccountMin() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.Account = armcognitiveservices.Account{ + // Name: to.Ptr("testCreate1"), + // Type: to.Ptr("Microsoft.CognitiveServices/accounts"), + // ID: to.Ptr("/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.CognitiveServices/accounts/testCreate1"), + // Etag: to.Ptr("W/\"datetime'2017-04-10T08%3A00%3A05.445595Z'\""), + // Identity: &armcognitiveservices.Identity{ + // Type: to.Ptr(armcognitiveservices.ResourceIdentityTypeSystemAssigned), + // PrincipalID: to.Ptr("b5cf119e-a5c2-42c7-802f-592e0efb169f"), + // TenantID: to.Ptr("72f988bf-86f1-41af-91ab-2d7cd011db47"), + // }, + // Kind: to.Ptr("Emotion"), + // Location: to.Ptr("West US"), + // Properties: &armcognitiveservices.AccountProperties{ + // Endpoint: to.Ptr("https://westus.api.cognitive.microsoft.com/emotion/v1.0"), + // ProvisioningState: to.Ptr(armcognitiveservices.ProvisioningStateSucceeded), + // }, + // SKU: &armcognitiveservices.SKU{ + // Name: to.Ptr("S0"), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-10-01/examples/UpdateAccount.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-12-01/examples/UpdateAccount.json func ExampleAccountsClient_BeginUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -120,11 +175,27 @@ func ExampleAccountsClient_BeginUpdate() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.Account = armcognitiveservices.Account{ + // Name: to.Ptr("bingSearch"), + // Type: to.Ptr("Microsoft.CognitiveServices/accounts"), + // ID: to.Ptr("/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/bvttest/providers/Microsoft.CognitiveServices/accounts/bingSearch"), + // Etag: to.Ptr("W/\"datetime'2017-04-10T07%3A46%3A21.5618831Z'\""), + // Kind: to.Ptr("Bing.Search"), + // Location: to.Ptr("global"), + // Properties: &armcognitiveservices.AccountProperties{ + // Endpoint: to.Ptr("https://api.cognitive.microsoft.com/bing/v5.0"), + // ProvisioningState: to.Ptr(armcognitiveservices.ProvisioningStateSucceeded), + // }, + // SKU: &armcognitiveservices.SKU{ + // Name: to.Ptr("S2"), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-10-01/examples/DeleteAccount.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-12-01/examples/DeleteAccount.json func ExampleAccountsClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -145,7 +216,7 @@ func ExampleAccountsClient_BeginDelete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-10-01/examples/GetAccount.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-12-01/examples/GetAccount.json func ExampleAccountsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -160,11 +231,31 @@ func ExampleAccountsClient_Get() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.Account = armcognitiveservices.Account{ + // Name: to.Ptr("myAccount"), + // Type: to.Ptr("Microsoft.CognitiveServices/accounts"), + // ID: to.Ptr("/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.CognitiveServices/accounts/myAccount"), + // Etag: to.Ptr("W/\"datetime'2017-04-10T04%3A42%3A19.7067387Z'\""), + // Kind: to.Ptr("Emotion"), + // Location: to.Ptr("westus"), + // Properties: &armcognitiveservices.AccountProperties{ + // Endpoint: to.Ptr("https://westus.api.cognitive.microsoft.com/emotion/v1.0"), + // ProvisioningState: to.Ptr(armcognitiveservices.ProvisioningStateSucceeded), + // }, + // SKU: &armcognitiveservices.SKU{ + // Name: to.Ptr("F0"), + // }, + // Tags: map[string]*string{ + // "ExpiredDate": to.Ptr("2017/09/01"), + // "Owner": to.Ptr("felixwa"), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-10-01/examples/ListAccountsByResourceGroup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-12-01/examples/ListAccountsByResourceGroup.json func ExampleAccountsClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -177,18 +268,58 @@ func ExampleAccountsClient_NewListByResourceGroupPager() { } pager := client.NewListByResourceGroupPager("myResourceGroup", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.AccountListResult = armcognitiveservices.AccountListResult{ + // Value: []*armcognitiveservices.Account{ + // { + // Name: to.Ptr("myAccount"), + // Type: to.Ptr("Microsoft.CognitiveServices/accounts"), + // ID: to.Ptr("/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.CognitiveServices/accounts/myAccount"), + // Etag: to.Ptr("W/\"datetime'2017-04-10T04%3A42%3A19.7067387Z'\""), + // Kind: to.Ptr("Emotion"), + // Location: to.Ptr("westus"), + // Properties: &armcognitiveservices.AccountProperties{ + // Endpoint: to.Ptr("https://westus.api.cognitive.microsoft.com/emotion/v1.0"), + // ProvisioningState: to.Ptr(armcognitiveservices.ProvisioningStateSucceeded), + // }, + // SKU: &armcognitiveservices.SKU{ + // Name: to.Ptr("F0"), + // }, + // Tags: map[string]*string{ + // "ExpiredDate": to.Ptr("2017/09/01"), + // "Owner": to.Ptr("felixwa"), + // }, + // }, + // { + // Name: to.Ptr("TestPropertyWU2"), + // Type: to.Ptr("Microsoft.CognitiveServices/accounts"), + // ID: to.Ptr("/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.CognitiveServices/accounts/TestPropertyWU2"), + // Etag: to.Ptr("W/\"datetime'2017-04-07T04%3A32%3A38.9187216Z'\""), + // Kind: to.Ptr("Face"), + // Location: to.Ptr("westus"), + // Properties: &armcognitiveservices.AccountProperties{ + // Endpoint: to.Ptr("https://westus.api.cognitive.microsoft.com/face/v1.0"), + // ProvisioningState: to.Ptr(armcognitiveservices.ProvisioningStateSucceeded), + // }, + // SKU: &armcognitiveservices.SKU{ + // Name: to.Ptr("S0"), + // }, + // Tags: map[string]*string{ + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-10-01/examples/ListAccountsBySubscription.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-12-01/examples/ListAccountsBySubscription.json func ExampleAccountsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -201,18 +332,85 @@ func ExampleAccountsClient_NewListPager() { } pager := client.NewListPager(nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.AccountListResult = armcognitiveservices.AccountListResult{ + // Value: []*armcognitiveservices.Account{ + // { + // Name: to.Ptr("bingSearch"), + // Type: to.Ptr("Microsoft.CognitiveServices/accounts"), + // ID: to.Ptr("/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/bvttest/providers/Microsoft.CognitiveServices/accounts/bingSearch"), + // Etag: to.Ptr("W/\"datetime'2017-03-27T11%3A19%3A08.762494Z'\""), + // Kind: to.Ptr("Bing.Search"), + // Location: to.Ptr("global"), + // Properties: &armcognitiveservices.AccountProperties{ + // Endpoint: to.Ptr("https://api.cognitive.microsoft.com/bing/v5.0"), + // ProvisioningState: to.Ptr(armcognitiveservices.ProvisioningStateSucceeded), + // }, + // SKU: &armcognitiveservices.SKU{ + // Name: to.Ptr("S1"), + // }, + // }, + // { + // Name: to.Ptr("CrisProd"), + // Type: to.Ptr("Microsoft.CognitiveServices/accounts"), + // ID: to.Ptr("/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/bvttest/providers/Microsoft.CognitiveServices/accounts/CrisProd"), + // Etag: to.Ptr("W/\"datetime'2017-03-31T08%3A57%3A07.4499566Z'\""), + // Kind: to.Ptr("CRIS"), + // Location: to.Ptr("westus"), + // Properties: &armcognitiveservices.AccountProperties{ + // Endpoint: to.Ptr("https://westus.api.cognitive.microsoft.com/sts/v1.0"), + // ProvisioningState: to.Ptr(armcognitiveservices.ProvisioningStateSucceeded), + // }, + // SKU: &armcognitiveservices.SKU{ + // Name: to.Ptr("S0"), + // }, + // Tags: map[string]*string{ + // "can't delete it successfully": to.Ptr("v-yunjin"), + // }, + // }, + // { + // Name: to.Ptr("rayrptest0308"), + // Type: to.Ptr("Microsoft.CognitiveServices/accounts"), + // ID: to.Ptr("/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/bvttest/providers/Microsoft.CognitiveServices/accounts/rayrptest0308"), + // Etag: to.Ptr("W/\"datetime'2017-03-27T11%3A15%3A23.5232645Z'\""), + // Kind: to.Ptr("Face"), + // Location: to.Ptr("westus"), + // Properties: &armcognitiveservices.AccountProperties{ + // Endpoint: to.Ptr("https://westus.api.cognitive.microsoft.com/face/v1.0"), + // ProvisioningState: to.Ptr(armcognitiveservices.ProvisioningStateSucceeded), + // }, + // SKU: &armcognitiveservices.SKU{ + // Name: to.Ptr("S0"), + // }, + // }, + // { + // Name: to.Ptr("raytest02"), + // Type: to.Ptr("Microsoft.CognitiveServices/accounts"), + // ID: to.Ptr("/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/bvttest/providers/Microsoft.CognitiveServices/accounts/raytest02"), + // Etag: to.Ptr("W/\"datetime'2017-04-04T02%3A07%3A07.3957572Z'\""), + // Kind: to.Ptr("Emotion"), + // Location: to.Ptr("westus"), + // Properties: &armcognitiveservices.AccountProperties{ + // Endpoint: to.Ptr("https://westus.api.cognitive.microsoft.com/emotion/v1.0"), + // ProvisioningState: to.Ptr(armcognitiveservices.ProvisioningStateSucceeded), + // }, + // SKU: &armcognitiveservices.SKU{ + // Name: to.Ptr("S0"), + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-10-01/examples/ListKeys.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-12-01/examples/ListKeys.json func ExampleAccountsClient_ListKeys() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -227,11 +425,16 @@ func ExampleAccountsClient_ListKeys() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.APIKeys = armcognitiveservices.APIKeys{ + // Key1: to.Ptr("KEY1"), + // Key2: to.Ptr("KEY2"), + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-10-01/examples/RegenerateKey.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-12-01/examples/RegenerateKey.json func ExampleAccountsClient_RegenerateKey() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -248,11 +451,16 @@ func ExampleAccountsClient_RegenerateKey() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.APIKeys = armcognitiveservices.APIKeys{ + // Key1: to.Ptr("KEY1"), + // Key2: to.Ptr("KEY2"), + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-10-01/examples/ListSkus.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-12-01/examples/ListSkus.json func ExampleAccountsClient_ListSKUs() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -267,11 +475,29 @@ func ExampleAccountsClient_ListSKUs() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.AccountSKUListResult = armcognitiveservices.AccountSKUListResult{ + // Value: []*armcognitiveservices.AccountSKU{ + // { + // ResourceType: to.Ptr("Microsoft.CognitiveServices/accounts"), + // SKU: &armcognitiveservices.SKU{ + // Name: to.Ptr("F0"), + // Tier: to.Ptr(armcognitiveservices.SKUTierFree), + // }, + // }, + // { + // ResourceType: to.Ptr("Microsoft.CognitiveServices/accounts"), + // SKU: &armcognitiveservices.SKU{ + // Name: to.Ptr("S0"), + // Tier: to.Ptr(armcognitiveservices.SKUTierStandard), + // }, + // }}, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-10-01/examples/GetUsages.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-12-01/examples/GetUsages.json func ExampleAccountsClient_ListUsages() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -286,11 +512,27 @@ func ExampleAccountsClient_ListUsages() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.UsageListResult = armcognitiveservices.UsageListResult{ + // Value: []*armcognitiveservices.Usage{ + // { + // Name: &armcognitiveservices.MetricName{ + // LocalizedValue: to.Ptr("Face.Transactions"), + // Value: to.Ptr("Face.Transactions"), + // }, + // CurrentValue: to.Ptr[float64](3), + // Limit: to.Ptr[float64](30000), + // NextResetTime: to.Ptr("2018-03-28T09:33:51Z"), + // QuotaPeriod: to.Ptr("30.00:00:00"), + // Status: to.Ptr(armcognitiveservices.QuotaUsageStatusIncluded), + // Unit: to.Ptr(armcognitiveservices.UnitTypeCount), + // }}, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-10-01/examples/ListAccountModels.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-12-01/examples/ListAccountModels.json func ExampleAccountsClient_NewListModelsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -303,13 +545,48 @@ func ExampleAccountsClient_NewListModelsPager() { } pager := client.NewListModelsPager("resourceGroupName", "accountName", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.AccountModelListResult = armcognitiveservices.AccountModelListResult{ + // Value: []*armcognitiveservices.AccountModel{ + // { + // Name: to.Ptr("ada.1"), + // Format: to.Ptr("OpenAI"), + // Version: to.Ptr("1"), + // BaseModel: &armcognitiveservices.DeploymentModel{ + // Name: to.Ptr("ada"), + // Format: to.Ptr("OpenAI"), + // Version: to.Ptr("1"), + // }, + // Capabilities: map[string]*string{ + // "fineTune": to.Ptr("true"), + // }, + // Deprecation: &armcognitiveservices.ModelDeprecationInfo{ + // FineTune: to.Ptr("2024-01-01T00:00:00Z"), + // Inference: to.Ptr("2024-01-01T00:00:00Z"), + // }, + // MaxCapacity: to.Ptr[int32](10), + // }, + // { + // Name: to.Ptr("davinci"), + // Format: to.Ptr("OpenAI"), + // Version: to.Ptr("1"), + // Capabilities: map[string]*string{ + // "fineTune": to.Ptr("true"), + // }, + // Deprecation: &armcognitiveservices.ModelDeprecationInfo{ + // FineTune: to.Ptr("2024-01-01T00:00:00Z"), + // Inference: to.Ptr("2024-01-01T00:00:00Z"), + // }, + // MaxCapacity: to.Ptr[int32](10), + // }}, + // } } } diff --git a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/autorest.md b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/autorest.md index 3779a2c906ca..5b25630ecfd7 100644 --- a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/autorest.md +++ b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/autorest.md @@ -5,8 +5,8 @@ ``` yaml azure-arm: true require: -- https://github.com/Azure/azure-rest-api-specs/blob/ac4677cd31042657c21bf40e0506c7c2752bbe70/specification/cognitiveservices/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/ac4677cd31042657c21bf40e0506c7c2752bbe70/specification/cognitiveservices/resource-manager/readme.go.md +- https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/cognitiveservices/resource-manager/readme.md +- https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/cognitiveservices/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 1.2.0 +module-version: 1.3.0 ``` \ No newline at end of file diff --git a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/commitmentplans_client.go b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/commitmentplans_client.go index 40862f24cd71..7ff7accc5c4d 100644 --- a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/commitmentplans_client.go +++ b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/commitmentplans_client.go @@ -32,9 +32,9 @@ type CommitmentPlansClient struct { } // NewCommitmentPlansClient creates a new instance of CommitmentPlansClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewCommitmentPlansClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*CommitmentPlansClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,13 +57,14 @@ func NewCommitmentPlansClient(subscriptionID string, credential azcore.TokenCred // CreateOrUpdate - Update the state of specified commitmentPlans associated with the Cognitive Services account. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-10-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - The name of Cognitive Services account. -// commitmentPlanName - The name of the commitmentPlan associated with the Cognitive Services Account -// commitmentPlan - The commitmentPlan properties. -// options - CommitmentPlansClientCreateOrUpdateOptions contains the optional parameters for the CommitmentPlansClient.CreateOrUpdate -// method. +// +// Generated from API version 2022-12-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - The name of Cognitive Services account. +// - commitmentPlanName - The name of the commitmentPlan associated with the Cognitive Services Account +// - commitmentPlan - The commitmentPlan properties. +// - options - CommitmentPlansClientCreateOrUpdateOptions contains the optional parameters for the CommitmentPlansClient.CreateOrUpdate +// method. func (client *CommitmentPlansClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, accountName string, commitmentPlanName string, commitmentPlan CommitmentPlan, options *CommitmentPlansClientCreateOrUpdateOptions) (CommitmentPlansClientCreateOrUpdateResponse, error) { req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, accountName, commitmentPlanName, commitmentPlan, options) if err != nil { @@ -103,7 +104,7 @@ func (client *CommitmentPlansClient) createOrUpdateCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-10-01") + reqQP.Set("api-version", "2022-12-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, commitmentPlan) @@ -118,14 +119,156 @@ func (client *CommitmentPlansClient) createOrUpdateHandleResponse(resp *http.Res return result, nil } +// BeginCreateOrUpdateAssociation - Create or update the association of the Cognitive Services commitment plan. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-12-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - commitmentPlanName - The name of the commitmentPlan associated with the Cognitive Services Account +// - commitmentPlanAssociationName - The name of the commitment plan association with the Cognitive Services Account +// - association - The commitmentPlan properties. +// - options - CommitmentPlansClientBeginCreateOrUpdateAssociationOptions contains the optional parameters for the CommitmentPlansClient.BeginCreateOrUpdateAssociation +// method. +func (client *CommitmentPlansClient) BeginCreateOrUpdateAssociation(ctx context.Context, resourceGroupName string, commitmentPlanName string, commitmentPlanAssociationName string, association CommitmentPlanAccountAssociation, options *CommitmentPlansClientBeginCreateOrUpdateAssociationOptions) (*runtime.Poller[CommitmentPlansClientCreateOrUpdateAssociationResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.createOrUpdateAssociation(ctx, resourceGroupName, commitmentPlanName, commitmentPlanAssociationName, association, options) + if err != nil { + return nil, err + } + return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[CommitmentPlansClientCreateOrUpdateAssociationResponse]{ + FinalStateVia: runtime.FinalStateViaAzureAsyncOp, + }) + } else { + return runtime.NewPollerFromResumeToken[CommitmentPlansClientCreateOrUpdateAssociationResponse](options.ResumeToken, client.pl, nil) + } +} + +// CreateOrUpdateAssociation - Create or update the association of the Cognitive Services commitment plan. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-12-01 +func (client *CommitmentPlansClient) createOrUpdateAssociation(ctx context.Context, resourceGroupName string, commitmentPlanName string, commitmentPlanAssociationName string, association CommitmentPlanAccountAssociation, options *CommitmentPlansClientBeginCreateOrUpdateAssociationOptions) (*http.Response, error) { + req, err := client.createOrUpdateAssociationCreateRequest(ctx, resourceGroupName, commitmentPlanName, commitmentPlanAssociationName, association, options) + if err != nil { + return nil, err + } + resp, err := client.pl.Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusCreated) { + return nil, runtime.NewResponseError(resp) + } + return resp, nil +} + +// createOrUpdateAssociationCreateRequest creates the CreateOrUpdateAssociation request. +func (client *CommitmentPlansClient) createOrUpdateAssociationCreateRequest(ctx context.Context, resourceGroupName string, commitmentPlanName string, commitmentPlanAssociationName string, association CommitmentPlanAccountAssociation, options *CommitmentPlansClientBeginCreateOrUpdateAssociationOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/commitmentPlans/{commitmentPlanName}/accountAssociations/{commitmentPlanAssociationName}" + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if commitmentPlanName == "" { + return nil, errors.New("parameter commitmentPlanName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{commitmentPlanName}", url.PathEscape(commitmentPlanName)) + if commitmentPlanAssociationName == "" { + return nil, errors.New("parameter commitmentPlanAssociationName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{commitmentPlanAssociationName}", url.PathEscape(commitmentPlanAssociationName)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-12-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, runtime.MarshalAsJSON(req, association) +} + +// BeginCreateOrUpdatePlan - Create Cognitive Services commitment plan. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-12-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - commitmentPlanName - The name of the commitmentPlan associated with the Cognitive Services Account +// - commitmentPlan - The parameters to provide for the created commitment plan. +// - options - CommitmentPlansClientBeginCreateOrUpdatePlanOptions contains the optional parameters for the CommitmentPlansClient.BeginCreateOrUpdatePlan +// method. +func (client *CommitmentPlansClient) BeginCreateOrUpdatePlan(ctx context.Context, resourceGroupName string, commitmentPlanName string, commitmentPlan CommitmentPlan, options *CommitmentPlansClientBeginCreateOrUpdatePlanOptions) (*runtime.Poller[CommitmentPlansClientCreateOrUpdatePlanResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.createOrUpdatePlan(ctx, resourceGroupName, commitmentPlanName, commitmentPlan, options) + if err != nil { + return nil, err + } + return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[CommitmentPlansClientCreateOrUpdatePlanResponse]{ + FinalStateVia: runtime.FinalStateViaAzureAsyncOp, + }) + } else { + return runtime.NewPollerFromResumeToken[CommitmentPlansClientCreateOrUpdatePlanResponse](options.ResumeToken, client.pl, nil) + } +} + +// CreateOrUpdatePlan - Create Cognitive Services commitment plan. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-12-01 +func (client *CommitmentPlansClient) createOrUpdatePlan(ctx context.Context, resourceGroupName string, commitmentPlanName string, commitmentPlan CommitmentPlan, options *CommitmentPlansClientBeginCreateOrUpdatePlanOptions) (*http.Response, error) { + req, err := client.createOrUpdatePlanCreateRequest(ctx, resourceGroupName, commitmentPlanName, commitmentPlan, options) + if err != nil { + return nil, err + } + resp, err := client.pl.Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusCreated) { + return nil, runtime.NewResponseError(resp) + } + return resp, nil +} + +// createOrUpdatePlanCreateRequest creates the CreateOrUpdatePlan request. +func (client *CommitmentPlansClient) createOrUpdatePlanCreateRequest(ctx context.Context, resourceGroupName string, commitmentPlanName string, commitmentPlan CommitmentPlan, options *CommitmentPlansClientBeginCreateOrUpdatePlanOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/commitmentPlans/{commitmentPlanName}" + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if commitmentPlanName == "" { + return nil, errors.New("parameter commitmentPlanName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{commitmentPlanName}", url.PathEscape(commitmentPlanName)) + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-12-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, runtime.MarshalAsJSON(req, commitmentPlan) +} + // BeginDelete - Deletes the specified commitmentPlan associated with the Cognitive Services account. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-10-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - The name of Cognitive Services account. -// commitmentPlanName - The name of the commitmentPlan associated with the Cognitive Services Account -// options - CommitmentPlansClientBeginDeleteOptions contains the optional parameters for the CommitmentPlansClient.BeginDelete -// method. +// +// Generated from API version 2022-12-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - The name of Cognitive Services account. +// - commitmentPlanName - The name of the commitmentPlan associated with the Cognitive Services Account +// - options - CommitmentPlansClientBeginDeleteOptions contains the optional parameters for the CommitmentPlansClient.BeginDelete +// method. func (client *CommitmentPlansClient) BeginDelete(ctx context.Context, resourceGroupName string, accountName string, commitmentPlanName string, options *CommitmentPlansClientBeginDeleteOptions) (*runtime.Poller[CommitmentPlansClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, accountName, commitmentPlanName, options) @@ -140,7 +283,8 @@ func (client *CommitmentPlansClient) BeginDelete(ctx context.Context, resourceGr // Delete - Deletes the specified commitmentPlan associated with the Cognitive Services account. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-10-01 +// +// Generated from API version 2022-12-01 func (client *CommitmentPlansClient) deleteOperation(ctx context.Context, resourceGroupName string, accountName string, commitmentPlanName string, options *CommitmentPlansClientBeginDeleteOptions) (*http.Response, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, accountName, commitmentPlanName, options) if err != nil { @@ -180,7 +324,146 @@ func (client *CommitmentPlansClient) deleteCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-10-01") + reqQP.Set("api-version", "2022-12-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// BeginDeleteAssociation - Deletes the association of the Cognitive Services commitment plan. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-12-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - commitmentPlanName - The name of the commitmentPlan associated with the Cognitive Services Account +// - commitmentPlanAssociationName - The name of the commitment plan association with the Cognitive Services Account +// - options - CommitmentPlansClientBeginDeleteAssociationOptions contains the optional parameters for the CommitmentPlansClient.BeginDeleteAssociation +// method. +func (client *CommitmentPlansClient) BeginDeleteAssociation(ctx context.Context, resourceGroupName string, commitmentPlanName string, commitmentPlanAssociationName string, options *CommitmentPlansClientBeginDeleteAssociationOptions) (*runtime.Poller[CommitmentPlansClientDeleteAssociationResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.deleteAssociation(ctx, resourceGroupName, commitmentPlanName, commitmentPlanAssociationName, options) + if err != nil { + return nil, err + } + return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[CommitmentPlansClientDeleteAssociationResponse]{ + FinalStateVia: runtime.FinalStateViaLocation, + }) + } else { + return runtime.NewPollerFromResumeToken[CommitmentPlansClientDeleteAssociationResponse](options.ResumeToken, client.pl, nil) + } +} + +// DeleteAssociation - Deletes the association of the Cognitive Services commitment plan. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-12-01 +func (client *CommitmentPlansClient) deleteAssociation(ctx context.Context, resourceGroupName string, commitmentPlanName string, commitmentPlanAssociationName string, options *CommitmentPlansClientBeginDeleteAssociationOptions) (*http.Response, error) { + req, err := client.deleteAssociationCreateRequest(ctx, resourceGroupName, commitmentPlanName, commitmentPlanAssociationName, options) + if err != nil { + return nil, err + } + resp, err := client.pl.Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { + return nil, runtime.NewResponseError(resp) + } + return resp, nil +} + +// deleteAssociationCreateRequest creates the DeleteAssociation request. +func (client *CommitmentPlansClient) deleteAssociationCreateRequest(ctx context.Context, resourceGroupName string, commitmentPlanName string, commitmentPlanAssociationName string, options *CommitmentPlansClientBeginDeleteAssociationOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/commitmentPlans/{commitmentPlanName}/accountAssociations/{commitmentPlanAssociationName}" + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if commitmentPlanName == "" { + return nil, errors.New("parameter commitmentPlanName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{commitmentPlanName}", url.PathEscape(commitmentPlanName)) + if commitmentPlanAssociationName == "" { + return nil, errors.New("parameter commitmentPlanAssociationName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{commitmentPlanAssociationName}", url.PathEscape(commitmentPlanAssociationName)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-12-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// BeginDeletePlan - Deletes a Cognitive Services commitment plan from the resource group. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-12-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - commitmentPlanName - The name of the commitmentPlan associated with the Cognitive Services Account +// - options - CommitmentPlansClientBeginDeletePlanOptions contains the optional parameters for the CommitmentPlansClient.BeginDeletePlan +// method. +func (client *CommitmentPlansClient) BeginDeletePlan(ctx context.Context, resourceGroupName string, commitmentPlanName string, options *CommitmentPlansClientBeginDeletePlanOptions) (*runtime.Poller[CommitmentPlansClientDeletePlanResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.deletePlan(ctx, resourceGroupName, commitmentPlanName, options) + if err != nil { + return nil, err + } + return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[CommitmentPlansClientDeletePlanResponse]{ + FinalStateVia: runtime.FinalStateViaLocation, + }) + } else { + return runtime.NewPollerFromResumeToken[CommitmentPlansClientDeletePlanResponse](options.ResumeToken, client.pl, nil) + } +} + +// DeletePlan - Deletes a Cognitive Services commitment plan from the resource group. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-12-01 +func (client *CommitmentPlansClient) deletePlan(ctx context.Context, resourceGroupName string, commitmentPlanName string, options *CommitmentPlansClientBeginDeletePlanOptions) (*http.Response, error) { + req, err := client.deletePlanCreateRequest(ctx, resourceGroupName, commitmentPlanName, options) + if err != nil { + return nil, err + } + resp, err := client.pl.Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { + return nil, runtime.NewResponseError(resp) + } + return resp, nil +} + +// deletePlanCreateRequest creates the DeletePlan request. +func (client *CommitmentPlansClient) deletePlanCreateRequest(ctx context.Context, resourceGroupName string, commitmentPlanName string, options *CommitmentPlansClientBeginDeletePlanOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/commitmentPlans/{commitmentPlanName}" + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if commitmentPlanName == "" { + return nil, errors.New("parameter commitmentPlanName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{commitmentPlanName}", url.PathEscape(commitmentPlanName)) + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-12-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -188,11 +471,12 @@ func (client *CommitmentPlansClient) deleteCreateRequest(ctx context.Context, re // Get - Gets the specified commitmentPlans associated with the Cognitive Services account. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-10-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - The name of Cognitive Services account. -// commitmentPlanName - The name of the commitmentPlan associated with the Cognitive Services Account -// options - CommitmentPlansClientGetOptions contains the optional parameters for the CommitmentPlansClient.Get method. +// +// Generated from API version 2022-12-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - The name of Cognitive Services account. +// - commitmentPlanName - The name of the commitmentPlan associated with the Cognitive Services Account +// - options - CommitmentPlansClientGetOptions contains the optional parameters for the CommitmentPlansClient.Get method. func (client *CommitmentPlansClient) Get(ctx context.Context, resourceGroupName string, accountName string, commitmentPlanName string, options *CommitmentPlansClientGetOptions) (CommitmentPlansClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, accountName, commitmentPlanName, options) if err != nil { @@ -232,7 +516,7 @@ func (client *CommitmentPlansClient) getCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-10-01") + reqQP.Set("api-version", "2022-12-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -247,11 +531,133 @@ func (client *CommitmentPlansClient) getHandleResponse(resp *http.Response) (Com return result, nil } +// GetAssociation - Gets the association of the Cognitive Services commitment plan. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-12-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - commitmentPlanName - The name of the commitmentPlan associated with the Cognitive Services Account +// - commitmentPlanAssociationName - The name of the commitment plan association with the Cognitive Services Account +// - options - CommitmentPlansClientGetAssociationOptions contains the optional parameters for the CommitmentPlansClient.GetAssociation +// method. +func (client *CommitmentPlansClient) GetAssociation(ctx context.Context, resourceGroupName string, commitmentPlanName string, commitmentPlanAssociationName string, options *CommitmentPlansClientGetAssociationOptions) (CommitmentPlansClientGetAssociationResponse, error) { + req, err := client.getAssociationCreateRequest(ctx, resourceGroupName, commitmentPlanName, commitmentPlanAssociationName, options) + if err != nil { + return CommitmentPlansClientGetAssociationResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return CommitmentPlansClientGetAssociationResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return CommitmentPlansClientGetAssociationResponse{}, runtime.NewResponseError(resp) + } + return client.getAssociationHandleResponse(resp) +} + +// getAssociationCreateRequest creates the GetAssociation request. +func (client *CommitmentPlansClient) getAssociationCreateRequest(ctx context.Context, resourceGroupName string, commitmentPlanName string, commitmentPlanAssociationName string, options *CommitmentPlansClientGetAssociationOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/commitmentPlans/{commitmentPlanName}/accountAssociations/{commitmentPlanAssociationName}" + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if commitmentPlanName == "" { + return nil, errors.New("parameter commitmentPlanName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{commitmentPlanName}", url.PathEscape(commitmentPlanName)) + if commitmentPlanAssociationName == "" { + return nil, errors.New("parameter commitmentPlanAssociationName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{commitmentPlanAssociationName}", url.PathEscape(commitmentPlanAssociationName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-12-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// getAssociationHandleResponse handles the GetAssociation response. +func (client *CommitmentPlansClient) getAssociationHandleResponse(resp *http.Response) (CommitmentPlansClientGetAssociationResponse, error) { + result := CommitmentPlansClientGetAssociationResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.CommitmentPlanAccountAssociation); err != nil { + return CommitmentPlansClientGetAssociationResponse{}, err + } + return result, nil +} + +// GetPlan - Returns a Cognitive Services commitment plan specified by the parameters. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-12-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - commitmentPlanName - The name of the commitmentPlan associated with the Cognitive Services Account +// - options - CommitmentPlansClientGetPlanOptions contains the optional parameters for the CommitmentPlansClient.GetPlan method. +func (client *CommitmentPlansClient) GetPlan(ctx context.Context, resourceGroupName string, commitmentPlanName string, options *CommitmentPlansClientGetPlanOptions) (CommitmentPlansClientGetPlanResponse, error) { + req, err := client.getPlanCreateRequest(ctx, resourceGroupName, commitmentPlanName, options) + if err != nil { + return CommitmentPlansClientGetPlanResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return CommitmentPlansClientGetPlanResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return CommitmentPlansClientGetPlanResponse{}, runtime.NewResponseError(resp) + } + return client.getPlanHandleResponse(resp) +} + +// getPlanCreateRequest creates the GetPlan request. +func (client *CommitmentPlansClient) getPlanCreateRequest(ctx context.Context, resourceGroupName string, commitmentPlanName string, options *CommitmentPlansClientGetPlanOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/commitmentPlans/{commitmentPlanName}" + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if commitmentPlanName == "" { + return nil, errors.New("parameter commitmentPlanName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{commitmentPlanName}", url.PathEscape(commitmentPlanName)) + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-12-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// getPlanHandleResponse handles the GetPlan response. +func (client *CommitmentPlansClient) getPlanHandleResponse(resp *http.Response) (CommitmentPlansClientGetPlanResponse, error) { + result := CommitmentPlansClientGetPlanResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.CommitmentPlan); err != nil { + return CommitmentPlansClientGetPlanResponse{}, err + } + return result, nil +} + // NewListPager - Gets the commitmentPlans associated with the Cognitive Services account. -// Generated from API version 2022-10-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - The name of Cognitive Services account. -// options - CommitmentPlansClientListOptions contains the optional parameters for the CommitmentPlansClient.List method. +// +// Generated from API version 2022-12-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - The name of Cognitive Services account. +// - options - CommitmentPlansClientListOptions contains the optional parameters for the CommitmentPlansClient.NewListPager +// method. func (client *CommitmentPlansClient) NewListPager(resourceGroupName string, accountName string, options *CommitmentPlansClientListOptions) *runtime.Pager[CommitmentPlansClientListResponse] { return runtime.NewPager(runtime.PagingHandler[CommitmentPlansClientListResponse]{ More: func(page CommitmentPlansClientListResponse) bool { @@ -300,7 +706,7 @@ func (client *CommitmentPlansClient) listCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-10-01") + reqQP.Set("api-version", "2022-12-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -314,3 +720,266 @@ func (client *CommitmentPlansClient) listHandleResponse(resp *http.Response) (Co } return result, nil } + +// NewListAssociationsPager - Gets the associations of the Cognitive Services commitment plan. +// +// Generated from API version 2022-12-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - commitmentPlanName - The name of the commitmentPlan associated with the Cognitive Services Account +// - options - CommitmentPlansClientListAssociationsOptions contains the optional parameters for the CommitmentPlansClient.NewListAssociationsPager +// method. +func (client *CommitmentPlansClient) NewListAssociationsPager(resourceGroupName string, commitmentPlanName string, options *CommitmentPlansClientListAssociationsOptions) *runtime.Pager[CommitmentPlansClientListAssociationsResponse] { + return runtime.NewPager(runtime.PagingHandler[CommitmentPlansClientListAssociationsResponse]{ + More: func(page CommitmentPlansClientListAssociationsResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 + }, + Fetcher: func(ctx context.Context, page *CommitmentPlansClientListAssociationsResponse) (CommitmentPlansClientListAssociationsResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listAssociationsCreateRequest(ctx, resourceGroupName, commitmentPlanName, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return CommitmentPlansClientListAssociationsResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return CommitmentPlansClientListAssociationsResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return CommitmentPlansClientListAssociationsResponse{}, runtime.NewResponseError(resp) + } + return client.listAssociationsHandleResponse(resp) + }, + }) +} + +// listAssociationsCreateRequest creates the ListAssociations request. +func (client *CommitmentPlansClient) listAssociationsCreateRequest(ctx context.Context, resourceGroupName string, commitmentPlanName string, options *CommitmentPlansClientListAssociationsOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/commitmentPlans/{commitmentPlanName}/accountAssociations" + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if commitmentPlanName == "" { + return nil, errors.New("parameter commitmentPlanName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{commitmentPlanName}", url.PathEscape(commitmentPlanName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-12-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listAssociationsHandleResponse handles the ListAssociations response. +func (client *CommitmentPlansClient) listAssociationsHandleResponse(resp *http.Response) (CommitmentPlansClientListAssociationsResponse, error) { + result := CommitmentPlansClientListAssociationsResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.CommitmentPlanAccountAssociationListResult); err != nil { + return CommitmentPlansClientListAssociationsResponse{}, err + } + return result, nil +} + +// NewListPlansByResourceGroupPager - Returns all the resources of a particular type belonging to a resource group +// +// Generated from API version 2022-12-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - options - CommitmentPlansClientListPlansByResourceGroupOptions contains the optional parameters for the CommitmentPlansClient.NewListPlansByResourceGroupPager +// method. +func (client *CommitmentPlansClient) NewListPlansByResourceGroupPager(resourceGroupName string, options *CommitmentPlansClientListPlansByResourceGroupOptions) *runtime.Pager[CommitmentPlansClientListPlansByResourceGroupResponse] { + return runtime.NewPager(runtime.PagingHandler[CommitmentPlansClientListPlansByResourceGroupResponse]{ + More: func(page CommitmentPlansClientListPlansByResourceGroupResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 + }, + Fetcher: func(ctx context.Context, page *CommitmentPlansClientListPlansByResourceGroupResponse) (CommitmentPlansClientListPlansByResourceGroupResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listPlansByResourceGroupCreateRequest(ctx, resourceGroupName, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return CommitmentPlansClientListPlansByResourceGroupResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return CommitmentPlansClientListPlansByResourceGroupResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return CommitmentPlansClientListPlansByResourceGroupResponse{}, runtime.NewResponseError(resp) + } + return client.listPlansByResourceGroupHandleResponse(resp) + }, + }) +} + +// listPlansByResourceGroupCreateRequest creates the ListPlansByResourceGroup request. +func (client *CommitmentPlansClient) listPlansByResourceGroupCreateRequest(ctx context.Context, resourceGroupName string, options *CommitmentPlansClientListPlansByResourceGroupOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/commitmentPlans" + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-12-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listPlansByResourceGroupHandleResponse handles the ListPlansByResourceGroup response. +func (client *CommitmentPlansClient) listPlansByResourceGroupHandleResponse(resp *http.Response) (CommitmentPlansClientListPlansByResourceGroupResponse, error) { + result := CommitmentPlansClientListPlansByResourceGroupResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.CommitmentPlanListResult); err != nil { + return CommitmentPlansClientListPlansByResourceGroupResponse{}, err + } + return result, nil +} + +// NewListPlansBySubscriptionPager - Returns all the resources of a particular type belonging to a subscription. +// +// Generated from API version 2022-12-01 +// - options - CommitmentPlansClientListPlansBySubscriptionOptions contains the optional parameters for the CommitmentPlansClient.NewListPlansBySubscriptionPager +// method. +func (client *CommitmentPlansClient) NewListPlansBySubscriptionPager(options *CommitmentPlansClientListPlansBySubscriptionOptions) *runtime.Pager[CommitmentPlansClientListPlansBySubscriptionResponse] { + return runtime.NewPager(runtime.PagingHandler[CommitmentPlansClientListPlansBySubscriptionResponse]{ + More: func(page CommitmentPlansClientListPlansBySubscriptionResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 + }, + Fetcher: func(ctx context.Context, page *CommitmentPlansClientListPlansBySubscriptionResponse) (CommitmentPlansClientListPlansBySubscriptionResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listPlansBySubscriptionCreateRequest(ctx, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return CommitmentPlansClientListPlansBySubscriptionResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return CommitmentPlansClientListPlansBySubscriptionResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return CommitmentPlansClientListPlansBySubscriptionResponse{}, runtime.NewResponseError(resp) + } + return client.listPlansBySubscriptionHandleResponse(resp) + }, + }) +} + +// listPlansBySubscriptionCreateRequest creates the ListPlansBySubscription request. +func (client *CommitmentPlansClient) listPlansBySubscriptionCreateRequest(ctx context.Context, options *CommitmentPlansClientListPlansBySubscriptionOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/commitmentPlans" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-12-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listPlansBySubscriptionHandleResponse handles the ListPlansBySubscription response. +func (client *CommitmentPlansClient) listPlansBySubscriptionHandleResponse(resp *http.Response) (CommitmentPlansClientListPlansBySubscriptionResponse, error) { + result := CommitmentPlansClientListPlansBySubscriptionResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.CommitmentPlanListResult); err != nil { + return CommitmentPlansClientListPlansBySubscriptionResponse{}, err + } + return result, nil +} + +// BeginUpdatePlan - Create Cognitive Services commitment plan. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-12-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - commitmentPlanName - The name of the commitmentPlan associated with the Cognitive Services Account +// - commitmentPlan - The parameters to provide for the created commitment plan. +// - options - CommitmentPlansClientBeginUpdatePlanOptions contains the optional parameters for the CommitmentPlansClient.BeginUpdatePlan +// method. +func (client *CommitmentPlansClient) BeginUpdatePlan(ctx context.Context, resourceGroupName string, commitmentPlanName string, commitmentPlan PatchResourceTagsAndSKU, options *CommitmentPlansClientBeginUpdatePlanOptions) (*runtime.Poller[CommitmentPlansClientUpdatePlanResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.updatePlan(ctx, resourceGroupName, commitmentPlanName, commitmentPlan, options) + if err != nil { + return nil, err + } + return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[CommitmentPlansClientUpdatePlanResponse]{ + FinalStateVia: runtime.FinalStateViaLocation, + }) + } else { + return runtime.NewPollerFromResumeToken[CommitmentPlansClientUpdatePlanResponse](options.ResumeToken, client.pl, nil) + } +} + +// UpdatePlan - Create Cognitive Services commitment plan. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-12-01 +func (client *CommitmentPlansClient) updatePlan(ctx context.Context, resourceGroupName string, commitmentPlanName string, commitmentPlan PatchResourceTagsAndSKU, options *CommitmentPlansClientBeginUpdatePlanOptions) (*http.Response, error) { + req, err := client.updatePlanCreateRequest(ctx, resourceGroupName, commitmentPlanName, commitmentPlan, options) + if err != nil { + return nil, err + } + resp, err := client.pl.Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { + return nil, runtime.NewResponseError(resp) + } + return resp, nil +} + +// updatePlanCreateRequest creates the UpdatePlan request. +func (client *CommitmentPlansClient) updatePlanCreateRequest(ctx context.Context, resourceGroupName string, commitmentPlanName string, commitmentPlan PatchResourceTagsAndSKU, options *CommitmentPlansClientBeginUpdatePlanOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/commitmentPlans/{commitmentPlanName}" + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if commitmentPlanName == "" { + return nil, errors.New("parameter commitmentPlanName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{commitmentPlanName}", url.PathEscape(commitmentPlanName)) + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-12-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, runtime.MarshalAsJSON(req, commitmentPlan) +} diff --git a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/commitmentplans_client_example_test.go b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/commitmentplans_client_example_test.go index 3e110eb36c57..1607fa5e02b8 100644 --- a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/commitmentplans_client_example_test.go +++ b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/commitmentplans_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armcognitiveservices_test @@ -17,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cognitiveservices/armcognitiveservices" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-10-01/examples/ListCommitmentPlans.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-12-01/examples/ListCommitmentPlans.json func ExampleCommitmentPlansClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -30,18 +31,35 @@ func ExampleCommitmentPlansClient_NewListPager() { } pager := client.NewListPager("resourceGroupName", "accountName", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.CommitmentPlanListResult = armcognitiveservices.CommitmentPlanListResult{ + // Value: []*armcognitiveservices.CommitmentPlan{ + // { + // Name: to.Ptr("commitmentPlanName"), + // Type: to.Ptr("Microsoft.CognitiveServices/accounts/commitmentPlans"), + // ID: to.Ptr("/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.CognitiveServices/accounts/accountName/commitmentPlans/commitmentPlanName"), + // Properties: &armcognitiveservices.CommitmentPlanProperties{ + // AutoRenew: to.Ptr(true), + // Current: &armcognitiveservices.CommitmentPeriod{ + // Tier: to.Ptr("T1"), + // }, + // HostingModel: to.Ptr(armcognitiveservices.HostingModelWeb), + // PlanType: to.Ptr("Speech2Text"), + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-10-01/examples/GetCommitmentPlan.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-12-01/examples/GetCommitmentPlan.json func ExampleCommitmentPlansClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -56,11 +74,25 @@ func ExampleCommitmentPlansClient_Get() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.CommitmentPlan = armcognitiveservices.CommitmentPlan{ + // Name: to.Ptr("commitmentPlanName"), + // Type: to.Ptr("Microsoft.CognitiveServices/accounts/commitmentPlans"), + // ID: to.Ptr("/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.CognitiveServices/accounts/accountName/commitmentPlans/commitmentPlanName"), + // Properties: &armcognitiveservices.CommitmentPlanProperties{ + // AutoRenew: to.Ptr(true), + // Current: &armcognitiveservices.CommitmentPeriod{ + // Tier: to.Ptr("T1"), + // }, + // HostingModel: to.Ptr(armcognitiveservices.HostingModelWeb), + // PlanType: to.Ptr("Speech2Text"), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-10-01/examples/PutCommitmentPlan.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-12-01/examples/PutCommitmentPlan.json func ExampleCommitmentPlansClient_CreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -84,11 +116,25 @@ func ExampleCommitmentPlansClient_CreateOrUpdate() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.CommitmentPlan = armcognitiveservices.CommitmentPlan{ + // Name: to.Ptr("commitmentPlanName"), + // Type: to.Ptr("Microsoft.CognitiveServices/accounts/commitmentPlans"), + // ID: to.Ptr("/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.CognitiveServices/accounts/accountName/commitmentPlans/commitmentPlanName"), + // Properties: &armcognitiveservices.CommitmentPlanProperties{ + // AutoRenew: to.Ptr(true), + // Current: &armcognitiveservices.CommitmentPeriod{ + // Tier: to.Ptr("T1"), + // }, + // HostingModel: to.Ptr(armcognitiveservices.HostingModelWeb), + // PlanType: to.Ptr("Speech2Text"), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-10-01/examples/DeleteCommitmentPlan.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-12-01/examples/DeleteCommitmentPlan.json func ExampleCommitmentPlansClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -108,3 +154,385 @@ func ExampleCommitmentPlansClient_BeginDelete() { log.Fatalf("failed to pull the result: %v", err) } } + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-12-01/examples/CreateSharedCommitmentPlan.json +func ExampleCommitmentPlansClient_BeginCreateOrUpdatePlan() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcognitiveservices.NewCommitmentPlansClient("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreateOrUpdatePlan(ctx, "resourceGroupName", "commitmentPlanName", armcognitiveservices.CommitmentPlan{ + Kind: to.Ptr("SpeechServices"), + Location: to.Ptr("West US"), + Properties: &armcognitiveservices.CommitmentPlanProperties{ + AutoRenew: to.Ptr(true), + Current: &armcognitiveservices.CommitmentPeriod{ + Tier: to.Ptr("T1"), + }, + HostingModel: to.Ptr(armcognitiveservices.HostingModelWeb), + PlanType: to.Ptr("STT"), + }, + SKU: &armcognitiveservices.SKU{ + Name: to.Ptr("S0"), + }, + }, 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.CommitmentPlan = armcognitiveservices.CommitmentPlan{ + // Name: to.Ptr("commitmentPlanName"), + // Type: to.Ptr("Microsoft.CognitiveServices/commitmentPlans"), + // ID: to.Ptr("/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/resourceGroupName/providers/Microsoft.CognitiveServices/commitmentPlans/commitmentPlanName"), + // Kind: to.Ptr("SpeechServices"), + // Location: to.Ptr("West US"), + // Properties: &armcognitiveservices.CommitmentPlanProperties{ + // AutoRenew: to.Ptr(true), + // Current: &armcognitiveservices.CommitmentPeriod{ + // Tier: to.Ptr("T1"), + // }, + // HostingModel: to.Ptr(armcognitiveservices.HostingModelWeb), + // PlanType: to.Ptr("STT"), + // ProvisioningState: to.Ptr(armcognitiveservices.CommitmentPlanProvisioningStateSucceeded), + // }, + // SKU: &armcognitiveservices.SKU{ + // Name: to.Ptr("S0"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-12-01/examples/UpdateSharedCommitmentPlan.json +func ExampleCommitmentPlansClient_BeginUpdatePlan() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcognitiveservices.NewCommitmentPlansClient("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginUpdatePlan(ctx, "resourceGroupName", "commitmentPlanName", armcognitiveservices.PatchResourceTagsAndSKU{ + Tags: map[string]*string{ + "name": to.Ptr("value"), + }, + }, 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.CommitmentPlan = armcognitiveservices.CommitmentPlan{ + // Name: to.Ptr("commitmentPlanName"), + // Type: to.Ptr("Microsoft.CognitiveServices/commitmentPlans"), + // ID: to.Ptr("/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/resourceGroupName/providers/Microsoft.CognitiveServices/commitmentPlans/commitmentPlanName"), + // Kind: to.Ptr("SpeechServices"), + // Location: to.Ptr("West US"), + // Properties: &armcognitiveservices.CommitmentPlanProperties{ + // AutoRenew: to.Ptr(true), + // Current: &armcognitiveservices.CommitmentPeriod{ + // Tier: to.Ptr("T1"), + // }, + // HostingModel: to.Ptr(armcognitiveservices.HostingModelWeb), + // PlanType: to.Ptr("STT"), + // ProvisioningState: to.Ptr(armcognitiveservices.CommitmentPlanProvisioningStateSucceeded), + // }, + // SKU: &armcognitiveservices.SKU{ + // Name: to.Ptr("S0"), + // }, + // Tags: map[string]*string{ + // "name": to.Ptr("value"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-12-01/examples/DeleteSharedCommitmentPlan.json +func ExampleCommitmentPlansClient_BeginDeletePlan() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcognitiveservices.NewCommitmentPlansClient("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginDeletePlan(ctx, "resourceGroupName", "commitmentPlanName", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + _, err = poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-12-01/examples/GetSharedCommitmentPlan.json +func ExampleCommitmentPlansClient_GetPlan() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcognitiveservices.NewCommitmentPlansClient("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.GetPlan(ctx, "resourceGroupName", "commitmentPlanName", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.CommitmentPlan = armcognitiveservices.CommitmentPlan{ + // Name: to.Ptr("commitmentPlanName"), + // Type: to.Ptr("Microsoft.CognitiveServices/commitmentPlans"), + // ID: to.Ptr("/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/resourceGroupName/providers/Microsoft.CognitiveServices/commitmentPlans/commitmentPlanName"), + // Kind: to.Ptr("SpeechServices"), + // Location: to.Ptr("West US"), + // Properties: &armcognitiveservices.CommitmentPlanProperties{ + // AutoRenew: to.Ptr(true), + // Current: &armcognitiveservices.CommitmentPeriod{ + // Tier: to.Ptr("T1"), + // }, + // HostingModel: to.Ptr(armcognitiveservices.HostingModelWeb), + // PlanType: to.Ptr("STT"), + // ProvisioningState: to.Ptr(armcognitiveservices.CommitmentPlanProvisioningStateSucceeded), + // }, + // SKU: &armcognitiveservices.SKU{ + // Name: to.Ptr("S0"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-12-01/examples/ListSharedCommitmentPlansByResourceGroup.json +func ExampleCommitmentPlansClient_NewListPlansByResourceGroupPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcognitiveservices.NewCommitmentPlansClient("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListPlansByResourceGroupPager("resourceGroupName", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.CommitmentPlanListResult = armcognitiveservices.CommitmentPlanListResult{ + // Value: []*armcognitiveservices.CommitmentPlan{ + // { + // Name: to.Ptr("commitmentPlanName"), + // Type: to.Ptr("Microsoft.CognitiveServices/commitmentPlans"), + // ID: to.Ptr("/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/resourceGroupName/providers/Microsoft.CognitiveServices/commitmentPlans/commitmentPlanName"), + // Kind: to.Ptr("SpeechServices"), + // Location: to.Ptr("West US"), + // Properties: &armcognitiveservices.CommitmentPlanProperties{ + // AutoRenew: to.Ptr(true), + // Current: &armcognitiveservices.CommitmentPeriod{ + // Tier: to.Ptr("T1"), + // }, + // HostingModel: to.Ptr(armcognitiveservices.HostingModelWeb), + // PlanType: to.Ptr("STT"), + // ProvisioningState: to.Ptr(armcognitiveservices.CommitmentPlanProvisioningStateSucceeded), + // }, + // SKU: &armcognitiveservices.SKU{ + // Name: to.Ptr("S0"), + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-12-01/examples/ListSharedCommitmentPlansBySubscription.json +func ExampleCommitmentPlansClient_NewListPlansBySubscriptionPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcognitiveservices.NewCommitmentPlansClient("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListPlansBySubscriptionPager(nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.CommitmentPlanListResult = armcognitiveservices.CommitmentPlanListResult{ + // Value: []*armcognitiveservices.CommitmentPlan{ + // { + // Name: to.Ptr("commitmentPlanName"), + // Type: to.Ptr("Microsoft.CognitiveServices/commitmentPlans"), + // ID: to.Ptr("/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/resourceGroupName/providers/Microsoft.CognitiveServices/commitmentPlans/commitmentPlanName"), + // Kind: to.Ptr("SpeechServices"), + // Location: to.Ptr("West US"), + // Properties: &armcognitiveservices.CommitmentPlanProperties{ + // AutoRenew: to.Ptr(true), + // Current: &armcognitiveservices.CommitmentPeriod{ + // Tier: to.Ptr("T1"), + // }, + // HostingModel: to.Ptr(armcognitiveservices.HostingModelWeb), + // PlanType: to.Ptr("STT"), + // ProvisioningState: to.Ptr(armcognitiveservices.CommitmentPlanProvisioningStateSucceeded), + // }, + // SKU: &armcognitiveservices.SKU{ + // Name: to.Ptr("S0"), + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-12-01/examples/ListSharedCommitmentPlanAssociations.json +func ExampleCommitmentPlansClient_NewListAssociationsPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcognitiveservices.NewCommitmentPlansClient("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListAssociationsPager("resourceGroupName", "commitmentPlanName", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.CommitmentPlanAccountAssociationListResult = armcognitiveservices.CommitmentPlanAccountAssociationListResult{ + // Value: []*armcognitiveservices.CommitmentPlanAccountAssociation{ + // { + // Name: to.Ptr("accountAssociationName"), + // Type: to.Ptr("Microsoft.CognitiveServices/commitmentPlans/accountAssociations"), + // ID: to.Ptr("/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.CognitiveServices/commitmentPlans/commitmentPlanName/accountAssociations/accountAssociationName"), + // Properties: &armcognitiveservices.CommitmentPlanAccountAssociationProperties{ + // AccountID: to.Ptr("/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.CognitiveServices/accounts/accountName"), + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-12-01/examples/GetSharedCommitmentPlanAssociation.json +func ExampleCommitmentPlansClient_GetAssociation() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcognitiveservices.NewCommitmentPlansClient("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.GetAssociation(ctx, "resourceGroupName", "commitmentPlanName", "commitmentPlanAssociationName", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.CommitmentPlanAccountAssociation = armcognitiveservices.CommitmentPlanAccountAssociation{ + // Name: to.Ptr("commitmentPlanAssociationName"), + // Type: to.Ptr("Microsoft.CognitiveServices/commitmentPlans/accountAssociations"), + // ID: to.Ptr("/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.CognitiveServices/commitmentPlans/commitmentPlanName/accountAssociations/commitmentPlanAssociationName"), + // Properties: &armcognitiveservices.CommitmentPlanAccountAssociationProperties{ + // AccountID: to.Ptr("/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.CognitiveServices/accounts/accountName"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-12-01/examples/CreateSharedCommitmentPlanAssociation.json +func ExampleCommitmentPlansClient_BeginCreateOrUpdateAssociation() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcognitiveservices.NewCommitmentPlansClient("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreateOrUpdateAssociation(ctx, "resourceGroupName", "commitmentPlanName", "commitmentPlanAssociationName", armcognitiveservices.CommitmentPlanAccountAssociation{ + Properties: &armcognitiveservices.CommitmentPlanAccountAssociationProperties{ + AccountID: to.Ptr("/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.CognitiveServices/accounts/accountName"), + }, + }, 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.CommitmentPlanAccountAssociation = armcognitiveservices.CommitmentPlanAccountAssociation{ + // Name: to.Ptr("commitmentPlanAssociationName"), + // Type: to.Ptr("Microsoft.CognitiveServices/commitmentPlans/accountAssociations"), + // ID: to.Ptr("/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.CognitiveServices/commitmentPlans/commitmentPlanName/accountAssociations/commitmentPlanAssociationName"), + // Properties: &armcognitiveservices.CommitmentPlanAccountAssociationProperties{ + // AccountID: to.Ptr("/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.CognitiveServices/accounts/accountName"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-12-01/examples/DeleteSharedCommitmentPlanAssociation.json +func ExampleCommitmentPlansClient_BeginDeleteAssociation() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcognitiveservices.NewCommitmentPlansClient("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginDeleteAssociation(ctx, "resourceGroupName", "commitmentPlanName", "commitmentPlanAssociationName", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + _, err = poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } +} diff --git a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/commitmenttiers_client.go b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/commitmenttiers_client.go index 85f195e9d2d7..d56a1fd00063 100644 --- a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/commitmenttiers_client.go +++ b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/commitmenttiers_client.go @@ -32,9 +32,9 @@ type CommitmentTiersClient struct { } // NewCommitmentTiersClient creates a new instance of CommitmentTiersClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewCommitmentTiersClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*CommitmentTiersClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,9 +56,11 @@ func NewCommitmentTiersClient(subscriptionID string, credential azcore.TokenCred } // NewListPager - List Commitment Tiers. -// Generated from API version 2022-10-01 -// location - Resource location. -// options - CommitmentTiersClientListOptions contains the optional parameters for the CommitmentTiersClient.List method. +// +// Generated from API version 2022-12-01 +// - location - Resource location. +// - options - CommitmentTiersClientListOptions contains the optional parameters for the CommitmentTiersClient.NewListPager +// method. func (client *CommitmentTiersClient) NewListPager(location string, options *CommitmentTiersClientListOptions) *runtime.Pager[CommitmentTiersClientListResponse] { return runtime.NewPager(runtime.PagingHandler[CommitmentTiersClientListResponse]{ More: func(page CommitmentTiersClientListResponse) bool { @@ -103,7 +105,7 @@ func (client *CommitmentTiersClient) listCreateRequest(ctx context.Context, loca return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-10-01") + reqQP.Set("api-version", "2022-12-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/commitmenttiers_client_example_test.go b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/commitmenttiers_client_example_test.go index 69cae8f1bb62..b4a6811e21d5 100644 --- a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/commitmenttiers_client_example_test.go +++ b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/commitmenttiers_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armcognitiveservices_test @@ -16,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cognitiveservices/armcognitiveservices" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-10-01/examples/ListCommitmentTiers.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-12-01/examples/ListCommitmentTiers.json func ExampleCommitmentTiersClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -29,13 +30,30 @@ func ExampleCommitmentTiersClient_NewListPager() { } pager := client.NewListPager("location", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.CommitmentTierListResult = armcognitiveservices.CommitmentTierListResult{ + // Value: []*armcognitiveservices.CommitmentTier{ + // { + // Cost: &armcognitiveservices.CommitmentCost{ + // }, + // HostingModel: to.Ptr(armcognitiveservices.HostingModelWeb), + // Kind: to.Ptr("TextAnalytics"), + // PlanType: to.Ptr("TA"), + // Quota: &armcognitiveservices.CommitmentQuota{ + // Quantity: to.Ptr[int64](1000000), + // Unit: to.Ptr("Transaction"), + // }, + // SKUName: to.Ptr("S"), + // Tier: to.Ptr("T1"), + // }}, + // } } } diff --git a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/constants.go b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/constants.go index 6cf581e5511c..ee71c910310f 100644 --- a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/constants.go +++ b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/constants.go @@ -11,7 +11,7 @@ package armcognitiveservices const ( moduleName = "armcognitiveservices" - moduleVersion = "v1.2.0" + moduleVersion = "v1.3.0" ) // ActionType - Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. @@ -28,6 +28,32 @@ func PossibleActionTypeValues() []ActionType { } } +// CommitmentPlanProvisioningState - Gets the status of the resource at the time the operation was called. +type CommitmentPlanProvisioningState string + +const ( + CommitmentPlanProvisioningStateAccepted CommitmentPlanProvisioningState = "Accepted" + CommitmentPlanProvisioningStateCanceled CommitmentPlanProvisioningState = "Canceled" + CommitmentPlanProvisioningStateCreating CommitmentPlanProvisioningState = "Creating" + CommitmentPlanProvisioningStateDeleting CommitmentPlanProvisioningState = "Deleting" + CommitmentPlanProvisioningStateFailed CommitmentPlanProvisioningState = "Failed" + CommitmentPlanProvisioningStateMoving CommitmentPlanProvisioningState = "Moving" + CommitmentPlanProvisioningStateSucceeded CommitmentPlanProvisioningState = "Succeeded" +) + +// PossibleCommitmentPlanProvisioningStateValues returns the possible values for the CommitmentPlanProvisioningState const type. +func PossibleCommitmentPlanProvisioningStateValues() []CommitmentPlanProvisioningState { + return []CommitmentPlanProvisioningState{ + CommitmentPlanProvisioningStateAccepted, + CommitmentPlanProvisioningStateCanceled, + CommitmentPlanProvisioningStateCreating, + CommitmentPlanProvisioningStateDeleting, + CommitmentPlanProvisioningStateFailed, + CommitmentPlanProvisioningStateMoving, + CommitmentPlanProvisioningStateSucceeded, + } +} + // CreatedByType - The type of identity that created the resource. type CreatedByType string @@ -138,6 +164,22 @@ func PossibleKeySourceValues() []KeySource { } } +// ModelLifecycleStatus - Model lifecycle status. +type ModelLifecycleStatus string + +const ( + ModelLifecycleStatusGenerallyAvailable ModelLifecycleStatus = "GenerallyAvailable" + ModelLifecycleStatusPreview ModelLifecycleStatus = "Preview" +) + +// PossibleModelLifecycleStatusValues returns the possible values for the ModelLifecycleStatus const type. +func PossibleModelLifecycleStatusValues() []ModelLifecycleStatus { + return []ModelLifecycleStatus{ + ModelLifecycleStatusGenerallyAvailable, + ModelLifecycleStatusPreview, + } +} + // NetworkRuleAction - The default action when no rule from ipRules and from virtualNetworkRules match. This is only used // after the bypass property has been evaluated. type NetworkRuleAction string @@ -326,6 +368,24 @@ func PossibleResourceSKURestrictionsTypeValues() []ResourceSKURestrictionsType { } } +// RoutingMethods - Multiregion routing methods. +type RoutingMethods string + +const ( + RoutingMethodsPerformance RoutingMethods = "Performance" + RoutingMethodsPriority RoutingMethods = "Priority" + RoutingMethodsWeighted RoutingMethods = "Weighted" +) + +// PossibleRoutingMethodsValues returns the possible values for the RoutingMethods const type. +func PossibleRoutingMethodsValues() []RoutingMethods { + return []RoutingMethods{ + RoutingMethodsPerformance, + RoutingMethodsPriority, + RoutingMethodsWeighted, + } +} + // SKUTier - This field is required to be implemented by the Resource Provider if the service has more than one tier, but // is not required on a PUT. type SKUTier string diff --git a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/deletedaccounts_client.go b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/deletedaccounts_client.go index 01745cd1fb53..7e954d941a5b 100644 --- a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/deletedaccounts_client.go +++ b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/deletedaccounts_client.go @@ -32,9 +32,9 @@ type DeletedAccountsClient struct { } // NewDeletedAccountsClient creates a new instance of DeletedAccountsClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewDeletedAccountsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DeletedAccountsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,11 +57,12 @@ func NewDeletedAccountsClient(subscriptionID string, credential azcore.TokenCred // Get - Returns a Cognitive Services account specified by the parameters. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-10-01 -// location - Resource location. -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - The name of Cognitive Services account. -// options - DeletedAccountsClientGetOptions contains the optional parameters for the DeletedAccountsClient.Get method. +// +// Generated from API version 2022-12-01 +// - location - Resource location. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - The name of Cognitive Services account. +// - options - DeletedAccountsClientGetOptions contains the optional parameters for the DeletedAccountsClient.Get method. func (client *DeletedAccountsClient) Get(ctx context.Context, location string, resourceGroupName string, accountName string, options *DeletedAccountsClientGetOptions) (DeletedAccountsClientGetResponse, error) { req, err := client.getCreateRequest(ctx, location, resourceGroupName, accountName, options) if err != nil { @@ -101,7 +102,7 @@ func (client *DeletedAccountsClient) getCreateRequest(ctx context.Context, locat return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-10-01") + reqQP.Set("api-version", "2022-12-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -117,8 +118,10 @@ func (client *DeletedAccountsClient) getHandleResponse(resp *http.Response) (Del } // NewListPager - Returns all the resources of a particular type belonging to a subscription. -// Generated from API version 2022-10-01 -// options - DeletedAccountsClientListOptions contains the optional parameters for the DeletedAccountsClient.List method. +// +// Generated from API version 2022-12-01 +// - options - DeletedAccountsClientListOptions contains the optional parameters for the DeletedAccountsClient.NewListPager +// method. func (client *DeletedAccountsClient) NewListPager(options *DeletedAccountsClientListOptions) *runtime.Pager[DeletedAccountsClientListResponse] { return runtime.NewPager(runtime.PagingHandler[DeletedAccountsClientListResponse]{ More: func(page DeletedAccountsClientListResponse) bool { @@ -159,7 +162,7 @@ func (client *DeletedAccountsClient) listCreateRequest(ctx context.Context, opti return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-10-01") + reqQP.Set("api-version", "2022-12-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -176,12 +179,13 @@ func (client *DeletedAccountsClient) listHandleResponse(resp *http.Response) (De // BeginPurge - Deletes a Cognitive Services account from the resource group. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-10-01 -// location - Resource location. -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - The name of Cognitive Services account. -// options - DeletedAccountsClientBeginPurgeOptions contains the optional parameters for the DeletedAccountsClient.BeginPurge -// method. +// +// Generated from API version 2022-12-01 +// - location - Resource location. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - The name of Cognitive Services account. +// - options - DeletedAccountsClientBeginPurgeOptions contains the optional parameters for the DeletedAccountsClient.BeginPurge +// method. func (client *DeletedAccountsClient) BeginPurge(ctx context.Context, location string, resourceGroupName string, accountName string, options *DeletedAccountsClientBeginPurgeOptions) (*runtime.Poller[DeletedAccountsClientPurgeResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.purge(ctx, location, resourceGroupName, accountName, options) @@ -196,7 +200,8 @@ func (client *DeletedAccountsClient) BeginPurge(ctx context.Context, location st // Purge - Deletes a Cognitive Services account from the resource group. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-10-01 +// +// Generated from API version 2022-12-01 func (client *DeletedAccountsClient) purge(ctx context.Context, location string, resourceGroupName string, accountName string, options *DeletedAccountsClientBeginPurgeOptions) (*http.Response, error) { req, err := client.purgeCreateRequest(ctx, location, resourceGroupName, accountName, options) if err != nil { @@ -236,7 +241,7 @@ func (client *DeletedAccountsClient) purgeCreateRequest(ctx context.Context, loc return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-10-01") + reqQP.Set("api-version", "2022-12-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/deletedaccounts_client_example_test.go b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/deletedaccounts_client_example_test.go index 0a0512ce036e..445a4e233f02 100644 --- a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/deletedaccounts_client_example_test.go +++ b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/deletedaccounts_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armcognitiveservices_test @@ -16,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cognitiveservices/armcognitiveservices" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-10-01/examples/GetDeletedAccount.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-12-01/examples/GetDeletedAccount.json func ExampleDeletedAccountsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -31,11 +32,31 @@ func ExampleDeletedAccountsClient_Get() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.Account = armcognitiveservices.Account{ + // Name: to.Ptr("myAccount"), + // Type: to.Ptr("Microsoft.CognitiveServices/accounts"), + // ID: to.Ptr("/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/providers/Microsoft.CognitiveServices/locations/westus/resourceGroups/myResourceGroup/deletedAccounts/myAccount"), + // Etag: to.Ptr("W/\"datetime'2017-04-10T04%3A42%3A19.7067387Z'\""), + // Kind: to.Ptr("Emotion"), + // Location: to.Ptr("westus"), + // Properties: &armcognitiveservices.AccountProperties{ + // Endpoint: to.Ptr("https://westus.api.cognitive.microsoft.com/emotion/v1.0"), + // ProvisioningState: to.Ptr(armcognitiveservices.ProvisioningStateSucceeded), + // }, + // SKU: &armcognitiveservices.SKU{ + // Name: to.Ptr("F0"), + // }, + // Tags: map[string]*string{ + // "ExpiredDate": to.Ptr("2017/09/01"), + // "Owner": to.Ptr("felixwa"), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-10-01/examples/PurgeDeletedAccount.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-12-01/examples/PurgeDeletedAccount.json func ExampleDeletedAccountsClient_BeginPurge() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -56,7 +77,7 @@ func ExampleDeletedAccountsClient_BeginPurge() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-10-01/examples/ListDeletedAccountsBySubscription.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-12-01/examples/ListDeletedAccountsBySubscription.json func ExampleDeletedAccountsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -69,13 +90,80 @@ func ExampleDeletedAccountsClient_NewListPager() { } pager := client.NewListPager(nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.AccountListResult = armcognitiveservices.AccountListResult{ + // Value: []*armcognitiveservices.Account{ + // { + // Name: to.Ptr("bingSearch"), + // Type: to.Ptr("Microsoft.CognitiveServices/accounts"), + // ID: to.Ptr("/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/bvttest/providers/Microsoft.CognitiveServices/accounts/bingSearch"), + // Etag: to.Ptr("W/\"datetime'2017-03-27T11%3A19%3A08.762494Z'\""), + // Kind: to.Ptr("Bing.Search"), + // Location: to.Ptr("global"), + // Properties: &armcognitiveservices.AccountProperties{ + // Endpoint: to.Ptr("https://api.cognitive.microsoft.com/bing/v5.0"), + // ProvisioningState: to.Ptr(armcognitiveservices.ProvisioningStateSucceeded), + // }, + // SKU: &armcognitiveservices.SKU{ + // Name: to.Ptr("S1"), + // }, + // }, + // { + // Name: to.Ptr("CrisProd"), + // Type: to.Ptr("Microsoft.CognitiveServices/accounts"), + // ID: to.Ptr("/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/bvttest/providers/Microsoft.CognitiveServices/accounts/CrisProd"), + // Etag: to.Ptr("W/\"datetime'2017-03-31T08%3A57%3A07.4499566Z'\""), + // Kind: to.Ptr("CRIS"), + // Location: to.Ptr("westus"), + // Properties: &armcognitiveservices.AccountProperties{ + // Endpoint: to.Ptr("https://westus.api.cognitive.microsoft.com/sts/v1.0"), + // ProvisioningState: to.Ptr(armcognitiveservices.ProvisioningStateSucceeded), + // }, + // SKU: &armcognitiveservices.SKU{ + // Name: to.Ptr("S0"), + // }, + // Tags: map[string]*string{ + // "can't delete it successfully": to.Ptr("v-yunjin"), + // }, + // }, + // { + // Name: to.Ptr("rayrptest0308"), + // Type: to.Ptr("Microsoft.CognitiveServices/accounts"), + // ID: to.Ptr("/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/bvttest/providers/Microsoft.CognitiveServices/accounts/rayrptest0308"), + // Etag: to.Ptr("W/\"datetime'2017-03-27T11%3A15%3A23.5232645Z'\""), + // Kind: to.Ptr("Face"), + // Location: to.Ptr("westus"), + // Properties: &armcognitiveservices.AccountProperties{ + // Endpoint: to.Ptr("https://westus.api.cognitive.microsoft.com/face/v1.0"), + // ProvisioningState: to.Ptr(armcognitiveservices.ProvisioningStateSucceeded), + // }, + // SKU: &armcognitiveservices.SKU{ + // Name: to.Ptr("S0"), + // }, + // }, + // { + // Name: to.Ptr("raytest02"), + // Type: to.Ptr("Microsoft.CognitiveServices/accounts"), + // ID: to.Ptr("/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/bvttest/providers/Microsoft.CognitiveServices/accounts/raytest02"), + // Etag: to.Ptr("W/\"datetime'2017-04-04T02%3A07%3A07.3957572Z'\""), + // Kind: to.Ptr("Emotion"), + // Location: to.Ptr("westus"), + // Properties: &armcognitiveservices.AccountProperties{ + // Endpoint: to.Ptr("https://westus.api.cognitive.microsoft.com/emotion/v1.0"), + // ProvisioningState: to.Ptr(armcognitiveservices.ProvisioningStateSucceeded), + // }, + // SKU: &armcognitiveservices.SKU{ + // Name: to.Ptr("S0"), + // }, + // }}, + // } } } diff --git a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/deployments_client.go b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/deployments_client.go index c36c159419fc..fa4d75f7ed28 100644 --- a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/deployments_client.go +++ b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/deployments_client.go @@ -32,9 +32,9 @@ type DeploymentsClient struct { } // NewDeploymentsClient creates a new instance of DeploymentsClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewDeploymentsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DeploymentsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,13 +57,14 @@ func NewDeploymentsClient(subscriptionID string, credential azcore.TokenCredenti // BeginCreateOrUpdate - Update the state of specified deployments associated with the Cognitive Services account. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-10-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - The name of Cognitive Services account. -// deploymentName - The name of the deployment associated with the Cognitive Services Account -// deployment - The deployment properties. -// options - DeploymentsClientBeginCreateOrUpdateOptions contains the optional parameters for the DeploymentsClient.BeginCreateOrUpdate -// method. +// +// Generated from API version 2022-12-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - The name of Cognitive Services account. +// - deploymentName - The name of the deployment associated with the Cognitive Services Account +// - deployment - The deployment properties. +// - options - DeploymentsClientBeginCreateOrUpdateOptions contains the optional parameters for the DeploymentsClient.BeginCreateOrUpdate +// method. func (client *DeploymentsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, accountName string, deploymentName string, deployment Deployment, options *DeploymentsClientBeginCreateOrUpdateOptions) (*runtime.Poller[DeploymentsClientCreateOrUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createOrUpdate(ctx, resourceGroupName, accountName, deploymentName, deployment, options) @@ -78,7 +79,8 @@ func (client *DeploymentsClient) BeginCreateOrUpdate(ctx context.Context, resour // CreateOrUpdate - Update the state of specified deployments associated with the Cognitive Services account. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-10-01 +// +// Generated from API version 2022-12-01 func (client *DeploymentsClient) createOrUpdate(ctx context.Context, resourceGroupName string, accountName string, deploymentName string, deployment Deployment, options *DeploymentsClientBeginCreateOrUpdateOptions) (*http.Response, error) { req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, accountName, deploymentName, deployment, options) if err != nil { @@ -118,7 +120,7 @@ func (client *DeploymentsClient) createOrUpdateCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-10-01") + reqQP.Set("api-version", "2022-12-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, deployment) @@ -126,11 +128,12 @@ func (client *DeploymentsClient) createOrUpdateCreateRequest(ctx context.Context // BeginDelete - Deletes the specified deployment associated with the Cognitive Services account. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-10-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - The name of Cognitive Services account. -// deploymentName - The name of the deployment associated with the Cognitive Services Account -// options - DeploymentsClientBeginDeleteOptions contains the optional parameters for the DeploymentsClient.BeginDelete method. +// +// Generated from API version 2022-12-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - The name of Cognitive Services account. +// - deploymentName - The name of the deployment associated with the Cognitive Services Account +// - options - DeploymentsClientBeginDeleteOptions contains the optional parameters for the DeploymentsClient.BeginDelete method. func (client *DeploymentsClient) BeginDelete(ctx context.Context, resourceGroupName string, accountName string, deploymentName string, options *DeploymentsClientBeginDeleteOptions) (*runtime.Poller[DeploymentsClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, accountName, deploymentName, options) @@ -145,7 +148,8 @@ func (client *DeploymentsClient) BeginDelete(ctx context.Context, resourceGroupN // Delete - Deletes the specified deployment associated with the Cognitive Services account. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-10-01 +// +// Generated from API version 2022-12-01 func (client *DeploymentsClient) deleteOperation(ctx context.Context, resourceGroupName string, accountName string, deploymentName string, options *DeploymentsClientBeginDeleteOptions) (*http.Response, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, accountName, deploymentName, options) if err != nil { @@ -185,7 +189,7 @@ func (client *DeploymentsClient) deleteCreateRequest(ctx context.Context, resour return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-10-01") + reqQP.Set("api-version", "2022-12-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -193,11 +197,12 @@ func (client *DeploymentsClient) deleteCreateRequest(ctx context.Context, resour // Get - Gets the specified deployments associated with the Cognitive Services account. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-10-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - The name of Cognitive Services account. -// deploymentName - The name of the deployment associated with the Cognitive Services Account -// options - DeploymentsClientGetOptions contains the optional parameters for the DeploymentsClient.Get method. +// +// Generated from API version 2022-12-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - The name of Cognitive Services account. +// - deploymentName - The name of the deployment associated with the Cognitive Services Account +// - options - DeploymentsClientGetOptions contains the optional parameters for the DeploymentsClient.Get method. func (client *DeploymentsClient) Get(ctx context.Context, resourceGroupName string, accountName string, deploymentName string, options *DeploymentsClientGetOptions) (DeploymentsClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, accountName, deploymentName, options) if err != nil { @@ -237,7 +242,7 @@ func (client *DeploymentsClient) getCreateRequest(ctx context.Context, resourceG return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-10-01") + reqQP.Set("api-version", "2022-12-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -253,10 +258,11 @@ func (client *DeploymentsClient) getHandleResponse(resp *http.Response) (Deploym } // NewListPager - Gets the deployments associated with the Cognitive Services account. -// Generated from API version 2022-10-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - The name of Cognitive Services account. -// options - DeploymentsClientListOptions contains the optional parameters for the DeploymentsClient.List method. +// +// Generated from API version 2022-12-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - The name of Cognitive Services account. +// - options - DeploymentsClientListOptions contains the optional parameters for the DeploymentsClient.NewListPager method. func (client *DeploymentsClient) NewListPager(resourceGroupName string, accountName string, options *DeploymentsClientListOptions) *runtime.Pager[DeploymentsClientListResponse] { return runtime.NewPager(runtime.PagingHandler[DeploymentsClientListResponse]{ More: func(page DeploymentsClientListResponse) bool { @@ -305,7 +311,7 @@ func (client *DeploymentsClient) listCreateRequest(ctx context.Context, resource return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-10-01") + reqQP.Set("api-version", "2022-12-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/deployments_client_example_test.go b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/deployments_client_example_test.go index a06bad46242d..e3b3d6df0c87 100644 --- a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/deployments_client_example_test.go +++ b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/deployments_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armcognitiveservices_test @@ -17,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cognitiveservices/armcognitiveservices" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-10-01/examples/ListDeployments.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-12-01/examples/ListDeployments.json func ExampleDeploymentsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -30,18 +31,39 @@ func ExampleDeploymentsClient_NewListPager() { } pager := client.NewListPager("resourceGroupName", "accountName", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.DeploymentListResult = armcognitiveservices.DeploymentListResult{ + // Value: []*armcognitiveservices.Deployment{ + // { + // Name: to.Ptr("deploymentName"), + // Type: to.Ptr("Microsoft.CognitiveServices/accounts/deployments"), + // ID: to.Ptr("/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.CognitiveServices/accounts/accountName/deployments/deploymentName"), + // Properties: &armcognitiveservices.DeploymentProperties{ + // Model: &armcognitiveservices.DeploymentModel{ + // Name: to.Ptr("ada"), + // Format: to.Ptr("OpenAI"), + // Version: to.Ptr("1"), + // }, + // ProvisioningState: to.Ptr(armcognitiveservices.DeploymentProvisioningStateSucceeded), + // ScaleSettings: &armcognitiveservices.DeploymentScaleSettings{ + // Capacity: to.Ptr[int32](1), + // ScaleType: to.Ptr(armcognitiveservices.DeploymentScaleTypeManual), + // }, + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-10-01/examples/GetDeployment.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-12-01/examples/GetDeployment.json func ExampleDeploymentsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -56,11 +78,29 @@ func ExampleDeploymentsClient_Get() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.Deployment = armcognitiveservices.Deployment{ + // Name: to.Ptr("deploymentName"), + // Type: to.Ptr("Microsoft.CognitiveServices/accounts/deployments"), + // ID: to.Ptr("/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.CognitiveServices/accounts/accountName/deployments/deploymentName"), + // Properties: &armcognitiveservices.DeploymentProperties{ + // Model: &armcognitiveservices.DeploymentModel{ + // Name: to.Ptr("ada"), + // Format: to.Ptr("OpenAI"), + // Version: to.Ptr("1"), + // }, + // ProvisioningState: to.Ptr(armcognitiveservices.DeploymentProvisioningStateSucceeded), + // ScaleSettings: &armcognitiveservices.DeploymentScaleSettings{ + // Capacity: to.Ptr[int32](1), + // ScaleType: to.Ptr(armcognitiveservices.DeploymentScaleTypeManual), + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-10-01/examples/PutDeployment.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-12-01/examples/PutDeployment.json func ExampleDeploymentsClient_BeginCreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -91,11 +131,29 @@ func ExampleDeploymentsClient_BeginCreateOrUpdate() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.Deployment = armcognitiveservices.Deployment{ + // Name: to.Ptr("deploymentName"), + // Type: to.Ptr("Microsoft.CognitiveServices/accounts/deployments"), + // ID: to.Ptr("/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.CognitiveServices/accounts/accountName/deployments/deploymentName"), + // Properties: &armcognitiveservices.DeploymentProperties{ + // Model: &armcognitiveservices.DeploymentModel{ + // Name: to.Ptr("ada"), + // Format: to.Ptr("OpenAI"), + // Version: to.Ptr("1"), + // }, + // ProvisioningState: to.Ptr(armcognitiveservices.DeploymentProvisioningStateSucceeded), + // ScaleSettings: &armcognitiveservices.DeploymentScaleSettings{ + // Capacity: to.Ptr[int32](1), + // ScaleType: to.Ptr(armcognitiveservices.DeploymentScaleTypeManual), + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-10-01/examples/DeleteDeployment.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-12-01/examples/DeleteDeployment.json func ExampleDeploymentsClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/go.mod b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/go.mod index 1b0e02485eed..a6692090d9db 100644 --- a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/go.mod +++ b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/go.mod @@ -4,13 +4,13 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.0.0 - github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.1.0 + github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.1 ) require ( github.com/Azure/azure-sdk-for-go/sdk/internal v1.0.0 // indirect - github.com/AzureAD/microsoft-authentication-library-for-go v0.5.1 // indirect - github.com/golang-jwt/jwt v3.2.1+incompatible // indirect + github.com/AzureAD/microsoft-authentication-library-for-go v0.8.1 // indirect + github.com/golang-jwt/jwt/v4 v4.4.2 // 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 diff --git a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/go.sum b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/go.sum index 8828b17b1853..67cfef6bdf6e 100644 --- a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/go.sum +++ b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/go.sum @@ -1,21 +1,19 @@ 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.1.0 h1:QkAcEIAKbNL4KoFr4SathZPhDhF4mVwpBMFlYjyAqy8= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.1.0/go.mod h1:bhXu1AjYL+wutSL/kpSq6s7733q2Rb0yuot9Zgfqa/0= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.1 h1:T8quHYlUGyb/oqtSTwqlCr1ilJHrDv+ZtpSfo+hm1BU= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.1/go.mod h1:gLa1CL2RNE4s7M3yopJ/p0iq5DdY6Yv5ZUt9MTRZOQM= 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.5.1 h1:BWe8a+f/t+7KY7zH2mqygeUD0t8hNFXe08p1Pb3/jKE= -github.com/AzureAD/microsoft-authentication-library-for-go v0.5.1/go.mod h1:Vt9sXTKwMyGcOxSmLDMnGPgqsUg7m8pe215qMLrDXw4= +github.com/AzureAD/microsoft-authentication-library-for-go v0.8.1 h1:oPdPEZFSbl7oSPEAIPMPBMUmiL+mqgzBJwM/9qYcwNg= +github.com/AzureAD/microsoft-authentication-library-for-go v0.8.1/go.mod h1:4qFor3D/HDsvBME35Xy9rwW9DecL+M2sNw1ybjPtwA0= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/dnaeon/go-vcr v1.1.0 h1:ReYa/UBrRyQdant9B4fNHGoCNKw6qh6P0fsdGmZpR7c= -github.com/golang-jwt/jwt 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= +github.com/golang-jwt/jwt/v4 v4.4.2 h1:rcc4lwaZgFMCZ5jxF9ABolDcIHdBytAFgqFPbSJQAYs= +github.com/golang-jwt/jwt/v4 v4.4.2/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= 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/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= @@ -24,7 +22,6 @@ golang.org/x/crypto v0.0.0-20220511200225-c6db032c6c88 h1:Tgea0cVUD0ivh5ADBX4Wwu 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-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= diff --git a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/management_client.go b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/management_client.go index 09f3a8d8b388..4cbca4aaf373 100644 --- a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/management_client.go +++ b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/management_client.go @@ -32,9 +32,9 @@ type ManagementClient struct { } // NewManagementClient creates a new instance of ManagementClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewManagementClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ManagementClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,10 +57,11 @@ func NewManagementClient(subscriptionID string, credential azcore.TokenCredentia // CheckDomainAvailability - Check whether a domain is available. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-10-01 -// parameters - Check Domain Availability parameter. -// options - ManagementClientCheckDomainAvailabilityOptions contains the optional parameters for the ManagementClient.CheckDomainAvailability -// method. +// +// Generated from API version 2022-12-01 +// - parameters - Check Domain Availability parameter. +// - options - ManagementClientCheckDomainAvailabilityOptions contains the optional parameters for the ManagementClient.CheckDomainAvailability +// method. func (client *ManagementClient) CheckDomainAvailability(ctx context.Context, parameters CheckDomainAvailabilityParameter, options *ManagementClientCheckDomainAvailabilityOptions) (ManagementClientCheckDomainAvailabilityResponse, error) { req, err := client.checkDomainAvailabilityCreateRequest(ctx, parameters, options) if err != nil { @@ -88,7 +89,7 @@ func (client *ManagementClient) checkDomainAvailabilityCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-10-01") + reqQP.Set("api-version", "2022-12-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, parameters) @@ -105,11 +106,12 @@ func (client *ManagementClient) checkDomainAvailabilityHandleResponse(resp *http // CheckSKUAvailability - Check available SKUs. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-10-01 -// location - Resource location. -// parameters - Check SKU Availability POST body. -// options - ManagementClientCheckSKUAvailabilityOptions contains the optional parameters for the ManagementClient.CheckSKUAvailability -// method. +// +// Generated from API version 2022-12-01 +// - location - Resource location. +// - parameters - Check SKU Availability POST body. +// - options - ManagementClientCheckSKUAvailabilityOptions contains the optional parameters for the ManagementClient.CheckSKUAvailability +// method. func (client *ManagementClient) CheckSKUAvailability(ctx context.Context, location string, parameters CheckSKUAvailabilityParameter, options *ManagementClientCheckSKUAvailabilityOptions) (ManagementClientCheckSKUAvailabilityResponse, error) { req, err := client.checkSKUAvailabilityCreateRequest(ctx, location, parameters, options) if err != nil { @@ -141,7 +143,7 @@ func (client *ManagementClient) checkSKUAvailabilityCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-10-01") + reqQP.Set("api-version", "2022-12-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, parameters) diff --git a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/management_client_example_test.go b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/management_client_example_test.go index 56f55c0f2ad1..756497d21535 100644 --- a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/management_client_example_test.go +++ b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/management_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armcognitiveservices_test @@ -17,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cognitiveservices/armcognitiveservices" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-10-01/examples/CheckSkuAvailability.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-12-01/examples/CheckSkuAvailability.json func ExampleManagementClient_CheckSKUAvailability() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -37,11 +38,21 @@ func ExampleManagementClient_CheckSKUAvailability() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.SKUAvailabilityListResult = armcognitiveservices.SKUAvailabilityListResult{ + // Value: []*armcognitiveservices.SKUAvailability{ + // { + // Type: to.Ptr("Microsoft.CognitiveServices/accounts"), + // Kind: to.Ptr("Face"), + // SKUAvailable: to.Ptr(true), + // SKUName: to.Ptr("S0"), + // }}, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-10-01/examples/CheckDomainAvailability.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-12-01/examples/CheckDomainAvailability.json func ExampleManagementClient_CheckDomainAvailability() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -59,6 +70,13 @@ func ExampleManagementClient_CheckDomainAvailability() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.DomainAvailability = armcognitiveservices.DomainAvailability{ + // Type: to.Ptr("Microsoft.CognitiveServices/accounts"), + // IsSubdomainAvailable: to.Ptr(false), + // Reason: to.Ptr("Sub domain name 'contosodemoapp1' is not valid"), + // SubdomainName: to.Ptr("contosodemoapp1"), + // } } diff --git a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/models.go b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/models.go index 7576c18bbf9a..77e86229a183 100644 --- a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/models.go +++ b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/models.go @@ -29,7 +29,7 @@ type APIProperties struct { AADTenantID *string `json:"aadTenantId,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // (Personalization Only) The flag to enable statistics of Bing Search. EventHubConnectionString *string `json:"eventHubConnectionString,omitempty"` @@ -113,9 +113,15 @@ type AccountModel struct { // Cognitive Services account ModelDeprecationInfo. Deprecation *ModelDeprecationInfo `json:"deprecation,omitempty"` + // The capabilities for finetune models. + FinetuneCapabilities map[string]*string `json:"finetuneCapabilities,omitempty"` + // Deployment model format. Format *string `json:"format,omitempty"` + // Model lifecycle status. + LifecycleStatus *ModelLifecycleStatus `json:"lifecycleStatus,omitempty"` + // The max capacity. MaxCapacity *int32 `json:"maxCapacity,omitempty"` @@ -157,6 +163,9 @@ type AccountProperties struct { // The encryption properties for this resource. Encryption *Encryption `json:"encryption,omitempty"` + // The multiregion settings of Cognitive Services account. + Locations *MultiRegionSettings `json:"locations,omitempty"` + // Resource migration token. MigrationToken *string `json:"migrationToken,omitempty"` @@ -178,6 +187,9 @@ type AccountProperties struct { // The values are read-only and for reference only. Capabilities []*SKUCapability `json:"capabilities,omitempty" azure:"ro"` + // READ-ONLY; The commitment plan associations of Cognitive Services account. + CommitmentPlanAssociations []*CommitmentPlanAssociation `json:"commitmentPlanAssociations,omitempty" azure:"ro"` + // READ-ONLY; Gets the date of cognitive services account creation. DateCreated *string `json:"dateCreated,omitempty" azure:"ro"` @@ -250,7 +262,8 @@ type AccountsClientGetOptions struct { // placeholder for future optional parameters } -// AccountsClientListByResourceGroupOptions contains the optional parameters for the AccountsClient.ListByResourceGroup method. +// AccountsClientListByResourceGroupOptions contains the optional parameters for the AccountsClient.NewListByResourceGroupPager +// method. type AccountsClientListByResourceGroupOptions struct { // placeholder for future optional parameters } @@ -260,12 +273,12 @@ type AccountsClientListKeysOptions struct { // placeholder for future optional parameters } -// AccountsClientListModelsOptions contains the optional parameters for the AccountsClient.ListModels method. +// AccountsClientListModelsOptions contains the optional parameters for the AccountsClient.NewListModelsPager method. type AccountsClientListModelsOptions struct { // placeholder for future optional parameters } -// AccountsClientListOptions contains the optional parameters for the AccountsClient.List method. +// AccountsClientListOptions contains the optional parameters for the AccountsClient.NewListPager method. type AccountsClientListOptions struct { // placeholder for future optional parameters } @@ -365,9 +378,21 @@ type CommitmentPeriod struct { // CommitmentPlan - Cognitive Services account commitment plan. type CommitmentPlan struct { + // The Kind of the resource. + Kind *string `json:"kind,omitempty"` + + // The geo-location where the resource lives + Location *string `json:"location,omitempty"` + // Properties of Cognitive Services account commitment plan. Properties *CommitmentPlanProperties `json:"properties,omitempty"` + // The resource model definition representing SKU + SKU *SKU `json:"sku,omitempty"` + + // Resource tags. + Tags map[string]*string `json:"tags,omitempty"` + // READ-ONLY; Resource Etag. Etag *string `json:"etag,omitempty" azure:"ro"` @@ -384,6 +409,52 @@ type CommitmentPlan struct { Type *string `json:"type,omitempty" azure:"ro"` } +// CommitmentPlanAccountAssociation - The commitment plan association. +type CommitmentPlanAccountAssociation struct { + // Properties of Cognitive Services account commitment plan association. + Properties *CommitmentPlanAccountAssociationProperties `json:"properties,omitempty"` + + // READ-ONLY; Resource Etag. + Etag *string `json:"etag,omitempty" azure:"ro"` + + // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string `json:"id,omitempty" azure:"ro"` + + // READ-ONLY; The name of the resource + Name *string `json:"name,omitempty" azure:"ro"` + + // READ-ONLY; Metadata pertaining to creation and last modification of the resource. + SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + + // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string `json:"type,omitempty" azure:"ro"` +} + +// CommitmentPlanAccountAssociationListResult - The list of cognitive services Commitment Plan Account Association operation +// response. +type CommitmentPlanAccountAssociationListResult struct { + // The link used to get the next page of Commitment Plan Account Association. + NextLink *string `json:"nextLink,omitempty"` + + // READ-ONLY; Gets the list of Cognitive Services Commitment Plan Account Association and their properties. + Value []*CommitmentPlanAccountAssociation `json:"value,omitempty" azure:"ro"` +} + +// CommitmentPlanAccountAssociationProperties - The commitment plan account association properties. +type CommitmentPlanAccountAssociationProperties struct { + // The Azure resource id of the account. + AccountID *string `json:"accountId,omitempty"` +} + +// CommitmentPlanAssociation - The commitment plan association. +type CommitmentPlanAssociation struct { + // The Azure resource id of the commitment plan. + CommitmentPlanID *string `json:"commitmentPlanId,omitempty"` + + // The location of of the commitment plan. + CommitmentPlanLocation *string `json:"commitmentPlanLocation,omitempty"` +} + // CommitmentPlanListResult - The list of cognitive services accounts operation response. type CommitmentPlanListResult struct { // The link used to get the next page of CommitmentPlan. @@ -398,6 +469,9 @@ type CommitmentPlanProperties struct { // AutoRenew commitment plan. AutoRenew *bool `json:"autoRenew,omitempty"` + // Commitment plan guid. + CommitmentPlanGUID *string `json:"commitmentPlanGuid,omitempty"` + // Cognitive Services account commitment period. Current *CommitmentPeriod `json:"current,omitempty"` @@ -412,6 +486,30 @@ type CommitmentPlanProperties struct { // READ-ONLY; Cognitive Services account commitment period. Last *CommitmentPeriod `json:"last,omitempty" azure:"ro"` + + // READ-ONLY; Gets the status of the resource at the time the operation was called. + ProvisioningState *CommitmentPlanProvisioningState `json:"provisioningState,omitempty" azure:"ro"` +} + +// CommitmentPlansClientBeginCreateOrUpdateAssociationOptions contains the optional parameters for the CommitmentPlansClient.BeginCreateOrUpdateAssociation +// method. +type CommitmentPlansClientBeginCreateOrUpdateAssociationOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// CommitmentPlansClientBeginCreateOrUpdatePlanOptions contains the optional parameters for the CommitmentPlansClient.BeginCreateOrUpdatePlan +// method. +type CommitmentPlansClientBeginCreateOrUpdatePlanOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// CommitmentPlansClientBeginDeleteAssociationOptions contains the optional parameters for the CommitmentPlansClient.BeginDeleteAssociation +// method. +type CommitmentPlansClientBeginDeleteAssociationOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string } // CommitmentPlansClientBeginDeleteOptions contains the optional parameters for the CommitmentPlansClient.BeginDelete method. @@ -420,22 +518,65 @@ type CommitmentPlansClientBeginDeleteOptions struct { ResumeToken string } +// CommitmentPlansClientBeginDeletePlanOptions contains the optional parameters for the CommitmentPlansClient.BeginDeletePlan +// method. +type CommitmentPlansClientBeginDeletePlanOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// CommitmentPlansClientBeginUpdatePlanOptions contains the optional parameters for the CommitmentPlansClient.BeginUpdatePlan +// method. +type CommitmentPlansClientBeginUpdatePlanOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + // CommitmentPlansClientCreateOrUpdateOptions contains the optional parameters for the CommitmentPlansClient.CreateOrUpdate // method. type CommitmentPlansClientCreateOrUpdateOptions struct { // placeholder for future optional parameters } +// CommitmentPlansClientGetAssociationOptions contains the optional parameters for the CommitmentPlansClient.GetAssociation +// method. +type CommitmentPlansClientGetAssociationOptions struct { + // placeholder for future optional parameters +} + // CommitmentPlansClientGetOptions contains the optional parameters for the CommitmentPlansClient.Get method. type CommitmentPlansClientGetOptions struct { // placeholder for future optional parameters } -// CommitmentPlansClientListOptions contains the optional parameters for the CommitmentPlansClient.List method. +// CommitmentPlansClientGetPlanOptions contains the optional parameters for the CommitmentPlansClient.GetPlan method. +type CommitmentPlansClientGetPlanOptions struct { + // placeholder for future optional parameters +} + +// CommitmentPlansClientListAssociationsOptions contains the optional parameters for the CommitmentPlansClient.NewListAssociationsPager +// method. +type CommitmentPlansClientListAssociationsOptions struct { + // placeholder for future optional parameters +} + +// CommitmentPlansClientListOptions contains the optional parameters for the CommitmentPlansClient.NewListPager method. type CommitmentPlansClientListOptions struct { // placeholder for future optional parameters } +// CommitmentPlansClientListPlansByResourceGroupOptions contains the optional parameters for the CommitmentPlansClient.NewListPlansByResourceGroupPager +// method. +type CommitmentPlansClientListPlansByResourceGroupOptions struct { + // placeholder for future optional parameters +} + +// CommitmentPlansClientListPlansBySubscriptionOptions contains the optional parameters for the CommitmentPlansClient.NewListPlansBySubscriptionPager +// method. +type CommitmentPlansClientListPlansBySubscriptionOptions struct { + // placeholder for future optional parameters +} + // CommitmentQuota - Cognitive Services account commitment quota. type CommitmentQuota struct { // Commitment quota quantity. @@ -481,7 +622,7 @@ type CommitmentTierListResult struct { Value []*CommitmentTier `json:"value,omitempty" azure:"ro"` } -// CommitmentTiersClientListOptions contains the optional parameters for the CommitmentTiersClient.List method. +// CommitmentTiersClientListOptions contains the optional parameters for the CommitmentTiersClient.NewListPager method. type CommitmentTiersClientListOptions struct { // placeholder for future optional parameters } @@ -497,7 +638,7 @@ type DeletedAccountsClientGetOptions struct { // placeholder for future optional parameters } -// DeletedAccountsClientListOptions contains the optional parameters for the DeletedAccountsClient.List method. +// DeletedAccountsClientListOptions contains the optional parameters for the DeletedAccountsClient.NewListPager method. type DeletedAccountsClientListOptions struct { // placeholder for future optional parameters } @@ -598,7 +739,7 @@ type DeploymentsClientGetOptions struct { // placeholder for future optional parameters } -// DeploymentsClientListOptions contains the optional parameters for the DeploymentsClient.List method. +// DeploymentsClientListOptions contains the optional parameters for the DeploymentsClient.NewListPager method. type DeploymentsClientListOptions struct { // placeholder for future optional parameters } @@ -633,7 +774,7 @@ type Encryption struct { // ErrorAdditionalInfo - The resource management error additional info. type ErrorAdditionalInfo struct { // READ-ONLY; The additional info. - Info interface{} `json:"info,omitempty" azure:"ro"` + Info any `json:"info,omitempty" azure:"ro"` // READ-ONLY; The additional info type. Type *string `json:"type,omitempty" azure:"ro"` @@ -732,6 +873,14 @@ type ModelDeprecationInfo struct { Inference *string `json:"inference,omitempty"` } +// MultiRegionSettings - The multiregion settings Cognitive Services account. +type MultiRegionSettings struct { + Regions []*RegionSetting `json:"regions,omitempty"` + + // Multiregion routing methods. + RoutingMethod *RoutingMethods `json:"routingMethod,omitempty"` +} + // NetworkRuleSet - A set of rules governing the network accessibility. type NetworkRuleSet struct { // The default action when no rule from ipRules and from virtualNetworkRules match. This is only used after the bypass property @@ -794,11 +943,26 @@ type OperationListResult struct { Value []*Operation `json:"value,omitempty" azure:"ro"` } -// OperationsClientListOptions contains the optional parameters for the OperationsClient.List method. +// OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method. type OperationsClientListOptions struct { // placeholder for future optional parameters } +// PatchResourceTags - The object being used to update tags of a resource, in general used for PATCH operations. +type PatchResourceTags struct { + // Resource tags. + Tags map[string]*string `json:"tags,omitempty"` +} + +// PatchResourceTagsAndSKU - The object being used to update tags and sku of a resource, in general used for PATCH operations. +type PatchResourceTagsAndSKU struct { + // The resource model definition representing SKU + SKU *SKU `json:"sku,omitempty"` + + // Resource tags. + Tags map[string]*string `json:"tags,omitempty"` +} + // PrivateEndpoint - The Private Endpoint resource. type PrivateEndpoint struct { // READ-ONLY; The ARM identifier for Private Endpoint @@ -955,6 +1119,18 @@ type RegenerateKeyParameters struct { KeyName *KeyName `json:"keyName,omitempty"` } +// RegionSetting - The call rate limit Cognitive Services account. +type RegionSetting struct { + // Maps the region to the regional custom subdomain. + Customsubdomain *string `json:"customsubdomain,omitempty"` + + // Name of the region. + Name *string `json:"name,omitempty"` + + // A value for priority or weighted routing methods. + Value *float32 `json:"value,omitempty"` +} + type RequestMatchPattern struct { Method *string `json:"method,omitempty"` Path *string `json:"path,omitempty"` @@ -1026,7 +1202,7 @@ type ResourceSKURestrictions struct { Values []*string `json:"values,omitempty"` } -// ResourceSKUsClientListOptions contains the optional parameters for the ResourceSKUsClient.List method. +// ResourceSKUsClientListOptions contains the optional parameters for the ResourceSKUsClient.NewListPager method. type ResourceSKUsClientListOptions struct { // placeholder for future optional parameters } diff --git a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/models_serde.go b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/models_serde.go index e1164a8712f4..49fb99aa3cbb 100644 --- a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/models_serde.go +++ b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/models_serde.go @@ -18,7 +18,7 @@ import ( // MarshalJSON implements the json.Marshaller interface for type APIKeys. func (a APIKeys) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "key1", a.Key1) populate(objectMap, "key2", a.Key2) return json.Marshal(objectMap) @@ -49,7 +49,7 @@ func (a *APIKeys) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type APIProperties. func (a APIProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "aadClientId", a.AADClientID) populate(objectMap, "aadTenantId", a.AADTenantID) populate(objectMap, "eventHubConnectionString", a.EventHubConnectionString) @@ -109,10 +109,10 @@ func (a *APIProperties) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -127,7 +127,7 @@ func (a *APIProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Account. func (a Account) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "etag", a.Etag) populate(objectMap, "id", a.ID) populate(objectMap, "identity", a.Identity) @@ -194,7 +194,7 @@ func (a *Account) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AccountListResult. func (a AccountListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", a.NextLink) populate(objectMap, "value", a.Value) return json.Marshal(objectMap) @@ -225,12 +225,14 @@ func (a *AccountListResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AccountModel. func (a AccountModel) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "baseModel", a.BaseModel) populate(objectMap, "callRateLimit", a.CallRateLimit) populate(objectMap, "capabilities", a.Capabilities) populate(objectMap, "deprecation", a.Deprecation) + populate(objectMap, "finetuneCapabilities", a.FinetuneCapabilities) populate(objectMap, "format", a.Format) + populate(objectMap, "lifecycleStatus", a.LifecycleStatus) populate(objectMap, "maxCapacity", a.MaxCapacity) populate(objectMap, "name", a.Name) populate(objectMap, "systemData", a.SystemData) @@ -259,9 +261,15 @@ func (a *AccountModel) UnmarshalJSON(data []byte) error { case "deprecation": err = unpopulate(val, "Deprecation", &a.Deprecation) delete(rawMsg, key) + case "finetuneCapabilities": + err = unpopulate(val, "FinetuneCapabilities", &a.FinetuneCapabilities) + delete(rawMsg, key) case "format": err = unpopulate(val, "Format", &a.Format) delete(rawMsg, key) + case "lifecycleStatus": + err = unpopulate(val, "LifecycleStatus", &a.LifecycleStatus) + delete(rawMsg, key) case "maxCapacity": err = unpopulate(val, "MaxCapacity", &a.MaxCapacity) delete(rawMsg, key) @@ -284,7 +292,7 @@ func (a *AccountModel) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AccountModelListResult. func (a AccountModelListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", a.NextLink) populate(objectMap, "value", a.Value) return json.Marshal(objectMap) @@ -315,11 +323,12 @@ func (a *AccountModelListResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AccountProperties. func (a AccountProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "apiProperties", a.APIProperties) populate(objectMap, "allowedFqdnList", a.AllowedFqdnList) populate(objectMap, "callRateLimit", a.CallRateLimit) populate(objectMap, "capabilities", a.Capabilities) + populate(objectMap, "commitmentPlanAssociations", a.CommitmentPlanAssociations) populate(objectMap, "customSubDomainName", a.CustomSubDomainName) populate(objectMap, "dateCreated", a.DateCreated) populate(objectMap, "deletionDate", a.DeletionDate) @@ -330,6 +339,7 @@ func (a AccountProperties) MarshalJSON() ([]byte, error) { populate(objectMap, "endpoints", a.Endpoints) populate(objectMap, "internalId", a.InternalID) populate(objectMap, "isMigrated", a.IsMigrated) + populate(objectMap, "locations", a.Locations) populate(objectMap, "migrationToken", a.MigrationToken) populate(objectMap, "networkAcls", a.NetworkACLs) populate(objectMap, "privateEndpointConnections", a.PrivateEndpointConnections) @@ -365,6 +375,9 @@ func (a *AccountProperties) UnmarshalJSON(data []byte) error { case "capabilities": err = unpopulate(val, "Capabilities", &a.Capabilities) delete(rawMsg, key) + case "commitmentPlanAssociations": + err = unpopulate(val, "CommitmentPlanAssociations", &a.CommitmentPlanAssociations) + delete(rawMsg, key) case "customSubDomainName": err = unpopulate(val, "CustomSubDomainName", &a.CustomSubDomainName) delete(rawMsg, key) @@ -395,6 +408,9 @@ func (a *AccountProperties) UnmarshalJSON(data []byte) error { case "isMigrated": err = unpopulate(val, "IsMigrated", &a.IsMigrated) delete(rawMsg, key) + case "locations": + err = unpopulate(val, "Locations", &a.Locations) + delete(rawMsg, key) case "migrationToken": err = unpopulate(val, "MigrationToken", &a.MigrationToken) delete(rawMsg, key) @@ -438,7 +454,7 @@ func (a *AccountProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AccountSKU. func (a AccountSKU) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "resourceType", a.ResourceType) populate(objectMap, "sku", a.SKU) return json.Marshal(objectMap) @@ -469,7 +485,7 @@ func (a *AccountSKU) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AccountSKUListResult. func (a AccountSKUListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "value", a.Value) return json.Marshal(objectMap) } @@ -496,7 +512,7 @@ func (a *AccountSKUListResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureEntityResource. func (a AzureEntityResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "etag", a.Etag) populate(objectMap, "id", a.ID) populate(objectMap, "name", a.Name) @@ -535,7 +551,7 @@ func (a *AzureEntityResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CallRateLimit. func (c CallRateLimit) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "count", c.Count) populate(objectMap, "renewalPeriod", c.RenewalPeriod) populate(objectMap, "rules", c.Rules) @@ -570,7 +586,7 @@ func (c *CallRateLimit) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CheckDomainAvailabilityParameter. func (c CheckDomainAvailabilityParameter) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "kind", c.Kind) populate(objectMap, "subdomainName", c.SubdomainName) populate(objectMap, "type", c.Type) @@ -605,7 +621,7 @@ func (c *CheckDomainAvailabilityParameter) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CheckSKUAvailabilityParameter. func (c CheckSKUAvailabilityParameter) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "kind", c.Kind) populate(objectMap, "skus", c.SKUs) populate(objectMap, "type", c.Type) @@ -640,7 +656,7 @@ func (c *CheckSKUAvailabilityParameter) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CommitmentCost. func (c CommitmentCost) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "commitmentMeterId", c.CommitmentMeterID) populate(objectMap, "overageMeterId", c.OverageMeterID) return json.Marshal(objectMap) @@ -671,7 +687,7 @@ func (c *CommitmentCost) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CommitmentPeriod. func (c CommitmentPeriod) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "count", c.Count) populate(objectMap, "endDate", c.EndDate) populate(objectMap, "quota", c.Quota) @@ -714,12 +730,16 @@ func (c *CommitmentPeriod) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CommitmentPlan. func (c CommitmentPlan) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "etag", c.Etag) populate(objectMap, "id", c.ID) + populate(objectMap, "kind", c.Kind) + populate(objectMap, "location", c.Location) populate(objectMap, "name", c.Name) populate(objectMap, "properties", c.Properties) + populate(objectMap, "sku", c.SKU) populate(objectMap, "systemData", c.SystemData) + populate(objectMap, "tags", c.Tags) populate(objectMap, "type", c.Type) return json.Marshal(objectMap) } @@ -739,15 +759,27 @@ func (c *CommitmentPlan) UnmarshalJSON(data []byte) error { case "id": err = unpopulate(val, "ID", &c.ID) delete(rawMsg, key) + case "kind": + err = unpopulate(val, "Kind", &c.Kind) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &c.Location) + delete(rawMsg, key) case "name": err = unpopulate(val, "Name", &c.Name) delete(rawMsg, key) case "properties": err = unpopulate(val, "Properties", &c.Properties) delete(rawMsg, key) + case "sku": + err = unpopulate(val, "SKU", &c.SKU) + delete(rawMsg, key) case "systemData": err = unpopulate(val, "SystemData", &c.SystemData) delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &c.Tags) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &c.Type) delete(rawMsg, key) @@ -759,9 +791,145 @@ func (c *CommitmentPlan) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type CommitmentPlanAccountAssociation. +func (c CommitmentPlanAccountAssociation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "etag", c.Etag) + populate(objectMap, "id", c.ID) + populate(objectMap, "name", c.Name) + populate(objectMap, "properties", c.Properties) + populate(objectMap, "systemData", c.SystemData) + populate(objectMap, "type", c.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CommitmentPlanAccountAssociation. +func (c *CommitmentPlanAccountAssociation) 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 "etag": + err = unpopulate(val, "Etag", &c.Etag) + delete(rawMsg, key) + case "id": + err = unpopulate(val, "ID", &c.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &c.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &c.Properties) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &c.SystemData) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &c.Type) + 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 CommitmentPlanAccountAssociationListResult. +func (c CommitmentPlanAccountAssociationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", c.NextLink) + populate(objectMap, "value", c.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CommitmentPlanAccountAssociationListResult. +func (c *CommitmentPlanAccountAssociationListResult) 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 "nextLink": + err = unpopulate(val, "NextLink", &c.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &c.Value) + 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 CommitmentPlanAccountAssociationProperties. +func (c CommitmentPlanAccountAssociationProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "accountId", c.AccountID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CommitmentPlanAccountAssociationProperties. +func (c *CommitmentPlanAccountAssociationProperties) 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 "accountId": + err = unpopulate(val, "AccountID", &c.AccountID) + 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 CommitmentPlanAssociation. +func (c CommitmentPlanAssociation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "commitmentPlanId", c.CommitmentPlanID) + populate(objectMap, "commitmentPlanLocation", c.CommitmentPlanLocation) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CommitmentPlanAssociation. +func (c *CommitmentPlanAssociation) 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 "commitmentPlanId": + err = unpopulate(val, "CommitmentPlanID", &c.CommitmentPlanID) + delete(rawMsg, key) + case "commitmentPlanLocation": + err = unpopulate(val, "CommitmentPlanLocation", &c.CommitmentPlanLocation) + 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 CommitmentPlanListResult. func (c CommitmentPlanListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", c.NextLink) populate(objectMap, "value", c.Value) return json.Marshal(objectMap) @@ -792,13 +960,15 @@ func (c *CommitmentPlanListResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CommitmentPlanProperties. func (c CommitmentPlanProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "autoRenew", c.AutoRenew) + populate(objectMap, "commitmentPlanGuid", c.CommitmentPlanGUID) populate(objectMap, "current", c.Current) populate(objectMap, "hostingModel", c.HostingModel) populate(objectMap, "last", c.Last) populate(objectMap, "next", c.Next) populate(objectMap, "planType", c.PlanType) + populate(objectMap, "provisioningState", c.ProvisioningState) return json.Marshal(objectMap) } @@ -814,6 +984,9 @@ func (c *CommitmentPlanProperties) UnmarshalJSON(data []byte) error { case "autoRenew": err = unpopulate(val, "AutoRenew", &c.AutoRenew) delete(rawMsg, key) + case "commitmentPlanGuid": + err = unpopulate(val, "CommitmentPlanGUID", &c.CommitmentPlanGUID) + delete(rawMsg, key) case "current": err = unpopulate(val, "Current", &c.Current) delete(rawMsg, key) @@ -829,6 +1002,9 @@ func (c *CommitmentPlanProperties) UnmarshalJSON(data []byte) error { case "planType": err = unpopulate(val, "PlanType", &c.PlanType) delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &c.ProvisioningState) + delete(rawMsg, key) } if err != nil { return fmt.Errorf("unmarshalling type %T: %v", c, err) @@ -839,7 +1015,7 @@ func (c *CommitmentPlanProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CommitmentQuota. func (c CommitmentQuota) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "quantity", c.Quantity) populate(objectMap, "unit", c.Unit) return json.Marshal(objectMap) @@ -870,7 +1046,7 @@ func (c *CommitmentQuota) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CommitmentTier. func (c CommitmentTier) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "cost", c.Cost) populate(objectMap, "hostingModel", c.HostingModel) populate(objectMap, "kind", c.Kind) @@ -925,7 +1101,7 @@ func (c *CommitmentTier) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CommitmentTierListResult. func (c CommitmentTierListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", c.NextLink) populate(objectMap, "value", c.Value) return json.Marshal(objectMap) @@ -956,7 +1132,7 @@ func (c *CommitmentTierListResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Deployment. func (d Deployment) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "etag", d.Etag) populate(objectMap, "id", d.ID) populate(objectMap, "name", d.Name) @@ -1003,7 +1179,7 @@ func (d *Deployment) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DeploymentListResult. func (d DeploymentListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", d.NextLink) populate(objectMap, "value", d.Value) return json.Marshal(objectMap) @@ -1034,7 +1210,7 @@ func (d *DeploymentListResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DeploymentModel. func (d DeploymentModel) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "callRateLimit", d.CallRateLimit) populate(objectMap, "format", d.Format) populate(objectMap, "name", d.Name) @@ -1073,7 +1249,7 @@ func (d *DeploymentModel) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DeploymentProperties. func (d DeploymentProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "callRateLimit", d.CallRateLimit) populate(objectMap, "capabilities", d.Capabilities) populate(objectMap, "model", d.Model) @@ -1120,7 +1296,7 @@ func (d *DeploymentProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DeploymentScaleSettings. func (d DeploymentScaleSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "activeCapacity", d.ActiveCapacity) populate(objectMap, "capacity", d.Capacity) populate(objectMap, "scaleType", d.ScaleType) @@ -1155,7 +1331,7 @@ func (d *DeploymentScaleSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DomainAvailability. func (d DomainAvailability) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "isSubdomainAvailable", d.IsSubdomainAvailable) populate(objectMap, "kind", d.Kind) populate(objectMap, "reason", d.Reason) @@ -1198,7 +1374,7 @@ func (d *DomainAvailability) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Encryption. func (e Encryption) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "keySource", e.KeySource) populate(objectMap, "keyVaultProperties", e.KeyVaultProperties) return json.Marshal(objectMap) @@ -1229,7 +1405,7 @@ func (e *Encryption) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ErrorAdditionalInfo. func (e ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "info", &e.Info) populate(objectMap, "type", e.Type) return json.Marshal(objectMap) @@ -1260,7 +1436,7 @@ func (e *ErrorAdditionalInfo) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ErrorDetail. func (e ErrorDetail) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalInfo", e.AdditionalInfo) populate(objectMap, "code", e.Code) populate(objectMap, "details", e.Details) @@ -1303,7 +1479,7 @@ func (e *ErrorDetail) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ErrorResponse. func (e ErrorResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "error", e.Error) return json.Marshal(objectMap) } @@ -1330,7 +1506,7 @@ func (e *ErrorResponse) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type IPRule. func (i IPRule) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "value", i.Value) return json.Marshal(objectMap) } @@ -1357,7 +1533,7 @@ func (i *IPRule) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Identity. func (i Identity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "principalId", i.PrincipalID) populate(objectMap, "tenantId", i.TenantID) populate(objectMap, "type", i.Type) @@ -1396,7 +1572,7 @@ func (i *Identity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type KeyVaultProperties. func (k KeyVaultProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "identityClientId", k.IdentityClientID) populate(objectMap, "keyName", k.KeyName) populate(objectMap, "keyVaultUri", k.KeyVaultURI) @@ -1435,7 +1611,7 @@ func (k *KeyVaultProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MetricName. func (m MetricName) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "localizedValue", m.LocalizedValue) populate(objectMap, "value", m.Value) return json.Marshal(objectMap) @@ -1466,7 +1642,7 @@ func (m *MetricName) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ModelDeprecationInfo. func (m ModelDeprecationInfo) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "fineTune", m.FineTune) populate(objectMap, "inference", m.Inference) return json.Marshal(objectMap) @@ -1495,9 +1671,40 @@ func (m *ModelDeprecationInfo) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type MultiRegionSettings. +func (m MultiRegionSettings) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "regions", m.Regions) + populate(objectMap, "routingMethod", m.RoutingMethod) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type MultiRegionSettings. +func (m *MultiRegionSettings) 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 "regions": + err = unpopulate(val, "Regions", &m.Regions) + delete(rawMsg, key) + case "routingMethod": + err = unpopulate(val, "RoutingMethod", &m.RoutingMethod) + 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 NetworkRuleSet. func (n NetworkRuleSet) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "defaultAction", n.DefaultAction) populate(objectMap, "ipRules", n.IPRules) populate(objectMap, "virtualNetworkRules", n.VirtualNetworkRules) @@ -1532,7 +1739,7 @@ func (n *NetworkRuleSet) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Operation. func (o Operation) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "actionType", o.ActionType) populate(objectMap, "display", o.Display) populate(objectMap, "isDataAction", o.IsDataAction) @@ -1575,7 +1782,7 @@ func (o *Operation) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OperationDisplay. func (o OperationDisplay) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "description", o.Description) populate(objectMap, "operation", o.Operation) populate(objectMap, "provider", o.Provider) @@ -1614,7 +1821,7 @@ func (o *OperationDisplay) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OperationListResult. func (o OperationListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", o.NextLink) populate(objectMap, "value", o.Value) return json.Marshal(objectMap) @@ -1643,9 +1850,67 @@ func (o *OperationListResult) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type PatchResourceTags. +func (p PatchResourceTags) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "tags", p.Tags) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PatchResourceTags. +func (p *PatchResourceTags) 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", p, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "tags": + err = unpopulate(val, "Tags", &p.Tags) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", p, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type PatchResourceTagsAndSKU. +func (p PatchResourceTagsAndSKU) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "sku", p.SKU) + populate(objectMap, "tags", p.Tags) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PatchResourceTagsAndSKU. +func (p *PatchResourceTagsAndSKU) 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", p, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "sku": + err = unpopulate(val, "SKU", &p.SKU) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &p.Tags) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", p, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type PrivateEndpoint. func (p PrivateEndpoint) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", p.ID) return json.Marshal(objectMap) } @@ -1672,7 +1937,7 @@ func (p *PrivateEndpoint) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PrivateEndpointConnection. func (p PrivateEndpointConnection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "etag", p.Etag) populate(objectMap, "id", p.ID) populate(objectMap, "location", p.Location) @@ -1723,7 +1988,7 @@ func (p *PrivateEndpointConnection) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PrivateEndpointConnectionListResult. func (p PrivateEndpointConnectionListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "value", p.Value) return json.Marshal(objectMap) } @@ -1750,7 +2015,7 @@ func (p *PrivateEndpointConnectionListResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PrivateEndpointConnectionProperties. func (p PrivateEndpointConnectionProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "groupIds", p.GroupIDs) populate(objectMap, "privateEndpoint", p.PrivateEndpoint) populate(objectMap, "privateLinkServiceConnectionState", p.PrivateLinkServiceConnectionState) @@ -1789,7 +2054,7 @@ func (p *PrivateEndpointConnectionProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PrivateLinkResource. func (p PrivateLinkResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", p.ID) populate(objectMap, "name", p.Name) populate(objectMap, "properties", p.Properties) @@ -1828,7 +2093,7 @@ func (p *PrivateLinkResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PrivateLinkResourceListResult. func (p PrivateLinkResourceListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "value", p.Value) return json.Marshal(objectMap) } @@ -1855,7 +2120,7 @@ func (p *PrivateLinkResourceListResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PrivateLinkResourceProperties. func (p PrivateLinkResourceProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "displayName", p.DisplayName) populate(objectMap, "groupId", p.GroupID) populate(objectMap, "requiredMembers", p.RequiredMembers) @@ -1894,7 +2159,7 @@ func (p *PrivateLinkResourceProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PrivateLinkServiceConnectionState. func (p PrivateLinkServiceConnectionState) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "actionsRequired", p.ActionsRequired) populate(objectMap, "description", p.Description) populate(objectMap, "status", p.Status) @@ -1929,7 +2194,7 @@ func (p *PrivateLinkServiceConnectionState) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ProxyResource. func (p ProxyResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", p.ID) populate(objectMap, "name", p.Name) populate(objectMap, "type", p.Type) @@ -1964,7 +2229,7 @@ func (p *ProxyResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type QuotaLimit. func (q QuotaLimit) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "count", q.Count) populate(objectMap, "renewalPeriod", q.RenewalPeriod) populate(objectMap, "rules", q.Rules) @@ -1999,7 +2264,7 @@ func (q *QuotaLimit) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RegenerateKeyParameters. func (r RegenerateKeyParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "keyName", r.KeyName) return json.Marshal(objectMap) } @@ -2024,9 +2289,44 @@ func (r *RegenerateKeyParameters) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type RegionSetting. +func (r RegionSetting) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "customsubdomain", r.Customsubdomain) + populate(objectMap, "name", r.Name) + populate(objectMap, "value", r.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RegionSetting. +func (r *RegionSetting) 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 "customsubdomain": + err = unpopulate(val, "Customsubdomain", &r.Customsubdomain) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &r.Name) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &r.Value) + 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 RequestMatchPattern. func (r RequestMatchPattern) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "method", r.Method) populate(objectMap, "path", r.Path) return json.Marshal(objectMap) @@ -2057,7 +2357,7 @@ func (r *RequestMatchPattern) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Resource. func (r Resource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", r.ID) populate(objectMap, "name", r.Name) populate(objectMap, "type", r.Type) @@ -2092,7 +2392,7 @@ func (r *Resource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ResourceSKU. func (r ResourceSKU) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "kind", r.Kind) populate(objectMap, "locations", r.Locations) populate(objectMap, "name", r.Name) @@ -2139,7 +2439,7 @@ func (r *ResourceSKU) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ResourceSKUListResult. func (r ResourceSKUListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", r.NextLink) populate(objectMap, "value", r.Value) return json.Marshal(objectMap) @@ -2170,7 +2470,7 @@ func (r *ResourceSKUListResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ResourceSKURestrictionInfo. func (r ResourceSKURestrictionInfo) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "locations", r.Locations) populate(objectMap, "zones", r.Zones) return json.Marshal(objectMap) @@ -2201,7 +2501,7 @@ func (r *ResourceSKURestrictionInfo) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ResourceSKURestrictions. func (r ResourceSKURestrictions) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "reasonCode", r.ReasonCode) populate(objectMap, "restrictionInfo", r.RestrictionInfo) populate(objectMap, "type", r.Type) @@ -2240,7 +2540,7 @@ func (r *ResourceSKURestrictions) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SKU. func (s SKU) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "capacity", s.Capacity) populate(objectMap, "family", s.Family) populate(objectMap, "name", s.Name) @@ -2283,7 +2583,7 @@ func (s *SKU) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SKUAvailability. func (s SKUAvailability) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "kind", s.Kind) populate(objectMap, "message", s.Message) populate(objectMap, "reason", s.Reason) @@ -2330,7 +2630,7 @@ func (s *SKUAvailability) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SKUAvailabilityListResult. func (s SKUAvailabilityListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "value", s.Value) return json.Marshal(objectMap) } @@ -2357,7 +2657,7 @@ func (s *SKUAvailabilityListResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SKUCapability. func (s SKUCapability) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "name", s.Name) populate(objectMap, "value", s.Value) return json.Marshal(objectMap) @@ -2388,7 +2688,7 @@ func (s *SKUCapability) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SKUChangeInfo. func (s SKUChangeInfo) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "countOfDowngrades", s.CountOfDowngrades) populate(objectMap, "countOfUpgradesAfterDowngrades", s.CountOfUpgradesAfterDowngrades) populate(objectMap, "lastChangeDate", s.LastChangeDate) @@ -2423,7 +2723,7 @@ func (s *SKUChangeInfo) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SystemData. func (s SystemData) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populateTimeRFC3339(objectMap, "createdAt", s.CreatedAt) populate(objectMap, "createdBy", s.CreatedBy) populate(objectMap, "createdByType", s.CreatedByType) @@ -2470,7 +2770,7 @@ func (s *SystemData) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ThrottlingRule. func (t ThrottlingRule) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "count", t.Count) populate(objectMap, "dynamicThrottlingEnabled", t.DynamicThrottlingEnabled) populate(objectMap, "key", t.Key) @@ -2517,7 +2817,7 @@ func (t *ThrottlingRule) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Usage. func (u Usage) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "currentValue", u.CurrentValue) populate(objectMap, "limit", u.Limit) populate(objectMap, "name", u.Name) @@ -2568,7 +2868,7 @@ func (u *Usage) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type UsageListResult. func (u UsageListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "value", u.Value) return json.Marshal(objectMap) } @@ -2595,7 +2895,7 @@ func (u *UsageListResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type UserAssignedIdentity. func (u UserAssignedIdentity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "clientId", u.ClientID) populate(objectMap, "principalId", u.PrincipalID) return json.Marshal(objectMap) @@ -2626,7 +2926,7 @@ func (u *UserAssignedIdentity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type UserOwnedStorage. func (u UserOwnedStorage) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "identityClientId", u.IdentityClientID) populate(objectMap, "resourceId", u.ResourceID) return json.Marshal(objectMap) @@ -2657,7 +2957,7 @@ func (u *UserOwnedStorage) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type VirtualNetworkRule. func (v VirtualNetworkRule) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", v.ID) populate(objectMap, "ignoreMissingVnetServiceEndpoint", v.IgnoreMissingVnetServiceEndpoint) populate(objectMap, "state", v.State) @@ -2690,7 +2990,7 @@ func (v *VirtualNetworkRule) UnmarshalJSON(data []byte) error { return nil } -func populate(m map[string]interface{}, k string, v interface{}) { +func populate(m map[string]any, k string, v any) { if v == nil { return } else if azcore.IsNullValue(v) { @@ -2700,7 +3000,7 @@ func populate(m map[string]interface{}, k string, v interface{}) { } } -func unpopulate(data json.RawMessage, fn string, v interface{}) error { +func unpopulate(data json.RawMessage, fn string, v any) error { if data == nil { return nil } diff --git a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/operations_client.go b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/operations_client.go index 13b411d39e24..c07950a2eae2 100644 --- a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/operations_client.go +++ b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/operations_client.go @@ -28,8 +28,8 @@ type OperationsClient struct { } // NewOperationsClient creates a new instance of OperationsClient with the specified values. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*OperationsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -50,8 +50,9 @@ func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientO } // NewListPager - Lists all the available Cognitive Services account operations. -// Generated from API version 2022-10-01 -// options - OperationsClientListOptions contains the optional parameters for the OperationsClient.List method. +// +// Generated from API version 2022-12-01 +// - options - OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method. func (client *OperationsClient) NewListPager(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse] { return runtime.NewPager(runtime.PagingHandler[OperationsClientListResponse]{ More: func(page OperationsClientListResponse) bool { @@ -88,7 +89,7 @@ func (client *OperationsClient) listCreateRequest(ctx context.Context, options * return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-10-01") + reqQP.Set("api-version", "2022-12-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/operations_client_example_test.go b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/operations_client_example_test.go index f48dc4d030a5..3ef5511ad2c1 100644 --- a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/operations_client_example_test.go +++ b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/operations_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armcognitiveservices_test @@ -16,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cognitiveservices/armcognitiveservices" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-10-01/examples/GetOperations.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-12-01/examples/GetOperations.json func ExampleOperationsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -29,13 +30,47 @@ func ExampleOperationsClient_NewListPager() { } pager := client.NewListPager(nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.OperationListResult = armcognitiveservices.OperationListResult{ + // Value: []*armcognitiveservices.Operation{ + // { + // Name: to.Ptr("Microsoft.CognitiveServices/accounts/read"), + // Display: &armcognitiveservices.OperationDisplay{ + // Description: to.Ptr("Reads API accounts."), + // Operation: to.Ptr("Read API Account"), + // Provider: to.Ptr("Microsoft Cognitive Services"), + // Resource: to.Ptr("Cognitive Services API Account"), + // }, + // Origin: to.Ptr(armcognitiveservices.OriginUserSystem), + // }, + // { + // Name: to.Ptr("Microsoft.CognitiveServices/accounts/write"), + // Display: &armcognitiveservices.OperationDisplay{ + // Description: to.Ptr("Writes API Accounts."), + // Operation: to.Ptr("Write API Account"), + // Provider: to.Ptr("Microsoft Cognitive Services"), + // Resource: to.Ptr("Cognitive Services API Account"), + // }, + // Origin: to.Ptr(armcognitiveservices.OriginUserSystem), + // }, + // { + // Name: to.Ptr("Microsoft.CognitiveServices/accounts/delete"), + // Display: &armcognitiveservices.OperationDisplay{ + // Description: to.Ptr("Deletes API accounts"), + // Operation: to.Ptr("Delete API Account"), + // Provider: to.Ptr("Microsoft Cognitive Services"), + // Resource: to.Ptr("Cognitive Services API Account"), + // }, + // Origin: to.Ptr(armcognitiveservices.OriginUserSystem), + // }}, + // } } } diff --git a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/privateendpointconnections_client.go b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/privateendpointconnections_client.go index 2eafc566b270..e091478b171a 100644 --- a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/privateendpointconnections_client.go +++ b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/privateendpointconnections_client.go @@ -32,9 +32,9 @@ type PrivateEndpointConnectionsClient struct { } // NewPrivateEndpointConnectionsClient creates a new instance of PrivateEndpointConnectionsClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewPrivateEndpointConnectionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PrivateEndpointConnectionsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -58,13 +58,14 @@ func NewPrivateEndpointConnectionsClient(subscriptionID string, credential azcor // BeginCreateOrUpdate - Update the state of specified private endpoint connection associated with the Cognitive Services // account. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-10-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - The name of Cognitive Services account. -// privateEndpointConnectionName - The name of the private endpoint connection associated with the Cognitive Services Account -// properties - The private endpoint connection properties. -// options - PrivateEndpointConnectionsClientBeginCreateOrUpdateOptions contains the optional parameters for the PrivateEndpointConnectionsClient.BeginCreateOrUpdate -// method. +// +// Generated from API version 2022-12-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - The name of Cognitive Services account. +// - privateEndpointConnectionName - The name of the private endpoint connection associated with the Cognitive Services Account +// - properties - The private endpoint connection properties. +// - options - PrivateEndpointConnectionsClientBeginCreateOrUpdateOptions contains the optional parameters for the PrivateEndpointConnectionsClient.BeginCreateOrUpdate +// method. func (client *PrivateEndpointConnectionsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, accountName string, privateEndpointConnectionName string, properties PrivateEndpointConnection, options *PrivateEndpointConnectionsClientBeginCreateOrUpdateOptions) (*runtime.Poller[PrivateEndpointConnectionsClientCreateOrUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createOrUpdate(ctx, resourceGroupName, accountName, privateEndpointConnectionName, properties, options) @@ -79,7 +80,8 @@ func (client *PrivateEndpointConnectionsClient) BeginCreateOrUpdate(ctx context. // CreateOrUpdate - Update the state of specified private endpoint connection associated with the Cognitive Services account. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-10-01 +// +// Generated from API version 2022-12-01 func (client *PrivateEndpointConnectionsClient) createOrUpdate(ctx context.Context, resourceGroupName string, accountName string, privateEndpointConnectionName string, properties PrivateEndpointConnection, options *PrivateEndpointConnectionsClientBeginCreateOrUpdateOptions) (*http.Response, error) { req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, accountName, privateEndpointConnectionName, properties, options) if err != nil { @@ -119,7 +121,7 @@ func (client *PrivateEndpointConnectionsClient) createOrUpdateCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-10-01") + reqQP.Set("api-version", "2022-12-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, properties) @@ -127,12 +129,13 @@ func (client *PrivateEndpointConnectionsClient) createOrUpdateCreateRequest(ctx // BeginDelete - Deletes the specified private endpoint connection associated with the Cognitive Services account. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-10-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - The name of Cognitive Services account. -// privateEndpointConnectionName - The name of the private endpoint connection associated with the Cognitive Services Account -// options - PrivateEndpointConnectionsClientBeginDeleteOptions contains the optional parameters for the PrivateEndpointConnectionsClient.BeginDelete -// method. +// +// Generated from API version 2022-12-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - The name of Cognitive Services account. +// - privateEndpointConnectionName - The name of the private endpoint connection associated with the Cognitive Services Account +// - options - PrivateEndpointConnectionsClientBeginDeleteOptions contains the optional parameters for the PrivateEndpointConnectionsClient.BeginDelete +// method. func (client *PrivateEndpointConnectionsClient) BeginDelete(ctx context.Context, resourceGroupName string, accountName string, privateEndpointConnectionName string, options *PrivateEndpointConnectionsClientBeginDeleteOptions) (*runtime.Poller[PrivateEndpointConnectionsClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, accountName, privateEndpointConnectionName, options) @@ -147,7 +150,8 @@ func (client *PrivateEndpointConnectionsClient) BeginDelete(ctx context.Context, // Delete - Deletes the specified private endpoint connection associated with the Cognitive Services account. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-10-01 +// +// Generated from API version 2022-12-01 func (client *PrivateEndpointConnectionsClient) deleteOperation(ctx context.Context, resourceGroupName string, accountName string, privateEndpointConnectionName string, options *PrivateEndpointConnectionsClientBeginDeleteOptions) (*http.Response, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, accountName, privateEndpointConnectionName, options) if err != nil { @@ -187,7 +191,7 @@ func (client *PrivateEndpointConnectionsClient) deleteCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-10-01") + reqQP.Set("api-version", "2022-12-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -195,12 +199,13 @@ func (client *PrivateEndpointConnectionsClient) deleteCreateRequest(ctx context. // Get - Gets the specified private endpoint connection associated with the Cognitive Services account. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-10-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - The name of Cognitive Services account. -// privateEndpointConnectionName - The name of the private endpoint connection associated with the Cognitive Services Account -// options - PrivateEndpointConnectionsClientGetOptions contains the optional parameters for the PrivateEndpointConnectionsClient.Get -// method. +// +// Generated from API version 2022-12-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - The name of Cognitive Services account. +// - privateEndpointConnectionName - The name of the private endpoint connection associated with the Cognitive Services Account +// - options - PrivateEndpointConnectionsClientGetOptions contains the optional parameters for the PrivateEndpointConnectionsClient.Get +// method. func (client *PrivateEndpointConnectionsClient) Get(ctx context.Context, resourceGroupName string, accountName string, privateEndpointConnectionName string, options *PrivateEndpointConnectionsClientGetOptions) (PrivateEndpointConnectionsClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, accountName, privateEndpointConnectionName, options) if err != nil { @@ -240,7 +245,7 @@ func (client *PrivateEndpointConnectionsClient) getCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-10-01") + reqQP.Set("api-version", "2022-12-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -257,11 +262,12 @@ func (client *PrivateEndpointConnectionsClient) getHandleResponse(resp *http.Res // List - Gets the private endpoint connections associated with the Cognitive Services account. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-10-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - The name of Cognitive Services account. -// options - PrivateEndpointConnectionsClientListOptions contains the optional parameters for the PrivateEndpointConnectionsClient.List -// method. +// +// Generated from API version 2022-12-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - The name of Cognitive Services account. +// - options - PrivateEndpointConnectionsClientListOptions contains the optional parameters for the PrivateEndpointConnectionsClient.List +// method. func (client *PrivateEndpointConnectionsClient) List(ctx context.Context, resourceGroupName string, accountName string, options *PrivateEndpointConnectionsClientListOptions) (PrivateEndpointConnectionsClientListResponse, error) { req, err := client.listCreateRequest(ctx, resourceGroupName, accountName, options) if err != nil { @@ -297,7 +303,7 @@ func (client *PrivateEndpointConnectionsClient) listCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-10-01") + reqQP.Set("api-version", "2022-12-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/privateendpointconnections_client_example_test.go b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/privateendpointconnections_client_example_test.go index 04151a5a0a74..31dd27d68148 100644 --- a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/privateendpointconnections_client_example_test.go +++ b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/privateendpointconnections_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armcognitiveservices_test @@ -17,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cognitiveservices/armcognitiveservices" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-10-01/examples/ListPrivateEndpointConnections.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-12-01/examples/ListPrivateEndpointConnections.json func ExamplePrivateEndpointConnectionsClient_List() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -32,11 +33,30 @@ func ExamplePrivateEndpointConnectionsClient_List() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.PrivateEndpointConnectionListResult = armcognitiveservices.PrivateEndpointConnectionListResult{ + // Value: []*armcognitiveservices.PrivateEndpointConnection{ + // { + // Name: to.Ptr("{privateEndpointConnectionName}"), + // Type: to.Ptr("Microsoft.CognitiveServices/accounts/privateEndpointConnections"), + // ID: to.Ptr("/subscriptions/{subscription-id}/resourceGroups/res7231/providers/Microsoft.CognitiveServices/accounts/sto288/privateEndpointConnections/{privateEndpointConnectionName}"), + // Properties: &armcognitiveservices.PrivateEndpointConnectionProperties{ + // PrivateEndpoint: &armcognitiveservices.PrivateEndpoint{ + // ID: to.Ptr("/subscriptions/{subscription-id}/resourceGroups/res7231/providers/Microsoft.Network/privateEndpoints/petest01"), + // }, + // PrivateLinkServiceConnectionState: &armcognitiveservices.PrivateLinkServiceConnectionState{ + // Description: to.Ptr("Auto-Approved"), + // ActionsRequired: to.Ptr("None"), + // Status: to.Ptr(armcognitiveservices.PrivateEndpointServiceConnectionStatusApproved), + // }, + // }, + // }}, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-10-01/examples/GetPrivateEndpointConnection.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-12-01/examples/GetPrivateEndpointConnection.json func ExamplePrivateEndpointConnectionsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -51,11 +71,27 @@ func ExamplePrivateEndpointConnectionsClient_Get() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.PrivateEndpointConnection = armcognitiveservices.PrivateEndpointConnection{ + // Name: to.Ptr("{privateEndpointConnectionName}"), + // Type: to.Ptr("Microsoft.CognitiveServices/accounts/privateEndpointConnections"), + // ID: to.Ptr("/subscriptions/{subscription-id}/resourceGroups/res7231/providers/Microsoft.CognitiveServices/accounts/sto288/privateEndpointConnections/{privateEndpointConnectionName}"), + // Properties: &armcognitiveservices.PrivateEndpointConnectionProperties{ + // PrivateEndpoint: &armcognitiveservices.PrivateEndpoint{ + // ID: to.Ptr("/subscriptions/{subscription-id}/resourceGroups/res7231/providers/Microsoft.Network/privateEndpoints/petest01"), + // }, + // PrivateLinkServiceConnectionState: &armcognitiveservices.PrivateLinkServiceConnectionState{ + // Description: to.Ptr("Auto-Approved"), + // ActionsRequired: to.Ptr("None"), + // Status: to.Ptr(armcognitiveservices.PrivateEndpointServiceConnectionStatusApproved), + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-10-01/examples/PutPrivateEndpointConnection.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-12-01/examples/PutPrivateEndpointConnection.json func ExamplePrivateEndpointConnectionsClient_BeginCreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -81,11 +117,27 @@ func ExamplePrivateEndpointConnectionsClient_BeginCreateOrUpdate() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.PrivateEndpointConnection = armcognitiveservices.PrivateEndpointConnection{ + // Name: to.Ptr("{privateEndpointConnectionName}"), + // Type: to.Ptr("Microsoft.CognitiveServices/accounts/privateEndpointConnections"), + // ID: to.Ptr("/subscriptions/{subscription-id}/resourceGroups/res7231/providers/Microsoft.CognitiveServices/accounts/sto288/privateEndpointConnections/{privateEndpointConnectionName}"), + // Properties: &armcognitiveservices.PrivateEndpointConnectionProperties{ + // PrivateEndpoint: &armcognitiveservices.PrivateEndpoint{ + // ID: to.Ptr("/subscriptions/{subscription-id}/resourceGroups/res7231/providers/Microsoft.Network/privateEndpoints/petest01"), + // }, + // PrivateLinkServiceConnectionState: &armcognitiveservices.PrivateLinkServiceConnectionState{ + // Description: to.Ptr("Auto-Approved"), + // ActionsRequired: to.Ptr("None"), + // Status: to.Ptr(armcognitiveservices.PrivateEndpointServiceConnectionStatusApproved), + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-10-01/examples/DeletePrivateEndpointConnection.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-12-01/examples/DeletePrivateEndpointConnection.json func ExamplePrivateEndpointConnectionsClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/privatelinkresources_client.go b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/privatelinkresources_client.go index 1b9a365d25d8..a5f4b3172a74 100644 --- a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/privatelinkresources_client.go +++ b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/privatelinkresources_client.go @@ -32,9 +32,9 @@ type PrivateLinkResourcesClient struct { } // NewPrivateLinkResourcesClient creates a new instance of PrivateLinkResourcesClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewPrivateLinkResourcesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PrivateLinkResourcesClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,11 +57,12 @@ func NewPrivateLinkResourcesClient(subscriptionID string, credential azcore.Toke // List - Gets the private link resources that need to be created for a Cognitive Services account. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-10-01 -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - The name of Cognitive Services account. -// options - PrivateLinkResourcesClientListOptions contains the optional parameters for the PrivateLinkResourcesClient.List -// method. +// +// Generated from API version 2022-12-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - The name of Cognitive Services account. +// - options - PrivateLinkResourcesClientListOptions contains the optional parameters for the PrivateLinkResourcesClient.List +// method. func (client *PrivateLinkResourcesClient) List(ctx context.Context, resourceGroupName string, accountName string, options *PrivateLinkResourcesClientListOptions) (PrivateLinkResourcesClientListResponse, error) { req, err := client.listCreateRequest(ctx, resourceGroupName, accountName, options) if err != nil { @@ -97,7 +98,7 @@ func (client *PrivateLinkResourcesClient) listCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-10-01") + reqQP.Set("api-version", "2022-12-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/privatelinkresources_client_example_test.go b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/privatelinkresources_client_example_test.go index 73af2fb04d66..2c6e317431cc 100644 --- a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/privatelinkresources_client_example_test.go +++ b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/privatelinkresources_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armcognitiveservices_test @@ -16,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cognitiveservices/armcognitiveservices" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-10-01/examples/ListPrivateLinkResources.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-12-01/examples/ListPrivateLinkResources.json func ExamplePrivateLinkResourcesClient_List() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -31,6 +32,22 @@ func ExamplePrivateLinkResourcesClient_List() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.PrivateLinkResourceListResult = armcognitiveservices.PrivateLinkResourceListResult{ + // Value: []*armcognitiveservices.PrivateLinkResource{ + // { + // Name: to.Ptr("blob"), + // Type: to.Ptr("Microsoft.CognitiveServices/accounts/privateLinkResources"), + // ID: to.Ptr("/subscriptions/{subscription-id}/resourceGroups/res6977/providers/Microsoft.CognitiveServices/accounts/sto2527/privateLinkResources/account"), + // Properties: &armcognitiveservices.PrivateLinkResourceProperties{ + // GroupID: to.Ptr("account"), + // RequiredMembers: []*string{ + // to.Ptr("default")}, + // RequiredZoneNames: []*string{ + // to.Ptr("privatelink.cognitiveservices.azure.com")}, + // }, + // }}, + // } } diff --git a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/resourceskus_client.go b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/resourceskus_client.go index bc5f4cf7e793..dffab6fc46a5 100644 --- a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/resourceskus_client.go +++ b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/resourceskus_client.go @@ -32,9 +32,9 @@ type ResourceSKUsClient struct { } // NewResourceSKUsClient creates a new instance of ResourceSKUsClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewResourceSKUsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ResourceSKUsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,8 +56,9 @@ func NewResourceSKUsClient(subscriptionID string, credential azcore.TokenCredent } // NewListPager - Gets the list of Microsoft.CognitiveServices SKUs available for your Subscription. -// Generated from API version 2022-10-01 -// options - ResourceSKUsClientListOptions contains the optional parameters for the ResourceSKUsClient.List method. +// +// Generated from API version 2022-12-01 +// - options - ResourceSKUsClientListOptions contains the optional parameters for the ResourceSKUsClient.NewListPager method. func (client *ResourceSKUsClient) NewListPager(options *ResourceSKUsClientListOptions) *runtime.Pager[ResourceSKUsClientListResponse] { return runtime.NewPager(runtime.PagingHandler[ResourceSKUsClientListResponse]{ More: func(page ResourceSKUsClientListResponse) bool { @@ -98,7 +99,7 @@ func (client *ResourceSKUsClient) listCreateRequest(ctx context.Context, options return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-10-01") + reqQP.Set("api-version", "2022-12-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/resourceskus_client_example_test.go b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/resourceskus_client_example_test.go index 1262d845b21f..521ed7388959 100644 --- a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/resourceskus_client_example_test.go +++ b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/resourceskus_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armcognitiveservices_test @@ -16,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cognitiveservices/armcognitiveservices" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-10-01/examples/GetSkus.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/cognitiveservices/resource-manager/Microsoft.CognitiveServices/stable/2022-12-01/examples/GetSkus.json func ExampleResourceSKUsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -29,13 +30,2167 @@ func ExampleResourceSKUsClient_NewListPager() { } pager := client.NewListPager(nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.ResourceSKUListResult = armcognitiveservices.ResourceSKUListResult{ + // Value: []*armcognitiveservices.ResourceSKU{ + // { + // Name: to.Ptr("F0"), + // Kind: to.Ptr("Bing.Speech"), + // Locations: []*string{ + // to.Ptr("GLOBAL")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Free"), + // }, + // { + // Name: to.Ptr("S0"), + // Kind: to.Ptr("Bing.Speech"), + // Locations: []*string{ + // to.Ptr("GLOBAL")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("F0"), + // Kind: to.Ptr("SpeechTranslation"), + // Locations: []*string{ + // to.Ptr("GLOBAL")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Free"), + // }, + // { + // Name: to.Ptr("S1"), + // Kind: to.Ptr("SpeechTranslation"), + // Locations: []*string{ + // to.Ptr("GLOBAL")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("S2"), + // Kind: to.Ptr("SpeechTranslation"), + // Locations: []*string{ + // to.Ptr("GLOBAL")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("S3"), + // Kind: to.Ptr("SpeechTranslation"), + // Locations: []*string{ + // to.Ptr("GLOBAL")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("S4"), + // Kind: to.Ptr("SpeechTranslation"), + // Locations: []*string{ + // to.Ptr("GLOBAL")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("F0"), + // Kind: to.Ptr("TextTranslation"), + // Locations: []*string{ + // to.Ptr("GLOBAL")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Free"), + // }, + // { + // Name: to.Ptr("S1"), + // Kind: to.Ptr("TextTranslation"), + // Locations: []*string{ + // to.Ptr("GLOBAL")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("S2"), + // Kind: to.Ptr("TextTranslation"), + // Locations: []*string{ + // to.Ptr("GLOBAL")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("S3"), + // Kind: to.Ptr("TextTranslation"), + // Locations: []*string{ + // to.Ptr("GLOBAL")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("S4"), + // Kind: to.Ptr("TextTranslation"), + // Locations: []*string{ + // to.Ptr("GLOBAL")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("S1"), + // Kind: to.Ptr("Bing.Search.v7"), + // Locations: []*string{ + // to.Ptr("GLOBAL")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("S2"), + // Kind: to.Ptr("Bing.Search.v7"), + // Locations: []*string{ + // to.Ptr("GLOBAL")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("S3"), + // Kind: to.Ptr("Bing.Search.v7"), + // Locations: []*string{ + // to.Ptr("GLOBAL")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("S4"), + // Kind: to.Ptr("Bing.Search.v7"), + // Locations: []*string{ + // to.Ptr("GLOBAL")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("S5"), + // Kind: to.Ptr("Bing.Search.v7"), + // Locations: []*string{ + // to.Ptr("GLOBAL")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("S6"), + // Kind: to.Ptr("Bing.Search.v7"), + // Locations: []*string{ + // to.Ptr("GLOBAL")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("S7"), + // Kind: to.Ptr("Bing.Search.v7"), + // Locations: []*string{ + // to.Ptr("GLOBAL")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("S8"), + // Kind: to.Ptr("Bing.Search.v7"), + // Locations: []*string{ + // to.Ptr("GLOBAL")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("S1"), + // Kind: to.Ptr("Bing.Autosuggest.v7"), + // Locations: []*string{ + // to.Ptr("GLOBAL")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("S1"), + // Kind: to.Ptr("Bing.CustomSearch"), + // Locations: []*string{ + // to.Ptr("GLOBAL")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("S1"), + // Kind: to.Ptr("Bing.SpellCheck.v7"), + // Locations: []*string{ + // to.Ptr("GLOBAL")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("F0"), + // Kind: to.Ptr("Bing.EntitySearch"), + // Locations: []*string{ + // to.Ptr("GLOBAL")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Free"), + // }, + // { + // Name: to.Ptr("S1"), + // Kind: to.Ptr("Bing.EntitySearch"), + // Locations: []*string{ + // to.Ptr("GLOBAL")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("F0"), + // Kind: to.Ptr("Face"), + // Locations: []*string{ + // to.Ptr("AUSTRALIAEAST")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Free"), + // }, + // { + // Name: to.Ptr("S0"), + // Kind: to.Ptr("Face"), + // Locations: []*string{ + // to.Ptr("AUSTRALIAEAST")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("F0"), + // Kind: to.Ptr("ComputerVision"), + // Locations: []*string{ + // to.Ptr("AUSTRALIAEAST")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Free"), + // }, + // { + // Name: to.Ptr("S1"), + // Kind: to.Ptr("ComputerVision"), + // Locations: []*string{ + // to.Ptr("AUSTRALIAEAST")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("F0"), + // Kind: to.Ptr("ContentModerator"), + // Locations: []*string{ + // to.Ptr("AUSTRALIAEAST")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Free"), + // }, + // { + // Name: to.Ptr("S0"), + // Kind: to.Ptr("ContentModerator"), + // Locations: []*string{ + // to.Ptr("AUSTRALIAEAST")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("F0"), + // Kind: to.Ptr("TextAnalytics"), + // Locations: []*string{ + // to.Ptr("AUSTRALIAEAST")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Free"), + // }, + // { + // Name: to.Ptr("S0"), + // Kind: to.Ptr("TextAnalytics"), + // Locations: []*string{ + // to.Ptr("AUSTRALIAEAST")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("S1"), + // Kind: to.Ptr("TextAnalytics"), + // Locations: []*string{ + // to.Ptr("AUSTRALIAEAST")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("S2"), + // Kind: to.Ptr("TextAnalytics"), + // Locations: []*string{ + // to.Ptr("AUSTRALIAEAST")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("S3"), + // Kind: to.Ptr("TextAnalytics"), + // Locations: []*string{ + // to.Ptr("AUSTRALIAEAST")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("S4"), + // Kind: to.Ptr("TextAnalytics"), + // Locations: []*string{ + // to.Ptr("AUSTRALIAEAST")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("F0"), + // Kind: to.Ptr("LUIS"), + // Locations: []*string{ + // to.Ptr("AUSTRALIAEAST")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Free"), + // }, + // { + // Name: to.Ptr("S0"), + // Kind: to.Ptr("LUIS"), + // Locations: []*string{ + // to.Ptr("AUSTRALIAEAST")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("F0"), + // Kind: to.Ptr("Face"), + // Locations: []*string{ + // to.Ptr("BRAZILSOUTH")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Free"), + // }, + // { + // Name: to.Ptr("S0"), + // Kind: to.Ptr("Face"), + // Locations: []*string{ + // to.Ptr("BRAZILSOUTH")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("F0"), + // Kind: to.Ptr("ComputerVision"), + // Locations: []*string{ + // to.Ptr("BRAZILSOUTH")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Free"), + // }, + // { + // Name: to.Ptr("S1"), + // Kind: to.Ptr("ComputerVision"), + // Locations: []*string{ + // to.Ptr("BRAZILSOUTH")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("F0"), + // Kind: to.Ptr("ContentModerator"), + // Locations: []*string{ + // to.Ptr("BRAZILSOUTH")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Free"), + // }, + // { + // Name: to.Ptr("S0"), + // Kind: to.Ptr("ContentModerator"), + // Locations: []*string{ + // to.Ptr("BRAZILSOUTH")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("F0"), + // Kind: to.Ptr("TextAnalytics"), + // Locations: []*string{ + // to.Ptr("BRAZILSOUTH")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Free"), + // }, + // { + // Name: to.Ptr("S0"), + // Kind: to.Ptr("TextAnalytics"), + // Locations: []*string{ + // to.Ptr("BRAZILSOUTH")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("S1"), + // Kind: to.Ptr("TextAnalytics"), + // Locations: []*string{ + // to.Ptr("BRAZILSOUTH")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("S2"), + // Kind: to.Ptr("TextAnalytics"), + // Locations: []*string{ + // to.Ptr("BRAZILSOUTH")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("S3"), + // Kind: to.Ptr("TextAnalytics"), + // Locations: []*string{ + // to.Ptr("BRAZILSOUTH")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("S4"), + // Kind: to.Ptr("TextAnalytics"), + // Locations: []*string{ + // to.Ptr("BRAZILSOUTH")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("F0"), + // Kind: to.Ptr("LUIS"), + // Locations: []*string{ + // to.Ptr("BRAZILSOUTH")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Free"), + // }, + // { + // Name: to.Ptr("S0"), + // Kind: to.Ptr("LUIS"), + // Locations: []*string{ + // to.Ptr("BRAZILSOUTH")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("F0"), + // Kind: to.Ptr("Face"), + // Locations: []*string{ + // to.Ptr("CENTRALUSEUAP")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Free"), + // }, + // { + // Name: to.Ptr("S0"), + // Kind: to.Ptr("Face"), + // Locations: []*string{ + // to.Ptr("CENTRALUSEUAP")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("F0"), + // Kind: to.Ptr("ComputerVision"), + // Locations: []*string{ + // to.Ptr("CENTRALUSEUAP")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Free"), + // }, + // { + // Name: to.Ptr("S1"), + // Kind: to.Ptr("ComputerVision"), + // Locations: []*string{ + // to.Ptr("CENTRALUSEUAP")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("F0"), + // Kind: to.Ptr("TextAnalytics"), + // Locations: []*string{ + // to.Ptr("CENTRALUSEUAP")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Free"), + // }, + // { + // Name: to.Ptr("S0"), + // Kind: to.Ptr("TextAnalytics"), + // Locations: []*string{ + // to.Ptr("CENTRALUSEUAP")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("S1"), + // Kind: to.Ptr("TextAnalytics"), + // Locations: []*string{ + // to.Ptr("CENTRALUSEUAP")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("S2"), + // Kind: to.Ptr("TextAnalytics"), + // Locations: []*string{ + // to.Ptr("CENTRALUSEUAP")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("S3"), + // Kind: to.Ptr("TextAnalytics"), + // Locations: []*string{ + // to.Ptr("CENTRALUSEUAP")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("S4"), + // Kind: to.Ptr("TextAnalytics"), + // Locations: []*string{ + // to.Ptr("CENTRALUSEUAP")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("F0"), + // Kind: to.Ptr("ContentModerator"), + // Locations: []*string{ + // to.Ptr("CENTRALUSEUAP")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Free"), + // }, + // { + // Name: to.Ptr("S0"), + // Kind: to.Ptr("ContentModerator"), + // Locations: []*string{ + // to.Ptr("CENTRALUSEUAP")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("F0"), + // Kind: to.Ptr("LUIS"), + // Locations: []*string{ + // to.Ptr("CENTRALUSEUAP")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Free"), + // }, + // { + // Name: to.Ptr("S0"), + // Kind: to.Ptr("LUIS"), + // Locations: []*string{ + // to.Ptr("CENTRALUSEUAP")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("F0"), + // Kind: to.Ptr("ContentModerator"), + // Locations: []*string{ + // to.Ptr("WESTUS")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Free"), + // }, + // { + // Name: to.Ptr("S0"), + // Kind: to.Ptr("ContentModerator"), + // Locations: []*string{ + // to.Ptr("WESTUS")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("F0"), + // Kind: to.Ptr("LUIS"), + // Locations: []*string{ + // to.Ptr("WESTUS")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Free"), + // }, + // { + // Name: to.Ptr("S0"), + // Kind: to.Ptr("LUIS"), + // Locations: []*string{ + // to.Ptr("WESTUS")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("F0"), + // Kind: to.Ptr("Face"), + // Locations: []*string{ + // to.Ptr("WESTUS")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Free"), + // }, + // { + // Name: to.Ptr("S0"), + // Kind: to.Ptr("Face"), + // Locations: []*string{ + // to.Ptr("WESTUS")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("F0"), + // Kind: to.Ptr("TextAnalytics"), + // Locations: []*string{ + // to.Ptr("WESTUS")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Free"), + // }, + // { + // Name: to.Ptr("S0"), + // Kind: to.Ptr("TextAnalytics"), + // Locations: []*string{ + // to.Ptr("WESTUS")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("S1"), + // Kind: to.Ptr("TextAnalytics"), + // Locations: []*string{ + // to.Ptr("WESTUS")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("S2"), + // Kind: to.Ptr("TextAnalytics"), + // Locations: []*string{ + // to.Ptr("WESTUS")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("S3"), + // Kind: to.Ptr("TextAnalytics"), + // Locations: []*string{ + // to.Ptr("WESTUS")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("S4"), + // Kind: to.Ptr("TextAnalytics"), + // Locations: []*string{ + // to.Ptr("WESTUS")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("F0"), + // Kind: to.Ptr("SpeakerRecognition"), + // Locations: []*string{ + // to.Ptr("WESTUS")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Free"), + // }, + // { + // Name: to.Ptr("S0"), + // Kind: to.Ptr("SpeakerRecognition"), + // Locations: []*string{ + // to.Ptr("WESTUS")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("F0"), + // Kind: to.Ptr("CustomSpeech"), + // Locations: []*string{ + // to.Ptr("WESTUS")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Free"), + // }, + // { + // Name: to.Ptr("S2"), + // Kind: to.Ptr("CustomSpeech"), + // Locations: []*string{ + // to.Ptr("WESTUS")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("F0"), + // Kind: to.Ptr("ComputerVision"), + // Locations: []*string{ + // to.Ptr("WESTUS")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Free"), + // }, + // { + // Name: to.Ptr("S1"), + // Kind: to.Ptr("ComputerVision"), + // Locations: []*string{ + // to.Ptr("WESTUS")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("F0"), + // Kind: to.Ptr("Face"), + // Locations: []*string{ + // to.Ptr("WESTUS2")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Free"), + // }, + // { + // Name: to.Ptr("S0"), + // Kind: to.Ptr("Face"), + // Locations: []*string{ + // to.Ptr("WESTUS2")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("F0"), + // Kind: to.Ptr("ComputerVision"), + // Locations: []*string{ + // to.Ptr("WESTUS2")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Free"), + // }, + // { + // Name: to.Ptr("S1"), + // Kind: to.Ptr("ComputerVision"), + // Locations: []*string{ + // to.Ptr("WESTUS2")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("F0"), + // Kind: to.Ptr("ContentModerator"), + // Locations: []*string{ + // to.Ptr("WESTUS2")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Free"), + // }, + // { + // Name: to.Ptr("S0"), + // Kind: to.Ptr("ContentModerator"), + // Locations: []*string{ + // to.Ptr("WESTUS2")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("F0"), + // Kind: to.Ptr("TextAnalytics"), + // Locations: []*string{ + // to.Ptr("WESTUS2")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Free"), + // }, + // { + // Name: to.Ptr("S0"), + // Kind: to.Ptr("TextAnalytics"), + // Locations: []*string{ + // to.Ptr("WESTUS2")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("S1"), + // Kind: to.Ptr("TextAnalytics"), + // Locations: []*string{ + // to.Ptr("WESTUS2")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("S2"), + // Kind: to.Ptr("TextAnalytics"), + // Locations: []*string{ + // to.Ptr("WESTUS2")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("S3"), + // Kind: to.Ptr("TextAnalytics"), + // Locations: []*string{ + // to.Ptr("WESTUS2")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("S4"), + // Kind: to.Ptr("TextAnalytics"), + // Locations: []*string{ + // to.Ptr("WESTUS2")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("F0"), + // Kind: to.Ptr("LUIS"), + // Locations: []*string{ + // to.Ptr("WESTUS2")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Free"), + // }, + // { + // Name: to.Ptr("S0"), + // Kind: to.Ptr("LUIS"), + // Locations: []*string{ + // to.Ptr("WESTUS2")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("F0"), + // Kind: to.Ptr("Face"), + // Locations: []*string{ + // to.Ptr("WESTEUROPE")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Free"), + // }, + // { + // Name: to.Ptr("S0"), + // Kind: to.Ptr("Face"), + // Locations: []*string{ + // to.Ptr("WESTEUROPE")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("F0"), + // Kind: to.Ptr("LUIS"), + // Locations: []*string{ + // to.Ptr("WESTEUROPE")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Free"), + // }, + // { + // Name: to.Ptr("S0"), + // Kind: to.Ptr("LUIS"), + // Locations: []*string{ + // to.Ptr("WESTEUROPE")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("F0"), + // Kind: to.Ptr("ContentModerator"), + // Locations: []*string{ + // to.Ptr("WESTEUROPE")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Free"), + // }, + // { + // Name: to.Ptr("S0"), + // Kind: to.Ptr("ContentModerator"), + // Locations: []*string{ + // to.Ptr("WESTEUROPE")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("F0"), + // Kind: to.Ptr("ComputerVision"), + // Locations: []*string{ + // to.Ptr("WESTEUROPE")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Free"), + // }, + // { + // Name: to.Ptr("S1"), + // Kind: to.Ptr("ComputerVision"), + // Locations: []*string{ + // to.Ptr("WESTEUROPE")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("F0"), + // Kind: to.Ptr("TextAnalytics"), + // Locations: []*string{ + // to.Ptr("WESTEUROPE")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Free"), + // }, + // { + // Name: to.Ptr("S0"), + // Kind: to.Ptr("TextAnalytics"), + // Locations: []*string{ + // to.Ptr("WESTEUROPE")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("S1"), + // Kind: to.Ptr("TextAnalytics"), + // Locations: []*string{ + // to.Ptr("WESTEUROPE")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("S2"), + // Kind: to.Ptr("TextAnalytics"), + // Locations: []*string{ + // to.Ptr("WESTEUROPE")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("S3"), + // Kind: to.Ptr("TextAnalytics"), + // Locations: []*string{ + // to.Ptr("WESTEUROPE")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("S4"), + // Kind: to.Ptr("TextAnalytics"), + // Locations: []*string{ + // to.Ptr("WESTEUROPE")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("F0"), + // Kind: to.Ptr("Face"), + // Locations: []*string{ + // to.Ptr("NORTHEUROPE")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Free"), + // }, + // { + // Name: to.Ptr("S0"), + // Kind: to.Ptr("Face"), + // Locations: []*string{ + // to.Ptr("NORTHEUROPE")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("F0"), + // Kind: to.Ptr("ComputerVision"), + // Locations: []*string{ + // to.Ptr("NORTHEUROPE")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Free"), + // }, + // { + // Name: to.Ptr("S1"), + // Kind: to.Ptr("ComputerVision"), + // Locations: []*string{ + // to.Ptr("NORTHEUROPE")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("F0"), + // Kind: to.Ptr("ContentModerator"), + // Locations: []*string{ + // to.Ptr("NORTHEUROPE")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Free"), + // }, + // { + // Name: to.Ptr("S0"), + // Kind: to.Ptr("ContentModerator"), + // Locations: []*string{ + // to.Ptr("NORTHEUROPE")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("F0"), + // Kind: to.Ptr("TextAnalytics"), + // Locations: []*string{ + // to.Ptr("NORTHEUROPE")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Free"), + // }, + // { + // Name: to.Ptr("S0"), + // Kind: to.Ptr("TextAnalytics"), + // Locations: []*string{ + // to.Ptr("NORTHEUROPE")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("S1"), + // Kind: to.Ptr("TextAnalytics"), + // Locations: []*string{ + // to.Ptr("NORTHEUROPE")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("S2"), + // Kind: to.Ptr("TextAnalytics"), + // Locations: []*string{ + // to.Ptr("NORTHEUROPE")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("S3"), + // Kind: to.Ptr("TextAnalytics"), + // Locations: []*string{ + // to.Ptr("NORTHEUROPE")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("S4"), + // Kind: to.Ptr("TextAnalytics"), + // Locations: []*string{ + // to.Ptr("NORTHEUROPE")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("F0"), + // Kind: to.Ptr("LUIS"), + // Locations: []*string{ + // to.Ptr("NORTHEUROPE")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Free"), + // }, + // { + // Name: to.Ptr("S0"), + // Kind: to.Ptr("LUIS"), + // Locations: []*string{ + // to.Ptr("NORTHEUROPE")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("F0"), + // Kind: to.Ptr("Face"), + // Locations: []*string{ + // to.Ptr("SOUTHEASTASIA")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Free"), + // }, + // { + // Name: to.Ptr("S0"), + // Kind: to.Ptr("Face"), + // Locations: []*string{ + // to.Ptr("SOUTHEASTASIA")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("F0"), + // Kind: to.Ptr("ContentModerator"), + // Locations: []*string{ + // to.Ptr("SOUTHEASTASIA")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Free"), + // }, + // { + // Name: to.Ptr("S0"), + // Kind: to.Ptr("ContentModerator"), + // Locations: []*string{ + // to.Ptr("SOUTHEASTASIA")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("F0"), + // Kind: to.Ptr("LUIS"), + // Locations: []*string{ + // to.Ptr("SOUTHEASTASIA")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Free"), + // }, + // { + // Name: to.Ptr("S0"), + // Kind: to.Ptr("LUIS"), + // Locations: []*string{ + // to.Ptr("SOUTHEASTASIA")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("F0"), + // Kind: to.Ptr("ComputerVision"), + // Locations: []*string{ + // to.Ptr("SOUTHEASTASIA")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Free"), + // }, + // { + // Name: to.Ptr("S1"), + // Kind: to.Ptr("ComputerVision"), + // Locations: []*string{ + // to.Ptr("SOUTHEASTASIA")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("F0"), + // Kind: to.Ptr("TextAnalytics"), + // Locations: []*string{ + // to.Ptr("SOUTHEASTASIA")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Free"), + // }, + // { + // Name: to.Ptr("S0"), + // Kind: to.Ptr("TextAnalytics"), + // Locations: []*string{ + // to.Ptr("SOUTHEASTASIA")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("S1"), + // Kind: to.Ptr("TextAnalytics"), + // Locations: []*string{ + // to.Ptr("SOUTHEASTASIA")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("S2"), + // Kind: to.Ptr("TextAnalytics"), + // Locations: []*string{ + // to.Ptr("SOUTHEASTASIA")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("S3"), + // Kind: to.Ptr("TextAnalytics"), + // Locations: []*string{ + // to.Ptr("SOUTHEASTASIA")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("S4"), + // Kind: to.Ptr("TextAnalytics"), + // Locations: []*string{ + // to.Ptr("SOUTHEASTASIA")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("F0"), + // Kind: to.Ptr("Face"), + // Locations: []*string{ + // to.Ptr("EASTASIA")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Free"), + // }, + // { + // Name: to.Ptr("S0"), + // Kind: to.Ptr("Face"), + // Locations: []*string{ + // to.Ptr("EASTASIA")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("F0"), + // Kind: to.Ptr("ComputerVision"), + // Locations: []*string{ + // to.Ptr("EASTASIA")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Free"), + // }, + // { + // Name: to.Ptr("S1"), + // Kind: to.Ptr("ComputerVision"), + // Locations: []*string{ + // to.Ptr("EASTASIA")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("F0"), + // Kind: to.Ptr("ContentModerator"), + // Locations: []*string{ + // to.Ptr("EASTASIA")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Free"), + // }, + // { + // Name: to.Ptr("S0"), + // Kind: to.Ptr("ContentModerator"), + // Locations: []*string{ + // to.Ptr("EASTASIA")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("F0"), + // Kind: to.Ptr("TextAnalytics"), + // Locations: []*string{ + // to.Ptr("EASTASIA")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Free"), + // }, + // { + // Name: to.Ptr("S0"), + // Kind: to.Ptr("TextAnalytics"), + // Locations: []*string{ + // to.Ptr("EASTASIA")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("S1"), + // Kind: to.Ptr("TextAnalytics"), + // Locations: []*string{ + // to.Ptr("EASTASIA")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("S2"), + // Kind: to.Ptr("TextAnalytics"), + // Locations: []*string{ + // to.Ptr("EASTASIA")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("S3"), + // Kind: to.Ptr("TextAnalytics"), + // Locations: []*string{ + // to.Ptr("EASTASIA")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("S4"), + // Kind: to.Ptr("TextAnalytics"), + // Locations: []*string{ + // to.Ptr("EASTASIA")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("F0"), + // Kind: to.Ptr("LUIS"), + // Locations: []*string{ + // to.Ptr("EASTASIA")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Free"), + // }, + // { + // Name: to.Ptr("S0"), + // Kind: to.Ptr("LUIS"), + // Locations: []*string{ + // to.Ptr("EASTASIA")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("F0"), + // Kind: to.Ptr("Face"), + // Locations: []*string{ + // to.Ptr("WESTCENTRALUS")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Free"), + // }, + // { + // Name: to.Ptr("S0"), + // Kind: to.Ptr("Face"), + // Locations: []*string{ + // to.Ptr("WESTCENTRALUS")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("F0"), + // Kind: to.Ptr("ContentModerator"), + // Locations: []*string{ + // to.Ptr("WESTCENTRALUS")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Free"), + // }, + // { + // Name: to.Ptr("S0"), + // Kind: to.Ptr("ContentModerator"), + // Locations: []*string{ + // to.Ptr("WESTCENTRALUS")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("F0"), + // Kind: to.Ptr("LUIS"), + // Locations: []*string{ + // to.Ptr("WESTCENTRALUS")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Free"), + // }, + // { + // Name: to.Ptr("S0"), + // Kind: to.Ptr("LUIS"), + // Locations: []*string{ + // to.Ptr("WESTCENTRALUS")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("F0"), + // Kind: to.Ptr("ComputerVision"), + // Locations: []*string{ + // to.Ptr("WESTCENTRALUS")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Free"), + // }, + // { + // Name: to.Ptr("S1"), + // Kind: to.Ptr("ComputerVision"), + // Locations: []*string{ + // to.Ptr("WESTCENTRALUS")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("F0"), + // Kind: to.Ptr("TextAnalytics"), + // Locations: []*string{ + // to.Ptr("WESTCENTRALUS")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Free"), + // }, + // { + // Name: to.Ptr("S0"), + // Kind: to.Ptr("TextAnalytics"), + // Locations: []*string{ + // to.Ptr("WESTCENTRALUS")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("S1"), + // Kind: to.Ptr("TextAnalytics"), + // Locations: []*string{ + // to.Ptr("WESTCENTRALUS")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("S2"), + // Kind: to.Ptr("TextAnalytics"), + // Locations: []*string{ + // to.Ptr("WESTCENTRALUS")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("S3"), + // Kind: to.Ptr("TextAnalytics"), + // Locations: []*string{ + // to.Ptr("WESTCENTRALUS")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("S4"), + // Kind: to.Ptr("TextAnalytics"), + // Locations: []*string{ + // to.Ptr("WESTCENTRALUS")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("F0"), + // Kind: to.Ptr("Face"), + // Locations: []*string{ + // to.Ptr("SOUTHCENTRALUS")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Free"), + // }, + // { + // Name: to.Ptr("S0"), + // Kind: to.Ptr("Face"), + // Locations: []*string{ + // to.Ptr("SOUTHCENTRALUS")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("F0"), + // Kind: to.Ptr("ComputerVision"), + // Locations: []*string{ + // to.Ptr("SOUTHCENTRALUS")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Free"), + // }, + // { + // Name: to.Ptr("S1"), + // Kind: to.Ptr("ComputerVision"), + // Locations: []*string{ + // to.Ptr("SOUTHCENTRALUS")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("F0"), + // Kind: to.Ptr("ContentModerator"), + // Locations: []*string{ + // to.Ptr("SOUTHCENTRALUS")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Free"), + // }, + // { + // Name: to.Ptr("S0"), + // Kind: to.Ptr("ContentModerator"), + // Locations: []*string{ + // to.Ptr("SOUTHCENTRALUS")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("F0"), + // Kind: to.Ptr("TextAnalytics"), + // Locations: []*string{ + // to.Ptr("SOUTHCENTRALUS")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Free"), + // }, + // { + // Name: to.Ptr("S0"), + // Kind: to.Ptr("TextAnalytics"), + // Locations: []*string{ + // to.Ptr("SOUTHCENTRALUS")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("S1"), + // Kind: to.Ptr("TextAnalytics"), + // Locations: []*string{ + // to.Ptr("SOUTHCENTRALUS")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("S2"), + // Kind: to.Ptr("TextAnalytics"), + // Locations: []*string{ + // to.Ptr("SOUTHCENTRALUS")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("S3"), + // Kind: to.Ptr("TextAnalytics"), + // Locations: []*string{ + // to.Ptr("SOUTHCENTRALUS")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("S4"), + // Kind: to.Ptr("TextAnalytics"), + // Locations: []*string{ + // to.Ptr("SOUTHCENTRALUS")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("F0"), + // Kind: to.Ptr("LUIS"), + // Locations: []*string{ + // to.Ptr("SOUTHCENTRALUS")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Free"), + // }, + // { + // Name: to.Ptr("S0"), + // Kind: to.Ptr("LUIS"), + // Locations: []*string{ + // to.Ptr("SOUTHCENTRALUS")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("F0"), + // Kind: to.Ptr("CustomVision.Training"), + // Locations: []*string{ + // to.Ptr("SOUTHCENTRALUS")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Free"), + // }, + // { + // Name: to.Ptr("S0"), + // Kind: to.Ptr("CustomVision.Training"), + // Locations: []*string{ + // to.Ptr("SOUTHCENTRALUS")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("F0"), + // Kind: to.Ptr("CustomVision.Prediction"), + // Locations: []*string{ + // to.Ptr("SOUTHCENTRALUS")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Free"), + // }, + // { + // Name: to.Ptr("S0"), + // Kind: to.Ptr("CustomVision.Prediction"), + // Locations: []*string{ + // to.Ptr("SOUTHCENTRALUS")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("F0"), + // Kind: to.Ptr("Face"), + // Locations: []*string{ + // to.Ptr("EASTUS")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Free"), + // }, + // { + // Name: to.Ptr("S0"), + // Kind: to.Ptr("Face"), + // Locations: []*string{ + // to.Ptr("EASTUS")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("F0"), + // Kind: to.Ptr("ComputerVision"), + // Locations: []*string{ + // to.Ptr("EASTUS")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Free"), + // }, + // { + // Name: to.Ptr("S1"), + // Kind: to.Ptr("ComputerVision"), + // Locations: []*string{ + // to.Ptr("EASTUS")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("F0"), + // Kind: to.Ptr("ContentModerator"), + // Locations: []*string{ + // to.Ptr("EASTUS")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Free"), + // }, + // { + // Name: to.Ptr("S0"), + // Kind: to.Ptr("ContentModerator"), + // Locations: []*string{ + // to.Ptr("EASTUS")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("F0"), + // Kind: to.Ptr("TextAnalytics"), + // Locations: []*string{ + // to.Ptr("EASTUS")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Free"), + // }, + // { + // Name: to.Ptr("S0"), + // Kind: to.Ptr("TextAnalytics"), + // Locations: []*string{ + // to.Ptr("EASTUS")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("S1"), + // Kind: to.Ptr("TextAnalytics"), + // Locations: []*string{ + // to.Ptr("EASTUS")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("S2"), + // Kind: to.Ptr("TextAnalytics"), + // Locations: []*string{ + // to.Ptr("EASTUS")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("S3"), + // Kind: to.Ptr("TextAnalytics"), + // Locations: []*string{ + // to.Ptr("EASTUS")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("S4"), + // Kind: to.Ptr("TextAnalytics"), + // Locations: []*string{ + // to.Ptr("EASTUS")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("F0"), + // Kind: to.Ptr("LUIS"), + // Locations: []*string{ + // to.Ptr("EASTUS")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Free"), + // }, + // { + // Name: to.Ptr("S0"), + // Kind: to.Ptr("LUIS"), + // Locations: []*string{ + // to.Ptr("EASTUS")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("F0"), + // Kind: to.Ptr("ContentModerator"), + // Locations: []*string{ + // to.Ptr("EASTUS2")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Free"), + // }, + // { + // Name: to.Ptr("S0"), + // Kind: to.Ptr("ContentModerator"), + // Locations: []*string{ + // to.Ptr("EASTUS2")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("F0"), + // Kind: to.Ptr("Face"), + // Locations: []*string{ + // to.Ptr("EASTUS2")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Free"), + // }, + // { + // Name: to.Ptr("S0"), + // Kind: to.Ptr("Face"), + // Locations: []*string{ + // to.Ptr("EASTUS2")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("F0"), + // Kind: to.Ptr("LUIS"), + // Locations: []*string{ + // to.Ptr("EASTUS2")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Free"), + // }, + // { + // Name: to.Ptr("S0"), + // Kind: to.Ptr("LUIS"), + // Locations: []*string{ + // to.Ptr("EASTUS2")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("F0"), + // Kind: to.Ptr("ComputerVision"), + // Locations: []*string{ + // to.Ptr("EASTUS2")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Free"), + // }, + // { + // Name: to.Ptr("S1"), + // Kind: to.Ptr("ComputerVision"), + // Locations: []*string{ + // to.Ptr("EASTUS2")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("F0"), + // Kind: to.Ptr("TextAnalytics"), + // Locations: []*string{ + // to.Ptr("EASTUS2")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Free"), + // }, + // { + // Name: to.Ptr("S0"), + // Kind: to.Ptr("TextAnalytics"), + // Locations: []*string{ + // to.Ptr("EASTUS2")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("S1"), + // Kind: to.Ptr("TextAnalytics"), + // Locations: []*string{ + // to.Ptr("EASTUS2")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("S2"), + // Kind: to.Ptr("TextAnalytics"), + // Locations: []*string{ + // to.Ptr("EASTUS2")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("S3"), + // Kind: to.Ptr("TextAnalytics"), + // Locations: []*string{ + // to.Ptr("EASTUS2")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("S4"), + // Kind: to.Ptr("TextAnalytics"), + // Locations: []*string{ + // to.Ptr("EASTUS2")}, + // ResourceType: to.Ptr("accounts"), + // Restrictions: []*armcognitiveservices.ResourceSKURestrictions{ + // }, + // Tier: to.Ptr("Standard"), + // }}, + // } } } diff --git a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/response_types.go b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/response_types.go index 04f6ab4ae929..963bea546cf7 100644 --- a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/response_types.go +++ b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/response_types.go @@ -9,12 +9,12 @@ package armcognitiveservices -// AccountsClientCreateResponse contains the response from method AccountsClient.Create. +// AccountsClientCreateResponse contains the response from method AccountsClient.BeginCreate. type AccountsClientCreateResponse struct { Account } -// AccountsClientDeleteResponse contains the response from method AccountsClient.Delete. +// AccountsClientDeleteResponse contains the response from method AccountsClient.BeginDelete. type AccountsClientDeleteResponse struct { // placeholder for future response values } @@ -24,7 +24,7 @@ type AccountsClientGetResponse struct { Account } -// AccountsClientListByResourceGroupResponse contains the response from method AccountsClient.ListByResourceGroup. +// AccountsClientListByResourceGroupResponse contains the response from method AccountsClient.NewListByResourceGroupPager. type AccountsClientListByResourceGroupResponse struct { AccountListResult } @@ -34,12 +34,12 @@ type AccountsClientListKeysResponse struct { APIKeys } -// AccountsClientListModelsResponse contains the response from method AccountsClient.ListModels. +// AccountsClientListModelsResponse contains the response from method AccountsClient.NewListModelsPager. type AccountsClientListModelsResponse struct { AccountModelListResult } -// AccountsClientListResponse contains the response from method AccountsClient.List. +// AccountsClientListResponse contains the response from method AccountsClient.NewListPager. type AccountsClientListResponse struct { AccountListResult } @@ -59,32 +59,82 @@ type AccountsClientRegenerateKeyResponse struct { APIKeys } -// AccountsClientUpdateResponse contains the response from method AccountsClient.Update. +// AccountsClientUpdateResponse contains the response from method AccountsClient.BeginUpdate. type AccountsClientUpdateResponse struct { Account } +// CommitmentPlansClientCreateOrUpdateAssociationResponse contains the response from method CommitmentPlansClient.BeginCreateOrUpdateAssociation. +type CommitmentPlansClientCreateOrUpdateAssociationResponse struct { + CommitmentPlanAccountAssociation +} + +// CommitmentPlansClientCreateOrUpdatePlanResponse contains the response from method CommitmentPlansClient.BeginCreateOrUpdatePlan. +type CommitmentPlansClientCreateOrUpdatePlanResponse struct { + CommitmentPlan +} + // CommitmentPlansClientCreateOrUpdateResponse contains the response from method CommitmentPlansClient.CreateOrUpdate. type CommitmentPlansClientCreateOrUpdateResponse struct { CommitmentPlan } -// CommitmentPlansClientDeleteResponse contains the response from method CommitmentPlansClient.Delete. +// CommitmentPlansClientDeleteAssociationResponse contains the response from method CommitmentPlansClient.BeginDeleteAssociation. +type CommitmentPlansClientDeleteAssociationResponse struct { + // placeholder for future response values +} + +// CommitmentPlansClientDeletePlanResponse contains the response from method CommitmentPlansClient.BeginDeletePlan. +type CommitmentPlansClientDeletePlanResponse struct { + // placeholder for future response values +} + +// CommitmentPlansClientDeleteResponse contains the response from method CommitmentPlansClient.BeginDelete. type CommitmentPlansClientDeleteResponse struct { // placeholder for future response values } +// CommitmentPlansClientGetAssociationResponse contains the response from method CommitmentPlansClient.GetAssociation. +type CommitmentPlansClientGetAssociationResponse struct { + CommitmentPlanAccountAssociation +} + +// CommitmentPlansClientGetPlanResponse contains the response from method CommitmentPlansClient.GetPlan. +type CommitmentPlansClientGetPlanResponse struct { + CommitmentPlan +} + // CommitmentPlansClientGetResponse contains the response from method CommitmentPlansClient.Get. type CommitmentPlansClientGetResponse struct { CommitmentPlan } -// CommitmentPlansClientListResponse contains the response from method CommitmentPlansClient.List. +// CommitmentPlansClientListAssociationsResponse contains the response from method CommitmentPlansClient.NewListAssociationsPager. +type CommitmentPlansClientListAssociationsResponse struct { + CommitmentPlanAccountAssociationListResult +} + +// CommitmentPlansClientListPlansByResourceGroupResponse contains the response from method CommitmentPlansClient.NewListPlansByResourceGroupPager. +type CommitmentPlansClientListPlansByResourceGroupResponse struct { + CommitmentPlanListResult +} + +// CommitmentPlansClientListPlansBySubscriptionResponse contains the response from method CommitmentPlansClient.NewListPlansBySubscriptionPager. +type CommitmentPlansClientListPlansBySubscriptionResponse struct { + CommitmentPlanListResult +} + +// CommitmentPlansClientListResponse contains the response from method CommitmentPlansClient.NewListPager. type CommitmentPlansClientListResponse struct { CommitmentPlanListResult } -// CommitmentTiersClientListResponse contains the response from method CommitmentTiersClient.List. +// CommitmentPlansClientUpdatePlanResponse contains the response from method CommitmentPlansClient.BeginUpdatePlan. +type CommitmentPlansClientUpdatePlanResponse struct { + CommitmentPlan +} + +// CommitmentTiersClientListResponse contains the response from method CommitmentTiersClient.NewListPager. type CommitmentTiersClientListResponse struct { CommitmentTierListResult } @@ -94,22 +144,22 @@ type DeletedAccountsClientGetResponse struct { Account } -// DeletedAccountsClientListResponse contains the response from method DeletedAccountsClient.List. +// DeletedAccountsClientListResponse contains the response from method DeletedAccountsClient.NewListPager. type DeletedAccountsClientListResponse struct { AccountListResult } -// DeletedAccountsClientPurgeResponse contains the response from method DeletedAccountsClient.Purge. +// DeletedAccountsClientPurgeResponse contains the response from method DeletedAccountsClient.BeginPurge. type DeletedAccountsClientPurgeResponse struct { // placeholder for future response values } -// DeploymentsClientCreateOrUpdateResponse contains the response from method DeploymentsClient.CreateOrUpdate. +// DeploymentsClientCreateOrUpdateResponse contains the response from method DeploymentsClient.BeginCreateOrUpdate. type DeploymentsClientCreateOrUpdateResponse struct { Deployment } -// DeploymentsClientDeleteResponse contains the response from method DeploymentsClient.Delete. +// DeploymentsClientDeleteResponse contains the response from method DeploymentsClient.BeginDelete. type DeploymentsClientDeleteResponse struct { // placeholder for future response values } @@ -119,7 +169,7 @@ type DeploymentsClientGetResponse struct { Deployment } -// DeploymentsClientListResponse contains the response from method DeploymentsClient.List. +// DeploymentsClientListResponse contains the response from method DeploymentsClient.NewListPager. type DeploymentsClientListResponse struct { DeploymentListResult } @@ -134,17 +184,17 @@ type ManagementClientCheckSKUAvailabilityResponse struct { SKUAvailabilityListResult } -// OperationsClientListResponse contains the response from method OperationsClient.List. +// OperationsClientListResponse contains the response from method OperationsClient.NewListPager. type OperationsClientListResponse struct { OperationListResult } -// PrivateEndpointConnectionsClientCreateOrUpdateResponse contains the response from method PrivateEndpointConnectionsClient.CreateOrUpdate. +// PrivateEndpointConnectionsClientCreateOrUpdateResponse contains the response from method PrivateEndpointConnectionsClient.BeginCreateOrUpdate. type PrivateEndpointConnectionsClientCreateOrUpdateResponse struct { PrivateEndpointConnection } -// PrivateEndpointConnectionsClientDeleteResponse contains the response from method PrivateEndpointConnectionsClient.Delete. +// PrivateEndpointConnectionsClientDeleteResponse contains the response from method PrivateEndpointConnectionsClient.BeginDelete. type PrivateEndpointConnectionsClientDeleteResponse struct { // placeholder for future response values } @@ -164,7 +214,7 @@ type PrivateLinkResourcesClientListResponse struct { PrivateLinkResourceListResult } -// ResourceSKUsClientListResponse contains the response from method ResourceSKUsClient.List. +// ResourceSKUsClientListResponse contains the response from method ResourceSKUsClient.NewListPager. type ResourceSKUsClientListResponse struct { ResourceSKUListResult } diff --git a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/time_rfc3339.go b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/time_rfc3339.go index c5dbcc2ccddf..f952597d4ac3 100644 --- a/sdk/resourcemanager/cognitiveservices/armcognitiveservices/time_rfc3339.go +++ b/sdk/resourcemanager/cognitiveservices/armcognitiveservices/time_rfc3339.go @@ -62,7 +62,7 @@ func (t *timeRFC3339) Parse(layout, value string) error { return err } -func populateTimeRFC3339(m map[string]interface{}, k string, t *time.Time) { +func populateTimeRFC3339(m map[string]any, k string, t *time.Time) { if t == nil { return } else if azcore.IsNullValue(t) { From 6fc41ca9215e15d0352ee9ffc6880e55037b2e91 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Wed, 22 Feb 2023 04:18:12 -0500 Subject: [PATCH 042/107] [Release] sdk/resourcemanager/workloads/armworkloads/0.3.0 generation from spec commit: 630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f (#19914) Co-authored-by: ReleaseHelper --- .../workloads/armworkloads/CHANGELOG.md | 198 + .../workloads/armworkloads/autorest.md | 6 +- .../workloads/armworkloads/client.go | 55 +- .../armworkloads/client_example_test.go | 1194 +++ .../workloads/armworkloads/constants.go | 511 +- .../workloads/armworkloads/go.mod | 6 +- .../workloads/armworkloads/go.sum | 15 +- .../workloads/armworkloads/models.go | 1356 ++-- .../workloads/armworkloads/models_serde.go | 2176 +++-- .../workloads/armworkloads/monitors_client.go | 84 +- .../monitors_client_example_test.go | 366 +- .../armworkloads/operations_client.go | 12 +- .../operations_client_example_test.go | 91 +- .../armworkloads/phpworkloads_client.go | 428 - .../phpworkloads_client_example_test.go | 271 - .../armworkloads/polymorphic_helpers.go | 72 +- .../armworkloads/providerinstances_client.go | 74 +- .../providerinstances_client_example_test.go | 1184 ++- .../workloads/armworkloads/response_types.go | 142 +- .../sapapplicationserverinstances_client.go | 256 +- ...tionserverinstances_client_example_test.go | 398 +- .../sapcentralinstances_client.go | 270 +- ...sapcentralinstances_client_example_test.go | 479 +- .../sapdatabaseinstances_client.go | 256 +- ...apdatabaseinstances_client_example_test.go | 318 +- .../saplandscapemonitor_client.go | 340 + ...saplandscapemonitor_client_example_test.go | 361 + .../sapvirtualinstances_client.go | 146 +- ...sapvirtualinstances_client_example_test.go | 7190 ++++++++++++++++- .../workloads/armworkloads/skus_client.go | 115 - .../armworkloads/skus_client_example_test.go | 41 - .../workloads/armworkloads/time_rfc3339.go | 2 +- .../armworkloads/wordpressinstances_client.go | 295 - .../wordpressinstances_client_example_test.go | 119 - .../workloadsclient_client_example_test.go | 80 - 35 files changed, 14418 insertions(+), 4489 deletions(-) create mode 100644 sdk/resourcemanager/workloads/armworkloads/client_example_test.go delete mode 100644 sdk/resourcemanager/workloads/armworkloads/phpworkloads_client.go delete mode 100644 sdk/resourcemanager/workloads/armworkloads/phpworkloads_client_example_test.go create mode 100644 sdk/resourcemanager/workloads/armworkloads/saplandscapemonitor_client.go create mode 100644 sdk/resourcemanager/workloads/armworkloads/saplandscapemonitor_client_example_test.go delete mode 100644 sdk/resourcemanager/workloads/armworkloads/skus_client.go delete mode 100644 sdk/resourcemanager/workloads/armworkloads/skus_client_example_test.go delete mode 100644 sdk/resourcemanager/workloads/armworkloads/wordpressinstances_client.go delete mode 100644 sdk/resourcemanager/workloads/armworkloads/wordpressinstances_client_example_test.go delete mode 100644 sdk/resourcemanager/workloads/armworkloads/workloadsclient_client_example_test.go diff --git a/sdk/resourcemanager/workloads/armworkloads/CHANGELOG.md b/sdk/resourcemanager/workloads/armworkloads/CHANGELOG.md index 3e2c1000d1f6..e5268f84c2b7 100644 --- a/sdk/resourcemanager/workloads/armworkloads/CHANGELOG.md +++ b/sdk/resourcemanager/workloads/armworkloads/CHANGELOG.md @@ -1,5 +1,203 @@ # Release History +## 0.3.0 (2023-02-24) +### Breaking Changes + +- Type alias `ApplicationProvisioningState` has been removed +- Type alias `AzureFrontDoorEnabled` has been removed +- Type alias `DatabaseTier` has been removed +- Type alias `DatabaseType` has been removed +- Type alias `DiskStorageType` has been removed +- Type alias `EnableBackup` has been removed +- Type alias `EnableSSLEnforcement` has been removed +- Type alias `FileShareStorageType` has been removed +- Type alias `FileShareType` has been removed +- Type alias `HAEnabled` has been removed +- Type alias `LoadBalancerType` has been removed +- Type alias `LocationType` has been removed +- Type alias `OSImageOffer` has been removed +- Type alias `OSImagePublisher` has been removed +- Type alias `OSImageSKU` has been removed +- Type alias `OSImageVersion` has been removed +- Type alias `PHPVersion` has been removed +- Type alias `PhpWorkloadProvisioningState` has been removed +- Type alias `RedisCacheFamily` has been removed +- Type alias `SKURestrictionReasonCode` has been removed +- Type alias `SKURestrictionType` has been removed +- Type alias `SKUScaleType` has been removed +- Type alias `SKUTier` has been removed +- Type alias `SearchType` has been removed +- Type alias `WordpressVersions` has been removed +- Type alias `WorkloadKind` has been removed +- Function `NewPhpWorkloadsClient` has been removed +- Function `*PhpWorkloadsClient.BeginCreateOrUpdate` has been removed +- Function `*PhpWorkloadsClient.BeginDelete` has been removed +- Function `*PhpWorkloadsClient.Get` has been removed +- Function `*PhpWorkloadsClient.NewListByResourceGroupPager` has been removed +- Function `*PhpWorkloadsClient.NewListBySubscriptionPager` has been removed +- Function `*PhpWorkloadsClient.Update` has been removed +- Function `NewSKUsClient` has been removed +- Function `*SKUsClient.NewListPager` has been removed +- Function `NewWordpressInstancesClient` has been removed +- Function `*WordpressInstancesClient.BeginCreateOrUpdate` has been removed +- Function `*WordpressInstancesClient.Delete` has been removed +- Function `*WordpressInstancesClient.Get` has been removed +- Function `*WordpressInstancesClient.NewListPager` has been removed +- Struct `BackupProfile` has been removed +- Struct `CacheProfile` has been removed +- Struct `DatabaseProfile` has been removed +- Struct `DiskInfo` has been removed +- Struct `FileshareProfile` has been removed +- Struct `NetworkProfile` has been removed +- Struct `NodeProfile` has been removed +- Struct `OsImageProfile` has been removed +- Struct `PatchResourceRequestBody` has been removed +- Struct `PatchResourceRequestBodyIdentity` has been removed +- Struct `PhpProfile` has been removed +- Struct `PhpWorkloadResource` has been removed +- Struct `PhpWorkloadResourceIdentity` has been removed +- Struct `PhpWorkloadResourceList` has been removed +- Struct `PhpWorkloadResourceProperties` has been removed +- Struct `PhpWorkloadsClient` has been removed +- Struct `PhpWorkloadsClientCreateOrUpdateResponse` has been removed +- Struct `PhpWorkloadsClientDeleteResponse` has been removed +- Struct `PhpWorkloadsClientListByResourceGroupResponse` has been removed +- Struct `PhpWorkloadsClientListBySubscriptionResponse` has been removed +- Struct `RestrictionInfo` has been removed +- Struct `SKU` has been removed +- Struct `SKUCapability` has been removed +- Struct `SKUCapacity` has been removed +- Struct `SKUCost` has been removed +- Struct `SKUDefinition` has been removed +- Struct `SKULocationAndZones` has been removed +- Struct `SKURestriction` has been removed +- Struct `SKUZoneDetail` has been removed +- Struct `SKUsClient` has been removed +- Struct `SKUsClientListResponse` has been removed +- Struct `SKUsListResult` has been removed +- Struct `SearchProfile` has been removed +- Struct `SiteProfile` has been removed +- Struct `UserProfile` has been removed +- Struct `VmssNodesProfile` has been removed +- Struct `WordpressInstanceResource` has been removed +- Struct `WordpressInstanceResourceList` has been removed +- Struct `WordpressInstanceResourceProperties` has been removed +- Struct `WordpressInstancesClient` has been removed +- Struct `WordpressInstancesClientCreateOrUpdateResponse` has been removed +- Struct `WordpressInstancesClientListResponse` has been removed +- Field `DbSSLCertificateURI` of struct `HanaDbProviderInstanceProperties` has been removed +- Field `VirtualMachineID` of struct `SAPApplicationServerProperties` has been removed +- Field `DiskCount` of struct `SAPDiskConfiguration` has been removed +- Field `DiskIopsReadWrite` of struct `SAPDiskConfiguration` has been removed +- Field `DiskMBpsReadWrite` of struct `SAPDiskConfiguration` has been removed +- Field `DiskSizeGB` of struct `SAPDiskConfiguration` has been removed +- Field `DiskStorageType` of struct `SAPDiskConfiguration` has been removed +- Field `DiskType` of struct `SAPDiskConfiguration` has been removed +- Field `Volume` of struct `SAPDiskConfiguration` has been removed +- Field `DiskConfigurations` of struct `SAPDiskConfigurationsResult` has been removed +- Field `SapSSLCertificateURI` of struct `SapNetWeaverProviderInstanceProperties` has been removed +- Field `HardStop` of struct `StopRequest` has been removed + +### Features Added + +- New value `SAPSoftwareInstallationTypeExternal` added to type alias `SAPSoftwareInstallationType` +- New value `SAPVirtualInstanceStateSoftwareDetectionFailed`, `SAPVirtualInstanceStateSoftwareDetectionInProgress` added to type alias `SAPVirtualInstanceState` +- New value `SAPVirtualInstanceStatusSoftShutdown` added to type alias `SAPVirtualInstanceStatus` +- New type alias `ApplicationServerVirtualMachineType` with values `ApplicationServerVirtualMachineTypeActive`, `ApplicationServerVirtualMachineTypeStandby`, `ApplicationServerVirtualMachineTypeUnknown` +- New type alias `ConfigurationType` with values `ConfigurationTypeCreateAndMount`, `ConfigurationTypeMount`, `ConfigurationTypeSkip` +- New type alias `DiskSKUName` with values `DiskSKUNamePremiumLRS`, `DiskSKUNamePremiumV2LRS`, `DiskSKUNamePremiumZRS`, `DiskSKUNameStandardLRS`, `DiskSKUNameStandardSSDLRS`, `DiskSKUNameStandardSSDZRS`, `DiskSKUNameUltraSSDLRS` +- New type alias `NamingPatternType` with values `NamingPatternTypeFullResourceName` +- New type alias `SSLPreference` with values `SSLPreferenceDisabled`, `SSLPreferenceRootCertificate`, `SSLPreferenceServerCertificate` +- New type alias `SapLandscapeMonitorProvisioningState` with values `SapLandscapeMonitorProvisioningStateAccepted`, `SapLandscapeMonitorProvisioningStateCanceled`, `SapLandscapeMonitorProvisioningStateCreated`, `SapLandscapeMonitorProvisioningStateFailed`, `SapLandscapeMonitorProvisioningStateSucceeded` +- New function `*CreateAndMountFileShareConfiguration.GetFileShareConfiguration() *FileShareConfiguration` +- New function `*ExternalInstallationSoftwareConfiguration.GetSoftwareConfiguration() *SoftwareConfiguration` +- New function `*FileShareConfiguration.GetFileShareConfiguration() *FileShareConfiguration` +- New function `*MountFileShareConfiguration.GetFileShareConfiguration() *FileShareConfiguration` +- New function `*SAPApplicationServerInstancesClient.BeginStartInstance(context.Context, string, string, string, *SAPApplicationServerInstancesClientBeginStartInstanceOptions) (*runtime.Poller[SAPApplicationServerInstancesClientStartInstanceResponse], error)` +- New function `*SAPApplicationServerInstancesClient.BeginStopInstance(context.Context, string, string, string, *SAPApplicationServerInstancesClientBeginStopInstanceOptions) (*runtime.Poller[SAPApplicationServerInstancesClientStopInstanceResponse], error)` +- New function `*SAPCentralInstancesClient.BeginStartInstance(context.Context, string, string, string, *SAPCentralInstancesClientBeginStartInstanceOptions) (*runtime.Poller[SAPCentralInstancesClientStartInstanceResponse], error)` +- New function `*SAPCentralInstancesClient.BeginStopInstance(context.Context, string, string, string, *SAPCentralInstancesClientBeginStopInstanceOptions) (*runtime.Poller[SAPCentralInstancesClientStopInstanceResponse], error)` +- New function `*SAPDatabaseInstancesClient.BeginStartInstance(context.Context, string, string, string, *SAPDatabaseInstancesClientBeginStartInstanceOptions) (*runtime.Poller[SAPDatabaseInstancesClientStartInstanceResponse], error)` +- New function `*SAPDatabaseInstancesClient.BeginStopInstance(context.Context, string, string, string, *SAPDatabaseInstancesClientBeginStopInstanceOptions) (*runtime.Poller[SAPDatabaseInstancesClientStopInstanceResponse], error)` +- New function `NewSapLandscapeMonitorClient(string, azcore.TokenCredential, *arm.ClientOptions) (*SapLandscapeMonitorClient, error)` +- New function `*SapLandscapeMonitorClient.Create(context.Context, string, string, SapLandscapeMonitor, *SapLandscapeMonitorClientCreateOptions) (SapLandscapeMonitorClientCreateResponse, error)` +- New function `*SapLandscapeMonitorClient.Delete(context.Context, string, string, *SapLandscapeMonitorClientDeleteOptions) (SapLandscapeMonitorClientDeleteResponse, error)` +- New function `*SapLandscapeMonitorClient.Get(context.Context, string, string, *SapLandscapeMonitorClientGetOptions) (SapLandscapeMonitorClientGetResponse, error)` +- New function `*SapLandscapeMonitorClient.List(context.Context, string, string, *SapLandscapeMonitorClientListOptions) (SapLandscapeMonitorClientListResponse, error)` +- New function `*SapLandscapeMonitorClient.Update(context.Context, string, string, SapLandscapeMonitor, *SapLandscapeMonitorClientUpdateOptions) (SapLandscapeMonitorClientUpdateResponse, error)` +- New function `*SingleServerCustomResourceNames.GetSingleServerCustomResourceNames() *SingleServerCustomResourceNames` +- New function `*SingleServerFullResourceNames.GetSingleServerCustomResourceNames() *SingleServerCustomResourceNames` +- New function `*SkipFileShareConfiguration.GetFileShareConfiguration() *FileShareConfiguration` +- New function `*ThreeTierCustomResourceNames.GetThreeTierCustomResourceNames() *ThreeTierCustomResourceNames` +- New function `*ThreeTierFullResourceNames.GetThreeTierCustomResourceNames() *ThreeTierCustomResourceNames` +- New struct `ApplicationServerFullResourceNames` +- New struct `ApplicationServerVMDetails` +- New struct `CentralServerFullResourceNames` +- New struct `CreateAndMountFileShareConfiguration` +- New struct `DatabaseServerFullResourceNames` +- New struct `DiskConfiguration` +- New struct `DiskDetails` +- New struct `DiskSKU` +- New struct `DiskVolumeConfiguration` +- New struct `ExternalInstallationSoftwareConfiguration` +- New struct `LoadBalancerDetails` +- New struct `LoadBalancerResourceNames` +- New struct `MountFileShareConfiguration` +- New struct `NetworkInterfaceResourceNames` +- New struct `SAPApplicationServerInstancesClientStartInstanceResponse` +- New struct `SAPApplicationServerInstancesClientStopInstanceResponse` +- New struct `SAPCentralInstancesClientStartInstanceResponse` +- New struct `SAPCentralInstancesClientStopInstanceResponse` +- New struct `SAPDatabaseInstancesClientStartInstanceResponse` +- New struct `SAPDatabaseInstancesClientStopInstanceResponse` +- New struct `SapLandscapeMonitor` +- New struct `SapLandscapeMonitorClient` +- New struct `SapLandscapeMonitorListResult` +- New struct `SapLandscapeMonitorMetricThresholds` +- New struct `SapLandscapeMonitorProperties` +- New struct `SapLandscapeMonitorPropertiesGrouping` +- New struct `SapLandscapeMonitorSidMapping` +- New struct `SharedStorageResourceNames` +- New struct `SingleServerFullResourceNames` +- New struct `SkipFileShareConfiguration` +- New struct `StorageConfiguration` +- New struct `StorageInformation` +- New struct `ThreeTierFullResourceNames` +- New struct `VirtualMachineResourceNames` +- New field `StorageDetails` in struct `CentralServerVMDetails` +- New field `SSLCertificateURI` in struct `DB2ProviderInstanceProperties` +- New field `SSLPreference` in struct `DB2ProviderInstanceProperties` +- New field `DiskConfiguration` in struct `DatabaseConfiguration` +- New field `StorageDetails` in struct `DatabaseVMDetails` +- New field `ManagedRgStorageAccountName` in struct `DiscoveryConfiguration` +- New field `SSLCertificateURI` in struct `HanaDbProviderInstanceProperties` +- New field `SSLPreference` in struct `HanaDbProviderInstanceProperties` +- New field `SapSid` in struct `HanaDbProviderInstanceProperties` +- New field `StorageAccountArmID` in struct `MonitorProperties` +- New field `ZoneRedundancyPreference` in struct `MonitorProperties` +- New field `SSLCertificateURI` in struct `MsSQLServerProviderInstanceProperties` +- New field `SSLPreference` in struct `MsSQLServerProviderInstanceProperties` +- New field `SSLCertificateURI` in struct `PrometheusHaClusterProviderInstanceProperties` +- New field `SSLPreference` in struct `PrometheusHaClusterProviderInstanceProperties` +- New field `SSLCertificateURI` in struct `PrometheusOSProviderInstanceProperties` +- New field `SSLPreference` in struct `PrometheusOSProviderInstanceProperties` +- New field `SapSid` in struct `PrometheusOSProviderInstanceProperties` +- New field `LoadBalancerDetails` in struct `SAPApplicationServerProperties` +- New field `VMDetails` in struct `SAPApplicationServerProperties` +- New field `LoadBalancerDetails` in struct `SAPCentralServerProperties` +- New field `LoadBalancerDetails` in struct `SAPDatabaseProperties` +- New field `RecommendedConfiguration` in struct `SAPDiskConfiguration` +- New field `SupportedConfigurations` in struct `SAPDiskConfiguration` +- New field `VolumeConfigurations` in struct `SAPDiskConfigurationsResult` +- New field `SSLCertificateURI` in struct `SapNetWeaverProviderInstanceProperties` +- New field `SSLPreference` in struct `SapNetWeaverProviderInstanceProperties` +- New field `CustomResourceNames` in struct `SingleServerConfiguration` +- New field `DbDiskConfiguration` in struct `SingleServerConfiguration` +- New field `SoftStopTimeoutSeconds` in struct `StopRequest` +- New field `CustomResourceNames` in struct `ThreeTierConfiguration` +- New field `StorageConfiguration` in struct `ThreeTierConfiguration` + + ## 0.2.0 (2022-06-30) ### Breaking Changes diff --git a/sdk/resourcemanager/workloads/armworkloads/autorest.md b/sdk/resourcemanager/workloads/armworkloads/autorest.md index a3737c11c6e5..18c32f1531a0 100644 --- a/sdk/resourcemanager/workloads/armworkloads/autorest.md +++ b/sdk/resourcemanager/workloads/armworkloads/autorest.md @@ -5,9 +5,9 @@ ``` yaml azure-arm: true require: -- https://github.com/Azure/azure-rest-api-specs/blob/45472ea9fc026c14e8962f78757a589b6586fe9d/specification/workloads/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/45472ea9fc026c14e8962f78757a589b6586fe9d/specification/workloads/resource-manager/readme.go.md +- https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/readme.md +- https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 0.2.0 +module-version: 0.3.0 ``` \ No newline at end of file diff --git a/sdk/resourcemanager/workloads/armworkloads/client.go b/sdk/resourcemanager/workloads/armworkloads/client.go index 60ed2d3ed885..fe55f26934a1 100644 --- a/sdk/resourcemanager/workloads/armworkloads/client.go +++ b/sdk/resourcemanager/workloads/armworkloads/client.go @@ -32,9 +32,9 @@ type Client struct { } // NewClient creates a new instance of Client with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*Client, error) { if options == nil { options = &arm.ClientOptions{} @@ -55,12 +55,13 @@ func NewClient(subscriptionID string, credential azcore.TokenCredential, options return client, nil } -// SAPAvailabilityZoneDetails - Get SAP Availability Zone Details. +// SAPAvailabilityZoneDetails - Get the recommended SAP Availability Zone Pair Details for your region. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01-preview -// location - The name of Azure region. -// options - ClientSAPAvailabilityZoneDetailsOptions contains the optional parameters for the Client.SAPAvailabilityZoneDetails -// method. +// +// Generated from API version 2022-11-01-preview +// - location - The name of Azure region. +// - options - ClientSAPAvailabilityZoneDetailsOptions contains the optional parameters for the Client.SAPAvailabilityZoneDetails +// method. func (client *Client) SAPAvailabilityZoneDetails(ctx context.Context, location string, options *ClientSAPAvailabilityZoneDetailsOptions) (ClientSAPAvailabilityZoneDetailsResponse, error) { req, err := client.sapAvailabilityZoneDetailsCreateRequest(ctx, location, options) if err != nil { @@ -92,7 +93,7 @@ func (client *Client) sapAvailabilityZoneDetailsCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01-preview") + reqQP.Set("api-version", "2022-11-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.SAPAvailabilityZoneDetails != nil { @@ -110,11 +111,12 @@ func (client *Client) sapAvailabilityZoneDetailsHandleResponse(resp *http.Respon return result, nil } -// SAPDiskConfigurations - Get SAP Disk Configurations. +// SAPDiskConfigurations - Get the SAP Disk Configuration Layout prod/non-prod SAP System. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01-preview -// location - The name of Azure region. -// options - ClientSAPDiskConfigurationsOptions contains the optional parameters for the Client.SAPDiskConfigurations method. +// +// Generated from API version 2022-11-01-preview +// - location - The name of Azure region. +// - options - ClientSAPDiskConfigurationsOptions contains the optional parameters for the Client.SAPDiskConfigurations method. func (client *Client) SAPDiskConfigurations(ctx context.Context, location string, options *ClientSAPDiskConfigurationsOptions) (ClientSAPDiskConfigurationsResponse, error) { req, err := client.sapDiskConfigurationsCreateRequest(ctx, location, options) if err != nil { @@ -146,7 +148,7 @@ func (client *Client) sapDiskConfigurationsCreateRequest(ctx context.Context, lo return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01-preview") + reqQP.Set("api-version", "2022-11-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.SAPDiskConfigurations != nil { @@ -164,12 +166,14 @@ func (client *Client) sapDiskConfigurationsHandleResponse(resp *http.Response) ( return result, nil } -// SAPSizingRecommendations - Get SAP sizing recommendations. +// SAPSizingRecommendations - Get SAP sizing recommendations by providing input SAPS for application tier and memory required +// for database tier // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01-preview -// location - The name of Azure region. -// options - ClientSAPSizingRecommendationsOptions contains the optional parameters for the Client.SAPSizingRecommendations -// method. +// +// Generated from API version 2022-11-01-preview +// - location - The name of Azure region. +// - options - ClientSAPSizingRecommendationsOptions contains the optional parameters for the Client.SAPSizingRecommendations +// method. func (client *Client) SAPSizingRecommendations(ctx context.Context, location string, options *ClientSAPSizingRecommendationsOptions) (ClientSAPSizingRecommendationsResponse, error) { req, err := client.sapSizingRecommendationsCreateRequest(ctx, location, options) if err != nil { @@ -201,7 +205,7 @@ func (client *Client) sapSizingRecommendationsCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01-preview") + reqQP.Set("api-version", "2022-11-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.SAPSizingRecommendation != nil { @@ -219,11 +223,12 @@ func (client *Client) sapSizingRecommendationsHandleResponse(resp *http.Response return result, nil } -// SAPSupportedSKU - Get SAP supported SKUs. +// SAPSupportedSKU - Get a list of SAP supported SKUs for ASCS, Application and Database tier. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01-preview -// location - The name of Azure region. -// options - ClientSAPSupportedSKUOptions contains the optional parameters for the Client.SAPSupportedSKU method. +// +// Generated from API version 2022-11-01-preview +// - location - The name of Azure region. +// - options - ClientSAPSupportedSKUOptions contains the optional parameters for the Client.SAPSupportedSKU method. func (client *Client) SAPSupportedSKU(ctx context.Context, location string, options *ClientSAPSupportedSKUOptions) (ClientSAPSupportedSKUResponse, error) { req, err := client.sapSupportedSKUCreateRequest(ctx, location, options) if err != nil { @@ -255,7 +260,7 @@ func (client *Client) sapSupportedSKUCreateRequest(ctx context.Context, location return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01-preview") + reqQP.Set("api-version", "2022-11-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.SAPSupportedSKU != nil { diff --git a/sdk/resourcemanager/workloads/armworkloads/client_example_test.go b/sdk/resourcemanager/workloads/armworkloads/client_example_test.go new file mode 100644 index 000000000000..c2d325e01650 --- /dev/null +++ b/sdk/resourcemanager/workloads/armworkloads/client_example_test.go @@ -0,0 +1,1194 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armworkloads_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/workloads/armworkloads" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/sapvirtualinstances/SAPSizingRecommendations_S4HANA_Distributed.json +func ExampleClient_SAPSizingRecommendations_sapSizingRecommendationsS4HanaDistributed() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armworkloads.NewClient("8e17e36c-42e9-4cd5-a078-7b44883414e0", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.SAPSizingRecommendations(ctx, "centralus", &armworkloads.ClientSAPSizingRecommendationsOptions{SAPSizingRecommendation: nil}) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res = armworkloads.ClientSAPSizingRecommendationsResponse{ + // SAPSizingRecommendationResultClassification: &armworkloads.ThreeTierRecommendationResult{ + // DeploymentType: to.Ptr(armworkloads.SAPDeploymentTypeThreeTier), + // ApplicationServerInstanceCount: to.Ptr[int64](2), + // ApplicationServerVMSKU: to.Ptr("Standard_E8ds_v4"), + // CentralServerInstanceCount: to.Ptr[int64](1), + // CentralServerVMSKU: to.Ptr("Standard_E4ds_v4"), + // DatabaseInstanceCount: to.Ptr[int64](1), + // DbVMSKU: to.Ptr("Standard_M64s"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/sapvirtualinstances/SAPSizingRecommendations_S4HANA_HA_AvSet.json +func ExampleClient_SAPSizingRecommendations_sapSizingRecommendationsS4HanaDistributedHaAvSet() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armworkloads.NewClient("8e17e36c-42e9-4cd5-a078-7b44883414e0", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.SAPSizingRecommendations(ctx, "centralus", &armworkloads.ClientSAPSizingRecommendationsOptions{SAPSizingRecommendation: nil}) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res = armworkloads.ClientSAPSizingRecommendationsResponse{ + // SAPSizingRecommendationResultClassification: &armworkloads.ThreeTierRecommendationResult{ + // DeploymentType: to.Ptr(armworkloads.SAPDeploymentTypeThreeTier), + // ApplicationServerInstanceCount: to.Ptr[int64](3), + // ApplicationServerVMSKU: to.Ptr("Standard_E16ds_v4"), + // CentralServerInstanceCount: to.Ptr[int64](2), + // CentralServerVMSKU: to.Ptr("Standard_E8ds_v4"), + // DatabaseInstanceCount: to.Ptr[int64](2), + // DbVMSKU: to.Ptr("Standard_M64s"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/sapvirtualinstances/SAPSizingRecommendations_S4HANA_HA_AvZone.json +func ExampleClient_SAPSizingRecommendations_sapSizingRecommendationsS4HanaDistributedHaAvZone() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armworkloads.NewClient("8e17e36c-42e9-4cd5-a078-7b44883414e0", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.SAPSizingRecommendations(ctx, "centralus", &armworkloads.ClientSAPSizingRecommendationsOptions{SAPSizingRecommendation: nil}) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res = armworkloads.ClientSAPSizingRecommendationsResponse{ + // SAPSizingRecommendationResultClassification: &armworkloads.ThreeTierRecommendationResult{ + // DeploymentType: to.Ptr(armworkloads.SAPDeploymentTypeThreeTier), + // ApplicationServerInstanceCount: to.Ptr[int64](6), + // ApplicationServerVMSKU: to.Ptr("Standard_E8ds_v4"), + // CentralServerInstanceCount: to.Ptr[int64](2), + // CentralServerVMSKU: to.Ptr("Standard_E4ds_v4"), + // DatabaseInstanceCount: to.Ptr[int64](2), + // DbVMSKU: to.Ptr("Standard_M64s"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/sapvirtualinstances/SAPSizingRecommendations_S4HANA_SingleServer.json +func ExampleClient_SAPSizingRecommendations_sapSizingRecommendationsS4HanaSingleServer() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armworkloads.NewClient("8e17e36c-42e9-4cd5-a078-7b44883414e0", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.SAPSizingRecommendations(ctx, "centralus", &armworkloads.ClientSAPSizingRecommendationsOptions{SAPSizingRecommendation: nil}) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res = armworkloads.ClientSAPSizingRecommendationsResponse{ + // SAPSizingRecommendationResultClassification: &armworkloads.SingleServerRecommendationResult{ + // DeploymentType: to.Ptr(armworkloads.SAPDeploymentTypeSingleServer), + // VMSKU: to.Ptr("Standard_M128s"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/sapvirtualinstances/SAPSupportedSkus_Distributed.json +func ExampleClient_SAPSupportedSKU_sapSupportedSkusDistributed() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armworkloads.NewClient("8e17e36c-42e9-4cd5-a078-7b44883414e0", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.SAPSupportedSKU(ctx, "centralus", &armworkloads.ClientSAPSupportedSKUOptions{SAPSupportedSKU: nil}) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.SAPSupportedResourceSKUsResult = armworkloads.SAPSupportedResourceSKUsResult{ + // SupportedSKUs: []*armworkloads.SAPSupportedSKU{ + // { + // IsAppServerCertified: to.Ptr(true), + // IsDatabaseCertified: to.Ptr(false), + // VMSKU: to.Ptr("Standard_E4ds_v4"), + // }, + // { + // IsAppServerCertified: to.Ptr(true), + // IsDatabaseCertified: to.Ptr(false), + // VMSKU: to.Ptr("Standard_E8ds_v4"), + // }, + // { + // IsAppServerCertified: to.Ptr(true), + // IsDatabaseCertified: to.Ptr(false), + // VMSKU: to.Ptr("Standard_E16ds_v4"), + // }, + // { + // IsAppServerCertified: to.Ptr(true), + // IsDatabaseCertified: to.Ptr(false), + // VMSKU: to.Ptr("Standard_E20ds_v4"), + // }, + // { + // IsAppServerCertified: to.Ptr(true), + // IsDatabaseCertified: to.Ptr(false), + // VMSKU: to.Ptr("Standard_E32ds_v4"), + // }, + // { + // IsAppServerCertified: to.Ptr(true), + // IsDatabaseCertified: to.Ptr(false), + // VMSKU: to.Ptr("Standard_E48ds_v4"), + // }, + // { + // IsAppServerCertified: to.Ptr(true), + // IsDatabaseCertified: to.Ptr(false), + // VMSKU: to.Ptr("Standard_E64ds_v4"), + // }, + // { + // IsAppServerCertified: to.Ptr(false), + // IsDatabaseCertified: to.Ptr(true), + // VMSKU: to.Ptr("Standard_M32Is"), + // }, + // { + // IsAppServerCertified: to.Ptr(false), + // IsDatabaseCertified: to.Ptr(true), + // VMSKU: to.Ptr("Standard_M32ts"), + // }, + // { + // IsAppServerCertified: to.Ptr(false), + // IsDatabaseCertified: to.Ptr(true), + // VMSKU: to.Ptr("Standard_M64Is"), + // }, + // { + // IsAppServerCertified: to.Ptr(false), + // IsDatabaseCertified: to.Ptr(true), + // VMSKU: to.Ptr("Standard_M64ms"), + // }, + // { + // IsAppServerCertified: to.Ptr(false), + // IsDatabaseCertified: to.Ptr(true), + // VMSKU: to.Ptr("Standard_M64s"), + // }, + // { + // IsAppServerCertified: to.Ptr(false), + // IsDatabaseCertified: to.Ptr(true), + // VMSKU: to.Ptr("Standard_M128ms"), + // }, + // { + // IsAppServerCertified: to.Ptr(false), + // IsDatabaseCertified: to.Ptr(true), + // VMSKU: to.Ptr("Standard_M128s"), + // }, + // { + // IsAppServerCertified: to.Ptr(false), + // IsDatabaseCertified: to.Ptr(true), + // VMSKU: to.Ptr("Standard_M208ms_v2"), + // }, + // { + // IsAppServerCertified: to.Ptr(false), + // IsDatabaseCertified: to.Ptr(true), + // VMSKU: to.Ptr("Standard_M208s_v2"), + // }, + // { + // IsAppServerCertified: to.Ptr(false), + // IsDatabaseCertified: to.Ptr(true), + // VMSKU: to.Ptr("Standard_M416ms_v2"), + // }, + // { + // IsAppServerCertified: to.Ptr(false), + // IsDatabaseCertified: to.Ptr(true), + // VMSKU: to.Ptr("Standard_M416s_v2"), + // }}, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/sapvirtualinstances/SAPSupportedSkus_DistributedHA_AvSet.json +func ExampleClient_SAPSupportedSKU_sapSupportedSkusDistributedHaAvSet() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armworkloads.NewClient("8e17e36c-42e9-4cd5-a078-7b44883414e0", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.SAPSupportedSKU(ctx, "centralus", &armworkloads.ClientSAPSupportedSKUOptions{SAPSupportedSKU: nil}) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.SAPSupportedResourceSKUsResult = armworkloads.SAPSupportedResourceSKUsResult{ + // SupportedSKUs: []*armworkloads.SAPSupportedSKU{ + // { + // IsAppServerCertified: to.Ptr(true), + // IsDatabaseCertified: to.Ptr(false), + // VMSKU: to.Ptr("Standard_E4ds_v4"), + // }, + // { + // IsAppServerCertified: to.Ptr(true), + // IsDatabaseCertified: to.Ptr(false), + // VMSKU: to.Ptr("Standard_E8ds_v4"), + // }, + // { + // IsAppServerCertified: to.Ptr(true), + // IsDatabaseCertified: to.Ptr(false), + // VMSKU: to.Ptr("Standard_E16ds_v4"), + // }, + // { + // IsAppServerCertified: to.Ptr(true), + // IsDatabaseCertified: to.Ptr(false), + // VMSKU: to.Ptr("Standard_E20ds_v4"), + // }, + // { + // IsAppServerCertified: to.Ptr(true), + // IsDatabaseCertified: to.Ptr(false), + // VMSKU: to.Ptr("Standard_E32ds_v4"), + // }, + // { + // IsAppServerCertified: to.Ptr(true), + // IsDatabaseCertified: to.Ptr(false), + // VMSKU: to.Ptr("Standard_E48ds_v4"), + // }, + // { + // IsAppServerCertified: to.Ptr(true), + // IsDatabaseCertified: to.Ptr(false), + // VMSKU: to.Ptr("Standard_E64ds_v4"), + // }, + // { + // IsAppServerCertified: to.Ptr(false), + // IsDatabaseCertified: to.Ptr(true), + // VMSKU: to.Ptr("Standard_M32Is"), + // }, + // { + // IsAppServerCertified: to.Ptr(false), + // IsDatabaseCertified: to.Ptr(true), + // VMSKU: to.Ptr("Standard_M32ts"), + // }, + // { + // IsAppServerCertified: to.Ptr(false), + // IsDatabaseCertified: to.Ptr(true), + // VMSKU: to.Ptr("Standard_M64Is"), + // }, + // { + // IsAppServerCertified: to.Ptr(false), + // IsDatabaseCertified: to.Ptr(true), + // VMSKU: to.Ptr("Standard_M64ms"), + // }, + // { + // IsAppServerCertified: to.Ptr(false), + // IsDatabaseCertified: to.Ptr(true), + // VMSKU: to.Ptr("Standard_M64s"), + // }, + // { + // IsAppServerCertified: to.Ptr(false), + // IsDatabaseCertified: to.Ptr(true), + // VMSKU: to.Ptr("Standard_M128ms"), + // }, + // { + // IsAppServerCertified: to.Ptr(false), + // IsDatabaseCertified: to.Ptr(true), + // VMSKU: to.Ptr("Standard_M128s"), + // }, + // { + // IsAppServerCertified: to.Ptr(false), + // IsDatabaseCertified: to.Ptr(true), + // VMSKU: to.Ptr("Standard_M208ms_v2"), + // }, + // { + // IsAppServerCertified: to.Ptr(false), + // IsDatabaseCertified: to.Ptr(true), + // VMSKU: to.Ptr("Standard_M208s_v2"), + // }, + // { + // IsAppServerCertified: to.Ptr(false), + // IsDatabaseCertified: to.Ptr(true), + // VMSKU: to.Ptr("Standard_M416ms_v2"), + // }, + // { + // IsAppServerCertified: to.Ptr(false), + // IsDatabaseCertified: to.Ptr(true), + // VMSKU: to.Ptr("Standard_M416s_v2"), + // }}, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/sapvirtualinstances/SAPSupportedSkus_DistributedHA_AvZone.json +func ExampleClient_SAPSupportedSKU_sapSupportedSkusDistributedHaAvZone() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armworkloads.NewClient("8e17e36c-42e9-4cd5-a078-7b44883414e0", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.SAPSupportedSKU(ctx, "centralus", &armworkloads.ClientSAPSupportedSKUOptions{SAPSupportedSKU: nil}) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.SAPSupportedResourceSKUsResult = armworkloads.SAPSupportedResourceSKUsResult{ + // SupportedSKUs: []*armworkloads.SAPSupportedSKU{ + // { + // IsAppServerCertified: to.Ptr(true), + // IsDatabaseCertified: to.Ptr(true), + // VMSKU: to.Ptr("Standard_E32ds_v4"), + // }, + // { + // IsAppServerCertified: to.Ptr(true), + // IsDatabaseCertified: to.Ptr(true), + // VMSKU: to.Ptr("Standard_E48ds_v4"), + // }, + // { + // IsAppServerCertified: to.Ptr(true), + // IsDatabaseCertified: to.Ptr(true), + // VMSKU: to.Ptr("Standard_E64ds_v4"), + // }, + // { + // IsAppServerCertified: to.Ptr(true), + // IsDatabaseCertified: to.Ptr(true), + // VMSKU: to.Ptr("Standard_M32Is"), + // }, + // { + // IsAppServerCertified: to.Ptr(true), + // IsDatabaseCertified: to.Ptr(true), + // VMSKU: to.Ptr("Standard_M32ts"), + // }, + // { + // IsAppServerCertified: to.Ptr(true), + // IsDatabaseCertified: to.Ptr(true), + // VMSKU: to.Ptr("Standard_M64Is"), + // }, + // { + // IsAppServerCertified: to.Ptr(true), + // IsDatabaseCertified: to.Ptr(true), + // VMSKU: to.Ptr("Standard_M64ms"), + // }, + // { + // IsAppServerCertified: to.Ptr(true), + // IsDatabaseCertified: to.Ptr(true), + // VMSKU: to.Ptr("Standard_M64s"), + // }, + // { + // IsAppServerCertified: to.Ptr(true), + // IsDatabaseCertified: to.Ptr(true), + // VMSKU: to.Ptr("Standard_M128ms"), + // }, + // { + // IsAppServerCertified: to.Ptr(true), + // IsDatabaseCertified: to.Ptr(true), + // VMSKU: to.Ptr("Standard_M128s"), + // }, + // { + // IsAppServerCertified: to.Ptr(true), + // IsDatabaseCertified: to.Ptr(true), + // VMSKU: to.Ptr("Standard_M208ms_v2"), + // }, + // { + // IsAppServerCertified: to.Ptr(true), + // IsDatabaseCertified: to.Ptr(true), + // VMSKU: to.Ptr("Standard_M208s_v2"), + // }, + // { + // IsAppServerCertified: to.Ptr(true), + // IsDatabaseCertified: to.Ptr(true), + // VMSKU: to.Ptr("Standard_M416ms_v2"), + // }, + // { + // IsAppServerCertified: to.Ptr(true), + // IsDatabaseCertified: to.Ptr(true), + // VMSKU: to.Ptr("Standard_M416s_v2"), + // }}, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/sapvirtualinstances/SAPSupportedSkus_SingleServer.json +func ExampleClient_SAPSupportedSKU_sapSupportedSkusSingleServer() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armworkloads.NewClient("8e17e36c-42e9-4cd5-a078-7b44883414e0", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.SAPSupportedSKU(ctx, "centralus", &armworkloads.ClientSAPSupportedSKUOptions{SAPSupportedSKU: nil}) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.SAPSupportedResourceSKUsResult = armworkloads.SAPSupportedResourceSKUsResult{ + // SupportedSKUs: []*armworkloads.SAPSupportedSKU{ + // { + // IsAppServerCertified: to.Ptr(true), + // IsDatabaseCertified: to.Ptr(false), + // VMSKU: to.Ptr("Standard_E32ds_v4"), + // }, + // { + // IsAppServerCertified: to.Ptr(true), + // IsDatabaseCertified: to.Ptr(false), + // VMSKU: to.Ptr("Standard_E48ds_v4"), + // }, + // { + // IsAppServerCertified: to.Ptr(true), + // IsDatabaseCertified: to.Ptr(false), + // VMSKU: to.Ptr("Standard_E64ds_v4"), + // }, + // { + // IsAppServerCertified: to.Ptr(true), + // IsDatabaseCertified: to.Ptr(true), + // VMSKU: to.Ptr("Standard_M32ts"), + // }}, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/sapvirtualinstances/SAPDiskConfigurations_NonProd.json +func ExampleClient_SAPDiskConfigurations_sapDiskConfigurationsNonProd() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armworkloads.NewClient("8e17e36c-42e9-4cd5-a078-7b44883414e0", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.SAPDiskConfigurations(ctx, "centralus", &armworkloads.ClientSAPDiskConfigurationsOptions{SAPDiskConfigurations: nil}) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.SAPDiskConfigurationsResult = armworkloads.SAPDiskConfigurationsResult{ + // VolumeConfigurations: map[string]*armworkloads.SAPDiskConfiguration{ + // "backup": &armworkloads.SAPDiskConfiguration{ + // RecommendedConfiguration: &armworkloads.DiskVolumeConfiguration{ + // Count: to.Ptr[int64](2), + // SizeGB: to.Ptr[int64](256), + // SKU: &armworkloads.DiskSKU{ + // Name: to.Ptr(armworkloads.DiskSKUNameStandardSSDLRS), + // }, + // }, + // SupportedConfigurations: []*armworkloads.DiskDetails{ + // { + // DiskTier: to.Ptr("E10"), + // IopsReadWrite: to.Ptr[int64](500), + // MaximumSupportedDiskCount: to.Ptr[int64](6), + // MbpsReadWrite: to.Ptr[int64](60), + // MinimumSupportedDiskCount: to.Ptr[int64](0), + // SizeGB: to.Ptr[int64](128), + // SKU: &armworkloads.DiskSKU{ + // Name: to.Ptr(armworkloads.DiskSKUNameStandardSSDLRS), + // }, + // }, + // { + // DiskTier: to.Ptr("E15"), + // IopsReadWrite: to.Ptr[int64](500), + // MaximumSupportedDiskCount: to.Ptr[int64](6), + // MbpsReadWrite: to.Ptr[int64](60), + // MinimumSupportedDiskCount: to.Ptr[int64](0), + // SizeGB: to.Ptr[int64](256), + // SKU: &armworkloads.DiskSKU{ + // Name: to.Ptr(armworkloads.DiskSKUNameStandardSSDLRS), + // }, + // }, + // { + // DiskTier: to.Ptr("E20"), + // IopsReadWrite: to.Ptr[int64](500), + // MaximumSupportedDiskCount: to.Ptr[int64](6), + // MbpsReadWrite: to.Ptr[int64](60), + // MinimumSupportedDiskCount: to.Ptr[int64](0), + // SizeGB: to.Ptr[int64](512), + // SKU: &armworkloads.DiskSKU{ + // Name: to.Ptr(armworkloads.DiskSKUNameStandardSSDLRS), + // }, + // }, + // { + // DiskTier: to.Ptr("P10"), + // IopsReadWrite: to.Ptr[int64](500), + // MaximumSupportedDiskCount: to.Ptr[int64](6), + // MbpsReadWrite: to.Ptr[int64](100), + // MinimumSupportedDiskCount: to.Ptr[int64](0), + // SizeGB: to.Ptr[int64](128), + // SKU: &armworkloads.DiskSKU{ + // Name: to.Ptr(armworkloads.DiskSKUNamePremiumLRS), + // }, + // }, + // { + // DiskTier: to.Ptr("P15"), + // IopsReadWrite: to.Ptr[int64](1100), + // MaximumSupportedDiskCount: to.Ptr[int64](6), + // MbpsReadWrite: to.Ptr[int64](125), + // MinimumSupportedDiskCount: to.Ptr[int64](0), + // SizeGB: to.Ptr[int64](256), + // SKU: &armworkloads.DiskSKU{ + // Name: to.Ptr(armworkloads.DiskSKUNamePremiumLRS), + // }, + // }, + // { + // DiskTier: to.Ptr("P20"), + // IopsReadWrite: to.Ptr[int64](2300), + // MaximumSupportedDiskCount: to.Ptr[int64](6), + // MbpsReadWrite: to.Ptr[int64](150), + // MinimumSupportedDiskCount: to.Ptr[int64](0), + // SizeGB: to.Ptr[int64](512), + // SKU: &armworkloads.DiskSKU{ + // Name: to.Ptr(armworkloads.DiskSKUNamePremiumLRS), + // }, + // }}, + // }, + // "hana/data": &armworkloads.SAPDiskConfiguration{ + // RecommendedConfiguration: &armworkloads.DiskVolumeConfiguration{ + // Count: to.Ptr[int64](4), + // SizeGB: to.Ptr[int64](128), + // SKU: &armworkloads.DiskSKU{ + // Name: to.Ptr(armworkloads.DiskSKUNamePremiumLRS), + // }, + // }, + // SupportedConfigurations: []*armworkloads.DiskDetails{ + // { + // DiskTier: to.Ptr("P10"), + // IopsReadWrite: to.Ptr[int64](500), + // MaximumSupportedDiskCount: to.Ptr[int64](5), + // MbpsReadWrite: to.Ptr[int64](100), + // MinimumSupportedDiskCount: to.Ptr[int64](4), + // SizeGB: to.Ptr[int64](128), + // SKU: &armworkloads.DiskSKU{ + // Name: to.Ptr(armworkloads.DiskSKUNamePremiumLRS), + // }, + // }}, + // }, + // "hana/log": &armworkloads.SAPDiskConfiguration{ + // RecommendedConfiguration: &armworkloads.DiskVolumeConfiguration{ + // Count: to.Ptr[int64](3), + // SizeGB: to.Ptr[int64](128), + // SKU: &armworkloads.DiskSKU{ + // Name: to.Ptr(armworkloads.DiskSKUNamePremiumLRS), + // }, + // }, + // SupportedConfigurations: []*armworkloads.DiskDetails{ + // { + // DiskTier: to.Ptr("P10"), + // IopsReadWrite: to.Ptr[int64](500), + // MaximumSupportedDiskCount: to.Ptr[int64](5), + // MbpsReadWrite: to.Ptr[int64](100), + // MinimumSupportedDiskCount: to.Ptr[int64](3), + // SizeGB: to.Ptr[int64](128), + // SKU: &armworkloads.DiskSKU{ + // Name: to.Ptr(armworkloads.DiskSKUNamePremiumLRS), + // }, + // }}, + // }, + // "hana/shared": &armworkloads.SAPDiskConfiguration{ + // RecommendedConfiguration: &armworkloads.DiskVolumeConfiguration{ + // Count: to.Ptr[int64](1), + // SizeGB: to.Ptr[int64](256), + // SKU: &armworkloads.DiskSKU{ + // Name: to.Ptr(armworkloads.DiskSKUNameStandardSSDLRS), + // }, + // }, + // SupportedConfigurations: []*armworkloads.DiskDetails{ + // { + // DiskTier: to.Ptr("P15"), + // IopsReadWrite: to.Ptr[int64](1100), + // MaximumSupportedDiskCount: to.Ptr[int64](1), + // MbpsReadWrite: to.Ptr[int64](125), + // MinimumSupportedDiskCount: to.Ptr[int64](1), + // SizeGB: to.Ptr[int64](256), + // SKU: &armworkloads.DiskSKU{ + // Name: to.Ptr(armworkloads.DiskSKUNamePremiumLRS), + // }, + // }, + // { + // DiskTier: to.Ptr("P20"), + // IopsReadWrite: to.Ptr[int64](2300), + // MaximumSupportedDiskCount: to.Ptr[int64](1), + // MbpsReadWrite: to.Ptr[int64](150), + // MinimumSupportedDiskCount: to.Ptr[int64](1), + // SizeGB: to.Ptr[int64](512), + // SKU: &armworkloads.DiskSKU{ + // Name: to.Ptr(armworkloads.DiskSKUNamePremiumLRS), + // }, + // }, + // { + // DiskTier: to.Ptr("P30"), + // IopsReadWrite: to.Ptr[int64](5000), + // MaximumSupportedDiskCount: to.Ptr[int64](1), + // MbpsReadWrite: to.Ptr[int64](200), + // MinimumSupportedDiskCount: to.Ptr[int64](1), + // SizeGB: to.Ptr[int64](1024), + // SKU: &armworkloads.DiskSKU{ + // Name: to.Ptr(armworkloads.DiskSKUNamePremiumLRS), + // }, + // }, + // { + // DiskTier: to.Ptr("P40"), + // IopsReadWrite: to.Ptr[int64](7500), + // MaximumSupportedDiskCount: to.Ptr[int64](1), + // MbpsReadWrite: to.Ptr[int64](250), + // MinimumSupportedDiskCount: to.Ptr[int64](1), + // SizeGB: to.Ptr[int64](2048), + // SKU: &armworkloads.DiskSKU{ + // Name: to.Ptr(armworkloads.DiskSKUNamePremiumLRS), + // }, + // }, + // { + // DiskTier: to.Ptr("P50"), + // IopsReadWrite: to.Ptr[int64](7500), + // MaximumSupportedDiskCount: to.Ptr[int64](1), + // MbpsReadWrite: to.Ptr[int64](250), + // MinimumSupportedDiskCount: to.Ptr[int64](1), + // SizeGB: to.Ptr[int64](4096), + // SKU: &armworkloads.DiskSKU{ + // Name: to.Ptr(armworkloads.DiskSKUNamePremiumLRS), + // }, + // }, + // { + // DiskTier: to.Ptr("E15"), + // IopsReadWrite: to.Ptr[int64](500), + // MaximumSupportedDiskCount: to.Ptr[int64](1), + // MbpsReadWrite: to.Ptr[int64](60), + // MinimumSupportedDiskCount: to.Ptr[int64](1), + // SizeGB: to.Ptr[int64](256), + // SKU: &armworkloads.DiskSKU{ + // Name: to.Ptr(armworkloads.DiskSKUNameStandardSSDLRS), + // }, + // }, + // { + // DiskTier: to.Ptr("E20"), + // IopsReadWrite: to.Ptr[int64](500), + // MaximumSupportedDiskCount: to.Ptr[int64](1), + // MbpsReadWrite: to.Ptr[int64](60), + // MinimumSupportedDiskCount: to.Ptr[int64](1), + // SizeGB: to.Ptr[int64](512), + // SKU: &armworkloads.DiskSKU{ + // Name: to.Ptr(armworkloads.DiskSKUNameStandardSSDLRS), + // }, + // }, + // { + // DiskTier: to.Ptr("E30"), + // IopsReadWrite: to.Ptr[int64](500), + // MaximumSupportedDiskCount: to.Ptr[int64](1), + // MbpsReadWrite: to.Ptr[int64](60), + // MinimumSupportedDiskCount: to.Ptr[int64](1), + // SizeGB: to.Ptr[int64](1024), + // SKU: &armworkloads.DiskSKU{ + // Name: to.Ptr(armworkloads.DiskSKUNameStandardSSDLRS), + // }, + // }, + // { + // DiskTier: to.Ptr("E40"), + // IopsReadWrite: to.Ptr[int64](500), + // MaximumSupportedDiskCount: to.Ptr[int64](1), + // MbpsReadWrite: to.Ptr[int64](60), + // MinimumSupportedDiskCount: to.Ptr[int64](1), + // SizeGB: to.Ptr[int64](2048), + // SKU: &armworkloads.DiskSKU{ + // Name: to.Ptr(armworkloads.DiskSKUNameStandardSSDLRS), + // }, + // }, + // { + // DiskTier: to.Ptr("E50"), + // IopsReadWrite: to.Ptr[int64](500), + // MaximumSupportedDiskCount: to.Ptr[int64](1), + // MbpsReadWrite: to.Ptr[int64](60), + // MinimumSupportedDiskCount: to.Ptr[int64](1), + // SizeGB: to.Ptr[int64](4096), + // SKU: &armworkloads.DiskSKU{ + // Name: to.Ptr(armworkloads.DiskSKUNameStandardSSDLRS), + // }, + // }}, + // }, + // "os": &armworkloads.SAPDiskConfiguration{ + // RecommendedConfiguration: &armworkloads.DiskVolumeConfiguration{ + // Count: to.Ptr[int64](1), + // SizeGB: to.Ptr[int64](64), + // SKU: &armworkloads.DiskSKU{ + // Name: to.Ptr(armworkloads.DiskSKUNameStandardSSDLRS), + // }, + // }, + // SupportedConfigurations: []*armworkloads.DiskDetails{ + // { + // DiskTier: to.Ptr("P6"), + // IopsReadWrite: to.Ptr[int64](240), + // MaximumSupportedDiskCount: to.Ptr[int64](1), + // MbpsReadWrite: to.Ptr[int64](50), + // MinimumSupportedDiskCount: to.Ptr[int64](1), + // SizeGB: to.Ptr[int64](64), + // SKU: &armworkloads.DiskSKU{ + // Name: to.Ptr(armworkloads.DiskSKUNamePremiumLRS), + // }, + // }, + // { + // DiskTier: to.Ptr("P10"), + // IopsReadWrite: to.Ptr[int64](500), + // MaximumSupportedDiskCount: to.Ptr[int64](1), + // MbpsReadWrite: to.Ptr[int64](100), + // MinimumSupportedDiskCount: to.Ptr[int64](1), + // SizeGB: to.Ptr[int64](128), + // SKU: &armworkloads.DiskSKU{ + // Name: to.Ptr(armworkloads.DiskSKUNamePremiumLRS), + // }, + // }, + // { + // DiskTier: to.Ptr("P6"), + // IopsReadWrite: to.Ptr[int64](500), + // MaximumSupportedDiskCount: to.Ptr[int64](1), + // MbpsReadWrite: to.Ptr[int64](60), + // MinimumSupportedDiskCount: to.Ptr[int64](1), + // SizeGB: to.Ptr[int64](64), + // SKU: &armworkloads.DiskSKU{ + // Name: to.Ptr(armworkloads.DiskSKUNameStandardSSDLRS), + // }, + // }, + // { + // DiskTier: to.Ptr("P10"), + // IopsReadWrite: to.Ptr[int64](500), + // MaximumSupportedDiskCount: to.Ptr[int64](1), + // MbpsReadWrite: to.Ptr[int64](60), + // MinimumSupportedDiskCount: to.Ptr[int64](1), + // SizeGB: to.Ptr[int64](128), + // SKU: &armworkloads.DiskSKU{ + // Name: to.Ptr(armworkloads.DiskSKUNameStandardSSDLRS), + // }, + // }}, + // }, + // "usr/sap": &armworkloads.SAPDiskConfiguration{ + // RecommendedConfiguration: &armworkloads.DiskVolumeConfiguration{ + // Count: to.Ptr[int64](1), + // SizeGB: to.Ptr[int64](128), + // SKU: &armworkloads.DiskSKU{ + // Name: to.Ptr(armworkloads.DiskSKUNamePremiumLRS), + // }, + // }, + // SupportedConfigurations: []*armworkloads.DiskDetails{ + // { + // DiskTier: to.Ptr("P10"), + // IopsReadWrite: to.Ptr[int64](500), + // MaximumSupportedDiskCount: to.Ptr[int64](1), + // MbpsReadWrite: to.Ptr[int64](100), + // MinimumSupportedDiskCount: to.Ptr[int64](1), + // SizeGB: to.Ptr[int64](128), + // SKU: &armworkloads.DiskSKU{ + // Name: to.Ptr(armworkloads.DiskSKUNamePremiumLRS), + // }, + // }, + // { + // DiskTier: to.Ptr("P10"), + // IopsReadWrite: to.Ptr[int64](1100), + // MaximumSupportedDiskCount: to.Ptr[int64](1), + // MbpsReadWrite: to.Ptr[int64](125), + // MinimumSupportedDiskCount: to.Ptr[int64](1), + // SizeGB: to.Ptr[int64](256), + // SKU: &armworkloads.DiskSKU{ + // Name: to.Ptr(armworkloads.DiskSKUNamePremiumLRS), + // }, + // }, + // { + // DiskTier: to.Ptr("P10"), + // IopsReadWrite: to.Ptr[int64](2300), + // MaximumSupportedDiskCount: to.Ptr[int64](1), + // MbpsReadWrite: to.Ptr[int64](150), + // MinimumSupportedDiskCount: to.Ptr[int64](1), + // SizeGB: to.Ptr[int64](512), + // SKU: &armworkloads.DiskSKU{ + // Name: to.Ptr(armworkloads.DiskSKUNamePremiumLRS), + // }, + // }, + // { + // DiskTier: to.Ptr("E10"), + // IopsReadWrite: to.Ptr[int64](500), + // MaximumSupportedDiskCount: to.Ptr[int64](1), + // MbpsReadWrite: to.Ptr[int64](60), + // MinimumSupportedDiskCount: to.Ptr[int64](1), + // SizeGB: to.Ptr[int64](128), + // SKU: &armworkloads.DiskSKU{ + // Name: to.Ptr(armworkloads.DiskSKUNameStandardSSDLRS), + // }, + // }, + // { + // DiskTier: to.Ptr("E15"), + // IopsReadWrite: to.Ptr[int64](500), + // MaximumSupportedDiskCount: to.Ptr[int64](1), + // MbpsReadWrite: to.Ptr[int64](60), + // MinimumSupportedDiskCount: to.Ptr[int64](1), + // SizeGB: to.Ptr[int64](256), + // SKU: &armworkloads.DiskSKU{ + // Name: to.Ptr(armworkloads.DiskSKUNameStandardSSDLRS), + // }, + // }, + // { + // DiskTier: to.Ptr("E20"), + // IopsReadWrite: to.Ptr[int64](500), + // MaximumSupportedDiskCount: to.Ptr[int64](1), + // MbpsReadWrite: to.Ptr[int64](60), + // MinimumSupportedDiskCount: to.Ptr[int64](1), + // SizeGB: to.Ptr[int64](512), + // SKU: &armworkloads.DiskSKU{ + // Name: to.Ptr(armworkloads.DiskSKUNameStandardSSDLRS), + // }, + // }}, + // }, + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/sapvirtualinstances/SAPDiskConfigurations_Prod.json +func ExampleClient_SAPDiskConfigurations_sapDiskConfigurationsProd() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armworkloads.NewClient("8e17e36c-42e9-4cd5-a078-7b44883414e0", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.SAPDiskConfigurations(ctx, "centralus", &armworkloads.ClientSAPDiskConfigurationsOptions{SAPDiskConfigurations: nil}) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.SAPDiskConfigurationsResult = armworkloads.SAPDiskConfigurationsResult{ + // VolumeConfigurations: map[string]*armworkloads.SAPDiskConfiguration{ + // "backup": &armworkloads.SAPDiskConfiguration{ + // RecommendedConfiguration: &armworkloads.DiskVolumeConfiguration{ + // Count: to.Ptr[int64](2), + // SizeGB: to.Ptr[int64](256), + // SKU: &armworkloads.DiskSKU{ + // Name: to.Ptr(armworkloads.DiskSKUNamePremiumLRS), + // }, + // }, + // SupportedConfigurations: []*armworkloads.DiskDetails{ + // { + // DiskTier: to.Ptr("P10"), + // IopsReadWrite: to.Ptr[int64](500), + // MaximumSupportedDiskCount: to.Ptr[int64](6), + // MbpsReadWrite: to.Ptr[int64](100), + // MinimumSupportedDiskCount: to.Ptr[int64](0), + // SizeGB: to.Ptr[int64](128), + // SKU: &armworkloads.DiskSKU{ + // Name: to.Ptr(armworkloads.DiskSKUNamePremiumLRS), + // }, + // }, + // { + // DiskTier: to.Ptr("P15"), + // IopsReadWrite: to.Ptr[int64](1100), + // MaximumSupportedDiskCount: to.Ptr[int64](6), + // MbpsReadWrite: to.Ptr[int64](125), + // MinimumSupportedDiskCount: to.Ptr[int64](0), + // SizeGB: to.Ptr[int64](256), + // SKU: &armworkloads.DiskSKU{ + // Name: to.Ptr(armworkloads.DiskSKUNamePremiumLRS), + // }, + // }, + // { + // DiskTier: to.Ptr("P20"), + // IopsReadWrite: to.Ptr[int64](2300), + // MaximumSupportedDiskCount: to.Ptr[int64](6), + // MbpsReadWrite: to.Ptr[int64](150), + // MinimumSupportedDiskCount: to.Ptr[int64](0), + // SizeGB: to.Ptr[int64](512), + // SKU: &armworkloads.DiskSKU{ + // Name: to.Ptr(armworkloads.DiskSKUNamePremiumLRS), + // }, + // }}, + // }, + // "hana/data": &armworkloads.SAPDiskConfiguration{ + // RecommendedConfiguration: &armworkloads.DiskVolumeConfiguration{ + // Count: to.Ptr[int64](4), + // SizeGB: to.Ptr[int64](128), + // SKU: &armworkloads.DiskSKU{ + // Name: to.Ptr(armworkloads.DiskSKUNamePremiumLRS), + // }, + // }, + // SupportedConfigurations: []*armworkloads.DiskDetails{ + // { + // DiskTier: to.Ptr("P10"), + // IopsReadWrite: to.Ptr[int64](500), + // MaximumSupportedDiskCount: to.Ptr[int64](5), + // MbpsReadWrite: to.Ptr[int64](100), + // MinimumSupportedDiskCount: to.Ptr[int64](4), + // SizeGB: to.Ptr[int64](128), + // SKU: &armworkloads.DiskSKU{ + // Name: to.Ptr(armworkloads.DiskSKUNamePremiumLRS), + // }, + // }}, + // }, + // "hana/log": &armworkloads.SAPDiskConfiguration{ + // RecommendedConfiguration: &armworkloads.DiskVolumeConfiguration{ + // Count: to.Ptr[int64](3), + // SizeGB: to.Ptr[int64](128), + // SKU: &armworkloads.DiskSKU{ + // Name: to.Ptr(armworkloads.DiskSKUNamePremiumLRS), + // }, + // }, + // SupportedConfigurations: []*armworkloads.DiskDetails{ + // { + // DiskTier: to.Ptr("P10"), + // IopsReadWrite: to.Ptr[int64](500), + // MaximumSupportedDiskCount: to.Ptr[int64](5), + // MbpsReadWrite: to.Ptr[int64](100), + // MinimumSupportedDiskCount: to.Ptr[int64](3), + // SizeGB: to.Ptr[int64](128), + // SKU: &armworkloads.DiskSKU{ + // Name: to.Ptr(armworkloads.DiskSKUNamePremiumLRS), + // }, + // }}, + // }, + // "hana/shared": &armworkloads.SAPDiskConfiguration{ + // RecommendedConfiguration: &armworkloads.DiskVolumeConfiguration{ + // Count: to.Ptr[int64](1), + // SizeGB: to.Ptr[int64](256), + // SKU: &armworkloads.DiskSKU{ + // Name: to.Ptr(armworkloads.DiskSKUNamePremiumLRS), + // }, + // }, + // SupportedConfigurations: []*armworkloads.DiskDetails{ + // { + // DiskTier: to.Ptr("P15"), + // IopsReadWrite: to.Ptr[int64](1100), + // MaximumSupportedDiskCount: to.Ptr[int64](1), + // MbpsReadWrite: to.Ptr[int64](125), + // MinimumSupportedDiskCount: to.Ptr[int64](1), + // SizeGB: to.Ptr[int64](256), + // SKU: &armworkloads.DiskSKU{ + // Name: to.Ptr(armworkloads.DiskSKUNamePremiumLRS), + // }, + // }, + // { + // DiskTier: to.Ptr("P20"), + // IopsReadWrite: to.Ptr[int64](2300), + // MaximumSupportedDiskCount: to.Ptr[int64](1), + // MbpsReadWrite: to.Ptr[int64](150), + // MinimumSupportedDiskCount: to.Ptr[int64](1), + // SizeGB: to.Ptr[int64](512), + // SKU: &armworkloads.DiskSKU{ + // Name: to.Ptr(armworkloads.DiskSKUNamePremiumLRS), + // }, + // }, + // { + // DiskTier: to.Ptr("P30"), + // IopsReadWrite: to.Ptr[int64](5000), + // MaximumSupportedDiskCount: to.Ptr[int64](1), + // MbpsReadWrite: to.Ptr[int64](200), + // MinimumSupportedDiskCount: to.Ptr[int64](1), + // SizeGB: to.Ptr[int64](1024), + // SKU: &armworkloads.DiskSKU{ + // Name: to.Ptr(armworkloads.DiskSKUNamePremiumLRS), + // }, + // }, + // { + // DiskTier: to.Ptr("P40"), + // IopsReadWrite: to.Ptr[int64](7500), + // MaximumSupportedDiskCount: to.Ptr[int64](1), + // MbpsReadWrite: to.Ptr[int64](250), + // MinimumSupportedDiskCount: to.Ptr[int64](1), + // SizeGB: to.Ptr[int64](2048), + // SKU: &armworkloads.DiskSKU{ + // Name: to.Ptr(armworkloads.DiskSKUNamePremiumLRS), + // }, + // }, + // { + // DiskTier: to.Ptr("P50"), + // IopsReadWrite: to.Ptr[int64](7500), + // MaximumSupportedDiskCount: to.Ptr[int64](1), + // MbpsReadWrite: to.Ptr[int64](250), + // MinimumSupportedDiskCount: to.Ptr[int64](1), + // SizeGB: to.Ptr[int64](4096), + // SKU: &armworkloads.DiskSKU{ + // Name: to.Ptr(armworkloads.DiskSKUNamePremiumLRS), + // }, + // }}, + // }, + // "os": &armworkloads.SAPDiskConfiguration{ + // RecommendedConfiguration: &armworkloads.DiskVolumeConfiguration{ + // Count: to.Ptr[int64](1), + // SizeGB: to.Ptr[int64](64), + // SKU: &armworkloads.DiskSKU{ + // Name: to.Ptr(armworkloads.DiskSKUNamePremiumLRS), + // }, + // }, + // SupportedConfigurations: []*armworkloads.DiskDetails{ + // { + // DiskTier: to.Ptr("P6"), + // IopsReadWrite: to.Ptr[int64](240), + // MaximumSupportedDiskCount: to.Ptr[int64](1), + // MbpsReadWrite: to.Ptr[int64](50), + // MinimumSupportedDiskCount: to.Ptr[int64](1), + // SizeGB: to.Ptr[int64](64), + // SKU: &armworkloads.DiskSKU{ + // Name: to.Ptr(armworkloads.DiskSKUNamePremiumLRS), + // }, + // }, + // { + // DiskTier: to.Ptr("P10"), + // IopsReadWrite: to.Ptr[int64](500), + // MaximumSupportedDiskCount: to.Ptr[int64](1), + // MbpsReadWrite: to.Ptr[int64](100), + // MinimumSupportedDiskCount: to.Ptr[int64](1), + // SizeGB: to.Ptr[int64](128), + // SKU: &armworkloads.DiskSKU{ + // Name: to.Ptr(armworkloads.DiskSKUNamePremiumLRS), + // }, + // }}, + // }, + // "usr/sap": &armworkloads.SAPDiskConfiguration{ + // RecommendedConfiguration: &armworkloads.DiskVolumeConfiguration{ + // Count: to.Ptr[int64](1), + // SizeGB: to.Ptr[int64](128), + // SKU: &armworkloads.DiskSKU{ + // Name: to.Ptr(armworkloads.DiskSKUNamePremiumLRS), + // }, + // }, + // SupportedConfigurations: []*armworkloads.DiskDetails{ + // { + // DiskTier: to.Ptr("P10"), + // IopsReadWrite: to.Ptr[int64](500), + // MaximumSupportedDiskCount: to.Ptr[int64](1), + // MbpsReadWrite: to.Ptr[int64](100), + // MinimumSupportedDiskCount: to.Ptr[int64](1), + // SizeGB: to.Ptr[int64](128), + // SKU: &armworkloads.DiskSKU{ + // Name: to.Ptr(armworkloads.DiskSKUNamePremiumLRS), + // }, + // }, + // { + // DiskTier: to.Ptr("P10"), + // IopsReadWrite: to.Ptr[int64](1100), + // MaximumSupportedDiskCount: to.Ptr[int64](1), + // MbpsReadWrite: to.Ptr[int64](125), + // MinimumSupportedDiskCount: to.Ptr[int64](1), + // SizeGB: to.Ptr[int64](256), + // SKU: &armworkloads.DiskSKU{ + // Name: to.Ptr(armworkloads.DiskSKUNamePremiumLRS), + // }, + // }, + // { + // DiskTier: to.Ptr("P10"), + // IopsReadWrite: to.Ptr[int64](2300), + // MaximumSupportedDiskCount: to.Ptr[int64](1), + // MbpsReadWrite: to.Ptr[int64](150), + // MinimumSupportedDiskCount: to.Ptr[int64](1), + // SizeGB: to.Ptr[int64](512), + // SKU: &armworkloads.DiskSKU{ + // Name: to.Ptr(armworkloads.DiskSKUNamePremiumLRS), + // }, + // }}, + // }, + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/sapvirtualinstances/SAPAvailabilityZoneDetails_eastus.json +func ExampleClient_SAPAvailabilityZoneDetails_sapAvailabilityZoneDetailsEastus() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armworkloads.NewClient("8e17e36c-42e9-4cd5-a078-7b44883414e0", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.SAPAvailabilityZoneDetails(ctx, "centralus", &armworkloads.ClientSAPAvailabilityZoneDetailsOptions{SAPAvailabilityZoneDetails: nil}) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.SAPAvailabilityZoneDetailsResult = armworkloads.SAPAvailabilityZoneDetailsResult{ + // AvailabilityZonePairs: []*armworkloads.SAPAvailabilityZonePair{ + // { + // ZoneA: to.Ptr[int64](1), + // ZoneB: to.Ptr[int64](2), + // }}, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/sapvirtualinstances/SAPAvailabilityZoneDetails_northeurope.json +func ExampleClient_SAPAvailabilityZoneDetails_sapAvailabilityZoneDetailsNortheurope() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armworkloads.NewClient("8e17e36c-42e9-4cd5-a078-7b44883414e0", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.SAPAvailabilityZoneDetails(ctx, "centralus", &armworkloads.ClientSAPAvailabilityZoneDetailsOptions{SAPAvailabilityZoneDetails: nil}) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.SAPAvailabilityZoneDetailsResult = armworkloads.SAPAvailabilityZoneDetailsResult{ + // AvailabilityZonePairs: []*armworkloads.SAPAvailabilityZonePair{ + // { + // ZoneA: to.Ptr[int64](2), + // ZoneB: to.Ptr[int64](3), + // }}, + // } +} diff --git a/sdk/resourcemanager/workloads/armworkloads/constants.go b/sdk/resourcemanager/workloads/armworkloads/constants.go index bc47439234b8..5056ccc2abda 100644 --- a/sdk/resourcemanager/workloads/armworkloads/constants.go +++ b/sdk/resourcemanager/workloads/armworkloads/constants.go @@ -11,7 +11,7 @@ package armworkloads const ( moduleName = "armworkloads" - moduleVersion = "v0.2.0" + moduleVersion = "v0.3.0" ) // ActionType - Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. @@ -28,45 +28,21 @@ func PossibleActionTypeValues() []ActionType { } } -// ApplicationProvisioningState - WordPress instance provisioning state -type ApplicationProvisioningState string +// ApplicationServerVirtualMachineType - Defines the type of application server VM. +type ApplicationServerVirtualMachineType string const ( - ApplicationProvisioningStateAccepted ApplicationProvisioningState = "Accepted" - ApplicationProvisioningStateCanceled ApplicationProvisioningState = "Canceled" - ApplicationProvisioningStateCreated ApplicationProvisioningState = "Created" - ApplicationProvisioningStateFailed ApplicationProvisioningState = "Failed" - ApplicationProvisioningStateInstalling ApplicationProvisioningState = "Installing" - ApplicationProvisioningStateNotSpecified ApplicationProvisioningState = "NotSpecified" - ApplicationProvisioningStateSucceeded ApplicationProvisioningState = "Succeeded" + ApplicationServerVirtualMachineTypeActive ApplicationServerVirtualMachineType = "Active" + ApplicationServerVirtualMachineTypeStandby ApplicationServerVirtualMachineType = "Standby" + ApplicationServerVirtualMachineTypeUnknown ApplicationServerVirtualMachineType = "Unknown" ) -// PossibleApplicationProvisioningStateValues returns the possible values for the ApplicationProvisioningState const type. -func PossibleApplicationProvisioningStateValues() []ApplicationProvisioningState { - return []ApplicationProvisioningState{ - ApplicationProvisioningStateAccepted, - ApplicationProvisioningStateCanceled, - ApplicationProvisioningStateCreated, - ApplicationProvisioningStateFailed, - ApplicationProvisioningStateInstalling, - ApplicationProvisioningStateNotSpecified, - ApplicationProvisioningStateSucceeded, - } -} - -// AzureFrontDoorEnabled - Whether to enable Azure front door -type AzureFrontDoorEnabled string - -const ( - AzureFrontDoorEnabledDisabled AzureFrontDoorEnabled = "Disabled" - AzureFrontDoorEnabledEnabled AzureFrontDoorEnabled = "Enabled" -) - -// PossibleAzureFrontDoorEnabledValues returns the possible values for the AzureFrontDoorEnabled const type. -func PossibleAzureFrontDoorEnabledValues() []AzureFrontDoorEnabled { - return []AzureFrontDoorEnabled{ - AzureFrontDoorEnabledDisabled, - AzureFrontDoorEnabledEnabled, +// PossibleApplicationServerVirtualMachineTypeValues returns the possible values for the ApplicationServerVirtualMachineType const type. +func PossibleApplicationServerVirtualMachineTypeValues() []ApplicationServerVirtualMachineType { + return []ApplicationServerVirtualMachineType{ + ApplicationServerVirtualMachineTypeActive, + ApplicationServerVirtualMachineTypeStandby, + ApplicationServerVirtualMachineTypeUnknown, } } @@ -96,6 +72,24 @@ func PossibleCentralServerVirtualMachineTypeValues() []CentralServerVirtualMachi } } +// ConfigurationType - The type of file share config. +type ConfigurationType string + +const ( + ConfigurationTypeCreateAndMount ConfigurationType = "CreateAndMount" + ConfigurationTypeMount ConfigurationType = "Mount" + ConfigurationTypeSkip ConfigurationType = "Skip" +) + +// PossibleConfigurationTypeValues returns the possible values for the ConfigurationType const type. +func PossibleConfigurationTypeValues() []ConfigurationType { + return []ConfigurationType{ + ConfigurationTypeCreateAndMount, + ConfigurationTypeMount, + ConfigurationTypeSkip, + } +} + // CreatedByType - The type of identity that created the resource. type CreatedByType string @@ -116,85 +110,29 @@ func PossibleCreatedByTypeValues() []CreatedByType { } } -// DatabaseTier - Tier of the server SKU -type DatabaseTier string +// DiskSKUName - Defines the disk sku name. +type DiskSKUName string const ( - DatabaseTierBurstable DatabaseTier = "Burstable" - DatabaseTierGeneralPurpose DatabaseTier = "GeneralPurpose" - DatabaseTierMemoryOptimized DatabaseTier = "MemoryOptimized" + DiskSKUNamePremiumLRS DiskSKUName = "Premium_LRS" + DiskSKUNamePremiumV2LRS DiskSKUName = "PremiumV2_LRS" + DiskSKUNamePremiumZRS DiskSKUName = "Premium_ZRS" + DiskSKUNameStandardLRS DiskSKUName = "Standard_LRS" + DiskSKUNameStandardSSDLRS DiskSKUName = "StandardSSD_LRS" + DiskSKUNameStandardSSDZRS DiskSKUName = "StandardSSD_ZRS" + DiskSKUNameUltraSSDLRS DiskSKUName = "UltraSSD_LRS" ) -// PossibleDatabaseTierValues returns the possible values for the DatabaseTier const type. -func PossibleDatabaseTierValues() []DatabaseTier { - return []DatabaseTier{ - DatabaseTierBurstable, - DatabaseTierGeneralPurpose, - DatabaseTierMemoryOptimized, - } -} - -// DatabaseType - Database type -type DatabaseType string - -const ( - DatabaseTypeMySQL DatabaseType = "MySql" -) - -// PossibleDatabaseTypeValues returns the possible values for the DatabaseType const type. -func PossibleDatabaseTypeValues() []DatabaseType { - return []DatabaseType{ - DatabaseTypeMySQL, - } -} - -// DiskStorageType - Storage type -type DiskStorageType string - -const ( - DiskStorageTypePremiumLRS DiskStorageType = "Premium_LRS" - DiskStorageTypeStandardLRS DiskStorageType = "Standard_LRS" - DiskStorageTypeStandardSSDLRS DiskStorageType = "StandardSSD_LRS" -) - -// PossibleDiskStorageTypeValues returns the possible values for the DiskStorageType const type. -func PossibleDiskStorageTypeValues() []DiskStorageType { - return []DiskStorageType{ - DiskStorageTypePremiumLRS, - DiskStorageTypeStandardLRS, - DiskStorageTypeStandardSSDLRS, - } -} - -// EnableBackup - Whether to enable Azure backup for the workload -type EnableBackup string - -const ( - EnableBackupDisabled EnableBackup = "Disabled" - EnableBackupEnabled EnableBackup = "Enabled" -) - -// PossibleEnableBackupValues returns the possible values for the EnableBackup const type. -func PossibleEnableBackupValues() []EnableBackup { - return []EnableBackup{ - EnableBackupDisabled, - EnableBackupEnabled, - } -} - -// EnableSSLEnforcement - Whether to enable SSL enforcement on the database -type EnableSSLEnforcement string - -const ( - EnableSSLEnforcementDisabled EnableSSLEnforcement = "Disabled" - EnableSSLEnforcementEnabled EnableSSLEnforcement = "Enabled" -) - -// PossibleEnableSSLEnforcementValues returns the possible values for the EnableSSLEnforcement const type. -func PossibleEnableSSLEnforcementValues() []EnableSSLEnforcement { - return []EnableSSLEnforcement{ - EnableSSLEnforcementDisabled, - EnableSSLEnforcementEnabled, +// PossibleDiskSKUNameValues returns the possible values for the DiskSKUName const type. +func PossibleDiskSKUNameValues() []DiskSKUName { + return []DiskSKUName{ + DiskSKUNamePremiumLRS, + DiskSKUNamePremiumV2LRS, + DiskSKUNamePremiumZRS, + DiskSKUNameStandardLRS, + DiskSKUNameStandardSSDLRS, + DiskSKUNameStandardSSDZRS, + DiskSKUNameUltraSSDLRS, } } @@ -214,90 +152,6 @@ func PossibleEnqueueReplicationServerTypeValues() []EnqueueReplicationServerType } } -// FileShareStorageType - File share backing storage type -type FileShareStorageType string - -const ( - FileShareStorageTypePremiumLRS FileShareStorageType = "Premium_LRS" - FileShareStorageTypeStandardGRS FileShareStorageType = "Standard_GRS" - FileShareStorageTypeStandardLRS FileShareStorageType = "Standard_LRS" - FileShareStorageTypeStandardZRS FileShareStorageType = "Standard_ZRS" -) - -// PossibleFileShareStorageTypeValues returns the possible values for the FileShareStorageType const type. -func PossibleFileShareStorageTypeValues() []FileShareStorageType { - return []FileShareStorageType{ - FileShareStorageTypePremiumLRS, - FileShareStorageTypeStandardGRS, - FileShareStorageTypeStandardLRS, - FileShareStorageTypeStandardZRS, - } -} - -// FileShareType - Share type -type FileShareType string - -const ( - FileShareTypeAzureFiles FileShareType = "AzureFiles" - FileShareTypeNfsOnController FileShareType = "NfsOnController" -) - -// PossibleFileShareTypeValues returns the possible values for the FileShareType const type. -func PossibleFileShareTypeValues() []FileShareType { - return []FileShareType{ - FileShareTypeAzureFiles, - FileShareTypeNfsOnController, - } -} - -// HAEnabled - Whether to enable HA for the server -type HAEnabled string - -const ( - HAEnabledDisabled HAEnabled = "Disabled" - HAEnabledEnabled HAEnabled = "Enabled" -) - -// PossibleHAEnabledValues returns the possible values for the HAEnabled const type. -func PossibleHAEnabledValues() []HAEnabled { - return []HAEnabled{ - HAEnabledDisabled, - HAEnabledEnabled, - } -} - -// LoadBalancerType - Load balancer type -type LoadBalancerType string - -const ( - LoadBalancerTypeApplicationGateway LoadBalancerType = "ApplicationGateway" - LoadBalancerTypeLoadBalancer LoadBalancerType = "LoadBalancer" -) - -// PossibleLoadBalancerTypeValues returns the possible values for the LoadBalancerType const type. -func PossibleLoadBalancerTypeValues() []LoadBalancerType { - return []LoadBalancerType{ - LoadBalancerTypeApplicationGateway, - LoadBalancerTypeLoadBalancer, - } -} - -// LocationType - Type of the extended location. -type LocationType string - -const ( - LocationTypeEdgeZone LocationType = "EdgeZone" - LocationTypeRegion LocationType = "Region" -) - -// PossibleLocationTypeValues returns the possible values for the LocationType const type. -func PossibleLocationTypeValues() []LocationType { - return []LocationType{ - LocationTypeEdgeZone, - LocationTypeRegion, - } -} - // ManagedServiceIdentityType - Type of managed service identity (only None, UserAssigned types are allowed). type ManagedServiceIdentityType string @@ -314,61 +168,17 @@ func PossibleManagedServiceIdentityTypeValues() []ManagedServiceIdentityType { } } -// OSImageOffer - OS image offer -type OSImageOffer string +// NamingPatternType - The pattern type to be used for resource naming. +type NamingPatternType string const ( - OSImageOfferUbuntuServer OSImageOffer = "UbuntuServer" + NamingPatternTypeFullResourceName NamingPatternType = "FullResourceName" ) -// PossibleOSImageOfferValues returns the possible values for the OSImageOffer const type. -func PossibleOSImageOfferValues() []OSImageOffer { - return []OSImageOffer{ - OSImageOfferUbuntuServer, - } -} - -// OSImagePublisher - OS image publisher -type OSImagePublisher string - -const ( - OSImagePublisherCanonical OSImagePublisher = "Canonical" -) - -// PossibleOSImagePublisherValues returns the possible values for the OSImagePublisher const type. -func PossibleOSImagePublisherValues() []OSImagePublisher { - return []OSImagePublisher{ - OSImagePublisherCanonical, - } -} - -// OSImageSKU - OS image sku -type OSImageSKU string - -const ( - OSImageSKUEighteen04LTS OSImageSKU = "18.04-LTS" - OSImageSKUSixteen04LTS OSImageSKU = "16.04-LTS" -) - -// PossibleOSImageSKUValues returns the possible values for the OSImageSKU const type. -func PossibleOSImageSKUValues() []OSImageSKU { - return []OSImageSKU{ - OSImageSKUEighteen04LTS, - OSImageSKUSixteen04LTS, - } -} - -// OSImageVersion - OS image version -type OSImageVersion string - -const ( - OSImageVersionLatest OSImageVersion = "latest" -) - -// PossibleOSImageVersionValues returns the possible values for the OSImageVersion const type. -func PossibleOSImageVersionValues() []OSImageVersion { - return []OSImageVersion{ - OSImageVersionLatest, +// PossibleNamingPatternTypeValues returns the possible values for the NamingPatternType const type. +func PossibleNamingPatternTypeValues() []NamingPatternType { + return []NamingPatternType{ + NamingPatternTypeFullResourceName, } } @@ -425,68 +235,6 @@ func PossibleOriginValues() []Origin { } } -// PHPVersion - PHP version -type PHPVersion string - -const ( - PHPVersionSeven2 PHPVersion = "7.2" - PHPVersionSeven3 PHPVersion = "7.3" - PHPVersionSeven4 PHPVersion = "7.4" -) - -// PossiblePHPVersionValues returns the possible values for the PHPVersion const type. -func PossiblePHPVersionValues() []PHPVersion { - return []PHPVersion{ - PHPVersionSeven2, - PHPVersionSeven3, - PHPVersionSeven4, - } -} - -// PhpWorkloadProvisioningState - Php workload resource provisioning state -type PhpWorkloadProvisioningState string - -const ( - PhpWorkloadProvisioningStateAccepted PhpWorkloadProvisioningState = "Accepted" - PhpWorkloadProvisioningStateCanceled PhpWorkloadProvisioningState = "Canceled" - PhpWorkloadProvisioningStateCreated PhpWorkloadProvisioningState = "Created" - PhpWorkloadProvisioningStateDeleting PhpWorkloadProvisioningState = "Deleting" - PhpWorkloadProvisioningStateFailed PhpWorkloadProvisioningState = "Failed" - PhpWorkloadProvisioningStateNotSpecified PhpWorkloadProvisioningState = "NotSpecified" - PhpWorkloadProvisioningStateProvisioning PhpWorkloadProvisioningState = "Provisioning" - PhpWorkloadProvisioningStateSucceeded PhpWorkloadProvisioningState = "Succeeded" -) - -// PossiblePhpWorkloadProvisioningStateValues returns the possible values for the PhpWorkloadProvisioningState const type. -func PossiblePhpWorkloadProvisioningStateValues() []PhpWorkloadProvisioningState { - return []PhpWorkloadProvisioningState{ - PhpWorkloadProvisioningStateAccepted, - PhpWorkloadProvisioningStateCanceled, - PhpWorkloadProvisioningStateCreated, - PhpWorkloadProvisioningStateDeleting, - PhpWorkloadProvisioningStateFailed, - PhpWorkloadProvisioningStateNotSpecified, - PhpWorkloadProvisioningStateProvisioning, - PhpWorkloadProvisioningStateSucceeded, - } -} - -// RedisCacheFamily - Cache family -type RedisCacheFamily string - -const ( - RedisCacheFamilyC RedisCacheFamily = "C" - RedisCacheFamilyP RedisCacheFamily = "P" -) - -// PossibleRedisCacheFamilyValues returns the possible values for the RedisCacheFamily const type. -func PossibleRedisCacheFamilyValues() []RedisCacheFamily { - return []RedisCacheFamily{ - RedisCacheFamilyC, - RedisCacheFamilyP, - } -} - // RoutingPreference - Sets the routing preference of the SAP monitor. By default only RFC1918 traffic is routed to the customer // VNET. type RoutingPreference string @@ -552,7 +300,7 @@ func PossibleSAPDatabaseTypeValues() []SAPDatabaseType { } } -// SAPDeploymentType - The deployment Type. +// SAPDeploymentType - The type of SAP deployment, single server or Three tier. type SAPDeploymentType string const ( @@ -584,7 +332,7 @@ func PossibleSAPEnvironmentTypeValues() []SAPEnvironmentType { } } -// SAPHealthState - Defines the SAP Instance health. +// SAPHealthState - Defines the health of SAP Instances. type SAPHealthState string const ( @@ -643,6 +391,7 @@ func PossibleSAPProductTypeValues() []SAPProductType { type SAPSoftwareInstallationType string const ( + SAPSoftwareInstallationTypeExternal SAPSoftwareInstallationType = "External" SAPSoftwareInstallationTypeSAPInstallWithoutOSConfig SAPSoftwareInstallationType = "SAPInstallWithoutOSConfig" SAPSoftwareInstallationTypeServiceInitiated SAPSoftwareInstallationType = "ServiceInitiated" ) @@ -650,6 +399,7 @@ const ( // PossibleSAPSoftwareInstallationTypeValues returns the possible values for the SAPSoftwareInstallationType const type. func PossibleSAPSoftwareInstallationTypeValues() []SAPSoftwareInstallationType { return []SAPSoftwareInstallationType{ + SAPSoftwareInstallationTypeExternal, SAPSoftwareInstallationTypeSAPInstallWithoutOSConfig, SAPSoftwareInstallationTypeServiceInitiated, } @@ -666,6 +416,8 @@ const ( SAPVirtualInstanceStateInfrastructureDeploymentInProgress SAPVirtualInstanceState = "InfrastructureDeploymentInProgress" SAPVirtualInstanceStateInfrastructureDeploymentPending SAPVirtualInstanceState = "InfrastructureDeploymentPending" SAPVirtualInstanceStateRegistrationComplete SAPVirtualInstanceState = "RegistrationComplete" + SAPVirtualInstanceStateSoftwareDetectionFailed SAPVirtualInstanceState = "SoftwareDetectionFailed" + SAPVirtualInstanceStateSoftwareDetectionInProgress SAPVirtualInstanceState = "SoftwareDetectionInProgress" SAPVirtualInstanceStateSoftwareInstallationFailed SAPVirtualInstanceState = "SoftwareInstallationFailed" SAPVirtualInstanceStateSoftwareInstallationInProgress SAPVirtualInstanceState = "SoftwareInstallationInProgress" SAPVirtualInstanceStateSoftwareInstallationPending SAPVirtualInstanceState = "SoftwareInstallationPending" @@ -681,6 +433,8 @@ func PossibleSAPVirtualInstanceStateValues() []SAPVirtualInstanceState { SAPVirtualInstanceStateInfrastructureDeploymentInProgress, SAPVirtualInstanceStateInfrastructureDeploymentPending, SAPVirtualInstanceStateRegistrationComplete, + SAPVirtualInstanceStateSoftwareDetectionFailed, + SAPVirtualInstanceStateSoftwareDetectionInProgress, SAPVirtualInstanceStateSoftwareInstallationFailed, SAPVirtualInstanceStateSoftwareInstallationInProgress, SAPVirtualInstanceStateSoftwareInstallationPending, @@ -694,6 +448,7 @@ const ( SAPVirtualInstanceStatusOffline SAPVirtualInstanceStatus = "Offline" SAPVirtualInstanceStatusPartiallyRunning SAPVirtualInstanceStatus = "PartiallyRunning" SAPVirtualInstanceStatusRunning SAPVirtualInstanceStatus = "Running" + SAPVirtualInstanceStatusSoftShutdown SAPVirtualInstanceStatus = "SoftShutdown" SAPVirtualInstanceStatusStarting SAPVirtualInstanceStatus = "Starting" SAPVirtualInstanceStatusStopping SAPVirtualInstanceStatus = "Stopping" SAPVirtualInstanceStatusUnavailable SAPVirtualInstanceStatus = "Unavailable" @@ -705,84 +460,50 @@ func PossibleSAPVirtualInstanceStatusValues() []SAPVirtualInstanceStatus { SAPVirtualInstanceStatusOffline, SAPVirtualInstanceStatusPartiallyRunning, SAPVirtualInstanceStatusRunning, + SAPVirtualInstanceStatusSoftShutdown, SAPVirtualInstanceStatusStarting, SAPVirtualInstanceStatusStopping, SAPVirtualInstanceStatusUnavailable, } } -// SKURestrictionReasonCode - The SKU restriction reason code. -type SKURestrictionReasonCode string - -const ( - SKURestrictionReasonCodeNotAvailableForSubscription SKURestrictionReasonCode = "NotAvailableForSubscription" - SKURestrictionReasonCodeNotSpecified SKURestrictionReasonCode = "NotSpecified" - SKURestrictionReasonCodeQuotaID SKURestrictionReasonCode = "QuotaId" -) - -// PossibleSKURestrictionReasonCodeValues returns the possible values for the SKURestrictionReasonCode const type. -func PossibleSKURestrictionReasonCodeValues() []SKURestrictionReasonCode { - return []SKURestrictionReasonCode{ - SKURestrictionReasonCodeNotAvailableForSubscription, - SKURestrictionReasonCodeNotSpecified, - SKURestrictionReasonCodeQuotaID, - } -} - -// SKURestrictionType - The SKU restriction type. -type SKURestrictionType string +// SSLPreference - Gets or sets certificate preference if secure communication is enabled. +type SSLPreference string const ( - SKURestrictionTypeLocation SKURestrictionType = "Location" - SKURestrictionTypeNotSpecified SKURestrictionType = "NotSpecified" - SKURestrictionTypeZone SKURestrictionType = "Zone" + SSLPreferenceDisabled SSLPreference = "Disabled" + SSLPreferenceRootCertificate SSLPreference = "RootCertificate" + SSLPreferenceServerCertificate SSLPreference = "ServerCertificate" ) -// PossibleSKURestrictionTypeValues returns the possible values for the SKURestrictionType const type. -func PossibleSKURestrictionTypeValues() []SKURestrictionType { - return []SKURestrictionType{ - SKURestrictionTypeLocation, - SKURestrictionTypeNotSpecified, - SKURestrictionTypeZone, +// PossibleSSLPreferenceValues returns the possible values for the SSLPreference const type. +func PossibleSSLPreferenceValues() []SSLPreference { + return []SSLPreference{ + SSLPreferenceDisabled, + SSLPreferenceRootCertificate, + SSLPreferenceServerCertificate, } } -// SKUScaleType - Scale type of the SKU capacity. -type SKUScaleType string +// SapLandscapeMonitorProvisioningState - State of provisioning of the SAP monitor. +type SapLandscapeMonitorProvisioningState string const ( - SKUScaleTypeAutomatic SKUScaleType = "Automatic" - SKUScaleTypeManual SKUScaleType = "Manual" - SKUScaleTypeNone SKUScaleType = "None" + SapLandscapeMonitorProvisioningStateAccepted SapLandscapeMonitorProvisioningState = "Accepted" + SapLandscapeMonitorProvisioningStateCanceled SapLandscapeMonitorProvisioningState = "Canceled" + SapLandscapeMonitorProvisioningStateCreated SapLandscapeMonitorProvisioningState = "Created" + SapLandscapeMonitorProvisioningStateFailed SapLandscapeMonitorProvisioningState = "Failed" + SapLandscapeMonitorProvisioningStateSucceeded SapLandscapeMonitorProvisioningState = "Succeeded" ) -// PossibleSKUScaleTypeValues returns the possible values for the SKUScaleType const type. -func PossibleSKUScaleTypeValues() []SKUScaleType { - return []SKUScaleType{ - SKUScaleTypeAutomatic, - SKUScaleTypeManual, - SKUScaleTypeNone, - } -} - -// SKUTier - This field is required to be implemented by the Resource Provider if the service has more than one tier, but -// is not required on a PUT. -type SKUTier string - -const ( - SKUTierFree SKUTier = "Free" - SKUTierBasic SKUTier = "Basic" - SKUTierStandard SKUTier = "Standard" - SKUTierPremium SKUTier = "Premium" -) - -// PossibleSKUTierValues returns the possible values for the SKUTier const type. -func PossibleSKUTierValues() []SKUTier { - return []SKUTier{ - SKUTierFree, - SKUTierBasic, - SKUTierStandard, - SKUTierPremium, +// PossibleSapLandscapeMonitorProvisioningStateValues returns the possible values for the SapLandscapeMonitorProvisioningState const type. +func PossibleSapLandscapeMonitorProvisioningStateValues() []SapLandscapeMonitorProvisioningState { + return []SapLandscapeMonitorProvisioningState{ + SapLandscapeMonitorProvisioningStateAccepted, + SapLandscapeMonitorProvisioningStateCanceled, + SapLandscapeMonitorProvisioningStateCreated, + SapLandscapeMonitorProvisioningStateFailed, + SapLandscapeMonitorProvisioningStateSucceeded, } } @@ -808,54 +529,6 @@ func PossibleSapVirtualInstanceProvisioningStateValues() []SapVirtualInstancePro } } -// SearchType - Search type -type SearchType string - -const ( - SearchTypeElastic SearchType = "Elastic" -) - -// PossibleSearchTypeValues returns the possible values for the SearchType const type. -func PossibleSearchTypeValues() []SearchType { - return []SearchType{ - SearchTypeElastic, - } -} - -// WordpressVersions - Application version -type WordpressVersions string - -const ( - WordpressVersionsFive4 WordpressVersions = "5.4" - WordpressVersionsFive41 WordpressVersions = "5.4.1" - WordpressVersionsFive42 WordpressVersions = "5.4.2" - WordpressVersionsFive43 WordpressVersions = "5.4.3" -) - -// PossibleWordpressVersionsValues returns the possible values for the WordpressVersions const type. -func PossibleWordpressVersionsValues() []WordpressVersions { - return []WordpressVersions{ - WordpressVersionsFive4, - WordpressVersionsFive41, - WordpressVersionsFive42, - WordpressVersionsFive43, - } -} - -// WorkloadKind - Indicates which kind of php workload this resource represent e.g WordPress -type WorkloadKind string - -const ( - WorkloadKindWordPress WorkloadKind = "WordPress" -) - -// PossibleWorkloadKindValues returns the possible values for the WorkloadKind const type. -func PossibleWorkloadKindValues() []WorkloadKind { - return []WorkloadKind{ - WorkloadKindWordPress, - } -} - // WorkloadMonitorActionType - Defines the action type of workload operation. type WorkloadMonitorActionType string diff --git a/sdk/resourcemanager/workloads/armworkloads/go.mod b/sdk/resourcemanager/workloads/armworkloads/go.mod index 9e65349ccb34..815f75d4ecb9 100644 --- a/sdk/resourcemanager/workloads/armworkloads/go.mod +++ b/sdk/resourcemanager/workloads/armworkloads/go.mod @@ -4,13 +4,13 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.0.0 - github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.1.0 + github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.1 ) require ( github.com/Azure/azure-sdk-for-go/sdk/internal v1.0.0 // indirect - github.com/AzureAD/microsoft-authentication-library-for-go v0.5.1 // indirect - github.com/golang-jwt/jwt v3.2.1+incompatible // indirect + github.com/AzureAD/microsoft-authentication-library-for-go v0.8.1 // indirect + github.com/golang-jwt/jwt/v4 v4.4.2 // 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 diff --git a/sdk/resourcemanager/workloads/armworkloads/go.sum b/sdk/resourcemanager/workloads/armworkloads/go.sum index 8828b17b1853..67cfef6bdf6e 100644 --- a/sdk/resourcemanager/workloads/armworkloads/go.sum +++ b/sdk/resourcemanager/workloads/armworkloads/go.sum @@ -1,21 +1,19 @@ 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.1.0 h1:QkAcEIAKbNL4KoFr4SathZPhDhF4mVwpBMFlYjyAqy8= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.1.0/go.mod h1:bhXu1AjYL+wutSL/kpSq6s7733q2Rb0yuot9Zgfqa/0= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.1 h1:T8quHYlUGyb/oqtSTwqlCr1ilJHrDv+ZtpSfo+hm1BU= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.1/go.mod h1:gLa1CL2RNE4s7M3yopJ/p0iq5DdY6Yv5ZUt9MTRZOQM= 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.5.1 h1:BWe8a+f/t+7KY7zH2mqygeUD0t8hNFXe08p1Pb3/jKE= -github.com/AzureAD/microsoft-authentication-library-for-go v0.5.1/go.mod h1:Vt9sXTKwMyGcOxSmLDMnGPgqsUg7m8pe215qMLrDXw4= +github.com/AzureAD/microsoft-authentication-library-for-go v0.8.1 h1:oPdPEZFSbl7oSPEAIPMPBMUmiL+mqgzBJwM/9qYcwNg= +github.com/AzureAD/microsoft-authentication-library-for-go v0.8.1/go.mod h1:4qFor3D/HDsvBME35Xy9rwW9DecL+M2sNw1ybjPtwA0= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/dnaeon/go-vcr v1.1.0 h1:ReYa/UBrRyQdant9B4fNHGoCNKw6qh6P0fsdGmZpR7c= -github.com/golang-jwt/jwt 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= +github.com/golang-jwt/jwt/v4 v4.4.2 h1:rcc4lwaZgFMCZ5jxF9ABolDcIHdBytAFgqFPbSJQAYs= +github.com/golang-jwt/jwt/v4 v4.4.2/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= 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/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= @@ -24,7 +22,6 @@ golang.org/x/crypto v0.0.0-20220511200225-c6db032c6c88 h1:Tgea0cVUD0ivh5ADBX4Wwu 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-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= diff --git a/sdk/resourcemanager/workloads/armworkloads/models.go b/sdk/resourcemanager/workloads/armworkloads/models.go index b9d24276bc67..24e1d9d18ea5 100644 --- a/sdk/resourcemanager/workloads/armworkloads/models.go +++ b/sdk/resourcemanager/workloads/armworkloads/models.go @@ -23,31 +23,27 @@ type ApplicationServerConfiguration struct { VirtualMachineConfiguration *VirtualMachineConfiguration `json:"virtualMachineConfiguration,omitempty"` } -// BackupProfile - Backup profile -type BackupProfile struct { - // REQUIRED; Whether to enable Azure backup for the workload - BackupEnabled *EnableBackup `json:"backupEnabled,omitempty"` +// ApplicationServerFullResourceNames - The full resource names object for application layer resources. The number of entries +// in this list should be equal to the number VMs to be created for application layer. +type ApplicationServerFullResourceNames struct { + // The full name for availability set. In case name is not provided, it will be defaulted to {SID}-App-AvSet. + AvailabilitySetName *string `json:"availabilitySetName,omitempty"` - // READ-ONLY; Backup vault resource Id - VaultResourceID *string `json:"vaultResourceId,omitempty" azure:"ro"` + // The list of virtual machine naming details. + VirtualMachines []*VirtualMachineResourceNames `json:"virtualMachines,omitempty"` } -// CacheProfile - Cache profile -type CacheProfile struct { - // REQUIRED; Cache capacity - Capacity *int64 `json:"capacity,omitempty"` +// ApplicationServerVMDetails - The Application Server VM Details. +type ApplicationServerVMDetails struct { + // READ-ONLY; Storage details of all the Storage Accounts attached to the App Virtual Machine. For e.g. NFS on AFS Shared + // Storage. + StorageDetails []*StorageInformation `json:"storageDetails,omitempty" azure:"ro"` - // REQUIRED; Cache family - Family *RedisCacheFamily `json:"family,omitempty"` + // READ-ONLY; Defines the type of application server VM. + Type *ApplicationServerVirtualMachineType `json:"type,omitempty" azure:"ro"` - // REQUIRED; Cache SKU name - SKUName *string `json:"skuName,omitempty"` - - // Cache name - Name *string `json:"name,omitempty"` - - // READ-ONLY; Cache resource Id - CacheResourceID *string `json:"cacheResourceId,omitempty" azure:"ro"` + // READ-ONLY + VirtualMachineID *string `json:"virtualMachineId,omitempty" azure:"ro"` } // CentralServerConfiguration - Gets or sets the central server configuration. @@ -62,8 +58,26 @@ type CentralServerConfiguration struct { VirtualMachineConfiguration *VirtualMachineConfiguration `json:"virtualMachineConfiguration,omitempty"` } -// CentralServerVMDetails - The Central Server VM Details. +// CentralServerFullResourceNames - The full resource names object for central server layer resources. +type CentralServerFullResourceNames struct { + // The full name for availability set. In case name is not provided, it will be defaulted to {SID}-ASCS-AvSet. + AvailabilitySetName *string `json:"availabilitySetName,omitempty"` + + // The resource names object for load balancer and related resources. + LoadBalancer *LoadBalancerResourceNames `json:"loadBalancer,omitempty"` + + // The list of names for all ASCS virtual machines to be deployed. The number of entries in this list should be equal to the + // number VMs to be created for ASCS layer. At maximum, there can be two virtual + // machines at this layer: ASCS and ERS. + VirtualMachines []*VirtualMachineResourceNames `json:"virtualMachines,omitempty"` +} + +// CentralServerVMDetails - The SAP Central Services Instance VM details. type CentralServerVMDetails struct { + // READ-ONLY; Storage details of all the Storage Accounts attached to the ASCS Virtual Machine. For e.g. NFS on AFS Shared + // Storage. + StorageDetails []*StorageInformation `json:"storageDetails,omitempty" azure:"ro"` + // READ-ONLY; Defines the type of central server VM. Type *CentralServerVirtualMachineType `json:"type,omitempty" azure:"ro"` @@ -95,6 +109,25 @@ type ClientSAPSupportedSKUOptions struct { SAPSupportedSKU *SAPSupportedSKUsRequest } +// CreateAndMountFileShareConfiguration - Gets or sets the file share configuration for file share created with the VIS case. +type CreateAndMountFileShareConfiguration struct { + // REQUIRED; The type of file share config. + ConfigurationType *ConfigurationType `json:"configurationType,omitempty"` + + // The name of file share resource group. The app rg is used in case of missing input. + ResourceGroup *string `json:"resourceGroup,omitempty"` + + // The name of file share storage account name . A custom name is used in case of missing input. + StorageAccountName *string `json:"storageAccountName,omitempty"` +} + +// GetFileShareConfiguration implements the FileShareConfigurationClassification interface for type CreateAndMountFileShareConfiguration. +func (c *CreateAndMountFileShareConfiguration) GetFileShareConfiguration() *FileShareConfiguration { + return &FileShareConfiguration{ + ConfigurationType: c.ConfigurationType, + } +} + // DB2ProviderInstanceProperties - Gets or sets the DB2 provider properties. type DB2ProviderInstanceProperties struct { // REQUIRED; The provider type. For example, the value can be SapHana. @@ -118,6 +151,12 @@ type DB2ProviderInstanceProperties struct { // Gets or sets the target virtual machine name. Hostname *string `json:"hostname,omitempty"` + // Gets or sets the blob URI to SSL certificate for the DB2 Database. + SSLCertificateURI *string `json:"sslCertificateUri,omitempty"` + + // Gets or sets certificate preference if secure communication is enabled. + SSLPreference *SSLPreference `json:"sslPreference,omitempty"` + // Gets or sets the SAP System Identifier SapSid *string `json:"sapSid,omitempty"` } @@ -142,52 +181,33 @@ type DatabaseConfiguration struct { // The database type. DatabaseType *SAPDatabaseType `json:"databaseType,omitempty"` -} - -// DatabaseProfile - Workload database profile -type DatabaseProfile struct { - // REQUIRED; The name of the server SKU, e.g. StandardD32sv4 - SKU *string `json:"sku,omitempty"` - - // REQUIRED; Tier of the server SKU - Tier *DatabaseTier `json:"tier,omitempty"` - - // REQUIRED; Database type - Type *DatabaseType `json:"type,omitempty"` - - // Backup retention days for the server - BackupRetentionDays *int32 `json:"backupRetentionDays,omitempty"` - - // Whether to enable HA for the server - HaEnabled *HAEnabled `json:"haEnabled,omitempty"` - - // Whether to enable SSL enforcement on the database - SSLEnforcementEnabled *EnableSSLEnforcement `json:"sslEnforcementEnabled,omitempty"` - - // Database server name - ServerName *string `json:"serverName,omitempty"` - // Database storage size in GB - StorageInGB *int64 `json:"storageInGB,omitempty"` - - // Storage IOPS for the server - StorageIops *int64 `json:"storageIops,omitempty"` + // Gets or sets the disk configuration. + DiskConfiguration *DiskConfiguration `json:"diskConfiguration,omitempty"` +} - // SKU name for database storage - StorageSKU *string `json:"storageSku,omitempty"` +// DatabaseServerFullResourceNames - The full resource names object for database layer resources. The number of entries in +// this list should be equal to the number VMs to be created for database layer. +type DatabaseServerFullResourceNames struct { + // The full name for availability set. In case name is not provided, it will be defaulted to {SID}-DB-AvSet. + AvailabilitySetName *string `json:"availabilitySetName,omitempty"` - // Database version - Version *string `json:"version,omitempty"` + // The resource names object for load balancer and related resources. + LoadBalancer *LoadBalancerResourceNames `json:"loadBalancer,omitempty"` - // READ-ONLY; Azure Database Server resource Id - ServerResourceID *string `json:"serverResourceId,omitempty" azure:"ro"` + // The list of virtual machine naming details. + VirtualMachines []*VirtualMachineResourceNames `json:"virtualMachines,omitempty"` } -// DatabaseVMDetails - The Database VM Details. +// DatabaseVMDetails - Database VM details. type DatabaseVMDetails struct { // READ-ONLY; Defines the SAP Instance status. Status *SAPVirtualInstanceStatus `json:"status,omitempty" azure:"ro"` + // READ-ONLY; Storage details of all the Storage Accounts attached to the Database Virtual Machine. For e.g. NFS on AFS Shared + // Storage. + StorageDetails []*StorageInformation `json:"storageDetails,omitempty" azure:"ro"` + // READ-ONLY VirtualMachineID *string `json:"virtualMachineId,omitempty" azure:"ro"` } @@ -256,6 +276,12 @@ type DiscoveryConfiguration struct { // The virtual machine ID of the Central Server. CentralServerVMID *string `json:"centralServerVmId,omitempty"` + // The custom storage account name for the storage account created by the service in the managed resource group created as + // part of VIS deployment. + // Refer to the storage account naming rules here [https://learn.microsoft.com/azure/azure-resource-manager/management/resource-name-rules#microsoftstorage]. + // If not provided, the service will create the storage account with a random name. + ManagedRgStorageAccountName *string `json:"managedRgStorageAccountName,omitempty"` + // READ-ONLY; The geo-location where the SAP system exists. AppLocation *string `json:"appLocation,omitempty" azure:"ro"` } @@ -267,51 +293,91 @@ func (d *DiscoveryConfiguration) GetSAPConfiguration() *SAPConfiguration { } } -// DiskInfo - Disk resource creation details -type DiskInfo struct { - // REQUIRED; Storage type - StorageType *DiskStorageType `json:"storageType,omitempty"` +// DiskConfiguration - The Disk Configuration Details. +type DiskConfiguration struct { + // The disk configuration for the db volume. For HANA, Required volumes are: ['hana/data', 'hana/log', hana/shared', 'usr/sap', + // 'os'], Optional volume : ['backup']. + DiskVolumeConfigurations map[string]*DiskVolumeConfiguration `json:"diskVolumeConfigurations,omitempty"` +} + +// DiskDetails - The supported disk size details for a disk type. +type DiskDetails struct { + // The disk tier, e.g. P10, E10. + DiskTier *string `json:"diskTier,omitempty"` + + // The disk Iops. + IopsReadWrite *int64 `json:"iopsReadWrite,omitempty"` + + // The maximum supported disk count. + MaximumSupportedDiskCount *int64 `json:"maximumSupportedDiskCount,omitempty"` + + // The disk provisioned throughput in MBps. + MbpsReadWrite *int64 `json:"mbpsReadWrite,omitempty"` + + // The minimum supported disk count. + MinimumSupportedDiskCount *int64 `json:"minimumSupportedDiskCount,omitempty"` + + // The disk sku. + SKU *DiskSKU `json:"sku,omitempty"` + + // The disk size in GB. + SizeGB *int64 `json:"sizeGB,omitempty"` +} + +// DiskSKU - The disk sku. +type DiskSKU struct { + // Defines the disk sku name. + Name *DiskSKUName `json:"name,omitempty"` +} + +// DiskVolumeConfiguration - The disk configuration required for the selected volume. +type DiskVolumeConfiguration struct { + // The total number of disks required for the concerned volume. + Count *int64 `json:"count,omitempty"` + + // The disk SKU details. + SKU *DiskSKU `json:"sku,omitempty"` - // Disk size in GB - SizeInGB *int64 `json:"sizeInGB,omitempty"` + // The disk size in GB. + SizeGB *int64 `json:"sizeGB,omitempty"` } -// EnqueueReplicationServerProperties - Defines the SAP ERS Server properties. +// EnqueueReplicationServerProperties - Defines the SAP Enqueue Replication Server (ERS) properties. type EnqueueReplicationServerProperties struct { // READ-ONLY; Defines the type of Enqueue Replication Server. ErsVersion *EnqueueReplicationServerType `json:"ersVersion,omitempty" azure:"ro"` - // READ-ONLY; Defines the SAP Instance health. + // READ-ONLY; Defines the health of SAP Instances. Health *SAPHealthState `json:"health,omitempty" azure:"ro"` - // READ-ONLY; The ERS server SAP host name. + // READ-ONLY; ERS SAP Hostname. Hostname *string `json:"hostname,omitempty" azure:"ro"` - // READ-ONLY; The ERS server SAP IP Address. + // READ-ONLY; ERS SAP IP Address. IPAddress *string `json:"ipAddress,omitempty" azure:"ro"` - // READ-ONLY; The ERS server instance id. + // READ-ONLY; ERS Instance Number. InstanceNo *string `json:"instanceNo,omitempty" azure:"ro"` - // READ-ONLY; The ERS server SAP kernel patch. + // READ-ONLY; ERS SAP Kernel Patch level. KernelPatch *string `json:"kernelPatch,omitempty" azure:"ro"` - // READ-ONLY; The ERS server SAP kernel version. + // READ-ONLY; ERS SAP Kernel Version. KernelVersion *string `json:"kernelVersion,omitempty" azure:"ro"` } -// EnqueueServerProperties - Defines the SAP enqueue server properties. +// EnqueueServerProperties - Defines the SAP Enqueue Server properties. type EnqueueServerProperties struct { - // READ-ONLY; Defines the SAP Instance health. + // READ-ONLY; Defines the health of SAP Instances. Health *SAPHealthState `json:"health,omitempty" azure:"ro"` - // READ-ONLY; The enqueue server SAP host name. + // READ-ONLY; Enqueue Server SAP Hostname. Hostname *string `json:"hostname,omitempty" azure:"ro"` - // READ-ONLY; The enqueue server SAP IP Address. + // READ-ONLY; Enqueue Server SAP IP Address. IPAddress *string `json:"ipAddress,omitempty" azure:"ro"` - // READ-ONLY; The enqueue server Port. + // READ-ONLY; Enqueue Server Port. Port *int64 `json:"port,omitempty" azure:"ro"` } @@ -336,7 +402,7 @@ type Error struct { // ErrorAdditionalInfo - The resource management error additional info. type ErrorAdditionalInfo struct { // READ-ONLY; The additional info. - Info interface{} `json:"info,omitempty" azure:"ro"` + Info any `json:"info,omitempty" azure:"ro"` // READ-ONLY; The additional info type. Type *string `json:"type,omitempty" azure:"ro"` @@ -385,30 +451,48 @@ type ErrorResponse struct { Error *ErrorDetail `json:"error,omitempty"` } -// FileshareProfile - File share profile -type FileshareProfile struct { - // REQUIRED; Share type - ShareType *FileShareType `json:"shareType,omitempty"` +// ExternalInstallationSoftwareConfiguration - The SAP Software configuration Input when the software is installed externally +// outside the service. +type ExternalInstallationSoftwareConfiguration struct { + // REQUIRED; The SAP software installation Type. + SoftwareInstallationType *SAPSoftwareInstallationType `json:"softwareInstallationType,omitempty"` - // REQUIRED; File share backing storage type - StorageType *FileShareStorageType `json:"storageType,omitempty"` + // The resource ID of the virtual machine containing the central server instance. + CentralServerVMID *string `json:"centralServerVmId,omitempty"` +} - // File share size in GB - ShareSizeInGB *int64 `json:"shareSizeInGB,omitempty"` +// GetSoftwareConfiguration implements the SoftwareConfigurationClassification interface for type ExternalInstallationSoftwareConfiguration. +func (e *ExternalInstallationSoftwareConfiguration) GetSoftwareConfiguration() *SoftwareConfiguration { + return &SoftwareConfiguration{ + SoftwareInstallationType: e.SoftwareInstallationType, + } +} - // READ-ONLY; File share name - ShareName *string `json:"shareName,omitempty" azure:"ro"` +// FileShareConfigurationClassification provides polymorphic access to related types. +// Call the interface's GetFileShareConfiguration() method to access the common type. +// Use a type switch to determine the concrete type. The possible types are: +// - *CreateAndMountFileShareConfiguration, *FileShareConfiguration, *MountFileShareConfiguration, *SkipFileShareConfiguration +type FileShareConfigurationClassification interface { + // GetFileShareConfiguration returns the FileShareConfiguration content of the underlying type. + GetFileShareConfiguration() *FileShareConfiguration +} - // READ-ONLY; File share storage resource id - StorageResourceID *string `json:"storageResourceId,omitempty" azure:"ro"` +// FileShareConfiguration - File Share configuration details, populated with information on storage configuration mounted +// on the VIS. The createAndMount option is selected in case of missing input. +type FileShareConfiguration struct { + // REQUIRED; The type of file share config. + ConfigurationType *ConfigurationType `json:"configurationType,omitempty"` } +// GetFileShareConfiguration implements the FileShareConfigurationClassification interface for type FileShareConfiguration. +func (f *FileShareConfiguration) GetFileShareConfiguration() *FileShareConfiguration { return f } + // GatewayServerProperties - Defines the SAP Gateway Server properties. type GatewayServerProperties struct { - // READ-ONLY; Defines the SAP Instance health. + // READ-ONLY; Defines the health of SAP Instances. Health *SAPHealthState `json:"health,omitempty" azure:"ro"` - // READ-ONLY; The gateway Port. + // READ-ONLY; Gateway Port. Port *int64 `json:"port,omitempty" azure:"ro"` } @@ -426,9 +510,6 @@ type HanaDbProviderInstanceProperties struct { // Gets or sets the key vault URI to secret with the database password. DbPasswordURI *string `json:"dbPasswordUri,omitempty"` - // Gets or sets the blob URI to SSL certificate for the DB. - DbSSLCertificateURI *string `json:"dbSslCertificateUri,omitempty"` - // Gets or sets the database user name. DbUsername *string `json:"dbUsername,omitempty"` @@ -441,8 +522,17 @@ type HanaDbProviderInstanceProperties struct { // Gets or sets the database sql port. SQLPort *string `json:"sqlPort,omitempty"` + // Gets or sets the blob URI to SSL certificate for the DB. + SSLCertificateURI *string `json:"sslCertificateUri,omitempty"` + // Gets or sets the hostname(s) in the SSL certificate. SSLHostNameInCertificate *string `json:"sslHostNameInCertificate,omitempty"` + + // Gets or sets certificate preference if secure communication is enabled. + SSLPreference *SSLPreference `json:"sslPreference,omitempty"` + + // Gets or sets the SAP System Identifier. + SapSid *string `json:"sapSid,omitempty"` } // GetProviderSpecificProperties implements the ProviderSpecificPropertiesClassification interface for type HanaDbProviderInstanceProperties. @@ -512,7 +602,7 @@ type InfrastructureConfiguration struct { // REQUIRED; The application resource group where SAP system resources will be deployed. AppResourceGroup *string `json:"appResourceGroup,omitempty"` - // REQUIRED; The deployment Type. + // REQUIRED; The type of SAP deployment, single server or Three tier. DeploymentType *SAPDeploymentType `json:"deploymentType,omitempty"` } @@ -544,33 +634,56 @@ func (l *LinuxConfiguration) GetOSConfiguration() *OSConfiguration { } } +// LoadBalancerDetails - The Load Balancer details such as Load Balancer ID. +type LoadBalancerDetails struct { + // READ-ONLY + ID *string `json:"id,omitempty" azure:"ro"` +} + +// LoadBalancerResourceNames - The resource names object for load balancer and related resources. +type LoadBalancerResourceNames struct { + // The list of backend pool names. Currently, ACSS deploys only one backend pool and hence, size of this list should be 1 + BackendPoolNames []*string `json:"backendPoolNames,omitempty"` + + // The list of frontend IP configuration names. If provided as input, size of this list should be 2 for cs layer and should + // be 1 for database layer. + FrontendIPConfigurationNames []*string `json:"frontendIpConfigurationNames,omitempty"` + + // The list of health probe names. If provided as input, size of this list should be 2 for cs layer and should be 1 for database + // layer. + HealthProbeNames []*string `json:"healthProbeNames,omitempty"` + + // The full resource name for load balancer. If this value is not provided, load balancer will be name as {ASCS/DB}-loadBalancer. + LoadBalancerName *string `json:"loadBalancerName,omitempty"` +} + // ManagedRGConfiguration - Managed resource group configuration type ManagedRGConfiguration struct { // Managed resource group name Name *string `json:"name,omitempty"` } -// MessageServerProperties - Defines the SAP message server properties. +// MessageServerProperties - Defines the SAP Message Server properties. type MessageServerProperties struct { - // READ-ONLY; The message server http port. + // READ-ONLY; Message Server HTTP Port. HTTPPort *int64 `json:"httpPort,omitempty" azure:"ro"` - // READ-ONLY; The message server https port. + // READ-ONLY; Message Server HTTPS Port. HTTPSPort *int64 `json:"httpsPort,omitempty" azure:"ro"` - // READ-ONLY; Defines the SAP Instance health. + // READ-ONLY; Defines the health of SAP Instances. Health *SAPHealthState `json:"health,omitempty" azure:"ro"` - // READ-ONLY; The message server SAP host name. + // READ-ONLY; Message Server SAP Hostname. Hostname *string `json:"hostname,omitempty" azure:"ro"` - // READ-ONLY; The message server IP Address. + // READ-ONLY; Message server IP Address. IPAddress *string `json:"ipAddress,omitempty" azure:"ro"` - // READ-ONLY; The message server internal MS port. + // READ-ONLY; Message Server internal MS port. InternalMsPort *int64 `json:"internalMsPort,omitempty" azure:"ro"` - // READ-ONLY; The message server port. + // READ-ONLY; Message Server port. MSPort *int64 `json:"msPort,omitempty" azure:"ro"` } @@ -628,6 +741,10 @@ type MonitorProperties struct { // Sets the routing preference of the SAP monitor. By default only RFC1918 traffic is routed to the customer VNET. RoutingPreference *RoutingPreference `json:"routingPreference,omitempty"` + // Sets the preference for zone redundancy on resources created for the SAP monitor. By default resources will be created + // which do not support zone redundancy. + ZoneRedundancyPreference *string `json:"zoneRedundancyPreference,omitempty"` + // READ-ONLY; Defines the SAP monitor errors. Errors *MonitorPropertiesErrors `json:"errors,omitempty" azure:"ro"` @@ -636,6 +753,9 @@ type MonitorProperties struct { // READ-ONLY; State of provisioning of the SAP monitor. ProvisioningState *WorkloadMonitorProvisioningState `json:"provisioningState,omitempty" azure:"ro"` + + // READ-ONLY; The ARM ID of the Storage account used for SAP monitoring. + StorageAccountArmID *string `json:"storageAccountArmId,omitempty" azure:"ro"` } // MonitorPropertiesErrors - Defines the SAP monitor errors. @@ -673,12 +793,13 @@ type MonitorsClientGetOptions struct { // placeholder for future optional parameters } -// MonitorsClientListByResourceGroupOptions contains the optional parameters for the MonitorsClient.ListByResourceGroup method. +// MonitorsClientListByResourceGroupOptions contains the optional parameters for the MonitorsClient.NewListByResourceGroupPager +// method. type MonitorsClientListByResourceGroupOptions struct { // placeholder for future optional parameters } -// MonitorsClientListOptions contains the optional parameters for the MonitorsClient.List method. +// MonitorsClientListOptions contains the optional parameters for the MonitorsClient.NewListPager method. type MonitorsClientListOptions struct { // placeholder for future optional parameters } @@ -688,6 +809,25 @@ type MonitorsClientUpdateOptions struct { // placeholder for future optional parameters } +// MountFileShareConfiguration - Gets or sets the file share configuration for externally mounted cases. +type MountFileShareConfiguration struct { + // REQUIRED; The type of file share config. + ConfigurationType *ConfigurationType `json:"configurationType,omitempty"` + + // REQUIRED; The fileshare resource ID + ID *string `json:"id,omitempty"` + + // REQUIRED; The private endpoint resource ID + PrivateEndpointID *string `json:"privateEndpointId,omitempty"` +} + +// GetFileShareConfiguration implements the FileShareConfigurationClassification interface for type MountFileShareConfiguration. +func (m *MountFileShareConfiguration) GetFileShareConfiguration() *FileShareConfiguration { + return &FileShareConfiguration{ + ConfigurationType: m.ConfigurationType, + } +} + // MsSQLServerProviderInstanceProperties - Gets or sets the SQL server provider properties. type MsSQLServerProviderInstanceProperties struct { // REQUIRED; The provider type. For example, the value can be SapHana. @@ -708,6 +848,12 @@ type MsSQLServerProviderInstanceProperties struct { // Gets or sets the SQL server host name. Hostname *string `json:"hostname,omitempty"` + // Gets or sets the blob URI to SSL certificate for the SQL Database. + SSLCertificateURI *string `json:"sslCertificateUri,omitempty"` + + // Gets or sets certificate preference if secure communication is enabled. + SSLPreference *SSLPreference `json:"sslPreference,omitempty"` + // Gets or sets the SAP System Identifier SapSid *string `json:"sapSid,omitempty"` } @@ -719,64 +865,20 @@ func (m *MsSQLServerProviderInstanceProperties) GetProviderSpecificProperties() } } -// NetworkConfiguration - Defines the network configuration for SAP infrastructure +// NetworkConfiguration - Defines the network configuration type for SAP system infrastructure that is being deployed type NetworkConfiguration struct { - // Specifies whether a secondary IP address should be added to the network interface on all VMs + // Specifies whether a secondary IP address should be added to the network interface on all VMs of the SAP system being deployed IsSecondaryIPEnabled *bool `json:"isSecondaryIpEnabled,omitempty"` } -// NetworkProfile - Network profile -type NetworkProfile struct { - // REQUIRED; Load balancer type - LoadBalancerType *LoadBalancerType `json:"loadBalancerType,omitempty"` - - // Whether to enable Azure front door - AzureFrontDoorEnabled *AzureFrontDoorEnabled `json:"azureFrontDoorEnabled,omitempty"` - - // Capacity, applicable only for Application Gateway - Capacity *int32 `json:"capacity,omitempty"` - - // Load balancer SKU - LoadBalancerSKU *string `json:"loadBalancerSku,omitempty"` - - // Load balancer tier - LoadBalancerTier *string `json:"loadBalancerTier,omitempty"` - - // READ-ONLY; Azure front door resource id - AzureFrontDoorResourceID *string `json:"azureFrontDoorResourceId,omitempty" azure:"ro"` - - // READ-ONLY; Loadbalancer front-end IP address resource Id - FrontEndPublicIPResourceID *string `json:"frontEndPublicIpResourceId,omitempty" azure:"ro"` - - // READ-ONLY; Azure Loadbalancer or ApplicationGateway resource Id - LoadBalancerResourceID *string `json:"loadBalancerResourceId,omitempty" azure:"ro"` - - // READ-ONLY; List of outbound public IP resource IDs - OutboundPublicIPResourceIDs []*string `json:"outboundPublicIpResourceIds,omitempty" azure:"ro"` - - // READ-ONLY; Virtual network resource Id - VNetResourceID *string `json:"vNetResourceId,omitempty" azure:"ro"` -} - -// NodeProfile - VM or VMSS node profile -type NodeProfile struct { - // REQUIRED; VM SKU for node(s) - NodeSKU *string `json:"nodeSku,omitempty"` - - // REQUIRED; OS disk details - OSDisk *DiskInfo `json:"osDisk,omitempty"` - - // REQUIRED; OS image used for creating the nodes - OSImage *OsImageProfile `json:"osImage,omitempty"` - - // Data disks details. This property is not in use right now - DataDisks []*DiskInfo `json:"dataDisks,omitempty"` - - // VM or VMSS name - Name *string `json:"name,omitempty"` - - // READ-ONLY; VM/VMSS resource ARM Ids - NodeResourceIDs []*string `json:"nodeResourceIds,omitempty" azure:"ro"` +// NetworkInterfaceResourceNames - The resource names object for network interface and related resources. +type NetworkInterfaceResourceNames struct { + // The full name for network interface. If name is not provided, service uses a default name based on the deployment type. + // For SingleServer, default name is {SID}-Nic. In case of HA-AvZone systems, + // default name will be {SID}-{App/ASCS/DB}-Zone{A/B}-Nic with an incrementor at the end in case of more than 1 instance per + // layer. For distributed and HA-AvSet systems, default name will be + // {SID}-{App/ASCS/DB}-Nic with an incrementor at the end in case of more than 1 instance per layer. + NetworkInterfaceName *string `json:"networkInterfaceName,omitempty"` } // OSConfigurationClassification provides polymorphic access to related types. @@ -908,7 +1010,7 @@ type OperationStatusResult struct { StartTime *time.Time `json:"startTime,omitempty"` } -// OperationsClientListOptions contains the optional parameters for the OperationsClient.List method. +// OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method. type OperationsClientListOptions struct { // placeholder for future optional parameters } @@ -949,7 +1051,7 @@ type OperationsDefinition struct { Origin *OperationProperties `json:"origin,omitempty"` // Defines the workload operation properties. - Properties interface{} `json:"properties,omitempty"` + Properties any `json:"properties,omitempty"` } // OperationsDefinitionArrayResponseWithContinuation - Defines the workload operation definition response. @@ -991,21 +1093,6 @@ type OperationsDisplayDefinition struct { Resource *string `json:"resource,omitempty"` } -// OsImageProfile - OS image profile -type OsImageProfile struct { - // OS image offer - Offer *OSImageOffer `json:"offer,omitempty"` - - // OS image publisher - Publisher *OSImagePublisher `json:"publisher,omitempty"` - - // OS image sku - SKU *OSImageSKU `json:"sku,omitempty"` - - // OS image version - Version *OSImageVersion `json:"version,omitempty"` -} - // OsSapConfiguration - Defines the OS and SAP Configurations for Deployment type OsSapConfiguration struct { // The url and storage account ID where deployer VM packages are uploaded @@ -1015,161 +1102,6 @@ type OsSapConfiguration struct { SapFqdn *string `json:"sapFqdn,omitempty"` } -// PatchResourceRequestBody - Resource patch request body -type PatchResourceRequestBody struct { - Identity *PatchResourceRequestBodyIdentity `json:"identity,omitempty"` - - // Resource tags - Tags map[string]*string `json:"tags,omitempty"` -} - -type PatchResourceRequestBodyIdentity struct { - // REQUIRED; Type of manage identity - Type *ManagedServiceIdentityType `json:"type,omitempty"` - - // User assigned identities dictionary - UserAssignedIdentities map[string]*UserAssignedIdentity `json:"userAssignedIdentities,omitempty"` -} - -// PhpProfile - PHP profile -type PhpProfile struct { - // REQUIRED; PHP version - Version *PHPVersion `json:"version,omitempty"` -} - -// PhpWorkloadResource - Php workload resource -type PhpWorkloadResource struct { - // REQUIRED; Indicates which kind of php workload this resource represent e.g WordPress - Kind *WorkloadKind `json:"kind,omitempty"` - - // REQUIRED; The geo-location where the resource lives - Location *string `json:"location,omitempty"` - - // Identity for the resource. Currently not supported - Identity *PhpWorkloadResourceIdentity `json:"identity,omitempty"` - - // Resource properties - Properties *PhpWorkloadResourceProperties `json:"properties,omitempty"` - - // Php workloads SKU - SKU *SKU `json:"sku,omitempty"` - - // Resource tags. - Tags map[string]*string `json:"tags,omitempty"` - - // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - ID *string `json:"id,omitempty" azure:"ro"` - - // READ-ONLY; The name of the resource - Name *string `json:"name,omitempty" azure:"ro"` - - // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. - SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` - - // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - Type *string `json:"type,omitempty" azure:"ro"` -} - -// PhpWorkloadResourceIdentity - Identity for the resource. Currently not supported -type PhpWorkloadResourceIdentity struct { - // REQUIRED; Type of manage identity - Type *ManagedServiceIdentityType `json:"type,omitempty"` - - // User assigned identities dictionary - UserAssignedIdentities map[string]*UserAssignedIdentity `json:"userAssignedIdentities,omitempty"` -} - -// PhpWorkloadResourceList - Php workload resource list -type PhpWorkloadResourceList struct { - // Link to next page of resources - NextLink *string `json:"nextLink,omitempty"` - - // List of resources in current page - Value []*PhpWorkloadResource `json:"value,omitempty"` -} - -// PhpWorkloadResourceProperties - PHP workload resource properties -type PhpWorkloadResourceProperties struct { - // REQUIRED; Admin user profile used for VM and VMSS - AdminUserProfile *UserProfile `json:"adminUserProfile,omitempty"` - - // REQUIRED; The infra resources for PHP workload will be created in this location - AppLocation *string `json:"appLocation,omitempty"` - - // REQUIRED; Controller VM profile - ControllerProfile *NodeProfile `json:"controllerProfile,omitempty"` - - // REQUIRED; Database profile - DatabaseProfile *DatabaseProfile `json:"databaseProfile,omitempty"` - - // REQUIRED; VMSS web nodes profile - WebNodesProfile *VmssNodesProfile `json:"webNodesProfile,omitempty"` - - // Backup profile - BackupProfile *BackupProfile `json:"backupProfile,omitempty"` - - // Cache profile - CacheProfile *CacheProfile `json:"cacheProfile,omitempty"` - - // File share profile - FileshareProfile *FileshareProfile `json:"fileshareProfile,omitempty"` - - // Managed resource group configuration of the workload - ManagedResourceGroupConfiguration *ManagedRGConfiguration `json:"managedResourceGroupConfiguration,omitempty"` - - // Network profile - NetworkProfile *NetworkProfile `json:"networkProfile,omitempty"` - - // PHP profile - PhpProfile *PhpProfile `json:"phpProfile,omitempty"` - - // Search profile - SearchProfile *SearchProfile `json:"searchProfile,omitempty"` - - // Site profile - SiteProfile *SiteProfile `json:"siteProfile,omitempty"` - - // READ-ONLY; Php workload resource provisioning state - ProvisioningState *PhpWorkloadProvisioningState `json:"provisioningState,omitempty" azure:"ro"` -} - -// PhpWorkloadsClientBeginCreateOrUpdateOptions contains the optional parameters for the PhpWorkloadsClient.BeginCreateOrUpdate -// method. -type PhpWorkloadsClientBeginCreateOrUpdateOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// PhpWorkloadsClientBeginDeleteOptions contains the optional parameters for the PhpWorkloadsClient.BeginDelete method. -type PhpWorkloadsClientBeginDeleteOptions struct { - // Whether to delete infra along with workload resource. - DeleteInfra *string - // Resumes the LRO from the provided token. - ResumeToken string -} - -// PhpWorkloadsClientGetOptions contains the optional parameters for the PhpWorkloadsClient.Get method. -type PhpWorkloadsClientGetOptions struct { - // placeholder for future optional parameters -} - -// PhpWorkloadsClientListByResourceGroupOptions contains the optional parameters for the PhpWorkloadsClient.ListByResourceGroup -// method. -type PhpWorkloadsClientListByResourceGroupOptions struct { - // placeholder for future optional parameters -} - -// PhpWorkloadsClientListBySubscriptionOptions contains the optional parameters for the PhpWorkloadsClient.ListBySubscription -// method. -type PhpWorkloadsClientListBySubscriptionOptions struct { - // placeholder for future optional parameters -} - -// PhpWorkloadsClientUpdateOptions contains the optional parameters for the PhpWorkloadsClient.Update method. -type PhpWorkloadsClientUpdateOptions struct { - // placeholder for future optional parameters -} - // PrometheusHaClusterProviderInstanceProperties - Gets or sets the PrometheusHaCluster provider properties. type PrometheusHaClusterProviderInstanceProperties struct { // REQUIRED; The provider type. For example, the value can be SapHana. @@ -1184,6 +1116,12 @@ type PrometheusHaClusterProviderInstanceProperties struct { // URL of the Node Exporter endpoint. PrometheusURL *string `json:"prometheusUrl,omitempty"` + // Gets or sets the blob URI to SSL certificate for the HA cluster exporter. + SSLCertificateURI *string `json:"sslCertificateUri,omitempty"` + + // Gets or sets certificate preference if secure communication is enabled. + SSLPreference *SSLPreference `json:"sslPreference,omitempty"` + // Gets or sets the cluster sid. Sid *string `json:"sid,omitempty"` } @@ -1202,6 +1140,15 @@ type PrometheusOSProviderInstanceProperties struct { // URL of the Node Exporter endpoint PrometheusURL *string `json:"prometheusUrl,omitempty"` + + // Gets or sets the blob URI to SSL certificate for the prometheus node exporter. + SSLCertificateURI *string `json:"sslCertificateUri,omitempty"` + + // Gets or sets certificate preference if secure communication is enabled. + SSLPreference *SSLPreference `json:"sslPreference,omitempty"` + + // Gets or sets the SAP System Identifier + SapSid *string `json:"sapSid,omitempty"` } // GetProviderSpecificProperties implements the ProviderSpecificPropertiesClassification interface for type PrometheusOSProviderInstanceProperties. @@ -1290,7 +1237,7 @@ type ProviderInstancesClientGetOptions struct { // placeholder for future optional parameters } -// ProviderInstancesClientListOptions contains the optional parameters for the ProviderInstancesClient.List method. +// ProviderInstancesClientListOptions contains the optional parameters for the ProviderInstancesClient.NewListPager method. type ProviderInstancesClientListOptions struct { // placeholder for future optional parameters } @@ -1347,21 +1294,12 @@ type Resource struct { Type *string `json:"type,omitempty" azure:"ro"` } -// RestrictionInfo - The SKU restriction information. -type RestrictionInfo struct { - // The restriction locations. - Locations []*string `json:"locations,omitempty"` - - // The restriction zones. - Zones []*string `json:"zones,omitempty"` -} - -// SAPApplicationServerInstance - Define the SAP Application Server Instance. +// SAPApplicationServerInstance - Define the SAP Application Server Instance resource. type SAPApplicationServerInstance struct { // REQUIRED; The geo-location where the resource lives Location *string `json:"location,omitempty"` - // Defines the SAP Application Server properties. + // Defines the SAP Application Server instance properties. Properties *SAPApplicationServerProperties `json:"properties,omitempty"` // Resource tags. @@ -1380,12 +1318,12 @@ type SAPApplicationServerInstance struct { Type *string `json:"type,omitempty" azure:"ro"` } -// SAPApplicationServerInstanceList - Defines the collection of SAP Application Server Instances. +// SAPApplicationServerInstanceList - Defines the collection of SAP Application Server Instance resources. type SAPApplicationServerInstanceList struct { // Gets the value of next link. NextLink *string `json:"nextLink,omitempty"` - // Gets the list of SAP Application Server instances. + // Gets the list of SAP Application Server instance resources. Value []*SAPApplicationServerInstance `json:"value,omitempty"` } @@ -1403,6 +1341,22 @@ type SAPApplicationServerInstancesClientBeginDeleteOptions struct { ResumeToken string } +// SAPApplicationServerInstancesClientBeginStartInstanceOptions contains the optional parameters for the SAPApplicationServerInstancesClient.BeginStartInstance +// method. +type SAPApplicationServerInstancesClientBeginStartInstanceOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// SAPApplicationServerInstancesClientBeginStopInstanceOptions contains the optional parameters for the SAPApplicationServerInstancesClient.BeginStopInstance +// method. +type SAPApplicationServerInstancesClientBeginStopInstanceOptions struct { + // SAP Application server instance stop request body. + Body *StopRequest + // Resumes the LRO from the provided token. + ResumeToken string +} + // SAPApplicationServerInstancesClientBeginUpdateOptions contains the optional parameters for the SAPApplicationServerInstancesClient.BeginUpdate // method. type SAPApplicationServerInstancesClientBeginUpdateOptions struct { @@ -1416,55 +1370,58 @@ type SAPApplicationServerInstancesClientGetOptions struct { // placeholder for future optional parameters } -// SAPApplicationServerInstancesClientListOptions contains the optional parameters for the SAPApplicationServerInstancesClient.List +// SAPApplicationServerInstancesClientListOptions contains the optional parameters for the SAPApplicationServerInstancesClient.NewListPager // method. type SAPApplicationServerInstancesClientListOptions struct { // placeholder for future optional parameters } -// SAPApplicationServerProperties - Defines the SAP Application Server properties. +// SAPApplicationServerProperties - Defines the SAP Application Server instance properties. type SAPApplicationServerProperties struct { // READ-ONLY; Defines the Application Instance errors. Errors *SAPVirtualInstanceError `json:"errors,omitempty" azure:"ro"` - // READ-ONLY; The application server gateway Port. + // READ-ONLY; Application server instance gateway Port. GatewayPort *int64 `json:"gatewayPort,omitempty" azure:"ro"` - // READ-ONLY; Defines the SAP Instance health. + // READ-ONLY; Defines the health of SAP Instances. Health *SAPHealthState `json:"health,omitempty" azure:"ro"` - // READ-ONLY; The application server SAP host name. + // READ-ONLY; Application server instance SAP hostname. Hostname *string `json:"hostname,omitempty" azure:"ro"` - // READ-ONLY; The application server SAP IP Address. + // READ-ONLY; Application server instance SAP IP Address. IPAddress *string `json:"ipAddress,omitempty" azure:"ro"` - // READ-ONLY; The application server ICM HTTP Port. + // READ-ONLY; Application server instance ICM HTTP Port. IcmHTTPPort *int64 `json:"icmHttpPort,omitempty" azure:"ro"` - // READ-ONLY; The application server ICM HTTPS Port. + // READ-ONLY; Application server instance ICM HTTPS Port. IcmHTTPSPort *int64 `json:"icmHttpsPort,omitempty" azure:"ro"` - // READ-ONLY; The application server instance id. + // READ-ONLY; Application server Instance Number. InstanceNo *string `json:"instanceNo,omitempty" azure:"ro"` - // READ-ONLY; The application server SAP kernel patch. + // READ-ONLY; Application server instance SAP Kernel Patch level. KernelPatch *string `json:"kernelPatch,omitempty" azure:"ro"` - // READ-ONLY; The application server SAP kernel version. + // READ-ONLY; Application server instance SAP Kernel Version. KernelVersion *string `json:"kernelVersion,omitempty" azure:"ro"` + // READ-ONLY; The Load Balancer details such as LoadBalancer ID attached to Application Server Virtual Machines + LoadBalancerDetails *LoadBalancerDetails `json:"loadBalancerDetails,omitempty" azure:"ro"` + // READ-ONLY; Defines the provisioning states. ProvisioningState *SapVirtualInstanceProvisioningState `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; Defines the SAP Instance status. Status *SAPVirtualInstanceStatus `json:"status,omitempty" azure:"ro"` - // READ-ONLY; The application server subnet. + // READ-ONLY; Application server Subnet. Subnet *string `json:"subnet,omitempty" azure:"ro"` - // READ-ONLY; The virtual machine. - VirtualMachineID *string `json:"virtualMachineId,omitempty" azure:"ro"` + // READ-ONLY; The list of virtual machines. + VMDetails []*ApplicationServerVMDetails `json:"vmDetails,omitempty" azure:"ro"` } // SAPAvailabilityZoneDetailsRequest - The SAP request to get list of availability zones. @@ -1494,12 +1451,12 @@ type SAPAvailabilityZonePair struct { ZoneB *int64 `json:"zoneB,omitempty"` } -// SAPCentralInstanceList - Defines the collection of SAP Central Instances. +// SAPCentralInstanceList - Defines the collection of SAP Central Services Instance resources. type SAPCentralInstanceList struct { // Gets the value of next link. NextLink *string `json:"nextLink,omitempty"` - // Gets the list of SAP central instances. + // Gets the list of SAP central services instance resources. Value []*SAPCentralServerInstance `json:"value,omitempty"` } @@ -1517,6 +1474,22 @@ type SAPCentralInstancesClientBeginDeleteOptions struct { ResumeToken string } +// SAPCentralInstancesClientBeginStartInstanceOptions contains the optional parameters for the SAPCentralInstancesClient.BeginStartInstance +// method. +type SAPCentralInstancesClientBeginStartInstanceOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// SAPCentralInstancesClientBeginStopInstanceOptions contains the optional parameters for the SAPCentralInstancesClient.BeginStopInstance +// method. +type SAPCentralInstancesClientBeginStopInstanceOptions struct { + // SAP Central Services instance stop request body. + Body *StopRequest + // Resumes the LRO from the provided token. + ResumeToken string +} + // SAPCentralInstancesClientBeginUpdateOptions contains the optional parameters for the SAPCentralInstancesClient.BeginUpdate // method. type SAPCentralInstancesClientBeginUpdateOptions struct { @@ -1529,17 +1502,17 @@ type SAPCentralInstancesClientGetOptions struct { // placeholder for future optional parameters } -// SAPCentralInstancesClientListOptions contains the optional parameters for the SAPCentralInstancesClient.List method. +// SAPCentralInstancesClientListOptions contains the optional parameters for the SAPCentralInstancesClient.NewListPager method. type SAPCentralInstancesClientListOptions struct { // placeholder for future optional parameters } -// SAPCentralServerInstance - Define the SAP Central Server Instance. +// SAPCentralServerInstance - Define the SAP Central Services Instance resource. type SAPCentralServerInstance struct { // REQUIRED; The geo-location where the resource lives Location *string `json:"location,omitempty"` - // Defines the SAP Central Server properties. + // Defines the SAP Central Services Instance properties. Properties *SAPCentralServerProperties `json:"properties,omitempty"` // Resource tags. @@ -1558,45 +1531,48 @@ type SAPCentralServerInstance struct { Type *string `json:"type,omitempty" azure:"ro"` } -// SAPCentralServerProperties - Defines the SAP Central Server properties. +// SAPCentralServerProperties - Defines the SAP Central Services Instance properties. type SAPCentralServerProperties struct { - // Defines the SAP ERS Server properties. + // Defines the SAP Enqueue Replication Server (ERS) properties. EnqueueReplicationServerProperties *EnqueueReplicationServerProperties `json:"enqueueReplicationServerProperties,omitempty"` - // Defines the SAP enqueue server properties. + // Defines the SAP Enqueue Server properties. EnqueueServerProperties *EnqueueServerProperties `json:"enqueueServerProperties,omitempty"` // Defines the SAP Gateway Server properties. GatewayServerProperties *GatewayServerProperties `json:"gatewayServerProperties,omitempty"` - // Defines the SAP message server properties. + // Defines the SAP Message Server properties. MessageServerProperties *MessageServerProperties `json:"messageServerProperties,omitempty"` - // READ-ONLY; Defines the Central Instance errors. + // READ-ONLY; Defines the errors related to SAP Central Services Instance resource. Errors *SAPVirtualInstanceError `json:"errors,omitempty" azure:"ro"` - // READ-ONLY; Defines the SAP Instance health. + // READ-ONLY; Defines the health of SAP Instances. Health *SAPHealthState `json:"health,omitempty" azure:"ro"` - // READ-ONLY; The central server instance id. + // READ-ONLY; The central services instance number. InstanceNo *string `json:"instanceNo,omitempty" azure:"ro"` - // READ-ONLY; The central server kernel patch. + // READ-ONLY; The central services instance Kernel Patch level. KernelPatch *string `json:"kernelPatch,omitempty" azure:"ro"` - // READ-ONLY; The central server kernel version. + // READ-ONLY; The central services instance Kernel Version. KernelVersion *string `json:"kernelVersion,omitempty" azure:"ro"` + // READ-ONLY; The Load Balancer details such as LoadBalancer ID attached to ASCS Virtual Machines + LoadBalancerDetails *LoadBalancerDetails `json:"loadBalancerDetails,omitempty" azure:"ro"` + // READ-ONLY; Defines the provisioning states. ProvisioningState *SapVirtualInstanceProvisioningState `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; Defines the SAP Instance status. Status *SAPVirtualInstanceStatus `json:"status,omitempty" azure:"ro"` - // READ-ONLY; The central server subnet. + // READ-ONLY; The central services instance subnet. Subnet *string `json:"subnet,omitempty" azure:"ro"` - // READ-ONLY; The list of virtual machines. + // READ-ONLY; The list of virtual machines corresponding to the Central Services instance. VMDetails []*CentralServerVMDetails `json:"vmDetails,omitempty" azure:"ro"` } @@ -1618,12 +1594,12 @@ type SAPConfiguration struct { // GetSAPConfiguration implements the SAPConfigurationClassification interface for type SAPConfiguration. func (s *SAPConfiguration) GetSAPConfiguration() *SAPConfiguration { return s } -// SAPDatabaseInstance - Define the SAP Database Instance. +// SAPDatabaseInstance - Define the Database resource. type SAPDatabaseInstance struct { // REQUIRED; The geo-location where the resource lives Location *string `json:"location,omitempty"` - // Defines the SAP Database properties. + // Defines the Database properties. Properties *SAPDatabaseProperties `json:"properties,omitempty"` // Resource tags. @@ -1665,6 +1641,22 @@ type SAPDatabaseInstancesClientBeginDeleteOptions struct { ResumeToken string } +// SAPDatabaseInstancesClientBeginStartInstanceOptions contains the optional parameters for the SAPDatabaseInstancesClient.BeginStartInstance +// method. +type SAPDatabaseInstancesClientBeginStartInstanceOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// SAPDatabaseInstancesClientBeginStopInstanceOptions contains the optional parameters for the SAPDatabaseInstancesClient.BeginStopInstance +// method. +type SAPDatabaseInstancesClientBeginStopInstanceOptions struct { + // Stop request for the database instance of the SAP system. + Body *StopRequest + // Resumes the LRO from the provided token. + ResumeToken string +} + // SAPDatabaseInstancesClientBeginUpdateOptions contains the optional parameters for the SAPDatabaseInstancesClient.BeginUpdate // method. type SAPDatabaseInstancesClientBeginUpdateOptions struct { @@ -1677,60 +1669,50 @@ type SAPDatabaseInstancesClientGetOptions struct { // placeholder for future optional parameters } -// SAPDatabaseInstancesClientListOptions contains the optional parameters for the SAPDatabaseInstancesClient.List method. +// SAPDatabaseInstancesClientListOptions contains the optional parameters for the SAPDatabaseInstancesClient.NewListPager +// method. type SAPDatabaseInstancesClientListOptions struct { // placeholder for future optional parameters } -// SAPDatabaseProperties - Defines the SAP Database properties. +// SAPDatabaseProperties - Defines the Database properties. type SAPDatabaseProperties struct { - // READ-ONLY; The database SID. + // READ-ONLY; Database SID name. DatabaseSid *string `json:"databaseSid,omitempty" azure:"ro"` - // READ-ONLY; The SAP database type. + // READ-ONLY; Database type, that is if the DB is HANA, DB2, Oracle, SAP ASE, Max DB or MS SQL Server. DatabaseType *string `json:"databaseType,omitempty" azure:"ro"` - // READ-ONLY; Defines the Database Instance errors. + // READ-ONLY; Defines the errors related to Database resource. Errors *SAPVirtualInstanceError `json:"errors,omitempty" azure:"ro"` - // READ-ONLY; The database IP Address. + // READ-ONLY; Database IP Address. IPAddress *string `json:"ipAddress,omitempty" azure:"ro"` + // READ-ONLY; The Load Balancer details such as LoadBalancer ID attached to Database Virtual Machines + LoadBalancerDetails *LoadBalancerDetails `json:"loadBalancerDetails,omitempty" azure:"ro"` + // READ-ONLY; Defines the provisioning states. ProvisioningState *SapVirtualInstanceProvisioningState `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; Defines the SAP Instance status. Status *SAPVirtualInstanceStatus `json:"status,omitempty" azure:"ro"` - // READ-ONLY; The database subnet. + // READ-ONLY; Database subnet. Subnet *string `json:"subnet,omitempty" azure:"ro"` - // READ-ONLY; The list of virtual machines. + // READ-ONLY; The list of virtual machines corresponding to the Database resource. VMDetails []*DatabaseVMDetails `json:"vmDetails,omitempty" azure:"ro"` } -// SAPDiskConfiguration - The SAP Disk Configuration. +// SAPDiskConfiguration - The SAP Disk Configuration contains 'recommended disk' details and list of supported disks detail +// for a volume type. type SAPDiskConfiguration struct { - // The disk count. - DiskCount *int64 `json:"diskCount,omitempty"` - - // The disk Iops. - DiskIopsReadWrite *int64 `json:"diskIopsReadWrite,omitempty"` - - // The disk provisioned throughput in MBps. - DiskMBpsReadWrite *int64 `json:"diskMBpsReadWrite,omitempty"` - - // The disk size in GB. - DiskSizeGB *int64 `json:"diskSizeGB,omitempty"` - - // The disk storage type - DiskStorageType *string `json:"diskStorageType,omitempty"` + // The recommended disk details for a given VM Sku. + RecommendedConfiguration *DiskVolumeConfiguration `json:"recommendedConfiguration,omitempty"` - // The disk type. - DiskType *string `json:"diskType,omitempty"` - - // The volume name. - Volume *string `json:"volume,omitempty"` + // The list of supported disks for a given VM Sku. + SupportedConfigurations []*DiskDetails `json:"supportedConfigurations,omitempty"` } // SAPDiskConfigurationsRequest - The SAP request to get list of disk configurations. @@ -1756,8 +1738,9 @@ type SAPDiskConfigurationsRequest struct { // SAPDiskConfigurationsResult - The list of disk configuration for vmSku which are part of SAP deployment. type SAPDiskConfigurationsResult struct { - // Gets the list of Disk Configurations. - DiskConfigurations []*SAPDiskConfiguration `json:"diskConfigurations,omitempty"` + // The disk configuration for the db volume. For HANA, Required volumes are: ['hana/data', 'hana/log', hana/shared', 'usr/sap', + // 'os'], Optional volume : ['backup']. + VolumeConfigurations map[string]*SAPDiskConfiguration `json:"volumeConfigurations,omitempty"` } // SAPInstallWithoutOSConfigSoftwareConfiguration - The SAP Software configuration Input when the software is to be installed @@ -1827,7 +1810,7 @@ type SAPSizingRecommendationResultClassification interface { // SAPSizingRecommendationResult - The SAP sizing recommendation result. type SAPSizingRecommendationResult struct { - // REQUIRED; The deployment Type. + // REQUIRED; The type of SAP deployment, single server or Three tier. DeploymentType *SAPDeploymentType `json:"deploymentType,omitempty"` } @@ -1875,12 +1858,12 @@ type SAPSupportedSKUsRequest struct { HighAvailabilityType *SAPHighAvailabilityType `json:"highAvailabilityType,omitempty"` } -// SAPVirtualInstance - Define the Virtual Instance for SAP. +// SAPVirtualInstance - Define the Virtual Instance for SAP solutions resource. type SAPVirtualInstance struct { // REQUIRED; The geo-location where the resource lives Location *string `json:"location,omitempty"` - // REQUIRED; Defines the Virtual Instance for SAP properties. + // REQUIRED; Defines the Virtual Instance for SAP solutions resource properties. Properties *SAPVirtualInstanceProperties `json:"properties,omitempty"` // Managed service identity (user assigned identities) @@ -1908,18 +1891,19 @@ type SAPVirtualInstanceError struct { Properties *ErrorDefinition `json:"properties,omitempty"` } -// SAPVirtualInstanceList - Defines the collection of Virtual Instance for SAP. +// SAPVirtualInstanceList - Defines the collection of Virtual Instance for SAP solutions resources. type SAPVirtualInstanceList struct { // Gets the value of next link. NextLink *string `json:"nextLink,omitempty"` - // Gets the list of Virtual Instances for SAP. + // Gets the list of Virtual Instances for SAP solutions resources. Value []*SAPVirtualInstance `json:"value,omitempty"` } -// SAPVirtualInstanceProperties - Defines the Virtual Instance for SAP properties. +// SAPVirtualInstanceProperties - Defines the Virtual Instance for SAP solutions resource properties. type SAPVirtualInstanceProperties struct { - // REQUIRED; Defines if an existing SAP system is being registered or a new SAP system is being created + // REQUIRED; Defines if the SAP system is being created using Azure Center for SAP solutions (ACSS) or if an existing SAP + // system is being registered with ACSS Configuration SAPConfigurationClassification `json:"configuration,omitempty"` // REQUIRED; Defines the environment type - Production/Non Production. @@ -1931,10 +1915,10 @@ type SAPVirtualInstanceProperties struct { // Managed resource group configuration ManagedResourceGroupConfiguration *ManagedRGConfiguration `json:"managedResourceGroupConfiguration,omitempty"` - // READ-ONLY; Defines the Virtual Instance for SAP errors. + // READ-ONLY; Indicates any errors on the Virtual Instance for SAP solutions resource. Errors *SAPVirtualInstanceError `json:"errors,omitempty" azure:"ro"` - // READ-ONLY; Defines the SAP Instance health. + // READ-ONLY; Defines the health of SAP Instances. Health *SAPHealthState `json:"health,omitempty" azure:"ro"` // READ-ONLY; Defines the provisioning states. @@ -1971,7 +1955,7 @@ type SAPVirtualInstancesClientBeginStartOptions struct { // SAPVirtualInstancesClientBeginStopOptions contains the optional parameters for the SAPVirtualInstancesClient.BeginStop // method. type SAPVirtualInstancesClientBeginStopOptions struct { - // The Virtual Instances for SAP stop request body. + // The Virtual Instance for SAP solutions resource stop request body. Body *StopRequest // Resumes the LRO from the provided token. ResumeToken string @@ -1982,13 +1966,13 @@ type SAPVirtualInstancesClientGetOptions struct { // placeholder for future optional parameters } -// SAPVirtualInstancesClientListByResourceGroupOptions contains the optional parameters for the SAPVirtualInstancesClient.ListByResourceGroup +// SAPVirtualInstancesClientListByResourceGroupOptions contains the optional parameters for the SAPVirtualInstancesClient.NewListByResourceGroupPager // method. type SAPVirtualInstancesClientListByResourceGroupOptions struct { // placeholder for future optional parameters } -// SAPVirtualInstancesClientListBySubscriptionOptions contains the optional parameters for the SAPVirtualInstancesClient.ListBySubscription +// SAPVirtualInstancesClientListBySubscriptionOptions contains the optional parameters for the SAPVirtualInstancesClient.NewListBySubscriptionPager // method. type SAPVirtualInstancesClientListBySubscriptionOptions struct { // placeholder for future optional parameters @@ -1999,182 +1983,126 @@ type SAPVirtualInstancesClientUpdateOptions struct { // placeholder for future optional parameters } -// SKU - The resource model definition representing SKU -type SKU struct { - // REQUIRED; The name of the SKU. Ex - P3. It is typically a letter+number code - Name *string `json:"name,omitempty"` - - // If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the - // resource this may be omitted. - Capacity *int32 `json:"capacity,omitempty"` - - // If the service has different generations of hardware, for the same SKU, then that can be captured here. - Family *string `json:"family,omitempty"` - - // The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. - Size *string `json:"size,omitempty"` - - // This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required - // on a PUT. - Tier *SKUTier `json:"tier,omitempty"` -} - -// SKUCapability - The SKU capability definition. -type SKUCapability struct { - // The capability name. - Name *string `json:"name,omitempty"` - - // The capability value. - Value *string `json:"value,omitempty"` +// SSHConfiguration - SSH configuration for Linux based VMs running on Azure +type SSHConfiguration struct { + // The list of SSH public keys used to authenticate with linux based VMs. + PublicKeys []*SSHPublicKey `json:"publicKeys,omitempty"` } -// SKUCapacity - The SKU capacity. -type SKUCapacity struct { - // Default capacity value. - Default *int32 `json:"default,omitempty"` - - // Maximum capacity value. - Maximum *int32 `json:"maximum,omitempty"` - - // Minimum capacity value. - Minimum *int32 `json:"minimum,omitempty"` +// SSHKeyPair - The SSH Key-pair used to authenticate with the VM. The key needs to be at least 2048-bit and in ssh-rsa format. +// For creating ssh keys, see Create SSH keys on Linux and Mac for Linux VMs in Azure [https://docs.microsoft.com/azure/virtual-machines/linux/create-ssh-keys-detailed]. +type SSHKeyPair struct { + // SSH private key. + PrivateKey *string `json:"privateKey,omitempty"` - // Scale type of the SKU capacity. - ScaleType *SKUScaleType `json:"scaleType,omitempty"` + // SSH public key + PublicKey *string `json:"publicKey,omitempty"` } -// SKUCost - The SKU cost definition. -type SKUCost struct { - // The extended unit. - ExtendedUnit *string `json:"extendedUnit,omitempty"` - - // Billing meter id. - MeterID *string `json:"meterId,omitempty"` - - // The quantity. - Quantity *int32 `json:"quantity,omitempty"` +// SSHPublicKey - Contains information about SSH certificate public key and the path on the Linux VM where the public key +// is placed. +type SSHPublicKey struct { + // SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa + // format. + // For creating ssh keys, see Create SSH keys on Linux and Mac for Linux VMs in Azure [https://docs.microsoft.com/azure/virtual-machines/linux/create-ssh-keys-detailed]. + KeyData *string `json:"keyData,omitempty"` } -// SKUDefinition - The SKU definition. -type SKUDefinition struct { - // REQUIRED; The name of the SKU. - Name *string `json:"name,omitempty"` - - // The SKU capabilities. - Capabilities []*SKUCapability `json:"capabilities,omitempty"` - - // If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the - // resource this may be omitted. - Capacity interface{} `json:"capacity,omitempty"` - - // The SKU costs. - Costs []*SKUCost `json:"costs,omitempty"` - - // If the service has different generations of hardware, for the same SKU, then that can be captured here. - Family *string `json:"family,omitempty"` - - // If the service has different kinds of hardware, for the same SKU, then that can be captured here. - Kind *string `json:"kind,omitempty"` +// SapLandscapeMonitor - configuration associated with SAP Landscape Monitor Dashboard. +type SapLandscapeMonitor struct { + // Sap Landscape Monitor properties + Properties *SapLandscapeMonitorProperties `json:"properties,omitempty"` - // List of locations where this SKU is available. - LocationInfo []*SKULocationAndZones `json:"locationInfo,omitempty"` + // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string `json:"id,omitempty" azure:"ro"` - // List of locations where this SKU is available. - Locations []*string `json:"locations,omitempty"` + // READ-ONLY; The name of the resource + Name *string `json:"name,omitempty" azure:"ro"` - // Resource type the SKU applicable for. - ResourceType *string `json:"resourceType,omitempty"` + // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. + SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` - // The SKU restrictions. - Restrictions []*SKURestriction `json:"restrictions,omitempty"` + // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string `json:"type,omitempty" azure:"ro"` +} - // The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. - Size *string `json:"size,omitempty"` +// SapLandscapeMonitorClientCreateOptions contains the optional parameters for the SapLandscapeMonitorClient.Create method. +type SapLandscapeMonitorClientCreateOptions struct { + // placeholder for future optional parameters +} - // This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required - // on a PUT. - Tier *string `json:"tier,omitempty"` +// SapLandscapeMonitorClientDeleteOptions contains the optional parameters for the SapLandscapeMonitorClient.Delete method. +type SapLandscapeMonitorClientDeleteOptions struct { + // placeholder for future optional parameters } -// SKULocationAndZones - The SKU location and zone. -type SKULocationAndZones struct { - // The extended locations of SKU. - ExtendedLocations []*string `json:"extendedLocations,omitempty"` +// SapLandscapeMonitorClientGetOptions contains the optional parameters for the SapLandscapeMonitorClient.Get method. +type SapLandscapeMonitorClientGetOptions struct { + // placeholder for future optional parameters +} - // The location of the SKU. - Location *string `json:"location,omitempty"` +// SapLandscapeMonitorClientListOptions contains the optional parameters for the SapLandscapeMonitorClient.List method. +type SapLandscapeMonitorClientListOptions struct { + // placeholder for future optional parameters +} - // Type of the extended location. - Type *LocationType `json:"type,omitempty"` +// SapLandscapeMonitorClientUpdateOptions contains the optional parameters for the SapLandscapeMonitorClient.Update method. +type SapLandscapeMonitorClientUpdateOptions struct { + // placeholder for future optional parameters +} - // The availability zone details of the SKU location. - ZoneDetails []*SKUZoneDetail `json:"zoneDetails,omitempty"` +// SapLandscapeMonitorListResult - The response from the List SAP Landscape Monitor Dashboard operation. +type SapLandscapeMonitorListResult struct { + // The URL to get the next set of SAP Landscape Monitor Dashboard. + NextLink *string `json:"nextLink,omitempty"` - // The availability zones of SKU location. - Zones []*string `json:"zones,omitempty"` + // The list of Sap Landscape Monitor configuration. + Value []*SapLandscapeMonitor `json:"value,omitempty"` } -// SKURestriction - The SKU restriction definition. -type SKURestriction struct { - // The SKU restriction reason code. - ReasonCode *SKURestrictionReasonCode `json:"reasonCode,omitempty"` +// SapLandscapeMonitorMetricThresholds - Gets or sets the Threshold Values for Top Metrics Health. +type SapLandscapeMonitorMetricThresholds struct { + // Gets or sets the threshold value for Green. + Green *float32 `json:"green,omitempty"` - // The restriction information. - RestrictionInfo interface{} `json:"restrictionInfo,omitempty"` + // Gets or sets the name of the threshold. + Name *string `json:"name,omitempty"` - // The SKU restriction type. - Type *SKURestrictionType `json:"type,omitempty"` + // Gets or sets the threshold value for Red. + Red *float32 `json:"red,omitempty"` - // Restriction values. - Values []*string `json:"values,omitempty"` + // Gets or sets the threshold value for Yellow. + Yellow *float32 `json:"yellow,omitempty"` } -// SKUZoneDetail - The SKU zone details. -type SKUZoneDetail struct { - // The capabilities. - Capabilities []*SKUCapability `json:"capabilities,omitempty"` +// SapLandscapeMonitorProperties - Gets or sets the properties for Sap Landscape Monitor Dashboard. +type SapLandscapeMonitorProperties struct { + // Gets or sets the SID groupings by landscape and Environment. + Grouping *SapLandscapeMonitorPropertiesGrouping `json:"grouping,omitempty"` - // The physical zones. - Zones []*string `json:"zones,omitempty"` -} + // Gets or sets the list Top Metric Thresholds for SAP Landscape Monitor Dashboard + TopMetricsThresholds []*SapLandscapeMonitorMetricThresholds `json:"topMetricsThresholds,omitempty"` -// SKUsClientListOptions contains the optional parameters for the SKUsClient.List method. -type SKUsClientListOptions struct { - // placeholder for future optional parameters + // READ-ONLY; State of provisioning of the SAP monitor. + ProvisioningState *SapLandscapeMonitorProvisioningState `json:"provisioningState,omitempty" azure:"ro"` } -// SKUsListResult - A list of SKUs supported by an Azure Resource Provider. -type SKUsListResult struct { - // READ-ONLY; URL to get the next set of SKU list results (if there are any). - NextLink *string `json:"nextLink,omitempty" azure:"ro"` +// SapLandscapeMonitorPropertiesGrouping - Gets or sets the SID groupings by landscape and Environment. +type SapLandscapeMonitorPropertiesGrouping struct { + // Gets or sets the list of landscape to SID mappings. + Landscape []*SapLandscapeMonitorSidMapping `json:"landscape,omitempty"` - // READ-ONLY; List of SKUs supported by the resource provider - Value []*SKUDefinition `json:"value,omitempty" azure:"ro"` -} - -// SSHConfiguration - SSH configuration for Linux based VMs running on Azure -type SSHConfiguration struct { - // The list of SSH public keys used to authenticate with linux based VMs. - PublicKeys []*SSHPublicKey `json:"publicKeys,omitempty"` + // Gets or sets the list of Sap Applications to SID mappings. + SapApplication []*SapLandscapeMonitorSidMapping `json:"sapApplication,omitempty"` } -// SSHKeyPair - The SSH Key-pair used to authenticate with the VM. The key needs to be at least 2048-bit and in ssh-rsa format. -// For creating ssh keys, see Create SSH keys on Linux and Mac for Linux VMs in Azure [https://docs.microsoft.com/azure/virtual-machines/linux/create-ssh-keys-detailed]. -type SSHKeyPair struct { - // SSH private key. - PrivateKey *string `json:"privateKey,omitempty"` +// SapLandscapeMonitorSidMapping - Gets or sets the mapping for SID to Environment/Applications. +type SapLandscapeMonitorSidMapping struct { + // Gets or sets the name of the grouping. + Name *string `json:"name,omitempty"` - // SSH public key - PublicKey *string `json:"publicKey,omitempty"` -} - -// SSHPublicKey - Contains information about SSH certificate public key and the path on the Linux VM where the public key -// is placed. -type SSHPublicKey struct { - // SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa - // format. - // For creating ssh keys, see Create SSH keys on Linux and Mac for Linux VMs in Azure [https://docs.microsoft.com/azure/virtual-machines/linux/create-ssh-keys-detailed]. - KeyData *string `json:"keyData,omitempty"` + // Gets or sets the list of SID's. + TopSid []*string `json:"topSid,omitempty"` } // SapNetWeaverProviderInstanceProperties - Gets or sets the provider properties. @@ -2182,6 +2110,12 @@ type SapNetWeaverProviderInstanceProperties struct { // REQUIRED; The provider type. For example, the value can be SapHana. ProviderType *string `json:"providerType,omitempty"` + // Gets or sets the blob URI to SSL certificate for the SAP system. + SSLCertificateURI *string `json:"sslCertificateUri,omitempty"` + + // Gets or sets certificate preference if secure communication is enabled. + SSLPreference *SSLPreference `json:"sslPreference,omitempty"` + // Gets or sets the SAP Client ID. SapClientID *string `json:"sapClientId,omitempty"` @@ -2203,9 +2137,6 @@ type SapNetWeaverProviderInstanceProperties struct { // Gets or sets the SAP HTTP port number. SapPortNumber *string `json:"sapPortNumber,omitempty"` - // Gets or sets the blob URI to SSL certificate for the SAP system. - SapSSLCertificateURI *string `json:"sapSslCertificateUri,omitempty"` - // Gets or sets the SAP System Identifier SapSid *string `json:"sapSid,omitempty"` @@ -2220,30 +2151,6 @@ func (s *SapNetWeaverProviderInstanceProperties) GetProviderSpecificProperties() } } -// SearchProfile - Search profile -type SearchProfile struct { - // REQUIRED; VM SKU for node(s) - NodeSKU *string `json:"nodeSku,omitempty"` - - // REQUIRED; OS disk details - OSDisk *DiskInfo `json:"osDisk,omitempty"` - - // REQUIRED; OS image used for creating the nodes - OSImage *OsImageProfile `json:"osImage,omitempty"` - - // REQUIRED; Search type - SearchType *SearchType `json:"searchType,omitempty"` - - // Data disks details. This property is not in use right now - DataDisks []*DiskInfo `json:"dataDisks,omitempty"` - - // VM or VMSS name - Name *string `json:"name,omitempty"` - - // READ-ONLY; VM/VMSS resource ARM Ids - NodeResourceIDs []*string `json:"nodeResourceIds,omitempty" azure:"ro"` -} - // ServiceInitiatedSoftwareConfiguration - The SAP Software configuration Input when the software is to be installed by service. type ServiceInitiatedSoftwareConfiguration struct { // REQUIRED; The URL to the SAP Build of Materials(BOM) file. @@ -2275,12 +2182,21 @@ func (s *ServiceInitiatedSoftwareConfiguration) GetSoftwareConfiguration() *Soft } } +// SharedStorageResourceNames - The resource names object for shared storage. +type SharedStorageResourceNames struct { + // The full name of the shared storage account. If it is not provided, it will be defaulted to {SID}nfs{guid of 15 chars}. + SharedStorageAccountName *string `json:"sharedStorageAccountName,omitempty"` + + // The full name of private end point for the shared storage account. If it is not provided, it will be defaulted to {storageAccountName}_pe + SharedStorageAccountPrivateEndPointName *string `json:"sharedStorageAccountPrivateEndPointName,omitempty"` +} + // SingleServerConfiguration - Gets or sets the single server configuration. type SingleServerConfiguration struct { // REQUIRED; The application resource group where SAP system resources will be deployed. AppResourceGroup *string `json:"appResourceGroup,omitempty"` - // REQUIRED; The deployment Type. + // REQUIRED; The type of SAP deployment, single server or Three tier. DeploymentType *SAPDeploymentType `json:"deploymentType,omitempty"` // REQUIRED; The subnet id. @@ -2289,9 +2205,15 @@ type SingleServerConfiguration struct { // REQUIRED; Gets or sets the virtual machine configuration. VirtualMachineConfiguration *VirtualMachineConfiguration `json:"virtualMachineConfiguration,omitempty"` + // The set of custom names to be used for underlying azure resources that are part of the SAP system. + CustomResourceNames SingleServerCustomResourceNamesClassification `json:"customResourceNames,omitempty"` + // The database type. DatabaseType *SAPDatabaseType `json:"databaseType,omitempty"` + // Gets or sets the disk configuration. + DbDiskConfiguration *DiskConfiguration `json:"dbDiskConfiguration,omitempty"` + // Network configuration for the server NetworkConfiguration *NetworkConfiguration `json:"networkConfiguration,omitempty"` } @@ -2304,9 +2226,47 @@ func (s *SingleServerConfiguration) GetInfrastructureConfiguration() *Infrastruc } } +// SingleServerCustomResourceNamesClassification provides polymorphic access to related types. +// Call the interface's GetSingleServerCustomResourceNames() method to access the common type. +// Use a type switch to determine the concrete type. The possible types are: +// - *SingleServerCustomResourceNames, *SingleServerFullResourceNames +type SingleServerCustomResourceNamesClassification interface { + // GetSingleServerCustomResourceNames returns the SingleServerCustomResourceNames content of the underlying type. + GetSingleServerCustomResourceNames() *SingleServerCustomResourceNames +} + +// SingleServerCustomResourceNames - The resource-names input to specify custom names for underlying azure resources that +// are part of a single server SAP system. +type SingleServerCustomResourceNames struct { + // REQUIRED; The pattern type to be used for resource naming. + NamingPatternType *NamingPatternType `json:"namingPatternType,omitempty"` +} + +// GetSingleServerCustomResourceNames implements the SingleServerCustomResourceNamesClassification interface for type SingleServerCustomResourceNames. +func (s *SingleServerCustomResourceNames) GetSingleServerCustomResourceNames() *SingleServerCustomResourceNames { + return s +} + +// SingleServerFullResourceNames - The resource name object where the specified values will be full resource names of the +// corresponding resources in a single server SAP system. +type SingleServerFullResourceNames struct { + // REQUIRED; The pattern type to be used for resource naming. + NamingPatternType *NamingPatternType `json:"namingPatternType,omitempty"` + + // The resource names object for virtual machine and related resources. + VirtualMachine *VirtualMachineResourceNames `json:"virtualMachine,omitempty"` +} + +// GetSingleServerCustomResourceNames implements the SingleServerCustomResourceNamesClassification interface for type SingleServerFullResourceNames. +func (s *SingleServerFullResourceNames) GetSingleServerCustomResourceNames() *SingleServerCustomResourceNames { + return &SingleServerCustomResourceNames{ + NamingPatternType: s.NamingPatternType, + } +} + // SingleServerRecommendationResult - The recommended configuration for a single server SAP system. type SingleServerRecommendationResult struct { - // REQUIRED; The deployment Type. + // REQUIRED; The type of SAP deployment, single server or Three tier. DeploymentType *SAPDeploymentType `json:"deploymentType,omitempty"` // The recommended VM SKU for single server. @@ -2320,16 +2280,24 @@ func (s *SingleServerRecommendationResult) GetSAPSizingRecommendationResult() *S } } -// SiteProfile - Workload website profile -type SiteProfile struct { - // Domain name for the application site URL - DomainName *string `json:"domainName,omitempty"` +// SkipFileShareConfiguration - Gets or sets the skip file share configuration +type SkipFileShareConfiguration struct { + // REQUIRED; The type of file share config. + ConfigurationType *ConfigurationType `json:"configurationType,omitempty"` +} + +// GetFileShareConfiguration implements the FileShareConfigurationClassification interface for type SkipFileShareConfiguration. +func (s *SkipFileShareConfiguration) GetFileShareConfiguration() *FileShareConfiguration { + return &FileShareConfiguration{ + ConfigurationType: s.ConfigurationType, + } } // SoftwareConfigurationClassification provides polymorphic access to related types. // Call the interface's GetSoftwareConfiguration() method to access the common type. // Use a type switch to determine the concrete type. The possible types are: -// - *SAPInstallWithoutOSConfigSoftwareConfiguration, *ServiceInitiatedSoftwareConfiguration, *SoftwareConfiguration +// - *ExternalInstallationSoftwareConfiguration, *SAPInstallWithoutOSConfigSoftwareConfiguration, *ServiceInitiatedSoftwareConfiguration, +// - *SoftwareConfiguration type SoftwareConfigurationClassification interface { // GetSoftwareConfiguration returns the SoftwareConfiguration content of the underlying type. GetSoftwareConfiguration() *SoftwareConfiguration @@ -2344,10 +2312,25 @@ type SoftwareConfiguration struct { // GetSoftwareConfiguration implements the SoftwareConfigurationClassification interface for type SoftwareConfiguration. func (s *SoftwareConfiguration) GetSoftwareConfiguration() *SoftwareConfiguration { return s } -// StopRequest - Stop SAP Request. +// StopRequest - Stop SAP instance(s) request body. type StopRequest struct { - // A boolean to specify if the SAP system should be hard-stopped. - HardStop *bool `json:"hardStop,omitempty"` + // This parameter defines how long (in seconds) the soft shutdown waits until the RFC/HTTP clients no longer consider the + // server for calls with load balancing. Value 0 means that the kernel does not + // wait, but goes directly into the next shutdown state, i.e. hard stop. + SoftStopTimeoutSeconds *int64 `json:"softStopTimeoutSeconds,omitempty"` +} + +// StorageConfiguration - Gets or sets the storage configuration. +type StorageConfiguration struct { + // The properties of the transport directory attached to the VIS. The default for transportFileShareConfiguration is the createAndMount + // flow if storage configuration is missing. + TransportFileShareConfiguration FileShareConfigurationClassification `json:"transportFileShareConfiguration,omitempty"` +} + +// StorageInformation - Storage details of all the Storage accounts attached to the VM. For e.g. NFS on AFS Shared Storage. +type StorageInformation struct { + // READ-ONLY + ID *string `json:"id,omitempty" azure:"ro"` } // SystemData - Metadata pertaining to creation and last modification of the resource. @@ -2391,14 +2374,20 @@ type ThreeTierConfiguration struct { // REQUIRED; The database configuration. DatabaseServer *DatabaseConfiguration `json:"databaseServer,omitempty"` - // REQUIRED; The deployment Type. + // REQUIRED; The type of SAP deployment, single server or Three tier. DeploymentType *SAPDeploymentType `json:"deploymentType,omitempty"` + // The set of custom names to be used for underlying azure resources that are part of the SAP system. + CustomResourceNames ThreeTierCustomResourceNamesClassification `json:"customResourceNames,omitempty"` + // The high availability configuration. HighAvailabilityConfig *HighAvailabilityConfiguration `json:"highAvailabilityConfig,omitempty"` // Network configuration common to all servers NetworkConfiguration *NetworkConfiguration `json:"networkConfiguration,omitempty"` + + // The storage configuration. + StorageConfiguration *StorageConfiguration `json:"storageConfiguration,omitempty"` } // GetInfrastructureConfiguration implements the InfrastructureConfigurationClassification interface for type ThreeTierConfiguration. @@ -2409,9 +2398,58 @@ func (t *ThreeTierConfiguration) GetInfrastructureConfiguration() *Infrastructur } } +// ThreeTierCustomResourceNamesClassification provides polymorphic access to related types. +// Call the interface's GetThreeTierCustomResourceNames() method to access the common type. +// Use a type switch to determine the concrete type. The possible types are: +// - *ThreeTierCustomResourceNames, *ThreeTierFullResourceNames +type ThreeTierCustomResourceNamesClassification interface { + // GetThreeTierCustomResourceNames returns the ThreeTierCustomResourceNames content of the underlying type. + GetThreeTierCustomResourceNames() *ThreeTierCustomResourceNames +} + +// ThreeTierCustomResourceNames - The resource-names input to specify custom names for underlying azure resources that are +// part of a three tier SAP system. +type ThreeTierCustomResourceNames struct { + // REQUIRED; The pattern type to be used for resource naming. + NamingPatternType *NamingPatternType `json:"namingPatternType,omitempty"` +} + +// GetThreeTierCustomResourceNames implements the ThreeTierCustomResourceNamesClassification interface for type ThreeTierCustomResourceNames. +func (t *ThreeTierCustomResourceNames) GetThreeTierCustomResourceNames() *ThreeTierCustomResourceNames { + return t +} + +// ThreeTierFullResourceNames - The resource name object where the specified values will be full resource names of the corresponding +// resources in a three tier SAP system. +type ThreeTierFullResourceNames struct { + // REQUIRED; The pattern type to be used for resource naming. + NamingPatternType *NamingPatternType `json:"namingPatternType,omitempty"` + + // The full resource names object for application layer resources. The number of entries in this list should be equal to the + // number VMs to be created for application layer. + ApplicationServer *ApplicationServerFullResourceNames `json:"applicationServer,omitempty"` + + // The full resource names object for central server layer resources. + CentralServer *CentralServerFullResourceNames `json:"centralServer,omitempty"` + + // The full resource names object for database layer resources. The number of entries in this list should be equal to the + // number VMs to be created for database layer. + DatabaseServer *DatabaseServerFullResourceNames `json:"databaseServer,omitempty"` + + // The resource names object for shared storage. + SharedStorage *SharedStorageResourceNames `json:"sharedStorage,omitempty"` +} + +// GetThreeTierCustomResourceNames implements the ThreeTierCustomResourceNamesClassification interface for type ThreeTierFullResourceNames. +func (t *ThreeTierFullResourceNames) GetThreeTierCustomResourceNames() *ThreeTierCustomResourceNames { + return &ThreeTierCustomResourceNames{ + NamingPatternType: t.NamingPatternType, + } +} + // ThreeTierRecommendationResult - The recommended configuration for a three tier SAP system. type ThreeTierRecommendationResult struct { - // REQUIRED; The deployment Type. + // REQUIRED; The type of SAP deployment, single server or Three tier. DeploymentType *SAPDeploymentType `json:"deploymentType,omitempty"` // The application server instance count. @@ -2516,15 +2554,6 @@ type UserAssignedServiceIdentity struct { UserAssignedIdentities map[string]*UserAssignedIdentity `json:"userAssignedIdentities,omitempty"` } -// UserProfile - User profile to configure on a compute resources such as VM, VMSS -type UserProfile struct { - // REQUIRED; SSH public key data - SSHPublicKey *string `json:"sshPublicKey,omitempty"` - - // REQUIRED; User name - UserName *string `json:"userName,omitempty"` -} - // VirtualMachineConfiguration - Defines the virtual machine configuration. type VirtualMachineConfiguration struct { // REQUIRED; The image reference. @@ -2537,31 +2566,33 @@ type VirtualMachineConfiguration struct { VMSize *string `json:"vmSize,omitempty"` } -// VmssNodesProfile - VMSS profile -type VmssNodesProfile struct { - // REQUIRED; VM SKU for node(s) - NodeSKU *string `json:"nodeSku,omitempty"` - - // REQUIRED; OS disk details - OSDisk *DiskInfo `json:"osDisk,omitempty"` +// VirtualMachineResourceNames - The resource names object for virtual machine and related resources. +type VirtualMachineResourceNames struct { + // The full resource names for virtual machine data disks. This is a dictionary containing list of names of data disks per + // volume. Currently supported volumes for database layer are ['hana/data', + // 'hana/log', hana/shared', 'usr/sap', 'os', 'backup']. For application and cs layers, only 'default' volume is supported + DataDiskNames map[string][]*string `json:"dataDiskNames,omitempty"` - // REQUIRED; OS image used for creating the nodes - OSImage *OsImageProfile `json:"osImage,omitempty"` + // The full name for virtual-machine's host (computer name). Currently, ACSS only supports host names which are less than + // or equal to 13 characters long. If this value is not provided, vmName will be + // used as host name. + HostName *string `json:"hostName,omitempty"` - // Maximum number of nodes for autoscale - AutoScaleMaxCount *int32 `json:"autoScaleMaxCount,omitempty"` + // The list of network interface name objects for the selected virtual machine. Currently, only one network interface is supported + // per virtual machine. + NetworkInterfaces []*NetworkInterfaceResourceNames `json:"networkInterfaces,omitempty"` - // Minimum number of nodes for autoscale - AutoScaleMinCount *int32 `json:"autoScaleMinCount,omitempty"` + // The full name for OS disk attached to the VM. If this value is not provided, it will be named by ARM as per its default + // naming standards (prefixed with vm name). There is only one OS disk attached per + // Virtual Machine. + OSDiskName *string `json:"osDiskName,omitempty"` - // Data disks details. This property is not in use right now - DataDisks []*DiskInfo `json:"dataDisks,omitempty"` - - // VM or VMSS name - Name *string `json:"name,omitempty"` - - // READ-ONLY; VM/VMSS resource ARM Ids - NodeResourceIDs []*string `json:"nodeResourceIds,omitempty" azure:"ro"` + // The full name for virtual machine. The length of this field can be upto 64 characters. If name is not provided, service + // uses a default name based on the deployment type. For SingleServer, default name + // is {SID}vm. In case of HA-AvZone systems, default name will be {SID}{app/ascs/db}z{a/b}vm with an incrementor at the end + // in case of more than 1 vm per layer. For distributed and HA-AvSet systems, + // default name will be {SID}{app/ascs/db}vm with an incrementor at the end in case of more than 1 vm per layer. + VMName *string `json:"vmName,omitempty"` } // WindowsConfiguration - Specifies Windows operating system settings on the virtual machine. @@ -2576,70 +2607,3 @@ func (w *WindowsConfiguration) GetOSConfiguration() *OSConfiguration { OSType: w.OSType, } } - -// WordpressInstanceResource - WordPress instance resource -type WordpressInstanceResource struct { - // Resource properties - Properties *WordpressInstanceResourceProperties `json:"properties,omitempty"` - - // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - ID *string `json:"id,omitempty" azure:"ro"` - - // READ-ONLY; The name of the resource - Name *string `json:"name,omitempty" azure:"ro"` - - // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. - SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` - - // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" - Type *string `json:"type,omitempty" azure:"ro"` -} - -// WordpressInstanceResourceList - WordPress instance resource list -type WordpressInstanceResourceList struct { - // Link to next page of resources - NextLink *string `json:"nextLink,omitempty"` - - // List of resources in current page - Value []*WordpressInstanceResource `json:"value,omitempty"` -} - -// WordpressInstanceResourceProperties - WordPress instance properties -type WordpressInstanceResourceProperties struct { - // REQUIRED; Application version - Version *WordpressVersions `json:"version,omitempty"` - - // Database name used by the application - DatabaseName *string `json:"databaseName,omitempty"` - - // User name used by the application to connect to database - DatabaseUser *string `json:"databaseUser,omitempty"` - - // READ-ONLY; WordPress instance provisioning state - ProvisioningState *ApplicationProvisioningState `json:"provisioningState,omitempty" azure:"ro"` - - // READ-ONLY; Site Url to access the WordPress application - SiteURL *string `json:"siteUrl,omitempty" azure:"ro"` -} - -// WordpressInstancesClientBeginCreateOrUpdateOptions contains the optional parameters for the WordpressInstancesClient.BeginCreateOrUpdate -// method. -type WordpressInstancesClientBeginCreateOrUpdateOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// WordpressInstancesClientDeleteOptions contains the optional parameters for the WordpressInstancesClient.Delete method. -type WordpressInstancesClientDeleteOptions struct { - // placeholder for future optional parameters -} - -// WordpressInstancesClientGetOptions contains the optional parameters for the WordpressInstancesClient.Get method. -type WordpressInstancesClientGetOptions struct { - // placeholder for future optional parameters -} - -// WordpressInstancesClientListOptions contains the optional parameters for the WordpressInstancesClient.List method. -type WordpressInstancesClientListOptions struct { - // placeholder for future optional parameters -} diff --git a/sdk/resourcemanager/workloads/armworkloads/models_serde.go b/sdk/resourcemanager/workloads/armworkloads/models_serde.go index 239c731b9e51..18860633e802 100644 --- a/sdk/resourcemanager/workloads/armworkloads/models_serde.go +++ b/sdk/resourcemanager/workloads/armworkloads/models_serde.go @@ -18,7 +18,7 @@ import ( // MarshalJSON implements the json.Marshaller interface for type ApplicationServerConfiguration. func (a ApplicationServerConfiguration) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "instanceCount", a.InstanceCount) populate(objectMap, "subnetId", a.SubnetID) populate(objectMap, "virtualMachineConfiguration", a.VirtualMachineConfiguration) @@ -51,75 +51,67 @@ func (a *ApplicationServerConfiguration) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type BackupProfile. -func (b BackupProfile) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "backupEnabled", b.BackupEnabled) - populate(objectMap, "vaultResourceId", b.VaultResourceID) +// MarshalJSON implements the json.Marshaller interface for type ApplicationServerFullResourceNames. +func (a ApplicationServerFullResourceNames) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "availabilitySetName", a.AvailabilitySetName) + populate(objectMap, "virtualMachines", a.VirtualMachines) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type BackupProfile. -func (b *BackupProfile) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type ApplicationServerFullResourceNames. +func (a *ApplicationServerFullResourceNames) 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", b, err) + return fmt.Errorf("unmarshalling type %T: %v", a, err) } for key, val := range rawMsg { var err error switch key { - case "backupEnabled": - err = unpopulate(val, "BackupEnabled", &b.BackupEnabled) + case "availabilitySetName": + err = unpopulate(val, "AvailabilitySetName", &a.AvailabilitySetName) delete(rawMsg, key) - case "vaultResourceId": - err = unpopulate(val, "VaultResourceID", &b.VaultResourceID) + case "virtualMachines": + err = unpopulate(val, "VirtualMachines", &a.VirtualMachines) delete(rawMsg, key) } if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", b, err) + return fmt.Errorf("unmarshalling type %T: %v", a, err) } } return nil } -// MarshalJSON implements the json.Marshaller interface for type CacheProfile. -func (c CacheProfile) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "cacheResourceId", c.CacheResourceID) - populate(objectMap, "capacity", c.Capacity) - populate(objectMap, "family", c.Family) - populate(objectMap, "name", c.Name) - populate(objectMap, "skuName", c.SKUName) +// MarshalJSON implements the json.Marshaller interface for type ApplicationServerVMDetails. +func (a ApplicationServerVMDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "storageDetails", a.StorageDetails) + populate(objectMap, "type", a.Type) + populate(objectMap, "virtualMachineId", a.VirtualMachineID) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type CacheProfile. -func (c *CacheProfile) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type ApplicationServerVMDetails. +func (a *ApplicationServerVMDetails) 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) + return fmt.Errorf("unmarshalling type %T: %v", a, err) } for key, val := range rawMsg { var err error switch key { - case "cacheResourceId": - err = unpopulate(val, "CacheResourceID", &c.CacheResourceID) + case "storageDetails": + err = unpopulate(val, "StorageDetails", &a.StorageDetails) delete(rawMsg, key) - case "capacity": - err = unpopulate(val, "Capacity", &c.Capacity) - delete(rawMsg, key) - case "family": - err = unpopulate(val, "Family", &c.Family) - delete(rawMsg, key) - case "name": - err = unpopulate(val, "Name", &c.Name) + case "type": + err = unpopulate(val, "Type", &a.Type) delete(rawMsg, key) - case "skuName": - err = unpopulate(val, "SKUName", &c.SKUName) + case "virtualMachineId": + err = unpopulate(val, "VirtualMachineID", &a.VirtualMachineID) delete(rawMsg, key) } if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", c, err) + return fmt.Errorf("unmarshalling type %T: %v", a, err) } } return nil @@ -127,7 +119,7 @@ func (c *CacheProfile) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CentralServerConfiguration. func (c CentralServerConfiguration) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "instanceCount", c.InstanceCount) populate(objectMap, "subnetId", c.SubnetID) populate(objectMap, "virtualMachineConfiguration", c.VirtualMachineConfiguration) @@ -160,9 +152,45 @@ func (c *CentralServerConfiguration) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type CentralServerFullResourceNames. +func (c CentralServerFullResourceNames) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "availabilitySetName", c.AvailabilitySetName) + populate(objectMap, "loadBalancer", c.LoadBalancer) + populate(objectMap, "virtualMachines", c.VirtualMachines) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CentralServerFullResourceNames. +func (c *CentralServerFullResourceNames) 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 "availabilitySetName": + err = unpopulate(val, "AvailabilitySetName", &c.AvailabilitySetName) + delete(rawMsg, key) + case "loadBalancer": + err = unpopulate(val, "LoadBalancer", &c.LoadBalancer) + delete(rawMsg, key) + case "virtualMachines": + err = unpopulate(val, "VirtualMachines", &c.VirtualMachines) + 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 CentralServerVMDetails. func (c CentralServerVMDetails) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) + populate(objectMap, "storageDetails", c.StorageDetails) populate(objectMap, "type", c.Type) populate(objectMap, "virtualMachineId", c.VirtualMachineID) return json.Marshal(objectMap) @@ -177,6 +205,9 @@ func (c *CentralServerVMDetails) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { + case "storageDetails": + err = unpopulate(val, "StorageDetails", &c.StorageDetails) + delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &c.Type) delete(rawMsg, key) @@ -191,9 +222,44 @@ func (c *CentralServerVMDetails) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type CreateAndMountFileShareConfiguration. +func (c CreateAndMountFileShareConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + objectMap["configurationType"] = ConfigurationTypeCreateAndMount + populate(objectMap, "resourceGroup", c.ResourceGroup) + populate(objectMap, "storageAccountName", c.StorageAccountName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CreateAndMountFileShareConfiguration. +func (c *CreateAndMountFileShareConfiguration) 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 "configurationType": + err = unpopulate(val, "ConfigurationType", &c.ConfigurationType) + delete(rawMsg, key) + case "resourceGroup": + err = unpopulate(val, "ResourceGroup", &c.ResourceGroup) + delete(rawMsg, key) + case "storageAccountName": + err = unpopulate(val, "StorageAccountName", &c.StorageAccountName) + 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 DB2ProviderInstanceProperties. func (d DB2ProviderInstanceProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dbName", d.DbName) populate(objectMap, "dbPassword", d.DbPassword) populate(objectMap, "dbPasswordUri", d.DbPasswordURI) @@ -201,6 +267,8 @@ func (d DB2ProviderInstanceProperties) MarshalJSON() ([]byte, error) { populate(objectMap, "dbUsername", d.DbUsername) populate(objectMap, "hostname", d.Hostname) objectMap["providerType"] = "Db2" + populate(objectMap, "sslCertificateUri", d.SSLCertificateURI) + populate(objectMap, "sslPreference", d.SSLPreference) populate(objectMap, "sapSid", d.SapSid) return json.Marshal(objectMap) } @@ -235,6 +303,12 @@ func (d *DB2ProviderInstanceProperties) UnmarshalJSON(data []byte) error { case "providerType": err = unpopulate(val, "ProviderType", &d.ProviderType) delete(rawMsg, key) + case "sslCertificateUri": + err = unpopulate(val, "SSLCertificateURI", &d.SSLCertificateURI) + delete(rawMsg, key) + case "sslPreference": + err = unpopulate(val, "SSLPreference", &d.SSLPreference) + delete(rawMsg, key) case "sapSid": err = unpopulate(val, "SapSid", &d.SapSid) delete(rawMsg, key) @@ -248,8 +322,9 @@ func (d *DB2ProviderInstanceProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DatabaseConfiguration. func (d DatabaseConfiguration) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "databaseType", d.DatabaseType) + populate(objectMap, "diskConfiguration", d.DiskConfiguration) populate(objectMap, "instanceCount", d.InstanceCount) populate(objectMap, "subnetId", d.SubnetID) populate(objectMap, "virtualMachineConfiguration", d.VirtualMachineConfiguration) @@ -268,6 +343,9 @@ func (d *DatabaseConfiguration) UnmarshalJSON(data []byte) error { case "databaseType": err = unpopulate(val, "DatabaseType", &d.DatabaseType) delete(rawMsg, key) + case "diskConfiguration": + err = unpopulate(val, "DiskConfiguration", &d.DiskConfiguration) + delete(rawMsg, key) case "instanceCount": err = unpopulate(val, "InstanceCount", &d.InstanceCount) delete(rawMsg, key) @@ -285,26 +363,17 @@ func (d *DatabaseConfiguration) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type DatabaseProfile. -func (d DatabaseProfile) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "backupRetentionDays", d.BackupRetentionDays) - populate(objectMap, "haEnabled", d.HaEnabled) - populate(objectMap, "sku", d.SKU) - populate(objectMap, "sslEnforcementEnabled", d.SSLEnforcementEnabled) - populate(objectMap, "serverName", d.ServerName) - populate(objectMap, "serverResourceId", d.ServerResourceID) - populate(objectMap, "storageInGB", d.StorageInGB) - populate(objectMap, "storageIops", d.StorageIops) - populate(objectMap, "storageSku", d.StorageSKU) - populate(objectMap, "tier", d.Tier) - populate(objectMap, "type", d.Type) - populate(objectMap, "version", d.Version) +// MarshalJSON implements the json.Marshaller interface for type DatabaseServerFullResourceNames. +func (d DatabaseServerFullResourceNames) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "availabilitySetName", d.AvailabilitySetName) + populate(objectMap, "loadBalancer", d.LoadBalancer) + populate(objectMap, "virtualMachines", d.VirtualMachines) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type DatabaseProfile. -func (d *DatabaseProfile) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type DatabaseServerFullResourceNames. +func (d *DatabaseServerFullResourceNames) 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", d, err) @@ -312,41 +381,14 @@ func (d *DatabaseProfile) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "backupRetentionDays": - err = unpopulate(val, "BackupRetentionDays", &d.BackupRetentionDays) - delete(rawMsg, key) - case "haEnabled": - err = unpopulate(val, "HaEnabled", &d.HaEnabled) - delete(rawMsg, key) - case "sku": - err = unpopulate(val, "SKU", &d.SKU) - delete(rawMsg, key) - case "sslEnforcementEnabled": - err = unpopulate(val, "SSLEnforcementEnabled", &d.SSLEnforcementEnabled) + case "availabilitySetName": + err = unpopulate(val, "AvailabilitySetName", &d.AvailabilitySetName) delete(rawMsg, key) - case "serverName": - err = unpopulate(val, "ServerName", &d.ServerName) + case "loadBalancer": + err = unpopulate(val, "LoadBalancer", &d.LoadBalancer) delete(rawMsg, key) - case "serverResourceId": - err = unpopulate(val, "ServerResourceID", &d.ServerResourceID) - delete(rawMsg, key) - case "storageInGB": - err = unpopulate(val, "StorageInGB", &d.StorageInGB) - delete(rawMsg, key) - case "storageIops": - err = unpopulate(val, "StorageIops", &d.StorageIops) - delete(rawMsg, key) - case "storageSku": - err = unpopulate(val, "StorageSKU", &d.StorageSKU) - delete(rawMsg, key) - case "tier": - err = unpopulate(val, "Tier", &d.Tier) - delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &d.Type) - delete(rawMsg, key) - case "version": - err = unpopulate(val, "Version", &d.Version) + case "virtualMachines": + err = unpopulate(val, "VirtualMachines", &d.VirtualMachines) delete(rawMsg, key) } if err != nil { @@ -358,8 +400,9 @@ func (d *DatabaseProfile) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DatabaseVMDetails. func (d DatabaseVMDetails) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "status", d.Status) + populate(objectMap, "storageDetails", d.StorageDetails) populate(objectMap, "virtualMachineId", d.VirtualMachineID) return json.Marshal(objectMap) } @@ -376,6 +419,9 @@ func (d *DatabaseVMDetails) UnmarshalJSON(data []byte) error { case "status": err = unpopulate(val, "Status", &d.Status) delete(rawMsg, key) + case "storageDetails": + err = unpopulate(val, "StorageDetails", &d.StorageDetails) + delete(rawMsg, key) case "virtualMachineId": err = unpopulate(val, "VirtualMachineID", &d.VirtualMachineID) delete(rawMsg, key) @@ -389,7 +435,7 @@ func (d *DatabaseVMDetails) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DeployerVMPackages. func (d DeployerVMPackages) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "storageAccountId", d.StorageAccountID) populate(objectMap, "url", d.URL) return json.Marshal(objectMap) @@ -420,7 +466,7 @@ func (d *DeployerVMPackages) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DeploymentConfiguration. func (d DeploymentConfiguration) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "appLocation", d.AppLocation) objectMap["configurationType"] = SAPConfigurationTypeDeployment populate(objectMap, "infrastructureConfiguration", d.InfrastructureConfiguration) @@ -459,7 +505,7 @@ func (d *DeploymentConfiguration) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DeploymentWithOSConfiguration. func (d DeploymentWithOSConfiguration) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "appLocation", d.AppLocation) objectMap["configurationType"] = SAPConfigurationTypeDeploymentWithOSConfig populate(objectMap, "infrastructureConfiguration", d.InfrastructureConfiguration) @@ -502,10 +548,11 @@ func (d *DeploymentWithOSConfiguration) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DiscoveryConfiguration. func (d DiscoveryConfiguration) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "appLocation", d.AppLocation) populate(objectMap, "centralServerVmId", d.CentralServerVMID) objectMap["configurationType"] = SAPConfigurationTypeDiscovery + populate(objectMap, "managedRgStorageAccountName", d.ManagedRgStorageAccountName) return json.Marshal(objectMap) } @@ -527,6 +574,114 @@ func (d *DiscoveryConfiguration) UnmarshalJSON(data []byte) error { case "configurationType": err = unpopulate(val, "ConfigurationType", &d.ConfigurationType) delete(rawMsg, key) + case "managedRgStorageAccountName": + err = unpopulate(val, "ManagedRgStorageAccountName", &d.ManagedRgStorageAccountName) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type DiskConfiguration. +func (d DiskConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "diskVolumeConfigurations", d.DiskVolumeConfigurations) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DiskConfiguration. +func (d *DiskConfiguration) 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", d, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "diskVolumeConfigurations": + err = unpopulate(val, "DiskVolumeConfigurations", &d.DiskVolumeConfigurations) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type DiskDetails. +func (d DiskDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "diskTier", d.DiskTier) + populate(objectMap, "iopsReadWrite", d.IopsReadWrite) + populate(objectMap, "maximumSupportedDiskCount", d.MaximumSupportedDiskCount) + populate(objectMap, "mbpsReadWrite", d.MbpsReadWrite) + populate(objectMap, "minimumSupportedDiskCount", d.MinimumSupportedDiskCount) + populate(objectMap, "sku", d.SKU) + populate(objectMap, "sizeGB", d.SizeGB) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DiskDetails. +func (d *DiskDetails) 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", d, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "diskTier": + err = unpopulate(val, "DiskTier", &d.DiskTier) + delete(rawMsg, key) + case "iopsReadWrite": + err = unpopulate(val, "IopsReadWrite", &d.IopsReadWrite) + delete(rawMsg, key) + case "maximumSupportedDiskCount": + err = unpopulate(val, "MaximumSupportedDiskCount", &d.MaximumSupportedDiskCount) + delete(rawMsg, key) + case "mbpsReadWrite": + err = unpopulate(val, "MbpsReadWrite", &d.MbpsReadWrite) + delete(rawMsg, key) + case "minimumSupportedDiskCount": + err = unpopulate(val, "MinimumSupportedDiskCount", &d.MinimumSupportedDiskCount) + delete(rawMsg, key) + case "sku": + err = unpopulate(val, "SKU", &d.SKU) + delete(rawMsg, key) + case "sizeGB": + err = unpopulate(val, "SizeGB", &d.SizeGB) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type DiskSKU. +func (d DiskSKU) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "name", d.Name) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DiskSKU. +func (d *DiskSKU) 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", d, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "name": + err = unpopulate(val, "Name", &d.Name) + delete(rawMsg, key) } if err != nil { return fmt.Errorf("unmarshalling type %T: %v", d, err) @@ -535,16 +690,17 @@ func (d *DiscoveryConfiguration) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type DiskInfo. -func (d DiskInfo) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "sizeInGB", d.SizeInGB) - populate(objectMap, "storageType", d.StorageType) +// MarshalJSON implements the json.Marshaller interface for type DiskVolumeConfiguration. +func (d DiskVolumeConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "count", d.Count) + populate(objectMap, "sku", d.SKU) + populate(objectMap, "sizeGB", d.SizeGB) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type DiskInfo. -func (d *DiskInfo) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type DiskVolumeConfiguration. +func (d *DiskVolumeConfiguration) 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", d, err) @@ -552,11 +708,14 @@ func (d *DiskInfo) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "sizeInGB": - err = unpopulate(val, "SizeInGB", &d.SizeInGB) + case "count": + err = unpopulate(val, "Count", &d.Count) + delete(rawMsg, key) + case "sku": + err = unpopulate(val, "SKU", &d.SKU) delete(rawMsg, key) - case "storageType": - err = unpopulate(val, "StorageType", &d.StorageType) + case "sizeGB": + err = unpopulate(val, "SizeGB", &d.SizeGB) delete(rawMsg, key) } if err != nil { @@ -568,7 +727,7 @@ func (d *DiskInfo) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type EnqueueReplicationServerProperties. func (e EnqueueReplicationServerProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "ersVersion", e.ErsVersion) populate(objectMap, "health", e.Health) populate(objectMap, "hostname", e.Hostname) @@ -619,7 +778,7 @@ func (e *EnqueueReplicationServerProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type EnqueueServerProperties. func (e EnqueueServerProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "health", e.Health) populate(objectMap, "hostname", e.Hostname) populate(objectMap, "ipAddress", e.IPAddress) @@ -658,7 +817,7 @@ func (e *EnqueueServerProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Error. func (e Error) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "code", e.Code) populate(objectMap, "details", e.Details) populate(objectMap, "innerError", e.InnerError) @@ -701,7 +860,7 @@ func (e *Error) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ErrorAdditionalInfo. func (e ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "info", &e.Info) populate(objectMap, "type", e.Type) return json.Marshal(objectMap) @@ -732,7 +891,7 @@ func (e *ErrorAdditionalInfo) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ErrorDefinition. func (e ErrorDefinition) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "code", e.Code) populate(objectMap, "details", e.Details) populate(objectMap, "message", e.Message) @@ -767,7 +926,7 @@ func (e *ErrorDefinition) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ErrorDetail. func (e ErrorDetail) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalInfo", e.AdditionalInfo) populate(objectMap, "code", e.Code) populate(objectMap, "details", e.Details) @@ -810,7 +969,7 @@ func (e *ErrorDetail) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ErrorInnerError. func (e ErrorInnerError) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "innerError", e.InnerError) return json.Marshal(objectMap) } @@ -837,7 +996,7 @@ func (e *ErrorInnerError) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ErrorResponse. func (e ErrorResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "error", e.Error) return json.Marshal(objectMap) } @@ -862,40 +1021,55 @@ func (e *ErrorResponse) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type FileshareProfile. -func (f FileshareProfile) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "shareName", f.ShareName) - populate(objectMap, "shareSizeInGB", f.ShareSizeInGB) - populate(objectMap, "shareType", f.ShareType) - populate(objectMap, "storageResourceId", f.StorageResourceID) - populate(objectMap, "storageType", f.StorageType) +// MarshalJSON implements the json.Marshaller interface for type ExternalInstallationSoftwareConfiguration. +func (e ExternalInstallationSoftwareConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "centralServerVmId", e.CentralServerVMID) + objectMap["softwareInstallationType"] = SAPSoftwareInstallationTypeExternal return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type FileshareProfile. -func (f *FileshareProfile) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type ExternalInstallationSoftwareConfiguration. +func (e *ExternalInstallationSoftwareConfiguration) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", f, err) + return fmt.Errorf("unmarshalling type %T: %v", e, err) } for key, val := range rawMsg { var err error switch key { - case "shareName": - err = unpopulate(val, "ShareName", &f.ShareName) - delete(rawMsg, key) - case "shareSizeInGB": - err = unpopulate(val, "ShareSizeInGB", &f.ShareSizeInGB) - delete(rawMsg, key) - case "shareType": - err = unpopulate(val, "ShareType", &f.ShareType) + case "centralServerVmId": + err = unpopulate(val, "CentralServerVMID", &e.CentralServerVMID) delete(rawMsg, key) - case "storageResourceId": - err = unpopulate(val, "StorageResourceID", &f.StorageResourceID) + case "softwareInstallationType": + err = unpopulate(val, "SoftwareInstallationType", &e.SoftwareInstallationType) delete(rawMsg, key) - case "storageType": - err = unpopulate(val, "StorageType", &f.StorageType) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", e, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type FileShareConfiguration. +func (f FileShareConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + objectMap["configurationType"] = f.ConfigurationType + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type FileShareConfiguration. +func (f *FileShareConfiguration) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", f, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "configurationType": + err = unpopulate(val, "ConfigurationType", &f.ConfigurationType) delete(rawMsg, key) } if err != nil { @@ -907,7 +1081,7 @@ func (f *FileshareProfile) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type GatewayServerProperties. func (g GatewayServerProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "health", g.Health) populate(objectMap, "port", g.Port) return json.Marshal(objectMap) @@ -938,17 +1112,19 @@ func (g *GatewayServerProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HanaDbProviderInstanceProperties. func (h HanaDbProviderInstanceProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dbName", h.DbName) populate(objectMap, "dbPassword", h.DbPassword) populate(objectMap, "dbPasswordUri", h.DbPasswordURI) - populate(objectMap, "dbSslCertificateUri", h.DbSSLCertificateURI) populate(objectMap, "dbUsername", h.DbUsername) populate(objectMap, "hostname", h.Hostname) populate(objectMap, "instanceNumber", h.InstanceNumber) objectMap["providerType"] = "SapHana" populate(objectMap, "sqlPort", h.SQLPort) + populate(objectMap, "sslCertificateUri", h.SSLCertificateURI) populate(objectMap, "sslHostNameInCertificate", h.SSLHostNameInCertificate) + populate(objectMap, "sslPreference", h.SSLPreference) + populate(objectMap, "sapSid", h.SapSid) return json.Marshal(objectMap) } @@ -970,9 +1146,6 @@ func (h *HanaDbProviderInstanceProperties) UnmarshalJSON(data []byte) error { case "dbPasswordUri": err = unpopulate(val, "DbPasswordURI", &h.DbPasswordURI) delete(rawMsg, key) - case "dbSslCertificateUri": - err = unpopulate(val, "DbSSLCertificateURI", &h.DbSSLCertificateURI) - delete(rawMsg, key) case "dbUsername": err = unpopulate(val, "DbUsername", &h.DbUsername) delete(rawMsg, key) @@ -988,9 +1161,18 @@ func (h *HanaDbProviderInstanceProperties) UnmarshalJSON(data []byte) error { case "sqlPort": err = unpopulate(val, "SQLPort", &h.SQLPort) delete(rawMsg, key) + case "sslCertificateUri": + err = unpopulate(val, "SSLCertificateURI", &h.SSLCertificateURI) + delete(rawMsg, key) case "sslHostNameInCertificate": err = unpopulate(val, "SSLHostNameInCertificate", &h.SSLHostNameInCertificate) delete(rawMsg, key) + case "sslPreference": + err = unpopulate(val, "SSLPreference", &h.SSLPreference) + delete(rawMsg, key) + case "sapSid": + err = unpopulate(val, "SapSid", &h.SapSid) + delete(rawMsg, key) } if err != nil { return fmt.Errorf("unmarshalling type %T: %v", h, err) @@ -1001,7 +1183,7 @@ func (h *HanaDbProviderInstanceProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HighAvailabilityConfiguration. func (h HighAvailabilityConfiguration) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "highAvailabilityType", h.HighAvailabilityType) return json.Marshal(objectMap) } @@ -1028,7 +1210,7 @@ func (h *HighAvailabilityConfiguration) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HighAvailabilitySoftwareConfiguration. func (h HighAvailabilitySoftwareConfiguration) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "fencingClientId", h.FencingClientID) populate(objectMap, "fencingClientPassword", h.FencingClientPassword) return json.Marshal(objectMap) @@ -1059,7 +1241,7 @@ func (h *HighAvailabilitySoftwareConfiguration) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type ImageReference. func (i ImageReference) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "exactVersion", i.ExactVersion) populate(objectMap, "offer", i.Offer) populate(objectMap, "publisher", i.Publisher) @@ -1106,7 +1288,7 @@ func (i *ImageReference) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type InfrastructureConfiguration. func (i InfrastructureConfiguration) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "appResourceGroup", i.AppResourceGroup) objectMap["deploymentType"] = i.DeploymentType return json.Marshal(objectMap) @@ -1137,7 +1319,7 @@ func (i *InfrastructureConfiguration) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type LinuxConfiguration. func (l LinuxConfiguration) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "disablePasswordAuthentication", l.DisablePasswordAuthentication) objectMap["osType"] = OSTypeLinux populate(objectMap, "ssh", l.SSH) @@ -1174,9 +1356,75 @@ func (l *LinuxConfiguration) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type LoadBalancerDetails. +func (l LoadBalancerDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", l.ID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type LoadBalancerDetails. +func (l *LoadBalancerDetails) 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", l, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &l.ID) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", l, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type LoadBalancerResourceNames. +func (l LoadBalancerResourceNames) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "backendPoolNames", l.BackendPoolNames) + populate(objectMap, "frontendIpConfigurationNames", l.FrontendIPConfigurationNames) + populate(objectMap, "healthProbeNames", l.HealthProbeNames) + populate(objectMap, "loadBalancerName", l.LoadBalancerName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type LoadBalancerResourceNames. +func (l *LoadBalancerResourceNames) 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", l, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "backendPoolNames": + err = unpopulate(val, "BackendPoolNames", &l.BackendPoolNames) + delete(rawMsg, key) + case "frontendIpConfigurationNames": + err = unpopulate(val, "FrontendIPConfigurationNames", &l.FrontendIPConfigurationNames) + delete(rawMsg, key) + case "healthProbeNames": + err = unpopulate(val, "HealthProbeNames", &l.HealthProbeNames) + delete(rawMsg, key) + case "loadBalancerName": + err = unpopulate(val, "LoadBalancerName", &l.LoadBalancerName) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", l, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type ManagedRGConfiguration. func (m ManagedRGConfiguration) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "name", m.Name) return json.Marshal(objectMap) } @@ -1203,7 +1451,7 @@ func (m *ManagedRGConfiguration) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MessageServerProperties. func (m MessageServerProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "httpPort", m.HTTPPort) populate(objectMap, "httpsPort", m.HTTPSPort) populate(objectMap, "health", m.Health) @@ -1254,7 +1502,7 @@ func (m *MessageServerProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Monitor. func (m Monitor) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", m.ID) populate(objectMap, "identity", m.Identity) populate(objectMap, "location", m.Location) @@ -1309,7 +1557,7 @@ func (m *Monitor) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MonitorListResult. func (m MonitorListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", m.NextLink) populate(objectMap, "value", m.Value) return json.Marshal(objectMap) @@ -1340,7 +1588,7 @@ func (m *MonitorListResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MonitorProperties. func (m MonitorProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "appLocation", m.AppLocation) populate(objectMap, "errors", m.Errors) populate(objectMap, "logAnalyticsWorkspaceArmId", m.LogAnalyticsWorkspaceArmID) @@ -1349,6 +1597,8 @@ func (m MonitorProperties) MarshalJSON() ([]byte, error) { populate(objectMap, "msiArmId", m.MsiArmID) populate(objectMap, "provisioningState", m.ProvisioningState) populate(objectMap, "routingPreference", m.RoutingPreference) + populate(objectMap, "storageAccountArmId", m.StorageAccountArmID) + populate(objectMap, "zoneRedundancyPreference", m.ZoneRedundancyPreference) return json.Marshal(objectMap) } @@ -1385,6 +1635,12 @@ func (m *MonitorProperties) UnmarshalJSON(data []byte) error { case "routingPreference": err = unpopulate(val, "RoutingPreference", &m.RoutingPreference) delete(rawMsg, key) + case "storageAccountArmId": + err = unpopulate(val, "StorageAccountArmID", &m.StorageAccountArmID) + delete(rawMsg, key) + case "zoneRedundancyPreference": + err = unpopulate(val, "ZoneRedundancyPreference", &m.ZoneRedundancyPreference) + delete(rawMsg, key) } if err != nil { return fmt.Errorf("unmarshalling type %T: %v", m, err) @@ -1395,7 +1651,7 @@ func (m *MonitorProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MonitorPropertiesErrors. func (m MonitorPropertiesErrors) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "code", m.Code) populate(objectMap, "details", m.Details) populate(objectMap, "innerError", m.InnerError) @@ -1436,15 +1692,52 @@ func (m *MonitorPropertiesErrors) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type MountFileShareConfiguration. +func (m MountFileShareConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + objectMap["configurationType"] = ConfigurationTypeMount + populate(objectMap, "id", m.ID) + populate(objectMap, "privateEndpointId", m.PrivateEndpointID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type MountFileShareConfiguration. +func (m *MountFileShareConfiguration) 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 "configurationType": + err = unpopulate(val, "ConfigurationType", &m.ConfigurationType) + delete(rawMsg, key) + case "id": + err = unpopulate(val, "ID", &m.ID) + delete(rawMsg, key) + case "privateEndpointId": + err = unpopulate(val, "PrivateEndpointID", &m.PrivateEndpointID) + 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 MsSQLServerProviderInstanceProperties. func (m MsSQLServerProviderInstanceProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dbPassword", m.DbPassword) populate(objectMap, "dbPasswordUri", m.DbPasswordURI) populate(objectMap, "dbPort", m.DbPort) populate(objectMap, "dbUsername", m.DbUsername) populate(objectMap, "hostname", m.Hostname) objectMap["providerType"] = "MsSqlServer" + populate(objectMap, "sslCertificateUri", m.SSLCertificateURI) + populate(objectMap, "sslPreference", m.SSLPreference) populate(objectMap, "sapSid", m.SapSid) return json.Marshal(objectMap) } @@ -1476,6 +1769,12 @@ func (m *MsSQLServerProviderInstanceProperties) UnmarshalJSON(data []byte) error case "providerType": err = unpopulate(val, "ProviderType", &m.ProviderType) delete(rawMsg, key) + case "sslCertificateUri": + err = unpopulate(val, "SSLCertificateURI", &m.SSLCertificateURI) + delete(rawMsg, key) + case "sslPreference": + err = unpopulate(val, "SSLPreference", &m.SSLPreference) + delete(rawMsg, key) case "sapSid": err = unpopulate(val, "SapSid", &m.SapSid) delete(rawMsg, key) @@ -1489,7 +1788,7 @@ func (m *MsSQLServerProviderInstanceProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type NetworkConfiguration. func (n NetworkConfiguration) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "isSecondaryIpEnabled", n.IsSecondaryIPEnabled) return json.Marshal(objectMap) } @@ -1514,24 +1813,15 @@ func (n *NetworkConfiguration) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type NetworkProfile. -func (n NetworkProfile) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "azureFrontDoorEnabled", n.AzureFrontDoorEnabled) - populate(objectMap, "azureFrontDoorResourceId", n.AzureFrontDoorResourceID) - populate(objectMap, "capacity", n.Capacity) - populate(objectMap, "frontEndPublicIpResourceId", n.FrontEndPublicIPResourceID) - populate(objectMap, "loadBalancerResourceId", n.LoadBalancerResourceID) - populate(objectMap, "loadBalancerSku", n.LoadBalancerSKU) - populate(objectMap, "loadBalancerTier", n.LoadBalancerTier) - populate(objectMap, "loadBalancerType", n.LoadBalancerType) - populate(objectMap, "outboundPublicIpResourceIds", n.OutboundPublicIPResourceIDs) - populate(objectMap, "vNetResourceId", n.VNetResourceID) +// MarshalJSON implements the json.Marshaller interface for type NetworkInterfaceResourceNames. +func (n NetworkInterfaceResourceNames) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "networkInterfaceName", n.NetworkInterfaceName) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type NetworkProfile. -func (n *NetworkProfile) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type NetworkInterfaceResourceNames. +func (n *NetworkInterfaceResourceNames) 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", n, err) @@ -1539,82 +1829,8 @@ func (n *NetworkProfile) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "azureFrontDoorEnabled": - err = unpopulate(val, "AzureFrontDoorEnabled", &n.AzureFrontDoorEnabled) - delete(rawMsg, key) - case "azureFrontDoorResourceId": - err = unpopulate(val, "AzureFrontDoorResourceID", &n.AzureFrontDoorResourceID) - delete(rawMsg, key) - case "capacity": - err = unpopulate(val, "Capacity", &n.Capacity) - delete(rawMsg, key) - case "frontEndPublicIpResourceId": - err = unpopulate(val, "FrontEndPublicIPResourceID", &n.FrontEndPublicIPResourceID) - delete(rawMsg, key) - case "loadBalancerResourceId": - err = unpopulate(val, "LoadBalancerResourceID", &n.LoadBalancerResourceID) - delete(rawMsg, key) - case "loadBalancerSku": - err = unpopulate(val, "LoadBalancerSKU", &n.LoadBalancerSKU) - delete(rawMsg, key) - case "loadBalancerTier": - err = unpopulate(val, "LoadBalancerTier", &n.LoadBalancerTier) - delete(rawMsg, key) - case "loadBalancerType": - err = unpopulate(val, "LoadBalancerType", &n.LoadBalancerType) - delete(rawMsg, key) - case "outboundPublicIpResourceIds": - err = unpopulate(val, "OutboundPublicIPResourceIDs", &n.OutboundPublicIPResourceIDs) - delete(rawMsg, key) - case "vNetResourceId": - err = unpopulate(val, "VNetResourceID", &n.VNetResourceID) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", n, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type NodeProfile. -func (n NodeProfile) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "dataDisks", n.DataDisks) - populate(objectMap, "name", n.Name) - populate(objectMap, "nodeResourceIds", n.NodeResourceIDs) - populate(objectMap, "nodeSku", n.NodeSKU) - populate(objectMap, "osDisk", n.OSDisk) - populate(objectMap, "osImage", n.OSImage) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type NodeProfile. -func (n *NodeProfile) 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", n, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "dataDisks": - err = unpopulate(val, "DataDisks", &n.DataDisks) - delete(rawMsg, key) - case "name": - err = unpopulate(val, "Name", &n.Name) - delete(rawMsg, key) - case "nodeResourceIds": - err = unpopulate(val, "NodeResourceIDs", &n.NodeResourceIDs) - delete(rawMsg, key) - case "nodeSku": - err = unpopulate(val, "NodeSKU", &n.NodeSKU) - delete(rawMsg, key) - case "osDisk": - err = unpopulate(val, "OSDisk", &n.OSDisk) - delete(rawMsg, key) - case "osImage": - err = unpopulate(val, "OSImage", &n.OSImage) + case "networkInterfaceName": + err = unpopulate(val, "NetworkInterfaceName", &n.NetworkInterfaceName) delete(rawMsg, key) } if err != nil { @@ -1626,7 +1842,7 @@ func (n *NodeProfile) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OSConfiguration. func (o OSConfiguration) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) objectMap["osType"] = o.OSType return json.Marshal(objectMap) } @@ -1653,7 +1869,7 @@ func (o *OSConfiguration) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OSProfile. func (o OSProfile) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "adminPassword", o.AdminPassword) populate(objectMap, "adminUsername", o.AdminUsername) populate(objectMap, "osConfiguration", o.OSConfiguration) @@ -1688,7 +1904,7 @@ func (o *OSProfile) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Operation. func (o Operation) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "actionType", o.ActionType) populate(objectMap, "display", o.Display) populate(objectMap, "isDataAction", o.IsDataAction) @@ -1731,7 +1947,7 @@ func (o *Operation) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OperationDisplay. func (o OperationDisplay) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "description", o.Description) populate(objectMap, "operation", o.Operation) populate(objectMap, "provider", o.Provider) @@ -1770,7 +1986,7 @@ func (o *OperationDisplay) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OperationListResult. func (o OperationListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", o.NextLink) populate(objectMap, "value", o.Value) return json.Marshal(objectMap) @@ -1801,7 +2017,7 @@ func (o *OperationListResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OperationStatusResult. func (o OperationStatusResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populateTimeRFC3339(objectMap, "endTime", o.EndTime) populate(objectMap, "error", o.Error) populate(objectMap, "id", o.ID) @@ -1856,7 +2072,7 @@ func (o *OperationStatusResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OperationsContent. func (o OperationsContent) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", o.ID) populate(objectMap, "name", o.Name) populate(objectMap, "properties", o.Properties) @@ -1899,7 +2115,7 @@ func (o *OperationsContent) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OperationsDefinition. func (o OperationsDefinition) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "actionType", o.ActionType) populate(objectMap, "display", o.Display) populate(objectMap, "isDataAction", o.IsDataAction) @@ -1946,7 +2162,7 @@ func (o *OperationsDefinition) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OperationsDefinitionArrayResponseWithContinuation. func (o OperationsDefinitionArrayResponseWithContinuation) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", o.NextLink) populate(objectMap, "value", o.Value) return json.Marshal(objectMap) @@ -1977,7 +2193,7 @@ func (o *OperationsDefinitionArrayResponseWithContinuation) UnmarshalJSON(data [ // MarshalJSON implements the json.Marshaller interface for type OperationsDefinitionDisplay. func (o OperationsDefinitionDisplay) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "description", o.Description) populate(objectMap, "operation", o.Operation) populate(objectMap, "provider", o.Provider) @@ -2016,7 +2232,7 @@ func (o *OperationsDefinitionDisplay) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OperationsDisplayDefinition. func (o OperationsDisplayDefinition) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "description", o.Description) populate(objectMap, "operation", o.Operation) populate(objectMap, "provider", o.Provider) @@ -2053,48 +2269,9 @@ func (o *OperationsDisplayDefinition) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type OsImageProfile. -func (o OsImageProfile) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "offer", o.Offer) - populate(objectMap, "publisher", o.Publisher) - populate(objectMap, "sku", o.SKU) - populate(objectMap, "version", o.Version) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type OsImageProfile. -func (o *OsImageProfile) 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", o, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "offer": - err = unpopulate(val, "Offer", &o.Offer) - delete(rawMsg, key) - case "publisher": - err = unpopulate(val, "Publisher", &o.Publisher) - delete(rawMsg, key) - case "sku": - err = unpopulate(val, "SKU", &o.SKU) - delete(rawMsg, key) - case "version": - err = unpopulate(val, "Version", &o.Version) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", o, err) - } - } - return nil -} - // MarshalJSON implements the json.Marshaller interface for type OsSapConfiguration. func (o OsSapConfiguration) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "deployerVmPackages", o.DeployerVMPackages) populate(objectMap, "sapFqdn", o.SapFqdn) return json.Marshal(objectMap) @@ -2123,306 +2300,15 @@ func (o *OsSapConfiguration) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type PatchResourceRequestBody. -func (p PatchResourceRequestBody) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "identity", p.Identity) - populate(objectMap, "tags", p.Tags) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type PatchResourceRequestBody. -func (p *PatchResourceRequestBody) 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", p, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "identity": - err = unpopulate(val, "Identity", &p.Identity) - delete(rawMsg, key) - case "tags": - err = unpopulate(val, "Tags", &p.Tags) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", p, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type PatchResourceRequestBodyIdentity. -func (p PatchResourceRequestBodyIdentity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "type", p.Type) - populate(objectMap, "userAssignedIdentities", p.UserAssignedIdentities) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type PatchResourceRequestBodyIdentity. -func (p *PatchResourceRequestBodyIdentity) 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", p, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "type": - err = unpopulate(val, "Type", &p.Type) - delete(rawMsg, key) - case "userAssignedIdentities": - err = unpopulate(val, "UserAssignedIdentities", &p.UserAssignedIdentities) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", p, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type PhpProfile. -func (p PhpProfile) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "version", p.Version) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type PhpProfile. -func (p *PhpProfile) 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", p, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "version": - err = unpopulate(val, "Version", &p.Version) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", p, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type PhpWorkloadResource. -func (p PhpWorkloadResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", p.ID) - populate(objectMap, "identity", p.Identity) - populate(objectMap, "kind", p.Kind) - populate(objectMap, "location", p.Location) - populate(objectMap, "name", p.Name) - populate(objectMap, "properties", p.Properties) - populate(objectMap, "sku", p.SKU) - populate(objectMap, "systemData", p.SystemData) - populate(objectMap, "tags", p.Tags) - populate(objectMap, "type", p.Type) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type PhpWorkloadResource. -func (p *PhpWorkloadResource) 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", p, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "id": - err = unpopulate(val, "ID", &p.ID) - delete(rawMsg, key) - case "identity": - err = unpopulate(val, "Identity", &p.Identity) - delete(rawMsg, key) - case "kind": - err = unpopulate(val, "Kind", &p.Kind) - delete(rawMsg, key) - case "location": - err = unpopulate(val, "Location", &p.Location) - delete(rawMsg, key) - case "name": - err = unpopulate(val, "Name", &p.Name) - delete(rawMsg, key) - case "properties": - err = unpopulate(val, "Properties", &p.Properties) - delete(rawMsg, key) - case "sku": - err = unpopulate(val, "SKU", &p.SKU) - delete(rawMsg, key) - case "systemData": - err = unpopulate(val, "SystemData", &p.SystemData) - delete(rawMsg, key) - case "tags": - err = unpopulate(val, "Tags", &p.Tags) - delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &p.Type) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", p, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type PhpWorkloadResourceIdentity. -func (p PhpWorkloadResourceIdentity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "type", p.Type) - populate(objectMap, "userAssignedIdentities", p.UserAssignedIdentities) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type PhpWorkloadResourceIdentity. -func (p *PhpWorkloadResourceIdentity) 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", p, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "type": - err = unpopulate(val, "Type", &p.Type) - delete(rawMsg, key) - case "userAssignedIdentities": - err = unpopulate(val, "UserAssignedIdentities", &p.UserAssignedIdentities) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", p, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type PhpWorkloadResourceList. -func (p PhpWorkloadResourceList) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "nextLink", p.NextLink) - populate(objectMap, "value", p.Value) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type PhpWorkloadResourceList. -func (p *PhpWorkloadResourceList) 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", p, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "nextLink": - err = unpopulate(val, "NextLink", &p.NextLink) - delete(rawMsg, key) - case "value": - err = unpopulate(val, "Value", &p.Value) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", p, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type PhpWorkloadResourceProperties. -func (p PhpWorkloadResourceProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "adminUserProfile", p.AdminUserProfile) - populate(objectMap, "appLocation", p.AppLocation) - populate(objectMap, "backupProfile", p.BackupProfile) - populate(objectMap, "cacheProfile", p.CacheProfile) - populate(objectMap, "controllerProfile", p.ControllerProfile) - populate(objectMap, "databaseProfile", p.DatabaseProfile) - populate(objectMap, "fileshareProfile", p.FileshareProfile) - populate(objectMap, "managedResourceGroupConfiguration", p.ManagedResourceGroupConfiguration) - populate(objectMap, "networkProfile", p.NetworkProfile) - populate(objectMap, "phpProfile", p.PhpProfile) - populate(objectMap, "provisioningState", p.ProvisioningState) - populate(objectMap, "searchProfile", p.SearchProfile) - populate(objectMap, "siteProfile", p.SiteProfile) - populate(objectMap, "webNodesProfile", p.WebNodesProfile) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type PhpWorkloadResourceProperties. -func (p *PhpWorkloadResourceProperties) 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", p, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "adminUserProfile": - err = unpopulate(val, "AdminUserProfile", &p.AdminUserProfile) - delete(rawMsg, key) - case "appLocation": - err = unpopulate(val, "AppLocation", &p.AppLocation) - delete(rawMsg, key) - case "backupProfile": - err = unpopulate(val, "BackupProfile", &p.BackupProfile) - delete(rawMsg, key) - case "cacheProfile": - err = unpopulate(val, "CacheProfile", &p.CacheProfile) - delete(rawMsg, key) - case "controllerProfile": - err = unpopulate(val, "ControllerProfile", &p.ControllerProfile) - delete(rawMsg, key) - case "databaseProfile": - err = unpopulate(val, "DatabaseProfile", &p.DatabaseProfile) - delete(rawMsg, key) - case "fileshareProfile": - err = unpopulate(val, "FileshareProfile", &p.FileshareProfile) - delete(rawMsg, key) - case "managedResourceGroupConfiguration": - err = unpopulate(val, "ManagedResourceGroupConfiguration", &p.ManagedResourceGroupConfiguration) - delete(rawMsg, key) - case "networkProfile": - err = unpopulate(val, "NetworkProfile", &p.NetworkProfile) - delete(rawMsg, key) - case "phpProfile": - err = unpopulate(val, "PhpProfile", &p.PhpProfile) - delete(rawMsg, key) - case "provisioningState": - err = unpopulate(val, "ProvisioningState", &p.ProvisioningState) - delete(rawMsg, key) - case "searchProfile": - err = unpopulate(val, "SearchProfile", &p.SearchProfile) - delete(rawMsg, key) - case "siteProfile": - err = unpopulate(val, "SiteProfile", &p.SiteProfile) - delete(rawMsg, key) - case "webNodesProfile": - err = unpopulate(val, "WebNodesProfile", &p.WebNodesProfile) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", p, err) - } - } - return nil -} - // MarshalJSON implements the json.Marshaller interface for type PrometheusHaClusterProviderInstanceProperties. func (p PrometheusHaClusterProviderInstanceProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "clusterName", p.ClusterName) populate(objectMap, "hostname", p.Hostname) populate(objectMap, "prometheusUrl", p.PrometheusURL) objectMap["providerType"] = "PrometheusHaCluster" + populate(objectMap, "sslCertificateUri", p.SSLCertificateURI) + populate(objectMap, "sslPreference", p.SSLPreference) populate(objectMap, "sid", p.Sid) return json.Marshal(objectMap) } @@ -2448,6 +2334,12 @@ func (p *PrometheusHaClusterProviderInstanceProperties) UnmarshalJSON(data []byt case "providerType": err = unpopulate(val, "ProviderType", &p.ProviderType) delete(rawMsg, key) + case "sslCertificateUri": + err = unpopulate(val, "SSLCertificateURI", &p.SSLCertificateURI) + delete(rawMsg, key) + case "sslPreference": + err = unpopulate(val, "SSLPreference", &p.SSLPreference) + delete(rawMsg, key) case "sid": err = unpopulate(val, "Sid", &p.Sid) delete(rawMsg, key) @@ -2461,9 +2353,12 @@ func (p *PrometheusHaClusterProviderInstanceProperties) UnmarshalJSON(data []byt // MarshalJSON implements the json.Marshaller interface for type PrometheusOSProviderInstanceProperties. func (p PrometheusOSProviderInstanceProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "prometheusUrl", p.PrometheusURL) objectMap["providerType"] = "PrometheusOS" + populate(objectMap, "sslCertificateUri", p.SSLCertificateURI) + populate(objectMap, "sslPreference", p.SSLPreference) + populate(objectMap, "sapSid", p.SapSid) return json.Marshal(objectMap) } @@ -2482,6 +2377,15 @@ func (p *PrometheusOSProviderInstanceProperties) UnmarshalJSON(data []byte) erro case "providerType": err = unpopulate(val, "ProviderType", &p.ProviderType) delete(rawMsg, key) + case "sslCertificateUri": + err = unpopulate(val, "SSLCertificateURI", &p.SSLCertificateURI) + delete(rawMsg, key) + case "sslPreference": + err = unpopulate(val, "SSLPreference", &p.SSLPreference) + delete(rawMsg, key) + case "sapSid": + err = unpopulate(val, "SapSid", &p.SapSid) + delete(rawMsg, key) } if err != nil { return fmt.Errorf("unmarshalling type %T: %v", p, err) @@ -2492,7 +2396,7 @@ func (p *PrometheusOSProviderInstanceProperties) UnmarshalJSON(data []byte) erro // MarshalJSON implements the json.Marshaller interface for type ProviderInstance. func (p ProviderInstance) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", p.ID) populate(objectMap, "identity", p.Identity) populate(objectMap, "name", p.Name) @@ -2539,7 +2443,7 @@ func (p *ProviderInstance) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ProviderInstanceListResult. func (p ProviderInstanceListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", p.NextLink) populate(objectMap, "value", p.Value) return json.Marshal(objectMap) @@ -2570,7 +2474,7 @@ func (p *ProviderInstanceListResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ProviderInstanceProperties. func (p ProviderInstanceProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "errors", p.Errors) populate(objectMap, "providerSettings", p.ProviderSettings) populate(objectMap, "provisioningState", p.ProvisioningState) @@ -2605,7 +2509,7 @@ func (p *ProviderInstanceProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ProviderInstancePropertiesErrors. func (p ProviderInstancePropertiesErrors) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "code", p.Code) populate(objectMap, "details", p.Details) populate(objectMap, "innerError", p.InnerError) @@ -2648,7 +2552,7 @@ func (p *ProviderInstancePropertiesErrors) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ProviderSpecificProperties. func (p ProviderSpecificProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) objectMap["providerType"] = p.ProviderType return json.Marshal(objectMap) } @@ -2675,7 +2579,7 @@ func (p *ProviderSpecificProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ProxyResource. func (p ProxyResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", p.ID) populate(objectMap, "name", p.Name) populate(objectMap, "systemData", p.SystemData) @@ -2714,7 +2618,7 @@ func (p *ProxyResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Resource. func (r Resource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", r.ID) populate(objectMap, "name", r.Name) populate(objectMap, "systemData", r.SystemData) @@ -2751,40 +2655,9 @@ func (r *Resource) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type RestrictionInfo. -func (r RestrictionInfo) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "locations", r.Locations) - populate(objectMap, "zones", r.Zones) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type RestrictionInfo. -func (r *RestrictionInfo) 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 "locations": - err = unpopulate(val, "Locations", &r.Locations) - delete(rawMsg, key) - case "zones": - err = unpopulate(val, "Zones", &r.Zones) - 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 SAPApplicationServerInstance. func (s SAPApplicationServerInstance) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", s.ID) populate(objectMap, "location", s.Location) populate(objectMap, "name", s.Name) @@ -2835,7 +2708,7 @@ func (s *SAPApplicationServerInstance) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SAPApplicationServerInstanceList. func (s SAPApplicationServerInstanceList) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", s.NextLink) populate(objectMap, "value", s.Value) return json.Marshal(objectMap) @@ -2866,7 +2739,7 @@ func (s *SAPApplicationServerInstanceList) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SAPApplicationServerProperties. func (s SAPApplicationServerProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "errors", s.Errors) populate(objectMap, "gatewayPort", s.GatewayPort) populate(objectMap, "health", s.Health) @@ -2877,10 +2750,11 @@ func (s SAPApplicationServerProperties) MarshalJSON() ([]byte, error) { populate(objectMap, "instanceNo", s.InstanceNo) populate(objectMap, "kernelPatch", s.KernelPatch) populate(objectMap, "kernelVersion", s.KernelVersion) + populate(objectMap, "loadBalancerDetails", s.LoadBalancerDetails) populate(objectMap, "provisioningState", s.ProvisioningState) populate(objectMap, "status", s.Status) populate(objectMap, "subnet", s.Subnet) - populate(objectMap, "virtualMachineId", s.VirtualMachineID) + populate(objectMap, "vmDetails", s.VMDetails) return json.Marshal(objectMap) } @@ -2923,6 +2797,9 @@ func (s *SAPApplicationServerProperties) UnmarshalJSON(data []byte) error { case "kernelVersion": err = unpopulate(val, "KernelVersion", &s.KernelVersion) delete(rawMsg, key) + case "loadBalancerDetails": + err = unpopulate(val, "LoadBalancerDetails", &s.LoadBalancerDetails) + delete(rawMsg, key) case "provisioningState": err = unpopulate(val, "ProvisioningState", &s.ProvisioningState) delete(rawMsg, key) @@ -2932,8 +2809,8 @@ func (s *SAPApplicationServerProperties) UnmarshalJSON(data []byte) error { case "subnet": err = unpopulate(val, "Subnet", &s.Subnet) delete(rawMsg, key) - case "virtualMachineId": - err = unpopulate(val, "VirtualMachineID", &s.VirtualMachineID) + case "vmDetails": + err = unpopulate(val, "VMDetails", &s.VMDetails) delete(rawMsg, key) } if err != nil { @@ -2945,7 +2822,7 @@ func (s *SAPApplicationServerProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SAPAvailabilityZoneDetailsRequest. func (s SAPAvailabilityZoneDetailsRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "appLocation", s.AppLocation) populate(objectMap, "databaseType", s.DatabaseType) populate(objectMap, "sapProduct", s.SapProduct) @@ -2980,7 +2857,7 @@ func (s *SAPAvailabilityZoneDetailsRequest) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SAPAvailabilityZoneDetailsResult. func (s SAPAvailabilityZoneDetailsResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "availabilityZonePairs", s.AvailabilityZonePairs) return json.Marshal(objectMap) } @@ -3007,7 +2884,7 @@ func (s *SAPAvailabilityZoneDetailsResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SAPAvailabilityZonePair. func (s SAPAvailabilityZonePair) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "zoneA", s.ZoneA) populate(objectMap, "zoneB", s.ZoneB) return json.Marshal(objectMap) @@ -3038,7 +2915,7 @@ func (s *SAPAvailabilityZonePair) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SAPCentralInstanceList. func (s SAPCentralInstanceList) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", s.NextLink) populate(objectMap, "value", s.Value) return json.Marshal(objectMap) @@ -3069,7 +2946,7 @@ func (s *SAPCentralInstanceList) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SAPCentralServerInstance. func (s SAPCentralServerInstance) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", s.ID) populate(objectMap, "location", s.Location) populate(objectMap, "name", s.Name) @@ -3120,7 +2997,7 @@ func (s *SAPCentralServerInstance) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SAPCentralServerProperties. func (s SAPCentralServerProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "enqueueReplicationServerProperties", s.EnqueueReplicationServerProperties) populate(objectMap, "enqueueServerProperties", s.EnqueueServerProperties) populate(objectMap, "errors", s.Errors) @@ -3129,6 +3006,7 @@ func (s SAPCentralServerProperties) MarshalJSON() ([]byte, error) { populate(objectMap, "instanceNo", s.InstanceNo) populate(objectMap, "kernelPatch", s.KernelPatch) populate(objectMap, "kernelVersion", s.KernelVersion) + populate(objectMap, "loadBalancerDetails", s.LoadBalancerDetails) populate(objectMap, "messageServerProperties", s.MessageServerProperties) populate(objectMap, "provisioningState", s.ProvisioningState) populate(objectMap, "status", s.Status) @@ -3170,6 +3048,9 @@ func (s *SAPCentralServerProperties) UnmarshalJSON(data []byte) error { case "kernelVersion": err = unpopulate(val, "KernelVersion", &s.KernelVersion) delete(rawMsg, key) + case "loadBalancerDetails": + err = unpopulate(val, "LoadBalancerDetails", &s.LoadBalancerDetails) + delete(rawMsg, key) case "messageServerProperties": err = unpopulate(val, "MessageServerProperties", &s.MessageServerProperties) delete(rawMsg, key) @@ -3195,7 +3076,7 @@ func (s *SAPCentralServerProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SAPConfiguration. func (s SAPConfiguration) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) objectMap["configurationType"] = s.ConfigurationType return json.Marshal(objectMap) } @@ -3222,7 +3103,7 @@ func (s *SAPConfiguration) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SAPDatabaseInstance. func (s SAPDatabaseInstance) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", s.ID) populate(objectMap, "location", s.Location) populate(objectMap, "name", s.Name) @@ -3273,7 +3154,7 @@ func (s *SAPDatabaseInstance) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SAPDatabaseInstanceList. func (s SAPDatabaseInstanceList) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", s.NextLink) populate(objectMap, "value", s.Value) return json.Marshal(objectMap) @@ -3304,11 +3185,12 @@ func (s *SAPDatabaseInstanceList) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SAPDatabaseProperties. func (s SAPDatabaseProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "databaseSid", s.DatabaseSid) populate(objectMap, "databaseType", s.DatabaseType) populate(objectMap, "errors", s.Errors) populate(objectMap, "ipAddress", s.IPAddress) + populate(objectMap, "loadBalancerDetails", s.LoadBalancerDetails) populate(objectMap, "provisioningState", s.ProvisioningState) populate(objectMap, "status", s.Status) populate(objectMap, "subnet", s.Subnet) @@ -3337,6 +3219,9 @@ func (s *SAPDatabaseProperties) UnmarshalJSON(data []byte) error { case "ipAddress": err = unpopulate(val, "IPAddress", &s.IPAddress) delete(rawMsg, key) + case "loadBalancerDetails": + err = unpopulate(val, "LoadBalancerDetails", &s.LoadBalancerDetails) + delete(rawMsg, key) case "provisioningState": err = unpopulate(val, "ProvisioningState", &s.ProvisioningState) delete(rawMsg, key) @@ -3359,14 +3244,9 @@ func (s *SAPDatabaseProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SAPDiskConfiguration. func (s SAPDiskConfiguration) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "diskCount", s.DiskCount) - populate(objectMap, "diskIopsReadWrite", s.DiskIopsReadWrite) - populate(objectMap, "diskMBpsReadWrite", s.DiskMBpsReadWrite) - populate(objectMap, "diskSizeGB", s.DiskSizeGB) - populate(objectMap, "diskStorageType", s.DiskStorageType) - populate(objectMap, "diskType", s.DiskType) - populate(objectMap, "volume", s.Volume) + objectMap := make(map[string]any) + populate(objectMap, "recommendedConfiguration", s.RecommendedConfiguration) + populate(objectMap, "supportedConfigurations", s.SupportedConfigurations) return json.Marshal(objectMap) } @@ -3379,26 +3259,11 @@ func (s *SAPDiskConfiguration) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "diskCount": - err = unpopulate(val, "DiskCount", &s.DiskCount) - delete(rawMsg, key) - case "diskIopsReadWrite": - err = unpopulate(val, "DiskIopsReadWrite", &s.DiskIopsReadWrite) - delete(rawMsg, key) - case "diskMBpsReadWrite": - err = unpopulate(val, "DiskMBpsReadWrite", &s.DiskMBpsReadWrite) - delete(rawMsg, key) - case "diskSizeGB": - err = unpopulate(val, "DiskSizeGB", &s.DiskSizeGB) + case "recommendedConfiguration": + err = unpopulate(val, "RecommendedConfiguration", &s.RecommendedConfiguration) delete(rawMsg, key) - case "diskStorageType": - err = unpopulate(val, "DiskStorageType", &s.DiskStorageType) - delete(rawMsg, key) - case "diskType": - err = unpopulate(val, "DiskType", &s.DiskType) - delete(rawMsg, key) - case "volume": - err = unpopulate(val, "Volume", &s.Volume) + case "supportedConfigurations": + err = unpopulate(val, "SupportedConfigurations", &s.SupportedConfigurations) delete(rawMsg, key) } if err != nil { @@ -3410,7 +3275,7 @@ func (s *SAPDiskConfiguration) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SAPDiskConfigurationsRequest. func (s SAPDiskConfigurationsRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "appLocation", s.AppLocation) populate(objectMap, "databaseType", s.DatabaseType) populate(objectMap, "dbVmSku", s.DbVMSKU) @@ -3457,8 +3322,8 @@ func (s *SAPDiskConfigurationsRequest) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SAPDiskConfigurationsResult. func (s SAPDiskConfigurationsResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "diskConfigurations", s.DiskConfigurations) + objectMap := make(map[string]any) + populate(objectMap, "volumeConfigurations", s.VolumeConfigurations) return json.Marshal(objectMap) } @@ -3471,8 +3336,8 @@ func (s *SAPDiskConfigurationsResult) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "diskConfigurations": - err = unpopulate(val, "DiskConfigurations", &s.DiskConfigurations) + case "volumeConfigurations": + err = unpopulate(val, "VolumeConfigurations", &s.VolumeConfigurations) delete(rawMsg, key) } if err != nil { @@ -3484,7 +3349,7 @@ func (s *SAPDiskConfigurationsResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SAPInstallWithoutOSConfigSoftwareConfiguration. func (s SAPInstallWithoutOSConfigSoftwareConfiguration) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "bomUrl", s.BomURL) populate(objectMap, "highAvailabilitySoftwareConfiguration", s.HighAvailabilitySoftwareConfiguration) populate(objectMap, "sapBitsStorageAccountId", s.SapBitsStorageAccountID) @@ -3527,7 +3392,7 @@ func (s *SAPInstallWithoutOSConfigSoftwareConfiguration) UnmarshalJSON(data []by // MarshalJSON implements the json.Marshaller interface for type SAPSizingRecommendationRequest. func (s SAPSizingRecommendationRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "appLocation", s.AppLocation) populate(objectMap, "databaseType", s.DatabaseType) populate(objectMap, "dbMemory", s.DbMemory) @@ -3586,7 +3451,7 @@ func (s *SAPSizingRecommendationRequest) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SAPSizingRecommendationResult. func (s SAPSizingRecommendationResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) objectMap["deploymentType"] = s.DeploymentType return json.Marshal(objectMap) } @@ -3613,7 +3478,7 @@ func (s *SAPSizingRecommendationResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SAPSupportedResourceSKUsResult. func (s SAPSupportedResourceSKUsResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "supportedSkus", s.SupportedSKUs) return json.Marshal(objectMap) } @@ -3640,7 +3505,7 @@ func (s *SAPSupportedResourceSKUsResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SAPSupportedSKU. func (s SAPSupportedSKU) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "isAppServerCertified", s.IsAppServerCertified) populate(objectMap, "isDatabaseCertified", s.IsDatabaseCertified) populate(objectMap, "vmSku", s.VMSKU) @@ -3675,7 +3540,7 @@ func (s *SAPSupportedSKU) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SAPSupportedSKUsRequest. func (s SAPSupportedSKUsRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "appLocation", s.AppLocation) populate(objectMap, "databaseType", s.DatabaseType) populate(objectMap, "deploymentType", s.DeploymentType) @@ -3722,7 +3587,7 @@ func (s *SAPSupportedSKUsRequest) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SAPVirtualInstance. func (s SAPVirtualInstance) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", s.ID) populate(objectMap, "identity", s.Identity) populate(objectMap, "location", s.Location) @@ -3777,7 +3642,7 @@ func (s *SAPVirtualInstance) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SAPVirtualInstanceError. func (s SAPVirtualInstanceError) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "properties", s.Properties) return json.Marshal(objectMap) } @@ -3804,7 +3669,7 @@ func (s *SAPVirtualInstanceError) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SAPVirtualInstanceList. func (s SAPVirtualInstanceList) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", s.NextLink) populate(objectMap, "value", s.Value) return json.Marshal(objectMap) @@ -3835,7 +3700,7 @@ func (s *SAPVirtualInstanceList) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SAPVirtualInstanceProperties. func (s SAPVirtualInstanceProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "configuration", s.Configuration) populate(objectMap, "environment", s.Environment) populate(objectMap, "errors", s.Errors) @@ -3892,59 +3757,15 @@ func (s *SAPVirtualInstanceProperties) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type SKU. -func (s SKU) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "capacity", s.Capacity) - populate(objectMap, "family", s.Family) - populate(objectMap, "name", s.Name) - populate(objectMap, "size", s.Size) - populate(objectMap, "tier", s.Tier) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type SKU. -func (s *SKU) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "capacity": - err = unpopulate(val, "Capacity", &s.Capacity) - delete(rawMsg, key) - case "family": - err = unpopulate(val, "Family", &s.Family) - delete(rawMsg, key) - case "name": - err = unpopulate(val, "Name", &s.Name) - delete(rawMsg, key) - case "size": - err = unpopulate(val, "Size", &s.Size) - delete(rawMsg, key) - case "tier": - err = unpopulate(val, "Tier", &s.Tier) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type SKUCapability. -func (s SKUCapability) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "name", s.Name) - populate(objectMap, "value", s.Value) +// MarshalJSON implements the json.Marshaller interface for type SSHConfiguration. +func (s SSHConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "publicKeys", s.PublicKeys) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type SKUCapability. -func (s *SKUCapability) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type SSHConfiguration. +func (s *SSHConfiguration) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage if err := json.Unmarshal(data, &rawMsg); err != nil { return fmt.Errorf("unmarshalling type %T: %v", s, err) @@ -3952,11 +3773,8 @@ func (s *SKUCapability) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "name": - err = unpopulate(val, "Name", &s.Name) - delete(rawMsg, key) - case "value": - err = unpopulate(val, "Value", &s.Value) + case "publicKeys": + err = unpopulate(val, "PublicKeys", &s.PublicKeys) delete(rawMsg, key) } if err != nil { @@ -3966,18 +3784,16 @@ func (s *SKUCapability) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type SKUCapacity. -func (s SKUCapacity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "default", s.Default) - populate(objectMap, "maximum", s.Maximum) - populate(objectMap, "minimum", s.Minimum) - populate(objectMap, "scaleType", s.ScaleType) +// MarshalJSON implements the json.Marshaller interface for type SSHKeyPair. +func (s SSHKeyPair) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "privateKey", s.PrivateKey) + populate(objectMap, "publicKey", s.PublicKey) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type SKUCapacity. -func (s *SKUCapacity) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type SSHKeyPair. +func (s *SSHKeyPair) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage if err := json.Unmarshal(data, &rawMsg); err != nil { return fmt.Errorf("unmarshalling type %T: %v", s, err) @@ -3985,17 +3801,11 @@ func (s *SKUCapacity) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "default": - err = unpopulate(val, "Default", &s.Default) - delete(rawMsg, key) - case "maximum": - err = unpopulate(val, "Maximum", &s.Maximum) - delete(rawMsg, key) - case "minimum": - err = unpopulate(val, "Minimum", &s.Minimum) + case "privateKey": + err = unpopulate(val, "PrivateKey", &s.PrivateKey) delete(rawMsg, key) - case "scaleType": - err = unpopulate(val, "ScaleType", &s.ScaleType) + case "publicKey": + err = unpopulate(val, "PublicKey", &s.PublicKey) delete(rawMsg, key) } if err != nil { @@ -4005,17 +3815,15 @@ func (s *SKUCapacity) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type SKUCost. -func (s SKUCost) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "extendedUnit", s.ExtendedUnit) - populate(objectMap, "meterId", s.MeterID) - populate(objectMap, "quantity", s.Quantity) +// MarshalJSON implements the json.Marshaller interface for type SSHPublicKey. +func (s SSHPublicKey) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "keyData", s.KeyData) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type SKUCost. -func (s *SKUCost) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type SSHPublicKey. +func (s *SSHPublicKey) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage if err := json.Unmarshal(data, &rawMsg); err != nil { return fmt.Errorf("unmarshalling type %T: %v", s, err) @@ -4023,14 +3831,8 @@ func (s *SKUCost) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "extendedUnit": - err = unpopulate(val, "ExtendedUnit", &s.ExtendedUnit) - delete(rawMsg, key) - case "meterId": - err = unpopulate(val, "MeterID", &s.MeterID) - delete(rawMsg, key) - case "quantity": - err = unpopulate(val, "Quantity", &s.Quantity) + case "keyData": + err = unpopulate(val, "KeyData", &s.KeyData) delete(rawMsg, key) } if err != nil { @@ -4040,26 +3842,19 @@ func (s *SKUCost) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type SKUDefinition. -func (s SKUDefinition) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "capabilities", s.Capabilities) - populate(objectMap, "capacity", &s.Capacity) - populate(objectMap, "costs", s.Costs) - populate(objectMap, "family", s.Family) - populate(objectMap, "kind", s.Kind) - populate(objectMap, "locationInfo", s.LocationInfo) - populate(objectMap, "locations", s.Locations) +// MarshalJSON implements the json.Marshaller interface for type SapLandscapeMonitor. +func (s SapLandscapeMonitor) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", s.ID) populate(objectMap, "name", s.Name) - populate(objectMap, "resourceType", s.ResourceType) - populate(objectMap, "restrictions", s.Restrictions) - populate(objectMap, "size", s.Size) - populate(objectMap, "tier", s.Tier) + populate(objectMap, "properties", s.Properties) + populate(objectMap, "systemData", s.SystemData) + populate(objectMap, "type", s.Type) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type SKUDefinition. -func (s *SKUDefinition) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type SapLandscapeMonitor. +func (s *SapLandscapeMonitor) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage if err := json.Unmarshal(data, &rawMsg); err != nil { return fmt.Errorf("unmarshalling type %T: %v", s, err) @@ -4067,85 +3862,21 @@ func (s *SKUDefinition) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "capabilities": - err = unpopulate(val, "Capabilities", &s.Capabilities) - delete(rawMsg, key) - case "capacity": - err = unpopulate(val, "Capacity", &s.Capacity) - delete(rawMsg, key) - case "costs": - err = unpopulate(val, "Costs", &s.Costs) - delete(rawMsg, key) - case "family": - err = unpopulate(val, "Family", &s.Family) - delete(rawMsg, key) - case "kind": - err = unpopulate(val, "Kind", &s.Kind) - delete(rawMsg, key) - case "locationInfo": - err = unpopulate(val, "LocationInfo", &s.LocationInfo) - delete(rawMsg, key) - case "locations": - err = unpopulate(val, "Locations", &s.Locations) + case "id": + err = unpopulate(val, "ID", &s.ID) delete(rawMsg, key) case "name": err = unpopulate(val, "Name", &s.Name) delete(rawMsg, key) - case "resourceType": - err = unpopulate(val, "ResourceType", &s.ResourceType) - delete(rawMsg, key) - case "restrictions": - err = unpopulate(val, "Restrictions", &s.Restrictions) - delete(rawMsg, key) - case "size": - err = unpopulate(val, "Size", &s.Size) - delete(rawMsg, key) - case "tier": - err = unpopulate(val, "Tier", &s.Tier) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type SKULocationAndZones. -func (s SKULocationAndZones) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "extendedLocations", s.ExtendedLocations) - populate(objectMap, "location", s.Location) - populate(objectMap, "type", s.Type) - populate(objectMap, "zoneDetails", s.ZoneDetails) - populate(objectMap, "zones", s.Zones) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type SKULocationAndZones. -func (s *SKULocationAndZones) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "extendedLocations": - err = unpopulate(val, "ExtendedLocations", &s.ExtendedLocations) + case "properties": + err = unpopulate(val, "Properties", &s.Properties) delete(rawMsg, key) - case "location": - err = unpopulate(val, "Location", &s.Location) + case "systemData": + err = unpopulate(val, "SystemData", &s.SystemData) delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &s.Type) delete(rawMsg, key) - case "zoneDetails": - err = unpopulate(val, "ZoneDetails", &s.ZoneDetails) - delete(rawMsg, key) - case "zones": - err = unpopulate(val, "Zones", &s.Zones) - delete(rawMsg, key) } if err != nil { return fmt.Errorf("unmarshalling type %T: %v", s, err) @@ -4154,18 +3885,16 @@ func (s *SKULocationAndZones) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type SKURestriction. -func (s SKURestriction) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "reasonCode", s.ReasonCode) - populate(objectMap, "restrictionInfo", &s.RestrictionInfo) - populate(objectMap, "type", s.Type) - populate(objectMap, "values", s.Values) +// MarshalJSON implements the json.Marshaller interface for type SapLandscapeMonitorListResult. +func (s SapLandscapeMonitorListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", s.NextLink) + populate(objectMap, "value", s.Value) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type SKURestriction. -func (s *SKURestriction) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type SapLandscapeMonitorListResult. +func (s *SapLandscapeMonitorListResult) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage if err := json.Unmarshal(data, &rawMsg); err != nil { return fmt.Errorf("unmarshalling type %T: %v", s, err) @@ -4173,17 +3902,11 @@ func (s *SKURestriction) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "reasonCode": - err = unpopulate(val, "ReasonCode", &s.ReasonCode) - delete(rawMsg, key) - case "restrictionInfo": - err = unpopulate(val, "RestrictionInfo", &s.RestrictionInfo) - delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &s.Type) + case "nextLink": + err = unpopulate(val, "NextLink", &s.NextLink) delete(rawMsg, key) - case "values": - err = unpopulate(val, "Values", &s.Values) + case "value": + err = unpopulate(val, "Value", &s.Value) delete(rawMsg, key) } if err != nil { @@ -4193,16 +3916,18 @@ func (s *SKURestriction) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type SKUZoneDetail. -func (s SKUZoneDetail) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "capabilities", s.Capabilities) - populate(objectMap, "zones", s.Zones) +// MarshalJSON implements the json.Marshaller interface for type SapLandscapeMonitorMetricThresholds. +func (s SapLandscapeMonitorMetricThresholds) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "green", s.Green) + populate(objectMap, "name", s.Name) + populate(objectMap, "red", s.Red) + populate(objectMap, "yellow", s.Yellow) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type SKUZoneDetail. -func (s *SKUZoneDetail) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type SapLandscapeMonitorMetricThresholds. +func (s *SapLandscapeMonitorMetricThresholds) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage if err := json.Unmarshal(data, &rawMsg); err != nil { return fmt.Errorf("unmarshalling type %T: %v", s, err) @@ -4210,42 +3935,17 @@ func (s *SKUZoneDetail) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "capabilities": - err = unpopulate(val, "Capabilities", &s.Capabilities) + case "green": + err = unpopulate(val, "Green", &s.Green) delete(rawMsg, key) - case "zones": - err = unpopulate(val, "Zones", &s.Zones) + case "name": + err = unpopulate(val, "Name", &s.Name) delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type SKUsListResult. -func (s SKUsListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "nextLink", s.NextLink) - populate(objectMap, "value", s.Value) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type SKUsListResult. -func (s *SKUsListResult) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "nextLink": - err = unpopulate(val, "NextLink", &s.NextLink) + case "red": + err = unpopulate(val, "Red", &s.Red) delete(rawMsg, key) - case "value": - err = unpopulate(val, "Value", &s.Value) + case "yellow": + err = unpopulate(val, "Yellow", &s.Yellow) delete(rawMsg, key) } if err != nil { @@ -4255,15 +3955,17 @@ func (s *SKUsListResult) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type SSHConfiguration. -func (s SSHConfiguration) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "publicKeys", s.PublicKeys) +// MarshalJSON implements the json.Marshaller interface for type SapLandscapeMonitorProperties. +func (s SapLandscapeMonitorProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "grouping", s.Grouping) + populate(objectMap, "provisioningState", s.ProvisioningState) + populate(objectMap, "topMetricsThresholds", s.TopMetricsThresholds) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type SSHConfiguration. -func (s *SSHConfiguration) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type SapLandscapeMonitorProperties. +func (s *SapLandscapeMonitorProperties) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage if err := json.Unmarshal(data, &rawMsg); err != nil { return fmt.Errorf("unmarshalling type %T: %v", s, err) @@ -4271,8 +3973,14 @@ func (s *SSHConfiguration) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "publicKeys": - err = unpopulate(val, "PublicKeys", &s.PublicKeys) + case "grouping": + err = unpopulate(val, "Grouping", &s.Grouping) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &s.ProvisioningState) + delete(rawMsg, key) + case "topMetricsThresholds": + err = unpopulate(val, "TopMetricsThresholds", &s.TopMetricsThresholds) delete(rawMsg, key) } if err != nil { @@ -4282,16 +3990,16 @@ func (s *SSHConfiguration) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type SSHKeyPair. -func (s SSHKeyPair) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "privateKey", s.PrivateKey) - populate(objectMap, "publicKey", s.PublicKey) +// MarshalJSON implements the json.Marshaller interface for type SapLandscapeMonitorPropertiesGrouping. +func (s SapLandscapeMonitorPropertiesGrouping) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "landscape", s.Landscape) + populate(objectMap, "sapApplication", s.SapApplication) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type SSHKeyPair. -func (s *SSHKeyPair) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type SapLandscapeMonitorPropertiesGrouping. +func (s *SapLandscapeMonitorPropertiesGrouping) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage if err := json.Unmarshal(data, &rawMsg); err != nil { return fmt.Errorf("unmarshalling type %T: %v", s, err) @@ -4299,11 +4007,11 @@ func (s *SSHKeyPair) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "privateKey": - err = unpopulate(val, "PrivateKey", &s.PrivateKey) + case "landscape": + err = unpopulate(val, "Landscape", &s.Landscape) delete(rawMsg, key) - case "publicKey": - err = unpopulate(val, "PublicKey", &s.PublicKey) + case "sapApplication": + err = unpopulate(val, "SapApplication", &s.SapApplication) delete(rawMsg, key) } if err != nil { @@ -4313,15 +4021,16 @@ func (s *SSHKeyPair) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type SSHPublicKey. -func (s SSHPublicKey) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "keyData", s.KeyData) +// MarshalJSON implements the json.Marshaller interface for type SapLandscapeMonitorSidMapping. +func (s SapLandscapeMonitorSidMapping) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "name", s.Name) + populate(objectMap, "topSid", s.TopSid) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type SSHPublicKey. -func (s *SSHPublicKey) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type SapLandscapeMonitorSidMapping. +func (s *SapLandscapeMonitorSidMapping) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage if err := json.Unmarshal(data, &rawMsg); err != nil { return fmt.Errorf("unmarshalling type %T: %v", s, err) @@ -4329,8 +4038,11 @@ func (s *SSHPublicKey) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "keyData": - err = unpopulate(val, "KeyData", &s.KeyData) + case "name": + err = unpopulate(val, "Name", &s.Name) + delete(rawMsg, key) + case "topSid": + err = unpopulate(val, "TopSid", &s.TopSid) delete(rawMsg, key) } if err != nil { @@ -4342,8 +4054,10 @@ func (s *SSHPublicKey) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SapNetWeaverProviderInstanceProperties. func (s SapNetWeaverProviderInstanceProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) objectMap["providerType"] = "SapNetWeaver" + populate(objectMap, "sslCertificateUri", s.SSLCertificateURI) + populate(objectMap, "sslPreference", s.SSLPreference) populate(objectMap, "sapClientId", s.SapClientID) populate(objectMap, "sapHostFileEntries", s.SapHostFileEntries) populate(objectMap, "sapHostname", s.SapHostname) @@ -4351,7 +4065,6 @@ func (s SapNetWeaverProviderInstanceProperties) MarshalJSON() ([]byte, error) { populate(objectMap, "sapPassword", s.SapPassword) populate(objectMap, "sapPasswordUri", s.SapPasswordURI) populate(objectMap, "sapPortNumber", s.SapPortNumber) - populate(objectMap, "sapSslCertificateUri", s.SapSSLCertificateURI) populate(objectMap, "sapSid", s.SapSid) populate(objectMap, "sapUsername", s.SapUsername) return json.Marshal(objectMap) @@ -4369,6 +4082,12 @@ func (s *SapNetWeaverProviderInstanceProperties) UnmarshalJSON(data []byte) erro case "providerType": err = unpopulate(val, "ProviderType", &s.ProviderType) delete(rawMsg, key) + case "sslCertificateUri": + err = unpopulate(val, "SSLCertificateURI", &s.SSLCertificateURI) + delete(rawMsg, key) + case "sslPreference": + err = unpopulate(val, "SSLPreference", &s.SSLPreference) + delete(rawMsg, key) case "sapClientId": err = unpopulate(val, "SapClientID", &s.SapClientID) delete(rawMsg, key) @@ -4390,9 +4109,6 @@ func (s *SapNetWeaverProviderInstanceProperties) UnmarshalJSON(data []byte) erro case "sapPortNumber": err = unpopulate(val, "SapPortNumber", &s.SapPortNumber) delete(rawMsg, key) - case "sapSslCertificateUri": - err = unpopulate(val, "SapSSLCertificateURI", &s.SapSSLCertificateURI) - delete(rawMsg, key) case "sapSid": err = unpopulate(val, "SapSid", &s.SapSid) delete(rawMsg, key) @@ -4407,60 +4123,9 @@ func (s *SapNetWeaverProviderInstanceProperties) UnmarshalJSON(data []byte) erro return nil } -// MarshalJSON implements the json.Marshaller interface for type SearchProfile. -func (s SearchProfile) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "dataDisks", s.DataDisks) - populate(objectMap, "name", s.Name) - populate(objectMap, "nodeResourceIds", s.NodeResourceIDs) - populate(objectMap, "nodeSku", s.NodeSKU) - populate(objectMap, "osDisk", s.OSDisk) - populate(objectMap, "osImage", s.OSImage) - populate(objectMap, "searchType", s.SearchType) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type SearchProfile. -func (s *SearchProfile) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "dataDisks": - err = unpopulate(val, "DataDisks", &s.DataDisks) - delete(rawMsg, key) - case "name": - err = unpopulate(val, "Name", &s.Name) - delete(rawMsg, key) - case "nodeResourceIds": - err = unpopulate(val, "NodeResourceIDs", &s.NodeResourceIDs) - delete(rawMsg, key) - case "nodeSku": - err = unpopulate(val, "NodeSKU", &s.NodeSKU) - delete(rawMsg, key) - case "osDisk": - err = unpopulate(val, "OSDisk", &s.OSDisk) - delete(rawMsg, key) - case "osImage": - err = unpopulate(val, "OSImage", &s.OSImage) - delete(rawMsg, key) - case "searchType": - err = unpopulate(val, "SearchType", &s.SearchType) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - } - return nil -} - // MarshalJSON implements the json.Marshaller interface for type ServiceInitiatedSoftwareConfiguration. func (s ServiceInitiatedSoftwareConfiguration) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "bomUrl", s.BomURL) populate(objectMap, "highAvailabilitySoftwareConfiguration", s.HighAvailabilitySoftwareConfiguration) populate(objectMap, "sshPrivateKey", s.SSHPrivateKey) @@ -4509,11 +4174,44 @@ func (s *ServiceInitiatedSoftwareConfiguration) UnmarshalJSON(data []byte) error return nil } +// MarshalJSON implements the json.Marshaller interface for type SharedStorageResourceNames. +func (s SharedStorageResourceNames) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "sharedStorageAccountName", s.SharedStorageAccountName) + populate(objectMap, "sharedStorageAccountPrivateEndPointName", s.SharedStorageAccountPrivateEndPointName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SharedStorageResourceNames. +func (s *SharedStorageResourceNames) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "sharedStorageAccountName": + err = unpopulate(val, "SharedStorageAccountName", &s.SharedStorageAccountName) + delete(rawMsg, key) + case "sharedStorageAccountPrivateEndPointName": + err = unpopulate(val, "SharedStorageAccountPrivateEndPointName", &s.SharedStorageAccountPrivateEndPointName) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type SingleServerConfiguration. func (s SingleServerConfiguration) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "appResourceGroup", s.AppResourceGroup) + populate(objectMap, "customResourceNames", s.CustomResourceNames) populate(objectMap, "databaseType", s.DatabaseType) + populate(objectMap, "dbDiskConfiguration", s.DbDiskConfiguration) objectMap["deploymentType"] = SAPDeploymentTypeSingleServer populate(objectMap, "networkConfiguration", s.NetworkConfiguration) populate(objectMap, "subnetId", s.SubnetID) @@ -4533,9 +4231,15 @@ func (s *SingleServerConfiguration) UnmarshalJSON(data []byte) error { case "appResourceGroup": err = unpopulate(val, "AppResourceGroup", &s.AppResourceGroup) delete(rawMsg, key) + case "customResourceNames": + s.CustomResourceNames, err = unmarshalSingleServerCustomResourceNamesClassification(val) + delete(rawMsg, key) case "databaseType": err = unpopulate(val, "DatabaseType", &s.DatabaseType) delete(rawMsg, key) + case "dbDiskConfiguration": + err = unpopulate(val, "DbDiskConfiguration", &s.DbDiskConfiguration) + delete(rawMsg, key) case "deploymentType": err = unpopulate(val, "DeploymentType", &s.DeploymentType) delete(rawMsg, key) @@ -4556,9 +4260,67 @@ func (s *SingleServerConfiguration) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type SingleServerCustomResourceNames. +func (s SingleServerCustomResourceNames) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + objectMap["namingPatternType"] = s.NamingPatternType + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SingleServerCustomResourceNames. +func (s *SingleServerCustomResourceNames) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "namingPatternType": + err = unpopulate(val, "NamingPatternType", &s.NamingPatternType) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SingleServerFullResourceNames. +func (s SingleServerFullResourceNames) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + objectMap["namingPatternType"] = NamingPatternTypeFullResourceName + populate(objectMap, "virtualMachine", s.VirtualMachine) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SingleServerFullResourceNames. +func (s *SingleServerFullResourceNames) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "namingPatternType": + err = unpopulate(val, "NamingPatternType", &s.NamingPatternType) + delete(rawMsg, key) + case "virtualMachine": + err = unpopulate(val, "VirtualMachine", &s.VirtualMachine) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type SingleServerRecommendationResult. func (s SingleServerRecommendationResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) objectMap["deploymentType"] = SAPDeploymentTypeSingleServer populate(objectMap, "vmSku", s.VMSKU) return json.Marshal(objectMap) @@ -4587,15 +4349,15 @@ func (s *SingleServerRecommendationResult) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type SiteProfile. -func (s SiteProfile) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "domainName", s.DomainName) +// MarshalJSON implements the json.Marshaller interface for type SkipFileShareConfiguration. +func (s SkipFileShareConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + objectMap["configurationType"] = ConfigurationTypeSkip return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type SiteProfile. -func (s *SiteProfile) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type SkipFileShareConfiguration. +func (s *SkipFileShareConfiguration) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage if err := json.Unmarshal(data, &rawMsg); err != nil { return fmt.Errorf("unmarshalling type %T: %v", s, err) @@ -4603,8 +4365,8 @@ func (s *SiteProfile) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "domainName": - err = unpopulate(val, "DomainName", &s.DomainName) + case "configurationType": + err = unpopulate(val, "ConfigurationType", &s.ConfigurationType) delete(rawMsg, key) } if err != nil { @@ -4616,7 +4378,7 @@ func (s *SiteProfile) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SoftwareConfiguration. func (s SoftwareConfiguration) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) objectMap["softwareInstallationType"] = s.SoftwareInstallationType return json.Marshal(objectMap) } @@ -4643,8 +4405,8 @@ func (s *SoftwareConfiguration) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type StopRequest. func (s StopRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "hardStop", s.HardStop) + objectMap := make(map[string]any) + populate(objectMap, "softStopTimeoutSeconds", s.SoftStopTimeoutSeconds) return json.Marshal(objectMap) } @@ -4657,8 +4419,62 @@ func (s *StopRequest) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "hardStop": - err = unpopulate(val, "HardStop", &s.HardStop) + case "softStopTimeoutSeconds": + err = unpopulate(val, "SoftStopTimeoutSeconds", &s.SoftStopTimeoutSeconds) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type StorageConfiguration. +func (s StorageConfiguration) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "transportFileShareConfiguration", s.TransportFileShareConfiguration) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type StorageConfiguration. +func (s *StorageConfiguration) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "transportFileShareConfiguration": + s.TransportFileShareConfiguration, err = unmarshalFileShareConfigurationClassification(val) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type StorageInformation. +func (s StorageInformation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", s.ID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type StorageInformation. +func (s *StorageInformation) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &s.ID) delete(rawMsg, key) } if err != nil { @@ -4670,7 +4486,7 @@ func (s *StopRequest) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SystemData. func (s SystemData) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populateTimeRFC3339(objectMap, "createdAt", s.CreatedAt) populate(objectMap, "createdBy", s.CreatedBy) populate(objectMap, "createdByType", s.CreatedByType) @@ -4717,7 +4533,7 @@ func (s *SystemData) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Tags. func (t Tags) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "tags", t.Tags) return json.Marshal(objectMap) } @@ -4744,14 +4560,16 @@ func (t *Tags) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ThreeTierConfiguration. func (t ThreeTierConfiguration) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "appResourceGroup", t.AppResourceGroup) populate(objectMap, "applicationServer", t.ApplicationServer) populate(objectMap, "centralServer", t.CentralServer) + populate(objectMap, "customResourceNames", t.CustomResourceNames) populate(objectMap, "databaseServer", t.DatabaseServer) objectMap["deploymentType"] = SAPDeploymentTypeThreeTier populate(objectMap, "highAvailabilityConfig", t.HighAvailabilityConfig) populate(objectMap, "networkConfiguration", t.NetworkConfiguration) + populate(objectMap, "storageConfiguration", t.StorageConfiguration) return json.Marshal(objectMap) } @@ -4773,6 +4591,9 @@ func (t *ThreeTierConfiguration) UnmarshalJSON(data []byte) error { case "centralServer": err = unpopulate(val, "CentralServer", &t.CentralServer) delete(rawMsg, key) + case "customResourceNames": + t.CustomResourceNames, err = unmarshalThreeTierCustomResourceNamesClassification(val) + delete(rawMsg, key) case "databaseServer": err = unpopulate(val, "DatabaseServer", &t.DatabaseServer) delete(rawMsg, key) @@ -4785,6 +4606,79 @@ func (t *ThreeTierConfiguration) UnmarshalJSON(data []byte) error { case "networkConfiguration": err = unpopulate(val, "NetworkConfiguration", &t.NetworkConfiguration) delete(rawMsg, key) + case "storageConfiguration": + err = unpopulate(val, "StorageConfiguration", &t.StorageConfiguration) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ThreeTierCustomResourceNames. +func (t ThreeTierCustomResourceNames) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + objectMap["namingPatternType"] = t.NamingPatternType + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ThreeTierCustomResourceNames. +func (t *ThreeTierCustomResourceNames) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "namingPatternType": + err = unpopulate(val, "NamingPatternType", &t.NamingPatternType) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ThreeTierFullResourceNames. +func (t ThreeTierFullResourceNames) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "applicationServer", t.ApplicationServer) + populate(objectMap, "centralServer", t.CentralServer) + populate(objectMap, "databaseServer", t.DatabaseServer) + objectMap["namingPatternType"] = NamingPatternTypeFullResourceName + populate(objectMap, "sharedStorage", t.SharedStorage) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ThreeTierFullResourceNames. +func (t *ThreeTierFullResourceNames) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "applicationServer": + err = unpopulate(val, "ApplicationServer", &t.ApplicationServer) + delete(rawMsg, key) + case "centralServer": + err = unpopulate(val, "CentralServer", &t.CentralServer) + delete(rawMsg, key) + case "databaseServer": + err = unpopulate(val, "DatabaseServer", &t.DatabaseServer) + delete(rawMsg, key) + case "namingPatternType": + err = unpopulate(val, "NamingPatternType", &t.NamingPatternType) + delete(rawMsg, key) + case "sharedStorage": + err = unpopulate(val, "SharedStorage", &t.SharedStorage) + delete(rawMsg, key) } if err != nil { return fmt.Errorf("unmarshalling type %T: %v", t, err) @@ -4795,7 +4689,7 @@ func (t *ThreeTierConfiguration) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ThreeTierRecommendationResult. func (t ThreeTierRecommendationResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "applicationServerInstanceCount", t.ApplicationServerInstanceCount) populate(objectMap, "applicationServerVmSku", t.ApplicationServerVMSKU) populate(objectMap, "centralServerInstanceCount", t.CentralServerInstanceCount) @@ -4846,7 +4740,7 @@ func (t *ThreeTierRecommendationResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TrackedResource. func (t TrackedResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", t.ID) populate(objectMap, "location", t.Location) populate(objectMap, "name", t.Name) @@ -4893,7 +4787,7 @@ func (t *TrackedResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type UpdateMonitorRequest. func (u UpdateMonitorRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "identity", u.Identity) populate(objectMap, "tags", u.Tags) return json.Marshal(objectMap) @@ -4924,7 +4818,7 @@ func (u *UpdateMonitorRequest) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type UpdateSAPApplicationInstanceRequest. func (u UpdateSAPApplicationInstanceRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "tags", u.Tags) return json.Marshal(objectMap) } @@ -4951,7 +4845,7 @@ func (u *UpdateSAPApplicationInstanceRequest) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type UpdateSAPCentralInstanceRequest. func (u UpdateSAPCentralInstanceRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "tags", u.Tags) return json.Marshal(objectMap) } @@ -4978,7 +4872,7 @@ func (u *UpdateSAPCentralInstanceRequest) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type UpdateSAPDatabaseInstanceRequest. func (u UpdateSAPDatabaseInstanceRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "tags", u.Tags) return json.Marshal(objectMap) } @@ -5005,7 +4899,7 @@ func (u *UpdateSAPDatabaseInstanceRequest) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type UpdateSAPVirtualInstanceRequest. func (u UpdateSAPVirtualInstanceRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "identity", u.Identity) populate(objectMap, "tags", u.Tags) return json.Marshal(objectMap) @@ -5036,7 +4930,7 @@ func (u *UpdateSAPVirtualInstanceRequest) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type UserAssignedIdentity. func (u UserAssignedIdentity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "clientId", u.ClientID) populate(objectMap, "principalId", u.PrincipalID) return json.Marshal(objectMap) @@ -5067,7 +4961,7 @@ func (u *UserAssignedIdentity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type UserAssignedServiceIdentity. func (u UserAssignedServiceIdentity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "type", u.Type) populate(objectMap, "userAssignedIdentities", u.UserAssignedIdentities) return json.Marshal(objectMap) @@ -5096,40 +4990,9 @@ func (u *UserAssignedServiceIdentity) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type UserProfile. -func (u UserProfile) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "sshPublicKey", u.SSHPublicKey) - populate(objectMap, "userName", u.UserName) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type UserProfile. -func (u *UserProfile) 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 "sshPublicKey": - err = unpopulate(val, "SSHPublicKey", &u.SSHPublicKey) - delete(rawMsg, key) - case "userName": - err = unpopulate(val, "UserName", &u.UserName) - 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 VirtualMachineConfiguration. func (v VirtualMachineConfiguration) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "imageReference", v.ImageReference) populate(objectMap, "osProfile", v.OSProfile) populate(objectMap, "vmSize", v.VMSize) @@ -5162,22 +5025,19 @@ func (v *VirtualMachineConfiguration) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type VmssNodesProfile. -func (v VmssNodesProfile) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "autoScaleMaxCount", v.AutoScaleMaxCount) - populate(objectMap, "autoScaleMinCount", v.AutoScaleMinCount) - populate(objectMap, "dataDisks", v.DataDisks) - populate(objectMap, "name", v.Name) - populate(objectMap, "nodeResourceIds", v.NodeResourceIDs) - populate(objectMap, "nodeSku", v.NodeSKU) - populate(objectMap, "osDisk", v.OSDisk) - populate(objectMap, "osImage", v.OSImage) +// MarshalJSON implements the json.Marshaller interface for type VirtualMachineResourceNames. +func (v VirtualMachineResourceNames) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "dataDiskNames", v.DataDiskNames) + populate(objectMap, "hostName", v.HostName) + populate(objectMap, "networkInterfaces", v.NetworkInterfaces) + populate(objectMap, "osDiskName", v.OSDiskName) + populate(objectMap, "vmName", v.VMName) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type VmssNodesProfile. -func (v *VmssNodesProfile) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineResourceNames. +func (v *VirtualMachineResourceNames) 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", v, err) @@ -5185,29 +5045,20 @@ func (v *VmssNodesProfile) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "autoScaleMaxCount": - err = unpopulate(val, "AutoScaleMaxCount", &v.AutoScaleMaxCount) - delete(rawMsg, key) - case "autoScaleMinCount": - err = unpopulate(val, "AutoScaleMinCount", &v.AutoScaleMinCount) - delete(rawMsg, key) - case "dataDisks": - err = unpopulate(val, "DataDisks", &v.DataDisks) - delete(rawMsg, key) - case "name": - err = unpopulate(val, "Name", &v.Name) + case "dataDiskNames": + err = unpopulate(val, "DataDiskNames", &v.DataDiskNames) delete(rawMsg, key) - case "nodeResourceIds": - err = unpopulate(val, "NodeResourceIDs", &v.NodeResourceIDs) + case "hostName": + err = unpopulate(val, "HostName", &v.HostName) delete(rawMsg, key) - case "nodeSku": - err = unpopulate(val, "NodeSKU", &v.NodeSKU) + case "networkInterfaces": + err = unpopulate(val, "NetworkInterfaces", &v.NetworkInterfaces) delete(rawMsg, key) - case "osDisk": - err = unpopulate(val, "OSDisk", &v.OSDisk) + case "osDiskName": + err = unpopulate(val, "OSDiskName", &v.OSDiskName) delete(rawMsg, key) - case "osImage": - err = unpopulate(val, "OSImage", &v.OSImage) + case "vmName": + err = unpopulate(val, "VMName", &v.VMName) delete(rawMsg, key) } if err != nil { @@ -5219,7 +5070,7 @@ func (v *VmssNodesProfile) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type WindowsConfiguration. func (w WindowsConfiguration) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) objectMap["osType"] = OSTypeWindows return json.Marshal(objectMap) } @@ -5244,124 +5095,7 @@ func (w *WindowsConfiguration) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type WordpressInstanceResource. -func (w WordpressInstanceResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", w.ID) - populate(objectMap, "name", w.Name) - populate(objectMap, "properties", w.Properties) - populate(objectMap, "systemData", w.SystemData) - populate(objectMap, "type", w.Type) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type WordpressInstanceResource. -func (w *WordpressInstanceResource) 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", w, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "id": - err = unpopulate(val, "ID", &w.ID) - delete(rawMsg, key) - case "name": - err = unpopulate(val, "Name", &w.Name) - delete(rawMsg, key) - case "properties": - err = unpopulate(val, "Properties", &w.Properties) - delete(rawMsg, key) - case "systemData": - err = unpopulate(val, "SystemData", &w.SystemData) - delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &w.Type) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", w, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type WordpressInstanceResourceList. -func (w WordpressInstanceResourceList) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "nextLink", w.NextLink) - populate(objectMap, "value", w.Value) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type WordpressInstanceResourceList. -func (w *WordpressInstanceResourceList) 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", w, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "nextLink": - err = unpopulate(val, "NextLink", &w.NextLink) - delete(rawMsg, key) - case "value": - err = unpopulate(val, "Value", &w.Value) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", w, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type WordpressInstanceResourceProperties. -func (w WordpressInstanceResourceProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "databaseName", w.DatabaseName) - populate(objectMap, "databaseUser", w.DatabaseUser) - populate(objectMap, "provisioningState", w.ProvisioningState) - populate(objectMap, "siteUrl", w.SiteURL) - populate(objectMap, "version", w.Version) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type WordpressInstanceResourceProperties. -func (w *WordpressInstanceResourceProperties) 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", w, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "databaseName": - err = unpopulate(val, "DatabaseName", &w.DatabaseName) - delete(rawMsg, key) - case "databaseUser": - err = unpopulate(val, "DatabaseUser", &w.DatabaseUser) - delete(rawMsg, key) - case "provisioningState": - err = unpopulate(val, "ProvisioningState", &w.ProvisioningState) - delete(rawMsg, key) - case "siteUrl": - err = unpopulate(val, "SiteURL", &w.SiteURL) - delete(rawMsg, key) - case "version": - err = unpopulate(val, "Version", &w.Version) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", w, err) - } - } - return nil -} - -func populate(m map[string]interface{}, k string, v interface{}) { +func populate(m map[string]any, k string, v any) { if v == nil { return } else if azcore.IsNullValue(v) { @@ -5371,7 +5105,7 @@ func populate(m map[string]interface{}, k string, v interface{}) { } } -func unpopulate(data json.RawMessage, fn string, v interface{}) error { +func unpopulate(data json.RawMessage, fn string, v any) error { if data == nil { return nil } diff --git a/sdk/resourcemanager/workloads/armworkloads/monitors_client.go b/sdk/resourcemanager/workloads/armworkloads/monitors_client.go index c60d2be7eea7..54966f777a06 100644 --- a/sdk/resourcemanager/workloads/armworkloads/monitors_client.go +++ b/sdk/resourcemanager/workloads/armworkloads/monitors_client.go @@ -32,9 +32,9 @@ type MonitorsClient struct { } // NewMonitorsClient creates a new instance of MonitorsClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewMonitorsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*MonitorsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,11 +57,12 @@ func NewMonitorsClient(subscriptionID string, credential azcore.TokenCredential, // BeginCreate - Creates a SAP monitor for the specified subscription, resource group, and resource name. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// monitorName - Name of the SAP monitor resource. -// monitorParameter - Request body representing a SAP monitor -// options - MonitorsClientBeginCreateOptions contains the optional parameters for the MonitorsClient.BeginCreate method. +// +// Generated from API version 2022-11-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - monitorName - Name of the SAP monitor resource. +// - monitorParameter - Request body representing a SAP monitor +// - options - MonitorsClientBeginCreateOptions contains the optional parameters for the MonitorsClient.BeginCreate method. func (client *MonitorsClient) BeginCreate(ctx context.Context, resourceGroupName string, monitorName string, monitorParameter Monitor, options *MonitorsClientBeginCreateOptions) (*runtime.Poller[MonitorsClientCreateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.create(ctx, resourceGroupName, monitorName, monitorParameter, options) @@ -78,7 +79,8 @@ func (client *MonitorsClient) BeginCreate(ctx context.Context, resourceGroupName // Create - Creates a SAP monitor for the specified subscription, resource group, and resource name. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01-preview +// +// Generated from API version 2022-11-01-preview func (client *MonitorsClient) create(ctx context.Context, resourceGroupName string, monitorName string, monitorParameter Monitor, options *MonitorsClientBeginCreateOptions) (*http.Response, error) { req, err := client.createCreateRequest(ctx, resourceGroupName, monitorName, monitorParameter, options) if err != nil { @@ -114,7 +116,7 @@ func (client *MonitorsClient) createCreateRequest(ctx context.Context, resourceG return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01-preview") + reqQP.Set("api-version", "2022-11-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, monitorParameter) @@ -122,17 +124,20 @@ func (client *MonitorsClient) createCreateRequest(ctx context.Context, resourceG // BeginDelete - Deletes a SAP monitor with the specified subscription, resource group, and SAP monitor name. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// monitorName - Name of the SAP monitor resource. -// options - MonitorsClientBeginDeleteOptions contains the optional parameters for the MonitorsClient.BeginDelete method. +// +// Generated from API version 2022-11-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - monitorName - Name of the SAP monitor resource. +// - options - MonitorsClientBeginDeleteOptions contains the optional parameters for the MonitorsClient.BeginDelete method. func (client *MonitorsClient) BeginDelete(ctx context.Context, resourceGroupName string, monitorName string, options *MonitorsClientBeginDeleteOptions) (*runtime.Poller[MonitorsClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, monitorName, options) if err != nil { return nil, err } - return runtime.NewPoller[MonitorsClientDeleteResponse](resp, client.pl, nil) + return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[MonitorsClientDeleteResponse]{ + FinalStateVia: runtime.FinalStateViaAzureAsyncOp, + }) } else { return runtime.NewPollerFromResumeToken[MonitorsClientDeleteResponse](options.ResumeToken, client.pl, nil) } @@ -140,7 +145,8 @@ func (client *MonitorsClient) BeginDelete(ctx context.Context, resourceGroupName // Delete - Deletes a SAP monitor with the specified subscription, resource group, and SAP monitor name. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01-preview +// +// Generated from API version 2022-11-01-preview func (client *MonitorsClient) deleteOperation(ctx context.Context, resourceGroupName string, monitorName string, options *MonitorsClientBeginDeleteOptions) (*http.Response, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, monitorName, options) if err != nil { @@ -176,7 +182,7 @@ func (client *MonitorsClient) deleteCreateRequest(ctx context.Context, resourceG return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01-preview") + reqQP.Set("api-version", "2022-11-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -184,10 +190,11 @@ func (client *MonitorsClient) deleteCreateRequest(ctx context.Context, resourceG // Get - Gets properties of a SAP monitor for the specified subscription, resource group, and resource name. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// monitorName - Name of the SAP monitor resource. -// options - MonitorsClientGetOptions contains the optional parameters for the MonitorsClient.Get method. +// +// Generated from API version 2022-11-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - monitorName - Name of the SAP monitor resource. +// - options - MonitorsClientGetOptions contains the optional parameters for the MonitorsClient.Get method. func (client *MonitorsClient) Get(ctx context.Context, resourceGroupName string, monitorName string, options *MonitorsClientGetOptions) (MonitorsClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, monitorName, options) if err != nil { @@ -223,7 +230,7 @@ func (client *MonitorsClient) getCreateRequest(ctx context.Context, resourceGrou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01-preview") + reqQP.Set("api-version", "2022-11-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -240,9 +247,9 @@ func (client *MonitorsClient) getHandleResponse(resp *http.Response) (MonitorsCl // NewListPager - Gets a list of SAP monitors in the specified subscription. The operations returns various properties of // each SAP monitor. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01-preview -// options - MonitorsClientListOptions contains the optional parameters for the MonitorsClient.List method. +// +// Generated from API version 2022-11-01-preview +// - options - MonitorsClientListOptions contains the optional parameters for the MonitorsClient.NewListPager method. func (client *MonitorsClient) NewListPager(options *MonitorsClientListOptions) *runtime.Pager[MonitorsClientListResponse] { return runtime.NewPager(runtime.PagingHandler[MonitorsClientListResponse]{ More: func(page MonitorsClientListResponse) bool { @@ -283,7 +290,7 @@ func (client *MonitorsClient) listCreateRequest(ctx context.Context, options *Mo return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01-preview") + reqQP.Set("api-version", "2022-11-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -299,11 +306,11 @@ func (client *MonitorsClient) listHandleResponse(resp *http.Response) (MonitorsC } // NewListByResourceGroupPager - Gets a list of SAP monitors in the specified resource group. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// options - MonitorsClientListByResourceGroupOptions contains the optional parameters for the MonitorsClient.ListByResourceGroup -// method. +// +// Generated from API version 2022-11-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - options - MonitorsClientListByResourceGroupOptions contains the optional parameters for the MonitorsClient.NewListByResourceGroupPager +// method. func (client *MonitorsClient) NewListByResourceGroupPager(resourceGroupName string, options *MonitorsClientListByResourceGroupOptions) *runtime.Pager[MonitorsClientListByResourceGroupResponse] { return runtime.NewPager(runtime.PagingHandler[MonitorsClientListByResourceGroupResponse]{ More: func(page MonitorsClientListByResourceGroupResponse) bool { @@ -348,7 +355,7 @@ func (client *MonitorsClient) listByResourceGroupCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01-preview") + reqQP.Set("api-version", "2022-11-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -365,11 +372,12 @@ func (client *MonitorsClient) listByResourceGroupHandleResponse(resp *http.Respo // Update - Patches the Tags field of a SAP monitor for the specified subscription, resource group, and SAP monitor name. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// monitorName - Name of the SAP monitor resource. -// body - The Update SAP workload monitor request body. -// options - MonitorsClientUpdateOptions contains the optional parameters for the MonitorsClient.Update method. +// +// Generated from API version 2022-11-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - monitorName - Name of the SAP monitor resource. +// - body - The Update SAP workload monitor request body. +// - options - MonitorsClientUpdateOptions contains the optional parameters for the MonitorsClient.Update method. func (client *MonitorsClient) Update(ctx context.Context, resourceGroupName string, monitorName string, body UpdateMonitorRequest, options *MonitorsClientUpdateOptions) (MonitorsClientUpdateResponse, error) { req, err := client.updateCreateRequest(ctx, resourceGroupName, monitorName, body, options) if err != nil { @@ -405,7 +413,7 @@ func (client *MonitorsClient) updateCreateRequest(ctx context.Context, resourceG return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01-preview") + reqQP.Set("api-version", "2022-11-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, body) diff --git a/sdk/resourcemanager/workloads/armworkloads/monitors_client_example_test.go b/sdk/resourcemanager/workloads/armworkloads/monitors_client_example_test.go index 113b95c9de9f..779c67e8171d 100644 --- a/sdk/resourcemanager/workloads/armworkloads/monitors_client_example_test.go +++ b/sdk/resourcemanager/workloads/armworkloads/monitors_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armworkloads_test @@ -17,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/workloads/armworkloads" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/workloadmonitor/monitors_List.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/workloadmonitor/monitors_List.json func ExampleMonitorsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -30,18 +31,69 @@ func ExampleMonitorsClient_NewListPager() { } pager := client.NewListPager(nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.MonitorListResult = armworkloads.MonitorListResult{ + // Value: []*armworkloads.Monitor{ + // { + // Name: to.Ptr("mySapMonitor1"), + // Type: to.Ptr("Microsoft.Workloads/workloads"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/workloads/mySapMonitor1"), + // Location: to.Ptr("westus"), + // Tags: map[string]*string{ + // "key": to.Ptr("value"), + // }, + // Properties: &armworkloads.MonitorProperties{ + // AppLocation: to.Ptr("eastus"), + // Errors: &armworkloads.MonitorPropertiesErrors{ + // }, + // LogAnalyticsWorkspaceArmID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.operationalinsights/workspaces/myWorkspace"), + // ManagedResourceGroupConfiguration: &armworkloads.ManagedRGConfiguration{ + // Name: to.Ptr("myManagedRg1"), + // }, + // MonitorSubnet: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet"), + // MsiArmID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myMsi"), + // ProvisioningState: to.Ptr(armworkloads.WorkloadMonitorProvisioningStateSucceeded), + // RoutingPreference: to.Ptr(armworkloads.RoutingPreferenceRouteAll), + // StorageAccountArmID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/mystorageaccount"), + // ZoneRedundancyPreference: to.Ptr("ZoneRedundantApp"), + // }, + // }, + // { + // Name: to.Ptr("mySapMonitor2"), + // Type: to.Ptr("Microsoft.Workloads/workloads"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/workloads/mySapMonitor2"), + // Location: to.Ptr("westus"), + // Tags: map[string]*string{ + // "key": to.Ptr("value"), + // }, + // Properties: &armworkloads.MonitorProperties{ + // AppLocation: to.Ptr("westus"), + // Errors: &armworkloads.MonitorPropertiesErrors{ + // }, + // LogAnalyticsWorkspaceArmID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.operationalinsights/workspaces/myWorkspace"), + // ManagedResourceGroupConfiguration: &armworkloads.ManagedRGConfiguration{ + // Name: to.Ptr("myManagedRg2"), + // }, + // MonitorSubnet: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet"), + // MsiArmID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myMsi"), + // ProvisioningState: to.Ptr(armworkloads.WorkloadMonitorProvisioningStateSucceeded), + // RoutingPreference: to.Ptr(armworkloads.RoutingPreferenceDefault), + // StorageAccountArmID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/mystorageaccount"), + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/workloadmonitor/monitors_ListByRG.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/workloadmonitor/monitors_ListByRG.json func ExampleMonitorsClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -52,21 +104,71 @@ func ExampleMonitorsClient_NewListByResourceGroupPager() { if err != nil { log.Fatalf("failed to create client: %v", err) } - pager := client.NewListByResourceGroupPager("example-rg", - nil) + pager := client.NewListByResourceGroupPager("example-rg", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.MonitorListResult = armworkloads.MonitorListResult{ + // Value: []*armworkloads.Monitor{ + // { + // Name: to.Ptr("mySapMonitor1"), + // Type: to.Ptr("Microsoft.Workloads/workloads"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.Workloads/monitors/mySapMonitor1"), + // Location: to.Ptr("westus"), + // Tags: map[string]*string{ + // "key": to.Ptr("value"), + // }, + // Properties: &armworkloads.MonitorProperties{ + // AppLocation: to.Ptr("eastus"), + // Errors: &armworkloads.MonitorPropertiesErrors{ + // }, + // LogAnalyticsWorkspaceArmID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/example-rg/providers/microsoft.operationalinsights/workspaces/myWorkspace"), + // ManagedResourceGroupConfiguration: &armworkloads.ManagedRGConfiguration{ + // Name: to.Ptr("myManagedRg1"), + // }, + // MonitorSubnet: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet"), + // MsiArmID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myMsi"), + // ProvisioningState: to.Ptr(armworkloads.WorkloadMonitorProvisioningStateSucceeded), + // RoutingPreference: to.Ptr(armworkloads.RoutingPreferenceRouteAll), + // StorageAccountArmID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/mystorageaccount"), + // ZoneRedundancyPreference: to.Ptr("ZoneRedundantApp"), + // }, + // }, + // { + // Name: to.Ptr("mySapMonitor2"), + // Type: to.Ptr("Microsoft.Workloads/workloads"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.Workloads/workloads/mySapMonitor2"), + // Location: to.Ptr("westus"), + // Tags: map[string]*string{ + // "key": to.Ptr("value"), + // }, + // Properties: &armworkloads.MonitorProperties{ + // AppLocation: to.Ptr("westus"), + // Errors: &armworkloads.MonitorPropertiesErrors{ + // }, + // LogAnalyticsWorkspaceArmID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/example-rg/providers/microsoft.operationalinsights/workspaces/myWorkspace"), + // ManagedResourceGroupConfiguration: &armworkloads.ManagedRGConfiguration{ + // Name: to.Ptr("myManagedRg2"), + // }, + // MonitorSubnet: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example-rg/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet"), + // MsiArmID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myMsi"), + // ProvisioningState: to.Ptr(armworkloads.WorkloadMonitorProvisioningStateSucceeded), + // RoutingPreference: to.Ptr(armworkloads.RoutingPreferenceDefault), + // StorageAccountArmID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/mystorageaccount"), + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/workloadmonitor/monitors_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/workloadmonitor/monitors_Get.json func ExampleMonitorsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -77,18 +179,48 @@ func ExampleMonitorsClient_Get() { if err != nil { log.Fatalf("failed to create client: %v", err) } - res, err := client.Get(ctx, - "myResourceGroup", - "mySapMonitor", - nil) + res, err := client.Get(ctx, "myResourceGroup", "mySapMonitor", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.Monitor = armworkloads.Monitor{ + // Name: to.Ptr("mySapMonitor1"), + // Type: to.Ptr("Microsoft.Workloads/workloads"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/workloads/mySapMonitor"), + // SystemData: &armworkloads.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // CreatedBy: to.Ptr("user@xyz.com"), + // CreatedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // LastModifiedBy: to.Ptr("user@xyz.com"), + // LastModifiedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // }, + // Location: to.Ptr("westus"), + // Tags: map[string]*string{ + // "key": to.Ptr("value"), + // }, + // Properties: &armworkloads.MonitorProperties{ + // AppLocation: to.Ptr("eastus"), + // Errors: &armworkloads.MonitorPropertiesErrors{ + // }, + // LogAnalyticsWorkspaceArmID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.operationalinsights/workspaces/myWorkspace"), + // ManagedResourceGroupConfiguration: &armworkloads.ManagedRGConfiguration{ + // Name: to.Ptr("myManagedRg"), + // }, + // MonitorSubnet: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet"), + // MsiArmID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myMsi"), + // ProvisioningState: to.Ptr(armworkloads.WorkloadMonitorProvisioningStateSucceeded), + // RoutingPreference: to.Ptr(armworkloads.RoutingPreferenceRouteAll), + // StorageAccountArmID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/mystorageaccount"), + // ZoneRedundancyPreference: to.Ptr("ZoneRedundantApp"), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/workloadmonitor/monitors_Create.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/workloadmonitor/monitors_Create.json func ExampleMonitorsClient_BeginCreate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -99,25 +231,21 @@ func ExampleMonitorsClient_BeginCreate() { if err != nil { log.Fatalf("failed to create client: %v", err) } - poller, err := client.BeginCreate(ctx, - "myResourceGroup", - "mySapMonitor", - armworkloads.Monitor{ - Location: to.Ptr("westus"), - Tags: map[string]*string{ - "key": to.Ptr("value"), - }, - Properties: &armworkloads.MonitorProperties{ - AppLocation: to.Ptr("westus"), - LogAnalyticsWorkspaceArmID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.operationalinsights/workspaces/myWorkspace"), - ManagedResourceGroupConfiguration: &armworkloads.ManagedRGConfiguration{ - Name: to.Ptr("myManagedRg"), - }, - MonitorSubnet: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet"), - RoutingPreference: to.Ptr(armworkloads.RoutingPreferenceRouteAll), + poller, err := client.BeginCreate(ctx, "myResourceGroup", "mySapMonitor", armworkloads.Monitor{ + Location: to.Ptr("westus"), + Tags: map[string]*string{ + "key": to.Ptr("value"), + }, + Properties: &armworkloads.MonitorProperties{ + AppLocation: to.Ptr("westus"), + LogAnalyticsWorkspaceArmID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.operationalinsights/workspaces/myWorkspace"), + ManagedResourceGroupConfiguration: &armworkloads.ManagedRGConfiguration{ + Name: to.Ptr("myManagedRg"), }, + MonitorSubnet: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet"), + RoutingPreference: to.Ptr(armworkloads.RoutingPreferenceRouteAll), }, - nil) + }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } @@ -125,11 +253,44 @@ func ExampleMonitorsClient_BeginCreate() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.Monitor = armworkloads.Monitor{ + // Name: to.Ptr("mySapMonitor"), + // Type: to.Ptr("Microsoft.Workloads/workloads"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/workloads/mySapMonitor"), + // SystemData: &armworkloads.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // CreatedBy: to.Ptr("user@xyz.com"), + // CreatedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // LastModifiedBy: to.Ptr("user@xyz.com"), + // LastModifiedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // }, + // Location: to.Ptr("westus"), + // Tags: map[string]*string{ + // "key": to.Ptr("value"), + // }, + // Properties: &armworkloads.MonitorProperties{ + // AppLocation: to.Ptr("eastus"), + // Errors: &armworkloads.MonitorPropertiesErrors{ + // }, + // LogAnalyticsWorkspaceArmID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.operationalinsights/workspaces/myWorkspace"), + // ManagedResourceGroupConfiguration: &armworkloads.ManagedRGConfiguration{ + // Name: to.Ptr("myManagedRg"), + // }, + // MonitorSubnet: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet"), + // MsiArmID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myMsi"), + // ProvisioningState: to.Ptr(armworkloads.WorkloadMonitorProvisioningStateSucceeded), + // RoutingPreference: to.Ptr(armworkloads.RoutingPreferenceRouteAll), + // StorageAccountArmID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/mystorageaccount"), + // ZoneRedundancyPreference: to.Ptr("ZoneRedundantApp"), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/workloadmonitor/monitors_Delete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/workloadmonitor/monitors_Delete.json func ExampleMonitorsClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -140,10 +301,7 @@ func ExampleMonitorsClient_BeginDelete() { if err != nil { log.Fatalf("failed to create client: %v", err) } - poller, err := client.BeginDelete(ctx, - "myResourceGroup", - "mySapMonitor", - nil) + poller, err := client.BeginDelete(ctx, "myResourceGroup", "mySapMonitor", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } @@ -151,12 +309,20 @@ func ExampleMonitorsClient_BeginDelete() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.OperationStatusResult = armworkloads.OperationStatusResult{ + // Name: to.Ptr("1e4193c3-206e-4916-b124-1da16175eb0f"), + // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T03:38:07.000Z"); return t}()), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/operations/locations/westus/1e4193c3-206e-4916-b124-1da16175eb0f"), + // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T03:36:07.000Z"); return t}()), + // Status: to.Ptr("Succeeded"), + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/workloadmonitor/monitors_PatchTags_Delete.json -func ExampleMonitorsClient_Update() { +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/workloadmonitor/monitors_PatchTags_Delete.json +func ExampleMonitorsClient_Update_deleteTagsFieldOfASapMonitor() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -166,19 +332,113 @@ func ExampleMonitorsClient_Update() { if err != nil { log.Fatalf("failed to create client: %v", err) } - res, err := client.Update(ctx, - "myResourceGroup", - "mySapMonitor", - armworkloads.UpdateMonitorRequest{ - Identity: &armworkloads.UserAssignedServiceIdentity{ - Type: to.Ptr(armworkloads.ManagedServiceIdentityTypeNone), - }, - Tags: map[string]*string{}, + res, err := client.Update(ctx, "myResourceGroup", "mySapMonitor", armworkloads.UpdateMonitorRequest{ + Identity: &armworkloads.UserAssignedServiceIdentity{ + Type: to.Ptr(armworkloads.ManagedServiceIdentityTypeNone), + }, + Tags: map[string]*string{}, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.Monitor = armworkloads.Monitor{ + // Name: to.Ptr("mySapMonitor"), + // Type: to.Ptr("Microsoft.Workloads/workloads"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/workloads/mySapMonitor"), + // SystemData: &armworkloads.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // CreatedBy: to.Ptr("user@xyz.com"), + // CreatedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // LastModifiedBy: to.Ptr("user@xyz.com"), + // LastModifiedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // }, + // Location: to.Ptr("westus"), + // Tags: map[string]*string{ + // "testkey": to.Ptr("testvalue"), + // }, + // Identity: &armworkloads.UserAssignedServiceIdentity{ + // Type: to.Ptr(armworkloads.ManagedServiceIdentityTypeNone), + // }, + // Properties: &armworkloads.MonitorProperties{ + // AppLocation: to.Ptr("eastus"), + // Errors: &armworkloads.MonitorPropertiesErrors{ + // }, + // LogAnalyticsWorkspaceArmID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.operationalinsights/workspaces/myWorkspace"), + // ManagedResourceGroupConfiguration: &armworkloads.ManagedRGConfiguration{ + // Name: to.Ptr("myManagedRg"), + // }, + // MonitorSubnet: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet"), + // MsiArmID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myMsi"), + // ProvisioningState: to.Ptr(armworkloads.WorkloadMonitorProvisioningStateSucceeded), + // RoutingPreference: to.Ptr(armworkloads.RoutingPreferenceRouteAll), + // StorageAccountArmID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/mystorageaccount"), + // ZoneRedundancyPreference: to.Ptr("ZoneRedundantApp"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/workloadmonitor/monitors_PatchTags.json +func ExampleMonitorsClient_Update_updateTagsFieldOfASapMonitor() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armworkloads.NewMonitorsClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Update(ctx, "myResourceGroup", "mySapMonitor", armworkloads.UpdateMonitorRequest{ + Identity: &armworkloads.UserAssignedServiceIdentity{ + Type: to.Ptr(armworkloads.ManagedServiceIdentityTypeNone), + }, + Tags: map[string]*string{ + "testkey": to.Ptr("testvalue"), }, - nil) + }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.Monitor = armworkloads.Monitor{ + // Name: to.Ptr("mySapMonitor"), + // Type: to.Ptr("Microsoft.Workloads/workloads"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/workloads/mySapMonitor"), + // SystemData: &armworkloads.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // CreatedBy: to.Ptr("user@xyz.com"), + // CreatedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // LastModifiedBy: to.Ptr("user@xyz.com"), + // LastModifiedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // }, + // Location: to.Ptr("westus"), + // Tags: map[string]*string{ + // "testkey": to.Ptr("testvalue"), + // }, + // Identity: &armworkloads.UserAssignedServiceIdentity{ + // Type: to.Ptr(armworkloads.ManagedServiceIdentityTypeNone), + // }, + // Properties: &armworkloads.MonitorProperties{ + // AppLocation: to.Ptr("eastus"), + // Errors: &armworkloads.MonitorPropertiesErrors{ + // }, + // LogAnalyticsWorkspaceArmID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.operationalinsights/workspaces/myWorkspace"), + // ManagedResourceGroupConfiguration: &armworkloads.ManagedRGConfiguration{ + // Name: to.Ptr("myManagedRg"), + // }, + // MonitorSubnet: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet"), + // MsiArmID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myMsi"), + // ProvisioningState: to.Ptr(armworkloads.WorkloadMonitorProvisioningStateSucceeded), + // RoutingPreference: to.Ptr(armworkloads.RoutingPreferenceRouteAll), + // StorageAccountArmID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/mystorageaccount"), + // ZoneRedundancyPreference: to.Ptr("ZoneRedundantApp"), + // }, + // } } diff --git a/sdk/resourcemanager/workloads/armworkloads/operations_client.go b/sdk/resourcemanager/workloads/armworkloads/operations_client.go index 1d9139eae17f..0c5a58e3e09c 100644 --- a/sdk/resourcemanager/workloads/armworkloads/operations_client.go +++ b/sdk/resourcemanager/workloads/armworkloads/operations_client.go @@ -28,8 +28,8 @@ type OperationsClient struct { } // NewOperationsClient creates a new instance of OperationsClient with the specified values. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*OperationsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -50,9 +50,9 @@ func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientO } // NewListPager - Lists all the available API operations under this PR -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01-preview -// options - OperationsClientListOptions contains the optional parameters for the OperationsClient.List method. +// +// Generated from API version 2022-11-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]{ More: func(page OperationsClientListResponse) bool { @@ -89,7 +89,7 @@ func (client *OperationsClient) listCreateRequest(ctx context.Context, options * return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01-preview") + reqQP.Set("api-version", "2022-11-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/workloads/armworkloads/operations_client_example_test.go b/sdk/resourcemanager/workloads/armworkloads/operations_client_example_test.go index ff7705d5c349..184ff285cb11 100644 --- a/sdk/resourcemanager/workloads/armworkloads/operations_client_example_test.go +++ b/sdk/resourcemanager/workloads/armworkloads/operations_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armworkloads_test @@ -16,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/workloads/armworkloads" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/Operations_List.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/Operations_List.json func ExampleOperationsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -29,13 +30,95 @@ func ExampleOperationsClient_NewListPager() { } pager := client.NewListPager(nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.OperationListResult = armworkloads.OperationListResult{ + // Value: []*armworkloads.Operation{ + // { + // Name: to.Ptr("Microsoft.Workloads/phpWorkloads/Write"), + // Display: &armworkloads.OperationDisplay{ + // Description: to.Ptr("Set phpWorkloads"), + // Operation: to.Ptr("Creates or updates the phpWorkloads"), + // Provider: to.Ptr("Microsoft.Workloads"), + // Resource: to.Ptr("phpWorkloads"), + // }, + // IsDataAction: to.Ptr(false), + // }, + // { + // Name: to.Ptr("Microsoft.Workloads/phpWorkloads/Delete"), + // Display: &armworkloads.OperationDisplay{ + // Description: to.Ptr("Delete phpWorkloads"), + // Operation: to.Ptr("Deletes the phpWorkloads"), + // Provider: to.Ptr("Microsoft.Workloads"), + // Resource: to.Ptr("phpWorkloads"), + // }, + // IsDataAction: to.Ptr(false), + // }, + // { + // Name: to.Ptr("Microsoft.Workloads/phpWorkloads/Read"), + // Display: &armworkloads.OperationDisplay{ + // Description: to.Ptr("Read phpWorkloads"), + // Operation: to.Ptr("Reads the phpWorkloads"), + // Provider: to.Ptr("Microsoft.Workloads"), + // Resource: to.Ptr("phpWorkloads"), + // }, + // IsDataAction: to.Ptr(false), + // }, + // { + // Name: to.Ptr("Microsoft.Workloads/phpWorkloads/wordpressInstances/Write"), + // Display: &armworkloads.OperationDisplay{ + // Description: to.Ptr("Set wordpressInstances"), + // Operation: to.Ptr("Creates or updates the wordpressInstances"), + // Provider: to.Ptr("Microsoft.Workloads"), + // Resource: to.Ptr("wordpressInstances"), + // }, + // IsDataAction: to.Ptr(false), + // }, + // { + // Name: to.Ptr("Microsoft.Workloads/phpWorkloads/wordpressInstances/Delete"), + // Display: &armworkloads.OperationDisplay{ + // Description: to.Ptr("Delete wordpressInstances"), + // Operation: to.Ptr("Deletes the wordpressInstances"), + // Provider: to.Ptr("Microsoft.Workloads"), + // Resource: to.Ptr("wordpressInstances"), + // }, + // IsDataAction: to.Ptr(false), + // }, + // { + // Name: to.Ptr("Microsoft.Workloads/phpWorkloads/wordpressInstances/Read"), + // Display: &armworkloads.OperationDisplay{ + // Description: to.Ptr("Read wordpressInstances"), + // Operation: to.Ptr("Reads the wordpressInstances"), + // Provider: to.Ptr("Microsoft.Workloads"), + // Resource: to.Ptr("wordpressInstances"), + // }, + // IsDataAction: to.Ptr(false), + // }, + // { + // Name: to.Ptr("Microsoft.Workloads/monitors/Read"), + // Display: &armworkloads.OperationDisplay{ + // Description: to.Ptr("Reads the Monitor workload."), + // Operation: to.Ptr("Read"), + // Provider: to.Ptr("Microsoft.Workloads"), + // Resource: to.Ptr("Microsoft.Workloads/monitors"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.Workloads/monitors/Write"), + // Display: &armworkloads.OperationDisplay{ + // Description: to.Ptr("Creates or updates a Monitor workload."), + // Operation: to.Ptr("Read"), + // Provider: to.Ptr("Microsoft.Workloads"), + // Resource: to.Ptr("Microsoft.Workloads/monitors"), + // }, + // }}, + // } } } diff --git a/sdk/resourcemanager/workloads/armworkloads/phpworkloads_client.go b/sdk/resourcemanager/workloads/armworkloads/phpworkloads_client.go deleted file mode 100644 index b7cd69fd3f96..000000000000 --- a/sdk/resourcemanager/workloads/armworkloads/phpworkloads_client.go +++ /dev/null @@ -1,428 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armworkloads - -import ( - "context" - "errors" - "github.com/Azure/azure-sdk-for-go/sdk/azcore" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" - "net/http" - "net/url" - "strings" -) - -// PhpWorkloadsClient contains the methods for the PhpWorkloads group. -// Don't use this type directly, use NewPhpWorkloadsClient() instead. -type PhpWorkloadsClient struct { - host string - subscriptionID string - pl runtime.Pipeline -} - -// NewPhpWorkloadsClient creates a new instance of PhpWorkloadsClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. -func NewPhpWorkloadsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PhpWorkloadsClient, error) { - if options == nil { - options = &arm.ClientOptions{} - } - ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint - if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { - ep = c.Endpoint - } - pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) - if err != nil { - return nil, err - } - client := &PhpWorkloadsClient{ - subscriptionID: subscriptionID, - host: ep, - pl: pl, - } - return client, nil -} - -// BeginCreateOrUpdate - Create or updated PHP workload resource. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// phpWorkloadName - Php workload name -// phpWorkloadResource - Resource create or update request payload -// options - PhpWorkloadsClientBeginCreateOrUpdateOptions contains the optional parameters for the PhpWorkloadsClient.BeginCreateOrUpdate -// method. -func (client *PhpWorkloadsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, phpWorkloadName string, phpWorkloadResource PhpWorkloadResource, options *PhpWorkloadsClientBeginCreateOrUpdateOptions) (*runtime.Poller[PhpWorkloadsClientCreateOrUpdateResponse], error) { - if options == nil || options.ResumeToken == "" { - resp, err := client.createOrUpdate(ctx, resourceGroupName, phpWorkloadName, phpWorkloadResource, options) - if err != nil { - return nil, err - } - return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[PhpWorkloadsClientCreateOrUpdateResponse]{ - FinalStateVia: runtime.FinalStateViaAzureAsyncOp, - }) - } else { - return runtime.NewPollerFromResumeToken[PhpWorkloadsClientCreateOrUpdateResponse](options.ResumeToken, client.pl, nil) - } -} - -// CreateOrUpdate - Create or updated PHP workload resource. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01-preview -func (client *PhpWorkloadsClient) createOrUpdate(ctx context.Context, resourceGroupName string, phpWorkloadName string, phpWorkloadResource PhpWorkloadResource, options *PhpWorkloadsClientBeginCreateOrUpdateOptions) (*http.Response, error) { - req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, phpWorkloadName, phpWorkloadResource, options) - if err != nil { - return nil, err - } - resp, err := client.pl.Do(req) - if err != nil { - return nil, err - } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusCreated) { - return nil, runtime.NewResponseError(resp) - } - return resp, nil -} - -// createOrUpdateCreateRequest creates the CreateOrUpdate request. -func (client *PhpWorkloadsClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, phpWorkloadName string, phpWorkloadResource PhpWorkloadResource, options *PhpWorkloadsClientBeginCreateOrUpdateOptions) (*policy.Request, error) { - urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Workloads/phpWorkloads/{phpWorkloadName}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - if resourceGroupName == "" { - return nil, errors.New("parameter resourceGroupName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) - if phpWorkloadName == "" { - return nil, errors.New("parameter phpWorkloadName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{phpWorkloadName}", url.PathEscape(phpWorkloadName)) - req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath)) - if err != nil { - return nil, err - } - reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01-preview") - req.Raw().URL.RawQuery = reqQP.Encode() - req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, phpWorkloadResource) -} - -// BeginDelete - Delete PHP workload resource. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// phpWorkloadName - Php workload name -// options - PhpWorkloadsClientBeginDeleteOptions contains the optional parameters for the PhpWorkloadsClient.BeginDelete -// method. -func (client *PhpWorkloadsClient) BeginDelete(ctx context.Context, resourceGroupName string, phpWorkloadName string, options *PhpWorkloadsClientBeginDeleteOptions) (*runtime.Poller[PhpWorkloadsClientDeleteResponse], error) { - if options == nil || options.ResumeToken == "" { - resp, err := client.deleteOperation(ctx, resourceGroupName, phpWorkloadName, options) - if err != nil { - return nil, err - } - return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[PhpWorkloadsClientDeleteResponse]{ - FinalStateVia: runtime.FinalStateViaLocation, - }) - } else { - return runtime.NewPollerFromResumeToken[PhpWorkloadsClientDeleteResponse](options.ResumeToken, client.pl, nil) - } -} - -// Delete - Delete PHP workload resource. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01-preview -func (client *PhpWorkloadsClient) deleteOperation(ctx context.Context, resourceGroupName string, phpWorkloadName string, options *PhpWorkloadsClientBeginDeleteOptions) (*http.Response, error) { - req, err := client.deleteCreateRequest(ctx, resourceGroupName, phpWorkloadName, options) - if err != nil { - return nil, err - } - resp, err := client.pl.Do(req) - if err != nil { - return nil, err - } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { - return nil, runtime.NewResponseError(resp) - } - return resp, nil -} - -// deleteCreateRequest creates the Delete request. -func (client *PhpWorkloadsClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, phpWorkloadName string, options *PhpWorkloadsClientBeginDeleteOptions) (*policy.Request, error) { - urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Workloads/phpWorkloads/{phpWorkloadName}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - if resourceGroupName == "" { - return nil, errors.New("parameter resourceGroupName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) - if phpWorkloadName == "" { - return nil, errors.New("parameter phpWorkloadName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{phpWorkloadName}", url.PathEscape(phpWorkloadName)) - req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath)) - if err != nil { - return nil, err - } - reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01-preview") - if options != nil && options.DeleteInfra != nil { - reqQP.Set("delete-infra", *options.DeleteInfra) - } - req.Raw().URL.RawQuery = reqQP.Encode() - req.Raw().Header["Accept"] = []string{"application/json"} - return req, nil -} - -// Get - Gets the PHP workload resource. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// phpWorkloadName - Php workload name -// options - PhpWorkloadsClientGetOptions contains the optional parameters for the PhpWorkloadsClient.Get method. -func (client *PhpWorkloadsClient) Get(ctx context.Context, resourceGroupName string, phpWorkloadName string, options *PhpWorkloadsClientGetOptions) (PhpWorkloadsClientGetResponse, error) { - req, err := client.getCreateRequest(ctx, resourceGroupName, phpWorkloadName, options) - if err != nil { - return PhpWorkloadsClientGetResponse{}, err - } - resp, err := client.pl.Do(req) - if err != nil { - return PhpWorkloadsClientGetResponse{}, err - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return PhpWorkloadsClientGetResponse{}, runtime.NewResponseError(resp) - } - return client.getHandleResponse(resp) -} - -// getCreateRequest creates the Get request. -func (client *PhpWorkloadsClient) getCreateRequest(ctx context.Context, resourceGroupName string, phpWorkloadName string, options *PhpWorkloadsClientGetOptions) (*policy.Request, error) { - urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Workloads/phpWorkloads/{phpWorkloadName}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - if resourceGroupName == "" { - return nil, errors.New("parameter resourceGroupName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) - if phpWorkloadName == "" { - return nil, errors.New("parameter phpWorkloadName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{phpWorkloadName}", url.PathEscape(phpWorkloadName)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) - if err != nil { - return nil, err - } - reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01-preview") - req.Raw().URL.RawQuery = reqQP.Encode() - req.Raw().Header["Accept"] = []string{"application/json"} - return req, nil -} - -// getHandleResponse handles the Get response. -func (client *PhpWorkloadsClient) getHandleResponse(resp *http.Response) (PhpWorkloadsClientGetResponse, error) { - result := PhpWorkloadsClientGetResponse{} - if err := runtime.UnmarshalAsJSON(resp, &result.PhpWorkloadResource); err != nil { - return PhpWorkloadsClientGetResponse{}, err - } - return result, nil -} - -// NewListByResourceGroupPager - Lists PHP workload resources in a resource group. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// options - PhpWorkloadsClientListByResourceGroupOptions contains the optional parameters for the PhpWorkloadsClient.ListByResourceGroup -// method. -func (client *PhpWorkloadsClient) NewListByResourceGroupPager(resourceGroupName string, options *PhpWorkloadsClientListByResourceGroupOptions) *runtime.Pager[PhpWorkloadsClientListByResourceGroupResponse] { - return runtime.NewPager(runtime.PagingHandler[PhpWorkloadsClientListByResourceGroupResponse]{ - More: func(page PhpWorkloadsClientListByResourceGroupResponse) bool { - return page.NextLink != nil && len(*page.NextLink) > 0 - }, - Fetcher: func(ctx context.Context, page *PhpWorkloadsClientListByResourceGroupResponse) (PhpWorkloadsClientListByResourceGroupResponse, error) { - var req *policy.Request - var err error - if page == nil { - req, err = client.listByResourceGroupCreateRequest(ctx, resourceGroupName, options) - } else { - req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) - } - if err != nil { - return PhpWorkloadsClientListByResourceGroupResponse{}, err - } - resp, err := client.pl.Do(req) - if err != nil { - return PhpWorkloadsClientListByResourceGroupResponse{}, err - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return PhpWorkloadsClientListByResourceGroupResponse{}, runtime.NewResponseError(resp) - } - return client.listByResourceGroupHandleResponse(resp) - }, - }) -} - -// listByResourceGroupCreateRequest creates the ListByResourceGroup request. -func (client *PhpWorkloadsClient) listByResourceGroupCreateRequest(ctx context.Context, resourceGroupName string, options *PhpWorkloadsClientListByResourceGroupOptions) (*policy.Request, error) { - urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Workloads/phpWorkloads" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - if resourceGroupName == "" { - return nil, errors.New("parameter resourceGroupName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) - if err != nil { - return nil, err - } - reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01-preview") - req.Raw().URL.RawQuery = reqQP.Encode() - req.Raw().Header["Accept"] = []string{"application/json"} - return req, nil -} - -// listByResourceGroupHandleResponse handles the ListByResourceGroup response. -func (client *PhpWorkloadsClient) listByResourceGroupHandleResponse(resp *http.Response) (PhpWorkloadsClientListByResourceGroupResponse, error) { - result := PhpWorkloadsClientListByResourceGroupResponse{} - if err := runtime.UnmarshalAsJSON(resp, &result.PhpWorkloadResourceList); err != nil { - return PhpWorkloadsClientListByResourceGroupResponse{}, err - } - return result, nil -} - -// NewListBySubscriptionPager - Lists PHP workload resources for a subscription. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01-preview -// options - PhpWorkloadsClientListBySubscriptionOptions contains the optional parameters for the PhpWorkloadsClient.ListBySubscription -// method. -func (client *PhpWorkloadsClient) NewListBySubscriptionPager(options *PhpWorkloadsClientListBySubscriptionOptions) *runtime.Pager[PhpWorkloadsClientListBySubscriptionResponse] { - return runtime.NewPager(runtime.PagingHandler[PhpWorkloadsClientListBySubscriptionResponse]{ - More: func(page PhpWorkloadsClientListBySubscriptionResponse) bool { - return page.NextLink != nil && len(*page.NextLink) > 0 - }, - Fetcher: func(ctx context.Context, page *PhpWorkloadsClientListBySubscriptionResponse) (PhpWorkloadsClientListBySubscriptionResponse, error) { - var req *policy.Request - var err error - if page == nil { - req, err = client.listBySubscriptionCreateRequest(ctx, options) - } else { - req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) - } - if err != nil { - return PhpWorkloadsClientListBySubscriptionResponse{}, err - } - resp, err := client.pl.Do(req) - if err != nil { - return PhpWorkloadsClientListBySubscriptionResponse{}, err - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return PhpWorkloadsClientListBySubscriptionResponse{}, runtime.NewResponseError(resp) - } - return client.listBySubscriptionHandleResponse(resp) - }, - }) -} - -// listBySubscriptionCreateRequest creates the ListBySubscription request. -func (client *PhpWorkloadsClient) listBySubscriptionCreateRequest(ctx context.Context, options *PhpWorkloadsClientListBySubscriptionOptions) (*policy.Request, error) { - urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Workloads/phpWorkloads" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) - if err != nil { - return nil, err - } - reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01-preview") - req.Raw().URL.RawQuery = reqQP.Encode() - req.Raw().Header["Accept"] = []string{"application/json"} - return req, nil -} - -// listBySubscriptionHandleResponse handles the ListBySubscription response. -func (client *PhpWorkloadsClient) listBySubscriptionHandleResponse(resp *http.Response) (PhpWorkloadsClientListBySubscriptionResponse, error) { - result := PhpWorkloadsClientListBySubscriptionResponse{} - if err := runtime.UnmarshalAsJSON(resp, &result.PhpWorkloadResourceList); err != nil { - return PhpWorkloadsClientListBySubscriptionResponse{}, err - } - return result, nil -} - -// Update - Update PHP workload resource. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// phpWorkloadName - Php workload name -// resourcePatchRequestBody - Workload resource update data -// options - PhpWorkloadsClientUpdateOptions contains the optional parameters for the PhpWorkloadsClient.Update method. -func (client *PhpWorkloadsClient) Update(ctx context.Context, resourceGroupName string, phpWorkloadName string, resourcePatchRequestBody PatchResourceRequestBody, options *PhpWorkloadsClientUpdateOptions) (PhpWorkloadsClientUpdateResponse, error) { - req, err := client.updateCreateRequest(ctx, resourceGroupName, phpWorkloadName, resourcePatchRequestBody, options) - if err != nil { - return PhpWorkloadsClientUpdateResponse{}, err - } - resp, err := client.pl.Do(req) - if err != nil { - return PhpWorkloadsClientUpdateResponse{}, err - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return PhpWorkloadsClientUpdateResponse{}, runtime.NewResponseError(resp) - } - return client.updateHandleResponse(resp) -} - -// updateCreateRequest creates the Update request. -func (client *PhpWorkloadsClient) updateCreateRequest(ctx context.Context, resourceGroupName string, phpWorkloadName string, resourcePatchRequestBody PatchResourceRequestBody, options *PhpWorkloadsClientUpdateOptions) (*policy.Request, error) { - urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Workloads/phpWorkloads/{phpWorkloadName}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - if resourceGroupName == "" { - return nil, errors.New("parameter resourceGroupName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) - if phpWorkloadName == "" { - return nil, errors.New("parameter phpWorkloadName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{phpWorkloadName}", url.PathEscape(phpWorkloadName)) - req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.host, urlPath)) - if err != nil { - return nil, err - } - reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01-preview") - req.Raw().URL.RawQuery = reqQP.Encode() - req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, resourcePatchRequestBody) -} - -// updateHandleResponse handles the Update response. -func (client *PhpWorkloadsClient) updateHandleResponse(resp *http.Response) (PhpWorkloadsClientUpdateResponse, error) { - result := PhpWorkloadsClientUpdateResponse{} - if err := runtime.UnmarshalAsJSON(resp, &result.PhpWorkloadResource); err != nil { - return PhpWorkloadsClientUpdateResponse{}, err - } - return result, nil -} diff --git a/sdk/resourcemanager/workloads/armworkloads/phpworkloads_client_example_test.go b/sdk/resourcemanager/workloads/armworkloads/phpworkloads_client_example_test.go deleted file mode 100644 index 613c8a642ef4..000000000000 --- a/sdk/resourcemanager/workloads/armworkloads/phpworkloads_client_example_test.go +++ /dev/null @@ -1,271 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armworkloads_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/workloads/armworkloads" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/phpworkloads/PhpWorkloads_ListBySubscription.json -func ExamplePhpWorkloadsClient_NewListBySubscriptionPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armworkloads.NewPhpWorkloadsClient("8e17e36c-42e9-4cd5-a078-7b44883414e0", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListBySubscriptionPager(nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/phpworkloads/PhpWorkloads_ListByResourceGroup.json -func ExamplePhpWorkloadsClient_NewListByResourceGroupPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armworkloads.NewPhpWorkloadsClient("8e17e36c-42e9-4cd5-a078-7b44883414e0", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListByResourceGroupPager("test-rg", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/phpworkloads/PhpWorkloads_Get.json -func ExamplePhpWorkloadsClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armworkloads.NewPhpWorkloadsClient("8e17e36c-42e9-4cd5-a078-7b44883414e0", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "test-rg", - "wp39", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/phpworkloads/PhpWorkloads_CreateOrUpdate.json -func ExamplePhpWorkloadsClient_BeginCreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armworkloads.NewPhpWorkloadsClient("8e17e36c-42e9-4cd5-a078-7b44883414e0", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginCreateOrUpdate(ctx, - "test-rg", - "wp39", - armworkloads.PhpWorkloadResource{ - Location: to.Ptr("eastus2"), - Tags: map[string]*string{}, - Kind: to.Ptr(armworkloads.WorkloadKindWordPress), - Properties: &armworkloads.PhpWorkloadResourceProperties{ - AdminUserProfile: &armworkloads.UserProfile{ - SSHPublicKey: to.Ptr("===SSH=PUBLIC=KEY==="), - UserName: to.Ptr("wpadmin"), - }, - AppLocation: to.Ptr("eastus"), - BackupProfile: &armworkloads.BackupProfile{ - BackupEnabled: to.Ptr(armworkloads.EnableBackupDisabled), - }, - CacheProfile: &armworkloads.CacheProfile{ - Name: to.Ptr("wp-cache"), - Capacity: to.Ptr[int64](0), - Family: to.Ptr(armworkloads.RedisCacheFamilyC), - SKUName: to.Ptr("Basic"), - }, - ControllerProfile: &armworkloads.NodeProfile{ - Name: to.Ptr("contoller-vm"), - DataDisks: []*armworkloads.DiskInfo{ - { - SizeInGB: to.Ptr[int64](100), - StorageType: to.Ptr(armworkloads.DiskStorageTypePremiumLRS), - }}, - NodeSKU: to.Ptr("Standard_DS2_v2"), - OSDisk: &armworkloads.DiskInfo{ - StorageType: to.Ptr(armworkloads.DiskStorageTypePremiumLRS), - }, - OSImage: &armworkloads.OsImageProfile{ - Offer: to.Ptr(armworkloads.OSImageOfferUbuntuServer), - Publisher: to.Ptr(armworkloads.OSImagePublisherCanonical), - SKU: to.Ptr(armworkloads.OSImageSKU("18.0-LTS")), - Version: to.Ptr(armworkloads.OSImageVersionLatest), - }, - }, - DatabaseProfile: &armworkloads.DatabaseProfile{ - Type: to.Ptr(armworkloads.DatabaseTypeMySQL), - BackupRetentionDays: to.Ptr[int32](7), - HaEnabled: to.Ptr(armworkloads.HAEnabledDisabled), - ServerName: to.Ptr("wp-db-server"), - SKU: to.Ptr("Standard_D32s_v4"), - SSLEnforcementEnabled: to.Ptr(armworkloads.EnableSSLEnforcementEnabled), - StorageInGB: to.Ptr[int64](128), - StorageIops: to.Ptr[int64](200), - StorageSKU: to.Ptr("Premium_LRS"), - Tier: to.Ptr(armworkloads.DatabaseTierGeneralPurpose), - Version: to.Ptr("5.7"), - }, - FileshareProfile: &armworkloads.FileshareProfile{ - ShareSizeInGB: to.Ptr[int64](100), - ShareType: to.Ptr(armworkloads.FileShareTypeAzureFiles), - StorageType: to.Ptr(armworkloads.FileShareStorageTypePremiumLRS), - }, - ManagedResourceGroupConfiguration: &armworkloads.ManagedRGConfiguration{ - Name: to.Ptr("php-mrg-wp39"), - }, - NetworkProfile: &armworkloads.NetworkProfile{ - AzureFrontDoorEnabled: to.Ptr(armworkloads.AzureFrontDoorEnabledEnabled), - LoadBalancerSKU: to.Ptr("Standard"), - LoadBalancerType: to.Ptr(armworkloads.LoadBalancerTypeLoadBalancer), - }, - PhpProfile: &armworkloads.PhpProfile{ - Version: to.Ptr(armworkloads.PHPVersionSeven3), - }, - SearchProfile: &armworkloads.SearchProfile{ - NodeSKU: to.Ptr("Standard_DS2_v2"), - OSDisk: &armworkloads.DiskInfo{ - StorageType: to.Ptr(armworkloads.DiskStorageTypePremiumLRS), - }, - OSImage: &armworkloads.OsImageProfile{ - Offer: to.Ptr(armworkloads.OSImageOfferUbuntuServer), - Publisher: to.Ptr(armworkloads.OSImagePublisherCanonical), - SKU: to.Ptr(armworkloads.OSImageSKU("18.0-LTS")), - Version: to.Ptr(armworkloads.OSImageVersionLatest), - }, - SearchType: to.Ptr(armworkloads.SearchTypeElastic), - }, - SiteProfile: &armworkloads.SiteProfile{ - DomainName: to.Ptr("www.example.com"), - }, - WebNodesProfile: &armworkloads.VmssNodesProfile{ - Name: to.Ptr("web-server"), - NodeSKU: to.Ptr("Standard_DS2_v2"), - OSDisk: &armworkloads.DiskInfo{ - StorageType: to.Ptr(armworkloads.DiskStorageTypePremiumLRS), - }, - OSImage: &armworkloads.OsImageProfile{ - Offer: to.Ptr(armworkloads.OSImageOfferUbuntuServer), - Publisher: to.Ptr(armworkloads.OSImagePublisherCanonical), - SKU: to.Ptr(armworkloads.OSImageSKU("18.0-LTS")), - Version: to.Ptr(armworkloads.OSImageVersionLatest), - }, - AutoScaleMaxCount: to.Ptr[int32](1), - AutoScaleMinCount: to.Ptr[int32](1), - }, - }, - SKU: &armworkloads.SKU{ - Name: to.Ptr("Large"), - }, - }, - 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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/phpworkloads/PhpWorkloads_Update.json -func ExamplePhpWorkloadsClient_Update() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armworkloads.NewPhpWorkloadsClient("8e17e36c-42e9-4cd5-a078-7b44883414e0", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Update(ctx, - "test-rg", - "wp39", - armworkloads.PatchResourceRequestBody{ - Identity: &armworkloads.PatchResourceRequestBodyIdentity{ - Type: to.Ptr(armworkloads.ManagedServiceIdentityTypeNone), - }, - Tags: map[string]*string{ - "tag_name": to.Ptr("tag_value"), - }, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/phpworkloads/PhpWorkloads_Delete.json -func ExamplePhpWorkloadsClient_BeginDelete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armworkloads.NewPhpWorkloadsClient("8e17e36c-42e9-4cd5-a078-7b44883414e0", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginDelete(ctx, - "test-rg", - "wp39", - &armworkloads.PhpWorkloadsClientBeginDeleteOptions{DeleteInfra: to.Ptr("false")}) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} diff --git a/sdk/resourcemanager/workloads/armworkloads/polymorphic_helpers.go b/sdk/resourcemanager/workloads/armworkloads/polymorphic_helpers.go index 147d91511eeb..b61f7ff5b706 100644 --- a/sdk/resourcemanager/workloads/armworkloads/polymorphic_helpers.go +++ b/sdk/resourcemanager/workloads/armworkloads/polymorphic_helpers.go @@ -11,11 +11,33 @@ package armworkloads import "encoding/json" +func unmarshalFileShareConfigurationClassification(rawMsg json.RawMessage) (FileShareConfigurationClassification, error) { + if rawMsg == nil { + return nil, nil + } + var m map[string]any + if err := json.Unmarshal(rawMsg, &m); err != nil { + return nil, err + } + var b FileShareConfigurationClassification + switch m["configurationType"] { + case string(ConfigurationTypeCreateAndMount): + b = &CreateAndMountFileShareConfiguration{} + case string(ConfigurationTypeMount): + b = &MountFileShareConfiguration{} + case string(ConfigurationTypeSkip): + b = &SkipFileShareConfiguration{} + default: + b = &FileShareConfiguration{} + } + return b, json.Unmarshal(rawMsg, b) +} + func unmarshalInfrastructureConfigurationClassification(rawMsg json.RawMessage) (InfrastructureConfigurationClassification, error) { if rawMsg == nil { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } @@ -35,7 +57,7 @@ func unmarshalOSConfigurationClassification(rawMsg json.RawMessage) (OSConfigura if rawMsg == nil { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } @@ -55,7 +77,7 @@ func unmarshalProviderSpecificPropertiesClassification(rawMsg json.RawMessage) ( if rawMsg == nil { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } @@ -83,7 +105,7 @@ func unmarshalSAPConfigurationClassification(rawMsg json.RawMessage) (SAPConfigu if rawMsg == nil { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } @@ -105,7 +127,7 @@ func unmarshalSAPSizingRecommendationResultClassification(rawMsg json.RawMessage if rawMsg == nil { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } @@ -121,16 +143,36 @@ func unmarshalSAPSizingRecommendationResultClassification(rawMsg json.RawMessage return b, json.Unmarshal(rawMsg, b) } +func unmarshalSingleServerCustomResourceNamesClassification(rawMsg json.RawMessage) (SingleServerCustomResourceNamesClassification, error) { + if rawMsg == nil { + return nil, nil + } + var m map[string]any + if err := json.Unmarshal(rawMsg, &m); err != nil { + return nil, err + } + var b SingleServerCustomResourceNamesClassification + switch m["namingPatternType"] { + case string(NamingPatternTypeFullResourceName): + b = &SingleServerFullResourceNames{} + default: + b = &SingleServerCustomResourceNames{} + } + return b, json.Unmarshal(rawMsg, b) +} + func unmarshalSoftwareConfigurationClassification(rawMsg json.RawMessage) (SoftwareConfigurationClassification, error) { if rawMsg == nil { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } var b SoftwareConfigurationClassification switch m["softwareInstallationType"] { + case string(SAPSoftwareInstallationTypeExternal): + b = &ExternalInstallationSoftwareConfiguration{} case string(SAPSoftwareInstallationTypeSAPInstallWithoutOSConfig): b = &SAPInstallWithoutOSConfigSoftwareConfiguration{} case string(SAPSoftwareInstallationTypeServiceInitiated): @@ -140,3 +182,21 @@ func unmarshalSoftwareConfigurationClassification(rawMsg json.RawMessage) (Softw } return b, json.Unmarshal(rawMsg, b) } + +func unmarshalThreeTierCustomResourceNamesClassification(rawMsg json.RawMessage) (ThreeTierCustomResourceNamesClassification, error) { + if rawMsg == nil { + return nil, nil + } + var m map[string]any + if err := json.Unmarshal(rawMsg, &m); err != nil { + return nil, err + } + var b ThreeTierCustomResourceNamesClassification + switch m["namingPatternType"] { + case string(NamingPatternTypeFullResourceName): + b = &ThreeTierFullResourceNames{} + default: + b = &ThreeTierCustomResourceNames{} + } + return b, json.Unmarshal(rawMsg, b) +} diff --git a/sdk/resourcemanager/workloads/armworkloads/providerinstances_client.go b/sdk/resourcemanager/workloads/armworkloads/providerinstances_client.go index 55eed2586fde..ae930dbc8b08 100644 --- a/sdk/resourcemanager/workloads/armworkloads/providerinstances_client.go +++ b/sdk/resourcemanager/workloads/armworkloads/providerinstances_client.go @@ -32,9 +32,9 @@ type ProviderInstancesClient struct { } // NewProviderInstancesClient creates a new instance of ProviderInstancesClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewProviderInstancesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ProviderInstancesClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -58,13 +58,14 @@ func NewProviderInstancesClient(subscriptionID string, credential azcore.TokenCr // BeginCreate - Creates a provider instance for the specified subscription, resource group, SAP monitor name, and resource // name. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// monitorName - Name of the SAP monitor resource. -// providerInstanceName - Name of the provider instance. -// providerInstanceParameter - Request body representing a provider instance -// options - ProviderInstancesClientBeginCreateOptions contains the optional parameters for the ProviderInstancesClient.BeginCreate -// method. +// +// Generated from API version 2022-11-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - monitorName - Name of the SAP monitor resource. +// - providerInstanceName - Name of the provider instance. +// - providerInstanceParameter - Request body representing a provider instance +// - options - ProviderInstancesClientBeginCreateOptions contains the optional parameters for the ProviderInstancesClient.BeginCreate +// method. func (client *ProviderInstancesClient) BeginCreate(ctx context.Context, resourceGroupName string, monitorName string, providerInstanceName string, providerInstanceParameter ProviderInstance, options *ProviderInstancesClientBeginCreateOptions) (*runtime.Poller[ProviderInstancesClientCreateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.create(ctx, resourceGroupName, monitorName, providerInstanceName, providerInstanceParameter, options) @@ -81,7 +82,8 @@ func (client *ProviderInstancesClient) BeginCreate(ctx context.Context, resource // Create - Creates a provider instance for the specified subscription, resource group, SAP monitor name, and resource name. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01-preview +// +// Generated from API version 2022-11-01-preview func (client *ProviderInstancesClient) create(ctx context.Context, resourceGroupName string, monitorName string, providerInstanceName string, providerInstanceParameter ProviderInstance, options *ProviderInstancesClientBeginCreateOptions) (*http.Response, error) { req, err := client.createCreateRequest(ctx, resourceGroupName, monitorName, providerInstanceName, providerInstanceParameter, options) if err != nil { @@ -121,7 +123,7 @@ func (client *ProviderInstancesClient) createCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01-preview") + reqQP.Set("api-version", "2022-11-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, providerInstanceParameter) @@ -130,19 +132,22 @@ func (client *ProviderInstancesClient) createCreateRequest(ctx context.Context, // BeginDelete - Deletes a provider instance for the specified subscription, resource group, SAP monitor name, and resource // name. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// monitorName - Name of the SAP monitor resource. -// providerInstanceName - Name of the provider instance. -// options - ProviderInstancesClientBeginDeleteOptions contains the optional parameters for the ProviderInstancesClient.BeginDelete -// method. +// +// Generated from API version 2022-11-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - monitorName - Name of the SAP monitor resource. +// - providerInstanceName - Name of the provider instance. +// - options - ProviderInstancesClientBeginDeleteOptions contains the optional parameters for the ProviderInstancesClient.BeginDelete +// method. func (client *ProviderInstancesClient) BeginDelete(ctx context.Context, resourceGroupName string, monitorName string, providerInstanceName string, options *ProviderInstancesClientBeginDeleteOptions) (*runtime.Poller[ProviderInstancesClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, monitorName, providerInstanceName, options) if err != nil { return nil, err } - return runtime.NewPoller[ProviderInstancesClientDeleteResponse](resp, client.pl, nil) + return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[ProviderInstancesClientDeleteResponse]{ + FinalStateVia: runtime.FinalStateViaAzureAsyncOp, + }) } else { return runtime.NewPollerFromResumeToken[ProviderInstancesClientDeleteResponse](options.ResumeToken, client.pl, nil) } @@ -150,7 +155,8 @@ func (client *ProviderInstancesClient) BeginDelete(ctx context.Context, resource // Delete - Deletes a provider instance for the specified subscription, resource group, SAP monitor name, and resource name. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01-preview +// +// Generated from API version 2022-11-01-preview func (client *ProviderInstancesClient) deleteOperation(ctx context.Context, resourceGroupName string, monitorName string, providerInstanceName string, options *ProviderInstancesClientBeginDeleteOptions) (*http.Response, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, monitorName, providerInstanceName, options) if err != nil { @@ -190,7 +196,7 @@ func (client *ProviderInstancesClient) deleteCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01-preview") + reqQP.Set("api-version", "2022-11-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -199,11 +205,12 @@ func (client *ProviderInstancesClient) deleteCreateRequest(ctx context.Context, // Get - Gets properties of a provider instance for the specified subscription, resource group, SAP monitor name, and resource // name. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// monitorName - Name of the SAP monitor resource. -// providerInstanceName - Name of the provider instance. -// options - ProviderInstancesClientGetOptions contains the optional parameters for the ProviderInstancesClient.Get method. +// +// Generated from API version 2022-11-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - monitorName - Name of the SAP monitor resource. +// - providerInstanceName - Name of the provider instance. +// - options - ProviderInstancesClientGetOptions contains the optional parameters for the ProviderInstancesClient.Get method. func (client *ProviderInstancesClient) Get(ctx context.Context, resourceGroupName string, monitorName string, providerInstanceName string, options *ProviderInstancesClientGetOptions) (ProviderInstancesClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, monitorName, providerInstanceName, options) if err != nil { @@ -243,7 +250,7 @@ func (client *ProviderInstancesClient) getCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01-preview") + reqQP.Set("api-version", "2022-11-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -260,11 +267,12 @@ func (client *ProviderInstancesClient) getHandleResponse(resp *http.Response) (P // NewListPager - Gets a list of provider instances in the specified SAP monitor. The operations returns various properties // of each provider instances. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// monitorName - Name of the SAP monitor resource. -// options - ProviderInstancesClientListOptions contains the optional parameters for the ProviderInstancesClient.List method. +// +// Generated from API version 2022-11-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - monitorName - Name of the SAP monitor resource. +// - options - ProviderInstancesClientListOptions contains the optional parameters for the ProviderInstancesClient.NewListPager +// method. func (client *ProviderInstancesClient) NewListPager(resourceGroupName string, monitorName string, options *ProviderInstancesClientListOptions) *runtime.Pager[ProviderInstancesClientListResponse] { return runtime.NewPager(runtime.PagingHandler[ProviderInstancesClientListResponse]{ More: func(page ProviderInstancesClientListResponse) bool { @@ -313,7 +321,7 @@ func (client *ProviderInstancesClient) listCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01-preview") + reqQP.Set("api-version", "2022-11-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/workloads/armworkloads/providerinstances_client_example_test.go b/sdk/resourcemanager/workloads/armworkloads/providerinstances_client_example_test.go index eafb312e2c07..4e45734b6fe8 100644 --- a/sdk/resourcemanager/workloads/armworkloads/providerinstances_client_example_test.go +++ b/sdk/resourcemanager/workloads/armworkloads/providerinstances_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armworkloads_test @@ -17,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/workloads/armworkloads" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/workloadmonitor/ProviderInstances_List.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/workloadmonitor/ProviderInstances_List.json func ExampleProviderInstancesClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -28,23 +29,136 @@ func ExampleProviderInstancesClient_NewListPager() { if err != nil { log.Fatalf("failed to create client: %v", err) } - pager := client.NewListPager("myResourceGroup", - "mySapMonitor", - nil) + pager := client.NewListPager("myResourceGroup", "mySapMonitor", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.ProviderInstanceListResult = armworkloads.ProviderInstanceListResult{ + // Value: []*armworkloads.ProviderInstance{ + // { + // Name: to.Ptr("myProviderInstance1"), + // Type: to.Ptr("Microsoft.Workloads/workloads/providerInstances"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/workloads/mySapMonitor/providerInstances/myProviderInstance1"), + // Properties: &armworkloads.ProviderInstanceProperties{ + // ProviderSettings: &armworkloads.HanaDbProviderInstanceProperties{ + // ProviderType: to.Ptr("SapHana"), + // DbName: to.Ptr("db"), + // DbPasswordURI: to.Ptr(""), + // DbUsername: to.Ptr("user"), + // Hostname: to.Ptr("name"), + // InstanceNumber: to.Ptr("00"), + // SapSid: to.Ptr("SID"), + // SQLPort: to.Ptr("0000"), + // SSLCertificateURI: to.Ptr("https://storageaccount.blob.core.windows.net/containername/filename"), + // SSLHostNameInCertificate: to.Ptr("xyz.domain.com"), + // SSLPreference: to.Ptr(armworkloads.SSLPreferenceServerCertificate), + // }, + // ProvisioningState: to.Ptr(armworkloads.WorkloadMonitorProvisioningStateSucceeded), + // }, + // }, + // { + // Name: to.Ptr("myProviderInstance2"), + // Type: to.Ptr("Microsoft.Workloads/workloads/providerInstances"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/workloads/mySapMonitor/providerInstances/myProviderInstance1"), + // Properties: &armworkloads.ProviderInstanceProperties{ + // ProviderSettings: &armworkloads.SapNetWeaverProviderInstanceProperties{ + // ProviderType: to.Ptr("SapNetWeaver"), + // SapClientID: to.Ptr("111"), + // SapHostFileEntries: []*string{ + // to.Ptr("127.0.0.1 name fqdn")}, + // SapHostname: to.Ptr("name"), + // SapInstanceNr: to.Ptr("00"), + // SapPasswordURI: to.Ptr(""), + // SapPortNumber: to.Ptr("1234"), + // SapSid: to.Ptr("SID"), + // SapUsername: to.Ptr("username"), + // SSLCertificateURI: to.Ptr("https://storageaccount.blob.core.windows.net/containername/filename"), + // SSLPreference: to.Ptr(armworkloads.SSLPreferenceServerCertificate), + // }, + // ProvisioningState: to.Ptr(armworkloads.WorkloadMonitorProvisioningStateSucceeded), + // }, + // }, + // { + // Name: to.Ptr("myProviderInstance4"), + // Type: to.Ptr("Microsoft.Workloads/workloads/providerInstances"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/workloads/mySapMonitor/providerInstances/myProviderInstance1"), + // Properties: &armworkloads.ProviderInstanceProperties{ + // ProviderSettings: &armworkloads.MsSQLServerProviderInstanceProperties{ + // ProviderType: to.Ptr("MsSqlServer"), + // DbPort: to.Ptr("5912"), + // DbUsername: to.Ptr("user"), + // Hostname: to.Ptr("hostname"), + // SapSid: to.Ptr("sid"), + // SSLCertificateURI: to.Ptr("https://storageaccount.blob.core.windows.net/containername/filename"), + // SSLPreference: to.Ptr(armworkloads.SSLPreferenceServerCertificate), + // }, + // ProvisioningState: to.Ptr(armworkloads.WorkloadMonitorProvisioningStateSucceeded), + // }, + // }, + // { + // Name: to.Ptr("myProviderInstance3"), + // Type: to.Ptr("Microsoft.Workloads/workloads/providerInstances"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/workloads/mySapMonitor/providerInstances/myProviderInstance1"), + // Properties: &armworkloads.ProviderInstanceProperties{ + // ProviderSettings: &armworkloads.PrometheusOSProviderInstanceProperties{ + // ProviderType: to.Ptr("PrometheusOS"), + // PrometheusURL: to.Ptr("http://192.168.0.0:9090/metrics"), + // SapSid: to.Ptr("SID"), + // SSLCertificateURI: to.Ptr("https://storageaccount.blob.core.windows.net/containername/filename"), + // SSLPreference: to.Ptr(armworkloads.SSLPreferenceServerCertificate), + // }, + // ProvisioningState: to.Ptr(armworkloads.WorkloadMonitorProvisioningStateSucceeded), + // }, + // }, + // { + // Name: to.Ptr("myProviderInstance3"), + // Type: to.Ptr("Microsoft.Workloads/workloads/providerInstances"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/workloads/mySapMonitor/providerInstances/myProviderInstance1"), + // Properties: &armworkloads.ProviderInstanceProperties{ + // ProviderSettings: &armworkloads.PrometheusHaClusterProviderInstanceProperties{ + // ProviderType: to.Ptr("PrometheusHaCluster"), + // ClusterName: to.Ptr("clusterName"), + // Hostname: to.Ptr("hostname"), + // PrometheusURL: to.Ptr("http://192.168.0.0:9090/metrics"), + // Sid: to.Ptr("sid"), + // SSLCertificateURI: to.Ptr("https://storageaccount.blob.core.windows.net/containername/filename"), + // SSLPreference: to.Ptr(armworkloads.SSLPreferenceServerCertificate), + // }, + // ProvisioningState: to.Ptr(armworkloads.WorkloadMonitorProvisioningStateSucceeded), + // }, + // }, + // { + // Name: to.Ptr("myProviderInstance3"), + // Type: to.Ptr("Microsoft.Workloads/workloads/providerInstances"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/workloads/mySapMonitor/providerInstances/myProviderInstance1"), + // Properties: &armworkloads.ProviderInstanceProperties{ + // ProviderSettings: &armworkloads.DB2ProviderInstanceProperties{ + // ProviderType: to.Ptr("Db2"), + // DbName: to.Ptr("OPA"), + // DbPasswordURI: to.Ptr(""), + // DbPort: to.Ptr("5912"), + // DbUsername: to.Ptr("Db2OPA"), + // Hostname: to.Ptr("vmname.azure.com"), + // SapSid: to.Ptr("SID"), + // SSLCertificateURI: to.Ptr("https://storageaccount.blob.core.windows.net/containername/filename"), + // SSLPreference: to.Ptr(armworkloads.SSLPreferenceServerCertificate), + // }, + // ProvisioningState: to.Ptr(armworkloads.WorkloadMonitorProvisioningStateSucceeded), + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/workloadmonitor/Db2ProviderInstances_Get.json -func ExampleProviderInstancesClient_Get() { +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/workloadmonitor/Db2ProviderInstances_Get.json +func ExampleProviderInstancesClient_Get_getPropertiesOfADb2Provider() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -54,20 +168,44 @@ func ExampleProviderInstancesClient_Get() { if err != nil { log.Fatalf("failed to create client: %v", err) } - res, err := client.Get(ctx, - "myResourceGroup", - "mySapMonitor", - "myProviderInstance", - nil) + res, err := client.Get(ctx, "myResourceGroup", "mySapMonitor", "myProviderInstance", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.ProviderInstance = armworkloads.ProviderInstance{ + // Name: to.Ptr("myProviderInstance"), + // Type: to.Ptr("Microsoft.Workloads/workloads/providerInstances"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/workloads/mySapMonitor/providerInstances/myProviderInstance"), + // SystemData: &armworkloads.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // CreatedBy: to.Ptr("user@xyz.com"), + // CreatedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // LastModifiedBy: to.Ptr("user@xyz.com"), + // LastModifiedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // }, + // Properties: &armworkloads.ProviderInstanceProperties{ + // ProviderSettings: &armworkloads.DB2ProviderInstanceProperties{ + // ProviderType: to.Ptr("Db2"), + // DbName: to.Ptr("OPA"), + // DbPasswordURI: to.Ptr(""), + // DbPort: to.Ptr("5912"), + // DbUsername: to.Ptr("Db2OPA"), + // Hostname: to.Ptr("vmname.azure.com"), + // SapSid: to.Ptr("SID"), + // SSLCertificateURI: to.Ptr("https://storageaccount.blob.core.windows.net/containername/filename"), + // SSLPreference: to.Ptr(armworkloads.SSLPreferenceServerCertificate), + // }, + // ProvisioningState: to.Ptr(armworkloads.WorkloadMonitorProvisioningStateSucceeded), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/workloadmonitor/Db2ProviderInstances_Create.json -func ExampleProviderInstancesClient_BeginCreate() { +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/workloadmonitor/MsSqlServerProviderInstance_Get.json +func ExampleProviderInstancesClient_Get_getPropertiesOfAMsSqlServerProvider() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -77,25 +215,953 @@ func ExampleProviderInstancesClient_BeginCreate() { if err != nil { log.Fatalf("failed to create client: %v", err) } - poller, err := client.BeginCreate(ctx, - "myResourceGroup", - "mySapMonitor", - "myProviderInstance", - armworkloads.ProviderInstance{ - Properties: &armworkloads.ProviderInstanceProperties{ - ProviderSettings: &armworkloads.DB2ProviderInstanceProperties{ - ProviderType: to.Ptr("Db2"), - DbName: to.Ptr("dbName"), - DbPassword: to.Ptr("password"), - DbPasswordURI: to.Ptr(""), - DbPort: to.Ptr("dbPort"), - DbUsername: to.Ptr("username"), - Hostname: to.Ptr("hostname"), - SapSid: to.Ptr("SID"), - }, + res, err := client.Get(ctx, "myResourceGroup", "mySapMonitor", "myProviderInstance", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.ProviderInstance = armworkloads.ProviderInstance{ + // Name: to.Ptr("myProviderInstance"), + // Type: to.Ptr("Microsoft.Workloads/workloads/providerInstances"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/workloads/mySapMonitor/providerInstances/myProviderInstance"), + // SystemData: &armworkloads.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // CreatedBy: to.Ptr("user@xyz.com"), + // CreatedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // LastModifiedBy: to.Ptr("user@xyz.com"), + // LastModifiedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // }, + // Properties: &armworkloads.ProviderInstanceProperties{ + // ProviderSettings: &armworkloads.MsSQLServerProviderInstanceProperties{ + // ProviderType: to.Ptr("MsSqlServer"), + // DbPasswordURI: to.Ptr(""), + // DbPort: to.Ptr("5912"), + // DbUsername: to.Ptr("user"), + // Hostname: to.Ptr("hostname"), + // SapSid: to.Ptr("sid"), + // SSLCertificateURI: to.Ptr("https://storageaccount.blob.core.windows.net/containername/filename"), + // SSLPreference: to.Ptr(armworkloads.SSLPreferenceServerCertificate), + // }, + // ProvisioningState: to.Ptr(armworkloads.WorkloadMonitorProvisioningStateSucceeded), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/workloadmonitor/PrometheusOSProviderInstances_Get.json +func ExampleProviderInstancesClient_Get_getPropertiesOfAOsProvider() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armworkloads.NewProviderInstancesClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "myResourceGroup", "mySapMonitor", "myProviderInstance", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.ProviderInstance = armworkloads.ProviderInstance{ + // Name: to.Ptr("myProviderInstance"), + // Type: to.Ptr("Microsoft.Workloads/workloads/providerInstances"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/workloads/mySapMonitor/providerInstances/myProviderInstance"), + // SystemData: &armworkloads.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // CreatedBy: to.Ptr("user@xyz.com"), + // CreatedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // LastModifiedBy: to.Ptr("user@xyz.com"), + // LastModifiedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // }, + // Properties: &armworkloads.ProviderInstanceProperties{ + // ProviderSettings: &armworkloads.PrometheusOSProviderInstanceProperties{ + // ProviderType: to.Ptr("PrometheusOS"), + // PrometheusURL: to.Ptr("http://192.168.0.0:9090/metrics"), + // SapSid: to.Ptr("SID"), + // SSLCertificateURI: to.Ptr("https://storageaccount.blob.core.windows.net/containername/filename"), + // SSLPreference: to.Ptr(armworkloads.SSLPreferenceServerCertificate), + // }, + // ProvisioningState: to.Ptr(armworkloads.WorkloadMonitorProvisioningStateSucceeded), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/workloadmonitor/PrometheusHaClusterProviderInstances_Get.json +func ExampleProviderInstancesClient_Get_getPropertiesOfAPrometheusHaClusterProvider() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armworkloads.NewProviderInstancesClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "myResourceGroup", "mySapMonitor", "myProviderInstance", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.ProviderInstance = armworkloads.ProviderInstance{ + // Name: to.Ptr("myProviderInstance"), + // Type: to.Ptr("Microsoft.Workloads/workloads/providerInstances"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/workloads/mySapMonitor/providerInstances/myProviderInstance"), + // SystemData: &armworkloads.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // CreatedBy: to.Ptr("user@xyz.com"), + // CreatedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // LastModifiedBy: to.Ptr("user@xyz.com"), + // LastModifiedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // }, + // Properties: &armworkloads.ProviderInstanceProperties{ + // ProviderSettings: &armworkloads.PrometheusHaClusterProviderInstanceProperties{ + // ProviderType: to.Ptr("PrometheusHaCluster"), + // ClusterName: to.Ptr("clusterName"), + // Hostname: to.Ptr("hostname"), + // PrometheusURL: to.Ptr("http://192.168.0.0:9090/metrics"), + // Sid: to.Ptr("sid"), + // SSLCertificateURI: to.Ptr("https://storageaccount.blob.core.windows.net/containername/filename"), + // SSLPreference: to.Ptr(armworkloads.SSLPreferenceServerCertificate), + // }, + // ProvisioningState: to.Ptr(armworkloads.WorkloadMonitorProvisioningStateSucceeded), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/workloadmonitor/ProviderInstances_Get.json +func ExampleProviderInstancesClient_Get_getPropertiesOfASapMonitorHanaProvider() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armworkloads.NewProviderInstancesClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "myResourceGroup", "mySapMonitor", "myProviderInstance", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.ProviderInstance = armworkloads.ProviderInstance{ + // Name: to.Ptr("myProviderInstance"), + // Type: to.Ptr("Microsoft.Workloads/workloads/providerInstances"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/workloads/mySapMonitor/providerInstances/myProviderInstance"), + // SystemData: &armworkloads.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // CreatedBy: to.Ptr("user@xyz.com"), + // CreatedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // LastModifiedBy: to.Ptr("user@xyz.com"), + // LastModifiedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // }, + // Properties: &armworkloads.ProviderInstanceProperties{ + // ProviderSettings: &armworkloads.HanaDbProviderInstanceProperties{ + // ProviderType: to.Ptr("SapHana"), + // DbName: to.Ptr("db"), + // DbPasswordURI: to.Ptr(""), + // DbUsername: to.Ptr("user"), + // Hostname: to.Ptr("name"), + // InstanceNumber: to.Ptr("00"), + // SapSid: to.Ptr("SID"), + // SQLPort: to.Ptr("0000"), + // SSLCertificateURI: to.Ptr("https://storageaccount.blob.core.windows.net/containername/filename"), + // SSLHostNameInCertificate: to.Ptr("xyz.domain.com"), + // SSLPreference: to.Ptr(armworkloads.SSLPreferenceServerCertificate), + // }, + // ProvisioningState: to.Ptr(armworkloads.WorkloadMonitorProvisioningStateSucceeded), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/workloadmonitor/NetWeaverProviderInstances_Get.json +func ExampleProviderInstancesClient_Get_getPropertiesOfASapMonitorNetWeaverProvider() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armworkloads.NewProviderInstancesClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "myResourceGroup", "mySapMonitor", "myProviderInstance", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.ProviderInstance = armworkloads.ProviderInstance{ + // Name: to.Ptr("myProviderInstance"), + // Type: to.Ptr("Microsoft.Workloads/workloads/providerInstances"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/workloads/mySapMonitor/providerInstances/myProviderInstance"), + // SystemData: &armworkloads.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // CreatedBy: to.Ptr("user@xyz.com"), + // CreatedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // LastModifiedBy: to.Ptr("user@xyz.com"), + // LastModifiedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // }, + // Properties: &armworkloads.ProviderInstanceProperties{ + // ProviderSettings: &armworkloads.SapNetWeaverProviderInstanceProperties{ + // ProviderType: to.Ptr("SapNetWeaver"), + // SapClientID: to.Ptr("111"), + // SapHostFileEntries: []*string{ + // to.Ptr("127.0.0.1 name fqdn")}, + // SapHostname: to.Ptr("name"), + // SapInstanceNr: to.Ptr("00"), + // SapPasswordURI: to.Ptr(""), + // SapPortNumber: to.Ptr("1234"), + // SapSid: to.Ptr("SID"), + // SapUsername: to.Ptr("username"), + // SSLCertificateURI: to.Ptr("https://storageaccount.blob.core.windows.net/containername/filename"), + // SSLPreference: to.Ptr(armworkloads.SSLPreferenceServerCertificate), + // }, + // ProvisioningState: to.Ptr(armworkloads.WorkloadMonitorProvisioningStateSucceeded), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/workloadmonitor/Db2ProviderInstances_Create.json +func ExampleProviderInstancesClient_BeginCreate_createADb2Provider() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armworkloads.NewProviderInstancesClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreate(ctx, "myResourceGroup", "mySapMonitor", "myProviderInstance", armworkloads.ProviderInstance{ + Properties: &armworkloads.ProviderInstanceProperties{ + ProviderSettings: &armworkloads.DB2ProviderInstanceProperties{ + ProviderType: to.Ptr("Db2"), + DbName: to.Ptr("dbName"), + DbPassword: to.Ptr("password"), + DbPasswordURI: to.Ptr(""), + DbPort: to.Ptr("dbPort"), + DbUsername: to.Ptr("username"), + Hostname: to.Ptr("hostname"), + SapSid: to.Ptr("SID"), + SSLCertificateURI: to.Ptr("https://storageaccount.blob.core.windows.net/containername/filename"), + SSLPreference: to.Ptr(armworkloads.SSLPreferenceServerCertificate), + }, + }, + }, 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.ProviderInstance = armworkloads.ProviderInstance{ + // Name: to.Ptr("myProviderInstance"), + // Type: to.Ptr("Microsoft.Workloads/workloads/providerInstances"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/workloads/mySapMonitor/providerInstances/myProviderInstance"), + // SystemData: &armworkloads.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // CreatedBy: to.Ptr("user@xyz.com"), + // CreatedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // LastModifiedBy: to.Ptr("user@xyz.com"), + // LastModifiedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // }, + // Properties: &armworkloads.ProviderInstanceProperties{ + // ProviderSettings: &armworkloads.DB2ProviderInstanceProperties{ + // ProviderType: to.Ptr("Db2"), + // DbName: to.Ptr("OPA"), + // DbPasswordURI: to.Ptr(""), + // DbPort: to.Ptr("5912"), + // DbUsername: to.Ptr("Db2OPA"), + // Hostname: to.Ptr("vmname.azure.com"), + // SapSid: to.Ptr("SID"), + // SSLCertificateURI: to.Ptr("https://storageaccount.blob.core.windows.net/containername/filename"), + // SSLPreference: to.Ptr(armworkloads.SSLPreferenceServerCertificate), + // }, + // ProvisioningState: to.Ptr(armworkloads.WorkloadMonitorProvisioningStateSucceeded), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/workloadmonitor/Db2ProviderInstances_Create_Root_Certificate.json +func ExampleProviderInstancesClient_BeginCreate_createADb2ProviderWithRootCertificate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armworkloads.NewProviderInstancesClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreate(ctx, "myResourceGroup", "mySapMonitor", "myProviderInstance", armworkloads.ProviderInstance{ + Properties: &armworkloads.ProviderInstanceProperties{ + ProviderSettings: &armworkloads.DB2ProviderInstanceProperties{ + ProviderType: to.Ptr("Db2"), + DbName: to.Ptr("dbName"), + DbPassword: to.Ptr("password"), + DbPasswordURI: to.Ptr(""), + DbPort: to.Ptr("dbPort"), + DbUsername: to.Ptr("username"), + Hostname: to.Ptr("hostname"), + SapSid: to.Ptr("SID"), + SSLPreference: to.Ptr(armworkloads.SSLPreferenceRootCertificate), + }, + }, + }, 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.ProviderInstance = armworkloads.ProviderInstance{ + // Name: to.Ptr("myProviderInstance"), + // Type: to.Ptr("Microsoft.Workloads/workloads/providerInstances"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/workloads/mySapMonitor/providerInstances/myProviderInstance"), + // SystemData: &armworkloads.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // CreatedBy: to.Ptr("user@xyz.com"), + // CreatedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // LastModifiedBy: to.Ptr("user@xyz.com"), + // LastModifiedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // }, + // Properties: &armworkloads.ProviderInstanceProperties{ + // ProviderSettings: &armworkloads.DB2ProviderInstanceProperties{ + // ProviderType: to.Ptr("Db2"), + // DbName: to.Ptr("OPA"), + // DbPasswordURI: to.Ptr(""), + // DbPort: to.Ptr("5912"), + // DbUsername: to.Ptr("Db2OPA"), + // Hostname: to.Ptr("vmname.azure.com"), + // SapSid: to.Ptr("SID"), + // SSLPreference: to.Ptr(armworkloads.SSLPreferenceRootCertificate), + // }, + // ProvisioningState: to.Ptr(armworkloads.WorkloadMonitorProvisioningStateSucceeded), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/workloadmonitor/MsSqlServerProviderInstance_Create.json +func ExampleProviderInstancesClient_BeginCreate_createAMsSqlServerProvider() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armworkloads.NewProviderInstancesClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreate(ctx, "myResourceGroup", "mySapMonitor", "myProviderInstance", armworkloads.ProviderInstance{ + Properties: &armworkloads.ProviderInstanceProperties{ + ProviderSettings: &armworkloads.MsSQLServerProviderInstanceProperties{ + ProviderType: to.Ptr("MsSqlServer"), + DbPassword: to.Ptr("****"), + DbPasswordURI: to.Ptr(""), + DbPort: to.Ptr("5912"), + DbUsername: to.Ptr("user"), + Hostname: to.Ptr("hostname"), + SapSid: to.Ptr("sid"), + SSLCertificateURI: to.Ptr("https://storageaccount.blob.core.windows.net/containername/filename"), + SSLPreference: to.Ptr(armworkloads.SSLPreferenceServerCertificate), + }, + }, + }, 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.ProviderInstance = armworkloads.ProviderInstance{ + // Name: to.Ptr("myProviderInstance"), + // Type: to.Ptr("Microsoft.Workloads/workloads/providerInstances"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/workloads/mySapMonitor/providerInstances/myProviderInstance"), + // SystemData: &armworkloads.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // CreatedBy: to.Ptr("user@xyz.com"), + // CreatedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // LastModifiedBy: to.Ptr("user@xyz.com"), + // LastModifiedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // }, + // Properties: &armworkloads.ProviderInstanceProperties{ + // ProviderSettings: &armworkloads.MsSQLServerProviderInstanceProperties{ + // ProviderType: to.Ptr("MsSqlServer"), + // DbPort: to.Ptr("5912"), + // DbUsername: to.Ptr("user"), + // Hostname: to.Ptr("hostname"), + // SapSid: to.Ptr("sid"), + // SSLCertificateURI: to.Ptr("https://storageaccount.blob.core.windows.net/containername/filename"), + // SSLPreference: to.Ptr(armworkloads.SSLPreferenceServerCertificate), + // }, + // ProvisioningState: to.Ptr(armworkloads.WorkloadMonitorProvisioningStateSucceeded), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/workloadmonitor/MsSqlServerProviderInstance_Create_Root_Certificate.json +func ExampleProviderInstancesClient_BeginCreate_createAMsSqlServerProviderWithRootCertificate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armworkloads.NewProviderInstancesClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreate(ctx, "myResourceGroup", "mySapMonitor", "myProviderInstance", armworkloads.ProviderInstance{ + Properties: &armworkloads.ProviderInstanceProperties{ + ProviderSettings: &armworkloads.MsSQLServerProviderInstanceProperties{ + ProviderType: to.Ptr("MsSqlServer"), + DbPassword: to.Ptr("****"), + DbPasswordURI: to.Ptr(""), + DbPort: to.Ptr("5912"), + DbUsername: to.Ptr("user"), + Hostname: to.Ptr("hostname"), + SapSid: to.Ptr("sid"), + SSLPreference: to.Ptr(armworkloads.SSLPreferenceRootCertificate), + }, + }, + }, 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.ProviderInstance = armworkloads.ProviderInstance{ + // Name: to.Ptr("myProviderInstance"), + // Type: to.Ptr("Microsoft.Workloads/workloads/providerInstances"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/workloads/mySapMonitor/providerInstances/myProviderInstance"), + // SystemData: &armworkloads.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // CreatedBy: to.Ptr("user@xyz.com"), + // CreatedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // LastModifiedBy: to.Ptr("user@xyz.com"), + // LastModifiedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // }, + // Properties: &armworkloads.ProviderInstanceProperties{ + // ProviderSettings: &armworkloads.MsSQLServerProviderInstanceProperties{ + // ProviderType: to.Ptr("MsSqlServer"), + // DbPort: to.Ptr("5912"), + // DbUsername: to.Ptr("user"), + // Hostname: to.Ptr("hostname"), + // SapSid: to.Ptr("sid"), + // SSLPreference: to.Ptr(armworkloads.SSLPreferenceRootCertificate), + // }, + // ProvisioningState: to.Ptr(armworkloads.WorkloadMonitorProvisioningStateSucceeded), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/workloadmonitor/PrometheusOSProviderInstances_Create.json +func ExampleProviderInstancesClient_BeginCreate_createAOsProvider() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armworkloads.NewProviderInstancesClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreate(ctx, "myResourceGroup", "mySapMonitor", "myProviderInstance", armworkloads.ProviderInstance{ + Properties: &armworkloads.ProviderInstanceProperties{ + ProviderSettings: &armworkloads.PrometheusOSProviderInstanceProperties{ + ProviderType: to.Ptr("PrometheusOS"), + PrometheusURL: to.Ptr("http://192.168.0.0:9090/metrics"), + SapSid: to.Ptr("SID"), + SSLCertificateURI: to.Ptr("https://storageaccount.blob.core.windows.net/containername/filename"), + SSLPreference: to.Ptr(armworkloads.SSLPreferenceServerCertificate), + }, + }, + }, 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.ProviderInstance = armworkloads.ProviderInstance{ + // Name: to.Ptr("myProviderInstance"), + // Type: to.Ptr("Microsoft.Workloads/workloads/providerInstances"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/workloads/mySapMonitor/providerInstances/myProviderInstance"), + // SystemData: &armworkloads.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // CreatedBy: to.Ptr("user@xyz.com"), + // CreatedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // LastModifiedBy: to.Ptr("user@xyz.com"), + // LastModifiedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // }, + // Properties: &armworkloads.ProviderInstanceProperties{ + // ProviderSettings: &armworkloads.PrometheusOSProviderInstanceProperties{ + // ProviderType: to.Ptr("PrometheusOS"), + // PrometheusURL: to.Ptr("http://192.168.0.0:9090/metrics"), + // SapSid: to.Ptr("SID"), + // SSLCertificateURI: to.Ptr("https://storageaccount.blob.core.windows.net/containername/filename"), + // SSLPreference: to.Ptr(armworkloads.SSLPreferenceServerCertificate), + // }, + // ProvisioningState: to.Ptr(armworkloads.WorkloadMonitorProvisioningStateSucceeded), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/workloadmonitor/PrometheusOSProviderInstances_Create_Root_Certificate.json +func ExampleProviderInstancesClient_BeginCreate_createAOsProviderWithRootCertificate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armworkloads.NewProviderInstancesClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreate(ctx, "myResourceGroup", "mySapMonitor", "myProviderInstance", armworkloads.ProviderInstance{ + Properties: &armworkloads.ProviderInstanceProperties{ + ProviderSettings: &armworkloads.PrometheusOSProviderInstanceProperties{ + ProviderType: to.Ptr("PrometheusOS"), + PrometheusURL: to.Ptr("http://192.168.0.0:9090/metrics"), + SapSid: to.Ptr("SID"), + SSLPreference: to.Ptr(armworkloads.SSLPreferenceRootCertificate), + }, + }, + }, 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.ProviderInstance = armworkloads.ProviderInstance{ + // Name: to.Ptr("myProviderInstance"), + // Type: to.Ptr("Microsoft.Workloads/workloads/providerInstances"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/workloads/mySapMonitor/providerInstances/myProviderInstance"), + // SystemData: &armworkloads.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // CreatedBy: to.Ptr("user@xyz.com"), + // CreatedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // LastModifiedBy: to.Ptr("user@xyz.com"), + // LastModifiedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // }, + // Properties: &armworkloads.ProviderInstanceProperties{ + // ProviderSettings: &armworkloads.PrometheusOSProviderInstanceProperties{ + // ProviderType: to.Ptr("PrometheusOS"), + // PrometheusURL: to.Ptr("http://192.168.0.0:9090/metrics"), + // SapSid: to.Ptr("SID"), + // SSLPreference: to.Ptr(armworkloads.SSLPreferenceRootCertificate), + // }, + // ProvisioningState: to.Ptr(armworkloads.WorkloadMonitorProvisioningStateSucceeded), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/workloadmonitor/PrometheusHaClusterProviderInstances_Create.json +func ExampleProviderInstancesClient_BeginCreate_createAPrometheusHaClusterProvider() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armworkloads.NewProviderInstancesClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreate(ctx, "myResourceGroup", "mySapMonitor", "myProviderInstance", armworkloads.ProviderInstance{ + Properties: &armworkloads.ProviderInstanceProperties{ + ProviderSettings: &armworkloads.PrometheusHaClusterProviderInstanceProperties{ + ProviderType: to.Ptr("PrometheusHaCluster"), + ClusterName: to.Ptr("clusterName"), + Hostname: to.Ptr("hostname"), + PrometheusURL: to.Ptr("http://192.168.0.0:9090/metrics"), + Sid: to.Ptr("sid"), + SSLCertificateURI: to.Ptr("https://storageaccount.blob.core.windows.net/containername/filename"), + SSLPreference: to.Ptr(armworkloads.SSLPreferenceServerCertificate), + }, + }, + }, 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.ProviderInstance = armworkloads.ProviderInstance{ + // Name: to.Ptr("myProviderInstance"), + // Type: to.Ptr("Microsoft.Workloads/workloads/providerInstances"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/workloads/mySapMonitor/providerInstances/myProviderInstance"), + // SystemData: &armworkloads.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // CreatedBy: to.Ptr("user@xyz.com"), + // CreatedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // LastModifiedBy: to.Ptr("user@xyz.com"), + // LastModifiedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // }, + // Properties: &armworkloads.ProviderInstanceProperties{ + // ProviderSettings: &armworkloads.PrometheusHaClusterProviderInstanceProperties{ + // ProviderType: to.Ptr("PrometheusHaCluster"), + // ClusterName: to.Ptr("clusterName"), + // Hostname: to.Ptr("hostname"), + // PrometheusURL: to.Ptr("http://192.168.0.0:9090/metrics"), + // Sid: to.Ptr("sid"), + // SSLCertificateURI: to.Ptr("https://storageaccount.blob.core.windows.net/containername/filename"), + // SSLPreference: to.Ptr(armworkloads.SSLPreferenceServerCertificate), + // }, + // ProvisioningState: to.Ptr(armworkloads.WorkloadMonitorProvisioningStateSucceeded), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/workloadmonitor/PrometheusHaClusterProviderInstances_Create_Root_Certificate.json +func ExampleProviderInstancesClient_BeginCreate_createAPrometheusHaClusterProviderWithRootCertificate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armworkloads.NewProviderInstancesClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreate(ctx, "myResourceGroup", "mySapMonitor", "myProviderInstance", armworkloads.ProviderInstance{ + Properties: &armworkloads.ProviderInstanceProperties{ + ProviderSettings: &armworkloads.PrometheusHaClusterProviderInstanceProperties{ + ProviderType: to.Ptr("PrometheusHaCluster"), + ClusterName: to.Ptr("clusterName"), + Hostname: to.Ptr("hostname"), + PrometheusURL: to.Ptr("http://192.168.0.0:9090/metrics"), + Sid: to.Ptr("sid"), + SSLPreference: to.Ptr(armworkloads.SSLPreferenceRootCertificate), + }, + }, + }, 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.ProviderInstance = armworkloads.ProviderInstance{ + // Name: to.Ptr("myProviderInstance"), + // Type: to.Ptr("Microsoft.Workloads/workloads/providerInstances"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/workloads/mySapMonitor/providerInstances/myProviderInstance"), + // SystemData: &armworkloads.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // CreatedBy: to.Ptr("user@xyz.com"), + // CreatedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // LastModifiedBy: to.Ptr("user@xyz.com"), + // LastModifiedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // }, + // Properties: &armworkloads.ProviderInstanceProperties{ + // ProviderSettings: &armworkloads.PrometheusHaClusterProviderInstanceProperties{ + // ProviderType: to.Ptr("PrometheusHaCluster"), + // ClusterName: to.Ptr("clusterName"), + // Hostname: to.Ptr("hostname"), + // PrometheusURL: to.Ptr("http://192.168.0.0:9090/metrics"), + // Sid: to.Ptr("sid"), + // SSLPreference: to.Ptr(armworkloads.SSLPreferenceRootCertificate), + // }, + // ProvisioningState: to.Ptr(armworkloads.WorkloadMonitorProvisioningStateSucceeded), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/workloadmonitor/ProviderInstances_Create.json +func ExampleProviderInstancesClient_BeginCreate_createASapMonitorHanaProvider() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armworkloads.NewProviderInstancesClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreate(ctx, "myResourceGroup", "mySapMonitor", "myProviderInstance", armworkloads.ProviderInstance{ + Properties: &armworkloads.ProviderInstanceProperties{ + ProviderSettings: &armworkloads.HanaDbProviderInstanceProperties{ + ProviderType: to.Ptr("SapHana"), + DbName: to.Ptr("db"), + DbPassword: to.Ptr("****"), + DbPasswordURI: to.Ptr(""), + DbUsername: to.Ptr("user"), + Hostname: to.Ptr("name"), + InstanceNumber: to.Ptr("00"), + SapSid: to.Ptr("SID"), + SQLPort: to.Ptr("0000"), + SSLCertificateURI: to.Ptr("https://storageaccount.blob.core.windows.net/containername/filename"), + SSLHostNameInCertificate: to.Ptr("xyz.domain.com"), + SSLPreference: to.Ptr(armworkloads.SSLPreferenceServerCertificate), + }, + }, + }, 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.ProviderInstance = armworkloads.ProviderInstance{ + // Name: to.Ptr("myProviderInstance"), + // Type: to.Ptr("Microsoft.Workloads/workloads/providerInstances"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/workloads/mySapMonitor/providerInstances/myProviderInstance"), + // SystemData: &armworkloads.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // CreatedBy: to.Ptr("user@xyz.com"), + // CreatedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // LastModifiedBy: to.Ptr("user@xyz.com"), + // LastModifiedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // }, + // Properties: &armworkloads.ProviderInstanceProperties{ + // ProviderSettings: &armworkloads.HanaDbProviderInstanceProperties{ + // ProviderType: to.Ptr("SapHana"), + // DbName: to.Ptr("db"), + // DbPasswordURI: to.Ptr(""), + // DbUsername: to.Ptr("user"), + // Hostname: to.Ptr("name"), + // InstanceNumber: to.Ptr("00"), + // SapSid: to.Ptr("SID"), + // SQLPort: to.Ptr("0000"), + // SSLCertificateURI: to.Ptr("https://storageaccount.blob.core.windows.net/containername/filename"), + // SSLHostNameInCertificate: to.Ptr("xyz.domain.com"), + // SSLPreference: to.Ptr(armworkloads.SSLPreferenceServerCertificate), + // }, + // ProvisioningState: to.Ptr(armworkloads.WorkloadMonitorProvisioningStateSucceeded), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/workloadmonitor/ProviderInstances_Create_Root_Certificate.json +func ExampleProviderInstancesClient_BeginCreate_createASapMonitorHanaProviderWithRootCertificate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armworkloads.NewProviderInstancesClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreate(ctx, "myResourceGroup", "mySapMonitor", "myProviderInstance", armworkloads.ProviderInstance{ + Properties: &armworkloads.ProviderInstanceProperties{ + ProviderSettings: &armworkloads.HanaDbProviderInstanceProperties{ + ProviderType: to.Ptr("SapHana"), + DbName: to.Ptr("db"), + DbPassword: to.Ptr("****"), + DbPasswordURI: to.Ptr(""), + DbUsername: to.Ptr("user"), + Hostname: to.Ptr("name"), + InstanceNumber: to.Ptr("00"), + SapSid: to.Ptr("SID"), + SQLPort: to.Ptr("0000"), + SSLHostNameInCertificate: to.Ptr("xyz.domain.com"), + SSLPreference: to.Ptr(armworkloads.SSLPreferenceRootCertificate), + }, + }, + }, 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.ProviderInstance = armworkloads.ProviderInstance{ + // Name: to.Ptr("myProviderInstance"), + // Type: to.Ptr("Microsoft.Workloads/workloads/providerInstances"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/workloads/mySapMonitor/providerInstances/myProviderInstance"), + // SystemData: &armworkloads.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // CreatedBy: to.Ptr("user@xyz.com"), + // CreatedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // LastModifiedBy: to.Ptr("user@xyz.com"), + // LastModifiedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // }, + // Properties: &armworkloads.ProviderInstanceProperties{ + // ProviderSettings: &armworkloads.HanaDbProviderInstanceProperties{ + // ProviderType: to.Ptr("SapHana"), + // DbName: to.Ptr("db"), + // DbPasswordURI: to.Ptr(""), + // DbUsername: to.Ptr("user"), + // Hostname: to.Ptr("name"), + // InstanceNumber: to.Ptr("00"), + // SapSid: to.Ptr("SID"), + // SQLPort: to.Ptr("0000"), + // SSLHostNameInCertificate: to.Ptr("xyz.domain.com"), + // SSLPreference: to.Ptr(armworkloads.SSLPreferenceRootCertificate), + // }, + // ProvisioningState: to.Ptr(armworkloads.WorkloadMonitorProvisioningStateSucceeded), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/workloadmonitor/NetWeaverProviderInstances_Create.json +func ExampleProviderInstancesClient_BeginCreate_createASapMonitorNetWeaverProvider() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armworkloads.NewProviderInstancesClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreate(ctx, "myResourceGroup", "mySapMonitor", "myProviderInstance", armworkloads.ProviderInstance{ + Properties: &armworkloads.ProviderInstanceProperties{ + ProviderSettings: &armworkloads.SapNetWeaverProviderInstanceProperties{ + ProviderType: to.Ptr("SapNetWeaver"), + SapClientID: to.Ptr("111"), + SapHostFileEntries: []*string{ + to.Ptr("127.0.0.1 name fqdn")}, + SapHostname: to.Ptr("name"), + SapInstanceNr: to.Ptr("00"), + SapPassword: to.Ptr("****"), + SapPasswordURI: to.Ptr(""), + SapPortNumber: to.Ptr("1234"), + SapSid: to.Ptr("SID"), + SapUsername: to.Ptr("username"), + SSLCertificateURI: to.Ptr("https://storageaccount.blob.core.windows.net/containername/filename"), + SSLPreference: to.Ptr(armworkloads.SSLPreferenceServerCertificate), + }, + }, + }, 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.ProviderInstance = armworkloads.ProviderInstance{ + // Name: to.Ptr("myProviderInstance"), + // Type: to.Ptr("Microsoft.Workloads/workloads/providerInstances"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/workloads/mySapMonitor/providerInstances/myProviderInstance"), + // SystemData: &armworkloads.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // CreatedBy: to.Ptr("user@xyz.com"), + // CreatedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // LastModifiedBy: to.Ptr("user@xyz.com"), + // LastModifiedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // }, + // Properties: &armworkloads.ProviderInstanceProperties{ + // ProviderSettings: &armworkloads.SapNetWeaverProviderInstanceProperties{ + // ProviderType: to.Ptr("SapNetWeaver"), + // SapClientID: to.Ptr("111"), + // SapHostFileEntries: []*string{ + // to.Ptr("127.0.0.1 name fqdn")}, + // SapHostname: to.Ptr("name"), + // SapInstanceNr: to.Ptr("00"), + // SapPasswordURI: to.Ptr(""), + // SapPortNumber: to.Ptr("1234"), + // SapSid: to.Ptr("SID"), + // SapUsername: to.Ptr("username"), + // SSLCertificateURI: to.Ptr("https://storageaccount.blob.core.windows.net/containername/filename"), + // SSLPreference: to.Ptr(armworkloads.SSLPreferenceServerCertificate), + // }, + // ProvisioningState: to.Ptr(armworkloads.WorkloadMonitorProvisioningStateSucceeded), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/workloadmonitor/NetWeaverProviderInstances_Create_Root_Certificate.json +func ExampleProviderInstancesClient_BeginCreate_createASapMonitorNetWeaverProviderWithRootCertificate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armworkloads.NewProviderInstancesClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreate(ctx, "myResourceGroup", "mySapMonitor", "myProviderInstance", armworkloads.ProviderInstance{ + Properties: &armworkloads.ProviderInstanceProperties{ + ProviderSettings: &armworkloads.SapNetWeaverProviderInstanceProperties{ + ProviderType: to.Ptr("SapNetWeaver"), + SapClientID: to.Ptr("111"), + SapHostFileEntries: []*string{ + to.Ptr("127.0.0.1 name fqdn")}, + SapHostname: to.Ptr("name"), + SapInstanceNr: to.Ptr("00"), + SapPassword: to.Ptr("****"), + SapPasswordURI: to.Ptr(""), + SapPortNumber: to.Ptr("1234"), + SapSid: to.Ptr("SID"), + SapUsername: to.Ptr("username"), + SSLPreference: to.Ptr(armworkloads.SSLPreferenceRootCertificate), }, }, - nil) + }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } @@ -103,11 +1169,41 @@ func ExampleProviderInstancesClient_BeginCreate() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.ProviderInstance = armworkloads.ProviderInstance{ + // Name: to.Ptr("myProviderInstance"), + // Type: to.Ptr("Microsoft.Workloads/workloads/providerInstances"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/workloads/mySapMonitor/providerInstances/myProviderInstance"), + // SystemData: &armworkloads.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // CreatedBy: to.Ptr("user@xyz.com"), + // CreatedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // LastModifiedBy: to.Ptr("user@xyz.com"), + // LastModifiedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // }, + // Properties: &armworkloads.ProviderInstanceProperties{ + // ProviderSettings: &armworkloads.SapNetWeaverProviderInstanceProperties{ + // ProviderType: to.Ptr("SapNetWeaver"), + // SapClientID: to.Ptr("111"), + // SapHostFileEntries: []*string{ + // to.Ptr("127.0.0.1 name fqdn")}, + // SapHostname: to.Ptr("name"), + // SapInstanceNr: to.Ptr("00"), + // SapPasswordURI: to.Ptr(""), + // SapPortNumber: to.Ptr("1234"), + // SapSid: to.Ptr("SID"), + // SapUsername: to.Ptr("username"), + // SSLPreference: to.Ptr(armworkloads.SSLPreferenceRootCertificate), + // }, + // ProvisioningState: to.Ptr(armworkloads.WorkloadMonitorProvisioningStateSucceeded), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/workloadmonitor/ProviderInstances_Delete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/workloadmonitor/ProviderInstances_Delete.json func ExampleProviderInstancesClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -118,11 +1214,7 @@ func ExampleProviderInstancesClient_BeginDelete() { if err != nil { log.Fatalf("failed to create client: %v", err) } - poller, err := client.BeginDelete(ctx, - "myResourceGroup", - "mySapMonitor", - "myProviderInstance", - nil) + poller, err := client.BeginDelete(ctx, "myResourceGroup", "mySapMonitor", "myProviderInstance", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } @@ -130,6 +1222,14 @@ func ExampleProviderInstancesClient_BeginDelete() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.OperationStatusResult = armworkloads.OperationStatusResult{ + // Name: to.Ptr("1e4193c3-206e-4916-b124-1da16175eb0f"), + // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T03:38:07.000Z"); return t}()), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/operations/locations/westus/1e4193c3-206e-4916-b124-1da16175eb0f"), + // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T03:36:07.000Z"); return t}()), + // Status: to.Ptr("Succeeded"), + // } } diff --git a/sdk/resourcemanager/workloads/armworkloads/response_types.go b/sdk/resourcemanager/workloads/armworkloads/response_types.go index 2ba9585ecf0d..a178330ae198 100644 --- a/sdk/resourcemanager/workloads/armworkloads/response_types.go +++ b/sdk/resourcemanager/workloads/armworkloads/response_types.go @@ -39,12 +39,12 @@ type ClientSAPSupportedSKUResponse struct { SAPSupportedResourceSKUsResult } -// MonitorsClientCreateResponse contains the response from method MonitorsClient.Create. +// MonitorsClientCreateResponse contains the response from method MonitorsClient.BeginCreate. type MonitorsClientCreateResponse struct { Monitor } -// MonitorsClientDeleteResponse contains the response from method MonitorsClient.Delete. +// MonitorsClientDeleteResponse contains the response from method MonitorsClient.BeginDelete. type MonitorsClientDeleteResponse struct { OperationStatusResult } @@ -54,12 +54,12 @@ type MonitorsClientGetResponse struct { Monitor } -// MonitorsClientListByResourceGroupResponse contains the response from method MonitorsClient.ListByResourceGroup. +// MonitorsClientListByResourceGroupResponse contains the response from method MonitorsClient.NewListByResourceGroupPager. type MonitorsClientListByResourceGroupResponse struct { MonitorListResult } -// MonitorsClientListResponse contains the response from method MonitorsClient.List. +// MonitorsClientListResponse contains the response from method MonitorsClient.NewListPager. type MonitorsClientListResponse struct { MonitorListResult } @@ -69,47 +69,17 @@ type MonitorsClientUpdateResponse struct { Monitor } -// OperationsClientListResponse contains the response from method OperationsClient.List. +// OperationsClientListResponse contains the response from method OperationsClient.NewListPager. type OperationsClientListResponse struct { OperationListResult } -// PhpWorkloadsClientCreateOrUpdateResponse contains the response from method PhpWorkloadsClient.CreateOrUpdate. -type PhpWorkloadsClientCreateOrUpdateResponse struct { - PhpWorkloadResource -} - -// PhpWorkloadsClientDeleteResponse contains the response from method PhpWorkloadsClient.Delete. -type PhpWorkloadsClientDeleteResponse struct { - // placeholder for future response values -} - -// PhpWorkloadsClientGetResponse contains the response from method PhpWorkloadsClient.Get. -type PhpWorkloadsClientGetResponse struct { - PhpWorkloadResource -} - -// PhpWorkloadsClientListByResourceGroupResponse contains the response from method PhpWorkloadsClient.ListByResourceGroup. -type PhpWorkloadsClientListByResourceGroupResponse struct { - PhpWorkloadResourceList -} - -// PhpWorkloadsClientListBySubscriptionResponse contains the response from method PhpWorkloadsClient.ListBySubscription. -type PhpWorkloadsClientListBySubscriptionResponse struct { - PhpWorkloadResourceList -} - -// PhpWorkloadsClientUpdateResponse contains the response from method PhpWorkloadsClient.Update. -type PhpWorkloadsClientUpdateResponse struct { - PhpWorkloadResource -} - -// ProviderInstancesClientCreateResponse contains the response from method ProviderInstancesClient.Create. +// ProviderInstancesClientCreateResponse contains the response from method ProviderInstancesClient.BeginCreate. type ProviderInstancesClientCreateResponse struct { ProviderInstance } -// ProviderInstancesClientDeleteResponse contains the response from method ProviderInstancesClient.Delete. +// ProviderInstancesClientDeleteResponse contains the response from method ProviderInstancesClient.BeginDelete. type ProviderInstancesClientDeleteResponse struct { OperationStatusResult } @@ -119,17 +89,17 @@ type ProviderInstancesClientGetResponse struct { ProviderInstance } -// ProviderInstancesClientListResponse contains the response from method ProviderInstancesClient.List. +// ProviderInstancesClientListResponse contains the response from method ProviderInstancesClient.NewListPager. type ProviderInstancesClientListResponse struct { ProviderInstanceListResult } -// SAPApplicationServerInstancesClientCreateResponse contains the response from method SAPApplicationServerInstancesClient.Create. +// SAPApplicationServerInstancesClientCreateResponse contains the response from method SAPApplicationServerInstancesClient.BeginCreate. type SAPApplicationServerInstancesClientCreateResponse struct { SAPApplicationServerInstance } -// SAPApplicationServerInstancesClientDeleteResponse contains the response from method SAPApplicationServerInstancesClient.Delete. +// SAPApplicationServerInstancesClientDeleteResponse contains the response from method SAPApplicationServerInstancesClient.BeginDelete. type SAPApplicationServerInstancesClientDeleteResponse struct { OperationStatusResult } @@ -139,22 +109,32 @@ type SAPApplicationServerInstancesClientGetResponse struct { SAPApplicationServerInstance } -// SAPApplicationServerInstancesClientListResponse contains the response from method SAPApplicationServerInstancesClient.List. +// SAPApplicationServerInstancesClientListResponse contains the response from method SAPApplicationServerInstancesClient.NewListPager. type SAPApplicationServerInstancesClientListResponse struct { SAPApplicationServerInstanceList } -// SAPApplicationServerInstancesClientUpdateResponse contains the response from method SAPApplicationServerInstancesClient.Update. +// SAPApplicationServerInstancesClientStartInstanceResponse contains the response from method SAPApplicationServerInstancesClient.BeginStartInstance. +type SAPApplicationServerInstancesClientStartInstanceResponse struct { + OperationStatusResult +} + +// SAPApplicationServerInstancesClientStopInstanceResponse contains the response from method SAPApplicationServerInstancesClient.BeginStopInstance. +type SAPApplicationServerInstancesClientStopInstanceResponse struct { + OperationStatusResult +} + +// SAPApplicationServerInstancesClientUpdateResponse contains the response from method SAPApplicationServerInstancesClient.BeginUpdate. type SAPApplicationServerInstancesClientUpdateResponse struct { SAPApplicationServerInstance } -// SAPCentralInstancesClientCreateResponse contains the response from method SAPCentralInstancesClient.Create. +// SAPCentralInstancesClientCreateResponse contains the response from method SAPCentralInstancesClient.BeginCreate. type SAPCentralInstancesClientCreateResponse struct { SAPCentralServerInstance } -// SAPCentralInstancesClientDeleteResponse contains the response from method SAPCentralInstancesClient.Delete. +// SAPCentralInstancesClientDeleteResponse contains the response from method SAPCentralInstancesClient.BeginDelete. type SAPCentralInstancesClientDeleteResponse struct { OperationStatusResult } @@ -164,22 +144,32 @@ type SAPCentralInstancesClientGetResponse struct { SAPCentralServerInstance } -// SAPCentralInstancesClientListResponse contains the response from method SAPCentralInstancesClient.List. +// SAPCentralInstancesClientListResponse contains the response from method SAPCentralInstancesClient.NewListPager. type SAPCentralInstancesClientListResponse struct { SAPCentralInstanceList } -// SAPCentralInstancesClientUpdateResponse contains the response from method SAPCentralInstancesClient.Update. +// SAPCentralInstancesClientStartInstanceResponse contains the response from method SAPCentralInstancesClient.BeginStartInstance. +type SAPCentralInstancesClientStartInstanceResponse struct { + OperationStatusResult +} + +// SAPCentralInstancesClientStopInstanceResponse contains the response from method SAPCentralInstancesClient.BeginStopInstance. +type SAPCentralInstancesClientStopInstanceResponse struct { + OperationStatusResult +} + +// SAPCentralInstancesClientUpdateResponse contains the response from method SAPCentralInstancesClient.BeginUpdate. type SAPCentralInstancesClientUpdateResponse struct { SAPCentralServerInstance } -// SAPDatabaseInstancesClientCreateResponse contains the response from method SAPDatabaseInstancesClient.Create. +// SAPDatabaseInstancesClientCreateResponse contains the response from method SAPDatabaseInstancesClient.BeginCreate. type SAPDatabaseInstancesClientCreateResponse struct { SAPDatabaseInstance } -// SAPDatabaseInstancesClientDeleteResponse contains the response from method SAPDatabaseInstancesClient.Delete. +// SAPDatabaseInstancesClientDeleteResponse contains the response from method SAPDatabaseInstancesClient.BeginDelete. type SAPDatabaseInstancesClientDeleteResponse struct { OperationStatusResult } @@ -189,22 +179,32 @@ type SAPDatabaseInstancesClientGetResponse struct { SAPDatabaseInstance } -// SAPDatabaseInstancesClientListResponse contains the response from method SAPDatabaseInstancesClient.List. +// SAPDatabaseInstancesClientListResponse contains the response from method SAPDatabaseInstancesClient.NewListPager. type SAPDatabaseInstancesClientListResponse struct { SAPDatabaseInstanceList } -// SAPDatabaseInstancesClientUpdateResponse contains the response from method SAPDatabaseInstancesClient.Update. +// SAPDatabaseInstancesClientStartInstanceResponse contains the response from method SAPDatabaseInstancesClient.BeginStartInstance. +type SAPDatabaseInstancesClientStartInstanceResponse struct { + OperationStatusResult +} + +// SAPDatabaseInstancesClientStopInstanceResponse contains the response from method SAPDatabaseInstancesClient.BeginStopInstance. +type SAPDatabaseInstancesClientStopInstanceResponse struct { + OperationStatusResult +} + +// SAPDatabaseInstancesClientUpdateResponse contains the response from method SAPDatabaseInstancesClient.BeginUpdate. type SAPDatabaseInstancesClientUpdateResponse struct { SAPDatabaseInstance } -// SAPVirtualInstancesClientCreateResponse contains the response from method SAPVirtualInstancesClient.Create. +// SAPVirtualInstancesClientCreateResponse contains the response from method SAPVirtualInstancesClient.BeginCreate. type SAPVirtualInstancesClientCreateResponse struct { SAPVirtualInstance } -// SAPVirtualInstancesClientDeleteResponse contains the response from method SAPVirtualInstancesClient.Delete. +// SAPVirtualInstancesClientDeleteResponse contains the response from method SAPVirtualInstancesClient.BeginDelete. type SAPVirtualInstancesClientDeleteResponse struct { OperationStatusResult } @@ -214,22 +214,22 @@ type SAPVirtualInstancesClientGetResponse struct { SAPVirtualInstance } -// SAPVirtualInstancesClientListByResourceGroupResponse contains the response from method SAPVirtualInstancesClient.ListByResourceGroup. +// SAPVirtualInstancesClientListByResourceGroupResponse contains the response from method SAPVirtualInstancesClient.NewListByResourceGroupPager. type SAPVirtualInstancesClientListByResourceGroupResponse struct { SAPVirtualInstanceList } -// SAPVirtualInstancesClientListBySubscriptionResponse contains the response from method SAPVirtualInstancesClient.ListBySubscription. +// SAPVirtualInstancesClientListBySubscriptionResponse contains the response from method SAPVirtualInstancesClient.NewListBySubscriptionPager. type SAPVirtualInstancesClientListBySubscriptionResponse struct { SAPVirtualInstanceList } -// SAPVirtualInstancesClientStartResponse contains the response from method SAPVirtualInstancesClient.Start. +// SAPVirtualInstancesClientStartResponse contains the response from method SAPVirtualInstancesClient.BeginStart. type SAPVirtualInstancesClientStartResponse struct { OperationStatusResult } -// SAPVirtualInstancesClientStopResponse contains the response from method SAPVirtualInstancesClient.Stop. +// SAPVirtualInstancesClientStopResponse contains the response from method SAPVirtualInstancesClient.BeginStop. type SAPVirtualInstancesClientStopResponse struct { OperationStatusResult } @@ -239,27 +239,27 @@ type SAPVirtualInstancesClientUpdateResponse struct { SAPVirtualInstance } -// SKUsClientListResponse contains the response from method SKUsClient.List. -type SKUsClientListResponse struct { - SKUsListResult +// SapLandscapeMonitorClientCreateResponse contains the response from method SapLandscapeMonitorClient.Create. +type SapLandscapeMonitorClientCreateResponse struct { + SapLandscapeMonitor } -// WordpressInstancesClientCreateOrUpdateResponse contains the response from method WordpressInstancesClient.CreateOrUpdate. -type WordpressInstancesClientCreateOrUpdateResponse struct { - WordpressInstanceResource +// SapLandscapeMonitorClientDeleteResponse contains the response from method SapLandscapeMonitorClient.Delete. +type SapLandscapeMonitorClientDeleteResponse struct { + // placeholder for future response values } -// WordpressInstancesClientDeleteResponse contains the response from method WordpressInstancesClient.Delete. -type WordpressInstancesClientDeleteResponse struct { - // placeholder for future response values +// SapLandscapeMonitorClientGetResponse contains the response from method SapLandscapeMonitorClient.Get. +type SapLandscapeMonitorClientGetResponse struct { + SapLandscapeMonitor } -// WordpressInstancesClientGetResponse contains the response from method WordpressInstancesClient.Get. -type WordpressInstancesClientGetResponse struct { - WordpressInstanceResource +// SapLandscapeMonitorClientListResponse contains the response from method SapLandscapeMonitorClient.List. +type SapLandscapeMonitorClientListResponse struct { + SapLandscapeMonitorListResult } -// WordpressInstancesClientListResponse contains the response from method WordpressInstancesClient.List. -type WordpressInstancesClientListResponse struct { - WordpressInstanceResourceList +// SapLandscapeMonitorClientUpdateResponse contains the response from method SapLandscapeMonitorClient.Update. +type SapLandscapeMonitorClientUpdateResponse struct { + SapLandscapeMonitor } diff --git a/sdk/resourcemanager/workloads/armworkloads/sapapplicationserverinstances_client.go b/sdk/resourcemanager/workloads/armworkloads/sapapplicationserverinstances_client.go index b447b9ba13a7..f38a1eb5e974 100644 --- a/sdk/resourcemanager/workloads/armworkloads/sapapplicationserverinstances_client.go +++ b/sdk/resourcemanager/workloads/armworkloads/sapapplicationserverinstances_client.go @@ -32,9 +32,9 @@ type SAPApplicationServerInstancesClient struct { } // NewSAPApplicationServerInstancesClient creates a new instance of SAPApplicationServerInstancesClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewSAPApplicationServerInstancesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SAPApplicationServerInstancesClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -55,16 +55,17 @@ func NewSAPApplicationServerInstancesClient(subscriptionID string, credential az return client, nil } -// BeginCreate - Puts the SAP Application Server Instance. +// BeginCreate - Puts the SAP Application Server Instance resource. // This will be used by service only. PUT by end user will return a Bad Request error. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// sapVirtualInstanceName - The name of the Virtual Instances for SAP. -// applicationInstanceName - The name of SAP Application Server instance. -// body - The SAP Application Server instance request body. -// options - SAPApplicationServerInstancesClientBeginCreateOptions contains the optional parameters for the SAPApplicationServerInstancesClient.BeginCreate -// method. +// +// Generated from API version 2022-11-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - sapVirtualInstanceName - The name of the Virtual Instances for SAP solutions resource +// - applicationInstanceName - The name of SAP Application Server instance resource. +// - body - The SAP Application Server Instance resource request body. +// - options - SAPApplicationServerInstancesClientBeginCreateOptions contains the optional parameters for the SAPApplicationServerInstancesClient.BeginCreate +// method. func (client *SAPApplicationServerInstancesClient) BeginCreate(ctx context.Context, resourceGroupName string, sapVirtualInstanceName string, applicationInstanceName string, body SAPApplicationServerInstance, options *SAPApplicationServerInstancesClientBeginCreateOptions) (*runtime.Poller[SAPApplicationServerInstancesClientCreateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.create(ctx, resourceGroupName, sapVirtualInstanceName, applicationInstanceName, body, options) @@ -79,10 +80,11 @@ func (client *SAPApplicationServerInstancesClient) BeginCreate(ctx context.Conte } } -// Create - Puts the SAP Application Server Instance. +// Create - Puts the SAP Application Server Instance resource. // This will be used by service only. PUT by end user will return a Bad Request error. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01-preview +// +// Generated from API version 2022-11-01-preview func (client *SAPApplicationServerInstancesClient) create(ctx context.Context, resourceGroupName string, sapVirtualInstanceName string, applicationInstanceName string, body SAPApplicationServerInstance, options *SAPApplicationServerInstancesClientBeginCreateOptions) (*http.Response, error) { req, err := client.createCreateRequest(ctx, resourceGroupName, sapVirtualInstanceName, applicationInstanceName, body, options) if err != nil { @@ -122,21 +124,22 @@ func (client *SAPApplicationServerInstancesClient) createCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01-preview") + reqQP.Set("api-version", "2022-11-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, body) } -// BeginDelete - Deletes the SAP Application Server Instance. +// BeginDelete - Deletes the SAP Application Server Instance resource. // This operation will be used by service only. Delete by end user will return a Bad Request error. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// sapVirtualInstanceName - The name of the Virtual Instances for SAP. -// applicationInstanceName - The name of SAP Application Server instance. -// options - SAPApplicationServerInstancesClientBeginDeleteOptions contains the optional parameters for the SAPApplicationServerInstancesClient.BeginDelete -// method. +// +// Generated from API version 2022-11-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - sapVirtualInstanceName - The name of the Virtual Instances for SAP solutions resource +// - applicationInstanceName - The name of SAP Application Server instance resource. +// - options - SAPApplicationServerInstancesClientBeginDeleteOptions contains the optional parameters for the SAPApplicationServerInstancesClient.BeginDelete +// method. func (client *SAPApplicationServerInstancesClient) BeginDelete(ctx context.Context, resourceGroupName string, sapVirtualInstanceName string, applicationInstanceName string, options *SAPApplicationServerInstancesClientBeginDeleteOptions) (*runtime.Poller[SAPApplicationServerInstancesClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, sapVirtualInstanceName, applicationInstanceName, options) @@ -151,10 +154,11 @@ func (client *SAPApplicationServerInstancesClient) BeginDelete(ctx context.Conte } } -// Delete - Deletes the SAP Application Server Instance. +// Delete - Deletes the SAP Application Server Instance resource. // This operation will be used by service only. Delete by end user will return a Bad Request error. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01-preview +// +// Generated from API version 2022-11-01-preview func (client *SAPApplicationServerInstancesClient) deleteOperation(ctx context.Context, resourceGroupName string, sapVirtualInstanceName string, applicationInstanceName string, options *SAPApplicationServerInstancesClientBeginDeleteOptions) (*http.Response, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, sapVirtualInstanceName, applicationInstanceName, options) if err != nil { @@ -194,20 +198,21 @@ func (client *SAPApplicationServerInstancesClient) deleteCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01-preview") + reqQP.Set("api-version", "2022-11-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil } -// Get - Gets the SAP Application Server Instance. +// Get - Gets the SAP Application Server Instance corresponding to the Virtual Instance for SAP solutions resource. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// sapVirtualInstanceName - The name of the Virtual Instances for SAP. -// applicationInstanceName - The name of SAP Application Server instance. -// options - SAPApplicationServerInstancesClientGetOptions contains the optional parameters for the SAPApplicationServerInstancesClient.Get -// method. +// +// Generated from API version 2022-11-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - sapVirtualInstanceName - The name of the Virtual Instances for SAP solutions resource +// - applicationInstanceName - The name of SAP Application Server instance resource. +// - options - SAPApplicationServerInstancesClientGetOptions contains the optional parameters for the SAPApplicationServerInstancesClient.Get +// method. func (client *SAPApplicationServerInstancesClient) Get(ctx context.Context, resourceGroupName string, sapVirtualInstanceName string, applicationInstanceName string, options *SAPApplicationServerInstancesClientGetOptions) (SAPApplicationServerInstancesClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, sapVirtualInstanceName, applicationInstanceName, options) if err != nil { @@ -247,7 +252,7 @@ func (client *SAPApplicationServerInstancesClient) getCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01-preview") + reqQP.Set("api-version", "2022-11-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -262,13 +267,13 @@ func (client *SAPApplicationServerInstancesClient) getHandleResponse(resp *http. return result, nil } -// NewListPager - Lists the SAP Application server Instances in an SVI. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// sapVirtualInstanceName - The name of the Virtual Instances for SAP. -// options - SAPApplicationServerInstancesClientListOptions contains the optional parameters for the SAPApplicationServerInstancesClient.List -// method. +// NewListPager - Lists the SAP Application Server Instance resources for a given Virtual Instance for SAP solutions resource. +// +// Generated from API version 2022-11-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - sapVirtualInstanceName - The name of the Virtual Instances for SAP solutions resource +// - options - SAPApplicationServerInstancesClientListOptions contains the optional parameters for the SAPApplicationServerInstancesClient.NewListPager +// method. func (client *SAPApplicationServerInstancesClient) NewListPager(resourceGroupName string, sapVirtualInstanceName string, options *SAPApplicationServerInstancesClientListOptions) *runtime.Pager[SAPApplicationServerInstancesClientListResponse] { return runtime.NewPager(runtime.PagingHandler[SAPApplicationServerInstancesClientListResponse]{ More: func(page SAPApplicationServerInstancesClientListResponse) bool { @@ -317,7 +322,7 @@ func (client *SAPApplicationServerInstancesClient) listCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01-preview") + reqQP.Set("api-version", "2022-11-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -332,15 +337,163 @@ func (client *SAPApplicationServerInstancesClient) listHandleResponse(resp *http return result, nil } -// BeginUpdate - Puts the SAP Application Server Instance. +// BeginStartInstance - Starts the SAP Application Server Instance. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-11-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - sapVirtualInstanceName - The name of the Virtual Instances for SAP solutions resource +// - applicationInstanceName - The name of SAP Application Server instance resource. +// - options - SAPApplicationServerInstancesClientBeginStartInstanceOptions contains the optional parameters for the SAPApplicationServerInstancesClient.BeginStartInstance +// method. +func (client *SAPApplicationServerInstancesClient) BeginStartInstance(ctx context.Context, resourceGroupName string, sapVirtualInstanceName string, applicationInstanceName string, options *SAPApplicationServerInstancesClientBeginStartInstanceOptions) (*runtime.Poller[SAPApplicationServerInstancesClientStartInstanceResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.startInstance(ctx, resourceGroupName, sapVirtualInstanceName, applicationInstanceName, options) + if err != nil { + return nil, err + } + return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[SAPApplicationServerInstancesClientStartInstanceResponse]{ + FinalStateVia: runtime.FinalStateViaAzureAsyncOp, + }) + } else { + return runtime.NewPollerFromResumeToken[SAPApplicationServerInstancesClientStartInstanceResponse](options.ResumeToken, client.pl, nil) + } +} + +// StartInstance - Starts the SAP Application Server Instance. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-11-01-preview +func (client *SAPApplicationServerInstancesClient) startInstance(ctx context.Context, resourceGroupName string, sapVirtualInstanceName string, applicationInstanceName string, options *SAPApplicationServerInstancesClientBeginStartInstanceOptions) (*http.Response, error) { + req, err := client.startInstanceCreateRequest(ctx, resourceGroupName, sapVirtualInstanceName, applicationInstanceName, options) + if err != nil { + return nil, err + } + resp, err := client.pl.Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { + return nil, runtime.NewResponseError(resp) + } + return resp, nil +} + +// startInstanceCreateRequest creates the StartInstance request. +func (client *SAPApplicationServerInstancesClient) startInstanceCreateRequest(ctx context.Context, resourceGroupName string, sapVirtualInstanceName string, applicationInstanceName string, options *SAPApplicationServerInstancesClientBeginStartInstanceOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Workloads/sapVirtualInstances/{sapVirtualInstanceName}/applicationInstances/{applicationInstanceName}/start" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if sapVirtualInstanceName == "" { + return nil, errors.New("parameter sapVirtualInstanceName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{sapVirtualInstanceName}", url.PathEscape(sapVirtualInstanceName)) + if applicationInstanceName == "" { + return nil, errors.New("parameter applicationInstanceName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{applicationInstanceName}", url.PathEscape(applicationInstanceName)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-11-01-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// BeginStopInstance - Stops the SAP Application Server Instance. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-11-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - sapVirtualInstanceName - The name of the Virtual Instances for SAP solutions resource +// - applicationInstanceName - The name of SAP Application Server instance resource. +// - options - SAPApplicationServerInstancesClientBeginStopInstanceOptions contains the optional parameters for the SAPApplicationServerInstancesClient.BeginStopInstance +// method. +func (client *SAPApplicationServerInstancesClient) BeginStopInstance(ctx context.Context, resourceGroupName string, sapVirtualInstanceName string, applicationInstanceName string, options *SAPApplicationServerInstancesClientBeginStopInstanceOptions) (*runtime.Poller[SAPApplicationServerInstancesClientStopInstanceResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.stopInstance(ctx, resourceGroupName, sapVirtualInstanceName, applicationInstanceName, options) + if err != nil { + return nil, err + } + return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[SAPApplicationServerInstancesClientStopInstanceResponse]{ + FinalStateVia: runtime.FinalStateViaAzureAsyncOp, + }) + } else { + return runtime.NewPollerFromResumeToken[SAPApplicationServerInstancesClientStopInstanceResponse](options.ResumeToken, client.pl, nil) + } +} + +// StopInstance - Stops the SAP Application Server Instance. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-11-01-preview +func (client *SAPApplicationServerInstancesClient) stopInstance(ctx context.Context, resourceGroupName string, sapVirtualInstanceName string, applicationInstanceName string, options *SAPApplicationServerInstancesClientBeginStopInstanceOptions) (*http.Response, error) { + req, err := client.stopInstanceCreateRequest(ctx, resourceGroupName, sapVirtualInstanceName, applicationInstanceName, options) + if err != nil { + return nil, err + } + resp, err := client.pl.Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { + return nil, runtime.NewResponseError(resp) + } + return resp, nil +} + +// stopInstanceCreateRequest creates the StopInstance request. +func (client *SAPApplicationServerInstancesClient) stopInstanceCreateRequest(ctx context.Context, resourceGroupName string, sapVirtualInstanceName string, applicationInstanceName string, options *SAPApplicationServerInstancesClientBeginStopInstanceOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Workloads/sapVirtualInstances/{sapVirtualInstanceName}/applicationInstances/{applicationInstanceName}/stop" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if sapVirtualInstanceName == "" { + return nil, errors.New("parameter sapVirtualInstanceName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{sapVirtualInstanceName}", url.PathEscape(sapVirtualInstanceName)) + if applicationInstanceName == "" { + return nil, errors.New("parameter applicationInstanceName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{applicationInstanceName}", url.PathEscape(applicationInstanceName)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-11-01-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + if options != nil && options.Body != nil { + return req, runtime.MarshalAsJSON(req, *options.Body) + } + return req, nil +} + +// BeginUpdate - Puts the SAP Application Server Instance resource. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// sapVirtualInstanceName - The name of the Virtual Instances for SAP. -// applicationInstanceName - The name of SAP Application Server instance. -// body - The SAP Application Server instance request body. -// options - SAPApplicationServerInstancesClientBeginUpdateOptions contains the optional parameters for the SAPApplicationServerInstancesClient.BeginUpdate -// method. +// +// Generated from API version 2022-11-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - sapVirtualInstanceName - The name of the Virtual Instances for SAP solutions resource +// - applicationInstanceName - The name of SAP Application Server instance resource. +// - body - The SAP Application Server Instance resource request body. +// - options - SAPApplicationServerInstancesClientBeginUpdateOptions contains the optional parameters for the SAPApplicationServerInstancesClient.BeginUpdate +// method. func (client *SAPApplicationServerInstancesClient) BeginUpdate(ctx context.Context, resourceGroupName string, sapVirtualInstanceName string, applicationInstanceName string, body UpdateSAPApplicationInstanceRequest, options *SAPApplicationServerInstancesClientBeginUpdateOptions) (*runtime.Poller[SAPApplicationServerInstancesClientUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.update(ctx, resourceGroupName, sapVirtualInstanceName, applicationInstanceName, body, options) @@ -355,9 +508,10 @@ func (client *SAPApplicationServerInstancesClient) BeginUpdate(ctx context.Conte } } -// Update - Puts the SAP Application Server Instance. +// Update - Puts the SAP Application Server Instance resource. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01-preview +// +// Generated from API version 2022-11-01-preview func (client *SAPApplicationServerInstancesClient) update(ctx context.Context, resourceGroupName string, sapVirtualInstanceName string, applicationInstanceName string, body UpdateSAPApplicationInstanceRequest, options *SAPApplicationServerInstancesClientBeginUpdateOptions) (*http.Response, error) { req, err := client.updateCreateRequest(ctx, resourceGroupName, sapVirtualInstanceName, applicationInstanceName, body, options) if err != nil { @@ -397,7 +551,7 @@ func (client *SAPApplicationServerInstancesClient) updateCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01-preview") + reqQP.Set("api-version", "2022-11-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, body) diff --git a/sdk/resourcemanager/workloads/armworkloads/sapapplicationserverinstances_client_example_test.go b/sdk/resourcemanager/workloads/armworkloads/sapapplicationserverinstances_client_example_test.go index 62d64d7abda8..d017bcec5e34 100644 --- a/sdk/resourcemanager/workloads/armworkloads/sapapplicationserverinstances_client_example_test.go +++ b/sdk/resourcemanager/workloads/armworkloads/sapapplicationserverinstances_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armworkloads_test @@ -17,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/workloads/armworkloads" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPApplicationServerInstances_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/sapvirtualinstances/SAPApplicationServerInstances_Get.json func ExampleSAPApplicationServerInstancesClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -28,20 +29,51 @@ func ExampleSAPApplicationServerInstancesClient_Get() { if err != nil { log.Fatalf("failed to create client: %v", err) } - res, err := client.Get(ctx, - "test-rg", - "X00", - "app01", - nil) + res, err := client.Get(ctx, "test-rg", "X00", "app01", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.SAPApplicationServerInstance = armworkloads.SAPApplicationServerInstance{ + // Name: to.Ptr("app01"), + // Type: to.Ptr("Microsoft.Workloads/sapVirtualInstances/applicationInstances"), + // ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapVirtualInstances/X00/applicationInstances/app01"), + // SystemData: &armworkloads.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // CreatedBy: to.Ptr("user@xyz.com"), + // CreatedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // LastModifiedBy: to.Ptr("user@xyz.com"), + // LastModifiedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // }, + // Location: to.Ptr("westcentralus"), + // Tags: map[string]*string{ + // }, + // Properties: &armworkloads.SAPApplicationServerProperties{ + // GatewayPort: to.Ptr[int64](3300), + // Health: to.Ptr(armworkloads.SAPHealthStateUnknown), + // Hostname: to.Ptr("vh-nw1"), + // IcmHTTPPort: to.Ptr[int64](3312), + // IcmHTTPSPort: to.Ptr[int64](3313), + // InstanceNo: to.Ptr("00"), + // IPAddress: to.Ptr("10.0.0.5"), + // KernelPatch: to.Ptr("patch 300"), + // KernelVersion: to.Ptr("777"), + // ProvisioningState: to.Ptr(armworkloads.SapVirtualInstanceProvisioningStateSucceeded), + // Status: to.Ptr(armworkloads.SAPVirtualInstanceStatus("Unknown")), + // VMDetails: []*armworkloads.ApplicationServerVMDetails{ + // { + // Type: to.Ptr(armworkloads.ApplicationServerVirtualMachineTypeActive), + // VirtualMachineID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Compute/virtualMachines/app01-vm"), + // }}, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPApplicationServerInstances_Create.json -func ExampleSAPApplicationServerInstancesClient_BeginCreate() { +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/sapvirtualinstances/SAPApplicationServerInstances_Create_HA_AvSet.json +func ExampleSAPApplicationServerInstancesClient_BeginCreate_createSapApplicationServerInstancesForHaSystemWithAvailabilitySet() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -51,16 +83,88 @@ func ExampleSAPApplicationServerInstancesClient_BeginCreate() { if err != nil { log.Fatalf("failed to create client: %v", err) } - poller, err := client.BeginCreate(ctx, - "test-rg", - "X00", - "app01", - armworkloads.SAPApplicationServerInstance{ - Location: to.Ptr("westcentralus"), - Tags: map[string]*string{}, - Properties: &armworkloads.SAPApplicationServerProperties{}, - }, - nil) + poller, err := client.BeginCreate(ctx, "test-rg", "X00", "app01", armworkloads.SAPApplicationServerInstance{ + Location: to.Ptr("westcentralus"), + Tags: map[string]*string{}, + Properties: &armworkloads.SAPApplicationServerProperties{}, + }, 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.SAPApplicationServerInstance = armworkloads.SAPApplicationServerInstance{ + // Name: to.Ptr("app01"), + // Type: to.Ptr("Microsoft.Workloads/sapVirtualInstances/applicationInstances"), + // ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapVirtualInstances/X00/applicationInstances/app01"), + // SystemData: &armworkloads.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // CreatedBy: to.Ptr("user@xyz.com"), + // CreatedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // LastModifiedBy: to.Ptr("user@xyz.com"), + // LastModifiedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // }, + // Location: to.Ptr("westcentralus"), + // Tags: map[string]*string{ + // }, + // Properties: &armworkloads.SAPApplicationServerProperties{ + // GatewayPort: to.Ptr[int64](3300), + // Health: to.Ptr(armworkloads.SAPHealthStateUnknown), + // Hostname: to.Ptr("vh-nw1"), + // IcmHTTPPort: to.Ptr[int64](3312), + // IcmHTTPSPort: to.Ptr[int64](3313), + // InstanceNo: to.Ptr("01"), + // IPAddress: to.Ptr("10.0.0.5"), + // KernelPatch: to.Ptr("patch 300"), + // KernelVersion: to.Ptr("777"), + // LoadBalancerDetails: &armworkloads.LoadBalancerDetails{ + // ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Network/loadBalancers/cs-loadBalancer"), + // }, + // ProvisioningState: to.Ptr(armworkloads.SapVirtualInstanceProvisioningStateSucceeded), + // Status: to.Ptr(armworkloads.SAPVirtualInstanceStatusRunning), + // VMDetails: []*armworkloads.ApplicationServerVMDetails{ + // { + // Type: to.Ptr(armworkloads.ApplicationServerVirtualMachineTypeActive), + // StorageDetails: []*armworkloads.StorageInformation{ + // { + // ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Storage/storageAccounts/nfsstorageaccount"), + // }}, + // VirtualMachineID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Compute/virtualMachines/cs-vm1"), + // }, + // { + // Type: to.Ptr(armworkloads.ApplicationServerVirtualMachineTypeStandby), + // StorageDetails: []*armworkloads.StorageInformation{ + // { + // ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Storage/storageAccounts/nfsstorageaccount"), + // }}, + // VirtualMachineID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Compute/virtualMachines/cs-vm2"), + // }}, + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/sapvirtualinstances/SAPApplicationServerInstances_Create.json +func ExampleSAPApplicationServerInstancesClient_BeginCreate_sapApplicationServerInstancesCreate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armworkloads.NewSAPApplicationServerInstancesClient("6d875e77-e412-4d7d-9af4-8895278b4443", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreate(ctx, "test-rg", "X00", "app01", armworkloads.SAPApplicationServerInstance{ + Location: to.Ptr("westcentralus"), + Tags: map[string]*string{}, + Properties: &armworkloads.SAPApplicationServerProperties{}, + }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } @@ -68,11 +172,46 @@ func ExampleSAPApplicationServerInstancesClient_BeginCreate() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.SAPApplicationServerInstance = armworkloads.SAPApplicationServerInstance{ + // Name: to.Ptr("app01"), + // Type: to.Ptr("Microsoft.Workloads/sapVirtualInstances/applicationInstances"), + // ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapVirtualInstances/X00/applicationInstances/app01"), + // SystemData: &armworkloads.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // CreatedBy: to.Ptr("user@xyz.com"), + // CreatedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // LastModifiedBy: to.Ptr("user@xyz.com"), + // LastModifiedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // }, + // Location: to.Ptr("westcentralus"), + // Tags: map[string]*string{ + // }, + // Properties: &armworkloads.SAPApplicationServerProperties{ + // GatewayPort: to.Ptr[int64](3300), + // Health: to.Ptr(armworkloads.SAPHealthStateUnknown), + // Hostname: to.Ptr("vh-nw1"), + // IcmHTTPPort: to.Ptr[int64](3312), + // IcmHTTPSPort: to.Ptr[int64](3313), + // InstanceNo: to.Ptr("01"), + // IPAddress: to.Ptr("10.0.0.5"), + // KernelPatch: to.Ptr("patch 300"), + // KernelVersion: to.Ptr("777"), + // ProvisioningState: to.Ptr(armworkloads.SapVirtualInstanceProvisioningStateSucceeded), + // Status: to.Ptr(armworkloads.SAPVirtualInstanceStatusRunning), + // VMDetails: []*armworkloads.ApplicationServerVMDetails{ + // { + // Type: to.Ptr(armworkloads.ApplicationServerVirtualMachineTypeActive), + // VirtualMachineID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Compute/virtualMachines/app01-vm"), + // }}, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPApplicationServerInstances_Update.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/sapvirtualinstances/SAPApplicationServerInstances_Update.json func ExampleSAPApplicationServerInstancesClient_BeginUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -83,16 +222,11 @@ func ExampleSAPApplicationServerInstancesClient_BeginUpdate() { if err != nil { log.Fatalf("failed to create client: %v", err) } - poller, err := client.BeginUpdate(ctx, - "test-rg", - "X00", - "app01", - armworkloads.UpdateSAPApplicationInstanceRequest{ - Tags: map[string]*string{ - "tag1": to.Ptr("value1"), - }, + poller, err := client.BeginUpdate(ctx, "test-rg", "X00", "app01", armworkloads.UpdateSAPApplicationInstanceRequest{ + Tags: map[string]*string{ + "tag1": to.Ptr("value1"), }, - nil) + }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } @@ -100,11 +234,46 @@ func ExampleSAPApplicationServerInstancesClient_BeginUpdate() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.SAPApplicationServerInstance = armworkloads.SAPApplicationServerInstance{ + // Name: to.Ptr("app01"), + // Type: to.Ptr("Microsoft.Workloads/sapVirtualInstances/applicationInstances"), + // ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapVirtualInstances/X00/applicationInstances/app01"), + // SystemData: &armworkloads.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // CreatedBy: to.Ptr("user@xyz.com"), + // CreatedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // LastModifiedBy: to.Ptr("user@xyz.com"), + // LastModifiedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // }, + // Location: to.Ptr("westcentralus"), + // Tags: map[string]*string{ + // }, + // Properties: &armworkloads.SAPApplicationServerProperties{ + // GatewayPort: to.Ptr[int64](3300), + // Health: to.Ptr(armworkloads.SAPHealthStateUnknown), + // Hostname: to.Ptr("vh-nw1"), + // IcmHTTPPort: to.Ptr[int64](3312), + // IcmHTTPSPort: to.Ptr[int64](3313), + // InstanceNo: to.Ptr("01"), + // IPAddress: to.Ptr("10.0.0.5"), + // KernelPatch: to.Ptr("patch 300"), + // KernelVersion: to.Ptr("777"), + // ProvisioningState: to.Ptr(armworkloads.SapVirtualInstanceProvisioningStateSucceeded), + // Status: to.Ptr(armworkloads.SAPVirtualInstanceStatus("Unknown")), + // VMDetails: []*armworkloads.ApplicationServerVMDetails{ + // { + // Type: to.Ptr(armworkloads.ApplicationServerVirtualMachineTypeActive), + // VirtualMachineID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Compute/virtualMachines/app01-vm"), + // }}, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPApplicationServerInstances_Delete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/sapvirtualinstances/SAPApplicationServerInstances_Delete.json func ExampleSAPApplicationServerInstancesClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -115,11 +284,7 @@ func ExampleSAPApplicationServerInstancesClient_BeginDelete() { if err != nil { log.Fatalf("failed to create client: %v", err) } - poller, err := client.BeginDelete(ctx, - "test-rg", - "X00", - "app01", - nil) + poller, err := client.BeginDelete(ctx, "test-rg", "X00", "app01", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } @@ -127,11 +292,19 @@ func ExampleSAPApplicationServerInstancesClient_BeginDelete() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.OperationStatusResult = armworkloads.OperationStatusResult{ + // Name: to.Ptr("1e4193c3-206e-4916-b124-1da16175eb0e"), + // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T03:38:07.000Z"); return t}()), + // ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/operations/locations/centralus/1e4193c3-206e-4916-b124-1da16175eb0e"), + // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T03:36:07.000Z"); return t}()), + // Status: to.Ptr("Succeeded"), + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPApplicationServerInstances_List.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/sapvirtualinstances/SAPApplicationServerInstances_List.json func ExampleSAPApplicationServerInstancesClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -142,17 +315,152 @@ func ExampleSAPApplicationServerInstancesClient_NewListPager() { if err != nil { log.Fatalf("failed to create client: %v", err) } - pager := client.NewListPager("test-rg", - "X00", - nil) + pager := client.NewListPager("test-rg", "X00", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.SAPApplicationServerInstanceList = armworkloads.SAPApplicationServerInstanceList{ + // Value: []*armworkloads.SAPApplicationServerInstance{ + // { + // Name: to.Ptr("app01"), + // Type: to.Ptr("Microsoft.Workloads/sapVirtualInstances/applicationInstances"), + // ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapVirtualInstances/X00/applicationInstances/app01"), + // SystemData: &armworkloads.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // CreatedBy: to.Ptr("user@xyz.com"), + // CreatedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // LastModifiedBy: to.Ptr("user@xyz.com"), + // LastModifiedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // }, + // Location: to.Ptr("westcentralus"), + // Tags: map[string]*string{ + // }, + // Properties: &armworkloads.SAPApplicationServerProperties{ + // GatewayPort: to.Ptr[int64](3300), + // Health: to.Ptr(armworkloads.SAPHealthStateUnknown), + // Hostname: to.Ptr("vh-nw1"), + // IcmHTTPPort: to.Ptr[int64](3312), + // IcmHTTPSPort: to.Ptr[int64](3313), + // InstanceNo: to.Ptr("00"), + // IPAddress: to.Ptr("10.0.0.5"), + // KernelPatch: to.Ptr("patch 300"), + // KernelVersion: to.Ptr("777"), + // ProvisioningState: to.Ptr(armworkloads.SapVirtualInstanceProvisioningStateSucceeded), + // Status: to.Ptr(armworkloads.SAPVirtualInstanceStatus("Unknown")), + // VMDetails: []*armworkloads.ApplicationServerVMDetails{ + // { + // Type: to.Ptr(armworkloads.ApplicationServerVirtualMachineTypeActive), + // VirtualMachineID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Compute/virtualMachines/app01-vm"), + // }}, + // }, + // }, + // { + // Name: to.Ptr("app02"), + // Type: to.Ptr("Microsoft.Workloads/sapVirtualInstances/applicationInstances"), + // ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapVirtualInstances/X00/applicationInstances/app02"), + // SystemData: &armworkloads.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // CreatedBy: to.Ptr("user@xyz.com"), + // CreatedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // LastModifiedBy: to.Ptr("user@xyz.com"), + // LastModifiedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // }, + // Location: to.Ptr("westcentralus"), + // Tags: map[string]*string{ + // }, + // Properties: &armworkloads.SAPApplicationServerProperties{ + // GatewayPort: to.Ptr[int64](3300), + // Health: to.Ptr(armworkloads.SAPHealthStateUnknown), + // Hostname: to.Ptr("vh-nw1"), + // IcmHTTPPort: to.Ptr[int64](3312), + // IcmHTTPSPort: to.Ptr[int64](3313), + // InstanceNo: to.Ptr("01"), + // IPAddress: to.Ptr("10.0.0.5"), + // KernelPatch: to.Ptr("patch 300"), + // KernelVersion: to.Ptr("777"), + // ProvisioningState: to.Ptr(armworkloads.SapVirtualInstanceProvisioningStateSucceeded), + // Status: to.Ptr(armworkloads.SAPVirtualInstanceStatus("Unknown")), + // VMDetails: []*armworkloads.ApplicationServerVMDetails{ + // { + // Type: to.Ptr(armworkloads.ApplicationServerVirtualMachineTypeActive), + // VirtualMachineID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Compute/virtualMachines/app01-vm"), + // }}, + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/sapvirtualinstances/SAPApplicationServerInstances_StartInstance.json +func ExampleSAPApplicationServerInstancesClient_BeginStartInstance() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armworkloads.NewSAPApplicationServerInstancesClient("8e17e36c-42e9-4cd5-a078-7b44883414e0", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginStartInstance(ctx, "test-rg", "X00", "app01", 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.OperationStatusResult = armworkloads.OperationStatusResult{ + // Name: to.Ptr("app01"), + // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T03:38:07.000Z"); return t}()), + // ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapVirtualInstances/X00/applicationInstances/app01"), + // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T03:36:07.000Z"); return t}()), + // Status: to.Ptr("Succeeded"), + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/sapvirtualinstances/SAPApplicationServerInstances_StopInstance.json +func ExampleSAPApplicationServerInstancesClient_BeginStopInstance() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armworkloads.NewSAPApplicationServerInstancesClient("8e17e36c-42e9-4cd5-a078-7b44883414e0", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginStopInstance(ctx, "test-rg", "X00", "app01", &armworkloads.SAPApplicationServerInstancesClientBeginStopInstanceOptions{Body: &armworkloads.StopRequest{ + SoftStopTimeoutSeconds: to.Ptr[int64](0), + }, + }) + 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.OperationStatusResult = armworkloads.OperationStatusResult{ + // Name: to.Ptr("app01"), + // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T03:38:07.000Z"); return t}()), + // ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapVirtualInstances/X00/applicationInstances/app01"), + // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T03:36:07.000Z"); return t}()), + // Status: to.Ptr("Succeeded"), + // } } diff --git a/sdk/resourcemanager/workloads/armworkloads/sapcentralinstances_client.go b/sdk/resourcemanager/workloads/armworkloads/sapcentralinstances_client.go index 30f73802d398..83e4c554b218 100644 --- a/sdk/resourcemanager/workloads/armworkloads/sapcentralinstances_client.go +++ b/sdk/resourcemanager/workloads/armworkloads/sapcentralinstances_client.go @@ -32,9 +32,9 @@ type SAPCentralInstancesClient struct { } // NewSAPCentralInstancesClient creates a new instance of SAPCentralInstancesClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewSAPCentralInstancesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SAPCentralInstancesClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -55,16 +55,17 @@ func NewSAPCentralInstancesClient(subscriptionID string, credential azcore.Token return client, nil } -// BeginCreate - Puts the SAP Central Instance. -// This will be used by service only. PUT by end user will return a Bad Request error. +// BeginCreate - Creates the SAP Central Services Instance resource. +// This will be used by service only. PUT operation on this resource by end user will return a Bad Request error. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// sapVirtualInstanceName - The name of the Virtual Instances for SAP. -// centralInstanceName - Central Instance name string modeled as parameter for auto generation to work correctly. -// body - The SAP Central Server instance request body. -// options - SAPCentralInstancesClientBeginCreateOptions contains the optional parameters for the SAPCentralInstancesClient.BeginCreate -// method. +// +// Generated from API version 2022-11-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - sapVirtualInstanceName - The name of the Virtual Instances for SAP solutions resource +// - centralInstanceName - Central Services Instance resource name string modeled as parameter for auto generation to work correctly. +// - body - The SAP Central Services Instance request body. +// - options - SAPCentralInstancesClientBeginCreateOptions contains the optional parameters for the SAPCentralInstancesClient.BeginCreate +// method. func (client *SAPCentralInstancesClient) BeginCreate(ctx context.Context, resourceGroupName string, sapVirtualInstanceName string, centralInstanceName string, body SAPCentralServerInstance, options *SAPCentralInstancesClientBeginCreateOptions) (*runtime.Poller[SAPCentralInstancesClientCreateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.create(ctx, resourceGroupName, sapVirtualInstanceName, centralInstanceName, body, options) @@ -79,10 +80,11 @@ func (client *SAPCentralInstancesClient) BeginCreate(ctx context.Context, resour } } -// Create - Puts the SAP Central Instance. -// This will be used by service only. PUT by end user will return a Bad Request error. +// Create - Creates the SAP Central Services Instance resource. +// This will be used by service only. PUT operation on this resource by end user will return a Bad Request error. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01-preview +// +// Generated from API version 2022-11-01-preview func (client *SAPCentralInstancesClient) create(ctx context.Context, resourceGroupName string, sapVirtualInstanceName string, centralInstanceName string, body SAPCentralServerInstance, options *SAPCentralInstancesClientBeginCreateOptions) (*http.Response, error) { req, err := client.createCreateRequest(ctx, resourceGroupName, sapVirtualInstanceName, centralInstanceName, body, options) if err != nil { @@ -122,21 +124,24 @@ func (client *SAPCentralInstancesClient) createCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01-preview") + reqQP.Set("api-version", "2022-11-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, body) } -// BeginDelete - Deletes the SAP Central Instance. -// This will be used by service only. Delete by end user will return a Bad Request error. +// BeginDelete - Deletes the SAP Central Services Instance resource. +// This will be used by service only. Delete operation on this resource by end user will return a Bad Request error. You can +// delete the parent resource, which is the Virtual Instance for SAP solutions +// resource, using the delete operation on it. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// sapVirtualInstanceName - The name of the Virtual Instances for SAP. -// centralInstanceName - Central Instance name string modeled as parameter for auto generation to work correctly. -// options - SAPCentralInstancesClientBeginDeleteOptions contains the optional parameters for the SAPCentralInstancesClient.BeginDelete -// method. +// +// Generated from API version 2022-11-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - sapVirtualInstanceName - The name of the Virtual Instances for SAP solutions resource +// - centralInstanceName - Central Services Instance resource name string modeled as parameter for auto generation to work correctly. +// - options - SAPCentralInstancesClientBeginDeleteOptions contains the optional parameters for the SAPCentralInstancesClient.BeginDelete +// method. func (client *SAPCentralInstancesClient) BeginDelete(ctx context.Context, resourceGroupName string, sapVirtualInstanceName string, centralInstanceName string, options *SAPCentralInstancesClientBeginDeleteOptions) (*runtime.Poller[SAPCentralInstancesClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, sapVirtualInstanceName, centralInstanceName, options) @@ -151,10 +156,13 @@ func (client *SAPCentralInstancesClient) BeginDelete(ctx context.Context, resour } } -// Delete - Deletes the SAP Central Instance. -// This will be used by service only. Delete by end user will return a Bad Request error. +// Delete - Deletes the SAP Central Services Instance resource. +// This will be used by service only. Delete operation on this resource by end user will return a Bad Request error. You can +// delete the parent resource, which is the Virtual Instance for SAP solutions +// resource, using the delete operation on it. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01-preview +// +// Generated from API version 2022-11-01-preview func (client *SAPCentralInstancesClient) deleteOperation(ctx context.Context, resourceGroupName string, sapVirtualInstanceName string, centralInstanceName string, options *SAPCentralInstancesClientBeginDeleteOptions) (*http.Response, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, sapVirtualInstanceName, centralInstanceName, options) if err != nil { @@ -194,19 +202,20 @@ func (client *SAPCentralInstancesClient) deleteCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01-preview") + reqQP.Set("api-version", "2022-11-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil } -// Get - Gets the SAP Central Instance. +// Get - Gets the SAP Central Services Instance resource. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// sapVirtualInstanceName - The name of the Virtual Instances for SAP. -// centralInstanceName - Central Instance name string modeled as parameter for auto generation to work correctly. -// options - SAPCentralInstancesClientGetOptions contains the optional parameters for the SAPCentralInstancesClient.Get method. +// +// Generated from API version 2022-11-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - sapVirtualInstanceName - The name of the Virtual Instances for SAP solutions resource +// - centralInstanceName - Central Services Instance resource name string modeled as parameter for auto generation to work correctly. +// - options - SAPCentralInstancesClientGetOptions contains the optional parameters for the SAPCentralInstancesClient.Get method. func (client *SAPCentralInstancesClient) Get(ctx context.Context, resourceGroupName string, sapVirtualInstanceName string, centralInstanceName string, options *SAPCentralInstancesClientGetOptions) (SAPCentralInstancesClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, sapVirtualInstanceName, centralInstanceName, options) if err != nil { @@ -246,7 +255,7 @@ func (client *SAPCentralInstancesClient) getCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01-preview") + reqQP.Set("api-version", "2022-11-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -261,13 +270,13 @@ func (client *SAPCentralInstancesClient) getHandleResponse(resp *http.Response) return result, nil } -// NewListPager - Lists the SAP Central Instances in an SVI. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// sapVirtualInstanceName - The name of the Virtual Instances for SAP. -// options - SAPCentralInstancesClientListOptions contains the optional parameters for the SAPCentralInstancesClient.List -// method. +// NewListPager - Lists the SAP Central Services Instance resource for the given Virtual Instance for SAP solutions resource. +// +// Generated from API version 2022-11-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - sapVirtualInstanceName - The name of the Virtual Instances for SAP solutions resource +// - options - SAPCentralInstancesClientListOptions contains the optional parameters for the SAPCentralInstancesClient.NewListPager +// method. func (client *SAPCentralInstancesClient) NewListPager(resourceGroupName string, sapVirtualInstanceName string, options *SAPCentralInstancesClientListOptions) *runtime.Pager[SAPCentralInstancesClientListResponse] { return runtime.NewPager(runtime.PagingHandler[SAPCentralInstancesClientListResponse]{ More: func(page SAPCentralInstancesClientListResponse) bool { @@ -316,7 +325,7 @@ func (client *SAPCentralInstancesClient) listCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01-preview") + reqQP.Set("api-version", "2022-11-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -331,16 +340,164 @@ func (client *SAPCentralInstancesClient) listHandleResponse(resp *http.Response) return result, nil } -// BeginUpdate - Updates the SAP Central Instance. -// This can be used to update tags. +// BeginStartInstance - Starts the SAP Central Services Instance. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-11-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - sapVirtualInstanceName - The name of the Virtual Instances for SAP solutions resource +// - centralInstanceName - Central Services Instance resource name string modeled as parameter for auto generation to work correctly. +// - options - SAPCentralInstancesClientBeginStartInstanceOptions contains the optional parameters for the SAPCentralInstancesClient.BeginStartInstance +// method. +func (client *SAPCentralInstancesClient) BeginStartInstance(ctx context.Context, resourceGroupName string, sapVirtualInstanceName string, centralInstanceName string, options *SAPCentralInstancesClientBeginStartInstanceOptions) (*runtime.Poller[SAPCentralInstancesClientStartInstanceResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.startInstance(ctx, resourceGroupName, sapVirtualInstanceName, centralInstanceName, options) + if err != nil { + return nil, err + } + return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[SAPCentralInstancesClientStartInstanceResponse]{ + FinalStateVia: runtime.FinalStateViaAzureAsyncOp, + }) + } else { + return runtime.NewPollerFromResumeToken[SAPCentralInstancesClientStartInstanceResponse](options.ResumeToken, client.pl, nil) + } +} + +// StartInstance - Starts the SAP Central Services Instance. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-11-01-preview +func (client *SAPCentralInstancesClient) startInstance(ctx context.Context, resourceGroupName string, sapVirtualInstanceName string, centralInstanceName string, options *SAPCentralInstancesClientBeginStartInstanceOptions) (*http.Response, error) { + req, err := client.startInstanceCreateRequest(ctx, resourceGroupName, sapVirtualInstanceName, centralInstanceName, options) + if err != nil { + return nil, err + } + resp, err := client.pl.Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { + return nil, runtime.NewResponseError(resp) + } + return resp, nil +} + +// startInstanceCreateRequest creates the StartInstance request. +func (client *SAPCentralInstancesClient) startInstanceCreateRequest(ctx context.Context, resourceGroupName string, sapVirtualInstanceName string, centralInstanceName string, options *SAPCentralInstancesClientBeginStartInstanceOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Workloads/sapVirtualInstances/{sapVirtualInstanceName}/centralInstances/{centralInstanceName}/start" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if sapVirtualInstanceName == "" { + return nil, errors.New("parameter sapVirtualInstanceName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{sapVirtualInstanceName}", url.PathEscape(sapVirtualInstanceName)) + if centralInstanceName == "" { + return nil, errors.New("parameter centralInstanceName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{centralInstanceName}", url.PathEscape(centralInstanceName)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-11-01-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// BeginStopInstance - Stops the SAP Central Services Instance. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-11-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - sapVirtualInstanceName - The name of the Virtual Instances for SAP solutions resource +// - centralInstanceName - Central Services Instance resource name string modeled as parameter for auto generation to work correctly. +// - options - SAPCentralInstancesClientBeginStopInstanceOptions contains the optional parameters for the SAPCentralInstancesClient.BeginStopInstance +// method. +func (client *SAPCentralInstancesClient) BeginStopInstance(ctx context.Context, resourceGroupName string, sapVirtualInstanceName string, centralInstanceName string, options *SAPCentralInstancesClientBeginStopInstanceOptions) (*runtime.Poller[SAPCentralInstancesClientStopInstanceResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.stopInstance(ctx, resourceGroupName, sapVirtualInstanceName, centralInstanceName, options) + if err != nil { + return nil, err + } + return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[SAPCentralInstancesClientStopInstanceResponse]{ + FinalStateVia: runtime.FinalStateViaAzureAsyncOp, + }) + } else { + return runtime.NewPollerFromResumeToken[SAPCentralInstancesClientStopInstanceResponse](options.ResumeToken, client.pl, nil) + } +} + +// StopInstance - Stops the SAP Central Services Instance. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-11-01-preview +func (client *SAPCentralInstancesClient) stopInstance(ctx context.Context, resourceGroupName string, sapVirtualInstanceName string, centralInstanceName string, options *SAPCentralInstancesClientBeginStopInstanceOptions) (*http.Response, error) { + req, err := client.stopInstanceCreateRequest(ctx, resourceGroupName, sapVirtualInstanceName, centralInstanceName, options) + if err != nil { + return nil, err + } + resp, err := client.pl.Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { + return nil, runtime.NewResponseError(resp) + } + return resp, nil +} + +// stopInstanceCreateRequest creates the StopInstance request. +func (client *SAPCentralInstancesClient) stopInstanceCreateRequest(ctx context.Context, resourceGroupName string, sapVirtualInstanceName string, centralInstanceName string, options *SAPCentralInstancesClientBeginStopInstanceOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Workloads/sapVirtualInstances/{sapVirtualInstanceName}/centralInstances/{centralInstanceName}/stop" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if sapVirtualInstanceName == "" { + return nil, errors.New("parameter sapVirtualInstanceName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{sapVirtualInstanceName}", url.PathEscape(sapVirtualInstanceName)) + if centralInstanceName == "" { + return nil, errors.New("parameter centralInstanceName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{centralInstanceName}", url.PathEscape(centralInstanceName)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-11-01-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + if options != nil && options.Body != nil { + return req, runtime.MarshalAsJSON(req, *options.Body) + } + return req, nil +} + +// BeginUpdate - Updates the SAP Central Services Instance resource. +// This can be used to update tags on the resource. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// sapVirtualInstanceName - The name of the Virtual Instances for SAP. -// centralInstanceName - Central Instance name string modeled as parameter for auto generation to work correctly. -// body - The SAP Central Server instance request body. -// options - SAPCentralInstancesClientBeginUpdateOptions contains the optional parameters for the SAPCentralInstancesClient.BeginUpdate -// method. +// +// Generated from API version 2022-11-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - sapVirtualInstanceName - The name of the Virtual Instances for SAP solutions resource +// - centralInstanceName - Central Services Instance resource name string modeled as parameter for auto generation to work correctly. +// - body - The SAP Central Services Instance resource request body. +// - options - SAPCentralInstancesClientBeginUpdateOptions contains the optional parameters for the SAPCentralInstancesClient.BeginUpdate +// method. func (client *SAPCentralInstancesClient) BeginUpdate(ctx context.Context, resourceGroupName string, sapVirtualInstanceName string, centralInstanceName string, body UpdateSAPCentralInstanceRequest, options *SAPCentralInstancesClientBeginUpdateOptions) (*runtime.Poller[SAPCentralInstancesClientUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.update(ctx, resourceGroupName, sapVirtualInstanceName, centralInstanceName, body, options) @@ -355,10 +512,11 @@ func (client *SAPCentralInstancesClient) BeginUpdate(ctx context.Context, resour } } -// Update - Updates the SAP Central Instance. -// This can be used to update tags. +// Update - Updates the SAP Central Services Instance resource. +// This can be used to update tags on the resource. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01-preview +// +// Generated from API version 2022-11-01-preview func (client *SAPCentralInstancesClient) update(ctx context.Context, resourceGroupName string, sapVirtualInstanceName string, centralInstanceName string, body UpdateSAPCentralInstanceRequest, options *SAPCentralInstancesClientBeginUpdateOptions) (*http.Response, error) { req, err := client.updateCreateRequest(ctx, resourceGroupName, sapVirtualInstanceName, centralInstanceName, body, options) if err != nil { @@ -398,7 +556,7 @@ func (client *SAPCentralInstancesClient) updateCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01-preview") + reqQP.Set("api-version", "2022-11-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, body) diff --git a/sdk/resourcemanager/workloads/armworkloads/sapcentralinstances_client_example_test.go b/sdk/resourcemanager/workloads/armworkloads/sapcentralinstances_client_example_test.go index 90a0f52b96b7..5656fe75c1e0 100644 --- a/sdk/resourcemanager/workloads/armworkloads/sapcentralinstances_client_example_test.go +++ b/sdk/resourcemanager/workloads/armworkloads/sapcentralinstances_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armworkloads_test @@ -17,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/workloads/armworkloads" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPCentralInstances_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/sapvirtualinstances/SAPCentralInstances_Get.json func ExampleSAPCentralInstancesClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -28,20 +29,74 @@ func ExampleSAPCentralInstancesClient_Get() { if err != nil { log.Fatalf("failed to create client: %v", err) } - res, err := client.Get(ctx, - "test-rg", - "X00", - "centralServer", - nil) + res, err := client.Get(ctx, "test-rg", "X00", "centralServer", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.SAPCentralServerInstance = armworkloads.SAPCentralServerInstance{ + // Name: to.Ptr("centralServer"), + // Type: to.Ptr("Microsoft.Workloads/sapVirtualInstances/centralInstances"), + // ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapVirtualInstances/X00/centralInstances/centralServer"), + // SystemData: &armworkloads.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // CreatedBy: to.Ptr("user@xyz.com"), + // CreatedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // LastModifiedBy: to.Ptr("user@xyz.com"), + // LastModifiedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // }, + // Location: to.Ptr("westcentralus"), + // Tags: map[string]*string{ + // }, + // Properties: &armworkloads.SAPCentralServerProperties{ + // EnqueueReplicationServerProperties: &armworkloads.EnqueueReplicationServerProperties{ + // ErsVersion: to.Ptr(armworkloads.EnqueueReplicationServerTypeEnqueueReplicator1), + // Health: to.Ptr(armworkloads.SAPHealthStateHealthy), + // Hostname: to.Ptr("vh-ers1"), + // InstanceNo: to.Ptr("00"), + // IPAddress: to.Ptr("10.0.0.5"), + // KernelPatch: to.Ptr("patch 300"), + // KernelVersion: to.Ptr("777"), + // }, + // EnqueueServerProperties: &armworkloads.EnqueueServerProperties{ + // Health: to.Ptr(armworkloads.SAPHealthStateUnknown), + // Hostname: to.Ptr("vh-ascs1"), + // IPAddress: to.Ptr("10.0.0.5"), + // Port: to.Ptr[int64](3600), + // }, + // GatewayServerProperties: &armworkloads.GatewayServerProperties{ + // Health: to.Ptr(armworkloads.SAPHealthStateDegraded), + // Port: to.Ptr[int64](3300), + // }, + // Health: to.Ptr(armworkloads.SAPHealthStateUnknown), + // InstanceNo: to.Ptr("00"), + // KernelPatch: to.Ptr("patch 300"), + // KernelVersion: to.Ptr("777"), + // MessageServerProperties: &armworkloads.MessageServerProperties{ + // Health: to.Ptr(armworkloads.SAPHealthStateUnhealthy), + // Hostname: to.Ptr("vh-ascs1"), + // HTTPPort: to.Ptr[int64](8100), + // HTTPSPort: to.Ptr[int64](44400), + // InternalMsPort: to.Ptr[int64](3900), + // IPAddress: to.Ptr("10.0.0.5"), + // MSPort: to.Ptr[int64](3600), + // }, + // ProvisioningState: to.Ptr(armworkloads.SapVirtualInstanceProvisioningStateSucceeded), + // Status: to.Ptr(armworkloads.SAPVirtualInstanceStatusRunning), + // VMDetails: []*armworkloads.CentralServerVMDetails{ + // { + // Type: to.Ptr(armworkloads.CentralServerVirtualMachineTypePrimary), + // VirtualMachineID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Compute/virtualMachines/cs-vm"), + // }}, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPCentralInstances_Create.json -func ExampleSAPCentralInstancesClient_BeginCreate() { +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/sapvirtualinstances/SAPCentralInstances_Create_HA_AvSet.json +func ExampleSAPCentralInstancesClient_BeginCreate_createSapCentralInstancesForHaSystemWithAvailabilitySet() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -51,16 +106,111 @@ func ExampleSAPCentralInstancesClient_BeginCreate() { if err != nil { log.Fatalf("failed to create client: %v", err) } - poller, err := client.BeginCreate(ctx, - "test-rg", - "X00", - "centralServer", - armworkloads.SAPCentralServerInstance{ - Location: to.Ptr("westcentralus"), - Tags: map[string]*string{}, - Properties: &armworkloads.SAPCentralServerProperties{}, - }, - nil) + poller, err := client.BeginCreate(ctx, "test-rg", "X00", "centralServer", armworkloads.SAPCentralServerInstance{ + Location: to.Ptr("westcentralus"), + Tags: map[string]*string{}, + Properties: &armworkloads.SAPCentralServerProperties{}, + }, 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.SAPCentralServerInstance = armworkloads.SAPCentralServerInstance{ + // Name: to.Ptr("centralServer"), + // Type: to.Ptr("Microsoft.Workloads/sapVirtualInstances/centralInstances"), + // ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapVirtualInstances/X00/centralInstances/centralServer"), + // SystemData: &armworkloads.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // CreatedBy: to.Ptr("user@xyz.com"), + // CreatedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // LastModifiedBy: to.Ptr("user@xyz.com"), + // LastModifiedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // }, + // Location: to.Ptr("westcentralus"), + // Tags: map[string]*string{ + // }, + // Properties: &armworkloads.SAPCentralServerProperties{ + // EnqueueReplicationServerProperties: &armworkloads.EnqueueReplicationServerProperties{ + // ErsVersion: to.Ptr(armworkloads.EnqueueReplicationServerTypeEnqueueReplicator1), + // Health: to.Ptr(armworkloads.SAPHealthStateHealthy), + // Hostname: to.Ptr("vh-ers1"), + // InstanceNo: to.Ptr("00"), + // IPAddress: to.Ptr("10.0.0.5"), + // KernelPatch: to.Ptr("patch 300"), + // KernelVersion: to.Ptr("777"), + // }, + // EnqueueServerProperties: &armworkloads.EnqueueServerProperties{ + // Health: to.Ptr(armworkloads.SAPHealthStateHealthy), + // Hostname: to.Ptr("vh-ascs1"), + // IPAddress: to.Ptr("10.0.0.5"), + // Port: to.Ptr[int64](3600), + // }, + // GatewayServerProperties: &armworkloads.GatewayServerProperties{ + // Health: to.Ptr(armworkloads.SAPHealthStateHealthy), + // Port: to.Ptr[int64](3300), + // }, + // Health: to.Ptr(armworkloads.SAPHealthStateUnknown), + // InstanceNo: to.Ptr("00"), + // KernelPatch: to.Ptr("patch 300"), + // KernelVersion: to.Ptr("777"), + // LoadBalancerDetails: &armworkloads.LoadBalancerDetails{ + // ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Network/loadBalancers/cs-ASCS-loadBalancer"), + // }, + // MessageServerProperties: &armworkloads.MessageServerProperties{ + // Health: to.Ptr(armworkloads.SAPHealthStateHealthy), + // Hostname: to.Ptr("vh-ascs1"), + // HTTPPort: to.Ptr[int64](8100), + // HTTPSPort: to.Ptr[int64](44400), + // InternalMsPort: to.Ptr[int64](3900), + // IPAddress: to.Ptr("10.0.0.5"), + // MSPort: to.Ptr[int64](3600), + // }, + // ProvisioningState: to.Ptr(armworkloads.SapVirtualInstanceProvisioningStateSucceeded), + // Status: to.Ptr(armworkloads.SAPVirtualInstanceStatusRunning), + // VMDetails: []*armworkloads.CentralServerVMDetails{ + // { + // Type: to.Ptr(armworkloads.CentralServerVirtualMachineTypePrimary), + // StorageDetails: []*armworkloads.StorageInformation{ + // { + // ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Storage/storageAccounts/nfsstorageaccount"), + // }}, + // VirtualMachineID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Compute/virtualMachines/cs-vm1"), + // }, + // { + // Type: to.Ptr(armworkloads.CentralServerVirtualMachineTypePrimary), + // StorageDetails: []*armworkloads.StorageInformation{ + // { + // ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Storage/storageAccounts/nfsstorageaccount"), + // }}, + // VirtualMachineID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Compute/virtualMachines/cs-vm2"), + // }}, + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/sapvirtualinstances/SAPCentralInstances_Create.json +func ExampleSAPCentralInstancesClient_BeginCreate_sapCentralInstancesCreate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armworkloads.NewSAPCentralInstancesClient("6d875e77-e412-4d7d-9af4-8895278b4443", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreate(ctx, "test-rg", "X00", "centralServer", armworkloads.SAPCentralServerInstance{ + Location: to.Ptr("westcentralus"), + Tags: map[string]*string{}, + Properties: &armworkloads.SAPCentralServerProperties{}, + }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } @@ -68,11 +218,69 @@ func ExampleSAPCentralInstancesClient_BeginCreate() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.SAPCentralServerInstance = armworkloads.SAPCentralServerInstance{ + // Name: to.Ptr("centralServer"), + // Type: to.Ptr("Microsoft.Workloads/sapVirtualInstances/centralInstances"), + // ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapVirtualInstances/X00/centralInstances/centralServer"), + // SystemData: &armworkloads.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // CreatedBy: to.Ptr("user@xyz.com"), + // CreatedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // LastModifiedBy: to.Ptr("user@xyz.com"), + // LastModifiedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // }, + // Location: to.Ptr("westcentralus"), + // Tags: map[string]*string{ + // }, + // Properties: &armworkloads.SAPCentralServerProperties{ + // EnqueueReplicationServerProperties: &armworkloads.EnqueueReplicationServerProperties{ + // ErsVersion: to.Ptr(armworkloads.EnqueueReplicationServerTypeEnqueueReplicator1), + // Health: to.Ptr(armworkloads.SAPHealthStateHealthy), + // Hostname: to.Ptr("vh-ers1"), + // InstanceNo: to.Ptr("00"), + // IPAddress: to.Ptr("10.0.0.5"), + // KernelPatch: to.Ptr("patch 300"), + // KernelVersion: to.Ptr("777"), + // }, + // EnqueueServerProperties: &armworkloads.EnqueueServerProperties{ + // Health: to.Ptr(armworkloads.SAPHealthStateHealthy), + // Hostname: to.Ptr("vh-ascs1"), + // IPAddress: to.Ptr("10.0.0.5"), + // Port: to.Ptr[int64](3600), + // }, + // GatewayServerProperties: &armworkloads.GatewayServerProperties{ + // Health: to.Ptr(armworkloads.SAPHealthStateHealthy), + // Port: to.Ptr[int64](3300), + // }, + // Health: to.Ptr(armworkloads.SAPHealthStateUnknown), + // InstanceNo: to.Ptr("00"), + // KernelPatch: to.Ptr("patch 300"), + // KernelVersion: to.Ptr("777"), + // MessageServerProperties: &armworkloads.MessageServerProperties{ + // Health: to.Ptr(armworkloads.SAPHealthStateHealthy), + // Hostname: to.Ptr("vh-ascs1"), + // HTTPPort: to.Ptr[int64](8100), + // HTTPSPort: to.Ptr[int64](44400), + // InternalMsPort: to.Ptr[int64](3900), + // IPAddress: to.Ptr("10.0.0.5"), + // MSPort: to.Ptr[int64](3600), + // }, + // ProvisioningState: to.Ptr(armworkloads.SapVirtualInstanceProvisioningStateSucceeded), + // Status: to.Ptr(armworkloads.SAPVirtualInstanceStatusRunning), + // VMDetails: []*armworkloads.CentralServerVMDetails{ + // { + // Type: to.Ptr(armworkloads.CentralServerVirtualMachineTypePrimary), + // VirtualMachineID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Compute/virtualMachines/cs-vm"), + // }}, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPCentralInstances_Update.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/sapvirtualinstances/SAPCentralInstances_Update.json func ExampleSAPCentralInstancesClient_BeginUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -83,16 +291,11 @@ func ExampleSAPCentralInstancesClient_BeginUpdate() { if err != nil { log.Fatalf("failed to create client: %v", err) } - poller, err := client.BeginUpdate(ctx, - "test-rg", - "X00", - "centralServer", - armworkloads.UpdateSAPCentralInstanceRequest{ - Tags: map[string]*string{ - "tag1": to.Ptr("value1"), - }, + poller, err := client.BeginUpdate(ctx, "test-rg", "X00", "centralServer", armworkloads.UpdateSAPCentralInstanceRequest{ + Tags: map[string]*string{ + "tag1": to.Ptr("value1"), }, - nil) + }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } @@ -100,11 +303,69 @@ func ExampleSAPCentralInstancesClient_BeginUpdate() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.SAPCentralServerInstance = armworkloads.SAPCentralServerInstance{ + // Name: to.Ptr("centralServer"), + // Type: to.Ptr("Microsoft.Workloads/sapVirtualInstances/centralInstances"), + // ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapVirtualInstances/X00/centralInstances/centralServer"), + // SystemData: &armworkloads.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // CreatedBy: to.Ptr("user@xyz.com"), + // CreatedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // LastModifiedBy: to.Ptr("user@xyz.com"), + // LastModifiedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // }, + // Location: to.Ptr("westcentralus"), + // Tags: map[string]*string{ + // }, + // Properties: &armworkloads.SAPCentralServerProperties{ + // EnqueueReplicationServerProperties: &armworkloads.EnqueueReplicationServerProperties{ + // ErsVersion: to.Ptr(armworkloads.EnqueueReplicationServerTypeEnqueueReplicator1), + // Health: to.Ptr(armworkloads.SAPHealthStateHealthy), + // Hostname: to.Ptr("vh-ers1"), + // InstanceNo: to.Ptr("00"), + // IPAddress: to.Ptr("10.0.0.5"), + // KernelPatch: to.Ptr("patch 300"), + // KernelVersion: to.Ptr("777"), + // }, + // EnqueueServerProperties: &armworkloads.EnqueueServerProperties{ + // Health: to.Ptr(armworkloads.SAPHealthStateHealthy), + // Hostname: to.Ptr("vh-ascs1"), + // IPAddress: to.Ptr("10.0.0.5"), + // Port: to.Ptr[int64](3600), + // }, + // GatewayServerProperties: &armworkloads.GatewayServerProperties{ + // Health: to.Ptr(armworkloads.SAPHealthStateHealthy), + // Port: to.Ptr[int64](3300), + // }, + // Health: to.Ptr(armworkloads.SAPHealthStateUnknown), + // InstanceNo: to.Ptr("00"), + // KernelPatch: to.Ptr("patch 300"), + // KernelVersion: to.Ptr("777"), + // MessageServerProperties: &armworkloads.MessageServerProperties{ + // Health: to.Ptr(armworkloads.SAPHealthStateHealthy), + // Hostname: to.Ptr("vh-ascs1"), + // HTTPPort: to.Ptr[int64](8100), + // HTTPSPort: to.Ptr[int64](44400), + // InternalMsPort: to.Ptr[int64](3900), + // IPAddress: to.Ptr("10.0.0.5"), + // MSPort: to.Ptr[int64](3600), + // }, + // ProvisioningState: to.Ptr(armworkloads.SapVirtualInstanceProvisioningStateSucceeded), + // Status: to.Ptr(armworkloads.SAPVirtualInstanceStatusRunning), + // VMDetails: []*armworkloads.CentralServerVMDetails{ + // { + // Type: to.Ptr(armworkloads.CentralServerVirtualMachineTypePrimary), + // VirtualMachineID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Compute/virtualMachines/cs-vm"), + // }}, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPCentralInstances_Delete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/sapvirtualinstances/SAPCentralInstances_Delete.json func ExampleSAPCentralInstancesClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -115,11 +376,7 @@ func ExampleSAPCentralInstancesClient_BeginDelete() { if err != nil { log.Fatalf("failed to create client: %v", err) } - poller, err := client.BeginDelete(ctx, - "test-rg", - "X00", - "centralServer", - nil) + poller, err := client.BeginDelete(ctx, "test-rg", "X00", "centralServer", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } @@ -127,11 +384,19 @@ func ExampleSAPCentralInstancesClient_BeginDelete() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.OperationStatusResult = armworkloads.OperationStatusResult{ + // Name: to.Ptr("1e4193c3-206e-4916-b124-1da16175eb0e"), + // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T03:38:07.000Z"); return t}()), + // ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/operations/locations/centralus/1e4193c3-206e-4916-b124-1da16175eb0e"), + // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T03:36:07.000Z"); return t}()), + // Status: to.Ptr("Succeeded"), + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPCentralInstances_List.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/sapvirtualinstances/SAPCentralInstances_List.json func ExampleSAPCentralInstancesClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -142,17 +407,141 @@ func ExampleSAPCentralInstancesClient_NewListPager() { if err != nil { log.Fatalf("failed to create client: %v", err) } - pager := client.NewListPager("test-rg", - "X00", - nil) + pager := client.NewListPager("test-rg", "X00", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.SAPCentralInstanceList = armworkloads.SAPCentralInstanceList{ + // Value: []*armworkloads.SAPCentralServerInstance{ + // { + // Name: to.Ptr("centralServer"), + // Type: to.Ptr("Microsoft.Workloads/sapVirtualInstances/centralInstances"), + // ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapVirtualInstances/X00/centralInstances/centralServer"), + // SystemData: &armworkloads.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // CreatedBy: to.Ptr("user@xyz.com"), + // CreatedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // LastModifiedBy: to.Ptr("user@xyz.com"), + // LastModifiedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // }, + // Location: to.Ptr("westcentralus"), + // Tags: map[string]*string{ + // }, + // Properties: &armworkloads.SAPCentralServerProperties{ + // EnqueueReplicationServerProperties: &armworkloads.EnqueueReplicationServerProperties{ + // ErsVersion: to.Ptr(armworkloads.EnqueueReplicationServerTypeEnqueueReplicator1), + // Health: to.Ptr(armworkloads.SAPHealthStateHealthy), + // Hostname: to.Ptr("vh-ers1"), + // InstanceNo: to.Ptr("00"), + // IPAddress: to.Ptr("10.0.0.5"), + // KernelPatch: to.Ptr("patch 300"), + // KernelVersion: to.Ptr("777"), + // }, + // EnqueueServerProperties: &armworkloads.EnqueueServerProperties{ + // Health: to.Ptr(armworkloads.SAPHealthStateHealthy), + // Hostname: to.Ptr("vh-ascs1"), + // IPAddress: to.Ptr("10.0.0.5"), + // Port: to.Ptr[int64](3600), + // }, + // GatewayServerProperties: &armworkloads.GatewayServerProperties{ + // Health: to.Ptr(armworkloads.SAPHealthStateHealthy), + // Port: to.Ptr[int64](3300), + // }, + // Health: to.Ptr(armworkloads.SAPHealthStateUnknown), + // InstanceNo: to.Ptr("00"), + // KernelPatch: to.Ptr("patch 300"), + // KernelVersion: to.Ptr("777"), + // MessageServerProperties: &armworkloads.MessageServerProperties{ + // Health: to.Ptr(armworkloads.SAPHealthStateHealthy), + // Hostname: to.Ptr("vh-ascs1"), + // HTTPPort: to.Ptr[int64](8100), + // HTTPSPort: to.Ptr[int64](44400), + // InternalMsPort: to.Ptr[int64](3900), + // IPAddress: to.Ptr("10.0.0.5"), + // MSPort: to.Ptr[int64](3600), + // }, + // ProvisioningState: to.Ptr(armworkloads.SapVirtualInstanceProvisioningStateSucceeded), + // Status: to.Ptr(armworkloads.SAPVirtualInstanceStatusRunning), + // VMDetails: []*armworkloads.CentralServerVMDetails{ + // { + // Type: to.Ptr(armworkloads.CentralServerVirtualMachineTypePrimary), + // VirtualMachineID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Compute/virtualMachines/cs-vm"), + // }}, + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/sapvirtualinstances/SAPCentralInstances_StartInstance.json +func ExampleSAPCentralInstancesClient_BeginStartInstance() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armworkloads.NewSAPCentralInstancesClient("8e17e36c-42e9-4cd5-a078-7b44883414e0", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginStartInstance(ctx, "test-rg", "X00", "centralServer", 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.OperationStatusResult = armworkloads.OperationStatusResult{ + // Name: to.Ptr("centralServer"), + // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T03:38:07.000Z"); return t}()), + // ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapVirtualInstances/X00/centralInstances/centralServer"), + // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T03:36:07.000Z"); return t}()), + // Status: to.Ptr("Succeeded"), + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/sapvirtualinstances/SAPCentralInstances_StopInstance.json +func ExampleSAPCentralInstancesClient_BeginStopInstance() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armworkloads.NewSAPCentralInstancesClient("8e17e36c-42e9-4cd5-a078-7b44883414e0", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginStopInstance(ctx, "test-rg", "X00", "centralServer", &armworkloads.SAPCentralInstancesClientBeginStopInstanceOptions{Body: &armworkloads.StopRequest{ + SoftStopTimeoutSeconds: to.Ptr[int64](1200), + }, + }) + 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.OperationStatusResult = armworkloads.OperationStatusResult{ + // Name: to.Ptr("centralServer"), + // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T03:38:07.000Z"); return t}()), + // ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapVirtualInstances/X00/centralInstances/centralServer"), + // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T03:36:07.000Z"); return t}()), + // Status: to.Ptr("Succeeded"), + // } } diff --git a/sdk/resourcemanager/workloads/armworkloads/sapdatabaseinstances_client.go b/sdk/resourcemanager/workloads/armworkloads/sapdatabaseinstances_client.go index a2ef7e5a4e81..db38b5a736cd 100644 --- a/sdk/resourcemanager/workloads/armworkloads/sapdatabaseinstances_client.go +++ b/sdk/resourcemanager/workloads/armworkloads/sapdatabaseinstances_client.go @@ -32,9 +32,9 @@ type SAPDatabaseInstancesClient struct { } // NewSAPDatabaseInstancesClient creates a new instance of SAPDatabaseInstancesClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewSAPDatabaseInstancesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SAPDatabaseInstancesClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -55,16 +55,17 @@ func NewSAPDatabaseInstancesClient(subscriptionID string, credential azcore.Toke return client, nil } -// BeginCreate - Puts the SAP Database Instance. +// BeginCreate - Creates the Database resource corresponding to the Virtual Instance for SAP solutions resource. // This will be used by service only. PUT by end user will return a Bad Request error. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// sapVirtualInstanceName - The name of the Virtual Instances for SAP. -// databaseInstanceName - Database Instance string modeled as parameter for auto generation to work correctly. -// body - The SAP Database Server instance request body. -// options - SAPDatabaseInstancesClientBeginCreateOptions contains the optional parameters for the SAPDatabaseInstancesClient.BeginCreate -// method. +// +// Generated from API version 2022-11-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - sapVirtualInstanceName - The name of the Virtual Instances for SAP solutions resource +// - databaseInstanceName - Database resource name string modeled as parameter for auto generation to work correctly. +// - body - Request body of Database resource of a SAP system. +// - options - SAPDatabaseInstancesClientBeginCreateOptions contains the optional parameters for the SAPDatabaseInstancesClient.BeginCreate +// method. func (client *SAPDatabaseInstancesClient) BeginCreate(ctx context.Context, resourceGroupName string, sapVirtualInstanceName string, databaseInstanceName string, body SAPDatabaseInstance, options *SAPDatabaseInstancesClientBeginCreateOptions) (*runtime.Poller[SAPDatabaseInstancesClientCreateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.create(ctx, resourceGroupName, sapVirtualInstanceName, databaseInstanceName, body, options) @@ -79,10 +80,11 @@ func (client *SAPDatabaseInstancesClient) BeginCreate(ctx context.Context, resou } } -// Create - Puts the SAP Database Instance. +// Create - Creates the Database resource corresponding to the Virtual Instance for SAP solutions resource. // This will be used by service only. PUT by end user will return a Bad Request error. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01-preview +// +// Generated from API version 2022-11-01-preview func (client *SAPDatabaseInstancesClient) create(ctx context.Context, resourceGroupName string, sapVirtualInstanceName string, databaseInstanceName string, body SAPDatabaseInstance, options *SAPDatabaseInstancesClientBeginCreateOptions) (*http.Response, error) { req, err := client.createCreateRequest(ctx, resourceGroupName, sapVirtualInstanceName, databaseInstanceName, body, options) if err != nil { @@ -122,21 +124,22 @@ func (client *SAPDatabaseInstancesClient) createCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01-preview") + reqQP.Set("api-version", "2022-11-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, body) } -// BeginDelete - Deletes the SAP Database Instance. +// BeginDelete - Deletes the Database resource corresponding to a Virtual Instance for SAP solutions resource. // This will be used by service only. Delete by end user will return a Bad Request error. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// sapVirtualInstanceName - The name of the Virtual Instances for SAP. -// databaseInstanceName - Database Instance string modeled as parameter for auto generation to work correctly. -// options - SAPDatabaseInstancesClientBeginDeleteOptions contains the optional parameters for the SAPDatabaseInstancesClient.BeginDelete -// method. +// +// Generated from API version 2022-11-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - sapVirtualInstanceName - The name of the Virtual Instances for SAP solutions resource +// - databaseInstanceName - Database resource name string modeled as parameter for auto generation to work correctly. +// - options - SAPDatabaseInstancesClientBeginDeleteOptions contains the optional parameters for the SAPDatabaseInstancesClient.BeginDelete +// method. func (client *SAPDatabaseInstancesClient) BeginDelete(ctx context.Context, resourceGroupName string, sapVirtualInstanceName string, databaseInstanceName string, options *SAPDatabaseInstancesClientBeginDeleteOptions) (*runtime.Poller[SAPDatabaseInstancesClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, sapVirtualInstanceName, databaseInstanceName, options) @@ -151,10 +154,11 @@ func (client *SAPDatabaseInstancesClient) BeginDelete(ctx context.Context, resou } } -// Delete - Deletes the SAP Database Instance. +// Delete - Deletes the Database resource corresponding to a Virtual Instance for SAP solutions resource. // This will be used by service only. Delete by end user will return a Bad Request error. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01-preview +// +// Generated from API version 2022-11-01-preview func (client *SAPDatabaseInstancesClient) deleteOperation(ctx context.Context, resourceGroupName string, sapVirtualInstanceName string, databaseInstanceName string, options *SAPDatabaseInstancesClientBeginDeleteOptions) (*http.Response, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, sapVirtualInstanceName, databaseInstanceName, options) if err != nil { @@ -194,20 +198,21 @@ func (client *SAPDatabaseInstancesClient) deleteCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01-preview") + reqQP.Set("api-version", "2022-11-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil } -// Get - Gets the SAP Database Instance. +// Get - Gets the SAP Database Instance resource. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// sapVirtualInstanceName - The name of the Virtual Instances for SAP. -// databaseInstanceName - Database Instance string modeled as parameter for auto generation to work correctly. -// options - SAPDatabaseInstancesClientGetOptions contains the optional parameters for the SAPDatabaseInstancesClient.Get -// method. +// +// Generated from API version 2022-11-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - sapVirtualInstanceName - The name of the Virtual Instances for SAP solutions resource +// - databaseInstanceName - Database resource name string modeled as parameter for auto generation to work correctly. +// - options - SAPDatabaseInstancesClientGetOptions contains the optional parameters for the SAPDatabaseInstancesClient.Get +// method. func (client *SAPDatabaseInstancesClient) Get(ctx context.Context, resourceGroupName string, sapVirtualInstanceName string, databaseInstanceName string, options *SAPDatabaseInstancesClientGetOptions) (SAPDatabaseInstancesClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, sapVirtualInstanceName, databaseInstanceName, options) if err != nil { @@ -247,7 +252,7 @@ func (client *SAPDatabaseInstancesClient) getCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01-preview") + reqQP.Set("api-version", "2022-11-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -262,13 +267,13 @@ func (client *SAPDatabaseInstancesClient) getHandleResponse(resp *http.Response) return result, nil } -// NewListPager - Lists the SAP Database Instances in an SVI. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// sapVirtualInstanceName - The name of the Virtual Instances for SAP. -// options - SAPDatabaseInstancesClientListOptions contains the optional parameters for the SAPDatabaseInstancesClient.List -// method. +// NewListPager - Lists the Database resources associated with a Virtual Instance for SAP solutions resource. +// +// Generated from API version 2022-11-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - sapVirtualInstanceName - The name of the Virtual Instances for SAP solutions resource +// - options - SAPDatabaseInstancesClientListOptions contains the optional parameters for the SAPDatabaseInstancesClient.NewListPager +// method. func (client *SAPDatabaseInstancesClient) NewListPager(resourceGroupName string, sapVirtualInstanceName string, options *SAPDatabaseInstancesClientListOptions) *runtime.Pager[SAPDatabaseInstancesClientListResponse] { return runtime.NewPager(runtime.PagingHandler[SAPDatabaseInstancesClientListResponse]{ More: func(page SAPDatabaseInstancesClientListResponse) bool { @@ -317,7 +322,7 @@ func (client *SAPDatabaseInstancesClient) listCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01-preview") + reqQP.Set("api-version", "2022-11-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -332,15 +337,163 @@ func (client *SAPDatabaseInstancesClient) listHandleResponse(resp *http.Response return result, nil } -// BeginUpdate - Puts the SAP Database Instance. +// BeginStartInstance - Starts the database instance of the SAP system. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-11-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - sapVirtualInstanceName - The name of the Virtual Instances for SAP solutions resource +// - databaseInstanceName - Database resource name string modeled as parameter for auto generation to work correctly. +// - options - SAPDatabaseInstancesClientBeginStartInstanceOptions contains the optional parameters for the SAPDatabaseInstancesClient.BeginStartInstance +// method. +func (client *SAPDatabaseInstancesClient) BeginStartInstance(ctx context.Context, resourceGroupName string, sapVirtualInstanceName string, databaseInstanceName string, options *SAPDatabaseInstancesClientBeginStartInstanceOptions) (*runtime.Poller[SAPDatabaseInstancesClientStartInstanceResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.startInstance(ctx, resourceGroupName, sapVirtualInstanceName, databaseInstanceName, options) + if err != nil { + return nil, err + } + return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[SAPDatabaseInstancesClientStartInstanceResponse]{ + FinalStateVia: runtime.FinalStateViaAzureAsyncOp, + }) + } else { + return runtime.NewPollerFromResumeToken[SAPDatabaseInstancesClientStartInstanceResponse](options.ResumeToken, client.pl, nil) + } +} + +// StartInstance - Starts the database instance of the SAP system. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-11-01-preview +func (client *SAPDatabaseInstancesClient) startInstance(ctx context.Context, resourceGroupName string, sapVirtualInstanceName string, databaseInstanceName string, options *SAPDatabaseInstancesClientBeginStartInstanceOptions) (*http.Response, error) { + req, err := client.startInstanceCreateRequest(ctx, resourceGroupName, sapVirtualInstanceName, databaseInstanceName, options) + if err != nil { + return nil, err + } + resp, err := client.pl.Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { + return nil, runtime.NewResponseError(resp) + } + return resp, nil +} + +// startInstanceCreateRequest creates the StartInstance request. +func (client *SAPDatabaseInstancesClient) startInstanceCreateRequest(ctx context.Context, resourceGroupName string, sapVirtualInstanceName string, databaseInstanceName string, options *SAPDatabaseInstancesClientBeginStartInstanceOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Workloads/sapVirtualInstances/{sapVirtualInstanceName}/databaseInstances/{databaseInstanceName}/start" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if sapVirtualInstanceName == "" { + return nil, errors.New("parameter sapVirtualInstanceName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{sapVirtualInstanceName}", url.PathEscape(sapVirtualInstanceName)) + if databaseInstanceName == "" { + return nil, errors.New("parameter databaseInstanceName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{databaseInstanceName}", url.PathEscape(databaseInstanceName)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-11-01-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// BeginStopInstance - Stops the database instance of the SAP system. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-11-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - sapVirtualInstanceName - The name of the Virtual Instances for SAP solutions resource +// - databaseInstanceName - Database resource name string modeled as parameter for auto generation to work correctly. +// - options - SAPDatabaseInstancesClientBeginStopInstanceOptions contains the optional parameters for the SAPDatabaseInstancesClient.BeginStopInstance +// method. +func (client *SAPDatabaseInstancesClient) BeginStopInstance(ctx context.Context, resourceGroupName string, sapVirtualInstanceName string, databaseInstanceName string, options *SAPDatabaseInstancesClientBeginStopInstanceOptions) (*runtime.Poller[SAPDatabaseInstancesClientStopInstanceResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.stopInstance(ctx, resourceGroupName, sapVirtualInstanceName, databaseInstanceName, options) + if err != nil { + return nil, err + } + return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[SAPDatabaseInstancesClientStopInstanceResponse]{ + FinalStateVia: runtime.FinalStateViaAzureAsyncOp, + }) + } else { + return runtime.NewPollerFromResumeToken[SAPDatabaseInstancesClientStopInstanceResponse](options.ResumeToken, client.pl, nil) + } +} + +// StopInstance - Stops the database instance of the SAP system. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-11-01-preview +func (client *SAPDatabaseInstancesClient) stopInstance(ctx context.Context, resourceGroupName string, sapVirtualInstanceName string, databaseInstanceName string, options *SAPDatabaseInstancesClientBeginStopInstanceOptions) (*http.Response, error) { + req, err := client.stopInstanceCreateRequest(ctx, resourceGroupName, sapVirtualInstanceName, databaseInstanceName, options) + if err != nil { + return nil, err + } + resp, err := client.pl.Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { + return nil, runtime.NewResponseError(resp) + } + return resp, nil +} + +// stopInstanceCreateRequest creates the StopInstance request. +func (client *SAPDatabaseInstancesClient) stopInstanceCreateRequest(ctx context.Context, resourceGroupName string, sapVirtualInstanceName string, databaseInstanceName string, options *SAPDatabaseInstancesClientBeginStopInstanceOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Workloads/sapVirtualInstances/{sapVirtualInstanceName}/databaseInstances/{databaseInstanceName}/stop" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if sapVirtualInstanceName == "" { + return nil, errors.New("parameter sapVirtualInstanceName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{sapVirtualInstanceName}", url.PathEscape(sapVirtualInstanceName)) + if databaseInstanceName == "" { + return nil, errors.New("parameter databaseInstanceName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{databaseInstanceName}", url.PathEscape(databaseInstanceName)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-11-01-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + if options != nil && options.Body != nil { + return req, runtime.MarshalAsJSON(req, *options.Body) + } + return req, nil +} + +// BeginUpdate - Updates the Database resource. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// sapVirtualInstanceName - The name of the Virtual Instances for SAP. -// databaseInstanceName - Database Instance string modeled as parameter for auto generation to work correctly. -// body - The SAP Database Server instance request body. -// options - SAPDatabaseInstancesClientBeginUpdateOptions contains the optional parameters for the SAPDatabaseInstancesClient.BeginUpdate -// method. +// +// Generated from API version 2022-11-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - sapVirtualInstanceName - The name of the Virtual Instances for SAP solutions resource +// - databaseInstanceName - Database resource name string modeled as parameter for auto generation to work correctly. +// - body - Database resource update request body. +// - options - SAPDatabaseInstancesClientBeginUpdateOptions contains the optional parameters for the SAPDatabaseInstancesClient.BeginUpdate +// method. func (client *SAPDatabaseInstancesClient) BeginUpdate(ctx context.Context, resourceGroupName string, sapVirtualInstanceName string, databaseInstanceName string, body UpdateSAPDatabaseInstanceRequest, options *SAPDatabaseInstancesClientBeginUpdateOptions) (*runtime.Poller[SAPDatabaseInstancesClientUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.update(ctx, resourceGroupName, sapVirtualInstanceName, databaseInstanceName, body, options) @@ -355,9 +508,10 @@ func (client *SAPDatabaseInstancesClient) BeginUpdate(ctx context.Context, resou } } -// Update - Puts the SAP Database Instance. +// Update - Updates the Database resource. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01-preview +// +// Generated from API version 2022-11-01-preview func (client *SAPDatabaseInstancesClient) update(ctx context.Context, resourceGroupName string, sapVirtualInstanceName string, databaseInstanceName string, body UpdateSAPDatabaseInstanceRequest, options *SAPDatabaseInstancesClientBeginUpdateOptions) (*http.Response, error) { req, err := client.updateCreateRequest(ctx, resourceGroupName, sapVirtualInstanceName, databaseInstanceName, body, options) if err != nil { @@ -397,7 +551,7 @@ func (client *SAPDatabaseInstancesClient) updateCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01-preview") + reqQP.Set("api-version", "2022-11-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, body) diff --git a/sdk/resourcemanager/workloads/armworkloads/sapdatabaseinstances_client_example_test.go b/sdk/resourcemanager/workloads/armworkloads/sapdatabaseinstances_client_example_test.go index 6d2c02371e5c..79e7b8a2b381 100644 --- a/sdk/resourcemanager/workloads/armworkloads/sapdatabaseinstances_client_example_test.go +++ b/sdk/resourcemanager/workloads/armworkloads/sapdatabaseinstances_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armworkloads_test @@ -17,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/workloads/armworkloads" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPDatabaseInstances_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/sapvirtualinstances/SAPDatabaseInstances_Get.json func ExampleSAPDatabaseInstancesClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -28,20 +29,37 @@ func ExampleSAPDatabaseInstancesClient_Get() { if err != nil { log.Fatalf("failed to create client: %v", err) } - res, err := client.Get(ctx, - "test-rg", - "X00", - "databaseServer", - nil) + res, err := client.Get(ctx, "test-rg", "X00", "databaseServer", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.SAPDatabaseInstance = armworkloads.SAPDatabaseInstance{ + // Name: to.Ptr("databaseServer"), + // Type: to.Ptr("Microsoft.Workloads/sapVirtualInstances/databaseInstances"), + // ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapVirtualInstances/X00/databaseInstances/databaseServer"), + // Location: to.Ptr("westcentralus"), + // Tags: map[string]*string{ + // }, + // Properties: &armworkloads.SAPDatabaseProperties{ + // DatabaseSid: to.Ptr("X00"), + // DatabaseType: to.Ptr("hdb"), + // IPAddress: to.Ptr("10.0.0.5"), + // ProvisioningState: to.Ptr(armworkloads.SapVirtualInstanceProvisioningStateSucceeded), + // Status: to.Ptr(armworkloads.SAPVirtualInstanceStatusRunning), + // Subnet: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1"), + // VMDetails: []*armworkloads.DatabaseVMDetails{ + // { + // VirtualMachineID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Compute/virtualMachines/db-vm"), + // }}, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPDatabaseInstances_Create.json -func ExampleSAPDatabaseInstancesClient_BeginCreate() { +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/sapvirtualinstances/SAPDatabaseInstances_Create_HA_AvSet.json +func ExampleSAPDatabaseInstancesClient_BeginCreate_createSapDatabaseInstancesForHaSystemWithAvailabilitySet() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -51,16 +69,74 @@ func ExampleSAPDatabaseInstancesClient_BeginCreate() { if err != nil { log.Fatalf("failed to create client: %v", err) } - poller, err := client.BeginCreate(ctx, - "test-rg", - "X00", - "databaseServer", - armworkloads.SAPDatabaseInstance{ - Location: to.Ptr("westcentralus"), - Tags: map[string]*string{}, - Properties: &armworkloads.SAPDatabaseProperties{}, - }, - nil) + poller, err := client.BeginCreate(ctx, "test-rg", "X00", "databaseServer", armworkloads.SAPDatabaseInstance{ + Location: to.Ptr("westcentralus"), + Tags: map[string]*string{}, + Properties: &armworkloads.SAPDatabaseProperties{}, + }, 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.SAPDatabaseInstance = armworkloads.SAPDatabaseInstance{ + // Name: to.Ptr("databaseServer"), + // Type: to.Ptr("Microsoft.Workloads/sapVirtualInstances/databaseInstances"), + // ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapVirtualInstances/X00/databaseInstances/databaseServer"), + // SystemData: &armworkloads.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // CreatedBy: to.Ptr("user@xyz.com"), + // CreatedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // LastModifiedBy: to.Ptr("user@xyz.com"), + // LastModifiedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // }, + // Location: to.Ptr("westcentralus"), + // Tags: map[string]*string{ + // }, + // Properties: &armworkloads.SAPDatabaseProperties{ + // DatabaseSid: to.Ptr("X00"), + // DatabaseType: to.Ptr("hdb"), + // IPAddress: to.Ptr("10.0.0.5"), + // LoadBalancerDetails: &armworkloads.LoadBalancerDetails{ + // ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Network/loadBalancers/db-loadBalancer"), + // }, + // ProvisioningState: to.Ptr(armworkloads.SapVirtualInstanceProvisioningStateSucceeded), + // Status: to.Ptr(armworkloads.SAPVirtualInstanceStatusRunning), + // Subnet: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1"), + // VMDetails: []*armworkloads.DatabaseVMDetails{ + // { + // StorageDetails: []*armworkloads.StorageInformation{ + // { + // ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Storage/storageAccounts/nfsstorageaccount"), + // }}, + // VirtualMachineID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Compute/virtualMachines/db-vm"), + // }}, + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/sapvirtualinstances/SAPDatabaseInstances_Create.json +func ExampleSAPDatabaseInstancesClient_BeginCreate_sapDatabaseInstancesCreate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armworkloads.NewSAPDatabaseInstancesClient("6d875e77-e412-4d7d-9af4-8895278b4443", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreate(ctx, "test-rg", "X00", "databaseServer", armworkloads.SAPDatabaseInstance{ + Location: to.Ptr("westcentralus"), + Tags: map[string]*string{}, + Properties: &armworkloads.SAPDatabaseProperties{}, + }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } @@ -68,11 +144,40 @@ func ExampleSAPDatabaseInstancesClient_BeginCreate() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.SAPDatabaseInstance = armworkloads.SAPDatabaseInstance{ + // Name: to.Ptr("databaseServer"), + // Type: to.Ptr("Microsoft.Workloads/sapVirtualInstances/databaseInstances"), + // ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapVirtualInstances/X00/databaseInstances/databaseServer"), + // SystemData: &armworkloads.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // CreatedBy: to.Ptr("user@xyz.com"), + // CreatedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // LastModifiedBy: to.Ptr("user@xyz.com"), + // LastModifiedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // }, + // Location: to.Ptr("westcentralus"), + // Tags: map[string]*string{ + // }, + // Properties: &armworkloads.SAPDatabaseProperties{ + // DatabaseSid: to.Ptr("X00"), + // DatabaseType: to.Ptr("hdb"), + // IPAddress: to.Ptr("10.0.0.5"), + // ProvisioningState: to.Ptr(armworkloads.SapVirtualInstanceProvisioningStateSucceeded), + // Status: to.Ptr(armworkloads.SAPVirtualInstanceStatusRunning), + // Subnet: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1"), + // VMDetails: []*armworkloads.DatabaseVMDetails{ + // { + // VirtualMachineID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Compute/virtualMachines/db-vm"), + // }}, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPDatabaseInstances_Update.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/sapvirtualinstances/SAPDatabaseInstances_Update.json func ExampleSAPDatabaseInstancesClient_BeginUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -83,16 +188,11 @@ func ExampleSAPDatabaseInstancesClient_BeginUpdate() { if err != nil { log.Fatalf("failed to create client: %v", err) } - poller, err := client.BeginUpdate(ctx, - "test-rg", - "X00", - "databaseServer", - armworkloads.UpdateSAPDatabaseInstanceRequest{ - Tags: map[string]*string{ - "key1": to.Ptr("value1"), - }, + poller, err := client.BeginUpdate(ctx, "test-rg", "X00", "databaseServer", armworkloads.UpdateSAPDatabaseInstanceRequest{ + Tags: map[string]*string{ + "key1": to.Ptr("value1"), }, - nil) + }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } @@ -100,11 +200,40 @@ func ExampleSAPDatabaseInstancesClient_BeginUpdate() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.SAPDatabaseInstance = armworkloads.SAPDatabaseInstance{ + // Name: to.Ptr("databaseServer"), + // Type: to.Ptr("Microsoft.Workloads/sapVirtualInstances/databaseInstances"), + // ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapVirtualInstances/X00/databaseInstances/databaseServer"), + // SystemData: &armworkloads.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // CreatedBy: to.Ptr("user@xyz.com"), + // CreatedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // LastModifiedBy: to.Ptr("user@xyz.com"), + // LastModifiedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // }, + // Location: to.Ptr("westcentralus"), + // Tags: map[string]*string{ + // }, + // Properties: &armworkloads.SAPDatabaseProperties{ + // DatabaseSid: to.Ptr("X00"), + // DatabaseType: to.Ptr("hdb"), + // IPAddress: to.Ptr("10.0.0.5"), + // ProvisioningState: to.Ptr(armworkloads.SapVirtualInstanceProvisioningStateSucceeded), + // Status: to.Ptr(armworkloads.SAPVirtualInstanceStatusRunning), + // Subnet: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1"), + // VMDetails: []*armworkloads.DatabaseVMDetails{ + // { + // VirtualMachineID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Compute/virtualMachines/db-vm"), + // }}, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPDatabaseInstances_Delete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/sapvirtualinstances/SAPDatabaseInstances_Delete.json func ExampleSAPDatabaseInstancesClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -115,11 +244,7 @@ func ExampleSAPDatabaseInstancesClient_BeginDelete() { if err != nil { log.Fatalf("failed to create client: %v", err) } - poller, err := client.BeginDelete(ctx, - "test-rg", - "X00", - "databaseServer", - nil) + poller, err := client.BeginDelete(ctx, "test-rg", "X00", "databaseServer", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } @@ -127,11 +252,19 @@ func ExampleSAPDatabaseInstancesClient_BeginDelete() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.OperationStatusResult = armworkloads.OperationStatusResult{ + // Name: to.Ptr("1e4193c3-206e-4916-b124-1da16175eb0e"), + // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T03:38:07.000Z"); return t}()), + // ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/operations/locations/centralus/1e4193c3-206e-4916-b124-1da16175eb0e"), + // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T03:36:07.000Z"); return t}()), + // Status: to.Ptr("Succeeded"), + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPDatabaseInstances_List.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/sapvirtualinstances/SAPDatabaseInstances_List.json func ExampleSAPDatabaseInstancesClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -142,17 +275,112 @@ func ExampleSAPDatabaseInstancesClient_NewListPager() { if err != nil { log.Fatalf("failed to create client: %v", err) } - pager := client.NewListPager("test-rg", - "X00", - nil) + pager := client.NewListPager("test-rg", "X00", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.SAPDatabaseInstanceList = armworkloads.SAPDatabaseInstanceList{ + // Value: []*armworkloads.SAPDatabaseInstance{ + // { + // Name: to.Ptr("databaseServer"), + // Type: to.Ptr("Microsoft.Workloads/sapVirtualInstances/databaseInstances"), + // ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapVirtualInstances/X00/databaseInstances/databaseServer"), + // SystemData: &armworkloads.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // CreatedBy: to.Ptr("user@xyz.com"), + // CreatedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // LastModifiedBy: to.Ptr("user@xyz.com"), + // LastModifiedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // }, + // Location: to.Ptr("westcentralus"), + // Tags: map[string]*string{ + // }, + // Properties: &armworkloads.SAPDatabaseProperties{ + // DatabaseSid: to.Ptr("X00"), + // DatabaseType: to.Ptr("hdb"), + // IPAddress: to.Ptr("10.0.0.5"), + // ProvisioningState: to.Ptr(armworkloads.SapVirtualInstanceProvisioningStateSucceeded), + // Status: to.Ptr(armworkloads.SAPVirtualInstanceStatusRunning), + // Subnet: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1"), + // VMDetails: []*armworkloads.DatabaseVMDetails{ + // { + // VirtualMachineID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Compute/virtualMachines/db-vm"), + // }}, + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/sapvirtualinstances/SAPDatabaseInstances_StartInstance.json +func ExampleSAPDatabaseInstancesClient_BeginStartInstance() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armworkloads.NewSAPDatabaseInstancesClient("8e17e36c-42e9-4cd5-a078-7b44883414e0", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginStartInstance(ctx, "test-rg", "X00", "db0", 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.OperationStatusResult = armworkloads.OperationStatusResult{ + // Name: to.Ptr("db0"), + // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-11-01T03:38:07.000Z"); return t}()), + // ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapVirtualInstances/X00/applicationInstances/db0"), + // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-11-01T03:36:07.000Z"); return t}()), + // Status: to.Ptr("Succeeded"), + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/sapvirtualinstances/SAPDatabaseInstances_StopInstance.json +func ExampleSAPDatabaseInstancesClient_BeginStopInstance() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armworkloads.NewSAPDatabaseInstancesClient("8e17e36c-42e9-4cd5-a078-7b44883414e0", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginStopInstance(ctx, "test-rg", "X00", "db0", &armworkloads.SAPDatabaseInstancesClientBeginStopInstanceOptions{Body: &armworkloads.StopRequest{ + SoftStopTimeoutSeconds: to.Ptr[int64](0), + }, + }) + 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.OperationStatusResult = armworkloads.OperationStatusResult{ + // Name: to.Ptr("db0"), + // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-11-01T03:38:07.000Z"); return t}()), + // ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapVirtualInstances/X00/applicationInstances/db0"), + // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-11-01T03:36:07.000Z"); return t}()), + // Status: to.Ptr("Succeeded"), + // } } diff --git a/sdk/resourcemanager/workloads/armworkloads/saplandscapemonitor_client.go b/sdk/resourcemanager/workloads/armworkloads/saplandscapemonitor_client.go new file mode 100644 index 000000000000..7836aa4bf5a9 --- /dev/null +++ b/sdk/resourcemanager/workloads/armworkloads/saplandscapemonitor_client.go @@ -0,0 +1,340 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armworkloads + +import ( + "context" + "errors" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "net/http" + "net/url" + "strings" +) + +// SapLandscapeMonitorClient contains the methods for the SapLandscapeMonitor group. +// Don't use this type directly, use NewSapLandscapeMonitorClient() instead. +type SapLandscapeMonitorClient struct { + host string + subscriptionID string + pl runtime.Pipeline +} + +// NewSapLandscapeMonitorClient creates a new instance of SapLandscapeMonitorClient with the specified values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. +func NewSapLandscapeMonitorClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SapLandscapeMonitorClient, error) { + if options == nil { + options = &arm.ClientOptions{} + } + ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err + } + client := &SapLandscapeMonitorClient{ + subscriptionID: subscriptionID, + host: ep, + pl: pl, + } + return client, nil +} + +// Create - Creates a SAP Landscape Monitor Dashboard for the specified subscription, resource group, and resource name. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-11-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - monitorName - Name of the SAP monitor resource. +// - sapLandscapeMonitorParameter - Request body representing a configuration for Sap Landscape Monitor Dashboard +// - options - SapLandscapeMonitorClientCreateOptions contains the optional parameters for the SapLandscapeMonitorClient.Create +// method. +func (client *SapLandscapeMonitorClient) Create(ctx context.Context, resourceGroupName string, monitorName string, sapLandscapeMonitorParameter SapLandscapeMonitor, options *SapLandscapeMonitorClientCreateOptions) (SapLandscapeMonitorClientCreateResponse, error) { + req, err := client.createCreateRequest(ctx, resourceGroupName, monitorName, sapLandscapeMonitorParameter, options) + if err != nil { + return SapLandscapeMonitorClientCreateResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return SapLandscapeMonitorClientCreateResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusCreated) { + return SapLandscapeMonitorClientCreateResponse{}, runtime.NewResponseError(resp) + } + return client.createHandleResponse(resp) +} + +// createCreateRequest creates the Create request. +func (client *SapLandscapeMonitorClient) createCreateRequest(ctx context.Context, resourceGroupName string, monitorName string, sapLandscapeMonitorParameter SapLandscapeMonitor, options *SapLandscapeMonitorClientCreateOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Workloads/monitors/{monitorName}/sapLandscapeMonitor/default" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if monitorName == "" { + return nil, errors.New("parameter monitorName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{monitorName}", url.PathEscape(monitorName)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-11-01-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, runtime.MarshalAsJSON(req, sapLandscapeMonitorParameter) +} + +// createHandleResponse handles the Create response. +func (client *SapLandscapeMonitorClient) createHandleResponse(resp *http.Response) (SapLandscapeMonitorClientCreateResponse, error) { + result := SapLandscapeMonitorClientCreateResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.SapLandscapeMonitor); err != nil { + return SapLandscapeMonitorClientCreateResponse{}, err + } + return result, nil +} + +// Delete - Deletes a SAP Landscape Monitor Dashboard with the specified subscription, resource group, and SAP monitor name. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-11-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - monitorName - Name of the SAP monitor resource. +// - options - SapLandscapeMonitorClientDeleteOptions contains the optional parameters for the SapLandscapeMonitorClient.Delete +// method. +func (client *SapLandscapeMonitorClient) Delete(ctx context.Context, resourceGroupName string, monitorName string, options *SapLandscapeMonitorClientDeleteOptions) (SapLandscapeMonitorClientDeleteResponse, error) { + req, err := client.deleteCreateRequest(ctx, resourceGroupName, monitorName, options) + if err != nil { + return SapLandscapeMonitorClientDeleteResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return SapLandscapeMonitorClientDeleteResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusNoContent) { + return SapLandscapeMonitorClientDeleteResponse{}, runtime.NewResponseError(resp) + } + return SapLandscapeMonitorClientDeleteResponse{}, nil +} + +// deleteCreateRequest creates the Delete request. +func (client *SapLandscapeMonitorClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, monitorName string, options *SapLandscapeMonitorClientDeleteOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Workloads/monitors/{monitorName}/sapLandscapeMonitor/default" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if monitorName == "" { + return nil, errors.New("parameter monitorName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{monitorName}", url.PathEscape(monitorName)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-11-01-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// Get - Gets configuration values for Single Pane Of Glass for SAP monitor for the specified subscription, resource group, +// and resource name. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-11-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - monitorName - Name of the SAP monitor resource. +// - options - SapLandscapeMonitorClientGetOptions contains the optional parameters for the SapLandscapeMonitorClient.Get method. +func (client *SapLandscapeMonitorClient) Get(ctx context.Context, resourceGroupName string, monitorName string, options *SapLandscapeMonitorClientGetOptions) (SapLandscapeMonitorClientGetResponse, error) { + req, err := client.getCreateRequest(ctx, resourceGroupName, monitorName, options) + if err != nil { + return SapLandscapeMonitorClientGetResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return SapLandscapeMonitorClientGetResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return SapLandscapeMonitorClientGetResponse{}, runtime.NewResponseError(resp) + } + return client.getHandleResponse(resp) +} + +// getCreateRequest creates the Get request. +func (client *SapLandscapeMonitorClient) getCreateRequest(ctx context.Context, resourceGroupName string, monitorName string, options *SapLandscapeMonitorClientGetOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Workloads/monitors/{monitorName}/sapLandscapeMonitor/default" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if monitorName == "" { + return nil, errors.New("parameter monitorName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{monitorName}", url.PathEscape(monitorName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-11-01-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// getHandleResponse handles the Get response. +func (client *SapLandscapeMonitorClient) getHandleResponse(resp *http.Response) (SapLandscapeMonitorClientGetResponse, error) { + result := SapLandscapeMonitorClientGetResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.SapLandscapeMonitor); err != nil { + return SapLandscapeMonitorClientGetResponse{}, err + } + return result, nil +} + +// List - Gets configuration values for Single Pane Of Glass for SAP monitor for the specified subscription, resource group, +// and resource name. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-11-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - monitorName - Name of the SAP monitor resource. +// - options - SapLandscapeMonitorClientListOptions contains the optional parameters for the SapLandscapeMonitorClient.List +// method. +func (client *SapLandscapeMonitorClient) List(ctx context.Context, resourceGroupName string, monitorName string, options *SapLandscapeMonitorClientListOptions) (SapLandscapeMonitorClientListResponse, error) { + req, err := client.listCreateRequest(ctx, resourceGroupName, monitorName, options) + if err != nil { + return SapLandscapeMonitorClientListResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return SapLandscapeMonitorClientListResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return SapLandscapeMonitorClientListResponse{}, runtime.NewResponseError(resp) + } + return client.listHandleResponse(resp) +} + +// listCreateRequest creates the List request. +func (client *SapLandscapeMonitorClient) listCreateRequest(ctx context.Context, resourceGroupName string, monitorName string, options *SapLandscapeMonitorClientListOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Workloads/monitors/{monitorName}/sapLandscapeMonitor" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if monitorName == "" { + return nil, errors.New("parameter monitorName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{monitorName}", url.PathEscape(monitorName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-11-01-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listHandleResponse handles the List response. +func (client *SapLandscapeMonitorClient) listHandleResponse(resp *http.Response) (SapLandscapeMonitorClientListResponse, error) { + result := SapLandscapeMonitorClientListResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.SapLandscapeMonitorListResult); err != nil { + return SapLandscapeMonitorClientListResponse{}, err + } + return result, nil +} + +// Update - Patches the SAP Landscape Monitor Dashboard for the specified subscription, resource group, and SAP monitor name. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-11-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - monitorName - Name of the SAP monitor resource. +// - sapLandscapeMonitorParameter - Request body representing a configuration for Sap Landscape Monitor Dashboard +// - options - SapLandscapeMonitorClientUpdateOptions contains the optional parameters for the SapLandscapeMonitorClient.Update +// method. +func (client *SapLandscapeMonitorClient) Update(ctx context.Context, resourceGroupName string, monitorName string, sapLandscapeMonitorParameter SapLandscapeMonitor, options *SapLandscapeMonitorClientUpdateOptions) (SapLandscapeMonitorClientUpdateResponse, error) { + req, err := client.updateCreateRequest(ctx, resourceGroupName, monitorName, sapLandscapeMonitorParameter, options) + if err != nil { + return SapLandscapeMonitorClientUpdateResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return SapLandscapeMonitorClientUpdateResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return SapLandscapeMonitorClientUpdateResponse{}, runtime.NewResponseError(resp) + } + return client.updateHandleResponse(resp) +} + +// updateCreateRequest creates the Update request. +func (client *SapLandscapeMonitorClient) updateCreateRequest(ctx context.Context, resourceGroupName string, monitorName string, sapLandscapeMonitorParameter SapLandscapeMonitor, options *SapLandscapeMonitorClientUpdateOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Workloads/monitors/{monitorName}/sapLandscapeMonitor/default" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if monitorName == "" { + return nil, errors.New("parameter monitorName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{monitorName}", url.PathEscape(monitorName)) + req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-11-01-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, runtime.MarshalAsJSON(req, sapLandscapeMonitorParameter) +} + +// updateHandleResponse handles the Update response. +func (client *SapLandscapeMonitorClient) updateHandleResponse(resp *http.Response) (SapLandscapeMonitorClientUpdateResponse, error) { + result := SapLandscapeMonitorClientUpdateResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.SapLandscapeMonitor); err != nil { + return SapLandscapeMonitorClientUpdateResponse{}, err + } + return result, nil +} diff --git a/sdk/resourcemanager/workloads/armworkloads/saplandscapemonitor_client_example_test.go b/sdk/resourcemanager/workloads/armworkloads/saplandscapemonitor_client_example_test.go new file mode 100644 index 000000000000..4f1b33857b97 --- /dev/null +++ b/sdk/resourcemanager/workloads/armworkloads/saplandscapemonitor_client_example_test.go @@ -0,0 +1,361 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armworkloads_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/workloads/armworkloads" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/workloadmonitor/SapLandscapeMonitor_Get.json +func ExampleSapLandscapeMonitorClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armworkloads.NewSapLandscapeMonitorClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "myResourceGroup", "mySapMonitor", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.SapLandscapeMonitor = armworkloads.SapLandscapeMonitor{ + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.Workloads/monitors/sapLandscapeMonitor"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/monitors/myMonitor/sapLandscapeMonitor/default"), + // SystemData: &armworkloads.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // CreatedBy: to.Ptr("user@xyz.com"), + // CreatedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // LastModifiedBy: to.Ptr("user@xyz.com"), + // LastModifiedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // }, + // Properties: &armworkloads.SapLandscapeMonitorProperties{ + // Grouping: &armworkloads.SapLandscapeMonitorPropertiesGrouping{ + // Landscape: []*armworkloads.SapLandscapeMonitorSidMapping{ + // { + // Name: to.Ptr("Prod"), + // TopSid: []*string{ + // to.Ptr("SID1"), + // to.Ptr("SID2")}, + // }}, + // SapApplication: []*armworkloads.SapLandscapeMonitorSidMapping{ + // { + // Name: to.Ptr("ERP1"), + // TopSid: []*string{ + // to.Ptr("SID1"), + // to.Ptr("SID2")}, + // }}, + // }, + // TopMetricsThresholds: []*armworkloads.SapLandscapeMonitorMetricThresholds{ + // { + // Name: to.Ptr("Instance Availability"), + // Green: to.Ptr[float32](90), + // Red: to.Ptr[float32](50), + // Yellow: to.Ptr[float32](75), + // }}, + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/workloadmonitor/SapLandscapeMonitor_Create.json +func ExampleSapLandscapeMonitorClient_Create() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armworkloads.NewSapLandscapeMonitorClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Create(ctx, "myResourceGroup", "mySapMonitor", armworkloads.SapLandscapeMonitor{ + Properties: &armworkloads.SapLandscapeMonitorProperties{ + Grouping: &armworkloads.SapLandscapeMonitorPropertiesGrouping{ + Landscape: []*armworkloads.SapLandscapeMonitorSidMapping{ + { + Name: to.Ptr("Prod"), + TopSid: []*string{ + to.Ptr("SID1"), + to.Ptr("SID2")}, + }}, + SapApplication: []*armworkloads.SapLandscapeMonitorSidMapping{ + { + Name: to.Ptr("ERP1"), + TopSid: []*string{ + to.Ptr("SID1"), + to.Ptr("SID2")}, + }}, + }, + TopMetricsThresholds: []*armworkloads.SapLandscapeMonitorMetricThresholds{ + { + Name: to.Ptr("Instance Availability"), + Green: to.Ptr[float32](90), + Red: to.Ptr[float32](50), + Yellow: to.Ptr[float32](75), + }}, + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.SapLandscapeMonitor = armworkloads.SapLandscapeMonitor{ + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.Workloads/monitors/sapLandscapeMonitor"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/monitors/myMonitor/sapLandscapeMonitor/default"), + // SystemData: &armworkloads.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // CreatedBy: to.Ptr("user@xyz.com"), + // CreatedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // LastModifiedBy: to.Ptr("user@xyz.com"), + // LastModifiedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // }, + // Properties: &armworkloads.SapLandscapeMonitorProperties{ + // Grouping: &armworkloads.SapLandscapeMonitorPropertiesGrouping{ + // Landscape: []*armworkloads.SapLandscapeMonitorSidMapping{ + // { + // Name: to.Ptr("Prod"), + // TopSid: []*string{ + // to.Ptr("SID1"), + // to.Ptr("SID2")}, + // }}, + // SapApplication: []*armworkloads.SapLandscapeMonitorSidMapping{ + // { + // Name: to.Ptr("ERP1"), + // TopSid: []*string{ + // to.Ptr("SID1"), + // to.Ptr("SID2")}, + // }}, + // }, + // TopMetricsThresholds: []*armworkloads.SapLandscapeMonitorMetricThresholds{ + // { + // Name: to.Ptr("Instance Availability"), + // Green: to.Ptr[float32](90), + // Red: to.Ptr[float32](50), + // Yellow: to.Ptr[float32](75), + // }}, + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/workloadmonitor/SapLandscapeMonitor_Delete.json +func ExampleSapLandscapeMonitorClient_Delete() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armworkloads.NewSapLandscapeMonitorClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + _, err = client.Delete(ctx, "myResourceGroup", "mySapMonitor", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/workloadmonitor/SapLandscapeMonitor_Update.json +func ExampleSapLandscapeMonitorClient_Update() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armworkloads.NewSapLandscapeMonitorClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Update(ctx, "myResourceGroup", "mySapMonitor", armworkloads.SapLandscapeMonitor{ + Properties: &armworkloads.SapLandscapeMonitorProperties{ + Grouping: &armworkloads.SapLandscapeMonitorPropertiesGrouping{ + Landscape: []*armworkloads.SapLandscapeMonitorSidMapping{ + { + Name: to.Ptr("Prod"), + TopSid: []*string{ + to.Ptr("SID1"), + to.Ptr("SID2")}, + }}, + SapApplication: []*armworkloads.SapLandscapeMonitorSidMapping{ + { + Name: to.Ptr("ERP1"), + TopSid: []*string{ + to.Ptr("SID1"), + to.Ptr("SID2")}, + }}, + }, + TopMetricsThresholds: []*armworkloads.SapLandscapeMonitorMetricThresholds{ + { + Name: to.Ptr("Instance Availability"), + Green: to.Ptr[float32](90), + Red: to.Ptr[float32](50), + Yellow: to.Ptr[float32](75), + }}, + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.SapLandscapeMonitor = armworkloads.SapLandscapeMonitor{ + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.Workloads/monitors/sapLandscapeMonitor"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/monitors/myMonitor/sapLandscapeMonitor/default"), + // SystemData: &armworkloads.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // CreatedBy: to.Ptr("user@xyz.com"), + // CreatedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // LastModifiedBy: to.Ptr("user@xyz.com"), + // LastModifiedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // }, + // Properties: &armworkloads.SapLandscapeMonitorProperties{ + // Grouping: &armworkloads.SapLandscapeMonitorPropertiesGrouping{ + // Landscape: []*armworkloads.SapLandscapeMonitorSidMapping{ + // { + // Name: to.Ptr("Prod"), + // TopSid: []*string{ + // to.Ptr("SID1"), + // to.Ptr("SID2")}, + // }}, + // SapApplication: []*armworkloads.SapLandscapeMonitorSidMapping{ + // { + // Name: to.Ptr("ERP1"), + // TopSid: []*string{ + // to.Ptr("SID1"), + // to.Ptr("SID2")}, + // }}, + // }, + // TopMetricsThresholds: []*armworkloads.SapLandscapeMonitorMetricThresholds{ + // { + // Name: to.Ptr("Instance Availability"), + // Green: to.Ptr[float32](90), + // Red: to.Ptr[float32](50), + // Yellow: to.Ptr[float32](75), + // }}, + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/workloadmonitor/SapLandscapeMonitor_List.json +func ExampleSapLandscapeMonitorClient_List() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armworkloads.NewSapLandscapeMonitorClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.List(ctx, "myResourceGroup", "mySapMonitor", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.SapLandscapeMonitorListResult = armworkloads.SapLandscapeMonitorListResult{ + // Value: []*armworkloads.SapLandscapeMonitor{ + // { + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.Workloads/monitors/sapLandscapeMonitor"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/monitors/myMonitor/sapLandscapeMonitor/default"), + // SystemData: &armworkloads.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // CreatedBy: to.Ptr("user@xyz.com"), + // CreatedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // LastModifiedBy: to.Ptr("user@xyz.com"), + // LastModifiedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // }, + // Properties: &armworkloads.SapLandscapeMonitorProperties{ + // Grouping: &armworkloads.SapLandscapeMonitorPropertiesGrouping{ + // Landscape: []*armworkloads.SapLandscapeMonitorSidMapping{ + // { + // Name: to.Ptr("Prod"), + // TopSid: []*string{ + // to.Ptr("SID1"), + // to.Ptr("SID2")}, + // }}, + // SapApplication: []*armworkloads.SapLandscapeMonitorSidMapping{ + // { + // Name: to.Ptr("ERP1"), + // TopSid: []*string{ + // to.Ptr("SID1"), + // to.Ptr("SID2")}, + // }}, + // }, + // TopMetricsThresholds: []*armworkloads.SapLandscapeMonitorMetricThresholds{ + // { + // Name: to.Ptr("Instance Availability"), + // Green: to.Ptr[float32](90), + // Red: to.Ptr[float32](50), + // Yellow: to.Ptr[float32](75), + // }}, + // }, + // }, + // { + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.Workloads/monitors/sapLandscapeMonitor"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/monitors/myMonitor/sapLandscapeMonitor/default"), + // SystemData: &armworkloads.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // CreatedBy: to.Ptr("user@xyz.com"), + // CreatedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // LastModifiedBy: to.Ptr("user@xyz.com"), + // LastModifiedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // }, + // Properties: &armworkloads.SapLandscapeMonitorProperties{ + // Grouping: &armworkloads.SapLandscapeMonitorPropertiesGrouping{ + // Landscape: []*armworkloads.SapLandscapeMonitorSidMapping{ + // { + // Name: to.Ptr("Prod"), + // TopSid: []*string{ + // to.Ptr("SID1"), + // to.Ptr("SID2")}, + // }}, + // SapApplication: []*armworkloads.SapLandscapeMonitorSidMapping{ + // { + // Name: to.Ptr("ERP1"), + // TopSid: []*string{ + // to.Ptr("SID1"), + // to.Ptr("SID2")}, + // }}, + // }, + // TopMetricsThresholds: []*armworkloads.SapLandscapeMonitorMetricThresholds{ + // { + // Name: to.Ptr("Instance Availability"), + // Green: to.Ptr[float32](90), + // Red: to.Ptr[float32](50), + // Yellow: to.Ptr[float32](75), + // }}, + // }, + // }}, + // } +} diff --git a/sdk/resourcemanager/workloads/armworkloads/sapvirtualinstances_client.go b/sdk/resourcemanager/workloads/armworkloads/sapvirtualinstances_client.go index 0c9e43dbf3f9..284540a9fc58 100644 --- a/sdk/resourcemanager/workloads/armworkloads/sapvirtualinstances_client.go +++ b/sdk/resourcemanager/workloads/armworkloads/sapvirtualinstances_client.go @@ -32,9 +32,9 @@ type SAPVirtualInstancesClient struct { } // NewSAPVirtualInstancesClient creates a new instance of SAPVirtualInstancesClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewSAPVirtualInstancesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SAPVirtualInstancesClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -55,14 +55,15 @@ func NewSAPVirtualInstancesClient(subscriptionID string, credential azcore.Token return client, nil } -// BeginCreate - Creates an Virtual Instance for SAP. +// BeginCreate - Creates a Virtual Instance for SAP solutions (VIS) resource // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// sapVirtualInstanceName - The name of the Virtual Instances for SAP. -// body - The Virtual Instance for SAP request body. -// options - SAPVirtualInstancesClientBeginCreateOptions contains the optional parameters for the SAPVirtualInstancesClient.BeginCreate -// method. +// +// Generated from API version 2022-11-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - sapVirtualInstanceName - The name of the Virtual Instances for SAP solutions resource +// - body - Virtual Instance for SAP solutions resource request body. +// - options - SAPVirtualInstancesClientBeginCreateOptions contains the optional parameters for the SAPVirtualInstancesClient.BeginCreate +// method. func (client *SAPVirtualInstancesClient) BeginCreate(ctx context.Context, resourceGroupName string, sapVirtualInstanceName string, body SAPVirtualInstance, options *SAPVirtualInstancesClientBeginCreateOptions) (*runtime.Poller[SAPVirtualInstancesClientCreateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.create(ctx, resourceGroupName, sapVirtualInstanceName, body, options) @@ -77,9 +78,10 @@ func (client *SAPVirtualInstancesClient) BeginCreate(ctx context.Context, resour } } -// Create - Creates an Virtual Instance for SAP. +// Create - Creates a Virtual Instance for SAP solutions (VIS) resource // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01-preview +// +// Generated from API version 2022-11-01-preview func (client *SAPVirtualInstancesClient) create(ctx context.Context, resourceGroupName string, sapVirtualInstanceName string, body SAPVirtualInstance, options *SAPVirtualInstancesClientBeginCreateOptions) (*http.Response, error) { req, err := client.createCreateRequest(ctx, resourceGroupName, sapVirtualInstanceName, body, options) if err != nil { @@ -115,19 +117,21 @@ func (client *SAPVirtualInstancesClient) createCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01-preview") + reqQP.Set("api-version", "2022-11-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, body) } -// BeginDelete - Deletes an Virtual Instance for SAP. +// BeginDelete - Deletes a Virtual Instance for SAP solutions resource and its child resources, that is the associated Central +// Services Instance, Application Server Instances and Database Instance. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// sapVirtualInstanceName - The name of the Virtual Instances for SAP. -// options - SAPVirtualInstancesClientBeginDeleteOptions contains the optional parameters for the SAPVirtualInstancesClient.BeginDelete -// method. +// +// Generated from API version 2022-11-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - sapVirtualInstanceName - The name of the Virtual Instances for SAP solutions resource +// - options - SAPVirtualInstancesClientBeginDeleteOptions contains the optional parameters for the SAPVirtualInstancesClient.BeginDelete +// method. func (client *SAPVirtualInstancesClient) BeginDelete(ctx context.Context, resourceGroupName string, sapVirtualInstanceName string, options *SAPVirtualInstancesClientBeginDeleteOptions) (*runtime.Poller[SAPVirtualInstancesClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, sapVirtualInstanceName, options) @@ -142,9 +146,11 @@ func (client *SAPVirtualInstancesClient) BeginDelete(ctx context.Context, resour } } -// Delete - Deletes an Virtual Instance for SAP. +// Delete - Deletes a Virtual Instance for SAP solutions resource and its child resources, that is the associated Central +// Services Instance, Application Server Instances and Database Instance. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01-preview +// +// Generated from API version 2022-11-01-preview func (client *SAPVirtualInstancesClient) deleteOperation(ctx context.Context, resourceGroupName string, sapVirtualInstanceName string, options *SAPVirtualInstancesClientBeginDeleteOptions) (*http.Response, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, sapVirtualInstanceName, options) if err != nil { @@ -180,18 +186,19 @@ func (client *SAPVirtualInstancesClient) deleteCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01-preview") + reqQP.Set("api-version", "2022-11-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil } -// Get - Gets an Virtual Instance for SAP. +// Get - Gets a Virtual Instance for SAP solutions resource // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// sapVirtualInstanceName - The name of the Virtual Instances for SAP. -// options - SAPVirtualInstancesClientGetOptions contains the optional parameters for the SAPVirtualInstancesClient.Get method. +// +// Generated from API version 2022-11-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - sapVirtualInstanceName - The name of the Virtual Instances for SAP solutions resource +// - options - SAPVirtualInstancesClientGetOptions contains the optional parameters for the SAPVirtualInstancesClient.Get method. func (client *SAPVirtualInstancesClient) Get(ctx context.Context, resourceGroupName string, sapVirtualInstanceName string, options *SAPVirtualInstancesClientGetOptions) (SAPVirtualInstancesClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, sapVirtualInstanceName, options) if err != nil { @@ -227,7 +234,7 @@ func (client *SAPVirtualInstancesClient) getCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01-preview") + reqQP.Set("api-version", "2022-11-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -242,12 +249,12 @@ func (client *SAPVirtualInstancesClient) getHandleResponse(resp *http.Response) return result, nil } -// NewListByResourceGroupPager - Gets all Virtual Instances for SAP in a resource group. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// options - SAPVirtualInstancesClientListByResourceGroupOptions contains the optional parameters for the SAPVirtualInstancesClient.ListByResourceGroup -// method. +// NewListByResourceGroupPager - Gets all Virtual Instances for SAP solutions resources in a Resource Group. +// +// Generated from API version 2022-11-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - options - SAPVirtualInstancesClientListByResourceGroupOptions contains the optional parameters for the SAPVirtualInstancesClient.NewListByResourceGroupPager +// method. func (client *SAPVirtualInstancesClient) NewListByResourceGroupPager(resourceGroupName string, options *SAPVirtualInstancesClientListByResourceGroupOptions) *runtime.Pager[SAPVirtualInstancesClientListByResourceGroupResponse] { return runtime.NewPager(runtime.PagingHandler[SAPVirtualInstancesClientListByResourceGroupResponse]{ More: func(page SAPVirtualInstancesClientListByResourceGroupResponse) bool { @@ -292,7 +299,7 @@ func (client *SAPVirtualInstancesClient) listByResourceGroupCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01-preview") + reqQP.Set("api-version", "2022-11-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -307,11 +314,11 @@ func (client *SAPVirtualInstancesClient) listByResourceGroupHandleResponse(resp return result, nil } -// NewListBySubscriptionPager - Gets all Virtual Instances for SAP in the subscription. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01-preview -// options - SAPVirtualInstancesClientListBySubscriptionOptions contains the optional parameters for the SAPVirtualInstancesClient.ListBySubscription -// method. +// NewListBySubscriptionPager - Gets all Virtual Instances for SAP solutions resources in a Subscription. +// +// Generated from API version 2022-11-01-preview +// - options - SAPVirtualInstancesClientListBySubscriptionOptions contains the optional parameters for the SAPVirtualInstancesClient.NewListBySubscriptionPager +// method. func (client *SAPVirtualInstancesClient) NewListBySubscriptionPager(options *SAPVirtualInstancesClientListBySubscriptionOptions) *runtime.Pager[SAPVirtualInstancesClientListBySubscriptionResponse] { return runtime.NewPager(runtime.PagingHandler[SAPVirtualInstancesClientListBySubscriptionResponse]{ More: func(page SAPVirtualInstancesClientListBySubscriptionResponse) bool { @@ -352,7 +359,7 @@ func (client *SAPVirtualInstancesClient) listBySubscriptionCreateRequest(ctx con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01-preview") + reqQP.Set("api-version", "2022-11-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -367,13 +374,14 @@ func (client *SAPVirtualInstancesClient) listBySubscriptionHandleResponse(resp * return result, nil } -// BeginStart - Starts the SAP System. +// BeginStart - Starts the SAP application, that is the Central Services instance and Application server instances. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// sapVirtualInstanceName - The name of the Virtual Instances for SAP. -// options - SAPVirtualInstancesClientBeginStartOptions contains the optional parameters for the SAPVirtualInstancesClient.BeginStart -// method. +// +// Generated from API version 2022-11-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - sapVirtualInstanceName - The name of the Virtual Instances for SAP solutions resource +// - options - SAPVirtualInstancesClientBeginStartOptions contains the optional parameters for the SAPVirtualInstancesClient.BeginStart +// method. func (client *SAPVirtualInstancesClient) BeginStart(ctx context.Context, resourceGroupName string, sapVirtualInstanceName string, options *SAPVirtualInstancesClientBeginStartOptions) (*runtime.Poller[SAPVirtualInstancesClientStartResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.start(ctx, resourceGroupName, sapVirtualInstanceName, options) @@ -388,9 +396,10 @@ func (client *SAPVirtualInstancesClient) BeginStart(ctx context.Context, resourc } } -// Start - Starts the SAP System. +// Start - Starts the SAP application, that is the Central Services instance and Application server instances. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01-preview +// +// Generated from API version 2022-11-01-preview func (client *SAPVirtualInstancesClient) start(ctx context.Context, resourceGroupName string, sapVirtualInstanceName string, options *SAPVirtualInstancesClientBeginStartOptions) (*http.Response, error) { req, err := client.startCreateRequest(ctx, resourceGroupName, sapVirtualInstanceName, options) if err != nil { @@ -426,19 +435,20 @@ func (client *SAPVirtualInstancesClient) startCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01-preview") + reqQP.Set("api-version", "2022-11-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil } -// BeginStop - Stops the SAP System. +// BeginStop - Stops the SAP Application, that is the Application server instances and Central Services instance. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// sapVirtualInstanceName - The name of the Virtual Instances for SAP. -// options - SAPVirtualInstancesClientBeginStopOptions contains the optional parameters for the SAPVirtualInstancesClient.BeginStop -// method. +// +// Generated from API version 2022-11-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - sapVirtualInstanceName - The name of the Virtual Instances for SAP solutions resource +// - options - SAPVirtualInstancesClientBeginStopOptions contains the optional parameters for the SAPVirtualInstancesClient.BeginStop +// method. func (client *SAPVirtualInstancesClient) BeginStop(ctx context.Context, resourceGroupName string, sapVirtualInstanceName string, options *SAPVirtualInstancesClientBeginStopOptions) (*runtime.Poller[SAPVirtualInstancesClientStopResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.stop(ctx, resourceGroupName, sapVirtualInstanceName, options) @@ -453,9 +463,10 @@ func (client *SAPVirtualInstancesClient) BeginStop(ctx context.Context, resource } } -// Stop - Stops the SAP System. +// Stop - Stops the SAP Application, that is the Application server instances and Central Services instance. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01-preview +// +// Generated from API version 2022-11-01-preview func (client *SAPVirtualInstancesClient) stop(ctx context.Context, resourceGroupName string, sapVirtualInstanceName string, options *SAPVirtualInstancesClientBeginStopOptions) (*http.Response, error) { req, err := client.stopCreateRequest(ctx, resourceGroupName, sapVirtualInstanceName, options) if err != nil { @@ -491,7 +502,7 @@ func (client *SAPVirtualInstancesClient) stopCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01-preview") + reqQP.Set("api-version", "2022-11-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.Body != nil { @@ -500,14 +511,15 @@ func (client *SAPVirtualInstancesClient) stopCreateRequest(ctx context.Context, return req, nil } -// Update - Updates an Virtual Instance for SAP. +// Update - Updates a Virtual Instance for SAP solutions resource // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// sapVirtualInstanceName - The name of the Virtual Instances for SAP. -// body - The Update Virtual Instance for SAP request body. -// options - SAPVirtualInstancesClientUpdateOptions contains the optional parameters for the SAPVirtualInstancesClient.Update -// method. +// +// Generated from API version 2022-11-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - sapVirtualInstanceName - The name of the Virtual Instances for SAP solutions resource +// - body - Request body to update a Virtual Instance for SAP solutions resource. +// - options - SAPVirtualInstancesClientUpdateOptions contains the optional parameters for the SAPVirtualInstancesClient.Update +// method. func (client *SAPVirtualInstancesClient) Update(ctx context.Context, resourceGroupName string, sapVirtualInstanceName string, body UpdateSAPVirtualInstanceRequest, options *SAPVirtualInstancesClientUpdateOptions) (SAPVirtualInstancesClientUpdateResponse, error) { req, err := client.updateCreateRequest(ctx, resourceGroupName, sapVirtualInstanceName, body, options) if err != nil { @@ -543,7 +555,7 @@ func (client *SAPVirtualInstancesClient) updateCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01-preview") + reqQP.Set("api-version", "2022-11-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, body) diff --git a/sdk/resourcemanager/workloads/armworkloads/sapvirtualinstances_client_example_test.go b/sdk/resourcemanager/workloads/armworkloads/sapvirtualinstances_client_example_test.go index d24c73aa4fe5..9232c91abc5e 100644 --- a/sdk/resourcemanager/workloads/armworkloads/sapvirtualinstances_client_example_test.go +++ b/sdk/resourcemanager/workloads/armworkloads/sapvirtualinstances_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armworkloads_test @@ -17,8 +18,8 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/workloads/armworkloads" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Create_Distributed.json -func ExampleSAPVirtualInstancesClient_BeginCreate() { +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Create_CustomFullResourceNames_Distributed.json +func ExampleSAPVirtualInstancesClient_BeginCreate_createInfrastructureWithOsConfigurationWithCustomResourceNamesForDistributedSystem() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -28,105 +29,5081 @@ func ExampleSAPVirtualInstancesClient_BeginCreate() { if err != nil { log.Fatalf("failed to create client: %v", err) } - poller, err := client.BeginCreate(ctx, - "test-rg", - "X00", - armworkloads.SAPVirtualInstance{ - Location: to.Ptr("westcentralus"), - Tags: map[string]*string{}, - Properties: &armworkloads.SAPVirtualInstanceProperties{ - Configuration: &armworkloads.DeploymentConfiguration{ - ConfigurationType: to.Ptr(armworkloads.SAPConfigurationTypeDeployment), - AppLocation: to.Ptr("eastus"), - InfrastructureConfiguration: &armworkloads.ThreeTierConfiguration{ - AppResourceGroup: to.Ptr("X00-RG"), - DeploymentType: to.Ptr(armworkloads.SAPDeploymentTypeThreeTier), - ApplicationServer: &armworkloads.ApplicationServerConfiguration{ - InstanceCount: to.Ptr[int64](6), - SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), - VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ - ImageReference: &armworkloads.ImageReference{ - Offer: to.Ptr("RHEL-SAP"), - Publisher: to.Ptr("RedHat"), - SKU: to.Ptr("7.4"), - Version: to.Ptr("7.4.2019062505"), - }, - OSProfile: &armworkloads.OSProfile{ - AdminUsername: to.Ptr("{your-username}"), - OSConfiguration: &armworkloads.LinuxConfiguration{ - OSType: to.Ptr(armworkloads.OSTypeLinux), - DisablePasswordAuthentication: to.Ptr(true), - SSH: &armworkloads.SSHConfiguration{ - PublicKeys: []*armworkloads.SSHPublicKey{ - { - KeyData: to.Ptr("ssh-rsa public key"), - }}, - }, - }, - }, - VMSize: to.Ptr("Standard_E32ds_v4"), - }, - }, - CentralServer: &armworkloads.CentralServerConfiguration{ - InstanceCount: to.Ptr[int64](1), - SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), - VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ - ImageReference: &armworkloads.ImageReference{ - Offer: to.Ptr("RHEL-SAP"), - Publisher: to.Ptr("RedHat"), - SKU: to.Ptr("7.4"), - Version: to.Ptr("7.4.2019062505"), - }, - OSProfile: &armworkloads.OSProfile{ - AdminUsername: to.Ptr("{your-username}"), - OSConfiguration: &armworkloads.LinuxConfiguration{ - OSType: to.Ptr(armworkloads.OSTypeLinux), - DisablePasswordAuthentication: to.Ptr(true), - SSH: &armworkloads.SSHConfiguration{ - PublicKeys: []*armworkloads.SSHPublicKey{ - { - KeyData: to.Ptr("ssh-rsa public key"), - }}, - }, - }, - }, - VMSize: to.Ptr("Standard_E16ds_v4"), - }, - }, - DatabaseServer: &armworkloads.DatabaseConfiguration{ - DatabaseType: to.Ptr(armworkloads.SAPDatabaseTypeHANA), - InstanceCount: to.Ptr[int64](1), - SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet"), - VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ - ImageReference: &armworkloads.ImageReference{ - Offer: to.Ptr("RHEL-SAP"), - Publisher: to.Ptr("RedHat"), - SKU: to.Ptr("7.4"), - Version: to.Ptr("7.4.2019062505"), - }, - OSProfile: &armworkloads.OSProfile{ - AdminUsername: to.Ptr("{your-username}"), - OSConfiguration: &armworkloads.LinuxConfiguration{ - OSType: to.Ptr(armworkloads.OSTypeLinux), - DisablePasswordAuthentication: to.Ptr(true), - SSH: &armworkloads.SSHConfiguration{ - PublicKeys: []*armworkloads.SSHPublicKey{ - { - KeyData: to.Ptr("ssh-rsa public key"), - }}, - }, - }, - }, - VMSize: to.Ptr("Standard_M32ts"), - }, - }, - }, - }, - Environment: to.Ptr(armworkloads.SAPEnvironmentTypeProd), - SapProduct: to.Ptr(armworkloads.SAPProductTypeS4HANA), + poller, err := client.BeginCreate(ctx, "test-rg", "X00", armworkloads.SAPVirtualInstance{ + Location: to.Ptr("westcentralus"), + Tags: map[string]*string{}, + Properties: &armworkloads.SAPVirtualInstanceProperties{ + Configuration: &armworkloads.DeploymentWithOSConfiguration{ + ConfigurationType: to.Ptr(armworkloads.SAPConfigurationTypeDeploymentWithOSConfig), + AppLocation: to.Ptr("eastus"), + InfrastructureConfiguration: &armworkloads.ThreeTierConfiguration{ + AppResourceGroup: to.Ptr("X00-RG"), + DeploymentType: to.Ptr(armworkloads.SAPDeploymentTypeThreeTier), + ApplicationServer: &armworkloads.ApplicationServerConfiguration{ + InstanceCount: to.Ptr[int64](6), + SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), + VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + ImageReference: &armworkloads.ImageReference{ + Offer: to.Ptr("RHEL-SAP"), + Publisher: to.Ptr("RedHat"), + SKU: to.Ptr("7.4"), + Version: to.Ptr("7.4.2019062505"), + }, + OSProfile: &armworkloads.OSProfile{ + AdminUsername: to.Ptr("{your-username}"), + OSConfiguration: &armworkloads.LinuxConfiguration{ + OSType: to.Ptr(armworkloads.OSTypeLinux), + DisablePasswordAuthentication: to.Ptr(true), + SSHKeyPair: &armworkloads.SSHKeyPair{ + PrivateKey: to.Ptr("xyz"), + PublicKey: to.Ptr("abc"), + }, + }, + }, + VMSize: to.Ptr("Standard_E32ds_v4"), + }, + }, + CentralServer: &armworkloads.CentralServerConfiguration{ + InstanceCount: to.Ptr[int64](1), + SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), + VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + ImageReference: &armworkloads.ImageReference{ + Offer: to.Ptr("RHEL-SAP"), + Publisher: to.Ptr("RedHat"), + SKU: to.Ptr("7.4"), + Version: to.Ptr("7.4.2019062505"), + }, + OSProfile: &armworkloads.OSProfile{ + AdminUsername: to.Ptr("{your-username}"), + OSConfiguration: &armworkloads.LinuxConfiguration{ + OSType: to.Ptr(armworkloads.OSTypeLinux), + DisablePasswordAuthentication: to.Ptr(true), + SSHKeyPair: &armworkloads.SSHKeyPair{ + PrivateKey: to.Ptr("xyz"), + PublicKey: to.Ptr("abc"), + }, + }, + }, + VMSize: to.Ptr("Standard_E16ds_v4"), + }, + }, + CustomResourceNames: &armworkloads.ThreeTierFullResourceNames{ + NamingPatternType: to.Ptr(armworkloads.NamingPatternTypeFullResourceName), + ApplicationServer: &armworkloads.ApplicationServerFullResourceNames{ + AvailabilitySetName: to.Ptr("appAvSet"), + VirtualMachines: []*armworkloads.VirtualMachineResourceNames{ + { + DataDiskNames: map[string][]*string{ + "default": { + to.Ptr("app0disk0")}, + }, + HostName: to.Ptr("apphostName0"), + NetworkInterfaces: []*armworkloads.NetworkInterfaceResourceNames{ + { + NetworkInterfaceName: to.Ptr("appnic0"), + }}, + OSDiskName: to.Ptr("app0osdisk"), + VMName: to.Ptr("appvm0"), + }, + { + DataDiskNames: map[string][]*string{ + "default": { + to.Ptr("app1disk0")}, + }, + HostName: to.Ptr("apphostName1"), + NetworkInterfaces: []*armworkloads.NetworkInterfaceResourceNames{ + { + NetworkInterfaceName: to.Ptr("appnic1"), + }}, + OSDiskName: to.Ptr("app1osdisk"), + VMName: to.Ptr("appvm1"), + }}, + }, + CentralServer: &armworkloads.CentralServerFullResourceNames{ + VirtualMachines: []*armworkloads.VirtualMachineResourceNames{ + { + DataDiskNames: map[string][]*string{ + "default": { + to.Ptr("ascsdisk0")}, + }, + HostName: to.Ptr("ascshostName"), + NetworkInterfaces: []*armworkloads.NetworkInterfaceResourceNames{ + { + NetworkInterfaceName: to.Ptr("ascsnic"), + }}, + OSDiskName: to.Ptr("ascsosdisk"), + VMName: to.Ptr("ascsvm"), + }}, + }, + DatabaseServer: &armworkloads.DatabaseServerFullResourceNames{ + VirtualMachines: []*armworkloads.VirtualMachineResourceNames{ + { + DataDiskNames: map[string][]*string{ + "hanaData": { + to.Ptr("hanadata0"), + to.Ptr("hanadata1")}, + "hanaLog": { + to.Ptr("hanalog0"), + to.Ptr("hanalog1"), + to.Ptr("hanalog2")}, + "hanaShared": { + to.Ptr("hanashared0"), + to.Ptr("hanashared1")}, + "usrSap": { + to.Ptr("usrsap0")}, + }, + HostName: to.Ptr("dbhostName"), + NetworkInterfaces: []*armworkloads.NetworkInterfaceResourceNames{ + { + NetworkInterfaceName: to.Ptr("dbnic"), + }}, + OSDiskName: to.Ptr("dbosdisk"), + VMName: to.Ptr("dbvm"), + }}, + }, + SharedStorage: &armworkloads.SharedStorageResourceNames{ + SharedStorageAccountName: to.Ptr("storageacc"), + SharedStorageAccountPrivateEndPointName: to.Ptr("peForxNFS"), + }, + }, + DatabaseServer: &armworkloads.DatabaseConfiguration{ + DatabaseType: to.Ptr(armworkloads.SAPDatabaseTypeHANA), + InstanceCount: to.Ptr[int64](1), + SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet"), + VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + ImageReference: &armworkloads.ImageReference{ + Offer: to.Ptr("RHEL-SAP"), + Publisher: to.Ptr("RedHat"), + SKU: to.Ptr("7.4"), + Version: to.Ptr("7.4.2019062505"), + }, + OSProfile: &armworkloads.OSProfile{ + AdminUsername: to.Ptr("{your-username}"), + OSConfiguration: &armworkloads.LinuxConfiguration{ + OSType: to.Ptr(armworkloads.OSTypeLinux), + DisablePasswordAuthentication: to.Ptr(true), + SSHKeyPair: &armworkloads.SSHKeyPair{ + PrivateKey: to.Ptr("xyz"), + PublicKey: to.Ptr("abc"), + }, + }, + }, + VMSize: to.Ptr("Standard_M32ts"), + }, + }, + }, + OSSapConfiguration: &armworkloads.OsSapConfiguration{ + SapFqdn: to.Ptr("xyz.test.com"), + }, + }, + Environment: to.Ptr(armworkloads.SAPEnvironmentTypeProd), + SapProduct: to.Ptr(armworkloads.SAPProductTypeS4HANA), + }, + }, 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.SAPVirtualInstance = armworkloads.SAPVirtualInstance{ + // Name: to.Ptr("X00"), + // Type: to.Ptr("Microsoft.Workloads/sapVirtualInstances"), + // ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapVirtualInstances/X00"), + // SystemData: &armworkloads.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // CreatedBy: to.Ptr("user@xyz.com"), + // CreatedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // LastModifiedBy: to.Ptr("user@xyz.com"), + // LastModifiedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // }, + // Location: to.Ptr("westcentralus"), + // Tags: map[string]*string{ + // }, + // Properties: &armworkloads.SAPVirtualInstanceProperties{ + // Configuration: &armworkloads.DeploymentWithOSConfiguration{ + // ConfigurationType: to.Ptr(armworkloads.SAPConfigurationTypeDeploymentWithOSConfig), + // AppLocation: to.Ptr("eastus"), + // InfrastructureConfiguration: &armworkloads.ThreeTierConfiguration{ + // AppResourceGroup: to.Ptr("X00-RG"), + // DeploymentType: to.Ptr(armworkloads.SAPDeploymentTypeThreeTier), + // ApplicationServer: &armworkloads.ApplicationServerConfiguration{ + // InstanceCount: to.Ptr[int64](6), + // SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), + // VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + // ImageReference: &armworkloads.ImageReference{ + // Offer: to.Ptr("RHEL-SAP"), + // Publisher: to.Ptr("RedHat"), + // SKU: to.Ptr("7.4"), + // Version: to.Ptr("7.4.2019062505"), + // }, + // OSProfile: &armworkloads.OSProfile{ + // AdminUsername: to.Ptr("{your-username}"), + // OSConfiguration: &armworkloads.LinuxConfiguration{ + // OSType: to.Ptr(armworkloads.OSTypeLinux), + // DisablePasswordAuthentication: to.Ptr(true), + // SSHKeyPair: &armworkloads.SSHKeyPair{ + // PublicKey: to.Ptr("abc"), + // }, + // }, + // }, + // VMSize: to.Ptr("Standard_E32ds_v4"), + // }, + // }, + // CentralServer: &armworkloads.CentralServerConfiguration{ + // InstanceCount: to.Ptr[int64](1), + // SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), + // VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + // ImageReference: &armworkloads.ImageReference{ + // Offer: to.Ptr("RHEL-SAP"), + // Publisher: to.Ptr("RedHat"), + // SKU: to.Ptr("7.4"), + // Version: to.Ptr("7.4.2019062505"), + // }, + // OSProfile: &armworkloads.OSProfile{ + // AdminUsername: to.Ptr("{your-username}"), + // OSConfiguration: &armworkloads.LinuxConfiguration{ + // OSType: to.Ptr(armworkloads.OSTypeLinux), + // DisablePasswordAuthentication: to.Ptr(true), + // SSHKeyPair: &armworkloads.SSHKeyPair{ + // PublicKey: to.Ptr("abc"), + // }, + // }, + // }, + // VMSize: to.Ptr("Standard_E16ds_v4"), + // }, + // }, + // CustomResourceNames: &armworkloads.ThreeTierFullResourceNames{ + // NamingPatternType: to.Ptr(armworkloads.NamingPatternTypeFullResourceName), + // ApplicationServer: &armworkloads.ApplicationServerFullResourceNames{ + // AvailabilitySetName: to.Ptr("appAvSet"), + // VirtualMachines: []*armworkloads.VirtualMachineResourceNames{ + // { + // DataDiskNames: map[string][]*string{ + // "default": []*string{ + // to.Ptr("app0disk0")}, + // }, + // HostName: to.Ptr("apphostName0"), + // NetworkInterfaces: []*armworkloads.NetworkInterfaceResourceNames{ + // { + // NetworkInterfaceName: to.Ptr("appnic0"), + // }}, + // OSDiskName: to.Ptr("app0osdisk"), + // VMName: to.Ptr("appvm0"), + // }, + // { + // DataDiskNames: map[string][]*string{ + // "default": []*string{ + // to.Ptr("app1disk0")}, + // }, + // HostName: to.Ptr("apphostName1"), + // NetworkInterfaces: []*armworkloads.NetworkInterfaceResourceNames{ + // { + // NetworkInterfaceName: to.Ptr("appnic1"), + // }}, + // OSDiskName: to.Ptr("app1osdisk"), + // VMName: to.Ptr("appvm1"), + // }}, + // }, + // CentralServer: &armworkloads.CentralServerFullResourceNames{ + // VirtualMachines: []*armworkloads.VirtualMachineResourceNames{ + // { + // DataDiskNames: map[string][]*string{ + // "default": []*string{ + // to.Ptr("ascsdisk0")}, + // }, + // HostName: to.Ptr("ascshostName"), + // NetworkInterfaces: []*armworkloads.NetworkInterfaceResourceNames{ + // { + // NetworkInterfaceName: to.Ptr("ascsnic"), + // }}, + // OSDiskName: to.Ptr("ascsosdisk"), + // VMName: to.Ptr("ascsvm"), + // }}, + // }, + // DatabaseServer: &armworkloads.DatabaseServerFullResourceNames{ + // VirtualMachines: []*armworkloads.VirtualMachineResourceNames{ + // { + // DataDiskNames: map[string][]*string{ + // "hanaData": []*string{ + // to.Ptr("hanadata0"), + // to.Ptr("hanadata1")}, + // "hanaLog": []*string{ + // to.Ptr("hanalog0"), + // to.Ptr("hanalog1"), + // to.Ptr("hanalog2")}, + // "hanaShared": []*string{ + // to.Ptr("hanashared0"), + // to.Ptr("hanashared1")}, + // "usrSap": []*string{ + // to.Ptr("usrsap0")}, + // }, + // HostName: to.Ptr("dbhostName"), + // NetworkInterfaces: []*armworkloads.NetworkInterfaceResourceNames{ + // { + // NetworkInterfaceName: to.Ptr("dbnic"), + // }}, + // OSDiskName: to.Ptr("dbosdisk"), + // VMName: to.Ptr("dbvm"), + // }}, + // }, + // SharedStorage: &armworkloads.SharedStorageResourceNames{ + // SharedStorageAccountName: to.Ptr("storageacc"), + // SharedStorageAccountPrivateEndPointName: to.Ptr("peForxNFS"), + // }, + // }, + // DatabaseServer: &armworkloads.DatabaseConfiguration{ + // DatabaseType: to.Ptr(armworkloads.SAPDatabaseTypeHANA), + // InstanceCount: to.Ptr[int64](1), + // SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet"), + // VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + // ImageReference: &armworkloads.ImageReference{ + // Offer: to.Ptr("RHEL-SAP"), + // Publisher: to.Ptr("RedHat"), + // SKU: to.Ptr("7.4"), + // Version: to.Ptr("7.4.2019062505"), + // }, + // OSProfile: &armworkloads.OSProfile{ + // AdminUsername: to.Ptr("{your-username}"), + // OSConfiguration: &armworkloads.LinuxConfiguration{ + // OSType: to.Ptr(armworkloads.OSTypeLinux), + // DisablePasswordAuthentication: to.Ptr(true), + // SSHKeyPair: &armworkloads.SSHKeyPair{ + // PublicKey: to.Ptr("abc"), + // }, + // }, + // }, + // VMSize: to.Ptr("Standard_M32ts"), + // }, + // }, + // }, + // OSSapConfiguration: &armworkloads.OsSapConfiguration{ + // SapFqdn: to.Ptr("xyz.test.com"), + // }, + // }, + // Environment: to.Ptr(armworkloads.SAPEnvironmentTypeProd), + // Health: to.Ptr(armworkloads.SAPHealthStateUnknown), + // ProvisioningState: to.Ptr(armworkloads.SapVirtualInstanceProvisioningStateSucceeded), + // SapProduct: to.Ptr(armworkloads.SAPProductTypeS4HANA), + // State: to.Ptr(armworkloads.SAPVirtualInstanceStateSoftwareInstallationPending), + // Status: to.Ptr(armworkloads.SAPVirtualInstanceStatus("Unknown")), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Create_CustomFullResourceNames_HA_AvSet.json +func ExampleSAPVirtualInstancesClient_BeginCreate_createInfrastructureWithOsConfigurationWithCustomResourceNamesForHaSystemWithAvailabilitySet() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armworkloads.NewSAPVirtualInstancesClient("8e17e36c-42e9-4cd5-a078-7b44883414e0", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreate(ctx, "test-rg", "X00", armworkloads.SAPVirtualInstance{ + Location: to.Ptr("westcentralus"), + Tags: map[string]*string{}, + Properties: &armworkloads.SAPVirtualInstanceProperties{ + Configuration: &armworkloads.DeploymentWithOSConfiguration{ + ConfigurationType: to.Ptr(armworkloads.SAPConfigurationTypeDeploymentWithOSConfig), + AppLocation: to.Ptr("eastus"), + InfrastructureConfiguration: &armworkloads.ThreeTierConfiguration{ + AppResourceGroup: to.Ptr("X00-RG"), + DeploymentType: to.Ptr(armworkloads.SAPDeploymentTypeThreeTier), + ApplicationServer: &armworkloads.ApplicationServerConfiguration{ + InstanceCount: to.Ptr[int64](6), + SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), + VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + ImageReference: &armworkloads.ImageReference{ + Offer: to.Ptr("RHEL-SAP"), + Publisher: to.Ptr("RedHat"), + SKU: to.Ptr("7.4"), + Version: to.Ptr("7.4.2019062505"), + }, + OSProfile: &armworkloads.OSProfile{ + AdminUsername: to.Ptr("{your-username}"), + OSConfiguration: &armworkloads.LinuxConfiguration{ + OSType: to.Ptr(armworkloads.OSTypeLinux), + DisablePasswordAuthentication: to.Ptr(true), + SSHKeyPair: &armworkloads.SSHKeyPair{ + PrivateKey: to.Ptr("xyz"), + PublicKey: to.Ptr("abc"), + }, + }, + }, + VMSize: to.Ptr("Standard_E32ds_v4"), + }, + }, + CentralServer: &armworkloads.CentralServerConfiguration{ + InstanceCount: to.Ptr[int64](2), + SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), + VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + ImageReference: &armworkloads.ImageReference{ + Offer: to.Ptr("RHEL-SAP"), + Publisher: to.Ptr("RedHat"), + SKU: to.Ptr("7.4"), + Version: to.Ptr("7.4.2019062505"), + }, + OSProfile: &armworkloads.OSProfile{ + AdminUsername: to.Ptr("{your-username}"), + OSConfiguration: &armworkloads.LinuxConfiguration{ + OSType: to.Ptr(armworkloads.OSTypeLinux), + DisablePasswordAuthentication: to.Ptr(true), + SSHKeyPair: &armworkloads.SSHKeyPair{ + PrivateKey: to.Ptr("xyz"), + PublicKey: to.Ptr("abc"), + }, + }, + }, + VMSize: to.Ptr("Standard_E16ds_v4"), + }, + }, + CustomResourceNames: &armworkloads.ThreeTierFullResourceNames{ + NamingPatternType: to.Ptr(armworkloads.NamingPatternTypeFullResourceName), + ApplicationServer: &armworkloads.ApplicationServerFullResourceNames{ + AvailabilitySetName: to.Ptr("appAvSet"), + VirtualMachines: []*armworkloads.VirtualMachineResourceNames{ + { + DataDiskNames: map[string][]*string{ + "default": { + to.Ptr("app0disk0")}, + }, + HostName: to.Ptr("apphostName0"), + NetworkInterfaces: []*armworkloads.NetworkInterfaceResourceNames{ + { + NetworkInterfaceName: to.Ptr("appnic0"), + }}, + OSDiskName: to.Ptr("app0osdisk"), + VMName: to.Ptr("appvm0"), + }, + { + DataDiskNames: map[string][]*string{ + "default": { + to.Ptr("app1disk0")}, + }, + HostName: to.Ptr("apphostName1"), + NetworkInterfaces: []*armworkloads.NetworkInterfaceResourceNames{ + { + NetworkInterfaceName: to.Ptr("appnic1"), + }}, + OSDiskName: to.Ptr("app1osdisk"), + VMName: to.Ptr("appvm1"), + }}, + }, + CentralServer: &armworkloads.CentralServerFullResourceNames{ + AvailabilitySetName: to.Ptr("csAvSet"), + LoadBalancer: &armworkloads.LoadBalancerResourceNames{ + BackendPoolNames: []*string{ + to.Ptr("ascsBackendPool")}, + FrontendIPConfigurationNames: []*string{ + to.Ptr("ascsip0"), + to.Ptr("ersip0")}, + HealthProbeNames: []*string{ + to.Ptr("ascsHealthProbe"), + to.Ptr("ersHealthProbe")}, + LoadBalancerName: to.Ptr("ascslb"), + }, + VirtualMachines: []*armworkloads.VirtualMachineResourceNames{ + { + HostName: to.Ptr("ascshostName"), + NetworkInterfaces: []*armworkloads.NetworkInterfaceResourceNames{ + { + NetworkInterfaceName: to.Ptr("ascsnic"), + }}, + OSDiskName: to.Ptr("ascsosdisk"), + VMName: to.Ptr("ascsvm"), + }, + { + HostName: to.Ptr("ershostName"), + NetworkInterfaces: []*armworkloads.NetworkInterfaceResourceNames{ + { + NetworkInterfaceName: to.Ptr("ersnic"), + }}, + OSDiskName: to.Ptr("ersosdisk"), + VMName: to.Ptr("ersvm"), + }}, + }, + DatabaseServer: &armworkloads.DatabaseServerFullResourceNames{ + AvailabilitySetName: to.Ptr("dbAvSet"), + LoadBalancer: &armworkloads.LoadBalancerResourceNames{ + BackendPoolNames: []*string{ + to.Ptr("dbBackendPool")}, + FrontendIPConfigurationNames: []*string{ + to.Ptr("dbip")}, + HealthProbeNames: []*string{ + to.Ptr("dbHealthProbe")}, + LoadBalancerName: to.Ptr("dblb"), + }, + VirtualMachines: []*armworkloads.VirtualMachineResourceNames{ + { + DataDiskNames: map[string][]*string{ + "hanaData": { + to.Ptr("hanadatapr0"), + to.Ptr("hanadatapr1")}, + "hanaLog": { + to.Ptr("hanalogpr0"), + to.Ptr("hanalogpr1"), + to.Ptr("hanalogpr2")}, + "hanaShared": { + to.Ptr("hanasharedpr0"), + to.Ptr("hanasharedpr1")}, + "usrSap": { + to.Ptr("usrsappr0")}, + }, + HostName: to.Ptr("dbprhostName"), + NetworkInterfaces: []*armworkloads.NetworkInterfaceResourceNames{ + { + NetworkInterfaceName: to.Ptr("dbprnic"), + }}, + OSDiskName: to.Ptr("dbprosdisk"), + VMName: to.Ptr("dbvmpr"), + }, + { + DataDiskNames: map[string][]*string{ + "hanaData": { + to.Ptr("hanadatasr0"), + to.Ptr("hanadatasr1")}, + "hanaLog": { + to.Ptr("hanalogsr0"), + to.Ptr("hanalogsr1"), + to.Ptr("hanalogsr2")}, + "hanaShared": { + to.Ptr("hanasharedsr0"), + to.Ptr("hanasharedsr1")}, + "usrSap": { + to.Ptr("usrsapsr0")}, + }, + HostName: to.Ptr("dbsrhostName"), + NetworkInterfaces: []*armworkloads.NetworkInterfaceResourceNames{ + { + NetworkInterfaceName: to.Ptr("dbsrnic"), + }}, + OSDiskName: to.Ptr("dbsrosdisk"), + VMName: to.Ptr("dbvmsr"), + }}, + }, + SharedStorage: &armworkloads.SharedStorageResourceNames{ + SharedStorageAccountName: to.Ptr("storageacc"), + SharedStorageAccountPrivateEndPointName: to.Ptr("peForxNFS"), + }, + }, + DatabaseServer: &armworkloads.DatabaseConfiguration{ + DatabaseType: to.Ptr(armworkloads.SAPDatabaseTypeHANA), + InstanceCount: to.Ptr[int64](2), + SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet"), + VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + ImageReference: &armworkloads.ImageReference{ + Offer: to.Ptr("RHEL-SAP"), + Publisher: to.Ptr("RedHat"), + SKU: to.Ptr("7.4"), + Version: to.Ptr("7.4.2019062505"), + }, + OSProfile: &armworkloads.OSProfile{ + AdminUsername: to.Ptr("{your-username}"), + OSConfiguration: &armworkloads.LinuxConfiguration{ + OSType: to.Ptr(armworkloads.OSTypeLinux), + DisablePasswordAuthentication: to.Ptr(true), + SSHKeyPair: &armworkloads.SSHKeyPair{ + PrivateKey: to.Ptr("xyz"), + PublicKey: to.Ptr("abc"), + }, + }, + }, + VMSize: to.Ptr("Standard_M32ts"), + }, + }, + HighAvailabilityConfig: &armworkloads.HighAvailabilityConfiguration{ + HighAvailabilityType: to.Ptr(armworkloads.SAPHighAvailabilityTypeAvailabilitySet), + }, + }, + OSSapConfiguration: &armworkloads.OsSapConfiguration{ + SapFqdn: to.Ptr("xyz.test.com"), + }, + }, + Environment: to.Ptr(armworkloads.SAPEnvironmentTypeProd), + SapProduct: to.Ptr(armworkloads.SAPProductTypeS4HANA), + }, + }, 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.SAPVirtualInstance = armworkloads.SAPVirtualInstance{ + // Name: to.Ptr("X00"), + // Type: to.Ptr("Microsoft.Workloads/sapVirtualInstances"), + // ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapVirtualInstances/X00"), + // SystemData: &armworkloads.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // CreatedBy: to.Ptr("user@xyz.com"), + // CreatedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // LastModifiedBy: to.Ptr("user@xyz.com"), + // LastModifiedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // }, + // Location: to.Ptr("westcentralus"), + // Tags: map[string]*string{ + // }, + // Properties: &armworkloads.SAPVirtualInstanceProperties{ + // Configuration: &armworkloads.DeploymentWithOSConfiguration{ + // ConfigurationType: to.Ptr(armworkloads.SAPConfigurationTypeDeploymentWithOSConfig), + // AppLocation: to.Ptr("eastus"), + // InfrastructureConfiguration: &armworkloads.ThreeTierConfiguration{ + // AppResourceGroup: to.Ptr("X00-RG"), + // DeploymentType: to.Ptr(armworkloads.SAPDeploymentTypeThreeTier), + // ApplicationServer: &armworkloads.ApplicationServerConfiguration{ + // InstanceCount: to.Ptr[int64](6), + // SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), + // VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + // ImageReference: &armworkloads.ImageReference{ + // Offer: to.Ptr("RHEL-SAP"), + // Publisher: to.Ptr("RedHat"), + // SKU: to.Ptr("7.4"), + // Version: to.Ptr("7.4.2019062505"), + // }, + // OSProfile: &armworkloads.OSProfile{ + // AdminUsername: to.Ptr("{your-username}"), + // OSConfiguration: &armworkloads.LinuxConfiguration{ + // OSType: to.Ptr(armworkloads.OSTypeLinux), + // DisablePasswordAuthentication: to.Ptr(true), + // SSHKeyPair: &armworkloads.SSHKeyPair{ + // PublicKey: to.Ptr("abc"), + // }, + // }, + // }, + // VMSize: to.Ptr("Standard_E32ds_v4"), + // }, + // }, + // CentralServer: &armworkloads.CentralServerConfiguration{ + // InstanceCount: to.Ptr[int64](2), + // SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), + // VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + // ImageReference: &armworkloads.ImageReference{ + // Offer: to.Ptr("RHEL-SAP"), + // Publisher: to.Ptr("RedHat"), + // SKU: to.Ptr("7.4"), + // Version: to.Ptr("7.4.2019062505"), + // }, + // OSProfile: &armworkloads.OSProfile{ + // AdminUsername: to.Ptr("{your-username}"), + // OSConfiguration: &armworkloads.LinuxConfiguration{ + // OSType: to.Ptr(armworkloads.OSTypeLinux), + // DisablePasswordAuthentication: to.Ptr(true), + // SSHKeyPair: &armworkloads.SSHKeyPair{ + // PublicKey: to.Ptr("abc"), + // }, + // }, + // }, + // VMSize: to.Ptr("Standard_E16ds_v4"), + // }, + // }, + // CustomResourceNames: &armworkloads.ThreeTierFullResourceNames{ + // NamingPatternType: to.Ptr(armworkloads.NamingPatternTypeFullResourceName), + // ApplicationServer: &armworkloads.ApplicationServerFullResourceNames{ + // AvailabilitySetName: to.Ptr("appAvSet"), + // VirtualMachines: []*armworkloads.VirtualMachineResourceNames{ + // { + // DataDiskNames: map[string][]*string{ + // "default": []*string{ + // to.Ptr("app0disk0")}, + // }, + // HostName: to.Ptr("apphostName0"), + // NetworkInterfaces: []*armworkloads.NetworkInterfaceResourceNames{ + // { + // NetworkInterfaceName: to.Ptr("appnic0"), + // }}, + // OSDiskName: to.Ptr("app0osdisk"), + // VMName: to.Ptr("appvm0"), + // }, + // { + // DataDiskNames: map[string][]*string{ + // "default": []*string{ + // to.Ptr("app1disk0")}, + // }, + // HostName: to.Ptr("apphostName1"), + // NetworkInterfaces: []*armworkloads.NetworkInterfaceResourceNames{ + // { + // NetworkInterfaceName: to.Ptr("appnic1"), + // }}, + // OSDiskName: to.Ptr("app1osdisk"), + // VMName: to.Ptr("appvm1"), + // }}, + // }, + // CentralServer: &armworkloads.CentralServerFullResourceNames{ + // AvailabilitySetName: to.Ptr("csAvSet"), + // LoadBalancer: &armworkloads.LoadBalancerResourceNames{ + // BackendPoolNames: []*string{ + // to.Ptr("ascsBackendPool")}, + // FrontendIPConfigurationNames: []*string{ + // to.Ptr("ascsip0"), + // to.Ptr("ersip0")}, + // HealthProbeNames: []*string{ + // to.Ptr("ascsHealthProbe"), + // to.Ptr("ersHealthProbe")}, + // LoadBalancerName: to.Ptr("ascslb"), + // }, + // VirtualMachines: []*armworkloads.VirtualMachineResourceNames{ + // { + // HostName: to.Ptr("ascshostName"), + // NetworkInterfaces: []*armworkloads.NetworkInterfaceResourceNames{ + // { + // NetworkInterfaceName: to.Ptr("ascsnic"), + // }}, + // OSDiskName: to.Ptr("ascsosdisk"), + // VMName: to.Ptr("ascsvm"), + // }, + // { + // HostName: to.Ptr("ershostName"), + // NetworkInterfaces: []*armworkloads.NetworkInterfaceResourceNames{ + // { + // NetworkInterfaceName: to.Ptr("ersnic"), + // }}, + // OSDiskName: to.Ptr("ersosdisk"), + // VMName: to.Ptr("ersvm"), + // }}, + // }, + // DatabaseServer: &armworkloads.DatabaseServerFullResourceNames{ + // AvailabilitySetName: to.Ptr("dbAvSet"), + // LoadBalancer: &armworkloads.LoadBalancerResourceNames{ + // BackendPoolNames: []*string{ + // to.Ptr("dbBackendPool")}, + // FrontendIPConfigurationNames: []*string{ + // to.Ptr("dbip")}, + // HealthProbeNames: []*string{ + // to.Ptr("dbHealthProbe")}, + // LoadBalancerName: to.Ptr("dblb"), + // }, + // VirtualMachines: []*armworkloads.VirtualMachineResourceNames{ + // { + // DataDiskNames: map[string][]*string{ + // "hanaData": []*string{ + // to.Ptr("hanadatapr0"), + // to.Ptr("hanadatapr1")}, + // "hanaLog": []*string{ + // to.Ptr("hanalogpr0"), + // to.Ptr("hanalogpr1"), + // to.Ptr("hanalogpr2")}, + // "hanaShared": []*string{ + // to.Ptr("hanasharedpr0"), + // to.Ptr("hanasharedpr1")}, + // "usrSap": []*string{ + // to.Ptr("usrsappr0")}, + // }, + // HostName: to.Ptr("dbprhostName"), + // NetworkInterfaces: []*armworkloads.NetworkInterfaceResourceNames{ + // { + // NetworkInterfaceName: to.Ptr("dbprnic"), + // }}, + // OSDiskName: to.Ptr("dbprosdisk"), + // VMName: to.Ptr("dbvmpr"), + // }, + // { + // DataDiskNames: map[string][]*string{ + // "hanaData": []*string{ + // to.Ptr("hanadatasr0"), + // to.Ptr("hanadatasr1")}, + // "hanaLog": []*string{ + // to.Ptr("hanalogsr0"), + // to.Ptr("hanalogsr1"), + // to.Ptr("hanalogsr2")}, + // "hanaShared": []*string{ + // to.Ptr("hanasharedsr0"), + // to.Ptr("hanasharedsr1")}, + // "usrSap": []*string{ + // to.Ptr("usrsapsr0")}, + // }, + // HostName: to.Ptr("dbsrhostName"), + // NetworkInterfaces: []*armworkloads.NetworkInterfaceResourceNames{ + // { + // NetworkInterfaceName: to.Ptr("dbsrnic"), + // }}, + // OSDiskName: to.Ptr("dbsrosdisk"), + // VMName: to.Ptr("dbvmsr"), + // }}, + // }, + // SharedStorage: &armworkloads.SharedStorageResourceNames{ + // SharedStorageAccountName: to.Ptr("storageacc"), + // SharedStorageAccountPrivateEndPointName: to.Ptr("peForxNFS"), + // }, + // }, + // DatabaseServer: &armworkloads.DatabaseConfiguration{ + // DatabaseType: to.Ptr(armworkloads.SAPDatabaseTypeHANA), + // InstanceCount: to.Ptr[int64](2), + // SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet"), + // VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + // ImageReference: &armworkloads.ImageReference{ + // Offer: to.Ptr("RHEL-SAP"), + // Publisher: to.Ptr("RedHat"), + // SKU: to.Ptr("7.4"), + // Version: to.Ptr("7.4.2019062505"), + // }, + // OSProfile: &armworkloads.OSProfile{ + // AdminUsername: to.Ptr("{your-username}"), + // OSConfiguration: &armworkloads.LinuxConfiguration{ + // OSType: to.Ptr(armworkloads.OSTypeLinux), + // DisablePasswordAuthentication: to.Ptr(true), + // SSHKeyPair: &armworkloads.SSHKeyPair{ + // PublicKey: to.Ptr("abc"), + // }, + // }, + // }, + // VMSize: to.Ptr("Standard_M32ts"), + // }, + // }, + // HighAvailabilityConfig: &armworkloads.HighAvailabilityConfiguration{ + // HighAvailabilityType: to.Ptr(armworkloads.SAPHighAvailabilityTypeAvailabilitySet), + // }, + // }, + // OSSapConfiguration: &armworkloads.OsSapConfiguration{ + // SapFqdn: to.Ptr("xyz.test.com"), + // }, + // }, + // Environment: to.Ptr(armworkloads.SAPEnvironmentTypeProd), + // Health: to.Ptr(armworkloads.SAPHealthStateUnknown), + // ProvisioningState: to.Ptr(armworkloads.SapVirtualInstanceProvisioningStateSucceeded), + // SapProduct: to.Ptr(armworkloads.SAPProductTypeS4HANA), + // State: to.Ptr(armworkloads.SAPVirtualInstanceStateSoftwareInstallationPending), + // Status: to.Ptr(armworkloads.SAPVirtualInstanceStatus("Unknown")), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Create_CustomFullResourceNames_HA_AvZone.json +func ExampleSAPVirtualInstancesClient_BeginCreate_createInfrastructureWithOsConfigurationWithCustomResourceNamesForHaSystemWithAvailabilityZone() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armworkloads.NewSAPVirtualInstancesClient("8e17e36c-42e9-4cd5-a078-7b44883414e0", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreate(ctx, "test-rg", "X00", armworkloads.SAPVirtualInstance{ + Location: to.Ptr("westcentralus"), + Tags: map[string]*string{}, + Properties: &armworkloads.SAPVirtualInstanceProperties{ + Configuration: &armworkloads.DeploymentWithOSConfiguration{ + ConfigurationType: to.Ptr(armworkloads.SAPConfigurationTypeDeploymentWithOSConfig), + AppLocation: to.Ptr("eastus"), + InfrastructureConfiguration: &armworkloads.ThreeTierConfiguration{ + AppResourceGroup: to.Ptr("X00-RG"), + DeploymentType: to.Ptr(armworkloads.SAPDeploymentTypeThreeTier), + ApplicationServer: &armworkloads.ApplicationServerConfiguration{ + InstanceCount: to.Ptr[int64](6), + SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), + VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + ImageReference: &armworkloads.ImageReference{ + Offer: to.Ptr("RHEL-SAP"), + Publisher: to.Ptr("RedHat"), + SKU: to.Ptr("7.4"), + Version: to.Ptr("7.4.2019062505"), + }, + OSProfile: &armworkloads.OSProfile{ + AdminUsername: to.Ptr("{your-username}"), + OSConfiguration: &armworkloads.LinuxConfiguration{ + OSType: to.Ptr(armworkloads.OSTypeLinux), + DisablePasswordAuthentication: to.Ptr(true), + SSHKeyPair: &armworkloads.SSHKeyPair{ + PrivateKey: to.Ptr("xyz"), + PublicKey: to.Ptr("abc"), + }, + }, + }, + VMSize: to.Ptr("Standard_E32ds_v4"), + }, + }, + CentralServer: &armworkloads.CentralServerConfiguration{ + InstanceCount: to.Ptr[int64](2), + SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), + VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + ImageReference: &armworkloads.ImageReference{ + Offer: to.Ptr("RHEL-SAP"), + Publisher: to.Ptr("RedHat"), + SKU: to.Ptr("7.4"), + Version: to.Ptr("7.4.2019062505"), + }, + OSProfile: &armworkloads.OSProfile{ + AdminUsername: to.Ptr("{your-username}"), + OSConfiguration: &armworkloads.LinuxConfiguration{ + OSType: to.Ptr(armworkloads.OSTypeLinux), + DisablePasswordAuthentication: to.Ptr(true), + SSHKeyPair: &armworkloads.SSHKeyPair{ + PrivateKey: to.Ptr("xyz"), + PublicKey: to.Ptr("abc"), + }, + }, + }, + VMSize: to.Ptr("Standard_E16ds_v4"), + }, + }, + CustomResourceNames: &armworkloads.ThreeTierFullResourceNames{ + NamingPatternType: to.Ptr(armworkloads.NamingPatternTypeFullResourceName), + ApplicationServer: &armworkloads.ApplicationServerFullResourceNames{ + VirtualMachines: []*armworkloads.VirtualMachineResourceNames{ + { + DataDiskNames: map[string][]*string{ + "default": { + to.Ptr("app0disk0")}, + }, + HostName: to.Ptr("apphostName0"), + NetworkInterfaces: []*armworkloads.NetworkInterfaceResourceNames{ + { + NetworkInterfaceName: to.Ptr("appnic0"), + }}, + OSDiskName: to.Ptr("app0osdisk"), + VMName: to.Ptr("appvm0"), + }, + { + DataDiskNames: map[string][]*string{ + "default": { + to.Ptr("app1disk0")}, + }, + HostName: to.Ptr("apphostName1"), + NetworkInterfaces: []*armworkloads.NetworkInterfaceResourceNames{ + { + NetworkInterfaceName: to.Ptr("appnic1"), + }}, + OSDiskName: to.Ptr("app1osdisk"), + VMName: to.Ptr("appvm1"), + }}, + }, + CentralServer: &armworkloads.CentralServerFullResourceNames{ + LoadBalancer: &armworkloads.LoadBalancerResourceNames{ + BackendPoolNames: []*string{ + to.Ptr("ascsBackendPool")}, + FrontendIPConfigurationNames: []*string{ + to.Ptr("ascsip0"), + to.Ptr("ersip0")}, + HealthProbeNames: []*string{ + to.Ptr("ascsHealthProbe"), + to.Ptr("ersHealthProbe")}, + LoadBalancerName: to.Ptr("ascslb"), + }, + VirtualMachines: []*armworkloads.VirtualMachineResourceNames{ + { + HostName: to.Ptr("ascshostName"), + NetworkInterfaces: []*armworkloads.NetworkInterfaceResourceNames{ + { + NetworkInterfaceName: to.Ptr("ascsnic"), + }}, + OSDiskName: to.Ptr("ascsosdisk"), + VMName: to.Ptr("ascsvm"), + }, + { + HostName: to.Ptr("ershostName"), + NetworkInterfaces: []*armworkloads.NetworkInterfaceResourceNames{ + { + NetworkInterfaceName: to.Ptr("ersnic"), + }}, + OSDiskName: to.Ptr("ersosdisk"), + VMName: to.Ptr("ersvm"), + }}, + }, + DatabaseServer: &armworkloads.DatabaseServerFullResourceNames{ + LoadBalancer: &armworkloads.LoadBalancerResourceNames{ + BackendPoolNames: []*string{ + to.Ptr("dbBackendPool")}, + FrontendIPConfigurationNames: []*string{ + to.Ptr("dbip")}, + HealthProbeNames: []*string{ + to.Ptr("dbHealthProbe")}, + LoadBalancerName: to.Ptr("dblb"), + }, + VirtualMachines: []*armworkloads.VirtualMachineResourceNames{ + { + DataDiskNames: map[string][]*string{ + "hanaData": { + to.Ptr("hanadatapr0"), + to.Ptr("hanadatapr1")}, + "hanaLog": { + to.Ptr("hanalogpr0"), + to.Ptr("hanalogpr1"), + to.Ptr("hanalogpr2")}, + "hanaShared": { + to.Ptr("hanasharedpr0"), + to.Ptr("hanasharedpr1")}, + "usrSap": { + to.Ptr("usrsappr0")}, + }, + HostName: to.Ptr("dbprhostName"), + NetworkInterfaces: []*armworkloads.NetworkInterfaceResourceNames{ + { + NetworkInterfaceName: to.Ptr("dbprnic"), + }}, + OSDiskName: to.Ptr("dbprosdisk"), + VMName: to.Ptr("dbvmpr"), + }, + { + DataDiskNames: map[string][]*string{ + "hanaData": { + to.Ptr("hanadatasr0"), + to.Ptr("hanadatasr1")}, + "hanaLog": { + to.Ptr("hanalogsr0"), + to.Ptr("hanalogsr1"), + to.Ptr("hanalogsr2")}, + "hanaShared": { + to.Ptr("hanasharedsr0"), + to.Ptr("hanasharedsr1")}, + "usrSap": { + to.Ptr("usrsapsr0")}, + }, + HostName: to.Ptr("dbsrhostName"), + NetworkInterfaces: []*armworkloads.NetworkInterfaceResourceNames{ + { + NetworkInterfaceName: to.Ptr("dbsrnic"), + }}, + OSDiskName: to.Ptr("dbsrosdisk"), + VMName: to.Ptr("dbvmsr"), + }}, + }, + SharedStorage: &armworkloads.SharedStorageResourceNames{ + SharedStorageAccountName: to.Ptr("storageacc"), + SharedStorageAccountPrivateEndPointName: to.Ptr("peForxNFS"), + }, + }, + DatabaseServer: &armworkloads.DatabaseConfiguration{ + DatabaseType: to.Ptr(armworkloads.SAPDatabaseTypeHANA), + InstanceCount: to.Ptr[int64](2), + SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet"), + VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + ImageReference: &armworkloads.ImageReference{ + Offer: to.Ptr("RHEL-SAP"), + Publisher: to.Ptr("RedHat"), + SKU: to.Ptr("7.4"), + Version: to.Ptr("7.4.2019062505"), + }, + OSProfile: &armworkloads.OSProfile{ + AdminUsername: to.Ptr("{your-username}"), + OSConfiguration: &armworkloads.LinuxConfiguration{ + OSType: to.Ptr(armworkloads.OSTypeLinux), + DisablePasswordAuthentication: to.Ptr(true), + SSHKeyPair: &armworkloads.SSHKeyPair{ + PrivateKey: to.Ptr("xyz"), + PublicKey: to.Ptr("abc"), + }, + }, + }, + VMSize: to.Ptr("Standard_M32ts"), + }, + }, + HighAvailabilityConfig: &armworkloads.HighAvailabilityConfiguration{ + HighAvailabilityType: to.Ptr(armworkloads.SAPHighAvailabilityTypeAvailabilityZone), + }, + }, + OSSapConfiguration: &armworkloads.OsSapConfiguration{ + SapFqdn: to.Ptr("xyz.test.com"), + }, + }, + Environment: to.Ptr(armworkloads.SAPEnvironmentTypeProd), + SapProduct: to.Ptr(armworkloads.SAPProductTypeS4HANA), + }, + }, 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.SAPVirtualInstance = armworkloads.SAPVirtualInstance{ + // Name: to.Ptr("X00"), + // Type: to.Ptr("Microsoft.Workloads/sapVirtualInstances"), + // ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapVirtualInstances/X00"), + // SystemData: &armworkloads.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // CreatedBy: to.Ptr("user@xyz.com"), + // CreatedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // LastModifiedBy: to.Ptr("user@xyz.com"), + // LastModifiedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // }, + // Location: to.Ptr("westcentralus"), + // Tags: map[string]*string{ + // }, + // Properties: &armworkloads.SAPVirtualInstanceProperties{ + // Configuration: &armworkloads.DeploymentWithOSConfiguration{ + // ConfigurationType: to.Ptr(armworkloads.SAPConfigurationTypeDeploymentWithOSConfig), + // AppLocation: to.Ptr("eastus"), + // InfrastructureConfiguration: &armworkloads.ThreeTierConfiguration{ + // AppResourceGroup: to.Ptr("X00-RG"), + // DeploymentType: to.Ptr(armworkloads.SAPDeploymentTypeThreeTier), + // ApplicationServer: &armworkloads.ApplicationServerConfiguration{ + // InstanceCount: to.Ptr[int64](6), + // SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), + // VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + // ImageReference: &armworkloads.ImageReference{ + // Offer: to.Ptr("RHEL-SAP"), + // Publisher: to.Ptr("RedHat"), + // SKU: to.Ptr("7.4"), + // Version: to.Ptr("7.4.2019062505"), + // }, + // OSProfile: &armworkloads.OSProfile{ + // AdminUsername: to.Ptr("{your-username}"), + // OSConfiguration: &armworkloads.LinuxConfiguration{ + // OSType: to.Ptr(armworkloads.OSTypeLinux), + // DisablePasswordAuthentication: to.Ptr(true), + // SSHKeyPair: &armworkloads.SSHKeyPair{ + // PublicKey: to.Ptr("abc"), + // }, + // }, + // }, + // VMSize: to.Ptr("Standard_E32ds_v4"), + // }, + // }, + // CentralServer: &armworkloads.CentralServerConfiguration{ + // InstanceCount: to.Ptr[int64](2), + // SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), + // VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + // ImageReference: &armworkloads.ImageReference{ + // Offer: to.Ptr("RHEL-SAP"), + // Publisher: to.Ptr("RedHat"), + // SKU: to.Ptr("7.4"), + // Version: to.Ptr("7.4.2019062505"), + // }, + // OSProfile: &armworkloads.OSProfile{ + // AdminUsername: to.Ptr("{your-username}"), + // OSConfiguration: &armworkloads.LinuxConfiguration{ + // OSType: to.Ptr(armworkloads.OSTypeLinux), + // DisablePasswordAuthentication: to.Ptr(true), + // SSHKeyPair: &armworkloads.SSHKeyPair{ + // PublicKey: to.Ptr("abc"), + // }, + // }, + // }, + // VMSize: to.Ptr("Standard_E16ds_v4"), + // }, + // }, + // CustomResourceNames: &armworkloads.ThreeTierFullResourceNames{ + // NamingPatternType: to.Ptr(armworkloads.NamingPatternTypeFullResourceName), + // ApplicationServer: &armworkloads.ApplicationServerFullResourceNames{ + // VirtualMachines: []*armworkloads.VirtualMachineResourceNames{ + // { + // DataDiskNames: map[string][]*string{ + // "default": []*string{ + // to.Ptr("app0disk0")}, + // }, + // HostName: to.Ptr("apphostName0"), + // NetworkInterfaces: []*armworkloads.NetworkInterfaceResourceNames{ + // { + // NetworkInterfaceName: to.Ptr("appnic0"), + // }}, + // OSDiskName: to.Ptr("app0osdisk"), + // VMName: to.Ptr("appvm0"), + // }, + // { + // DataDiskNames: map[string][]*string{ + // "default": []*string{ + // to.Ptr("app1disk0")}, + // }, + // HostName: to.Ptr("apphostName1"), + // NetworkInterfaces: []*armworkloads.NetworkInterfaceResourceNames{ + // { + // NetworkInterfaceName: to.Ptr("appnic1"), + // }}, + // OSDiskName: to.Ptr("app1osdisk"), + // VMName: to.Ptr("appvm1"), + // }}, + // }, + // CentralServer: &armworkloads.CentralServerFullResourceNames{ + // LoadBalancer: &armworkloads.LoadBalancerResourceNames{ + // BackendPoolNames: []*string{ + // to.Ptr("ascsBackendPool")}, + // FrontendIPConfigurationNames: []*string{ + // to.Ptr("ascsip0"), + // to.Ptr("ersip0")}, + // HealthProbeNames: []*string{ + // to.Ptr("ascsHealthProbe"), + // to.Ptr("ersHealthProbe")}, + // LoadBalancerName: to.Ptr("ascslb"), + // }, + // VirtualMachines: []*armworkloads.VirtualMachineResourceNames{ + // { + // HostName: to.Ptr("ascshostName"), + // NetworkInterfaces: []*armworkloads.NetworkInterfaceResourceNames{ + // { + // NetworkInterfaceName: to.Ptr("ascsnic"), + // }}, + // OSDiskName: to.Ptr("ascsosdisk"), + // VMName: to.Ptr("ascsvm"), + // }, + // { + // HostName: to.Ptr("ershostName"), + // NetworkInterfaces: []*armworkloads.NetworkInterfaceResourceNames{ + // { + // NetworkInterfaceName: to.Ptr("ersnic"), + // }}, + // OSDiskName: to.Ptr("ersosdisk"), + // VMName: to.Ptr("ersvm"), + // }}, + // }, + // DatabaseServer: &armworkloads.DatabaseServerFullResourceNames{ + // LoadBalancer: &armworkloads.LoadBalancerResourceNames{ + // BackendPoolNames: []*string{ + // to.Ptr("dbBackendPool")}, + // FrontendIPConfigurationNames: []*string{ + // to.Ptr("dbip")}, + // HealthProbeNames: []*string{ + // to.Ptr("dbHealthProbe")}, + // LoadBalancerName: to.Ptr("dblb"), + // }, + // VirtualMachines: []*armworkloads.VirtualMachineResourceNames{ + // { + // DataDiskNames: map[string][]*string{ + // "hanaData": []*string{ + // to.Ptr("hanadatapr0"), + // to.Ptr("hanadatapr1")}, + // "hanaLog": []*string{ + // to.Ptr("hanalogpr0"), + // to.Ptr("hanalogpr1"), + // to.Ptr("hanalogpr2")}, + // "hanaShared": []*string{ + // to.Ptr("hanasharedpr0"), + // to.Ptr("hanasharedpr1")}, + // "usrSap": []*string{ + // to.Ptr("usrsappr0")}, + // }, + // HostName: to.Ptr("dbprhostName"), + // NetworkInterfaces: []*armworkloads.NetworkInterfaceResourceNames{ + // { + // NetworkInterfaceName: to.Ptr("dbprnic"), + // }}, + // OSDiskName: to.Ptr("dbprosdisk"), + // VMName: to.Ptr("dbvmpr"), + // }, + // { + // DataDiskNames: map[string][]*string{ + // "hanaData": []*string{ + // to.Ptr("hanadatasr0"), + // to.Ptr("hanadatasr1")}, + // "hanaLog": []*string{ + // to.Ptr("hanalogsr0"), + // to.Ptr("hanalogsr1"), + // to.Ptr("hanalogsr2")}, + // "hanaShared": []*string{ + // to.Ptr("hanasharedsr0"), + // to.Ptr("hanasharedsr1")}, + // "usrSap": []*string{ + // to.Ptr("usrsapsr0")}, + // }, + // HostName: to.Ptr("dbsrhostName"), + // NetworkInterfaces: []*armworkloads.NetworkInterfaceResourceNames{ + // { + // NetworkInterfaceName: to.Ptr("dbsrnic"), + // }}, + // OSDiskName: to.Ptr("dbsrosdisk"), + // VMName: to.Ptr("dbvmsr"), + // }}, + // }, + // SharedStorage: &armworkloads.SharedStorageResourceNames{ + // SharedStorageAccountName: to.Ptr("storageacc"), + // SharedStorageAccountPrivateEndPointName: to.Ptr("peForxNFS"), + // }, + // }, + // DatabaseServer: &armworkloads.DatabaseConfiguration{ + // DatabaseType: to.Ptr(armworkloads.SAPDatabaseTypeHANA), + // InstanceCount: to.Ptr[int64](2), + // SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet"), + // VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + // ImageReference: &armworkloads.ImageReference{ + // Offer: to.Ptr("RHEL-SAP"), + // Publisher: to.Ptr("RedHat"), + // SKU: to.Ptr("7.4"), + // Version: to.Ptr("7.4.2019062505"), + // }, + // OSProfile: &armworkloads.OSProfile{ + // AdminUsername: to.Ptr("{your-username}"), + // OSConfiguration: &armworkloads.LinuxConfiguration{ + // OSType: to.Ptr(armworkloads.OSTypeLinux), + // DisablePasswordAuthentication: to.Ptr(true), + // SSHKeyPair: &armworkloads.SSHKeyPair{ + // PublicKey: to.Ptr("abc"), + // }, + // }, + // }, + // VMSize: to.Ptr("Standard_M32ts"), + // }, + // }, + // HighAvailabilityConfig: &armworkloads.HighAvailabilityConfiguration{ + // HighAvailabilityType: to.Ptr(armworkloads.SAPHighAvailabilityTypeAvailabilityZone), + // }, + // }, + // OSSapConfiguration: &armworkloads.OsSapConfiguration{ + // SapFqdn: to.Ptr("xyz.test.com"), + // }, + // }, + // Environment: to.Ptr(armworkloads.SAPEnvironmentTypeProd), + // Health: to.Ptr(armworkloads.SAPHealthStateUnknown), + // ProvisioningState: to.Ptr(armworkloads.SapVirtualInstanceProvisioningStateSucceeded), + // SapProduct: to.Ptr(armworkloads.SAPProductTypeS4HANA), + // State: to.Ptr(armworkloads.SAPVirtualInstanceStateSoftwareInstallationPending), + // Status: to.Ptr(armworkloads.SAPVirtualInstanceStatus("Unknown")), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Create_CustomFullResourceNames_SingleServer.json +func ExampleSAPVirtualInstancesClient_BeginCreate_createInfrastructureWithOsConfigurationWithCustomResourceNamesForSingleServerSystem() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armworkloads.NewSAPVirtualInstancesClient("8e17e36c-42e9-4cd5-a078-7b44883414e0", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreate(ctx, "test-rg", "X00", armworkloads.SAPVirtualInstance{ + Location: to.Ptr("westcentralus"), + Tags: map[string]*string{}, + Properties: &armworkloads.SAPVirtualInstanceProperties{ + Configuration: &armworkloads.DeploymentWithOSConfiguration{ + ConfigurationType: to.Ptr(armworkloads.SAPConfigurationTypeDeploymentWithOSConfig), + AppLocation: to.Ptr("eastus"), + InfrastructureConfiguration: &armworkloads.SingleServerConfiguration{ + AppResourceGroup: to.Ptr("X00-RG"), + DeploymentType: to.Ptr(armworkloads.SAPDeploymentTypeSingleServer), + DatabaseType: to.Ptr(armworkloads.SAPDatabaseTypeHANA), + NetworkConfiguration: &armworkloads.NetworkConfiguration{ + IsSecondaryIPEnabled: to.Ptr(true), + }, + SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), + VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + ImageReference: &armworkloads.ImageReference{ + Offer: to.Ptr("RHEL-SAP"), + Publisher: to.Ptr("RedHat"), + SKU: to.Ptr("7.4"), + Version: to.Ptr("7.4.2019062505"), + }, + OSProfile: &armworkloads.OSProfile{ + AdminUsername: to.Ptr("{your-username}"), + OSConfiguration: &armworkloads.LinuxConfiguration{ + OSType: to.Ptr(armworkloads.OSTypeLinux), + DisablePasswordAuthentication: to.Ptr(true), + SSHKeyPair: &armworkloads.SSHKeyPair{ + PrivateKey: to.Ptr("xyz"), + PublicKey: to.Ptr("abc"), + }, + }, + }, + VMSize: to.Ptr("Standard_E32ds_v4"), + }, + }, + OSSapConfiguration: &armworkloads.OsSapConfiguration{ + SapFqdn: to.Ptr("xyz.test.com"), + }, + }, + Environment: to.Ptr(armworkloads.SAPEnvironmentTypeNonProd), + SapProduct: to.Ptr(armworkloads.SAPProductTypeS4HANA), + }, + }, 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.SAPVirtualInstance = armworkloads.SAPVirtualInstance{ + // Name: to.Ptr("X00"), + // Type: to.Ptr("Microsoft.Workloads/sapVirtualInstances"), + // ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapVirtualInstances/X00"), + // SystemData: &armworkloads.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // CreatedBy: to.Ptr("user@xyz.com"), + // CreatedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // LastModifiedBy: to.Ptr("user@xyz.com"), + // LastModifiedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // }, + // Location: to.Ptr("westcentralus"), + // Tags: map[string]*string{ + // }, + // Properties: &armworkloads.SAPVirtualInstanceProperties{ + // Configuration: &armworkloads.DeploymentWithOSConfiguration{ + // ConfigurationType: to.Ptr(armworkloads.SAPConfigurationTypeDeploymentWithOSConfig), + // AppLocation: to.Ptr("eastus"), + // InfrastructureConfiguration: &armworkloads.SingleServerConfiguration{ + // AppResourceGroup: to.Ptr("X00-RG"), + // DeploymentType: to.Ptr(armworkloads.SAPDeploymentTypeSingleServer), + // CustomResourceNames: &armworkloads.SingleServerFullResourceNames{ + // NamingPatternType: to.Ptr(armworkloads.NamingPatternTypeFullResourceName), + // VirtualMachine: &armworkloads.VirtualMachineResourceNames{ + // DataDiskNames: map[string][]*string{ + // "hanaData": []*string{ + // to.Ptr("hanadata0"), + // to.Ptr("hanadata1")}, + // "hanaLog": []*string{ + // to.Ptr("hanalog0"), + // to.Ptr("hanalog1"), + // to.Ptr("hanalog2")}, + // "hanaShared": []*string{ + // to.Ptr("hanashared0"), + // to.Ptr("hanashared1")}, + // "usrSap": []*string{ + // to.Ptr("usrsap0")}, + // }, + // HostName: to.Ptr("sshostName"), + // NetworkInterfaces: []*armworkloads.NetworkInterfaceResourceNames{ + // { + // NetworkInterfaceName: to.Ptr("ssnic"), + // }}, + // OSDiskName: to.Ptr("ssosdisk"), + // VMName: to.Ptr("ssvm"), + // }, + // }, + // DatabaseType: to.Ptr(armworkloads.SAPDatabaseTypeHANA), + // NetworkConfiguration: &armworkloads.NetworkConfiguration{ + // IsSecondaryIPEnabled: to.Ptr(true), + // }, + // SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), + // VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + // ImageReference: &armworkloads.ImageReference{ + // Offer: to.Ptr("RHEL-SAP"), + // Publisher: to.Ptr("RedHat"), + // SKU: to.Ptr("7.4"), + // Version: to.Ptr("7.4.2019062505"), + // }, + // OSProfile: &armworkloads.OSProfile{ + // AdminUsername: to.Ptr("{your-username}"), + // OSConfiguration: &armworkloads.LinuxConfiguration{ + // OSType: to.Ptr(armworkloads.OSTypeLinux), + // DisablePasswordAuthentication: to.Ptr(true), + // SSHKeyPair: &armworkloads.SSHKeyPair{ + // PublicKey: to.Ptr("abc"), + // }, + // }, + // }, + // VMSize: to.Ptr("Standard_E32ds_v4"), + // }, + // }, + // OSSapConfiguration: &armworkloads.OsSapConfiguration{ + // SapFqdn: to.Ptr("xyz.test.com"), + // }, + // }, + // Environment: to.Ptr(armworkloads.SAPEnvironmentTypeNonProd), + // Health: to.Ptr(armworkloads.SAPHealthStateUnknown), + // ProvisioningState: to.Ptr(armworkloads.SapVirtualInstanceProvisioningStateSucceeded), + // SapProduct: to.Ptr(armworkloads.SAPProductTypeS4HANA), + // State: to.Ptr(armworkloads.SAPVirtualInstanceStateSoftwareInstallationPending), + // Status: to.Ptr(armworkloads.SAPVirtualInstanceStatus("Unknown")), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Create_Distributed.json +func ExampleSAPVirtualInstancesClient_BeginCreate_createInfrastructureOnlyForDistributedSystem() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armworkloads.NewSAPVirtualInstancesClient("8e17e36c-42e9-4cd5-a078-7b44883414e0", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreate(ctx, "test-rg", "X00", armworkloads.SAPVirtualInstance{ + Location: to.Ptr("westcentralus"), + Tags: map[string]*string{}, + Properties: &armworkloads.SAPVirtualInstanceProperties{ + Configuration: &armworkloads.DeploymentConfiguration{ + ConfigurationType: to.Ptr(armworkloads.SAPConfigurationTypeDeployment), + AppLocation: to.Ptr("eastus"), + InfrastructureConfiguration: &armworkloads.ThreeTierConfiguration{ + AppResourceGroup: to.Ptr("X00-RG"), + DeploymentType: to.Ptr(armworkloads.SAPDeploymentTypeThreeTier), + ApplicationServer: &armworkloads.ApplicationServerConfiguration{ + InstanceCount: to.Ptr[int64](6), + SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), + VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + ImageReference: &armworkloads.ImageReference{ + Offer: to.Ptr("RHEL-SAP"), + Publisher: to.Ptr("RedHat"), + SKU: to.Ptr("7.4"), + Version: to.Ptr("7.4.2019062505"), + }, + OSProfile: &armworkloads.OSProfile{ + AdminUsername: to.Ptr("{your-username}"), + OSConfiguration: &armworkloads.LinuxConfiguration{ + OSType: to.Ptr(armworkloads.OSTypeLinux), + DisablePasswordAuthentication: to.Ptr(true), + SSH: &armworkloads.SSHConfiguration{ + PublicKeys: []*armworkloads.SSHPublicKey{ + { + KeyData: to.Ptr("ssh-rsa public key"), + }}, + }, + }, + }, + VMSize: to.Ptr("Standard_E32ds_v4"), + }, + }, + CentralServer: &armworkloads.CentralServerConfiguration{ + InstanceCount: to.Ptr[int64](1), + SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), + VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + ImageReference: &armworkloads.ImageReference{ + Offer: to.Ptr("RHEL-SAP"), + Publisher: to.Ptr("RedHat"), + SKU: to.Ptr("7.4"), + Version: to.Ptr("7.4.2019062505"), + }, + OSProfile: &armworkloads.OSProfile{ + AdminUsername: to.Ptr("{your-username}"), + OSConfiguration: &armworkloads.LinuxConfiguration{ + OSType: to.Ptr(armworkloads.OSTypeLinux), + DisablePasswordAuthentication: to.Ptr(true), + SSH: &armworkloads.SSHConfiguration{ + PublicKeys: []*armworkloads.SSHPublicKey{ + { + KeyData: to.Ptr("ssh-rsa public key"), + }}, + }, + }, + }, + VMSize: to.Ptr("Standard_E16ds_v4"), + }, + }, + DatabaseServer: &armworkloads.DatabaseConfiguration{ + DatabaseType: to.Ptr(armworkloads.SAPDatabaseTypeHANA), + InstanceCount: to.Ptr[int64](1), + SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet"), + VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + ImageReference: &armworkloads.ImageReference{ + Offer: to.Ptr("RHEL-SAP"), + Publisher: to.Ptr("RedHat"), + SKU: to.Ptr("7.4"), + Version: to.Ptr("7.4.2019062505"), + }, + OSProfile: &armworkloads.OSProfile{ + AdminUsername: to.Ptr("{your-username}"), + OSConfiguration: &armworkloads.LinuxConfiguration{ + OSType: to.Ptr(armworkloads.OSTypeLinux), + DisablePasswordAuthentication: to.Ptr(true), + SSH: &armworkloads.SSHConfiguration{ + PublicKeys: []*armworkloads.SSHPublicKey{ + { + KeyData: to.Ptr("ssh-rsa public key"), + }}, + }, + }, + }, + VMSize: to.Ptr("Standard_M32ts"), + }, + }, + }, + }, + Environment: to.Ptr(armworkloads.SAPEnvironmentTypeProd), + SapProduct: to.Ptr(armworkloads.SAPProductTypeS4HANA), + }, + }, 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.SAPVirtualInstance = armworkloads.SAPVirtualInstance{ + // Name: to.Ptr("X00"), + // Type: to.Ptr("Microsoft.Workloads/sapVirtualInstances"), + // ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapVirtualInstances/X00"), + // SystemData: &armworkloads.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // CreatedBy: to.Ptr("user@xyz.com"), + // CreatedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // LastModifiedBy: to.Ptr("user@xyz.com"), + // LastModifiedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // }, + // Location: to.Ptr("westcentralus"), + // Tags: map[string]*string{ + // }, + // Properties: &armworkloads.SAPVirtualInstanceProperties{ + // Configuration: &armworkloads.DeploymentConfiguration{ + // ConfigurationType: to.Ptr(armworkloads.SAPConfigurationTypeDeployment), + // AppLocation: to.Ptr("eastus"), + // InfrastructureConfiguration: &armworkloads.ThreeTierConfiguration{ + // AppResourceGroup: to.Ptr("X00-RG"), + // DeploymentType: to.Ptr(armworkloads.SAPDeploymentTypeThreeTier), + // ApplicationServer: &armworkloads.ApplicationServerConfiguration{ + // InstanceCount: to.Ptr[int64](6), + // SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), + // VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + // ImageReference: &armworkloads.ImageReference{ + // Offer: to.Ptr("RHEL-SAP"), + // Publisher: to.Ptr("RedHat"), + // SKU: to.Ptr("7.4"), + // Version: to.Ptr("7.4.2019062505"), + // }, + // OSProfile: &armworkloads.OSProfile{ + // AdminUsername: to.Ptr("{your-username}"), + // OSConfiguration: &armworkloads.LinuxConfiguration{ + // OSType: to.Ptr(armworkloads.OSTypeLinux), + // DisablePasswordAuthentication: to.Ptr(true), + // SSH: &armworkloads.SSHConfiguration{ + // PublicKeys: []*armworkloads.SSHPublicKey{ + // { + // KeyData: to.Ptr("ssh-rsa public key"), + // }}, + // }, + // }, + // }, + // VMSize: to.Ptr("Standard_E32ds_v4"), + // }, + // }, + // CentralServer: &armworkloads.CentralServerConfiguration{ + // InstanceCount: to.Ptr[int64](1), + // SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), + // VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + // ImageReference: &armworkloads.ImageReference{ + // Offer: to.Ptr("RHEL-SAP"), + // Publisher: to.Ptr("RedHat"), + // SKU: to.Ptr("7.4"), + // Version: to.Ptr("7.4.2019062505"), + // }, + // OSProfile: &armworkloads.OSProfile{ + // AdminUsername: to.Ptr("{your-username}"), + // OSConfiguration: &armworkloads.LinuxConfiguration{ + // OSType: to.Ptr(armworkloads.OSTypeLinux), + // DisablePasswordAuthentication: to.Ptr(true), + // SSH: &armworkloads.SSHConfiguration{ + // PublicKeys: []*armworkloads.SSHPublicKey{ + // { + // KeyData: to.Ptr("ssh-rsa public key"), + // }}, + // }, + // }, + // }, + // VMSize: to.Ptr("Standard_E16ds_v4"), + // }, + // }, + // DatabaseServer: &armworkloads.DatabaseConfiguration{ + // DatabaseType: to.Ptr(armworkloads.SAPDatabaseTypeHANA), + // InstanceCount: to.Ptr[int64](1), + // SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet"), + // VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + // ImageReference: &armworkloads.ImageReference{ + // Offer: to.Ptr("RHEL-SAP"), + // Publisher: to.Ptr("RedHat"), + // SKU: to.Ptr("7.4"), + // Version: to.Ptr("7.4.2019062505"), + // }, + // OSProfile: &armworkloads.OSProfile{ + // AdminUsername: to.Ptr("{your-username}"), + // OSConfiguration: &armworkloads.LinuxConfiguration{ + // OSType: to.Ptr(armworkloads.OSTypeLinux), + // DisablePasswordAuthentication: to.Ptr(true), + // SSH: &armworkloads.SSHConfiguration{ + // PublicKeys: []*armworkloads.SSHPublicKey{ + // { + // KeyData: to.Ptr("ssh-rsa public key"), + // }}, + // }, + // }, + // }, + // VMSize: to.Ptr("Standard_M32ts"), + // }, + // }, + // }, + // }, + // Environment: to.Ptr(armworkloads.SAPEnvironmentTypeProd), + // Health: to.Ptr(armworkloads.SAPHealthStateUnknown), + // ProvisioningState: to.Ptr(armworkloads.SapVirtualInstanceProvisioningStateSucceeded), + // SapProduct: to.Ptr(armworkloads.SAPProductTypeS4HANA), + // State: to.Ptr(armworkloads.SAPVirtualInstanceStateSoftwareInstallationPending), + // Status: to.Ptr(armworkloads.SAPVirtualInstanceStatus("Unknown")), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Create_HA_AvSet.json +func ExampleSAPVirtualInstancesClient_BeginCreate_createInfrastructureOnlyForHaSystemWithAvailabilitySet() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armworkloads.NewSAPVirtualInstancesClient("8e17e36c-42e9-4cd5-a078-7b44883414e0", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreate(ctx, "test-rg", "X00", armworkloads.SAPVirtualInstance{ + Location: to.Ptr("westcentralus"), + Tags: map[string]*string{}, + Properties: &armworkloads.SAPVirtualInstanceProperties{ + Configuration: &armworkloads.DeploymentConfiguration{ + ConfigurationType: to.Ptr(armworkloads.SAPConfigurationTypeDeployment), + AppLocation: to.Ptr("eastus"), + InfrastructureConfiguration: &armworkloads.ThreeTierConfiguration{ + AppResourceGroup: to.Ptr("X00-RG"), + DeploymentType: to.Ptr(armworkloads.SAPDeploymentTypeThreeTier), + ApplicationServer: &armworkloads.ApplicationServerConfiguration{ + InstanceCount: to.Ptr[int64](5), + SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), + VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + ImageReference: &armworkloads.ImageReference{ + Offer: to.Ptr("RHEL-SAP"), + Publisher: to.Ptr("RedHat"), + SKU: to.Ptr("7.4"), + Version: to.Ptr("7.4.2019062505"), + }, + OSProfile: &armworkloads.OSProfile{ + AdminUsername: to.Ptr("{your-username}"), + OSConfiguration: &armworkloads.LinuxConfiguration{ + OSType: to.Ptr(armworkloads.OSTypeLinux), + DisablePasswordAuthentication: to.Ptr(true), + SSH: &armworkloads.SSHConfiguration{ + PublicKeys: []*armworkloads.SSHPublicKey{ + { + KeyData: to.Ptr("ssh-rsa public key"), + }}, + }, + }, + }, + VMSize: to.Ptr("Standard_E32ds_v4"), + }, + }, + CentralServer: &armworkloads.CentralServerConfiguration{ + InstanceCount: to.Ptr[int64](2), + SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), + VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + ImageReference: &armworkloads.ImageReference{ + Offer: to.Ptr("RHEL-SAP"), + Publisher: to.Ptr("RedHat"), + SKU: to.Ptr("7.4"), + Version: to.Ptr("7.4.2019062505"), + }, + OSProfile: &armworkloads.OSProfile{ + AdminUsername: to.Ptr("{your-username}"), + OSConfiguration: &armworkloads.LinuxConfiguration{ + OSType: to.Ptr(armworkloads.OSTypeLinux), + DisablePasswordAuthentication: to.Ptr(true), + SSH: &armworkloads.SSHConfiguration{ + PublicKeys: []*armworkloads.SSHPublicKey{ + { + KeyData: to.Ptr("ssh-rsa public key"), + }}, + }, + }, + }, + VMSize: to.Ptr("Standard_E16ds_v4"), + }, + }, + DatabaseServer: &armworkloads.DatabaseConfiguration{ + DatabaseType: to.Ptr(armworkloads.SAPDatabaseTypeHANA), + InstanceCount: to.Ptr[int64](2), + SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet"), + VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + ImageReference: &armworkloads.ImageReference{ + Offer: to.Ptr("RHEL-SAP"), + Publisher: to.Ptr("RedHat"), + SKU: to.Ptr("7.4"), + Version: to.Ptr("7.4.2019062505"), + }, + OSProfile: &armworkloads.OSProfile{ + AdminUsername: to.Ptr("{your-username}"), + OSConfiguration: &armworkloads.LinuxConfiguration{ + OSType: to.Ptr(armworkloads.OSTypeLinux), + DisablePasswordAuthentication: to.Ptr(true), + SSH: &armworkloads.SSHConfiguration{ + PublicKeys: []*armworkloads.SSHPublicKey{ + { + KeyData: to.Ptr("ssh-rsa public key"), + }}, + }, + }, + }, + VMSize: to.Ptr("Standard_M32ts"), + }, + }, + HighAvailabilityConfig: &armworkloads.HighAvailabilityConfiguration{ + HighAvailabilityType: to.Ptr(armworkloads.SAPHighAvailabilityTypeAvailabilitySet), + }, + }, + }, + Environment: to.Ptr(armworkloads.SAPEnvironmentTypeProd), + SapProduct: to.Ptr(armworkloads.SAPProductTypeS4HANA), + }, + }, 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.SAPVirtualInstance = armworkloads.SAPVirtualInstance{ + // Name: to.Ptr("X00"), + // Type: to.Ptr("Microsoft.Workloads/sapVirtualInstances"), + // ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapVirtualInstances/X00"), + // SystemData: &armworkloads.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // CreatedBy: to.Ptr("user@xyz.com"), + // CreatedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // LastModifiedBy: to.Ptr("user@xyz.com"), + // LastModifiedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // }, + // Location: to.Ptr("westcentralus"), + // Tags: map[string]*string{ + // }, + // Properties: &armworkloads.SAPVirtualInstanceProperties{ + // Configuration: &armworkloads.DeploymentConfiguration{ + // ConfigurationType: to.Ptr(armworkloads.SAPConfigurationTypeDeployment), + // AppLocation: to.Ptr("eastus"), + // InfrastructureConfiguration: &armworkloads.ThreeTierConfiguration{ + // AppResourceGroup: to.Ptr("X00-RG"), + // DeploymentType: to.Ptr(armworkloads.SAPDeploymentTypeThreeTier), + // ApplicationServer: &armworkloads.ApplicationServerConfiguration{ + // InstanceCount: to.Ptr[int64](5), + // SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), + // VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + // ImageReference: &armworkloads.ImageReference{ + // Offer: to.Ptr("RHEL-SAP"), + // Publisher: to.Ptr("RedHat"), + // SKU: to.Ptr("7.4"), + // Version: to.Ptr("7.4.2019062505"), + // }, + // OSProfile: &armworkloads.OSProfile{ + // AdminUsername: to.Ptr("{your-username}"), + // OSConfiguration: &armworkloads.LinuxConfiguration{ + // OSType: to.Ptr(armworkloads.OSTypeLinux), + // DisablePasswordAuthentication: to.Ptr(true), + // SSH: &armworkloads.SSHConfiguration{ + // PublicKeys: []*armworkloads.SSHPublicKey{ + // { + // KeyData: to.Ptr("ssh-rsa public key"), + // }}, + // }, + // }, + // }, + // VMSize: to.Ptr("Standard_E32ds_v4"), + // }, + // }, + // CentralServer: &armworkloads.CentralServerConfiguration{ + // InstanceCount: to.Ptr[int64](2), + // SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), + // VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + // ImageReference: &armworkloads.ImageReference{ + // Offer: to.Ptr("RHEL-SAP"), + // Publisher: to.Ptr("RedHat"), + // SKU: to.Ptr("7.4"), + // Version: to.Ptr("7.4.2019062505"), + // }, + // OSProfile: &armworkloads.OSProfile{ + // AdminUsername: to.Ptr("{your-username}"), + // OSConfiguration: &armworkloads.LinuxConfiguration{ + // OSType: to.Ptr(armworkloads.OSTypeLinux), + // DisablePasswordAuthentication: to.Ptr(true), + // SSH: &armworkloads.SSHConfiguration{ + // PublicKeys: []*armworkloads.SSHPublicKey{ + // { + // KeyData: to.Ptr("ssh-rsa public key"), + // }}, + // }, + // }, + // }, + // VMSize: to.Ptr("Standard_E16ds_v4"), + // }, + // }, + // DatabaseServer: &armworkloads.DatabaseConfiguration{ + // DatabaseType: to.Ptr(armworkloads.SAPDatabaseTypeHANA), + // InstanceCount: to.Ptr[int64](2), + // SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet"), + // VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + // ImageReference: &armworkloads.ImageReference{ + // Offer: to.Ptr("RHEL-SAP"), + // Publisher: to.Ptr("RedHat"), + // SKU: to.Ptr("7.4"), + // Version: to.Ptr("7.4.2019062505"), + // }, + // OSProfile: &armworkloads.OSProfile{ + // AdminUsername: to.Ptr("{your-username}"), + // OSConfiguration: &armworkloads.LinuxConfiguration{ + // OSType: to.Ptr(armworkloads.OSTypeLinux), + // DisablePasswordAuthentication: to.Ptr(true), + // SSH: &armworkloads.SSHConfiguration{ + // PublicKeys: []*armworkloads.SSHPublicKey{ + // { + // KeyData: to.Ptr("ssh-rsa public key"), + // }}, + // }, + // }, + // }, + // VMSize: to.Ptr("Standard_M32ts"), + // }, + // }, + // HighAvailabilityConfig: &armworkloads.HighAvailabilityConfiguration{ + // HighAvailabilityType: to.Ptr(armworkloads.SAPHighAvailabilityTypeAvailabilitySet), + // }, + // }, + // }, + // Environment: to.Ptr(armworkloads.SAPEnvironmentTypeProd), + // Health: to.Ptr(armworkloads.SAPHealthStateUnknown), + // ProvisioningState: to.Ptr(armworkloads.SapVirtualInstanceProvisioningStateSucceeded), + // SapProduct: to.Ptr(armworkloads.SAPProductTypeS4HANA), + // State: to.Ptr(armworkloads.SAPVirtualInstanceStateSoftwareInstallationPending), + // Status: to.Ptr(armworkloads.SAPVirtualInstanceStatus("Unknown")), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Create_HA_AvZone.json +func ExampleSAPVirtualInstancesClient_BeginCreate_createInfrastructureOnlyForHaSystemWithAvailabilityZone() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armworkloads.NewSAPVirtualInstancesClient("8e17e36c-42e9-4cd5-a078-7b44883414e0", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreate(ctx, "test-rg", "X00", armworkloads.SAPVirtualInstance{ + Location: to.Ptr("westcentralus"), + Tags: map[string]*string{}, + Properties: &armworkloads.SAPVirtualInstanceProperties{ + Configuration: &armworkloads.DeploymentConfiguration{ + ConfigurationType: to.Ptr(armworkloads.SAPConfigurationTypeDeployment), + AppLocation: to.Ptr("eastus"), + InfrastructureConfiguration: &armworkloads.ThreeTierConfiguration{ + AppResourceGroup: to.Ptr("X00-RG"), + DeploymentType: to.Ptr(armworkloads.SAPDeploymentTypeThreeTier), + ApplicationServer: &armworkloads.ApplicationServerConfiguration{ + InstanceCount: to.Ptr[int64](6), + SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), + VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + ImageReference: &armworkloads.ImageReference{ + Offer: to.Ptr("RHEL-SAP"), + Publisher: to.Ptr("RedHat"), + SKU: to.Ptr("7.4"), + Version: to.Ptr("7.4.2019062505"), + }, + OSProfile: &armworkloads.OSProfile{ + AdminUsername: to.Ptr("{your-username}"), + OSConfiguration: &armworkloads.LinuxConfiguration{ + OSType: to.Ptr(armworkloads.OSTypeLinux), + DisablePasswordAuthentication: to.Ptr(true), + SSH: &armworkloads.SSHConfiguration{ + PublicKeys: []*armworkloads.SSHPublicKey{ + { + KeyData: to.Ptr("ssh-rsa public key"), + }}, + }, + }, + }, + VMSize: to.Ptr("Standard_E32ds_v4"), + }, + }, + CentralServer: &armworkloads.CentralServerConfiguration{ + InstanceCount: to.Ptr[int64](2), + SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), + VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + ImageReference: &armworkloads.ImageReference{ + Offer: to.Ptr("RHEL-SAP"), + Publisher: to.Ptr("RedHat"), + SKU: to.Ptr("7.4"), + Version: to.Ptr("7.4.2019062505"), + }, + OSProfile: &armworkloads.OSProfile{ + AdminUsername: to.Ptr("{your-username}"), + OSConfiguration: &armworkloads.LinuxConfiguration{ + OSType: to.Ptr(armworkloads.OSTypeLinux), + DisablePasswordAuthentication: to.Ptr(true), + SSH: &armworkloads.SSHConfiguration{ + PublicKeys: []*armworkloads.SSHPublicKey{ + { + KeyData: to.Ptr("ssh-rsa public key"), + }}, + }, + }, + }, + VMSize: to.Ptr("Standard_E16ds_v4"), + }, + }, + DatabaseServer: &armworkloads.DatabaseConfiguration{ + DatabaseType: to.Ptr(armworkloads.SAPDatabaseTypeHANA), + InstanceCount: to.Ptr[int64](2), + SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet"), + VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + ImageReference: &armworkloads.ImageReference{ + Offer: to.Ptr("RHEL-SAP"), + Publisher: to.Ptr("RedHat"), + SKU: to.Ptr("7.4"), + Version: to.Ptr("7.4.2019062505"), + }, + OSProfile: &armworkloads.OSProfile{ + AdminUsername: to.Ptr("{your-username}"), + OSConfiguration: &armworkloads.LinuxConfiguration{ + OSType: to.Ptr(armworkloads.OSTypeLinux), + DisablePasswordAuthentication: to.Ptr(true), + SSH: &armworkloads.SSHConfiguration{ + PublicKeys: []*armworkloads.SSHPublicKey{ + { + KeyData: to.Ptr("ssh-rsa public key"), + }}, + }, + }, + }, + VMSize: to.Ptr("Standard_M32ts"), + }, + }, + HighAvailabilityConfig: &armworkloads.HighAvailabilityConfiguration{ + HighAvailabilityType: to.Ptr(armworkloads.SAPHighAvailabilityTypeAvailabilityZone), + }, + }, + }, + Environment: to.Ptr(armworkloads.SAPEnvironmentTypeProd), + SapProduct: to.Ptr(armworkloads.SAPProductTypeS4HANA), + }, + }, 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.SAPVirtualInstance = armworkloads.SAPVirtualInstance{ + // Name: to.Ptr("X00"), + // Type: to.Ptr("Microsoft.Workloads/sapVirtualInstances"), + // ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapVirtualInstances/X00"), + // SystemData: &armworkloads.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // CreatedBy: to.Ptr("user@xyz.com"), + // CreatedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // LastModifiedBy: to.Ptr("user@xyz.com"), + // LastModifiedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // }, + // Location: to.Ptr("westcentralus"), + // Tags: map[string]*string{ + // }, + // Properties: &armworkloads.SAPVirtualInstanceProperties{ + // Configuration: &armworkloads.DeploymentConfiguration{ + // ConfigurationType: to.Ptr(armworkloads.SAPConfigurationTypeDeployment), + // AppLocation: to.Ptr("eastus"), + // InfrastructureConfiguration: &armworkloads.ThreeTierConfiguration{ + // AppResourceGroup: to.Ptr("X00-RG"), + // DeploymentType: to.Ptr(armworkloads.SAPDeploymentTypeThreeTier), + // ApplicationServer: &armworkloads.ApplicationServerConfiguration{ + // InstanceCount: to.Ptr[int64](6), + // SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), + // VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + // ImageReference: &armworkloads.ImageReference{ + // Offer: to.Ptr("RHEL-SAP"), + // Publisher: to.Ptr("RedHat"), + // SKU: to.Ptr("7.4"), + // Version: to.Ptr("7.4.2019062505"), + // }, + // OSProfile: &armworkloads.OSProfile{ + // AdminUsername: to.Ptr("{your-username}"), + // OSConfiguration: &armworkloads.LinuxConfiguration{ + // OSType: to.Ptr(armworkloads.OSTypeLinux), + // DisablePasswordAuthentication: to.Ptr(true), + // SSH: &armworkloads.SSHConfiguration{ + // PublicKeys: []*armworkloads.SSHPublicKey{ + // { + // KeyData: to.Ptr("ssh-rsa public key"), + // }}, + // }, + // }, + // }, + // VMSize: to.Ptr("Standard_E32ds_v4"), + // }, + // }, + // CentralServer: &armworkloads.CentralServerConfiguration{ + // InstanceCount: to.Ptr[int64](2), + // SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), + // VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + // ImageReference: &armworkloads.ImageReference{ + // Offer: to.Ptr("RHEL-SAP"), + // Publisher: to.Ptr("RedHat"), + // SKU: to.Ptr("7.4"), + // Version: to.Ptr("7.4.2019062505"), + // }, + // OSProfile: &armworkloads.OSProfile{ + // AdminUsername: to.Ptr("{your-username}"), + // OSConfiguration: &armworkloads.LinuxConfiguration{ + // OSType: to.Ptr(armworkloads.OSTypeLinux), + // DisablePasswordAuthentication: to.Ptr(true), + // SSH: &armworkloads.SSHConfiguration{ + // PublicKeys: []*armworkloads.SSHPublicKey{ + // { + // KeyData: to.Ptr("ssh-rsa public key"), + // }}, + // }, + // }, + // }, + // VMSize: to.Ptr("Standard_E16ds_v4"), + // }, + // }, + // DatabaseServer: &armworkloads.DatabaseConfiguration{ + // DatabaseType: to.Ptr(armworkloads.SAPDatabaseTypeHANA), + // InstanceCount: to.Ptr[int64](2), + // SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet"), + // VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + // ImageReference: &armworkloads.ImageReference{ + // Offer: to.Ptr("RHEL-SAP"), + // Publisher: to.Ptr("RedHat"), + // SKU: to.Ptr("7.4"), + // Version: to.Ptr("7.4.2019062505"), + // }, + // OSProfile: &armworkloads.OSProfile{ + // AdminUsername: to.Ptr("{your-username}"), + // OSConfiguration: &armworkloads.LinuxConfiguration{ + // OSType: to.Ptr(armworkloads.OSTypeLinux), + // DisablePasswordAuthentication: to.Ptr(true), + // SSH: &armworkloads.SSHConfiguration{ + // PublicKeys: []*armworkloads.SSHPublicKey{ + // { + // KeyData: to.Ptr("ssh-rsa public key"), + // }}, + // }, + // }, + // }, + // VMSize: to.Ptr("Standard_M32ts"), + // }, + // }, + // HighAvailabilityConfig: &armworkloads.HighAvailabilityConfiguration{ + // HighAvailabilityType: to.Ptr(armworkloads.SAPHighAvailabilityTypeAvailabilityZone), + // }, + // }, + // }, + // Environment: to.Ptr(armworkloads.SAPEnvironmentTypeProd), + // Health: to.Ptr(armworkloads.SAPHealthStateUnknown), + // ProvisioningState: to.Ptr(armworkloads.SapVirtualInstanceProvisioningStateSucceeded), + // SapProduct: to.Ptr(armworkloads.SAPProductTypeS4HANA), + // State: to.Ptr(armworkloads.SAPVirtualInstanceStateSoftwareInstallationPending), + // Status: to.Ptr(armworkloads.SAPVirtualInstanceStatus("Unknown")), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Create_SingleServer.json +func ExampleSAPVirtualInstancesClient_BeginCreate_createInfrastructureOnlyForSingleServerSystem() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armworkloads.NewSAPVirtualInstancesClient("8e17e36c-42e9-4cd5-a078-7b44883414e0", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreate(ctx, "test-rg", "X00", armworkloads.SAPVirtualInstance{ + Location: to.Ptr("westcentralus"), + Tags: map[string]*string{}, + Properties: &armworkloads.SAPVirtualInstanceProperties{ + Configuration: &armworkloads.DeploymentConfiguration{ + ConfigurationType: to.Ptr(armworkloads.SAPConfigurationTypeDeployment), + AppLocation: to.Ptr("eastus"), + InfrastructureConfiguration: &armworkloads.SingleServerConfiguration{ + AppResourceGroup: to.Ptr("X00-RG"), + DeploymentType: to.Ptr(armworkloads.SAPDeploymentTypeSingleServer), + DatabaseType: to.Ptr(armworkloads.SAPDatabaseTypeHANA), + NetworkConfiguration: &armworkloads.NetworkConfiguration{ + IsSecondaryIPEnabled: to.Ptr(true), + }, + SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), + VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + ImageReference: &armworkloads.ImageReference{ + Offer: to.Ptr("RHEL-SAP"), + Publisher: to.Ptr("RedHat"), + SKU: to.Ptr("7.4"), + Version: to.Ptr("7.4.2019062505"), + }, + OSProfile: &armworkloads.OSProfile{ + AdminUsername: to.Ptr("{your-username}"), + OSConfiguration: &armworkloads.LinuxConfiguration{ + OSType: to.Ptr(armworkloads.OSTypeLinux), + DisablePasswordAuthentication: to.Ptr(true), + SSH: &armworkloads.SSHConfiguration{ + PublicKeys: []*armworkloads.SSHPublicKey{ + { + KeyData: to.Ptr("ssh-rsa public key"), + }}, + }, + }, + }, + VMSize: to.Ptr("Standard_E32ds_v4"), + }, + }, + }, + Environment: to.Ptr(armworkloads.SAPEnvironmentTypeNonProd), + SapProduct: to.Ptr(armworkloads.SAPProductTypeS4HANA), + }, + }, 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.SAPVirtualInstance = armworkloads.SAPVirtualInstance{ + // Name: to.Ptr("X00"), + // Type: to.Ptr("Microsoft.Workloads/sapVirtualInstances"), + // ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapVirtualInstances/X00"), + // SystemData: &armworkloads.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // CreatedBy: to.Ptr("user@xyz.com"), + // CreatedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // LastModifiedBy: to.Ptr("user@xyz.com"), + // LastModifiedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // }, + // Location: to.Ptr("westcentralus"), + // Tags: map[string]*string{ + // }, + // Properties: &armworkloads.SAPVirtualInstanceProperties{ + // Configuration: &armworkloads.DeploymentConfiguration{ + // ConfigurationType: to.Ptr(armworkloads.SAPConfigurationTypeDeployment), + // AppLocation: to.Ptr("eastus"), + // InfrastructureConfiguration: &armworkloads.SingleServerConfiguration{ + // AppResourceGroup: to.Ptr("X00-RG"), + // DeploymentType: to.Ptr(armworkloads.SAPDeploymentTypeSingleServer), + // DatabaseType: to.Ptr(armworkloads.SAPDatabaseTypeHANA), + // SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), + // VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + // ImageReference: &armworkloads.ImageReference{ + // Offer: to.Ptr("RHEL-SAP"), + // Publisher: to.Ptr("RedHat"), + // SKU: to.Ptr("7.4"), + // Version: to.Ptr("7.4.2019062505"), + // }, + // OSProfile: &armworkloads.OSProfile{ + // AdminUsername: to.Ptr("{your-username}"), + // OSConfiguration: &armworkloads.LinuxConfiguration{ + // OSType: to.Ptr(armworkloads.OSTypeLinux), + // DisablePasswordAuthentication: to.Ptr(true), + // SSH: &armworkloads.SSHConfiguration{ + // PublicKeys: []*armworkloads.SSHPublicKey{ + // { + // KeyData: to.Ptr("ssh-rsa public key"), + // }}, + // }, + // }, + // }, + // VMSize: to.Ptr("Standard_E32ds_v4"), + // }, + // }, + // }, + // Environment: to.Ptr(armworkloads.SAPEnvironmentTypeNonProd), + // Health: to.Ptr(armworkloads.SAPHealthStateUnknown), + // ProvisioningState: to.Ptr(armworkloads.SapVirtualInstanceProvisioningStateSucceeded), + // SapProduct: to.Ptr(armworkloads.SAPProductTypeS4HANA), + // State: to.Ptr(armworkloads.SAPVirtualInstanceStateSoftwareInstallationPending), + // Status: to.Ptr(armworkloads.SAPVirtualInstanceStatus("Unknown")), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Create_DiskDetails_Distributed.json +func ExampleSAPVirtualInstancesClient_BeginCreate_createInfrastructureWithDiskAndOsConfigurationForDistributedSystemRecommended() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armworkloads.NewSAPVirtualInstancesClient("8e17e36c-42e9-4cd5-a078-7b44883414e0", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreate(ctx, "test-rg", "X00", armworkloads.SAPVirtualInstance{ + Location: to.Ptr("westcentralus"), + Tags: map[string]*string{}, + Properties: &armworkloads.SAPVirtualInstanceProperties{ + Configuration: &armworkloads.DeploymentWithOSConfiguration{ + ConfigurationType: to.Ptr(armworkloads.SAPConfigurationTypeDeploymentWithOSConfig), + AppLocation: to.Ptr("eastus"), + InfrastructureConfiguration: &armworkloads.ThreeTierConfiguration{ + AppResourceGroup: to.Ptr("X00-RG"), + DeploymentType: to.Ptr(armworkloads.SAPDeploymentTypeThreeTier), + ApplicationServer: &armworkloads.ApplicationServerConfiguration{ + InstanceCount: to.Ptr[int64](6), + SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), + VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + ImageReference: &armworkloads.ImageReference{ + Offer: to.Ptr("RHEL-SAP"), + Publisher: to.Ptr("RedHat"), + SKU: to.Ptr("7.4"), + Version: to.Ptr("7.4.2019062505"), + }, + OSProfile: &armworkloads.OSProfile{ + AdminUsername: to.Ptr("{your-username}"), + OSConfiguration: &armworkloads.LinuxConfiguration{ + OSType: to.Ptr(armworkloads.OSTypeLinux), + DisablePasswordAuthentication: to.Ptr(true), + SSHKeyPair: &armworkloads.SSHKeyPair{ + PrivateKey: to.Ptr("xyz"), + PublicKey: to.Ptr("abc"), + }, + }, + }, + VMSize: to.Ptr("Standard_E32ds_v4"), + }, + }, + CentralServer: &armworkloads.CentralServerConfiguration{ + InstanceCount: to.Ptr[int64](1), + SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), + VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + ImageReference: &armworkloads.ImageReference{ + Offer: to.Ptr("RHEL-SAP"), + Publisher: to.Ptr("RedHat"), + SKU: to.Ptr("7.4"), + Version: to.Ptr("7.4.2019062505"), + }, + OSProfile: &armworkloads.OSProfile{ + AdminUsername: to.Ptr("{your-username}"), + OSConfiguration: &armworkloads.LinuxConfiguration{ + OSType: to.Ptr(armworkloads.OSTypeLinux), + DisablePasswordAuthentication: to.Ptr(true), + SSHKeyPair: &armworkloads.SSHKeyPair{ + PrivateKey: to.Ptr("xyz"), + PublicKey: to.Ptr("abc"), + }, + }, + }, + VMSize: to.Ptr("Standard_E16ds_v4"), + }, + }, + DatabaseServer: &armworkloads.DatabaseConfiguration{ + DatabaseType: to.Ptr(armworkloads.SAPDatabaseTypeHANA), + DiskConfiguration: &armworkloads.DiskConfiguration{ + DiskVolumeConfigurations: map[string]*armworkloads.DiskVolumeConfiguration{ + "backup": { + Count: to.Ptr[int64](2), + SizeGB: to.Ptr[int64](256), + SKU: &armworkloads.DiskSKU{ + Name: to.Ptr(armworkloads.DiskSKUNameStandardSSDLRS), + }, + }, + "hana/data": { + Count: to.Ptr[int64](4), + SizeGB: to.Ptr[int64](128), + SKU: &armworkloads.DiskSKU{ + Name: to.Ptr(armworkloads.DiskSKUNamePremiumLRS), + }, + }, + "hana/log": { + Count: to.Ptr[int64](3), + SizeGB: to.Ptr[int64](128), + SKU: &armworkloads.DiskSKU{ + Name: to.Ptr(armworkloads.DiskSKUNamePremiumLRS), + }, + }, + "hana/shared": { + Count: to.Ptr[int64](1), + SizeGB: to.Ptr[int64](256), + SKU: &armworkloads.DiskSKU{ + Name: to.Ptr(armworkloads.DiskSKUNameStandardSSDLRS), + }, + }, + "os": { + Count: to.Ptr[int64](1), + SizeGB: to.Ptr[int64](64), + SKU: &armworkloads.DiskSKU{ + Name: to.Ptr(armworkloads.DiskSKUNameStandardSSDLRS), + }, + }, + "usr/sap": { + Count: to.Ptr[int64](1), + SizeGB: to.Ptr[int64](128), + SKU: &armworkloads.DiskSKU{ + Name: to.Ptr(armworkloads.DiskSKUNamePremiumLRS), + }, + }, + }, + }, + InstanceCount: to.Ptr[int64](1), + SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet"), + VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + ImageReference: &armworkloads.ImageReference{ + Offer: to.Ptr("RHEL-SAP"), + Publisher: to.Ptr("RedHat"), + SKU: to.Ptr("7.4"), + Version: to.Ptr("7.4.2019062505"), + }, + OSProfile: &armworkloads.OSProfile{ + AdminUsername: to.Ptr("{your-username}"), + OSConfiguration: &armworkloads.LinuxConfiguration{ + OSType: to.Ptr(armworkloads.OSTypeLinux), + DisablePasswordAuthentication: to.Ptr(true), + SSHKeyPair: &armworkloads.SSHKeyPair{ + PrivateKey: to.Ptr("xyz"), + PublicKey: to.Ptr("abc"), + }, + }, + }, + VMSize: to.Ptr("Standard_M32ts"), + }, + }, + }, + OSSapConfiguration: &armworkloads.OsSapConfiguration{ + SapFqdn: to.Ptr("xyz.test.com"), + }, + }, + Environment: to.Ptr(armworkloads.SAPEnvironmentTypeProd), + SapProduct: to.Ptr(armworkloads.SAPProductTypeS4HANA), + }, + }, 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.SAPVirtualInstance = armworkloads.SAPVirtualInstance{ + // Name: to.Ptr("X00"), + // Type: to.Ptr("Microsoft.Workloads/sapVirtualInstances"), + // ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapVirtualInstances/X00"), + // SystemData: &armworkloads.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // CreatedBy: to.Ptr("user@xyz.com"), + // CreatedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // LastModifiedBy: to.Ptr("user@xyz.com"), + // LastModifiedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // }, + // Location: to.Ptr("westcentralus"), + // Tags: map[string]*string{ + // }, + // Properties: &armworkloads.SAPVirtualInstanceProperties{ + // Configuration: &armworkloads.DeploymentWithOSConfiguration{ + // ConfigurationType: to.Ptr(armworkloads.SAPConfigurationTypeDeploymentWithOSConfig), + // AppLocation: to.Ptr("eastus"), + // InfrastructureConfiguration: &armworkloads.ThreeTierConfiguration{ + // AppResourceGroup: to.Ptr("X00-RG"), + // DeploymentType: to.Ptr(armworkloads.SAPDeploymentTypeThreeTier), + // ApplicationServer: &armworkloads.ApplicationServerConfiguration{ + // InstanceCount: to.Ptr[int64](6), + // SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), + // VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + // ImageReference: &armworkloads.ImageReference{ + // Offer: to.Ptr("RHEL-SAP"), + // Publisher: to.Ptr("RedHat"), + // SKU: to.Ptr("7.4"), + // Version: to.Ptr("7.4.2019062505"), + // }, + // OSProfile: &armworkloads.OSProfile{ + // AdminUsername: to.Ptr("{your-username}"), + // OSConfiguration: &armworkloads.LinuxConfiguration{ + // OSType: to.Ptr(armworkloads.OSTypeLinux), + // DisablePasswordAuthentication: to.Ptr(true), + // SSHKeyPair: &armworkloads.SSHKeyPair{ + // PublicKey: to.Ptr("abc"), + // }, + // }, + // }, + // VMSize: to.Ptr("Standard_E32ds_v4"), + // }, + // }, + // CentralServer: &armworkloads.CentralServerConfiguration{ + // InstanceCount: to.Ptr[int64](1), + // SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), + // VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + // ImageReference: &armworkloads.ImageReference{ + // Offer: to.Ptr("RHEL-SAP"), + // Publisher: to.Ptr("RedHat"), + // SKU: to.Ptr("7.4"), + // Version: to.Ptr("7.4.2019062505"), + // }, + // OSProfile: &armworkloads.OSProfile{ + // AdminUsername: to.Ptr("{your-username}"), + // OSConfiguration: &armworkloads.LinuxConfiguration{ + // OSType: to.Ptr(armworkloads.OSTypeLinux), + // DisablePasswordAuthentication: to.Ptr(true), + // SSHKeyPair: &armworkloads.SSHKeyPair{ + // PublicKey: to.Ptr("abc"), + // }, + // }, + // }, + // VMSize: to.Ptr("Standard_E16ds_v4"), + // }, + // }, + // DatabaseServer: &armworkloads.DatabaseConfiguration{ + // DatabaseType: to.Ptr(armworkloads.SAPDatabaseTypeHANA), + // DiskConfiguration: &armworkloads.DiskConfiguration{ + // DiskVolumeConfigurations: map[string]*armworkloads.DiskVolumeConfiguration{ + // "backup": &armworkloads.DiskVolumeConfiguration{ + // Count: to.Ptr[int64](2), + // SizeGB: to.Ptr[int64](256), + // SKU: &armworkloads.DiskSKU{ + // Name: to.Ptr(armworkloads.DiskSKUNameStandardSSDLRS), + // }, + // }, + // "hana/data": &armworkloads.DiskVolumeConfiguration{ + // Count: to.Ptr[int64](4), + // SizeGB: to.Ptr[int64](128), + // SKU: &armworkloads.DiskSKU{ + // Name: to.Ptr(armworkloads.DiskSKUNamePremiumLRS), + // }, + // }, + // "hana/log": &armworkloads.DiskVolumeConfiguration{ + // Count: to.Ptr[int64](3), + // SizeGB: to.Ptr[int64](128), + // SKU: &armworkloads.DiskSKU{ + // Name: to.Ptr(armworkloads.DiskSKUNamePremiumLRS), + // }, + // }, + // "hana/shared": &armworkloads.DiskVolumeConfiguration{ + // Count: to.Ptr[int64](1), + // SizeGB: to.Ptr[int64](256), + // SKU: &armworkloads.DiskSKU{ + // Name: to.Ptr(armworkloads.DiskSKUNameStandardSSDLRS), + // }, + // }, + // "os": &armworkloads.DiskVolumeConfiguration{ + // Count: to.Ptr[int64](1), + // SizeGB: to.Ptr[int64](64), + // SKU: &armworkloads.DiskSKU{ + // Name: to.Ptr(armworkloads.DiskSKUNameStandardSSDLRS), + // }, + // }, + // "usr/sap": &armworkloads.DiskVolumeConfiguration{ + // Count: to.Ptr[int64](1), + // SizeGB: to.Ptr[int64](128), + // SKU: &armworkloads.DiskSKU{ + // Name: to.Ptr(armworkloads.DiskSKUNamePremiumLRS), + // }, + // }, + // }, + // }, + // InstanceCount: to.Ptr[int64](1), + // SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet"), + // VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + // ImageReference: &armworkloads.ImageReference{ + // Offer: to.Ptr("RHEL-SAP"), + // Publisher: to.Ptr("RedHat"), + // SKU: to.Ptr("7.4"), + // Version: to.Ptr("7.4.2019062505"), + // }, + // OSProfile: &armworkloads.OSProfile{ + // AdminUsername: to.Ptr("{your-username}"), + // OSConfiguration: &armworkloads.LinuxConfiguration{ + // OSType: to.Ptr(armworkloads.OSTypeLinux), + // DisablePasswordAuthentication: to.Ptr(true), + // SSHKeyPair: &armworkloads.SSHKeyPair{ + // PublicKey: to.Ptr("abc"), + // }, + // }, + // }, + // VMSize: to.Ptr("Standard_M32ts"), + // }, + // }, + // }, + // OSSapConfiguration: &armworkloads.OsSapConfiguration{ + // SapFqdn: to.Ptr("xyz.test.com"), + // }, + // }, + // Environment: to.Ptr(armworkloads.SAPEnvironmentTypeProd), + // Health: to.Ptr(armworkloads.SAPHealthStateUnknown), + // ProvisioningState: to.Ptr(armworkloads.SapVirtualInstanceProvisioningStateSucceeded), + // SapProduct: to.Ptr(armworkloads.SAPProductTypeS4HANA), + // State: to.Ptr(armworkloads.SAPVirtualInstanceStateSoftwareInstallationPending), + // Status: to.Ptr(armworkloads.SAPVirtualInstanceStatus("Unknown")), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Create_DiskDetails_HA_AvSet.json +func ExampleSAPVirtualInstancesClient_BeginCreate_createInfrastructureWithDiskAndOsConfigurationForHaSystemWithAvailabilitySetRecommended() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armworkloads.NewSAPVirtualInstancesClient("8e17e36c-42e9-4cd5-a078-7b44883414e0", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreate(ctx, "test-rg", "X00", armworkloads.SAPVirtualInstance{ + Location: to.Ptr("westcentralus"), + Tags: map[string]*string{}, + Properties: &armworkloads.SAPVirtualInstanceProperties{ + Configuration: &armworkloads.DeploymentWithOSConfiguration{ + ConfigurationType: to.Ptr(armworkloads.SAPConfigurationTypeDeploymentWithOSConfig), + AppLocation: to.Ptr("eastus"), + InfrastructureConfiguration: &armworkloads.ThreeTierConfiguration{ + AppResourceGroup: to.Ptr("X00-RG"), + DeploymentType: to.Ptr(armworkloads.SAPDeploymentTypeThreeTier), + ApplicationServer: &armworkloads.ApplicationServerConfiguration{ + InstanceCount: to.Ptr[int64](6), + SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), + VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + ImageReference: &armworkloads.ImageReference{ + Offer: to.Ptr("RHEL-SAP"), + Publisher: to.Ptr("RedHat"), + SKU: to.Ptr("7.4"), + Version: to.Ptr("7.4.2019062505"), + }, + OSProfile: &armworkloads.OSProfile{ + AdminUsername: to.Ptr("{your-username}"), + OSConfiguration: &armworkloads.LinuxConfiguration{ + OSType: to.Ptr(armworkloads.OSTypeLinux), + DisablePasswordAuthentication: to.Ptr(true), + SSHKeyPair: &armworkloads.SSHKeyPair{ + PrivateKey: to.Ptr("xyz"), + PublicKey: to.Ptr("abc"), + }, + }, + }, + VMSize: to.Ptr("Standard_E32ds_v4"), + }, + }, + CentralServer: &armworkloads.CentralServerConfiguration{ + InstanceCount: to.Ptr[int64](2), + SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), + VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + ImageReference: &armworkloads.ImageReference{ + Offer: to.Ptr("RHEL-SAP"), + Publisher: to.Ptr("RedHat"), + SKU: to.Ptr("7.4"), + Version: to.Ptr("7.4.2019062505"), + }, + OSProfile: &armworkloads.OSProfile{ + AdminUsername: to.Ptr("{your-username}"), + OSConfiguration: &armworkloads.LinuxConfiguration{ + OSType: to.Ptr(armworkloads.OSTypeLinux), + DisablePasswordAuthentication: to.Ptr(true), + SSHKeyPair: &armworkloads.SSHKeyPair{ + PrivateKey: to.Ptr("xyz"), + PublicKey: to.Ptr("abc"), + }, + }, + }, + VMSize: to.Ptr("Standard_E16ds_v4"), + }, + }, + DatabaseServer: &armworkloads.DatabaseConfiguration{ + DatabaseType: to.Ptr(armworkloads.SAPDatabaseTypeHANA), + DiskConfiguration: &armworkloads.DiskConfiguration{ + DiskVolumeConfigurations: map[string]*armworkloads.DiskVolumeConfiguration{ + "backup": { + Count: to.Ptr[int64](2), + SizeGB: to.Ptr[int64](256), + SKU: &armworkloads.DiskSKU{ + Name: to.Ptr(armworkloads.DiskSKUNameStandardSSDLRS), + }, + }, + "hana/data": { + Count: to.Ptr[int64](4), + SizeGB: to.Ptr[int64](128), + SKU: &armworkloads.DiskSKU{ + Name: to.Ptr(armworkloads.DiskSKUNamePremiumLRS), + }, + }, + "hana/log": { + Count: to.Ptr[int64](3), + SizeGB: to.Ptr[int64](128), + SKU: &armworkloads.DiskSKU{ + Name: to.Ptr(armworkloads.DiskSKUNamePremiumLRS), + }, + }, + "hana/shared": { + Count: to.Ptr[int64](1), + SizeGB: to.Ptr[int64](256), + SKU: &armworkloads.DiskSKU{ + Name: to.Ptr(armworkloads.DiskSKUNameStandardSSDLRS), + }, + }, + "os": { + Count: to.Ptr[int64](1), + SizeGB: to.Ptr[int64](64), + SKU: &armworkloads.DiskSKU{ + Name: to.Ptr(armworkloads.DiskSKUNameStandardSSDLRS), + }, + }, + "usr/sap": { + Count: to.Ptr[int64](1), + SizeGB: to.Ptr[int64](128), + SKU: &armworkloads.DiskSKU{ + Name: to.Ptr(armworkloads.DiskSKUNamePremiumLRS), + }, + }, + }, + }, + InstanceCount: to.Ptr[int64](2), + SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet"), + VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + ImageReference: &armworkloads.ImageReference{ + Offer: to.Ptr("RHEL-SAP"), + Publisher: to.Ptr("RedHat"), + SKU: to.Ptr("7.4"), + Version: to.Ptr("7.4.2019062505"), + }, + OSProfile: &armworkloads.OSProfile{ + AdminUsername: to.Ptr("{your-username}"), + OSConfiguration: &armworkloads.LinuxConfiguration{ + OSType: to.Ptr(armworkloads.OSTypeLinux), + DisablePasswordAuthentication: to.Ptr(true), + SSHKeyPair: &armworkloads.SSHKeyPair{ + PrivateKey: to.Ptr("xyz"), + PublicKey: to.Ptr("abc"), + }, + }, + }, + VMSize: to.Ptr("Standard_M32ts"), + }, + }, + HighAvailabilityConfig: &armworkloads.HighAvailabilityConfiguration{ + HighAvailabilityType: to.Ptr(armworkloads.SAPHighAvailabilityTypeAvailabilitySet), + }, + }, + OSSapConfiguration: &armworkloads.OsSapConfiguration{ + SapFqdn: to.Ptr("xyz.test.com"), + }, + }, + Environment: to.Ptr(armworkloads.SAPEnvironmentTypeProd), + SapProduct: to.Ptr(armworkloads.SAPProductTypeS4HANA), + }, + }, 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.SAPVirtualInstance = armworkloads.SAPVirtualInstance{ + // Name: to.Ptr("X00"), + // Type: to.Ptr("Microsoft.Workloads/sapVirtualInstances"), + // ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapVirtualInstances/X00"), + // SystemData: &armworkloads.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // CreatedBy: to.Ptr("user@xyz.com"), + // CreatedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // LastModifiedBy: to.Ptr("user@xyz.com"), + // LastModifiedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // }, + // Location: to.Ptr("westcentralus"), + // Tags: map[string]*string{ + // }, + // Properties: &armworkloads.SAPVirtualInstanceProperties{ + // Configuration: &armworkloads.DeploymentWithOSConfiguration{ + // ConfigurationType: to.Ptr(armworkloads.SAPConfigurationTypeDeploymentWithOSConfig), + // AppLocation: to.Ptr("eastus"), + // InfrastructureConfiguration: &armworkloads.ThreeTierConfiguration{ + // AppResourceGroup: to.Ptr("X00-RG"), + // DeploymentType: to.Ptr(armworkloads.SAPDeploymentTypeThreeTier), + // ApplicationServer: &armworkloads.ApplicationServerConfiguration{ + // InstanceCount: to.Ptr[int64](6), + // SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), + // VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + // ImageReference: &armworkloads.ImageReference{ + // Offer: to.Ptr("RHEL-SAP"), + // Publisher: to.Ptr("RedHat"), + // SKU: to.Ptr("7.4"), + // Version: to.Ptr("7.4.2019062505"), + // }, + // OSProfile: &armworkloads.OSProfile{ + // AdminUsername: to.Ptr("{your-username}"), + // OSConfiguration: &armworkloads.LinuxConfiguration{ + // OSType: to.Ptr(armworkloads.OSTypeLinux), + // DisablePasswordAuthentication: to.Ptr(true), + // SSHKeyPair: &armworkloads.SSHKeyPair{ + // PublicKey: to.Ptr("abc"), + // }, + // }, + // }, + // VMSize: to.Ptr("Standard_E32ds_v4"), + // }, + // }, + // CentralServer: &armworkloads.CentralServerConfiguration{ + // InstanceCount: to.Ptr[int64](2), + // SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), + // VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + // ImageReference: &armworkloads.ImageReference{ + // Offer: to.Ptr("RHEL-SAP"), + // Publisher: to.Ptr("RedHat"), + // SKU: to.Ptr("7.4"), + // Version: to.Ptr("7.4.2019062505"), + // }, + // OSProfile: &armworkloads.OSProfile{ + // AdminUsername: to.Ptr("{your-username}"), + // OSConfiguration: &armworkloads.LinuxConfiguration{ + // OSType: to.Ptr(armworkloads.OSTypeLinux), + // DisablePasswordAuthentication: to.Ptr(true), + // SSHKeyPair: &armworkloads.SSHKeyPair{ + // PublicKey: to.Ptr("abc"), + // }, + // }, + // }, + // VMSize: to.Ptr("Standard_E16ds_v4"), + // }, + // }, + // DatabaseServer: &armworkloads.DatabaseConfiguration{ + // DatabaseType: to.Ptr(armworkloads.SAPDatabaseTypeHANA), + // DiskConfiguration: &armworkloads.DiskConfiguration{ + // DiskVolumeConfigurations: map[string]*armworkloads.DiskVolumeConfiguration{ + // "backup": &armworkloads.DiskVolumeConfiguration{ + // Count: to.Ptr[int64](2), + // SizeGB: to.Ptr[int64](256), + // SKU: &armworkloads.DiskSKU{ + // Name: to.Ptr(armworkloads.DiskSKUNameStandardSSDLRS), + // }, + // }, + // "hana/data": &armworkloads.DiskVolumeConfiguration{ + // Count: to.Ptr[int64](4), + // SizeGB: to.Ptr[int64](128), + // SKU: &armworkloads.DiskSKU{ + // Name: to.Ptr(armworkloads.DiskSKUNamePremiumLRS), + // }, + // }, + // "hana/log": &armworkloads.DiskVolumeConfiguration{ + // Count: to.Ptr[int64](3), + // SizeGB: to.Ptr[int64](128), + // SKU: &armworkloads.DiskSKU{ + // Name: to.Ptr(armworkloads.DiskSKUNamePremiumLRS), + // }, + // }, + // "hana/shared": &armworkloads.DiskVolumeConfiguration{ + // Count: to.Ptr[int64](1), + // SizeGB: to.Ptr[int64](256), + // SKU: &armworkloads.DiskSKU{ + // Name: to.Ptr(armworkloads.DiskSKUNameStandardSSDLRS), + // }, + // }, + // "os": &armworkloads.DiskVolumeConfiguration{ + // Count: to.Ptr[int64](1), + // SizeGB: to.Ptr[int64](64), + // SKU: &armworkloads.DiskSKU{ + // Name: to.Ptr(armworkloads.DiskSKUNameStandardSSDLRS), + // }, + // }, + // "usr/sap": &armworkloads.DiskVolumeConfiguration{ + // Count: to.Ptr[int64](1), + // SizeGB: to.Ptr[int64](128), + // SKU: &armworkloads.DiskSKU{ + // Name: to.Ptr(armworkloads.DiskSKUNamePremiumLRS), + // }, + // }, + // }, + // }, + // InstanceCount: to.Ptr[int64](2), + // SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet"), + // VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + // ImageReference: &armworkloads.ImageReference{ + // Offer: to.Ptr("RHEL-SAP"), + // Publisher: to.Ptr("RedHat"), + // SKU: to.Ptr("7.4"), + // Version: to.Ptr("7.4.2019062505"), + // }, + // OSProfile: &armworkloads.OSProfile{ + // AdminUsername: to.Ptr("{your-username}"), + // OSConfiguration: &armworkloads.LinuxConfiguration{ + // OSType: to.Ptr(armworkloads.OSTypeLinux), + // DisablePasswordAuthentication: to.Ptr(true), + // SSHKeyPair: &armworkloads.SSHKeyPair{ + // PublicKey: to.Ptr("abc"), + // }, + // }, + // }, + // VMSize: to.Ptr("Standard_M32ts"), + // }, + // }, + // HighAvailabilityConfig: &armworkloads.HighAvailabilityConfiguration{ + // HighAvailabilityType: to.Ptr(armworkloads.SAPHighAvailabilityTypeAvailabilitySet), + // }, + // }, + // OSSapConfiguration: &armworkloads.OsSapConfiguration{ + // SapFqdn: to.Ptr("xyz.test.com"), + // }, + // }, + // Environment: to.Ptr(armworkloads.SAPEnvironmentTypeProd), + // Health: to.Ptr(armworkloads.SAPHealthStateUnknown), + // ProvisioningState: to.Ptr(armworkloads.SapVirtualInstanceProvisioningStateSucceeded), + // SapProduct: to.Ptr(armworkloads.SAPProductTypeS4HANA), + // State: to.Ptr(armworkloads.SAPVirtualInstanceStateSoftwareInstallationPending), + // Status: to.Ptr(armworkloads.SAPVirtualInstanceStatus("Unknown")), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Create_DiskDetails_HA_AvZone.json +func ExampleSAPVirtualInstancesClient_BeginCreate_createInfrastructureWithDiskAndOsConfigurationForHaSystemWithAvailabilityZoneRecommended() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armworkloads.NewSAPVirtualInstancesClient("8e17e36c-42e9-4cd5-a078-7b44883414e0", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreate(ctx, "test-rg", "X00", armworkloads.SAPVirtualInstance{ + Location: to.Ptr("westcentralus"), + Tags: map[string]*string{}, + Properties: &armworkloads.SAPVirtualInstanceProperties{ + Configuration: &armworkloads.DeploymentWithOSConfiguration{ + ConfigurationType: to.Ptr(armworkloads.SAPConfigurationTypeDeploymentWithOSConfig), + AppLocation: to.Ptr("eastus"), + InfrastructureConfiguration: &armworkloads.ThreeTierConfiguration{ + AppResourceGroup: to.Ptr("X00-RG"), + DeploymentType: to.Ptr(armworkloads.SAPDeploymentTypeThreeTier), + ApplicationServer: &armworkloads.ApplicationServerConfiguration{ + InstanceCount: to.Ptr[int64](6), + SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), + VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + ImageReference: &armworkloads.ImageReference{ + Offer: to.Ptr("RHEL-SAP"), + Publisher: to.Ptr("RedHat"), + SKU: to.Ptr("7.4"), + Version: to.Ptr("7.4.2019062505"), + }, + OSProfile: &armworkloads.OSProfile{ + AdminUsername: to.Ptr("{your-username}"), + OSConfiguration: &armworkloads.LinuxConfiguration{ + OSType: to.Ptr(armworkloads.OSTypeLinux), + DisablePasswordAuthentication: to.Ptr(true), + SSHKeyPair: &armworkloads.SSHKeyPair{ + PrivateKey: to.Ptr("xyz"), + PublicKey: to.Ptr("abc"), + }, + }, + }, + VMSize: to.Ptr("Standard_E32ds_v4"), + }, + }, + CentralServer: &armworkloads.CentralServerConfiguration{ + InstanceCount: to.Ptr[int64](2), + SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), + VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + ImageReference: &armworkloads.ImageReference{ + Offer: to.Ptr("RHEL-SAP"), + Publisher: to.Ptr("RedHat"), + SKU: to.Ptr("7.4"), + Version: to.Ptr("7.4.2019062505"), + }, + OSProfile: &armworkloads.OSProfile{ + AdminUsername: to.Ptr("{your-username}"), + OSConfiguration: &armworkloads.LinuxConfiguration{ + OSType: to.Ptr(armworkloads.OSTypeLinux), + DisablePasswordAuthentication: to.Ptr(true), + SSHKeyPair: &armworkloads.SSHKeyPair{ + PrivateKey: to.Ptr("xyz"), + PublicKey: to.Ptr("abc"), + }, + }, + }, + VMSize: to.Ptr("Standard_E16ds_v4"), + }, + }, + DatabaseServer: &armworkloads.DatabaseConfiguration{ + DatabaseType: to.Ptr(armworkloads.SAPDatabaseTypeHANA), + DiskConfiguration: &armworkloads.DiskConfiguration{ + DiskVolumeConfigurations: map[string]*armworkloads.DiskVolumeConfiguration{ + "backup": { + Count: to.Ptr[int64](2), + SizeGB: to.Ptr[int64](256), + SKU: &armworkloads.DiskSKU{ + Name: to.Ptr(armworkloads.DiskSKUNameStandardSSDLRS), + }, + }, + "hana/data": { + Count: to.Ptr[int64](4), + SizeGB: to.Ptr[int64](128), + SKU: &armworkloads.DiskSKU{ + Name: to.Ptr(armworkloads.DiskSKUNamePremiumLRS), + }, + }, + "hana/log": { + Count: to.Ptr[int64](3), + SizeGB: to.Ptr[int64](128), + SKU: &armworkloads.DiskSKU{ + Name: to.Ptr(armworkloads.DiskSKUNamePremiumLRS), + }, + }, + "hana/shared": { + Count: to.Ptr[int64](1), + SizeGB: to.Ptr[int64](256), + SKU: &armworkloads.DiskSKU{ + Name: to.Ptr(armworkloads.DiskSKUNameStandardSSDLRS), + }, + }, + "os": { + Count: to.Ptr[int64](1), + SizeGB: to.Ptr[int64](64), + SKU: &armworkloads.DiskSKU{ + Name: to.Ptr(armworkloads.DiskSKUNameStandardSSDLRS), + }, + }, + "usr/sap": { + Count: to.Ptr[int64](1), + SizeGB: to.Ptr[int64](128), + SKU: &armworkloads.DiskSKU{ + Name: to.Ptr(armworkloads.DiskSKUNamePremiumLRS), + }, + }, + }, + }, + InstanceCount: to.Ptr[int64](2), + SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet"), + VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + ImageReference: &armworkloads.ImageReference{ + Offer: to.Ptr("RHEL-SAP"), + Publisher: to.Ptr("RedHat"), + SKU: to.Ptr("7.4"), + Version: to.Ptr("7.4.2019062505"), + }, + OSProfile: &armworkloads.OSProfile{ + AdminUsername: to.Ptr("{your-username}"), + OSConfiguration: &armworkloads.LinuxConfiguration{ + OSType: to.Ptr(armworkloads.OSTypeLinux), + DisablePasswordAuthentication: to.Ptr(true), + SSHKeyPair: &armworkloads.SSHKeyPair{ + PrivateKey: to.Ptr("xyz"), + PublicKey: to.Ptr("abc"), + }, + }, + }, + VMSize: to.Ptr("Standard_M32ts"), + }, + }, + HighAvailabilityConfig: &armworkloads.HighAvailabilityConfiguration{ + HighAvailabilityType: to.Ptr(armworkloads.SAPHighAvailabilityTypeAvailabilityZone), + }, + }, + OSSapConfiguration: &armworkloads.OsSapConfiguration{ + SapFqdn: to.Ptr("xyz.test.com"), + }, + }, + Environment: to.Ptr(armworkloads.SAPEnvironmentTypeProd), + SapProduct: to.Ptr(armworkloads.SAPProductTypeS4HANA), + }, + }, 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.SAPVirtualInstance = armworkloads.SAPVirtualInstance{ + // Name: to.Ptr("X00"), + // Type: to.Ptr("Microsoft.Workloads/sapVirtualInstances"), + // ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapVirtualInstances/X00"), + // SystemData: &armworkloads.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // CreatedBy: to.Ptr("user@xyz.com"), + // CreatedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // LastModifiedBy: to.Ptr("user@xyz.com"), + // LastModifiedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // }, + // Location: to.Ptr("westcentralus"), + // Tags: map[string]*string{ + // }, + // Properties: &armworkloads.SAPVirtualInstanceProperties{ + // Configuration: &armworkloads.DeploymentWithOSConfiguration{ + // ConfigurationType: to.Ptr(armworkloads.SAPConfigurationTypeDeploymentWithOSConfig), + // AppLocation: to.Ptr("eastus"), + // InfrastructureConfiguration: &armworkloads.ThreeTierConfiguration{ + // AppResourceGroup: to.Ptr("X00-RG"), + // DeploymentType: to.Ptr(armworkloads.SAPDeploymentTypeThreeTier), + // ApplicationServer: &armworkloads.ApplicationServerConfiguration{ + // InstanceCount: to.Ptr[int64](6), + // SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), + // VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + // ImageReference: &armworkloads.ImageReference{ + // Offer: to.Ptr("RHEL-SAP"), + // Publisher: to.Ptr("RedHat"), + // SKU: to.Ptr("7.4"), + // Version: to.Ptr("7.4.2019062505"), + // }, + // OSProfile: &armworkloads.OSProfile{ + // AdminUsername: to.Ptr("{your-username}"), + // OSConfiguration: &armworkloads.LinuxConfiguration{ + // OSType: to.Ptr(armworkloads.OSTypeLinux), + // DisablePasswordAuthentication: to.Ptr(true), + // SSHKeyPair: &armworkloads.SSHKeyPair{ + // PublicKey: to.Ptr("abc"), + // }, + // }, + // }, + // VMSize: to.Ptr("Standard_E32ds_v4"), + // }, + // }, + // CentralServer: &armworkloads.CentralServerConfiguration{ + // InstanceCount: to.Ptr[int64](2), + // SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), + // VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + // ImageReference: &armworkloads.ImageReference{ + // Offer: to.Ptr("RHEL-SAP"), + // Publisher: to.Ptr("RedHat"), + // SKU: to.Ptr("7.4"), + // Version: to.Ptr("7.4.2019062505"), + // }, + // OSProfile: &armworkloads.OSProfile{ + // AdminUsername: to.Ptr("{your-username}"), + // OSConfiguration: &armworkloads.LinuxConfiguration{ + // OSType: to.Ptr(armworkloads.OSTypeLinux), + // DisablePasswordAuthentication: to.Ptr(true), + // SSHKeyPair: &armworkloads.SSHKeyPair{ + // PublicKey: to.Ptr("abc"), + // }, + // }, + // }, + // VMSize: to.Ptr("Standard_E16ds_v4"), + // }, + // }, + // DatabaseServer: &armworkloads.DatabaseConfiguration{ + // DatabaseType: to.Ptr(armworkloads.SAPDatabaseTypeHANA), + // DiskConfiguration: &armworkloads.DiskConfiguration{ + // DiskVolumeConfigurations: map[string]*armworkloads.DiskVolumeConfiguration{ + // "backup": &armworkloads.DiskVolumeConfiguration{ + // Count: to.Ptr[int64](2), + // SizeGB: to.Ptr[int64](256), + // SKU: &armworkloads.DiskSKU{ + // Name: to.Ptr(armworkloads.DiskSKUNameStandardSSDLRS), + // }, + // }, + // "hana/data": &armworkloads.DiskVolumeConfiguration{ + // Count: to.Ptr[int64](4), + // SizeGB: to.Ptr[int64](128), + // SKU: &armworkloads.DiskSKU{ + // Name: to.Ptr(armworkloads.DiskSKUNamePremiumLRS), + // }, + // }, + // "hana/log": &armworkloads.DiskVolumeConfiguration{ + // Count: to.Ptr[int64](3), + // SizeGB: to.Ptr[int64](128), + // SKU: &armworkloads.DiskSKU{ + // Name: to.Ptr(armworkloads.DiskSKUNamePremiumLRS), + // }, + // }, + // "hana/shared": &armworkloads.DiskVolumeConfiguration{ + // Count: to.Ptr[int64](1), + // SizeGB: to.Ptr[int64](256), + // SKU: &armworkloads.DiskSKU{ + // Name: to.Ptr(armworkloads.DiskSKUNameStandardSSDLRS), + // }, + // }, + // "os": &armworkloads.DiskVolumeConfiguration{ + // Count: to.Ptr[int64](1), + // SizeGB: to.Ptr[int64](64), + // SKU: &armworkloads.DiskSKU{ + // Name: to.Ptr(armworkloads.DiskSKUNameStandardSSDLRS), + // }, + // }, + // "usr/sap": &armworkloads.DiskVolumeConfiguration{ + // Count: to.Ptr[int64](1), + // SizeGB: to.Ptr[int64](128), + // SKU: &armworkloads.DiskSKU{ + // Name: to.Ptr(armworkloads.DiskSKUNamePremiumLRS), + // }, + // }, + // }, + // }, + // InstanceCount: to.Ptr[int64](2), + // SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet"), + // VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + // ImageReference: &armworkloads.ImageReference{ + // Offer: to.Ptr("RHEL-SAP"), + // Publisher: to.Ptr("RedHat"), + // SKU: to.Ptr("7.4"), + // Version: to.Ptr("7.4.2019062505"), + // }, + // OSProfile: &armworkloads.OSProfile{ + // AdminUsername: to.Ptr("{your-username}"), + // OSConfiguration: &armworkloads.LinuxConfiguration{ + // OSType: to.Ptr(armworkloads.OSTypeLinux), + // DisablePasswordAuthentication: to.Ptr(true), + // SSHKeyPair: &armworkloads.SSHKeyPair{ + // PublicKey: to.Ptr("abc"), + // }, + // }, + // }, + // VMSize: to.Ptr("Standard_M32ts"), + // }, + // }, + // HighAvailabilityConfig: &armworkloads.HighAvailabilityConfiguration{ + // HighAvailabilityType: to.Ptr(armworkloads.SAPHighAvailabilityTypeAvailabilityZone), + // }, + // }, + // OSSapConfiguration: &armworkloads.OsSapConfiguration{ + // SapFqdn: to.Ptr("xyz.test.com"), + // }, + // }, + // Environment: to.Ptr(armworkloads.SAPEnvironmentTypeProd), + // Health: to.Ptr(armworkloads.SAPHealthStateUnknown), + // ProvisioningState: to.Ptr(armworkloads.SapVirtualInstanceProvisioningStateSucceeded), + // SapProduct: to.Ptr(armworkloads.SAPProductTypeS4HANA), + // State: to.Ptr(armworkloads.SAPVirtualInstanceStateSoftwareInstallationPending), + // Status: to.Ptr(armworkloads.SAPVirtualInstanceStatus("Unknown")), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Create_DiskDetails_SingleServer.json +func ExampleSAPVirtualInstancesClient_BeginCreate_createInfrastructureWithDiskAndOsConfigurationsForSingleServerSystemRecommended() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armworkloads.NewSAPVirtualInstancesClient("8e17e36c-42e9-4cd5-a078-7b44883414e0", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreate(ctx, "test-rg", "X00", armworkloads.SAPVirtualInstance{ + Location: to.Ptr("westcentralus"), + Tags: map[string]*string{}, + Properties: &armworkloads.SAPVirtualInstanceProperties{ + Configuration: &armworkloads.DeploymentWithOSConfiguration{ + ConfigurationType: to.Ptr(armworkloads.SAPConfigurationTypeDeploymentWithOSConfig), + AppLocation: to.Ptr("eastus"), + InfrastructureConfiguration: &armworkloads.SingleServerConfiguration{ + AppResourceGroup: to.Ptr("X00-RG"), + DeploymentType: to.Ptr(armworkloads.SAPDeploymentTypeSingleServer), + DatabaseType: to.Ptr(armworkloads.SAPDatabaseTypeHANA), + DbDiskConfiguration: &armworkloads.DiskConfiguration{ + DiskVolumeConfigurations: map[string]*armworkloads.DiskVolumeConfiguration{ + "backup": { + Count: to.Ptr[int64](2), + SizeGB: to.Ptr[int64](256), + SKU: &armworkloads.DiskSKU{ + Name: to.Ptr(armworkloads.DiskSKUNameStandardSSDLRS), + }, + }, + "hana/data": { + Count: to.Ptr[int64](4), + SizeGB: to.Ptr[int64](128), + SKU: &armworkloads.DiskSKU{ + Name: to.Ptr(armworkloads.DiskSKUNamePremiumLRS), + }, + }, + "hana/log": { + Count: to.Ptr[int64](3), + SizeGB: to.Ptr[int64](128), + SKU: &armworkloads.DiskSKU{ + Name: to.Ptr(armworkloads.DiskSKUNamePremiumLRS), + }, + }, + "hana/shared": { + Count: to.Ptr[int64](1), + SizeGB: to.Ptr[int64](256), + SKU: &armworkloads.DiskSKU{ + Name: to.Ptr(armworkloads.DiskSKUNameStandardSSDLRS), + }, + }, + "os": { + Count: to.Ptr[int64](1), + SizeGB: to.Ptr[int64](64), + SKU: &armworkloads.DiskSKU{ + Name: to.Ptr(armworkloads.DiskSKUNameStandardSSDLRS), + }, + }, + "usr/sap": { + Count: to.Ptr[int64](1), + SizeGB: to.Ptr[int64](128), + SKU: &armworkloads.DiskSKU{ + Name: to.Ptr(armworkloads.DiskSKUNamePremiumLRS), + }, + }, + }, + }, + NetworkConfiguration: &armworkloads.NetworkConfiguration{ + IsSecondaryIPEnabled: to.Ptr(true), + }, + SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), + VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + ImageReference: &armworkloads.ImageReference{ + Offer: to.Ptr("RHEL-SAP"), + Publisher: to.Ptr("RedHat"), + SKU: to.Ptr("7.4"), + Version: to.Ptr("7.4.2019062505"), + }, + OSProfile: &armworkloads.OSProfile{ + AdminUsername: to.Ptr("{your-username}"), + OSConfiguration: &armworkloads.LinuxConfiguration{ + OSType: to.Ptr(armworkloads.OSTypeLinux), + DisablePasswordAuthentication: to.Ptr(true), + SSHKeyPair: &armworkloads.SSHKeyPair{ + PrivateKey: to.Ptr("xyz"), + PublicKey: to.Ptr("abc"), + }, + }, + }, + VMSize: to.Ptr("Standard_E32ds_v4"), + }, + }, + OSSapConfiguration: &armworkloads.OsSapConfiguration{ + SapFqdn: to.Ptr("xyz.test.com"), + }, + }, + Environment: to.Ptr(armworkloads.SAPEnvironmentTypeNonProd), + SapProduct: to.Ptr(armworkloads.SAPProductTypeS4HANA), + }, + }, 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.SAPVirtualInstance = armworkloads.SAPVirtualInstance{ + // Name: to.Ptr("X00"), + // Type: to.Ptr("Microsoft.Workloads/sapVirtualInstances"), + // ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapVirtualInstances/X00"), + // SystemData: &armworkloads.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // CreatedBy: to.Ptr("user@xyz.com"), + // CreatedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // LastModifiedBy: to.Ptr("user@xyz.com"), + // LastModifiedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // }, + // Location: to.Ptr("westcentralus"), + // Tags: map[string]*string{ + // }, + // Properties: &armworkloads.SAPVirtualInstanceProperties{ + // Configuration: &armworkloads.DeploymentWithOSConfiguration{ + // ConfigurationType: to.Ptr(armworkloads.SAPConfigurationTypeDeploymentWithOSConfig), + // AppLocation: to.Ptr("eastus"), + // InfrastructureConfiguration: &armworkloads.SingleServerConfiguration{ + // AppResourceGroup: to.Ptr("X00-RG"), + // DeploymentType: to.Ptr(armworkloads.SAPDeploymentTypeSingleServer), + // DatabaseType: to.Ptr(armworkloads.SAPDatabaseTypeHANA), + // DbDiskConfiguration: &armworkloads.DiskConfiguration{ + // DiskVolumeConfigurations: map[string]*armworkloads.DiskVolumeConfiguration{ + // "backup": &armworkloads.DiskVolumeConfiguration{ + // Count: to.Ptr[int64](2), + // SizeGB: to.Ptr[int64](256), + // SKU: &armworkloads.DiskSKU{ + // Name: to.Ptr(armworkloads.DiskSKUNameStandardSSDLRS), + // }, + // }, + // "hana/data": &armworkloads.DiskVolumeConfiguration{ + // Count: to.Ptr[int64](4), + // SizeGB: to.Ptr[int64](128), + // SKU: &armworkloads.DiskSKU{ + // Name: to.Ptr(armworkloads.DiskSKUNamePremiumLRS), + // }, + // }, + // "hana/log": &armworkloads.DiskVolumeConfiguration{ + // Count: to.Ptr[int64](3), + // SizeGB: to.Ptr[int64](128), + // SKU: &armworkloads.DiskSKU{ + // Name: to.Ptr(armworkloads.DiskSKUNamePremiumLRS), + // }, + // }, + // "hana/shared": &armworkloads.DiskVolumeConfiguration{ + // Count: to.Ptr[int64](1), + // SizeGB: to.Ptr[int64](256), + // SKU: &armworkloads.DiskSKU{ + // Name: to.Ptr(armworkloads.DiskSKUNameStandardSSDLRS), + // }, + // }, + // "os": &armworkloads.DiskVolumeConfiguration{ + // Count: to.Ptr[int64](1), + // SizeGB: to.Ptr[int64](64), + // SKU: &armworkloads.DiskSKU{ + // Name: to.Ptr(armworkloads.DiskSKUNameStandardSSDLRS), + // }, + // }, + // "usr/sap": &armworkloads.DiskVolumeConfiguration{ + // Count: to.Ptr[int64](1), + // SizeGB: to.Ptr[int64](128), + // SKU: &armworkloads.DiskSKU{ + // Name: to.Ptr(armworkloads.DiskSKUNamePremiumLRS), + // }, + // }, + // }, + // }, + // NetworkConfiguration: &armworkloads.NetworkConfiguration{ + // IsSecondaryIPEnabled: to.Ptr(true), + // }, + // SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/dindurkhya-e2etesting/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), + // VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + // ImageReference: &armworkloads.ImageReference{ + // Offer: to.Ptr("RHEL-SAP"), + // Publisher: to.Ptr("RedHat"), + // SKU: to.Ptr("7.4"), + // Version: to.Ptr("7.4.2019062505"), + // }, + // OSProfile: &armworkloads.OSProfile{ + // AdminUsername: to.Ptr("{your-username}"), + // OSConfiguration: &armworkloads.LinuxConfiguration{ + // OSType: to.Ptr(armworkloads.OSTypeLinux), + // DisablePasswordAuthentication: to.Ptr(true), + // SSHKeyPair: &armworkloads.SSHKeyPair{ + // PublicKey: to.Ptr("abc"), + // }, + // }, + // }, + // VMSize: to.Ptr("Standard_E32ds_v4"), + // }, + // }, + // OSSapConfiguration: &armworkloads.OsSapConfiguration{ + // SapFqdn: to.Ptr("xyz.test.com"), + // }, + // }, + // Environment: to.Ptr(armworkloads.SAPEnvironmentTypeNonProd), + // Health: to.Ptr(armworkloads.SAPHealthStateUnknown), + // ProvisioningState: to.Ptr(armworkloads.SapVirtualInstanceProvisioningStateSucceeded), + // SapProduct: to.Ptr(armworkloads.SAPProductTypeS4HANA), + // State: to.Ptr(armworkloads.SAPVirtualInstanceStateSoftwareInstallationPending), + // Status: to.Ptr(armworkloads.SAPVirtualInstanceStatus("Unknown")), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Create_WithOSConfig_Distributed.json +func ExampleSAPVirtualInstancesClient_BeginCreate_createInfrastructureWithOsConfigurationForDistributedSystemRecommended() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armworkloads.NewSAPVirtualInstancesClient("8e17e36c-42e9-4cd5-a078-7b44883414e0", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreate(ctx, "test-rg", "X00", armworkloads.SAPVirtualInstance{ + Location: to.Ptr("westcentralus"), + Tags: map[string]*string{}, + Properties: &armworkloads.SAPVirtualInstanceProperties{ + Configuration: &armworkloads.DeploymentWithOSConfiguration{ + ConfigurationType: to.Ptr(armworkloads.SAPConfigurationTypeDeploymentWithOSConfig), + AppLocation: to.Ptr("eastus"), + InfrastructureConfiguration: &armworkloads.ThreeTierConfiguration{ + AppResourceGroup: to.Ptr("X00-RG"), + DeploymentType: to.Ptr(armworkloads.SAPDeploymentTypeThreeTier), + ApplicationServer: &armworkloads.ApplicationServerConfiguration{ + InstanceCount: to.Ptr[int64](6), + SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), + VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + ImageReference: &armworkloads.ImageReference{ + Offer: to.Ptr("RHEL-SAP"), + Publisher: to.Ptr("RedHat"), + SKU: to.Ptr("7.4"), + Version: to.Ptr("7.4.2019062505"), + }, + OSProfile: &armworkloads.OSProfile{ + AdminUsername: to.Ptr("{your-username}"), + OSConfiguration: &armworkloads.LinuxConfiguration{ + OSType: to.Ptr(armworkloads.OSTypeLinux), + DisablePasswordAuthentication: to.Ptr(true), + SSHKeyPair: &armworkloads.SSHKeyPair{ + PrivateKey: to.Ptr("xyz"), + PublicKey: to.Ptr("abc"), + }, + }, + }, + VMSize: to.Ptr("Standard_E32ds_v4"), + }, + }, + CentralServer: &armworkloads.CentralServerConfiguration{ + InstanceCount: to.Ptr[int64](1), + SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), + VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + ImageReference: &armworkloads.ImageReference{ + Offer: to.Ptr("RHEL-SAP"), + Publisher: to.Ptr("RedHat"), + SKU: to.Ptr("7.4"), + Version: to.Ptr("7.4.2019062505"), + }, + OSProfile: &armworkloads.OSProfile{ + AdminUsername: to.Ptr("{your-username}"), + OSConfiguration: &armworkloads.LinuxConfiguration{ + OSType: to.Ptr(armworkloads.OSTypeLinux), + DisablePasswordAuthentication: to.Ptr(true), + SSHKeyPair: &armworkloads.SSHKeyPair{ + PrivateKey: to.Ptr("xyz"), + PublicKey: to.Ptr("abc"), + }, + }, + }, + VMSize: to.Ptr("Standard_E16ds_v4"), + }, + }, + DatabaseServer: &armworkloads.DatabaseConfiguration{ + DatabaseType: to.Ptr(armworkloads.SAPDatabaseTypeHANA), + InstanceCount: to.Ptr[int64](1), + SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet"), + VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + ImageReference: &armworkloads.ImageReference{ + Offer: to.Ptr("RHEL-SAP"), + Publisher: to.Ptr("RedHat"), + SKU: to.Ptr("7.4"), + Version: to.Ptr("7.4.2019062505"), + }, + OSProfile: &armworkloads.OSProfile{ + AdminUsername: to.Ptr("{your-username}"), + OSConfiguration: &armworkloads.LinuxConfiguration{ + OSType: to.Ptr(armworkloads.OSTypeLinux), + DisablePasswordAuthentication: to.Ptr(true), + SSHKeyPair: &armworkloads.SSHKeyPair{ + PrivateKey: to.Ptr("xyz"), + PublicKey: to.Ptr("abc"), + }, + }, + }, + VMSize: to.Ptr("Standard_M32ts"), + }, + }, + }, + OSSapConfiguration: &armworkloads.OsSapConfiguration{ + SapFqdn: to.Ptr("xyz.test.com"), + }, + }, + Environment: to.Ptr(armworkloads.SAPEnvironmentTypeProd), + SapProduct: to.Ptr(armworkloads.SAPProductTypeS4HANA), + }, + }, 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.SAPVirtualInstance = armworkloads.SAPVirtualInstance{ + // Name: to.Ptr("X00"), + // Type: to.Ptr("Microsoft.Workloads/sapVirtualInstances"), + // ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapVirtualInstances/X00"), + // SystemData: &armworkloads.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // CreatedBy: to.Ptr("user@xyz.com"), + // CreatedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // LastModifiedBy: to.Ptr("user@xyz.com"), + // LastModifiedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // }, + // Location: to.Ptr("westcentralus"), + // Tags: map[string]*string{ + // }, + // Properties: &armworkloads.SAPVirtualInstanceProperties{ + // Configuration: &armworkloads.DeploymentWithOSConfiguration{ + // ConfigurationType: to.Ptr(armworkloads.SAPConfigurationTypeDeploymentWithOSConfig), + // AppLocation: to.Ptr("eastus"), + // InfrastructureConfiguration: &armworkloads.ThreeTierConfiguration{ + // AppResourceGroup: to.Ptr("X00-RG"), + // DeploymentType: to.Ptr(armworkloads.SAPDeploymentTypeThreeTier), + // ApplicationServer: &armworkloads.ApplicationServerConfiguration{ + // InstanceCount: to.Ptr[int64](6), + // SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), + // VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + // ImageReference: &armworkloads.ImageReference{ + // Offer: to.Ptr("RHEL-SAP"), + // Publisher: to.Ptr("RedHat"), + // SKU: to.Ptr("7.4"), + // Version: to.Ptr("7.4.2019062505"), + // }, + // OSProfile: &armworkloads.OSProfile{ + // AdminUsername: to.Ptr("{your-username}"), + // OSConfiguration: &armworkloads.LinuxConfiguration{ + // OSType: to.Ptr(armworkloads.OSTypeLinux), + // DisablePasswordAuthentication: to.Ptr(true), + // SSHKeyPair: &armworkloads.SSHKeyPair{ + // PublicKey: to.Ptr("abc"), + // }, + // }, + // }, + // VMSize: to.Ptr("Standard_E32ds_v4"), + // }, + // }, + // CentralServer: &armworkloads.CentralServerConfiguration{ + // InstanceCount: to.Ptr[int64](1), + // SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), + // VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + // ImageReference: &armworkloads.ImageReference{ + // Offer: to.Ptr("RHEL-SAP"), + // Publisher: to.Ptr("RedHat"), + // SKU: to.Ptr("7.4"), + // Version: to.Ptr("7.4.2019062505"), + // }, + // OSProfile: &armworkloads.OSProfile{ + // AdminUsername: to.Ptr("{your-username}"), + // OSConfiguration: &armworkloads.LinuxConfiguration{ + // OSType: to.Ptr(armworkloads.OSTypeLinux), + // DisablePasswordAuthentication: to.Ptr(true), + // SSHKeyPair: &armworkloads.SSHKeyPair{ + // PublicKey: to.Ptr("abc"), + // }, + // }, + // }, + // VMSize: to.Ptr("Standard_E16ds_v4"), + // }, + // }, + // DatabaseServer: &armworkloads.DatabaseConfiguration{ + // DatabaseType: to.Ptr(armworkloads.SAPDatabaseTypeHANA), + // InstanceCount: to.Ptr[int64](1), + // SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet"), + // VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + // ImageReference: &armworkloads.ImageReference{ + // Offer: to.Ptr("RHEL-SAP"), + // Publisher: to.Ptr("RedHat"), + // SKU: to.Ptr("7.4"), + // Version: to.Ptr("7.4.2019062505"), + // }, + // OSProfile: &armworkloads.OSProfile{ + // AdminUsername: to.Ptr("{your-username}"), + // OSConfiguration: &armworkloads.LinuxConfiguration{ + // OSType: to.Ptr(armworkloads.OSTypeLinux), + // DisablePasswordAuthentication: to.Ptr(true), + // SSHKeyPair: &armworkloads.SSHKeyPair{ + // PublicKey: to.Ptr("abc"), + // }, + // }, + // }, + // VMSize: to.Ptr("Standard_M32ts"), + // }, + // }, + // }, + // OSSapConfiguration: &armworkloads.OsSapConfiguration{ + // SapFqdn: to.Ptr("xyz.test.com"), + // }, + // }, + // Environment: to.Ptr(armworkloads.SAPEnvironmentTypeProd), + // Health: to.Ptr(armworkloads.SAPHealthStateUnknown), + // ProvisioningState: to.Ptr(armworkloads.SapVirtualInstanceProvisioningStateSucceeded), + // SapProduct: to.Ptr(armworkloads.SAPProductTypeS4HANA), + // State: to.Ptr(armworkloads.SAPVirtualInstanceStateSoftwareInstallationPending), + // Status: to.Ptr(armworkloads.SAPVirtualInstanceStatus("Unknown")), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Create_WithOSConfig_HA_AvSet.json +func ExampleSAPVirtualInstancesClient_BeginCreate_createInfrastructureWithOsConfigurationForHaSystemWithAvailabilitySetRecommended() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armworkloads.NewSAPVirtualInstancesClient("8e17e36c-42e9-4cd5-a078-7b44883414e0", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreate(ctx, "test-rg", "X00", armworkloads.SAPVirtualInstance{ + Location: to.Ptr("westcentralus"), + Tags: map[string]*string{}, + Properties: &armworkloads.SAPVirtualInstanceProperties{ + Configuration: &armworkloads.DeploymentWithOSConfiguration{ + ConfigurationType: to.Ptr(armworkloads.SAPConfigurationTypeDeploymentWithOSConfig), + AppLocation: to.Ptr("eastus"), + InfrastructureConfiguration: &armworkloads.ThreeTierConfiguration{ + AppResourceGroup: to.Ptr("X00-RG"), + DeploymentType: to.Ptr(armworkloads.SAPDeploymentTypeThreeTier), + ApplicationServer: &armworkloads.ApplicationServerConfiguration{ + InstanceCount: to.Ptr[int64](6), + SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), + VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + ImageReference: &armworkloads.ImageReference{ + Offer: to.Ptr("RHEL-SAP"), + Publisher: to.Ptr("RedHat"), + SKU: to.Ptr("7.4"), + Version: to.Ptr("7.4.2019062505"), + }, + OSProfile: &armworkloads.OSProfile{ + AdminUsername: to.Ptr("{your-username}"), + OSConfiguration: &armworkloads.LinuxConfiguration{ + OSType: to.Ptr(armworkloads.OSTypeLinux), + DisablePasswordAuthentication: to.Ptr(true), + SSHKeyPair: &armworkloads.SSHKeyPair{ + PrivateKey: to.Ptr("xyz"), + PublicKey: to.Ptr("abc"), + }, + }, + }, + VMSize: to.Ptr("Standard_E32ds_v4"), + }, + }, + CentralServer: &armworkloads.CentralServerConfiguration{ + InstanceCount: to.Ptr[int64](2), + SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), + VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + ImageReference: &armworkloads.ImageReference{ + Offer: to.Ptr("RHEL-SAP"), + Publisher: to.Ptr("RedHat"), + SKU: to.Ptr("7.4"), + Version: to.Ptr("7.4.2019062505"), + }, + OSProfile: &armworkloads.OSProfile{ + AdminUsername: to.Ptr("{your-username}"), + OSConfiguration: &armworkloads.LinuxConfiguration{ + OSType: to.Ptr(armworkloads.OSTypeLinux), + DisablePasswordAuthentication: to.Ptr(true), + SSHKeyPair: &armworkloads.SSHKeyPair{ + PrivateKey: to.Ptr("xyz"), + PublicKey: to.Ptr("abc"), + }, + }, + }, + VMSize: to.Ptr("Standard_E16ds_v4"), + }, + }, + DatabaseServer: &armworkloads.DatabaseConfiguration{ + DatabaseType: to.Ptr(armworkloads.SAPDatabaseTypeHANA), + InstanceCount: to.Ptr[int64](2), + SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet"), + VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + ImageReference: &armworkloads.ImageReference{ + Offer: to.Ptr("RHEL-SAP"), + Publisher: to.Ptr("RedHat"), + SKU: to.Ptr("7.4"), + Version: to.Ptr("7.4.2019062505"), + }, + OSProfile: &armworkloads.OSProfile{ + AdminUsername: to.Ptr("{your-username}"), + OSConfiguration: &armworkloads.LinuxConfiguration{ + OSType: to.Ptr(armworkloads.OSTypeLinux), + DisablePasswordAuthentication: to.Ptr(true), + SSHKeyPair: &armworkloads.SSHKeyPair{ + PrivateKey: to.Ptr("xyz"), + PublicKey: to.Ptr("abc"), + }, + }, + }, + VMSize: to.Ptr("Standard_M32ts"), + }, + }, + HighAvailabilityConfig: &armworkloads.HighAvailabilityConfiguration{ + HighAvailabilityType: to.Ptr(armworkloads.SAPHighAvailabilityTypeAvailabilitySet), + }, + }, + OSSapConfiguration: &armworkloads.OsSapConfiguration{ + SapFqdn: to.Ptr("xyz.test.com"), + }, + }, + Environment: to.Ptr(armworkloads.SAPEnvironmentTypeProd), + SapProduct: to.Ptr(armworkloads.SAPProductTypeS4HANA), + }, + }, 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.SAPVirtualInstance = armworkloads.SAPVirtualInstance{ + // Name: to.Ptr("X00"), + // Type: to.Ptr("Microsoft.Workloads/sapVirtualInstances"), + // ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapVirtualInstances/X00"), + // SystemData: &armworkloads.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // CreatedBy: to.Ptr("user@xyz.com"), + // CreatedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // LastModifiedBy: to.Ptr("user@xyz.com"), + // LastModifiedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // }, + // Location: to.Ptr("westcentralus"), + // Tags: map[string]*string{ + // }, + // Properties: &armworkloads.SAPVirtualInstanceProperties{ + // Configuration: &armworkloads.DeploymentWithOSConfiguration{ + // ConfigurationType: to.Ptr(armworkloads.SAPConfigurationTypeDeploymentWithOSConfig), + // AppLocation: to.Ptr("eastus"), + // InfrastructureConfiguration: &armworkloads.ThreeTierConfiguration{ + // AppResourceGroup: to.Ptr("X00-RG"), + // DeploymentType: to.Ptr(armworkloads.SAPDeploymentTypeThreeTier), + // ApplicationServer: &armworkloads.ApplicationServerConfiguration{ + // InstanceCount: to.Ptr[int64](6), + // SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), + // VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + // ImageReference: &armworkloads.ImageReference{ + // Offer: to.Ptr("RHEL-SAP"), + // Publisher: to.Ptr("RedHat"), + // SKU: to.Ptr("7.4"), + // Version: to.Ptr("7.4.2019062505"), + // }, + // OSProfile: &armworkloads.OSProfile{ + // AdminUsername: to.Ptr("{your-username}"), + // OSConfiguration: &armworkloads.LinuxConfiguration{ + // OSType: to.Ptr(armworkloads.OSTypeLinux), + // DisablePasswordAuthentication: to.Ptr(true), + // SSHKeyPair: &armworkloads.SSHKeyPair{ + // PublicKey: to.Ptr("abc"), + // }, + // }, + // }, + // VMSize: to.Ptr("Standard_E32ds_v4"), + // }, + // }, + // CentralServer: &armworkloads.CentralServerConfiguration{ + // InstanceCount: to.Ptr[int64](2), + // SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), + // VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + // ImageReference: &armworkloads.ImageReference{ + // Offer: to.Ptr("RHEL-SAP"), + // Publisher: to.Ptr("RedHat"), + // SKU: to.Ptr("7.4"), + // Version: to.Ptr("7.4.2019062505"), + // }, + // OSProfile: &armworkloads.OSProfile{ + // AdminUsername: to.Ptr("{your-username}"), + // OSConfiguration: &armworkloads.LinuxConfiguration{ + // OSType: to.Ptr(armworkloads.OSTypeLinux), + // DisablePasswordAuthentication: to.Ptr(true), + // SSHKeyPair: &armworkloads.SSHKeyPair{ + // PublicKey: to.Ptr("abc"), + // }, + // }, + // }, + // VMSize: to.Ptr("Standard_E16ds_v4"), + // }, + // }, + // DatabaseServer: &armworkloads.DatabaseConfiguration{ + // DatabaseType: to.Ptr(armworkloads.SAPDatabaseTypeHANA), + // InstanceCount: to.Ptr[int64](2), + // SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet"), + // VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + // ImageReference: &armworkloads.ImageReference{ + // Offer: to.Ptr("RHEL-SAP"), + // Publisher: to.Ptr("RedHat"), + // SKU: to.Ptr("7.4"), + // Version: to.Ptr("7.4.2019062505"), + // }, + // OSProfile: &armworkloads.OSProfile{ + // AdminUsername: to.Ptr("{your-username}"), + // OSConfiguration: &armworkloads.LinuxConfiguration{ + // OSType: to.Ptr(armworkloads.OSTypeLinux), + // DisablePasswordAuthentication: to.Ptr(true), + // SSHKeyPair: &armworkloads.SSHKeyPair{ + // PublicKey: to.Ptr("abc"), + // }, + // }, + // }, + // VMSize: to.Ptr("Standard_M32ts"), + // }, + // }, + // HighAvailabilityConfig: &armworkloads.HighAvailabilityConfiguration{ + // HighAvailabilityType: to.Ptr(armworkloads.SAPHighAvailabilityTypeAvailabilitySet), + // }, + // }, + // OSSapConfiguration: &armworkloads.OsSapConfiguration{ + // SapFqdn: to.Ptr("xyz.test.com"), + // }, + // }, + // Environment: to.Ptr(armworkloads.SAPEnvironmentTypeProd), + // Health: to.Ptr(armworkloads.SAPHealthStateUnknown), + // ProvisioningState: to.Ptr(armworkloads.SapVirtualInstanceProvisioningStateSucceeded), + // SapProduct: to.Ptr(armworkloads.SAPProductTypeS4HANA), + // State: to.Ptr(armworkloads.SAPVirtualInstanceStateSoftwareInstallationPending), + // Status: to.Ptr(armworkloads.SAPVirtualInstanceStatus("Unknown")), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Create_WithOSConfig_HA_AvZone.json +func ExampleSAPVirtualInstancesClient_BeginCreate_createInfrastructureWithOsConfigurationForHaSystemWithAvailabilityZoneRecommended() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armworkloads.NewSAPVirtualInstancesClient("8e17e36c-42e9-4cd5-a078-7b44883414e0", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreate(ctx, "test-rg", "X00", armworkloads.SAPVirtualInstance{ + Location: to.Ptr("westcentralus"), + Tags: map[string]*string{}, + Properties: &armworkloads.SAPVirtualInstanceProperties{ + Configuration: &armworkloads.DeploymentWithOSConfiguration{ + ConfigurationType: to.Ptr(armworkloads.SAPConfigurationTypeDeploymentWithOSConfig), + AppLocation: to.Ptr("eastus"), + InfrastructureConfiguration: &armworkloads.ThreeTierConfiguration{ + AppResourceGroup: to.Ptr("X00-RG"), + DeploymentType: to.Ptr(armworkloads.SAPDeploymentTypeThreeTier), + ApplicationServer: &armworkloads.ApplicationServerConfiguration{ + InstanceCount: to.Ptr[int64](6), + SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), + VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + ImageReference: &armworkloads.ImageReference{ + Offer: to.Ptr("RHEL-SAP"), + Publisher: to.Ptr("RedHat"), + SKU: to.Ptr("7.4"), + Version: to.Ptr("7.4.2019062505"), + }, + OSProfile: &armworkloads.OSProfile{ + AdminUsername: to.Ptr("{your-username}"), + OSConfiguration: &armworkloads.LinuxConfiguration{ + OSType: to.Ptr(armworkloads.OSTypeLinux), + DisablePasswordAuthentication: to.Ptr(true), + SSHKeyPair: &armworkloads.SSHKeyPair{ + PrivateKey: to.Ptr("xyz"), + PublicKey: to.Ptr("abc"), + }, + }, + }, + VMSize: to.Ptr("Standard_E32ds_v4"), + }, + }, + CentralServer: &armworkloads.CentralServerConfiguration{ + InstanceCount: to.Ptr[int64](2), + SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), + VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + ImageReference: &armworkloads.ImageReference{ + Offer: to.Ptr("RHEL-SAP"), + Publisher: to.Ptr("RedHat"), + SKU: to.Ptr("7.4"), + Version: to.Ptr("7.4.2019062505"), + }, + OSProfile: &armworkloads.OSProfile{ + AdminUsername: to.Ptr("{your-username}"), + OSConfiguration: &armworkloads.LinuxConfiguration{ + OSType: to.Ptr(armworkloads.OSTypeLinux), + DisablePasswordAuthentication: to.Ptr(true), + SSHKeyPair: &armworkloads.SSHKeyPair{ + PrivateKey: to.Ptr("xyz"), + PublicKey: to.Ptr("abc"), + }, + }, + }, + VMSize: to.Ptr("Standard_E16ds_v4"), + }, + }, + DatabaseServer: &armworkloads.DatabaseConfiguration{ + DatabaseType: to.Ptr(armworkloads.SAPDatabaseTypeHANA), + InstanceCount: to.Ptr[int64](2), + SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet"), + VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + ImageReference: &armworkloads.ImageReference{ + Offer: to.Ptr("RHEL-SAP"), + Publisher: to.Ptr("RedHat"), + SKU: to.Ptr("7.4"), + Version: to.Ptr("7.4.2019062505"), + }, + OSProfile: &armworkloads.OSProfile{ + AdminUsername: to.Ptr("{your-username}"), + OSConfiguration: &armworkloads.LinuxConfiguration{ + OSType: to.Ptr(armworkloads.OSTypeLinux), + DisablePasswordAuthentication: to.Ptr(true), + SSHKeyPair: &armworkloads.SSHKeyPair{ + PrivateKey: to.Ptr("xyz"), + PublicKey: to.Ptr("abc"), + }, + }, + }, + VMSize: to.Ptr("Standard_M32ts"), + }, + }, + HighAvailabilityConfig: &armworkloads.HighAvailabilityConfiguration{ + HighAvailabilityType: to.Ptr(armworkloads.SAPHighAvailabilityTypeAvailabilityZone), + }, + }, + OSSapConfiguration: &armworkloads.OsSapConfiguration{ + SapFqdn: to.Ptr("xyz.test.com"), + }, + }, + Environment: to.Ptr(armworkloads.SAPEnvironmentTypeProd), + SapProduct: to.Ptr(armworkloads.SAPProductTypeS4HANA), + }, + }, 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.SAPVirtualInstance = armworkloads.SAPVirtualInstance{ + // Name: to.Ptr("X00"), + // Type: to.Ptr("Microsoft.Workloads/sapVirtualInstances"), + // ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapVirtualInstances/X00"), + // SystemData: &armworkloads.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // CreatedBy: to.Ptr("user@xyz.com"), + // CreatedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // LastModifiedBy: to.Ptr("user@xyz.com"), + // LastModifiedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // }, + // Location: to.Ptr("westcentralus"), + // Tags: map[string]*string{ + // }, + // Properties: &armworkloads.SAPVirtualInstanceProperties{ + // Configuration: &armworkloads.DeploymentWithOSConfiguration{ + // ConfigurationType: to.Ptr(armworkloads.SAPConfigurationTypeDeploymentWithOSConfig), + // AppLocation: to.Ptr("eastus"), + // InfrastructureConfiguration: &armworkloads.ThreeTierConfiguration{ + // AppResourceGroup: to.Ptr("X00-RG"), + // DeploymentType: to.Ptr(armworkloads.SAPDeploymentTypeThreeTier), + // ApplicationServer: &armworkloads.ApplicationServerConfiguration{ + // InstanceCount: to.Ptr[int64](6), + // SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), + // VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + // ImageReference: &armworkloads.ImageReference{ + // Offer: to.Ptr("RHEL-SAP"), + // Publisher: to.Ptr("RedHat"), + // SKU: to.Ptr("7.4"), + // Version: to.Ptr("7.4.2019062505"), + // }, + // OSProfile: &armworkloads.OSProfile{ + // AdminUsername: to.Ptr("{your-username}"), + // OSConfiguration: &armworkloads.LinuxConfiguration{ + // OSType: to.Ptr(armworkloads.OSTypeLinux), + // DisablePasswordAuthentication: to.Ptr(true), + // SSHKeyPair: &armworkloads.SSHKeyPair{ + // PublicKey: to.Ptr("abc"), + // }, + // }, + // }, + // VMSize: to.Ptr("Standard_E32ds_v4"), + // }, + // }, + // CentralServer: &armworkloads.CentralServerConfiguration{ + // InstanceCount: to.Ptr[int64](2), + // SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), + // VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + // ImageReference: &armworkloads.ImageReference{ + // Offer: to.Ptr("RHEL-SAP"), + // Publisher: to.Ptr("RedHat"), + // SKU: to.Ptr("7.4"), + // Version: to.Ptr("7.4.2019062505"), + // }, + // OSProfile: &armworkloads.OSProfile{ + // AdminUsername: to.Ptr("{your-username}"), + // OSConfiguration: &armworkloads.LinuxConfiguration{ + // OSType: to.Ptr(armworkloads.OSTypeLinux), + // DisablePasswordAuthentication: to.Ptr(true), + // SSHKeyPair: &armworkloads.SSHKeyPair{ + // PublicKey: to.Ptr("abc"), + // }, + // }, + // }, + // VMSize: to.Ptr("Standard_E16ds_v4"), + // }, + // }, + // DatabaseServer: &armworkloads.DatabaseConfiguration{ + // DatabaseType: to.Ptr(armworkloads.SAPDatabaseTypeHANA), + // InstanceCount: to.Ptr[int64](2), + // SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet"), + // VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + // ImageReference: &armworkloads.ImageReference{ + // Offer: to.Ptr("RHEL-SAP"), + // Publisher: to.Ptr("RedHat"), + // SKU: to.Ptr("7.4"), + // Version: to.Ptr("7.4.2019062505"), + // }, + // OSProfile: &armworkloads.OSProfile{ + // AdminUsername: to.Ptr("{your-username}"), + // OSConfiguration: &armworkloads.LinuxConfiguration{ + // OSType: to.Ptr(armworkloads.OSTypeLinux), + // DisablePasswordAuthentication: to.Ptr(true), + // SSHKeyPair: &armworkloads.SSHKeyPair{ + // PublicKey: to.Ptr("abc"), + // }, + // }, + // }, + // VMSize: to.Ptr("Standard_M32ts"), + // }, + // }, + // HighAvailabilityConfig: &armworkloads.HighAvailabilityConfiguration{ + // HighAvailabilityType: to.Ptr(armworkloads.SAPHighAvailabilityTypeAvailabilityZone), + // }, + // }, + // OSSapConfiguration: &armworkloads.OsSapConfiguration{ + // SapFqdn: to.Ptr("xyz.test.com"), + // }, + // }, + // Environment: to.Ptr(armworkloads.SAPEnvironmentTypeProd), + // Health: to.Ptr(armworkloads.SAPHealthStateUnknown), + // ProvisioningState: to.Ptr(armworkloads.SapVirtualInstanceProvisioningStateSucceeded), + // SapProduct: to.Ptr(armworkloads.SAPProductTypeS4HANA), + // State: to.Ptr(armworkloads.SAPVirtualInstanceStateSoftwareInstallationPending), + // Status: to.Ptr(armworkloads.SAPVirtualInstanceStatus("Unknown")), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Create_WithOSConfig_SingleServer.json +func ExampleSAPVirtualInstancesClient_BeginCreate_createInfrastructureWithOsConfigurationForSingleServerSystemRecommended() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armworkloads.NewSAPVirtualInstancesClient("8e17e36c-42e9-4cd5-a078-7b44883414e0", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreate(ctx, "test-rg", "X00", armworkloads.SAPVirtualInstance{ + Location: to.Ptr("westcentralus"), + Tags: map[string]*string{}, + Properties: &armworkloads.SAPVirtualInstanceProperties{ + Configuration: &armworkloads.DeploymentWithOSConfiguration{ + ConfigurationType: to.Ptr(armworkloads.SAPConfigurationTypeDeploymentWithOSConfig), + AppLocation: to.Ptr("eastus"), + InfrastructureConfiguration: &armworkloads.SingleServerConfiguration{ + AppResourceGroup: to.Ptr("X00-RG"), + DeploymentType: to.Ptr(armworkloads.SAPDeploymentTypeSingleServer), + DatabaseType: to.Ptr(armworkloads.SAPDatabaseTypeHANA), + NetworkConfiguration: &armworkloads.NetworkConfiguration{ + IsSecondaryIPEnabled: to.Ptr(true), + }, + SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), + VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + ImageReference: &armworkloads.ImageReference{ + Offer: to.Ptr("RHEL-SAP"), + Publisher: to.Ptr("RedHat"), + SKU: to.Ptr("7.4"), + Version: to.Ptr("7.4.2019062505"), + }, + OSProfile: &armworkloads.OSProfile{ + AdminUsername: to.Ptr("{your-username}"), + OSConfiguration: &armworkloads.LinuxConfiguration{ + OSType: to.Ptr(armworkloads.OSTypeLinux), + DisablePasswordAuthentication: to.Ptr(true), + SSHKeyPair: &armworkloads.SSHKeyPair{ + PrivateKey: to.Ptr("xyz"), + PublicKey: to.Ptr("abc"), + }, + }, + }, + VMSize: to.Ptr("Standard_E32ds_v4"), + }, + }, + OSSapConfiguration: &armworkloads.OsSapConfiguration{ + SapFqdn: to.Ptr("xyz.test.com"), + }, + }, + Environment: to.Ptr(armworkloads.SAPEnvironmentTypeNonProd), + SapProduct: to.Ptr(armworkloads.SAPProductTypeS4HANA), + }, + }, 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.SAPVirtualInstance = armworkloads.SAPVirtualInstance{ + // Name: to.Ptr("X00"), + // Type: to.Ptr("Microsoft.Workloads/sapVirtualInstances"), + // ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapVirtualInstances/X00"), + // SystemData: &armworkloads.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // CreatedBy: to.Ptr("user@xyz.com"), + // CreatedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // LastModifiedBy: to.Ptr("user@xyz.com"), + // LastModifiedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // }, + // Location: to.Ptr("westcentralus"), + // Tags: map[string]*string{ + // }, + // Properties: &armworkloads.SAPVirtualInstanceProperties{ + // Configuration: &armworkloads.DeploymentWithOSConfiguration{ + // ConfigurationType: to.Ptr(armworkloads.SAPConfigurationTypeDeploymentWithOSConfig), + // AppLocation: to.Ptr("eastus"), + // InfrastructureConfiguration: &armworkloads.SingleServerConfiguration{ + // AppResourceGroup: to.Ptr("X00-RG"), + // DeploymentType: to.Ptr(armworkloads.SAPDeploymentTypeSingleServer), + // DatabaseType: to.Ptr(armworkloads.SAPDatabaseTypeHANA), + // NetworkConfiguration: &armworkloads.NetworkConfiguration{ + // IsSecondaryIPEnabled: to.Ptr(true), + // }, + // SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), + // VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + // ImageReference: &armworkloads.ImageReference{ + // Offer: to.Ptr("RHEL-SAP"), + // Publisher: to.Ptr("RedHat"), + // SKU: to.Ptr("7.4"), + // Version: to.Ptr("7.4.2019062505"), + // }, + // OSProfile: &armworkloads.OSProfile{ + // AdminUsername: to.Ptr("{your-username}"), + // OSConfiguration: &armworkloads.LinuxConfiguration{ + // OSType: to.Ptr(armworkloads.OSTypeLinux), + // DisablePasswordAuthentication: to.Ptr(true), + // SSHKeyPair: &armworkloads.SSHKeyPair{ + // PublicKey: to.Ptr("abc"), + // }, + // }, + // }, + // VMSize: to.Ptr("Standard_E32ds_v4"), + // }, + // }, + // OSSapConfiguration: &armworkloads.OsSapConfiguration{ + // SapFqdn: to.Ptr("xyz.test.com"), + // }, + // }, + // Environment: to.Ptr(armworkloads.SAPEnvironmentTypeNonProd), + // Health: to.Ptr(armworkloads.SAPHealthStateUnknown), + // ProvisioningState: to.Ptr(armworkloads.SapVirtualInstanceProvisioningStateSucceeded), + // SapProduct: to.Ptr(armworkloads.SAPProductTypeS4HANA), + // State: to.Ptr(armworkloads.SAPVirtualInstanceStateSoftwareInstallationPending), + // Status: to.Ptr(armworkloads.SAPVirtualInstanceStatus("Unknown")), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Create_Distributed_CreateTrans.json +func ExampleSAPVirtualInstancesClient_BeginCreate_createInfrastructureWithANewSapTransFileshare() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armworkloads.NewSAPVirtualInstancesClient("8e17e36c-42e9-4cd5-a078-7b44883414e0", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreate(ctx, "test-rg", "X00", armworkloads.SAPVirtualInstance{ + Location: to.Ptr("westcentralus"), + Tags: map[string]*string{}, + Properties: &armworkloads.SAPVirtualInstanceProperties{ + Configuration: &armworkloads.DeploymentWithOSConfiguration{ + ConfigurationType: to.Ptr(armworkloads.SAPConfigurationTypeDeploymentWithOSConfig), + AppLocation: to.Ptr("eastus"), + InfrastructureConfiguration: &armworkloads.ThreeTierConfiguration{ + AppResourceGroup: to.Ptr("X00-RG"), + DeploymentType: to.Ptr(armworkloads.SAPDeploymentTypeThreeTier), + ApplicationServer: &armworkloads.ApplicationServerConfiguration{ + InstanceCount: to.Ptr[int64](6), + SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), + VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + ImageReference: &armworkloads.ImageReference{ + Offer: to.Ptr("RHEL-SAP"), + Publisher: to.Ptr("RedHat"), + SKU: to.Ptr("7.4"), + Version: to.Ptr("7.4.2019062505"), + }, + OSProfile: &armworkloads.OSProfile{ + AdminUsername: to.Ptr("{your-username}"), + OSConfiguration: &armworkloads.LinuxConfiguration{ + OSType: to.Ptr(armworkloads.OSTypeLinux), + DisablePasswordAuthentication: to.Ptr(true), + SSHKeyPair: &armworkloads.SSHKeyPair{ + PrivateKey: to.Ptr("xyz"), + PublicKey: to.Ptr("abc"), + }, + }, + }, + VMSize: to.Ptr("Standard_E32ds_v4"), + }, + }, + CentralServer: &armworkloads.CentralServerConfiguration{ + InstanceCount: to.Ptr[int64](1), + SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), + VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + ImageReference: &armworkloads.ImageReference{ + Offer: to.Ptr("RHEL-SAP"), + Publisher: to.Ptr("RedHat"), + SKU: to.Ptr("7.4"), + Version: to.Ptr("7.4.2019062505"), + }, + OSProfile: &armworkloads.OSProfile{ + AdminUsername: to.Ptr("{your-username}"), + OSConfiguration: &armworkloads.LinuxConfiguration{ + OSType: to.Ptr(armworkloads.OSTypeLinux), + DisablePasswordAuthentication: to.Ptr(true), + SSHKeyPair: &armworkloads.SSHKeyPair{ + PrivateKey: to.Ptr("xyz"), + PublicKey: to.Ptr("abc"), + }, + }, + }, + VMSize: to.Ptr("Standard_E16ds_v4"), + }, + }, + DatabaseServer: &armworkloads.DatabaseConfiguration{ + DatabaseType: to.Ptr(armworkloads.SAPDatabaseTypeHANA), + InstanceCount: to.Ptr[int64](1), + SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet"), + VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + ImageReference: &armworkloads.ImageReference{ + Offer: to.Ptr("RHEL-SAP"), + Publisher: to.Ptr("RedHat"), + SKU: to.Ptr("7.4"), + Version: to.Ptr("7.4.2019062505"), + }, + OSProfile: &armworkloads.OSProfile{ + AdminUsername: to.Ptr("{your-username}"), + OSConfiguration: &armworkloads.LinuxConfiguration{ + OSType: to.Ptr(armworkloads.OSTypeLinux), + DisablePasswordAuthentication: to.Ptr(true), + SSHKeyPair: &armworkloads.SSHKeyPair{ + PrivateKey: to.Ptr("xyz"), + PublicKey: to.Ptr("abc"), + }, + }, + }, + VMSize: to.Ptr("Standard_M32ts"), + }, + }, + StorageConfiguration: &armworkloads.StorageConfiguration{ + TransportFileShareConfiguration: &armworkloads.CreateAndMountFileShareConfiguration{ + ConfigurationType: to.Ptr(armworkloads.ConfigurationTypeCreateAndMount), + ResourceGroup: to.Ptr("test-rg"), + StorageAccountName: to.Ptr("input-sa-name"), + }, + }, + }, + OSSapConfiguration: &armworkloads.OsSapConfiguration{ + SapFqdn: to.Ptr("xyz.test.com"), + }, + }, + Environment: to.Ptr(armworkloads.SAPEnvironmentTypeProd), + SapProduct: to.Ptr(armworkloads.SAPProductTypeS4HANA), + }, + }, 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.SAPVirtualInstance = armworkloads.SAPVirtualInstance{ + // Name: to.Ptr("X00"), + // Type: to.Ptr("Microsoft.Workloads/sapVirtualInstances"), + // ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapVirtualInstances/X00"), + // SystemData: &armworkloads.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // CreatedBy: to.Ptr("user@xyz.com"), + // CreatedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // LastModifiedBy: to.Ptr("user@xyz.com"), + // LastModifiedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // }, + // Location: to.Ptr("westcentralus"), + // Tags: map[string]*string{ + // }, + // Properties: &armworkloads.SAPVirtualInstanceProperties{ + // Configuration: &armworkloads.DeploymentWithOSConfiguration{ + // ConfigurationType: to.Ptr(armworkloads.SAPConfigurationTypeDeploymentWithOSConfig), + // AppLocation: to.Ptr("eastus"), + // InfrastructureConfiguration: &armworkloads.ThreeTierConfiguration{ + // AppResourceGroup: to.Ptr("X00-RG"), + // DeploymentType: to.Ptr(armworkloads.SAPDeploymentTypeThreeTier), + // ApplicationServer: &armworkloads.ApplicationServerConfiguration{ + // InstanceCount: to.Ptr[int64](6), + // SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), + // VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + // ImageReference: &armworkloads.ImageReference{ + // Offer: to.Ptr("RHEL-SAP"), + // Publisher: to.Ptr("RedHat"), + // SKU: to.Ptr("7.4"), + // Version: to.Ptr("7.4.2019062505"), + // }, + // OSProfile: &armworkloads.OSProfile{ + // AdminUsername: to.Ptr("{your-username}"), + // OSConfiguration: &armworkloads.LinuxConfiguration{ + // OSType: to.Ptr(armworkloads.OSTypeLinux), + // DisablePasswordAuthentication: to.Ptr(true), + // SSHKeyPair: &armworkloads.SSHKeyPair{ + // PublicKey: to.Ptr("abc"), + // }, + // }, + // }, + // VMSize: to.Ptr("Standard_E32ds_v4"), + // }, + // }, + // CentralServer: &armworkloads.CentralServerConfiguration{ + // InstanceCount: to.Ptr[int64](1), + // SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), + // VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + // ImageReference: &armworkloads.ImageReference{ + // Offer: to.Ptr("RHEL-SAP"), + // Publisher: to.Ptr("RedHat"), + // SKU: to.Ptr("7.4"), + // Version: to.Ptr("7.4.2019062505"), + // }, + // OSProfile: &armworkloads.OSProfile{ + // AdminUsername: to.Ptr("{your-username}"), + // OSConfiguration: &armworkloads.LinuxConfiguration{ + // OSType: to.Ptr(armworkloads.OSTypeLinux), + // DisablePasswordAuthentication: to.Ptr(true), + // SSHKeyPair: &armworkloads.SSHKeyPair{ + // PublicKey: to.Ptr("abc"), + // }, + // }, + // }, + // VMSize: to.Ptr("Standard_E16ds_v4"), + // }, + // }, + // DatabaseServer: &armworkloads.DatabaseConfiguration{ + // DatabaseType: to.Ptr(armworkloads.SAPDatabaseTypeHANA), + // InstanceCount: to.Ptr[int64](1), + // SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet"), + // VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + // ImageReference: &armworkloads.ImageReference{ + // Offer: to.Ptr("RHEL-SAP"), + // Publisher: to.Ptr("RedHat"), + // SKU: to.Ptr("7.4"), + // Version: to.Ptr("7.4.2019062505"), + // }, + // OSProfile: &armworkloads.OSProfile{ + // AdminUsername: to.Ptr("{your-username}"), + // OSConfiguration: &armworkloads.LinuxConfiguration{ + // OSType: to.Ptr(armworkloads.OSTypeLinux), + // DisablePasswordAuthentication: to.Ptr(true), + // SSHKeyPair: &armworkloads.SSHKeyPair{ + // PublicKey: to.Ptr("abc"), + // }, + // }, + // }, + // VMSize: to.Ptr("Standard_M32ts"), + // }, + // }, + // StorageConfiguration: &armworkloads.StorageConfiguration{ + // TransportFileShareConfiguration: &armworkloads.CreateAndMountFileShareConfiguration{ + // ConfigurationType: to.Ptr(armworkloads.ConfigurationTypeCreateAndMount), + // ResourceGroup: to.Ptr("test-rg"), + // StorageAccountName: to.Ptr("input-sa-name"), + // }, + // }, + // }, + // OSSapConfiguration: &armworkloads.OsSapConfiguration{ + // SapFqdn: to.Ptr("xyz.test.com"), + // }, + // }, + // Environment: to.Ptr(armworkloads.SAPEnvironmentTypeProd), + // Health: to.Ptr(armworkloads.SAPHealthStateUnknown), + // ProvisioningState: to.Ptr(armworkloads.SapVirtualInstanceProvisioningStateSucceeded), + // SapProduct: to.Ptr(armworkloads.SAPProductTypeS4HANA), + // State: to.Ptr(armworkloads.SAPVirtualInstanceStateSoftwareInstallationPending), + // Status: to.Ptr(armworkloads.SAPVirtualInstanceStatus("Unknown")), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Create_Distributed_MountTrans.json +func ExampleSAPVirtualInstancesClient_BeginCreate_createInfrastructureWithAnExistingSapTransFileshare() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armworkloads.NewSAPVirtualInstancesClient("8e17e36c-42e9-4cd5-a078-7b44883414e0", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreate(ctx, "test-rg", "X00", armworkloads.SAPVirtualInstance{ + Location: to.Ptr("westcentralus"), + Tags: map[string]*string{}, + Properties: &armworkloads.SAPVirtualInstanceProperties{ + Configuration: &armworkloads.DeploymentWithOSConfiguration{ + ConfigurationType: to.Ptr(armworkloads.SAPConfigurationTypeDeploymentWithOSConfig), + AppLocation: to.Ptr("eastus"), + InfrastructureConfiguration: &armworkloads.ThreeTierConfiguration{ + AppResourceGroup: to.Ptr("X00-RG"), + DeploymentType: to.Ptr(armworkloads.SAPDeploymentTypeThreeTier), + ApplicationServer: &armworkloads.ApplicationServerConfiguration{ + InstanceCount: to.Ptr[int64](6), + SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), + VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + ImageReference: &armworkloads.ImageReference{ + Offer: to.Ptr("RHEL-SAP"), + Publisher: to.Ptr("RedHat"), + SKU: to.Ptr("7.4"), + Version: to.Ptr("7.4.2019062505"), + }, + OSProfile: &armworkloads.OSProfile{ + AdminUsername: to.Ptr("{your-username}"), + OSConfiguration: &armworkloads.LinuxConfiguration{ + OSType: to.Ptr(armworkloads.OSTypeLinux), + DisablePasswordAuthentication: to.Ptr(true), + SSHKeyPair: &armworkloads.SSHKeyPair{ + PrivateKey: to.Ptr("xyz"), + PublicKey: to.Ptr("abc"), + }, + }, + }, + VMSize: to.Ptr("Standard_E32ds_v4"), + }, + }, + CentralServer: &armworkloads.CentralServerConfiguration{ + InstanceCount: to.Ptr[int64](1), + SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), + VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + ImageReference: &armworkloads.ImageReference{ + Offer: to.Ptr("RHEL-SAP"), + Publisher: to.Ptr("RedHat"), + SKU: to.Ptr("7.4"), + Version: to.Ptr("7.4.2019062505"), + }, + OSProfile: &armworkloads.OSProfile{ + AdminUsername: to.Ptr("{your-username}"), + OSConfiguration: &armworkloads.LinuxConfiguration{ + OSType: to.Ptr(armworkloads.OSTypeLinux), + DisablePasswordAuthentication: to.Ptr(true), + SSHKeyPair: &armworkloads.SSHKeyPair{ + PrivateKey: to.Ptr("xyz"), + PublicKey: to.Ptr("abc"), + }, + }, + }, + VMSize: to.Ptr("Standard_E16ds_v4"), + }, + }, + DatabaseServer: &armworkloads.DatabaseConfiguration{ + DatabaseType: to.Ptr(armworkloads.SAPDatabaseTypeHANA), + InstanceCount: to.Ptr[int64](1), + SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet"), + VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + ImageReference: &armworkloads.ImageReference{ + Offer: to.Ptr("RHEL-SAP"), + Publisher: to.Ptr("RedHat"), + SKU: to.Ptr("7.4"), + Version: to.Ptr("7.4.2019062505"), + }, + OSProfile: &armworkloads.OSProfile{ + AdminUsername: to.Ptr("{your-username}"), + OSConfiguration: &armworkloads.LinuxConfiguration{ + OSType: to.Ptr(armworkloads.OSTypeLinux), + DisablePasswordAuthentication: to.Ptr(true), + SSHKeyPair: &armworkloads.SSHKeyPair{ + PrivateKey: to.Ptr("xyz"), + PublicKey: to.Ptr("abc"), + }, + }, + }, + VMSize: to.Ptr("Standard_M32ts"), + }, + }, + StorageConfiguration: &armworkloads.StorageConfiguration{ + TransportFileShareConfiguration: &armworkloads.MountFileShareConfiguration{ + ConfigurationType: to.Ptr(armworkloads.ConfigurationTypeMount), + ID: to.Ptr("fileshareID"), + PrivateEndpointID: to.Ptr("pe-arm-id"), + }, + }, + }, + OSSapConfiguration: &armworkloads.OsSapConfiguration{ + SapFqdn: to.Ptr("xyz.test.com"), + }, + }, + Environment: to.Ptr(armworkloads.SAPEnvironmentTypeProd), + SapProduct: to.Ptr(armworkloads.SAPProductTypeS4HANA), + }, + }, 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.SAPVirtualInstance = armworkloads.SAPVirtualInstance{ + // Name: to.Ptr("X00"), + // Type: to.Ptr("Microsoft.Workloads/sapVirtualInstances"), + // ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapVirtualInstances/X00"), + // SystemData: &armworkloads.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // CreatedBy: to.Ptr("user@xyz.com"), + // CreatedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // LastModifiedBy: to.Ptr("user@xyz.com"), + // LastModifiedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // }, + // Location: to.Ptr("westcentralus"), + // Tags: map[string]*string{ + // }, + // Properties: &armworkloads.SAPVirtualInstanceProperties{ + // Configuration: &armworkloads.DeploymentWithOSConfiguration{ + // ConfigurationType: to.Ptr(armworkloads.SAPConfigurationTypeDeploymentWithOSConfig), + // AppLocation: to.Ptr("eastus"), + // InfrastructureConfiguration: &armworkloads.ThreeTierConfiguration{ + // AppResourceGroup: to.Ptr("X00-RG"), + // DeploymentType: to.Ptr(armworkloads.SAPDeploymentTypeThreeTier), + // ApplicationServer: &armworkloads.ApplicationServerConfiguration{ + // InstanceCount: to.Ptr[int64](6), + // SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), + // VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + // ImageReference: &armworkloads.ImageReference{ + // Offer: to.Ptr("RHEL-SAP"), + // Publisher: to.Ptr("RedHat"), + // SKU: to.Ptr("7.4"), + // Version: to.Ptr("7.4.2019062505"), + // }, + // OSProfile: &armworkloads.OSProfile{ + // AdminUsername: to.Ptr("{your-username}"), + // OSConfiguration: &armworkloads.LinuxConfiguration{ + // OSType: to.Ptr(armworkloads.OSTypeLinux), + // DisablePasswordAuthentication: to.Ptr(true), + // SSHKeyPair: &armworkloads.SSHKeyPair{ + // PublicKey: to.Ptr("abc"), + // }, + // }, + // }, + // VMSize: to.Ptr("Standard_E32ds_v4"), + // }, + // }, + // CentralServer: &armworkloads.CentralServerConfiguration{ + // InstanceCount: to.Ptr[int64](1), + // SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), + // VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + // ImageReference: &armworkloads.ImageReference{ + // Offer: to.Ptr("RHEL-SAP"), + // Publisher: to.Ptr("RedHat"), + // SKU: to.Ptr("7.4"), + // Version: to.Ptr("7.4.2019062505"), + // }, + // OSProfile: &armworkloads.OSProfile{ + // AdminUsername: to.Ptr("{your-username}"), + // OSConfiguration: &armworkloads.LinuxConfiguration{ + // OSType: to.Ptr(armworkloads.OSTypeLinux), + // DisablePasswordAuthentication: to.Ptr(true), + // SSHKeyPair: &armworkloads.SSHKeyPair{ + // PublicKey: to.Ptr("abc"), + // }, + // }, + // }, + // VMSize: to.Ptr("Standard_E16ds_v4"), + // }, + // }, + // DatabaseServer: &armworkloads.DatabaseConfiguration{ + // DatabaseType: to.Ptr(armworkloads.SAPDatabaseTypeHANA), + // InstanceCount: to.Ptr[int64](1), + // SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet"), + // VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + // ImageReference: &armworkloads.ImageReference{ + // Offer: to.Ptr("RHEL-SAP"), + // Publisher: to.Ptr("RedHat"), + // SKU: to.Ptr("7.4"), + // Version: to.Ptr("7.4.2019062505"), + // }, + // OSProfile: &armworkloads.OSProfile{ + // AdminUsername: to.Ptr("{your-username}"), + // OSConfiguration: &armworkloads.LinuxConfiguration{ + // OSType: to.Ptr(armworkloads.OSTypeLinux), + // DisablePasswordAuthentication: to.Ptr(true), + // SSHKeyPair: &armworkloads.SSHKeyPair{ + // PublicKey: to.Ptr("abc"), + // }, + // }, + // }, + // VMSize: to.Ptr("Standard_M32ts"), + // }, + // }, + // StorageConfiguration: &armworkloads.StorageConfiguration{ + // TransportFileShareConfiguration: &armworkloads.MountFileShareConfiguration{ + // ConfigurationType: to.Ptr(armworkloads.ConfigurationTypeMount), + // ID: to.Ptr("fileshareID"), + // PrivateEndpointID: to.Ptr("pe-arm-id"), + // }, + // }, + // }, + // OSSapConfiguration: &armworkloads.OsSapConfiguration{ + // SapFqdn: to.Ptr("xyz.test.com"), + // }, + // }, + // Environment: to.Ptr(armworkloads.SAPEnvironmentTypeProd), + // Health: to.Ptr(armworkloads.SAPHealthStateUnknown), + // ProvisioningState: to.Ptr(armworkloads.SapVirtualInstanceProvisioningStateSucceeded), + // SapProduct: to.Ptr(armworkloads.SAPProductTypeS4HANA), + // State: to.Ptr(armworkloads.SAPVirtualInstanceStateSoftwareInstallationPending), + // Status: to.Ptr(armworkloads.SAPVirtualInstanceStatus("Unknown")), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Create_Distributed_SkipTransMount.json +func ExampleSAPVirtualInstancesClient_BeginCreate_createInfrastructureWithoutSapTransFileshare() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armworkloads.NewSAPVirtualInstancesClient("8e17e36c-42e9-4cd5-a078-7b44883414e0", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreate(ctx, "test-rg", "X00", armworkloads.SAPVirtualInstance{ + Location: to.Ptr("westcentralus"), + Tags: map[string]*string{}, + Properties: &armworkloads.SAPVirtualInstanceProperties{ + Configuration: &armworkloads.DeploymentWithOSConfiguration{ + ConfigurationType: to.Ptr(armworkloads.SAPConfigurationTypeDeploymentWithOSConfig), + AppLocation: to.Ptr("eastus"), + InfrastructureConfiguration: &armworkloads.ThreeTierConfiguration{ + AppResourceGroup: to.Ptr("X00-RG"), + DeploymentType: to.Ptr(armworkloads.SAPDeploymentTypeThreeTier), + ApplicationServer: &armworkloads.ApplicationServerConfiguration{ + InstanceCount: to.Ptr[int64](6), + SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), + VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + ImageReference: &armworkloads.ImageReference{ + Offer: to.Ptr("RHEL-SAP"), + Publisher: to.Ptr("RedHat"), + SKU: to.Ptr("7.4"), + Version: to.Ptr("7.4.2019062505"), + }, + OSProfile: &armworkloads.OSProfile{ + AdminUsername: to.Ptr("{your-username}"), + OSConfiguration: &armworkloads.LinuxConfiguration{ + OSType: to.Ptr(armworkloads.OSTypeLinux), + DisablePasswordAuthentication: to.Ptr(true), + SSHKeyPair: &armworkloads.SSHKeyPair{ + PrivateKey: to.Ptr("xyz"), + PublicKey: to.Ptr("abc"), + }, + }, + }, + VMSize: to.Ptr("Standard_E32ds_v4"), + }, + }, + CentralServer: &armworkloads.CentralServerConfiguration{ + InstanceCount: to.Ptr[int64](1), + SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), + VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + ImageReference: &armworkloads.ImageReference{ + Offer: to.Ptr("RHEL-SAP"), + Publisher: to.Ptr("RedHat"), + SKU: to.Ptr("7.4"), + Version: to.Ptr("7.4.2019062505"), + }, + OSProfile: &armworkloads.OSProfile{ + AdminUsername: to.Ptr("{your-username}"), + OSConfiguration: &armworkloads.LinuxConfiguration{ + OSType: to.Ptr(armworkloads.OSTypeLinux), + DisablePasswordAuthentication: to.Ptr(true), + SSHKeyPair: &armworkloads.SSHKeyPair{ + PrivateKey: to.Ptr("xyz"), + PublicKey: to.Ptr("abc"), + }, + }, + }, + VMSize: to.Ptr("Standard_E16ds_v4"), + }, + }, + DatabaseServer: &armworkloads.DatabaseConfiguration{ + DatabaseType: to.Ptr(armworkloads.SAPDatabaseTypeHANA), + InstanceCount: to.Ptr[int64](1), + SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet"), + VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + ImageReference: &armworkloads.ImageReference{ + Offer: to.Ptr("RHEL-SAP"), + Publisher: to.Ptr("RedHat"), + SKU: to.Ptr("7.4"), + Version: to.Ptr("7.4.2019062505"), + }, + OSProfile: &armworkloads.OSProfile{ + AdminUsername: to.Ptr("{your-username}"), + OSConfiguration: &armworkloads.LinuxConfiguration{ + OSType: to.Ptr(armworkloads.OSTypeLinux), + DisablePasswordAuthentication: to.Ptr(true), + SSHKeyPair: &armworkloads.SSHKeyPair{ + PrivateKey: to.Ptr("xyz"), + PublicKey: to.Ptr("abc"), + }, + }, + }, + VMSize: to.Ptr("Standard_M32ts"), + }, + }, + StorageConfiguration: &armworkloads.StorageConfiguration{ + TransportFileShareConfiguration: &armworkloads.SkipFileShareConfiguration{ + ConfigurationType: to.Ptr(armworkloads.ConfigurationTypeSkip), + }, + }, + }, + OSSapConfiguration: &armworkloads.OsSapConfiguration{ + SapFqdn: to.Ptr("xyz.test.com"), + }, + }, + Environment: to.Ptr(armworkloads.SAPEnvironmentTypeProd), + SapProduct: to.Ptr(armworkloads.SAPProductTypeS4HANA), + }, + }, 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.SAPVirtualInstance = armworkloads.SAPVirtualInstance{ + // Name: to.Ptr("X00"), + // Type: to.Ptr("Microsoft.Workloads/sapVirtualInstances"), + // ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapVirtualInstances/X00"), + // SystemData: &armworkloads.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // CreatedBy: to.Ptr("user@xyz.com"), + // CreatedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // LastModifiedBy: to.Ptr("user@xyz.com"), + // LastModifiedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // }, + // Location: to.Ptr("westcentralus"), + // Tags: map[string]*string{ + // }, + // Properties: &armworkloads.SAPVirtualInstanceProperties{ + // Configuration: &armworkloads.DeploymentWithOSConfiguration{ + // ConfigurationType: to.Ptr(armworkloads.SAPConfigurationTypeDeploymentWithOSConfig), + // AppLocation: to.Ptr("eastus"), + // InfrastructureConfiguration: &armworkloads.ThreeTierConfiguration{ + // AppResourceGroup: to.Ptr("X00-RG"), + // DeploymentType: to.Ptr(armworkloads.SAPDeploymentTypeThreeTier), + // ApplicationServer: &armworkloads.ApplicationServerConfiguration{ + // InstanceCount: to.Ptr[int64](6), + // SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), + // VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + // ImageReference: &armworkloads.ImageReference{ + // Offer: to.Ptr("RHEL-SAP"), + // Publisher: to.Ptr("RedHat"), + // SKU: to.Ptr("7.4"), + // Version: to.Ptr("7.4.2019062505"), + // }, + // OSProfile: &armworkloads.OSProfile{ + // AdminUsername: to.Ptr("{your-username}"), + // OSConfiguration: &armworkloads.LinuxConfiguration{ + // OSType: to.Ptr(armworkloads.OSTypeLinux), + // DisablePasswordAuthentication: to.Ptr(true), + // SSHKeyPair: &armworkloads.SSHKeyPair{ + // PublicKey: to.Ptr("abc"), + // }, + // }, + // }, + // VMSize: to.Ptr("Standard_E32ds_v4"), + // }, + // }, + // CentralServer: &armworkloads.CentralServerConfiguration{ + // InstanceCount: to.Ptr[int64](1), + // SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), + // VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + // ImageReference: &armworkloads.ImageReference{ + // Offer: to.Ptr("RHEL-SAP"), + // Publisher: to.Ptr("RedHat"), + // SKU: to.Ptr("7.4"), + // Version: to.Ptr("7.4.2019062505"), + // }, + // OSProfile: &armworkloads.OSProfile{ + // AdminUsername: to.Ptr("{your-username}"), + // OSConfiguration: &armworkloads.LinuxConfiguration{ + // OSType: to.Ptr(armworkloads.OSTypeLinux), + // DisablePasswordAuthentication: to.Ptr(true), + // SSHKeyPair: &armworkloads.SSHKeyPair{ + // PublicKey: to.Ptr("abc"), + // }, + // }, + // }, + // VMSize: to.Ptr("Standard_E16ds_v4"), + // }, + // }, + // DatabaseServer: &armworkloads.DatabaseConfiguration{ + // DatabaseType: to.Ptr(armworkloads.SAPDatabaseTypeHANA), + // InstanceCount: to.Ptr[int64](1), + // SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet"), + // VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + // ImageReference: &armworkloads.ImageReference{ + // Offer: to.Ptr("RHEL-SAP"), + // Publisher: to.Ptr("RedHat"), + // SKU: to.Ptr("7.4"), + // Version: to.Ptr("7.4.2019062505"), + // }, + // OSProfile: &armworkloads.OSProfile{ + // AdminUsername: to.Ptr("{your-username}"), + // OSConfiguration: &armworkloads.LinuxConfiguration{ + // OSType: to.Ptr(armworkloads.OSTypeLinux), + // DisablePasswordAuthentication: to.Ptr(true), + // SSHKeyPair: &armworkloads.SSHKeyPair{ + // PublicKey: to.Ptr("abc"), + // }, + // }, + // }, + // VMSize: to.Ptr("Standard_M32ts"), + // }, + // }, + // StorageConfiguration: &armworkloads.StorageConfiguration{ + // TransportFileShareConfiguration: &armworkloads.SkipFileShareConfiguration{ + // ConfigurationType: to.Ptr(armworkloads.ConfigurationTypeSkip), + // }, + // }, + // }, + // OSSapConfiguration: &armworkloads.OsSapConfiguration{ + // SapFqdn: to.Ptr("xyz.test.com"), + // }, + // }, + // Environment: to.Ptr(armworkloads.SAPEnvironmentTypeProd), + // Health: to.Ptr(armworkloads.SAPHealthStateUnknown), + // ProvisioningState: to.Ptr(armworkloads.SapVirtualInstanceProvisioningStateSucceeded), + // SapProduct: to.Ptr(armworkloads.SAPProductTypeS4HANA), + // State: to.Ptr(armworkloads.SAPVirtualInstanceStateSoftwareInstallationPending), + // Status: to.Ptr(armworkloads.SAPVirtualInstanceStatus("Unknown")), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_DetectInstallation_Distributed.json +func ExampleSAPVirtualInstancesClient_BeginCreate_detectSapSoftwareInstallationOnADistributedSystem() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armworkloads.NewSAPVirtualInstancesClient("8e17e36c-42e9-4cd5-a078-7b44883414e0", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreate(ctx, "test-rg", "X00", armworkloads.SAPVirtualInstance{ + Location: to.Ptr("eastus2"), + Tags: map[string]*string{ + "created by": to.Ptr("azureuser"), + }, + Properties: &armworkloads.SAPVirtualInstanceProperties{ + Configuration: &armworkloads.DeploymentWithOSConfiguration{ + ConfigurationType: to.Ptr(armworkloads.SAPConfigurationTypeDeploymentWithOSConfig), + AppLocation: to.Ptr("eastus"), + InfrastructureConfiguration: &armworkloads.ThreeTierConfiguration{ + AppResourceGroup: to.Ptr("{{resourcegrp}}"), + DeploymentType: to.Ptr(armworkloads.SAPDeploymentTypeThreeTier), + ApplicationServer: &armworkloads.ApplicationServerConfiguration{ + InstanceCount: to.Ptr[int64](2), + SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/app"), + VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + ImageReference: &armworkloads.ImageReference{ + Offer: to.Ptr("RHEL-SAP-HA"), + Publisher: to.Ptr("RedHat"), + SKU: to.Ptr("84sapha-gen2"), + Version: to.Ptr("8.4.2021091202"), + }, + OSProfile: &armworkloads.OSProfile{ + AdminUsername: to.Ptr("azureuser"), + OSConfiguration: &armworkloads.LinuxConfiguration{ + OSType: to.Ptr(armworkloads.OSTypeLinux), + DisablePasswordAuthentication: to.Ptr(true), + SSHKeyPair: &armworkloads.SSHKeyPair{ + PrivateKey: to.Ptr("{{privateKey}}"), + PublicKey: to.Ptr("{{sshkey}}"), + }, + }, + }, + VMSize: to.Ptr("Standard_E4ds_v4"), + }, + }, + CentralServer: &armworkloads.CentralServerConfiguration{ + InstanceCount: to.Ptr[int64](1), + SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/app"), + VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + ImageReference: &armworkloads.ImageReference{ + Offer: to.Ptr("RHEL-SAP-HA"), + Publisher: to.Ptr("RedHat"), + SKU: to.Ptr("84sapha-gen2"), + Version: to.Ptr("8.4.2021091202"), + }, + OSProfile: &armworkloads.OSProfile{ + AdminUsername: to.Ptr("azureuser"), + OSConfiguration: &armworkloads.LinuxConfiguration{ + OSType: to.Ptr(armworkloads.OSTypeLinux), + DisablePasswordAuthentication: to.Ptr(true), + SSHKeyPair: &armworkloads.SSHKeyPair{ + PrivateKey: to.Ptr("{{privateKey}}"), + PublicKey: to.Ptr("{{sshkey}}"), + }, + }, + }, + VMSize: to.Ptr("Standard_E4ds_v4"), + }, + }, + DatabaseServer: &armworkloads.DatabaseConfiguration{ + InstanceCount: to.Ptr[int64](1), + SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/app"), + VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + ImageReference: &armworkloads.ImageReference{ + Offer: to.Ptr("RHEL-SAP-HA"), + Publisher: to.Ptr("RedHat"), + SKU: to.Ptr("84sapha-gen2"), + Version: to.Ptr("8.4.2021091202"), + }, + OSProfile: &armworkloads.OSProfile{ + AdminUsername: to.Ptr("azureuser"), + OSConfiguration: &armworkloads.LinuxConfiguration{ + OSType: to.Ptr(armworkloads.OSTypeLinux), + DisablePasswordAuthentication: to.Ptr(true), + SSHKeyPair: &armworkloads.SSHKeyPair{ + PrivateKey: to.Ptr("{{privateKey}}"), + PublicKey: to.Ptr("{{sshkey}}"), + }, + }, + }, + VMSize: to.Ptr("Standard_M32ts"), + }, + }, + NetworkConfiguration: &armworkloads.NetworkConfiguration{ + IsSecondaryIPEnabled: to.Ptr(true), + }, + }, + OSSapConfiguration: &armworkloads.OsSapConfiguration{ + SapFqdn: to.Ptr("sap.bpaas.com"), + }, + SoftwareConfiguration: &armworkloads.ExternalInstallationSoftwareConfiguration{ + SoftwareInstallationType: to.Ptr(armworkloads.SAPSoftwareInstallationTypeExternal), + CentralServerVMID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Compute/virtualMachines/sapq20scsvm0"), + }, }, + Environment: to.Ptr(armworkloads.SAPEnvironmentTypeProd), + SapProduct: to.Ptr(armworkloads.SAPProductTypeS4HANA), }, - nil) + }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } @@ -134,12 +5111,123 @@ func ExampleSAPVirtualInstancesClient_BeginCreate() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.SAPVirtualInstance = armworkloads.SAPVirtualInstance{ + // Name: to.Ptr("X00"), + // Type: to.Ptr("microsoft.workloads/sapvirtualinstances"), + // ID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Workloads/sapVirtualInstances/X00"), + // SystemData: &armworkloads.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-08-18T18:25:55.2406546Z"); return t}()), + // CreatedBy: to.Ptr("f1bc9460-9d57-4c16-99a8-5a19378a3a93"), + // CreatedByType: to.Ptr(armworkloads.CreatedByTypeApplication), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-08-18T18:50:59.1945444Z"); return t}()), + // LastModifiedBy: to.Ptr("f1bc9460-9d57-4c16-99a8-5a19378a3a93"), + // LastModifiedByType: to.Ptr(armworkloads.CreatedByTypeApplication), + // }, + // Location: to.Ptr("eastus2"), + // Tags: map[string]*string{ + // "created by": to.Ptr("azureuser"), + // }, + // Properties: &armworkloads.SAPVirtualInstanceProperties{ + // Configuration: &armworkloads.DeploymentWithOSConfiguration{ + // ConfigurationType: to.Ptr(armworkloads.SAPConfigurationTypeDeploymentWithOSConfig), + // AppLocation: to.Ptr("eastus"), + // InfrastructureConfiguration: &armworkloads.ThreeTierConfiguration{ + // AppResourceGroup: to.Ptr("aa-rg"), + // DeploymentType: to.Ptr(armworkloads.SAPDeploymentTypeThreeTier), + // ApplicationServer: &armworkloads.ApplicationServerConfiguration{ + // InstanceCount: to.Ptr[int64](2), + // SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/app"), + // VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + // ImageReference: &armworkloads.ImageReference{ + // Offer: to.Ptr("RHEL-SAP-HA"), + // Publisher: to.Ptr("RedHat"), + // SKU: to.Ptr("84sapha-gen2"), + // Version: to.Ptr("8.4.2021091202"), + // }, + // OSProfile: &armworkloads.OSProfile{ + // AdminUsername: to.Ptr("azureuser"), + // OSConfiguration: &armworkloads.LinuxConfiguration{ + // OSType: to.Ptr(armworkloads.OSTypeLinux), + // DisablePasswordAuthentication: to.Ptr(true), + // SSHKeyPair: &armworkloads.SSHKeyPair{ + // PublicKey: to.Ptr("ssh-rsa AAA generated-by-azure"), + // }, + // }, + // }, + // VMSize: to.Ptr("Standard_E4ds_v4"), + // }, + // }, + // CentralServer: &armworkloads.CentralServerConfiguration{ + // InstanceCount: to.Ptr[int64](1), + // SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/app"), + // VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + // ImageReference: &armworkloads.ImageReference{ + // Offer: to.Ptr("RHEL-SAP-HA"), + // Publisher: to.Ptr("RedHat"), + // SKU: to.Ptr("84sapha-gen2"), + // Version: to.Ptr("8.4.2021091202"), + // }, + // OSProfile: &armworkloads.OSProfile{ + // AdminUsername: to.Ptr("azureuser"), + // OSConfiguration: &armworkloads.LinuxConfiguration{ + // OSType: to.Ptr(armworkloads.OSTypeLinux), + // DisablePasswordAuthentication: to.Ptr(true), + // SSHKeyPair: &armworkloads.SSHKeyPair{ + // PublicKey: to.Ptr("ssh-rsa AAA generated-by-azure"), + // }, + // }, + // }, + // VMSize: to.Ptr("Standard_E4ds_v4"), + // }, + // }, + // DatabaseServer: &armworkloads.DatabaseConfiguration{ + // InstanceCount: to.Ptr[int64](1), + // SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/app"), + // VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + // ImageReference: &armworkloads.ImageReference{ + // Offer: to.Ptr("RHEL-SAP-HA"), + // Publisher: to.Ptr("RedHat"), + // SKU: to.Ptr("84sapha-gen2"), + // Version: to.Ptr("8.4.2021091202"), + // }, + // OSProfile: &armworkloads.OSProfile{ + // AdminUsername: to.Ptr("azureuser"), + // OSConfiguration: &armworkloads.LinuxConfiguration{ + // OSType: to.Ptr(armworkloads.OSTypeLinux), + // DisablePasswordAuthentication: to.Ptr(true), + // SSHKeyPair: &armworkloads.SSHKeyPair{ + // PublicKey: to.Ptr("ssh-rsa AAA generated-by-azure"), + // }, + // }, + // }, + // VMSize: to.Ptr("Standard_M32ts"), + // }, + // }, + // NetworkConfiguration: &armworkloads.NetworkConfiguration{ + // IsSecondaryIPEnabled: to.Ptr(true), + // }, + // }, + // OSSapConfiguration: &armworkloads.OsSapConfiguration{ + // SapFqdn: to.Ptr("sap.bpaas.com"), + // }, + // SoftwareConfiguration: &armworkloads.ExternalInstallationSoftwareConfiguration{ + // SoftwareInstallationType: to.Ptr(armworkloads.SAPSoftwareInstallationTypeExternal), + // CentralServerVMID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Compute/virtualMachines/sapq20scsvm0"), + // }, + // }, + // Environment: to.Ptr(armworkloads.SAPEnvironmentTypeProd), + // ProvisioningState: to.Ptr(armworkloads.SapVirtualInstanceProvisioningStateSucceeded), + // SapProduct: to.Ptr(armworkloads.SAPProductTypeS4HANA), + // State: to.Ptr(armworkloads.SAPVirtualInstanceStateRegistrationComplete), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Get.json -func ExampleSAPVirtualInstancesClient_Get() { +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_DetectInstallation_SingleServer.json +func ExampleSAPVirtualInstancesClient_BeginCreate_detectSapSoftwareInstallationOnASingleServerSystem() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -149,19 +5237,1011 @@ func ExampleSAPVirtualInstancesClient_Get() { if err != nil { log.Fatalf("failed to create client: %v", err) } - res, err := client.Get(ctx, - "test-rg", - "X00", - nil) + poller, err := client.BeginCreate(ctx, "test-rg", "X00", armworkloads.SAPVirtualInstance{ + Location: to.Ptr("westcentralus"), + Tags: map[string]*string{}, + Properties: &armworkloads.SAPVirtualInstanceProperties{ + Configuration: &armworkloads.DeploymentWithOSConfiguration{ + ConfigurationType: to.Ptr(armworkloads.SAPConfigurationTypeDeploymentWithOSConfig), + AppLocation: to.Ptr("eastus"), + InfrastructureConfiguration: &armworkloads.SingleServerConfiguration{ + AppResourceGroup: to.Ptr("X00-RG"), + DeploymentType: to.Ptr(armworkloads.SAPDeploymentTypeSingleServer), + DatabaseType: to.Ptr(armworkloads.SAPDatabaseTypeHANA), + NetworkConfiguration: &armworkloads.NetworkConfiguration{ + IsSecondaryIPEnabled: to.Ptr(true), + }, + SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), + VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + ImageReference: &armworkloads.ImageReference{ + Offer: to.Ptr("RHEL-SAP-HA"), + Publisher: to.Ptr("RedHat"), + SKU: to.Ptr("84sapha-gen2"), + Version: to.Ptr("8.4.2021091202"), + }, + OSProfile: &armworkloads.OSProfile{ + AdminUsername: to.Ptr("{your-username}"), + OSConfiguration: &armworkloads.LinuxConfiguration{ + OSType: to.Ptr(armworkloads.OSTypeLinux), + DisablePasswordAuthentication: to.Ptr(true), + SSHKeyPair: &armworkloads.SSHKeyPair{ + PrivateKey: to.Ptr("xyz"), + PublicKey: to.Ptr("abc"), + }, + }, + }, + VMSize: to.Ptr("Standard_E32ds_v4"), + }, + }, + OSSapConfiguration: &armworkloads.OsSapConfiguration{ + SapFqdn: to.Ptr("xyz.test.com"), + }, + SoftwareConfiguration: &armworkloads.ExternalInstallationSoftwareConfiguration{ + SoftwareInstallationType: to.Ptr(armworkloads.SAPSoftwareInstallationTypeExternal), + CentralServerVMID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Compute/virtualMachines/sapq20scsvm0"), + }, + }, + Environment: to.Ptr(armworkloads.SAPEnvironmentTypeNonProd), + SapProduct: to.Ptr(armworkloads.SAPProductTypeS4HANA), + }, + }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + 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.SAPVirtualInstance = armworkloads.SAPVirtualInstance{ + // Name: to.Ptr("X00"), + // Type: to.Ptr("Microsoft.Workloads/sapVirtualInstances"), + // ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapVirtualInstances/X00"), + // SystemData: &armworkloads.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // CreatedBy: to.Ptr("user@xyz.com"), + // CreatedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // LastModifiedBy: to.Ptr("user@xyz.com"), + // LastModifiedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // }, + // Location: to.Ptr("westcentralus"), + // Tags: map[string]*string{ + // }, + // Properties: &armworkloads.SAPVirtualInstanceProperties{ + // Configuration: &armworkloads.DeploymentWithOSConfiguration{ + // ConfigurationType: to.Ptr(armworkloads.SAPConfigurationTypeDeploymentWithOSConfig), + // AppLocation: to.Ptr("eastus"), + // InfrastructureConfiguration: &armworkloads.SingleServerConfiguration{ + // AppResourceGroup: to.Ptr("X00-RG"), + // DeploymentType: to.Ptr(armworkloads.SAPDeploymentTypeSingleServer), + // DatabaseType: to.Ptr(armworkloads.SAPDatabaseTypeHANA), + // NetworkConfiguration: &armworkloads.NetworkConfiguration{ + // IsSecondaryIPEnabled: to.Ptr(true), + // }, + // SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), + // VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + // ImageReference: &armworkloads.ImageReference{ + // Offer: to.Ptr("RHEL-SAP-HA"), + // Publisher: to.Ptr("RedHat"), + // SKU: to.Ptr("84sapha-gen2"), + // Version: to.Ptr("8.4.2021091202"), + // }, + // OSProfile: &armworkloads.OSProfile{ + // AdminUsername: to.Ptr("{your-username}"), + // OSConfiguration: &armworkloads.LinuxConfiguration{ + // OSType: to.Ptr(armworkloads.OSTypeLinux), + // DisablePasswordAuthentication: to.Ptr(true), + // SSHKeyPair: &armworkloads.SSHKeyPair{ + // PublicKey: to.Ptr("abc"), + // }, + // }, + // }, + // VMSize: to.Ptr("Standard_E32ds_v4"), + // }, + // }, + // OSSapConfiguration: &armworkloads.OsSapConfiguration{ + // SapFqdn: to.Ptr("xyz.test.com"), + // }, + // SoftwareConfiguration: &armworkloads.ExternalInstallationSoftwareConfiguration{ + // SoftwareInstallationType: to.Ptr(armworkloads.SAPSoftwareInstallationTypeExternal), + // CentralServerVMID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Compute/virtualMachines/sapq20scsvm0"), + // }, + // }, + // Environment: to.Ptr(armworkloads.SAPEnvironmentTypeNonProd), + // ProvisioningState: to.Ptr(armworkloads.SapVirtualInstanceProvisioningStateSucceeded), + // SapProduct: to.Ptr(armworkloads.SAPProductTypeS4HANA), + // State: to.Ptr(armworkloads.SAPVirtualInstanceStateRegistrationComplete), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Update.json -func ExampleSAPVirtualInstancesClient_Update() { +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_DetectInstallation_HA_AvSet.json +func ExampleSAPVirtualInstancesClient_BeginCreate_detectSapSoftwareInstallationOnAnHaSystemWithAvailabilitySet() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armworkloads.NewSAPVirtualInstancesClient("8e17e36c-42e9-4cd5-a078-7b44883414e0", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreate(ctx, "test-rg", "X00", armworkloads.SAPVirtualInstance{ + Location: to.Ptr("westcentralus"), + Tags: map[string]*string{}, + Properties: &armworkloads.SAPVirtualInstanceProperties{ + Configuration: &armworkloads.DeploymentWithOSConfiguration{ + ConfigurationType: to.Ptr(armworkloads.SAPConfigurationTypeDeploymentWithOSConfig), + AppLocation: to.Ptr("eastus"), + InfrastructureConfiguration: &armworkloads.ThreeTierConfiguration{ + AppResourceGroup: to.Ptr("X00-RG"), + DeploymentType: to.Ptr(armworkloads.SAPDeploymentTypeThreeTier), + ApplicationServer: &armworkloads.ApplicationServerConfiguration{ + InstanceCount: to.Ptr[int64](6), + SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), + VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + ImageReference: &armworkloads.ImageReference{ + Offer: to.Ptr("RHEL-SAP-HA"), + Publisher: to.Ptr("RedHat"), + SKU: to.Ptr("84sapha-gen2"), + Version: to.Ptr("8.4.2021091202"), + }, + OSProfile: &armworkloads.OSProfile{ + AdminUsername: to.Ptr("{your-username}"), + OSConfiguration: &armworkloads.LinuxConfiguration{ + OSType: to.Ptr(armworkloads.OSTypeLinux), + DisablePasswordAuthentication: to.Ptr(true), + SSHKeyPair: &armworkloads.SSHKeyPair{ + PrivateKey: to.Ptr("xyz"), + PublicKey: to.Ptr("abc"), + }, + }, + }, + VMSize: to.Ptr("Standard_E32ds_v4"), + }, + }, + CentralServer: &armworkloads.CentralServerConfiguration{ + InstanceCount: to.Ptr[int64](2), + SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), + VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + ImageReference: &armworkloads.ImageReference{ + Offer: to.Ptr("RHEL-SAP-HA"), + Publisher: to.Ptr("RedHat"), + SKU: to.Ptr("84sapha-gen2"), + Version: to.Ptr("8.4.2021091202"), + }, + OSProfile: &armworkloads.OSProfile{ + AdminUsername: to.Ptr("{your-username}"), + OSConfiguration: &armworkloads.LinuxConfiguration{ + OSType: to.Ptr(armworkloads.OSTypeLinux), + DisablePasswordAuthentication: to.Ptr(true), + SSHKeyPair: &armworkloads.SSHKeyPair{ + PrivateKey: to.Ptr("xyz"), + PublicKey: to.Ptr("abc"), + }, + }, + }, + VMSize: to.Ptr("Standard_E16ds_v4"), + }, + }, + DatabaseServer: &armworkloads.DatabaseConfiguration{ + DatabaseType: to.Ptr(armworkloads.SAPDatabaseTypeHANA), + InstanceCount: to.Ptr[int64](2), + SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet"), + VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + ImageReference: &armworkloads.ImageReference{ + Offer: to.Ptr("RHEL-SAP-HA"), + Publisher: to.Ptr("RedHat"), + SKU: to.Ptr("84sapha-gen2"), + Version: to.Ptr("8.4.2021091202"), + }, + OSProfile: &armworkloads.OSProfile{ + AdminUsername: to.Ptr("{your-username}"), + OSConfiguration: &armworkloads.LinuxConfiguration{ + OSType: to.Ptr(armworkloads.OSTypeLinux), + DisablePasswordAuthentication: to.Ptr(true), + SSHKeyPair: &armworkloads.SSHKeyPair{ + PrivateKey: to.Ptr("xyz"), + PublicKey: to.Ptr("abc"), + }, + }, + }, + VMSize: to.Ptr("Standard_M32ts"), + }, + }, + HighAvailabilityConfig: &armworkloads.HighAvailabilityConfiguration{ + HighAvailabilityType: to.Ptr(armworkloads.SAPHighAvailabilityTypeAvailabilitySet), + }, + }, + OSSapConfiguration: &armworkloads.OsSapConfiguration{ + SapFqdn: to.Ptr("xyz.test.com"), + }, + SoftwareConfiguration: &armworkloads.ExternalInstallationSoftwareConfiguration{ + SoftwareInstallationType: to.Ptr(armworkloads.SAPSoftwareInstallationTypeExternal), + CentralServerVMID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Compute/virtualMachines/sapq20scsvm0"), + }, + }, + Environment: to.Ptr(armworkloads.SAPEnvironmentTypeProd), + SapProduct: to.Ptr(armworkloads.SAPProductTypeS4HANA), + }, + }, 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.SAPVirtualInstance = armworkloads.SAPVirtualInstance{ + // Name: to.Ptr("X00"), + // Type: to.Ptr("Microsoft.Workloads/sapVirtualInstances"), + // ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapVirtualInstances/X00"), + // SystemData: &armworkloads.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // CreatedBy: to.Ptr("user@xyz.com"), + // CreatedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // LastModifiedBy: to.Ptr("user@xyz.com"), + // LastModifiedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // }, + // Location: to.Ptr("westcentralus"), + // Tags: map[string]*string{ + // }, + // Properties: &armworkloads.SAPVirtualInstanceProperties{ + // Configuration: &armworkloads.DeploymentWithOSConfiguration{ + // ConfigurationType: to.Ptr(armworkloads.SAPConfigurationTypeDeploymentWithOSConfig), + // AppLocation: to.Ptr("eastus"), + // InfrastructureConfiguration: &armworkloads.ThreeTierConfiguration{ + // AppResourceGroup: to.Ptr("X00-RG"), + // DeploymentType: to.Ptr(armworkloads.SAPDeploymentTypeThreeTier), + // ApplicationServer: &armworkloads.ApplicationServerConfiguration{ + // InstanceCount: to.Ptr[int64](6), + // SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), + // VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + // ImageReference: &armworkloads.ImageReference{ + // Offer: to.Ptr("RHEL-SAP-HA"), + // Publisher: to.Ptr("RedHat"), + // SKU: to.Ptr("84sapha-gen2"), + // Version: to.Ptr("8.4.2021091202"), + // }, + // OSProfile: &armworkloads.OSProfile{ + // AdminUsername: to.Ptr("{your-username}"), + // OSConfiguration: &armworkloads.LinuxConfiguration{ + // OSType: to.Ptr(armworkloads.OSTypeLinux), + // DisablePasswordAuthentication: to.Ptr(true), + // SSHKeyPair: &armworkloads.SSHKeyPair{ + // PublicKey: to.Ptr("abc"), + // }, + // }, + // }, + // VMSize: to.Ptr("Standard_E32ds_v4"), + // }, + // }, + // CentralServer: &armworkloads.CentralServerConfiguration{ + // InstanceCount: to.Ptr[int64](2), + // SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), + // VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + // ImageReference: &armworkloads.ImageReference{ + // Offer: to.Ptr("RHEL-SAP-HA"), + // Publisher: to.Ptr("RedHat"), + // SKU: to.Ptr("84sapha-gen2"), + // Version: to.Ptr("8.4.2021091202"), + // }, + // OSProfile: &armworkloads.OSProfile{ + // AdminUsername: to.Ptr("{your-username}"), + // OSConfiguration: &armworkloads.LinuxConfiguration{ + // OSType: to.Ptr(armworkloads.OSTypeLinux), + // DisablePasswordAuthentication: to.Ptr(true), + // SSHKeyPair: &armworkloads.SSHKeyPair{ + // PublicKey: to.Ptr("abc"), + // }, + // }, + // }, + // VMSize: to.Ptr("Standard_E16ds_v4"), + // }, + // }, + // DatabaseServer: &armworkloads.DatabaseConfiguration{ + // DatabaseType: to.Ptr(armworkloads.SAPDatabaseTypeHANA), + // InstanceCount: to.Ptr[int64](2), + // SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet"), + // VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + // ImageReference: &armworkloads.ImageReference{ + // Offer: to.Ptr("RHEL-SAP-HA"), + // Publisher: to.Ptr("RedHat"), + // SKU: to.Ptr("84sapha-gen2"), + // Version: to.Ptr("8.4.2021091202"), + // }, + // OSProfile: &armworkloads.OSProfile{ + // AdminUsername: to.Ptr("{your-username}"), + // OSConfiguration: &armworkloads.LinuxConfiguration{ + // OSType: to.Ptr(armworkloads.OSTypeLinux), + // DisablePasswordAuthentication: to.Ptr(true), + // SSHKeyPair: &armworkloads.SSHKeyPair{ + // PublicKey: to.Ptr("abc"), + // }, + // }, + // }, + // VMSize: to.Ptr("Standard_M32ts"), + // }, + // }, + // HighAvailabilityConfig: &armworkloads.HighAvailabilityConfiguration{ + // HighAvailabilityType: to.Ptr(armworkloads.SAPHighAvailabilityTypeAvailabilitySet), + // }, + // }, + // OSSapConfiguration: &armworkloads.OsSapConfiguration{ + // SapFqdn: to.Ptr("xyz.test.com"), + // }, + // SoftwareConfiguration: &armworkloads.ExternalInstallationSoftwareConfiguration{ + // SoftwareInstallationType: to.Ptr(armworkloads.SAPSoftwareInstallationTypeExternal), + // CentralServerVMID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Compute/virtualMachines/sapq20scsvm0"), + // }, + // }, + // Environment: to.Ptr(armworkloads.SAPEnvironmentTypeProd), + // ProvisioningState: to.Ptr(armworkloads.SapVirtualInstanceProvisioningStateSucceeded), + // SapProduct: to.Ptr(armworkloads.SAPProductTypeS4HANA), + // State: to.Ptr(armworkloads.SAPVirtualInstanceStateRegistrationComplete), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_DetectInstallation_HA_AvZone.json +func ExampleSAPVirtualInstancesClient_BeginCreate_detectSapSoftwareInstallationOnAnHaSystemWithAvailabilityZone() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armworkloads.NewSAPVirtualInstancesClient("8e17e36c-42e9-4cd5-a078-7b44883414e0", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreate(ctx, "test-rg", "X00", armworkloads.SAPVirtualInstance{ + Location: to.Ptr("westcentralus"), + Tags: map[string]*string{}, + Properties: &armworkloads.SAPVirtualInstanceProperties{ + Configuration: &armworkloads.DeploymentWithOSConfiguration{ + ConfigurationType: to.Ptr(armworkloads.SAPConfigurationTypeDeploymentWithOSConfig), + AppLocation: to.Ptr("eastus"), + InfrastructureConfiguration: &armworkloads.ThreeTierConfiguration{ + AppResourceGroup: to.Ptr("X00-RG"), + DeploymentType: to.Ptr(armworkloads.SAPDeploymentTypeThreeTier), + ApplicationServer: &armworkloads.ApplicationServerConfiguration{ + InstanceCount: to.Ptr[int64](6), + SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), + VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + ImageReference: &armworkloads.ImageReference{ + Offer: to.Ptr("RHEL-SAP-HA"), + Publisher: to.Ptr("RedHat"), + SKU: to.Ptr("84sapha-gen2"), + Version: to.Ptr("8.4.2021091202"), + }, + OSProfile: &armworkloads.OSProfile{ + AdminUsername: to.Ptr("{your-username}"), + OSConfiguration: &armworkloads.LinuxConfiguration{ + OSType: to.Ptr(armworkloads.OSTypeLinux), + DisablePasswordAuthentication: to.Ptr(true), + SSHKeyPair: &armworkloads.SSHKeyPair{ + PrivateKey: to.Ptr("xyz"), + PublicKey: to.Ptr("abc"), + }, + }, + }, + VMSize: to.Ptr("Standard_E32ds_v4"), + }, + }, + CentralServer: &armworkloads.CentralServerConfiguration{ + InstanceCount: to.Ptr[int64](2), + SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), + VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + ImageReference: &armworkloads.ImageReference{ + Offer: to.Ptr("RHEL-SAP-HA"), + Publisher: to.Ptr("RedHat"), + SKU: to.Ptr("84sapha-gen2"), + Version: to.Ptr("8.4.2021091202"), + }, + OSProfile: &armworkloads.OSProfile{ + AdminUsername: to.Ptr("{your-username}"), + OSConfiguration: &armworkloads.LinuxConfiguration{ + OSType: to.Ptr(armworkloads.OSTypeLinux), + DisablePasswordAuthentication: to.Ptr(true), + SSHKeyPair: &armworkloads.SSHKeyPair{ + PrivateKey: to.Ptr("xyz"), + PublicKey: to.Ptr("abc"), + }, + }, + }, + VMSize: to.Ptr("Standard_E16ds_v4"), + }, + }, + DatabaseServer: &armworkloads.DatabaseConfiguration{ + DatabaseType: to.Ptr(armworkloads.SAPDatabaseTypeHANA), + InstanceCount: to.Ptr[int64](2), + SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet"), + VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + ImageReference: &armworkloads.ImageReference{ + Offer: to.Ptr("RHEL-SAP-HA"), + Publisher: to.Ptr("RedHat"), + SKU: to.Ptr("84sapha-gen2"), + Version: to.Ptr("8.4.2021091202"), + }, + OSProfile: &armworkloads.OSProfile{ + AdminUsername: to.Ptr("{your-username}"), + OSConfiguration: &armworkloads.LinuxConfiguration{ + OSType: to.Ptr(armworkloads.OSTypeLinux), + DisablePasswordAuthentication: to.Ptr(true), + SSHKeyPair: &armworkloads.SSHKeyPair{ + PrivateKey: to.Ptr("xyz"), + PublicKey: to.Ptr("abc"), + }, + }, + }, + VMSize: to.Ptr("Standard_M32ts"), + }, + }, + HighAvailabilityConfig: &armworkloads.HighAvailabilityConfiguration{ + HighAvailabilityType: to.Ptr(armworkloads.SAPHighAvailabilityTypeAvailabilityZone), + }, + }, + OSSapConfiguration: &armworkloads.OsSapConfiguration{ + SapFqdn: to.Ptr("xyz.test.com"), + }, + SoftwareConfiguration: &armworkloads.ExternalInstallationSoftwareConfiguration{ + SoftwareInstallationType: to.Ptr(armworkloads.SAPSoftwareInstallationTypeExternal), + CentralServerVMID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Compute/virtualMachines/sapq20scsvm0"), + }, + }, + Environment: to.Ptr(armworkloads.SAPEnvironmentTypeProd), + SapProduct: to.Ptr(armworkloads.SAPProductTypeS4HANA), + }, + }, 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.SAPVirtualInstance = armworkloads.SAPVirtualInstance{ + // Name: to.Ptr("X00"), + // Type: to.Ptr("Microsoft.Workloads/sapVirtualInstances"), + // ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapVirtualInstances/X00"), + // SystemData: &armworkloads.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // CreatedBy: to.Ptr("user@xyz.com"), + // CreatedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // LastModifiedBy: to.Ptr("user@xyz.com"), + // LastModifiedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // }, + // Location: to.Ptr("westcentralus"), + // Tags: map[string]*string{ + // }, + // Properties: &armworkloads.SAPVirtualInstanceProperties{ + // Configuration: &armworkloads.DeploymentWithOSConfiguration{ + // ConfigurationType: to.Ptr(armworkloads.SAPConfigurationTypeDeploymentWithOSConfig), + // AppLocation: to.Ptr("eastus"), + // InfrastructureConfiguration: &armworkloads.ThreeTierConfiguration{ + // AppResourceGroup: to.Ptr("X00-RG"), + // DeploymentType: to.Ptr(armworkloads.SAPDeploymentTypeThreeTier), + // ApplicationServer: &armworkloads.ApplicationServerConfiguration{ + // InstanceCount: to.Ptr[int64](6), + // SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), + // VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + // ImageReference: &armworkloads.ImageReference{ + // Offer: to.Ptr("RHEL-SAP-HA"), + // Publisher: to.Ptr("RedHat"), + // SKU: to.Ptr("84sapha-gen2"), + // Version: to.Ptr("8.4.2021091202"), + // }, + // OSProfile: &armworkloads.OSProfile{ + // AdminUsername: to.Ptr("{your-username}"), + // OSConfiguration: &armworkloads.LinuxConfiguration{ + // OSType: to.Ptr(armworkloads.OSTypeLinux), + // DisablePasswordAuthentication: to.Ptr(true), + // SSHKeyPair: &armworkloads.SSHKeyPair{ + // PublicKey: to.Ptr("abc"), + // }, + // }, + // }, + // VMSize: to.Ptr("Standard_E32ds_v4"), + // }, + // }, + // CentralServer: &armworkloads.CentralServerConfiguration{ + // InstanceCount: to.Ptr[int64](2), + // SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/appsubnet"), + // VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + // ImageReference: &armworkloads.ImageReference{ + // Offer: to.Ptr("RHEL-SAP-HA"), + // Publisher: to.Ptr("RedHat"), + // SKU: to.Ptr("84sapha-gen2"), + // Version: to.Ptr("8.4.2021091202"), + // }, + // OSProfile: &armworkloads.OSProfile{ + // AdminUsername: to.Ptr("{your-username}"), + // OSConfiguration: &armworkloads.LinuxConfiguration{ + // OSType: to.Ptr(armworkloads.OSTypeLinux), + // DisablePasswordAuthentication: to.Ptr(true), + // SSHKeyPair: &armworkloads.SSHKeyPair{ + // PublicKey: to.Ptr("abc"), + // }, + // }, + // }, + // VMSize: to.Ptr("Standard_E16ds_v4"), + // }, + // }, + // DatabaseServer: &armworkloads.DatabaseConfiguration{ + // DatabaseType: to.Ptr(armworkloads.SAPDatabaseTypeHANA), + // InstanceCount: to.Ptr[int64](2), + // SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/test-vnet/subnets/dbsubnet"), + // VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + // ImageReference: &armworkloads.ImageReference{ + // Offer: to.Ptr("RHEL-SAP-HA"), + // Publisher: to.Ptr("RedHat"), + // SKU: to.Ptr("84sapha-gen2"), + // Version: to.Ptr("8.4.2021091202"), + // }, + // OSProfile: &armworkloads.OSProfile{ + // AdminUsername: to.Ptr("{your-username}"), + // OSConfiguration: &armworkloads.LinuxConfiguration{ + // OSType: to.Ptr(armworkloads.OSTypeLinux), + // DisablePasswordAuthentication: to.Ptr(true), + // SSHKeyPair: &armworkloads.SSHKeyPair{ + // PublicKey: to.Ptr("abc"), + // }, + // }, + // }, + // VMSize: to.Ptr("Standard_M32ts"), + // }, + // }, + // HighAvailabilityConfig: &armworkloads.HighAvailabilityConfiguration{ + // HighAvailabilityType: to.Ptr(armworkloads.SAPHighAvailabilityTypeAvailabilityZone), + // }, + // }, + // OSSapConfiguration: &armworkloads.OsSapConfiguration{ + // SapFqdn: to.Ptr("xyz.test.com"), + // }, + // SoftwareConfiguration: &armworkloads.ExternalInstallationSoftwareConfiguration{ + // SoftwareInstallationType: to.Ptr(armworkloads.SAPSoftwareInstallationTypeExternal), + // CentralServerVMID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Compute/virtualMachines/sapq20scsvm0"), + // }, + // }, + // Environment: to.Ptr(armworkloads.SAPEnvironmentTypeProd), + // ProvisioningState: to.Ptr(armworkloads.SapVirtualInstanceProvisioningStateSucceeded), + // SapProduct: to.Ptr(armworkloads.SAPProductTypeS4HANA), + // State: to.Ptr(armworkloads.SAPVirtualInstanceStateRegistrationComplete), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Install_Distributed.json +func ExampleSAPVirtualInstancesClient_BeginCreate_installSapSoftwareOnDistributedSystem() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armworkloads.NewSAPVirtualInstancesClient("8e17e36c-42e9-4cd5-a078-7b44883414e0", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreate(ctx, "test-rg", "X00", armworkloads.SAPVirtualInstance{ + Location: to.Ptr("eastus2"), + Tags: map[string]*string{ + "created by": to.Ptr("azureuser"), + }, + Properties: &armworkloads.SAPVirtualInstanceProperties{ + Configuration: &armworkloads.DeploymentWithOSConfiguration{ + ConfigurationType: to.Ptr(armworkloads.SAPConfigurationTypeDeploymentWithOSConfig), + AppLocation: to.Ptr("eastus"), + InfrastructureConfiguration: &armworkloads.ThreeTierConfiguration{ + AppResourceGroup: to.Ptr("{{resourcegrp}}"), + DeploymentType: to.Ptr(armworkloads.SAPDeploymentTypeThreeTier), + ApplicationServer: &armworkloads.ApplicationServerConfiguration{ + InstanceCount: to.Ptr[int64](2), + SubnetID: to.Ptr("/subscriptions/8e17e36c-42e9-4cd5-a078-7b44883414e0/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/app"), + VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + ImageReference: &armworkloads.ImageReference{ + Offer: to.Ptr("RHEL-SAP-HA"), + Publisher: to.Ptr("RedHat"), + SKU: to.Ptr("8.2"), + Version: to.Ptr("8.2.2021091201"), + }, + OSProfile: &armworkloads.OSProfile{ + AdminUsername: to.Ptr("azureuser"), + OSConfiguration: &armworkloads.LinuxConfiguration{ + OSType: to.Ptr(armworkloads.OSTypeLinux), + DisablePasswordAuthentication: to.Ptr(true), + SSHKeyPair: &armworkloads.SSHKeyPair{ + PrivateKey: to.Ptr("{{privateKey}}"), + PublicKey: to.Ptr("{{sshkey}}"), + }, + }, + }, + VMSize: to.Ptr("Standard_E4ds_v4"), + }, + }, + CentralServer: &armworkloads.CentralServerConfiguration{ + InstanceCount: to.Ptr[int64](1), + SubnetID: to.Ptr("/subscriptions/8e17e36c-42e9-4cd5-a078-7b44883414e0/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/app"), + VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + ImageReference: &armworkloads.ImageReference{ + Offer: to.Ptr("RHEL-SAP-HA"), + Publisher: to.Ptr("RedHat"), + SKU: to.Ptr("8.2"), + Version: to.Ptr("8.2.2021091201"), + }, + OSProfile: &armworkloads.OSProfile{ + AdminUsername: to.Ptr("azureuser"), + OSConfiguration: &armworkloads.LinuxConfiguration{ + OSType: to.Ptr(armworkloads.OSTypeLinux), + DisablePasswordAuthentication: to.Ptr(true), + SSHKeyPair: &armworkloads.SSHKeyPair{ + PrivateKey: to.Ptr("{{privateKey}}"), + PublicKey: to.Ptr("{{sshkey}}"), + }, + }, + }, + VMSize: to.Ptr("Standard_E4ds_v4"), + }, + }, + DatabaseServer: &armworkloads.DatabaseConfiguration{ + InstanceCount: to.Ptr[int64](1), + SubnetID: to.Ptr("/subscriptions/8e17e36c-42e9-4cd5-a078-7b44883414e0/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/app"), + VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + ImageReference: &armworkloads.ImageReference{ + Offer: to.Ptr("RHEL-SAP-HA"), + Publisher: to.Ptr("RedHat"), + SKU: to.Ptr("8.2"), + Version: to.Ptr("8.2.2021091201"), + }, + OSProfile: &armworkloads.OSProfile{ + AdminUsername: to.Ptr("azureuser"), + OSConfiguration: &armworkloads.LinuxConfiguration{ + OSType: to.Ptr(armworkloads.OSTypeLinux), + DisablePasswordAuthentication: to.Ptr(true), + SSHKeyPair: &armworkloads.SSHKeyPair{ + PrivateKey: to.Ptr("{{privateKey}}"), + PublicKey: to.Ptr("{{sshkey}}"), + }, + }, + }, + VMSize: to.Ptr("Standard_M32ts"), + }, + }, + NetworkConfiguration: &armworkloads.NetworkConfiguration{ + IsSecondaryIPEnabled: to.Ptr(true), + }, + }, + OSSapConfiguration: &armworkloads.OsSapConfiguration{ + SapFqdn: to.Ptr("sap.bpaas.com"), + }, + SoftwareConfiguration: &armworkloads.SAPInstallWithoutOSConfigSoftwareConfiguration{ + SoftwareInstallationType: to.Ptr(armworkloads.SAPSoftwareInstallationTypeSAPInstallWithoutOSConfig), + BomURL: to.Ptr("https://teststorageaccount.blob.core.windows.net/sapbits/sapfiles/boms/S41909SPS03_v0011ms/S41909SPS03_v0011ms.yaml"), + SapBitsStorageAccountID: to.Ptr("/subscriptions/8e17e36c-42e9-4cd5-a078-7b44883414e0/resourceGroups/test-rg/providers/Microsoft.Storage/storageAccounts/teststorageaccount"), + SoftwareVersion: to.Ptr("SAP S/4HANA 1909 SPS 03"), + }, + }, + Environment: to.Ptr(armworkloads.SAPEnvironmentTypeProd), + SapProduct: to.Ptr(armworkloads.SAPProductTypeS4HANA), + }, + }, 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.SAPVirtualInstance = armworkloads.SAPVirtualInstance{ + // Name: to.Ptr("X00"), + // Type: to.Ptr("microsoft.workloads/sapvirtualinstances"), + // ID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/aa-rg/providers/Microsoft.Workloads/sapVirtualInstances/X00"), + // SystemData: &armworkloads.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-08-18T18:25:55.2406546Z"); return t}()), + // CreatedBy: to.Ptr("f1bc9460-9d57-4c16-99a8-5a19378a3a93"), + // CreatedByType: to.Ptr(armworkloads.CreatedByTypeApplication), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-08-18T18:50:59.1945444Z"); return t}()), + // LastModifiedBy: to.Ptr("f1bc9460-9d57-4c16-99a8-5a19378a3a93"), + // LastModifiedByType: to.Ptr(armworkloads.CreatedByTypeApplication), + // }, + // Location: to.Ptr("eastus2"), + // Tags: map[string]*string{ + // "created by": to.Ptr("azureuser"), + // }, + // Properties: &armworkloads.SAPVirtualInstanceProperties{ + // Configuration: &armworkloads.DeploymentWithOSConfiguration{ + // ConfigurationType: to.Ptr(armworkloads.SAPConfigurationTypeDeploymentWithOSConfig), + // AppLocation: to.Ptr("eastus"), + // InfrastructureConfiguration: &armworkloads.ThreeTierConfiguration{ + // AppResourceGroup: to.Ptr("aa-rg"), + // DeploymentType: to.Ptr(armworkloads.SAPDeploymentTypeThreeTier), + // ApplicationServer: &armworkloads.ApplicationServerConfiguration{ + // InstanceCount: to.Ptr[int64](2), + // SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/app"), + // VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + // ImageReference: &armworkloads.ImageReference{ + // Offer: to.Ptr("RHEL-SAP-HA"), + // Publisher: to.Ptr("RedHat"), + // SKU: to.Ptr("84sapha-gen2"), + // Version: to.Ptr("8.4.2021091202"), + // }, + // OSProfile: &armworkloads.OSProfile{ + // AdminUsername: to.Ptr("azureuser"), + // OSConfiguration: &armworkloads.LinuxConfiguration{ + // OSType: to.Ptr(armworkloads.OSTypeLinux), + // DisablePasswordAuthentication: to.Ptr(true), + // SSHKeyPair: &armworkloads.SSHKeyPair{ + // PublicKey: to.Ptr("ssh-rsa AAA generated-by-azure"), + // }, + // }, + // }, + // VMSize: to.Ptr("Standard_E4ds_v4"), + // }, + // }, + // CentralServer: &armworkloads.CentralServerConfiguration{ + // InstanceCount: to.Ptr[int64](1), + // SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/app"), + // VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + // ImageReference: &armworkloads.ImageReference{ + // Offer: to.Ptr("RHEL-SAP-HA"), + // Publisher: to.Ptr("RedHat"), + // SKU: to.Ptr("84sapha-gen2"), + // Version: to.Ptr("8.4.2021091202"), + // }, + // OSProfile: &armworkloads.OSProfile{ + // AdminUsername: to.Ptr("azureuser"), + // OSConfiguration: &armworkloads.LinuxConfiguration{ + // OSType: to.Ptr(armworkloads.OSTypeLinux), + // DisablePasswordAuthentication: to.Ptr(true), + // SSHKeyPair: &armworkloads.SSHKeyPair{ + // PublicKey: to.Ptr("ssh-rsa AAA generated-by-azure"), + // }, + // }, + // }, + // VMSize: to.Ptr("Standard_E4ds_v4"), + // }, + // }, + // DatabaseServer: &armworkloads.DatabaseConfiguration{ + // InstanceCount: to.Ptr[int64](1), + // SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/app"), + // VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + // ImageReference: &armworkloads.ImageReference{ + // Offer: to.Ptr("RHEL-SAP-HA"), + // Publisher: to.Ptr("RedHat"), + // SKU: to.Ptr("84sapha-gen2"), + // Version: to.Ptr("8.4.2021091202"), + // }, + // OSProfile: &armworkloads.OSProfile{ + // AdminUsername: to.Ptr("azureuser"), + // OSConfiguration: &armworkloads.LinuxConfiguration{ + // OSType: to.Ptr(armworkloads.OSTypeLinux), + // DisablePasswordAuthentication: to.Ptr(true), + // SSHKeyPair: &armworkloads.SSHKeyPair{ + // PublicKey: to.Ptr("ssh-rsa AAA generated-by-azure"), + // }, + // }, + // }, + // VMSize: to.Ptr("Standard_M32ts"), + // }, + // }, + // NetworkConfiguration: &armworkloads.NetworkConfiguration{ + // IsSecondaryIPEnabled: to.Ptr(true), + // }, + // }, + // OSSapConfiguration: &armworkloads.OsSapConfiguration{ + // SapFqdn: to.Ptr("sap.bpaas.com"), + // }, + // SoftwareConfiguration: &armworkloads.SAPInstallWithoutOSConfigSoftwareConfiguration{ + // SoftwareInstallationType: to.Ptr(armworkloads.SAPSoftwareInstallationTypeSAPInstallWithoutOSConfig), + // BomURL: to.Ptr("https://teststorageaccount.blob.core.windows.net/sapbits/sapfiles/boms/S41909SPS03_v0011ms/S41909SPS03_v0011ms.yaml"), + // SapBitsStorageAccountID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Storage/storageAccounts/teststorageaccount"), + // SoftwareVersion: to.Ptr("SAP S/4HANA 1909 SPS 03"), + // }, + // }, + // Environment: to.Ptr(armworkloads.SAPEnvironmentTypeProd), + // ProvisioningState: to.Ptr(armworkloads.SapVirtualInstanceProvisioningStateSucceeded), + // SapProduct: to.Ptr(armworkloads.SAPProductTypeS4HANA), + // State: to.Ptr(armworkloads.SAPVirtualInstanceStateSoftwareInstallationInProgress), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Install_SingleServer.json +func ExampleSAPVirtualInstancesClient_BeginCreate_installSapSoftwareOnSingleServerSystem() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armworkloads.NewSAPVirtualInstancesClient("8e17e36c-42e9-4cd5-a078-7b44883414e0", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreate(ctx, "test-rg", "X00", armworkloads.SAPVirtualInstance{ + Location: to.Ptr("eastus2"), + Tags: map[string]*string{}, + Properties: &armworkloads.SAPVirtualInstanceProperties{ + Configuration: &armworkloads.DeploymentWithOSConfiguration{ + ConfigurationType: to.Ptr(armworkloads.SAPConfigurationTypeDeploymentWithOSConfig), + AppLocation: to.Ptr("eastus"), + InfrastructureConfiguration: &armworkloads.SingleServerConfiguration{ + AppResourceGroup: to.Ptr("test-rg"), + DeploymentType: to.Ptr(armworkloads.SAPDeploymentTypeSingleServer), + SubnetID: to.Ptr("/subscriptions/8e17e36c-42e9-4cd5-a078-7b44883414e0/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/testsubnet"), + VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + ImageReference: &armworkloads.ImageReference{ + Offer: to.Ptr("SLES-SAP"), + Publisher: to.Ptr("SUSE"), + SKU: to.Ptr("12-sp4-gen2"), + Version: to.Ptr("2022.02.01"), + }, + OSProfile: &armworkloads.OSProfile{ + AdminUsername: to.Ptr("azureappadmin"), + OSConfiguration: &armworkloads.LinuxConfiguration{ + OSType: to.Ptr(armworkloads.OSTypeLinux), + DisablePasswordAuthentication: to.Ptr(true), + SSHKeyPair: &armworkloads.SSHKeyPair{ + PrivateKey: to.Ptr("{{privateKey}}"), + PublicKey: to.Ptr("{{sshkey}}"), + }, + }, + }, + VMSize: to.Ptr("Standard_E32ds_v4"), + }, + }, + OSSapConfiguration: &armworkloads.OsSapConfiguration{ + SapFqdn: to.Ptr("sap.bpaas.com"), + }, + SoftwareConfiguration: &armworkloads.SAPInstallWithoutOSConfigSoftwareConfiguration{ + SoftwareInstallationType: to.Ptr(armworkloads.SAPSoftwareInstallationTypeSAPInstallWithoutOSConfig), + BomURL: to.Ptr("https://teststorageaccount.blob.core.windows.net/sapbits/sapfiles/boms/S41909SPS03_v0011ms/S41909SPS03_v0011ms.yaml"), + SapBitsStorageAccountID: to.Ptr("/subscriptions/8e17e36c-42e9-4cd5-a078-7b44883414e0/resourceGroups/test-rg/providers/Microsoft.Storage/storageAccounts/teststorageaccount"), + SoftwareVersion: to.Ptr("SAP S/4HANA 1909 SPS 03"), + }, + }, + Environment: to.Ptr(armworkloads.SAPEnvironmentTypeNonProd), + SapProduct: to.Ptr(armworkloads.SAPProductTypeS4HANA), + }, + }, 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.SAPVirtualInstance = armworkloads.SAPVirtualInstance{ + // Name: to.Ptr("X00"), + // Type: to.Ptr("microsoft.workloads/sapvirtualinstances"), + // ID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/aa-rg/providers/Microsoft.Workloads/sapVirtualInstances/X00"), + // SystemData: &armworkloads.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-08-18T18:25:55.2406546Z"); return t}()), + // CreatedBy: to.Ptr("f1bc9460-9d57-4c16-99a8-5a19378a3a93"), + // CreatedByType: to.Ptr(armworkloads.CreatedByTypeApplication), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-08-18T18:50:59.1945444Z"); return t}()), + // LastModifiedBy: to.Ptr("f1bc9460-9d57-4c16-99a8-5a19378a3a93"), + // LastModifiedByType: to.Ptr(armworkloads.CreatedByTypeApplication), + // }, + // Location: to.Ptr("eastus2"), + // Tags: map[string]*string{ + // "created by": to.Ptr("azureuser"), + // }, + // Properties: &armworkloads.SAPVirtualInstanceProperties{ + // Configuration: &armworkloads.DeploymentWithOSConfiguration{ + // ConfigurationType: to.Ptr(armworkloads.SAPConfigurationTypeDeploymentWithOSConfig), + // AppLocation: to.Ptr("eastus"), + // InfrastructureConfiguration: &armworkloads.ThreeTierConfiguration{ + // AppResourceGroup: to.Ptr("aa-rg"), + // DeploymentType: to.Ptr(armworkloads.SAPDeploymentTypeThreeTier), + // ApplicationServer: &armworkloads.ApplicationServerConfiguration{ + // InstanceCount: to.Ptr[int64](2), + // SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/app"), + // VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + // ImageReference: &armworkloads.ImageReference{ + // Offer: to.Ptr("RHEL-SAP-HA"), + // Publisher: to.Ptr("RedHat"), + // SKU: to.Ptr("84sapha-gen2"), + // Version: to.Ptr("8.4.2021091202"), + // }, + // OSProfile: &armworkloads.OSProfile{ + // AdminUsername: to.Ptr("azureuser"), + // OSConfiguration: &armworkloads.LinuxConfiguration{ + // OSType: to.Ptr(armworkloads.OSTypeLinux), + // DisablePasswordAuthentication: to.Ptr(true), + // SSHKeyPair: &armworkloads.SSHKeyPair{ + // PublicKey: to.Ptr("ssh-rsa AAA generated-by-azure"), + // }, + // }, + // }, + // VMSize: to.Ptr("Standard_E4ds_v4"), + // }, + // }, + // CentralServer: &armworkloads.CentralServerConfiguration{ + // InstanceCount: to.Ptr[int64](1), + // SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/app"), + // VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + // ImageReference: &armworkloads.ImageReference{ + // Offer: to.Ptr("RHEL-SAP-HA"), + // Publisher: to.Ptr("RedHat"), + // SKU: to.Ptr("84sapha-gen2"), + // Version: to.Ptr("8.4.2021091202"), + // }, + // OSProfile: &armworkloads.OSProfile{ + // AdminUsername: to.Ptr("azureuser"), + // OSConfiguration: &armworkloads.LinuxConfiguration{ + // OSType: to.Ptr(armworkloads.OSTypeLinux), + // DisablePasswordAuthentication: to.Ptr(true), + // SSHKeyPair: &armworkloads.SSHKeyPair{ + // PublicKey: to.Ptr("ssh-rsa AAA generated-by-azure"), + // }, + // }, + // }, + // VMSize: to.Ptr("Standard_E4ds_v4"), + // }, + // }, + // DatabaseServer: &armworkloads.DatabaseConfiguration{ + // InstanceCount: to.Ptr[int64](1), + // SubnetID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/app"), + // VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + // ImageReference: &armworkloads.ImageReference{ + // Offer: to.Ptr("RHEL-SAP-HA"), + // Publisher: to.Ptr("RedHat"), + // SKU: to.Ptr("84sapha-gen2"), + // Version: to.Ptr("8.4.2021091202"), + // }, + // OSProfile: &armworkloads.OSProfile{ + // AdminUsername: to.Ptr("azureuser"), + // OSConfiguration: &armworkloads.LinuxConfiguration{ + // OSType: to.Ptr(armworkloads.OSTypeLinux), + // DisablePasswordAuthentication: to.Ptr(true), + // SSHKeyPair: &armworkloads.SSHKeyPair{ + // PublicKey: to.Ptr("ssh-rsa AAA generated-by-azure"), + // }, + // }, + // }, + // VMSize: to.Ptr("Standard_M32ts"), + // }, + // }, + // NetworkConfiguration: &armworkloads.NetworkConfiguration{ + // IsSecondaryIPEnabled: to.Ptr(true), + // }, + // }, + // OSSapConfiguration: &armworkloads.OsSapConfiguration{ + // SapFqdn: to.Ptr("sap.bpaas.com"), + // }, + // SoftwareConfiguration: &armworkloads.SAPInstallWithoutOSConfigSoftwareConfiguration{ + // SoftwareInstallationType: to.Ptr(armworkloads.SAPSoftwareInstallationTypeSAPInstallWithoutOSConfig), + // BomURL: to.Ptr("https://teststorageaccount.blob.core.windows.net/sapbits/sapfiles/boms/S41909SPS03_v0011ms/S41909SPS03_v0011ms.yaml"), + // SapBitsStorageAccountID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/test-rg/providers/Microsoft.Storage/storageAccounts/teststorageaccount"), + // SoftwareVersion: to.Ptr("SAP S/4HANA 1909 SPS 03"), + // }, + // }, + // Environment: to.Ptr(armworkloads.SAPEnvironmentTypeProd), + // ProvisioningState: to.Ptr(armworkloads.SapVirtualInstanceProvisioningStateSucceeded), + // SapProduct: to.Ptr(armworkloads.SAPProductTypeS4HANA), + // State: to.Ptr(armworkloads.SAPVirtualInstanceStateSoftwareInstallationInProgress), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Create_Discover_CustomMrgStorageAccountName.json +func ExampleSAPVirtualInstancesClient_BeginCreate_registerExistingSapSystemAsVirtualInstanceForSapSolutionsWithOptionalCustomizations() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -171,26 +6251,336 @@ func ExampleSAPVirtualInstancesClient_Update() { if err != nil { log.Fatalf("failed to create client: %v", err) } - res, err := client.Update(ctx, - "test-rg", - "X00", - armworkloads.UpdateSAPVirtualInstanceRequest{ - Identity: &armworkloads.UserAssignedServiceIdentity{ - Type: to.Ptr(armworkloads.ManagedServiceIdentityTypeNone), + poller, err := client.BeginCreate(ctx, "test-rg", "X00", armworkloads.SAPVirtualInstance{ + Location: to.Ptr("northeurope"), + Tags: map[string]*string{ + "createdby": to.Ptr("abc@microsoft.com"), + "test": to.Ptr("abc"), + }, + Properties: &armworkloads.SAPVirtualInstanceProperties{ + Configuration: &armworkloads.DiscoveryConfiguration{ + ConfigurationType: to.Ptr(armworkloads.SAPConfigurationTypeDiscovery), + CentralServerVMID: to.Ptr("/subscriptions/8e17e36c-42e9-4cd5-a078-7b44883414e0/resourceGroups/test-rg/providers/Microsoft.Compute/virtualMachines/sapq20scsvm0"), + ManagedRgStorageAccountName: to.Ptr("q20saacssgrs"), }, - Tags: map[string]*string{ - "key1": to.Ptr("svi1"), + Environment: to.Ptr(armworkloads.SAPEnvironmentTypeNonProd), + SapProduct: to.Ptr(armworkloads.SAPProductTypeS4HANA), + }, + }, 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.SAPVirtualInstance = armworkloads.SAPVirtualInstance{ + // Name: to.Ptr("Q20"), + // Type: to.Ptr("microsoft.workloads/sapvirtualinstances"), + // ID: to.Ptr("/subscriptions/8e17e36c-42e9-4cd5-a078-7b44883414e0/resourceGroups/test-rg/providers/Microsoft.Workloads/sapVirtualInstances/Q20"), + // SystemData: &armworkloads.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-07-27T08:22:52.3318907Z"); return t}()), + // CreatedBy: to.Ptr("abc@microsoft.com"), + // CreatedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-07-27T11:44:17.9310503Z"); return t}()), + // LastModifiedBy: to.Ptr("abc@microsoft.com"), + // LastModifiedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // }, + // Location: to.Ptr("northeurope"), + // Properties: &armworkloads.SAPVirtualInstanceProperties{ + // Configuration: &armworkloads.DiscoveryConfiguration{ + // ConfigurationType: to.Ptr(armworkloads.SAPConfigurationTypeDiscovery), + // AppLocation: to.Ptr("westeurope"), + // CentralServerVMID: to.Ptr("/subscriptions/8e17e36c-42e9-4cd5-a078-7b44883414e0/resourceGroups/test-rg-infra/providers/Microsoft.Compute/virtualMachines/q20ascsvm0"), + // ManagedRgStorageAccountName: to.Ptr("q20saacssgrs"), + // }, + // Environment: to.Ptr(armworkloads.SAPEnvironmentTypeNonProd), + // Health: to.Ptr(armworkloads.SAPHealthStateHealthy), + // ManagedResourceGroupConfiguration: &armworkloads.ManagedRGConfiguration{ + // Name: to.Ptr("mrg-Q20-5b0097"), + // }, + // ProvisioningState: to.Ptr(armworkloads.SapVirtualInstanceProvisioningStateSucceeded), + // SapProduct: to.Ptr(armworkloads.SAPProductTypeS4HANA), + // State: to.Ptr(armworkloads.SAPVirtualInstanceStateRegistrationComplete), + // Status: to.Ptr(armworkloads.SAPVirtualInstanceStatusRunning), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Create_Discover.json +func ExampleSAPVirtualInstancesClient_BeginCreate_registerExistingSapSystemAsVirtualInstanceForSapSolutions() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armworkloads.NewSAPVirtualInstancesClient("8e17e36c-42e9-4cd5-a078-7b44883414e0", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreate(ctx, "test-rg", "X00", armworkloads.SAPVirtualInstance{ + Location: to.Ptr("northeurope"), + Tags: map[string]*string{ + "createdby": to.Ptr("abc@microsoft.com"), + "test": to.Ptr("abc"), + }, + Properties: &armworkloads.SAPVirtualInstanceProperties{ + Configuration: &armworkloads.DiscoveryConfiguration{ + ConfigurationType: to.Ptr(armworkloads.SAPConfigurationTypeDiscovery), + CentralServerVMID: to.Ptr("/subscriptions/8e17e36c-42e9-4cd5-a078-7b44883414e0/resourceGroups/test-rg/providers/Microsoft.Compute/virtualMachines/sapq20scsvm0"), }, + Environment: to.Ptr(armworkloads.SAPEnvironmentTypeNonProd), + SapProduct: to.Ptr(armworkloads.SAPProductTypeS4HANA), + }, + }, 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.SAPVirtualInstance = armworkloads.SAPVirtualInstance{ + // Name: to.Ptr("Q20"), + // Type: to.Ptr("microsoft.workloads/sapvirtualinstances"), + // ID: to.Ptr("/subscriptions/8e17e36c-42e9-4cd5-a078-7b44883414e0/resourceGroups/test-rg/providers/Microsoft.Workloads/sapVirtualInstances/Q20"), + // SystemData: &armworkloads.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-07-27T08:22:52.3318907Z"); return t}()), + // CreatedBy: to.Ptr("abc@microsoft.com"), + // CreatedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-07-27T11:44:17.9310503Z"); return t}()), + // LastModifiedBy: to.Ptr("abc@microsoft.com"), + // LastModifiedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // }, + // Location: to.Ptr("northeurope"), + // Properties: &armworkloads.SAPVirtualInstanceProperties{ + // Configuration: &armworkloads.DiscoveryConfiguration{ + // ConfigurationType: to.Ptr(armworkloads.SAPConfigurationTypeDiscovery), + // AppLocation: to.Ptr("westeurope"), + // CentralServerVMID: to.Ptr("/subscriptions/8e17e36c-42e9-4cd5-a078-7b44883414e0/resourceGroups/test-rg-infra/providers/Microsoft.Compute/virtualMachines/q20ascsvm0"), + // }, + // Environment: to.Ptr(armworkloads.SAPEnvironmentTypeNonProd), + // Health: to.Ptr(armworkloads.SAPHealthStateHealthy), + // ManagedResourceGroupConfiguration: &armworkloads.ManagedRGConfiguration{ + // Name: to.Ptr("mrg-Q20-5b0097"), + // }, + // ProvisioningState: to.Ptr(armworkloads.SapVirtualInstanceProvisioningStateSucceeded), + // SapProduct: to.Ptr(armworkloads.SAPProductTypeS4HANA), + // State: to.Ptr(armworkloads.SAPVirtualInstanceStateRegistrationComplete), + // Status: to.Ptr(armworkloads.SAPVirtualInstanceStatusRunning), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Get.json +func ExampleSAPVirtualInstancesClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armworkloads.NewSAPVirtualInstancesClient("8e17e36c-42e9-4cd5-a078-7b44883414e0", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "test-rg", "X00", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.SAPVirtualInstance = armworkloads.SAPVirtualInstance{ + // Name: to.Ptr("X00"), + // Type: to.Ptr("Microsoft.Workloads/sapVirtualInstances"), + // ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapVirtualInstances/X00"), + // SystemData: &armworkloads.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // CreatedBy: to.Ptr("user@xyz.com"), + // CreatedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // LastModifiedBy: to.Ptr("user@xyz.com"), + // LastModifiedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // }, + // Location: to.Ptr("westcentralus"), + // Tags: map[string]*string{ + // }, + // Properties: &armworkloads.SAPVirtualInstanceProperties{ + // Configuration: &armworkloads.DeploymentConfiguration{ + // ConfigurationType: to.Ptr(armworkloads.SAPConfigurationTypeDeployment), + // AppLocation: to.Ptr("eastus"), + // InfrastructureConfiguration: &armworkloads.ThreeTierConfiguration{ + // AppResourceGroup: to.Ptr("X00-RG"), + // DeploymentType: to.Ptr(armworkloads.SAPDeploymentTypeThreeTier), + // ApplicationServer: &armworkloads.ApplicationServerConfiguration{ + // InstanceCount: to.Ptr[int64](10), + // SubnetID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/vnet1/subnets/subnetId3"), + // VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + // ImageReference: &armworkloads.ImageReference{ + // Offer: to.Ptr("RHEL-SAP"), + // Publisher: to.Ptr("RedHat"), + // SKU: to.Ptr("7.4"), + // Version: to.Ptr("7.4.2019062505"), + // }, + // OSProfile: &armworkloads.OSProfile{ + // AdminUsername: to.Ptr("{your-username}"), + // OSConfiguration: &armworkloads.LinuxConfiguration{ + // OSType: to.Ptr(armworkloads.OSTypeLinux), + // DisablePasswordAuthentication: to.Ptr(true), + // SSH: &armworkloads.SSHConfiguration{ + // PublicKeys: []*armworkloads.SSHPublicKey{ + // { + // KeyData: to.Ptr("ssh-rsa public key"), + // }}, + // }, + // }, + // }, + // VMSize: to.Ptr("Standard_D8s_v3"), + // }, + // }, + // CentralServer: &armworkloads.CentralServerConfiguration{ + // InstanceCount: to.Ptr[int64](1), + // SubnetID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/vnet1/subnets/subnetId1"), + // VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + // ImageReference: &armworkloads.ImageReference{ + // Offer: to.Ptr("RHEL-SAP"), + // Publisher: to.Ptr("RedHat"), + // SKU: to.Ptr("7.4"), + // Version: to.Ptr("7.4.2019062505"), + // }, + // OSProfile: &armworkloads.OSProfile{ + // AdminUsername: to.Ptr("{your-username}"), + // OSConfiguration: &armworkloads.LinuxConfiguration{ + // OSType: to.Ptr(armworkloads.OSTypeLinux), + // DisablePasswordAuthentication: to.Ptr(true), + // SSH: &armworkloads.SSHConfiguration{ + // PublicKeys: []*armworkloads.SSHPublicKey{ + // { + // KeyData: to.Ptr("ssh-rsa public key"), + // }}, + // }, + // }, + // }, + // VMSize: to.Ptr("Standard_D8s_v3"), + // }, + // }, + // DatabaseServer: &armworkloads.DatabaseConfiguration{ + // DatabaseType: to.Ptr(armworkloads.SAPDatabaseTypeHANA), + // InstanceCount: to.Ptr[int64](1), + // SubnetID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/vnet1/subnets/subnetId2"), + // VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + // ImageReference: &armworkloads.ImageReference{ + // Offer: to.Ptr("RHEL-SAP"), + // Publisher: to.Ptr("RedHat"), + // SKU: to.Ptr("7.4"), + // Version: to.Ptr("7.4.2019062505"), + // }, + // OSProfile: &armworkloads.OSProfile{ + // AdminUsername: to.Ptr("{your-username}"), + // OSConfiguration: &armworkloads.LinuxConfiguration{ + // OSType: to.Ptr(armworkloads.OSTypeLinux), + // DisablePasswordAuthentication: to.Ptr(true), + // SSH: &armworkloads.SSHConfiguration{ + // PublicKeys: []*armworkloads.SSHPublicKey{ + // { + // KeyData: to.Ptr("ssh-rsa public key"), + // }}, + // }, + // }, + // }, + // VMSize: to.Ptr("Standard_D8s_v3"), + // }, + // }, + // }, + // SoftwareConfiguration: &armworkloads.ServiceInitiatedSoftwareConfiguration{ + // SoftwareInstallationType: to.Ptr(armworkloads.SAPSoftwareInstallationTypeServiceInitiated), + // BomURL: to.Ptr("https://myaccount.blob.core.windows.net/mycontainer/myblob"), + // SapBitsStorageAccountID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/ajgupt-test/providers/Microsoft.Storage/storageAccounts/ajguptsavnet"), + // SapFqdn: to.Ptr("sapsystem.contoso.net"), + // SoftwareVersion: to.Ptr("SAP S/4HANA 2020 FPS01"), + // }, + // }, + // Environment: to.Ptr(armworkloads.SAPEnvironmentTypeProd), + // Health: to.Ptr(armworkloads.SAPHealthStateHealthy), + // ManagedResourceGroupConfiguration: &armworkloads.ManagedRGConfiguration{ + // Name: to.Ptr("mrg-x00-6d875e77-e412-4d7d-9af4-8895278b4443"), + // }, + // ProvisioningState: to.Ptr(armworkloads.SapVirtualInstanceProvisioningStateSucceeded), + // SapProduct: to.Ptr(armworkloads.SAPProductTypeS4HANA), + // State: to.Ptr(armworkloads.SAPVirtualInstanceStateRegistrationComplete), + // Status: to.Ptr(armworkloads.SAPVirtualInstanceStatusRunning), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Update.json +func ExampleSAPVirtualInstancesClient_Update() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armworkloads.NewSAPVirtualInstancesClient("8e17e36c-42e9-4cd5-a078-7b44883414e0", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Update(ctx, "test-rg", "X00", armworkloads.UpdateSAPVirtualInstanceRequest{ + Identity: &armworkloads.UserAssignedServiceIdentity{ + Type: to.Ptr(armworkloads.ManagedServiceIdentityTypeNone), }, - nil) + Tags: map[string]*string{ + "key1": to.Ptr("svi1"), + }, + }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.SAPVirtualInstance = armworkloads.SAPVirtualInstance{ + // Name: to.Ptr("X00"), + // Type: to.Ptr("Microsoft.Workloads/sapVirtualInstances"), + // ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapVirtualInstances/X00"), + // SystemData: &armworkloads.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // CreatedBy: to.Ptr("user@xyz.com"), + // CreatedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // LastModifiedBy: to.Ptr("user@xyz.com"), + // LastModifiedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // }, + // Location: to.Ptr("westcentralus"), + // Tags: map[string]*string{ + // "key1": to.Ptr("svi1"), + // }, + // Identity: &armworkloads.UserAssignedServiceIdentity{ + // Type: to.Ptr(armworkloads.ManagedServiceIdentityTypeNone), + // }, + // Properties: &armworkloads.SAPVirtualInstanceProperties{ + // Configuration: &armworkloads.DeploymentConfiguration{ + // ConfigurationType: to.Ptr(armworkloads.SAPConfigurationTypeDeployment), + // }, + // Environment: to.Ptr(armworkloads.SAPEnvironmentTypeProd), + // Health: to.Ptr(armworkloads.SAPHealthStateUnknown), + // ManagedResourceGroupConfiguration: &armworkloads.ManagedRGConfiguration{ + // Name: to.Ptr("mrg-x00-6d875e77-e412-4d7d-9af4-8895278b4443"), + // }, + // ProvisioningState: to.Ptr(armworkloads.SapVirtualInstanceProvisioningStateSucceeded), + // SapProduct: to.Ptr(armworkloads.SAPProductTypeS4HANA), + // State: to.Ptr(armworkloads.SAPVirtualInstanceStateInfrastructureDeploymentPending), + // Status: to.Ptr(armworkloads.SAPVirtualInstanceStatusStarting), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Delete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Delete.json func ExampleSAPVirtualInstancesClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -201,10 +6591,7 @@ func ExampleSAPVirtualInstancesClient_BeginDelete() { if err != nil { log.Fatalf("failed to create client: %v", err) } - poller, err := client.BeginDelete(ctx, - "test-rg", - "X00", - nil) + poller, err := client.BeginDelete(ctx, "test-rg", "X00", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } @@ -212,11 +6599,19 @@ func ExampleSAPVirtualInstancesClient_BeginDelete() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.OperationStatusResult = armworkloads.OperationStatusResult{ + // Name: to.Ptr("1e4193c3-206e-4916-b124-1da16175eb0e"), + // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T03:38:07.000Z"); return t}()), + // ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/operations/locations/centralus/1e4193c3-206e-4916-b124-1da16175eb0e"), + // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T03:36:07.000Z"); return t}()), + // Status: to.Ptr("Succeeded"), + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_ListByResourceGroup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_ListByResourceGroup.json func ExampleSAPVirtualInstancesClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -227,21 +6622,263 @@ func ExampleSAPVirtualInstancesClient_NewListByResourceGroupPager() { if err != nil { log.Fatalf("failed to create client: %v", err) } - pager := client.NewListByResourceGroupPager("test-rg", - nil) + pager := client.NewListByResourceGroupPager("test-rg", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.SAPVirtualInstanceList = armworkloads.SAPVirtualInstanceList{ + // Value: []*armworkloads.SAPVirtualInstance{ + // { + // Name: to.Ptr("X00"), + // Type: to.Ptr("Microsoft.Workloads/sapVirtualInstances"), + // ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapVirtualInstances/X00"), + // SystemData: &armworkloads.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // CreatedBy: to.Ptr("user@xyz.com"), + // CreatedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // LastModifiedBy: to.Ptr("user@xyz.com"), + // LastModifiedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // }, + // Location: to.Ptr("westcentralus"), + // Tags: map[string]*string{ + // }, + // Properties: &armworkloads.SAPVirtualInstanceProperties{ + // Configuration: &armworkloads.DeploymentConfiguration{ + // ConfigurationType: to.Ptr(armworkloads.SAPConfigurationTypeDeployment), + // AppLocation: to.Ptr("eastus"), + // InfrastructureConfiguration: &armworkloads.ThreeTierConfiguration{ + // AppResourceGroup: to.Ptr("X00-RG"), + // DeploymentType: to.Ptr(armworkloads.SAPDeploymentTypeThreeTier), + // ApplicationServer: &armworkloads.ApplicationServerConfiguration{ + // InstanceCount: to.Ptr[int64](10), + // SubnetID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/vnet1/subnets/subnetId3"), + // VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + // ImageReference: &armworkloads.ImageReference{ + // Offer: to.Ptr("RHEL-SAP"), + // Publisher: to.Ptr("RedHat"), + // SKU: to.Ptr("7.4"), + // Version: to.Ptr("7.4.2019062505"), + // }, + // OSProfile: &armworkloads.OSProfile{ + // AdminUsername: to.Ptr("{your-username}"), + // OSConfiguration: &armworkloads.LinuxConfiguration{ + // OSType: to.Ptr(armworkloads.OSTypeLinux), + // DisablePasswordAuthentication: to.Ptr(true), + // SSH: &armworkloads.SSHConfiguration{ + // PublicKeys: []*armworkloads.SSHPublicKey{ + // { + // KeyData: to.Ptr("ssh-rsa public key"), + // }}, + // }, + // }, + // }, + // VMSize: to.Ptr("Standard_D8s_v3"), + // }, + // }, + // CentralServer: &armworkloads.CentralServerConfiguration{ + // InstanceCount: to.Ptr[int64](1), + // SubnetID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/vnet1/subnets/subnetId1"), + // VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + // ImageReference: &armworkloads.ImageReference{ + // Offer: to.Ptr("RHEL-SAP"), + // Publisher: to.Ptr("RedHat"), + // SKU: to.Ptr("7.4"), + // Version: to.Ptr("7.4.2019062505"), + // }, + // OSProfile: &armworkloads.OSProfile{ + // AdminUsername: to.Ptr("{your-username}"), + // OSConfiguration: &armworkloads.LinuxConfiguration{ + // OSType: to.Ptr(armworkloads.OSTypeLinux), + // DisablePasswordAuthentication: to.Ptr(true), + // SSH: &armworkloads.SSHConfiguration{ + // PublicKeys: []*armworkloads.SSHPublicKey{ + // { + // KeyData: to.Ptr("ssh-rsa public key"), + // }}, + // }, + // }, + // }, + // VMSize: to.Ptr("Standard_D8s_v3"), + // }, + // }, + // DatabaseServer: &armworkloads.DatabaseConfiguration{ + // DatabaseType: to.Ptr(armworkloads.SAPDatabaseTypeHANA), + // InstanceCount: to.Ptr[int64](1), + // SubnetID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/vnet1/subnets/subnetId2"), + // VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + // ImageReference: &armworkloads.ImageReference{ + // Offer: to.Ptr("RHEL-SAP"), + // Publisher: to.Ptr("RedHat"), + // SKU: to.Ptr("7.4"), + // Version: to.Ptr("7.4.2019062505"), + // }, + // OSProfile: &armworkloads.OSProfile{ + // AdminUsername: to.Ptr("{your-username}"), + // OSConfiguration: &armworkloads.LinuxConfiguration{ + // OSType: to.Ptr(armworkloads.OSTypeLinux), + // DisablePasswordAuthentication: to.Ptr(true), + // SSH: &armworkloads.SSHConfiguration{ + // PublicKeys: []*armworkloads.SSHPublicKey{ + // { + // KeyData: to.Ptr("ssh-rsa public key"), + // }}, + // }, + // }, + // }, + // VMSize: to.Ptr("Standard_D8s_v3"), + // }, + // }, + // }, + // SoftwareConfiguration: &armworkloads.ServiceInitiatedSoftwareConfiguration{ + // SoftwareInstallationType: to.Ptr(armworkloads.SAPSoftwareInstallationTypeServiceInitiated), + // BomURL: to.Ptr("https://myaccount.blob.core.windows.net/mycontainer/myblob"), + // SapBitsStorageAccountID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/ajgupt-test/providers/Microsoft.Storage/storageAccounts/ajguptsavnet"), + // SapFqdn: to.Ptr("sapsystem.contoso.net"), + // SoftwareVersion: to.Ptr("SAP S/4HANA 2020 FPS01"), + // }, + // }, + // Environment: to.Ptr(armworkloads.SAPEnvironmentTypeProd), + // Health: to.Ptr(armworkloads.SAPHealthStateHealthy), + // ManagedResourceGroupConfiguration: &armworkloads.ManagedRGConfiguration{ + // Name: to.Ptr("mrg-x00-6d875e77-e412-4d7d-9af4-8895278b4443"), + // }, + // ProvisioningState: to.Ptr(armworkloads.SapVirtualInstanceProvisioningStateSucceeded), + // SapProduct: to.Ptr(armworkloads.SAPProductTypeS4HANA), + // State: to.Ptr(armworkloads.SAPVirtualInstanceStateRegistrationComplete), + // Status: to.Ptr(armworkloads.SAPVirtualInstanceStatusRunning), + // }, + // }, + // { + // Name: to.Ptr("X01"), + // Type: to.Ptr("Microsoft.Workloads/sapVirtualInstances"), + // ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapVirtualInstances/X01"), + // SystemData: &armworkloads.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // CreatedBy: to.Ptr("user@xyz.com"), + // CreatedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // LastModifiedBy: to.Ptr("user@xyz.com"), + // LastModifiedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // }, + // Location: to.Ptr("westcentralus"), + // Tags: map[string]*string{ + // }, + // Properties: &armworkloads.SAPVirtualInstanceProperties{ + // Configuration: &armworkloads.DeploymentConfiguration{ + // ConfigurationType: to.Ptr(armworkloads.SAPConfigurationTypeDeployment), + // AppLocation: to.Ptr("eastus"), + // InfrastructureConfiguration: &armworkloads.ThreeTierConfiguration{ + // AppResourceGroup: to.Ptr("X00-RG"), + // DeploymentType: to.Ptr(armworkloads.SAPDeploymentTypeThreeTier), + // ApplicationServer: &armworkloads.ApplicationServerConfiguration{ + // InstanceCount: to.Ptr[int64](10), + // SubnetID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/vnet1/subnets/subnetId3"), + // VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + // ImageReference: &armworkloads.ImageReference{ + // Offer: to.Ptr("RHEL-SAP"), + // Publisher: to.Ptr("RedHat"), + // SKU: to.Ptr("7.4"), + // Version: to.Ptr("7.4.2019062505"), + // }, + // OSProfile: &armworkloads.OSProfile{ + // AdminUsername: to.Ptr("{your-username}"), + // OSConfiguration: &armworkloads.LinuxConfiguration{ + // OSType: to.Ptr(armworkloads.OSTypeLinux), + // DisablePasswordAuthentication: to.Ptr(true), + // SSH: &armworkloads.SSHConfiguration{ + // PublicKeys: []*armworkloads.SSHPublicKey{ + // { + // KeyData: to.Ptr("ssh-rsa public key"), + // }}, + // }, + // }, + // }, + // VMSize: to.Ptr("Standard_D8s_v3"), + // }, + // }, + // CentralServer: &armworkloads.CentralServerConfiguration{ + // InstanceCount: to.Ptr[int64](1), + // SubnetID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/vnet1/subnets/subnetId1"), + // VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + // ImageReference: &armworkloads.ImageReference{ + // Offer: to.Ptr("RHEL-SAP"), + // Publisher: to.Ptr("RedHat"), + // SKU: to.Ptr("7.4"), + // Version: to.Ptr("7.4.2019062505"), + // }, + // OSProfile: &armworkloads.OSProfile{ + // AdminUsername: to.Ptr("{your-username}"), + // OSConfiguration: &armworkloads.LinuxConfiguration{ + // OSType: to.Ptr(armworkloads.OSTypeLinux), + // DisablePasswordAuthentication: to.Ptr(true), + // SSH: &armworkloads.SSHConfiguration{ + // PublicKeys: []*armworkloads.SSHPublicKey{ + // { + // KeyData: to.Ptr("ssh-rsa public key"), + // }}, + // }, + // }, + // }, + // VMSize: to.Ptr("Standard_D8s_v3"), + // }, + // }, + // DatabaseServer: &armworkloads.DatabaseConfiguration{ + // DatabaseType: to.Ptr(armworkloads.SAPDatabaseTypeHANA), + // InstanceCount: to.Ptr[int64](1), + // SubnetID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/vnet1/subnets/subnetId2"), + // VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + // ImageReference: &armworkloads.ImageReference{ + // Offer: to.Ptr("RHEL-SAP"), + // Publisher: to.Ptr("RedHat"), + // SKU: to.Ptr("7.4"), + // Version: to.Ptr("7.4.2019062505"), + // }, + // OSProfile: &armworkloads.OSProfile{ + // AdminUsername: to.Ptr("{your-username}"), + // OSConfiguration: &armworkloads.LinuxConfiguration{ + // OSType: to.Ptr(armworkloads.OSTypeLinux), + // DisablePasswordAuthentication: to.Ptr(true), + // SSH: &armworkloads.SSHConfiguration{ + // PublicKeys: []*armworkloads.SSHPublicKey{ + // { + // KeyData: to.Ptr("ssh-rsa public key"), + // }}, + // }, + // }, + // }, + // VMSize: to.Ptr("Standard_D8s_v3"), + // }, + // }, + // }, + // SoftwareConfiguration: &armworkloads.ServiceInitiatedSoftwareConfiguration{ + // SoftwareInstallationType: to.Ptr(armworkloads.SAPSoftwareInstallationTypeServiceInitiated), + // BomURL: to.Ptr("https://myaccount.blob.core.windows.net/mycontainer/myblob"), + // SapBitsStorageAccountID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/ajgupt-test/providers/Microsoft.Storage/storageAccounts/ajguptsavnet"), + // SapFqdn: to.Ptr("sapsystem.contoso.net"), + // SoftwareVersion: to.Ptr("SAP S/4HANA 2020 FPS01"), + // }, + // }, + // Environment: to.Ptr(armworkloads.SAPEnvironmentTypeProd), + // Health: to.Ptr(armworkloads.SAPHealthStateHealthy), + // ProvisioningState: to.Ptr(armworkloads.SapVirtualInstanceProvisioningStateSucceeded), + // SapProduct: to.Ptr(armworkloads.SAPProductTypeS4HANA), + // State: to.Ptr(armworkloads.SAPVirtualInstanceStateRegistrationComplete), + // Status: to.Ptr(armworkloads.SAPVirtualInstanceStatusRunning), + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_ListBySubscription.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_ListBySubscription.json func ExampleSAPVirtualInstancesClient_NewListBySubscriptionPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -254,18 +6891,261 @@ func ExampleSAPVirtualInstancesClient_NewListBySubscriptionPager() { } pager := client.NewListBySubscriptionPager(nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.SAPVirtualInstanceList = armworkloads.SAPVirtualInstanceList{ + // Value: []*armworkloads.SAPVirtualInstance{ + // { + // Name: to.Ptr("X00"), + // Type: to.Ptr("Microsoft.Workloads/sapVirtualInstances"), + // ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapVirtualInstances/X00"), + // SystemData: &armworkloads.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // CreatedBy: to.Ptr("user@xyz.com"), + // CreatedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // LastModifiedBy: to.Ptr("user@xyz.com"), + // LastModifiedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // }, + // Location: to.Ptr("westcentralus"), + // Tags: map[string]*string{ + // }, + // Properties: &armworkloads.SAPVirtualInstanceProperties{ + // Configuration: &armworkloads.DeploymentConfiguration{ + // ConfigurationType: to.Ptr(armworkloads.SAPConfigurationTypeDeployment), + // AppLocation: to.Ptr("eastus"), + // InfrastructureConfiguration: &armworkloads.ThreeTierConfiguration{ + // AppResourceGroup: to.Ptr("X00-RG"), + // DeploymentType: to.Ptr(armworkloads.SAPDeploymentTypeThreeTier), + // ApplicationServer: &armworkloads.ApplicationServerConfiguration{ + // InstanceCount: to.Ptr[int64](10), + // SubnetID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/vnet1/subnets/subnetId3"), + // VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + // ImageReference: &armworkloads.ImageReference{ + // Offer: to.Ptr("RHEL-SAP"), + // Publisher: to.Ptr("RedHat"), + // SKU: to.Ptr("7.4"), + // Version: to.Ptr("7.4.2019062505"), + // }, + // OSProfile: &armworkloads.OSProfile{ + // AdminUsername: to.Ptr("{your-username}"), + // OSConfiguration: &armworkloads.LinuxConfiguration{ + // OSType: to.Ptr(armworkloads.OSTypeLinux), + // DisablePasswordAuthentication: to.Ptr(true), + // SSH: &armworkloads.SSHConfiguration{ + // PublicKeys: []*armworkloads.SSHPublicKey{ + // { + // KeyData: to.Ptr("ssh-rsa public key"), + // }}, + // }, + // }, + // }, + // VMSize: to.Ptr("Standard_D8s_v3"), + // }, + // }, + // CentralServer: &armworkloads.CentralServerConfiguration{ + // InstanceCount: to.Ptr[int64](1), + // SubnetID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/vnet1/subnets/subnetId1"), + // VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + // ImageReference: &armworkloads.ImageReference{ + // Offer: to.Ptr("RHEL-SAP"), + // Publisher: to.Ptr("RedHat"), + // SKU: to.Ptr("7.4"), + // Version: to.Ptr("7.4.2019062505"), + // }, + // OSProfile: &armworkloads.OSProfile{ + // AdminUsername: to.Ptr("{your-username}"), + // OSConfiguration: &armworkloads.LinuxConfiguration{ + // OSType: to.Ptr(armworkloads.OSTypeLinux), + // DisablePasswordAuthentication: to.Ptr(true), + // SSH: &armworkloads.SSHConfiguration{ + // PublicKeys: []*armworkloads.SSHPublicKey{ + // { + // KeyData: to.Ptr("ssh-rsa public key"), + // }}, + // }, + // }, + // }, + // VMSize: to.Ptr("Standard_D8s_v3"), + // }, + // }, + // DatabaseServer: &armworkloads.DatabaseConfiguration{ + // DatabaseType: to.Ptr(armworkloads.SAPDatabaseTypeHANA), + // InstanceCount: to.Ptr[int64](1), + // SubnetID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/vnet1/subnets/subnetId2"), + // VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + // ImageReference: &armworkloads.ImageReference{ + // Offer: to.Ptr("RHEL-SAP"), + // Publisher: to.Ptr("RedHat"), + // SKU: to.Ptr("7.4"), + // Version: to.Ptr("7.4.2019062505"), + // }, + // OSProfile: &armworkloads.OSProfile{ + // AdminUsername: to.Ptr("{your-username}"), + // OSConfiguration: &armworkloads.LinuxConfiguration{ + // OSType: to.Ptr(armworkloads.OSTypeLinux), + // DisablePasswordAuthentication: to.Ptr(true), + // SSH: &armworkloads.SSHConfiguration{ + // PublicKeys: []*armworkloads.SSHPublicKey{ + // { + // KeyData: to.Ptr("ssh-rsa public key"), + // }}, + // }, + // }, + // }, + // VMSize: to.Ptr("Standard_D8s_v3"), + // }, + // }, + // }, + // SoftwareConfiguration: &armworkloads.ServiceInitiatedSoftwareConfiguration{ + // SoftwareInstallationType: to.Ptr(armworkloads.SAPSoftwareInstallationTypeServiceInitiated), + // BomURL: to.Ptr("https://myaccount.blob.core.windows.net/mycontainer/myblob"), + // SapBitsStorageAccountID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/ajgupt-test/providers/Microsoft.Storage/storageAccounts/ajguptsavnet"), + // SapFqdn: to.Ptr("sapsystem.contoso.net"), + // SoftwareVersion: to.Ptr("SAP S/4HANA 2020 FPS01"), + // }, + // }, + // Environment: to.Ptr(armworkloads.SAPEnvironmentTypeProd), + // Health: to.Ptr(armworkloads.SAPHealthStateHealthy), + // ManagedResourceGroupConfiguration: &armworkloads.ManagedRGConfiguration{ + // Name: to.Ptr("mrg-x00-6d875e77-e412-4d7d-9af4-8895278b4443"), + // }, + // ProvisioningState: to.Ptr(armworkloads.SapVirtualInstanceProvisioningStateSucceeded), + // SapProduct: to.Ptr(armworkloads.SAPProductTypeS4HANA), + // State: to.Ptr(armworkloads.SAPVirtualInstanceStateRegistrationComplete), + // Status: to.Ptr(armworkloads.SAPVirtualInstanceStatusRunning), + // }, + // }, + // { + // Name: to.Ptr("X01"), + // Type: to.Ptr("Microsoft.Workloads/sapVirtualInstances"), + // ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/sapVirtualInstances/X01"), + // SystemData: &armworkloads.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // CreatedBy: to.Ptr("user@xyz.com"), + // CreatedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T15:10:46.196Z"); return t}()), + // LastModifiedBy: to.Ptr("user@xyz.com"), + // LastModifiedByType: to.Ptr(armworkloads.CreatedByTypeUser), + // }, + // Location: to.Ptr("westcentralus"), + // Tags: map[string]*string{ + // }, + // Properties: &armworkloads.SAPVirtualInstanceProperties{ + // Configuration: &armworkloads.DeploymentConfiguration{ + // ConfigurationType: to.Ptr(armworkloads.SAPConfigurationTypeDeployment), + // AppLocation: to.Ptr("eastus"), + // InfrastructureConfiguration: &armworkloads.ThreeTierConfiguration{ + // AppResourceGroup: to.Ptr("X00-RG"), + // DeploymentType: to.Ptr(armworkloads.SAPDeploymentTypeThreeTier), + // ApplicationServer: &armworkloads.ApplicationServerConfiguration{ + // InstanceCount: to.Ptr[int64](10), + // SubnetID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/vnet1/subnets/subnetId3"), + // VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + // ImageReference: &armworkloads.ImageReference{ + // Offer: to.Ptr("RHEL-SAP"), + // Publisher: to.Ptr("RedHat"), + // SKU: to.Ptr("7.4"), + // Version: to.Ptr("7.4.2019062505"), + // }, + // OSProfile: &armworkloads.OSProfile{ + // AdminUsername: to.Ptr("{your-username}"), + // OSConfiguration: &armworkloads.LinuxConfiguration{ + // OSType: to.Ptr(armworkloads.OSTypeLinux), + // DisablePasswordAuthentication: to.Ptr(true), + // SSH: &armworkloads.SSHConfiguration{ + // PublicKeys: []*armworkloads.SSHPublicKey{ + // { + // KeyData: to.Ptr("ssh-rsa public key"), + // }}, + // }, + // }, + // }, + // VMSize: to.Ptr("Standard_D8s_v3"), + // }, + // }, + // CentralServer: &armworkloads.CentralServerConfiguration{ + // InstanceCount: to.Ptr[int64](1), + // SubnetID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/vnet1/subnets/subnetId1"), + // VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + // ImageReference: &armworkloads.ImageReference{ + // Offer: to.Ptr("RHEL-SAP"), + // Publisher: to.Ptr("RedHat"), + // SKU: to.Ptr("7.4"), + // Version: to.Ptr("7.4.2019062505"), + // }, + // OSProfile: &armworkloads.OSProfile{ + // AdminUsername: to.Ptr("{your-username}"), + // OSConfiguration: &armworkloads.LinuxConfiguration{ + // OSType: to.Ptr(armworkloads.OSTypeLinux), + // DisablePasswordAuthentication: to.Ptr(true), + // SSH: &armworkloads.SSHConfiguration{ + // PublicKeys: []*armworkloads.SSHPublicKey{ + // { + // KeyData: to.Ptr("ssh-rsa public key"), + // }}, + // }, + // }, + // }, + // VMSize: to.Ptr("Standard_D8s_v3"), + // }, + // }, + // DatabaseServer: &armworkloads.DatabaseConfiguration{ + // DatabaseType: to.Ptr(armworkloads.SAPDatabaseTypeHANA), + // InstanceCount: to.Ptr[int64](1), + // SubnetID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Networks/virtualNetworks/vnet1/subnets/subnetId2"), + // VirtualMachineConfiguration: &armworkloads.VirtualMachineConfiguration{ + // ImageReference: &armworkloads.ImageReference{ + // Offer: to.Ptr("RHEL-SAP"), + // Publisher: to.Ptr("RedHat"), + // SKU: to.Ptr("7.4"), + // Version: to.Ptr("7.4.2019062505"), + // }, + // OSProfile: &armworkloads.OSProfile{ + // AdminUsername: to.Ptr("{your-username}"), + // OSConfiguration: &armworkloads.LinuxConfiguration{ + // OSType: to.Ptr(armworkloads.OSTypeLinux), + // DisablePasswordAuthentication: to.Ptr(true), + // SSH: &armworkloads.SSHConfiguration{ + // PublicKeys: []*armworkloads.SSHPublicKey{ + // { + // KeyData: to.Ptr("ssh-rsa public key"), + // }}, + // }, + // }, + // }, + // VMSize: to.Ptr("Standard_D8s_v3"), + // }, + // }, + // }, + // SoftwareConfiguration: &armworkloads.ServiceInitiatedSoftwareConfiguration{ + // SoftwareInstallationType: to.Ptr(armworkloads.SAPSoftwareInstallationTypeServiceInitiated), + // BomURL: to.Ptr("https://myaccount.blob.core.windows.net/mycontainer/myblob"), + // SapBitsStorageAccountID: to.Ptr("/subscriptions/49d64d54-e966-4c46-a868-1999802b762c/resourceGroups/ajgupt-test/providers/Microsoft.Storage/storageAccounts/ajguptsavnet"), + // SapFqdn: to.Ptr("sapsystem.contoso.net"), + // SoftwareVersion: to.Ptr("SAP S/4HANA 2020 FPS01"), + // }, + // }, + // Environment: to.Ptr(armworkloads.SAPEnvironmentTypeProd), + // Health: to.Ptr(armworkloads.SAPHealthStateHealthy), + // ProvisioningState: to.Ptr(armworkloads.SapVirtualInstanceProvisioningStateSucceeded), + // SapProduct: to.Ptr(armworkloads.SAPProductTypeS4HANA), + // State: to.Ptr(armworkloads.SAPVirtualInstanceStateRegistrationComplete), + // Status: to.Ptr(armworkloads.SAPVirtualInstanceStatusRunning), + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Start.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Start.json func ExampleSAPVirtualInstancesClient_BeginStart() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -276,10 +7156,7 @@ func ExampleSAPVirtualInstancesClient_BeginStart() { if err != nil { log.Fatalf("failed to create client: %v", err) } - poller, err := client.BeginStart(ctx, - "test-rg", - "X00", - nil) + poller, err := client.BeginStart(ctx, "test-rg", "X00", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } @@ -287,11 +7164,19 @@ func ExampleSAPVirtualInstancesClient_BeginStart() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.OperationStatusResult = armworkloads.OperationStatusResult{ + // Name: to.Ptr("1e4193c3-206e-4916-b124-1da16175eb0e"), + // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T03:38:07.000Z"); return t}()), + // ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/operations/locations/centralus/1e4193c3-206e-4916-b124-1da16175eb0e"), + // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T03:36:07.000Z"); return t}()), + // Status: to.Ptr("Succeeded"), + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Stop.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/workloads/resource-manager/Microsoft.Workloads/preview/2022-11-01-preview/examples/sapvirtualinstances/SAPVirtualInstances_Stop.json func ExampleSAPVirtualInstancesClient_BeginStop() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -302,13 +7187,10 @@ func ExampleSAPVirtualInstancesClient_BeginStop() { if err != nil { log.Fatalf("failed to create client: %v", err) } - poller, err := client.BeginStop(ctx, - "test-rg", - "X00", - &armworkloads.SAPVirtualInstancesClientBeginStopOptions{Body: &armworkloads.StopRequest{ - HardStop: to.Ptr(false), - }, - }) + poller, err := client.BeginStop(ctx, "test-rg", "X00", &armworkloads.SAPVirtualInstancesClientBeginStopOptions{Body: &armworkloads.StopRequest{ + SoftStopTimeoutSeconds: to.Ptr[int64](0), + }, + }) if err != nil { log.Fatalf("failed to finish the request: %v", err) } @@ -316,6 +7198,14 @@ func ExampleSAPVirtualInstancesClient_BeginStop() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.OperationStatusResult = armworkloads.OperationStatusResult{ + // Name: to.Ptr("1e4193c3-206e-4916-b124-1da16175eb0e"), + // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T03:38:07.000Z"); return t}()), + // ID: to.Ptr("/subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsoft.Workloads/operations/locations/centralus/1e4193c3-206e-4916-b124-1da16175eb0e"), + // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-19T03:36:07.000Z"); return t}()), + // Status: to.Ptr("Succeeded"), + // } } diff --git a/sdk/resourcemanager/workloads/armworkloads/skus_client.go b/sdk/resourcemanager/workloads/armworkloads/skus_client.go deleted file mode 100644 index 1ba17d81bf0b..000000000000 --- a/sdk/resourcemanager/workloads/armworkloads/skus_client.go +++ /dev/null @@ -1,115 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armworkloads - -import ( - "context" - "errors" - "github.com/Azure/azure-sdk-for-go/sdk/azcore" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" - "net/http" - "net/url" - "strings" -) - -// SKUsClient contains the methods for the SKUs group. -// Don't use this type directly, use NewSKUsClient() instead. -type SKUsClient struct { - host string - subscriptionID string - pl runtime.Pipeline -} - -// NewSKUsClient creates a new instance of SKUsClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. -func NewSKUsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SKUsClient, error) { - if options == nil { - options = &arm.ClientOptions{} - } - ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint - if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { - ep = c.Endpoint - } - pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) - if err != nil { - return nil, err - } - client := &SKUsClient{ - subscriptionID: subscriptionID, - host: ep, - pl: pl, - } - return client, nil -} - -// NewListPager - Lists all the available SKUs under this PR -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01-preview -// options - SKUsClientListOptions contains the optional parameters for the SKUsClient.List method. -func (client *SKUsClient) NewListPager(options *SKUsClientListOptions) *runtime.Pager[SKUsClientListResponse] { - return runtime.NewPager(runtime.PagingHandler[SKUsClientListResponse]{ - More: func(page SKUsClientListResponse) bool { - return page.NextLink != nil && len(*page.NextLink) > 0 - }, - Fetcher: func(ctx context.Context, page *SKUsClientListResponse) (SKUsClientListResponse, error) { - var req *policy.Request - var err error - if page == nil { - req, err = client.listCreateRequest(ctx, options) - } else { - req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) - } - if err != nil { - return SKUsClientListResponse{}, err - } - resp, err := client.pl.Do(req) - if err != nil { - return SKUsClientListResponse{}, err - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return SKUsClientListResponse{}, runtime.NewResponseError(resp) - } - return client.listHandleResponse(resp) - }, - }) -} - -// listCreateRequest creates the List request. -func (client *SKUsClient) listCreateRequest(ctx context.Context, options *SKUsClientListOptions) (*policy.Request, error) { - urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Workloads/skus" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) - if err != nil { - return nil, err - } - reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01-preview") - req.Raw().URL.RawQuery = reqQP.Encode() - req.Raw().Header["Accept"] = []string{"application/json"} - return req, nil -} - -// listHandleResponse handles the List response. -func (client *SKUsClient) listHandleResponse(resp *http.Response) (SKUsClientListResponse, error) { - result := SKUsClientListResponse{} - if err := runtime.UnmarshalAsJSON(resp, &result.SKUsListResult); err != nil { - return SKUsClientListResponse{}, err - } - return result, nil -} diff --git a/sdk/resourcemanager/workloads/armworkloads/skus_client_example_test.go b/sdk/resourcemanager/workloads/armworkloads/skus_client_example_test.go deleted file mode 100644 index 8b49e1928f00..000000000000 --- a/sdk/resourcemanager/workloads/armworkloads/skus_client_example_test.go +++ /dev/null @@ -1,41 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armworkloads_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/workloads/armworkloads" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/Skus_List.json -func ExampleSKUsClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armworkloads.NewSKUsClient("8e17e36c-42e9-4cd5-a078-7b44883414e0", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListPager(nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} diff --git a/sdk/resourcemanager/workloads/armworkloads/time_rfc3339.go b/sdk/resourcemanager/workloads/armworkloads/time_rfc3339.go index 4fae121f637d..f3cacd79264f 100644 --- a/sdk/resourcemanager/workloads/armworkloads/time_rfc3339.go +++ b/sdk/resourcemanager/workloads/armworkloads/time_rfc3339.go @@ -62,7 +62,7 @@ func (t *timeRFC3339) Parse(layout, value string) error { return err } -func populateTimeRFC3339(m map[string]interface{}, k string, t *time.Time) { +func populateTimeRFC3339(m map[string]any, k string, t *time.Time) { if t == nil { return } else if azcore.IsNullValue(t) { diff --git a/sdk/resourcemanager/workloads/armworkloads/wordpressinstances_client.go b/sdk/resourcemanager/workloads/armworkloads/wordpressinstances_client.go deleted file mode 100644 index 1f58ad86c78e..000000000000 --- a/sdk/resourcemanager/workloads/armworkloads/wordpressinstances_client.go +++ /dev/null @@ -1,295 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armworkloads - -import ( - "context" - "errors" - "github.com/Azure/azure-sdk-for-go/sdk/azcore" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" - "net/http" - "net/url" - "strings" -) - -// WordpressInstancesClient contains the methods for the WordpressInstances group. -// Don't use this type directly, use NewWordpressInstancesClient() instead. -type WordpressInstancesClient struct { - host string - subscriptionID string - pl runtime.Pipeline -} - -// NewWordpressInstancesClient creates a new instance of WordpressInstancesClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. -func NewWordpressInstancesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*WordpressInstancesClient, error) { - if options == nil { - options = &arm.ClientOptions{} - } - ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint - if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { - ep = c.Endpoint - } - pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) - if err != nil { - return nil, err - } - client := &WordpressInstancesClient{ - subscriptionID: subscriptionID, - host: ep, - pl: pl, - } - return client, nil -} - -// BeginCreateOrUpdate - Create or updated WordPress instance resource. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// phpWorkloadName - Php workload name -// wordpressInstanceResource - Resource create or update request payload -// options - WordpressInstancesClientBeginCreateOrUpdateOptions contains the optional parameters for the WordpressInstancesClient.BeginCreateOrUpdate -// method. -func (client *WordpressInstancesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, phpWorkloadName string, wordpressInstanceResource WordpressInstanceResource, options *WordpressInstancesClientBeginCreateOrUpdateOptions) (*runtime.Poller[WordpressInstancesClientCreateOrUpdateResponse], error) { - if options == nil || options.ResumeToken == "" { - resp, err := client.createOrUpdate(ctx, resourceGroupName, phpWorkloadName, wordpressInstanceResource, options) - if err != nil { - return nil, err - } - return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[WordpressInstancesClientCreateOrUpdateResponse]{ - FinalStateVia: runtime.FinalStateViaAzureAsyncOp, - }) - } else { - return runtime.NewPollerFromResumeToken[WordpressInstancesClientCreateOrUpdateResponse](options.ResumeToken, client.pl, nil) - } -} - -// CreateOrUpdate - Create or updated WordPress instance resource. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01-preview -func (client *WordpressInstancesClient) createOrUpdate(ctx context.Context, resourceGroupName string, phpWorkloadName string, wordpressInstanceResource WordpressInstanceResource, options *WordpressInstancesClientBeginCreateOrUpdateOptions) (*http.Response, error) { - req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, phpWorkloadName, wordpressInstanceResource, options) - if err != nil { - return nil, err - } - resp, err := client.pl.Do(req) - if err != nil { - return nil, err - } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusCreated) { - return nil, runtime.NewResponseError(resp) - } - return resp, nil -} - -// createOrUpdateCreateRequest creates the CreateOrUpdate request. -func (client *WordpressInstancesClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, phpWorkloadName string, wordpressInstanceResource WordpressInstanceResource, options *WordpressInstancesClientBeginCreateOrUpdateOptions) (*policy.Request, error) { - urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Workloads/phpWorkloads/{phpWorkloadName}/wordpressInstances/default" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - if resourceGroupName == "" { - return nil, errors.New("parameter resourceGroupName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) - if phpWorkloadName == "" { - return nil, errors.New("parameter phpWorkloadName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{phpWorkloadName}", url.PathEscape(phpWorkloadName)) - req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath)) - if err != nil { - return nil, err - } - reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01-preview") - req.Raw().URL.RawQuery = reqQP.Encode() - req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, wordpressInstanceResource) -} - -// Delete - Delete WordPress instance resource. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// phpWorkloadName - Php workload name -// options - WordpressInstancesClientDeleteOptions contains the optional parameters for the WordpressInstancesClient.Delete -// method. -func (client *WordpressInstancesClient) Delete(ctx context.Context, resourceGroupName string, phpWorkloadName string, options *WordpressInstancesClientDeleteOptions) (WordpressInstancesClientDeleteResponse, error) { - req, err := client.deleteCreateRequest(ctx, resourceGroupName, phpWorkloadName, options) - if err != nil { - return WordpressInstancesClientDeleteResponse{}, err - } - resp, err := client.pl.Do(req) - if err != nil { - return WordpressInstancesClientDeleteResponse{}, err - } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusNoContent) { - return WordpressInstancesClientDeleteResponse{}, runtime.NewResponseError(resp) - } - return WordpressInstancesClientDeleteResponse{}, nil -} - -// deleteCreateRequest creates the Delete request. -func (client *WordpressInstancesClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, phpWorkloadName string, options *WordpressInstancesClientDeleteOptions) (*policy.Request, error) { - urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Workloads/phpWorkloads/{phpWorkloadName}/wordpressInstances/default" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - if resourceGroupName == "" { - return nil, errors.New("parameter resourceGroupName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) - if phpWorkloadName == "" { - return nil, errors.New("parameter phpWorkloadName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{phpWorkloadName}", url.PathEscape(phpWorkloadName)) - req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath)) - if err != nil { - return nil, err - } - reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01-preview") - req.Raw().URL.RawQuery = reqQP.Encode() - req.Raw().Header["Accept"] = []string{"application/json"} - return req, nil -} - -// Get - Gets the WordPress instance resource. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// phpWorkloadName - Php workload name -// options - WordpressInstancesClientGetOptions contains the optional parameters for the WordpressInstancesClient.Get method. -func (client *WordpressInstancesClient) Get(ctx context.Context, resourceGroupName string, phpWorkloadName string, options *WordpressInstancesClientGetOptions) (WordpressInstancesClientGetResponse, error) { - req, err := client.getCreateRequest(ctx, resourceGroupName, phpWorkloadName, options) - if err != nil { - return WordpressInstancesClientGetResponse{}, err - } - resp, err := client.pl.Do(req) - if err != nil { - return WordpressInstancesClientGetResponse{}, err - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return WordpressInstancesClientGetResponse{}, runtime.NewResponseError(resp) - } - return client.getHandleResponse(resp) -} - -// getCreateRequest creates the Get request. -func (client *WordpressInstancesClient) getCreateRequest(ctx context.Context, resourceGroupName string, phpWorkloadName string, options *WordpressInstancesClientGetOptions) (*policy.Request, error) { - urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Workloads/phpWorkloads/{phpWorkloadName}/wordpressInstances/default" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - if resourceGroupName == "" { - return nil, errors.New("parameter resourceGroupName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) - if phpWorkloadName == "" { - return nil, errors.New("parameter phpWorkloadName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{phpWorkloadName}", url.PathEscape(phpWorkloadName)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) - if err != nil { - return nil, err - } - reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01-preview") - req.Raw().URL.RawQuery = reqQP.Encode() - req.Raw().Header["Accept"] = []string{"application/json"} - return req, nil -} - -// getHandleResponse handles the Get response. -func (client *WordpressInstancesClient) getHandleResponse(resp *http.Response) (WordpressInstancesClientGetResponse, error) { - result := WordpressInstancesClientGetResponse{} - if err := runtime.UnmarshalAsJSON(resp, &result.WordpressInstanceResource); err != nil { - return WordpressInstancesClientGetResponse{}, err - } - return result, nil -} - -// NewListPager - Lists WordPress instance resources under a phpWorkload resource. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2021-12-01-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// phpWorkloadName - Php workload name -// options - WordpressInstancesClientListOptions contains the optional parameters for the WordpressInstancesClient.List method. -func (client *WordpressInstancesClient) NewListPager(resourceGroupName string, phpWorkloadName string, options *WordpressInstancesClientListOptions) *runtime.Pager[WordpressInstancesClientListResponse] { - return runtime.NewPager(runtime.PagingHandler[WordpressInstancesClientListResponse]{ - More: func(page WordpressInstancesClientListResponse) bool { - return page.NextLink != nil && len(*page.NextLink) > 0 - }, - Fetcher: func(ctx context.Context, page *WordpressInstancesClientListResponse) (WordpressInstancesClientListResponse, error) { - var req *policy.Request - var err error - if page == nil { - req, err = client.listCreateRequest(ctx, resourceGroupName, phpWorkloadName, options) - } else { - req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) - } - if err != nil { - return WordpressInstancesClientListResponse{}, err - } - resp, err := client.pl.Do(req) - if err != nil { - return WordpressInstancesClientListResponse{}, err - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return WordpressInstancesClientListResponse{}, runtime.NewResponseError(resp) - } - return client.listHandleResponse(resp) - }, - }) -} - -// listCreateRequest creates the List request. -func (client *WordpressInstancesClient) listCreateRequest(ctx context.Context, resourceGroupName string, phpWorkloadName string, options *WordpressInstancesClientListOptions) (*policy.Request, error) { - urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Workloads/phpWorkloads/{phpWorkloadName}/wordpressInstances" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - if resourceGroupName == "" { - return nil, errors.New("parameter resourceGroupName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) - if phpWorkloadName == "" { - return nil, errors.New("parameter phpWorkloadName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{phpWorkloadName}", url.PathEscape(phpWorkloadName)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) - if err != nil { - return nil, err - } - reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2021-12-01-preview") - req.Raw().URL.RawQuery = reqQP.Encode() - req.Raw().Header["Accept"] = []string{"application/json"} - return req, nil -} - -// listHandleResponse handles the List response. -func (client *WordpressInstancesClient) listHandleResponse(resp *http.Response) (WordpressInstancesClientListResponse, error) { - result := WordpressInstancesClientListResponse{} - if err := runtime.UnmarshalAsJSON(resp, &result.WordpressInstanceResourceList); err != nil { - return WordpressInstancesClientListResponse{}, err - } - return result, nil -} diff --git a/sdk/resourcemanager/workloads/armworkloads/wordpressinstances_client_example_test.go b/sdk/resourcemanager/workloads/armworkloads/wordpressinstances_client_example_test.go deleted file mode 100644 index f199a5780ad7..000000000000 --- a/sdk/resourcemanager/workloads/armworkloads/wordpressinstances_client_example_test.go +++ /dev/null @@ -1,119 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armworkloads_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/workloads/armworkloads" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/phpworkloads/WordpressInstances_List.json -func ExampleWordpressInstancesClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armworkloads.NewWordpressInstancesClient("8e17e36c-42e9-4cd5-a078-7b44883414e0", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListPager("test-rg", - "wp39", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/phpworkloads/WordpressInstances_Get.json -func ExampleWordpressInstancesClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armworkloads.NewWordpressInstancesClient("8e17e36c-42e9-4cd5-a078-7b44883414e0", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "test-rg", - "wp39", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/phpworkloads/WordpressInstances_CreateOrUpdate.json -func ExampleWordpressInstancesClient_BeginCreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armworkloads.NewWordpressInstancesClient("8e17e36c-42e9-4cd5-a078-7b44883414e0", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginCreateOrUpdate(ctx, - "test-rg", - "wp39", - armworkloads.WordpressInstanceResource{ - Properties: &armworkloads.WordpressInstanceResourceProperties{ - DatabaseName: to.Ptr("wpdb"), - DatabaseUser: to.Ptr("wpuser"), - Version: to.Ptr(armworkloads.WordpressVersionsFive42), - }, - }, - 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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/phpworkloads/WordpressInstances_Delete.json -func ExampleWordpressInstancesClient_Delete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armworkloads.NewWordpressInstancesClient("8e17e36c-42e9-4cd5-a078-7b44883414e0", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = client.Delete(ctx, - "test-rg", - "wp39", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} diff --git a/sdk/resourcemanager/workloads/armworkloads/workloadsclient_client_example_test.go b/sdk/resourcemanager/workloads/armworkloads/workloadsclient_client_example_test.go deleted file mode 100644 index bec1160442ec..000000000000 --- a/sdk/resourcemanager/workloads/armworkloads/workloadsclient_client_example_test.go +++ /dev/null @@ -1,80 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armworkloads_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/workloads/armworkloads" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPSizingRecommendations_S4HANA_Distributed.json -func ExampleClient_SAPSizingRecommendations() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armworkloads.NewClient("8e17e36c-42e9-4cd5-a078-7b44883414e0", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.SAPSizingRecommendations(ctx, - "centralus", - &armworkloads.ClientSAPSizingRecommendationsOptions{SAPSizingRecommendation: nil}) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPDiskConfigurations_NonProd.json -func ExampleClient_SAPDiskConfigurations() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armworkloads.NewClient("8e17e36c-42e9-4cd5-a078-7b44883414e0", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.SAPDiskConfigurations(ctx, - "centralus", - &armworkloads.ClientSAPDiskConfigurationsOptions{SAPDiskConfigurations: nil}) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/sapvirtualinstances/SAPAvailabilityZoneDetails_eastus.json -func ExampleClient_SAPAvailabilityZoneDetails() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armworkloads.NewClient("8e17e36c-42e9-4cd5-a078-7b44883414e0", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.SAPAvailabilityZoneDetails(ctx, - "centralus", - &armworkloads.ClientSAPAvailabilityZoneDetailsOptions{SAPAvailabilityZoneDetails: nil}) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} From 8e6339d903d685094ebce7aa3f654c2e677cfed9 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Wed, 22 Feb 2023 04:37:19 -0500 Subject: [PATCH 043/107] [Release] sdk/resourcemanager/kusto/armkusto/1.2.0 generation from spec commit: 630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f (#19915) Co-authored-by: ReleaseHelper --- .../kusto/armkusto/CHANGELOG.md | 22 + .../attacheddatabaseconfigurations_client.go | 89 ++- ...abaseconfigurations_client_example_test.go | 117 ++- .../kusto/armkusto/autorest.md | 6 +- .../clusterprincipalassignments_client.go | 89 ++- ...rincipalassignments_client_example_test.go | 95 ++- .../kusto/armkusto/clusters_client.go | 255 ++++--- .../armkusto/clusters_client_example_test.go | 711 ++++++++++++++++-- .../kusto/armkusto/constants.go | 32 +- .../databaseprincipalassignments_client.go | 99 +-- ...rincipalassignments_client_example_test.go | 95 ++- .../kusto/armkusto/databases_client.go | 149 ++-- .../armkusto/databases_client_example_test.go | 235 +++++- .../kusto/armkusto/dataconnections_client.go | 139 ++-- .../dataconnections_client_example_test.go | 408 +++++++++- sdk/resourcemanager/kusto/armkusto/go.mod | 6 +- sdk/resourcemanager/kusto/armkusto/go.sum | 15 +- .../managedprivateendpoints_client.go | 109 +-- ...gedprivateendpoints_client_example_test.go | 90 ++- sdk/resourcemanager/kusto/armkusto/models.go | 155 +++- .../kusto/armkusto/models_serde.go | 366 ++++++--- .../kusto/armkusto/operations_client.go | 11 +- .../operations_client_example_test.go | 22 +- .../armkusto/operationsresults_client.go | 19 +- .../operationsresults_client_example_test.go | 22 +- .../operationsresultslocation_client.go | 21 +- ...ionsresultslocation_client_example_test.go | 3 +- .../kusto/armkusto/polymorphic_helpers.go | 6 +- .../privateendpointconnections_client.go | 72 +- ...endpointconnections_client_example_test.go | 88 ++- .../armkusto/privatelinkresources_client.go | 36 +- ...rivatelinkresources_client_example_test.go | 62 +- .../kusto/armkusto/response_types.go | 101 +-- .../kusto/armkusto/scripts_client.go | 114 +-- .../armkusto/scripts_client_example_test.go | 130 +++- .../kusto/armkusto/skus_client.go | 115 +++ .../armkusto/skus_client_example_test.go | 124 +++ .../kusto/armkusto/time_rfc3339.go | 2 +- 38 files changed, 3324 insertions(+), 906 deletions(-) create mode 100644 sdk/resourcemanager/kusto/armkusto/skus_client.go create mode 100644 sdk/resourcemanager/kusto/armkusto/skus_client_example_test.go diff --git a/sdk/resourcemanager/kusto/armkusto/CHANGELOG.md b/sdk/resourcemanager/kusto/armkusto/CHANGELOG.md index 0d6586f5ac9d..a26f3454725b 100644 --- a/sdk/resourcemanager/kusto/armkusto/CHANGELOG.md +++ b/sdk/resourcemanager/kusto/armkusto/CHANGELOG.md @@ -1,5 +1,27 @@ # Release History +## 1.2.0 (2023-02-24) +### Features Added + +- New value `AzureSKUNameStandardL32AsV3`, `AzureSKUNameStandardL32SV3` added to type alias `AzureSKUName` +- New value `DataConnectionKindCosmosDb` added to type alias `DataConnectionKind` +- New value `ProvisioningStateCanceled` added to type alias `ProvisioningState` +- New type alias `LanguageExtensionImageName` with values `LanguageExtensionImageNamePython3108`, `LanguageExtensionImageNamePython365`, `LanguageExtensionImageNamePython3912`, `LanguageExtensionImageNamePython3912IncludeDeepLearning`, `LanguageExtensionImageNameR` +- New function `*CosmosDbDataConnection.GetDataConnection() *DataConnection` +- New function `NewSKUsClient(string, azcore.TokenCredential, *arm.ClientOptions) (*SKUsClient, error)` +- New function `*SKUsClient.NewListPager(string, *SKUsClientListOptions) *runtime.Pager[SKUsClientListResponse]` +- New struct `CosmosDbDataConnection` +- New struct `CosmosDbDataConnectionProperties` +- New struct `ResourceSKUCapabilities` +- New struct `ResourceSKUZoneDetails` +- New struct `SKUsClient` +- New struct `SKUsClientListResponse` +- New field `LanguageExtensionImageName` in struct `LanguageExtension` +- New field `ZoneDetails` in struct `SKULocationInfoItem` +- New field `FunctionsToExclude` in struct `TableLevelSharingProperties` +- New field `FunctionsToInclude` in struct `TableLevelSharingProperties` + + ## 1.1.0 (2022-09-15) ### Features Added diff --git a/sdk/resourcemanager/kusto/armkusto/attacheddatabaseconfigurations_client.go b/sdk/resourcemanager/kusto/armkusto/attacheddatabaseconfigurations_client.go index cd1507803254..c462bf6dfeba 100644 --- a/sdk/resourcemanager/kusto/armkusto/attacheddatabaseconfigurations_client.go +++ b/sdk/resourcemanager/kusto/armkusto/attacheddatabaseconfigurations_client.go @@ -32,10 +32,10 @@ type AttachedDatabaseConfigurationsClient struct { } // NewAttachedDatabaseConfigurationsClient creates a new instance of AttachedDatabaseConfigurationsClient with the specified values. -// subscriptionID - Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID -// forms part of the URI for every service call. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID +// forms part of the URI for every service call. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewAttachedDatabaseConfigurationsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*AttachedDatabaseConfigurationsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -58,12 +58,13 @@ func NewAttachedDatabaseConfigurationsClient(subscriptionID string, credential a // CheckNameAvailability - Checks that the attached database configuration resource name is valid and is not already in use. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 -// resourceGroupName - The name of the resource group containing the Kusto cluster. -// clusterName - The name of the Kusto cluster. -// resourceName - The name of the resource. -// options - AttachedDatabaseConfigurationsClientCheckNameAvailabilityOptions contains the optional parameters for the AttachedDatabaseConfigurationsClient.CheckNameAvailability -// method. +// +// Generated from API version 2022-12-29 +// - resourceGroupName - The name of the resource group containing the Kusto cluster. +// - clusterName - The name of the Kusto cluster. +// - resourceName - The name of the resource. +// - options - AttachedDatabaseConfigurationsClientCheckNameAvailabilityOptions contains the optional parameters for the AttachedDatabaseConfigurationsClient.CheckNameAvailability +// method. func (client *AttachedDatabaseConfigurationsClient) CheckNameAvailability(ctx context.Context, resourceGroupName string, clusterName string, resourceName AttachedDatabaseConfigurationsCheckNameRequest, options *AttachedDatabaseConfigurationsClientCheckNameAvailabilityOptions) (AttachedDatabaseConfigurationsClientCheckNameAvailabilityResponse, error) { req, err := client.checkNameAvailabilityCreateRequest(ctx, resourceGroupName, clusterName, resourceName, options) if err != nil { @@ -99,7 +100,7 @@ func (client *AttachedDatabaseConfigurationsClient) checkNameAvailabilityCreateR return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-07") + reqQP.Set("api-version", "2022-12-29") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, resourceName) @@ -116,13 +117,14 @@ func (client *AttachedDatabaseConfigurationsClient) checkNameAvailabilityHandleR // BeginCreateOrUpdate - Creates or updates an attached database configuration. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 -// resourceGroupName - The name of the resource group containing the Kusto cluster. -// clusterName - The name of the Kusto cluster. -// attachedDatabaseConfigurationName - The name of the attached database configuration. -// parameters - The database parameters supplied to the CreateOrUpdate operation. -// options - AttachedDatabaseConfigurationsClientBeginCreateOrUpdateOptions contains the optional parameters for the AttachedDatabaseConfigurationsClient.BeginCreateOrUpdate -// method. +// +// Generated from API version 2022-12-29 +// - resourceGroupName - The name of the resource group containing the Kusto cluster. +// - clusterName - The name of the Kusto cluster. +// - attachedDatabaseConfigurationName - The name of the attached database configuration. +// - parameters - The database parameters supplied to the CreateOrUpdate operation. +// - options - AttachedDatabaseConfigurationsClientBeginCreateOrUpdateOptions contains the optional parameters for the AttachedDatabaseConfigurationsClient.BeginCreateOrUpdate +// method. func (client *AttachedDatabaseConfigurationsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, clusterName string, attachedDatabaseConfigurationName string, parameters AttachedDatabaseConfiguration, options *AttachedDatabaseConfigurationsClientBeginCreateOrUpdateOptions) (*runtime.Poller[AttachedDatabaseConfigurationsClientCreateOrUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createOrUpdate(ctx, resourceGroupName, clusterName, attachedDatabaseConfigurationName, parameters, options) @@ -137,7 +139,8 @@ func (client *AttachedDatabaseConfigurationsClient) BeginCreateOrUpdate(ctx cont // CreateOrUpdate - Creates or updates an attached database configuration. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 +// +// Generated from API version 2022-12-29 func (client *AttachedDatabaseConfigurationsClient) createOrUpdate(ctx context.Context, resourceGroupName string, clusterName string, attachedDatabaseConfigurationName string, parameters AttachedDatabaseConfiguration, options *AttachedDatabaseConfigurationsClientBeginCreateOrUpdateOptions) (*http.Response, error) { req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, clusterName, attachedDatabaseConfigurationName, parameters, options) if err != nil { @@ -177,7 +180,7 @@ func (client *AttachedDatabaseConfigurationsClient) createOrUpdateCreateRequest( return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-07") + reqQP.Set("api-version", "2022-12-29") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, parameters) @@ -185,12 +188,13 @@ func (client *AttachedDatabaseConfigurationsClient) createOrUpdateCreateRequest( // BeginDelete - Deletes the attached database configuration with the given name. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 -// resourceGroupName - The name of the resource group containing the Kusto cluster. -// clusterName - The name of the Kusto cluster. -// attachedDatabaseConfigurationName - The name of the attached database configuration. -// options - AttachedDatabaseConfigurationsClientBeginDeleteOptions contains the optional parameters for the AttachedDatabaseConfigurationsClient.BeginDelete -// method. +// +// Generated from API version 2022-12-29 +// - resourceGroupName - The name of the resource group containing the Kusto cluster. +// - clusterName - The name of the Kusto cluster. +// - attachedDatabaseConfigurationName - The name of the attached database configuration. +// - options - AttachedDatabaseConfigurationsClientBeginDeleteOptions contains the optional parameters for the AttachedDatabaseConfigurationsClient.BeginDelete +// method. func (client *AttachedDatabaseConfigurationsClient) BeginDelete(ctx context.Context, resourceGroupName string, clusterName string, attachedDatabaseConfigurationName string, options *AttachedDatabaseConfigurationsClientBeginDeleteOptions) (*runtime.Poller[AttachedDatabaseConfigurationsClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, clusterName, attachedDatabaseConfigurationName, options) @@ -205,7 +209,8 @@ func (client *AttachedDatabaseConfigurationsClient) BeginDelete(ctx context.Cont // Delete - Deletes the attached database configuration with the given name. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 +// +// Generated from API version 2022-12-29 func (client *AttachedDatabaseConfigurationsClient) deleteOperation(ctx context.Context, resourceGroupName string, clusterName string, attachedDatabaseConfigurationName string, options *AttachedDatabaseConfigurationsClientBeginDeleteOptions) (*http.Response, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, clusterName, attachedDatabaseConfigurationName, options) if err != nil { @@ -245,7 +250,7 @@ func (client *AttachedDatabaseConfigurationsClient) deleteCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-07") + reqQP.Set("api-version", "2022-12-29") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -253,12 +258,13 @@ func (client *AttachedDatabaseConfigurationsClient) deleteCreateRequest(ctx cont // Get - Returns an attached database configuration. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 -// resourceGroupName - The name of the resource group containing the Kusto cluster. -// clusterName - The name of the Kusto cluster. -// attachedDatabaseConfigurationName - The name of the attached database configuration. -// options - AttachedDatabaseConfigurationsClientGetOptions contains the optional parameters for the AttachedDatabaseConfigurationsClient.Get -// method. +// +// Generated from API version 2022-12-29 +// - resourceGroupName - The name of the resource group containing the Kusto cluster. +// - clusterName - The name of the Kusto cluster. +// - attachedDatabaseConfigurationName - The name of the attached database configuration. +// - options - AttachedDatabaseConfigurationsClientGetOptions contains the optional parameters for the AttachedDatabaseConfigurationsClient.Get +// method. func (client *AttachedDatabaseConfigurationsClient) Get(ctx context.Context, resourceGroupName string, clusterName string, attachedDatabaseConfigurationName string, options *AttachedDatabaseConfigurationsClientGetOptions) (AttachedDatabaseConfigurationsClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, clusterName, attachedDatabaseConfigurationName, options) if err != nil { @@ -298,7 +304,7 @@ func (client *AttachedDatabaseConfigurationsClient) getCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-07") + reqQP.Set("api-version", "2022-12-29") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -314,11 +320,12 @@ func (client *AttachedDatabaseConfigurationsClient) getHandleResponse(resp *http } // NewListByClusterPager - Returns the list of attached database configurations of the given Kusto cluster. -// Generated from API version 2022-07-07 -// resourceGroupName - The name of the resource group containing the Kusto cluster. -// clusterName - The name of the Kusto cluster. -// options - AttachedDatabaseConfigurationsClientListByClusterOptions contains the optional parameters for the AttachedDatabaseConfigurationsClient.ListByCluster -// method. +// +// Generated from API version 2022-12-29 +// - resourceGroupName - The name of the resource group containing the Kusto cluster. +// - clusterName - The name of the Kusto cluster. +// - options - AttachedDatabaseConfigurationsClientListByClusterOptions contains the optional parameters for the AttachedDatabaseConfigurationsClient.NewListByClusterPager +// method. func (client *AttachedDatabaseConfigurationsClient) NewListByClusterPager(resourceGroupName string, clusterName string, options *AttachedDatabaseConfigurationsClientListByClusterOptions) *runtime.Pager[AttachedDatabaseConfigurationsClientListByClusterResponse] { return runtime.NewPager(runtime.PagingHandler[AttachedDatabaseConfigurationsClientListByClusterResponse]{ More: func(page AttachedDatabaseConfigurationsClientListByClusterResponse) bool { @@ -361,7 +368,7 @@ func (client *AttachedDatabaseConfigurationsClient) listByClusterCreateRequest(c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-07") + reqQP.Set("api-version", "2022-12-29") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/kusto/armkusto/attacheddatabaseconfigurations_client_example_test.go b/sdk/resourcemanager/kusto/armkusto/attacheddatabaseconfigurations_client_example_test.go index 669f9f7bff79..a1e53a978d50 100644 --- a/sdk/resourcemanager/kusto/armkusto/attacheddatabaseconfigurations_client_example_test.go +++ b/sdk/resourcemanager/kusto/armkusto/attacheddatabaseconfigurations_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armkusto_test @@ -17,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/kusto/armkusto" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-07-07/examples/KustoAttachedDatabaseConfigurationCheckNameAvailability.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoAttachedDatabaseConfigurationCheckNameAvailability.json func ExampleAttachedDatabaseConfigurationsClient_CheckNameAvailability() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -35,11 +36,17 @@ func ExampleAttachedDatabaseConfigurationsClient_CheckNameAvailability() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.CheckNameResult = armkusto.CheckNameResult{ + // Name: to.Ptr("adc1"), + // Message: to.Ptr("Name 'adc1' is already taken. Please specify a different name"), + // NameAvailable: to.Ptr(false), + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-07-07/examples/KustoAttachedDatabaseConfigurationsListByCluster.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoAttachedDatabaseConfigurationsListByCluster.json func ExampleAttachedDatabaseConfigurationsClient_NewListByClusterPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -52,18 +59,64 @@ func ExampleAttachedDatabaseConfigurationsClient_NewListByClusterPager() { } pager := client.NewListByClusterPager("kustorptest", "kustoCluster2", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.AttachedDatabaseConfigurationListResult = armkusto.AttachedDatabaseConfigurationListResult{ + // Value: []*armkusto.AttachedDatabaseConfiguration{ + // { + // Name: to.Ptr("kustoCluster2/KustoDatabase8"), + // Type: to.Ptr("Microsoft.Kusto/Clusters/AttachedDatabaseConfigurations"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/kustoCluster2/AttachedDatabaseConfigurations/KustoDatabase8"), + // Location: to.Ptr("westus"), + // Properties: &armkusto.AttachedDatabaseConfigurationProperties{ + // ClusterResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterLeader"), + // DatabaseName: to.Ptr("db1"), + // DefaultPrincipalsModificationKind: to.Ptr(armkusto.DefaultPrincipalsModificationKindUnion), + // ProvisioningState: to.Ptr(armkusto.ProvisioningStateSucceeded), + // }, + // }, + // { + // Name: to.Ptr("kustoCluster2/KustoDatabase9"), + // Type: to.Ptr("Microsoft.Kusto/Clusters/AttachedDatabaseConfigurations"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/kustoCluster2/AttachedDatabaseConfigurations/KustoDatabase9"), + // Location: to.Ptr("westus"), + // Properties: &armkusto.AttachedDatabaseConfigurationProperties{ + // ClusterResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterLeader"), + // DatabaseName: to.Ptr("db1"), + // DefaultPrincipalsModificationKind: to.Ptr(armkusto.DefaultPrincipalsModificationKindUnion), + // ProvisioningState: to.Ptr(armkusto.ProvisioningStateSucceeded), + // TableLevelSharingProperties: &armkusto.TableLevelSharingProperties{ + // ExternalTablesToExclude: []*string{ + // to.Ptr("ExternalTable2")}, + // ExternalTablesToInclude: []*string{ + // to.Ptr("ExternalTable1")}, + // FunctionsToExclude: []*string{ + // to.Ptr("functionsToExclude2")}, + // FunctionsToInclude: []*string{ + // to.Ptr("functionsToInclude1")}, + // MaterializedViewsToExclude: []*string{ + // to.Ptr("MaterializedViewTable2")}, + // MaterializedViewsToInclude: []*string{ + // to.Ptr("MaterializedViewTable1")}, + // TablesToExclude: []*string{ + // to.Ptr("Table2")}, + // TablesToInclude: []*string{ + // to.Ptr("Table1")}, + // }, + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-07-07/examples/KustoAttachedDatabaseConfigurationsGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoAttachedDatabaseConfigurationsGet.json func ExampleAttachedDatabaseConfigurationsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -78,11 +131,25 @@ func ExampleAttachedDatabaseConfigurationsClient_Get() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.AttachedDatabaseConfiguration = armkusto.AttachedDatabaseConfiguration{ + // Name: to.Ptr("kustoCluster2/attachedDatabaseConfigurationsTest"), + // Type: to.Ptr("Microsoft.Kusto/Clusters/AttachedDatabaseConfigurations"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/kustoCluster2/AttachedDatabaseConfigurations/attachedDatabaseConfigurationsTest"), + // Location: to.Ptr("westus"), + // Properties: &armkusto.AttachedDatabaseConfigurationProperties{ + // ClusterResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/kustoCluster2"), + // DatabaseName: to.Ptr("*"), + // DatabaseNamePrefix: to.Ptr("prefix"), + // DefaultPrincipalsModificationKind: to.Ptr(armkusto.DefaultPrincipalsModificationKindUnion), + // ProvisioningState: to.Ptr(armkusto.ProvisioningStateSucceeded), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-07-07/examples/KustoAttachedDatabaseConfigurationsCreateOrUpdate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoAttachedDatabaseConfigurationsCreateOrUpdate.json func ExampleAttachedDatabaseConfigurationsClient_BeginCreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -123,11 +190,39 @@ func ExampleAttachedDatabaseConfigurationsClient_BeginCreateOrUpdate() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.AttachedDatabaseConfiguration = armkusto.AttachedDatabaseConfiguration{ + // Name: to.Ptr("kustoCluster2/attachedDatabaseConfigurationsTest"), + // Type: to.Ptr("Microsoft.Kusto/Clusters/AttachedDatabaseConfigurations"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/kustoCluster2/attachedDatabaseConfigurations/attachedDatabaseConfigurationsTest"), + // Location: to.Ptr("westus"), + // Properties: &armkusto.AttachedDatabaseConfigurationProperties{ + // ClusterResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/kustoCluster2"), + // DatabaseName: to.Ptr("db1"), + // DatabaseNameOverride: to.Ptr("overridekustodatabase"), + // DefaultPrincipalsModificationKind: to.Ptr(armkusto.DefaultPrincipalsModificationKindUnion), + // ProvisioningState: to.Ptr(armkusto.ProvisioningStateSucceeded), + // TableLevelSharingProperties: &armkusto.TableLevelSharingProperties{ + // ExternalTablesToExclude: []*string{ + // to.Ptr("ExternalTable2")}, + // ExternalTablesToInclude: []*string{ + // to.Ptr("ExternalTable1")}, + // MaterializedViewsToExclude: []*string{ + // to.Ptr("MaterializedViewTable2")}, + // MaterializedViewsToInclude: []*string{ + // to.Ptr("MaterializedViewTable1")}, + // TablesToExclude: []*string{ + // to.Ptr("Table2")}, + // TablesToInclude: []*string{ + // to.Ptr("Table1")}, + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-07-07/examples/KustoAttachedDatabaseConfigurationsDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoAttachedDatabaseConfigurationsDelete.json func ExampleAttachedDatabaseConfigurationsClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/kusto/armkusto/autorest.md b/sdk/resourcemanager/kusto/armkusto/autorest.md index 58e093ec42f1..4fec000c8541 100644 --- a/sdk/resourcemanager/kusto/armkusto/autorest.md +++ b/sdk/resourcemanager/kusto/armkusto/autorest.md @@ -5,8 +5,8 @@ ``` yaml azure-arm: true require: -- https://github.com/Azure/azure-rest-api-specs/blob/f70b7953f5d54889cc1825b37ad938342ca93a2e/specification/azure-kusto/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/f70b7953f5d54889cc1825b37ad938342ca93a2e/specification/azure-kusto/resource-manager/readme.go.md +- https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/readme.md +- https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 1.1.0 +module-version: 1.2.0 ``` diff --git a/sdk/resourcemanager/kusto/armkusto/clusterprincipalassignments_client.go b/sdk/resourcemanager/kusto/armkusto/clusterprincipalassignments_client.go index 00ad4729bf3f..b10644b53819 100644 --- a/sdk/resourcemanager/kusto/armkusto/clusterprincipalassignments_client.go +++ b/sdk/resourcemanager/kusto/armkusto/clusterprincipalassignments_client.go @@ -32,10 +32,10 @@ type ClusterPrincipalAssignmentsClient struct { } // NewClusterPrincipalAssignmentsClient creates a new instance of ClusterPrincipalAssignmentsClient with the specified values. -// subscriptionID - Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID -// forms part of the URI for every service call. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID +// forms part of the URI for every service call. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewClusterPrincipalAssignmentsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ClusterPrincipalAssignmentsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -58,12 +58,13 @@ func NewClusterPrincipalAssignmentsClient(subscriptionID string, credential azco // CheckNameAvailability - Checks that the principal assignment name is valid and is not already in use. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 -// resourceGroupName - The name of the resource group containing the Kusto cluster. -// clusterName - The name of the Kusto cluster. -// principalAssignmentName - The name of the principal assignment. -// options - ClusterPrincipalAssignmentsClientCheckNameAvailabilityOptions contains the optional parameters for the ClusterPrincipalAssignmentsClient.CheckNameAvailability -// method. +// +// Generated from API version 2022-12-29 +// - resourceGroupName - The name of the resource group containing the Kusto cluster. +// - clusterName - The name of the Kusto cluster. +// - principalAssignmentName - The name of the principal assignment. +// - options - ClusterPrincipalAssignmentsClientCheckNameAvailabilityOptions contains the optional parameters for the ClusterPrincipalAssignmentsClient.CheckNameAvailability +// method. func (client *ClusterPrincipalAssignmentsClient) CheckNameAvailability(ctx context.Context, resourceGroupName string, clusterName string, principalAssignmentName ClusterPrincipalAssignmentCheckNameRequest, options *ClusterPrincipalAssignmentsClientCheckNameAvailabilityOptions) (ClusterPrincipalAssignmentsClientCheckNameAvailabilityResponse, error) { req, err := client.checkNameAvailabilityCreateRequest(ctx, resourceGroupName, clusterName, principalAssignmentName, options) if err != nil { @@ -99,7 +100,7 @@ func (client *ClusterPrincipalAssignmentsClient) checkNameAvailabilityCreateRequ return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-07") + reqQP.Set("api-version", "2022-12-29") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, principalAssignmentName) @@ -116,13 +117,14 @@ func (client *ClusterPrincipalAssignmentsClient) checkNameAvailabilityHandleResp // BeginCreateOrUpdate - Create a Kusto cluster principalAssignment. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 -// resourceGroupName - The name of the resource group containing the Kusto cluster. -// clusterName - The name of the Kusto cluster. -// principalAssignmentName - The name of the Kusto principalAssignment. -// parameters - The Kusto cluster principalAssignment's parameters supplied for the operation. -// options - ClusterPrincipalAssignmentsClientBeginCreateOrUpdateOptions contains the optional parameters for the ClusterPrincipalAssignmentsClient.BeginCreateOrUpdate -// method. +// +// Generated from API version 2022-12-29 +// - resourceGroupName - The name of the resource group containing the Kusto cluster. +// - clusterName - The name of the Kusto cluster. +// - principalAssignmentName - The name of the Kusto principalAssignment. +// - parameters - The Kusto cluster principalAssignment's parameters supplied for the operation. +// - options - ClusterPrincipalAssignmentsClientBeginCreateOrUpdateOptions contains the optional parameters for the ClusterPrincipalAssignmentsClient.BeginCreateOrUpdate +// method. func (client *ClusterPrincipalAssignmentsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, clusterName string, principalAssignmentName string, parameters ClusterPrincipalAssignment, options *ClusterPrincipalAssignmentsClientBeginCreateOrUpdateOptions) (*runtime.Poller[ClusterPrincipalAssignmentsClientCreateOrUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createOrUpdate(ctx, resourceGroupName, clusterName, principalAssignmentName, parameters, options) @@ -137,7 +139,8 @@ func (client *ClusterPrincipalAssignmentsClient) BeginCreateOrUpdate(ctx context // CreateOrUpdate - Create a Kusto cluster principalAssignment. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 +// +// Generated from API version 2022-12-29 func (client *ClusterPrincipalAssignmentsClient) createOrUpdate(ctx context.Context, resourceGroupName string, clusterName string, principalAssignmentName string, parameters ClusterPrincipalAssignment, options *ClusterPrincipalAssignmentsClientBeginCreateOrUpdateOptions) (*http.Response, error) { req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, clusterName, principalAssignmentName, parameters, options) if err != nil { @@ -177,7 +180,7 @@ func (client *ClusterPrincipalAssignmentsClient) createOrUpdateCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-07") + reqQP.Set("api-version", "2022-12-29") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, parameters) @@ -185,12 +188,13 @@ func (client *ClusterPrincipalAssignmentsClient) createOrUpdateCreateRequest(ctx // BeginDelete - Deletes a Kusto cluster principalAssignment. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 -// resourceGroupName - The name of the resource group containing the Kusto cluster. -// clusterName - The name of the Kusto cluster. -// principalAssignmentName - The name of the Kusto principalAssignment. -// options - ClusterPrincipalAssignmentsClientBeginDeleteOptions contains the optional parameters for the ClusterPrincipalAssignmentsClient.BeginDelete -// method. +// +// Generated from API version 2022-12-29 +// - resourceGroupName - The name of the resource group containing the Kusto cluster. +// - clusterName - The name of the Kusto cluster. +// - principalAssignmentName - The name of the Kusto principalAssignment. +// - options - ClusterPrincipalAssignmentsClientBeginDeleteOptions contains the optional parameters for the ClusterPrincipalAssignmentsClient.BeginDelete +// method. func (client *ClusterPrincipalAssignmentsClient) BeginDelete(ctx context.Context, resourceGroupName string, clusterName string, principalAssignmentName string, options *ClusterPrincipalAssignmentsClientBeginDeleteOptions) (*runtime.Poller[ClusterPrincipalAssignmentsClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, clusterName, principalAssignmentName, options) @@ -205,7 +209,8 @@ func (client *ClusterPrincipalAssignmentsClient) BeginDelete(ctx context.Context // Delete - Deletes a Kusto cluster principalAssignment. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 +// +// Generated from API version 2022-12-29 func (client *ClusterPrincipalAssignmentsClient) deleteOperation(ctx context.Context, resourceGroupName string, clusterName string, principalAssignmentName string, options *ClusterPrincipalAssignmentsClientBeginDeleteOptions) (*http.Response, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, clusterName, principalAssignmentName, options) if err != nil { @@ -245,7 +250,7 @@ func (client *ClusterPrincipalAssignmentsClient) deleteCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-07") + reqQP.Set("api-version", "2022-12-29") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -253,12 +258,13 @@ func (client *ClusterPrincipalAssignmentsClient) deleteCreateRequest(ctx context // Get - Gets a Kusto cluster principalAssignment. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 -// resourceGroupName - The name of the resource group containing the Kusto cluster. -// clusterName - The name of the Kusto cluster. -// principalAssignmentName - The name of the Kusto principalAssignment. -// options - ClusterPrincipalAssignmentsClientGetOptions contains the optional parameters for the ClusterPrincipalAssignmentsClient.Get -// method. +// +// Generated from API version 2022-12-29 +// - resourceGroupName - The name of the resource group containing the Kusto cluster. +// - clusterName - The name of the Kusto cluster. +// - principalAssignmentName - The name of the Kusto principalAssignment. +// - options - ClusterPrincipalAssignmentsClientGetOptions contains the optional parameters for the ClusterPrincipalAssignmentsClient.Get +// method. func (client *ClusterPrincipalAssignmentsClient) Get(ctx context.Context, resourceGroupName string, clusterName string, principalAssignmentName string, options *ClusterPrincipalAssignmentsClientGetOptions) (ClusterPrincipalAssignmentsClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, clusterName, principalAssignmentName, options) if err != nil { @@ -298,7 +304,7 @@ func (client *ClusterPrincipalAssignmentsClient) getCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-07") + reqQP.Set("api-version", "2022-12-29") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -314,11 +320,12 @@ func (client *ClusterPrincipalAssignmentsClient) getHandleResponse(resp *http.Re } // NewListPager - Lists all Kusto cluster principalAssignments. -// Generated from API version 2022-07-07 -// resourceGroupName - The name of the resource group containing the Kusto cluster. -// clusterName - The name of the Kusto cluster. -// options - ClusterPrincipalAssignmentsClientListOptions contains the optional parameters for the ClusterPrincipalAssignmentsClient.List -// method. +// +// Generated from API version 2022-12-29 +// - resourceGroupName - The name of the resource group containing the Kusto cluster. +// - clusterName - The name of the Kusto cluster. +// - options - ClusterPrincipalAssignmentsClientListOptions contains the optional parameters for the ClusterPrincipalAssignmentsClient.NewListPager +// method. func (client *ClusterPrincipalAssignmentsClient) NewListPager(resourceGroupName string, clusterName string, options *ClusterPrincipalAssignmentsClientListOptions) *runtime.Pager[ClusterPrincipalAssignmentsClientListResponse] { return runtime.NewPager(runtime.PagingHandler[ClusterPrincipalAssignmentsClientListResponse]{ More: func(page ClusterPrincipalAssignmentsClientListResponse) bool { @@ -361,7 +368,7 @@ func (client *ClusterPrincipalAssignmentsClient) listCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-07") + reqQP.Set("api-version", "2022-12-29") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/kusto/armkusto/clusterprincipalassignments_client_example_test.go b/sdk/resourcemanager/kusto/armkusto/clusterprincipalassignments_client_example_test.go index ab792e3e0cce..5ed9e13783f2 100644 --- a/sdk/resourcemanager/kusto/armkusto/clusterprincipalassignments_client_example_test.go +++ b/sdk/resourcemanager/kusto/armkusto/clusterprincipalassignments_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armkusto_test @@ -17,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/kusto/armkusto" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-07-07/examples/KustoClusterPrincipalAssignmentsCheckNameAvailability.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoClusterPrincipalAssignmentsCheckNameAvailability.json func ExampleClusterPrincipalAssignmentsClient_CheckNameAvailability() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -35,11 +36,17 @@ func ExampleClusterPrincipalAssignmentsClient_CheckNameAvailability() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.CheckNameResult = armkusto.CheckNameResult{ + // Name: to.Ptr("kustoprincipal1"), + // Message: to.Ptr("Name 'kustoprincipal1' is already taken. Please specify a different name"), + // NameAvailable: to.Ptr(false), + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-07-07/examples/KustoClusterPrincipalAssignmentsGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoClusterPrincipalAssignmentsGet.json func ExampleClusterPrincipalAssignmentsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -54,11 +61,27 @@ func ExampleClusterPrincipalAssignmentsClient_Get() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.ClusterPrincipalAssignment = armkusto.ClusterPrincipalAssignment{ + // Name: to.Ptr("kustoCluster/kustoprincipal1"), + // Type: to.Ptr("Microsoft.Kusto/Clusters/PrincipalAssignments"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/kustoCluster/PrincipalAssignments/kustoprincipal1"), + // Properties: &armkusto.ClusterPrincipalProperties{ + // AADObjectID: to.Ptr("98765432-1234-1234-1234-123456789123"), + // PrincipalID: to.Ptr("87654321-1234-1234-1234-123456789123"), + // PrincipalName: to.Ptr("TestApp"), + // PrincipalType: to.Ptr(armkusto.PrincipalTypeApp), + // ProvisioningState: to.Ptr(armkusto.ProvisioningStateSucceeded), + // Role: to.Ptr(armkusto.ClusterPrincipalRoleAllDatabasesAdmin), + // TenantID: to.Ptr("12345678-1234-1234-1234-123456789123"), + // TenantName: to.Ptr("tenantName"), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-07-07/examples/KustoClusterPrincipalAssignmentsCreateOrUpdate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoClusterPrincipalAssignmentsCreateOrUpdate.json func ExampleClusterPrincipalAssignmentsClient_BeginCreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -84,11 +107,27 @@ func ExampleClusterPrincipalAssignmentsClient_BeginCreateOrUpdate() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.ClusterPrincipalAssignment = armkusto.ClusterPrincipalAssignment{ + // Name: to.Ptr("kustoCluster/kustoprincipal1"), + // Type: to.Ptr("Microsoft.Kusto/Clusters/PrincipalAssignments"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/kustoCluster/PrincipalAssignments/kustoprincipal1"), + // Properties: &armkusto.ClusterPrincipalProperties{ + // AADObjectID: to.Ptr("98765432-1234-1234-1234-123456789123"), + // PrincipalID: to.Ptr("87654321-1234-1234-1234-123456789123"), + // PrincipalName: to.Ptr("TestApp"), + // PrincipalType: to.Ptr(armkusto.PrincipalTypeApp), + // ProvisioningState: to.Ptr(armkusto.ProvisioningStateSucceeded), + // Role: to.Ptr(armkusto.ClusterPrincipalRoleAllDatabasesAdmin), + // TenantID: to.Ptr("12345678-1234-1234-1234-123456789123"), + // TenantName: to.Ptr("tenantName"), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-07-07/examples/KustoClusterPrincipalAssignmentsDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoClusterPrincipalAssignmentsDelete.json func ExampleClusterPrincipalAssignmentsClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -109,7 +148,7 @@ func ExampleClusterPrincipalAssignmentsClient_BeginDelete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-07-07/examples/KustoClusterPrincipalAssignmentsList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoClusterPrincipalAssignmentsList.json func ExampleClusterPrincipalAssignmentsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -122,13 +161,47 @@ func ExampleClusterPrincipalAssignmentsClient_NewListPager() { } pager := client.NewListPager("kustorptest", "kustoCluster", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.ClusterPrincipalAssignmentListResult = armkusto.ClusterPrincipalAssignmentListResult{ + // Value: []*armkusto.ClusterPrincipalAssignment{ + // { + // Name: to.Ptr("kustoCluster/Kustodatabase8/kustoprincipal1"), + // Type: to.Ptr("Microsoft.Kusto/Clusters/Databases/PrincipalAssignments"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/kustoCluster/Databases/Kustodatabase8/PrincipalAssignments/kustoprincipal1"), + // Properties: &armkusto.ClusterPrincipalProperties{ + // AADObjectID: to.Ptr("98765432-1234-1234-1234-123456789123"), + // PrincipalID: to.Ptr("87654321-1234-1234-1234-123456789123"), + // PrincipalName: to.Ptr("TestApp"), + // PrincipalType: to.Ptr(armkusto.PrincipalTypeApp), + // ProvisioningState: to.Ptr(armkusto.ProvisioningStateSucceeded), + // Role: to.Ptr(armkusto.ClusterPrincipalRoleAllDatabasesAdmin), + // TenantID: to.Ptr("12345678-1234-1234-1234-123456789123"), + // TenantName: to.Ptr("tenantName"), + // }, + // }, + // { + // Name: to.Ptr("kustoCluster/Kustodatabase8/kustoprincipal2"), + // Type: to.Ptr("Microsoft.Kusto/Clusters/Databases/PrincipalAssignments"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/kustoCluster/Databases/Kustodatabase8/PrincipalAssignments/kustoprincipal1"), + // Properties: &armkusto.ClusterPrincipalProperties{ + // AADObjectID: to.Ptr("98765432-1234-1234-1234-123456789123"), + // PrincipalID: to.Ptr("11112222-1234-1234-1234-123456789123"), + // PrincipalName: to.Ptr("TestApp"), + // PrincipalType: to.Ptr(armkusto.PrincipalTypeApp), + // ProvisioningState: to.Ptr(armkusto.ProvisioningStateSucceeded), + // Role: to.Ptr(armkusto.ClusterPrincipalRoleAllDatabasesViewer), + // TenantID: to.Ptr("12345678-1234-1234-1234-123456789123"), + // TenantName: to.Ptr("tenantName"), + // }, + // }}, + // } } } diff --git a/sdk/resourcemanager/kusto/armkusto/clusters_client.go b/sdk/resourcemanager/kusto/armkusto/clusters_client.go index e3ee7c907aad..7c6a2c98a435 100644 --- a/sdk/resourcemanager/kusto/armkusto/clusters_client.go +++ b/sdk/resourcemanager/kusto/armkusto/clusters_client.go @@ -32,10 +32,10 @@ type ClustersClient struct { } // NewClustersClient creates a new instance of ClustersClient with the specified values. -// subscriptionID - Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID -// forms part of the URI for every service call. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID +// forms part of the URI for every service call. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewClustersClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ClustersClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -58,12 +58,13 @@ func NewClustersClient(subscriptionID string, credential azcore.TokenCredential, // BeginAddLanguageExtensions - Add a list of language extensions that can run within KQL queries. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 -// resourceGroupName - The name of the resource group containing the Kusto cluster. -// clusterName - The name of the Kusto cluster. -// languageExtensionsToAdd - The language extensions to add. -// options - ClustersClientBeginAddLanguageExtensionsOptions contains the optional parameters for the ClustersClient.BeginAddLanguageExtensions -// method. +// +// Generated from API version 2022-12-29 +// - resourceGroupName - The name of the resource group containing the Kusto cluster. +// - clusterName - The name of the Kusto cluster. +// - languageExtensionsToAdd - The language extensions to add. +// - options - ClustersClientBeginAddLanguageExtensionsOptions contains the optional parameters for the ClustersClient.BeginAddLanguageExtensions +// method. func (client *ClustersClient) BeginAddLanguageExtensions(ctx context.Context, resourceGroupName string, clusterName string, languageExtensionsToAdd LanguageExtensionsList, options *ClustersClientBeginAddLanguageExtensionsOptions) (*runtime.Poller[ClustersClientAddLanguageExtensionsResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.addLanguageExtensions(ctx, resourceGroupName, clusterName, languageExtensionsToAdd, options) @@ -78,7 +79,8 @@ func (client *ClustersClient) BeginAddLanguageExtensions(ctx context.Context, re // AddLanguageExtensions - Add a list of language extensions that can run within KQL queries. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 +// +// Generated from API version 2022-12-29 func (client *ClustersClient) addLanguageExtensions(ctx context.Context, resourceGroupName string, clusterName string, languageExtensionsToAdd LanguageExtensionsList, options *ClustersClientBeginAddLanguageExtensionsOptions) (*http.Response, error) { req, err := client.addLanguageExtensionsCreateRequest(ctx, resourceGroupName, clusterName, languageExtensionsToAdd, options) if err != nil { @@ -114,7 +116,7 @@ func (client *ClustersClient) addLanguageExtensionsCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-07") + reqQP.Set("api-version", "2022-12-29") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, languageExtensionsToAdd) @@ -122,11 +124,12 @@ func (client *ClustersClient) addLanguageExtensionsCreateRequest(ctx context.Con // CheckNameAvailability - Checks that the cluster name is valid and is not already in use. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 -// location - Azure location (region) name. -// clusterName - The name of the cluster. -// options - ClustersClientCheckNameAvailabilityOptions contains the optional parameters for the ClustersClient.CheckNameAvailability -// method. +// +// Generated from API version 2022-12-29 +// - location - Azure location (region) name. +// - clusterName - The name of the cluster. +// - options - ClustersClientCheckNameAvailabilityOptions contains the optional parameters for the ClustersClient.CheckNameAvailability +// method. func (client *ClustersClient) CheckNameAvailability(ctx context.Context, location string, clusterName ClusterCheckNameRequest, options *ClustersClientCheckNameAvailabilityOptions) (ClustersClientCheckNameAvailabilityResponse, error) { req, err := client.checkNameAvailabilityCreateRequest(ctx, location, clusterName, options) if err != nil { @@ -158,7 +161,7 @@ func (client *ClustersClient) checkNameAvailabilityCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-07") + reqQP.Set("api-version", "2022-12-29") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, clusterName) @@ -175,12 +178,13 @@ func (client *ClustersClient) checkNameAvailabilityHandleResponse(resp *http.Res // BeginCreateOrUpdate - Create or update a Kusto cluster. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 -// resourceGroupName - The name of the resource group containing the Kusto cluster. -// clusterName - The name of the Kusto cluster. -// parameters - The Kusto cluster parameters supplied to the CreateOrUpdate operation. -// options - ClustersClientBeginCreateOrUpdateOptions contains the optional parameters for the ClustersClient.BeginCreateOrUpdate -// method. +// +// Generated from API version 2022-12-29 +// - resourceGroupName - The name of the resource group containing the Kusto cluster. +// - clusterName - The name of the Kusto cluster. +// - parameters - The Kusto cluster parameters supplied to the CreateOrUpdate operation. +// - options - ClustersClientBeginCreateOrUpdateOptions contains the optional parameters for the ClustersClient.BeginCreateOrUpdate +// method. func (client *ClustersClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, clusterName string, parameters Cluster, options *ClustersClientBeginCreateOrUpdateOptions) (*runtime.Poller[ClustersClientCreateOrUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createOrUpdate(ctx, resourceGroupName, clusterName, parameters, options) @@ -195,7 +199,8 @@ func (client *ClustersClient) BeginCreateOrUpdate(ctx context.Context, resourceG // CreateOrUpdate - Create or update a Kusto cluster. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 +// +// Generated from API version 2022-12-29 func (client *ClustersClient) createOrUpdate(ctx context.Context, resourceGroupName string, clusterName string, parameters Cluster, options *ClustersClientBeginCreateOrUpdateOptions) (*http.Response, error) { req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, clusterName, parameters, options) if err != nil { @@ -231,7 +236,7 @@ func (client *ClustersClient) createOrUpdateCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-07") + reqQP.Set("api-version", "2022-12-29") req.Raw().URL.RawQuery = reqQP.Encode() if options != nil && options.IfMatch != nil { req.Raw().Header["If-Match"] = []string{*options.IfMatch} @@ -245,10 +250,11 @@ func (client *ClustersClient) createOrUpdateCreateRequest(ctx context.Context, r // BeginDelete - Deletes a Kusto cluster. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 -// resourceGroupName - The name of the resource group containing the Kusto cluster. -// clusterName - The name of the Kusto cluster. -// options - ClustersClientBeginDeleteOptions contains the optional parameters for the ClustersClient.BeginDelete method. +// +// Generated from API version 2022-12-29 +// - resourceGroupName - The name of the resource group containing the Kusto cluster. +// - clusterName - The name of the Kusto cluster. +// - options - ClustersClientBeginDeleteOptions contains the optional parameters for the ClustersClient.BeginDelete method. func (client *ClustersClient) BeginDelete(ctx context.Context, resourceGroupName string, clusterName string, options *ClustersClientBeginDeleteOptions) (*runtime.Poller[ClustersClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, clusterName, options) @@ -263,7 +269,8 @@ func (client *ClustersClient) BeginDelete(ctx context.Context, resourceGroupName // Delete - Deletes a Kusto cluster. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 +// +// Generated from API version 2022-12-29 func (client *ClustersClient) deleteOperation(ctx context.Context, resourceGroupName string, clusterName string, options *ClustersClientBeginDeleteOptions) (*http.Response, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, clusterName, options) if err != nil { @@ -299,7 +306,7 @@ func (client *ClustersClient) deleteCreateRequest(ctx context.Context, resourceG return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-07") + reqQP.Set("api-version", "2022-12-29") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -307,12 +314,13 @@ func (client *ClustersClient) deleteCreateRequest(ctx context.Context, resourceG // BeginDetachFollowerDatabases - Detaches all followers of a database owned by this cluster. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 -// resourceGroupName - The name of the resource group containing the Kusto cluster. -// clusterName - The name of the Kusto cluster. -// followerDatabaseToRemove - The follower databases properties to remove. -// options - ClustersClientBeginDetachFollowerDatabasesOptions contains the optional parameters for the ClustersClient.BeginDetachFollowerDatabases -// method. +// +// Generated from API version 2022-12-29 +// - resourceGroupName - The name of the resource group containing the Kusto cluster. +// - clusterName - The name of the Kusto cluster. +// - followerDatabaseToRemove - The follower databases properties to remove. +// - options - ClustersClientBeginDetachFollowerDatabasesOptions contains the optional parameters for the ClustersClient.BeginDetachFollowerDatabases +// method. func (client *ClustersClient) BeginDetachFollowerDatabases(ctx context.Context, resourceGroupName string, clusterName string, followerDatabaseToRemove FollowerDatabaseDefinition, options *ClustersClientBeginDetachFollowerDatabasesOptions) (*runtime.Poller[ClustersClientDetachFollowerDatabasesResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.detachFollowerDatabases(ctx, resourceGroupName, clusterName, followerDatabaseToRemove, options) @@ -327,7 +335,8 @@ func (client *ClustersClient) BeginDetachFollowerDatabases(ctx context.Context, // DetachFollowerDatabases - Detaches all followers of a database owned by this cluster. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 +// +// Generated from API version 2022-12-29 func (client *ClustersClient) detachFollowerDatabases(ctx context.Context, resourceGroupName string, clusterName string, followerDatabaseToRemove FollowerDatabaseDefinition, options *ClustersClientBeginDetachFollowerDatabasesOptions) (*http.Response, error) { req, err := client.detachFollowerDatabasesCreateRequest(ctx, resourceGroupName, clusterName, followerDatabaseToRemove, options) if err != nil { @@ -363,7 +372,7 @@ func (client *ClustersClient) detachFollowerDatabasesCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-07") + reqQP.Set("api-version", "2022-12-29") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, followerDatabaseToRemove) @@ -372,11 +381,12 @@ func (client *ClustersClient) detachFollowerDatabasesCreateRequest(ctx context.C // BeginDiagnoseVirtualNetwork - Diagnoses network connectivity status for external resources on which the service is dependent // on. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 -// resourceGroupName - The name of the resource group containing the Kusto cluster. -// clusterName - The name of the Kusto cluster. -// options - ClustersClientBeginDiagnoseVirtualNetworkOptions contains the optional parameters for the ClustersClient.BeginDiagnoseVirtualNetwork -// method. +// +// Generated from API version 2022-12-29 +// - resourceGroupName - The name of the resource group containing the Kusto cluster. +// - clusterName - The name of the Kusto cluster. +// - options - ClustersClientBeginDiagnoseVirtualNetworkOptions contains the optional parameters for the ClustersClient.BeginDiagnoseVirtualNetwork +// method. func (client *ClustersClient) BeginDiagnoseVirtualNetwork(ctx context.Context, resourceGroupName string, clusterName string, options *ClustersClientBeginDiagnoseVirtualNetworkOptions) (*runtime.Poller[ClustersClientDiagnoseVirtualNetworkResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.diagnoseVirtualNetwork(ctx, resourceGroupName, clusterName, options) @@ -394,7 +404,8 @@ func (client *ClustersClient) BeginDiagnoseVirtualNetwork(ctx context.Context, r // DiagnoseVirtualNetwork - Diagnoses network connectivity status for external resources on which the service is dependent // on. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 +// +// Generated from API version 2022-12-29 func (client *ClustersClient) diagnoseVirtualNetwork(ctx context.Context, resourceGroupName string, clusterName string, options *ClustersClientBeginDiagnoseVirtualNetworkOptions) (*http.Response, error) { req, err := client.diagnoseVirtualNetworkCreateRequest(ctx, resourceGroupName, clusterName, options) if err != nil { @@ -430,7 +441,7 @@ func (client *ClustersClient) diagnoseVirtualNetworkCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-07") + reqQP.Set("api-version", "2022-12-29") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -438,10 +449,11 @@ func (client *ClustersClient) diagnoseVirtualNetworkCreateRequest(ctx context.Co // Get - Gets a Kusto cluster. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 -// resourceGroupName - The name of the resource group containing the Kusto cluster. -// clusterName - The name of the Kusto cluster. -// options - ClustersClientGetOptions contains the optional parameters for the ClustersClient.Get method. +// +// Generated from API version 2022-12-29 +// - resourceGroupName - The name of the resource group containing the Kusto cluster. +// - clusterName - The name of the Kusto cluster. +// - options - ClustersClientGetOptions contains the optional parameters for the ClustersClient.Get method. func (client *ClustersClient) Get(ctx context.Context, resourceGroupName string, clusterName string, options *ClustersClientGetOptions) (ClustersClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, clusterName, options) if err != nil { @@ -477,7 +489,7 @@ func (client *ClustersClient) getCreateRequest(ctx context.Context, resourceGrou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-07") + reqQP.Set("api-version", "2022-12-29") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -493,8 +505,9 @@ func (client *ClustersClient) getHandleResponse(resp *http.Response) (ClustersCl } // NewListPager - Lists all Kusto clusters within a subscription. -// Generated from API version 2022-07-07 -// options - ClustersClientListOptions contains the optional parameters for the ClustersClient.List method. +// +// Generated from API version 2022-12-29 +// - options - ClustersClientListOptions contains the optional parameters for the ClustersClient.NewListPager method. func (client *ClustersClient) NewListPager(options *ClustersClientListOptions) *runtime.Pager[ClustersClientListResponse] { return runtime.NewPager(runtime.PagingHandler[ClustersClientListResponse]{ More: func(page ClustersClientListResponse) bool { @@ -529,7 +542,7 @@ func (client *ClustersClient) listCreateRequest(ctx context.Context, options *Cl return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-07") + reqQP.Set("api-version", "2022-12-29") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -545,10 +558,11 @@ func (client *ClustersClient) listHandleResponse(resp *http.Response) (ClustersC } // NewListByResourceGroupPager - Lists all Kusto clusters within a resource group. -// Generated from API version 2022-07-07 -// resourceGroupName - The name of the resource group containing the Kusto cluster. -// options - ClustersClientListByResourceGroupOptions contains the optional parameters for the ClustersClient.ListByResourceGroup -// method. +// +// Generated from API version 2022-12-29 +// - resourceGroupName - The name of the resource group containing the Kusto cluster. +// - options - ClustersClientListByResourceGroupOptions contains the optional parameters for the ClustersClient.NewListByResourceGroupPager +// method. func (client *ClustersClient) NewListByResourceGroupPager(resourceGroupName string, options *ClustersClientListByResourceGroupOptions) *runtime.Pager[ClustersClientListByResourceGroupResponse] { return runtime.NewPager(runtime.PagingHandler[ClustersClientListByResourceGroupResponse]{ More: func(page ClustersClientListByResourceGroupResponse) bool { @@ -587,7 +601,7 @@ func (client *ClustersClient) listByResourceGroupCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-07") + reqQP.Set("api-version", "2022-12-29") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -604,11 +618,12 @@ func (client *ClustersClient) listByResourceGroupHandleResponse(resp *http.Respo // NewListFollowerDatabasesPager - Returns a list of databases that are owned by this cluster and were followed by another // cluster. -// Generated from API version 2022-07-07 -// resourceGroupName - The name of the resource group containing the Kusto cluster. -// clusterName - The name of the Kusto cluster. -// options - ClustersClientListFollowerDatabasesOptions contains the optional parameters for the ClustersClient.ListFollowerDatabases -// method. +// +// Generated from API version 2022-12-29 +// - resourceGroupName - The name of the resource group containing the Kusto cluster. +// - clusterName - The name of the Kusto cluster. +// - options - ClustersClientListFollowerDatabasesOptions contains the optional parameters for the ClustersClient.NewListFollowerDatabasesPager +// method. func (client *ClustersClient) NewListFollowerDatabasesPager(resourceGroupName string, clusterName string, options *ClustersClientListFollowerDatabasesOptions) *runtime.Pager[ClustersClientListFollowerDatabasesResponse] { return runtime.NewPager(runtime.PagingHandler[ClustersClientListFollowerDatabasesResponse]{ More: func(page ClustersClientListFollowerDatabasesResponse) bool { @@ -651,7 +666,7 @@ func (client *ClustersClient) listFollowerDatabasesCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-07") + reqQP.Set("api-version", "2022-12-29") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -667,11 +682,12 @@ func (client *ClustersClient) listFollowerDatabasesHandleResponse(resp *http.Res } // NewListLanguageExtensionsPager - Returns a list of language extensions that can run within KQL queries. -// Generated from API version 2022-07-07 -// resourceGroupName - The name of the resource group containing the Kusto cluster. -// clusterName - The name of the Kusto cluster. -// options - ClustersClientListLanguageExtensionsOptions contains the optional parameters for the ClustersClient.ListLanguageExtensions -// method. +// +// Generated from API version 2022-12-29 +// - resourceGroupName - The name of the resource group containing the Kusto cluster. +// - clusterName - The name of the Kusto cluster. +// - options - ClustersClientListLanguageExtensionsOptions contains the optional parameters for the ClustersClient.NewListLanguageExtensionsPager +// method. func (client *ClustersClient) NewListLanguageExtensionsPager(resourceGroupName string, clusterName string, options *ClustersClientListLanguageExtensionsOptions) *runtime.Pager[ClustersClientListLanguageExtensionsResponse] { return runtime.NewPager(runtime.PagingHandler[ClustersClientListLanguageExtensionsResponse]{ More: func(page ClustersClientListLanguageExtensionsResponse) bool { @@ -714,7 +730,7 @@ func (client *ClustersClient) listLanguageExtensionsCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-07") + reqQP.Set("api-version", "2022-12-29") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -730,11 +746,12 @@ func (client *ClustersClient) listLanguageExtensionsHandleResponse(resp *http.Re } // NewListOutboundNetworkDependenciesEndpointsPager - Gets the network endpoints of all outbound dependencies of a Kusto cluster -// Generated from API version 2022-07-07 -// resourceGroupName - The name of the resource group containing the Kusto cluster. -// clusterName - The name of the Kusto cluster. -// options - ClustersClientListOutboundNetworkDependenciesEndpointsOptions contains the optional parameters for the ClustersClient.ListOutboundNetworkDependenciesEndpoints -// method. +// +// Generated from API version 2022-12-29 +// - resourceGroupName - The name of the resource group containing the Kusto cluster. +// - clusterName - The name of the Kusto cluster. +// - options - ClustersClientListOutboundNetworkDependenciesEndpointsOptions contains the optional parameters for the ClustersClient.NewListOutboundNetworkDependenciesEndpointsPager +// method. func (client *ClustersClient) NewListOutboundNetworkDependenciesEndpointsPager(resourceGroupName string, clusterName string, options *ClustersClientListOutboundNetworkDependenciesEndpointsOptions) *runtime.Pager[ClustersClientListOutboundNetworkDependenciesEndpointsResponse] { return runtime.NewPager(runtime.PagingHandler[ClustersClientListOutboundNetworkDependenciesEndpointsResponse]{ More: func(page ClustersClientListOutboundNetworkDependenciesEndpointsResponse) bool { @@ -783,7 +800,7 @@ func (client *ClustersClient) listOutboundNetworkDependenciesEndpointsCreateRequ return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-07") + reqQP.Set("api-version", "2022-12-29") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -799,8 +816,9 @@ func (client *ClustersClient) listOutboundNetworkDependenciesEndpointsHandleResp } // NewListSKUsPager - Lists eligible SKUs for Kusto resource provider. -// Generated from API version 2022-07-07 -// options - ClustersClientListSKUsOptions contains the optional parameters for the ClustersClient.ListSKUs method. +// +// Generated from API version 2022-12-29 +// - options - ClustersClientListSKUsOptions contains the optional parameters for the ClustersClient.NewListSKUsPager method. func (client *ClustersClient) NewListSKUsPager(options *ClustersClientListSKUsOptions) *runtime.Pager[ClustersClientListSKUsResponse] { return runtime.NewPager(runtime.PagingHandler[ClustersClientListSKUsResponse]{ More: func(page ClustersClientListSKUsResponse) bool { @@ -835,7 +853,7 @@ func (client *ClustersClient) listSKUsCreateRequest(ctx context.Context, options return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-07") + reqQP.Set("api-version", "2022-12-29") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -851,11 +869,12 @@ func (client *ClustersClient) listSKUsHandleResponse(resp *http.Response) (Clust } // NewListSKUsByResourcePager - Returns the SKUs available for the provided resource. -// Generated from API version 2022-07-07 -// resourceGroupName - The name of the resource group containing the Kusto cluster. -// clusterName - The name of the Kusto cluster. -// options - ClustersClientListSKUsByResourceOptions contains the optional parameters for the ClustersClient.ListSKUsByResource -// method. +// +// Generated from API version 2022-12-29 +// - resourceGroupName - The name of the resource group containing the Kusto cluster. +// - clusterName - The name of the Kusto cluster. +// - options - ClustersClientListSKUsByResourceOptions contains the optional parameters for the ClustersClient.NewListSKUsByResourcePager +// method. func (client *ClustersClient) NewListSKUsByResourcePager(resourceGroupName string, clusterName string, options *ClustersClientListSKUsByResourceOptions) *runtime.Pager[ClustersClientListSKUsByResourceResponse] { return runtime.NewPager(runtime.PagingHandler[ClustersClientListSKUsByResourceResponse]{ More: func(page ClustersClientListSKUsByResourceResponse) bool { @@ -898,7 +917,7 @@ func (client *ClustersClient) listSKUsByResourceCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-07") + reqQP.Set("api-version", "2022-12-29") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -915,12 +934,13 @@ func (client *ClustersClient) listSKUsByResourceHandleResponse(resp *http.Respon // BeginRemoveLanguageExtensions - Remove a list of language extensions that can run within KQL queries. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 -// resourceGroupName - The name of the resource group containing the Kusto cluster. -// clusterName - The name of the Kusto cluster. -// languageExtensionsToRemove - The language extensions to remove. -// options - ClustersClientBeginRemoveLanguageExtensionsOptions contains the optional parameters for the ClustersClient.BeginRemoveLanguageExtensions -// method. +// +// Generated from API version 2022-12-29 +// - resourceGroupName - The name of the resource group containing the Kusto cluster. +// - clusterName - The name of the Kusto cluster. +// - languageExtensionsToRemove - The language extensions to remove. +// - options - ClustersClientBeginRemoveLanguageExtensionsOptions contains the optional parameters for the ClustersClient.BeginRemoveLanguageExtensions +// method. func (client *ClustersClient) BeginRemoveLanguageExtensions(ctx context.Context, resourceGroupName string, clusterName string, languageExtensionsToRemove LanguageExtensionsList, options *ClustersClientBeginRemoveLanguageExtensionsOptions) (*runtime.Poller[ClustersClientRemoveLanguageExtensionsResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.removeLanguageExtensions(ctx, resourceGroupName, clusterName, languageExtensionsToRemove, options) @@ -935,7 +955,8 @@ func (client *ClustersClient) BeginRemoveLanguageExtensions(ctx context.Context, // RemoveLanguageExtensions - Remove a list of language extensions that can run within KQL queries. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 +// +// Generated from API version 2022-12-29 func (client *ClustersClient) removeLanguageExtensions(ctx context.Context, resourceGroupName string, clusterName string, languageExtensionsToRemove LanguageExtensionsList, options *ClustersClientBeginRemoveLanguageExtensionsOptions) (*http.Response, error) { req, err := client.removeLanguageExtensionsCreateRequest(ctx, resourceGroupName, clusterName, languageExtensionsToRemove, options) if err != nil { @@ -971,7 +992,7 @@ func (client *ClustersClient) removeLanguageExtensionsCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-07") + reqQP.Set("api-version", "2022-12-29") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, languageExtensionsToRemove) @@ -979,10 +1000,11 @@ func (client *ClustersClient) removeLanguageExtensionsCreateRequest(ctx context. // BeginStart - Starts a Kusto cluster. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 -// resourceGroupName - The name of the resource group containing the Kusto cluster. -// clusterName - The name of the Kusto cluster. -// options - ClustersClientBeginStartOptions contains the optional parameters for the ClustersClient.BeginStart method. +// +// Generated from API version 2022-12-29 +// - resourceGroupName - The name of the resource group containing the Kusto cluster. +// - clusterName - The name of the Kusto cluster. +// - options - ClustersClientBeginStartOptions contains the optional parameters for the ClustersClient.BeginStart method. func (client *ClustersClient) BeginStart(ctx context.Context, resourceGroupName string, clusterName string, options *ClustersClientBeginStartOptions) (*runtime.Poller[ClustersClientStartResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.start(ctx, resourceGroupName, clusterName, options) @@ -997,7 +1019,8 @@ func (client *ClustersClient) BeginStart(ctx context.Context, resourceGroupName // Start - Starts a Kusto cluster. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 +// +// Generated from API version 2022-12-29 func (client *ClustersClient) start(ctx context.Context, resourceGroupName string, clusterName string, options *ClustersClientBeginStartOptions) (*http.Response, error) { req, err := client.startCreateRequest(ctx, resourceGroupName, clusterName, options) if err != nil { @@ -1033,7 +1056,7 @@ func (client *ClustersClient) startCreateRequest(ctx context.Context, resourceGr return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-07") + reqQP.Set("api-version", "2022-12-29") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1041,10 +1064,11 @@ func (client *ClustersClient) startCreateRequest(ctx context.Context, resourceGr // BeginStop - Stops a Kusto cluster. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 -// resourceGroupName - The name of the resource group containing the Kusto cluster. -// clusterName - The name of the Kusto cluster. -// options - ClustersClientBeginStopOptions contains the optional parameters for the ClustersClient.BeginStop method. +// +// Generated from API version 2022-12-29 +// - resourceGroupName - The name of the resource group containing the Kusto cluster. +// - clusterName - The name of the Kusto cluster. +// - options - ClustersClientBeginStopOptions contains the optional parameters for the ClustersClient.BeginStop method. func (client *ClustersClient) BeginStop(ctx context.Context, resourceGroupName string, clusterName string, options *ClustersClientBeginStopOptions) (*runtime.Poller[ClustersClientStopResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.stop(ctx, resourceGroupName, clusterName, options) @@ -1059,7 +1083,8 @@ func (client *ClustersClient) BeginStop(ctx context.Context, resourceGroupName s // Stop - Stops a Kusto cluster. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 +// +// Generated from API version 2022-12-29 func (client *ClustersClient) stop(ctx context.Context, resourceGroupName string, clusterName string, options *ClustersClientBeginStopOptions) (*http.Response, error) { req, err := client.stopCreateRequest(ctx, resourceGroupName, clusterName, options) if err != nil { @@ -1095,7 +1120,7 @@ func (client *ClustersClient) stopCreateRequest(ctx context.Context, resourceGro return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-07") + reqQP.Set("api-version", "2022-12-29") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1103,11 +1128,12 @@ func (client *ClustersClient) stopCreateRequest(ctx context.Context, resourceGro // BeginUpdate - Update a Kusto cluster. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 -// resourceGroupName - The name of the resource group containing the Kusto cluster. -// clusterName - The name of the Kusto cluster. -// parameters - The Kusto cluster parameters supplied to the Update operation. -// options - ClustersClientBeginUpdateOptions contains the optional parameters for the ClustersClient.BeginUpdate method. +// +// Generated from API version 2022-12-29 +// - resourceGroupName - The name of the resource group containing the Kusto cluster. +// - clusterName - The name of the Kusto cluster. +// - parameters - The Kusto cluster parameters supplied to the Update operation. +// - options - ClustersClientBeginUpdateOptions contains the optional parameters for the ClustersClient.BeginUpdate method. func (client *ClustersClient) BeginUpdate(ctx context.Context, resourceGroupName string, clusterName string, parameters ClusterUpdate, options *ClustersClientBeginUpdateOptions) (*runtime.Poller[ClustersClientUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.update(ctx, resourceGroupName, clusterName, parameters, options) @@ -1122,7 +1148,8 @@ func (client *ClustersClient) BeginUpdate(ctx context.Context, resourceGroupName // Update - Update a Kusto cluster. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 +// +// Generated from API version 2022-12-29 func (client *ClustersClient) update(ctx context.Context, resourceGroupName string, clusterName string, parameters ClusterUpdate, options *ClustersClientBeginUpdateOptions) (*http.Response, error) { req, err := client.updateCreateRequest(ctx, resourceGroupName, clusterName, parameters, options) if err != nil { @@ -1158,7 +1185,7 @@ func (client *ClustersClient) updateCreateRequest(ctx context.Context, resourceG return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-07") + reqQP.Set("api-version", "2022-12-29") req.Raw().URL.RawQuery = reqQP.Encode() if options != nil && options.IfMatch != nil { req.Raw().Header["If-Match"] = []string{*options.IfMatch} diff --git a/sdk/resourcemanager/kusto/armkusto/clusters_client_example_test.go b/sdk/resourcemanager/kusto/armkusto/clusters_client_example_test.go index b93747636454..aadb061c1d63 100644 --- a/sdk/resourcemanager/kusto/armkusto/clusters_client_example_test.go +++ b/sdk/resourcemanager/kusto/armkusto/clusters_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armkusto_test @@ -17,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/kusto/armkusto" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-07-07/examples/KustoClustersGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoClustersGet.json func ExampleClustersClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -32,11 +33,77 @@ func ExampleClustersClient_Get() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.Cluster = armkusto.Cluster{ + // Name: to.Ptr("kustoCluster"), + // Type: to.Ptr("Microsoft.Kusto/Clusters"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/kustoCluster"), + // Location: to.Ptr("westus"), + // Etag: to.Ptr("abcd123"), + // Identity: &armkusto.Identity{ + // Type: to.Ptr(armkusto.IdentityTypeSystemAssigned), + // PrincipalID: to.Ptr("faabad1f-4876-463c-af9d-6ba2d2d2394c"), + // TenantID: to.Ptr("b932977f-6277-4ab7-a2cd-5bd21f07aaf4"), + // UserAssignedIdentities: map[string]*armkusto.ComponentsSgqdofSchemasIdentityPropertiesUserassignedidentitiesAdditionalproperties{ + // }, + // }, + // Properties: &armkusto.ClusterProperties{ + // AllowedFqdnList: []*string{ + // to.Ptr("my-stroage.blob.core.windows.net")}, + // AllowedIPRangeList: []*string{ + // }, + // EnableAutoStop: to.Ptr(true), + // EnableDiskEncryption: to.Ptr(false), + // EnablePurge: to.Ptr(false), + // EnableStreamingIngest: to.Ptr(true), + // EngineType: to.Ptr(armkusto.EngineTypeV3), + // KeyVaultProperties: &armkusto.KeyVaultProperties{ + // KeyName: to.Ptr("keyName"), + // KeyVaultURI: to.Ptr("https://dummy.keyvault.com"), + // KeyVersion: to.Ptr("keyVersion"), + // }, + // PrivateEndpointConnections: []*armkusto.PrivateEndpointConnection{ + // { + // Name: to.Ptr("privateEndpointTest"), + // Type: to.Ptr("Microsoft.Kusto/Clusters/PrivateEndpointConnections"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/kustoCluster/privateEndpointConnections/privateEndpointTest"), + // Properties: &armkusto.PrivateEndpointConnectionProperties{ + // GroupID: to.Ptr("cluster"), + // PrivateEndpoint: &armkusto.PrivateEndpointProperty{ + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/rg1Network/providers/Microsoft.Network/privateEndpoints/privateEndpointName"), + // }, + // PrivateLinkServiceConnectionState: &armkusto.PrivateLinkServiceConnectionStateProperty{ + // Description: to.Ptr("Auto-approved"), + // ActionsRequired: to.Ptr("None"), + // Status: to.Ptr("Approved"), + // }, + // ProvisioningState: to.Ptr("Succeeded"), + // }, + // }}, + // ProvisioningState: to.Ptr(armkusto.ProvisioningStateSucceeded), + // PublicIPType: to.Ptr(armkusto.PublicIPTypeIPv4), + // PublicNetworkAccess: to.Ptr(armkusto.PublicNetworkAccessEnabled), + // RestrictOutboundNetworkAccess: to.Ptr(armkusto.ClusterNetworkAccessFlagEnabled), + // }, + // SKU: &armkusto.AzureSKU{ + // Name: to.Ptr(armkusto.AzureSKUNameStandardL16AsV3), + // Capacity: to.Ptr[int32](2), + // Tier: to.Ptr(armkusto.AzureSKUTierStandard), + // }, + // SystemData: &armkusto.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-06-29T15:06:54.2757906Z"); return t}()), + // CreatedBy: to.Ptr("user@microsoft.com"), + // CreatedByType: to.Ptr(armkusto.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-06-29T15:06:54.2757906Z"); return t}()), + // LastModifiedBy: to.Ptr("user@microsoft.com"), + // LastModifiedByType: to.Ptr(armkusto.CreatedByTypeUser), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-07-07/examples/KustoClustersCreateOrUpdate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoClustersCreateOrUpdate.json func ExampleClustersClient_BeginCreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -63,7 +130,7 @@ func ExampleClustersClient_BeginCreateOrUpdate() { PublicNetworkAccess: to.Ptr(armkusto.PublicNetworkAccessEnabled), }, SKU: &armkusto.AzureSKU{ - Name: to.Ptr(armkusto.AzureSKUNameStandardL8S), + Name: to.Ptr(armkusto.AzureSKUNameStandardL16AsV3), Capacity: to.Ptr[int32](2), Tier: to.Ptr(armkusto.AzureSKUTierStandard), }, @@ -77,11 +144,50 @@ func ExampleClustersClient_BeginCreateOrUpdate() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.Cluster = armkusto.Cluster{ + // Name: to.Ptr("kustoCluster"), + // Type: to.Ptr("Microsoft.Kusto/Clusters"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/kustoCluster"), + // Location: to.Ptr("westus"), + // Etag: to.Ptr("abcd"), + // Identity: &armkusto.Identity{ + // Type: to.Ptr(armkusto.IdentityTypeSystemAssigned), + // PrincipalID: to.Ptr("faabad1f-4876-463c-af9d-6ba2d2d2394c"), + // TenantID: to.Ptr("b932977f-6277-4ab7-a2cd-5bd21f07aaf4"), + // UserAssignedIdentities: map[string]*armkusto.ComponentsSgqdofSchemasIdentityPropertiesUserassignedidentitiesAdditionalproperties{ + // }, + // }, + // Properties: &armkusto.ClusterProperties{ + // AllowedIPRangeList: []*string{ + // to.Ptr("0.0.0.0/0")}, + // EnableAutoStop: to.Ptr(true), + // EnableDiskEncryption: to.Ptr(false), + // EnableDoubleEncryption: to.Ptr(false), + // EnablePurge: to.Ptr(true), + // EnableStreamingIngest: to.Ptr(true), + // EngineType: to.Ptr(armkusto.EngineTypeV3), + // KeyVaultProperties: &armkusto.KeyVaultProperties{ + // KeyName: to.Ptr("keyName"), + // KeyVaultURI: to.Ptr("https://dummy.keyvault.com"), + // KeyVersion: to.Ptr("keyVersion"), + // }, + // ProvisioningState: to.Ptr(armkusto.ProvisioningStateSucceeded), + // PublicIPType: to.Ptr(armkusto.PublicIPTypeDualStack), + // PublicNetworkAccess: to.Ptr(armkusto.PublicNetworkAccessEnabled), + // RestrictOutboundNetworkAccess: to.Ptr(armkusto.ClusterNetworkAccessFlagDisabled), + // }, + // SKU: &armkusto.AzureSKU{ + // Name: to.Ptr(armkusto.AzureSKUNameStandardL16AsV3), + // Capacity: to.Ptr[int32](2), + // Tier: to.Ptr(armkusto.AzureSKUTierStandard), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-07-07/examples/KustoClustersUpdate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoClustersUpdate.json func ExampleClustersClient_BeginUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -102,11 +208,46 @@ func ExampleClustersClient_BeginUpdate() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.Cluster = armkusto.Cluster{ + // Name: to.Ptr("kustoCluster2"), + // Type: to.Ptr("Microsoft.Kusto/Clusters"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/kustoCluster2"), + // Location: to.Ptr("westus"), + // Etag: to.Ptr("abcd123"), + // Identity: &armkusto.Identity{ + // Type: to.Ptr(armkusto.IdentityTypeSystemAssigned), + // PrincipalID: to.Ptr("faabad1f-4876-463c-af9d-6ba2d2d2394c"), + // TenantID: to.Ptr("b932977f-6277-4ab7-a2cd-5bd21f07aaf4"), + // UserAssignedIdentities: map[string]*armkusto.ComponentsSgqdofSchemasIdentityPropertiesUserassignedidentitiesAdditionalproperties{ + // }, + // }, + // Properties: &armkusto.ClusterProperties{ + // EnableAutoStop: to.Ptr(true), + // EnableDiskEncryption: to.Ptr(false), + // EnablePurge: to.Ptr(true), + // EnableStreamingIngest: to.Ptr(true), + // EngineType: to.Ptr(armkusto.EngineTypeV3), + // KeyVaultProperties: &armkusto.KeyVaultProperties{ + // KeyName: to.Ptr("keyName"), + // KeyVaultURI: to.Ptr("https://dummy.keyvault.com"), + // KeyVersion: to.Ptr("keyVersion"), + // }, + // ProvisioningState: to.Ptr(armkusto.ProvisioningStateSucceeded), + // PublicIPType: to.Ptr(armkusto.PublicIPTypeIPv4), + // RestrictOutboundNetworkAccess: to.Ptr(armkusto.ClusterNetworkAccessFlagDisabled), + // }, + // SKU: &armkusto.AzureSKU{ + // Name: to.Ptr(armkusto.AzureSKUNameStandardL16AsV3), + // Capacity: to.Ptr[int32](2), + // Tier: to.Ptr(armkusto.AzureSKUTierStandard), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-07-07/examples/KustoClustersDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoClustersDelete.json func ExampleClustersClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -127,7 +268,7 @@ func ExampleClustersClient_BeginDelete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-07-07/examples/KustoClustersStop.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoClustersStop.json func ExampleClustersClient_BeginStop() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -148,7 +289,7 @@ func ExampleClustersClient_BeginStop() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-07-07/examples/KustoClustersStart.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoClustersStart.json func ExampleClustersClient_BeginStart() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -169,7 +310,7 @@ func ExampleClustersClient_BeginStart() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-07-07/examples/KustoClusterListFollowerDatabases.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoClusterListFollowerDatabases.json func ExampleClustersClient_NewListFollowerDatabasesPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -182,18 +323,48 @@ func ExampleClustersClient_NewListFollowerDatabasesPager() { } pager := client.NewListFollowerDatabasesPager("kustorptest", "kustoCluster", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.FollowerDatabaseListResult = armkusto.FollowerDatabaseListResult{ + // Value: []*armkusto.FollowerDatabaseDefinition{ + // { + // AttachedDatabaseConfigurationName: to.Ptr("attachedDbConfiguration"), + // ClusterResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/clusters/follower1"), + // DatabaseName: to.Ptr("*"), + // DatabaseShareOrigin: to.Ptr(armkusto.DatabaseShareOriginDataShare), + // }, + // { + // AttachedDatabaseConfigurationName: to.Ptr("attachedDbConfiguration2"), + // ClusterResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/clusters/follower4"), + // DatabaseName: to.Ptr("db1"), + // DatabaseShareOrigin: to.Ptr(armkusto.DatabaseShareOriginDirect), + // TableLevelSharingProperties: &armkusto.TableLevelSharingProperties{ + // ExternalTablesToExclude: []*string{ + // to.Ptr("ExternalTable2")}, + // ExternalTablesToInclude: []*string{ + // to.Ptr("ExternalTable1")}, + // MaterializedViewsToExclude: []*string{ + // to.Ptr("MaterializedViewTable2")}, + // MaterializedViewsToInclude: []*string{ + // to.Ptr("MaterializedViewTable1")}, + // TablesToExclude: []*string{ + // to.Ptr("Table2")}, + // TablesToInclude: []*string{ + // to.Ptr("Table1")}, + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-07-07/examples/KustoClusterDetachFollowerDatabases.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoClusterDetachFollowerDatabases.json func ExampleClustersClient_BeginDetachFollowerDatabases() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -217,7 +388,7 @@ func ExampleClustersClient_BeginDetachFollowerDatabases() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-07-07/examples/KustoClustersDiagnoseVirtualNetwork.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoClustersDiagnoseVirtualNetwork.json func ExampleClustersClient_BeginDiagnoseVirtualNetwork() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -236,11 +407,16 @@ func ExampleClustersClient_BeginDiagnoseVirtualNetwork() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.DiagnoseVirtualNetworkResult = armkusto.DiagnoseVirtualNetworkResult{ + // Findings: []*string{ + // to.Ptr("Outbound dependency 'Storage:443' might not be satisfied (Outbound)")}, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-07-07/examples/KustoClustersListByResourceGroup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoClustersListByResourceGroup.json func ExampleClustersClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -253,18 +429,73 @@ func ExampleClustersClient_NewListByResourceGroupPager() { } pager := client.NewListByResourceGroupPager("kustorptest", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.ClusterListResult = armkusto.ClusterListResult{ + // Value: []*armkusto.Cluster{ + // { + // Name: to.Ptr("KustoClusterRPTest4"), + // Type: to.Ptr("Microsoft.Kusto/Clusters"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4"), + // Location: to.Ptr("westus"), + // Etag: to.Ptr("abcd123"), + // Properties: &armkusto.ClusterProperties{ + // AllowedFqdnList: []*string{ + // to.Ptr("my-stroage.blob.core.windows.net")}, + // AllowedIPRangeList: []*string{ + // }, + // EnableDiskEncryption: to.Ptr(false), + // EnableStreamingIngest: to.Ptr(true), + // EngineType: to.Ptr(armkusto.EngineTypeV2), + // KeyVaultProperties: &armkusto.KeyVaultProperties{ + // KeyName: to.Ptr("keyName"), + // KeyVaultURI: to.Ptr("https://dummy.keyvault.com"), + // KeyVersion: to.Ptr("keyVersion"), + // }, + // ProvisioningState: to.Ptr(armkusto.ProvisioningStateSucceeded), + // PublicNetworkAccess: to.Ptr(armkusto.PublicNetworkAccessEnabled), + // RestrictOutboundNetworkAccess: to.Ptr(armkusto.ClusterNetworkAccessFlagDisabled), + // }, + // SKU: &armkusto.AzureSKU{ + // Name: to.Ptr(armkusto.AzureSKUNameStandardL16AsV3), + // Capacity: to.Ptr[int32](2), + // Tier: to.Ptr(armkusto.AzureSKUTierStandard), + // }, + // }, + // { + // Name: to.Ptr("KustoClusterRPTest3"), + // Type: to.Ptr("Microsoft.Kusto/Clusters"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest3"), + // Location: to.Ptr("westus"), + // Etag: to.Ptr("abcd123"), + // Properties: &armkusto.ClusterProperties{ + // AllowedIPRangeList: []*string{ + // to.Ptr("0.0.0.0/0")}, + // EnableDiskEncryption: to.Ptr(true), + // EnableStreamingIngest: to.Ptr(true), + // EngineType: to.Ptr(armkusto.EngineTypeV3), + // ProvisioningState: to.Ptr(armkusto.ProvisioningStateSucceeded), + // PublicNetworkAccess: to.Ptr(armkusto.PublicNetworkAccessEnabled), + // RestrictOutboundNetworkAccess: to.Ptr(armkusto.ClusterNetworkAccessFlagDisabled), + // }, + // SKU: &armkusto.AzureSKU{ + // Name: to.Ptr(armkusto.AzureSKUNameStandardL16AsV3), + // Capacity: to.Ptr[int32](2), + // Tier: to.Ptr(armkusto.AzureSKUTierStandard), + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-07-07/examples/KustoClustersList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoClustersList.json func ExampleClustersClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -277,18 +508,96 @@ func ExampleClustersClient_NewListPager() { } pager := client.NewListPager(nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.ClusterListResult = armkusto.ClusterListResult{ + // Value: []*armkusto.Cluster{ + // { + // Name: to.Ptr("kustoCluster"), + // Type: to.Ptr("Microsoft.Kusto/Clusters"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/kustoCluster"), + // Location: to.Ptr("westus"), + // Etag: to.Ptr("abcd123"), + // Properties: &armkusto.ClusterProperties{ + // AllowedFqdnList: []*string{ + // to.Ptr("my-stroage.blob.core.windows.net")}, + // AllowedIPRangeList: []*string{ + // }, + // EnableAutoStop: to.Ptr(true), + // EnableDiskEncryption: to.Ptr(false), + // EnableStreamingIngest: to.Ptr(true), + // EngineType: to.Ptr(armkusto.EngineTypeV3), + // KeyVaultProperties: &armkusto.KeyVaultProperties{ + // KeyName: to.Ptr("keyName"), + // KeyVaultURI: to.Ptr("https://dummy.keyvault.com"), + // KeyVersion: to.Ptr("keyVersion"), + // }, + // PrivateEndpointConnections: []*armkusto.PrivateEndpointConnection{ + // { + // Name: to.Ptr("privateEndpointTest"), + // Type: to.Ptr("Microsoft.Kusto/Clusters/PrivateEndpointConnections"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/kustoCluster/privateEndpointConnections/privateEndpointTest"), + // Properties: &armkusto.PrivateEndpointConnectionProperties{ + // GroupID: to.Ptr("cluster"), + // PrivateEndpoint: &armkusto.PrivateEndpointProperty{ + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/rg1Network/providers/Microsoft.Network/privateEndpoints/privateEndpointName"), + // }, + // PrivateLinkServiceConnectionState: &armkusto.PrivateLinkServiceConnectionStateProperty{ + // Description: to.Ptr("Auto-approved"), + // ActionsRequired: to.Ptr("None"), + // Status: to.Ptr("Approved"), + // }, + // ProvisioningState: to.Ptr("Succeeded"), + // }, + // }}, + // ProvisioningState: to.Ptr(armkusto.ProvisioningStateSucceeded), + // PublicIPType: to.Ptr(armkusto.PublicIPTypeDualStack), + // PublicNetworkAccess: to.Ptr(armkusto.PublicNetworkAccessEnabled), + // RestrictOutboundNetworkAccess: to.Ptr(armkusto.ClusterNetworkAccessFlagEnabled), + // }, + // SKU: &armkusto.AzureSKU{ + // Name: to.Ptr(armkusto.AzureSKUNameStandardL16AsV3), + // Capacity: to.Ptr[int32](2), + // Tier: to.Ptr(armkusto.AzureSKUTierStandard), + // }, + // }, + // { + // Name: to.Ptr("KustoClusterRPTest3"), + // Type: to.Ptr("Microsoft.Kusto/Clusters"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest3"), + // Location: to.Ptr("westus"), + // Etag: to.Ptr("abcd123"), + // Properties: &armkusto.ClusterProperties{ + // AllowedIPRangeList: []*string{ + // to.Ptr("0.0.0.0/0")}, + // EnableDiskEncryption: to.Ptr(true), + // EnableStreamingIngest: to.Ptr(true), + // EngineType: to.Ptr(armkusto.EngineTypeV2), + // PrivateEndpointConnections: []*armkusto.PrivateEndpointConnection{ + // }, + // ProvisioningState: to.Ptr(armkusto.ProvisioningStateSucceeded), + // PublicIPType: to.Ptr(armkusto.PublicIPTypeIPv4), + // PublicNetworkAccess: to.Ptr(armkusto.PublicNetworkAccessEnabled), + // RestrictOutboundNetworkAccess: to.Ptr(armkusto.ClusterNetworkAccessFlagDisabled), + // }, + // SKU: &armkusto.AzureSKU{ + // Name: to.Ptr(armkusto.AzureSKUNameStandardL16AsV3), + // Capacity: to.Ptr[int32](2), + // Tier: to.Ptr(armkusto.AzureSKUTierStandard), + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-07-07/examples/KustoClustersListSkus.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoClustersListSkus.json func ExampleClustersClient_NewListSKUsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -301,18 +610,102 @@ func ExampleClustersClient_NewListSKUsPager() { } pager := client.NewListSKUsPager(nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.SKUDescriptionList = armkusto.SKUDescriptionList{ + // Value: []*armkusto.SKUDescription{ + // { + // Name: to.Ptr("Standard_L8s_v3"), + // LocationInfo: []*armkusto.SKULocationInfoItem{ + // { + // Location: to.Ptr("West US"), + // Zones: []*string{ + // to.Ptr("1"), + // to.Ptr("2"), + // to.Ptr("3")}, + // }, + // { + // Location: to.Ptr("West Europe"), + // Zones: []*string{ + // }, + // }}, + // Locations: []*string{ + // to.Ptr("West US"), + // to.Ptr("West Europe")}, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("Standard_L16s_v3"), + // LocationInfo: []*armkusto.SKULocationInfoItem{ + // { + // Location: to.Ptr("West US"), + // Zones: []*string{ + // to.Ptr("1"), + // to.Ptr("2"), + // to.Ptr("3")}, + // }, + // { + // Location: to.Ptr("West Europe"), + // Zones: []*string{ + // }, + // }}, + // Locations: []*string{ + // to.Ptr("West US"), + // to.Ptr("West Europe")}, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("Standard_L8as_v3"), + // LocationInfo: []*armkusto.SKULocationInfoItem{ + // { + // Location: to.Ptr("West US"), + // Zones: []*string{ + // to.Ptr("1"), + // to.Ptr("2"), + // to.Ptr("3")}, + // }, + // { + // Location: to.Ptr("West Europe"), + // Zones: []*string{ + // }, + // }}, + // Locations: []*string{ + // to.Ptr("West US"), + // to.Ptr("West Europe")}, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("Standard_L16as_v3"), + // LocationInfo: []*armkusto.SKULocationInfoItem{ + // { + // Location: to.Ptr("West US"), + // Zones: []*string{ + // to.Ptr("1"), + // to.Ptr("2"), + // to.Ptr("3")}, + // }, + // { + // Location: to.Ptr("West Europe"), + // Zones: []*string{ + // }, + // }}, + // Locations: []*string{ + // to.Ptr("West US"), + // to.Ptr("West Europe")}, + // Tier: to.Ptr("Standard"), + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-07-07/examples/KustoClustersCheckNameAvailability.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoClustersCheckNameAvailability.json func ExampleClustersClient_CheckNameAvailability() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -330,11 +723,17 @@ func ExampleClustersClient_CheckNameAvailability() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.CheckNameResult = armkusto.CheckNameResult{ + // Name: to.Ptr("kuskusprod"), + // Message: to.Ptr("Name 'kuskusprod' is already taken. Please specify a different name"), + // NameAvailable: to.Ptr(false), + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-07-07/examples/KustoClustersListResourceSkus.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoClustersListResourceSkus.json func ExampleClustersClient_NewListSKUsByResourcePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -347,18 +746,74 @@ func ExampleClustersClient_NewListSKUsByResourcePager() { } pager := client.NewListSKUsByResourcePager("kustorptest", "kustoCluster", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.ListResourceSKUsResult = armkusto.ListResourceSKUsResult{ + // Value: []*armkusto.AzureResourceSKU{ + // { + // Capacity: &armkusto.AzureCapacity{ + // Default: to.Ptr[int32](2), + // Maximum: to.Ptr[int32](100), + // Minimum: to.Ptr[int32](2), + // ScaleType: to.Ptr(armkusto.AzureScaleTypeAutomatic), + // }, + // ResourceType: to.Ptr("clusters"), + // SKU: &armkusto.AzureSKU{ + // Name: to.Ptr(armkusto.AzureSKUNameStandardL8SV3), + // Tier: to.Ptr(armkusto.AzureSKUTierStandard), + // }, + // }, + // { + // Capacity: &armkusto.AzureCapacity{ + // Default: to.Ptr[int32](2), + // Maximum: to.Ptr[int32](100), + // Minimum: to.Ptr[int32](2), + // ScaleType: to.Ptr(armkusto.AzureScaleTypeAutomatic), + // }, + // ResourceType: to.Ptr("clusters"), + // SKU: &armkusto.AzureSKU{ + // Name: to.Ptr(armkusto.AzureSKUNameStandardL8AsV3), + // Tier: to.Ptr(armkusto.AzureSKUTierStandard), + // }, + // }, + // { + // Capacity: &armkusto.AzureCapacity{ + // Default: to.Ptr[int32](2), + // Maximum: to.Ptr[int32](100), + // Minimum: to.Ptr[int32](2), + // ScaleType: to.Ptr(armkusto.AzureScaleTypeAutomatic), + // }, + // ResourceType: to.Ptr("clusters"), + // SKU: &armkusto.AzureSKU{ + // Name: to.Ptr(armkusto.AzureSKUNameStandardL16AsV3), + // Tier: to.Ptr(armkusto.AzureSKUTierStandard), + // }, + // }, + // { + // Capacity: &armkusto.AzureCapacity{ + // Default: to.Ptr[int32](2), + // Maximum: to.Ptr[int32](100), + // Minimum: to.Ptr[int32](2), + // ScaleType: to.Ptr(armkusto.AzureScaleTypeAutomatic), + // }, + // ResourceType: to.Ptr("clusters"), + // SKU: &armkusto.AzureSKU{ + // Name: to.Ptr(armkusto.AzureSKUNameStandardL16SV3), + // Tier: to.Ptr(armkusto.AzureSKUTierStandard), + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-07-07/examples/KustoOutboundNetworkDependenciesList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoOutboundNetworkDependenciesList.json func ExampleClustersClient_NewListOutboundNetworkDependenciesEndpointsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -371,18 +826,174 @@ func ExampleClustersClient_NewListOutboundNetworkDependenciesEndpointsPager() { } pager := client.NewListOutboundNetworkDependenciesEndpointsPager("kustorptest", "kustoCluster", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.OutboundNetworkDependenciesEndpointListResult = armkusto.OutboundNetworkDependenciesEndpointListResult{ + // Value: []*armkusto.OutboundNetworkDependenciesEndpoint{ + // { + // Name: to.Ptr("kustoCluster/AzureActiveDirectory"), + // Type: to.Ptr("Microsoft.Kusto/Clusters/OutboundNetworkDependenciesEndpoints"), + // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/kustoCluster/OutboundNetworkDependenciesEndpoints/AzureActiveDirectory"), + // Properties: &armkusto.OutboundNetworkDependenciesEndpointProperties{ + // Category: to.Ptr("Azure Active Directory"), + // Endpoints: []*armkusto.EndpointDependency{ + // { + // DomainName: to.Ptr("login.microsoftonline.com"), + // EndpointDetails: []*armkusto.EndpointDetail{ + // { + // Port: to.Ptr[int32](443), + // }}, + // }, + // { + // DomainName: to.Ptr("graph.windows.net"), + // EndpointDetails: []*armkusto.EndpointDetail{ + // { + // Port: to.Ptr[int32](443), + // }}, + // }, + // { + // DomainName: to.Ptr("graph.microsoft.com"), + // EndpointDetails: []*armkusto.EndpointDetail{ + // { + // Port: to.Ptr[int32](443), + // }}, + // }, + // { + // DomainName: to.Ptr("graph.microsoft-ppe.com"), + // EndpointDetails: []*armkusto.EndpointDetail{ + // { + // Port: to.Ptr[int32](443), + // }}, + // }}, + // ProvisioningState: to.Ptr(armkusto.ProvisioningStateSucceeded), + // }, + // }, + // { + // Name: to.Ptr("kustoCluster/AzureMonitor"), + // Type: to.Ptr("Microsoft.Kusto/Clusters/OutboundNetworkDependenciesEndpoints"), + // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/kustoCluster/OutboundNetworkDependenciesEndpoints/AzureMonitor"), + // Properties: &armkusto.OutboundNetworkDependenciesEndpointProperties{ + // Category: to.Ptr("Azure Monitor"), + // Endpoints: []*armkusto.EndpointDependency{ + // { + // DomainName: to.Ptr("prod.warmpath.msftcloudes.com"), + // EndpointDetails: []*armkusto.EndpointDetail{ + // { + // Port: to.Ptr[int32](443), + // }}, + // }, + // { + // DomainName: to.Ptr("gcs.prod.monitoring.core.windows.net"), + // EndpointDetails: []*armkusto.EndpointDetail{ + // { + // Port: to.Ptr[int32](443), + // }}, + // }, + // { + // DomainName: to.Ptr("production.diagnostics.monitoring.core.windows.net"), + // EndpointDetails: []*armkusto.EndpointDetail{ + // { + // Port: to.Ptr[int32](443), + // }}, + // }, + // { + // DomainName: to.Ptr("shoebox2.metrics.nsatc.net:443"), + // EndpointDetails: []*armkusto.EndpointDetail{ + // { + // Port: to.Ptr[int32](443), + // }}, + // }}, + // ProvisioningState: to.Ptr(armkusto.ProvisioningStateSucceeded), + // }, + // }, + // { + // Name: to.Ptr("kustoCluster/CertificateAuthority"), + // Type: to.Ptr("Microsoft.Kusto/Clusters/OutboundNetworkDependenciesEndpoints"), + // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/kustoCluster/OutboundNetworkDependenciesEndpoints/CertificateAuthority"), + // Properties: &armkusto.OutboundNetworkDependenciesEndpointProperties{ + // Category: to.Ptr("Certificate Authority"), + // Endpoints: []*armkusto.EndpointDependency{ + // { + // DomainName: to.Ptr("ocsp.msocsp.com"), + // EndpointDetails: []*armkusto.EndpointDetail{ + // { + // Port: to.Ptr[int32](80), + // }}, + // }, + // { + // DomainName: to.Ptr("ocsp.digicert.com"), + // EndpointDetails: []*armkusto.EndpointDetail{ + // { + // Port: to.Ptr[int32](80), + // }}, + // }, + // { + // DomainName: to.Ptr("crl3.digicert.com"), + // EndpointDetails: []*armkusto.EndpointDetail{ + // { + // Port: to.Ptr[int32](80), + // }}, + // }, + // { + // DomainName: to.Ptr("crl.microsoft.com"), + // EndpointDetails: []*armkusto.EndpointDetail{ + // { + // Port: to.Ptr[int32](80), + // }}, + // }, + // { + // DomainName: to.Ptr("www.microsoft.com"), + // EndpointDetails: []*armkusto.EndpointDetail{ + // { + // Port: to.Ptr[int32](80), + // }}, + // }}, + // ProvisioningState: to.Ptr(armkusto.ProvisioningStateSucceeded), + // }, + // }, + // { + // Name: to.Ptr("kustoCluster/AzureStorage"), + // Type: to.Ptr("Microsoft.Kusto/Clusters/OutboundNetworkDependenciesEndpoints"), + // ID: to.Ptr("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/kustoCluster/OutboundNetworkDependenciesEndpoints/AzureStorage"), + // Properties: &armkusto.OutboundNetworkDependenciesEndpointProperties{ + // Category: to.Ptr("Azure Storage"), + // Endpoints: []*armkusto.EndpointDependency{ + // { + // DomainName: to.Ptr("clusterinternalsa.blob.core.windows.net"), + // EndpointDetails: []*armkusto.EndpointDetail{ + // { + // Port: to.Ptr[int32](443), + // }}, + // }, + // { + // DomainName: to.Ptr("clusterinternalsa.queue.core.windows.net"), + // EndpointDetails: []*armkusto.EndpointDetail{ + // { + // Port: to.Ptr[int32](443), + // }}, + // }, + // { + // DomainName: to.Ptr("clusterinternalsa.table.core.windows.net"), + // EndpointDetails: []*armkusto.EndpointDetail{ + // { + // Port: to.Ptr[int32](443), + // }}, + // }}, + // ProvisioningState: to.Ptr(armkusto.ProvisioningStateSucceeded), + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-07-07/examples/KustoClusterListLanguageExtensions.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoClusterListLanguageExtensions.json func ExampleClustersClient_NewListLanguageExtensionsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -395,18 +1006,28 @@ func ExampleClustersClient_NewListLanguageExtensionsPager() { } pager := client.NewListLanguageExtensionsPager("kustorptest", "kustoCluster", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.LanguageExtensionsList = armkusto.LanguageExtensionsList{ + // Value: []*armkusto.LanguageExtension{ + // { + // LanguageExtensionName: to.Ptr(armkusto.LanguageExtensionNamePYTHON), + // }, + // { + // LanguageExtensionName: to.Ptr(armkusto.LanguageExtensionNameR), + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-07-07/examples/KustoClusterAddLanguageExtensions.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoClusterAddLanguageExtensions.json func ExampleClustersClient_BeginAddLanguageExtensions() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -435,7 +1056,7 @@ func ExampleClustersClient_BeginAddLanguageExtensions() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-07-07/examples/KustoClusterRemoveLanguageExtensions.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoClusterRemoveLanguageExtensions.json func ExampleClustersClient_BeginRemoveLanguageExtensions() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/kusto/armkusto/constants.go b/sdk/resourcemanager/kusto/armkusto/constants.go index 7cce5ba10834..146beeac211d 100644 --- a/sdk/resourcemanager/kusto/armkusto/constants.go +++ b/sdk/resourcemanager/kusto/armkusto/constants.go @@ -11,7 +11,7 @@ package armkusto const ( moduleName = "armkusto" - moduleVersion = "v1.1.0" + moduleVersion = "v1.2.0" ) // AzureSKUName - SKU name. @@ -75,6 +75,8 @@ const ( AzureSKUNameStandardL16S AzureSKUName = "Standard_L16s" AzureSKUNameStandardL16SV2 AzureSKUName = "Standard_L16s_v2" AzureSKUNameStandardL16SV3 AzureSKUName = "Standard_L16s_v3" + AzureSKUNameStandardL32AsV3 AzureSKUName = "Standard_L32as_v3" + AzureSKUNameStandardL32SV3 AzureSKUName = "Standard_L32s_v3" AzureSKUNameStandardL4S AzureSKUName = "Standard_L4s" AzureSKUNameStandardL8AsV3 AzureSKUName = "Standard_L8as_v3" AzureSKUNameStandardL8S AzureSKUName = "Standard_L8s" @@ -142,6 +144,8 @@ func PossibleAzureSKUNameValues() []AzureSKUName { AzureSKUNameStandardL16S, AzureSKUNameStandardL16SV2, AzureSKUNameStandardL16SV3, + AzureSKUNameStandardL32AsV3, + AzureSKUNameStandardL32SV3, AzureSKUNameStandardL4S, AzureSKUNameStandardL8AsV3, AzureSKUNameStandardL8S, @@ -288,6 +292,7 @@ func PossibleCreatedByTypeValues() []CreatedByType { type DataConnectionKind string const ( + DataConnectionKindCosmosDb DataConnectionKind = "CosmosDb" DataConnectionKindEventGrid DataConnectionKind = "EventGrid" DataConnectionKindEventHub DataConnectionKind = "EventHub" DataConnectionKindIotHub DataConnectionKind = "IotHub" @@ -296,6 +301,7 @@ const ( // PossibleDataConnectionKindValues returns the possible values for the DataConnectionKind const type. func PossibleDataConnectionKindValues() []DataConnectionKind { return []DataConnectionKind{ + DataConnectionKindCosmosDb, DataConnectionKindEventGrid, DataConnectionKindEventHub, DataConnectionKindIotHub, @@ -583,6 +589,28 @@ func PossibleKindValues() []Kind { } } +// LanguageExtensionImageName - Language extension image name. +type LanguageExtensionImageName string + +const ( + LanguageExtensionImageNamePython3108 LanguageExtensionImageName = "Python3_10_8" + LanguageExtensionImageNamePython365 LanguageExtensionImageName = "Python3_6_5" + LanguageExtensionImageNamePython3912 LanguageExtensionImageName = "Python3_9_12" + LanguageExtensionImageNamePython3912IncludeDeepLearning LanguageExtensionImageName = "Python3_9_12IncludeDeepLearning" + LanguageExtensionImageNameR LanguageExtensionImageName = "R" +) + +// PossibleLanguageExtensionImageNameValues returns the possible values for the LanguageExtensionImageName const type. +func PossibleLanguageExtensionImageNameValues() []LanguageExtensionImageName { + return []LanguageExtensionImageName{ + LanguageExtensionImageNamePython3108, + LanguageExtensionImageNamePython365, + LanguageExtensionImageNamePython3912, + LanguageExtensionImageNamePython3912IncludeDeepLearning, + LanguageExtensionImageNameR, + } +} + // LanguageExtensionName - Language extension that can run within KQL query. type LanguageExtensionName string @@ -639,6 +667,7 @@ func PossiblePrincipalsModificationKindValues() []PrincipalsModificationKind { type ProvisioningState string const ( + ProvisioningStateCanceled ProvisioningState = "Canceled" ProvisioningStateCreating ProvisioningState = "Creating" ProvisioningStateDeleting ProvisioningState = "Deleting" ProvisioningStateFailed ProvisioningState = "Failed" @@ -650,6 +679,7 @@ const ( // PossibleProvisioningStateValues returns the possible values for the ProvisioningState const type. func PossibleProvisioningStateValues() []ProvisioningState { return []ProvisioningState{ + ProvisioningStateCanceled, ProvisioningStateCreating, ProvisioningStateDeleting, ProvisioningStateFailed, diff --git a/sdk/resourcemanager/kusto/armkusto/databaseprincipalassignments_client.go b/sdk/resourcemanager/kusto/armkusto/databaseprincipalassignments_client.go index 5fec23d4d448..e61890ee4689 100644 --- a/sdk/resourcemanager/kusto/armkusto/databaseprincipalassignments_client.go +++ b/sdk/resourcemanager/kusto/armkusto/databaseprincipalassignments_client.go @@ -32,10 +32,10 @@ type DatabasePrincipalAssignmentsClient struct { } // NewDatabasePrincipalAssignmentsClient creates a new instance of DatabasePrincipalAssignmentsClient with the specified values. -// subscriptionID - Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID -// forms part of the URI for every service call. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID +// forms part of the URI for every service call. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewDatabasePrincipalAssignmentsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DatabasePrincipalAssignmentsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -58,13 +58,14 @@ func NewDatabasePrincipalAssignmentsClient(subscriptionID string, credential azc // CheckNameAvailability - Checks that the database principal assignment is valid and is not already in use. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 -// resourceGroupName - The name of the resource group containing the Kusto cluster. -// clusterName - The name of the Kusto cluster. -// databaseName - The name of the database in the Kusto cluster. -// principalAssignmentName - The name of the resource. -// options - DatabasePrincipalAssignmentsClientCheckNameAvailabilityOptions contains the optional parameters for the DatabasePrincipalAssignmentsClient.CheckNameAvailability -// method. +// +// Generated from API version 2022-12-29 +// - resourceGroupName - The name of the resource group containing the Kusto cluster. +// - clusterName - The name of the Kusto cluster. +// - databaseName - The name of the database in the Kusto cluster. +// - principalAssignmentName - The name of the resource. +// - options - DatabasePrincipalAssignmentsClientCheckNameAvailabilityOptions contains the optional parameters for the DatabasePrincipalAssignmentsClient.CheckNameAvailability +// method. func (client *DatabasePrincipalAssignmentsClient) CheckNameAvailability(ctx context.Context, resourceGroupName string, clusterName string, databaseName string, principalAssignmentName DatabasePrincipalAssignmentCheckNameRequest, options *DatabasePrincipalAssignmentsClientCheckNameAvailabilityOptions) (DatabasePrincipalAssignmentsClientCheckNameAvailabilityResponse, error) { req, err := client.checkNameAvailabilityCreateRequest(ctx, resourceGroupName, clusterName, databaseName, principalAssignmentName, options) if err != nil { @@ -104,7 +105,7 @@ func (client *DatabasePrincipalAssignmentsClient) checkNameAvailabilityCreateReq return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-07") + reqQP.Set("api-version", "2022-12-29") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, principalAssignmentName) @@ -121,14 +122,15 @@ func (client *DatabasePrincipalAssignmentsClient) checkNameAvailabilityHandleRes // BeginCreateOrUpdate - Creates a Kusto cluster database principalAssignment. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 -// resourceGroupName - The name of the resource group containing the Kusto cluster. -// clusterName - The name of the Kusto cluster. -// databaseName - The name of the database in the Kusto cluster. -// principalAssignmentName - The name of the Kusto principalAssignment. -// parameters - The Kusto principalAssignments parameters supplied for the operation. -// options - DatabasePrincipalAssignmentsClientBeginCreateOrUpdateOptions contains the optional parameters for the DatabasePrincipalAssignmentsClient.BeginCreateOrUpdate -// method. +// +// Generated from API version 2022-12-29 +// - resourceGroupName - The name of the resource group containing the Kusto cluster. +// - clusterName - The name of the Kusto cluster. +// - databaseName - The name of the database in the Kusto cluster. +// - principalAssignmentName - The name of the Kusto principalAssignment. +// - parameters - The Kusto principalAssignments parameters supplied for the operation. +// - options - DatabasePrincipalAssignmentsClientBeginCreateOrUpdateOptions contains the optional parameters for the DatabasePrincipalAssignmentsClient.BeginCreateOrUpdate +// method. func (client *DatabasePrincipalAssignmentsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, clusterName string, databaseName string, principalAssignmentName string, parameters DatabasePrincipalAssignment, options *DatabasePrincipalAssignmentsClientBeginCreateOrUpdateOptions) (*runtime.Poller[DatabasePrincipalAssignmentsClientCreateOrUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createOrUpdate(ctx, resourceGroupName, clusterName, databaseName, principalAssignmentName, parameters, options) @@ -143,7 +145,8 @@ func (client *DatabasePrincipalAssignmentsClient) BeginCreateOrUpdate(ctx contex // CreateOrUpdate - Creates a Kusto cluster database principalAssignment. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 +// +// Generated from API version 2022-12-29 func (client *DatabasePrincipalAssignmentsClient) createOrUpdate(ctx context.Context, resourceGroupName string, clusterName string, databaseName string, principalAssignmentName string, parameters DatabasePrincipalAssignment, options *DatabasePrincipalAssignmentsClientBeginCreateOrUpdateOptions) (*http.Response, error) { req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, clusterName, databaseName, principalAssignmentName, parameters, options) if err != nil { @@ -187,7 +190,7 @@ func (client *DatabasePrincipalAssignmentsClient) createOrUpdateCreateRequest(ct return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-07") + reqQP.Set("api-version", "2022-12-29") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, parameters) @@ -195,13 +198,14 @@ func (client *DatabasePrincipalAssignmentsClient) createOrUpdateCreateRequest(ct // BeginDelete - Deletes a Kusto principalAssignment. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 -// resourceGroupName - The name of the resource group containing the Kusto cluster. -// clusterName - The name of the Kusto cluster. -// databaseName - The name of the database in the Kusto cluster. -// principalAssignmentName - The name of the Kusto principalAssignment. -// options - DatabasePrincipalAssignmentsClientBeginDeleteOptions contains the optional parameters for the DatabasePrincipalAssignmentsClient.BeginDelete -// method. +// +// Generated from API version 2022-12-29 +// - resourceGroupName - The name of the resource group containing the Kusto cluster. +// - clusterName - The name of the Kusto cluster. +// - databaseName - The name of the database in the Kusto cluster. +// - principalAssignmentName - The name of the Kusto principalAssignment. +// - options - DatabasePrincipalAssignmentsClientBeginDeleteOptions contains the optional parameters for the DatabasePrincipalAssignmentsClient.BeginDelete +// method. func (client *DatabasePrincipalAssignmentsClient) BeginDelete(ctx context.Context, resourceGroupName string, clusterName string, databaseName string, principalAssignmentName string, options *DatabasePrincipalAssignmentsClientBeginDeleteOptions) (*runtime.Poller[DatabasePrincipalAssignmentsClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, clusterName, databaseName, principalAssignmentName, options) @@ -216,7 +220,8 @@ func (client *DatabasePrincipalAssignmentsClient) BeginDelete(ctx context.Contex // Delete - Deletes a Kusto principalAssignment. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 +// +// Generated from API version 2022-12-29 func (client *DatabasePrincipalAssignmentsClient) deleteOperation(ctx context.Context, resourceGroupName string, clusterName string, databaseName string, principalAssignmentName string, options *DatabasePrincipalAssignmentsClientBeginDeleteOptions) (*http.Response, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, clusterName, databaseName, principalAssignmentName, options) if err != nil { @@ -260,7 +265,7 @@ func (client *DatabasePrincipalAssignmentsClient) deleteCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-07") + reqQP.Set("api-version", "2022-12-29") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -268,13 +273,14 @@ func (client *DatabasePrincipalAssignmentsClient) deleteCreateRequest(ctx contex // Get - Gets a Kusto cluster database principalAssignment. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 -// resourceGroupName - The name of the resource group containing the Kusto cluster. -// clusterName - The name of the Kusto cluster. -// databaseName - The name of the database in the Kusto cluster. -// principalAssignmentName - The name of the Kusto principalAssignment. -// options - DatabasePrincipalAssignmentsClientGetOptions contains the optional parameters for the DatabasePrincipalAssignmentsClient.Get -// method. +// +// Generated from API version 2022-12-29 +// - resourceGroupName - The name of the resource group containing the Kusto cluster. +// - clusterName - The name of the Kusto cluster. +// - databaseName - The name of the database in the Kusto cluster. +// - principalAssignmentName - The name of the Kusto principalAssignment. +// - options - DatabasePrincipalAssignmentsClientGetOptions contains the optional parameters for the DatabasePrincipalAssignmentsClient.Get +// method. func (client *DatabasePrincipalAssignmentsClient) Get(ctx context.Context, resourceGroupName string, clusterName string, databaseName string, principalAssignmentName string, options *DatabasePrincipalAssignmentsClientGetOptions) (DatabasePrincipalAssignmentsClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, clusterName, databaseName, principalAssignmentName, options) if err != nil { @@ -318,7 +324,7 @@ func (client *DatabasePrincipalAssignmentsClient) getCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-07") + reqQP.Set("api-version", "2022-12-29") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -334,12 +340,13 @@ func (client *DatabasePrincipalAssignmentsClient) getHandleResponse(resp *http.R } // NewListPager - Lists all Kusto cluster database principalAssignments. -// Generated from API version 2022-07-07 -// resourceGroupName - The name of the resource group containing the Kusto cluster. -// clusterName - The name of the Kusto cluster. -// databaseName - The name of the database in the Kusto cluster. -// options - DatabasePrincipalAssignmentsClientListOptions contains the optional parameters for the DatabasePrincipalAssignmentsClient.List -// method. +// +// Generated from API version 2022-12-29 +// - resourceGroupName - The name of the resource group containing the Kusto cluster. +// - clusterName - The name of the Kusto cluster. +// - databaseName - The name of the database in the Kusto cluster. +// - options - DatabasePrincipalAssignmentsClientListOptions contains the optional parameters for the DatabasePrincipalAssignmentsClient.NewListPager +// method. func (client *DatabasePrincipalAssignmentsClient) NewListPager(resourceGroupName string, clusterName string, databaseName string, options *DatabasePrincipalAssignmentsClientListOptions) *runtime.Pager[DatabasePrincipalAssignmentsClientListResponse] { return runtime.NewPager(runtime.PagingHandler[DatabasePrincipalAssignmentsClientListResponse]{ More: func(page DatabasePrincipalAssignmentsClientListResponse) bool { @@ -386,7 +393,7 @@ func (client *DatabasePrincipalAssignmentsClient) listCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-07") + reqQP.Set("api-version", "2022-12-29") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/kusto/armkusto/databaseprincipalassignments_client_example_test.go b/sdk/resourcemanager/kusto/armkusto/databaseprincipalassignments_client_example_test.go index 0d2e926ec06e..9745571005bc 100644 --- a/sdk/resourcemanager/kusto/armkusto/databaseprincipalassignments_client_example_test.go +++ b/sdk/resourcemanager/kusto/armkusto/databaseprincipalassignments_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armkusto_test @@ -17,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/kusto/armkusto" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-07-07/examples/KustoDatabasePrincipalAssignmentsCheckNameAvailability.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoDatabasePrincipalAssignmentsCheckNameAvailability.json func ExampleDatabasePrincipalAssignmentsClient_CheckNameAvailability() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -35,11 +36,17 @@ func ExampleDatabasePrincipalAssignmentsClient_CheckNameAvailability() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.CheckNameResult = armkusto.CheckNameResult{ + // Name: to.Ptr("kustoprincipal1"), + // Message: to.Ptr("Name 'kustoprincipal1' is already taken. Please specify a different name"), + // NameAvailable: to.Ptr(false), + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-07-07/examples/KustoDatabasePrincipalAssignmentsGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoDatabasePrincipalAssignmentsGet.json func ExampleDatabasePrincipalAssignmentsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -54,11 +61,27 @@ func ExampleDatabasePrincipalAssignmentsClient_Get() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.DatabasePrincipalAssignment = armkusto.DatabasePrincipalAssignment{ + // Name: to.Ptr("kustoCluster/Kustodatabase8/kustoprincipal1"), + // Type: to.Ptr("Microsoft.Kusto/Clusters/Databases/PrincipalAssignments"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/kustoCluster/Databases/Kustodatabase8/PrincipalAssignments/kustoprincipal1"), + // Properties: &armkusto.DatabasePrincipalProperties{ + // AADObjectID: to.Ptr("98765432-1234-1234-1234-123456789123"), + // PrincipalID: to.Ptr("87654321-1234-1234-1234-123456789123"), + // PrincipalName: to.Ptr("TestApp"), + // PrincipalType: to.Ptr(armkusto.PrincipalTypeApp), + // ProvisioningState: to.Ptr(armkusto.ProvisioningStateSucceeded), + // Role: to.Ptr(armkusto.DatabasePrincipalRoleAdmin), + // TenantID: to.Ptr("12345678-1234-1234-1234-123456789123"), + // TenantName: to.Ptr("tenantName"), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-07-07/examples/KustoDatabasePrincipalAssignmentsCreateOrUpdate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoDatabasePrincipalAssignmentsCreateOrUpdate.json func ExampleDatabasePrincipalAssignmentsClient_BeginCreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -84,11 +107,27 @@ func ExampleDatabasePrincipalAssignmentsClient_BeginCreateOrUpdate() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.DatabasePrincipalAssignment = armkusto.DatabasePrincipalAssignment{ + // Name: to.Ptr("kustoCluster/Kustodatabase8/kustoprincipal1"), + // Type: to.Ptr("Microsoft.Kusto/Clusters/Databases/PrincipalAssignments"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/kustoCluster/Databases/Kustodatabase8/PrincipalAssignments/kustoprincipal1"), + // Properties: &armkusto.DatabasePrincipalProperties{ + // AADObjectID: to.Ptr("98765432-1234-1234-1234-123456789123"), + // PrincipalID: to.Ptr("87654321-1234-1234-1234-123456789123"), + // PrincipalName: to.Ptr("TestApp"), + // PrincipalType: to.Ptr(armkusto.PrincipalTypeApp), + // ProvisioningState: to.Ptr(armkusto.ProvisioningStateSucceeded), + // Role: to.Ptr(armkusto.DatabasePrincipalRoleAdmin), + // TenantID: to.Ptr("12345678-1234-1234-1234-123456789123"), + // TenantName: to.Ptr("tenantName"), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-07-07/examples/KustoDatabasePrincipalAssignmentsDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoDatabasePrincipalAssignmentsDelete.json func ExampleDatabasePrincipalAssignmentsClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -109,7 +148,7 @@ func ExampleDatabasePrincipalAssignmentsClient_BeginDelete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-07-07/examples/KustoDatabasePrincipalAssignmentsList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoDatabasePrincipalAssignmentsList.json func ExampleDatabasePrincipalAssignmentsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -122,13 +161,47 @@ func ExampleDatabasePrincipalAssignmentsClient_NewListPager() { } pager := client.NewListPager("kustorptest", "kustoCluster", "Kustodatabase8", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.DatabasePrincipalAssignmentListResult = armkusto.DatabasePrincipalAssignmentListResult{ + // Value: []*armkusto.DatabasePrincipalAssignment{ + // { + // Name: to.Ptr("kustoCluster/Kustodatabase8/kustoprincipal1"), + // Type: to.Ptr("Microsoft.Kusto/Clusters/Databases/PrincipalAssignments"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/kustoCluster/Databases/Kustodatabase8/PrincipalAssignments/kustoprincipal1"), + // Properties: &armkusto.DatabasePrincipalProperties{ + // AADObjectID: to.Ptr("98765432-1234-1234-1234-123456789123"), + // PrincipalID: to.Ptr("11223344-1234-1234-1234-123456789999"), + // PrincipalName: to.Ptr("TestApp"), + // PrincipalType: to.Ptr(armkusto.PrincipalTypeApp), + // ProvisioningState: to.Ptr(armkusto.ProvisioningStateSucceeded), + // Role: to.Ptr(armkusto.DatabasePrincipalRoleViewer), + // TenantID: to.Ptr("12345678-1234-1234-1234-123456789123"), + // TenantName: to.Ptr("tenantName"), + // }, + // }, + // { + // Name: to.Ptr("kustoCluster/Kustodatabase8/kustoprincipal2"), + // Type: to.Ptr("Microsoft.Kusto/Clusters/Databases/PrincipalAssignments"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/kustoCluster/Databases/Kustodatabase8/PrincipalAssignments/kustoprincipal1"), + // Properties: &armkusto.DatabasePrincipalProperties{ + // AADObjectID: to.Ptr("98765432-1234-1234-1234-123456789123"), + // PrincipalID: to.Ptr("87654321-1234-1234-1234-123456789123"), + // PrincipalName: to.Ptr("TestApp"), + // PrincipalType: to.Ptr(armkusto.PrincipalTypeApp), + // ProvisioningState: to.Ptr(armkusto.ProvisioningStateSucceeded), + // Role: to.Ptr(armkusto.DatabasePrincipalRoleAdmin), + // TenantID: to.Ptr("12345678-1234-1234-1234-123456789123"), + // TenantName: to.Ptr("tenantName"), + // }, + // }}, + // } } } diff --git a/sdk/resourcemanager/kusto/armkusto/databases_client.go b/sdk/resourcemanager/kusto/armkusto/databases_client.go index d2e04eff9fbd..3f7143884894 100644 --- a/sdk/resourcemanager/kusto/armkusto/databases_client.go +++ b/sdk/resourcemanager/kusto/armkusto/databases_client.go @@ -32,10 +32,10 @@ type DatabasesClient struct { } // NewDatabasesClient creates a new instance of DatabasesClient with the specified values. -// subscriptionID - Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID -// forms part of the URI for every service call. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID +// forms part of the URI for every service call. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewDatabasesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DatabasesClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -58,12 +58,13 @@ func NewDatabasesClient(subscriptionID string, credential azcore.TokenCredential // AddPrincipals - Add Database principals permissions. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 -// resourceGroupName - The name of the resource group containing the Kusto cluster. -// clusterName - The name of the Kusto cluster. -// databaseName - The name of the database in the Kusto cluster. -// databasePrincipalsToAdd - List of database principals to add. -// options - DatabasesClientAddPrincipalsOptions contains the optional parameters for the DatabasesClient.AddPrincipals method. +// +// Generated from API version 2022-12-29 +// - resourceGroupName - The name of the resource group containing the Kusto cluster. +// - clusterName - The name of the Kusto cluster. +// - databaseName - The name of the database in the Kusto cluster. +// - databasePrincipalsToAdd - List of database principals to add. +// - options - DatabasesClientAddPrincipalsOptions contains the optional parameters for the DatabasesClient.AddPrincipals method. func (client *DatabasesClient) AddPrincipals(ctx context.Context, resourceGroupName string, clusterName string, databaseName string, databasePrincipalsToAdd DatabasePrincipalListRequest, options *DatabasesClientAddPrincipalsOptions) (DatabasesClientAddPrincipalsResponse, error) { req, err := client.addPrincipalsCreateRequest(ctx, resourceGroupName, clusterName, databaseName, databasePrincipalsToAdd, options) if err != nil { @@ -103,7 +104,7 @@ func (client *DatabasesClient) addPrincipalsCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-07") + reqQP.Set("api-version", "2022-12-29") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, databasePrincipalsToAdd) @@ -120,12 +121,13 @@ func (client *DatabasesClient) addPrincipalsHandleResponse(resp *http.Response) // CheckNameAvailability - Checks that the databases resource name is valid and is not already in use. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 -// resourceGroupName - The name of the resource group containing the Kusto cluster. -// clusterName - The name of the Kusto cluster. -// resourceName - The name of the resource. -// options - DatabasesClientCheckNameAvailabilityOptions contains the optional parameters for the DatabasesClient.CheckNameAvailability -// method. +// +// Generated from API version 2022-12-29 +// - resourceGroupName - The name of the resource group containing the Kusto cluster. +// - clusterName - The name of the Kusto cluster. +// - resourceName - The name of the resource. +// - options - DatabasesClientCheckNameAvailabilityOptions contains the optional parameters for the DatabasesClient.CheckNameAvailability +// method. func (client *DatabasesClient) CheckNameAvailability(ctx context.Context, resourceGroupName string, clusterName string, resourceName CheckNameRequest, options *DatabasesClientCheckNameAvailabilityOptions) (DatabasesClientCheckNameAvailabilityResponse, error) { req, err := client.checkNameAvailabilityCreateRequest(ctx, resourceGroupName, clusterName, resourceName, options) if err != nil { @@ -161,7 +163,7 @@ func (client *DatabasesClient) checkNameAvailabilityCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-07") + reqQP.Set("api-version", "2022-12-29") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, resourceName) @@ -178,13 +180,14 @@ func (client *DatabasesClient) checkNameAvailabilityHandleResponse(resp *http.Re // BeginCreateOrUpdate - Creates or updates a database. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 -// resourceGroupName - The name of the resource group containing the Kusto cluster. -// clusterName - The name of the Kusto cluster. -// databaseName - The name of the database in the Kusto cluster. -// parameters - The database parameters supplied to the CreateOrUpdate operation. -// options - DatabasesClientBeginCreateOrUpdateOptions contains the optional parameters for the DatabasesClient.BeginCreateOrUpdate -// method. +// +// Generated from API version 2022-12-29 +// - resourceGroupName - The name of the resource group containing the Kusto cluster. +// - clusterName - The name of the Kusto cluster. +// - databaseName - The name of the database in the Kusto cluster. +// - parameters - The database parameters supplied to the CreateOrUpdate operation. +// - options - DatabasesClientBeginCreateOrUpdateOptions contains the optional parameters for the DatabasesClient.BeginCreateOrUpdate +// method. func (client *DatabasesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, clusterName string, databaseName string, parameters DatabaseClassification, options *DatabasesClientBeginCreateOrUpdateOptions) (*runtime.Poller[DatabasesClientCreateOrUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createOrUpdate(ctx, resourceGroupName, clusterName, databaseName, parameters, options) @@ -199,7 +202,8 @@ func (client *DatabasesClient) BeginCreateOrUpdate(ctx context.Context, resource // CreateOrUpdate - Creates or updates a database. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 +// +// Generated from API version 2022-12-29 func (client *DatabasesClient) createOrUpdate(ctx context.Context, resourceGroupName string, clusterName string, databaseName string, parameters DatabaseClassification, options *DatabasesClientBeginCreateOrUpdateOptions) (*http.Response, error) { req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, clusterName, databaseName, parameters, options) if err != nil { @@ -239,7 +243,7 @@ func (client *DatabasesClient) createOrUpdateCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-07") + reqQP.Set("api-version", "2022-12-29") if options != nil && options.CallerRole != nil { reqQP.Set("callerRole", string(*options.CallerRole)) } @@ -250,11 +254,12 @@ func (client *DatabasesClient) createOrUpdateCreateRequest(ctx context.Context, // BeginDelete - Deletes the database with the given name. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 -// resourceGroupName - The name of the resource group containing the Kusto cluster. -// clusterName - The name of the Kusto cluster. -// databaseName - The name of the database in the Kusto cluster. -// options - DatabasesClientBeginDeleteOptions contains the optional parameters for the DatabasesClient.BeginDelete method. +// +// Generated from API version 2022-12-29 +// - resourceGroupName - The name of the resource group containing the Kusto cluster. +// - clusterName - The name of the Kusto cluster. +// - databaseName - The name of the database in the Kusto cluster. +// - options - DatabasesClientBeginDeleteOptions contains the optional parameters for the DatabasesClient.BeginDelete method. func (client *DatabasesClient) BeginDelete(ctx context.Context, resourceGroupName string, clusterName string, databaseName string, options *DatabasesClientBeginDeleteOptions) (*runtime.Poller[DatabasesClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, clusterName, databaseName, options) @@ -269,7 +274,8 @@ func (client *DatabasesClient) BeginDelete(ctx context.Context, resourceGroupNam // Delete - Deletes the database with the given name. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 +// +// Generated from API version 2022-12-29 func (client *DatabasesClient) deleteOperation(ctx context.Context, resourceGroupName string, clusterName string, databaseName string, options *DatabasesClientBeginDeleteOptions) (*http.Response, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, clusterName, databaseName, options) if err != nil { @@ -309,7 +315,7 @@ func (client *DatabasesClient) deleteCreateRequest(ctx context.Context, resource return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-07") + reqQP.Set("api-version", "2022-12-29") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -317,11 +323,12 @@ func (client *DatabasesClient) deleteCreateRequest(ctx context.Context, resource // Get - Returns a database. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 -// resourceGroupName - The name of the resource group containing the Kusto cluster. -// clusterName - The name of the Kusto cluster. -// databaseName - The name of the database in the Kusto cluster. -// options - DatabasesClientGetOptions contains the optional parameters for the DatabasesClient.Get method. +// +// Generated from API version 2022-12-29 +// - resourceGroupName - The name of the resource group containing the Kusto cluster. +// - clusterName - The name of the Kusto cluster. +// - databaseName - The name of the database in the Kusto cluster. +// - options - DatabasesClientGetOptions contains the optional parameters for the DatabasesClient.Get method. func (client *DatabasesClient) Get(ctx context.Context, resourceGroupName string, clusterName string, databaseName string, options *DatabasesClientGetOptions) (DatabasesClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, clusterName, databaseName, options) if err != nil { @@ -361,7 +368,7 @@ func (client *DatabasesClient) getCreateRequest(ctx context.Context, resourceGro return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-07") + reqQP.Set("api-version", "2022-12-29") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -377,10 +384,12 @@ func (client *DatabasesClient) getHandleResponse(resp *http.Response) (Databases } // NewListByClusterPager - Returns the list of databases of the given Kusto cluster. -// Generated from API version 2022-07-07 -// resourceGroupName - The name of the resource group containing the Kusto cluster. -// clusterName - The name of the Kusto cluster. -// options - DatabasesClientListByClusterOptions contains the optional parameters for the DatabasesClient.ListByCluster method. +// +// Generated from API version 2022-12-29 +// - resourceGroupName - The name of the resource group containing the Kusto cluster. +// - clusterName - The name of the Kusto cluster. +// - options - DatabasesClientListByClusterOptions contains the optional parameters for the DatabasesClient.NewListByClusterPager +// method. func (client *DatabasesClient) NewListByClusterPager(resourceGroupName string, clusterName string, options *DatabasesClientListByClusterOptions) *runtime.Pager[DatabasesClientListByClusterResponse] { return runtime.NewPager(runtime.PagingHandler[DatabasesClientListByClusterResponse]{ More: func(page DatabasesClientListByClusterResponse) bool { @@ -423,7 +432,7 @@ func (client *DatabasesClient) listByClusterCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-07") + reqQP.Set("api-version", "2022-12-29") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -439,12 +448,13 @@ func (client *DatabasesClient) listByClusterHandleResponse(resp *http.Response) } // NewListPrincipalsPager - Returns a list of database principals of the given Kusto cluster and database. -// Generated from API version 2022-07-07 -// resourceGroupName - The name of the resource group containing the Kusto cluster. -// clusterName - The name of the Kusto cluster. -// databaseName - The name of the database in the Kusto cluster. -// options - DatabasesClientListPrincipalsOptions contains the optional parameters for the DatabasesClient.ListPrincipals -// method. +// +// Generated from API version 2022-12-29 +// - resourceGroupName - The name of the resource group containing the Kusto cluster. +// - clusterName - The name of the Kusto cluster. +// - databaseName - The name of the database in the Kusto cluster. +// - options - DatabasesClientListPrincipalsOptions contains the optional parameters for the DatabasesClient.NewListPrincipalsPager +// method. func (client *DatabasesClient) NewListPrincipalsPager(resourceGroupName string, clusterName string, databaseName string, options *DatabasesClientListPrincipalsOptions) *runtime.Pager[DatabasesClientListPrincipalsResponse] { return runtime.NewPager(runtime.PagingHandler[DatabasesClientListPrincipalsResponse]{ More: func(page DatabasesClientListPrincipalsResponse) bool { @@ -491,7 +501,7 @@ func (client *DatabasesClient) listPrincipalsCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-07") + reqQP.Set("api-version", "2022-12-29") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -508,13 +518,14 @@ func (client *DatabasesClient) listPrincipalsHandleResponse(resp *http.Response) // RemovePrincipals - Remove Database principals permissions. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 -// resourceGroupName - The name of the resource group containing the Kusto cluster. -// clusterName - The name of the Kusto cluster. -// databaseName - The name of the database in the Kusto cluster. -// databasePrincipalsToRemove - List of database principals to remove. -// options - DatabasesClientRemovePrincipalsOptions contains the optional parameters for the DatabasesClient.RemovePrincipals -// method. +// +// Generated from API version 2022-12-29 +// - resourceGroupName - The name of the resource group containing the Kusto cluster. +// - clusterName - The name of the Kusto cluster. +// - databaseName - The name of the database in the Kusto cluster. +// - databasePrincipalsToRemove - List of database principals to remove. +// - options - DatabasesClientRemovePrincipalsOptions contains the optional parameters for the DatabasesClient.RemovePrincipals +// method. func (client *DatabasesClient) RemovePrincipals(ctx context.Context, resourceGroupName string, clusterName string, databaseName string, databasePrincipalsToRemove DatabasePrincipalListRequest, options *DatabasesClientRemovePrincipalsOptions) (DatabasesClientRemovePrincipalsResponse, error) { req, err := client.removePrincipalsCreateRequest(ctx, resourceGroupName, clusterName, databaseName, databasePrincipalsToRemove, options) if err != nil { @@ -554,7 +565,7 @@ func (client *DatabasesClient) removePrincipalsCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-07") + reqQP.Set("api-version", "2022-12-29") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, databasePrincipalsToRemove) @@ -571,12 +582,13 @@ func (client *DatabasesClient) removePrincipalsHandleResponse(resp *http.Respons // BeginUpdate - Updates a database. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 -// resourceGroupName - The name of the resource group containing the Kusto cluster. -// clusterName - The name of the Kusto cluster. -// databaseName - The name of the database in the Kusto cluster. -// parameters - The database parameters supplied to the Update operation. -// options - DatabasesClientBeginUpdateOptions contains the optional parameters for the DatabasesClient.BeginUpdate method. +// +// Generated from API version 2022-12-29 +// - resourceGroupName - The name of the resource group containing the Kusto cluster. +// - clusterName - The name of the Kusto cluster. +// - databaseName - The name of the database in the Kusto cluster. +// - parameters - The database parameters supplied to the Update operation. +// - options - DatabasesClientBeginUpdateOptions contains the optional parameters for the DatabasesClient.BeginUpdate method. func (client *DatabasesClient) BeginUpdate(ctx context.Context, resourceGroupName string, clusterName string, databaseName string, parameters DatabaseClassification, options *DatabasesClientBeginUpdateOptions) (*runtime.Poller[DatabasesClientUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.update(ctx, resourceGroupName, clusterName, databaseName, parameters, options) @@ -591,7 +603,8 @@ func (client *DatabasesClient) BeginUpdate(ctx context.Context, resourceGroupNam // Update - Updates a database. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 +// +// Generated from API version 2022-12-29 func (client *DatabasesClient) update(ctx context.Context, resourceGroupName string, clusterName string, databaseName string, parameters DatabaseClassification, options *DatabasesClientBeginUpdateOptions) (*http.Response, error) { req, err := client.updateCreateRequest(ctx, resourceGroupName, clusterName, databaseName, parameters, options) if err != nil { @@ -631,7 +644,7 @@ func (client *DatabasesClient) updateCreateRequest(ctx context.Context, resource return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-07") + reqQP.Set("api-version", "2022-12-29") if options != nil && options.CallerRole != nil { reqQP.Set("callerRole", string(*options.CallerRole)) } diff --git a/sdk/resourcemanager/kusto/armkusto/databases_client_example_test.go b/sdk/resourcemanager/kusto/armkusto/databases_client_example_test.go index 41d31e201f33..f9d304114f89 100644 --- a/sdk/resourcemanager/kusto/armkusto/databases_client_example_test.go +++ b/sdk/resourcemanager/kusto/armkusto/databases_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armkusto_test @@ -17,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/kusto/armkusto" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-07-07/examples/KustoDatabasesCheckNameAvailability.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoDatabasesCheckNameAvailability.json func ExampleDatabasesClient_CheckNameAvailability() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -35,11 +36,17 @@ func ExampleDatabasesClient_CheckNameAvailability() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.CheckNameResult = armkusto.CheckNameResult{ + // Name: to.Ptr("database1"), + // Message: to.Ptr("Name 'database1' is already taken. Please specify a different name"), + // NameAvailable: to.Ptr(false), + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-07-07/examples/KustoDatabasesListByCluster.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoDatabasesListByCluster.json func ExampleDatabasesClient_NewListByClusterPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -52,18 +59,68 @@ func ExampleDatabasesClient_NewListByClusterPager() { } pager := client.NewListByClusterPager("kustorptest", "kustoCluster", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.DatabaseListResult = armkusto.DatabaseListResult{ + // Value: []armkusto.DatabaseClassification{ + // &armkusto.ReadWriteDatabase{ + // Name: to.Ptr("kustoCluster/KustoDatabase8"), + // Type: to.Ptr("Microsoft.Kusto/Clusters/Databases"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/kustoCluster/Databases/KustoDatabase8"), + // Kind: to.Ptr(armkusto.KindReadWrite), + // Location: to.Ptr("westus"), + // Properties: &armkusto.ReadWriteDatabaseProperties{ + // HotCachePeriod: to.Ptr("P1D"), + // ProvisioningState: to.Ptr(armkusto.ProvisioningStateSucceeded), + // SoftDeletePeriod: to.Ptr("P1D"), + // }, + // }, + // &armkusto.ReadOnlyFollowingDatabase{ + // Name: to.Ptr("kustoCluster/KustoDatabase9"), + // Type: to.Ptr("Microsoft.Kusto/Clusters/Databases"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/kustoCluster/Databases/KustoDatabase9"), + // Kind: to.Ptr(armkusto.KindReadOnlyFollowing), + // Location: to.Ptr("westus"), + // Properties: &armkusto.ReadOnlyFollowingDatabaseProperties{ + // AttachedDatabaseConfigurationName: to.Ptr("attachedDatabaseConfigurationsTest"), + // DatabaseShareOrigin: to.Ptr(armkusto.DatabaseShareOriginDirect), + // HotCachePeriod: to.Ptr("P1D"), + // LeaderClusterResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/kustoCluster2"), + // OriginalDatabaseName: to.Ptr("KustoDatabase9"), + // PrincipalsModificationKind: to.Ptr(armkusto.PrincipalsModificationKindUnion), + // ProvisioningState: to.Ptr(armkusto.ProvisioningStateSucceeded), + // SoftDeletePeriod: to.Ptr("P1D"), + // Statistics: &armkusto.DatabaseStatistics{ + // Size: to.Ptr[float32](1024), + // }, + // TableLevelSharingProperties: &armkusto.TableLevelSharingProperties{ + // ExternalTablesToExclude: []*string{ + // to.Ptr("ExternalTable2")}, + // ExternalTablesToInclude: []*string{ + // to.Ptr("ExternalTable1")}, + // MaterializedViewsToExclude: []*string{ + // to.Ptr("MaterializedViewTable2")}, + // MaterializedViewsToInclude: []*string{ + // to.Ptr("MaterializedViewTable1")}, + // TablesToExclude: []*string{ + // to.Ptr("Table2")}, + // TablesToInclude: []*string{ + // to.Ptr("Table1")}, + // }, + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-07-07/examples/KustoDatabasesGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoDatabasesGet.json func ExampleDatabasesClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -78,11 +135,25 @@ func ExampleDatabasesClient_Get() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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 = armkusto.DatabasesClientGetResponse{ + // DatabaseClassification: &armkusto.ReadWriteDatabase{ + // Name: to.Ptr("kustoCluster/KustoDatabase8"), + // Type: to.Ptr("Microsoft.Kusto/Clusters/Databases"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/kustoCluster/Databases/KustoDatabase8"), + // Kind: to.Ptr(armkusto.KindReadWrite), + // Location: to.Ptr("westus"), + // Properties: &armkusto.ReadWriteDatabaseProperties{ + // ProvisioningState: to.Ptr(armkusto.ProvisioningStateSucceeded), + // SoftDeletePeriod: to.Ptr("P1D"), + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-07-07/examples/KustoDatabaseReadonlyUpdate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoDatabaseReadonlyUpdate.json func ExampleDatabasesClient_BeginCreateOrUpdate_kustoReadOnlyDatabaseUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -107,11 +178,21 @@ func ExampleDatabasesClient_BeginCreateOrUpdate_kustoReadOnlyDatabaseUpdate() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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 = armkusto.DatabasesClientCreateOrUpdateResponse{ + // DatabaseClassification: &armkusto.ReadOnlyFollowingDatabase{ + // Name: to.Ptr("kustoCluster/kustoReadOnlyDatabase"), + // Type: to.Ptr("Microsoft.Kusto/Clusters/Databases"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/kustoCluster/Databases/kustoReadOnlyDatabase"), + // Kind: to.Ptr(armkusto.KindReadOnlyFollowing), + // Location: to.Ptr("westus"), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-07-07/examples/KustoDatabasesCreateOrUpdate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoDatabasesCreateOrUpdate.json func ExampleDatabasesClient_BeginCreateOrUpdate_kustoReadWriteDatabaseCreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -136,11 +217,21 @@ func ExampleDatabasesClient_BeginCreateOrUpdate_kustoReadWriteDatabaseCreateOrUp if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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 = armkusto.DatabasesClientCreateOrUpdateResponse{ + // DatabaseClassification: &armkusto.ReadWriteDatabase{ + // Name: to.Ptr("kustoCluster/KustoDatabase8"), + // Type: to.Ptr("Microsoft.Kusto/Clusters/Databases"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/kustoCluster/Databases/KustoDatabase8"), + // Kind: to.Ptr(armkusto.KindReadWrite), + // Location: to.Ptr("westus"), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-07-07/examples/KustoDatabasesUpdate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoDatabasesUpdate.json func ExampleDatabasesClient_BeginUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -164,11 +255,25 @@ func ExampleDatabasesClient_BeginUpdate() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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 = armkusto.DatabasesClientUpdateResponse{ + // DatabaseClassification: &armkusto.ReadWriteDatabase{ + // Name: to.Ptr("kustoCluster/KustoDatabase8"), + // Type: to.Ptr("Microsoft.Kusto/Clusters/Databases"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/kustoCluster/Databases/KustoDatabase8"), + // Kind: to.Ptr(armkusto.KindReadWrite), + // Location: to.Ptr("westus"), + // Properties: &armkusto.ReadWriteDatabaseProperties{ + // HotCachePeriod: to.Ptr("P1D"), + // ProvisioningState: to.Ptr(armkusto.ProvisioningStateSucceeded), + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-07-07/examples/KustoDatabasesDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoDatabasesDelete.json func ExampleDatabasesClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -189,7 +294,7 @@ func ExampleDatabasesClient_BeginDelete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-07-07/examples/KustoDatabaseListPrincipals.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoDatabaseListPrincipals.json func ExampleDatabasesClient_NewListPrincipalsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -202,18 +307,46 @@ func ExampleDatabasesClient_NewListPrincipalsPager() { } pager := client.NewListPrincipalsPager("kustorptest", "kustoCluster", "KustoDatabase8", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.DatabasePrincipalListResult = armkusto.DatabasePrincipalListResult{ + // Value: []*armkusto.DatabasePrincipal{ + // { + // Name: to.Ptr("Some User"), + // Type: to.Ptr(armkusto.DatabasePrincipalTypeUser), + // AppID: to.Ptr(""), + // Email: to.Ptr("user@microsoft.com"), + // Fqn: to.Ptr("aaduser=some_guid"), + // Role: to.Ptr(armkusto.DatabasePrincipalRoleAdmin), + // }, + // { + // Name: to.Ptr("Kusto"), + // Type: to.Ptr(armkusto.DatabasePrincipalTypeGroup), + // AppID: to.Ptr(""), + // Email: to.Ptr("kusto@microsoft.com"), + // Fqn: to.Ptr("aadgroup=some_guid"), + // Role: to.Ptr(armkusto.DatabasePrincipalRoleViewer), + // }, + // { + // Name: to.Ptr("SomeApp"), + // Type: to.Ptr(armkusto.DatabasePrincipalTypeApp), + // AppID: to.Ptr("some_guid_app_id"), + // Email: to.Ptr(""), + // Fqn: to.Ptr("aadapp=some_guid_app_id"), + // Role: to.Ptr(armkusto.DatabasePrincipalRoleAdmin), + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-07-07/examples/KustoDatabaseAddPrincipals.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoDatabaseAddPrincipals.json func ExampleDatabasesClient_AddPrincipals() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -254,11 +387,39 @@ func ExampleDatabasesClient_AddPrincipals() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.DatabasePrincipalListResult = armkusto.DatabasePrincipalListResult{ + // Value: []*armkusto.DatabasePrincipal{ + // { + // Name: to.Ptr("Some User"), + // Type: to.Ptr(armkusto.DatabasePrincipalTypeUser), + // AppID: to.Ptr(""), + // Email: to.Ptr("user@microsoft.com"), + // Fqn: to.Ptr("aaduser=some_guid"), + // Role: to.Ptr(armkusto.DatabasePrincipalRoleAdmin), + // }, + // { + // Name: to.Ptr("Kusto"), + // Type: to.Ptr(armkusto.DatabasePrincipalTypeGroup), + // AppID: to.Ptr(""), + // Email: to.Ptr("kusto@microsoft.com"), + // Fqn: to.Ptr("aadgroup=some_guid"), + // Role: to.Ptr(armkusto.DatabasePrincipalRoleViewer), + // }, + // { + // Name: to.Ptr("SomeApp"), + // Type: to.Ptr(armkusto.DatabasePrincipalTypeApp), + // AppID: to.Ptr("some_guid_app_id"), + // Email: to.Ptr(""), + // Fqn: to.Ptr("aadapp=some_guid_app_id"), + // Role: to.Ptr(armkusto.DatabasePrincipalRoleAdmin), + // }}, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-07-07/examples/KustoDatabaseRemovePrincipals.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoDatabaseRemovePrincipals.json func ExampleDatabasesClient_RemovePrincipals() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -299,6 +460,34 @@ func ExampleDatabasesClient_RemovePrincipals() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.DatabasePrincipalListResult = armkusto.DatabasePrincipalListResult{ + // Value: []*armkusto.DatabasePrincipal{ + // { + // Name: to.Ptr("Some User"), + // Type: to.Ptr(armkusto.DatabasePrincipalTypeUser), + // AppID: to.Ptr(""), + // Email: to.Ptr("user@microsoft.com"), + // Fqn: to.Ptr("aaduser=some_guid"), + // Role: to.Ptr(armkusto.DatabasePrincipalRoleAdmin), + // }, + // { + // Name: to.Ptr("Kusto"), + // Type: to.Ptr(armkusto.DatabasePrincipalTypeGroup), + // AppID: to.Ptr(""), + // Email: to.Ptr("kusto@microsoft.com"), + // Fqn: to.Ptr("aadgroup=some_guid"), + // Role: to.Ptr(armkusto.DatabasePrincipalRoleViewer), + // }, + // { + // Name: to.Ptr("SomeApp"), + // Type: to.Ptr(armkusto.DatabasePrincipalTypeApp), + // AppID: to.Ptr("some_guid_app_id"), + // Email: to.Ptr(""), + // Fqn: to.Ptr("aadapp=some_guid_app_id"), + // Role: to.Ptr(armkusto.DatabasePrincipalRoleAdmin), + // }}, + // } } diff --git a/sdk/resourcemanager/kusto/armkusto/dataconnections_client.go b/sdk/resourcemanager/kusto/armkusto/dataconnections_client.go index c8184118fdf9..15f326c3a9f7 100644 --- a/sdk/resourcemanager/kusto/armkusto/dataconnections_client.go +++ b/sdk/resourcemanager/kusto/armkusto/dataconnections_client.go @@ -32,10 +32,10 @@ type DataConnectionsClient struct { } // NewDataConnectionsClient creates a new instance of DataConnectionsClient with the specified values. -// subscriptionID - Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID -// forms part of the URI for every service call. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID +// forms part of the URI for every service call. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewDataConnectionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DataConnectionsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -58,13 +58,14 @@ func NewDataConnectionsClient(subscriptionID string, credential azcore.TokenCred // CheckNameAvailability - Checks that the data connection name is valid and is not already in use. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 -// resourceGroupName - The name of the resource group containing the Kusto cluster. -// clusterName - The name of the Kusto cluster. -// databaseName - The name of the database in the Kusto cluster. -// dataConnectionName - The name of the data connection. -// options - DataConnectionsClientCheckNameAvailabilityOptions contains the optional parameters for the DataConnectionsClient.CheckNameAvailability -// method. +// +// Generated from API version 2022-12-29 +// - resourceGroupName - The name of the resource group containing the Kusto cluster. +// - clusterName - The name of the Kusto cluster. +// - databaseName - The name of the database in the Kusto cluster. +// - dataConnectionName - The name of the data connection. +// - options - DataConnectionsClientCheckNameAvailabilityOptions contains the optional parameters for the DataConnectionsClient.CheckNameAvailability +// method. func (client *DataConnectionsClient) CheckNameAvailability(ctx context.Context, resourceGroupName string, clusterName string, databaseName string, dataConnectionName DataConnectionCheckNameRequest, options *DataConnectionsClientCheckNameAvailabilityOptions) (DataConnectionsClientCheckNameAvailabilityResponse, error) { req, err := client.checkNameAvailabilityCreateRequest(ctx, resourceGroupName, clusterName, databaseName, dataConnectionName, options) if err != nil { @@ -104,7 +105,7 @@ func (client *DataConnectionsClient) checkNameAvailabilityCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-07") + reqQP.Set("api-version", "2022-12-29") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, dataConnectionName) @@ -121,14 +122,15 @@ func (client *DataConnectionsClient) checkNameAvailabilityHandleResponse(resp *h // BeginCreateOrUpdate - Creates or updates a data connection. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 -// resourceGroupName - The name of the resource group containing the Kusto cluster. -// clusterName - The name of the Kusto cluster. -// databaseName - The name of the database in the Kusto cluster. -// dataConnectionName - The name of the data connection. -// parameters - The data connection parameters supplied to the CreateOrUpdate operation. -// options - DataConnectionsClientBeginCreateOrUpdateOptions contains the optional parameters for the DataConnectionsClient.BeginCreateOrUpdate -// method. +// +// Generated from API version 2022-12-29 +// - resourceGroupName - The name of the resource group containing the Kusto cluster. +// - clusterName - The name of the Kusto cluster. +// - databaseName - The name of the database in the Kusto cluster. +// - dataConnectionName - The name of the data connection. +// - parameters - The data connection parameters supplied to the CreateOrUpdate operation. +// - options - DataConnectionsClientBeginCreateOrUpdateOptions contains the optional parameters for the DataConnectionsClient.BeginCreateOrUpdate +// method. func (client *DataConnectionsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, clusterName string, databaseName string, dataConnectionName string, parameters DataConnectionClassification, options *DataConnectionsClientBeginCreateOrUpdateOptions) (*runtime.Poller[DataConnectionsClientCreateOrUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createOrUpdate(ctx, resourceGroupName, clusterName, databaseName, dataConnectionName, parameters, options) @@ -143,7 +145,8 @@ func (client *DataConnectionsClient) BeginCreateOrUpdate(ctx context.Context, re // CreateOrUpdate - Creates or updates a data connection. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 +// +// Generated from API version 2022-12-29 func (client *DataConnectionsClient) createOrUpdate(ctx context.Context, resourceGroupName string, clusterName string, databaseName string, dataConnectionName string, parameters DataConnectionClassification, options *DataConnectionsClientBeginCreateOrUpdateOptions) (*http.Response, error) { req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, clusterName, databaseName, dataConnectionName, parameters, options) if err != nil { @@ -187,7 +190,7 @@ func (client *DataConnectionsClient) createOrUpdateCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-07") + reqQP.Set("api-version", "2022-12-29") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, parameters) @@ -195,13 +198,14 @@ func (client *DataConnectionsClient) createOrUpdateCreateRequest(ctx context.Con // BeginDataConnectionValidation - Checks that the data connection parameters are valid. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 -// resourceGroupName - The name of the resource group containing the Kusto cluster. -// clusterName - The name of the Kusto cluster. -// databaseName - The name of the database in the Kusto cluster. -// parameters - The data connection parameters supplied to the CreateOrUpdate operation. -// options - DataConnectionsClientBeginDataConnectionValidationOptions contains the optional parameters for the DataConnectionsClient.BeginDataConnectionValidation -// method. +// +// Generated from API version 2022-12-29 +// - resourceGroupName - The name of the resource group containing the Kusto cluster. +// - clusterName - The name of the Kusto cluster. +// - databaseName - The name of the database in the Kusto cluster. +// - parameters - The data connection parameters supplied to the CreateOrUpdate operation. +// - options - DataConnectionsClientBeginDataConnectionValidationOptions contains the optional parameters for the DataConnectionsClient.BeginDataConnectionValidation +// method. func (client *DataConnectionsClient) BeginDataConnectionValidation(ctx context.Context, resourceGroupName string, clusterName string, databaseName string, parameters DataConnectionValidation, options *DataConnectionsClientBeginDataConnectionValidationOptions) (*runtime.Poller[DataConnectionsClientDataConnectionValidationResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.dataConnectionValidation(ctx, resourceGroupName, clusterName, databaseName, parameters, options) @@ -218,7 +222,8 @@ func (client *DataConnectionsClient) BeginDataConnectionValidation(ctx context.C // DataConnectionValidation - Checks that the data connection parameters are valid. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 +// +// Generated from API version 2022-12-29 func (client *DataConnectionsClient) dataConnectionValidation(ctx context.Context, resourceGroupName string, clusterName string, databaseName string, parameters DataConnectionValidation, options *DataConnectionsClientBeginDataConnectionValidationOptions) (*http.Response, error) { req, err := client.dataConnectionValidationCreateRequest(ctx, resourceGroupName, clusterName, databaseName, parameters, options) if err != nil { @@ -258,7 +263,7 @@ func (client *DataConnectionsClient) dataConnectionValidationCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-07") + reqQP.Set("api-version", "2022-12-29") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, parameters) @@ -266,13 +271,14 @@ func (client *DataConnectionsClient) dataConnectionValidationCreateRequest(ctx c // BeginDelete - Deletes the data connection with the given name. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 -// resourceGroupName - The name of the resource group containing the Kusto cluster. -// clusterName - The name of the Kusto cluster. -// databaseName - The name of the database in the Kusto cluster. -// dataConnectionName - The name of the data connection. -// options - DataConnectionsClientBeginDeleteOptions contains the optional parameters for the DataConnectionsClient.BeginDelete -// method. +// +// Generated from API version 2022-12-29 +// - resourceGroupName - The name of the resource group containing the Kusto cluster. +// - clusterName - The name of the Kusto cluster. +// - databaseName - The name of the database in the Kusto cluster. +// - dataConnectionName - The name of the data connection. +// - options - DataConnectionsClientBeginDeleteOptions contains the optional parameters for the DataConnectionsClient.BeginDelete +// method. func (client *DataConnectionsClient) BeginDelete(ctx context.Context, resourceGroupName string, clusterName string, databaseName string, dataConnectionName string, options *DataConnectionsClientBeginDeleteOptions) (*runtime.Poller[DataConnectionsClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, clusterName, databaseName, dataConnectionName, options) @@ -287,7 +293,8 @@ func (client *DataConnectionsClient) BeginDelete(ctx context.Context, resourceGr // Delete - Deletes the data connection with the given name. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 +// +// Generated from API version 2022-12-29 func (client *DataConnectionsClient) deleteOperation(ctx context.Context, resourceGroupName string, clusterName string, databaseName string, dataConnectionName string, options *DataConnectionsClientBeginDeleteOptions) (*http.Response, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, clusterName, databaseName, dataConnectionName, options) if err != nil { @@ -331,7 +338,7 @@ func (client *DataConnectionsClient) deleteCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-07") + reqQP.Set("api-version", "2022-12-29") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -339,12 +346,13 @@ func (client *DataConnectionsClient) deleteCreateRequest(ctx context.Context, re // Get - Returns a data connection. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 -// resourceGroupName - The name of the resource group containing the Kusto cluster. -// clusterName - The name of the Kusto cluster. -// databaseName - The name of the database in the Kusto cluster. -// dataConnectionName - The name of the data connection. -// options - DataConnectionsClientGetOptions contains the optional parameters for the DataConnectionsClient.Get method. +// +// Generated from API version 2022-12-29 +// - resourceGroupName - The name of the resource group containing the Kusto cluster. +// - clusterName - The name of the Kusto cluster. +// - databaseName - The name of the database in the Kusto cluster. +// - dataConnectionName - The name of the data connection. +// - options - DataConnectionsClientGetOptions contains the optional parameters for the DataConnectionsClient.Get method. func (client *DataConnectionsClient) Get(ctx context.Context, resourceGroupName string, clusterName string, databaseName string, dataConnectionName string, options *DataConnectionsClientGetOptions) (DataConnectionsClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, clusterName, databaseName, dataConnectionName, options) if err != nil { @@ -388,7 +396,7 @@ func (client *DataConnectionsClient) getCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-07") + reqQP.Set("api-version", "2022-12-29") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -404,12 +412,13 @@ func (client *DataConnectionsClient) getHandleResponse(resp *http.Response) (Dat } // NewListByDatabasePager - Returns the list of data connections of the given Kusto database. -// Generated from API version 2022-07-07 -// resourceGroupName - The name of the resource group containing the Kusto cluster. -// clusterName - The name of the Kusto cluster. -// databaseName - The name of the database in the Kusto cluster. -// options - DataConnectionsClientListByDatabaseOptions contains the optional parameters for the DataConnectionsClient.ListByDatabase -// method. +// +// Generated from API version 2022-12-29 +// - resourceGroupName - The name of the resource group containing the Kusto cluster. +// - clusterName - The name of the Kusto cluster. +// - databaseName - The name of the database in the Kusto cluster. +// - options - DataConnectionsClientListByDatabaseOptions contains the optional parameters for the DataConnectionsClient.NewListByDatabasePager +// method. func (client *DataConnectionsClient) NewListByDatabasePager(resourceGroupName string, clusterName string, databaseName string, options *DataConnectionsClientListByDatabaseOptions) *runtime.Pager[DataConnectionsClientListByDatabaseResponse] { return runtime.NewPager(runtime.PagingHandler[DataConnectionsClientListByDatabaseResponse]{ More: func(page DataConnectionsClientListByDatabaseResponse) bool { @@ -456,7 +465,7 @@ func (client *DataConnectionsClient) listByDatabaseCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-07") + reqQP.Set("api-version", "2022-12-29") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -473,14 +482,15 @@ func (client *DataConnectionsClient) listByDatabaseHandleResponse(resp *http.Res // BeginUpdate - Updates a data connection. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 -// resourceGroupName - The name of the resource group containing the Kusto cluster. -// clusterName - The name of the Kusto cluster. -// databaseName - The name of the database in the Kusto cluster. -// dataConnectionName - The name of the data connection. -// parameters - The data connection parameters supplied to the Update operation. -// options - DataConnectionsClientBeginUpdateOptions contains the optional parameters for the DataConnectionsClient.BeginUpdate -// method. +// +// Generated from API version 2022-12-29 +// - resourceGroupName - The name of the resource group containing the Kusto cluster. +// - clusterName - The name of the Kusto cluster. +// - databaseName - The name of the database in the Kusto cluster. +// - dataConnectionName - The name of the data connection. +// - parameters - The data connection parameters supplied to the Update operation. +// - options - DataConnectionsClientBeginUpdateOptions contains the optional parameters for the DataConnectionsClient.BeginUpdate +// method. func (client *DataConnectionsClient) BeginUpdate(ctx context.Context, resourceGroupName string, clusterName string, databaseName string, dataConnectionName string, parameters DataConnectionClassification, options *DataConnectionsClientBeginUpdateOptions) (*runtime.Poller[DataConnectionsClientUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.update(ctx, resourceGroupName, clusterName, databaseName, dataConnectionName, parameters, options) @@ -495,7 +505,8 @@ func (client *DataConnectionsClient) BeginUpdate(ctx context.Context, resourceGr // Update - Updates a data connection. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 +// +// Generated from API version 2022-12-29 func (client *DataConnectionsClient) update(ctx context.Context, resourceGroupName string, clusterName string, databaseName string, dataConnectionName string, parameters DataConnectionClassification, options *DataConnectionsClientBeginUpdateOptions) (*http.Response, error) { req, err := client.updateCreateRequest(ctx, resourceGroupName, clusterName, databaseName, dataConnectionName, parameters, options) if err != nil { @@ -539,7 +550,7 @@ func (client *DataConnectionsClient) updateCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-07") + reqQP.Set("api-version", "2022-12-29") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, parameters) diff --git a/sdk/resourcemanager/kusto/armkusto/dataconnections_client_example_test.go b/sdk/resourcemanager/kusto/armkusto/dataconnections_client_example_test.go index bbb9fd34d938..6d75c217c0a6 100644 --- a/sdk/resourcemanager/kusto/armkusto/dataconnections_client_example_test.go +++ b/sdk/resourcemanager/kusto/armkusto/dataconnections_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armkusto_test @@ -12,12 +13,14 @@ 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/kusto/armkusto" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-07-07/examples/KustoDataConnectionsListByDatabase.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoDataConnectionsListByDatabase.json func ExampleDataConnectionsClient_NewListByDatabasePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -30,18 +33,84 @@ func ExampleDataConnectionsClient_NewListByDatabasePager() { } pager := client.NewListByDatabasePager("kustorptest", "kustoCluster", "KustoDatabase8", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.DataConnectionListResult = armkusto.DataConnectionListResult{ + // Value: []armkusto.DataConnectionClassification{ + // &armkusto.EventHubDataConnection{ + // Name: to.Ptr("kustoCluster/KustoDatabase8/KustoDataConnection1"), + // Type: to.Ptr("Microsoft.Kusto/Clusters/Databases/DataConnections"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/kustoCluster/Databases/KustoDatabase8/DataConnections/KustoDataConnection1"), + // Kind: to.Ptr(armkusto.DataConnectionKindEventHub), + // Location: to.Ptr("westus"), + // Properties: &armkusto.EventHubConnectionProperties{ + // Compression: to.Ptr(armkusto.CompressionNone), + // ConsumerGroup: to.Ptr("$Default"), + // DataFormat: to.Ptr(armkusto.EventHubDataFormatJSON), + // DatabaseRouting: to.Ptr(armkusto.DatabaseRoutingSingle), + // EventHubResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest1"), + // EventSystemProperties: []*string{ + // }, + // ManagedIdentityObjectID: to.Ptr("87654321-1234-1234-1234-123456789123"), + // ManagedIdentityResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.ManagedIdentity/userAssignedIdentities/managedidentityTest1"), + // MappingRuleName: to.Ptr("TestMapping"), + // ProvisioningState: to.Ptr(armkusto.ProvisioningStateSucceeded), + // RetrievalStartDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-07-29T12:00:00.6554616Z"); return t}()), + // TableName: to.Ptr("TestTable"), + // }, + // }, + // &armkusto.EventGridDataConnection{ + // Name: to.Ptr("kustoCluster/KustoDatabase8/KustoDataConnection2"), + // Type: to.Ptr("Microsoft.Kusto/Clusters/Databases/DataConnections"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/kustoCluster/Databases/KustoDatabase8/DataConnections/KustoDataConnection2"), + // Kind: to.Ptr(armkusto.DataConnectionKindEventGrid), + // Location: to.Ptr("westus"), + // Properties: &armkusto.EventGridConnectionProperties{ + // BlobStorageEventType: to.Ptr(armkusto.BlobStorageEventTypeMicrosoftStorageBlobCreated), + // ConsumerGroup: to.Ptr("$Default"), + // DataFormat: to.Ptr(armkusto.EventGridDataFormatJSON), + // DatabaseRouting: to.Ptr(armkusto.DatabaseRoutingSingle), + // EventGridResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Storage/storageAccounts/teststorageaccount/providers/Microsoft.EventGrid/eventSubscriptions/eventSubscriptionTest"), + // EventHubResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest2"), + // IgnoreFirstRecord: to.Ptr(false), + // ManagedIdentityObjectID: to.Ptr("87654321-1234-1234-1234-123456789123"), + // ManagedIdentityResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.ManagedIdentity/userAssignedIdentities/managedidentityTest1"), + // MappingRuleName: to.Ptr("TestMapping"), + // ProvisioningState: to.Ptr(armkusto.ProvisioningStateSucceeded), + // StorageAccountResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Storage/storageAccounts/teststorageaccount"), + // TableName: to.Ptr("TestTable"), + // }, + // }, + // &armkusto.CosmosDbDataConnection{ + // Name: to.Ptr("kustoCluster/KustoDatabase8/KustoDataConnection3"), + // Type: to.Ptr("Microsoft.Kusto/Clusters/Databases/DataConnections"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/kustoCluster/Databases/KustoDatabase8/DataConnections/KustoDataConnection3"), + // Kind: to.Ptr(armkusto.DataConnectionKindCosmosDb), + // Location: to.Ptr("westus"), + // Properties: &armkusto.CosmosDbDataConnectionProperties{ + // CosmosDbAccountResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.DocumentDb/databaseAccounts/cosmosDbAccountTest1"), + // CosmosDbContainer: to.Ptr("cosmosDbContainerTest"), + // CosmosDbDatabase: to.Ptr("cosmosDbDatabaseTest"), + // ManagedIdentityObjectID: to.Ptr("87654321-1234-1234-1234-123456789123"), + // ManagedIdentityResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.ManagedIdentity/userAssignedIdentities/managedidentityTest1"), + // MappingRuleName: to.Ptr("TestMapping"), + // ProvisioningState: to.Ptr(armkusto.ProvisioningStateSucceeded), + // RetrievalStartDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-07-29T12:00:00.6554616Z"); return t}()), + // TableName: to.Ptr("TestTable"), + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-07-07/examples/KustoDataConnectionEventGridValidationAsync.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoDataConnectionEventGridValidationAsync.json func ExampleDataConnectionsClient_BeginDataConnectionValidation_kustoDataConnectionEventGridValidation() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -78,11 +147,14 @@ func ExampleDataConnectionsClient_BeginDataConnectionValidation_kustoDataConnect if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.DataConnectionValidationListResult = armkusto.DataConnectionValidationListResult{ + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-07-07/examples/KustoDataConnectionValidationAsync.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoDataConnectionValidationAsync.json func ExampleDataConnectionsClient_BeginDataConnectionValidation_kustoDataConnectionValidation() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -115,11 +187,14 @@ func ExampleDataConnectionsClient_BeginDataConnectionValidation_kustoDataConnect if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.DataConnectionValidationListResult = armkusto.DataConnectionValidationListResult{ + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-07-07/examples/KustoDataConnectionsCheckNameAvailability.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoDataConnectionsCheckNameAvailability.json func ExampleDataConnectionsClient_CheckNameAvailability() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -137,11 +212,58 @@ func ExampleDataConnectionsClient_CheckNameAvailability() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.CheckNameResult = armkusto.CheckNameResult{ + // Name: to.Ptr("DataConnections8"), + // Message: to.Ptr("Name 'DataConnections8' is already taken. Please specify a different name."), + // NameAvailable: to.Ptr(false), + // Reason: to.Ptr(armkusto.ReasonAlreadyExists), + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-07-07/examples/KustoDataConnectionsEventGridGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoDataConnectionsCosmosDbGet.json +func ExampleDataConnectionsClient_Get_kustoDataConnectionsCosmosDbGet() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armkusto.NewDataConnectionsClient("12345678-1234-1234-1234-123456789098", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "kustorptest", "kustoCluster", "KustoDatabase1", "dataConnectionTest", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res = armkusto.DataConnectionsClientGetResponse{ + // DataConnectionClassification: &armkusto.CosmosDbDataConnection{ + // Name: to.Ptr("kustoCluster/KustoDatabase1/KustoDataConnection1"), + // Type: to.Ptr("Microsoft.Kusto/Clusters/Databases/DataConnections"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/kustoCluster/Databases/KustoDatabase1/DataConnections/KustoDataConnection1"), + // Kind: to.Ptr(armkusto.DataConnectionKindCosmosDb), + // Location: to.Ptr("westus"), + // Properties: &armkusto.CosmosDbDataConnectionProperties{ + // CosmosDbAccountResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.DocumentDb/databaseAccounts/cosmosDbAccountTest1"), + // CosmosDbContainer: to.Ptr("cosmosDbContainerTest"), + // CosmosDbDatabase: to.Ptr("cosmosDbDatabaseTest"), + // ManagedIdentityObjectID: to.Ptr("87654321-1234-1234-1234-123456789123"), + // ManagedIdentityResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.ManagedIdentity/userAssignedIdentities/managedidentityTest1"), + // MappingRuleName: to.Ptr("TestMapping"), + // ProvisioningState: to.Ptr(armkusto.ProvisioningStateSucceeded), + // RetrievalStartDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-07-29T12:00:00.6554616Z"); return t}()), + // TableName: to.Ptr("TestTable"), + // }, + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoDataConnectionsEventGridGet.json func ExampleDataConnectionsClient_Get_kustoDataConnectionsEventGridGet() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -156,11 +278,36 @@ func ExampleDataConnectionsClient_Get_kustoDataConnectionsEventGridGet() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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 = armkusto.DataConnectionsClientGetResponse{ + // DataConnectionClassification: &armkusto.EventGridDataConnection{ + // Name: to.Ptr("kustoCluster/KustoDatabase8/dataConnectionTest"), + // Type: to.Ptr("Microsoft.Kusto/Clusters/Databases/DataConnections"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/kustoCluster/Databases/KustoDatabase8/DataConnections/KustoDataConnection9"), + // Kind: to.Ptr(armkusto.DataConnectionKindEventGrid), + // Location: to.Ptr("westus"), + // Properties: &armkusto.EventGridConnectionProperties{ + // BlobStorageEventType: to.Ptr(armkusto.BlobStorageEventTypeMicrosoftStorageBlobCreated), + // ConsumerGroup: to.Ptr("$Default"), + // DataFormat: to.Ptr(armkusto.EventGridDataFormatJSON), + // DatabaseRouting: to.Ptr(armkusto.DatabaseRoutingSingle), + // EventGridResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Storage/storageAccounts/teststorageaccount/providers/Microsoft.EventGrid/eventSubscriptions/eventSubscriptionTest"), + // EventHubResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest2"), + // IgnoreFirstRecord: to.Ptr(false), + // ManagedIdentityObjectID: to.Ptr("87654321-1234-1234-1234-123456789123"), + // ManagedIdentityResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.ManagedIdentity/userAssignedIdentities/managedidentityTest1"), + // MappingRuleName: to.Ptr("TestMapping"), + // ProvisioningState: to.Ptr(armkusto.ProvisioningStateSucceeded), + // StorageAccountResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Storage/storageAccounts/teststorageaccount"), + // TableName: to.Ptr("TestTable"), + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-07-07/examples/KustoDataConnectionsGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoDataConnectionsGet.json func ExampleDataConnectionsClient_Get_kustoDataConnectionsGet() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -175,11 +322,91 @@ func ExampleDataConnectionsClient_Get_kustoDataConnectionsGet() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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 = armkusto.DataConnectionsClientGetResponse{ + // DataConnectionClassification: &armkusto.EventHubDataConnection{ + // Name: to.Ptr("kustoCluster/KustoDatabase8/dataConnectionTest"), + // Type: to.Ptr("Microsoft.Kusto/Clusters/Databases/DataConnections"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/kustoCluster/Databases/KustoDatabase8/DataConnections/dataConnectionTest"), + // Kind: to.Ptr(armkusto.DataConnectionKindEventHub), + // Location: to.Ptr("westus"), + // Properties: &armkusto.EventHubConnectionProperties{ + // Compression: to.Ptr(armkusto.CompressionNone), + // ConsumerGroup: to.Ptr("$Default"), + // DataFormat: to.Ptr(armkusto.EventHubDataFormatJSON), + // DatabaseRouting: to.Ptr(armkusto.DatabaseRoutingSingle), + // EventHubResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest1"), + // EventSystemProperties: []*string{ + // }, + // ManagedIdentityObjectID: to.Ptr("87654321-1234-1234-1234-123456789123"), + // ManagedIdentityResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.ManagedIdentity/userAssignedIdentities/managedidentityTest1"), + // MappingRuleName: to.Ptr("TestMapping"), + // ProvisioningState: to.Ptr(armkusto.ProvisioningStateSucceeded), + // RetrievalStartDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-07-29T12:00:00.6554616Z"); return t}()), + // TableName: to.Ptr("TestTable"), + // }, + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoDataConnectionsCosmosDbCreateOrUpdate.json +func ExampleDataConnectionsClient_BeginCreateOrUpdate_kustoDataConnectionsCosmosDbCreateOrUpdate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armkusto.NewDataConnectionsClient("12345678-1234-1234-1234-123456789098", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreateOrUpdate(ctx, "kustorptest", "kustoCluster", "KustoDatabase1", "dataConnectionTest", &armkusto.CosmosDbDataConnection{ + Kind: to.Ptr(armkusto.DataConnectionKindCosmosDb), + Location: to.Ptr("westus"), + Properties: &armkusto.CosmosDbDataConnectionProperties{ + CosmosDbAccountResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.DocumentDb/databaseAccounts/cosmosDbAccountTest1"), + CosmosDbContainer: to.Ptr("cosmosDbContainerTest"), + CosmosDbDatabase: to.Ptr("cosmosDbDatabaseTest"), + ManagedIdentityResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.ManagedIdentity/userAssignedIdentities/managedidentityTest1"), + MappingRuleName: to.Ptr("TestMapping"), + RetrievalStartDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-07-29T12:00:00.6554616Z"); return t }()), + TableName: to.Ptr("TestTable"), + }, + }, 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 = armkusto.DataConnectionsClientCreateOrUpdateResponse{ + // DataConnectionClassification: &armkusto.CosmosDbDataConnection{ + // Name: to.Ptr("kustoCluster/KustoDatabase1/dataConnectionTest"), + // Type: to.Ptr("Microsoft.Kusto/Clusters/Databases/DataConnections"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/kustoCluster/Databases/KustoDatabase1/DataConnections/dataConnectionTest"), + // Kind: to.Ptr(armkusto.DataConnectionKindCosmosDb), + // Location: to.Ptr("westus"), + // Properties: &armkusto.CosmosDbDataConnectionProperties{ + // CosmosDbAccountResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.DocumentDb/databaseAccounts/cosmosDbAccountTest1"), + // CosmosDbContainer: to.Ptr("cosmosDbContainerTest"), + // CosmosDbDatabase: to.Ptr("cosmosDbDatabaseTest"), + // ManagedIdentityObjectID: to.Ptr("87654321-1234-1234-1234-123456789123"), + // ManagedIdentityResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.ManagedIdentity/userAssignedIdentities/managedidentityTest1"), + // MappingRuleName: to.Ptr("TestMapping"), + // RetrievalStartDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-07-29T12:00:00.6554616Z"); return t}()), + // TableName: to.Ptr("TestTable"), + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-07-07/examples/KustoDataConnectionsCreateOrUpdate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoDataConnectionsCreateOrUpdate.json func ExampleDataConnectionsClient_BeginCreateOrUpdate_kustoDataConnectionsCreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -206,11 +433,27 @@ func ExampleDataConnectionsClient_BeginCreateOrUpdate_kustoDataConnectionsCreate if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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 = armkusto.DataConnectionsClientCreateOrUpdateResponse{ + // DataConnectionClassification: &armkusto.EventHubDataConnection{ + // Name: to.Ptr("kustoCluster/KustoDatabase8/dataConnectionTest"), + // Type: to.Ptr("Microsoft.Kusto/Clusters/Databases/DataConnections"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/kustoCluster/Databases/KustoDatabase8/DataConnections/dataConnectionTest"), + // Kind: to.Ptr(armkusto.DataConnectionKindEventHub), + // Location: to.Ptr("westus"), + // Properties: &armkusto.EventHubConnectionProperties{ + // Compression: to.Ptr(armkusto.CompressionNone), + // ConsumerGroup: to.Ptr("testConsumerGroup1"), + // EventHubResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest1"), + // ManagedIdentityResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.ManagedIdentity/userAssignedIdentities/managedidentityTest1"), + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-07-07/examples/KustoDataConnectionsEventGridCreateOrUpdate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoDataConnectionsEventGridCreateOrUpdate.json func ExampleDataConnectionsClient_BeginCreateOrUpdate_kustoDataConnectionsEventGridCreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -245,11 +488,90 @@ func ExampleDataConnectionsClient_BeginCreateOrUpdate_kustoDataConnectionsEventG if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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 = armkusto.DataConnectionsClientCreateOrUpdateResponse{ + // DataConnectionClassification: &armkusto.EventGridDataConnection{ + // Name: to.Ptr("kustoCluster/KustoDatabase8/dataConnectionTest"), + // Type: to.Ptr("Microsoft.Kusto/Clusters/Databases/DataConnections"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/kustoCluster/Databases/KustoDatabase8/DataConnections/KustoDataConnection9"), + // Kind: to.Ptr(armkusto.DataConnectionKindEventGrid), + // Location: to.Ptr("westus"), + // Properties: &armkusto.EventGridConnectionProperties{ + // BlobStorageEventType: to.Ptr(armkusto.BlobStorageEventTypeMicrosoftStorageBlobCreated), + // ConsumerGroup: to.Ptr("$Default"), + // DataFormat: to.Ptr(armkusto.EventGridDataFormatJSON), + // DatabaseRouting: to.Ptr(armkusto.DatabaseRoutingSingle), + // EventGridResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Storage/storageAccounts/teststorageaccount/providers/Microsoft.EventGrid/eventSubscriptions/eventSubscriptionTest"), + // EventHubResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest2"), + // IgnoreFirstRecord: to.Ptr(false), + // ManagedIdentityObjectID: to.Ptr("87654321-1234-1234-1234-123456789123"), + // ManagedIdentityResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.ManagedIdentity/userAssignedIdentities/managedidentityTest1"), + // MappingRuleName: to.Ptr("TestMapping"), + // StorageAccountResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Storage/storageAccounts/teststorageaccount"), + // TableName: to.Ptr("TestTable"), + // }, + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoDataConnectionsCosmosDbUpdate.json +func ExampleDataConnectionsClient_BeginUpdate_kustoDataConnectionsCosmosDbUpdate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armkusto.NewDataConnectionsClient("12345678-1234-1234-1234-123456789098", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginUpdate(ctx, "kustorptest", "kustoCluster", "KustoDatabase1", "dataConnectionTest", &armkusto.CosmosDbDataConnection{ + Kind: to.Ptr(armkusto.DataConnectionKindCosmosDb), + Location: to.Ptr("westus"), + Properties: &armkusto.CosmosDbDataConnectionProperties{ + CosmosDbAccountResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.DocumentDb/databaseAccounts/cosmosDbAccountTest1"), + CosmosDbContainer: to.Ptr("cosmosDbContainerTest"), + CosmosDbDatabase: to.Ptr("cosmosDbDatabaseTest"), + ManagedIdentityResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.ManagedIdentity/userAssignedIdentities/managedidentityTest1"), + MappingRuleName: to.Ptr("TestMapping"), + RetrievalStartDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-07-29T12:00:00.6554616Z"); return t }()), + TableName: to.Ptr("TestTable"), + }, + }, 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 = armkusto.DataConnectionsClientUpdateResponse{ + // DataConnectionClassification: &armkusto.CosmosDbDataConnection{ + // Name: to.Ptr("kustoCluster/KustoDatabase1/dataConnectionTest"), + // Type: to.Ptr("Microsoft.Kusto/Clusters/Databases/DataConnections"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/kustoCluster/Databases/KustoDatabase1/DataConnections/dataConnectionTest"), + // Kind: to.Ptr(armkusto.DataConnectionKindCosmosDb), + // Location: to.Ptr("westus"), + // Properties: &armkusto.CosmosDbDataConnectionProperties{ + // CosmosDbAccountResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.DocumentDb/databaseAccounts/cosmosDbAccountTest1"), + // CosmosDbContainer: to.Ptr("cosmosDbContainerTest"), + // CosmosDbDatabase: to.Ptr("cosmosDbDatabaseTest"), + // ManagedIdentityObjectID: to.Ptr("87654321-1234-1234-1234-123456789123"), + // ManagedIdentityResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.ManagedIdentity/userAssignedIdentities/managedidentityTest1"), + // MappingRuleName: to.Ptr("TestMapping"), + // RetrievalStartDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-07-29T12:00:00.6554616Z"); return t}()), + // TableName: to.Ptr("TestTable"), + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-07-07/examples/KustoDataConnectionsEventGridUpdate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoDataConnectionsEventGridUpdate.json func ExampleDataConnectionsClient_BeginUpdate_kustoDataConnectionsEventGridUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -284,11 +606,35 @@ func ExampleDataConnectionsClient_BeginUpdate_kustoDataConnectionsEventGridUpdat if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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 = armkusto.DataConnectionsClientUpdateResponse{ + // DataConnectionClassification: &armkusto.EventGridDataConnection{ + // Name: to.Ptr("kustoCluster/KustoDatabase8/dataConnectionTest"), + // Type: to.Ptr("Microsoft.Kusto/Clusters/Databases/DataConnections"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/kustoCluster/Databases/KustoDatabase8/DataConnections/KustoDataConnection9"), + // Kind: to.Ptr(armkusto.DataConnectionKindEventGrid), + // Location: to.Ptr("westus"), + // Properties: &armkusto.EventGridConnectionProperties{ + // BlobStorageEventType: to.Ptr(armkusto.BlobStorageEventTypeMicrosoftStorageBlobCreated), + // ConsumerGroup: to.Ptr("$Default"), + // DataFormat: to.Ptr(armkusto.EventGridDataFormatJSON), + // DatabaseRouting: to.Ptr(armkusto.DatabaseRoutingSingle), + // EventGridResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Storage/storageAccounts/teststorageaccount/providers/Microsoft.EventGrid/eventSubscriptions/eventSubscriptionTest"), + // EventHubResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest2"), + // IgnoreFirstRecord: to.Ptr(false), + // ManagedIdentityObjectID: to.Ptr("87654321-1234-1234-1234-123456789123"), + // ManagedIdentityResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.ManagedIdentity/userAssignedIdentities/managedidentityTest1"), + // MappingRuleName: to.Ptr("TestMapping"), + // StorageAccountResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Storage/storageAccounts/teststorageaccount"), + // TableName: to.Ptr("TestTable"), + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-07-07/examples/KustoDataConnectionsUpdate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoDataConnectionsUpdate.json func ExampleDataConnectionsClient_BeginUpdate_kustoDataConnectionsUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -315,11 +661,27 @@ func ExampleDataConnectionsClient_BeginUpdate_kustoDataConnectionsUpdate() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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 = armkusto.DataConnectionsClientUpdateResponse{ + // DataConnectionClassification: &armkusto.EventHubDataConnection{ + // Name: to.Ptr("kustoCluster/KustoDatabase8/dataConnectionTest"), + // Type: to.Ptr("Microsoft.Kusto/Clusters/Databases/DataConnections"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/kustoCluster/Databases/KustoDatabase8/DataConnections/dataConnectionTest"), + // Kind: to.Ptr(armkusto.DataConnectionKindEventHub), + // Location: to.Ptr("westus"), + // Properties: &armkusto.EventHubConnectionProperties{ + // Compression: to.Ptr(armkusto.CompressionNone), + // ConsumerGroup: to.Ptr("testConsumerGroup1"), + // EventHubResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHub/namespaces/eventhubTestns1/eventhubs/eventhubTest1"), + // ManagedIdentityResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.ManagedIdentity/userAssignedIdentities/managedidentityTest1"), + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-07-07/examples/KustoDataConnectionsDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoDataConnectionsDelete.json func ExampleDataConnectionsClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/kusto/armkusto/go.mod b/sdk/resourcemanager/kusto/armkusto/go.mod index e0ab412ef86b..31b1fad6b60a 100644 --- a/sdk/resourcemanager/kusto/armkusto/go.mod +++ b/sdk/resourcemanager/kusto/armkusto/go.mod @@ -4,13 +4,13 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.0.0 - github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.1.0 + github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.1 ) require ( github.com/Azure/azure-sdk-for-go/sdk/internal v1.0.0 // indirect - github.com/AzureAD/microsoft-authentication-library-for-go v0.5.1 // indirect - github.com/golang-jwt/jwt v3.2.1+incompatible // indirect + github.com/AzureAD/microsoft-authentication-library-for-go v0.8.1 // indirect + github.com/golang-jwt/jwt/v4 v4.4.2 // 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 diff --git a/sdk/resourcemanager/kusto/armkusto/go.sum b/sdk/resourcemanager/kusto/armkusto/go.sum index 8828b17b1853..67cfef6bdf6e 100644 --- a/sdk/resourcemanager/kusto/armkusto/go.sum +++ b/sdk/resourcemanager/kusto/armkusto/go.sum @@ -1,21 +1,19 @@ 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.1.0 h1:QkAcEIAKbNL4KoFr4SathZPhDhF4mVwpBMFlYjyAqy8= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.1.0/go.mod h1:bhXu1AjYL+wutSL/kpSq6s7733q2Rb0yuot9Zgfqa/0= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.1 h1:T8quHYlUGyb/oqtSTwqlCr1ilJHrDv+ZtpSfo+hm1BU= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.1/go.mod h1:gLa1CL2RNE4s7M3yopJ/p0iq5DdY6Yv5ZUt9MTRZOQM= 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.5.1 h1:BWe8a+f/t+7KY7zH2mqygeUD0t8hNFXe08p1Pb3/jKE= -github.com/AzureAD/microsoft-authentication-library-for-go v0.5.1/go.mod h1:Vt9sXTKwMyGcOxSmLDMnGPgqsUg7m8pe215qMLrDXw4= +github.com/AzureAD/microsoft-authentication-library-for-go v0.8.1 h1:oPdPEZFSbl7oSPEAIPMPBMUmiL+mqgzBJwM/9qYcwNg= +github.com/AzureAD/microsoft-authentication-library-for-go v0.8.1/go.mod h1:4qFor3D/HDsvBME35Xy9rwW9DecL+M2sNw1ybjPtwA0= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/dnaeon/go-vcr v1.1.0 h1:ReYa/UBrRyQdant9B4fNHGoCNKw6qh6P0fsdGmZpR7c= -github.com/golang-jwt/jwt 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= +github.com/golang-jwt/jwt/v4 v4.4.2 h1:rcc4lwaZgFMCZ5jxF9ABolDcIHdBytAFgqFPbSJQAYs= +github.com/golang-jwt/jwt/v4 v4.4.2/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= 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/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= @@ -24,7 +22,6 @@ golang.org/x/crypto v0.0.0-20220511200225-c6db032c6c88 h1:Tgea0cVUD0ivh5ADBX4Wwu 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-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= diff --git a/sdk/resourcemanager/kusto/armkusto/managedprivateendpoints_client.go b/sdk/resourcemanager/kusto/armkusto/managedprivateendpoints_client.go index cf168cd9b051..1d44e51cb479 100644 --- a/sdk/resourcemanager/kusto/armkusto/managedprivateendpoints_client.go +++ b/sdk/resourcemanager/kusto/armkusto/managedprivateendpoints_client.go @@ -32,10 +32,10 @@ type ManagedPrivateEndpointsClient struct { } // NewManagedPrivateEndpointsClient creates a new instance of ManagedPrivateEndpointsClient with the specified values. -// subscriptionID - Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID -// forms part of the URI for every service call. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID +// forms part of the URI for every service call. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewManagedPrivateEndpointsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ManagedPrivateEndpointsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -58,12 +58,13 @@ func NewManagedPrivateEndpointsClient(subscriptionID string, credential azcore.T // CheckNameAvailability - Checks that the managed private endpoints resource name is valid and is not already in use. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 -// resourceGroupName - The name of the resource group containing the Kusto cluster. -// clusterName - The name of the Kusto cluster. -// resourceName - The name of the resource. -// options - ManagedPrivateEndpointsClientCheckNameAvailabilityOptions contains the optional parameters for the ManagedPrivateEndpointsClient.CheckNameAvailability -// method. +// +// Generated from API version 2022-12-29 +// - resourceGroupName - The name of the resource group containing the Kusto cluster. +// - clusterName - The name of the Kusto cluster. +// - resourceName - The name of the resource. +// - options - ManagedPrivateEndpointsClientCheckNameAvailabilityOptions contains the optional parameters for the ManagedPrivateEndpointsClient.CheckNameAvailability +// method. func (client *ManagedPrivateEndpointsClient) CheckNameAvailability(ctx context.Context, resourceGroupName string, clusterName string, resourceName ManagedPrivateEndpointsCheckNameRequest, options *ManagedPrivateEndpointsClientCheckNameAvailabilityOptions) (ManagedPrivateEndpointsClientCheckNameAvailabilityResponse, error) { req, err := client.checkNameAvailabilityCreateRequest(ctx, resourceGroupName, clusterName, resourceName, options) if err != nil { @@ -99,7 +100,7 @@ func (client *ManagedPrivateEndpointsClient) checkNameAvailabilityCreateRequest( return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-07") + reqQP.Set("api-version", "2022-12-29") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, resourceName) @@ -116,13 +117,14 @@ func (client *ManagedPrivateEndpointsClient) checkNameAvailabilityHandleResponse // BeginCreateOrUpdate - Creates a managed private endpoint. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 -// resourceGroupName - The name of the resource group containing the Kusto cluster. -// clusterName - The name of the Kusto cluster. -// managedPrivateEndpointName - The name of the managed private endpoint. -// parameters - The managed private endpoint parameters. -// options - ManagedPrivateEndpointsClientBeginCreateOrUpdateOptions contains the optional parameters for the ManagedPrivateEndpointsClient.BeginCreateOrUpdate -// method. +// +// Generated from API version 2022-12-29 +// - resourceGroupName - The name of the resource group containing the Kusto cluster. +// - clusterName - The name of the Kusto cluster. +// - managedPrivateEndpointName - The name of the managed private endpoint. +// - parameters - The managed private endpoint parameters. +// - options - ManagedPrivateEndpointsClientBeginCreateOrUpdateOptions contains the optional parameters for the ManagedPrivateEndpointsClient.BeginCreateOrUpdate +// method. func (client *ManagedPrivateEndpointsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, clusterName string, managedPrivateEndpointName string, parameters ManagedPrivateEndpoint, options *ManagedPrivateEndpointsClientBeginCreateOrUpdateOptions) (*runtime.Poller[ManagedPrivateEndpointsClientCreateOrUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createOrUpdate(ctx, resourceGroupName, clusterName, managedPrivateEndpointName, parameters, options) @@ -137,7 +139,8 @@ func (client *ManagedPrivateEndpointsClient) BeginCreateOrUpdate(ctx context.Con // CreateOrUpdate - Creates a managed private endpoint. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 +// +// Generated from API version 2022-12-29 func (client *ManagedPrivateEndpointsClient) createOrUpdate(ctx context.Context, resourceGroupName string, clusterName string, managedPrivateEndpointName string, parameters ManagedPrivateEndpoint, options *ManagedPrivateEndpointsClientBeginCreateOrUpdateOptions) (*http.Response, error) { req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, clusterName, managedPrivateEndpointName, parameters, options) if err != nil { @@ -177,7 +180,7 @@ func (client *ManagedPrivateEndpointsClient) createOrUpdateCreateRequest(ctx con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-07") + reqQP.Set("api-version", "2022-12-29") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, parameters) @@ -185,12 +188,13 @@ func (client *ManagedPrivateEndpointsClient) createOrUpdateCreateRequest(ctx con // BeginDelete - Deletes a managed private endpoint. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 -// resourceGroupName - The name of the resource group containing the Kusto cluster. -// clusterName - The name of the Kusto cluster. -// managedPrivateEndpointName - The name of the managed private endpoint. -// options - ManagedPrivateEndpointsClientBeginDeleteOptions contains the optional parameters for the ManagedPrivateEndpointsClient.BeginDelete -// method. +// +// Generated from API version 2022-12-29 +// - resourceGroupName - The name of the resource group containing the Kusto cluster. +// - clusterName - The name of the Kusto cluster. +// - managedPrivateEndpointName - The name of the managed private endpoint. +// - options - ManagedPrivateEndpointsClientBeginDeleteOptions contains the optional parameters for the ManagedPrivateEndpointsClient.BeginDelete +// method. func (client *ManagedPrivateEndpointsClient) BeginDelete(ctx context.Context, resourceGroupName string, clusterName string, managedPrivateEndpointName string, options *ManagedPrivateEndpointsClientBeginDeleteOptions) (*runtime.Poller[ManagedPrivateEndpointsClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, clusterName, managedPrivateEndpointName, options) @@ -205,7 +209,8 @@ func (client *ManagedPrivateEndpointsClient) BeginDelete(ctx context.Context, re // Delete - Deletes a managed private endpoint. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 +// +// Generated from API version 2022-12-29 func (client *ManagedPrivateEndpointsClient) deleteOperation(ctx context.Context, resourceGroupName string, clusterName string, managedPrivateEndpointName string, options *ManagedPrivateEndpointsClientBeginDeleteOptions) (*http.Response, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, clusterName, managedPrivateEndpointName, options) if err != nil { @@ -245,7 +250,7 @@ func (client *ManagedPrivateEndpointsClient) deleteCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-07") + reqQP.Set("api-version", "2022-12-29") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -253,12 +258,13 @@ func (client *ManagedPrivateEndpointsClient) deleteCreateRequest(ctx context.Con // Get - Gets a managed private endpoint. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 -// resourceGroupName - The name of the resource group containing the Kusto cluster. -// clusterName - The name of the Kusto cluster. -// managedPrivateEndpointName - The name of the managed private endpoint. -// options - ManagedPrivateEndpointsClientGetOptions contains the optional parameters for the ManagedPrivateEndpointsClient.Get -// method. +// +// Generated from API version 2022-12-29 +// - resourceGroupName - The name of the resource group containing the Kusto cluster. +// - clusterName - The name of the Kusto cluster. +// - managedPrivateEndpointName - The name of the managed private endpoint. +// - options - ManagedPrivateEndpointsClientGetOptions contains the optional parameters for the ManagedPrivateEndpointsClient.Get +// method. func (client *ManagedPrivateEndpointsClient) Get(ctx context.Context, resourceGroupName string, clusterName string, managedPrivateEndpointName string, options *ManagedPrivateEndpointsClientGetOptions) (ManagedPrivateEndpointsClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, clusterName, managedPrivateEndpointName, options) if err != nil { @@ -298,7 +304,7 @@ func (client *ManagedPrivateEndpointsClient) getCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-07") + reqQP.Set("api-version", "2022-12-29") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -314,11 +320,12 @@ func (client *ManagedPrivateEndpointsClient) getHandleResponse(resp *http.Respon } // NewListPager - Returns the list of managed private endpoints. -// Generated from API version 2022-07-07 -// resourceGroupName - The name of the resource group containing the Kusto cluster. -// clusterName - The name of the Kusto cluster. -// options - ManagedPrivateEndpointsClientListOptions contains the optional parameters for the ManagedPrivateEndpointsClient.List -// method. +// +// Generated from API version 2022-12-29 +// - resourceGroupName - The name of the resource group containing the Kusto cluster. +// - clusterName - The name of the Kusto cluster. +// - options - ManagedPrivateEndpointsClientListOptions contains the optional parameters for the ManagedPrivateEndpointsClient.NewListPager +// method. func (client *ManagedPrivateEndpointsClient) NewListPager(resourceGroupName string, clusterName string, options *ManagedPrivateEndpointsClientListOptions) *runtime.Pager[ManagedPrivateEndpointsClientListResponse] { return runtime.NewPager(runtime.PagingHandler[ManagedPrivateEndpointsClientListResponse]{ More: func(page ManagedPrivateEndpointsClientListResponse) bool { @@ -361,7 +368,7 @@ func (client *ManagedPrivateEndpointsClient) listCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-07") + reqQP.Set("api-version", "2022-12-29") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -378,13 +385,14 @@ func (client *ManagedPrivateEndpointsClient) listHandleResponse(resp *http.Respo // BeginUpdate - Updates a managed private endpoint. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 -// resourceGroupName - The name of the resource group containing the Kusto cluster. -// clusterName - The name of the Kusto cluster. -// managedPrivateEndpointName - The name of the managed private endpoint. -// parameters - The managed private endpoint parameters. -// options - ManagedPrivateEndpointsClientBeginUpdateOptions contains the optional parameters for the ManagedPrivateEndpointsClient.BeginUpdate -// method. +// +// Generated from API version 2022-12-29 +// - resourceGroupName - The name of the resource group containing the Kusto cluster. +// - clusterName - The name of the Kusto cluster. +// - managedPrivateEndpointName - The name of the managed private endpoint. +// - parameters - The managed private endpoint parameters. +// - options - ManagedPrivateEndpointsClientBeginUpdateOptions contains the optional parameters for the ManagedPrivateEndpointsClient.BeginUpdate +// method. func (client *ManagedPrivateEndpointsClient) BeginUpdate(ctx context.Context, resourceGroupName string, clusterName string, managedPrivateEndpointName string, parameters ManagedPrivateEndpoint, options *ManagedPrivateEndpointsClientBeginUpdateOptions) (*runtime.Poller[ManagedPrivateEndpointsClientUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.update(ctx, resourceGroupName, clusterName, managedPrivateEndpointName, parameters, options) @@ -399,7 +407,8 @@ func (client *ManagedPrivateEndpointsClient) BeginUpdate(ctx context.Context, re // Update - Updates a managed private endpoint. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 +// +// Generated from API version 2022-12-29 func (client *ManagedPrivateEndpointsClient) update(ctx context.Context, resourceGroupName string, clusterName string, managedPrivateEndpointName string, parameters ManagedPrivateEndpoint, options *ManagedPrivateEndpointsClientBeginUpdateOptions) (*http.Response, error) { req, err := client.updateCreateRequest(ctx, resourceGroupName, clusterName, managedPrivateEndpointName, parameters, options) if err != nil { @@ -439,7 +448,7 @@ func (client *ManagedPrivateEndpointsClient) updateCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-07") + reqQP.Set("api-version", "2022-12-29") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, parameters) diff --git a/sdk/resourcemanager/kusto/armkusto/managedprivateendpoints_client_example_test.go b/sdk/resourcemanager/kusto/armkusto/managedprivateendpoints_client_example_test.go index 3953fd8a87db..0d5f0bc77994 100644 --- a/sdk/resourcemanager/kusto/armkusto/managedprivateendpoints_client_example_test.go +++ b/sdk/resourcemanager/kusto/armkusto/managedprivateendpoints_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armkusto_test @@ -17,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/kusto/armkusto" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-07-07/examples/KustoManagedPrivateEndpointsCheckNameAvailability.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoManagedPrivateEndpointsCheckNameAvailability.json func ExampleManagedPrivateEndpointsClient_CheckNameAvailability() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -35,11 +36,17 @@ func ExampleManagedPrivateEndpointsClient_CheckNameAvailability() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.CheckNameResult = armkusto.CheckNameResult{ + // Name: to.Ptr("pme1"), + // Message: to.Ptr("Name 'pme1' is already taken. Please specify a different name"), + // NameAvailable: to.Ptr(false), + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-07-07/examples/KustoManagedPrivateEndpointsList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoManagedPrivateEndpointsList.json func ExampleManagedPrivateEndpointsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -52,18 +59,42 @@ func ExampleManagedPrivateEndpointsClient_NewListPager() { } pager := client.NewListPager("kustorptest", "kustoCluster", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.ManagedPrivateEndpointListResult = armkusto.ManagedPrivateEndpointListResult{ + // Value: []*armkusto.ManagedPrivateEndpoint{ + // { + // Name: to.Ptr("kustoCluster/KustoDatabase8/kustomanagedPrivateEndpoint1"), + // Type: to.Ptr("Microsoft.Kusto/Clusters/ManagedPrivateEndpoints"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/kustoCluster/ManagedPrivateEndpoints/kustoManagedPrivateEndpoint1"), + // Properties: &armkusto.ManagedPrivateEndpointProperties{ + // GroupID: to.Ptr("blob"), + // PrivateLinkResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Storage/storageAccounts/storageAccountTest"), + // RequestMessage: to.Ptr("Please Approve."), + // }, + // }, + // { + // Name: to.Ptr("kustoCluster/KustoDatabase8/kustomanagedPrivateEndpoint2"), + // Type: to.Ptr("Microsoft.Kusto/Clusters/ManagedPrivateEndpoints"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/kustoCluster/ManagedPrivateEndpoints/kustoManagedPrivateEndpoint2"), + // Properties: &armkusto.ManagedPrivateEndpointProperties{ + // GroupID: to.Ptr("namespace"), + // PrivateLinkResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.EventHubs/storageAccounts/eventHubTest"), + // RequestMessage: to.Ptr("Please Approve."), + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-07-07/examples/KustoManagedPrivateEndpointsGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoManagedPrivateEndpointsGet.json func ExampleManagedPrivateEndpointsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -78,11 +109,22 @@ func ExampleManagedPrivateEndpointsClient_Get() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.ManagedPrivateEndpoint = armkusto.ManagedPrivateEndpoint{ + // Name: to.Ptr("kustoCluster/KustoDatabase8/managedPrivateEndpointTest"), + // Type: to.Ptr("Microsoft.Kusto/Clusters/ManagedPrivateEndpoints"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/kustoCluster/ManagedPrivateEndpoints/managedPrivateEndpointTest"), + // Properties: &armkusto.ManagedPrivateEndpointProperties{ + // GroupID: to.Ptr("blob"), + // PrivateLinkResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Storage/storageAccounts/storageAccountTest"), + // RequestMessage: to.Ptr("Please Approve."), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-07-07/examples/KustoManagedPrivateEndpointsCreateOrUpdate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoManagedPrivateEndpointsCreateOrUpdate.json func ExampleManagedPrivateEndpointsClient_BeginCreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -107,11 +149,22 @@ func ExampleManagedPrivateEndpointsClient_BeginCreateOrUpdate() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.ManagedPrivateEndpoint = armkusto.ManagedPrivateEndpoint{ + // Name: to.Ptr("kustoCluster/KustoDatabase8/managedPrivateEndpointTest"), + // Type: to.Ptr("Microsoft.Kusto/Clusters/ManagedPrivateEndpoints"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/kustoCluster/ManagedPrivateEndpoints/managedPrivateEndpointTest"), + // Properties: &armkusto.ManagedPrivateEndpointProperties{ + // GroupID: to.Ptr("blob"), + // PrivateLinkResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Storage/storageAccounts/storageAccountTest"), + // RequestMessage: to.Ptr("Please Approve."), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-07-07/examples/KustoManagedPrivateEndpointsUpdate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoManagedPrivateEndpointsUpdate.json func ExampleManagedPrivateEndpointsClient_BeginUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -136,11 +189,22 @@ func ExampleManagedPrivateEndpointsClient_BeginUpdate() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.ManagedPrivateEndpoint = armkusto.ManagedPrivateEndpoint{ + // Name: to.Ptr("kustoCluster/KustoDatabase8/managedPrivateEndpointTest"), + // Type: to.Ptr("Microsoft.Kusto/Clusters/ManagedPrivateEndpoints"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/kustoCluster/ManagedPrivateEndpoints/managedPrivateEndpointTest"), + // Properties: &armkusto.ManagedPrivateEndpointProperties{ + // GroupID: to.Ptr("blob"), + // PrivateLinkResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Storage/storageAccounts/storageAccountTest"), + // RequestMessage: to.Ptr("Please Approve Managed Private Endpoint Request."), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-07-07/examples/KustoManagedPrivateEndpointsDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoManagedPrivateEndpointsDelete.json func ExampleManagedPrivateEndpointsClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/kusto/armkusto/models.go b/sdk/resourcemanager/kusto/armkusto/models.go index 7e74ffe8c0ef..5dc583add181 100644 --- a/sdk/resourcemanager/kusto/armkusto/models.go +++ b/sdk/resourcemanager/kusto/armkusto/models.go @@ -107,7 +107,7 @@ type AttachedDatabaseConfigurationsClientGetOptions struct { // placeholder for future optional parameters } -// AttachedDatabaseConfigurationsClientListByClusterOptions contains the optional parameters for the AttachedDatabaseConfigurationsClient.ListByCluster +// AttachedDatabaseConfigurationsClientListByClusterOptions contains the optional parameters for the AttachedDatabaseConfigurationsClient.NewListByClusterPager // method. type AttachedDatabaseConfigurationsClientListByClusterOptions struct { // placeholder for future optional parameters @@ -285,7 +285,7 @@ type ClusterPrincipalAssignmentsClientGetOptions struct { // placeholder for future optional parameters } -// ClusterPrincipalAssignmentsClientListOptions contains the optional parameters for the ClusterPrincipalAssignmentsClient.List +// ClusterPrincipalAssignmentsClientListOptions contains the optional parameters for the ClusterPrincipalAssignmentsClient.NewListPager // method. type ClusterPrincipalAssignmentsClientListOptions struct { // placeholder for future optional parameters @@ -352,6 +352,9 @@ type ClusterProperties struct { // KeyVault properties for the cluster encryption. KeyVaultProperties *KeyVaultProperties `json:"keyVaultProperties,omitempty"` + // List of the cluster's language extensions. + LanguageExtensions *LanguageExtensionsList `json:"languageExtensions,omitempty"` + // Optimized auto scale definition. OptimizedAutoscale *OptimizedAutoscale `json:"optimizedAutoscale,omitempty"` @@ -377,9 +380,6 @@ type ClusterProperties struct { // READ-ONLY; The cluster data ingestion URI. DataIngestionURI *string `json:"dataIngestionUri,omitempty" azure:"ro"` - // READ-ONLY; List of the cluster's language extensions. - LanguageExtensions *LanguageExtensionsList `json:"languageExtensions,omitempty" azure:"ro"` - // READ-ONLY; A list of private endpoint connections. PrivateEndpointConnections []*PrivateEndpointConnection `json:"privateEndpointConnections,omitempty" azure:"ro"` @@ -501,40 +501,42 @@ type ClustersClientGetOptions struct { // placeholder for future optional parameters } -// ClustersClientListByResourceGroupOptions contains the optional parameters for the ClustersClient.ListByResourceGroup method. +// ClustersClientListByResourceGroupOptions contains the optional parameters for the ClustersClient.NewListByResourceGroupPager +// method. type ClustersClientListByResourceGroupOptions struct { // placeholder for future optional parameters } -// ClustersClientListFollowerDatabasesOptions contains the optional parameters for the ClustersClient.ListFollowerDatabases +// ClustersClientListFollowerDatabasesOptions contains the optional parameters for the ClustersClient.NewListFollowerDatabasesPager // method. type ClustersClientListFollowerDatabasesOptions struct { // placeholder for future optional parameters } -// ClustersClientListLanguageExtensionsOptions contains the optional parameters for the ClustersClient.ListLanguageExtensions +// ClustersClientListLanguageExtensionsOptions contains the optional parameters for the ClustersClient.NewListLanguageExtensionsPager // method. type ClustersClientListLanguageExtensionsOptions struct { // placeholder for future optional parameters } -// ClustersClientListOptions contains the optional parameters for the ClustersClient.List method. +// ClustersClientListOptions contains the optional parameters for the ClustersClient.NewListPager method. type ClustersClientListOptions struct { // placeholder for future optional parameters } -// ClustersClientListOutboundNetworkDependenciesEndpointsOptions contains the optional parameters for the ClustersClient.ListOutboundNetworkDependenciesEndpoints +// ClustersClientListOutboundNetworkDependenciesEndpointsOptions contains the optional parameters for the ClustersClient.NewListOutboundNetworkDependenciesEndpointsPager // method. type ClustersClientListOutboundNetworkDependenciesEndpointsOptions struct { // placeholder for future optional parameters } -// ClustersClientListSKUsByResourceOptions contains the optional parameters for the ClustersClient.ListSKUsByResource method. +// ClustersClientListSKUsByResourceOptions contains the optional parameters for the ClustersClient.NewListSKUsByResourcePager +// method. type ClustersClientListSKUsByResourceOptions struct { // placeholder for future optional parameters } -// ClustersClientListSKUsOptions contains the optional parameters for the ClustersClient.ListSKUs method. +// ClustersClientListSKUsOptions contains the optional parameters for the ClustersClient.NewListSKUsPager method. type ClustersClientListSKUsOptions struct { // placeholder for future optional parameters } @@ -547,10 +549,74 @@ type ComponentsSgqdofSchemasIdentityPropertiesUserassignedidentitiesAdditionalpr PrincipalID *string `json:"principalId,omitempty" azure:"ro"` } +// CosmosDbDataConnection - Class representing a CosmosDb data connection. +type CosmosDbDataConnection struct { + // REQUIRED; Kind of the endpoint for the data connection + Kind *DataConnectionKind `json:"kind,omitempty"` + + // Resource location. + Location *string `json:"location,omitempty"` + + // The properties of the CosmosDb data connection. + Properties *CosmosDbDataConnectionProperties `json:"properties,omitempty"` + + // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string `json:"id,omitempty" azure:"ro"` + + // READ-ONLY; The name of the resource + Name *string `json:"name,omitempty" azure:"ro"` + + // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string `json:"type,omitempty" azure:"ro"` +} + +// GetDataConnection implements the DataConnectionClassification interface for type CosmosDbDataConnection. +func (c *CosmosDbDataConnection) GetDataConnection() *DataConnection { + return &DataConnection{ + Location: c.Location, + Kind: c.Kind, + ID: c.ID, + Name: c.Name, + Type: c.Type, + } +} + +// CosmosDbDataConnectionProperties - Class representing the Kusto CosmosDb data connection properties. +type CosmosDbDataConnectionProperties struct { + // REQUIRED; The resource ID of the Cosmos DB account used to create the data connection. + CosmosDbAccountResourceID *string `json:"cosmosDbAccountResourceId,omitempty"` + + // REQUIRED; The name of an existing container in the Cosmos DB database. + CosmosDbContainer *string `json:"cosmosDbContainer,omitempty"` + + // REQUIRED; The name of an existing database in the Cosmos DB account. + CosmosDbDatabase *string `json:"cosmosDbDatabase,omitempty"` + + // REQUIRED; The resource ID of a managed system or user-assigned identity. The identity is used to authenticate with Cosmos + // DB. + ManagedIdentityResourceID *string `json:"managedIdentityResourceId,omitempty"` + + // REQUIRED; The case-sensitive name of the existing target table in your cluster. Retrieved data is ingested into this table. + TableName *string `json:"tableName,omitempty"` + + // The name of an existing mapping rule to use when ingesting the retrieved data. + MappingRuleName *string `json:"mappingRuleName,omitempty"` + + // Optional. If defined, the data connection retrieves Cosmos DB documents created or updated after the specified retrieval + // start date. + RetrievalStartDate *time.Time `json:"retrievalStartDate,omitempty"` + + // READ-ONLY; The object ID of the managed identity resource. + ManagedIdentityObjectID *string `json:"managedIdentityObjectId,omitempty" azure:"ro"` + + // READ-ONLY; The provisioned state of the resource. + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` +} + // DataConnectionClassification provides polymorphic access to related types. // Call the interface's GetDataConnection() method to access the common type. // Use a type switch to determine the concrete type. The possible types are: -// - *DataConnection, *EventGridDataConnection, *EventHubDataConnection, *IotHubDataConnection +// - *CosmosDbDataConnection, *DataConnection, *EventGridDataConnection, *EventHubDataConnection, *IotHubDataConnection type DataConnectionClassification interface { // GetDataConnection returns the DataConnection content of the underlying type. GetDataConnection() *DataConnection @@ -651,7 +717,7 @@ type DataConnectionsClientGetOptions struct { // placeholder for future optional parameters } -// DataConnectionsClientListByDatabaseOptions contains the optional parameters for the DataConnectionsClient.ListByDatabase +// DataConnectionsClientListByDatabaseOptions contains the optional parameters for the DataConnectionsClient.NewListByDatabasePager // method. type DataConnectionsClientListByDatabaseOptions struct { // placeholder for future optional parameters @@ -774,7 +840,7 @@ type DatabasePrincipalAssignmentsClientGetOptions struct { // placeholder for future optional parameters } -// DatabasePrincipalAssignmentsClientListOptions contains the optional parameters for the DatabasePrincipalAssignmentsClient.List +// DatabasePrincipalAssignmentsClientListOptions contains the optional parameters for the DatabasePrincipalAssignmentsClient.NewListPager // method. type DatabasePrincipalAssignmentsClientListOptions struct { // placeholder for future optional parameters @@ -867,12 +933,12 @@ type DatabasesClientGetOptions struct { // placeholder for future optional parameters } -// DatabasesClientListByClusterOptions contains the optional parameters for the DatabasesClient.ListByCluster method. +// DatabasesClientListByClusterOptions contains the optional parameters for the DatabasesClient.NewListByClusterPager method. type DatabasesClientListByClusterOptions struct { // placeholder for future optional parameters } -// DatabasesClientListPrincipalsOptions contains the optional parameters for the DatabasesClient.ListPrincipals method. +// DatabasesClientListPrincipalsOptions contains the optional parameters for the DatabasesClient.NewListPrincipalsPager method. type DatabasesClientListPrincipalsOptions struct { // placeholder for future optional parameters } @@ -1174,6 +1240,9 @@ type KeyVaultProperties struct { // LanguageExtension - The language extension object. type LanguageExtension struct { + // The language extension image name. + LanguageExtensionImageName *LanguageExtensionImageName `json:"languageExtensionImageName,omitempty"` + // The language extension name. LanguageExtensionName *LanguageExtensionName `json:"languageExtensionName,omitempty"` } @@ -1274,7 +1343,8 @@ type ManagedPrivateEndpointsClientGetOptions struct { // placeholder for future optional parameters } -// ManagedPrivateEndpointsClientListOptions contains the optional parameters for the ManagedPrivateEndpointsClient.List method. +// ManagedPrivateEndpointsClientListOptions contains the optional parameters for the ManagedPrivateEndpointsClient.NewListPager +// method. type ManagedPrivateEndpointsClientListOptions struct { // placeholder for future optional parameters } @@ -1291,7 +1361,7 @@ type Operation struct { Origin *string `json:"origin,omitempty"` // Properties of the operation. - Properties interface{} `json:"properties,omitempty"` + Properties any `json:"properties,omitempty"` } // OperationDisplay - The object that describes the operation. @@ -1367,7 +1437,7 @@ type OperationResultProperties struct { ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` } -// OperationsClientListOptions contains the optional parameters for the OperationsClient.List method. +// OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method. type OperationsClientListOptions struct { // placeholder for future optional parameters } @@ -1499,7 +1569,7 @@ type PrivateEndpointConnectionsClientGetOptions struct { // placeholder for future optional parameters } -// PrivateEndpointConnectionsClientListOptions contains the optional parameters for the PrivateEndpointConnectionsClient.List +// PrivateEndpointConnectionsClientListOptions contains the optional parameters for the PrivateEndpointConnectionsClient.NewListPager // method. type PrivateEndpointConnectionsClientListOptions struct { // placeholder for future optional parameters @@ -1552,7 +1622,8 @@ type PrivateLinkResourcesClientGetOptions struct { // placeholder for future optional parameters } -// PrivateLinkResourcesClientListOptions contains the optional parameters for the PrivateLinkResourcesClient.List method. +// PrivateLinkResourcesClientListOptions contains the optional parameters for the PrivateLinkResourcesClient.NewListPager +// method. type PrivateLinkResourcesClientListOptions struct { // placeholder for future optional parameters } @@ -1684,6 +1755,24 @@ type ReadWriteDatabaseProperties struct { Statistics *DatabaseStatistics `json:"statistics,omitempty" azure:"ro"` } +// ResourceSKUCapabilities - Describes The SKU capabilities object. +type ResourceSKUCapabilities struct { + // READ-ONLY; An invariant to describe the feature. + Name *string `json:"name,omitempty" azure:"ro"` + + // READ-ONLY; An invariant if the feature is measured by quantity. + Value *string `json:"value,omitempty" azure:"ro"` +} + +// ResourceSKUZoneDetails - Describes The zonal capabilities of a SKU. +type ResourceSKUZoneDetails struct { + // READ-ONLY; A list of capabilities that are available for the SKU in the specified list of zones. + Capabilities []*ResourceSKUCapabilities `json:"capabilities,omitempty" azure:"ro"` + + // READ-ONLY; The set of zones that the SKU is available in with the specified capabilities. + Name []*string `json:"name,omitempty" azure:"ro"` +} + // SKUDescription - The Kusto SKU description of given resource type type SKUDescription struct { // READ-ONLY; Locations and zones @@ -1699,7 +1788,7 @@ type SKUDescription struct { ResourceType *string `json:"resourceType,omitempty" azure:"ro"` // READ-ONLY; The restrictions because of which SKU cannot be used - Restrictions []interface{} `json:"restrictions,omitempty" azure:"ro"` + Restrictions []any `json:"restrictions,omitempty" azure:"ro"` // READ-ONLY; The tier of the SKU Tier *string `json:"tier,omitempty" azure:"ro"` @@ -1716,10 +1805,18 @@ type SKULocationInfoItem struct { // REQUIRED; The available location of the SKU. Location *string `json:"location,omitempty"` + // Gets details of capabilities available to a SKU in specific zones. + ZoneDetails []*ResourceSKUZoneDetails `json:"zoneDetails,omitempty"` + // The available zone of the SKU. Zones []*string `json:"zones,omitempty"` } +// SKUsClientListOptions contains the optional parameters for the SKUsClient.NewListPager method. +type SKUsClientListOptions struct { + // placeholder for future optional parameters +} + // Script - Class representing a database script. type Script struct { // The database script. @@ -1805,7 +1902,7 @@ type ScriptsClientGetOptions struct { // placeholder for future optional parameters } -// ScriptsClientListByDatabaseOptions contains the optional parameters for the ScriptsClient.ListByDatabase method. +// ScriptsClientListByDatabaseOptions contains the optional parameters for the ScriptsClient.NewListByDatabasePager method. type ScriptsClientListByDatabaseOptions struct { // placeholder for future optional parameters } @@ -1833,13 +1930,19 @@ type SystemData struct { // TableLevelSharingProperties - Tables that will be included and excluded in the follower database type TableLevelSharingProperties struct { - // List of external tables exclude from the follower database + // List of external tables to exclude from the follower database ExternalTablesToExclude []*string `json:"externalTablesToExclude,omitempty"` // List of external tables to include in the follower database ExternalTablesToInclude []*string `json:"externalTablesToInclude,omitempty"` - // List of materialized views exclude from the follower database + // List of functions to exclude from the follower database + FunctionsToExclude []*string `json:"functionsToExclude,omitempty"` + + // List of functions to include in the follower database + FunctionsToInclude []*string `json:"functionsToInclude,omitempty"` + + // List of materialized views to exclude from the follower database MaterializedViewsToExclude []*string `json:"materializedViewsToExclude,omitempty"` // List of materialized views to include in the follower database diff --git a/sdk/resourcemanager/kusto/armkusto/models_serde.go b/sdk/resourcemanager/kusto/armkusto/models_serde.go index cf67173e736a..f8554d1462ad 100644 --- a/sdk/resourcemanager/kusto/armkusto/models_serde.go +++ b/sdk/resourcemanager/kusto/armkusto/models_serde.go @@ -18,7 +18,7 @@ import ( // MarshalJSON implements the json.Marshaller interface for type AcceptedAudiences. func (a AcceptedAudiences) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "value", a.Value) return json.Marshal(objectMap) } @@ -45,7 +45,7 @@ func (a *AcceptedAudiences) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AttachedDatabaseConfiguration. func (a AttachedDatabaseConfiguration) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", a.ID) populate(objectMap, "location", a.Location) populate(objectMap, "name", a.Name) @@ -88,7 +88,7 @@ func (a *AttachedDatabaseConfiguration) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AttachedDatabaseConfigurationListResult. func (a AttachedDatabaseConfigurationListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "value", a.Value) return json.Marshal(objectMap) } @@ -115,7 +115,7 @@ func (a *AttachedDatabaseConfigurationListResult) UnmarshalJSON(data []byte) err // MarshalJSON implements the json.Marshaller interface for type AttachedDatabaseConfigurationProperties. func (a AttachedDatabaseConfigurationProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "attachedDatabaseNames", a.AttachedDatabaseNames) populate(objectMap, "clusterResourceId", a.ClusterResourceID) populate(objectMap, "databaseName", a.DatabaseName) @@ -170,7 +170,7 @@ func (a *AttachedDatabaseConfigurationProperties) UnmarshalJSON(data []byte) err // MarshalJSON implements the json.Marshaller interface for type AttachedDatabaseConfigurationsCheckNameRequest. func (a AttachedDatabaseConfigurationsCheckNameRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "name", a.Name) objectMap["type"] = "Microsoft.Kusto/clusters/attachedDatabaseConfigurations" return json.Marshal(objectMap) @@ -201,7 +201,7 @@ func (a *AttachedDatabaseConfigurationsCheckNameRequest) UnmarshalJSON(data []by // MarshalJSON implements the json.Marshaller interface for type AzureCapacity. func (a AzureCapacity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "default", a.Default) populate(objectMap, "maximum", a.Maximum) populate(objectMap, "minimum", a.Minimum) @@ -240,7 +240,7 @@ func (a *AzureCapacity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureResourceSKU. func (a AzureResourceSKU) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "capacity", a.Capacity) populate(objectMap, "resourceType", a.ResourceType) populate(objectMap, "sku", a.SKU) @@ -275,7 +275,7 @@ func (a *AzureResourceSKU) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureSKU. func (a AzureSKU) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "capacity", a.Capacity) populate(objectMap, "name", a.Name) populate(objectMap, "tier", a.Tier) @@ -310,7 +310,7 @@ func (a *AzureSKU) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CheckNameRequest. func (c CheckNameRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "name", c.Name) populate(objectMap, "type", c.Type) return json.Marshal(objectMap) @@ -341,7 +341,7 @@ func (c *CheckNameRequest) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CheckNameResult. func (c CheckNameResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "message", c.Message) populate(objectMap, "name", c.Name) populate(objectMap, "nameAvailable", c.NameAvailable) @@ -380,7 +380,7 @@ func (c *CheckNameResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Cluster. func (c Cluster) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "etag", c.Etag) populate(objectMap, "id", c.ID) populate(objectMap, "identity", c.Identity) @@ -447,7 +447,7 @@ func (c *Cluster) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ClusterCheckNameRequest. func (c ClusterCheckNameRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "name", c.Name) objectMap["type"] = "Microsoft.Kusto/clusters" return json.Marshal(objectMap) @@ -478,7 +478,7 @@ func (c *ClusterCheckNameRequest) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ClusterListResult. func (c ClusterListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "value", c.Value) return json.Marshal(objectMap) } @@ -505,7 +505,7 @@ func (c *ClusterListResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ClusterPrincipalAssignment. func (c ClusterPrincipalAssignment) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", c.ID) populate(objectMap, "name", c.Name) populate(objectMap, "properties", c.Properties) @@ -544,7 +544,7 @@ func (c *ClusterPrincipalAssignment) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ClusterPrincipalAssignmentCheckNameRequest. func (c ClusterPrincipalAssignmentCheckNameRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "name", c.Name) objectMap["type"] = "Microsoft.Kusto/clusters/principalAssignments" return json.Marshal(objectMap) @@ -575,7 +575,7 @@ func (c *ClusterPrincipalAssignmentCheckNameRequest) UnmarshalJSON(data []byte) // MarshalJSON implements the json.Marshaller interface for type ClusterPrincipalAssignmentListResult. func (c ClusterPrincipalAssignmentListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "value", c.Value) return json.Marshal(objectMap) } @@ -602,7 +602,7 @@ func (c *ClusterPrincipalAssignmentListResult) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type ClusterPrincipalProperties. func (c ClusterPrincipalProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "aadObjectId", c.AADObjectID) populate(objectMap, "principalId", c.PrincipalID) populate(objectMap, "principalName", c.PrincipalName) @@ -657,7 +657,7 @@ func (c *ClusterPrincipalProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ClusterProperties. func (c ClusterProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "acceptedAudiences", c.AcceptedAudiences) populate(objectMap, "allowedFqdnList", c.AllowedFqdnList) populate(objectMap, "allowedIpRangeList", c.AllowedIPRangeList) @@ -776,7 +776,7 @@ func (c *ClusterProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ClusterUpdate. func (c ClusterUpdate) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", c.ID) populate(objectMap, "identity", c.Identity) populate(objectMap, "location", c.Location) @@ -831,7 +831,7 @@ func (c *ClusterUpdate) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ComponentsSgqdofSchemasIdentityPropertiesUserassignedidentitiesAdditionalproperties. func (c ComponentsSgqdofSchemasIdentityPropertiesUserassignedidentitiesAdditionalproperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "clientId", c.ClientID) populate(objectMap, "principalId", c.PrincipalID) return json.Marshal(objectMap) @@ -860,9 +860,115 @@ func (c *ComponentsSgqdofSchemasIdentityPropertiesUserassignedidentitiesAddition return nil } +// MarshalJSON implements the json.Marshaller interface for type CosmosDbDataConnection. +func (c CosmosDbDataConnection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", c.ID) + objectMap["kind"] = DataConnectionKindCosmosDb + populate(objectMap, "location", c.Location) + populate(objectMap, "name", c.Name) + populate(objectMap, "properties", c.Properties) + populate(objectMap, "type", c.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CosmosDbDataConnection. +func (c *CosmosDbDataConnection) 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 "id": + err = unpopulate(val, "ID", &c.ID) + delete(rawMsg, key) + case "kind": + err = unpopulate(val, "Kind", &c.Kind) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &c.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &c.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &c.Properties) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &c.Type) + 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 CosmosDbDataConnectionProperties. +func (c CosmosDbDataConnectionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "cosmosDbAccountResourceId", c.CosmosDbAccountResourceID) + populate(objectMap, "cosmosDbContainer", c.CosmosDbContainer) + populate(objectMap, "cosmosDbDatabase", c.CosmosDbDatabase) + populate(objectMap, "managedIdentityObjectId", c.ManagedIdentityObjectID) + populate(objectMap, "managedIdentityResourceId", c.ManagedIdentityResourceID) + populate(objectMap, "mappingRuleName", c.MappingRuleName) + populate(objectMap, "provisioningState", c.ProvisioningState) + populateTimeRFC3339(objectMap, "retrievalStartDate", c.RetrievalStartDate) + populate(objectMap, "tableName", c.TableName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CosmosDbDataConnectionProperties. +func (c *CosmosDbDataConnectionProperties) 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 "cosmosDbAccountResourceId": + err = unpopulate(val, "CosmosDbAccountResourceID", &c.CosmosDbAccountResourceID) + delete(rawMsg, key) + case "cosmosDbContainer": + err = unpopulate(val, "CosmosDbContainer", &c.CosmosDbContainer) + delete(rawMsg, key) + case "cosmosDbDatabase": + err = unpopulate(val, "CosmosDbDatabase", &c.CosmosDbDatabase) + delete(rawMsg, key) + case "managedIdentityObjectId": + err = unpopulate(val, "ManagedIdentityObjectID", &c.ManagedIdentityObjectID) + delete(rawMsg, key) + case "managedIdentityResourceId": + err = unpopulate(val, "ManagedIdentityResourceID", &c.ManagedIdentityResourceID) + delete(rawMsg, key) + case "mappingRuleName": + err = unpopulate(val, "MappingRuleName", &c.MappingRuleName) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &c.ProvisioningState) + delete(rawMsg, key) + case "retrievalStartDate": + err = unpopulateTimeRFC3339(val, "RetrievalStartDate", &c.RetrievalStartDate) + delete(rawMsg, key) + case "tableName": + err = unpopulate(val, "TableName", &c.TableName) + 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 DataConnection. func (d DataConnection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", d.ID) objectMap["kind"] = d.Kind populate(objectMap, "location", d.Location) @@ -905,7 +1011,7 @@ func (d *DataConnection) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DataConnectionCheckNameRequest. func (d DataConnectionCheckNameRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "name", d.Name) objectMap["type"] = "Microsoft.Kusto/clusters/databases/dataConnections" return json.Marshal(objectMap) @@ -936,7 +1042,7 @@ func (d *DataConnectionCheckNameRequest) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DataConnectionListResult. func (d DataConnectionListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "value", d.Value) return json.Marshal(objectMap) } @@ -963,7 +1069,7 @@ func (d *DataConnectionListResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DataConnectionValidation. func (d DataConnectionValidation) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dataConnectionName", d.DataConnectionName) populate(objectMap, "properties", d.Properties) return json.Marshal(objectMap) @@ -994,7 +1100,7 @@ func (d *DataConnectionValidation) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DataConnectionValidationListResult. func (d DataConnectionValidationListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "value", d.Value) return json.Marshal(objectMap) } @@ -1021,7 +1127,7 @@ func (d *DataConnectionValidationListResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DataConnectionValidationResult. func (d DataConnectionValidationResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "errorMessage", d.ErrorMessage) return json.Marshal(objectMap) } @@ -1048,7 +1154,7 @@ func (d *DataConnectionValidationResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Database. func (d Database) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", d.ID) objectMap["kind"] = d.Kind populate(objectMap, "location", d.Location) @@ -1091,7 +1197,7 @@ func (d *Database) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DatabaseListResult. func (d DatabaseListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "value", d.Value) return json.Marshal(objectMap) } @@ -1118,7 +1224,7 @@ func (d *DatabaseListResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DatabasePrincipal. func (d DatabasePrincipal) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "appId", d.AppID) populate(objectMap, "email", d.Email) populate(objectMap, "fqn", d.Fqn) @@ -1169,7 +1275,7 @@ func (d *DatabasePrincipal) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DatabasePrincipalAssignment. func (d DatabasePrincipalAssignment) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", d.ID) populate(objectMap, "name", d.Name) populate(objectMap, "properties", d.Properties) @@ -1208,7 +1314,7 @@ func (d *DatabasePrincipalAssignment) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DatabasePrincipalAssignmentCheckNameRequest. func (d DatabasePrincipalAssignmentCheckNameRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "name", d.Name) objectMap["type"] = "Microsoft.Kusto/clusters/databases/principalAssignments" return json.Marshal(objectMap) @@ -1239,7 +1345,7 @@ func (d *DatabasePrincipalAssignmentCheckNameRequest) UnmarshalJSON(data []byte) // MarshalJSON implements the json.Marshaller interface for type DatabasePrincipalAssignmentListResult. func (d DatabasePrincipalAssignmentListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "value", d.Value) return json.Marshal(objectMap) } @@ -1266,7 +1372,7 @@ func (d *DatabasePrincipalAssignmentListResult) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type DatabasePrincipalListRequest. func (d DatabasePrincipalListRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "value", d.Value) return json.Marshal(objectMap) } @@ -1293,7 +1399,7 @@ func (d *DatabasePrincipalListRequest) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DatabasePrincipalListResult. func (d DatabasePrincipalListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "value", d.Value) return json.Marshal(objectMap) } @@ -1320,7 +1426,7 @@ func (d *DatabasePrincipalListResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DatabasePrincipalProperties. func (d DatabasePrincipalProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "aadObjectId", d.AADObjectID) populate(objectMap, "principalId", d.PrincipalID) populate(objectMap, "principalName", d.PrincipalName) @@ -1375,7 +1481,7 @@ func (d *DatabasePrincipalProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DatabaseStatistics. func (d DatabaseStatistics) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "size", d.Size) return json.Marshal(objectMap) } @@ -1402,7 +1508,7 @@ func (d *DatabaseStatistics) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DiagnoseVirtualNetworkResult. func (d DiagnoseVirtualNetworkResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "findings", d.Findings) return json.Marshal(objectMap) } @@ -1429,7 +1535,7 @@ func (d *DiagnoseVirtualNetworkResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type EndpointDependency. func (e EndpointDependency) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "domainName", e.DomainName) populate(objectMap, "endpointDetails", e.EndpointDetails) return json.Marshal(objectMap) @@ -1460,7 +1566,7 @@ func (e *EndpointDependency) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type EndpointDetail. func (e EndpointDetail) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "port", e.Port) return json.Marshal(objectMap) } @@ -1487,7 +1593,7 @@ func (e *EndpointDetail) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type EventGridConnectionProperties. func (e EventGridConnectionProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "blobStorageEventType", e.BlobStorageEventType) populate(objectMap, "consumerGroup", e.ConsumerGroup) populate(objectMap, "dataFormat", e.DataFormat) @@ -1562,7 +1668,7 @@ func (e *EventGridConnectionProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type EventGridDataConnection. func (e EventGridDataConnection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", e.ID) objectMap["kind"] = DataConnectionKindEventGrid populate(objectMap, "location", e.Location) @@ -1609,7 +1715,7 @@ func (e *EventGridDataConnection) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type EventHubConnectionProperties. func (e EventHubConnectionProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "compression", e.Compression) populate(objectMap, "consumerGroup", e.ConsumerGroup) populate(objectMap, "dataFormat", e.DataFormat) @@ -1680,7 +1786,7 @@ func (e *EventHubConnectionProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type EventHubDataConnection. func (e EventHubDataConnection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", e.ID) objectMap["kind"] = DataConnectionKindEventHub populate(objectMap, "location", e.Location) @@ -1727,7 +1833,7 @@ func (e *EventHubDataConnection) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type FollowerDatabaseDefinition. func (f FollowerDatabaseDefinition) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "attachedDatabaseConfigurationName", f.AttachedDatabaseConfigurationName) populate(objectMap, "clusterResourceId", f.ClusterResourceID) populate(objectMap, "databaseName", f.DatabaseName) @@ -1770,7 +1876,7 @@ func (f *FollowerDatabaseDefinition) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type FollowerDatabaseListResult. func (f FollowerDatabaseListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "value", f.Value) return json.Marshal(objectMap) } @@ -1797,7 +1903,7 @@ func (f *FollowerDatabaseListResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Identity. func (i Identity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "principalId", i.PrincipalID) populate(objectMap, "tenantId", i.TenantID) populate(objectMap, "type", i.Type) @@ -1836,7 +1942,7 @@ func (i *Identity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type IotHubConnectionProperties. func (i IotHubConnectionProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "consumerGroup", i.ConsumerGroup) populate(objectMap, "dataFormat", i.DataFormat) populate(objectMap, "databaseRouting", i.DatabaseRouting) @@ -1899,7 +2005,7 @@ func (i *IotHubConnectionProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type IotHubDataConnection. func (i IotHubDataConnection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", i.ID) objectMap["kind"] = DataConnectionKindIotHub populate(objectMap, "location", i.Location) @@ -1946,7 +2052,7 @@ func (i *IotHubDataConnection) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type KeyVaultProperties. func (k KeyVaultProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "keyName", k.KeyName) populate(objectMap, "keyVaultUri", k.KeyVaultURI) populate(objectMap, "keyVersion", k.KeyVersion) @@ -1985,7 +2091,8 @@ func (k *KeyVaultProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type LanguageExtension. func (l LanguageExtension) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) + populate(objectMap, "languageExtensionImageName", l.LanguageExtensionImageName) populate(objectMap, "languageExtensionName", l.LanguageExtensionName) return json.Marshal(objectMap) } @@ -1999,6 +2106,9 @@ func (l *LanguageExtension) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { + case "languageExtensionImageName": + err = unpopulate(val, "LanguageExtensionImageName", &l.LanguageExtensionImageName) + delete(rawMsg, key) case "languageExtensionName": err = unpopulate(val, "LanguageExtensionName", &l.LanguageExtensionName) delete(rawMsg, key) @@ -2012,7 +2122,7 @@ func (l *LanguageExtension) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type LanguageExtensionsList. func (l LanguageExtensionsList) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "value", l.Value) return json.Marshal(objectMap) } @@ -2039,7 +2149,7 @@ func (l *LanguageExtensionsList) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ListResourceSKUsResult. func (l ListResourceSKUsResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "value", l.Value) return json.Marshal(objectMap) } @@ -2066,7 +2176,7 @@ func (l *ListResourceSKUsResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ManagedPrivateEndpoint. func (m ManagedPrivateEndpoint) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", m.ID) populate(objectMap, "name", m.Name) populate(objectMap, "properties", m.Properties) @@ -2109,7 +2219,7 @@ func (m *ManagedPrivateEndpoint) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ManagedPrivateEndpointListResult. func (m ManagedPrivateEndpointListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "value", m.Value) return json.Marshal(objectMap) } @@ -2136,7 +2246,7 @@ func (m *ManagedPrivateEndpointListResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ManagedPrivateEndpointProperties. func (m ManagedPrivateEndpointProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "groupId", m.GroupID) populate(objectMap, "privateLinkResourceId", m.PrivateLinkResourceID) populate(objectMap, "privateLinkResourceRegion", m.PrivateLinkResourceRegion) @@ -2179,7 +2289,7 @@ func (m *ManagedPrivateEndpointProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ManagedPrivateEndpointsCheckNameRequest. func (m ManagedPrivateEndpointsCheckNameRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "name", m.Name) objectMap["type"] = "Microsoft.Kusto/clusters/managedPrivateEndpoints" return json.Marshal(objectMap) @@ -2210,7 +2320,7 @@ func (m *ManagedPrivateEndpointsCheckNameRequest) UnmarshalJSON(data []byte) err // MarshalJSON implements the json.Marshaller interface for type Operation. func (o Operation) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "display", o.Display) populate(objectMap, "name", o.Name) populate(objectMap, "origin", o.Origin) @@ -2249,7 +2359,7 @@ func (o *Operation) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OperationDisplay. func (o OperationDisplay) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "description", o.Description) populate(objectMap, "operation", o.Operation) populate(objectMap, "provider", o.Provider) @@ -2288,7 +2398,7 @@ func (o *OperationDisplay) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OperationListResult. func (o OperationListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", o.NextLink) populate(objectMap, "value", o.Value) return json.Marshal(objectMap) @@ -2319,7 +2429,7 @@ func (o *OperationListResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OperationResult. func (o OperationResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populateTimeRFC3339(objectMap, "endTime", o.EndTime) populate(objectMap, "error", o.Error) populate(objectMap, "id", o.ID) @@ -2374,7 +2484,7 @@ func (o *OperationResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OperationResultErrorProperties. func (o OperationResultErrorProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "code", o.Code) populate(objectMap, "message", o.Message) return json.Marshal(objectMap) @@ -2405,7 +2515,7 @@ func (o *OperationResultErrorProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OperationResultProperties. func (o OperationResultProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "operationKind", o.OperationKind) populate(objectMap, "operationState", o.OperationState) populate(objectMap, "provisioningState", o.ProvisioningState) @@ -2440,7 +2550,7 @@ func (o *OperationResultProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OptimizedAutoscale. func (o OptimizedAutoscale) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "isEnabled", o.IsEnabled) populate(objectMap, "maximum", o.Maximum) populate(objectMap, "minimum", o.Minimum) @@ -2479,7 +2589,7 @@ func (o *OptimizedAutoscale) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OutboundNetworkDependenciesEndpoint. func (o OutboundNetworkDependenciesEndpoint) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "etag", o.Etag) populate(objectMap, "id", o.ID) populate(objectMap, "name", o.Name) @@ -2522,7 +2632,7 @@ func (o *OutboundNetworkDependenciesEndpoint) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OutboundNetworkDependenciesEndpointListResult. func (o OutboundNetworkDependenciesEndpointListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", o.NextLink) populate(objectMap, "value", o.Value) return json.Marshal(objectMap) @@ -2553,7 +2663,7 @@ func (o *OutboundNetworkDependenciesEndpointListResult) UnmarshalJSON(data []byt // MarshalJSON implements the json.Marshaller interface for type OutboundNetworkDependenciesEndpointProperties. func (o OutboundNetworkDependenciesEndpointProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "category", o.Category) populate(objectMap, "endpoints", o.Endpoints) populate(objectMap, "provisioningState", o.ProvisioningState) @@ -2588,7 +2698,7 @@ func (o *OutboundNetworkDependenciesEndpointProperties) UnmarshalJSON(data []byt // MarshalJSON implements the json.Marshaller interface for type PrivateEndpointConnection. func (p PrivateEndpointConnection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", p.ID) populate(objectMap, "name", p.Name) populate(objectMap, "properties", p.Properties) @@ -2631,7 +2741,7 @@ func (p *PrivateEndpointConnection) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PrivateEndpointConnectionListResult. func (p PrivateEndpointConnectionListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "value", p.Value) return json.Marshal(objectMap) } @@ -2658,7 +2768,7 @@ func (p *PrivateEndpointConnectionListResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PrivateEndpointConnectionProperties. func (p PrivateEndpointConnectionProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "groupId", p.GroupID) populate(objectMap, "privateEndpoint", p.PrivateEndpoint) populate(objectMap, "privateLinkServiceConnectionState", p.PrivateLinkServiceConnectionState) @@ -2697,7 +2807,7 @@ func (p *PrivateEndpointConnectionProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PrivateEndpointProperty. func (p PrivateEndpointProperty) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", p.ID) return json.Marshal(objectMap) } @@ -2724,7 +2834,7 @@ func (p *PrivateEndpointProperty) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PrivateLinkResource. func (p PrivateLinkResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", p.ID) populate(objectMap, "name", p.Name) populate(objectMap, "properties", p.Properties) @@ -2767,7 +2877,7 @@ func (p *PrivateLinkResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PrivateLinkResourceListResult. func (p PrivateLinkResourceListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "value", p.Value) return json.Marshal(objectMap) } @@ -2794,7 +2904,7 @@ func (p *PrivateLinkResourceListResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PrivateLinkResourceProperties. func (p PrivateLinkResourceProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "groupId", p.GroupID) populate(objectMap, "requiredMembers", p.RequiredMembers) populate(objectMap, "requiredZoneNames", p.RequiredZoneNames) @@ -2829,7 +2939,7 @@ func (p *PrivateLinkResourceProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PrivateLinkServiceConnectionStateProperty. func (p PrivateLinkServiceConnectionStateProperty) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "actionsRequired", p.ActionsRequired) populate(objectMap, "description", p.Description) populate(objectMap, "status", p.Status) @@ -2864,7 +2974,7 @@ func (p *PrivateLinkServiceConnectionStateProperty) UnmarshalJSON(data []byte) e // MarshalJSON implements the json.Marshaller interface for type ReadOnlyFollowingDatabase. func (r ReadOnlyFollowingDatabase) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", r.ID) objectMap["kind"] = KindReadOnlyFollowing populate(objectMap, "location", r.Location) @@ -2911,7 +3021,7 @@ func (r *ReadOnlyFollowingDatabase) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ReadOnlyFollowingDatabaseProperties. func (r ReadOnlyFollowingDatabaseProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "attachedDatabaseConfigurationName", r.AttachedDatabaseConfigurationName) populate(objectMap, "databaseShareOrigin", r.DatabaseShareOrigin) populate(objectMap, "hotCachePeriod", r.HotCachePeriod) @@ -2974,7 +3084,7 @@ func (r *ReadOnlyFollowingDatabaseProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ReadWriteDatabase. func (r ReadWriteDatabase) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", r.ID) objectMap["kind"] = KindReadWrite populate(objectMap, "location", r.Location) @@ -3021,7 +3131,7 @@ func (r *ReadWriteDatabase) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ReadWriteDatabaseProperties. func (r ReadWriteDatabaseProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "hotCachePeriod", r.HotCachePeriod) populate(objectMap, "isFollowed", r.IsFollowed) populate(objectMap, "provisioningState", r.ProvisioningState) @@ -3062,9 +3172,71 @@ func (r *ReadWriteDatabaseProperties) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type ResourceSKUCapabilities. +func (r ResourceSKUCapabilities) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "name", r.Name) + populate(objectMap, "value", r.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ResourceSKUCapabilities. +func (r *ResourceSKUCapabilities) 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 "name": + err = unpopulate(val, "Name", &r.Name) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &r.Value) + 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 ResourceSKUZoneDetails. +func (r ResourceSKUZoneDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "capabilities", r.Capabilities) + populate(objectMap, "name", r.Name) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ResourceSKUZoneDetails. +func (r *ResourceSKUZoneDetails) 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 "capabilities": + err = unpopulate(val, "Capabilities", &r.Capabilities) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &r.Name) + 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 SKUDescription. func (s SKUDescription) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "locationInfo", s.LocationInfo) populate(objectMap, "locations", s.Locations) populate(objectMap, "name", s.Name) @@ -3111,7 +3283,7 @@ func (s *SKUDescription) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SKUDescriptionList. func (s SKUDescriptionList) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "value", s.Value) return json.Marshal(objectMap) } @@ -3138,8 +3310,9 @@ func (s *SKUDescriptionList) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SKULocationInfoItem. func (s SKULocationInfoItem) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "location", s.Location) + populate(objectMap, "zoneDetails", s.ZoneDetails) populate(objectMap, "zones", s.Zones) return json.Marshal(objectMap) } @@ -3156,6 +3329,9 @@ func (s *SKULocationInfoItem) UnmarshalJSON(data []byte) error { case "location": err = unpopulate(val, "Location", &s.Location) delete(rawMsg, key) + case "zoneDetails": + err = unpopulate(val, "ZoneDetails", &s.ZoneDetails) + delete(rawMsg, key) case "zones": err = unpopulate(val, "Zones", &s.Zones) delete(rawMsg, key) @@ -3169,7 +3345,7 @@ func (s *SKULocationInfoItem) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Script. func (s Script) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", s.ID) populate(objectMap, "name", s.Name) populate(objectMap, "properties", s.Properties) @@ -3212,7 +3388,7 @@ func (s *Script) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ScriptCheckNameRequest. func (s ScriptCheckNameRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "name", s.Name) objectMap["type"] = "Microsoft.Kusto/clusters/databases/scripts" return json.Marshal(objectMap) @@ -3243,7 +3419,7 @@ func (s *ScriptCheckNameRequest) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ScriptListResult. func (s ScriptListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "value", s.Value) return json.Marshal(objectMap) } @@ -3270,7 +3446,7 @@ func (s *ScriptListResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ScriptProperties. func (s ScriptProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "continueOnErrors", s.ContinueOnErrors) populate(objectMap, "forceUpdateTag", s.ForceUpdateTag) populate(objectMap, "provisioningState", s.ProvisioningState) @@ -3317,7 +3493,7 @@ func (s *ScriptProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SystemData. func (s SystemData) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populateTimeRFC3339(objectMap, "createdAt", s.CreatedAt) populate(objectMap, "createdBy", s.CreatedBy) populate(objectMap, "createdByType", s.CreatedByType) @@ -3364,9 +3540,11 @@ func (s *SystemData) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TableLevelSharingProperties. func (t TableLevelSharingProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "externalTablesToExclude", t.ExternalTablesToExclude) populate(objectMap, "externalTablesToInclude", t.ExternalTablesToInclude) + populate(objectMap, "functionsToExclude", t.FunctionsToExclude) + populate(objectMap, "functionsToInclude", t.FunctionsToInclude) populate(objectMap, "materializedViewsToExclude", t.MaterializedViewsToExclude) populate(objectMap, "materializedViewsToInclude", t.MaterializedViewsToInclude) populate(objectMap, "tablesToExclude", t.TablesToExclude) @@ -3389,6 +3567,12 @@ func (t *TableLevelSharingProperties) UnmarshalJSON(data []byte) error { case "externalTablesToInclude": err = unpopulate(val, "ExternalTablesToInclude", &t.ExternalTablesToInclude) delete(rawMsg, key) + case "functionsToExclude": + err = unpopulate(val, "FunctionsToExclude", &t.FunctionsToExclude) + delete(rawMsg, key) + case "functionsToInclude": + err = unpopulate(val, "FunctionsToInclude", &t.FunctionsToInclude) + delete(rawMsg, key) case "materializedViewsToExclude": err = unpopulate(val, "MaterializedViewsToExclude", &t.MaterializedViewsToExclude) delete(rawMsg, key) @@ -3411,7 +3595,7 @@ func (t *TableLevelSharingProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TrustedExternalTenant. func (t TrustedExternalTenant) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "value", t.Value) return json.Marshal(objectMap) } @@ -3438,7 +3622,7 @@ func (t *TrustedExternalTenant) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type VirtualNetworkConfiguration. func (v VirtualNetworkConfiguration) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dataManagementPublicIpId", v.DataManagementPublicIPID) populate(objectMap, "enginePublicIpId", v.EnginePublicIPID) populate(objectMap, "subnetId", v.SubnetID) @@ -3471,7 +3655,7 @@ func (v *VirtualNetworkConfiguration) UnmarshalJSON(data []byte) error { return nil } -func populate(m map[string]interface{}, k string, v interface{}) { +func populate(m map[string]any, k string, v any) { if v == nil { return } else if azcore.IsNullValue(v) { @@ -3481,7 +3665,7 @@ func populate(m map[string]interface{}, k string, v interface{}) { } } -func unpopulate(data json.RawMessage, fn string, v interface{}) error { +func unpopulate(data json.RawMessage, fn string, v any) error { if data == nil { return nil } diff --git a/sdk/resourcemanager/kusto/armkusto/operations_client.go b/sdk/resourcemanager/kusto/armkusto/operations_client.go index 222dae3dfed2..0f7c1707e3d7 100644 --- a/sdk/resourcemanager/kusto/armkusto/operations_client.go +++ b/sdk/resourcemanager/kusto/armkusto/operations_client.go @@ -28,8 +28,8 @@ type OperationsClient struct { } // NewOperationsClient creates a new instance of OperationsClient with the specified values. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*OperationsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -50,8 +50,9 @@ func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientO } // NewListPager - Lists available operations for the Microsoft.Kusto provider. -// Generated from API version 2022-07-07 -// options - OperationsClientListOptions contains the optional parameters for the OperationsClient.List method. +// +// Generated from API version 2022-12-29 +// - 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]{ More: func(page OperationsClientListResponse) bool { @@ -88,7 +89,7 @@ func (client *OperationsClient) listCreateRequest(ctx context.Context, options * return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-07") + reqQP.Set("api-version", "2022-12-29") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/kusto/armkusto/operations_client_example_test.go b/sdk/resourcemanager/kusto/armkusto/operations_client_example_test.go index 3802aa9a81be..9b5f52e9273d 100644 --- a/sdk/resourcemanager/kusto/armkusto/operations_client_example_test.go +++ b/sdk/resourcemanager/kusto/armkusto/operations_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armkusto_test @@ -16,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/kusto/armkusto" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-07-07/examples/KustoOperationsList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoOperationsList.json func ExampleOperationsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -29,13 +30,26 @@ func ExampleOperationsClient_NewListPager() { } pager := client.NewListPager(nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.OperationListResult = armkusto.OperationListResult{ + // Value: []*armkusto.Operation{ + // { + // Name: to.Ptr("operationName"), + // Display: &armkusto.OperationDisplay{ + // Description: to.Ptr("operation description"), + // Operation: to.Ptr("operationName"), + // Provider: to.Ptr("providerName"), + // Resource: to.Ptr("resourceName"), + // }, + // }}, + // } } } diff --git a/sdk/resourcemanager/kusto/armkusto/operationsresults_client.go b/sdk/resourcemanager/kusto/armkusto/operationsresults_client.go index 492bf6f19a0f..15ea15ce49f8 100644 --- a/sdk/resourcemanager/kusto/armkusto/operationsresults_client.go +++ b/sdk/resourcemanager/kusto/armkusto/operationsresults_client.go @@ -32,10 +32,10 @@ type OperationsResultsClient struct { } // NewOperationsResultsClient creates a new instance of OperationsResultsClient with the specified values. -// subscriptionID - Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID -// forms part of the URI for every service call. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID +// forms part of the URI for every service call. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewOperationsResultsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*OperationsResultsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -58,10 +58,11 @@ func NewOperationsResultsClient(subscriptionID string, credential azcore.TokenCr // Get - Returns operation results. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 -// location - Azure location (region) name. -// operationID - The Guid of the operation ID -// options - OperationsResultsClientGetOptions contains the optional parameters for the OperationsResultsClient.Get method. +// +// Generated from API version 2022-12-29 +// - location - Azure location (region) name. +// - operationID - The Guid of the operation ID +// - options - OperationsResultsClientGetOptions contains the optional parameters for the OperationsResultsClient.Get method. func (client *OperationsResultsClient) Get(ctx context.Context, location string, operationID string, options *OperationsResultsClientGetOptions) (OperationsResultsClientGetResponse, error) { req, err := client.getCreateRequest(ctx, location, operationID, options) if err != nil { @@ -97,7 +98,7 @@ func (client *OperationsResultsClient) getCreateRequest(ctx context.Context, loc return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-07") + reqQP.Set("api-version", "2022-12-29") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/kusto/armkusto/operationsresults_client_example_test.go b/sdk/resourcemanager/kusto/armkusto/operationsresults_client_example_test.go index a31dee940278..a0a13f900e08 100644 --- a/sdk/resourcemanager/kusto/armkusto/operationsresults_client_example_test.go +++ b/sdk/resourcemanager/kusto/armkusto/operationsresults_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armkusto_test @@ -16,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/kusto/armkusto" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-07-07/examples/KustoOperationResultsGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoOperationResultsGet.json func ExampleOperationsResultsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -31,6 +32,23 @@ func ExampleOperationsResultsClient_Get() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.OperationResult = armkusto.OperationResult{ + // Name: to.Ptr("30972f1b-b61d-4fd8-bd34-3dcfa24670f3"), + // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-10-26T13:45:42.7025301Z"); return t}()), + // Error: &armkusto.OperationResultErrorProperties{ + // Code: to.Ptr("CannotAlterFollowerDatabase"), + // Message: to.Ptr("[BadRequest] Cannot alter leader cluster 'test' for resource name 'adc'."), + // }, + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/providers/Microsoft.Kusto/locations/westus/operationresults/30972f1b-b61d-4fd8-bd34-3dcfa24670f3"), + // PercentComplete: to.Ptr[float64](1), + // Properties: &armkusto.OperationResultProperties{ + // OperationKind: to.Ptr("FollowerDatabaseCreate"), + // OperationState: to.Ptr("BadInput"), + // }, + // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-10-26T13:45:39.6554616Z"); return t}()), + // Status: to.Ptr(armkusto.StatusFailed), + // } } diff --git a/sdk/resourcemanager/kusto/armkusto/operationsresultslocation_client.go b/sdk/resourcemanager/kusto/armkusto/operationsresultslocation_client.go index cd609d632f1d..c39526217f62 100644 --- a/sdk/resourcemanager/kusto/armkusto/operationsresultslocation_client.go +++ b/sdk/resourcemanager/kusto/armkusto/operationsresultslocation_client.go @@ -32,10 +32,10 @@ type OperationsResultsLocationClient struct { } // NewOperationsResultsLocationClient creates a new instance of OperationsResultsLocationClient with the specified values. -// subscriptionID - Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID -// forms part of the URI for every service call. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID +// forms part of the URI for every service call. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewOperationsResultsLocationClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*OperationsResultsLocationClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -58,11 +58,12 @@ func NewOperationsResultsLocationClient(subscriptionID string, credential azcore // Get - Returns operation results. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 -// location - Azure location (region) name. -// operationID - The Guid of the operation ID -// options - OperationsResultsLocationClientGetOptions contains the optional parameters for the OperationsResultsLocationClient.Get -// method. +// +// Generated from API version 2022-12-29 +// - location - Azure location (region) name. +// - operationID - The Guid of the operation ID +// - options - OperationsResultsLocationClientGetOptions contains the optional parameters for the OperationsResultsLocationClient.Get +// method. func (client *OperationsResultsLocationClient) Get(ctx context.Context, location string, operationID string, options *OperationsResultsLocationClientGetOptions) (OperationsResultsLocationClientGetResponse, error) { req, err := client.getCreateRequest(ctx, location, operationID, options) if err != nil { @@ -98,7 +99,7 @@ func (client *OperationsResultsLocationClient) getCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-07") + reqQP.Set("api-version", "2022-12-29") req.Raw().URL.RawQuery = reqQP.Encode() return req, nil } diff --git a/sdk/resourcemanager/kusto/armkusto/operationsresultslocation_client_example_test.go b/sdk/resourcemanager/kusto/armkusto/operationsresultslocation_client_example_test.go index 64d4ddad84cd..6706fc4ba0c6 100644 --- a/sdk/resourcemanager/kusto/armkusto/operationsresultslocation_client_example_test.go +++ b/sdk/resourcemanager/kusto/armkusto/operationsresultslocation_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armkusto_test @@ -16,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/kusto/armkusto" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-07-07/examples/KustoOperationResultsOperationResultResponseTypeGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoOperationResultsOperationResultResponseTypeGet.json func ExampleOperationsResultsLocationClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/kusto/armkusto/polymorphic_helpers.go b/sdk/resourcemanager/kusto/armkusto/polymorphic_helpers.go index 5a3fcf0c6a37..feafa2f7f502 100644 --- a/sdk/resourcemanager/kusto/armkusto/polymorphic_helpers.go +++ b/sdk/resourcemanager/kusto/armkusto/polymorphic_helpers.go @@ -15,12 +15,14 @@ func unmarshalDataConnectionClassification(rawMsg json.RawMessage) (DataConnecti if rawMsg == nil { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } var b DataConnectionClassification switch m["kind"] { + case string(DataConnectionKindCosmosDb): + b = &CosmosDbDataConnection{} case string(DataConnectionKindEventGrid): b = &EventGridDataConnection{} case string(DataConnectionKindEventHub): @@ -56,7 +58,7 @@ func unmarshalDatabaseClassification(rawMsg json.RawMessage) (DatabaseClassifica if rawMsg == nil { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } diff --git a/sdk/resourcemanager/kusto/armkusto/privateendpointconnections_client.go b/sdk/resourcemanager/kusto/armkusto/privateendpointconnections_client.go index 10109982cf53..e676ac8e4ffc 100644 --- a/sdk/resourcemanager/kusto/armkusto/privateendpointconnections_client.go +++ b/sdk/resourcemanager/kusto/armkusto/privateendpointconnections_client.go @@ -32,10 +32,10 @@ type PrivateEndpointConnectionsClient struct { } // NewPrivateEndpointConnectionsClient creates a new instance of PrivateEndpointConnectionsClient with the specified values. -// subscriptionID - Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID -// forms part of the URI for every service call. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID +// forms part of the URI for every service call. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewPrivateEndpointConnectionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PrivateEndpointConnectionsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -58,12 +58,13 @@ func NewPrivateEndpointConnectionsClient(subscriptionID string, credential azcor // BeginCreateOrUpdate - Approve or reject a private endpoint connection with a given name. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 -// resourceGroupName - The name of the resource group containing the Kusto cluster. -// clusterName - The name of the Kusto cluster. -// privateEndpointConnectionName - The name of the private endpoint connection. -// options - PrivateEndpointConnectionsClientBeginCreateOrUpdateOptions contains the optional parameters for the PrivateEndpointConnectionsClient.BeginCreateOrUpdate -// method. +// +// Generated from API version 2022-12-29 +// - resourceGroupName - The name of the resource group containing the Kusto cluster. +// - clusterName - The name of the Kusto cluster. +// - privateEndpointConnectionName - The name of the private endpoint connection. +// - options - PrivateEndpointConnectionsClientBeginCreateOrUpdateOptions contains the optional parameters for the PrivateEndpointConnectionsClient.BeginCreateOrUpdate +// method. func (client *PrivateEndpointConnectionsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, clusterName string, privateEndpointConnectionName string, parameters PrivateEndpointConnection, options *PrivateEndpointConnectionsClientBeginCreateOrUpdateOptions) (*runtime.Poller[PrivateEndpointConnectionsClientCreateOrUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createOrUpdate(ctx, resourceGroupName, clusterName, privateEndpointConnectionName, parameters, options) @@ -78,7 +79,8 @@ func (client *PrivateEndpointConnectionsClient) BeginCreateOrUpdate(ctx context. // CreateOrUpdate - Approve or reject a private endpoint connection with a given name. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 +// +// Generated from API version 2022-12-29 func (client *PrivateEndpointConnectionsClient) createOrUpdate(ctx context.Context, resourceGroupName string, clusterName string, privateEndpointConnectionName string, parameters PrivateEndpointConnection, options *PrivateEndpointConnectionsClientBeginCreateOrUpdateOptions) (*http.Response, error) { req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, clusterName, privateEndpointConnectionName, parameters, options) if err != nil { @@ -118,7 +120,7 @@ func (client *PrivateEndpointConnectionsClient) createOrUpdateCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-07") + reqQP.Set("api-version", "2022-12-29") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, parameters) @@ -126,12 +128,13 @@ func (client *PrivateEndpointConnectionsClient) createOrUpdateCreateRequest(ctx // BeginDelete - Deletes a private endpoint connection with a given name. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 -// resourceGroupName - The name of the resource group containing the Kusto cluster. -// clusterName - The name of the Kusto cluster. -// privateEndpointConnectionName - The name of the private endpoint connection. -// options - PrivateEndpointConnectionsClientBeginDeleteOptions contains the optional parameters for the PrivateEndpointConnectionsClient.BeginDelete -// method. +// +// Generated from API version 2022-12-29 +// - resourceGroupName - The name of the resource group containing the Kusto cluster. +// - clusterName - The name of the Kusto cluster. +// - privateEndpointConnectionName - The name of the private endpoint connection. +// - options - PrivateEndpointConnectionsClientBeginDeleteOptions contains the optional parameters for the PrivateEndpointConnectionsClient.BeginDelete +// method. func (client *PrivateEndpointConnectionsClient) BeginDelete(ctx context.Context, resourceGroupName string, clusterName string, privateEndpointConnectionName string, options *PrivateEndpointConnectionsClientBeginDeleteOptions) (*runtime.Poller[PrivateEndpointConnectionsClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, clusterName, privateEndpointConnectionName, options) @@ -146,7 +149,8 @@ func (client *PrivateEndpointConnectionsClient) BeginDelete(ctx context.Context, // Delete - Deletes a private endpoint connection with a given name. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 +// +// Generated from API version 2022-12-29 func (client *PrivateEndpointConnectionsClient) deleteOperation(ctx context.Context, resourceGroupName string, clusterName string, privateEndpointConnectionName string, options *PrivateEndpointConnectionsClientBeginDeleteOptions) (*http.Response, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, clusterName, privateEndpointConnectionName, options) if err != nil { @@ -186,7 +190,7 @@ func (client *PrivateEndpointConnectionsClient) deleteCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-07") + reqQP.Set("api-version", "2022-12-29") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -194,12 +198,13 @@ func (client *PrivateEndpointConnectionsClient) deleteCreateRequest(ctx context. // Get - Gets a private endpoint connection. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 -// resourceGroupName - The name of the resource group containing the Kusto cluster. -// clusterName - The name of the Kusto cluster. -// privateEndpointConnectionName - The name of the private endpoint connection. -// options - PrivateEndpointConnectionsClientGetOptions contains the optional parameters for the PrivateEndpointConnectionsClient.Get -// method. +// +// Generated from API version 2022-12-29 +// - resourceGroupName - The name of the resource group containing the Kusto cluster. +// - clusterName - The name of the Kusto cluster. +// - privateEndpointConnectionName - The name of the private endpoint connection. +// - options - PrivateEndpointConnectionsClientGetOptions contains the optional parameters for the PrivateEndpointConnectionsClient.Get +// method. func (client *PrivateEndpointConnectionsClient) Get(ctx context.Context, resourceGroupName string, clusterName string, privateEndpointConnectionName string, options *PrivateEndpointConnectionsClientGetOptions) (PrivateEndpointConnectionsClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, clusterName, privateEndpointConnectionName, options) if err != nil { @@ -239,7 +244,7 @@ func (client *PrivateEndpointConnectionsClient) getCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-07") + reqQP.Set("api-version", "2022-12-29") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -255,11 +260,12 @@ func (client *PrivateEndpointConnectionsClient) getHandleResponse(resp *http.Res } // NewListPager - Returns the list of private endpoint connections. -// Generated from API version 2022-07-07 -// resourceGroupName - The name of the resource group containing the Kusto cluster. -// clusterName - The name of the Kusto cluster. -// options - PrivateEndpointConnectionsClientListOptions contains the optional parameters for the PrivateEndpointConnectionsClient.List -// method. +// +// Generated from API version 2022-12-29 +// - resourceGroupName - The name of the resource group containing the Kusto cluster. +// - clusterName - The name of the Kusto cluster. +// - options - PrivateEndpointConnectionsClientListOptions contains the optional parameters for the PrivateEndpointConnectionsClient.NewListPager +// method. func (client *PrivateEndpointConnectionsClient) NewListPager(resourceGroupName string, clusterName string, options *PrivateEndpointConnectionsClientListOptions) *runtime.Pager[PrivateEndpointConnectionsClientListResponse] { return runtime.NewPager(runtime.PagingHandler[PrivateEndpointConnectionsClientListResponse]{ More: func(page PrivateEndpointConnectionsClientListResponse) bool { @@ -302,7 +308,7 @@ func (client *PrivateEndpointConnectionsClient) listCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-07") + reqQP.Set("api-version", "2022-12-29") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/kusto/armkusto/privateendpointconnections_client_example_test.go b/sdk/resourcemanager/kusto/armkusto/privateendpointconnections_client_example_test.go index 97bcb8757876..755c9ee41fb6 100644 --- a/sdk/resourcemanager/kusto/armkusto/privateendpointconnections_client_example_test.go +++ b/sdk/resourcemanager/kusto/armkusto/privateendpointconnections_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armkusto_test @@ -17,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/kusto/armkusto" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-07-07/examples/KustoPrivateEndpointConnectionsList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoPrivateEndpointConnectionsList.json func ExamplePrivateEndpointConnectionsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -30,18 +31,56 @@ func ExamplePrivateEndpointConnectionsClient_NewListPager() { } pager := client.NewListPager("kustorptest", "kustoCluster", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.PrivateEndpointConnectionListResult = armkusto.PrivateEndpointConnectionListResult{ + // Value: []*armkusto.PrivateEndpointConnection{ + // { + // Name: to.Ptr("privateEndpointTest"), + // Type: to.Ptr("Microsoft.Kusto/clusters/privateEndpointConnections"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/kustoCluster/privateEndpointConnections/privateEndpointTest"), + // Properties: &armkusto.PrivateEndpointConnectionProperties{ + // GroupID: to.Ptr("cluster"), + // PrivateEndpoint: &armkusto.PrivateEndpointProperty{ + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/rg1Network/providers/Microsoft.Network/privateEndpoints/privateEndpointName"), + // }, + // PrivateLinkServiceConnectionState: &armkusto.PrivateLinkServiceConnectionStateProperty{ + // Description: to.Ptr("Auto-approved"), + // ActionsRequired: to.Ptr("None"), + // Status: to.Ptr("Approved"), + // }, + // ProvisioningState: to.Ptr("Succeeded"), + // }, + // }, + // { + // Name: to.Ptr("privateEndpointTest2"), + // Type: to.Ptr("Microsoft.Kusto/clusters/privateEndpointConnections"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/kustoCluster/privateEndpointConnections/privateEndpointTest2"), + // Properties: &armkusto.PrivateEndpointConnectionProperties{ + // GroupID: to.Ptr("cluster"), + // PrivateEndpoint: &armkusto.PrivateEndpointProperty{ + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/rg1Network/providers/Microsoft.Network/privateEndpoints/privateEndpointName2"), + // }, + // PrivateLinkServiceConnectionState: &armkusto.PrivateLinkServiceConnectionStateProperty{ + // Description: to.Ptr("Auto-approved"), + // ActionsRequired: to.Ptr("None"), + // Status: to.Ptr("Approved"), + // }, + // ProvisioningState: to.Ptr("Succeeded"), + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-07-07/examples/KustoPrivateEndpointConnectionsGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoPrivateEndpointConnectionsGet.json func ExamplePrivateEndpointConnectionsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -56,11 +95,29 @@ func ExamplePrivateEndpointConnectionsClient_Get() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.PrivateEndpointConnection = armkusto.PrivateEndpointConnection{ + // Name: to.Ptr("privateEndpointTest"), + // Type: to.Ptr("Microsoft.Kusto/clusters/privateEndpointConnections"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/kustoCluster/privateEndpointConnections/privateEndpointTest"), + // Properties: &armkusto.PrivateEndpointConnectionProperties{ + // GroupID: to.Ptr("cluster"), + // PrivateEndpoint: &armkusto.PrivateEndpointProperty{ + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/rg1Network/providers/Microsoft.Network/privateEndpoints/privateEndpointName"), + // }, + // PrivateLinkServiceConnectionState: &armkusto.PrivateLinkServiceConnectionStateProperty{ + // Description: to.Ptr("Auto-approved"), + // ActionsRequired: to.Ptr("None"), + // Status: to.Ptr("Approved"), + // }, + // ProvisioningState: to.Ptr("Succeeded"), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-07-07/examples/KustoPrivateEndpointConnectionsCreateOrUpdate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoPrivateEndpointConnectionsCreateOrUpdate.json func ExamplePrivateEndpointConnectionsClient_BeginCreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -86,11 +143,24 @@ func ExamplePrivateEndpointConnectionsClient_BeginCreateOrUpdate() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.PrivateEndpointConnection = armkusto.PrivateEndpointConnection{ + // Name: to.Ptr("privateEndpointTest"), + // Type: to.Ptr("Microsoft.Kusto/clusters/privateEndpointConnections"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/KustoClusterRPTest4/privateEndpointConnections/privateEndpointTest"), + // Properties: &armkusto.PrivateEndpointConnectionProperties{ + // PrivateLinkServiceConnectionState: &armkusto.PrivateLinkServiceConnectionStateProperty{ + // Description: to.Ptr("Approved by johndoe@contoso.com"), + // ActionsRequired: to.Ptr("None"), + // Status: to.Ptr("Approved"), + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-07-07/examples/KustoPrivateEndpointConnectionsDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoPrivateEndpointConnectionsDelete.json func ExamplePrivateEndpointConnectionsClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/kusto/armkusto/privatelinkresources_client.go b/sdk/resourcemanager/kusto/armkusto/privatelinkresources_client.go index ba57c8b90a98..b6cadd7c2656 100644 --- a/sdk/resourcemanager/kusto/armkusto/privatelinkresources_client.go +++ b/sdk/resourcemanager/kusto/armkusto/privatelinkresources_client.go @@ -32,10 +32,10 @@ type PrivateLinkResourcesClient struct { } // NewPrivateLinkResourcesClient creates a new instance of PrivateLinkResourcesClient with the specified values. -// subscriptionID - Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID -// forms part of the URI for every service call. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID +// forms part of the URI for every service call. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewPrivateLinkResourcesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PrivateLinkResourcesClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -58,12 +58,13 @@ func NewPrivateLinkResourcesClient(subscriptionID string, credential azcore.Toke // Get - Gets a private link resource. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 -// resourceGroupName - The name of the resource group containing the Kusto cluster. -// clusterName - The name of the Kusto cluster. -// privateLinkResourceName - The name of the private link resource. -// options - PrivateLinkResourcesClientGetOptions contains the optional parameters for the PrivateLinkResourcesClient.Get -// method. +// +// Generated from API version 2022-12-29 +// - resourceGroupName - The name of the resource group containing the Kusto cluster. +// - clusterName - The name of the Kusto cluster. +// - privateLinkResourceName - The name of the private link resource. +// - options - PrivateLinkResourcesClientGetOptions contains the optional parameters for the PrivateLinkResourcesClient.Get +// method. func (client *PrivateLinkResourcesClient) Get(ctx context.Context, resourceGroupName string, clusterName string, privateLinkResourceName string, options *PrivateLinkResourcesClientGetOptions) (PrivateLinkResourcesClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, clusterName, privateLinkResourceName, options) if err != nil { @@ -103,7 +104,7 @@ func (client *PrivateLinkResourcesClient) getCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-07") + reqQP.Set("api-version", "2022-12-29") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -119,11 +120,12 @@ func (client *PrivateLinkResourcesClient) getHandleResponse(resp *http.Response) } // NewListPager - Returns the list of private link resources. -// Generated from API version 2022-07-07 -// resourceGroupName - The name of the resource group containing the Kusto cluster. -// clusterName - The name of the Kusto cluster. -// options - PrivateLinkResourcesClientListOptions contains the optional parameters for the PrivateLinkResourcesClient.List -// method. +// +// Generated from API version 2022-12-29 +// - resourceGroupName - The name of the resource group containing the Kusto cluster. +// - clusterName - The name of the Kusto cluster. +// - options - PrivateLinkResourcesClientListOptions contains the optional parameters for the PrivateLinkResourcesClient.NewListPager +// method. func (client *PrivateLinkResourcesClient) NewListPager(resourceGroupName string, clusterName string, options *PrivateLinkResourcesClientListOptions) *runtime.Pager[PrivateLinkResourcesClientListResponse] { return runtime.NewPager(runtime.PagingHandler[PrivateLinkResourcesClientListResponse]{ More: func(page PrivateLinkResourcesClientListResponse) bool { @@ -166,7 +168,7 @@ func (client *PrivateLinkResourcesClient) listCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-07") + reqQP.Set("api-version", "2022-12-29") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/kusto/armkusto/privatelinkresources_client_example_test.go b/sdk/resourcemanager/kusto/armkusto/privatelinkresources_client_example_test.go index 06de1ee9c92e..56f99003ca30 100644 --- a/sdk/resourcemanager/kusto/armkusto/privatelinkresources_client_example_test.go +++ b/sdk/resourcemanager/kusto/armkusto/privatelinkresources_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armkusto_test @@ -16,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/kusto/armkusto" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-07-07/examples/KustoPrivateLinkResourcesList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoPrivateLinkResourcesList.json func ExamplePrivateLinkResourcesClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -29,18 +30,44 @@ func ExamplePrivateLinkResourcesClient_NewListPager() { } pager := client.NewListPager("kustorptest", "kustoCluster", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.PrivateLinkResourceListResult = armkusto.PrivateLinkResourceListResult{ + // Value: []*armkusto.PrivateLinkResource{ + // { + // Name: to.Ptr("cluster"), + // Type: to.Ptr("Microsoft.Kusto/clusters/PrivateLinkResources"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/kustoCluster/privateLinkResources/cluster"), + // Properties: &armkusto.PrivateLinkResourceProperties{ + // GroupID: to.Ptr("cluster"), + // RequiredMembers: []*string{ + // to.Ptr("Engine"), + // to.Ptr("DataManagement"), + // to.Ptr("blob-ne3kstrldkustoCluster00"), + // to.Ptr("queue-ne3kstrldkustoCluster00"), + // to.Ptr("table-ne3kstrldkustoCluster00"), + // to.Ptr("blob-qmukstrldkustoCluster01"), + // to.Ptr("queue-qmukstrldkustoCluster01"), + // to.Ptr("table-qmukstrldkustoCluster01")}, + // RequiredZoneNames: []*string{ + // to.Ptr("privatelink.westus2.kusto.windows.net"), + // to.Ptr("privatelink.blob.core.windows.net"), + // to.Ptr("privatelink.queue.core.windows.net"), + // to.Ptr("privatelink.table.core.windows.net")}, + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-07-07/examples/KustoPrivateLinkResourcesGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoPrivateLinkResourcesGet.json func ExamplePrivateLinkResourcesClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -55,6 +82,29 @@ func ExamplePrivateLinkResourcesClient_Get() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.PrivateLinkResource = armkusto.PrivateLinkResource{ + // Name: to.Ptr("cluster"), + // Type: to.Ptr("Microsoft.Kusto/clusters/PrivateLinkResources"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/kustoCluster/privateLinkResources/cluster"), + // Properties: &armkusto.PrivateLinkResourceProperties{ + // GroupID: to.Ptr("cluster"), + // RequiredMembers: []*string{ + // to.Ptr("Engine"), + // to.Ptr("DataManagement"), + // to.Ptr("blob-ne3kstrldkustoCluster00"), + // to.Ptr("queue-ne3kstrldkustoCluster00"), + // to.Ptr("table-ne3kstrldkustoCluster00"), + // to.Ptr("blob-qmukstrldkustoCluster01"), + // to.Ptr("queue-qmukstrldkustoCluster01"), + // to.Ptr("table-qmukstrldkustoCluster01")}, + // RequiredZoneNames: []*string{ + // to.Ptr("privatelink.westus2.kusto.windows.net"), + // to.Ptr("privatelink.blob.core.windows.net"), + // to.Ptr("privatelink.queue.core.windows.net"), + // to.Ptr("privatelink.table.core.windows.net")}, + // }, + // } } diff --git a/sdk/resourcemanager/kusto/armkusto/response_types.go b/sdk/resourcemanager/kusto/armkusto/response_types.go index 94941215874a..58c8fbd8bd4e 100644 --- a/sdk/resourcemanager/kusto/armkusto/response_types.go +++ b/sdk/resourcemanager/kusto/armkusto/response_types.go @@ -14,12 +14,12 @@ type AttachedDatabaseConfigurationsClientCheckNameAvailabilityResponse struct { CheckNameResult } -// AttachedDatabaseConfigurationsClientCreateOrUpdateResponse contains the response from method AttachedDatabaseConfigurationsClient.CreateOrUpdate. +// AttachedDatabaseConfigurationsClientCreateOrUpdateResponse contains the response from method AttachedDatabaseConfigurationsClient.BeginCreateOrUpdate. type AttachedDatabaseConfigurationsClientCreateOrUpdateResponse struct { AttachedDatabaseConfiguration } -// AttachedDatabaseConfigurationsClientDeleteResponse contains the response from method AttachedDatabaseConfigurationsClient.Delete. +// AttachedDatabaseConfigurationsClientDeleteResponse contains the response from method AttachedDatabaseConfigurationsClient.BeginDelete. type AttachedDatabaseConfigurationsClientDeleteResponse struct { // placeholder for future response values } @@ -29,7 +29,7 @@ type AttachedDatabaseConfigurationsClientGetResponse struct { AttachedDatabaseConfiguration } -// AttachedDatabaseConfigurationsClientListByClusterResponse contains the response from method AttachedDatabaseConfigurationsClient.ListByCluster. +// AttachedDatabaseConfigurationsClientListByClusterResponse contains the response from method AttachedDatabaseConfigurationsClient.NewListByClusterPager. type AttachedDatabaseConfigurationsClientListByClusterResponse struct { AttachedDatabaseConfigurationListResult } @@ -39,12 +39,12 @@ type ClusterPrincipalAssignmentsClientCheckNameAvailabilityResponse struct { CheckNameResult } -// ClusterPrincipalAssignmentsClientCreateOrUpdateResponse contains the response from method ClusterPrincipalAssignmentsClient.CreateOrUpdate. +// ClusterPrincipalAssignmentsClientCreateOrUpdateResponse contains the response from method ClusterPrincipalAssignmentsClient.BeginCreateOrUpdate. type ClusterPrincipalAssignmentsClientCreateOrUpdateResponse struct { ClusterPrincipalAssignment } -// ClusterPrincipalAssignmentsClientDeleteResponse contains the response from method ClusterPrincipalAssignmentsClient.Delete. +// ClusterPrincipalAssignmentsClientDeleteResponse contains the response from method ClusterPrincipalAssignmentsClient.BeginDelete. type ClusterPrincipalAssignmentsClientDeleteResponse struct { // placeholder for future response values } @@ -54,12 +54,12 @@ type ClusterPrincipalAssignmentsClientGetResponse struct { ClusterPrincipalAssignment } -// ClusterPrincipalAssignmentsClientListResponse contains the response from method ClusterPrincipalAssignmentsClient.List. +// ClusterPrincipalAssignmentsClientListResponse contains the response from method ClusterPrincipalAssignmentsClient.NewListPager. type ClusterPrincipalAssignmentsClientListResponse struct { ClusterPrincipalAssignmentListResult } -// ClustersClientAddLanguageExtensionsResponse contains the response from method ClustersClient.AddLanguageExtensions. +// ClustersClientAddLanguageExtensionsResponse contains the response from method ClustersClient.BeginAddLanguageExtensions. type ClustersClientAddLanguageExtensionsResponse struct { // placeholder for future response values } @@ -69,22 +69,22 @@ type ClustersClientCheckNameAvailabilityResponse struct { CheckNameResult } -// ClustersClientCreateOrUpdateResponse contains the response from method ClustersClient.CreateOrUpdate. +// ClustersClientCreateOrUpdateResponse contains the response from method ClustersClient.BeginCreateOrUpdate. type ClustersClientCreateOrUpdateResponse struct { Cluster } -// ClustersClientDeleteResponse contains the response from method ClustersClient.Delete. +// ClustersClientDeleteResponse contains the response from method ClustersClient.BeginDelete. type ClustersClientDeleteResponse struct { // placeholder for future response values } -// ClustersClientDetachFollowerDatabasesResponse contains the response from method ClustersClient.DetachFollowerDatabases. +// ClustersClientDetachFollowerDatabasesResponse contains the response from method ClustersClient.BeginDetachFollowerDatabases. type ClustersClientDetachFollowerDatabasesResponse struct { // placeholder for future response values } -// ClustersClientDiagnoseVirtualNetworkResponse contains the response from method ClustersClient.DiagnoseVirtualNetwork. +// ClustersClientDiagnoseVirtualNetworkResponse contains the response from method ClustersClient.BeginDiagnoseVirtualNetwork. type ClustersClientDiagnoseVirtualNetworkResponse struct { DiagnoseVirtualNetworkResult } @@ -94,57 +94,57 @@ type ClustersClientGetResponse struct { Cluster } -// ClustersClientListByResourceGroupResponse contains the response from method ClustersClient.ListByResourceGroup. +// ClustersClientListByResourceGroupResponse contains the response from method ClustersClient.NewListByResourceGroupPager. type ClustersClientListByResourceGroupResponse struct { ClusterListResult } -// ClustersClientListFollowerDatabasesResponse contains the response from method ClustersClient.ListFollowerDatabases. +// ClustersClientListFollowerDatabasesResponse contains the response from method ClustersClient.NewListFollowerDatabasesPager. type ClustersClientListFollowerDatabasesResponse struct { FollowerDatabaseListResult } -// ClustersClientListLanguageExtensionsResponse contains the response from method ClustersClient.ListLanguageExtensions. +// ClustersClientListLanguageExtensionsResponse contains the response from method ClustersClient.NewListLanguageExtensionsPager. type ClustersClientListLanguageExtensionsResponse struct { LanguageExtensionsList } -// ClustersClientListOutboundNetworkDependenciesEndpointsResponse contains the response from method ClustersClient.ListOutboundNetworkDependenciesEndpoints. +// ClustersClientListOutboundNetworkDependenciesEndpointsResponse contains the response from method ClustersClient.NewListOutboundNetworkDependenciesEndpointsPager. type ClustersClientListOutboundNetworkDependenciesEndpointsResponse struct { OutboundNetworkDependenciesEndpointListResult } -// ClustersClientListResponse contains the response from method ClustersClient.List. +// ClustersClientListResponse contains the response from method ClustersClient.NewListPager. type ClustersClientListResponse struct { ClusterListResult } -// ClustersClientListSKUsByResourceResponse contains the response from method ClustersClient.ListSKUsByResource. +// ClustersClientListSKUsByResourceResponse contains the response from method ClustersClient.NewListSKUsByResourcePager. type ClustersClientListSKUsByResourceResponse struct { ListResourceSKUsResult } -// ClustersClientListSKUsResponse contains the response from method ClustersClient.ListSKUs. +// ClustersClientListSKUsResponse contains the response from method ClustersClient.NewListSKUsPager. type ClustersClientListSKUsResponse struct { SKUDescriptionList } -// ClustersClientRemoveLanguageExtensionsResponse contains the response from method ClustersClient.RemoveLanguageExtensions. +// ClustersClientRemoveLanguageExtensionsResponse contains the response from method ClustersClient.BeginRemoveLanguageExtensions. type ClustersClientRemoveLanguageExtensionsResponse struct { // placeholder for future response values } -// ClustersClientStartResponse contains the response from method ClustersClient.Start. +// ClustersClientStartResponse contains the response from method ClustersClient.BeginStart. type ClustersClientStartResponse struct { // placeholder for future response values } -// ClustersClientStopResponse contains the response from method ClustersClient.Stop. +// ClustersClientStopResponse contains the response from method ClustersClient.BeginStop. type ClustersClientStopResponse struct { // placeholder for future response values } -// ClustersClientUpdateResponse contains the response from method ClustersClient.Update. +// ClustersClientUpdateResponse contains the response from method ClustersClient.BeginUpdate. type ClustersClientUpdateResponse struct { Cluster } @@ -154,7 +154,7 @@ type DataConnectionsClientCheckNameAvailabilityResponse struct { CheckNameResult } -// DataConnectionsClientCreateOrUpdateResponse contains the response from method DataConnectionsClient.CreateOrUpdate. +// DataConnectionsClientCreateOrUpdateResponse contains the response from method DataConnectionsClient.BeginCreateOrUpdate. type DataConnectionsClientCreateOrUpdateResponse struct { DataConnectionClassification } @@ -169,12 +169,12 @@ func (d *DataConnectionsClientCreateOrUpdateResponse) UnmarshalJSON(data []byte) return nil } -// DataConnectionsClientDataConnectionValidationResponse contains the response from method DataConnectionsClient.DataConnectionValidation. +// DataConnectionsClientDataConnectionValidationResponse contains the response from method DataConnectionsClient.BeginDataConnectionValidation. type DataConnectionsClientDataConnectionValidationResponse struct { DataConnectionValidationListResult } -// DataConnectionsClientDeleteResponse contains the response from method DataConnectionsClient.Delete. +// DataConnectionsClientDeleteResponse contains the response from method DataConnectionsClient.BeginDelete. type DataConnectionsClientDeleteResponse struct { // placeholder for future response values } @@ -194,12 +194,12 @@ func (d *DataConnectionsClientGetResponse) UnmarshalJSON(data []byte) error { return nil } -// DataConnectionsClientListByDatabaseResponse contains the response from method DataConnectionsClient.ListByDatabase. +// DataConnectionsClientListByDatabaseResponse contains the response from method DataConnectionsClient.NewListByDatabasePager. type DataConnectionsClientListByDatabaseResponse struct { DataConnectionListResult } -// DataConnectionsClientUpdateResponse contains the response from method DataConnectionsClient.Update. +// DataConnectionsClientUpdateResponse contains the response from method DataConnectionsClient.BeginUpdate. type DataConnectionsClientUpdateResponse struct { DataConnectionClassification } @@ -219,12 +219,12 @@ type DatabasePrincipalAssignmentsClientCheckNameAvailabilityResponse struct { CheckNameResult } -// DatabasePrincipalAssignmentsClientCreateOrUpdateResponse contains the response from method DatabasePrincipalAssignmentsClient.CreateOrUpdate. +// DatabasePrincipalAssignmentsClientCreateOrUpdateResponse contains the response from method DatabasePrincipalAssignmentsClient.BeginCreateOrUpdate. type DatabasePrincipalAssignmentsClientCreateOrUpdateResponse struct { DatabasePrincipalAssignment } -// DatabasePrincipalAssignmentsClientDeleteResponse contains the response from method DatabasePrincipalAssignmentsClient.Delete. +// DatabasePrincipalAssignmentsClientDeleteResponse contains the response from method DatabasePrincipalAssignmentsClient.BeginDelete. type DatabasePrincipalAssignmentsClientDeleteResponse struct { // placeholder for future response values } @@ -234,7 +234,7 @@ type DatabasePrincipalAssignmentsClientGetResponse struct { DatabasePrincipalAssignment } -// DatabasePrincipalAssignmentsClientListResponse contains the response from method DatabasePrincipalAssignmentsClient.List. +// DatabasePrincipalAssignmentsClientListResponse contains the response from method DatabasePrincipalAssignmentsClient.NewListPager. type DatabasePrincipalAssignmentsClientListResponse struct { DatabasePrincipalAssignmentListResult } @@ -249,7 +249,7 @@ type DatabasesClientCheckNameAvailabilityResponse struct { CheckNameResult } -// DatabasesClientCreateOrUpdateResponse contains the response from method DatabasesClient.CreateOrUpdate. +// DatabasesClientCreateOrUpdateResponse contains the response from method DatabasesClient.BeginCreateOrUpdate. type DatabasesClientCreateOrUpdateResponse struct { DatabaseClassification } @@ -264,7 +264,7 @@ func (d *DatabasesClientCreateOrUpdateResponse) UnmarshalJSON(data []byte) error return nil } -// DatabasesClientDeleteResponse contains the response from method DatabasesClient.Delete. +// DatabasesClientDeleteResponse contains the response from method DatabasesClient.BeginDelete. type DatabasesClientDeleteResponse struct { // placeholder for future response values } @@ -284,12 +284,12 @@ func (d *DatabasesClientGetResponse) UnmarshalJSON(data []byte) error { return nil } -// DatabasesClientListByClusterResponse contains the response from method DatabasesClient.ListByCluster. +// DatabasesClientListByClusterResponse contains the response from method DatabasesClient.NewListByClusterPager. type DatabasesClientListByClusterResponse struct { DatabaseListResult } -// DatabasesClientListPrincipalsResponse contains the response from method DatabasesClient.ListPrincipals. +// DatabasesClientListPrincipalsResponse contains the response from method DatabasesClient.NewListPrincipalsPager. type DatabasesClientListPrincipalsResponse struct { DatabasePrincipalListResult } @@ -299,7 +299,7 @@ type DatabasesClientRemovePrincipalsResponse struct { DatabasePrincipalListResult } -// DatabasesClientUpdateResponse contains the response from method DatabasesClient.Update. +// DatabasesClientUpdateResponse contains the response from method DatabasesClient.BeginUpdate. type DatabasesClientUpdateResponse struct { DatabaseClassification } @@ -319,12 +319,12 @@ type ManagedPrivateEndpointsClientCheckNameAvailabilityResponse struct { CheckNameResult } -// ManagedPrivateEndpointsClientCreateOrUpdateResponse contains the response from method ManagedPrivateEndpointsClient.CreateOrUpdate. +// ManagedPrivateEndpointsClientCreateOrUpdateResponse contains the response from method ManagedPrivateEndpointsClient.BeginCreateOrUpdate. type ManagedPrivateEndpointsClientCreateOrUpdateResponse struct { ManagedPrivateEndpoint } -// ManagedPrivateEndpointsClientDeleteResponse contains the response from method ManagedPrivateEndpointsClient.Delete. +// ManagedPrivateEndpointsClientDeleteResponse contains the response from method ManagedPrivateEndpointsClient.BeginDelete. type ManagedPrivateEndpointsClientDeleteResponse struct { // placeholder for future response values } @@ -334,17 +334,17 @@ type ManagedPrivateEndpointsClientGetResponse struct { ManagedPrivateEndpoint } -// ManagedPrivateEndpointsClientListResponse contains the response from method ManagedPrivateEndpointsClient.List. +// ManagedPrivateEndpointsClientListResponse contains the response from method ManagedPrivateEndpointsClient.NewListPager. type ManagedPrivateEndpointsClientListResponse struct { ManagedPrivateEndpointListResult } -// ManagedPrivateEndpointsClientUpdateResponse contains the response from method ManagedPrivateEndpointsClient.Update. +// ManagedPrivateEndpointsClientUpdateResponse contains the response from method ManagedPrivateEndpointsClient.BeginUpdate. type ManagedPrivateEndpointsClientUpdateResponse struct { ManagedPrivateEndpoint } -// OperationsClientListResponse contains the response from method OperationsClient.List. +// OperationsClientListResponse contains the response from method OperationsClient.NewListPager. type OperationsClientListResponse struct { OperationListResult } @@ -359,12 +359,12 @@ type OperationsResultsLocationClientGetResponse struct { // placeholder for future response values } -// PrivateEndpointConnectionsClientCreateOrUpdateResponse contains the response from method PrivateEndpointConnectionsClient.CreateOrUpdate. +// PrivateEndpointConnectionsClientCreateOrUpdateResponse contains the response from method PrivateEndpointConnectionsClient.BeginCreateOrUpdate. type PrivateEndpointConnectionsClientCreateOrUpdateResponse struct { PrivateEndpointConnection } -// PrivateEndpointConnectionsClientDeleteResponse contains the response from method PrivateEndpointConnectionsClient.Delete. +// PrivateEndpointConnectionsClientDeleteResponse contains the response from method PrivateEndpointConnectionsClient.BeginDelete. type PrivateEndpointConnectionsClientDeleteResponse struct { // placeholder for future response values } @@ -374,7 +374,7 @@ type PrivateEndpointConnectionsClientGetResponse struct { PrivateEndpointConnection } -// PrivateEndpointConnectionsClientListResponse contains the response from method PrivateEndpointConnectionsClient.List. +// PrivateEndpointConnectionsClientListResponse contains the response from method PrivateEndpointConnectionsClient.NewListPager. type PrivateEndpointConnectionsClientListResponse struct { PrivateEndpointConnectionListResult } @@ -384,22 +384,27 @@ type PrivateLinkResourcesClientGetResponse struct { PrivateLinkResource } -// PrivateLinkResourcesClientListResponse contains the response from method PrivateLinkResourcesClient.List. +// PrivateLinkResourcesClientListResponse contains the response from method PrivateLinkResourcesClient.NewListPager. type PrivateLinkResourcesClientListResponse struct { PrivateLinkResourceListResult } +// SKUsClientListResponse contains the response from method SKUsClient.NewListPager. +type SKUsClientListResponse struct { + SKUDescriptionList +} + // ScriptsClientCheckNameAvailabilityResponse contains the response from method ScriptsClient.CheckNameAvailability. type ScriptsClientCheckNameAvailabilityResponse struct { CheckNameResult } -// ScriptsClientCreateOrUpdateResponse contains the response from method ScriptsClient.CreateOrUpdate. +// ScriptsClientCreateOrUpdateResponse contains the response from method ScriptsClient.BeginCreateOrUpdate. type ScriptsClientCreateOrUpdateResponse struct { Script } -// ScriptsClientDeleteResponse contains the response from method ScriptsClient.Delete. +// ScriptsClientDeleteResponse contains the response from method ScriptsClient.BeginDelete. type ScriptsClientDeleteResponse struct { // placeholder for future response values } @@ -409,12 +414,12 @@ type ScriptsClientGetResponse struct { Script } -// ScriptsClientListByDatabaseResponse contains the response from method ScriptsClient.ListByDatabase. +// ScriptsClientListByDatabaseResponse contains the response from method ScriptsClient.NewListByDatabasePager. type ScriptsClientListByDatabaseResponse struct { ScriptListResult } -// ScriptsClientUpdateResponse contains the response from method ScriptsClient.Update. +// ScriptsClientUpdateResponse contains the response from method ScriptsClient.BeginUpdate. type ScriptsClientUpdateResponse struct { Script } diff --git a/sdk/resourcemanager/kusto/armkusto/scripts_client.go b/sdk/resourcemanager/kusto/armkusto/scripts_client.go index f303d5e50b86..06c1059931cc 100644 --- a/sdk/resourcemanager/kusto/armkusto/scripts_client.go +++ b/sdk/resourcemanager/kusto/armkusto/scripts_client.go @@ -32,10 +32,10 @@ type ScriptsClient struct { } // NewScriptsClient creates a new instance of ScriptsClient with the specified values. -// subscriptionID - Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID -// forms part of the URI for every service call. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID +// forms part of the URI for every service call. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewScriptsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ScriptsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -58,13 +58,14 @@ func NewScriptsClient(subscriptionID string, credential azcore.TokenCredential, // CheckNameAvailability - Checks that the script name is valid and is not already in use. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 -// resourceGroupName - The name of the resource group containing the Kusto cluster. -// clusterName - The name of the Kusto cluster. -// databaseName - The name of the database in the Kusto cluster. -// scriptName - The name of the script. -// options - ScriptsClientCheckNameAvailabilityOptions contains the optional parameters for the ScriptsClient.CheckNameAvailability -// method. +// +// Generated from API version 2022-12-29 +// - resourceGroupName - The name of the resource group containing the Kusto cluster. +// - clusterName - The name of the Kusto cluster. +// - databaseName - The name of the database in the Kusto cluster. +// - scriptName - The name of the script. +// - options - ScriptsClientCheckNameAvailabilityOptions contains the optional parameters for the ScriptsClient.CheckNameAvailability +// method. func (client *ScriptsClient) CheckNameAvailability(ctx context.Context, resourceGroupName string, clusterName string, databaseName string, scriptName ScriptCheckNameRequest, options *ScriptsClientCheckNameAvailabilityOptions) (ScriptsClientCheckNameAvailabilityResponse, error) { req, err := client.checkNameAvailabilityCreateRequest(ctx, resourceGroupName, clusterName, databaseName, scriptName, options) if err != nil { @@ -104,7 +105,7 @@ func (client *ScriptsClient) checkNameAvailabilityCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-07") + reqQP.Set("api-version", "2022-12-29") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, scriptName) @@ -121,14 +122,15 @@ func (client *ScriptsClient) checkNameAvailabilityHandleResponse(resp *http.Resp // BeginCreateOrUpdate - Creates a Kusto database script. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 -// resourceGroupName - The name of the resource group containing the Kusto cluster. -// clusterName - The name of the Kusto cluster. -// databaseName - The name of the database in the Kusto cluster. -// scriptName - The name of the Kusto database script. -// parameters - The Kusto Script parameters contains the KQL to run. -// options - ScriptsClientBeginCreateOrUpdateOptions contains the optional parameters for the ScriptsClient.BeginCreateOrUpdate -// method. +// +// Generated from API version 2022-12-29 +// - resourceGroupName - The name of the resource group containing the Kusto cluster. +// - clusterName - The name of the Kusto cluster. +// - databaseName - The name of the database in the Kusto cluster. +// - scriptName - The name of the Kusto database script. +// - parameters - The Kusto Script parameters contains the KQL to run. +// - options - ScriptsClientBeginCreateOrUpdateOptions contains the optional parameters for the ScriptsClient.BeginCreateOrUpdate +// method. func (client *ScriptsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, clusterName string, databaseName string, scriptName string, parameters Script, options *ScriptsClientBeginCreateOrUpdateOptions) (*runtime.Poller[ScriptsClientCreateOrUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createOrUpdate(ctx, resourceGroupName, clusterName, databaseName, scriptName, parameters, options) @@ -143,7 +145,8 @@ func (client *ScriptsClient) BeginCreateOrUpdate(ctx context.Context, resourceGr // CreateOrUpdate - Creates a Kusto database script. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 +// +// Generated from API version 2022-12-29 func (client *ScriptsClient) createOrUpdate(ctx context.Context, resourceGroupName string, clusterName string, databaseName string, scriptName string, parameters Script, options *ScriptsClientBeginCreateOrUpdateOptions) (*http.Response, error) { req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, clusterName, databaseName, scriptName, parameters, options) if err != nil { @@ -187,7 +190,7 @@ func (client *ScriptsClient) createOrUpdateCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-07") + reqQP.Set("api-version", "2022-12-29") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, parameters) @@ -195,12 +198,13 @@ func (client *ScriptsClient) createOrUpdateCreateRequest(ctx context.Context, re // BeginDelete - Deletes a Kusto principalAssignment. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 -// resourceGroupName - The name of the resource group containing the Kusto cluster. -// clusterName - The name of the Kusto cluster. -// databaseName - The name of the database in the Kusto cluster. -// scriptName - The name of the Kusto database script. -// options - ScriptsClientBeginDeleteOptions contains the optional parameters for the ScriptsClient.BeginDelete method. +// +// Generated from API version 2022-12-29 +// - resourceGroupName - The name of the resource group containing the Kusto cluster. +// - clusterName - The name of the Kusto cluster. +// - databaseName - The name of the database in the Kusto cluster. +// - scriptName - The name of the Kusto database script. +// - options - ScriptsClientBeginDeleteOptions contains the optional parameters for the ScriptsClient.BeginDelete method. func (client *ScriptsClient) BeginDelete(ctx context.Context, resourceGroupName string, clusterName string, databaseName string, scriptName string, options *ScriptsClientBeginDeleteOptions) (*runtime.Poller[ScriptsClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, clusterName, databaseName, scriptName, options) @@ -215,7 +219,8 @@ func (client *ScriptsClient) BeginDelete(ctx context.Context, resourceGroupName // Delete - Deletes a Kusto principalAssignment. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 +// +// Generated from API version 2022-12-29 func (client *ScriptsClient) deleteOperation(ctx context.Context, resourceGroupName string, clusterName string, databaseName string, scriptName string, options *ScriptsClientBeginDeleteOptions) (*http.Response, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, clusterName, databaseName, scriptName, options) if err != nil { @@ -259,7 +264,7 @@ func (client *ScriptsClient) deleteCreateRequest(ctx context.Context, resourceGr return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-07") + reqQP.Set("api-version", "2022-12-29") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -267,12 +272,13 @@ func (client *ScriptsClient) deleteCreateRequest(ctx context.Context, resourceGr // Get - Gets a Kusto cluster database script. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 -// resourceGroupName - The name of the resource group containing the Kusto cluster. -// clusterName - The name of the Kusto cluster. -// databaseName - The name of the database in the Kusto cluster. -// scriptName - The name of the Kusto database script. -// options - ScriptsClientGetOptions contains the optional parameters for the ScriptsClient.Get method. +// +// Generated from API version 2022-12-29 +// - resourceGroupName - The name of the resource group containing the Kusto cluster. +// - clusterName - The name of the Kusto cluster. +// - databaseName - The name of the database in the Kusto cluster. +// - scriptName - The name of the Kusto database script. +// - options - ScriptsClientGetOptions contains the optional parameters for the ScriptsClient.Get method. func (client *ScriptsClient) Get(ctx context.Context, resourceGroupName string, clusterName string, databaseName string, scriptName string, options *ScriptsClientGetOptions) (ScriptsClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, clusterName, databaseName, scriptName, options) if err != nil { @@ -316,7 +322,7 @@ func (client *ScriptsClient) getCreateRequest(ctx context.Context, resourceGroup return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-07") + reqQP.Set("api-version", "2022-12-29") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -332,11 +338,13 @@ func (client *ScriptsClient) getHandleResponse(resp *http.Response) (ScriptsClie } // NewListByDatabasePager - Returns the list of database scripts for given database. -// Generated from API version 2022-07-07 -// resourceGroupName - The name of the resource group containing the Kusto cluster. -// clusterName - The name of the Kusto cluster. -// databaseName - The name of the database in the Kusto cluster. -// options - ScriptsClientListByDatabaseOptions contains the optional parameters for the ScriptsClient.ListByDatabase method. +// +// Generated from API version 2022-12-29 +// - resourceGroupName - The name of the resource group containing the Kusto cluster. +// - clusterName - The name of the Kusto cluster. +// - databaseName - The name of the database in the Kusto cluster. +// - options - ScriptsClientListByDatabaseOptions contains the optional parameters for the ScriptsClient.NewListByDatabasePager +// method. func (client *ScriptsClient) NewListByDatabasePager(resourceGroupName string, clusterName string, databaseName string, options *ScriptsClientListByDatabaseOptions) *runtime.Pager[ScriptsClientListByDatabaseResponse] { return runtime.NewPager(runtime.PagingHandler[ScriptsClientListByDatabaseResponse]{ More: func(page ScriptsClientListByDatabaseResponse) bool { @@ -383,7 +391,7 @@ func (client *ScriptsClient) listByDatabaseCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-07") + reqQP.Set("api-version", "2022-12-29") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -400,13 +408,14 @@ func (client *ScriptsClient) listByDatabaseHandleResponse(resp *http.Response) ( // BeginUpdate - Updates a database script. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 -// resourceGroupName - The name of the resource group containing the Kusto cluster. -// clusterName - The name of the Kusto cluster. -// databaseName - The name of the database in the Kusto cluster. -// scriptName - The name of the Kusto database script. -// parameters - The Kusto Script parameters contains to the KQL to run. -// options - ScriptsClientBeginUpdateOptions contains the optional parameters for the ScriptsClient.BeginUpdate method. +// +// Generated from API version 2022-12-29 +// - resourceGroupName - The name of the resource group containing the Kusto cluster. +// - clusterName - The name of the Kusto cluster. +// - databaseName - The name of the database in the Kusto cluster. +// - scriptName - The name of the Kusto database script. +// - parameters - The Kusto Script parameters contains to the KQL to run. +// - options - ScriptsClientBeginUpdateOptions contains the optional parameters for the ScriptsClient.BeginUpdate method. func (client *ScriptsClient) BeginUpdate(ctx context.Context, resourceGroupName string, clusterName string, databaseName string, scriptName string, parameters Script, options *ScriptsClientBeginUpdateOptions) (*runtime.Poller[ScriptsClientUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.update(ctx, resourceGroupName, clusterName, databaseName, scriptName, parameters, options) @@ -421,7 +430,8 @@ func (client *ScriptsClient) BeginUpdate(ctx context.Context, resourceGroupName // Update - Updates a database script. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-07-07 +// +// Generated from API version 2022-12-29 func (client *ScriptsClient) update(ctx context.Context, resourceGroupName string, clusterName string, databaseName string, scriptName string, parameters Script, options *ScriptsClientBeginUpdateOptions) (*http.Response, error) { req, err := client.updateCreateRequest(ctx, resourceGroupName, clusterName, databaseName, scriptName, parameters, options) if err != nil { @@ -465,7 +475,7 @@ func (client *ScriptsClient) updateCreateRequest(ctx context.Context, resourceGr return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-07") + reqQP.Set("api-version", "2022-12-29") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, parameters) diff --git a/sdk/resourcemanager/kusto/armkusto/scripts_client_example_test.go b/sdk/resourcemanager/kusto/armkusto/scripts_client_example_test.go index 4139234e0846..a35d4f2fc102 100644 --- a/sdk/resourcemanager/kusto/armkusto/scripts_client_example_test.go +++ b/sdk/resourcemanager/kusto/armkusto/scripts_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armkusto_test @@ -17,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/kusto/armkusto" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-07-07/examples/KustoScriptsListByDatabase.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoScriptsListByDatabase.json func ExampleScriptsClient_NewListByDatabasePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -30,18 +31,58 @@ func ExampleScriptsClient_NewListByDatabasePager() { } pager := client.NewListByDatabasePager("kustorptest", "kustoCluster", "Kustodatabase8", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.ScriptListResult = armkusto.ScriptListResult{ + // Value: []*armkusto.Script{ + // { + // Name: to.Ptr("kustoCluster/Kustodatabase8/kustoScript1"), + // Type: to.Ptr("Microsoft.Kusto/Clusters/Databases/Scripts"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/kustoCluster/Databases/Kustodatabase8/Scripts/kustoScript1"), + // Properties: &armkusto.ScriptProperties{ + // ContinueOnErrors: to.Ptr(true), + // ForceUpdateTag: to.Ptr("2bcf3c21-ffd1-4444-b9dd-e52e00ee53fe"), + // ScriptURL: to.Ptr("https://mysa.blob.core.windows.net/container/script.txt"), + // }, + // SystemData: &armkusto.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-06-29T15:06:54.2757906Z"); return t}()), + // CreatedBy: to.Ptr("user@microsoft.com"), + // CreatedByType: to.Ptr(armkusto.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-06-29T15:06:54.2757906Z"); return t}()), + // LastModifiedBy: to.Ptr("user@microsoft.com"), + // LastModifiedByType: to.Ptr(armkusto.CreatedByTypeUser), + // }, + // }, + // { + // Name: to.Ptr("kustoCluster/Kustodatabase8/kustoScript2"), + // Type: to.Ptr("Microsoft.Kusto/Clusters/Databases/Scripts"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/kustoCluster/Databases/Kustodatabase8/Scripts/kustoScript2"), + // Properties: &armkusto.ScriptProperties{ + // ContinueOnErrors: to.Ptr(true), + // ForceUpdateTag: to.Ptr("2bcf3c21-ffd1-4444-b9dd-e52e00ee53fe"), + // ScriptURL: to.Ptr("https://mysa.blob.core.windows.net/container/script2.txt"), + // }, + // SystemData: &armkusto.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-06-29T15:06:54.2757906Z"); return t}()), + // CreatedBy: to.Ptr("user@microsoft.com"), + // CreatedByType: to.Ptr(armkusto.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-06-30T16:07:55.2831451Z"); return t}()), + // LastModifiedBy: to.Ptr("user2@microsoft.com"), + // LastModifiedByType: to.Ptr(armkusto.CreatedByTypeUser), + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-07-07/examples/KustoScriptsGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoScriptsGet.json func ExampleScriptsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -56,11 +97,30 @@ func ExampleScriptsClient_Get() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.Script = armkusto.Script{ + // Name: to.Ptr("kustoCluster/Kustodatabase8/kustoScript"), + // Type: to.Ptr("Microsoft.Kusto/Clusters/Databases/Scripts"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/kustoCluster/Databases/Kustodatabase8/Scripts/kustoScript"), + // Properties: &armkusto.ScriptProperties{ + // ContinueOnErrors: to.Ptr(true), + // ForceUpdateTag: to.Ptr("2bcf3c21-ffd1-4444-b9dd-e52e00ee53fe"), + // ScriptURL: to.Ptr("https://mysa.blob.core.windows.net/container/script.txt"), + // }, + // SystemData: &armkusto.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-06-29T15:06:54.2757906Z"); return t}()), + // CreatedBy: to.Ptr("user@microsoft.com"), + // CreatedByType: to.Ptr(armkusto.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-06-29T15:06:54.2757906Z"); return t}()), + // LastModifiedBy: to.Ptr("user@microsoft.com"), + // LastModifiedByType: to.Ptr(armkusto.CreatedByTypeUser), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-07-07/examples/KustoScriptsCreateOrUpdate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoScriptsCreateOrUpdate.json func ExampleScriptsClient_BeginCreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -86,11 +146,30 @@ func ExampleScriptsClient_BeginCreateOrUpdate() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.Script = armkusto.Script{ + // Name: to.Ptr("kustoCluster/KustoDatabase8/kustoScript"), + // Type: to.Ptr("Microsoft.Kusto/Clusters/Databases/Scripts"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/kustoCluster/Databases/KustoDatabase8/Scripts/kustoScript"), + // Properties: &armkusto.ScriptProperties{ + // ContinueOnErrors: to.Ptr(true), + // ForceUpdateTag: to.Ptr("2bcf3c21-ffd1-4444-b9dd-e52e00ee53fe"), + // ScriptURL: to.Ptr("https://mysa.blob.core.windows.net/container/script.txt"), + // }, + // SystemData: &armkusto.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-06-29T15:06:54.2757906Z"); return t}()), + // CreatedBy: to.Ptr("user@microsoft.com"), + // CreatedByType: to.Ptr(armkusto.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-07-01T17:16:24.3644126Z"); return t}()), + // LastModifiedBy: to.Ptr("user2@microsoft.com"), + // LastModifiedByType: to.Ptr(armkusto.CreatedByTypeUser), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-07-07/examples/KustoScriptsUpdate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoScriptsUpdate.json func ExampleScriptsClient_BeginUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -116,11 +195,30 @@ func ExampleScriptsClient_BeginUpdate() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.Script = armkusto.Script{ + // Name: to.Ptr("kustoCluster/KustoDatabase8/kustoScript"), + // Type: to.Ptr("Microsoft.Kusto/Clusters/Databases/Scripts"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-123456789098/resourceGroups/kustorptest/providers/Microsoft.Kusto/Clusters/kustoCluster/Databases/KustoDatabase8/Scripts/kustoScript"), + // Properties: &armkusto.ScriptProperties{ + // ContinueOnErrors: to.Ptr(true), + // ForceUpdateTag: to.Ptr("2bcf3c21-ffd1-4444-b9dd-e52e00ee53fe"), + // ScriptURL: to.Ptr("https://mysa.blob.core.windows.net/container/script.txt"), + // }, + // SystemData: &armkusto.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-06-29T15:06:54.2757906Z"); return t}()), + // CreatedBy: to.Ptr("user@microsoft.com"), + // CreatedByType: to.Ptr(armkusto.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-07-01T17:16:24.3644126Z"); return t}()), + // LastModifiedBy: to.Ptr("user2@microsoft.com"), + // LastModifiedByType: to.Ptr(armkusto.CreatedByTypeUser), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-07-07/examples/KustoScriptsDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoScriptsDelete.json func ExampleScriptsClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -141,7 +239,7 @@ func ExampleScriptsClient_BeginDelete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-07-07/examples/KustoScriptsCheckNameAvailability.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoScriptsCheckNameAvailability.json func ExampleScriptsClient_CheckNameAvailability() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -159,6 +257,12 @@ func ExampleScriptsClient_CheckNameAvailability() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.CheckNameResult = armkusto.CheckNameResult{ + // Name: to.Ptr("kustoScriptName1"), + // Message: to.Ptr("Name 'kustoScriptName1' is already taken. Please specify a different name"), + // NameAvailable: to.Ptr(false), + // } } diff --git a/sdk/resourcemanager/kusto/armkusto/skus_client.go b/sdk/resourcemanager/kusto/armkusto/skus_client.go new file mode 100644 index 000000000000..1e22eda934c1 --- /dev/null +++ b/sdk/resourcemanager/kusto/armkusto/skus_client.go @@ -0,0 +1,115 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armkusto + +import ( + "context" + "errors" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "net/http" + "net/url" + "strings" +) + +// SKUsClient contains the methods for the SKUs group. +// Don't use this type directly, use NewSKUsClient() instead. +type SKUsClient struct { + host string + subscriptionID string + pl runtime.Pipeline +} + +// NewSKUsClient creates a new instance of SKUsClient with the specified values. +// - subscriptionID - Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID +// forms part of the URI for every service call. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. +func NewSKUsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SKUsClient, error) { + if options == nil { + options = &arm.ClientOptions{} + } + ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err + } + client := &SKUsClient{ + subscriptionID: subscriptionID, + host: ep, + pl: pl, + } + return client, nil +} + +// NewListPager - Lists eligible region SKUs for Kusto resource provider by Azure region. +// +// Generated from API version 2022-12-29 +// - location - Azure location (region) name. +// - options - SKUsClientListOptions contains the optional parameters for the SKUsClient.NewListPager method. +func (client *SKUsClient) NewListPager(location string, options *SKUsClientListOptions) *runtime.Pager[SKUsClientListResponse] { + return runtime.NewPager(runtime.PagingHandler[SKUsClientListResponse]{ + More: func(page SKUsClientListResponse) bool { + return false + }, + Fetcher: func(ctx context.Context, page *SKUsClientListResponse) (SKUsClientListResponse, error) { + req, err := client.listCreateRequest(ctx, location, options) + if err != nil { + return SKUsClientListResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return SKUsClientListResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return SKUsClientListResponse{}, runtime.NewResponseError(resp) + } + return client.listHandleResponse(resp) + }, + }) +} + +// listCreateRequest creates the List request. +func (client *SKUsClient) listCreateRequest(ctx context.Context, location string, options *SKUsClientListOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.Kusto/locations/{location}/skus" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if location == "" { + return nil, errors.New("parameter location cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{location}", url.PathEscape(location)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-12-29") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listHandleResponse handles the List response. +func (client *SKUsClient) listHandleResponse(resp *http.Response) (SKUsClientListResponse, error) { + result := SKUsClientListResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.SKUDescriptionList); err != nil { + return SKUsClientListResponse{}, err + } + return result, nil +} diff --git a/sdk/resourcemanager/kusto/armkusto/skus_client_example_test.go b/sdk/resourcemanager/kusto/armkusto/skus_client_example_test.go new file mode 100644 index 000000000000..45ce3977c857 --- /dev/null +++ b/sdk/resourcemanager/kusto/armkusto/skus_client_example_test.go @@ -0,0 +1,124 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armkusto_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/kusto/armkusto" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/azure-kusto/resource-manager/Microsoft.Kusto/stable/2022-12-29/examples/KustoSkus.json +func ExampleSKUsClient_NewListPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armkusto.NewSKUsClient("12345678-1234-1234-1234-123456789098", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListPager("westus", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.SKUDescriptionList = armkusto.SKUDescriptionList{ + // Value: []*armkusto.SKUDescription{ + // { + // Name: to.Ptr("Standard_L8s_v3"), + // LocationInfo: []*armkusto.SKULocationInfoItem{ + // { + // Location: to.Ptr("West US"), + // Zones: []*string{ + // to.Ptr("1"), + // to.Ptr("2"), + // to.Ptr("3")}, + // }, + // { + // Location: to.Ptr("West US"), + // Zones: []*string{ + // }, + // }}, + // Locations: []*string{ + // to.Ptr("West US")}, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("Standard_L16s_v3"), + // LocationInfo: []*armkusto.SKULocationInfoItem{ + // { + // Location: to.Ptr("West US"), + // Zones: []*string{ + // to.Ptr("1"), + // to.Ptr("2"), + // to.Ptr("3")}, + // }, + // { + // Location: to.Ptr("West US"), + // Zones: []*string{ + // }, + // }}, + // Locations: []*string{ + // to.Ptr("West US")}, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("Standard_L8as_v3"), + // LocationInfo: []*armkusto.SKULocationInfoItem{ + // { + // Location: to.Ptr("West US"), + // Zones: []*string{ + // to.Ptr("1"), + // to.Ptr("2"), + // to.Ptr("3")}, + // }, + // { + // Location: to.Ptr("West US"), + // Zones: []*string{ + // }, + // }}, + // Locations: []*string{ + // to.Ptr("West US"), + // to.Ptr("West Europe")}, + // Tier: to.Ptr("Standard"), + // }, + // { + // Name: to.Ptr("Standard_L16as_v3"), + // LocationInfo: []*armkusto.SKULocationInfoItem{ + // { + // Location: to.Ptr("West US"), + // Zones: []*string{ + // to.Ptr("1"), + // to.Ptr("2"), + // to.Ptr("3")}, + // }, + // { + // Location: to.Ptr("West US"), + // Zones: []*string{ + // }, + // }}, + // Locations: []*string{ + // to.Ptr("West US"), + // to.Ptr("West Europe")}, + // Tier: to.Ptr("Standard"), + // }}, + // } + } +} diff --git a/sdk/resourcemanager/kusto/armkusto/time_rfc3339.go b/sdk/resourcemanager/kusto/armkusto/time_rfc3339.go index 7c93879d0f3d..ad076a47550d 100644 --- a/sdk/resourcemanager/kusto/armkusto/time_rfc3339.go +++ b/sdk/resourcemanager/kusto/armkusto/time_rfc3339.go @@ -62,7 +62,7 @@ func (t *timeRFC3339) Parse(layout, value string) error { return err } -func populateTimeRFC3339(m map[string]interface{}, k string, t *time.Time) { +func populateTimeRFC3339(m map[string]any, k string, t *time.Time) { if t == nil { return } else if azcore.IsNullValue(t) { From 39eb62497de93d1fa1805f29c6fc83d9062a011a Mon Sep 17 00:00:00 2001 From: Richard Park <51494936+richardpark-msft@users.noreply.github.com> Date: Wed, 22 Feb 2023 15:08:02 -0800 Subject: [PATCH 044/107] [azeventhubs] Adding in network chaos to a few tests #20050 Adding in a chaos policy deployment for the Event Hubs stress tests. Also, bumped up the tests to use larger limits. Fixes #15371 --- .../internal/eh/stress/scenarios-matrix.yaml | 31 ++++++++++++---- .../eh/stress/templates/deploy-job.yaml | 35 +++++++++++++++++++ 2 files changed, 60 insertions(+), 6 deletions(-) diff --git a/sdk/messaging/azeventhubs/internal/eh/stress/scenarios-matrix.yaml b/sdk/messaging/azeventhubs/internal/eh/stress/scenarios-matrix.yaml index 157211631fd2..84ea05ef7951 100644 --- a/sdk/messaging/azeventhubs/internal/eh/stress/scenarios-matrix.yaml +++ b/sdk/messaging/azeventhubs/internal/eh/stress/scenarios-matrix.yaml @@ -7,38 +7,57 @@ matrix: batch: testTarget: batch type: "batch" - rounds: 100 + rounds: 1000 prefetch: 0 verbose: "" sleepAfter: "5m" batchprefetchoff: testTarget: batch - rounds: 100 + rounds: 1000 prefetch: -1 verbose: "" sleepAfter: "5m" batchinfinite: testTarget: batch type: "batch" - rounds: 100 + rounds: 1000 prefetch: 0 verbose: "" sleepAfter: "5m" + batchinfinitechaos: + testTarget: batch + type: "batch" + rounds: 1000 + prefetch: 0 + verbose: "" + sleepAfter: "5m" + # this value is injected as a label value in templates/deploy-job.yaml + # this'll activate our standard chaos policy, which is at the bottom of that file. + chaos: "true" processor: testTarget: processor - rounds: 100 + rounds: 1000 + prefetch: 0 + verbose: "" + sleepAfter: "5m" + processorchaos: + testTarget: processor + rounds: 1000 prefetch: 0 verbose: "" sleepAfter: "5m" + # this value is injected as a label value in templates/deploy-job.yaml + # this'll activate our standard chaos policy, which is at the bottom of that file. + chaos: "true" processorprefetchoff: testTarget: processor - rounds: 100 + rounds: 1000 prefetch: -1 verbose: "" sleepAfter: "5m" processorinfinite: testTarget: processor - rounds: 100 + rounds: 1000 prefetch: 0 verbose: "" sleepAfter: "5m" diff --git a/sdk/messaging/azeventhubs/internal/eh/stress/templates/deploy-job.yaml b/sdk/messaging/azeventhubs/internal/eh/stress/templates/deploy-job.yaml index 7d2bce40e897..fdf67c1547da 100644 --- a/sdk/messaging/azeventhubs/internal/eh/stress/templates/deploy-job.yaml +++ b/sdk/messaging/azeventhubs/internal/eh/stress/templates/deploy-job.yaml @@ -5,6 +5,7 @@ metadata: testName: "goeh" # This'll make it so the resources aren't deleted on test exit. # Skip.RemoveTestResources: "true" + chaos: "{{ default false .Stress.chaos }}" spec: containers: - name: main @@ -40,3 +41,37 @@ spec: {{- include "stress-test-addons.container-env" . | nindent 6 }} {{- end -}} +{{- include "stress-test-addons.chaos-wrapper.tpl" (list . "stress.network-chaos") -}} +{{- define "stress.network-chaos" -}} +# basically: every 5 minutes do 10s of network loss +kind: Schedule +apiVersion: chaos-mesh.org/v1alpha1 +spec: + schedule: "*/5 * * * *" + startingDeadlineSeconds: null + concurrencyPolicy: Forbid + historyLimit: 1 + type: NetworkChaos + networkChaos: + selector: + namespaces: + - "{{ .Release.Namespace }}" + labelSelectors: + scenario: {{ .Stress.Scenario }} + mode: all + action: loss + duration: 10s + loss: + loss: '100' + correlation: '100' + direction: to + target: + selector: + namespaces: + - {{ .Release.Namespace }} + labelSelectors: + scenario: {{ .Stress.Scenario }} + mode: all + externalTargets: + - {{ .Stress.BaseName }}.servicebus.windows.net +{{- end -}} From 7495dec45bff62ad536f9a67e3273bb6fcca29bc Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 23 Feb 2023 08:30:47 -0800 Subject: [PATCH 045/107] Bump golang.org/x/text from 0.3.7 to 0.3.8 in /sdk/azidentity (#20055) Bumps [golang.org/x/text](https://github.com/golang/text) from 0.3.7 to 0.3.8. - [Release notes](https://github.com/golang/text/releases) - [Commits](https://github.com/golang/text/compare/v0.3.7...v0.3.8) --- updated-dependencies: - dependency-name: golang.org/x/text dependency-type: indirect ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- sdk/azidentity/go.mod | 4 ++-- sdk/azidentity/go.sum | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/sdk/azidentity/go.mod b/sdk/azidentity/go.mod index 75995dd984a8..98724b6d165c 100644 --- a/sdk/azidentity/go.mod +++ b/sdk/azidentity/go.mod @@ -17,8 +17,8 @@ require ( github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20210115035449-ce105d075bb4 // 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 + golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f // indirect + golang.org/x/text v0.3.8 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect ) diff --git a/sdk/azidentity/go.sum b/sdk/azidentity/go.sum index 35014d4afbd0..10c7a697372c 100644 --- a/sdk/azidentity/go.sum +++ b/sdk/azidentity/go.sum @@ -23,10 +23,10 @@ golang.org/x/crypto v0.0.0-20220511200225-c6db032c6c88 h1:Tgea0cVUD0ivh5ADBX4Wwu 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-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/sys v0.0.0-20220722155257-8c9f86f7a55f h1:v4INt8xihDGvnrfjMDVXGxw9wrfxYyCjk0KbXjhR55s= +golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/text v0.3.8 h1:nAL+RVCQ9uMn3vJZbV+MRnydTJFPf8qqY42YiA6MrqY= +golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= 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= From 96d7f70e55a1f334ff6c95b5acf458ce355f45a1 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 23 Feb 2023 08:40:53 -0800 Subject: [PATCH 046/107] Bump golang.org/x/text in /sdk/security/keyvault/internal (#20284) Bumps [golang.org/x/text](https://github.com/golang/text) from 0.3.7 to 0.3.8. - [Release notes](https://github.com/golang/text/releases) - [Commits](https://github.com/golang/text/compare/v0.3.7...v0.3.8) --- updated-dependencies: - dependency-name: golang.org/x/text dependency-type: indirect ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- sdk/security/keyvault/internal/go.mod | 2 +- sdk/security/keyvault/internal/go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sdk/security/keyvault/internal/go.mod b/sdk/security/keyvault/internal/go.mod index 0debbe735836..307d0a15c95b 100644 --- a/sdk/security/keyvault/internal/go.mod +++ b/sdk/security/keyvault/internal/go.mod @@ -12,6 +12,6 @@ require ( github.com/davecgh/go-spew v1.1.0 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4 // indirect - golang.org/x/text v0.3.7 // indirect + golang.org/x/text v0.3.8 // indirect gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c // indirect ) diff --git a/sdk/security/keyvault/internal/go.sum b/sdk/security/keyvault/internal/go.sum index 45bf8a734a06..920e2cd4f76d 100644 --- a/sdk/security/keyvault/internal/go.sum +++ b/sdk/security/keyvault/internal/go.sum @@ -11,8 +11,8 @@ github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5Cc github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= 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/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk= -golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= +golang.org/x/text v0.3.8 h1:nAL+RVCQ9uMn3vJZbV+MRnydTJFPf8qqY42YiA6MrqY= +golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo= From 56bc1ff11325e1bb81e5f49f02c482546d427bcc Mon Sep 17 00:00:00 2001 From: Joel Hendrix Date: Thu, 23 Feb 2023 10:38:48 -0800 Subject: [PATCH 047/107] Favor custom PollingHandler when rehydrating a poller (#20286) This ensures that the custom handler is used in the event that the custom poller has the same shape as an in-box poller. --- sdk/azcore/CHANGELOG.md | 1 + sdk/azcore/runtime/poller.go | 6 +- sdk/azcore/runtime/poller_test.go | 92 +++++++++++++++++++++++++++++++ 3 files changed, 96 insertions(+), 3 deletions(-) diff --git a/sdk/azcore/CHANGELOG.md b/sdk/azcore/CHANGELOG.md index b95d0f7d8077..999b2cdda712 100644 --- a/sdk/azcore/CHANGELOG.md +++ b/sdk/azcore/CHANGELOG.md @@ -8,6 +8,7 @@ ### Bugs Fixed * ARM's RP registration policy will no longer swallow unrecognized errors. +* Fixed an issue in `runtime.NewPollerFromResumeToken()` when resuming a `Poller` with a custom `PollingHandler`. ### Other Changes diff --git a/sdk/azcore/runtime/poller.go b/sdk/azcore/runtime/poller.go index 14c90fecfe5d..0be5210a4a38 100644 --- a/sdk/azcore/runtime/poller.go +++ b/sdk/azcore/runtime/poller.go @@ -146,7 +146,9 @@ func NewPollerFromResumeToken[T any](token string, pl exported.Pipeline, options opr := options.Handler // now rehydrate the poller based on the encoded poller type - if async.CanResume(asJSON) { + if opr != nil { + log.Writef(log.EventLRO, "Resuming custom poller %T.", opr) + } else if async.CanResume(asJSON) { opr, _ = async.New[T](pl, nil, "") } else if body.CanResume(asJSON) { opr, _ = body.New[T](pl, nil) @@ -154,8 +156,6 @@ func NewPollerFromResumeToken[T any](token string, pl exported.Pipeline, options opr, _ = loc.New[T](pl, nil) } else if op.CanResume(asJSON) { opr, _ = op.New[T](pl, nil, "") - } else if opr != nil { - log.Writef(log.EventLRO, "Resuming custom poller %T.", opr) } else { return nil, fmt.Errorf("unhandled poller token %s", string(raw)) } diff --git a/sdk/azcore/runtime/poller_test.go b/sdk/azcore/runtime/poller_test.go index 484892f5b1ca..3ce04097a0e5 100644 --- a/sdk/azcore/runtime/poller_test.go +++ b/sdk/azcore/runtime/poller_test.go @@ -8,6 +8,7 @@ package runtime import ( "context" + "encoding/json" "errors" "fmt" "io" @@ -1084,3 +1085,94 @@ func TestNewPollerWithResponseType(t *testing.T) { t.Fatalf("unexpected value %d", result.Preconstructed) } } + +// purposefully looks like an async poller but isn't +type customHandler struct { + PollURL string `json:"asyncURL"` + State string `json:"state"` + p Pipeline +} + +func (c *customHandler) Done() bool { + return c.State == "Succeeded" +} + +func (c *customHandler) Poll(ctx context.Context) (*http.Response, error) { + req, err := NewRequest(ctx, http.MethodGet, c.PollURL) + if err != nil { + return nil, err + } + resp, err := c.p.Do(req) + if err != nil { + return nil, err + } + body, err := Payload(resp) + if err != nil { + return nil, err + } + type statusMon struct { + Status string `json:"status"` + } + var sm statusMon + if err = json.Unmarshal(body, &sm); err != nil { + return nil, err + } + c.State = sm.Status + return resp, nil +} + +func (c *customHandler) Result(ctx context.Context, out *mockType) error { + req, err := NewRequest(ctx, http.MethodGet, c.PollURL) + if err != nil { + return err + } + resp, err := c.p.Do(req) + if err != nil { + return err + } + body, err := Payload(resp) + if err != nil { + return err + } + if err = json.Unmarshal(body, out); err != nil { + return err + } + return nil +} + +func TestNewPollerWithCustomHandler(t *testing.T) { + srv, close := mock.NewServer() + defer close() + srv.AppendResponse(mock.WithBody([]byte(statusInProgress))) + srv.AppendResponse(mock.WithBody([]byte(statusSucceeded))) + srv.AppendResponse(mock.WithBody([]byte(successResp))) + resp, closed := initialResponse(http.MethodPut, srv.URL(), strings.NewReader(provStateStarted)) + resp.Header.Set(shared.HeaderAzureAsync, srv.URL()) + resp.StatusCode = http.StatusCreated + pl := getPipeline(srv) + poller, err := NewPoller(resp, pl, &NewPollerOptions[mockType]{ + Handler: &customHandler{ + PollURL: srv.URL(), + State: "InProgress", + p: pl, + }, + }) + require.NoError(t, err) + require.False(t, closed()) + require.IsType(t, &customHandler{}, poller.op) + tk, err := poller.ResumeToken() + require.NoError(t, err) + poller, err = NewPollerFromResumeToken(tk, pl, &NewPollerFromResumeTokenOptions[mockType]{ + Handler: &customHandler{ + p: pl, + }, + }) + require.IsType(t, &customHandler{}, poller.op) + require.NoError(t, err) + result, err := poller.PollUntilDone(context.Background(), &PollUntilDoneOptions{Frequency: time.Millisecond}) + require.NoError(t, err) + require.EqualValues(t, "value", *result.Field) + result, err = poller.Result(context.Background()) + require.NoError(t, err) + require.EqualValues(t, "value", *result.Field) +} From f8091f54ec6140c73b11d5399f6f1702e4f55979 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Thu, 23 Feb 2023 16:54:27 -0500 Subject: [PATCH 048/107] Sync eng/common directory with azure-sdk-tools for PR 5431 #2501 Co-authored-by: Konrad Jamrozik --- eng/common/scripts/get-codeowners.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/common/scripts/get-codeowners.ps1 b/eng/common/scripts/get-codeowners.ps1 index 5c2bb9b50ab2..afe993d50bab 100644 --- a/eng/common/scripts/get-codeowners.ps1 +++ b/eng/common/scripts/get-codeowners.ps1 @@ -168,7 +168,7 @@ if ($Test) { $azSdkToolsCodeowners = (Resolve-Path "$PSScriptRoot/../../../.github/CODEOWNERS") TestGetCodeowners -targetPath "eng/common/scripts/get-codeowners.ps1" -codeownersFileLocation $azSdkToolsCodeowners -includeNonUserAliases $true -expectReturn @("konrad-jamrozik", "weshaggard", "benbp") - $testCodeowners = (Resolve-Path "$PSScriptRoot/../../../tools/code-owners-parser/Azure.Sdk.Tools.RetrieveCodeOwners.Tests/TestData/glob_path_CODEOWNERS") + $testCodeowners = (Resolve-Path "$PSScriptRoot/../../../tools/code-owners-parser/Azure.Sdk.Tools.RetrieveCodeOwners.Tests/TestData/test_CODEOWNERS") TestGetCodeowners -targetPath "tools/code-owners-parser/Azure.Sdk.Tools.RetrieveCodeOwners.Tests/TestData/InputDir/a.txt" -codeownersFileLocation $testCodeowners -includeNonUserAliases $true -expectReturn @("2star") exit 0 } From e4d6d58f40534187fd3feb4036682274b7afb761 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Thu, 23 Feb 2023 20:49:32 -0500 Subject: [PATCH 049/107] Sync eng/common directory with azure-sdk-tools for PR 5562 (#20287) * Add todos to update packages to pick up the newest CODEOWNERS interpreter * update --------- Co-authored-by: Konrad Jamrozik --- eng/common/scripts/get-codeowners.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/common/scripts/get-codeowners.ps1 b/eng/common/scripts/get-codeowners.ps1 index afe993d50bab..a4a18ecea42f 100644 --- a/eng/common/scripts/get-codeowners.ps1 +++ b/eng/common/scripts/get-codeowners.ps1 @@ -62,7 +62,7 @@ param ( # but not this one: # Remove the obsolete, prefix-based CODEOWNERS matcher & related tests # https://github.com/Azure/azure-sdk-tools/pull/5431 - [string]$ToolVersion = "1.0.0-dev.20230214.3", + [string]$ToolVersion = "1.0.0-dev.20230223.4", [string]$ToolPath = (Join-Path ([System.IO.Path]::GetTempPath()) "codeowners-tool-path"), [string]$DevOpsFeed = "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-net/nuget/v3/index.json", [string]$VsoVariable = "", From 3ec1f08e42e54df8c3ea9c904cc89adaeb2b4dcd Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Thu, 23 Feb 2023 21:11:36 -0500 Subject: [PATCH 050/107] [Release] sdk/resourcemanager/recoveryservices/armrecoveryservices/1.2.0 (#19911) * [Release] sdk/resourcemanager/recoveryservices/armrecoveryservices/2.0.0 generation from spec commit: 630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f * 1.2.0 --------- Co-authored-by: ReleaseHelper Co-authored-by: Alancere <804873052@qq.com> --- .../armrecoveryservices/CHANGELOG.md | 21 + .../armrecoveryservices/autorest.md | 6 +- .../armrecoveryservices/client.go | 72 +- .../client_example_test.go | 122 +++ .../armrecoveryservices/constants.go | 53 +- .../armrecoveryservices/go.mod | 6 +- .../armrecoveryservices/go.sum | 15 +- .../armrecoveryservices/models.go | 97 +- .../armrecoveryservices/models_serde.go | 406 ++++++-- .../armrecoveryservices/operations_client.go | 40 +- .../operations_client_example_test.go | 517 ++++++++++- .../polymorphic_helpers.go | 2 +- .../privatelinkresources_client.go | 33 +- ...rivatelinkresources_client_example_test.go | 89 +- .../recoveryservices_client_example_test.go | 44 - .../registeredidentities_client.go | 21 +- ...egisteredidentities_client_example_test.go | 9 +- .../replicationusages_client.go | 19 +- .../replicationusages_client_example_test.go | 35 +- .../armrecoveryservices/response_types.go | 21 +- .../armrecoveryservices/time_rfc3339.go | 2 +- .../armrecoveryservices/usages_client.go | 18 +- .../usages_client_example_test.go | 181 +++- .../vaultcertificates_client.go | 23 +- .../vaultcertificates_client_example_test.go | 43 +- .../vaultextendedinfo_client.go | 47 +- .../vaultextendedinfo_client_example_test.go | 65 +- .../armrecoveryservices/vaults_client.go | 84 +- .../vaults_client_example_test.go | 869 +++++++++++++++++- 29 files changed, 2509 insertions(+), 451 deletions(-) create mode 100644 sdk/resourcemanager/recoveryservices/armrecoveryservices/client_example_test.go delete mode 100644 sdk/resourcemanager/recoveryservices/armrecoveryservices/recoveryservices_client_example_test.go diff --git a/sdk/resourcemanager/recoveryservices/armrecoveryservices/CHANGELOG.md b/sdk/resourcemanager/recoveryservices/armrecoveryservices/CHANGELOG.md index b1b9b9b776dc..538893731735 100644 --- a/sdk/resourcemanager/recoveryservices/armrecoveryservices/CHANGELOG.md +++ b/sdk/resourcemanager/recoveryservices/armrecoveryservices/CHANGELOG.md @@ -1,5 +1,26 @@ # Release History +## 1.2.0 (2023-02-24) +### Features Added + +- New type alias `ImmutabilityState` with values `ImmutabilityStateDisabled`, `ImmutabilityStateLocked`, `ImmutabilityStateUnlocked` +- New type alias `PublicNetworkAccess` with values `PublicNetworkAccessDisabled`, `PublicNetworkAccessEnabled` +- New type alias `VaultSubResourceType` with values `VaultSubResourceTypeAzureBackup`, `VaultSubResourceTypeAzureBackupSecondary`, `VaultSubResourceTypeAzureSiteRecovery` +- New function `*Client.Capabilities(context.Context, string, ResourceCapabilities, *ClientCapabilitiesOptions) (ClientCapabilitiesResponse, error)` +- New struct `CapabilitiesProperties` +- New struct `CapabilitiesResponse` +- New struct `CapabilitiesResponseProperties` +- New struct `DNSZone` +- New struct `DNSZoneResponse` +- New struct `ImmutabilitySettings` +- New struct `ResourceCapabilities` +- New struct `ResourceCapabilitiesBase` +- New struct `SecuritySettings` +- New field `GroupIDs` in struct `PrivateEndpointConnection` +- New field `PublicNetworkAccess` in struct `VaultProperties` +- New field `SecuritySettings` in struct `VaultProperties` + + ## 1.1.0 (2022-07-22) ### Features Added diff --git a/sdk/resourcemanager/recoveryservices/armrecoveryservices/autorest.md b/sdk/resourcemanager/recoveryservices/armrecoveryservices/autorest.md index 7f0818fef167..cb29bc2c3aa3 100644 --- a/sdk/resourcemanager/recoveryservices/armrecoveryservices/autorest.md +++ b/sdk/resourcemanager/recoveryservices/armrecoveryservices/autorest.md @@ -5,10 +5,10 @@ ``` yaml azure-arm: true require: -- https://github.com/Azure/azure-rest-api-specs/blob/43ca5ba8c01eafc595f418a66adb6c3c09d9b965/specification/recoveryservices/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/43ca5ba8c01eafc595f418a66adb6c3c09d9b965/specification/recoveryservices/resource-manager/readme.go.md +- https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/recoveryservices/resource-manager/readme.md +- https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/recoveryservices/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 1.1.0 +module-version: 1.2.0 directive: - from: vaults.json where: '$.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/operationStatus/{operationId}"].get' diff --git a/sdk/resourcemanager/recoveryservices/armrecoveryservices/client.go b/sdk/resourcemanager/recoveryservices/armrecoveryservices/client.go index 11245cbb41a7..4affc9b49e6d 100644 --- a/sdk/resourcemanager/recoveryservices/armrecoveryservices/client.go +++ b/sdk/resourcemanager/recoveryservices/armrecoveryservices/client.go @@ -32,9 +32,9 @@ type Client struct { } // NewClient creates a new instance of Client with the specified values. -// subscriptionID - The subscription Id. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*Client, error) { if options == nil { options = &arm.ClientOptions{} @@ -55,15 +55,69 @@ func NewClient(subscriptionID string, credential azcore.TokenCredential, options return client, nil } +// Capabilities - API to get details about capabilities provided by Microsoft.RecoveryServices RP +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-01-01 +// - location - Location of the resource +// - input - Contains information about Resource type and properties to get capabilities +// - options - ClientCapabilitiesOptions contains the optional parameters for the Client.Capabilities method. +func (client *Client) Capabilities(ctx context.Context, location string, input ResourceCapabilities, options *ClientCapabilitiesOptions) (ClientCapabilitiesResponse, error) { + req, err := client.capabilitiesCreateRequest(ctx, location, input, options) + if err != nil { + return ClientCapabilitiesResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return ClientCapabilitiesResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return ClientCapabilitiesResponse{}, runtime.NewResponseError(resp) + } + return client.capabilitiesHandleResponse(resp) +} + +// capabilitiesCreateRequest creates the Capabilities request. +func (client *Client) capabilitiesCreateRequest(ctx context.Context, location string, input ResourceCapabilities, options *ClientCapabilitiesOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.RecoveryServices/locations/{location}/capabilities" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if location == "" { + return nil, errors.New("parameter location cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{location}", url.PathEscape(location)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-01-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, runtime.MarshalAsJSON(req, input) +} + +// capabilitiesHandleResponse handles the Capabilities response. +func (client *Client) capabilitiesHandleResponse(resp *http.Response) (ClientCapabilitiesResponse, error) { + result := ClientCapabilitiesResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.CapabilitiesResponse); err != nil { + return ClientCapabilitiesResponse{}, err + } + return result, nil +} + // CheckNameAvailability - API to check for resource name availability. A name is available if no other resource exists that // has the same SubscriptionId, Resource Name and Type or if one or more such resources exist, each of // these must be GC'd and their time of deletion be more than 24 Hours Ago // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-04-01 -// resourceGroupName - The name of the resource group where the recovery services vault is present. -// location - Location of the resource -// input - Contains information about Resource type and Resource name -// options - ClientCheckNameAvailabilityOptions contains the optional parameters for the Client.CheckNameAvailability method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - location - Location of the resource +// - input - Contains information about Resource type and Resource name +// - options - ClientCheckNameAvailabilityOptions contains the optional parameters for the Client.CheckNameAvailability method. func (client *Client) CheckNameAvailability(ctx context.Context, resourceGroupName string, location string, input CheckNameAvailabilityParameters, options *ClientCheckNameAvailabilityOptions) (ClientCheckNameAvailabilityResponse, error) { req, err := client.checkNameAvailabilityCreateRequest(ctx, resourceGroupName, location, input, options) if err != nil { @@ -99,7 +153,7 @@ func (client *Client) checkNameAvailabilityCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-04-01") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, input) diff --git a/sdk/resourcemanager/recoveryservices/armrecoveryservices/client_example_test.go b/sdk/resourcemanager/recoveryservices/armrecoveryservices/client_example_test.go new file mode 100644 index 000000000000..7648c43ef301 --- /dev/null +++ b/sdk/resourcemanager/recoveryservices/armrecoveryservices/client_example_test.go @@ -0,0 +1,122 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armrecoveryservices_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservices" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/CheckNameAvailability_Available.json +func ExampleClient_CheckNameAvailability_availabilityStatusOfResourceNameWhenNoResourceWithSameNameTypeAndSubscriptionExistsNorHasBeenDeletedWithinLast24Hours() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armrecoveryservices.NewClient("77777777-b0c6-47a2-b37c-d8e65a629c18", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.CheckNameAvailability(ctx, "resGroupFoo", "westus", armrecoveryservices.CheckNameAvailabilityParameters{ + Name: to.Ptr("swaggerExample"), + Type: to.Ptr("Microsoft.RecoveryServices/Vaults"), + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.CheckNameAvailabilityResult = armrecoveryservices.CheckNameAvailabilityResult{ + // NameAvailable: to.Ptr(true), + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/CheckNameAvailability_NotAvailable.json +func ExampleClient_CheckNameAvailability_availabilityStatusOfResourceNameWhenResourceWithSameNameTypeAndSubscriptionExists() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armrecoveryservices.NewClient("77777777-b0c6-47a2-b37c-d8e65a629c18", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.CheckNameAvailability(ctx, "resGroupBar", "westus", armrecoveryservices.CheckNameAvailabilityParameters{ + Name: to.Ptr("swaggerExample2"), + Type: to.Ptr("Microsoft.RecoveryServices/Vaults"), + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.CheckNameAvailabilityResult = armrecoveryservices.CheckNameAvailabilityResult{ + // Message: to.Ptr("Resource already exists with the same name."), + // NameAvailable: to.Ptr(false), + // Reason: to.Ptr("AlreadyExists"), + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/Capabilities.json +func ExampleClient_Capabilities() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armrecoveryservices.NewClient("77777777-b0c6-47a2-b37c-d8e65a629c18", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Capabilities(ctx, "westus", armrecoveryservices.ResourceCapabilities{ + Type: to.Ptr("Microsoft.RecoveryServices/Vaults"), + Properties: &armrecoveryservices.CapabilitiesProperties{ + DNSZones: []*armrecoveryservices.DNSZone{ + { + SubResource: to.Ptr(armrecoveryservices.VaultSubResourceTypeAzureBackup), + }, + { + SubResource: to.Ptr(armrecoveryservices.VaultSubResourceTypeAzureSiteRecovery), + }}, + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.CapabilitiesResponse = armrecoveryservices.CapabilitiesResponse{ + // Type: to.Ptr("Microsoft.RecoveryServices/Vaults"), + // Properties: &armrecoveryservices.CapabilitiesResponseProperties{ + // DNSZones: []*armrecoveryservices.DNSZoneResponse{ + // { + // SubResource: to.Ptr(armrecoveryservices.VaultSubResourceTypeAzureBackup), + // RequiredZoneNames: []*string{ + // to.Ptr("privatelink.wus.backup.windowsazure.com"), + // to.Ptr("privatelink.queue.core.windows.net"), + // to.Ptr("privatelink.blob.core.windows.net")}, + // }, + // { + // SubResource: to.Ptr(armrecoveryservices.VaultSubResourceTypeAzureSiteRecovery), + // RequiredZoneNames: []*string{ + // to.Ptr("privatelink.siterecovery.windowsazure.com")}, + // }}, + // }, + // } +} diff --git a/sdk/resourcemanager/recoveryservices/armrecoveryservices/constants.go b/sdk/resourcemanager/recoveryservices/armrecoveryservices/constants.go index 33ee98a9eeff..b01895dbce17 100644 --- a/sdk/resourcemanager/recoveryservices/armrecoveryservices/constants.go +++ b/sdk/resourcemanager/recoveryservices/armrecoveryservices/constants.go @@ -11,7 +11,7 @@ package armrecoveryservices const ( moduleName = "armrecoveryservices" - moduleVersion = "v1.1.0" + moduleVersion = "v1.2.0" ) type AlertsState string @@ -105,6 +105,23 @@ func PossibleCrossRegionRestoreValues() []CrossRegionRestore { } } +type ImmutabilityState string + +const ( + ImmutabilityStateDisabled ImmutabilityState = "Disabled" + ImmutabilityStateLocked ImmutabilityState = "Locked" + ImmutabilityStateUnlocked ImmutabilityState = "Unlocked" +) + +// PossibleImmutabilityStateValues returns the possible values for the ImmutabilityState const type. +func PossibleImmutabilityStateValues() []ImmutabilityState { + return []ImmutabilityState{ + ImmutabilityStateDisabled, + ImmutabilityStateLocked, + ImmutabilityStateUnlocked, + } +} + // InfrastructureEncryptionState - Enabling/Disabling the Double Encryption state type InfrastructureEncryptionState string @@ -161,6 +178,22 @@ func PossibleProvisioningStateValues() []ProvisioningState { } } +// PublicNetworkAccess - property to enable or disable resource provider inbound network traffic from public clients +type PublicNetworkAccess string + +const ( + PublicNetworkAccessDisabled PublicNetworkAccess = "Disabled" + PublicNetworkAccessEnabled PublicNetworkAccess = "Enabled" +) + +// PossiblePublicNetworkAccessValues returns the possible values for the PublicNetworkAccess const type. +func PossiblePublicNetworkAccessValues() []PublicNetworkAccess { + return []PublicNetworkAccess{ + PublicNetworkAccessDisabled, + PublicNetworkAccessEnabled, + } +} + // ResourceIdentityType - The type of managed identity used. The type 'SystemAssigned, UserAssigned' includes both an implicitly // created identity and a set of user-assigned identities. The type 'None' will remove any // identities. @@ -307,6 +340,24 @@ func PossibleVaultPrivateEndpointStateValues() []VaultPrivateEndpointState { } } +// VaultSubResourceType - Subresource type for vault AzureBackup, AzureBackup_secondary or AzureSiteRecovery +type VaultSubResourceType string + +const ( + VaultSubResourceTypeAzureBackup VaultSubResourceType = "AzureBackup" + VaultSubResourceTypeAzureBackupSecondary VaultSubResourceType = "AzureBackup_secondary" + VaultSubResourceTypeAzureSiteRecovery VaultSubResourceType = "AzureSiteRecovery" +) + +// PossibleVaultSubResourceTypeValues returns the possible values for the VaultSubResourceType const type. +func PossibleVaultSubResourceTypeValues() []VaultSubResourceType { + return []VaultSubResourceType{ + VaultSubResourceTypeAzureBackup, + VaultSubResourceTypeAzureBackupSecondary, + VaultSubResourceTypeAzureSiteRecovery, + } +} + // VaultUpgradeState - Status of the vault upgrade operation. type VaultUpgradeState string diff --git a/sdk/resourcemanager/recoveryservices/armrecoveryservices/go.mod b/sdk/resourcemanager/recoveryservices/armrecoveryservices/go.mod index 99a69ab79f6c..1203d8716293 100644 --- a/sdk/resourcemanager/recoveryservices/armrecoveryservices/go.mod +++ b/sdk/resourcemanager/recoveryservices/armrecoveryservices/go.mod @@ -4,13 +4,13 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.0.0 - github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.1.0 + github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.1 ) require ( github.com/Azure/azure-sdk-for-go/sdk/internal v1.0.0 // indirect - github.com/AzureAD/microsoft-authentication-library-for-go v0.5.1 // indirect - github.com/golang-jwt/jwt v3.2.1+incompatible // indirect + github.com/AzureAD/microsoft-authentication-library-for-go v0.8.1 // indirect + github.com/golang-jwt/jwt/v4 v4.4.2 // 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 diff --git a/sdk/resourcemanager/recoveryservices/armrecoveryservices/go.sum b/sdk/resourcemanager/recoveryservices/armrecoveryservices/go.sum index 8828b17b1853..67cfef6bdf6e 100644 --- a/sdk/resourcemanager/recoveryservices/armrecoveryservices/go.sum +++ b/sdk/resourcemanager/recoveryservices/armrecoveryservices/go.sum @@ -1,21 +1,19 @@ 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.1.0 h1:QkAcEIAKbNL4KoFr4SathZPhDhF4mVwpBMFlYjyAqy8= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.1.0/go.mod h1:bhXu1AjYL+wutSL/kpSq6s7733q2Rb0yuot9Zgfqa/0= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.1 h1:T8quHYlUGyb/oqtSTwqlCr1ilJHrDv+ZtpSfo+hm1BU= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.1/go.mod h1:gLa1CL2RNE4s7M3yopJ/p0iq5DdY6Yv5ZUt9MTRZOQM= 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.5.1 h1:BWe8a+f/t+7KY7zH2mqygeUD0t8hNFXe08p1Pb3/jKE= -github.com/AzureAD/microsoft-authentication-library-for-go v0.5.1/go.mod h1:Vt9sXTKwMyGcOxSmLDMnGPgqsUg7m8pe215qMLrDXw4= +github.com/AzureAD/microsoft-authentication-library-for-go v0.8.1 h1:oPdPEZFSbl7oSPEAIPMPBMUmiL+mqgzBJwM/9qYcwNg= +github.com/AzureAD/microsoft-authentication-library-for-go v0.8.1/go.mod h1:4qFor3D/HDsvBME35Xy9rwW9DecL+M2sNw1ybjPtwA0= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/dnaeon/go-vcr v1.1.0 h1:ReYa/UBrRyQdant9B4fNHGoCNKw6qh6P0fsdGmZpR7c= -github.com/golang-jwt/jwt 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= +github.com/golang-jwt/jwt/v4 v4.4.2 h1:rcc4lwaZgFMCZ5jxF9ABolDcIHdBytAFgqFPbSJQAYs= +github.com/golang-jwt/jwt/v4 v4.4.2/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= 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/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= @@ -24,7 +22,6 @@ golang.org/x/crypto v0.0.0-20220511200225-c6db032c6c88 h1:Tgea0cVUD0ivh5ADBX4Wwu 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-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= diff --git a/sdk/resourcemanager/recoveryservices/armrecoveryservices/models.go b/sdk/resourcemanager/recoveryservices/armrecoveryservices/models.go index 6511a16f82be..3862ba574fdb 100644 --- a/sdk/resourcemanager/recoveryservices/armrecoveryservices/models.go +++ b/sdk/resourcemanager/recoveryservices/armrecoveryservices/models.go @@ -16,6 +16,25 @@ type AzureMonitorAlertSettings struct { AlertsForAllJobFailures *AlertsState `json:"alertsForAllJobFailures,omitempty"` } +// CapabilitiesProperties - Capabilities information +type CapabilitiesProperties struct { + DNSZones []*DNSZone `json:"dnsZones,omitempty"` +} + +// CapabilitiesResponse - Capabilities response for Microsoft.RecoveryServices +type CapabilitiesResponse struct { + // REQUIRED; Describes the Resource type: Microsoft.RecoveryServices/Vaults + Type *string `json:"type,omitempty"` + + // Capabilities properties in response + Properties *CapabilitiesResponseProperties `json:"properties,omitempty"` +} + +// CapabilitiesResponseProperties - Capabilities properties in response +type CapabilitiesResponseProperties struct { + DNSZones []*DNSZoneResponse `json:"dnsZones,omitempty"` +} + // CertificateRequest - Details of the certificate to be uploaded to the vault. type CertificateRequest struct { // Raw certificate data. @@ -44,6 +63,11 @@ type ClassicAlertSettings struct { AlertsForCriticalOperations *AlertsState `json:"alertsForCriticalOperations,omitempty"` } +// ClientCapabilitiesOptions contains the optional parameters for the Client.Capabilities method. +type ClientCapabilitiesOptions struct { + // placeholder for future optional parameters +} + // ClientCheckNameAvailabilityOptions contains the optional parameters for the Client.CheckNameAvailability method. type ClientCheckNameAvailabilityOptions struct { // placeholder for future optional parameters @@ -112,12 +136,6 @@ type ClientDiscoveryValueForSingleAPI struct { Properties *ClientDiscoveryForProperties `json:"properties,omitempty"` } -// CloudError - An error response from Azure Backup. -type CloudError struct { - // The resource management error response. - Error *Error `json:"error,omitempty"` -} - // CmkKekIdentity - The details of the identity used for CMK type CmkKekIdentity struct { // Indicate that system assigned identity should be used. Mutually exclusive with 'userAssignedIdentity' field @@ -133,6 +151,21 @@ type CmkKeyVaultProperties struct { KeyURI *string `json:"keyUri,omitempty"` } +// DNSZone information +type DNSZone struct { + // Subresource type for vault AzureBackup, AzureBackup_secondary or AzureSiteRecovery + SubResource *VaultSubResourceType `json:"subResource,omitempty"` +} + +// DNSZoneResponse - DNSZone information for Microsoft.RecoveryServices +type DNSZoneResponse struct { + // The private link resource Private link DNS zone names. + RequiredZoneNames []*string `json:"requiredZoneNames,omitempty"` + + // Subresource type for vault AzureBackup, AzureBackup_secondary or AzureSiteRecovery + SubResource *VaultSubResourceType `json:"subResource,omitempty"` +} + // Error - The resource management error response. type Error struct { // READ-ONLY; The error additional info. @@ -154,7 +187,7 @@ type Error struct { // ErrorAdditionalInfo - The resource management error additional info. type ErrorAdditionalInfo struct { // READ-ONLY; The additional info. - Info interface{} `json:"info,omitempty" azure:"ro"` + Info any `json:"info,omitempty" azure:"ro"` // READ-ONLY; The additional info type. Type *string `json:"type,omitempty" azure:"ro"` @@ -179,6 +212,11 @@ type IdentityData struct { TenantID *string `json:"tenantId,omitempty" azure:"ro"` } +// ImmutabilitySettings - Immutability Settings of vault +type ImmutabilitySettings struct { + State *ImmutabilityState `json:"state,omitempty"` +} + // JobsSummary - Summary of the replication job data for this vault. type JobsSummary struct { // Count of failed jobs. @@ -258,7 +296,7 @@ type OperationsClientGetOperationResultOptions struct { // placeholder for future optional parameters } -// OperationsClientListOptions contains the optional parameters for the OperationsClient.List method. +// OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method. type OperationsClientListOptions struct { // placeholder for future optional parameters } @@ -328,6 +366,9 @@ type PrivateEndpoint struct { // PrivateEndpointConnection - Private Endpoint Connection Response Properties. type PrivateEndpointConnection struct { + // Group Ids for the Private Endpoint + GroupIDs []*VaultSubResourceType `json:"groupIds,omitempty"` + // READ-ONLY; The Private Endpoint network resource that is linked to the Private Endpoint connection. PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty" azure:"ro"` @@ -398,7 +439,8 @@ type PrivateLinkResourcesClientGetOptions struct { // placeholder for future optional parameters } -// PrivateLinkResourcesClientListOptions contains the optional parameters for the PrivateLinkResourcesClient.List method. +// PrivateLinkResourcesClientListOptions contains the optional parameters for the PrivateLinkResourcesClient.NewListPager +// method. type PrivateLinkResourcesClientListOptions struct { // placeholder for future optional parameters } @@ -456,7 +498,7 @@ type ReplicationUsageList struct { Value []*ReplicationUsage `json:"value,omitempty"` } -// ReplicationUsagesClientListOptions contains the optional parameters for the ReplicationUsagesClient.List method. +// ReplicationUsagesClientListOptions contains the optional parameters for the ReplicationUsagesClient.NewListPager method. type ReplicationUsagesClientListOptions struct { // placeholder for future optional parameters } @@ -476,6 +518,21 @@ type Resource struct { Type *string `json:"type,omitempty" azure:"ro"` } +// ResourceCapabilities - Input to get capabilities information for Microsoft.RecoveryServices +type ResourceCapabilities struct { + // REQUIRED; Describes the Resource type: Microsoft.RecoveryServices/Vaults + Type *string `json:"type,omitempty"` + + // Capabilities information + Properties *CapabilitiesProperties `json:"properties,omitempty"` +} + +// ResourceCapabilitiesBase - Base class for request and response capabilities information for Microsoft.RecoveryServices +type ResourceCapabilitiesBase struct { + // REQUIRED; Describes the Resource type: Microsoft.RecoveryServices/Vaults + Type *string `json:"type,omitempty"` +} + // ResourceCertificateAndAADDetails - Certificate details representing the Vault credentials for AAD. type ResourceCertificateAndAADDetails struct { // REQUIRED; AAD tenant authority. @@ -660,6 +717,12 @@ type SKU struct { Tier *string `json:"tier,omitempty"` } +// SecuritySettings - Security Settings of the vault +type SecuritySettings struct { + // Immutability Settings of a vault + ImmutabilitySettings *ImmutabilitySettings `json:"immutabilitySettings,omitempty"` +} + // SystemData - Metadata pertaining to creation and last modification of the resource. type SystemData struct { // The timestamp of resource creation (UTC). @@ -732,7 +795,7 @@ type UpgradeDetails struct { UpgradedResourceID *string `json:"upgradedResourceId,omitempty" azure:"ro"` } -// UsagesClientListByVaultsOptions contains the optional parameters for the UsagesClient.ListByVaults method. +// UsagesClientListByVaultsOptions contains the optional parameters for the UsagesClient.NewListByVaultsPager method. type UsagesClientListByVaultsOptions struct { // placeholder for future optional parameters } @@ -868,9 +931,15 @@ type VaultProperties struct { // The details of the latest move operation performed on the Azure Resource MoveDetails *VaultPropertiesMoveDetails `json:"moveDetails,omitempty"` + // property to enable or disable resource provider inbound network traffic from public clients + PublicNetworkAccess *PublicNetworkAccess `json:"publicNetworkAccess,omitempty"` + // The redundancy Settings of a Vault RedundancySettings *VaultPropertiesRedundancySettings `json:"redundancySettings,omitempty"` + // Security Settings of the vault + SecuritySettings *SecuritySettings `json:"securitySettings,omitempty"` + // Details for upgrading vault. UpgradeDetails *UpgradeDetails `json:"upgradeDetails,omitempty"` @@ -981,12 +1050,14 @@ type VaultsClientGetOptions struct { // placeholder for future optional parameters } -// VaultsClientListByResourceGroupOptions contains the optional parameters for the VaultsClient.ListByResourceGroup method. +// VaultsClientListByResourceGroupOptions contains the optional parameters for the VaultsClient.NewListByResourceGroupPager +// method. type VaultsClientListByResourceGroupOptions struct { // placeholder for future optional parameters } -// VaultsClientListBySubscriptionIDOptions contains the optional parameters for the VaultsClient.ListBySubscriptionID method. +// VaultsClientListBySubscriptionIDOptions contains the optional parameters for the VaultsClient.NewListBySubscriptionIDPager +// method. type VaultsClientListBySubscriptionIDOptions struct { // placeholder for future optional parameters } diff --git a/sdk/resourcemanager/recoveryservices/armrecoveryservices/models_serde.go b/sdk/resourcemanager/recoveryservices/armrecoveryservices/models_serde.go index 17510126ce84..e8dbce81ef6c 100644 --- a/sdk/resourcemanager/recoveryservices/armrecoveryservices/models_serde.go +++ b/sdk/resourcemanager/recoveryservices/armrecoveryservices/models_serde.go @@ -19,7 +19,7 @@ import ( // MarshalJSON implements the json.Marshaller interface for type AzureMonitorAlertSettings. func (a AzureMonitorAlertSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "alertsForAllJobFailures", a.AlertsForAllJobFailures) return json.Marshal(objectMap) } @@ -44,9 +44,94 @@ func (a *AzureMonitorAlertSettings) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type CapabilitiesProperties. +func (c CapabilitiesProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "dnsZones", c.DNSZones) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CapabilitiesProperties. +func (c *CapabilitiesProperties) 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 "dnsZones": + err = unpopulate(val, "DNSZones", &c.DNSZones) + 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 CapabilitiesResponse. +func (c CapabilitiesResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "properties", c.Properties) + populate(objectMap, "type", c.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CapabilitiesResponse. +func (c *CapabilitiesResponse) 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 "properties": + err = unpopulate(val, "Properties", &c.Properties) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &c.Type) + 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 CapabilitiesResponseProperties. +func (c CapabilitiesResponseProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "dnsZones", c.DNSZones) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CapabilitiesResponseProperties. +func (c *CapabilitiesResponseProperties) 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 "dnsZones": + err = unpopulate(val, "DNSZones", &c.DNSZones) + 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 CertificateRequest. func (c CertificateRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "properties", c.Properties) return json.Marshal(objectMap) } @@ -73,7 +158,7 @@ func (c *CertificateRequest) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CheckNameAvailabilityParameters. func (c CheckNameAvailabilityParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "name", c.Name) populate(objectMap, "type", c.Type) return json.Marshal(objectMap) @@ -104,7 +189,7 @@ func (c *CheckNameAvailabilityParameters) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CheckNameAvailabilityResult. func (c CheckNameAvailabilityResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "message", c.Message) populate(objectMap, "nameAvailable", c.NameAvailable) populate(objectMap, "reason", c.Reason) @@ -139,7 +224,7 @@ func (c *CheckNameAvailabilityResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ClassicAlertSettings. func (c ClassicAlertSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "alertsForCriticalOperations", c.AlertsForCriticalOperations) return json.Marshal(objectMap) } @@ -166,7 +251,7 @@ func (c *ClassicAlertSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ClientDiscoveryDisplay. func (c ClientDiscoveryDisplay) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "description", c.Description) populate(objectMap, "operation", c.Operation) populate(objectMap, "provider", c.Provider) @@ -205,7 +290,7 @@ func (c *ClientDiscoveryDisplay) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ClientDiscoveryForLogSpecification. func (c ClientDiscoveryForLogSpecification) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "blobDuration", c.BlobDuration) populate(objectMap, "displayName", c.DisplayName) populate(objectMap, "name", c.Name) @@ -240,7 +325,7 @@ func (c *ClientDiscoveryForLogSpecification) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ClientDiscoveryForProperties. func (c ClientDiscoveryForProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "serviceSpecification", c.ServiceSpecification) return json.Marshal(objectMap) } @@ -267,7 +352,7 @@ func (c *ClientDiscoveryForProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ClientDiscoveryForServiceSpecification. func (c ClientDiscoveryForServiceSpecification) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "logSpecifications", c.LogSpecifications) return json.Marshal(objectMap) } @@ -294,7 +379,7 @@ func (c *ClientDiscoveryForServiceSpecification) UnmarshalJSON(data []byte) erro // MarshalJSON implements the json.Marshaller interface for type ClientDiscoveryResponse. func (c ClientDiscoveryResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", c.NextLink) populate(objectMap, "value", c.Value) return json.Marshal(objectMap) @@ -325,7 +410,7 @@ func (c *ClientDiscoveryResponse) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ClientDiscoveryValueForSingleAPI. func (c ClientDiscoveryValueForSingleAPI) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "display", c.Display) populate(objectMap, "name", c.Name) populate(objectMap, "origin", c.Origin) @@ -362,36 +447,9 @@ func (c *ClientDiscoveryValueForSingleAPI) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type CloudError. -func (c CloudError) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "error", c.Error) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type CloudError. -func (c *CloudError) 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 "error": - err = unpopulate(val, "Error", &c.Error) - 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 CmkKekIdentity. func (c CmkKekIdentity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "useSystemAssignedIdentity", c.UseSystemAssignedIdentity) populate(objectMap, "userAssignedIdentity", c.UserAssignedIdentity) return json.Marshal(objectMap) @@ -422,7 +480,7 @@ func (c *CmkKekIdentity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CmkKeyVaultProperties. func (c CmkKeyVaultProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "keyUri", c.KeyURI) return json.Marshal(objectMap) } @@ -447,9 +505,67 @@ func (c *CmkKeyVaultProperties) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type DNSZone. +func (d DNSZone) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "subResource", d.SubResource) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DNSZone. +func (d *DNSZone) 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", d, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "subResource": + err = unpopulate(val, "SubResource", &d.SubResource) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type DNSZoneResponse. +func (d DNSZoneResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "requiredZoneNames", d.RequiredZoneNames) + populate(objectMap, "subResource", d.SubResource) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DNSZoneResponse. +func (d *DNSZoneResponse) 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", d, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "requiredZoneNames": + err = unpopulate(val, "RequiredZoneNames", &d.RequiredZoneNames) + delete(rawMsg, key) + case "subResource": + err = unpopulate(val, "SubResource", &d.SubResource) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type Error. func (e Error) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalInfo", e.AdditionalInfo) populate(objectMap, "code", e.Code) populate(objectMap, "details", e.Details) @@ -492,7 +608,7 @@ func (e *Error) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ErrorAdditionalInfo. func (e ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "info", &e.Info) populate(objectMap, "type", e.Type) return json.Marshal(objectMap) @@ -523,7 +639,7 @@ func (e *ErrorAdditionalInfo) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type IdentityData. func (i IdentityData) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "principalId", i.PrincipalID) populate(objectMap, "tenantId", i.TenantID) populate(objectMap, "type", i.Type) @@ -560,9 +676,36 @@ func (i *IdentityData) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type ImmutabilitySettings. +func (i ImmutabilitySettings) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "state", i.State) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ImmutabilitySettings. +func (i *ImmutabilitySettings) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "state": + err = unpopulate(val, "State", &i.State) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type JobsSummary. func (j JobsSummary) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "failedJobs", j.FailedJobs) populate(objectMap, "inProgressJobs", j.InProgressJobs) populate(objectMap, "suspendedJobs", j.SuspendedJobs) @@ -597,7 +740,7 @@ func (j *JobsSummary) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MonitoringSettings. func (m MonitoringSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "azureMonitorAlertSettings", m.AzureMonitorAlertSettings) populate(objectMap, "classicAlertSettings", m.ClassicAlertSettings) return json.Marshal(objectMap) @@ -628,7 +771,7 @@ func (m *MonitoringSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MonitoringSummary. func (m MonitoringSummary) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "deprecatedProviderCount", m.DeprecatedProviderCount) populate(objectMap, "eventsCount", m.EventsCount) populate(objectMap, "supportedProviderCount", m.SupportedProviderCount) @@ -675,7 +818,7 @@ func (m *MonitoringSummary) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type NameInfo. func (n NameInfo) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "localizedValue", n.LocalizedValue) populate(objectMap, "value", n.Value) return json.Marshal(objectMap) @@ -706,7 +849,7 @@ func (n *NameInfo) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OperationResource. func (o OperationResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populateTimeRFC3339(objectMap, "endTime", o.EndTime) populate(objectMap, "error", o.Error) populate(objectMap, "id", o.ID) @@ -753,7 +896,7 @@ func (o *OperationResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PatchTrackedResource. func (p PatchTrackedResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "etag", p.Etag) populate(objectMap, "id", p.ID) populate(objectMap, "location", p.Location) @@ -800,7 +943,7 @@ func (p *PatchTrackedResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PatchVault. func (p PatchVault) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "etag", p.Etag) populate(objectMap, "id", p.ID) populate(objectMap, "identity", p.Identity) @@ -859,7 +1002,7 @@ func (p *PatchVault) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PrivateEndpoint. func (p PrivateEndpoint) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", p.ID) return json.Marshal(objectMap) } @@ -886,7 +1029,8 @@ func (p *PrivateEndpoint) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PrivateEndpointConnection. func (p PrivateEndpointConnection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) + populate(objectMap, "groupIds", p.GroupIDs) populate(objectMap, "privateEndpoint", p.PrivateEndpoint) populate(objectMap, "privateLinkServiceConnectionState", p.PrivateLinkServiceConnectionState) populate(objectMap, "provisioningState", p.ProvisioningState) @@ -902,6 +1046,9 @@ func (p *PrivateEndpointConnection) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { + case "groupIds": + err = unpopulate(val, "GroupIDs", &p.GroupIDs) + delete(rawMsg, key) case "privateEndpoint": err = unpopulate(val, "PrivateEndpoint", &p.PrivateEndpoint) delete(rawMsg, key) @@ -921,7 +1068,7 @@ func (p *PrivateEndpointConnection) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PrivateEndpointConnectionVaultProperties. func (p PrivateEndpointConnectionVaultProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", p.ID) populate(objectMap, "location", p.Location) populate(objectMap, "name", p.Name) @@ -964,7 +1111,7 @@ func (p *PrivateEndpointConnectionVaultProperties) UnmarshalJSON(data []byte) er // MarshalJSON implements the json.Marshaller interface for type PrivateLinkResource. func (p PrivateLinkResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", p.ID) populate(objectMap, "name", p.Name) populate(objectMap, "properties", p.Properties) @@ -1003,7 +1150,7 @@ func (p *PrivateLinkResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PrivateLinkResourceProperties. func (p PrivateLinkResourceProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "groupId", p.GroupID) populate(objectMap, "requiredMembers", p.RequiredMembers) populate(objectMap, "requiredZoneNames", p.RequiredZoneNames) @@ -1038,7 +1185,7 @@ func (p *PrivateLinkResourceProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PrivateLinkResources. func (p PrivateLinkResources) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", p.NextLink) populate(objectMap, "value", p.Value) return json.Marshal(objectMap) @@ -1069,7 +1216,7 @@ func (p *PrivateLinkResources) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PrivateLinkServiceConnectionState. func (p PrivateLinkServiceConnectionState) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "actionsRequired", p.ActionsRequired) populate(objectMap, "description", p.Description) populate(objectMap, "status", p.Status) @@ -1104,7 +1251,7 @@ func (p *PrivateLinkServiceConnectionState) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RawCertificateData. func (r RawCertificateData) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "authType", r.AuthType) populateByteArray(objectMap, "certificate", r.Certificate, runtime.Base64StdFormat) return json.Marshal(objectMap) @@ -1135,7 +1282,7 @@ func (r *RawCertificateData) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ReplicationUsage. func (r ReplicationUsage) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "jobsSummary", r.JobsSummary) populate(objectMap, "monitoringSummary", r.MonitoringSummary) populate(objectMap, "protectedItemCount", r.ProtectedItemCount) @@ -1182,7 +1329,7 @@ func (r *ReplicationUsage) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ReplicationUsageList. func (r ReplicationUsageList) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "value", r.Value) return json.Marshal(objectMap) } @@ -1209,7 +1356,7 @@ func (r *ReplicationUsageList) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Resource. func (r Resource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "etag", r.Etag) populate(objectMap, "id", r.ID) populate(objectMap, "name", r.Name) @@ -1246,9 +1393,67 @@ func (r *Resource) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type ResourceCapabilities. +func (r ResourceCapabilities) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "properties", r.Properties) + populate(objectMap, "type", r.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ResourceCapabilities. +func (r *ResourceCapabilities) 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 "properties": + err = unpopulate(val, "Properties", &r.Properties) + 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 ResourceCapabilitiesBase. +func (r ResourceCapabilitiesBase) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "type", r.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ResourceCapabilitiesBase. +func (r *ResourceCapabilitiesBase) 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 "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 ResourceCertificateAndAADDetails. func (r ResourceCertificateAndAADDetails) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "aadAudience", r.AADAudience) populate(objectMap, "aadAuthority", r.AADAuthority) populate(objectMap, "aadTenantId", r.AADTenantID) @@ -1335,7 +1540,7 @@ func (r *ResourceCertificateAndAADDetails) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ResourceCertificateAndAcsDetails. func (r ResourceCertificateAndAcsDetails) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) objectMap["authType"] = "AccessControlService" populateByteArray(objectMap, "certificate", r.Certificate, runtime.Base64StdFormat) populate(objectMap, "friendlyName", r.FriendlyName) @@ -1406,7 +1611,7 @@ func (r *ResourceCertificateAndAcsDetails) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ResourceCertificateDetails. func (r ResourceCertificateDetails) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) objectMap["authType"] = r.AuthType populateByteArray(objectMap, "certificate", r.Certificate, runtime.Base64StdFormat) populate(objectMap, "friendlyName", r.FriendlyName) @@ -1465,7 +1670,7 @@ func (r *ResourceCertificateDetails) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SKU. func (s SKU) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "capacity", s.Capacity) populate(objectMap, "family", s.Family) populate(objectMap, "name", s.Name) @@ -1506,9 +1711,36 @@ func (s *SKU) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type SecuritySettings. +func (s SecuritySettings) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "immutabilitySettings", s.ImmutabilitySettings) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SecuritySettings. +func (s *SecuritySettings) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "immutabilitySettings": + err = unpopulate(val, "ImmutabilitySettings", &s.ImmutabilitySettings) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type SystemData. func (s SystemData) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populateTimeRFC3339(objectMap, "createdAt", s.CreatedAt) populate(objectMap, "createdBy", s.CreatedBy) populate(objectMap, "createdByType", s.CreatedByType) @@ -1555,7 +1787,7 @@ func (s *SystemData) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TrackedResource. func (t TrackedResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "etag", t.Etag) populate(objectMap, "id", t.ID) populate(objectMap, "location", t.Location) @@ -1602,7 +1834,7 @@ func (t *TrackedResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type UpgradeDetails. func (u UpgradeDetails) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populateTimeRFC3339(objectMap, "endTimeUtc", u.EndTimeUTC) populateTimeRFC3339(objectMap, "lastUpdatedTimeUtc", u.LastUpdatedTimeUTC) populate(objectMap, "message", u.Message) @@ -1661,7 +1893,7 @@ func (u *UpgradeDetails) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type UserIdentity. func (u UserIdentity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "clientId", u.ClientID) populate(objectMap, "principalId", u.PrincipalID) return json.Marshal(objectMap) @@ -1692,7 +1924,7 @@ func (u *UserIdentity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Vault. func (v Vault) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "etag", v.Etag) populate(objectMap, "id", v.ID) populate(objectMap, "identity", v.Identity) @@ -1755,7 +1987,7 @@ func (v *Vault) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type VaultCertificateResponse. func (v VaultCertificateResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", v.ID) populate(objectMap, "name", v.Name) populate(objectMap, "properties", v.Properties) @@ -1794,7 +2026,7 @@ func (v *VaultCertificateResponse) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type VaultExtendedInfo. func (v VaultExtendedInfo) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "algorithm", v.Algorithm) populate(objectMap, "encryptionKey", v.EncryptionKey) populate(objectMap, "encryptionKeyThumbprint", v.EncryptionKeyThumbprint) @@ -1833,7 +2065,7 @@ func (v *VaultExtendedInfo) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type VaultExtendedInfoResource. func (v VaultExtendedInfoResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "etag", v.Etag) populate(objectMap, "id", v.ID) populate(objectMap, "name", v.Name) @@ -1876,7 +2108,7 @@ func (v *VaultExtendedInfoResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type VaultList. func (v VaultList) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", v.NextLink) populate(objectMap, "value", v.Value) return json.Marshal(objectMap) @@ -1907,7 +2139,7 @@ func (v *VaultList) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type VaultProperties. func (v VaultProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "backupStorageVersion", v.BackupStorageVersion) populate(objectMap, "encryption", v.Encryption) populate(objectMap, "monitoringSettings", v.MonitoringSettings) @@ -1917,7 +2149,9 @@ func (v VaultProperties) MarshalJSON() ([]byte, error) { populate(objectMap, "privateEndpointStateForBackup", v.PrivateEndpointStateForBackup) populate(objectMap, "privateEndpointStateForSiteRecovery", v.PrivateEndpointStateForSiteRecovery) populate(objectMap, "provisioningState", v.ProvisioningState) + populate(objectMap, "publicNetworkAccess", v.PublicNetworkAccess) populate(objectMap, "redundancySettings", v.RedundancySettings) + populate(objectMap, "securitySettings", v.SecuritySettings) populate(objectMap, "upgradeDetails", v.UpgradeDetails) return json.Marshal(objectMap) } @@ -1958,9 +2192,15 @@ func (v *VaultProperties) UnmarshalJSON(data []byte) error { case "provisioningState": err = unpopulate(val, "ProvisioningState", &v.ProvisioningState) delete(rawMsg, key) + case "publicNetworkAccess": + err = unpopulate(val, "PublicNetworkAccess", &v.PublicNetworkAccess) + delete(rawMsg, key) case "redundancySettings": err = unpopulate(val, "RedundancySettings", &v.RedundancySettings) delete(rawMsg, key) + case "securitySettings": + err = unpopulate(val, "SecuritySettings", &v.SecuritySettings) + delete(rawMsg, key) case "upgradeDetails": err = unpopulate(val, "UpgradeDetails", &v.UpgradeDetails) delete(rawMsg, key) @@ -1974,7 +2214,7 @@ func (v *VaultProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type VaultPropertiesEncryption. func (v VaultPropertiesEncryption) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "infrastructureEncryption", v.InfrastructureEncryption) populate(objectMap, "kekIdentity", v.KekIdentity) populate(objectMap, "keyVaultProperties", v.KeyVaultProperties) @@ -2009,7 +2249,7 @@ func (v *VaultPropertiesEncryption) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type VaultPropertiesMoveDetails. func (v VaultPropertiesMoveDetails) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populateTimeRFC3339(objectMap, "completionTimeUtc", v.CompletionTimeUTC) populate(objectMap, "operationId", v.OperationID) populate(objectMap, "sourceResourceId", v.SourceResourceID) @@ -2052,7 +2292,7 @@ func (v *VaultPropertiesMoveDetails) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type VaultPropertiesRedundancySettings. func (v VaultPropertiesRedundancySettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "crossRegionRestore", v.CrossRegionRestore) populate(objectMap, "standardTierStorageRedundancy", v.StandardTierStorageRedundancy) return json.Marshal(objectMap) @@ -2083,7 +2323,7 @@ func (v *VaultPropertiesRedundancySettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type VaultUsage. func (v VaultUsage) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "currentValue", v.CurrentValue) populate(objectMap, "limit", v.Limit) populate(objectMap, "name", v.Name) @@ -2130,7 +2370,7 @@ func (v *VaultUsage) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type VaultUsageList. func (v VaultUsageList) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "value", v.Value) return json.Marshal(objectMap) } @@ -2155,7 +2395,7 @@ func (v *VaultUsageList) UnmarshalJSON(data []byte) error { return nil } -func populate(m map[string]interface{}, k string, v interface{}) { +func populate(m map[string]any, k string, v any) { if v == nil { return } else if azcore.IsNullValue(v) { @@ -2165,7 +2405,7 @@ func populate(m map[string]interface{}, k string, v interface{}) { } } -func populateByteArray(m map[string]interface{}, k string, b []byte, f runtime.Base64Encoding) { +func populateByteArray(m map[string]any, k string, b []byte, f runtime.Base64Encoding) { if azcore.IsNullValue(b) { m[k] = nil } else if len(b) == 0 { @@ -2175,7 +2415,7 @@ func populateByteArray(m map[string]interface{}, k string, b []byte, f runtime.B } } -func unpopulate(data json.RawMessage, fn string, v interface{}) error { +func unpopulate(data json.RawMessage, fn string, v any) error { if data == nil { return nil } diff --git a/sdk/resourcemanager/recoveryservices/armrecoveryservices/operations_client.go b/sdk/resourcemanager/recoveryservices/armrecoveryservices/operations_client.go index d2a98dbddf2d..e25ceb303f9b 100644 --- a/sdk/resourcemanager/recoveryservices/armrecoveryservices/operations_client.go +++ b/sdk/resourcemanager/recoveryservices/armrecoveryservices/operations_client.go @@ -32,9 +32,9 @@ type OperationsClient struct { } // NewOperationsClient creates a new instance of OperationsClient with the specified values. -// subscriptionID - The subscription Id. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewOperationsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*OperationsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,11 +57,12 @@ func NewOperationsClient(subscriptionID string, credential azcore.TokenCredentia // GetOperationResult - Gets the operation result for a resource. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-04-01 -// resourceGroupName - The name of the resource group where the recovery services vault is present. -// vaultName - The name of the recovery services vault. -// options - OperationsClientGetOperationResultOptions contains the optional parameters for the OperationsClient.GetOperationResult -// method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - vaultName - The name of the recovery services vault. +// - options - OperationsClientGetOperationResultOptions contains the optional parameters for the OperationsClient.GetOperationResult +// method. func (client *OperationsClient) GetOperationResult(ctx context.Context, resourceGroupName string, vaultName string, operationID string, options *OperationsClientGetOperationResultOptions) (OperationsClientGetOperationResultResponse, error) { req, err := client.getOperationResultCreateRequest(ctx, resourceGroupName, vaultName, operationID, options) if err != nil { @@ -101,7 +102,7 @@ func (client *OperationsClient) getOperationResultCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-04-01") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -117,9 +118,9 @@ func (client *OperationsClient) getOperationResultHandleResponse(resp *http.Resp } // NewListPager - Returns the list of available operations. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-04-01 -// options - OperationsClientListOptions contains the optional parameters for the OperationsClient.List method. +// +// Generated from API version 2023-01-01 +// - options - OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method. func (client *OperationsClient) NewListPager(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse] { return runtime.NewPager(runtime.PagingHandler[OperationsClientListResponse]{ More: func(page OperationsClientListResponse) bool { @@ -156,7 +157,7 @@ func (client *OperationsClient) listCreateRequest(ctx context.Context, options * return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-04-01") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -173,11 +174,12 @@ func (client *OperationsClient) listHandleResponse(resp *http.Response) (Operati // OperationStatusGet - Gets the operation status for a resource. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-04-01 -// resourceGroupName - The name of the resource group where the recovery services vault is present. -// vaultName - The name of the recovery services vault. -// options - OperationsClientOperationStatusGetOptions contains the optional parameters for the OperationsClient.OperationStatusGet -// method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - vaultName - The name of the recovery services vault. +// - options - OperationsClientOperationStatusGetOptions contains the optional parameters for the OperationsClient.OperationStatusGet +// method. func (client *OperationsClient) OperationStatusGet(ctx context.Context, resourceGroupName string, vaultName string, operationID string, options *OperationsClientOperationStatusGetOptions) (OperationsClientOperationStatusGetResponse, error) { req, err := client.operationStatusGetCreateRequest(ctx, resourceGroupName, vaultName, operationID, options) if err != nil { @@ -217,7 +219,7 @@ func (client *OperationsClient) operationStatusGetCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-04-01") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/recoveryservices/armrecoveryservices/operations_client_example_test.go b/sdk/resourcemanager/recoveryservices/armrecoveryservices/operations_client_example_test.go index fa76294c0ea0..a3578ae239ab 100644 --- a/sdk/resourcemanager/recoveryservices/armrecoveryservices/operations_client_example_test.go +++ b/sdk/resourcemanager/recoveryservices/armrecoveryservices/operations_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armrecoveryservices_test @@ -16,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservices" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2022-04-01/examples/ListOperations.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/ListOperations.json func ExampleOperationsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -29,18 +30,472 @@ func ExampleOperationsClient_NewListPager() { } pager := client.NewListPager(nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.ClientDiscoveryResponse = armrecoveryservices.ClientDiscoveryResponse{ + // Value: []*armrecoveryservices.ClientDiscoveryValueForSingleAPI{ + // { + // Name: to.Ptr("microsoft.recoveryservices/vaults/usages/read"), + // Display: &armrecoveryservices.ClientDiscoveryDisplay{ + // Description: to.Ptr("Returns usage details for a Recovery Services Vault."), + // Operation: to.Ptr("Recovery Services Vault usage details."), + // Provider: to.Ptr("microsoft.recoveryservices"), + // Resource: to.Ptr("Vault Usage"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("microsoft.recoveryservices/vaults/backupUsageSummaries/read"), + // Display: &armrecoveryservices.ClientDiscoveryDisplay{ + // Description: to.Ptr("Returns summaries for Protected Items and Protected Servers for a Recovery Services ."), + // Operation: to.Ptr("Recovery Services Protected Items and Protected Servers usage summaries details."), + // Provider: to.Ptr("microsoft.recoveryservices"), + // Resource: to.Ptr("Backup Usages Summaries"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("microsoft.recoveryservices/vaults/storageConfig/read"), + // Display: &armrecoveryservices.ClientDiscoveryDisplay{ + // Description: to.Ptr("Returns Storage Configuration for Recovery Services Vault."), + // Operation: to.Ptr("Get Resource Storage Config"), + // Provider: to.Ptr("microsoft.recoveryservices"), + // Resource: to.Ptr("Vault Storage Config"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("microsoft.recoveryservices/vaults/storageConfig/write"), + // Display: &armrecoveryservices.ClientDiscoveryDisplay{ + // Description: to.Ptr("Updates Storage Configuration for Recovery Services Vault."), + // Operation: to.Ptr("Write Resource Storage Config"), + // Provider: to.Ptr("microsoft.recoveryservices"), + // Resource: to.Ptr("Vault Storage Config"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("microsoft.recoveryservices/vaults/backupconfig/vaultconfig/read"), + // Display: &armrecoveryservices.ClientDiscoveryDisplay{ + // Description: to.Ptr("Returns Configuration for Recovery Services Vault."), + // Operation: to.Ptr("Get Resource Config"), + // Provider: to.Ptr("microsoft.recoveryservices"), + // Resource: to.Ptr("Vault Config"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("microsoft.recoveryservices/vaults/backupconfig/vaultconfig/write"), + // Display: &armrecoveryservices.ClientDiscoveryDisplay{ + // Description: to.Ptr("Updates Configuration for Recovery Services Vault."), + // Operation: to.Ptr("Update Resource Config"), + // Provider: to.Ptr("microsoft.recoveryservices"), + // Resource: to.Ptr("Vault Config"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("microsoft.recoveryservices/vaults/tokenInfo/read"), + // Display: &armrecoveryservices.ClientDiscoveryDisplay{ + // Description: to.Ptr("Returns token information for Recovery Services Vault."), + // Operation: to.Ptr("Get Vault Token Info"), + // Provider: to.Ptr("microsoft.recoveryservices"), + // Resource: to.Ptr("Token Info"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("microsoft.recoveryservices/vaults/backupSecurityPIN/read"), + // Display: &armrecoveryservices.ClientDiscoveryDisplay{ + // Description: to.Ptr("Returns Security PIN Information for Recovery Services Vault."), + // Operation: to.Ptr("Get Security PIN Info"), + // Provider: to.Ptr("microsoft.recoveryservices"), + // Resource: to.Ptr("SecurityPINInfo"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("microsoft.recoveryservices/vaults/backupManagementMetaData/read"), + // Display: &armrecoveryservices.ClientDiscoveryDisplay{ + // Description: to.Ptr("Returns Backup Management Metadata for Recovery Services Vault."), + // Operation: to.Ptr("Get Backup Management Metadata"), + // Provider: to.Ptr("microsoft.recoveryservices"), + // Resource: to.Ptr("Backup Management Metadata"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("microsoft.recoveryservices/vaults/backupOperationResults/read"), + // Display: &armrecoveryservices.ClientDiscoveryDisplay{ + // Description: to.Ptr("Returns Backup Operation Result for Recovery Services Vault."), + // Operation: to.Ptr("Get Backup Operation Result"), + // Provider: to.Ptr("microsoft.recoveryservices"), + // Resource: to.Ptr("Backup Operation Results"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("microsoft.recoveryservices/vaults/backupOperations/read"), + // Display: &armrecoveryservices.ClientDiscoveryDisplay{ + // Description: to.Ptr("Returns Backup Operation Status for Recovery Services Vault."), + // Operation: to.Ptr("Get Backup Operation Status"), + // Provider: to.Ptr("microsoft.recoveryservices"), + // Resource: to.Ptr("Backup Operation Status"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("microsoft.recoveryservices/vaults/backupJobs/read"), + // Display: &armrecoveryservices.ClientDiscoveryDisplay{ + // Description: to.Ptr("Returns all Job Objects"), + // Operation: to.Ptr("Get Jobs"), + // Provider: to.Ptr("microsoft.recoveryservices"), + // Resource: to.Ptr("Backup Jobs"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("microsoft.recoveryservices/vaults/backupJobs/cancel/action"), + // Display: &armrecoveryservices.ClientDiscoveryDisplay{ + // Description: to.Ptr("Cancel the Job"), + // Operation: to.Ptr("Cancel Jobs"), + // Provider: to.Ptr("microsoft.recoveryservices"), + // Resource: to.Ptr("Backup Jobs"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("microsoft.recoveryservices/vaults/backupJobsExport/action"), + // Display: &armrecoveryservices.ClientDiscoveryDisplay{ + // Description: to.Ptr("Export Jobs"), + // Operation: to.Ptr("Export Jobs"), + // Provider: to.Ptr("microsoft.recoveryservices"), + // Resource: to.Ptr("Export Backup Jobs"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("microsoft.recoveryservices/vaults/backupJobs/operationResults/read"), + // Display: &armrecoveryservices.ClientDiscoveryDisplay{ + // Description: to.Ptr("Returns the Result of Job Operation."), + // Operation: to.Ptr("Get Job Operation Result"), + // Provider: to.Ptr("microsoft.recoveryservices"), + // Resource: to.Ptr("Backup Jobs Operation Results"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("microsoft.recoveryservices/vaults/backupJobsExport/operationResults/read"), + // Display: &armrecoveryservices.ClientDiscoveryDisplay{ + // Description: to.Ptr("Returns the Result of Export Job Operation."), + // Operation: to.Ptr("Get Export Job Operation Result"), + // Provider: to.Ptr("microsoft.recoveryservices"), + // Resource: to.Ptr("Export Backup Jobs Operation Results"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("microsoft.recoveryservices/vaults/backupFabrics/protectionContainers/protectedItems/recoveryPoints/read"), + // Display: &armrecoveryservices.ClientDiscoveryDisplay{ + // Description: to.Ptr("Get Recovery Points for Protected Items."), + // Operation: to.Ptr("Get Recovery Points"), + // Provider: to.Ptr("microsoft.recoveryservices"), + // Resource: to.Ptr("Recovery Points"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("microsoft.recoveryservices/vaults/backupFabrics/protectionContainers/protectedItems/recoveryPoints/restore/action"), + // Display: &armrecoveryservices.ClientDiscoveryDisplay{ + // Description: to.Ptr("Restore Recovery Points for Protected Items."), + // Operation: to.Ptr("Restore Recovery Points"), + // Provider: to.Ptr("microsoft.recoveryservices"), + // Resource: to.Ptr("Recovery Points"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("microsoft.recoveryservices/vaults/backupFabrics/protectionContainers/protectedItems/recoveryPoints/provisionInstantItemRecovery/action"), + // Display: &armrecoveryservices.ClientDiscoveryDisplay{ + // Description: to.Ptr("Provision Instant Item Recovery for Protected Item"), + // Operation: to.Ptr("Provision Instant Item Recovery for Protected Item"), + // Provider: to.Ptr("microsoft.recoveryservices"), + // Resource: to.Ptr("Recovery Points"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("microsoft.recoveryservices/vaults/backupFabrics/protectionContainers/protectedItems/recoveryPoints/revokeInstantItemRecovery/action"), + // Display: &armrecoveryservices.ClientDiscoveryDisplay{ + // Description: to.Ptr("Revoke Instant Item Recovery for Protected Item"), + // Operation: to.Ptr("Revoke Instant Item Recovery for Protected Item"), + // Provider: to.Ptr("microsoft.recoveryservices"), + // Resource: to.Ptr("Recovery Points"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("microsoft.recoveryservices/vaults/backupPolicies/read"), + // Display: &armrecoveryservices.ClientDiscoveryDisplay{ + // Description: to.Ptr("Returns all Protection Policies"), + // Operation: to.Ptr("Get Protection Policy"), + // Provider: to.Ptr("microsoft.recoveryservices"), + // Resource: to.Ptr("Backup Policies"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("microsoft.recoveryservices/vaults/backupPolicies/write"), + // Display: &armrecoveryservices.ClientDiscoveryDisplay{ + // Description: to.Ptr("Creates Protection Policy"), + // Operation: to.Ptr("Create Protection Policy"), + // Provider: to.Ptr("microsoft.recoveryservices"), + // Resource: to.Ptr("Backup Policies"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("microsoft.recoveryservices/vaults/backupPolicies/delete"), + // Display: &armrecoveryservices.ClientDiscoveryDisplay{ + // Description: to.Ptr("Delete a Protection Policy"), + // Operation: to.Ptr("Delete Protection Policy"), + // Provider: to.Ptr("microsoft.recoveryservices"), + // Resource: to.Ptr("Backup Policies"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("microsoft.recoveryservices/vaults/backupPolicies/operationResults/read"), + // Display: &armrecoveryservices.ClientDiscoveryDisplay{ + // Description: to.Ptr("Get Results of Policy Operation."), + // Operation: to.Ptr("Get Policy Operation Results"), + // Provider: to.Ptr("microsoft.recoveryservices"), + // Resource: to.Ptr("Backup Policy Operation Results"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("microsoft.recoveryservices/vaults/backupPolicies/operationsStatus/read"), + // Display: &armrecoveryservices.ClientDiscoveryDisplay{ + // Description: to.Ptr("Get Status of Policy Operation."), + // Operation: to.Ptr("Get Policy Operation Status"), + // Provider: to.Ptr("microsoft.recoveryservices"), + // Resource: to.Ptr("Backup Policy Operation Status"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("microsoft.recoveryservices/vaults/backupFabrics/protectionContainers/protectedItems/read"), + // Display: &armrecoveryservices.ClientDiscoveryDisplay{ + // Description: to.Ptr("Returns object details of the Protected Item"), + // Operation: to.Ptr("Get Protected Item Details"), + // Provider: to.Ptr("microsoft.recoveryservices"), + // Resource: to.Ptr("Protected Items"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("microsoft.recoveryservices/vaults/backupProtectedItems/read"), + // Display: &armrecoveryservices.ClientDiscoveryDisplay{ + // Description: to.Ptr("Returns the list of all Protected Items."), + // Operation: to.Ptr("Get All Protected Items"), + // Provider: to.Ptr("microsoft.recoveryservices"), + // Resource: to.Ptr("Protected Items"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("microsoft.recoveryservices/vaults/backupFabrics/protectionContainers/protectedItems/write"), + // Display: &armrecoveryservices.ClientDiscoveryDisplay{ + // Description: to.Ptr("Create a backup Protected Item"), + // Operation: to.Ptr("Create Backup Protected Item"), + // Provider: to.Ptr("microsoft.recoveryservices"), + // Resource: to.Ptr("Protected Items"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("microsoft.recoveryservices/vaults/backupFabrics/protectionContainers/protectedItems/delete"), + // Display: &armrecoveryservices.ClientDiscoveryDisplay{ + // Description: to.Ptr("Deletes Protected Item"), + // Operation: to.Ptr("Delete Protected Items"), + // Provider: to.Ptr("microsoft.recoveryservices"), + // Resource: to.Ptr("Protected Items"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("microsoft.recoveryservices/vaults/backupFabrics/protectionContainers/protectedItems/operationResults/read"), + // Display: &armrecoveryservices.ClientDiscoveryDisplay{ + // Description: to.Ptr("Gets Result of Operation Performed on Protected Items."), + // Operation: to.Ptr("Get Protected Items Operation Results"), + // Provider: to.Ptr("microsoft.recoveryservices"), + // Resource: to.Ptr("Protected Item Operation Results"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("microsoft.recoveryservices/vaults/backupFabrics/protectionContainers/protectedItems/operationsStatus/read"), + // Display: &armrecoveryservices.ClientDiscoveryDisplay{ + // Description: to.Ptr("Returns the status of Operation performed on Protected Items."), + // Operation: to.Ptr("Get Protected Items operation status"), + // Provider: to.Ptr("microsoft.recoveryservices"), + // Resource: to.Ptr("Protected Item Operation Status"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("microsoft.recoveryservices/vaults/backupFabrics/protectionContainers/protectedItems/backup/action"), + // Display: &armrecoveryservices.ClientDiscoveryDisplay{ + // Description: to.Ptr("Performs Backup for Protected Item."), + // Operation: to.Ptr("Backup Protected Item"), + // Provider: to.Ptr("microsoft.recoveryservices"), + // Resource: to.Ptr("Protected Items"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("microsoft.recoveryservices/vaults/backupProtectableItems/read"), + // Display: &armrecoveryservices.ClientDiscoveryDisplay{ + // Description: to.Ptr("Returns list of all Protectable Items."), + // Operation: to.Ptr("Get Protectable Items"), + // Provider: to.Ptr("microsoft.recoveryservices"), + // Resource: to.Ptr("Backup Protectable Items"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("microsoft.recoveryservices/vaults/refreshContainers/read"), + // Display: &armrecoveryservices.ClientDiscoveryDisplay{ + // Description: to.Ptr("Refreshes the container list"), + // Operation: to.Ptr("Refresh container"), + // Provider: to.Ptr("microsoft.recoveryservices"), + // Resource: to.Ptr("Refresh Containers"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("microsoft.recoveryservices/vaults/backupFabrics/operationResults/read"), + // Display: &armrecoveryservices.ClientDiscoveryDisplay{ + // Description: to.Ptr("Returns status of the operation"), + // Operation: to.Ptr("Get Operation Results"), + // Provider: to.Ptr("microsoft.recoveryservices"), + // Resource: to.Ptr("Refresh Containers Operation Results"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("microsoft.recoveryservices/vaults/backupProtectionContainers/read"), + // Display: &armrecoveryservices.ClientDiscoveryDisplay{ + // Description: to.Ptr("Returns all containers belonging to the subscription"), + // Operation: to.Ptr("Get Containers In Subscription"), + // Provider: to.Ptr("microsoft.recoveryservices"), + // Resource: to.Ptr("Backup Protection Containers"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("microsoft.recoveryservices/vaults/backupFabrics/protectionContainers/read"), + // Display: &armrecoveryservices.ClientDiscoveryDisplay{ + // Description: to.Ptr("Returns all registered containers"), + // Operation: to.Ptr("Get Registered Container"), + // Provider: to.Ptr("microsoft.recoveryservices"), + // Resource: to.Ptr("Protection Containers"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("microsoft.recoveryservices/vaults/backupFabrics/protectionContainers/operationResults/read"), + // Display: &armrecoveryservices.ClientDiscoveryDisplay{ + // Description: to.Ptr("Gets result of Operation performed on Protection Container."), + // Operation: to.Ptr("Get Container Operation Results"), + // Provider: to.Ptr("microsoft.recoveryservices"), + // Resource: to.Ptr("Protection Containers Operation Results"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("microsoft.recoveryservices/vaults/backupEngines"), + // Display: &armrecoveryservices.ClientDiscoveryDisplay{ + // Description: to.Ptr("Returns all the backup management servers registered with vault."), + // Operation: to.Ptr("List of backup management servers."), + // Provider: to.Ptr("microsoft.recoveryservices"), + // Resource: to.Ptr("Backup Engines"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("microsoft.recoveryservices/vaults/backupStatus"), + // Display: &armrecoveryservices.ClientDiscoveryDisplay{ + // Description: to.Ptr("Check Backup Status for Recovery Services Vaults"), + // Operation: to.Ptr("Check Backup Status for Vault"), + // Provider: to.Ptr("microsoft.recoveryservices"), + // Resource: to.Ptr("Backup Status"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("microsoft.recoveryservices/vaults/backupPreValidateProtection"), + // Display: &armrecoveryservices.ClientDiscoveryDisplay{ + // Description: to.Ptr(""), + // Operation: to.Ptr("Pre Validate Enable Protection"), + // Provider: to.Ptr("microsoft.recoveryservices"), + // Resource: to.Ptr("PreValidate Protection"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("microsoft.recoveryservices/vaults/backupValidateFeatures"), + // Display: &armrecoveryservices.ClientDiscoveryDisplay{ + // Description: to.Ptr("Validate Features"), + // Operation: to.Ptr("Validate Features"), + // Provider: to.Ptr("microsoft.recoveryservices"), + // Resource: to.Ptr("Validate Features"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("microsoft.recoveryservices/vaults/backupFabrics/backupProtectionIntent/write"), + // Display: &armrecoveryservices.ClientDiscoveryDisplay{ + // Description: to.Ptr("Create a backup Protection Intent"), + // Operation: to.Ptr("Create backup Protection Intent"), + // Provider: to.Ptr("microsoft.recoveryservices"), + // Resource: to.Ptr("Protection Intent"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("microsoft.recoveryservices/vaults/backupFabrics/{fabricName}/protectionContainers/{containerName}/items/read"), + // Display: &armrecoveryservices.ClientDiscoveryDisplay{ + // Description: to.Ptr("Get all items in a container"), + // Operation: to.Ptr("Get all items in a container"), + // Provider: to.Ptr("microsoft.recoveryservices"), + // Resource: to.Ptr("Workload Items"), + // }, + // Origin: to.Ptr("user"), + // }, + // { + // Name: to.Ptr("microsoft.recoveryservices/vaults/backupFabrics/protectionContainers/inquire/action"), + // Display: &armrecoveryservices.ClientDiscoveryDisplay{ + // Description: to.Ptr("Get all items in a container"), + // Operation: to.Ptr("Get all items in a container"), + // Provider: to.Ptr("microsoft.recoveryservices"), + // Resource: to.Ptr("Protection Containers Inquire"), + // }, + // Origin: to.Ptr("user"), + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2022-04-01/examples/GetOperationStatus.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/GetOperationStatus.json func ExampleOperationsClient_OperationStatusGet() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -51,19 +506,23 @@ func ExampleOperationsClient_OperationStatusGet() { if err != nil { log.Fatalf("failed to create client: %v", err) } - res, err := client.OperationStatusGet(ctx, - "HelloWorld", - "swaggerExample", - "YWUzNDFkMzQtZmM5OS00MmUyLWEzNDMtZGJkMDIxZjlmZjgzOzdmYzBiMzhmLTc2NmItNDM5NS05OWQ1LTVmOGEzNzg4MWQzNA==", - nil) + res, err := client.OperationStatusGet(ctx, "HelloWorld", "swaggerExample", "YWUzNDFkMzQtZmM5OS00MmUyLWEzNDMtZGJkMDIxZjlmZjgzOzdmYzBiMzhmLTc2NmItNDM5NS05OWQ1LTVmOGEzNzg4MWQzNA==", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.OperationResource = armrecoveryservices.OperationResource{ + // Name: to.Ptr("YWUzNDFkMzQtZmM5OS00MmUyLWEzNDMtZGJkMDIxZjlmZjgzOzdmYzBiMzhmLTc2NmItNDM5NS05OWQ1LTVmOGEzNzg4MWQzNA=="), + // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-11-20T09:49:46Z"); return t}()), + // ID: to.Ptr("/subscriptions/77777777-b0c6-47a2-b37c-d8e65a629c18/resourceGroups/HelloWorld/providers/Microsoft.RecoveryServices/vaults/swaggerExample/operationStatus/YWUzNDFkMzQtZmM5OS00MmUyLWEzNDMtZGJkMDIxZjlmZjgzOzdmYzBiMzhmLTc2NmItNDM5NS05OWQ1LTVmOGEzNzg4MWQzNA=="), + // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-11-20T09:49:44.0478496Z"); return t}()), + // Status: to.Ptr("Succeeded"), + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2022-04-01/examples/GetOperationResult.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/GetOperationResult.json func ExampleOperationsClient_GetOperationResult() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -74,14 +533,36 @@ func ExampleOperationsClient_GetOperationResult() { if err != nil { log.Fatalf("failed to create client: %v", err) } - res, err := client.GetOperationResult(ctx, - "HelloWorld", - "swaggerExample", - "YWUzNDFkMzQtZmM5OS00MmUyLWEzNDMtZGJkMDIxZjlmZjgzOzdmYzBiMzhmLTc2NmItNDM5NS05OWQ1LTVmOGEzNzg4MWQzNA==", - nil) + res, err := client.GetOperationResult(ctx, "HelloWorld", "swaggerExample", "YWUzNDFkMzQtZmM5OS00MmUyLWEzNDMtZGJkMDIxZjlmZjgzOzdmYzBiMzhmLTc2NmItNDM5NS05OWQ1LTVmOGEzNzg4MWQzNA==", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.Vault = armrecoveryservices.Vault{ + // Name: to.Ptr("swaggerExample"), + // Type: to.Ptr("Microsoft.RecoveryServices/vaults"), + // Etag: to.Ptr("W/\"datetime'2017-12-15T12%3A36%3A51.68Z'\""), + // ID: to.Ptr("/subscriptions/77777777-b0c6-47a2-b37c-d8e65a629c18/resourceGroups/HelloWorld/providers/Microsoft.RecoveryServices/vaults/swaggerExample"), + // Location: to.Ptr("westus"), + // Tags: map[string]*string{ + // "PatchKey": to.Ptr("PatchKeyUpdated"), + // }, + // Identity: &armrecoveryservices.IdentityData{ + // Type: to.Ptr(armrecoveryservices.ResourceIdentityTypeUserAssigned), + // UserAssignedIdentities: map[string]*armrecoveryservices.UserIdentity{ + // "/subscriptions/85bf5e8c-3084-4f42-add2-746ebb7e97b2/resourcegroups/defaultrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/examplemsi": &armrecoveryservices.UserIdentity{ + // ClientID: to.Ptr("fbe75b66-01c5-4f87-a220-233af3270436"), + // PrincipalID: to.Ptr("075a0ca6-43f6-4434-9abf-c9b1b79f9219"), + // }, + // }, + // }, + // Properties: &armrecoveryservices.VaultProperties{ + // ProvisioningState: to.Ptr("Succeeded"), + // }, + // SKU: &armrecoveryservices.SKU{ + // Name: to.Ptr(armrecoveryservices.SKUNameStandard), + // }, + // } } diff --git a/sdk/resourcemanager/recoveryservices/armrecoveryservices/polymorphic_helpers.go b/sdk/resourcemanager/recoveryservices/armrecoveryservices/polymorphic_helpers.go index 277349592490..be98fb62be44 100644 --- a/sdk/resourcemanager/recoveryservices/armrecoveryservices/polymorphic_helpers.go +++ b/sdk/resourcemanager/recoveryservices/armrecoveryservices/polymorphic_helpers.go @@ -15,7 +15,7 @@ func unmarshalResourceCertificateDetailsClassification(rawMsg json.RawMessage) ( if rawMsg == nil { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } diff --git a/sdk/resourcemanager/recoveryservices/armrecoveryservices/privatelinkresources_client.go b/sdk/resourcemanager/recoveryservices/armrecoveryservices/privatelinkresources_client.go index 7d5902776bef..7915ec010bbe 100644 --- a/sdk/resourcemanager/recoveryservices/armrecoveryservices/privatelinkresources_client.go +++ b/sdk/resourcemanager/recoveryservices/armrecoveryservices/privatelinkresources_client.go @@ -32,9 +32,9 @@ type PrivateLinkResourcesClient struct { } // NewPrivateLinkResourcesClient creates a new instance of PrivateLinkResourcesClient with the specified values. -// subscriptionID - The subscription Id. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewPrivateLinkResourcesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PrivateLinkResourcesClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,11 +57,12 @@ func NewPrivateLinkResourcesClient(subscriptionID string, credential azcore.Toke // Get - Returns a specified private link resource that need to be created for Backup and SiteRecovery // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-04-01 -// resourceGroupName - The name of the resource group where the recovery services vault is present. -// vaultName - The name of the recovery services vault. -// options - PrivateLinkResourcesClientGetOptions contains the optional parameters for the PrivateLinkResourcesClient.Get -// method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - vaultName - The name of the recovery services vault. +// - options - PrivateLinkResourcesClientGetOptions contains the optional parameters for the PrivateLinkResourcesClient.Get +// method. func (client *PrivateLinkResourcesClient) Get(ctx context.Context, resourceGroupName string, vaultName string, privateLinkResourceName string, options *PrivateLinkResourcesClientGetOptions) (PrivateLinkResourcesClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, vaultName, privateLinkResourceName, options) if err != nil { @@ -101,7 +102,7 @@ func (client *PrivateLinkResourcesClient) getCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-04-01") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -117,12 +118,12 @@ func (client *PrivateLinkResourcesClient) getHandleResponse(resp *http.Response) } // NewListPager - Returns the list of private link resources that need to be created for Backup and SiteRecovery -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-04-01 -// resourceGroupName - The name of the resource group where the recovery services vault is present. -// vaultName - The name of the recovery services vault. -// options - PrivateLinkResourcesClientListOptions contains the optional parameters for the PrivateLinkResourcesClient.List -// method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - vaultName - The name of the recovery services vault. +// - options - PrivateLinkResourcesClientListOptions contains the optional parameters for the PrivateLinkResourcesClient.NewListPager +// method. func (client *PrivateLinkResourcesClient) NewListPager(resourceGroupName string, vaultName string, options *PrivateLinkResourcesClientListOptions) *runtime.Pager[PrivateLinkResourcesClientListResponse] { return runtime.NewPager(runtime.PagingHandler[PrivateLinkResourcesClientListResponse]{ More: func(page PrivateLinkResourcesClientListResponse) bool { @@ -171,7 +172,7 @@ func (client *PrivateLinkResourcesClient) listCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-04-01") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/recoveryservices/armrecoveryservices/privatelinkresources_client_example_test.go b/sdk/resourcemanager/recoveryservices/armrecoveryservices/privatelinkresources_client_example_test.go index c6058ac09faa..04a7875cbcfa 100644 --- a/sdk/resourcemanager/recoveryservices/armrecoveryservices/privatelinkresources_client_example_test.go +++ b/sdk/resourcemanager/recoveryservices/armrecoveryservices/privatelinkresources_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armrecoveryservices_test @@ -16,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservices" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2022-04-01/examples/ListPrivateLinkResources.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/ListPrivateLinkResources.json func ExamplePrivateLinkResourcesClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -27,22 +28,64 @@ func ExamplePrivateLinkResourcesClient_NewListPager() { if err != nil { log.Fatalf("failed to create client: %v", err) } - pager := client.NewListPager("petesting", - "pemsi-ecy-rsv2", - nil) + pager := client.NewListPager("petesting", "pemsi-ecy-rsv2", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.PrivateLinkResources = armrecoveryservices.PrivateLinkResources{ + // Value: []*armrecoveryservices.PrivateLinkResource{ + // { + // Name: to.Ptr("backupResource"), + // Type: to.Ptr("Microsoft.RecoveryServices/Vaults/privateLinkResources"), + // ID: to.Ptr("/subscriptions/6c48fa17-39c7-45f1-90ac-47a587128ace/resourceGroups/petesting/providers/Microsoft.RecoveryServices/Vaults/pemsi-ecy-rsv2/privateLinkResources/backupResource"), + // Properties: &armrecoveryservices.PrivateLinkResourceProperties{ + // GroupID: to.Ptr("AzureBackup"), + // RequiredMembers: []*string{ + // to.Ptr("backup-fab1"), + // to.Ptr("backup-rec2"), + // to.Ptr("backup-prot1"), + // to.Ptr("backup-ecs1"), + // to.Ptr("backup-tel1"), + // to.Ptr("backup-wbcm1"), + // to.Ptr("backup-fc1"), + // to.Ptr("backup-id1")}, + // RequiredZoneNames: []*string{ + // to.Ptr("privatelink.ecy.backup.windowsazure.com"), + // to.Ptr("privatelink.queue.core.windows.net"), + // to.Ptr("privatelink.blob.core.windows.net")}, + // }, + // }, + // { + // Name: to.Ptr("siteRecoveryResource"), + // Type: to.Ptr("Microsoft.RecoveryServices/vaults/privateLinkResources"), + // ID: to.Ptr("/subscriptions/6c48fa17-39c7-45f1-90ac-47a587128ace/resourceGroups/gaallarg/providers/Microsoft.RecoveryServices/vaults/amchandnTest2702A/privateLinkResources/siteRecoveryResource"), + // Properties: &armrecoveryservices.PrivateLinkResourceProperties{ + // GroupID: to.Ptr("AzureSiteRecovery"), + // RequiredMembers: []*string{ + // to.Ptr("siteRecovery-rcm1"), + // to.Ptr("siteRecovery-prot2"), + // to.Ptr("siteRecovery-tel1"), + // to.Ptr("siteRecovery-srs1"), + // to.Ptr("siteRecovery-prot2b"), + // to.Ptr("siteRecovery-id1")}, + // RequiredZoneNames: []*string{ + // to.Ptr("privatelink.ecy.siterecovery.windowsazure.com"), + // to.Ptr("privatelink.queue.core.windows.net"), + // to.Ptr("privatelink.blob.core.windows.net")}, + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2022-04-01/examples/GetPrivateLinkResources.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/GetPrivateLinkResources.json func ExamplePrivateLinkResourcesClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -53,14 +96,32 @@ func ExamplePrivateLinkResourcesClient_Get() { if err != nil { log.Fatalf("failed to create client: %v", err) } - res, err := client.Get(ctx, - "petesting", - "pemsi-ecy-rsv2", - "backupResource", - nil) + res, err := client.Get(ctx, "petesting", "pemsi-ecy-rsv2", "backupResource", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.PrivateLinkResource = armrecoveryservices.PrivateLinkResource{ + // Name: to.Ptr("backupResource"), + // Type: to.Ptr("Microsoft.RecoveryServices/Vaults/privateLinkResources"), + // ID: to.Ptr("/subscriptions/6c48fa17-39c7-45f1-90ac-47a587128ace/resourceGroups/petesting/providers/Microsoft.RecoveryServices/Vaults/pemsi-ecy-rsv2/privateLinkResources/backupResource"), + // Properties: &armrecoveryservices.PrivateLinkResourceProperties{ + // GroupID: to.Ptr("AzureBackup"), + // RequiredMembers: []*string{ + // to.Ptr("backup-fab1"), + // to.Ptr("backup-rec2"), + // to.Ptr("backup-prot1"), + // to.Ptr("backup-ecs1"), + // to.Ptr("backup-tel1"), + // to.Ptr("backup-wbcm1"), + // to.Ptr("backup-fc1"), + // to.Ptr("backup-id1")}, + // RequiredZoneNames: []*string{ + // to.Ptr("privatelink.ecy.backup.windowsazure.com"), + // to.Ptr("privatelink.queue.core.windows.net"), + // to.Ptr("privatelink.blob.core.windows.net")}, + // }, + // } } diff --git a/sdk/resourcemanager/recoveryservices/armrecoveryservices/recoveryservices_client_example_test.go b/sdk/resourcemanager/recoveryservices/armrecoveryservices/recoveryservices_client_example_test.go deleted file mode 100644 index 0e511ad7b14e..000000000000 --- a/sdk/resourcemanager/recoveryservices/armrecoveryservices/recoveryservices_client_example_test.go +++ /dev/null @@ -1,44 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armrecoveryservices_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservices" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2022-04-01/examples/CheckNameAvailability_Available.json -func ExampleClient_CheckNameAvailability() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armrecoveryservices.NewClient("77777777-b0c6-47a2-b37c-d8e65a629c18", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.CheckNameAvailability(ctx, - "resGroupFoo", - "westus", - armrecoveryservices.CheckNameAvailabilityParameters{ - Name: to.Ptr("swaggerExample"), - Type: to.Ptr("Microsoft.RecoveryServices/Vaults"), - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} diff --git a/sdk/resourcemanager/recoveryservices/armrecoveryservices/registeredidentities_client.go b/sdk/resourcemanager/recoveryservices/armrecoveryservices/registeredidentities_client.go index a16a0adb1225..382b6489b56f 100644 --- a/sdk/resourcemanager/recoveryservices/armrecoveryservices/registeredidentities_client.go +++ b/sdk/resourcemanager/recoveryservices/armrecoveryservices/registeredidentities_client.go @@ -32,9 +32,9 @@ type RegisteredIdentitiesClient struct { } // NewRegisteredIdentitiesClient creates a new instance of RegisteredIdentitiesClient with the specified values. -// subscriptionID - The subscription Id. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewRegisteredIdentitiesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*RegisteredIdentitiesClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,12 +57,13 @@ func NewRegisteredIdentitiesClient(subscriptionID string, credential azcore.Toke // Delete - Unregisters the given container from your Recovery Services vault. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-04-01 -// resourceGroupName - The name of the resource group where the recovery services vault is present. -// vaultName - The name of the recovery services vault. -// identityName - Name of the protection container to unregister. -// options - RegisteredIdentitiesClientDeleteOptions contains the optional parameters for the RegisteredIdentitiesClient.Delete -// method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - vaultName - The name of the recovery services vault. +// - identityName - Name of the protection container to unregister. +// - options - RegisteredIdentitiesClientDeleteOptions contains the optional parameters for the RegisteredIdentitiesClient.Delete +// method. func (client *RegisteredIdentitiesClient) Delete(ctx context.Context, resourceGroupName string, vaultName string, identityName string, options *RegisteredIdentitiesClientDeleteOptions) (RegisteredIdentitiesClientDeleteResponse, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, vaultName, identityName, options) if err != nil { @@ -102,7 +103,7 @@ func (client *RegisteredIdentitiesClient) deleteCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-04-01") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() return req, nil } diff --git a/sdk/resourcemanager/recoveryservices/armrecoveryservices/registeredidentities_client_example_test.go b/sdk/resourcemanager/recoveryservices/armrecoveryservices/registeredidentities_client_example_test.go index 64f3865125f9..ff2f7435b0dd 100644 --- a/sdk/resourcemanager/recoveryservices/armrecoveryservices/registeredidentities_client_example_test.go +++ b/sdk/resourcemanager/recoveryservices/armrecoveryservices/registeredidentities_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armrecoveryservices_test @@ -16,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservices" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2022-04-01/examples/DeleteRegisteredIdentities.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/DeleteRegisteredIdentities.json func ExampleRegisteredIdentitiesClient_Delete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -27,11 +28,7 @@ func ExampleRegisteredIdentitiesClient_Delete() { if err != nil { log.Fatalf("failed to create client: %v", err) } - _, err = client.Delete(ctx, - "BCDRIbzRG", - "BCDRIbzVault", - "dpmcontainer01", - nil) + _, err = client.Delete(ctx, "BCDRIbzRG", "BCDRIbzVault", "dpmcontainer01", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } diff --git a/sdk/resourcemanager/recoveryservices/armrecoveryservices/replicationusages_client.go b/sdk/resourcemanager/recoveryservices/armrecoveryservices/replicationusages_client.go index 3b038b78524c..90bdbadcb569 100644 --- a/sdk/resourcemanager/recoveryservices/armrecoveryservices/replicationusages_client.go +++ b/sdk/resourcemanager/recoveryservices/armrecoveryservices/replicationusages_client.go @@ -32,9 +32,9 @@ type ReplicationUsagesClient struct { } // NewReplicationUsagesClient creates a new instance of ReplicationUsagesClient with the specified values. -// subscriptionID - The subscription Id. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewReplicationUsagesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ReplicationUsagesClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,11 +56,12 @@ func NewReplicationUsagesClient(subscriptionID string, credential azcore.TokenCr } // NewListPager - Fetches the replication usages of the vault. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-04-01 -// resourceGroupName - The name of the resource group where the recovery services vault is present. -// vaultName - The name of the recovery services vault. -// options - ReplicationUsagesClientListOptions contains the optional parameters for the ReplicationUsagesClient.List method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - vaultName - The name of the recovery services vault. +// - options - ReplicationUsagesClientListOptions contains the optional parameters for the ReplicationUsagesClient.NewListPager +// method. func (client *ReplicationUsagesClient) NewListPager(resourceGroupName string, vaultName string, options *ReplicationUsagesClientListOptions) *runtime.Pager[ReplicationUsagesClientListResponse] { return runtime.NewPager(runtime.PagingHandler[ReplicationUsagesClientListResponse]{ More: func(page ReplicationUsagesClientListResponse) bool { @@ -103,7 +104,7 @@ func (client *ReplicationUsagesClient) listCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-04-01") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/recoveryservices/armrecoveryservices/replicationusages_client_example_test.go b/sdk/resourcemanager/recoveryservices/armrecoveryservices/replicationusages_client_example_test.go index 683af3323bb0..41d2522d254b 100644 --- a/sdk/resourcemanager/recoveryservices/armrecoveryservices/replicationusages_client_example_test.go +++ b/sdk/resourcemanager/recoveryservices/armrecoveryservices/replicationusages_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armrecoveryservices_test @@ -16,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservices" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2022-04-01/examples/ListReplicationUsages.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/ListReplicationUsages.json func ExampleReplicationUsagesClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -27,17 +28,37 @@ func ExampleReplicationUsagesClient_NewListPager() { if err != nil { log.Fatalf("failed to create client: %v", err) } - pager := client.NewListPager("avrai7517RG1", - "avrai7517Vault1", - nil) + pager := client.NewListPager("avrai7517RG1", "avrai7517Vault1", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.ReplicationUsageList = armrecoveryservices.ReplicationUsageList{ + // Value: []*armrecoveryservices.ReplicationUsage{ + // { + // JobsSummary: &armrecoveryservices.JobsSummary{ + // FailedJobs: to.Ptr[int32](0), + // InProgressJobs: to.Ptr[int32](0), + // SuspendedJobs: to.Ptr[int32](0), + // }, + // MonitoringSummary: &armrecoveryservices.MonitoringSummary{ + // DeprecatedProviderCount: to.Ptr[int32](0), + // EventsCount: to.Ptr[int32](0), + // SupportedProviderCount: to.Ptr[int32](0), + // UnHealthyProviderCount: to.Ptr[int32](0), + // UnHealthyVMCount: to.Ptr[int32](0), + // UnsupportedProviderCount: to.Ptr[int32](0), + // }, + // ProtectedItemCount: to.Ptr[int32](2), + // RecoveryPlanCount: to.Ptr[int32](1), + // RegisteredServersCount: to.Ptr[int32](2), + // }}, + // } } } diff --git a/sdk/resourcemanager/recoveryservices/armrecoveryservices/response_types.go b/sdk/resourcemanager/recoveryservices/armrecoveryservices/response_types.go index c782d98d6330..70d5686afbd0 100644 --- a/sdk/resourcemanager/recoveryservices/armrecoveryservices/response_types.go +++ b/sdk/resourcemanager/recoveryservices/armrecoveryservices/response_types.go @@ -9,6 +9,11 @@ package armrecoveryservices +// ClientCapabilitiesResponse contains the response from method Client.Capabilities. +type ClientCapabilitiesResponse struct { + CapabilitiesResponse +} + // ClientCheckNameAvailabilityResponse contains the response from method Client.CheckNameAvailability. type ClientCheckNameAvailabilityResponse struct { CheckNameAvailabilityResult @@ -19,7 +24,7 @@ type OperationsClientGetOperationResultResponse struct { Vault } -// OperationsClientListResponse contains the response from method OperationsClient.List. +// OperationsClientListResponse contains the response from method OperationsClient.NewListPager. type OperationsClientListResponse struct { ClientDiscoveryResponse } @@ -34,7 +39,7 @@ type PrivateLinkResourcesClientGetResponse struct { PrivateLinkResource } -// PrivateLinkResourcesClientListResponse contains the response from method PrivateLinkResourcesClient.List. +// PrivateLinkResourcesClientListResponse contains the response from method PrivateLinkResourcesClient.NewListPager. type PrivateLinkResourcesClientListResponse struct { PrivateLinkResources } @@ -44,12 +49,12 @@ type RegisteredIdentitiesClientDeleteResponse struct { // placeholder for future response values } -// ReplicationUsagesClientListResponse contains the response from method ReplicationUsagesClient.List. +// ReplicationUsagesClientListResponse contains the response from method ReplicationUsagesClient.NewListPager. type ReplicationUsagesClientListResponse struct { ReplicationUsageList } -// UsagesClientListByVaultsResponse contains the response from method UsagesClient.ListByVaults. +// UsagesClientListByVaultsResponse contains the response from method UsagesClient.NewListByVaultsPager. type UsagesClientListByVaultsResponse struct { VaultUsageList } @@ -74,7 +79,7 @@ type VaultExtendedInfoClientUpdateResponse struct { VaultExtendedInfoResource } -// VaultsClientCreateOrUpdateResponse contains the response from method VaultsClient.CreateOrUpdate. +// VaultsClientCreateOrUpdateResponse contains the response from method VaultsClient.BeginCreateOrUpdate. type VaultsClientCreateOrUpdateResponse struct { Vault } @@ -89,17 +94,17 @@ type VaultsClientGetResponse struct { Vault } -// VaultsClientListByResourceGroupResponse contains the response from method VaultsClient.ListByResourceGroup. +// VaultsClientListByResourceGroupResponse contains the response from method VaultsClient.NewListByResourceGroupPager. type VaultsClientListByResourceGroupResponse struct { VaultList } -// VaultsClientListBySubscriptionIDResponse contains the response from method VaultsClient.ListBySubscriptionID. +// VaultsClientListBySubscriptionIDResponse contains the response from method VaultsClient.NewListBySubscriptionIDPager. type VaultsClientListBySubscriptionIDResponse struct { VaultList } -// VaultsClientUpdateResponse contains the response from method VaultsClient.Update. +// VaultsClientUpdateResponse contains the response from method VaultsClient.BeginUpdate. type VaultsClientUpdateResponse struct { Vault } diff --git a/sdk/resourcemanager/recoveryservices/armrecoveryservices/time_rfc3339.go b/sdk/resourcemanager/recoveryservices/armrecoveryservices/time_rfc3339.go index 9fa74ddca7ae..ec09c0835d71 100644 --- a/sdk/resourcemanager/recoveryservices/armrecoveryservices/time_rfc3339.go +++ b/sdk/resourcemanager/recoveryservices/armrecoveryservices/time_rfc3339.go @@ -62,7 +62,7 @@ func (t *timeRFC3339) Parse(layout, value string) error { return err } -func populateTimeRFC3339(m map[string]interface{}, k string, t *time.Time) { +func populateTimeRFC3339(m map[string]any, k string, t *time.Time) { if t == nil { return } else if azcore.IsNullValue(t) { diff --git a/sdk/resourcemanager/recoveryservices/armrecoveryservices/usages_client.go b/sdk/resourcemanager/recoveryservices/armrecoveryservices/usages_client.go index b235f0132500..feb3ed24a003 100644 --- a/sdk/resourcemanager/recoveryservices/armrecoveryservices/usages_client.go +++ b/sdk/resourcemanager/recoveryservices/armrecoveryservices/usages_client.go @@ -32,9 +32,9 @@ type UsagesClient struct { } // NewUsagesClient creates a new instance of UsagesClient with the specified values. -// subscriptionID - The subscription Id. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewUsagesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*UsagesClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,11 +56,11 @@ func NewUsagesClient(subscriptionID string, credential azcore.TokenCredential, o } // NewListByVaultsPager - Fetches the usages of the vault. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-04-01 -// resourceGroupName - The name of the resource group where the recovery services vault is present. -// vaultName - The name of the recovery services vault. -// options - UsagesClientListByVaultsOptions contains the optional parameters for the UsagesClient.ListByVaults method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - vaultName - The name of the recovery services vault. +// - options - UsagesClientListByVaultsOptions contains the optional parameters for the UsagesClient.NewListByVaultsPager method. func (client *UsagesClient) NewListByVaultsPager(resourceGroupName string, vaultName string, options *UsagesClientListByVaultsOptions) *runtime.Pager[UsagesClientListByVaultsResponse] { return runtime.NewPager(runtime.PagingHandler[UsagesClientListByVaultsResponse]{ More: func(page UsagesClientListByVaultsResponse) bool { @@ -103,7 +103,7 @@ func (client *UsagesClient) listByVaultsCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-04-01") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/recoveryservices/armrecoveryservices/usages_client_example_test.go b/sdk/resourcemanager/recoveryservices/armrecoveryservices/usages_client_example_test.go index ed094c74971a..b61412f5b5d8 100644 --- a/sdk/resourcemanager/recoveryservices/armrecoveryservices/usages_client_example_test.go +++ b/sdk/resourcemanager/recoveryservices/armrecoveryservices/usages_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armrecoveryservices_test @@ -16,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservices" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2022-04-01/examples/ListUsages.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/ListUsages.json func ExampleUsagesClient_NewListByVaultsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -27,17 +28,183 @@ func ExampleUsagesClient_NewListByVaultsPager() { if err != nil { log.Fatalf("failed to create client: %v", err) } - pager := client.NewListByVaultsPager("Default-RecoveryServices-ResourceGroup", - "swaggerExample", - nil) + pager := client.NewListByVaultsPager("Default-RecoveryServices-ResourceGroup", "swaggerExample", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.VaultUsageList = armrecoveryservices.VaultUsageList{ + // Value: []*armrecoveryservices.VaultUsage{ + // { + // Name: &armrecoveryservices.NameInfo{ + // LocalizedValue: to.Ptr("Backup management servers"), + // Value: to.Ptr("MABContainersCount"), + // }, + // CurrentValue: to.Ptr[int64](6), + // Limit: to.Ptr[int64](-1), + // Unit: to.Ptr(armrecoveryservices.UsagesUnitCount), + // }, + // { + // Name: &armrecoveryservices.NameInfo{ + // LocalizedValue: to.Ptr("Backup items/Azure virtual machine backup"), + // Value: to.Ptr("ProtectedItemCount"), + // }, + // CurrentValue: to.Ptr[int64](3), + // Limit: to.Ptr[int64](-1), + // Unit: to.Ptr(armrecoveryservices.UsagesUnitCount), + // }, + // { + // Name: &armrecoveryservices.NameInfo{ + // LocalizedValue: to.Ptr("Critical"), + // Value: to.Ptr("ProtectedItemCriticalCount"), + // }, + // CurrentValue: to.Ptr[int64](0), + // Limit: to.Ptr[int64](-1), + // Unit: to.Ptr(armrecoveryservices.UsagesUnitCount), + // }, + // { + // Name: &armrecoveryservices.NameInfo{ + // LocalizedValue: to.Ptr("Warning"), + // Value: to.Ptr("ProtectedItemWarningCount"), + // }, + // CurrentValue: to.Ptr[int64](0), + // Limit: to.Ptr[int64](-1), + // Unit: to.Ptr(armrecoveryservices.UsagesUnitCount), + // }, + // { + // Name: &armrecoveryservices.NameInfo{ + // LocalizedValue: to.Ptr("Azure Virtual Machines"), + // Value: to.Ptr("IaaSVMProtectedItemCount"), + // }, + // CurrentValue: to.Ptr[int64](0), + // Limit: to.Ptr[int64](-1), + // Unit: to.Ptr(armrecoveryservices.UsagesUnitCount), + // }, + // { + // Name: &armrecoveryservices.NameInfo{ + // LocalizedValue: to.Ptr("Critical"), + // Value: to.Ptr("IaaSVMProtectedItemCriticalCount"), + // }, + // CurrentValue: to.Ptr[int64](0), + // Limit: to.Ptr[int64](-1), + // Unit: to.Ptr(armrecoveryservices.UsagesUnitCount), + // }, + // { + // Name: &armrecoveryservices.NameInfo{ + // LocalizedValue: to.Ptr("Warning"), + // Value: to.Ptr("IaaSVMProtectedItemWarningCount"), + // }, + // CurrentValue: to.Ptr[int64](0), + // Limit: to.Ptr[int64](-1), + // Unit: to.Ptr(armrecoveryservices.UsagesUnitCount), + // }, + // { + // Name: &armrecoveryservices.NameInfo{ + // LocalizedValue: to.Ptr("File-Folders"), + // Value: to.Ptr("MABProtectedItemCount"), + // }, + // CurrentValue: to.Ptr[int64](0), + // Limit: to.Ptr[int64](-1), + // Unit: to.Ptr(armrecoveryservices.UsagesUnitCount), + // }, + // { + // Name: &armrecoveryservices.NameInfo{ + // LocalizedValue: to.Ptr("DPM Protected Items Count"), + // Value: to.Ptr("DPMProtectedItemCount"), + // }, + // CurrentValue: to.Ptr[int64](1), + // Limit: to.Ptr[int64](-1), + // Unit: to.Ptr(armrecoveryservices.UsagesUnitCount), + // }, + // { + // Name: &armrecoveryservices.NameInfo{ + // LocalizedValue: to.Ptr("Azure Backup Server Protected Items Count"), + // Value: to.Ptr("AzureBackupServerProtectedItemCount"), + // }, + // CurrentValue: to.Ptr[int64](2), + // Limit: to.Ptr[int64](-1), + // Unit: to.Ptr(armrecoveryservices.UsagesUnitCount), + // }, + // { + // Name: &armrecoveryservices.NameInfo{ + // LocalizedValue: to.Ptr("In progress"), + // Value: to.Ptr("InProgressJobsCount"), + // }, + // CurrentValue: to.Ptr[int64](0), + // Limit: to.Ptr[int64](-1), + // QuotaPeriod: to.Ptr("P1D"), + // Unit: to.Ptr(armrecoveryservices.UsagesUnitCount), + // }, + // { + // Name: &armrecoveryservices.NameInfo{ + // LocalizedValue: to.Ptr("Failed"), + // Value: to.Ptr("FailedJobsCount"), + // }, + // CurrentValue: to.Ptr[int64](0), + // Limit: to.Ptr[int64](-1), + // QuotaPeriod: to.Ptr("P1D"), + // Unit: to.Ptr(armrecoveryservices.UsagesUnitCount), + // }, + // { + // Name: &armrecoveryservices.NameInfo{ + // LocalizedValue: to.Ptr("Cloud - GRS"), + // Value: to.Ptr("GRSStorageUsage"), + // }, + // CurrentValue: to.Ptr[int64](117007930), + // Limit: to.Ptr[int64](-1), + // Unit: to.Ptr(armrecoveryservices.UsagesUnitBytes), + // }, + // { + // Name: &armrecoveryservices.NameInfo{ + // LocalizedValue: to.Ptr("Cloud - LRS"), + // Value: to.Ptr("LRSStorageUsage"), + // }, + // CurrentValue: to.Ptr[int64](0), + // Limit: to.Ptr[int64](-1), + // Unit: to.Ptr(armrecoveryservices.UsagesUnitBytes), + // }, + // { + // Name: &armrecoveryservices.NameInfo{ + // LocalizedValue: to.Ptr("Protected Instances"), + // Value: to.Ptr("ManagedInstances"), + // }, + // CurrentValue: to.Ptr[int64](5), + // Limit: to.Ptr[int64](-1), + // Unit: to.Ptr(armrecoveryservices.UsagesUnitCount), + // }, + // { + // Name: &armrecoveryservices.NameInfo{ + // LocalizedValue: to.Ptr("Dedup - GRS"), + // Value: to.Ptr("GRSDedupStorageUsage"), + // }, + // CurrentValue: to.Ptr[int64](0), + // Limit: to.Ptr[int64](-1), + // Unit: to.Ptr(armrecoveryservices.UsagesUnitBytes), + // }, + // { + // Name: &armrecoveryservices.NameInfo{ + // LocalizedValue: to.Ptr("Dedup - LRS"), + // Value: to.Ptr("LRSDedupStorageUsage"), + // }, + // CurrentValue: to.Ptr[int64](0), + // Limit: to.Ptr[int64](-1), + // Unit: to.Ptr(armrecoveryservices.UsagesUnitBytes), + // }, + // { + // Name: &armrecoveryservices.NameInfo{ + // LocalizedValue: to.Ptr("Backup Engines' Disk Used"), + // Value: to.Ptr("UsedDiskSize"), + // }, + // CurrentValue: to.Ptr[int64](117851553792), + // Limit: to.Ptr[int64](-1), + // Unit: to.Ptr(armrecoveryservices.UsagesUnitBytes), + // }}, + // } } } diff --git a/sdk/resourcemanager/recoveryservices/armrecoveryservices/vaultcertificates_client.go b/sdk/resourcemanager/recoveryservices/armrecoveryservices/vaultcertificates_client.go index fa28d638a327..369123f6f814 100644 --- a/sdk/resourcemanager/recoveryservices/armrecoveryservices/vaultcertificates_client.go +++ b/sdk/resourcemanager/recoveryservices/armrecoveryservices/vaultcertificates_client.go @@ -32,9 +32,9 @@ type VaultCertificatesClient struct { } // NewVaultCertificatesClient creates a new instance of VaultCertificatesClient with the specified values. -// subscriptionID - The subscription Id. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewVaultCertificatesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*VaultCertificatesClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,13 +57,14 @@ func NewVaultCertificatesClient(subscriptionID string, credential azcore.TokenCr // Create - Uploads a certificate for a resource. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-04-01 -// resourceGroupName - The name of the resource group where the recovery services vault is present. -// vaultName - The name of the recovery services vault. -// certificateName - Certificate friendly name. -// certificateRequest - Input parameters for uploading the vault certificate. -// options - VaultCertificatesClientCreateOptions contains the optional parameters for the VaultCertificatesClient.Create -// method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - vaultName - The name of the recovery services vault. +// - certificateName - Certificate friendly name. +// - certificateRequest - Input parameters for uploading the vault certificate. +// - options - VaultCertificatesClientCreateOptions contains the optional parameters for the VaultCertificatesClient.Create +// method. func (client *VaultCertificatesClient) Create(ctx context.Context, resourceGroupName string, vaultName string, certificateName string, certificateRequest CertificateRequest, options *VaultCertificatesClientCreateOptions) (VaultCertificatesClientCreateResponse, error) { req, err := client.createCreateRequest(ctx, resourceGroupName, vaultName, certificateName, certificateRequest, options) if err != nil { @@ -103,7 +104,7 @@ func (client *VaultCertificatesClient) createCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-04-01") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, certificateRequest) diff --git a/sdk/resourcemanager/recoveryservices/armrecoveryservices/vaultcertificates_client_example_test.go b/sdk/resourcemanager/recoveryservices/armrecoveryservices/vaultcertificates_client_example_test.go index 205379e99453..4ac84d1f0447 100644 --- a/sdk/resourcemanager/recoveryservices/armrecoveryservices/vaultcertificates_client_example_test.go +++ b/sdk/resourcemanager/recoveryservices/armrecoveryservices/vaultcertificates_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armrecoveryservices_test @@ -17,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservices" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2022-04-01/examples/PUTVaultCred.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/PUTVaultCred.json func ExampleVaultCertificatesClient_Create() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -28,20 +29,38 @@ func ExampleVaultCertificatesClient_Create() { if err != nil { log.Fatalf("failed to create client: %v", err) } - res, err := client.Create(ctx, - "BCDRIbzRG", - "BCDRIbzVault", - "BCDRIbzVault77777777-d41f-4550-9f70-7708a3a2283b-12-18-2017-vaultcredentials", - armrecoveryservices.CertificateRequest{ - Properties: &armrecoveryservices.RawCertificateData{ - AuthType: to.Ptr(armrecoveryservices.AuthTypeAAD), - Certificate: []byte("MTTC3TCCAcWgAwIBAgIQEj9h+ZLlXK9KrqZX9UkAnzANBgkqhkiG9w0BAQUFADAeMRwwGgYDVQQDExNXaW5kb3dzIEF6dXJlIFRvb2xzMB4XDTE3MTIxODA5MTc1M1oXDTE3MTIyMzA5Mjc1M1owHjEcMBoGA1UEAxMTV2luZG93cyBBenVyZSBUb29sczCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAK773/eZZ69RbZZAT05r9MjUxu9y1L1Pn1EgPk62IPJyHlO3OZA922eSBahhP4bgmFljN4LVReqQ5eT/wqO0Zhc+yFkUy4U4RdbQLeUZt2W7yy9XLXgVvqeYDgsjg/QhHetgHArQBW+tlQq5+zPdU7zchI4rbShSJrWhLrZFWiOyFPsuAE4joUQHNlRifdCTsBGKk8HRCY3j1S3c4bfEn3zxlrvrXXssRuW5mJM95rMk0tskoRxXSCi6i9bnlki2Cs9mpVMmBFeofs41KwzlWU0TgpdD8s1QEdvfGB5NbByfetPX7MfJaTBeHZEGbv/Iq8l72u8sPBoOhcaH7qDE/mECAwEAAaMXMBUwEwYDVR0lBAwwCgYIKwYBBQUHAwIwDQYJKoZIhvcNAQEFBQADggEBAILfgHluye1Q+WelhgWhpBBdIq2C0btfV8eFsZaTlBUrM0fwpxQSlAWc2oYHVMQI4A5iUjbDOY35O4yc+TnWKDBKf+laqDP+yos4aiUPuadGUZfvDk7kuw7xeECs64JpHAIEKdRHFW9rD3gwG+nIWaDnEL/7rTyhL3kXrRW2MSUAL8g3GX8Z45c+MQY0jmASIqWdhGn1vpAGyA9mKkzsqg7FXjg8GZb24tGl5Ky85+ip4dkBfXinDD8WwaGyjhGGK97ErvNmN36qly/H0H1Qngiovg1FbHDmkcFO5QclnEJsFFmcO2CcHp5Fqh2wXn5O1cQaxCIRTpQ/uXRpDjl2wKs="), - }, + res, err := client.Create(ctx, "BCDRIbzRG", "BCDRIbzVault", "BCDRIbzVault77777777-d41f-4550-9f70-7708a3a2283b-12-18-2017-vaultcredentials", armrecoveryservices.CertificateRequest{ + Properties: &armrecoveryservices.RawCertificateData{ + AuthType: to.Ptr(armrecoveryservices.AuthTypeAAD), + Certificate: []byte("TUlJRE5EQ0NBaHlnQXdJQkFnSVFDYUxFKzVTSlNVeWdncDM0VS9HUm9qQU5CZ2txaGtpRzl3MEJBUXNGQURBWE1SVXdFd1lEVlFRREV3eGhiV05vWVc1a2JpNWpiMjB3SGhjTk1qSXhNREkwTVRJd05qRTRXaGNOTWpNeE1ESTBNVEl4TmpFNFdqQVhNUlV3RXdZRFZRUURFd3hoYldOb1lXNWtiaTVqYjIwd2dnRWlNQTBHQ1NxR1NJYjNEUUVCQVFVQUE0SUJEd0F3Z2dFS0FvSUJBUUN4cFpwS293a2p4VU9VWkpLT2JvdGdPWXkzaW9UVkxMMmZyaW9nZVN1Qm5IMWw3aVdQWW9kUHRoWS8yVmh6ZFVUckNXL25pNUh3b0JHYzZMMHF6UGlBWXpHek94RmpMQjZjdFNkbm9nL1A4eEV2OGE0cnJWZlBZdS9INStoTGx3N0RubXlTNWs4TU9sSVhUemVWNkxZV2I2RWlpTFppc0k1R3lLU1liemNaQmJKdnhLTVdGdHRCV08xZUwzUWNUejlpb1VGQzVnRlFKQzg3YXFkeDR1Wk9WYzRLM3Ixb09sTFBKdmRLN25YU3VWci9ZOC80ZHhCdDJZUTRia0hjM2EzcUNBbTZrV0QzamRiajhCZmhlWWNVNjFFZ3llVFV2MlI4dzRubWJqVXZxRW05cDZtTG4xMTdEWWpQTHNFODVTL0FpQmF0dkNhQ3hCZ0lxb1N1blBOUkFnTUJBQUdqZkRCNk1BNEdBMVVkRHdFQi93UUVBd0lGb0RBSkJnTlZIUk1FQWpBQU1CMEdBMVVkSlFRV01CUUdDQ3NHQVFVRkJ3TUJCZ2dyQmdFRkJRY0RBakFmQmdOVkhTTUVHREFXZ0JRR1NZcDJMUTJwOE5wMHUzRThJZDdRUjRTQXBqQWRCZ05WSFE0RUZnUVVCa21LZGkwTnFmRGFkTHR4UENIZTBFZUVnS1l3RFFZSktvWklodmNOQVFFTEJRQURnZ0VCQUp2ZG9yRmJ4cExZaUhYRHpnR001WmxMWTRDZE1LYW5BdzVDZDNFVnhDbkhtT05ISnpLRmpzdHZjdUN1TDZ2S1ptci9abm5ENXNLUnE0d0xnTXV6dlNXNGtQTXlWeENrYzdVYnNZSWJCSXNIUDl3cUNmcUY5aG5LSE9YZFJJV2tBVXhnbmYxSlpLZjR1NlpTSzZ3dExaME9VT0c5Mmd3SlB2eW5PVmJoeWpqczdQTVpONEw1djZyeHJkRWp0WG5sYzIvRDlnS0NOTFhFZHdRM0dzS05ZTGZvYy9DT3JmbEIrRHVPSThrVzM0WmxzYlFHelgyQ3ArWVVlSDNrQlBjY3RpUWNURHFQcW5YS0NNMTJ6MGZDTjVpNXRkRlUrM0VzemZBQkpiOEZpU2ZCWFF1UUZRRDNDTDkraVdjZXhrMmxQako2akZIbHZtak9XbTdjQllHZlc4ST0="), }, - nil) + }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.VaultCertificateResponse = armrecoveryservices.VaultCertificateResponse{ + // Name: to.Ptr("BCDRIbzVault77777777-d41f-4550-9f70-7708a3a2283b-12-18-2017-vaultcredentials"), + // Type: to.Ptr("Microsoft.RecoveryServices/vaults/certificates"), + // ID: to.Ptr("/Subscriptions/77777777-d41f-4550-9f70-7708a3a2283b/resourceGroups/BCDRIbzRG/providers/Microsoft.RecoveryServices/vaults/BCDRIbzVault/certificates/BCDRIbzVault77777777-d41f-4550-9f70-7708a3a2283b-12-18-2017-vaultcredentials"), + // Properties: &armrecoveryservices.ResourceCertificateAndAADDetails{ + // AuthType: to.Ptr("AzureActiveDirectory"), + // Certificate: []byte("TUlJRE5EQ0NBaHlnQXdJQkFnSVFDYUxFKzVTSlNVeWdncDM0VS9HUm9qQU5CZ2txaGtpRzl3MEJBUXNGQURBWE1SVXdFd1lEVlFRREV3eGhiV05vWVc1a2JpNWpiMjB3SGhjTk1qSXhNREkwTVRJd05qRTRXaGNOTWpNeE1ESTBNVEl4TmpFNFdqQVhNUlV3RXdZRFZRUURFd3hoYldOb1lXNWtiaTVqYjIwd2dnRWlNQTBHQ1NxR1NJYjNEUUVCQVFVQUE0SUJEd0F3Z2dFS0FvSUJBUUN4cFpwS293a2p4VU9VWkpLT2JvdGdPWXkzaW9UVkxMMmZyaW9nZVN1Qm5IMWw3aVdQWW9kUHRoWS8yVmh6ZFVUckNXL25pNUh3b0JHYzZMMHF6UGlBWXpHek94RmpMQjZjdFNkbm9nL1A4eEV2OGE0cnJWZlBZdS9INStoTGx3N0RubXlTNWs4TU9sSVhUemVWNkxZV2I2RWlpTFppc0k1R3lLU1liemNaQmJKdnhLTVdGdHRCV08xZUwzUWNUejlpb1VGQzVnRlFKQzg3YXFkeDR1Wk9WYzRLM3Ixb09sTFBKdmRLN25YU3VWci9ZOC80ZHhCdDJZUTRia0hjM2EzcUNBbTZrV0QzamRiajhCZmhlWWNVNjFFZ3llVFV2MlI4dzRubWJqVXZxRW05cDZtTG4xMTdEWWpQTHNFODVTL0FpQmF0dkNhQ3hCZ0lxb1N1blBOUkFnTUJBQUdqZkRCNk1BNEdBMVVkRHdFQi93UUVBd0lGb0RBSkJnTlZIUk1FQWpBQU1CMEdBMVVkSlFRV01CUUdDQ3NHQVFVRkJ3TUJCZ2dyQmdFRkJRY0RBakFmQmdOVkhTTUVHREFXZ0JRR1NZcDJMUTJwOE5wMHUzRThJZDdRUjRTQXBqQWRCZ05WSFE0RUZnUVVCa21LZGkwTnFmRGFkTHR4UENIZTBFZUVnS1l3RFFZSktvWklodmNOQVFFTEJRQURnZ0VCQUp2ZG9yRmJ4cExZaUhYRHpnR001WmxMWTRDZE1LYW5BdzVDZDNFVnhDbkhtT05ISnpLRmpzdHZjdUN1TDZ2S1ptci9abm5ENXNLUnE0d0xnTXV6dlNXNGtQTXlWeENrYzdVYnNZSWJCSXNIUDl3cUNmcUY5aG5LSE9YZFJJV2tBVXhnbmYxSlpLZjR1NlpTSzZ3dExaME9VT0c5Mmd3SlB2eW5PVmJoeWpqczdQTVpONEw1djZyeHJkRWp0WG5sYzIvRDlnS0NOTFhFZHdRM0dzS05ZTGZvYy9DT3JmbEIrRHVPSThrVzM0WmxzYlFHelgyQ3ArWVVlSDNrQlBjY3RpUWNURHFQcW5YS0NNMTJ6MGZDTjVpNXRkRlUrM0VzemZBQkpiOEZpU2ZCWFF1UUZRRDNDTDkraVdjZXhrMmxQako2akZIbHZtak9XbTdjQllHZlc4ST0="), + // FriendlyName: to.Ptr(""), + // Issuer: to.Ptr("CN=Windows Azure Tools"), + // ResourceID: to.Ptr[int64](8726350008099341000), + // Subject: to.Ptr("CN=Windows Azure Tools"), + // Thumbprint: to.Ptr("019FE9BAD18A5A09A5CA53B593AF66331F3054AF"), + // ValidFrom: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-12-18T14:47:53+05:30"); return t}()), + // ValidTo: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-12-23T14:57:53+05:30"); return t}()), + // AADAudience: to.Ptr("api://9b0c2069-2eba-489f-95f4-eca15cb602ab/RecoveryServiceVault/US/AADReregisterTest/8726350008099341699"), + // AADAuthority: to.Ptr("https://login.windows.net"), + // AADTenantID: to.Ptr("9b0c2069-2eba-489f-95f4-eca15cb602ab"), + // AzureManagementEndpointAudience: to.Ptr("https://ppe1-id1.wus.wabppe.obs-test.com/restapi/"), + // ServicePrincipalClientID: to.Ptr("4932d0bd-b5f9-4659-94a0-7ab02d918933"), + // ServicePrincipalObjectID: to.Ptr("2d60221e-cef5-4e13-ba66-b33701a533bb"), + // }, + // } } diff --git a/sdk/resourcemanager/recoveryservices/armrecoveryservices/vaultextendedinfo_client.go b/sdk/resourcemanager/recoveryservices/armrecoveryservices/vaultextendedinfo_client.go index f82f62417526..abfe9bb5fb05 100644 --- a/sdk/resourcemanager/recoveryservices/armrecoveryservices/vaultextendedinfo_client.go +++ b/sdk/resourcemanager/recoveryservices/armrecoveryservices/vaultextendedinfo_client.go @@ -32,9 +32,9 @@ type VaultExtendedInfoClient struct { } // NewVaultExtendedInfoClient creates a new instance of VaultExtendedInfoClient with the specified values. -// subscriptionID - The subscription Id. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewVaultExtendedInfoClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*VaultExtendedInfoClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,12 +57,13 @@ func NewVaultExtendedInfoClient(subscriptionID string, credential azcore.TokenCr // CreateOrUpdate - Create vault extended info. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-04-01 -// resourceGroupName - The name of the resource group where the recovery services vault is present. -// vaultName - The name of the recovery services vault. -// resourceExtendedInfoDetails - Details of ResourceExtendedInfo -// options - VaultExtendedInfoClientCreateOrUpdateOptions contains the optional parameters for the VaultExtendedInfoClient.CreateOrUpdate -// method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - vaultName - The name of the recovery services vault. +// - resourceExtendedInfoDetails - Details of ResourceExtendedInfo +// - options - VaultExtendedInfoClientCreateOrUpdateOptions contains the optional parameters for the VaultExtendedInfoClient.CreateOrUpdate +// method. func (client *VaultExtendedInfoClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, vaultName string, resourceExtendedInfoDetails VaultExtendedInfoResource, options *VaultExtendedInfoClientCreateOrUpdateOptions) (VaultExtendedInfoClientCreateOrUpdateResponse, error) { req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, vaultName, resourceExtendedInfoDetails, options) if err != nil { @@ -98,7 +99,7 @@ func (client *VaultExtendedInfoClient) createOrUpdateCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-04-01") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, resourceExtendedInfoDetails) @@ -115,10 +116,11 @@ func (client *VaultExtendedInfoClient) createOrUpdateHandleResponse(resp *http.R // Get - Get the vault extended info. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-04-01 -// resourceGroupName - The name of the resource group where the recovery services vault is present. -// vaultName - The name of the recovery services vault. -// options - VaultExtendedInfoClientGetOptions contains the optional parameters for the VaultExtendedInfoClient.Get method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - vaultName - The name of the recovery services vault. +// - options - VaultExtendedInfoClientGetOptions contains the optional parameters for the VaultExtendedInfoClient.Get method. func (client *VaultExtendedInfoClient) Get(ctx context.Context, resourceGroupName string, vaultName string, options *VaultExtendedInfoClientGetOptions) (VaultExtendedInfoClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, vaultName, options) if err != nil { @@ -154,7 +156,7 @@ func (client *VaultExtendedInfoClient) getCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-04-01") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -171,12 +173,13 @@ func (client *VaultExtendedInfoClient) getHandleResponse(resp *http.Response) (V // Update - Update vault extended info. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-04-01 -// resourceGroupName - The name of the resource group where the recovery services vault is present. -// vaultName - The name of the recovery services vault. -// resourceExtendedInfoDetails - Details of ResourceExtendedInfo -// options - VaultExtendedInfoClientUpdateOptions contains the optional parameters for the VaultExtendedInfoClient.Update -// method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - vaultName - The name of the recovery services vault. +// - resourceExtendedInfoDetails - Details of ResourceExtendedInfo +// - options - VaultExtendedInfoClientUpdateOptions contains the optional parameters for the VaultExtendedInfoClient.Update +// method. func (client *VaultExtendedInfoClient) Update(ctx context.Context, resourceGroupName string, vaultName string, resourceExtendedInfoDetails VaultExtendedInfoResource, options *VaultExtendedInfoClientUpdateOptions) (VaultExtendedInfoClientUpdateResponse, error) { req, err := client.updateCreateRequest(ctx, resourceGroupName, vaultName, resourceExtendedInfoDetails, options) if err != nil { @@ -212,7 +215,7 @@ func (client *VaultExtendedInfoClient) updateCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-04-01") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, resourceExtendedInfoDetails) diff --git a/sdk/resourcemanager/recoveryservices/armrecoveryservices/vaultextendedinfo_client_example_test.go b/sdk/resourcemanager/recoveryservices/armrecoveryservices/vaultextendedinfo_client_example_test.go index 301fe5541898..7c3aa4955cd3 100644 --- a/sdk/resourcemanager/recoveryservices/armrecoveryservices/vaultextendedinfo_client_example_test.go +++ b/sdk/resourcemanager/recoveryservices/armrecoveryservices/vaultextendedinfo_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armrecoveryservices_test @@ -16,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservices" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2022-04-01/examples/GETVaultExtendedInfo.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/GETVaultExtendedInfo.json func ExampleVaultExtendedInfoClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -27,18 +28,26 @@ func ExampleVaultExtendedInfoClient_Get() { if err != nil { log.Fatalf("failed to create client: %v", err) } - res, err := client.Get(ctx, - "Default-RecoveryServices-ResourceGroup", - "swaggerExample", - nil) + res, err := client.Get(ctx, "Default-RecoveryServices-ResourceGroup", "swaggerExample", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.VaultExtendedInfoResource = armrecoveryservices.VaultExtendedInfoResource{ + // Name: to.Ptr("vaultExtendedInfo"), + // Type: to.Ptr("Microsoft.RecoveryServices/vaults/extendedInformation"), + // Etag: to.Ptr("f0d0260b-b92d-4458-ba0a-32c6cdabacb7"), + // ID: to.Ptr("/subscriptions/77777777-b0c6-47a2-b37c-d8e65a629c18/resourceGroups/Default-RecoveryServices-ResourceGroup/providers/Microsoft.RecoveryServices/vaults/swaggerExample/extendedInformation/vaultExtendedInfo"), + // Properties: &armrecoveryservices.VaultExtendedInfo{ + // Algorithm: to.Ptr("None"), + // IntegrityKey: to.Ptr("J09wzS27fnJ+Wjot7xO5wA=="), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2022-04-01/examples/UpdateVaultExtendedInfo.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/UpdateVaultExtendedInfo.json func ExampleVaultExtendedInfoClient_CreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -49,37 +58,21 @@ func ExampleVaultExtendedInfoClient_CreateOrUpdate() { if err != nil { log.Fatalf("failed to create client: %v", err) } - res, err := client.CreateOrUpdate(ctx, - "Default-RecoveryServices-ResourceGroup", - "swaggerExample", - armrecoveryservices.VaultExtendedInfoResource{}, - nil) + res, err := client.CreateOrUpdate(ctx, "Default-RecoveryServices-ResourceGroup", "swaggerExample", armrecoveryservices.VaultExtendedInfoResource{}, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2022-04-01/examples/UpdateVaultExtendedInfo.json -func ExampleVaultExtendedInfoClient_Update() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armrecoveryservices.NewVaultExtendedInfoClient("77777777-b0c6-47a2-b37c-d8e65a629c18", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Update(ctx, - "Default-RecoveryServices-ResourceGroup", - "swaggerExample", - armrecoveryservices.VaultExtendedInfoResource{}, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item + // 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.VaultExtendedInfoResource = armrecoveryservices.VaultExtendedInfoResource{ + // Name: to.Ptr("vaultExtendedInfo"), + // Type: to.Ptr("Microsoft.RecoveryServices/vaults/extendedInformation"), + // Etag: to.Ptr("f0d0260b-b92d-4458-ba0a-32c6cdabacb7"), + // ID: to.Ptr("/subscriptions/77777777-b0c6-47a2-b37c-d8e65a629c18/resourceGroups/Default-RecoveryServices-ResourceGroup/providers/Microsoft.RecoveryServices/vaults/swaggerExample/extendedInformation/vaultExtendedInfo"), + // Properties: &armrecoveryservices.VaultExtendedInfo{ + // Algorithm: to.Ptr("None"), + // IntegrityKey: to.Ptr("J99wzS27fmJ+Wjot7xO5wA=="), + // }, + // } } diff --git a/sdk/resourcemanager/recoveryservices/armrecoveryservices/vaults_client.go b/sdk/resourcemanager/recoveryservices/armrecoveryservices/vaults_client.go index c6455524be2c..21d6cde722ff 100644 --- a/sdk/resourcemanager/recoveryservices/armrecoveryservices/vaults_client.go +++ b/sdk/resourcemanager/recoveryservices/armrecoveryservices/vaults_client.go @@ -32,9 +32,9 @@ type VaultsClient struct { } // NewVaultsClient creates a new instance of VaultsClient with the specified values. -// subscriptionID - The subscription Id. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewVaultsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*VaultsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,12 +57,13 @@ func NewVaultsClient(subscriptionID string, credential azcore.TokenCredential, o // BeginCreateOrUpdate - Creates or updates a Recovery Services vault. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-04-01 -// resourceGroupName - The name of the resource group where the recovery services vault is present. -// vaultName - The name of the recovery services vault. -// vault - Recovery Services Vault to be created. -// options - VaultsClientBeginCreateOrUpdateOptions contains the optional parameters for the VaultsClient.BeginCreateOrUpdate -// method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - vaultName - The name of the recovery services vault. +// - vault - Recovery Services Vault to be created. +// - options - VaultsClientBeginCreateOrUpdateOptions contains the optional parameters for the VaultsClient.BeginCreateOrUpdate +// method. func (client *VaultsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, vaultName string, vault Vault, options *VaultsClientBeginCreateOrUpdateOptions) (*runtime.Poller[VaultsClientCreateOrUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createOrUpdate(ctx, resourceGroupName, vaultName, vault, options) @@ -77,7 +78,8 @@ func (client *VaultsClient) BeginCreateOrUpdate(ctx context.Context, resourceGro // CreateOrUpdate - Creates or updates a Recovery Services vault. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-04-01 +// +// Generated from API version 2023-01-01 func (client *VaultsClient) createOrUpdate(ctx context.Context, resourceGroupName string, vaultName string, vault Vault, options *VaultsClientBeginCreateOrUpdateOptions) (*http.Response, error) { req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, vaultName, vault, options) if err != nil { @@ -113,7 +115,7 @@ func (client *VaultsClient) createOrUpdateCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-04-01") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, vault) @@ -121,10 +123,11 @@ func (client *VaultsClient) createOrUpdateCreateRequest(ctx context.Context, res // Delete - Deletes a vault. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-04-01 -// resourceGroupName - The name of the resource group where the recovery services vault is present. -// vaultName - The name of the recovery services vault. -// options - VaultsClientDeleteOptions contains the optional parameters for the VaultsClient.Delete method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - vaultName - The name of the recovery services vault. +// - options - VaultsClientDeleteOptions contains the optional parameters for the VaultsClient.Delete method. func (client *VaultsClient) Delete(ctx context.Context, resourceGroupName string, vaultName string, options *VaultsClientDeleteOptions) (VaultsClientDeleteResponse, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, vaultName, options) if err != nil { @@ -160,7 +163,7 @@ func (client *VaultsClient) deleteCreateRequest(ctx context.Context, resourceGro return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-04-01") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -168,10 +171,11 @@ func (client *VaultsClient) deleteCreateRequest(ctx context.Context, resourceGro // Get - Get the Vault details. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-04-01 -// resourceGroupName - The name of the resource group where the recovery services vault is present. -// vaultName - The name of the recovery services vault. -// options - VaultsClientGetOptions contains the optional parameters for the VaultsClient.Get method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - vaultName - The name of the recovery services vault. +// - options - VaultsClientGetOptions contains the optional parameters for the VaultsClient.Get method. func (client *VaultsClient) Get(ctx context.Context, resourceGroupName string, vaultName string, options *VaultsClientGetOptions) (VaultsClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, vaultName, options) if err != nil { @@ -207,7 +211,7 @@ func (client *VaultsClient) getCreateRequest(ctx context.Context, resourceGroupN return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-04-01") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -223,11 +227,11 @@ func (client *VaultsClient) getHandleResponse(resp *http.Response) (VaultsClient } // NewListByResourceGroupPager - Retrieve a list of Vaults. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-04-01 -// resourceGroupName - The name of the resource group where the recovery services vault is present. -// options - VaultsClientListByResourceGroupOptions contains the optional parameters for the VaultsClient.ListByResourceGroup -// method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - options - VaultsClientListByResourceGroupOptions contains the optional parameters for the VaultsClient.NewListByResourceGroupPager +// method. func (client *VaultsClient) NewListByResourceGroupPager(resourceGroupName string, options *VaultsClientListByResourceGroupOptions) *runtime.Pager[VaultsClientListByResourceGroupResponse] { return runtime.NewPager(runtime.PagingHandler[VaultsClientListByResourceGroupResponse]{ More: func(page VaultsClientListByResourceGroupResponse) bool { @@ -272,7 +276,7 @@ func (client *VaultsClient) listByResourceGroupCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-04-01") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -288,10 +292,10 @@ func (client *VaultsClient) listByResourceGroupHandleResponse(resp *http.Respons } // NewListBySubscriptionIDPager - Fetches all the resources of the specified type in the subscription. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-04-01 -// options - VaultsClientListBySubscriptionIDOptions contains the optional parameters for the VaultsClient.ListBySubscriptionID -// method. +// +// Generated from API version 2023-01-01 +// - options - VaultsClientListBySubscriptionIDOptions contains the optional parameters for the VaultsClient.NewListBySubscriptionIDPager +// method. func (client *VaultsClient) NewListBySubscriptionIDPager(options *VaultsClientListBySubscriptionIDOptions) *runtime.Pager[VaultsClientListBySubscriptionIDResponse] { return runtime.NewPager(runtime.PagingHandler[VaultsClientListBySubscriptionIDResponse]{ More: func(page VaultsClientListBySubscriptionIDResponse) bool { @@ -332,7 +336,7 @@ func (client *VaultsClient) listBySubscriptionIDCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-04-01") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -349,11 +353,12 @@ func (client *VaultsClient) listBySubscriptionIDHandleResponse(resp *http.Respon // BeginUpdate - Updates the vault. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-04-01 -// resourceGroupName - The name of the resource group where the recovery services vault is present. -// vaultName - The name of the recovery services vault. -// vault - Recovery Services Vault to be created. -// options - VaultsClientBeginUpdateOptions contains the optional parameters for the VaultsClient.BeginUpdate method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - vaultName - The name of the recovery services vault. +// - vault - Recovery Services Vault to be created. +// - options - VaultsClientBeginUpdateOptions contains the optional parameters for the VaultsClient.BeginUpdate method. func (client *VaultsClient) BeginUpdate(ctx context.Context, resourceGroupName string, vaultName string, vault PatchVault, options *VaultsClientBeginUpdateOptions) (*runtime.Poller[VaultsClientUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.update(ctx, resourceGroupName, vaultName, vault, options) @@ -368,7 +373,8 @@ func (client *VaultsClient) BeginUpdate(ctx context.Context, resourceGroupName s // Update - Updates the vault. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-04-01 +// +// Generated from API version 2023-01-01 func (client *VaultsClient) update(ctx context.Context, resourceGroupName string, vaultName string, vault PatchVault, options *VaultsClientBeginUpdateOptions) (*http.Response, error) { req, err := client.updateCreateRequest(ctx, resourceGroupName, vaultName, vault, options) if err != nil { @@ -404,7 +410,7 @@ func (client *VaultsClient) updateCreateRequest(ctx context.Context, resourceGro return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-04-01") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, vault) diff --git a/sdk/resourcemanager/recoveryservices/armrecoveryservices/vaults_client_example_test.go b/sdk/resourcemanager/recoveryservices/armrecoveryservices/vaults_client_example_test.go index 3b62506a466b..5007d64d55f0 100644 --- a/sdk/resourcemanager/recoveryservices/armrecoveryservices/vaults_client_example_test.go +++ b/sdk/resourcemanager/recoveryservices/armrecoveryservices/vaults_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armrecoveryservices_test @@ -17,7 +18,83 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservices" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2022-04-01/examples/ListResources.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/ListBySubscriptionIds.json +func ExampleVaultsClient_NewListBySubscriptionIDPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armrecoveryservices.NewVaultsClient("77777777-b0c6-47a2-b37c-d8e65a629c18", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListBySubscriptionIDPager(nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.VaultList = armrecoveryservices.VaultList{ + // Value: []*armrecoveryservices.Vault{ + // { + // Name: to.Ptr("patchtest"), + // Type: to.Ptr("Microsoft.RecoveryServices/vaults"), + // Etag: to.Ptr("W/\"datetime'2017-11-22T11%3A05%3A19.907Z'\""), + // ID: to.Ptr("/subscriptions/77777777-b0c6-47a2-b37c-d8e65a629c18/resourceGroups/Default-RecoveryServices-ResourceGroup/providers/Microsoft.RecoveryServices/vaults/patchtest"), + // Location: to.Ptr("westus"), + // Tags: map[string]*string{ + // "Love": to.Ptr("India"), + // }, + // Properties: &armrecoveryservices.VaultProperties{ + // ProvisioningState: to.Ptr("Succeeded"), + // }, + // SKU: &armrecoveryservices.SKU{ + // Name: to.Ptr(armrecoveryservices.SKUNameStandard), + // }, + // }, + // { + // Name: to.Ptr("swaggerExample"), + // Type: to.Ptr("Microsoft.RecoveryServices/vaults"), + // Etag: to.Ptr("W/\"datetime'2017-12-15T12%3A36%3A51.68Z'\""), + // ID: to.Ptr("/subscriptions/77777777-b0c6-47a2-b37c-d8e65a629c18/resourceGroups/HelloWorld/providers/Microsoft.RecoveryServices/vaults/swaggerExample"), + // Location: to.Ptr("westus"), + // Tags: map[string]*string{ + // "TestUpdatedKey": to.Ptr("TestUpdatedValue"), + // }, + // Properties: &armrecoveryservices.VaultProperties{ + // ProvisioningState: to.Ptr("Succeeded"), + // }, + // SKU: &armrecoveryservices.SKU{ + // Name: to.Ptr(armrecoveryservices.SKUNameStandard), + // }, + // }, + // { + // Name: to.Ptr("today1"), + // Type: to.Ptr("Microsoft.RecoveryServices/vaults"), + // Etag: to.Ptr("W/\"datetime'2017-11-21T10%3A52%3A19.633Z'\""), + // ID: to.Ptr("/subscriptions/77777777-b0c6-47a2-b37c-d8e65a629c18/resourceGroups/HelloWorld/providers/Microsoft.RecoveryServices/vaults/today1"), + // Location: to.Ptr("westus"), + // Tags: map[string]*string{ + // "TestUpdatedKey": to.Ptr("TestUpdatedValue"), + // }, + // Properties: &armrecoveryservices.VaultProperties{ + // ProvisioningState: to.Ptr("Succeeded"), + // }, + // SKU: &armrecoveryservices.SKU{ + // Name: to.Ptr(armrecoveryservices.SKUNameStandard), + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/ListResources.json func ExampleVaultsClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -28,21 +105,72 @@ func ExampleVaultsClient_NewListByResourceGroupPager() { if err != nil { log.Fatalf("failed to create client: %v", err) } - pager := client.NewListByResourceGroupPager("Default-RecoveryServices-ResourceGroup", - nil) + pager := client.NewListByResourceGroupPager("Default-RecoveryServices-ResourceGroup", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.VaultList = armrecoveryservices.VaultList{ + // Value: []*armrecoveryservices.Vault{ + // { + // Name: to.Ptr("patchtest"), + // Type: to.Ptr("Microsoft.RecoveryServices/vaults"), + // Etag: to.Ptr("W/\"datetime'2017-11-22T11%3A05%3A19.907Z'\""), + // ID: to.Ptr("/subscriptions/77777777-b0c6-47a2-b37c-d8e65a629c18/resourceGroups/Default-RecoveryServices-ResourceGroup/providers/Microsoft.RecoveryServices/vaults/patchtest"), + // Location: to.Ptr("westus"), + // Tags: map[string]*string{ + // "Love": to.Ptr("India"), + // }, + // Properties: &armrecoveryservices.VaultProperties{ + // ProvisioningState: to.Ptr("Succeeded"), + // }, + // SKU: &armrecoveryservices.SKU{ + // Name: to.Ptr(armrecoveryservices.SKUNameStandard), + // }, + // }, + // { + // Name: to.Ptr("swaggerExample"), + // Type: to.Ptr("Microsoft.RecoveryServices/vaults"), + // Etag: to.Ptr("W/\"datetime'2017-12-15T12%3A36%3A51.68Z'\""), + // ID: to.Ptr("/subscriptions/77777777-b0c6-47a2-b37c-d8e65a629c18/resourceGroups/Default-RecoveryServices-ResourceGroup/providers/Microsoft.RecoveryServices/vaults/swaggerExample"), + // Location: to.Ptr("westus"), + // Tags: map[string]*string{ + // "TestUpdatedKey": to.Ptr("TestUpdatedValue"), + // }, + // Properties: &armrecoveryservices.VaultProperties{ + // ProvisioningState: to.Ptr("Succeeded"), + // }, + // SKU: &armrecoveryservices.SKU{ + // Name: to.Ptr(armrecoveryservices.SKUNameStandard), + // }, + // }, + // { + // Name: to.Ptr("today1"), + // Type: to.Ptr("Microsoft.RecoveryServices/vaults"), + // Etag: to.Ptr("W/\"datetime'2017-11-21T10%3A52%3A19.633Z'\""), + // ID: to.Ptr("/subscriptions/77777777-b0c6-47a2-b37c-d8e65a629c18/resourceGroups/Default-RecoveryServices-ResourceGroup/providers/Microsoft.RecoveryServices/vaults/today1"), + // Location: to.Ptr("westus"), + // Tags: map[string]*string{ + // "TestUpdatedKey": to.Ptr("TestUpdatedValue"), + // }, + // Properties: &armrecoveryservices.VaultProperties{ + // ProvisioningState: to.Ptr("Succeeded"), + // }, + // SKU: &armrecoveryservices.SKU{ + // Name: to.Ptr(armrecoveryservices.SKUNameStandard), + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2022-04-01/examples/GETVault.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/GETVault.json func ExampleVaultsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -53,19 +181,70 @@ func ExampleVaultsClient_Get() { if err != nil { log.Fatalf("failed to create client: %v", err) } - res, err := client.Get(ctx, - "Default-RecoveryServices-ResourceGroup", - "swaggerExample", - nil) + res, err := client.Get(ctx, "Default-RecoveryServices-ResourceGroup", "swaggerExample", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.Vault = armrecoveryservices.Vault{ + // Name: to.Ptr("swaggerExample"), + // Type: to.Ptr("Microsoft.RecoveryServices/vaults"), + // Etag: to.Ptr("W/\"datetime'2017-12-15T12%3A36%3A51.68Z'\""), + // ID: to.Ptr("/subscriptions/77777777-b0c6-47a2-b37c-d8e65a629c18/resourceGroups/Default-RecoveryServices-ResourceGroup/providers/Microsoft.RecoveryServices/vaults/swaggerExample"), + // Location: to.Ptr("westus"), + // Tags: map[string]*string{ + // "TestUpdatedKey": to.Ptr("TestUpdatedValue"), + // }, + // Identity: &armrecoveryservices.IdentityData{ + // Type: to.Ptr(armrecoveryservices.ResourceIdentityTypeSystemAssigned), + // PrincipalID: to.Ptr("3137d6c7-5d6c-411c-b934-7a2a729ee247"), + // TenantID: to.Ptr("d676e86e-2206-4a7c-999c-ece52c144b5b"), + // }, + // Properties: &armrecoveryservices.VaultProperties{ + // MonitoringSettings: &armrecoveryservices.MonitoringSettings{ + // AzureMonitorAlertSettings: &armrecoveryservices.AzureMonitorAlertSettings{ + // AlertsForAllJobFailures: to.Ptr(armrecoveryservices.AlertsStateEnabled), + // }, + // ClassicAlertSettings: &armrecoveryservices.ClassicAlertSettings{ + // AlertsForCriticalOperations: to.Ptr(armrecoveryservices.AlertsStateDisabled), + // }, + // }, + // PrivateEndpointConnections: []*armrecoveryservices.PrivateEndpointConnectionVaultProperties{ + // { + // ID: to.Ptr("/subscriptions/6c48fa17-39c7-45f1-90ac-47a587128ace/resourceGroups/Default-RecoveryServices-ResourceGroup/providers/Microsoft.RecoveryServices/Vaults/pemsi-ecy-rsv2/privateEndpointConnections/pe114-pemsi-ecy-rsv.5944358949303501042.backup.75061caa-cba4-4849-8e09-608da4914aad"), + // Properties: &armrecoveryservices.PrivateEndpointConnection{ + // GroupIDs: []*armrecoveryservices.VaultSubResourceType{ + // to.Ptr(armrecoveryservices.VaultSubResourceTypeAzureBackup)}, + // PrivateEndpoint: &armrecoveryservices.PrivateEndpoint{ + // ID: to.Ptr("/subscriptions/6c48fa17-39c7-45f1-90ac-47a587128ace/resourceGroups/Default-RecoveryServices-ResourceGroup/providers/Microsoft.Network/privateEndpoints/pe114-pemsi-ecy-rsv"), + // }, + // PrivateLinkServiceConnectionState: &armrecoveryservices.PrivateLinkServiceConnectionState{ + // Description: to.Ptr("None"), + // ActionsRequired: to.Ptr("None"), + // Status: to.Ptr(armrecoveryservices.PrivateEndpointConnectionStatusApproved), + // }, + // ProvisioningState: to.Ptr(armrecoveryservices.ProvisioningStateSucceeded), + // }, + // }}, + // PrivateEndpointStateForBackup: to.Ptr(armrecoveryservices.VaultPrivateEndpointStateEnabled), + // PrivateEndpointStateForSiteRecovery: to.Ptr(armrecoveryservices.VaultPrivateEndpointStateNone), + // ProvisioningState: to.Ptr("Succeeded"), + // PublicNetworkAccess: to.Ptr(armrecoveryservices.PublicNetworkAccessEnabled), + // RedundancySettings: &armrecoveryservices.VaultPropertiesRedundancySettings{ + // CrossRegionRestore: to.Ptr(armrecoveryservices.CrossRegionRestoreEnabled), + // StandardTierStorageRedundancy: to.Ptr(armrecoveryservices.StandardTierStorageRedundancyGeoRedundant), + // }, + // }, + // SKU: &armrecoveryservices.SKU{ + // Name: to.Ptr(armrecoveryservices.SKUNameStandard), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2022-04-01/examples/PUTVault.json -func ExampleVaultsClient_BeginCreateOrUpdate() { +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/PUTVault.json +func ExampleVaultsClient_BeginCreateOrUpdate_createOrUpdateRecoveryServicesVault() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -75,20 +254,236 @@ func ExampleVaultsClient_BeginCreateOrUpdate() { if err != nil { log.Fatalf("failed to create client: %v", err) } - poller, err := client.BeginCreateOrUpdate(ctx, - "Default-RecoveryServices-ResourceGroup", - "swaggerExample", - armrecoveryservices.Vault{ - Location: to.Ptr("West US"), - Identity: &armrecoveryservices.IdentityData{ - Type: to.Ptr(armrecoveryservices.ResourceIdentityTypeSystemAssigned), + poller, err := client.BeginCreateOrUpdate(ctx, "Default-RecoveryServices-ResourceGroup", "swaggerExample", armrecoveryservices.Vault{ + Location: to.Ptr("West US"), + Identity: &armrecoveryservices.IdentityData{ + Type: to.Ptr(armrecoveryservices.ResourceIdentityTypeSystemAssigned), + }, + Properties: &armrecoveryservices.VaultProperties{ + PublicNetworkAccess: to.Ptr(armrecoveryservices.PublicNetworkAccessEnabled), + }, + SKU: &armrecoveryservices.SKU{ + Name: to.Ptr(armrecoveryservices.SKUNameStandard), + }, + }, 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.Vault = armrecoveryservices.Vault{ + // Name: to.Ptr("swaggerExample"), + // Type: to.Ptr("Microsoft.RecoveryServices/vaults"), + // Etag: to.Ptr("W/\"datetime'2017-12-15T12%3A36%3A51.68Z'\""), + // ID: to.Ptr("/subscriptions/77777777-b0c6-47a2-b37c-d8e65a629c18/resourceGroups/Default-RecoveryServices-ResourceGroup/providers/Microsoft.RecoveryServices/vaults/swaggerExample"), + // Location: to.Ptr("westus"), + // Tags: map[string]*string{ + // "TestUpdatedKey": to.Ptr("TestUpdatedValue"), + // }, + // Identity: &armrecoveryservices.IdentityData{ + // Type: to.Ptr(armrecoveryservices.ResourceIdentityTypeSystemAssigned), + // PrincipalID: to.Ptr("3137d6c7-5d6c-411c-b934-7a2a729ee247"), + // TenantID: to.Ptr("d676e86e-2206-4a7c-999c-ece52c144b5b"), + // }, + // Properties: &armrecoveryservices.VaultProperties{ + // ProvisioningState: to.Ptr("Succeeded"), + // PublicNetworkAccess: to.Ptr(armrecoveryservices.PublicNetworkAccessEnabled), + // }, + // SKU: &armrecoveryservices.SKU{ + // Name: to.Ptr(armrecoveryservices.SKUNameRS0), + // Tier: to.Ptr("Standard"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/PUTVault_WithMonitoringSettings.json +func ExampleVaultsClient_BeginCreateOrUpdate_createOrUpdateVaultWithMonitoringSetting() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armrecoveryservices.NewVaultsClient("77777777-b0c6-47a2-b37c-d8e65a629c18", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreateOrUpdate(ctx, "Default-RecoveryServices-ResourceGroup", "swaggerExample", armrecoveryservices.Vault{ + Location: to.Ptr("West US"), + Identity: &armrecoveryservices.IdentityData{ + Type: to.Ptr(armrecoveryservices.ResourceIdentityTypeSystemAssigned), + }, + Properties: &armrecoveryservices.VaultProperties{ + MonitoringSettings: &armrecoveryservices.MonitoringSettings{ + AzureMonitorAlertSettings: &armrecoveryservices.AzureMonitorAlertSettings{ + AlertsForAllJobFailures: to.Ptr(armrecoveryservices.AlertsStateEnabled), + }, + ClassicAlertSettings: &armrecoveryservices.ClassicAlertSettings{ + AlertsForCriticalOperations: to.Ptr(armrecoveryservices.AlertsStateDisabled), + }, }, - Properties: &armrecoveryservices.VaultProperties{}, - SKU: &armrecoveryservices.SKU{ - Name: to.Ptr(armrecoveryservices.SKUNameStandard), + PublicNetworkAccess: to.Ptr(armrecoveryservices.PublicNetworkAccessEnabled), + }, + SKU: &armrecoveryservices.SKU{ + Name: to.Ptr(armrecoveryservices.SKUNameStandard), + }, + }, 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.Vault = armrecoveryservices.Vault{ + // Name: to.Ptr("swaggerExample"), + // Type: to.Ptr("Microsoft.RecoveryServices/vaults"), + // Etag: to.Ptr("W/\"datetime'2017-12-15T12%3A36%3A51.68Z'\""), + // ID: to.Ptr("/subscriptions/77777777-b0c6-47a2-b37c-d8e65a629c18/resourceGroups/Default-RecoveryServices-ResourceGroup/providers/Microsoft.RecoveryServices/vaults/swaggerExample"), + // Location: to.Ptr("westus"), + // Tags: map[string]*string{ + // "TestUpdatedKey": to.Ptr("TestUpdatedValue"), + // }, + // Identity: &armrecoveryservices.IdentityData{ + // Type: to.Ptr(armrecoveryservices.ResourceIdentityTypeSystemAssigned), + // PrincipalID: to.Ptr("3137d6c7-5d6c-411c-b934-7a2a729ee247"), + // TenantID: to.Ptr("d676e86e-2206-4a7c-999c-ece52c144b5b"), + // }, + // Properties: &armrecoveryservices.VaultProperties{ + // MonitoringSettings: &armrecoveryservices.MonitoringSettings{ + // AzureMonitorAlertSettings: &armrecoveryservices.AzureMonitorAlertSettings{ + // AlertsForAllJobFailures: to.Ptr(armrecoveryservices.AlertsStateEnabled), + // }, + // ClassicAlertSettings: &armrecoveryservices.ClassicAlertSettings{ + // AlertsForCriticalOperations: to.Ptr(armrecoveryservices.AlertsStateDisabled), + // }, + // }, + // ProvisioningState: to.Ptr("Succeeded"), + // PublicNetworkAccess: to.Ptr(armrecoveryservices.PublicNetworkAccessEnabled), + // }, + // SKU: &armrecoveryservices.SKU{ + // Name: to.Ptr(armrecoveryservices.SKUNameRS0), + // Tier: to.Ptr("Standard"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/PUTVault_WithCMK.json +func ExampleVaultsClient_BeginCreateOrUpdate_createOrUpdateVaultWithCustomerManagedKeys() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armrecoveryservices.NewVaultsClient("77777777-b0c6-47a2-b37c-d8e65a629c18", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreateOrUpdate(ctx, "Default-RecoveryServices-ResourceGroup", "swaggerExample", armrecoveryservices.Vault{ + Location: to.Ptr("West US"), + Identity: &armrecoveryservices.IdentityData{ + Type: to.Ptr(armrecoveryservices.ResourceIdentityTypeUserAssigned), + UserAssignedIdentities: map[string]*armrecoveryservices.UserIdentity{ + "/subscriptions/85bf5e8c-3084-4f42-add2-746ebb7e97b2/resourcegroups/defaultrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/examplemsi": {}, + }, + }, + Properties: &armrecoveryservices.VaultProperties{ + Encryption: &armrecoveryservices.VaultPropertiesEncryption{ + InfrastructureEncryption: to.Ptr(armrecoveryservices.InfrastructureEncryptionStateEnabled), + KekIdentity: &armrecoveryservices.CmkKekIdentity{ + UserAssignedIdentity: to.Ptr("/subscriptions/85bf5e8c-3084-4f42-add2-746ebb7e97b2/resourcegroups/defaultrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/examplemsi"), + }, + KeyVaultProperties: &armrecoveryservices.CmkKeyVaultProperties{ + KeyURI: to.Ptr("https://cmk2xkv.vault.azure.net/keys/Key1/0767b348bb1a4c07baa6c4ec0055d2b3"), + }, + }, + PublicNetworkAccess: to.Ptr(armrecoveryservices.PublicNetworkAccessEnabled), + }, + SKU: &armrecoveryservices.SKU{ + Name: to.Ptr(armrecoveryservices.SKUNameStandard), + }, + }, 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.Vault = armrecoveryservices.Vault{ + // Name: to.Ptr("swaggerExample"), + // Type: to.Ptr("Microsoft.RecoveryServices/vaults"), + // Etag: to.Ptr("W/\"datetime'2017-12-15T12%3A36%3A51.68Z'\""), + // ID: to.Ptr("/subscriptions/77777777-b0c6-47a2-b37c-d8e65a629c18/resourceGroups/Default-RecoveryServices-ResourceGroup/providers/Microsoft.RecoveryServices/vaults/swaggerExample"), + // Location: to.Ptr("westus"), + // Tags: map[string]*string{ + // "TestUpdatedKey": to.Ptr("TestUpdatedValue"), + // }, + // Identity: &armrecoveryservices.IdentityData{ + // Type: to.Ptr(armrecoveryservices.ResourceIdentityTypeUserAssigned), + // UserAssignedIdentities: map[string]*armrecoveryservices.UserIdentity{ + // "/subscriptions/85bf5e8c-3084-4f42-add2-746ebb7e97b2/resourcegroups/defaultrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/examplemsi": &armrecoveryservices.UserIdentity{ + // ClientID: to.Ptr("fbe75b66-01c5-4f87-a220-233af3270436"), + // PrincipalID: to.Ptr("075a0ca6-43f6-4434-9abf-c9b1b79f9219"), + // }, + // }, + // }, + // Properties: &armrecoveryservices.VaultProperties{ + // Encryption: &armrecoveryservices.VaultPropertiesEncryption{ + // InfrastructureEncryption: to.Ptr(armrecoveryservices.InfrastructureEncryptionStateEnabled), + // KekIdentity: &armrecoveryservices.CmkKekIdentity{ + // UseSystemAssignedIdentity: to.Ptr(false), + // UserAssignedIdentity: to.Ptr("/subscriptions/85bf5e8c-3084-4f42-add2-746ebb7e97b2/resourcegroups/defaultrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/examplemsi"), + // }, + // KeyVaultProperties: &armrecoveryservices.CmkKeyVaultProperties{ + // KeyURI: to.Ptr("https://cmk2xkv.vault.azure.net/keys/Key1/0767b348bb1a4c07baa6c4ec0055d2b3"), + // }, + // }, + // ProvisioningState: to.Ptr("Succeeded"), + // PublicNetworkAccess: to.Ptr(armrecoveryservices.PublicNetworkAccessEnabled), + // }, + // SKU: &armrecoveryservices.SKU{ + // Name: to.Ptr(armrecoveryservices.SKUNameStandard), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/PUTVault_WithUserAssignedIdentity.json +func ExampleVaultsClient_BeginCreateOrUpdate_createOrUpdateVaultWithUserAssignedIdentity() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armrecoveryservices.NewVaultsClient("77777777-b0c6-47a2-b37c-d8e65a629c18", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreateOrUpdate(ctx, "Default-RecoveryServices-ResourceGroup", "swaggerExample", armrecoveryservices.Vault{ + Location: to.Ptr("West US"), + Identity: &armrecoveryservices.IdentityData{ + Type: to.Ptr(armrecoveryservices.ResourceIdentityTypeUserAssigned), + UserAssignedIdentities: map[string]*armrecoveryservices.UserIdentity{ + "/subscriptions/85bf5e8c-3084-4f42-add2-746ebb7e97b2/resourcegroups/defaultrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/examplemsi": {}, }, }, - nil) + Properties: &armrecoveryservices.VaultProperties{ + PublicNetworkAccess: to.Ptr(armrecoveryservices.PublicNetworkAccessEnabled), + }, + SKU: &armrecoveryservices.SKU{ + Name: to.Ptr(armrecoveryservices.SKUNameStandard), + }, + }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } @@ -96,11 +491,38 @@ func ExampleVaultsClient_BeginCreateOrUpdate() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.Vault = armrecoveryservices.Vault{ + // Name: to.Ptr("swaggerExample"), + // Type: to.Ptr("Microsoft.RecoveryServices/vaults"), + // Etag: to.Ptr("W/\"datetime'2017-12-15T12%3A36%3A51.68Z'\""), + // ID: to.Ptr("/subscriptions/77777777-b0c6-47a2-b37c-d8e65a629c18/resourceGroups/Default-RecoveryServices-ResourceGroup/providers/Microsoft.RecoveryServices/vaults/swaggerExample"), + // Location: to.Ptr("westus"), + // Tags: map[string]*string{ + // "TestUpdatedKey": to.Ptr("TestUpdatedValue"), + // }, + // Identity: &armrecoveryservices.IdentityData{ + // Type: to.Ptr(armrecoveryservices.ResourceIdentityTypeUserAssigned), + // UserAssignedIdentities: map[string]*armrecoveryservices.UserIdentity{ + // "/subscriptions/85bf5e8c-3084-4f42-add2-746ebb7e97b2/resourcegroups/defaultrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/examplemsi": &armrecoveryservices.UserIdentity{ + // ClientID: to.Ptr("fbe75b66-01c5-4f87-a220-233af3270436"), + // PrincipalID: to.Ptr("075a0ca6-43f6-4434-9abf-c9b1b79f9219"), + // }, + // }, + // }, + // Properties: &armrecoveryservices.VaultProperties{ + // ProvisioningState: to.Ptr("Succeeded"), + // PublicNetworkAccess: to.Ptr(armrecoveryservices.PublicNetworkAccessEnabled), + // }, + // SKU: &armrecoveryservices.SKU{ + // Name: to.Ptr(armrecoveryservices.SKUNameStandard), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2022-04-01/examples/DeleteVault.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/DeleteVault.json func ExampleVaultsClient_Delete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -111,17 +533,59 @@ func ExampleVaultsClient_Delete() { if err != nil { log.Fatalf("failed to create client: %v", err) } - _, err = client.Delete(ctx, - "Default-RecoveryServices-ResourceGroup", - "swaggerExample", - nil) + _, err = client.Delete(ctx, "Default-RecoveryServices-ResourceGroup", "swaggerExample", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/PATCHVault.json +func ExampleVaultsClient_BeginUpdate_updateResource() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armrecoveryservices.NewVaultsClient("77777777-b0c6-47a2-b37c-d8e65a629c18", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginUpdate(ctx, "HelloWorld", "swaggerExample", armrecoveryservices.PatchVault{ + Tags: map[string]*string{ + "PatchKey": to.Ptr("PatchKeyUpdated"), + }, + }, 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.Vault = armrecoveryservices.Vault{ + // Name: to.Ptr("swaggerExample"), + // Type: to.Ptr("Microsoft.RecoveryServices/vaults"), + // Etag: to.Ptr("W/\"datetime'2017-12-15T12%3A36%3A51.68Z'\""), + // ID: to.Ptr("/subscriptions/77777777-b0c6-47a2-b37c-d8e65a629c18/resourceGroups/HelloWorld/providers/Microsoft.RecoveryServices/vaults/swaggerExample"), + // Location: to.Ptr("westus"), + // Tags: map[string]*string{ + // "PatchKey": to.Ptr("PatchKeyUpdated"), + // }, + // Properties: &armrecoveryservices.VaultProperties{ + // ProvisioningState: to.Ptr("Succeeded"), + // PublicNetworkAccess: to.Ptr(armrecoveryservices.PublicNetworkAccessEnabled), + // }, + // SKU: &armrecoveryservices.SKU{ + // Name: to.Ptr(armrecoveryservices.SKUNameStandard), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2022-04-01/examples/PATCHVault.json -func ExampleVaultsClient_BeginUpdate() { +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/PATCHVault_WithCMK.json +func ExampleVaultsClient_BeginUpdate_updateResourceWithCustomerManagedKeys() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -131,15 +595,312 @@ func ExampleVaultsClient_BeginUpdate() { if err != nil { log.Fatalf("failed to create client: %v", err) } - poller, err := client.BeginUpdate(ctx, - "HelloWorld", - "swaggerExample", - armrecoveryservices.PatchVault{ - Tags: map[string]*string{ - "PatchKey": to.Ptr("PatchKeyUpdated"), + poller, err := client.BeginUpdate(ctx, "HelloWorld", "swaggerExample", armrecoveryservices.PatchVault{ + Tags: map[string]*string{ + "PatchKey": to.Ptr("PatchKeyUpdated"), + }, + Identity: &armrecoveryservices.IdentityData{ + Type: to.Ptr(armrecoveryservices.ResourceIdentityTypeUserAssigned), + UserAssignedIdentities: map[string]*armrecoveryservices.UserIdentity{ + "/subscriptions/85bf5e8c-3084-4f42-add2-746ebb7e97b2/resourcegroups/defaultrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/examplemsi": {}, + }, + }, + Properties: &armrecoveryservices.VaultProperties{ + Encryption: &armrecoveryservices.VaultPropertiesEncryption{ + InfrastructureEncryption: to.Ptr(armrecoveryservices.InfrastructureEncryptionStateEnabled), + KekIdentity: &armrecoveryservices.CmkKekIdentity{ + UserAssignedIdentity: to.Ptr("/subscriptions/85bf5e8c-3084-4f42-add2-746ebb7e97b2/resourcegroups/defaultrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/examplemsi"), + }, + KeyVaultProperties: &armrecoveryservices.CmkKeyVaultProperties{ + KeyURI: to.Ptr("https://cmk2xkv.vault.azure.net/keys/Key1/0767b348bb1a4c07baa6c4ec0055d2b3"), + }, + }, + }, + }, 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.Vault = armrecoveryservices.Vault{ + // Name: to.Ptr("swaggerExample"), + // Type: to.Ptr("Microsoft.RecoveryServices/vaults"), + // Etag: to.Ptr("W/\"datetime'2017-12-15T12%3A36%3A51.68Z'\""), + // ID: to.Ptr("/subscriptions/77777777-b0c6-47a2-b37c-d8e65a629c18/resourceGroups/HelloWorld/providers/Microsoft.RecoveryServices/vaults/swaggerExample"), + // Location: to.Ptr("westus"), + // Tags: map[string]*string{ + // "PatchKey": to.Ptr("PatchKeyUpdated"), + // }, + // Identity: &armrecoveryservices.IdentityData{ + // Type: to.Ptr(armrecoveryservices.ResourceIdentityTypeUserAssigned), + // UserAssignedIdentities: map[string]*armrecoveryservices.UserIdentity{ + // "/subscriptions/85bf5e8c-3084-4f42-add2-746ebb7e97b2/resourcegroups/defaultrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/examplemsi": &armrecoveryservices.UserIdentity{ + // ClientID: to.Ptr("fbe75b66-01c5-4f87-a220-233af3270436"), + // PrincipalID: to.Ptr("075a0ca6-43f6-4434-9abf-c9b1b79f9219"), + // }, + // }, + // }, + // Properties: &armrecoveryservices.VaultProperties{ + // Encryption: &armrecoveryservices.VaultPropertiesEncryption{ + // InfrastructureEncryption: to.Ptr(armrecoveryservices.InfrastructureEncryptionStateEnabled), + // KekIdentity: &armrecoveryservices.CmkKekIdentity{ + // UseSystemAssignedIdentity: to.Ptr(false), + // UserAssignedIdentity: to.Ptr("/subscriptions/85bf5e8c-3084-4f42-add2-746ebb7e97b2/resourcegroups/defaultrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/examplemsi"), + // }, + // KeyVaultProperties: &armrecoveryservices.CmkKeyVaultProperties{ + // KeyURI: to.Ptr("https://cmk2xkv.vault.azure.net/keys/Key1/0767b348bb1a4c07baa6c4ec0055d2b3"), + // }, + // }, + // ProvisioningState: to.Ptr("Succeeded"), + // PublicNetworkAccess: to.Ptr(armrecoveryservices.PublicNetworkAccessEnabled), + // }, + // SKU: &armrecoveryservices.SKU{ + // Name: to.Ptr(armrecoveryservices.SKUNameStandard), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/PatchVault_WithCMK2.json +func ExampleVaultsClient_BeginUpdate_updateResourceWithCustomerManagedKeys2() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armrecoveryservices.NewVaultsClient("77777777-b0c6-47a2-b37c-d8e65a629c18", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginUpdate(ctx, "HelloWorld", "swaggerExample", armrecoveryservices.PatchVault{ + Tags: map[string]*string{ + "PatchKey": to.Ptr("PatchKeyUpdated"), + }, + Identity: &armrecoveryservices.IdentityData{ + Type: to.Ptr(armrecoveryservices.ResourceIdentityTypeSystemAssigned), + }, + Properties: &armrecoveryservices.VaultProperties{ + Encryption: &armrecoveryservices.VaultPropertiesEncryption{ + KekIdentity: &armrecoveryservices.CmkKekIdentity{ + UseSystemAssignedIdentity: to.Ptr(true), + }, + }, + }, + }, 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.Vault = armrecoveryservices.Vault{ + // Name: to.Ptr("swaggerExample"), + // Type: to.Ptr("Microsoft.RecoveryServices/vaults"), + // Etag: to.Ptr("W/\"datetime'2017-12-15T12%3A36%3A51.68Z'\""), + // ID: to.Ptr("/subscriptions/77777777-b0c6-47a2-b37c-d8e65a629c18/resourceGroups/HelloWorld/providers/Microsoft.RecoveryServices/vaults/swaggerExample"), + // Location: to.Ptr("westus"), + // Tags: map[string]*string{ + // "PatchKey": to.Ptr("PatchKeyUpdated"), + // }, + // Identity: &armrecoveryservices.IdentityData{ + // Type: to.Ptr(armrecoveryservices.ResourceIdentityTypeUserAssigned), + // UserAssignedIdentities: map[string]*armrecoveryservices.UserIdentity{ + // "/subscriptions/85bf5e8c-3084-4f42-add2-746ebb7e97b2/resourcegroups/defaultrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/examplemsi": &armrecoveryservices.UserIdentity{ + // ClientID: to.Ptr("fbe75b66-01c5-4f87-a220-233af3270436"), + // PrincipalID: to.Ptr("075a0ca6-43f6-4434-9abf-c9b1b79f9219"), + // }, + // }, + // }, + // Properties: &armrecoveryservices.VaultProperties{ + // Encryption: &armrecoveryservices.VaultPropertiesEncryption{ + // InfrastructureEncryption: to.Ptr(armrecoveryservices.InfrastructureEncryptionStateEnabled), + // KekIdentity: &armrecoveryservices.CmkKekIdentity{ + // UseSystemAssignedIdentity: to.Ptr(true), + // }, + // KeyVaultProperties: &armrecoveryservices.CmkKeyVaultProperties{ + // KeyURI: to.Ptr("https://cmk2xkv.vault.azure.net/keys/Key1/0767b348bb1a4c07baa6c4ec0055d2b3"), + // }, + // }, + // ProvisioningState: to.Ptr("Succeeded"), + // PublicNetworkAccess: to.Ptr(armrecoveryservices.PublicNetworkAccessEnabled), + // }, + // SKU: &armrecoveryservices.SKU{ + // Name: to.Ptr(armrecoveryservices.SKUNameStandard), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/PATCHVault_WithCMK3.json +func ExampleVaultsClient_BeginUpdate_updateResourceWithCustomerManagedKeys3() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armrecoveryservices.NewVaultsClient("77777777-b0c6-47a2-b37c-d8e65a629c18", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginUpdate(ctx, "HelloWorld", "swaggerExample", armrecoveryservices.PatchVault{ + Tags: map[string]*string{ + "PatchKey": to.Ptr("PatchKeyUpdated"), + }, + Identity: &armrecoveryservices.IdentityData{ + Type: to.Ptr(armrecoveryservices.ResourceIdentityTypeUserAssigned), + UserAssignedIdentities: map[string]*armrecoveryservices.UserIdentity{ + "/subscriptions/85bf5e8c-3084-4f42-add2-746ebb7e97b2/resourcegroups/defaultrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/examplemsi": {}, + }, + }, + Properties: &armrecoveryservices.VaultProperties{ + Encryption: &armrecoveryservices.VaultPropertiesEncryption{ + KeyVaultProperties: &armrecoveryservices.CmkKeyVaultProperties{ + KeyURI: to.Ptr("https://cmk2xkv.vault.azure.net/keys/Key1/0767b348bb1a4c07baa6c4ec0055d2b3"), + }, + }, + }, + }, 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.Vault = armrecoveryservices.Vault{ + // Name: to.Ptr("swaggerExample"), + // Type: to.Ptr("Microsoft.RecoveryServices/vaults"), + // Etag: to.Ptr("W/\"datetime'2017-12-15T12%3A36%3A51.68Z'\""), + // ID: to.Ptr("/subscriptions/77777777-b0c6-47a2-b37c-d8e65a629c18/resourceGroups/HelloWorld/providers/Microsoft.RecoveryServices/vaults/swaggerExample"), + // Location: to.Ptr("westus"), + // Tags: map[string]*string{ + // "PatchKey": to.Ptr("PatchKeyUpdated"), + // }, + // Identity: &armrecoveryservices.IdentityData{ + // Type: to.Ptr(armrecoveryservices.ResourceIdentityTypeUserAssigned), + // UserAssignedIdentities: map[string]*armrecoveryservices.UserIdentity{ + // "/subscriptions/85bf5e8c-3084-4f42-add2-746ebb7e97b2/resourcegroups/defaultrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/examplemsi": &armrecoveryservices.UserIdentity{ + // ClientID: to.Ptr("fbe75b66-01c5-4f87-a220-233af3270436"), + // PrincipalID: to.Ptr("075a0ca6-43f6-4434-9abf-c9b1b79f9219"), + // }, + // }, + // }, + // Properties: &armrecoveryservices.VaultProperties{ + // Encryption: &armrecoveryservices.VaultPropertiesEncryption{ + // InfrastructureEncryption: to.Ptr(armrecoveryservices.InfrastructureEncryptionStateEnabled), + // KekIdentity: &armrecoveryservices.CmkKekIdentity{ + // UseSystemAssignedIdentity: to.Ptr(false), + // UserAssignedIdentity: to.Ptr("/subscriptions/85bf5e8c-3084-4f42-add2-746ebb7e97b2/resourcegroups/defaultrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/examplemsi"), + // }, + // KeyVaultProperties: &armrecoveryservices.CmkKeyVaultProperties{ + // KeyURI: to.Ptr("https://cmk2xkv.vault.azure.net/keys/Key1/0767b348bb1a4c07baa6c4ec0055d2b3"), + // }, + // }, + // ProvisioningState: to.Ptr("Succeeded"), + // PublicNetworkAccess: to.Ptr(armrecoveryservices.PublicNetworkAccessEnabled), + // }, + // SKU: &armrecoveryservices.SKU{ + // Name: to.Ptr(armrecoveryservices.SKUNameStandard), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/PATCHVault_WithUserAssignedIdentity.json +func ExampleVaultsClient_BeginUpdate_updateResourceWithUserAssignedIdentity() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armrecoveryservices.NewVaultsClient("77777777-b0c6-47a2-b37c-d8e65a629c18", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginUpdate(ctx, "HelloWorld", "swaggerExample", armrecoveryservices.PatchVault{ + Tags: map[string]*string{ + "PatchKey": to.Ptr("PatchKeyUpdated"), + }, + Identity: &armrecoveryservices.IdentityData{ + Type: to.Ptr(armrecoveryservices.ResourceIdentityTypeUserAssigned), + UserAssignedIdentities: map[string]*armrecoveryservices.UserIdentity{ + "/subscriptions/85bf5e8c-3084-4f42-add2-746ebb7e97b2/resourcegroups/defaultrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/examplemsi": {}, + }, + }, + }, 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.Vault = armrecoveryservices.Vault{ + // Name: to.Ptr("swaggerExample"), + // Type: to.Ptr("Microsoft.RecoveryServices/vaults"), + // Etag: to.Ptr("W/\"datetime'2017-12-15T12%3A36%3A51.68Z'\""), + // ID: to.Ptr("/subscriptions/77777777-b0c6-47a2-b37c-d8e65a629c18/resourceGroups/HelloWorld/providers/Microsoft.RecoveryServices/vaults/swaggerExample"), + // Location: to.Ptr("westus"), + // Tags: map[string]*string{ + // "PatchKey": to.Ptr("PatchKeyUpdated"), + // }, + // Identity: &armrecoveryservices.IdentityData{ + // Type: to.Ptr(armrecoveryservices.ResourceIdentityTypeUserAssigned), + // UserAssignedIdentities: map[string]*armrecoveryservices.UserIdentity{ + // "/subscriptions/85bf5e8c-3084-4f42-add2-746ebb7e97b2/resourcegroups/defaultrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/examplemsi": &armrecoveryservices.UserIdentity{ + // ClientID: to.Ptr("fbe75b66-01c5-4f87-a220-233af3270436"), + // PrincipalID: to.Ptr("075a0ca6-43f6-4434-9abf-c9b1b79f9219"), + // }, + // }, + // }, + // Properties: &armrecoveryservices.VaultProperties{ + // ProvisioningState: to.Ptr("Succeeded"), + // PublicNetworkAccess: to.Ptr(armrecoveryservices.PublicNetworkAccessEnabled), + // }, + // SKU: &armrecoveryservices.SKU{ + // Name: to.Ptr(armrecoveryservices.SKUNameStandard), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/630ec444f8dd7c09b9cdd5fa99951f8a0d1ad41f/specification/recoveryservices/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/examples/PATCHVault_WithMonitoringSettings.json +func ExampleVaultsClient_BeginUpdate_updateVaultWithMonitoringSetting() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armrecoveryservices.NewVaultsClient("77777777-b0c6-47a2-b37c-d8e65a629c18", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginUpdate(ctx, "HelloWorld", "swaggerExample", armrecoveryservices.PatchVault{ + Tags: map[string]*string{ + "PatchKey": to.Ptr("PatchKeyUpdated"), + }, + Properties: &armrecoveryservices.VaultProperties{ + MonitoringSettings: &armrecoveryservices.MonitoringSettings{ + AzureMonitorAlertSettings: &armrecoveryservices.AzureMonitorAlertSettings{ + AlertsForAllJobFailures: to.Ptr(armrecoveryservices.AlertsStateEnabled), + }, + ClassicAlertSettings: &armrecoveryservices.ClassicAlertSettings{ + AlertsForCriticalOperations: to.Ptr(armrecoveryservices.AlertsStateDisabled), + }, }, }, - nil) + }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } @@ -147,6 +908,32 @@ func ExampleVaultsClient_BeginUpdate() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.Vault = armrecoveryservices.Vault{ + // Name: to.Ptr("swaggerExample"), + // Type: to.Ptr("Microsoft.RecoveryServices/vaults"), + // Etag: to.Ptr("W/\"datetime'2017-12-15T12%3A36%3A51.68Z'\""), + // ID: to.Ptr("/subscriptions/77777777-b0c6-47a2-b37c-d8e65a629c18/resourceGroups/HelloWorld/providers/Microsoft.RecoveryServices/vaults/swaggerExample"), + // Location: to.Ptr("westus"), + // Tags: map[string]*string{ + // "PatchKey": to.Ptr("PatchKeyUpdated"), + // }, + // Properties: &armrecoveryservices.VaultProperties{ + // MonitoringSettings: &armrecoveryservices.MonitoringSettings{ + // AzureMonitorAlertSettings: &armrecoveryservices.AzureMonitorAlertSettings{ + // AlertsForAllJobFailures: to.Ptr(armrecoveryservices.AlertsStateEnabled), + // }, + // ClassicAlertSettings: &armrecoveryservices.ClassicAlertSettings{ + // AlertsForCriticalOperations: to.Ptr(armrecoveryservices.AlertsStateDisabled), + // }, + // }, + // ProvisioningState: to.Ptr("Succeeded"), + // PublicNetworkAccess: to.Ptr(armrecoveryservices.PublicNetworkAccessEnabled), + // }, + // SKU: &armrecoveryservices.SKU{ + // Name: to.Ptr(armrecoveryservices.SKUNameStandard), + // }, + // } } From a2d8b023e28f262e20d7e6ae8539cdbd75c0ddb0 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Thu, 23 Feb 2023 21:19:39 -0500 Subject: [PATCH 051/107] [Release] sdk/resourcemanager/servicebus/armservicebus/2.0.0-beta.2 generation from spec commit: 5e24fa8e30bff0cb321494a0b550b1c1282a8a3c (#19934) Co-authored-by: ReleaseHelper --- .../servicebus/armservicebus/CHANGELOG.md | 11 + .../servicebus/armservicebus/autorest.md | 6 +- ...zz_generated_constants.go => constants.go} | 57 +- ...t.go => disasterrecoveryconfigs_client.go} | 165 +- ...sterrecoveryconfigs_client_example_test.go | 328 ++ .../disasterrecoveryconfigs_live_test.go | 176 - .../servicebus/armservicebus/go.mod | 14 +- .../servicebus/armservicebus/go.sum | 32 +- ...s_client.go => migrationconfigs_client.go} | 96 +- .../migrationconfigs_client_example_test.go | 181 ++ .../migrationconfigs_live_test.go | 143 - .../{zz_generated_models.go => models.go} | 49 +- .../servicebus/armservicebus/models_serde.go | 2880 +++++++++++++++++ ...espaces_client.go => namespaces_client.go} | 229 +- .../namespaces_client_example_test.go | 1670 ++++++++++ .../armservicebus/namespaces_live_test.go | 198 -- ...rations_client.go => operations_client.go} | 13 +- .../operations_client_example_test.go | 334 ++ ...o => privateendpointconnections_client.go} | 75 +- ...endpointconnections_client_example_test.go | 164 + ...ient.go => privatelinkresources_client.go} | 22 +- ...rivatelinkresources_client_example_test.go | 53 + ...ated_queues_client.go => queues_client.go} | 164 +- .../queues_client_example_test.go | 359 ++ .../armservicebus/queues_live_test.go | 176 - ...ed_response_types.go => response_types.go} | 39 +- ...erated_rules_client.go => rules_client.go} | 80 +- .../rules_client_example_test.go | 233 ++ ...ions_client.go => subscriptions_client.go} | 74 +- .../subscriptions_client_example_test.go | 197 ++ ...erated_time_rfc3339.go => time_rfc3339.go} | 3 +- ...ated_topics_client.go => topics_client.go} | 164 +- .../topics_client_example_test.go | 356 ++ .../armservicebus/topics_live_test.go | 249 -- ...ple_disasterrecoveryconfigs_client_test.go | 259 -- ...ed_example_migrationconfigs_client_test.go | 163 - ...enerated_example_namespaces_client_test.go | 466 --- ...enerated_example_operations_client_test.go | 41 - ..._privateendpointconnections_client_test.go | 127 - ...xample_privatelinkresources_client_test.go | 39 - ...ze_generated_example_queues_client_test.go | 273 -- .../ze_generated_example_rules_client_test.go | 131 - ...rated_example_subscriptions_client_test.go | 122 - ...ze_generated_example_topics_client_test.go | 273 -- .../zz_generated_models_serde.go | 626 ---- 45 files changed, 7427 insertions(+), 4083 deletions(-) rename sdk/resourcemanager/servicebus/armservicebus/{zz_generated_constants.go => constants.go} (96%) rename sdk/resourcemanager/servicebus/armservicebus/{zz_generated_disasterrecoveryconfigs_client.go => disasterrecoveryconfigs_client.go} (86%) create mode 100644 sdk/resourcemanager/servicebus/armservicebus/disasterrecoveryconfigs_client_example_test.go delete mode 100644 sdk/resourcemanager/servicebus/armservicebus/disasterrecoveryconfigs_live_test.go rename sdk/resourcemanager/servicebus/armservicebus/{zz_generated_migrationconfigs_client.go => migrationconfigs_client.go} (85%) create mode 100644 sdk/resourcemanager/servicebus/armservicebus/migrationconfigs_client_example_test.go delete mode 100644 sdk/resourcemanager/servicebus/armservicebus/migrationconfigs_live_test.go rename sdk/resourcemanager/servicebus/armservicebus/{zz_generated_models.go => models.go} (97%) create mode 100644 sdk/resourcemanager/servicebus/armservicebus/models_serde.go rename sdk/resourcemanager/servicebus/armservicebus/{zz_generated_namespaces_client.go => namespaces_client.go} (87%) create mode 100644 sdk/resourcemanager/servicebus/armservicebus/namespaces_client_example_test.go delete mode 100644 sdk/resourcemanager/servicebus/armservicebus/namespaces_live_test.go rename sdk/resourcemanager/servicebus/armservicebus/{zz_generated_operations_client.go => operations_client.go} (89%) create mode 100644 sdk/resourcemanager/servicebus/armservicebus/operations_client_example_test.go rename sdk/resourcemanager/servicebus/armservicebus/{zz_generated_privateendpointconnections_client.go => privateendpointconnections_client.go} (86%) create mode 100644 sdk/resourcemanager/servicebus/armservicebus/privateendpointconnections_client_example_test.go rename sdk/resourcemanager/servicebus/armservicebus/{zz_generated_privatelinkresources_client.go => privatelinkresources_client.go} (85%) create mode 100644 sdk/resourcemanager/servicebus/armservicebus/privatelinkresources_client_example_test.go rename sdk/resourcemanager/servicebus/armservicebus/{zz_generated_queues_client.go => queues_client.go} (86%) create mode 100644 sdk/resourcemanager/servicebus/armservicebus/queues_client_example_test.go delete mode 100644 sdk/resourcemanager/servicebus/armservicebus/queues_live_test.go rename sdk/resourcemanager/servicebus/armservicebus/{zz_generated_response_types.go => response_types.go} (91%) rename sdk/resourcemanager/servicebus/armservicebus/{zz_generated_rules_client.go => rules_client.go} (86%) create mode 100644 sdk/resourcemanager/servicebus/armservicebus/rules_client_example_test.go rename sdk/resourcemanager/servicebus/armservicebus/{zz_generated_subscriptions_client.go => subscriptions_client.go} (86%) create mode 100644 sdk/resourcemanager/servicebus/armservicebus/subscriptions_client_example_test.go rename sdk/resourcemanager/servicebus/armservicebus/{zz_generated_time_rfc3339.go => time_rfc3339.go} (96%) rename sdk/resourcemanager/servicebus/armservicebus/{zz_generated_topics_client.go => topics_client.go} (86%) create mode 100644 sdk/resourcemanager/servicebus/armservicebus/topics_client_example_test.go delete mode 100644 sdk/resourcemanager/servicebus/armservicebus/topics_live_test.go delete mode 100644 sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_disasterrecoveryconfigs_client_test.go delete mode 100644 sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_migrationconfigs_client_test.go delete mode 100644 sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_namespaces_client_test.go delete mode 100644 sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_operations_client_test.go delete mode 100644 sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_privateendpointconnections_client_test.go delete mode 100644 sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_privatelinkresources_client_test.go delete mode 100644 sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_queues_client_test.go delete mode 100644 sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_rules_client_test.go delete mode 100644 sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_subscriptions_client_test.go delete mode 100644 sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_topics_client_test.go delete mode 100644 sdk/resourcemanager/servicebus/armservicebus/zz_generated_models_serde.go diff --git a/sdk/resourcemanager/servicebus/armservicebus/CHANGELOG.md b/sdk/resourcemanager/servicebus/armservicebus/CHANGELOG.md index 374382f5caab..6db432090ffb 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/CHANGELOG.md +++ b/sdk/resourcemanager/servicebus/armservicebus/CHANGELOG.md @@ -1,5 +1,16 @@ # Release History +## 2.0.0-beta.2 (2023-02-24) +### Breaking Changes + +- Type of `Encryption.KeySource` has been changed from `*KeySource` to `*string` +- Type alias `KeySource` has been removed + +### Features Added + +- New field `PremiumMessagingPartitions` in struct `SBNamespaceProperties` + + ## 2.0.0-beta.1 (2022-05-24) ### Breaking Changes diff --git a/sdk/resourcemanager/servicebus/armservicebus/autorest.md b/sdk/resourcemanager/servicebus/armservicebus/autorest.md index 89b40de7dbd6..bb699aa9a8d2 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/autorest.md +++ b/sdk/resourcemanager/servicebus/armservicebus/autorest.md @@ -5,8 +5,8 @@ ``` yaml azure-arm: true require: -- https://github.com/Azure/azure-rest-api-specs/blob/792db17291c758b2bfdbbc0d35d0e2f5b5a1bd05/specification/servicebus/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/792db17291c758b2bfdbbc0d35d0e2f5b5a1bd05/specification/servicebus/resource-manager/readme.go.md +- https://github.com/Azure/azure-rest-api-specs/blob/5e24fa8e30bff0cb321494a0b550b1c1282a8a3c/specification/servicebus/resource-manager/readme.md +- https://github.com/Azure/azure-rest-api-specs/blob/5e24fa8e30bff0cb321494a0b550b1c1282a8a3c/specification/servicebus/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 2.0.0-beta.1 +module-version: 2.0.0-beta.2 ``` \ No newline at end of file diff --git a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_constants.go b/sdk/resourcemanager/servicebus/armservicebus/constants.go similarity index 96% rename from sdk/resourcemanager/servicebus/armservicebus/zz_generated_constants.go rename to sdk/resourcemanager/servicebus/armservicebus/constants.go index 37c14db45b59..055158a29913 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_constants.go +++ b/sdk/resourcemanager/servicebus/armservicebus/constants.go @@ -5,28 +5,29 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armservicebus const ( moduleName = "armservicebus" - moduleVersion = "v2.0.0-beta.1" + moduleVersion = "v2.0.0-beta.2" ) type AccessRights string const ( - AccessRightsListen AccessRights = "Listen" AccessRightsManage AccessRights = "Manage" AccessRightsSend AccessRights = "Send" + AccessRightsListen AccessRights = "Listen" ) // PossibleAccessRightsValues returns the possible values for the AccessRights const type. func PossibleAccessRightsValues() []AccessRights { return []AccessRights{ - AccessRightsListen, AccessRightsManage, AccessRightsSend, + AccessRightsListen, } } @@ -124,29 +125,15 @@ func PossibleEntityStatusValues() []EntityStatus { type FilterType string const ( - FilterTypeCorrelationFilter FilterType = "CorrelationFilter" FilterTypeSQLFilter FilterType = "SqlFilter" + FilterTypeCorrelationFilter FilterType = "CorrelationFilter" ) // PossibleFilterTypeValues returns the possible values for the FilterType const type. func PossibleFilterTypeValues() []FilterType { return []FilterType{ - FilterTypeCorrelationFilter, FilterTypeSQLFilter, - } -} - -// KeySource - Enumerates the possible value of keySource for Encryption -type KeySource string - -const ( - KeySourceMicrosoftKeyVault KeySource = "Microsoft.KeyVault" -) - -// PossibleKeySourceValues returns the possible values for the KeySource const type. -func PossibleKeySourceValues() []KeySource { - return []KeySource{ - KeySourceMicrosoftKeyVault, + FilterTypeCorrelationFilter, } } @@ -170,19 +157,19 @@ func PossibleKeyTypeValues() []KeyType { type ManagedServiceIdentityType string const ( - ManagedServiceIdentityTypeNone ManagedServiceIdentityType = "None" ManagedServiceIdentityTypeSystemAssigned ManagedServiceIdentityType = "SystemAssigned" - ManagedServiceIdentityTypeSystemAssignedUserAssigned ManagedServiceIdentityType = "SystemAssigned, UserAssigned" ManagedServiceIdentityTypeUserAssigned ManagedServiceIdentityType = "UserAssigned" + ManagedServiceIdentityTypeSystemAssignedUserAssigned ManagedServiceIdentityType = "SystemAssigned, UserAssigned" + ManagedServiceIdentityTypeNone ManagedServiceIdentityType = "None" ) // PossibleManagedServiceIdentityTypeValues returns the possible values for the ManagedServiceIdentityType const type. func PossibleManagedServiceIdentityTypeValues() []ManagedServiceIdentityType { return []ManagedServiceIdentityType{ - ManagedServiceIdentityTypeNone, ManagedServiceIdentityTypeSystemAssigned, - ManagedServiceIdentityTypeSystemAssignedUserAssigned, ManagedServiceIdentityTypeUserAssigned, + ManagedServiceIdentityTypeSystemAssignedUserAssigned, + ManagedServiceIdentityTypeNone, } } @@ -239,16 +226,16 @@ type ProvisioningStateDR string const ( ProvisioningStateDRAccepted ProvisioningStateDR = "Accepted" - ProvisioningStateDRFailed ProvisioningStateDR = "Failed" ProvisioningStateDRSucceeded ProvisioningStateDR = "Succeeded" + ProvisioningStateDRFailed ProvisioningStateDR = "Failed" ) // PossibleProvisioningStateDRValues returns the possible values for the ProvisioningStateDR const type. func PossibleProvisioningStateDRValues() []ProvisioningStateDR { return []ProvisioningStateDR{ ProvisioningStateDRAccepted, - ProvisioningStateDRFailed, ProvisioningStateDRSucceeded, + ProvisioningStateDRFailed, } } @@ -309,16 +296,16 @@ type SKUName string const ( SKUNameBasic SKUName = "Basic" - SKUNamePremium SKUName = "Premium" SKUNameStandard SKUName = "Standard" + SKUNamePremium SKUName = "Premium" ) // PossibleSKUNameValues returns the possible values for the SKUName const type. func PossibleSKUNameValues() []SKUName { return []SKUName{ SKUNameBasic, - SKUNamePremium, SKUNameStandard, + SKUNamePremium, } } @@ -327,16 +314,16 @@ type SKUTier string const ( SKUTierBasic SKUTier = "Basic" - SKUTierPremium SKUTier = "Premium" SKUTierStandard SKUTier = "Standard" + SKUTierPremium SKUTier = "Premium" ) // PossibleSKUTierValues returns the possible values for the SKUTier const type. func PossibleSKUTierValues() []SKUTier { return []SKUTier{ SKUTierBasic, - SKUTierPremium, SKUTierStandard, + SKUTierPremium, } } @@ -362,22 +349,22 @@ func PossibleTLSVersionValues() []TLSVersion { type UnavailableReason string const ( - UnavailableReasonInvalidName UnavailableReason = "InvalidName" - UnavailableReasonNameInLockdown UnavailableReason = "NameInLockdown" - UnavailableReasonNameInUse UnavailableReason = "NameInUse" UnavailableReasonNone UnavailableReason = "None" + UnavailableReasonInvalidName UnavailableReason = "InvalidName" UnavailableReasonSubscriptionIsDisabled UnavailableReason = "SubscriptionIsDisabled" + UnavailableReasonNameInUse UnavailableReason = "NameInUse" + UnavailableReasonNameInLockdown UnavailableReason = "NameInLockdown" UnavailableReasonTooManyNamespaceInCurrentSubscription UnavailableReason = "TooManyNamespaceInCurrentSubscription" ) // PossibleUnavailableReasonValues returns the possible values for the UnavailableReason const type. func PossibleUnavailableReasonValues() []UnavailableReason { return []UnavailableReason{ - UnavailableReasonInvalidName, - UnavailableReasonNameInLockdown, - UnavailableReasonNameInUse, UnavailableReasonNone, + UnavailableReasonInvalidName, UnavailableReasonSubscriptionIsDisabled, + UnavailableReasonNameInUse, + UnavailableReasonNameInLockdown, UnavailableReasonTooManyNamespaceInCurrentSubscription, } } diff --git a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_disasterrecoveryconfigs_client.go b/sdk/resourcemanager/servicebus/armservicebus/disasterrecoveryconfigs_client.go similarity index 86% rename from sdk/resourcemanager/servicebus/armservicebus/zz_generated_disasterrecoveryconfigs_client.go rename to sdk/resourcemanager/servicebus/armservicebus/disasterrecoveryconfigs_client.go index ca08de18c167..1121fc551fb0 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_disasterrecoveryconfigs_client.go +++ b/sdk/resourcemanager/servicebus/armservicebus/disasterrecoveryconfigs_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armservicebus @@ -31,10 +32,10 @@ type DisasterRecoveryConfigsClient struct { } // NewDisasterRecoveryConfigsClient creates a new instance of DisasterRecoveryConfigsClient with the specified values. -// subscriptionID - Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms -// part of the URI for every service call. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms +// part of the URI for every service call. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewDisasterRecoveryConfigsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DisasterRecoveryConfigsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,12 +58,13 @@ func NewDisasterRecoveryConfigsClient(subscriptionID string, credential azcore.T // BreakPairing - This operation disables the Disaster Recovery and stops replicating changes from primary to secondary namespaces // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-01-01-preview -// resourceGroupName - Name of the Resource group within the Azure subscription. -// namespaceName - The namespace name -// alias - The Disaster Recovery configuration name -// options - DisasterRecoveryConfigsClientBreakPairingOptions contains the optional parameters for the DisasterRecoveryConfigsClient.BreakPairing -// method. +// +// Generated from API version 2022-10-01-preview +// - resourceGroupName - Name of the Resource group within the Azure subscription. +// - namespaceName - The namespace name +// - alias - The Disaster Recovery configuration name +// - options - DisasterRecoveryConfigsClientBreakPairingOptions contains the optional parameters for the DisasterRecoveryConfigsClient.BreakPairing +// method. func (client *DisasterRecoveryConfigsClient) BreakPairing(ctx context.Context, resourceGroupName string, namespaceName string, alias string, options *DisasterRecoveryConfigsClientBreakPairingOptions) (DisasterRecoveryConfigsClientBreakPairingResponse, error) { req, err := client.breakPairingCreateRequest(ctx, resourceGroupName, namespaceName, alias, options) if err != nil { @@ -102,7 +104,7 @@ func (client *DisasterRecoveryConfigsClient) breakPairingCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-01-01-preview") + reqQP.Set("api-version", "2022-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -110,12 +112,13 @@ func (client *DisasterRecoveryConfigsClient) breakPairingCreateRequest(ctx conte // CheckNameAvailability - Check the give namespace name availability. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-01-01-preview -// resourceGroupName - Name of the Resource group within the Azure subscription. -// namespaceName - The namespace name -// parameters - Parameters to check availability of the given namespace name -// options - DisasterRecoveryConfigsClientCheckNameAvailabilityOptions contains the optional parameters for the DisasterRecoveryConfigsClient.CheckNameAvailability -// method. +// +// Generated from API version 2022-10-01-preview +// - resourceGroupName - Name of the Resource group within the Azure subscription. +// - namespaceName - The namespace name +// - parameters - Parameters to check availability of the given namespace name +// - options - DisasterRecoveryConfigsClientCheckNameAvailabilityOptions contains the optional parameters for the DisasterRecoveryConfigsClient.CheckNameAvailability +// method. func (client *DisasterRecoveryConfigsClient) CheckNameAvailability(ctx context.Context, resourceGroupName string, namespaceName string, parameters CheckNameAvailability, options *DisasterRecoveryConfigsClientCheckNameAvailabilityOptions) (DisasterRecoveryConfigsClientCheckNameAvailabilityResponse, error) { req, err := client.checkNameAvailabilityCreateRequest(ctx, resourceGroupName, namespaceName, parameters, options) if err != nil { @@ -151,7 +154,7 @@ func (client *DisasterRecoveryConfigsClient) checkNameAvailabilityCreateRequest( return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-01-01-preview") + reqQP.Set("api-version", "2022-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, parameters) @@ -168,13 +171,14 @@ func (client *DisasterRecoveryConfigsClient) checkNameAvailabilityHandleResponse // CreateOrUpdate - Creates or updates a new Alias(Disaster Recovery configuration) // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-01-01-preview -// resourceGroupName - Name of the Resource group within the Azure subscription. -// namespaceName - The namespace name -// alias - The Disaster Recovery configuration name -// parameters - Parameters required to create an Alias(Disaster Recovery configuration) -// options - DisasterRecoveryConfigsClientCreateOrUpdateOptions contains the optional parameters for the DisasterRecoveryConfigsClient.CreateOrUpdate -// method. +// +// Generated from API version 2022-10-01-preview +// - resourceGroupName - Name of the Resource group within the Azure subscription. +// - namespaceName - The namespace name +// - alias - The Disaster Recovery configuration name +// - parameters - Parameters required to create an Alias(Disaster Recovery configuration) +// - options - DisasterRecoveryConfigsClientCreateOrUpdateOptions contains the optional parameters for the DisasterRecoveryConfigsClient.CreateOrUpdate +// method. func (client *DisasterRecoveryConfigsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, namespaceName string, alias string, parameters ArmDisasterRecovery, options *DisasterRecoveryConfigsClientCreateOrUpdateOptions) (DisasterRecoveryConfigsClientCreateOrUpdateResponse, error) { req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, namespaceName, alias, parameters, options) if err != nil { @@ -214,7 +218,7 @@ func (client *DisasterRecoveryConfigsClient) createOrUpdateCreateRequest(ctx con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-01-01-preview") + reqQP.Set("api-version", "2022-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, parameters) @@ -231,12 +235,13 @@ func (client *DisasterRecoveryConfigsClient) createOrUpdateHandleResponse(resp * // Delete - Deletes an Alias(Disaster Recovery configuration) // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-01-01-preview -// resourceGroupName - Name of the Resource group within the Azure subscription. -// namespaceName - The namespace name -// alias - The Disaster Recovery configuration name -// options - DisasterRecoveryConfigsClientDeleteOptions contains the optional parameters for the DisasterRecoveryConfigsClient.Delete -// method. +// +// Generated from API version 2022-10-01-preview +// - resourceGroupName - Name of the Resource group within the Azure subscription. +// - namespaceName - The namespace name +// - alias - The Disaster Recovery configuration name +// - options - DisasterRecoveryConfigsClientDeleteOptions contains the optional parameters for the DisasterRecoveryConfigsClient.Delete +// method. func (client *DisasterRecoveryConfigsClient) Delete(ctx context.Context, resourceGroupName string, namespaceName string, alias string, options *DisasterRecoveryConfigsClientDeleteOptions) (DisasterRecoveryConfigsClientDeleteResponse, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, namespaceName, alias, options) if err != nil { @@ -276,7 +281,7 @@ func (client *DisasterRecoveryConfigsClient) deleteCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-01-01-preview") + reqQP.Set("api-version", "2022-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -284,12 +289,13 @@ func (client *DisasterRecoveryConfigsClient) deleteCreateRequest(ctx context.Con // FailOver - Invokes GEO DR failover and reconfigure the alias to point to the secondary namespace // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-01-01-preview -// resourceGroupName - Name of the Resource group within the Azure subscription. -// namespaceName - The namespace name -// alias - The Disaster Recovery configuration name -// options - DisasterRecoveryConfigsClientFailOverOptions contains the optional parameters for the DisasterRecoveryConfigsClient.FailOver -// method. +// +// Generated from API version 2022-10-01-preview +// - resourceGroupName - Name of the Resource group within the Azure subscription. +// - namespaceName - The namespace name +// - alias - The Disaster Recovery configuration name +// - options - DisasterRecoveryConfigsClientFailOverOptions contains the optional parameters for the DisasterRecoveryConfigsClient.FailOver +// method. func (client *DisasterRecoveryConfigsClient) FailOver(ctx context.Context, resourceGroupName string, namespaceName string, alias string, options *DisasterRecoveryConfigsClientFailOverOptions) (DisasterRecoveryConfigsClientFailOverResponse, error) { req, err := client.failOverCreateRequest(ctx, resourceGroupName, namespaceName, alias, options) if err != nil { @@ -329,7 +335,7 @@ func (client *DisasterRecoveryConfigsClient) failOverCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-01-01-preview") + reqQP.Set("api-version", "2022-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.Parameters != nil { @@ -340,12 +346,13 @@ func (client *DisasterRecoveryConfigsClient) failOverCreateRequest(ctx context.C // Get - Retrieves Alias(Disaster Recovery configuration) for primary or secondary namespace // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-01-01-preview -// resourceGroupName - Name of the Resource group within the Azure subscription. -// namespaceName - The namespace name -// alias - The Disaster Recovery configuration name -// options - DisasterRecoveryConfigsClientGetOptions contains the optional parameters for the DisasterRecoveryConfigsClient.Get -// method. +// +// Generated from API version 2022-10-01-preview +// - resourceGroupName - Name of the Resource group within the Azure subscription. +// - namespaceName - The namespace name +// - alias - The Disaster Recovery configuration name +// - options - DisasterRecoveryConfigsClientGetOptions contains the optional parameters for the DisasterRecoveryConfigsClient.Get +// method. func (client *DisasterRecoveryConfigsClient) Get(ctx context.Context, resourceGroupName string, namespaceName string, alias string, options *DisasterRecoveryConfigsClientGetOptions) (DisasterRecoveryConfigsClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, namespaceName, alias, options) if err != nil { @@ -385,7 +392,7 @@ func (client *DisasterRecoveryConfigsClient) getCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-01-01-preview") + reqQP.Set("api-version", "2022-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -402,13 +409,14 @@ func (client *DisasterRecoveryConfigsClient) getHandleResponse(resp *http.Respon // GetAuthorizationRule - Gets an authorization rule for a namespace by rule name. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-01-01-preview -// resourceGroupName - Name of the Resource group within the Azure subscription. -// namespaceName - The namespace name -// alias - The Disaster Recovery configuration name -// authorizationRuleName - The authorization rule name. -// options - DisasterRecoveryConfigsClientGetAuthorizationRuleOptions contains the optional parameters for the DisasterRecoveryConfigsClient.GetAuthorizationRule -// method. +// +// Generated from API version 2022-10-01-preview +// - resourceGroupName - Name of the Resource group within the Azure subscription. +// - namespaceName - The namespace name +// - alias - The Disaster Recovery configuration name +// - authorizationRuleName - The authorization rule name. +// - options - DisasterRecoveryConfigsClientGetAuthorizationRuleOptions contains the optional parameters for the DisasterRecoveryConfigsClient.GetAuthorizationRule +// method. func (client *DisasterRecoveryConfigsClient) GetAuthorizationRule(ctx context.Context, resourceGroupName string, namespaceName string, alias string, authorizationRuleName string, options *DisasterRecoveryConfigsClientGetAuthorizationRuleOptions) (DisasterRecoveryConfigsClientGetAuthorizationRuleResponse, error) { req, err := client.getAuthorizationRuleCreateRequest(ctx, resourceGroupName, namespaceName, alias, authorizationRuleName, options) if err != nil { @@ -452,7 +460,7 @@ func (client *DisasterRecoveryConfigsClient) getAuthorizationRuleCreateRequest(c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-01-01-preview") + reqQP.Set("api-version", "2022-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -468,12 +476,12 @@ func (client *DisasterRecoveryConfigsClient) getAuthorizationRuleHandleResponse( } // NewListPager - Gets all Alias(Disaster Recovery configurations) -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-01-01-preview -// resourceGroupName - Name of the Resource group within the Azure subscription. -// namespaceName - The namespace name -// options - DisasterRecoveryConfigsClientListOptions contains the optional parameters for the DisasterRecoveryConfigsClient.List -// method. +// +// Generated from API version 2022-10-01-preview +// - resourceGroupName - Name of the Resource group within the Azure subscription. +// - namespaceName - The namespace name +// - options - DisasterRecoveryConfigsClientListOptions contains the optional parameters for the DisasterRecoveryConfigsClient.NewListPager +// method. func (client *DisasterRecoveryConfigsClient) NewListPager(resourceGroupName string, namespaceName string, options *DisasterRecoveryConfigsClientListOptions) *runtime.Pager[DisasterRecoveryConfigsClientListResponse] { return runtime.NewPager(runtime.PagingHandler[DisasterRecoveryConfigsClientListResponse]{ More: func(page DisasterRecoveryConfigsClientListResponse) bool { @@ -522,7 +530,7 @@ func (client *DisasterRecoveryConfigsClient) listCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-01-01-preview") + reqQP.Set("api-version", "2022-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -538,13 +546,13 @@ func (client *DisasterRecoveryConfigsClient) listHandleResponse(resp *http.Respo } // NewListAuthorizationRulesPager - Gets the authorization rules for a namespace. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-01-01-preview -// resourceGroupName - Name of the Resource group within the Azure subscription. -// namespaceName - The namespace name -// alias - The Disaster Recovery configuration name -// options - DisasterRecoveryConfigsClientListAuthorizationRulesOptions contains the optional parameters for the DisasterRecoveryConfigsClient.ListAuthorizationRules -// method. +// +// Generated from API version 2022-10-01-preview +// - resourceGroupName - Name of the Resource group within the Azure subscription. +// - namespaceName - The namespace name +// - alias - The Disaster Recovery configuration name +// - options - DisasterRecoveryConfigsClientListAuthorizationRulesOptions contains the optional parameters for the DisasterRecoveryConfigsClient.NewListAuthorizationRulesPager +// method. func (client *DisasterRecoveryConfigsClient) NewListAuthorizationRulesPager(resourceGroupName string, namespaceName string, alias string, options *DisasterRecoveryConfigsClientListAuthorizationRulesOptions) *runtime.Pager[DisasterRecoveryConfigsClientListAuthorizationRulesResponse] { return runtime.NewPager(runtime.PagingHandler[DisasterRecoveryConfigsClientListAuthorizationRulesResponse]{ More: func(page DisasterRecoveryConfigsClientListAuthorizationRulesResponse) bool { @@ -597,7 +605,7 @@ func (client *DisasterRecoveryConfigsClient) listAuthorizationRulesCreateRequest return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-01-01-preview") + reqQP.Set("api-version", "2022-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -614,13 +622,14 @@ func (client *DisasterRecoveryConfigsClient) listAuthorizationRulesHandleRespons // ListKeys - Gets the primary and secondary connection strings for the namespace. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-01-01-preview -// resourceGroupName - Name of the Resource group within the Azure subscription. -// namespaceName - The namespace name -// alias - The Disaster Recovery configuration name -// authorizationRuleName - The authorization rule name. -// options - DisasterRecoveryConfigsClientListKeysOptions contains the optional parameters for the DisasterRecoveryConfigsClient.ListKeys -// method. +// +// Generated from API version 2022-10-01-preview +// - resourceGroupName - Name of the Resource group within the Azure subscription. +// - namespaceName - The namespace name +// - alias - The Disaster Recovery configuration name +// - authorizationRuleName - The authorization rule name. +// - options - DisasterRecoveryConfigsClientListKeysOptions contains the optional parameters for the DisasterRecoveryConfigsClient.ListKeys +// method. func (client *DisasterRecoveryConfigsClient) ListKeys(ctx context.Context, resourceGroupName string, namespaceName string, alias string, authorizationRuleName string, options *DisasterRecoveryConfigsClientListKeysOptions) (DisasterRecoveryConfigsClientListKeysResponse, error) { req, err := client.listKeysCreateRequest(ctx, resourceGroupName, namespaceName, alias, authorizationRuleName, options) if err != nil { @@ -664,7 +673,7 @@ func (client *DisasterRecoveryConfigsClient) listKeysCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-01-01-preview") + reqQP.Set("api-version", "2022-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/servicebus/armservicebus/disasterrecoveryconfigs_client_example_test.go b/sdk/resourcemanager/servicebus/armservicebus/disasterrecoveryconfigs_client_example_test.go new file mode 100644 index 000000000000..529815781502 --- /dev/null +++ b/sdk/resourcemanager/servicebus/armservicebus/disasterrecoveryconfigs_client_example_test.go @@ -0,0 +1,328 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armservicebus_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicebus/armservicebus/v2" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5e24fa8e30bff0cb321494a0b550b1c1282a8a3c/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples/disasterRecoveryConfigs/SBAliasList.json +func ExampleDisasterRecoveryConfigsClient_NewListPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armservicebus.NewDisasterRecoveryConfigsClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListPager("ardsouzatestRG", "sdk-Namespace-8860", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.ArmDisasterRecoveryListResult = armservicebus.ArmDisasterRecoveryListResult{ + // Value: []*armservicebus.ArmDisasterRecovery{ + // { + // Name: to.Ptr("sdk-DisasterRecovery-3814"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces/DisasterRecoveryConfig"), + // ID: to.Ptr("/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/ardsouzatestRG/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-8860/disasterRecoveryConfig/sdk-DisasterRecovery-3814"), + // Properties: &armservicebus.ArmDisasterRecoveryProperties{ + // PartnerNamespace: to.Ptr("sdk-Namespace-37"), + // ProvisioningState: to.Ptr(armservicebus.ProvisioningStateDRSucceeded), + // Role: to.Ptr(armservicebus.RoleDisasterRecoveryPrimary), + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5e24fa8e30bff0cb321494a0b550b1c1282a8a3c/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples/disasterRecoveryConfigs/SBAliasCreate.json +func ExampleDisasterRecoveryConfigsClient_CreateOrUpdate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armservicebus.NewDisasterRecoveryConfigsClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.CreateOrUpdate(ctx, "ardsouzatestRG", "sdk-Namespace-8860", "sdk-Namespace-8860", armservicebus.ArmDisasterRecovery{ + Properties: &armservicebus.ArmDisasterRecoveryProperties{ + AlternateName: to.Ptr("alternameforAlias-Namespace-8860"), + PartnerNamespace: to.Ptr("sdk-Namespace-37"), + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.ArmDisasterRecovery = armservicebus.ArmDisasterRecovery{ + // Name: to.Ptr("sdk-Namespace-8860"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces/DisasterRecoveryConfig"), + // ID: to.Ptr("/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/ardsouzatestRG/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-8860/disasterRecoveryConfig/sdk-Namespace-8860"), + // Properties: &armservicebus.ArmDisasterRecoveryProperties{ + // AlternateName: to.Ptr("alternameforAlias-Namespace-8860"), + // PartnerNamespace: to.Ptr("sdk-Namespace-37"), + // ProvisioningState: to.Ptr(armservicebus.ProvisioningStateDRSucceeded), + // Role: to.Ptr(armservicebus.RoleDisasterRecoveryPrimary), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5e24fa8e30bff0cb321494a0b550b1c1282a8a3c/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples/disasterRecoveryConfigs/SBAliasDelete.json +func ExampleDisasterRecoveryConfigsClient_Delete() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armservicebus.NewDisasterRecoveryConfigsClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + _, err = client.Delete(ctx, "SouthCentralUS", "sdk-Namespace-8860", "sdk-DisasterRecovery-3814", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5e24fa8e30bff0cb321494a0b550b1c1282a8a3c/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples/disasterRecoveryConfigs/SBAliasGet.json +func ExampleDisasterRecoveryConfigsClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armservicebus.NewDisasterRecoveryConfigsClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "ardsouzatestRG", "sdk-Namespace-8860", "sdk-DisasterRecovery-3814", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.ArmDisasterRecovery = armservicebus.ArmDisasterRecovery{ + // Name: to.Ptr("sdk-DisasterRecovery-3814"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces/DisasterRecoveryConfig"), + // ID: to.Ptr("/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/ardsouzatestRG/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-37/disasterRecoveryConfig/sdk-DisasterRecovery-3814"), + // Properties: &armservicebus.ArmDisasterRecoveryProperties{ + // PartnerNamespace: to.Ptr("sdk-Namespace-8860"), + // PendingReplicationOperationsCount: to.Ptr[int64](0), + // ProvisioningState: to.Ptr(armservicebus.ProvisioningStateDRSucceeded), + // Role: to.Ptr(armservicebus.RoleDisasterRecoverySecondary), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5e24fa8e30bff0cb321494a0b550b1c1282a8a3c/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples/disasterRecoveryConfigs/SBEHAliasBreakPairing.json +func ExampleDisasterRecoveryConfigsClient_BreakPairing() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armservicebus.NewDisasterRecoveryConfigsClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + _, err = client.BreakPairing(ctx, "ardsouzatestRG", "sdk-Namespace-8860", "sdk-DisasterRecovery-3814", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5e24fa8e30bff0cb321494a0b550b1c1282a8a3c/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples/disasterRecoveryConfigs/SBAliasFailOver.json +func ExampleDisasterRecoveryConfigsClient_FailOver() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armservicebus.NewDisasterRecoveryConfigsClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + _, err = client.FailOver(ctx, "ardsouzatestRG", "sdk-Namespace-8860", "sdk-DisasterRecovery-3814", &armservicebus.DisasterRecoveryConfigsClientFailOverOptions{Parameters: nil}) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5e24fa8e30bff0cb321494a0b550b1c1282a8a3c/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples/disasterRecoveryConfigs/SBAliasAuthorizationRuleListAll.json +func ExampleDisasterRecoveryConfigsClient_NewListAuthorizationRulesPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armservicebus.NewDisasterRecoveryConfigsClient("exampleSubscriptionId", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListAuthorizationRulesPager("exampleResourceGroup", "sdk-Namespace-9080", "sdk-DisasterRecovery-4047", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.SBAuthorizationRuleListResult = armservicebus.SBAuthorizationRuleListResult{ + // Value: []*armservicebus.SBAuthorizationRule{ + // { + // Name: to.Ptr("RootManageSharedAccessKey"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces/DisasterRecoveryConfig/AuthorizationRules"), + // ID: to.Ptr("/subscriptions/exampleSubscriptionId/resourceGroups/exampleResourceGroup/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-9080/disasterRecoveryConfigs/sdk-DisasterRecovery-4047/AuthorizationRules/RootManageSharedAccessKey"), + // Properties: &armservicebus.SBAuthorizationRuleProperties{ + // Rights: []*armservicebus.AccessRights{ + // to.Ptr(armservicebus.AccessRightsListen), + // to.Ptr(armservicebus.AccessRightsManage), + // to.Ptr(armservicebus.AccessRightsSend)}, + // }, + // }, + // { + // Name: to.Ptr("sdk-Authrules-1067"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces/DisasterRecoveryConfig/AuthorizationRules"), + // ID: to.Ptr("/subscriptions/exampleSubscriptionId/resourceGroups/exampleResourceGroup/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-9080/disasterRecoveryConfigs/sdk-DisasterRecovery-4047/AuthorizationRules/sdk-Authrules-1067"), + // Properties: &armservicebus.SBAuthorizationRuleProperties{ + // Rights: []*armservicebus.AccessRights{ + // to.Ptr(armservicebus.AccessRightsListen), + // to.Ptr(armservicebus.AccessRightsSend)}, + // }, + // }, + // { + // Name: to.Ptr("sdk-Authrules-1684"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces/DisasterRecoveryConfig/AuthorizationRules"), + // ID: to.Ptr("/subscriptions/exampleSubscriptionId/resourceGroups/exampleResourceGroup/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-9080/disasterRecoveryConfigs/sdk-DisasterRecovery-4047/AuthorizationRules/sdk-Authrules-1684"), + // Properties: &armservicebus.SBAuthorizationRuleProperties{ + // Rights: []*armservicebus.AccessRights{ + // to.Ptr(armservicebus.AccessRightsListen), + // to.Ptr(armservicebus.AccessRightsSend)}, + // }, + // }, + // { + // Name: to.Ptr("sdk-Authrules-4879"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces/DisasterRecoveryConfig/AuthorizationRules"), + // ID: to.Ptr("/subscriptions/exampleSubscriptionId/resourceGroups/exampleResourceGroup/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-9080/disasterRecoveryConfigs/sdk-DisasterRecovery-4047/AuthorizationRules/sdk-Authrules-4879"), + // Properties: &armservicebus.SBAuthorizationRuleProperties{ + // Rights: []*armservicebus.AccessRights{ + // to.Ptr(armservicebus.AccessRightsListen), + // to.Ptr(armservicebus.AccessRightsSend)}, + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5e24fa8e30bff0cb321494a0b550b1c1282a8a3c/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples/disasterRecoveryConfigs/SBAliasAuthorizationRuleGet.json +func ExampleDisasterRecoveryConfigsClient_GetAuthorizationRule() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armservicebus.NewDisasterRecoveryConfigsClient("exampleSubscriptionId", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.GetAuthorizationRule(ctx, "exampleResourceGroup", "sdk-Namespace-9080", "sdk-DisasterRecovery-4879", "sdk-Authrules-4879", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.SBAuthorizationRule = armservicebus.SBAuthorizationRule{ + // Name: to.Ptr("sdk-Authrules-4879"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces/DisasterRecoveryConfig/AuthorizationRules"), + // ID: to.Ptr("/subscriptions/exampleSubscriptionId/resourceGroups/exampleResourceGroup/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-9080/disasterRecoveryConfigs/sdk-DisasterRecovery-4047/AuthorizationRules/sdk-Authrules-4879"), + // Properties: &armservicebus.SBAuthorizationRuleProperties{ + // Rights: []*armservicebus.AccessRights{ + // to.Ptr(armservicebus.AccessRightsListen), + // to.Ptr(armservicebus.AccessRightsSend)}, + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5e24fa8e30bff0cb321494a0b550b1c1282a8a3c/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples/disasterRecoveryConfigs/SBAliasAuthorizationRuleListKey.json +func ExampleDisasterRecoveryConfigsClient_ListKeys() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armservicebus.NewDisasterRecoveryConfigsClient("exampleSubscriptionId", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.ListKeys(ctx, "exampleResourceGroup", "sdk-Namespace-2702", "sdk-DisasterRecovery-4047", "sdk-Authrules-1746", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.AccessKeys = armservicebus.AccessKeys{ + // AliasPrimaryConnectionString: to.Ptr("Endpoint=sb://sdk-disasterrecovery-4047.servicebus.windows-int.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=############################################"), + // AliasSecondaryConnectionString: to.Ptr("Endpoint=sb://sdk-disasterrecovery-4047.servicebus.windows-int.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=############################################"), + // KeyName: to.Ptr("sdk-Authrules-1746"), + // PrimaryKey: to.Ptr("############################################"), + // SecondaryKey: to.Ptr("############################################"), + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5e24fa8e30bff0cb321494a0b550b1c1282a8a3c/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples/disasterRecoveryConfigs/SBAliasCheckNameAvailability.json +func ExampleDisasterRecoveryConfigsClient_CheckNameAvailability() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armservicebus.NewDisasterRecoveryConfigsClient("exampleSubscriptionId", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.CheckNameAvailability(ctx, "exampleResourceGroup", "sdk-Namespace-9080", armservicebus.CheckNameAvailability{ + Name: to.Ptr("sdk-DisasterRecovery-9474"), + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.CheckNameAvailabilityResult = armservicebus.CheckNameAvailabilityResult{ + // Message: to.Ptr(""), + // NameAvailable: to.Ptr(true), + // Reason: to.Ptr(armservicebus.UnavailableReasonNone), + // } +} diff --git a/sdk/resourcemanager/servicebus/armservicebus/disasterrecoveryconfigs_live_test.go b/sdk/resourcemanager/servicebus/armservicebus/disasterrecoveryconfigs_live_test.go deleted file mode 100644 index 5dca6ea281f7..000000000000 --- a/sdk/resourcemanager/servicebus/armservicebus/disasterrecoveryconfigs_live_test.go +++ /dev/null @@ -1,176 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armservicebus_test - -import ( - "context" - "fmt" - "testing" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/testutil" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicebus/armservicebus/v2" - "github.com/stretchr/testify/suite" -) - -type DisasterrecoveryconfigsTestSuite struct { - suite.Suite - - ctx context.Context - cred azcore.TokenCredential - options *arm.ClientOptions - alias string - authorizationRuleName string - namespaceName string - primaryNamespaceId string - primaryNamespaceName string - location string - resourceGroupName string - subscriptionId string -} - -func (testsuite *DisasterrecoveryconfigsTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/servicebus/armservicebus/testdata") - testsuite.ctx = context.Background() - testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) - testsuite.alias = testutil.GenerateAlphaNumericID(testsuite.T(), "sbalias", 6) - testsuite.authorizationRuleName = testutil.GenerateAlphaNumericID(testsuite.T(), "sbauthrule", 6) - testsuite.namespaceName = testutil.GenerateAlphaNumericID(testsuite.T(), "sbnamespacedrc", 6) - testsuite.primaryNamespaceName = testutil.GenerateAlphaNumericID(testsuite.T(), "sbnamespacetwodrc", 6) - testsuite.location = testutil.GetEnv("LOCATION", "westus") - testsuite.resourceGroupName = testutil.GetEnv("RESOURCE_GROUP_NAME", "scenarioTestTempGroup") - testsuite.subscriptionId = testutil.GetEnv("AZURE_SUBSCRIPTION_ID", "00000000-0000-0000-0000-000000000000") - - resourceGroup, _, err := testutil.CreateResourceGroup(testsuite.ctx, testsuite.subscriptionId, testsuite.cred, testsuite.options, testsuite.location) - testsuite.Require().NoError(err) - testsuite.resourceGroupName = *resourceGroup.Name - testsuite.Prepare() -} - -func (testsuite *DisasterrecoveryconfigsTestSuite) TearDownSuite() { - _, err := testutil.DeleteResourceGroup(testsuite.ctx, testsuite.subscriptionId, testsuite.cred, testsuite.options, testsuite.resourceGroupName) - testsuite.Require().NoError(err) - testutil.StopRecording(testsuite.T()) -} - -func TestDisasterrecoveryconfigsTestSuite(t *testing.T) { - suite.Run(t, new(DisasterrecoveryconfigsTestSuite)) -} - -func (testsuite *DisasterrecoveryconfigsTestSuite) Prepare() { - var err error - // From step Namespace_Create - fmt.Println("Call operation: Namespaces_CreateOrUpdate") - namespacesClient, err := armservicebus.NewNamespacesClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) - testsuite.Require().NoError(err) - namespacesClientCreateOrUpdateResponsePoller, err := namespacesClient.BeginCreateOrUpdate(testsuite.ctx, testsuite.resourceGroupName, testsuite.namespaceName, armservicebus.SBNamespace{ - Location: to.Ptr(testsuite.location), - Tags: map[string]*string{ - "tag1": to.Ptr("value1"), - "tag2": to.Ptr("value2"), - }, - SKU: &armservicebus.SBSKU{ - Name: to.Ptr(armservicebus.SKUNamePremium), - Tier: to.Ptr(armservicebus.SKUTierPremium), - }, - }, nil) - testsuite.Require().NoError(err) - _, err = testutil.PollForTest(testsuite.ctx, namespacesClientCreateOrUpdateResponsePoller) - testsuite.Require().NoError(err) - - // From step Namespace_Create2 - fmt.Println("Call operation: Namespaces_Create") - namespacesClientCreateOrUpdateResponsePoller, err = namespacesClient.BeginCreateOrUpdate(testsuite.ctx, testsuite.resourceGroupName, testsuite.primaryNamespaceName, armservicebus.SBNamespace{ - Location: to.Ptr("westus2"), - SKU: &armservicebus.SBSKU{ - Name: to.Ptr(armservicebus.SKUNamePremium), - Tier: to.Ptr(armservicebus.SKUTierPremium), - }, - }, nil) - testsuite.Require().NoError(err) - var namespacesClientCreateOrUpdateResponse *armservicebus.NamespacesClientCreateOrUpdateResponse - namespacesClientCreateOrUpdateResponse, err = testutil.PollForTest(testsuite.ctx, namespacesClientCreateOrUpdateResponsePoller) - testsuite.Require().NoError(err) - testsuite.primaryNamespaceId = *namespacesClientCreateOrUpdateResponse.ID -} - -// Microsoft.ServiceBus/namespaces/disasterRecoveryConfigs -func (testsuite *DisasterrecoveryconfigsTestSuite) TestDisasterrecoveryconfig() { - var err error - // From step Namespace_CreateAuthorizationRule - fmt.Println("Call operation: Namespaces_CreateAuthorizationRule") - namespacesClient, err := armservicebus.NewNamespacesClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) - testsuite.Require().NoError(err) - _, err = namespacesClient.CreateOrUpdateAuthorizationRule(testsuite.ctx, testsuite.resourceGroupName, testsuite.namespaceName, testsuite.authorizationRuleName, armservicebus.SBAuthorizationRule{ - Properties: &armservicebus.SBAuthorizationRuleProperties{ - Rights: []*armservicebus.AccessRights{ - to.Ptr(armservicebus.AccessRightsListen), - to.Ptr(armservicebus.AccessRightsSend)}, - }, - }, nil) - testsuite.Require().NoError(err) - - // From step DisasterRecoveryConfig_CheckNameAvailability - fmt.Println("Call operation: DisasterRecoveryConfigs_CheckNameAvailability") - disasterRecoveryConfigsClient, err := armservicebus.NewDisasterRecoveryConfigsClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) - testsuite.Require().NoError(err) - _, err = disasterRecoveryConfigsClient.CheckNameAvailability(testsuite.ctx, testsuite.resourceGroupName, testsuite.namespaceName, armservicebus.CheckNameAvailability{ - Name: to.Ptr("sdk-DisasterRecovery-9474"), - }, nil) - testsuite.Require().NoError(err) - - // From step DisasterRecoveryConfig_Create - fmt.Println("Call operation: DisasterRecoveryConfigs_Create") - _, err = disasterRecoveryConfigsClient.CreateOrUpdate(testsuite.ctx, testsuite.resourceGroupName, testsuite.namespaceName, testsuite.alias, armservicebus.ArmDisasterRecovery{ - Properties: &armservicebus.ArmDisasterRecoveryProperties{ - PartnerNamespace: to.Ptr(testsuite.primaryNamespaceId), - }, - }, nil) - testsuite.Require().NoError(err) - - // From step DisasterRecoveryConfig_Get - fmt.Println("Call operation: DisasterRecoveryConfigs_Get") - _, err = disasterRecoveryConfigsClient.Get(testsuite.ctx, testsuite.resourceGroupName, testsuite.namespaceName, testsuite.alias, nil) - testsuite.Require().NoError(err) - - // From step DisasterRecoveryConfig_List - fmt.Println("Call operation: DisasterRecoveryConfigs_List") - disasterRecoveryConfigsClientNewListPager := disasterRecoveryConfigsClient.NewListPager(testsuite.resourceGroupName, testsuite.namespaceName, nil) - for disasterRecoveryConfigsClientNewListPager.More() { - _, err := disasterRecoveryConfigsClientNewListPager.NextPage(testsuite.ctx) - testsuite.Require().NoError(err) - break - } - - // From step DisasterRecoveryConfig_GetAuthorizationRule - fmt.Println("Call operation: DisasterRecoveryConfigs_GetAuthorizationRule") - _, err = disasterRecoveryConfigsClient.GetAuthorizationRule(testsuite.ctx, testsuite.resourceGroupName, testsuite.namespaceName, testsuite.alias, testsuite.authorizationRuleName, nil) - testsuite.Require().NoError(err) - - // From step DisasterRecoveryConfig_ListAuthorizationRules - fmt.Println("Call operation: DisasterRecoveryConfigs_ListAuthorizationRules") - disasterRecoveryConfigsClientNewListAuthorizationRulesPager := disasterRecoveryConfigsClient.NewListAuthorizationRulesPager(testsuite.resourceGroupName, testsuite.namespaceName, testsuite.alias, nil) - for disasterRecoveryConfigsClientNewListAuthorizationRulesPager.More() { - _, err := disasterRecoveryConfigsClientNewListAuthorizationRulesPager.NextPage(testsuite.ctx) - testsuite.Require().NoError(err) - break - } - - // From step DisasterRecoveryConfig_ListKeys - fmt.Println("Call operation: DisasterRecoveryConfigs_ListKeys") - _, err = disasterRecoveryConfigsClient.ListKeys(testsuite.ctx, testsuite.resourceGroupName, testsuite.namespaceName, testsuite.alias, testsuite.authorizationRuleName, nil) - testsuite.Require().NoError(err) - - // From step DisasterRecoveryConfig_FailOver - fmt.Println("Call operation: DisasterRecoveryConfigs_FailOver") - _, err = disasterRecoveryConfigsClient.FailOver(testsuite.ctx, testsuite.resourceGroupName, testsuite.primaryNamespaceName, testsuite.alias, &armservicebus.DisasterRecoveryConfigsClientFailOverOptions{Parameters: nil}) - testsuite.Require().NoError(err) -} diff --git a/sdk/resourcemanager/servicebus/armservicebus/go.mod b/sdk/resourcemanager/servicebus/armservicebus/go.mod index e8974730f53e..4d48595b625a 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/go.mod +++ b/sdk/resourcemanager/servicebus/armservicebus/go.mod @@ -4,26 +4,18 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.0 - github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.0.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.1 - github.com/stretchr/testify v1.7.0 + github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.1 ) require ( github.com/Azure/azure-sdk-for-go/sdk/internal v1.0.0 // indirect - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0 // indirect - github.com/AzureAD/microsoft-authentication-library-for-go v0.4.0 // indirect - github.com/davecgh/go-spew v1.1.1 // indirect - github.com/dnaeon/go-vcr v1.1.0 // indirect - github.com/golang-jwt/jwt v3.2.1+incompatible // indirect + github.com/AzureAD/microsoft-authentication-library-for-go v0.8.1 // indirect + github.com/golang-jwt/jwt/v4 v4.4.2 // 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 - github.com/pmezard/go-difflib v1.0.0 // 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 - gopkg.in/yaml.v2 v2.4.0 // indirect - gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect ) diff --git a/sdk/resourcemanager/servicebus/armservicebus/go.sum b/sdk/resourcemanager/servicebus/armservicebus/go.sum index 07096d31831b..f62f42f1f55c 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/go.sum +++ b/sdk/resourcemanager/servicebus/armservicebus/go.sum @@ -1,50 +1,30 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.0 h1:Ut0ZGdOwJDw0npYEg+TLlPls3Pq6JiZaP2/aGKir7Zw= github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.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/azidentity v1.2.1 h1:T8quHYlUGyb/oqtSTwqlCr1ilJHrDv+ZtpSfo+hm1BU= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.1/go.mod h1:gLa1CL2RNE4s7M3yopJ/p0iq5DdY6Yv5ZUt9MTRZOQM= 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/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.1 h1:BZOe7ExNYNGmapT91ZUrxtMYsqVljMxTHEnwjOdG7pk= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.1/go.mod h1:TSPEzbGHEgqFa3kUn09SpCrfKNbj7+mMulU/72Vg84E= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0 h1:ECsQtyERDVz3NP3kvDOTLvbQhqWp/x9EsGKtb4ogUr8= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0/go.mod h1:s1tW/At+xHqjNFvWU4G0c0Qv33KOhvbGNj0RCTQDV8s= -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/AzureAD/microsoft-authentication-library-for-go v0.8.1 h1:oPdPEZFSbl7oSPEAIPMPBMUmiL+mqgzBJwM/9qYcwNg= +github.com/AzureAD/microsoft-authentication-library-for-go v0.8.1/go.mod h1:4qFor3D/HDsvBME35Xy9rwW9DecL+M2sNw1ybjPtwA0= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= -github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 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= +github.com/golang-jwt/jwt/v4 v4.4.2 h1:rcc4lwaZgFMCZ5jxF9ABolDcIHdBytAFgqFPbSJQAYs= +github.com/golang-jwt/jwt/v4 v4.4.2/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= 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-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-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= -gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= -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= -gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_migrationconfigs_client.go b/sdk/resourcemanager/servicebus/armservicebus/migrationconfigs_client.go similarity index 85% rename from sdk/resourcemanager/servicebus/armservicebus/zz_generated_migrationconfigs_client.go rename to sdk/resourcemanager/servicebus/armservicebus/migrationconfigs_client.go index ffad3adad3e6..67334b53d76f 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_migrationconfigs_client.go +++ b/sdk/resourcemanager/servicebus/armservicebus/migrationconfigs_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armservicebus @@ -31,10 +32,10 @@ type MigrationConfigsClient struct { } // NewMigrationConfigsClient creates a new instance of MigrationConfigsClient with the specified values. -// subscriptionID - Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms -// part of the URI for every service call. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms +// part of the URI for every service call. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewMigrationConfigsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*MigrationConfigsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -59,12 +60,13 @@ func NewMigrationConfigsClient(subscriptionID string, credential azcore.TokenCre // and any entities created after the operation will be under Premium Namespace. CompleteMigration // operation will fail when entity migration is in-progress. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-01-01-preview -// resourceGroupName - Name of the Resource group within the Azure subscription. -// namespaceName - The namespace name -// configName - The configuration name. Should always be "$default". -// options - MigrationConfigsClientCompleteMigrationOptions contains the optional parameters for the MigrationConfigsClient.CompleteMigration -// method. +// +// Generated from API version 2022-10-01-preview +// - resourceGroupName - Name of the Resource group within the Azure subscription. +// - namespaceName - The namespace name +// - configName - The configuration name. Should always be "$default". +// - options - MigrationConfigsClientCompleteMigrationOptions contains the optional parameters for the MigrationConfigsClient.CompleteMigration +// method. func (client *MigrationConfigsClient) CompleteMigration(ctx context.Context, resourceGroupName string, namespaceName string, configName MigrationConfigurationName, options *MigrationConfigsClientCompleteMigrationOptions) (MigrationConfigsClientCompleteMigrationResponse, error) { req, err := client.completeMigrationCreateRequest(ctx, resourceGroupName, namespaceName, configName, options) if err != nil { @@ -104,7 +106,7 @@ func (client *MigrationConfigsClient) completeMigrationCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-01-01-preview") + reqQP.Set("api-version", "2022-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -113,13 +115,14 @@ func (client *MigrationConfigsClient) completeMigrationCreateRequest(ctx context // BeginCreateAndStartMigration - Creates Migration configuration and starts migration of entities from Standard to Premium // namespace // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-01-01-preview -// resourceGroupName - Name of the Resource group within the Azure subscription. -// namespaceName - The namespace name -// configName - The configuration name. Should always be "$default". -// parameters - Parameters required to create Migration Configuration -// options - MigrationConfigsClientBeginCreateAndStartMigrationOptions contains the optional parameters for the MigrationConfigsClient.BeginCreateAndStartMigration -// method. +// +// Generated from API version 2022-10-01-preview +// - resourceGroupName - Name of the Resource group within the Azure subscription. +// - namespaceName - The namespace name +// - configName - The configuration name. Should always be "$default". +// - parameters - Parameters required to create Migration Configuration +// - options - MigrationConfigsClientBeginCreateAndStartMigrationOptions contains the optional parameters for the MigrationConfigsClient.BeginCreateAndStartMigration +// method. func (client *MigrationConfigsClient) BeginCreateAndStartMigration(ctx context.Context, resourceGroupName string, namespaceName string, configName MigrationConfigurationName, parameters MigrationConfigProperties, options *MigrationConfigsClientBeginCreateAndStartMigrationOptions) (*runtime.Poller[MigrationConfigsClientCreateAndStartMigrationResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createAndStartMigration(ctx, resourceGroupName, namespaceName, configName, parameters, options) @@ -134,7 +137,8 @@ func (client *MigrationConfigsClient) BeginCreateAndStartMigration(ctx context.C // CreateAndStartMigration - Creates Migration configuration and starts migration of entities from Standard to Premium namespace // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-01-01-preview +// +// Generated from API version 2022-10-01-preview func (client *MigrationConfigsClient) createAndStartMigration(ctx context.Context, resourceGroupName string, namespaceName string, configName MigrationConfigurationName, parameters MigrationConfigProperties, options *MigrationConfigsClientBeginCreateAndStartMigrationOptions) (*http.Response, error) { req, err := client.createAndStartMigrationCreateRequest(ctx, resourceGroupName, namespaceName, configName, parameters, options) if err != nil { @@ -174,7 +178,7 @@ func (client *MigrationConfigsClient) createAndStartMigrationCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-01-01-preview") + reqQP.Set("api-version", "2022-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, parameters) @@ -182,11 +186,12 @@ func (client *MigrationConfigsClient) createAndStartMigrationCreateRequest(ctx c // Delete - Deletes a MigrationConfiguration // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-01-01-preview -// resourceGroupName - Name of the Resource group within the Azure subscription. -// namespaceName - The namespace name -// configName - The configuration name. Should always be "$default". -// options - MigrationConfigsClientDeleteOptions contains the optional parameters for the MigrationConfigsClient.Delete method. +// +// Generated from API version 2022-10-01-preview +// - resourceGroupName - Name of the Resource group within the Azure subscription. +// - namespaceName - The namespace name +// - configName - The configuration name. Should always be "$default". +// - options - MigrationConfigsClientDeleteOptions contains the optional parameters for the MigrationConfigsClient.Delete method. func (client *MigrationConfigsClient) Delete(ctx context.Context, resourceGroupName string, namespaceName string, configName MigrationConfigurationName, options *MigrationConfigsClientDeleteOptions) (MigrationConfigsClientDeleteResponse, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, namespaceName, configName, options) if err != nil { @@ -226,7 +231,7 @@ func (client *MigrationConfigsClient) deleteCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-01-01-preview") + reqQP.Set("api-version", "2022-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -234,11 +239,12 @@ func (client *MigrationConfigsClient) deleteCreateRequest(ctx context.Context, r // Get - Retrieves Migration Config // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-01-01-preview -// resourceGroupName - Name of the Resource group within the Azure subscription. -// namespaceName - The namespace name -// configName - The configuration name. Should always be "$default". -// options - MigrationConfigsClientGetOptions contains the optional parameters for the MigrationConfigsClient.Get method. +// +// Generated from API version 2022-10-01-preview +// - resourceGroupName - Name of the Resource group within the Azure subscription. +// - namespaceName - The namespace name +// - configName - The configuration name. Should always be "$default". +// - options - MigrationConfigsClientGetOptions contains the optional parameters for the MigrationConfigsClient.Get method. func (client *MigrationConfigsClient) Get(ctx context.Context, resourceGroupName string, namespaceName string, configName MigrationConfigurationName, options *MigrationConfigsClientGetOptions) (MigrationConfigsClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, namespaceName, configName, options) if err != nil { @@ -278,7 +284,7 @@ func (client *MigrationConfigsClient) getCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-01-01-preview") + reqQP.Set("api-version", "2022-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -294,11 +300,12 @@ func (client *MigrationConfigsClient) getHandleResponse(resp *http.Response) (Mi } // NewListPager - Gets all migrationConfigurations -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-01-01-preview -// resourceGroupName - Name of the Resource group within the Azure subscription. -// namespaceName - The namespace name -// options - MigrationConfigsClientListOptions contains the optional parameters for the MigrationConfigsClient.List method. +// +// Generated from API version 2022-10-01-preview +// - resourceGroupName - Name of the Resource group within the Azure subscription. +// - namespaceName - The namespace name +// - options - MigrationConfigsClientListOptions contains the optional parameters for the MigrationConfigsClient.NewListPager +// method. func (client *MigrationConfigsClient) NewListPager(resourceGroupName string, namespaceName string, options *MigrationConfigsClientListOptions) *runtime.Pager[MigrationConfigsClientListResponse] { return runtime.NewPager(runtime.PagingHandler[MigrationConfigsClientListResponse]{ More: func(page MigrationConfigsClientListResponse) bool { @@ -347,7 +354,7 @@ func (client *MigrationConfigsClient) listCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-01-01-preview") + reqQP.Set("api-version", "2022-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -364,11 +371,12 @@ func (client *MigrationConfigsClient) listHandleResponse(resp *http.Response) (M // Revert - This operation reverts Migration // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-01-01-preview -// resourceGroupName - Name of the Resource group within the Azure subscription. -// namespaceName - The namespace name -// configName - The configuration name. Should always be "$default". -// options - MigrationConfigsClientRevertOptions contains the optional parameters for the MigrationConfigsClient.Revert method. +// +// Generated from API version 2022-10-01-preview +// - resourceGroupName - Name of the Resource group within the Azure subscription. +// - namespaceName - The namespace name +// - configName - The configuration name. Should always be "$default". +// - options - MigrationConfigsClientRevertOptions contains the optional parameters for the MigrationConfigsClient.Revert method. func (client *MigrationConfigsClient) Revert(ctx context.Context, resourceGroupName string, namespaceName string, configName MigrationConfigurationName, options *MigrationConfigsClientRevertOptions) (MigrationConfigsClientRevertResponse, error) { req, err := client.revertCreateRequest(ctx, resourceGroupName, namespaceName, configName, options) if err != nil { @@ -408,7 +416,7 @@ func (client *MigrationConfigsClient) revertCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-01-01-preview") + reqQP.Set("api-version", "2022-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/servicebus/armservicebus/migrationconfigs_client_example_test.go b/sdk/resourcemanager/servicebus/armservicebus/migrationconfigs_client_example_test.go new file mode 100644 index 000000000000..7e417e1266a4 --- /dev/null +++ b/sdk/resourcemanager/servicebus/armservicebus/migrationconfigs_client_example_test.go @@ -0,0 +1,181 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armservicebus_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicebus/armservicebus/v2" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5e24fa8e30bff0cb321494a0b550b1c1282a8a3c/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples/Migrationconfigurations/SBMigrationconfigurationList.json +func ExampleMigrationConfigsClient_NewListPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armservicebus.NewMigrationConfigsClient("SubscriptionId", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListPager("ResourceGroup", "sdk-Namespace-9259", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.MigrationConfigListResult = armservicebus.MigrationConfigListResult{ + // Value: []*armservicebus.MigrationConfigProperties{ + // { + // Name: to.Ptr("sdk-Namespace-9259"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces/migrationconfigurations"), + // ID: to.Ptr("/subscriptions/SubscriptionId/resourceGroups/ResourceGroup/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-9259/migrationConfigs/sdk-Namespace-9259"), + // Properties: &armservicebus.MigrationConfigPropertiesProperties{ + // MigrationState: to.Ptr("Active"), + // PostMigrationName: to.Ptr("sdk-PostMigration-9423"), + // ProvisioningState: to.Ptr("Succeeded"), + // TargetNamespace: to.Ptr("/subscriptions/SubscriptionId/resourceGroups/ResourceGroup/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-7454"), + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5e24fa8e30bff0cb321494a0b550b1c1282a8a3c/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples/Migrationconfigurations/SBMigrationconfigurationCreateAndStartMigration.json +func ExampleMigrationConfigsClient_BeginCreateAndStartMigration() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armservicebus.NewMigrationConfigsClient("SubscriptionId", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreateAndStartMigration(ctx, "ResourceGroup", "sdk-Namespace-41", armservicebus.MigrationConfigurationNameDefault, armservicebus.MigrationConfigProperties{ + Properties: &armservicebus.MigrationConfigPropertiesProperties{ + PostMigrationName: to.Ptr("sdk-PostMigration-5919"), + TargetNamespace: to.Ptr("/subscriptions/SubscriptionId/resourceGroups/ResourceGroup/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-4028"), + }, + }, 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.MigrationConfigProperties = armservicebus.MigrationConfigProperties{ + // Name: to.Ptr("sdk-Namespace-41"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs"), + // ID: to.Ptr("/subscriptions/SubscriptionId/resourceGroups/ResourceGroup/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-41/migrationConfigs/$default"), + // Properties: &armservicebus.MigrationConfigPropertiesProperties{ + // MigrationState: to.Ptr("Initiating"), + // PostMigrationName: to.Ptr("sdk-PostMigration-5919"), + // ProvisioningState: to.Ptr("Succeeded"), + // TargetNamespace: to.Ptr("/subscriptions/SubscriptionId/resourceGroups/ResourceGroup/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-4028"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5e24fa8e30bff0cb321494a0b550b1c1282a8a3c/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples/Migrationconfigurations/SBMigrationconfigurationDelete.json +func ExampleMigrationConfigsClient_Delete() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armservicebus.NewMigrationConfigsClient("SubscriptionId", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + _, err = client.Delete(ctx, "ResourceGroup", "sdk-Namespace-41", armservicebus.MigrationConfigurationNameDefault, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5e24fa8e30bff0cb321494a0b550b1c1282a8a3c/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples/Migrationconfigurations/SBMigrationconfigurationGet.json +func ExampleMigrationConfigsClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armservicebus.NewMigrationConfigsClient("SubscriptionId", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "ResourceGroup", "sdk-Namespace-41", armservicebus.MigrationConfigurationNameDefault, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.MigrationConfigProperties = armservicebus.MigrationConfigProperties{ + // Name: to.Ptr("sdk-Namespace-41"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs"), + // ID: to.Ptr("/subscriptions/SubscriptionId/resourceGroups/ResourceGroup/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-41/migrationConfigs/$default"), + // Properties: &armservicebus.MigrationConfigPropertiesProperties{ + // MigrationState: to.Ptr("Active"), + // PendingReplicationOperationsCount: to.Ptr[int64](0), + // PostMigrationName: to.Ptr("sdk-PostMigration-5919"), + // ProvisioningState: to.Ptr("Succeeded"), + // TargetNamespace: to.Ptr("/subscriptions/SubscriptionId/resourceGroups/ResourceGroup/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-4028"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5e24fa8e30bff0cb321494a0b550b1c1282a8a3c/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples/Migrationconfigurations/SBMigrationconfigurationCompleteMigration.json +func ExampleMigrationConfigsClient_CompleteMigration() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armservicebus.NewMigrationConfigsClient("SubscriptionId", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + _, err = client.CompleteMigration(ctx, "ResourceGroup", "sdk-Namespace-41", armservicebus.MigrationConfigurationNameDefault, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5e24fa8e30bff0cb321494a0b550b1c1282a8a3c/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples/Migrationconfigurations/SBMigrationconfigurationRevert.json +func ExampleMigrationConfigsClient_Revert() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armservicebus.NewMigrationConfigsClient("SubscriptionId", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + _, err = client.Revert(ctx, "ResourceGroup", "sdk-Namespace-41", armservicebus.MigrationConfigurationNameDefault, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } +} diff --git a/sdk/resourcemanager/servicebus/armservicebus/migrationconfigs_live_test.go b/sdk/resourcemanager/servicebus/armservicebus/migrationconfigs_live_test.go deleted file mode 100644 index 7ec453d981c1..000000000000 --- a/sdk/resourcemanager/servicebus/armservicebus/migrationconfigs_live_test.go +++ /dev/null @@ -1,143 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armservicebus_test - -import ( - "context" - "fmt" - "testing" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/testutil" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicebus/armservicebus/v2" - "github.com/stretchr/testify/suite" -) - -type MigrationconfigsTestSuite struct { - suite.Suite - - ctx context.Context - cred azcore.TokenCredential - options *arm.ClientOptions - namespaceName string - namespaceName2 string - postMigrationName string - recondNamespaceId string - location string - resourceGroupName string - subscriptionId string -} - -func (testsuite *MigrationconfigsTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/servicebus/armservicebus/testdata") - testsuite.ctx = context.Background() - testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) - testsuite.namespaceName = testutil.GenerateAlphaNumericID(testsuite.T(), "sbnamespacemc", 6) - testsuite.namespaceName2 = testutil.GenerateAlphaNumericID(testsuite.T(), "sbnamespacetwomc", 6) - testsuite.postMigrationName = testutil.GenerateAlphaNumericID(testsuite.T(), "postmigrationna", 6) - testsuite.location = testutil.GetEnv("LOCATION", "westus") - testsuite.resourceGroupName = testutil.GetEnv("RESOURCE_GROUP_NAME", "scenarioTestTempGroup") - testsuite.subscriptionId = testutil.GetEnv("AZURE_SUBSCRIPTION_ID", "00000000-0000-0000-0000-000000000000") - - resourceGroup, _, err := testutil.CreateResourceGroup(testsuite.ctx, testsuite.subscriptionId, testsuite.cred, testsuite.options, testsuite.location) - testsuite.Require().NoError(err) - testsuite.resourceGroupName = *resourceGroup.Name - testsuite.Prepare() -} - -func (testsuite *MigrationconfigsTestSuite) TearDownSuite() { - _, err := testutil.DeleteResourceGroup(testsuite.ctx, testsuite.subscriptionId, testsuite.cred, testsuite.options, testsuite.resourceGroupName) - testsuite.Require().NoError(err) - testutil.StopRecording(testsuite.T()) -} - -func TestMigrationconfigsTestSuite(t *testing.T) { - suite.Run(t, new(MigrationconfigsTestSuite)) -} - -func (testsuite *MigrationconfigsTestSuite) Prepare() { - var err error - // From step Namespace_Create - fmt.Println("Call operation: Namespaces_CreateOrUpdate") - namespacesClient, err := armservicebus.NewNamespacesClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) - testsuite.Require().NoError(err) - namespacesClientCreateOrUpdateResponsePoller, err := namespacesClient.BeginCreateOrUpdate(testsuite.ctx, testsuite.resourceGroupName, testsuite.namespaceName, armservicebus.SBNamespace{ - Location: to.Ptr(testsuite.location), - Tags: map[string]*string{ - "tag1": to.Ptr("value1"), - "tag2": to.Ptr("value2"), - }, - SKU: &armservicebus.SBSKU{ - Name: to.Ptr(armservicebus.SKUNameStandard), - Tier: to.Ptr(armservicebus.SKUTierStandard), - }, - }, nil) - testsuite.Require().NoError(err) - _, err = testutil.PollForTest(testsuite.ctx, namespacesClientCreateOrUpdateResponsePoller) - testsuite.Require().NoError(err) - - // From step Namespace_Create2 - fmt.Println("Call operation: Namespaces_CreateOrUpdate") - namespacesClientCreateOrUpdateResponsePoller, err = namespacesClient.BeginCreateOrUpdate(testsuite.ctx, testsuite.resourceGroupName, testsuite.namespaceName2, armservicebus.SBNamespace{ - Location: to.Ptr("westus2"), - SKU: &armservicebus.SBSKU{ - Name: to.Ptr(armservicebus.SKUNamePremium), - Tier: to.Ptr(armservicebus.SKUTierPremium), - }, - }, nil) - testsuite.Require().NoError(err) - var namespacesClientCreateOrUpdateResponse *armservicebus.NamespacesClientCreateOrUpdateResponse - namespacesClientCreateOrUpdateResponse, err = testutil.PollForTest(testsuite.ctx, namespacesClientCreateOrUpdateResponsePoller) - testsuite.Require().NoError(err) - testsuite.recondNamespaceId = *namespacesClientCreateOrUpdateResponse.ID -} - -// Microsoft.ServiceBus/namespaces/migrationConfigurations -func (testsuite *MigrationconfigsTestSuite) TestMigrationconfig() { - var err error - // From step MigrationConfig_Create - fmt.Println("Call operation: MigrationConfigs_Create") - migrationConfigsClient, err := armservicebus.NewMigrationConfigsClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) - testsuite.Require().NoError(err) - migrationConfigsClientCreateAndStartMigrationResponsePoller, err := migrationConfigsClient.BeginCreateAndStartMigration(testsuite.ctx, testsuite.resourceGroupName, testsuite.namespaceName, armservicebus.MigrationConfigurationNameDefault, armservicebus.MigrationConfigProperties{ - Properties: &armservicebus.MigrationConfigPropertiesProperties{ - PostMigrationName: to.Ptr(testsuite.postMigrationName), - TargetNamespace: to.Ptr(testsuite.recondNamespaceId), - }, - }, nil) - testsuite.Require().NoError(err) - _, err = testutil.PollForTest(testsuite.ctx, migrationConfigsClientCreateAndStartMigrationResponsePoller) - testsuite.Require().NoError(err) - - // From step MigrationConfig_Get - fmt.Println("Call operation: MigrationConfigs_Get") - _, err = migrationConfigsClient.Get(testsuite.ctx, testsuite.resourceGroupName, testsuite.namespaceName, armservicebus.MigrationConfigurationNameDefault, nil) - testsuite.Require().NoError(err) - - // From step MigrationConfig_List - fmt.Println("Call operation: MigrationConfigs_List") - migrationConfigsClientNewListPager := migrationConfigsClient.NewListPager(testsuite.resourceGroupName, testsuite.namespaceName, nil) - for migrationConfigsClientNewListPager.More() { - _, err := migrationConfigsClientNewListPager.NextPage(testsuite.ctx) - testsuite.Require().NoError(err) - break - } - - // From step MigrationConfig_Revert - fmt.Println("Call operation: MigrationConfigs_Revert") - _, err = migrationConfigsClient.Revert(testsuite.ctx, testsuite.resourceGroupName, testsuite.namespaceName, armservicebus.MigrationConfigurationNameDefault, nil) - testsuite.Require().NoError(err) - - // From step MigrationConfig_CompleteMigration - fmt.Println("Call operation: MigrationConfigs_CompleteMigration") - _, err = migrationConfigsClient.CompleteMigration(testsuite.ctx, testsuite.resourceGroupName, testsuite.namespaceName, armservicebus.MigrationConfigurationNameDefault, nil) - testsuite.Require().NoError(err) -} diff --git a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_models.go b/sdk/resourcemanager/servicebus/armservicebus/models.go similarity index 97% rename from sdk/resourcemanager/servicebus/armservicebus/zz_generated_models.go rename to sdk/resourcemanager/servicebus/armservicebus/models.go index d55c108f78fd..087326b7725f 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_models.go +++ b/sdk/resourcemanager/servicebus/armservicebus/models.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armservicebus @@ -200,7 +201,7 @@ type DisasterRecoveryConfigsClientGetOptions struct { // placeholder for future optional parameters } -// DisasterRecoveryConfigsClientListAuthorizationRulesOptions contains the optional parameters for the DisasterRecoveryConfigsClient.ListAuthorizationRules +// DisasterRecoveryConfigsClientListAuthorizationRulesOptions contains the optional parameters for the DisasterRecoveryConfigsClient.NewListAuthorizationRulesPager // method. type DisasterRecoveryConfigsClientListAuthorizationRulesOptions struct { // placeholder for future optional parameters @@ -212,7 +213,8 @@ type DisasterRecoveryConfigsClientListKeysOptions struct { // placeholder for future optional parameters } -// DisasterRecoveryConfigsClientListOptions contains the optional parameters for the DisasterRecoveryConfigsClient.List method. +// DisasterRecoveryConfigsClientListOptions contains the optional parameters for the DisasterRecoveryConfigsClient.NewListPager +// method. type DisasterRecoveryConfigsClientListOptions struct { // placeholder for future optional parameters } @@ -220,7 +222,7 @@ type DisasterRecoveryConfigsClientListOptions struct { // Encryption - Properties to configure Encryption type Encryption struct { // Enumerates the possible value of keySource for Encryption - KeySource *KeySource `json:"keySource,omitempty"` + KeySource *string `json:"keySource,omitempty"` // Properties of KeyVault KeyVaultProperties []*KeyVaultProperties `json:"keyVaultProperties,omitempty"` @@ -232,7 +234,7 @@ type Encryption struct { // ErrorAdditionalInfo - The resource management error additional info. type ErrorAdditionalInfo struct { // READ-ONLY; The additional info. - Info interface{} `json:"info,omitempty" azure:"ro"` + Info any `json:"info,omitempty" azure:"ro"` // READ-ONLY; The additional info type. Type *string `json:"type,omitempty" azure:"ro"` @@ -395,7 +397,7 @@ type MigrationConfigsClientGetOptions struct { // placeholder for future optional parameters } -// MigrationConfigsClientListOptions contains the optional parameters for the MigrationConfigsClient.List method. +// MigrationConfigsClientListOptions contains the optional parameters for the MigrationConfigsClient.NewListPager method. type MigrationConfigsClientListOptions struct { // placeholder for future optional parameters } @@ -476,13 +478,13 @@ type NamespacesClientGetOptions struct { // placeholder for future optional parameters } -// NamespacesClientListAuthorizationRulesOptions contains the optional parameters for the NamespacesClient.ListAuthorizationRules +// NamespacesClientListAuthorizationRulesOptions contains the optional parameters for the NamespacesClient.NewListAuthorizationRulesPager // method. type NamespacesClientListAuthorizationRulesOptions struct { // placeholder for future optional parameters } -// NamespacesClientListByResourceGroupOptions contains the optional parameters for the NamespacesClient.ListByResourceGroup +// NamespacesClientListByResourceGroupOptions contains the optional parameters for the NamespacesClient.NewListByResourceGroupPager // method. type NamespacesClientListByResourceGroupOptions struct { // placeholder for future optional parameters @@ -493,13 +495,13 @@ type NamespacesClientListKeysOptions struct { // placeholder for future optional parameters } -// NamespacesClientListNetworkRuleSetsOptions contains the optional parameters for the NamespacesClient.ListNetworkRuleSets +// NamespacesClientListNetworkRuleSetsOptions contains the optional parameters for the NamespacesClient.NewListNetworkRuleSetsPager // method. type NamespacesClientListNetworkRuleSetsOptions struct { // placeholder for future optional parameters } -// NamespacesClientListOptions contains the optional parameters for the NamespacesClient.List method. +// NamespacesClientListOptions contains the optional parameters for the NamespacesClient.NewListPager method. type NamespacesClientListOptions struct { // placeholder for future optional parameters } @@ -574,7 +576,7 @@ type Operation struct { Origin *string `json:"origin,omitempty"` // Properties of the operation - Properties interface{} `json:"properties,omitempty"` + Properties any `json:"properties,omitempty"` // READ-ONLY; Operation name: {provider}/{resource}/{operation} Name *string `json:"name,omitempty" azure:"ro"` @@ -605,7 +607,7 @@ type OperationListResult struct { Value []*Operation `json:"value,omitempty" azure:"ro"` } -// OperationsClientListOptions contains the optional parameters for the OperationsClient.List method. +// OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method. type OperationsClientListOptions struct { // placeholder for future optional parameters } @@ -677,7 +679,7 @@ type PrivateEndpointConnectionsClientGetOptions struct { // placeholder for future optional parameters } -// PrivateEndpointConnectionsClientListOptions contains the optional parameters for the PrivateEndpointConnectionsClient.List +// PrivateEndpointConnectionsClientListOptions contains the optional parameters for the PrivateEndpointConnectionsClient.NewListPager // method. type PrivateEndpointConnectionsClientListOptions struct { // placeholder for future optional parameters @@ -770,13 +772,13 @@ type QueuesClientGetOptions struct { // placeholder for future optional parameters } -// QueuesClientListAuthorizationRulesOptions contains the optional parameters for the QueuesClient.ListAuthorizationRules +// QueuesClientListAuthorizationRulesOptions contains the optional parameters for the QueuesClient.NewListAuthorizationRulesPager // method. type QueuesClientListAuthorizationRulesOptions struct { // placeholder for future optional parameters } -// QueuesClientListByNamespaceOptions contains the optional parameters for the QueuesClient.ListByNamespace method. +// QueuesClientListByNamespaceOptions contains the optional parameters for the QueuesClient.NewListByNamespacePager method. type QueuesClientListByNamespaceOptions struct { // Skip is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, // the value of the nextLink element will include a skip parameter that specifies @@ -897,7 +899,8 @@ type RulesClientGetOptions struct { // placeholder for future optional parameters } -// RulesClientListBySubscriptionsOptions contains the optional parameters for the RulesClient.ListBySubscriptions method. +// RulesClientListBySubscriptionsOptions contains the optional parameters for the RulesClient.NewListBySubscriptionsPager +// method. type RulesClientListBySubscriptionsOptions struct { // Skip is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, // the value of the nextLink element will include a skip parameter that specifies @@ -1008,6 +1011,10 @@ type SBNamespaceProperties struct { // The minimum TLS version for the cluster to support, e.g. '1.2' MinimumTLSVersion *TLSVersion `json:"minimumTlsVersion,omitempty"` + // The number of partitions of a Service Bus namespace. This property is only applicable to Premium SKU namespaces. The default + // value is 1 and possible values are 1, 2 and 4 + PremiumMessagingPartitions *int32 `json:"premiumMessagingPartitions,omitempty"` + // List of private endpoint connections. PrivateEndpointConnections []*PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` @@ -1205,7 +1212,10 @@ type SBSKU struct { // REQUIRED; Name of this SKU. Name *SKUName `json:"name,omitempty"` - // The specified messaging units for the tier. For Premium tier, capacity are 1,2 and 4. + // Messaging units for your service bus premium namespace. Valid capacities are {1, 2, 4, 8, 16} multiples of your properties.premiumMessagingPartitions + // setting. For example, If + // properties.premiumMessagingPartitions is 1 then possible capacity values are 1, 2, 4, 8, and 16. If properties.premiumMessagingPartitions + // is 4 then possible capacity values are 4, 8, 16, 32 and 64 Capacity *int32 `json:"capacity,omitempty"` // The billing tier of this particular SKU. @@ -1437,7 +1447,8 @@ type SubscriptionsClientGetOptions struct { // placeholder for future optional parameters } -// SubscriptionsClientListByTopicOptions contains the optional parameters for the SubscriptionsClient.ListByTopic method. +// SubscriptionsClientListByTopicOptions contains the optional parameters for the SubscriptionsClient.NewListByTopicPager +// method. type SubscriptionsClientListByTopicOptions struct { // Skip is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, // the value of the nextLink element will include a skip parameter that specifies @@ -1500,13 +1511,13 @@ type TopicsClientGetOptions struct { // placeholder for future optional parameters } -// TopicsClientListAuthorizationRulesOptions contains the optional parameters for the TopicsClient.ListAuthorizationRules +// TopicsClientListAuthorizationRulesOptions contains the optional parameters for the TopicsClient.NewListAuthorizationRulesPager // method. type TopicsClientListAuthorizationRulesOptions struct { // placeholder for future optional parameters } -// TopicsClientListByNamespaceOptions contains the optional parameters for the TopicsClient.ListByNamespace method. +// TopicsClientListByNamespaceOptions contains the optional parameters for the TopicsClient.NewListByNamespacePager method. type TopicsClientListByNamespaceOptions struct { // Skip is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, // the value of the nextLink element will include a skip parameter that specifies diff --git a/sdk/resourcemanager/servicebus/armservicebus/models_serde.go b/sdk/resourcemanager/servicebus/armservicebus/models_serde.go new file mode 100644 index 000000000000..83dd3388e361 --- /dev/null +++ b/sdk/resourcemanager/servicebus/armservicebus/models_serde.go @@ -0,0 +1,2880 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armservicebus + +import ( + "encoding/json" + "fmt" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "reflect" +) + +// MarshalJSON implements the json.Marshaller interface for type AccessKeys. +func (a AccessKeys) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "aliasPrimaryConnectionString", a.AliasPrimaryConnectionString) + populate(objectMap, "aliasSecondaryConnectionString", a.AliasSecondaryConnectionString) + populate(objectMap, "keyName", a.KeyName) + populate(objectMap, "primaryConnectionString", a.PrimaryConnectionString) + populate(objectMap, "primaryKey", a.PrimaryKey) + populate(objectMap, "secondaryConnectionString", a.SecondaryConnectionString) + populate(objectMap, "secondaryKey", a.SecondaryKey) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AccessKeys. +func (a *AccessKeys) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "aliasPrimaryConnectionString": + err = unpopulate(val, "AliasPrimaryConnectionString", &a.AliasPrimaryConnectionString) + delete(rawMsg, key) + case "aliasSecondaryConnectionString": + err = unpopulate(val, "AliasSecondaryConnectionString", &a.AliasSecondaryConnectionString) + delete(rawMsg, key) + case "keyName": + err = unpopulate(val, "KeyName", &a.KeyName) + delete(rawMsg, key) + case "primaryConnectionString": + err = unpopulate(val, "PrimaryConnectionString", &a.PrimaryConnectionString) + delete(rawMsg, key) + case "primaryKey": + err = unpopulate(val, "PrimaryKey", &a.PrimaryKey) + delete(rawMsg, key) + case "secondaryConnectionString": + err = unpopulate(val, "SecondaryConnectionString", &a.SecondaryConnectionString) + delete(rawMsg, key) + case "secondaryKey": + err = unpopulate(val, "SecondaryKey", &a.SecondaryKey) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type Action. +func (a Action) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "compatibilityLevel", a.CompatibilityLevel) + populate(objectMap, "requiresPreprocessing", a.RequiresPreprocessing) + populate(objectMap, "sqlExpression", a.SQLExpression) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Action. +func (a *Action) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "compatibilityLevel": + err = unpopulate(val, "CompatibilityLevel", &a.CompatibilityLevel) + delete(rawMsg, key) + case "requiresPreprocessing": + err = unpopulate(val, "RequiresPreprocessing", &a.RequiresPreprocessing) + delete(rawMsg, key) + case "sqlExpression": + err = unpopulate(val, "SQLExpression", &a.SQLExpression) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ArmDisasterRecovery. +func (a ArmDisasterRecovery) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", a.ID) + populate(objectMap, "location", a.Location) + populate(objectMap, "name", a.Name) + populate(objectMap, "properties", a.Properties) + populate(objectMap, "systemData", a.SystemData) + populate(objectMap, "type", a.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ArmDisasterRecovery. +func (a *ArmDisasterRecovery) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &a.ID) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &a.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &a.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &a.Properties) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &a.SystemData) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &a.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ArmDisasterRecoveryListResult. +func (a ArmDisasterRecoveryListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", a.NextLink) + populate(objectMap, "value", a.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ArmDisasterRecoveryListResult. +func (a *ArmDisasterRecoveryListResult) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &a.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &a.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ArmDisasterRecoveryProperties. +func (a ArmDisasterRecoveryProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "alternateName", a.AlternateName) + populate(objectMap, "partnerNamespace", a.PartnerNamespace) + populate(objectMap, "pendingReplicationOperationsCount", a.PendingReplicationOperationsCount) + populate(objectMap, "provisioningState", a.ProvisioningState) + populate(objectMap, "role", a.Role) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ArmDisasterRecoveryProperties. +func (a *ArmDisasterRecoveryProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "alternateName": + err = unpopulate(val, "AlternateName", &a.AlternateName) + delete(rawMsg, key) + case "partnerNamespace": + err = unpopulate(val, "PartnerNamespace", &a.PartnerNamespace) + delete(rawMsg, key) + case "pendingReplicationOperationsCount": + err = unpopulate(val, "PendingReplicationOperationsCount", &a.PendingReplicationOperationsCount) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &a.ProvisioningState) + delete(rawMsg, key) + case "role": + err = unpopulate(val, "Role", &a.Role) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type CheckNameAvailability. +func (c CheckNameAvailability) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "name", c.Name) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CheckNameAvailability. +func (c *CheckNameAvailability) 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 "name": + err = unpopulate(val, "Name", &c.Name) + 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 CheckNameAvailabilityResult. +func (c CheckNameAvailabilityResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "message", c.Message) + populate(objectMap, "nameAvailable", c.NameAvailable) + populate(objectMap, "reason", c.Reason) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CheckNameAvailabilityResult. +func (c *CheckNameAvailabilityResult) 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 "message": + err = unpopulate(val, "Message", &c.Message) + delete(rawMsg, key) + case "nameAvailable": + err = unpopulate(val, "NameAvailable", &c.NameAvailable) + delete(rawMsg, key) + case "reason": + err = unpopulate(val, "Reason", &c.Reason) + 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 ConnectionState. +func (c ConnectionState) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "description", c.Description) + populate(objectMap, "status", c.Status) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ConnectionState. +func (c *ConnectionState) 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 "description": + err = unpopulate(val, "Description", &c.Description) + delete(rawMsg, key) + case "status": + err = unpopulate(val, "Status", &c.Status) + 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 CorrelationFilter. +func (c CorrelationFilter) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "contentType", c.ContentType) + populate(objectMap, "correlationId", c.CorrelationID) + populate(objectMap, "label", c.Label) + populate(objectMap, "messageId", c.MessageID) + populate(objectMap, "properties", c.Properties) + populate(objectMap, "replyTo", c.ReplyTo) + populate(objectMap, "replyToSessionId", c.ReplyToSessionID) + populate(objectMap, "requiresPreprocessing", c.RequiresPreprocessing) + populate(objectMap, "sessionId", c.SessionID) + populate(objectMap, "to", c.To) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CorrelationFilter. +func (c *CorrelationFilter) 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 "contentType": + err = unpopulate(val, "ContentType", &c.ContentType) + delete(rawMsg, key) + case "correlationId": + err = unpopulate(val, "CorrelationID", &c.CorrelationID) + delete(rawMsg, key) + case "label": + err = unpopulate(val, "Label", &c.Label) + delete(rawMsg, key) + case "messageId": + err = unpopulate(val, "MessageID", &c.MessageID) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &c.Properties) + delete(rawMsg, key) + case "replyTo": + err = unpopulate(val, "ReplyTo", &c.ReplyTo) + delete(rawMsg, key) + case "replyToSessionId": + err = unpopulate(val, "ReplyToSessionID", &c.ReplyToSessionID) + delete(rawMsg, key) + case "requiresPreprocessing": + err = unpopulate(val, "RequiresPreprocessing", &c.RequiresPreprocessing) + delete(rawMsg, key) + case "sessionId": + err = unpopulate(val, "SessionID", &c.SessionID) + delete(rawMsg, key) + case "to": + err = unpopulate(val, "To", &c.To) + 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 Encryption. +func (e Encryption) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + objectMap["keySource"] = "Microsoft.KeyVault" + populate(objectMap, "keyVaultProperties", e.KeyVaultProperties) + populate(objectMap, "requireInfrastructureEncryption", e.RequireInfrastructureEncryption) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Encryption. +func (e *Encryption) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", e, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "keySource": + err = unpopulate(val, "KeySource", &e.KeySource) + delete(rawMsg, key) + case "keyVaultProperties": + err = unpopulate(val, "KeyVaultProperties", &e.KeyVaultProperties) + delete(rawMsg, key) + case "requireInfrastructureEncryption": + err = unpopulate(val, "RequireInfrastructureEncryption", &e.RequireInfrastructureEncryption) + 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 ErrorAdditionalInfo. +func (e ErrorAdditionalInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "info", &e.Info) + populate(objectMap, "type", e.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ErrorAdditionalInfo. +func (e *ErrorAdditionalInfo) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", e, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "info": + err = unpopulate(val, "Info", &e.Info) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &e.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", e, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ErrorResponse. +func (e ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "error", e.Error) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ErrorResponse. +func (e *ErrorResponse) 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 "error": + err = unpopulate(val, "Error", &e.Error) + 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 ErrorResponseError. +func (e ErrorResponseError) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "additionalInfo", e.AdditionalInfo) + populate(objectMap, "code", e.Code) + populate(objectMap, "details", e.Details) + populate(objectMap, "message", e.Message) + populate(objectMap, "target", e.Target) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ErrorResponseError. +func (e *ErrorResponseError) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", e, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "additionalInfo": + err = unpopulate(val, "AdditionalInfo", &e.AdditionalInfo) + delete(rawMsg, key) + case "code": + err = unpopulate(val, "Code", &e.Code) + delete(rawMsg, key) + case "details": + err = unpopulate(val, "Details", &e.Details) + delete(rawMsg, key) + case "message": + err = unpopulate(val, "Message", &e.Message) + delete(rawMsg, key) + case "target": + err = unpopulate(val, "Target", &e.Target) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", e, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type FailoverProperties. +func (f FailoverProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "properties", f.Properties) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type FailoverProperties. +func (f *FailoverProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", f, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "properties": + err = unpopulate(val, "Properties", &f.Properties) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", f, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type FailoverPropertiesProperties. +func (f FailoverPropertiesProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "IsSafeFailover", f.IsSafeFailover) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type FailoverPropertiesProperties. +func (f *FailoverPropertiesProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", f, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "IsSafeFailover": + err = unpopulate(val, "IsSafeFailover", &f.IsSafeFailover) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", f, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type Identity. +func (i Identity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "principalId", i.PrincipalID) + populate(objectMap, "tenantId", i.TenantID) + populate(objectMap, "type", i.Type) + populate(objectMap, "userAssignedIdentities", i.UserAssignedIdentities) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Identity. +func (i *Identity) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "principalId": + err = unpopulate(val, "PrincipalID", &i.PrincipalID) + delete(rawMsg, key) + case "tenantId": + err = unpopulate(val, "TenantID", &i.TenantID) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &i.Type) + delete(rawMsg, key) + case "userAssignedIdentities": + err = unpopulate(val, "UserAssignedIdentities", &i.UserAssignedIdentities) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type KeyVaultProperties. +func (k KeyVaultProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "identity", k.Identity) + populate(objectMap, "keyName", k.KeyName) + populate(objectMap, "keyVaultUri", k.KeyVaultURI) + populate(objectMap, "keyVersion", k.KeyVersion) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type KeyVaultProperties. +func (k *KeyVaultProperties) 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", k, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "identity": + err = unpopulate(val, "Identity", &k.Identity) + delete(rawMsg, key) + case "keyName": + err = unpopulate(val, "KeyName", &k.KeyName) + delete(rawMsg, key) + case "keyVaultUri": + err = unpopulate(val, "KeyVaultURI", &k.KeyVaultURI) + delete(rawMsg, key) + case "keyVersion": + err = unpopulate(val, "KeyVersion", &k.KeyVersion) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", k, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type MessageCountDetails. +func (m MessageCountDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "activeMessageCount", m.ActiveMessageCount) + populate(objectMap, "deadLetterMessageCount", m.DeadLetterMessageCount) + populate(objectMap, "scheduledMessageCount", m.ScheduledMessageCount) + populate(objectMap, "transferDeadLetterMessageCount", m.TransferDeadLetterMessageCount) + populate(objectMap, "transferMessageCount", m.TransferMessageCount) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type MessageCountDetails. +func (m *MessageCountDetails) 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 "activeMessageCount": + err = unpopulate(val, "ActiveMessageCount", &m.ActiveMessageCount) + delete(rawMsg, key) + case "deadLetterMessageCount": + err = unpopulate(val, "DeadLetterMessageCount", &m.DeadLetterMessageCount) + delete(rawMsg, key) + case "scheduledMessageCount": + err = unpopulate(val, "ScheduledMessageCount", &m.ScheduledMessageCount) + delete(rawMsg, key) + case "transferDeadLetterMessageCount": + err = unpopulate(val, "TransferDeadLetterMessageCount", &m.TransferDeadLetterMessageCount) + delete(rawMsg, key) + case "transferMessageCount": + err = unpopulate(val, "TransferMessageCount", &m.TransferMessageCount) + 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 MigrationConfigListResult. +func (m MigrationConfigListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", m.NextLink) + populate(objectMap, "value", m.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type MigrationConfigListResult. +func (m *MigrationConfigListResult) 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 "nextLink": + err = unpopulate(val, "NextLink", &m.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &m.Value) + 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 MigrationConfigProperties. +func (m MigrationConfigProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", m.ID) + populate(objectMap, "location", m.Location) + populate(objectMap, "name", m.Name) + populate(objectMap, "properties", m.Properties) + populate(objectMap, "systemData", m.SystemData) + populate(objectMap, "type", m.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type MigrationConfigProperties. +func (m *MigrationConfigProperties) 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 "id": + err = unpopulate(val, "ID", &m.ID) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &m.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &m.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &m.Properties) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &m.SystemData) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &m.Type) + 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 MigrationConfigPropertiesProperties. +func (m MigrationConfigPropertiesProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "migrationState", m.MigrationState) + populate(objectMap, "pendingReplicationOperationsCount", m.PendingReplicationOperationsCount) + populate(objectMap, "postMigrationName", m.PostMigrationName) + populate(objectMap, "provisioningState", m.ProvisioningState) + populate(objectMap, "targetNamespace", m.TargetNamespace) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type MigrationConfigPropertiesProperties. +func (m *MigrationConfigPropertiesProperties) 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 "migrationState": + err = unpopulate(val, "MigrationState", &m.MigrationState) + delete(rawMsg, key) + case "pendingReplicationOperationsCount": + err = unpopulate(val, "PendingReplicationOperationsCount", &m.PendingReplicationOperationsCount) + delete(rawMsg, key) + case "postMigrationName": + err = unpopulate(val, "PostMigrationName", &m.PostMigrationName) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &m.ProvisioningState) + delete(rawMsg, key) + case "targetNamespace": + err = unpopulate(val, "TargetNamespace", &m.TargetNamespace) + 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 NWRuleSetIPRules. +func (n NWRuleSetIPRules) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "action", n.Action) + populate(objectMap, "ipMask", n.IPMask) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type NWRuleSetIPRules. +func (n *NWRuleSetIPRules) 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", n, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "action": + err = unpopulate(val, "Action", &n.Action) + delete(rawMsg, key) + case "ipMask": + err = unpopulate(val, "IPMask", &n.IPMask) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", n, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type NWRuleSetVirtualNetworkRules. +func (n NWRuleSetVirtualNetworkRules) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "ignoreMissingVnetServiceEndpoint", n.IgnoreMissingVnetServiceEndpoint) + populate(objectMap, "subnet", n.Subnet) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type NWRuleSetVirtualNetworkRules. +func (n *NWRuleSetVirtualNetworkRules) 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", n, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "ignoreMissingVnetServiceEndpoint": + err = unpopulate(val, "IgnoreMissingVnetServiceEndpoint", &n.IgnoreMissingVnetServiceEndpoint) + delete(rawMsg, key) + case "subnet": + err = unpopulate(val, "Subnet", &n.Subnet) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", n, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type NetworkRuleSet. +func (n NetworkRuleSet) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", n.ID) + populate(objectMap, "location", n.Location) + populate(objectMap, "name", n.Name) + populate(objectMap, "properties", n.Properties) + populate(objectMap, "systemData", n.SystemData) + populate(objectMap, "type", n.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type NetworkRuleSet. +func (n *NetworkRuleSet) 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", n, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &n.ID) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &n.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &n.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &n.Properties) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &n.SystemData) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &n.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", n, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type NetworkRuleSetListResult. +func (n NetworkRuleSetListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", n.NextLink) + populate(objectMap, "value", n.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type NetworkRuleSetListResult. +func (n *NetworkRuleSetListResult) 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", n, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &n.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &n.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", n, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type NetworkRuleSetProperties. +func (n NetworkRuleSetProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "defaultAction", n.DefaultAction) + populate(objectMap, "ipRules", n.IPRules) + populate(objectMap, "publicNetworkAccess", n.PublicNetworkAccess) + populate(objectMap, "trustedServiceAccessEnabled", n.TrustedServiceAccessEnabled) + populate(objectMap, "virtualNetworkRules", n.VirtualNetworkRules) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type NetworkRuleSetProperties. +func (n *NetworkRuleSetProperties) 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", n, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "defaultAction": + err = unpopulate(val, "DefaultAction", &n.DefaultAction) + delete(rawMsg, key) + case "ipRules": + err = unpopulate(val, "IPRules", &n.IPRules) + delete(rawMsg, key) + case "publicNetworkAccess": + err = unpopulate(val, "PublicNetworkAccess", &n.PublicNetworkAccess) + delete(rawMsg, key) + case "trustedServiceAccessEnabled": + err = unpopulate(val, "TrustedServiceAccessEnabled", &n.TrustedServiceAccessEnabled) + delete(rawMsg, key) + case "virtualNetworkRules": + err = unpopulate(val, "VirtualNetworkRules", &n.VirtualNetworkRules) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", n, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type Operation. +func (o Operation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "display", o.Display) + populate(objectMap, "isDataAction", o.IsDataAction) + populate(objectMap, "name", o.Name) + populate(objectMap, "origin", o.Origin) + populate(objectMap, "properties", &o.Properties) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Operation. +func (o *Operation) 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", o, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "display": + err = unpopulate(val, "Display", &o.Display) + delete(rawMsg, key) + case "isDataAction": + err = unpopulate(val, "IsDataAction", &o.IsDataAction) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &o.Name) + delete(rawMsg, key) + case "origin": + err = unpopulate(val, "Origin", &o.Origin) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &o.Properties) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", o, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "description", o.Description) + populate(objectMap, "operation", o.Operation) + populate(objectMap, "provider", o.Provider) + populate(objectMap, "resource", o.Resource) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type OperationDisplay. +func (o *OperationDisplay) 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", o, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "description": + err = unpopulate(val, "Description", &o.Description) + delete(rawMsg, key) + case "operation": + err = unpopulate(val, "Operation", &o.Operation) + delete(rawMsg, key) + case "provider": + err = unpopulate(val, "Provider", &o.Provider) + delete(rawMsg, key) + case "resource": + err = unpopulate(val, "Resource", &o.Resource) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", o, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type OperationListResult. +func (o OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", o.NextLink) + populate(objectMap, "value", o.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type OperationListResult. +func (o *OperationListResult) 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", o, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &o.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &o.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", o, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type PrivateEndpoint. +func (p PrivateEndpoint) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", p.ID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PrivateEndpoint. +func (p *PrivateEndpoint) 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", p, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &p.ID) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", p, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type PrivateEndpointConnection. +func (p PrivateEndpointConnection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", p.ID) + populate(objectMap, "location", p.Location) + populate(objectMap, "name", p.Name) + populate(objectMap, "properties", p.Properties) + populate(objectMap, "systemData", p.SystemData) + populate(objectMap, "type", p.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PrivateEndpointConnection. +func (p *PrivateEndpointConnection) 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", p, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &p.ID) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &p.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &p.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &p.Properties) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &p.SystemData) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &p.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", p, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type PrivateEndpointConnectionListResult. +func (p PrivateEndpointConnectionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", p.NextLink) + populate(objectMap, "value", p.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PrivateEndpointConnectionListResult. +func (p *PrivateEndpointConnectionListResult) 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", p, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &p.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &p.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", p, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type PrivateEndpointConnectionProperties. +func (p PrivateEndpointConnectionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "privateEndpoint", p.PrivateEndpoint) + populate(objectMap, "privateLinkServiceConnectionState", p.PrivateLinkServiceConnectionState) + populate(objectMap, "provisioningState", p.ProvisioningState) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PrivateEndpointConnectionProperties. +func (p *PrivateEndpointConnectionProperties) 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", p, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "privateEndpoint": + err = unpopulate(val, "PrivateEndpoint", &p.PrivateEndpoint) + delete(rawMsg, key) + case "privateLinkServiceConnectionState": + err = unpopulate(val, "PrivateLinkServiceConnectionState", &p.PrivateLinkServiceConnectionState) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &p.ProvisioningState) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", p, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type PrivateLinkResource. +func (p PrivateLinkResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", p.ID) + populate(objectMap, "name", p.Name) + populate(objectMap, "properties", p.Properties) + populate(objectMap, "type", p.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PrivateLinkResource. +func (p *PrivateLinkResource) 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", p, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &p.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &p.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &p.Properties) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &p.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", p, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type PrivateLinkResourceProperties. +func (p PrivateLinkResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "groupId", p.GroupID) + populate(objectMap, "requiredMembers", p.RequiredMembers) + populate(objectMap, "requiredZoneNames", p.RequiredZoneNames) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PrivateLinkResourceProperties. +func (p *PrivateLinkResourceProperties) 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", p, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "groupId": + err = unpopulate(val, "GroupID", &p.GroupID) + delete(rawMsg, key) + case "requiredMembers": + err = unpopulate(val, "RequiredMembers", &p.RequiredMembers) + delete(rawMsg, key) + case "requiredZoneNames": + err = unpopulate(val, "RequiredZoneNames", &p.RequiredZoneNames) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", p, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type PrivateLinkResourcesListResult. +func (p PrivateLinkResourcesListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", p.NextLink) + populate(objectMap, "value", p.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PrivateLinkResourcesListResult. +func (p *PrivateLinkResourcesListResult) 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", p, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &p.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &p.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", p, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ProxyResource. +func (p ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", p.ID) + populate(objectMap, "location", p.Location) + populate(objectMap, "name", p.Name) + populate(objectMap, "type", p.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ProxyResource. +func (p *ProxyResource) 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", p, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &p.ID) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &p.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &p.Name) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &p.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", p, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type RegenerateAccessKeyParameters. +func (r RegenerateAccessKeyParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "key", r.Key) + populate(objectMap, "keyType", r.KeyType) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RegenerateAccessKeyParameters. +func (r *RegenerateAccessKeyParameters) 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 "key": + err = unpopulate(val, "Key", &r.Key) + delete(rawMsg, key) + case "keyType": + err = unpopulate(val, "KeyType", &r.KeyType) + 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 Resource. +func (r Resource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", r.ID) + populate(objectMap, "name", r.Name) + populate(objectMap, "type", r.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Resource. +func (r *Resource) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", r, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &r.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &r.Name) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &r.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", r, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ResourceNamespacePatch. +func (r ResourceNamespacePatch) 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 ResourceNamespacePatch. +func (r *ResourceNamespacePatch) 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 Rule. +func (r Rule) 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, "properties", r.Properties) + populate(objectMap, "systemData", r.SystemData) + populate(objectMap, "type", r.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Rule. +func (r *Rule) 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 "properties": + err = unpopulate(val, "Properties", &r.Properties) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &r.SystemData) + 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 RuleListResult. +func (r RuleListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", r.NextLink) + populate(objectMap, "value", r.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RuleListResult. +func (r *RuleListResult) 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 "nextLink": + err = unpopulate(val, "NextLink", &r.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &r.Value) + 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 Ruleproperties. +func (r Ruleproperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "action", r.Action) + populate(objectMap, "correlationFilter", r.CorrelationFilter) + populate(objectMap, "filterType", r.FilterType) + populate(objectMap, "sqlFilter", r.SQLFilter) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Ruleproperties. +func (r *Ruleproperties) 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 "action": + err = unpopulate(val, "Action", &r.Action) + delete(rawMsg, key) + case "correlationFilter": + err = unpopulate(val, "CorrelationFilter", &r.CorrelationFilter) + delete(rawMsg, key) + case "filterType": + err = unpopulate(val, "FilterType", &r.FilterType) + delete(rawMsg, key) + case "sqlFilter": + err = unpopulate(val, "SQLFilter", &r.SQLFilter) + 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 SBAuthorizationRule. +func (s SBAuthorizationRule) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", s.ID) + populate(objectMap, "location", s.Location) + populate(objectMap, "name", s.Name) + populate(objectMap, "properties", s.Properties) + populate(objectMap, "systemData", s.SystemData) + populate(objectMap, "type", s.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SBAuthorizationRule. +func (s *SBAuthorizationRule) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &s.ID) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &s.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &s.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &s.Properties) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &s.SystemData) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &s.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SBAuthorizationRuleListResult. +func (s SBAuthorizationRuleListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", s.NextLink) + populate(objectMap, "value", s.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SBAuthorizationRuleListResult. +func (s *SBAuthorizationRuleListResult) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &s.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &s.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SBAuthorizationRuleProperties. +func (s SBAuthorizationRuleProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "rights", s.Rights) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SBAuthorizationRuleProperties. +func (s *SBAuthorizationRuleProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "rights": + err = unpopulate(val, "Rights", &s.Rights) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SBClientAffineProperties. +func (s SBClientAffineProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "clientId", s.ClientID) + populate(objectMap, "isDurable", s.IsDurable) + populate(objectMap, "isShared", s.IsShared) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SBClientAffineProperties. +func (s *SBClientAffineProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "clientId": + err = unpopulate(val, "ClientID", &s.ClientID) + delete(rawMsg, key) + case "isDurable": + err = unpopulate(val, "IsDurable", &s.IsDurable) + delete(rawMsg, key) + case "isShared": + err = unpopulate(val, "IsShared", &s.IsShared) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SBNamespace. +func (s SBNamespace) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", s.ID) + populate(objectMap, "identity", s.Identity) + populate(objectMap, "location", s.Location) + populate(objectMap, "name", s.Name) + populate(objectMap, "properties", s.Properties) + populate(objectMap, "sku", s.SKU) + populate(objectMap, "systemData", s.SystemData) + populate(objectMap, "tags", s.Tags) + populate(objectMap, "type", s.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SBNamespace. +func (s *SBNamespace) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &s.ID) + delete(rawMsg, key) + case "identity": + err = unpopulate(val, "Identity", &s.Identity) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &s.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &s.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &s.Properties) + delete(rawMsg, key) + case "sku": + err = unpopulate(val, "SKU", &s.SKU) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &s.SystemData) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &s.Tags) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &s.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SBNamespaceListResult. +func (s SBNamespaceListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", s.NextLink) + populate(objectMap, "value", s.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SBNamespaceListResult. +func (s *SBNamespaceListResult) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &s.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &s.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SBNamespaceProperties. +func (s SBNamespaceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "alternateName", s.AlternateName) + populateTimeRFC3339(objectMap, "createdAt", s.CreatedAt) + populate(objectMap, "disableLocalAuth", s.DisableLocalAuth) + populate(objectMap, "encryption", s.Encryption) + populate(objectMap, "metricId", s.MetricID) + populate(objectMap, "minimumTlsVersion", s.MinimumTLSVersion) + populate(objectMap, "premiumMessagingPartitions", s.PremiumMessagingPartitions) + populate(objectMap, "privateEndpointConnections", s.PrivateEndpointConnections) + populate(objectMap, "provisioningState", s.ProvisioningState) + populate(objectMap, "publicNetworkAccess", s.PublicNetworkAccess) + populate(objectMap, "serviceBusEndpoint", s.ServiceBusEndpoint) + populate(objectMap, "status", s.Status) + populateTimeRFC3339(objectMap, "updatedAt", s.UpdatedAt) + populate(objectMap, "zoneRedundant", s.ZoneRedundant) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SBNamespaceProperties. +func (s *SBNamespaceProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "alternateName": + err = unpopulate(val, "AlternateName", &s.AlternateName) + delete(rawMsg, key) + case "createdAt": + err = unpopulateTimeRFC3339(val, "CreatedAt", &s.CreatedAt) + delete(rawMsg, key) + case "disableLocalAuth": + err = unpopulate(val, "DisableLocalAuth", &s.DisableLocalAuth) + delete(rawMsg, key) + case "encryption": + err = unpopulate(val, "Encryption", &s.Encryption) + delete(rawMsg, key) + case "metricId": + err = unpopulate(val, "MetricID", &s.MetricID) + delete(rawMsg, key) + case "minimumTlsVersion": + err = unpopulate(val, "MinimumTLSVersion", &s.MinimumTLSVersion) + delete(rawMsg, key) + case "premiumMessagingPartitions": + err = unpopulate(val, "PremiumMessagingPartitions", &s.PremiumMessagingPartitions) + delete(rawMsg, key) + case "privateEndpointConnections": + err = unpopulate(val, "PrivateEndpointConnections", &s.PrivateEndpointConnections) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &s.ProvisioningState) + delete(rawMsg, key) + case "publicNetworkAccess": + err = unpopulate(val, "PublicNetworkAccess", &s.PublicNetworkAccess) + delete(rawMsg, key) + case "serviceBusEndpoint": + err = unpopulate(val, "ServiceBusEndpoint", &s.ServiceBusEndpoint) + delete(rawMsg, key) + case "status": + err = unpopulate(val, "Status", &s.Status) + delete(rawMsg, key) + case "updatedAt": + err = unpopulateTimeRFC3339(val, "UpdatedAt", &s.UpdatedAt) + delete(rawMsg, key) + case "zoneRedundant": + err = unpopulate(val, "ZoneRedundant", &s.ZoneRedundant) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SBNamespaceUpdateParameters. +func (s SBNamespaceUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", s.ID) + populate(objectMap, "identity", s.Identity) + populate(objectMap, "location", s.Location) + populate(objectMap, "name", s.Name) + populate(objectMap, "properties", s.Properties) + populate(objectMap, "sku", s.SKU) + populate(objectMap, "tags", s.Tags) + populate(objectMap, "type", s.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SBNamespaceUpdateParameters. +func (s *SBNamespaceUpdateParameters) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &s.ID) + delete(rawMsg, key) + case "identity": + err = unpopulate(val, "Identity", &s.Identity) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &s.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &s.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &s.Properties) + delete(rawMsg, key) + case "sku": + err = unpopulate(val, "SKU", &s.SKU) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &s.Tags) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &s.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SBNamespaceUpdateProperties. +func (s SBNamespaceUpdateProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "alternateName", s.AlternateName) + populateTimeRFC3339(objectMap, "createdAt", s.CreatedAt) + populate(objectMap, "disableLocalAuth", s.DisableLocalAuth) + populate(objectMap, "encryption", s.Encryption) + populate(objectMap, "metricId", s.MetricID) + populate(objectMap, "privateEndpointConnections", s.PrivateEndpointConnections) + populate(objectMap, "provisioningState", s.ProvisioningState) + populate(objectMap, "serviceBusEndpoint", s.ServiceBusEndpoint) + populate(objectMap, "status", s.Status) + populateTimeRFC3339(objectMap, "updatedAt", s.UpdatedAt) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SBNamespaceUpdateProperties. +func (s *SBNamespaceUpdateProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "alternateName": + err = unpopulate(val, "AlternateName", &s.AlternateName) + delete(rawMsg, key) + case "createdAt": + err = unpopulateTimeRFC3339(val, "CreatedAt", &s.CreatedAt) + delete(rawMsg, key) + case "disableLocalAuth": + err = unpopulate(val, "DisableLocalAuth", &s.DisableLocalAuth) + delete(rawMsg, key) + case "encryption": + err = unpopulate(val, "Encryption", &s.Encryption) + delete(rawMsg, key) + case "metricId": + err = unpopulate(val, "MetricID", &s.MetricID) + delete(rawMsg, key) + case "privateEndpointConnections": + err = unpopulate(val, "PrivateEndpointConnections", &s.PrivateEndpointConnections) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &s.ProvisioningState) + delete(rawMsg, key) + case "serviceBusEndpoint": + err = unpopulate(val, "ServiceBusEndpoint", &s.ServiceBusEndpoint) + delete(rawMsg, key) + case "status": + err = unpopulate(val, "Status", &s.Status) + delete(rawMsg, key) + case "updatedAt": + err = unpopulateTimeRFC3339(val, "UpdatedAt", &s.UpdatedAt) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SBQueue. +func (s SBQueue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", s.ID) + populate(objectMap, "location", s.Location) + populate(objectMap, "name", s.Name) + populate(objectMap, "properties", s.Properties) + populate(objectMap, "systemData", s.SystemData) + populate(objectMap, "type", s.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SBQueue. +func (s *SBQueue) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &s.ID) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &s.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &s.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &s.Properties) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &s.SystemData) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &s.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SBQueueListResult. +func (s SBQueueListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", s.NextLink) + populate(objectMap, "value", s.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SBQueueListResult. +func (s *SBQueueListResult) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &s.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &s.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SBQueueProperties. +func (s SBQueueProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateTimeRFC3339(objectMap, "accessedAt", s.AccessedAt) + populate(objectMap, "autoDeleteOnIdle", s.AutoDeleteOnIdle) + populate(objectMap, "countDetails", s.CountDetails) + populateTimeRFC3339(objectMap, "createdAt", s.CreatedAt) + populate(objectMap, "deadLetteringOnMessageExpiration", s.DeadLetteringOnMessageExpiration) + populate(objectMap, "defaultMessageTimeToLive", s.DefaultMessageTimeToLive) + populate(objectMap, "duplicateDetectionHistoryTimeWindow", s.DuplicateDetectionHistoryTimeWindow) + populate(objectMap, "enableBatchedOperations", s.EnableBatchedOperations) + populate(objectMap, "enableExpress", s.EnableExpress) + populate(objectMap, "enablePartitioning", s.EnablePartitioning) + populate(objectMap, "forwardDeadLetteredMessagesTo", s.ForwardDeadLetteredMessagesTo) + populate(objectMap, "forwardTo", s.ForwardTo) + populate(objectMap, "lockDuration", s.LockDuration) + populate(objectMap, "maxDeliveryCount", s.MaxDeliveryCount) + populate(objectMap, "maxMessageSizeInKilobytes", s.MaxMessageSizeInKilobytes) + populate(objectMap, "maxSizeInMegabytes", s.MaxSizeInMegabytes) + populate(objectMap, "messageCount", s.MessageCount) + populate(objectMap, "requiresDuplicateDetection", s.RequiresDuplicateDetection) + populate(objectMap, "requiresSession", s.RequiresSession) + populate(objectMap, "sizeInBytes", s.SizeInBytes) + populate(objectMap, "status", s.Status) + populateTimeRFC3339(objectMap, "updatedAt", s.UpdatedAt) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SBQueueProperties. +func (s *SBQueueProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "accessedAt": + err = unpopulateTimeRFC3339(val, "AccessedAt", &s.AccessedAt) + delete(rawMsg, key) + case "autoDeleteOnIdle": + err = unpopulate(val, "AutoDeleteOnIdle", &s.AutoDeleteOnIdle) + delete(rawMsg, key) + case "countDetails": + err = unpopulate(val, "CountDetails", &s.CountDetails) + delete(rawMsg, key) + case "createdAt": + err = unpopulateTimeRFC3339(val, "CreatedAt", &s.CreatedAt) + delete(rawMsg, key) + case "deadLetteringOnMessageExpiration": + err = unpopulate(val, "DeadLetteringOnMessageExpiration", &s.DeadLetteringOnMessageExpiration) + delete(rawMsg, key) + case "defaultMessageTimeToLive": + err = unpopulate(val, "DefaultMessageTimeToLive", &s.DefaultMessageTimeToLive) + delete(rawMsg, key) + case "duplicateDetectionHistoryTimeWindow": + err = unpopulate(val, "DuplicateDetectionHistoryTimeWindow", &s.DuplicateDetectionHistoryTimeWindow) + delete(rawMsg, key) + case "enableBatchedOperations": + err = unpopulate(val, "EnableBatchedOperations", &s.EnableBatchedOperations) + delete(rawMsg, key) + case "enableExpress": + err = unpopulate(val, "EnableExpress", &s.EnableExpress) + delete(rawMsg, key) + case "enablePartitioning": + err = unpopulate(val, "EnablePartitioning", &s.EnablePartitioning) + delete(rawMsg, key) + case "forwardDeadLetteredMessagesTo": + err = unpopulate(val, "ForwardDeadLetteredMessagesTo", &s.ForwardDeadLetteredMessagesTo) + delete(rawMsg, key) + case "forwardTo": + err = unpopulate(val, "ForwardTo", &s.ForwardTo) + delete(rawMsg, key) + case "lockDuration": + err = unpopulate(val, "LockDuration", &s.LockDuration) + delete(rawMsg, key) + case "maxDeliveryCount": + err = unpopulate(val, "MaxDeliveryCount", &s.MaxDeliveryCount) + delete(rawMsg, key) + case "maxMessageSizeInKilobytes": + err = unpopulate(val, "MaxMessageSizeInKilobytes", &s.MaxMessageSizeInKilobytes) + delete(rawMsg, key) + case "maxSizeInMegabytes": + err = unpopulate(val, "MaxSizeInMegabytes", &s.MaxSizeInMegabytes) + delete(rawMsg, key) + case "messageCount": + err = unpopulate(val, "MessageCount", &s.MessageCount) + delete(rawMsg, key) + case "requiresDuplicateDetection": + err = unpopulate(val, "RequiresDuplicateDetection", &s.RequiresDuplicateDetection) + delete(rawMsg, key) + case "requiresSession": + err = unpopulate(val, "RequiresSession", &s.RequiresSession) + delete(rawMsg, key) + case "sizeInBytes": + err = unpopulate(val, "SizeInBytes", &s.SizeInBytes) + delete(rawMsg, key) + case "status": + err = unpopulate(val, "Status", &s.Status) + delete(rawMsg, key) + case "updatedAt": + err = unpopulateTimeRFC3339(val, "UpdatedAt", &s.UpdatedAt) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SBSKU. +func (s SBSKU) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "capacity", s.Capacity) + populate(objectMap, "name", s.Name) + populate(objectMap, "tier", s.Tier) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SBSKU. +func (s *SBSKU) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "capacity": + err = unpopulate(val, "Capacity", &s.Capacity) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &s.Name) + delete(rawMsg, key) + case "tier": + err = unpopulate(val, "Tier", &s.Tier) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SBSubscription. +func (s SBSubscription) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", s.ID) + populate(objectMap, "location", s.Location) + populate(objectMap, "name", s.Name) + populate(objectMap, "properties", s.Properties) + populate(objectMap, "systemData", s.SystemData) + populate(objectMap, "type", s.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SBSubscription. +func (s *SBSubscription) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &s.ID) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &s.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &s.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &s.Properties) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &s.SystemData) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &s.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SBSubscriptionListResult. +func (s SBSubscriptionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", s.NextLink) + populate(objectMap, "value", s.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SBSubscriptionListResult. +func (s *SBSubscriptionListResult) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &s.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &s.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SBSubscriptionProperties. +func (s SBSubscriptionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateTimeRFC3339(objectMap, "accessedAt", s.AccessedAt) + populate(objectMap, "autoDeleteOnIdle", s.AutoDeleteOnIdle) + populate(objectMap, "clientAffineProperties", s.ClientAffineProperties) + populate(objectMap, "countDetails", s.CountDetails) + populateTimeRFC3339(objectMap, "createdAt", s.CreatedAt) + populate(objectMap, "deadLetteringOnFilterEvaluationExceptions", s.DeadLetteringOnFilterEvaluationExceptions) + populate(objectMap, "deadLetteringOnMessageExpiration", s.DeadLetteringOnMessageExpiration) + populate(objectMap, "defaultMessageTimeToLive", s.DefaultMessageTimeToLive) + populate(objectMap, "duplicateDetectionHistoryTimeWindow", s.DuplicateDetectionHistoryTimeWindow) + populate(objectMap, "enableBatchedOperations", s.EnableBatchedOperations) + populate(objectMap, "forwardDeadLetteredMessagesTo", s.ForwardDeadLetteredMessagesTo) + populate(objectMap, "forwardTo", s.ForwardTo) + populate(objectMap, "isClientAffine", s.IsClientAffine) + populate(objectMap, "lockDuration", s.LockDuration) + populate(objectMap, "maxDeliveryCount", s.MaxDeliveryCount) + populate(objectMap, "messageCount", s.MessageCount) + populate(objectMap, "requiresSession", s.RequiresSession) + populate(objectMap, "status", s.Status) + populateTimeRFC3339(objectMap, "updatedAt", s.UpdatedAt) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SBSubscriptionProperties. +func (s *SBSubscriptionProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "accessedAt": + err = unpopulateTimeRFC3339(val, "AccessedAt", &s.AccessedAt) + delete(rawMsg, key) + case "autoDeleteOnIdle": + err = unpopulate(val, "AutoDeleteOnIdle", &s.AutoDeleteOnIdle) + delete(rawMsg, key) + case "clientAffineProperties": + err = unpopulate(val, "ClientAffineProperties", &s.ClientAffineProperties) + delete(rawMsg, key) + case "countDetails": + err = unpopulate(val, "CountDetails", &s.CountDetails) + delete(rawMsg, key) + case "createdAt": + err = unpopulateTimeRFC3339(val, "CreatedAt", &s.CreatedAt) + delete(rawMsg, key) + case "deadLetteringOnFilterEvaluationExceptions": + err = unpopulate(val, "DeadLetteringOnFilterEvaluationExceptions", &s.DeadLetteringOnFilterEvaluationExceptions) + delete(rawMsg, key) + case "deadLetteringOnMessageExpiration": + err = unpopulate(val, "DeadLetteringOnMessageExpiration", &s.DeadLetteringOnMessageExpiration) + delete(rawMsg, key) + case "defaultMessageTimeToLive": + err = unpopulate(val, "DefaultMessageTimeToLive", &s.DefaultMessageTimeToLive) + delete(rawMsg, key) + case "duplicateDetectionHistoryTimeWindow": + err = unpopulate(val, "DuplicateDetectionHistoryTimeWindow", &s.DuplicateDetectionHistoryTimeWindow) + delete(rawMsg, key) + case "enableBatchedOperations": + err = unpopulate(val, "EnableBatchedOperations", &s.EnableBatchedOperations) + delete(rawMsg, key) + case "forwardDeadLetteredMessagesTo": + err = unpopulate(val, "ForwardDeadLetteredMessagesTo", &s.ForwardDeadLetteredMessagesTo) + delete(rawMsg, key) + case "forwardTo": + err = unpopulate(val, "ForwardTo", &s.ForwardTo) + delete(rawMsg, key) + case "isClientAffine": + err = unpopulate(val, "IsClientAffine", &s.IsClientAffine) + delete(rawMsg, key) + case "lockDuration": + err = unpopulate(val, "LockDuration", &s.LockDuration) + delete(rawMsg, key) + case "maxDeliveryCount": + err = unpopulate(val, "MaxDeliveryCount", &s.MaxDeliveryCount) + delete(rawMsg, key) + case "messageCount": + err = unpopulate(val, "MessageCount", &s.MessageCount) + delete(rawMsg, key) + case "requiresSession": + err = unpopulate(val, "RequiresSession", &s.RequiresSession) + delete(rawMsg, key) + case "status": + err = unpopulate(val, "Status", &s.Status) + delete(rawMsg, key) + case "updatedAt": + err = unpopulateTimeRFC3339(val, "UpdatedAt", &s.UpdatedAt) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SBTopic. +func (s SBTopic) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", s.ID) + populate(objectMap, "location", s.Location) + populate(objectMap, "name", s.Name) + populate(objectMap, "properties", s.Properties) + populate(objectMap, "systemData", s.SystemData) + populate(objectMap, "type", s.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SBTopic. +func (s *SBTopic) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &s.ID) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &s.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &s.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &s.Properties) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &s.SystemData) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &s.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SBTopicListResult. +func (s SBTopicListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", s.NextLink) + populate(objectMap, "value", s.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SBTopicListResult. +func (s *SBTopicListResult) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &s.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &s.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SBTopicProperties. +func (s SBTopicProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateTimeRFC3339(objectMap, "accessedAt", s.AccessedAt) + populate(objectMap, "autoDeleteOnIdle", s.AutoDeleteOnIdle) + populate(objectMap, "countDetails", s.CountDetails) + populateTimeRFC3339(objectMap, "createdAt", s.CreatedAt) + populate(objectMap, "defaultMessageTimeToLive", s.DefaultMessageTimeToLive) + populate(objectMap, "duplicateDetectionHistoryTimeWindow", s.DuplicateDetectionHistoryTimeWindow) + populate(objectMap, "enableBatchedOperations", s.EnableBatchedOperations) + populate(objectMap, "enableExpress", s.EnableExpress) + populate(objectMap, "enablePartitioning", s.EnablePartitioning) + populate(objectMap, "maxMessageSizeInKilobytes", s.MaxMessageSizeInKilobytes) + populate(objectMap, "maxSizeInMegabytes", s.MaxSizeInMegabytes) + populate(objectMap, "requiresDuplicateDetection", s.RequiresDuplicateDetection) + populate(objectMap, "sizeInBytes", s.SizeInBytes) + populate(objectMap, "status", s.Status) + populate(objectMap, "subscriptionCount", s.SubscriptionCount) + populate(objectMap, "supportOrdering", s.SupportOrdering) + populateTimeRFC3339(objectMap, "updatedAt", s.UpdatedAt) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SBTopicProperties. +func (s *SBTopicProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "accessedAt": + err = unpopulateTimeRFC3339(val, "AccessedAt", &s.AccessedAt) + delete(rawMsg, key) + case "autoDeleteOnIdle": + err = unpopulate(val, "AutoDeleteOnIdle", &s.AutoDeleteOnIdle) + delete(rawMsg, key) + case "countDetails": + err = unpopulate(val, "CountDetails", &s.CountDetails) + delete(rawMsg, key) + case "createdAt": + err = unpopulateTimeRFC3339(val, "CreatedAt", &s.CreatedAt) + delete(rawMsg, key) + case "defaultMessageTimeToLive": + err = unpopulate(val, "DefaultMessageTimeToLive", &s.DefaultMessageTimeToLive) + delete(rawMsg, key) + case "duplicateDetectionHistoryTimeWindow": + err = unpopulate(val, "DuplicateDetectionHistoryTimeWindow", &s.DuplicateDetectionHistoryTimeWindow) + delete(rawMsg, key) + case "enableBatchedOperations": + err = unpopulate(val, "EnableBatchedOperations", &s.EnableBatchedOperations) + delete(rawMsg, key) + case "enableExpress": + err = unpopulate(val, "EnableExpress", &s.EnableExpress) + delete(rawMsg, key) + case "enablePartitioning": + err = unpopulate(val, "EnablePartitioning", &s.EnablePartitioning) + delete(rawMsg, key) + case "maxMessageSizeInKilobytes": + err = unpopulate(val, "MaxMessageSizeInKilobytes", &s.MaxMessageSizeInKilobytes) + delete(rawMsg, key) + case "maxSizeInMegabytes": + err = unpopulate(val, "MaxSizeInMegabytes", &s.MaxSizeInMegabytes) + delete(rawMsg, key) + case "requiresDuplicateDetection": + err = unpopulate(val, "RequiresDuplicateDetection", &s.RequiresDuplicateDetection) + delete(rawMsg, key) + case "sizeInBytes": + err = unpopulate(val, "SizeInBytes", &s.SizeInBytes) + delete(rawMsg, key) + case "status": + err = unpopulate(val, "Status", &s.Status) + delete(rawMsg, key) + case "subscriptionCount": + err = unpopulate(val, "SubscriptionCount", &s.SubscriptionCount) + delete(rawMsg, key) + case "supportOrdering": + err = unpopulate(val, "SupportOrdering", &s.SupportOrdering) + delete(rawMsg, key) + case "updatedAt": + err = unpopulateTimeRFC3339(val, "UpdatedAt", &s.UpdatedAt) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SQLFilter. +func (s SQLFilter) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "compatibilityLevel", s.CompatibilityLevel) + populate(objectMap, "requiresPreprocessing", s.RequiresPreprocessing) + populate(objectMap, "sqlExpression", s.SQLExpression) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SQLFilter. +func (s *SQLFilter) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "compatibilityLevel": + err = unpopulate(val, "CompatibilityLevel", &s.CompatibilityLevel) + delete(rawMsg, key) + case "requiresPreprocessing": + err = unpopulate(val, "RequiresPreprocessing", &s.RequiresPreprocessing) + delete(rawMsg, key) + case "sqlExpression": + err = unpopulate(val, "SQLExpression", &s.SQLExpression) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SQLRuleAction. +func (s SQLRuleAction) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "compatibilityLevel", s.CompatibilityLevel) + populate(objectMap, "requiresPreprocessing", s.RequiresPreprocessing) + populate(objectMap, "sqlExpression", s.SQLExpression) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SQLRuleAction. +func (s *SQLRuleAction) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "compatibilityLevel": + err = unpopulate(val, "CompatibilityLevel", &s.CompatibilityLevel) + delete(rawMsg, key) + case "requiresPreprocessing": + err = unpopulate(val, "RequiresPreprocessing", &s.RequiresPreprocessing) + delete(rawMsg, key) + case "sqlExpression": + err = unpopulate(val, "SQLExpression", &s.SQLExpression) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type Subnet. +func (s Subnet) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", s.ID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Subnet. +func (s *Subnet) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &s.ID) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SystemData. +func (s SystemData) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateTimeRFC3339(objectMap, "createdAt", s.CreatedAt) + populate(objectMap, "createdBy", s.CreatedBy) + populate(objectMap, "createdByType", s.CreatedByType) + populateTimeRFC3339(objectMap, "lastModifiedAt", s.LastModifiedAt) + populate(objectMap, "lastModifiedBy", s.LastModifiedBy) + populate(objectMap, "lastModifiedByType", s.LastModifiedByType) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SystemData. +func (s *SystemData) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "createdAt": + err = unpopulateTimeRFC3339(val, "CreatedAt", &s.CreatedAt) + delete(rawMsg, key) + case "createdBy": + err = unpopulate(val, "CreatedBy", &s.CreatedBy) + delete(rawMsg, key) + case "createdByType": + err = unpopulate(val, "CreatedByType", &s.CreatedByType) + delete(rawMsg, key) + case "lastModifiedAt": + err = unpopulateTimeRFC3339(val, "LastModifiedAt", &s.LastModifiedAt) + delete(rawMsg, key) + case "lastModifiedBy": + err = unpopulate(val, "LastModifiedBy", &s.LastModifiedBy) + delete(rawMsg, key) + case "lastModifiedByType": + err = unpopulate(val, "LastModifiedByType", &s.LastModifiedByType) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type TrackedResource. +func (t TrackedResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", t.ID) + populate(objectMap, "location", t.Location) + populate(objectMap, "name", t.Name) + populate(objectMap, "tags", t.Tags) + populate(objectMap, "type", t.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type TrackedResource. +func (t *TrackedResource) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &t.ID) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &t.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &t.Name) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &t.Tags) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &t.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type 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 UserAssignedIdentityProperties. +func (u UserAssignedIdentityProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "userAssignedIdentity", u.UserAssignedIdentity) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type UserAssignedIdentityProperties. +func (u *UserAssignedIdentityProperties) 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 "userAssignedIdentity": + err = unpopulate(val, "UserAssignedIdentity", &u.UserAssignedIdentity) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", u, err) + } + } + return nil +} + +func populate(m map[string]any, k string, v any) { + if v == nil { + return + } else if azcore.IsNullValue(v) { + m[k] = nil + } else if !reflect.ValueOf(v).IsNil() { + m[k] = v + } +} + +func unpopulate(data json.RawMessage, fn string, v any) error { + if data == nil { + return nil + } + if err := json.Unmarshal(data, v); err != nil { + return fmt.Errorf("struct field %s: %v", fn, err) + } + return nil +} diff --git a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_namespaces_client.go b/sdk/resourcemanager/servicebus/armservicebus/namespaces_client.go similarity index 87% rename from sdk/resourcemanager/servicebus/armservicebus/zz_generated_namespaces_client.go rename to sdk/resourcemanager/servicebus/armservicebus/namespaces_client.go index d74ca90f88bb..54109ebb7b8d 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_namespaces_client.go +++ b/sdk/resourcemanager/servicebus/armservicebus/namespaces_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armservicebus @@ -31,10 +32,10 @@ type NamespacesClient struct { } // NewNamespacesClient creates a new instance of NamespacesClient with the specified values. -// subscriptionID - Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms -// part of the URI for every service call. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms +// part of the URI for every service call. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewNamespacesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*NamespacesClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,10 +58,11 @@ func NewNamespacesClient(subscriptionID string, credential azcore.TokenCredentia // CheckNameAvailability - Check the give namespace name availability. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-01-01-preview -// parameters - Parameters to check availability of the given namespace name -// options - NamespacesClientCheckNameAvailabilityOptions contains the optional parameters for the NamespacesClient.CheckNameAvailability -// method. +// +// Generated from API version 2022-10-01-preview +// - parameters - Parameters to check availability of the given namespace name +// - options - NamespacesClientCheckNameAvailabilityOptions contains the optional parameters for the NamespacesClient.CheckNameAvailability +// method. func (client *NamespacesClient) CheckNameAvailability(ctx context.Context, parameters CheckNameAvailability, options *NamespacesClientCheckNameAvailabilityOptions) (NamespacesClientCheckNameAvailabilityResponse, error) { req, err := client.checkNameAvailabilityCreateRequest(ctx, parameters, options) if err != nil { @@ -88,7 +90,7 @@ func (client *NamespacesClient) checkNameAvailabilityCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-01-01-preview") + reqQP.Set("api-version", "2022-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, parameters) @@ -106,12 +108,13 @@ func (client *NamespacesClient) checkNameAvailabilityHandleResponse(resp *http.R // BeginCreateOrUpdate - Creates or updates a service namespace. Once created, this namespace's resource manifest is immutable. // This operation is idempotent. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-01-01-preview -// resourceGroupName - Name of the Resource group within the Azure subscription. -// namespaceName - The namespace name. -// parameters - Parameters supplied to create a namespace resource. -// options - NamespacesClientBeginCreateOrUpdateOptions contains the optional parameters for the NamespacesClient.BeginCreateOrUpdate -// method. +// +// Generated from API version 2022-10-01-preview +// - resourceGroupName - Name of the Resource group within the Azure subscription. +// - namespaceName - The namespace name. +// - parameters - Parameters supplied to create a namespace resource. +// - options - NamespacesClientBeginCreateOrUpdateOptions contains the optional parameters for the NamespacesClient.BeginCreateOrUpdate +// method. func (client *NamespacesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, namespaceName string, parameters SBNamespace, options *NamespacesClientBeginCreateOrUpdateOptions) (*runtime.Poller[NamespacesClientCreateOrUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createOrUpdate(ctx, resourceGroupName, namespaceName, parameters, options) @@ -127,7 +130,8 @@ func (client *NamespacesClient) BeginCreateOrUpdate(ctx context.Context, resourc // CreateOrUpdate - Creates or updates a service namespace. Once created, this namespace's resource manifest is immutable. // This operation is idempotent. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-01-01-preview +// +// Generated from API version 2022-10-01-preview func (client *NamespacesClient) createOrUpdate(ctx context.Context, resourceGroupName string, namespaceName string, parameters SBNamespace, options *NamespacesClientBeginCreateOrUpdateOptions) (*http.Response, error) { req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, namespaceName, parameters, options) if err != nil { @@ -163,7 +167,7 @@ func (client *NamespacesClient) createOrUpdateCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-01-01-preview") + reqQP.Set("api-version", "2022-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, parameters) @@ -171,13 +175,14 @@ func (client *NamespacesClient) createOrUpdateCreateRequest(ctx context.Context, // CreateOrUpdateAuthorizationRule - Creates or updates an authorization rule for a namespace. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-01-01-preview -// resourceGroupName - Name of the Resource group within the Azure subscription. -// namespaceName - The namespace name -// authorizationRuleName - The authorization rule name. -// parameters - The shared access authorization rule. -// options - NamespacesClientCreateOrUpdateAuthorizationRuleOptions contains the optional parameters for the NamespacesClient.CreateOrUpdateAuthorizationRule -// method. +// +// Generated from API version 2022-10-01-preview +// - resourceGroupName - Name of the Resource group within the Azure subscription. +// - namespaceName - The namespace name +// - authorizationRuleName - The authorization rule name. +// - parameters - The shared access authorization rule. +// - options - NamespacesClientCreateOrUpdateAuthorizationRuleOptions contains the optional parameters for the NamespacesClient.CreateOrUpdateAuthorizationRule +// method. func (client *NamespacesClient) CreateOrUpdateAuthorizationRule(ctx context.Context, resourceGroupName string, namespaceName string, authorizationRuleName string, parameters SBAuthorizationRule, options *NamespacesClientCreateOrUpdateAuthorizationRuleOptions) (NamespacesClientCreateOrUpdateAuthorizationRuleResponse, error) { req, err := client.createOrUpdateAuthorizationRuleCreateRequest(ctx, resourceGroupName, namespaceName, authorizationRuleName, parameters, options) if err != nil { @@ -217,7 +222,7 @@ func (client *NamespacesClient) createOrUpdateAuthorizationRuleCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-01-01-preview") + reqQP.Set("api-version", "2022-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, parameters) @@ -234,12 +239,13 @@ func (client *NamespacesClient) createOrUpdateAuthorizationRuleHandleResponse(re // CreateOrUpdateNetworkRuleSet - Create or update NetworkRuleSet for a Namespace. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-01-01-preview -// resourceGroupName - Name of the Resource group within the Azure subscription. -// namespaceName - The namespace name -// parameters - The Namespace IpFilterRule. -// options - NamespacesClientCreateOrUpdateNetworkRuleSetOptions contains the optional parameters for the NamespacesClient.CreateOrUpdateNetworkRuleSet -// method. +// +// Generated from API version 2022-10-01-preview +// - resourceGroupName - Name of the Resource group within the Azure subscription. +// - namespaceName - The namespace name +// - parameters - The Namespace IpFilterRule. +// - options - NamespacesClientCreateOrUpdateNetworkRuleSetOptions contains the optional parameters for the NamespacesClient.CreateOrUpdateNetworkRuleSet +// method. func (client *NamespacesClient) CreateOrUpdateNetworkRuleSet(ctx context.Context, resourceGroupName string, namespaceName string, parameters NetworkRuleSet, options *NamespacesClientCreateOrUpdateNetworkRuleSetOptions) (NamespacesClientCreateOrUpdateNetworkRuleSetResponse, error) { req, err := client.createOrUpdateNetworkRuleSetCreateRequest(ctx, resourceGroupName, namespaceName, parameters, options) if err != nil { @@ -275,7 +281,7 @@ func (client *NamespacesClient) createOrUpdateNetworkRuleSetCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-01-01-preview") + reqQP.Set("api-version", "2022-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, parameters) @@ -292,10 +298,11 @@ func (client *NamespacesClient) createOrUpdateNetworkRuleSetHandleResponse(resp // BeginDelete - Deletes an existing namespace. This operation also removes all associated resources under the namespace. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-01-01-preview -// resourceGroupName - Name of the Resource group within the Azure subscription. -// namespaceName - The namespace name -// options - NamespacesClientBeginDeleteOptions contains the optional parameters for the NamespacesClient.BeginDelete method. +// +// Generated from API version 2022-10-01-preview +// - resourceGroupName - Name of the Resource group within the Azure subscription. +// - namespaceName - The namespace name +// - options - NamespacesClientBeginDeleteOptions contains the optional parameters for the NamespacesClient.BeginDelete method. func (client *NamespacesClient) BeginDelete(ctx context.Context, resourceGroupName string, namespaceName string, options *NamespacesClientBeginDeleteOptions) (*runtime.Poller[NamespacesClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, namespaceName, options) @@ -310,7 +317,8 @@ func (client *NamespacesClient) BeginDelete(ctx context.Context, resourceGroupNa // Delete - Deletes an existing namespace. This operation also removes all associated resources under the namespace. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-01-01-preview +// +// Generated from API version 2022-10-01-preview func (client *NamespacesClient) deleteOperation(ctx context.Context, resourceGroupName string, namespaceName string, options *NamespacesClientBeginDeleteOptions) (*http.Response, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, namespaceName, options) if err != nil { @@ -346,7 +354,7 @@ func (client *NamespacesClient) deleteCreateRequest(ctx context.Context, resourc return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-01-01-preview") + reqQP.Set("api-version", "2022-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -354,12 +362,13 @@ func (client *NamespacesClient) deleteCreateRequest(ctx context.Context, resourc // DeleteAuthorizationRule - Deletes a namespace authorization rule. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-01-01-preview -// resourceGroupName - Name of the Resource group within the Azure subscription. -// namespaceName - The namespace name -// authorizationRuleName - The authorization rule name. -// options - NamespacesClientDeleteAuthorizationRuleOptions contains the optional parameters for the NamespacesClient.DeleteAuthorizationRule -// method. +// +// Generated from API version 2022-10-01-preview +// - resourceGroupName - Name of the Resource group within the Azure subscription. +// - namespaceName - The namespace name +// - authorizationRuleName - The authorization rule name. +// - options - NamespacesClientDeleteAuthorizationRuleOptions contains the optional parameters for the NamespacesClient.DeleteAuthorizationRule +// method. func (client *NamespacesClient) DeleteAuthorizationRule(ctx context.Context, resourceGroupName string, namespaceName string, authorizationRuleName string, options *NamespacesClientDeleteAuthorizationRuleOptions) (NamespacesClientDeleteAuthorizationRuleResponse, error) { req, err := client.deleteAuthorizationRuleCreateRequest(ctx, resourceGroupName, namespaceName, authorizationRuleName, options) if err != nil { @@ -399,7 +408,7 @@ func (client *NamespacesClient) deleteAuthorizationRuleCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-01-01-preview") + reqQP.Set("api-version", "2022-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -407,10 +416,11 @@ func (client *NamespacesClient) deleteAuthorizationRuleCreateRequest(ctx context // Get - Gets a description for the specified namespace. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-01-01-preview -// resourceGroupName - Name of the Resource group within the Azure subscription. -// namespaceName - The namespace name -// options - NamespacesClientGetOptions contains the optional parameters for the NamespacesClient.Get method. +// +// Generated from API version 2022-10-01-preview +// - resourceGroupName - Name of the Resource group within the Azure subscription. +// - namespaceName - The namespace name +// - options - NamespacesClientGetOptions contains the optional parameters for the NamespacesClient.Get method. func (client *NamespacesClient) Get(ctx context.Context, resourceGroupName string, namespaceName string, options *NamespacesClientGetOptions) (NamespacesClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, namespaceName, options) if err != nil { @@ -446,7 +456,7 @@ func (client *NamespacesClient) getCreateRequest(ctx context.Context, resourceGr return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-01-01-preview") + reqQP.Set("api-version", "2022-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -463,12 +473,13 @@ func (client *NamespacesClient) getHandleResponse(resp *http.Response) (Namespac // GetAuthorizationRule - Gets an authorization rule for a namespace by rule name. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-01-01-preview -// resourceGroupName - Name of the Resource group within the Azure subscription. -// namespaceName - The namespace name -// authorizationRuleName - The authorization rule name. -// options - NamespacesClientGetAuthorizationRuleOptions contains the optional parameters for the NamespacesClient.GetAuthorizationRule -// method. +// +// Generated from API version 2022-10-01-preview +// - resourceGroupName - Name of the Resource group within the Azure subscription. +// - namespaceName - The namespace name +// - authorizationRuleName - The authorization rule name. +// - options - NamespacesClientGetAuthorizationRuleOptions contains the optional parameters for the NamespacesClient.GetAuthorizationRule +// method. func (client *NamespacesClient) GetAuthorizationRule(ctx context.Context, resourceGroupName string, namespaceName string, authorizationRuleName string, options *NamespacesClientGetAuthorizationRuleOptions) (NamespacesClientGetAuthorizationRuleResponse, error) { req, err := client.getAuthorizationRuleCreateRequest(ctx, resourceGroupName, namespaceName, authorizationRuleName, options) if err != nil { @@ -508,7 +519,7 @@ func (client *NamespacesClient) getAuthorizationRuleCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-01-01-preview") + reqQP.Set("api-version", "2022-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -525,11 +536,12 @@ func (client *NamespacesClient) getAuthorizationRuleHandleResponse(resp *http.Re // GetNetworkRuleSet - Gets NetworkRuleSet for a Namespace. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-01-01-preview -// resourceGroupName - Name of the Resource group within the Azure subscription. -// namespaceName - The namespace name -// options - NamespacesClientGetNetworkRuleSetOptions contains the optional parameters for the NamespacesClient.GetNetworkRuleSet -// method. +// +// Generated from API version 2022-10-01-preview +// - resourceGroupName - Name of the Resource group within the Azure subscription. +// - namespaceName - The namespace name +// - options - NamespacesClientGetNetworkRuleSetOptions contains the optional parameters for the NamespacesClient.GetNetworkRuleSet +// method. func (client *NamespacesClient) GetNetworkRuleSet(ctx context.Context, resourceGroupName string, namespaceName string, options *NamespacesClientGetNetworkRuleSetOptions) (NamespacesClientGetNetworkRuleSetResponse, error) { req, err := client.getNetworkRuleSetCreateRequest(ctx, resourceGroupName, namespaceName, options) if err != nil { @@ -565,7 +577,7 @@ func (client *NamespacesClient) getNetworkRuleSetCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-01-01-preview") + reqQP.Set("api-version", "2022-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -581,9 +593,9 @@ func (client *NamespacesClient) getNetworkRuleSetHandleResponse(resp *http.Respo } // NewListPager - Gets all the available namespaces within the subscription, irrespective of the resource groups. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-01-01-preview -// options - NamespacesClientListOptions contains the optional parameters for the NamespacesClient.List method. +// +// Generated from API version 2022-10-01-preview +// - options - NamespacesClientListOptions contains the optional parameters for the NamespacesClient.NewListPager method. func (client *NamespacesClient) NewListPager(options *NamespacesClientListOptions) *runtime.Pager[NamespacesClientListResponse] { return runtime.NewPager(runtime.PagingHandler[NamespacesClientListResponse]{ More: func(page NamespacesClientListResponse) bool { @@ -624,7 +636,7 @@ func (client *NamespacesClient) listCreateRequest(ctx context.Context, options * return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-01-01-preview") + reqQP.Set("api-version", "2022-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -640,12 +652,12 @@ func (client *NamespacesClient) listHandleResponse(resp *http.Response) (Namespa } // NewListAuthorizationRulesPager - Gets the authorization rules for a namespace. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-01-01-preview -// resourceGroupName - Name of the Resource group within the Azure subscription. -// namespaceName - The namespace name -// options - NamespacesClientListAuthorizationRulesOptions contains the optional parameters for the NamespacesClient.ListAuthorizationRules -// method. +// +// Generated from API version 2022-10-01-preview +// - resourceGroupName - Name of the Resource group within the Azure subscription. +// - namespaceName - The namespace name +// - options - NamespacesClientListAuthorizationRulesOptions contains the optional parameters for the NamespacesClient.NewListAuthorizationRulesPager +// method. func (client *NamespacesClient) NewListAuthorizationRulesPager(resourceGroupName string, namespaceName string, options *NamespacesClientListAuthorizationRulesOptions) *runtime.Pager[NamespacesClientListAuthorizationRulesResponse] { return runtime.NewPager(runtime.PagingHandler[NamespacesClientListAuthorizationRulesResponse]{ More: func(page NamespacesClientListAuthorizationRulesResponse) bool { @@ -694,7 +706,7 @@ func (client *NamespacesClient) listAuthorizationRulesCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-01-01-preview") + reqQP.Set("api-version", "2022-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -710,11 +722,11 @@ func (client *NamespacesClient) listAuthorizationRulesHandleResponse(resp *http. } // NewListByResourceGroupPager - Gets the available namespaces within a resource group. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-01-01-preview -// resourceGroupName - Name of the Resource group within the Azure subscription. -// options - NamespacesClientListByResourceGroupOptions contains the optional parameters for the NamespacesClient.ListByResourceGroup -// method. +// +// Generated from API version 2022-10-01-preview +// - resourceGroupName - Name of the Resource group within the Azure subscription. +// - options - NamespacesClientListByResourceGroupOptions contains the optional parameters for the NamespacesClient.NewListByResourceGroupPager +// method. func (client *NamespacesClient) NewListByResourceGroupPager(resourceGroupName string, options *NamespacesClientListByResourceGroupOptions) *runtime.Pager[NamespacesClientListByResourceGroupResponse] { return runtime.NewPager(runtime.PagingHandler[NamespacesClientListByResourceGroupResponse]{ More: func(page NamespacesClientListByResourceGroupResponse) bool { @@ -759,7 +771,7 @@ func (client *NamespacesClient) listByResourceGroupCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-01-01-preview") + reqQP.Set("api-version", "2022-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -776,11 +788,12 @@ func (client *NamespacesClient) listByResourceGroupHandleResponse(resp *http.Res // ListKeys - Gets the primary and secondary connection strings for the namespace. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-01-01-preview -// resourceGroupName - Name of the Resource group within the Azure subscription. -// namespaceName - The namespace name -// authorizationRuleName - The authorization rule name. -// options - NamespacesClientListKeysOptions contains the optional parameters for the NamespacesClient.ListKeys method. +// +// Generated from API version 2022-10-01-preview +// - resourceGroupName - Name of the Resource group within the Azure subscription. +// - namespaceName - The namespace name +// - authorizationRuleName - The authorization rule name. +// - options - NamespacesClientListKeysOptions contains the optional parameters for the NamespacesClient.ListKeys method. func (client *NamespacesClient) ListKeys(ctx context.Context, resourceGroupName string, namespaceName string, authorizationRuleName string, options *NamespacesClientListKeysOptions) (NamespacesClientListKeysResponse, error) { req, err := client.listKeysCreateRequest(ctx, resourceGroupName, namespaceName, authorizationRuleName, options) if err != nil { @@ -820,7 +833,7 @@ func (client *NamespacesClient) listKeysCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-01-01-preview") + reqQP.Set("api-version", "2022-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -836,12 +849,12 @@ func (client *NamespacesClient) listKeysHandleResponse(resp *http.Response) (Nam } // NewListNetworkRuleSetsPager - Gets list of NetworkRuleSet for a Namespace. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-01-01-preview -// resourceGroupName - Name of the Resource group within the Azure subscription. -// namespaceName - The namespace name -// options - NamespacesClientListNetworkRuleSetsOptions contains the optional parameters for the NamespacesClient.ListNetworkRuleSets -// method. +// +// Generated from API version 2022-10-01-preview +// - resourceGroupName - Name of the Resource group within the Azure subscription. +// - namespaceName - The namespace name +// - options - NamespacesClientListNetworkRuleSetsOptions contains the optional parameters for the NamespacesClient.NewListNetworkRuleSetsPager +// method. func (client *NamespacesClient) NewListNetworkRuleSetsPager(resourceGroupName string, namespaceName string, options *NamespacesClientListNetworkRuleSetsOptions) *runtime.Pager[NamespacesClientListNetworkRuleSetsResponse] { return runtime.NewPager(runtime.PagingHandler[NamespacesClientListNetworkRuleSetsResponse]{ More: func(page NamespacesClientListNetworkRuleSetsResponse) bool { @@ -890,7 +903,7 @@ func (client *NamespacesClient) listNetworkRuleSetsCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-01-01-preview") + reqQP.Set("api-version", "2022-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -907,13 +920,14 @@ func (client *NamespacesClient) listNetworkRuleSetsHandleResponse(resp *http.Res // RegenerateKeys - Regenerates the primary or secondary connection strings for the namespace. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-01-01-preview -// resourceGroupName - Name of the Resource group within the Azure subscription. -// namespaceName - The namespace name -// authorizationRuleName - The authorization rule name. -// parameters - Parameters supplied to regenerate the authorization rule. -// options - NamespacesClientRegenerateKeysOptions contains the optional parameters for the NamespacesClient.RegenerateKeys -// method. +// +// Generated from API version 2022-10-01-preview +// - resourceGroupName - Name of the Resource group within the Azure subscription. +// - namespaceName - The namespace name +// - authorizationRuleName - The authorization rule name. +// - parameters - Parameters supplied to regenerate the authorization rule. +// - options - NamespacesClientRegenerateKeysOptions contains the optional parameters for the NamespacesClient.RegenerateKeys +// method. func (client *NamespacesClient) RegenerateKeys(ctx context.Context, resourceGroupName string, namespaceName string, authorizationRuleName string, parameters RegenerateAccessKeyParameters, options *NamespacesClientRegenerateKeysOptions) (NamespacesClientRegenerateKeysResponse, error) { req, err := client.regenerateKeysCreateRequest(ctx, resourceGroupName, namespaceName, authorizationRuleName, parameters, options) if err != nil { @@ -953,7 +967,7 @@ func (client *NamespacesClient) regenerateKeysCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-01-01-preview") + reqQP.Set("api-version", "2022-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, parameters) @@ -971,11 +985,12 @@ func (client *NamespacesClient) regenerateKeysHandleResponse(resp *http.Response // Update - Updates a service namespace. Once created, this namespace's resource manifest is immutable. This operation is // idempotent. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-01-01-preview -// resourceGroupName - Name of the Resource group within the Azure subscription. -// namespaceName - The namespace name -// parameters - Parameters supplied to update a namespace resource. -// options - NamespacesClientUpdateOptions contains the optional parameters for the NamespacesClient.Update method. +// +// Generated from API version 2022-10-01-preview +// - resourceGroupName - Name of the Resource group within the Azure subscription. +// - namespaceName - The namespace name +// - parameters - Parameters supplied to update a namespace resource. +// - options - NamespacesClientUpdateOptions contains the optional parameters for the NamespacesClient.Update method. func (client *NamespacesClient) Update(ctx context.Context, resourceGroupName string, namespaceName string, parameters SBNamespaceUpdateParameters, options *NamespacesClientUpdateOptions) (NamespacesClientUpdateResponse, error) { req, err := client.updateCreateRequest(ctx, resourceGroupName, namespaceName, parameters, options) if err != nil { @@ -1011,7 +1026,7 @@ func (client *NamespacesClient) updateCreateRequest(ctx context.Context, resourc return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-01-01-preview") + reqQP.Set("api-version", "2022-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, parameters) diff --git a/sdk/resourcemanager/servicebus/armservicebus/namespaces_client_example_test.go b/sdk/resourcemanager/servicebus/armservicebus/namespaces_client_example_test.go new file mode 100644 index 000000000000..bbd11cc35fa2 --- /dev/null +++ b/sdk/resourcemanager/servicebus/armservicebus/namespaces_client_example_test.go @@ -0,0 +1,1670 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armservicebus_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicebus/armservicebus/v2" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5e24fa8e30bff0cb321494a0b550b1c1282a8a3c/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples/NameSpaces/SBNameSpaceList.json +func ExampleNamespacesClient_NewListPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armservicebus.NewNamespacesClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListPager(nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.SBNamespaceListResult = armservicebus.SBNamespaceListResult{ + // Value: []*armservicebus.SBNamespace{ + // { + // Name: to.Ptr("NS-91f08e47-2b04-4943-b0cd-a5fb02b88f20"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces"), + // ID: to.Ptr("/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.ServiceBus/namespaces/NS-91f08e47-2b04-4943-b0cd-a5fb02b88f20"), + // Location: to.Ptr("South Central US"), + // Tags: map[string]*string{ + // }, + // Properties: &armservicebus.SBNamespaceProperties{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-08-23T02:40:17.27Z"); return t}()), + // DisableLocalAuth: to.Ptr(false), + // MetricID: to.Ptr("5f750a97-50d9-4e36-8081-c9ee4c0210d4:ns-91f08e47-2b04-4943-b0cd-a5fb02b88f20"), + // MinimumTLSVersion: to.Ptr(armservicebus.TLSVersionOne2), + // ProvisioningState: to.Ptr("Succeeded"), + // ServiceBusEndpoint: to.Ptr("https://NS-91f08e47-2b04-4943-b0cd-a5fb02b88f20.servicebus.windows-int.net:443/"), + // UpdatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-11T07:15:30.78Z"); return t}()), + // }, + // SKU: &armservicebus.SBSKU{ + // Name: to.Ptr(armservicebus.SKUNameStandard), + // Tier: to.Ptr(armservicebus.SKUTierStandard), + // }, + // }, + // { + // Name: to.Ptr("NS-41dc63f4-0b08-4029-b3ef-535a131bfa65"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces"), + // ID: to.Ptr("/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.ServiceBus/namespaces/NS-41dc63f4-0b08-4029-b3ef-535a131bfa65"), + // Location: to.Ptr("South Central US"), + // Tags: map[string]*string{ + // }, + // Properties: &armservicebus.SBNamespaceProperties{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-08-23T03:50:38.98Z"); return t}()), + // DisableLocalAuth: to.Ptr(false), + // MetricID: to.Ptr("5f750a97-50d9-4e36-8081-c9ee4c0210d4:ns-41dc63f4-0b08-4029-b3ef-535a131bfa65"), + // ProvisioningState: to.Ptr("Succeeded"), + // ServiceBusEndpoint: to.Ptr("https://NS-41dc63f4-0b08-4029-b3ef-535a131bfa65.servicebus.windows-int.net:443/"), + // UpdatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-11T10:42:58.003Z"); return t}()), + // }, + // SKU: &armservicebus.SBSKU{ + // Name: to.Ptr(armservicebus.SKUNameStandard), + // Tier: to.Ptr(armservicebus.SKUTierStandard), + // }, + // }, + // { + // Name: to.Ptr("NS-df52cf51-e831-4bf2-bd92-e9885f68a996"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces"), + // ID: to.Ptr("/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.ServiceBus/namespaces/NS-df52cf51-e831-4bf2-bd92-e9885f68a996"), + // Location: to.Ptr("South Central US"), + // Tags: map[string]*string{ + // }, + // Properties: &armservicebus.SBNamespaceProperties{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-09-16T01:17:54.997Z"); return t}()), + // DisableLocalAuth: to.Ptr(false), + // MetricID: to.Ptr("5f750a97-50d9-4e36-8081-c9ee4c0210d4:ns-df52cf51-e831-4bf2-bd92-e9885f68a996"), + // ProvisioningState: to.Ptr("Succeeded"), + // ServiceBusEndpoint: to.Ptr("https://NS-df52cf51-e831-4bf2-bd92-e9885f68a996.servicebus.windows-int.net:443/"), + // UpdatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-11T06:44:39.737Z"); return t}()), + // }, + // SKU: &armservicebus.SBSKU{ + // Name: to.Ptr(armservicebus.SKUNameStandard), + // Tier: to.Ptr(armservicebus.SKUTierStandard), + // }, + // }, + // { + // Name: to.Ptr("SBPremium"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces"), + // ID: to.Ptr("/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/RapscallionResources/providers/Microsoft.ServiceBus/namespaces/SBPremium"), + // Location: to.Ptr("South Central US"), + // Tags: map[string]*string{ + // }, + // Properties: &armservicebus.SBNamespaceProperties{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-10-10T22:01:00.42Z"); return t}()), + // DisableLocalAuth: to.Ptr(false), + // MetricID: to.Ptr("5f750a97-50d9-4e36-8081-c9ee4c0210d4:sbpremium"), + // PremiumMessagingPartitions: to.Ptr[int32](1), + // ProvisioningState: to.Ptr("Succeeded"), + // ServiceBusEndpoint: to.Ptr("https://SBPremium.servicebus.windows-int.net:443/"), + // UpdatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-10-10T22:01:00.42Z"); return t}()), + // }, + // SKU: &armservicebus.SBSKU{ + // Name: to.Ptr(armservicebus.SKUNamePremium), + // Capacity: to.Ptr[int32](1), + // Tier: to.Ptr(armservicebus.SKUTierPremium), + // }, + // }, + // { + // Name: to.Ptr("rrama-ns2"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces"), + // ID: to.Ptr("/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/sadfsadfsadf/providers/Microsoft.ServiceBus/namespaces/rrama-ns2"), + // Location: to.Ptr("South Central US"), + // Tags: map[string]*string{ + // }, + // Properties: &armservicebus.SBNamespaceProperties{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-08-23T04:14:00.013Z"); return t}()), + // DisableLocalAuth: to.Ptr(false), + // MetricID: to.Ptr("5f750a97-50d9-4e36-8081-c9ee4c0210d4:rrama-ns2"), + // ProvisioningState: to.Ptr("Succeeded"), + // ServiceBusEndpoint: to.Ptr("https://rrama-ns2.servicebus.windows-int.net:443/"), + // UpdatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-03T22:53:32.927Z"); return t}()), + // }, + // SKU: &armservicebus.SBSKU{ + // Name: to.Ptr(armservicebus.SKUNameStandard), + // Tier: to.Ptr(armservicebus.SKUTierStandard), + // }, + // }, + // { + // Name: to.Ptr("NS-20e57600-29d0-4035-ac85-74f4c54dcda1"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces"), + // ID: to.Ptr("/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.ServiceBus/namespaces/NS-20e57600-29d0-4035-ac85-74f4c54dcda1"), + // Location: to.Ptr("South Central US"), + // Tags: map[string]*string{ + // }, + // Properties: &armservicebus.SBNamespaceProperties{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-08-23T03:30:49.16Z"); return t}()), + // DisableLocalAuth: to.Ptr(false), + // MetricID: to.Ptr("5f750a97-50d9-4e36-8081-c9ee4c0210d4:ns-20e57600-29d0-4035-ac85-74f4c54dcda1"), + // ProvisioningState: to.Ptr("Succeeded"), + // ServiceBusEndpoint: to.Ptr("https://NS-20e57600-29d0-4035-ac85-74f4c54dcda1.servicebus.windows-int.net:443/"), + // UpdatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-11T04:17:58.483Z"); return t}()), + // }, + // SKU: &armservicebus.SBSKU{ + // Name: to.Ptr(armservicebus.SKUNameStandard), + // Tier: to.Ptr(armservicebus.SKUTierStandard), + // }, + // }, + // { + // Name: to.Ptr("NS-3e538a1a-58fb-4315-b2ce-76f5c944114c"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces"), + // ID: to.Ptr("/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.ServiceBus/namespaces/NS-3e538a1a-58fb-4315-b2ce-76f5c944114c"), + // Location: to.Ptr("South Central US"), + // Tags: map[string]*string{ + // }, + // Properties: &armservicebus.SBNamespaceProperties{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-09-16T18:07:30.05Z"); return t}()), + // DisableLocalAuth: to.Ptr(false), + // MetricID: to.Ptr("5f750a97-50d9-4e36-8081-c9ee4c0210d4:ns-3e538a1a-58fb-4315-b2ce-76f5c944114c"), + // ProvisioningState: to.Ptr("Succeeded"), + // ServiceBusEndpoint: to.Ptr("https://NS-3e538a1a-58fb-4315-b2ce-76f5c944114c.servicebus.windows-int.net:443/"), + // UpdatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-11T10:42:57.747Z"); return t}()), + // }, + // SKU: &armservicebus.SBSKU{ + // Name: to.Ptr(armservicebus.SKUNameStandard), + // Tier: to.Ptr(armservicebus.SKUTierStandard), + // }, + // }, + // { + // Name: to.Ptr("prem-ns123"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces"), + // ID: to.Ptr("/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.ServiceBus/namespaces/prem-ns123"), + // Location: to.Ptr("South Central US"), + // Tags: map[string]*string{ + // }, + // Properties: &armservicebus.SBNamespaceProperties{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-09-13T00:02:39.997Z"); return t}()), + // DisableLocalAuth: to.Ptr(false), + // MetricID: to.Ptr("5f750a97-50d9-4e36-8081-c9ee4c0210d4:prem-ns123"), + // PremiumMessagingPartitions: to.Ptr[int32](2), + // ProvisioningState: to.Ptr("Succeeded"), + // ServiceBusEndpoint: to.Ptr("https://prem-ns123.servicebus.windows-int.net:443/"), + // UpdatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-09-13T00:02:39.997Z"); return t}()), + // }, + // SKU: &armservicebus.SBSKU{ + // Name: to.Ptr(armservicebus.SKUNamePremium), + // Capacity: to.Ptr[int32](4), + // Tier: to.Ptr(armservicebus.SKUTierPremium), + // }, + // }, + // { + // Name: to.Ptr("NS-4e1bfdf1-0cff-4e86-ae80-cdcac4873039"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces"), + // ID: to.Ptr("/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.ServiceBus/namespaces/NS-4e1bfdf1-0cff-4e86-ae80-cdcac4873039"), + // Location: to.Ptr("South Central US"), + // Tags: map[string]*string{ + // }, + // Properties: &armservicebus.SBNamespaceProperties{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-09-16T01:01:58.73Z"); return t}()), + // DisableLocalAuth: to.Ptr(false), + // MetricID: to.Ptr("5f750a97-50d9-4e36-8081-c9ee4c0210d4:ns-4e1bfdf1-0cff-4e86-ae80-cdcac4873039"), + // ProvisioningState: to.Ptr("Succeeded"), + // ServiceBusEndpoint: to.Ptr("https://NS-4e1bfdf1-0cff-4e86-ae80-cdcac4873039.servicebus.windows-int.net:443/"), + // UpdatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-11T03:02:59.8Z"); return t}()), + // }, + // SKU: &armservicebus.SBSKU{ + // Name: to.Ptr(armservicebus.SKUNameStandard), + // Tier: to.Ptr(armservicebus.SKUTierStandard), + // }, + // }, + // { + // Name: to.Ptr("NS-6b90b7f3-7aa0-48c9-bc30-b299dcb66c03"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces"), + // ID: to.Ptr("/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.ServiceBus/namespaces/NS-6b90b7f3-7aa0-48c9-bc30-b299dcb66c03"), + // Location: to.Ptr("South Central US"), + // Tags: map[string]*string{ + // }, + // Properties: &armservicebus.SBNamespaceProperties{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-08-23T03:22:45.327Z"); return t}()), + // DisableLocalAuth: to.Ptr(false), + // MetricID: to.Ptr("5f750a97-50d9-4e36-8081-c9ee4c0210d4:ns-6b90b7f3-7aa0-48c9-bc30-b299dcb66c03"), + // ProvisioningState: to.Ptr("Succeeded"), + // ServiceBusEndpoint: to.Ptr("https://NS-6b90b7f3-7aa0-48c9-bc30-b299dcb66c03.servicebus.windows-int.net:443/"), + // UpdatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-11T06:08:01.207Z"); return t}()), + // }, + // SKU: &armservicebus.SBSKU{ + // Name: to.Ptr(armservicebus.SKUNameStandard), + // Tier: to.Ptr(armservicebus.SKUTierStandard), + // }, + // }, + // { + // Name: to.Ptr("NS-c05e9df3-7737-44ee-a321-15f6e0545b97"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces"), + // ID: to.Ptr("/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.ServiceBus/namespaces/NS-c05e9df3-7737-44ee-a321-15f6e0545b97"), + // Location: to.Ptr("South Central US"), + // Tags: map[string]*string{ + // }, + // Properties: &armservicebus.SBNamespaceProperties{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-08-05T03:29:19.75Z"); return t}()), + // DisableLocalAuth: to.Ptr(false), + // MetricID: to.Ptr("5f750a97-50d9-4e36-8081-c9ee4c0210d4:ns-c05e9df3-7737-44ee-a321-15f6e0545b97"), + // ProvisioningState: to.Ptr("Succeeded"), + // ServiceBusEndpoint: to.Ptr("https://NS-c05e9df3-7737-44ee-a321-15f6e0545b97.servicebus.windows-int.net:443/"), + // UpdatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-11T08:10:35.527Z"); return t}()), + // }, + // SKU: &armservicebus.SBSKU{ + // Name: to.Ptr(armservicebus.SKUNameStandard), + // Tier: to.Ptr(armservicebus.SKUTierStandard), + // }, + // }, + // { + // Name: to.Ptr("NS-dcb4152c-231b-4c16-a683-07cc6b38fa46"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces"), + // ID: to.Ptr("/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.ServiceBus/namespaces/NS-dcb4152c-231b-4c16-a683-07cc6b38fa46"), + // Location: to.Ptr("South Central US"), + // Tags: map[string]*string{ + // }, + // Properties: &armservicebus.SBNamespaceProperties{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-08-05T03:34:35.363Z"); return t}()), + // DisableLocalAuth: to.Ptr(false), + // MetricID: to.Ptr("5f750a97-50d9-4e36-8081-c9ee4c0210d4:ns-dcb4152c-231b-4c16-a683-07cc6b38fa46"), + // ProvisioningState: to.Ptr("Succeeded"), + // ServiceBusEndpoint: to.Ptr("https://NS-dcb4152c-231b-4c16-a683-07cc6b38fa46.servicebus.windows-int.net:443/"), + // UpdatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-11T05:33:00.957Z"); return t}()), + // }, + // SKU: &armservicebus.SBSKU{ + // Name: to.Ptr(armservicebus.SKUNameStandard), + // Tier: to.Ptr(armservicebus.SKUTierStandard), + // }, + // }, + // { + // Name: to.Ptr("NS-f501f5e6-1f24-439b-8982-9af665156d40"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces"), + // ID: to.Ptr("/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.ServiceBus/namespaces/NS-f501f5e6-1f24-439b-8982-9af665156d40"), + // Location: to.Ptr("South Central US"), + // Tags: map[string]*string{ + // }, + // Properties: &armservicebus.SBNamespaceProperties{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-09-16T01:25:55.707Z"); return t}()), + // DisableLocalAuth: to.Ptr(false), + // MetricID: to.Ptr("5f750a97-50d9-4e36-8081-c9ee4c0210d4:ns-f501f5e6-1f24-439b-8982-9af665156d40"), + // ProvisioningState: to.Ptr("Succeeded"), + // ServiceBusEndpoint: to.Ptr("https://NS-f501f5e6-1f24-439b-8982-9af665156d40.servicebus.windows-int.net:443/"), + // UpdatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-11T07:42:59.687Z"); return t}()), + // }, + // SKU: &armservicebus.SBSKU{ + // Name: to.Ptr(armservicebus.SKUNameStandard), + // Tier: to.Ptr(armservicebus.SKUTierStandard), + // }, + // }, + // { + // Name: to.Ptr("NS-fe2ed660-2cd6-46f2-a9c3-7e11551a1f30"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces"), + // ID: to.Ptr("/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.ServiceBus/namespaces/NS-fe2ed660-2cd6-46f2-a9c3-7e11551a1f30"), + // Location: to.Ptr("South Central US"), + // Tags: map[string]*string{ + // }, + // Properties: &armservicebus.SBNamespaceProperties{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-08-23T02:32:08.227Z"); return t}()), + // DisableLocalAuth: to.Ptr(false), + // MetricID: to.Ptr("5f750a97-50d9-4e36-8081-c9ee4c0210d4:ns-fe2ed660-2cd6-46f2-a9c3-7e11551a1f30"), + // ProvisioningState: to.Ptr("Succeeded"), + // ServiceBusEndpoint: to.Ptr("https://NS-fe2ed660-2cd6-46f2-a9c3-7e11551a1f30.servicebus.windows-int.net:443/"), + // UpdatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-11T06:32:57.77Z"); return t}()), + // }, + // SKU: &armservicebus.SBSKU{ + // Name: to.Ptr(armservicebus.SKUNameStandard), + // Tier: to.Ptr(armservicebus.SKUTierStandard), + // }, + // }, + // { + // Name: to.Ptr("NS-8a5e3b4e-4e97-4d85-9083-cd33536c9d71"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces"), + // ID: to.Ptr("/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.ServiceBus/namespaces/NS-8a5e3b4e-4e97-4d85-9083-cd33536c9d71"), + // Location: to.Ptr("South Central US"), + // Tags: map[string]*string{ + // }, + // Properties: &armservicebus.SBNamespaceProperties{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-09-16T00:54:05.103Z"); return t}()), + // DisableLocalAuth: to.Ptr(false), + // MetricID: to.Ptr("5f750a97-50d9-4e36-8081-c9ee4c0210d4:ns-8a5e3b4e-4e97-4d85-9083-cd33536c9d71"), + // ProvisioningState: to.Ptr("Succeeded"), + // ServiceBusEndpoint: to.Ptr("https://NS-8a5e3b4e-4e97-4d85-9083-cd33536c9d71.servicebus.windows-int.net:443/"), + // UpdatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-11T10:43:50.313Z"); return t}()), + // }, + // SKU: &armservicebus.SBSKU{ + // Name: to.Ptr(armservicebus.SKUNameStandard), + // Tier: to.Ptr(armservicebus.SKUTierStandard), + // }, + // }, + // { + // Name: to.Ptr("NS-6520cc09-01ac-40a3-bc09-c5c431116e92"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces"), + // ID: to.Ptr("/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.ServiceBus/namespaces/NS-6520cc09-01ac-40a3-bc09-c5c431116e92"), + // Location: to.Ptr("South Central US"), + // Tags: map[string]*string{ + // }, + // Properties: &armservicebus.SBNamespaceProperties{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-09-16T01:49:59.243Z"); return t}()), + // DisableLocalAuth: to.Ptr(false), + // MetricID: to.Ptr("5f750a97-50d9-4e36-8081-c9ee4c0210d4:ns-6520cc09-01ac-40a3-bc09-c5c431116e92"), + // ProvisioningState: to.Ptr("Succeeded"), + // ServiceBusEndpoint: to.Ptr("https://NS-6520cc09-01ac-40a3-bc09-c5c431116e92.servicebus.windows-int.net:443"), + // UpdatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-11T08:15:36.95Z"); return t}()), + // }, + // SKU: &armservicebus.SBSKU{ + // Name: to.Ptr(armservicebus.SKUNameStandard), + // Tier: to.Ptr(armservicebus.SKUTierStandard), + // }, + // }, + // { + // Name: to.Ptr("NS-bfba6d5c-a425-42d9-85db-0f4da770e29a"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces"), + // ID: to.Ptr("/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.ServiceBus/namespaces/NS-bfba6d5c-a425-42d9-85db-0f4da770e29a"), + // Location: to.Ptr("South Central US"), + // Tags: map[string]*string{ + // }, + // Properties: &armservicebus.SBNamespaceProperties{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-08-05T03:23:32.083Z"); return t}()), + // DisableLocalAuth: to.Ptr(false), + // MetricID: to.Ptr("5f750a97-50d9-4e36-8081-c9ee4c0210d4:ns-bfba6d5c-a425-42d9-85db-0f4da770e29a"), + // ProvisioningState: to.Ptr("Succeeded"), + // ServiceBusEndpoint: to.Ptr("https://NS-bfba6d5c-a425-42d9-85db-0f4da770e29a.servicebus.windows-int.net:443/"), + // UpdatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-11T09:02:57.433Z"); return t}()), + // }, + // SKU: &armservicebus.SBSKU{ + // Name: to.Ptr(armservicebus.SKUNameStandard), + // Tier: to.Ptr(armservicebus.SKUTierStandard), + // }, + // }, + // { + // Name: to.Ptr("SBPrem"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces"), + // ID: to.Ptr("/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/RapscallionResources/providers/Microsoft.ServiceBus/namespaces/SBPrem"), + // Location: to.Ptr("South Central US"), + // Tags: map[string]*string{ + // }, + // Properties: &armservicebus.SBNamespaceProperties{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-10-10T22:16:30.87Z"); return t}()), + // DisableLocalAuth: to.Ptr(false), + // MetricID: to.Ptr("5f750a97-50d9-4e36-8081-c9ee4c0210d4:sbprem"), + // PremiumMessagingPartitions: to.Ptr[int32](2), + // ProvisioningState: to.Ptr("Succeeded"), + // ServiceBusEndpoint: to.Ptr("https://SBPrem.servicebus.windows-int.net:443/"), + // UpdatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-10-10T22:16:30.87Z"); return t}()), + // }, + // SKU: &armservicebus.SBSKU{ + // Name: to.Ptr(armservicebus.SKUNamePremium), + // Capacity: to.Ptr[int32](1), + // Tier: to.Ptr(armservicebus.SKUTierPremium), + // }, + // }, + // { + // Name: to.Ptr("NS-43b136b4-8716-40b2-97c5-0d77cac0062c"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces"), + // ID: to.Ptr("/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.ServiceBus/namespaces/NS-43b136b4-8716-40b2-97c5-0d77cac0062c"), + // Location: to.Ptr("South Central US"), + // Tags: map[string]*string{ + // }, + // Properties: &armservicebus.SBNamespaceProperties{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-08-23T03:14:50.577Z"); return t}()), + // DisableLocalAuth: to.Ptr(false), + // MetricID: to.Ptr("5f750a97-50d9-4e36-8081-c9ee4c0210d4:ns-43b136b4-8716-40b2-97c5-0d77cac0062c"), + // ProvisioningState: to.Ptr("Succeeded"), + // ServiceBusEndpoint: to.Ptr("https://NS-43b136b4-8716-40b2-97c5-0d77cac0062c.servicebus.windows-int.net:443/"), + // UpdatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-11T09:23:01.067Z"); return t}()), + // }, + // SKU: &armservicebus.SBSKU{ + // Name: to.Ptr(armservicebus.SKUNameStandard), + // Tier: to.Ptr(armservicebus.SKUTierStandard), + // }, + // }, + // { + // Name: to.Ptr("NS-7c0443de-5f88-450c-b574-83f60a097dd1"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces"), + // ID: to.Ptr("/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.ServiceBus/namespaces/NS-7c0443de-5f88-450c-b574-83f60a097dd1"), + // Location: to.Ptr("South Central US"), + // Tags: map[string]*string{ + // }, + // Properties: &armservicebus.SBNamespaceProperties{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-08-23T04:07:15.397Z"); return t}()), + // DisableLocalAuth: to.Ptr(false), + // MetricID: to.Ptr("5f750a97-50d9-4e36-8081-c9ee4c0210d4:ns-7c0443de-5f88-450c-b574-83f60a097dd1"), + // ProvisioningState: to.Ptr("Succeeded"), + // ServiceBusEndpoint: to.Ptr("https://NS-7c0443de-5f88-450c-b574-83f60a097dd1.servicebus.windows-int.net:443/"), + // UpdatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-11T04:03:03.097Z"); return t}()), + // }, + // SKU: &armservicebus.SBSKU{ + // Name: to.Ptr(armservicebus.SKUNameStandard), + // Tier: to.Ptr(armservicebus.SKUTierStandard), + // }, + // }, + // { + // Name: to.Ptr("NS-62dd7753-a5f9-42fd-a354-ca38a4505d69"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces"), + // ID: to.Ptr("/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.ServiceBus/namespaces/NS-62dd7753-a5f9-42fd-a354-ca38a4505d69"), + // Location: to.Ptr("South Central US"), + // Tags: map[string]*string{ + // }, + // Properties: &armservicebus.SBNamespaceProperties{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-09-16T01:33:50.45Z"); return t}()), + // DisableLocalAuth: to.Ptr(false), + // MetricID: to.Ptr("5f750a97-50d9-4e36-8081-c9ee4c0210d4:ns-62dd7753-a5f9-42fd-a354-ca38a4505d69"), + // ProvisioningState: to.Ptr("Succeeded"), + // ServiceBusEndpoint: to.Ptr("https://NS-62dd7753-a5f9-42fd-a354-ca38a4505d69.servicebus.windows-int.net:443/"), + // UpdatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-11T05:35:33.053Z"); return t}()), + // }, + // SKU: &armservicebus.SBSKU{ + // Name: to.Ptr(armservicebus.SKUNameStandard), + // Tier: to.Ptr(armservicebus.SKUTierStandard), + // }, + // }, + // { + // Name: to.Ptr("NS-ae18a18c-97ab-4089-965d-8acbf4794091"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces"), + // ID: to.Ptr("/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.ServiceBus/namespaces/NS-ae18a18c-97ab-4089-965d-8acbf4794091"), + // Location: to.Ptr("South Central US"), + // Tags: map[string]*string{ + // }, + // Properties: &armservicebus.SBNamespaceProperties{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-08-23T02:43:36.517Z"); return t}()), + // DisableLocalAuth: to.Ptr(false), + // MetricID: to.Ptr("5f750a97-50d9-4e36-8081-c9ee4c0210d4:ns-ae18a18c-97ab-4089-965d-8acbf4794091"), + // ProvisioningState: to.Ptr("Succeeded"), + // ServiceBusEndpoint: to.Ptr("https://NS-ae18a18c-97ab-4089-965d-8acbf4794091.servicebus.windows-int.net:443/"), + // UpdatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-11T12:40:30.587Z"); return t}()), + // }, + // SKU: &armservicebus.SBSKU{ + // Name: to.Ptr(armservicebus.SKUNameStandard), + // Tier: to.Ptr(armservicebus.SKUTierStandard), + // }, + // }, + // { + // Name: to.Ptr("NS-8e3b56c1-0ee8-4e13-ae88-5cadf6e2ce11"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces"), + // ID: to.Ptr("/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.ServiceBus/namespaces/NS-8e3b56c1-0ee8-4e13-ae88-5cadf6e2ce11"), + // Location: to.Ptr("South Central US"), + // Tags: map[string]*string{ + // }, + // Properties: &armservicebus.SBNamespaceProperties{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-09-16T00:46:03.773Z"); return t}()), + // DisableLocalAuth: to.Ptr(false), + // MetricID: to.Ptr("5f750a97-50d9-4e36-8081-c9ee4c0210d4:ns-8e3b56c1-0ee8-4e13-ae88-5cadf6e2ce11"), + // ProvisioningState: to.Ptr("Succeeded"), + // ServiceBusEndpoint: to.Ptr("https://NS-8e3b56c1-0ee8-4e13-ae88-5cadf6e2ce11.servicebus.windows-int.net:443/"), + // UpdatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-11T04:43:54.56Z"); return t}()), + // }, + // SKU: &armservicebus.SBSKU{ + // Name: to.Ptr(armservicebus.SKUNameStandard), + // Tier: to.Ptr(armservicebus.SKUTierStandard), + // }, + // }, + // { + // Name: to.Ptr("NS-7ffca4b4-4728-4fb0-b2d0-1e7c016e3a44"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces"), + // ID: to.Ptr("/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.ServiceBus/namespaces/NS-7ffca4b4-4728-4fb0-b2d0-1e7c016e3a44"), + // Location: to.Ptr("South Central US"), + // Tags: map[string]*string{ + // }, + // Properties: &armservicebus.SBNamespaceProperties{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-08-23T03:59:12.1Z"); return t}()), + // DisableLocalAuth: to.Ptr(false), + // MetricID: to.Ptr("5f750a97-50d9-4e36-8081-c9ee4c0210d4:ns-7ffca4b4-4728-4fb0-b2d0-1e7c016e3a44"), + // ProvisioningState: to.Ptr("Succeeded"), + // ServiceBusEndpoint: to.Ptr("https://NS-7ffca4b4-4728-4fb0-b2d0-1e7c016e3a44.servicebus.windows-int.net:443/"), + // UpdatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-11T06:33:52.23Z"); return t}()), + // }, + // SKU: &armservicebus.SBSKU{ + // Name: to.Ptr(armservicebus.SKUNameStandard), + // Tier: to.Ptr(armservicebus.SKUTierStandard), + // }, + // }, + // { + // Name: to.Ptr("NS-d9337efd-9b27-454c-b2a5-dcfea56920d9"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces"), + // ID: to.Ptr("/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.ServiceBus/namespaces/NS-d9337efd-9b27-454c-b2a5-dcfea56920d9"), + // Location: to.Ptr("South Central US"), + // Tags: map[string]*string{ + // }, + // Properties: &armservicebus.SBNamespaceProperties{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-08-05T03:45:09.27Z"); return t}()), + // DisableLocalAuth: to.Ptr(false), + // MetricID: to.Ptr("5f750a97-50d9-4e36-8081-c9ee4c0210d4:ns-d9337efd-9b27-454c-b2a5-dcfea56920d9"), + // ProvisioningState: to.Ptr("Succeeded"), + // ServiceBusEndpoint: to.Ptr("https://NS-d9337efd-9b27-454c-b2a5-dcfea56920d9.servicebus.windows-int.net:443/"), + // UpdatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-11T06:20:31.863Z"); return t}()), + // }, + // SKU: &armservicebus.SBSKU{ + // Name: to.Ptr(armservicebus.SKUNameStandard), + // Tier: to.Ptr(armservicebus.SKUTierStandard), + // }, + // }, + // { + // Name: to.Ptr("NS-ad5ae732-abea-4e62-9de0-c90de0ddec0a"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces"), + // ID: to.Ptr("/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.ServiceBus/namespaces/NS-ad5ae732-abea-4e62-9de0-c90de0ddec0a"), + // Location: to.Ptr("South Central US"), + // Tags: map[string]*string{ + // }, + // Properties: &armservicebus.SBNamespaceProperties{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-08-23T02:34:36.447Z"); return t}()), + // DisableLocalAuth: to.Ptr(false), + // MetricID: to.Ptr("5f750a97-50d9-4e36-8081-c9ee4c0210d4:ns-ad5ae732-abea-4e62-9de0-c90de0ddec0a"), + // ProvisioningState: to.Ptr("Succeeded"), + // ServiceBusEndpoint: to.Ptr("https://NS-ad5ae732-abea-4e62-9de0-c90de0ddec0a.servicebus.windows-int.net:443/"), + // UpdatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-11T06:15:31.607Z"); return t}()), + // }, + // SKU: &armservicebus.SBSKU{ + // Name: to.Ptr(armservicebus.SKUNameStandard), + // Tier: to.Ptr(armservicebus.SKUTierStandard), + // }, + // }, + // { + // Name: to.Ptr("NS-d447fb03-c7da-40fe-b5eb-14f36888837b"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces"), + // ID: to.Ptr("/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.ServiceBus/namespaces/NS-d447fb03-c7da-40fe-b5eb-14f36888837b"), + // Location: to.Ptr("South Central US"), + // Tags: map[string]*string{ + // }, + // Properties: &armservicebus.SBNamespaceProperties{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-08-05T00:53:46.697Z"); return t}()), + // DisableLocalAuth: to.Ptr(false), + // MetricID: to.Ptr("5f750a97-50d9-4e36-8081-c9ee4c0210d4:ns-d447fb03-c7da-40fe-b5eb-14f36888837b"), + // ProvisioningState: to.Ptr("Succeeded"), + // ServiceBusEndpoint: to.Ptr("https://NS-d447fb03-c7da-40fe-b5eb-14f36888837b.servicebus.windows-int.net:443/"), + // UpdatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-11T11:09:41.26Z"); return t}()), + // }, + // SKU: &armservicebus.SBSKU{ + // Name: to.Ptr(armservicebus.SKUNameStandard), + // Tier: to.Ptr(armservicebus.SKUTierStandard), + // }, + // }, + // { + // Name: to.Ptr("ReproSB"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces"), + // ID: to.Ptr("/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/RapscallionResources/providers/Microsoft.ServiceBus/namespaces/ReproSB"), + // Location: to.Ptr("South Central US"), + // Tags: map[string]*string{ + // }, + // Properties: &armservicebus.SBNamespaceProperties{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-27T19:29:34.523Z"); return t}()), + // DisableLocalAuth: to.Ptr(false), + // MetricID: to.Ptr("5f750a97-50d9-4e36-8081-c9ee4c0210d4:reprosb"), + // ProvisioningState: to.Ptr("Succeeded"), + // ServiceBusEndpoint: to.Ptr("https://ReproSB.servicebus.windows-int.net:443/"), + // UpdatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-27T19:29:58.64Z"); return t}()), + // }, + // SKU: &armservicebus.SBSKU{ + // Name: to.Ptr(armservicebus.SKUNameStandard), + // Tier: to.Ptr(armservicebus.SKUTierStandard), + // }, + // }, + // { + // Name: to.Ptr("NS-4c90097f-19a8-42e7-bb3c-4ac088994719"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces"), + // ID: to.Ptr("/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.ServiceBus/namespaces/NS-4c90097f-19a8-42e7-bb3c-4ac088994719"), + // Location: to.Ptr("South Central US"), + // Tags: map[string]*string{ + // }, + // Properties: &armservicebus.SBNamespaceProperties{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-09-16T17:35:32.61Z"); return t}()), + // DisableLocalAuth: to.Ptr(false), + // MetricID: to.Ptr("5f750a97-50d9-4e36-8081-c9ee4c0210d4:ns-4c90097f-19a8-42e7-bb3c-4ac088994719"), + // ProvisioningState: to.Ptr("Succeeded"), + // ServiceBusEndpoint: to.Ptr("https://NS-4c90097f-19a8-42e7-bb3c-4ac088994719.servicebus.windows-int.net:443/"), + // UpdatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-11T09:13:52.27Z"); return t}()), + // }, + // SKU: &armservicebus.SBSKU{ + // Name: to.Ptr(armservicebus.SKUNameStandard), + // Tier: to.Ptr(armservicebus.SKUTierStandard), + // }, + // }, + // { + // Name: to.Ptr("rrama-1-23-17"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces"), + // ID: to.Ptr("/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.ServiceBus/namespaces/rrama-1-23-17"), + // Location: to.Ptr("South Central US"), + // Tags: map[string]*string{ + // }, + // Properties: &armservicebus.SBNamespaceProperties{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-01-23T22:54:40.907Z"); return t}()), + // DisableLocalAuth: to.Ptr(false), + // MetricID: to.Ptr("5f750a97-50d9-4e36-8081-c9ee4c0210d4:rrama-1-23-17"), + // ProvisioningState: to.Ptr("Succeeded"), + // ServiceBusEndpoint: to.Ptr("https://rrama-1-23-17.servicebus.windows-int.net:443/"), + // UpdatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-04T00:53:28.777Z"); return t}()), + // }, + // SKU: &armservicebus.SBSKU{ + // Name: to.Ptr(armservicebus.SKUNameStandard), + // Tier: to.Ptr(armservicebus.SKUTierStandard), + // }, + // }, + // { + // Name: to.Ptr("NS-5191e541-8e4e-4229-9fdc-b89f6c3e7f12"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces"), + // ID: to.Ptr("/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.ServiceBus/namespaces/NS-5191e541-8e4e-4229-9fdc-b89f6c3e7f12"), + // Location: to.Ptr("South Central US"), + // Tags: map[string]*string{ + // }, + // Properties: &armservicebus.SBNamespaceProperties{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-09-16T17:43:25.71Z"); return t}()), + // DisableLocalAuth: to.Ptr(false), + // MetricID: to.Ptr("5f750a97-50d9-4e36-8081-c9ee4c0210d4:ns-5191e541-8e4e-4229-9fdc-b89f6c3e7f12"), + // ProvisioningState: to.Ptr("Succeeded"), + // ServiceBusEndpoint: to.Ptr("https://NS-5191e541-8e4e-4229-9fdc-b89f6c3e7f12.servicebus.windows-int.net:443/"), + // UpdatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-11T11:05:31.89Z"); return t}()), + // }, + // SKU: &armservicebus.SBSKU{ + // Name: to.Ptr(armservicebus.SKUNameStandard), + // Tier: to.Ptr(armservicebus.SKUTierStandard), + // }, + // }, + // { + // Name: to.Ptr("NS-be903820-3533-46e8-90e4-72c132411848"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces"), + // ID: to.Ptr("/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.ServiceBus/namespaces/NS-be903820-3533-46e8-90e4-72c132411848"), + // Location: to.Ptr("South Central US"), + // Tags: map[string]*string{ + // }, + // Properties: &armservicebus.SBNamespaceProperties{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-08-05T03:24:01.923Z"); return t}()), + // DisableLocalAuth: to.Ptr(false), + // MetricID: to.Ptr("5f750a97-50d9-4e36-8081-c9ee4c0210d4:ns-be903820-3533-46e8-90e4-72c132411848"), + // ProvisioningState: to.Ptr("Succeeded"), + // ServiceBusEndpoint: to.Ptr("https://NS-be903820-3533-46e8-90e4-72c132411848.servicebus.windows-int.net:443/"), + // UpdatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-11T10:09:42.513Z"); return t}()), + // }, + // SKU: &armservicebus.SBSKU{ + // Name: to.Ptr(armservicebus.SKUNameStandard), + // Tier: to.Ptr(armservicebus.SKUTierStandard), + // }, + // }, + // { + // Name: to.Ptr("rrama-namespace1"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces"), + // ID: to.Ptr("/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.ServiceBus/namespaces/rrama-namespace1"), + // Location: to.Ptr("South Central US"), + // Tags: map[string]*string{ + // }, + // Properties: &armservicebus.SBNamespaceProperties{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-08-05T00:47:22.963Z"); return t}()), + // DisableLocalAuth: to.Ptr(false), + // MetricID: to.Ptr("5f750a97-50d9-4e36-8081-c9ee4c0210d4:rrama-namespace1"), + // ProvisioningState: to.Ptr("Succeeded"), + // ServiceBusEndpoint: to.Ptr("https://rrama-namespace1.servicebus.windows-int.net:443/"), + // UpdatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-08-05T00:47:27.297Z"); return t}()), + // }, + // SKU: &armservicebus.SBSKU{ + // Name: to.Ptr(armservicebus.SKUNameStandard), + // Tier: to.Ptr(armservicebus.SKUTierStandard), + // }, + // }, + // { + // Name: to.Ptr("NS-a3c38e9b-32a3-4c51-85d7-263150a8dda9"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces"), + // ID: to.Ptr("/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.ServiceBus/namespaces/NS-a3c38e9b-32a3-4c51-85d7-263150a8dda9"), + // Location: to.Ptr("South Central US"), + // Tags: map[string]*string{ + // }, + // Properties: &armservicebus.SBNamespaceProperties{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-09-16T00:38:02.517Z"); return t}()), + // DisableLocalAuth: to.Ptr(false), + // MetricID: to.Ptr("5f750a97-50d9-4e36-8081-c9ee4c0210d4:ns-a3c38e9b-32a3-4c51-85d7-263150a8dda9"), + // ProvisioningState: to.Ptr("Succeeded"), + // ServiceBusEndpoint: to.Ptr("https://NS-a3c38e9b-32a3-4c51-85d7-263150a8dda9.servicebus.windows-int.net:443/"), + // UpdatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-11T05:03:55.96Z"); return t}()), + // }, + // SKU: &armservicebus.SBSKU{ + // Name: to.Ptr(armservicebus.SKUNameStandard), + // Tier: to.Ptr(armservicebus.SKUTierStandard), + // }, + // }, + // { + // Name: to.Ptr("NS-70d3fa25-6bbe-4a6b-a381-a52cf0d539e6"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces"), + // ID: to.Ptr("/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.ServiceBus/namespaces/NS-70d3fa25-6bbe-4a6b-a381-a52cf0d539e6"), + // Location: to.Ptr("South Central US"), + // Tags: map[string]*string{ + // }, + // Properties: &armservicebus.SBNamespaceProperties{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-08-23T03:42:40.01Z"); return t}()), + // DisableLocalAuth: to.Ptr(false), + // MetricID: to.Ptr("5f750a97-50d9-4e36-8081-c9ee4c0210d4:ns-70d3fa25-6bbe-4a6b-a381-a52cf0d539e6"), + // ProvisioningState: to.Ptr("Succeeded"), + // ServiceBusEndpoint: to.Ptr("https://NS-70d3fa25-6bbe-4a6b-a381-a52cf0d539e6.servicebus.windows-int.net:443/"), + // UpdatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-11T06:33:02.363Z"); return t}()), + // }, + // SKU: &armservicebus.SBSKU{ + // Name: to.Ptr(armservicebus.SKUNameStandard), + // Tier: to.Ptr(armservicebus.SKUTierStandard), + // }, + // }, + // { + // Name: to.Ptr("NS-e6536f77-0d1b-4a6b-8f42-29cc15b2930a"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces"), + // ID: to.Ptr("/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.ServiceBus/namespaces/NS-e6536f77-0d1b-4a6b-8f42-29cc15b2930a"), + // Location: to.Ptr("South Central US"), + // Tags: map[string]*string{ + // }, + // Properties: &armservicebus.SBNamespaceProperties{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-08-05T04:28:10.71Z"); return t}()), + // DisableLocalAuth: to.Ptr(false), + // MetricID: to.Ptr("5f750a97-50d9-4e36-8081-c9ee4c0210d4:ns-e6536f77-0d1b-4a6b-8f42-29cc15b2930a"), + // ProvisioningState: to.Ptr("Succeeded"), + // ServiceBusEndpoint: to.Ptr("https://NS-e6536f77-0d1b-4a6b-8f42-29cc15b2930a.servicebus.windows-int.net:443/"), + // UpdatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-11T08:43:51.587Z"); return t}()), + // }, + // SKU: &armservicebus.SBSKU{ + // Name: to.Ptr(armservicebus.SKUNameStandard), + // Tier: to.Ptr(armservicebus.SKUTierStandard), + // }, + // }, + // { + // Name: to.Ptr("sdk-Namespace-2924"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces"), + // ID: to.Ptr("/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/ArunMonocle/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-2924"), + // Location: to.Ptr("South Central US"), + // Tags: map[string]*string{ + // "tag1": to.Ptr("value1"), + // "tag2": to.Ptr("value2"), + // }, + // Properties: &armservicebus.SBNamespaceProperties{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-05-25T22:26:36.76Z"); return t}()), + // DisableLocalAuth: to.Ptr(false), + // MetricID: to.Ptr("5f750a97-50d9-4e36-8081-c9ee4c0210d4:sdk-namespace-2924"), + // ProvisioningState: to.Ptr("Succeeded"), + // ServiceBusEndpoint: to.Ptr("https://sdk-Namespace-2924.servicebus.windows-int.net:443/"), + // UpdatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-05-25T22:26:59.35Z"); return t}()), + // }, + // SKU: &armservicebus.SBSKU{ + // Name: to.Ptr(armservicebus.SKUNameStandard), + // Tier: to.Ptr(armservicebus.SKUTierStandard), + // }, + // }, + // { + // Name: to.Ptr("rrama-sb1"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces"), + // ID: to.Ptr("/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.ServiceBus/namespaces/rrama-sb1"), + // Location: to.Ptr("South Central US"), + // Tags: map[string]*string{ + // }, + // Properties: &armservicebus.SBNamespaceProperties{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-05-01T21:47:34.903Z"); return t}()), + // DisableLocalAuth: to.Ptr(false), + // MetricID: to.Ptr("5f750a97-50d9-4e36-8081-c9ee4c0210d4:rrama-sb1"), + // ProvisioningState: to.Ptr("Succeeded"), + // ServiceBusEndpoint: to.Ptr("https://rrama-sb1.servicebus.windows-int.net:443/"), + // UpdatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-05-02T02:10:03.083Z"); return t}()), + // }, + // SKU: &armservicebus.SBSKU{ + // Name: to.Ptr(armservicebus.SKUNameStandard), + // Tier: to.Ptr(armservicebus.SKUTierStandard), + // }, + // }, + // { + // Name: to.Ptr("WhackWhack"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces"), + // ID: to.Ptr("/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/RapscallionResources/providers/Microsoft.ServiceBus/namespaces/WhackWhack"), + // Location: to.Ptr("South Central US"), + // Tags: map[string]*string{ + // }, + // Properties: &armservicebus.SBNamespaceProperties{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-10-10T23:39:01.347Z"); return t}()), + // DisableLocalAuth: to.Ptr(false), + // MetricID: to.Ptr("5f750a97-50d9-4e36-8081-c9ee4c0210d4:whackwhack"), + // ProvisioningState: to.Ptr("Succeeded"), + // ServiceBusEndpoint: to.Ptr("https://WhackWhack.servicebus.windows-int.net:443/"), + // UpdatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-04T00:56:32.687Z"); return t}()), + // }, + // SKU: &armservicebus.SBSKU{ + // Name: to.Ptr(armservicebus.SKUNameStandard), + // Tier: to.Ptr(armservicebus.SKUTierStandard), + // }, + // }, + // { + // Name: to.Ptr("NS-66ed32d6-611e-4bb0-8e1a-a6d0fc65427c"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces"), + // ID: to.Ptr("/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.ServiceBus/namespaces/NS-66ed32d6-611e-4bb0-8e1a-a6d0fc65427c"), + // Location: to.Ptr("South Central US"), + // Tags: map[string]*string{ + // }, + // Properties: &armservicebus.SBNamespaceProperties{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-09-16T17:51:27.73Z"); return t}()), + // DisableLocalAuth: to.Ptr(false), + // MetricID: to.Ptr("5f750a97-50d9-4e36-8081-c9ee4c0210d4:ns-66ed32d6-611e-4bb0-8e1a-a6d0fc65427c"), + // ProvisioningState: to.Ptr("Succeeded"), + // ServiceBusEndpoint: to.Ptr("https://NS-66ed32d6-611e-4bb0-8e1a-a6d0fc65427c.servicebus.windows-int.net:443/"), + // UpdatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-11T08:19:43.383Z"); return t}()), + // }, + // SKU: &armservicebus.SBSKU{ + // Name: to.Ptr(armservicebus.SKUNameStandard), + // Tier: to.Ptr(armservicebus.SKUTierStandard), + // }, + // }, + // { + // Name: to.Ptr("NS-e0cab401-6df8-465d-8d4a-da9a9e55cf0e"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces"), + // ID: to.Ptr("/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.ServiceBus/namespaces/NS-e0cab401-6df8-465d-8d4a-da9a9e55cf0e"), + // Location: to.Ptr("South Central US"), + // Tags: map[string]*string{ + // }, + // Properties: &armservicebus.SBNamespaceProperties{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2016-08-05T01:14:25.613Z"); return t}()), + // DisableLocalAuth: to.Ptr(false), + // MetricID: to.Ptr("5f750a97-50d9-4e36-8081-c9ee4c0210d4:ns-e0cab401-6df8-465d-8d4a-da9a9e55cf0e"), + // ProvisioningState: to.Ptr("Succeeded"), + // ServiceBusEndpoint: to.Ptr("https://NS-e0cab401-6df8-465d-8d4a-da9a9e55cf0e.servicebus.windows-int.net:443/"), + // UpdatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-02-11T12:33:01.727Z"); return t}()), + // }, + // SKU: &armservicebus.SBSKU{ + // Name: to.Ptr(armservicebus.SKUNameStandard), + // Tier: to.Ptr(armservicebus.SKUTierStandard), + // }, + // }, + // { + // Name: to.Ptr("bn3-rrama-foo1"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces"), + // ID: to.Ptr("/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.ServiceBus/namespaces/bn3-rrama-foo1"), + // Location: to.Ptr("East US 2"), + // Tags: map[string]*string{ + // }, + // Properties: &armservicebus.SBNamespaceProperties{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-28T23:54:26.927Z"); return t}()), + // DisableLocalAuth: to.Ptr(false), + // MetricID: to.Ptr("5f750a97-50d9-4e36-8081-c9ee4c0210d4:bn3-rrama-foo1"), + // ProvisioningState: to.Ptr("Succeeded"), + // ServiceBusEndpoint: to.Ptr("https://bn3-rrama-foo1.servicebus.int7.windows-int.net:443/"), + // UpdatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-28T23:54:26.927Z"); return t}()), + // }, + // SKU: &armservicebus.SBSKU{ + // Name: to.Ptr(armservicebus.SKUNameStandard), + // Tier: to.Ptr(armservicebus.SKUTierStandard), + // }, + // }, + // { + // Name: to.Ptr("bn3-rrama-foo3"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces"), + // ID: to.Ptr("/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.ServiceBus/namespaces/bn3-rrama-foo3"), + // Location: to.Ptr("East US 2"), + // Tags: map[string]*string{ + // }, + // Properties: &armservicebus.SBNamespaceProperties{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-29T00:24:09.907Z"); return t}()), + // DisableLocalAuth: to.Ptr(false), + // MetricID: to.Ptr("5f750a97-50d9-4e36-8081-c9ee4c0210d4:bn3-rrama-foo3"), + // ProvisioningState: to.Ptr("Succeeded"), + // ServiceBusEndpoint: to.Ptr("https://bn3-rrama-foo3.servicebus.int7.windows-int.net:443/"), + // UpdatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-29T00:24:33.233Z"); return t}()), + // }, + // SKU: &armservicebus.SBSKU{ + // Name: to.Ptr(armservicebus.SKUNameStandard), + // Tier: to.Ptr(armservicebus.SKUTierStandard), + // }, + // }, + // { + // Name: to.Ptr("bn3-rrama-foo2"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces"), + // ID: to.Ptr("/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.ServiceBus/namespaces/bn3-rrama-foo2"), + // Location: to.Ptr("East US 2"), + // Tags: map[string]*string{ + // }, + // Properties: &armservicebus.SBNamespaceProperties{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-28T23:57:40.82Z"); return t}()), + // DisableLocalAuth: to.Ptr(false), + // MetricID: to.Ptr("5f750a97-50d9-4e36-8081-c9ee4c0210d4:bn3-rrama-foo2"), + // ProvisioningState: to.Ptr("Succeeded"), + // ServiceBusEndpoint: to.Ptr("https://bn3-rrama-foo2.servicebus.int7.windows-int.net:443/"), + // UpdatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-28T23:57:40.82Z"); return t}()), + // }, + // SKU: &armservicebus.SBSKU{ + // Name: to.Ptr(armservicebus.SKUNameStandard), + // Tier: to.Ptr(armservicebus.SKUTierStandard), + // }, + // }, + // { + // Name: to.Ptr("db3-rrama-foo2"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces"), + // ID: to.Ptr("/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/Default-ServiceBus-SouthCentralUS/providers/Microsoft.ServiceBus/namespaces/db3-rrama-foo2"), + // Location: to.Ptr("North Europe"), + // Tags: map[string]*string{ + // }, + // Properties: &armservicebus.SBNamespaceProperties{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-29T00:10:43.463Z"); return t}()), + // DisableLocalAuth: to.Ptr(false), + // MetricID: to.Ptr("5f750a97-50d9-4e36-8081-c9ee4c0210d4:db3-rrama-foo2"), + // ProvisioningState: to.Ptr("Succeeded"), + // ServiceBusEndpoint: to.Ptr("https://db3-rrama-foo2.servicebus.int7.windows-int.net:443/"), + // UpdatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-04-29T00:11:09.133Z"); return t}()), + // }, + // SKU: &armservicebus.SBSKU{ + // Name: to.Ptr(armservicebus.SKUNameStandard), + // Tier: to.Ptr(armservicebus.SKUTierStandard), + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5e24fa8e30bff0cb321494a0b550b1c1282a8a3c/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples/NameSpaces/SBNameSpaceListByResourceGroup.json +func ExampleNamespacesClient_NewListByResourceGroupPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armservicebus.NewNamespacesClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListByResourceGroupPager("ArunMonocle", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.SBNamespaceListResult = armservicebus.SBNamespaceListResult{ + // Value: []*armservicebus.SBNamespace{ + // { + // Name: to.Ptr("sdk-Namespace-2924"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces"), + // ID: to.Ptr("/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/ArunMonocle/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-2924"), + // Location: to.Ptr("South Central US"), + // Tags: map[string]*string{ + // "tag1": to.Ptr("value1"), + // "tag2": to.Ptr("value2"), + // }, + // Properties: &armservicebus.SBNamespaceProperties{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-05-25T22:26:36.76Z"); return t}()), + // DisableLocalAuth: to.Ptr(false), + // MetricID: to.Ptr("5f750a97-50d9-4e36-8081-c9ee4c0210d4:sdk-namespace-2924"), + // ProvisioningState: to.Ptr("Succeeded"), + // ServiceBusEndpoint: to.Ptr("https://sdk-Namespace-2924.servicebus.windows-int.net:443/"), + // UpdatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-05-25T22:26:59.35Z"); return t}()), + // }, + // SKU: &armservicebus.SBSKU{ + // Name: to.Ptr(armservicebus.SKUNameStandard), + // Tier: to.Ptr(armservicebus.SKUTierStandard), + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5e24fa8e30bff0cb321494a0b550b1c1282a8a3c/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples/NameSpaces/SBNameSpaceCreate.json +func ExampleNamespacesClient_BeginCreateOrUpdate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armservicebus.NewNamespacesClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreateOrUpdate(ctx, "ArunMonocle", "sdk-Namespace2924", armservicebus.SBNamespace{ + Location: to.Ptr("South Central US"), + Tags: map[string]*string{ + "tag1": to.Ptr("value1"), + "tag2": to.Ptr("value2"), + }, + Properties: &armservicebus.SBNamespaceProperties{ + PremiumMessagingPartitions: to.Ptr[int32](2), + }, + SKU: &armservicebus.SBSKU{ + Name: to.Ptr(armservicebus.SKUNamePremium), + Capacity: to.Ptr[int32](4), + Tier: to.Ptr(armservicebus.SKUTierPremium), + }, + }, 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.SBNamespace = armservicebus.SBNamespace{ + // Name: to.Ptr("sdk-Namespace-2924"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces"), + // ID: to.Ptr("/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/ArunMonocle/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-2924"), + // Location: to.Ptr("South Central US"), + // Tags: map[string]*string{ + // "tag1": to.Ptr("value1"), + // "tag2": to.Ptr("value2"), + // }, + // Properties: &armservicebus.SBNamespaceProperties{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-05-25T22:26:36.76Z"); return t}()), + // MetricID: to.Ptr("5f750a97-50d9-4e36-8081-c9ee4c0210d4:sdk-namespace-2924"), + // MinimumTLSVersion: to.Ptr(armservicebus.TLSVersionOne2), + // PremiumMessagingPartitions: to.Ptr[int32](2), + // ProvisioningState: to.Ptr("Succeeded"), + // ServiceBusEndpoint: to.Ptr("https://sdk-Namespace-2924.servicebus.windows-int.net:443/"), + // UpdatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-05-25T22:26:36.76Z"); return t}()), + // }, + // SKU: &armservicebus.SBSKU{ + // Name: to.Ptr(armservicebus.SKUNamePremium), + // Capacity: to.Ptr[int32](4), + // Tier: to.Ptr(armservicebus.SKUTierPremium), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5e24fa8e30bff0cb321494a0b550b1c1282a8a3c/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples/NameSpaces/SBNameSpaceDelete.json +func ExampleNamespacesClient_BeginDelete() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armservicebus.NewNamespacesClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginDelete(ctx, "ArunMonocle", "sdk-Namespace-3285", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + _, err = poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5e24fa8e30bff0cb321494a0b550b1c1282a8a3c/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples/NameSpaces/SBNameSpaceGet.json +func ExampleNamespacesClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armservicebus.NewNamespacesClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "ArunMonocle", "sdk-Namespace-2924", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.SBNamespace = armservicebus.SBNamespace{ + // Name: to.Ptr("sdk-Namespace-2924"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces"), + // ID: to.Ptr("/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/ArunMonocle/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-2924"), + // Location: to.Ptr("South Central US"), + // Tags: map[string]*string{ + // "tag1": to.Ptr("value1"), + // "tag2": to.Ptr("value2"), + // }, + // Properties: &armservicebus.SBNamespaceProperties{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-05-25T22:26:36.76Z"); return t}()), + // DisableLocalAuth: to.Ptr(false), + // MetricID: to.Ptr("5f750a97-50d9-4e36-8081-c9ee4c0210d4:sdk-namespace-2924"), + // MinimumTLSVersion: to.Ptr(armservicebus.TLSVersionOne2), + // PrivateEndpointConnections: []*armservicebus.PrivateEndpointConnection{ + // { + // Name: to.Ptr("privateEndpointConnectionName"), + // Type: to.Ptr("Microsoft.EventHub/Namespaces/PrivateEndpointConnections"), + // ID: to.Ptr("/subscriptions/SampleSubscription/resourceGroups/ResurceGroupSample/providers/Microsoft.EventHub/namespaces/NamespaceSample/privateEndpointConnections/privateEndpointConnectionName"), + // Properties: &armservicebus.PrivateEndpointConnectionProperties{ + // PrivateEndpoint: &armservicebus.PrivateEndpoint{ + // ID: to.Ptr("/subscriptions/SampleSubscription/resourceGroups/ResurceGroupSample/providers/Microsoft.Network/privateEndpoints/NamespaceSample"), + // }, + // PrivateLinkServiceConnectionState: &armservicebus.ConnectionState{ + // Description: to.Ptr("Auto-Approved"), + // Status: to.Ptr(armservicebus.PrivateLinkConnectionStatusApproved), + // }, + // ProvisioningState: to.Ptr(armservicebus.EndPointProvisioningStateSucceeded), + // }, + // }}, + // ProvisioningState: to.Ptr("Succeeded"), + // ServiceBusEndpoint: to.Ptr("https://sdk-Namespace-2924.servicebus.windows-int.net:443/"), + // UpdatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-05-25T22:26:59.35Z"); return t}()), + // }, + // SKU: &armservicebus.SBSKU{ + // Name: to.Ptr(armservicebus.SKUNameStandard), + // Tier: to.Ptr(armservicebus.SKUTierStandard), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5e24fa8e30bff0cb321494a0b550b1c1282a8a3c/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples/NameSpaces/SBNameSpaceUpdate.json +func ExampleNamespacesClient_Update() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armservicebus.NewNamespacesClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Update(ctx, "ArunMonocle", "sdk-Namespace-3285", armservicebus.SBNamespaceUpdateParameters{ + Location: to.Ptr("South Central US"), + Tags: map[string]*string{ + "tag3": to.Ptr("value3"), + "tag4": to.Ptr("value4"), + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.SBNamespace = armservicebus.SBNamespace{ + // Name: to.Ptr("sdk-Namespace-3285"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces"), + // ID: to.Ptr("/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/ArunMonocle/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-3285"), + // Location: to.Ptr("South Central US"), + // Tags: map[string]*string{ + // "tag3": to.Ptr("value3"), + // "tag4": to.Ptr("value4"), + // }, + // Properties: &armservicebus.SBNamespaceProperties{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-05-25T23:07:58.17Z"); return t}()), + // DisableLocalAuth: to.Ptr(false), + // MetricID: to.Ptr("5f750a97-50d9-4e36-8081-c9ee4c0210d4:sdk-namespace-3285"), + // MinimumTLSVersion: to.Ptr(armservicebus.TLSVersionOne1), + // ProvisioningState: to.Ptr("Succeeded"), + // ServiceBusEndpoint: to.Ptr("https://sdk-Namespace-3285.servicebus.windows-int.net:443/"), + // UpdatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-05-25T23:08:45.497Z"); return t}()), + // }, + // SKU: &armservicebus.SBSKU{ + // Name: to.Ptr(armservicebus.SKUNameStandard), + // Tier: to.Ptr(armservicebus.SKUTierStandard), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5e24fa8e30bff0cb321494a0b550b1c1282a8a3c/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples/NameSpaces/VirtualNetworkRule/SBNetworkRuleSetCreate.json +func ExampleNamespacesClient_CreateOrUpdateNetworkRuleSet() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armservicebus.NewNamespacesClient("Subscription", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.CreateOrUpdateNetworkRuleSet(ctx, "ResourceGroup", "sdk-Namespace-6019", armservicebus.NetworkRuleSet{ + Properties: &armservicebus.NetworkRuleSetProperties{ + DefaultAction: to.Ptr(armservicebus.DefaultActionDeny), + IPRules: []*armservicebus.NWRuleSetIPRules{ + { + Action: to.Ptr(armservicebus.NetworkRuleIPActionAllow), + IPMask: to.Ptr("1.1.1.1"), + }, + { + Action: to.Ptr(armservicebus.NetworkRuleIPActionAllow), + IPMask: to.Ptr("1.1.1.2"), + }, + { + Action: to.Ptr(armservicebus.NetworkRuleIPActionAllow), + IPMask: to.Ptr("1.1.1.3"), + }, + { + Action: to.Ptr(armservicebus.NetworkRuleIPActionAllow), + IPMask: to.Ptr("1.1.1.4"), + }, + { + Action: to.Ptr(armservicebus.NetworkRuleIPActionAllow), + IPMask: to.Ptr("1.1.1.5"), + }}, + VirtualNetworkRules: []*armservicebus.NWRuleSetVirtualNetworkRules{ + { + IgnoreMissingVnetServiceEndpoint: to.Ptr(true), + Subnet: &armservicebus.Subnet{ + ID: to.Ptr("/subscriptions/854d368f-1828-428f-8f3c-f2affa9b2f7d/resourcegroups/alitest/providers/Microsoft.Network/virtualNetworks/myvn/subnets/subnet2"), + }, + }, + { + IgnoreMissingVnetServiceEndpoint: to.Ptr(false), + Subnet: &armservicebus.Subnet{ + ID: to.Ptr("/subscriptions/854d368f-1828-428f-8f3c-f2affa9b2f7d/resourcegroups/alitest/providers/Microsoft.Network/virtualNetworks/myvn/subnets/subnet3"), + }, + }, + { + IgnoreMissingVnetServiceEndpoint: to.Ptr(false), + Subnet: &armservicebus.Subnet{ + ID: to.Ptr("/subscriptions/854d368f-1828-428f-8f3c-f2affa9b2f7d/resourcegroups/alitest/providers/Microsoft.Network/virtualNetworks/myvn/subnets/subnet6"), + }, + }}, + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.NetworkRuleSet = armservicebus.NetworkRuleSet{ + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces/NetworkRuleSet"), + // ID: to.Ptr("/subscriptions/854d368f-1828-428f-8f3c-f2affa9b2f7d/resourceGroups/Default-ServiceBus-AustraliaEast/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-9659/networkruleset/default"), + // Properties: &armservicebus.NetworkRuleSetProperties{ + // DefaultAction: to.Ptr(armservicebus.DefaultActionDeny), + // IPRules: []*armservicebus.NWRuleSetIPRules{ + // { + // Action: to.Ptr(armservicebus.NetworkRuleIPActionAllow), + // IPMask: to.Ptr("1.1.1.1"), + // }, + // { + // Action: to.Ptr(armservicebus.NetworkRuleIPActionAllow), + // IPMask: to.Ptr("1.1.1.2"), + // }, + // { + // Action: to.Ptr(armservicebus.NetworkRuleIPActionAllow), + // IPMask: to.Ptr("1.1.1.3"), + // }, + // { + // Action: to.Ptr(armservicebus.NetworkRuleIPActionAllow), + // IPMask: to.Ptr("1.1.1.4"), + // }, + // { + // Action: to.Ptr(armservicebus.NetworkRuleIPActionAllow), + // IPMask: to.Ptr("1.1.1.5"), + // }}, + // PublicNetworkAccess: to.Ptr(armservicebus.PublicNetworkAccessFlagEnabled), + // VirtualNetworkRules: []*armservicebus.NWRuleSetVirtualNetworkRules{ + // { + // IgnoreMissingVnetServiceEndpoint: to.Ptr(true), + // Subnet: &armservicebus.Subnet{ + // ID: to.Ptr("/subscriptions/854d368f-1828-428f-8f3c-f2affa9b2f7d/resourcegroups/alitest/providers/Microsoft.Network/virtualNetworks/myvn/subnets/subnet2"), + // }, + // }, + // { + // IgnoreMissingVnetServiceEndpoint: to.Ptr(false), + // Subnet: &armservicebus.Subnet{ + // ID: to.Ptr("/subscriptions/854d368f-1828-428f-8f3c-f2affa9b2f7d/resourcegroups/alitest/providers/Microsoft.Network/virtualNetworks/myvn/subnets/subnet3"), + // }, + // }, + // { + // IgnoreMissingVnetServiceEndpoint: to.Ptr(false), + // Subnet: &armservicebus.Subnet{ + // ID: to.Ptr("/subscriptions/854d368f-1828-428f-8f3c-f2affa9b2f7d/resourcegroups/alitest/providers/Microsoft.Network/virtualNetworks/myvn/subnets/subnet6"), + // }, + // }}, + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5e24fa8e30bff0cb321494a0b550b1c1282a8a3c/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples/NameSpaces/VirtualNetworkRule/SBNetworkRuleSetGet.json +func ExampleNamespacesClient_GetNetworkRuleSet() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armservicebus.NewNamespacesClient("Subscription", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.GetNetworkRuleSet(ctx, "ResourceGroup", "sdk-Namespace-6019", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.NetworkRuleSet = armservicebus.NetworkRuleSet{ + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces/NetworkRuleSet"), + // ID: to.Ptr("/subscriptions/subscriptionid/resourceGroups/Default-ServiceBus-AustraliaEast/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-9659/networkruleset/default"), + // Properties: &armservicebus.NetworkRuleSetProperties{ + // DefaultAction: to.Ptr(armservicebus.DefaultActionAllow), + // IPRules: []*armservicebus.NWRuleSetIPRules{ + // { + // Action: to.Ptr(armservicebus.NetworkRuleIPActionAllow), + // IPMask: to.Ptr("1.1.1.1"), + // }, + // { + // Action: to.Ptr(armservicebus.NetworkRuleIPActionAllow), + // IPMask: to.Ptr("1.1.1.2"), + // }, + // { + // Action: to.Ptr(armservicebus.NetworkRuleIPActionAllow), + // IPMask: to.Ptr("1.1.1.3"), + // }, + // { + // Action: to.Ptr(armservicebus.NetworkRuleIPActionAllow), + // IPMask: to.Ptr("1.1.1.4"), + // }, + // { + // Action: to.Ptr(armservicebus.NetworkRuleIPActionAllow), + // IPMask: to.Ptr("1.1.1.5"), + // }}, + // PublicNetworkAccess: to.Ptr(armservicebus.PublicNetworkAccessFlagEnabled), + // VirtualNetworkRules: []*armservicebus.NWRuleSetVirtualNetworkRules{ + // { + // IgnoreMissingVnetServiceEndpoint: to.Ptr(true), + // Subnet: &armservicebus.Subnet{ + // ID: to.Ptr("/subscriptions/subscriptionid/resourcegroups/alitest/providers/Microsoft.Network/virtualNetworks/myvn/subnets/subnet2"), + // }, + // }, + // { + // IgnoreMissingVnetServiceEndpoint: to.Ptr(false), + // Subnet: &armservicebus.Subnet{ + // ID: to.Ptr("/subscriptions/subscriptionid/resourcegroups/alitest/providers/Microsoft.Network/virtualNetworks/myvn/subnets/subnet3"), + // }, + // }, + // { + // IgnoreMissingVnetServiceEndpoint: to.Ptr(false), + // Subnet: &armservicebus.Subnet{ + // ID: to.Ptr("/subscriptions/subscriptionid/resourcegroups/alitest/providers/Microsoft.Network/virtualNetworks/myvn/subnets/subnet6"), + // }, + // }}, + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5e24fa8e30bff0cb321494a0b550b1c1282a8a3c/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples/NameSpaces/VirtualNetworkRule/SBNetworkRuleSetList.json +func ExampleNamespacesClient_NewListNetworkRuleSetsPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armservicebus.NewNamespacesClient("Subscription", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListNetworkRuleSetsPager("ResourceGroup", "sdk-Namespace-6019", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.NetworkRuleSetListResult = armservicebus.NetworkRuleSetListResult{ + // Value: []*armservicebus.NetworkRuleSet{ + // { + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces/NetworkRuleSet"), + // ID: to.Ptr("/subscriptions/subscriptionid/resourceGroups/resourcegroupid/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-9659/networkrulesets/default"), + // Properties: &armservicebus.NetworkRuleSetProperties{ + // DefaultAction: to.Ptr(armservicebus.DefaultActionDeny), + // IPRules: []*armservicebus.NWRuleSetIPRules{ + // { + // Action: to.Ptr(armservicebus.NetworkRuleIPActionAllow), + // IPMask: to.Ptr("1.1.1.1"), + // }, + // { + // Action: to.Ptr(armservicebus.NetworkRuleIPActionAllow), + // IPMask: to.Ptr("1.1.1.2"), + // }, + // { + // Action: to.Ptr(armservicebus.NetworkRuleIPActionAllow), + // IPMask: to.Ptr("1.1.1.3"), + // }, + // { + // Action: to.Ptr(armservicebus.NetworkRuleIPActionAllow), + // IPMask: to.Ptr("1.1.1.4"), + // }, + // { + // Action: to.Ptr(armservicebus.NetworkRuleIPActionAllow), + // IPMask: to.Ptr("1.1.1.5"), + // }}, + // VirtualNetworkRules: []*armservicebus.NWRuleSetVirtualNetworkRules{ + // { + // IgnoreMissingVnetServiceEndpoint: to.Ptr(true), + // Subnet: &armservicebus.Subnet{ + // ID: to.Ptr("/subscriptions/subscriptionid/resourcegroups/resourcegroupid/providers/Microsoft.Network/virtualNetworks/myvn/subnets/subnet2"), + // }, + // }, + // { + // IgnoreMissingVnetServiceEndpoint: to.Ptr(false), + // Subnet: &armservicebus.Subnet{ + // ID: to.Ptr("/subscriptions/subscriptionid/resourcegroups/resourcegroupid/providers/Microsoft.Network/virtualNetworks/myvn/subnets/subnet3"), + // }, + // }, + // { + // IgnoreMissingVnetServiceEndpoint: to.Ptr(false), + // Subnet: &armservicebus.Subnet{ + // ID: to.Ptr("/subscriptions/subscriptionid/resourcegroups/resourcegroupid/providers/Microsoft.Network/virtualNetworks/myvn/subnets/subnet6"), + // }, + // }}, + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5e24fa8e30bff0cb321494a0b550b1c1282a8a3c/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples/NameSpaces/SBNameSpaceAuthorizationRuleListAll.json +func ExampleNamespacesClient_NewListAuthorizationRulesPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armservicebus.NewNamespacesClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListAuthorizationRulesPager("ArunMonocle", "sdk-Namespace-6914", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.SBAuthorizationRuleListResult = armservicebus.SBAuthorizationRuleListResult{ + // Value: []*armservicebus.SBAuthorizationRule{ + // { + // Name: to.Ptr("RootManageSharedAccessKey"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces/AuthorizationRules"), + // ID: to.Ptr("https://sbgm.windows-int.net/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/ArunMonocle/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-6914/AuthorizationRules?api-version=2017-04-01/RootManageSharedAccessKey"), + // Properties: &armservicebus.SBAuthorizationRuleProperties{ + // Rights: []*armservicebus.AccessRights{ + // to.Ptr(armservicebus.AccessRightsListen), + // to.Ptr(armservicebus.AccessRightsManage), + // to.Ptr(armservicebus.AccessRightsSend)}, + // }, + // }, + // { + // Name: to.Ptr("sdk-AuthRules-1788"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces/AuthorizationRules"), + // ID: to.Ptr("https://sbgm.windows-int.net/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/ArunMonocle/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-6914/AuthorizationRules?api-version=2017-04-01/sdk-AuthRules-1788"), + // Properties: &armservicebus.SBAuthorizationRuleProperties{ + // Rights: []*armservicebus.AccessRights{ + // to.Ptr(armservicebus.AccessRightsListen), + // to.Ptr(armservicebus.AccessRightsSend)}, + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5e24fa8e30bff0cb321494a0b550b1c1282a8a3c/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples/NameSpaces/SBNameSpaceAuthorizationRuleCreate.json +func ExampleNamespacesClient_CreateOrUpdateAuthorizationRule() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armservicebus.NewNamespacesClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.CreateOrUpdateAuthorizationRule(ctx, "ArunMonocle", "sdk-Namespace-6914", "sdk-AuthRules-1788", armservicebus.SBAuthorizationRule{ + Properties: &armservicebus.SBAuthorizationRuleProperties{ + Rights: []*armservicebus.AccessRights{ + to.Ptr(armservicebus.AccessRightsListen), + to.Ptr(armservicebus.AccessRightsSend)}, + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.SBAuthorizationRule = armservicebus.SBAuthorizationRule{ + // Name: to.Ptr("sdk-AuthRules-1788"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces/AuthorizationRules"), + // ID: to.Ptr("/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/ArunMonocle/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-6914/AuthorizationRules/sdk-AuthRules-1788"), + // Properties: &armservicebus.SBAuthorizationRuleProperties{ + // Rights: []*armservicebus.AccessRights{ + // to.Ptr(armservicebus.AccessRightsListen), + // to.Ptr(armservicebus.AccessRightsSend)}, + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5e24fa8e30bff0cb321494a0b550b1c1282a8a3c/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples/NameSpaces/SBNameSpaceAuthorizationRuleDelete.json +func ExampleNamespacesClient_DeleteAuthorizationRule() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armservicebus.NewNamespacesClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + _, err = client.DeleteAuthorizationRule(ctx, "ArunMonocle", "sdk-namespace-6914", "sdk-AuthRules-1788", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5e24fa8e30bff0cb321494a0b550b1c1282a8a3c/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples/NameSpaces/SBNameSpaceAuthorizationRuleGet.json +func ExampleNamespacesClient_GetAuthorizationRule() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armservicebus.NewNamespacesClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.GetAuthorizationRule(ctx, "ArunMonocle", "sdk-Namespace-6914", "sdk-AuthRules-1788", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.SBAuthorizationRule = armservicebus.SBAuthorizationRule{ + // Name: to.Ptr("sdk-AuthRules-1788"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces/AuthorizationRules"), + // ID: to.Ptr("/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/ArunMonocle/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-6914/AuthorizationRules/sdk-AuthRules-1788/"), + // Properties: &armservicebus.SBAuthorizationRuleProperties{ + // Rights: []*armservicebus.AccessRights{ + // to.Ptr(armservicebus.AccessRightsListen), + // to.Ptr(armservicebus.AccessRightsSend)}, + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5e24fa8e30bff0cb321494a0b550b1c1282a8a3c/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples/NameSpaces/SBNameSpaceAuthorizationRuleListKey.json +func ExampleNamespacesClient_ListKeys() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armservicebus.NewNamespacesClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.ListKeys(ctx, "ArunMonocle", "sdk-namespace-6914", "sdk-AuthRules-1788", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.AccessKeys = armservicebus.AccessKeys{ + // KeyName: to.Ptr("sdk-AuthRules-1788"), + // PrimaryConnectionString: to.Ptr("Endpoint=sb://sdk-namespace-6914.servicebus.windows-int.net/;SharedAccessKeyName=sdk-AuthRules-1788;SharedAccessKey=############################################"), + // PrimaryKey: to.Ptr("############################################"), + // SecondaryConnectionString: to.Ptr("Endpoint=sb://sdk-namespace-6914.servicebus.windows-int.net/;SharedAccessKeyName=sdk-AuthRules-1788;SharedAccessKey=############################################"), + // SecondaryKey: to.Ptr("############################################"), + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5e24fa8e30bff0cb321494a0b550b1c1282a8a3c/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples/NameSpaces/SBNameSpaceAuthorizationRuleRegenerateKey.json +func ExampleNamespacesClient_RegenerateKeys() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armservicebus.NewNamespacesClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.RegenerateKeys(ctx, "ArunMonocle", "sdk-namespace-6914", "sdk-AuthRules-1788", armservicebus.RegenerateAccessKeyParameters{ + KeyType: to.Ptr(armservicebus.KeyTypePrimaryKey), + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.AccessKeys = armservicebus.AccessKeys{ + // KeyName: to.Ptr("sdk-AuthRules-1788"), + // PrimaryConnectionString: to.Ptr("Endpoint=sb://sdk-namespace-6914.servicebus.windows-int.net/;SharedAccessKeyName=sdk-AuthRules-1788;SharedAccessKey=#############################################"), + // PrimaryKey: to.Ptr("#############################################"), + // SecondaryConnectionString: to.Ptr("Endpoint=sb://sdk-namespace-6914.servicebus.windows-int.net/;SharedAccessKeyName=sdk-AuthRules-1788;SharedAccessKey=#############################################"), + // SecondaryKey: to.Ptr("#############################################"), + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5e24fa8e30bff0cb321494a0b550b1c1282a8a3c/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples/NameSpaces/SBNameSpaceCheckNameAvailability.json +func ExampleNamespacesClient_CheckNameAvailability() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armservicebus.NewNamespacesClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.CheckNameAvailability(ctx, armservicebus.CheckNameAvailability{ + Name: to.Ptr("sdk-Namespace-2924"), + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.CheckNameAvailabilityResult = armservicebus.CheckNameAvailabilityResult{ + // Message: to.Ptr(""), + // NameAvailable: to.Ptr(true), + // Reason: to.Ptr(armservicebus.UnavailableReasonNone), + // } +} diff --git a/sdk/resourcemanager/servicebus/armservicebus/namespaces_live_test.go b/sdk/resourcemanager/servicebus/armservicebus/namespaces_live_test.go deleted file mode 100644 index e4d59de66a63..000000000000 --- a/sdk/resourcemanager/servicebus/armservicebus/namespaces_live_test.go +++ /dev/null @@ -1,198 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armservicebus_test - -import ( - "context" - "fmt" - "testing" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/testutil" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicebus/armservicebus/v2" - "github.com/stretchr/testify/suite" -) - -type NamespacesTestSuite struct { - suite.Suite - - ctx context.Context - cred azcore.TokenCredential - options *arm.ClientOptions - authorizationRuleName string - namespaceName string - location string - resourceGroupName string - subscriptionId string -} - -func (testsuite *NamespacesTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/servicebus/armservicebus/testdata") - testsuite.ctx = context.Background() - testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) - testsuite.authorizationRuleName = testutil.GenerateAlphaNumericID(testsuite.T(), "sbauthrule", 6) - testsuite.namespaceName = testutil.GenerateAlphaNumericID(testsuite.T(), "sbnamespace", 6) - testsuite.location = testutil.GetEnv("LOCATION", "westus") - testsuite.resourceGroupName = testutil.GetEnv("RESOURCE_GROUP_NAME", "scenarioTestTempGroup") - testsuite.subscriptionId = testutil.GetEnv("AZURE_SUBSCRIPTION_ID", "00000000-0000-0000-0000-000000000000") - - resourceGroup, _, err := testutil.CreateResourceGroup(testsuite.ctx, testsuite.subscriptionId, testsuite.cred, testsuite.options, testsuite.location) - testsuite.Require().NoError(err) - testsuite.resourceGroupName = *resourceGroup.Name -} - -func (testsuite *NamespacesTestSuite) TearDownSuite() { - _, err := testutil.DeleteResourceGroup(testsuite.ctx, testsuite.subscriptionId, testsuite.cred, testsuite.options, testsuite.resourceGroupName) - testsuite.Require().NoError(err) - testutil.StopRecording(testsuite.T()) -} - -func TestNamespacesTestSuite(t *testing.T) { - suite.Run(t, new(NamespacesTestSuite)) -} - -// Microsoft.ServiceBus/namespaces -func (testsuite *NamespacesTestSuite) TestNamespace() { - var err error - // From step Namespace_CheckNameAvailability - fmt.Println("Call operation: Namespaces_CheckNameAvailability") - namespacesClient, err := armservicebus.NewNamespacesClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) - testsuite.Require().NoError(err) - _, err = namespacesClient.CheckNameAvailability(testsuite.ctx, armservicebus.CheckNameAvailability{ - Name: to.Ptr(testsuite.namespaceName), - }, nil) - testsuite.Require().NoError(err) - - // From step Namespace_Create - fmt.Println("Call operation: Namespaces_CreateOrUpdate") - namespacesClientCreateOrUpdateResponsePoller, err := namespacesClient.BeginCreateOrUpdate(testsuite.ctx, testsuite.resourceGroupName, testsuite.namespaceName, armservicebus.SBNamespace{ - Location: to.Ptr(testsuite.location), - Tags: map[string]*string{ - "tag1": to.Ptr("value1"), - "tag2": to.Ptr("value2"), - }, - SKU: &armservicebus.SBSKU{ - Name: to.Ptr(armservicebus.SKUNamePremium), - Tier: to.Ptr(armservicebus.SKUTierPremium), - }, - }, nil) - testsuite.Require().NoError(err) - _, err = testutil.PollForTest(testsuite.ctx, namespacesClientCreateOrUpdateResponsePoller) - testsuite.Require().NoError(err) - - // From step Namespace_Update - fmt.Println("Call operation: Namespaces_Update") - _, err = namespacesClient.Update(testsuite.ctx, testsuite.resourceGroupName, testsuite.namespaceName, armservicebus.SBNamespaceUpdateParameters{ - Location: to.Ptr(testsuite.location), - Tags: map[string]*string{ - "tag3": to.Ptr("value3"), - "tag4": to.Ptr("value4"), - }, - }, nil) - testsuite.Require().NoError(err) - - // From step Namespace_Get - fmt.Println("Call operation: Namespaces_Get") - _, err = namespacesClient.Get(testsuite.ctx, testsuite.resourceGroupName, testsuite.namespaceName, nil) - testsuite.Require().NoError(err) - - // From step Namespace_List - fmt.Println("Call operation: Namespaces_List") - namespacesClientNewListPager := namespacesClient.NewListPager(nil) - for namespacesClientNewListPager.More() { - _, err := namespacesClientNewListPager.NextPage(testsuite.ctx) - testsuite.Require().NoError(err) - break - } - - // From step Namespace_ListByResourceGroup - fmt.Println("Call operation: Namespaces_ListByResourceGroup") - namespacesClientNewListByResourceGroupPager := namespacesClient.NewListByResourceGroupPager(testsuite.resourceGroupName, nil) - for namespacesClientNewListByResourceGroupPager.More() { - _, err := namespacesClientNewListByResourceGroupPager.NextPage(testsuite.ctx) - testsuite.Require().NoError(err) - break - } - - // From step Operation_List - fmt.Println("Call operation: Operations_List") - operationsClient, err := armservicebus.NewOperationsClient(testsuite.cred, testsuite.options) - testsuite.Require().NoError(err) - operationsClientNewListPager := operationsClient.NewListPager(nil) - for operationsClientNewListPager.More() { - _, err := operationsClientNewListPager.NextPage(testsuite.ctx) - testsuite.Require().NoError(err) - break - } - - // From step Namespace_CreateAuthorizationRule - fmt.Println("Call operation: Namespaces_CreateOrUpdateAuthorizationRule") - _, err = namespacesClient.CreateOrUpdateAuthorizationRule(testsuite.ctx, testsuite.resourceGroupName, testsuite.namespaceName, testsuite.authorizationRuleName, armservicebus.SBAuthorizationRule{ - Properties: &armservicebus.SBAuthorizationRuleProperties{ - Rights: []*armservicebus.AccessRights{ - to.Ptr(armservicebus.AccessRightsListen), - to.Ptr(armservicebus.AccessRightsSend)}, - }, - }, nil) - testsuite.Require().NoError(err) - - // From step Namespace_GetAuthorizationRule - fmt.Println("Call operation: Namespaces_GetAuthorizationRule") - _, err = namespacesClient.GetAuthorizationRule(testsuite.ctx, testsuite.resourceGroupName, testsuite.namespaceName, testsuite.authorizationRuleName, nil) - testsuite.Require().NoError(err) - - // From step Namespace_ListAuthorizationRules - fmt.Println("Call operation: Namespaces_ListAuthorizationRules") - namespacesClientNewListAuthorizationRulesPager := namespacesClient.NewListAuthorizationRulesPager(testsuite.resourceGroupName, testsuite.namespaceName, nil) - for namespacesClientNewListAuthorizationRulesPager.More() { - _, err := namespacesClientNewListAuthorizationRulesPager.NextPage(testsuite.ctx) - testsuite.Require().NoError(err) - break - } - - // From step Namespace_RegenerateKeys - fmt.Println("Call operation: Namespaces_RegenerateKeys") - _, err = namespacesClient.RegenerateKeys(testsuite.ctx, testsuite.resourceGroupName, testsuite.namespaceName, testsuite.authorizationRuleName, armservicebus.RegenerateAccessKeyParameters{ - KeyType: to.Ptr(armservicebus.KeyTypePrimaryKey), - }, nil) - testsuite.Require().NoError(err) - - // From step Namespace_ListKeys - fmt.Println("Call operation: Namespaces_ListKeys") - _, err = namespacesClient.ListKeys(testsuite.ctx, testsuite.resourceGroupName, testsuite.namespaceName, testsuite.authorizationRuleName, nil) - testsuite.Require().NoError(err) - - // From step Namespace_GetNetworkRuleSet - fmt.Println("Call operation: Namespaces_GetNetworkRuleSet") - _, err = namespacesClient.GetNetworkRuleSet(testsuite.ctx, testsuite.resourceGroupName, testsuite.namespaceName, nil) - testsuite.Require().NoError(err) - - // From step Namespace_ListNetworkRuleSets - fmt.Println("Call operation: Namespaces_ListNetworkRuleSets") - namespacesClientNewListNetworkRuleSetsPager := namespacesClient.NewListNetworkRuleSetsPager(testsuite.resourceGroupName, testsuite.namespaceName, nil) - for namespacesClientNewListNetworkRuleSetsPager.More() { - _, err := namespacesClientNewListNetworkRuleSetsPager.NextPage(testsuite.ctx) - testsuite.Require().NoError(err) - break - } - - // From step Namespace_DeleteAuthorizationRule - fmt.Println("Call operation: Namespaces_DeleteAuthorizationRule") - _, err = namespacesClient.DeleteAuthorizationRule(testsuite.ctx, testsuite.resourceGroupName, testsuite.namespaceName, testsuite.authorizationRuleName, nil) - testsuite.Require().NoError(err) - - // From step Namespace_Delete - fmt.Println("Call operation: Namespaces_Delete") - namespacesClientDeleteResponsePoller, err := namespacesClient.BeginDelete(testsuite.ctx, testsuite.resourceGroupName, testsuite.namespaceName, nil) - testsuite.Require().NoError(err) - _, err = testutil.PollForTest(testsuite.ctx, namespacesClientDeleteResponsePoller) - testsuite.Require().NoError(err) -} diff --git a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_operations_client.go b/sdk/resourcemanager/servicebus/armservicebus/operations_client.go similarity index 89% rename from sdk/resourcemanager/servicebus/armservicebus/zz_generated_operations_client.go rename to sdk/resourcemanager/servicebus/armservicebus/operations_client.go index 4e923bb8e0cf..e7c8cb85cb16 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_operations_client.go +++ b/sdk/resourcemanager/servicebus/armservicebus/operations_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armservicebus @@ -27,8 +28,8 @@ type OperationsClient struct { } // NewOperationsClient creates a new instance of OperationsClient with the specified values. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*OperationsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -49,9 +50,9 @@ func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientO } // NewListPager - Lists all of the available ServiceBus REST API operations. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-01-01-preview -// options - OperationsClientListOptions contains the optional parameters for the OperationsClient.List method. +// +// Generated from API version 2022-10-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]{ More: func(page OperationsClientListResponse) bool { @@ -88,7 +89,7 @@ func (client *OperationsClient) listCreateRequest(ctx context.Context, options * return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-01-01-preview") + reqQP.Set("api-version", "2022-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/servicebus/armservicebus/operations_client_example_test.go b/sdk/resourcemanager/servicebus/armservicebus/operations_client_example_test.go new file mode 100644 index 000000000000..dcf50e820468 --- /dev/null +++ b/sdk/resourcemanager/servicebus/armservicebus/operations_client_example_test.go @@ -0,0 +1,334 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armservicebus_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicebus/armservicebus/v2" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5e24fa8e30bff0cb321494a0b550b1c1282a8a3c/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples/SBOperations_List.json +func ExampleOperationsClient_NewListPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armservicebus.NewOperationsClient(cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListPager(nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.OperationListResult = armservicebus.OperationListResult{ + // Value: []*armservicebus.Operation{ + // { + // Name: to.Ptr("Microsoft.ServiceBus/checkNameAvailability/action"), + // Display: &armservicebus.OperationDisplay{ + // Operation: to.Ptr("Get namespace availability."), + // Provider: to.Ptr("Microsoft Azure ServiceBus"), + // Resource: to.Ptr("Non Resource Operation"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.ServiceBus/register/action"), + // Display: &armservicebus.OperationDisplay{ + // Operation: to.Ptr("Registers the ServiceBus Resource Provider"), + // Provider: to.Ptr("Microsoft Azure ServiceBus"), + // Resource: to.Ptr("ServiceBus Resource Provider"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.ServiceBus/namespaces/write"), + // Display: &armservicebus.OperationDisplay{ + // Operation: to.Ptr("Create Or Update Namespace "), + // Provider: to.Ptr("Microsoft Azure ServiceBus"), + // Resource: to.Ptr("Namespace"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.ServiceBus/namespaces/read"), + // Display: &armservicebus.OperationDisplay{ + // Operation: to.Ptr("Get Namespace Resource"), + // Provider: to.Ptr("Microsoft Azure ServiceBus"), + // Resource: to.Ptr("Namespace"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.ServiceBus/namespaces/Delete"), + // Display: &armservicebus.OperationDisplay{ + // Operation: to.Ptr("Delete Namespace"), + // Provider: to.Ptr("Microsoft Azure ServiceBus"), + // Resource: to.Ptr("Namespace"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.ServiceBus/namespaces/authorizationRules/write"), + // Display: &armservicebus.OperationDisplay{ + // Operation: to.Ptr("Create or Update Namespace Authorization Rules"), + // Provider: to.Ptr("Microsoft Azure ServiceBus"), + // Resource: to.Ptr("AuthorizationRules"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.ServiceBus/namespaces/authorizationRules/read"), + // Display: &armservicebus.OperationDisplay{ + // Operation: to.Ptr("Get Namespace Authorization Rules"), + // Provider: to.Ptr("Microsoft Azure ServiceBus"), + // Resource: to.Ptr("AuthorizationRules"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.ServiceBus/namespaces/authorizationRules/delete"), + // Display: &armservicebus.OperationDisplay{ + // Operation: to.Ptr("Delete Namespace Authorization Rule"), + // Provider: to.Ptr("Microsoft Azure ServiceBus"), + // Resource: to.Ptr("AuthorizationRules"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.ServiceBus/namespaces/authorizationRules/listkeys/action"), + // Display: &armservicebus.OperationDisplay{ + // Operation: to.Ptr("Get Namespace Listkeys"), + // Provider: to.Ptr("Microsoft Azure ServiceBus"), + // Resource: to.Ptr("AuthorizationRules"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.ServiceBus/namespaces/authorizationRules/regenerateKeys/action"), + // Display: &armservicebus.OperationDisplay{ + // Operation: to.Ptr("Resource Regeneratekeys"), + // Provider: to.Ptr("Microsoft Azure ServiceBus"), + // Resource: to.Ptr("AuthorizationRules"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.ServiceBus/namespaces/queues/write"), + // Display: &armservicebus.OperationDisplay{ + // Operation: to.Ptr("Create or Update Queue"), + // Provider: to.Ptr("Microsoft Azure ServiceBus"), + // Resource: to.Ptr("Queue"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.ServiceBus/namespaces/queues/read"), + // Display: &armservicebus.OperationDisplay{ + // Operation: to.Ptr("Get Queue"), + // Provider: to.Ptr("Microsoft Azure ServiceBus"), + // Resource: to.Ptr("Queue"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.ServiceBus/namespaces/queues/Delete"), + // Display: &armservicebus.OperationDisplay{ + // Operation: to.Ptr("Delete Queue"), + // Provider: to.Ptr("Microsoft Azure ServiceBus"), + // Resource: to.Ptr("Queue"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.ServiceBus/namespaces/queues/authorizationRules/write"), + // Display: &armservicebus.OperationDisplay{ + // Operation: to.Ptr("Create or Update Queue Authorization Rule"), + // Provider: to.Ptr("Microsoft Azure ServiceBus"), + // Resource: to.Ptr("Queue AuthorizationRules"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.ServiceBus/namespaces/queues/authorizationRules/read"), + // Display: &armservicebus.OperationDisplay{ + // Operation: to.Ptr(" Get Queue Authorization Rules"), + // Provider: to.Ptr("Microsoft Azure ServiceBus"), + // Resource: to.Ptr("Queue AuthorizationRules"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.ServiceBus/namespaces/queues/authorizationRules/delete"), + // Display: &armservicebus.OperationDisplay{ + // Operation: to.Ptr("Delete Queue Authorization Rules"), + // Provider: to.Ptr("Microsoft Azure ServiceBus"), + // Resource: to.Ptr("Queue AuthorizationRules"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.ServiceBus/namespaces/queues/authorizationRules/listkeys/action"), + // Display: &armservicebus.OperationDisplay{ + // Operation: to.Ptr("List Queue keys"), + // Provider: to.Ptr("Microsoft Azure ServiceBus"), + // Resource: to.Ptr("Queue AuthorizationRules"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.ServiceBus/namespaces/queues/authorizationRules/regenerateKeys/action"), + // Display: &armservicebus.OperationDisplay{ + // Operation: to.Ptr("Resource Regeneratekeys"), + // Provider: to.Ptr("Microsoft Azure ServiceBus"), + // Resource: to.Ptr("Queue AuthorizationRules"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.ServiceBus/namespaces/topics/write"), + // Display: &armservicebus.OperationDisplay{ + // Operation: to.Ptr("Create or Update Topic"), + // Provider: to.Ptr("Microsoft Azure ServiceBus"), + // Resource: to.Ptr("Topic"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.ServiceBus/namespaces/topics/read"), + // Display: &armservicebus.OperationDisplay{ + // Operation: to.Ptr("Get Topic"), + // Provider: to.Ptr("Microsoft Azure ServiceBus"), + // Resource: to.Ptr("Topic"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.ServiceBus/namespaces/topics/Delete"), + // Display: &armservicebus.OperationDisplay{ + // Operation: to.Ptr("Delete Topic"), + // Provider: to.Ptr("Microsoft Azure ServiceBus"), + // Resource: to.Ptr("Topic"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.ServiceBus/namespaces/topics/authorizationRules/write"), + // Display: &armservicebus.OperationDisplay{ + // Operation: to.Ptr("Create or Update Topic Authorization Rule"), + // Provider: to.Ptr("Microsoft Azure ServiceBus"), + // Resource: to.Ptr("Topic AuthorizationRules"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.ServiceBus/namespaces/topics/authorizationRules/read"), + // Display: &armservicebus.OperationDisplay{ + // Operation: to.Ptr(" Get Topic Authorization Rules"), + // Provider: to.Ptr("Microsoft Azure ServiceBus"), + // Resource: to.Ptr("Topic AuthorizationRules"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.ServiceBus/namespaces/topics/authorizationRules/delete"), + // Display: &armservicebus.OperationDisplay{ + // Operation: to.Ptr("Delete Topic Authorization Rules"), + // Provider: to.Ptr("Microsoft Azure ServiceBus"), + // Resource: to.Ptr("Topic AuthorizationRules"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.ServiceBus/namespaces/topics/authorizationRules/listkeys/action"), + // Display: &armservicebus.OperationDisplay{ + // Operation: to.Ptr("List Topic keys"), + // Provider: to.Ptr("Microsoft Azure ServiceBus"), + // Resource: to.Ptr("Topic AuthorizationRules"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.ServiceBus/namespaces/topics/authorizationRules/regenerateKeys/action"), + // Display: &armservicebus.OperationDisplay{ + // Operation: to.Ptr("Resource Regeneratekeys"), + // Provider: to.Ptr("Microsoft Azure ServiceBus"), + // Resource: to.Ptr("Topic AuthorizationRules"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.ServiceBus/namespaces/topics/subscriptions/write"), + // Display: &armservicebus.OperationDisplay{ + // Operation: to.Ptr("Create or Update TopicSubscription"), + // Provider: to.Ptr("Microsoft Azure ServiceBus"), + // Resource: to.Ptr("TopicSubscription"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.ServiceBus/namespaces/topics/subscriptions/read"), + // Display: &armservicebus.OperationDisplay{ + // Operation: to.Ptr("Get TopicSubscription"), + // Provider: to.Ptr("Microsoft Azure ServiceBus"), + // Resource: to.Ptr("TopicSubscription"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.ServiceBus/namespaces/topics/subscriptions/Delete"), + // Display: &armservicebus.OperationDisplay{ + // Operation: to.Ptr("Delete TopicSubscription"), + // Provider: to.Ptr("Microsoft Azure ServiceBus"), + // Resource: to.Ptr("TopicSubscription"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.ServiceBus/namespaces/topics/subscriptions/rules/write"), + // Display: &armservicebus.OperationDisplay{ + // Operation: to.Ptr("Create or Update Rule"), + // Provider: to.Ptr("Microsoft Azure ServiceBus"), + // Resource: to.Ptr("Rule"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.ServiceBus/namespaces/topics/subscriptions/rules/read"), + // Display: &armservicebus.OperationDisplay{ + // Operation: to.Ptr("Get Rule"), + // Provider: to.Ptr("Microsoft Azure ServiceBus"), + // Resource: to.Ptr("Rule"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.ServiceBus/namespaces/topics/subscriptions/rules/Delete"), + // Display: &armservicebus.OperationDisplay{ + // Operation: to.Ptr("Delete Rule"), + // Provider: to.Ptr("Microsoft Azure ServiceBus"), + // Resource: to.Ptr("Rule"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.ServiceBus/namespaces/metricDefinitions/read"), + // Display: &armservicebus.OperationDisplay{ + // Operation: to.Ptr("Get Namespace metrics"), + // Provider: to.Ptr("Microsoft Azure ServiceBus"), + // Resource: to.Ptr("Namespace metrics"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.ServiceBus/namespaces/diagnosticSettings/read"), + // Display: &armservicebus.OperationDisplay{ + // Operation: to.Ptr("Get Namespace diagnostic settings"), + // Provider: to.Ptr("Microsoft Azure ServiceBus"), + // Resource: to.Ptr("Namespace diagnostic settings"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.ServiceBus/namespaces/diagnosticSettings/write"), + // Display: &armservicebus.OperationDisplay{ + // Operation: to.Ptr("Create or Update Namespace diagnostic settings"), + // Provider: to.Ptr("Microsoft Azure ServiceBus"), + // Resource: to.Ptr("Namespace diagnostic settings"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.ServiceBus/namespaces/logDefinitions/read"), + // Display: &armservicebus.OperationDisplay{ + // Operation: to.Ptr("Get Namespace logs"), + // Provider: to.Ptr("Microsoft Azure ServiceBus"), + // Resource: to.Ptr("Namespace logs"), + // }, + // }}, + // } + } +} diff --git a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_privateendpointconnections_client.go b/sdk/resourcemanager/servicebus/armservicebus/privateendpointconnections_client.go similarity index 86% rename from sdk/resourcemanager/servicebus/armservicebus/zz_generated_privateendpointconnections_client.go rename to sdk/resourcemanager/servicebus/armservicebus/privateendpointconnections_client.go index 586b28922785..c7a2619f4a3e 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_privateendpointconnections_client.go +++ b/sdk/resourcemanager/servicebus/armservicebus/privateendpointconnections_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armservicebus @@ -31,10 +32,10 @@ type PrivateEndpointConnectionsClient struct { } // NewPrivateEndpointConnectionsClient creates a new instance of PrivateEndpointConnectionsClient with the specified values. -// subscriptionID - Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms -// part of the URI for every service call. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms +// part of the URI for every service call. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewPrivateEndpointConnectionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PrivateEndpointConnectionsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,13 +58,14 @@ func NewPrivateEndpointConnectionsClient(subscriptionID string, credential azcor // CreateOrUpdate - Creates or updates PrivateEndpointConnections of service namespace. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-01-01-preview -// resourceGroupName - Name of the Resource group within the Azure subscription. -// namespaceName - The namespace name -// privateEndpointConnectionName - The PrivateEndpointConnection name -// parameters - Parameters supplied to update Status of PrivateEndPoint Connection to namespace resource. -// options - PrivateEndpointConnectionsClientCreateOrUpdateOptions contains the optional parameters for the PrivateEndpointConnectionsClient.CreateOrUpdate -// method. +// +// Generated from API version 2022-10-01-preview +// - resourceGroupName - Name of the Resource group within the Azure subscription. +// - namespaceName - The namespace name +// - privateEndpointConnectionName - The PrivateEndpointConnection name +// - parameters - Parameters supplied to update Status of PrivateEndPoint Connection to namespace resource. +// - options - PrivateEndpointConnectionsClientCreateOrUpdateOptions contains the optional parameters for the PrivateEndpointConnectionsClient.CreateOrUpdate +// method. func (client *PrivateEndpointConnectionsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, namespaceName string, privateEndpointConnectionName string, parameters PrivateEndpointConnection, options *PrivateEndpointConnectionsClientCreateOrUpdateOptions) (PrivateEndpointConnectionsClientCreateOrUpdateResponse, error) { req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, namespaceName, privateEndpointConnectionName, parameters, options) if err != nil { @@ -73,7 +75,7 @@ func (client *PrivateEndpointConnectionsClient) CreateOrUpdate(ctx context.Conte if err != nil { return PrivateEndpointConnectionsClientCreateOrUpdateResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusCreated) { + if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusCreated, http.StatusAccepted) { return PrivateEndpointConnectionsClientCreateOrUpdateResponse{}, runtime.NewResponseError(resp) } return client.createOrUpdateHandleResponse(resp) @@ -103,7 +105,7 @@ func (client *PrivateEndpointConnectionsClient) createOrUpdateCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-01-01-preview") + reqQP.Set("api-version", "2022-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, parameters) @@ -120,12 +122,13 @@ func (client *PrivateEndpointConnectionsClient) createOrUpdateHandleResponse(res // BeginDelete - Deletes an existing Private Endpoint Connection. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-01-01-preview -// resourceGroupName - Name of the Resource group within the Azure subscription. -// namespaceName - The namespace name -// privateEndpointConnectionName - The PrivateEndpointConnection name -// options - PrivateEndpointConnectionsClientBeginDeleteOptions contains the optional parameters for the PrivateEndpointConnectionsClient.BeginDelete -// method. +// +// Generated from API version 2022-10-01-preview +// - resourceGroupName - Name of the Resource group within the Azure subscription. +// - namespaceName - The namespace name +// - privateEndpointConnectionName - The PrivateEndpointConnection name +// - options - PrivateEndpointConnectionsClientBeginDeleteOptions contains the optional parameters for the PrivateEndpointConnectionsClient.BeginDelete +// method. func (client *PrivateEndpointConnectionsClient) BeginDelete(ctx context.Context, resourceGroupName string, namespaceName string, privateEndpointConnectionName string, options *PrivateEndpointConnectionsClientBeginDeleteOptions) (*runtime.Poller[PrivateEndpointConnectionsClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, namespaceName, privateEndpointConnectionName, options) @@ -140,7 +143,8 @@ func (client *PrivateEndpointConnectionsClient) BeginDelete(ctx context.Context, // Delete - Deletes an existing Private Endpoint Connection. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-01-01-preview +// +// Generated from API version 2022-10-01-preview func (client *PrivateEndpointConnectionsClient) deleteOperation(ctx context.Context, resourceGroupName string, namespaceName string, privateEndpointConnectionName string, options *PrivateEndpointConnectionsClientBeginDeleteOptions) (*http.Response, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, namespaceName, privateEndpointConnectionName, options) if err != nil { @@ -180,7 +184,7 @@ func (client *PrivateEndpointConnectionsClient) deleteCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-01-01-preview") + reqQP.Set("api-version", "2022-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -188,12 +192,13 @@ func (client *PrivateEndpointConnectionsClient) deleteCreateRequest(ctx context. // Get - Gets a description for the specified Private Endpoint Connection. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-01-01-preview -// resourceGroupName - Name of the Resource group within the Azure subscription. -// namespaceName - The namespace name -// privateEndpointConnectionName - The PrivateEndpointConnection name -// options - PrivateEndpointConnectionsClientGetOptions contains the optional parameters for the PrivateEndpointConnectionsClient.Get -// method. +// +// Generated from API version 2022-10-01-preview +// - resourceGroupName - Name of the Resource group within the Azure subscription. +// - namespaceName - The namespace name +// - privateEndpointConnectionName - The PrivateEndpointConnection name +// - options - PrivateEndpointConnectionsClientGetOptions contains the optional parameters for the PrivateEndpointConnectionsClient.Get +// method. func (client *PrivateEndpointConnectionsClient) Get(ctx context.Context, resourceGroupName string, namespaceName string, privateEndpointConnectionName string, options *PrivateEndpointConnectionsClientGetOptions) (PrivateEndpointConnectionsClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, namespaceName, privateEndpointConnectionName, options) if err != nil { @@ -233,7 +238,7 @@ func (client *PrivateEndpointConnectionsClient) getCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-01-01-preview") + reqQP.Set("api-version", "2022-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -249,12 +254,12 @@ func (client *PrivateEndpointConnectionsClient) getHandleResponse(resp *http.Res } // NewListPager - Gets the available PrivateEndpointConnections within a namespace. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-01-01-preview -// resourceGroupName - Name of the Resource group within the Azure subscription. -// namespaceName - The namespace name -// options - PrivateEndpointConnectionsClientListOptions contains the optional parameters for the PrivateEndpointConnectionsClient.List -// method. +// +// Generated from API version 2022-10-01-preview +// - resourceGroupName - Name of the Resource group within the Azure subscription. +// - namespaceName - The namespace name +// - options - PrivateEndpointConnectionsClientListOptions contains the optional parameters for the PrivateEndpointConnectionsClient.NewListPager +// method. func (client *PrivateEndpointConnectionsClient) NewListPager(resourceGroupName string, namespaceName string, options *PrivateEndpointConnectionsClientListOptions) *runtime.Pager[PrivateEndpointConnectionsClientListResponse] { return runtime.NewPager(runtime.PagingHandler[PrivateEndpointConnectionsClientListResponse]{ More: func(page PrivateEndpointConnectionsClientListResponse) bool { @@ -303,7 +308,7 @@ func (client *PrivateEndpointConnectionsClient) listCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-01-01-preview") + reqQP.Set("api-version", "2022-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/servicebus/armservicebus/privateendpointconnections_client_example_test.go b/sdk/resourcemanager/servicebus/armservicebus/privateendpointconnections_client_example_test.go new file mode 100644 index 000000000000..6d8f89263e12 --- /dev/null +++ b/sdk/resourcemanager/servicebus/armservicebus/privateendpointconnections_client_example_test.go @@ -0,0 +1,164 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armservicebus_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicebus/armservicebus/v2" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5e24fa8e30bff0cb321494a0b550b1c1282a8a3c/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples/NameSpaces/PrivateEndPointConnectionList.json +func ExamplePrivateEndpointConnectionsClient_NewListPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armservicebus.NewPrivateEndpointConnectionsClient("subID", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListPager("SDK-ServiceBus-4794", "sdk-Namespace-5828", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.PrivateEndpointConnectionListResult = armservicebus.PrivateEndpointConnectionListResult{ + // Value: []*armservicebus.PrivateEndpointConnection{ + // { + // Name: to.Ptr("5dc668b3-70e4-437f-b61c-a3c1e594be7a"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces/PrivateEndpointConnections"), + // ID: to.Ptr("/subscriptions/dbedb4e0-40e6-4145-81f3-f1314c150774/resourceGroups/SDK-ServiceBus-7182/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-5705-new/privateEndpointConnections/5dc668b3-70e4-437f-b61c-a3c1e594be7a"), + // Properties: &armservicebus.PrivateEndpointConnectionProperties{ + // PrivateEndpoint: &armservicebus.PrivateEndpoint{ + // ID: to.Ptr("/subscriptions/dbedb4e0-40e6-4145-81f3-f1314c150774/resourceGroups/SDK-ServiceBus-7182/providers/Microsoft.Network/privateEndpoints/sdk-Namespace-5705-new"), + // }, + // PrivateLinkServiceConnectionState: &armservicebus.ConnectionState{ + // Description: to.Ptr("Auto-Approved"), + // Status: to.Ptr(armservicebus.PrivateLinkConnectionStatusApproved), + // }, + // ProvisioningState: to.Ptr(armservicebus.EndPointProvisioningStateSucceeded), + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5e24fa8e30bff0cb321494a0b550b1c1282a8a3c/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples/NameSpaces/PrivateEndPointConnectionCreate.json +func ExamplePrivateEndpointConnectionsClient_CreateOrUpdate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armservicebus.NewPrivateEndpointConnectionsClient("subID", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.CreateOrUpdate(ctx, "ArunMonocle", "sdk-Namespace-2924", "privateEndpointConnectionName", armservicebus.PrivateEndpointConnection{ + Properties: &armservicebus.PrivateEndpointConnectionProperties{ + PrivateEndpoint: &armservicebus.PrivateEndpoint{ + ID: to.Ptr("/subscriptions/dbedb4e0-40e6-4145-81f3-f1314c150774/resourceGroups/SDK-ServiceBus-8396/providers/Microsoft.Network/privateEndpoints/sdk-Namespace-2847"), + }, + PrivateLinkServiceConnectionState: &armservicebus.ConnectionState{ + Description: to.Ptr("testing"), + Status: to.Ptr(armservicebus.PrivateLinkConnectionStatusRejected), + }, + ProvisioningState: to.Ptr(armservicebus.EndPointProvisioningStateSucceeded), + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.PrivateEndpointConnection = armservicebus.PrivateEndpointConnection{ + // Name: to.Ptr("928c44d5-b7c6-423b-b6fa-811e0c27b3e0"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces/PrivateEndpointConnections"), + // ID: to.Ptr("/subscriptions/dbedb4e0-40e6-4145-81f3-f1314c150774/resourceGroups/SDK-ServiceBus-4794/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-5828/privateEndpointConnections/928c44d5-b7c6-423b-b6fa-811e0c27b3e0"), + // Properties: &armservicebus.PrivateEndpointConnectionProperties{ + // PrivateEndpoint: &armservicebus.PrivateEndpoint{ + // ID: to.Ptr("/subscriptions/dbedb4e0-40e6-4145-81f3-f1314c150774/resourceGroups/SDK-ServiceBus-4794/providers/Microsoft.Network/privateEndpoints/sdk-Namespace-5828"), + // }, + // PrivateLinkServiceConnectionState: &armservicebus.ConnectionState{ + // Description: to.Ptr("Auto-Approved"), + // Status: to.Ptr(armservicebus.PrivateLinkConnectionStatusApproved), + // }, + // ProvisioningState: to.Ptr(armservicebus.EndPointProvisioningStateSucceeded), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5e24fa8e30bff0cb321494a0b550b1c1282a8a3c/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples/NameSpaces/PrivateEndPointConnectionDelete.json +func ExamplePrivateEndpointConnectionsClient_BeginDelete() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armservicebus.NewPrivateEndpointConnectionsClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginDelete(ctx, "ArunMonocle", "sdk-Namespace-3285", "928c44d5-b7c6-423b-b6fa-811e0c27b3e0", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + _, err = poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5e24fa8e30bff0cb321494a0b550b1c1282a8a3c/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples/NameSpaces/PrivateEndPointConnectionGet.json +func ExamplePrivateEndpointConnectionsClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armservicebus.NewPrivateEndpointConnectionsClient("subID", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "SDK-ServiceBus-4794", "sdk-Namespace-5828", "privateEndpointConnectionName", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.PrivateEndpointConnection = armservicebus.PrivateEndpointConnection{ + // Name: to.Ptr("privateEndpointConnectionName"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces/PrivateEndpointConnections"), + // ID: to.Ptr("/subscriptions/dbedb4e0-40e6-4145-81f3-f1314c150774/resourceGroups/SDK-ServiceBus-4794/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-5828/privateEndpointConnections/privateEndpointConnectionName"), + // Properties: &armservicebus.PrivateEndpointConnectionProperties{ + // PrivateEndpoint: &armservicebus.PrivateEndpoint{ + // ID: to.Ptr("/subscriptions/dbedb4e0-40e6-4145-81f3-f1314c150774/resourceGroups/SDK-ServiceBus-4794/providers/Microsoft.Network/privateEndpoints/sdk-Namespace-5828"), + // }, + // PrivateLinkServiceConnectionState: &armservicebus.ConnectionState{ + // Description: to.Ptr("Auto-Approved"), + // Status: to.Ptr(armservicebus.PrivateLinkConnectionStatusApproved), + // }, + // ProvisioningState: to.Ptr(armservicebus.EndPointProvisioningStateSucceeded), + // }, + // } +} diff --git a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_privatelinkresources_client.go b/sdk/resourcemanager/servicebus/armservicebus/privatelinkresources_client.go similarity index 85% rename from sdk/resourcemanager/servicebus/armservicebus/zz_generated_privatelinkresources_client.go rename to sdk/resourcemanager/servicebus/armservicebus/privatelinkresources_client.go index 1baddbf9c02e..332e1d71217a 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_privatelinkresources_client.go +++ b/sdk/resourcemanager/servicebus/armservicebus/privatelinkresources_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armservicebus @@ -31,10 +32,10 @@ type PrivateLinkResourcesClient struct { } // NewPrivateLinkResourcesClient creates a new instance of PrivateLinkResourcesClient with the specified values. -// subscriptionID - Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms -// part of the URI for every service call. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms +// part of the URI for every service call. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewPrivateLinkResourcesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PrivateLinkResourcesClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,11 +58,12 @@ func NewPrivateLinkResourcesClient(subscriptionID string, credential azcore.Toke // Get - Gets lists of resources that supports Privatelinks. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-01-01-preview -// resourceGroupName - Name of the Resource group within the Azure subscription. -// namespaceName - The namespace name -// options - PrivateLinkResourcesClientGetOptions contains the optional parameters for the PrivateLinkResourcesClient.Get -// method. +// +// Generated from API version 2022-10-01-preview +// - resourceGroupName - Name of the Resource group within the Azure subscription. +// - namespaceName - The namespace name +// - options - PrivateLinkResourcesClientGetOptions contains the optional parameters for the PrivateLinkResourcesClient.Get +// method. func (client *PrivateLinkResourcesClient) Get(ctx context.Context, resourceGroupName string, namespaceName string, options *PrivateLinkResourcesClientGetOptions) (PrivateLinkResourcesClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, namespaceName, options) if err != nil { @@ -97,7 +99,7 @@ func (client *PrivateLinkResourcesClient) getCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-01-01-preview") + reqQP.Set("api-version", "2022-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/servicebus/armservicebus/privatelinkresources_client_example_test.go b/sdk/resourcemanager/servicebus/armservicebus/privatelinkresources_client_example_test.go new file mode 100644 index 000000000000..b0102e3d48e0 --- /dev/null +++ b/sdk/resourcemanager/servicebus/armservicebus/privatelinkresources_client_example_test.go @@ -0,0 +1,53 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armservicebus_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicebus/armservicebus/v2" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5e24fa8e30bff0cb321494a0b550b1c1282a8a3c/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples/NameSpaces/PrivateLinkResourcesGet.json +func ExamplePrivateLinkResourcesClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armservicebus.NewPrivateLinkResourcesClient("subID", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "ArunMonocle", "sdk-Namespace-2924", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.PrivateLinkResourcesListResult = armservicebus.PrivateLinkResourcesListResult{ + // Value: []*armservicebus.PrivateLinkResource{ + // { + // Name: to.Ptr("namespace"), + // Type: to.Ptr("Microsoft.ServiceBus/namespaces/privateLinkResources"), + // ID: to.Ptr("subscriptions/subID/resourceGroups/SDK-ServiceBus-4794/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-5828/privateLinkResources/namespace"), + // Properties: &armservicebus.PrivateLinkResourceProperties{ + // GroupID: to.Ptr("namespace"), + // RequiredMembers: []*string{ + // to.Ptr("namespace")}, + // RequiredZoneNames: []*string{ + // to.Ptr("privatelink.servicebus.windows.net")}, + // }, + // }}, + // } +} diff --git a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_queues_client.go b/sdk/resourcemanager/servicebus/armservicebus/queues_client.go similarity index 86% rename from sdk/resourcemanager/servicebus/armservicebus/zz_generated_queues_client.go rename to sdk/resourcemanager/servicebus/armservicebus/queues_client.go index cda67835859a..2e85f52bd4c3 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_queues_client.go +++ b/sdk/resourcemanager/servicebus/armservicebus/queues_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armservicebus @@ -32,10 +33,10 @@ type QueuesClient struct { } // NewQueuesClient creates a new instance of QueuesClient with the specified values. -// subscriptionID - Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms -// part of the URI for every service call. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms +// part of the URI for every service call. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewQueuesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*QueuesClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -58,12 +59,13 @@ func NewQueuesClient(subscriptionID string, credential azcore.TokenCredential, o // CreateOrUpdate - Creates or updates a Service Bus queue. This operation is idempotent. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-01-01-preview -// resourceGroupName - Name of the Resource group within the Azure subscription. -// namespaceName - The namespace name -// queueName - The queue name. -// parameters - Parameters supplied to create or update a queue resource. -// options - QueuesClientCreateOrUpdateOptions contains the optional parameters for the QueuesClient.CreateOrUpdate method. +// +// Generated from API version 2022-10-01-preview +// - resourceGroupName - Name of the Resource group within the Azure subscription. +// - namespaceName - The namespace name +// - queueName - The queue name. +// - parameters - Parameters supplied to create or update a queue resource. +// - options - QueuesClientCreateOrUpdateOptions contains the optional parameters for the QueuesClient.CreateOrUpdate method. func (client *QueuesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, namespaceName string, queueName string, parameters SBQueue, options *QueuesClientCreateOrUpdateOptions) (QueuesClientCreateOrUpdateResponse, error) { req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, namespaceName, queueName, parameters, options) if err != nil { @@ -103,7 +105,7 @@ func (client *QueuesClient) createOrUpdateCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-01-01-preview") + reqQP.Set("api-version", "2022-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, parameters) @@ -120,14 +122,15 @@ func (client *QueuesClient) createOrUpdateHandleResponse(resp *http.Response) (Q // CreateOrUpdateAuthorizationRule - Creates an authorization rule for a queue. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-01-01-preview -// resourceGroupName - Name of the Resource group within the Azure subscription. -// namespaceName - The namespace name -// queueName - The queue name. -// authorizationRuleName - The authorization rule name. -// parameters - The shared access authorization rule. -// options - QueuesClientCreateOrUpdateAuthorizationRuleOptions contains the optional parameters for the QueuesClient.CreateOrUpdateAuthorizationRule -// method. +// +// Generated from API version 2022-10-01-preview +// - resourceGroupName - Name of the Resource group within the Azure subscription. +// - namespaceName - The namespace name +// - queueName - The queue name. +// - authorizationRuleName - The authorization rule name. +// - parameters - The shared access authorization rule. +// - options - QueuesClientCreateOrUpdateAuthorizationRuleOptions contains the optional parameters for the QueuesClient.CreateOrUpdateAuthorizationRule +// method. func (client *QueuesClient) CreateOrUpdateAuthorizationRule(ctx context.Context, resourceGroupName string, namespaceName string, queueName string, authorizationRuleName string, parameters SBAuthorizationRule, options *QueuesClientCreateOrUpdateAuthorizationRuleOptions) (QueuesClientCreateOrUpdateAuthorizationRuleResponse, error) { req, err := client.createOrUpdateAuthorizationRuleCreateRequest(ctx, resourceGroupName, namespaceName, queueName, authorizationRuleName, parameters, options) if err != nil { @@ -171,7 +174,7 @@ func (client *QueuesClient) createOrUpdateAuthorizationRuleCreateRequest(ctx con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-01-01-preview") + reqQP.Set("api-version", "2022-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, parameters) @@ -188,11 +191,12 @@ func (client *QueuesClient) createOrUpdateAuthorizationRuleHandleResponse(resp * // Delete - Deletes a queue from the specified namespace in a resource group. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-01-01-preview -// resourceGroupName - Name of the Resource group within the Azure subscription. -// namespaceName - The namespace name -// queueName - The queue name. -// options - QueuesClientDeleteOptions contains the optional parameters for the QueuesClient.Delete method. +// +// Generated from API version 2022-10-01-preview +// - resourceGroupName - Name of the Resource group within the Azure subscription. +// - namespaceName - The namespace name +// - queueName - The queue name. +// - options - QueuesClientDeleteOptions contains the optional parameters for the QueuesClient.Delete method. func (client *QueuesClient) Delete(ctx context.Context, resourceGroupName string, namespaceName string, queueName string, options *QueuesClientDeleteOptions) (QueuesClientDeleteResponse, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, namespaceName, queueName, options) if err != nil { @@ -232,7 +236,7 @@ func (client *QueuesClient) deleteCreateRequest(ctx context.Context, resourceGro return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-01-01-preview") + reqQP.Set("api-version", "2022-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -240,13 +244,14 @@ func (client *QueuesClient) deleteCreateRequest(ctx context.Context, resourceGro // DeleteAuthorizationRule - Deletes a queue authorization rule. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-01-01-preview -// resourceGroupName - Name of the Resource group within the Azure subscription. -// namespaceName - The namespace name -// queueName - The queue name. -// authorizationRuleName - The authorization rule name. -// options - QueuesClientDeleteAuthorizationRuleOptions contains the optional parameters for the QueuesClient.DeleteAuthorizationRule -// method. +// +// Generated from API version 2022-10-01-preview +// - resourceGroupName - Name of the Resource group within the Azure subscription. +// - namespaceName - The namespace name +// - queueName - The queue name. +// - authorizationRuleName - The authorization rule name. +// - options - QueuesClientDeleteAuthorizationRuleOptions contains the optional parameters for the QueuesClient.DeleteAuthorizationRule +// method. func (client *QueuesClient) DeleteAuthorizationRule(ctx context.Context, resourceGroupName string, namespaceName string, queueName string, authorizationRuleName string, options *QueuesClientDeleteAuthorizationRuleOptions) (QueuesClientDeleteAuthorizationRuleResponse, error) { req, err := client.deleteAuthorizationRuleCreateRequest(ctx, resourceGroupName, namespaceName, queueName, authorizationRuleName, options) if err != nil { @@ -290,7 +295,7 @@ func (client *QueuesClient) deleteAuthorizationRuleCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-01-01-preview") + reqQP.Set("api-version", "2022-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -298,11 +303,12 @@ func (client *QueuesClient) deleteAuthorizationRuleCreateRequest(ctx context.Con // Get - Returns a description for the specified queue. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-01-01-preview -// resourceGroupName - Name of the Resource group within the Azure subscription. -// namespaceName - The namespace name -// queueName - The queue name. -// options - QueuesClientGetOptions contains the optional parameters for the QueuesClient.Get method. +// +// Generated from API version 2022-10-01-preview +// - resourceGroupName - Name of the Resource group within the Azure subscription. +// - namespaceName - The namespace name +// - queueName - The queue name. +// - options - QueuesClientGetOptions contains the optional parameters for the QueuesClient.Get method. func (client *QueuesClient) Get(ctx context.Context, resourceGroupName string, namespaceName string, queueName string, options *QueuesClientGetOptions) (QueuesClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, namespaceName, queueName, options) if err != nil { @@ -342,7 +348,7 @@ func (client *QueuesClient) getCreateRequest(ctx context.Context, resourceGroupN return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-01-01-preview") + reqQP.Set("api-version", "2022-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -359,13 +365,14 @@ func (client *QueuesClient) getHandleResponse(resp *http.Response) (QueuesClient // GetAuthorizationRule - Gets an authorization rule for a queue by rule name. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-01-01-preview -// resourceGroupName - Name of the Resource group within the Azure subscription. -// namespaceName - The namespace name -// queueName - The queue name. -// authorizationRuleName - The authorization rule name. -// options - QueuesClientGetAuthorizationRuleOptions contains the optional parameters for the QueuesClient.GetAuthorizationRule -// method. +// +// Generated from API version 2022-10-01-preview +// - resourceGroupName - Name of the Resource group within the Azure subscription. +// - namespaceName - The namespace name +// - queueName - The queue name. +// - authorizationRuleName - The authorization rule name. +// - options - QueuesClientGetAuthorizationRuleOptions contains the optional parameters for the QueuesClient.GetAuthorizationRule +// method. func (client *QueuesClient) GetAuthorizationRule(ctx context.Context, resourceGroupName string, namespaceName string, queueName string, authorizationRuleName string, options *QueuesClientGetAuthorizationRuleOptions) (QueuesClientGetAuthorizationRuleResponse, error) { req, err := client.getAuthorizationRuleCreateRequest(ctx, resourceGroupName, namespaceName, queueName, authorizationRuleName, options) if err != nil { @@ -409,7 +416,7 @@ func (client *QueuesClient) getAuthorizationRuleCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-01-01-preview") + reqQP.Set("api-version", "2022-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -425,13 +432,13 @@ func (client *QueuesClient) getAuthorizationRuleHandleResponse(resp *http.Respon } // NewListAuthorizationRulesPager - Gets all authorization rules for a queue. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-01-01-preview -// resourceGroupName - Name of the Resource group within the Azure subscription. -// namespaceName - The namespace name -// queueName - The queue name. -// options - QueuesClientListAuthorizationRulesOptions contains the optional parameters for the QueuesClient.ListAuthorizationRules -// method. +// +// Generated from API version 2022-10-01-preview +// - resourceGroupName - Name of the Resource group within the Azure subscription. +// - namespaceName - The namespace name +// - queueName - The queue name. +// - options - QueuesClientListAuthorizationRulesOptions contains the optional parameters for the QueuesClient.NewListAuthorizationRulesPager +// method. func (client *QueuesClient) NewListAuthorizationRulesPager(resourceGroupName string, namespaceName string, queueName string, options *QueuesClientListAuthorizationRulesOptions) *runtime.Pager[QueuesClientListAuthorizationRulesResponse] { return runtime.NewPager(runtime.PagingHandler[QueuesClientListAuthorizationRulesResponse]{ More: func(page QueuesClientListAuthorizationRulesResponse) bool { @@ -484,7 +491,7 @@ func (client *QueuesClient) listAuthorizationRulesCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-01-01-preview") + reqQP.Set("api-version", "2022-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -500,11 +507,12 @@ func (client *QueuesClient) listAuthorizationRulesHandleResponse(resp *http.Resp } // NewListByNamespacePager - Gets the queues within a namespace. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-01-01-preview -// resourceGroupName - Name of the Resource group within the Azure subscription. -// namespaceName - The namespace name -// options - QueuesClientListByNamespaceOptions contains the optional parameters for the QueuesClient.ListByNamespace method. +// +// Generated from API version 2022-10-01-preview +// - resourceGroupName - Name of the Resource group within the Azure subscription. +// - namespaceName - The namespace name +// - options - QueuesClientListByNamespaceOptions contains the optional parameters for the QueuesClient.NewListByNamespacePager +// method. func (client *QueuesClient) NewListByNamespacePager(resourceGroupName string, namespaceName string, options *QueuesClientListByNamespaceOptions) *runtime.Pager[QueuesClientListByNamespaceResponse] { return runtime.NewPager(runtime.PagingHandler[QueuesClientListByNamespaceResponse]{ More: func(page QueuesClientListByNamespaceResponse) bool { @@ -553,7 +561,7 @@ func (client *QueuesClient) listByNamespaceCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-01-01-preview") + reqQP.Set("api-version", "2022-10-01-preview") if options != nil && options.Skip != nil { reqQP.Set("$skip", strconv.FormatInt(int64(*options.Skip), 10)) } @@ -576,12 +584,13 @@ func (client *QueuesClient) listByNamespaceHandleResponse(resp *http.Response) ( // ListKeys - Primary and secondary connection strings to the queue. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-01-01-preview -// resourceGroupName - Name of the Resource group within the Azure subscription. -// namespaceName - The namespace name -// queueName - The queue name. -// authorizationRuleName - The authorization rule name. -// options - QueuesClientListKeysOptions contains the optional parameters for the QueuesClient.ListKeys method. +// +// Generated from API version 2022-10-01-preview +// - resourceGroupName - Name of the Resource group within the Azure subscription. +// - namespaceName - The namespace name +// - queueName - The queue name. +// - authorizationRuleName - The authorization rule name. +// - options - QueuesClientListKeysOptions contains the optional parameters for the QueuesClient.ListKeys method. func (client *QueuesClient) ListKeys(ctx context.Context, resourceGroupName string, namespaceName string, queueName string, authorizationRuleName string, options *QueuesClientListKeysOptions) (QueuesClientListKeysResponse, error) { req, err := client.listKeysCreateRequest(ctx, resourceGroupName, namespaceName, queueName, authorizationRuleName, options) if err != nil { @@ -625,7 +634,7 @@ func (client *QueuesClient) listKeysCreateRequest(ctx context.Context, resourceG return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-01-01-preview") + reqQP.Set("api-version", "2022-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -642,13 +651,14 @@ func (client *QueuesClient) listKeysHandleResponse(resp *http.Response) (QueuesC // RegenerateKeys - Regenerates the primary or secondary connection strings to the queue. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-01-01-preview -// resourceGroupName - Name of the Resource group within the Azure subscription. -// namespaceName - The namespace name -// queueName - The queue name. -// authorizationRuleName - The authorization rule name. -// parameters - Parameters supplied to regenerate the authorization rule. -// options - QueuesClientRegenerateKeysOptions contains the optional parameters for the QueuesClient.RegenerateKeys method. +// +// Generated from API version 2022-10-01-preview +// - resourceGroupName - Name of the Resource group within the Azure subscription. +// - namespaceName - The namespace name +// - queueName - The queue name. +// - authorizationRuleName - The authorization rule name. +// - parameters - Parameters supplied to regenerate the authorization rule. +// - options - QueuesClientRegenerateKeysOptions contains the optional parameters for the QueuesClient.RegenerateKeys method. func (client *QueuesClient) RegenerateKeys(ctx context.Context, resourceGroupName string, namespaceName string, queueName string, authorizationRuleName string, parameters RegenerateAccessKeyParameters, options *QueuesClientRegenerateKeysOptions) (QueuesClientRegenerateKeysResponse, error) { req, err := client.regenerateKeysCreateRequest(ctx, resourceGroupName, namespaceName, queueName, authorizationRuleName, parameters, options) if err != nil { @@ -692,7 +702,7 @@ func (client *QueuesClient) regenerateKeysCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-01-01-preview") + reqQP.Set("api-version", "2022-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, parameters) diff --git a/sdk/resourcemanager/servicebus/armservicebus/queues_client_example_test.go b/sdk/resourcemanager/servicebus/armservicebus/queues_client_example_test.go new file mode 100644 index 000000000000..c3970cbe0f01 --- /dev/null +++ b/sdk/resourcemanager/servicebus/armservicebus/queues_client_example_test.go @@ -0,0 +1,359 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armservicebus_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicebus/armservicebus/v2" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5e24fa8e30bff0cb321494a0b550b1c1282a8a3c/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples/Queues/SBQueueAuthorizationRuleListAll.json +func ExampleQueuesClient_NewListAuthorizationRulesPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armservicebus.NewQueuesClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListAuthorizationRulesPager("ArunMonocle", "sdk-Namespace-7982", "sdk-Queues-2317", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.SBAuthorizationRuleListResult = armservicebus.SBAuthorizationRuleListResult{ + // Value: []*armservicebus.SBAuthorizationRule{ + // { + // Name: to.Ptr("sdk-AuthRules-5800"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces/Queues/AuthorizationRules"), + // ID: to.Ptr("/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/ArunMonocle/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-7982/queues/sdk-Queues-2317/authorizationRules/sdk-AuthRules-5800"), + // Properties: &armservicebus.SBAuthorizationRuleProperties{ + // Rights: []*armservicebus.AccessRights{ + // to.Ptr(armservicebus.AccessRightsListen), + // to.Ptr(armservicebus.AccessRightsSend)}, + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5e24fa8e30bff0cb321494a0b550b1c1282a8a3c/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples/Queues/SBQueueAuthorizationRuleCreate.json +func ExampleQueuesClient_CreateOrUpdateAuthorizationRule() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armservicebus.NewQueuesClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.CreateOrUpdateAuthorizationRule(ctx, "ArunMonocle", "sdk-Namespace-7982", "sdk-Queues-2317", "sdk-AuthRules-5800", armservicebus.SBAuthorizationRule{ + Properties: &armservicebus.SBAuthorizationRuleProperties{ + Rights: []*armservicebus.AccessRights{ + to.Ptr(armservicebus.AccessRightsListen), + to.Ptr(armservicebus.AccessRightsSend)}, + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.SBAuthorizationRule = armservicebus.SBAuthorizationRule{ + // Name: to.Ptr("sdk-AuthRules-5800"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces/Queues/AuthorizationRules"), + // ID: to.Ptr("/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/ArunMonocle/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-7982/queues/sdk-Queues-2317/authorizationRules/sdk-AuthRules-5800"), + // Properties: &armservicebus.SBAuthorizationRuleProperties{ + // Rights: []*armservicebus.AccessRights{ + // to.Ptr(armservicebus.AccessRightsListen), + // to.Ptr(armservicebus.AccessRightsSend)}, + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5e24fa8e30bff0cb321494a0b550b1c1282a8a3c/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples/Queues/SBQueueAuthorizationRuleDelete.json +func ExampleQueuesClient_DeleteAuthorizationRule() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armservicebus.NewQueuesClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + _, err = client.DeleteAuthorizationRule(ctx, "ArunMonocle", "sdk-namespace-7982", "sdk-Queues-2317", "sdk-AuthRules-5800", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5e24fa8e30bff0cb321494a0b550b1c1282a8a3c/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples/Queues/SBQueueAuthorizationRuleGet.json +func ExampleQueuesClient_GetAuthorizationRule() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armservicebus.NewQueuesClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.GetAuthorizationRule(ctx, "ArunMonocle", "sdk-Namespace-7982", "sdk-Queues-2317", "sdk-AuthRules-5800", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.SBAuthorizationRule = armservicebus.SBAuthorizationRule{ + // Name: to.Ptr("sdk-AuthRules-5800"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces/Queues/AuthorizationRules"), + // ID: to.Ptr("/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/ArunMonocle/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-7982/queues/sdk-Queues-2317/authorizationRules/sdk-AuthRules-5800"), + // Properties: &armservicebus.SBAuthorizationRuleProperties{ + // Rights: []*armservicebus.AccessRights{ + // to.Ptr(armservicebus.AccessRightsListen), + // to.Ptr(armservicebus.AccessRightsSend)}, + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5e24fa8e30bff0cb321494a0b550b1c1282a8a3c/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples/Queues/SBQueueAuthorizationRuleListKey.json +func ExampleQueuesClient_ListKeys() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armservicebus.NewQueuesClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.ListKeys(ctx, "ArunMonocle", "sdk-namespace-7982", "sdk-Queues-2317", "sdk-AuthRules-5800", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.AccessKeys = armservicebus.AccessKeys{ + // KeyName: to.Ptr("sdk-AuthRules-5800"), + // PrimaryConnectionString: to.Ptr("Endpoint=sb://sdk-namespace-7982.servicebus.windows-int.net/;SharedAccessKeyName=sdk-AuthRules-5800;SharedAccessKey=############################################;EntityPath=sdk-Queues-2317"), + // PrimaryKey: to.Ptr("############################################"), + // SecondaryConnectionString: to.Ptr("Endpoint=sb://sdk-namespace-7982.servicebus.windows-int.net/;SharedAccessKeyName=sdk-AuthRules-5800;SharedAccessKey=############################################;EntityPath=sdk-Queues-2317"), + // SecondaryKey: to.Ptr("############################################"), + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5e24fa8e30bff0cb321494a0b550b1c1282a8a3c/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples/Queues/SBQueueAuthorizationRuleRegenerateKey.json +func ExampleQueuesClient_RegenerateKeys() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armservicebus.NewQueuesClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.RegenerateKeys(ctx, "ArunMonocle", "sdk-namespace-7982", "sdk-Queues-2317", "sdk-AuthRules-5800", armservicebus.RegenerateAccessKeyParameters{ + KeyType: to.Ptr(armservicebus.KeyTypePrimaryKey), + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.AccessKeys = armservicebus.AccessKeys{ + // KeyName: to.Ptr("sdk-AuthRules-5800"), + // PrimaryConnectionString: to.Ptr("Endpoint=sb://sdk-namespace-7982.servicebus.windows-int.net/;SharedAccessKeyName=sdk-AuthRules-5800;SharedAccessKey=############################################;EntityPath=sdk-Queues-2317"), + // PrimaryKey: to.Ptr("############################################"), + // SecondaryConnectionString: to.Ptr("Endpoint=sb://sdk-namespace-7982.servicebus.windows-int.net/;SharedAccessKeyName=sdk-AuthRules-5800;SharedAccessKey=############################################;EntityPath=sdk-Queues-2317"), + // SecondaryKey: to.Ptr("############################################"), + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5e24fa8e30bff0cb321494a0b550b1c1282a8a3c/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples/Queues/SBQueueListByNameSpace.json +func ExampleQueuesClient_NewListByNamespacePager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armservicebus.NewQueuesClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListByNamespacePager("ArunMonocle", "sdk-Namespace-3174", &armservicebus.QueuesClientListByNamespaceOptions{Skip: nil, + Top: nil, + }) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.SBQueueListResult = armservicebus.SBQueueListResult{ + // Value: []*armservicebus.SBQueue{ + // { + // Name: to.Ptr("sdk-queues-5647"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces/Queues"), + // ID: to.Ptr("/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/ArunMonocle/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-3174/queues/sdk-queues-5647"), + // Properties: &armservicebus.SBQueueProperties{ + // AccessedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "0001-01-01T00:00:00Z"); return t}()), + // AutoDeleteOnIdle: to.Ptr("P10675199DT2H48M5.4775807S"), + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-05-26T18:07:32.4592931Z"); return t}()), + // DefaultMessageTimeToLive: to.Ptr("P10675199DT2H48M5.4775807S"), + // DuplicateDetectionHistoryTimeWindow: to.Ptr("PT10M"), + // EnableExpress: to.Ptr(false), + // EnablePartitioning: to.Ptr(true), + // LockDuration: to.Ptr("PT1M"), + // MaxDeliveryCount: to.Ptr[int32](10), + // MaxMessageSizeInKilobytes: to.Ptr[int64](10240), + // MaxSizeInMegabytes: to.Ptr[int32](163840), + // MessageCount: to.Ptr[int64](0), + // RequiresDuplicateDetection: to.Ptr(false), + // RequiresSession: to.Ptr(false), + // SizeInBytes: to.Ptr[int64](0), + // Status: to.Ptr(armservicebus.EntityStatusActive), + // UpdatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-05-26T18:07:34.6243761Z"); return t}()), + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5e24fa8e30bff0cb321494a0b550b1c1282a8a3c/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples/Queues/SBQueueCreate.json +func ExampleQueuesClient_CreateOrUpdate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armservicebus.NewQueuesClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.CreateOrUpdate(ctx, "ArunMonocle", "sdk-Namespace-3174", "sdk-Queues-5647", armservicebus.SBQueue{ + Properties: &armservicebus.SBQueueProperties{ + EnablePartitioning: to.Ptr(true), + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.SBQueue = armservicebus.SBQueue{ + // Name: to.Ptr("sdk-Queues-5647"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces/Queues"), + // ID: to.Ptr("/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/ArunMonocle/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-3174/queues/sdk-Queues-5647"), + // Properties: &armservicebus.SBQueueProperties{ + // AccessedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-05-26T18:07:34.227Z"); return t}()), + // AutoDeleteOnIdle: to.Ptr("P10675199DT2H48M5.4775807S"), + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-05-26T18:07:33.68Z"); return t}()), + // DefaultMessageTimeToLive: to.Ptr("P10675199DT2H48M5.4775807S"), + // DuplicateDetectionHistoryTimeWindow: to.Ptr("PT10M"), + // EnableExpress: to.Ptr(false), + // EnablePartitioning: to.Ptr(true), + // LockDuration: to.Ptr("PT1M"), + // MaxDeliveryCount: to.Ptr[int32](10), + // MaxMessageSizeInKilobytes: to.Ptr[int64](10240), + // MaxSizeInMegabytes: to.Ptr[int32](163840), + // MessageCount: to.Ptr[int64](0), + // RequiresDuplicateDetection: to.Ptr(false), + // RequiresSession: to.Ptr(false), + // SizeInBytes: to.Ptr[int64](0), + // Status: to.Ptr(armservicebus.EntityStatusActive), + // UpdatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-05-26T18:07:34.227Z"); return t}()), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5e24fa8e30bff0cb321494a0b550b1c1282a8a3c/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples/Queues/SBQueueDelete.json +func ExampleQueuesClient_Delete() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armservicebus.NewQueuesClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + _, err = client.Delete(ctx, "ArunMonocle", "sdk-Namespace-183", "sdk-Queues-8708", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5e24fa8e30bff0cb321494a0b550b1c1282a8a3c/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples/Queues/SBQueueGet.json +func ExampleQueuesClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armservicebus.NewQueuesClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "ArunMonocle", "sdk-Namespace-3174", "sdk-Queues-5647", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.SBQueue = armservicebus.SBQueue{ + // Name: to.Ptr("sdk-Queues-5647"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces/Queues"), + // ID: to.Ptr("/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/ArunMonocle/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-3174/queues/sdk-Queues-5647"), + // Properties: &armservicebus.SBQueueProperties{ + // AccessedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "0001-01-01T00:00:00Z"); return t}()), + // AutoDeleteOnIdle: to.Ptr("P10675199DT2H48M5.4775807S"), + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-05-26T18:07:32.4592931Z"); return t}()), + // DefaultMessageTimeToLive: to.Ptr("P10675199DT2H48M5.4775807S"), + // DuplicateDetectionHistoryTimeWindow: to.Ptr("PT10M"), + // EnableExpress: to.Ptr(false), + // EnablePartitioning: to.Ptr(true), + // LockDuration: to.Ptr("PT1M"), + // MaxDeliveryCount: to.Ptr[int32](10), + // MaxMessageSizeInKilobytes: to.Ptr[int64](10240), + // MaxSizeInMegabytes: to.Ptr[int32](163840), + // MessageCount: to.Ptr[int64](0), + // RequiresDuplicateDetection: to.Ptr(false), + // RequiresSession: to.Ptr(false), + // SizeInBytes: to.Ptr[int64](0), + // Status: to.Ptr(armservicebus.EntityStatusActive), + // UpdatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-05-26T18:07:34.6243761Z"); return t}()), + // }, + // } +} diff --git a/sdk/resourcemanager/servicebus/armservicebus/queues_live_test.go b/sdk/resourcemanager/servicebus/armservicebus/queues_live_test.go deleted file mode 100644 index f9856b435b6a..000000000000 --- a/sdk/resourcemanager/servicebus/armservicebus/queues_live_test.go +++ /dev/null @@ -1,176 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armservicebus_test - -import ( - "context" - "fmt" - "testing" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/testutil" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicebus/armservicebus/v2" - "github.com/stretchr/testify/suite" -) - -type QueuesTestSuite struct { - suite.Suite - - ctx context.Context - cred azcore.TokenCredential - options *arm.ClientOptions - authorizationRuleName string - namespaceName string - queueName string - location string - resourceGroupName string - subscriptionId string -} - -func (testsuite *QueuesTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/servicebus/armservicebus/testdata") - testsuite.ctx = context.Background() - testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) - testsuite.authorizationRuleName = testutil.GenerateAlphaNumericID(testsuite.T(), "queueauthrule", 6) - testsuite.namespaceName = testutil.GenerateAlphaNumericID(testsuite.T(), "sbnamespaceq", 6) - testsuite.queueName = testutil.GenerateAlphaNumericID(testsuite.T(), "queuena", 6) - testsuite.location = testutil.GetEnv("LOCATION", "westus") - testsuite.resourceGroupName = testutil.GetEnv("RESOURCE_GROUP_NAME", "scenarioTestTempGroup") - testsuite.subscriptionId = testutil.GetEnv("AZURE_SUBSCRIPTION_ID", "00000000-0000-0000-0000-000000000000") - - resourceGroup, _, err := testutil.CreateResourceGroup(testsuite.ctx, testsuite.subscriptionId, testsuite.cred, testsuite.options, testsuite.location) - testsuite.Require().NoError(err) - testsuite.resourceGroupName = *resourceGroup.Name - testsuite.Prepare() -} - -func (testsuite *QueuesTestSuite) TearDownSuite() { - testsuite.Cleanup() - _, err := testutil.DeleteResourceGroup(testsuite.ctx, testsuite.subscriptionId, testsuite.cred, testsuite.options, testsuite.resourceGroupName) - testsuite.Require().NoError(err) - testutil.StopRecording(testsuite.T()) -} - -func TestQueuesTestSuite(t *testing.T) { - suite.Run(t, new(QueuesTestSuite)) -} - -func (testsuite *QueuesTestSuite) Prepare() { - var err error - // From step Namespace_Create - fmt.Println("Call operation: Namespaces_Create") - namespacesClient, err := armservicebus.NewNamespacesClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) - testsuite.Require().NoError(err) - namespacesClientCreateOrUpdateResponsePoller, err := namespacesClient.BeginCreateOrUpdate(testsuite.ctx, testsuite.resourceGroupName, testsuite.namespaceName, armservicebus.SBNamespace{ - Location: to.Ptr(testsuite.location), - Tags: map[string]*string{ - "tag1": to.Ptr("value1"), - "tag2": to.Ptr("value2"), - }, - SKU: &armservicebus.SBSKU{ - Name: to.Ptr(armservicebus.SKUNameStandard), - Tier: to.Ptr(armservicebus.SKUTierStandard), - }, - }, nil) - testsuite.Require().NoError(err) - _, err = testutil.PollForTest(testsuite.ctx, namespacesClientCreateOrUpdateResponsePoller) - testsuite.Require().NoError(err) -} - -// Microsoft.ServiceBus/namespaces/queues -func (testsuite *QueuesTestSuite) TestQueue() { - var err error - // From step Queue_Create - fmt.Println("Call operation: Queue_Create") - queuesClient, err := armservicebus.NewQueuesClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) - testsuite.Require().NoError(err) - _, err = queuesClient.CreateOrUpdate(testsuite.ctx, testsuite.resourceGroupName, testsuite.namespaceName, testsuite.queueName, armservicebus.SBQueue{ - Properties: &armservicebus.SBQueueProperties{ - EnablePartitioning: to.Ptr(true), - }, - }, nil) - testsuite.Require().NoError(err) - - // From step Queue_Get - fmt.Println("Call operation: Queue_Get") - _, err = queuesClient.Get(testsuite.ctx, testsuite.resourceGroupName, testsuite.namespaceName, testsuite.queueName, nil) - testsuite.Require().NoError(err) - - // From step Queue_ListByNamespace - fmt.Println("Call operation: Queue_ListByNamespace") - queuesClientNewListByNamespacePager := queuesClient.NewListByNamespacePager(testsuite.resourceGroupName, testsuite.namespaceName, &armservicebus.QueuesClientListByNamespaceOptions{Skip: nil, - Top: nil, - }) - for queuesClientNewListByNamespacePager.More() { - _, err := queuesClientNewListByNamespacePager.NextPage(testsuite.ctx) - testsuite.Require().NoError(err) - break - } - - // From step Queue_CreateAuthorizationRule - fmt.Println("Call operation: Queue_CreateAuthorizationRule") - _, err = queuesClient.CreateOrUpdateAuthorizationRule(testsuite.ctx, testsuite.resourceGroupName, testsuite.namespaceName, testsuite.queueName, testsuite.authorizationRuleName, armservicebus.SBAuthorizationRule{ - Properties: &armservicebus.SBAuthorizationRuleProperties{ - Rights: []*armservicebus.AccessRights{ - to.Ptr(armservicebus.AccessRightsListen), - to.Ptr(armservicebus.AccessRightsSend)}, - }, - }, nil) - testsuite.Require().NoError(err) - - // From step Queue_GetAuthorizationRule - fmt.Println("Call operation: Queue_GetAuthorizationRule") - _, err = queuesClient.GetAuthorizationRule(testsuite.ctx, testsuite.resourceGroupName, testsuite.namespaceName, testsuite.queueName, testsuite.authorizationRuleName, nil) - testsuite.Require().NoError(err) - - // From step Queue_ListAuthorizationRules - fmt.Println("Call operation: Queue_ListAuthorizationRules") - queuesClientNewListAuthorizationRulesPager := queuesClient.NewListAuthorizationRulesPager(testsuite.resourceGroupName, testsuite.namespaceName, testsuite.queueName, nil) - for queuesClientNewListAuthorizationRulesPager.More() { - _, err := queuesClientNewListAuthorizationRulesPager.NextPage(testsuite.ctx) - testsuite.Require().NoError(err) - break - } - - // From step Queue_RegenerateKeys - fmt.Println("Call operation: Queue_RegenerateKeys") - _, err = queuesClient.RegenerateKeys(testsuite.ctx, testsuite.resourceGroupName, testsuite.namespaceName, testsuite.queueName, testsuite.authorizationRuleName, armservicebus.RegenerateAccessKeyParameters{ - KeyType: to.Ptr(armservicebus.KeyTypePrimaryKey), - }, nil) - testsuite.Require().NoError(err) - - // From step Queue_ListKeys - fmt.Println("Call operation: Queue_ListKeys") - _, err = queuesClient.ListKeys(testsuite.ctx, testsuite.resourceGroupName, testsuite.namespaceName, testsuite.queueName, testsuite.authorizationRuleName, nil) - testsuite.Require().NoError(err) - - // From step Queue_DeleteAuthorizationRule - fmt.Println("Call operation: Queue_DeleteAuthorizationRule") - _, err = queuesClient.DeleteAuthorizationRule(testsuite.ctx, testsuite.resourceGroupName, testsuite.namespaceName, testsuite.queueName, testsuite.authorizationRuleName, nil) - testsuite.Require().NoError(err) - - // From step Queue_Delete - fmt.Println("Call operation: Queue_Delete") - _, err = queuesClient.Delete(testsuite.ctx, testsuite.resourceGroupName, testsuite.namespaceName, testsuite.queueName, nil) - testsuite.Require().NoError(err) -} - -func (testsuite *QueuesTestSuite) Cleanup() { - var err error - // From step Namespace_Delete - fmt.Println("Call operation: Namespace_Delete") - namespacesClient, err := armservicebus.NewNamespacesClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) - testsuite.Require().NoError(err) - namespacesClientDeleteResponsePoller, err := namespacesClient.BeginDelete(testsuite.ctx, testsuite.resourceGroupName, testsuite.namespaceName, nil) - testsuite.Require().NoError(err) - _, err = testutil.PollForTest(testsuite.ctx, namespacesClientDeleteResponsePoller) - testsuite.Require().NoError(err) -} diff --git a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_response_types.go b/sdk/resourcemanager/servicebus/armservicebus/response_types.go similarity index 91% rename from sdk/resourcemanager/servicebus/armservicebus/zz_generated_response_types.go rename to sdk/resourcemanager/servicebus/armservicebus/response_types.go index 2435c03710ca..bbcc03d4abd4 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_response_types.go +++ b/sdk/resourcemanager/servicebus/armservicebus/response_types.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armservicebus @@ -43,7 +44,7 @@ type DisasterRecoveryConfigsClientGetResponse struct { ArmDisasterRecovery } -// DisasterRecoveryConfigsClientListAuthorizationRulesResponse contains the response from method DisasterRecoveryConfigsClient.ListAuthorizationRules. +// DisasterRecoveryConfigsClientListAuthorizationRulesResponse contains the response from method DisasterRecoveryConfigsClient.NewListAuthorizationRulesPager. type DisasterRecoveryConfigsClientListAuthorizationRulesResponse struct { SBAuthorizationRuleListResult } @@ -53,7 +54,7 @@ type DisasterRecoveryConfigsClientListKeysResponse struct { AccessKeys } -// DisasterRecoveryConfigsClientListResponse contains the response from method DisasterRecoveryConfigsClient.List. +// DisasterRecoveryConfigsClientListResponse contains the response from method DisasterRecoveryConfigsClient.NewListPager. type DisasterRecoveryConfigsClientListResponse struct { ArmDisasterRecoveryListResult } @@ -63,7 +64,7 @@ type MigrationConfigsClientCompleteMigrationResponse struct { // placeholder for future response values } -// MigrationConfigsClientCreateAndStartMigrationResponse contains the response from method MigrationConfigsClient.CreateAndStartMigration. +// MigrationConfigsClientCreateAndStartMigrationResponse contains the response from method MigrationConfigsClient.BeginCreateAndStartMigration. type MigrationConfigsClientCreateAndStartMigrationResponse struct { MigrationConfigProperties } @@ -78,7 +79,7 @@ type MigrationConfigsClientGetResponse struct { MigrationConfigProperties } -// MigrationConfigsClientListResponse contains the response from method MigrationConfigsClient.List. +// MigrationConfigsClientListResponse contains the response from method MigrationConfigsClient.NewListPager. type MigrationConfigsClientListResponse struct { MigrationConfigListResult } @@ -103,7 +104,7 @@ type NamespacesClientCreateOrUpdateNetworkRuleSetResponse struct { NetworkRuleSet } -// NamespacesClientCreateOrUpdateResponse contains the response from method NamespacesClient.CreateOrUpdate. +// NamespacesClientCreateOrUpdateResponse contains the response from method NamespacesClient.BeginCreateOrUpdate. type NamespacesClientCreateOrUpdateResponse struct { SBNamespace } @@ -113,7 +114,7 @@ type NamespacesClientDeleteAuthorizationRuleResponse struct { // placeholder for future response values } -// NamespacesClientDeleteResponse contains the response from method NamespacesClient.Delete. +// NamespacesClientDeleteResponse contains the response from method NamespacesClient.BeginDelete. type NamespacesClientDeleteResponse struct { // placeholder for future response values } @@ -133,12 +134,12 @@ type NamespacesClientGetResponse struct { SBNamespace } -// NamespacesClientListAuthorizationRulesResponse contains the response from method NamespacesClient.ListAuthorizationRules. +// NamespacesClientListAuthorizationRulesResponse contains the response from method NamespacesClient.NewListAuthorizationRulesPager. type NamespacesClientListAuthorizationRulesResponse struct { SBAuthorizationRuleListResult } -// NamespacesClientListByResourceGroupResponse contains the response from method NamespacesClient.ListByResourceGroup. +// NamespacesClientListByResourceGroupResponse contains the response from method NamespacesClient.NewListByResourceGroupPager. type NamespacesClientListByResourceGroupResponse struct { SBNamespaceListResult } @@ -148,12 +149,12 @@ type NamespacesClientListKeysResponse struct { AccessKeys } -// NamespacesClientListNetworkRuleSetsResponse contains the response from method NamespacesClient.ListNetworkRuleSets. +// NamespacesClientListNetworkRuleSetsResponse contains the response from method NamespacesClient.NewListNetworkRuleSetsPager. type NamespacesClientListNetworkRuleSetsResponse struct { NetworkRuleSetListResult } -// NamespacesClientListResponse contains the response from method NamespacesClient.List. +// NamespacesClientListResponse contains the response from method NamespacesClient.NewListPager. type NamespacesClientListResponse struct { SBNamespaceListResult } @@ -168,7 +169,7 @@ type NamespacesClientUpdateResponse struct { SBNamespace } -// OperationsClientListResponse contains the response from method OperationsClient.List. +// OperationsClientListResponse contains the response from method OperationsClient.NewListPager. type OperationsClientListResponse struct { OperationListResult } @@ -178,7 +179,7 @@ type PrivateEndpointConnectionsClientCreateOrUpdateResponse struct { PrivateEndpointConnection } -// PrivateEndpointConnectionsClientDeleteResponse contains the response from method PrivateEndpointConnectionsClient.Delete. +// PrivateEndpointConnectionsClientDeleteResponse contains the response from method PrivateEndpointConnectionsClient.BeginDelete. type PrivateEndpointConnectionsClientDeleteResponse struct { // placeholder for future response values } @@ -188,7 +189,7 @@ type PrivateEndpointConnectionsClientGetResponse struct { PrivateEndpointConnection } -// PrivateEndpointConnectionsClientListResponse contains the response from method PrivateEndpointConnectionsClient.List. +// PrivateEndpointConnectionsClientListResponse contains the response from method PrivateEndpointConnectionsClient.NewListPager. type PrivateEndpointConnectionsClientListResponse struct { PrivateEndpointConnectionListResult } @@ -228,12 +229,12 @@ type QueuesClientGetResponse struct { SBQueue } -// QueuesClientListAuthorizationRulesResponse contains the response from method QueuesClient.ListAuthorizationRules. +// QueuesClientListAuthorizationRulesResponse contains the response from method QueuesClient.NewListAuthorizationRulesPager. type QueuesClientListAuthorizationRulesResponse struct { SBAuthorizationRuleListResult } -// QueuesClientListByNamespaceResponse contains the response from method QueuesClient.ListByNamespace. +// QueuesClientListByNamespaceResponse contains the response from method QueuesClient.NewListByNamespacePager. type QueuesClientListByNamespaceResponse struct { SBQueueListResult } @@ -263,7 +264,7 @@ type RulesClientGetResponse struct { Rule } -// RulesClientListBySubscriptionsResponse contains the response from method RulesClient.ListBySubscriptions. +// RulesClientListBySubscriptionsResponse contains the response from method RulesClient.NewListBySubscriptionsPager. type RulesClientListBySubscriptionsResponse struct { RuleListResult } @@ -283,7 +284,7 @@ type SubscriptionsClientGetResponse struct { SBSubscription } -// SubscriptionsClientListByTopicResponse contains the response from method SubscriptionsClient.ListByTopic. +// SubscriptionsClientListByTopicResponse contains the response from method SubscriptionsClient.NewListByTopicPager. type SubscriptionsClientListByTopicResponse struct { SBSubscriptionListResult } @@ -318,12 +319,12 @@ type TopicsClientGetResponse struct { SBTopic } -// TopicsClientListAuthorizationRulesResponse contains the response from method TopicsClient.ListAuthorizationRules. +// TopicsClientListAuthorizationRulesResponse contains the response from method TopicsClient.NewListAuthorizationRulesPager. type TopicsClientListAuthorizationRulesResponse struct { SBAuthorizationRuleListResult } -// TopicsClientListByNamespaceResponse contains the response from method TopicsClient.ListByNamespace. +// TopicsClientListByNamespaceResponse contains the response from method TopicsClient.NewListByNamespacePager. type TopicsClientListByNamespaceResponse struct { SBTopicListResult } diff --git a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_rules_client.go b/sdk/resourcemanager/servicebus/armservicebus/rules_client.go similarity index 86% rename from sdk/resourcemanager/servicebus/armservicebus/zz_generated_rules_client.go rename to sdk/resourcemanager/servicebus/armservicebus/rules_client.go index 2657027e1988..54a21e7e36f0 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_rules_client.go +++ b/sdk/resourcemanager/servicebus/armservicebus/rules_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armservicebus @@ -32,10 +33,10 @@ type RulesClient struct { } // NewRulesClient creates a new instance of RulesClient with the specified values. -// subscriptionID - Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms -// part of the URI for every service call. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms +// part of the URI for every service call. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewRulesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*RulesClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -58,14 +59,15 @@ func NewRulesClient(subscriptionID string, credential azcore.TokenCredential, op // CreateOrUpdate - Creates a new rule and updates an existing rule // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-01-01-preview -// resourceGroupName - Name of the Resource group within the Azure subscription. -// namespaceName - The namespace name -// topicName - The topic name. -// subscriptionName - The subscription name. -// ruleName - The rule name. -// parameters - Parameters supplied to create a rule. -// options - RulesClientCreateOrUpdateOptions contains the optional parameters for the RulesClient.CreateOrUpdate method. +// +// Generated from API version 2022-10-01-preview +// - resourceGroupName - Name of the Resource group within the Azure subscription. +// - namespaceName - The namespace name +// - topicName - The topic name. +// - subscriptionName - The subscription name. +// - ruleName - The rule name. +// - parameters - Parameters supplied to create a rule. +// - options - RulesClientCreateOrUpdateOptions contains the optional parameters for the RulesClient.CreateOrUpdate method. func (client *RulesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, namespaceName string, topicName string, subscriptionName string, ruleName string, parameters Rule, options *RulesClientCreateOrUpdateOptions) (RulesClientCreateOrUpdateResponse, error) { req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, namespaceName, topicName, subscriptionName, ruleName, parameters, options) if err != nil { @@ -113,7 +115,7 @@ func (client *RulesClient) createOrUpdateCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-01-01-preview") + reqQP.Set("api-version", "2022-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, parameters) @@ -130,13 +132,14 @@ func (client *RulesClient) createOrUpdateHandleResponse(resp *http.Response) (Ru // Delete - Deletes an existing rule. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-01-01-preview -// resourceGroupName - Name of the Resource group within the Azure subscription. -// namespaceName - The namespace name -// topicName - The topic name. -// subscriptionName - The subscription name. -// ruleName - The rule name. -// options - RulesClientDeleteOptions contains the optional parameters for the RulesClient.Delete method. +// +// Generated from API version 2022-10-01-preview +// - resourceGroupName - Name of the Resource group within the Azure subscription. +// - namespaceName - The namespace name +// - topicName - The topic name. +// - subscriptionName - The subscription name. +// - ruleName - The rule name. +// - options - RulesClientDeleteOptions contains the optional parameters for the RulesClient.Delete method. func (client *RulesClient) Delete(ctx context.Context, resourceGroupName string, namespaceName string, topicName string, subscriptionName string, ruleName string, options *RulesClientDeleteOptions) (RulesClientDeleteResponse, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, namespaceName, topicName, subscriptionName, ruleName, options) if err != nil { @@ -184,7 +187,7 @@ func (client *RulesClient) deleteCreateRequest(ctx context.Context, resourceGrou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-01-01-preview") + reqQP.Set("api-version", "2022-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -192,13 +195,14 @@ func (client *RulesClient) deleteCreateRequest(ctx context.Context, resourceGrou // Get - Retrieves the description for the specified rule. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-01-01-preview -// resourceGroupName - Name of the Resource group within the Azure subscription. -// namespaceName - The namespace name -// topicName - The topic name. -// subscriptionName - The subscription name. -// ruleName - The rule name. -// options - RulesClientGetOptions contains the optional parameters for the RulesClient.Get method. +// +// Generated from API version 2022-10-01-preview +// - resourceGroupName - Name of the Resource group within the Azure subscription. +// - namespaceName - The namespace name +// - topicName - The topic name. +// - subscriptionName - The subscription name. +// - ruleName - The rule name. +// - options - RulesClientGetOptions contains the optional parameters for the RulesClient.Get method. func (client *RulesClient) Get(ctx context.Context, resourceGroupName string, namespaceName string, topicName string, subscriptionName string, ruleName string, options *RulesClientGetOptions) (RulesClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, namespaceName, topicName, subscriptionName, ruleName, options) if err != nil { @@ -246,7 +250,7 @@ func (client *RulesClient) getCreateRequest(ctx context.Context, resourceGroupNa return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-01-01-preview") + reqQP.Set("api-version", "2022-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -262,14 +266,14 @@ func (client *RulesClient) getHandleResponse(resp *http.Response) (RulesClientGe } // NewListBySubscriptionsPager - List all the rules within given topic-subscription -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-01-01-preview -// resourceGroupName - Name of the Resource group within the Azure subscription. -// namespaceName - The namespace name -// topicName - The topic name. -// subscriptionName - The subscription name. -// options - RulesClientListBySubscriptionsOptions contains the optional parameters for the RulesClient.ListBySubscriptions -// method. +// +// Generated from API version 2022-10-01-preview +// - resourceGroupName - Name of the Resource group within the Azure subscription. +// - namespaceName - The namespace name +// - topicName - The topic name. +// - subscriptionName - The subscription name. +// - options - RulesClientListBySubscriptionsOptions contains the optional parameters for the RulesClient.NewListBySubscriptionsPager +// method. func (client *RulesClient) NewListBySubscriptionsPager(resourceGroupName string, namespaceName string, topicName string, subscriptionName string, options *RulesClientListBySubscriptionsOptions) *runtime.Pager[RulesClientListBySubscriptionsResponse] { return runtime.NewPager(runtime.PagingHandler[RulesClientListBySubscriptionsResponse]{ More: func(page RulesClientListBySubscriptionsResponse) bool { @@ -326,7 +330,7 @@ func (client *RulesClient) listBySubscriptionsCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-01-01-preview") + reqQP.Set("api-version", "2022-10-01-preview") if options != nil && options.Skip != nil { reqQP.Set("$skip", strconv.FormatInt(int64(*options.Skip), 10)) } diff --git a/sdk/resourcemanager/servicebus/armservicebus/rules_client_example_test.go b/sdk/resourcemanager/servicebus/armservicebus/rules_client_example_test.go new file mode 100644 index 000000000000..401af775ae2e --- /dev/null +++ b/sdk/resourcemanager/servicebus/armservicebus/rules_client_example_test.go @@ -0,0 +1,233 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armservicebus_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicebus/armservicebus/v2" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5e24fa8e30bff0cb321494a0b550b1c1282a8a3c/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples/Rules/RuleListBySubscription.json +func ExampleRulesClient_NewListBySubscriptionsPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armservicebus.NewRulesClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListBySubscriptionsPager("ArunMonocle", "sdk-Namespace-1319", "sdk-Topics-2081", "sdk-Subscriptions-8691", &armservicebus.RulesClientListBySubscriptionsOptions{Skip: nil, + Top: nil, + }) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.RuleListResult = armservicebus.RuleListResult{ + // Value: []*armservicebus.Rule{ + // { + // Name: to.Ptr("sdk-Rules-6571"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces/Topics/Subscriptions/Rules"), + // ID: to.Ptr("/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/ArunMonocle/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-1319/topics/sdk-Topics-2081/subscriptions/sdk-Subscriptions-8691/rules/sdk-Rules-6571"), + // Properties: &armservicebus.Ruleproperties{ + // Action: &armservicebus.Action{ + // }, + // FilterType: to.Ptr(armservicebus.FilterTypeSQLFilter), + // SQLFilter: &armservicebus.SQLFilter{ + // CompatibilityLevel: to.Ptr[int32](20), + // SQLExpression: to.Ptr("1=1"), + // }, + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5e24fa8e30bff0cb321494a0b550b1c1282a8a3c/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples/Rules/RuleCreate_CorrelationFilter.json +func ExampleRulesClient_CreateOrUpdate_rulesCreateCorrelationFilter() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armservicebus.NewRulesClient("subscriptionId", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.CreateOrUpdate(ctx, "resourceGroupName", "sdk-Namespace-1319", "sdk-Topics-2081", "sdk-Subscriptions-8691", "sdk-Rules-6571", armservicebus.Rule{ + Properties: &armservicebus.Ruleproperties{ + CorrelationFilter: &armservicebus.CorrelationFilter{ + Properties: map[string]*string{ + "topicHint": to.Ptr("Crop"), + }, + }, + FilterType: to.Ptr(armservicebus.FilterTypeCorrelationFilter), + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.Rule = armservicebus.Rule{ + // Name: to.Ptr("sdk-Rules-6571"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces/Topics/Subscriptions/Rules"), + // ID: to.Ptr("/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-1319/topics/sdk-Topics-2081/subscriptions/sdk-Subscriptions-8691/rules/sdk-Rules-6571"), + // Properties: &armservicebus.Ruleproperties{ + // Action: &armservicebus.Action{ + // }, + // CorrelationFilter: &armservicebus.CorrelationFilter{ + // Properties: map[string]*string{ + // "queueHint": to.Ptr("Crop"), + // }, + // }, + // FilterType: to.Ptr(armservicebus.FilterTypeCorrelationFilter), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5e24fa8e30bff0cb321494a0b550b1c1282a8a3c/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples/Rules/RuleCreate.json +func ExampleRulesClient_CreateOrUpdate_rulesCreateOrUpdate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armservicebus.NewRulesClient("subscriptionId", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.CreateOrUpdate(ctx, "resourceGroupName", "sdk-Namespace-1319", "sdk-Topics-2081", "sdk-Subscriptions-8691", "sdk-Rules-6571", armservicebus.Rule{}, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.Rule = armservicebus.Rule{ + // Name: to.Ptr("sdk-Rules-6571"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces/Topics/Subscriptions/Rules"), + // ID: to.Ptr("/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-1319/topics/sdk-Topics-2081/subscriptions/sdk-Subscriptions-8691/rules/sdk-Rules-6571"), + // Properties: &armservicebus.Ruleproperties{ + // Action: &armservicebus.Action{ + // }, + // FilterType: to.Ptr(armservicebus.FilterTypeSQLFilter), + // SQLFilter: &armservicebus.SQLFilter{ + // CompatibilityLevel: to.Ptr[int32](20), + // SQLExpression: to.Ptr("1=1"), + // }, + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5e24fa8e30bff0cb321494a0b550b1c1282a8a3c/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples/Rules/RuleCreate_SqlFilter.json +func ExampleRulesClient_CreateOrUpdate_rulesCreateSqlFilter() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armservicebus.NewRulesClient("subscriptionId", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.CreateOrUpdate(ctx, "resourceGroupName", "sdk-Namespace-1319", "sdk-Topics-2081", "sdk-Subscriptions-8691", "sdk-Rules-6571", armservicebus.Rule{ + Properties: &armservicebus.Ruleproperties{ + FilterType: to.Ptr(armservicebus.FilterTypeSQLFilter), + SQLFilter: &armservicebus.SQLFilter{ + SQLExpression: to.Ptr("myproperty=test"), + }, + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.Rule = armservicebus.Rule{ + // Name: to.Ptr("sdk-Rules-6571"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces/Topics/Subscriptions/Rules"), + // ID: to.Ptr("/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-1319/topics/sdk-Topics-2081/subscriptions/sdk-Subscriptions-8691/rules/sdk-Rules-6571"), + // Properties: &armservicebus.Ruleproperties{ + // Action: &armservicebus.Action{ + // }, + // FilterType: to.Ptr(armservicebus.FilterTypeSQLFilter), + // SQLFilter: &armservicebus.SQLFilter{ + // CompatibilityLevel: to.Ptr[int32](20), + // SQLExpression: to.Ptr("myproperty=test"), + // }, + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5e24fa8e30bff0cb321494a0b550b1c1282a8a3c/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples/Rules/RuleDelete.json +func ExampleRulesClient_Delete() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armservicebus.NewRulesClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + _, err = client.Delete(ctx, "ArunMonocle", "sdk-Namespace-1319", "sdk-Topics-2081", "sdk-Subscriptions-8691", "sdk-Rules-6571", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5e24fa8e30bff0cb321494a0b550b1c1282a8a3c/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples/Rules/RuleGet.json +func ExampleRulesClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armservicebus.NewRulesClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "ArunMonocle", "sdk-Namespace-1319", "sdk-Topics-2081", "sdk-Subscriptions-8691", "sdk-Rules-6571", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.Rule = armservicebus.Rule{ + // Name: to.Ptr("sdk-Rules-6571"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces/Topics/Subscriptions/Rules"), + // ID: to.Ptr("/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/ArunMonocle/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-1319/topics/sdk-Topics-2081/subscriptions/sdk-Subscriptions-8691/rules/sdk-Rules-6571"), + // Properties: &armservicebus.Ruleproperties{ + // Action: &armservicebus.Action{ + // }, + // FilterType: to.Ptr(armservicebus.FilterTypeSQLFilter), + // SQLFilter: &armservicebus.SQLFilter{ + // CompatibilityLevel: to.Ptr[int32](20), + // SQLExpression: to.Ptr("1=1"), + // }, + // }, + // } +} diff --git a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_subscriptions_client.go b/sdk/resourcemanager/servicebus/armservicebus/subscriptions_client.go similarity index 86% rename from sdk/resourcemanager/servicebus/armservicebus/zz_generated_subscriptions_client.go rename to sdk/resourcemanager/servicebus/armservicebus/subscriptions_client.go index 0e93db69d1d1..ddc529a2c7f9 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_subscriptions_client.go +++ b/sdk/resourcemanager/servicebus/armservicebus/subscriptions_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armservicebus @@ -32,10 +33,10 @@ type SubscriptionsClient struct { } // NewSubscriptionsClient creates a new instance of SubscriptionsClient with the specified values. -// subscriptionID - Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms -// part of the URI for every service call. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms +// part of the URI for every service call. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewSubscriptionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SubscriptionsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -58,14 +59,15 @@ func NewSubscriptionsClient(subscriptionID string, credential azcore.TokenCreden // CreateOrUpdate - Creates a topic subscription. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-01-01-preview -// resourceGroupName - Name of the Resource group within the Azure subscription. -// namespaceName - The namespace name -// topicName - The topic name. -// subscriptionName - The subscription name. -// parameters - Parameters supplied to create a subscription resource. -// options - SubscriptionsClientCreateOrUpdateOptions contains the optional parameters for the SubscriptionsClient.CreateOrUpdate -// method. +// +// Generated from API version 2022-10-01-preview +// - resourceGroupName - Name of the Resource group within the Azure subscription. +// - namespaceName - The namespace name +// - topicName - The topic name. +// - subscriptionName - The subscription name. +// - parameters - Parameters supplied to create a subscription resource. +// - options - SubscriptionsClientCreateOrUpdateOptions contains the optional parameters for the SubscriptionsClient.CreateOrUpdate +// method. func (client *SubscriptionsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, namespaceName string, topicName string, subscriptionName string, parameters SBSubscription, options *SubscriptionsClientCreateOrUpdateOptions) (SubscriptionsClientCreateOrUpdateResponse, error) { req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, namespaceName, topicName, subscriptionName, parameters, options) if err != nil { @@ -109,7 +111,7 @@ func (client *SubscriptionsClient) createOrUpdateCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-01-01-preview") + reqQP.Set("api-version", "2022-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, parameters) @@ -126,12 +128,13 @@ func (client *SubscriptionsClient) createOrUpdateHandleResponse(resp *http.Respo // Delete - Deletes a subscription from the specified topic. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-01-01-preview -// resourceGroupName - Name of the Resource group within the Azure subscription. -// namespaceName - The namespace name -// topicName - The topic name. -// subscriptionName - The subscription name. -// options - SubscriptionsClientDeleteOptions contains the optional parameters for the SubscriptionsClient.Delete method. +// +// Generated from API version 2022-10-01-preview +// - resourceGroupName - Name of the Resource group within the Azure subscription. +// - namespaceName - The namespace name +// - topicName - The topic name. +// - subscriptionName - The subscription name. +// - options - SubscriptionsClientDeleteOptions contains the optional parameters for the SubscriptionsClient.Delete method. func (client *SubscriptionsClient) Delete(ctx context.Context, resourceGroupName string, namespaceName string, topicName string, subscriptionName string, options *SubscriptionsClientDeleteOptions) (SubscriptionsClientDeleteResponse, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, namespaceName, topicName, subscriptionName, options) if err != nil { @@ -175,7 +178,7 @@ func (client *SubscriptionsClient) deleteCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-01-01-preview") + reqQP.Set("api-version", "2022-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -183,12 +186,13 @@ func (client *SubscriptionsClient) deleteCreateRequest(ctx context.Context, reso // Get - Returns a subscription description for the specified topic. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-01-01-preview -// resourceGroupName - Name of the Resource group within the Azure subscription. -// namespaceName - The namespace name -// topicName - The topic name. -// subscriptionName - The subscription name. -// options - SubscriptionsClientGetOptions contains the optional parameters for the SubscriptionsClient.Get method. +// +// Generated from API version 2022-10-01-preview +// - resourceGroupName - Name of the Resource group within the Azure subscription. +// - namespaceName - The namespace name +// - topicName - The topic name. +// - subscriptionName - The subscription name. +// - options - SubscriptionsClientGetOptions contains the optional parameters for the SubscriptionsClient.Get method. func (client *SubscriptionsClient) Get(ctx context.Context, resourceGroupName string, namespaceName string, topicName string, subscriptionName string, options *SubscriptionsClientGetOptions) (SubscriptionsClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, namespaceName, topicName, subscriptionName, options) if err != nil { @@ -232,7 +236,7 @@ func (client *SubscriptionsClient) getCreateRequest(ctx context.Context, resourc return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-01-01-preview") + reqQP.Set("api-version", "2022-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -248,13 +252,13 @@ func (client *SubscriptionsClient) getHandleResponse(resp *http.Response) (Subsc } // NewListByTopicPager - List all the subscriptions under a specified topic. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-01-01-preview -// resourceGroupName - Name of the Resource group within the Azure subscription. -// namespaceName - The namespace name -// topicName - The topic name. -// options - SubscriptionsClientListByTopicOptions contains the optional parameters for the SubscriptionsClient.ListByTopic -// method. +// +// Generated from API version 2022-10-01-preview +// - resourceGroupName - Name of the Resource group within the Azure subscription. +// - namespaceName - The namespace name +// - topicName - The topic name. +// - options - SubscriptionsClientListByTopicOptions contains the optional parameters for the SubscriptionsClient.NewListByTopicPager +// method. func (client *SubscriptionsClient) NewListByTopicPager(resourceGroupName string, namespaceName string, topicName string, options *SubscriptionsClientListByTopicOptions) *runtime.Pager[SubscriptionsClientListByTopicResponse] { return runtime.NewPager(runtime.PagingHandler[SubscriptionsClientListByTopicResponse]{ More: func(page SubscriptionsClientListByTopicResponse) bool { @@ -307,7 +311,7 @@ func (client *SubscriptionsClient) listByTopicCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-01-01-preview") + reqQP.Set("api-version", "2022-10-01-preview") if options != nil && options.Skip != nil { reqQP.Set("$skip", strconv.FormatInt(int64(*options.Skip), 10)) } diff --git a/sdk/resourcemanager/servicebus/armservicebus/subscriptions_client_example_test.go b/sdk/resourcemanager/servicebus/armservicebus/subscriptions_client_example_test.go new file mode 100644 index 000000000000..7736cf3fe74b --- /dev/null +++ b/sdk/resourcemanager/servicebus/armservicebus/subscriptions_client_example_test.go @@ -0,0 +1,197 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armservicebus_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicebus/armservicebus/v2" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5e24fa8e30bff0cb321494a0b550b1c1282a8a3c/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples/Subscriptions/SBSubscriptionListByTopic.json +func ExampleSubscriptionsClient_NewListByTopicPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armservicebus.NewSubscriptionsClient("5{Subscriptionid}", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListByTopicPager("ResourceGroup", "sdk-Namespace-1349", "sdk-Topics-8740", &armservicebus.SubscriptionsClientListByTopicOptions{Skip: nil, + Top: nil, + }) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.SBSubscriptionListResult = armservicebus.SBSubscriptionListResult{ + // Value: []*armservicebus.SBSubscription{ + // { + // Name: to.Ptr("sdk-Subscriptions-2178"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces/Topics/Subscriptions"), + // ID: to.Ptr("/subscriptions/Subscriptionid/resourceGroups/ResourceGroup/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-1349/topics/sdk-Topics-8740/subscriptions/sdk-Subscriptions-2178"), + // Properties: &armservicebus.SBSubscriptionProperties{ + // AccessedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-01-04T18:02:20.5992764Z"); return t}()), + // AutoDeleteOnIdle: to.Ptr("P10675199DT2H48M5.4775807S"), + // CountDetails: &armservicebus.MessageCountDetails{ + // ActiveMessageCount: to.Ptr[int64](0), + // DeadLetterMessageCount: to.Ptr[int64](0), + // ScheduledMessageCount: to.Ptr[int64](0), + // TransferDeadLetterMessageCount: to.Ptr[int64](0), + // TransferMessageCount: to.Ptr[int64](0), + // }, + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-01-04T18:02:20.5992764Z"); return t}()), + // DeadLetteringOnFilterEvaluationExceptions: to.Ptr(true), + // DeadLetteringOnMessageExpiration: to.Ptr(true), + // DefaultMessageTimeToLive: to.Ptr("P10675199DT2H48M5.4775807S"), + // EnableBatchedOperations: to.Ptr(true), + // ForwardDeadLetteredMessagesTo: to.Ptr("sdk-Topics-3065"), + // ForwardTo: to.Ptr("sdk-Topics-3065"), + // LockDuration: to.Ptr("PT1M"), + // MaxDeliveryCount: to.Ptr[int32](10), + // MessageCount: to.Ptr[int64](0), + // RequiresSession: to.Ptr(false), + // Status: to.Ptr(armservicebus.EntityStatusActive), + // UpdatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-01-04T18:02:20.5992764Z"); return t}()), + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5e24fa8e30bff0cb321494a0b550b1c1282a8a3c/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples/Subscriptions/SBSubscriptionCreate.json +func ExampleSubscriptionsClient_CreateOrUpdate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armservicebus.NewSubscriptionsClient("Subscriptionid", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.CreateOrUpdate(ctx, "ResourceGroup", "sdk-Namespace-1349", "sdk-Topics-8740", "sdk-Subscriptions-2178", armservicebus.SBSubscription{ + Properties: &armservicebus.SBSubscriptionProperties{ + EnableBatchedOperations: to.Ptr(true), + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.SBSubscription = armservicebus.SBSubscription{ + // Name: to.Ptr("sdk-Subscriptions-2178"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces/Topics/Subscriptions"), + // ID: to.Ptr("/subscriptions/Subscriptionid/resourceGroups/ResourceGroup/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-1349/topics/sdk-Topics-8740/subscriptions/sdk-Subscriptions-2178"), + // Properties: &armservicebus.SBSubscriptionProperties{ + // AccessedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-01-04T18:02:20.5992764Z"); return t}()), + // AutoDeleteOnIdle: to.Ptr("P10675199DT2H48M5.4775807S"), + // CountDetails: &armservicebus.MessageCountDetails{ + // ActiveMessageCount: to.Ptr[int64](0), + // DeadLetterMessageCount: to.Ptr[int64](0), + // ScheduledMessageCount: to.Ptr[int64](0), + // TransferDeadLetterMessageCount: to.Ptr[int64](0), + // TransferMessageCount: to.Ptr[int64](0), + // }, + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-01-04T18:02:20.5992764Z"); return t}()), + // DeadLetteringOnFilterEvaluationExceptions: to.Ptr(true), + // DeadLetteringOnMessageExpiration: to.Ptr(true), + // DefaultMessageTimeToLive: to.Ptr("P10675199DT2H48M5.4775807S"), + // EnableBatchedOperations: to.Ptr(true), + // ForwardDeadLetteredMessagesTo: to.Ptr("sdk-Topics-3065"), + // ForwardTo: to.Ptr("sdk-Topics-3065"), + // LockDuration: to.Ptr("PT1M"), + // MaxDeliveryCount: to.Ptr[int32](10), + // MessageCount: to.Ptr[int64](0), + // RequiresSession: to.Ptr(false), + // Status: to.Ptr(armservicebus.EntityStatusActive), + // UpdatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-01-04T18:02:20.5992764Z"); return t}()), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5e24fa8e30bff0cb321494a0b550b1c1282a8a3c/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples/Subscriptions/SBSubscriptionDelete.json +func ExampleSubscriptionsClient_Delete() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armservicebus.NewSubscriptionsClient("subscriptionId", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + _, err = client.Delete(ctx, "ResourceGroup", "sdk-Namespace-5882", "sdk-Topics-1804", "sdk-Subscriptions-3670", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5e24fa8e30bff0cb321494a0b550b1c1282a8a3c/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples/Subscriptions/SBSubscriptionGet.json +func ExampleSubscriptionsClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armservicebus.NewSubscriptionsClient("Subscriptionid", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "ResourceGroup", "sdk-Namespace-1349", "sdk-Topics-8740", "sdk-Subscriptions-2178", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.SBSubscription = armservicebus.SBSubscription{ + // Name: to.Ptr("sdk-Subscriptions-2178"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces/Topics/Subscriptions"), + // ID: to.Ptr("/subscriptions/Subscriptionid/resourceGroups/ResourceGroup/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-1349/topics/sdk-Topics-8740/subscriptions/sdk-Subscriptions-2178"), + // Properties: &armservicebus.SBSubscriptionProperties{ + // AccessedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-01-04T18:02:20.5992764Z"); return t}()), + // AutoDeleteOnIdle: to.Ptr("P10675199DT2H48M5.4775807S"), + // CountDetails: &armservicebus.MessageCountDetails{ + // ActiveMessageCount: to.Ptr[int64](0), + // DeadLetterMessageCount: to.Ptr[int64](0), + // ScheduledMessageCount: to.Ptr[int64](0), + // TransferDeadLetterMessageCount: to.Ptr[int64](0), + // TransferMessageCount: to.Ptr[int64](0), + // }, + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-01-04T18:02:20.5992764Z"); return t}()), + // DeadLetteringOnFilterEvaluationExceptions: to.Ptr(true), + // DeadLetteringOnMessageExpiration: to.Ptr(true), + // DefaultMessageTimeToLive: to.Ptr("P10675199DT2H48M5.4775807S"), + // EnableBatchedOperations: to.Ptr(true), + // ForwardDeadLetteredMessagesTo: to.Ptr("sdk-Topics-3065"), + // ForwardTo: to.Ptr("sdk-Topics-3065"), + // LockDuration: to.Ptr("PT1M"), + // MaxDeliveryCount: to.Ptr[int32](10), + // MessageCount: to.Ptr[int64](0), + // RequiresSession: to.Ptr(false), + // Status: to.Ptr(armservicebus.EntityStatusActive), + // UpdatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-01-04T18:02:20.5992764Z"); return t}()), + // }, + // } +} diff --git a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_time_rfc3339.go b/sdk/resourcemanager/servicebus/armservicebus/time_rfc3339.go similarity index 96% rename from sdk/resourcemanager/servicebus/armservicebus/zz_generated_time_rfc3339.go rename to sdk/resourcemanager/servicebus/armservicebus/time_rfc3339.go index 42470250449b..ee207f208f99 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_time_rfc3339.go +++ b/sdk/resourcemanager/servicebus/armservicebus/time_rfc3339.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armservicebus @@ -61,7 +62,7 @@ func (t *timeRFC3339) Parse(layout, value string) error { return err } -func populateTimeRFC3339(m map[string]interface{}, k string, t *time.Time) { +func populateTimeRFC3339(m map[string]any, k string, t *time.Time) { if t == nil { return } else if azcore.IsNullValue(t) { diff --git a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_topics_client.go b/sdk/resourcemanager/servicebus/armservicebus/topics_client.go similarity index 86% rename from sdk/resourcemanager/servicebus/armservicebus/zz_generated_topics_client.go rename to sdk/resourcemanager/servicebus/armservicebus/topics_client.go index 4a4e12f585ec..c0152437d7dc 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_topics_client.go +++ b/sdk/resourcemanager/servicebus/armservicebus/topics_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armservicebus @@ -32,10 +33,10 @@ type TopicsClient struct { } // NewTopicsClient creates a new instance of TopicsClient with the specified values. -// subscriptionID - Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms -// part of the URI for every service call. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms +// part of the URI for every service call. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewTopicsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*TopicsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -58,12 +59,13 @@ func NewTopicsClient(subscriptionID string, credential azcore.TokenCredential, o // CreateOrUpdate - Creates a topic in the specified namespace. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-01-01-preview -// resourceGroupName - Name of the Resource group within the Azure subscription. -// namespaceName - The namespace name -// topicName - The topic name. -// parameters - Parameters supplied to create a topic resource. -// options - TopicsClientCreateOrUpdateOptions contains the optional parameters for the TopicsClient.CreateOrUpdate method. +// +// Generated from API version 2022-10-01-preview +// - resourceGroupName - Name of the Resource group within the Azure subscription. +// - namespaceName - The namespace name +// - topicName - The topic name. +// - parameters - Parameters supplied to create a topic resource. +// - options - TopicsClientCreateOrUpdateOptions contains the optional parameters for the TopicsClient.CreateOrUpdate method. func (client *TopicsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, namespaceName string, topicName string, parameters SBTopic, options *TopicsClientCreateOrUpdateOptions) (TopicsClientCreateOrUpdateResponse, error) { req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, namespaceName, topicName, parameters, options) if err != nil { @@ -103,7 +105,7 @@ func (client *TopicsClient) createOrUpdateCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-01-01-preview") + reqQP.Set("api-version", "2022-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, parameters) @@ -120,14 +122,15 @@ func (client *TopicsClient) createOrUpdateHandleResponse(resp *http.Response) (T // CreateOrUpdateAuthorizationRule - Creates an authorization rule for the specified topic. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-01-01-preview -// resourceGroupName - Name of the Resource group within the Azure subscription. -// namespaceName - The namespace name -// topicName - The topic name. -// authorizationRuleName - The authorization rule name. -// parameters - The shared access authorization rule. -// options - TopicsClientCreateOrUpdateAuthorizationRuleOptions contains the optional parameters for the TopicsClient.CreateOrUpdateAuthorizationRule -// method. +// +// Generated from API version 2022-10-01-preview +// - resourceGroupName - Name of the Resource group within the Azure subscription. +// - namespaceName - The namespace name +// - topicName - The topic name. +// - authorizationRuleName - The authorization rule name. +// - parameters - The shared access authorization rule. +// - options - TopicsClientCreateOrUpdateAuthorizationRuleOptions contains the optional parameters for the TopicsClient.CreateOrUpdateAuthorizationRule +// method. func (client *TopicsClient) CreateOrUpdateAuthorizationRule(ctx context.Context, resourceGroupName string, namespaceName string, topicName string, authorizationRuleName string, parameters SBAuthorizationRule, options *TopicsClientCreateOrUpdateAuthorizationRuleOptions) (TopicsClientCreateOrUpdateAuthorizationRuleResponse, error) { req, err := client.createOrUpdateAuthorizationRuleCreateRequest(ctx, resourceGroupName, namespaceName, topicName, authorizationRuleName, parameters, options) if err != nil { @@ -171,7 +174,7 @@ func (client *TopicsClient) createOrUpdateAuthorizationRuleCreateRequest(ctx con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-01-01-preview") + reqQP.Set("api-version", "2022-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, parameters) @@ -188,11 +191,12 @@ func (client *TopicsClient) createOrUpdateAuthorizationRuleHandleResponse(resp * // Delete - Deletes a topic from the specified namespace and resource group. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-01-01-preview -// resourceGroupName - Name of the Resource group within the Azure subscription. -// namespaceName - The namespace name -// topicName - The topic name. -// options - TopicsClientDeleteOptions contains the optional parameters for the TopicsClient.Delete method. +// +// Generated from API version 2022-10-01-preview +// - resourceGroupName - Name of the Resource group within the Azure subscription. +// - namespaceName - The namespace name +// - topicName - The topic name. +// - options - TopicsClientDeleteOptions contains the optional parameters for the TopicsClient.Delete method. func (client *TopicsClient) Delete(ctx context.Context, resourceGroupName string, namespaceName string, topicName string, options *TopicsClientDeleteOptions) (TopicsClientDeleteResponse, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, namespaceName, topicName, options) if err != nil { @@ -232,7 +236,7 @@ func (client *TopicsClient) deleteCreateRequest(ctx context.Context, resourceGro return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-01-01-preview") + reqQP.Set("api-version", "2022-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -240,13 +244,14 @@ func (client *TopicsClient) deleteCreateRequest(ctx context.Context, resourceGro // DeleteAuthorizationRule - Deletes a topic authorization rule. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-01-01-preview -// resourceGroupName - Name of the Resource group within the Azure subscription. -// namespaceName - The namespace name -// topicName - The topic name. -// authorizationRuleName - The authorization rule name. -// options - TopicsClientDeleteAuthorizationRuleOptions contains the optional parameters for the TopicsClient.DeleteAuthorizationRule -// method. +// +// Generated from API version 2022-10-01-preview +// - resourceGroupName - Name of the Resource group within the Azure subscription. +// - namespaceName - The namespace name +// - topicName - The topic name. +// - authorizationRuleName - The authorization rule name. +// - options - TopicsClientDeleteAuthorizationRuleOptions contains the optional parameters for the TopicsClient.DeleteAuthorizationRule +// method. func (client *TopicsClient) DeleteAuthorizationRule(ctx context.Context, resourceGroupName string, namespaceName string, topicName string, authorizationRuleName string, options *TopicsClientDeleteAuthorizationRuleOptions) (TopicsClientDeleteAuthorizationRuleResponse, error) { req, err := client.deleteAuthorizationRuleCreateRequest(ctx, resourceGroupName, namespaceName, topicName, authorizationRuleName, options) if err != nil { @@ -290,7 +295,7 @@ func (client *TopicsClient) deleteAuthorizationRuleCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-01-01-preview") + reqQP.Set("api-version", "2022-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -298,11 +303,12 @@ func (client *TopicsClient) deleteAuthorizationRuleCreateRequest(ctx context.Con // Get - Returns a description for the specified topic. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-01-01-preview -// resourceGroupName - Name of the Resource group within the Azure subscription. -// namespaceName - The namespace name -// topicName - The topic name. -// options - TopicsClientGetOptions contains the optional parameters for the TopicsClient.Get method. +// +// Generated from API version 2022-10-01-preview +// - resourceGroupName - Name of the Resource group within the Azure subscription. +// - namespaceName - The namespace name +// - topicName - The topic name. +// - options - TopicsClientGetOptions contains the optional parameters for the TopicsClient.Get method. func (client *TopicsClient) Get(ctx context.Context, resourceGroupName string, namespaceName string, topicName string, options *TopicsClientGetOptions) (TopicsClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, namespaceName, topicName, options) if err != nil { @@ -342,7 +348,7 @@ func (client *TopicsClient) getCreateRequest(ctx context.Context, resourceGroupN return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-01-01-preview") + reqQP.Set("api-version", "2022-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -359,13 +365,14 @@ func (client *TopicsClient) getHandleResponse(resp *http.Response) (TopicsClient // GetAuthorizationRule - Returns the specified authorization rule. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-01-01-preview -// resourceGroupName - Name of the Resource group within the Azure subscription. -// namespaceName - The namespace name -// topicName - The topic name. -// authorizationRuleName - The authorization rule name. -// options - TopicsClientGetAuthorizationRuleOptions contains the optional parameters for the TopicsClient.GetAuthorizationRule -// method. +// +// Generated from API version 2022-10-01-preview +// - resourceGroupName - Name of the Resource group within the Azure subscription. +// - namespaceName - The namespace name +// - topicName - The topic name. +// - authorizationRuleName - The authorization rule name. +// - options - TopicsClientGetAuthorizationRuleOptions contains the optional parameters for the TopicsClient.GetAuthorizationRule +// method. func (client *TopicsClient) GetAuthorizationRule(ctx context.Context, resourceGroupName string, namespaceName string, topicName string, authorizationRuleName string, options *TopicsClientGetAuthorizationRuleOptions) (TopicsClientGetAuthorizationRuleResponse, error) { req, err := client.getAuthorizationRuleCreateRequest(ctx, resourceGroupName, namespaceName, topicName, authorizationRuleName, options) if err != nil { @@ -409,7 +416,7 @@ func (client *TopicsClient) getAuthorizationRuleCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-01-01-preview") + reqQP.Set("api-version", "2022-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -425,13 +432,13 @@ func (client *TopicsClient) getAuthorizationRuleHandleResponse(resp *http.Respon } // NewListAuthorizationRulesPager - Gets authorization rules for a topic. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-01-01-preview -// resourceGroupName - Name of the Resource group within the Azure subscription. -// namespaceName - The namespace name -// topicName - The topic name. -// options - TopicsClientListAuthorizationRulesOptions contains the optional parameters for the TopicsClient.ListAuthorizationRules -// method. +// +// Generated from API version 2022-10-01-preview +// - resourceGroupName - Name of the Resource group within the Azure subscription. +// - namespaceName - The namespace name +// - topicName - The topic name. +// - options - TopicsClientListAuthorizationRulesOptions contains the optional parameters for the TopicsClient.NewListAuthorizationRulesPager +// method. func (client *TopicsClient) NewListAuthorizationRulesPager(resourceGroupName string, namespaceName string, topicName string, options *TopicsClientListAuthorizationRulesOptions) *runtime.Pager[TopicsClientListAuthorizationRulesResponse] { return runtime.NewPager(runtime.PagingHandler[TopicsClientListAuthorizationRulesResponse]{ More: func(page TopicsClientListAuthorizationRulesResponse) bool { @@ -484,7 +491,7 @@ func (client *TopicsClient) listAuthorizationRulesCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-01-01-preview") + reqQP.Set("api-version", "2022-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -500,11 +507,12 @@ func (client *TopicsClient) listAuthorizationRulesHandleResponse(resp *http.Resp } // NewListByNamespacePager - Gets all the topics in a namespace. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-01-01-preview -// resourceGroupName - Name of the Resource group within the Azure subscription. -// namespaceName - The namespace name -// options - TopicsClientListByNamespaceOptions contains the optional parameters for the TopicsClient.ListByNamespace method. +// +// Generated from API version 2022-10-01-preview +// - resourceGroupName - Name of the Resource group within the Azure subscription. +// - namespaceName - The namespace name +// - options - TopicsClientListByNamespaceOptions contains the optional parameters for the TopicsClient.NewListByNamespacePager +// method. func (client *TopicsClient) NewListByNamespacePager(resourceGroupName string, namespaceName string, options *TopicsClientListByNamespaceOptions) *runtime.Pager[TopicsClientListByNamespaceResponse] { return runtime.NewPager(runtime.PagingHandler[TopicsClientListByNamespaceResponse]{ More: func(page TopicsClientListByNamespaceResponse) bool { @@ -553,7 +561,7 @@ func (client *TopicsClient) listByNamespaceCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-01-01-preview") + reqQP.Set("api-version", "2022-10-01-preview") if options != nil && options.Skip != nil { reqQP.Set("$skip", strconv.FormatInt(int64(*options.Skip), 10)) } @@ -576,12 +584,13 @@ func (client *TopicsClient) listByNamespaceHandleResponse(resp *http.Response) ( // ListKeys - Gets the primary and secondary connection strings for the topic. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-01-01-preview -// resourceGroupName - Name of the Resource group within the Azure subscription. -// namespaceName - The namespace name -// topicName - The topic name. -// authorizationRuleName - The authorization rule name. -// options - TopicsClientListKeysOptions contains the optional parameters for the TopicsClient.ListKeys method. +// +// Generated from API version 2022-10-01-preview +// - resourceGroupName - Name of the Resource group within the Azure subscription. +// - namespaceName - The namespace name +// - topicName - The topic name. +// - authorizationRuleName - The authorization rule name. +// - options - TopicsClientListKeysOptions contains the optional parameters for the TopicsClient.ListKeys method. func (client *TopicsClient) ListKeys(ctx context.Context, resourceGroupName string, namespaceName string, topicName string, authorizationRuleName string, options *TopicsClientListKeysOptions) (TopicsClientListKeysResponse, error) { req, err := client.listKeysCreateRequest(ctx, resourceGroupName, namespaceName, topicName, authorizationRuleName, options) if err != nil { @@ -625,7 +634,7 @@ func (client *TopicsClient) listKeysCreateRequest(ctx context.Context, resourceG return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-01-01-preview") + reqQP.Set("api-version", "2022-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -642,13 +651,14 @@ func (client *TopicsClient) listKeysHandleResponse(resp *http.Response) (TopicsC // RegenerateKeys - Regenerates primary or secondary connection strings for the topic. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-01-01-preview -// resourceGroupName - Name of the Resource group within the Azure subscription. -// namespaceName - The namespace name -// topicName - The topic name. -// authorizationRuleName - The authorization rule name. -// parameters - Parameters supplied to regenerate the authorization rule. -// options - TopicsClientRegenerateKeysOptions contains the optional parameters for the TopicsClient.RegenerateKeys method. +// +// Generated from API version 2022-10-01-preview +// - resourceGroupName - Name of the Resource group within the Azure subscription. +// - namespaceName - The namespace name +// - topicName - The topic name. +// - authorizationRuleName - The authorization rule name. +// - parameters - Parameters supplied to regenerate the authorization rule. +// - options - TopicsClientRegenerateKeysOptions contains the optional parameters for the TopicsClient.RegenerateKeys method. func (client *TopicsClient) RegenerateKeys(ctx context.Context, resourceGroupName string, namespaceName string, topicName string, authorizationRuleName string, parameters RegenerateAccessKeyParameters, options *TopicsClientRegenerateKeysOptions) (TopicsClientRegenerateKeysResponse, error) { req, err := client.regenerateKeysCreateRequest(ctx, resourceGroupName, namespaceName, topicName, authorizationRuleName, parameters, options) if err != nil { @@ -692,7 +702,7 @@ func (client *TopicsClient) regenerateKeysCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-01-01-preview") + reqQP.Set("api-version", "2022-10-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, parameters) diff --git a/sdk/resourcemanager/servicebus/armservicebus/topics_client_example_test.go b/sdk/resourcemanager/servicebus/armservicebus/topics_client_example_test.go new file mode 100644 index 000000000000..9100cf97d72b --- /dev/null +++ b/sdk/resourcemanager/servicebus/armservicebus/topics_client_example_test.go @@ -0,0 +1,356 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armservicebus_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicebus/armservicebus/v2" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5e24fa8e30bff0cb321494a0b550b1c1282a8a3c/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples/Topics/SBTopicAuthorizationRuleListAll.json +func ExampleTopicsClient_NewListAuthorizationRulesPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armservicebus.NewTopicsClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListAuthorizationRulesPager("ArunMonocle", "sdk-Namespace-6261", "sdk-Topics-1984", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.SBAuthorizationRuleListResult = armservicebus.SBAuthorizationRuleListResult{ + // Value: []*armservicebus.SBAuthorizationRule{ + // { + // Name: to.Ptr("sdk-AuthRules-4310"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces/Topics/AuthorizationRules"), + // ID: to.Ptr("/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/ArunMonocle/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-6261/topics/sdk-Topics-1984/authorizationRules/sdk-AuthRules-4310"), + // Properties: &armservicebus.SBAuthorizationRuleProperties{ + // Rights: []*armservicebus.AccessRights{ + // to.Ptr(armservicebus.AccessRightsListen), + // to.Ptr(armservicebus.AccessRightsSend)}, + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5e24fa8e30bff0cb321494a0b550b1c1282a8a3c/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples/Topics/SBTopicAuthorizationRuleCreate.json +func ExampleTopicsClient_CreateOrUpdateAuthorizationRule() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armservicebus.NewTopicsClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.CreateOrUpdateAuthorizationRule(ctx, "ArunMonocle", "sdk-Namespace-6261", "sdk-Topics-1984", "sdk-AuthRules-4310", armservicebus.SBAuthorizationRule{ + Properties: &armservicebus.SBAuthorizationRuleProperties{ + Rights: []*armservicebus.AccessRights{ + to.Ptr(armservicebus.AccessRightsListen), + to.Ptr(armservicebus.AccessRightsSend)}, + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.SBAuthorizationRule = armservicebus.SBAuthorizationRule{ + // Name: to.Ptr("sdk-AuthRules-4310"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces/Topics/AuthorizationRules"), + // ID: to.Ptr("/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/ArunMonocle/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-6261/topics/sdk-Topics-1984/authorizationRules/sdk-AuthRules-4310"), + // Properties: &armservicebus.SBAuthorizationRuleProperties{ + // Rights: []*armservicebus.AccessRights{ + // to.Ptr(armservicebus.AccessRightsListen), + // to.Ptr(armservicebus.AccessRightsSend)}, + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5e24fa8e30bff0cb321494a0b550b1c1282a8a3c/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples/Topics/SBTopicAuthorizationRuleGet.json +func ExampleTopicsClient_GetAuthorizationRule() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armservicebus.NewTopicsClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.GetAuthorizationRule(ctx, "ArunMonocle", "sdk-Namespace-6261", "sdk-Topics-1984", "sdk-AuthRules-4310", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.SBAuthorizationRule = armservicebus.SBAuthorizationRule{ + // Name: to.Ptr("sdk-AuthRules-4310"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces/Topics/AuthorizationRules"), + // ID: to.Ptr("/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/ArunMonocle/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-6261/topics/sdk-Topics-1984/authorizationRules/sdk-AuthRules-4310"), + // Properties: &armservicebus.SBAuthorizationRuleProperties{ + // Rights: []*armservicebus.AccessRights{ + // to.Ptr(armservicebus.AccessRightsListen), + // to.Ptr(armservicebus.AccessRightsSend)}, + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5e24fa8e30bff0cb321494a0b550b1c1282a8a3c/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples/Topics/SBTopicAuthorizationRuleDelete.json +func ExampleTopicsClient_DeleteAuthorizationRule() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armservicebus.NewTopicsClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + _, err = client.DeleteAuthorizationRule(ctx, "ArunMonocle", "sdk-Namespace-6261", "sdk-Topics-1984", "sdk-AuthRules-4310", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5e24fa8e30bff0cb321494a0b550b1c1282a8a3c/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples/Topics/SBTopicAuthorizationRuleListKey.json +func ExampleTopicsClient_ListKeys() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armservicebus.NewTopicsClient("e2f361f0-3b27-4503-a9cc-21cfba380093", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.ListKeys(ctx, "Default-ServiceBus-WestUS", "sdk-Namespace8408", "sdk-Topics2075", "sdk-Authrules5067", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.AccessKeys = armservicebus.AccessKeys{ + // KeyName: to.Ptr("sdk-AuthRules-4310"), + // PrimaryConnectionString: to.Ptr("Endpoint=sb://sdk-namespace-6261.servicebus.windows-int.net/;SharedAccessKeyName=sdk-AuthRules-4310;SharedAccessKey=#############################################;EntityPath=sdk-Topics-1984"), + // PrimaryKey: to.Ptr("#############################################"), + // SecondaryConnectionString: to.Ptr("Endpoint=sb://sdk-namespace-6261.servicebus.windows-int.net/;SharedAccessKeyName=sdk-AuthRules-4310;SharedAccessKey=#############################################;EntityPath=sdk-Topics-1984"), + // SecondaryKey: to.Ptr("#############################################"), + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5e24fa8e30bff0cb321494a0b550b1c1282a8a3c/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples/Topics/SBTopicAuthorizationRuleRegenerateKey.json +func ExampleTopicsClient_RegenerateKeys() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armservicebus.NewTopicsClient("e2f361f0-3b27-4503-a9cc-21cfba380093", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.RegenerateKeys(ctx, "Default-ServiceBus-WestUS", "sdk-Namespace8408", "sdk-Topics2075", "sdk-Authrules5067", armservicebus.RegenerateAccessKeyParameters{ + KeyType: to.Ptr(armservicebus.KeyTypePrimaryKey), + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.AccessKeys = armservicebus.AccessKeys{ + // KeyName: to.Ptr("sdk-AuthRules-4310"), + // PrimaryConnectionString: to.Ptr("Endpoint=sb://sdk-namespace-6261.servicebus.windows-int.net/;SharedAccessKeyName=sdk-AuthRules-4310;SharedAccessKey=#############################################;EntityPath=sdk-Topics-1984"), + // PrimaryKey: to.Ptr("#############################################"), + // SecondaryConnectionString: to.Ptr("Endpoint=sb://sdk-namespace-6261.servicebus.windows-int.net/;SharedAccessKeyName=sdk-AuthRules-4310;SharedAccessKey=#############################################;EntityPath=sdk-Topics-1984"), + // SecondaryKey: to.Ptr("#############################################"), + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5e24fa8e30bff0cb321494a0b550b1c1282a8a3c/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples/Topics/SBTopicListByNameSpace.json +func ExampleTopicsClient_NewListByNamespacePager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armservicebus.NewTopicsClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListByNamespacePager("Default-ServiceBus-WestUS", "sdk-Namespace-1617", &armservicebus.TopicsClientListByNamespaceOptions{Skip: nil, + Top: nil, + }) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.SBTopicListResult = armservicebus.SBTopicListResult{ + // Value: []*armservicebus.SBTopic{ + // { + // Name: to.Ptr("sdk-topics-5488"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces/Topics"), + // ID: to.Ptr("/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/ArunMonocle/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-1617/topics/sdk-topics-5488"), + // Properties: &armservicebus.SBTopicProperties{ + // AccessedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "0001-01-01T00:00:00Z"); return t}()), + // AutoDeleteOnIdle: to.Ptr("P10675199DT2H48M5.4775807S"), + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-05-26T20:50:31.4442694Z"); return t}()), + // DefaultMessageTimeToLive: to.Ptr("P10675199DT2H48M5.4775807S"), + // DuplicateDetectionHistoryTimeWindow: to.Ptr("PT10M"), + // EnableBatchedOperations: to.Ptr(true), + // EnableExpress: to.Ptr(true), + // EnablePartitioning: to.Ptr(false), + // MaxMessageSizeInKilobytes: to.Ptr[int64](10240), + // MaxSizeInMegabytes: to.Ptr[int32](10240), + // RequiresDuplicateDetection: to.Ptr(false), + // SizeInBytes: to.Ptr[int64](0), + // Status: to.Ptr(armservicebus.EntityStatusActive), + // SubscriptionCount: to.Ptr[int32](0), + // SupportOrdering: to.Ptr(true), + // UpdatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-05-26T20:52:32.2092264Z"); return t}()), + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5e24fa8e30bff0cb321494a0b550b1c1282a8a3c/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples/Topics/SBTopicCreate.json +func ExampleTopicsClient_CreateOrUpdate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armservicebus.NewTopicsClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.CreateOrUpdate(ctx, "ArunMonocle", "sdk-Namespace-1617", "sdk-Topics-5488", armservicebus.SBTopic{ + Properties: &armservicebus.SBTopicProperties{ + EnableExpress: to.Ptr(true), + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.SBTopic = armservicebus.SBTopic{ + // Name: to.Ptr("sdk-Topics-5488"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces/Topics"), + // ID: to.Ptr("/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/ArunMonocle/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-1617/topics/sdk-Topics-5488"), + // Properties: &armservicebus.SBTopicProperties{ + // AccessedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-05-26T20:50:34.32Z"); return t}()), + // AutoDeleteOnIdle: to.Ptr("P10675199DT2H48M5.4775807S"), + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-05-26T20:50:34.1Z"); return t}()), + // DefaultMessageTimeToLive: to.Ptr("P10675199DT2H48M5.4775807S"), + // DuplicateDetectionHistoryTimeWindow: to.Ptr("PT10M"), + // EnableBatchedOperations: to.Ptr(true), + // EnableExpress: to.Ptr(true), + // EnablePartitioning: to.Ptr(false), + // MaxMessageSizeInKilobytes: to.Ptr[int64](10240), + // MaxSizeInMegabytes: to.Ptr[int32](10240), + // RequiresDuplicateDetection: to.Ptr(false), + // SizeInBytes: to.Ptr[int64](0), + // Status: to.Ptr(armservicebus.EntityStatusActive), + // SubscriptionCount: to.Ptr[int32](0), + // SupportOrdering: to.Ptr(true), + // UpdatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-05-26T20:50:34.32Z"); return t}()), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5e24fa8e30bff0cb321494a0b550b1c1282a8a3c/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples/Topics/SBTopicDelete.json +func ExampleTopicsClient_Delete() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armservicebus.NewTopicsClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + _, err = client.Delete(ctx, "ArunMonocle", "sdk-Namespace-1617", "sdk-Topics-5488", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/5e24fa8e30bff0cb321494a0b550b1c1282a8a3c/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-10-01-preview/examples/Topics/SBTopicGet.json +func ExampleTopicsClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armservicebus.NewTopicsClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "ArunMonocle", "sdk-Namespace-1617", "sdk-Topics-5488", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.SBTopic = armservicebus.SBTopic{ + // Name: to.Ptr("sdk-Topics-5488"), + // Type: to.Ptr("Microsoft.ServiceBus/Namespaces/Topics"), + // ID: to.Ptr("/subscriptions/5f750a97-50d9-4e36-8081-c9ee4c0210d4/resourceGroups/ArunMonocle/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-1617/topics/sdk-Topics-5488"), + // Properties: &armservicebus.SBTopicProperties{ + // AccessedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "0001-01-01T00:00:00Z"); return t}()), + // AutoDeleteOnIdle: to.Ptr("P10675199DT2H48M5.4775807S"), + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-05-26T20:50:31.4442694Z"); return t}()), + // DefaultMessageTimeToLive: to.Ptr("P10675199DT2H48M5.4775807S"), + // DuplicateDetectionHistoryTimeWindow: to.Ptr("PT10M"), + // EnableBatchedOperations: to.Ptr(true), + // EnableExpress: to.Ptr(true), + // EnablePartitioning: to.Ptr(false), + // MaxMessageSizeInKilobytes: to.Ptr[int64](10240), + // MaxSizeInMegabytes: to.Ptr[int32](10240), + // RequiresDuplicateDetection: to.Ptr(false), + // SizeInBytes: to.Ptr[int64](0), + // Status: to.Ptr(armservicebus.EntityStatusActive), + // SubscriptionCount: to.Ptr[int32](0), + // SupportOrdering: to.Ptr(true), + // UpdatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-05-26T20:52:32.2092264Z"); return t}()), + // }, + // } +} diff --git a/sdk/resourcemanager/servicebus/armservicebus/topics_live_test.go b/sdk/resourcemanager/servicebus/armservicebus/topics_live_test.go deleted file mode 100644 index 2fce464fbfd1..000000000000 --- a/sdk/resourcemanager/servicebus/armservicebus/topics_live_test.go +++ /dev/null @@ -1,249 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armservicebus_test - -import ( - "context" - "fmt" - "testing" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/testutil" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicebus/armservicebus/v2" - "github.com/stretchr/testify/suite" -) - -type TopicsTestSuite struct { - suite.Suite - - ctx context.Context - cred azcore.TokenCredential - options *arm.ClientOptions - authorizationRuleName string - namespaceName string - ruleName string - subscriptionName string - topicName string - location string - resourceGroupName string - subscriptionId string -} - -func (testsuite *TopicsTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/servicebus/armservicebus/testdata") - testsuite.ctx = context.Background() - testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) - testsuite.authorizationRuleName = testutil.GenerateAlphaNumericID(testsuite.T(), "topicauthrule", 6) - testsuite.namespaceName = testutil.GenerateAlphaNumericID(testsuite.T(), "sbnamespacet", 6) - testsuite.ruleName = testutil.GenerateAlphaNumericID(testsuite.T(), "rulena", 6) - testsuite.subscriptionName = testutil.GenerateAlphaNumericID(testsuite.T(), "subscriptionna", 6) - testsuite.topicName = testutil.GenerateAlphaNumericID(testsuite.T(), "topicna", 6) - testsuite.location = testutil.GetEnv("LOCATION", "westus") - testsuite.resourceGroupName = testutil.GetEnv("RESOURCE_GROUP_NAME", "scenarioTestTempGroup") - testsuite.subscriptionId = testutil.GetEnv("AZURE_SUBSCRIPTION_ID", "00000000-0000-0000-0000-000000000000") - - resourceGroup, _, err := testutil.CreateResourceGroup(testsuite.ctx, testsuite.subscriptionId, testsuite.cred, testsuite.options, testsuite.location) - testsuite.Require().NoError(err) - testsuite.resourceGroupName = *resourceGroup.Name - testsuite.Prepare() -} - -func (testsuite *TopicsTestSuite) TearDownSuite() { - testsuite.Cleanup() - _, err := testutil.DeleteResourceGroup(testsuite.ctx, testsuite.subscriptionId, testsuite.cred, testsuite.options, testsuite.resourceGroupName) - testsuite.Require().NoError(err) - testutil.StopRecording(testsuite.T()) -} - -func TestTopicsTestSuite(t *testing.T) { - suite.Run(t, new(TopicsTestSuite)) -} - -func (testsuite *TopicsTestSuite) Prepare() { - var err error - // From step Namespace_Create - fmt.Println("Call operation: Namespaces_CreateOrUpdate") - namespacesClient, err := armservicebus.NewNamespacesClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) - testsuite.Require().NoError(err) - namespacesClientCreateOrUpdateResponsePoller, err := namespacesClient.BeginCreateOrUpdate(testsuite.ctx, testsuite.resourceGroupName, testsuite.namespaceName, armservicebus.SBNamespace{ - Location: to.Ptr(testsuite.location), - Tags: map[string]*string{ - "tag1": to.Ptr("value1"), - "tag2": to.Ptr("value2"), - }, - SKU: &armservicebus.SBSKU{ - Name: to.Ptr(armservicebus.SKUNameStandard), - Tier: to.Ptr(armservicebus.SKUTierStandard), - }, - }, nil) - testsuite.Require().NoError(err) - _, err = testutil.PollForTest(testsuite.ctx, namespacesClientCreateOrUpdateResponsePoller) - testsuite.Require().NoError(err) -} - -// Microsoft.ServiceBus/namespaces/topics -func (testsuite *TopicsTestSuite) TestTopic() { - var err error - // From step Topic_Create - fmt.Println("Call operation: Topics_Create") - topicsClient, err := armservicebus.NewTopicsClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) - testsuite.Require().NoError(err) - _, err = topicsClient.CreateOrUpdate(testsuite.ctx, testsuite.resourceGroupName, testsuite.namespaceName, testsuite.topicName, armservicebus.SBTopic{ - Properties: &armservicebus.SBTopicProperties{ - EnableExpress: to.Ptr(true), - }, - }, nil) - testsuite.Require().NoError(err) - - // From step Topic_Get - fmt.Println("Call operation: Topics_Get") - _, err = topicsClient.Get(testsuite.ctx, testsuite.resourceGroupName, testsuite.namespaceName, testsuite.topicName, nil) - testsuite.Require().NoError(err) - - // From step Topic_ListByNamespace - fmt.Println("Call operation: Topics_ListByNamespace") - topicsClientNewListByNamespacePager := topicsClient.NewListByNamespacePager(testsuite.resourceGroupName, testsuite.namespaceName, &armservicebus.TopicsClientListByNamespaceOptions{Skip: nil, - Top: nil, - }) - for topicsClientNewListByNamespacePager.More() { - _, err := topicsClientNewListByNamespacePager.NextPage(testsuite.ctx) - testsuite.Require().NoError(err) - break - } - - // From step Topic_CreateAuthorizationRule - fmt.Println("Call operation: Topics_CreateOrUpdateAuthorizationRule") - _, err = topicsClient.CreateOrUpdateAuthorizationRule(testsuite.ctx, testsuite.resourceGroupName, testsuite.namespaceName, testsuite.topicName, testsuite.authorizationRuleName, armservicebus.SBAuthorizationRule{ - Properties: &armservicebus.SBAuthorizationRuleProperties{ - Rights: []*armservicebus.AccessRights{ - to.Ptr(armservicebus.AccessRightsListen), - to.Ptr(armservicebus.AccessRightsSend)}, - }, - }, nil) - testsuite.Require().NoError(err) - - // From step Topic_GetAuthorizationRule - fmt.Println("Call operation: Topics_GetAuthorizationRule") - _, err = topicsClient.GetAuthorizationRule(testsuite.ctx, testsuite.resourceGroupName, testsuite.namespaceName, testsuite.topicName, testsuite.authorizationRuleName, nil) - testsuite.Require().NoError(err) - - // From step Topic_ListAuthorizationRules - fmt.Println("Call operation: Topics_ListAuthorizationRules") - topicsClientNewListAuthorizationRulesPager := topicsClient.NewListAuthorizationRulesPager(testsuite.resourceGroupName, testsuite.namespaceName, testsuite.topicName, nil) - for topicsClientNewListAuthorizationRulesPager.More() { - _, err := topicsClientNewListAuthorizationRulesPager.NextPage(testsuite.ctx) - testsuite.Require().NoError(err) - break - } - - // From step Topic_RegenerateKeys - fmt.Println("Call operation: Topics_RegenerateKeys") - _, err = topicsClient.RegenerateKeys(testsuite.ctx, testsuite.resourceGroupName, testsuite.namespaceName, testsuite.topicName, testsuite.authorizationRuleName, armservicebus.RegenerateAccessKeyParameters{ - KeyType: to.Ptr(armservicebus.KeyTypePrimaryKey), - }, nil) - testsuite.Require().NoError(err) - - // From step Topic_ListKeys - fmt.Println("Call operation: Topics_ListKeys") - _, err = topicsClient.ListKeys(testsuite.ctx, testsuite.resourceGroupName, testsuite.namespaceName, testsuite.topicName, testsuite.authorizationRuleName, nil) - testsuite.Require().NoError(err) - - // From step Topic_DeleteAuthorizationRule - fmt.Println("Call operation: Topics_DeleteAuthorizationRule") - _, err = topicsClient.DeleteAuthorizationRule(testsuite.ctx, testsuite.resourceGroupName, testsuite.namespaceName, testsuite.topicName, testsuite.authorizationRuleName, nil) - testsuite.Require().NoError(err) - - // From step Subscription_Create - fmt.Println("Call operation: Subscriptions_CreateOrUpdate") - subscriptionsClient, err := armservicebus.NewSubscriptionsClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) - testsuite.Require().NoError(err) - _, err = subscriptionsClient.CreateOrUpdate(testsuite.ctx, testsuite.resourceGroupName, testsuite.namespaceName, testsuite.topicName, testsuite.subscriptionName, armservicebus.SBSubscription{ - Properties: &armservicebus.SBSubscriptionProperties{ - EnableBatchedOperations: to.Ptr(true), - }, - }, nil) - testsuite.Require().NoError(err) - - // From step Subscription_Get - fmt.Println("Call operation: Subscriptions_Get") - _, err = subscriptionsClient.Get(testsuite.ctx, testsuite.resourceGroupName, testsuite.namespaceName, testsuite.topicName, testsuite.subscriptionName, nil) - testsuite.Require().NoError(err) - - // From step Subscription_ListByTopic - fmt.Println("Call operation: Subscriptions_ListByTopic") - subscriptionsClientNewListByTopicPager := subscriptionsClient.NewListByTopicPager(testsuite.resourceGroupName, testsuite.namespaceName, testsuite.topicName, &armservicebus.SubscriptionsClientListByTopicOptions{Skip: nil, - Top: nil, - }) - for subscriptionsClientNewListByTopicPager.More() { - _, err := subscriptionsClientNewListByTopicPager.NextPage(testsuite.ctx) - testsuite.Require().NoError(err) - break - } - - // From step Rule_Create - fmt.Println("Call operation: Rules_CreateOrUpdate") - rulesClient, err := armservicebus.NewRulesClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) - testsuite.Require().NoError(err) - _, err = rulesClient.CreateOrUpdate(testsuite.ctx, testsuite.resourceGroupName, testsuite.namespaceName, testsuite.topicName, testsuite.subscriptionName, testsuite.ruleName, armservicebus.Rule{ - Properties: &armservicebus.Ruleproperties{ - CorrelationFilter: &armservicebus.CorrelationFilter{ - Properties: map[string]*string{ - "topicHint": to.Ptr("Crop"), - }, - }, - FilterType: to.Ptr(armservicebus.FilterTypeCorrelationFilter), - }, - }, nil) - testsuite.Require().NoError(err) - - // From step Rule_Get - fmt.Println("Call operation: Rules_Get") - _, err = rulesClient.Get(testsuite.ctx, testsuite.resourceGroupName, testsuite.namespaceName, testsuite.topicName, testsuite.subscriptionName, testsuite.ruleName, nil) - testsuite.Require().NoError(err) - - // From step Rule_ListBySubscription - fmt.Println("Call operation: Rules_ListBySubscriptions") - rulesClientNewListBySubscriptionsPager := rulesClient.NewListBySubscriptionsPager(testsuite.resourceGroupName, testsuite.namespaceName, testsuite.topicName, testsuite.subscriptionName, &armservicebus.RulesClientListBySubscriptionsOptions{Skip: nil, - Top: nil, - }) - for rulesClientNewListBySubscriptionsPager.More() { - _, err := rulesClientNewListBySubscriptionsPager.NextPage(testsuite.ctx) - testsuite.Require().NoError(err) - break - } - - // From step Rule_Delete - fmt.Println("Call operation: Rules_Delete") - _, err = rulesClient.Delete(testsuite.ctx, testsuite.resourceGroupName, testsuite.namespaceName, testsuite.topicName, testsuite.subscriptionName, testsuite.ruleName, nil) - testsuite.Require().NoError(err) - - // From step Subscription_Delete - fmt.Println("Call operation: Subscriptions_Delete") - _, err = subscriptionsClient.Delete(testsuite.ctx, testsuite.resourceGroupName, testsuite.namespaceName, testsuite.topicName, testsuite.subscriptionName, nil) - testsuite.Require().NoError(err) - - // From step Topic_Delete - fmt.Println("Call operation: Topics_Delete") - _, err = topicsClient.Delete(testsuite.ctx, testsuite.resourceGroupName, testsuite.namespaceName, testsuite.topicName, nil) - testsuite.Require().NoError(err) -} - -func (testsuite *TopicsTestSuite) Cleanup() { - var err error - // From step Namespace_Delete - fmt.Println("Call operation: Namespaces_Delete") - namespacesClient, err := armservicebus.NewNamespacesClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) - testsuite.Require().NoError(err) - namespacesClientDeleteResponsePoller, err := namespacesClient.BeginDelete(testsuite.ctx, testsuite.resourceGroupName, testsuite.namespaceName, nil) - testsuite.Require().NoError(err) - _, err = testutil.PollForTest(testsuite.ctx, namespacesClientDeleteResponsePoller) - testsuite.Require().NoError(err) -} diff --git a/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_disasterrecoveryconfigs_client_test.go b/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_disasterrecoveryconfigs_client_test.go deleted file mode 100644 index dfd0ce736869..000000000000 --- a/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_disasterrecoveryconfigs_client_test.go +++ /dev/null @@ -1,259 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armservicebus_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicebus/armservicebus/v2" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/examples/disasterRecoveryConfigs/SBAliasList.json -func ExampleDisasterRecoveryConfigsClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armservicebus.NewDisasterRecoveryConfigsClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListPager("ardsouzatestRG", - "sdk-Namespace-8860", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/examples/disasterRecoveryConfigs/SBAliasCreate.json -func ExampleDisasterRecoveryConfigsClient_CreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armservicebus.NewDisasterRecoveryConfigsClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.CreateOrUpdate(ctx, - "ardsouzatestRG", - "sdk-Namespace-8860", - "sdk-Namespace-8860", - armservicebus.ArmDisasterRecovery{ - Properties: &armservicebus.ArmDisasterRecoveryProperties{ - AlternateName: to.Ptr("alternameforAlias-Namespace-8860"), - PartnerNamespace: to.Ptr("sdk-Namespace-37"), - }, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/examples/disasterRecoveryConfigs/SBAliasDelete.json -func ExampleDisasterRecoveryConfigsClient_Delete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armservicebus.NewDisasterRecoveryConfigsClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = client.Delete(ctx, - "SouthCentralUS", - "sdk-Namespace-8860", - "sdk-DisasterRecovery-3814", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/examples/disasterRecoveryConfigs/SBAliasGet.json -func ExampleDisasterRecoveryConfigsClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armservicebus.NewDisasterRecoveryConfigsClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "ardsouzatestRG", - "sdk-Namespace-8860", - "sdk-DisasterRecovery-3814", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/examples/disasterRecoveryConfigs/SBEHAliasBreakPairing.json -func ExampleDisasterRecoveryConfigsClient_BreakPairing() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armservicebus.NewDisasterRecoveryConfigsClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = client.BreakPairing(ctx, - "ardsouzatestRG", - "sdk-Namespace-8860", - "sdk-DisasterRecovery-3814", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/examples/disasterRecoveryConfigs/SBAliasFailOver.json -func ExampleDisasterRecoveryConfigsClient_FailOver() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armservicebus.NewDisasterRecoveryConfigsClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = client.FailOver(ctx, - "ardsouzatestRG", - "sdk-Namespace-8860", - "sdk-DisasterRecovery-3814", - &armservicebus.DisasterRecoveryConfigsClientFailOverOptions{Parameters: nil}) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/examples/disasterRecoveryConfigs/SBAliasAuthorizationRuleListAll.json -func ExampleDisasterRecoveryConfigsClient_NewListAuthorizationRulesPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armservicebus.NewDisasterRecoveryConfigsClient("exampleSubscriptionId", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListAuthorizationRulesPager("exampleResourceGroup", - "sdk-Namespace-9080", - "sdk-DisasterRecovery-4047", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/examples/disasterRecoveryConfigs/SBAliasAuthorizationRuleGet.json -func ExampleDisasterRecoveryConfigsClient_GetAuthorizationRule() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armservicebus.NewDisasterRecoveryConfigsClient("exampleSubscriptionId", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.GetAuthorizationRule(ctx, - "exampleResourceGroup", - "sdk-Namespace-9080", - "sdk-DisasterRecovery-4879", - "sdk-Authrules-4879", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/examples/disasterRecoveryConfigs/SBAliasAuthorizationRuleListKey.json -func ExampleDisasterRecoveryConfigsClient_ListKeys() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armservicebus.NewDisasterRecoveryConfigsClient("exampleSubscriptionId", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.ListKeys(ctx, - "exampleResourceGroup", - "sdk-Namespace-2702", - "sdk-DisasterRecovery-4047", - "sdk-Authrules-1746", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/examples/disasterRecoveryConfigs/SBAliasCheckNameAvailability.json -func ExampleDisasterRecoveryConfigsClient_CheckNameAvailability() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armservicebus.NewDisasterRecoveryConfigsClient("exampleSubscriptionId", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.CheckNameAvailability(ctx, - "exampleResourceGroup", - "sdk-Namespace-9080", - armservicebus.CheckNameAvailability{ - Name: to.Ptr("sdk-DisasterRecovery-9474"), - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} diff --git a/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_migrationconfigs_client_test.go b/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_migrationconfigs_client_test.go deleted file mode 100644 index a9fb5c811928..000000000000 --- a/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_migrationconfigs_client_test.go +++ /dev/null @@ -1,163 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armservicebus_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicebus/armservicebus/v2" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/examples/Migrationconfigurations/SBMigrationconfigurationList.json -func ExampleMigrationConfigsClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armservicebus.NewMigrationConfigsClient("SubscriptionId", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListPager("ResourceGroup", - "sdk-Namespace-9259", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/examples/Migrationconfigurations/SBMigrationconfigurationCreateAndStartMigration.json -func ExampleMigrationConfigsClient_BeginCreateAndStartMigration() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armservicebus.NewMigrationConfigsClient("SubscriptionId", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginCreateAndStartMigration(ctx, - "ResourceGroup", - "sdk-Namespace-41", - armservicebus.MigrationConfigurationNameDefault, - armservicebus.MigrationConfigProperties{ - Properties: &armservicebus.MigrationConfigPropertiesProperties{ - PostMigrationName: to.Ptr("sdk-PostMigration-5919"), - TargetNamespace: to.Ptr("/subscriptions/SubscriptionId/resourceGroups/ResourceGroup/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-4028"), - }, - }, - 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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/examples/Migrationconfigurations/SBMigrationconfigurationDelete.json -func ExampleMigrationConfigsClient_Delete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armservicebus.NewMigrationConfigsClient("SubscriptionId", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = client.Delete(ctx, - "ResourceGroup", - "sdk-Namespace-41", - armservicebus.MigrationConfigurationNameDefault, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/examples/Migrationconfigurations/SBMigrationconfigurationGet.json -func ExampleMigrationConfigsClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armservicebus.NewMigrationConfigsClient("SubscriptionId", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "ResourceGroup", - "sdk-Namespace-41", - armservicebus.MigrationConfigurationNameDefault, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/examples/Migrationconfigurations/SBMigrationconfigurationCompleteMigration.json -func ExampleMigrationConfigsClient_CompleteMigration() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armservicebus.NewMigrationConfigsClient("SubscriptionId", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = client.CompleteMigration(ctx, - "ResourceGroup", - "sdk-Namespace-41", - armservicebus.MigrationConfigurationNameDefault, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/examples/Migrationconfigurations/SBMigrationconfigurationRevert.json -func ExampleMigrationConfigsClient_Revert() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armservicebus.NewMigrationConfigsClient("SubscriptionId", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = client.Revert(ctx, - "ResourceGroup", - "sdk-Namespace-41", - armservicebus.MigrationConfigurationNameDefault, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} diff --git a/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_namespaces_client_test.go b/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_namespaces_client_test.go deleted file mode 100644 index 4c6cbaaeea25..000000000000 --- a/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_namespaces_client_test.go +++ /dev/null @@ -1,466 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armservicebus_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicebus/armservicebus/v2" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/examples/NameSpaces/SBNameSpaceList.json -func ExampleNamespacesClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armservicebus.NewNamespacesClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListPager(nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/examples/NameSpaces/SBNameSpaceListByResourceGroup.json -func ExampleNamespacesClient_NewListByResourceGroupPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armservicebus.NewNamespacesClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListByResourceGroupPager("ArunMonocle", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/examples/NameSpaces/SBNameSpaceCreate.json -func ExampleNamespacesClient_BeginCreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armservicebus.NewNamespacesClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginCreateOrUpdate(ctx, - "ArunMonocle", - "sdk-Namespace2924", - armservicebus.SBNamespace{ - Location: to.Ptr("South Central US"), - Tags: map[string]*string{ - "tag1": to.Ptr("value1"), - "tag2": to.Ptr("value2"), - }, - SKU: &armservicebus.SBSKU{ - Name: to.Ptr(armservicebus.SKUNameStandard), - Tier: to.Ptr(armservicebus.SKUTierStandard), - }, - }, - 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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/examples/NameSpaces/SBNameSpaceDelete.json -func ExampleNamespacesClient_BeginDelete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armservicebus.NewNamespacesClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginDelete(ctx, - "ArunMonocle", - "sdk-Namespace-3285", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/examples/NameSpaces/SBNameSpaceGet.json -func ExampleNamespacesClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armservicebus.NewNamespacesClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "ArunMonocle", - "sdk-Namespace-2924", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/examples/NameSpaces/SBNameSpaceUpdate.json -func ExampleNamespacesClient_Update() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armservicebus.NewNamespacesClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Update(ctx, - "ArunMonocle", - "sdk-Namespace-3285", - armservicebus.SBNamespaceUpdateParameters{ - Location: to.Ptr("South Central US"), - Tags: map[string]*string{ - "tag3": to.Ptr("value3"), - "tag4": to.Ptr("value4"), - }, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/examples/NameSpaces/VirtualNetworkRule/SBNetworkRuleSetCreate.json -func ExampleNamespacesClient_CreateOrUpdateNetworkRuleSet() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armservicebus.NewNamespacesClient("Subscription", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.CreateOrUpdateNetworkRuleSet(ctx, - "ResourceGroup", - "sdk-Namespace-6019", - armservicebus.NetworkRuleSet{ - Properties: &armservicebus.NetworkRuleSetProperties{ - DefaultAction: to.Ptr(armservicebus.DefaultActionDeny), - IPRules: []*armservicebus.NWRuleSetIPRules{ - { - Action: to.Ptr(armservicebus.NetworkRuleIPActionAllow), - IPMask: to.Ptr("1.1.1.1"), - }, - { - Action: to.Ptr(armservicebus.NetworkRuleIPActionAllow), - IPMask: to.Ptr("1.1.1.2"), - }, - { - Action: to.Ptr(armservicebus.NetworkRuleIPActionAllow), - IPMask: to.Ptr("1.1.1.3"), - }, - { - Action: to.Ptr(armservicebus.NetworkRuleIPActionAllow), - IPMask: to.Ptr("1.1.1.4"), - }, - { - Action: to.Ptr(armservicebus.NetworkRuleIPActionAllow), - IPMask: to.Ptr("1.1.1.5"), - }}, - VirtualNetworkRules: []*armservicebus.NWRuleSetVirtualNetworkRules{ - { - IgnoreMissingVnetServiceEndpoint: to.Ptr(true), - Subnet: &armservicebus.Subnet{ - ID: to.Ptr("/subscriptions/854d368f-1828-428f-8f3c-f2affa9b2f7d/resourcegroups/alitest/providers/Microsoft.Network/virtualNetworks/myvn/subnets/subnet2"), - }, - }, - { - IgnoreMissingVnetServiceEndpoint: to.Ptr(false), - Subnet: &armservicebus.Subnet{ - ID: to.Ptr("/subscriptions/854d368f-1828-428f-8f3c-f2affa9b2f7d/resourcegroups/alitest/providers/Microsoft.Network/virtualNetworks/myvn/subnets/subnet3"), - }, - }, - { - IgnoreMissingVnetServiceEndpoint: to.Ptr(false), - Subnet: &armservicebus.Subnet{ - ID: to.Ptr("/subscriptions/854d368f-1828-428f-8f3c-f2affa9b2f7d/resourcegroups/alitest/providers/Microsoft.Network/virtualNetworks/myvn/subnets/subnet6"), - }, - }}, - }, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/examples/NameSpaces/VirtualNetworkRule/SBNetworkRuleSetGet.json -func ExampleNamespacesClient_GetNetworkRuleSet() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armservicebus.NewNamespacesClient("Subscription", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.GetNetworkRuleSet(ctx, - "ResourceGroup", - "sdk-Namespace-6019", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/examples/NameSpaces/VirtualNetworkRule/SBNetworkRuleSetList.json -func ExampleNamespacesClient_NewListNetworkRuleSetsPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armservicebus.NewNamespacesClient("Subscription", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListNetworkRuleSetsPager("ResourceGroup", - "sdk-Namespace-6019", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/examples/NameSpaces/SBNameSpaceAuthorizationRuleListAll.json -func ExampleNamespacesClient_NewListAuthorizationRulesPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armservicebus.NewNamespacesClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListAuthorizationRulesPager("ArunMonocle", - "sdk-Namespace-6914", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/examples/NameSpaces/SBNameSpaceAuthorizationRuleCreate.json -func ExampleNamespacesClient_CreateOrUpdateAuthorizationRule() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armservicebus.NewNamespacesClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.CreateOrUpdateAuthorizationRule(ctx, - "ArunMonocle", - "sdk-Namespace-6914", - "sdk-AuthRules-1788", - armservicebus.SBAuthorizationRule{ - Properties: &armservicebus.SBAuthorizationRuleProperties{ - Rights: []*armservicebus.AccessRights{ - to.Ptr(armservicebus.AccessRightsListen), - to.Ptr(armservicebus.AccessRightsSend)}, - }, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/examples/NameSpaces/SBNameSpaceAuthorizationRuleDelete.json -func ExampleNamespacesClient_DeleteAuthorizationRule() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armservicebus.NewNamespacesClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = client.DeleteAuthorizationRule(ctx, - "ArunMonocle", - "sdk-namespace-6914", - "sdk-AuthRules-1788", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/examples/NameSpaces/SBNameSpaceAuthorizationRuleGet.json -func ExampleNamespacesClient_GetAuthorizationRule() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armservicebus.NewNamespacesClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.GetAuthorizationRule(ctx, - "ArunMonocle", - "sdk-Namespace-6914", - "sdk-AuthRules-1788", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/examples/NameSpaces/SBNameSpaceAuthorizationRuleListKey.json -func ExampleNamespacesClient_ListKeys() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armservicebus.NewNamespacesClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.ListKeys(ctx, - "ArunMonocle", - "sdk-namespace-6914", - "sdk-AuthRules-1788", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/examples/NameSpaces/SBNameSpaceAuthorizationRuleRegenerateKey.json -func ExampleNamespacesClient_RegenerateKeys() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armservicebus.NewNamespacesClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.RegenerateKeys(ctx, - "ArunMonocle", - "sdk-namespace-6914", - "sdk-AuthRules-1788", - armservicebus.RegenerateAccessKeyParameters{ - KeyType: to.Ptr(armservicebus.KeyTypePrimaryKey), - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/examples/NameSpaces/SBNameSpaceCheckNameAvailability.json -func ExampleNamespacesClient_CheckNameAvailability() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armservicebus.NewNamespacesClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.CheckNameAvailability(ctx, - armservicebus.CheckNameAvailability{ - Name: to.Ptr("sdk-Namespace-2924"), - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} diff --git a/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_operations_client_test.go b/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_operations_client_test.go deleted file mode 100644 index b78856e81ee8..000000000000 --- a/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_operations_client_test.go +++ /dev/null @@ -1,41 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armservicebus_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicebus/armservicebus/v2" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/examples/SBOperations_List.json -func ExampleOperationsClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armservicebus.NewOperationsClient(cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListPager(nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} diff --git a/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_privateendpointconnections_client_test.go b/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_privateendpointconnections_client_test.go deleted file mode 100644 index 57804a2ef9eb..000000000000 --- a/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_privateendpointconnections_client_test.go +++ /dev/null @@ -1,127 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armservicebus_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicebus/armservicebus/v2" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/examples/NameSpaces/PrivateEndPointConnectionList.json -func ExamplePrivateEndpointConnectionsClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armservicebus.NewPrivateEndpointConnectionsClient("subID", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListPager("SDK-ServiceBus-4794", - "sdk-Namespace-5828", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/examples/NameSpaces/PrivateEndPointConnectionCreate.json -func ExamplePrivateEndpointConnectionsClient_CreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armservicebus.NewPrivateEndpointConnectionsClient("subID", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.CreateOrUpdate(ctx, - "ArunMonocle", - "sdk-Namespace-2924", - "privateEndpointConnectionName", - armservicebus.PrivateEndpointConnection{ - Properties: &armservicebus.PrivateEndpointConnectionProperties{ - PrivateEndpoint: &armservicebus.PrivateEndpoint{ - ID: to.Ptr("/subscriptions/dbedb4e0-40e6-4145-81f3-f1314c150774/resourceGroups/SDK-ServiceBus-8396/providers/Microsoft.Network/privateEndpoints/sdk-Namespace-2847"), - }, - PrivateLinkServiceConnectionState: &armservicebus.ConnectionState{ - Description: to.Ptr("testing"), - Status: to.Ptr(armservicebus.PrivateLinkConnectionStatusRejected), - }, - ProvisioningState: to.Ptr(armservicebus.EndPointProvisioningStateSucceeded), - }, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/examples/NameSpaces/PrivateEndPointConnectionDelete.json -func ExamplePrivateEndpointConnectionsClient_BeginDelete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armservicebus.NewPrivateEndpointConnectionsClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginDelete(ctx, - "ArunMonocle", - "sdk-Namespace-3285", - "928c44d5-b7c6-423b-b6fa-811e0c27b3e0", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/examples/NameSpaces/PrivateEndPointConnectionGet.json -func ExamplePrivateEndpointConnectionsClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armservicebus.NewPrivateEndpointConnectionsClient("subID", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "SDK-ServiceBus-4794", - "sdk-Namespace-5828", - "privateEndpointConnectionName", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} diff --git a/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_privatelinkresources_client_test.go b/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_privatelinkresources_client_test.go deleted file mode 100644 index 17edb6abc0be..000000000000 --- a/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_privatelinkresources_client_test.go +++ /dev/null @@ -1,39 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armservicebus_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicebus/armservicebus/v2" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/examples/NameSpaces/PrivateLinkResourcesGet.json -func ExamplePrivateLinkResourcesClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armservicebus.NewPrivateLinkResourcesClient("subID", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "ArunMonocle", - "sdk-Namespace-2924", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} diff --git a/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_queues_client_test.go b/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_queues_client_test.go deleted file mode 100644 index 7c84d06ed732..000000000000 --- a/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_queues_client_test.go +++ /dev/null @@ -1,273 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armservicebus_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicebus/armservicebus/v2" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/examples/Queues/SBQueueAuthorizationRuleListAll.json -func ExampleQueuesClient_NewListAuthorizationRulesPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armservicebus.NewQueuesClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListAuthorizationRulesPager("ArunMonocle", - "sdk-Namespace-7982", - "sdk-Queues-2317", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/examples/Queues/SBQueueAuthorizationRuleCreate.json -func ExampleQueuesClient_CreateOrUpdateAuthorizationRule() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armservicebus.NewQueuesClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.CreateOrUpdateAuthorizationRule(ctx, - "ArunMonocle", - "sdk-Namespace-7982", - "sdk-Queues-2317", - "sdk-AuthRules-5800", - armservicebus.SBAuthorizationRule{ - Properties: &armservicebus.SBAuthorizationRuleProperties{ - Rights: []*armservicebus.AccessRights{ - to.Ptr(armservicebus.AccessRightsListen), - to.Ptr(armservicebus.AccessRightsSend)}, - }, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/examples/Queues/SBQueueAuthorizationRuleDelete.json -func ExampleQueuesClient_DeleteAuthorizationRule() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armservicebus.NewQueuesClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = client.DeleteAuthorizationRule(ctx, - "ArunMonocle", - "sdk-namespace-7982", - "sdk-Queues-2317", - "sdk-AuthRules-5800", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/examples/Queues/SBQueueAuthorizationRuleGet.json -func ExampleQueuesClient_GetAuthorizationRule() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armservicebus.NewQueuesClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.GetAuthorizationRule(ctx, - "ArunMonocle", - "sdk-Namespace-7982", - "sdk-Queues-2317", - "sdk-AuthRules-5800", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/examples/Queues/SBQueueAuthorizationRuleListKey.json -func ExampleQueuesClient_ListKeys() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armservicebus.NewQueuesClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.ListKeys(ctx, - "ArunMonocle", - "sdk-namespace-7982", - "sdk-Queues-2317", - "sdk-AuthRules-5800", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/examples/Queues/SBQueueAuthorizationRuleRegenerateKey.json -func ExampleQueuesClient_RegenerateKeys() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armservicebus.NewQueuesClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.RegenerateKeys(ctx, - "ArunMonocle", - "sdk-namespace-7982", - "sdk-Queues-2317", - "sdk-AuthRules-5800", - armservicebus.RegenerateAccessKeyParameters{ - KeyType: to.Ptr(armservicebus.KeyTypePrimaryKey), - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/examples/Queues/SBQueueListByNameSpace.json -func ExampleQueuesClient_NewListByNamespacePager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armservicebus.NewQueuesClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListByNamespacePager("ArunMonocle", - "sdk-Namespace-3174", - &armservicebus.QueuesClientListByNamespaceOptions{Skip: nil, - Top: nil, - }) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/examples/Queues/SBQueueCreate.json -func ExampleQueuesClient_CreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armservicebus.NewQueuesClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.CreateOrUpdate(ctx, - "ArunMonocle", - "sdk-Namespace-3174", - "sdk-Queues-5647", - armservicebus.SBQueue{ - Properties: &armservicebus.SBQueueProperties{ - EnablePartitioning: to.Ptr(true), - }, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/examples/Queues/SBQueueDelete.json -func ExampleQueuesClient_Delete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armservicebus.NewQueuesClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = client.Delete(ctx, - "ArunMonocle", - "sdk-Namespace-183", - "sdk-Queues-8708", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/examples/Queues/SBQueueGet.json -func ExampleQueuesClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armservicebus.NewQueuesClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "ArunMonocle", - "sdk-Namespace-3174", - "sdk-Queues-5647", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} diff --git a/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_rules_client_test.go b/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_rules_client_test.go deleted file mode 100644 index 3d001aac0d1a..000000000000 --- a/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_rules_client_test.go +++ /dev/null @@ -1,131 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armservicebus_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicebus/armservicebus/v2" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/examples/Rules/RuleListBySubscription.json -func ExampleRulesClient_NewListBySubscriptionsPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armservicebus.NewRulesClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListBySubscriptionsPager("ArunMonocle", - "sdk-Namespace-1319", - "sdk-Topics-2081", - "sdk-Subscriptions-8691", - &armservicebus.RulesClientListBySubscriptionsOptions{Skip: nil, - Top: nil, - }) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/examples/Rules/RuleCreate_CorrelationFilter.json -func ExampleRulesClient_CreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armservicebus.NewRulesClient("subscriptionId", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.CreateOrUpdate(ctx, - "resourceGroupName", - "sdk-Namespace-1319", - "sdk-Topics-2081", - "sdk-Subscriptions-8691", - "sdk-Rules-6571", - armservicebus.Rule{ - Properties: &armservicebus.Ruleproperties{ - CorrelationFilter: &armservicebus.CorrelationFilter{ - Properties: map[string]*string{ - "topicHint": to.Ptr("Crop"), - }, - }, - FilterType: to.Ptr(armservicebus.FilterTypeCorrelationFilter), - }, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/examples/Rules/RuleDelete.json -func ExampleRulesClient_Delete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armservicebus.NewRulesClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = client.Delete(ctx, - "ArunMonocle", - "sdk-Namespace-1319", - "sdk-Topics-2081", - "sdk-Subscriptions-8691", - "sdk-Rules-6571", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/examples/Rules/RuleGet.json -func ExampleRulesClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armservicebus.NewRulesClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "ArunMonocle", - "sdk-Namespace-1319", - "sdk-Topics-2081", - "sdk-Subscriptions-8691", - "sdk-Rules-6571", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} diff --git a/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_subscriptions_client_test.go b/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_subscriptions_client_test.go deleted file mode 100644 index 109f7aeba1cc..000000000000 --- a/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_subscriptions_client_test.go +++ /dev/null @@ -1,122 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armservicebus_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicebus/armservicebus/v2" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/examples/Subscriptions/SBSubscriptionListByTopic.json -func ExampleSubscriptionsClient_NewListByTopicPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armservicebus.NewSubscriptionsClient("5{Subscriptionid}", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListByTopicPager("ResourceGroup", - "sdk-Namespace-1349", - "sdk-Topics-8740", - &armservicebus.SubscriptionsClientListByTopicOptions{Skip: nil, - Top: nil, - }) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/examples/Subscriptions/SBSubscriptionCreate.json -func ExampleSubscriptionsClient_CreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armservicebus.NewSubscriptionsClient("Subscriptionid", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.CreateOrUpdate(ctx, - "ResourceGroup", - "sdk-Namespace-1349", - "sdk-Topics-8740", - "sdk-Subscriptions-2178", - armservicebus.SBSubscription{ - Properties: &armservicebus.SBSubscriptionProperties{ - EnableBatchedOperations: to.Ptr(true), - }, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/examples/Subscriptions/SBSubscriptionDelete.json -func ExampleSubscriptionsClient_Delete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armservicebus.NewSubscriptionsClient("subscriptionId", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = client.Delete(ctx, - "ResourceGroup", - "sdk-Namespace-5882", - "sdk-Topics-1804", - "sdk-Subscriptions-3670", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/examples/Subscriptions/SBSubscriptionGet.json -func ExampleSubscriptionsClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armservicebus.NewSubscriptionsClient("Subscriptionid", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "ResourceGroup", - "sdk-Namespace-1349", - "sdk-Topics-8740", - "sdk-Subscriptions-2178", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} diff --git a/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_topics_client_test.go b/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_topics_client_test.go deleted file mode 100644 index 0ebfd3c7cfe0..000000000000 --- a/sdk/resourcemanager/servicebus/armservicebus/ze_generated_example_topics_client_test.go +++ /dev/null @@ -1,273 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armservicebus_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicebus/armservicebus/v2" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/examples/Topics/SBTopicAuthorizationRuleListAll.json -func ExampleTopicsClient_NewListAuthorizationRulesPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armservicebus.NewTopicsClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListAuthorizationRulesPager("ArunMonocle", - "sdk-Namespace-6261", - "sdk-Topics-1984", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/examples/Topics/SBTopicAuthorizationRuleCreate.json -func ExampleTopicsClient_CreateOrUpdateAuthorizationRule() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armservicebus.NewTopicsClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.CreateOrUpdateAuthorizationRule(ctx, - "ArunMonocle", - "sdk-Namespace-6261", - "sdk-Topics-1984", - "sdk-AuthRules-4310", - armservicebus.SBAuthorizationRule{ - Properties: &armservicebus.SBAuthorizationRuleProperties{ - Rights: []*armservicebus.AccessRights{ - to.Ptr(armservicebus.AccessRightsListen), - to.Ptr(armservicebus.AccessRightsSend)}, - }, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/examples/Topics/SBTopicAuthorizationRuleGet.json -func ExampleTopicsClient_GetAuthorizationRule() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armservicebus.NewTopicsClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.GetAuthorizationRule(ctx, - "ArunMonocle", - "sdk-Namespace-6261", - "sdk-Topics-1984", - "sdk-AuthRules-4310", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/examples/Topics/SBTopicAuthorizationRuleDelete.json -func ExampleTopicsClient_DeleteAuthorizationRule() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armservicebus.NewTopicsClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = client.DeleteAuthorizationRule(ctx, - "ArunMonocle", - "sdk-Namespace-6261", - "sdk-Topics-1984", - "sdk-AuthRules-4310", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/examples/Topics/SBTopicAuthorizationRuleListKey.json -func ExampleTopicsClient_ListKeys() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armservicebus.NewTopicsClient("e2f361f0-3b27-4503-a9cc-21cfba380093", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.ListKeys(ctx, - "Default-ServiceBus-WestUS", - "sdk-Namespace8408", - "sdk-Topics2075", - "sdk-Authrules5067", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/examples/Topics/SBTopicAuthorizationRuleRegenerateKey.json -func ExampleTopicsClient_RegenerateKeys() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armservicebus.NewTopicsClient("e2f361f0-3b27-4503-a9cc-21cfba380093", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.RegenerateKeys(ctx, - "Default-ServiceBus-WestUS", - "sdk-Namespace8408", - "sdk-Topics2075", - "sdk-Authrules5067", - armservicebus.RegenerateAccessKeyParameters{ - KeyType: to.Ptr(armservicebus.KeyTypePrimaryKey), - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/examples/Topics/SBTopicListByNameSpace.json -func ExampleTopicsClient_NewListByNamespacePager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armservicebus.NewTopicsClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListByNamespacePager("Default-ServiceBus-WestUS", - "sdk-Namespace-1617", - &armservicebus.TopicsClientListByNamespaceOptions{Skip: nil, - Top: nil, - }) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/examples/Topics/SBTopicCreate.json -func ExampleTopicsClient_CreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armservicebus.NewTopicsClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.CreateOrUpdate(ctx, - "ArunMonocle", - "sdk-Namespace-1617", - "sdk-Topics-5488", - armservicebus.SBTopic{ - Properties: &armservicebus.SBTopicProperties{ - EnableExpress: to.Ptr(true), - }, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/examples/Topics/SBTopicDelete.json -func ExampleTopicsClient_Delete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armservicebus.NewTopicsClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - _, err = client.Delete(ctx, - "ArunMonocle", - "sdk-Namespace-1617", - "sdk-Topics-5488", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/servicebus/resource-manager/Microsoft.ServiceBus/preview/2022-01-01-preview/examples/Topics/SBTopicGet.json -func ExampleTopicsClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armservicebus.NewTopicsClient("5f750a97-50d9-4e36-8081-c9ee4c0210d4", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "ArunMonocle", - "sdk-Namespace-1617", - "sdk-Topics-5488", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} diff --git a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_models_serde.go b/sdk/resourcemanager/servicebus/armservicebus/zz_generated_models_serde.go deleted file mode 100644 index 362ab1480f2c..000000000000 --- a/sdk/resourcemanager/servicebus/armservicebus/zz_generated_models_serde.go +++ /dev/null @@ -1,626 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armservicebus - -import ( - "encoding/json" - "fmt" - "github.com/Azure/azure-sdk-for-go/sdk/azcore" - "reflect" -) - -// MarshalJSON implements the json.Marshaller interface for type CorrelationFilter. -func (c CorrelationFilter) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "contentType", c.ContentType) - populate(objectMap, "correlationId", c.CorrelationID) - populate(objectMap, "label", c.Label) - populate(objectMap, "messageId", c.MessageID) - populate(objectMap, "properties", c.Properties) - populate(objectMap, "replyTo", c.ReplyTo) - populate(objectMap, "replyToSessionId", c.ReplyToSessionID) - populate(objectMap, "requiresPreprocessing", c.RequiresPreprocessing) - populate(objectMap, "sessionId", c.SessionID) - populate(objectMap, "to", c.To) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type Encryption. -func (e Encryption) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "keySource", e.KeySource) - populate(objectMap, "keyVaultProperties", e.KeyVaultProperties) - populate(objectMap, "requireInfrastructureEncryption", e.RequireInfrastructureEncryption) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type Identity. -func (i Identity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "principalId", i.PrincipalID) - populate(objectMap, "tenantId", i.TenantID) - populate(objectMap, "type", i.Type) - populate(objectMap, "userAssignedIdentities", i.UserAssignedIdentities) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type NetworkRuleSetProperties. -func (n NetworkRuleSetProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "defaultAction", n.DefaultAction) - populate(objectMap, "ipRules", n.IPRules) - populate(objectMap, "publicNetworkAccess", n.PublicNetworkAccess) - populate(objectMap, "trustedServiceAccessEnabled", n.TrustedServiceAccessEnabled) - populate(objectMap, "virtualNetworkRules", n.VirtualNetworkRules) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type ResourceNamespacePatch. -func (r ResourceNamespacePatch) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - 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) -} - -// MarshalJSON implements the json.Marshaller interface for type SBAuthorizationRuleProperties. -func (s SBAuthorizationRuleProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "rights", s.Rights) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type SBNamespace. -func (s SBNamespace) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", s.ID) - populate(objectMap, "identity", s.Identity) - populate(objectMap, "location", s.Location) - populate(objectMap, "name", s.Name) - populate(objectMap, "properties", s.Properties) - populate(objectMap, "sku", s.SKU) - populate(objectMap, "systemData", s.SystemData) - populate(objectMap, "tags", s.Tags) - populate(objectMap, "type", s.Type) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type SBNamespaceProperties. -func (s SBNamespaceProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "alternateName", s.AlternateName) - populateTimeRFC3339(objectMap, "createdAt", s.CreatedAt) - populate(objectMap, "disableLocalAuth", s.DisableLocalAuth) - populate(objectMap, "encryption", s.Encryption) - populate(objectMap, "metricId", s.MetricID) - populate(objectMap, "minimumTlsVersion", s.MinimumTLSVersion) - populate(objectMap, "privateEndpointConnections", s.PrivateEndpointConnections) - populate(objectMap, "provisioningState", s.ProvisioningState) - populate(objectMap, "publicNetworkAccess", s.PublicNetworkAccess) - populate(objectMap, "serviceBusEndpoint", s.ServiceBusEndpoint) - populate(objectMap, "status", s.Status) - populateTimeRFC3339(objectMap, "updatedAt", s.UpdatedAt) - populate(objectMap, "zoneRedundant", s.ZoneRedundant) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type SBNamespaceProperties. -func (s *SBNamespaceProperties) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "alternateName": - err = unpopulate(val, "AlternateName", &s.AlternateName) - delete(rawMsg, key) - case "createdAt": - err = unpopulateTimeRFC3339(val, "CreatedAt", &s.CreatedAt) - delete(rawMsg, key) - case "disableLocalAuth": - err = unpopulate(val, "DisableLocalAuth", &s.DisableLocalAuth) - delete(rawMsg, key) - case "encryption": - err = unpopulate(val, "Encryption", &s.Encryption) - delete(rawMsg, key) - case "metricId": - err = unpopulate(val, "MetricID", &s.MetricID) - delete(rawMsg, key) - case "minimumTlsVersion": - err = unpopulate(val, "MinimumTLSVersion", &s.MinimumTLSVersion) - delete(rawMsg, key) - case "privateEndpointConnections": - err = unpopulate(val, "PrivateEndpointConnections", &s.PrivateEndpointConnections) - delete(rawMsg, key) - case "provisioningState": - err = unpopulate(val, "ProvisioningState", &s.ProvisioningState) - delete(rawMsg, key) - case "publicNetworkAccess": - err = unpopulate(val, "PublicNetworkAccess", &s.PublicNetworkAccess) - delete(rawMsg, key) - case "serviceBusEndpoint": - err = unpopulate(val, "ServiceBusEndpoint", &s.ServiceBusEndpoint) - delete(rawMsg, key) - case "status": - err = unpopulate(val, "Status", &s.Status) - delete(rawMsg, key) - case "updatedAt": - err = unpopulateTimeRFC3339(val, "UpdatedAt", &s.UpdatedAt) - delete(rawMsg, key) - case "zoneRedundant": - err = unpopulate(val, "ZoneRedundant", &s.ZoneRedundant) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type SBNamespaceUpdateParameters. -func (s SBNamespaceUpdateParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", s.ID) - populate(objectMap, "identity", s.Identity) - populate(objectMap, "location", s.Location) - populate(objectMap, "name", s.Name) - populate(objectMap, "properties", s.Properties) - populate(objectMap, "sku", s.SKU) - populate(objectMap, "tags", s.Tags) - populate(objectMap, "type", s.Type) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type SBNamespaceUpdateProperties. -func (s SBNamespaceUpdateProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "alternateName", s.AlternateName) - populateTimeRFC3339(objectMap, "createdAt", s.CreatedAt) - populate(objectMap, "disableLocalAuth", s.DisableLocalAuth) - populate(objectMap, "encryption", s.Encryption) - populate(objectMap, "metricId", s.MetricID) - populate(objectMap, "privateEndpointConnections", s.PrivateEndpointConnections) - populate(objectMap, "provisioningState", s.ProvisioningState) - populate(objectMap, "serviceBusEndpoint", s.ServiceBusEndpoint) - populate(objectMap, "status", s.Status) - populateTimeRFC3339(objectMap, "updatedAt", s.UpdatedAt) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type SBNamespaceUpdateProperties. -func (s *SBNamespaceUpdateProperties) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "alternateName": - err = unpopulate(val, "AlternateName", &s.AlternateName) - delete(rawMsg, key) - case "createdAt": - err = unpopulateTimeRFC3339(val, "CreatedAt", &s.CreatedAt) - delete(rawMsg, key) - case "disableLocalAuth": - err = unpopulate(val, "DisableLocalAuth", &s.DisableLocalAuth) - delete(rawMsg, key) - case "encryption": - err = unpopulate(val, "Encryption", &s.Encryption) - delete(rawMsg, key) - case "metricId": - err = unpopulate(val, "MetricID", &s.MetricID) - delete(rawMsg, key) - case "privateEndpointConnections": - err = unpopulate(val, "PrivateEndpointConnections", &s.PrivateEndpointConnections) - delete(rawMsg, key) - case "provisioningState": - err = unpopulate(val, "ProvisioningState", &s.ProvisioningState) - delete(rawMsg, key) - case "serviceBusEndpoint": - err = unpopulate(val, "ServiceBusEndpoint", &s.ServiceBusEndpoint) - delete(rawMsg, key) - case "status": - err = unpopulate(val, "Status", &s.Status) - delete(rawMsg, key) - case "updatedAt": - err = unpopulateTimeRFC3339(val, "UpdatedAt", &s.UpdatedAt) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type SBQueueProperties. -func (s SBQueueProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populateTimeRFC3339(objectMap, "accessedAt", s.AccessedAt) - populate(objectMap, "autoDeleteOnIdle", s.AutoDeleteOnIdle) - populate(objectMap, "countDetails", s.CountDetails) - populateTimeRFC3339(objectMap, "createdAt", s.CreatedAt) - populate(objectMap, "deadLetteringOnMessageExpiration", s.DeadLetteringOnMessageExpiration) - populate(objectMap, "defaultMessageTimeToLive", s.DefaultMessageTimeToLive) - populate(objectMap, "duplicateDetectionHistoryTimeWindow", s.DuplicateDetectionHistoryTimeWindow) - populate(objectMap, "enableBatchedOperations", s.EnableBatchedOperations) - populate(objectMap, "enableExpress", s.EnableExpress) - populate(objectMap, "enablePartitioning", s.EnablePartitioning) - populate(objectMap, "forwardDeadLetteredMessagesTo", s.ForwardDeadLetteredMessagesTo) - populate(objectMap, "forwardTo", s.ForwardTo) - populate(objectMap, "lockDuration", s.LockDuration) - populate(objectMap, "maxDeliveryCount", s.MaxDeliveryCount) - populate(objectMap, "maxMessageSizeInKilobytes", s.MaxMessageSizeInKilobytes) - populate(objectMap, "maxSizeInMegabytes", s.MaxSizeInMegabytes) - populate(objectMap, "messageCount", s.MessageCount) - populate(objectMap, "requiresDuplicateDetection", s.RequiresDuplicateDetection) - populate(objectMap, "requiresSession", s.RequiresSession) - populate(objectMap, "sizeInBytes", s.SizeInBytes) - populate(objectMap, "status", s.Status) - populateTimeRFC3339(objectMap, "updatedAt", s.UpdatedAt) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type SBQueueProperties. -func (s *SBQueueProperties) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "accessedAt": - err = unpopulateTimeRFC3339(val, "AccessedAt", &s.AccessedAt) - delete(rawMsg, key) - case "autoDeleteOnIdle": - err = unpopulate(val, "AutoDeleteOnIdle", &s.AutoDeleteOnIdle) - delete(rawMsg, key) - case "countDetails": - err = unpopulate(val, "CountDetails", &s.CountDetails) - delete(rawMsg, key) - case "createdAt": - err = unpopulateTimeRFC3339(val, "CreatedAt", &s.CreatedAt) - delete(rawMsg, key) - case "deadLetteringOnMessageExpiration": - err = unpopulate(val, "DeadLetteringOnMessageExpiration", &s.DeadLetteringOnMessageExpiration) - delete(rawMsg, key) - case "defaultMessageTimeToLive": - err = unpopulate(val, "DefaultMessageTimeToLive", &s.DefaultMessageTimeToLive) - delete(rawMsg, key) - case "duplicateDetectionHistoryTimeWindow": - err = unpopulate(val, "DuplicateDetectionHistoryTimeWindow", &s.DuplicateDetectionHistoryTimeWindow) - delete(rawMsg, key) - case "enableBatchedOperations": - err = unpopulate(val, "EnableBatchedOperations", &s.EnableBatchedOperations) - delete(rawMsg, key) - case "enableExpress": - err = unpopulate(val, "EnableExpress", &s.EnableExpress) - delete(rawMsg, key) - case "enablePartitioning": - err = unpopulate(val, "EnablePartitioning", &s.EnablePartitioning) - delete(rawMsg, key) - case "forwardDeadLetteredMessagesTo": - err = unpopulate(val, "ForwardDeadLetteredMessagesTo", &s.ForwardDeadLetteredMessagesTo) - delete(rawMsg, key) - case "forwardTo": - err = unpopulate(val, "ForwardTo", &s.ForwardTo) - delete(rawMsg, key) - case "lockDuration": - err = unpopulate(val, "LockDuration", &s.LockDuration) - delete(rawMsg, key) - case "maxDeliveryCount": - err = unpopulate(val, "MaxDeliveryCount", &s.MaxDeliveryCount) - delete(rawMsg, key) - case "maxMessageSizeInKilobytes": - err = unpopulate(val, "MaxMessageSizeInKilobytes", &s.MaxMessageSizeInKilobytes) - delete(rawMsg, key) - case "maxSizeInMegabytes": - err = unpopulate(val, "MaxSizeInMegabytes", &s.MaxSizeInMegabytes) - delete(rawMsg, key) - case "messageCount": - err = unpopulate(val, "MessageCount", &s.MessageCount) - delete(rawMsg, key) - case "requiresDuplicateDetection": - err = unpopulate(val, "RequiresDuplicateDetection", &s.RequiresDuplicateDetection) - delete(rawMsg, key) - case "requiresSession": - err = unpopulate(val, "RequiresSession", &s.RequiresSession) - delete(rawMsg, key) - case "sizeInBytes": - err = unpopulate(val, "SizeInBytes", &s.SizeInBytes) - delete(rawMsg, key) - case "status": - err = unpopulate(val, "Status", &s.Status) - delete(rawMsg, key) - case "updatedAt": - err = unpopulateTimeRFC3339(val, "UpdatedAt", &s.UpdatedAt) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type SBSubscriptionProperties. -func (s SBSubscriptionProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populateTimeRFC3339(objectMap, "accessedAt", s.AccessedAt) - populate(objectMap, "autoDeleteOnIdle", s.AutoDeleteOnIdle) - populate(objectMap, "clientAffineProperties", s.ClientAffineProperties) - populate(objectMap, "countDetails", s.CountDetails) - populateTimeRFC3339(objectMap, "createdAt", s.CreatedAt) - populate(objectMap, "deadLetteringOnFilterEvaluationExceptions", s.DeadLetteringOnFilterEvaluationExceptions) - populate(objectMap, "deadLetteringOnMessageExpiration", s.DeadLetteringOnMessageExpiration) - populate(objectMap, "defaultMessageTimeToLive", s.DefaultMessageTimeToLive) - populate(objectMap, "duplicateDetectionHistoryTimeWindow", s.DuplicateDetectionHistoryTimeWindow) - populate(objectMap, "enableBatchedOperations", s.EnableBatchedOperations) - populate(objectMap, "forwardDeadLetteredMessagesTo", s.ForwardDeadLetteredMessagesTo) - populate(objectMap, "forwardTo", s.ForwardTo) - populate(objectMap, "isClientAffine", s.IsClientAffine) - populate(objectMap, "lockDuration", s.LockDuration) - populate(objectMap, "maxDeliveryCount", s.MaxDeliveryCount) - populate(objectMap, "messageCount", s.MessageCount) - populate(objectMap, "requiresSession", s.RequiresSession) - populate(objectMap, "status", s.Status) - populateTimeRFC3339(objectMap, "updatedAt", s.UpdatedAt) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type SBSubscriptionProperties. -func (s *SBSubscriptionProperties) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "accessedAt": - err = unpopulateTimeRFC3339(val, "AccessedAt", &s.AccessedAt) - delete(rawMsg, key) - case "autoDeleteOnIdle": - err = unpopulate(val, "AutoDeleteOnIdle", &s.AutoDeleteOnIdle) - delete(rawMsg, key) - case "clientAffineProperties": - err = unpopulate(val, "ClientAffineProperties", &s.ClientAffineProperties) - delete(rawMsg, key) - case "countDetails": - err = unpopulate(val, "CountDetails", &s.CountDetails) - delete(rawMsg, key) - case "createdAt": - err = unpopulateTimeRFC3339(val, "CreatedAt", &s.CreatedAt) - delete(rawMsg, key) - case "deadLetteringOnFilterEvaluationExceptions": - err = unpopulate(val, "DeadLetteringOnFilterEvaluationExceptions", &s.DeadLetteringOnFilterEvaluationExceptions) - delete(rawMsg, key) - case "deadLetteringOnMessageExpiration": - err = unpopulate(val, "DeadLetteringOnMessageExpiration", &s.DeadLetteringOnMessageExpiration) - delete(rawMsg, key) - case "defaultMessageTimeToLive": - err = unpopulate(val, "DefaultMessageTimeToLive", &s.DefaultMessageTimeToLive) - delete(rawMsg, key) - case "duplicateDetectionHistoryTimeWindow": - err = unpopulate(val, "DuplicateDetectionHistoryTimeWindow", &s.DuplicateDetectionHistoryTimeWindow) - delete(rawMsg, key) - case "enableBatchedOperations": - err = unpopulate(val, "EnableBatchedOperations", &s.EnableBatchedOperations) - delete(rawMsg, key) - case "forwardDeadLetteredMessagesTo": - err = unpopulate(val, "ForwardDeadLetteredMessagesTo", &s.ForwardDeadLetteredMessagesTo) - delete(rawMsg, key) - case "forwardTo": - err = unpopulate(val, "ForwardTo", &s.ForwardTo) - delete(rawMsg, key) - case "isClientAffine": - err = unpopulate(val, "IsClientAffine", &s.IsClientAffine) - delete(rawMsg, key) - case "lockDuration": - err = unpopulate(val, "LockDuration", &s.LockDuration) - delete(rawMsg, key) - case "maxDeliveryCount": - err = unpopulate(val, "MaxDeliveryCount", &s.MaxDeliveryCount) - delete(rawMsg, key) - case "messageCount": - err = unpopulate(val, "MessageCount", &s.MessageCount) - delete(rawMsg, key) - case "requiresSession": - err = unpopulate(val, "RequiresSession", &s.RequiresSession) - delete(rawMsg, key) - case "status": - err = unpopulate(val, "Status", &s.Status) - delete(rawMsg, key) - case "updatedAt": - err = unpopulateTimeRFC3339(val, "UpdatedAt", &s.UpdatedAt) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type SBTopicProperties. -func (s SBTopicProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populateTimeRFC3339(objectMap, "accessedAt", s.AccessedAt) - populate(objectMap, "autoDeleteOnIdle", s.AutoDeleteOnIdle) - populate(objectMap, "countDetails", s.CountDetails) - populateTimeRFC3339(objectMap, "createdAt", s.CreatedAt) - populate(objectMap, "defaultMessageTimeToLive", s.DefaultMessageTimeToLive) - populate(objectMap, "duplicateDetectionHistoryTimeWindow", s.DuplicateDetectionHistoryTimeWindow) - populate(objectMap, "enableBatchedOperations", s.EnableBatchedOperations) - populate(objectMap, "enableExpress", s.EnableExpress) - populate(objectMap, "enablePartitioning", s.EnablePartitioning) - populate(objectMap, "maxMessageSizeInKilobytes", s.MaxMessageSizeInKilobytes) - populate(objectMap, "maxSizeInMegabytes", s.MaxSizeInMegabytes) - populate(objectMap, "requiresDuplicateDetection", s.RequiresDuplicateDetection) - populate(objectMap, "sizeInBytes", s.SizeInBytes) - populate(objectMap, "status", s.Status) - populate(objectMap, "subscriptionCount", s.SubscriptionCount) - populate(objectMap, "supportOrdering", s.SupportOrdering) - populateTimeRFC3339(objectMap, "updatedAt", s.UpdatedAt) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type SBTopicProperties. -func (s *SBTopicProperties) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "accessedAt": - err = unpopulateTimeRFC3339(val, "AccessedAt", &s.AccessedAt) - delete(rawMsg, key) - case "autoDeleteOnIdle": - err = unpopulate(val, "AutoDeleteOnIdle", &s.AutoDeleteOnIdle) - delete(rawMsg, key) - case "countDetails": - err = unpopulate(val, "CountDetails", &s.CountDetails) - delete(rawMsg, key) - case "createdAt": - err = unpopulateTimeRFC3339(val, "CreatedAt", &s.CreatedAt) - delete(rawMsg, key) - case "defaultMessageTimeToLive": - err = unpopulate(val, "DefaultMessageTimeToLive", &s.DefaultMessageTimeToLive) - delete(rawMsg, key) - case "duplicateDetectionHistoryTimeWindow": - err = unpopulate(val, "DuplicateDetectionHistoryTimeWindow", &s.DuplicateDetectionHistoryTimeWindow) - delete(rawMsg, key) - case "enableBatchedOperations": - err = unpopulate(val, "EnableBatchedOperations", &s.EnableBatchedOperations) - delete(rawMsg, key) - case "enableExpress": - err = unpopulate(val, "EnableExpress", &s.EnableExpress) - delete(rawMsg, key) - case "enablePartitioning": - err = unpopulate(val, "EnablePartitioning", &s.EnablePartitioning) - delete(rawMsg, key) - case "maxMessageSizeInKilobytes": - err = unpopulate(val, "MaxMessageSizeInKilobytes", &s.MaxMessageSizeInKilobytes) - delete(rawMsg, key) - case "maxSizeInMegabytes": - err = unpopulate(val, "MaxSizeInMegabytes", &s.MaxSizeInMegabytes) - delete(rawMsg, key) - case "requiresDuplicateDetection": - err = unpopulate(val, "RequiresDuplicateDetection", &s.RequiresDuplicateDetection) - delete(rawMsg, key) - case "sizeInBytes": - err = unpopulate(val, "SizeInBytes", &s.SizeInBytes) - delete(rawMsg, key) - case "status": - err = unpopulate(val, "Status", &s.Status) - delete(rawMsg, key) - case "subscriptionCount": - err = unpopulate(val, "SubscriptionCount", &s.SubscriptionCount) - delete(rawMsg, key) - case "supportOrdering": - err = unpopulate(val, "SupportOrdering", &s.SupportOrdering) - delete(rawMsg, key) - case "updatedAt": - err = unpopulateTimeRFC3339(val, "UpdatedAt", &s.UpdatedAt) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type SystemData. -func (s SystemData) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populateTimeRFC3339(objectMap, "createdAt", s.CreatedAt) - populate(objectMap, "createdBy", s.CreatedBy) - populate(objectMap, "createdByType", s.CreatedByType) - populateTimeRFC3339(objectMap, "lastModifiedAt", s.LastModifiedAt) - populate(objectMap, "lastModifiedBy", s.LastModifiedBy) - populate(objectMap, "lastModifiedByType", s.LastModifiedByType) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type SystemData. -func (s *SystemData) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "createdAt": - err = unpopulateTimeRFC3339(val, "CreatedAt", &s.CreatedAt) - delete(rawMsg, key) - case "createdBy": - err = unpopulate(val, "CreatedBy", &s.CreatedBy) - delete(rawMsg, key) - case "createdByType": - err = unpopulate(val, "CreatedByType", &s.CreatedByType) - delete(rawMsg, key) - case "lastModifiedAt": - err = unpopulateTimeRFC3339(val, "LastModifiedAt", &s.LastModifiedAt) - delete(rawMsg, key) - case "lastModifiedBy": - err = unpopulate(val, "LastModifiedBy", &s.LastModifiedBy) - delete(rawMsg, key) - case "lastModifiedByType": - err = unpopulate(val, "LastModifiedByType", &s.LastModifiedByType) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type TrackedResource. -func (t TrackedResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", t.ID) - populate(objectMap, "location", t.Location) - populate(objectMap, "name", t.Name) - populate(objectMap, "tags", t.Tags) - populate(objectMap, "type", t.Type) - return json.Marshal(objectMap) -} - -func populate(m map[string]interface{}, k string, v interface{}) { - if v == nil { - return - } else if azcore.IsNullValue(v) { - m[k] = nil - } else if !reflect.ValueOf(v).IsNil() { - m[k] = v - } -} - -func unpopulate(data json.RawMessage, fn string, v interface{}) error { - if data == nil { - return nil - } - if err := json.Unmarshal(data, v); err != nil { - return fmt.Errorf("struct field %s: %v", fn, err) - } - return nil -} From 12fa54af0cf71e27f1e320889f7cb8737b53fd62 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Thu, 23 Feb 2023 21:22:05 -0500 Subject: [PATCH 052/107] [Release] sdk/resourcemanager/containerregistry/armcontainerregistry/0.7.0 generation from spec commit: 270d3cd664cca3ddc8511f92d3851a715e2c61db (#19948) Co-authored-by: ReleaseHelper --- .../armcontainerregistry/CHANGELOG.md | 41 + ...ntpools_client.go => agentpools_client.go} | 87 +- .../agentpools_client_example_test.go | 221 + .../armcontainerregistry/autorest.md | 6 +- .../armcontainerregistry/cacherules_client.go | 387 + .../cacherules_client_example_test.go | 194 + ...lient.go => connectedregistries_client.go} | 144 +- ...connectedregistries_client_example_test.go | 302 + ...zz_generated_constants.go => constants.go} | 33 +- .../containerregistry_build_live_test.go | 384 - .../containerregistry_live_test.go | 574 -- .../credentialsets_client.go | 390 + .../credentialsets_client_example_test.go | 254 + ...es_client.go => exportpipelines_client.go} | 91 +- .../exportpipelines_client_example_test.go | 189 + .../armcontainerregistry/go.mod | 14 +- .../armcontainerregistry/go.sum | 32 +- ...es_client.go => importpipelines_client.go} | 91 +- .../importpipelines_client_example_test.go | 227 + .../{zz_generated_models.go => models.go} | 241 +- .../armcontainerregistry/models_serde.go | 7744 +++++++++++++++++ ...rations_client.go => operations_client.go} | 13 +- .../operations_client_example_test.go | 55 + ...eruns_client.go => pipelineruns_client.go} | 90 +- .../pipelineruns_client_example_test.go | 296 + ...phic_helpers.go => polymorphic_helpers.go} | 7 +- ...o => privateendpointconnections_client.go} | 94 +- ...endpointconnections_client_example_test.go | 167 + ...istries_client.go => registries_client.go} | 288 +- .../registries_client_example_test.go | 1389 +++ ...tions_client.go => replications_client.go} | 117 +- .../replications_client_example_test.go | 273 + ...ed_response_types.go => response_types.go} | 169 +- ...enerated_runs_client.go => runs_client.go} | 70 +- .../runs_client_example_test.go | 283 + ...copemaps_client.go => scopemaps_client.go} | 111 +- .../scopemaps_client_example_test.go | 202 + ..._taskruns_client.go => taskruns_client.go} | 85 +- .../taskruns_client_example_test.go | 408 + ...erated_tasks_client.go => tasks_client.go} | 85 +- .../tasks_client_example_test.go | 1651 ++++ ...erated_time_rfc3339.go => time_rfc3339.go} | 3 +- ...ated_tokens_client.go => tokens_client.go} | 111 +- .../tokens_client_example_test.go | 218 + ..._webhooks_client.go => webhooks_client.go} | 162 +- .../webhooks_client_example_test.go | 353 + ...enerated_example_agentpools_client_test.go | 185 - ...example_connectedregistries_client_test.go | 208 - ...ted_example_exportpipelines_client_test.go | 134 - ...ted_example_importpipelines_client_test.go | 139 - ...enerated_example_operations_client_test.go | 41 - ...erated_example_pipelineruns_client_test.go | 133 - ..._privateendpointconnections_client_test.go | 127 - ...enerated_example_registries_client_test.go | 451 - ...erated_example_replications_client_test.go | 157 - .../ze_generated_example_runs_client_test.go | 124 - ...generated_example_scopemaps_client_test.go | 162 - ..._generated_example_taskruns_client_test.go | 202 - .../ze_generated_example_tasks_client_test.go | 285 - ...ze_generated_example_tokens_client_test.go | 171 - ..._generated_example_webhooks_client_test.go | 250 - .../zz_generated_models_serde.go | 2136 ----- 62 files changed, 16411 insertions(+), 6840 deletions(-) rename sdk/resourcemanager/containerregistry/armcontainerregistry/{zz_generated_agentpools_client.go => agentpools_client.go} (86%) create mode 100644 sdk/resourcemanager/containerregistry/armcontainerregistry/agentpools_client_example_test.go create mode 100644 sdk/resourcemanager/containerregistry/armcontainerregistry/cacherules_client.go create mode 100644 sdk/resourcemanager/containerregistry/armcontainerregistry/cacherules_client_example_test.go rename sdk/resourcemanager/containerregistry/armcontainerregistry/{zz_generated_connectedregistries_client.go => connectedregistries_client.go} (82%) create mode 100644 sdk/resourcemanager/containerregistry/armcontainerregistry/connectedregistries_client_example_test.go rename sdk/resourcemanager/containerregistry/armcontainerregistry/{zz_generated_constants.go => constants.go} (96%) delete mode 100644 sdk/resourcemanager/containerregistry/armcontainerregistry/containerregistry_build_live_test.go delete mode 100644 sdk/resourcemanager/containerregistry/armcontainerregistry/containerregistry_live_test.go create mode 100644 sdk/resourcemanager/containerregistry/armcontainerregistry/credentialsets_client.go create mode 100644 sdk/resourcemanager/containerregistry/armcontainerregistry/credentialsets_client_example_test.go rename sdk/resourcemanager/containerregistry/armcontainerregistry/{zz_generated_exportpipelines_client.go => exportpipelines_client.go} (82%) create mode 100644 sdk/resourcemanager/containerregistry/armcontainerregistry/exportpipelines_client_example_test.go rename sdk/resourcemanager/containerregistry/armcontainerregistry/{zz_generated_importpipelines_client.go => importpipelines_client.go} (82%) create mode 100644 sdk/resourcemanager/containerregistry/armcontainerregistry/importpipelines_client_example_test.go rename sdk/resourcemanager/containerregistry/armcontainerregistry/{zz_generated_models.go => models.go} (93%) create mode 100644 sdk/resourcemanager/containerregistry/armcontainerregistry/models_serde.go rename sdk/resourcemanager/containerregistry/armcontainerregistry/{zz_generated_operations_client.go => operations_client.go} (89%) create mode 100644 sdk/resourcemanager/containerregistry/armcontainerregistry/operations_client_example_test.go rename sdk/resourcemanager/containerregistry/armcontainerregistry/{zz_generated_pipelineruns_client.go => pipelineruns_client.go} (82%) create mode 100644 sdk/resourcemanager/containerregistry/armcontainerregistry/pipelineruns_client_example_test.go rename sdk/resourcemanager/containerregistry/armcontainerregistry/{zz_generated_polymorphic_helpers.go => polymorphic_helpers.go} (95%) rename sdk/resourcemanager/containerregistry/armcontainerregistry/{zz_generated_privateendpointconnections_client.go => privateendpointconnections_client.go} (82%) create mode 100644 sdk/resourcemanager/containerregistry/armcontainerregistry/privateendpointconnections_client_example_test.go rename sdk/resourcemanager/containerregistry/armcontainerregistry/{zz_generated_registries_client.go => registries_client.go} (82%) create mode 100644 sdk/resourcemanager/containerregistry/armcontainerregistry/registries_client_example_test.go rename sdk/resourcemanager/containerregistry/armcontainerregistry/{zz_generated_replications_client.go => replications_client.go} (82%) create mode 100644 sdk/resourcemanager/containerregistry/armcontainerregistry/replications_client_example_test.go rename sdk/resourcemanager/containerregistry/armcontainerregistry/{zz_generated_response_types.go => response_types.go} (76%) rename sdk/resourcemanager/containerregistry/armcontainerregistry/{zz_generated_runs_client.go => runs_client.go} (87%) create mode 100644 sdk/resourcemanager/containerregistry/armcontainerregistry/runs_client_example_test.go rename sdk/resourcemanager/containerregistry/armcontainerregistry/{zz_generated_scopemaps_client.go => scopemaps_client.go} (82%) create mode 100644 sdk/resourcemanager/containerregistry/armcontainerregistry/scopemaps_client_example_test.go rename sdk/resourcemanager/containerregistry/armcontainerregistry/{zz_generated_taskruns_client.go => taskruns_client.go} (86%) create mode 100644 sdk/resourcemanager/containerregistry/armcontainerregistry/taskruns_client_example_test.go rename sdk/resourcemanager/containerregistry/armcontainerregistry/{zz_generated_tasks_client.go => tasks_client.go} (86%) create mode 100644 sdk/resourcemanager/containerregistry/armcontainerregistry/tasks_client_example_test.go rename sdk/resourcemanager/containerregistry/armcontainerregistry/{zz_generated_time_rfc3339.go => time_rfc3339.go} (96%) rename sdk/resourcemanager/containerregistry/armcontainerregistry/{zz_generated_tokens_client.go => tokens_client.go} (82%) create mode 100644 sdk/resourcemanager/containerregistry/armcontainerregistry/tokens_client_example_test.go rename sdk/resourcemanager/containerregistry/armcontainerregistry/{zz_generated_webhooks_client.go => webhooks_client.go} (82%) create mode 100644 sdk/resourcemanager/containerregistry/armcontainerregistry/webhooks_client_example_test.go delete mode 100644 sdk/resourcemanager/containerregistry/armcontainerregistry/ze_generated_example_agentpools_client_test.go delete mode 100644 sdk/resourcemanager/containerregistry/armcontainerregistry/ze_generated_example_connectedregistries_client_test.go delete mode 100644 sdk/resourcemanager/containerregistry/armcontainerregistry/ze_generated_example_exportpipelines_client_test.go delete mode 100644 sdk/resourcemanager/containerregistry/armcontainerregistry/ze_generated_example_importpipelines_client_test.go delete mode 100644 sdk/resourcemanager/containerregistry/armcontainerregistry/ze_generated_example_operations_client_test.go delete mode 100644 sdk/resourcemanager/containerregistry/armcontainerregistry/ze_generated_example_pipelineruns_client_test.go delete mode 100644 sdk/resourcemanager/containerregistry/armcontainerregistry/ze_generated_example_privateendpointconnections_client_test.go delete mode 100644 sdk/resourcemanager/containerregistry/armcontainerregistry/ze_generated_example_registries_client_test.go delete mode 100644 sdk/resourcemanager/containerregistry/armcontainerregistry/ze_generated_example_replications_client_test.go delete mode 100644 sdk/resourcemanager/containerregistry/armcontainerregistry/ze_generated_example_runs_client_test.go delete mode 100644 sdk/resourcemanager/containerregistry/armcontainerregistry/ze_generated_example_scopemaps_client_test.go delete mode 100644 sdk/resourcemanager/containerregistry/armcontainerregistry/ze_generated_example_taskruns_client_test.go delete mode 100644 sdk/resourcemanager/containerregistry/armcontainerregistry/ze_generated_example_tasks_client_test.go delete mode 100644 sdk/resourcemanager/containerregistry/armcontainerregistry/ze_generated_example_tokens_client_test.go delete mode 100644 sdk/resourcemanager/containerregistry/armcontainerregistry/ze_generated_example_webhooks_client_test.go delete mode 100644 sdk/resourcemanager/containerregistry/armcontainerregistry/zz_generated_models_serde.go diff --git a/sdk/resourcemanager/containerregistry/armcontainerregistry/CHANGELOG.md b/sdk/resourcemanager/containerregistry/armcontainerregistry/CHANGELOG.md index 8d1b2a7d7e2b..52a53666bcaa 100644 --- a/sdk/resourcemanager/containerregistry/armcontainerregistry/CHANGELOG.md +++ b/sdk/resourcemanager/containerregistry/armcontainerregistry/CHANGELOG.md @@ -1,5 +1,46 @@ # Release History +## 0.7.0 (2023-02-24) +### Features Added + +- New type alias `CredentialHealthStatus` with values `CredentialHealthStatusHealthy`, `CredentialHealthStatusUnhealthy` +- New type alias `CredentialName` with values `CredentialNameCredential1` +- New function `NewCacheRulesClient(string, azcore.TokenCredential, *arm.ClientOptions) (*CacheRulesClient, error)` +- New function `*CacheRulesClient.BeginCreate(context.Context, string, string, string, CacheRule, *CacheRulesClientBeginCreateOptions) (*runtime.Poller[CacheRulesClientCreateResponse], error)` +- New function `*CacheRulesClient.BeginDelete(context.Context, string, string, string, *CacheRulesClientBeginDeleteOptions) (*runtime.Poller[CacheRulesClientDeleteResponse], error)` +- New function `*CacheRulesClient.Get(context.Context, string, string, string, *CacheRulesClientGetOptions) (CacheRulesClientGetResponse, error)` +- New function `*CacheRulesClient.NewListPager(string, string, *CacheRulesClientListOptions) *runtime.Pager[CacheRulesClientListResponse]` +- New function `*CacheRulesClient.BeginUpdate(context.Context, string, string, string, CacheRuleUpdateParameters, *CacheRulesClientBeginUpdateOptions) (*runtime.Poller[CacheRulesClientUpdateResponse], error)` +- New function `NewCredentialSetsClient(string, azcore.TokenCredential, *arm.ClientOptions) (*CredentialSetsClient, error)` +- New function `*CredentialSetsClient.BeginCreate(context.Context, string, string, string, CredentialSet, *CredentialSetsClientBeginCreateOptions) (*runtime.Poller[CredentialSetsClientCreateResponse], error)` +- New function `*CredentialSetsClient.BeginDelete(context.Context, string, string, string, *CredentialSetsClientBeginDeleteOptions) (*runtime.Poller[CredentialSetsClientDeleteResponse], error)` +- New function `*CredentialSetsClient.Get(context.Context, string, string, string, *CredentialSetsClientGetOptions) (CredentialSetsClientGetResponse, error)` +- New function `*CredentialSetsClient.NewListPager(string, string, *CredentialSetsClientListOptions) *runtime.Pager[CredentialSetsClientListResponse]` +- New function `*CredentialSetsClient.BeginUpdate(context.Context, string, string, string, CredentialSetUpdateParameters, *CredentialSetsClientBeginUpdateOptions) (*runtime.Poller[CredentialSetsClientUpdateResponse], error)` +- New struct `AuthCredential` +- New struct `CacheRule` +- New struct `CacheRuleProperties` +- New struct `CacheRuleUpdateParameters` +- New struct `CacheRuleUpdateProperties` +- New struct `CacheRulesClient` +- New struct `CacheRulesClientCreateResponse` +- New struct `CacheRulesClientDeleteResponse` +- New struct `CacheRulesClientListResponse` +- New struct `CacheRulesClientUpdateResponse` +- New struct `CacheRulesListResult` +- New struct `CredentialHealth` +- New struct `CredentialSet` +- New struct `CredentialSetListResult` +- New struct `CredentialSetProperties` +- New struct `CredentialSetUpdateParameters` +- New struct `CredentialSetUpdateProperties` +- New struct `CredentialSetsClient` +- New struct `CredentialSetsClientCreateResponse` +- New struct `CredentialSetsClientDeleteResponse` +- New struct `CredentialSetsClientListResponse` +- New struct `CredentialSetsClientUpdateResponse` + + ## 0.6.0 (2022-05-17) The package of `github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry` is using our [next generation design principles](https://azure.github.io/azure-sdk/general_introduction.html) since version 0.6.0, which contains breaking changes. diff --git a/sdk/resourcemanager/containerregistry/armcontainerregistry/zz_generated_agentpools_client.go b/sdk/resourcemanager/containerregistry/armcontainerregistry/agentpools_client.go similarity index 86% rename from sdk/resourcemanager/containerregistry/armcontainerregistry/zz_generated_agentpools_client.go rename to sdk/resourcemanager/containerregistry/armcontainerregistry/agentpools_client.go index 3b3b7da1b5c4..c1222fc8a009 100644 --- a/sdk/resourcemanager/containerregistry/armcontainerregistry/zz_generated_agentpools_client.go +++ b/sdk/resourcemanager/containerregistry/armcontainerregistry/agentpools_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armcontainerregistry @@ -31,9 +32,9 @@ type AgentPoolsClient struct { } // NewAgentPoolsClient creates a new instance of AgentPoolsClient with the specified values. -// subscriptionID - The Microsoft Azure subscription ID. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewAgentPoolsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*AgentPoolsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,12 +57,13 @@ func NewAgentPoolsClient(subscriptionID string, credential azcore.TokenCredentia // BeginCreate - Creates an agent pool for a container registry with the specified parameters. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2019-06-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// agentPoolName - The name of the agent pool. -// agentPool - The parameters of an agent pool that needs to scheduled. -// options - AgentPoolsClientBeginCreateOptions contains the optional parameters for the AgentPoolsClient.BeginCreate method. +// - resourceGroupName - The name of the resource group to which the container registry belongs. +// - registryName - The name of the container registry. +// - agentPoolName - The name of the agent pool. +// - agentPool - The parameters of an agent pool that needs to scheduled. +// - options - AgentPoolsClientBeginCreateOptions contains the optional parameters for the AgentPoolsClient.BeginCreate method. func (client *AgentPoolsClient) BeginCreate(ctx context.Context, resourceGroupName string, registryName string, agentPoolName string, agentPool AgentPool, options *AgentPoolsClientBeginCreateOptions) (*runtime.Poller[AgentPoolsClientCreateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.create(ctx, resourceGroupName, registryName, agentPoolName, agentPool, options) @@ -76,6 +78,7 @@ func (client *AgentPoolsClient) BeginCreate(ctx context.Context, resourceGroupNa // Create - Creates an agent pool for a container registry with the specified parameters. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2019-06-01-preview func (client *AgentPoolsClient) create(ctx context.Context, resourceGroupName string, registryName string, agentPoolName string, agentPool AgentPool, options *AgentPoolsClientBeginCreateOptions) (*http.Response, error) { req, err := client.createCreateRequest(ctx, resourceGroupName, registryName, agentPoolName, agentPool, options) @@ -95,9 +98,6 @@ func (client *AgentPoolsClient) create(ctx context.Context, resourceGroupName st // createCreateRequest creates the Create request. func (client *AgentPoolsClient) createCreateRequest(ctx context.Context, resourceGroupName string, registryName string, agentPoolName string, agentPool AgentPool, options *AgentPoolsClientBeginCreateOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/agentPools/{agentPoolName}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -124,11 +124,12 @@ func (client *AgentPoolsClient) createCreateRequest(ctx context.Context, resourc // BeginDelete - Deletes a specified agent pool resource. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2019-06-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// agentPoolName - The name of the agent pool. -// options - AgentPoolsClientBeginDeleteOptions contains the optional parameters for the AgentPoolsClient.BeginDelete method. +// - resourceGroupName - The name of the resource group to which the container registry belongs. +// - registryName - The name of the container registry. +// - agentPoolName - The name of the agent pool. +// - options - AgentPoolsClientBeginDeleteOptions contains the optional parameters for the AgentPoolsClient.BeginDelete method. func (client *AgentPoolsClient) BeginDelete(ctx context.Context, resourceGroupName string, registryName string, agentPoolName string, options *AgentPoolsClientBeginDeleteOptions) (*runtime.Poller[AgentPoolsClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, registryName, agentPoolName, options) @@ -143,6 +144,7 @@ func (client *AgentPoolsClient) BeginDelete(ctx context.Context, resourceGroupNa // Delete - Deletes a specified agent pool resource. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2019-06-01-preview func (client *AgentPoolsClient) deleteOperation(ctx context.Context, resourceGroupName string, registryName string, agentPoolName string, options *AgentPoolsClientBeginDeleteOptions) (*http.Response, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, registryName, agentPoolName, options) @@ -162,9 +164,6 @@ func (client *AgentPoolsClient) deleteOperation(ctx context.Context, resourceGro // deleteCreateRequest creates the Delete request. func (client *AgentPoolsClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, registryName string, agentPoolName string, options *AgentPoolsClientBeginDeleteOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/agentPools/{agentPoolName}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -191,11 +190,12 @@ func (client *AgentPoolsClient) deleteCreateRequest(ctx context.Context, resourc // Get - Gets the detailed information for a given agent pool. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2019-06-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// agentPoolName - The name of the agent pool. -// options - AgentPoolsClientGetOptions contains the optional parameters for the AgentPoolsClient.Get method. +// - resourceGroupName - The name of the resource group to which the container registry belongs. +// - registryName - The name of the container registry. +// - agentPoolName - The name of the agent pool. +// - options - AgentPoolsClientGetOptions contains the optional parameters for the AgentPoolsClient.Get method. func (client *AgentPoolsClient) Get(ctx context.Context, resourceGroupName string, registryName string, agentPoolName string, options *AgentPoolsClientGetOptions) (AgentPoolsClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, registryName, agentPoolName, options) if err != nil { @@ -214,9 +214,6 @@ func (client *AgentPoolsClient) Get(ctx context.Context, resourceGroupName strin // getCreateRequest creates the Get request. func (client *AgentPoolsClient) getCreateRequest(ctx context.Context, resourceGroupName string, registryName string, agentPoolName string, options *AgentPoolsClientGetOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/agentPools/{agentPoolName}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -252,12 +249,13 @@ func (client *AgentPoolsClient) getHandleResponse(resp *http.Response) (AgentPoo // GetQueueStatus - Gets the count of queued runs for a given agent pool. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2019-06-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// agentPoolName - The name of the agent pool. -// options - AgentPoolsClientGetQueueStatusOptions contains the optional parameters for the AgentPoolsClient.GetQueueStatus -// method. +// - resourceGroupName - The name of the resource group to which the container registry belongs. +// - registryName - The name of the container registry. +// - agentPoolName - The name of the agent pool. +// - options - AgentPoolsClientGetQueueStatusOptions contains the optional parameters for the AgentPoolsClient.GetQueueStatus +// method. func (client *AgentPoolsClient) GetQueueStatus(ctx context.Context, resourceGroupName string, registryName string, agentPoolName string, options *AgentPoolsClientGetQueueStatusOptions) (AgentPoolsClientGetQueueStatusResponse, error) { req, err := client.getQueueStatusCreateRequest(ctx, resourceGroupName, registryName, agentPoolName, options) if err != nil { @@ -276,9 +274,6 @@ func (client *AgentPoolsClient) GetQueueStatus(ctx context.Context, resourceGrou // getQueueStatusCreateRequest creates the GetQueueStatus request. func (client *AgentPoolsClient) getQueueStatusCreateRequest(ctx context.Context, resourceGroupName string, registryName string, agentPoolName string, options *AgentPoolsClientGetQueueStatusOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/agentPools/{agentPoolName}/listQueueStatus" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -313,11 +308,11 @@ func (client *AgentPoolsClient) getQueueStatusHandleResponse(resp *http.Response } // NewListPager - Lists all the agent pools for a specified container registry. -// If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2019-06-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// options - AgentPoolsClientListOptions contains the optional parameters for the AgentPoolsClient.List method. +// - resourceGroupName - The name of the resource group to which the container registry belongs. +// - registryName - The name of the container registry. +// - options - AgentPoolsClientListOptions contains the optional parameters for the AgentPoolsClient.NewListPager method. func (client *AgentPoolsClient) NewListPager(resourceGroupName string, registryName string, options *AgentPoolsClientListOptions) *runtime.Pager[AgentPoolsClientListResponse] { return runtime.NewPager(runtime.PagingHandler[AgentPoolsClientListResponse]{ More: func(page AgentPoolsClientListResponse) bool { @@ -349,9 +344,6 @@ func (client *AgentPoolsClient) NewListPager(resourceGroupName string, registryN // listCreateRequest creates the List request. func (client *AgentPoolsClient) listCreateRequest(ctx context.Context, resourceGroupName string, registryName string, options *AgentPoolsClientListOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/agentPools" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -383,12 +375,13 @@ func (client *AgentPoolsClient) listHandleResponse(resp *http.Response) (AgentPo // BeginUpdate - Updates an agent pool with the specified parameters. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2019-06-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// agentPoolName - The name of the agent pool. -// updateParameters - The parameters for updating an agent pool. -// options - AgentPoolsClientBeginUpdateOptions contains the optional parameters for the AgentPoolsClient.BeginUpdate method. +// - resourceGroupName - The name of the resource group to which the container registry belongs. +// - registryName - The name of the container registry. +// - agentPoolName - The name of the agent pool. +// - updateParameters - The parameters for updating an agent pool. +// - options - AgentPoolsClientBeginUpdateOptions contains the optional parameters for the AgentPoolsClient.BeginUpdate method. func (client *AgentPoolsClient) BeginUpdate(ctx context.Context, resourceGroupName string, registryName string, agentPoolName string, updateParameters AgentPoolUpdateParameters, options *AgentPoolsClientBeginUpdateOptions) (*runtime.Poller[AgentPoolsClientUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.update(ctx, resourceGroupName, registryName, agentPoolName, updateParameters, options) @@ -403,6 +396,7 @@ func (client *AgentPoolsClient) BeginUpdate(ctx context.Context, resourceGroupNa // Update - Updates an agent pool with the specified parameters. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2019-06-01-preview func (client *AgentPoolsClient) update(ctx context.Context, resourceGroupName string, registryName string, agentPoolName string, updateParameters AgentPoolUpdateParameters, options *AgentPoolsClientBeginUpdateOptions) (*http.Response, error) { req, err := client.updateCreateRequest(ctx, resourceGroupName, registryName, agentPoolName, updateParameters, options) @@ -422,9 +416,6 @@ func (client *AgentPoolsClient) update(ctx context.Context, resourceGroupName st // updateCreateRequest creates the Update request. func (client *AgentPoolsClient) updateCreateRequest(ctx context.Context, resourceGroupName string, registryName string, agentPoolName string, updateParameters AgentPoolUpdateParameters, options *AgentPoolsClientBeginUpdateOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/agentPools/{agentPoolName}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") diff --git a/sdk/resourcemanager/containerregistry/armcontainerregistry/agentpools_client_example_test.go b/sdk/resourcemanager/containerregistry/armcontainerregistry/agentpools_client_example_test.go new file mode 100644 index 000000000000..eef2068c5f7c --- /dev/null +++ b/sdk/resourcemanager/containerregistry/armcontainerregistry/agentpools_client_example_test.go @@ -0,0 +1,221 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armcontainerregistry_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/AgentPoolsGet.json +func ExampleAgentPoolsClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewAgentPoolsClient("4385cf00-2d3a-425a-832f-f4285b1c9dce", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "myResourceGroup", "myRegistry", "myAgentPool", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.AgentPool = armcontainerregistry.AgentPool{ + // Name: to.Ptr("myAgentPool"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/agentPools"), + // ID: to.Ptr("/subscriptions/f9d7ebed-adbd-4cb4-b973-aaf82c136138/resourceGroups/huanwudfwestgroup/providers/Microsoft.ContainerRegistry/registries/huanglidfwest01/agentPools/testagent26"), + // Location: to.Ptr("WESTUS"), + // Properties: &armcontainerregistry.AgentPoolProperties{ + // Count: to.Ptr[int32](1), + // OS: to.Ptr(armcontainerregistry.OSLinux), + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // Tier: to.Ptr("S1"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/AgentPoolsCreate.json +func ExampleAgentPoolsClient_BeginCreate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewAgentPoolsClient("4385cf00-2d3a-425a-832f-f4285b1c9dce", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreate(ctx, "myResourceGroup", "myRegistry", "myAgentPool", armcontainerregistry.AgentPool{ + Location: to.Ptr("WESTUS"), + Tags: map[string]*string{ + "key": to.Ptr("value"), + }, + Properties: &armcontainerregistry.AgentPoolProperties{ + Count: to.Ptr[int32](1), + OS: to.Ptr(armcontainerregistry.OSLinux), + Tier: to.Ptr("S1"), + }, + }, 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.AgentPool = armcontainerregistry.AgentPool{ + // Name: to.Ptr("myAgentPool"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/agentPools"), + // ID: to.Ptr("/subscriptions/f9d7ebed-adbd-4cb4-b973-aaf82c136138/resourceGroups/huanwudfwestgroup/providers/Microsoft.ContainerRegistry/registries/huanglidfwest01/agentPools/testagent26"), + // Location: to.Ptr("WESTUS"), + // Properties: &armcontainerregistry.AgentPoolProperties{ + // Count: to.Ptr[int32](1), + // OS: to.Ptr(armcontainerregistry.OSLinux), + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // Tier: to.Ptr("S1"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/AgentPoolsDelete.json +func ExampleAgentPoolsClient_BeginDelete() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewAgentPoolsClient("4385cf00-2d3a-425a-832f-f4285b1c9dce", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginDelete(ctx, "myResourceGroup", "myRegistry", "myAgentPool", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + _, err = poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/AgentPoolsUpdate.json +func ExampleAgentPoolsClient_BeginUpdate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewAgentPoolsClient("4385cf00-2d3a-425a-832f-f4285b1c9dce", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginUpdate(ctx, "myResourceGroup", "myRegistry", "myAgentPool", armcontainerregistry.AgentPoolUpdateParameters{ + Properties: &armcontainerregistry.AgentPoolPropertiesUpdateParameters{ + Count: to.Ptr[int32](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.AgentPool = armcontainerregistry.AgentPool{ + // Name: to.Ptr("myAgentPool"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/agentPools"), + // ID: to.Ptr("/subscriptions/f9d7ebed-adbd-4cb4-b973-aaf82c136138/resourceGroups/huanwudfwestgroup/providers/Microsoft.ContainerRegistry/registries/huanglidfwest01/agentPools/testagent26"), + // Location: to.Ptr("WESTUS"), + // Properties: &armcontainerregistry.AgentPoolProperties{ + // Count: to.Ptr[int32](1), + // OS: to.Ptr(armcontainerregistry.OSLinux), + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // Tier: to.Ptr("S1"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/AgentPoolsList.json +func ExampleAgentPoolsClient_NewListPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewAgentPoolsClient("4385cf00-2d3a-425a-832f-f4285b1c9dce", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListPager("myResourceGroup", "myRegistry", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.AgentPoolListResult = armcontainerregistry.AgentPoolListResult{ + // Value: []*armcontainerregistry.AgentPool{ + // { + // Name: to.Ptr("myAgentPool"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/agentPools"), + // ID: to.Ptr("/subscriptions/f9d7ebed-adbd-4cb4-b973-aaf82c136138/resourceGroups/huanwudfwestgroup/providers/Microsoft.ContainerRegistry/registries/huanglidfwest01/agentPools/testagent26"), + // Location: to.Ptr("WESTUS"), + // Properties: &armcontainerregistry.AgentPoolProperties{ + // Count: to.Ptr[int32](1), + // OS: to.Ptr(armcontainerregistry.OSLinux), + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // Tier: to.Ptr("S1"), + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/AgentPoolsGetQueueStatus.json +func ExampleAgentPoolsClient_GetQueueStatus() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewAgentPoolsClient("4385cf00-2d3a-425a-832f-f4285b1c9dce", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.GetQueueStatus(ctx, "myResourceGroup", "myRegistry", "myAgentPool", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.AgentPoolQueueStatus = armcontainerregistry.AgentPoolQueueStatus{ + // Count: to.Ptr[int32](10), + // } +} diff --git a/sdk/resourcemanager/containerregistry/armcontainerregistry/autorest.md b/sdk/resourcemanager/containerregistry/armcontainerregistry/autorest.md index 07cca00aaea8..4105c5e96b2c 100644 --- a/sdk/resourcemanager/containerregistry/armcontainerregistry/autorest.md +++ b/sdk/resourcemanager/containerregistry/armcontainerregistry/autorest.md @@ -5,8 +5,8 @@ ``` yaml azure-arm: true require: -- https://github.com/Azure/azure-rest-api-specs/blob/c767823fdfd9d5e96bad245e3ea4d14d94a716bb/specification/containerregistry/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/c767823fdfd9d5e96bad245e3ea4d14d94a716bb/specification/containerregistry/resource-manager/readme.go.md +- https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/readme.md +- https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 0.6.0 +module-version: 0.7.0 ``` \ No newline at end of file diff --git a/sdk/resourcemanager/containerregistry/armcontainerregistry/cacherules_client.go b/sdk/resourcemanager/containerregistry/armcontainerregistry/cacherules_client.go new file mode 100644 index 000000000000..c42c427b757c --- /dev/null +++ b/sdk/resourcemanager/containerregistry/armcontainerregistry/cacherules_client.go @@ -0,0 +1,387 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armcontainerregistry + +import ( + "context" + "errors" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "net/http" + "net/url" + "strings" +) + +// CacheRulesClient contains the methods for the CacheRules group. +// Don't use this type directly, use NewCacheRulesClient() instead. +type CacheRulesClient struct { + host string + subscriptionID string + pl runtime.Pipeline +} + +// NewCacheRulesClient creates a new instance of CacheRulesClient with the specified values. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. +func NewCacheRulesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*CacheRulesClient, error) { + if options == nil { + options = &arm.ClientOptions{} + } + ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err + } + client := &CacheRulesClient{ + subscriptionID: subscriptionID, + host: ep, + pl: pl, + } + return client, nil +} + +// BeginCreate - Creates a cache rule for a container registry with the specified parameters. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-01-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - registryName - The name of the container registry. +// - cacheRuleName - The name of the cache rule. +// - cacheRuleCreateParameters - The parameters for creating a cache rule. +// - options - CacheRulesClientBeginCreateOptions contains the optional parameters for the CacheRulesClient.BeginCreate method. +func (client *CacheRulesClient) BeginCreate(ctx context.Context, resourceGroupName string, registryName string, cacheRuleName string, cacheRuleCreateParameters CacheRule, options *CacheRulesClientBeginCreateOptions) (*runtime.Poller[CacheRulesClientCreateResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.create(ctx, resourceGroupName, registryName, cacheRuleName, cacheRuleCreateParameters, options) + if err != nil { + return nil, err + } + return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[CacheRulesClientCreateResponse]{ + FinalStateVia: runtime.FinalStateViaAzureAsyncOp, + }) + } else { + return runtime.NewPollerFromResumeToken[CacheRulesClientCreateResponse](options.ResumeToken, client.pl, nil) + } +} + +// Create - Creates a cache rule for a container registry with the specified parameters. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-01-01-preview +func (client *CacheRulesClient) create(ctx context.Context, resourceGroupName string, registryName string, cacheRuleName string, cacheRuleCreateParameters CacheRule, options *CacheRulesClientBeginCreateOptions) (*http.Response, error) { + req, err := client.createCreateRequest(ctx, resourceGroupName, registryName, cacheRuleName, cacheRuleCreateParameters, options) + if err != nil { + return nil, err + } + resp, err := client.pl.Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusCreated) { + return nil, runtime.NewResponseError(resp) + } + return resp, nil +} + +// createCreateRequest creates the Create request. +func (client *CacheRulesClient) createCreateRequest(ctx context.Context, resourceGroupName string, registryName string, cacheRuleName string, cacheRuleCreateParameters CacheRule, options *CacheRulesClientBeginCreateOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/cacheRules/{cacheRuleName}" + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if registryName == "" { + return nil, errors.New("parameter registryName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{registryName}", url.PathEscape(registryName)) + if cacheRuleName == "" { + return nil, errors.New("parameter cacheRuleName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{cacheRuleName}", url.PathEscape(cacheRuleName)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-01-01-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, runtime.MarshalAsJSON(req, cacheRuleCreateParameters) +} + +// BeginDelete - Deletes a cache rule resource from a container registry. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-01-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - registryName - The name of the container registry. +// - cacheRuleName - The name of the cache rule. +// - options - CacheRulesClientBeginDeleteOptions contains the optional parameters for the CacheRulesClient.BeginDelete method. +func (client *CacheRulesClient) BeginDelete(ctx context.Context, resourceGroupName string, registryName string, cacheRuleName string, options *CacheRulesClientBeginDeleteOptions) (*runtime.Poller[CacheRulesClientDeleteResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.deleteOperation(ctx, resourceGroupName, registryName, cacheRuleName, options) + if err != nil { + return nil, err + } + return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[CacheRulesClientDeleteResponse]{ + FinalStateVia: runtime.FinalStateViaLocation, + }) + } else { + return runtime.NewPollerFromResumeToken[CacheRulesClientDeleteResponse](options.ResumeToken, client.pl, nil) + } +} + +// Delete - Deletes a cache rule resource from a container registry. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-01-01-preview +func (client *CacheRulesClient) deleteOperation(ctx context.Context, resourceGroupName string, registryName string, cacheRuleName string, options *CacheRulesClientBeginDeleteOptions) (*http.Response, error) { + req, err := client.deleteCreateRequest(ctx, resourceGroupName, registryName, cacheRuleName, options) + if err != nil { + return nil, err + } + resp, err := client.pl.Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { + return nil, runtime.NewResponseError(resp) + } + return resp, nil +} + +// deleteCreateRequest creates the Delete request. +func (client *CacheRulesClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, registryName string, cacheRuleName string, options *CacheRulesClientBeginDeleteOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/cacheRules/{cacheRuleName}" + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if registryName == "" { + return nil, errors.New("parameter registryName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{registryName}", url.PathEscape(registryName)) + if cacheRuleName == "" { + return nil, errors.New("parameter cacheRuleName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{cacheRuleName}", url.PathEscape(cacheRuleName)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-01-01-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// Get - Gets the properties of the specified cache rule resource. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-01-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - registryName - The name of the container registry. +// - cacheRuleName - The name of the cache rule. +// - options - CacheRulesClientGetOptions contains the optional parameters for the CacheRulesClient.Get method. +func (client *CacheRulesClient) Get(ctx context.Context, resourceGroupName string, registryName string, cacheRuleName string, options *CacheRulesClientGetOptions) (CacheRulesClientGetResponse, error) { + req, err := client.getCreateRequest(ctx, resourceGroupName, registryName, cacheRuleName, options) + if err != nil { + return CacheRulesClientGetResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return CacheRulesClientGetResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return CacheRulesClientGetResponse{}, runtime.NewResponseError(resp) + } + return client.getHandleResponse(resp) +} + +// getCreateRequest creates the Get request. +func (client *CacheRulesClient) getCreateRequest(ctx context.Context, resourceGroupName string, registryName string, cacheRuleName string, options *CacheRulesClientGetOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/cacheRules/{cacheRuleName}" + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if registryName == "" { + return nil, errors.New("parameter registryName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{registryName}", url.PathEscape(registryName)) + if cacheRuleName == "" { + return nil, errors.New("parameter cacheRuleName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{cacheRuleName}", url.PathEscape(cacheRuleName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-01-01-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// getHandleResponse handles the Get response. +func (client *CacheRulesClient) getHandleResponse(resp *http.Response) (CacheRulesClientGetResponse, error) { + result := CacheRulesClientGetResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.CacheRule); err != nil { + return CacheRulesClientGetResponse{}, err + } + return result, nil +} + +// NewListPager - Lists all cache rule resources for the specified container registry. +// +// Generated from API version 2023-01-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - registryName - The name of the container registry. +// - options - CacheRulesClientListOptions contains the optional parameters for the CacheRulesClient.NewListPager method. +func (client *CacheRulesClient) NewListPager(resourceGroupName string, registryName string, options *CacheRulesClientListOptions) *runtime.Pager[CacheRulesClientListResponse] { + return runtime.NewPager(runtime.PagingHandler[CacheRulesClientListResponse]{ + More: func(page CacheRulesClientListResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 + }, + Fetcher: func(ctx context.Context, page *CacheRulesClientListResponse) (CacheRulesClientListResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listCreateRequest(ctx, resourceGroupName, registryName, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return CacheRulesClientListResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return CacheRulesClientListResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return CacheRulesClientListResponse{}, runtime.NewResponseError(resp) + } + return client.listHandleResponse(resp) + }, + }) +} + +// listCreateRequest creates the List request. +func (client *CacheRulesClient) listCreateRequest(ctx context.Context, resourceGroupName string, registryName string, options *CacheRulesClientListOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/cacheRules" + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if registryName == "" { + return nil, errors.New("parameter registryName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{registryName}", url.PathEscape(registryName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-01-01-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listHandleResponse handles the List response. +func (client *CacheRulesClient) listHandleResponse(resp *http.Response) (CacheRulesClientListResponse, error) { + result := CacheRulesClientListResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.CacheRulesListResult); err != nil { + return CacheRulesClientListResponse{}, err + } + return result, nil +} + +// BeginUpdate - Updates a cache rule for a container registry with the specified parameters. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-01-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - registryName - The name of the container registry. +// - cacheRuleName - The name of the cache rule. +// - cacheRuleUpdateParameters - The parameters for updating a cache rule. +// - options - CacheRulesClientBeginUpdateOptions contains the optional parameters for the CacheRulesClient.BeginUpdate method. +func (client *CacheRulesClient) BeginUpdate(ctx context.Context, resourceGroupName string, registryName string, cacheRuleName string, cacheRuleUpdateParameters CacheRuleUpdateParameters, options *CacheRulesClientBeginUpdateOptions) (*runtime.Poller[CacheRulesClientUpdateResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.update(ctx, resourceGroupName, registryName, cacheRuleName, cacheRuleUpdateParameters, options) + if err != nil { + return nil, err + } + return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[CacheRulesClientUpdateResponse]{ + FinalStateVia: runtime.FinalStateViaAzureAsyncOp, + }) + } else { + return runtime.NewPollerFromResumeToken[CacheRulesClientUpdateResponse](options.ResumeToken, client.pl, nil) + } +} + +// Update - Updates a cache rule for a container registry with the specified parameters. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-01-01-preview +func (client *CacheRulesClient) update(ctx context.Context, resourceGroupName string, registryName string, cacheRuleName string, cacheRuleUpdateParameters CacheRuleUpdateParameters, options *CacheRulesClientBeginUpdateOptions) (*http.Response, error) { + req, err := client.updateCreateRequest(ctx, resourceGroupName, registryName, cacheRuleName, cacheRuleUpdateParameters, options) + if err != nil { + return nil, err + } + resp, err := client.pl.Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusCreated) { + return nil, runtime.NewResponseError(resp) + } + return resp, nil +} + +// updateCreateRequest creates the Update request. +func (client *CacheRulesClient) updateCreateRequest(ctx context.Context, resourceGroupName string, registryName string, cacheRuleName string, cacheRuleUpdateParameters CacheRuleUpdateParameters, options *CacheRulesClientBeginUpdateOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/cacheRules/{cacheRuleName}" + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if registryName == "" { + return nil, errors.New("parameter registryName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{registryName}", url.PathEscape(registryName)) + if cacheRuleName == "" { + return nil, errors.New("parameter cacheRuleName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{cacheRuleName}", url.PathEscape(cacheRuleName)) + req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-01-01-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, runtime.MarshalAsJSON(req, cacheRuleUpdateParameters) +} diff --git a/sdk/resourcemanager/containerregistry/armcontainerregistry/cacherules_client_example_test.go b/sdk/resourcemanager/containerregistry/armcontainerregistry/cacherules_client_example_test.go new file mode 100644 index 000000000000..b513d2d6352b --- /dev/null +++ b/sdk/resourcemanager/containerregistry/armcontainerregistry/cacherules_client_example_test.go @@ -0,0 +1,194 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armcontainerregistry_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2023-01-01-preview/examples/CacheRuleList.json +func ExampleCacheRulesClient_NewListPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewCacheRulesClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListPager("myResourceGroup", "myRegistry", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.CacheRulesListResult = armcontainerregistry.CacheRulesListResult{ + // Value: []*armcontainerregistry.CacheRule{ + // { + // Name: to.Ptr("myCacheRule"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/cacheRules"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/cacheRules/myCacheRule"), + // Properties: &armcontainerregistry.CacheRuleProperties{ + // CreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-11-07T18:20:33.8374968+00:00"); return t}()), + // CredentialSetResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/credentialSets/myCredentialSet"), + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // SourceRepository: to.Ptr("docker.io/library/hello-world"), + // TargetRepository: to.Ptr("cached-docker-hub/hello-world"), + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2023-01-01-preview/examples/CacheRuleGet.json +func ExampleCacheRulesClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewCacheRulesClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "myResourceGroup", "myRegistry", "myCacheRule", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.CacheRule = armcontainerregistry.CacheRule{ + // Name: to.Ptr("myCacheRule"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/cacheRules"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/cacheRules/myCacheRule"), + // Properties: &armcontainerregistry.CacheRuleProperties{ + // CreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-11-07T18:20:33.8374968+00:00"); return t}()), + // CredentialSetResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/credentialSets/myCredentialSet"), + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // SourceRepository: to.Ptr("docker.io/library/hello-world"), + // TargetRepository: to.Ptr("cached-docker-hub/hello-world"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2023-01-01-preview/examples/CacheRuleCreate.json +func ExampleCacheRulesClient_BeginCreate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewCacheRulesClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreate(ctx, "myResourceGroup", "myRegistry", "myCacheRule", armcontainerregistry.CacheRule{ + Properties: &armcontainerregistry.CacheRuleProperties{ + CredentialSetResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/credentialSets/myCredentialSet"), + SourceRepository: to.Ptr("docker.io/library/hello-world"), + TargetRepository: to.Ptr("cached-docker-hub/hello-world"), + }, + }, 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.CacheRule = armcontainerregistry.CacheRule{ + // Name: to.Ptr("myCacheRule"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/cacheRules"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/cacheRules/myCacheRule"), + // Properties: &armcontainerregistry.CacheRuleProperties{ + // CreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-11-07T18:20:33.8374968+00:00"); return t}()), + // CredentialSetResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/credentialSets/myCredentialSet"), + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // SourceRepository: to.Ptr("docker.io/library/hello-world"), + // TargetRepository: to.Ptr("cached-docker-hub/hello-world"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2023-01-01-preview/examples/CacheRuleDelete.json +func ExampleCacheRulesClient_BeginDelete() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewCacheRulesClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginDelete(ctx, "myResourceGroup", "myRegistry", "myCacheRule", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + _, err = poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2023-01-01-preview/examples/CacheRuleUpdate.json +func ExampleCacheRulesClient_BeginUpdate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewCacheRulesClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginUpdate(ctx, "myResourceGroup", "myRegistry", "myCacheRule", armcontainerregistry.CacheRuleUpdateParameters{ + Properties: &armcontainerregistry.CacheRuleUpdateProperties{ + CredentialSetResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/credentialSets/myCredentialSet2"), + }, + }, 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.CacheRule = armcontainerregistry.CacheRule{ + // Name: to.Ptr("myCacheRule"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/cacheRules"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/cacheRules/myCacheRule"), + // Properties: &armcontainerregistry.CacheRuleProperties{ + // CreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-11-07T18:20:33.8374968+00:00"); return t}()), + // CredentialSetResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/credentialSets/myCredentialSet2"), + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // SourceRepository: to.Ptr("docker.io/library/hello-world"), + // TargetRepository: to.Ptr("cached-docker-hub/hello-world"), + // }, + // } +} diff --git a/sdk/resourcemanager/containerregistry/armcontainerregistry/zz_generated_connectedregistries_client.go b/sdk/resourcemanager/containerregistry/armcontainerregistry/connectedregistries_client.go similarity index 82% rename from sdk/resourcemanager/containerregistry/armcontainerregistry/zz_generated_connectedregistries_client.go rename to sdk/resourcemanager/containerregistry/armcontainerregistry/connectedregistries_client.go index 2d4cc09eccaf..36e3533899a8 100644 --- a/sdk/resourcemanager/containerregistry/armcontainerregistry/zz_generated_connectedregistries_client.go +++ b/sdk/resourcemanager/containerregistry/armcontainerregistry/connectedregistries_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armcontainerregistry @@ -31,9 +32,9 @@ type ConnectedRegistriesClient struct { } // NewConnectedRegistriesClient creates a new instance of ConnectedRegistriesClient with the specified values. -// subscriptionID - The Microsoft Azure subscription ID. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewConnectedRegistriesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ConnectedRegistriesClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,20 +57,23 @@ func NewConnectedRegistriesClient(subscriptionID string, credential azcore.Token // BeginCreate - Creates a connected registry for a container registry with the specified parameters. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// connectedRegistryName - The name of the connected registry. -// connectedRegistryCreateParameters - The parameters for creating a connectedRegistry. -// options - ConnectedRegistriesClientBeginCreateOptions contains the optional parameters for the ConnectedRegistriesClient.BeginCreate -// method. +// +// Generated from API version 2023-01-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - registryName - The name of the container registry. +// - connectedRegistryName - The name of the connected registry. +// - connectedRegistryCreateParameters - The parameters for creating a connectedRegistry. +// - options - ConnectedRegistriesClientBeginCreateOptions contains the optional parameters for the ConnectedRegistriesClient.BeginCreate +// method. func (client *ConnectedRegistriesClient) BeginCreate(ctx context.Context, resourceGroupName string, registryName string, connectedRegistryName string, connectedRegistryCreateParameters ConnectedRegistry, options *ConnectedRegistriesClientBeginCreateOptions) (*runtime.Poller[ConnectedRegistriesClientCreateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.create(ctx, resourceGroupName, registryName, connectedRegistryName, connectedRegistryCreateParameters, options) if err != nil { return nil, err } - return runtime.NewPoller[ConnectedRegistriesClientCreateResponse](resp, client.pl, nil) + return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[ConnectedRegistriesClientCreateResponse]{ + FinalStateVia: runtime.FinalStateViaAzureAsyncOp, + }) } else { return runtime.NewPollerFromResumeToken[ConnectedRegistriesClientCreateResponse](options.ResumeToken, client.pl, nil) } @@ -77,7 +81,8 @@ func (client *ConnectedRegistriesClient) BeginCreate(ctx context.Context, resour // Create - Creates a connected registry for a container registry with the specified parameters. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview +// +// Generated from API version 2023-01-01-preview func (client *ConnectedRegistriesClient) create(ctx context.Context, resourceGroupName string, registryName string, connectedRegistryName string, connectedRegistryCreateParameters ConnectedRegistry, options *ConnectedRegistriesClientBeginCreateOptions) (*http.Response, error) { req, err := client.createCreateRequest(ctx, resourceGroupName, registryName, connectedRegistryName, connectedRegistryCreateParameters, options) if err != nil { @@ -96,9 +101,6 @@ func (client *ConnectedRegistriesClient) create(ctx context.Context, resourceGro // createCreateRequest creates the Create request. func (client *ConnectedRegistriesClient) createCreateRequest(ctx context.Context, resourceGroupName string, registryName string, connectedRegistryName string, connectedRegistryCreateParameters ConnectedRegistry, options *ConnectedRegistriesClientBeginCreateOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/connectedRegistries/{connectedRegistryName}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -117,7 +119,7 @@ func (client *ConnectedRegistriesClient) createCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-01-preview") + reqQP.Set("api-version", "2023-01-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, connectedRegistryCreateParameters) @@ -125,19 +127,22 @@ func (client *ConnectedRegistriesClient) createCreateRequest(ctx context.Context // BeginDeactivate - Deactivates the connected registry instance. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// connectedRegistryName - The name of the connected registry. -// options - ConnectedRegistriesClientBeginDeactivateOptions contains the optional parameters for the ConnectedRegistriesClient.BeginDeactivate -// method. +// +// Generated from API version 2023-01-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - registryName - The name of the container registry. +// - connectedRegistryName - The name of the connected registry. +// - options - ConnectedRegistriesClientBeginDeactivateOptions contains the optional parameters for the ConnectedRegistriesClient.BeginDeactivate +// method. func (client *ConnectedRegistriesClient) BeginDeactivate(ctx context.Context, resourceGroupName string, registryName string, connectedRegistryName string, options *ConnectedRegistriesClientBeginDeactivateOptions) (*runtime.Poller[ConnectedRegistriesClientDeactivateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deactivate(ctx, resourceGroupName, registryName, connectedRegistryName, options) if err != nil { return nil, err } - return runtime.NewPoller[ConnectedRegistriesClientDeactivateResponse](resp, client.pl, nil) + return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[ConnectedRegistriesClientDeactivateResponse]{ + FinalStateVia: runtime.FinalStateViaLocation, + }) } else { return runtime.NewPollerFromResumeToken[ConnectedRegistriesClientDeactivateResponse](options.ResumeToken, client.pl, nil) } @@ -145,7 +150,8 @@ func (client *ConnectedRegistriesClient) BeginDeactivate(ctx context.Context, re // Deactivate - Deactivates the connected registry instance. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview +// +// Generated from API version 2023-01-01-preview func (client *ConnectedRegistriesClient) deactivate(ctx context.Context, resourceGroupName string, registryName string, connectedRegistryName string, options *ConnectedRegistriesClientBeginDeactivateOptions) (*http.Response, error) { req, err := client.deactivateCreateRequest(ctx, resourceGroupName, registryName, connectedRegistryName, options) if err != nil { @@ -164,9 +170,6 @@ func (client *ConnectedRegistriesClient) deactivate(ctx context.Context, resourc // deactivateCreateRequest creates the Deactivate request. func (client *ConnectedRegistriesClient) deactivateCreateRequest(ctx context.Context, resourceGroupName string, registryName string, connectedRegistryName string, options *ConnectedRegistriesClientBeginDeactivateOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/connectedRegistries/{connectedRegistryName}/deactivate" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -185,7 +188,7 @@ func (client *ConnectedRegistriesClient) deactivateCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-01-preview") + reqQP.Set("api-version", "2023-01-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -193,19 +196,22 @@ func (client *ConnectedRegistriesClient) deactivateCreateRequest(ctx context.Con // BeginDelete - Deletes a connected registry from a container registry. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// connectedRegistryName - The name of the connected registry. -// options - ConnectedRegistriesClientBeginDeleteOptions contains the optional parameters for the ConnectedRegistriesClient.BeginDelete -// method. +// +// Generated from API version 2023-01-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - registryName - The name of the container registry. +// - connectedRegistryName - The name of the connected registry. +// - options - ConnectedRegistriesClientBeginDeleteOptions contains the optional parameters for the ConnectedRegistriesClient.BeginDelete +// method. func (client *ConnectedRegistriesClient) BeginDelete(ctx context.Context, resourceGroupName string, registryName string, connectedRegistryName string, options *ConnectedRegistriesClientBeginDeleteOptions) (*runtime.Poller[ConnectedRegistriesClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, registryName, connectedRegistryName, options) if err != nil { return nil, err } - return runtime.NewPoller[ConnectedRegistriesClientDeleteResponse](resp, client.pl, nil) + return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[ConnectedRegistriesClientDeleteResponse]{ + FinalStateVia: runtime.FinalStateViaLocation, + }) } else { return runtime.NewPollerFromResumeToken[ConnectedRegistriesClientDeleteResponse](options.ResumeToken, client.pl, nil) } @@ -213,7 +219,8 @@ func (client *ConnectedRegistriesClient) BeginDelete(ctx context.Context, resour // Delete - Deletes a connected registry from a container registry. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview +// +// Generated from API version 2023-01-01-preview func (client *ConnectedRegistriesClient) deleteOperation(ctx context.Context, resourceGroupName string, registryName string, connectedRegistryName string, options *ConnectedRegistriesClientBeginDeleteOptions) (*http.Response, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, registryName, connectedRegistryName, options) if err != nil { @@ -232,9 +239,6 @@ func (client *ConnectedRegistriesClient) deleteOperation(ctx context.Context, re // deleteCreateRequest creates the Delete request. func (client *ConnectedRegistriesClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, registryName string, connectedRegistryName string, options *ConnectedRegistriesClientBeginDeleteOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/connectedRegistries/{connectedRegistryName}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -253,7 +257,7 @@ func (client *ConnectedRegistriesClient) deleteCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-01-preview") + reqQP.Set("api-version", "2023-01-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -261,11 +265,12 @@ func (client *ConnectedRegistriesClient) deleteCreateRequest(ctx context.Context // Get - Gets the properties of the connected registry. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// connectedRegistryName - The name of the connected registry. -// options - ConnectedRegistriesClientGetOptions contains the optional parameters for the ConnectedRegistriesClient.Get method. +// +// Generated from API version 2023-01-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - registryName - The name of the container registry. +// - connectedRegistryName - The name of the connected registry. +// - options - ConnectedRegistriesClientGetOptions contains the optional parameters for the ConnectedRegistriesClient.Get method. func (client *ConnectedRegistriesClient) Get(ctx context.Context, resourceGroupName string, registryName string, connectedRegistryName string, options *ConnectedRegistriesClientGetOptions) (ConnectedRegistriesClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, registryName, connectedRegistryName, options) if err != nil { @@ -284,9 +289,6 @@ func (client *ConnectedRegistriesClient) Get(ctx context.Context, resourceGroupN // getCreateRequest creates the Get request. func (client *ConnectedRegistriesClient) getCreateRequest(ctx context.Context, resourceGroupName string, registryName string, connectedRegistryName string, options *ConnectedRegistriesClientGetOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/connectedRegistries/{connectedRegistryName}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -305,7 +307,7 @@ func (client *ConnectedRegistriesClient) getCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-01-preview") + reqQP.Set("api-version", "2023-01-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -321,12 +323,12 @@ func (client *ConnectedRegistriesClient) getHandleResponse(resp *http.Response) } // NewListPager - Lists all connected registries for the specified container registry. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// options - ConnectedRegistriesClientListOptions contains the optional parameters for the ConnectedRegistriesClient.List -// method. +// +// Generated from API version 2023-01-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - registryName - The name of the container registry. +// - options - ConnectedRegistriesClientListOptions contains the optional parameters for the ConnectedRegistriesClient.NewListPager +// method. func (client *ConnectedRegistriesClient) NewListPager(resourceGroupName string, registryName string, options *ConnectedRegistriesClientListOptions) *runtime.Pager[ConnectedRegistriesClientListResponse] { return runtime.NewPager(runtime.PagingHandler[ConnectedRegistriesClientListResponse]{ More: func(page ConnectedRegistriesClientListResponse) bool { @@ -358,9 +360,6 @@ func (client *ConnectedRegistriesClient) NewListPager(resourceGroupName string, // listCreateRequest creates the List request. func (client *ConnectedRegistriesClient) listCreateRequest(ctx context.Context, resourceGroupName string, registryName string, options *ConnectedRegistriesClientListOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/connectedRegistries" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -375,7 +374,7 @@ func (client *ConnectedRegistriesClient) listCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-01-preview") + reqQP.Set("api-version", "2023-01-01-preview") if options != nil && options.Filter != nil { reqQP.Set("$filter", *options.Filter) } @@ -395,20 +394,23 @@ func (client *ConnectedRegistriesClient) listHandleResponse(resp *http.Response) // BeginUpdate - Updates a connected registry with the specified parameters. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// connectedRegistryName - The name of the connected registry. -// connectedRegistryUpdateParameters - The parameters for updating a connectedRegistry. -// options - ConnectedRegistriesClientBeginUpdateOptions contains the optional parameters for the ConnectedRegistriesClient.BeginUpdate -// method. +// +// Generated from API version 2023-01-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - registryName - The name of the container registry. +// - connectedRegistryName - The name of the connected registry. +// - connectedRegistryUpdateParameters - The parameters for updating a connectedRegistry. +// - options - ConnectedRegistriesClientBeginUpdateOptions contains the optional parameters for the ConnectedRegistriesClient.BeginUpdate +// method. func (client *ConnectedRegistriesClient) BeginUpdate(ctx context.Context, resourceGroupName string, registryName string, connectedRegistryName string, connectedRegistryUpdateParameters ConnectedRegistryUpdateParameters, options *ConnectedRegistriesClientBeginUpdateOptions) (*runtime.Poller[ConnectedRegistriesClientUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.update(ctx, resourceGroupName, registryName, connectedRegistryName, connectedRegistryUpdateParameters, options) if err != nil { return nil, err } - return runtime.NewPoller[ConnectedRegistriesClientUpdateResponse](resp, client.pl, nil) + return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[ConnectedRegistriesClientUpdateResponse]{ + FinalStateVia: runtime.FinalStateViaAzureAsyncOp, + }) } else { return runtime.NewPollerFromResumeToken[ConnectedRegistriesClientUpdateResponse](options.ResumeToken, client.pl, nil) } @@ -416,7 +418,8 @@ func (client *ConnectedRegistriesClient) BeginUpdate(ctx context.Context, resour // Update - Updates a connected registry with the specified parameters. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview +// +// Generated from API version 2023-01-01-preview func (client *ConnectedRegistriesClient) update(ctx context.Context, resourceGroupName string, registryName string, connectedRegistryName string, connectedRegistryUpdateParameters ConnectedRegistryUpdateParameters, options *ConnectedRegistriesClientBeginUpdateOptions) (*http.Response, error) { req, err := client.updateCreateRequest(ctx, resourceGroupName, registryName, connectedRegistryName, connectedRegistryUpdateParameters, options) if err != nil { @@ -435,9 +438,6 @@ func (client *ConnectedRegistriesClient) update(ctx context.Context, resourceGro // updateCreateRequest creates the Update request. func (client *ConnectedRegistriesClient) updateCreateRequest(ctx context.Context, resourceGroupName string, registryName string, connectedRegistryName string, connectedRegistryUpdateParameters ConnectedRegistryUpdateParameters, options *ConnectedRegistriesClientBeginUpdateOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/connectedRegistries/{connectedRegistryName}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -456,7 +456,7 @@ func (client *ConnectedRegistriesClient) updateCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-01-preview") + reqQP.Set("api-version", "2023-01-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, connectedRegistryUpdateParameters) diff --git a/sdk/resourcemanager/containerregistry/armcontainerregistry/connectedregistries_client_example_test.go b/sdk/resourcemanager/containerregistry/armcontainerregistry/connectedregistries_client_example_test.go new file mode 100644 index 000000000000..61894214bd07 --- /dev/null +++ b/sdk/resourcemanager/containerregistry/armcontainerregistry/connectedregistries_client_example_test.go @@ -0,0 +1,302 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armcontainerregistry_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2023-01-01-preview/examples/ConnectedRegistryList.json +func ExampleConnectedRegistriesClient_NewListPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewConnectedRegistriesClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListPager("myResourceGroup", "myRegistry", &armcontainerregistry.ConnectedRegistriesClientListOptions{Filter: nil}) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.ConnectedRegistryListResult = armcontainerregistry.ConnectedRegistryListResult{ + // Value: []*armcontainerregistry.ConnectedRegistry{ + // { + // Name: to.Ptr("myConnectedRegistry"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/connectedRegistries"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/connectedRegistries/myConnectedRegistry"), + // Properties: &armcontainerregistry.ConnectedRegistryProperties{ + // Activation: &armcontainerregistry.ActivationProperties{ + // Status: to.Ptr(armcontainerregistry.ActivationStatusInactive), + // }, + // ClientTokenIDs: []*string{ + // to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tokens/client1Token")}, + // Logging: &armcontainerregistry.LoggingProperties{ + // AuditLogStatus: to.Ptr(armcontainerregistry.AuditLogStatusDisabled), + // LogLevel: to.Ptr(armcontainerregistry.LogLevelInformation), + // }, + // Mode: to.Ptr(armcontainerregistry.ConnectedRegistryModeReadWrite), + // NotificationsList: []*string{ + // to.Ptr("hello-world:*:*"), + // to.Ptr("sample/repo/*:1.0:*")}, + // Parent: &armcontainerregistry.ParentProperties{ + // SyncProperties: &armcontainerregistry.SyncProperties{ + // MessageTTL: to.Ptr("P2D"), + // Schedule: to.Ptr("0 9 * * *"), + // SyncWindow: to.Ptr("PT3H"), + // TokenID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tokens/syncToken"), + // }, + // }, + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2023-01-01-preview/examples/ConnectedRegistryGet.json +func ExampleConnectedRegistriesClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewConnectedRegistriesClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "myResourceGroup", "myRegistry", "myConnectedRegistry", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.ConnectedRegistry = armcontainerregistry.ConnectedRegistry{ + // Name: to.Ptr("myConnectedRegistry"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/connectedRegistries"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/connectedRegistries/myConnectedRegistry"), + // Properties: &armcontainerregistry.ConnectedRegistryProperties{ + // Activation: &armcontainerregistry.ActivationProperties{ + // Status: to.Ptr(armcontainerregistry.ActivationStatusInactive), + // }, + // ClientTokenIDs: []*string{ + // to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tokens/client1Token")}, + // Logging: &armcontainerregistry.LoggingProperties{ + // AuditLogStatus: to.Ptr(armcontainerregistry.AuditLogStatusDisabled), + // LogLevel: to.Ptr(armcontainerregistry.LogLevelInformation), + // }, + // Mode: to.Ptr(armcontainerregistry.ConnectedRegistryModeReadWrite), + // NotificationsList: []*string{ + // to.Ptr("hello-world:*:*"), + // to.Ptr("sample/repo/*:1.0:*")}, + // Parent: &armcontainerregistry.ParentProperties{ + // SyncProperties: &armcontainerregistry.SyncProperties{ + // MessageTTL: to.Ptr("P2D"), + // Schedule: to.Ptr("0 9 * * *"), + // SyncWindow: to.Ptr("PT3H"), + // TokenID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tokens/syncToken"), + // }, + // }, + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2023-01-01-preview/examples/ConnectedRegistryCreate.json +func ExampleConnectedRegistriesClient_BeginCreate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewConnectedRegistriesClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreate(ctx, "myResourceGroup", "myRegistry", "myConnectedRegistry", armcontainerregistry.ConnectedRegistry{ + Properties: &armcontainerregistry.ConnectedRegistryProperties{ + ClientTokenIDs: []*string{ + to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tokens/client1Token")}, + Mode: to.Ptr(armcontainerregistry.ConnectedRegistryModeReadWrite), + NotificationsList: []*string{ + to.Ptr("hello-world:*:*"), + to.Ptr("sample/repo/*:1.0:*")}, + Parent: &armcontainerregistry.ParentProperties{ + SyncProperties: &armcontainerregistry.SyncProperties{ + MessageTTL: to.Ptr("P2D"), + Schedule: to.Ptr("0 9 * * *"), + SyncWindow: to.Ptr("PT3H"), + TokenID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tokens/syncToken"), + }, + }, + }, + }, 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.ConnectedRegistry = armcontainerregistry.ConnectedRegistry{ + // Name: to.Ptr("myConnectedRegistry"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/connectedRegistries"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/connectedRegistries/myConnectedRegistry"), + // Properties: &armcontainerregistry.ConnectedRegistryProperties{ + // Activation: &armcontainerregistry.ActivationProperties{ + // Status: to.Ptr(armcontainerregistry.ActivationStatusInactive), + // }, + // ClientTokenIDs: []*string{ + // to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tokens/client1Token")}, + // Logging: &armcontainerregistry.LoggingProperties{ + // AuditLogStatus: to.Ptr(armcontainerregistry.AuditLogStatusDisabled), + // LogLevel: to.Ptr(armcontainerregistry.LogLevelInformation), + // }, + // Mode: to.Ptr(armcontainerregistry.ConnectedRegistryModeReadWrite), + // NotificationsList: []*string{ + // to.Ptr("hello-world:*:*"), + // to.Ptr("sample/repo/*:1.0:*")}, + // Parent: &armcontainerregistry.ParentProperties{ + // SyncProperties: &armcontainerregistry.SyncProperties{ + // MessageTTL: to.Ptr("P2D"), + // Schedule: to.Ptr("0 9 * * *"), + // SyncWindow: to.Ptr("PT3H"), + // TokenID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tokens/syncToken"), + // }, + // }, + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2023-01-01-preview/examples/ConnectedRegistryDelete.json +func ExampleConnectedRegistriesClient_BeginDelete() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewConnectedRegistriesClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginDelete(ctx, "myResourceGroup", "myRegistry", "myConnectedRegistry", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + _, err = poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2023-01-01-preview/examples/ConnectedRegistryUpdate.json +func ExampleConnectedRegistriesClient_BeginUpdate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewConnectedRegistriesClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginUpdate(ctx, "myResourceGroup", "myRegistry", "myScopeMap", armcontainerregistry.ConnectedRegistryUpdateParameters{ + Properties: &armcontainerregistry.ConnectedRegistryUpdateProperties{ + ClientTokenIDs: []*string{ + to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tokens/client1Token"), + to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tokens/client2Token")}, + Logging: &armcontainerregistry.LoggingProperties{ + AuditLogStatus: to.Ptr(armcontainerregistry.AuditLogStatusEnabled), + LogLevel: to.Ptr(armcontainerregistry.LogLevelDebug), + }, + NotificationsList: []*string{ + to.Ptr("hello-world:*:*"), + to.Ptr("sample/repo/*:1.0:*")}, + SyncProperties: &armcontainerregistry.SyncUpdateProperties{ + MessageTTL: to.Ptr("P30D"), + Schedule: to.Ptr("0 0 */10 * *"), + SyncWindow: to.Ptr("P2D"), + }, + }, + }, 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.ConnectedRegistry = armcontainerregistry.ConnectedRegistry{ + // Name: to.Ptr("myConnectedRegistry"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/connectedRegistries"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/connectedRegistries/myConnectedRegistry"), + // Properties: &armcontainerregistry.ConnectedRegistryProperties{ + // ClientTokenIDs: []*string{ + // to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tokens/client1Token"), + // to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tokens/client2Token")}, + // Logging: &armcontainerregistry.LoggingProperties{ + // AuditLogStatus: to.Ptr(armcontainerregistry.AuditLogStatusEnabled), + // LogLevel: to.Ptr(armcontainerregistry.LogLevelDebug), + // }, + // Mode: to.Ptr(armcontainerregistry.ConnectedRegistryModeReadWrite), + // NotificationsList: []*string{ + // to.Ptr("hello-world:*:*"), + // to.Ptr("sample/repo/*:1.0:*")}, + // Parent: &armcontainerregistry.ParentProperties{ + // SyncProperties: &armcontainerregistry.SyncProperties{ + // MessageTTL: to.Ptr("P30D"), + // Schedule: to.Ptr("0 0 */10 * *"), + // SyncWindow: to.Ptr("P2D"), + // TokenID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tokens/syncToken"), + // }, + // }, + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2023-01-01-preview/examples/ConnectedRegistryDeactivate.json +func ExampleConnectedRegistriesClient_BeginDeactivate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewConnectedRegistriesClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginDeactivate(ctx, "myResourceGroup", "myRegistry", "myConnectedRegistry", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + _, err = poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } +} diff --git a/sdk/resourcemanager/containerregistry/armcontainerregistry/zz_generated_constants.go b/sdk/resourcemanager/containerregistry/armcontainerregistry/constants.go similarity index 96% rename from sdk/resourcemanager/containerregistry/armcontainerregistry/zz_generated_constants.go rename to sdk/resourcemanager/containerregistry/armcontainerregistry/constants.go index f703213b81a1..24d88096fac6 100644 --- a/sdk/resourcemanager/containerregistry/armcontainerregistry/zz_generated_constants.go +++ b/sdk/resourcemanager/containerregistry/armcontainerregistry/constants.go @@ -5,12 +5,13 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armcontainerregistry const ( moduleName = "armcontainerregistry" - moduleVersion = "v0.6.0" + moduleVersion = "v0.7.0" ) // Action - The action of IP ACL rule. @@ -239,6 +240,36 @@ func PossibleCreatedByTypeValues() []CreatedByType { } } +// CredentialHealthStatus - The health status of credential. +type CredentialHealthStatus string + +const ( + CredentialHealthStatusHealthy CredentialHealthStatus = "Healthy" + CredentialHealthStatusUnhealthy CredentialHealthStatus = "Unhealthy" +) + +// PossibleCredentialHealthStatusValues returns the possible values for the CredentialHealthStatus const type. +func PossibleCredentialHealthStatusValues() []CredentialHealthStatus { + return []CredentialHealthStatus{ + CredentialHealthStatusHealthy, + CredentialHealthStatusUnhealthy, + } +} + +// CredentialName - The name of the credential. +type CredentialName string + +const ( + CredentialNameCredential1 CredentialName = "Credential1" +) + +// PossibleCredentialNameValues returns the possible values for the CredentialName const type. +func PossibleCredentialNameValues() []CredentialName { + return []CredentialName{ + CredentialNameCredential1, + } +} + // DefaultAction - The default action of allow or deny when no other rules match. type DefaultAction string diff --git a/sdk/resourcemanager/containerregistry/armcontainerregistry/containerregistry_build_live_test.go b/sdk/resourcemanager/containerregistry/armcontainerregistry/containerregistry_build_live_test.go deleted file mode 100644 index a25ec4047297..000000000000 --- a/sdk/resourcemanager/containerregistry/armcontainerregistry/containerregistry_build_live_test.go +++ /dev/null @@ -1,384 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armcontainerregistry_test - -import ( - "context" - "fmt" - "testing" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/testutil" - "github.com/stretchr/testify/suite" -) - -type ContainerregistryBuildTestSuite struct { - suite.Suite - - ctx context.Context - cred azcore.TokenCredential - options *arm.ClientOptions - agentPoolName string - registryName string - taskName string - taskRunName string - location string - resourceGroupName string - subscriptionId string -} - -func (testsuite *ContainerregistryBuildTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/containerregistry/armcontainerregistry/testdata") - testsuite.ctx = context.Background() - testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) - testsuite.agentPoolName = testutil.GenerateAlphaNumericID(testsuite.T(), "agentpooln", 6) - testsuite.registryName = testutil.GenerateAlphaNumericID(testsuite.T(), "registryna2", 6) - testsuite.taskName = testutil.GenerateAlphaNumericID(testsuite.T(), "taskname", 6) - testsuite.taskRunName = testutil.GenerateAlphaNumericID(testsuite.T(), "taskrunnam", 6) - testsuite.location = testutil.GetEnv("LOCATION", "eastus") - testsuite.resourceGroupName = testutil.GetEnv("RESOURCE_GROUP_NAME", "scenarioTestTempGroup") - testsuite.subscriptionId = testutil.GetEnv("AZURE_SUBSCRIPTION_ID", "00000000-0000-0000-0000-000000000000") - - resourceGroup, _, err := testutil.CreateResourceGroup(testsuite.ctx, testsuite.subscriptionId, testsuite.cred, testsuite.options, testsuite.location) - testsuite.Require().NoError(err) - testsuite.resourceGroupName = *resourceGroup.Name - testsuite.Prepare() -} - -func (testsuite *ContainerregistryBuildTestSuite) TearDownSuite() { - _, err := testutil.DeleteResourceGroup(testsuite.ctx, testsuite.subscriptionId, testsuite.cred, testsuite.options, testsuite.resourceGroupName) - testsuite.Require().NoError(err) - testutil.StopRecording(testsuite.T()) -} - -func TestContainerregistryBuildTestSuite(t *testing.T) { - suite.Run(t, new(ContainerregistryBuildTestSuite)) -} - -func (testsuite *ContainerregistryBuildTestSuite) Prepare() { - var err error - // From step Registries_Create2 - fmt.Println("Call operation: Registries_Create") - registriesClient, err := armcontainerregistry.NewRegistriesClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) - testsuite.Require().NoError(err) - registriesClientCreateResponsePoller, err := registriesClient.BeginCreate(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, armcontainerregistry.Registry{ - Location: to.Ptr(testsuite.location), - Properties: &armcontainerregistry.RegistryProperties{ - AdminUserEnabled: to.Ptr(true), - }, - SKU: &armcontainerregistry.SKU{ - Name: to.Ptr(armcontainerregistry.SKUNamePremium), - }, - }, nil) - testsuite.Require().NoError(err) - _, err = testutil.PollForTest(testsuite.ctx, registriesClientCreateResponsePoller) - testsuite.Require().NoError(err) -} - -// Microsoft.ContainerRegistry/registries/agentPools -func (testsuite *ContainerregistryBuildTestSuite) TestAgentpools() { - var err error - // From step AgentPools_Create - fmt.Println("Call operation: AgentPools_Create") - agentPoolsClient, err := armcontainerregistry.NewAgentPoolsClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) - testsuite.Require().NoError(err) - agentPoolsClientCreateResponsePoller, err := agentPoolsClient.BeginCreate(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, testsuite.agentPoolName, armcontainerregistry.AgentPool{ - Location: to.Ptr(testsuite.location), - Tags: map[string]*string{ - "key": to.Ptr("value"), - }, - Properties: &armcontainerregistry.AgentPoolProperties{ - Count: to.Ptr[int32](1), - OS: to.Ptr(armcontainerregistry.OSLinux), - Tier: to.Ptr("S1"), - }, - }, nil) - testsuite.Require().NoError(err) - _, err = testutil.PollForTest(testsuite.ctx, agentPoolsClientCreateResponsePoller) - testsuite.Require().NoError(err) - - // From step AgentPools_List - fmt.Println("Call operation: AgentPools_List") - agentPoolsClientNewListPager := agentPoolsClient.NewListPager(testsuite.resourceGroupName, testsuite.registryName, nil) - for agentPoolsClientNewListPager.More() { - _, err := agentPoolsClientNewListPager.NextPage(testsuite.ctx) - testsuite.Require().NoError(err) - break - } - - // From step AgentPools_Get - fmt.Println("Call operation: AgentPools_Get") - _, err = agentPoolsClient.Get(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, testsuite.agentPoolName, nil) - testsuite.Require().NoError(err) - - // From step AgentPools_Update - fmt.Println("Call operation: AgentPools_Update") - agentPoolsClientUpdateResponsePoller, err := agentPoolsClient.BeginUpdate(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, testsuite.agentPoolName, armcontainerregistry.AgentPoolUpdateParameters{ - Properties: &armcontainerregistry.AgentPoolPropertiesUpdateParameters{ - Count: to.Ptr[int32](1), - }, - }, nil) - testsuite.Require().NoError(err) - _, err = testutil.PollForTest(testsuite.ctx, agentPoolsClientUpdateResponsePoller) - testsuite.Require().NoError(err) - - // From step AgentPools_GetQueueStatus - fmt.Println("Call operation: AgentPools_GetQueueStatus") - _, err = agentPoolsClient.GetQueueStatus(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, testsuite.agentPoolName, nil) - testsuite.Require().NoError(err) - - // From step AgentPools_Delete - fmt.Println("Call operation: AgentPools_Delete") - agentPoolsClientDeleteResponsePoller, err := agentPoolsClient.BeginDelete(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, testsuite.agentPoolName, nil) - testsuite.Require().NoError(err) - _, err = testutil.PollForTest(testsuite.ctx, agentPoolsClientDeleteResponsePoller) - testsuite.Require().NoError(err) -} - -// Microsoft.ContainerRegistry/registries/tasks -func (testsuite *ContainerregistryBuildTestSuite) TestTasks() { - var runId string - var err error - // From step Tasks_Create - fmt.Println("Call operation: Tasks_Create") - tasksClient, err := armcontainerregistry.NewTasksClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) - testsuite.Require().NoError(err) - tasksClientCreateResponsePoller, err := tasksClient.BeginCreate(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, testsuite.taskName, armcontainerregistry.Task{ - Location: to.Ptr(testsuite.location), - Tags: map[string]*string{ - "testkey": to.Ptr("value"), - }, - Properties: &armcontainerregistry.TaskProperties{ - AgentConfiguration: &armcontainerregistry.AgentProperties{ - CPU: to.Ptr[int32](2), - }, - IsSystemTask: to.Ptr(false), - Platform: &armcontainerregistry.PlatformProperties{ - Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), - OS: to.Ptr(armcontainerregistry.OSLinux), - }, - Status: to.Ptr(armcontainerregistry.TaskStatusEnabled), - Step: &armcontainerregistry.DockerBuildStep{ - Type: to.Ptr(armcontainerregistry.StepTypeDocker), - ContextPath: to.Ptr("https://github.com/SteveLasker/node-helloworld"), - DockerFilePath: to.Ptr("DockerFile"), - ImageNames: []*string{ - to.Ptr("testtask:v1")}, - IsPushEnabled: to.Ptr(true), - NoCache: to.Ptr(false), - }, - Trigger: &armcontainerregistry.TriggerProperties{ - BaseImageTrigger: &armcontainerregistry.BaseImageTrigger{ - Name: to.Ptr("myBaseImageTrigger"), - BaseImageTriggerType: to.Ptr(armcontainerregistry.BaseImageTriggerTypeRuntime), - Status: to.Ptr(armcontainerregistry.TriggerStatusEnabled), - UpdateTriggerPayloadType: to.Ptr(armcontainerregistry.UpdateTriggerPayloadTypeDefault), - }, - }, - }, - }, nil) - testsuite.Require().NoError(err) - _, err = testutil.PollForTest(testsuite.ctx, tasksClientCreateResponsePoller) - testsuite.Require().NoError(err) - - // From step Tasks_List - fmt.Println("Call operation: Tasks_List") - tasksClientNewListPager := tasksClient.NewListPager(testsuite.resourceGroupName, testsuite.registryName, nil) - for tasksClientNewListPager.More() { - _, err := tasksClientNewListPager.NextPage(testsuite.ctx) - testsuite.Require().NoError(err) - break - } - - // From step Tasks_Get - fmt.Println("Call operation: Tasks_Get") - _, err = tasksClient.Get(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, testsuite.taskName, nil) - testsuite.Require().NoError(err) - - // From step Tasks_Update - fmt.Println("Call operation: Tasks_Update") - tasksClientUpdateResponsePoller, err := tasksClient.BeginUpdate(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, testsuite.taskName, armcontainerregistry.TaskUpdateParameters{ - Tags: map[string]*string{ - "testkey": to.Ptr("value"), - }, - }, nil) - testsuite.Require().NoError(err) - _, err = testutil.PollForTest(testsuite.ctx, tasksClientUpdateResponsePoller) - testsuite.Require().NoError(err) - - // From step Tasks_GetDetails - fmt.Println("Call operation: Tasks_GetDetails") - _, err = tasksClient.GetDetails(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, testsuite.taskName, nil) - testsuite.Require().NoError(err) - - // From step TaskRuns_Create - fmt.Println("Call operation: TaskRuns_Create") - taskRunsClient, err := armcontainerregistry.NewTaskRunsClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) - testsuite.Require().NoError(err) - taskRunsClientCreateResponsePoller, err := taskRunsClient.BeginCreate(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, testsuite.taskRunName, armcontainerregistry.TaskRun{ - Properties: &armcontainerregistry.TaskRunProperties{ - ForceUpdateTag: to.Ptr("test"), - RunRequest: &armcontainerregistry.EncodedTaskRunRequest{ - Type: to.Ptr("EncodedTaskRunRequest"), - Credentials: &armcontainerregistry.Credentials{}, - EncodedTaskContent: to.Ptr("c3RlcHM6IAogIC0gY21kOiB7eyAuVmFsdWVzLmNvbW1hbmQgfX0K"), - EncodedValuesContent: to.Ptr("Y29tbWFuZDogYmFzaCBlY2hvIHt7LlJ1bi5SZWdpc3RyeX19Cg=="), - Platform: &armcontainerregistry.PlatformProperties{ - Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), - OS: to.Ptr(armcontainerregistry.OSLinux), - }, - Values: []*armcontainerregistry.SetValue{}, - }, - }, - }, nil) - testsuite.Require().NoError(err) - var taskRunsClientCreateResponse *armcontainerregistry.TaskRunsClientCreateResponse - taskRunsClientCreateResponse, err = testutil.PollForTest(testsuite.ctx, taskRunsClientCreateResponsePoller) - testsuite.Require().NoError(err) - runId = *taskRunsClientCreateResponse.Properties.RunResult.Properties.RunID - - // From step TaskRuns_List - fmt.Println("Call operation: TaskRuns_List") - taskRunsClientNewListPager := taskRunsClient.NewListPager(testsuite.resourceGroupName, testsuite.registryName, nil) - for taskRunsClientNewListPager.More() { - _, err := taskRunsClientNewListPager.NextPage(testsuite.ctx) - testsuite.Require().NoError(err) - break - } - - // From step TaskRuns_Get - fmt.Println("Call operation: TaskRuns_Get") - _, err = taskRunsClient.Get(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, testsuite.taskRunName, nil) - testsuite.Require().NoError(err) - - // From step TaskRuns_Update - fmt.Println("Call operation: TaskRuns_Update") - taskRunsClientUpdateResponsePoller, err := taskRunsClient.BeginUpdate(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, testsuite.taskRunName, armcontainerregistry.TaskRunUpdateParameters{ - Properties: &armcontainerregistry.TaskRunPropertiesUpdateParameters{ - ForceUpdateTag: to.Ptr("test"), - RunRequest: &armcontainerregistry.EncodedTaskRunRequest{ - Type: to.Ptr("EncodedTaskRunRequest"), - IsArchiveEnabled: to.Ptr(true), - Credentials: &armcontainerregistry.Credentials{}, - EncodedTaskContent: to.Ptr("c3RlcHM6IAogIC0gY21kOiB7eyAuVmFsdWVzLmNvbW1hbmQgfX0K"), - EncodedValuesContent: to.Ptr("Y29tbWFuZDogYmFzaCBlY2hvIHt7LlJ1bi5SZWdpc3RyeX19Cg=="), - Platform: &armcontainerregistry.PlatformProperties{ - Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), - OS: to.Ptr(armcontainerregistry.OSLinux), - }, - Values: []*armcontainerregistry.SetValue{}, - }, - }, - }, nil) - testsuite.Require().NoError(err) - _, err = testutil.PollForTest(testsuite.ctx, taskRunsClientUpdateResponsePoller) - testsuite.Require().NoError(err) - - // From step TaskRuns_GetDetails - fmt.Println("Call operation: TaskRuns_GetDetails") - _, err = taskRunsClient.GetDetails(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, testsuite.taskRunName, nil) - testsuite.Require().NoError(err) - - // From step Registries_GetBuildSourceUploadUrl - fmt.Println("Call operation: Registries_GetBuildSourceUploadUrl") - registriesClient, err := armcontainerregistry.NewRegistriesClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) - testsuite.Require().NoError(err) - _, err = registriesClient.GetBuildSourceUploadURL(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, nil) - testsuite.Require().NoError(err) - - // From step Runs_List - fmt.Println("Call operation: Runs_List") - runsClient, err := armcontainerregistry.NewRunsClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) - testsuite.Require().NoError(err) - runsClientNewListPager := runsClient.NewListPager(testsuite.resourceGroupName, testsuite.registryName, &armcontainerregistry.RunsClientListOptions{Filter: nil, - Top: to.Ptr[int32](10), - }) - for runsClientNewListPager.More() { - _, err := runsClientNewListPager.NextPage(testsuite.ctx) - testsuite.Require().NoError(err) - break - } - - // From step Runs_Get - fmt.Println("Call operation: Runs_Get") - _, err = runsClient.Get(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, runId, nil) - testsuite.Require().NoError(err) - - // From step Runs_Cancel - fmt.Println("Call operation: Runs_Cancel") - runsClientCancelResponsePoller, err := runsClient.BeginCancel(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, runId, nil) - testsuite.Require().NoError(err) - _, err = testutil.PollForTest(testsuite.ctx, runsClientCancelResponsePoller) - testsuite.Require().NoError(err) - - // From step Runs_GetLogSasUrl - fmt.Println("Call operation: Runs_GetLogSasUrl") - _, err = runsClient.GetLogSasURL(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, runId, nil) - testsuite.Require().NoError(err) - - // From step Registries_ScheduleRun - fmt.Println("Call operation: Registries_ScheduleRun") - registriesClientScheduleRunResponsePoller, err := registriesClient.BeginScheduleRun(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, &armcontainerregistry.DockerBuildRequest{ - Type: to.Ptr("DockerBuildRequest"), - IsArchiveEnabled: to.Ptr(true), - AgentConfiguration: &armcontainerregistry.AgentProperties{ - CPU: to.Ptr[int32](2), - }, - Arguments: []*armcontainerregistry.Argument{ - { - Name: to.Ptr("mytestargument"), - IsSecret: to.Ptr(false), - Value: to.Ptr("mytestvalue"), - }, - { - Name: to.Ptr("mysecrettestargument"), - IsSecret: to.Ptr(true), - Value: to.Ptr("mysecrettestvalue"), - }}, - DockerFilePath: to.Ptr("DockerFile"), - ImageNames: []*string{ - to.Ptr("azurerest:testtag")}, - IsPushEnabled: to.Ptr(true), - NoCache: to.Ptr(true), - Platform: &armcontainerregistry.PlatformProperties{ - Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), - OS: to.Ptr(armcontainerregistry.OSLinux), - }, - SourceLocation: to.Ptr("https://myaccount.blob.core.windows.net/sascontainer/source.zip?sv=2015-04-05&st=2015-04-29T22%3A18%3A26Z&se=2015-04-30T02%3A23%3A26Z&sr=b&sp=rw&sip=168.1.5.60-168.1.5.70&spr=https&sig=Z%2FRHIX5Xcg0Mq2rqI3OlWTjEg2tYkboXr1P9ZUXDtkk%3D"), - }, nil) - testsuite.Require().NoError(err) - _, err = testutil.PollForTest(testsuite.ctx, registriesClientScheduleRunResponsePoller) - testsuite.Require().NoError(err) - - // From step TaskRuns_Delete - fmt.Println("Call operation: TaskRuns_Delete") - taskRunsClientDeleteResponsePoller, err := taskRunsClient.BeginDelete(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, testsuite.taskRunName, nil) - testsuite.Require().NoError(err) - _, err = testutil.PollForTest(testsuite.ctx, taskRunsClientDeleteResponsePoller) - testsuite.Require().NoError(err) - - // From step Runs_Update - fmt.Println("Call operation: Runs_Update") - runsClientUpdateResponsePoller, err := runsClient.BeginUpdate(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, runId, armcontainerregistry.RunUpdateParameters{ - IsArchiveEnabled: to.Ptr(true), - }, nil) - testsuite.Require().NoError(err) - _, err = testutil.PollForTest(testsuite.ctx, runsClientUpdateResponsePoller) - testsuite.Require().NoError(err) - - // From step Tasks_Delete - fmt.Println("Call operation: Tasks_Delete") - tasksClientDeleteResponsePoller, err := tasksClient.BeginDelete(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, testsuite.taskName, nil) - testsuite.Require().NoError(err) - _, err = testutil.PollForTest(testsuite.ctx, tasksClientDeleteResponsePoller) - testsuite.Require().NoError(err) -} diff --git a/sdk/resourcemanager/containerregistry/armcontainerregistry/containerregistry_live_test.go b/sdk/resourcemanager/containerregistry/armcontainerregistry/containerregistry_live_test.go deleted file mode 100644 index e7a821b1bc1c..000000000000 --- a/sdk/resourcemanager/containerregistry/armcontainerregistry/containerregistry_live_test.go +++ /dev/null @@ -1,574 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armcontainerregistry_test - -import ( - "context" - "fmt" - "testing" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/testutil" - "github.com/stretchr/testify/suite" -) - -type ContainerregistryTestSuite struct { - suite.Suite - - ctx context.Context - cred azcore.TokenCredential - options *arm.ClientOptions - exportPipelineName string - importPipelineName string - registryName string - replicationName string - scopeMapId string - scopeMapName string - tokenId string - tokenName string - webhookName string - location string - resourceGroupName string - subscriptionId string -} - -func (testsuite *ContainerregistryTestSuite) SetupSuite() { - testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/containerregistry/armcontainerregistry/testdata") - testsuite.ctx = context.Background() - testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) - testsuite.exportPipelineName = testutil.GenerateAlphaNumericID(testsuite.T(), "exportpipe", 6) - testsuite.importPipelineName = testutil.GenerateAlphaNumericID(testsuite.T(), "importpipe", 6) - testsuite.registryName = testutil.GenerateAlphaNumericID(testsuite.T(), "registryna", 6) - testsuite.replicationName = testutil.GenerateAlphaNumericID(testsuite.T(), "replicatio", 6) - testsuite.scopeMapName = testutil.GenerateAlphaNumericID(testsuite.T(), "scopemapna", 6) - testsuite.tokenName = testutil.GenerateAlphaNumericID(testsuite.T(), "tokenname", 6) - testsuite.webhookName = testutil.GenerateAlphaNumericID(testsuite.T(), "webhooknam", 6) - testsuite.location = testutil.GetEnv("LOCATION", "eastus") - testsuite.resourceGroupName = testutil.GetEnv("RESOURCE_GROUP_NAME", "scenarioTestTempGroup") - testsuite.subscriptionId = testutil.GetEnv("AZURE_SUBSCRIPTION_ID", "00000000-0000-0000-0000-000000000000") - - resourceGroup, _, err := testutil.CreateResourceGroup(testsuite.ctx, testsuite.subscriptionId, testsuite.cred, testsuite.options, testsuite.location) - testsuite.Require().NoError(err) - testsuite.resourceGroupName = *resourceGroup.Name - testsuite.Prepare() -} - -func (testsuite *ContainerregistryTestSuite) TearDownSuite() { - testsuite.Cleanup() - _, err := testutil.DeleteResourceGroup(testsuite.ctx, testsuite.subscriptionId, testsuite.cred, testsuite.options, testsuite.resourceGroupName) - testsuite.Require().NoError(err) - testutil.StopRecording(testsuite.T()) -} - -func TestContainerregistryTestSuite(t *testing.T) { - suite.Run(t, new(ContainerregistryTestSuite)) -} - -func (testsuite *ContainerregistryTestSuite) Prepare() { - var err error - // From step Registries_Create - fmt.Println("Call operation: Registries_Create") - registriesClient, err := armcontainerregistry.NewRegistriesClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) - testsuite.Require().NoError(err) - registriesClientCreateResponsePoller, err := registriesClient.BeginCreate(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, armcontainerregistry.Registry{ - Location: to.Ptr(testsuite.location), - Tags: map[string]*string{ - "key": to.Ptr("value"), - }, - Properties: &armcontainerregistry.RegistryProperties{ - AdminUserEnabled: to.Ptr(true), - }, - SKU: &armcontainerregistry.SKU{ - Name: to.Ptr(armcontainerregistry.SKUNamePremium), - }, - }, nil) - testsuite.Require().NoError(err) - _, err = testutil.PollForTest(testsuite.ctx, registriesClientCreateResponsePoller) - testsuite.Require().NoError(err) - - // From step ScopeMaps_Create - fmt.Println("Call operation: ScopeMaps_Create") - scopeMapsClient, err := armcontainerregistry.NewScopeMapsClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) - testsuite.Require().NoError(err) - scopeMapsClientCreateResponsePoller, err := scopeMapsClient.BeginCreate(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, testsuite.scopeMapName, armcontainerregistry.ScopeMap{ - Properties: &armcontainerregistry.ScopeMapProperties{ - Description: to.Ptr("Developer Scopes"), - Actions: []*string{ - to.Ptr("repositories/myrepository/content/write"), - to.Ptr("repositories/myrepository/content/delete")}, - }, - }, nil) - testsuite.Require().NoError(err) - var scopeMapsClientCreateResponse *armcontainerregistry.ScopeMapsClientCreateResponse - scopeMapsClientCreateResponse, err = testutil.PollForTest(testsuite.ctx, scopeMapsClientCreateResponsePoller) - testsuite.Require().NoError(err) - testsuite.scopeMapId = *scopeMapsClientCreateResponse.ID - - // From step Tokens_Create - fmt.Println("Call operation: Tokens_Create") - tokensClient, err := armcontainerregistry.NewTokensClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) - testsuite.Require().NoError(err) - tokensClientCreateResponsePoller, err := tokensClient.BeginCreate(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, testsuite.tokenName, armcontainerregistry.Token{ - Properties: &armcontainerregistry.TokenProperties{ - ScopeMapID: to.Ptr(testsuite.scopeMapId), - Status: to.Ptr(armcontainerregistry.TokenStatusDisabled), - }, - }, nil) - testsuite.Require().NoError(err) - var tokensClientCreateResponse *armcontainerregistry.TokensClientCreateResponse - tokensClientCreateResponse, err = testutil.PollForTest(testsuite.ctx, tokensClientCreateResponsePoller) - testsuite.Require().NoError(err) - testsuite.tokenId = *tokensClientCreateResponse.ID -} - -// Microsoft.ContainerRegistry/registries -func (testsuite *ContainerregistryTestSuite) TestContainerregister() { - var err error - // From step Registries_CheckNameAvailability - fmt.Println("Call operation: Registries_CheckNameAvailability") - registriesClient, err := armcontainerregistry.NewRegistriesClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) - testsuite.Require().NoError(err) - _, err = registriesClient.CheckNameAvailability(testsuite.ctx, armcontainerregistry.RegistryNameCheckRequest{ - Name: to.Ptr("myRegistry"), - Type: to.Ptr("Microsoft.ContainerRegistry/registries"), - }, nil) - testsuite.Require().NoError(err) - - // From step Registries_List - fmt.Println("Call operation: Registries_List") - registriesClientNewListPager := registriesClient.NewListPager(nil) - for registriesClientNewListPager.More() { - _, err := registriesClientNewListPager.NextPage(testsuite.ctx) - testsuite.Require().NoError(err) - break - } - - // From step Registries_Get - fmt.Println("Call operation: Registries_Get") - _, err = registriesClient.Get(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, nil) - testsuite.Require().NoError(err) - - // From step Registries_ListByResourceGroup - fmt.Println("Call operation: Registries_ListByResourceGroup") - registriesClientNewListByResourceGroupPager := registriesClient.NewListByResourceGroupPager(testsuite.resourceGroupName, nil) - for registriesClientNewListByResourceGroupPager.More() { - _, err := registriesClientNewListByResourceGroupPager.NextPage(testsuite.ctx) - testsuite.Require().NoError(err) - break - } - - // From step Registries_ListUsages - fmt.Println("Call operation: Registries_ListUsages") - _, err = registriesClient.ListUsages(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, nil) - testsuite.Require().NoError(err) - - // From step Registries_Update - fmt.Println("Call operation: Registries_Update") - registriesClientUpdateResponsePoller, err := registriesClient.BeginUpdate(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, armcontainerregistry.RegistryUpdateParameters{ - Properties: &armcontainerregistry.RegistryPropertiesUpdateParameters{ - AdminUserEnabled: to.Ptr(true), - }, - SKU: &armcontainerregistry.SKU{ - Name: to.Ptr(armcontainerregistry.SKUNamePremium), - }, - Tags: map[string]*string{ - "key": to.Ptr("value"), - }, - }, nil) - testsuite.Require().NoError(err) - _, err = testutil.PollForTest(testsuite.ctx, registriesClientUpdateResponsePoller) - testsuite.Require().NoError(err) - - // From step Registries_ListPrivateLinkResources - fmt.Println("Call operation: Registries_ListPrivateLinkResources") - registriesClientNewListPrivateLinkResourcesPager := registriesClient.NewListPrivateLinkResourcesPager(testsuite.resourceGroupName, testsuite.registryName, nil) - for registriesClientNewListPrivateLinkResourcesPager.More() { - _, err := registriesClientNewListPrivateLinkResourcesPager.NextPage(testsuite.ctx) - testsuite.Require().NoError(err) - break - } - - // From step Registries_GetPrivateLinkResource - fmt.Println("Call operation: Registries_GetPrivateLinkResource") - _, err = registriesClient.GetPrivateLinkResource(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, "registry", nil) - testsuite.Require().NoError(err) -} - -// Microsoft.ContainerRegistry/registries/webhooks -func (testsuite *ContainerregistryTestSuite) TestWebhooks() { - var err error - // From step Webhooks_Create - fmt.Println("Call operation: Webhooks_Create") - webhooksClient, err := armcontainerregistry.NewWebhooksClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) - testsuite.Require().NoError(err) - webhooksClientCreateResponsePoller, err := webhooksClient.BeginCreate(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, testsuite.webhookName, armcontainerregistry.WebhookCreateParameters{ - Location: to.Ptr(testsuite.location), - Properties: &armcontainerregistry.WebhookPropertiesCreateParameters{ - Actions: []*armcontainerregistry.WebhookAction{ - to.Ptr(armcontainerregistry.WebhookActionPush)}, - CustomHeaders: map[string]*string{ - "Authorization": to.Ptr("Basic 000000000000000000000000000000000000000000000000000"), - }, - ServiceURI: to.Ptr("http://myservice.com"), - Status: to.Ptr(armcontainerregistry.WebhookStatusEnabled), - }, - Tags: map[string]*string{ - "key": to.Ptr("value"), - }, - }, nil) - testsuite.Require().NoError(err) - _, err = testutil.PollForTest(testsuite.ctx, webhooksClientCreateResponsePoller) - testsuite.Require().NoError(err) - - // From step Webhooks_List - fmt.Println("Call operation: Webhooks_List") - webhooksClientNewListPager := webhooksClient.NewListPager(testsuite.resourceGroupName, testsuite.registryName, nil) - for webhooksClientNewListPager.More() { - _, err := webhooksClientNewListPager.NextPage(testsuite.ctx) - testsuite.Require().NoError(err) - break - } - - // From step Webhooks_Get - fmt.Println("Call operation: Webhooks_Get") - _, err = webhooksClient.Get(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, testsuite.webhookName, nil) - testsuite.Require().NoError(err) - - // From step Webhooks_Update - fmt.Println("Call operation: Webhooks_Update") - webhooksClientUpdateResponsePoller, err := webhooksClient.BeginUpdate(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, testsuite.webhookName, armcontainerregistry.WebhookUpdateParameters{ - Properties: &armcontainerregistry.WebhookPropertiesUpdateParameters{ - Actions: []*armcontainerregistry.WebhookAction{ - to.Ptr(armcontainerregistry.WebhookActionPush)}, - CustomHeaders: map[string]*string{ - "Authorization": to.Ptr("Basic 000000000000000000000000000000000000000000000000000"), - }, - Scope: to.Ptr("repository"), - ServiceURI: to.Ptr("http://myservice.com"), - Status: to.Ptr(armcontainerregistry.WebhookStatusEnabled), - }, - Tags: map[string]*string{ - "key": to.Ptr("value"), - }, - }, nil) - testsuite.Require().NoError(err) - _, err = testutil.PollForTest(testsuite.ctx, webhooksClientUpdateResponsePoller) - testsuite.Require().NoError(err) - - // From step Webhooks_GetCallbackConfig - fmt.Println("Call operation: Webhooks_GetCallbackConfig") - _, err = webhooksClient.GetCallbackConfig(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, testsuite.webhookName, nil) - testsuite.Require().NoError(err) - - // From step Webhooks_Ping - fmt.Println("Call operation: Webhooks_Ping") - _, err = webhooksClient.Ping(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, testsuite.webhookName, nil) - testsuite.Require().NoError(err) - - // From step Webhooks_ListEvents - fmt.Println("Call operation: Webhooks_ListEvents") - webhooksClientNewListEventsPager := webhooksClient.NewListEventsPager(testsuite.resourceGroupName, testsuite.registryName, testsuite.webhookName, nil) - for webhooksClientNewListEventsPager.More() { - _, err := webhooksClientNewListEventsPager.NextPage(testsuite.ctx) - testsuite.Require().NoError(err) - break - } - - // From step Webhooks_Delete - fmt.Println("Call operation: Webhooks_Delete") - webhooksClientDeleteResponsePoller, err := webhooksClient.BeginDelete(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, testsuite.webhookName, nil) - testsuite.Require().NoError(err) - _, err = testutil.PollForTest(testsuite.ctx, webhooksClientDeleteResponsePoller) - testsuite.Require().NoError(err) -} - -// Microsoft.ContainerRegistry/registries/replications -func (testsuite *ContainerregistryTestSuite) TestReplications() { - var err error - // From step Replications_Create - fmt.Println("Call operation: Replications_Create") - replicationsClient, err := armcontainerregistry.NewReplicationsClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) - testsuite.Require().NoError(err) - replicationsClientCreateResponsePoller, err := replicationsClient.BeginCreate(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, testsuite.replicationName, armcontainerregistry.Replication{ - Location: to.Ptr("westus2"), - }, nil) - testsuite.Require().NoError(err) - _, err = testutil.PollForTest(testsuite.ctx, replicationsClientCreateResponsePoller) - testsuite.Require().NoError(err) - - // From step Replications_List - fmt.Println("Call operation: Replications_List") - replicationsClientNewListPager := replicationsClient.NewListPager(testsuite.resourceGroupName, testsuite.registryName, nil) - for replicationsClientNewListPager.More() { - _, err := replicationsClientNewListPager.NextPage(testsuite.ctx) - testsuite.Require().NoError(err) - break - } - - // From step Replications_Get - fmt.Println("Call operation: Replications_Get") - _, err = replicationsClient.Get(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, testsuite.replicationName, nil) - testsuite.Require().NoError(err) - - // From step Replications_Update - fmt.Println("Call operation: Replications_Update") - replicationsClientUpdateResponsePoller, err := replicationsClient.BeginUpdate(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, testsuite.replicationName, armcontainerregistry.ReplicationUpdateParameters{ - Tags: map[string]*string{ - "key": to.Ptr("value"), - }, - }, nil) - testsuite.Require().NoError(err) - _, err = testutil.PollForTest(testsuite.ctx, replicationsClientUpdateResponsePoller) - testsuite.Require().NoError(err) - - // From step Replications_Delete - fmt.Println("Call operation: Replications_Delete") - replicationsClientDeleteResponsePoller, err := replicationsClient.BeginDelete(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, testsuite.replicationName, nil) - testsuite.Require().NoError(err) - _, err = testutil.PollForTest(testsuite.ctx, replicationsClientDeleteResponsePoller) - testsuite.Require().NoError(err) -} - -// Microsoft.ContainerRegistry/registries/scopeMaps -func (testsuite *ContainerregistryTestSuite) TestScopemaps() { - var err error - // From step ScopeMaps_List - fmt.Println("Call operation: ScopeMaps_List") - scopeMapsClient, err := armcontainerregistry.NewScopeMapsClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) - testsuite.Require().NoError(err) - scopeMapsClientNewListPager := scopeMapsClient.NewListPager(testsuite.resourceGroupName, testsuite.registryName, nil) - for scopeMapsClientNewListPager.More() { - _, err := scopeMapsClientNewListPager.NextPage(testsuite.ctx) - testsuite.Require().NoError(err) - break - } - - // From step ScopeMaps_Get - fmt.Println("Call operation: ScopeMaps_Get") - _, err = scopeMapsClient.Get(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, testsuite.scopeMapName, nil) - testsuite.Require().NoError(err) - - // From step ScopeMaps_Update - fmt.Println("Call operation: ScopeMaps_Update") - scopeMapsClientUpdateResponsePoller, err := scopeMapsClient.BeginUpdate(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, testsuite.scopeMapName, armcontainerregistry.ScopeMapUpdateParameters{ - Properties: &armcontainerregistry.ScopeMapPropertiesUpdateParameters{ - Description: to.Ptr("Developer Scopes"), - Actions: []*string{ - to.Ptr("repositories/myrepository/content/write"), - to.Ptr("repositories/myrepository/content/read")}, - }, - }, nil) - testsuite.Require().NoError(err) - _, err = testutil.PollForTest(testsuite.ctx, scopeMapsClientUpdateResponsePoller) - testsuite.Require().NoError(err) -} - -// Microsoft.ContainerRegistry/registries/tokens -func (testsuite *ContainerregistryTestSuite) TestTokens() { - var err error - // From step Tokens_List - fmt.Println("Call operation: Tokens_List") - tokensClient, err := armcontainerregistry.NewTokensClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) - testsuite.Require().NoError(err) - tokensClientNewListPager := tokensClient.NewListPager(testsuite.resourceGroupName, testsuite.registryName, nil) - for tokensClientNewListPager.More() { - _, err := tokensClientNewListPager.NextPage(testsuite.ctx) - testsuite.Require().NoError(err) - break - } - - // From step Tokens_Get - fmt.Println("Call operation: Tokens_Get") - _, err = tokensClient.Get(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, testsuite.tokenName, nil) - testsuite.Require().NoError(err) - - // From step Tokens_Update - fmt.Println("Call operation: Tokens_Update") - tokensClientUpdateResponsePoller, err := tokensClient.BeginUpdate(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, testsuite.tokenName, armcontainerregistry.TokenUpdateParameters{ - Properties: &armcontainerregistry.TokenUpdateProperties{ - ScopeMapID: to.Ptr(testsuite.scopeMapId), - }, - }, nil) - testsuite.Require().NoError(err) - _, err = testutil.PollForTest(testsuite.ctx, tokensClientUpdateResponsePoller) - testsuite.Require().NoError(err) -} - -// Microsoft.ContainerRegistry/registries/generateCredentials -func (testsuite *ContainerregistryTestSuite) TestRegistrycredentials() { - var err error - // From step Registries_GenerateCredentials - fmt.Println("Call operation: Registries_GenerateCredentials") - registriesClient, err := armcontainerregistry.NewRegistriesClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) - testsuite.Require().NoError(err) - registriesClientGenerateCredentialsResponsePoller, err := registriesClient.BeginGenerateCredentials(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, armcontainerregistry.GenerateCredentialsParameters{ - TokenID: to.Ptr(testsuite.tokenId), - }, nil) - testsuite.Require().NoError(err) - _, err = testutil.PollForTest(testsuite.ctx, registriesClientGenerateCredentialsResponsePoller) - testsuite.Require().NoError(err) - - // From step Registries_RegenerateCredential - fmt.Println("Call operation: Registries_RegenerateCredential") - _, err = registriesClient.RegenerateCredential(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, armcontainerregistry.RegenerateCredentialParameters{ - Name: to.Ptr(armcontainerregistry.PasswordNamePassword), - }, nil) - testsuite.Require().NoError(err) - - // From step Registries_ListCredentials - fmt.Println("Call operation: Registries_ListCredentials") - _, err = registriesClient.ListCredentials(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, nil) - testsuite.Require().NoError(err) -} - -// Microsoft.ContainerRegistry/registries/exportPipelines -func (testsuite *ContainerregistryTestSuite) TestExportpipelines() { - var err error - // From step ExportPipelines_Create - fmt.Println("Call operation: ExportPipelines_Create") - exportPipelinesClient, err := armcontainerregistry.NewExportPipelinesClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) - testsuite.Require().NoError(err) - exportPipelinesClientCreateResponsePoller, err := exportPipelinesClient.BeginCreate(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, testsuite.exportPipelineName, armcontainerregistry.ExportPipeline{ - Identity: &armcontainerregistry.IdentityProperties{ - Type: to.Ptr(armcontainerregistry.ResourceIdentityTypeSystemAssigned), - }, - Location: to.Ptr(testsuite.location), - Properties: &armcontainerregistry.ExportPipelineProperties{ - Options: []*armcontainerregistry.PipelineOptions{ - to.Ptr(armcontainerregistry.PipelineOptionsOverwriteBlobs)}, - Target: &armcontainerregistry.ExportPipelineTargetProperties{ - Type: to.Ptr("AzureStorageBlobContainer"), - KeyVaultURI: to.Ptr("https://myvault.vault.azure.net/secrets/acrexportsas"), - URI: to.Ptr("https://accountname.blob.core.windows.net/containername"), - }, - }, - }, nil) - testsuite.Require().NoError(err) - _, err = testutil.PollForTest(testsuite.ctx, exportPipelinesClientCreateResponsePoller) - testsuite.Require().NoError(err) - - // From step ExportPipelines_List - fmt.Println("Call operation: ExportPipelines_List") - exportPipelinesClientNewListPager := exportPipelinesClient.NewListPager(testsuite.resourceGroupName, testsuite.registryName, nil) - for exportPipelinesClientNewListPager.More() { - _, err := exportPipelinesClientNewListPager.NextPage(testsuite.ctx) - testsuite.Require().NoError(err) - break - } - - // From step ExportPipelines_Get - fmt.Println("Call operation: ExportPipelines_Get") - _, err = exportPipelinesClient.Get(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, testsuite.exportPipelineName, nil) - testsuite.Require().NoError(err) - - // From step ExportPipelines_Delete - fmt.Println("Call operation: ExportPipelines_Delete") - exportPipelinesClientDeleteResponsePoller, err := exportPipelinesClient.BeginDelete(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, testsuite.exportPipelineName, nil) - testsuite.Require().NoError(err) - _, err = testutil.PollForTest(testsuite.ctx, exportPipelinesClientDeleteResponsePoller) - testsuite.Require().NoError(err) -} - -// Microsoft.ContainerRegistry/registries/importPipelines -func (testsuite *ContainerregistryTestSuite) TestImportpipelines() { - var err error - // From step ImportPipelines_Create - fmt.Println("Call operation: ImportPipelines_Create") - importPipelinesClient, err := armcontainerregistry.NewImportPipelinesClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) - testsuite.Require().NoError(err) - importPipelinesClientCreateResponsePoller, err := importPipelinesClient.BeginCreate(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, testsuite.importPipelineName, armcontainerregistry.ImportPipeline{ - Identity: &armcontainerregistry.IdentityProperties{ - Type: to.Ptr(armcontainerregistry.ResourceIdentityTypeSystemAssigned), - }, - Location: to.Ptr(testsuite.location), - Properties: &armcontainerregistry.ImportPipelineProperties{ - Options: []*armcontainerregistry.PipelineOptions{ - to.Ptr(armcontainerregistry.PipelineOptionsOverwriteTags), - to.Ptr(armcontainerregistry.PipelineOptionsDeleteSourceBlobOnSuccess), - to.Ptr(armcontainerregistry.PipelineOptionsContinueOnErrors)}, - Source: &armcontainerregistry.ImportPipelineSourceProperties{ - Type: to.Ptr(armcontainerregistry.PipelineSourceTypeAzureStorageBlobContainer), - KeyVaultURI: to.Ptr("https://myvault.vault.azure.net/secrets/acrimportsas"), - URI: to.Ptr("https://accountname.blob.core.windows.net/containername"), - }, - }, - }, nil) - testsuite.Require().NoError(err) - _, err = testutil.PollForTest(testsuite.ctx, importPipelinesClientCreateResponsePoller) - testsuite.Require().NoError(err) - - // From step ImportPipelines_List - fmt.Println("Call operation: ImportPipelines_List") - importPipelinesClientNewListPager := importPipelinesClient.NewListPager(testsuite.resourceGroupName, testsuite.registryName, nil) - for importPipelinesClientNewListPager.More() { - _, err := importPipelinesClientNewListPager.NextPage(testsuite.ctx) - testsuite.Require().NoError(err) - break - } - - // From step ImportPipelines_Get - fmt.Println("Call operation: ImportPipelines_Get") - _, err = importPipelinesClient.Get(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, testsuite.importPipelineName, nil) - testsuite.Require().NoError(err) - - // From step ImportPipelines_Delete - fmt.Println("Call operation: ImportPipelines_Delete") - importPipelinesClientDeleteResponsePoller, err := importPipelinesClient.BeginDelete(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, testsuite.importPipelineName, nil) - testsuite.Require().NoError(err) - _, err = testutil.PollForTest(testsuite.ctx, importPipelinesClientDeleteResponsePoller) - testsuite.Require().NoError(err) -} - -// Microsoft.ContainerRegistry/operations -func (testsuite *ContainerregistryTestSuite) TestOperations() { - var err error - // From step Operations_List - fmt.Println("Call operation: Operations_List") - operationsClient, err := armcontainerregistry.NewOperationsClient(testsuite.cred, testsuite.options) - testsuite.Require().NoError(err) - operationsClientNewListPager := operationsClient.NewListPager(nil) - for operationsClientNewListPager.More() { - _, err := operationsClientNewListPager.NextPage(testsuite.ctx) - testsuite.Require().NoError(err) - break - } -} - -func (testsuite *ContainerregistryTestSuite) Cleanup() { - var err error - // From step Tokens_Delete - fmt.Println("Call operation: Tokens_Delete") - tokensClient, err := armcontainerregistry.NewTokensClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) - testsuite.Require().NoError(err) - tokensClientDeleteResponsePoller, err := tokensClient.BeginDelete(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, testsuite.tokenName, nil) - testsuite.Require().NoError(err) - _, err = testutil.PollForTest(testsuite.ctx, tokensClientDeleteResponsePoller) - testsuite.Require().NoError(err) - - // From step ScopeMaps_Delete - fmt.Println("Call operation: ScopeMaps_Delete") - scopeMapsClient, err := armcontainerregistry.NewScopeMapsClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) - testsuite.Require().NoError(err) - scopeMapsClientDeleteResponsePoller, err := scopeMapsClient.BeginDelete(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, testsuite.scopeMapName, nil) - testsuite.Require().NoError(err) - _, err = testutil.PollForTest(testsuite.ctx, scopeMapsClientDeleteResponsePoller) - testsuite.Require().NoError(err) - - // From step Registries_Delete - fmt.Println("Call operation: Registries_Delete") - registriesClient, err := armcontainerregistry.NewRegistriesClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) - testsuite.Require().NoError(err) - registriesClientDeleteResponsePoller, err := registriesClient.BeginDelete(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, nil) - testsuite.Require().NoError(err) - _, err = testutil.PollForTest(testsuite.ctx, registriesClientDeleteResponsePoller) - testsuite.Require().NoError(err) -} diff --git a/sdk/resourcemanager/containerregistry/armcontainerregistry/credentialsets_client.go b/sdk/resourcemanager/containerregistry/armcontainerregistry/credentialsets_client.go new file mode 100644 index 000000000000..7f8642221270 --- /dev/null +++ b/sdk/resourcemanager/containerregistry/armcontainerregistry/credentialsets_client.go @@ -0,0 +1,390 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armcontainerregistry + +import ( + "context" + "errors" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "net/http" + "net/url" + "strings" +) + +// CredentialSetsClient contains the methods for the CredentialSets group. +// Don't use this type directly, use NewCredentialSetsClient() instead. +type CredentialSetsClient struct { + host string + subscriptionID string + pl runtime.Pipeline +} + +// NewCredentialSetsClient creates a new instance of CredentialSetsClient with the specified values. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. +func NewCredentialSetsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*CredentialSetsClient, error) { + if options == nil { + options = &arm.ClientOptions{} + } + ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err + } + client := &CredentialSetsClient{ + subscriptionID: subscriptionID, + host: ep, + pl: pl, + } + return client, nil +} + +// BeginCreate - Creates a credential set for a container registry with the specified parameters. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-01-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - registryName - The name of the container registry. +// - credentialSetName - The name of the credential set. +// - credentialSetCreateParameters - The parameters for creating a credential set. +// - options - CredentialSetsClientBeginCreateOptions contains the optional parameters for the CredentialSetsClient.BeginCreate +// method. +func (client *CredentialSetsClient) BeginCreate(ctx context.Context, resourceGroupName string, registryName string, credentialSetName string, credentialSetCreateParameters CredentialSet, options *CredentialSetsClientBeginCreateOptions) (*runtime.Poller[CredentialSetsClientCreateResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.create(ctx, resourceGroupName, registryName, credentialSetName, credentialSetCreateParameters, options) + if err != nil { + return nil, err + } + return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[CredentialSetsClientCreateResponse]{ + FinalStateVia: runtime.FinalStateViaAzureAsyncOp, + }) + } else { + return runtime.NewPollerFromResumeToken[CredentialSetsClientCreateResponse](options.ResumeToken, client.pl, nil) + } +} + +// Create - Creates a credential set for a container registry with the specified parameters. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-01-01-preview +func (client *CredentialSetsClient) create(ctx context.Context, resourceGroupName string, registryName string, credentialSetName string, credentialSetCreateParameters CredentialSet, options *CredentialSetsClientBeginCreateOptions) (*http.Response, error) { + req, err := client.createCreateRequest(ctx, resourceGroupName, registryName, credentialSetName, credentialSetCreateParameters, options) + if err != nil { + return nil, err + } + resp, err := client.pl.Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusCreated) { + return nil, runtime.NewResponseError(resp) + } + return resp, nil +} + +// createCreateRequest creates the Create request. +func (client *CredentialSetsClient) createCreateRequest(ctx context.Context, resourceGroupName string, registryName string, credentialSetName string, credentialSetCreateParameters CredentialSet, options *CredentialSetsClientBeginCreateOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/credentialSets/{credentialSetName}" + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if registryName == "" { + return nil, errors.New("parameter registryName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{registryName}", url.PathEscape(registryName)) + if credentialSetName == "" { + return nil, errors.New("parameter credentialSetName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{credentialSetName}", url.PathEscape(credentialSetName)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-01-01-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, runtime.MarshalAsJSON(req, credentialSetCreateParameters) +} + +// BeginDelete - Deletes a credential set from a container registry. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-01-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - registryName - The name of the container registry. +// - credentialSetName - The name of the credential set. +// - options - CredentialSetsClientBeginDeleteOptions contains the optional parameters for the CredentialSetsClient.BeginDelete +// method. +func (client *CredentialSetsClient) BeginDelete(ctx context.Context, resourceGroupName string, registryName string, credentialSetName string, options *CredentialSetsClientBeginDeleteOptions) (*runtime.Poller[CredentialSetsClientDeleteResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.deleteOperation(ctx, resourceGroupName, registryName, credentialSetName, options) + if err != nil { + return nil, err + } + return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[CredentialSetsClientDeleteResponse]{ + FinalStateVia: runtime.FinalStateViaLocation, + }) + } else { + return runtime.NewPollerFromResumeToken[CredentialSetsClientDeleteResponse](options.ResumeToken, client.pl, nil) + } +} + +// Delete - Deletes a credential set from a container registry. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-01-01-preview +func (client *CredentialSetsClient) deleteOperation(ctx context.Context, resourceGroupName string, registryName string, credentialSetName string, options *CredentialSetsClientBeginDeleteOptions) (*http.Response, error) { + req, err := client.deleteCreateRequest(ctx, resourceGroupName, registryName, credentialSetName, options) + if err != nil { + return nil, err + } + resp, err := client.pl.Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { + return nil, runtime.NewResponseError(resp) + } + return resp, nil +} + +// deleteCreateRequest creates the Delete request. +func (client *CredentialSetsClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, registryName string, credentialSetName string, options *CredentialSetsClientBeginDeleteOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/credentialSets/{credentialSetName}" + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if registryName == "" { + return nil, errors.New("parameter registryName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{registryName}", url.PathEscape(registryName)) + if credentialSetName == "" { + return nil, errors.New("parameter credentialSetName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{credentialSetName}", url.PathEscape(credentialSetName)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-01-01-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// Get - Gets the properties of the specified credential set resource. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-01-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - registryName - The name of the container registry. +// - credentialSetName - The name of the credential set. +// - options - CredentialSetsClientGetOptions contains the optional parameters for the CredentialSetsClient.Get method. +func (client *CredentialSetsClient) Get(ctx context.Context, resourceGroupName string, registryName string, credentialSetName string, options *CredentialSetsClientGetOptions) (CredentialSetsClientGetResponse, error) { + req, err := client.getCreateRequest(ctx, resourceGroupName, registryName, credentialSetName, options) + if err != nil { + return CredentialSetsClientGetResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return CredentialSetsClientGetResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return CredentialSetsClientGetResponse{}, runtime.NewResponseError(resp) + } + return client.getHandleResponse(resp) +} + +// getCreateRequest creates the Get request. +func (client *CredentialSetsClient) getCreateRequest(ctx context.Context, resourceGroupName string, registryName string, credentialSetName string, options *CredentialSetsClientGetOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/credentialSets/{credentialSetName}" + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if registryName == "" { + return nil, errors.New("parameter registryName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{registryName}", url.PathEscape(registryName)) + if credentialSetName == "" { + return nil, errors.New("parameter credentialSetName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{credentialSetName}", url.PathEscape(credentialSetName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-01-01-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// getHandleResponse handles the Get response. +func (client *CredentialSetsClient) getHandleResponse(resp *http.Response) (CredentialSetsClientGetResponse, error) { + result := CredentialSetsClientGetResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.CredentialSet); err != nil { + return CredentialSetsClientGetResponse{}, err + } + return result, nil +} + +// NewListPager - Lists all credential set resources for the specified container registry. +// +// Generated from API version 2023-01-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - registryName - The name of the container registry. +// - options - CredentialSetsClientListOptions contains the optional parameters for the CredentialSetsClient.NewListPager method. +func (client *CredentialSetsClient) NewListPager(resourceGroupName string, registryName string, options *CredentialSetsClientListOptions) *runtime.Pager[CredentialSetsClientListResponse] { + return runtime.NewPager(runtime.PagingHandler[CredentialSetsClientListResponse]{ + More: func(page CredentialSetsClientListResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 + }, + Fetcher: func(ctx context.Context, page *CredentialSetsClientListResponse) (CredentialSetsClientListResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listCreateRequest(ctx, resourceGroupName, registryName, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return CredentialSetsClientListResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return CredentialSetsClientListResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return CredentialSetsClientListResponse{}, runtime.NewResponseError(resp) + } + return client.listHandleResponse(resp) + }, + }) +} + +// listCreateRequest creates the List request. +func (client *CredentialSetsClient) listCreateRequest(ctx context.Context, resourceGroupName string, registryName string, options *CredentialSetsClientListOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/credentialSets" + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if registryName == "" { + return nil, errors.New("parameter registryName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{registryName}", url.PathEscape(registryName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-01-01-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listHandleResponse handles the List response. +func (client *CredentialSetsClient) listHandleResponse(resp *http.Response) (CredentialSetsClientListResponse, error) { + result := CredentialSetsClientListResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.CredentialSetListResult); err != nil { + return CredentialSetsClientListResponse{}, err + } + return result, nil +} + +// BeginUpdate - Updates a credential set for a container registry with the specified parameters. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-01-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - registryName - The name of the container registry. +// - credentialSetName - The name of the credential set. +// - credentialSetUpdateParameters - The parameters for updating a credential set. +// - options - CredentialSetsClientBeginUpdateOptions contains the optional parameters for the CredentialSetsClient.BeginUpdate +// method. +func (client *CredentialSetsClient) BeginUpdate(ctx context.Context, resourceGroupName string, registryName string, credentialSetName string, credentialSetUpdateParameters CredentialSetUpdateParameters, options *CredentialSetsClientBeginUpdateOptions) (*runtime.Poller[CredentialSetsClientUpdateResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.update(ctx, resourceGroupName, registryName, credentialSetName, credentialSetUpdateParameters, options) + if err != nil { + return nil, err + } + return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[CredentialSetsClientUpdateResponse]{ + FinalStateVia: runtime.FinalStateViaAzureAsyncOp, + }) + } else { + return runtime.NewPollerFromResumeToken[CredentialSetsClientUpdateResponse](options.ResumeToken, client.pl, nil) + } +} + +// Update - Updates a credential set for a container registry with the specified parameters. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-01-01-preview +func (client *CredentialSetsClient) update(ctx context.Context, resourceGroupName string, registryName string, credentialSetName string, credentialSetUpdateParameters CredentialSetUpdateParameters, options *CredentialSetsClientBeginUpdateOptions) (*http.Response, error) { + req, err := client.updateCreateRequest(ctx, resourceGroupName, registryName, credentialSetName, credentialSetUpdateParameters, options) + if err != nil { + return nil, err + } + resp, err := client.pl.Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusCreated) { + return nil, runtime.NewResponseError(resp) + } + return resp, nil +} + +// updateCreateRequest creates the Update request. +func (client *CredentialSetsClient) updateCreateRequest(ctx context.Context, resourceGroupName string, registryName string, credentialSetName string, credentialSetUpdateParameters CredentialSetUpdateParameters, options *CredentialSetsClientBeginUpdateOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/credentialSets/{credentialSetName}" + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if registryName == "" { + return nil, errors.New("parameter registryName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{registryName}", url.PathEscape(registryName)) + if credentialSetName == "" { + return nil, errors.New("parameter credentialSetName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{credentialSetName}", url.PathEscape(credentialSetName)) + req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-01-01-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, runtime.MarshalAsJSON(req, credentialSetUpdateParameters) +} diff --git a/sdk/resourcemanager/containerregistry/armcontainerregistry/credentialsets_client_example_test.go b/sdk/resourcemanager/containerregistry/armcontainerregistry/credentialsets_client_example_test.go new file mode 100644 index 000000000000..c50386e932fa --- /dev/null +++ b/sdk/resourcemanager/containerregistry/armcontainerregistry/credentialsets_client_example_test.go @@ -0,0 +1,254 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armcontainerregistry_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2023-01-01-preview/examples/CredentialSetList.json +func ExampleCredentialSetsClient_NewListPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewCredentialSetsClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListPager("myResourceGroup", "myRegistry", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.CredentialSetListResult = armcontainerregistry.CredentialSetListResult{ + // Value: []*armcontainerregistry.CredentialSet{ + // { + // Name: to.Ptr("myCredentialSet"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/credentialSets"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/credentialSets/myCredentialSet"), + // Identity: &armcontainerregistry.IdentityProperties{ + // Type: to.Ptr(armcontainerregistry.ResourceIdentityTypeSystemAssigned), + // PrincipalID: to.Ptr("00000000-0000-0000-0000-000000000000"), + // TenantID: to.Ptr("00000000-0000-0000-0000-000000000000"), + // }, + // Properties: &armcontainerregistry.CredentialSetProperties{ + // AuthCredentials: []*armcontainerregistry.AuthCredential{ + // { + // Name: to.Ptr(armcontainerregistry.CredentialNameCredential1), + // CredentialHealth: &armcontainerregistry.CredentialHealth{ + // Status: to.Ptr(armcontainerregistry.CredentialHealthStatusHealthy), + // }, + // PasswordSecretIdentifier: to.Ptr("https://myvault.vault.azure.net/secrets/password"), + // UsernameSecretIdentifier: to.Ptr("https://myvault.vault.azure.net/secrets/username"), + // }}, + // CreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-11-07T18:20:08.012276+00:00"); return t}()), + // LoginServer: to.Ptr("docker.io"), + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2023-01-01-preview/examples/CredentialSetGet.json +func ExampleCredentialSetsClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewCredentialSetsClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "myResourceGroup", "myRegistry", "myCredentialSet", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.CredentialSet = armcontainerregistry.CredentialSet{ + // Name: to.Ptr("myCredentialSet"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/credentialSets"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/credentialSets/myCredentialSet"), + // Identity: &armcontainerregistry.IdentityProperties{ + // Type: to.Ptr(armcontainerregistry.ResourceIdentityTypeSystemAssigned), + // PrincipalID: to.Ptr("00000000-0000-0000-0000-000000000000"), + // TenantID: to.Ptr("00000000-0000-0000-0000-000000000000"), + // }, + // Properties: &armcontainerregistry.CredentialSetProperties{ + // AuthCredentials: []*armcontainerregistry.AuthCredential{ + // { + // Name: to.Ptr(armcontainerregistry.CredentialNameCredential1), + // CredentialHealth: &armcontainerregistry.CredentialHealth{ + // Status: to.Ptr(armcontainerregistry.CredentialHealthStatusHealthy), + // }, + // PasswordSecretIdentifier: to.Ptr("https://myvault.vault.azure.net/secrets/password"), + // UsernameSecretIdentifier: to.Ptr("https://myvault.vault.azure.net/secrets/username"), + // }}, + // CreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-11-07T18:20:08.012276+00:00"); return t}()), + // LoginServer: to.Ptr("docker.io"), + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2023-01-01-preview/examples/CredentialSetCreate.json +func ExampleCredentialSetsClient_BeginCreate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewCredentialSetsClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreate(ctx, "myResourceGroup", "myRegistry", "myCredentialSet", armcontainerregistry.CredentialSet{ + Identity: &armcontainerregistry.IdentityProperties{ + Type: to.Ptr(armcontainerregistry.ResourceIdentityTypeSystemAssigned), + }, + Properties: &armcontainerregistry.CredentialSetProperties{ + AuthCredentials: []*armcontainerregistry.AuthCredential{ + { + Name: to.Ptr(armcontainerregistry.CredentialNameCredential1), + PasswordSecretIdentifier: to.Ptr("https://myvault.vault.azure.net/secrets/password"), + UsernameSecretIdentifier: to.Ptr("https://myvault.vault.azure.net/secrets/username"), + }}, + LoginServer: to.Ptr("docker.io"), + }, + }, 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.CredentialSet = armcontainerregistry.CredentialSet{ + // Name: to.Ptr("myCredentialSet"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/credentialSets"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/credentialSets/myCredentialSet"), + // Identity: &armcontainerregistry.IdentityProperties{ + // Type: to.Ptr(armcontainerregistry.ResourceIdentityTypeSystemAssigned), + // PrincipalID: to.Ptr("00000000-0000-0000-0000-000000000000"), + // TenantID: to.Ptr("00000000-0000-0000-0000-000000000000"), + // }, + // Properties: &armcontainerregistry.CredentialSetProperties{ + // AuthCredentials: []*armcontainerregistry.AuthCredential{ + // { + // Name: to.Ptr(armcontainerregistry.CredentialNameCredential1), + // CredentialHealth: &armcontainerregistry.CredentialHealth{ + // Status: to.Ptr(armcontainerregistry.CredentialHealthStatusHealthy), + // }, + // PasswordSecretIdentifier: to.Ptr("https://myvault.vault.azure.net/secrets/password"), + // UsernameSecretIdentifier: to.Ptr("https://myvault.vault.azure.net/secrets/username"), + // }}, + // CreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-11-07T18:20:08.012276+00:00"); return t}()), + // LoginServer: to.Ptr("docker.io"), + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2023-01-01-preview/examples/CredentialSetDelete.json +func ExampleCredentialSetsClient_BeginDelete() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewCredentialSetsClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginDelete(ctx, "myResourceGroup", "myRegistry", "myCredentialSet", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + _, err = poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2023-01-01-preview/examples/CredentialSetUpdate.json +func ExampleCredentialSetsClient_BeginUpdate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewCredentialSetsClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginUpdate(ctx, "myResourceGroup", "myRegistry", "myCredentialSet", armcontainerregistry.CredentialSetUpdateParameters{ + Properties: &armcontainerregistry.CredentialSetUpdateProperties{ + AuthCredentials: []*armcontainerregistry.AuthCredential{ + { + Name: to.Ptr(armcontainerregistry.CredentialNameCredential1), + PasswordSecretIdentifier: to.Ptr("https://myvault.vault.azure.net/secrets/password2"), + UsernameSecretIdentifier: to.Ptr("https://myvault.vault.azure.net/secrets/username2"), + }}, + }, + }, 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.CredentialSet = armcontainerregistry.CredentialSet{ + // Name: to.Ptr("myCredentialSet"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/credentialSets"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/credentialSets/myCredentialSet"), + // Identity: &armcontainerregistry.IdentityProperties{ + // Type: to.Ptr(armcontainerregistry.ResourceIdentityTypeSystemAssigned), + // PrincipalID: to.Ptr("00000000-0000-0000-0000-000000000000"), + // TenantID: to.Ptr("00000000-0000-0000-0000-000000000000"), + // }, + // Properties: &armcontainerregistry.CredentialSetProperties{ + // AuthCredentials: []*armcontainerregistry.AuthCredential{ + // { + // Name: to.Ptr(armcontainerregistry.CredentialNameCredential1), + // CredentialHealth: &armcontainerregistry.CredentialHealth{ + // Status: to.Ptr(armcontainerregistry.CredentialHealthStatusHealthy), + // }, + // PasswordSecretIdentifier: to.Ptr("https://myvault.vault.azure.net/secrets/password2"), + // UsernameSecretIdentifier: to.Ptr("https://myvault.vault.azure.net/secrets/username2"), + // }}, + // CreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-11-07T18:20:08.012276+00:00"); return t}()), + // LoginServer: to.Ptr("docker.io"), + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // }, + // } +} diff --git a/sdk/resourcemanager/containerregistry/armcontainerregistry/zz_generated_exportpipelines_client.go b/sdk/resourcemanager/containerregistry/armcontainerregistry/exportpipelines_client.go similarity index 82% rename from sdk/resourcemanager/containerregistry/armcontainerregistry/zz_generated_exportpipelines_client.go rename to sdk/resourcemanager/containerregistry/armcontainerregistry/exportpipelines_client.go index 7e7480d116e1..1bff9aba53b6 100644 --- a/sdk/resourcemanager/containerregistry/armcontainerregistry/zz_generated_exportpipelines_client.go +++ b/sdk/resourcemanager/containerregistry/armcontainerregistry/exportpipelines_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armcontainerregistry @@ -31,9 +32,9 @@ type ExportPipelinesClient struct { } // NewExportPipelinesClient creates a new instance of ExportPipelinesClient with the specified values. -// subscriptionID - The Microsoft Azure subscription ID. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewExportPipelinesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ExportPipelinesClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,20 +57,23 @@ func NewExportPipelinesClient(subscriptionID string, credential azcore.TokenCred // BeginCreate - Creates an export pipeline for a container registry with the specified parameters. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// exportPipelineName - The name of the export pipeline. -// exportPipelineCreateParameters - The parameters for creating an export pipeline. -// options - ExportPipelinesClientBeginCreateOptions contains the optional parameters for the ExportPipelinesClient.BeginCreate -// method. +// +// Generated from API version 2023-01-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - registryName - The name of the container registry. +// - exportPipelineName - The name of the export pipeline. +// - exportPipelineCreateParameters - The parameters for creating an export pipeline. +// - options - ExportPipelinesClientBeginCreateOptions contains the optional parameters for the ExportPipelinesClient.BeginCreate +// method. func (client *ExportPipelinesClient) BeginCreate(ctx context.Context, resourceGroupName string, registryName string, exportPipelineName string, exportPipelineCreateParameters ExportPipeline, options *ExportPipelinesClientBeginCreateOptions) (*runtime.Poller[ExportPipelinesClientCreateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.create(ctx, resourceGroupName, registryName, exportPipelineName, exportPipelineCreateParameters, options) if err != nil { return nil, err } - return runtime.NewPoller[ExportPipelinesClientCreateResponse](resp, client.pl, nil) + return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[ExportPipelinesClientCreateResponse]{ + FinalStateVia: runtime.FinalStateViaAzureAsyncOp, + }) } else { return runtime.NewPollerFromResumeToken[ExportPipelinesClientCreateResponse](options.ResumeToken, client.pl, nil) } @@ -77,7 +81,8 @@ func (client *ExportPipelinesClient) BeginCreate(ctx context.Context, resourceGr // Create - Creates an export pipeline for a container registry with the specified parameters. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview +// +// Generated from API version 2023-01-01-preview func (client *ExportPipelinesClient) create(ctx context.Context, resourceGroupName string, registryName string, exportPipelineName string, exportPipelineCreateParameters ExportPipeline, options *ExportPipelinesClientBeginCreateOptions) (*http.Response, error) { req, err := client.createCreateRequest(ctx, resourceGroupName, registryName, exportPipelineName, exportPipelineCreateParameters, options) if err != nil { @@ -96,9 +101,6 @@ func (client *ExportPipelinesClient) create(ctx context.Context, resourceGroupNa // createCreateRequest creates the Create request. func (client *ExportPipelinesClient) createCreateRequest(ctx context.Context, resourceGroupName string, registryName string, exportPipelineName string, exportPipelineCreateParameters ExportPipeline, options *ExportPipelinesClientBeginCreateOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/exportPipelines/{exportPipelineName}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -117,7 +119,7 @@ func (client *ExportPipelinesClient) createCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-01-preview") + reqQP.Set("api-version", "2023-01-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, exportPipelineCreateParameters) @@ -125,19 +127,22 @@ func (client *ExportPipelinesClient) createCreateRequest(ctx context.Context, re // BeginDelete - Deletes an export pipeline from a container registry. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// exportPipelineName - The name of the export pipeline. -// options - ExportPipelinesClientBeginDeleteOptions contains the optional parameters for the ExportPipelinesClient.BeginDelete -// method. +// +// Generated from API version 2023-01-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - registryName - The name of the container registry. +// - exportPipelineName - The name of the export pipeline. +// - options - ExportPipelinesClientBeginDeleteOptions contains the optional parameters for the ExportPipelinesClient.BeginDelete +// method. func (client *ExportPipelinesClient) BeginDelete(ctx context.Context, resourceGroupName string, registryName string, exportPipelineName string, options *ExportPipelinesClientBeginDeleteOptions) (*runtime.Poller[ExportPipelinesClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, registryName, exportPipelineName, options) if err != nil { return nil, err } - return runtime.NewPoller[ExportPipelinesClientDeleteResponse](resp, client.pl, nil) + return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[ExportPipelinesClientDeleteResponse]{ + FinalStateVia: runtime.FinalStateViaLocation, + }) } else { return runtime.NewPollerFromResumeToken[ExportPipelinesClientDeleteResponse](options.ResumeToken, client.pl, nil) } @@ -145,7 +150,8 @@ func (client *ExportPipelinesClient) BeginDelete(ctx context.Context, resourceGr // Delete - Deletes an export pipeline from a container registry. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview +// +// Generated from API version 2023-01-01-preview func (client *ExportPipelinesClient) deleteOperation(ctx context.Context, resourceGroupName string, registryName string, exportPipelineName string, options *ExportPipelinesClientBeginDeleteOptions) (*http.Response, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, registryName, exportPipelineName, options) if err != nil { @@ -164,9 +170,6 @@ func (client *ExportPipelinesClient) deleteOperation(ctx context.Context, resour // deleteCreateRequest creates the Delete request. func (client *ExportPipelinesClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, registryName string, exportPipelineName string, options *ExportPipelinesClientBeginDeleteOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/exportPipelines/{exportPipelineName}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -185,7 +188,7 @@ func (client *ExportPipelinesClient) deleteCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-01-preview") + reqQP.Set("api-version", "2023-01-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -193,11 +196,12 @@ func (client *ExportPipelinesClient) deleteCreateRequest(ctx context.Context, re // Get - Gets the properties of the export pipeline. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// exportPipelineName - The name of the export pipeline. -// options - ExportPipelinesClientGetOptions contains the optional parameters for the ExportPipelinesClient.Get method. +// +// Generated from API version 2023-01-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - registryName - The name of the container registry. +// - exportPipelineName - The name of the export pipeline. +// - options - ExportPipelinesClientGetOptions contains the optional parameters for the ExportPipelinesClient.Get method. func (client *ExportPipelinesClient) Get(ctx context.Context, resourceGroupName string, registryName string, exportPipelineName string, options *ExportPipelinesClientGetOptions) (ExportPipelinesClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, registryName, exportPipelineName, options) if err != nil { @@ -216,9 +220,6 @@ func (client *ExportPipelinesClient) Get(ctx context.Context, resourceGroupName // getCreateRequest creates the Get request. func (client *ExportPipelinesClient) getCreateRequest(ctx context.Context, resourceGroupName string, registryName string, exportPipelineName string, options *ExportPipelinesClientGetOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/exportPipelines/{exportPipelineName}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -237,7 +238,7 @@ func (client *ExportPipelinesClient) getCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-01-preview") + reqQP.Set("api-version", "2023-01-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -253,11 +254,12 @@ func (client *ExportPipelinesClient) getHandleResponse(resp *http.Response) (Exp } // NewListPager - Lists all export pipelines for the specified container registry. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// options - ExportPipelinesClientListOptions contains the optional parameters for the ExportPipelinesClient.List method. +// +// Generated from API version 2023-01-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - registryName - The name of the container registry. +// - options - ExportPipelinesClientListOptions contains the optional parameters for the ExportPipelinesClient.NewListPager +// method. func (client *ExportPipelinesClient) NewListPager(resourceGroupName string, registryName string, options *ExportPipelinesClientListOptions) *runtime.Pager[ExportPipelinesClientListResponse] { return runtime.NewPager(runtime.PagingHandler[ExportPipelinesClientListResponse]{ More: func(page ExportPipelinesClientListResponse) bool { @@ -289,9 +291,6 @@ func (client *ExportPipelinesClient) NewListPager(resourceGroupName string, regi // listCreateRequest creates the List request. func (client *ExportPipelinesClient) listCreateRequest(ctx context.Context, resourceGroupName string, registryName string, options *ExportPipelinesClientListOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/exportPipelines" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -306,7 +305,7 @@ func (client *ExportPipelinesClient) listCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-01-preview") + reqQP.Set("api-version", "2023-01-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/containerregistry/armcontainerregistry/exportpipelines_client_example_test.go b/sdk/resourcemanager/containerregistry/armcontainerregistry/exportpipelines_client_example_test.go new file mode 100644 index 000000000000..e0f980611cb4 --- /dev/null +++ b/sdk/resourcemanager/containerregistry/armcontainerregistry/exportpipelines_client_example_test.go @@ -0,0 +1,189 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armcontainerregistry_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2023-01-01-preview/examples/ExportPipelineList.json +func ExampleExportPipelinesClient_NewListPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewExportPipelinesClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListPager("myResourceGroup", "myRegistry", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.ExportPipelineListResult = armcontainerregistry.ExportPipelineListResult{ + // Value: []*armcontainerregistry.ExportPipeline{ + // { + // Name: to.Ptr("myExportPipeline"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/exportPipelines"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/exportPipelines/myExportPipeline"), + // Identity: &armcontainerregistry.IdentityProperties{ + // Type: to.Ptr(armcontainerregistry.ResourceIdentityTypeSystemAssigned), + // PrincipalID: to.Ptr("fa153151-b9fd-46f4-9088-5e6600f2689v"), + // TenantID: to.Ptr("f686d426-8d16-42db-81b7-abu4gm510ccd"), + // }, + // Location: to.Ptr("westus"), + // Properties: &armcontainerregistry.ExportPipelineProperties{ + // Options: []*armcontainerregistry.PipelineOptions{ + // to.Ptr(armcontainerregistry.PipelineOptionsOverwriteBlobs)}, + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // Target: &armcontainerregistry.ExportPipelineTargetProperties{ + // Type: to.Ptr("AzureStorageBlobContainer"), + // KeyVaultURI: to.Ptr("https://myvault.vault.azure.net/secrets/acrexportsas"), + // URI: to.Ptr("https://accountname.blob.core.windows.net/containername"), + // }, + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2023-01-01-preview/examples/ExportPipelineGet.json +func ExampleExportPipelinesClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewExportPipelinesClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "myResourceGroup", "myRegistry", "myExportPipeline", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.ExportPipeline = armcontainerregistry.ExportPipeline{ + // Name: to.Ptr("myExportPipeline"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/exportPipelines"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/exportPipelines/myExportPipeline"), + // Identity: &armcontainerregistry.IdentityProperties{ + // Type: to.Ptr(armcontainerregistry.ResourceIdentityTypeSystemAssigned), + // PrincipalID: to.Ptr("fa153151-b9fd-46f4-9088-5e6600f2689v"), + // TenantID: to.Ptr("f686d426-8d16-42db-81b7-abu4gm510ccd"), + // }, + // Location: to.Ptr("westus"), + // Properties: &armcontainerregistry.ExportPipelineProperties{ + // Options: []*armcontainerregistry.PipelineOptions{ + // to.Ptr(armcontainerregistry.PipelineOptionsOverwriteBlobs)}, + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // Target: &armcontainerregistry.ExportPipelineTargetProperties{ + // Type: to.Ptr("AzureStorageBlobContainer"), + // KeyVaultURI: to.Ptr("https://myvault.vault.azure.net/secrets/acrexportsas"), + // URI: to.Ptr("https://accountname.blob.core.windows.net/containername"), + // }, + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2023-01-01-preview/examples/ExportPipelineCreate.json +func ExampleExportPipelinesClient_BeginCreate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewExportPipelinesClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreate(ctx, "myResourceGroup", "myRegistry", "myExportPipeline", armcontainerregistry.ExportPipeline{ + Identity: &armcontainerregistry.IdentityProperties{ + Type: to.Ptr(armcontainerregistry.ResourceIdentityTypeSystemAssigned), + }, + Location: to.Ptr("westus"), + Properties: &armcontainerregistry.ExportPipelineProperties{ + Options: []*armcontainerregistry.PipelineOptions{ + to.Ptr(armcontainerregistry.PipelineOptionsOverwriteBlobs)}, + Target: &armcontainerregistry.ExportPipelineTargetProperties{ + Type: to.Ptr("AzureStorageBlobContainer"), + KeyVaultURI: to.Ptr("https://myvault.vault.azure.net/secrets/acrexportsas"), + URI: to.Ptr("https://accountname.blob.core.windows.net/containername"), + }, + }, + }, 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.ExportPipeline = armcontainerregistry.ExportPipeline{ + // Name: to.Ptr("myExportPipeline"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/exportPipelines"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/exportPipelines/myExportPipeline"), + // Identity: &armcontainerregistry.IdentityProperties{ + // Type: to.Ptr(armcontainerregistry.ResourceIdentityTypeSystemAssigned), + // PrincipalID: to.Ptr("fa153151-b9fd-46f4-9088-5e6600f2689v"), + // TenantID: to.Ptr("f686d426-8d16-42db-81b7-abu4gm510ccd"), + // }, + // Location: to.Ptr("westus"), + // Properties: &armcontainerregistry.ExportPipelineProperties{ + // Options: []*armcontainerregistry.PipelineOptions{ + // to.Ptr(armcontainerregistry.PipelineOptionsOverwriteBlobs)}, + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // Target: &armcontainerregistry.ExportPipelineTargetProperties{ + // Type: to.Ptr("AzureStorageBlobContainer"), + // KeyVaultURI: to.Ptr("https://myvault.vault.azure.net/secrets/acrexportsas"), + // URI: to.Ptr("https://accountname.blob.core.windows.net/containername"), + // }, + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2023-01-01-preview/examples/ExportPipelineDelete.json +func ExampleExportPipelinesClient_BeginDelete() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewExportPipelinesClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginDelete(ctx, "myResourceGroup", "myRegistry", "myExportPipeline", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + _, err = poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } +} diff --git a/sdk/resourcemanager/containerregistry/armcontainerregistry/go.mod b/sdk/resourcemanager/containerregistry/armcontainerregistry/go.mod index afd6a9ed177e..2ce1582f9bfd 100644 --- a/sdk/resourcemanager/containerregistry/armcontainerregistry/go.mod +++ b/sdk/resourcemanager/containerregistry/armcontainerregistry/go.mod @@ -4,26 +4,18 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.0 - github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.0.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.1 - github.com/stretchr/testify v1.7.0 + github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.1 ) require ( github.com/Azure/azure-sdk-for-go/sdk/internal v1.0.0 // indirect - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0 // indirect - github.com/AzureAD/microsoft-authentication-library-for-go v0.4.0 // indirect - github.com/davecgh/go-spew v1.1.1 // indirect - github.com/dnaeon/go-vcr v1.1.0 // indirect - github.com/golang-jwt/jwt v3.2.1+incompatible // indirect + github.com/AzureAD/microsoft-authentication-library-for-go v0.8.1 // indirect + github.com/golang-jwt/jwt/v4 v4.4.2 // 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 - github.com/pmezard/go-difflib v1.0.0 // 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 - gopkg.in/yaml.v2 v2.4.0 // indirect - gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect ) diff --git a/sdk/resourcemanager/containerregistry/armcontainerregistry/go.sum b/sdk/resourcemanager/containerregistry/armcontainerregistry/go.sum index 07096d31831b..f62f42f1f55c 100644 --- a/sdk/resourcemanager/containerregistry/armcontainerregistry/go.sum +++ b/sdk/resourcemanager/containerregistry/armcontainerregistry/go.sum @@ -1,50 +1,30 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.0 h1:Ut0ZGdOwJDw0npYEg+TLlPls3Pq6JiZaP2/aGKir7Zw= github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.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/azidentity v1.2.1 h1:T8quHYlUGyb/oqtSTwqlCr1ilJHrDv+ZtpSfo+hm1BU= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.1/go.mod h1:gLa1CL2RNE4s7M3yopJ/p0iq5DdY6Yv5ZUt9MTRZOQM= 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/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.1 h1:BZOe7ExNYNGmapT91ZUrxtMYsqVljMxTHEnwjOdG7pk= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.1/go.mod h1:TSPEzbGHEgqFa3kUn09SpCrfKNbj7+mMulU/72Vg84E= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0 h1:ECsQtyERDVz3NP3kvDOTLvbQhqWp/x9EsGKtb4ogUr8= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0/go.mod h1:s1tW/At+xHqjNFvWU4G0c0Qv33KOhvbGNj0RCTQDV8s= -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/AzureAD/microsoft-authentication-library-for-go v0.8.1 h1:oPdPEZFSbl7oSPEAIPMPBMUmiL+mqgzBJwM/9qYcwNg= +github.com/AzureAD/microsoft-authentication-library-for-go v0.8.1/go.mod h1:4qFor3D/HDsvBME35Xy9rwW9DecL+M2sNw1ybjPtwA0= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= -github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 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= +github.com/golang-jwt/jwt/v4 v4.4.2 h1:rcc4lwaZgFMCZ5jxF9ABolDcIHdBytAFgqFPbSJQAYs= +github.com/golang-jwt/jwt/v4 v4.4.2/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= 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-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-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= -gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= -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= -gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/sdk/resourcemanager/containerregistry/armcontainerregistry/zz_generated_importpipelines_client.go b/sdk/resourcemanager/containerregistry/armcontainerregistry/importpipelines_client.go similarity index 82% rename from sdk/resourcemanager/containerregistry/armcontainerregistry/zz_generated_importpipelines_client.go rename to sdk/resourcemanager/containerregistry/armcontainerregistry/importpipelines_client.go index 28a6f0b1af52..832157d61558 100644 --- a/sdk/resourcemanager/containerregistry/armcontainerregistry/zz_generated_importpipelines_client.go +++ b/sdk/resourcemanager/containerregistry/armcontainerregistry/importpipelines_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armcontainerregistry @@ -31,9 +32,9 @@ type ImportPipelinesClient struct { } // NewImportPipelinesClient creates a new instance of ImportPipelinesClient with the specified values. -// subscriptionID - The Microsoft Azure subscription ID. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewImportPipelinesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ImportPipelinesClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,20 +57,23 @@ func NewImportPipelinesClient(subscriptionID string, credential azcore.TokenCred // BeginCreate - Creates an import pipeline for a container registry with the specified parameters. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// importPipelineName - The name of the import pipeline. -// importPipelineCreateParameters - The parameters for creating an import pipeline. -// options - ImportPipelinesClientBeginCreateOptions contains the optional parameters for the ImportPipelinesClient.BeginCreate -// method. +// +// Generated from API version 2023-01-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - registryName - The name of the container registry. +// - importPipelineName - The name of the import pipeline. +// - importPipelineCreateParameters - The parameters for creating an import pipeline. +// - options - ImportPipelinesClientBeginCreateOptions contains the optional parameters for the ImportPipelinesClient.BeginCreate +// method. func (client *ImportPipelinesClient) BeginCreate(ctx context.Context, resourceGroupName string, registryName string, importPipelineName string, importPipelineCreateParameters ImportPipeline, options *ImportPipelinesClientBeginCreateOptions) (*runtime.Poller[ImportPipelinesClientCreateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.create(ctx, resourceGroupName, registryName, importPipelineName, importPipelineCreateParameters, options) if err != nil { return nil, err } - return runtime.NewPoller[ImportPipelinesClientCreateResponse](resp, client.pl, nil) + return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[ImportPipelinesClientCreateResponse]{ + FinalStateVia: runtime.FinalStateViaAzureAsyncOp, + }) } else { return runtime.NewPollerFromResumeToken[ImportPipelinesClientCreateResponse](options.ResumeToken, client.pl, nil) } @@ -77,7 +81,8 @@ func (client *ImportPipelinesClient) BeginCreate(ctx context.Context, resourceGr // Create - Creates an import pipeline for a container registry with the specified parameters. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview +// +// Generated from API version 2023-01-01-preview func (client *ImportPipelinesClient) create(ctx context.Context, resourceGroupName string, registryName string, importPipelineName string, importPipelineCreateParameters ImportPipeline, options *ImportPipelinesClientBeginCreateOptions) (*http.Response, error) { req, err := client.createCreateRequest(ctx, resourceGroupName, registryName, importPipelineName, importPipelineCreateParameters, options) if err != nil { @@ -96,9 +101,6 @@ func (client *ImportPipelinesClient) create(ctx context.Context, resourceGroupNa // createCreateRequest creates the Create request. func (client *ImportPipelinesClient) createCreateRequest(ctx context.Context, resourceGroupName string, registryName string, importPipelineName string, importPipelineCreateParameters ImportPipeline, options *ImportPipelinesClientBeginCreateOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/importPipelines/{importPipelineName}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -117,7 +119,7 @@ func (client *ImportPipelinesClient) createCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-01-preview") + reqQP.Set("api-version", "2023-01-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, importPipelineCreateParameters) @@ -125,19 +127,22 @@ func (client *ImportPipelinesClient) createCreateRequest(ctx context.Context, re // BeginDelete - Deletes an import pipeline from a container registry. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// importPipelineName - The name of the import pipeline. -// options - ImportPipelinesClientBeginDeleteOptions contains the optional parameters for the ImportPipelinesClient.BeginDelete -// method. +// +// Generated from API version 2023-01-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - registryName - The name of the container registry. +// - importPipelineName - The name of the import pipeline. +// - options - ImportPipelinesClientBeginDeleteOptions contains the optional parameters for the ImportPipelinesClient.BeginDelete +// method. func (client *ImportPipelinesClient) BeginDelete(ctx context.Context, resourceGroupName string, registryName string, importPipelineName string, options *ImportPipelinesClientBeginDeleteOptions) (*runtime.Poller[ImportPipelinesClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, registryName, importPipelineName, options) if err != nil { return nil, err } - return runtime.NewPoller[ImportPipelinesClientDeleteResponse](resp, client.pl, nil) + return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[ImportPipelinesClientDeleteResponse]{ + FinalStateVia: runtime.FinalStateViaLocation, + }) } else { return runtime.NewPollerFromResumeToken[ImportPipelinesClientDeleteResponse](options.ResumeToken, client.pl, nil) } @@ -145,7 +150,8 @@ func (client *ImportPipelinesClient) BeginDelete(ctx context.Context, resourceGr // Delete - Deletes an import pipeline from a container registry. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview +// +// Generated from API version 2023-01-01-preview func (client *ImportPipelinesClient) deleteOperation(ctx context.Context, resourceGroupName string, registryName string, importPipelineName string, options *ImportPipelinesClientBeginDeleteOptions) (*http.Response, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, registryName, importPipelineName, options) if err != nil { @@ -164,9 +170,6 @@ func (client *ImportPipelinesClient) deleteOperation(ctx context.Context, resour // deleteCreateRequest creates the Delete request. func (client *ImportPipelinesClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, registryName string, importPipelineName string, options *ImportPipelinesClientBeginDeleteOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/importPipelines/{importPipelineName}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -185,7 +188,7 @@ func (client *ImportPipelinesClient) deleteCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-01-preview") + reqQP.Set("api-version", "2023-01-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -193,11 +196,12 @@ func (client *ImportPipelinesClient) deleteCreateRequest(ctx context.Context, re // Get - Gets the properties of the import pipeline. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// importPipelineName - The name of the import pipeline. -// options - ImportPipelinesClientGetOptions contains the optional parameters for the ImportPipelinesClient.Get method. +// +// Generated from API version 2023-01-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - registryName - The name of the container registry. +// - importPipelineName - The name of the import pipeline. +// - options - ImportPipelinesClientGetOptions contains the optional parameters for the ImportPipelinesClient.Get method. func (client *ImportPipelinesClient) Get(ctx context.Context, resourceGroupName string, registryName string, importPipelineName string, options *ImportPipelinesClientGetOptions) (ImportPipelinesClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, registryName, importPipelineName, options) if err != nil { @@ -216,9 +220,6 @@ func (client *ImportPipelinesClient) Get(ctx context.Context, resourceGroupName // getCreateRequest creates the Get request. func (client *ImportPipelinesClient) getCreateRequest(ctx context.Context, resourceGroupName string, registryName string, importPipelineName string, options *ImportPipelinesClientGetOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/importPipelines/{importPipelineName}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -237,7 +238,7 @@ func (client *ImportPipelinesClient) getCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-01-preview") + reqQP.Set("api-version", "2023-01-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -253,11 +254,12 @@ func (client *ImportPipelinesClient) getHandleResponse(resp *http.Response) (Imp } // NewListPager - Lists all import pipelines for the specified container registry. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// options - ImportPipelinesClientListOptions contains the optional parameters for the ImportPipelinesClient.List method. +// +// Generated from API version 2023-01-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - registryName - The name of the container registry. +// - options - ImportPipelinesClientListOptions contains the optional parameters for the ImportPipelinesClient.NewListPager +// method. func (client *ImportPipelinesClient) NewListPager(resourceGroupName string, registryName string, options *ImportPipelinesClientListOptions) *runtime.Pager[ImportPipelinesClientListResponse] { return runtime.NewPager(runtime.PagingHandler[ImportPipelinesClientListResponse]{ More: func(page ImportPipelinesClientListResponse) bool { @@ -289,9 +291,6 @@ func (client *ImportPipelinesClient) NewListPager(resourceGroupName string, regi // listCreateRequest creates the List request. func (client *ImportPipelinesClient) listCreateRequest(ctx context.Context, resourceGroupName string, registryName string, options *ImportPipelinesClientListOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/importPipelines" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -306,7 +305,7 @@ func (client *ImportPipelinesClient) listCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-01-preview") + reqQP.Set("api-version", "2023-01-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/containerregistry/armcontainerregistry/importpipelines_client_example_test.go b/sdk/resourcemanager/containerregistry/armcontainerregistry/importpipelines_client_example_test.go new file mode 100644 index 000000000000..1abcd828160b --- /dev/null +++ b/sdk/resourcemanager/containerregistry/armcontainerregistry/importpipelines_client_example_test.go @@ -0,0 +1,227 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armcontainerregistry_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2023-01-01-preview/examples/ImportPipelineList.json +func ExampleImportPipelinesClient_NewListPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewImportPipelinesClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListPager("myResourceGroup", "myRegistry", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.ImportPipelineListResult = armcontainerregistry.ImportPipelineListResult{ + // Value: []*armcontainerregistry.ImportPipeline{ + // { + // Name: to.Ptr("myImportPipeline"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/importPipelines"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/importPipelines/myImportPipeline"), + // Identity: &armcontainerregistry.IdentityProperties{ + // Type: to.Ptr(armcontainerregistry.ResourceIdentityTypeUserAssigned), + // UserAssignedIdentities: map[string]*armcontainerregistry.UserIdentityProperties{ + // "/subscriptions/f9d7ebed-adbd-4cb4-b973-aaf82c136138/resourcegroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity2": &armcontainerregistry.UserIdentityProperties{ + // ClientID: to.Ptr("d3ce1bc2-f7d7-4a5b-9979-950f4e57680e"), + // PrincipalID: to.Ptr("b6p9f58b-6fbf-4efd-a7e0-fvd46911a466"), + // }, + // }, + // }, + // Location: to.Ptr("westus"), + // Properties: &armcontainerregistry.ImportPipelineProperties{ + // Options: []*armcontainerregistry.PipelineOptions{ + // to.Ptr(armcontainerregistry.PipelineOptionsOverwriteTags), + // to.Ptr(armcontainerregistry.PipelineOptionsDeleteSourceBlobOnSuccess), + // to.Ptr(armcontainerregistry.PipelineOptionsContinueOnErrors)}, + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // Source: &armcontainerregistry.ImportPipelineSourceProperties{ + // Type: to.Ptr(armcontainerregistry.PipelineSourceTypeAzureStorageBlobContainer), + // KeyVaultURI: to.Ptr("https://myvault.vault.azure.net/secrets/acrimportsas"), + // URI: to.Ptr("https://accountname.blob.core.windows.net/containername"), + // }, + // Trigger: &armcontainerregistry.PipelineTriggerProperties{ + // SourceTrigger: &armcontainerregistry.PipelineSourceTriggerProperties{ + // Status: to.Ptr(armcontainerregistry.TriggerStatusEnabled), + // }, + // }, + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2023-01-01-preview/examples/ImportPipelineGet.json +func ExampleImportPipelinesClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewImportPipelinesClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "myResourceGroup", "myRegistry", "myImportPipeline", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.ImportPipeline = armcontainerregistry.ImportPipeline{ + // Name: to.Ptr("myImportPipeline"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/importPipelines"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/importPipelines/myImportPipeline"), + // Identity: &armcontainerregistry.IdentityProperties{ + // Type: to.Ptr(armcontainerregistry.ResourceIdentityTypeUserAssigned), + // UserAssignedIdentities: map[string]*armcontainerregistry.UserIdentityProperties{ + // "/subscriptions/f9d7ebed-adbd-4cb4-b973-aaf82c136138/resourcegroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity2": &armcontainerregistry.UserIdentityProperties{ + // ClientID: to.Ptr("d3ce1bc2-f7d7-4a5b-9979-950f4e57680e"), + // PrincipalID: to.Ptr("b6p9f58b-6fbf-4efd-a7e0-fvd46911a466"), + // }, + // }, + // }, + // Location: to.Ptr("westus"), + // Properties: &armcontainerregistry.ImportPipelineProperties{ + // Options: []*armcontainerregistry.PipelineOptions{ + // to.Ptr(armcontainerregistry.PipelineOptionsOverwriteTags), + // to.Ptr(armcontainerregistry.PipelineOptionsDeleteSourceBlobOnSuccess), + // to.Ptr(armcontainerregistry.PipelineOptionsContinueOnErrors)}, + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // Source: &armcontainerregistry.ImportPipelineSourceProperties{ + // Type: to.Ptr(armcontainerregistry.PipelineSourceTypeAzureStorageBlobContainer), + // KeyVaultURI: to.Ptr("https://myvault.vault.azure.net/secrets/acrimportsas"), + // URI: to.Ptr("https://accountname.blob.core.windows.net/containername"), + // }, + // Trigger: &armcontainerregistry.PipelineTriggerProperties{ + // SourceTrigger: &armcontainerregistry.PipelineSourceTriggerProperties{ + // Status: to.Ptr(armcontainerregistry.TriggerStatusEnabled), + // }, + // }, + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2023-01-01-preview/examples/ImportPipelineCreate.json +func ExampleImportPipelinesClient_BeginCreate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewImportPipelinesClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreate(ctx, "myResourceGroup", "myRegistry", "myImportPipeline", armcontainerregistry.ImportPipeline{ + Identity: &armcontainerregistry.IdentityProperties{ + Type: to.Ptr(armcontainerregistry.ResourceIdentityTypeUserAssigned), + UserAssignedIdentities: map[string]*armcontainerregistry.UserIdentityProperties{ + "/subscriptions/f9d7ebed-adbd-4cb4-b973-aaf82c136138/resourcegroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity2": {}, + }, + }, + Location: to.Ptr("westus"), + Properties: &armcontainerregistry.ImportPipelineProperties{ + Options: []*armcontainerregistry.PipelineOptions{ + to.Ptr(armcontainerregistry.PipelineOptionsOverwriteTags), + to.Ptr(armcontainerregistry.PipelineOptionsDeleteSourceBlobOnSuccess), + to.Ptr(armcontainerregistry.PipelineOptionsContinueOnErrors)}, + Source: &armcontainerregistry.ImportPipelineSourceProperties{ + Type: to.Ptr(armcontainerregistry.PipelineSourceTypeAzureStorageBlobContainer), + KeyVaultURI: to.Ptr("https://myvault.vault.azure.net/secrets/acrimportsas"), + URI: to.Ptr("https://accountname.blob.core.windows.net/containername"), + }, + }, + }, 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.ImportPipeline = armcontainerregistry.ImportPipeline{ + // Name: to.Ptr("myImportPipeline"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/importPipelines"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/importPipelines/myImportPipeline"), + // Identity: &armcontainerregistry.IdentityProperties{ + // Type: to.Ptr(armcontainerregistry.ResourceIdentityTypeUserAssigned), + // UserAssignedIdentities: map[string]*armcontainerregistry.UserIdentityProperties{ + // "/subscriptions/f9d7ebed-adbd-4cb4-b973-aaf82c136138/resourcegroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity2": &armcontainerregistry.UserIdentityProperties{ + // ClientID: to.Ptr("d3ce1bc2-f7d7-4a5b-9979-950f4e57680e"), + // PrincipalID: to.Ptr("b6p9f58b-6fbf-4efd-a7e0-fvd46911a466"), + // }, + // }, + // }, + // Location: to.Ptr("westus"), + // Properties: &armcontainerregistry.ImportPipelineProperties{ + // Options: []*armcontainerregistry.PipelineOptions{ + // to.Ptr(armcontainerregistry.PipelineOptionsOverwriteTags), + // to.Ptr(armcontainerregistry.PipelineOptionsDeleteSourceBlobOnSuccess), + // to.Ptr(armcontainerregistry.PipelineOptionsContinueOnErrors)}, + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // Source: &armcontainerregistry.ImportPipelineSourceProperties{ + // Type: to.Ptr(armcontainerregistry.PipelineSourceTypeAzureStorageBlobContainer), + // KeyVaultURI: to.Ptr("https://myvault.vault.azure.net/secrets/acrimportsas"), + // URI: to.Ptr("https://accountname.blob.core.windows.net/containername"), + // }, + // Trigger: &armcontainerregistry.PipelineTriggerProperties{ + // SourceTrigger: &armcontainerregistry.PipelineSourceTriggerProperties{ + // Status: to.Ptr(armcontainerregistry.TriggerStatusEnabled), + // }, + // }, + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2023-01-01-preview/examples/ImportPipelineDelete.json +func ExampleImportPipelinesClient_BeginDelete() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewImportPipelinesClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginDelete(ctx, "myResourceGroup", "myRegistry", "myImportPipeline", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + _, err = poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } +} diff --git a/sdk/resourcemanager/containerregistry/armcontainerregistry/zz_generated_models.go b/sdk/resourcemanager/containerregistry/armcontainerregistry/models.go similarity index 93% rename from sdk/resourcemanager/containerregistry/armcontainerregistry/zz_generated_models.go rename to sdk/resourcemanager/containerregistry/armcontainerregistry/models.go index 3e0b5132de83..8fa8c93d2619 100644 --- a/sdk/resourcemanager/containerregistry/armcontainerregistry/zz_generated_models.go +++ b/sdk/resourcemanager/containerregistry/armcontainerregistry/models.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armcontainerregistry @@ -133,7 +134,7 @@ type AgentPoolsClientGetQueueStatusOptions struct { // placeholder for future optional parameters } -// AgentPoolsClientListOptions contains the optional parameters for the AgentPoolsClient.List method. +// AgentPoolsClientListOptions contains the optional parameters for the AgentPoolsClient.NewListPager method. type AgentPoolsClientListOptions struct { // placeholder for future optional parameters } @@ -156,6 +157,21 @@ type Argument struct { IsSecret *bool `json:"isSecret,omitempty"` } +// AuthCredential - Authentication credential stored for an upstream. +type AuthCredential struct { + // The name of the credential. + Name *CredentialName `json:"name,omitempty"` + + // KeyVault Secret URI for accessing the password. + PasswordSecretIdentifier *string `json:"passwordSecretIdentifier,omitempty"` + + // KeyVault Secret URI for accessing the username. + UsernameSecretIdentifier *string `json:"usernameSecretIdentifier,omitempty"` + + // READ-ONLY; This provides data pertaining to the health of the auth credential. + CredentialHealth *CredentialHealth `json:"credentialHealth,omitempty" azure:"ro"` +} + // AuthInfo - The authorization properties for accessing the source code repository. type AuthInfo struct { // REQUIRED; The access token used to access the source control provider. @@ -252,6 +268,91 @@ type BaseImageTriggerUpdateParameters struct { UpdateTriggerPayloadType *UpdateTriggerPayloadType `json:"updateTriggerPayloadType,omitempty"` } +// CacheRule - An object that represents a cache rule for a container registry. +type CacheRule struct { + // The properties of the cache rule. + Properties *CacheRuleProperties `json:"properties,omitempty"` + + // READ-ONLY; The resource ID. + ID *string `json:"id,omitempty" azure:"ro"` + + // READ-ONLY; The name of the resource. + Name *string `json:"name,omitempty" azure:"ro"` + + // READ-ONLY; Metadata pertaining to creation and last modification of the resource. + SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + + // READ-ONLY; The type of the resource. + Type *string `json:"type,omitempty" azure:"ro"` +} + +// CacheRuleProperties - The properties of a cache rule. +type CacheRuleProperties struct { + // The ARM resource ID of the credential store which is associated with the cache rule. + CredentialSetResourceID *string `json:"credentialSetResourceId,omitempty"` + + // Source repository pulled from upstream. + SourceRepository *string `json:"sourceRepository,omitempty"` + + // Target repository specified in docker pull command. Eg: docker pull myregistry.azurecr.io/{targetRepository}:{tag} + TargetRepository *string `json:"targetRepository,omitempty"` + + // READ-ONLY; The creation date of the cache rule. + CreationDate *time.Time `json:"creationDate,omitempty" azure:"ro"` + + // READ-ONLY; Provisioning state of the resource. + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` +} + +// CacheRuleUpdateParameters - The parameters for updating a cache rule. +type CacheRuleUpdateParameters struct { + // The properties of the cache rule update parameters. + Properties *CacheRuleUpdateProperties `json:"properties,omitempty"` +} + +// CacheRuleUpdateProperties - The parameters for updating cache rule properties. +type CacheRuleUpdateProperties struct { + // The ARM resource ID of the credential store which is associated with the Cache rule. + CredentialSetResourceID *string `json:"credentialSetResourceId,omitempty"` +} + +// CacheRulesClientBeginCreateOptions contains the optional parameters for the CacheRulesClient.BeginCreate method. +type CacheRulesClientBeginCreateOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// CacheRulesClientBeginDeleteOptions contains the optional parameters for the CacheRulesClient.BeginDelete method. +type CacheRulesClientBeginDeleteOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// CacheRulesClientBeginUpdateOptions contains the optional parameters for the CacheRulesClient.BeginUpdate method. +type CacheRulesClientBeginUpdateOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// CacheRulesClientGetOptions contains the optional parameters for the CacheRulesClient.Get method. +type CacheRulesClientGetOptions struct { + // placeholder for future optional parameters +} + +// CacheRulesClientListOptions contains the optional parameters for the CacheRulesClient.NewListPager method. +type CacheRulesClientListOptions struct { + // placeholder for future optional parameters +} + +// CacheRulesListResult - The result of a request to list cache rules for a container registry. +type CacheRulesListResult struct { + // If provided, client must use NextLink URI to request next list of cache rules. + NextLink *string `json:"nextLink,omitempty"` + + // The list of cache rules. + Value []*CacheRule `json:"value,omitempty"` +} + // CallbackConfig - The configuration of service URI and custom headers for the webhook. type CallbackConfig struct { // REQUIRED; The service URI for the webhook to post notifications. @@ -294,7 +395,7 @@ type ConnectedRegistriesClientGetOptions struct { // placeholder for future optional parameters } -// ConnectedRegistriesClientListOptions contains the optional parameters for the ConnectedRegistriesClient.List method. +// ConnectedRegistriesClientListOptions contains the optional parameters for the ConnectedRegistriesClient.NewListPager method. type ConnectedRegistriesClientListOptions struct { // An OData filter expression that describes a subset of connectedRegistries to return. The parameters that can be filtered // are parent.id (the resource id of the connectedRegistry parent), mode, and @@ -390,6 +491,107 @@ type ConnectedRegistryUpdateProperties struct { SyncProperties *SyncUpdateProperties `json:"syncProperties,omitempty"` } +// CredentialHealth - The health of the auth credential. +type CredentialHealth struct { + // Error code representing the health check error. + ErrorCode *string `json:"errorCode,omitempty"` + + // Descriptive message representing the health check error. + ErrorMessage *string `json:"errorMessage,omitempty"` + + // The health status of credential. + Status *CredentialHealthStatus `json:"status,omitempty"` +} + +// CredentialSet - An object that represents a credential set resource for a container registry. +type CredentialSet struct { + // Identities associated with the resource. This is used to access the KeyVault secrets. + Identity *IdentityProperties `json:"identity,omitempty"` + + // The properties of the credential set. + Properties *CredentialSetProperties `json:"properties,omitempty"` + + // READ-ONLY; The resource ID. + ID *string `json:"id,omitempty" azure:"ro"` + + // READ-ONLY; The name of the resource. + Name *string `json:"name,omitempty" azure:"ro"` + + // READ-ONLY; Metadata pertaining to creation and last modification of the resource. + SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + + // READ-ONLY; The type of the resource. + Type *string `json:"type,omitempty" azure:"ro"` +} + +// CredentialSetListResult - The result of a request to list credential sets for a container registry. +type CredentialSetListResult struct { + // The URI that can be used to request the next list of credential sets. + NextLink *string `json:"nextLink,omitempty"` + + // The list of credential sets. Since this list may be incomplete, the nextLink field should be used to request the next list + // of credential sets. + Value []*CredentialSet `json:"value,omitempty"` +} + +// CredentialSetProperties - The properties of a credential set resource. +type CredentialSetProperties struct { + // List of authentication credentials stored for an upstream. Usually consists of a primary and an optional secondary credential. + AuthCredentials []*AuthCredential `json:"authCredentials,omitempty"` + + // The credentials are stored for this upstream or login server. + LoginServer *string `json:"loginServer,omitempty"` + + // READ-ONLY; The creation date of credential store resource. + CreationDate *time.Time `json:"creationDate,omitempty" azure:"ro"` + + // READ-ONLY; Provisioning state of the resource. + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` +} + +// CredentialSetUpdateParameters - The parameters for updating a credential set +type CredentialSetUpdateParameters struct { + // Identities associated with the resource. This is used to access the KeyVault secrets. + Identity *IdentityProperties `json:"identity,omitempty"` + + // The properties of the credential set update parameters + Properties *CredentialSetUpdateProperties `json:"properties,omitempty"` +} + +// CredentialSetUpdateProperties - The parameters for updating credential set properties. +type CredentialSetUpdateProperties struct { + // List of authentication credentials stored for an upstream. Usually consists of a primary and an optional secondary credential. + AuthCredentials []*AuthCredential `json:"authCredentials,omitempty"` +} + +// CredentialSetsClientBeginCreateOptions contains the optional parameters for the CredentialSetsClient.BeginCreate method. +type CredentialSetsClientBeginCreateOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// CredentialSetsClientBeginDeleteOptions contains the optional parameters for the CredentialSetsClient.BeginDelete method. +type CredentialSetsClientBeginDeleteOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// CredentialSetsClientBeginUpdateOptions contains the optional parameters for the CredentialSetsClient.BeginUpdate method. +type CredentialSetsClientBeginUpdateOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// CredentialSetsClientGetOptions contains the optional parameters for the CredentialSetsClient.Get method. +type CredentialSetsClientGetOptions struct { + // placeholder for future optional parameters +} + +// CredentialSetsClientListOptions contains the optional parameters for the CredentialSetsClient.NewListPager method. +type CredentialSetsClientListOptions struct { + // placeholder for future optional parameters +} + // Credentials - The parameters that describes a set of credentials that will be used when a run is invoked. type Credentials struct { // Describes the credential parameters for accessing other custom registries. The key for the dictionary item will be the @@ -867,7 +1069,7 @@ type ExportPipelinesClientGetOptions struct { // placeholder for future optional parameters } -// ExportPipelinesClientListOptions contains the optional parameters for the ExportPipelinesClient.List method. +// ExportPipelinesClientListOptions contains the optional parameters for the ExportPipelinesClient.NewListPager method. type ExportPipelinesClientListOptions struct { // placeholder for future optional parameters } @@ -1163,7 +1365,7 @@ type ImportPipelinesClientGetOptions struct { // placeholder for future optional parameters } -// ImportPipelinesClientListOptions contains the optional parameters for the ImportPipelinesClient.List method. +// ImportPipelinesClientListOptions contains the optional parameters for the ImportPipelinesClient.NewListPager method. type ImportPipelinesClientListOptions struct { // placeholder for future optional parameters } @@ -1339,7 +1541,7 @@ type OperationServiceSpecificationDefinition struct { MetricSpecifications []*OperationMetricSpecificationDefinition `json:"metricSpecifications,omitempty"` } -// OperationsClientListOptions contains the optional parameters for the OperationsClient.List method. +// OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method. type OperationsClientListOptions struct { // placeholder for future optional parameters } @@ -1511,7 +1713,7 @@ type PipelineRunsClientGetOptions struct { // placeholder for future optional parameters } -// PipelineRunsClientListOptions contains the optional parameters for the PipelineRunsClient.List method. +// PipelineRunsClientListOptions contains the optional parameters for the PipelineRunsClient.NewListPager method. type PipelineRunsClientListOptions struct { // placeholder for future optional parameters } @@ -1647,7 +1849,7 @@ type PrivateEndpointConnectionsClientGetOptions struct { // placeholder for future optional parameters } -// PrivateEndpointConnectionsClientListOptions contains the optional parameters for the PrivateEndpointConnectionsClient.List +// PrivateEndpointConnectionsClientListOptions contains the optional parameters for the PrivateEndpointConnectionsClient.NewListPager // method. type PrivateEndpointConnectionsClientListOptions struct { // placeholder for future optional parameters @@ -1795,7 +1997,7 @@ type RegistriesClientGetPrivateLinkResourceOptions struct { // placeholder for future optional parameters } -// RegistriesClientListByResourceGroupOptions contains the optional parameters for the RegistriesClient.ListByResourceGroup +// RegistriesClientListByResourceGroupOptions contains the optional parameters for the RegistriesClient.NewListByResourceGroupPager // method. type RegistriesClientListByResourceGroupOptions struct { // placeholder for future optional parameters @@ -1806,12 +2008,12 @@ type RegistriesClientListCredentialsOptions struct { // placeholder for future optional parameters } -// RegistriesClientListOptions contains the optional parameters for the RegistriesClient.List method. +// RegistriesClientListOptions contains the optional parameters for the RegistriesClient.NewListPager method. type RegistriesClientListOptions struct { // placeholder for future optional parameters } -// RegistriesClientListPrivateLinkResourcesOptions contains the optional parameters for the RegistriesClient.ListPrivateLinkResources +// RegistriesClientListPrivateLinkResourcesOptions contains the optional parameters for the RegistriesClient.NewListPrivateLinkResourcesPager // method. type RegistriesClientListPrivateLinkResourcesOptions struct { // placeholder for future optional parameters @@ -1882,7 +2084,8 @@ type RegistryNameCheckRequest struct { // REQUIRED; The name of the container registry. Name *string `json:"name,omitempty"` - // REQUIRED; The resource type of the container registry. This field must be set to 'Microsoft.ContainerRegistry/registries'. + // CONSTANT; The resource type of the container registry. This field must be set to 'Microsoft.ContainerRegistry/registries'. + // Field has constant value "Microsoft.ContainerRegistry/registries", any specified value is ignored. Type *string `json:"type,omitempty"` } @@ -2108,7 +2311,7 @@ type ReplicationsClientGetOptions struct { // placeholder for future optional parameters } -// ReplicationsClientListOptions contains the optional parameters for the ReplicationsClient.List method. +// ReplicationsClientListOptions contains the optional parameters for the ReplicationsClient.NewListPager method. type ReplicationsClientListOptions struct { // placeholder for future optional parameters } @@ -2356,7 +2559,7 @@ type RunsClientGetOptions struct { // placeholder for future optional parameters } -// RunsClientListOptions contains the optional parameters for the RunsClient.List method. +// RunsClientListOptions contains the optional parameters for the RunsClient.NewListPager method. type RunsClientListOptions struct { // The runs filter to apply on the operation. Arithmetic operators are not supported. The allowed string function is 'contains'. // All logical operators except 'Not', 'Has', 'All' are allowed. @@ -2458,7 +2661,7 @@ type ScopeMapsClientGetOptions struct { // placeholder for future optional parameters } -// ScopeMapsClientListOptions contains the optional parameters for the ScopeMapsClient.List method. +// ScopeMapsClientListOptions contains the optional parameters for the ScopeMapsClient.NewListPager method. type ScopeMapsClientListOptions struct { // placeholder for future optional parameters } @@ -2989,7 +3192,7 @@ type TaskRunsClientGetOptions struct { // placeholder for future optional parameters } -// TaskRunsClientListOptions contains the optional parameters for the TaskRunsClient.List method. +// TaskRunsClientListOptions contains the optional parameters for the TaskRunsClient.NewListPager method. type TaskRunsClientListOptions struct { // placeholder for future optional parameters } @@ -3085,7 +3288,7 @@ type TasksClientGetOptions struct { // placeholder for future optional parameters } -// TasksClientListOptions contains the optional parameters for the TasksClient.List method. +// TasksClientListOptions contains the optional parameters for the TasksClient.NewListPager method. type TasksClientListOptions struct { // placeholder for future optional parameters } @@ -3242,7 +3445,7 @@ type TokensClientGetOptions struct { // placeholder for future optional parameters } -// TokensClientListOptions contains the optional parameters for the TokensClient.List method. +// TokensClientListOptions contains the optional parameters for the TokensClient.NewListPager method. type TokensClientListOptions struct { // placeholder for future optional parameters } @@ -3428,12 +3631,12 @@ type WebhooksClientGetOptions struct { // placeholder for future optional parameters } -// WebhooksClientListEventsOptions contains the optional parameters for the WebhooksClient.ListEvents method. +// WebhooksClientListEventsOptions contains the optional parameters for the WebhooksClient.NewListEventsPager method. type WebhooksClientListEventsOptions struct { // placeholder for future optional parameters } -// WebhooksClientListOptions contains the optional parameters for the WebhooksClient.List method. +// WebhooksClientListOptions contains the optional parameters for the WebhooksClient.NewListPager method. type WebhooksClientListOptions struct { // placeholder for future optional parameters } diff --git a/sdk/resourcemanager/containerregistry/armcontainerregistry/models_serde.go b/sdk/resourcemanager/containerregistry/armcontainerregistry/models_serde.go new file mode 100644 index 000000000000..cf7b63e37d5c --- /dev/null +++ b/sdk/resourcemanager/containerregistry/armcontainerregistry/models_serde.go @@ -0,0 +1,7744 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armcontainerregistry + +import ( + "encoding/json" + "fmt" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "reflect" +) + +// MarshalJSON implements the json.Marshaller interface for type ActivationProperties. +func (a ActivationProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "status", a.Status) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ActivationProperties. +func (a *ActivationProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "status": + err = unpopulate(val, "Status", &a.Status) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ActiveDirectoryObject. +func (a ActiveDirectoryObject) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "objectId", a.ObjectID) + populate(objectMap, "tenantId", a.TenantID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ActiveDirectoryObject. +func (a *ActiveDirectoryObject) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "objectId": + err = unpopulate(val, "ObjectID", &a.ObjectID) + delete(rawMsg, key) + case "tenantId": + err = unpopulate(val, "TenantID", &a.TenantID) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type Actor. +func (a Actor) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "name", a.Name) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Actor. +func (a *Actor) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "name": + err = unpopulate(val, "Name", &a.Name) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type AgentPool. +func (a AgentPool) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", a.ID) + populate(objectMap, "location", a.Location) + populate(objectMap, "name", a.Name) + populate(objectMap, "properties", a.Properties) + populate(objectMap, "systemData", a.SystemData) + populate(objectMap, "tags", a.Tags) + populate(objectMap, "type", a.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AgentPool. +func (a *AgentPool) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &a.ID) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &a.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &a.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &a.Properties) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &a.SystemData) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &a.Tags) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &a.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type AgentPoolListResult. +func (a AgentPoolListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", a.NextLink) + populate(objectMap, "value", a.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AgentPoolListResult. +func (a *AgentPoolListResult) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &a.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &a.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type AgentPoolProperties. +func (a AgentPoolProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "count", a.Count) + populate(objectMap, "os", a.OS) + populate(objectMap, "provisioningState", a.ProvisioningState) + populate(objectMap, "tier", a.Tier) + populate(objectMap, "virtualNetworkSubnetResourceId", a.VirtualNetworkSubnetResourceID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AgentPoolProperties. +func (a *AgentPoolProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "count": + err = unpopulate(val, "Count", &a.Count) + delete(rawMsg, key) + case "os": + err = unpopulate(val, "OS", &a.OS) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &a.ProvisioningState) + delete(rawMsg, key) + case "tier": + err = unpopulate(val, "Tier", &a.Tier) + delete(rawMsg, key) + case "virtualNetworkSubnetResourceId": + err = unpopulate(val, "VirtualNetworkSubnetResourceID", &a.VirtualNetworkSubnetResourceID) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type AgentPoolPropertiesUpdateParameters. +func (a AgentPoolPropertiesUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "count", a.Count) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AgentPoolPropertiesUpdateParameters. +func (a *AgentPoolPropertiesUpdateParameters) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "count": + err = unpopulate(val, "Count", &a.Count) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type AgentPoolQueueStatus. +func (a AgentPoolQueueStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "count", a.Count) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AgentPoolQueueStatus. +func (a *AgentPoolQueueStatus) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "count": + err = unpopulate(val, "Count", &a.Count) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type AgentPoolUpdateParameters. +func (a AgentPoolUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "properties", a.Properties) + populate(objectMap, "tags", a.Tags) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AgentPoolUpdateParameters. +func (a *AgentPoolUpdateParameters) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "properties": + err = unpopulate(val, "Properties", &a.Properties) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &a.Tags) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type AgentProperties. +func (a AgentProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "cpu", a.CPU) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AgentProperties. +func (a *AgentProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "cpu": + err = unpopulate(val, "CPU", &a.CPU) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type Argument. +func (a Argument) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "isSecret", a.IsSecret) + populate(objectMap, "name", a.Name) + populate(objectMap, "value", a.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Argument. +func (a *Argument) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "isSecret": + err = unpopulate(val, "IsSecret", &a.IsSecret) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &a.Name) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &a.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type AuthCredential. +func (a AuthCredential) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "credentialHealth", a.CredentialHealth) + populate(objectMap, "name", a.Name) + populate(objectMap, "passwordSecretIdentifier", a.PasswordSecretIdentifier) + populate(objectMap, "usernameSecretIdentifier", a.UsernameSecretIdentifier) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AuthCredential. +func (a *AuthCredential) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "credentialHealth": + err = unpopulate(val, "CredentialHealth", &a.CredentialHealth) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &a.Name) + delete(rawMsg, key) + case "passwordSecretIdentifier": + err = unpopulate(val, "PasswordSecretIdentifier", &a.PasswordSecretIdentifier) + delete(rawMsg, key) + case "usernameSecretIdentifier": + err = unpopulate(val, "UsernameSecretIdentifier", &a.UsernameSecretIdentifier) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type AuthInfo. +func (a AuthInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "expiresIn", a.ExpiresIn) + populate(objectMap, "refreshToken", a.RefreshToken) + populate(objectMap, "scope", a.Scope) + populate(objectMap, "token", a.Token) + populate(objectMap, "tokenType", a.TokenType) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AuthInfo. +func (a *AuthInfo) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "expiresIn": + err = unpopulate(val, "ExpiresIn", &a.ExpiresIn) + delete(rawMsg, key) + case "refreshToken": + err = unpopulate(val, "RefreshToken", &a.RefreshToken) + delete(rawMsg, key) + case "scope": + err = unpopulate(val, "Scope", &a.Scope) + delete(rawMsg, key) + case "token": + err = unpopulate(val, "Token", &a.Token) + delete(rawMsg, key) + case "tokenType": + err = unpopulate(val, "TokenType", &a.TokenType) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type AuthInfoUpdateParameters. +func (a AuthInfoUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "expiresIn", a.ExpiresIn) + populate(objectMap, "refreshToken", a.RefreshToken) + populate(objectMap, "scope", a.Scope) + populate(objectMap, "token", a.Token) + populate(objectMap, "tokenType", a.TokenType) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AuthInfoUpdateParameters. +func (a *AuthInfoUpdateParameters) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "expiresIn": + err = unpopulate(val, "ExpiresIn", &a.ExpiresIn) + delete(rawMsg, key) + case "refreshToken": + err = unpopulate(val, "RefreshToken", &a.RefreshToken) + delete(rawMsg, key) + case "scope": + err = unpopulate(val, "Scope", &a.Scope) + delete(rawMsg, key) + case "token": + err = unpopulate(val, "Token", &a.Token) + delete(rawMsg, key) + case "tokenType": + err = unpopulate(val, "TokenType", &a.TokenType) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type AzureADAuthenticationAsArmPolicy. +func (a AzureADAuthenticationAsArmPolicy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "status", a.Status) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AzureADAuthenticationAsArmPolicy. +func (a *AzureADAuthenticationAsArmPolicy) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "status": + err = unpopulate(val, "Status", &a.Status) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type BaseImageDependency. +func (b BaseImageDependency) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "digest", b.Digest) + populate(objectMap, "registry", b.Registry) + populate(objectMap, "repository", b.Repository) + populate(objectMap, "tag", b.Tag) + populate(objectMap, "type", b.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type BaseImageDependency. +func (b *BaseImageDependency) 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", b, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "digest": + err = unpopulate(val, "Digest", &b.Digest) + delete(rawMsg, key) + case "registry": + err = unpopulate(val, "Registry", &b.Registry) + delete(rawMsg, key) + case "repository": + err = unpopulate(val, "Repository", &b.Repository) + delete(rawMsg, key) + case "tag": + err = unpopulate(val, "Tag", &b.Tag) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &b.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", b, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type BaseImageTrigger. +func (b BaseImageTrigger) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "baseImageTriggerType", b.BaseImageTriggerType) + populate(objectMap, "name", b.Name) + populate(objectMap, "status", b.Status) + populate(objectMap, "updateTriggerEndpoint", b.UpdateTriggerEndpoint) + populate(objectMap, "updateTriggerPayloadType", b.UpdateTriggerPayloadType) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type BaseImageTrigger. +func (b *BaseImageTrigger) 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", b, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "baseImageTriggerType": + err = unpopulate(val, "BaseImageTriggerType", &b.BaseImageTriggerType) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &b.Name) + delete(rawMsg, key) + case "status": + err = unpopulate(val, "Status", &b.Status) + delete(rawMsg, key) + case "updateTriggerEndpoint": + err = unpopulate(val, "UpdateTriggerEndpoint", &b.UpdateTriggerEndpoint) + delete(rawMsg, key) + case "updateTriggerPayloadType": + err = unpopulate(val, "UpdateTriggerPayloadType", &b.UpdateTriggerPayloadType) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", b, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type BaseImageTriggerUpdateParameters. +func (b BaseImageTriggerUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "baseImageTriggerType", b.BaseImageTriggerType) + populate(objectMap, "name", b.Name) + populate(objectMap, "status", b.Status) + populate(objectMap, "updateTriggerEndpoint", b.UpdateTriggerEndpoint) + populate(objectMap, "updateTriggerPayloadType", b.UpdateTriggerPayloadType) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type BaseImageTriggerUpdateParameters. +func (b *BaseImageTriggerUpdateParameters) 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", b, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "baseImageTriggerType": + err = unpopulate(val, "BaseImageTriggerType", &b.BaseImageTriggerType) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &b.Name) + delete(rawMsg, key) + case "status": + err = unpopulate(val, "Status", &b.Status) + delete(rawMsg, key) + case "updateTriggerEndpoint": + err = unpopulate(val, "UpdateTriggerEndpoint", &b.UpdateTriggerEndpoint) + delete(rawMsg, key) + case "updateTriggerPayloadType": + err = unpopulate(val, "UpdateTriggerPayloadType", &b.UpdateTriggerPayloadType) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", b, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type CacheRule. +func (c CacheRule) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", c.ID) + populate(objectMap, "name", c.Name) + populate(objectMap, "properties", c.Properties) + populate(objectMap, "systemData", c.SystemData) + populate(objectMap, "type", c.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CacheRule. +func (c *CacheRule) 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 "id": + err = unpopulate(val, "ID", &c.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &c.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &c.Properties) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &c.SystemData) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &c.Type) + 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 CacheRuleProperties. +func (c CacheRuleProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateTimeRFC3339(objectMap, "creationDate", c.CreationDate) + populate(objectMap, "credentialSetResourceId", c.CredentialSetResourceID) + populate(objectMap, "provisioningState", c.ProvisioningState) + populate(objectMap, "sourceRepository", c.SourceRepository) + populate(objectMap, "targetRepository", c.TargetRepository) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CacheRuleProperties. +func (c *CacheRuleProperties) 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 "creationDate": + err = unpopulateTimeRFC3339(val, "CreationDate", &c.CreationDate) + delete(rawMsg, key) + case "credentialSetResourceId": + err = unpopulate(val, "CredentialSetResourceID", &c.CredentialSetResourceID) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &c.ProvisioningState) + delete(rawMsg, key) + case "sourceRepository": + err = unpopulate(val, "SourceRepository", &c.SourceRepository) + delete(rawMsg, key) + case "targetRepository": + err = unpopulate(val, "TargetRepository", &c.TargetRepository) + 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 CacheRuleUpdateParameters. +func (c CacheRuleUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "properties", c.Properties) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CacheRuleUpdateParameters. +func (c *CacheRuleUpdateParameters) 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 "properties": + err = unpopulate(val, "Properties", &c.Properties) + 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 CacheRuleUpdateProperties. +func (c CacheRuleUpdateProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "credentialSetResourceId", c.CredentialSetResourceID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CacheRuleUpdateProperties. +func (c *CacheRuleUpdateProperties) 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 "credentialSetResourceId": + err = unpopulate(val, "CredentialSetResourceID", &c.CredentialSetResourceID) + 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 CacheRulesListResult. +func (c CacheRulesListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", c.NextLink) + populate(objectMap, "value", c.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CacheRulesListResult. +func (c *CacheRulesListResult) 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 "nextLink": + err = unpopulate(val, "NextLink", &c.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &c.Value) + 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 CallbackConfig. +func (c CallbackConfig) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "customHeaders", c.CustomHeaders) + populate(objectMap, "serviceUri", c.ServiceURI) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CallbackConfig. +func (c *CallbackConfig) 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 "customHeaders": + err = unpopulate(val, "CustomHeaders", &c.CustomHeaders) + delete(rawMsg, key) + case "serviceUri": + err = unpopulate(val, "ServiceURI", &c.ServiceURI) + 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 ConnectedRegistry. +func (c ConnectedRegistry) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", c.ID) + populate(objectMap, "name", c.Name) + populate(objectMap, "properties", c.Properties) + populate(objectMap, "systemData", c.SystemData) + populate(objectMap, "type", c.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ConnectedRegistry. +func (c *ConnectedRegistry) 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 "id": + err = unpopulate(val, "ID", &c.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &c.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &c.Properties) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &c.SystemData) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &c.Type) + 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 ConnectedRegistryListResult. +func (c ConnectedRegistryListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", c.NextLink) + populate(objectMap, "value", c.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ConnectedRegistryListResult. +func (c *ConnectedRegistryListResult) 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 "nextLink": + err = unpopulate(val, "NextLink", &c.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &c.Value) + 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 ConnectedRegistryProperties. +func (c ConnectedRegistryProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "activation", c.Activation) + populate(objectMap, "clientTokenIds", c.ClientTokenIDs) + populate(objectMap, "connectionState", c.ConnectionState) + populateTimeRFC3339(objectMap, "lastActivityTime", c.LastActivityTime) + populate(objectMap, "logging", c.Logging) + populate(objectMap, "loginServer", c.LoginServer) + populate(objectMap, "mode", c.Mode) + populate(objectMap, "notificationsList", c.NotificationsList) + populate(objectMap, "parent", c.Parent) + populate(objectMap, "provisioningState", c.ProvisioningState) + populate(objectMap, "statusDetails", c.StatusDetails) + populate(objectMap, "version", c.Version) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ConnectedRegistryProperties. +func (c *ConnectedRegistryProperties) 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 "activation": + err = unpopulate(val, "Activation", &c.Activation) + delete(rawMsg, key) + case "clientTokenIds": + err = unpopulate(val, "ClientTokenIDs", &c.ClientTokenIDs) + delete(rawMsg, key) + case "connectionState": + err = unpopulate(val, "ConnectionState", &c.ConnectionState) + delete(rawMsg, key) + case "lastActivityTime": + err = unpopulateTimeRFC3339(val, "LastActivityTime", &c.LastActivityTime) + delete(rawMsg, key) + case "logging": + err = unpopulate(val, "Logging", &c.Logging) + delete(rawMsg, key) + case "loginServer": + err = unpopulate(val, "LoginServer", &c.LoginServer) + delete(rawMsg, key) + case "mode": + err = unpopulate(val, "Mode", &c.Mode) + delete(rawMsg, key) + case "notificationsList": + err = unpopulate(val, "NotificationsList", &c.NotificationsList) + delete(rawMsg, key) + case "parent": + err = unpopulate(val, "Parent", &c.Parent) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &c.ProvisioningState) + delete(rawMsg, key) + case "statusDetails": + err = unpopulate(val, "StatusDetails", &c.StatusDetails) + delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &c.Version) + 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 ConnectedRegistryUpdateParameters. +func (c ConnectedRegistryUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "properties", c.Properties) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ConnectedRegistryUpdateParameters. +func (c *ConnectedRegistryUpdateParameters) 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 "properties": + err = unpopulate(val, "Properties", &c.Properties) + 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 ConnectedRegistryUpdateProperties. +func (c ConnectedRegistryUpdateProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "clientTokenIds", c.ClientTokenIDs) + populate(objectMap, "logging", c.Logging) + populate(objectMap, "notificationsList", c.NotificationsList) + populate(objectMap, "syncProperties", c.SyncProperties) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ConnectedRegistryUpdateProperties. +func (c *ConnectedRegistryUpdateProperties) 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 "clientTokenIds": + err = unpopulate(val, "ClientTokenIDs", &c.ClientTokenIDs) + delete(rawMsg, key) + case "logging": + err = unpopulate(val, "Logging", &c.Logging) + delete(rawMsg, key) + case "notificationsList": + err = unpopulate(val, "NotificationsList", &c.NotificationsList) + delete(rawMsg, key) + case "syncProperties": + err = unpopulate(val, "SyncProperties", &c.SyncProperties) + 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 CredentialHealth. +func (c CredentialHealth) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "errorCode", c.ErrorCode) + populate(objectMap, "errorMessage", c.ErrorMessage) + populate(objectMap, "status", c.Status) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CredentialHealth. +func (c *CredentialHealth) 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 "errorCode": + err = unpopulate(val, "ErrorCode", &c.ErrorCode) + delete(rawMsg, key) + case "errorMessage": + err = unpopulate(val, "ErrorMessage", &c.ErrorMessage) + delete(rawMsg, key) + case "status": + err = unpopulate(val, "Status", &c.Status) + 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 CredentialSet. +func (c CredentialSet) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", c.ID) + populate(objectMap, "identity", c.Identity) + populate(objectMap, "name", c.Name) + populate(objectMap, "properties", c.Properties) + populate(objectMap, "systemData", c.SystemData) + populate(objectMap, "type", c.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CredentialSet. +func (c *CredentialSet) 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 "id": + err = unpopulate(val, "ID", &c.ID) + delete(rawMsg, key) + case "identity": + err = unpopulate(val, "Identity", &c.Identity) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &c.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &c.Properties) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &c.SystemData) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &c.Type) + 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 CredentialSetListResult. +func (c CredentialSetListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", c.NextLink) + populate(objectMap, "value", c.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CredentialSetListResult. +func (c *CredentialSetListResult) 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 "nextLink": + err = unpopulate(val, "NextLink", &c.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &c.Value) + 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 CredentialSetProperties. +func (c CredentialSetProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "authCredentials", c.AuthCredentials) + populateTimeRFC3339(objectMap, "creationDate", c.CreationDate) + populate(objectMap, "loginServer", c.LoginServer) + populate(objectMap, "provisioningState", c.ProvisioningState) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CredentialSetProperties. +func (c *CredentialSetProperties) 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 "authCredentials": + err = unpopulate(val, "AuthCredentials", &c.AuthCredentials) + delete(rawMsg, key) + case "creationDate": + err = unpopulateTimeRFC3339(val, "CreationDate", &c.CreationDate) + delete(rawMsg, key) + case "loginServer": + err = unpopulate(val, "LoginServer", &c.LoginServer) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &c.ProvisioningState) + 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 CredentialSetUpdateParameters. +func (c CredentialSetUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "identity", c.Identity) + populate(objectMap, "properties", c.Properties) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CredentialSetUpdateParameters. +func (c *CredentialSetUpdateParameters) 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 "identity": + err = unpopulate(val, "Identity", &c.Identity) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &c.Properties) + 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 CredentialSetUpdateProperties. +func (c CredentialSetUpdateProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "authCredentials", c.AuthCredentials) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CredentialSetUpdateProperties. +func (c *CredentialSetUpdateProperties) 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 "authCredentials": + err = unpopulate(val, "AuthCredentials", &c.AuthCredentials) + 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 Credentials. +func (c Credentials) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "customRegistries", c.CustomRegistries) + populate(objectMap, "sourceRegistry", c.SourceRegistry) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Credentials. +func (c *Credentials) 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 "customRegistries": + err = unpopulate(val, "CustomRegistries", &c.CustomRegistries) + delete(rawMsg, key) + case "sourceRegistry": + err = unpopulate(val, "SourceRegistry", &c.SourceRegistry) + 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 CustomRegistryCredentials. +func (c CustomRegistryCredentials) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "identity", c.Identity) + populate(objectMap, "password", c.Password) + populate(objectMap, "userName", c.UserName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CustomRegistryCredentials. +func (c *CustomRegistryCredentials) 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 "identity": + err = unpopulate(val, "Identity", &c.Identity) + delete(rawMsg, key) + case "password": + err = unpopulate(val, "Password", &c.Password) + delete(rawMsg, key) + case "userName": + err = unpopulate(val, "UserName", &c.UserName) + 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 DockerBuildRequest. +func (d DockerBuildRequest) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "agentConfiguration", d.AgentConfiguration) + populate(objectMap, "agentPoolName", d.AgentPoolName) + populate(objectMap, "arguments", d.Arguments) + populate(objectMap, "credentials", d.Credentials) + populate(objectMap, "dockerFilePath", d.DockerFilePath) + populate(objectMap, "imageNames", d.ImageNames) + populate(objectMap, "isArchiveEnabled", d.IsArchiveEnabled) + populate(objectMap, "isPushEnabled", d.IsPushEnabled) + populate(objectMap, "logTemplate", d.LogTemplate) + populate(objectMap, "noCache", d.NoCache) + populate(objectMap, "platform", d.Platform) + populate(objectMap, "sourceLocation", d.SourceLocation) + populate(objectMap, "target", d.Target) + populate(objectMap, "timeout", d.Timeout) + objectMap["type"] = "DockerBuildRequest" + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DockerBuildRequest. +func (d *DockerBuildRequest) 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", d, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "agentConfiguration": + err = unpopulate(val, "AgentConfiguration", &d.AgentConfiguration) + delete(rawMsg, key) + case "agentPoolName": + err = unpopulate(val, "AgentPoolName", &d.AgentPoolName) + delete(rawMsg, key) + case "arguments": + err = unpopulate(val, "Arguments", &d.Arguments) + delete(rawMsg, key) + case "credentials": + err = unpopulate(val, "Credentials", &d.Credentials) + delete(rawMsg, key) + case "dockerFilePath": + err = unpopulate(val, "DockerFilePath", &d.DockerFilePath) + delete(rawMsg, key) + case "imageNames": + err = unpopulate(val, "ImageNames", &d.ImageNames) + delete(rawMsg, key) + case "isArchiveEnabled": + err = unpopulate(val, "IsArchiveEnabled", &d.IsArchiveEnabled) + delete(rawMsg, key) + case "isPushEnabled": + err = unpopulate(val, "IsPushEnabled", &d.IsPushEnabled) + delete(rawMsg, key) + case "logTemplate": + err = unpopulate(val, "LogTemplate", &d.LogTemplate) + delete(rawMsg, key) + case "noCache": + err = unpopulate(val, "NoCache", &d.NoCache) + delete(rawMsg, key) + case "platform": + err = unpopulate(val, "Platform", &d.Platform) + delete(rawMsg, key) + case "sourceLocation": + err = unpopulate(val, "SourceLocation", &d.SourceLocation) + delete(rawMsg, key) + case "target": + err = unpopulate(val, "Target", &d.Target) + delete(rawMsg, key) + case "timeout": + err = unpopulate(val, "Timeout", &d.Timeout) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &d.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type DockerBuildStep. +func (d DockerBuildStep) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "arguments", d.Arguments) + populate(objectMap, "baseImageDependencies", d.BaseImageDependencies) + populate(objectMap, "contextAccessToken", d.ContextAccessToken) + populate(objectMap, "contextPath", d.ContextPath) + populate(objectMap, "dockerFilePath", d.DockerFilePath) + populate(objectMap, "imageNames", d.ImageNames) + populate(objectMap, "isPushEnabled", d.IsPushEnabled) + populate(objectMap, "noCache", d.NoCache) + populate(objectMap, "target", d.Target) + objectMap["type"] = StepTypeDocker + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DockerBuildStep. +func (d *DockerBuildStep) 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", d, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "arguments": + err = unpopulate(val, "Arguments", &d.Arguments) + delete(rawMsg, key) + case "baseImageDependencies": + err = unpopulate(val, "BaseImageDependencies", &d.BaseImageDependencies) + delete(rawMsg, key) + case "contextAccessToken": + err = unpopulate(val, "ContextAccessToken", &d.ContextAccessToken) + delete(rawMsg, key) + case "contextPath": + err = unpopulate(val, "ContextPath", &d.ContextPath) + delete(rawMsg, key) + case "dockerFilePath": + err = unpopulate(val, "DockerFilePath", &d.DockerFilePath) + delete(rawMsg, key) + case "imageNames": + err = unpopulate(val, "ImageNames", &d.ImageNames) + delete(rawMsg, key) + case "isPushEnabled": + err = unpopulate(val, "IsPushEnabled", &d.IsPushEnabled) + delete(rawMsg, key) + case "noCache": + err = unpopulate(val, "NoCache", &d.NoCache) + delete(rawMsg, key) + case "target": + err = unpopulate(val, "Target", &d.Target) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &d.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type DockerBuildStepUpdateParameters. +func (d DockerBuildStepUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "arguments", d.Arguments) + populate(objectMap, "contextAccessToken", d.ContextAccessToken) + populate(objectMap, "contextPath", d.ContextPath) + populate(objectMap, "dockerFilePath", d.DockerFilePath) + populate(objectMap, "imageNames", d.ImageNames) + populate(objectMap, "isPushEnabled", d.IsPushEnabled) + populate(objectMap, "noCache", d.NoCache) + populate(objectMap, "target", d.Target) + objectMap["type"] = StepTypeDocker + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type DockerBuildStepUpdateParameters. +func (d *DockerBuildStepUpdateParameters) 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", d, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "arguments": + err = unpopulate(val, "Arguments", &d.Arguments) + delete(rawMsg, key) + case "contextAccessToken": + err = unpopulate(val, "ContextAccessToken", &d.ContextAccessToken) + delete(rawMsg, key) + case "contextPath": + err = unpopulate(val, "ContextPath", &d.ContextPath) + delete(rawMsg, key) + case "dockerFilePath": + err = unpopulate(val, "DockerFilePath", &d.DockerFilePath) + delete(rawMsg, key) + case "imageNames": + err = unpopulate(val, "ImageNames", &d.ImageNames) + delete(rawMsg, key) + case "isPushEnabled": + err = unpopulate(val, "IsPushEnabled", &d.IsPushEnabled) + delete(rawMsg, key) + case "noCache": + err = unpopulate(val, "NoCache", &d.NoCache) + delete(rawMsg, key) + case "target": + err = unpopulate(val, "Target", &d.Target) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &d.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", d, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type EncodedTaskRunRequest. +func (e EncodedTaskRunRequest) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "agentConfiguration", e.AgentConfiguration) + populate(objectMap, "agentPoolName", e.AgentPoolName) + populate(objectMap, "credentials", e.Credentials) + populate(objectMap, "encodedTaskContent", e.EncodedTaskContent) + populate(objectMap, "encodedValuesContent", e.EncodedValuesContent) + populate(objectMap, "isArchiveEnabled", e.IsArchiveEnabled) + populate(objectMap, "logTemplate", e.LogTemplate) + populate(objectMap, "platform", e.Platform) + populate(objectMap, "sourceLocation", e.SourceLocation) + populate(objectMap, "timeout", e.Timeout) + objectMap["type"] = "EncodedTaskRunRequest" + populate(objectMap, "values", e.Values) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type EncodedTaskRunRequest. +func (e *EncodedTaskRunRequest) 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 "agentConfiguration": + err = unpopulate(val, "AgentConfiguration", &e.AgentConfiguration) + delete(rawMsg, key) + case "agentPoolName": + err = unpopulate(val, "AgentPoolName", &e.AgentPoolName) + delete(rawMsg, key) + case "credentials": + err = unpopulate(val, "Credentials", &e.Credentials) + delete(rawMsg, key) + case "encodedTaskContent": + err = unpopulate(val, "EncodedTaskContent", &e.EncodedTaskContent) + delete(rawMsg, key) + case "encodedValuesContent": + err = unpopulate(val, "EncodedValuesContent", &e.EncodedValuesContent) + delete(rawMsg, key) + case "isArchiveEnabled": + err = unpopulate(val, "IsArchiveEnabled", &e.IsArchiveEnabled) + delete(rawMsg, key) + case "logTemplate": + err = unpopulate(val, "LogTemplate", &e.LogTemplate) + delete(rawMsg, key) + case "platform": + err = unpopulate(val, "Platform", &e.Platform) + delete(rawMsg, key) + case "sourceLocation": + err = unpopulate(val, "SourceLocation", &e.SourceLocation) + delete(rawMsg, key) + case "timeout": + err = unpopulate(val, "Timeout", &e.Timeout) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &e.Type) + delete(rawMsg, key) + case "values": + err = unpopulate(val, "Values", &e.Values) + 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 EncodedTaskStep. +func (e EncodedTaskStep) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "baseImageDependencies", e.BaseImageDependencies) + populate(objectMap, "contextAccessToken", e.ContextAccessToken) + populate(objectMap, "contextPath", e.ContextPath) + populate(objectMap, "encodedTaskContent", e.EncodedTaskContent) + populate(objectMap, "encodedValuesContent", e.EncodedValuesContent) + objectMap["type"] = StepTypeEncodedTask + populate(objectMap, "values", e.Values) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type EncodedTaskStep. +func (e *EncodedTaskStep) 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 "baseImageDependencies": + err = unpopulate(val, "BaseImageDependencies", &e.BaseImageDependencies) + delete(rawMsg, key) + case "contextAccessToken": + err = unpopulate(val, "ContextAccessToken", &e.ContextAccessToken) + delete(rawMsg, key) + case "contextPath": + err = unpopulate(val, "ContextPath", &e.ContextPath) + delete(rawMsg, key) + case "encodedTaskContent": + err = unpopulate(val, "EncodedTaskContent", &e.EncodedTaskContent) + delete(rawMsg, key) + case "encodedValuesContent": + err = unpopulate(val, "EncodedValuesContent", &e.EncodedValuesContent) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &e.Type) + delete(rawMsg, key) + case "values": + err = unpopulate(val, "Values", &e.Values) + 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 EncodedTaskStepUpdateParameters. +func (e EncodedTaskStepUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "contextAccessToken", e.ContextAccessToken) + populate(objectMap, "contextPath", e.ContextPath) + populate(objectMap, "encodedTaskContent", e.EncodedTaskContent) + populate(objectMap, "encodedValuesContent", e.EncodedValuesContent) + objectMap["type"] = StepTypeEncodedTask + populate(objectMap, "values", e.Values) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type EncodedTaskStepUpdateParameters. +func (e *EncodedTaskStepUpdateParameters) 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 "contextAccessToken": + err = unpopulate(val, "ContextAccessToken", &e.ContextAccessToken) + delete(rawMsg, key) + case "contextPath": + err = unpopulate(val, "ContextPath", &e.ContextPath) + delete(rawMsg, key) + case "encodedTaskContent": + err = unpopulate(val, "EncodedTaskContent", &e.EncodedTaskContent) + delete(rawMsg, key) + case "encodedValuesContent": + err = unpopulate(val, "EncodedValuesContent", &e.EncodedValuesContent) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &e.Type) + delete(rawMsg, key) + case "values": + err = unpopulate(val, "Values", &e.Values) + 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 EncryptionProperty. +func (e EncryptionProperty) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "keyVaultProperties", e.KeyVaultProperties) + populate(objectMap, "status", e.Status) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type EncryptionProperty. +func (e *EncryptionProperty) 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 "keyVaultProperties": + err = unpopulate(val, "KeyVaultProperties", &e.KeyVaultProperties) + delete(rawMsg, key) + case "status": + err = unpopulate(val, "Status", &e.Status) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", e, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ErrorResponse. +func (e ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "error", e.Error) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ErrorResponse. +func (e *ErrorResponse) 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 "error": + err = unpopulate(val, "Error", &e.Error) + 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 ErrorResponseBody. +func (e ErrorResponseBody) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "code", e.Code) + populate(objectMap, "details", e.Details) + populate(objectMap, "message", e.Message) + populate(objectMap, "target", e.Target) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ErrorResponseBody. +func (e *ErrorResponseBody) 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 "message": + err = unpopulate(val, "Message", &e.Message) + delete(rawMsg, key) + case "target": + err = unpopulate(val, "Target", &e.Target) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", e, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type Event. +func (e Event) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "eventRequestMessage", e.EventRequestMessage) + populate(objectMap, "eventResponseMessage", e.EventResponseMessage) + populate(objectMap, "id", e.ID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Event. +func (e *Event) 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 "eventRequestMessage": + err = unpopulate(val, "EventRequestMessage", &e.EventRequestMessage) + delete(rawMsg, key) + case "eventResponseMessage": + err = unpopulate(val, "EventResponseMessage", &e.EventResponseMessage) + delete(rawMsg, key) + case "id": + err = unpopulate(val, "ID", &e.ID) + 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 EventContent. +func (e EventContent) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "action", e.Action) + populate(objectMap, "actor", e.Actor) + populate(objectMap, "id", e.ID) + populate(objectMap, "request", e.Request) + populate(objectMap, "source", e.Source) + populate(objectMap, "target", e.Target) + populateTimeRFC3339(objectMap, "timestamp", e.Timestamp) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type EventContent. +func (e *EventContent) 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 "action": + err = unpopulate(val, "Action", &e.Action) + delete(rawMsg, key) + case "actor": + err = unpopulate(val, "Actor", &e.Actor) + delete(rawMsg, key) + case "id": + err = unpopulate(val, "ID", &e.ID) + delete(rawMsg, key) + case "request": + err = unpopulate(val, "Request", &e.Request) + delete(rawMsg, key) + case "source": + err = unpopulate(val, "Source", &e.Source) + delete(rawMsg, key) + case "target": + err = unpopulate(val, "Target", &e.Target) + delete(rawMsg, key) + case "timestamp": + err = unpopulateTimeRFC3339(val, "Timestamp", &e.Timestamp) + 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 EventInfo. +func (e EventInfo) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", e.ID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type EventInfo. +func (e *EventInfo) 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 "id": + err = unpopulate(val, "ID", &e.ID) + 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 EventListResult. +func (e EventListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", e.NextLink) + populate(objectMap, "value", e.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type EventListResult. +func (e *EventListResult) 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 "nextLink": + err = unpopulate(val, "NextLink", &e.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &e.Value) + 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 EventRequestMessage. +func (e EventRequestMessage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "content", e.Content) + populate(objectMap, "headers", e.Headers) + populate(objectMap, "method", e.Method) + populate(objectMap, "requestUri", e.RequestURI) + populate(objectMap, "version", e.Version) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type EventRequestMessage. +func (e *EventRequestMessage) 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 "content": + err = unpopulate(val, "Content", &e.Content) + delete(rawMsg, key) + case "headers": + err = unpopulate(val, "Headers", &e.Headers) + delete(rawMsg, key) + case "method": + err = unpopulate(val, "Method", &e.Method) + delete(rawMsg, key) + case "requestUri": + err = unpopulate(val, "RequestURI", &e.RequestURI) + delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &e.Version) + 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 EventResponseMessage. +func (e EventResponseMessage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "content", e.Content) + populate(objectMap, "headers", e.Headers) + populate(objectMap, "reasonPhrase", e.ReasonPhrase) + populate(objectMap, "statusCode", e.StatusCode) + populate(objectMap, "version", e.Version) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type EventResponseMessage. +func (e *EventResponseMessage) 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 "content": + err = unpopulate(val, "Content", &e.Content) + delete(rawMsg, key) + case "headers": + err = unpopulate(val, "Headers", &e.Headers) + delete(rawMsg, key) + case "reasonPhrase": + err = unpopulate(val, "ReasonPhrase", &e.ReasonPhrase) + delete(rawMsg, key) + case "statusCode": + err = unpopulate(val, "StatusCode", &e.StatusCode) + delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &e.Version) + 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 ExportPipeline. +func (e ExportPipeline) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", e.ID) + populate(objectMap, "identity", e.Identity) + populate(objectMap, "location", e.Location) + populate(objectMap, "name", e.Name) + populate(objectMap, "properties", e.Properties) + populate(objectMap, "systemData", e.SystemData) + populate(objectMap, "type", e.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ExportPipeline. +func (e *ExportPipeline) 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 "id": + err = unpopulate(val, "ID", &e.ID) + delete(rawMsg, key) + case "identity": + err = unpopulate(val, "Identity", &e.Identity) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &e.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &e.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &e.Properties) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &e.SystemData) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &e.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", e, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ExportPipelineListResult. +func (e ExportPipelineListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", e.NextLink) + populate(objectMap, "value", e.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ExportPipelineListResult. +func (e *ExportPipelineListResult) 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 "nextLink": + err = unpopulate(val, "NextLink", &e.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &e.Value) + 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 ExportPipelineProperties. +func (e ExportPipelineProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "options", e.Options) + populate(objectMap, "provisioningState", e.ProvisioningState) + populate(objectMap, "target", e.Target) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ExportPipelineProperties. +func (e *ExportPipelineProperties) 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 "options": + err = unpopulate(val, "Options", &e.Options) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &e.ProvisioningState) + delete(rawMsg, key) + case "target": + err = unpopulate(val, "Target", &e.Target) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", e, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ExportPipelineTargetProperties. +func (e ExportPipelineTargetProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "keyVaultUri", e.KeyVaultURI) + populate(objectMap, "type", e.Type) + populate(objectMap, "uri", e.URI) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ExportPipelineTargetProperties. +func (e *ExportPipelineTargetProperties) 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 "keyVaultUri": + err = unpopulate(val, "KeyVaultURI", &e.KeyVaultURI) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &e.Type) + delete(rawMsg, key) + case "uri": + err = unpopulate(val, "URI", &e.URI) + 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 ExportPolicy. +func (e ExportPolicy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "status", e.Status) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ExportPolicy. +func (e *ExportPolicy) 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 "status": + err = unpopulate(val, "Status", &e.Status) + 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 FileTaskRunRequest. +func (f FileTaskRunRequest) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "agentConfiguration", f.AgentConfiguration) + populate(objectMap, "agentPoolName", f.AgentPoolName) + populate(objectMap, "credentials", f.Credentials) + populate(objectMap, "isArchiveEnabled", f.IsArchiveEnabled) + populate(objectMap, "logTemplate", f.LogTemplate) + populate(objectMap, "platform", f.Platform) + populate(objectMap, "sourceLocation", f.SourceLocation) + populate(objectMap, "taskFilePath", f.TaskFilePath) + populate(objectMap, "timeout", f.Timeout) + objectMap["type"] = "FileTaskRunRequest" + populate(objectMap, "values", f.Values) + populate(objectMap, "valuesFilePath", f.ValuesFilePath) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type FileTaskRunRequest. +func (f *FileTaskRunRequest) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", f, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "agentConfiguration": + err = unpopulate(val, "AgentConfiguration", &f.AgentConfiguration) + delete(rawMsg, key) + case "agentPoolName": + err = unpopulate(val, "AgentPoolName", &f.AgentPoolName) + delete(rawMsg, key) + case "credentials": + err = unpopulate(val, "Credentials", &f.Credentials) + delete(rawMsg, key) + case "isArchiveEnabled": + err = unpopulate(val, "IsArchiveEnabled", &f.IsArchiveEnabled) + delete(rawMsg, key) + case "logTemplate": + err = unpopulate(val, "LogTemplate", &f.LogTemplate) + delete(rawMsg, key) + case "platform": + err = unpopulate(val, "Platform", &f.Platform) + delete(rawMsg, key) + case "sourceLocation": + err = unpopulate(val, "SourceLocation", &f.SourceLocation) + delete(rawMsg, key) + case "taskFilePath": + err = unpopulate(val, "TaskFilePath", &f.TaskFilePath) + delete(rawMsg, key) + case "timeout": + err = unpopulate(val, "Timeout", &f.Timeout) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &f.Type) + delete(rawMsg, key) + case "values": + err = unpopulate(val, "Values", &f.Values) + delete(rawMsg, key) + case "valuesFilePath": + err = unpopulate(val, "ValuesFilePath", &f.ValuesFilePath) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", f, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type FileTaskStep. +func (f FileTaskStep) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "baseImageDependencies", f.BaseImageDependencies) + populate(objectMap, "contextAccessToken", f.ContextAccessToken) + populate(objectMap, "contextPath", f.ContextPath) + populate(objectMap, "taskFilePath", f.TaskFilePath) + objectMap["type"] = StepTypeFileTask + populate(objectMap, "values", f.Values) + populate(objectMap, "valuesFilePath", f.ValuesFilePath) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type FileTaskStep. +func (f *FileTaskStep) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", f, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "baseImageDependencies": + err = unpopulate(val, "BaseImageDependencies", &f.BaseImageDependencies) + delete(rawMsg, key) + case "contextAccessToken": + err = unpopulate(val, "ContextAccessToken", &f.ContextAccessToken) + delete(rawMsg, key) + case "contextPath": + err = unpopulate(val, "ContextPath", &f.ContextPath) + delete(rawMsg, key) + case "taskFilePath": + err = unpopulate(val, "TaskFilePath", &f.TaskFilePath) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &f.Type) + delete(rawMsg, key) + case "values": + err = unpopulate(val, "Values", &f.Values) + delete(rawMsg, key) + case "valuesFilePath": + err = unpopulate(val, "ValuesFilePath", &f.ValuesFilePath) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", f, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type FileTaskStepUpdateParameters. +func (f FileTaskStepUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "contextAccessToken", f.ContextAccessToken) + populate(objectMap, "contextPath", f.ContextPath) + populate(objectMap, "taskFilePath", f.TaskFilePath) + objectMap["type"] = StepTypeFileTask + populate(objectMap, "values", f.Values) + populate(objectMap, "valuesFilePath", f.ValuesFilePath) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type FileTaskStepUpdateParameters. +func (f *FileTaskStepUpdateParameters) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", f, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "contextAccessToken": + err = unpopulate(val, "ContextAccessToken", &f.ContextAccessToken) + delete(rawMsg, key) + case "contextPath": + err = unpopulate(val, "ContextPath", &f.ContextPath) + delete(rawMsg, key) + case "taskFilePath": + err = unpopulate(val, "TaskFilePath", &f.TaskFilePath) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &f.Type) + delete(rawMsg, key) + case "values": + err = unpopulate(val, "Values", &f.Values) + delete(rawMsg, key) + case "valuesFilePath": + err = unpopulate(val, "ValuesFilePath", &f.ValuesFilePath) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", f, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type GenerateCredentialsParameters. +func (g GenerateCredentialsParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateTimeRFC3339(objectMap, "expiry", g.Expiry) + populate(objectMap, "name", g.Name) + populate(objectMap, "tokenId", g.TokenID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type GenerateCredentialsParameters. +func (g *GenerateCredentialsParameters) 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", g, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "expiry": + err = unpopulateTimeRFC3339(val, "Expiry", &g.Expiry) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &g.Name) + delete(rawMsg, key) + case "tokenId": + err = unpopulate(val, "TokenID", &g.TokenID) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", g, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type GenerateCredentialsResult. +func (g GenerateCredentialsResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "passwords", g.Passwords) + populate(objectMap, "username", g.Username) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type GenerateCredentialsResult. +func (g *GenerateCredentialsResult) 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", g, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "passwords": + err = unpopulate(val, "Passwords", &g.Passwords) + delete(rawMsg, key) + case "username": + err = unpopulate(val, "Username", &g.Username) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", g, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type IPRule. +func (i IPRule) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "action", i.Action) + populate(objectMap, "value", i.IPAddressOrRange) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type IPRule. +func (i *IPRule) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "action": + err = unpopulate(val, "Action", &i.Action) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "IPAddressOrRange", &i.IPAddressOrRange) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type IdentityProperties. +func (i IdentityProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "principalId", i.PrincipalID) + populate(objectMap, "tenantId", i.TenantID) + populate(objectMap, "type", i.Type) + populate(objectMap, "userAssignedIdentities", i.UserAssignedIdentities) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type IdentityProperties. +func (i *IdentityProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "principalId": + err = unpopulate(val, "PrincipalID", &i.PrincipalID) + delete(rawMsg, key) + case "tenantId": + err = unpopulate(val, "TenantID", &i.TenantID) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &i.Type) + delete(rawMsg, key) + case "userAssignedIdentities": + err = unpopulate(val, "UserAssignedIdentities", &i.UserAssignedIdentities) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ImageDescriptor. +func (i ImageDescriptor) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "digest", i.Digest) + populate(objectMap, "registry", i.Registry) + populate(objectMap, "repository", i.Repository) + populate(objectMap, "tag", i.Tag) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ImageDescriptor. +func (i *ImageDescriptor) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "digest": + err = unpopulate(val, "Digest", &i.Digest) + delete(rawMsg, key) + case "registry": + err = unpopulate(val, "Registry", &i.Registry) + delete(rawMsg, key) + case "repository": + err = unpopulate(val, "Repository", &i.Repository) + delete(rawMsg, key) + case "tag": + err = unpopulate(val, "Tag", &i.Tag) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ImageUpdateTrigger. +func (i ImageUpdateTrigger) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", i.ID) + populate(objectMap, "images", i.Images) + populateTimeRFC3339(objectMap, "timestamp", i.Timestamp) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ImageUpdateTrigger. +func (i *ImageUpdateTrigger) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &i.ID) + delete(rawMsg, key) + case "images": + err = unpopulate(val, "Images", &i.Images) + delete(rawMsg, key) + case "timestamp": + err = unpopulateTimeRFC3339(val, "Timestamp", &i.Timestamp) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ImportImageParameters. +func (i ImportImageParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "mode", i.Mode) + populate(objectMap, "source", i.Source) + populate(objectMap, "targetTags", i.TargetTags) + populate(objectMap, "untaggedTargetRepositories", i.UntaggedTargetRepositories) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ImportImageParameters. +func (i *ImportImageParameters) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "mode": + err = unpopulate(val, "Mode", &i.Mode) + delete(rawMsg, key) + case "source": + err = unpopulate(val, "Source", &i.Source) + delete(rawMsg, key) + case "targetTags": + err = unpopulate(val, "TargetTags", &i.TargetTags) + delete(rawMsg, key) + case "untaggedTargetRepositories": + err = unpopulate(val, "UntaggedTargetRepositories", &i.UntaggedTargetRepositories) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ImportPipeline. +func (i ImportPipeline) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", i.ID) + populate(objectMap, "identity", i.Identity) + populate(objectMap, "location", i.Location) + populate(objectMap, "name", i.Name) + populate(objectMap, "properties", i.Properties) + populate(objectMap, "systemData", i.SystemData) + populate(objectMap, "type", i.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ImportPipeline. +func (i *ImportPipeline) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &i.ID) + delete(rawMsg, key) + case "identity": + err = unpopulate(val, "Identity", &i.Identity) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &i.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &i.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &i.Properties) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &i.SystemData) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &i.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ImportPipelineListResult. +func (i ImportPipelineListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", i.NextLink) + populate(objectMap, "value", i.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ImportPipelineListResult. +func (i *ImportPipelineListResult) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &i.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &i.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ImportPipelineProperties. +func (i ImportPipelineProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "options", i.Options) + populate(objectMap, "provisioningState", i.ProvisioningState) + populate(objectMap, "source", i.Source) + populate(objectMap, "trigger", i.Trigger) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ImportPipelineProperties. +func (i *ImportPipelineProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "options": + err = unpopulate(val, "Options", &i.Options) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &i.ProvisioningState) + delete(rawMsg, key) + case "source": + err = unpopulate(val, "Source", &i.Source) + delete(rawMsg, key) + case "trigger": + err = unpopulate(val, "Trigger", &i.Trigger) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ImportPipelineSourceProperties. +func (i ImportPipelineSourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "keyVaultUri", i.KeyVaultURI) + populate(objectMap, "type", i.Type) + populate(objectMap, "uri", i.URI) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ImportPipelineSourceProperties. +func (i *ImportPipelineSourceProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "keyVaultUri": + err = unpopulate(val, "KeyVaultURI", &i.KeyVaultURI) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &i.Type) + delete(rawMsg, key) + case "uri": + err = unpopulate(val, "URI", &i.URI) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ImportSource. +func (i ImportSource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "credentials", i.Credentials) + populate(objectMap, "registryUri", i.RegistryURI) + populate(objectMap, "resourceId", i.ResourceID) + populate(objectMap, "sourceImage", i.SourceImage) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ImportSource. +func (i *ImportSource) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "credentials": + err = unpopulate(val, "Credentials", &i.Credentials) + delete(rawMsg, key) + case "registryUri": + err = unpopulate(val, "RegistryURI", &i.RegistryURI) + delete(rawMsg, key) + case "resourceId": + err = unpopulate(val, "ResourceID", &i.ResourceID) + delete(rawMsg, key) + case "sourceImage": + err = unpopulate(val, "SourceImage", &i.SourceImage) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ImportSourceCredentials. +func (i ImportSourceCredentials) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "password", i.Password) + populate(objectMap, "username", i.Username) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ImportSourceCredentials. +func (i *ImportSourceCredentials) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "password": + err = unpopulate(val, "Password", &i.Password) + delete(rawMsg, key) + case "username": + err = unpopulate(val, "Username", &i.Username) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type InnerErrorDescription. +func (i InnerErrorDescription) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "code", i.Code) + populate(objectMap, "message", i.Message) + populate(objectMap, "target", i.Target) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type InnerErrorDescription. +func (i *InnerErrorDescription) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "code": + err = unpopulate(val, "Code", &i.Code) + delete(rawMsg, key) + case "message": + err = unpopulate(val, "Message", &i.Message) + delete(rawMsg, key) + case "target": + err = unpopulate(val, "Target", &i.Target) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", i, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type KeyVaultProperties. +func (k KeyVaultProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "identity", k.Identity) + populate(objectMap, "keyIdentifier", k.KeyIdentifier) + populate(objectMap, "keyRotationEnabled", k.KeyRotationEnabled) + populateTimeRFC3339(objectMap, "lastKeyRotationTimestamp", k.LastKeyRotationTimestamp) + populate(objectMap, "versionedKeyIdentifier", k.VersionedKeyIdentifier) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type KeyVaultProperties. +func (k *KeyVaultProperties) 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", k, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "identity": + err = unpopulate(val, "Identity", &k.Identity) + delete(rawMsg, key) + case "keyIdentifier": + err = unpopulate(val, "KeyIdentifier", &k.KeyIdentifier) + delete(rawMsg, key) + case "keyRotationEnabled": + err = unpopulate(val, "KeyRotationEnabled", &k.KeyRotationEnabled) + delete(rawMsg, key) + case "lastKeyRotationTimestamp": + err = unpopulateTimeRFC3339(val, "LastKeyRotationTimestamp", &k.LastKeyRotationTimestamp) + delete(rawMsg, key) + case "versionedKeyIdentifier": + err = unpopulate(val, "VersionedKeyIdentifier", &k.VersionedKeyIdentifier) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", k, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type LoggingProperties. +func (l LoggingProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "auditLogStatus", l.AuditLogStatus) + populate(objectMap, "logLevel", l.LogLevel) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type LoggingProperties. +func (l *LoggingProperties) 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", l, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "auditLogStatus": + err = unpopulate(val, "AuditLogStatus", &l.AuditLogStatus) + delete(rawMsg, key) + case "logLevel": + err = unpopulate(val, "LogLevel", &l.LogLevel) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", l, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type LoginServerProperties. +func (l LoginServerProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "host", l.Host) + populate(objectMap, "tls", l.TLS) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type LoginServerProperties. +func (l *LoginServerProperties) 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", l, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "host": + err = unpopulate(val, "Host", &l.Host) + delete(rawMsg, key) + case "tls": + err = unpopulate(val, "TLS", &l.TLS) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", l, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type NetworkRuleSet. +func (n NetworkRuleSet) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "defaultAction", n.DefaultAction) + populate(objectMap, "ipRules", n.IPRules) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type NetworkRuleSet. +func (n *NetworkRuleSet) 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", n, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "defaultAction": + err = unpopulate(val, "DefaultAction", &n.DefaultAction) + delete(rawMsg, key) + case "ipRules": + err = unpopulate(val, "IPRules", &n.IPRules) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", n, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type OperationDefinition. +func (o OperationDefinition) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "display", o.Display) + populate(objectMap, "isDataAction", o.IsDataAction) + populate(objectMap, "name", o.Name) + populate(objectMap, "origin", o.Origin) + populate(objectMap, "properties", o.Properties) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type OperationDefinition. +func (o *OperationDefinition) 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", o, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "display": + err = unpopulate(val, "Display", &o.Display) + delete(rawMsg, key) + case "isDataAction": + err = unpopulate(val, "IsDataAction", &o.IsDataAction) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &o.Name) + delete(rawMsg, key) + case "origin": + err = unpopulate(val, "Origin", &o.Origin) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &o.Properties) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", o, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type OperationDisplayDefinition. +func (o OperationDisplayDefinition) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "description", o.Description) + populate(objectMap, "operation", o.Operation) + populate(objectMap, "provider", o.Provider) + populate(objectMap, "resource", o.Resource) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type OperationDisplayDefinition. +func (o *OperationDisplayDefinition) 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", o, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "description": + err = unpopulate(val, "Description", &o.Description) + delete(rawMsg, key) + case "operation": + err = unpopulate(val, "Operation", &o.Operation) + delete(rawMsg, key) + case "provider": + err = unpopulate(val, "Provider", &o.Provider) + delete(rawMsg, key) + case "resource": + err = unpopulate(val, "Resource", &o.Resource) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", o, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type OperationListResult. +func (o OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", o.NextLink) + populate(objectMap, "value", o.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type OperationListResult. +func (o *OperationListResult) 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", o, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &o.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &o.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", o, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type OperationLogSpecificationDefinition. +func (o OperationLogSpecificationDefinition) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "blobDuration", o.BlobDuration) + populate(objectMap, "displayName", o.DisplayName) + populate(objectMap, "name", o.Name) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type OperationLogSpecificationDefinition. +func (o *OperationLogSpecificationDefinition) 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", o, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "blobDuration": + err = unpopulate(val, "BlobDuration", &o.BlobDuration) + delete(rawMsg, key) + case "displayName": + err = unpopulate(val, "DisplayName", &o.DisplayName) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &o.Name) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", o, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type OperationMetricSpecificationDefinition. +func (o OperationMetricSpecificationDefinition) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "aggregationType", o.AggregationType) + populate(objectMap, "displayDescription", o.DisplayDescription) + populate(objectMap, "displayName", o.DisplayName) + populate(objectMap, "internalMetricName", o.InternalMetricName) + populate(objectMap, "name", o.Name) + populate(objectMap, "unit", o.Unit) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type OperationMetricSpecificationDefinition. +func (o *OperationMetricSpecificationDefinition) 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", o, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "aggregationType": + err = unpopulate(val, "AggregationType", &o.AggregationType) + delete(rawMsg, key) + case "displayDescription": + err = unpopulate(val, "DisplayDescription", &o.DisplayDescription) + delete(rawMsg, key) + case "displayName": + err = unpopulate(val, "DisplayName", &o.DisplayName) + delete(rawMsg, key) + case "internalMetricName": + err = unpopulate(val, "InternalMetricName", &o.InternalMetricName) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &o.Name) + delete(rawMsg, key) + case "unit": + err = unpopulate(val, "Unit", &o.Unit) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", o, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type OperationPropertiesDefinition. +func (o OperationPropertiesDefinition) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "serviceSpecification", o.ServiceSpecification) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type OperationPropertiesDefinition. +func (o *OperationPropertiesDefinition) 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", o, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "serviceSpecification": + err = unpopulate(val, "ServiceSpecification", &o.ServiceSpecification) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", o, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type OperationServiceSpecificationDefinition. +func (o OperationServiceSpecificationDefinition) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "logSpecifications", o.LogSpecifications) + populate(objectMap, "metricSpecifications", o.MetricSpecifications) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type OperationServiceSpecificationDefinition. +func (o *OperationServiceSpecificationDefinition) 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", o, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "logSpecifications": + err = unpopulate(val, "LogSpecifications", &o.LogSpecifications) + delete(rawMsg, key) + case "metricSpecifications": + err = unpopulate(val, "MetricSpecifications", &o.MetricSpecifications) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", o, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type OverrideTaskStepProperties. +func (o OverrideTaskStepProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "arguments", o.Arguments) + populate(objectMap, "contextPath", o.ContextPath) + populate(objectMap, "file", o.File) + populate(objectMap, "target", o.Target) + populate(objectMap, "updateTriggerToken", o.UpdateTriggerToken) + populate(objectMap, "values", o.Values) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type OverrideTaskStepProperties. +func (o *OverrideTaskStepProperties) 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", o, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "arguments": + err = unpopulate(val, "Arguments", &o.Arguments) + delete(rawMsg, key) + case "contextPath": + err = unpopulate(val, "ContextPath", &o.ContextPath) + delete(rawMsg, key) + case "file": + err = unpopulate(val, "File", &o.File) + delete(rawMsg, key) + case "target": + err = unpopulate(val, "Target", &o.Target) + delete(rawMsg, key) + case "updateTriggerToken": + err = unpopulate(val, "UpdateTriggerToken", &o.UpdateTriggerToken) + delete(rawMsg, key) + case "values": + err = unpopulate(val, "Values", &o.Values) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", o, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type PackageType. +func (p PackageType) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "endpoint", p.Endpoint) + populate(objectMap, "name", p.Name) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PackageType. +func (p *PackageType) 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", p, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "endpoint": + err = unpopulate(val, "Endpoint", &p.Endpoint) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &p.Name) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", p, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ParentProperties. +func (p ParentProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", p.ID) + populate(objectMap, "syncProperties", p.SyncProperties) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ParentProperties. +func (p *ParentProperties) 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", p, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &p.ID) + delete(rawMsg, key) + case "syncProperties": + err = unpopulate(val, "SyncProperties", &p.SyncProperties) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", p, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type PipelineRun. +func (p PipelineRun) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", p.ID) + populate(objectMap, "name", p.Name) + populate(objectMap, "properties", p.Properties) + populate(objectMap, "systemData", p.SystemData) + populate(objectMap, "type", p.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PipelineRun. +func (p *PipelineRun) 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", p, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &p.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &p.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &p.Properties) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &p.SystemData) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &p.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", p, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type PipelineRunListResult. +func (p PipelineRunListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", p.NextLink) + populate(objectMap, "value", p.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PipelineRunListResult. +func (p *PipelineRunListResult) 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", p, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &p.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &p.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", p, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type PipelineRunProperties. +func (p PipelineRunProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "forceUpdateTag", p.ForceUpdateTag) + populate(objectMap, "provisioningState", p.ProvisioningState) + populate(objectMap, "request", p.Request) + populate(objectMap, "response", p.Response) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PipelineRunProperties. +func (p *PipelineRunProperties) 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", p, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "forceUpdateTag": + err = unpopulate(val, "ForceUpdateTag", &p.ForceUpdateTag) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &p.ProvisioningState) + delete(rawMsg, key) + case "request": + err = unpopulate(val, "Request", &p.Request) + delete(rawMsg, key) + case "response": + err = unpopulate(val, "Response", &p.Response) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", p, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type PipelineRunRequest. +func (p PipelineRunRequest) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "artifacts", p.Artifacts) + populate(objectMap, "catalogDigest", p.CatalogDigest) + populate(objectMap, "pipelineResourceId", p.PipelineResourceID) + populate(objectMap, "source", p.Source) + populate(objectMap, "target", p.Target) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PipelineRunRequest. +func (p *PipelineRunRequest) 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", p, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "artifacts": + err = unpopulate(val, "Artifacts", &p.Artifacts) + delete(rawMsg, key) + case "catalogDigest": + err = unpopulate(val, "CatalogDigest", &p.CatalogDigest) + delete(rawMsg, key) + case "pipelineResourceId": + err = unpopulate(val, "PipelineResourceID", &p.PipelineResourceID) + delete(rawMsg, key) + case "source": + err = unpopulate(val, "Source", &p.Source) + delete(rawMsg, key) + case "target": + err = unpopulate(val, "Target", &p.Target) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", p, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type PipelineRunResponse. +func (p PipelineRunResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "catalogDigest", p.CatalogDigest) + populateTimeRFC3339(objectMap, "finishTime", p.FinishTime) + populate(objectMap, "importedArtifacts", p.ImportedArtifacts) + populate(objectMap, "pipelineRunErrorMessage", p.PipelineRunErrorMessage) + populate(objectMap, "progress", p.Progress) + populate(objectMap, "source", p.Source) + populateTimeRFC3339(objectMap, "startTime", p.StartTime) + populate(objectMap, "status", p.Status) + populate(objectMap, "target", p.Target) + populate(objectMap, "trigger", p.Trigger) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PipelineRunResponse. +func (p *PipelineRunResponse) 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", p, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "catalogDigest": + err = unpopulate(val, "CatalogDigest", &p.CatalogDigest) + delete(rawMsg, key) + case "finishTime": + err = unpopulateTimeRFC3339(val, "FinishTime", &p.FinishTime) + delete(rawMsg, key) + case "importedArtifacts": + err = unpopulate(val, "ImportedArtifacts", &p.ImportedArtifacts) + delete(rawMsg, key) + case "pipelineRunErrorMessage": + err = unpopulate(val, "PipelineRunErrorMessage", &p.PipelineRunErrorMessage) + delete(rawMsg, key) + case "progress": + err = unpopulate(val, "Progress", &p.Progress) + delete(rawMsg, key) + case "source": + err = unpopulate(val, "Source", &p.Source) + delete(rawMsg, key) + case "startTime": + err = unpopulateTimeRFC3339(val, "StartTime", &p.StartTime) + delete(rawMsg, key) + case "status": + err = unpopulate(val, "Status", &p.Status) + delete(rawMsg, key) + case "target": + err = unpopulate(val, "Target", &p.Target) + delete(rawMsg, key) + case "trigger": + err = unpopulate(val, "Trigger", &p.Trigger) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", p, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type PipelineRunSourceProperties. +func (p PipelineRunSourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "name", p.Name) + populate(objectMap, "type", p.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PipelineRunSourceProperties. +func (p *PipelineRunSourceProperties) 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", p, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "name": + err = unpopulate(val, "Name", &p.Name) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &p.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", p, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type PipelineRunTargetProperties. +func (p PipelineRunTargetProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "name", p.Name) + populate(objectMap, "type", p.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PipelineRunTargetProperties. +func (p *PipelineRunTargetProperties) 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", p, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "name": + err = unpopulate(val, "Name", &p.Name) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &p.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", p, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type PipelineSourceTriggerDescriptor. +func (p PipelineSourceTriggerDescriptor) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateTimeRFC3339(objectMap, "timestamp", p.Timestamp) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PipelineSourceTriggerDescriptor. +func (p *PipelineSourceTriggerDescriptor) 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", p, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "timestamp": + err = unpopulateTimeRFC3339(val, "Timestamp", &p.Timestamp) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", p, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type PipelineSourceTriggerProperties. +func (p PipelineSourceTriggerProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "status", p.Status) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PipelineSourceTriggerProperties. +func (p *PipelineSourceTriggerProperties) 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", p, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "status": + err = unpopulate(val, "Status", &p.Status) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", p, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type PipelineTriggerDescriptor. +func (p PipelineTriggerDescriptor) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "sourceTrigger", p.SourceTrigger) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PipelineTriggerDescriptor. +func (p *PipelineTriggerDescriptor) 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", p, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "sourceTrigger": + err = unpopulate(val, "SourceTrigger", &p.SourceTrigger) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", p, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type PipelineTriggerProperties. +func (p PipelineTriggerProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "sourceTrigger", p.SourceTrigger) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PipelineTriggerProperties. +func (p *PipelineTriggerProperties) 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", p, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "sourceTrigger": + err = unpopulate(val, "SourceTrigger", &p.SourceTrigger) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", p, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type PlatformProperties. +func (p PlatformProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "architecture", p.Architecture) + populate(objectMap, "os", p.OS) + populate(objectMap, "variant", p.Variant) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PlatformProperties. +func (p *PlatformProperties) 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", p, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "architecture": + err = unpopulate(val, "Architecture", &p.Architecture) + delete(rawMsg, key) + case "os": + err = unpopulate(val, "OS", &p.OS) + delete(rawMsg, key) + case "variant": + err = unpopulate(val, "Variant", &p.Variant) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", p, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type PlatformUpdateParameters. +func (p PlatformUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "architecture", p.Architecture) + populate(objectMap, "os", p.OS) + populate(objectMap, "variant", p.Variant) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PlatformUpdateParameters. +func (p *PlatformUpdateParameters) 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", p, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "architecture": + err = unpopulate(val, "Architecture", &p.Architecture) + delete(rawMsg, key) + case "os": + err = unpopulate(val, "OS", &p.OS) + delete(rawMsg, key) + case "variant": + err = unpopulate(val, "Variant", &p.Variant) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", p, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type Policies. +func (p Policies) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "azureADAuthenticationAsArmPolicy", p.AzureADAuthenticationAsArmPolicy) + populate(objectMap, "exportPolicy", p.ExportPolicy) + populate(objectMap, "quarantinePolicy", p.QuarantinePolicy) + populate(objectMap, "retentionPolicy", p.RetentionPolicy) + populate(objectMap, "softDeletePolicy", p.SoftDeletePolicy) + populate(objectMap, "trustPolicy", p.TrustPolicy) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Policies. +func (p *Policies) 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", p, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "azureADAuthenticationAsArmPolicy": + err = unpopulate(val, "AzureADAuthenticationAsArmPolicy", &p.AzureADAuthenticationAsArmPolicy) + delete(rawMsg, key) + case "exportPolicy": + err = unpopulate(val, "ExportPolicy", &p.ExportPolicy) + delete(rawMsg, key) + case "quarantinePolicy": + err = unpopulate(val, "QuarantinePolicy", &p.QuarantinePolicy) + delete(rawMsg, key) + case "retentionPolicy": + err = unpopulate(val, "RetentionPolicy", &p.RetentionPolicy) + delete(rawMsg, key) + case "softDeletePolicy": + err = unpopulate(val, "SoftDeletePolicy", &p.SoftDeletePolicy) + delete(rawMsg, key) + case "trustPolicy": + err = unpopulate(val, "TrustPolicy", &p.TrustPolicy) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", p, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type PrivateEndpoint. +func (p PrivateEndpoint) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", p.ID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PrivateEndpoint. +func (p *PrivateEndpoint) 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", p, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &p.ID) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", p, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type PrivateEndpointConnection. +func (p PrivateEndpointConnection) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", p.ID) + populate(objectMap, "name", p.Name) + populate(objectMap, "properties", p.Properties) + populate(objectMap, "systemData", p.SystemData) + populate(objectMap, "type", p.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PrivateEndpointConnection. +func (p *PrivateEndpointConnection) 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", p, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &p.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &p.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &p.Properties) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &p.SystemData) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &p.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", p, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type PrivateEndpointConnectionListResult. +func (p PrivateEndpointConnectionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", p.NextLink) + populate(objectMap, "value", p.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PrivateEndpointConnectionListResult. +func (p *PrivateEndpointConnectionListResult) 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", p, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &p.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &p.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", p, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type PrivateEndpointConnectionProperties. +func (p PrivateEndpointConnectionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "privateEndpoint", p.PrivateEndpoint) + populate(objectMap, "privateLinkServiceConnectionState", p.PrivateLinkServiceConnectionState) + populate(objectMap, "provisioningState", p.ProvisioningState) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PrivateEndpointConnectionProperties. +func (p *PrivateEndpointConnectionProperties) 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", p, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "privateEndpoint": + err = unpopulate(val, "PrivateEndpoint", &p.PrivateEndpoint) + delete(rawMsg, key) + case "privateLinkServiceConnectionState": + err = unpopulate(val, "PrivateLinkServiceConnectionState", &p.PrivateLinkServiceConnectionState) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &p.ProvisioningState) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", p, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type PrivateLinkResource. +func (p PrivateLinkResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", p.ID) + populate(objectMap, "name", p.Name) + populate(objectMap, "properties", p.Properties) + populate(objectMap, "type", p.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PrivateLinkResource. +func (p *PrivateLinkResource) 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", p, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &p.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &p.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &p.Properties) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &p.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", p, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type PrivateLinkResourceListResult. +func (p PrivateLinkResourceListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", p.NextLink) + populate(objectMap, "value", p.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PrivateLinkResourceListResult. +func (p *PrivateLinkResourceListResult) 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", p, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &p.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &p.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", p, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type PrivateLinkResourceProperties. +func (p PrivateLinkResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "groupId", p.GroupID) + populate(objectMap, "requiredMembers", p.RequiredMembers) + populate(objectMap, "requiredZoneNames", p.RequiredZoneNames) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PrivateLinkResourceProperties. +func (p *PrivateLinkResourceProperties) 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", p, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "groupId": + err = unpopulate(val, "GroupID", &p.GroupID) + delete(rawMsg, key) + case "requiredMembers": + err = unpopulate(val, "RequiredMembers", &p.RequiredMembers) + delete(rawMsg, key) + case "requiredZoneNames": + err = unpopulate(val, "RequiredZoneNames", &p.RequiredZoneNames) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", p, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type PrivateLinkServiceConnectionState. +func (p PrivateLinkServiceConnectionState) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "actionsRequired", p.ActionsRequired) + populate(objectMap, "description", p.Description) + populate(objectMap, "status", p.Status) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PrivateLinkServiceConnectionState. +func (p *PrivateLinkServiceConnectionState) 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", p, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "actionsRequired": + err = unpopulate(val, "ActionsRequired", &p.ActionsRequired) + delete(rawMsg, key) + case "description": + err = unpopulate(val, "Description", &p.Description) + delete(rawMsg, key) + case "status": + err = unpopulate(val, "Status", &p.Status) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", p, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ProgressProperties. +func (p ProgressProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "percentage", p.Percentage) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ProgressProperties. +func (p *ProgressProperties) 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", p, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "percentage": + err = unpopulate(val, "Percentage", &p.Percentage) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", p, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ProxyResource. +func (p ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", p.ID) + populate(objectMap, "name", p.Name) + populate(objectMap, "systemData", p.SystemData) + populate(objectMap, "type", p.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ProxyResource. +func (p *ProxyResource) 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", p, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &p.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &p.Name) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &p.SystemData) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &p.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", p, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type QuarantinePolicy. +func (q QuarantinePolicy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "status", q.Status) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type QuarantinePolicy. +func (q *QuarantinePolicy) 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", q, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "status": + err = unpopulate(val, "Status", &q.Status) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", q, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type RegenerateCredentialParameters. +func (r RegenerateCredentialParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "name", r.Name) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RegenerateCredentialParameters. +func (r *RegenerateCredentialParameters) 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 "name": + err = unpopulate(val, "Name", &r.Name) + 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 Registry. +func (r Registry) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", r.ID) + populate(objectMap, "identity", r.Identity) + populate(objectMap, "location", r.Location) + populate(objectMap, "name", r.Name) + populate(objectMap, "properties", r.Properties) + populate(objectMap, "sku", r.SKU) + populate(objectMap, "systemData", r.SystemData) + populate(objectMap, "tags", r.Tags) + populate(objectMap, "type", r.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Registry. +func (r *Registry) 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 "identity": + err = unpopulate(val, "Identity", &r.Identity) + 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 "properties": + err = unpopulate(val, "Properties", &r.Properties) + delete(rawMsg, key) + case "sku": + err = unpopulate(val, "SKU", &r.SKU) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &r.SystemData) + 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 RegistryListCredentialsResult. +func (r RegistryListCredentialsResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "passwords", r.Passwords) + populate(objectMap, "username", r.Username) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RegistryListCredentialsResult. +func (r *RegistryListCredentialsResult) 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 "passwords": + err = unpopulate(val, "Passwords", &r.Passwords) + delete(rawMsg, key) + case "username": + err = unpopulate(val, "Username", &r.Username) + 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 RegistryListResult. +func (r RegistryListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", r.NextLink) + populate(objectMap, "value", r.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RegistryListResult. +func (r *RegistryListResult) 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 "nextLink": + err = unpopulate(val, "NextLink", &r.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &r.Value) + 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 RegistryNameCheckRequest. +func (r RegistryNameCheckRequest) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "name", r.Name) + objectMap["type"] = "Microsoft.ContainerRegistry/registries" + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RegistryNameCheckRequest. +func (r *RegistryNameCheckRequest) 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 "name": + err = unpopulate(val, "Name", &r.Name) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &r.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", r, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type RegistryNameStatus. +func (r RegistryNameStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "message", r.Message) + populate(objectMap, "nameAvailable", r.NameAvailable) + populate(objectMap, "reason", r.Reason) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RegistryNameStatus. +func (r *RegistryNameStatus) 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 "message": + err = unpopulate(val, "Message", &r.Message) + delete(rawMsg, key) + case "nameAvailable": + err = unpopulate(val, "NameAvailable", &r.NameAvailable) + delete(rawMsg, key) + case "reason": + err = unpopulate(val, "Reason", &r.Reason) + 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 RegistryPassword. +func (r RegistryPassword) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "name", r.Name) + populate(objectMap, "value", r.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RegistryPassword. +func (r *RegistryPassword) 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 "name": + err = unpopulate(val, "Name", &r.Name) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &r.Value) + 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 RegistryProperties. +func (r RegistryProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "adminUserEnabled", r.AdminUserEnabled) + populate(objectMap, "anonymousPullEnabled", r.AnonymousPullEnabled) + populateTimeRFC3339(objectMap, "creationDate", r.CreationDate) + populate(objectMap, "dataEndpointEnabled", r.DataEndpointEnabled) + populate(objectMap, "dataEndpointHostNames", r.DataEndpointHostNames) + populate(objectMap, "encryption", r.Encryption) + populate(objectMap, "loginServer", r.LoginServer) + populate(objectMap, "networkRuleBypassOptions", r.NetworkRuleBypassOptions) + populate(objectMap, "networkRuleSet", r.NetworkRuleSet) + populate(objectMap, "policies", r.Policies) + populate(objectMap, "privateEndpointConnections", r.PrivateEndpointConnections) + populate(objectMap, "provisioningState", r.ProvisioningState) + populate(objectMap, "publicNetworkAccess", r.PublicNetworkAccess) + populate(objectMap, "status", r.Status) + populate(objectMap, "zoneRedundancy", r.ZoneRedundancy) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RegistryProperties. +func (r *RegistryProperties) 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 "adminUserEnabled": + err = unpopulate(val, "AdminUserEnabled", &r.AdminUserEnabled) + delete(rawMsg, key) + case "anonymousPullEnabled": + err = unpopulate(val, "AnonymousPullEnabled", &r.AnonymousPullEnabled) + delete(rawMsg, key) + case "creationDate": + err = unpopulateTimeRFC3339(val, "CreationDate", &r.CreationDate) + delete(rawMsg, key) + case "dataEndpointEnabled": + err = unpopulate(val, "DataEndpointEnabled", &r.DataEndpointEnabled) + delete(rawMsg, key) + case "dataEndpointHostNames": + err = unpopulate(val, "DataEndpointHostNames", &r.DataEndpointHostNames) + delete(rawMsg, key) + case "encryption": + err = unpopulate(val, "Encryption", &r.Encryption) + delete(rawMsg, key) + case "loginServer": + err = unpopulate(val, "LoginServer", &r.LoginServer) + delete(rawMsg, key) + case "networkRuleBypassOptions": + err = unpopulate(val, "NetworkRuleBypassOptions", &r.NetworkRuleBypassOptions) + delete(rawMsg, key) + case "networkRuleSet": + err = unpopulate(val, "NetworkRuleSet", &r.NetworkRuleSet) + delete(rawMsg, key) + case "policies": + err = unpopulate(val, "Policies", &r.Policies) + delete(rawMsg, key) + case "privateEndpointConnections": + err = unpopulate(val, "PrivateEndpointConnections", &r.PrivateEndpointConnections) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &r.ProvisioningState) + delete(rawMsg, key) + case "publicNetworkAccess": + err = unpopulate(val, "PublicNetworkAccess", &r.PublicNetworkAccess) + delete(rawMsg, key) + case "status": + err = unpopulate(val, "Status", &r.Status) + delete(rawMsg, key) + case "zoneRedundancy": + err = unpopulate(val, "ZoneRedundancy", &r.ZoneRedundancy) + 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 RegistryPropertiesUpdateParameters. +func (r RegistryPropertiesUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "adminUserEnabled", r.AdminUserEnabled) + populate(objectMap, "anonymousPullEnabled", r.AnonymousPullEnabled) + populate(objectMap, "dataEndpointEnabled", r.DataEndpointEnabled) + populate(objectMap, "encryption", r.Encryption) + populate(objectMap, "networkRuleBypassOptions", r.NetworkRuleBypassOptions) + populate(objectMap, "networkRuleSet", r.NetworkRuleSet) + populate(objectMap, "policies", r.Policies) + populate(objectMap, "publicNetworkAccess", r.PublicNetworkAccess) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RegistryPropertiesUpdateParameters. +func (r *RegistryPropertiesUpdateParameters) 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 "adminUserEnabled": + err = unpopulate(val, "AdminUserEnabled", &r.AdminUserEnabled) + delete(rawMsg, key) + case "anonymousPullEnabled": + err = unpopulate(val, "AnonymousPullEnabled", &r.AnonymousPullEnabled) + delete(rawMsg, key) + case "dataEndpointEnabled": + err = unpopulate(val, "DataEndpointEnabled", &r.DataEndpointEnabled) + delete(rawMsg, key) + case "encryption": + err = unpopulate(val, "Encryption", &r.Encryption) + delete(rawMsg, key) + case "networkRuleBypassOptions": + err = unpopulate(val, "NetworkRuleBypassOptions", &r.NetworkRuleBypassOptions) + delete(rawMsg, key) + case "networkRuleSet": + err = unpopulate(val, "NetworkRuleSet", &r.NetworkRuleSet) + delete(rawMsg, key) + case "policies": + err = unpopulate(val, "Policies", &r.Policies) + delete(rawMsg, key) + case "publicNetworkAccess": + err = unpopulate(val, "PublicNetworkAccess", &r.PublicNetworkAccess) + 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 RegistryUpdateParameters. +func (r RegistryUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "identity", r.Identity) + populate(objectMap, "properties", r.Properties) + populate(objectMap, "sku", r.SKU) + populate(objectMap, "tags", r.Tags) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RegistryUpdateParameters. +func (r *RegistryUpdateParameters) 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 "identity": + err = unpopulate(val, "Identity", &r.Identity) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &r.Properties) + delete(rawMsg, key) + case "sku": + err = unpopulate(val, "SKU", &r.SKU) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &r.Tags) + 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 RegistryUsage. +func (r RegistryUsage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "currentValue", r.CurrentValue) + populate(objectMap, "limit", r.Limit) + populate(objectMap, "name", r.Name) + populate(objectMap, "unit", r.Unit) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RegistryUsage. +func (r *RegistryUsage) 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 "currentValue": + err = unpopulate(val, "CurrentValue", &r.CurrentValue) + delete(rawMsg, key) + case "limit": + err = unpopulate(val, "Limit", &r.Limit) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &r.Name) + delete(rawMsg, key) + case "unit": + err = unpopulate(val, "Unit", &r.Unit) + 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 RegistryUsageListResult. +func (r RegistryUsageListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "value", r.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RegistryUsageListResult. +func (r *RegistryUsageListResult) 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 "value": + err = unpopulate(val, "Value", &r.Value) + 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 Replication. +func (r Replication) 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, "properties", r.Properties) + populate(objectMap, "systemData", r.SystemData) + populate(objectMap, "tags", r.Tags) + populate(objectMap, "type", r.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Replication. +func (r *Replication) 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 "properties": + err = unpopulate(val, "Properties", &r.Properties) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &r.SystemData) + 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 ReplicationListResult. +func (r ReplicationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", r.NextLink) + populate(objectMap, "value", r.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ReplicationListResult. +func (r *ReplicationListResult) 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 "nextLink": + err = unpopulate(val, "NextLink", &r.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &r.Value) + 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 ReplicationProperties. +func (r ReplicationProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "provisioningState", r.ProvisioningState) + populate(objectMap, "regionEndpointEnabled", r.RegionEndpointEnabled) + populate(objectMap, "status", r.Status) + populate(objectMap, "zoneRedundancy", r.ZoneRedundancy) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ReplicationProperties. +func (r *ReplicationProperties) 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 "provisioningState": + err = unpopulate(val, "ProvisioningState", &r.ProvisioningState) + delete(rawMsg, key) + case "regionEndpointEnabled": + err = unpopulate(val, "RegionEndpointEnabled", &r.RegionEndpointEnabled) + delete(rawMsg, key) + case "status": + err = unpopulate(val, "Status", &r.Status) + delete(rawMsg, key) + case "zoneRedundancy": + err = unpopulate(val, "ZoneRedundancy", &r.ZoneRedundancy) + 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 ReplicationUpdateParameters. +func (r ReplicationUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "properties", r.Properties) + populate(objectMap, "tags", r.Tags) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ReplicationUpdateParameters. +func (r *ReplicationUpdateParameters) 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 "properties": + err = unpopulate(val, "Properties", &r.Properties) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &r.Tags) + 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 ReplicationUpdateParametersProperties. +func (r ReplicationUpdateParametersProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "regionEndpointEnabled", r.RegionEndpointEnabled) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ReplicationUpdateParametersProperties. +func (r *ReplicationUpdateParametersProperties) 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 "regionEndpointEnabled": + err = unpopulate(val, "RegionEndpointEnabled", &r.RegionEndpointEnabled) + 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 Request. +func (r Request) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "addr", r.Addr) + populate(objectMap, "host", r.Host) + populate(objectMap, "id", r.ID) + populate(objectMap, "method", r.Method) + populate(objectMap, "useragent", r.Useragent) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Request. +func (r *Request) 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 "addr": + err = unpopulate(val, "Addr", &r.Addr) + delete(rawMsg, key) + case "host": + err = unpopulate(val, "Host", &r.Host) + delete(rawMsg, key) + case "id": + err = unpopulate(val, "ID", &r.ID) + delete(rawMsg, key) + case "method": + err = unpopulate(val, "Method", &r.Method) + delete(rawMsg, key) + case "useragent": + err = unpopulate(val, "Useragent", &r.Useragent) + 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 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, "systemData", r.SystemData) + 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 "systemData": + err = unpopulate(val, "SystemData", &r.SystemData) + 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 RetentionPolicy. +func (r RetentionPolicy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "days", r.Days) + populateTimeRFC3339(objectMap, "lastUpdatedTime", r.LastUpdatedTime) + populate(objectMap, "status", r.Status) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RetentionPolicy. +func (r *RetentionPolicy) 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 "days": + err = unpopulate(val, "Days", &r.Days) + delete(rawMsg, key) + case "lastUpdatedTime": + err = unpopulateTimeRFC3339(val, "LastUpdatedTime", &r.LastUpdatedTime) + delete(rawMsg, key) + case "status": + err = unpopulate(val, "Status", &r.Status) + 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 Run. +func (r Run) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", r.ID) + populate(objectMap, "name", r.Name) + populate(objectMap, "properties", r.Properties) + populate(objectMap, "systemData", r.SystemData) + populate(objectMap, "type", r.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Run. +func (r *Run) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", r, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &r.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &r.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &r.Properties) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &r.SystemData) + 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 RunFilter. +func (r RunFilter) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "agentPoolName", r.AgentPoolName) + populateTimeRFC3339(objectMap, "createTime", r.CreateTime) + populateTimeRFC3339(objectMap, "finishTime", r.FinishTime) + populate(objectMap, "isArchiveEnabled", r.IsArchiveEnabled) + populate(objectMap, "outputImageManifests", r.OutputImageManifests) + populate(objectMap, "runId", r.RunID) + populate(objectMap, "runType", r.RunType) + populate(objectMap, "status", r.Status) + populate(objectMap, "taskName", r.TaskName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RunFilter. +func (r *RunFilter) 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 "agentPoolName": + err = unpopulate(val, "AgentPoolName", &r.AgentPoolName) + delete(rawMsg, key) + case "createTime": + err = unpopulateTimeRFC3339(val, "CreateTime", &r.CreateTime) + delete(rawMsg, key) + case "finishTime": + err = unpopulateTimeRFC3339(val, "FinishTime", &r.FinishTime) + delete(rawMsg, key) + case "isArchiveEnabled": + err = unpopulate(val, "IsArchiveEnabled", &r.IsArchiveEnabled) + delete(rawMsg, key) + case "outputImageManifests": + err = unpopulate(val, "OutputImageManifests", &r.OutputImageManifests) + delete(rawMsg, key) + case "runId": + err = unpopulate(val, "RunID", &r.RunID) + delete(rawMsg, key) + case "runType": + err = unpopulate(val, "RunType", &r.RunType) + delete(rawMsg, key) + case "status": + err = unpopulate(val, "Status", &r.Status) + delete(rawMsg, key) + case "taskName": + err = unpopulate(val, "TaskName", &r.TaskName) + 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 RunGetLogResult. +func (r RunGetLogResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "logArtifactLink", r.LogArtifactLink) + populate(objectMap, "logLink", r.LogLink) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RunGetLogResult. +func (r *RunGetLogResult) 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 "logArtifactLink": + err = unpopulate(val, "LogArtifactLink", &r.LogArtifactLink) + delete(rawMsg, key) + case "logLink": + err = unpopulate(val, "LogLink", &r.LogLink) + 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 RunListResult. +func (r RunListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", r.NextLink) + populate(objectMap, "value", r.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RunListResult. +func (r *RunListResult) 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 "nextLink": + err = unpopulate(val, "NextLink", &r.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &r.Value) + 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 RunProperties. +func (r RunProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "agentConfiguration", r.AgentConfiguration) + populate(objectMap, "agentPoolName", r.AgentPoolName) + populateTimeRFC3339(objectMap, "createTime", r.CreateTime) + populate(objectMap, "customRegistries", r.CustomRegistries) + populateTimeRFC3339(objectMap, "finishTime", r.FinishTime) + populate(objectMap, "imageUpdateTrigger", r.ImageUpdateTrigger) + populate(objectMap, "isArchiveEnabled", r.IsArchiveEnabled) + populateTimeRFC3339(objectMap, "lastUpdatedTime", r.LastUpdatedTime) + populate(objectMap, "logArtifact", r.LogArtifact) + populate(objectMap, "outputImages", r.OutputImages) + populate(objectMap, "platform", r.Platform) + populate(objectMap, "provisioningState", r.ProvisioningState) + populate(objectMap, "runErrorMessage", r.RunErrorMessage) + populate(objectMap, "runId", r.RunID) + populate(objectMap, "runType", r.RunType) + populate(objectMap, "sourceRegistryAuth", r.SourceRegistryAuth) + populate(objectMap, "sourceTrigger", r.SourceTrigger) + populateTimeRFC3339(objectMap, "startTime", r.StartTime) + populate(objectMap, "status", r.Status) + populate(objectMap, "task", r.Task) + populate(objectMap, "timerTrigger", r.TimerTrigger) + populate(objectMap, "updateTriggerToken", r.UpdateTriggerToken) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RunProperties. +func (r *RunProperties) 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 "agentConfiguration": + err = unpopulate(val, "AgentConfiguration", &r.AgentConfiguration) + delete(rawMsg, key) + case "agentPoolName": + err = unpopulate(val, "AgentPoolName", &r.AgentPoolName) + delete(rawMsg, key) + case "createTime": + err = unpopulateTimeRFC3339(val, "CreateTime", &r.CreateTime) + delete(rawMsg, key) + case "customRegistries": + err = unpopulate(val, "CustomRegistries", &r.CustomRegistries) + delete(rawMsg, key) + case "finishTime": + err = unpopulateTimeRFC3339(val, "FinishTime", &r.FinishTime) + delete(rawMsg, key) + case "imageUpdateTrigger": + err = unpopulate(val, "ImageUpdateTrigger", &r.ImageUpdateTrigger) + delete(rawMsg, key) + case "isArchiveEnabled": + err = unpopulate(val, "IsArchiveEnabled", &r.IsArchiveEnabled) + delete(rawMsg, key) + case "lastUpdatedTime": + err = unpopulateTimeRFC3339(val, "LastUpdatedTime", &r.LastUpdatedTime) + delete(rawMsg, key) + case "logArtifact": + err = unpopulate(val, "LogArtifact", &r.LogArtifact) + delete(rawMsg, key) + case "outputImages": + err = unpopulate(val, "OutputImages", &r.OutputImages) + delete(rawMsg, key) + case "platform": + err = unpopulate(val, "Platform", &r.Platform) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &r.ProvisioningState) + delete(rawMsg, key) + case "runErrorMessage": + err = unpopulate(val, "RunErrorMessage", &r.RunErrorMessage) + delete(rawMsg, key) + case "runId": + err = unpopulate(val, "RunID", &r.RunID) + delete(rawMsg, key) + case "runType": + err = unpopulate(val, "RunType", &r.RunType) + delete(rawMsg, key) + case "sourceRegistryAuth": + err = unpopulate(val, "SourceRegistryAuth", &r.SourceRegistryAuth) + delete(rawMsg, key) + case "sourceTrigger": + err = unpopulate(val, "SourceTrigger", &r.SourceTrigger) + delete(rawMsg, key) + case "startTime": + err = unpopulateTimeRFC3339(val, "StartTime", &r.StartTime) + delete(rawMsg, key) + case "status": + err = unpopulate(val, "Status", &r.Status) + delete(rawMsg, key) + case "task": + err = unpopulate(val, "Task", &r.Task) + delete(rawMsg, key) + case "timerTrigger": + err = unpopulate(val, "TimerTrigger", &r.TimerTrigger) + delete(rawMsg, key) + case "updateTriggerToken": + err = unpopulate(val, "UpdateTriggerToken", &r.UpdateTriggerToken) + 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 RunRequest. +func (r RunRequest) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "agentPoolName", r.AgentPoolName) + populate(objectMap, "isArchiveEnabled", r.IsArchiveEnabled) + populate(objectMap, "logTemplate", r.LogTemplate) + objectMap["type"] = r.Type + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RunRequest. +func (r *RunRequest) 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 "agentPoolName": + err = unpopulate(val, "AgentPoolName", &r.AgentPoolName) + delete(rawMsg, key) + case "isArchiveEnabled": + err = unpopulate(val, "IsArchiveEnabled", &r.IsArchiveEnabled) + delete(rawMsg, key) + case "logTemplate": + err = unpopulate(val, "LogTemplate", &r.LogTemplate) + 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 RunUpdateParameters. +func (r RunUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "isArchiveEnabled", r.IsArchiveEnabled) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RunUpdateParameters. +func (r *RunUpdateParameters) 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 "isArchiveEnabled": + err = unpopulate(val, "IsArchiveEnabled", &r.IsArchiveEnabled) + 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 SKU. +func (s SKU) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "name", s.Name) + populate(objectMap, "tier", s.Tier) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SKU. +func (s *SKU) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "name": + err = unpopulate(val, "Name", &s.Name) + delete(rawMsg, key) + case "tier": + err = unpopulate(val, "Tier", &s.Tier) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ScopeMap. +func (s ScopeMap) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", s.ID) + populate(objectMap, "name", s.Name) + populate(objectMap, "properties", s.Properties) + populate(objectMap, "systemData", s.SystemData) + populate(objectMap, "type", s.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ScopeMap. +func (s *ScopeMap) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &s.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &s.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &s.Properties) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &s.SystemData) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &s.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ScopeMapListResult. +func (s ScopeMapListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", s.NextLink) + populate(objectMap, "value", s.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ScopeMapListResult. +func (s *ScopeMapListResult) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &s.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &s.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ScopeMapProperties. +func (s ScopeMapProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "actions", s.Actions) + populateTimeRFC3339(objectMap, "creationDate", s.CreationDate) + populate(objectMap, "description", s.Description) + populate(objectMap, "provisioningState", s.ProvisioningState) + populate(objectMap, "type", s.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ScopeMapProperties. +func (s *ScopeMapProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "actions": + err = unpopulate(val, "Actions", &s.Actions) + delete(rawMsg, key) + case "creationDate": + err = unpopulateTimeRFC3339(val, "CreationDate", &s.CreationDate) + delete(rawMsg, key) + case "description": + err = unpopulate(val, "Description", &s.Description) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &s.ProvisioningState) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &s.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ScopeMapPropertiesUpdateParameters. +func (s ScopeMapPropertiesUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "actions", s.Actions) + populate(objectMap, "description", s.Description) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ScopeMapPropertiesUpdateParameters. +func (s *ScopeMapPropertiesUpdateParameters) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "actions": + err = unpopulate(val, "Actions", &s.Actions) + delete(rawMsg, key) + case "description": + err = unpopulate(val, "Description", &s.Description) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ScopeMapUpdateParameters. +func (s ScopeMapUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "properties", s.Properties) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ScopeMapUpdateParameters. +func (s *ScopeMapUpdateParameters) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "properties": + err = unpopulate(val, "Properties", &s.Properties) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SecretObject. +func (s SecretObject) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "type", s.Type) + populate(objectMap, "value", s.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SecretObject. +func (s *SecretObject) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "type": + err = unpopulate(val, "Type", &s.Type) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &s.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SetValue. +func (s SetValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "isSecret", s.IsSecret) + populate(objectMap, "name", s.Name) + populate(objectMap, "value", s.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SetValue. +func (s *SetValue) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "isSecret": + err = unpopulate(val, "IsSecret", &s.IsSecret) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &s.Name) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &s.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SoftDeletePolicy. +func (s SoftDeletePolicy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateTimeRFC3339(objectMap, "lastUpdatedTime", s.LastUpdatedTime) + populate(objectMap, "retentionDays", s.RetentionDays) + populate(objectMap, "status", s.Status) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SoftDeletePolicy. +func (s *SoftDeletePolicy) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "lastUpdatedTime": + err = unpopulateTimeRFC3339(val, "LastUpdatedTime", &s.LastUpdatedTime) + delete(rawMsg, key) + case "retentionDays": + err = unpopulate(val, "RetentionDays", &s.RetentionDays) + delete(rawMsg, key) + case "status": + err = unpopulate(val, "Status", &s.Status) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type Source. +func (s Source) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "addr", s.Addr) + populate(objectMap, "instanceID", s.InstanceID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Source. +func (s *Source) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "addr": + err = unpopulate(val, "Addr", &s.Addr) + delete(rawMsg, key) + case "instanceID": + err = unpopulate(val, "InstanceID", &s.InstanceID) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SourceProperties. +func (s SourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "branch", s.Branch) + populate(objectMap, "repositoryUrl", s.RepositoryURL) + populate(objectMap, "sourceControlAuthProperties", s.SourceControlAuthProperties) + populate(objectMap, "sourceControlType", s.SourceControlType) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SourceProperties. +func (s *SourceProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "branch": + err = unpopulate(val, "Branch", &s.Branch) + delete(rawMsg, key) + case "repositoryUrl": + err = unpopulate(val, "RepositoryURL", &s.RepositoryURL) + delete(rawMsg, key) + case "sourceControlAuthProperties": + err = unpopulate(val, "SourceControlAuthProperties", &s.SourceControlAuthProperties) + delete(rawMsg, key) + case "sourceControlType": + err = unpopulate(val, "SourceControlType", &s.SourceControlType) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SourceRegistryCredentials. +func (s SourceRegistryCredentials) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "loginMode", s.LoginMode) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SourceRegistryCredentials. +func (s *SourceRegistryCredentials) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "loginMode": + err = unpopulate(val, "LoginMode", &s.LoginMode) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SourceTrigger. +func (s SourceTrigger) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "name", s.Name) + populate(objectMap, "sourceRepository", s.SourceRepository) + populate(objectMap, "sourceTriggerEvents", s.SourceTriggerEvents) + populate(objectMap, "status", s.Status) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SourceTrigger. +func (s *SourceTrigger) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "name": + err = unpopulate(val, "Name", &s.Name) + delete(rawMsg, key) + case "sourceRepository": + err = unpopulate(val, "SourceRepository", &s.SourceRepository) + delete(rawMsg, key) + case "sourceTriggerEvents": + err = unpopulate(val, "SourceTriggerEvents", &s.SourceTriggerEvents) + delete(rawMsg, key) + case "status": + err = unpopulate(val, "Status", &s.Status) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SourceTriggerDescriptor. +func (s SourceTriggerDescriptor) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "branchName", s.BranchName) + populate(objectMap, "commitId", s.CommitID) + populate(objectMap, "eventType", s.EventType) + populate(objectMap, "id", s.ID) + populate(objectMap, "providerType", s.ProviderType) + populate(objectMap, "pullRequestId", s.PullRequestID) + populate(objectMap, "repositoryUrl", s.RepositoryURL) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SourceTriggerDescriptor. +func (s *SourceTriggerDescriptor) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "branchName": + err = unpopulate(val, "BranchName", &s.BranchName) + delete(rawMsg, key) + case "commitId": + err = unpopulate(val, "CommitID", &s.CommitID) + delete(rawMsg, key) + case "eventType": + err = unpopulate(val, "EventType", &s.EventType) + delete(rawMsg, key) + case "id": + err = unpopulate(val, "ID", &s.ID) + delete(rawMsg, key) + case "providerType": + err = unpopulate(val, "ProviderType", &s.ProviderType) + delete(rawMsg, key) + case "pullRequestId": + err = unpopulate(val, "PullRequestID", &s.PullRequestID) + delete(rawMsg, key) + case "repositoryUrl": + err = unpopulate(val, "RepositoryURL", &s.RepositoryURL) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SourceTriggerUpdateParameters. +func (s SourceTriggerUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "name", s.Name) + populate(objectMap, "sourceRepository", s.SourceRepository) + populate(objectMap, "sourceTriggerEvents", s.SourceTriggerEvents) + populate(objectMap, "status", s.Status) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SourceTriggerUpdateParameters. +func (s *SourceTriggerUpdateParameters) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "name": + err = unpopulate(val, "Name", &s.Name) + delete(rawMsg, key) + case "sourceRepository": + err = unpopulate(val, "SourceRepository", &s.SourceRepository) + delete(rawMsg, key) + case "sourceTriggerEvents": + err = unpopulate(val, "SourceTriggerEvents", &s.SourceTriggerEvents) + delete(rawMsg, key) + case "status": + err = unpopulate(val, "Status", &s.Status) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SourceUpdateParameters. +func (s SourceUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "branch", s.Branch) + populate(objectMap, "repositoryUrl", s.RepositoryURL) + populate(objectMap, "sourceControlAuthProperties", s.SourceControlAuthProperties) + populate(objectMap, "sourceControlType", s.SourceControlType) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SourceUpdateParameters. +func (s *SourceUpdateParameters) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "branch": + err = unpopulate(val, "Branch", &s.Branch) + delete(rawMsg, key) + case "repositoryUrl": + err = unpopulate(val, "RepositoryURL", &s.RepositoryURL) + delete(rawMsg, key) + case "sourceControlAuthProperties": + err = unpopulate(val, "SourceControlAuthProperties", &s.SourceControlAuthProperties) + delete(rawMsg, key) + case "sourceControlType": + err = unpopulate(val, "SourceControlType", &s.SourceControlType) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SourceUploadDefinition. +func (s SourceUploadDefinition) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "relativePath", s.RelativePath) + populate(objectMap, "uploadUrl", s.UploadURL) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SourceUploadDefinition. +func (s *SourceUploadDefinition) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "relativePath": + err = unpopulate(val, "RelativePath", &s.RelativePath) + delete(rawMsg, key) + case "uploadUrl": + err = unpopulate(val, "UploadURL", &s.UploadURL) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type Status. +func (s Status) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "displayStatus", s.DisplayStatus) + populate(objectMap, "message", s.Message) + populateTimeRFC3339(objectMap, "timestamp", s.Timestamp) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Status. +func (s *Status) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "displayStatus": + err = unpopulate(val, "DisplayStatus", &s.DisplayStatus) + delete(rawMsg, key) + case "message": + err = unpopulate(val, "Message", &s.Message) + delete(rawMsg, key) + case "timestamp": + err = unpopulateTimeRFC3339(val, "Timestamp", &s.Timestamp) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type StatusDetailProperties. +func (s StatusDetailProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "code", s.Code) + populate(objectMap, "correlationId", s.CorrelationID) + populate(objectMap, "description", s.Description) + populateTimeRFC3339(objectMap, "timestamp", s.Timestamp) + populate(objectMap, "type", s.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type StatusDetailProperties. +func (s *StatusDetailProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "code": + err = unpopulate(val, "Code", &s.Code) + delete(rawMsg, key) + case "correlationId": + err = unpopulate(val, "CorrelationID", &s.CorrelationID) + delete(rawMsg, key) + case "description": + err = unpopulate(val, "Description", &s.Description) + delete(rawMsg, key) + case "timestamp": + err = unpopulateTimeRFC3339(val, "Timestamp", &s.Timestamp) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &s.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type StorageAccountProperties. +func (s StorageAccountProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", s.ID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type StorageAccountProperties. +func (s *StorageAccountProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &s.ID) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SyncProperties. +func (s SyncProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "gatewayEndpoint", s.GatewayEndpoint) + populateTimeRFC3339(objectMap, "lastSyncTime", s.LastSyncTime) + populate(objectMap, "messageTtl", s.MessageTTL) + populate(objectMap, "schedule", s.Schedule) + populate(objectMap, "syncWindow", s.SyncWindow) + populate(objectMap, "tokenId", s.TokenID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SyncProperties. +func (s *SyncProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "gatewayEndpoint": + err = unpopulate(val, "GatewayEndpoint", &s.GatewayEndpoint) + delete(rawMsg, key) + case "lastSyncTime": + err = unpopulateTimeRFC3339(val, "LastSyncTime", &s.LastSyncTime) + delete(rawMsg, key) + case "messageTtl": + err = unpopulate(val, "MessageTTL", &s.MessageTTL) + delete(rawMsg, key) + case "schedule": + err = unpopulate(val, "Schedule", &s.Schedule) + delete(rawMsg, key) + case "syncWindow": + err = unpopulate(val, "SyncWindow", &s.SyncWindow) + delete(rawMsg, key) + case "tokenId": + err = unpopulate(val, "TokenID", &s.TokenID) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SyncUpdateProperties. +func (s SyncUpdateProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "messageTtl", s.MessageTTL) + populate(objectMap, "schedule", s.Schedule) + populate(objectMap, "syncWindow", s.SyncWindow) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SyncUpdateProperties. +func (s *SyncUpdateProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "messageTtl": + err = unpopulate(val, "MessageTTL", &s.MessageTTL) + delete(rawMsg, key) + case "schedule": + err = unpopulate(val, "Schedule", &s.Schedule) + delete(rawMsg, key) + case "syncWindow": + err = unpopulate(val, "SyncWindow", &s.SyncWindow) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SystemData. +func (s SystemData) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateTimeRFC3339(objectMap, "createdAt", s.CreatedAt) + populate(objectMap, "createdBy", s.CreatedBy) + populate(objectMap, "createdByType", s.CreatedByType) + populateTimeRFC3339(objectMap, "lastModifiedAt", s.LastModifiedAt) + populate(objectMap, "lastModifiedBy", s.LastModifiedBy) + populate(objectMap, "lastModifiedByType", s.LastModifiedByType) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SystemData. +func (s *SystemData) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "createdAt": + err = unpopulateTimeRFC3339(val, "CreatedAt", &s.CreatedAt) + delete(rawMsg, key) + case "createdBy": + err = unpopulate(val, "CreatedBy", &s.CreatedBy) + delete(rawMsg, key) + case "createdByType": + err = unpopulate(val, "CreatedByType", &s.CreatedByType) + delete(rawMsg, key) + case "lastModifiedAt": + err = unpopulateTimeRFC3339(val, "LastModifiedAt", &s.LastModifiedAt) + delete(rawMsg, key) + case "lastModifiedBy": + err = unpopulate(val, "LastModifiedBy", &s.LastModifiedBy) + delete(rawMsg, key) + case "lastModifiedByType": + err = unpopulate(val, "LastModifiedByType", &s.LastModifiedByType) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type TLSCertificateProperties. +func (t TLSCertificateProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "location", t.Location) + populate(objectMap, "type", t.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type TLSCertificateProperties. +func (t *TLSCertificateProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "location": + err = unpopulate(val, "Location", &t.Location) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &t.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type TLSProperties. +func (t TLSProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "certificate", t.Certificate) + populate(objectMap, "status", t.Status) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type TLSProperties. +func (t *TLSProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "certificate": + err = unpopulate(val, "Certificate", &t.Certificate) + delete(rawMsg, key) + case "status": + err = unpopulate(val, "Status", &t.Status) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type Target. +func (t Target) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "digest", t.Digest) + populate(objectMap, "length", t.Length) + populate(objectMap, "mediaType", t.MediaType) + populate(objectMap, "name", t.Name) + populate(objectMap, "repository", t.Repository) + populate(objectMap, "size", t.Size) + populate(objectMap, "tag", t.Tag) + populate(objectMap, "url", t.URL) + populate(objectMap, "version", t.Version) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Target. +func (t *Target) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "digest": + err = unpopulate(val, "Digest", &t.Digest) + delete(rawMsg, key) + case "length": + err = unpopulate(val, "Length", &t.Length) + delete(rawMsg, key) + case "mediaType": + err = unpopulate(val, "MediaType", &t.MediaType) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &t.Name) + delete(rawMsg, key) + case "repository": + err = unpopulate(val, "Repository", &t.Repository) + delete(rawMsg, key) + case "size": + err = unpopulate(val, "Size", &t.Size) + delete(rawMsg, key) + case "tag": + err = unpopulate(val, "Tag", &t.Tag) + delete(rawMsg, key) + case "url": + err = unpopulate(val, "URL", &t.URL) + delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &t.Version) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type Task. +func (t Task) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", t.ID) + populate(objectMap, "identity", t.Identity) + populate(objectMap, "location", t.Location) + populate(objectMap, "name", t.Name) + populate(objectMap, "properties", t.Properties) + populate(objectMap, "systemData", t.SystemData) + populate(objectMap, "tags", t.Tags) + populate(objectMap, "type", t.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Task. +func (t *Task) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &t.ID) + delete(rawMsg, key) + case "identity": + err = unpopulate(val, "Identity", &t.Identity) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &t.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &t.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &t.Properties) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &t.SystemData) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &t.Tags) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &t.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type TaskListResult. +func (t TaskListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", t.NextLink) + populate(objectMap, "value", t.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type TaskListResult. +func (t *TaskListResult) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &t.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &t.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type TaskProperties. +func (t TaskProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "agentConfiguration", t.AgentConfiguration) + populate(objectMap, "agentPoolName", t.AgentPoolName) + populateTimeRFC3339(objectMap, "creationDate", t.CreationDate) + populate(objectMap, "credentials", t.Credentials) + populate(objectMap, "isSystemTask", t.IsSystemTask) + populate(objectMap, "logTemplate", t.LogTemplate) + populate(objectMap, "platform", t.Platform) + populate(objectMap, "provisioningState", t.ProvisioningState) + populate(objectMap, "status", t.Status) + populate(objectMap, "step", t.Step) + populate(objectMap, "timeout", t.Timeout) + populate(objectMap, "trigger", t.Trigger) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type TaskProperties. +func (t *TaskProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "agentConfiguration": + err = unpopulate(val, "AgentConfiguration", &t.AgentConfiguration) + delete(rawMsg, key) + case "agentPoolName": + err = unpopulate(val, "AgentPoolName", &t.AgentPoolName) + delete(rawMsg, key) + case "creationDate": + err = unpopulateTimeRFC3339(val, "CreationDate", &t.CreationDate) + delete(rawMsg, key) + case "credentials": + err = unpopulate(val, "Credentials", &t.Credentials) + delete(rawMsg, key) + case "isSystemTask": + err = unpopulate(val, "IsSystemTask", &t.IsSystemTask) + delete(rawMsg, key) + case "logTemplate": + err = unpopulate(val, "LogTemplate", &t.LogTemplate) + delete(rawMsg, key) + case "platform": + err = unpopulate(val, "Platform", &t.Platform) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &t.ProvisioningState) + delete(rawMsg, key) + case "status": + err = unpopulate(val, "Status", &t.Status) + delete(rawMsg, key) + case "step": + t.Step, err = unmarshalTaskStepPropertiesClassification(val) + delete(rawMsg, key) + case "timeout": + err = unpopulate(val, "Timeout", &t.Timeout) + delete(rawMsg, key) + case "trigger": + err = unpopulate(val, "Trigger", &t.Trigger) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type TaskPropertiesUpdateParameters. +func (t TaskPropertiesUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "agentConfiguration", t.AgentConfiguration) + populate(objectMap, "agentPoolName", t.AgentPoolName) + populate(objectMap, "credentials", t.Credentials) + populate(objectMap, "logTemplate", t.LogTemplate) + populate(objectMap, "platform", t.Platform) + populate(objectMap, "status", t.Status) + populate(objectMap, "step", t.Step) + populate(objectMap, "timeout", t.Timeout) + populate(objectMap, "trigger", t.Trigger) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type TaskPropertiesUpdateParameters. +func (t *TaskPropertiesUpdateParameters) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "agentConfiguration": + err = unpopulate(val, "AgentConfiguration", &t.AgentConfiguration) + delete(rawMsg, key) + case "agentPoolName": + err = unpopulate(val, "AgentPoolName", &t.AgentPoolName) + delete(rawMsg, key) + case "credentials": + err = unpopulate(val, "Credentials", &t.Credentials) + delete(rawMsg, key) + case "logTemplate": + err = unpopulate(val, "LogTemplate", &t.LogTemplate) + delete(rawMsg, key) + case "platform": + err = unpopulate(val, "Platform", &t.Platform) + delete(rawMsg, key) + case "status": + err = unpopulate(val, "Status", &t.Status) + delete(rawMsg, key) + case "step": + t.Step, err = unmarshalTaskStepUpdateParametersClassification(val) + delete(rawMsg, key) + case "timeout": + err = unpopulate(val, "Timeout", &t.Timeout) + delete(rawMsg, key) + case "trigger": + err = unpopulate(val, "Trigger", &t.Trigger) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type TaskRun. +func (t TaskRun) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", t.ID) + populate(objectMap, "identity", t.Identity) + populate(objectMap, "location", t.Location) + populate(objectMap, "name", t.Name) + populate(objectMap, "properties", t.Properties) + populate(objectMap, "systemData", t.SystemData) + populate(objectMap, "type", t.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type TaskRun. +func (t *TaskRun) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &t.ID) + delete(rawMsg, key) + case "identity": + err = unpopulate(val, "Identity", &t.Identity) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &t.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &t.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &t.Properties) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &t.SystemData) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &t.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type TaskRunListResult. +func (t TaskRunListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", t.NextLink) + populate(objectMap, "value", t.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type TaskRunListResult. +func (t *TaskRunListResult) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &t.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &t.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type TaskRunProperties. +func (t TaskRunProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "forceUpdateTag", t.ForceUpdateTag) + populate(objectMap, "provisioningState", t.ProvisioningState) + populate(objectMap, "runRequest", t.RunRequest) + populate(objectMap, "runResult", t.RunResult) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type TaskRunProperties. +func (t *TaskRunProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "forceUpdateTag": + err = unpopulate(val, "ForceUpdateTag", &t.ForceUpdateTag) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &t.ProvisioningState) + delete(rawMsg, key) + case "runRequest": + t.RunRequest, err = unmarshalRunRequestClassification(val) + delete(rawMsg, key) + case "runResult": + err = unpopulate(val, "RunResult", &t.RunResult) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type TaskRunPropertiesUpdateParameters. +func (t TaskRunPropertiesUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "forceUpdateTag", t.ForceUpdateTag) + populate(objectMap, "runRequest", t.RunRequest) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type TaskRunPropertiesUpdateParameters. +func (t *TaskRunPropertiesUpdateParameters) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "forceUpdateTag": + err = unpopulate(val, "ForceUpdateTag", &t.ForceUpdateTag) + delete(rawMsg, key) + case "runRequest": + t.RunRequest, err = unmarshalRunRequestClassification(val) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type TaskRunRequest. +func (t TaskRunRequest) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "agentPoolName", t.AgentPoolName) + populate(objectMap, "isArchiveEnabled", t.IsArchiveEnabled) + populate(objectMap, "logTemplate", t.LogTemplate) + populate(objectMap, "overrideTaskStepProperties", t.OverrideTaskStepProperties) + populate(objectMap, "taskId", t.TaskID) + objectMap["type"] = "TaskRunRequest" + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type TaskRunRequest. +func (t *TaskRunRequest) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "agentPoolName": + err = unpopulate(val, "AgentPoolName", &t.AgentPoolName) + delete(rawMsg, key) + case "isArchiveEnabled": + err = unpopulate(val, "IsArchiveEnabled", &t.IsArchiveEnabled) + delete(rawMsg, key) + case "logTemplate": + err = unpopulate(val, "LogTemplate", &t.LogTemplate) + delete(rawMsg, key) + case "overrideTaskStepProperties": + err = unpopulate(val, "OverrideTaskStepProperties", &t.OverrideTaskStepProperties) + delete(rawMsg, key) + case "taskId": + err = unpopulate(val, "TaskID", &t.TaskID) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &t.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type TaskRunUpdateParameters. +func (t TaskRunUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "identity", t.Identity) + populate(objectMap, "location", t.Location) + populate(objectMap, "properties", t.Properties) + populate(objectMap, "tags", t.Tags) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type TaskRunUpdateParameters. +func (t *TaskRunUpdateParameters) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "identity": + err = unpopulate(val, "Identity", &t.Identity) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &t.Location) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &t.Properties) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &t.Tags) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type TaskStepProperties. +func (t TaskStepProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "baseImageDependencies", t.BaseImageDependencies) + populate(objectMap, "contextAccessToken", t.ContextAccessToken) + populate(objectMap, "contextPath", t.ContextPath) + objectMap["type"] = t.Type + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type TaskStepProperties. +func (t *TaskStepProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "baseImageDependencies": + err = unpopulate(val, "BaseImageDependencies", &t.BaseImageDependencies) + delete(rawMsg, key) + case "contextAccessToken": + err = unpopulate(val, "ContextAccessToken", &t.ContextAccessToken) + delete(rawMsg, key) + case "contextPath": + err = unpopulate(val, "ContextPath", &t.ContextPath) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &t.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type TaskStepUpdateParameters. +func (t TaskStepUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "contextAccessToken", t.ContextAccessToken) + populate(objectMap, "contextPath", t.ContextPath) + objectMap["type"] = t.Type + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type TaskStepUpdateParameters. +func (t *TaskStepUpdateParameters) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "contextAccessToken": + err = unpopulate(val, "ContextAccessToken", &t.ContextAccessToken) + delete(rawMsg, key) + case "contextPath": + err = unpopulate(val, "ContextPath", &t.ContextPath) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &t.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type TaskUpdateParameters. +func (t TaskUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "identity", t.Identity) + populate(objectMap, "properties", t.Properties) + populate(objectMap, "tags", t.Tags) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type TaskUpdateParameters. +func (t *TaskUpdateParameters) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "identity": + err = unpopulate(val, "Identity", &t.Identity) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &t.Properties) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &t.Tags) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type TimerTrigger. +func (t TimerTrigger) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "name", t.Name) + populate(objectMap, "schedule", t.Schedule) + populate(objectMap, "status", t.Status) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type TimerTrigger. +func (t *TimerTrigger) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "name": + err = unpopulate(val, "Name", &t.Name) + delete(rawMsg, key) + case "schedule": + err = unpopulate(val, "Schedule", &t.Schedule) + delete(rawMsg, key) + case "status": + err = unpopulate(val, "Status", &t.Status) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type TimerTriggerDescriptor. +func (t TimerTriggerDescriptor) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "scheduleOccurrence", t.ScheduleOccurrence) + populate(objectMap, "timerTriggerName", t.TimerTriggerName) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type TimerTriggerDescriptor. +func (t *TimerTriggerDescriptor) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "scheduleOccurrence": + err = unpopulate(val, "ScheduleOccurrence", &t.ScheduleOccurrence) + delete(rawMsg, key) + case "timerTriggerName": + err = unpopulate(val, "TimerTriggerName", &t.TimerTriggerName) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type TimerTriggerUpdateParameters. +func (t TimerTriggerUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "name", t.Name) + populate(objectMap, "schedule", t.Schedule) + populate(objectMap, "status", t.Status) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type TimerTriggerUpdateParameters. +func (t *TimerTriggerUpdateParameters) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "name": + err = unpopulate(val, "Name", &t.Name) + delete(rawMsg, key) + case "schedule": + err = unpopulate(val, "Schedule", &t.Schedule) + delete(rawMsg, key) + case "status": + err = unpopulate(val, "Status", &t.Status) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type Token. +func (t Token) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", t.ID) + populate(objectMap, "name", t.Name) + populate(objectMap, "properties", t.Properties) + populate(objectMap, "systemData", t.SystemData) + populate(objectMap, "type", t.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Token. +func (t *Token) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &t.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &t.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &t.Properties) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &t.SystemData) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &t.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type TokenCertificate. +func (t TokenCertificate) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "encodedPemCertificate", t.EncodedPemCertificate) + populateTimeRFC3339(objectMap, "expiry", t.Expiry) + populate(objectMap, "name", t.Name) + populate(objectMap, "thumbprint", t.Thumbprint) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type TokenCertificate. +func (t *TokenCertificate) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "encodedPemCertificate": + err = unpopulate(val, "EncodedPemCertificate", &t.EncodedPemCertificate) + delete(rawMsg, key) + case "expiry": + err = unpopulateTimeRFC3339(val, "Expiry", &t.Expiry) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &t.Name) + delete(rawMsg, key) + case "thumbprint": + err = unpopulate(val, "Thumbprint", &t.Thumbprint) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type TokenCredentialsProperties. +func (t TokenCredentialsProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "certificates", t.Certificates) + populate(objectMap, "passwords", t.Passwords) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type TokenCredentialsProperties. +func (t *TokenCredentialsProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "certificates": + err = unpopulate(val, "Certificates", &t.Certificates) + delete(rawMsg, key) + case "passwords": + err = unpopulate(val, "Passwords", &t.Passwords) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type TokenListResult. +func (t TokenListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", t.NextLink) + populate(objectMap, "value", t.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type TokenListResult. +func (t *TokenListResult) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &t.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &t.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type TokenPassword. +func (t TokenPassword) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateTimeRFC3339(objectMap, "creationTime", t.CreationTime) + populateTimeRFC3339(objectMap, "expiry", t.Expiry) + populate(objectMap, "name", t.Name) + populate(objectMap, "value", t.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type TokenPassword. +func (t *TokenPassword) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "creationTime": + err = unpopulateTimeRFC3339(val, "CreationTime", &t.CreationTime) + delete(rawMsg, key) + case "expiry": + err = unpopulateTimeRFC3339(val, "Expiry", &t.Expiry) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &t.Name) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &t.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type TokenProperties. +func (t TokenProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateTimeRFC3339(objectMap, "creationDate", t.CreationDate) + populate(objectMap, "credentials", t.Credentials) + populate(objectMap, "provisioningState", t.ProvisioningState) + populate(objectMap, "scopeMapId", t.ScopeMapID) + populate(objectMap, "status", t.Status) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type TokenProperties. +func (t *TokenProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "creationDate": + err = unpopulateTimeRFC3339(val, "CreationDate", &t.CreationDate) + delete(rawMsg, key) + case "credentials": + err = unpopulate(val, "Credentials", &t.Credentials) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &t.ProvisioningState) + delete(rawMsg, key) + case "scopeMapId": + err = unpopulate(val, "ScopeMapID", &t.ScopeMapID) + delete(rawMsg, key) + case "status": + err = unpopulate(val, "Status", &t.Status) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type TokenUpdateParameters. +func (t TokenUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "properties", t.Properties) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type TokenUpdateParameters. +func (t *TokenUpdateParameters) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "properties": + err = unpopulate(val, "Properties", &t.Properties) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type TokenUpdateProperties. +func (t TokenUpdateProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "credentials", t.Credentials) + populate(objectMap, "scopeMapId", t.ScopeMapID) + populate(objectMap, "status", t.Status) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type TokenUpdateProperties. +func (t *TokenUpdateProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "credentials": + err = unpopulate(val, "Credentials", &t.Credentials) + delete(rawMsg, key) + case "scopeMapId": + err = unpopulate(val, "ScopeMapID", &t.ScopeMapID) + delete(rawMsg, key) + case "status": + err = unpopulate(val, "Status", &t.Status) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type TriggerProperties. +func (t TriggerProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "baseImageTrigger", t.BaseImageTrigger) + populate(objectMap, "sourceTriggers", t.SourceTriggers) + populate(objectMap, "timerTriggers", t.TimerTriggers) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type TriggerProperties. +func (t *TriggerProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "baseImageTrigger": + err = unpopulate(val, "BaseImageTrigger", &t.BaseImageTrigger) + delete(rawMsg, key) + case "sourceTriggers": + err = unpopulate(val, "SourceTriggers", &t.SourceTriggers) + delete(rawMsg, key) + case "timerTriggers": + err = unpopulate(val, "TimerTriggers", &t.TimerTriggers) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type TriggerUpdateParameters. +func (t TriggerUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "baseImageTrigger", t.BaseImageTrigger) + populate(objectMap, "sourceTriggers", t.SourceTriggers) + populate(objectMap, "timerTriggers", t.TimerTriggers) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type TriggerUpdateParameters. +func (t *TriggerUpdateParameters) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "baseImageTrigger": + err = unpopulate(val, "BaseImageTrigger", &t.BaseImageTrigger) + delete(rawMsg, key) + case "sourceTriggers": + err = unpopulate(val, "SourceTriggers", &t.SourceTriggers) + delete(rawMsg, key) + case "timerTriggers": + err = unpopulate(val, "TimerTriggers", &t.TimerTriggers) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type TrustPolicy. +func (t TrustPolicy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "status", t.Status) + populate(objectMap, "type", t.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type TrustPolicy. +func (t *TrustPolicy) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "status": + err = unpopulate(val, "Status", &t.Status) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &t.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type UserIdentityProperties. +func (u UserIdentityProperties) 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 UserIdentityProperties. +func (u *UserIdentityProperties) 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 Webhook. +func (w Webhook) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", w.ID) + populate(objectMap, "location", w.Location) + populate(objectMap, "name", w.Name) + populate(objectMap, "properties", w.Properties) + populate(objectMap, "systemData", w.SystemData) + populate(objectMap, "tags", w.Tags) + populate(objectMap, "type", w.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Webhook. +func (w *Webhook) 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", w, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &w.ID) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &w.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &w.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &w.Properties) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &w.SystemData) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &w.Tags) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &w.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", w, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type WebhookCreateParameters. +func (w WebhookCreateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "location", w.Location) + populate(objectMap, "properties", w.Properties) + populate(objectMap, "tags", w.Tags) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type WebhookCreateParameters. +func (w *WebhookCreateParameters) 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", w, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "location": + err = unpopulate(val, "Location", &w.Location) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &w.Properties) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &w.Tags) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", w, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type WebhookListResult. +func (w WebhookListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", w.NextLink) + populate(objectMap, "value", w.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type WebhookListResult. +func (w *WebhookListResult) 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", w, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &w.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &w.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", w, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type WebhookProperties. +func (w WebhookProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "actions", w.Actions) + populate(objectMap, "provisioningState", w.ProvisioningState) + populate(objectMap, "scope", w.Scope) + populate(objectMap, "status", w.Status) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type WebhookProperties. +func (w *WebhookProperties) 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", w, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "actions": + err = unpopulate(val, "Actions", &w.Actions) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &w.ProvisioningState) + delete(rawMsg, key) + case "scope": + err = unpopulate(val, "Scope", &w.Scope) + delete(rawMsg, key) + case "status": + err = unpopulate(val, "Status", &w.Status) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", w, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type WebhookPropertiesCreateParameters. +func (w WebhookPropertiesCreateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "actions", w.Actions) + populate(objectMap, "customHeaders", w.CustomHeaders) + populate(objectMap, "scope", w.Scope) + populate(objectMap, "serviceUri", w.ServiceURI) + populate(objectMap, "status", w.Status) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type WebhookPropertiesCreateParameters. +func (w *WebhookPropertiesCreateParameters) 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", w, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "actions": + err = unpopulate(val, "Actions", &w.Actions) + delete(rawMsg, key) + case "customHeaders": + err = unpopulate(val, "CustomHeaders", &w.CustomHeaders) + delete(rawMsg, key) + case "scope": + err = unpopulate(val, "Scope", &w.Scope) + delete(rawMsg, key) + case "serviceUri": + err = unpopulate(val, "ServiceURI", &w.ServiceURI) + delete(rawMsg, key) + case "status": + err = unpopulate(val, "Status", &w.Status) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", w, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type WebhookPropertiesUpdateParameters. +func (w WebhookPropertiesUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "actions", w.Actions) + populate(objectMap, "customHeaders", w.CustomHeaders) + populate(objectMap, "scope", w.Scope) + populate(objectMap, "serviceUri", w.ServiceURI) + populate(objectMap, "status", w.Status) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type WebhookPropertiesUpdateParameters. +func (w *WebhookPropertiesUpdateParameters) 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", w, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "actions": + err = unpopulate(val, "Actions", &w.Actions) + delete(rawMsg, key) + case "customHeaders": + err = unpopulate(val, "CustomHeaders", &w.CustomHeaders) + delete(rawMsg, key) + case "scope": + err = unpopulate(val, "Scope", &w.Scope) + delete(rawMsg, key) + case "serviceUri": + err = unpopulate(val, "ServiceURI", &w.ServiceURI) + delete(rawMsg, key) + case "status": + err = unpopulate(val, "Status", &w.Status) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", w, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type WebhookUpdateParameters. +func (w WebhookUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "properties", w.Properties) + populate(objectMap, "tags", w.Tags) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type WebhookUpdateParameters. +func (w *WebhookUpdateParameters) 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", w, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "properties": + err = unpopulate(val, "Properties", &w.Properties) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &w.Tags) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", w, err) + } + } + return nil +} + +func populate(m map[string]any, k string, v any) { + if v == nil { + return + } else if azcore.IsNullValue(v) { + m[k] = nil + } else if !reflect.ValueOf(v).IsNil() { + m[k] = v + } +} + +func unpopulate(data json.RawMessage, fn string, v any) error { + if data == nil { + return nil + } + if err := json.Unmarshal(data, v); err != nil { + return fmt.Errorf("struct field %s: %v", fn, err) + } + return nil +} diff --git a/sdk/resourcemanager/containerregistry/armcontainerregistry/zz_generated_operations_client.go b/sdk/resourcemanager/containerregistry/armcontainerregistry/operations_client.go similarity index 89% rename from sdk/resourcemanager/containerregistry/armcontainerregistry/zz_generated_operations_client.go rename to sdk/resourcemanager/containerregistry/armcontainerregistry/operations_client.go index 16068cd2ec38..fe36fcd98ebd 100644 --- a/sdk/resourcemanager/containerregistry/armcontainerregistry/zz_generated_operations_client.go +++ b/sdk/resourcemanager/containerregistry/armcontainerregistry/operations_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armcontainerregistry @@ -27,8 +28,8 @@ type OperationsClient struct { } // NewOperationsClient creates a new instance of OperationsClient with the specified values. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*OperationsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -49,9 +50,9 @@ func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientO } // NewListPager - Lists all of the available Azure Container Registry REST API operations. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview -// options - OperationsClientListOptions contains the optional parameters for the OperationsClient.List method. +// +// Generated from API version 2023-01-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]{ More: func(page OperationsClientListResponse) bool { @@ -88,7 +89,7 @@ func (client *OperationsClient) listCreateRequest(ctx context.Context, options * return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-01-preview") + reqQP.Set("api-version", "2023-01-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/containerregistry/armcontainerregistry/operations_client_example_test.go b/sdk/resourcemanager/containerregistry/armcontainerregistry/operations_client_example_test.go new file mode 100644 index 000000000000..db238410fc8b --- /dev/null +++ b/sdk/resourcemanager/containerregistry/armcontainerregistry/operations_client_example_test.go @@ -0,0 +1,55 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armcontainerregistry_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2023-01-01-preview/examples/OperationList.json +func ExampleOperationsClient_NewListPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewOperationsClient(cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListPager(nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.OperationListResult = armcontainerregistry.OperationListResult{ + // Value: []*armcontainerregistry.OperationDefinition{ + // { + // Name: to.Ptr("Microsoft.ContainerRegistry/locations/deleteVirtualNetworkOrSubnets/action"), + // Display: &armcontainerregistry.OperationDisplayDefinition{ + // Description: to.Ptr("Notifies Microsoft.ContainerRegistry that virtual network or subnet is being deleted"), + // Operation: to.Ptr("Delete virtual network or subnets notifications"), + // Provider: to.Ptr("Microsoft ContainerRegistry"), + // Resource: to.Ptr(""), + // }, + // }}, + // } + } +} diff --git a/sdk/resourcemanager/containerregistry/armcontainerregistry/zz_generated_pipelineruns_client.go b/sdk/resourcemanager/containerregistry/armcontainerregistry/pipelineruns_client.go similarity index 82% rename from sdk/resourcemanager/containerregistry/armcontainerregistry/zz_generated_pipelineruns_client.go rename to sdk/resourcemanager/containerregistry/armcontainerregistry/pipelineruns_client.go index fd5fc5f43373..0c8023f3ef09 100644 --- a/sdk/resourcemanager/containerregistry/armcontainerregistry/zz_generated_pipelineruns_client.go +++ b/sdk/resourcemanager/containerregistry/armcontainerregistry/pipelineruns_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armcontainerregistry @@ -31,9 +32,9 @@ type PipelineRunsClient struct { } // NewPipelineRunsClient creates a new instance of PipelineRunsClient with the specified values. -// subscriptionID - The Microsoft Azure subscription ID. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewPipelineRunsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PipelineRunsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,20 +57,23 @@ func NewPipelineRunsClient(subscriptionID string, credential azcore.TokenCredent // BeginCreate - Creates a pipeline run for a container registry with the specified parameters // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// pipelineRunName - The name of the pipeline run. -// pipelineRunCreateParameters - The parameters for creating a pipeline run. -// options - PipelineRunsClientBeginCreateOptions contains the optional parameters for the PipelineRunsClient.BeginCreate -// method. +// +// Generated from API version 2023-01-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - registryName - The name of the container registry. +// - pipelineRunName - The name of the pipeline run. +// - pipelineRunCreateParameters - The parameters for creating a pipeline run. +// - options - PipelineRunsClientBeginCreateOptions contains the optional parameters for the PipelineRunsClient.BeginCreate +// method. func (client *PipelineRunsClient) BeginCreate(ctx context.Context, resourceGroupName string, registryName string, pipelineRunName string, pipelineRunCreateParameters PipelineRun, options *PipelineRunsClientBeginCreateOptions) (*runtime.Poller[PipelineRunsClientCreateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.create(ctx, resourceGroupName, registryName, pipelineRunName, pipelineRunCreateParameters, options) if err != nil { return nil, err } - return runtime.NewPoller[PipelineRunsClientCreateResponse](resp, client.pl, nil) + return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[PipelineRunsClientCreateResponse]{ + FinalStateVia: runtime.FinalStateViaAzureAsyncOp, + }) } else { return runtime.NewPollerFromResumeToken[PipelineRunsClientCreateResponse](options.ResumeToken, client.pl, nil) } @@ -77,7 +81,8 @@ func (client *PipelineRunsClient) BeginCreate(ctx context.Context, resourceGroup // Create - Creates a pipeline run for a container registry with the specified parameters // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview +// +// Generated from API version 2023-01-01-preview func (client *PipelineRunsClient) create(ctx context.Context, resourceGroupName string, registryName string, pipelineRunName string, pipelineRunCreateParameters PipelineRun, options *PipelineRunsClientBeginCreateOptions) (*http.Response, error) { req, err := client.createCreateRequest(ctx, resourceGroupName, registryName, pipelineRunName, pipelineRunCreateParameters, options) if err != nil { @@ -96,9 +101,6 @@ func (client *PipelineRunsClient) create(ctx context.Context, resourceGroupName // createCreateRequest creates the Create request. func (client *PipelineRunsClient) createCreateRequest(ctx context.Context, resourceGroupName string, registryName string, pipelineRunName string, pipelineRunCreateParameters PipelineRun, options *PipelineRunsClientBeginCreateOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/pipelineRuns/{pipelineRunName}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -117,7 +119,7 @@ func (client *PipelineRunsClient) createCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-01-preview") + reqQP.Set("api-version", "2023-01-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, pipelineRunCreateParameters) @@ -125,19 +127,22 @@ func (client *PipelineRunsClient) createCreateRequest(ctx context.Context, resou // BeginDelete - Deletes a pipeline run from a container registry. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// pipelineRunName - The name of the pipeline run. -// options - PipelineRunsClientBeginDeleteOptions contains the optional parameters for the PipelineRunsClient.BeginDelete -// method. +// +// Generated from API version 2023-01-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - registryName - The name of the container registry. +// - pipelineRunName - The name of the pipeline run. +// - options - PipelineRunsClientBeginDeleteOptions contains the optional parameters for the PipelineRunsClient.BeginDelete +// method. func (client *PipelineRunsClient) BeginDelete(ctx context.Context, resourceGroupName string, registryName string, pipelineRunName string, options *PipelineRunsClientBeginDeleteOptions) (*runtime.Poller[PipelineRunsClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, registryName, pipelineRunName, options) if err != nil { return nil, err } - return runtime.NewPoller[PipelineRunsClientDeleteResponse](resp, client.pl, nil) + return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[PipelineRunsClientDeleteResponse]{ + FinalStateVia: runtime.FinalStateViaLocation, + }) } else { return runtime.NewPollerFromResumeToken[PipelineRunsClientDeleteResponse](options.ResumeToken, client.pl, nil) } @@ -145,7 +150,8 @@ func (client *PipelineRunsClient) BeginDelete(ctx context.Context, resourceGroup // Delete - Deletes a pipeline run from a container registry. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview +// +// Generated from API version 2023-01-01-preview func (client *PipelineRunsClient) deleteOperation(ctx context.Context, resourceGroupName string, registryName string, pipelineRunName string, options *PipelineRunsClientBeginDeleteOptions) (*http.Response, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, registryName, pipelineRunName, options) if err != nil { @@ -164,9 +170,6 @@ func (client *PipelineRunsClient) deleteOperation(ctx context.Context, resourceG // deleteCreateRequest creates the Delete request. func (client *PipelineRunsClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, registryName string, pipelineRunName string, options *PipelineRunsClientBeginDeleteOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/pipelineRuns/{pipelineRunName}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -185,7 +188,7 @@ func (client *PipelineRunsClient) deleteCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-01-preview") + reqQP.Set("api-version", "2023-01-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -193,11 +196,12 @@ func (client *PipelineRunsClient) deleteCreateRequest(ctx context.Context, resou // Get - Gets the detailed information for a given pipeline run. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// pipelineRunName - The name of the pipeline run. -// options - PipelineRunsClientGetOptions contains the optional parameters for the PipelineRunsClient.Get method. +// +// Generated from API version 2023-01-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - registryName - The name of the container registry. +// - pipelineRunName - The name of the pipeline run. +// - options - PipelineRunsClientGetOptions contains the optional parameters for the PipelineRunsClient.Get method. func (client *PipelineRunsClient) Get(ctx context.Context, resourceGroupName string, registryName string, pipelineRunName string, options *PipelineRunsClientGetOptions) (PipelineRunsClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, registryName, pipelineRunName, options) if err != nil { @@ -216,9 +220,6 @@ func (client *PipelineRunsClient) Get(ctx context.Context, resourceGroupName str // getCreateRequest creates the Get request. func (client *PipelineRunsClient) getCreateRequest(ctx context.Context, resourceGroupName string, registryName string, pipelineRunName string, options *PipelineRunsClientGetOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/pipelineRuns/{pipelineRunName}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -237,7 +238,7 @@ func (client *PipelineRunsClient) getCreateRequest(ctx context.Context, resource return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-01-preview") + reqQP.Set("api-version", "2023-01-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -253,11 +254,11 @@ func (client *PipelineRunsClient) getHandleResponse(resp *http.Response) (Pipeli } // NewListPager - Lists all the pipeline runs for the specified container registry. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// options - PipelineRunsClientListOptions contains the optional parameters for the PipelineRunsClient.List method. +// +// Generated from API version 2023-01-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - registryName - The name of the container registry. +// - options - PipelineRunsClientListOptions contains the optional parameters for the PipelineRunsClient.NewListPager method. func (client *PipelineRunsClient) NewListPager(resourceGroupName string, registryName string, options *PipelineRunsClientListOptions) *runtime.Pager[PipelineRunsClientListResponse] { return runtime.NewPager(runtime.PagingHandler[PipelineRunsClientListResponse]{ More: func(page PipelineRunsClientListResponse) bool { @@ -289,9 +290,6 @@ func (client *PipelineRunsClient) NewListPager(resourceGroupName string, registr // listCreateRequest creates the List request. func (client *PipelineRunsClient) listCreateRequest(ctx context.Context, resourceGroupName string, registryName string, options *PipelineRunsClientListOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/pipelineRuns" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -306,7 +304,7 @@ func (client *PipelineRunsClient) listCreateRequest(ctx context.Context, resourc return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-01-preview") + reqQP.Set("api-version", "2023-01-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/containerregistry/armcontainerregistry/pipelineruns_client_example_test.go b/sdk/resourcemanager/containerregistry/armcontainerregistry/pipelineruns_client_example_test.go new file mode 100644 index 000000000000..984b516a4fdf --- /dev/null +++ b/sdk/resourcemanager/containerregistry/armcontainerregistry/pipelineruns_client_example_test.go @@ -0,0 +1,296 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armcontainerregistry_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2023-01-01-preview/examples/PipelineRunList.json +func ExamplePipelineRunsClient_NewListPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewPipelineRunsClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListPager("myResourceGroup", "myRegistry", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.PipelineRunListResult = armcontainerregistry.PipelineRunListResult{ + // Value: []*armcontainerregistry.PipelineRun{ + // { + // Name: to.Ptr("myPipelineRun"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/pipelineRuns"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/pipelineRuns/myPipelineRun"), + // Properties: &armcontainerregistry.PipelineRunProperties{ + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // Response: &armcontainerregistry.PipelineRunResponse{ + // CatalogDigest: to.Ptr("sha256@"), + // Progress: &armcontainerregistry.ProgressProperties{ + // Percentage: to.Ptr("20"), + // }, + // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-03-04T17:23:21.9261521+00:00"); return t}()), + // Status: to.Ptr("Running"), + // Target: &armcontainerregistry.ExportPipelineTargetProperties{ + // Type: to.Ptr("AzureStorageBlob"), + // KeyVaultURI: to.Ptr("https://myvault.vault.azure.net/secrets/acrexportsas"), + // URI: to.Ptr("https://accountname.blob.core.windows.net/containername/myblob.tar.gz"), + // }, + // }, + // Request: &armcontainerregistry.PipelineRunRequest{ + // Artifacts: []*string{ + // to.Ptr("sourceRepository/hello-world"), + // to.Ptr("sourceRepository2@sha256:00000000000000000000000000000000000")}, + // PipelineResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/exportPipelines/myExportPipeline"), + // }, + // }, + // }, + // { + // Name: to.Ptr("myPipelineRun"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/pipelineRuns"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/pipelineRuns/myPipelineRun"), + // Properties: &armcontainerregistry.PipelineRunProperties{ + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // Response: &armcontainerregistry.PipelineRunResponse{ + // CatalogDigest: to.Ptr("sha256@"), + // ImportedArtifacts: []*string{ + // to.Ptr("sourceRepository/hello-world"), + // to.Ptr("sourceRepository2@sha256:00000000000000000000000000000000000")}, + // Progress: &armcontainerregistry.ProgressProperties{ + // Percentage: to.Ptr("100"), + // }, + // Source: &armcontainerregistry.ImportPipelineSourceProperties{ + // Type: to.Ptr(armcontainerregistry.PipelineSourceType("AzureStorageBlob")), + // KeyVaultURI: to.Ptr("https://myvault.vault.azure.net/secrets/acrimportsas"), + // URI: to.Ptr("https://accountname.blob.core.windows.net/containername/myblob.tar.gz"), + // }, + // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-03-03T17:23:21.9261521+00:00"); return t}()), + // Status: to.Ptr("Succeeded"), + // }, + // Request: &armcontainerregistry.PipelineRunRequest{ + // PipelineResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/importPipelines/myImportPipeline"), + // }, + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2023-01-01-preview/examples/PipelineRunGet.json +func ExamplePipelineRunsClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewPipelineRunsClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "myResourceGroup", "myRegistry", "myPipelineRun", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.PipelineRun = armcontainerregistry.PipelineRun{ + // Name: to.Ptr("myPipelineRun"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/pipelineRuns"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/pipelineRuns/myPipelineRun"), + // Properties: &armcontainerregistry.PipelineRunProperties{ + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // Response: &armcontainerregistry.PipelineRunResponse{ + // CatalogDigest: to.Ptr("sha256@"), + // Progress: &armcontainerregistry.ProgressProperties{ + // Percentage: to.Ptr("20"), + // }, + // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-03-04T17:23:21.9261521+00:00"); return t}()), + // Status: to.Ptr("Running"), + // Target: &armcontainerregistry.ExportPipelineTargetProperties{ + // Type: to.Ptr("AzureStorageBlob"), + // KeyVaultURI: to.Ptr("https://myvault.vault.azure.net/secrets/acrexportsas"), + // URI: to.Ptr("https://accountname.blob.core.windows.net/containername/myblob.tar.gz"), + // }, + // }, + // Request: &armcontainerregistry.PipelineRunRequest{ + // Artifacts: []*string{ + // to.Ptr("sourceRepository/hello-world"), + // to.Ptr("sourceRepository2@sha256:00000000000000000000000000000000000")}, + // PipelineResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/exportPipelines/myExportPipeline"), + // }, + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2023-01-01-preview/examples/PipelineRunCreate_Export.json +func ExamplePipelineRunsClient_BeginCreate_pipelineRunCreateExport() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewPipelineRunsClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreate(ctx, "myResourceGroup", "myRegistry", "myPipelineRun", armcontainerregistry.PipelineRun{ + Properties: &armcontainerregistry.PipelineRunProperties{ + Request: &armcontainerregistry.PipelineRunRequest{ + Artifacts: []*string{ + to.Ptr("sourceRepository/hello-world"), + to.Ptr("sourceRepository2@sha256:00000000000000000000000000000000000")}, + PipelineResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/exportPipelines/myExportPipeline"), + Target: &armcontainerregistry.PipelineRunTargetProperties{ + Name: to.Ptr("myblob.tar.gz"), + Type: to.Ptr(armcontainerregistry.PipelineRunTargetTypeAzureStorageBlob), + }, + }, + }, + }, 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.PipelineRun = armcontainerregistry.PipelineRun{ + // Name: to.Ptr("myPipelineRun"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/pipelineRuns"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/pipelineRuns/myPipelineRun"), + // Properties: &armcontainerregistry.PipelineRunProperties{ + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // Response: &armcontainerregistry.PipelineRunResponse{ + // CatalogDigest: to.Ptr("sha256@"), + // Progress: &armcontainerregistry.ProgressProperties{ + // Percentage: to.Ptr("20"), + // }, + // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-03-04T17:23:21.9261521+00:00"); return t}()), + // Status: to.Ptr("Running"), + // Target: &armcontainerregistry.ExportPipelineTargetProperties{ + // Type: to.Ptr("AzureStorageBlob"), + // KeyVaultURI: to.Ptr("https://myvault.vault.azure.net/secrets/acrexportsas"), + // URI: to.Ptr("https://accountname.blob.core.windows.net/containername/myblob.tar.gz"), + // }, + // }, + // Request: &armcontainerregistry.PipelineRunRequest{ + // Artifacts: []*string{ + // to.Ptr("sourceRepository/hello-world"), + // to.Ptr("sourceRepository2@sha256:00000000000000000000000000000000000")}, + // PipelineResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/exportPipelines/myExportPipeline"), + // }, + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2023-01-01-preview/examples/PipelineRunCreate_Import.json +func ExamplePipelineRunsClient_BeginCreate_pipelineRunCreateImport() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewPipelineRunsClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreate(ctx, "myResourceGroup", "myRegistry", "myPipelineRun", armcontainerregistry.PipelineRun{ + Properties: &armcontainerregistry.PipelineRunProperties{ + ForceUpdateTag: to.Ptr("2020-03-04T17:23:21.9261521+00:00"), + Request: &armcontainerregistry.PipelineRunRequest{ + CatalogDigest: to.Ptr("sha256@"), + PipelineResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/importPipelines/myImportPipeline"), + Source: &armcontainerregistry.PipelineRunSourceProperties{ + Name: to.Ptr("myblob.tar.gz"), + Type: to.Ptr(armcontainerregistry.PipelineRunSourceTypeAzureStorageBlob), + }, + }, + }, + }, 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.PipelineRun = armcontainerregistry.PipelineRun{ + // Name: to.Ptr("myPipelineRun"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/pipelineRuns"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/pipelineRuns/myPipelineRun"), + // Properties: &armcontainerregistry.PipelineRunProperties{ + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // Response: &armcontainerregistry.PipelineRunResponse{ + // CatalogDigest: to.Ptr("sha256@"), + // ImportedArtifacts: []*string{ + // to.Ptr("sourceRepository/hello-world"), + // to.Ptr("sourceRepository2@sha256:00000000000000000000000000000000000")}, + // Progress: &armcontainerregistry.ProgressProperties{ + // Percentage: to.Ptr("100"), + // }, + // Source: &armcontainerregistry.ImportPipelineSourceProperties{ + // Type: to.Ptr(armcontainerregistry.PipelineSourceType("AzureStorageBlob")), + // KeyVaultURI: to.Ptr("https://myvault.vault.azure.net/secrets/acrimportsas"), + // URI: to.Ptr("https://accountname.blob.core.windows.net/containername/myblob.tar.gz"), + // }, + // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-03-04T17:23:21.9261521+00:00"); return t}()), + // Status: to.Ptr("Succeeded"), + // }, + // Request: &armcontainerregistry.PipelineRunRequest{ + // PipelineResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/importPipelines/myImportPipeline"), + // }, + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2023-01-01-preview/examples/PipelineRunDelete.json +func ExamplePipelineRunsClient_BeginDelete() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewPipelineRunsClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginDelete(ctx, "myResourceGroup", "myRegistry", "myPipelineRun", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + _, err = poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } +} diff --git a/sdk/resourcemanager/containerregistry/armcontainerregistry/zz_generated_polymorphic_helpers.go b/sdk/resourcemanager/containerregistry/armcontainerregistry/polymorphic_helpers.go similarity index 95% rename from sdk/resourcemanager/containerregistry/armcontainerregistry/zz_generated_polymorphic_helpers.go rename to sdk/resourcemanager/containerregistry/armcontainerregistry/polymorphic_helpers.go index 1772a6796943..9b27db470ce7 100644 --- a/sdk/resourcemanager/containerregistry/armcontainerregistry/zz_generated_polymorphic_helpers.go +++ b/sdk/resourcemanager/containerregistry/armcontainerregistry/polymorphic_helpers.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armcontainerregistry @@ -14,7 +15,7 @@ func unmarshalRunRequestClassification(rawMsg json.RawMessage) (RunRequestClassi if rawMsg == nil { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } @@ -38,7 +39,7 @@ func unmarshalTaskStepPropertiesClassification(rawMsg json.RawMessage) (TaskStep if rawMsg == nil { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } @@ -60,7 +61,7 @@ func unmarshalTaskStepUpdateParametersClassification(rawMsg json.RawMessage) (Ta if rawMsg == nil { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } diff --git a/sdk/resourcemanager/containerregistry/armcontainerregistry/zz_generated_privateendpointconnections_client.go b/sdk/resourcemanager/containerregistry/armcontainerregistry/privateendpointconnections_client.go similarity index 82% rename from sdk/resourcemanager/containerregistry/armcontainerregistry/zz_generated_privateendpointconnections_client.go rename to sdk/resourcemanager/containerregistry/armcontainerregistry/privateendpointconnections_client.go index d93715956a7f..9db16a3d5da4 100644 --- a/sdk/resourcemanager/containerregistry/armcontainerregistry/zz_generated_privateendpointconnections_client.go +++ b/sdk/resourcemanager/containerregistry/armcontainerregistry/privateendpointconnections_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armcontainerregistry @@ -31,9 +32,9 @@ type PrivateEndpointConnectionsClient struct { } // NewPrivateEndpointConnectionsClient creates a new instance of PrivateEndpointConnectionsClient with the specified values. -// subscriptionID - The Microsoft Azure subscription ID. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewPrivateEndpointConnectionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PrivateEndpointConnectionsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,20 +57,23 @@ func NewPrivateEndpointConnectionsClient(subscriptionID string, credential azcor // BeginCreateOrUpdate - Update the state of specified private endpoint connection associated with the container registry. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// privateEndpointConnectionName - The name of the private endpoint connection. -// privateEndpointConnection - The parameters for creating a private endpoint connection. -// options - PrivateEndpointConnectionsClientBeginCreateOrUpdateOptions contains the optional parameters for the PrivateEndpointConnectionsClient.BeginCreateOrUpdate -// method. +// +// Generated from API version 2023-01-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - registryName - The name of the container registry. +// - privateEndpointConnectionName - The name of the private endpoint connection. +// - privateEndpointConnection - The parameters for creating a private endpoint connection. +// - options - PrivateEndpointConnectionsClientBeginCreateOrUpdateOptions contains the optional parameters for the PrivateEndpointConnectionsClient.BeginCreateOrUpdate +// method. func (client *PrivateEndpointConnectionsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, registryName string, privateEndpointConnectionName string, privateEndpointConnection PrivateEndpointConnection, options *PrivateEndpointConnectionsClientBeginCreateOrUpdateOptions) (*runtime.Poller[PrivateEndpointConnectionsClientCreateOrUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createOrUpdate(ctx, resourceGroupName, registryName, privateEndpointConnectionName, privateEndpointConnection, options) if err != nil { return nil, err } - return runtime.NewPoller[PrivateEndpointConnectionsClientCreateOrUpdateResponse](resp, client.pl, nil) + return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[PrivateEndpointConnectionsClientCreateOrUpdateResponse]{ + FinalStateVia: runtime.FinalStateViaAzureAsyncOp, + }) } else { return runtime.NewPollerFromResumeToken[PrivateEndpointConnectionsClientCreateOrUpdateResponse](options.ResumeToken, client.pl, nil) } @@ -77,7 +81,8 @@ func (client *PrivateEndpointConnectionsClient) BeginCreateOrUpdate(ctx context. // CreateOrUpdate - Update the state of specified private endpoint connection associated with the container registry. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview +// +// Generated from API version 2023-01-01-preview func (client *PrivateEndpointConnectionsClient) createOrUpdate(ctx context.Context, resourceGroupName string, registryName string, privateEndpointConnectionName string, privateEndpointConnection PrivateEndpointConnection, options *PrivateEndpointConnectionsClientBeginCreateOrUpdateOptions) (*http.Response, error) { req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, registryName, privateEndpointConnectionName, privateEndpointConnection, options) if err != nil { @@ -96,9 +101,6 @@ func (client *PrivateEndpointConnectionsClient) createOrUpdate(ctx context.Conte // createOrUpdateCreateRequest creates the CreateOrUpdate request. func (client *PrivateEndpointConnectionsClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, registryName string, privateEndpointConnectionName string, privateEndpointConnection PrivateEndpointConnection, options *PrivateEndpointConnectionsClientBeginCreateOrUpdateOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/privateEndpointConnections/{privateEndpointConnectionName}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -117,7 +119,7 @@ func (client *PrivateEndpointConnectionsClient) createOrUpdateCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-01-preview") + reqQP.Set("api-version", "2023-01-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, privateEndpointConnection) @@ -125,19 +127,22 @@ func (client *PrivateEndpointConnectionsClient) createOrUpdateCreateRequest(ctx // BeginDelete - Deletes the specified private endpoint connection associated with the container registry. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// privateEndpointConnectionName - The name of the private endpoint connection. -// options - PrivateEndpointConnectionsClientBeginDeleteOptions contains the optional parameters for the PrivateEndpointConnectionsClient.BeginDelete -// method. +// +// Generated from API version 2023-01-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - registryName - The name of the container registry. +// - privateEndpointConnectionName - The name of the private endpoint connection. +// - options - PrivateEndpointConnectionsClientBeginDeleteOptions contains the optional parameters for the PrivateEndpointConnectionsClient.BeginDelete +// method. func (client *PrivateEndpointConnectionsClient) BeginDelete(ctx context.Context, resourceGroupName string, registryName string, privateEndpointConnectionName string, options *PrivateEndpointConnectionsClientBeginDeleteOptions) (*runtime.Poller[PrivateEndpointConnectionsClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, registryName, privateEndpointConnectionName, options) if err != nil { return nil, err } - return runtime.NewPoller[PrivateEndpointConnectionsClientDeleteResponse](resp, client.pl, nil) + return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[PrivateEndpointConnectionsClientDeleteResponse]{ + FinalStateVia: runtime.FinalStateViaLocation, + }) } else { return runtime.NewPollerFromResumeToken[PrivateEndpointConnectionsClientDeleteResponse](options.ResumeToken, client.pl, nil) } @@ -145,7 +150,8 @@ func (client *PrivateEndpointConnectionsClient) BeginDelete(ctx context.Context, // Delete - Deletes the specified private endpoint connection associated with the container registry. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview +// +// Generated from API version 2023-01-01-preview func (client *PrivateEndpointConnectionsClient) deleteOperation(ctx context.Context, resourceGroupName string, registryName string, privateEndpointConnectionName string, options *PrivateEndpointConnectionsClientBeginDeleteOptions) (*http.Response, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, registryName, privateEndpointConnectionName, options) if err != nil { @@ -164,9 +170,6 @@ func (client *PrivateEndpointConnectionsClient) deleteOperation(ctx context.Cont // deleteCreateRequest creates the Delete request. func (client *PrivateEndpointConnectionsClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, registryName string, privateEndpointConnectionName string, options *PrivateEndpointConnectionsClientBeginDeleteOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/privateEndpointConnections/{privateEndpointConnectionName}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -185,19 +188,20 @@ func (client *PrivateEndpointConnectionsClient) deleteCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-01-preview") + reqQP.Set("api-version", "2023-01-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() return req, nil } // Get - Get the specified private endpoint connection associated with the container registry. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// privateEndpointConnectionName - The name of the private endpoint connection. -// options - PrivateEndpointConnectionsClientGetOptions contains the optional parameters for the PrivateEndpointConnectionsClient.Get -// method. +// +// Generated from API version 2023-01-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - registryName - The name of the container registry. +// - privateEndpointConnectionName - The name of the private endpoint connection. +// - options - PrivateEndpointConnectionsClientGetOptions contains the optional parameters for the PrivateEndpointConnectionsClient.Get +// method. func (client *PrivateEndpointConnectionsClient) Get(ctx context.Context, resourceGroupName string, registryName string, privateEndpointConnectionName string, options *PrivateEndpointConnectionsClientGetOptions) (PrivateEndpointConnectionsClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, registryName, privateEndpointConnectionName, options) if err != nil { @@ -216,9 +220,6 @@ func (client *PrivateEndpointConnectionsClient) Get(ctx context.Context, resourc // getCreateRequest creates the Get request. func (client *PrivateEndpointConnectionsClient) getCreateRequest(ctx context.Context, resourceGroupName string, registryName string, privateEndpointConnectionName string, options *PrivateEndpointConnectionsClientGetOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/privateEndpointConnections/{privateEndpointConnectionName}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -237,7 +238,7 @@ func (client *PrivateEndpointConnectionsClient) getCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-01-preview") + reqQP.Set("api-version", "2023-01-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -253,12 +254,12 @@ func (client *PrivateEndpointConnectionsClient) getHandleResponse(resp *http.Res } // NewListPager - List all private endpoint connections in a container registry. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// options - PrivateEndpointConnectionsClientListOptions contains the optional parameters for the PrivateEndpointConnectionsClient.List -// method. +// +// Generated from API version 2023-01-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - registryName - The name of the container registry. +// - options - PrivateEndpointConnectionsClientListOptions contains the optional parameters for the PrivateEndpointConnectionsClient.NewListPager +// method. func (client *PrivateEndpointConnectionsClient) NewListPager(resourceGroupName string, registryName string, options *PrivateEndpointConnectionsClientListOptions) *runtime.Pager[PrivateEndpointConnectionsClientListResponse] { return runtime.NewPager(runtime.PagingHandler[PrivateEndpointConnectionsClientListResponse]{ More: func(page PrivateEndpointConnectionsClientListResponse) bool { @@ -290,9 +291,6 @@ func (client *PrivateEndpointConnectionsClient) NewListPager(resourceGroupName s // listCreateRequest creates the List request. func (client *PrivateEndpointConnectionsClient) listCreateRequest(ctx context.Context, resourceGroupName string, registryName string, options *PrivateEndpointConnectionsClientListOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/privateEndpointConnections" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -307,7 +305,7 @@ func (client *PrivateEndpointConnectionsClient) listCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-01-preview") + reqQP.Set("api-version", "2023-01-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/containerregistry/armcontainerregistry/privateendpointconnections_client_example_test.go b/sdk/resourcemanager/containerregistry/armcontainerregistry/privateendpointconnections_client_example_test.go new file mode 100644 index 000000000000..03036a8c08a0 --- /dev/null +++ b/sdk/resourcemanager/containerregistry/armcontainerregistry/privateendpointconnections_client_example_test.go @@ -0,0 +1,167 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armcontainerregistry_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2023-01-01-preview/examples/PrivateEndpointConnectionList.json +func ExamplePrivateEndpointConnectionsClient_NewListPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewPrivateEndpointConnectionsClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListPager("myResourceGroup", "myRegistry", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.PrivateEndpointConnectionListResult = armcontainerregistry.PrivateEndpointConnectionListResult{ + // Value: []*armcontainerregistry.PrivateEndpointConnection{ + // { + // Name: to.Ptr("myConnection"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/privateEndpointConnections"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/privateEndpointConnections/myConnection"), + // Properties: &armcontainerregistry.PrivateEndpointConnectionProperties{ + // PrivateEndpoint: &armcontainerregistry.PrivateEndpoint{ + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/privateEndpoints/peexample01"), + // }, + // PrivateLinkServiceConnectionState: &armcontainerregistry.PrivateLinkServiceConnectionState{ + // Description: to.Ptr("Auto-Approved"), + // ActionsRequired: to.Ptr(armcontainerregistry.ActionsRequiredNone), + // Status: to.Ptr(armcontainerregistry.ConnectionStatusApproved), + // }, + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2023-01-01-preview/examples/PrivateEndpointConnectionGet.json +func ExamplePrivateEndpointConnectionsClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewPrivateEndpointConnectionsClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "myResourceGroup", "myRegistry", "myConnection", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.PrivateEndpointConnection = armcontainerregistry.PrivateEndpointConnection{ + // Name: to.Ptr("myConnection"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/privateEndpointConnections"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/privateEndpointConnections/myConnection"), + // Properties: &armcontainerregistry.PrivateEndpointConnectionProperties{ + // PrivateEndpoint: &armcontainerregistry.PrivateEndpoint{ + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/privateEndpoints/peexample01"), + // }, + // PrivateLinkServiceConnectionState: &armcontainerregistry.PrivateLinkServiceConnectionState{ + // Description: to.Ptr("Auto-Approved"), + // ActionsRequired: to.Ptr(armcontainerregistry.ActionsRequiredNone), + // Status: to.Ptr(armcontainerregistry.ConnectionStatusApproved), + // }, + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2023-01-01-preview/examples/PrivateEndpointConnectionCreateOrUpdate.json +func ExamplePrivateEndpointConnectionsClient_BeginCreateOrUpdate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewPrivateEndpointConnectionsClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreateOrUpdate(ctx, "myResourceGroup", "myRegistry", "myConnection", armcontainerregistry.PrivateEndpointConnection{ + Properties: &armcontainerregistry.PrivateEndpointConnectionProperties{ + PrivateLinkServiceConnectionState: &armcontainerregistry.PrivateLinkServiceConnectionState{ + Description: to.Ptr("Auto-Approved"), + Status: to.Ptr(armcontainerregistry.ConnectionStatusApproved), + }, + }, + }, 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.PrivateEndpointConnection = armcontainerregistry.PrivateEndpointConnection{ + // Name: to.Ptr("myConnection"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/privateEndpointConnections"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/privateEndpointConnections/myConnection"), + // Properties: &armcontainerregistry.PrivateEndpointConnectionProperties{ + // PrivateEndpoint: &armcontainerregistry.PrivateEndpoint{ + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/privateEndpoints/peexample01"), + // }, + // PrivateLinkServiceConnectionState: &armcontainerregistry.PrivateLinkServiceConnectionState{ + // Description: to.Ptr("Auto-Approved"), + // ActionsRequired: to.Ptr(armcontainerregistry.ActionsRequiredNone), + // Status: to.Ptr(armcontainerregistry.ConnectionStatusApproved), + // }, + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2023-01-01-preview/examples/PrivateEndpointConnectionDelete.json +func ExamplePrivateEndpointConnectionsClient_BeginDelete() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewPrivateEndpointConnectionsClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginDelete(ctx, "myResourceGroup", "myRegistry", "myConnection", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + _, err = poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } +} diff --git a/sdk/resourcemanager/containerregistry/armcontainerregistry/zz_generated_registries_client.go b/sdk/resourcemanager/containerregistry/armcontainerregistry/registries_client.go similarity index 82% rename from sdk/resourcemanager/containerregistry/armcontainerregistry/zz_generated_registries_client.go rename to sdk/resourcemanager/containerregistry/armcontainerregistry/registries_client.go index b5edb529a117..ac713ccc01d1 100644 --- a/sdk/resourcemanager/containerregistry/armcontainerregistry/zz_generated_registries_client.go +++ b/sdk/resourcemanager/containerregistry/armcontainerregistry/registries_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armcontainerregistry @@ -31,9 +32,9 @@ type RegistriesClient struct { } // NewRegistriesClient creates a new instance of RegistriesClient with the specified values. -// subscriptionID - The Microsoft Azure subscription ID. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewRegistriesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*RegistriesClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,10 +58,11 @@ func NewRegistriesClient(subscriptionID string, credential azcore.TokenCredentia // CheckNameAvailability - Checks whether the container registry name is available for use. The name must contain only alphanumeric // characters, be globally unique, and between 5 and 50 characters in length. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview -// registryNameCheckRequest - The object containing information for the availability request. -// options - RegistriesClientCheckNameAvailabilityOptions contains the optional parameters for the RegistriesClient.CheckNameAvailability -// method. +// +// Generated from API version 2023-01-01-preview +// - registryNameCheckRequest - The object containing information for the availability request. +// - options - RegistriesClientCheckNameAvailabilityOptions contains the optional parameters for the RegistriesClient.CheckNameAvailability +// method. func (client *RegistriesClient) CheckNameAvailability(ctx context.Context, registryNameCheckRequest RegistryNameCheckRequest, options *RegistriesClientCheckNameAvailabilityOptions) (RegistriesClientCheckNameAvailabilityResponse, error) { req, err := client.checkNameAvailabilityCreateRequest(ctx, registryNameCheckRequest, options) if err != nil { @@ -79,16 +81,13 @@ func (client *RegistriesClient) CheckNameAvailability(ctx context.Context, regis // checkNameAvailabilityCreateRequest creates the CheckNameAvailability request. func (client *RegistriesClient) checkNameAvailabilityCreateRequest(ctx context.Context, registryNameCheckRequest RegistryNameCheckRequest, options *RegistriesClientCheckNameAvailabilityOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerRegistry/checkNameAvailability" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-01-preview") + reqQP.Set("api-version", "2023-01-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, registryNameCheckRequest) @@ -105,18 +104,21 @@ func (client *RegistriesClient) checkNameAvailabilityHandleResponse(resp *http.R // BeginCreate - Creates a container registry with the specified parameters. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// registry - The parameters for creating a container registry. -// options - RegistriesClientBeginCreateOptions contains the optional parameters for the RegistriesClient.BeginCreate method. +// +// Generated from API version 2023-01-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - registryName - The name of the container registry. +// - registry - The parameters for creating a container registry. +// - options - RegistriesClientBeginCreateOptions contains the optional parameters for the RegistriesClient.BeginCreate method. func (client *RegistriesClient) BeginCreate(ctx context.Context, resourceGroupName string, registryName string, registry Registry, options *RegistriesClientBeginCreateOptions) (*runtime.Poller[RegistriesClientCreateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.create(ctx, resourceGroupName, registryName, registry, options) if err != nil { return nil, err } - return runtime.NewPoller[RegistriesClientCreateResponse](resp, client.pl, nil) + return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[RegistriesClientCreateResponse]{ + FinalStateVia: runtime.FinalStateViaAzureAsyncOp, + }) } else { return runtime.NewPollerFromResumeToken[RegistriesClientCreateResponse](options.ResumeToken, client.pl, nil) } @@ -124,7 +126,8 @@ func (client *RegistriesClient) BeginCreate(ctx context.Context, resourceGroupNa // Create - Creates a container registry with the specified parameters. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview +// +// Generated from API version 2023-01-01-preview func (client *RegistriesClient) create(ctx context.Context, resourceGroupName string, registryName string, registry Registry, options *RegistriesClientBeginCreateOptions) (*http.Response, error) { req, err := client.createCreateRequest(ctx, resourceGroupName, registryName, registry, options) if err != nil { @@ -143,9 +146,6 @@ func (client *RegistriesClient) create(ctx context.Context, resourceGroupName st // createCreateRequest creates the Create request. func (client *RegistriesClient) createCreateRequest(ctx context.Context, resourceGroupName string, registryName string, registry Registry, options *RegistriesClientBeginCreateOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -160,7 +160,7 @@ func (client *RegistriesClient) createCreateRequest(ctx context.Context, resourc return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-01-preview") + reqQP.Set("api-version", "2023-01-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, registry) @@ -168,17 +168,20 @@ func (client *RegistriesClient) createCreateRequest(ctx context.Context, resourc // BeginDelete - Deletes a container registry. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// options - RegistriesClientBeginDeleteOptions contains the optional parameters for the RegistriesClient.BeginDelete method. +// +// Generated from API version 2023-01-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - registryName - The name of the container registry. +// - options - RegistriesClientBeginDeleteOptions contains the optional parameters for the RegistriesClient.BeginDelete method. func (client *RegistriesClient) BeginDelete(ctx context.Context, resourceGroupName string, registryName string, options *RegistriesClientBeginDeleteOptions) (*runtime.Poller[RegistriesClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, registryName, options) if err != nil { return nil, err } - return runtime.NewPoller[RegistriesClientDeleteResponse](resp, client.pl, nil) + return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[RegistriesClientDeleteResponse]{ + FinalStateVia: runtime.FinalStateViaLocation, + }) } else { return runtime.NewPollerFromResumeToken[RegistriesClientDeleteResponse](options.ResumeToken, client.pl, nil) } @@ -186,7 +189,8 @@ func (client *RegistriesClient) BeginDelete(ctx context.Context, resourceGroupNa // Delete - Deletes a container registry. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview +// +// Generated from API version 2023-01-01-preview func (client *RegistriesClient) deleteOperation(ctx context.Context, resourceGroupName string, registryName string, options *RegistriesClientBeginDeleteOptions) (*http.Response, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, registryName, options) if err != nil { @@ -205,9 +209,6 @@ func (client *RegistriesClient) deleteOperation(ctx context.Context, resourceGro // deleteCreateRequest creates the Delete request. func (client *RegistriesClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, registryName string, options *RegistriesClientBeginDeleteOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -222,26 +223,29 @@ func (client *RegistriesClient) deleteCreateRequest(ctx context.Context, resourc return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-01-preview") + reqQP.Set("api-version", "2023-01-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() return req, nil } // BeginGenerateCredentials - Generate keys for a token of a specified container registry. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// generateCredentialsParameters - The parameters for generating credentials. -// options - RegistriesClientBeginGenerateCredentialsOptions contains the optional parameters for the RegistriesClient.BeginGenerateCredentials -// method. +// +// Generated from API version 2023-01-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - registryName - The name of the container registry. +// - generateCredentialsParameters - The parameters for generating credentials. +// - options - RegistriesClientBeginGenerateCredentialsOptions contains the optional parameters for the RegistriesClient.BeginGenerateCredentials +// method. func (client *RegistriesClient) BeginGenerateCredentials(ctx context.Context, resourceGroupName string, registryName string, generateCredentialsParameters GenerateCredentialsParameters, options *RegistriesClientBeginGenerateCredentialsOptions) (*runtime.Poller[RegistriesClientGenerateCredentialsResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.generateCredentials(ctx, resourceGroupName, registryName, generateCredentialsParameters, options) if err != nil { return nil, err } - return runtime.NewPoller[RegistriesClientGenerateCredentialsResponse](resp, client.pl, nil) + return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[RegistriesClientGenerateCredentialsResponse]{ + FinalStateVia: runtime.FinalStateViaLocation, + }) } else { return runtime.NewPollerFromResumeToken[RegistriesClientGenerateCredentialsResponse](options.ResumeToken, client.pl, nil) } @@ -249,7 +253,8 @@ func (client *RegistriesClient) BeginGenerateCredentials(ctx context.Context, re // GenerateCredentials - Generate keys for a token of a specified container registry. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview +// +// Generated from API version 2023-01-01-preview func (client *RegistriesClient) generateCredentials(ctx context.Context, resourceGroupName string, registryName string, generateCredentialsParameters GenerateCredentialsParameters, options *RegistriesClientBeginGenerateCredentialsOptions) (*http.Response, error) { req, err := client.generateCredentialsCreateRequest(ctx, resourceGroupName, registryName, generateCredentialsParameters, options) if err != nil { @@ -268,9 +273,6 @@ func (client *RegistriesClient) generateCredentials(ctx context.Context, resourc // generateCredentialsCreateRequest creates the GenerateCredentials request. func (client *RegistriesClient) generateCredentialsCreateRequest(ctx context.Context, resourceGroupName string, registryName string, generateCredentialsParameters GenerateCredentialsParameters, options *RegistriesClientBeginGenerateCredentialsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/generateCredentials" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -285,7 +287,7 @@ func (client *RegistriesClient) generateCredentialsCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-01-preview") + reqQP.Set("api-version", "2023-01-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, generateCredentialsParameters) @@ -293,10 +295,11 @@ func (client *RegistriesClient) generateCredentialsCreateRequest(ctx context.Con // Get - Gets the properties of the specified container registry. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// options - RegistriesClientGetOptions contains the optional parameters for the RegistriesClient.Get method. +// +// Generated from API version 2023-01-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - registryName - The name of the container registry. +// - options - RegistriesClientGetOptions contains the optional parameters for the RegistriesClient.Get method. func (client *RegistriesClient) Get(ctx context.Context, resourceGroupName string, registryName string, options *RegistriesClientGetOptions) (RegistriesClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, registryName, options) if err != nil { @@ -315,9 +318,6 @@ func (client *RegistriesClient) Get(ctx context.Context, resourceGroupName strin // getCreateRequest creates the Get request. func (client *RegistriesClient) getCreateRequest(ctx context.Context, resourceGroupName string, registryName string, options *RegistriesClientGetOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -332,7 +332,7 @@ func (client *RegistriesClient) getCreateRequest(ctx context.Context, resourceGr return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-01-preview") + reqQP.Set("api-version", "2023-01-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -349,11 +349,12 @@ func (client *RegistriesClient) getHandleResponse(resp *http.Response) (Registri // GetBuildSourceUploadURL - Get the upload location for the user to be able to upload the source. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2019-06-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// options - RegistriesClientGetBuildSourceUploadURLOptions contains the optional parameters for the RegistriesClient.GetBuildSourceUploadURL -// method. +// - resourceGroupName - The name of the resource group to which the container registry belongs. +// - registryName - The name of the container registry. +// - options - RegistriesClientGetBuildSourceUploadURLOptions contains the optional parameters for the RegistriesClient.GetBuildSourceUploadURL +// method. func (client *RegistriesClient) GetBuildSourceUploadURL(ctx context.Context, resourceGroupName string, registryName string, options *RegistriesClientGetBuildSourceUploadURLOptions) (RegistriesClientGetBuildSourceUploadURLResponse, error) { req, err := client.getBuildSourceUploadURLCreateRequest(ctx, resourceGroupName, registryName, options) if err != nil { @@ -372,9 +373,6 @@ func (client *RegistriesClient) GetBuildSourceUploadURL(ctx context.Context, res // getBuildSourceUploadURLCreateRequest creates the GetBuildSourceUploadURL request. func (client *RegistriesClient) getBuildSourceUploadURLCreateRequest(ctx context.Context, resourceGroupName string, registryName string, options *RegistriesClientGetBuildSourceUploadURLOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/listBuildSourceUploadUrl" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -406,12 +404,13 @@ func (client *RegistriesClient) getBuildSourceUploadURLHandleResponse(resp *http // GetPrivateLinkResource - Gets a private link resource by a specified group name for a container registry. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// groupName - The name of the private link resource. -// options - RegistriesClientGetPrivateLinkResourceOptions contains the optional parameters for the RegistriesClient.GetPrivateLinkResource -// method. +// +// Generated from API version 2023-01-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - registryName - The name of the container registry. +// - groupName - The name of the private link resource. +// - options - RegistriesClientGetPrivateLinkResourceOptions contains the optional parameters for the RegistriesClient.GetPrivateLinkResource +// method. func (client *RegistriesClient) GetPrivateLinkResource(ctx context.Context, resourceGroupName string, registryName string, groupName string, options *RegistriesClientGetPrivateLinkResourceOptions) (RegistriesClientGetPrivateLinkResourceResponse, error) { req, err := client.getPrivateLinkResourceCreateRequest(ctx, resourceGroupName, registryName, groupName, options) if err != nil { @@ -430,9 +429,6 @@ func (client *RegistriesClient) GetPrivateLinkResource(ctx context.Context, reso // getPrivateLinkResourceCreateRequest creates the GetPrivateLinkResource request. func (client *RegistriesClient) getPrivateLinkResourceCreateRequest(ctx context.Context, resourceGroupName string, registryName string, groupName string, options *RegistriesClientGetPrivateLinkResourceOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/privateLinkResources/{groupName}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -451,7 +447,7 @@ func (client *RegistriesClient) getPrivateLinkResourceCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-01-preview") + reqQP.Set("api-version", "2023-01-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -468,19 +464,22 @@ func (client *RegistriesClient) getPrivateLinkResourceHandleResponse(resp *http. // BeginImportImage - Copies an image to this container registry from the specified container registry. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// parameters - The parameters specifying the image to copy and the source container registry. -// options - RegistriesClientBeginImportImageOptions contains the optional parameters for the RegistriesClient.BeginImportImage -// method. +// +// Generated from API version 2023-01-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - registryName - The name of the container registry. +// - parameters - The parameters specifying the image to copy and the source container registry. +// - options - RegistriesClientBeginImportImageOptions contains the optional parameters for the RegistriesClient.BeginImportImage +// method. func (client *RegistriesClient) BeginImportImage(ctx context.Context, resourceGroupName string, registryName string, parameters ImportImageParameters, options *RegistriesClientBeginImportImageOptions) (*runtime.Poller[RegistriesClientImportImageResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.importImage(ctx, resourceGroupName, registryName, parameters, options) if err != nil { return nil, err } - return runtime.NewPoller[RegistriesClientImportImageResponse](resp, client.pl, nil) + return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[RegistriesClientImportImageResponse]{ + FinalStateVia: runtime.FinalStateViaLocation, + }) } else { return runtime.NewPollerFromResumeToken[RegistriesClientImportImageResponse](options.ResumeToken, client.pl, nil) } @@ -488,7 +487,8 @@ func (client *RegistriesClient) BeginImportImage(ctx context.Context, resourceGr // ImportImage - Copies an image to this container registry from the specified container registry. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview +// +// Generated from API version 2023-01-01-preview func (client *RegistriesClient) importImage(ctx context.Context, resourceGroupName string, registryName string, parameters ImportImageParameters, options *RegistriesClientBeginImportImageOptions) (*http.Response, error) { req, err := client.importImageCreateRequest(ctx, resourceGroupName, registryName, parameters, options) if err != nil { @@ -507,9 +507,6 @@ func (client *RegistriesClient) importImage(ctx context.Context, resourceGroupNa // importImageCreateRequest creates the ImportImage request. func (client *RegistriesClient) importImageCreateRequest(ctx context.Context, resourceGroupName string, registryName string, parameters ImportImageParameters, options *RegistriesClientBeginImportImageOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/importImage" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -524,15 +521,15 @@ func (client *RegistriesClient) importImageCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-01-preview") + reqQP.Set("api-version", "2023-01-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() return req, runtime.MarshalAsJSON(req, parameters) } // NewListPager - Lists all the container registries under the specified subscription. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview -// options - RegistriesClientListOptions contains the optional parameters for the RegistriesClient.List method. +// +// Generated from API version 2023-01-01-preview +// - options - RegistriesClientListOptions contains the optional parameters for the RegistriesClient.NewListPager method. func (client *RegistriesClient) NewListPager(options *RegistriesClientListOptions) *runtime.Pager[RegistriesClientListResponse] { return runtime.NewPager(runtime.PagingHandler[RegistriesClientListResponse]{ More: func(page RegistriesClientListResponse) bool { @@ -564,16 +561,13 @@ func (client *RegistriesClient) NewListPager(options *RegistriesClientListOption // listCreateRequest creates the List request. func (client *RegistriesClient) listCreateRequest(ctx context.Context, options *RegistriesClientListOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerRegistry/registries" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) if err != nil { return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-01-preview") + reqQP.Set("api-version", "2023-01-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -589,11 +583,11 @@ func (client *RegistriesClient) listHandleResponse(resp *http.Response) (Registr } // NewListByResourceGroupPager - Lists all the container registries under the specified resource group. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// options - RegistriesClientListByResourceGroupOptions contains the optional parameters for the RegistriesClient.ListByResourceGroup -// method. +// +// Generated from API version 2023-01-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - options - RegistriesClientListByResourceGroupOptions contains the optional parameters for the RegistriesClient.NewListByResourceGroupPager +// method. func (client *RegistriesClient) NewListByResourceGroupPager(resourceGroupName string, options *RegistriesClientListByResourceGroupOptions) *runtime.Pager[RegistriesClientListByResourceGroupResponse] { return runtime.NewPager(runtime.PagingHandler[RegistriesClientListByResourceGroupResponse]{ More: func(page RegistriesClientListByResourceGroupResponse) bool { @@ -625,9 +619,6 @@ func (client *RegistriesClient) NewListByResourceGroupPager(resourceGroupName st // listByResourceGroupCreateRequest creates the ListByResourceGroup request. func (client *RegistriesClient) listByResourceGroupCreateRequest(ctx context.Context, resourceGroupName string, options *RegistriesClientListByResourceGroupOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -638,7 +629,7 @@ func (client *RegistriesClient) listByResourceGroupCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-01-preview") + reqQP.Set("api-version", "2023-01-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -655,11 +646,12 @@ func (client *RegistriesClient) listByResourceGroupHandleResponse(resp *http.Res // ListCredentials - Lists the login credentials for the specified container registry. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// options - RegistriesClientListCredentialsOptions contains the optional parameters for the RegistriesClient.ListCredentials -// method. +// +// Generated from API version 2023-01-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - registryName - The name of the container registry. +// - options - RegistriesClientListCredentialsOptions contains the optional parameters for the RegistriesClient.ListCredentials +// method. func (client *RegistriesClient) ListCredentials(ctx context.Context, resourceGroupName string, registryName string, options *RegistriesClientListCredentialsOptions) (RegistriesClientListCredentialsResponse, error) { req, err := client.listCredentialsCreateRequest(ctx, resourceGroupName, registryName, options) if err != nil { @@ -678,9 +670,6 @@ func (client *RegistriesClient) ListCredentials(ctx context.Context, resourceGro // listCredentialsCreateRequest creates the ListCredentials request. func (client *RegistriesClient) listCredentialsCreateRequest(ctx context.Context, resourceGroupName string, registryName string, options *RegistriesClientListCredentialsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/listCredentials" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -695,7 +684,7 @@ func (client *RegistriesClient) listCredentialsCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-01-preview") + reqQP.Set("api-version", "2023-01-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -711,12 +700,12 @@ func (client *RegistriesClient) listCredentialsHandleResponse(resp *http.Respons } // NewListPrivateLinkResourcesPager - Lists the private link resources for a container registry. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// options - RegistriesClientListPrivateLinkResourcesOptions contains the optional parameters for the RegistriesClient.ListPrivateLinkResources -// method. +// +// Generated from API version 2023-01-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - registryName - The name of the container registry. +// - options - RegistriesClientListPrivateLinkResourcesOptions contains the optional parameters for the RegistriesClient.NewListPrivateLinkResourcesPager +// method. func (client *RegistriesClient) NewListPrivateLinkResourcesPager(resourceGroupName string, registryName string, options *RegistriesClientListPrivateLinkResourcesOptions) *runtime.Pager[RegistriesClientListPrivateLinkResourcesResponse] { return runtime.NewPager(runtime.PagingHandler[RegistriesClientListPrivateLinkResourcesResponse]{ More: func(page RegistriesClientListPrivateLinkResourcesResponse) bool { @@ -748,9 +737,6 @@ func (client *RegistriesClient) NewListPrivateLinkResourcesPager(resourceGroupNa // listPrivateLinkResourcesCreateRequest creates the ListPrivateLinkResources request. func (client *RegistriesClient) listPrivateLinkResourcesCreateRequest(ctx context.Context, resourceGroupName string, registryName string, options *RegistriesClientListPrivateLinkResourcesOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/privateLinkResources" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -765,7 +751,7 @@ func (client *RegistriesClient) listPrivateLinkResourcesCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-01-preview") + reqQP.Set("api-version", "2023-01-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -782,10 +768,11 @@ func (client *RegistriesClient) listPrivateLinkResourcesHandleResponse(resp *htt // ListUsages - Gets the quota usages for the specified container registry. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// options - RegistriesClientListUsagesOptions contains the optional parameters for the RegistriesClient.ListUsages method. +// +// Generated from API version 2023-01-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - registryName - The name of the container registry. +// - options - RegistriesClientListUsagesOptions contains the optional parameters for the RegistriesClient.ListUsages method. func (client *RegistriesClient) ListUsages(ctx context.Context, resourceGroupName string, registryName string, options *RegistriesClientListUsagesOptions) (RegistriesClientListUsagesResponse, error) { req, err := client.listUsagesCreateRequest(ctx, resourceGroupName, registryName, options) if err != nil { @@ -804,9 +791,6 @@ func (client *RegistriesClient) ListUsages(ctx context.Context, resourceGroupNam // listUsagesCreateRequest creates the ListUsages request. func (client *RegistriesClient) listUsagesCreateRequest(ctx context.Context, resourceGroupName string, registryName string, options *RegistriesClientListUsagesOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/listUsages" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -821,7 +805,7 @@ func (client *RegistriesClient) listUsagesCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-01-preview") + reqQP.Set("api-version", "2023-01-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -838,12 +822,13 @@ func (client *RegistriesClient) listUsagesHandleResponse(resp *http.Response) (R // RegenerateCredential - Regenerates one of the login credentials for the specified container registry. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// regenerateCredentialParameters - Specifies name of the password which should be regenerated -- password or password2. -// options - RegistriesClientRegenerateCredentialOptions contains the optional parameters for the RegistriesClient.RegenerateCredential -// method. +// +// Generated from API version 2023-01-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - registryName - The name of the container registry. +// - regenerateCredentialParameters - Specifies name of the password which should be regenerated -- password or password2. +// - options - RegistriesClientRegenerateCredentialOptions contains the optional parameters for the RegistriesClient.RegenerateCredential +// method. func (client *RegistriesClient) RegenerateCredential(ctx context.Context, resourceGroupName string, registryName string, regenerateCredentialParameters RegenerateCredentialParameters, options *RegistriesClientRegenerateCredentialOptions) (RegistriesClientRegenerateCredentialResponse, error) { req, err := client.regenerateCredentialCreateRequest(ctx, resourceGroupName, registryName, regenerateCredentialParameters, options) if err != nil { @@ -862,9 +847,6 @@ func (client *RegistriesClient) RegenerateCredential(ctx context.Context, resour // regenerateCredentialCreateRequest creates the RegenerateCredential request. func (client *RegistriesClient) regenerateCredentialCreateRequest(ctx context.Context, resourceGroupName string, registryName string, regenerateCredentialParameters RegenerateCredentialParameters, options *RegistriesClientRegenerateCredentialOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/regenerateCredential" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -879,7 +861,7 @@ func (client *RegistriesClient) regenerateCredentialCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-01-preview") + reqQP.Set("api-version", "2023-01-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, regenerateCredentialParameters) @@ -896,12 +878,13 @@ func (client *RegistriesClient) regenerateCredentialHandleResponse(resp *http.Re // BeginScheduleRun - Schedules a new run based on the request parameters and add it to the run queue. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2019-06-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// runRequest - The parameters of a run that needs to scheduled. -// options - RegistriesClientBeginScheduleRunOptions contains the optional parameters for the RegistriesClient.BeginScheduleRun -// method. +// - resourceGroupName - The name of the resource group to which the container registry belongs. +// - registryName - The name of the container registry. +// - runRequest - The parameters of a run that needs to scheduled. +// - options - RegistriesClientBeginScheduleRunOptions contains the optional parameters for the RegistriesClient.BeginScheduleRun +// method. func (client *RegistriesClient) BeginScheduleRun(ctx context.Context, resourceGroupName string, registryName string, runRequest RunRequestClassification, options *RegistriesClientBeginScheduleRunOptions) (*runtime.Poller[RegistriesClientScheduleRunResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.scheduleRun(ctx, resourceGroupName, registryName, runRequest, options) @@ -916,6 +899,7 @@ func (client *RegistriesClient) BeginScheduleRun(ctx context.Context, resourceGr // ScheduleRun - Schedules a new run based on the request parameters and add it to the run queue. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2019-06-01-preview func (client *RegistriesClient) scheduleRun(ctx context.Context, resourceGroupName string, registryName string, runRequest RunRequestClassification, options *RegistriesClientBeginScheduleRunOptions) (*http.Response, error) { req, err := client.scheduleRunCreateRequest(ctx, resourceGroupName, registryName, runRequest, options) @@ -935,9 +919,6 @@ func (client *RegistriesClient) scheduleRun(ctx context.Context, resourceGroupNa // scheduleRunCreateRequest creates the ScheduleRun request. func (client *RegistriesClient) scheduleRunCreateRequest(ctx context.Context, resourceGroupName string, registryName string, runRequest RunRequestClassification, options *RegistriesClientBeginScheduleRunOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/scheduleRun" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -960,18 +941,21 @@ func (client *RegistriesClient) scheduleRunCreateRequest(ctx context.Context, re // BeginUpdate - Updates a container registry with the specified parameters. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// registryUpdateParameters - The parameters for updating a container registry. -// options - RegistriesClientBeginUpdateOptions contains the optional parameters for the RegistriesClient.BeginUpdate method. +// +// Generated from API version 2023-01-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - registryName - The name of the container registry. +// - registryUpdateParameters - The parameters for updating a container registry. +// - options - RegistriesClientBeginUpdateOptions contains the optional parameters for the RegistriesClient.BeginUpdate method. func (client *RegistriesClient) BeginUpdate(ctx context.Context, resourceGroupName string, registryName string, registryUpdateParameters RegistryUpdateParameters, options *RegistriesClientBeginUpdateOptions) (*runtime.Poller[RegistriesClientUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.update(ctx, resourceGroupName, registryName, registryUpdateParameters, options) if err != nil { return nil, err } - return runtime.NewPoller[RegistriesClientUpdateResponse](resp, client.pl, nil) + return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[RegistriesClientUpdateResponse]{ + FinalStateVia: runtime.FinalStateViaAzureAsyncOp, + }) } else { return runtime.NewPollerFromResumeToken[RegistriesClientUpdateResponse](options.ResumeToken, client.pl, nil) } @@ -979,7 +963,8 @@ func (client *RegistriesClient) BeginUpdate(ctx context.Context, resourceGroupNa // Update - Updates a container registry with the specified parameters. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview +// +// Generated from API version 2023-01-01-preview func (client *RegistriesClient) update(ctx context.Context, resourceGroupName string, registryName string, registryUpdateParameters RegistryUpdateParameters, options *RegistriesClientBeginUpdateOptions) (*http.Response, error) { req, err := client.updateCreateRequest(ctx, resourceGroupName, registryName, registryUpdateParameters, options) if err != nil { @@ -998,9 +983,6 @@ func (client *RegistriesClient) update(ctx context.Context, resourceGroupName st // updateCreateRequest creates the Update request. func (client *RegistriesClient) updateCreateRequest(ctx context.Context, resourceGroupName string, registryName string, registryUpdateParameters RegistryUpdateParameters, options *RegistriesClientBeginUpdateOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -1015,7 +997,7 @@ func (client *RegistriesClient) updateCreateRequest(ctx context.Context, resourc return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-01-preview") + reqQP.Set("api-version", "2023-01-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, registryUpdateParameters) diff --git a/sdk/resourcemanager/containerregistry/armcontainerregistry/registries_client_example_test.go b/sdk/resourcemanager/containerregistry/armcontainerregistry/registries_client_example_test.go new file mode 100644 index 000000000000..7c53088a25ec --- /dev/null +++ b/sdk/resourcemanager/containerregistry/armcontainerregistry/registries_client_example_test.go @@ -0,0 +1,1389 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armcontainerregistry_test + +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/containerregistry/armcontainerregistry" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2023-01-01-preview/examples/ImportImageByManifestDigest.json +func ExampleRegistriesClient_BeginImportImage_importImageByManifestDigest() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewRegistriesClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginImportImage(ctx, "myResourceGroup", "myRegistry", armcontainerregistry.ImportImageParameters{ + Mode: to.Ptr(armcontainerregistry.ImportModeForce), + Source: &armcontainerregistry.ImportSource{ + ResourceID: to.Ptr("/subscriptions/10000000-0000-0000-0000-000000000000/resourceGroups/sourceResourceGroup/providers/Microsoft.ContainerRegistry/registries/sourceRegistry"), + SourceImage: to.Ptr("sourceRepository@sha256:0000000000000000000000000000000000000000000000000000000000000000"), + }, + TargetTags: []*string{ + to.Ptr("targetRepository:targetTag")}, + UntaggedTargetRepositories: []*string{ + to.Ptr("targetRepository1")}, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + _, err = poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2023-01-01-preview/examples/ImportImageByTag.json +func ExampleRegistriesClient_BeginImportImage_importImageByTag() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewRegistriesClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginImportImage(ctx, "myResourceGroup", "myRegistry", armcontainerregistry.ImportImageParameters{ + Mode: to.Ptr(armcontainerregistry.ImportModeForce), + Source: &armcontainerregistry.ImportSource{ + ResourceID: to.Ptr("/subscriptions/10000000-0000-0000-0000-000000000000/resourceGroups/sourceResourceGroup/providers/Microsoft.ContainerRegistry/registries/sourceRegistry"), + SourceImage: to.Ptr("sourceRepository:sourceTag"), + }, + TargetTags: []*string{ + to.Ptr("targetRepository:targetTag")}, + UntaggedTargetRepositories: []*string{ + to.Ptr("targetRepository1")}, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + _, err = poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2023-01-01-preview/examples/ImportImageFromPublicRegistry.json +func ExampleRegistriesClient_BeginImportImage_importImageFromPublicRegistry() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewRegistriesClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginImportImage(ctx, "myResourceGroup", "myRegistry", armcontainerregistry.ImportImageParameters{ + Mode: to.Ptr(armcontainerregistry.ImportModeForce), + Source: &armcontainerregistry.ImportSource{ + RegistryURI: to.Ptr("registry.hub.docker.com"), + SourceImage: to.Ptr("library/hello-world"), + }, + TargetTags: []*string{ + to.Ptr("targetRepository:targetTag")}, + UntaggedTargetRepositories: []*string{ + to.Ptr("targetRepository1")}, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + _, err = poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2023-01-01-preview/examples/RegistryCheckNameAvailable.json +func ExampleRegistriesClient_CheckNameAvailability_registryCheckNameAvailable() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewRegistriesClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.CheckNameAvailability(ctx, armcontainerregistry.RegistryNameCheckRequest{ + Name: to.Ptr("myRegistry"), + Type: to.Ptr("Microsoft.ContainerRegistry/registries"), + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.RegistryNameStatus = armcontainerregistry.RegistryNameStatus{ + // NameAvailable: to.Ptr(true), + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2023-01-01-preview/examples/RegistryCheckNameNotAvailable.json +func ExampleRegistriesClient_CheckNameAvailability_registryCheckNameNotAvailable() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewRegistriesClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.CheckNameAvailability(ctx, armcontainerregistry.RegistryNameCheckRequest{ + Name: to.Ptr("myRegistry"), + Type: to.Ptr("Microsoft.ContainerRegistry/registries"), + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.RegistryNameStatus = armcontainerregistry.RegistryNameStatus{ + // Message: to.Ptr("The registry myRegistry is already in use."), + // NameAvailable: to.Ptr(false), + // Reason: to.Ptr("AlreadyExists"), + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2023-01-01-preview/examples/RegistryList.json +func ExampleRegistriesClient_NewListPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewRegistriesClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListPager(nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.RegistryListResult = armcontainerregistry.RegistryListResult{ + // Value: []*armcontainerregistry.Registry{ + // { + // Name: to.Ptr("myRegistry"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry"), + // Location: to.Ptr("westus"), + // Tags: map[string]*string{ + // "key": to.Ptr("value"), + // }, + // Properties: &armcontainerregistry.RegistryProperties{ + // AdminUserEnabled: to.Ptr(false), + // AnonymousPullEnabled: to.Ptr(false), + // CreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-06-15T21:38:26.1537861Z"); return t}()), + // DataEndpointEnabled: to.Ptr(false), + // DataEndpointHostNames: []*string{ + // }, + // Encryption: &armcontainerregistry.EncryptionProperty{ + // Status: to.Ptr(armcontainerregistry.EncryptionStatusDisabled), + // }, + // LoginServer: to.Ptr("myRegistry.azurecr-test.io"), + // NetworkRuleBypassOptions: to.Ptr(armcontainerregistry.NetworkRuleBypassOptionsAzureServices), + // NetworkRuleSet: &armcontainerregistry.NetworkRuleSet{ + // DefaultAction: to.Ptr(armcontainerregistry.DefaultActionAllow), + // IPRules: []*armcontainerregistry.IPRule{ + // }, + // }, + // Policies: &armcontainerregistry.Policies{ + // ExportPolicy: &armcontainerregistry.ExportPolicy{ + // Status: to.Ptr(armcontainerregistry.ExportPolicyStatusEnabled), + // }, + // QuarantinePolicy: &armcontainerregistry.QuarantinePolicy{ + // Status: to.Ptr(armcontainerregistry.PolicyStatusDisabled), + // }, + // RetentionPolicy: &armcontainerregistry.RetentionPolicy{ + // Days: to.Ptr[int32](7), + // LastUpdatedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-06-15T21:40:12.8506835+00:00"); return t}()), + // Status: to.Ptr(armcontainerregistry.PolicyStatusDisabled), + // }, + // TrustPolicy: &armcontainerregistry.TrustPolicy{ + // Type: to.Ptr(armcontainerregistry.TrustPolicyTypeNotary), + // Status: to.Ptr(armcontainerregistry.PolicyStatusDisabled), + // }, + // }, + // PrivateEndpointConnections: []*armcontainerregistry.PrivateEndpointConnection{ + // }, + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // PublicNetworkAccess: to.Ptr(armcontainerregistry.PublicNetworkAccessEnabled), + // ZoneRedundancy: to.Ptr(armcontainerregistry.ZoneRedundancyDisabled), + // }, + // SKU: &armcontainerregistry.SKU{ + // Name: to.Ptr(armcontainerregistry.SKUNameStandard), + // Tier: to.Ptr(armcontainerregistry.SKUTierStandard), + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2023-01-01-preview/examples/RegistryListByResourceGroup.json +func ExampleRegistriesClient_NewListByResourceGroupPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewRegistriesClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListByResourceGroupPager("myResourceGroup", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.RegistryListResult = armcontainerregistry.RegistryListResult{ + // Value: []*armcontainerregistry.Registry{ + // { + // Name: to.Ptr("myRegistry"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry"), + // Location: to.Ptr("westus"), + // Tags: map[string]*string{ + // "key": to.Ptr("value"), + // }, + // Properties: &armcontainerregistry.RegistryProperties{ + // AdminUserEnabled: to.Ptr(false), + // AnonymousPullEnabled: to.Ptr(false), + // CreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-06-15T21:38:26.1537861Z"); return t}()), + // DataEndpointEnabled: to.Ptr(false), + // DataEndpointHostNames: []*string{ + // }, + // Encryption: &armcontainerregistry.EncryptionProperty{ + // Status: to.Ptr(armcontainerregistry.EncryptionStatusDisabled), + // }, + // LoginServer: to.Ptr("myRegistry.azurecr-test.io"), + // NetworkRuleBypassOptions: to.Ptr(armcontainerregistry.NetworkRuleBypassOptionsAzureServices), + // NetworkRuleSet: &armcontainerregistry.NetworkRuleSet{ + // DefaultAction: to.Ptr(armcontainerregistry.DefaultActionAllow), + // IPRules: []*armcontainerregistry.IPRule{ + // }, + // }, + // Policies: &armcontainerregistry.Policies{ + // ExportPolicy: &armcontainerregistry.ExportPolicy{ + // Status: to.Ptr(armcontainerregistry.ExportPolicyStatusEnabled), + // }, + // QuarantinePolicy: &armcontainerregistry.QuarantinePolicy{ + // Status: to.Ptr(armcontainerregistry.PolicyStatusDisabled), + // }, + // RetentionPolicy: &armcontainerregistry.RetentionPolicy{ + // Days: to.Ptr[int32](7), + // LastUpdatedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-06-15T21:40:12.8506835+00:00"); return t}()), + // Status: to.Ptr(armcontainerregistry.PolicyStatusDisabled), + // }, + // TrustPolicy: &armcontainerregistry.TrustPolicy{ + // Type: to.Ptr(armcontainerregistry.TrustPolicyTypeNotary), + // Status: to.Ptr(armcontainerregistry.PolicyStatusDisabled), + // }, + // }, + // PrivateEndpointConnections: []*armcontainerregistry.PrivateEndpointConnection{ + // }, + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // PublicNetworkAccess: to.Ptr(armcontainerregistry.PublicNetworkAccessEnabled), + // ZoneRedundancy: to.Ptr(armcontainerregistry.ZoneRedundancyDisabled), + // }, + // SKU: &armcontainerregistry.SKU{ + // Name: to.Ptr(armcontainerregistry.SKUNameStandard), + // Tier: to.Ptr(armcontainerregistry.SKUTierStandard), + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2023-01-01-preview/examples/RegistryGet.json +func ExampleRegistriesClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewRegistriesClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "myResourceGroup", "myRegistry", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.Registry = armcontainerregistry.Registry{ + // Name: to.Ptr("myRegistry"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry"), + // Location: to.Ptr("westus"), + // Tags: map[string]*string{ + // "key": to.Ptr("value"), + // }, + // Properties: &armcontainerregistry.RegistryProperties{ + // AdminUserEnabled: to.Ptr(false), + // AnonymousPullEnabled: to.Ptr(false), + // CreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-06-15T21:38:26.1537861Z"); return t}()), + // DataEndpointEnabled: to.Ptr(false), + // DataEndpointHostNames: []*string{ + // }, + // Encryption: &armcontainerregistry.EncryptionProperty{ + // Status: to.Ptr(armcontainerregistry.EncryptionStatusDisabled), + // }, + // LoginServer: to.Ptr("myRegistry.azurecr-test.io"), + // NetworkRuleBypassOptions: to.Ptr(armcontainerregistry.NetworkRuleBypassOptionsAzureServices), + // NetworkRuleSet: &armcontainerregistry.NetworkRuleSet{ + // DefaultAction: to.Ptr(armcontainerregistry.DefaultActionAllow), + // IPRules: []*armcontainerregistry.IPRule{ + // }, + // }, + // Policies: &armcontainerregistry.Policies{ + // ExportPolicy: &armcontainerregistry.ExportPolicy{ + // Status: to.Ptr(armcontainerregistry.ExportPolicyStatusEnabled), + // }, + // QuarantinePolicy: &armcontainerregistry.QuarantinePolicy{ + // Status: to.Ptr(armcontainerregistry.PolicyStatusDisabled), + // }, + // RetentionPolicy: &armcontainerregistry.RetentionPolicy{ + // Days: to.Ptr[int32](7), + // LastUpdatedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-06-15T21:40:12.8506835+00:00"); return t}()), + // Status: to.Ptr(armcontainerregistry.PolicyStatusDisabled), + // }, + // TrustPolicy: &armcontainerregistry.TrustPolicy{ + // Type: to.Ptr(armcontainerregistry.TrustPolicyTypeNotary), + // Status: to.Ptr(armcontainerregistry.PolicyStatusDisabled), + // }, + // }, + // PrivateEndpointConnections: []*armcontainerregistry.PrivateEndpointConnection{ + // }, + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // PublicNetworkAccess: to.Ptr(armcontainerregistry.PublicNetworkAccessEnabled), + // ZoneRedundancy: to.Ptr(armcontainerregistry.ZoneRedundancyDisabled), + // }, + // SKU: &armcontainerregistry.SKU{ + // Name: to.Ptr(armcontainerregistry.SKUNameStandard), + // Tier: to.Ptr(armcontainerregistry.SKUTierStandard), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2023-01-01-preview/examples/RegistryCreate.json +func ExampleRegistriesClient_BeginCreate_registryCreate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewRegistriesClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreate(ctx, "myResourceGroup", "myRegistry", armcontainerregistry.Registry{ + Location: to.Ptr("westus"), + Tags: map[string]*string{ + "key": to.Ptr("value"), + }, + Properties: &armcontainerregistry.RegistryProperties{ + AdminUserEnabled: to.Ptr(true), + }, + SKU: &armcontainerregistry.SKU{ + Name: to.Ptr(armcontainerregistry.SKUNameStandard), + }, + }, 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.Registry = armcontainerregistry.Registry{ + // Name: to.Ptr("myRegistry"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry"), + // Location: to.Ptr("westus"), + // Tags: map[string]*string{ + // "key": to.Ptr("value"), + // }, + // Properties: &armcontainerregistry.RegistryProperties{ + // AdminUserEnabled: to.Ptr(true), + // AnonymousPullEnabled: to.Ptr(false), + // CreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-06-15T21:38:26.1537861Z"); return t}()), + // DataEndpointEnabled: to.Ptr(false), + // DataEndpointHostNames: []*string{ + // }, + // Encryption: &armcontainerregistry.EncryptionProperty{ + // Status: to.Ptr(armcontainerregistry.EncryptionStatusDisabled), + // }, + // LoginServer: to.Ptr("myRegistry.azurecr-test.io"), + // NetworkRuleBypassOptions: to.Ptr(armcontainerregistry.NetworkRuleBypassOptionsAzureServices), + // NetworkRuleSet: &armcontainerregistry.NetworkRuleSet{ + // DefaultAction: to.Ptr(armcontainerregistry.DefaultActionAllow), + // IPRules: []*armcontainerregistry.IPRule{ + // }, + // }, + // Policies: &armcontainerregistry.Policies{ + // ExportPolicy: &armcontainerregistry.ExportPolicy{ + // Status: to.Ptr(armcontainerregistry.ExportPolicyStatusEnabled), + // }, + // QuarantinePolicy: &armcontainerregistry.QuarantinePolicy{ + // Status: to.Ptr(armcontainerregistry.PolicyStatusDisabled), + // }, + // RetentionPolicy: &armcontainerregistry.RetentionPolicy{ + // Days: to.Ptr[int32](7), + // LastUpdatedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-06-15T21:40:12.8506835+00:00"); return t}()), + // Status: to.Ptr(armcontainerregistry.PolicyStatusDisabled), + // }, + // TrustPolicy: &armcontainerregistry.TrustPolicy{ + // Type: to.Ptr(armcontainerregistry.TrustPolicyTypeNotary), + // Status: to.Ptr(armcontainerregistry.PolicyStatusDisabled), + // }, + // }, + // PrivateEndpointConnections: []*armcontainerregistry.PrivateEndpointConnection{ + // }, + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // PublicNetworkAccess: to.Ptr(armcontainerregistry.PublicNetworkAccessEnabled), + // ZoneRedundancy: to.Ptr(armcontainerregistry.ZoneRedundancyDisabled), + // }, + // SKU: &armcontainerregistry.SKU{ + // Name: to.Ptr(armcontainerregistry.SKUNameStandard), + // Tier: to.Ptr(armcontainerregistry.SKUTierStandard), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2023-01-01-preview/examples/RegistryCreateZoneRedundant.json +func ExampleRegistriesClient_BeginCreate_registryCreateZoneRedundant() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewRegistriesClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreate(ctx, "myResourceGroup", "myRegistry", armcontainerregistry.Registry{ + Location: to.Ptr("westus"), + Tags: map[string]*string{ + "key": to.Ptr("value"), + }, + Properties: &armcontainerregistry.RegistryProperties{ + ZoneRedundancy: to.Ptr(armcontainerregistry.ZoneRedundancyEnabled), + }, + SKU: &armcontainerregistry.SKU{ + Name: to.Ptr(armcontainerregistry.SKUNameStandard), + }, + }, 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.Registry = armcontainerregistry.Registry{ + // Name: to.Ptr("myRegistry"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry"), + // Location: to.Ptr("westus"), + // Tags: map[string]*string{ + // "key": to.Ptr("value"), + // }, + // Properties: &armcontainerregistry.RegistryProperties{ + // AdminUserEnabled: to.Ptr(false), + // AnonymousPullEnabled: to.Ptr(false), + // CreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-06-15T21:38:26.1537861Z"); return t}()), + // DataEndpointEnabled: to.Ptr(false), + // DataEndpointHostNames: []*string{ + // }, + // Encryption: &armcontainerregistry.EncryptionProperty{ + // Status: to.Ptr(armcontainerregistry.EncryptionStatusDisabled), + // }, + // LoginServer: to.Ptr("myRegistry.azurecr-test.io"), + // NetworkRuleBypassOptions: to.Ptr(armcontainerregistry.NetworkRuleBypassOptionsAzureServices), + // NetworkRuleSet: &armcontainerregistry.NetworkRuleSet{ + // DefaultAction: to.Ptr(armcontainerregistry.DefaultActionAllow), + // IPRules: []*armcontainerregistry.IPRule{ + // }, + // }, + // Policies: &armcontainerregistry.Policies{ + // ExportPolicy: &armcontainerregistry.ExportPolicy{ + // Status: to.Ptr(armcontainerregistry.ExportPolicyStatusEnabled), + // }, + // QuarantinePolicy: &armcontainerregistry.QuarantinePolicy{ + // Status: to.Ptr(armcontainerregistry.PolicyStatusDisabled), + // }, + // RetentionPolicy: &armcontainerregistry.RetentionPolicy{ + // Days: to.Ptr[int32](7), + // LastUpdatedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-06-15T21:40:12.8506835+00:00"); return t}()), + // Status: to.Ptr(armcontainerregistry.PolicyStatusDisabled), + // }, + // TrustPolicy: &armcontainerregistry.TrustPolicy{ + // Type: to.Ptr(armcontainerregistry.TrustPolicyTypeNotary), + // Status: to.Ptr(armcontainerregistry.PolicyStatusDisabled), + // }, + // }, + // PrivateEndpointConnections: []*armcontainerregistry.PrivateEndpointConnection{ + // }, + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // PublicNetworkAccess: to.Ptr(armcontainerregistry.PublicNetworkAccessEnabled), + // ZoneRedundancy: to.Ptr(armcontainerregistry.ZoneRedundancyEnabled), + // }, + // SKU: &armcontainerregistry.SKU{ + // Name: to.Ptr(armcontainerregistry.SKUNameStandard), + // Tier: to.Ptr(armcontainerregistry.SKUTierStandard), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2023-01-01-preview/examples/RegistryDelete.json +func ExampleRegistriesClient_BeginDelete() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewRegistriesClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginDelete(ctx, "myResourceGroup", "myRegistry", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + _, err = poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2023-01-01-preview/examples/RegistryUpdate.json +func ExampleRegistriesClient_BeginUpdate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewRegistriesClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginUpdate(ctx, "myResourceGroup", "myRegistry", armcontainerregistry.RegistryUpdateParameters{ + Properties: &armcontainerregistry.RegistryPropertiesUpdateParameters{ + AdminUserEnabled: to.Ptr(true), + }, + SKU: &armcontainerregistry.SKU{ + Name: to.Ptr(armcontainerregistry.SKUNameStandard), + }, + Tags: map[string]*string{ + "key": to.Ptr("value"), + }, + }, 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.Registry = armcontainerregistry.Registry{ + // Name: to.Ptr("myRegistry"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry"), + // Location: to.Ptr("westus"), + // Tags: map[string]*string{ + // "key": to.Ptr("value"), + // }, + // Properties: &armcontainerregistry.RegistryProperties{ + // AdminUserEnabled: to.Ptr(true), + // AnonymousPullEnabled: to.Ptr(false), + // CreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-06-15T21:38:26.1537861Z"); return t}()), + // DataEndpointEnabled: to.Ptr(false), + // DataEndpointHostNames: []*string{ + // }, + // Encryption: &armcontainerregistry.EncryptionProperty{ + // Status: to.Ptr(armcontainerregistry.EncryptionStatusDisabled), + // }, + // LoginServer: to.Ptr("myRegistry.azurecr-test.io"), + // NetworkRuleBypassOptions: to.Ptr(armcontainerregistry.NetworkRuleBypassOptionsAzureServices), + // NetworkRuleSet: &armcontainerregistry.NetworkRuleSet{ + // DefaultAction: to.Ptr(armcontainerregistry.DefaultActionAllow), + // IPRules: []*armcontainerregistry.IPRule{ + // }, + // }, + // Policies: &armcontainerregistry.Policies{ + // ExportPolicy: &armcontainerregistry.ExportPolicy{ + // Status: to.Ptr(armcontainerregistry.ExportPolicyStatusEnabled), + // }, + // QuarantinePolicy: &armcontainerregistry.QuarantinePolicy{ + // Status: to.Ptr(armcontainerregistry.PolicyStatusDisabled), + // }, + // RetentionPolicy: &armcontainerregistry.RetentionPolicy{ + // Days: to.Ptr[int32](7), + // LastUpdatedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-06-15T21:40:12.8506835+00:00"); return t}()), + // Status: to.Ptr(armcontainerregistry.PolicyStatusDisabled), + // }, + // TrustPolicy: &armcontainerregistry.TrustPolicy{ + // Type: to.Ptr(armcontainerregistry.TrustPolicyTypeNotary), + // Status: to.Ptr(armcontainerregistry.PolicyStatusDisabled), + // }, + // }, + // PrivateEndpointConnections: []*armcontainerregistry.PrivateEndpointConnection{ + // }, + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // PublicNetworkAccess: to.Ptr(armcontainerregistry.PublicNetworkAccessEnabled), + // ZoneRedundancy: to.Ptr(armcontainerregistry.ZoneRedundancyDisabled), + // }, + // SKU: &armcontainerregistry.SKU{ + // Name: to.Ptr(armcontainerregistry.SKUNameStandard), + // Tier: to.Ptr(armcontainerregistry.SKUTierStandard), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2023-01-01-preview/examples/RegistryListUsages.json +func ExampleRegistriesClient_ListUsages() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewRegistriesClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.ListUsages(ctx, "myResourceGroup", "myRegistry", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.RegistryUsageListResult = armcontainerregistry.RegistryUsageListResult{ + // Value: []*armcontainerregistry.RegistryUsage{ + // { + // Name: to.Ptr("Size"), + // CurrentValue: to.Ptr[int64](12345678), + // Limit: to.Ptr[int64](107374182400), + // Unit: to.Ptr(armcontainerregistry.RegistryUsageUnitBytes), + // }, + // { + // Name: to.Ptr("Webhooks"), + // CurrentValue: to.Ptr[int64](2), + // Limit: to.Ptr[int64](10), + // Unit: to.Ptr(armcontainerregistry.RegistryUsageUnitCount), + // }}, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2023-01-01-preview/examples/RegistryListPrivateLinkResources.json +func ExampleRegistriesClient_NewListPrivateLinkResourcesPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewRegistriesClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListPrivateLinkResourcesPager("myResourceGroup", "myRegistry", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.PrivateLinkResourceListResult = armcontainerregistry.PrivateLinkResourceListResult{ + // Value: []*armcontainerregistry.PrivateLinkResource{ + // { + // Name: to.Ptr("registry"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/privateLinkResources"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/privateLinkResources/registry"), + // Properties: &armcontainerregistry.PrivateLinkResourceProperties{ + // GroupID: to.Ptr("registry"), + // RequiredMembers: []*string{ + // to.Ptr("registry"), + // to.Ptr("registry_data_myregion")}, + // RequiredZoneNames: []*string{ + // to.Ptr("privatelink.azurecr.io")}, + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2023-01-01-preview/examples/RegistryGetPrivateLinkResource.json +func ExampleRegistriesClient_GetPrivateLinkResource() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewRegistriesClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.GetPrivateLinkResource(ctx, "myResourceGroup", "myRegistry", "registry", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.PrivateLinkResource = armcontainerregistry.PrivateLinkResource{ + // Name: to.Ptr("registry"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/privateLinkResources"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/privateLinkResources/registry"), + // Properties: &armcontainerregistry.PrivateLinkResourceProperties{ + // GroupID: to.Ptr("registry"), + // RequiredMembers: []*string{ + // to.Ptr("registry"), + // to.Ptr("registry_data_myregion")}, + // RequiredZoneNames: []*string{ + // to.Ptr("privatelink.azurecr.io")}, + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2023-01-01-preview/examples/RegistryListCredentials.json +func ExampleRegistriesClient_ListCredentials() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewRegistriesClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.ListCredentials(ctx, "myResourceGroup", "myRegistry", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.RegistryListCredentialsResult = armcontainerregistry.RegistryListCredentialsResult{ + // Passwords: []*armcontainerregistry.RegistryPassword{ + // { + // Name: to.Ptr(armcontainerregistry.PasswordNamePassword), + // Value: to.Ptr("00000000000000000000000000000000"), + // }, + // { + // Name: to.Ptr(armcontainerregistry.PasswordNamePassword2), + // Value: to.Ptr("00000000000000000000000000000000"), + // }}, + // Username: to.Ptr("myRegistry"), + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2023-01-01-preview/examples/RegistryRegenerateCredential.json +func ExampleRegistriesClient_RegenerateCredential() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewRegistriesClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.RegenerateCredential(ctx, "myResourceGroup", "myRegistry", armcontainerregistry.RegenerateCredentialParameters{ + Name: to.Ptr(armcontainerregistry.PasswordNamePassword), + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.RegistryListCredentialsResult = armcontainerregistry.RegistryListCredentialsResult{ + // Passwords: []*armcontainerregistry.RegistryPassword{ + // { + // Name: to.Ptr(armcontainerregistry.PasswordNamePassword), + // Value: to.Ptr("00000000000000000000000000000000"), + // }, + // { + // Name: to.Ptr(armcontainerregistry.PasswordNamePassword2), + // Value: to.Ptr("00000000000000000000000000000000"), + // }}, + // Username: to.Ptr("myRegistry"), + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2023-01-01-preview/examples/RegistryGenerateCredentials.json +func ExampleRegistriesClient_BeginGenerateCredentials() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewRegistriesClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginGenerateCredentials(ctx, "myResourceGroup", "myRegistry", armcontainerregistry.GenerateCredentialsParameters{ + Expiry: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-12-31T15:59:59.0707808Z"); return t }()), + TokenID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tokens/myToken"), + }, 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.GenerateCredentialsResult = armcontainerregistry.GenerateCredentialsResult{ + // Passwords: []*armcontainerregistry.TokenPassword{ + // { + // Name: to.Ptr(armcontainerregistry.TokenPasswordNamePassword1), + // Expiry: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-12-31T15:59:59.0707808Z"); return t}()), + // Value: to.Ptr("00000000000000000000000000000000"), + // }, + // { + // Name: to.Ptr(armcontainerregistry.TokenPasswordNamePassword2), + // Expiry: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-12-31T15:59:59.0707808Z"); return t}()), + // Value: to.Ptr("00000000000000000000000000000000"), + // }}, + // Username: to.Ptr("myToken"), + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/RegistriesScheduleRun.json +func ExampleRegistriesClient_BeginScheduleRun_registriesScheduleRun() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewRegistriesClient("4385cf00-2d3a-425a-832f-f4285b1c9dce", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginScheduleRun(ctx, "myResourceGroup", "myRegistry", &armcontainerregistry.DockerBuildRequest{ + Type: to.Ptr("DockerBuildRequest"), + IsArchiveEnabled: to.Ptr(true), + AgentConfiguration: &armcontainerregistry.AgentProperties{ + CPU: to.Ptr[int32](2), + }, + Arguments: []*armcontainerregistry.Argument{ + { + Name: to.Ptr("mytestargument"), + IsSecret: to.Ptr(false), + Value: to.Ptr("mytestvalue"), + }, + { + Name: to.Ptr("mysecrettestargument"), + IsSecret: to.Ptr(true), + Value: to.Ptr("mysecrettestvalue"), + }}, + DockerFilePath: to.Ptr("DockerFile"), + ImageNames: []*string{ + to.Ptr("azurerest:testtag")}, + IsPushEnabled: to.Ptr(true), + NoCache: to.Ptr(true), + Platform: &armcontainerregistry.PlatformProperties{ + Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), + OS: to.Ptr(armcontainerregistry.OSLinux), + }, + SourceLocation: to.Ptr("https://myaccount.blob.core.windows.net/sascontainer/source.zip?sv=2015-04-05&st=2015-04-29T22%3A18%3A26Z&se=2015-04-30T02%3A23%3A26Z&sr=b&sp=rw&sip=168.1.5.60-168.1.5.70&spr=https&sig=Z%2FRHIX5Xcg0Mq2rqI3OlWTjEg2tYkboXr1P9ZUXDtkk%3D"), + }, 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.Run = armcontainerregistry.Run{ + // Name: to.Ptr("0accec26-d6de-4757-8e74-d080f38eaaab"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/run"), + // ID: to.Ptr("/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/runs/0accec26-d6de-4757-8e74-d080f38eaaab"), + // Properties: &armcontainerregistry.RunProperties{ + // LastUpdatedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-01-25T05:13:51.617Z"); return t}()), + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // RunID: to.Ptr("0accec26-d6de-4757-8e74-d080f38eaaab"), + // Status: to.Ptr(armcontainerregistry.RunStatusSucceeded), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/RegistriesScheduleRun_EncodedTaskRun.json +func ExampleRegistriesClient_BeginScheduleRun_registriesScheduleRunEncodedTaskRun() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewRegistriesClient("4385cf00-2d3a-425a-832f-f4285b1c9dce", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginScheduleRun(ctx, "myResourceGroup", "myRegistry", &armcontainerregistry.EncodedTaskRunRequest{ + Type: to.Ptr("EncodedTaskRunRequest"), + AgentConfiguration: &armcontainerregistry.AgentProperties{ + CPU: to.Ptr[int32](2), + }, + EncodedTaskContent: to.Ptr("c3RlcHM6Cnt7IGlmIFZhbHVlcy5lbnZpcm9ubWVudCA9PSAncHJvZCcgfX0KICAtIHJ1bjogcHJvZCBzZXR1cAp7eyBlbHNlIGlmIFZhbHVlcy5lbnZpcm9ubWVudCA9PSAnc3RhZ2luZycgfX0KICAtIHJ1bjogc3RhZ2luZyBzZXR1cAp7eyBlbHNlIH19CiAgLSBydW46IGRlZmF1bHQgc2V0dXAKe3sgZW5kIH19CgogIC0gcnVuOiBidWlsZCAtdCBGYW5jeVRoaW5nOnt7LlZhbHVlcy5lbnZpcm9ubWVudH19LXt7LlZhbHVlcy52ZXJzaW9ufX0gLgoKcHVzaDogWydGYW5jeVRoaW5nOnt7LlZhbHVlcy5lbnZpcm9ubWVudH19LXt7LlZhbHVlcy52ZXJzaW9ufX0nXQ=="), + EncodedValuesContent: to.Ptr("ZW52aXJvbm1lbnQ6IHByb2QKdmVyc2lvbjogMQ=="), + Platform: &armcontainerregistry.PlatformProperties{ + OS: to.Ptr(armcontainerregistry.OSLinux), + }, + Values: []*armcontainerregistry.SetValue{ + { + Name: to.Ptr("mytestargument"), + IsSecret: to.Ptr(false), + Value: to.Ptr("mytestvalue"), + }, + { + Name: to.Ptr("mysecrettestargument"), + IsSecret: to.Ptr(true), + Value: to.Ptr("mysecrettestvalue"), + }}, + }, 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.Run = armcontainerregistry.Run{ + // Name: to.Ptr("0accec26-d6de-4757-8e74-d080f38eaaab"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/run"), + // ID: to.Ptr("/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/runs/0accec26-d6de-4757-8e74-d080f38eaaab"), + // Properties: &armcontainerregistry.RunProperties{ + // LastUpdatedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-01-25T05:13:51.617Z"); return t}()), + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // RunID: to.Ptr("0accec26-d6de-4757-8e74-d080f38eaaab"), + // Status: to.Ptr(armcontainerregistry.RunStatusSucceeded), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/RegistriesScheduleRun_FileTaskRun.json +func ExampleRegistriesClient_BeginScheduleRun_registriesScheduleRunFileTaskRun() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewRegistriesClient("4385cf00-2d3a-425a-832f-f4285b1c9dce", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginScheduleRun(ctx, "myResourceGroup", "myRegistry", &armcontainerregistry.FileTaskRunRequest{ + Type: to.Ptr("FileTaskRunRequest"), + AgentConfiguration: &armcontainerregistry.AgentProperties{ + CPU: to.Ptr[int32](2), + }, + Platform: &armcontainerregistry.PlatformProperties{ + OS: to.Ptr(armcontainerregistry.OSLinux), + }, + SourceLocation: to.Ptr("https://myaccount.blob.core.windows.net/sascontainer/source.zip?sv=2015-04-05&st=2015-04-29T22%3A18%3A26Z&se=2015-04-30T02%3A23%3A26Z&sr=b&sp=rw&sip=168.1.5.60-168.1.5.70&spr=https&sig=Z%2FRHIX5Xcg0Mq2rqI3OlWTjEg2tYkboXr1P9ZUXDtkk%3D"), + TaskFilePath: to.Ptr("acb.yaml"), + Values: []*armcontainerregistry.SetValue{ + { + Name: to.Ptr("mytestargument"), + IsSecret: to.Ptr(false), + Value: to.Ptr("mytestvalue"), + }, + { + Name: to.Ptr("mysecrettestargument"), + IsSecret: to.Ptr(true), + Value: to.Ptr("mysecrettestvalue"), + }}, + ValuesFilePath: to.Ptr("prod-values.yaml"), + }, 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.Run = armcontainerregistry.Run{ + // Name: to.Ptr("0accec26-d6de-4757-8e74-d080f38eaaab"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/run"), + // ID: to.Ptr("/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/runs/0accec26-d6de-4757-8e74-d080f38eaaab"), + // Properties: &armcontainerregistry.RunProperties{ + // LastUpdatedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-01-25T05:13:51.617Z"); return t}()), + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // RunID: to.Ptr("0accec26-d6de-4757-8e74-d080f38eaaab"), + // Status: to.Ptr(armcontainerregistry.RunStatusSucceeded), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/RegistriesScheduleRun_Task.json +func ExampleRegistriesClient_BeginScheduleRun_registriesScheduleRunTask() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewRegistriesClient("4385cf00-2d3a-425a-832f-f4285b1c9dce", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginScheduleRun(ctx, "myResourceGroup", "myRegistry", &armcontainerregistry.TaskRunRequest{ + Type: to.Ptr("TaskRunRequest"), + OverrideTaskStepProperties: &armcontainerregistry.OverrideTaskStepProperties{ + Arguments: []*armcontainerregistry.Argument{ + { + Name: to.Ptr("mytestargument"), + IsSecret: to.Ptr(false), + Value: to.Ptr("mytestvalue"), + }, + { + Name: to.Ptr("mysecrettestargument"), + IsSecret: to.Ptr(true), + Value: to.Ptr("mysecrettestvalue"), + }}, + File: to.Ptr("overriddenDockerfile"), + Target: to.Ptr("build"), + UpdateTriggerToken: to.Ptr("aGVsbG8gd29ybGQ="), + Values: []*armcontainerregistry.SetValue{ + { + Name: to.Ptr("mytestname"), + IsSecret: to.Ptr(false), + Value: to.Ptr("mytestvalue"), + }, + { + Name: to.Ptr("mysecrettestname"), + IsSecret: to.Ptr(true), + Value: to.Ptr("mysecrettestvalue"), + }}, + }, + TaskID: to.Ptr("myTask"), + }, 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.Run = armcontainerregistry.Run{ + // Name: to.Ptr("0accec26-d6de-4757-8e74-d080f38eaaab"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/run"), + // ID: to.Ptr("/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/runs/0accec26-d6de-4757-8e74-d080f38eaaab"), + // Properties: &armcontainerregistry.RunProperties{ + // LastUpdatedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-01-25T05:13:51.617Z"); return t}()), + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // RunID: to.Ptr("0accec26-d6de-4757-8e74-d080f38eaaab"), + // Status: to.Ptr(armcontainerregistry.RunStatusSucceeded), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/RegistriesScheduleRun_FileTask_WithCustomCredentials.json +func ExampleRegistriesClient_BeginScheduleRun_registriesScheduleRunTaskWithCustomCredentials() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewRegistriesClient("4385cf00-2d3a-425a-832f-f4285b1c9dce", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginScheduleRun(ctx, "myResourceGroup", "myRegistry", &armcontainerregistry.FileTaskRunRequest{ + Type: to.Ptr("FileTaskRunRequest"), + Credentials: &armcontainerregistry.Credentials{ + CustomRegistries: map[string]*armcontainerregistry.CustomRegistryCredentials{ + "myregistry.azurecr.io": { + Password: &armcontainerregistry.SecretObject{ + Type: to.Ptr(armcontainerregistry.SecretObjectTypeOpaque), + Value: to.Ptr("***"), + }, + UserName: &armcontainerregistry.SecretObject{ + Type: to.Ptr(armcontainerregistry.SecretObjectTypeOpaque), + Value: to.Ptr("reg1"), + }, + }, + }, + SourceRegistry: &armcontainerregistry.SourceRegistryCredentials{ + LoginMode: to.Ptr(armcontainerregistry.SourceRegistryLoginModeDefault), + }, + }, + Platform: &armcontainerregistry.PlatformProperties{ + OS: to.Ptr(armcontainerregistry.OSLinux), + }, + TaskFilePath: to.Ptr("acb.yaml"), + Values: []*armcontainerregistry.SetValue{ + { + Name: to.Ptr("mytestargument"), + IsSecret: to.Ptr(false), + Value: to.Ptr("mytestvalue"), + }, + { + Name: to.Ptr("mysecrettestargument"), + IsSecret: to.Ptr(true), + Value: to.Ptr("mysecrettestvalue"), + }}, + }, 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.Run = armcontainerregistry.Run{ + // Name: to.Ptr("0accec26-d6de-4757-8e74-d080f38eaaab"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/run"), + // ID: to.Ptr("/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/runs/0accec26-d6de-4757-8e74-d080f38eaaab"), + // Properties: &armcontainerregistry.RunProperties{ + // LastUpdatedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-01-25T05:13:51.617Z"); return t}()), + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // RunID: to.Ptr("0accec26-d6de-4757-8e74-d080f38eaaab"), + // Status: to.Ptr(armcontainerregistry.RunStatusSucceeded), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/RegistriesScheduleRun_WithCustomCredentials.json +func ExampleRegistriesClient_BeginScheduleRun_registriesScheduleRunWithCustomCredentials() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewRegistriesClient("4385cf00-2d3a-425a-832f-f4285b1c9dce", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginScheduleRun(ctx, "myResourceGroup", "myRegistry", &armcontainerregistry.DockerBuildRequest{ + Type: to.Ptr("DockerBuildRequest"), + IsArchiveEnabled: to.Ptr(true), + AgentConfiguration: &armcontainerregistry.AgentProperties{ + CPU: to.Ptr[int32](2), + }, + Arguments: []*armcontainerregistry.Argument{ + { + Name: to.Ptr("mytestargument"), + IsSecret: to.Ptr(false), + Value: to.Ptr("mytestvalue"), + }, + { + Name: to.Ptr("mysecrettestargument"), + IsSecret: to.Ptr(true), + Value: to.Ptr("mysecrettestvalue"), + }}, + Credentials: &armcontainerregistry.Credentials{ + CustomRegistries: map[string]*armcontainerregistry.CustomRegistryCredentials{ + "myregistry.azurecr.io": { + Password: &armcontainerregistry.SecretObject{ + Type: to.Ptr(armcontainerregistry.SecretObjectTypeOpaque), + Value: to.Ptr("***"), + }, + UserName: &armcontainerregistry.SecretObject{ + Type: to.Ptr(armcontainerregistry.SecretObjectTypeOpaque), + Value: to.Ptr("reg1"), + }, + }, + "myregistry2.azurecr.io": { + Password: &armcontainerregistry.SecretObject{ + Type: to.Ptr(armcontainerregistry.SecretObjectTypeOpaque), + Value: to.Ptr("***"), + }, + UserName: &armcontainerregistry.SecretObject{ + Type: to.Ptr(armcontainerregistry.SecretObjectTypeOpaque), + Value: to.Ptr("reg2"), + }, + }, + }, + SourceRegistry: &armcontainerregistry.SourceRegistryCredentials{ + LoginMode: to.Ptr(armcontainerregistry.SourceRegistryLoginModeDefault), + }, + }, + DockerFilePath: to.Ptr("DockerFile"), + ImageNames: []*string{ + to.Ptr("azurerest:testtag")}, + IsPushEnabled: to.Ptr(true), + NoCache: to.Ptr(true), + Platform: &armcontainerregistry.PlatformProperties{ + Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), + OS: to.Ptr(armcontainerregistry.OSLinux), + }, + SourceLocation: to.Ptr("https://myaccount.blob.core.windows.net/sascontainer/source.zip?sv=2015-04-05&st=2015-04-29T22%3A18%3A26Z&se=2015-04-30T02%3A23%3A26Z&sr=b&sp=rw&sip=168.1.5.60-168.1.5.70&spr=https&sig=Z%2FRHIX5Xcg0Mq2rqI3OlWTjEg2tYkboXr1P9ZUXDtkk%3D"), + Target: to.Ptr("stage1"), + }, 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.Run = armcontainerregistry.Run{ + // Name: to.Ptr("0accec26-d6de-4757-8e74-d080f38eaaab"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/run"), + // ID: to.Ptr("/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/runs/0accec26-d6de-4757-8e74-d080f38eaaab"), + // Properties: &armcontainerregistry.RunProperties{ + // LastUpdatedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-01-25T05:13:51.617Z"); return t}()), + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // RunID: to.Ptr("0accec26-d6de-4757-8e74-d080f38eaaab"), + // Status: to.Ptr(armcontainerregistry.RunStatusSucceeded), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/RegistriesScheduleRun_WithLogTemplate.json +func ExampleRegistriesClient_BeginScheduleRun_registriesScheduleRunWithLogTemplate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewRegistriesClient("4385cf00-2d3a-425a-832f-f4285b1c9dce", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginScheduleRun(ctx, "myResourceGroup", "myRegistry", &armcontainerregistry.DockerBuildRequest{ + Type: to.Ptr("DockerBuildRequest"), + IsArchiveEnabled: to.Ptr(true), + LogTemplate: to.Ptr("acr/tasks:{{.Run.OS}}"), + AgentConfiguration: &armcontainerregistry.AgentProperties{ + CPU: to.Ptr[int32](2), + }, + Arguments: []*armcontainerregistry.Argument{ + { + Name: to.Ptr("mytestargument"), + IsSecret: to.Ptr(false), + Value: to.Ptr("mytestvalue"), + }, + { + Name: to.Ptr("mysecrettestargument"), + IsSecret: to.Ptr(true), + Value: to.Ptr("mysecrettestvalue"), + }}, + DockerFilePath: to.Ptr("DockerFile"), + ImageNames: []*string{ + to.Ptr("azurerest:testtag")}, + IsPushEnabled: to.Ptr(true), + NoCache: to.Ptr(true), + Platform: &armcontainerregistry.PlatformProperties{ + Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), + OS: to.Ptr(armcontainerregistry.OSLinux), + }, + SourceLocation: to.Ptr("https://myaccount.blob.core.windows.net/sascontainer/source.zip?sv=2015-04-05&st=2015-04-29T22%3A18%3A26Z&se=2015-04-30T02%3A23%3A26Z&sr=b&sp=rw&sip=168.1.5.60-168.1.5.70&spr=https&sig=Z%2FRHIX5Xcg0Mq2rqI3OlWTjEg2tYkboXr1P9ZUXDtkk%3D"), + }, 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.Run = armcontainerregistry.Run{ + // Name: to.Ptr("0accec26-d6de-4757-8e74-d080f38eaaab"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/run"), + // ID: to.Ptr("/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/runs/0accec26-d6de-4757-8e74-d080f38eaaab"), + // Properties: &armcontainerregistry.RunProperties{ + // LastUpdatedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-01-25T05:13:51.617Z"); return t}()), + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // RunID: to.Ptr("0accec26-d6de-4757-8e74-d080f38eaaab"), + // Status: to.Ptr(armcontainerregistry.RunStatusSucceeded), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/RegistriesGetBuildSourceUploadUrl.json +func ExampleRegistriesClient_GetBuildSourceUploadURL() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewRegistriesClient("4385cf00-2d3a-425a-832f-f4285b1c9dce", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.GetBuildSourceUploadURL(ctx, "myResourceGroup", "myRegistry", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.SourceUploadDefinition = armcontainerregistry.SourceUploadDefinition{ + // RelativePath: to.Ptr("source/201802130000/b52f12d8-c3d6-4d75-9107-220f0bfc681d.tar.gz"), + // UploadURL: to.Ptr("https://registrystorageaccount.blob.core.windows.net/registrycontainer/source/201802130000/b52f12d8-c3d6-4d75-9107-220f0bfc681d.tar.gz?sv=2015-04-05&st=2015-04-29T22%3A18%3A26Z&se=2015-04-30T02%3A23%3A26Z&sr=b&sp=rw&sip=168.1.5.60-168.1.5.70&spr=https&sig=Z%2FRHIX5Xcg0Mq2rqI3OlWTjEg2tYkboXr1P9ZUXDtkk%3D"), + // } +} diff --git a/sdk/resourcemanager/containerregistry/armcontainerregistry/zz_generated_replications_client.go b/sdk/resourcemanager/containerregistry/armcontainerregistry/replications_client.go similarity index 82% rename from sdk/resourcemanager/containerregistry/armcontainerregistry/zz_generated_replications_client.go rename to sdk/resourcemanager/containerregistry/armcontainerregistry/replications_client.go index 1f4292d95330..7cb117dde9b3 100644 --- a/sdk/resourcemanager/containerregistry/armcontainerregistry/zz_generated_replications_client.go +++ b/sdk/resourcemanager/containerregistry/armcontainerregistry/replications_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armcontainerregistry @@ -31,9 +32,9 @@ type ReplicationsClient struct { } // NewReplicationsClient creates a new instance of ReplicationsClient with the specified values. -// subscriptionID - The Microsoft Azure subscription ID. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewReplicationsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ReplicationsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,20 +57,23 @@ func NewReplicationsClient(subscriptionID string, credential azcore.TokenCredent // BeginCreate - Creates a replication for a container registry with the specified parameters. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// replicationName - The name of the replication. -// replication - The parameters for creating a replication. -// options - ReplicationsClientBeginCreateOptions contains the optional parameters for the ReplicationsClient.BeginCreate -// method. +// +// Generated from API version 2023-01-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - registryName - The name of the container registry. +// - replicationName - The name of the replication. +// - replication - The parameters for creating a replication. +// - options - ReplicationsClientBeginCreateOptions contains the optional parameters for the ReplicationsClient.BeginCreate +// method. func (client *ReplicationsClient) BeginCreate(ctx context.Context, resourceGroupName string, registryName string, replicationName string, replication Replication, options *ReplicationsClientBeginCreateOptions) (*runtime.Poller[ReplicationsClientCreateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.create(ctx, resourceGroupName, registryName, replicationName, replication, options) if err != nil { return nil, err } - return runtime.NewPoller[ReplicationsClientCreateResponse](resp, client.pl, nil) + return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[ReplicationsClientCreateResponse]{ + FinalStateVia: runtime.FinalStateViaAzureAsyncOp, + }) } else { return runtime.NewPollerFromResumeToken[ReplicationsClientCreateResponse](options.ResumeToken, client.pl, nil) } @@ -77,7 +81,8 @@ func (client *ReplicationsClient) BeginCreate(ctx context.Context, resourceGroup // Create - Creates a replication for a container registry with the specified parameters. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview +// +// Generated from API version 2023-01-01-preview func (client *ReplicationsClient) create(ctx context.Context, resourceGroupName string, registryName string, replicationName string, replication Replication, options *ReplicationsClientBeginCreateOptions) (*http.Response, error) { req, err := client.createCreateRequest(ctx, resourceGroupName, registryName, replicationName, replication, options) if err != nil { @@ -96,9 +101,6 @@ func (client *ReplicationsClient) create(ctx context.Context, resourceGroupName // createCreateRequest creates the Create request. func (client *ReplicationsClient) createCreateRequest(ctx context.Context, resourceGroupName string, registryName string, replicationName string, replication Replication, options *ReplicationsClientBeginCreateOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/replications/{replicationName}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -117,7 +119,7 @@ func (client *ReplicationsClient) createCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-01-preview") + reqQP.Set("api-version", "2023-01-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, replication) @@ -125,19 +127,22 @@ func (client *ReplicationsClient) createCreateRequest(ctx context.Context, resou // BeginDelete - Deletes a replication from a container registry. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// replicationName - The name of the replication. -// options - ReplicationsClientBeginDeleteOptions contains the optional parameters for the ReplicationsClient.BeginDelete -// method. +// +// Generated from API version 2023-01-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - registryName - The name of the container registry. +// - replicationName - The name of the replication. +// - options - ReplicationsClientBeginDeleteOptions contains the optional parameters for the ReplicationsClient.BeginDelete +// method. func (client *ReplicationsClient) BeginDelete(ctx context.Context, resourceGroupName string, registryName string, replicationName string, options *ReplicationsClientBeginDeleteOptions) (*runtime.Poller[ReplicationsClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, registryName, replicationName, options) if err != nil { return nil, err } - return runtime.NewPoller[ReplicationsClientDeleteResponse](resp, client.pl, nil) + return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[ReplicationsClientDeleteResponse]{ + FinalStateVia: runtime.FinalStateViaLocation, + }) } else { return runtime.NewPollerFromResumeToken[ReplicationsClientDeleteResponse](options.ResumeToken, client.pl, nil) } @@ -145,7 +150,8 @@ func (client *ReplicationsClient) BeginDelete(ctx context.Context, resourceGroup // Delete - Deletes a replication from a container registry. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview +// +// Generated from API version 2023-01-01-preview func (client *ReplicationsClient) deleteOperation(ctx context.Context, resourceGroupName string, registryName string, replicationName string, options *ReplicationsClientBeginDeleteOptions) (*http.Response, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, registryName, replicationName, options) if err != nil { @@ -164,9 +170,6 @@ func (client *ReplicationsClient) deleteOperation(ctx context.Context, resourceG // deleteCreateRequest creates the Delete request. func (client *ReplicationsClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, registryName string, replicationName string, options *ReplicationsClientBeginDeleteOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/replications/{replicationName}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -185,18 +188,19 @@ func (client *ReplicationsClient) deleteCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-01-preview") + reqQP.Set("api-version", "2023-01-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() return req, nil } // Get - Gets the properties of the specified replication. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// replicationName - The name of the replication. -// options - ReplicationsClientGetOptions contains the optional parameters for the ReplicationsClient.Get method. +// +// Generated from API version 2023-01-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - registryName - The name of the container registry. +// - replicationName - The name of the replication. +// - options - ReplicationsClientGetOptions contains the optional parameters for the ReplicationsClient.Get method. func (client *ReplicationsClient) Get(ctx context.Context, resourceGroupName string, registryName string, replicationName string, options *ReplicationsClientGetOptions) (ReplicationsClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, registryName, replicationName, options) if err != nil { @@ -215,9 +219,6 @@ func (client *ReplicationsClient) Get(ctx context.Context, resourceGroupName str // getCreateRequest creates the Get request. func (client *ReplicationsClient) getCreateRequest(ctx context.Context, resourceGroupName string, registryName string, replicationName string, options *ReplicationsClientGetOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/replications/{replicationName}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -236,7 +237,7 @@ func (client *ReplicationsClient) getCreateRequest(ctx context.Context, resource return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-01-preview") + reqQP.Set("api-version", "2023-01-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -252,11 +253,11 @@ func (client *ReplicationsClient) getHandleResponse(resp *http.Response) (Replic } // NewListPager - Lists all the replications for the specified container registry. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// options - ReplicationsClientListOptions contains the optional parameters for the ReplicationsClient.List method. +// +// Generated from API version 2023-01-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - registryName - The name of the container registry. +// - options - ReplicationsClientListOptions contains the optional parameters for the ReplicationsClient.NewListPager method. func (client *ReplicationsClient) NewListPager(resourceGroupName string, registryName string, options *ReplicationsClientListOptions) *runtime.Pager[ReplicationsClientListResponse] { return runtime.NewPager(runtime.PagingHandler[ReplicationsClientListResponse]{ More: func(page ReplicationsClientListResponse) bool { @@ -288,9 +289,6 @@ func (client *ReplicationsClient) NewListPager(resourceGroupName string, registr // listCreateRequest creates the List request. func (client *ReplicationsClient) listCreateRequest(ctx context.Context, resourceGroupName string, registryName string, options *ReplicationsClientListOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/replications" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -305,7 +303,7 @@ func (client *ReplicationsClient) listCreateRequest(ctx context.Context, resourc return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-01-preview") + reqQP.Set("api-version", "2023-01-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -322,20 +320,23 @@ func (client *ReplicationsClient) listHandleResponse(resp *http.Response) (Repli // BeginUpdate - Updates a replication for a container registry with the specified parameters. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// replicationName - The name of the replication. -// replicationUpdateParameters - The parameters for updating a replication. -// options - ReplicationsClientBeginUpdateOptions contains the optional parameters for the ReplicationsClient.BeginUpdate -// method. +// +// Generated from API version 2023-01-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - registryName - The name of the container registry. +// - replicationName - The name of the replication. +// - replicationUpdateParameters - The parameters for updating a replication. +// - options - ReplicationsClientBeginUpdateOptions contains the optional parameters for the ReplicationsClient.BeginUpdate +// method. func (client *ReplicationsClient) BeginUpdate(ctx context.Context, resourceGroupName string, registryName string, replicationName string, replicationUpdateParameters ReplicationUpdateParameters, options *ReplicationsClientBeginUpdateOptions) (*runtime.Poller[ReplicationsClientUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.update(ctx, resourceGroupName, registryName, replicationName, replicationUpdateParameters, options) if err != nil { return nil, err } - return runtime.NewPoller[ReplicationsClientUpdateResponse](resp, client.pl, nil) + return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[ReplicationsClientUpdateResponse]{ + FinalStateVia: runtime.FinalStateViaAzureAsyncOp, + }) } else { return runtime.NewPollerFromResumeToken[ReplicationsClientUpdateResponse](options.ResumeToken, client.pl, nil) } @@ -343,7 +344,8 @@ func (client *ReplicationsClient) BeginUpdate(ctx context.Context, resourceGroup // Update - Updates a replication for a container registry with the specified parameters. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview +// +// Generated from API version 2023-01-01-preview func (client *ReplicationsClient) update(ctx context.Context, resourceGroupName string, registryName string, replicationName string, replicationUpdateParameters ReplicationUpdateParameters, options *ReplicationsClientBeginUpdateOptions) (*http.Response, error) { req, err := client.updateCreateRequest(ctx, resourceGroupName, registryName, replicationName, replicationUpdateParameters, options) if err != nil { @@ -362,9 +364,6 @@ func (client *ReplicationsClient) update(ctx context.Context, resourceGroupName // updateCreateRequest creates the Update request. func (client *ReplicationsClient) updateCreateRequest(ctx context.Context, resourceGroupName string, registryName string, replicationName string, replicationUpdateParameters ReplicationUpdateParameters, options *ReplicationsClientBeginUpdateOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/replications/{replicationName}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -383,7 +382,7 @@ func (client *ReplicationsClient) updateCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-01-preview") + reqQP.Set("api-version", "2023-01-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, replicationUpdateParameters) diff --git a/sdk/resourcemanager/containerregistry/armcontainerregistry/replications_client_example_test.go b/sdk/resourcemanager/containerregistry/armcontainerregistry/replications_client_example_test.go new file mode 100644 index 000000000000..58444601b155 --- /dev/null +++ b/sdk/resourcemanager/containerregistry/armcontainerregistry/replications_client_example_test.go @@ -0,0 +1,273 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armcontainerregistry_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2023-01-01-preview/examples/ReplicationList.json +func ExampleReplicationsClient_NewListPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewReplicationsClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListPager("myResourceGroup", "myRegistry", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.ReplicationListResult = armcontainerregistry.ReplicationListResult{ + // Value: []*armcontainerregistry.Replication{ + // { + // Name: to.Ptr("myReplication"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/replications"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/replications/myReplication"), + // Location: to.Ptr("eastus"), + // Tags: map[string]*string{ + // "key": to.Ptr("value"), + // }, + // Properties: &armcontainerregistry.ReplicationProperties{ + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // RegionEndpointEnabled: to.Ptr(true), + // Status: &armcontainerregistry.Status{ + // DisplayStatus: to.Ptr("Ready"), + // Message: to.Ptr("The replication is ready."), + // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-01T23:15:37.0707808Z"); return t}()), + // }, + // ZoneRedundancy: to.Ptr(armcontainerregistry.ZoneRedundancyDisabled), + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2023-01-01-preview/examples/ReplicationGet.json +func ExampleReplicationsClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewReplicationsClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "myResourceGroup", "myRegistry", "myReplication", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.Replication = armcontainerregistry.Replication{ + // Name: to.Ptr("myReplication"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/replications"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/replications/myReplication"), + // Location: to.Ptr("eastus"), + // Tags: map[string]*string{ + // "key": to.Ptr("value"), + // }, + // Properties: &armcontainerregistry.ReplicationProperties{ + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // RegionEndpointEnabled: to.Ptr(true), + // Status: &armcontainerregistry.Status{ + // DisplayStatus: to.Ptr("Ready"), + // Message: to.Ptr("The replication is ready."), + // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-01T23:15:37.0707808Z"); return t}()), + // }, + // ZoneRedundancy: to.Ptr(armcontainerregistry.ZoneRedundancyDisabled), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2023-01-01-preview/examples/ReplicationCreate.json +func ExampleReplicationsClient_BeginCreate_replicationCreate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewReplicationsClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreate(ctx, "myResourceGroup", "myRegistry", "myReplication", armcontainerregistry.Replication{ + Location: to.Ptr("eastus"), + Tags: map[string]*string{ + "key": to.Ptr("value"), + }, + }, 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.Replication = armcontainerregistry.Replication{ + // Name: to.Ptr("myReplication"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/replications"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/replications/myReplication"), + // Location: to.Ptr("eastus"), + // Tags: map[string]*string{ + // "key": to.Ptr("value"), + // }, + // Properties: &armcontainerregistry.ReplicationProperties{ + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // RegionEndpointEnabled: to.Ptr(true), + // Status: &armcontainerregistry.Status{ + // DisplayStatus: to.Ptr("Ready"), + // Message: to.Ptr("The replication is ready."), + // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-01T23:15:37.0707808Z"); return t}()), + // }, + // ZoneRedundancy: to.Ptr(armcontainerregistry.ZoneRedundancyDisabled), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2023-01-01-preview/examples/ReplicationCreateZoneRedundant.json +func ExampleReplicationsClient_BeginCreate_replicationCreateZoneRedundant() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewReplicationsClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreate(ctx, "myResourceGroup", "myRegistry", "myReplication", armcontainerregistry.Replication{ + Location: to.Ptr("eastus"), + Tags: map[string]*string{ + "key": to.Ptr("value"), + }, + Properties: &armcontainerregistry.ReplicationProperties{ + RegionEndpointEnabled: to.Ptr(true), + ZoneRedundancy: to.Ptr(armcontainerregistry.ZoneRedundancyEnabled), + }, + }, 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.Replication = armcontainerregistry.Replication{ + // Name: to.Ptr("myReplication"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/replications"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/replications/myReplication"), + // Location: to.Ptr("eastus"), + // Tags: map[string]*string{ + // "key": to.Ptr("value"), + // }, + // Properties: &armcontainerregistry.ReplicationProperties{ + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // RegionEndpointEnabled: to.Ptr(true), + // Status: &armcontainerregistry.Status{ + // DisplayStatus: to.Ptr("Ready"), + // Message: to.Ptr("The replication is ready."), + // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-01T23:15:37.0707808Z"); return t}()), + // }, + // ZoneRedundancy: to.Ptr(armcontainerregistry.ZoneRedundancyEnabled), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2023-01-01-preview/examples/ReplicationDelete.json +func ExampleReplicationsClient_BeginDelete() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewReplicationsClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginDelete(ctx, "myResourceGroup", "myRegistry", "myReplication", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + _, err = poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2023-01-01-preview/examples/ReplicationUpdate.json +func ExampleReplicationsClient_BeginUpdate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewReplicationsClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginUpdate(ctx, "myResourceGroup", "myRegistry", "myReplication", armcontainerregistry.ReplicationUpdateParameters{ + Tags: map[string]*string{ + "key": to.Ptr("value"), + }, + }, 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.Replication = armcontainerregistry.Replication{ + // Name: to.Ptr("myReplication"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/replications"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/replications/myReplication"), + // Location: to.Ptr("eastus"), + // Tags: map[string]*string{ + // "key": to.Ptr("value"), + // }, + // Properties: &armcontainerregistry.ReplicationProperties{ + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // RegionEndpointEnabled: to.Ptr(true), + // Status: &armcontainerregistry.Status{ + // DisplayStatus: to.Ptr("Ready"), + // Message: to.Ptr("The replication is ready."), + // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-01T23:15:37.0707808Z"); return t}()), + // }, + // ZoneRedundancy: to.Ptr(armcontainerregistry.ZoneRedundancyDisabled), + // }, + // } +} diff --git a/sdk/resourcemanager/containerregistry/armcontainerregistry/zz_generated_response_types.go b/sdk/resourcemanager/containerregistry/armcontainerregistry/response_types.go similarity index 76% rename from sdk/resourcemanager/containerregistry/armcontainerregistry/zz_generated_response_types.go rename to sdk/resourcemanager/containerregistry/armcontainerregistry/response_types.go index 65804a56a0d1..0fc39d96ec89 100644 --- a/sdk/resourcemanager/containerregistry/armcontainerregistry/zz_generated_response_types.go +++ b/sdk/resourcemanager/containerregistry/armcontainerregistry/response_types.go @@ -5,15 +5,16 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armcontainerregistry -// AgentPoolsClientCreateResponse contains the response from method AgentPoolsClient.Create. +// AgentPoolsClientCreateResponse contains the response from method AgentPoolsClient.BeginCreate. type AgentPoolsClientCreateResponse struct { AgentPool } -// AgentPoolsClientDeleteResponse contains the response from method AgentPoolsClient.Delete. +// AgentPoolsClientDeleteResponse contains the response from method AgentPoolsClient.BeginDelete. type AgentPoolsClientDeleteResponse struct { // placeholder for future response values } @@ -28,27 +29,52 @@ type AgentPoolsClientGetResponse struct { AgentPool } -// AgentPoolsClientListResponse contains the response from method AgentPoolsClient.List. +// AgentPoolsClientListResponse contains the response from method AgentPoolsClient.NewListPager. type AgentPoolsClientListResponse struct { AgentPoolListResult } -// AgentPoolsClientUpdateResponse contains the response from method AgentPoolsClient.Update. +// AgentPoolsClientUpdateResponse contains the response from method AgentPoolsClient.BeginUpdate. type AgentPoolsClientUpdateResponse struct { AgentPool } -// ConnectedRegistriesClientCreateResponse contains the response from method ConnectedRegistriesClient.Create. +// CacheRulesClientCreateResponse contains the response from method CacheRulesClient.BeginCreate. +type CacheRulesClientCreateResponse struct { + CacheRule +} + +// CacheRulesClientDeleteResponse contains the response from method CacheRulesClient.BeginDelete. +type CacheRulesClientDeleteResponse struct { + // placeholder for future response values +} + +// CacheRulesClientGetResponse contains the response from method CacheRulesClient.Get. +type CacheRulesClientGetResponse struct { + CacheRule +} + +// CacheRulesClientListResponse contains the response from method CacheRulesClient.NewListPager. +type CacheRulesClientListResponse struct { + CacheRulesListResult +} + +// CacheRulesClientUpdateResponse contains the response from method CacheRulesClient.BeginUpdate. +type CacheRulesClientUpdateResponse struct { + CacheRule +} + +// ConnectedRegistriesClientCreateResponse contains the response from method ConnectedRegistriesClient.BeginCreate. type ConnectedRegistriesClientCreateResponse struct { ConnectedRegistry } -// ConnectedRegistriesClientDeactivateResponse contains the response from method ConnectedRegistriesClient.Deactivate. +// ConnectedRegistriesClientDeactivateResponse contains the response from method ConnectedRegistriesClient.BeginDeactivate. type ConnectedRegistriesClientDeactivateResponse struct { // placeholder for future response values } -// ConnectedRegistriesClientDeleteResponse contains the response from method ConnectedRegistriesClient.Delete. +// ConnectedRegistriesClientDeleteResponse contains the response from method ConnectedRegistriesClient.BeginDelete. type ConnectedRegistriesClientDeleteResponse struct { // placeholder for future response values } @@ -58,22 +84,47 @@ type ConnectedRegistriesClientGetResponse struct { ConnectedRegistry } -// ConnectedRegistriesClientListResponse contains the response from method ConnectedRegistriesClient.List. +// ConnectedRegistriesClientListResponse contains the response from method ConnectedRegistriesClient.NewListPager. type ConnectedRegistriesClientListResponse struct { ConnectedRegistryListResult } -// ConnectedRegistriesClientUpdateResponse contains the response from method ConnectedRegistriesClient.Update. +// ConnectedRegistriesClientUpdateResponse contains the response from method ConnectedRegistriesClient.BeginUpdate. type ConnectedRegistriesClientUpdateResponse struct { ConnectedRegistry } -// ExportPipelinesClientCreateResponse contains the response from method ExportPipelinesClient.Create. +// CredentialSetsClientCreateResponse contains the response from method CredentialSetsClient.BeginCreate. +type CredentialSetsClientCreateResponse struct { + CredentialSet +} + +// CredentialSetsClientDeleteResponse contains the response from method CredentialSetsClient.BeginDelete. +type CredentialSetsClientDeleteResponse struct { + // placeholder for future response values +} + +// CredentialSetsClientGetResponse contains the response from method CredentialSetsClient.Get. +type CredentialSetsClientGetResponse struct { + CredentialSet +} + +// CredentialSetsClientListResponse contains the response from method CredentialSetsClient.NewListPager. +type CredentialSetsClientListResponse struct { + CredentialSetListResult +} + +// CredentialSetsClientUpdateResponse contains the response from method CredentialSetsClient.BeginUpdate. +type CredentialSetsClientUpdateResponse struct { + CredentialSet +} + +// ExportPipelinesClientCreateResponse contains the response from method ExportPipelinesClient.BeginCreate. type ExportPipelinesClientCreateResponse struct { ExportPipeline } -// ExportPipelinesClientDeleteResponse contains the response from method ExportPipelinesClient.Delete. +// ExportPipelinesClientDeleteResponse contains the response from method ExportPipelinesClient.BeginDelete. type ExportPipelinesClientDeleteResponse struct { // placeholder for future response values } @@ -83,17 +134,17 @@ type ExportPipelinesClientGetResponse struct { ExportPipeline } -// ExportPipelinesClientListResponse contains the response from method ExportPipelinesClient.List. +// ExportPipelinesClientListResponse contains the response from method ExportPipelinesClient.NewListPager. type ExportPipelinesClientListResponse struct { ExportPipelineListResult } -// ImportPipelinesClientCreateResponse contains the response from method ImportPipelinesClient.Create. +// ImportPipelinesClientCreateResponse contains the response from method ImportPipelinesClient.BeginCreate. type ImportPipelinesClientCreateResponse struct { ImportPipeline } -// ImportPipelinesClientDeleteResponse contains the response from method ImportPipelinesClient.Delete. +// ImportPipelinesClientDeleteResponse contains the response from method ImportPipelinesClient.BeginDelete. type ImportPipelinesClientDeleteResponse struct { // placeholder for future response values } @@ -103,22 +154,22 @@ type ImportPipelinesClientGetResponse struct { ImportPipeline } -// ImportPipelinesClientListResponse contains the response from method ImportPipelinesClient.List. +// ImportPipelinesClientListResponse contains the response from method ImportPipelinesClient.NewListPager. type ImportPipelinesClientListResponse struct { ImportPipelineListResult } -// OperationsClientListResponse contains the response from method OperationsClient.List. +// OperationsClientListResponse contains the response from method OperationsClient.NewListPager. type OperationsClientListResponse struct { OperationListResult } -// PipelineRunsClientCreateResponse contains the response from method PipelineRunsClient.Create. +// PipelineRunsClientCreateResponse contains the response from method PipelineRunsClient.BeginCreate. type PipelineRunsClientCreateResponse struct { PipelineRun } -// PipelineRunsClientDeleteResponse contains the response from method PipelineRunsClient.Delete. +// PipelineRunsClientDeleteResponse contains the response from method PipelineRunsClient.BeginDelete. type PipelineRunsClientDeleteResponse struct { // placeholder for future response values } @@ -128,17 +179,17 @@ type PipelineRunsClientGetResponse struct { PipelineRun } -// PipelineRunsClientListResponse contains the response from method PipelineRunsClient.List. +// PipelineRunsClientListResponse contains the response from method PipelineRunsClient.NewListPager. type PipelineRunsClientListResponse struct { PipelineRunListResult } -// PrivateEndpointConnectionsClientCreateOrUpdateResponse contains the response from method PrivateEndpointConnectionsClient.CreateOrUpdate. +// PrivateEndpointConnectionsClientCreateOrUpdateResponse contains the response from method PrivateEndpointConnectionsClient.BeginCreateOrUpdate. type PrivateEndpointConnectionsClientCreateOrUpdateResponse struct { PrivateEndpointConnection } -// PrivateEndpointConnectionsClientDeleteResponse contains the response from method PrivateEndpointConnectionsClient.Delete. +// PrivateEndpointConnectionsClientDeleteResponse contains the response from method PrivateEndpointConnectionsClient.BeginDelete. type PrivateEndpointConnectionsClientDeleteResponse struct { // placeholder for future response values } @@ -148,7 +199,7 @@ type PrivateEndpointConnectionsClientGetResponse struct { PrivateEndpointConnection } -// PrivateEndpointConnectionsClientListResponse contains the response from method PrivateEndpointConnectionsClient.List. +// PrivateEndpointConnectionsClientListResponse contains the response from method PrivateEndpointConnectionsClient.NewListPager. type PrivateEndpointConnectionsClientListResponse struct { PrivateEndpointConnectionListResult } @@ -158,17 +209,17 @@ type RegistriesClientCheckNameAvailabilityResponse struct { RegistryNameStatus } -// RegistriesClientCreateResponse contains the response from method RegistriesClient.Create. +// RegistriesClientCreateResponse contains the response from method RegistriesClient.BeginCreate. type RegistriesClientCreateResponse struct { Registry } -// RegistriesClientDeleteResponse contains the response from method RegistriesClient.Delete. +// RegistriesClientDeleteResponse contains the response from method RegistriesClient.BeginDelete. type RegistriesClientDeleteResponse struct { // placeholder for future response values } -// RegistriesClientGenerateCredentialsResponse contains the response from method RegistriesClient.GenerateCredentials. +// RegistriesClientGenerateCredentialsResponse contains the response from method RegistriesClient.BeginGenerateCredentials. type RegistriesClientGenerateCredentialsResponse struct { GenerateCredentialsResult } @@ -188,12 +239,12 @@ type RegistriesClientGetResponse struct { Registry } -// RegistriesClientImportImageResponse contains the response from method RegistriesClient.ImportImage. +// RegistriesClientImportImageResponse contains the response from method RegistriesClient.BeginImportImage. type RegistriesClientImportImageResponse struct { // placeholder for future response values } -// RegistriesClientListByResourceGroupResponse contains the response from method RegistriesClient.ListByResourceGroup. +// RegistriesClientListByResourceGroupResponse contains the response from method RegistriesClient.NewListByResourceGroupPager. type RegistriesClientListByResourceGroupResponse struct { RegistryListResult } @@ -203,12 +254,12 @@ type RegistriesClientListCredentialsResponse struct { RegistryListCredentialsResult } -// RegistriesClientListPrivateLinkResourcesResponse contains the response from method RegistriesClient.ListPrivateLinkResources. +// RegistriesClientListPrivateLinkResourcesResponse contains the response from method RegistriesClient.NewListPrivateLinkResourcesPager. type RegistriesClientListPrivateLinkResourcesResponse struct { PrivateLinkResourceListResult } -// RegistriesClientListResponse contains the response from method RegistriesClient.List. +// RegistriesClientListResponse contains the response from method RegistriesClient.NewListPager. type RegistriesClientListResponse struct { RegistryListResult } @@ -223,22 +274,22 @@ type RegistriesClientRegenerateCredentialResponse struct { RegistryListCredentialsResult } -// RegistriesClientScheduleRunResponse contains the response from method RegistriesClient.ScheduleRun. +// RegistriesClientScheduleRunResponse contains the response from method RegistriesClient.BeginScheduleRun. type RegistriesClientScheduleRunResponse struct { Run } -// RegistriesClientUpdateResponse contains the response from method RegistriesClient.Update. +// RegistriesClientUpdateResponse contains the response from method RegistriesClient.BeginUpdate. type RegistriesClientUpdateResponse struct { Registry } -// ReplicationsClientCreateResponse contains the response from method ReplicationsClient.Create. +// ReplicationsClientCreateResponse contains the response from method ReplicationsClient.BeginCreate. type ReplicationsClientCreateResponse struct { Replication } -// ReplicationsClientDeleteResponse contains the response from method ReplicationsClient.Delete. +// ReplicationsClientDeleteResponse contains the response from method ReplicationsClient.BeginDelete. type ReplicationsClientDeleteResponse struct { // placeholder for future response values } @@ -248,17 +299,17 @@ type ReplicationsClientGetResponse struct { Replication } -// ReplicationsClientListResponse contains the response from method ReplicationsClient.List. +// ReplicationsClientListResponse contains the response from method ReplicationsClient.NewListPager. type ReplicationsClientListResponse struct { ReplicationListResult } -// ReplicationsClientUpdateResponse contains the response from method ReplicationsClient.Update. +// ReplicationsClientUpdateResponse contains the response from method ReplicationsClient.BeginUpdate. type ReplicationsClientUpdateResponse struct { Replication } -// RunsClientCancelResponse contains the response from method RunsClient.Cancel. +// RunsClientCancelResponse contains the response from method RunsClient.BeginCancel. type RunsClientCancelResponse struct { // placeholder for future response values } @@ -273,22 +324,22 @@ type RunsClientGetResponse struct { Run } -// RunsClientListResponse contains the response from method RunsClient.List. +// RunsClientListResponse contains the response from method RunsClient.NewListPager. type RunsClientListResponse struct { RunListResult } -// RunsClientUpdateResponse contains the response from method RunsClient.Update. +// RunsClientUpdateResponse contains the response from method RunsClient.BeginUpdate. type RunsClientUpdateResponse struct { Run } -// ScopeMapsClientCreateResponse contains the response from method ScopeMapsClient.Create. +// ScopeMapsClientCreateResponse contains the response from method ScopeMapsClient.BeginCreate. type ScopeMapsClientCreateResponse struct { ScopeMap } -// ScopeMapsClientDeleteResponse contains the response from method ScopeMapsClient.Delete. +// ScopeMapsClientDeleteResponse contains the response from method ScopeMapsClient.BeginDelete. type ScopeMapsClientDeleteResponse struct { // placeholder for future response values } @@ -298,22 +349,22 @@ type ScopeMapsClientGetResponse struct { ScopeMap } -// ScopeMapsClientListResponse contains the response from method ScopeMapsClient.List. +// ScopeMapsClientListResponse contains the response from method ScopeMapsClient.NewListPager. type ScopeMapsClientListResponse struct { ScopeMapListResult } -// ScopeMapsClientUpdateResponse contains the response from method ScopeMapsClient.Update. +// ScopeMapsClientUpdateResponse contains the response from method ScopeMapsClient.BeginUpdate. type ScopeMapsClientUpdateResponse struct { ScopeMap } -// TaskRunsClientCreateResponse contains the response from method TaskRunsClient.Create. +// TaskRunsClientCreateResponse contains the response from method TaskRunsClient.BeginCreate. type TaskRunsClientCreateResponse struct { TaskRun } -// TaskRunsClientDeleteResponse contains the response from method TaskRunsClient.Delete. +// TaskRunsClientDeleteResponse contains the response from method TaskRunsClient.BeginDelete. type TaskRunsClientDeleteResponse struct { // placeholder for future response values } @@ -328,22 +379,22 @@ type TaskRunsClientGetResponse struct { TaskRun } -// TaskRunsClientListResponse contains the response from method TaskRunsClient.List. +// TaskRunsClientListResponse contains the response from method TaskRunsClient.NewListPager. type TaskRunsClientListResponse struct { TaskRunListResult } -// TaskRunsClientUpdateResponse contains the response from method TaskRunsClient.Update. +// TaskRunsClientUpdateResponse contains the response from method TaskRunsClient.BeginUpdate. type TaskRunsClientUpdateResponse struct { TaskRun } -// TasksClientCreateResponse contains the response from method TasksClient.Create. +// TasksClientCreateResponse contains the response from method TasksClient.BeginCreate. type TasksClientCreateResponse struct { Task } -// TasksClientDeleteResponse contains the response from method TasksClient.Delete. +// TasksClientDeleteResponse contains the response from method TasksClient.BeginDelete. type TasksClientDeleteResponse struct { // placeholder for future response values } @@ -358,22 +409,22 @@ type TasksClientGetResponse struct { Task } -// TasksClientListResponse contains the response from method TasksClient.List. +// TasksClientListResponse contains the response from method TasksClient.NewListPager. type TasksClientListResponse struct { TaskListResult } -// TasksClientUpdateResponse contains the response from method TasksClient.Update. +// TasksClientUpdateResponse contains the response from method TasksClient.BeginUpdate. type TasksClientUpdateResponse struct { Task } -// TokensClientCreateResponse contains the response from method TokensClient.Create. +// TokensClientCreateResponse contains the response from method TokensClient.BeginCreate. type TokensClientCreateResponse struct { Token } -// TokensClientDeleteResponse contains the response from method TokensClient.Delete. +// TokensClientDeleteResponse contains the response from method TokensClient.BeginDelete. type TokensClientDeleteResponse struct { // placeholder for future response values } @@ -383,22 +434,22 @@ type TokensClientGetResponse struct { Token } -// TokensClientListResponse contains the response from method TokensClient.List. +// TokensClientListResponse contains the response from method TokensClient.NewListPager. type TokensClientListResponse struct { TokenListResult } -// TokensClientUpdateResponse contains the response from method TokensClient.Update. +// TokensClientUpdateResponse contains the response from method TokensClient.BeginUpdate. type TokensClientUpdateResponse struct { Token } -// WebhooksClientCreateResponse contains the response from method WebhooksClient.Create. +// WebhooksClientCreateResponse contains the response from method WebhooksClient.BeginCreate. type WebhooksClientCreateResponse struct { Webhook } -// WebhooksClientDeleteResponse contains the response from method WebhooksClient.Delete. +// WebhooksClientDeleteResponse contains the response from method WebhooksClient.BeginDelete. type WebhooksClientDeleteResponse struct { // placeholder for future response values } @@ -413,12 +464,12 @@ type WebhooksClientGetResponse struct { Webhook } -// WebhooksClientListEventsResponse contains the response from method WebhooksClient.ListEvents. +// WebhooksClientListEventsResponse contains the response from method WebhooksClient.NewListEventsPager. type WebhooksClientListEventsResponse struct { EventListResult } -// WebhooksClientListResponse contains the response from method WebhooksClient.List. +// WebhooksClientListResponse contains the response from method WebhooksClient.NewListPager. type WebhooksClientListResponse struct { WebhookListResult } @@ -428,7 +479,7 @@ type WebhooksClientPingResponse struct { EventInfo } -// WebhooksClientUpdateResponse contains the response from method WebhooksClient.Update. +// WebhooksClientUpdateResponse contains the response from method WebhooksClient.BeginUpdate. type WebhooksClientUpdateResponse struct { Webhook } diff --git a/sdk/resourcemanager/containerregistry/armcontainerregistry/zz_generated_runs_client.go b/sdk/resourcemanager/containerregistry/armcontainerregistry/runs_client.go similarity index 87% rename from sdk/resourcemanager/containerregistry/armcontainerregistry/zz_generated_runs_client.go rename to sdk/resourcemanager/containerregistry/armcontainerregistry/runs_client.go index 4880b9b238e8..720d4994379a 100644 --- a/sdk/resourcemanager/containerregistry/armcontainerregistry/zz_generated_runs_client.go +++ b/sdk/resourcemanager/containerregistry/armcontainerregistry/runs_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armcontainerregistry @@ -32,9 +33,9 @@ type RunsClient struct { } // NewRunsClient creates a new instance of RunsClient with the specified values. -// subscriptionID - The Microsoft Azure subscription ID. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewRunsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*RunsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,11 +58,12 @@ func NewRunsClient(subscriptionID string, credential azcore.TokenCredential, opt // BeginCancel - Cancel an existing run. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2019-06-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// runID - The run ID. -// options - RunsClientBeginCancelOptions contains the optional parameters for the RunsClient.BeginCancel method. +// - resourceGroupName - The name of the resource group to which the container registry belongs. +// - registryName - The name of the container registry. +// - runID - The run ID. +// - options - RunsClientBeginCancelOptions contains the optional parameters for the RunsClient.BeginCancel method. func (client *RunsClient) BeginCancel(ctx context.Context, resourceGroupName string, registryName string, runID string, options *RunsClientBeginCancelOptions) (*runtime.Poller[RunsClientCancelResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.cancel(ctx, resourceGroupName, registryName, runID, options) @@ -76,6 +78,7 @@ func (client *RunsClient) BeginCancel(ctx context.Context, resourceGroupName str // Cancel - Cancel an existing run. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2019-06-01-preview func (client *RunsClient) cancel(ctx context.Context, resourceGroupName string, registryName string, runID string, options *RunsClientBeginCancelOptions) (*http.Response, error) { req, err := client.cancelCreateRequest(ctx, resourceGroupName, registryName, runID, options) @@ -95,9 +98,6 @@ func (client *RunsClient) cancel(ctx context.Context, resourceGroupName string, // cancelCreateRequest creates the Cancel request. func (client *RunsClient) cancelCreateRequest(ctx context.Context, resourceGroupName string, registryName string, runID string, options *RunsClientBeginCancelOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/runs/{runId}/cancel" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -124,11 +124,12 @@ func (client *RunsClient) cancelCreateRequest(ctx context.Context, resourceGroup // Get - Gets the detailed information for a given run. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2019-06-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// runID - The run ID. -// options - RunsClientGetOptions contains the optional parameters for the RunsClient.Get method. +// - resourceGroupName - The name of the resource group to which the container registry belongs. +// - registryName - The name of the container registry. +// - runID - The run ID. +// - options - RunsClientGetOptions contains the optional parameters for the RunsClient.Get method. func (client *RunsClient) Get(ctx context.Context, resourceGroupName string, registryName string, runID string, options *RunsClientGetOptions) (RunsClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, registryName, runID, options) if err != nil { @@ -147,9 +148,6 @@ func (client *RunsClient) Get(ctx context.Context, resourceGroupName string, reg // getCreateRequest creates the Get request. func (client *RunsClient) getCreateRequest(ctx context.Context, resourceGroupName string, registryName string, runID string, options *RunsClientGetOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/runs/{runId}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -185,11 +183,12 @@ func (client *RunsClient) getHandleResponse(resp *http.Response) (RunsClientGetR // GetLogSasURL - Gets a link to download the run logs. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2019-06-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// runID - The run ID. -// options - RunsClientGetLogSasURLOptions contains the optional parameters for the RunsClient.GetLogSasURL method. +// - resourceGroupName - The name of the resource group to which the container registry belongs. +// - registryName - The name of the container registry. +// - runID - The run ID. +// - options - RunsClientGetLogSasURLOptions contains the optional parameters for the RunsClient.GetLogSasURL method. func (client *RunsClient) GetLogSasURL(ctx context.Context, resourceGroupName string, registryName string, runID string, options *RunsClientGetLogSasURLOptions) (RunsClientGetLogSasURLResponse, error) { req, err := client.getLogSasURLCreateRequest(ctx, resourceGroupName, registryName, runID, options) if err != nil { @@ -208,9 +207,6 @@ func (client *RunsClient) GetLogSasURL(ctx context.Context, resourceGroupName st // getLogSasURLCreateRequest creates the GetLogSasURL request. func (client *RunsClient) getLogSasURLCreateRequest(ctx context.Context, resourceGroupName string, registryName string, runID string, options *RunsClientGetLogSasURLOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/runs/{runId}/listLogSasUrl" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -245,11 +241,11 @@ func (client *RunsClient) getLogSasURLHandleResponse(resp *http.Response) (RunsC } // NewListPager - Gets all the runs for a registry. -// If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2019-06-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// options - RunsClientListOptions contains the optional parameters for the RunsClient.List method. +// - resourceGroupName - The name of the resource group to which the container registry belongs. +// - registryName - The name of the container registry. +// - options - RunsClientListOptions contains the optional parameters for the RunsClient.NewListPager method. func (client *RunsClient) NewListPager(resourceGroupName string, registryName string, options *RunsClientListOptions) *runtime.Pager[RunsClientListResponse] { return runtime.NewPager(runtime.PagingHandler[RunsClientListResponse]{ More: func(page RunsClientListResponse) bool { @@ -281,9 +277,6 @@ func (client *RunsClient) NewListPager(resourceGroupName string, registryName st // listCreateRequest creates the List request. func (client *RunsClient) listCreateRequest(ctx context.Context, resourceGroupName string, registryName string, options *RunsClientListOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/runs" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -321,12 +314,13 @@ func (client *RunsClient) listHandleResponse(resp *http.Response) (RunsClientLis // BeginUpdate - Patch the run properties. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2019-06-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// runID - The run ID. -// runUpdateParameters - The run update properties. -// options - RunsClientBeginUpdateOptions contains the optional parameters for the RunsClient.BeginUpdate method. +// - resourceGroupName - The name of the resource group to which the container registry belongs. +// - registryName - The name of the container registry. +// - runID - The run ID. +// - runUpdateParameters - The run update properties. +// - options - RunsClientBeginUpdateOptions contains the optional parameters for the RunsClient.BeginUpdate method. func (client *RunsClient) BeginUpdate(ctx context.Context, resourceGroupName string, registryName string, runID string, runUpdateParameters RunUpdateParameters, options *RunsClientBeginUpdateOptions) (*runtime.Poller[RunsClientUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.update(ctx, resourceGroupName, registryName, runID, runUpdateParameters, options) @@ -341,6 +335,7 @@ func (client *RunsClient) BeginUpdate(ctx context.Context, resourceGroupName str // Update - Patch the run properties. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2019-06-01-preview func (client *RunsClient) update(ctx context.Context, resourceGroupName string, registryName string, runID string, runUpdateParameters RunUpdateParameters, options *RunsClientBeginUpdateOptions) (*http.Response, error) { req, err := client.updateCreateRequest(ctx, resourceGroupName, registryName, runID, runUpdateParameters, options) @@ -360,9 +355,6 @@ func (client *RunsClient) update(ctx context.Context, resourceGroupName string, // updateCreateRequest creates the Update request. func (client *RunsClient) updateCreateRequest(ctx context.Context, resourceGroupName string, registryName string, runID string, runUpdateParameters RunUpdateParameters, options *RunsClientBeginUpdateOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/runs/{runId}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") diff --git a/sdk/resourcemanager/containerregistry/armcontainerregistry/runs_client_example_test.go b/sdk/resourcemanager/containerregistry/armcontainerregistry/runs_client_example_test.go new file mode 100644 index 000000000000..f31053a1f721 --- /dev/null +++ b/sdk/resourcemanager/containerregistry/armcontainerregistry/runs_client_example_test.go @@ -0,0 +1,283 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armcontainerregistry_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/RunsList.json +func ExampleRunsClient_NewListPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewRunsClient("4385cf00-2d3a-425a-832f-f4285b1c9dce", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListPager("myResourceGroup", "myRegistry", &armcontainerregistry.RunsClientListOptions{Filter: to.Ptr(""), + Top: to.Ptr[int32](10), + }) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.RunListResult = armcontainerregistry.RunListResult{ + // Value: []*armcontainerregistry.Run{ + // { + // Name: to.Ptr("0accec26-d6de-4757-8e74-d080f38eaaab"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/runs"), + // ID: to.Ptr("/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/runs/0accec26-d6de-4757-8e74-d080f38eaaab"), + // Properties: &armcontainerregistry.RunProperties{ + // AgentConfiguration: &armcontainerregistry.AgentProperties{ + // CPU: to.Ptr[int32](2), + // }, + // CreateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-01-25T05:13:51.618Z"); return t}()), + // FinishTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-01-25T06:13:51.618Z"); return t}()), + // ImageUpdateTrigger: &armcontainerregistry.ImageUpdateTrigger{ + // ID: to.Ptr("c0c43143-da5d-41ef-b9e1-e7d749272e88"), + // Images: []*armcontainerregistry.ImageDescriptor{ + // { + // Digest: to.Ptr("sha256:cbbf2f9a99b47fc460d422812b6a5adff7dfee951d8fa2e4a98caa0"), + // Registry: to.Ptr("registry.hub.docker.com"), + // Repository: to.Ptr("mybaseimage"), + // Tag: to.Ptr("latest"), + // }}, + // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-01-25T05:13:51.618Z"); return t}()), + // }, + // IsArchiveEnabled: to.Ptr(true), + // LastUpdatedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-01-25T05:13:51.617Z"); return t}()), + // LogArtifact: &armcontainerregistry.ImageDescriptor{ + // Digest: to.Ptr("sha256:cbbf2f9a99b47fc460d422812b6a5adff7dfee951d8fa2e4a98caa0"), + // Registry: to.Ptr("myregistry"), + // Repository: to.Ptr("acr/tasks"), + // Tag: to.Ptr("mytask-0accec26-d6de-4757-8e74-d080f38eaaab-log"), + // }, + // OutputImages: []*armcontainerregistry.ImageDescriptor{ + // { + // Digest: to.Ptr("sha256:cbbf2f9a99b47fc460d422812b6a5adff7dfee951d8fa2e4a98caa0"), + // Registry: to.Ptr("myregistry.azurecr.io"), + // Repository: to.Ptr("myimage"), + // Tag: to.Ptr("latest"), + // }}, + // Platform: &armcontainerregistry.PlatformProperties{ + // Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), + // OS: to.Ptr(armcontainerregistry.OSLinux), + // }, + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // RunID: to.Ptr("0accec26-d6de-4757-8e74-d080f38eaaab"), + // RunType: to.Ptr(armcontainerregistry.RunTypeAutoBuild), + // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-01-25T05:50:51.618Z"); return t}()), + // Status: to.Ptr(armcontainerregistry.RunStatusSucceeded), + // Task: to.Ptr("myTask"), + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/RunsGet.json +func ExampleRunsClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewRunsClient("4385cf00-2d3a-425a-832f-f4285b1c9dce", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "myResourceGroup", "myRegistry", "0accec26-d6de-4757-8e74-d080f38eaaab", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.Run = armcontainerregistry.Run{ + // Name: to.Ptr("0accec26-d6de-4757-8e74-d080f38eaaab"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/runs"), + // ID: to.Ptr("/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/runs/0accec26-d6de-4757-8e74-d080f38eaaab"), + // Properties: &armcontainerregistry.RunProperties{ + // AgentConfiguration: &armcontainerregistry.AgentProperties{ + // CPU: to.Ptr[int32](2), + // }, + // CreateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-01-25T05:13:51.618Z"); return t}()), + // FinishTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-01-25T06:13:51.618Z"); return t}()), + // ImageUpdateTrigger: &armcontainerregistry.ImageUpdateTrigger{ + // ID: to.Ptr("c0c43143-da5d-41ef-b9e1-e7d749272e88"), + // Images: []*armcontainerregistry.ImageDescriptor{ + // { + // Digest: to.Ptr("sha256:cbbf2f9a99b47fc460d422812b6a5adff7dfee951d8fa2e4a98caa0"), + // Registry: to.Ptr("registry.hub.docker.com"), + // Repository: to.Ptr("mybaseimage"), + // Tag: to.Ptr("latest"), + // }}, + // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-01-25T05:13:51.618Z"); return t}()), + // }, + // IsArchiveEnabled: to.Ptr(true), + // LastUpdatedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-01-25T05:13:51.617Z"); return t}()), + // LogArtifact: &armcontainerregistry.ImageDescriptor{ + // Digest: to.Ptr("sha256:cbbf2f9a99b47fc460d422812b6a5adff7dfee951d8fa2e4a98caa0"), + // Registry: to.Ptr("myregistry"), + // Repository: to.Ptr("acr/tasks"), + // Tag: to.Ptr("mytask-0accec26-d6de-4757-8e74-d080f38eaaab-log"), + // }, + // OutputImages: []*armcontainerregistry.ImageDescriptor{ + // { + // Digest: to.Ptr("sha256:cbbf2f9a99b47fc460d422812b6a5adff7dfee951d8fa2e4a98caa0"), + // Registry: to.Ptr("myregistry.azurecr.io"), + // Repository: to.Ptr("myimage"), + // Tag: to.Ptr("latest"), + // }}, + // Platform: &armcontainerregistry.PlatformProperties{ + // Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), + // OS: to.Ptr(armcontainerregistry.OSLinux), + // }, + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // RunID: to.Ptr("0accec26-d6de-4757-8e74-d080f38eaaab"), + // RunType: to.Ptr(armcontainerregistry.RunTypeAutoBuild), + // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-01-25T05:50:51.618Z"); return t}()), + // Status: to.Ptr(armcontainerregistry.RunStatusSucceeded), + // Task: to.Ptr("myTask"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/RunsUpdate.json +func ExampleRunsClient_BeginUpdate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewRunsClient("4385cf00-2d3a-425a-832f-f4285b1c9dce", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginUpdate(ctx, "myResourceGroup", "myRegistry", "0accec26-d6de-4757-8e74-d080f38eaaab", armcontainerregistry.RunUpdateParameters{ + IsArchiveEnabled: to.Ptr(true), + }, 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.Run = armcontainerregistry.Run{ + // Name: to.Ptr("0accec26-d6de-4757-8e74-d080f38eaaab"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/runs"), + // ID: to.Ptr("/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/runs/0accec26-d6de-4757-8e74-d080f38eaaab"), + // Properties: &armcontainerregistry.RunProperties{ + // AgentConfiguration: &armcontainerregistry.AgentProperties{ + // CPU: to.Ptr[int32](2), + // }, + // CreateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-01-25T05:13:51.618Z"); return t}()), + // FinishTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-01-25T06:13:51.618Z"); return t}()), + // ImageUpdateTrigger: &armcontainerregistry.ImageUpdateTrigger{ + // ID: to.Ptr("c0c43143-da5d-41ef-b9e1-e7d749272e88"), + // Images: []*armcontainerregistry.ImageDescriptor{ + // { + // Digest: to.Ptr("sha256:cbbf2f9a99b47fc460d422812b6a5adff7dfee951d8fa2e4a98caa0"), + // Registry: to.Ptr("registry.hub.docker.com"), + // Repository: to.Ptr("mybaseimage"), + // Tag: to.Ptr("latest"), + // }}, + // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-01-25T05:13:51.618Z"); return t}()), + // }, + // IsArchiveEnabled: to.Ptr(true), + // LastUpdatedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-01-25T05:13:51.617Z"); return t}()), + // LogArtifact: &armcontainerregistry.ImageDescriptor{ + // Digest: to.Ptr("sha256:cbbf2f9a99b47fc460d422812b6a5adff7dfee951d8fa2e4a98caa0"), + // Registry: to.Ptr("myregistry"), + // Repository: to.Ptr("acr/tasks"), + // Tag: to.Ptr("mytask-0accec26-d6de-4757-8e74-d080f38eaaab-log"), + // }, + // OutputImages: []*armcontainerregistry.ImageDescriptor{ + // { + // Digest: to.Ptr("sha256:cbbf2f9a99b47fc460d422812b6a5adff7dfee951d8fa2e4a98caa0"), + // Registry: to.Ptr("myregistry.azurecr.io"), + // Repository: to.Ptr("myimage"), + // Tag: to.Ptr("latest"), + // }}, + // Platform: &armcontainerregistry.PlatformProperties{ + // Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), + // OS: to.Ptr(armcontainerregistry.OSLinux), + // }, + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // RunID: to.Ptr("0accec26-d6de-4757-8e74-d080f38eaaab"), + // RunType: to.Ptr(armcontainerregistry.RunTypeAutoBuild), + // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-01-25T05:50:51.618Z"); return t}()), + // Status: to.Ptr(armcontainerregistry.RunStatusSucceeded), + // Task: to.Ptr("myTask"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/RunsGetLogSasUrl.json +func ExampleRunsClient_GetLogSasURL() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewRunsClient("4385cf00-2d3a-425a-832f-f4285b1c9dce", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.GetLogSasURL(ctx, "myResourceGroup", "myRegistry", "0accec26-d6de-4757-8e74-d080f38eaaab", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.RunGetLogResult = armcontainerregistry.RunGetLogResult{ + // LogLink: to.Ptr("https://registrystorageaccount.blob.core.windows.net/sascontainer/logs/0accec26-d6de-4757-8e74-d080f38eaaab/rawtext.log?sv=2015-04-05&st=2015-04-29T22%3A18%3A26Z&se=2015-04-30T02%3A23%3A26Z&sr=b&sp=rw&sip=168.1.5.60-168.1.5.70&spr=https&sig=Z%2FRHIX5Xcg0Mq2rqI3OlWTjEg2tYkboXr1P9ZUXDtkk%3D"), + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/RunsCancel.json +func ExampleRunsClient_BeginCancel() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewRunsClient("4385cf00-2d3a-425a-832f-f4285b1c9dce", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCancel(ctx, "myResourceGroup", "myRegistry", "0accec26-d6de-4757-8e74-d080f38eaaab", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + _, err = poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } +} diff --git a/sdk/resourcemanager/containerregistry/armcontainerregistry/zz_generated_scopemaps_client.go b/sdk/resourcemanager/containerregistry/armcontainerregistry/scopemaps_client.go similarity index 82% rename from sdk/resourcemanager/containerregistry/armcontainerregistry/zz_generated_scopemaps_client.go rename to sdk/resourcemanager/containerregistry/armcontainerregistry/scopemaps_client.go index 79b06913310e..b76e64eca302 100644 --- a/sdk/resourcemanager/containerregistry/armcontainerregistry/zz_generated_scopemaps_client.go +++ b/sdk/resourcemanager/containerregistry/armcontainerregistry/scopemaps_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armcontainerregistry @@ -31,9 +32,9 @@ type ScopeMapsClient struct { } // NewScopeMapsClient creates a new instance of ScopeMapsClient with the specified values. -// subscriptionID - The Microsoft Azure subscription ID. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewScopeMapsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ScopeMapsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,19 +57,22 @@ func NewScopeMapsClient(subscriptionID string, credential azcore.TokenCredential // BeginCreate - Creates a scope map for a container registry with the specified parameters. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// scopeMapName - The name of the scope map. -// scopeMapCreateParameters - The parameters for creating a scope map. -// options - ScopeMapsClientBeginCreateOptions contains the optional parameters for the ScopeMapsClient.BeginCreate method. +// +// Generated from API version 2023-01-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - registryName - The name of the container registry. +// - scopeMapName - The name of the scope map. +// - scopeMapCreateParameters - The parameters for creating a scope map. +// - options - ScopeMapsClientBeginCreateOptions contains the optional parameters for the ScopeMapsClient.BeginCreate method. func (client *ScopeMapsClient) BeginCreate(ctx context.Context, resourceGroupName string, registryName string, scopeMapName string, scopeMapCreateParameters ScopeMap, options *ScopeMapsClientBeginCreateOptions) (*runtime.Poller[ScopeMapsClientCreateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.create(ctx, resourceGroupName, registryName, scopeMapName, scopeMapCreateParameters, options) if err != nil { return nil, err } - return runtime.NewPoller[ScopeMapsClientCreateResponse](resp, client.pl, nil) + return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[ScopeMapsClientCreateResponse]{ + FinalStateVia: runtime.FinalStateViaAzureAsyncOp, + }) } else { return runtime.NewPollerFromResumeToken[ScopeMapsClientCreateResponse](options.ResumeToken, client.pl, nil) } @@ -76,7 +80,8 @@ func (client *ScopeMapsClient) BeginCreate(ctx context.Context, resourceGroupNam // Create - Creates a scope map for a container registry with the specified parameters. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview +// +// Generated from API version 2023-01-01-preview func (client *ScopeMapsClient) create(ctx context.Context, resourceGroupName string, registryName string, scopeMapName string, scopeMapCreateParameters ScopeMap, options *ScopeMapsClientBeginCreateOptions) (*http.Response, error) { req, err := client.createCreateRequest(ctx, resourceGroupName, registryName, scopeMapName, scopeMapCreateParameters, options) if err != nil { @@ -95,9 +100,6 @@ func (client *ScopeMapsClient) create(ctx context.Context, resourceGroupName str // createCreateRequest creates the Create request. func (client *ScopeMapsClient) createCreateRequest(ctx context.Context, resourceGroupName string, registryName string, scopeMapName string, scopeMapCreateParameters ScopeMap, options *ScopeMapsClientBeginCreateOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/scopeMaps/{scopeMapName}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -116,7 +118,7 @@ func (client *ScopeMapsClient) createCreateRequest(ctx context.Context, resource return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-01-preview") + reqQP.Set("api-version", "2023-01-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, scopeMapCreateParameters) @@ -124,18 +126,21 @@ func (client *ScopeMapsClient) createCreateRequest(ctx context.Context, resource // BeginDelete - Deletes a scope map from a container registry. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// scopeMapName - The name of the scope map. -// options - ScopeMapsClientBeginDeleteOptions contains the optional parameters for the ScopeMapsClient.BeginDelete method. +// +// Generated from API version 2023-01-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - registryName - The name of the container registry. +// - scopeMapName - The name of the scope map. +// - options - ScopeMapsClientBeginDeleteOptions contains the optional parameters for the ScopeMapsClient.BeginDelete method. func (client *ScopeMapsClient) BeginDelete(ctx context.Context, resourceGroupName string, registryName string, scopeMapName string, options *ScopeMapsClientBeginDeleteOptions) (*runtime.Poller[ScopeMapsClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, registryName, scopeMapName, options) if err != nil { return nil, err } - return runtime.NewPoller[ScopeMapsClientDeleteResponse](resp, client.pl, nil) + return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[ScopeMapsClientDeleteResponse]{ + FinalStateVia: runtime.FinalStateViaLocation, + }) } else { return runtime.NewPollerFromResumeToken[ScopeMapsClientDeleteResponse](options.ResumeToken, client.pl, nil) } @@ -143,7 +148,8 @@ func (client *ScopeMapsClient) BeginDelete(ctx context.Context, resourceGroupNam // Delete - Deletes a scope map from a container registry. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview +// +// Generated from API version 2023-01-01-preview func (client *ScopeMapsClient) deleteOperation(ctx context.Context, resourceGroupName string, registryName string, scopeMapName string, options *ScopeMapsClientBeginDeleteOptions) (*http.Response, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, registryName, scopeMapName, options) if err != nil { @@ -162,9 +168,6 @@ func (client *ScopeMapsClient) deleteOperation(ctx context.Context, resourceGrou // deleteCreateRequest creates the Delete request. func (client *ScopeMapsClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, registryName string, scopeMapName string, options *ScopeMapsClientBeginDeleteOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/scopeMaps/{scopeMapName}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -183,7 +186,7 @@ func (client *ScopeMapsClient) deleteCreateRequest(ctx context.Context, resource return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-01-preview") + reqQP.Set("api-version", "2023-01-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -191,11 +194,12 @@ func (client *ScopeMapsClient) deleteCreateRequest(ctx context.Context, resource // Get - Gets the properties of the specified scope map. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// scopeMapName - The name of the scope map. -// options - ScopeMapsClientGetOptions contains the optional parameters for the ScopeMapsClient.Get method. +// +// Generated from API version 2023-01-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - registryName - The name of the container registry. +// - scopeMapName - The name of the scope map. +// - options - ScopeMapsClientGetOptions contains the optional parameters for the ScopeMapsClient.Get method. func (client *ScopeMapsClient) Get(ctx context.Context, resourceGroupName string, registryName string, scopeMapName string, options *ScopeMapsClientGetOptions) (ScopeMapsClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, registryName, scopeMapName, options) if err != nil { @@ -214,9 +218,6 @@ func (client *ScopeMapsClient) Get(ctx context.Context, resourceGroupName string // getCreateRequest creates the Get request. func (client *ScopeMapsClient) getCreateRequest(ctx context.Context, resourceGroupName string, registryName string, scopeMapName string, options *ScopeMapsClientGetOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/scopeMaps/{scopeMapName}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -235,7 +236,7 @@ func (client *ScopeMapsClient) getCreateRequest(ctx context.Context, resourceGro return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-01-preview") + reqQP.Set("api-version", "2023-01-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -251,11 +252,11 @@ func (client *ScopeMapsClient) getHandleResponse(resp *http.Response) (ScopeMaps } // NewListPager - Lists all the scope maps for the specified container registry. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// options - ScopeMapsClientListOptions contains the optional parameters for the ScopeMapsClient.List method. +// +// Generated from API version 2023-01-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - registryName - The name of the container registry. +// - options - ScopeMapsClientListOptions contains the optional parameters for the ScopeMapsClient.NewListPager method. func (client *ScopeMapsClient) NewListPager(resourceGroupName string, registryName string, options *ScopeMapsClientListOptions) *runtime.Pager[ScopeMapsClientListResponse] { return runtime.NewPager(runtime.PagingHandler[ScopeMapsClientListResponse]{ More: func(page ScopeMapsClientListResponse) bool { @@ -287,9 +288,6 @@ func (client *ScopeMapsClient) NewListPager(resourceGroupName string, registryNa // listCreateRequest creates the List request. func (client *ScopeMapsClient) listCreateRequest(ctx context.Context, resourceGroupName string, registryName string, options *ScopeMapsClientListOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/scopeMaps" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -304,7 +302,7 @@ func (client *ScopeMapsClient) listCreateRequest(ctx context.Context, resourceGr return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-01-preview") + reqQP.Set("api-version", "2023-01-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -321,19 +319,22 @@ func (client *ScopeMapsClient) listHandleResponse(resp *http.Response) (ScopeMap // BeginUpdate - Updates a scope map with the specified parameters. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// scopeMapName - The name of the scope map. -// scopeMapUpdateParameters - The parameters for updating a scope map. -// options - ScopeMapsClientBeginUpdateOptions contains the optional parameters for the ScopeMapsClient.BeginUpdate method. +// +// Generated from API version 2023-01-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - registryName - The name of the container registry. +// - scopeMapName - The name of the scope map. +// - scopeMapUpdateParameters - The parameters for updating a scope map. +// - options - ScopeMapsClientBeginUpdateOptions contains the optional parameters for the ScopeMapsClient.BeginUpdate method. func (client *ScopeMapsClient) BeginUpdate(ctx context.Context, resourceGroupName string, registryName string, scopeMapName string, scopeMapUpdateParameters ScopeMapUpdateParameters, options *ScopeMapsClientBeginUpdateOptions) (*runtime.Poller[ScopeMapsClientUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.update(ctx, resourceGroupName, registryName, scopeMapName, scopeMapUpdateParameters, options) if err != nil { return nil, err } - return runtime.NewPoller[ScopeMapsClientUpdateResponse](resp, client.pl, nil) + return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[ScopeMapsClientUpdateResponse]{ + FinalStateVia: runtime.FinalStateViaAzureAsyncOp, + }) } else { return runtime.NewPollerFromResumeToken[ScopeMapsClientUpdateResponse](options.ResumeToken, client.pl, nil) } @@ -341,7 +342,8 @@ func (client *ScopeMapsClient) BeginUpdate(ctx context.Context, resourceGroupNam // Update - Updates a scope map with the specified parameters. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview +// +// Generated from API version 2023-01-01-preview func (client *ScopeMapsClient) update(ctx context.Context, resourceGroupName string, registryName string, scopeMapName string, scopeMapUpdateParameters ScopeMapUpdateParameters, options *ScopeMapsClientBeginUpdateOptions) (*http.Response, error) { req, err := client.updateCreateRequest(ctx, resourceGroupName, registryName, scopeMapName, scopeMapUpdateParameters, options) if err != nil { @@ -360,9 +362,6 @@ func (client *ScopeMapsClient) update(ctx context.Context, resourceGroupName str // updateCreateRequest creates the Update request. func (client *ScopeMapsClient) updateCreateRequest(ctx context.Context, resourceGroupName string, registryName string, scopeMapName string, scopeMapUpdateParameters ScopeMapUpdateParameters, options *ScopeMapsClientBeginUpdateOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/scopeMaps/{scopeMapName}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -381,7 +380,7 @@ func (client *ScopeMapsClient) updateCreateRequest(ctx context.Context, resource return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-01-preview") + reqQP.Set("api-version", "2023-01-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, scopeMapUpdateParameters) diff --git a/sdk/resourcemanager/containerregistry/armcontainerregistry/scopemaps_client_example_test.go b/sdk/resourcemanager/containerregistry/armcontainerregistry/scopemaps_client_example_test.go new file mode 100644 index 000000000000..80038a4a4cb5 --- /dev/null +++ b/sdk/resourcemanager/containerregistry/armcontainerregistry/scopemaps_client_example_test.go @@ -0,0 +1,202 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armcontainerregistry_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2023-01-01-preview/examples/ScopeMapList.json +func ExampleScopeMapsClient_NewListPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewScopeMapsClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListPager("myResourceGroup", "myRegistry", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.ScopeMapListResult = armcontainerregistry.ScopeMapListResult{ + // Value: []*armcontainerregistry.ScopeMap{ + // { + // Name: to.Ptr("myScopeMap"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/scopeMaps"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/scopeMaps/myScopeMap"), + // Properties: &armcontainerregistry.ScopeMapProperties{ + // Type: to.Ptr("IsUserDefined"), + // Actions: []*string{ + // to.Ptr("repositories/myrepository/contentWrite"), + // to.Ptr("repositories/myrepository/delete")}, + // CreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-01T23:14:37.0707808Z"); return t}()), + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2023-01-01-preview/examples/ScopeMapGet.json +func ExampleScopeMapsClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewScopeMapsClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "myResourceGroup", "myRegistry", "myScopeMap", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.ScopeMap = armcontainerregistry.ScopeMap{ + // Name: to.Ptr("myScopeMap"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/scopeMaps"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/scopeMaps/myScopeMap"), + // Properties: &armcontainerregistry.ScopeMapProperties{ + // Type: to.Ptr("IsUserDefined"), + // Actions: []*string{ + // to.Ptr("repositories/myrepository/contentWrite"), + // to.Ptr("repositories/myrepository/delete")}, + // CreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-01T23:14:37.0707808Z"); return t}()), + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2023-01-01-preview/examples/ScopeMapCreate.json +func ExampleScopeMapsClient_BeginCreate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewScopeMapsClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreate(ctx, "myResourceGroup", "myRegistry", "myScopeMap", armcontainerregistry.ScopeMap{ + Properties: &armcontainerregistry.ScopeMapProperties{ + Description: to.Ptr("Developer Scopes"), + Actions: []*string{ + to.Ptr("repositories/myrepository/contentWrite"), + to.Ptr("repositories/myrepository/delete")}, + }, + }, 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.ScopeMap = armcontainerregistry.ScopeMap{ + // Name: to.Ptr("myScopeMap"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/scopeMaps"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/scopeMaps/myScopeMap"), + // Properties: &armcontainerregistry.ScopeMapProperties{ + // Type: to.Ptr("IsUserDefined"), + // Actions: []*string{ + // to.Ptr("repositories/myrepository/contentWrite"), + // to.Ptr("repositories/myrepository/delete")}, + // CreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-01T23:14:37.0707808Z"); return t}()), + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2023-01-01-preview/examples/ScopeMapDelete.json +func ExampleScopeMapsClient_BeginDelete() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewScopeMapsClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginDelete(ctx, "myResourceGroup", "myRegistry", "myScopeMap", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + _, err = poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2023-01-01-preview/examples/ScopeMapUpdate.json +func ExampleScopeMapsClient_BeginUpdate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewScopeMapsClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginUpdate(ctx, "myResourceGroup", "myRegistry", "myScopeMap", armcontainerregistry.ScopeMapUpdateParameters{ + Properties: &armcontainerregistry.ScopeMapPropertiesUpdateParameters{ + Description: to.Ptr("Developer Scopes"), + Actions: []*string{ + to.Ptr("repositories/myrepository/contentWrite"), + to.Ptr("repositories/myrepository/contentRead")}, + }, + }, 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.ScopeMap = armcontainerregistry.ScopeMap{ + // Name: to.Ptr("myScopeMap"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/scopeMaps"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/scopeMaps/myScopeMap"), + // Properties: &armcontainerregistry.ScopeMapProperties{ + // Type: to.Ptr("IsUserDefined"), + // Actions: []*string{ + // to.Ptr("repositories/myrepository/contentWrite"), + // to.Ptr("repositories/myrepository/contentRead")}, + // CreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-01T23:14:37.0707808Z"); return t}()), + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // }, + // } +} diff --git a/sdk/resourcemanager/containerregistry/armcontainerregistry/zz_generated_taskruns_client.go b/sdk/resourcemanager/containerregistry/armcontainerregistry/taskruns_client.go similarity index 86% rename from sdk/resourcemanager/containerregistry/armcontainerregistry/zz_generated_taskruns_client.go rename to sdk/resourcemanager/containerregistry/armcontainerregistry/taskruns_client.go index b43215207571..97174fbe2a3f 100644 --- a/sdk/resourcemanager/containerregistry/armcontainerregistry/zz_generated_taskruns_client.go +++ b/sdk/resourcemanager/containerregistry/armcontainerregistry/taskruns_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armcontainerregistry @@ -31,9 +32,9 @@ type TaskRunsClient struct { } // NewTaskRunsClient creates a new instance of TaskRunsClient with the specified values. -// subscriptionID - The Microsoft Azure subscription ID. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewTaskRunsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*TaskRunsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,12 +57,13 @@ func NewTaskRunsClient(subscriptionID string, credential azcore.TokenCredential, // BeginCreate - Creates a task run for a container registry with the specified parameters. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2019-06-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// taskRunName - The name of the task run. -// taskRun - The parameters of a run that needs to scheduled. -// options - TaskRunsClientBeginCreateOptions contains the optional parameters for the TaskRunsClient.BeginCreate method. +// - resourceGroupName - The name of the resource group to which the container registry belongs. +// - registryName - The name of the container registry. +// - taskRunName - The name of the task run. +// - taskRun - The parameters of a run that needs to scheduled. +// - options - TaskRunsClientBeginCreateOptions contains the optional parameters for the TaskRunsClient.BeginCreate method. func (client *TaskRunsClient) BeginCreate(ctx context.Context, resourceGroupName string, registryName string, taskRunName string, taskRun TaskRun, options *TaskRunsClientBeginCreateOptions) (*runtime.Poller[TaskRunsClientCreateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.create(ctx, resourceGroupName, registryName, taskRunName, taskRun, options) @@ -76,6 +78,7 @@ func (client *TaskRunsClient) BeginCreate(ctx context.Context, resourceGroupName // Create - Creates a task run for a container registry with the specified parameters. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2019-06-01-preview func (client *TaskRunsClient) create(ctx context.Context, resourceGroupName string, registryName string, taskRunName string, taskRun TaskRun, options *TaskRunsClientBeginCreateOptions) (*http.Response, error) { req, err := client.createCreateRequest(ctx, resourceGroupName, registryName, taskRunName, taskRun, options) @@ -95,9 +98,6 @@ func (client *TaskRunsClient) create(ctx context.Context, resourceGroupName stri // createCreateRequest creates the Create request. func (client *TaskRunsClient) createCreateRequest(ctx context.Context, resourceGroupName string, registryName string, taskRunName string, taskRun TaskRun, options *TaskRunsClientBeginCreateOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/taskRuns/{taskRunName}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -124,11 +124,12 @@ func (client *TaskRunsClient) createCreateRequest(ctx context.Context, resourceG // BeginDelete - Deletes a specified task run resource. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2019-06-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// taskRunName - The name of the task run. -// options - TaskRunsClientBeginDeleteOptions contains the optional parameters for the TaskRunsClient.BeginDelete method. +// - resourceGroupName - The name of the resource group to which the container registry belongs. +// - registryName - The name of the container registry. +// - taskRunName - The name of the task run. +// - options - TaskRunsClientBeginDeleteOptions contains the optional parameters for the TaskRunsClient.BeginDelete method. func (client *TaskRunsClient) BeginDelete(ctx context.Context, resourceGroupName string, registryName string, taskRunName string, options *TaskRunsClientBeginDeleteOptions) (*runtime.Poller[TaskRunsClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, registryName, taskRunName, options) @@ -143,6 +144,7 @@ func (client *TaskRunsClient) BeginDelete(ctx context.Context, resourceGroupName // Delete - Deletes a specified task run resource. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2019-06-01-preview func (client *TaskRunsClient) deleteOperation(ctx context.Context, resourceGroupName string, registryName string, taskRunName string, options *TaskRunsClientBeginDeleteOptions) (*http.Response, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, registryName, taskRunName, options) @@ -162,9 +164,6 @@ func (client *TaskRunsClient) deleteOperation(ctx context.Context, resourceGroup // deleteCreateRequest creates the Delete request. func (client *TaskRunsClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, registryName string, taskRunName string, options *TaskRunsClientBeginDeleteOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/taskRuns/{taskRunName}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -191,11 +190,12 @@ func (client *TaskRunsClient) deleteCreateRequest(ctx context.Context, resourceG // Get - Gets the detailed information for a given task run. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2019-06-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// taskRunName - The name of the task run. -// options - TaskRunsClientGetOptions contains the optional parameters for the TaskRunsClient.Get method. +// - resourceGroupName - The name of the resource group to which the container registry belongs. +// - registryName - The name of the container registry. +// - taskRunName - The name of the task run. +// - options - TaskRunsClientGetOptions contains the optional parameters for the TaskRunsClient.Get method. func (client *TaskRunsClient) Get(ctx context.Context, resourceGroupName string, registryName string, taskRunName string, options *TaskRunsClientGetOptions) (TaskRunsClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, registryName, taskRunName, options) if err != nil { @@ -214,9 +214,6 @@ func (client *TaskRunsClient) Get(ctx context.Context, resourceGroupName string, // getCreateRequest creates the Get request. func (client *TaskRunsClient) getCreateRequest(ctx context.Context, resourceGroupName string, registryName string, taskRunName string, options *TaskRunsClientGetOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/taskRuns/{taskRunName}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -252,11 +249,12 @@ func (client *TaskRunsClient) getHandleResponse(resp *http.Response) (TaskRunsCl // GetDetails - Gets the detailed information for a given task run that includes all secrets. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2019-06-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// taskRunName - The name of the task run. -// options - TaskRunsClientGetDetailsOptions contains the optional parameters for the TaskRunsClient.GetDetails method. +// - resourceGroupName - The name of the resource group to which the container registry belongs. +// - registryName - The name of the container registry. +// - taskRunName - The name of the task run. +// - options - TaskRunsClientGetDetailsOptions contains the optional parameters for the TaskRunsClient.GetDetails method. func (client *TaskRunsClient) GetDetails(ctx context.Context, resourceGroupName string, registryName string, taskRunName string, options *TaskRunsClientGetDetailsOptions) (TaskRunsClientGetDetailsResponse, error) { req, err := client.getDetailsCreateRequest(ctx, resourceGroupName, registryName, taskRunName, options) if err != nil { @@ -275,9 +273,6 @@ func (client *TaskRunsClient) GetDetails(ctx context.Context, resourceGroupName // getDetailsCreateRequest creates the GetDetails request. func (client *TaskRunsClient) getDetailsCreateRequest(ctx context.Context, resourceGroupName string, registryName string, taskRunName string, options *TaskRunsClientGetDetailsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/taskRuns/{taskRunName}/listDetails" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -312,11 +307,11 @@ func (client *TaskRunsClient) getDetailsHandleResponse(resp *http.Response) (Tas } // NewListPager - Lists all the task runs for a specified container registry. -// If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2019-06-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// options - TaskRunsClientListOptions contains the optional parameters for the TaskRunsClient.List method. +// - resourceGroupName - The name of the resource group to which the container registry belongs. +// - registryName - The name of the container registry. +// - options - TaskRunsClientListOptions contains the optional parameters for the TaskRunsClient.NewListPager method. func (client *TaskRunsClient) NewListPager(resourceGroupName string, registryName string, options *TaskRunsClientListOptions) *runtime.Pager[TaskRunsClientListResponse] { return runtime.NewPager(runtime.PagingHandler[TaskRunsClientListResponse]{ More: func(page TaskRunsClientListResponse) bool { @@ -348,9 +343,6 @@ func (client *TaskRunsClient) NewListPager(resourceGroupName string, registryNam // listCreateRequest creates the List request. func (client *TaskRunsClient) listCreateRequest(ctx context.Context, resourceGroupName string, registryName string, options *TaskRunsClientListOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/taskRuns" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -382,12 +374,13 @@ func (client *TaskRunsClient) listHandleResponse(resp *http.Response) (TaskRunsC // BeginUpdate - Updates a task run with the specified parameters. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2019-06-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// taskRunName - The name of the task run. -// updateParameters - The parameters for updating a task run. -// options - TaskRunsClientBeginUpdateOptions contains the optional parameters for the TaskRunsClient.BeginUpdate method. +// - resourceGroupName - The name of the resource group to which the container registry belongs. +// - registryName - The name of the container registry. +// - taskRunName - The name of the task run. +// - updateParameters - The parameters for updating a task run. +// - options - TaskRunsClientBeginUpdateOptions contains the optional parameters for the TaskRunsClient.BeginUpdate method. func (client *TaskRunsClient) BeginUpdate(ctx context.Context, resourceGroupName string, registryName string, taskRunName string, updateParameters TaskRunUpdateParameters, options *TaskRunsClientBeginUpdateOptions) (*runtime.Poller[TaskRunsClientUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.update(ctx, resourceGroupName, registryName, taskRunName, updateParameters, options) @@ -402,6 +395,7 @@ func (client *TaskRunsClient) BeginUpdate(ctx context.Context, resourceGroupName // Update - Updates a task run with the specified parameters. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2019-06-01-preview func (client *TaskRunsClient) update(ctx context.Context, resourceGroupName string, registryName string, taskRunName string, updateParameters TaskRunUpdateParameters, options *TaskRunsClientBeginUpdateOptions) (*http.Response, error) { req, err := client.updateCreateRequest(ctx, resourceGroupName, registryName, taskRunName, updateParameters, options) @@ -421,9 +415,6 @@ func (client *TaskRunsClient) update(ctx context.Context, resourceGroupName stri // updateCreateRequest creates the Update request. func (client *TaskRunsClient) updateCreateRequest(ctx context.Context, resourceGroupName string, registryName string, taskRunName string, updateParameters TaskRunUpdateParameters, options *TaskRunsClientBeginUpdateOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/taskRuns/{taskRunName}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") diff --git a/sdk/resourcemanager/containerregistry/armcontainerregistry/taskruns_client_example_test.go b/sdk/resourcemanager/containerregistry/armcontainerregistry/taskruns_client_example_test.go new file mode 100644 index 000000000000..4aa218bfeab2 --- /dev/null +++ b/sdk/resourcemanager/containerregistry/armcontainerregistry/taskruns_client_example_test.go @@ -0,0 +1,408 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armcontainerregistry_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/TaskRunsGet.json +func ExampleTaskRunsClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewTaskRunsClient("4385cf00-2d3a-425a-832f-f4285b1c9dce", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "myResourceGroup", "myRegistry", "myRun", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.TaskRun = armcontainerregistry.TaskRun{ + // Name: to.Ptr("myRun"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/TaskRuns"), + // ID: to.Ptr("/subscriptions/3647315e-0c5b-4ce4-8739-b071e144b2c9/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/taskRuns/myRun"), + // Properties: &armcontainerregistry.TaskRunProperties{ + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // RunRequest: &armcontainerregistry.EncodedTaskRunRequest{ + // Type: to.Ptr("EncodedTaskRunRequest"), + // IsArchiveEnabled: to.Ptr(true), + // Credentials: &armcontainerregistry.Credentials{ + // }, + // EncodedTaskContent: to.Ptr("c3RlcHM6IAogIC0gY21kOiB7eyAuVmFsdWVzLmNvbW1hbmQgfX0K"), + // EncodedValuesContent: to.Ptr("Y29tbWFuZDogYmFzaCBlY2hvIHt7LlJ1bi5SZWdpc3RyeX19Cg=="), + // Platform: &armcontainerregistry.PlatformProperties{ + // Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), + // OS: to.Ptr(armcontainerregistry.OSLinux), + // }, + // Values: []*armcontainerregistry.SetValue{ + // }, + // }, + // RunResult: &armcontainerregistry.Run{ + // Name: to.Ptr("yd5"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/runs"), + // ID: to.Ptr("/subscriptions/3647315e-0c5b-4ce4-8739-b071e144b2c9/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/runs/yd5"), + // Properties: &armcontainerregistry.RunProperties{ + // AgentConfiguration: &armcontainerregistry.AgentProperties{ + // CPU: to.Ptr[int32](2), + // }, + // CreateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-09-06T17:23:21.9261521+00:00"); return t}()), + // FinishTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-09-06T17:23:29.8792157+00:00"); return t}()), + // IsArchiveEnabled: to.Ptr(true), + // LastUpdatedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-09-06T17:23:29+00:00"); return t}()), + // Platform: &armcontainerregistry.PlatformProperties{ + // Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), + // OS: to.Ptr(armcontainerregistry.OSLinux), + // }, + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // RunID: to.Ptr("yd5"), + // RunType: to.Ptr(armcontainerregistry.RunTypeQuickRun), + // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-09-06T17:23:22.1348714+00:00"); return t}()), + // Status: to.Ptr(armcontainerregistry.RunStatusSucceeded), + // }, + // }, + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/TaskRunsCreate.json +func ExampleTaskRunsClient_BeginCreate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewTaskRunsClient("4385cf00-2d3a-425a-832f-f4285b1c9dce", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreate(ctx, "myResourceGroup", "myRegistry", "myRun", armcontainerregistry.TaskRun{ + Properties: &armcontainerregistry.TaskRunProperties{ + ForceUpdateTag: to.Ptr("test"), + RunRequest: &armcontainerregistry.EncodedTaskRunRequest{ + Type: to.Ptr("EncodedTaskRunRequest"), + Credentials: &armcontainerregistry.Credentials{}, + EncodedTaskContent: to.Ptr("c3RlcHM6IAogIC0gY21kOiB7eyAuVmFsdWVzLmNvbW1hbmQgfX0K"), + EncodedValuesContent: to.Ptr("Y29tbWFuZDogYmFzaCBlY2hvIHt7LlJ1bi5SZWdpc3RyeX19Cg=="), + Platform: &armcontainerregistry.PlatformProperties{ + Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), + OS: to.Ptr(armcontainerregistry.OSLinux), + }, + Values: []*armcontainerregistry.SetValue{}, + }, + }, + }, 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.TaskRun = armcontainerregistry.TaskRun{ + // Name: to.Ptr("myrun"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/TaskRuns"), + // ID: to.Ptr("/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/taskRuns/myRun"), + // Properties: &armcontainerregistry.TaskRunProperties{ + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // RunRequest: &armcontainerregistry.EncodedTaskRunRequest{ + // Type: to.Ptr("EncodedTaskRunRequest"), + // IsArchiveEnabled: to.Ptr(true), + // Credentials: &armcontainerregistry.Credentials{ + // }, + // EncodedTaskContent: to.Ptr("c3RlcHM6IAogIC0gY21kOiB7eyAuVmFsdWVzLmNvbW1hbmQgfX0K"), + // EncodedValuesContent: to.Ptr("Y29tbWFuZDogYmFzaCBlY2hvIHt7LlJ1bi5SZWdpc3RyeX19Cg=="), + // Platform: &armcontainerregistry.PlatformProperties{ + // Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), + // OS: to.Ptr(armcontainerregistry.OSLinux), + // }, + // Values: []*armcontainerregistry.SetValue{ + // }, + // }, + // RunResult: &armcontainerregistry.Run{ + // Name: to.Ptr("yd5"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/runs"), + // ID: to.Ptr("/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/runs/yd5"), + // Properties: &armcontainerregistry.RunProperties{ + // AgentConfiguration: &armcontainerregistry.AgentProperties{ + // CPU: to.Ptr[int32](2), + // }, + // CreateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-09-06T17:23:21.9261521+00:00"); return t}()), + // IsArchiveEnabled: to.Ptr(true), + // LastUpdatedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-09-06T17:23:21+00:00"); return t}()), + // Platform: &armcontainerregistry.PlatformProperties{ + // Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), + // OS: to.Ptr(armcontainerregistry.OSLinux), + // }, + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // RunID: to.Ptr("yd5"), + // RunType: to.Ptr(armcontainerregistry.RunTypeQuickRun), + // Status: to.Ptr(armcontainerregistry.RunStatusQueued), + // }, + // }, + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/TaskRunsDelete.json +func ExampleTaskRunsClient_BeginDelete() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewTaskRunsClient("4385cf00-2d3a-425a-832f-f4285b1c9dce", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginDelete(ctx, "myResourceGroup", "myRegistry", "myRun", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + _, err = poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/TaskRunsUpdate.json +func ExampleTaskRunsClient_BeginUpdate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewTaskRunsClient("4385cf00-2d3a-425a-832f-f4285b1c9dce", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginUpdate(ctx, "myResourceGroup", "myRegistry", "myRun", armcontainerregistry.TaskRunUpdateParameters{ + Properties: &armcontainerregistry.TaskRunPropertiesUpdateParameters{ + ForceUpdateTag: to.Ptr("test"), + RunRequest: &armcontainerregistry.EncodedTaskRunRequest{ + Type: to.Ptr("EncodedTaskRunRequest"), + IsArchiveEnabled: to.Ptr(true), + Credentials: &armcontainerregistry.Credentials{}, + EncodedTaskContent: to.Ptr("c3RlcHM6IAogIC0gY21kOiB7eyAuVmFsdWVzLmNvbW1hbmQgfX0K"), + EncodedValuesContent: to.Ptr("Y29tbWFuZDogYmFzaCBlY2hvIHt7LlJ1bi5SZWdpc3RyeX19Cg=="), + Platform: &armcontainerregistry.PlatformProperties{ + Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), + OS: to.Ptr(armcontainerregistry.OSLinux), + }, + Values: []*armcontainerregistry.SetValue{}, + }, + }, + }, 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.TaskRun = armcontainerregistry.TaskRun{ + // Name: to.Ptr("mytestrun"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/TaskRuns"), + // ID: to.Ptr("/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/taskRuns/myRun"), + // Properties: &armcontainerregistry.TaskRunProperties{ + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // RunRequest: &armcontainerregistry.EncodedTaskRunRequest{ + // Type: to.Ptr("EncodedTaskRunRequest"), + // IsArchiveEnabled: to.Ptr(true), + // Credentials: &armcontainerregistry.Credentials{ + // }, + // EncodedTaskContent: to.Ptr("c3RlcHM6IAogIC0gY21kOiB7eyAuVmFsdWVzLmNvbW1hbmQgfX0K"), + // EncodedValuesContent: to.Ptr("Y29tbWFuZDogYmFzaCBlY2hvIHt7LlJ1bi5SZWdpc3RyeX19Cg=="), + // Platform: &armcontainerregistry.PlatformProperties{ + // Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), + // OS: to.Ptr(armcontainerregistry.OSLinux), + // }, + // Values: []*armcontainerregistry.SetValue{ + // }, + // }, + // RunResult: &armcontainerregistry.Run{ + // Name: to.Ptr("yd6"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/runs"), + // ID: to.Ptr("/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/runs/yd6"), + // Properties: &armcontainerregistry.RunProperties{ + // AgentConfiguration: &armcontainerregistry.AgentProperties{ + // CPU: to.Ptr[int32](2), + // }, + // CreateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-09-06T17:31:34.1184031+00:00"); return t}()), + // IsArchiveEnabled: to.Ptr(true), + // LastUpdatedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-09-06T17:31:34+00:00"); return t}()), + // Platform: &armcontainerregistry.PlatformProperties{ + // Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), + // OS: to.Ptr(armcontainerregistry.OSLinux), + // }, + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // RunID: to.Ptr("yd6"), + // RunType: to.Ptr(armcontainerregistry.RunTypeQuickRun), + // Status: to.Ptr(armcontainerregistry.RunStatusQueued), + // }, + // }, + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/TaskRunsGetDetails.json +func ExampleTaskRunsClient_GetDetails() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewTaskRunsClient("4385cf00-2d3a-425a-832f-f4285b1c9dce", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.GetDetails(ctx, "myResourceGroup", "myRegistry", "myRun", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.TaskRun = armcontainerregistry.TaskRun{ + // Name: to.Ptr("myRun"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/TaskRuns"), + // ID: to.Ptr("/subscriptions/3647315e-0c5b-4ce4-8739-b071e144b2c9/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/taskRuns/myRun"), + // Properties: &armcontainerregistry.TaskRunProperties{ + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // RunRequest: &armcontainerregistry.EncodedTaskRunRequest{ + // Type: to.Ptr("EncodedTaskRunRequest"), + // IsArchiveEnabled: to.Ptr(true), + // Credentials: &armcontainerregistry.Credentials{ + // }, + // EncodedTaskContent: to.Ptr("c3RlcHM6IAogIC0gY21kOiB7eyAuVmFsdWVzLmNvbW1hbmQgfX0K"), + // EncodedValuesContent: to.Ptr("Y29tbWFuZDogYmFzaCBlY2hvIHt7LlJ1bi5SZWdpc3RyeX19Cg=="), + // Platform: &armcontainerregistry.PlatformProperties{ + // Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), + // OS: to.Ptr(armcontainerregistry.OSLinux), + // }, + // Values: []*armcontainerregistry.SetValue{ + // }, + // }, + // RunResult: &armcontainerregistry.Run{ + // Name: to.Ptr("yd5"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/runs"), + // ID: to.Ptr("/subscriptions/3647315e-0c5b-4ce4-8739-b071e144b2c9/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/runs/yd5"), + // Properties: &armcontainerregistry.RunProperties{ + // AgentConfiguration: &armcontainerregistry.AgentProperties{ + // CPU: to.Ptr[int32](2), + // }, + // CreateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-09-06T17:23:21.9261521+00:00"); return t}()), + // FinishTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-09-06T17:23:29.8792157+00:00"); return t}()), + // IsArchiveEnabled: to.Ptr(true), + // LastUpdatedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-09-06T17:23:29+00:00"); return t}()), + // Platform: &armcontainerregistry.PlatformProperties{ + // Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), + // OS: to.Ptr(armcontainerregistry.OSLinux), + // }, + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // RunID: to.Ptr("yd5"), + // RunType: to.Ptr(armcontainerregistry.RunTypeQuickRun), + // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-09-06T17:23:22.1348714+00:00"); return t}()), + // Status: to.Ptr(armcontainerregistry.RunStatusSucceeded), + // }, + // }, + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/TaskRunsList.json +func ExampleTaskRunsClient_NewListPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewTaskRunsClient("4385cf00-2d3a-425a-832f-f4285b1c9dce", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListPager("myResourceGroup", "myRegistry", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.TaskRunListResult = armcontainerregistry.TaskRunListResult{ + // Value: []*armcontainerregistry.TaskRun{ + // { + // Name: to.Ptr("mytestrun"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/TaskRuns"), + // ID: to.Ptr("/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/taskRuns/myRun"), + // Properties: &armcontainerregistry.TaskRunProperties{ + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // RunRequest: &armcontainerregistry.EncodedTaskRunRequest{ + // Type: to.Ptr("EncodedTaskRunRequest"), + // IsArchiveEnabled: to.Ptr(true), + // Credentials: &armcontainerregistry.Credentials{ + // }, + // EncodedTaskContent: to.Ptr("c3RlcHM6IAogIC0gY21kOiB7eyAuVmFsdWVzLmNvbW1hbmQgfX0K"), + // EncodedValuesContent: to.Ptr("Y29tbWFuZDogYmFzaCBlY2hvIHt7LlJ1bi5SZWdpc3RyeX19Cg=="), + // Platform: &armcontainerregistry.PlatformProperties{ + // Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), + // OS: to.Ptr(armcontainerregistry.OSLinux), + // }, + // Values: []*armcontainerregistry.SetValue{ + // }, + // }, + // RunResult: &armcontainerregistry.Run{ + // Name: to.Ptr("yd4"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/runs"), + // ID: to.Ptr("/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/runs/yd4"), + // Properties: &armcontainerregistry.RunProperties{ + // AgentConfiguration: &armcontainerregistry.AgentProperties{ + // CPU: to.Ptr[int32](2), + // }, + // CreateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-09-04T17:15:29.2278794+00:00"); return t}()), + // FinishTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-09-04T17:15:37.0349516+00:00"); return t}()), + // IsArchiveEnabled: to.Ptr(true), + // LastUpdatedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-09-04T17:15:37+00:00"); return t}()), + // Platform: &armcontainerregistry.PlatformProperties{ + // Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), + // OS: to.Ptr(armcontainerregistry.OSLinux), + // }, + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // RunID: to.Ptr("yd4"), + // RunType: to.Ptr(armcontainerregistry.RunTypeQuickRun), + // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-09-04T17:15:29.4589616+00:00"); return t}()), + // Status: to.Ptr(armcontainerregistry.RunStatusSucceeded), + // }, + // }, + // }, + // }}, + // } + } +} diff --git a/sdk/resourcemanager/containerregistry/armcontainerregistry/zz_generated_tasks_client.go b/sdk/resourcemanager/containerregistry/armcontainerregistry/tasks_client.go similarity index 86% rename from sdk/resourcemanager/containerregistry/armcontainerregistry/zz_generated_tasks_client.go rename to sdk/resourcemanager/containerregistry/armcontainerregistry/tasks_client.go index 8b2c962b2ff0..2c2b9ed900f7 100644 --- a/sdk/resourcemanager/containerregistry/armcontainerregistry/zz_generated_tasks_client.go +++ b/sdk/resourcemanager/containerregistry/armcontainerregistry/tasks_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armcontainerregistry @@ -31,9 +32,9 @@ type TasksClient struct { } // NewTasksClient creates a new instance of TasksClient with the specified values. -// subscriptionID - The Microsoft Azure subscription ID. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewTasksClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*TasksClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,12 +57,13 @@ func NewTasksClient(subscriptionID string, credential azcore.TokenCredential, op // BeginCreate - Creates a task for a container registry with the specified parameters. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2019-06-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// taskName - The name of the container registry task. -// taskCreateParameters - The parameters for creating a task. -// options - TasksClientBeginCreateOptions contains the optional parameters for the TasksClient.BeginCreate method. +// - resourceGroupName - The name of the resource group to which the container registry belongs. +// - registryName - The name of the container registry. +// - taskName - The name of the container registry task. +// - taskCreateParameters - The parameters for creating a task. +// - options - TasksClientBeginCreateOptions contains the optional parameters for the TasksClient.BeginCreate method. func (client *TasksClient) BeginCreate(ctx context.Context, resourceGroupName string, registryName string, taskName string, taskCreateParameters Task, options *TasksClientBeginCreateOptions) (*runtime.Poller[TasksClientCreateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.create(ctx, resourceGroupName, registryName, taskName, taskCreateParameters, options) @@ -76,6 +78,7 @@ func (client *TasksClient) BeginCreate(ctx context.Context, resourceGroupName st // Create - Creates a task for a container registry with the specified parameters. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2019-06-01-preview func (client *TasksClient) create(ctx context.Context, resourceGroupName string, registryName string, taskName string, taskCreateParameters Task, options *TasksClientBeginCreateOptions) (*http.Response, error) { req, err := client.createCreateRequest(ctx, resourceGroupName, registryName, taskName, taskCreateParameters, options) @@ -95,9 +98,6 @@ func (client *TasksClient) create(ctx context.Context, resourceGroupName string, // createCreateRequest creates the Create request. func (client *TasksClient) createCreateRequest(ctx context.Context, resourceGroupName string, registryName string, taskName string, taskCreateParameters Task, options *TasksClientBeginCreateOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/tasks/{taskName}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -124,11 +124,12 @@ func (client *TasksClient) createCreateRequest(ctx context.Context, resourceGrou // BeginDelete - Deletes a specified task. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2019-06-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// taskName - The name of the container registry task. -// options - TasksClientBeginDeleteOptions contains the optional parameters for the TasksClient.BeginDelete method. +// - resourceGroupName - The name of the resource group to which the container registry belongs. +// - registryName - The name of the container registry. +// - taskName - The name of the container registry task. +// - options - TasksClientBeginDeleteOptions contains the optional parameters for the TasksClient.BeginDelete method. func (client *TasksClient) BeginDelete(ctx context.Context, resourceGroupName string, registryName string, taskName string, options *TasksClientBeginDeleteOptions) (*runtime.Poller[TasksClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, registryName, taskName, options) @@ -143,6 +144,7 @@ func (client *TasksClient) BeginDelete(ctx context.Context, resourceGroupName st // Delete - Deletes a specified task. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2019-06-01-preview func (client *TasksClient) deleteOperation(ctx context.Context, resourceGroupName string, registryName string, taskName string, options *TasksClientBeginDeleteOptions) (*http.Response, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, registryName, taskName, options) @@ -162,9 +164,6 @@ func (client *TasksClient) deleteOperation(ctx context.Context, resourceGroupNam // deleteCreateRequest creates the Delete request. func (client *TasksClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, registryName string, taskName string, options *TasksClientBeginDeleteOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/tasks/{taskName}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -191,11 +190,12 @@ func (client *TasksClient) deleteCreateRequest(ctx context.Context, resourceGrou // Get - Get the properties of a specified task. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2019-06-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// taskName - The name of the container registry task. -// options - TasksClientGetOptions contains the optional parameters for the TasksClient.Get method. +// - resourceGroupName - The name of the resource group to which the container registry belongs. +// - registryName - The name of the container registry. +// - taskName - The name of the container registry task. +// - options - TasksClientGetOptions contains the optional parameters for the TasksClient.Get method. func (client *TasksClient) Get(ctx context.Context, resourceGroupName string, registryName string, taskName string, options *TasksClientGetOptions) (TasksClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, registryName, taskName, options) if err != nil { @@ -214,9 +214,6 @@ func (client *TasksClient) Get(ctx context.Context, resourceGroupName string, re // getCreateRequest creates the Get request. func (client *TasksClient) getCreateRequest(ctx context.Context, resourceGroupName string, registryName string, taskName string, options *TasksClientGetOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/tasks/{taskName}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -252,11 +249,12 @@ func (client *TasksClient) getHandleResponse(resp *http.Response) (TasksClientGe // GetDetails - Returns a task with extended information that includes all secrets. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2019-06-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// taskName - The name of the container registry task. -// options - TasksClientGetDetailsOptions contains the optional parameters for the TasksClient.GetDetails method. +// - resourceGroupName - The name of the resource group to which the container registry belongs. +// - registryName - The name of the container registry. +// - taskName - The name of the container registry task. +// - options - TasksClientGetDetailsOptions contains the optional parameters for the TasksClient.GetDetails method. func (client *TasksClient) GetDetails(ctx context.Context, resourceGroupName string, registryName string, taskName string, options *TasksClientGetDetailsOptions) (TasksClientGetDetailsResponse, error) { req, err := client.getDetailsCreateRequest(ctx, resourceGroupName, registryName, taskName, options) if err != nil { @@ -275,9 +273,6 @@ func (client *TasksClient) GetDetails(ctx context.Context, resourceGroupName str // getDetailsCreateRequest creates the GetDetails request. func (client *TasksClient) getDetailsCreateRequest(ctx context.Context, resourceGroupName string, registryName string, taskName string, options *TasksClientGetDetailsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/tasks/{taskName}/listDetails" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -312,11 +307,11 @@ func (client *TasksClient) getDetailsHandleResponse(resp *http.Response) (TasksC } // NewListPager - Lists all the tasks for a specified container registry. -// If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2019-06-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// options - TasksClientListOptions contains the optional parameters for the TasksClient.List method. +// - resourceGroupName - The name of the resource group to which the container registry belongs. +// - registryName - The name of the container registry. +// - options - TasksClientListOptions contains the optional parameters for the TasksClient.NewListPager method. func (client *TasksClient) NewListPager(resourceGroupName string, registryName string, options *TasksClientListOptions) *runtime.Pager[TasksClientListResponse] { return runtime.NewPager(runtime.PagingHandler[TasksClientListResponse]{ More: func(page TasksClientListResponse) bool { @@ -348,9 +343,6 @@ func (client *TasksClient) NewListPager(resourceGroupName string, registryName s // listCreateRequest creates the List request. func (client *TasksClient) listCreateRequest(ctx context.Context, resourceGroupName string, registryName string, options *TasksClientListOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/tasks" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -382,12 +374,13 @@ func (client *TasksClient) listHandleResponse(resp *http.Response) (TasksClientL // BeginUpdate - Updates a task with the specified parameters. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2019-06-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// taskName - The name of the container registry task. -// taskUpdateParameters - The parameters for updating a task. -// options - TasksClientBeginUpdateOptions contains the optional parameters for the TasksClient.BeginUpdate method. +// - resourceGroupName - The name of the resource group to which the container registry belongs. +// - registryName - The name of the container registry. +// - taskName - The name of the container registry task. +// - taskUpdateParameters - The parameters for updating a task. +// - options - TasksClientBeginUpdateOptions contains the optional parameters for the TasksClient.BeginUpdate method. func (client *TasksClient) BeginUpdate(ctx context.Context, resourceGroupName string, registryName string, taskName string, taskUpdateParameters TaskUpdateParameters, options *TasksClientBeginUpdateOptions) (*runtime.Poller[TasksClientUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.update(ctx, resourceGroupName, registryName, taskName, taskUpdateParameters, options) @@ -402,6 +395,7 @@ func (client *TasksClient) BeginUpdate(ctx context.Context, resourceGroupName st // Update - Updates a task with the specified parameters. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2019-06-01-preview func (client *TasksClient) update(ctx context.Context, resourceGroupName string, registryName string, taskName string, taskUpdateParameters TaskUpdateParameters, options *TasksClientBeginUpdateOptions) (*http.Response, error) { req, err := client.updateCreateRequest(ctx, resourceGroupName, registryName, taskName, taskUpdateParameters, options) @@ -421,9 +415,6 @@ func (client *TasksClient) update(ctx context.Context, resourceGroupName string, // updateCreateRequest creates the Update request. func (client *TasksClient) updateCreateRequest(ctx context.Context, resourceGroupName string, registryName string, taskName string, taskUpdateParameters TaskUpdateParameters, options *TasksClientBeginUpdateOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/tasks/{taskName}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") diff --git a/sdk/resourcemanager/containerregistry/armcontainerregistry/tasks_client_example_test.go b/sdk/resourcemanager/containerregistry/armcontainerregistry/tasks_client_example_test.go new file mode 100644 index 000000000000..fbf979a9b533 --- /dev/null +++ b/sdk/resourcemanager/containerregistry/armcontainerregistry/tasks_client_example_test.go @@ -0,0 +1,1651 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armcontainerregistry_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/TasksList.json +func ExampleTasksClient_NewListPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewTasksClient("4385cf00-2d3a-425a-832f-f4285b1c9dce", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListPager("myResourceGroup", "myRegistry", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.TaskListResult = armcontainerregistry.TaskListResult{ + // Value: []*armcontainerregistry.Task{ + // { + // Name: to.Ptr("myTask"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/tasks"), + // ID: to.Ptr("/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tasks/myTask"), + // Location: to.Ptr("eastus"), + // Tags: map[string]*string{ + // "testkey": to.Ptr("value"), + // }, + // Identity: &armcontainerregistry.IdentityProperties{ + // Type: to.Ptr(armcontainerregistry.ResourceIdentityTypeSystemAssigned), + // PrincipalID: to.Ptr("fa153151-b9fd-46f4-9088-5e6600f2689v"), + // TenantID: to.Ptr("f686d426-8d16-42db-81b7-abu4gm510ccd"), + // }, + // Properties: &armcontainerregistry.TaskProperties{ + // AgentConfiguration: &armcontainerregistry.AgentProperties{ + // CPU: to.Ptr[int32](2), + // }, + // CreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-01-25T06:54:23.536Z"); return t}()), + // Credentials: &armcontainerregistry.Credentials{ + // CustomRegistries: map[string]*armcontainerregistry.CustomRegistryCredentials{ + // "myRegistry.azure.io": nil, + // }, + // }, + // IsSystemTask: to.Ptr(false), + // Platform: &armcontainerregistry.PlatformProperties{ + // Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), + // OS: to.Ptr(armcontainerregistry.OSLinux), + // }, + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // Status: to.Ptr(armcontainerregistry.TaskStatusEnabled), + // Step: &armcontainerregistry.DockerBuildStep{ + // Type: to.Ptr(armcontainerregistry.StepTypeDocker), + // ContextPath: to.Ptr("src"), + // Arguments: []*armcontainerregistry.Argument{ + // { + // Name: to.Ptr("mytestargument"), + // IsSecret: to.Ptr(false), + // Value: to.Ptr("mytestvalue"), + // }}, + // DockerFilePath: to.Ptr("src/DockerFile"), + // ImageNames: []*string{ + // to.Ptr("azurerest:testtag")}, + // IsPushEnabled: to.Ptr(true), + // NoCache: to.Ptr(false), + // }, + // Trigger: &armcontainerregistry.TriggerProperties{ + // BaseImageTrigger: &armcontainerregistry.BaseImageTrigger{ + // Name: to.Ptr("myBaseImageTrigger"), + // BaseImageTriggerType: to.Ptr(armcontainerregistry.BaseImageTriggerTypeRuntime), + // Status: to.Ptr(armcontainerregistry.TriggerStatusEnabled), + // UpdateTriggerPayloadType: to.Ptr(armcontainerregistry.UpdateTriggerPayloadTypeDefault), + // }, + // SourceTriggers: []*armcontainerregistry.SourceTrigger{ + // { + // Name: to.Ptr("mySourceTrigger"), + // SourceRepository: &armcontainerregistry.SourceProperties{ + // Branch: to.Ptr("master"), + // RepositoryURL: to.Ptr("https://github.com/Azure/azure-rest-api-specs"), + // SourceControlType: to.Ptr(armcontainerregistry.SourceControlTypeGithub), + // }, + // SourceTriggerEvents: []*armcontainerregistry.SourceTriggerEvent{ + // to.Ptr(armcontainerregistry.SourceTriggerEventCommit)}, + // Status: to.Ptr(armcontainerregistry.TriggerStatusEnabled), + // }}, + // TimerTriggers: []*armcontainerregistry.TimerTrigger{ + // { + // Name: to.Ptr("myTimerTrigger"), + // Schedule: to.Ptr("30 9 * * 1-5"), + // Status: to.Ptr(armcontainerregistry.TriggerStatusEnabled), + // }}, + // }, + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/TasksGet.json +func ExampleTasksClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewTasksClient("4385cf00-2d3a-425a-832f-f4285b1c9dce", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "myResourceGroup", "myRegistry", "myTask", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.Task = armcontainerregistry.Task{ + // Name: to.Ptr("myTask"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/tasks"), + // ID: to.Ptr("/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tasks/myTask"), + // Location: to.Ptr("eastus"), + // Tags: map[string]*string{ + // "testkey": to.Ptr("value"), + // }, + // Identity: &armcontainerregistry.IdentityProperties{ + // Type: to.Ptr(armcontainerregistry.ResourceIdentityTypeSystemAssigned), + // PrincipalID: to.Ptr("fa153151-b9fd-46f4-9088-5e6600f2689v"), + // TenantID: to.Ptr("f686d426-8d16-42db-81b7-abu4gm510ccd"), + // }, + // Properties: &armcontainerregistry.TaskProperties{ + // AgentConfiguration: &armcontainerregistry.AgentProperties{ + // CPU: to.Ptr[int32](2), + // }, + // CreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-01-25T06:54:23.536Z"); return t}()), + // Credentials: &armcontainerregistry.Credentials{ + // CustomRegistries: map[string]*armcontainerregistry.CustomRegistryCredentials{ + // "myregistry.azure.io": nil, + // }, + // }, + // IsSystemTask: to.Ptr(false), + // Platform: &armcontainerregistry.PlatformProperties{ + // Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), + // OS: to.Ptr(armcontainerregistry.OSLinux), + // }, + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // Status: to.Ptr(armcontainerregistry.TaskStatusEnabled), + // Step: &armcontainerregistry.DockerBuildStep{ + // Type: to.Ptr(armcontainerregistry.StepTypeDocker), + // ContextPath: to.Ptr("src"), + // Arguments: []*armcontainerregistry.Argument{ + // { + // Name: to.Ptr("mytestargument"), + // IsSecret: to.Ptr(false), + // Value: to.Ptr("mytestvalue"), + // }}, + // DockerFilePath: to.Ptr("src/DockerFile"), + // ImageNames: []*string{ + // to.Ptr("azurerest:testtag")}, + // IsPushEnabled: to.Ptr(true), + // NoCache: to.Ptr(false), + // }, + // Trigger: &armcontainerregistry.TriggerProperties{ + // BaseImageTrigger: &armcontainerregistry.BaseImageTrigger{ + // Name: to.Ptr("myBaseImageTrigger"), + // BaseImageTriggerType: to.Ptr(armcontainerregistry.BaseImageTriggerTypeRuntime), + // Status: to.Ptr(armcontainerregistry.TriggerStatusEnabled), + // UpdateTriggerPayloadType: to.Ptr(armcontainerregistry.UpdateTriggerPayloadTypeToken), + // }, + // SourceTriggers: []*armcontainerregistry.SourceTrigger{ + // { + // Name: to.Ptr("mySourceTrigger"), + // SourceRepository: &armcontainerregistry.SourceProperties{ + // Branch: to.Ptr("master"), + // RepositoryURL: to.Ptr("https://github.com/Azure/azure-rest-api-specs"), + // SourceControlType: to.Ptr(armcontainerregistry.SourceControlTypeGithub), + // }, + // SourceTriggerEvents: []*armcontainerregistry.SourceTriggerEvent{ + // to.Ptr(armcontainerregistry.SourceTriggerEventCommit)}, + // Status: to.Ptr(armcontainerregistry.TriggerStatusEnabled), + // }}, + // TimerTriggers: []*armcontainerregistry.TimerTrigger{ + // { + // Name: to.Ptr("myTimerTrigger"), + // Schedule: to.Ptr("30 9 * * 1-5"), + // Status: to.Ptr(armcontainerregistry.TriggerStatusEnabled), + // }}, + // }, + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/TasksCreate.json +func ExampleTasksClient_BeginCreate_tasksCreate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewTasksClient("4385cf00-2d3a-425a-832f-f4285b1c9dce", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreate(ctx, "myResourceGroup", "myRegistry", "mytTask", armcontainerregistry.Task{ + Location: to.Ptr("eastus"), + Tags: map[string]*string{ + "testkey": to.Ptr("value"), + }, + Identity: &armcontainerregistry.IdentityProperties{ + Type: to.Ptr(armcontainerregistry.ResourceIdentityTypeSystemAssigned), + }, + Properties: &armcontainerregistry.TaskProperties{ + AgentConfiguration: &armcontainerregistry.AgentProperties{ + CPU: to.Ptr[int32](2), + }, + IsSystemTask: to.Ptr(false), + LogTemplate: to.Ptr("acr/tasks:{{.Run.OS}}"), + Platform: &armcontainerregistry.PlatformProperties{ + Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), + OS: to.Ptr(armcontainerregistry.OSLinux), + }, + Status: to.Ptr(armcontainerregistry.TaskStatusEnabled), + Step: &armcontainerregistry.DockerBuildStep{ + Type: to.Ptr(armcontainerregistry.StepTypeDocker), + ContextPath: to.Ptr("src"), + Arguments: []*armcontainerregistry.Argument{ + { + Name: to.Ptr("mytestargument"), + IsSecret: to.Ptr(false), + Value: to.Ptr("mytestvalue"), + }, + { + Name: to.Ptr("mysecrettestargument"), + IsSecret: to.Ptr(true), + Value: to.Ptr("mysecrettestvalue"), + }}, + DockerFilePath: to.Ptr("src/DockerFile"), + ImageNames: []*string{ + to.Ptr("azurerest:testtag")}, + IsPushEnabled: to.Ptr(true), + NoCache: to.Ptr(false), + }, + Trigger: &armcontainerregistry.TriggerProperties{ + BaseImageTrigger: &armcontainerregistry.BaseImageTrigger{ + Name: to.Ptr("myBaseImageTrigger"), + BaseImageTriggerType: to.Ptr(armcontainerregistry.BaseImageTriggerTypeRuntime), + UpdateTriggerEndpoint: to.Ptr("https://user:pass@mycicd.webhook.com?token=foo"), + UpdateTriggerPayloadType: to.Ptr(armcontainerregistry.UpdateTriggerPayloadTypeToken), + }, + SourceTriggers: []*armcontainerregistry.SourceTrigger{ + { + Name: to.Ptr("mySourceTrigger"), + SourceRepository: &armcontainerregistry.SourceProperties{ + Branch: to.Ptr("master"), + RepositoryURL: to.Ptr("https://github.com/Azure/azure-rest-api-specs"), + SourceControlAuthProperties: &armcontainerregistry.AuthInfo{ + Token: to.Ptr("xxxxx"), + TokenType: to.Ptr(armcontainerregistry.TokenTypePAT), + }, + SourceControlType: to.Ptr(armcontainerregistry.SourceControlTypeGithub), + }, + SourceTriggerEvents: []*armcontainerregistry.SourceTriggerEvent{ + to.Ptr(armcontainerregistry.SourceTriggerEventCommit)}, + }}, + TimerTriggers: []*armcontainerregistry.TimerTrigger{ + { + Name: to.Ptr("myTimerTrigger"), + Schedule: to.Ptr("30 9 * * 1-5"), + }}, + }, + }, + }, 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.Task = armcontainerregistry.Task{ + // Name: to.Ptr("myTask"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/tasks"), + // ID: to.Ptr("/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tasks/myTask"), + // Location: to.Ptr("eastus"), + // Tags: map[string]*string{ + // "testkey": to.Ptr("value"), + // }, + // Identity: &armcontainerregistry.IdentityProperties{ + // Type: to.Ptr(armcontainerregistry.ResourceIdentityTypeSystemAssigned), + // PrincipalID: to.Ptr("fa153151-b9fd-46f4-9088-5e6600f2689v"), + // TenantID: to.Ptr("f686d426-8d16-42db-81b7-abu4gm510ccd"), + // }, + // Properties: &armcontainerregistry.TaskProperties{ + // AgentConfiguration: &armcontainerregistry.AgentProperties{ + // CPU: to.Ptr[int32](2), + // }, + // CreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-01-25T06:54:23.536Z"); return t}()), + // IsSystemTask: to.Ptr(false), + // LogTemplate: to.Ptr("acr/tasks:{{.Run.OS}}"), + // Platform: &armcontainerregistry.PlatformProperties{ + // Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), + // OS: to.Ptr(armcontainerregistry.OSLinux), + // }, + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // Status: to.Ptr(armcontainerregistry.TaskStatusEnabled), + // Step: &armcontainerregistry.DockerBuildStep{ + // Type: to.Ptr(armcontainerregistry.StepTypeDocker), + // ContextPath: to.Ptr("src"), + // Arguments: []*armcontainerregistry.Argument{ + // { + // Name: to.Ptr("mytestargument"), + // IsSecret: to.Ptr(false), + // Value: to.Ptr("mytestvalue"), + // }}, + // DockerFilePath: to.Ptr("src/DockerFile"), + // ImageNames: []*string{ + // to.Ptr("azurerest:testtag")}, + // IsPushEnabled: to.Ptr(true), + // NoCache: to.Ptr(false), + // }, + // Trigger: &armcontainerregistry.TriggerProperties{ + // BaseImageTrigger: &armcontainerregistry.BaseImageTrigger{ + // Name: to.Ptr("myBaseImageTrigger"), + // BaseImageTriggerType: to.Ptr(armcontainerregistry.BaseImageTriggerTypeRuntime), + // Status: to.Ptr(armcontainerregistry.TriggerStatusEnabled), + // UpdateTriggerPayloadType: to.Ptr(armcontainerregistry.UpdateTriggerPayloadTypeToken), + // }, + // SourceTriggers: []*armcontainerregistry.SourceTrigger{ + // { + // Name: to.Ptr("mySourceTrigger"), + // SourceRepository: &armcontainerregistry.SourceProperties{ + // Branch: to.Ptr("master"), + // RepositoryURL: to.Ptr("https://github.com/Azure/azure-rest-api-specs"), + // SourceControlType: to.Ptr(armcontainerregistry.SourceControlTypeGithub), + // }, + // SourceTriggerEvents: []*armcontainerregistry.SourceTriggerEvent{ + // to.Ptr(armcontainerregistry.SourceTriggerEventCommit)}, + // Status: to.Ptr(armcontainerregistry.TriggerStatusEnabled), + // }}, + // TimerTriggers: []*armcontainerregistry.TimerTrigger{ + // { + // Name: to.Ptr("myTimerTrigger"), + // Schedule: to.Ptr("30 9 * * 1-5"), + // Status: to.Ptr(armcontainerregistry.TriggerStatusEnabled), + // }}, + // }, + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/TasksCreate_QuickTask.json +func ExampleTasksClient_BeginCreate_tasksCreateQuickTask() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewTasksClient("4385cf00-2d3a-425a-832f-f4285b1c9dce", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreate(ctx, "myResourceGroup", "myRegistry", "quicktask", armcontainerregistry.Task{ + Location: to.Ptr("eastus"), + Tags: map[string]*string{ + "testkey": to.Ptr("value"), + }, + Properties: &armcontainerregistry.TaskProperties{ + IsSystemTask: to.Ptr(true), + LogTemplate: to.Ptr("acr/tasks:{{.Run.OS}}"), + Status: to.Ptr(armcontainerregistry.TaskStatusEnabled), + }, + }, 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.Task = armcontainerregistry.Task{ + // Name: to.Ptr("quicktask"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/tasks"), + // ID: to.Ptr("/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tasks/myTask"), + // Location: to.Ptr("eastus"), + // Tags: map[string]*string{ + // "testkey": to.Ptr("value"), + // }, + // Properties: &armcontainerregistry.TaskProperties{ + // CreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-01-25T06:54:23.536Z"); return t}()), + // IsSystemTask: to.Ptr(true), + // LogTemplate: to.Ptr("acr/tasks:{{.Run.OS}}"), + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // Status: to.Ptr(armcontainerregistry.TaskStatusEnabled), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/ManagedIdentity/TasksCreate_WithSystemAndUserIdentities.json +func ExampleTasksClient_BeginCreate_tasksCreateWithSystemAndUserIdentities() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewTasksClient("4385cf00-2d3a-425a-832f-f4285b1c9dce", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreate(ctx, "myResourceGroup", "myRegistry", "mytTask", armcontainerregistry.Task{ + Location: to.Ptr("eastus"), + Tags: map[string]*string{ + "testkey": to.Ptr("value"), + }, + Identity: &armcontainerregistry.IdentityProperties{ + Type: to.Ptr(armcontainerregistry.ResourceIdentityTypeSystemAssignedUserAssigned), + UserAssignedIdentities: map[string]*armcontainerregistry.UserIdentityProperties{ + "/subscriptions/f9d7ebed-adbd-4cb4-b973-aaf82c136138/resourcegroups/myResourceGroup1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity2": {}, + }, + }, + Properties: &armcontainerregistry.TaskProperties{ + AgentConfiguration: &armcontainerregistry.AgentProperties{ + CPU: to.Ptr[int32](2), + }, + IsSystemTask: to.Ptr(false), + Platform: &armcontainerregistry.PlatformProperties{ + Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), + OS: to.Ptr(armcontainerregistry.OSLinux), + }, + Status: to.Ptr(armcontainerregistry.TaskStatusEnabled), + Step: &armcontainerregistry.DockerBuildStep{ + Type: to.Ptr(armcontainerregistry.StepTypeDocker), + ContextPath: to.Ptr("src"), + Arguments: []*armcontainerregistry.Argument{ + { + Name: to.Ptr("mytestargument"), + IsSecret: to.Ptr(false), + Value: to.Ptr("mytestvalue"), + }, + { + Name: to.Ptr("mysecrettestargument"), + IsSecret: to.Ptr(true), + Value: to.Ptr("mysecrettestvalue"), + }}, + DockerFilePath: to.Ptr("src/DockerFile"), + ImageNames: []*string{ + to.Ptr("azurerest:testtag")}, + IsPushEnabled: to.Ptr(true), + NoCache: to.Ptr(false), + }, + Trigger: &armcontainerregistry.TriggerProperties{ + BaseImageTrigger: &armcontainerregistry.BaseImageTrigger{ + Name: to.Ptr("myBaseImageTrigger"), + BaseImageTriggerType: to.Ptr(armcontainerregistry.BaseImageTriggerTypeRuntime), + UpdateTriggerEndpoint: to.Ptr("https://user:pass@mycicd.webhook.com?token=foo"), + UpdateTriggerPayloadType: to.Ptr(armcontainerregistry.UpdateTriggerPayloadTypeDefault), + }, + SourceTriggers: []*armcontainerregistry.SourceTrigger{ + { + Name: to.Ptr("mySourceTrigger"), + SourceRepository: &armcontainerregistry.SourceProperties{ + Branch: to.Ptr("master"), + RepositoryURL: to.Ptr("https://github.com/Azure/azure-rest-api-specs"), + SourceControlAuthProperties: &armcontainerregistry.AuthInfo{ + Token: to.Ptr("xxxxx"), + TokenType: to.Ptr(armcontainerregistry.TokenTypePAT), + }, + SourceControlType: to.Ptr(armcontainerregistry.SourceControlTypeGithub), + }, + SourceTriggerEvents: []*armcontainerregistry.SourceTriggerEvent{ + to.Ptr(armcontainerregistry.SourceTriggerEventCommit)}, + }}, + TimerTriggers: []*armcontainerregistry.TimerTrigger{ + { + Name: to.Ptr("myTimerTrigger"), + Schedule: to.Ptr("30 9 * * 1-5"), + }}, + }, + }, + }, 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.Task = armcontainerregistry.Task{ + // Name: to.Ptr("myTask"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/tasks"), + // ID: to.Ptr("/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tasks/myTask"), + // Location: to.Ptr("eastus"), + // Tags: map[string]*string{ + // "testkey": to.Ptr("value"), + // }, + // Identity: &armcontainerregistry.IdentityProperties{ + // Type: to.Ptr(armcontainerregistry.ResourceIdentityTypeSystemAssignedUserAssigned), + // PrincipalID: to.Ptr("fc99dc67-1ad9-45c8-9ebc-e438081c8e30"), + // TenantID: to.Ptr("f686d426-8d16-42db-81b7-ab578e110ccd"), + // UserAssignedIdentities: map[string]*armcontainerregistry.UserIdentityProperties{ + // "/subscriptions/f9d7ebed-adbd-4cb4-b973-aaf82c136138/resourcegroups/myResourceGroup1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity2": &armcontainerregistry.UserIdentityProperties{ + // ClientID: to.Ptr("e35621a5-f615-4a20-940e-de8a84b15abc"), + // PrincipalID: to.Ptr("e45e3m7c-176e-416a-b466-0c5ec8298f8a"), + // }, + // }, + // }, + // Properties: &armcontainerregistry.TaskProperties{ + // AgentConfiguration: &armcontainerregistry.AgentProperties{ + // CPU: to.Ptr[int32](2), + // }, + // CreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-01-25T06:54:23.536Z"); return t}()), + // IsSystemTask: to.Ptr(false), + // Platform: &armcontainerregistry.PlatformProperties{ + // Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), + // OS: to.Ptr(armcontainerregistry.OSLinux), + // }, + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // Status: to.Ptr(armcontainerregistry.TaskStatusEnabled), + // Step: &armcontainerregistry.DockerBuildStep{ + // Type: to.Ptr(armcontainerregistry.StepTypeDocker), + // ContextPath: to.Ptr("src"), + // Arguments: []*armcontainerregistry.Argument{ + // { + // Name: to.Ptr("mytestargument"), + // IsSecret: to.Ptr(false), + // Value: to.Ptr("mytestvalue"), + // }}, + // DockerFilePath: to.Ptr("src/DockerFile"), + // ImageNames: []*string{ + // to.Ptr("azurerest:testtag")}, + // IsPushEnabled: to.Ptr(true), + // NoCache: to.Ptr(false), + // }, + // Trigger: &armcontainerregistry.TriggerProperties{ + // BaseImageTrigger: &armcontainerregistry.BaseImageTrigger{ + // Name: to.Ptr("myBaseImageTrigger"), + // BaseImageTriggerType: to.Ptr(armcontainerregistry.BaseImageTriggerTypeRuntime), + // Status: to.Ptr(armcontainerregistry.TriggerStatusEnabled), + // UpdateTriggerPayloadType: to.Ptr(armcontainerregistry.UpdateTriggerPayloadTypeDefault), + // }, + // SourceTriggers: []*armcontainerregistry.SourceTrigger{ + // { + // Name: to.Ptr("mySourceTrigger"), + // SourceRepository: &armcontainerregistry.SourceProperties{ + // Branch: to.Ptr("master"), + // RepositoryURL: to.Ptr("https://github.com/Azure/azure-rest-api-specs"), + // SourceControlType: to.Ptr(armcontainerregistry.SourceControlTypeGithub), + // }, + // SourceTriggerEvents: []*armcontainerregistry.SourceTriggerEvent{ + // to.Ptr(armcontainerregistry.SourceTriggerEventCommit)}, + // Status: to.Ptr(armcontainerregistry.TriggerStatusEnabled), + // }}, + // TimerTriggers: []*armcontainerregistry.TimerTrigger{ + // { + // Name: to.Ptr("myTimerTrigger"), + // Schedule: to.Ptr("30 9 * * 1-5"), + // Status: to.Ptr(armcontainerregistry.TriggerStatusEnabled), + // }}, + // }, + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/ManagedIdentity/TasksCreate_WithUserIdentities.json +func ExampleTasksClient_BeginCreate_tasksCreateWithUserIdentities() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewTasksClient("4385cf00-2d3a-425a-832f-f4285b1c9dce", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreate(ctx, "myResourceGroup", "myRegistry", "mytTask", armcontainerregistry.Task{ + Location: to.Ptr("eastus"), + Tags: map[string]*string{ + "testkey": to.Ptr("value"), + }, + Identity: &armcontainerregistry.IdentityProperties{ + Type: to.Ptr(armcontainerregistry.ResourceIdentityTypeUserAssigned), + UserAssignedIdentities: map[string]*armcontainerregistry.UserIdentityProperties{ + "/subscriptions/f9d7ebed-adbd-4cb4-b973-aaf82c136138/resourcegroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1": {}, + "/subscriptions/f9d7ebed-adbd-4cb4-b973-aaf82c136138/resourcegroups/myResourceGroup1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity2": {}, + }, + }, + Properties: &armcontainerregistry.TaskProperties{ + AgentConfiguration: &armcontainerregistry.AgentProperties{ + CPU: to.Ptr[int32](2), + }, + IsSystemTask: to.Ptr(false), + Platform: &armcontainerregistry.PlatformProperties{ + Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), + OS: to.Ptr(armcontainerregistry.OSLinux), + }, + Status: to.Ptr(armcontainerregistry.TaskStatusEnabled), + Step: &armcontainerregistry.DockerBuildStep{ + Type: to.Ptr(armcontainerregistry.StepTypeDocker), + ContextPath: to.Ptr("src"), + Arguments: []*armcontainerregistry.Argument{ + { + Name: to.Ptr("mytestargument"), + IsSecret: to.Ptr(false), + Value: to.Ptr("mytestvalue"), + }, + { + Name: to.Ptr("mysecrettestargument"), + IsSecret: to.Ptr(true), + Value: to.Ptr("mysecrettestvalue"), + }}, + DockerFilePath: to.Ptr("src/DockerFile"), + ImageNames: []*string{ + to.Ptr("azurerest:testtag")}, + IsPushEnabled: to.Ptr(true), + NoCache: to.Ptr(false), + }, + Trigger: &armcontainerregistry.TriggerProperties{ + BaseImageTrigger: &armcontainerregistry.BaseImageTrigger{ + Name: to.Ptr("myBaseImageTrigger"), + BaseImageTriggerType: to.Ptr(armcontainerregistry.BaseImageTriggerTypeRuntime), + UpdateTriggerEndpoint: to.Ptr("https://user:pass@mycicd.webhook.com?token=foo"), + UpdateTriggerPayloadType: to.Ptr(armcontainerregistry.UpdateTriggerPayloadTypeDefault), + }, + SourceTriggers: []*armcontainerregistry.SourceTrigger{ + { + Name: to.Ptr("mySourceTrigger"), + SourceRepository: &armcontainerregistry.SourceProperties{ + Branch: to.Ptr("master"), + RepositoryURL: to.Ptr("https://github.com/Azure/azure-rest-api-specs"), + SourceControlAuthProperties: &armcontainerregistry.AuthInfo{ + Token: to.Ptr("xxxxx"), + TokenType: to.Ptr(armcontainerregistry.TokenTypePAT), + }, + SourceControlType: to.Ptr(armcontainerregistry.SourceControlTypeGithub), + }, + SourceTriggerEvents: []*armcontainerregistry.SourceTriggerEvent{ + to.Ptr(armcontainerregistry.SourceTriggerEventCommit)}, + }}, + TimerTriggers: []*armcontainerregistry.TimerTrigger{ + { + Name: to.Ptr("myTimerTrigger"), + Schedule: to.Ptr("30 9 * * 1-5"), + }}, + }, + }, + }, 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.Task = armcontainerregistry.Task{ + // Name: to.Ptr("myTask"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/tasks"), + // ID: to.Ptr("/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tasks/myTask"), + // Location: to.Ptr("eastus"), + // Tags: map[string]*string{ + // "testkey": to.Ptr("value"), + // }, + // Identity: &armcontainerregistry.IdentityProperties{ + // Type: to.Ptr(armcontainerregistry.ResourceIdentityTypeUserAssigned), + // UserAssignedIdentities: map[string]*armcontainerregistry.UserIdentityProperties{ + // "/subscriptions/f9d7ebed-adbd-4cb4-b973-aaf82c136138/resourcegroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1": &armcontainerregistry.UserIdentityProperties{ + // ClientID: to.Ptr("d3ce1bc2-f7d7-4a5b-9979-950f4e57680e"), + // PrincipalID: to.Ptr("b6p9f58b-6fbf-4efd-a7e0-fvd46911a466"), + // }, + // "/subscriptions/f9d7ebed-adbd-4cb4-b973-aaf82c136138/resourcegroups/myResourceGroup1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity2": &armcontainerregistry.UserIdentityProperties{ + // ClientID: to.Ptr("e35621a5-f615-4a20-940e-de8a84b15abc"), + // PrincipalID: to.Ptr("e45e3m7c-176e-416a-b466-0c5ec8298f8a"), + // }, + // }, + // }, + // Properties: &armcontainerregistry.TaskProperties{ + // AgentConfiguration: &armcontainerregistry.AgentProperties{ + // CPU: to.Ptr[int32](2), + // }, + // CreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-01-25T06:54:23.536Z"); return t}()), + // IsSystemTask: to.Ptr(false), + // Platform: &armcontainerregistry.PlatformProperties{ + // Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), + // OS: to.Ptr(armcontainerregistry.OSLinux), + // }, + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // Status: to.Ptr(armcontainerregistry.TaskStatusEnabled), + // Step: &armcontainerregistry.DockerBuildStep{ + // Type: to.Ptr(armcontainerregistry.StepTypeDocker), + // ContextPath: to.Ptr("src"), + // Arguments: []*armcontainerregistry.Argument{ + // { + // Name: to.Ptr("mytestargument"), + // IsSecret: to.Ptr(false), + // Value: to.Ptr("mytestvalue"), + // }}, + // DockerFilePath: to.Ptr("src/DockerFile"), + // ImageNames: []*string{ + // to.Ptr("azurerest:testtag")}, + // IsPushEnabled: to.Ptr(true), + // NoCache: to.Ptr(false), + // }, + // Trigger: &armcontainerregistry.TriggerProperties{ + // BaseImageTrigger: &armcontainerregistry.BaseImageTrigger{ + // Name: to.Ptr("myBaseImageTrigger"), + // BaseImageTriggerType: to.Ptr(armcontainerregistry.BaseImageTriggerTypeRuntime), + // Status: to.Ptr(armcontainerregistry.TriggerStatusEnabled), + // UpdateTriggerPayloadType: to.Ptr(armcontainerregistry.UpdateTriggerPayloadTypeDefault), + // }, + // SourceTriggers: []*armcontainerregistry.SourceTrigger{ + // { + // Name: to.Ptr("mySourceTrigger"), + // SourceRepository: &armcontainerregistry.SourceProperties{ + // Branch: to.Ptr("master"), + // RepositoryURL: to.Ptr("https://github.com/Azure/azure-rest-api-specs"), + // SourceControlType: to.Ptr(armcontainerregistry.SourceControlTypeGithub), + // }, + // SourceTriggerEvents: []*armcontainerregistry.SourceTriggerEvent{ + // to.Ptr(armcontainerregistry.SourceTriggerEventCommit)}, + // Status: to.Ptr(armcontainerregistry.TriggerStatusEnabled), + // }}, + // TimerTriggers: []*armcontainerregistry.TimerTrigger{ + // { + // Name: to.Ptr("myTimerTrigger"), + // Schedule: to.Ptr("30 9 * * 1-5"), + // Status: to.Ptr(armcontainerregistry.TriggerStatusEnabled), + // }}, + // }, + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/ManagedIdentity/TasksCreate_WithSystemIdentity.json +func ExampleTasksClient_BeginCreate_tasksCreateWithUserIdentitiesWithSystemIdentity() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewTasksClient("4385cf00-2d3a-425a-832f-f4285b1c9dce", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreate(ctx, "myResourceGroup", "myRegistry", "mytTask", armcontainerregistry.Task{ + Location: to.Ptr("eastus"), + Tags: map[string]*string{ + "testkey": to.Ptr("value"), + }, + Identity: &armcontainerregistry.IdentityProperties{ + Type: to.Ptr(armcontainerregistry.ResourceIdentityTypeSystemAssigned), + }, + Properties: &armcontainerregistry.TaskProperties{ + AgentConfiguration: &armcontainerregistry.AgentProperties{ + CPU: to.Ptr[int32](2), + }, + IsSystemTask: to.Ptr(false), + Platform: &armcontainerregistry.PlatformProperties{ + Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), + OS: to.Ptr(armcontainerregistry.OSLinux), + }, + Status: to.Ptr(armcontainerregistry.TaskStatusEnabled), + Step: &armcontainerregistry.DockerBuildStep{ + Type: to.Ptr(armcontainerregistry.StepTypeDocker), + ContextPath: to.Ptr("src"), + Arguments: []*armcontainerregistry.Argument{ + { + Name: to.Ptr("mytestargument"), + IsSecret: to.Ptr(false), + Value: to.Ptr("mytestvalue"), + }, + { + Name: to.Ptr("mysecrettestargument"), + IsSecret: to.Ptr(true), + Value: to.Ptr("mysecrettestvalue"), + }}, + DockerFilePath: to.Ptr("src/DockerFile"), + ImageNames: []*string{ + to.Ptr("azurerest:testtag")}, + IsPushEnabled: to.Ptr(true), + NoCache: to.Ptr(false), + }, + Trigger: &armcontainerregistry.TriggerProperties{ + BaseImageTrigger: &armcontainerregistry.BaseImageTrigger{ + Name: to.Ptr("myBaseImageTrigger"), + BaseImageTriggerType: to.Ptr(armcontainerregistry.BaseImageTriggerTypeRuntime), + }, + SourceTriggers: []*armcontainerregistry.SourceTrigger{ + { + Name: to.Ptr("mySourceTrigger"), + SourceRepository: &armcontainerregistry.SourceProperties{ + Branch: to.Ptr("master"), + RepositoryURL: to.Ptr("https://github.com/Azure/azure-rest-api-specs"), + SourceControlAuthProperties: &armcontainerregistry.AuthInfo{ + Token: to.Ptr("xxxxx"), + TokenType: to.Ptr(armcontainerregistry.TokenTypePAT), + }, + SourceControlType: to.Ptr(armcontainerregistry.SourceControlTypeGithub), + }, + SourceTriggerEvents: []*armcontainerregistry.SourceTriggerEvent{ + to.Ptr(armcontainerregistry.SourceTriggerEventCommit)}, + }}, + TimerTriggers: []*armcontainerregistry.TimerTrigger{ + { + Name: to.Ptr("myTimerTrigger"), + Schedule: to.Ptr("30 9 * * 1-5"), + }}, + }, + }, + }, 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.Task = armcontainerregistry.Task{ + // Name: to.Ptr("myTask"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/tasks"), + // ID: to.Ptr("/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tasks/myTask"), + // Location: to.Ptr("eastus"), + // Tags: map[string]*string{ + // "testkey": to.Ptr("value"), + // }, + // Identity: &armcontainerregistry.IdentityProperties{ + // Type: to.Ptr(armcontainerregistry.ResourceIdentityTypeSystemAssigned), + // PrincipalID: to.Ptr("fa153151-b9fd-46f4-9088-5e6600f2689v"), + // TenantID: to.Ptr("f686d426-8d16-42db-81b7-abu4gm510ccd"), + // }, + // Properties: &armcontainerregistry.TaskProperties{ + // AgentConfiguration: &armcontainerregistry.AgentProperties{ + // CPU: to.Ptr[int32](2), + // }, + // CreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-01-25T06:54:23.536Z"); return t}()), + // IsSystemTask: to.Ptr(false), + // Platform: &armcontainerregistry.PlatformProperties{ + // Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), + // OS: to.Ptr(armcontainerregistry.OSLinux), + // }, + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // Status: to.Ptr(armcontainerregistry.TaskStatusEnabled), + // Step: &armcontainerregistry.DockerBuildStep{ + // Type: to.Ptr(armcontainerregistry.StepTypeDocker), + // ContextPath: to.Ptr("src"), + // Arguments: []*armcontainerregistry.Argument{ + // { + // Name: to.Ptr("mytestargument"), + // IsSecret: to.Ptr(false), + // Value: to.Ptr("mytestvalue"), + // }}, + // DockerFilePath: to.Ptr("src/DockerFile"), + // ImageNames: []*string{ + // to.Ptr("azurerest:testtag")}, + // IsPushEnabled: to.Ptr(true), + // NoCache: to.Ptr(false), + // }, + // Trigger: &armcontainerregistry.TriggerProperties{ + // BaseImageTrigger: &armcontainerregistry.BaseImageTrigger{ + // Name: to.Ptr("myBaseImageTrigger"), + // BaseImageTriggerType: to.Ptr(armcontainerregistry.BaseImageTriggerTypeRuntime), + // Status: to.Ptr(armcontainerregistry.TriggerStatusEnabled), + // }, + // SourceTriggers: []*armcontainerregistry.SourceTrigger{ + // { + // Name: to.Ptr("mySourceTrigger"), + // SourceRepository: &armcontainerregistry.SourceProperties{ + // Branch: to.Ptr("master"), + // RepositoryURL: to.Ptr("https://github.com/Azure/azure-rest-api-specs"), + // SourceControlType: to.Ptr(armcontainerregistry.SourceControlTypeGithub), + // }, + // SourceTriggerEvents: []*armcontainerregistry.SourceTriggerEvent{ + // to.Ptr(armcontainerregistry.SourceTriggerEventCommit)}, + // Status: to.Ptr(armcontainerregistry.TriggerStatusEnabled), + // }}, + // TimerTriggers: []*armcontainerregistry.TimerTrigger{ + // { + // Name: to.Ptr("myTimerTrigger"), + // Schedule: to.Ptr("30 9 * * 1-5"), + // Status: to.Ptr(armcontainerregistry.TriggerStatusEnabled), + // }}, + // }, + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/TasksDelete.json +func ExampleTasksClient_BeginDelete() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewTasksClient("4385cf00-2d3a-425a-832f-f4285b1c9dce", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginDelete(ctx, "myResourceGroup", "myRegistry", "myTask", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + _, err = poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/TasksUpdate.json +func ExampleTasksClient_BeginUpdate_tasksUpdate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewTasksClient("4385cf00-2d3a-425a-832f-f4285b1c9dce", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginUpdate(ctx, "myResourceGroup", "myRegistry", "myTask", armcontainerregistry.TaskUpdateParameters{ + Properties: &armcontainerregistry.TaskPropertiesUpdateParameters{ + AgentConfiguration: &armcontainerregistry.AgentProperties{ + CPU: to.Ptr[int32](3), + }, + Credentials: &armcontainerregistry.Credentials{ + CustomRegistries: map[string]*armcontainerregistry.CustomRegistryCredentials{ + "myregistry.azurecr.io": { + Identity: to.Ptr("[system]"), + Password: &armcontainerregistry.SecretObject{ + Type: to.Ptr(armcontainerregistry.SecretObjectTypeVaultsecret), + Value: to.Ptr("https://myacbvault.vault.azure.net/secrets/password"), + }, + UserName: &armcontainerregistry.SecretObject{ + Type: to.Ptr(armcontainerregistry.SecretObjectTypeOpaque), + Value: to.Ptr("username"), + }, + }, + }, + }, + LogTemplate: to.Ptr("acr/tasks:{{.Run.OS}}"), + Status: to.Ptr(armcontainerregistry.TaskStatusEnabled), + Step: &armcontainerregistry.DockerBuildStepUpdateParameters{ + Type: to.Ptr(armcontainerregistry.StepTypeDocker), + DockerFilePath: to.Ptr("src/DockerFile"), + ImageNames: []*string{ + to.Ptr("azurerest:testtag1")}, + }, + Trigger: &armcontainerregistry.TriggerUpdateParameters{ + SourceTriggers: []*armcontainerregistry.SourceTriggerUpdateParameters{ + { + Name: to.Ptr("mySourceTrigger"), + SourceRepository: &armcontainerregistry.SourceUpdateParameters{ + SourceControlAuthProperties: &armcontainerregistry.AuthInfoUpdateParameters{ + Token: to.Ptr("xxxxx"), + TokenType: to.Ptr(armcontainerregistry.TokenTypePAT), + }, + }, + SourceTriggerEvents: []*armcontainerregistry.SourceTriggerEvent{ + to.Ptr(armcontainerregistry.SourceTriggerEventCommit)}, + }}, + }, + }, + Tags: map[string]*string{ + "testkey": to.Ptr("value"), + }, + }, 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.Task = armcontainerregistry.Task{ + // Name: to.Ptr("myTask"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/tasks"), + // ID: to.Ptr("/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tasks/myTask"), + // Location: to.Ptr("eastus"), + // Tags: map[string]*string{ + // "testkey": to.Ptr("value"), + // }, + // Identity: &armcontainerregistry.IdentityProperties{ + // Type: to.Ptr(armcontainerregistry.ResourceIdentityTypeSystemAssigned), + // PrincipalID: to.Ptr("fa153151-b9fd-46f4-9088-5e6600f2689v"), + // TenantID: to.Ptr("f686d426-8d16-42db-81b7-abu4gm510ccd"), + // }, + // Properties: &armcontainerregistry.TaskProperties{ + // AgentConfiguration: &armcontainerregistry.AgentProperties{ + // CPU: to.Ptr[int32](3), + // }, + // CreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-01-25T06:54:23.536Z"); return t}()), + // Credentials: &armcontainerregistry.Credentials{ + // CustomRegistries: map[string]*armcontainerregistry.CustomRegistryCredentials{ + // "myregistry.azurecr.io": nil, + // }, + // }, + // LogTemplate: to.Ptr("acr/tasks:{{.Run.OS}}"), + // Platform: &armcontainerregistry.PlatformProperties{ + // Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), + // OS: to.Ptr(armcontainerregistry.OSLinux), + // }, + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // Status: to.Ptr(armcontainerregistry.TaskStatusEnabled), + // Step: &armcontainerregistry.DockerBuildStep{ + // Type: to.Ptr(armcontainerregistry.StepTypeDocker), + // ContextPath: to.Ptr("src"), + // Arguments: []*armcontainerregistry.Argument{ + // { + // Name: to.Ptr("mytestargument"), + // IsSecret: to.Ptr(false), + // Value: to.Ptr("mytestvalue"), + // }}, + // DockerFilePath: to.Ptr("src/DockerFile"), + // ImageNames: []*string{ + // to.Ptr("azurerest:testtag1")}, + // IsPushEnabled: to.Ptr(true), + // NoCache: to.Ptr(false), + // }, + // Trigger: &armcontainerregistry.TriggerProperties{ + // BaseImageTrigger: &armcontainerregistry.BaseImageTrigger{ + // Name: to.Ptr("myBaseImageTrigger"), + // BaseImageTriggerType: to.Ptr(armcontainerregistry.BaseImageTriggerTypeRuntime), + // Status: to.Ptr(armcontainerregistry.TriggerStatusEnabled), + // UpdateTriggerPayloadType: to.Ptr(armcontainerregistry.UpdateTriggerPayloadTypeDefault), + // }, + // SourceTriggers: []*armcontainerregistry.SourceTrigger{ + // { + // Name: to.Ptr("mySourceTrigger"), + // SourceRepository: &armcontainerregistry.SourceProperties{ + // Branch: to.Ptr("master"), + // RepositoryURL: to.Ptr("https://github.com/Azure/azure-rest-api-specs"), + // SourceControlType: to.Ptr(armcontainerregistry.SourceControlTypeGithub), + // }, + // SourceTriggerEvents: []*armcontainerregistry.SourceTriggerEvent{ + // to.Ptr(armcontainerregistry.SourceTriggerEventCommit)}, + // Status: to.Ptr(armcontainerregistry.TriggerStatusEnabled), + // }}, + // TimerTriggers: []*armcontainerregistry.TimerTrigger{ + // { + // Name: to.Ptr("myTimerTrigger"), + // Schedule: to.Ptr("30 9 * * 1-5"), + // Status: to.Ptr(armcontainerregistry.TriggerStatusEnabled), + // }}, + // }, + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/TasksUpdate_QuickTask.json +func ExampleTasksClient_BeginUpdate_tasksUpdateQuickTask() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewTasksClient("4385cf00-2d3a-425a-832f-f4285b1c9dce", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginUpdate(ctx, "myResourceGroup", "myRegistry", "quicktask", armcontainerregistry.TaskUpdateParameters{ + Properties: &armcontainerregistry.TaskPropertiesUpdateParameters{ + LogTemplate: to.Ptr("acr/tasks:{{.Run.OS}}"), + Status: to.Ptr(armcontainerregistry.TaskStatusEnabled), + }, + Tags: map[string]*string{ + "testkey": to.Ptr("value"), + }, + }, 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.Task = armcontainerregistry.Task{ + // Name: to.Ptr("myTask"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/tasks"), + // ID: to.Ptr("/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tasks/myTask"), + // Location: to.Ptr("eastus"), + // Tags: map[string]*string{ + // "testkey": to.Ptr("value"), + // }, + // Properties: &armcontainerregistry.TaskProperties{ + // CreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-01-25T06:54:23.536Z"); return t}()), + // LogTemplate: to.Ptr("acr/tasks:{{.Run.OS}}"), + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // Status: to.Ptr(armcontainerregistry.TaskStatusEnabled), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/ManagedIdentity/TasksUpdate_WithKeyVaultCustomCredentials.json +func ExampleTasksClient_BeginUpdate_tasksUpdateWithKeyVaultCustomCredentials() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewTasksClient("4385cf00-2d3a-425a-832f-f4285b1c9dce", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginUpdate(ctx, "myResourceGroup", "myRegistry", "myTask", armcontainerregistry.TaskUpdateParameters{ + Properties: &armcontainerregistry.TaskPropertiesUpdateParameters{ + AgentConfiguration: &armcontainerregistry.AgentProperties{ + CPU: to.Ptr[int32](3), + }, + Credentials: &armcontainerregistry.Credentials{ + CustomRegistries: map[string]*armcontainerregistry.CustomRegistryCredentials{ + "myregistry.azurecr.io": { + Identity: to.Ptr("[system]"), + Password: &armcontainerregistry.SecretObject{ + Type: to.Ptr(armcontainerregistry.SecretObjectTypeVaultsecret), + Value: to.Ptr("https://myacbvault.vault.azure.net/secrets/password"), + }, + UserName: &armcontainerregistry.SecretObject{ + Type: to.Ptr(armcontainerregistry.SecretObjectTypeVaultsecret), + Value: to.Ptr("https://myacbvault.vault.azure.net/secrets/username"), + }, + }, + }, + }, + Status: to.Ptr(armcontainerregistry.TaskStatusEnabled), + Step: &armcontainerregistry.DockerBuildStepUpdateParameters{ + Type: to.Ptr(armcontainerregistry.StepTypeDocker), + DockerFilePath: to.Ptr("src/DockerFile"), + ImageNames: []*string{ + to.Ptr("azurerest:testtag1")}, + }, + Trigger: &armcontainerregistry.TriggerUpdateParameters{ + SourceTriggers: []*armcontainerregistry.SourceTriggerUpdateParameters{ + { + Name: to.Ptr("mySourceTrigger"), + SourceRepository: &armcontainerregistry.SourceUpdateParameters{ + SourceControlAuthProperties: &armcontainerregistry.AuthInfoUpdateParameters{ + Token: to.Ptr("xxxxx"), + TokenType: to.Ptr(armcontainerregistry.TokenTypePAT), + }, + }, + SourceTriggerEvents: []*armcontainerregistry.SourceTriggerEvent{ + to.Ptr(armcontainerregistry.SourceTriggerEventCommit)}, + }}, + }, + }, + Tags: map[string]*string{ + "testkey": to.Ptr("value"), + }, + }, 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.Task = armcontainerregistry.Task{ + // Name: to.Ptr("myTask"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/tasks"), + // ID: to.Ptr("/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tasks/myTask"), + // Location: to.Ptr("eastus"), + // Tags: map[string]*string{ + // "testkey": to.Ptr("value"), + // }, + // Identity: &armcontainerregistry.IdentityProperties{ + // Type: to.Ptr(armcontainerregistry.ResourceIdentityTypeSystemAssigned), + // PrincipalID: to.Ptr("fa153151-b9fd-46f4-9088-5e6600f2689v"), + // TenantID: to.Ptr("f686d426-8d16-42db-81b7-abu4gm510ccd"), + // }, + // Properties: &armcontainerregistry.TaskProperties{ + // AgentConfiguration: &armcontainerregistry.AgentProperties{ + // CPU: to.Ptr[int32](3), + // }, + // CreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-01-25T06:54:23.536Z"); return t}()), + // Credentials: &armcontainerregistry.Credentials{ + // CustomRegistries: map[string]*armcontainerregistry.CustomRegistryCredentials{ + // "myregistry.azurecr.io": nil, + // }, + // }, + // Platform: &armcontainerregistry.PlatformProperties{ + // Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), + // OS: to.Ptr(armcontainerregistry.OSLinux), + // }, + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // Status: to.Ptr(armcontainerregistry.TaskStatusEnabled), + // Step: &armcontainerregistry.DockerBuildStep{ + // Type: to.Ptr(armcontainerregistry.StepTypeDocker), + // ContextPath: to.Ptr("src"), + // Arguments: []*armcontainerregistry.Argument{ + // { + // Name: to.Ptr("mytestargument"), + // IsSecret: to.Ptr(false), + // Value: to.Ptr("mytestvalue"), + // }}, + // DockerFilePath: to.Ptr("src/DockerFile"), + // ImageNames: []*string{ + // to.Ptr("azurerest:testtag1")}, + // IsPushEnabled: to.Ptr(true), + // NoCache: to.Ptr(false), + // }, + // Trigger: &armcontainerregistry.TriggerProperties{ + // BaseImageTrigger: &armcontainerregistry.BaseImageTrigger{ + // Name: to.Ptr("myBaseImageTrigger"), + // BaseImageTriggerType: to.Ptr(armcontainerregistry.BaseImageTriggerTypeRuntime), + // Status: to.Ptr(armcontainerregistry.TriggerStatusEnabled), + // UpdateTriggerEndpoint: to.Ptr("https://user:pass@mycicd.webhook.com?token=foo"), + // UpdateTriggerPayloadType: to.Ptr(armcontainerregistry.UpdateTriggerPayloadTypeToken), + // }, + // SourceTriggers: []*armcontainerregistry.SourceTrigger{ + // { + // Name: to.Ptr("mySourceTrigger"), + // SourceRepository: &armcontainerregistry.SourceProperties{ + // Branch: to.Ptr("master"), + // RepositoryURL: to.Ptr("https://github.com/Azure/azure-rest-api-specs"), + // SourceControlType: to.Ptr(armcontainerregistry.SourceControlTypeGithub), + // }, + // SourceTriggerEvents: []*armcontainerregistry.SourceTriggerEvent{ + // to.Ptr(armcontainerregistry.SourceTriggerEventCommit)}, + // Status: to.Ptr(armcontainerregistry.TriggerStatusEnabled), + // }}, + // TimerTriggers: []*armcontainerregistry.TimerTrigger{ + // { + // Name: to.Ptr("myTimerTrigger"), + // Schedule: to.Ptr("30 9 * * 1-5"), + // Status: to.Ptr(armcontainerregistry.TriggerStatusEnabled), + // }}, + // }, + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/ManagedIdentity/TasksUpdate_WithMSICustomCredentials.json +func ExampleTasksClient_BeginUpdate_tasksUpdateWithMsiCustomCredentials() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewTasksClient("4385cf00-2d3a-425a-832f-f4285b1c9dce", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginUpdate(ctx, "myResourceGroup", "myRegistry", "myTask", armcontainerregistry.TaskUpdateParameters{ + Properties: &armcontainerregistry.TaskPropertiesUpdateParameters{ + AgentConfiguration: &armcontainerregistry.AgentProperties{ + CPU: to.Ptr[int32](3), + }, + Credentials: &armcontainerregistry.Credentials{ + CustomRegistries: map[string]*armcontainerregistry.CustomRegistryCredentials{ + "myregistry.azurecr.io": { + Identity: to.Ptr("[system]"), + }, + }, + }, + Status: to.Ptr(armcontainerregistry.TaskStatusEnabled), + Step: &armcontainerregistry.DockerBuildStepUpdateParameters{ + Type: to.Ptr(armcontainerregistry.StepTypeDocker), + DockerFilePath: to.Ptr("src/DockerFile"), + ImageNames: []*string{ + to.Ptr("azurerest:testtag1")}, + }, + Trigger: &armcontainerregistry.TriggerUpdateParameters{ + SourceTriggers: []*armcontainerregistry.SourceTriggerUpdateParameters{ + { + Name: to.Ptr("mySourceTrigger"), + SourceRepository: &armcontainerregistry.SourceUpdateParameters{ + SourceControlAuthProperties: &armcontainerregistry.AuthInfoUpdateParameters{ + Token: to.Ptr("xxxxx"), + TokenType: to.Ptr(armcontainerregistry.TokenTypePAT), + }, + }, + SourceTriggerEvents: []*armcontainerregistry.SourceTriggerEvent{ + to.Ptr(armcontainerregistry.SourceTriggerEventCommit)}, + }}, + }, + }, + Tags: map[string]*string{ + "testkey": to.Ptr("value"), + }, + }, 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.Task = armcontainerregistry.Task{ + // Name: to.Ptr("myTask"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/tasks"), + // ID: to.Ptr("/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tasks/myTask"), + // Location: to.Ptr("eastus"), + // Tags: map[string]*string{ + // "testkey": to.Ptr("value"), + // }, + // Identity: &armcontainerregistry.IdentityProperties{ + // Type: to.Ptr(armcontainerregistry.ResourceIdentityTypeSystemAssigned), + // PrincipalID: to.Ptr("fa153151-b9fd-46f4-9088-5e6600f2689v"), + // TenantID: to.Ptr("f686d426-8d16-42db-81b7-abu4gm510ccd"), + // }, + // Properties: &armcontainerregistry.TaskProperties{ + // AgentConfiguration: &armcontainerregistry.AgentProperties{ + // CPU: to.Ptr[int32](3), + // }, + // CreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-01-25T06:54:23.536Z"); return t}()), + // Credentials: &armcontainerregistry.Credentials{ + // CustomRegistries: map[string]*armcontainerregistry.CustomRegistryCredentials{ + // "myregistry.azure.io": nil, + // }, + // }, + // Platform: &armcontainerregistry.PlatformProperties{ + // Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), + // OS: to.Ptr(armcontainerregistry.OSLinux), + // }, + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // Status: to.Ptr(armcontainerregistry.TaskStatusEnabled), + // Step: &armcontainerregistry.DockerBuildStep{ + // Type: to.Ptr(armcontainerregistry.StepTypeDocker), + // ContextPath: to.Ptr("src"), + // Arguments: []*armcontainerregistry.Argument{ + // { + // Name: to.Ptr("mytestargument"), + // IsSecret: to.Ptr(false), + // Value: to.Ptr("mytestvalue"), + // }}, + // DockerFilePath: to.Ptr("src/DockerFile"), + // ImageNames: []*string{ + // to.Ptr("azurerest:testtag1")}, + // IsPushEnabled: to.Ptr(true), + // NoCache: to.Ptr(false), + // }, + // Trigger: &armcontainerregistry.TriggerProperties{ + // BaseImageTrigger: &armcontainerregistry.BaseImageTrigger{ + // Name: to.Ptr("myBaseImageTrigger"), + // BaseImageTriggerType: to.Ptr(armcontainerregistry.BaseImageTriggerTypeRuntime), + // Status: to.Ptr(armcontainerregistry.TriggerStatusEnabled), + // }, + // SourceTriggers: []*armcontainerregistry.SourceTrigger{ + // { + // Name: to.Ptr("mySourceTrigger"), + // SourceRepository: &armcontainerregistry.SourceProperties{ + // Branch: to.Ptr("master"), + // RepositoryURL: to.Ptr("https://github.com/Azure/azure-rest-api-specs"), + // SourceControlType: to.Ptr(armcontainerregistry.SourceControlTypeGithub), + // }, + // SourceTriggerEvents: []*armcontainerregistry.SourceTriggerEvent{ + // to.Ptr(armcontainerregistry.SourceTriggerEventCommit)}, + // Status: to.Ptr(armcontainerregistry.TriggerStatusEnabled), + // }}, + // TimerTriggers: []*armcontainerregistry.TimerTrigger{ + // { + // Name: to.Ptr("myTimerTrigger"), + // Schedule: to.Ptr("30 9 * * 1-5"), + // Status: to.Ptr(armcontainerregistry.TriggerStatusEnabled), + // }}, + // }, + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/TasksUpdate_WithOpaqueCustomCredentials.json +func ExampleTasksClient_BeginUpdate_tasksUpdateWithOpaqueCustomCredentials() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewTasksClient("4385cf00-2d3a-425a-832f-f4285b1c9dce", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginUpdate(ctx, "myResourceGroup", "myRegistry", "myTask", armcontainerregistry.TaskUpdateParameters{ + Properties: &armcontainerregistry.TaskPropertiesUpdateParameters{ + AgentConfiguration: &armcontainerregistry.AgentProperties{ + CPU: to.Ptr[int32](3), + }, + Credentials: &armcontainerregistry.Credentials{ + CustomRegistries: map[string]*armcontainerregistry.CustomRegistryCredentials{ + "myregistry.azurecr.io": { + Password: &armcontainerregistry.SecretObject{ + Type: to.Ptr(armcontainerregistry.SecretObjectTypeOpaque), + Value: to.Ptr("***"), + }, + UserName: &armcontainerregistry.SecretObject{ + Type: to.Ptr(armcontainerregistry.SecretObjectTypeOpaque), + Value: to.Ptr("username"), + }, + }, + }, + }, + Status: to.Ptr(armcontainerregistry.TaskStatusEnabled), + Step: &armcontainerregistry.DockerBuildStepUpdateParameters{ + Type: to.Ptr(armcontainerregistry.StepTypeDocker), + DockerFilePath: to.Ptr("src/DockerFile"), + ImageNames: []*string{ + to.Ptr("azurerest:testtag1")}, + }, + Trigger: &armcontainerregistry.TriggerUpdateParameters{ + SourceTriggers: []*armcontainerregistry.SourceTriggerUpdateParameters{ + { + Name: to.Ptr("mySourceTrigger"), + SourceRepository: &armcontainerregistry.SourceUpdateParameters{ + SourceControlAuthProperties: &armcontainerregistry.AuthInfoUpdateParameters{ + Token: to.Ptr("xxxxx"), + TokenType: to.Ptr(armcontainerregistry.TokenTypePAT), + }, + }, + SourceTriggerEvents: []*armcontainerregistry.SourceTriggerEvent{ + to.Ptr(armcontainerregistry.SourceTriggerEventCommit)}, + }}, + }, + }, + Tags: map[string]*string{ + "testkey": to.Ptr("value"), + }, + }, 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.Task = armcontainerregistry.Task{ + // Name: to.Ptr("myTask"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/tasks"), + // ID: to.Ptr("/subscriptions/4385cf00-2d3a-425a-832f-f4285b1c9dce/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tasks/myTask"), + // Location: to.Ptr("eastus"), + // Tags: map[string]*string{ + // "testkey": to.Ptr("value"), + // }, + // Identity: &armcontainerregistry.IdentityProperties{ + // Type: to.Ptr(armcontainerregistry.ResourceIdentityTypeSystemAssigned), + // PrincipalID: to.Ptr("fa153151-b9fd-46f4-9088-5e6600f2689v"), + // TenantID: to.Ptr("f686d426-8d16-42db-81b7-abu4gm510ccd"), + // }, + // Properties: &armcontainerregistry.TaskProperties{ + // AgentConfiguration: &armcontainerregistry.AgentProperties{ + // CPU: to.Ptr[int32](3), + // }, + // CreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-01-25T06:54:23.536Z"); return t}()), + // Credentials: &armcontainerregistry.Credentials{ + // CustomRegistries: map[string]*armcontainerregistry.CustomRegistryCredentials{ + // "myregistry.azure.io": nil, + // }, + // }, + // Platform: &armcontainerregistry.PlatformProperties{ + // Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), + // OS: to.Ptr(armcontainerregistry.OSLinux), + // }, + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // Status: to.Ptr(armcontainerregistry.TaskStatusEnabled), + // Step: &armcontainerregistry.DockerBuildStep{ + // Type: to.Ptr(armcontainerregistry.StepTypeDocker), + // ContextPath: to.Ptr("src"), + // Arguments: []*armcontainerregistry.Argument{ + // { + // Name: to.Ptr("mytestargument"), + // IsSecret: to.Ptr(false), + // Value: to.Ptr("mytestvalue"), + // }}, + // DockerFilePath: to.Ptr("src/DockerFile"), + // ImageNames: []*string{ + // to.Ptr("azurerest:testtag1")}, + // IsPushEnabled: to.Ptr(true), + // NoCache: to.Ptr(false), + // }, + // Trigger: &armcontainerregistry.TriggerProperties{ + // BaseImageTrigger: &armcontainerregistry.BaseImageTrigger{ + // Name: to.Ptr("myBaseImageTrigger"), + // BaseImageTriggerType: to.Ptr(armcontainerregistry.BaseImageTriggerTypeRuntime), + // Status: to.Ptr(armcontainerregistry.TriggerStatusEnabled), + // }, + // SourceTriggers: []*armcontainerregistry.SourceTrigger{ + // { + // Name: to.Ptr("mySourceTrigger"), + // SourceRepository: &armcontainerregistry.SourceProperties{ + // Branch: to.Ptr("master"), + // RepositoryURL: to.Ptr("https://github.com/Azure/azure-rest-api-specs"), + // SourceControlType: to.Ptr(armcontainerregistry.SourceControlTypeGithub), + // }, + // SourceTriggerEvents: []*armcontainerregistry.SourceTriggerEvent{ + // to.Ptr(armcontainerregistry.SourceTriggerEventCommit)}, + // Status: to.Ptr(armcontainerregistry.TriggerStatusEnabled), + // }}, + // TimerTriggers: []*armcontainerregistry.TimerTrigger{ + // { + // Name: to.Ptr("myTimerTrigger"), + // Schedule: to.Ptr("30 9 * * 1-5"), + // Status: to.Ptr(armcontainerregistry.TriggerStatusEnabled), + // }}, + // }, + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/TasksGetDetails.json +func ExampleTasksClient_GetDetails() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewTasksClient("4385cf00-2d3a-425a-832f-f4285b1c9dce", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.GetDetails(ctx, "myResourceGroup", "myRegistry", "myTask", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.Task = armcontainerregistry.Task{ + // Location: to.Ptr("eastus"), + // Tags: map[string]*string{ + // "testkey": to.Ptr("value"), + // }, + // Identity: &armcontainerregistry.IdentityProperties{ + // Type: to.Ptr(armcontainerregistry.ResourceIdentityTypeSystemAssigned), + // PrincipalID: to.Ptr("fa153151-b9fd-46f4-9088-5e6600f2689v"), + // TenantID: to.Ptr("f686d426-8d16-42db-81b7-abu4gm510ccd"), + // }, + // Properties: &armcontainerregistry.TaskProperties{ + // AgentConfiguration: &armcontainerregistry.AgentProperties{ + // CPU: to.Ptr[int32](2), + // }, + // Credentials: &armcontainerregistry.Credentials{ + // CustomRegistries: map[string]*armcontainerregistry.CustomRegistryCredentials{ + // "myregistry.azure-test.io": &armcontainerregistry.CustomRegistryCredentials{ + // Identity: to.Ptr("[system]"), + // Password: &armcontainerregistry.SecretObject{ + // Type: to.Ptr(armcontainerregistry.SecretObjectTypeVaultsecret), + // Value: to.Ptr("https://myacbvault.vault.azure.net/secrets/username"), + // }, + // UserName: &armcontainerregistry.SecretObject{ + // Type: to.Ptr(armcontainerregistry.SecretObjectTypeOpaque), + // Value: to.Ptr("username"), + // }, + // }, + // }, + // }, + // IsSystemTask: to.Ptr(false), + // Platform: &armcontainerregistry.PlatformProperties{ + // Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), + // OS: to.Ptr(armcontainerregistry.OSLinux), + // }, + // Status: to.Ptr(armcontainerregistry.TaskStatusEnabled), + // Step: &armcontainerregistry.DockerBuildStep{ + // Type: to.Ptr(armcontainerregistry.StepTypeDocker), + // ContextPath: to.Ptr("src"), + // Arguments: []*armcontainerregistry.Argument{ + // { + // Name: to.Ptr("mytestargument"), + // IsSecret: to.Ptr(false), + // Value: to.Ptr("mytestvalue"), + // }, + // { + // Name: to.Ptr("mysecrettestargument"), + // IsSecret: to.Ptr(true), + // Value: to.Ptr("mysecrettestvalue"), + // }}, + // DockerFilePath: to.Ptr("src/DockerFile"), + // ImageNames: []*string{ + // to.Ptr("azurerest:testtag")}, + // IsPushEnabled: to.Ptr(true), + // NoCache: to.Ptr(false), + // }, + // Trigger: &armcontainerregistry.TriggerProperties{ + // BaseImageTrigger: &armcontainerregistry.BaseImageTrigger{ + // Name: to.Ptr("myBaseImageTrigger"), + // BaseImageTriggerType: to.Ptr(armcontainerregistry.BaseImageTriggerTypeRuntime), + // Status: to.Ptr(armcontainerregistry.TriggerStatusEnabled), + // UpdateTriggerEndpoint: to.Ptr("https://user:pass@mycicd.webhook.com?token=foo"), + // UpdateTriggerPayloadType: to.Ptr(armcontainerregistry.UpdateTriggerPayloadTypeToken), + // }, + // SourceTriggers: []*armcontainerregistry.SourceTrigger{ + // { + // Name: to.Ptr("mySourceTrigger"), + // SourceRepository: &armcontainerregistry.SourceProperties{ + // Branch: to.Ptr("master"), + // RepositoryURL: to.Ptr("https://github.com/Azure/azure-rest-api-specs"), + // SourceControlAuthProperties: &armcontainerregistry.AuthInfo{ + // Token: to.Ptr("xxxxx"), + // TokenType: to.Ptr(armcontainerregistry.TokenTypePAT), + // }, + // SourceControlType: to.Ptr(armcontainerregistry.SourceControlTypeGithub), + // }, + // SourceTriggerEvents: []*armcontainerregistry.SourceTriggerEvent{ + // to.Ptr(armcontainerregistry.SourceTriggerEventCommit)}, + // Status: to.Ptr(armcontainerregistry.TriggerStatusEnabled), + // }}, + // TimerTriggers: []*armcontainerregistry.TimerTrigger{ + // { + // Name: to.Ptr("myTimerTrigger"), + // Schedule: to.Ptr("30 9 * * 1-5"), + // Status: to.Ptr(armcontainerregistry.TriggerStatusEnabled), + // }}, + // }, + // }, + // } +} diff --git a/sdk/resourcemanager/containerregistry/armcontainerregistry/zz_generated_time_rfc3339.go b/sdk/resourcemanager/containerregistry/armcontainerregistry/time_rfc3339.go similarity index 96% rename from sdk/resourcemanager/containerregistry/armcontainerregistry/zz_generated_time_rfc3339.go rename to sdk/resourcemanager/containerregistry/armcontainerregistry/time_rfc3339.go index 663d13b40657..e4e6046663c0 100644 --- a/sdk/resourcemanager/containerregistry/armcontainerregistry/zz_generated_time_rfc3339.go +++ b/sdk/resourcemanager/containerregistry/armcontainerregistry/time_rfc3339.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armcontainerregistry @@ -61,7 +62,7 @@ func (t *timeRFC3339) Parse(layout, value string) error { return err } -func populateTimeRFC3339(m map[string]interface{}, k string, t *time.Time) { +func populateTimeRFC3339(m map[string]any, k string, t *time.Time) { if t == nil { return } else if azcore.IsNullValue(t) { diff --git a/sdk/resourcemanager/containerregistry/armcontainerregistry/zz_generated_tokens_client.go b/sdk/resourcemanager/containerregistry/armcontainerregistry/tokens_client.go similarity index 82% rename from sdk/resourcemanager/containerregistry/armcontainerregistry/zz_generated_tokens_client.go rename to sdk/resourcemanager/containerregistry/armcontainerregistry/tokens_client.go index eca329a0391a..a0967d8fd3d2 100644 --- a/sdk/resourcemanager/containerregistry/armcontainerregistry/zz_generated_tokens_client.go +++ b/sdk/resourcemanager/containerregistry/armcontainerregistry/tokens_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armcontainerregistry @@ -31,9 +32,9 @@ type TokensClient struct { } // NewTokensClient creates a new instance of TokensClient with the specified values. -// subscriptionID - The Microsoft Azure subscription ID. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewTokensClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*TokensClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,19 +57,22 @@ func NewTokensClient(subscriptionID string, credential azcore.TokenCredential, o // BeginCreate - Creates a token for a container registry with the specified parameters. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// tokenName - The name of the token. -// tokenCreateParameters - The parameters for creating a token. -// options - TokensClientBeginCreateOptions contains the optional parameters for the TokensClient.BeginCreate method. +// +// Generated from API version 2023-01-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - registryName - The name of the container registry. +// - tokenName - The name of the token. +// - tokenCreateParameters - The parameters for creating a token. +// - options - TokensClientBeginCreateOptions contains the optional parameters for the TokensClient.BeginCreate method. func (client *TokensClient) BeginCreate(ctx context.Context, resourceGroupName string, registryName string, tokenName string, tokenCreateParameters Token, options *TokensClientBeginCreateOptions) (*runtime.Poller[TokensClientCreateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.create(ctx, resourceGroupName, registryName, tokenName, tokenCreateParameters, options) if err != nil { return nil, err } - return runtime.NewPoller[TokensClientCreateResponse](resp, client.pl, nil) + return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[TokensClientCreateResponse]{ + FinalStateVia: runtime.FinalStateViaAzureAsyncOp, + }) } else { return runtime.NewPollerFromResumeToken[TokensClientCreateResponse](options.ResumeToken, client.pl, nil) } @@ -76,7 +80,8 @@ func (client *TokensClient) BeginCreate(ctx context.Context, resourceGroupName s // Create - Creates a token for a container registry with the specified parameters. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview +// +// Generated from API version 2023-01-01-preview func (client *TokensClient) create(ctx context.Context, resourceGroupName string, registryName string, tokenName string, tokenCreateParameters Token, options *TokensClientBeginCreateOptions) (*http.Response, error) { req, err := client.createCreateRequest(ctx, resourceGroupName, registryName, tokenName, tokenCreateParameters, options) if err != nil { @@ -95,9 +100,6 @@ func (client *TokensClient) create(ctx context.Context, resourceGroupName string // createCreateRequest creates the Create request. func (client *TokensClient) createCreateRequest(ctx context.Context, resourceGroupName string, registryName string, tokenName string, tokenCreateParameters Token, options *TokensClientBeginCreateOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/tokens/{tokenName}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -116,7 +118,7 @@ func (client *TokensClient) createCreateRequest(ctx context.Context, resourceGro return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-01-preview") + reqQP.Set("api-version", "2023-01-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, tokenCreateParameters) @@ -124,18 +126,21 @@ func (client *TokensClient) createCreateRequest(ctx context.Context, resourceGro // BeginDelete - Deletes a token from a container registry. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// tokenName - The name of the token. -// options - TokensClientBeginDeleteOptions contains the optional parameters for the TokensClient.BeginDelete method. +// +// Generated from API version 2023-01-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - registryName - The name of the container registry. +// - tokenName - The name of the token. +// - options - TokensClientBeginDeleteOptions contains the optional parameters for the TokensClient.BeginDelete method. func (client *TokensClient) BeginDelete(ctx context.Context, resourceGroupName string, registryName string, tokenName string, options *TokensClientBeginDeleteOptions) (*runtime.Poller[TokensClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, registryName, tokenName, options) if err != nil { return nil, err } - return runtime.NewPoller[TokensClientDeleteResponse](resp, client.pl, nil) + return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[TokensClientDeleteResponse]{ + FinalStateVia: runtime.FinalStateViaLocation, + }) } else { return runtime.NewPollerFromResumeToken[TokensClientDeleteResponse](options.ResumeToken, client.pl, nil) } @@ -143,7 +148,8 @@ func (client *TokensClient) BeginDelete(ctx context.Context, resourceGroupName s // Delete - Deletes a token from a container registry. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview +// +// Generated from API version 2023-01-01-preview func (client *TokensClient) deleteOperation(ctx context.Context, resourceGroupName string, registryName string, tokenName string, options *TokensClientBeginDeleteOptions) (*http.Response, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, registryName, tokenName, options) if err != nil { @@ -162,9 +168,6 @@ func (client *TokensClient) deleteOperation(ctx context.Context, resourceGroupNa // deleteCreateRequest creates the Delete request. func (client *TokensClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, registryName string, tokenName string, options *TokensClientBeginDeleteOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/tokens/{tokenName}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -183,7 +186,7 @@ func (client *TokensClient) deleteCreateRequest(ctx context.Context, resourceGro return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-01-preview") + reqQP.Set("api-version", "2023-01-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -191,11 +194,12 @@ func (client *TokensClient) deleteCreateRequest(ctx context.Context, resourceGro // Get - Gets the properties of the specified token. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// tokenName - The name of the token. -// options - TokensClientGetOptions contains the optional parameters for the TokensClient.Get method. +// +// Generated from API version 2023-01-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - registryName - The name of the container registry. +// - tokenName - The name of the token. +// - options - TokensClientGetOptions contains the optional parameters for the TokensClient.Get method. func (client *TokensClient) Get(ctx context.Context, resourceGroupName string, registryName string, tokenName string, options *TokensClientGetOptions) (TokensClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, registryName, tokenName, options) if err != nil { @@ -214,9 +218,6 @@ func (client *TokensClient) Get(ctx context.Context, resourceGroupName string, r // getCreateRequest creates the Get request. func (client *TokensClient) getCreateRequest(ctx context.Context, resourceGroupName string, registryName string, tokenName string, options *TokensClientGetOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/tokens/{tokenName}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -235,7 +236,7 @@ func (client *TokensClient) getCreateRequest(ctx context.Context, resourceGroupN return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-01-preview") + reqQP.Set("api-version", "2023-01-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -251,11 +252,11 @@ func (client *TokensClient) getHandleResponse(resp *http.Response) (TokensClient } // NewListPager - Lists all the tokens for the specified container registry. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// options - TokensClientListOptions contains the optional parameters for the TokensClient.List method. +// +// Generated from API version 2023-01-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - registryName - The name of the container registry. +// - options - TokensClientListOptions contains the optional parameters for the TokensClient.NewListPager method. func (client *TokensClient) NewListPager(resourceGroupName string, registryName string, options *TokensClientListOptions) *runtime.Pager[TokensClientListResponse] { return runtime.NewPager(runtime.PagingHandler[TokensClientListResponse]{ More: func(page TokensClientListResponse) bool { @@ -287,9 +288,6 @@ func (client *TokensClient) NewListPager(resourceGroupName string, registryName // listCreateRequest creates the List request. func (client *TokensClient) listCreateRequest(ctx context.Context, resourceGroupName string, registryName string, options *TokensClientListOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/tokens" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -304,7 +302,7 @@ func (client *TokensClient) listCreateRequest(ctx context.Context, resourceGroup return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-01-preview") + reqQP.Set("api-version", "2023-01-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -321,19 +319,22 @@ func (client *TokensClient) listHandleResponse(resp *http.Response) (TokensClien // BeginUpdate - Updates a token with the specified parameters. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// tokenName - The name of the token. -// tokenUpdateParameters - The parameters for updating a token. -// options - TokensClientBeginUpdateOptions contains the optional parameters for the TokensClient.BeginUpdate method. +// +// Generated from API version 2023-01-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - registryName - The name of the container registry. +// - tokenName - The name of the token. +// - tokenUpdateParameters - The parameters for updating a token. +// - options - TokensClientBeginUpdateOptions contains the optional parameters for the TokensClient.BeginUpdate method. func (client *TokensClient) BeginUpdate(ctx context.Context, resourceGroupName string, registryName string, tokenName string, tokenUpdateParameters TokenUpdateParameters, options *TokensClientBeginUpdateOptions) (*runtime.Poller[TokensClientUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.update(ctx, resourceGroupName, registryName, tokenName, tokenUpdateParameters, options) if err != nil { return nil, err } - return runtime.NewPoller[TokensClientUpdateResponse](resp, client.pl, nil) + return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[TokensClientUpdateResponse]{ + FinalStateVia: runtime.FinalStateViaAzureAsyncOp, + }) } else { return runtime.NewPollerFromResumeToken[TokensClientUpdateResponse](options.ResumeToken, client.pl, nil) } @@ -341,7 +342,8 @@ func (client *TokensClient) BeginUpdate(ctx context.Context, resourceGroupName s // Update - Updates a token with the specified parameters. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview +// +// Generated from API version 2023-01-01-preview func (client *TokensClient) update(ctx context.Context, resourceGroupName string, registryName string, tokenName string, tokenUpdateParameters TokenUpdateParameters, options *TokensClientBeginUpdateOptions) (*http.Response, error) { req, err := client.updateCreateRequest(ctx, resourceGroupName, registryName, tokenName, tokenUpdateParameters, options) if err != nil { @@ -360,9 +362,6 @@ func (client *TokensClient) update(ctx context.Context, resourceGroupName string // updateCreateRequest creates the Update request. func (client *TokensClient) updateCreateRequest(ctx context.Context, resourceGroupName string, registryName string, tokenName string, tokenUpdateParameters TokenUpdateParameters, options *TokensClientBeginUpdateOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/tokens/{tokenName}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -381,7 +380,7 @@ func (client *TokensClient) updateCreateRequest(ctx context.Context, resourceGro return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-01-preview") + reqQP.Set("api-version", "2023-01-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, tokenUpdateParameters) diff --git a/sdk/resourcemanager/containerregistry/armcontainerregistry/tokens_client_example_test.go b/sdk/resourcemanager/containerregistry/armcontainerregistry/tokens_client_example_test.go new file mode 100644 index 000000000000..451838a5c9e9 --- /dev/null +++ b/sdk/resourcemanager/containerregistry/armcontainerregistry/tokens_client_example_test.go @@ -0,0 +1,218 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armcontainerregistry_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2023-01-01-preview/examples/TokenList.json +func ExampleTokensClient_NewListPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewTokensClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListPager("myResourceGroup", "myRegistry", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.TokenListResult = armcontainerregistry.TokenListResult{ + // Value: []*armcontainerregistry.Token{ + // { + // Name: to.Ptr("myToken"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/tokens"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tokens/myToken"), + // Properties: &armcontainerregistry.TokenProperties{ + // CreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-01T23:14:37.0707808Z"); return t}()), + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // ScopeMapID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/scopeMaps/myScopeMap"), + // Status: to.Ptr(armcontainerregistry.TokenStatusEnabled), + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2023-01-01-preview/examples/TokenGet.json +func ExampleTokensClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewTokensClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "myResourceGroup", "myRegistry", "myToken", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.Token = armcontainerregistry.Token{ + // Name: to.Ptr("myToken"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/tokens"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tokens/myToken"), + // Properties: &armcontainerregistry.TokenProperties{ + // CreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-01T23:14:37.0707808Z"); return t}()), + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // ScopeMapID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/scopeMaps/myScopeMap"), + // Status: to.Ptr(armcontainerregistry.TokenStatusEnabled), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2023-01-01-preview/examples/TokenCreate.json +func ExampleTokensClient_BeginCreate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewTokensClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreate(ctx, "myResourceGroup", "myRegistry", "myToken", armcontainerregistry.Token{ + Properties: &armcontainerregistry.TokenProperties{ + Credentials: &armcontainerregistry.TokenCredentialsProperties{ + Certificates: []*armcontainerregistry.TokenCertificate{ + { + Name: to.Ptr(armcontainerregistry.TokenCertificateNameCertificate1), + EncodedPemCertificate: to.Ptr("LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUc3akNDQk5hZ0F3SUJBZ0lURmdBQlR3UVpyZGdmdmhxdzBnQUFBQUZQQkRBTkJna3Foa2lHOXcwQkFRc0YKQURDQml6RUxNQWtHQTFVRUJoTUNWVk14RXpBUkJnTlZCQWdUQ2xkaGMyaHBibWQwYjI0eEVEQU9CZ05WQkFjVApCMUpsWkcxdmJtUXhIakFjQmdOVkJBb1RGVTFwWTNKdmMyOW1kQ0JEYjNKd2IzSmhkR2x2YmpFVk1CTUdBMVVFCkN4TU1UV2xqY205emIyWjBJRWxVTVI0d0hBWURWUVFERXhWTmFXTnliM052Wm5RZ1NWUWdWRXhUSUVOQklEUXcKSGhjTk1UZ3dOREV5TWpJek1qUTRXaGNOTWpBd05ERXlNakl6TWpRNFdqQTVNVGN3TlFZRFZRUURFeTV6WlhKMgphV05sWTJ4cFpXNTBZMlZ5ZEMxd1lYSjBibVZ5TG0xaGJtRm5aVzFsYm5RdVlYcDFjbVV1WTI5dE1JSUJJakFOCkJna3Foa2lHOXcwQkFRRUZBQU9DQVE4QU1JSUJDZ0tDQVFFQTBSYjdJcHpxMmR4emhhbVpyS1ZDakMzeTQyYlYKUnNIY2pCUTFuSDBHZ1puUDhXeDZDSE1mWThybkVJQzRLeVRRYkJXVzhnNXlmc3NSQ0ZXbFpxYjR6SkRXS0pmTgpGSmNMUm9LNnhwTktZYVZVTkVlT25IdUxHYTM0ZlA0VjBFRjZybzdvbkRLME5zanhjY1dZVzRNVXVzc0xrQS94CkUrM2RwU1REdk1KcjJoWUpsVnFDcVR6blQvbmZaVUZzQUVEQnp5MUpOOHZiZDlIR2czc2Myd0x4dk95cFJOc0gKT1V3V2pmN2xzWWZleEVlcWkzY29EeHc2alpLVWEyVkdsUnBpTkowMjhBQitYSi9TU1FVNVBsd0JBbU9TT3ovRApGY0NKdGpPZlBqU1NKckFIQVV3SHU3RzlSV05JTFBwYU9zQ1J5eitETE5zNGpvNlEvUUg4d1lManJRSURBUUFCCm80SUNtakNDQXBZd0N3WURWUjBQQkFRREFnU3dNQjBHQTFVZEpRUVdNQlFHQ0NzR0FRVUZCd01DQmdnckJnRUYKQlFjREFUQWRCZ05WSFE0RUZnUVVlbEdkVVJrZzJoSFFOWEQ4WUc4L3drdjJVT0F3SHdZRFZSMGpCQmd3Rm9BVQplbnVNd2Mvbm9Nb2MxR3Y2KytFend3OGFvcDB3Z2F3R0ExVWRId1NCcERDQm9UQ0JucUNCbTZDQm1JWkxhSFIwCmNEb3ZMMjF6WTNKc0xtMXBZM0p2YzI5bWRDNWpiMjB2Y0d0cEwyMXpZMjl5Y0M5amNtd3ZUV2xqY205emIyWjAKSlRJd1NWUWxNakJVVEZNbE1qQkRRU1V5TURRdVkzSnNoa2xvZEhSd09pOHZZM0pzTG0xcFkzSnZjMjltZEM1agpiMjB2Y0d0cEwyMXpZMjl5Y0M5amNtd3ZUV2xqY205emIyWjBKVEl3U1ZRbE1qQlVURk1sTWpCRFFTVXlNRFF1ClkzSnNNSUdGQmdnckJnRUZCUWNCQVFSNU1IY3dVUVlJS3dZQkJRVUhNQUtHUldoMGRIQTZMeTkzZDNjdWJXbGoKY205emIyWjBMbU52YlM5d2Eya3ZiWE5qYjNKd0wwMXBZM0p2YzI5bWRDVXlNRWxVSlRJd1ZFeFRKVEl3UTBFbApNakEwTG1OeWREQWlCZ2dyQmdFRkJRY3dBWVlXYUhSMGNEb3ZMMjlqYzNBdWJYTnZZM053TG1OdmJUQStCZ2tyCkJnRUVBWUkzRlFjRU1UQXZCaWNyQmdFRUFZSTNGUWlIMm9aMWcrN1pBWUxKaFJ1QnRaNWhoZlRyWUlGZGhOTGYKUW9Mbmszb0NBV1FDQVIwd1RRWURWUjBnQkVZd1JEQkNCZ2tyQmdFRUFZSTNLZ0V3TlRBekJnZ3JCZ0VGQlFjQwpBUlluYUhSMGNEb3ZMM2QzZHk1dGFXTnliM052Wm5RdVkyOXRMM0JyYVM5dGMyTnZjbkF2WTNCek1DY0dDU3NHCkFRUUJnamNWQ2dRYU1CZ3dDZ1lJS3dZQkJRVUhBd0l3Q2dZSUt3WUJCUVVIQXdFd09RWURWUjBSQkRJd01JSXUKYzJWeWRtbGpaV05zYVdWdWRHTmxjblF0Y0dGeWRHNWxjaTV0WVc1aFoyVnRaVzUwTG1GNmRYSmxMbU52YlRBTgpCZ2txaGtpRzl3MEJBUXNGQUFPQ0FnRUFIVXIzbk1vdUI5WWdDUlRWYndUTllIS2RkWGJkSW1GUXNDYys4T1g1CjE5c0N6dFFSR05iSXEwVW1Ba01MbFVvWTIxckh4ZXdxU2hWczFhL2RwaFh5Tk1pcUdaU2QzU1BtYzZscitqUFQKNXVEREs0MUlWeXN0K2VUNlpyazFvcCtMVmdkeS9EU2lyNzVqcWZFY016bS82bU8rNnFNeWRLTWtVYmM5K3JHVwphUkpUcjRWUUdIRmEwNEIwZVZpNUd4MG9pL2RpZDNSaXg2aXJMMjFJSGEwYjN6c1hzZHpHU0R2K3hqL2Q2S0l4Ckdrd2FhYmZvU1NoQnFqaFNlQ0VyZXFlb1RpYjljdGw0MGRVdUp3THl4bjhHS2N6K3AvMEJUOEIxU3lYK01OQ2wKY0pkMjVtMjhLajY2TGUxOEVyeFlJYXZJVGVGa3Y2eGZjdkEvcHladDdPaU41QTlGQk1IUmpQK1kyZ2tvdjMrcQpISFRUZG4xNnlRajduNit3YlFHNGVleXc0YisyQkRLcUxNVFU2ZmlSQ3ZPM2FPZVBLSFVNN3R4b1FidWl6Z3NzCkNiMzl3QnJOTEZsMkJLQ1RkSCtkSU9oZVJiSkZvbmlwOGRPOUVFZWdSSG9lQW54ZUlYTFBrdXMzTzEvZjRhNkIKWHQ3RG5BUm8xSzJmeEp3VXRaU2MvR3dFSjU5NzlnRXlEa3pDZEVsLzdpWE9QZXVjTXhlM2xVM2pweUtsNERUaApjSkJqQytqNGpLWTFrK1U4b040aGdqYnJISUx6Vnd2eU15OU5KS290U3BMSjQxeHdPOHlGangxalFTT3Bxc0N1ClFhUFUvTjhSZ0hxWjBGTkFzS3dNUmZ6WmdXanRCNzRzYUVEdk5jVmNuNFhCQnFNSG0ydHo2Uzk3d3kxZGt0cTgKSE5BPQotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg=="), + }}, + }, + ScopeMapID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/scopeMaps/myScopeMap"), + Status: to.Ptr(armcontainerregistry.TokenStatusDisabled), + }, + }, 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.Token = armcontainerregistry.Token{ + // Name: to.Ptr("myToken"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/tokens"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tokens/myToken"), + // Properties: &armcontainerregistry.TokenProperties{ + // CreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-01T23:14:37.0707808Z"); return t}()), + // Credentials: &armcontainerregistry.TokenCredentialsProperties{ + // Certificates: []*armcontainerregistry.TokenCertificate{ + // { + // Name: to.Ptr(armcontainerregistry.TokenCertificateNameCertificate1), + // Expiry: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-12-04T15:32:48.0707808Z"); return t}()), + // Thumbprint: to.Ptr("feeb79a888bf1415f8e17c4965a2a5bb5c8a2ff7"), + // }}, + // }, + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // ScopeMapID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/scopeMaps/myScopeMap"), + // Status: to.Ptr(armcontainerregistry.TokenStatusDisabled), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2023-01-01-preview/examples/TokenDelete.json +func ExampleTokensClient_BeginDelete() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewTokensClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginDelete(ctx, "myResourceGroup", "myRegistry", "myToken", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + _, err = poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2023-01-01-preview/examples/TokenUpdate.json +func ExampleTokensClient_BeginUpdate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewTokensClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginUpdate(ctx, "myResourceGroup", "myRegistry", "myToken", armcontainerregistry.TokenUpdateParameters{ + Properties: &armcontainerregistry.TokenUpdateProperties{ + Credentials: &armcontainerregistry.TokenCredentialsProperties{ + Certificates: []*armcontainerregistry.TokenCertificate{ + { + Name: to.Ptr(armcontainerregistry.TokenCertificateNameCertificate1), + EncodedPemCertificate: to.Ptr("LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUc3akNDQk5hZ0F3SUJBZ0lURmdBQlR3UVpyZGdmdmhxdzBnQUFBQUZQQkRBTkJna3Foa2lHOXcwQkFRc0YKQURDQml6RUxNQWtHQTFVRUJoTUNWVk14RXpBUkJnTlZCQWdUQ2xkaGMyaHBibWQwYjI0eEVEQU9CZ05WQkFjVApCMUpsWkcxdmJtUXhIakFjQmdOVkJBb1RGVTFwWTNKdmMyOW1kQ0JEYjNKd2IzSmhkR2x2YmpFVk1CTUdBMVVFCkN4TU1UV2xqY205emIyWjBJRWxVTVI0d0hBWURWUVFERXhWTmFXTnliM052Wm5RZ1NWUWdWRXhUSUVOQklEUXcKSGhjTk1UZ3dOREV5TWpJek1qUTRXaGNOTWpBd05ERXlNakl6TWpRNFdqQTVNVGN3TlFZRFZRUURFeTV6WlhKMgphV05sWTJ4cFpXNTBZMlZ5ZEMxd1lYSjBibVZ5TG0xaGJtRm5aVzFsYm5RdVlYcDFjbVV1WTI5dE1JSUJJakFOCkJna3Foa2lHOXcwQkFRRUZBQU9DQVE4QU1JSUJDZ0tDQVFFQTBSYjdJcHpxMmR4emhhbVpyS1ZDakMzeTQyYlYKUnNIY2pCUTFuSDBHZ1puUDhXeDZDSE1mWThybkVJQzRLeVRRYkJXVzhnNXlmc3NSQ0ZXbFpxYjR6SkRXS0pmTgpGSmNMUm9LNnhwTktZYVZVTkVlT25IdUxHYTM0ZlA0VjBFRjZybzdvbkRLME5zanhjY1dZVzRNVXVzc0xrQS94CkUrM2RwU1REdk1KcjJoWUpsVnFDcVR6blQvbmZaVUZzQUVEQnp5MUpOOHZiZDlIR2czc2Myd0x4dk95cFJOc0gKT1V3V2pmN2xzWWZleEVlcWkzY29EeHc2alpLVWEyVkdsUnBpTkowMjhBQitYSi9TU1FVNVBsd0JBbU9TT3ovRApGY0NKdGpPZlBqU1NKckFIQVV3SHU3RzlSV05JTFBwYU9zQ1J5eitETE5zNGpvNlEvUUg4d1lManJRSURBUUFCCm80SUNtakNDQXBZd0N3WURWUjBQQkFRREFnU3dNQjBHQTFVZEpRUVdNQlFHQ0NzR0FRVUZCd01DQmdnckJnRUYKQlFjREFUQWRCZ05WSFE0RUZnUVVlbEdkVVJrZzJoSFFOWEQ4WUc4L3drdjJVT0F3SHdZRFZSMGpCQmd3Rm9BVQplbnVNd2Mvbm9Nb2MxR3Y2KytFend3OGFvcDB3Z2F3R0ExVWRId1NCcERDQm9UQ0JucUNCbTZDQm1JWkxhSFIwCmNEb3ZMMjF6WTNKc0xtMXBZM0p2YzI5bWRDNWpiMjB2Y0d0cEwyMXpZMjl5Y0M5amNtd3ZUV2xqY205emIyWjAKSlRJd1NWUWxNakJVVEZNbE1qQkRRU1V5TURRdVkzSnNoa2xvZEhSd09pOHZZM0pzTG0xcFkzSnZjMjltZEM1agpiMjB2Y0d0cEwyMXpZMjl5Y0M5amNtd3ZUV2xqY205emIyWjBKVEl3U1ZRbE1qQlVURk1sTWpCRFFTVXlNRFF1ClkzSnNNSUdGQmdnckJnRUZCUWNCQVFSNU1IY3dVUVlJS3dZQkJRVUhNQUtHUldoMGRIQTZMeTkzZDNjdWJXbGoKY205emIyWjBMbU52YlM5d2Eya3ZiWE5qYjNKd0wwMXBZM0p2YzI5bWRDVXlNRWxVSlRJd1ZFeFRKVEl3UTBFbApNakEwTG1OeWREQWlCZ2dyQmdFRkJRY3dBWVlXYUhSMGNEb3ZMMjlqYzNBdWJYTnZZM053TG1OdmJUQStCZ2tyCkJnRUVBWUkzRlFjRU1UQXZCaWNyQmdFRUFZSTNGUWlIMm9aMWcrN1pBWUxKaFJ1QnRaNWhoZlRyWUlGZGhOTGYKUW9Mbmszb0NBV1FDQVIwd1RRWURWUjBnQkVZd1JEQkNCZ2tyQmdFRUFZSTNLZ0V3TlRBekJnZ3JCZ0VGQlFjQwpBUlluYUhSMGNEb3ZMM2QzZHk1dGFXTnliM052Wm5RdVkyOXRMM0JyYVM5dGMyTnZjbkF2WTNCek1DY0dDU3NHCkFRUUJnamNWQ2dRYU1CZ3dDZ1lJS3dZQkJRVUhBd0l3Q2dZSUt3WUJCUVVIQXdFd09RWURWUjBSQkRJd01JSXUKYzJWeWRtbGpaV05zYVdWdWRHTmxjblF0Y0dGeWRHNWxjaTV0WVc1aFoyVnRaVzUwTG1GNmRYSmxMbU52YlRBTgpCZ2txaGtpRzl3MEJBUXNGQUFPQ0FnRUFIVXIzbk1vdUI5WWdDUlRWYndUTllIS2RkWGJkSW1GUXNDYys4T1g1CjE5c0N6dFFSR05iSXEwVW1Ba01MbFVvWTIxckh4ZXdxU2hWczFhL2RwaFh5Tk1pcUdaU2QzU1BtYzZscitqUFQKNXVEREs0MUlWeXN0K2VUNlpyazFvcCtMVmdkeS9EU2lyNzVqcWZFY016bS82bU8rNnFNeWRLTWtVYmM5K3JHVwphUkpUcjRWUUdIRmEwNEIwZVZpNUd4MG9pL2RpZDNSaXg2aXJMMjFJSGEwYjN6c1hzZHpHU0R2K3hqL2Q2S0l4Ckdrd2FhYmZvU1NoQnFqaFNlQ0VyZXFlb1RpYjljdGw0MGRVdUp3THl4bjhHS2N6K3AvMEJUOEIxU3lYK01OQ2wKY0pkMjVtMjhLajY2TGUxOEVyeFlJYXZJVGVGa3Y2eGZjdkEvcHladDdPaU41QTlGQk1IUmpQK1kyZ2tvdjMrcQpISFRUZG4xNnlRajduNit3YlFHNGVleXc0YisyQkRLcUxNVFU2ZmlSQ3ZPM2FPZVBLSFVNN3R4b1FidWl6Z3NzCkNiMzl3QnJOTEZsMkJLQ1RkSCtkSU9oZVJiSkZvbmlwOGRPOUVFZWdSSG9lQW54ZUlYTFBrdXMzTzEvZjRhNkIKWHQ3RG5BUm8xSzJmeEp3VXRaU2MvR3dFSjU5NzlnRXlEa3pDZEVsLzdpWE9QZXVjTXhlM2xVM2pweUtsNERUaApjSkJqQytqNGpLWTFrK1U4b040aGdqYnJISUx6Vnd2eU15OU5KS290U3BMSjQxeHdPOHlGangxalFTT3Bxc0N1ClFhUFUvTjhSZ0hxWjBGTkFzS3dNUmZ6WmdXanRCNzRzYUVEdk5jVmNuNFhCQnFNSG0ydHo2Uzk3d3kxZGt0cTgKSE5BPQotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg=="), + }}, + }, + ScopeMapID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/scopeMaps/myNewScopeMap"), + }, + }, 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.Token = armcontainerregistry.Token{ + // Name: to.Ptr("myToken"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/tokens"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tokens/myToken"), + // Properties: &armcontainerregistry.TokenProperties{ + // CreationDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-01T23:14:37.0707808Z"); return t}()), + // Credentials: &armcontainerregistry.TokenCredentialsProperties{ + // Certificates: []*armcontainerregistry.TokenCertificate{ + // { + // Name: to.Ptr(armcontainerregistry.TokenCertificateNameCertificate1), + // EncodedPemCertificate: to.Ptr("LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUc3akNDQk5hZ0F3SUJBZ0lURmdBQlR3UVpyZGdmdmhxdzBnQUFBQUZQQkRBTkJna3Foa2lHOXcwQkFRc0YKQURDQml6RUxNQWtHQTFVRUJoTUNWVk14RXpBUkJnTlZCQWdUQ2xkaGMyaHBibWQwYjI0eEVEQU9CZ05WQkFjVApCMUpsWkcxdmJtUXhIakFjQmdOVkJBb1RGVTFwWTNKdmMyOW1kQ0JEYjNKd2IzSmhkR2x2YmpFVk1CTUdBMVVFCkN4TU1UV2xqY205emIyWjBJRWxVTVI0d0hBWURWUVFERXhWTmFXTnliM052Wm5RZ1NWUWdWRXhUSUVOQklEUXcKSGhjTk1UZ3dOREV5TWpJek1qUTRXaGNOTWpBd05ERXlNakl6TWpRNFdqQTVNVGN3TlFZRFZRUURFeTV6WlhKMgphV05sWTJ4cFpXNTBZMlZ5ZEMxd1lYSjBibVZ5TG0xaGJtRm5aVzFsYm5RdVlYcDFjbVV1WTI5dE1JSUJJakFOCkJna3Foa2lHOXcwQkFRRUZBQU9DQVE4QU1JSUJDZ0tDQVFFQTBSYjdJcHpxMmR4emhhbVpyS1ZDakMzeTQyYlYKUnNIY2pCUTFuSDBHZ1puUDhXeDZDSE1mWThybkVJQzRLeVRRYkJXVzhnNXlmc3NSQ0ZXbFpxYjR6SkRXS0pmTgpGSmNMUm9LNnhwTktZYVZVTkVlT25IdUxHYTM0ZlA0VjBFRjZybzdvbkRLME5zanhjY1dZVzRNVXVzc0xrQS94CkUrM2RwU1REdk1KcjJoWUpsVnFDcVR6blQvbmZaVUZzQUVEQnp5MUpOOHZiZDlIR2czc2Myd0x4dk95cFJOc0gKT1V3V2pmN2xzWWZleEVlcWkzY29EeHc2alpLVWEyVkdsUnBpTkowMjhBQitYSi9TU1FVNVBsd0JBbU9TT3ovRApGY0NKdGpPZlBqU1NKckFIQVV3SHU3RzlSV05JTFBwYU9zQ1J5eitETE5zNGpvNlEvUUg4d1lManJRSURBUUFCCm80SUNtakNDQXBZd0N3WURWUjBQQkFRREFnU3dNQjBHQTFVZEpRUVdNQlFHQ0NzR0FRVUZCd01DQmdnckJnRUYKQlFjREFUQWRCZ05WSFE0RUZnUVVlbEdkVVJrZzJoSFFOWEQ4WUc4L3drdjJVT0F3SHdZRFZSMGpCQmd3Rm9BVQplbnVNd2Mvbm9Nb2MxR3Y2KytFend3OGFvcDB3Z2F3R0ExVWRId1NCcERDQm9UQ0JucUNCbTZDQm1JWkxhSFIwCmNEb3ZMMjF6WTNKc0xtMXBZM0p2YzI5bWRDNWpiMjB2Y0d0cEwyMXpZMjl5Y0M5amNtd3ZUV2xqY205emIyWjAKSlRJd1NWUWxNakJVVEZNbE1qQkRRU1V5TURRdVkzSnNoa2xvZEhSd09pOHZZM0pzTG0xcFkzSnZjMjltZEM1agpiMjB2Y0d0cEwyMXpZMjl5Y0M5amNtd3ZUV2xqY205emIyWjBKVEl3U1ZRbE1qQlVURk1sTWpCRFFTVXlNRFF1ClkzSnNNSUdGQmdnckJnRUZCUWNCQVFSNU1IY3dVUVlJS3dZQkJRVUhNQUtHUldoMGRIQTZMeTkzZDNjdWJXbGoKY205emIyWjBMbU52YlM5d2Eya3ZiWE5qYjNKd0wwMXBZM0p2YzI5bWRDVXlNRWxVSlRJd1ZFeFRKVEl3UTBFbApNakEwTG1OeWREQWlCZ2dyQmdFRkJRY3dBWVlXYUhSMGNEb3ZMMjlqYzNBdWJYTnZZM053TG1OdmJUQStCZ2tyCkJnRUVBWUkzRlFjRU1UQXZCaWNyQmdFRUFZSTNGUWlIMm9aMWcrN1pBWUxKaFJ1QnRaNWhoZlRyWUlGZGhOTGYKUW9Mbmszb0NBV1FDQVIwd1RRWURWUjBnQkVZd1JEQkNCZ2tyQmdFRUFZSTNLZ0V3TlRBekJnZ3JCZ0VGQlFjQwpBUlluYUhSMGNEb3ZMM2QzZHk1dGFXTnliM052Wm5RdVkyOXRMM0JyYVM5dGMyTnZjbkF2WTNCek1DY0dDU3NHCkFRUUJnamNWQ2dRYU1CZ3dDZ1lJS3dZQkJRVUhBd0l3Q2dZSUt3WUJCUVVIQXdFd09RWURWUjBSQkRJd01JSXUKYzJWeWRtbGpaV05zYVdWdWRHTmxjblF0Y0dGeWRHNWxjaTV0WVc1aFoyVnRaVzUwTG1GNmRYSmxMbU52YlRBTgpCZ2txaGtpRzl3MEJBUXNGQUFPQ0FnRUFIVXIzbk1vdUI5WWdDUlRWYndUTllIS2RkWGJkSW1GUXNDYys4T1g1CjE5c0N6dFFSR05iSXEwVW1Ba01MbFVvWTIxckh4ZXdxU2hWczFhL2RwaFh5Tk1pcUdaU2QzU1BtYzZscitqUFQKNXVEREs0MUlWeXN0K2VUNlpyazFvcCtMVmdkeS9EU2lyNzVqcWZFY016bS82bU8rNnFNeWRLTWtVYmM5K3JHVwphUkpUcjRWUUdIRmEwNEIwZVZpNUd4MG9pL2RpZDNSaXg2aXJMMjFJSGEwYjN6c1hzZHpHU0R2K3hqL2Q2S0l4Ckdrd2FhYmZvU1NoQnFqaFNlQ0VyZXFlb1RpYjljdGw0MGRVdUp3THl4bjhHS2N6K3AvMEJUOEIxU3lYK01OQ2wKY0pkMjVtMjhLajY2TGUxOEVyeFlJYXZJVGVGa3Y2eGZjdkEvcHladDdPaU41QTlGQk1IUmpQK1kyZ2tvdjMrcQpISFRUZG4xNnlRajduNit3YlFHNGVleXc0YisyQkRLcUxNVFU2ZmlSQ3ZPM2FPZVBLSFVNN3R4b1FidWl6Z3NzCkNiMzl3QnJOTEZsMkJLQ1RkSCtkSU9oZVJiSkZvbmlwOGRPOUVFZWdSSG9lQW54ZUlYTFBrdXMzTzEvZjRhNkIKWHQ3RG5BUm8xSzJmeEp3VXRaU2MvR3dFSjU5NzlnRXlEa3pDZEVsLzdpWE9QZXVjTXhlM2xVM2pweUtsNERUaApjSkJqQytqNGpLWTFrK1U4b040aGdqYnJISUx6Vnd2eU15OU5KS290U3BMSjQxeHdPOHlGangxalFTT3Bxc0N1ClFhUFUvTjhSZ0hxWjBGTkFzS3dNUmZ6WmdXanRCNzRzYUVEdk5jVmNuNFhCQnFNSG0ydHo2Uzk3d3kxZGt0cTgKSE5BPQotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg=="), + // }}, + // }, + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // ScopeMapID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/scopeMaps/myNewScopeMap"), + // Status: to.Ptr(armcontainerregistry.TokenStatusEnabled), + // }, + // } +} diff --git a/sdk/resourcemanager/containerregistry/armcontainerregistry/zz_generated_webhooks_client.go b/sdk/resourcemanager/containerregistry/armcontainerregistry/webhooks_client.go similarity index 82% rename from sdk/resourcemanager/containerregistry/armcontainerregistry/zz_generated_webhooks_client.go rename to sdk/resourcemanager/containerregistry/armcontainerregistry/webhooks_client.go index bc6a45938cea..eb6401777399 100644 --- a/sdk/resourcemanager/containerregistry/armcontainerregistry/zz_generated_webhooks_client.go +++ b/sdk/resourcemanager/containerregistry/armcontainerregistry/webhooks_client.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armcontainerregistry @@ -31,9 +32,9 @@ type WebhooksClient struct { } // NewWebhooksClient creates a new instance of WebhooksClient with the specified values. -// subscriptionID - The Microsoft Azure subscription ID. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. The value must be an UUID. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewWebhooksClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*WebhooksClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,19 +57,22 @@ func NewWebhooksClient(subscriptionID string, credential azcore.TokenCredential, // BeginCreate - Creates a webhook for a container registry with the specified parameters. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// webhookName - The name of the webhook. -// webhookCreateParameters - The parameters for creating a webhook. -// options - WebhooksClientBeginCreateOptions contains the optional parameters for the WebhooksClient.BeginCreate method. +// +// Generated from API version 2023-01-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - registryName - The name of the container registry. +// - webhookName - The name of the webhook. +// - webhookCreateParameters - The parameters for creating a webhook. +// - options - WebhooksClientBeginCreateOptions contains the optional parameters for the WebhooksClient.BeginCreate method. func (client *WebhooksClient) BeginCreate(ctx context.Context, resourceGroupName string, registryName string, webhookName string, webhookCreateParameters WebhookCreateParameters, options *WebhooksClientBeginCreateOptions) (*runtime.Poller[WebhooksClientCreateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.create(ctx, resourceGroupName, registryName, webhookName, webhookCreateParameters, options) if err != nil { return nil, err } - return runtime.NewPoller[WebhooksClientCreateResponse](resp, client.pl, nil) + return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[WebhooksClientCreateResponse]{ + FinalStateVia: runtime.FinalStateViaAzureAsyncOp, + }) } else { return runtime.NewPollerFromResumeToken[WebhooksClientCreateResponse](options.ResumeToken, client.pl, nil) } @@ -76,7 +80,8 @@ func (client *WebhooksClient) BeginCreate(ctx context.Context, resourceGroupName // Create - Creates a webhook for a container registry with the specified parameters. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview +// +// Generated from API version 2023-01-01-preview func (client *WebhooksClient) create(ctx context.Context, resourceGroupName string, registryName string, webhookName string, webhookCreateParameters WebhookCreateParameters, options *WebhooksClientBeginCreateOptions) (*http.Response, error) { req, err := client.createCreateRequest(ctx, resourceGroupName, registryName, webhookName, webhookCreateParameters, options) if err != nil { @@ -95,9 +100,6 @@ func (client *WebhooksClient) create(ctx context.Context, resourceGroupName stri // createCreateRequest creates the Create request. func (client *WebhooksClient) createCreateRequest(ctx context.Context, resourceGroupName string, registryName string, webhookName string, webhookCreateParameters WebhookCreateParameters, options *WebhooksClientBeginCreateOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/webhooks/{webhookName}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -116,7 +118,7 @@ func (client *WebhooksClient) createCreateRequest(ctx context.Context, resourceG return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-01-preview") + reqQP.Set("api-version", "2023-01-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, webhookCreateParameters) @@ -124,18 +126,21 @@ func (client *WebhooksClient) createCreateRequest(ctx context.Context, resourceG // BeginDelete - Deletes a webhook from a container registry. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// webhookName - The name of the webhook. -// options - WebhooksClientBeginDeleteOptions contains the optional parameters for the WebhooksClient.BeginDelete method. +// +// Generated from API version 2023-01-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - registryName - The name of the container registry. +// - webhookName - The name of the webhook. +// - options - WebhooksClientBeginDeleteOptions contains the optional parameters for the WebhooksClient.BeginDelete method. func (client *WebhooksClient) BeginDelete(ctx context.Context, resourceGroupName string, registryName string, webhookName string, options *WebhooksClientBeginDeleteOptions) (*runtime.Poller[WebhooksClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, registryName, webhookName, options) if err != nil { return nil, err } - return runtime.NewPoller[WebhooksClientDeleteResponse](resp, client.pl, nil) + return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[WebhooksClientDeleteResponse]{ + FinalStateVia: runtime.FinalStateViaLocation, + }) } else { return runtime.NewPollerFromResumeToken[WebhooksClientDeleteResponse](options.ResumeToken, client.pl, nil) } @@ -143,7 +148,8 @@ func (client *WebhooksClient) BeginDelete(ctx context.Context, resourceGroupName // Delete - Deletes a webhook from a container registry. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview +// +// Generated from API version 2023-01-01-preview func (client *WebhooksClient) deleteOperation(ctx context.Context, resourceGroupName string, registryName string, webhookName string, options *WebhooksClientBeginDeleteOptions) (*http.Response, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, registryName, webhookName, options) if err != nil { @@ -162,9 +168,6 @@ func (client *WebhooksClient) deleteOperation(ctx context.Context, resourceGroup // deleteCreateRequest creates the Delete request. func (client *WebhooksClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, registryName string, webhookName string, options *WebhooksClientBeginDeleteOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/webhooks/{webhookName}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -183,18 +186,19 @@ func (client *WebhooksClient) deleteCreateRequest(ctx context.Context, resourceG return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-01-preview") + reqQP.Set("api-version", "2023-01-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() return req, nil } // Get - Gets the properties of the specified webhook. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// webhookName - The name of the webhook. -// options - WebhooksClientGetOptions contains the optional parameters for the WebhooksClient.Get method. +// +// Generated from API version 2023-01-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - registryName - The name of the container registry. +// - webhookName - The name of the webhook. +// - options - WebhooksClientGetOptions contains the optional parameters for the WebhooksClient.Get method. func (client *WebhooksClient) Get(ctx context.Context, resourceGroupName string, registryName string, webhookName string, options *WebhooksClientGetOptions) (WebhooksClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, registryName, webhookName, options) if err != nil { @@ -213,9 +217,6 @@ func (client *WebhooksClient) Get(ctx context.Context, resourceGroupName string, // getCreateRequest creates the Get request. func (client *WebhooksClient) getCreateRequest(ctx context.Context, resourceGroupName string, registryName string, webhookName string, options *WebhooksClientGetOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/webhooks/{webhookName}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -234,7 +235,7 @@ func (client *WebhooksClient) getCreateRequest(ctx context.Context, resourceGrou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-01-preview") + reqQP.Set("api-version", "2023-01-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -251,12 +252,13 @@ func (client *WebhooksClient) getHandleResponse(resp *http.Response) (WebhooksCl // GetCallbackConfig - Gets the configuration of service URI and custom headers for the webhook. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// webhookName - The name of the webhook. -// options - WebhooksClientGetCallbackConfigOptions contains the optional parameters for the WebhooksClient.GetCallbackConfig -// method. +// +// Generated from API version 2023-01-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - registryName - The name of the container registry. +// - webhookName - The name of the webhook. +// - options - WebhooksClientGetCallbackConfigOptions contains the optional parameters for the WebhooksClient.GetCallbackConfig +// method. func (client *WebhooksClient) GetCallbackConfig(ctx context.Context, resourceGroupName string, registryName string, webhookName string, options *WebhooksClientGetCallbackConfigOptions) (WebhooksClientGetCallbackConfigResponse, error) { req, err := client.getCallbackConfigCreateRequest(ctx, resourceGroupName, registryName, webhookName, options) if err != nil { @@ -275,9 +277,6 @@ func (client *WebhooksClient) GetCallbackConfig(ctx context.Context, resourceGro // getCallbackConfigCreateRequest creates the GetCallbackConfig request. func (client *WebhooksClient) getCallbackConfigCreateRequest(ctx context.Context, resourceGroupName string, registryName string, webhookName string, options *WebhooksClientGetCallbackConfigOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/webhooks/{webhookName}/getCallbackConfig" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -296,7 +295,7 @@ func (client *WebhooksClient) getCallbackConfigCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-01-preview") + reqQP.Set("api-version", "2023-01-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -312,11 +311,11 @@ func (client *WebhooksClient) getCallbackConfigHandleResponse(resp *http.Respons } // NewListPager - Lists all the webhooks for the specified container registry. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// options - WebhooksClientListOptions contains the optional parameters for the WebhooksClient.List method. +// +// Generated from API version 2023-01-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - registryName - The name of the container registry. +// - options - WebhooksClientListOptions contains the optional parameters for the WebhooksClient.NewListPager method. func (client *WebhooksClient) NewListPager(resourceGroupName string, registryName string, options *WebhooksClientListOptions) *runtime.Pager[WebhooksClientListResponse] { return runtime.NewPager(runtime.PagingHandler[WebhooksClientListResponse]{ More: func(page WebhooksClientListResponse) bool { @@ -348,9 +347,6 @@ func (client *WebhooksClient) NewListPager(resourceGroupName string, registryNam // listCreateRequest creates the List request. func (client *WebhooksClient) listCreateRequest(ctx context.Context, resourceGroupName string, registryName string, options *WebhooksClientListOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/webhooks" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -365,7 +361,7 @@ func (client *WebhooksClient) listCreateRequest(ctx context.Context, resourceGro return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-01-preview") + reqQP.Set("api-version", "2023-01-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -381,12 +377,12 @@ func (client *WebhooksClient) listHandleResponse(resp *http.Response) (WebhooksC } // NewListEventsPager - Lists recent events for the specified webhook. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// webhookName - The name of the webhook. -// options - WebhooksClientListEventsOptions contains the optional parameters for the WebhooksClient.ListEvents method. +// +// Generated from API version 2023-01-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - registryName - The name of the container registry. +// - webhookName - The name of the webhook. +// - options - WebhooksClientListEventsOptions contains the optional parameters for the WebhooksClient.NewListEventsPager method. func (client *WebhooksClient) NewListEventsPager(resourceGroupName string, registryName string, webhookName string, options *WebhooksClientListEventsOptions) *runtime.Pager[WebhooksClientListEventsResponse] { return runtime.NewPager(runtime.PagingHandler[WebhooksClientListEventsResponse]{ More: func(page WebhooksClientListEventsResponse) bool { @@ -418,9 +414,6 @@ func (client *WebhooksClient) NewListEventsPager(resourceGroupName string, regis // listEventsCreateRequest creates the ListEvents request. func (client *WebhooksClient) listEventsCreateRequest(ctx context.Context, resourceGroupName string, registryName string, webhookName string, options *WebhooksClientListEventsOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/webhooks/{webhookName}/listEvents" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -439,7 +432,7 @@ func (client *WebhooksClient) listEventsCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-01-preview") + reqQP.Set("api-version", "2023-01-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -456,11 +449,12 @@ func (client *WebhooksClient) listEventsHandleResponse(resp *http.Response) (Web // Ping - Triggers a ping event to be sent to the webhook. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// webhookName - The name of the webhook. -// options - WebhooksClientPingOptions contains the optional parameters for the WebhooksClient.Ping method. +// +// Generated from API version 2023-01-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - registryName - The name of the container registry. +// - webhookName - The name of the webhook. +// - options - WebhooksClientPingOptions contains the optional parameters for the WebhooksClient.Ping method. func (client *WebhooksClient) Ping(ctx context.Context, resourceGroupName string, registryName string, webhookName string, options *WebhooksClientPingOptions) (WebhooksClientPingResponse, error) { req, err := client.pingCreateRequest(ctx, resourceGroupName, registryName, webhookName, options) if err != nil { @@ -479,9 +473,6 @@ func (client *WebhooksClient) Ping(ctx context.Context, resourceGroupName string // pingCreateRequest creates the Ping request. func (client *WebhooksClient) pingCreateRequest(ctx context.Context, resourceGroupName string, registryName string, webhookName string, options *WebhooksClientPingOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/webhooks/{webhookName}/ping" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -500,7 +491,7 @@ func (client *WebhooksClient) pingCreateRequest(ctx context.Context, resourceGro return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-01-preview") + reqQP.Set("api-version", "2023-01-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -517,19 +508,22 @@ func (client *WebhooksClient) pingHandleResponse(resp *http.Response) (WebhooksC // BeginUpdate - Updates a webhook with the specified parameters. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview -// resourceGroupName - The name of the resource group to which the container registry belongs. -// registryName - The name of the container registry. -// webhookName - The name of the webhook. -// webhookUpdateParameters - The parameters for updating a webhook. -// options - WebhooksClientBeginUpdateOptions contains the optional parameters for the WebhooksClient.BeginUpdate method. +// +// Generated from API version 2023-01-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - registryName - The name of the container registry. +// - webhookName - The name of the webhook. +// - webhookUpdateParameters - The parameters for updating a webhook. +// - options - WebhooksClientBeginUpdateOptions contains the optional parameters for the WebhooksClient.BeginUpdate method. func (client *WebhooksClient) BeginUpdate(ctx context.Context, resourceGroupName string, registryName string, webhookName string, webhookUpdateParameters WebhookUpdateParameters, options *WebhooksClientBeginUpdateOptions) (*runtime.Poller[WebhooksClientUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.update(ctx, resourceGroupName, registryName, webhookName, webhookUpdateParameters, options) if err != nil { return nil, err } - return runtime.NewPoller[WebhooksClientUpdateResponse](resp, client.pl, nil) + return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[WebhooksClientUpdateResponse]{ + FinalStateVia: runtime.FinalStateViaAzureAsyncOp, + }) } else { return runtime.NewPollerFromResumeToken[WebhooksClientUpdateResponse](options.ResumeToken, client.pl, nil) } @@ -537,7 +531,8 @@ func (client *WebhooksClient) BeginUpdate(ctx context.Context, resourceGroupName // Update - Updates a webhook with the specified parameters. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-02-01-preview +// +// Generated from API version 2023-01-01-preview func (client *WebhooksClient) update(ctx context.Context, resourceGroupName string, registryName string, webhookName string, webhookUpdateParameters WebhookUpdateParameters, options *WebhooksClientBeginUpdateOptions) (*http.Response, error) { req, err := client.updateCreateRequest(ctx, resourceGroupName, registryName, webhookName, webhookUpdateParameters, options) if err != nil { @@ -556,9 +551,6 @@ func (client *WebhooksClient) update(ctx context.Context, resourceGroupName stri // updateCreateRequest creates the Update request. func (client *WebhooksClient) updateCreateRequest(ctx context.Context, resourceGroupName string, registryName string, webhookName string, webhookUpdateParameters WebhookUpdateParameters, options *WebhooksClientBeginUpdateOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/webhooks/{webhookName}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -577,7 +569,7 @@ func (client *WebhooksClient) updateCreateRequest(ctx context.Context, resourceG return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-02-01-preview") + reqQP.Set("api-version", "2023-01-01-preview") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, webhookUpdateParameters) diff --git a/sdk/resourcemanager/containerregistry/armcontainerregistry/webhooks_client_example_test.go b/sdk/resourcemanager/containerregistry/armcontainerregistry/webhooks_client_example_test.go new file mode 100644 index 000000000000..2bfcf1fb6069 --- /dev/null +++ b/sdk/resourcemanager/containerregistry/armcontainerregistry/webhooks_client_example_test.go @@ -0,0 +1,353 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armcontainerregistry_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2023-01-01-preview/examples/WebhookList.json +func ExampleWebhooksClient_NewListPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewWebhooksClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListPager("myResourceGroup", "myRegistry", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.WebhookListResult = armcontainerregistry.WebhookListResult{ + // Value: []*armcontainerregistry.Webhook{ + // { + // Name: to.Ptr("myWebhook"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/webhooks"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/webhooks/myWebhook"), + // Location: to.Ptr("westus"), + // Tags: map[string]*string{ + // "key": to.Ptr("value"), + // }, + // Properties: &armcontainerregistry.WebhookProperties{ + // Actions: []*armcontainerregistry.WebhookAction{ + // to.Ptr(armcontainerregistry.WebhookActionPush)}, + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // Scope: to.Ptr("myRepository"), + // Status: to.Ptr(armcontainerregistry.WebhookStatusEnabled), + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2023-01-01-preview/examples/WebhookGet.json +func ExampleWebhooksClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewWebhooksClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "myResourceGroup", "myRegistry", "myWebhook", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.Webhook = armcontainerregistry.Webhook{ + // Name: to.Ptr("myWebhook"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/webhooks"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/webhooks/myWebhook"), + // Location: to.Ptr("westus"), + // Tags: map[string]*string{ + // "key": to.Ptr("value"), + // }, + // Properties: &armcontainerregistry.WebhookProperties{ + // Actions: []*armcontainerregistry.WebhookAction{ + // to.Ptr(armcontainerregistry.WebhookActionPush)}, + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // Scope: to.Ptr("myRepository"), + // Status: to.Ptr(armcontainerregistry.WebhookStatusEnabled), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2023-01-01-preview/examples/WebhookCreate.json +func ExampleWebhooksClient_BeginCreate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewWebhooksClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreate(ctx, "myResourceGroup", "myRegistry", "myWebhook", armcontainerregistry.WebhookCreateParameters{ + Location: to.Ptr("westus"), + Properties: &armcontainerregistry.WebhookPropertiesCreateParameters{ + Actions: []*armcontainerregistry.WebhookAction{ + to.Ptr(armcontainerregistry.WebhookActionPush)}, + CustomHeaders: map[string]*string{ + "Authorization": to.Ptr("Basic 000000000000000000000000000000000000000000000000000"), + }, + Scope: to.Ptr("myRepository"), + ServiceURI: to.Ptr("http://myservice.com"), + Status: to.Ptr(armcontainerregistry.WebhookStatusEnabled), + }, + Tags: map[string]*string{ + "key": to.Ptr("value"), + }, + }, 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.Webhook = armcontainerregistry.Webhook{ + // Name: to.Ptr("myWebhook"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/webhooks"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/webhooks/myWebhook"), + // Location: to.Ptr("westus"), + // Tags: map[string]*string{ + // "key": to.Ptr("value"), + // }, + // Properties: &armcontainerregistry.WebhookProperties{ + // Actions: []*armcontainerregistry.WebhookAction{ + // to.Ptr(armcontainerregistry.WebhookActionPush)}, + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // Scope: to.Ptr("myRepository"), + // Status: to.Ptr(armcontainerregistry.WebhookStatusEnabled), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2023-01-01-preview/examples/WebhookDelete.json +func ExampleWebhooksClient_BeginDelete() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewWebhooksClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginDelete(ctx, "myResourceGroup", "myRegistry", "myWebhook", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + _, err = poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2023-01-01-preview/examples/WebhookUpdate.json +func ExampleWebhooksClient_BeginUpdate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewWebhooksClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginUpdate(ctx, "myResourceGroup", "myRegistry", "myWebhook", armcontainerregistry.WebhookUpdateParameters{ + Properties: &armcontainerregistry.WebhookPropertiesUpdateParameters{ + Actions: []*armcontainerregistry.WebhookAction{ + to.Ptr(armcontainerregistry.WebhookActionPush)}, + CustomHeaders: map[string]*string{ + "Authorization": to.Ptr("Basic 000000000000000000000000000000000000000000000000000"), + }, + Scope: to.Ptr("myRepository"), + ServiceURI: to.Ptr("http://myservice.com"), + Status: to.Ptr(armcontainerregistry.WebhookStatusEnabled), + }, + Tags: map[string]*string{ + "key": to.Ptr("value"), + }, + }, 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.Webhook = armcontainerregistry.Webhook{ + // Name: to.Ptr("myWebhook"), + // Type: to.Ptr("Microsoft.ContainerRegistry/registries/webhooks"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/webhooks/myWebhook"), + // Location: to.Ptr("westus"), + // Tags: map[string]*string{ + // "key": to.Ptr("value"), + // }, + // Properties: &armcontainerregistry.WebhookProperties{ + // Actions: []*armcontainerregistry.WebhookAction{ + // to.Ptr(armcontainerregistry.WebhookActionPush)}, + // ProvisioningState: to.Ptr(armcontainerregistry.ProvisioningStateSucceeded), + // Scope: to.Ptr("myRepository"), + // Status: to.Ptr(armcontainerregistry.WebhookStatusEnabled), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2023-01-01-preview/examples/WebhookPing.json +func ExampleWebhooksClient_Ping() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewWebhooksClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Ping(ctx, "myResourceGroup", "myRegistry", "myWebhook", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.EventInfo = armcontainerregistry.EventInfo{ + // ID: to.Ptr("00000000-0000-0000-0000-000000000000"), + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2023-01-01-preview/examples/WebhookListEvents.json +func ExampleWebhooksClient_NewListEventsPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewWebhooksClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListEventsPager("myResourceGroup", "myRegistry", "myWebhook", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.EventListResult = armcontainerregistry.EventListResult{ + // Value: []*armcontainerregistry.Event{ + // { + // ID: to.Ptr("00000000-0000-0000-0000-000000000000"), + // EventRequestMessage: &armcontainerregistry.EventRequestMessage{ + // Method: to.Ptr("POST"), + // Content: &armcontainerregistry.EventContent{ + // Action: to.Ptr("push"), + // Actor: &armcontainerregistry.Actor{ + // }, + // ID: to.Ptr("00000000-0000-0000-0000-000000000000"), + // Source: &armcontainerregistry.Source{ + // Addr: to.Ptr("xtal.local:5000"), + // InstanceID: to.Ptr("00000000-0000-0000-0000-000000000000"), + // }, + // Target: &armcontainerregistry.Target{ + // Digest: to.Ptr("sha256:fea8895f450959fa676bcc1df0611ea93823a735a01205fd8622846041d0c7cf"), + // Length: to.Ptr[int64](708), + // MediaType: to.Ptr("application/vnd.docker.distribution.manifest.v2+json"), + // Repository: to.Ptr("hello-world"), + // Size: to.Ptr[int64](708), + // Tag: to.Ptr("latest"), + // URL: to.Ptr("http://192.168.100.227:5000/v2/hello-world/manifests/sha256:fea8895f450959fa676bcc1df0611ea93823a735a01205fd8622846041d0c7cf"), + // }, + // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-03-01T23:14:37.0707808Z"); return t}()), + // Request: &armcontainerregistry.Request{ + // Method: to.Ptr("GET"), + // Addr: to.Ptr("192.168.64.11:42961"), + // Host: to.Ptr("192.168.100.227:5000"), + // ID: to.Ptr("00000000-0000-0000-0000-000000000000"), + // Useragent: to.Ptr("curl/7.38.0"), + // }, + // }, + // Headers: map[string]*string{ + // "Authorization": to.Ptr("******"), + // "Content-Length": to.Ptr("719"), + // "Content-Type": to.Ptr("application/json"), + // }, + // RequestURI: to.Ptr("http://myservice.com"), + // Version: to.Ptr("1.1"), + // }, + // EventResponseMessage: &armcontainerregistry.EventResponseMessage{ + // Headers: map[string]*string{ + // "Content-Length": to.Ptr("0"), + // }, + // StatusCode: to.Ptr("200"), + // Version: to.Ptr("1.1"), + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/270d3cd664cca3ddc8511f92d3851a715e2c61db/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2023-01-01-preview/examples/WebhookGetCallbackConfig.json +func ExampleWebhooksClient_GetCallbackConfig() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armcontainerregistry.NewWebhooksClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.GetCallbackConfig(ctx, "myResourceGroup", "myRegistry", "myWebhook", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.CallbackConfig = armcontainerregistry.CallbackConfig{ + // CustomHeaders: map[string]*string{ + // "Authorization": to.Ptr("Basic 000000000000000000000000000000000000000000000000000"), + // }, + // ServiceURI: to.Ptr("http://myservice.com"), + // } +} diff --git a/sdk/resourcemanager/containerregistry/armcontainerregistry/ze_generated_example_agentpools_client_test.go b/sdk/resourcemanager/containerregistry/armcontainerregistry/ze_generated_example_agentpools_client_test.go deleted file mode 100644 index d2e1fb8e05d3..000000000000 --- a/sdk/resourcemanager/containerregistry/armcontainerregistry/ze_generated_example_agentpools_client_test.go +++ /dev/null @@ -1,185 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armcontainerregistry_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/AgentPoolsGet.json -func ExampleAgentPoolsClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewAgentPoolsClient("4385cf00-2d3a-425a-832f-f4285b1c9dce", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "myResourceGroup", - "myRegistry", - "myAgentPool", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/AgentPoolsCreate.json -func ExampleAgentPoolsClient_BeginCreate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewAgentPoolsClient("4385cf00-2d3a-425a-832f-f4285b1c9dce", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginCreate(ctx, - "myResourceGroup", - "myRegistry", - "myAgentPool", - armcontainerregistry.AgentPool{ - Location: to.Ptr("WESTUS"), - Tags: map[string]*string{ - "key": to.Ptr("value"), - }, - Properties: &armcontainerregistry.AgentPoolProperties{ - Count: to.Ptr[int32](1), - OS: to.Ptr(armcontainerregistry.OSLinux), - Tier: to.Ptr("S1"), - }, - }, - 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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/AgentPoolsDelete.json -func ExampleAgentPoolsClient_BeginDelete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewAgentPoolsClient("4385cf00-2d3a-425a-832f-f4285b1c9dce", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginDelete(ctx, - "myResourceGroup", - "myRegistry", - "myAgentPool", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/AgentPoolsUpdate.json -func ExampleAgentPoolsClient_BeginUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewAgentPoolsClient("4385cf00-2d3a-425a-832f-f4285b1c9dce", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginUpdate(ctx, - "myResourceGroup", - "myRegistry", - "myAgentPool", - armcontainerregistry.AgentPoolUpdateParameters{ - Properties: &armcontainerregistry.AgentPoolPropertiesUpdateParameters{ - Count: to.Ptr[int32](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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/AgentPoolsList.json -func ExampleAgentPoolsClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewAgentPoolsClient("4385cf00-2d3a-425a-832f-f4285b1c9dce", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListPager("myResourceGroup", - "myRegistry", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/AgentPoolsGetQueueStatus.json -func ExampleAgentPoolsClient_GetQueueStatus() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewAgentPoolsClient("4385cf00-2d3a-425a-832f-f4285b1c9dce", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.GetQueueStatus(ctx, - "myResourceGroup", - "myRegistry", - "myAgentPool", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} diff --git a/sdk/resourcemanager/containerregistry/armcontainerregistry/ze_generated_example_connectedregistries_client_test.go b/sdk/resourcemanager/containerregistry/armcontainerregistry/ze_generated_example_connectedregistries_client_test.go deleted file mode 100644 index f9b4d5952d71..000000000000 --- a/sdk/resourcemanager/containerregistry/armcontainerregistry/ze_generated_example_connectedregistries_client_test.go +++ /dev/null @@ -1,208 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armcontainerregistry_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2022-02-01-preview/examples/ConnectedRegistryList.json -func ExampleConnectedRegistriesClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewConnectedRegistriesClient("00000000-0000-0000-0000-000000000000", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListPager("myResourceGroup", - "myRegistry", - &armcontainerregistry.ConnectedRegistriesClientListOptions{Filter: nil}) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2022-02-01-preview/examples/ConnectedRegistryGet.json -func ExampleConnectedRegistriesClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewConnectedRegistriesClient("00000000-0000-0000-0000-000000000000", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "myResourceGroup", - "myRegistry", - "myConnectedRegistry", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2022-02-01-preview/examples/ConnectedRegistryCreate.json -func ExampleConnectedRegistriesClient_BeginCreate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewConnectedRegistriesClient("00000000-0000-0000-0000-000000000000", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginCreate(ctx, - "myResourceGroup", - "myRegistry", - "myConnectedRegistry", - armcontainerregistry.ConnectedRegistry{ - Properties: &armcontainerregistry.ConnectedRegistryProperties{ - ClientTokenIDs: []*string{ - to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tokens/client1Token")}, - Mode: to.Ptr(armcontainerregistry.ConnectedRegistryModeReadWrite), - NotificationsList: []*string{ - to.Ptr("hello-world:*:*"), - to.Ptr("sample/repo/*:1.0:*")}, - Parent: &armcontainerregistry.ParentProperties{ - SyncProperties: &armcontainerregistry.SyncProperties{ - MessageTTL: to.Ptr("P2D"), - Schedule: to.Ptr("0 9 * * *"), - SyncWindow: to.Ptr("PT3H"), - TokenID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tokens/syncToken"), - }, - }, - }, - }, - 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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2022-02-01-preview/examples/ConnectedRegistryDelete.json -func ExampleConnectedRegistriesClient_BeginDelete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewConnectedRegistriesClient("00000000-0000-0000-0000-000000000000", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginDelete(ctx, - "myResourceGroup", - "myRegistry", - "myConnectedRegistry", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2022-02-01-preview/examples/ConnectedRegistryUpdate.json -func ExampleConnectedRegistriesClient_BeginUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewConnectedRegistriesClient("00000000-0000-0000-0000-000000000000", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginUpdate(ctx, - "myResourceGroup", - "myRegistry", - "myScopeMap", - armcontainerregistry.ConnectedRegistryUpdateParameters{ - Properties: &armcontainerregistry.ConnectedRegistryUpdateProperties{ - ClientTokenIDs: []*string{ - to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tokens/client1Token"), - to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tokens/client2Token")}, - Logging: &armcontainerregistry.LoggingProperties{ - AuditLogStatus: to.Ptr(armcontainerregistry.AuditLogStatusEnabled), - LogLevel: to.Ptr(armcontainerregistry.LogLevelDebug), - }, - NotificationsList: []*string{ - to.Ptr("hello-world:*:*"), - to.Ptr("sample/repo/*:1.0:*")}, - SyncProperties: &armcontainerregistry.SyncUpdateProperties{ - MessageTTL: to.Ptr("P30D"), - Schedule: to.Ptr("0 0 */10 * *"), - SyncWindow: to.Ptr("P2D"), - }, - }, - }, - 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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2022-02-01-preview/examples/ConnectedRegistryDeactivate.json -func ExampleConnectedRegistriesClient_BeginDeactivate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewConnectedRegistriesClient("00000000-0000-0000-0000-000000000000", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginDeactivate(ctx, - "myResourceGroup", - "myRegistry", - "myConnectedRegistry", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} diff --git a/sdk/resourcemanager/containerregistry/armcontainerregistry/ze_generated_example_exportpipelines_client_test.go b/sdk/resourcemanager/containerregistry/armcontainerregistry/ze_generated_example_exportpipelines_client_test.go deleted file mode 100644 index 53359ab0450c..000000000000 --- a/sdk/resourcemanager/containerregistry/armcontainerregistry/ze_generated_example_exportpipelines_client_test.go +++ /dev/null @@ -1,134 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armcontainerregistry_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2022-02-01-preview/examples/ExportPipelineList.json -func ExampleExportPipelinesClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewExportPipelinesClient("00000000-0000-0000-0000-000000000000", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListPager("myResourceGroup", - "myRegistry", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2022-02-01-preview/examples/ExportPipelineGet.json -func ExampleExportPipelinesClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewExportPipelinesClient("00000000-0000-0000-0000-000000000000", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "myResourceGroup", - "myRegistry", - "myExportPipeline", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2022-02-01-preview/examples/ExportPipelineCreate.json -func ExampleExportPipelinesClient_BeginCreate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewExportPipelinesClient("00000000-0000-0000-0000-000000000000", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginCreate(ctx, - "myResourceGroup", - "myRegistry", - "myExportPipeline", - armcontainerregistry.ExportPipeline{ - Identity: &armcontainerregistry.IdentityProperties{ - Type: to.Ptr(armcontainerregistry.ResourceIdentityTypeSystemAssigned), - }, - Location: to.Ptr("westus"), - Properties: &armcontainerregistry.ExportPipelineProperties{ - Options: []*armcontainerregistry.PipelineOptions{ - to.Ptr(armcontainerregistry.PipelineOptionsOverwriteBlobs)}, - Target: &armcontainerregistry.ExportPipelineTargetProperties{ - Type: to.Ptr("AzureStorageBlobContainer"), - KeyVaultURI: to.Ptr("https://myvault.vault.azure.net/secrets/acrexportsas"), - URI: to.Ptr("https://accountname.blob.core.windows.net/containername"), - }, - }, - }, - 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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2022-02-01-preview/examples/ExportPipelineDelete.json -func ExampleExportPipelinesClient_BeginDelete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewExportPipelinesClient("00000000-0000-0000-0000-000000000000", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginDelete(ctx, - "myResourceGroup", - "myRegistry", - "myExportPipeline", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} diff --git a/sdk/resourcemanager/containerregistry/armcontainerregistry/ze_generated_example_importpipelines_client_test.go b/sdk/resourcemanager/containerregistry/armcontainerregistry/ze_generated_example_importpipelines_client_test.go deleted file mode 100644 index 56fcdae44077..000000000000 --- a/sdk/resourcemanager/containerregistry/armcontainerregistry/ze_generated_example_importpipelines_client_test.go +++ /dev/null @@ -1,139 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armcontainerregistry_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2022-02-01-preview/examples/ImportPipelineList.json -func ExampleImportPipelinesClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewImportPipelinesClient("00000000-0000-0000-0000-000000000000", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListPager("myResourceGroup", - "myRegistry", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2022-02-01-preview/examples/ImportPipelineGet.json -func ExampleImportPipelinesClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewImportPipelinesClient("00000000-0000-0000-0000-000000000000", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "myResourceGroup", - "myRegistry", - "myImportPipeline", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2022-02-01-preview/examples/ImportPipelineCreate.json -func ExampleImportPipelinesClient_BeginCreate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewImportPipelinesClient("00000000-0000-0000-0000-000000000000", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginCreate(ctx, - "myResourceGroup", - "myRegistry", - "myImportPipeline", - armcontainerregistry.ImportPipeline{ - Identity: &armcontainerregistry.IdentityProperties{ - Type: to.Ptr(armcontainerregistry.ResourceIdentityTypeUserAssigned), - UserAssignedIdentities: map[string]*armcontainerregistry.UserIdentityProperties{ - "/subscriptions/f9d7ebed-adbd-4cb4-b973-aaf82c136138/resourcegroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity2": {}, - }, - }, - Location: to.Ptr("westus"), - Properties: &armcontainerregistry.ImportPipelineProperties{ - Options: []*armcontainerregistry.PipelineOptions{ - to.Ptr(armcontainerregistry.PipelineOptionsOverwriteTags), - to.Ptr(armcontainerregistry.PipelineOptionsDeleteSourceBlobOnSuccess), - to.Ptr(armcontainerregistry.PipelineOptionsContinueOnErrors)}, - Source: &armcontainerregistry.ImportPipelineSourceProperties{ - Type: to.Ptr(armcontainerregistry.PipelineSourceTypeAzureStorageBlobContainer), - KeyVaultURI: to.Ptr("https://myvault.vault.azure.net/secrets/acrimportsas"), - URI: to.Ptr("https://accountname.blob.core.windows.net/containername"), - }, - }, - }, - 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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2022-02-01-preview/examples/ImportPipelineDelete.json -func ExampleImportPipelinesClient_BeginDelete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewImportPipelinesClient("00000000-0000-0000-0000-000000000000", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginDelete(ctx, - "myResourceGroup", - "myRegistry", - "myImportPipeline", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} diff --git a/sdk/resourcemanager/containerregistry/armcontainerregistry/ze_generated_example_operations_client_test.go b/sdk/resourcemanager/containerregistry/armcontainerregistry/ze_generated_example_operations_client_test.go deleted file mode 100644 index f57a50b1a7af..000000000000 --- a/sdk/resourcemanager/containerregistry/armcontainerregistry/ze_generated_example_operations_client_test.go +++ /dev/null @@ -1,41 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armcontainerregistry_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2022-02-01-preview/examples/OperationList.json -func ExampleOperationsClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewOperationsClient(cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListPager(nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} diff --git a/sdk/resourcemanager/containerregistry/armcontainerregistry/ze_generated_example_pipelineruns_client_test.go b/sdk/resourcemanager/containerregistry/armcontainerregistry/ze_generated_example_pipelineruns_client_test.go deleted file mode 100644 index f1304da2867a..000000000000 --- a/sdk/resourcemanager/containerregistry/armcontainerregistry/ze_generated_example_pipelineruns_client_test.go +++ /dev/null @@ -1,133 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armcontainerregistry_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2022-02-01-preview/examples/PipelineRunList.json -func ExamplePipelineRunsClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewPipelineRunsClient("00000000-0000-0000-0000-000000000000", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListPager("myResourceGroup", - "myRegistry", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2022-02-01-preview/examples/PipelineRunGet.json -func ExamplePipelineRunsClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewPipelineRunsClient("00000000-0000-0000-0000-000000000000", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "myResourceGroup", - "myRegistry", - "myPipelineRun", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2022-02-01-preview/examples/PipelineRunCreate_Export.json -func ExamplePipelineRunsClient_BeginCreate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewPipelineRunsClient("00000000-0000-0000-0000-000000000000", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginCreate(ctx, - "myResourceGroup", - "myRegistry", - "myPipelineRun", - armcontainerregistry.PipelineRun{ - Properties: &armcontainerregistry.PipelineRunProperties{ - Request: &armcontainerregistry.PipelineRunRequest{ - Artifacts: []*string{ - to.Ptr("sourceRepository/hello-world"), - to.Ptr("sourceRepository2@sha256:00000000000000000000000000000000000")}, - PipelineResourceID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/exportPipelines/myExportPipeline"), - Target: &armcontainerregistry.PipelineRunTargetProperties{ - Name: to.Ptr("myblob.tar.gz"), - Type: to.Ptr(armcontainerregistry.PipelineRunTargetTypeAzureStorageBlob), - }, - }, - }, - }, - 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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2022-02-01-preview/examples/PipelineRunDelete.json -func ExamplePipelineRunsClient_BeginDelete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewPipelineRunsClient("00000000-0000-0000-0000-000000000000", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginDelete(ctx, - "myResourceGroup", - "myRegistry", - "myPipelineRun", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} diff --git a/sdk/resourcemanager/containerregistry/armcontainerregistry/ze_generated_example_privateendpointconnections_client_test.go b/sdk/resourcemanager/containerregistry/armcontainerregistry/ze_generated_example_privateendpointconnections_client_test.go deleted file mode 100644 index cf3a242f4509..000000000000 --- a/sdk/resourcemanager/containerregistry/armcontainerregistry/ze_generated_example_privateendpointconnections_client_test.go +++ /dev/null @@ -1,127 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armcontainerregistry_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2022-02-01-preview/examples/PrivateEndpointConnectionList.json -func ExamplePrivateEndpointConnectionsClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewPrivateEndpointConnectionsClient("00000000-0000-0000-0000-000000000000", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListPager("myResourceGroup", - "myRegistry", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2022-02-01-preview/examples/PrivateEndpointConnectionGet.json -func ExamplePrivateEndpointConnectionsClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewPrivateEndpointConnectionsClient("00000000-0000-0000-0000-000000000000", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "myResourceGroup", - "myRegistry", - "myConnection", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2022-02-01-preview/examples/PrivateEndpointConnectionCreateOrUpdate.json -func ExamplePrivateEndpointConnectionsClient_BeginCreateOrUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewPrivateEndpointConnectionsClient("00000000-0000-0000-0000-000000000000", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginCreateOrUpdate(ctx, - "myResourceGroup", - "myRegistry", - "myConnection", - armcontainerregistry.PrivateEndpointConnection{ - Properties: &armcontainerregistry.PrivateEndpointConnectionProperties{ - PrivateLinkServiceConnectionState: &armcontainerregistry.PrivateLinkServiceConnectionState{ - Description: to.Ptr("Auto-Approved"), - Status: to.Ptr(armcontainerregistry.ConnectionStatusApproved), - }, - }, - }, - 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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2022-02-01-preview/examples/PrivateEndpointConnectionDelete.json -func ExamplePrivateEndpointConnectionsClient_BeginDelete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewPrivateEndpointConnectionsClient("00000000-0000-0000-0000-000000000000", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginDelete(ctx, - "myResourceGroup", - "myRegistry", - "myConnection", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} diff --git a/sdk/resourcemanager/containerregistry/armcontainerregistry/ze_generated_example_registries_client_test.go b/sdk/resourcemanager/containerregistry/armcontainerregistry/ze_generated_example_registries_client_test.go deleted file mode 100644 index b9ad7b68673b..000000000000 --- a/sdk/resourcemanager/containerregistry/armcontainerregistry/ze_generated_example_registries_client_test.go +++ /dev/null @@ -1,451 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armcontainerregistry_test - -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/containerregistry/armcontainerregistry" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2022-02-01-preview/examples/ImportImageByManifestDigest.json -func ExampleRegistriesClient_BeginImportImage() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewRegistriesClient("00000000-0000-0000-0000-000000000000", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginImportImage(ctx, - "myResourceGroup", - "myRegistry", - armcontainerregistry.ImportImageParameters{ - Mode: to.Ptr(armcontainerregistry.ImportModeForce), - Source: &armcontainerregistry.ImportSource{ - ResourceID: to.Ptr("/subscriptions/10000000-0000-0000-0000-000000000000/resourceGroups/sourceResourceGroup/providers/Microsoft.ContainerRegistry/registries/sourceRegistry"), - SourceImage: to.Ptr("sourceRepository@sha256:0000000000000000000000000000000000000000000000000000000000000000"), - }, - TargetTags: []*string{ - to.Ptr("targetRepository:targetTag")}, - UntaggedTargetRepositories: []*string{ - to.Ptr("targetRepository1")}, - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2022-02-01-preview/examples/RegistryCheckNameAvailable.json -func ExampleRegistriesClient_CheckNameAvailability() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewRegistriesClient("00000000-0000-0000-0000-000000000000", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.CheckNameAvailability(ctx, - armcontainerregistry.RegistryNameCheckRequest{ - Name: to.Ptr("myRegistry"), - Type: to.Ptr("Microsoft.ContainerRegistry/registries"), - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2022-02-01-preview/examples/RegistryList.json -func ExampleRegistriesClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewRegistriesClient("00000000-0000-0000-0000-000000000000", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListPager(nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2022-02-01-preview/examples/RegistryListByResourceGroup.json -func ExampleRegistriesClient_NewListByResourceGroupPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewRegistriesClient("00000000-0000-0000-0000-000000000000", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListByResourceGroupPager("myResourceGroup", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2022-02-01-preview/examples/RegistryGet.json -func ExampleRegistriesClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewRegistriesClient("00000000-0000-0000-0000-000000000000", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "myResourceGroup", - "myRegistry", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2022-02-01-preview/examples/RegistryCreate.json -func ExampleRegistriesClient_BeginCreate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewRegistriesClient("00000000-0000-0000-0000-000000000000", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginCreate(ctx, - "myResourceGroup", - "myRegistry", - armcontainerregistry.Registry{ - Location: to.Ptr("westus"), - Tags: map[string]*string{ - "key": to.Ptr("value"), - }, - Properties: &armcontainerregistry.RegistryProperties{ - AdminUserEnabled: to.Ptr(true), - }, - SKU: &armcontainerregistry.SKU{ - Name: to.Ptr(armcontainerregistry.SKUNameStandard), - }, - }, - 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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2022-02-01-preview/examples/RegistryDelete.json -func ExampleRegistriesClient_BeginDelete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewRegistriesClient("00000000-0000-0000-0000-000000000000", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginDelete(ctx, - "myResourceGroup", - "myRegistry", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2022-02-01-preview/examples/RegistryUpdate.json -func ExampleRegistriesClient_BeginUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewRegistriesClient("00000000-0000-0000-0000-000000000000", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginUpdate(ctx, - "myResourceGroup", - "myRegistry", - armcontainerregistry.RegistryUpdateParameters{ - Properties: &armcontainerregistry.RegistryPropertiesUpdateParameters{ - AdminUserEnabled: to.Ptr(true), - }, - SKU: &armcontainerregistry.SKU{ - Name: to.Ptr(armcontainerregistry.SKUNameStandard), - }, - Tags: map[string]*string{ - "key": to.Ptr("value"), - }, - }, - 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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2022-02-01-preview/examples/RegistryListUsages.json -func ExampleRegistriesClient_ListUsages() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewRegistriesClient("00000000-0000-0000-0000-000000000000", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.ListUsages(ctx, - "myResourceGroup", - "myRegistry", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2022-02-01-preview/examples/RegistryListPrivateLinkResources.json -func ExampleRegistriesClient_NewListPrivateLinkResourcesPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewRegistriesClient("00000000-0000-0000-0000-000000000000", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListPrivateLinkResourcesPager("myResourceGroup", - "myRegistry", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2022-02-01-preview/examples/RegistryGetPrivateLinkResource.json -func ExampleRegistriesClient_GetPrivateLinkResource() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewRegistriesClient("00000000-0000-0000-0000-000000000000", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.GetPrivateLinkResource(ctx, - "myResourceGroup", - "myRegistry", - "registry", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2022-02-01-preview/examples/RegistryListCredentials.json -func ExampleRegistriesClient_ListCredentials() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewRegistriesClient("00000000-0000-0000-0000-000000000000", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.ListCredentials(ctx, - "myResourceGroup", - "myRegistry", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2022-02-01-preview/examples/RegistryRegenerateCredential.json -func ExampleRegistriesClient_RegenerateCredential() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewRegistriesClient("00000000-0000-0000-0000-000000000000", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.RegenerateCredential(ctx, - "myResourceGroup", - "myRegistry", - armcontainerregistry.RegenerateCredentialParameters{ - Name: to.Ptr(armcontainerregistry.PasswordNamePassword), - }, - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2022-02-01-preview/examples/RegistryGenerateCredentials.json -func ExampleRegistriesClient_BeginGenerateCredentials() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewRegistriesClient("00000000-0000-0000-0000-000000000000", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginGenerateCredentials(ctx, - "myResourceGroup", - "myRegistry", - armcontainerregistry.GenerateCredentialsParameters{ - Expiry: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-12-31T15:59:59.0707808Z"); return t }()), - TokenID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/tokens/myToken"), - }, - 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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/RegistriesScheduleRun.json -func ExampleRegistriesClient_BeginScheduleRun() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewRegistriesClient("4385cf00-2d3a-425a-832f-f4285b1c9dce", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginScheduleRun(ctx, - "myResourceGroup", - "myRegistry", - &armcontainerregistry.DockerBuildRequest{ - Type: to.Ptr("DockerBuildRequest"), - IsArchiveEnabled: to.Ptr(true), - AgentConfiguration: &armcontainerregistry.AgentProperties{ - CPU: to.Ptr[int32](2), - }, - Arguments: []*armcontainerregistry.Argument{ - { - Name: to.Ptr("mytestargument"), - IsSecret: to.Ptr(false), - Value: to.Ptr("mytestvalue"), - }, - { - Name: to.Ptr("mysecrettestargument"), - IsSecret: to.Ptr(true), - Value: to.Ptr("mysecrettestvalue"), - }}, - DockerFilePath: to.Ptr("DockerFile"), - ImageNames: []*string{ - to.Ptr("azurerest:testtag")}, - IsPushEnabled: to.Ptr(true), - NoCache: to.Ptr(true), - Platform: &armcontainerregistry.PlatformProperties{ - Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), - OS: to.Ptr(armcontainerregistry.OSLinux), - }, - SourceLocation: to.Ptr("https://myaccount.blob.core.windows.net/sascontainer/source.zip?sv=2015-04-05&st=2015-04-29T22%3A18%3A26Z&se=2015-04-30T02%3A23%3A26Z&sr=b&sp=rw&sip=168.1.5.60-168.1.5.70&spr=https&sig=Z%2FRHIX5Xcg0Mq2rqI3OlWTjEg2tYkboXr1P9ZUXDtkk%3D"), - }, - 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) - } - // TODO: use response item - _ = res -} diff --git a/sdk/resourcemanager/containerregistry/armcontainerregistry/ze_generated_example_replications_client_test.go b/sdk/resourcemanager/containerregistry/armcontainerregistry/ze_generated_example_replications_client_test.go deleted file mode 100644 index 7de03f0d0249..000000000000 --- a/sdk/resourcemanager/containerregistry/armcontainerregistry/ze_generated_example_replications_client_test.go +++ /dev/null @@ -1,157 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armcontainerregistry_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2022-02-01-preview/examples/ReplicationList.json -func ExampleReplicationsClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewReplicationsClient("00000000-0000-0000-0000-000000000000", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListPager("myResourceGroup", - "myRegistry", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2022-02-01-preview/examples/ReplicationGet.json -func ExampleReplicationsClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewReplicationsClient("00000000-0000-0000-0000-000000000000", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "myResourceGroup", - "myRegistry", - "myReplication", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2022-02-01-preview/examples/ReplicationCreate.json -func ExampleReplicationsClient_BeginCreate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewReplicationsClient("00000000-0000-0000-0000-000000000000", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginCreate(ctx, - "myResourceGroup", - "myRegistry", - "myReplication", - armcontainerregistry.Replication{ - Location: to.Ptr("eastus"), - Tags: map[string]*string{ - "key": to.Ptr("value"), - }, - }, - 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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2022-02-01-preview/examples/ReplicationDelete.json -func ExampleReplicationsClient_BeginDelete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewReplicationsClient("00000000-0000-0000-0000-000000000000", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginDelete(ctx, - "myResourceGroup", - "myRegistry", - "myReplication", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2022-02-01-preview/examples/ReplicationUpdate.json -func ExampleReplicationsClient_BeginUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewReplicationsClient("00000000-0000-0000-0000-000000000000", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginUpdate(ctx, - "myResourceGroup", - "myRegistry", - "myReplication", - armcontainerregistry.ReplicationUpdateParameters{ - Tags: map[string]*string{ - "key": to.Ptr("value"), - }, - }, - 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) - } - // TODO: use response item - _ = res -} diff --git a/sdk/resourcemanager/containerregistry/armcontainerregistry/ze_generated_example_runs_client_test.go b/sdk/resourcemanager/containerregistry/armcontainerregistry/ze_generated_example_runs_client_test.go deleted file mode 100644 index e3e87e33f1f1..000000000000 --- a/sdk/resourcemanager/containerregistry/armcontainerregistry/ze_generated_example_runs_client_test.go +++ /dev/null @@ -1,124 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armcontainerregistry_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/RunsList.json -func ExampleRunsClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewRunsClient("4385cf00-2d3a-425a-832f-f4285b1c9dce", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListPager("myResourceGroup", - "myRegistry", - &armcontainerregistry.RunsClientListOptions{Filter: to.Ptr(""), - Top: to.Ptr[int32](10), - }) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/RunsGet.json -func ExampleRunsClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewRunsClient("4385cf00-2d3a-425a-832f-f4285b1c9dce", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "myResourceGroup", - "myRegistry", - "0accec26-d6de-4757-8e74-d080f38eaaab", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/RunsUpdate.json -func ExampleRunsClient_BeginUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewRunsClient("4385cf00-2d3a-425a-832f-f4285b1c9dce", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginUpdate(ctx, - "myResourceGroup", - "myRegistry", - "0accec26-d6de-4757-8e74-d080f38eaaab", - armcontainerregistry.RunUpdateParameters{ - IsArchiveEnabled: to.Ptr(true), - }, - 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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/RunsCancel.json -func ExampleRunsClient_BeginCancel() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewRunsClient("4385cf00-2d3a-425a-832f-f4285b1c9dce", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginCancel(ctx, - "myResourceGroup", - "myRegistry", - "0accec26-d6de-4757-8e74-d080f38eaaab", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} diff --git a/sdk/resourcemanager/containerregistry/armcontainerregistry/ze_generated_example_scopemaps_client_test.go b/sdk/resourcemanager/containerregistry/armcontainerregistry/ze_generated_example_scopemaps_client_test.go deleted file mode 100644 index fbb425f4d379..000000000000 --- a/sdk/resourcemanager/containerregistry/armcontainerregistry/ze_generated_example_scopemaps_client_test.go +++ /dev/null @@ -1,162 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armcontainerregistry_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2022-02-01-preview/examples/ScopeMapList.json -func ExampleScopeMapsClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewScopeMapsClient("00000000-0000-0000-0000-000000000000", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListPager("myResourceGroup", - "myRegistry", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2022-02-01-preview/examples/ScopeMapGet.json -func ExampleScopeMapsClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewScopeMapsClient("00000000-0000-0000-0000-000000000000", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "myResourceGroup", - "myRegistry", - "myScopeMap", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2022-02-01-preview/examples/ScopeMapCreate.json -func ExampleScopeMapsClient_BeginCreate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewScopeMapsClient("00000000-0000-0000-0000-000000000000", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginCreate(ctx, - "myResourceGroup", - "myRegistry", - "myScopeMap", - armcontainerregistry.ScopeMap{ - Properties: &armcontainerregistry.ScopeMapProperties{ - Description: to.Ptr("Developer Scopes"), - Actions: []*string{ - to.Ptr("repositories/myrepository/contentWrite"), - to.Ptr("repositories/myrepository/delete")}, - }, - }, - 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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2022-02-01-preview/examples/ScopeMapDelete.json -func ExampleScopeMapsClient_BeginDelete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewScopeMapsClient("00000000-0000-0000-0000-000000000000", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginDelete(ctx, - "myResourceGroup", - "myRegistry", - "myScopeMap", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2022-02-01-preview/examples/ScopeMapUpdate.json -func ExampleScopeMapsClient_BeginUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewScopeMapsClient("00000000-0000-0000-0000-000000000000", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginUpdate(ctx, - "myResourceGroup", - "myRegistry", - "myScopeMap", - armcontainerregistry.ScopeMapUpdateParameters{ - Properties: &armcontainerregistry.ScopeMapPropertiesUpdateParameters{ - Description: to.Ptr("Developer Scopes"), - Actions: []*string{ - to.Ptr("repositories/myrepository/contentWrite"), - to.Ptr("repositories/myrepository/contentRead")}, - }, - }, - 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) - } - // TODO: use response item - _ = res -} diff --git a/sdk/resourcemanager/containerregistry/armcontainerregistry/ze_generated_example_taskruns_client_test.go b/sdk/resourcemanager/containerregistry/armcontainerregistry/ze_generated_example_taskruns_client_test.go deleted file mode 100644 index af74d8cdee2e..000000000000 --- a/sdk/resourcemanager/containerregistry/armcontainerregistry/ze_generated_example_taskruns_client_test.go +++ /dev/null @@ -1,202 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armcontainerregistry_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/TaskRunsGet.json -func ExampleTaskRunsClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewTaskRunsClient("4385cf00-2d3a-425a-832f-f4285b1c9dce", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "myResourceGroup", - "myRegistry", - "myRun", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/TaskRunsCreate.json -func ExampleTaskRunsClient_BeginCreate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewTaskRunsClient("4385cf00-2d3a-425a-832f-f4285b1c9dce", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginCreate(ctx, - "myResourceGroup", - "myRegistry", - "myRun", - armcontainerregistry.TaskRun{ - Properties: &armcontainerregistry.TaskRunProperties{ - ForceUpdateTag: to.Ptr("test"), - RunRequest: &armcontainerregistry.EncodedTaskRunRequest{ - Type: to.Ptr("EncodedTaskRunRequest"), - Credentials: &armcontainerregistry.Credentials{}, - EncodedTaskContent: to.Ptr("c3RlcHM6IAogIC0gY21kOiB7eyAuVmFsdWVzLmNvbW1hbmQgfX0K"), - EncodedValuesContent: to.Ptr("Y29tbWFuZDogYmFzaCBlY2hvIHt7LlJ1bi5SZWdpc3RyeX19Cg=="), - Platform: &armcontainerregistry.PlatformProperties{ - Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), - OS: to.Ptr(armcontainerregistry.OSLinux), - }, - Values: []*armcontainerregistry.SetValue{}, - }, - }, - }, - 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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/TaskRunsDelete.json -func ExampleTaskRunsClient_BeginDelete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewTaskRunsClient("4385cf00-2d3a-425a-832f-f4285b1c9dce", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginDelete(ctx, - "myResourceGroup", - "myRegistry", - "myRun", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/TaskRunsUpdate.json -func ExampleTaskRunsClient_BeginUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewTaskRunsClient("4385cf00-2d3a-425a-832f-f4285b1c9dce", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginUpdate(ctx, - "myResourceGroup", - "myRegistry", - "myRun", - armcontainerregistry.TaskRunUpdateParameters{ - Properties: &armcontainerregistry.TaskRunPropertiesUpdateParameters{ - ForceUpdateTag: to.Ptr("test"), - RunRequest: &armcontainerregistry.EncodedTaskRunRequest{ - Type: to.Ptr("EncodedTaskRunRequest"), - IsArchiveEnabled: to.Ptr(true), - Credentials: &armcontainerregistry.Credentials{}, - EncodedTaskContent: to.Ptr("c3RlcHM6IAogIC0gY21kOiB7eyAuVmFsdWVzLmNvbW1hbmQgfX0K"), - EncodedValuesContent: to.Ptr("Y29tbWFuZDogYmFzaCBlY2hvIHt7LlJ1bi5SZWdpc3RyeX19Cg=="), - Platform: &armcontainerregistry.PlatformProperties{ - Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), - OS: to.Ptr(armcontainerregistry.OSLinux), - }, - Values: []*armcontainerregistry.SetValue{}, - }, - }, - }, - 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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/TaskRunsGetDetails.json -func ExampleTaskRunsClient_GetDetails() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewTaskRunsClient("4385cf00-2d3a-425a-832f-f4285b1c9dce", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.GetDetails(ctx, - "myResourceGroup", - "myRegistry", - "myRun", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/TaskRunsList.json -func ExampleTaskRunsClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewTaskRunsClient("4385cf00-2d3a-425a-832f-f4285b1c9dce", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListPager("myResourceGroup", - "myRegistry", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} diff --git a/sdk/resourcemanager/containerregistry/armcontainerregistry/ze_generated_example_tasks_client_test.go b/sdk/resourcemanager/containerregistry/armcontainerregistry/ze_generated_example_tasks_client_test.go deleted file mode 100644 index fd9e60d54399..000000000000 --- a/sdk/resourcemanager/containerregistry/armcontainerregistry/ze_generated_example_tasks_client_test.go +++ /dev/null @@ -1,285 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armcontainerregistry_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/TasksList.json -func ExampleTasksClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewTasksClient("4385cf00-2d3a-425a-832f-f4285b1c9dce", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListPager("myResourceGroup", - "myRegistry", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/TasksGet.json -func ExampleTasksClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewTasksClient("4385cf00-2d3a-425a-832f-f4285b1c9dce", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "myResourceGroup", - "myRegistry", - "myTask", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/TasksCreate.json -func ExampleTasksClient_BeginCreate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewTasksClient("4385cf00-2d3a-425a-832f-f4285b1c9dce", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginCreate(ctx, - "myResourceGroup", - "myRegistry", - "mytTask", - armcontainerregistry.Task{ - Location: to.Ptr("eastus"), - Tags: map[string]*string{ - "testkey": to.Ptr("value"), - }, - Identity: &armcontainerregistry.IdentityProperties{ - Type: to.Ptr(armcontainerregistry.ResourceIdentityTypeSystemAssigned), - }, - Properties: &armcontainerregistry.TaskProperties{ - AgentConfiguration: &armcontainerregistry.AgentProperties{ - CPU: to.Ptr[int32](2), - }, - IsSystemTask: to.Ptr(false), - LogTemplate: to.Ptr("acr/tasks:{{.Run.OS}}"), - Platform: &armcontainerregistry.PlatformProperties{ - Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), - OS: to.Ptr(armcontainerregistry.OSLinux), - }, - Status: to.Ptr(armcontainerregistry.TaskStatusEnabled), - Step: &armcontainerregistry.DockerBuildStep{ - Type: to.Ptr(armcontainerregistry.StepTypeDocker), - ContextPath: to.Ptr("src"), - Arguments: []*armcontainerregistry.Argument{ - { - Name: to.Ptr("mytestargument"), - IsSecret: to.Ptr(false), - Value: to.Ptr("mytestvalue"), - }, - { - Name: to.Ptr("mysecrettestargument"), - IsSecret: to.Ptr(true), - Value: to.Ptr("mysecrettestvalue"), - }}, - DockerFilePath: to.Ptr("src/DockerFile"), - ImageNames: []*string{ - to.Ptr("azurerest:testtag")}, - IsPushEnabled: to.Ptr(true), - NoCache: to.Ptr(false), - }, - Trigger: &armcontainerregistry.TriggerProperties{ - BaseImageTrigger: &armcontainerregistry.BaseImageTrigger{ - Name: to.Ptr("myBaseImageTrigger"), - BaseImageTriggerType: to.Ptr(armcontainerregistry.BaseImageTriggerTypeRuntime), - UpdateTriggerEndpoint: to.Ptr("https://user:pass@mycicd.webhook.com?token=foo"), - UpdateTriggerPayloadType: to.Ptr(armcontainerregistry.UpdateTriggerPayloadTypeToken), - }, - SourceTriggers: []*armcontainerregistry.SourceTrigger{ - { - Name: to.Ptr("mySourceTrigger"), - SourceRepository: &armcontainerregistry.SourceProperties{ - Branch: to.Ptr("master"), - RepositoryURL: to.Ptr("https://github.com/Azure/azure-rest-api-specs"), - SourceControlAuthProperties: &armcontainerregistry.AuthInfo{ - Token: to.Ptr("xxxxx"), - TokenType: to.Ptr(armcontainerregistry.TokenTypePAT), - }, - SourceControlType: to.Ptr(armcontainerregistry.SourceControlTypeGithub), - }, - SourceTriggerEvents: []*armcontainerregistry.SourceTriggerEvent{ - to.Ptr(armcontainerregistry.SourceTriggerEventCommit)}, - }}, - TimerTriggers: []*armcontainerregistry.TimerTrigger{ - { - Name: to.Ptr("myTimerTrigger"), - Schedule: to.Ptr("30 9 * * 1-5"), - }}, - }, - }, - }, - 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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/TasksDelete.json -func ExampleTasksClient_BeginDelete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewTasksClient("4385cf00-2d3a-425a-832f-f4285b1c9dce", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginDelete(ctx, - "myResourceGroup", - "myRegistry", - "myTask", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/TasksUpdate.json -func ExampleTasksClient_BeginUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewTasksClient("4385cf00-2d3a-425a-832f-f4285b1c9dce", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginUpdate(ctx, - "myResourceGroup", - "myRegistry", - "myTask", - armcontainerregistry.TaskUpdateParameters{ - Properties: &armcontainerregistry.TaskPropertiesUpdateParameters{ - AgentConfiguration: &armcontainerregistry.AgentProperties{ - CPU: to.Ptr[int32](3), - }, - Credentials: &armcontainerregistry.Credentials{ - CustomRegistries: map[string]*armcontainerregistry.CustomRegistryCredentials{ - "myregistry.azurecr.io": { - Identity: to.Ptr("[system]"), - Password: &armcontainerregistry.SecretObject{ - Type: to.Ptr(armcontainerregistry.SecretObjectTypeVaultsecret), - Value: to.Ptr("https://myacbvault.vault.azure.net/secrets/password"), - }, - UserName: &armcontainerregistry.SecretObject{ - Type: to.Ptr(armcontainerregistry.SecretObjectTypeOpaque), - Value: to.Ptr("username"), - }, - }, - }, - }, - LogTemplate: to.Ptr("acr/tasks:{{.Run.OS}}"), - Status: to.Ptr(armcontainerregistry.TaskStatusEnabled), - Step: &armcontainerregistry.DockerBuildStepUpdateParameters{ - Type: to.Ptr(armcontainerregistry.StepTypeDocker), - DockerFilePath: to.Ptr("src/DockerFile"), - ImageNames: []*string{ - to.Ptr("azurerest:testtag1")}, - }, - Trigger: &armcontainerregistry.TriggerUpdateParameters{ - SourceTriggers: []*armcontainerregistry.SourceTriggerUpdateParameters{ - { - Name: to.Ptr("mySourceTrigger"), - SourceRepository: &armcontainerregistry.SourceUpdateParameters{ - SourceControlAuthProperties: &armcontainerregistry.AuthInfoUpdateParameters{ - Token: to.Ptr("xxxxx"), - TokenType: to.Ptr(armcontainerregistry.TokenTypePAT), - }, - }, - SourceTriggerEvents: []*armcontainerregistry.SourceTriggerEvent{ - to.Ptr(armcontainerregistry.SourceTriggerEventCommit)}, - }}, - }, - }, - Tags: map[string]*string{ - "testkey": to.Ptr("value"), - }, - }, - 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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2019-06-01-preview/examples/TasksGetDetails.json -func ExampleTasksClient_GetDetails() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewTasksClient("4385cf00-2d3a-425a-832f-f4285b1c9dce", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.GetDetails(ctx, - "myResourceGroup", - "myRegistry", - "myTask", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} diff --git a/sdk/resourcemanager/containerregistry/armcontainerregistry/ze_generated_example_tokens_client_test.go b/sdk/resourcemanager/containerregistry/armcontainerregistry/ze_generated_example_tokens_client_test.go deleted file mode 100644 index d59f744d6475..000000000000 --- a/sdk/resourcemanager/containerregistry/armcontainerregistry/ze_generated_example_tokens_client_test.go +++ /dev/null @@ -1,171 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armcontainerregistry_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2022-02-01-preview/examples/TokenList.json -func ExampleTokensClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewTokensClient("00000000-0000-0000-0000-000000000000", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListPager("myResourceGroup", - "myRegistry", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2022-02-01-preview/examples/TokenGet.json -func ExampleTokensClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewTokensClient("00000000-0000-0000-0000-000000000000", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "myResourceGroup", - "myRegistry", - "myToken", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2022-02-01-preview/examples/TokenCreate.json -func ExampleTokensClient_BeginCreate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewTokensClient("00000000-0000-0000-0000-000000000000", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginCreate(ctx, - "myResourceGroup", - "myRegistry", - "myToken", - armcontainerregistry.Token{ - Properties: &armcontainerregistry.TokenProperties{ - Credentials: &armcontainerregistry.TokenCredentialsProperties{ - Certificates: []*armcontainerregistry.TokenCertificate{ - { - Name: to.Ptr(armcontainerregistry.TokenCertificateNameCertificate1), - EncodedPemCertificate: to.Ptr("LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUc3akNDQk5hZ0F3SUJBZ0lURmdBQlR3UVpyZGdmdmhxdzBnQUFBQUZQQkRBTkJna3Foa2lHOXcwQkFRc0YKQURDQml6RUxNQWtHQTFVRUJoTUNWVk14RXpBUkJnTlZCQWdUQ2xkaGMyaHBibWQwYjI0eEVEQU9CZ05WQkFjVApCMUpsWkcxdmJtUXhIakFjQmdOVkJBb1RGVTFwWTNKdmMyOW1kQ0JEYjNKd2IzSmhkR2x2YmpFVk1CTUdBMVVFCkN4TU1UV2xqY205emIyWjBJRWxVTVI0d0hBWURWUVFERXhWTmFXTnliM052Wm5RZ1NWUWdWRXhUSUVOQklEUXcKSGhjTk1UZ3dOREV5TWpJek1qUTRXaGNOTWpBd05ERXlNakl6TWpRNFdqQTVNVGN3TlFZRFZRUURFeTV6WlhKMgphV05sWTJ4cFpXNTBZMlZ5ZEMxd1lYSjBibVZ5TG0xaGJtRm5aVzFsYm5RdVlYcDFjbVV1WTI5dE1JSUJJakFOCkJna3Foa2lHOXcwQkFRRUZBQU9DQVE4QU1JSUJDZ0tDQVFFQTBSYjdJcHpxMmR4emhhbVpyS1ZDakMzeTQyYlYKUnNIY2pCUTFuSDBHZ1puUDhXeDZDSE1mWThybkVJQzRLeVRRYkJXVzhnNXlmc3NSQ0ZXbFpxYjR6SkRXS0pmTgpGSmNMUm9LNnhwTktZYVZVTkVlT25IdUxHYTM0ZlA0VjBFRjZybzdvbkRLME5zanhjY1dZVzRNVXVzc0xrQS94CkUrM2RwU1REdk1KcjJoWUpsVnFDcVR6blQvbmZaVUZzQUVEQnp5MUpOOHZiZDlIR2czc2Myd0x4dk95cFJOc0gKT1V3V2pmN2xzWWZleEVlcWkzY29EeHc2alpLVWEyVkdsUnBpTkowMjhBQitYSi9TU1FVNVBsd0JBbU9TT3ovRApGY0NKdGpPZlBqU1NKckFIQVV3SHU3RzlSV05JTFBwYU9zQ1J5eitETE5zNGpvNlEvUUg4d1lManJRSURBUUFCCm80SUNtakNDQXBZd0N3WURWUjBQQkFRREFnU3dNQjBHQTFVZEpRUVdNQlFHQ0NzR0FRVUZCd01DQmdnckJnRUYKQlFjREFUQWRCZ05WSFE0RUZnUVVlbEdkVVJrZzJoSFFOWEQ4WUc4L3drdjJVT0F3SHdZRFZSMGpCQmd3Rm9BVQplbnVNd2Mvbm9Nb2MxR3Y2KytFend3OGFvcDB3Z2F3R0ExVWRId1NCcERDQm9UQ0JucUNCbTZDQm1JWkxhSFIwCmNEb3ZMMjF6WTNKc0xtMXBZM0p2YzI5bWRDNWpiMjB2Y0d0cEwyMXpZMjl5Y0M5amNtd3ZUV2xqY205emIyWjAKSlRJd1NWUWxNakJVVEZNbE1qQkRRU1V5TURRdVkzSnNoa2xvZEhSd09pOHZZM0pzTG0xcFkzSnZjMjltZEM1agpiMjB2Y0d0cEwyMXpZMjl5Y0M5amNtd3ZUV2xqY205emIyWjBKVEl3U1ZRbE1qQlVURk1sTWpCRFFTVXlNRFF1ClkzSnNNSUdGQmdnckJnRUZCUWNCQVFSNU1IY3dVUVlJS3dZQkJRVUhNQUtHUldoMGRIQTZMeTkzZDNjdWJXbGoKY205emIyWjBMbU52YlM5d2Eya3ZiWE5qYjNKd0wwMXBZM0p2YzI5bWRDVXlNRWxVSlRJd1ZFeFRKVEl3UTBFbApNakEwTG1OeWREQWlCZ2dyQmdFRkJRY3dBWVlXYUhSMGNEb3ZMMjlqYzNBdWJYTnZZM053TG1OdmJUQStCZ2tyCkJnRUVBWUkzRlFjRU1UQXZCaWNyQmdFRUFZSTNGUWlIMm9aMWcrN1pBWUxKaFJ1QnRaNWhoZlRyWUlGZGhOTGYKUW9Mbmszb0NBV1FDQVIwd1RRWURWUjBnQkVZd1JEQkNCZ2tyQmdFRUFZSTNLZ0V3TlRBekJnZ3JCZ0VGQlFjQwpBUlluYUhSMGNEb3ZMM2QzZHk1dGFXTnliM052Wm5RdVkyOXRMM0JyYVM5dGMyTnZjbkF2WTNCek1DY0dDU3NHCkFRUUJnamNWQ2dRYU1CZ3dDZ1lJS3dZQkJRVUhBd0l3Q2dZSUt3WUJCUVVIQXdFd09RWURWUjBSQkRJd01JSXUKYzJWeWRtbGpaV05zYVdWdWRHTmxjblF0Y0dGeWRHNWxjaTV0WVc1aFoyVnRaVzUwTG1GNmRYSmxMbU52YlRBTgpCZ2txaGtpRzl3MEJBUXNGQUFPQ0FnRUFIVXIzbk1vdUI5WWdDUlRWYndUTllIS2RkWGJkSW1GUXNDYys4T1g1CjE5c0N6dFFSR05iSXEwVW1Ba01MbFVvWTIxckh4ZXdxU2hWczFhL2RwaFh5Tk1pcUdaU2QzU1BtYzZscitqUFQKNXVEREs0MUlWeXN0K2VUNlpyazFvcCtMVmdkeS9EU2lyNzVqcWZFY016bS82bU8rNnFNeWRLTWtVYmM5K3JHVwphUkpUcjRWUUdIRmEwNEIwZVZpNUd4MG9pL2RpZDNSaXg2aXJMMjFJSGEwYjN6c1hzZHpHU0R2K3hqL2Q2S0l4Ckdrd2FhYmZvU1NoQnFqaFNlQ0VyZXFlb1RpYjljdGw0MGRVdUp3THl4bjhHS2N6K3AvMEJUOEIxU3lYK01OQ2wKY0pkMjVtMjhLajY2TGUxOEVyeFlJYXZJVGVGa3Y2eGZjdkEvcHladDdPaU41QTlGQk1IUmpQK1kyZ2tvdjMrcQpISFRUZG4xNnlRajduNit3YlFHNGVleXc0YisyQkRLcUxNVFU2ZmlSQ3ZPM2FPZVBLSFVNN3R4b1FidWl6Z3NzCkNiMzl3QnJOTEZsMkJLQ1RkSCtkSU9oZVJiSkZvbmlwOGRPOUVFZWdSSG9lQW54ZUlYTFBrdXMzTzEvZjRhNkIKWHQ3RG5BUm8xSzJmeEp3VXRaU2MvR3dFSjU5NzlnRXlEa3pDZEVsLzdpWE9QZXVjTXhlM2xVM2pweUtsNERUaApjSkJqQytqNGpLWTFrK1U4b040aGdqYnJISUx6Vnd2eU15OU5KS290U3BMSjQxeHdPOHlGangxalFTT3Bxc0N1ClFhUFUvTjhSZ0hxWjBGTkFzS3dNUmZ6WmdXanRCNzRzYUVEdk5jVmNuNFhCQnFNSG0ydHo2Uzk3d3kxZGt0cTgKSE5BPQotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg=="), - }}, - }, - ScopeMapID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/scopeMaps/myScopeMap"), - Status: to.Ptr(armcontainerregistry.TokenStatusDisabled), - }, - }, - 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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2022-02-01-preview/examples/TokenDelete.json -func ExampleTokensClient_BeginDelete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewTokensClient("00000000-0000-0000-0000-000000000000", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginDelete(ctx, - "myResourceGroup", - "myRegistry", - "myToken", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2022-02-01-preview/examples/TokenUpdate.json -func ExampleTokensClient_BeginUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewTokensClient("00000000-0000-0000-0000-000000000000", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginUpdate(ctx, - "myResourceGroup", - "myRegistry", - "myToken", - armcontainerregistry.TokenUpdateParameters{ - Properties: &armcontainerregistry.TokenUpdateProperties{ - Credentials: &armcontainerregistry.TokenCredentialsProperties{ - Certificates: []*armcontainerregistry.TokenCertificate{ - { - Name: to.Ptr(armcontainerregistry.TokenCertificateNameCertificate1), - EncodedPemCertificate: to.Ptr("LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUc3akNDQk5hZ0F3SUJBZ0lURmdBQlR3UVpyZGdmdmhxdzBnQUFBQUZQQkRBTkJna3Foa2lHOXcwQkFRc0YKQURDQml6RUxNQWtHQTFVRUJoTUNWVk14RXpBUkJnTlZCQWdUQ2xkaGMyaHBibWQwYjI0eEVEQU9CZ05WQkFjVApCMUpsWkcxdmJtUXhIakFjQmdOVkJBb1RGVTFwWTNKdmMyOW1kQ0JEYjNKd2IzSmhkR2x2YmpFVk1CTUdBMVVFCkN4TU1UV2xqY205emIyWjBJRWxVTVI0d0hBWURWUVFERXhWTmFXTnliM052Wm5RZ1NWUWdWRXhUSUVOQklEUXcKSGhjTk1UZ3dOREV5TWpJek1qUTRXaGNOTWpBd05ERXlNakl6TWpRNFdqQTVNVGN3TlFZRFZRUURFeTV6WlhKMgphV05sWTJ4cFpXNTBZMlZ5ZEMxd1lYSjBibVZ5TG0xaGJtRm5aVzFsYm5RdVlYcDFjbVV1WTI5dE1JSUJJakFOCkJna3Foa2lHOXcwQkFRRUZBQU9DQVE4QU1JSUJDZ0tDQVFFQTBSYjdJcHpxMmR4emhhbVpyS1ZDakMzeTQyYlYKUnNIY2pCUTFuSDBHZ1puUDhXeDZDSE1mWThybkVJQzRLeVRRYkJXVzhnNXlmc3NSQ0ZXbFpxYjR6SkRXS0pmTgpGSmNMUm9LNnhwTktZYVZVTkVlT25IdUxHYTM0ZlA0VjBFRjZybzdvbkRLME5zanhjY1dZVzRNVXVzc0xrQS94CkUrM2RwU1REdk1KcjJoWUpsVnFDcVR6blQvbmZaVUZzQUVEQnp5MUpOOHZiZDlIR2czc2Myd0x4dk95cFJOc0gKT1V3V2pmN2xzWWZleEVlcWkzY29EeHc2alpLVWEyVkdsUnBpTkowMjhBQitYSi9TU1FVNVBsd0JBbU9TT3ovRApGY0NKdGpPZlBqU1NKckFIQVV3SHU3RzlSV05JTFBwYU9zQ1J5eitETE5zNGpvNlEvUUg4d1lManJRSURBUUFCCm80SUNtakNDQXBZd0N3WURWUjBQQkFRREFnU3dNQjBHQTFVZEpRUVdNQlFHQ0NzR0FRVUZCd01DQmdnckJnRUYKQlFjREFUQWRCZ05WSFE0RUZnUVVlbEdkVVJrZzJoSFFOWEQ4WUc4L3drdjJVT0F3SHdZRFZSMGpCQmd3Rm9BVQplbnVNd2Mvbm9Nb2MxR3Y2KytFend3OGFvcDB3Z2F3R0ExVWRId1NCcERDQm9UQ0JucUNCbTZDQm1JWkxhSFIwCmNEb3ZMMjF6WTNKc0xtMXBZM0p2YzI5bWRDNWpiMjB2Y0d0cEwyMXpZMjl5Y0M5amNtd3ZUV2xqY205emIyWjAKSlRJd1NWUWxNakJVVEZNbE1qQkRRU1V5TURRdVkzSnNoa2xvZEhSd09pOHZZM0pzTG0xcFkzSnZjMjltZEM1agpiMjB2Y0d0cEwyMXpZMjl5Y0M5amNtd3ZUV2xqY205emIyWjBKVEl3U1ZRbE1qQlVURk1sTWpCRFFTVXlNRFF1ClkzSnNNSUdGQmdnckJnRUZCUWNCQVFSNU1IY3dVUVlJS3dZQkJRVUhNQUtHUldoMGRIQTZMeTkzZDNjdWJXbGoKY205emIyWjBMbU52YlM5d2Eya3ZiWE5qYjNKd0wwMXBZM0p2YzI5bWRDVXlNRWxVSlRJd1ZFeFRKVEl3UTBFbApNakEwTG1OeWREQWlCZ2dyQmdFRkJRY3dBWVlXYUhSMGNEb3ZMMjlqYzNBdWJYTnZZM053TG1OdmJUQStCZ2tyCkJnRUVBWUkzRlFjRU1UQXZCaWNyQmdFRUFZSTNGUWlIMm9aMWcrN1pBWUxKaFJ1QnRaNWhoZlRyWUlGZGhOTGYKUW9Mbmszb0NBV1FDQVIwd1RRWURWUjBnQkVZd1JEQkNCZ2tyQmdFRUFZSTNLZ0V3TlRBekJnZ3JCZ0VGQlFjQwpBUlluYUhSMGNEb3ZMM2QzZHk1dGFXTnliM052Wm5RdVkyOXRMM0JyYVM5dGMyTnZjbkF2WTNCek1DY0dDU3NHCkFRUUJnamNWQ2dRYU1CZ3dDZ1lJS3dZQkJRVUhBd0l3Q2dZSUt3WUJCUVVIQXdFd09RWURWUjBSQkRJd01JSXUKYzJWeWRtbGpaV05zYVdWdWRHTmxjblF0Y0dGeWRHNWxjaTV0WVc1aFoyVnRaVzUwTG1GNmRYSmxMbU52YlRBTgpCZ2txaGtpRzl3MEJBUXNGQUFPQ0FnRUFIVXIzbk1vdUI5WWdDUlRWYndUTllIS2RkWGJkSW1GUXNDYys4T1g1CjE5c0N6dFFSR05iSXEwVW1Ba01MbFVvWTIxckh4ZXdxU2hWczFhL2RwaFh5Tk1pcUdaU2QzU1BtYzZscitqUFQKNXVEREs0MUlWeXN0K2VUNlpyazFvcCtMVmdkeS9EU2lyNzVqcWZFY016bS82bU8rNnFNeWRLTWtVYmM5K3JHVwphUkpUcjRWUUdIRmEwNEIwZVZpNUd4MG9pL2RpZDNSaXg2aXJMMjFJSGEwYjN6c1hzZHpHU0R2K3hqL2Q2S0l4Ckdrd2FhYmZvU1NoQnFqaFNlQ0VyZXFlb1RpYjljdGw0MGRVdUp3THl4bjhHS2N6K3AvMEJUOEIxU3lYK01OQ2wKY0pkMjVtMjhLajY2TGUxOEVyeFlJYXZJVGVGa3Y2eGZjdkEvcHladDdPaU41QTlGQk1IUmpQK1kyZ2tvdjMrcQpISFRUZG4xNnlRajduNit3YlFHNGVleXc0YisyQkRLcUxNVFU2ZmlSQ3ZPM2FPZVBLSFVNN3R4b1FidWl6Z3NzCkNiMzl3QnJOTEZsMkJLQ1RkSCtkSU9oZVJiSkZvbmlwOGRPOUVFZWdSSG9lQW54ZUlYTFBrdXMzTzEvZjRhNkIKWHQ3RG5BUm8xSzJmeEp3VXRaU2MvR3dFSjU5NzlnRXlEa3pDZEVsLzdpWE9QZXVjTXhlM2xVM2pweUtsNERUaApjSkJqQytqNGpLWTFrK1U4b040aGdqYnJISUx6Vnd2eU15OU5KS290U3BMSjQxeHdPOHlGangxalFTT3Bxc0N1ClFhUFUvTjhSZ0hxWjBGTkFzS3dNUmZ6WmdXanRCNzRzYUVEdk5jVmNuNFhCQnFNSG0ydHo2Uzk3d3kxZGt0cTgKSE5BPQotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg=="), - }}, - }, - ScopeMapID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ContainerRegistry/registries/myRegistry/scopeMaps/myNewScopeMap"), - }, - }, - 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) - } - // TODO: use response item - _ = res -} diff --git a/sdk/resourcemanager/containerregistry/armcontainerregistry/ze_generated_example_webhooks_client_test.go b/sdk/resourcemanager/containerregistry/armcontainerregistry/ze_generated_example_webhooks_client_test.go deleted file mode 100644 index e891d32aee84..000000000000 --- a/sdk/resourcemanager/containerregistry/armcontainerregistry/ze_generated_example_webhooks_client_test.go +++ /dev/null @@ -1,250 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armcontainerregistry_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2022-02-01-preview/examples/WebhookList.json -func ExampleWebhooksClient_NewListPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewWebhooksClient("00000000-0000-0000-0000-000000000000", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListPager("myResourceGroup", - "myRegistry", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2022-02-01-preview/examples/WebhookGet.json -func ExampleWebhooksClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewWebhooksClient("00000000-0000-0000-0000-000000000000", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, - "myResourceGroup", - "myRegistry", - "myWebhook", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2022-02-01-preview/examples/WebhookCreate.json -func ExampleWebhooksClient_BeginCreate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewWebhooksClient("00000000-0000-0000-0000-000000000000", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginCreate(ctx, - "myResourceGroup", - "myRegistry", - "myWebhook", - armcontainerregistry.WebhookCreateParameters{ - Location: to.Ptr("westus"), - Properties: &armcontainerregistry.WebhookPropertiesCreateParameters{ - Actions: []*armcontainerregistry.WebhookAction{ - to.Ptr(armcontainerregistry.WebhookActionPush)}, - CustomHeaders: map[string]*string{ - "Authorization": to.Ptr("Basic 000000000000000000000000000000000000000000000000000"), - }, - Scope: to.Ptr("myRepository"), - ServiceURI: to.Ptr("http://myservice.com"), - Status: to.Ptr(armcontainerregistry.WebhookStatusEnabled), - }, - Tags: map[string]*string{ - "key": to.Ptr("value"), - }, - }, - 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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2022-02-01-preview/examples/WebhookDelete.json -func ExampleWebhooksClient_BeginDelete() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewWebhooksClient("00000000-0000-0000-0000-000000000000", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginDelete(ctx, - "myResourceGroup", - "myRegistry", - "myWebhook", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2022-02-01-preview/examples/WebhookUpdate.json -func ExampleWebhooksClient_BeginUpdate() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewWebhooksClient("00000000-0000-0000-0000-000000000000", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginUpdate(ctx, - "myResourceGroup", - "myRegistry", - "myWebhook", - armcontainerregistry.WebhookUpdateParameters{ - Properties: &armcontainerregistry.WebhookPropertiesUpdateParameters{ - Actions: []*armcontainerregistry.WebhookAction{ - to.Ptr(armcontainerregistry.WebhookActionPush)}, - CustomHeaders: map[string]*string{ - "Authorization": to.Ptr("Basic 000000000000000000000000000000000000000000000000000"), - }, - Scope: to.Ptr("myRepository"), - ServiceURI: to.Ptr("http://myservice.com"), - Status: to.Ptr(armcontainerregistry.WebhookStatusEnabled), - }, - Tags: map[string]*string{ - "key": to.Ptr("value"), - }, - }, - 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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2022-02-01-preview/examples/WebhookPing.json -func ExampleWebhooksClient_Ping() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewWebhooksClient("00000000-0000-0000-0000-000000000000", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Ping(ctx, - "myResourceGroup", - "myRegistry", - "myWebhook", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2022-02-01-preview/examples/WebhookListEvents.json -func ExampleWebhooksClient_NewListEventsPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewWebhooksClient("00000000-0000-0000-0000-000000000000", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListEventsPager("myResourceGroup", - "myRegistry", - "myWebhook", - nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/preview/2022-02-01-preview/examples/WebhookGetCallbackConfig.json -func ExampleWebhooksClient_GetCallbackConfig() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcontainerregistry.NewWebhooksClient("00000000-0000-0000-0000-000000000000", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.GetCallbackConfig(ctx, - "myResourceGroup", - "myRegistry", - "myWebhook", - nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} diff --git a/sdk/resourcemanager/containerregistry/armcontainerregistry/zz_generated_models_serde.go b/sdk/resourcemanager/containerregistry/armcontainerregistry/zz_generated_models_serde.go deleted file mode 100644 index f4c23e43d69f..000000000000 --- a/sdk/resourcemanager/containerregistry/armcontainerregistry/zz_generated_models_serde.go +++ /dev/null @@ -1,2136 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armcontainerregistry - -import ( - "encoding/json" - "fmt" - "github.com/Azure/azure-sdk-for-go/sdk/azcore" - "reflect" -) - -// MarshalJSON implements the json.Marshaller interface for type AgentPool. -func (a AgentPool) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", a.ID) - populate(objectMap, "location", a.Location) - populate(objectMap, "name", a.Name) - populate(objectMap, "properties", a.Properties) - populate(objectMap, "systemData", a.SystemData) - populate(objectMap, "tags", a.Tags) - populate(objectMap, "type", a.Type) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type AgentPoolUpdateParameters. -func (a AgentPoolUpdateParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "properties", a.Properties) - populate(objectMap, "tags", a.Tags) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type ConnectedRegistryProperties. -func (c ConnectedRegistryProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "activation", c.Activation) - populate(objectMap, "clientTokenIds", c.ClientTokenIDs) - populate(objectMap, "connectionState", c.ConnectionState) - populateTimeRFC3339(objectMap, "lastActivityTime", c.LastActivityTime) - populate(objectMap, "logging", c.Logging) - populate(objectMap, "loginServer", c.LoginServer) - populate(objectMap, "mode", c.Mode) - populate(objectMap, "notificationsList", c.NotificationsList) - populate(objectMap, "parent", c.Parent) - populate(objectMap, "provisioningState", c.ProvisioningState) - populate(objectMap, "statusDetails", c.StatusDetails) - populate(objectMap, "version", c.Version) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type ConnectedRegistryProperties. -func (c *ConnectedRegistryProperties) 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 "activation": - err = unpopulate(val, "Activation", &c.Activation) - delete(rawMsg, key) - case "clientTokenIds": - err = unpopulate(val, "ClientTokenIDs", &c.ClientTokenIDs) - delete(rawMsg, key) - case "connectionState": - err = unpopulate(val, "ConnectionState", &c.ConnectionState) - delete(rawMsg, key) - case "lastActivityTime": - err = unpopulateTimeRFC3339(val, "LastActivityTime", &c.LastActivityTime) - delete(rawMsg, key) - case "logging": - err = unpopulate(val, "Logging", &c.Logging) - delete(rawMsg, key) - case "loginServer": - err = unpopulate(val, "LoginServer", &c.LoginServer) - delete(rawMsg, key) - case "mode": - err = unpopulate(val, "Mode", &c.Mode) - delete(rawMsg, key) - case "notificationsList": - err = unpopulate(val, "NotificationsList", &c.NotificationsList) - delete(rawMsg, key) - case "parent": - err = unpopulate(val, "Parent", &c.Parent) - delete(rawMsg, key) - case "provisioningState": - err = unpopulate(val, "ProvisioningState", &c.ProvisioningState) - delete(rawMsg, key) - case "statusDetails": - err = unpopulate(val, "StatusDetails", &c.StatusDetails) - delete(rawMsg, key) - case "version": - err = unpopulate(val, "Version", &c.Version) - 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 ConnectedRegistryUpdateParameters. -func (c ConnectedRegistryUpdateParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "properties", c.Properties) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type ConnectedRegistryUpdateProperties. -func (c ConnectedRegistryUpdateProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "clientTokenIds", c.ClientTokenIDs) - populate(objectMap, "logging", c.Logging) - populate(objectMap, "notificationsList", c.NotificationsList) - populate(objectMap, "syncProperties", c.SyncProperties) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type Credentials. -func (c Credentials) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "customRegistries", c.CustomRegistries) - populate(objectMap, "sourceRegistry", c.SourceRegistry) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type DockerBuildRequest. -func (d DockerBuildRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "agentConfiguration", d.AgentConfiguration) - populate(objectMap, "agentPoolName", d.AgentPoolName) - populate(objectMap, "arguments", d.Arguments) - populate(objectMap, "credentials", d.Credentials) - populate(objectMap, "dockerFilePath", d.DockerFilePath) - populate(objectMap, "imageNames", d.ImageNames) - populate(objectMap, "isArchiveEnabled", d.IsArchiveEnabled) - populate(objectMap, "isPushEnabled", d.IsPushEnabled) - populate(objectMap, "logTemplate", d.LogTemplate) - populate(objectMap, "noCache", d.NoCache) - populate(objectMap, "platform", d.Platform) - populate(objectMap, "sourceLocation", d.SourceLocation) - populate(objectMap, "target", d.Target) - populate(objectMap, "timeout", d.Timeout) - objectMap["type"] = "DockerBuildRequest" - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type DockerBuildRequest. -func (d *DockerBuildRequest) 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", d, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "agentConfiguration": - err = unpopulate(val, "AgentConfiguration", &d.AgentConfiguration) - delete(rawMsg, key) - case "agentPoolName": - err = unpopulate(val, "AgentPoolName", &d.AgentPoolName) - delete(rawMsg, key) - case "arguments": - err = unpopulate(val, "Arguments", &d.Arguments) - delete(rawMsg, key) - case "credentials": - err = unpopulate(val, "Credentials", &d.Credentials) - delete(rawMsg, key) - case "dockerFilePath": - err = unpopulate(val, "DockerFilePath", &d.DockerFilePath) - delete(rawMsg, key) - case "imageNames": - err = unpopulate(val, "ImageNames", &d.ImageNames) - delete(rawMsg, key) - case "isArchiveEnabled": - err = unpopulate(val, "IsArchiveEnabled", &d.IsArchiveEnabled) - delete(rawMsg, key) - case "isPushEnabled": - err = unpopulate(val, "IsPushEnabled", &d.IsPushEnabled) - delete(rawMsg, key) - case "logTemplate": - err = unpopulate(val, "LogTemplate", &d.LogTemplate) - delete(rawMsg, key) - case "noCache": - err = unpopulate(val, "NoCache", &d.NoCache) - delete(rawMsg, key) - case "platform": - err = unpopulate(val, "Platform", &d.Platform) - delete(rawMsg, key) - case "sourceLocation": - err = unpopulate(val, "SourceLocation", &d.SourceLocation) - delete(rawMsg, key) - case "target": - err = unpopulate(val, "Target", &d.Target) - delete(rawMsg, key) - case "timeout": - err = unpopulate(val, "Timeout", &d.Timeout) - delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &d.Type) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", d, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type DockerBuildStep. -func (d DockerBuildStep) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "arguments", d.Arguments) - populate(objectMap, "baseImageDependencies", d.BaseImageDependencies) - populate(objectMap, "contextAccessToken", d.ContextAccessToken) - populate(objectMap, "contextPath", d.ContextPath) - populate(objectMap, "dockerFilePath", d.DockerFilePath) - populate(objectMap, "imageNames", d.ImageNames) - populate(objectMap, "isPushEnabled", d.IsPushEnabled) - populate(objectMap, "noCache", d.NoCache) - populate(objectMap, "target", d.Target) - objectMap["type"] = StepTypeDocker - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type DockerBuildStep. -func (d *DockerBuildStep) 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", d, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "arguments": - err = unpopulate(val, "Arguments", &d.Arguments) - delete(rawMsg, key) - case "baseImageDependencies": - err = unpopulate(val, "BaseImageDependencies", &d.BaseImageDependencies) - delete(rawMsg, key) - case "contextAccessToken": - err = unpopulate(val, "ContextAccessToken", &d.ContextAccessToken) - delete(rawMsg, key) - case "contextPath": - err = unpopulate(val, "ContextPath", &d.ContextPath) - delete(rawMsg, key) - case "dockerFilePath": - err = unpopulate(val, "DockerFilePath", &d.DockerFilePath) - delete(rawMsg, key) - case "imageNames": - err = unpopulate(val, "ImageNames", &d.ImageNames) - delete(rawMsg, key) - case "isPushEnabled": - err = unpopulate(val, "IsPushEnabled", &d.IsPushEnabled) - delete(rawMsg, key) - case "noCache": - err = unpopulate(val, "NoCache", &d.NoCache) - delete(rawMsg, key) - case "target": - err = unpopulate(val, "Target", &d.Target) - delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &d.Type) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", d, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type DockerBuildStepUpdateParameters. -func (d DockerBuildStepUpdateParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "arguments", d.Arguments) - populate(objectMap, "contextAccessToken", d.ContextAccessToken) - populate(objectMap, "contextPath", d.ContextPath) - populate(objectMap, "dockerFilePath", d.DockerFilePath) - populate(objectMap, "imageNames", d.ImageNames) - populate(objectMap, "isPushEnabled", d.IsPushEnabled) - populate(objectMap, "noCache", d.NoCache) - populate(objectMap, "target", d.Target) - objectMap["type"] = StepTypeDocker - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type DockerBuildStepUpdateParameters. -func (d *DockerBuildStepUpdateParameters) 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", d, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "arguments": - err = unpopulate(val, "Arguments", &d.Arguments) - delete(rawMsg, key) - case "contextAccessToken": - err = unpopulate(val, "ContextAccessToken", &d.ContextAccessToken) - delete(rawMsg, key) - case "contextPath": - err = unpopulate(val, "ContextPath", &d.ContextPath) - delete(rawMsg, key) - case "dockerFilePath": - err = unpopulate(val, "DockerFilePath", &d.DockerFilePath) - delete(rawMsg, key) - case "imageNames": - err = unpopulate(val, "ImageNames", &d.ImageNames) - delete(rawMsg, key) - case "isPushEnabled": - err = unpopulate(val, "IsPushEnabled", &d.IsPushEnabled) - delete(rawMsg, key) - case "noCache": - err = unpopulate(val, "NoCache", &d.NoCache) - delete(rawMsg, key) - case "target": - err = unpopulate(val, "Target", &d.Target) - delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &d.Type) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", d, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type EncodedTaskRunRequest. -func (e EncodedTaskRunRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "agentConfiguration", e.AgentConfiguration) - populate(objectMap, "agentPoolName", e.AgentPoolName) - populate(objectMap, "credentials", e.Credentials) - populate(objectMap, "encodedTaskContent", e.EncodedTaskContent) - populate(objectMap, "encodedValuesContent", e.EncodedValuesContent) - populate(objectMap, "isArchiveEnabled", e.IsArchiveEnabled) - populate(objectMap, "logTemplate", e.LogTemplate) - populate(objectMap, "platform", e.Platform) - populate(objectMap, "sourceLocation", e.SourceLocation) - populate(objectMap, "timeout", e.Timeout) - objectMap["type"] = "EncodedTaskRunRequest" - populate(objectMap, "values", e.Values) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type EncodedTaskRunRequest. -func (e *EncodedTaskRunRequest) 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 "agentConfiguration": - err = unpopulate(val, "AgentConfiguration", &e.AgentConfiguration) - delete(rawMsg, key) - case "agentPoolName": - err = unpopulate(val, "AgentPoolName", &e.AgentPoolName) - delete(rawMsg, key) - case "credentials": - err = unpopulate(val, "Credentials", &e.Credentials) - delete(rawMsg, key) - case "encodedTaskContent": - err = unpopulate(val, "EncodedTaskContent", &e.EncodedTaskContent) - delete(rawMsg, key) - case "encodedValuesContent": - err = unpopulate(val, "EncodedValuesContent", &e.EncodedValuesContent) - delete(rawMsg, key) - case "isArchiveEnabled": - err = unpopulate(val, "IsArchiveEnabled", &e.IsArchiveEnabled) - delete(rawMsg, key) - case "logTemplate": - err = unpopulate(val, "LogTemplate", &e.LogTemplate) - delete(rawMsg, key) - case "platform": - err = unpopulate(val, "Platform", &e.Platform) - delete(rawMsg, key) - case "sourceLocation": - err = unpopulate(val, "SourceLocation", &e.SourceLocation) - delete(rawMsg, key) - case "timeout": - err = unpopulate(val, "Timeout", &e.Timeout) - delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &e.Type) - delete(rawMsg, key) - case "values": - err = unpopulate(val, "Values", &e.Values) - 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 EncodedTaskStep. -func (e EncodedTaskStep) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "baseImageDependencies", e.BaseImageDependencies) - populate(objectMap, "contextAccessToken", e.ContextAccessToken) - populate(objectMap, "contextPath", e.ContextPath) - populate(objectMap, "encodedTaskContent", e.EncodedTaskContent) - populate(objectMap, "encodedValuesContent", e.EncodedValuesContent) - objectMap["type"] = StepTypeEncodedTask - populate(objectMap, "values", e.Values) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type EncodedTaskStep. -func (e *EncodedTaskStep) 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 "baseImageDependencies": - err = unpopulate(val, "BaseImageDependencies", &e.BaseImageDependencies) - delete(rawMsg, key) - case "contextAccessToken": - err = unpopulate(val, "ContextAccessToken", &e.ContextAccessToken) - delete(rawMsg, key) - case "contextPath": - err = unpopulate(val, "ContextPath", &e.ContextPath) - delete(rawMsg, key) - case "encodedTaskContent": - err = unpopulate(val, "EncodedTaskContent", &e.EncodedTaskContent) - delete(rawMsg, key) - case "encodedValuesContent": - err = unpopulate(val, "EncodedValuesContent", &e.EncodedValuesContent) - delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &e.Type) - delete(rawMsg, key) - case "values": - err = unpopulate(val, "Values", &e.Values) - 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 EncodedTaskStepUpdateParameters. -func (e EncodedTaskStepUpdateParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "contextAccessToken", e.ContextAccessToken) - populate(objectMap, "contextPath", e.ContextPath) - populate(objectMap, "encodedTaskContent", e.EncodedTaskContent) - populate(objectMap, "encodedValuesContent", e.EncodedValuesContent) - objectMap["type"] = StepTypeEncodedTask - populate(objectMap, "values", e.Values) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type EncodedTaskStepUpdateParameters. -func (e *EncodedTaskStepUpdateParameters) 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 "contextAccessToken": - err = unpopulate(val, "ContextAccessToken", &e.ContextAccessToken) - delete(rawMsg, key) - case "contextPath": - err = unpopulate(val, "ContextPath", &e.ContextPath) - delete(rawMsg, key) - case "encodedTaskContent": - err = unpopulate(val, "EncodedTaskContent", &e.EncodedTaskContent) - delete(rawMsg, key) - case "encodedValuesContent": - err = unpopulate(val, "EncodedValuesContent", &e.EncodedValuesContent) - delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &e.Type) - delete(rawMsg, key) - case "values": - err = unpopulate(val, "Values", &e.Values) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", e, err) - } - } - return nil -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type EventContent. -func (e *EventContent) 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 "action": - err = unpopulate(val, "Action", &e.Action) - delete(rawMsg, key) - case "actor": - err = unpopulate(val, "Actor", &e.Actor) - delete(rawMsg, key) - case "id": - err = unpopulate(val, "ID", &e.ID) - delete(rawMsg, key) - case "request": - err = unpopulate(val, "Request", &e.Request) - delete(rawMsg, key) - case "source": - err = unpopulate(val, "Source", &e.Source) - delete(rawMsg, key) - case "target": - err = unpopulate(val, "Target", &e.Target) - delete(rawMsg, key) - case "timestamp": - err = unpopulateTimeRFC3339(val, "Timestamp", &e.Timestamp) - 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 ExportPipelineProperties. -func (e ExportPipelineProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "options", e.Options) - populate(objectMap, "provisioningState", e.ProvisioningState) - populate(objectMap, "target", e.Target) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type FileTaskRunRequest. -func (f FileTaskRunRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "agentConfiguration", f.AgentConfiguration) - populate(objectMap, "agentPoolName", f.AgentPoolName) - populate(objectMap, "credentials", f.Credentials) - populate(objectMap, "isArchiveEnabled", f.IsArchiveEnabled) - populate(objectMap, "logTemplate", f.LogTemplate) - populate(objectMap, "platform", f.Platform) - populate(objectMap, "sourceLocation", f.SourceLocation) - populate(objectMap, "taskFilePath", f.TaskFilePath) - populate(objectMap, "timeout", f.Timeout) - objectMap["type"] = "FileTaskRunRequest" - populate(objectMap, "values", f.Values) - populate(objectMap, "valuesFilePath", f.ValuesFilePath) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type FileTaskRunRequest. -func (f *FileTaskRunRequest) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", f, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "agentConfiguration": - err = unpopulate(val, "AgentConfiguration", &f.AgentConfiguration) - delete(rawMsg, key) - case "agentPoolName": - err = unpopulate(val, "AgentPoolName", &f.AgentPoolName) - delete(rawMsg, key) - case "credentials": - err = unpopulate(val, "Credentials", &f.Credentials) - delete(rawMsg, key) - case "isArchiveEnabled": - err = unpopulate(val, "IsArchiveEnabled", &f.IsArchiveEnabled) - delete(rawMsg, key) - case "logTemplate": - err = unpopulate(val, "LogTemplate", &f.LogTemplate) - delete(rawMsg, key) - case "platform": - err = unpopulate(val, "Platform", &f.Platform) - delete(rawMsg, key) - case "sourceLocation": - err = unpopulate(val, "SourceLocation", &f.SourceLocation) - delete(rawMsg, key) - case "taskFilePath": - err = unpopulate(val, "TaskFilePath", &f.TaskFilePath) - delete(rawMsg, key) - case "timeout": - err = unpopulate(val, "Timeout", &f.Timeout) - delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &f.Type) - delete(rawMsg, key) - case "values": - err = unpopulate(val, "Values", &f.Values) - delete(rawMsg, key) - case "valuesFilePath": - err = unpopulate(val, "ValuesFilePath", &f.ValuesFilePath) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", f, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type FileTaskStep. -func (f FileTaskStep) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "baseImageDependencies", f.BaseImageDependencies) - populate(objectMap, "contextAccessToken", f.ContextAccessToken) - populate(objectMap, "contextPath", f.ContextPath) - populate(objectMap, "taskFilePath", f.TaskFilePath) - objectMap["type"] = StepTypeFileTask - populate(objectMap, "values", f.Values) - populate(objectMap, "valuesFilePath", f.ValuesFilePath) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type FileTaskStep. -func (f *FileTaskStep) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", f, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "baseImageDependencies": - err = unpopulate(val, "BaseImageDependencies", &f.BaseImageDependencies) - delete(rawMsg, key) - case "contextAccessToken": - err = unpopulate(val, "ContextAccessToken", &f.ContextAccessToken) - delete(rawMsg, key) - case "contextPath": - err = unpopulate(val, "ContextPath", &f.ContextPath) - delete(rawMsg, key) - case "taskFilePath": - err = unpopulate(val, "TaskFilePath", &f.TaskFilePath) - delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &f.Type) - delete(rawMsg, key) - case "values": - err = unpopulate(val, "Values", &f.Values) - delete(rawMsg, key) - case "valuesFilePath": - err = unpopulate(val, "ValuesFilePath", &f.ValuesFilePath) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", f, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type FileTaskStepUpdateParameters. -func (f FileTaskStepUpdateParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "contextAccessToken", f.ContextAccessToken) - populate(objectMap, "contextPath", f.ContextPath) - populate(objectMap, "taskFilePath", f.TaskFilePath) - objectMap["type"] = StepTypeFileTask - populate(objectMap, "values", f.Values) - populate(objectMap, "valuesFilePath", f.ValuesFilePath) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type FileTaskStepUpdateParameters. -func (f *FileTaskStepUpdateParameters) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", f, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "contextAccessToken": - err = unpopulate(val, "ContextAccessToken", &f.ContextAccessToken) - delete(rawMsg, key) - case "contextPath": - err = unpopulate(val, "ContextPath", &f.ContextPath) - delete(rawMsg, key) - case "taskFilePath": - err = unpopulate(val, "TaskFilePath", &f.TaskFilePath) - delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &f.Type) - delete(rawMsg, key) - case "values": - err = unpopulate(val, "Values", &f.Values) - delete(rawMsg, key) - case "valuesFilePath": - err = unpopulate(val, "ValuesFilePath", &f.ValuesFilePath) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", f, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type GenerateCredentialsParameters. -func (g GenerateCredentialsParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populateTimeRFC3339(objectMap, "expiry", g.Expiry) - populate(objectMap, "name", g.Name) - populate(objectMap, "tokenId", g.TokenID) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type GenerateCredentialsParameters. -func (g *GenerateCredentialsParameters) 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", g, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "expiry": - err = unpopulateTimeRFC3339(val, "Expiry", &g.Expiry) - delete(rawMsg, key) - case "name": - err = unpopulate(val, "Name", &g.Name) - delete(rawMsg, key) - case "tokenId": - err = unpopulate(val, "TokenID", &g.TokenID) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", g, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type IdentityProperties. -func (i IdentityProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "principalId", i.PrincipalID) - populate(objectMap, "tenantId", i.TenantID) - populate(objectMap, "type", i.Type) - populate(objectMap, "userAssignedIdentities", i.UserAssignedIdentities) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type ImageUpdateTrigger. -func (i ImageUpdateTrigger) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", i.ID) - populate(objectMap, "images", i.Images) - populateTimeRFC3339(objectMap, "timestamp", i.Timestamp) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type ImageUpdateTrigger. -func (i *ImageUpdateTrigger) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", i, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "id": - err = unpopulate(val, "ID", &i.ID) - delete(rawMsg, key) - case "images": - err = unpopulate(val, "Images", &i.Images) - delete(rawMsg, key) - case "timestamp": - err = unpopulateTimeRFC3339(val, "Timestamp", &i.Timestamp) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", i, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type ImportImageParameters. -func (i ImportImageParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "mode", i.Mode) - populate(objectMap, "source", i.Source) - populate(objectMap, "targetTags", i.TargetTags) - populate(objectMap, "untaggedTargetRepositories", i.UntaggedTargetRepositories) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type ImportPipelineProperties. -func (i ImportPipelineProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "options", i.Options) - populate(objectMap, "provisioningState", i.ProvisioningState) - populate(objectMap, "source", i.Source) - populate(objectMap, "trigger", i.Trigger) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type KeyVaultProperties. -func (k KeyVaultProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "identity", k.Identity) - populate(objectMap, "keyIdentifier", k.KeyIdentifier) - populate(objectMap, "keyRotationEnabled", k.KeyRotationEnabled) - populateTimeRFC3339(objectMap, "lastKeyRotationTimestamp", k.LastKeyRotationTimestamp) - populate(objectMap, "versionedKeyIdentifier", k.VersionedKeyIdentifier) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type KeyVaultProperties. -func (k *KeyVaultProperties) 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", k, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "identity": - err = unpopulate(val, "Identity", &k.Identity) - delete(rawMsg, key) - case "keyIdentifier": - err = unpopulate(val, "KeyIdentifier", &k.KeyIdentifier) - delete(rawMsg, key) - case "keyRotationEnabled": - err = unpopulate(val, "KeyRotationEnabled", &k.KeyRotationEnabled) - delete(rawMsg, key) - case "lastKeyRotationTimestamp": - err = unpopulateTimeRFC3339(val, "LastKeyRotationTimestamp", &k.LastKeyRotationTimestamp) - delete(rawMsg, key) - case "versionedKeyIdentifier": - err = unpopulate(val, "VersionedKeyIdentifier", &k.VersionedKeyIdentifier) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", k, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type NetworkRuleSet. -func (n NetworkRuleSet) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "defaultAction", n.DefaultAction) - populate(objectMap, "ipRules", n.IPRules) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type OverrideTaskStepProperties. -func (o OverrideTaskStepProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "arguments", o.Arguments) - populate(objectMap, "contextPath", o.ContextPath) - populate(objectMap, "file", o.File) - populate(objectMap, "target", o.Target) - populate(objectMap, "updateTriggerToken", o.UpdateTriggerToken) - populate(objectMap, "values", o.Values) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type PipelineRunRequest. -func (p PipelineRunRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "artifacts", p.Artifacts) - populate(objectMap, "catalogDigest", p.CatalogDigest) - populate(objectMap, "pipelineResourceId", p.PipelineResourceID) - populate(objectMap, "source", p.Source) - populate(objectMap, "target", p.Target) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type PipelineRunResponse. -func (p PipelineRunResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "catalogDigest", p.CatalogDigest) - populateTimeRFC3339(objectMap, "finishTime", p.FinishTime) - populate(objectMap, "importedArtifacts", p.ImportedArtifacts) - populate(objectMap, "pipelineRunErrorMessage", p.PipelineRunErrorMessage) - populate(objectMap, "progress", p.Progress) - populate(objectMap, "source", p.Source) - populateTimeRFC3339(objectMap, "startTime", p.StartTime) - populate(objectMap, "status", p.Status) - populate(objectMap, "target", p.Target) - populate(objectMap, "trigger", p.Trigger) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type PipelineRunResponse. -func (p *PipelineRunResponse) 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", p, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "catalogDigest": - err = unpopulate(val, "CatalogDigest", &p.CatalogDigest) - delete(rawMsg, key) - case "finishTime": - err = unpopulateTimeRFC3339(val, "FinishTime", &p.FinishTime) - delete(rawMsg, key) - case "importedArtifacts": - err = unpopulate(val, "ImportedArtifacts", &p.ImportedArtifacts) - delete(rawMsg, key) - case "pipelineRunErrorMessage": - err = unpopulate(val, "PipelineRunErrorMessage", &p.PipelineRunErrorMessage) - delete(rawMsg, key) - case "progress": - err = unpopulate(val, "Progress", &p.Progress) - delete(rawMsg, key) - case "source": - err = unpopulate(val, "Source", &p.Source) - delete(rawMsg, key) - case "startTime": - err = unpopulateTimeRFC3339(val, "StartTime", &p.StartTime) - delete(rawMsg, key) - case "status": - err = unpopulate(val, "Status", &p.Status) - delete(rawMsg, key) - case "target": - err = unpopulate(val, "Target", &p.Target) - delete(rawMsg, key) - case "trigger": - err = unpopulate(val, "Trigger", &p.Trigger) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", p, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type PipelineSourceTriggerDescriptor. -func (p PipelineSourceTriggerDescriptor) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populateTimeRFC3339(objectMap, "timestamp", p.Timestamp) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type PipelineSourceTriggerDescriptor. -func (p *PipelineSourceTriggerDescriptor) 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", p, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "timestamp": - err = unpopulateTimeRFC3339(val, "Timestamp", &p.Timestamp) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", p, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type Registry. -func (r Registry) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", r.ID) - populate(objectMap, "identity", r.Identity) - populate(objectMap, "location", r.Location) - populate(objectMap, "name", r.Name) - populate(objectMap, "properties", r.Properties) - populate(objectMap, "sku", r.SKU) - populate(objectMap, "systemData", r.SystemData) - populate(objectMap, "tags", r.Tags) - populate(objectMap, "type", r.Type) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type RegistryProperties. -func (r RegistryProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "adminUserEnabled", r.AdminUserEnabled) - populate(objectMap, "anonymousPullEnabled", r.AnonymousPullEnabled) - populateTimeRFC3339(objectMap, "creationDate", r.CreationDate) - populate(objectMap, "dataEndpointEnabled", r.DataEndpointEnabled) - populate(objectMap, "dataEndpointHostNames", r.DataEndpointHostNames) - populate(objectMap, "encryption", r.Encryption) - populate(objectMap, "loginServer", r.LoginServer) - populate(objectMap, "networkRuleBypassOptions", r.NetworkRuleBypassOptions) - populate(objectMap, "networkRuleSet", r.NetworkRuleSet) - populate(objectMap, "policies", r.Policies) - populate(objectMap, "privateEndpointConnections", r.PrivateEndpointConnections) - populate(objectMap, "provisioningState", r.ProvisioningState) - populate(objectMap, "publicNetworkAccess", r.PublicNetworkAccess) - populate(objectMap, "status", r.Status) - populate(objectMap, "zoneRedundancy", r.ZoneRedundancy) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type RegistryProperties. -func (r *RegistryProperties) 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 "adminUserEnabled": - err = unpopulate(val, "AdminUserEnabled", &r.AdminUserEnabled) - delete(rawMsg, key) - case "anonymousPullEnabled": - err = unpopulate(val, "AnonymousPullEnabled", &r.AnonymousPullEnabled) - delete(rawMsg, key) - case "creationDate": - err = unpopulateTimeRFC3339(val, "CreationDate", &r.CreationDate) - delete(rawMsg, key) - case "dataEndpointEnabled": - err = unpopulate(val, "DataEndpointEnabled", &r.DataEndpointEnabled) - delete(rawMsg, key) - case "dataEndpointHostNames": - err = unpopulate(val, "DataEndpointHostNames", &r.DataEndpointHostNames) - delete(rawMsg, key) - case "encryption": - err = unpopulate(val, "Encryption", &r.Encryption) - delete(rawMsg, key) - case "loginServer": - err = unpopulate(val, "LoginServer", &r.LoginServer) - delete(rawMsg, key) - case "networkRuleBypassOptions": - err = unpopulate(val, "NetworkRuleBypassOptions", &r.NetworkRuleBypassOptions) - delete(rawMsg, key) - case "networkRuleSet": - err = unpopulate(val, "NetworkRuleSet", &r.NetworkRuleSet) - delete(rawMsg, key) - case "policies": - err = unpopulate(val, "Policies", &r.Policies) - delete(rawMsg, key) - case "privateEndpointConnections": - err = unpopulate(val, "PrivateEndpointConnections", &r.PrivateEndpointConnections) - delete(rawMsg, key) - case "provisioningState": - err = unpopulate(val, "ProvisioningState", &r.ProvisioningState) - delete(rawMsg, key) - case "publicNetworkAccess": - err = unpopulate(val, "PublicNetworkAccess", &r.PublicNetworkAccess) - delete(rawMsg, key) - case "status": - err = unpopulate(val, "Status", &r.Status) - delete(rawMsg, key) - case "zoneRedundancy": - err = unpopulate(val, "ZoneRedundancy", &r.ZoneRedundancy) - 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 RegistryUpdateParameters. -func (r RegistryUpdateParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "identity", r.Identity) - populate(objectMap, "properties", r.Properties) - populate(objectMap, "sku", r.SKU) - populate(objectMap, "tags", r.Tags) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type Replication. -func (r Replication) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", r.ID) - populate(objectMap, "location", r.Location) - populate(objectMap, "name", r.Name) - populate(objectMap, "properties", r.Properties) - populate(objectMap, "systemData", r.SystemData) - populate(objectMap, "tags", r.Tags) - populate(objectMap, "type", r.Type) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type ReplicationUpdateParameters. -func (r ReplicationUpdateParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "properties", r.Properties) - populate(objectMap, "tags", r.Tags) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type Resource. -func (r Resource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", r.ID) - populate(objectMap, "location", r.Location) - populate(objectMap, "name", r.Name) - populate(objectMap, "systemData", r.SystemData) - populate(objectMap, "tags", r.Tags) - populate(objectMap, "type", r.Type) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type RetentionPolicy. -func (r RetentionPolicy) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "days", r.Days) - populateTimeRFC3339(objectMap, "lastUpdatedTime", r.LastUpdatedTime) - populate(objectMap, "status", r.Status) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type RetentionPolicy. -func (r *RetentionPolicy) 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 "days": - err = unpopulate(val, "Days", &r.Days) - delete(rawMsg, key) - case "lastUpdatedTime": - err = unpopulateTimeRFC3339(val, "LastUpdatedTime", &r.LastUpdatedTime) - delete(rawMsg, key) - case "status": - err = unpopulate(val, "Status", &r.Status) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", r, err) - } - } - return nil -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type RunFilter. -func (r *RunFilter) 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 "agentPoolName": - err = unpopulate(val, "AgentPoolName", &r.AgentPoolName) - delete(rawMsg, key) - case "createTime": - err = unpopulateTimeRFC3339(val, "CreateTime", &r.CreateTime) - delete(rawMsg, key) - case "finishTime": - err = unpopulateTimeRFC3339(val, "FinishTime", &r.FinishTime) - delete(rawMsg, key) - case "isArchiveEnabled": - err = unpopulate(val, "IsArchiveEnabled", &r.IsArchiveEnabled) - delete(rawMsg, key) - case "outputImageManifests": - err = unpopulate(val, "OutputImageManifests", &r.OutputImageManifests) - delete(rawMsg, key) - case "runId": - err = unpopulate(val, "RunID", &r.RunID) - delete(rawMsg, key) - case "runType": - err = unpopulate(val, "RunType", &r.RunType) - delete(rawMsg, key) - case "status": - err = unpopulate(val, "Status", &r.Status) - delete(rawMsg, key) - case "taskName": - err = unpopulate(val, "TaskName", &r.TaskName) - 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 RunProperties. -func (r RunProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "agentConfiguration", r.AgentConfiguration) - populate(objectMap, "agentPoolName", r.AgentPoolName) - populateTimeRFC3339(objectMap, "createTime", r.CreateTime) - populate(objectMap, "customRegistries", r.CustomRegistries) - populateTimeRFC3339(objectMap, "finishTime", r.FinishTime) - populate(objectMap, "imageUpdateTrigger", r.ImageUpdateTrigger) - populate(objectMap, "isArchiveEnabled", r.IsArchiveEnabled) - populateTimeRFC3339(objectMap, "lastUpdatedTime", r.LastUpdatedTime) - populate(objectMap, "logArtifact", r.LogArtifact) - populate(objectMap, "outputImages", r.OutputImages) - populate(objectMap, "platform", r.Platform) - populate(objectMap, "provisioningState", r.ProvisioningState) - populate(objectMap, "runErrorMessage", r.RunErrorMessage) - populate(objectMap, "runId", r.RunID) - populate(objectMap, "runType", r.RunType) - populate(objectMap, "sourceRegistryAuth", r.SourceRegistryAuth) - populate(objectMap, "sourceTrigger", r.SourceTrigger) - populateTimeRFC3339(objectMap, "startTime", r.StartTime) - populate(objectMap, "status", r.Status) - populate(objectMap, "task", r.Task) - populate(objectMap, "timerTrigger", r.TimerTrigger) - populate(objectMap, "updateTriggerToken", r.UpdateTriggerToken) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type RunProperties. -func (r *RunProperties) 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 "agentConfiguration": - err = unpopulate(val, "AgentConfiguration", &r.AgentConfiguration) - delete(rawMsg, key) - case "agentPoolName": - err = unpopulate(val, "AgentPoolName", &r.AgentPoolName) - delete(rawMsg, key) - case "createTime": - err = unpopulateTimeRFC3339(val, "CreateTime", &r.CreateTime) - delete(rawMsg, key) - case "customRegistries": - err = unpopulate(val, "CustomRegistries", &r.CustomRegistries) - delete(rawMsg, key) - case "finishTime": - err = unpopulateTimeRFC3339(val, "FinishTime", &r.FinishTime) - delete(rawMsg, key) - case "imageUpdateTrigger": - err = unpopulate(val, "ImageUpdateTrigger", &r.ImageUpdateTrigger) - delete(rawMsg, key) - case "isArchiveEnabled": - err = unpopulate(val, "IsArchiveEnabled", &r.IsArchiveEnabled) - delete(rawMsg, key) - case "lastUpdatedTime": - err = unpopulateTimeRFC3339(val, "LastUpdatedTime", &r.LastUpdatedTime) - delete(rawMsg, key) - case "logArtifact": - err = unpopulate(val, "LogArtifact", &r.LogArtifact) - delete(rawMsg, key) - case "outputImages": - err = unpopulate(val, "OutputImages", &r.OutputImages) - delete(rawMsg, key) - case "platform": - err = unpopulate(val, "Platform", &r.Platform) - delete(rawMsg, key) - case "provisioningState": - err = unpopulate(val, "ProvisioningState", &r.ProvisioningState) - delete(rawMsg, key) - case "runErrorMessage": - err = unpopulate(val, "RunErrorMessage", &r.RunErrorMessage) - delete(rawMsg, key) - case "runId": - err = unpopulate(val, "RunID", &r.RunID) - delete(rawMsg, key) - case "runType": - err = unpopulate(val, "RunType", &r.RunType) - delete(rawMsg, key) - case "sourceRegistryAuth": - err = unpopulate(val, "SourceRegistryAuth", &r.SourceRegistryAuth) - delete(rawMsg, key) - case "sourceTrigger": - err = unpopulate(val, "SourceTrigger", &r.SourceTrigger) - delete(rawMsg, key) - case "startTime": - err = unpopulateTimeRFC3339(val, "StartTime", &r.StartTime) - delete(rawMsg, key) - case "status": - err = unpopulate(val, "Status", &r.Status) - delete(rawMsg, key) - case "task": - err = unpopulate(val, "Task", &r.Task) - delete(rawMsg, key) - case "timerTrigger": - err = unpopulate(val, "TimerTrigger", &r.TimerTrigger) - delete(rawMsg, key) - case "updateTriggerToken": - err = unpopulate(val, "UpdateTriggerToken", &r.UpdateTriggerToken) - 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 RunUpdateParameters. -func (r RunUpdateParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "isArchiveEnabled", r.IsArchiveEnabled) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type ScopeMapProperties. -func (s ScopeMapProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "actions", s.Actions) - populateTimeRFC3339(objectMap, "creationDate", s.CreationDate) - populate(objectMap, "description", s.Description) - populate(objectMap, "provisioningState", s.ProvisioningState) - populate(objectMap, "type", s.Type) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type ScopeMapProperties. -func (s *ScopeMapProperties) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "actions": - err = unpopulate(val, "Actions", &s.Actions) - delete(rawMsg, key) - case "creationDate": - err = unpopulateTimeRFC3339(val, "CreationDate", &s.CreationDate) - delete(rawMsg, key) - case "description": - err = unpopulate(val, "Description", &s.Description) - delete(rawMsg, key) - case "provisioningState": - err = unpopulate(val, "ProvisioningState", &s.ProvisioningState) - delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &s.Type) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type ScopeMapPropertiesUpdateParameters. -func (s ScopeMapPropertiesUpdateParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "actions", s.Actions) - populate(objectMap, "description", s.Description) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type ScopeMapUpdateParameters. -func (s ScopeMapUpdateParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "properties", s.Properties) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type SoftDeletePolicy. -func (s SoftDeletePolicy) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populateTimeRFC3339(objectMap, "lastUpdatedTime", s.LastUpdatedTime) - populate(objectMap, "retentionDays", s.RetentionDays) - populate(objectMap, "status", s.Status) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type SoftDeletePolicy. -func (s *SoftDeletePolicy) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "lastUpdatedTime": - err = unpopulateTimeRFC3339(val, "LastUpdatedTime", &s.LastUpdatedTime) - delete(rawMsg, key) - case "retentionDays": - err = unpopulate(val, "RetentionDays", &s.RetentionDays) - delete(rawMsg, key) - case "status": - err = unpopulate(val, "Status", &s.Status) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type SourceTrigger. -func (s SourceTrigger) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "name", s.Name) - populate(objectMap, "sourceRepository", s.SourceRepository) - populate(objectMap, "sourceTriggerEvents", s.SourceTriggerEvents) - populate(objectMap, "status", s.Status) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type SourceTriggerUpdateParameters. -func (s SourceTriggerUpdateParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "name", s.Name) - populate(objectMap, "sourceRepository", s.SourceRepository) - populate(objectMap, "sourceTriggerEvents", s.SourceTriggerEvents) - populate(objectMap, "status", s.Status) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type Status. -func (s Status) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "displayStatus", s.DisplayStatus) - populate(objectMap, "message", s.Message) - populateTimeRFC3339(objectMap, "timestamp", s.Timestamp) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type Status. -func (s *Status) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "displayStatus": - err = unpopulate(val, "DisplayStatus", &s.DisplayStatus) - delete(rawMsg, key) - case "message": - err = unpopulate(val, "Message", &s.Message) - delete(rawMsg, key) - case "timestamp": - err = unpopulateTimeRFC3339(val, "Timestamp", &s.Timestamp) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type StatusDetailProperties. -func (s StatusDetailProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "code", s.Code) - populate(objectMap, "correlationId", s.CorrelationID) - populate(objectMap, "description", s.Description) - populateTimeRFC3339(objectMap, "timestamp", s.Timestamp) - populate(objectMap, "type", s.Type) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type StatusDetailProperties. -func (s *StatusDetailProperties) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "code": - err = unpopulate(val, "Code", &s.Code) - delete(rawMsg, key) - case "correlationId": - err = unpopulate(val, "CorrelationID", &s.CorrelationID) - delete(rawMsg, key) - case "description": - err = unpopulate(val, "Description", &s.Description) - delete(rawMsg, key) - case "timestamp": - err = unpopulateTimeRFC3339(val, "Timestamp", &s.Timestamp) - delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &s.Type) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type SyncProperties. -func (s SyncProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "gatewayEndpoint", s.GatewayEndpoint) - populateTimeRFC3339(objectMap, "lastSyncTime", s.LastSyncTime) - populate(objectMap, "messageTtl", s.MessageTTL) - populate(objectMap, "schedule", s.Schedule) - populate(objectMap, "syncWindow", s.SyncWindow) - populate(objectMap, "tokenId", s.TokenID) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type SyncProperties. -func (s *SyncProperties) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "gatewayEndpoint": - err = unpopulate(val, "GatewayEndpoint", &s.GatewayEndpoint) - delete(rawMsg, key) - case "lastSyncTime": - err = unpopulateTimeRFC3339(val, "LastSyncTime", &s.LastSyncTime) - delete(rawMsg, key) - case "messageTtl": - err = unpopulate(val, "MessageTTL", &s.MessageTTL) - delete(rawMsg, key) - case "schedule": - err = unpopulate(val, "Schedule", &s.Schedule) - delete(rawMsg, key) - case "syncWindow": - err = unpopulate(val, "SyncWindow", &s.SyncWindow) - delete(rawMsg, key) - case "tokenId": - err = unpopulate(val, "TokenID", &s.TokenID) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type SystemData. -func (s SystemData) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populateTimeRFC3339(objectMap, "createdAt", s.CreatedAt) - populate(objectMap, "createdBy", s.CreatedBy) - populate(objectMap, "createdByType", s.CreatedByType) - populateTimeRFC3339(objectMap, "lastModifiedAt", s.LastModifiedAt) - populate(objectMap, "lastModifiedBy", s.LastModifiedBy) - populate(objectMap, "lastModifiedByType", s.LastModifiedByType) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type SystemData. -func (s *SystemData) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "createdAt": - err = unpopulateTimeRFC3339(val, "CreatedAt", &s.CreatedAt) - delete(rawMsg, key) - case "createdBy": - err = unpopulate(val, "CreatedBy", &s.CreatedBy) - delete(rawMsg, key) - case "createdByType": - err = unpopulate(val, "CreatedByType", &s.CreatedByType) - delete(rawMsg, key) - case "lastModifiedAt": - err = unpopulateTimeRFC3339(val, "LastModifiedAt", &s.LastModifiedAt) - delete(rawMsg, key) - case "lastModifiedBy": - err = unpopulate(val, "LastModifiedBy", &s.LastModifiedBy) - delete(rawMsg, key) - case "lastModifiedByType": - err = unpopulate(val, "LastModifiedByType", &s.LastModifiedByType) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type Task. -func (t Task) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", t.ID) - populate(objectMap, "identity", t.Identity) - populate(objectMap, "location", t.Location) - populate(objectMap, "name", t.Name) - populate(objectMap, "properties", t.Properties) - populate(objectMap, "systemData", t.SystemData) - populate(objectMap, "tags", t.Tags) - populate(objectMap, "type", t.Type) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type TaskProperties. -func (t TaskProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "agentConfiguration", t.AgentConfiguration) - populate(objectMap, "agentPoolName", t.AgentPoolName) - populateTimeRFC3339(objectMap, "creationDate", t.CreationDate) - populate(objectMap, "credentials", t.Credentials) - populate(objectMap, "isSystemTask", t.IsSystemTask) - populate(objectMap, "logTemplate", t.LogTemplate) - populate(objectMap, "platform", t.Platform) - populate(objectMap, "provisioningState", t.ProvisioningState) - populate(objectMap, "status", t.Status) - populate(objectMap, "step", t.Step) - populate(objectMap, "timeout", t.Timeout) - populate(objectMap, "trigger", t.Trigger) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type TaskProperties. -func (t *TaskProperties) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", t, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "agentConfiguration": - err = unpopulate(val, "AgentConfiguration", &t.AgentConfiguration) - delete(rawMsg, key) - case "agentPoolName": - err = unpopulate(val, "AgentPoolName", &t.AgentPoolName) - delete(rawMsg, key) - case "creationDate": - err = unpopulateTimeRFC3339(val, "CreationDate", &t.CreationDate) - delete(rawMsg, key) - case "credentials": - err = unpopulate(val, "Credentials", &t.Credentials) - delete(rawMsg, key) - case "isSystemTask": - err = unpopulate(val, "IsSystemTask", &t.IsSystemTask) - delete(rawMsg, key) - case "logTemplate": - err = unpopulate(val, "LogTemplate", &t.LogTemplate) - delete(rawMsg, key) - case "platform": - err = unpopulate(val, "Platform", &t.Platform) - delete(rawMsg, key) - case "provisioningState": - err = unpopulate(val, "ProvisioningState", &t.ProvisioningState) - delete(rawMsg, key) - case "status": - err = unpopulate(val, "Status", &t.Status) - delete(rawMsg, key) - case "step": - t.Step, err = unmarshalTaskStepPropertiesClassification(val) - delete(rawMsg, key) - case "timeout": - err = unpopulate(val, "Timeout", &t.Timeout) - delete(rawMsg, key) - case "trigger": - err = unpopulate(val, "Trigger", &t.Trigger) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", t, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type TaskPropertiesUpdateParameters. -func (t TaskPropertiesUpdateParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "agentConfiguration", t.AgentConfiguration) - populate(objectMap, "agentPoolName", t.AgentPoolName) - populate(objectMap, "credentials", t.Credentials) - populate(objectMap, "logTemplate", t.LogTemplate) - populate(objectMap, "platform", t.Platform) - populate(objectMap, "status", t.Status) - populate(objectMap, "step", t.Step) - populate(objectMap, "timeout", t.Timeout) - populate(objectMap, "trigger", t.Trigger) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type TaskPropertiesUpdateParameters. -func (t *TaskPropertiesUpdateParameters) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", t, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "agentConfiguration": - err = unpopulate(val, "AgentConfiguration", &t.AgentConfiguration) - delete(rawMsg, key) - case "agentPoolName": - err = unpopulate(val, "AgentPoolName", &t.AgentPoolName) - delete(rawMsg, key) - case "credentials": - err = unpopulate(val, "Credentials", &t.Credentials) - delete(rawMsg, key) - case "logTemplate": - err = unpopulate(val, "LogTemplate", &t.LogTemplate) - delete(rawMsg, key) - case "platform": - err = unpopulate(val, "Platform", &t.Platform) - delete(rawMsg, key) - case "status": - err = unpopulate(val, "Status", &t.Status) - delete(rawMsg, key) - case "step": - t.Step, err = unmarshalTaskStepUpdateParametersClassification(val) - delete(rawMsg, key) - case "timeout": - err = unpopulate(val, "Timeout", &t.Timeout) - delete(rawMsg, key) - case "trigger": - err = unpopulate(val, "Trigger", &t.Trigger) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", t, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type TaskRunProperties. -func (t TaskRunProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "forceUpdateTag", t.ForceUpdateTag) - populate(objectMap, "provisioningState", t.ProvisioningState) - populate(objectMap, "runRequest", t.RunRequest) - populate(objectMap, "runResult", t.RunResult) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type TaskRunProperties. -func (t *TaskRunProperties) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", t, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "forceUpdateTag": - err = unpopulate(val, "ForceUpdateTag", &t.ForceUpdateTag) - delete(rawMsg, key) - case "provisioningState": - err = unpopulate(val, "ProvisioningState", &t.ProvisioningState) - delete(rawMsg, key) - case "runRequest": - t.RunRequest, err = unmarshalRunRequestClassification(val) - delete(rawMsg, key) - case "runResult": - err = unpopulate(val, "RunResult", &t.RunResult) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", t, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type TaskRunPropertiesUpdateParameters. -func (t TaskRunPropertiesUpdateParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "forceUpdateTag", t.ForceUpdateTag) - populate(objectMap, "runRequest", t.RunRequest) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type TaskRunPropertiesUpdateParameters. -func (t *TaskRunPropertiesUpdateParameters) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", t, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "forceUpdateTag": - err = unpopulate(val, "ForceUpdateTag", &t.ForceUpdateTag) - delete(rawMsg, key) - case "runRequest": - t.RunRequest, err = unmarshalRunRequestClassification(val) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", t, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type TaskRunRequest. -func (t TaskRunRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "agentPoolName", t.AgentPoolName) - populate(objectMap, "isArchiveEnabled", t.IsArchiveEnabled) - populate(objectMap, "logTemplate", t.LogTemplate) - populate(objectMap, "overrideTaskStepProperties", t.OverrideTaskStepProperties) - populate(objectMap, "taskId", t.TaskID) - objectMap["type"] = "TaskRunRequest" - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type TaskRunRequest. -func (t *TaskRunRequest) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", t, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "agentPoolName": - err = unpopulate(val, "AgentPoolName", &t.AgentPoolName) - delete(rawMsg, key) - case "isArchiveEnabled": - err = unpopulate(val, "IsArchiveEnabled", &t.IsArchiveEnabled) - delete(rawMsg, key) - case "logTemplate": - err = unpopulate(val, "LogTemplate", &t.LogTemplate) - delete(rawMsg, key) - case "overrideTaskStepProperties": - err = unpopulate(val, "OverrideTaskStepProperties", &t.OverrideTaskStepProperties) - delete(rawMsg, key) - case "taskId": - err = unpopulate(val, "TaskID", &t.TaskID) - delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &t.Type) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", t, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type TaskRunUpdateParameters. -func (t TaskRunUpdateParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "identity", t.Identity) - populate(objectMap, "location", t.Location) - populate(objectMap, "properties", t.Properties) - populate(objectMap, "tags", t.Tags) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type TaskStepProperties. -func (t TaskStepProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "baseImageDependencies", t.BaseImageDependencies) - populate(objectMap, "contextAccessToken", t.ContextAccessToken) - populate(objectMap, "contextPath", t.ContextPath) - objectMap["type"] = t.Type - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type TaskUpdateParameters. -func (t TaskUpdateParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "identity", t.Identity) - populate(objectMap, "properties", t.Properties) - populate(objectMap, "tags", t.Tags) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type TokenCertificate. -func (t TokenCertificate) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "encodedPemCertificate", t.EncodedPemCertificate) - populateTimeRFC3339(objectMap, "expiry", t.Expiry) - populate(objectMap, "name", t.Name) - populate(objectMap, "thumbprint", t.Thumbprint) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type TokenCertificate. -func (t *TokenCertificate) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", t, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "encodedPemCertificate": - err = unpopulate(val, "EncodedPemCertificate", &t.EncodedPemCertificate) - delete(rawMsg, key) - case "expiry": - err = unpopulateTimeRFC3339(val, "Expiry", &t.Expiry) - delete(rawMsg, key) - case "name": - err = unpopulate(val, "Name", &t.Name) - delete(rawMsg, key) - case "thumbprint": - err = unpopulate(val, "Thumbprint", &t.Thumbprint) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", t, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type TokenCredentialsProperties. -func (t TokenCredentialsProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "certificates", t.Certificates) - populate(objectMap, "passwords", t.Passwords) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type TokenPassword. -func (t TokenPassword) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populateTimeRFC3339(objectMap, "creationTime", t.CreationTime) - populateTimeRFC3339(objectMap, "expiry", t.Expiry) - populate(objectMap, "name", t.Name) - populate(objectMap, "value", t.Value) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type TokenPassword. -func (t *TokenPassword) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", t, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "creationTime": - err = unpopulateTimeRFC3339(val, "CreationTime", &t.CreationTime) - delete(rawMsg, key) - case "expiry": - err = unpopulateTimeRFC3339(val, "Expiry", &t.Expiry) - delete(rawMsg, key) - case "name": - err = unpopulate(val, "Name", &t.Name) - delete(rawMsg, key) - case "value": - err = unpopulate(val, "Value", &t.Value) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", t, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type TokenProperties. -func (t TokenProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populateTimeRFC3339(objectMap, "creationDate", t.CreationDate) - populate(objectMap, "credentials", t.Credentials) - populate(objectMap, "provisioningState", t.ProvisioningState) - populate(objectMap, "scopeMapId", t.ScopeMapID) - populate(objectMap, "status", t.Status) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type TokenProperties. -func (t *TokenProperties) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", t, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "creationDate": - err = unpopulateTimeRFC3339(val, "CreationDate", &t.CreationDate) - delete(rawMsg, key) - case "credentials": - err = unpopulate(val, "Credentials", &t.Credentials) - delete(rawMsg, key) - case "provisioningState": - err = unpopulate(val, "ProvisioningState", &t.ProvisioningState) - delete(rawMsg, key) - case "scopeMapId": - err = unpopulate(val, "ScopeMapID", &t.ScopeMapID) - delete(rawMsg, key) - case "status": - err = unpopulate(val, "Status", &t.Status) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", t, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type TokenUpdateParameters. -func (t TokenUpdateParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "properties", t.Properties) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type TriggerProperties. -func (t TriggerProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "baseImageTrigger", t.BaseImageTrigger) - populate(objectMap, "sourceTriggers", t.SourceTriggers) - populate(objectMap, "timerTriggers", t.TimerTriggers) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type TriggerUpdateParameters. -func (t TriggerUpdateParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "baseImageTrigger", t.BaseImageTrigger) - populate(objectMap, "sourceTriggers", t.SourceTriggers) - populate(objectMap, "timerTriggers", t.TimerTriggers) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type Webhook. -func (w Webhook) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", w.ID) - populate(objectMap, "location", w.Location) - populate(objectMap, "name", w.Name) - populate(objectMap, "properties", w.Properties) - populate(objectMap, "systemData", w.SystemData) - populate(objectMap, "tags", w.Tags) - populate(objectMap, "type", w.Type) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type WebhookCreateParameters. -func (w WebhookCreateParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "location", w.Location) - populate(objectMap, "properties", w.Properties) - populate(objectMap, "tags", w.Tags) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type WebhookProperties. -func (w WebhookProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "actions", w.Actions) - populate(objectMap, "provisioningState", w.ProvisioningState) - populate(objectMap, "scope", w.Scope) - populate(objectMap, "status", w.Status) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type WebhookPropertiesCreateParameters. -func (w WebhookPropertiesCreateParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "actions", w.Actions) - populate(objectMap, "customHeaders", w.CustomHeaders) - populate(objectMap, "scope", w.Scope) - populate(objectMap, "serviceUri", w.ServiceURI) - populate(objectMap, "status", w.Status) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type WebhookPropertiesUpdateParameters. -func (w WebhookPropertiesUpdateParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "actions", w.Actions) - populate(objectMap, "customHeaders", w.CustomHeaders) - populate(objectMap, "scope", w.Scope) - populate(objectMap, "serviceUri", w.ServiceURI) - populate(objectMap, "status", w.Status) - return json.Marshal(objectMap) -} - -// MarshalJSON implements the json.Marshaller interface for type WebhookUpdateParameters. -func (w WebhookUpdateParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "properties", w.Properties) - populate(objectMap, "tags", w.Tags) - return json.Marshal(objectMap) -} - -func populate(m map[string]interface{}, k string, v interface{}) { - if v == nil { - return - } else if azcore.IsNullValue(v) { - m[k] = nil - } else if !reflect.ValueOf(v).IsNil() { - m[k] = v - } -} - -func unpopulate(data json.RawMessage, fn string, v interface{}) error { - if data == nil { - return nil - } - if err := json.Unmarshal(data, v); err != nil { - return fmt.Errorf("struct field %s: %v", fn, err) - } - return nil -} From 9f4515f07cf6ee5a8c3876fee87e3eb9f5871d53 Mon Sep 17 00:00:00 2001 From: Peng Jiahui <46921893+Alancere@users.noreply.github.com> Date: Fri, 24 Feb 2023 10:26:27 +0800 Subject: [PATCH 053/107] [Release] sdk/resourcemanager/datafactory/armdatafactory/3.1.0 (#19917) * [Release] sdk/resourcemanager/datafactory/armdatafactory/4.0.0 generation from spec commit: 4afa6837cfb404d8e5ffa8a604a5e09996d6f79e * update version number * fix import --- .../datafactory/armdatafactory/CHANGELOG.md | 29 + .../armdatafactory/activityruns_client.go | 19 +- .../activityruns_client_example_test.go | 100 +- .../datafactory/armdatafactory/autorest.md | 6 +- .../datafactory/armdatafactory/constants.go | 34 +- .../credentialoperations_client.go | 313 + ...redentialoperations_client_example_test.go | 149 + .../dataflowdebugsession_client.go | 61 +- ...ataflowdebugsession_client_example_test.go | 69 +- .../armdatafactory/dataflows_client.go | 45 +- .../dataflows_client_example_test.go | 246 +- .../armdatafactory/datasets_client.go | 43 +- .../datasets_client_example_test.go | 189 +- .../armdatafactory/exposurecontrol_client.go | 37 +- .../exposurecontrol_client_example_test.go | 35 +- .../armdatafactory/factories_client.go | 81 +- .../factories_client_example_test.go | 409 +- .../armdatafactory/globalparameters_client.go | 46 +- .../globalparameters_client_example_test.go | 101 +- .../datafactory/armdatafactory/go.mod | 6 +- .../datafactory/armdatafactory/go.sum | 15 +- .../integrationruntimenodes_client.go | 60 +- ...grationruntimenodes_client_example_test.go | 64 +- ...integrationruntimeobjectmetadata_client.go | 29 +- ...ntimeobjectmetadata_client_example_test.go | 522 +- .../integrationruntimes_client.go | 201 +- ...integrationruntimes_client_example_test.go | 339 +- .../armdatafactory/linkedservices_client.go | 46 +- .../linkedservices_client_example_test.go | 101 +- .../managedprivateendpoints_client.go | 58 +- ...gedprivateendpoints_client_example_test.go | 79 +- .../managedvirtualnetworks_client.go | 39 +- ...agedvirtualnetworks_client_example_test.go | 53 +- .../datafactory/armdatafactory/models.go | 6600 +++++++++-------- .../armdatafactory/models_serde.go | 4245 ++++++----- .../armdatafactory/operations_client.go | 7 +- .../operations_client_example_test.go | 1011 ++- .../armdatafactory/pipelineruns_client.go | 35 +- .../pipelineruns_client_example_test.go | 83 +- .../armdatafactory/pipelines_client.go | 54 +- .../pipelines_client_example_test.go | 325 +- .../armdatafactory/polymorphic_helpers.go | 64 +- .../privateendpointconnection_client.go | 39 +- ...eendpointconnection_client_example_test.go | 45 +- .../privateendpointconnections_client.go | 15 +- ...endpointconnections_client_example_test.go | 29 +- .../privatelinkresources_client.go | 15 +- ...rivatelinkresources_client_example_test.go | 21 +- .../armdatafactory/response_types.go | 66 +- .../armdatafactory/time_rfc3339.go | 2 +- .../armdatafactory/triggerruns_client.go | 39 +- .../triggerruns_client_example_test.go | 28 +- .../armdatafactory/triggers_client.go | 107 +- .../triggers_client_example_test.go | 218 +- 54 files changed, 10733 insertions(+), 5939 deletions(-) create mode 100644 sdk/resourcemanager/datafactory/armdatafactory/credentialoperations_client.go create mode 100644 sdk/resourcemanager/datafactory/armdatafactory/credentialoperations_client_example_test.go diff --git a/sdk/resourcemanager/datafactory/armdatafactory/CHANGELOG.md b/sdk/resourcemanager/datafactory/armdatafactory/CHANGELOG.md index a9e8cff1ca5e..f62e8ff729d8 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/CHANGELOG.md +++ b/sdk/resourcemanager/datafactory/armdatafactory/CHANGELOG.md @@ -1,5 +1,34 @@ # Release History +## 3.1.0 (2023-02-24) +### Features Added + +- Type of `SynapseSparkJobActivityTypeProperties.NumExecutors` has been changed from `*int32` to `any` +- New type alias `ConfigurationType` with values `ConfigurationTypeArtifact`, `ConfigurationTypeCustomized`, `ConfigurationTypeDefault` +- New type alias `SparkConfigurationReferenceType` with values `SparkConfigurationReferenceTypeSparkConfigurationReference` +- New function `*Credential.GetCredential() *Credential` +- New function `NewCredentialOperationsClient(string, azcore.TokenCredential, *arm.ClientOptions) (*CredentialOperationsClient, error)` +- New function `*CredentialOperationsClient.CreateOrUpdate(context.Context, string, string, string, ManagedIdentityCredentialResource, *CredentialOperationsClientCreateOrUpdateOptions) (CredentialOperationsClientCreateOrUpdateResponse, error)` +- New function `*CredentialOperationsClient.Delete(context.Context, string, string, string, *CredentialOperationsClientDeleteOptions) (CredentialOperationsClientDeleteResponse, error)` +- New function `*CredentialOperationsClient.Get(context.Context, string, string, string, *CredentialOperationsClientGetOptions) (CredentialOperationsClientGetResponse, error)` +- New function `*CredentialOperationsClient.NewListByFactoryPager(string, string, *CredentialOperationsClientListByFactoryOptions) *runtime.Pager[CredentialOperationsClientListByFactoryResponse]` +- New function `*ManagedIdentityCredential.GetCredential() *Credential` +- New function `*ServicePrincipalCredential.GetCredential() *Credential` +- New struct `CredentialListResponse` +- New struct `CredentialOperationsClient` +- New struct `CredentialOperationsClientListByFactoryResponse` +- New struct `ManagedIdentityCredential` +- New struct `ManagedIdentityCredentialResource` +- New struct `ManagedIdentityTypeProperties` +- New struct `ServicePrincipalCredential` +- New struct `ServicePrincipalCredentialTypeProperties` +- New struct `SparkConfigurationParametrizationReference` +- New field `ConfigurationType` in struct `SynapseSparkJobActivityTypeProperties` +- New field `ScanFolder` in struct `SynapseSparkJobActivityTypeProperties` +- New field `SparkConfig` in struct `SynapseSparkJobActivityTypeProperties` +- New field `TargetSparkConfiguration` in struct `SynapseSparkJobActivityTypeProperties` + + ## 3.0.0 (2022-10-27) ### Breaking Changes diff --git a/sdk/resourcemanager/datafactory/armdatafactory/activityruns_client.go b/sdk/resourcemanager/datafactory/armdatafactory/activityruns_client.go index 8ccfd801dee4..8a5f142e9867 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/activityruns_client.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/activityruns_client.go @@ -32,9 +32,9 @@ type ActivityRunsClient struct { } // NewActivityRunsClient creates a new instance of ActivityRunsClient with the specified values. -// subscriptionID - The subscription identifier. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The subscription identifier. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewActivityRunsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ActivityRunsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,13 +57,14 @@ func NewActivityRunsClient(subscriptionID string, credential azcore.TokenCredent // QueryByPipelineRun - Query activity runs based on input filter conditions. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// runID - The pipeline run identifier. -// filterParameters - Parameters to filter the activity runs. -// options - ActivityRunsClientQueryByPipelineRunOptions contains the optional parameters for the ActivityRunsClient.QueryByPipelineRun -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - runID - The pipeline run identifier. +// - filterParameters - Parameters to filter the activity runs. +// - options - ActivityRunsClientQueryByPipelineRunOptions contains the optional parameters for the ActivityRunsClient.QueryByPipelineRun +// method. func (client *ActivityRunsClient) QueryByPipelineRun(ctx context.Context, resourceGroupName string, factoryName string, runID string, filterParameters RunFilterParameters, options *ActivityRunsClientQueryByPipelineRunOptions) (ActivityRunsClientQueryByPipelineRunResponse, error) { req, err := client.queryByPipelineRunCreateRequest(ctx, resourceGroupName, factoryName, runID, filterParameters, options) if err != nil { diff --git a/sdk/resourcemanager/datafactory/armdatafactory/activityruns_client_example_test.go b/sdk/resourcemanager/datafactory/armdatafactory/activityruns_client_example_test.go index 192bcfdefa67..b5bb651935a1 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/activityruns_client_example_test.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/activityruns_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armdatafactory_test @@ -19,7 +20,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ActivityRuns_QueryByPipelineRun.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ActivityRuns_QueryByPipelineRun.json func ExampleActivityRunsClient_QueryByPipelineRun() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -37,6 +38,101 @@ func ExampleActivityRunsClient_QueryByPipelineRun() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.ActivityRunsQueryResponse = armdatafactory.ActivityRunsQueryResponse{ + // Value: []*armdatafactory.ActivityRun{ + // { + // AdditionalProperties: map[string]any{ + // "retryAttempt": nil, + // "userProperties": map[string]any{ + // }, + // }, + // ActivityName: to.Ptr("ExampleForeachActivity"), + // ActivityRunEnd: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-16T00:38:11.5445431Z"); return t}()), + // ActivityRunID: to.Ptr("f30c5514-fb85-43ed-9fa4-768d42e58680"), + // ActivityRunStart: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-16T00:37:49.4804925Z"); return t}()), + // ActivityType: to.Ptr("ForEach"), + // DurationInMs: to.Ptr[int32](22064), + // Error: map[string]any{ + // "errorCode": "", + // "failureType": "", + // "message": "", + // "target": "ExampleForeachActivity", + // }, + // Input: map[string]any{ + // }, + // LinkedServiceName: to.Ptr(""), + // Output: map[string]any{ + // }, + // PipelineName: to.Ptr("examplePipeline"), + // PipelineRunID: to.Ptr("2f7fdb90-5df1-4b8e-ac2f-064cfa58202b"), + // Status: to.Ptr("Succeeded"), + // }, + // { + // AdditionalProperties: map[string]any{ + // "retryAttempt": nil, + // "userProperties": map[string]any{ + // }, + // }, + // ActivityName: to.Ptr("ExampleCopyActivity"), + // ActivityRunEnd: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-16T00:38:07.4188923Z"); return t}()), + // ActivityRunID: to.Ptr("a96678c8-7167-4f00-b629-afccfbad4e51"), + // ActivityRunStart: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-16T00:37:50.2460952Z"); return t}()), + // ActivityType: to.Ptr("Copy"), + // DurationInMs: to.Ptr[int32](17172), + // Error: map[string]any{ + // "errorCode": "", + // "failureType": "", + // "message": "", + // "target": "ExampleCopyActivity", + // }, + // Input: map[string]any{ + // "dataIntegrationUnits": float64(32), + // "sink":map[string]any{ + // "type": "BlobSink", + // }, + // "source":map[string]any{ + // "type": "BlobSource", + // }, + // }, + // LinkedServiceName: to.Ptr(""), + // Output: map[string]any{ + // "copyDuration": float64(6), + // "dataRead": float64(142000), + // "dataWritten": float64(142000), + // "effectiveIntegrationRuntime": "DefaultIntegrationRuntime (East US)", + // "errors":[]any{ + // }, + // "executionDetails":[]any{ + // map[string]any{ + // "detailedDurations":map[string]any{ + // "queuingDuration": float64(4), + // "transferDuration": float64(2), + // }, + // "duration": float64(6), + // "sink":map[string]any{ + // "type": "AzureBlob", + // }, + // "source":map[string]any{ + // "type": "AzureBlob", + // }, + // "start": "2018-06-16T00:37:50.68834Z", + // "status": "Succeeded", + // "usedCloudDataMovementUnits": float64(4), + // "usedParallelCopies": float64(1), + // }, + // }, + // "filesRead": float64(1), + // "filesWritten": float64(1), + // "throughput": float64(23.112), + // "usedCloudDataMovementUnits": float64(4), + // "usedParallelCopies": float64(1), + // }, + // PipelineName: to.Ptr("examplePipeline"), + // PipelineRunID: to.Ptr("2f7fdb90-5df1-4b8e-ac2f-064cfa58202b"), + // Status: to.Ptr("Succeeded"), + // }}, + // } } diff --git a/sdk/resourcemanager/datafactory/armdatafactory/autorest.md b/sdk/resourcemanager/datafactory/armdatafactory/autorest.md index 04b444d51382..ccd46f34f7c8 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/autorest.md +++ b/sdk/resourcemanager/datafactory/armdatafactory/autorest.md @@ -5,9 +5,9 @@ ``` yaml azure-arm: true require: -- https://github.com/Azure/azure-rest-api-specs/blob/574be7aa7087e815bc21e2ea0c5357038830dd10/specification/datafactory/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/574be7aa7087e815bc21e2ea0c5357038830dd10/specification/datafactory/resource-manager/readme.go.md +- https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/readme.md +- https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 3.0.0 +module-version: 3.1.0 ``` \ No newline at end of file diff --git a/sdk/resourcemanager/datafactory/armdatafactory/constants.go b/sdk/resourcemanager/datafactory/armdatafactory/constants.go index c179b31393cc..2deed79d5746 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/constants.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/constants.go @@ -11,7 +11,7 @@ package armdatafactory const ( moduleName = "armdatafactory" - moduleVersion = "v3.0.0" + moduleVersion = "v3.1.0" ) // AzureFunctionActivityMethod - The list of HTTP methods supported by a AzureFunctionActivity. @@ -120,6 +120,24 @@ func PossibleCassandraSourceReadConsistencyLevelsValues() []CassandraSourceReadC } } +// ConfigurationType - The type of the spark config. +type ConfigurationType string + +const ( + ConfigurationTypeArtifact ConfigurationType = "Artifact" + ConfigurationTypeCustomized ConfigurationType = "Customized" + ConfigurationTypeDefault ConfigurationType = "Default" +) + +// PossibleConfigurationTypeValues returns the possible values for the ConfigurationType const type. +func PossibleConfigurationTypeValues() []ConfigurationType { + return []ConfigurationType{ + ConfigurationTypeArtifact, + ConfigurationTypeCustomized, + ConfigurationTypeDefault, + } +} + // CosmosDbConnectionMode - The connection mode used to access CosmosDB account. Type: string (or Expression with resultType // string). type CosmosDbConnectionMode string @@ -1434,6 +1452,20 @@ func PossibleSparkAuthenticationTypeValues() []SparkAuthenticationType { } } +// SparkConfigurationReferenceType - Spark configuration reference type. +type SparkConfigurationReferenceType string + +const ( + SparkConfigurationReferenceTypeSparkConfigurationReference SparkConfigurationReferenceType = "SparkConfigurationReference" +) + +// PossibleSparkConfigurationReferenceTypeValues returns the possible values for the SparkConfigurationReferenceType const type. +func PossibleSparkConfigurationReferenceTypeValues() []SparkConfigurationReferenceType { + return []SparkConfigurationReferenceType{ + SparkConfigurationReferenceTypeSparkConfigurationReference, + } +} + // SparkJobReferenceType - Synapse spark job reference type. type SparkJobReferenceType string diff --git a/sdk/resourcemanager/datafactory/armdatafactory/credentialoperations_client.go b/sdk/resourcemanager/datafactory/armdatafactory/credentialoperations_client.go new file mode 100644 index 000000000000..8284c37b1793 --- /dev/null +++ b/sdk/resourcemanager/datafactory/armdatafactory/credentialoperations_client.go @@ -0,0 +1,313 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armdatafactory + +import ( + "context" + "errors" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "net/http" + "net/url" + "strings" +) + +// CredentialOperationsClient contains the methods for the CredentialOperations group. +// Don't use this type directly, use NewCredentialOperationsClient() instead. +type CredentialOperationsClient struct { + host string + subscriptionID string + pl runtime.Pipeline +} + +// NewCredentialOperationsClient creates a new instance of CredentialOperationsClient with the specified values. +// - subscriptionID - The subscription identifier. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. +func NewCredentialOperationsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*CredentialOperationsClient, error) { + if options == nil { + options = &arm.ClientOptions{} + } + ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err + } + client := &CredentialOperationsClient{ + subscriptionID: subscriptionID, + host: ep, + pl: pl, + } + return client, nil +} + +// CreateOrUpdate - Creates or updates a credential. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2018-06-01 +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - credentialName - Credential name +// - credential - Credential resource definition. +// - options - CredentialOperationsClientCreateOrUpdateOptions contains the optional parameters for the CredentialOperationsClient.CreateOrUpdate +// method. +func (client *CredentialOperationsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, factoryName string, credentialName string, credential ManagedIdentityCredentialResource, options *CredentialOperationsClientCreateOrUpdateOptions) (CredentialOperationsClientCreateOrUpdateResponse, error) { + req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, factoryName, credentialName, credential, options) + if err != nil { + return CredentialOperationsClientCreateOrUpdateResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return CredentialOperationsClientCreateOrUpdateResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return CredentialOperationsClientCreateOrUpdateResponse{}, runtime.NewResponseError(resp) + } + return client.createOrUpdateHandleResponse(resp) +} + +// createOrUpdateCreateRequest creates the CreateOrUpdate request. +func (client *CredentialOperationsClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, factoryName string, credentialName string, credential ManagedIdentityCredentialResource, options *CredentialOperationsClientCreateOrUpdateOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/credentials/{credentialName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if factoryName == "" { + return nil, errors.New("parameter factoryName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{factoryName}", url.PathEscape(factoryName)) + if credentialName == "" { + return nil, errors.New("parameter credentialName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{credentialName}", url.PathEscape(credentialName)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2018-06-01") + req.Raw().URL.RawQuery = reqQP.Encode() + if options != nil && options.IfMatch != nil { + req.Raw().Header["If-Match"] = []string{*options.IfMatch} + } + req.Raw().Header["Accept"] = []string{"application/json"} + return req, runtime.MarshalAsJSON(req, credential) +} + +// createOrUpdateHandleResponse handles the CreateOrUpdate response. +func (client *CredentialOperationsClient) createOrUpdateHandleResponse(resp *http.Response) (CredentialOperationsClientCreateOrUpdateResponse, error) { + result := CredentialOperationsClientCreateOrUpdateResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.ManagedIdentityCredentialResource); err != nil { + return CredentialOperationsClientCreateOrUpdateResponse{}, err + } + return result, nil +} + +// Delete - Deletes a credential. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2018-06-01 +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - credentialName - Credential name +// - options - CredentialOperationsClientDeleteOptions contains the optional parameters for the CredentialOperationsClient.Delete +// method. +func (client *CredentialOperationsClient) Delete(ctx context.Context, resourceGroupName string, factoryName string, credentialName string, options *CredentialOperationsClientDeleteOptions) (CredentialOperationsClientDeleteResponse, error) { + req, err := client.deleteCreateRequest(ctx, resourceGroupName, factoryName, credentialName, options) + if err != nil { + return CredentialOperationsClientDeleteResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return CredentialOperationsClientDeleteResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusNoContent) { + return CredentialOperationsClientDeleteResponse{}, runtime.NewResponseError(resp) + } + return CredentialOperationsClientDeleteResponse{}, nil +} + +// deleteCreateRequest creates the Delete request. +func (client *CredentialOperationsClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, factoryName string, credentialName string, options *CredentialOperationsClientDeleteOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/credentials/{credentialName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if factoryName == "" { + return nil, errors.New("parameter factoryName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{factoryName}", url.PathEscape(factoryName)) + if credentialName == "" { + return nil, errors.New("parameter credentialName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{credentialName}", url.PathEscape(credentialName)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2018-06-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// Get - Gets a credential. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2018-06-01 +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - credentialName - Credential name +// - options - CredentialOperationsClientGetOptions contains the optional parameters for the CredentialOperationsClient.Get +// method. +func (client *CredentialOperationsClient) Get(ctx context.Context, resourceGroupName string, factoryName string, credentialName string, options *CredentialOperationsClientGetOptions) (CredentialOperationsClientGetResponse, error) { + req, err := client.getCreateRequest(ctx, resourceGroupName, factoryName, credentialName, options) + if err != nil { + return CredentialOperationsClientGetResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return CredentialOperationsClientGetResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusNotModified) { + return CredentialOperationsClientGetResponse{}, runtime.NewResponseError(resp) + } + return client.getHandleResponse(resp) +} + +// getCreateRequest creates the Get request. +func (client *CredentialOperationsClient) getCreateRequest(ctx context.Context, resourceGroupName string, factoryName string, credentialName string, options *CredentialOperationsClientGetOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/credentials/{credentialName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if factoryName == "" { + return nil, errors.New("parameter factoryName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{factoryName}", url.PathEscape(factoryName)) + if credentialName == "" { + return nil, errors.New("parameter credentialName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{credentialName}", url.PathEscape(credentialName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2018-06-01") + req.Raw().URL.RawQuery = reqQP.Encode() + if options != nil && options.IfNoneMatch != nil { + req.Raw().Header["If-None-Match"] = []string{*options.IfNoneMatch} + } + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// getHandleResponse handles the Get response. +func (client *CredentialOperationsClient) getHandleResponse(resp *http.Response) (CredentialOperationsClientGetResponse, error) { + result := CredentialOperationsClientGetResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.ManagedIdentityCredentialResource); err != nil { + return CredentialOperationsClientGetResponse{}, err + } + return result, nil +} + +// NewListByFactoryPager - List credentials. +// +// Generated from API version 2018-06-01 +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - options - CredentialOperationsClientListByFactoryOptions contains the optional parameters for the CredentialOperationsClient.NewListByFactoryPager +// method. +func (client *CredentialOperationsClient) NewListByFactoryPager(resourceGroupName string, factoryName string, options *CredentialOperationsClientListByFactoryOptions) *runtime.Pager[CredentialOperationsClientListByFactoryResponse] { + return runtime.NewPager(runtime.PagingHandler[CredentialOperationsClientListByFactoryResponse]{ + More: func(page CredentialOperationsClientListByFactoryResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 + }, + Fetcher: func(ctx context.Context, page *CredentialOperationsClientListByFactoryResponse) (CredentialOperationsClientListByFactoryResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listByFactoryCreateRequest(ctx, resourceGroupName, factoryName, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return CredentialOperationsClientListByFactoryResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return CredentialOperationsClientListByFactoryResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return CredentialOperationsClientListByFactoryResponse{}, runtime.NewResponseError(resp) + } + return client.listByFactoryHandleResponse(resp) + }, + }) +} + +// listByFactoryCreateRequest creates the ListByFactory request. +func (client *CredentialOperationsClient) listByFactoryCreateRequest(ctx context.Context, resourceGroupName string, factoryName string, options *CredentialOperationsClientListByFactoryOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/credentials" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if factoryName == "" { + return nil, errors.New("parameter factoryName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{factoryName}", url.PathEscape(factoryName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2018-06-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listByFactoryHandleResponse handles the ListByFactory response. +func (client *CredentialOperationsClient) listByFactoryHandleResponse(resp *http.Response) (CredentialOperationsClientListByFactoryResponse, error) { + result := CredentialOperationsClientListByFactoryResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.CredentialListResponse); err != nil { + return CredentialOperationsClientListByFactoryResponse{}, err + } + return result, nil +} diff --git a/sdk/resourcemanager/datafactory/armdatafactory/credentialoperations_client_example_test.go b/sdk/resourcemanager/datafactory/armdatafactory/credentialoperations_client_example_test.go new file mode 100644 index 000000000000..d5e52dd23c8d --- /dev/null +++ b/sdk/resourcemanager/datafactory/armdatafactory/credentialoperations_client_example_test.go @@ -0,0 +1,149 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armdatafactory_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v3" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Credentials_ListByFactory.json +func ExampleCredentialOperationsClient_NewListByFactoryPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armdatafactory.NewCredentialOperationsClient("12345678-1234-1234-1234-12345678abc", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListByFactoryPager("exampleResourceGroup", "exampleFactoryName", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.CredentialListResponse = armdatafactory.CredentialListResponse{ + // Value: []*armdatafactory.ManagedIdentityCredentialResource{ + // { + // Name: to.Ptr("exampleLinkedService"), + // Type: to.Ptr("Microsoft.DataFactory/factories/credentials"), + // Etag: to.Ptr("0a0064d4-0000-0000-0000-5b245bd00000"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/credentials/exampleCredential"), + // Properties: &armdatafactory.ManagedIdentityCredential{ + // Type: to.Ptr("ManagedIdentity"), + // Description: to.Ptr("Example description"), + // TypeProperties: &armdatafactory.ManagedIdentityTypeProperties{ + // ResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourcegroups/exampleResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleUami"), + // }, + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Credentials_Create.json +func ExampleCredentialOperationsClient_CreateOrUpdate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armdatafactory.NewCredentialOperationsClient("12345678-1234-1234-1234-12345678abc", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.CreateOrUpdate(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleCredential", armdatafactory.ManagedIdentityCredentialResource{ + Properties: &armdatafactory.ManagedIdentityCredential{ + Type: to.Ptr("ManagedIdentity"), + TypeProperties: &armdatafactory.ManagedIdentityTypeProperties{ + ResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourcegroups/exampleResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleUami"), + }, + }, + }, &armdatafactory.CredentialOperationsClientCreateOrUpdateOptions{IfMatch: nil}) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.ManagedIdentityCredentialResource = armdatafactory.ManagedIdentityCredentialResource{ + // Name: to.Ptr("exampleCredential"), + // Type: to.Ptr("Microsoft.DataFactory/factories/credentials"), + // Etag: to.Ptr("0a0062d4-0000-0000-0000-5b245bcf0000"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/credentials/exampleCredential"), + // Properties: &armdatafactory.ManagedIdentityCredential{ + // Type: to.Ptr("ManagedIdentity"), + // TypeProperties: &armdatafactory.ManagedIdentityTypeProperties{ + // ResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourcegroups/exampleResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleUami"), + // }, + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Credentials_Get.json +func ExampleCredentialOperationsClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armdatafactory.NewCredentialOperationsClient("12345678-1234-1234-1234-12345678abc", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleCredential", &armdatafactory.CredentialOperationsClientGetOptions{IfNoneMatch: nil}) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.ManagedIdentityCredentialResource = armdatafactory.ManagedIdentityCredentialResource{ + // Name: to.Ptr("exampleLinkedService"), + // Type: to.Ptr("Microsoft.DataFactory/factories/credentials"), + // Etag: to.Ptr("1500474f-0000-0200-0000-5cbe090d0000"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/credentials/exampleCredential"), + // Properties: &armdatafactory.ManagedIdentityCredential{ + // Type: to.Ptr("ManagedIdentity"), + // Description: to.Ptr("Example description"), + // TypeProperties: &armdatafactory.ManagedIdentityTypeProperties{ + // ResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourcegroups/exampleResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleUami"), + // }, + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Credentials_Delete.json +func ExampleCredentialOperationsClient_Delete() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armdatafactory.NewCredentialOperationsClient("12345678-1234-1234-1234-12345678abc", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + _, err = client.Delete(ctx, "exampleResourceGroup", "exampleFactoryName", "exampleCredential", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } +} diff --git a/sdk/resourcemanager/datafactory/armdatafactory/dataflowdebugsession_client.go b/sdk/resourcemanager/datafactory/armdatafactory/dataflowdebugsession_client.go index 3c5a097eb588..59308eee713e 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/dataflowdebugsession_client.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/dataflowdebugsession_client.go @@ -32,9 +32,9 @@ type DataFlowDebugSessionClient struct { } // NewDataFlowDebugSessionClient creates a new instance of DataFlowDebugSessionClient with the specified values. -// subscriptionID - The subscription identifier. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The subscription identifier. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewDataFlowDebugSessionClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DataFlowDebugSessionClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,12 +57,13 @@ func NewDataFlowDebugSessionClient(subscriptionID string, credential azcore.Toke // AddDataFlow - Add a data flow into debug session. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// request - Data flow debug session definition with debug content. -// options - DataFlowDebugSessionClientAddDataFlowOptions contains the optional parameters for the DataFlowDebugSessionClient.AddDataFlow -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - request - Data flow debug session definition with debug content. +// - options - DataFlowDebugSessionClientAddDataFlowOptions contains the optional parameters for the DataFlowDebugSessionClient.AddDataFlow +// method. func (client *DataFlowDebugSessionClient) AddDataFlow(ctx context.Context, resourceGroupName string, factoryName string, request DataFlowDebugPackage, options *DataFlowDebugSessionClientAddDataFlowOptions) (DataFlowDebugSessionClientAddDataFlowResponse, error) { req, err := client.addDataFlowCreateRequest(ctx, resourceGroupName, factoryName, request, options) if err != nil { @@ -115,12 +116,13 @@ func (client *DataFlowDebugSessionClient) addDataFlowHandleResponse(resp *http.R // BeginCreate - Creates a data flow debug session. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// request - Data flow debug session definition -// options - DataFlowDebugSessionClientBeginCreateOptions contains the optional parameters for the DataFlowDebugSessionClient.BeginCreate -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - request - Data flow debug session definition +// - options - DataFlowDebugSessionClientBeginCreateOptions contains the optional parameters for the DataFlowDebugSessionClient.BeginCreate +// method. func (client *DataFlowDebugSessionClient) BeginCreate(ctx context.Context, resourceGroupName string, factoryName string, request CreateDataFlowDebugSessionRequest, options *DataFlowDebugSessionClientBeginCreateOptions) (*runtime.Poller[DataFlowDebugSessionClientCreateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.create(ctx, resourceGroupName, factoryName, request, options) @@ -135,6 +137,7 @@ func (client *DataFlowDebugSessionClient) BeginCreate(ctx context.Context, resou // Create - Creates a data flow debug session. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 func (client *DataFlowDebugSessionClient) create(ctx context.Context, resourceGroupName string, factoryName string, request CreateDataFlowDebugSessionRequest, options *DataFlowDebugSessionClientBeginCreateOptions) (*http.Response, error) { req, err := client.createCreateRequest(ctx, resourceGroupName, factoryName, request, options) @@ -179,12 +182,13 @@ func (client *DataFlowDebugSessionClient) createCreateRequest(ctx context.Contex // Delete - Deletes a data flow debug session. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// request - Data flow debug session definition for deletion -// options - DataFlowDebugSessionClientDeleteOptions contains the optional parameters for the DataFlowDebugSessionClient.Delete -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - request - Data flow debug session definition for deletion +// - options - DataFlowDebugSessionClientDeleteOptions contains the optional parameters for the DataFlowDebugSessionClient.Delete +// method. func (client *DataFlowDebugSessionClient) Delete(ctx context.Context, resourceGroupName string, factoryName string, request DeleteDataFlowDebugSessionRequest, options *DataFlowDebugSessionClientDeleteOptions) (DataFlowDebugSessionClientDeleteResponse, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, factoryName, request, options) if err != nil { @@ -228,12 +232,13 @@ func (client *DataFlowDebugSessionClient) deleteCreateRequest(ctx context.Contex // BeginExecuteCommand - Execute a data flow debug command. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// request - Data flow debug command definition. -// options - DataFlowDebugSessionClientBeginExecuteCommandOptions contains the optional parameters for the DataFlowDebugSessionClient.BeginExecuteCommand -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - request - Data flow debug command definition. +// - options - DataFlowDebugSessionClientBeginExecuteCommandOptions contains the optional parameters for the DataFlowDebugSessionClient.BeginExecuteCommand +// method. func (client *DataFlowDebugSessionClient) BeginExecuteCommand(ctx context.Context, resourceGroupName string, factoryName string, request DataFlowDebugCommandRequest, options *DataFlowDebugSessionClientBeginExecuteCommandOptions) (*runtime.Poller[DataFlowDebugSessionClientExecuteCommandResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.executeCommand(ctx, resourceGroupName, factoryName, request, options) @@ -248,6 +253,7 @@ func (client *DataFlowDebugSessionClient) BeginExecuteCommand(ctx context.Contex // ExecuteCommand - Execute a data flow debug command. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 func (client *DataFlowDebugSessionClient) executeCommand(ctx context.Context, resourceGroupName string, factoryName string, request DataFlowDebugCommandRequest, options *DataFlowDebugSessionClientBeginExecuteCommandOptions) (*http.Response, error) { req, err := client.executeCommandCreateRequest(ctx, resourceGroupName, factoryName, request, options) @@ -291,11 +297,12 @@ func (client *DataFlowDebugSessionClient) executeCommandCreateRequest(ctx contex } // NewQueryByFactoryPager - Query all active data flow debug sessions. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// options - DataFlowDebugSessionClientQueryByFactoryOptions contains the optional parameters for the DataFlowDebugSessionClient.QueryByFactory -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - options - DataFlowDebugSessionClientQueryByFactoryOptions contains the optional parameters for the DataFlowDebugSessionClient.NewQueryByFactoryPager +// method. func (client *DataFlowDebugSessionClient) NewQueryByFactoryPager(resourceGroupName string, factoryName string, options *DataFlowDebugSessionClientQueryByFactoryOptions) *runtime.Pager[DataFlowDebugSessionClientQueryByFactoryResponse] { return runtime.NewPager(runtime.PagingHandler[DataFlowDebugSessionClientQueryByFactoryResponse]{ More: func(page DataFlowDebugSessionClientQueryByFactoryResponse) bool { diff --git a/sdk/resourcemanager/datafactory/armdatafactory/dataflowdebugsession_client_example_test.go b/sdk/resourcemanager/datafactory/armdatafactory/dataflowdebugsession_client_example_test.go index 6f19d8338027..6d09bacdeb87 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/dataflowdebugsession_client_example_test.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/dataflowdebugsession_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armdatafactory_test @@ -17,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlowDebugSession_Create.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlowDebugSession_Create.json func ExampleDataFlowDebugSessionClient_BeginCreate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -54,11 +55,16 @@ func ExampleDataFlowDebugSessionClient_BeginCreate() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.CreateDataFlowDebugSessionResponse = armdatafactory.CreateDataFlowDebugSessionResponse{ + // SessionID: to.Ptr("229c688c-944c-44ac-b31a-82d50f347154"), + // Status: to.Ptr("Succeeded"), + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlowDebugSession_QueryByFactory.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlowDebugSession_QueryByFactory.json func ExampleDataFlowDebugSessionClient_NewQueryByFactoryPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -71,18 +77,34 @@ func ExampleDataFlowDebugSessionClient_NewQueryByFactoryPager() { } pager := client.NewQueryByFactoryPager("exampleResourceGroup", "exampleFactoryName", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.QueryDataFlowDebugSessionsResponse = armdatafactory.QueryDataFlowDebugSessionsResponse{ + // Value: []*armdatafactory.DataFlowDebugSessionInfo{ + // { + // AdditionalProperties: map[string]any{ + // "dataflowName": "DebugSession-0a7e0d6e-f2b7-48cc-8cd8-618326f5662f", + // "userObjectId": "0a7e0d6e-f2b7-48cc-8cd8-618326f5662f", + // }, + // ComputeType: to.Ptr("General"), + // CoreCount: to.Ptr[int32](48), + // LastActivityTime: to.Ptr("2019-09-05T18:28:00.9459674+00:00"), + // SessionID: to.Ptr("229c688c-944c-44ac-b31a-82d50f347154"), + // StartTime: to.Ptr("2019-09-05T18:23:20.3257799+00:00"), + // TimeToLiveInMinutes: to.Ptr[int32](60), + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlowDebugSession_AddDataFlow.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlowDebugSession_AddDataFlow.json func ExampleDataFlowDebugSessionClient_AddDataFlow() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -118,12 +140,12 @@ func ExampleDataFlowDebugSessionClient_AddDataFlow() { Name: to.Ptr("dataset1"), Properties: &armdatafactory.DelimitedTextDataset{ Type: to.Ptr("DelimitedText"), - Schema: []interface{}{ - map[string]interface{}{ + Schema: []any{ + map[string]any{ "type": "String", }, }, - Annotations: []interface{}{}, + Annotations: []any{}, LinkedServiceName: &armdatafactory.LinkedServiceReference{ Type: to.Ptr(armdatafactory.LinkedServiceReferenceTypeLinkedServiceReference), ReferenceName: to.Ptr("linkedService5"), @@ -142,15 +164,15 @@ func ExampleDataFlowDebugSessionClient_AddDataFlow() { }, }}, DebugSettings: &armdatafactory.DataFlowDebugPackageDebugSettings{ - DatasetParameters: map[string]interface{}{ - "Movies": map[string]interface{}{ + DatasetParameters: map[string]any{ + "Movies": map[string]any{ "path": "abc", }, - "Output": map[string]interface{}{ + "Output": map[string]any{ "time": "def", }, }, - Parameters: map[string]interface{}{ + Parameters: map[string]any{ "sourcePath": "Toy", }, SourceSettings: []*armdatafactory.DataFlowSourceSetting{ @@ -168,7 +190,7 @@ func ExampleDataFlowDebugSessionClient_AddDataFlow() { Name: to.Ptr("linkedService1"), Properties: &armdatafactory.AzureBlobStorageLinkedService{ Type: to.Ptr("AzureBlobStorage"), - Annotations: []interface{}{}, + Annotations: []any{}, TypeProperties: &armdatafactory.AzureBlobStorageLinkedServiceTypeProperties{ ConnectionString: "DefaultEndpointsProtocol=https;AccountName=;EndpointSuffix=core.windows.net;", EncryptedCredential: to.Ptr(""), @@ -180,11 +202,15 @@ func ExampleDataFlowDebugSessionClient_AddDataFlow() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.AddDataFlowToDebugSessionResponse = armdatafactory.AddDataFlowToDebugSessionResponse{ + // JobVersion: to.Ptr("e5328ee7-c524-4207-8ba4-b709010db33d"), + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlowDebugSession_Delete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlowDebugSession_Delete.json func ExampleDataFlowDebugSessionClient_Delete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -203,7 +229,7 @@ func ExampleDataFlowDebugSessionClient_Delete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlowDebugSession_ExecuteCommand.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlowDebugSession_ExecuteCommand.json func ExampleDataFlowDebugSessionClient_BeginExecuteCommand() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -229,6 +255,11 @@ func ExampleDataFlowDebugSessionClient_BeginExecuteCommand() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.DataFlowDebugCommandResponse = armdatafactory.DataFlowDebugCommandResponse{ + // Data: to.Ptr("some output"), + // Status: to.Ptr("Succeeded"), + // } } diff --git a/sdk/resourcemanager/datafactory/armdatafactory/dataflows_client.go b/sdk/resourcemanager/datafactory/armdatafactory/dataflows_client.go index c6f6f82bf990..bd84dcc01b63 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/dataflows_client.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/dataflows_client.go @@ -32,9 +32,9 @@ type DataFlowsClient struct { } // NewDataFlowsClient creates a new instance of DataFlowsClient with the specified values. -// subscriptionID - The subscription identifier. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The subscription identifier. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewDataFlowsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DataFlowsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,13 +57,14 @@ func NewDataFlowsClient(subscriptionID string, credential azcore.TokenCredential // CreateOrUpdate - Creates or updates a data flow. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// dataFlowName - The data flow name. -// dataFlow - Data flow resource definition. -// options - DataFlowsClientCreateOrUpdateOptions contains the optional parameters for the DataFlowsClient.CreateOrUpdate -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - dataFlowName - The data flow name. +// - dataFlow - Data flow resource definition. +// - options - DataFlowsClientCreateOrUpdateOptions contains the optional parameters for the DataFlowsClient.CreateOrUpdate +// method. func (client *DataFlowsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, factoryName string, dataFlowName string, dataFlow DataFlowResource, options *DataFlowsClientCreateOrUpdateOptions) (DataFlowsClientCreateOrUpdateResponse, error) { req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, factoryName, dataFlowName, dataFlow, options) if err != nil { @@ -123,11 +124,12 @@ func (client *DataFlowsClient) createOrUpdateHandleResponse(resp *http.Response) // Delete - Deletes a data flow. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// dataFlowName - The data flow name. -// options - DataFlowsClientDeleteOptions contains the optional parameters for the DataFlowsClient.Delete method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - dataFlowName - The data flow name. +// - options - DataFlowsClientDeleteOptions contains the optional parameters for the DataFlowsClient.Delete method. func (client *DataFlowsClient) Delete(ctx context.Context, resourceGroupName string, factoryName string, dataFlowName string, options *DataFlowsClientDeleteOptions) (DataFlowsClientDeleteResponse, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, factoryName, dataFlowName, options) if err != nil { @@ -175,11 +177,12 @@ func (client *DataFlowsClient) deleteCreateRequest(ctx context.Context, resource // Get - Gets a data flow. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// dataFlowName - The data flow name. -// options - DataFlowsClientGetOptions contains the optional parameters for the DataFlowsClient.Get method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - dataFlowName - The data flow name. +// - options - DataFlowsClientGetOptions contains the optional parameters for the DataFlowsClient.Get method. func (client *DataFlowsClient) Get(ctx context.Context, resourceGroupName string, factoryName string, dataFlowName string, options *DataFlowsClientGetOptions) (DataFlowsClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, factoryName, dataFlowName, options) if err != nil { @@ -238,10 +241,12 @@ func (client *DataFlowsClient) getHandleResponse(resp *http.Response) (DataFlows } // NewListByFactoryPager - Lists data flows. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// options - DataFlowsClientListByFactoryOptions contains the optional parameters for the DataFlowsClient.ListByFactory method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - options - DataFlowsClientListByFactoryOptions contains the optional parameters for the DataFlowsClient.NewListByFactoryPager +// method. func (client *DataFlowsClient) NewListByFactoryPager(resourceGroupName string, factoryName string, options *DataFlowsClientListByFactoryOptions) *runtime.Pager[DataFlowsClientListByFactoryResponse] { return runtime.NewPager(runtime.PagingHandler[DataFlowsClientListByFactoryResponse]{ More: func(page DataFlowsClientListByFactoryResponse) bool { diff --git a/sdk/resourcemanager/datafactory/armdatafactory/dataflows_client_example_test.go b/sdk/resourcemanager/datafactory/armdatafactory/dataflows_client_example_test.go index 92956646b935..06e6a3497173 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/dataflows_client_example_test.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/dataflows_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armdatafactory_test @@ -17,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlows_Create.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlows_Create.json func ExampleDataFlowsClient_CreateOrUpdate_dataFlowsCreate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -92,11 +93,77 @@ func ExampleDataFlowsClient_CreateOrUpdate_dataFlowsCreate() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.DataFlowResource = armdatafactory.DataFlowResource{ + // Name: to.Ptr("exampleDataFlow"), + // Type: to.Ptr("Microsoft.DataFactory/factories/dataflows"), + // Etag: to.Ptr("0a0066d4-0000-0000-0000-5b245bd20000"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/datasets/exampleDataset"), + // Properties: &armdatafactory.MappingDataFlow{ + // Type: to.Ptr("MappingDataFlow"), + // Description: to.Ptr("Sample demo data flow to convert currencies showing usage of union, derive and conditional split transformation."), + // TypeProperties: &armdatafactory.MappingDataFlowTypeProperties{ + // ScriptLines: []*string{ + // to.Ptr("source(output("), + // to.Ptr("PreviousConversionRate as double,"), + // to.Ptr("Country as string,"), + // to.Ptr("DateTime1 as string,"), + // to.Ptr("CurrentConversionRate as double"), + // to.Ptr("),"), + // to.Ptr("allowSchemaDrift: false,"), + // to.Ptr("validateSchema: false) ~> USDCurrency"), + // to.Ptr("source(output("), + // to.Ptr("PreviousConversionRate as double,"), + // to.Ptr("Country as string,"), + // to.Ptr("DateTime1 as string,"), + // to.Ptr("CurrentConversionRate as double"), + // to.Ptr("),"), + // to.Ptr("allowSchemaDrift: true,"), + // to.Ptr("validateSchema: false) ~> CADSource"), + // to.Ptr("USDCurrency, CADSource union(byName: true)~> Union"), + // to.Ptr("Union derive(NewCurrencyRate = round(CurrentConversionRate*1.25)) ~> NewCurrencyColumn"), + // to.Ptr("NewCurrencyColumn split(Country == 'USD',"), + // to.Ptr("Country == 'CAD',disjoint: false) ~> ConditionalSplit1@(USD, CAD)"), + // to.Ptr("ConditionalSplit1@USD sink(saveMode:'overwrite' ) ~> USDSink"), + // to.Ptr("ConditionalSplit1@CAD sink(saveMode:'overwrite' ) ~> CADSink")}, + // Sinks: []*armdatafactory.DataFlowSink{ + // { + // Name: to.Ptr("USDSink"), + // Dataset: &armdatafactory.DatasetReference{ + // Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), + // ReferenceName: to.Ptr("USDOutput"), + // }, + // }, + // { + // Name: to.Ptr("CADSink"), + // Dataset: &armdatafactory.DatasetReference{ + // Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), + // ReferenceName: to.Ptr("CADOutput"), + // }, + // }}, + // Sources: []*armdatafactory.DataFlowSource{ + // { + // Name: to.Ptr("USDCurrency"), + // Dataset: &armdatafactory.DatasetReference{ + // Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), + // ReferenceName: to.Ptr("CurrencyDatasetUSD"), + // }, + // }, + // { + // Name: to.Ptr("CADSource"), + // Dataset: &armdatafactory.DatasetReference{ + // Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), + // ReferenceName: to.Ptr("CurrencyDatasetCAD"), + // }, + // }}, + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlows_Update.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlows_Update.json func ExampleDataFlowsClient_CreateOrUpdate_dataFlowsUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -171,11 +238,77 @@ func ExampleDataFlowsClient_CreateOrUpdate_dataFlowsUpdate() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.DataFlowResource = armdatafactory.DataFlowResource{ + // Name: to.Ptr("exampleDataFlow"), + // Type: to.Ptr("Microsoft.DataFactory/factories/dataflows"), + // Etag: to.Ptr("0a0068d4-0000-0000-0000-5b245bd30002"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/datasets/exampleDataset"), + // Properties: &armdatafactory.MappingDataFlow{ + // Type: to.Ptr("MappingDataFlow"), + // Description: to.Ptr("Sample demo data flow to convert currencies showing usage of union, derive and conditional split transformation."), + // TypeProperties: &armdatafactory.MappingDataFlowTypeProperties{ + // ScriptLines: []*string{ + // to.Ptr("source(output("), + // to.Ptr("PreviousConversionRate as double,"), + // to.Ptr("Country as string,"), + // to.Ptr("DateTime1 as string,"), + // to.Ptr("CurrentConversionRate as double"), + // to.Ptr("),"), + // to.Ptr("allowSchemaDrift: false,"), + // to.Ptr("validateSchema: false) ~> USDCurrency"), + // to.Ptr("source(output("), + // to.Ptr("PreviousConversionRate as double,"), + // to.Ptr("Country as string,"), + // to.Ptr("DateTime1 as string,"), + // to.Ptr("CurrentConversionRate as double"), + // to.Ptr("),"), + // to.Ptr("allowSchemaDrift: true,"), + // to.Ptr("validateSchema: false) ~> CADSource"), + // to.Ptr("USDCurrency, CADSource union(byName: true)~> Union"), + // to.Ptr("Union derive(NewCurrencyRate = round(CurrentConversionRate*1.25)) ~> NewCurrencyColumn"), + // to.Ptr("NewCurrencyColumn split(Country == 'USD',"), + // to.Ptr("Country == 'CAD',disjoint: false) ~> ConditionalSplit1@(USD, CAD)"), + // to.Ptr("ConditionalSplit1@USD sink(saveMode:'overwrite' ) ~> USDSink"), + // to.Ptr("ConditionalSplit1@CAD sink(saveMode:'overwrite' ) ~> CADSink")}, + // Sinks: []*armdatafactory.DataFlowSink{ + // { + // Name: to.Ptr("USDSink"), + // Dataset: &armdatafactory.DatasetReference{ + // Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), + // ReferenceName: to.Ptr("USDOutput"), + // }, + // }, + // { + // Name: to.Ptr("CADSink"), + // Dataset: &armdatafactory.DatasetReference{ + // Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), + // ReferenceName: to.Ptr("CADOutput"), + // }, + // }}, + // Sources: []*armdatafactory.DataFlowSource{ + // { + // Name: to.Ptr("USDCurrency"), + // Dataset: &armdatafactory.DatasetReference{ + // Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), + // ReferenceName: to.Ptr("CurrencyDatasetUSD"), + // }, + // }, + // { + // Name: to.Ptr("CADSource"), + // Dataset: &armdatafactory.DatasetReference{ + // Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), + // ReferenceName: to.Ptr("CurrencyDatasetCAD"), + // }, + // }}, + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlows_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlows_Get.json func ExampleDataFlowsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -190,11 +323,55 @@ func ExampleDataFlowsClient_Get() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.DataFlowResource = armdatafactory.DataFlowResource{ + // Name: to.Ptr("exampleDataFlow"), + // Type: to.Ptr("Microsoft.DataFactory/factories/dataflows"), + // Etag: to.Ptr("15004c4f-0000-0200-0000-5cbe090e0000"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/dataflows/exampleDataFlow"), + // Properties: &armdatafactory.MappingDataFlow{ + // Type: to.Ptr("MappingDataFlow"), + // Description: to.Ptr("Sample demo data flow to convert currencies showing usage of union, derive and conditional split transformation."), + // TypeProperties: &armdatafactory.MappingDataFlowTypeProperties{ + // Script: to.Ptr("source(output(PreviousConversionRate as double,Country as string,DateTime1 as string,CurrentConversionRate as double),allowSchemaDrift: false,validateSchema: false) ~> USDCurrency\nsource(output(PreviousConversionRate as double,Country as string,DateTime1 as string,CurrentConversionRate as double),allowSchemaDrift: true,validateSchema: false) ~> CADSource\nUSDCurrency, CADSource union(byName: true)~> Union\nUnion derive(NewCurrencyRate = round(CurrentConversionRate*1.25)) ~> NewCurrencyColumn\nNewCurrencyColumn split(Country == 'USD',Country == 'CAD',disjoint: false) ~> ConditionalSplit1@(USD, CAD)\nConditionalSplit1@USD sink(saveMode:'overwrite' ) ~> USDSink\nConditionalSplit1@CAD sink(saveMode:'overwrite' ) ~> CADSink"), + // Sinks: []*armdatafactory.DataFlowSink{ + // { + // Name: to.Ptr("USDSink"), + // Dataset: &armdatafactory.DatasetReference{ + // Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), + // ReferenceName: to.Ptr("USDOutput"), + // }, + // }, + // { + // Name: to.Ptr("CADSink"), + // Dataset: &armdatafactory.DatasetReference{ + // Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), + // ReferenceName: to.Ptr("CADOutput"), + // }, + // }}, + // Sources: []*armdatafactory.DataFlowSource{ + // { + // Name: to.Ptr("USDCurrency"), + // Dataset: &armdatafactory.DatasetReference{ + // Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), + // ReferenceName: to.Ptr("CurrencyDatasetUSD"), + // }, + // }, + // { + // Name: to.Ptr("CADSource"), + // Dataset: &armdatafactory.DatasetReference{ + // Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), + // ReferenceName: to.Ptr("CurrencyDatasetCAD"), + // }, + // }}, + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlows_Delete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlows_Delete.json func ExampleDataFlowsClient_Delete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -211,7 +388,7 @@ func ExampleDataFlowsClient_Delete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlows_ListByFactory.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlows_ListByFactory.json func ExampleDataFlowsClient_NewListByFactoryPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -224,13 +401,60 @@ func ExampleDataFlowsClient_NewListByFactoryPager() { } pager := client.NewListByFactoryPager("exampleResourceGroup", "exampleFactoryName", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.DataFlowListResponse = armdatafactory.DataFlowListResponse{ + // Value: []*armdatafactory.DataFlowResource{ + // { + // Name: to.Ptr("exampleDataFlow"), + // Type: to.Ptr("Microsoft.DataFactory/factories/dataflows"), + // Etag: to.Ptr("0a0068d4-0000-0000-0000-5b245bd30000"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/dataflows/exampleDataFlow"), + // Properties: &armdatafactory.MappingDataFlow{ + // Type: to.Ptr("MappingDataFlow"), + // Description: to.Ptr("Sample demo data flow to convert currencies showing usage of union, derive and conditional split transformation."), + // TypeProperties: &armdatafactory.MappingDataFlowTypeProperties{ + // Script: to.Ptr("source(output(PreviousConversionRate as double,Country as string,DateTime1 as string,CurrentConversionRate as double),allowSchemaDrift: false,validateSchema: false) ~> USDCurrency\nsource(output(PreviousConversionRate as double,Country as string,DateTime1 as string,CurrentConversionRate as double),allowSchemaDrift: true,validateSchema: false) ~> CADSource\nUSDCurrency, CADSource union(byName: true)~> Union\nUnion derive(NewCurrencyRate = round(CurrentConversionRate*1.25)) ~> NewCurrencyColumn\nNewCurrencyColumn split(Country == 'USD',Country == 'CAD',disjoint: false) ~> ConditionalSplit1@(USD, CAD)\nConditionalSplit1@USD sink(saveMode:'overwrite' ) ~> USDSink\nConditionalSplit1@CAD sink(saveMode:'overwrite' ) ~> CADSink"), + // Sinks: []*armdatafactory.DataFlowSink{ + // { + // Name: to.Ptr("USDSink"), + // Dataset: &armdatafactory.DatasetReference{ + // Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), + // ReferenceName: to.Ptr("USDOutput"), + // }, + // }, + // { + // Name: to.Ptr("CADSink"), + // Dataset: &armdatafactory.DatasetReference{ + // Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), + // ReferenceName: to.Ptr("CADOutput"), + // }, + // }}, + // Sources: []*armdatafactory.DataFlowSource{ + // { + // Name: to.Ptr("USDCurrency"), + // Dataset: &armdatafactory.DatasetReference{ + // Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), + // ReferenceName: to.Ptr("CurrencyDatasetUSD"), + // }, + // }, + // { + // Name: to.Ptr("CADSource"), + // Dataset: &armdatafactory.DatasetReference{ + // Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), + // ReferenceName: to.Ptr("CurrencyDatasetCAD"), + // }, + // }}, + // }, + // }, + // }}, + // } } } diff --git a/sdk/resourcemanager/datafactory/armdatafactory/datasets_client.go b/sdk/resourcemanager/datafactory/armdatafactory/datasets_client.go index eef3739fc1af..98ea435ce31f 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/datasets_client.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/datasets_client.go @@ -32,9 +32,9 @@ type DatasetsClient struct { } // NewDatasetsClient creates a new instance of DatasetsClient with the specified values. -// subscriptionID - The subscription identifier. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The subscription identifier. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewDatasetsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DatasetsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,12 +57,13 @@ func NewDatasetsClient(subscriptionID string, credential azcore.TokenCredential, // CreateOrUpdate - Creates or updates a dataset. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// datasetName - The dataset name. -// dataset - Dataset resource definition. -// options - DatasetsClientCreateOrUpdateOptions contains the optional parameters for the DatasetsClient.CreateOrUpdate method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - datasetName - The dataset name. +// - dataset - Dataset resource definition. +// - options - DatasetsClientCreateOrUpdateOptions contains the optional parameters for the DatasetsClient.CreateOrUpdate method. func (client *DatasetsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, factoryName string, datasetName string, dataset DatasetResource, options *DatasetsClientCreateOrUpdateOptions) (DatasetsClientCreateOrUpdateResponse, error) { req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, factoryName, datasetName, dataset, options) if err != nil { @@ -122,11 +123,12 @@ func (client *DatasetsClient) createOrUpdateHandleResponse(resp *http.Response) // Delete - Deletes a dataset. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// datasetName - The dataset name. -// options - DatasetsClientDeleteOptions contains the optional parameters for the DatasetsClient.Delete method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - datasetName - The dataset name. +// - options - DatasetsClientDeleteOptions contains the optional parameters for the DatasetsClient.Delete method. func (client *DatasetsClient) Delete(ctx context.Context, resourceGroupName string, factoryName string, datasetName string, options *DatasetsClientDeleteOptions) (DatasetsClientDeleteResponse, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, factoryName, datasetName, options) if err != nil { @@ -174,11 +176,12 @@ func (client *DatasetsClient) deleteCreateRequest(ctx context.Context, resourceG // Get - Gets a dataset. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// datasetName - The dataset name. -// options - DatasetsClientGetOptions contains the optional parameters for the DatasetsClient.Get method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - datasetName - The dataset name. +// - options - DatasetsClientGetOptions contains the optional parameters for the DatasetsClient.Get method. func (client *DatasetsClient) Get(ctx context.Context, resourceGroupName string, factoryName string, datasetName string, options *DatasetsClientGetOptions) (DatasetsClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, factoryName, datasetName, options) if err != nil { @@ -237,10 +240,12 @@ func (client *DatasetsClient) getHandleResponse(resp *http.Response) (DatasetsCl } // NewListByFactoryPager - Lists datasets. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// options - DatasetsClientListByFactoryOptions contains the optional parameters for the DatasetsClient.ListByFactory method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - options - DatasetsClientListByFactoryOptions contains the optional parameters for the DatasetsClient.NewListByFactoryPager +// method. func (client *DatasetsClient) NewListByFactoryPager(resourceGroupName string, factoryName string, options *DatasetsClientListByFactoryOptions) *runtime.Pager[DatasetsClientListByFactoryResponse] { return runtime.NewPager(runtime.PagingHandler[DatasetsClientListByFactoryResponse]{ More: func(page DatasetsClientListByFactoryResponse) bool { diff --git a/sdk/resourcemanager/datafactory/armdatafactory/datasets_client_example_test.go b/sdk/resourcemanager/datafactory/armdatafactory/datasets_client_example_test.go index a25048bc3175..4d653ef9c209 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/datasets_client_example_test.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/datasets_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armdatafactory_test @@ -17,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_ListByFactory.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_ListByFactory.json func ExampleDatasetsClient_NewListByFactoryPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -30,18 +31,57 @@ func ExampleDatasetsClient_NewListByFactoryPager() { } pager := client.NewListByFactoryPager("exampleResourceGroup", "exampleFactoryName", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.DatasetListResponse = armdatafactory.DatasetListResponse{ + // Value: []*armdatafactory.DatasetResource{ + // { + // Name: to.Ptr("exampleDataset"), + // Type: to.Ptr("Microsoft.DataFactory/factories/datasets"), + // Etag: to.Ptr("0a0068d4-0000-0000-0000-5b245bd30000"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/datasets/exampleDataset"), + // Properties: &armdatafactory.AzureBlobDataset{ + // Type: to.Ptr("AzureBlob"), + // Description: to.Ptr("Example description"), + // LinkedServiceName: &armdatafactory.LinkedServiceReference{ + // Type: to.Ptr(armdatafactory.LinkedServiceReferenceTypeLinkedServiceReference), + // ReferenceName: to.Ptr("exampleLinkedService"), + // }, + // Parameters: map[string]*armdatafactory.ParameterSpecification{ + // "MyFileName": &armdatafactory.ParameterSpecification{ + // Type: to.Ptr(armdatafactory.ParameterTypeString), + // }, + // "MyFolderPath": &armdatafactory.ParameterSpecification{ + // Type: to.Ptr(armdatafactory.ParameterTypeString), + // }, + // }, + // TypeProperties: &armdatafactory.AzureBlobDatasetTypeProperties{ + // Format: &armdatafactory.TextFormat{ + // Type: to.Ptr("TextFormat"), + // }, + // FileName: map[string]any{ + // "type": "Expression", + // "value": "@dataset().MyFileName", + // }, + // FolderPath: map[string]any{ + // "type": "Expression", + // "value": "@dataset().MyFolderPath", + // }, + // }, + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_Create.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_Create.json func ExampleDatasetsClient_CreateOrUpdate_datasetsCreate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -71,11 +111,11 @@ func ExampleDatasetsClient_CreateOrUpdate_datasetsCreate() { Format: &armdatafactory.TextFormat{ Type: to.Ptr("TextFormat"), }, - FileName: map[string]interface{}{ + FileName: map[string]any{ "type": "Expression", "value": "@dataset().MyFileName", }, - FolderPath: map[string]interface{}{ + FolderPath: map[string]any{ "type": "Expression", "value": "@dataset().MyFolderPath", }, @@ -85,11 +125,58 @@ func ExampleDatasetsClient_CreateOrUpdate_datasetsCreate() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.DatasetResource = armdatafactory.DatasetResource{ + // Name: to.Ptr("exampleDataset"), + // Type: to.Ptr("Microsoft.DataFactory/factories/datasets"), + // Etag: to.Ptr("0a0066d4-0000-0000-0000-5b245bd20000"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/datasets/exampleDataset"), + // Properties: &armdatafactory.AzureBlobDataset{ + // Type: to.Ptr("AzureBlob"), + // Schema: []any{ + // map[string]any{ + // "name": "col1", + // "type": "INT_32", + // }, + // map[string]any{ + // "name": "col2", + // "type": "Decimal", + // "precision": "38", + // "scale": "2", + // }, + // }, + // LinkedServiceName: &armdatafactory.LinkedServiceReference{ + // Type: to.Ptr(armdatafactory.LinkedServiceReferenceTypeLinkedServiceReference), + // ReferenceName: to.Ptr("exampleLinkedService"), + // }, + // Parameters: map[string]*armdatafactory.ParameterSpecification{ + // "MyFileName": &armdatafactory.ParameterSpecification{ + // Type: to.Ptr(armdatafactory.ParameterTypeString), + // }, + // "MyFolderPath": &armdatafactory.ParameterSpecification{ + // Type: to.Ptr(armdatafactory.ParameterTypeString), + // }, + // }, + // TypeProperties: &armdatafactory.AzureBlobDatasetTypeProperties{ + // Format: &armdatafactory.TextFormat{ + // Type: to.Ptr("TextFormat"), + // }, + // FileName: map[string]any{ + // "type": "Expression", + // "value": "@dataset().MyFileName", + // }, + // FolderPath: map[string]any{ + // "type": "Expression", + // "value": "@dataset().MyFolderPath", + // }, + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_Update.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_Update.json func ExampleDatasetsClient_CreateOrUpdate_datasetsUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -120,11 +207,11 @@ func ExampleDatasetsClient_CreateOrUpdate_datasetsUpdate() { Format: &armdatafactory.TextFormat{ Type: to.Ptr("TextFormat"), }, - FileName: map[string]interface{}{ + FileName: map[string]any{ "type": "Expression", "value": "@dataset().MyFileName", }, - FolderPath: map[string]interface{}{ + FolderPath: map[string]any{ "type": "Expression", "value": "@dataset().MyFolderPath", }, @@ -134,11 +221,47 @@ func ExampleDatasetsClient_CreateOrUpdate_datasetsUpdate() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.DatasetResource = armdatafactory.DatasetResource{ + // Name: to.Ptr("exampleDataset"), + // Type: to.Ptr("Microsoft.DataFactory/factories/datasets"), + // Etag: to.Ptr("0a0068d4-0000-0000-0000-5b245bd30000"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/datasets/exampleDataset"), + // Properties: &armdatafactory.AzureBlobDataset{ + // Type: to.Ptr("AzureBlob"), + // Description: to.Ptr("Example description"), + // LinkedServiceName: &armdatafactory.LinkedServiceReference{ + // Type: to.Ptr(armdatafactory.LinkedServiceReferenceTypeLinkedServiceReference), + // ReferenceName: to.Ptr("exampleLinkedService"), + // }, + // Parameters: map[string]*armdatafactory.ParameterSpecification{ + // "MyFileName": &armdatafactory.ParameterSpecification{ + // Type: to.Ptr(armdatafactory.ParameterTypeString), + // }, + // "MyFolderPath": &armdatafactory.ParameterSpecification{ + // Type: to.Ptr(armdatafactory.ParameterTypeString), + // }, + // }, + // TypeProperties: &armdatafactory.AzureBlobDatasetTypeProperties{ + // Format: &armdatafactory.TextFormat{ + // Type: to.Ptr("TextFormat"), + // }, + // FileName: map[string]any{ + // "type": "Expression", + // "value": "@dataset().MyFileName", + // }, + // FolderPath: map[string]any{ + // "type": "Expression", + // "value": "@dataset().MyFolderPath", + // }, + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_Get.json func ExampleDatasetsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -153,11 +276,47 @@ func ExampleDatasetsClient_Get() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.DatasetResource = armdatafactory.DatasetResource{ + // Name: to.Ptr("exampleDataset"), + // Type: to.Ptr("Microsoft.DataFactory/factories/datasets"), + // Etag: to.Ptr("15004c4f-0000-0200-0000-5cbe090e0000"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/datasets/exampleDataset"), + // Properties: &armdatafactory.AzureBlobDataset{ + // Type: to.Ptr("AzureBlob"), + // Description: to.Ptr("Example description"), + // LinkedServiceName: &armdatafactory.LinkedServiceReference{ + // Type: to.Ptr(armdatafactory.LinkedServiceReferenceTypeLinkedServiceReference), + // ReferenceName: to.Ptr("exampleLinkedService"), + // }, + // Parameters: map[string]*armdatafactory.ParameterSpecification{ + // "MyFileName": &armdatafactory.ParameterSpecification{ + // Type: to.Ptr(armdatafactory.ParameterTypeString), + // }, + // "MyFolderPath": &armdatafactory.ParameterSpecification{ + // Type: to.Ptr(armdatafactory.ParameterTypeString), + // }, + // }, + // TypeProperties: &armdatafactory.AzureBlobDatasetTypeProperties{ + // Format: &armdatafactory.TextFormat{ + // Type: to.Ptr("TextFormat"), + // }, + // FileName: map[string]any{ + // "type": "Expression", + // "value": "@dataset().MyFileName", + // }, + // FolderPath: map[string]any{ + // "type": "Expression", + // "value": "@dataset().MyFolderPath", + // }, + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_Delete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_Delete.json func ExampleDatasetsClient_Delete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/datafactory/armdatafactory/exposurecontrol_client.go b/sdk/resourcemanager/datafactory/armdatafactory/exposurecontrol_client.go index ac85b4c5374c..fa0db2ca084b 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/exposurecontrol_client.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/exposurecontrol_client.go @@ -32,9 +32,9 @@ type ExposureControlClient struct { } // NewExposureControlClient creates a new instance of ExposureControlClient with the specified values. -// subscriptionID - The subscription identifier. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The subscription identifier. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewExposureControlClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ExposureControlClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,11 +57,12 @@ func NewExposureControlClient(subscriptionID string, credential azcore.TokenCred // GetFeatureValue - Get exposure control feature for specific location. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// locationID - The location identifier. -// exposureControlRequest - The exposure control request. -// options - ExposureControlClientGetFeatureValueOptions contains the optional parameters for the ExposureControlClient.GetFeatureValue -// method. +// - locationID - The location identifier. +// - exposureControlRequest - The exposure control request. +// - options - ExposureControlClientGetFeatureValueOptions contains the optional parameters for the ExposureControlClient.GetFeatureValue +// method. func (client *ExposureControlClient) GetFeatureValue(ctx context.Context, locationID string, exposureControlRequest ExposureControlRequest, options *ExposureControlClientGetFeatureValueOptions) (ExposureControlClientGetFeatureValueResponse, error) { req, err := client.getFeatureValueCreateRequest(ctx, locationID, exposureControlRequest, options) if err != nil { @@ -110,12 +111,13 @@ func (client *ExposureControlClient) getFeatureValueHandleResponse(resp *http.Re // GetFeatureValueByFactory - Get exposure control feature for specific factory. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// exposureControlRequest - The exposure control request. -// options - ExposureControlClientGetFeatureValueByFactoryOptions contains the optional parameters for the ExposureControlClient.GetFeatureValueByFactory -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - exposureControlRequest - The exposure control request. +// - options - ExposureControlClientGetFeatureValueByFactoryOptions contains the optional parameters for the ExposureControlClient.GetFeatureValueByFactory +// method. func (client *ExposureControlClient) GetFeatureValueByFactory(ctx context.Context, resourceGroupName string, factoryName string, exposureControlRequest ExposureControlRequest, options *ExposureControlClientGetFeatureValueByFactoryOptions) (ExposureControlClientGetFeatureValueByFactoryResponse, error) { req, err := client.getFeatureValueByFactoryCreateRequest(ctx, resourceGroupName, factoryName, exposureControlRequest, options) if err != nil { @@ -168,12 +170,13 @@ func (client *ExposureControlClient) getFeatureValueByFactoryHandleResponse(resp // QueryFeatureValuesByFactory - Get list of exposure control features for specific factory. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// exposureControlBatchRequest - The exposure control request for list of features. -// options - ExposureControlClientQueryFeatureValuesByFactoryOptions contains the optional parameters for the ExposureControlClient.QueryFeatureValuesByFactory -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - exposureControlBatchRequest - The exposure control request for list of features. +// - options - ExposureControlClientQueryFeatureValuesByFactoryOptions contains the optional parameters for the ExposureControlClient.QueryFeatureValuesByFactory +// method. func (client *ExposureControlClient) QueryFeatureValuesByFactory(ctx context.Context, resourceGroupName string, factoryName string, exposureControlBatchRequest ExposureControlBatchRequest, options *ExposureControlClientQueryFeatureValuesByFactoryOptions) (ExposureControlClientQueryFeatureValuesByFactoryResponse, error) { req, err := client.queryFeatureValuesByFactoryCreateRequest(ctx, resourceGroupName, factoryName, exposureControlBatchRequest, options) if err != nil { diff --git a/sdk/resourcemanager/datafactory/armdatafactory/exposurecontrol_client_example_test.go b/sdk/resourcemanager/datafactory/armdatafactory/exposurecontrol_client_example_test.go index f09d87c74124..412ab33a2d81 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/exposurecontrol_client_example_test.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/exposurecontrol_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armdatafactory_test @@ -17,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ExposureControl_GetFeatureValue.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ExposureControl_GetFeatureValue.json func ExampleExposureControlClient_GetFeatureValue() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -35,11 +36,16 @@ func ExampleExposureControlClient_GetFeatureValue() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.ExposureControlResponse = armdatafactory.ExposureControlResponse{ + // FeatureName: to.Ptr("ADFIntegrationRuntimeSharingRbac"), + // Value: to.Ptr("False"), + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ExposureControl_GetFeatureValueByFactory.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ExposureControl_GetFeatureValueByFactory.json func ExampleExposureControlClient_GetFeatureValueByFactory() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -57,11 +63,16 @@ func ExampleExposureControlClient_GetFeatureValueByFactory() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.ExposureControlResponse = armdatafactory.ExposureControlResponse{ + // FeatureName: to.Ptr("ADFIntegrationRuntimeSharingRbac"), + // Value: to.Ptr("False"), + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ExposureControl_QueryFeatureValuesByFactory.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ExposureControl_QueryFeatureValuesByFactory.json func ExampleExposureControlClient_QueryFeatureValuesByFactory() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -86,6 +97,18 @@ func ExampleExposureControlClient_QueryFeatureValuesByFactory() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.ExposureControlBatchResponse = armdatafactory.ExposureControlBatchResponse{ + // ExposureControlResponses: []*armdatafactory.ExposureControlResponse{ + // { + // FeatureName: to.Ptr("ADFIntegrationRuntimeSharingRbac"), + // Value: to.Ptr("False"), + // }, + // { + // FeatureName: to.Ptr("ADFSampleFeature"), + // Value: to.Ptr("True"), + // }}, + // } } diff --git a/sdk/resourcemanager/datafactory/armdatafactory/factories_client.go b/sdk/resourcemanager/datafactory/armdatafactory/factories_client.go index 77e6651119f4..12e9f8647354 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/factories_client.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/factories_client.go @@ -32,9 +32,9 @@ type FactoriesClient struct { } // NewFactoriesClient creates a new instance of FactoriesClient with the specified values. -// subscriptionID - The subscription identifier. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The subscription identifier. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewFactoriesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*FactoriesClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,11 +57,12 @@ func NewFactoriesClient(subscriptionID string, credential azcore.TokenCredential // ConfigureFactoryRepo - Updates a factory's repo information. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// locationID - The location identifier. -// factoryRepoUpdate - Update factory repo request definition. -// options - FactoriesClientConfigureFactoryRepoOptions contains the optional parameters for the FactoriesClient.ConfigureFactoryRepo -// method. +// - locationID - The location identifier. +// - factoryRepoUpdate - Update factory repo request definition. +// - options - FactoriesClientConfigureFactoryRepoOptions contains the optional parameters for the FactoriesClient.ConfigureFactoryRepo +// method. func (client *FactoriesClient) ConfigureFactoryRepo(ctx context.Context, locationID string, factoryRepoUpdate FactoryRepoUpdate, options *FactoriesClientConfigureFactoryRepoOptions) (FactoriesClientConfigureFactoryRepoResponse, error) { req, err := client.configureFactoryRepoCreateRequest(ctx, locationID, factoryRepoUpdate, options) if err != nil { @@ -110,12 +111,13 @@ func (client *FactoriesClient) configureFactoryRepoHandleResponse(resp *http.Res // CreateOrUpdate - Creates or updates a factory. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// factory - Factory resource definition. -// options - FactoriesClientCreateOrUpdateOptions contains the optional parameters for the FactoriesClient.CreateOrUpdate -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - factory - Factory resource definition. +// - options - FactoriesClientCreateOrUpdateOptions contains the optional parameters for the FactoriesClient.CreateOrUpdate +// method. func (client *FactoriesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, factoryName string, factory Factory, options *FactoriesClientCreateOrUpdateOptions) (FactoriesClientCreateOrUpdateResponse, error) { req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, factoryName, factory, options) if err != nil { @@ -171,10 +173,11 @@ func (client *FactoriesClient) createOrUpdateHandleResponse(resp *http.Response) // Delete - Deletes a factory. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// options - FactoriesClientDeleteOptions contains the optional parameters for the FactoriesClient.Delete method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - options - FactoriesClientDeleteOptions contains the optional parameters for the FactoriesClient.Delete method. func (client *FactoriesClient) Delete(ctx context.Context, resourceGroupName string, factoryName string, options *FactoriesClientDeleteOptions) (FactoriesClientDeleteResponse, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, factoryName, options) if err != nil { @@ -218,10 +221,11 @@ func (client *FactoriesClient) deleteCreateRequest(ctx context.Context, resource // Get - Gets a factory. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// options - FactoriesClientGetOptions contains the optional parameters for the FactoriesClient.Get method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - options - FactoriesClientGetOptions contains the optional parameters for the FactoriesClient.Get method. func (client *FactoriesClient) Get(ctx context.Context, resourceGroupName string, factoryName string, options *FactoriesClientGetOptions) (FactoriesClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, factoryName, options) if err != nil { @@ -277,12 +281,13 @@ func (client *FactoriesClient) getHandleResponse(resp *http.Response) (Factories // GetDataPlaneAccess - Get Data Plane access. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// policy - Data Plane user access policy definition. -// options - FactoriesClientGetDataPlaneAccessOptions contains the optional parameters for the FactoriesClient.GetDataPlaneAccess -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - policy - Data Plane user access policy definition. +// - options - FactoriesClientGetDataPlaneAccessOptions contains the optional parameters for the FactoriesClient.GetDataPlaneAccess +// method. func (client *FactoriesClient) GetDataPlaneAccess(ctx context.Context, resourceGroupName string, factoryName string, policy UserAccessPolicy, options *FactoriesClientGetDataPlaneAccessOptions) (FactoriesClientGetDataPlaneAccessResponse, error) { req, err := client.getDataPlaneAccessCreateRequest(ctx, resourceGroupName, factoryName, policy, options) if err != nil { @@ -335,12 +340,13 @@ func (client *FactoriesClient) getDataPlaneAccessHandleResponse(resp *http.Respo // GetGitHubAccessToken - Get GitHub Access Token. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// gitHubAccessTokenRequest - Get GitHub access token request definition. -// options - FactoriesClientGetGitHubAccessTokenOptions contains the optional parameters for the FactoriesClient.GetGitHubAccessToken -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - gitHubAccessTokenRequest - Get GitHub access token request definition. +// - options - FactoriesClientGetGitHubAccessTokenOptions contains the optional parameters for the FactoriesClient.GetGitHubAccessToken +// method. func (client *FactoriesClient) GetGitHubAccessToken(ctx context.Context, resourceGroupName string, factoryName string, gitHubAccessTokenRequest GitHubAccessTokenRequest, options *FactoriesClientGetGitHubAccessTokenOptions) (FactoriesClientGetGitHubAccessTokenResponse, error) { req, err := client.getGitHubAccessTokenCreateRequest(ctx, resourceGroupName, factoryName, gitHubAccessTokenRequest, options) if err != nil { @@ -392,8 +398,9 @@ func (client *FactoriesClient) getGitHubAccessTokenHandleResponse(resp *http.Res } // NewListPager - Lists factories under the specified subscription. +// // Generated from API version 2018-06-01 -// options - FactoriesClientListOptions contains the optional parameters for the FactoriesClient.List method. +// - options - FactoriesClientListOptions contains the optional parameters for the FactoriesClient.NewListPager method. func (client *FactoriesClient) NewListPager(options *FactoriesClientListOptions) *runtime.Pager[FactoriesClientListResponse] { return runtime.NewPager(runtime.PagingHandler[FactoriesClientListResponse]{ More: func(page FactoriesClientListResponse) bool { @@ -450,10 +457,11 @@ func (client *FactoriesClient) listHandleResponse(resp *http.Response) (Factorie } // NewListByResourceGroupPager - Lists factories. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// options - FactoriesClientListByResourceGroupOptions contains the optional parameters for the FactoriesClient.ListByResourceGroup -// method. +// - resourceGroupName - The resource group name. +// - options - FactoriesClientListByResourceGroupOptions contains the optional parameters for the FactoriesClient.NewListByResourceGroupPager +// method. func (client *FactoriesClient) NewListByResourceGroupPager(resourceGroupName string, options *FactoriesClientListByResourceGroupOptions) *runtime.Pager[FactoriesClientListByResourceGroupResponse] { return runtime.NewPager(runtime.PagingHandler[FactoriesClientListByResourceGroupResponse]{ More: func(page FactoriesClientListByResourceGroupResponse) bool { @@ -515,11 +523,12 @@ func (client *FactoriesClient) listByResourceGroupHandleResponse(resp *http.Resp // Update - Updates a factory. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// factoryUpdateParameters - The parameters for updating a factory. -// options - FactoriesClientUpdateOptions contains the optional parameters for the FactoriesClient.Update method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - factoryUpdateParameters - The parameters for updating a factory. +// - options - FactoriesClientUpdateOptions contains the optional parameters for the FactoriesClient.Update method. func (client *FactoriesClient) Update(ctx context.Context, resourceGroupName string, factoryName string, factoryUpdateParameters FactoryUpdateParameters, options *FactoriesClientUpdateOptions) (FactoriesClientUpdateResponse, error) { req, err := client.updateCreateRequest(ctx, resourceGroupName, factoryName, factoryUpdateParameters, options) if err != nil { diff --git a/sdk/resourcemanager/datafactory/armdatafactory/factories_client_example_test.go b/sdk/resourcemanager/datafactory/armdatafactory/factories_client_example_test.go index e76e05c41b8c..b2e81ee120b5 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/factories_client_example_test.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/factories_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armdatafactory_test @@ -17,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_List.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_List.json func ExampleFactoriesClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -30,18 +31,220 @@ func ExampleFactoriesClient_NewListPager() { } pager := client.NewListPager(nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.FactoryListResponse = armdatafactory.FactoryListResponse{ + // Value: []*armdatafactory.Factory{ + // { + // Name: to.Ptr("rpV2OrigDF-72c7d3d4-5e17-4ec6-91de-9ab433f15e79"), + // Type: to.Ptr("Microsoft.DataFactory/factories"), + // ETag: to.Ptr("\"0000aa0d-0000-0000-0000-5b0d58170000\""), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/rg-yanzhang-dfv2/providers/Microsoft.DataFactory/factories/rpv2origdf-72c7d3d4-5e17-4ec6-91de-9ab433f15e79"), + // Location: to.Ptr("East US"), + // Tags: map[string]*string{ + // }, + // Identity: &armdatafactory.FactoryIdentity{ + // Type: to.Ptr(armdatafactory.FactoryIdentityTypeSystemAssigned), + // PrincipalID: to.Ptr("399c3de2-6072-4326-bfa9-4d0c116f1a7b"), + // TenantID: to.Ptr("12345678-1234-1234-1234-123456789abc"), + // }, + // Properties: &armdatafactory.FactoryProperties{ + // CreateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-05-29T13:39:35.615921Z"); return t}()), + // ProvisioningState: to.Ptr("Succeeded"), + // Version: to.Ptr("2017-09-01-preview"), + // }, + // }, + // { + // Name: to.Ptr("df-dogfood-yanzhang-we"), + // Type: to.Ptr("Microsoft.DataFactory/factories"), + // ETag: to.Ptr("\"0000f301-0000-0000-0000-5b21b16c0000\""), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/rg-yanzhang-dfv2/providers/Microsoft.DataFactory/factories/df-dogfood-yanzhang-we"), + // Location: to.Ptr("West Europe"), + // Tags: map[string]*string{ + // }, + // Identity: &armdatafactory.FactoryIdentity{ + // Type: to.Ptr(armdatafactory.FactoryIdentityTypeSystemAssigned), + // PrincipalID: to.Ptr("e8dd6df9-bad5-4dea-8fb8-0d13d1845d9e"), + // TenantID: to.Ptr("12345678-1234-1234-1234-123456789abc"), + // }, + // Properties: &armdatafactory.FactoryProperties{ + // CreateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-14T00:06:04.6667461Z"); return t}()), + // ProvisioningState: to.Ptr("Succeeded"), + // Version: to.Ptr("2017-09-01-preview"), + // }, + // }, + // { + // Name: to.Ptr("exampleFactoryName-linked"), + // Type: to.Ptr("Microsoft.DataFactory/factories"), + // ETag: to.Ptr("\"00008a02-0000-0000-0000-5b237f270000\""), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName-linked"), + // Location: to.Ptr("East US"), + // Tags: map[string]*string{ + // }, + // Identity: &armdatafactory.FactoryIdentity{ + // Type: to.Ptr(armdatafactory.FactoryIdentityTypeSystemAssigned), + // PrincipalID: to.Ptr("10743799-44d2-42fe-8c4d-5bc5c51c0684"), + // TenantID: to.Ptr("12345678-1234-1234-1234-123456789abc"), + // }, + // Properties: &armdatafactory.FactoryProperties{ + // CreateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-15T08:56:07.1828318Z"); return t}()), + // ProvisioningState: to.Ptr("Succeeded"), + // Version: to.Ptr("2017-09-01-preview"), + // }, + // }, + // { + // Name: to.Ptr("FactoryToUpgrade"), + // Type: to.Ptr("Microsoft.DataFactory/factories"), + // ETag: to.Ptr("\"00003d04-0000-0000-0000-5b28962f0000\""), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/factorytoupgrade"), + // Location: to.Ptr("East US"), + // Tags: map[string]*string{ + // }, + // Properties: &armdatafactory.FactoryProperties{ + // CreateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-19T05:35:35.7133828Z"); return t}()), + // ProvisioningState: to.Ptr("Succeeded"), + // Version: to.Ptr("2018-06-01"), + // }, + // }, + // { + // Name: to.Ptr("exampleFactoryName"), + // Type: to.Ptr("Microsoft.DataFactory/factories"), + // ETag: to.Ptr("\"00004004-0000-0000-0000-5b28979e0000\""), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName"), + // Location: to.Ptr("East US"), + // Tags: map[string]*string{ + // "exampleTag": to.Ptr("exampleValue"), + // }, + // Properties: &armdatafactory.FactoryProperties{ + // CreateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-19T05:41:50.0041314Z"); return t}()), + // ProvisioningState: to.Ptr("Succeeded"), + // PurviewConfiguration: &armdatafactory.PurviewConfiguration{ + // PurviewResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.Purview/accounts/examplePurview"), + // }, + // RepoConfiguration: &armdatafactory.FactoryVSTSConfiguration{ + // Type: to.Ptr("FactoryVSTSConfiguration"), + // AccountName: to.Ptr("ADF"), + // CollaborationBranch: to.Ptr("master"), + // LastCommitID: to.Ptr(""), + // RepositoryName: to.Ptr("repo"), + // RootFolder: to.Ptr("/"), + // ProjectName: to.Ptr("project"), + // TenantID: to.Ptr(""), + // }, + // Version: to.Ptr("2018-06-01"), + // }, + // }, + // { + // Name: to.Ptr("rpV2OrigDF-72c7d3d4-5e17-4ec6-91de-9ab433f15e79"), + // Type: to.Ptr("Microsoft.DataFactory/factories"), + // ETag: to.Ptr("\"0000aa0d-0000-0000-0000-5b0d58170000\""), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/rg-yanzhang-dfv2/providers/Microsoft.DataFactory/factories/rpv2origdf-72c7d3d4-5e17-4ec6-91de-9ab433f15e79"), + // Location: to.Ptr("East US"), + // Tags: map[string]*string{ + // }, + // Identity: &armdatafactory.FactoryIdentity{ + // Type: to.Ptr(armdatafactory.FactoryIdentityTypeSystemAssigned), + // PrincipalID: to.Ptr("399c3de2-6072-4326-bfa9-4d0c116f1a7b"), + // TenantID: to.Ptr("12345678-1234-1234-1234-123456789abc"), + // }, + // Properties: &armdatafactory.FactoryProperties{ + // CreateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-05-29T13:39:35.615921Z"); return t}()), + // ProvisioningState: to.Ptr("Succeeded"), + // Version: to.Ptr("2017-09-01-preview"), + // }, + // }, + // { + // Name: to.Ptr("df-dogfood-yanzhang-we"), + // Type: to.Ptr("Microsoft.DataFactory/factories"), + // ETag: to.Ptr("\"0000f301-0000-0000-0000-5b21b16c0000\""), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/rg-yanzhang-dfv2/providers/Microsoft.DataFactory/factories/df-dogfood-yanzhang-we"), + // Location: to.Ptr("West Europe"), + // Tags: map[string]*string{ + // }, + // Identity: &armdatafactory.FactoryIdentity{ + // Type: to.Ptr(armdatafactory.FactoryIdentityTypeSystemAssigned), + // PrincipalID: to.Ptr("e8dd6df9-bad5-4dea-8fb8-0d13d1845d9e"), + // TenantID: to.Ptr("12345678-1234-1234-1234-123456789abc"), + // }, + // Properties: &armdatafactory.FactoryProperties{ + // CreateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-14T00:06:04.6667461Z"); return t}()), + // ProvisioningState: to.Ptr("Succeeded"), + // Version: to.Ptr("2017-09-01-preview"), + // }, + // }, + // { + // Name: to.Ptr("exampleFactoryName-linked"), + // Type: to.Ptr("Microsoft.DataFactory/factories"), + // ETag: to.Ptr("\"00008a02-0000-0000-0000-5b237f270000\""), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName-linked"), + // Location: to.Ptr("East US"), + // Tags: map[string]*string{ + // }, + // Identity: &armdatafactory.FactoryIdentity{ + // Type: to.Ptr(armdatafactory.FactoryIdentityTypeSystemAssigned), + // PrincipalID: to.Ptr("10743799-44d2-42fe-8c4d-5bc5c51c0684"), + // TenantID: to.Ptr("12345678-1234-1234-1234-123456789abc"), + // }, + // Properties: &armdatafactory.FactoryProperties{ + // CreateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-15T08:56:07.1828318Z"); return t}()), + // ProvisioningState: to.Ptr("Succeeded"), + // Version: to.Ptr("2017-09-01-preview"), + // }, + // }, + // { + // Name: to.Ptr("FactoryToUpgrade"), + // Type: to.Ptr("Microsoft.DataFactory/factories"), + // ETag: to.Ptr("\"00003d04-0000-0000-0000-5b28962f0000\""), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/factorytoupgrade"), + // Location: to.Ptr("East US"), + // Tags: map[string]*string{ + // }, + // Properties: &armdatafactory.FactoryProperties{ + // CreateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-19T05:35:35.7133828Z"); return t}()), + // ProvisioningState: to.Ptr("Succeeded"), + // Version: to.Ptr("2018-06-01"), + // }, + // }, + // { + // Name: to.Ptr("exampleFactoryName"), + // Type: to.Ptr("Microsoft.DataFactory/factories"), + // ETag: to.Ptr("\"00004004-0000-0000-0000-5b28979e0000\""), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName"), + // Location: to.Ptr("East US"), + // Tags: map[string]*string{ + // "exampleTag": to.Ptr("exampleValue"), + // }, + // Properties: &armdatafactory.FactoryProperties{ + // CreateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-19T05:41:50.0041314Z"); return t}()), + // ProvisioningState: to.Ptr("Succeeded"), + // PurviewConfiguration: &armdatafactory.PurviewConfiguration{ + // PurviewResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.Purview/accounts/examplePurview"), + // }, + // RepoConfiguration: &armdatafactory.FactoryVSTSConfiguration{ + // Type: to.Ptr("FactoryVSTSConfiguration"), + // AccountName: to.Ptr("ADF"), + // CollaborationBranch: to.Ptr("master"), + // LastCommitID: to.Ptr(""), + // RepositoryName: to.Ptr("repo"), + // RootFolder: to.Ptr("/"), + // ProjectName: to.Ptr("project"), + // TenantID: to.Ptr(""), + // }, + // Version: to.Ptr("2018-06-01"), + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_ConfigureFactoryRepo.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_ConfigureFactoryRepo.json func ExampleFactoriesClient_ConfigureFactoryRepo() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -68,11 +271,37 @@ func ExampleFactoriesClient_ConfigureFactoryRepo() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.Factory = armdatafactory.Factory{ + // Name: to.Ptr("exampleFactoryName"), + // Type: to.Ptr("Microsoft.DataFactory/factories"), + // ETag: to.Ptr("\"00004004-0000-0000-0000-5b28979e0000\""), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName"), + // Location: to.Ptr("East US"), + // Tags: map[string]*string{ + // "exampleTag": to.Ptr("exampleValue"), + // }, + // Properties: &armdatafactory.FactoryProperties{ + // CreateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-19T05:41:50.0041314Z"); return t}()), + // ProvisioningState: to.Ptr("Succeeded"), + // RepoConfiguration: &armdatafactory.FactoryVSTSConfiguration{ + // Type: to.Ptr("FactoryVSTSConfiguration"), + // AccountName: to.Ptr("ADF"), + // CollaborationBranch: to.Ptr("master"), + // LastCommitID: to.Ptr(""), + // RepositoryName: to.Ptr("repo"), + // RootFolder: to.Ptr("/"), + // ProjectName: to.Ptr("project"), + // TenantID: to.Ptr(""), + // }, + // Version: to.Ptr("2018-06-01"), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_ListByResourceGroup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_ListByResourceGroup.json func ExampleFactoriesClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -85,18 +314,80 @@ func ExampleFactoriesClient_NewListByResourceGroupPager() { } pager := client.NewListByResourceGroupPager("exampleResourceGroup", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.FactoryListResponse = armdatafactory.FactoryListResponse{ + // Value: []*armdatafactory.Factory{ + // { + // Name: to.Ptr("exampleFactoryName-linked"), + // Type: to.Ptr("Microsoft.DataFactory/factories"), + // ETag: to.Ptr("\"00008a02-0000-0000-0000-5b237f270000\""), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName-linked"), + // Location: to.Ptr("East US"), + // Tags: map[string]*string{ + // }, + // Identity: &armdatafactory.FactoryIdentity{ + // Type: to.Ptr(armdatafactory.FactoryIdentityTypeSystemAssigned), + // PrincipalID: to.Ptr("10743799-44d2-42fe-8c4d-5bc5c51c0684"), + // TenantID: to.Ptr("12345678-1234-1234-1234-123456789abc"), + // }, + // Properties: &armdatafactory.FactoryProperties{ + // CreateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-15T08:56:07.1828318Z"); return t}()), + // ProvisioningState: to.Ptr("Succeeded"), + // Version: to.Ptr("2017-09-01-preview"), + // }, + // }, + // { + // Name: to.Ptr("FactoryToUpgrade"), + // Type: to.Ptr("Microsoft.DataFactory/factories"), + // ETag: to.Ptr("\"00003d04-0000-0000-0000-5b28962f0000\""), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/factorytoupgrade"), + // Location: to.Ptr("East US"), + // Tags: map[string]*string{ + // }, + // Properties: &armdatafactory.FactoryProperties{ + // CreateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-19T05:35:35.7133828Z"); return t}()), + // ProvisioningState: to.Ptr("Succeeded"), + // Version: to.Ptr("2018-06-01"), + // }, + // }, + // { + // Name: to.Ptr("exampleFactoryName"), + // Type: to.Ptr("Microsoft.DataFactory/factories"), + // ETag: to.Ptr("\"00004004-0000-0000-0000-5b28979e0000\""), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName"), + // Location: to.Ptr("East US"), + // Tags: map[string]*string{ + // "exampleTag": to.Ptr("exampleValue"), + // }, + // Properties: &armdatafactory.FactoryProperties{ + // CreateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-19T05:41:50.0041314Z"); return t}()), + // ProvisioningState: to.Ptr("Succeeded"), + // RepoConfiguration: &armdatafactory.FactoryVSTSConfiguration{ + // Type: to.Ptr("FactoryVSTSConfiguration"), + // AccountName: to.Ptr("ADF"), + // CollaborationBranch: to.Ptr("master"), + // LastCommitID: to.Ptr(""), + // RepositoryName: to.Ptr("repo"), + // RootFolder: to.Ptr("/"), + // ProjectName: to.Ptr("project"), + // TenantID: to.Ptr(""), + // }, + // Version: to.Ptr("2018-06-01"), + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_CreateOrUpdate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_CreateOrUpdate.json func ExampleFactoriesClient_CreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -113,11 +404,26 @@ func ExampleFactoriesClient_CreateOrUpdate() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.Factory = armdatafactory.Factory{ + // Name: to.Ptr("exampleFactoryName"), + // Type: to.Ptr("Microsoft.DataFactory/factories"), + // ETag: to.Ptr("\"00003e04-0000-0000-0000-5b28979e0000\""), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName"), + // Location: to.Ptr("East US"), + // Tags: map[string]*string{ + // }, + // Properties: &armdatafactory.FactoryProperties{ + // CreateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-19T05:41:50.0041314Z"); return t}()), + // ProvisioningState: to.Ptr("Succeeded"), + // Version: to.Ptr("2018-06-01"), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_Update.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_Update.json func ExampleFactoriesClient_Update() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -136,11 +442,27 @@ func ExampleFactoriesClient_Update() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.Factory = armdatafactory.Factory{ + // Name: to.Ptr("exampleFactoryName"), + // Type: to.Ptr("Microsoft.DataFactory/factories"), + // ETag: to.Ptr("\"00003f04-0000-0000-0000-5b28979e0000\""), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName"), + // Location: to.Ptr("East US"), + // Tags: map[string]*string{ + // "exampleTag": to.Ptr("exampleValue"), + // }, + // Properties: &armdatafactory.FactoryProperties{ + // CreateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-19T05:41:50.0041314Z"); return t}()), + // ProvisioningState: to.Ptr("Succeeded"), + // Version: to.Ptr("2018-06-01"), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_Get.json func ExampleFactoriesClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -155,11 +477,40 @@ func ExampleFactoriesClient_Get() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.Factory = armdatafactory.Factory{ + // Name: to.Ptr("exampleFactoryName"), + // Type: to.Ptr("Microsoft.DataFactory/factories"), + // ETag: to.Ptr("\"00004004-0000-0000-0000-5b28979e0000\""), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName"), + // Location: to.Ptr("East US"), + // Tags: map[string]*string{ + // "exampleTag": to.Ptr("exampleValue"), + // }, + // Properties: &armdatafactory.FactoryProperties{ + // CreateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-19T05:41:50.0041314Z"); return t}()), + // ProvisioningState: to.Ptr("Succeeded"), + // PurviewConfiguration: &armdatafactory.PurviewConfiguration{ + // PurviewResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.Purview/accounts/examplePurview"), + // }, + // RepoConfiguration: &armdatafactory.FactoryVSTSConfiguration{ + // Type: to.Ptr("FactoryVSTSConfiguration"), + // AccountName: to.Ptr("ADF"), + // CollaborationBranch: to.Ptr("master"), + // LastCommitID: to.Ptr(""), + // RepositoryName: to.Ptr("repo"), + // RootFolder: to.Ptr("/"), + // ProjectName: to.Ptr("project"), + // TenantID: to.Ptr(""), + // }, + // Version: to.Ptr("2018-06-01"), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_Delete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_Delete.json func ExampleFactoriesClient_Delete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -176,7 +527,7 @@ func ExampleFactoriesClient_Delete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_GetGitHubAccessToken.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_GetGitHubAccessToken.json func ExampleFactoriesClient_GetGitHubAccessToken() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -195,11 +546,15 @@ func ExampleFactoriesClient_GetGitHubAccessToken() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.GitHubAccessTokenResponse = armdatafactory.GitHubAccessTokenResponse{ + // GitHubAccessToken: to.Ptr("myAccessTokenExample"), + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_GetDataPlaneAccess.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_GetDataPlaneAccess.json func ExampleFactoriesClient_GetDataPlaneAccess() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -220,6 +575,18 @@ func ExampleFactoriesClient_GetDataPlaneAccess() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.AccessPolicyResponse = armdatafactory.AccessPolicyResponse{ + // AccessToken: to.Ptr("**********"), + // DataPlaneURL: to.Ptr("https://rpeastus.svc.datafactory.azure.com:4433"), + // Policy: &armdatafactory.UserAccessPolicy{ + // AccessResourcePath: to.Ptr(""), + // ExpireTime: to.Ptr("2018-11-10T09:46:20.2659347Z"), + // Permissions: to.Ptr("r"), + // ProfileName: to.Ptr("DefaultProfile"), + // StartTime: to.Ptr("2018-11-10T02:46:20.2659347Z"), + // }, + // } } diff --git a/sdk/resourcemanager/datafactory/armdatafactory/globalparameters_client.go b/sdk/resourcemanager/datafactory/armdatafactory/globalparameters_client.go index 74dc9d800d77..ac10dca115e0 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/globalparameters_client.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/globalparameters_client.go @@ -32,9 +32,9 @@ type GlobalParametersClient struct { } // NewGlobalParametersClient creates a new instance of GlobalParametersClient with the specified values. -// subscriptionID - The subscription identifier. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The subscription identifier. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewGlobalParametersClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*GlobalParametersClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,13 +57,14 @@ func NewGlobalParametersClient(subscriptionID string, credential azcore.TokenCre // CreateOrUpdate - Creates or updates a Global parameter // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// globalParameterName - The global parameter name. -// defaultParam - Global parameter resource definition. -// options - GlobalParametersClientCreateOrUpdateOptions contains the optional parameters for the GlobalParametersClient.CreateOrUpdate -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - globalParameterName - The global parameter name. +// - defaultParam - Global parameter resource definition. +// - options - GlobalParametersClientCreateOrUpdateOptions contains the optional parameters for the GlobalParametersClient.CreateOrUpdate +// method. func (client *GlobalParametersClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, factoryName string, globalParameterName string, defaultParam GlobalParameterResource, options *GlobalParametersClientCreateOrUpdateOptions) (GlobalParametersClientCreateOrUpdateResponse, error) { req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, factoryName, globalParameterName, defaultParam, options) if err != nil { @@ -120,11 +121,12 @@ func (client *GlobalParametersClient) createOrUpdateHandleResponse(resp *http.Re // Delete - Deletes a Global parameter // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// globalParameterName - The global parameter name. -// options - GlobalParametersClientDeleteOptions contains the optional parameters for the GlobalParametersClient.Delete method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - globalParameterName - The global parameter name. +// - options - GlobalParametersClientDeleteOptions contains the optional parameters for the GlobalParametersClient.Delete method. func (client *GlobalParametersClient) Delete(ctx context.Context, resourceGroupName string, factoryName string, globalParameterName string, options *GlobalParametersClientDeleteOptions) (GlobalParametersClientDeleteResponse, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, factoryName, globalParameterName, options) if err != nil { @@ -172,11 +174,12 @@ func (client *GlobalParametersClient) deleteCreateRequest(ctx context.Context, r // Get - Gets a Global parameter // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// globalParameterName - The global parameter name. -// options - GlobalParametersClientGetOptions contains the optional parameters for the GlobalParametersClient.Get method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - globalParameterName - The global parameter name. +// - options - GlobalParametersClientGetOptions contains the optional parameters for the GlobalParametersClient.Get method. func (client *GlobalParametersClient) Get(ctx context.Context, resourceGroupName string, factoryName string, globalParameterName string, options *GlobalParametersClientGetOptions) (GlobalParametersClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, factoryName, globalParameterName, options) if err != nil { @@ -232,11 +235,12 @@ func (client *GlobalParametersClient) getHandleResponse(resp *http.Response) (Gl } // NewListByFactoryPager - Lists Global parameters +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// options - GlobalParametersClientListByFactoryOptions contains the optional parameters for the GlobalParametersClient.ListByFactory -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - options - GlobalParametersClientListByFactoryOptions contains the optional parameters for the GlobalParametersClient.NewListByFactoryPager +// method. func (client *GlobalParametersClient) NewListByFactoryPager(resourceGroupName string, factoryName string, options *GlobalParametersClientListByFactoryOptions) *runtime.Pager[GlobalParametersClientListByFactoryResponse] { return runtime.NewPager(runtime.PagingHandler[GlobalParametersClientListByFactoryResponse]{ More: func(page GlobalParametersClientListByFactoryResponse) bool { diff --git a/sdk/resourcemanager/datafactory/armdatafactory/globalparameters_client_example_test.go b/sdk/resourcemanager/datafactory/armdatafactory/globalparameters_client_example_test.go index b633dd4b8d79..1c91a2018b5c 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/globalparameters_client_example_test.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/globalparameters_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armdatafactory_test @@ -17,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GlobalParameters_ListByFactory.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GlobalParameters_ListByFactory.json func ExampleGlobalParametersClient_NewListByFactoryPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -30,18 +31,57 @@ func ExampleGlobalParametersClient_NewListByFactoryPager() { } pager := client.NewListByFactoryPager("exampleResourceGroup", "exampleFactoryName", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.GlobalParameterListResponse = armdatafactory.GlobalParameterListResponse{ + // Value: []*armdatafactory.GlobalParameterResource{ + // { + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.DataFactory/factories/globalParameters"), + // Etag: to.Ptr("da00a1c3-0000-0400-0000-6241f3290000"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/globalParameters/default"), + // Properties: map[string]*armdatafactory.GlobalParameterSpecification{ + // "copyPipelineTest": &armdatafactory.GlobalParameterSpecification{ + // Type: to.Ptr(armdatafactory.GlobalParameterTypeObject), + // Value: map[string]any{ + // "mySinkDatasetFolderPath": "exampleOutput", + // "mySourceDatasetFolderPath": "exampleInput/", + // "testingEmptyContextParams": "", + // }, + // }, + // "mySourceDatasetFolderPath": &armdatafactory.GlobalParameterSpecification{ + // Type: to.Ptr(armdatafactory.GlobalParameterTypeString), + // Value: "input", + // }, + // "url": &armdatafactory.GlobalParameterSpecification{ + // Type: to.Ptr(armdatafactory.GlobalParameterTypeString), + // Value: "https://testuri.test", + // }, + // "validADFOffice365Uris": &armdatafactory.GlobalParameterSpecification{ + // Type: to.Ptr(armdatafactory.GlobalParameterTypeArray), + // Value: []any{ + // "https://testuri.test", + // "https://testuri.test", + // }, + // }, + // "waitTime": &armdatafactory.GlobalParameterSpecification{ + // Type: to.Ptr(armdatafactory.GlobalParameterTypeInt), + // Value: float64(5), + // }, + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GlobalParameters_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GlobalParameters_Get.json func ExampleGlobalParametersClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -56,11 +96,24 @@ func ExampleGlobalParametersClient_Get() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.GlobalParameterResource = armdatafactory.GlobalParameterResource{ + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.DataFactory/factories/globalParameters"), + // Etag: to.Ptr("72001a6a-0000-0400-0000-623d058f0000"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/globalParameters/default"), + // Properties: map[string]*armdatafactory.GlobalParameterSpecification{ + // "waitTime": &armdatafactory.GlobalParameterSpecification{ + // Type: to.Ptr(armdatafactory.GlobalParameterTypeInt), + // Value: float64(10), + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GlobalParameters_Create.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GlobalParameters_Create.json func ExampleGlobalParametersClient_CreateOrUpdate_globalParametersCreate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -82,11 +135,24 @@ func ExampleGlobalParametersClient_CreateOrUpdate_globalParametersCreate() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.GlobalParameterResource = armdatafactory.GlobalParameterResource{ + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.DataFactory/factories/globalParameters"), + // Etag: to.Ptr("0a008ad4-0000-0000-0000-5b245c6e0000"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/globalParameters/default"), + // Properties: map[string]*armdatafactory.GlobalParameterSpecification{ + // "waitTime": &armdatafactory.GlobalParameterSpecification{ + // Type: to.Ptr(armdatafactory.GlobalParameterTypeInt), + // Value: float64(5), + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GlobalParameters_Update.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GlobalParameters_Update.json func ExampleGlobalParametersClient_CreateOrUpdate_globalParametersUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -108,11 +174,24 @@ func ExampleGlobalParametersClient_CreateOrUpdate_globalParametersUpdate() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.GlobalParameterResource = armdatafactory.GlobalParameterResource{ + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.DataFactory/factories/globalParameters"), + // Etag: to.Ptr("0a008ad4-0000-0000-0000-5b245c6e0000"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/globalParameters/default"), + // Properties: map[string]*armdatafactory.GlobalParameterSpecification{ + // "waitTime": &armdatafactory.GlobalParameterSpecification{ + // Type: to.Ptr(armdatafactory.GlobalParameterTypeInt), + // Value: float64(5), + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GlobalParameters_Delete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GlobalParameters_Delete.json func ExampleGlobalParametersClient_Delete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/datafactory/armdatafactory/go.mod b/sdk/resourcemanager/datafactory/armdatafactory/go.mod index aa2253709d76..237e30803b16 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/go.mod +++ b/sdk/resourcemanager/datafactory/armdatafactory/go.mod @@ -4,13 +4,13 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.0.0 - github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.1.0 + github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.1 ) require ( github.com/Azure/azure-sdk-for-go/sdk/internal v1.0.0 // indirect - github.com/AzureAD/microsoft-authentication-library-for-go v0.5.1 // indirect - github.com/golang-jwt/jwt v3.2.1+incompatible // indirect + github.com/AzureAD/microsoft-authentication-library-for-go v0.8.1 // indirect + github.com/golang-jwt/jwt/v4 v4.4.2 // 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 diff --git a/sdk/resourcemanager/datafactory/armdatafactory/go.sum b/sdk/resourcemanager/datafactory/armdatafactory/go.sum index 8828b17b1853..67cfef6bdf6e 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/go.sum +++ b/sdk/resourcemanager/datafactory/armdatafactory/go.sum @@ -1,21 +1,19 @@ 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.1.0 h1:QkAcEIAKbNL4KoFr4SathZPhDhF4mVwpBMFlYjyAqy8= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.1.0/go.mod h1:bhXu1AjYL+wutSL/kpSq6s7733q2Rb0yuot9Zgfqa/0= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.1 h1:T8quHYlUGyb/oqtSTwqlCr1ilJHrDv+ZtpSfo+hm1BU= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.1/go.mod h1:gLa1CL2RNE4s7M3yopJ/p0iq5DdY6Yv5ZUt9MTRZOQM= 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.5.1 h1:BWe8a+f/t+7KY7zH2mqygeUD0t8hNFXe08p1Pb3/jKE= -github.com/AzureAD/microsoft-authentication-library-for-go v0.5.1/go.mod h1:Vt9sXTKwMyGcOxSmLDMnGPgqsUg7m8pe215qMLrDXw4= +github.com/AzureAD/microsoft-authentication-library-for-go v0.8.1 h1:oPdPEZFSbl7oSPEAIPMPBMUmiL+mqgzBJwM/9qYcwNg= +github.com/AzureAD/microsoft-authentication-library-for-go v0.8.1/go.mod h1:4qFor3D/HDsvBME35Xy9rwW9DecL+M2sNw1ybjPtwA0= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/dnaeon/go-vcr v1.1.0 h1:ReYa/UBrRyQdant9B4fNHGoCNKw6qh6P0fsdGmZpR7c= -github.com/golang-jwt/jwt 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= +github.com/golang-jwt/jwt/v4 v4.4.2 h1:rcc4lwaZgFMCZ5jxF9ABolDcIHdBytAFgqFPbSJQAYs= +github.com/golang-jwt/jwt/v4 v4.4.2/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= 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/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= @@ -24,7 +22,6 @@ golang.org/x/crypto v0.0.0-20220511200225-c6db032c6c88 h1:Tgea0cVUD0ivh5ADBX4Wwu 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-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= diff --git a/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimenodes_client.go b/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimenodes_client.go index e62c5b8f7e31..651c61f6e8da 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimenodes_client.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimenodes_client.go @@ -32,9 +32,9 @@ type IntegrationRuntimeNodesClient struct { } // NewIntegrationRuntimeNodesClient creates a new instance of IntegrationRuntimeNodesClient with the specified values. -// subscriptionID - The subscription identifier. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The subscription identifier. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewIntegrationRuntimeNodesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*IntegrationRuntimeNodesClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,13 +57,14 @@ func NewIntegrationRuntimeNodesClient(subscriptionID string, credential azcore.T // Delete - Deletes a self-hosted integration runtime node. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// integrationRuntimeName - The integration runtime name. -// nodeName - The integration runtime node name. -// options - IntegrationRuntimeNodesClientDeleteOptions contains the optional parameters for the IntegrationRuntimeNodesClient.Delete -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - integrationRuntimeName - The integration runtime name. +// - nodeName - The integration runtime node name. +// - options - IntegrationRuntimeNodesClientDeleteOptions contains the optional parameters for the IntegrationRuntimeNodesClient.Delete +// method. func (client *IntegrationRuntimeNodesClient) Delete(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string, nodeName string, options *IntegrationRuntimeNodesClientDeleteOptions) (IntegrationRuntimeNodesClientDeleteResponse, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, factoryName, integrationRuntimeName, nodeName, options) if err != nil { @@ -115,13 +116,14 @@ func (client *IntegrationRuntimeNodesClient) deleteCreateRequest(ctx context.Con // Get - Gets a self-hosted integration runtime node. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// integrationRuntimeName - The integration runtime name. -// nodeName - The integration runtime node name. -// options - IntegrationRuntimeNodesClientGetOptions contains the optional parameters for the IntegrationRuntimeNodesClient.Get -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - integrationRuntimeName - The integration runtime name. +// - nodeName - The integration runtime node name. +// - options - IntegrationRuntimeNodesClientGetOptions contains the optional parameters for the IntegrationRuntimeNodesClient.Get +// method. func (client *IntegrationRuntimeNodesClient) Get(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string, nodeName string, options *IntegrationRuntimeNodesClientGetOptions) (IntegrationRuntimeNodesClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, factoryName, integrationRuntimeName, nodeName, options) if err != nil { @@ -182,13 +184,14 @@ func (client *IntegrationRuntimeNodesClient) getHandleResponse(resp *http.Respon // GetIPAddress - Get the IP address of self-hosted integration runtime node. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// integrationRuntimeName - The integration runtime name. -// nodeName - The integration runtime node name. -// options - IntegrationRuntimeNodesClientGetIPAddressOptions contains the optional parameters for the IntegrationRuntimeNodesClient.GetIPAddress -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - integrationRuntimeName - The integration runtime name. +// - nodeName - The integration runtime node name. +// - options - IntegrationRuntimeNodesClientGetIPAddressOptions contains the optional parameters for the IntegrationRuntimeNodesClient.GetIPAddress +// method. func (client *IntegrationRuntimeNodesClient) GetIPAddress(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string, nodeName string, options *IntegrationRuntimeNodesClientGetIPAddressOptions) (IntegrationRuntimeNodesClientGetIPAddressResponse, error) { req, err := client.getIPAddressCreateRequest(ctx, resourceGroupName, factoryName, integrationRuntimeName, nodeName, options) if err != nil { @@ -249,14 +252,15 @@ func (client *IntegrationRuntimeNodesClient) getIPAddressHandleResponse(resp *ht // Update - Updates a self-hosted integration runtime node. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// integrationRuntimeName - The integration runtime name. -// nodeName - The integration runtime node name. -// updateIntegrationRuntimeNodeRequest - The parameters for updating an integration runtime node. -// options - IntegrationRuntimeNodesClientUpdateOptions contains the optional parameters for the IntegrationRuntimeNodesClient.Update -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - integrationRuntimeName - The integration runtime name. +// - nodeName - The integration runtime node name. +// - updateIntegrationRuntimeNodeRequest - The parameters for updating an integration runtime node. +// - options - IntegrationRuntimeNodesClientUpdateOptions contains the optional parameters for the IntegrationRuntimeNodesClient.Update +// method. func (client *IntegrationRuntimeNodesClient) Update(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string, nodeName string, updateIntegrationRuntimeNodeRequest UpdateIntegrationRuntimeNodeRequest, options *IntegrationRuntimeNodesClientUpdateOptions) (IntegrationRuntimeNodesClientUpdateResponse, error) { req, err := client.updateCreateRequest(ctx, resourceGroupName, factoryName, integrationRuntimeName, nodeName, updateIntegrationRuntimeNodeRequest, options) if err != nil { diff --git a/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimenodes_client_example_test.go b/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimenodes_client_example_test.go index 1daa52118583..4c8332fa184a 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimenodes_client_example_test.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimenodes_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armdatafactory_test @@ -17,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeNodes_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeNodes_Get.json func ExampleIntegrationRuntimeNodesClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -32,11 +33,33 @@ func ExampleIntegrationRuntimeNodesClient_Get() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.SelfHostedIntegrationRuntimeNode = armdatafactory.SelfHostedIntegrationRuntimeNode{ + // Capabilities: map[string]*string{ + // "connectedToResourceManager": to.Ptr("True"), + // "credentialInSync": to.Ptr("True"), + // "httpsPortEnabled": to.Ptr("True"), + // "nodeEnabled": to.Ptr("True"), + // "serviceBusConnected": to.Ptr("True"), + // }, + // HostServiceURI: to.Ptr("https://yanzhang-dt.fareast.corp.microsoft.com:8050/HostServiceRemote.svc/"), + // IsActiveDispatcher: to.Ptr(true), + // LastConnectTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-17T06:30:46.6262976Z"); return t}()), + // LastStartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-17T03:45:30.8499851Z"); return t}()), + // LastUpdateResult: to.Ptr(armdatafactory.IntegrationRuntimeUpdateResultNone), + // MachineName: to.Ptr("YANZHANG-DT"), + // MaxConcurrentJobs: to.Ptr[int32](20), + // NodeName: to.Ptr("Node_1"), + // RegisterTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-17T03:44:55.8012825Z"); return t}()), + // Status: to.Ptr(armdatafactory.SelfHostedIntegrationRuntimeNodeStatusOnline), + // Version: to.Ptr("3.8.6743.6"), + // VersionStatus: to.Ptr("UpToDate"), + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeNodes_Delete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeNodes_Delete.json func ExampleIntegrationRuntimeNodesClient_Delete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -53,7 +76,7 @@ func ExampleIntegrationRuntimeNodesClient_Delete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeNodes_Update.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeNodes_Update.json func ExampleIntegrationRuntimeNodesClient_Update() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -70,11 +93,34 @@ func ExampleIntegrationRuntimeNodesClient_Update() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.SelfHostedIntegrationRuntimeNode = armdatafactory.SelfHostedIntegrationRuntimeNode{ + // Capabilities: map[string]*string{ + // "connectedToResourceManager": to.Ptr("True"), + // "credentialInSync": to.Ptr("True"), + // "httpsPortEnabled": to.Ptr("True"), + // "nodeEnabled": to.Ptr("True"), + // "serviceBusConnected": to.Ptr("True"), + // }, + // ConcurrentJobsLimit: to.Ptr[int32](2), + // HostServiceURI: to.Ptr("https://yanzhang-dt.fareast.corp.microsoft.com:8050/HostServiceRemote.svc/"), + // IsActiveDispatcher: to.Ptr(true), + // LastConnectTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-14T15:00:35.7544322Z"); return t}()), + // LastStartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-14T14:52:59.8933313Z"); return t}()), + // LastUpdateResult: to.Ptr(armdatafactory.IntegrationRuntimeUpdateResultNone), + // MachineName: to.Ptr("YANZHANG-DT"), + // MaxConcurrentJobs: to.Ptr[int32](56), + // NodeName: to.Ptr("Node_1"), + // RegisterTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-14T14:51:44.9237069Z"); return t}()), + // Status: to.Ptr(armdatafactory.SelfHostedIntegrationRuntimeNodeStatusOnline), + // Version: to.Ptr("3.8.6730.2"), + // VersionStatus: to.Ptr("UpToDate"), + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeNodes_GetIpAddress.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeNodes_GetIpAddress.json func ExampleIntegrationRuntimeNodesClient_GetIPAddress() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -89,6 +135,10 @@ func ExampleIntegrationRuntimeNodesClient_GetIPAddress() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.IntegrationRuntimeNodeIPAddress = armdatafactory.IntegrationRuntimeNodeIPAddress{ + // IPAddress: to.Ptr("**********"), + // } } diff --git a/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimeobjectmetadata_client.go b/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimeobjectmetadata_client.go index 9c46d5bbc8c6..6dd39361d193 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimeobjectmetadata_client.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimeobjectmetadata_client.go @@ -32,9 +32,9 @@ type IntegrationRuntimeObjectMetadataClient struct { } // NewIntegrationRuntimeObjectMetadataClient creates a new instance of IntegrationRuntimeObjectMetadataClient with the specified values. -// subscriptionID - The subscription identifier. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The subscription identifier. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewIntegrationRuntimeObjectMetadataClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*IntegrationRuntimeObjectMetadataClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,12 +57,13 @@ func NewIntegrationRuntimeObjectMetadataClient(subscriptionID string, credential // Get - Get a SSIS integration runtime object metadata by specified path. The return is pageable metadata list. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// integrationRuntimeName - The integration runtime name. -// options - IntegrationRuntimeObjectMetadataClientGetOptions contains the optional parameters for the IntegrationRuntimeObjectMetadataClient.Get -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - integrationRuntimeName - The integration runtime name. +// - options - IntegrationRuntimeObjectMetadataClientGetOptions contains the optional parameters for the IntegrationRuntimeObjectMetadataClient.Get +// method. func (client *IntegrationRuntimeObjectMetadataClient) Get(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string, options *IntegrationRuntimeObjectMetadataClientGetOptions) (IntegrationRuntimeObjectMetadataClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, factoryName, integrationRuntimeName, options) if err != nil { @@ -122,12 +123,13 @@ func (client *IntegrationRuntimeObjectMetadataClient) getHandleResponse(resp *ht // BeginRefresh - Refresh a SSIS integration runtime object metadata. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// integrationRuntimeName - The integration runtime name. -// options - IntegrationRuntimeObjectMetadataClientBeginRefreshOptions contains the optional parameters for the IntegrationRuntimeObjectMetadataClient.BeginRefresh -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - integrationRuntimeName - The integration runtime name. +// - options - IntegrationRuntimeObjectMetadataClientBeginRefreshOptions contains the optional parameters for the IntegrationRuntimeObjectMetadataClient.BeginRefresh +// method. func (client *IntegrationRuntimeObjectMetadataClient) BeginRefresh(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string, options *IntegrationRuntimeObjectMetadataClientBeginRefreshOptions) (*runtime.Poller[IntegrationRuntimeObjectMetadataClientRefreshResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.refresh(ctx, resourceGroupName, factoryName, integrationRuntimeName, options) @@ -142,6 +144,7 @@ func (client *IntegrationRuntimeObjectMetadataClient) BeginRefresh(ctx context.C // Refresh - Refresh a SSIS integration runtime object metadata. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 func (client *IntegrationRuntimeObjectMetadataClient) refresh(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string, options *IntegrationRuntimeObjectMetadataClientBeginRefreshOptions) (*http.Response, error) { req, err := client.refreshCreateRequest(ctx, resourceGroupName, factoryName, integrationRuntimeName, options) diff --git a/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimeobjectmetadata_client_example_test.go b/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimeobjectmetadata_client_example_test.go index 5e2a8148365c..903ff6851c34 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimeobjectmetadata_client_example_test.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimeobjectmetadata_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armdatafactory_test @@ -17,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeObjectMetadata_Refresh.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeObjectMetadata_Refresh.json func ExampleIntegrationRuntimeObjectMetadataClient_BeginRefresh() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -36,11 +37,16 @@ func ExampleIntegrationRuntimeObjectMetadataClient_BeginRefresh() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.SsisObjectMetadataStatusResponse = armdatafactory.SsisObjectMetadataStatusResponse{ + // Name: to.Ptr("ca63c855b72d44959653ffcc6eb0b96c"), + // Status: to.Ptr("Succeeded"), + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeObjectMetadata_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeObjectMetadata_Get.json func ExampleIntegrationRuntimeObjectMetadataClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -58,6 +64,514 @@ func ExampleIntegrationRuntimeObjectMetadataClient_Get() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.SsisObjectMetadataListResponse = armdatafactory.SsisObjectMetadataListResponse{ + // Value: []armdatafactory.SsisObjectMetadataClassification{ + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("TestFolder"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // Description: to.Ptr(""), + // ID: to.Ptr[int64](1), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("EnvironmentFolder"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // Description: to.Ptr(""), + // ID: to.Ptr[int64](2), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("ActivityTest"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // Description: to.Ptr(""), + // ID: to.Ptr[int64](3), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("这是文件夹"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // Description: to.Ptr(""), + // ID: to.Ptr[int64](4), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("1"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](5), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("2"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](6), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("3"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](7), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("4"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](8), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("5"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](9), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("6"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](10), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("7"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](11), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("8"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](12), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("9"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](13), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("10"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](14), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("11"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](15), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("12"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](16), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("13"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](17), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("14"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](18), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("15"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](19), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("16"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](20), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("17"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](21), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("18"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](22), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("19"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](23), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("20"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](24), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("21"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](25), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("22"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](26), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("23"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](27), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("24"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](28), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("25"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](29), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("26"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](30), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("27"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](31), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("28"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](32), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("29"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](33), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("30"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](34), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("31"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](35), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("32"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](36), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("33"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](37), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("34"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](38), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("35"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](39), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("36"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](40), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("37"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](41), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("38"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](42), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("39"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](43), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("40"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](44), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("41"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](45), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("42"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](46), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("43"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](47), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("44"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](48), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("45"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](49), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("46"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](50), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("47"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](51), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("48"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](52), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("49"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](53), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("50"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](54), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("51"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](55), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("52"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](56), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("53"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](57), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("54"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](58), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("55"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](59), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("56"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](60), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("57"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](61), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("58"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](62), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("59"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](63), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("60"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](64), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("61"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](65), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("62"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](66), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("63"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](67), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("64"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](68), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("65"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](69), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("66"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](70), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("67"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](71), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("68"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](72), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("69"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](73), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("70"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](74), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("71"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](75), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("72"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](76), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("73"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](77), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("74"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](78), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("75"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](79), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("76"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](80), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("77"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](81), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("78"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](82), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("79"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](83), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("80"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](84), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("81"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](85), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("82"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](86), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("83"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](87), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("84"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](88), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("85"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](89), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("86"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](90), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("87"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](91), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("88"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](92), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("89"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](93), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("90"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](94), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("91"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](95), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("92"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](96), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("93"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](97), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("94"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](98), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("95"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](99), + // }, + // &armdatafactory.SsisFolder{ + // Name: to.Ptr("96"), + // Type: to.Ptr(armdatafactory.SsisObjectMetadataTypeFolder), + // ID: to.Ptr[int64](100), + // }}, + // } } diff --git a/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimes_client.go b/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimes_client.go index e090c28c73af..daee489bb824 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimes_client.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimes_client.go @@ -32,9 +32,9 @@ type IntegrationRuntimesClient struct { } // NewIntegrationRuntimesClient creates a new instance of IntegrationRuntimesClient with the specified values. -// subscriptionID - The subscription identifier. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The subscription identifier. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewIntegrationRuntimesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*IntegrationRuntimesClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,13 +57,14 @@ func NewIntegrationRuntimesClient(subscriptionID string, credential azcore.Token // CreateLinkedIntegrationRuntime - Create a linked integration runtime entry in a shared integration runtime. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// integrationRuntimeName - The integration runtime name. -// createLinkedIntegrationRuntimeRequest - The linked integration runtime properties. -// options - IntegrationRuntimesClientCreateLinkedIntegrationRuntimeOptions contains the optional parameters for the IntegrationRuntimesClient.CreateLinkedIntegrationRuntime -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - integrationRuntimeName - The integration runtime name. +// - createLinkedIntegrationRuntimeRequest - The linked integration runtime properties. +// - options - IntegrationRuntimesClientCreateLinkedIntegrationRuntimeOptions contains the optional parameters for the IntegrationRuntimesClient.CreateLinkedIntegrationRuntime +// method. func (client *IntegrationRuntimesClient) CreateLinkedIntegrationRuntime(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string, createLinkedIntegrationRuntimeRequest CreateLinkedIntegrationRuntimeRequest, options *IntegrationRuntimesClientCreateLinkedIntegrationRuntimeOptions) (IntegrationRuntimesClientCreateLinkedIntegrationRuntimeResponse, error) { req, err := client.createLinkedIntegrationRuntimeCreateRequest(ctx, resourceGroupName, factoryName, integrationRuntimeName, createLinkedIntegrationRuntimeRequest, options) if err != nil { @@ -120,13 +121,14 @@ func (client *IntegrationRuntimesClient) createLinkedIntegrationRuntimeHandleRes // CreateOrUpdate - Creates or updates an integration runtime. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// integrationRuntimeName - The integration runtime name. -// integrationRuntime - Integration runtime resource definition. -// options - IntegrationRuntimesClientCreateOrUpdateOptions contains the optional parameters for the IntegrationRuntimesClient.CreateOrUpdate -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - integrationRuntimeName - The integration runtime name. +// - integrationRuntime - Integration runtime resource definition. +// - options - IntegrationRuntimesClientCreateOrUpdateOptions contains the optional parameters for the IntegrationRuntimesClient.CreateOrUpdate +// method. func (client *IntegrationRuntimesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string, integrationRuntime IntegrationRuntimeResource, options *IntegrationRuntimesClientCreateOrUpdateOptions) (IntegrationRuntimesClientCreateOrUpdateResponse, error) { req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, factoryName, integrationRuntimeName, integrationRuntime, options) if err != nil { @@ -186,12 +188,13 @@ func (client *IntegrationRuntimesClient) createOrUpdateHandleResponse(resp *http // Delete - Deletes an integration runtime. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// integrationRuntimeName - The integration runtime name. -// options - IntegrationRuntimesClientDeleteOptions contains the optional parameters for the IntegrationRuntimesClient.Delete -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - integrationRuntimeName - The integration runtime name. +// - options - IntegrationRuntimesClientDeleteOptions contains the optional parameters for the IntegrationRuntimesClient.Delete +// method. func (client *IntegrationRuntimesClient) Delete(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string, options *IntegrationRuntimesClientDeleteOptions) (IntegrationRuntimesClientDeleteResponse, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, factoryName, integrationRuntimeName, options) if err != nil { @@ -239,11 +242,12 @@ func (client *IntegrationRuntimesClient) deleteCreateRequest(ctx context.Context // Get - Gets an integration runtime. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// integrationRuntimeName - The integration runtime name. -// options - IntegrationRuntimesClientGetOptions contains the optional parameters for the IntegrationRuntimesClient.Get method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - integrationRuntimeName - The integration runtime name. +// - options - IntegrationRuntimesClientGetOptions contains the optional parameters for the IntegrationRuntimesClient.Get method. func (client *IntegrationRuntimesClient) Get(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string, options *IntegrationRuntimesClientGetOptions) (IntegrationRuntimesClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, factoryName, integrationRuntimeName, options) if err != nil { @@ -304,12 +308,13 @@ func (client *IntegrationRuntimesClient) getHandleResponse(resp *http.Response) // GetConnectionInfo - Gets the on-premises integration runtime connection information for encrypting the on-premises data // source credentials. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// integrationRuntimeName - The integration runtime name. -// options - IntegrationRuntimesClientGetConnectionInfoOptions contains the optional parameters for the IntegrationRuntimesClient.GetConnectionInfo -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - integrationRuntimeName - The integration runtime name. +// - options - IntegrationRuntimesClientGetConnectionInfoOptions contains the optional parameters for the IntegrationRuntimesClient.GetConnectionInfo +// method. func (client *IntegrationRuntimesClient) GetConnectionInfo(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string, options *IntegrationRuntimesClientGetConnectionInfoOptions) (IntegrationRuntimesClientGetConnectionInfoResponse, error) { req, err := client.getConnectionInfoCreateRequest(ctx, resourceGroupName, factoryName, integrationRuntimeName, options) if err != nil { @@ -367,12 +372,13 @@ func (client *IntegrationRuntimesClient) getConnectionInfoHandleResponse(resp *h // GetMonitoringData - Get the integration runtime monitoring data, which includes the monitor data for all the nodes under // this integration runtime. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// integrationRuntimeName - The integration runtime name. -// options - IntegrationRuntimesClientGetMonitoringDataOptions contains the optional parameters for the IntegrationRuntimesClient.GetMonitoringData -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - integrationRuntimeName - The integration runtime name. +// - options - IntegrationRuntimesClientGetMonitoringDataOptions contains the optional parameters for the IntegrationRuntimesClient.GetMonitoringData +// method. func (client *IntegrationRuntimesClient) GetMonitoringData(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string, options *IntegrationRuntimesClientGetMonitoringDataOptions) (IntegrationRuntimesClientGetMonitoringDataResponse, error) { req, err := client.getMonitoringDataCreateRequest(ctx, resourceGroupName, factoryName, integrationRuntimeName, options) if err != nil { @@ -429,12 +435,13 @@ func (client *IntegrationRuntimesClient) getMonitoringDataHandleResponse(resp *h // GetStatus - Gets detailed status information for an integration runtime. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// integrationRuntimeName - The integration runtime name. -// options - IntegrationRuntimesClientGetStatusOptions contains the optional parameters for the IntegrationRuntimesClient.GetStatus -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - integrationRuntimeName - The integration runtime name. +// - options - IntegrationRuntimesClientGetStatusOptions contains the optional parameters for the IntegrationRuntimesClient.GetStatus +// method. func (client *IntegrationRuntimesClient) GetStatus(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string, options *IntegrationRuntimesClientGetStatusOptions) (IntegrationRuntimesClientGetStatusResponse, error) { req, err := client.getStatusCreateRequest(ctx, resourceGroupName, factoryName, integrationRuntimeName, options) if err != nil { @@ -491,12 +498,13 @@ func (client *IntegrationRuntimesClient) getStatusHandleResponse(resp *http.Resp // ListAuthKeys - Retrieves the authentication keys for an integration runtime. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// integrationRuntimeName - The integration runtime name. -// options - IntegrationRuntimesClientListAuthKeysOptions contains the optional parameters for the IntegrationRuntimesClient.ListAuthKeys -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - integrationRuntimeName - The integration runtime name. +// - options - IntegrationRuntimesClientListAuthKeysOptions contains the optional parameters for the IntegrationRuntimesClient.ListAuthKeys +// method. func (client *IntegrationRuntimesClient) ListAuthKeys(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string, options *IntegrationRuntimesClientListAuthKeysOptions) (IntegrationRuntimesClientListAuthKeysResponse, error) { req, err := client.listAuthKeysCreateRequest(ctx, resourceGroupName, factoryName, integrationRuntimeName, options) if err != nil { @@ -552,11 +560,12 @@ func (client *IntegrationRuntimesClient) listAuthKeysHandleResponse(resp *http.R } // NewListByFactoryPager - Lists integration runtimes. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// options - IntegrationRuntimesClientListByFactoryOptions contains the optional parameters for the IntegrationRuntimesClient.ListByFactory -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - options - IntegrationRuntimesClientListByFactoryOptions contains the optional parameters for the IntegrationRuntimesClient.NewListByFactoryPager +// method. func (client *IntegrationRuntimesClient) NewListByFactoryPager(resourceGroupName string, factoryName string, options *IntegrationRuntimesClientListByFactoryOptions) *runtime.Pager[IntegrationRuntimesClientListByFactoryResponse] { return runtime.NewPager(runtime.PagingHandler[IntegrationRuntimesClientListByFactoryResponse]{ More: func(page IntegrationRuntimesClientListByFactoryResponse) bool { @@ -623,12 +632,13 @@ func (client *IntegrationRuntimesClient) listByFactoryHandleResponse(resp *http. // ListOutboundNetworkDependenciesEndpoints - Gets the list of outbound network dependencies for a given Azure-SSIS integration // runtime. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// integrationRuntimeName - The integration runtime name. -// options - IntegrationRuntimesClientListOutboundNetworkDependenciesEndpointsOptions contains the optional parameters for -// the IntegrationRuntimesClient.ListOutboundNetworkDependenciesEndpoints method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - integrationRuntimeName - The integration runtime name. +// - options - IntegrationRuntimesClientListOutboundNetworkDependenciesEndpointsOptions contains the optional parameters for +// the IntegrationRuntimesClient.ListOutboundNetworkDependenciesEndpoints method. func (client *IntegrationRuntimesClient) ListOutboundNetworkDependenciesEndpoints(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string, options *IntegrationRuntimesClientListOutboundNetworkDependenciesEndpointsOptions) (IntegrationRuntimesClientListOutboundNetworkDependenciesEndpointsResponse, error) { req, err := client.listOutboundNetworkDependenciesEndpointsCreateRequest(ctx, resourceGroupName, factoryName, integrationRuntimeName, options) if err != nil { @@ -685,13 +695,14 @@ func (client *IntegrationRuntimesClient) listOutboundNetworkDependenciesEndpoint // RegenerateAuthKey - Regenerates the authentication key for an integration runtime. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// integrationRuntimeName - The integration runtime name. -// regenerateKeyParameters - The parameters for regenerating integration runtime authentication key. -// options - IntegrationRuntimesClientRegenerateAuthKeyOptions contains the optional parameters for the IntegrationRuntimesClient.RegenerateAuthKey -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - integrationRuntimeName - The integration runtime name. +// - regenerateKeyParameters - The parameters for regenerating integration runtime authentication key. +// - options - IntegrationRuntimesClientRegenerateAuthKeyOptions contains the optional parameters for the IntegrationRuntimesClient.RegenerateAuthKey +// method. func (client *IntegrationRuntimesClient) RegenerateAuthKey(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string, regenerateKeyParameters IntegrationRuntimeRegenerateKeyParameters, options *IntegrationRuntimesClientRegenerateAuthKeyOptions) (IntegrationRuntimesClientRegenerateAuthKeyResponse, error) { req, err := client.regenerateAuthKeyCreateRequest(ctx, resourceGroupName, factoryName, integrationRuntimeName, regenerateKeyParameters, options) if err != nil { @@ -748,13 +759,14 @@ func (client *IntegrationRuntimesClient) regenerateAuthKeyHandleResponse(resp *h // RemoveLinks - Remove all linked integration runtimes under specific data factory in a self-hosted integration runtime. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// integrationRuntimeName - The integration runtime name. -// linkedIntegrationRuntimeRequest - The data factory name for the linked integration runtime. -// options - IntegrationRuntimesClientRemoveLinksOptions contains the optional parameters for the IntegrationRuntimesClient.RemoveLinks -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - integrationRuntimeName - The integration runtime name. +// - linkedIntegrationRuntimeRequest - The data factory name for the linked integration runtime. +// - options - IntegrationRuntimesClientRemoveLinksOptions contains the optional parameters for the IntegrationRuntimesClient.RemoveLinks +// method. func (client *IntegrationRuntimesClient) RemoveLinks(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string, linkedIntegrationRuntimeRequest LinkedIntegrationRuntimeRequest, options *IntegrationRuntimesClientRemoveLinksOptions) (IntegrationRuntimesClientRemoveLinksResponse, error) { req, err := client.removeLinksCreateRequest(ctx, resourceGroupName, factoryName, integrationRuntimeName, linkedIntegrationRuntimeRequest, options) if err != nil { @@ -802,12 +814,13 @@ func (client *IntegrationRuntimesClient) removeLinksCreateRequest(ctx context.Co // BeginStart - Starts a ManagedReserved type integration runtime. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// integrationRuntimeName - The integration runtime name. -// options - IntegrationRuntimesClientBeginStartOptions contains the optional parameters for the IntegrationRuntimesClient.BeginStart -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - integrationRuntimeName - The integration runtime name. +// - options - IntegrationRuntimesClientBeginStartOptions contains the optional parameters for the IntegrationRuntimesClient.BeginStart +// method. func (client *IntegrationRuntimesClient) BeginStart(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string, options *IntegrationRuntimesClientBeginStartOptions) (*runtime.Poller[IntegrationRuntimesClientStartResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.start(ctx, resourceGroupName, factoryName, integrationRuntimeName, options) @@ -822,6 +835,7 @@ func (client *IntegrationRuntimesClient) BeginStart(ctx context.Context, resourc // Start - Starts a ManagedReserved type integration runtime. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 func (client *IntegrationRuntimesClient) start(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string, options *IntegrationRuntimesClientBeginStartOptions) (*http.Response, error) { req, err := client.startCreateRequest(ctx, resourceGroupName, factoryName, integrationRuntimeName, options) @@ -870,12 +884,13 @@ func (client *IntegrationRuntimesClient) startCreateRequest(ctx context.Context, // BeginStop - Stops a ManagedReserved type integration runtime. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// integrationRuntimeName - The integration runtime name. -// options - IntegrationRuntimesClientBeginStopOptions contains the optional parameters for the IntegrationRuntimesClient.BeginStop -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - integrationRuntimeName - The integration runtime name. +// - options - IntegrationRuntimesClientBeginStopOptions contains the optional parameters for the IntegrationRuntimesClient.BeginStop +// method. func (client *IntegrationRuntimesClient) BeginStop(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string, options *IntegrationRuntimesClientBeginStopOptions) (*runtime.Poller[IntegrationRuntimesClientStopResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.stop(ctx, resourceGroupName, factoryName, integrationRuntimeName, options) @@ -890,6 +905,7 @@ func (client *IntegrationRuntimesClient) BeginStop(ctx context.Context, resource // Stop - Stops a ManagedReserved type integration runtime. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 func (client *IntegrationRuntimesClient) stop(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string, options *IntegrationRuntimesClientBeginStopOptions) (*http.Response, error) { req, err := client.stopCreateRequest(ctx, resourceGroupName, factoryName, integrationRuntimeName, options) @@ -941,12 +957,13 @@ func (client *IntegrationRuntimesClient) stopCreateRequest(ctx context.Context, // If you already have the latest credential backup file, you should manually import it (preferred) on any self-hosted integration // runtime node than using this API directly. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// integrationRuntimeName - The integration runtime name. -// options - IntegrationRuntimesClientSyncCredentialsOptions contains the optional parameters for the IntegrationRuntimesClient.SyncCredentials -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - integrationRuntimeName - The integration runtime name. +// - options - IntegrationRuntimesClientSyncCredentialsOptions contains the optional parameters for the IntegrationRuntimesClient.SyncCredentials +// method. func (client *IntegrationRuntimesClient) SyncCredentials(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string, options *IntegrationRuntimesClientSyncCredentialsOptions) (IntegrationRuntimesClientSyncCredentialsResponse, error) { req, err := client.syncCredentialsCreateRequest(ctx, resourceGroupName, factoryName, integrationRuntimeName, options) if err != nil { @@ -994,13 +1011,14 @@ func (client *IntegrationRuntimesClient) syncCredentialsCreateRequest(ctx contex // Update - Updates an integration runtime. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// integrationRuntimeName - The integration runtime name. -// updateIntegrationRuntimeRequest - The parameters for updating an integration runtime. -// options - IntegrationRuntimesClientUpdateOptions contains the optional parameters for the IntegrationRuntimesClient.Update -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - integrationRuntimeName - The integration runtime name. +// - updateIntegrationRuntimeRequest - The parameters for updating an integration runtime. +// - options - IntegrationRuntimesClientUpdateOptions contains the optional parameters for the IntegrationRuntimesClient.Update +// method. func (client *IntegrationRuntimesClient) Update(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string, updateIntegrationRuntimeRequest UpdateIntegrationRuntimeRequest, options *IntegrationRuntimesClientUpdateOptions) (IntegrationRuntimesClientUpdateResponse, error) { req, err := client.updateCreateRequest(ctx, resourceGroupName, factoryName, integrationRuntimeName, updateIntegrationRuntimeRequest, options) if err != nil { @@ -1057,12 +1075,13 @@ func (client *IntegrationRuntimesClient) updateHandleResponse(resp *http.Respons // Upgrade - Upgrade self-hosted integration runtime to latest version if availability. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// integrationRuntimeName - The integration runtime name. -// options - IntegrationRuntimesClientUpgradeOptions contains the optional parameters for the IntegrationRuntimesClient.Upgrade -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - integrationRuntimeName - The integration runtime name. +// - options - IntegrationRuntimesClientUpgradeOptions contains the optional parameters for the IntegrationRuntimesClient.Upgrade +// method. func (client *IntegrationRuntimesClient) Upgrade(ctx context.Context, resourceGroupName string, factoryName string, integrationRuntimeName string, options *IntegrationRuntimesClientUpgradeOptions) (IntegrationRuntimesClientUpgradeResponse, error) { req, err := client.upgradeCreateRequest(ctx, resourceGroupName, factoryName, integrationRuntimeName, options) if err != nil { diff --git a/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimes_client_example_test.go b/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimes_client_example_test.go index 29ed17744e2c..9dae075bc3f5 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimes_client_example_test.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/integrationruntimes_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armdatafactory_test @@ -17,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_ListByFactory.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_ListByFactory.json func ExampleIntegrationRuntimesClient_NewListByFactoryPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -30,18 +31,32 @@ func ExampleIntegrationRuntimesClient_NewListByFactoryPager() { } pager := client.NewListByFactoryPager("exampleResourceGroup", "exampleFactoryName", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.IntegrationRuntimeListResponse = armdatafactory.IntegrationRuntimeListResponse{ + // Value: []*armdatafactory.IntegrationRuntimeResource{ + // { + // Name: to.Ptr("exampleIntegrationRuntime"), + // Type: to.Ptr("Microsoft.DataFactory/factories/integrationruntimes"), + // Etag: to.Ptr("0400f1a1-0000-0000-0000-5b2188640000"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/integrationruntimes/exampleIntegrationRuntime"), + // Properties: &armdatafactory.SelfHostedIntegrationRuntime{ + // Type: to.Ptr(armdatafactory.IntegrationRuntimeTypeSelfHosted), + // Description: to.Ptr("A selfhosted integration runtime"), + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Create.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Create.json func ExampleIntegrationRuntimesClient_CreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -61,11 +76,22 @@ func ExampleIntegrationRuntimesClient_CreateOrUpdate() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.IntegrationRuntimeResource = armdatafactory.IntegrationRuntimeResource{ + // Name: to.Ptr("exampleIntegrationRuntime"), + // Type: to.Ptr("Microsoft.DataFactory/factories/integrationruntimes"), + // Etag: to.Ptr("000046c4-0000-0000-0000-5b2198bf0000"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/integrationruntimes/exampleIntegrationRuntime"), + // Properties: &armdatafactory.SelfHostedIntegrationRuntime{ + // Type: to.Ptr(armdatafactory.IntegrationRuntimeTypeSelfHosted), + // Description: to.Ptr("A selfhosted integration runtime"), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Get.json func ExampleIntegrationRuntimesClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -80,11 +106,22 @@ func ExampleIntegrationRuntimesClient_Get() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.IntegrationRuntimeResource = armdatafactory.IntegrationRuntimeResource{ + // Name: to.Ptr("exampleIntegrationRuntime"), + // Type: to.Ptr("Microsoft.DataFactory/factories/integrationruntimes"), + // Etag: to.Ptr("15003c4f-0000-0200-0000-5cbe090b0000"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/integrationruntimes/exampleIntegrationRuntime"), + // Properties: &armdatafactory.SelfHostedIntegrationRuntime{ + // Type: to.Ptr(armdatafactory.IntegrationRuntimeTypeSelfHosted), + // Description: to.Ptr("A selfhosted integration runtime"), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Update.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Update.json func ExampleIntegrationRuntimesClient_Update() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -102,11 +139,22 @@ func ExampleIntegrationRuntimesClient_Update() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.IntegrationRuntimeResource = armdatafactory.IntegrationRuntimeResource{ + // Name: to.Ptr("exampleIntegrationRuntime"), + // Type: to.Ptr("Microsoft.DataFactory/factories/integrationruntimes"), + // Etag: to.Ptr("0400f1a1-0000-0000-0000-5b2188640000"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/integrationruntimes/exampleIntegrationRuntime"), + // Properties: &armdatafactory.SelfHostedIntegrationRuntime{ + // Type: to.Ptr(armdatafactory.IntegrationRuntimeTypeSelfHosted), + // Description: to.Ptr("A selfhosted integration runtime"), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Delete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Delete.json func ExampleIntegrationRuntimesClient_Delete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -123,7 +171,7 @@ func ExampleIntegrationRuntimesClient_Delete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_GetStatus.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_GetStatus.json func ExampleIntegrationRuntimesClient_GetStatus() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -138,11 +186,61 @@ func ExampleIntegrationRuntimesClient_GetStatus() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.IntegrationRuntimeStatusResponse = armdatafactory.IntegrationRuntimeStatusResponse{ + // Name: to.Ptr("exampleIntegrationRuntime"), + // Properties: &armdatafactory.SelfHostedIntegrationRuntimeStatus{ + // Type: to.Ptr(armdatafactory.IntegrationRuntimeTypeSelfHosted), + // State: to.Ptr(armdatafactory.IntegrationRuntimeStateOnline), + // TypeProperties: &armdatafactory.SelfHostedIntegrationRuntimeStatusTypeProperties{ + // AutoUpdate: to.Ptr(armdatafactory.IntegrationRuntimeAutoUpdateOff), + // Capabilities: map[string]*string{ + // "connectedToResourceManager": to.Ptr("True"), + // "credentialInSync": to.Ptr("True"), + // "httpsPortEnabled": to.Ptr("True"), + // "nodeEnabled": to.Ptr("True"), + // "serviceBusConnected": to.Ptr("True"), + // }, + // CreateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-14T09:17:45.1839685Z"); return t}()), + // LatestVersion: to.Ptr("3.7.6711.1"), + // LocalTimeZoneOffset: to.Ptr("PT8H"), + // Nodes: []*armdatafactory.SelfHostedIntegrationRuntimeNode{ + // { + // Capabilities: map[string]*string{ + // "connectedToResourceManager": to.Ptr("True"), + // "credentialInSync": to.Ptr("True"), + // "httpsPortEnabled": to.Ptr("True"), + // "nodeEnabled": to.Ptr("True"), + // "serviceBusConnected": to.Ptr("True"), + // }, + // HostServiceURI: to.Ptr("https://yanzhang-dt.fareast.corp.microsoft.com:8050/HostServiceRemote.svc/"), + // IsActiveDispatcher: to.Ptr(true), + // LastConnectTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-14T14:52:59.8933313Z"); return t}()), + // LastStartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-14T14:52:59.8933313Z"); return t}()), + // LastUpdateResult: to.Ptr(armdatafactory.IntegrationRuntimeUpdateResultNone), + // MachineName: to.Ptr("YANZHANG-DT"), + // MaxConcurrentJobs: to.Ptr[int32](56), + // NodeName: to.Ptr("Node_1"), + // RegisterTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-14T14:51:44.9237069Z"); return t}()), + // Status: to.Ptr(armdatafactory.SelfHostedIntegrationRuntimeNodeStatusOnline), + // Version: to.Ptr("3.8.6730.2"), + // VersionStatus: to.Ptr("UpToDate"), + // }}, + // ServiceUrls: []*string{ + // to.Ptr("wu.frontend.int.clouddatahub-int.net"), + // to.Ptr("*.servicebus.windows.net")}, + // TaskQueueID: to.Ptr("1a6296ab-423c-4346-9bcc-85a78c2c0582"), + // UpdateDelayOffset: to.Ptr("PT3H"), + // Version: to.Ptr("3.8.6730.2"), + // VersionStatus: to.Ptr("UpToDate"), + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_ListOutboundNetworkDependenciesEndpoints.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_ListOutboundNetworkDependenciesEndpoints.json func ExampleIntegrationRuntimesClient_ListOutboundNetworkDependenciesEndpoints() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -157,11 +255,80 @@ func ExampleIntegrationRuntimesClient_ListOutboundNetworkDependenciesEndpoints() if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse = armdatafactory.IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse{ + // Value: []*armdatafactory.IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint{ + // { + // Category: to.Ptr("Azure Data Factory (Management)"), + // Endpoints: []*armdatafactory.IntegrationRuntimeOutboundNetworkDependenciesEndpoint{ + // { + // DomainName: to.Ptr("wu.frontend.int.clouddatahub-int.net"), + // EndpointDetails: []*armdatafactory.IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails{ + // { + // Port: to.Ptr[int32](443), + // }}, + // }}, + // }, + // { + // Category: to.Ptr("Azure Storage (Management)"), + // Endpoints: []*armdatafactory.IntegrationRuntimeOutboundNetworkDependenciesEndpoint{ + // { + // DomainName: to.Ptr("*.blob.core.windows.net"), + // EndpointDetails: []*armdatafactory.IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails{ + // { + // Port: to.Ptr[int32](443), + // }}, + // }, + // { + // DomainName: to.Ptr("*.table.core.windows.net"), + // EndpointDetails: []*armdatafactory.IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails{ + // { + // Port: to.Ptr[int32](443), + // }}, + // }}, + // }, + // { + // Category: to.Ptr("Event Hub (Logging)"), + // Endpoints: []*armdatafactory.IntegrationRuntimeOutboundNetworkDependenciesEndpoint{ + // { + // DomainName: to.Ptr("*.servicebus.windows.net"), + // EndpointDetails: []*armdatafactory.IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails{ + // { + // Port: to.Ptr[int32](443), + // }}, + // }}, + // }, + // { + // Category: to.Ptr("Microsoft Logging service (Internal Use)"), + // Endpoints: []*armdatafactory.IntegrationRuntimeOutboundNetworkDependenciesEndpoint{ + // { + // DomainName: to.Ptr("gcs.prod.monitoring.core.windows.net"), + // EndpointDetails: []*armdatafactory.IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails{ + // { + // Port: to.Ptr[int32](443), + // }}, + // }, + // { + // DomainName: to.Ptr("prod.warmpath.msftcloudes.com"), + // EndpointDetails: []*armdatafactory.IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails{ + // { + // Port: to.Ptr[int32](443), + // }}, + // }, + // { + // DomainName: to.Ptr("azurewatsonanalysis-prod.core.windows.net"), + // EndpointDetails: []*armdatafactory.IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails{ + // { + // Port: to.Ptr[int32](443), + // }}, + // }}, + // }}, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_GetConnectionInfo.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_GetConnectionInfo.json func ExampleIntegrationRuntimesClient_GetConnectionInfo() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -176,11 +343,20 @@ func ExampleIntegrationRuntimesClient_GetConnectionInfo() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.IntegrationRuntimeConnectionInfo = armdatafactory.IntegrationRuntimeConnectionInfo{ + // HostServiceURI: to.Ptr("https://yanzhang-dt.fareast.corp.microsoft.com:8050/HostServiceRemote.svc/"), + // IdentityCertThumbprint: to.Ptr("**********"), + // IsIdentityCertExprired: to.Ptr(false), + // PublicKey: to.Ptr("**********"), + // ServiceToken: to.Ptr("**********"), + // Version: to.Ptr("3.8.6730.2"), + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_RegenerateAuthKey.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_RegenerateAuthKey.json func ExampleIntegrationRuntimesClient_RegenerateAuthKey() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -197,11 +373,15 @@ func ExampleIntegrationRuntimesClient_RegenerateAuthKey() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.IntegrationRuntimeAuthKeys = armdatafactory.IntegrationRuntimeAuthKeys{ + // AuthKey2: to.Ptr("**********"), + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_ListAuthKeys.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_ListAuthKeys.json func ExampleIntegrationRuntimesClient_ListAuthKeys() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -216,11 +396,16 @@ func ExampleIntegrationRuntimesClient_ListAuthKeys() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.IntegrationRuntimeAuthKeys = armdatafactory.IntegrationRuntimeAuthKeys{ + // AuthKey1: to.Ptr("**********"), + // AuthKey2: to.Ptr("**********"), + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Start.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Start.json func ExampleIntegrationRuntimesClient_BeginStart() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -239,11 +424,27 @@ func ExampleIntegrationRuntimesClient_BeginStart() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.IntegrationRuntimeStatusResponse = armdatafactory.IntegrationRuntimeStatusResponse{ + // Name: to.Ptr("exampleManagedIntegrationRuntime"), + // Properties: &armdatafactory.ManagedIntegrationRuntimeStatus{ + // Type: to.Ptr(armdatafactory.IntegrationRuntimeTypeManaged), + // DataFactoryName: to.Ptr("exampleFactoryName"), + // State: to.Ptr(armdatafactory.IntegrationRuntimeStateStarted), + // TypeProperties: &armdatafactory.ManagedIntegrationRuntimeStatusTypeProperties{ + // CreateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-13T21:11:01.8695494Z"); return t}()), + // Nodes: []*armdatafactory.ManagedIntegrationRuntimeNode{ + // }, + // OtherErrors: []*armdatafactory.ManagedIntegrationRuntimeError{ + // }, + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Stop.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Stop.json func ExampleIntegrationRuntimesClient_BeginStop() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -264,7 +465,7 @@ func ExampleIntegrationRuntimesClient_BeginStop() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_SyncCredentials.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_SyncCredentials.json func ExampleIntegrationRuntimesClient_SyncCredentials() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -281,7 +482,7 @@ func ExampleIntegrationRuntimesClient_SyncCredentials() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_GetMonitoringData.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_GetMonitoringData.json func ExampleIntegrationRuntimesClient_GetMonitoringData() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -296,11 +497,25 @@ func ExampleIntegrationRuntimesClient_GetMonitoringData() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.IntegrationRuntimeMonitoringData = armdatafactory.IntegrationRuntimeMonitoringData{ + // Name: to.Ptr("exampleIntegrationRuntime"), + // Nodes: []*armdatafactory.IntegrationRuntimeNodeMonitoringData{ + // { + // AvailableMemoryInMB: to.Ptr[int32](16740), + // ConcurrentJobsLimit: to.Ptr[int32](28), + // ConcurrentJobsRunning: to.Ptr[int32](0), + // CPUUtilization: to.Ptr[int32](15), + // NodeName: to.Ptr("Node_1"), + // ReceivedBytes: to.Ptr[float32](6.731423377990723), + // SentBytes: to.Ptr[float32](2.647491693496704), + // }}, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Upgrade.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Upgrade.json func ExampleIntegrationRuntimesClient_Upgrade() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -317,7 +532,7 @@ func ExampleIntegrationRuntimesClient_Upgrade() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_RemoveLinks.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_RemoveLinks.json func ExampleIntegrationRuntimesClient_RemoveLinks() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -336,7 +551,7 @@ func ExampleIntegrationRuntimesClient_RemoveLinks() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_CreateLinkedIntegrationRuntime.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_CreateLinkedIntegrationRuntime.json func ExampleIntegrationRuntimesClient_CreateLinkedIntegrationRuntime() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -356,6 +571,68 @@ func ExampleIntegrationRuntimesClient_CreateLinkedIntegrationRuntime() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.IntegrationRuntimeStatusResponse = armdatafactory.IntegrationRuntimeStatusResponse{ + // Name: to.Ptr("exampleIntegrationRuntime"), + // Properties: &armdatafactory.SelfHostedIntegrationRuntimeStatus{ + // Type: to.Ptr(armdatafactory.IntegrationRuntimeTypeSelfHosted), + // DataFactoryName: to.Ptr("exampleFactoryName"), + // State: to.Ptr(armdatafactory.IntegrationRuntimeStateOnline), + // TypeProperties: &armdatafactory.SelfHostedIntegrationRuntimeStatusTypeProperties{ + // AutoUpdate: to.Ptr(armdatafactory.IntegrationRuntimeAutoUpdateOn), + // AutoUpdateETA: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-20T19:00:00Z"); return t}()), + // Capabilities: map[string]*string{ + // "connectedToResourceManager": to.Ptr("True"), + // "credentialInSync": to.Ptr("True"), + // "httpsPortEnabled": to.Ptr("True"), + // "nodeEnabled": to.Ptr("True"), + // "serviceBusConnected": to.Ptr("True"), + // }, + // CreateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-17T03:43:25.7055573Z"); return t}()), + // LatestVersion: to.Ptr("3.9.6774.1"), + // Links: []*armdatafactory.LinkedIntegrationRuntime{ + // { + // Name: to.Ptr("bfa92911-9fb6-4fbe-8f23-beae87bc1c83"), + // CreateTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-17T06:31:04.0617928Z"); return t}()), + // DataFactoryLocation: to.Ptr("West US"), + // DataFactoryName: to.Ptr("e9955d6d-56ea-4be3-841c-52a12c1a9981"), + // SubscriptionID: to.Ptr("061774c7-4b5a-4159-a55b-365581830283"), + // }}, + // LocalTimeZoneOffset: to.Ptr("PT8H"), + // Nodes: []*armdatafactory.SelfHostedIntegrationRuntimeNode{ + // { + // Capabilities: map[string]*string{ + // "connectedToResourceManager": to.Ptr("True"), + // "credentialInSync": to.Ptr("True"), + // "httpsPortEnabled": to.Ptr("True"), + // "nodeEnabled": to.Ptr("True"), + // "serviceBusConnected": to.Ptr("True"), + // }, + // HostServiceURI: to.Ptr("https://yanzhang-dt.fareast.corp.microsoft.com:8050/HostServiceRemote.svc/"), + // IsActiveDispatcher: to.Ptr(true), + // LastConnectTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-17T06:30:46.6262976Z"); return t}()), + // LastStartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-17T03:45:30.8499851Z"); return t}()), + // LastUpdateResult: to.Ptr(armdatafactory.IntegrationRuntimeUpdateResultNone), + // MachineName: to.Ptr("YANZHANG-DT"), + // MaxConcurrentJobs: to.Ptr[int32](20), + // NodeName: to.Ptr("Node_1"), + // RegisterTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-17T03:44:55.8012825Z"); return t}()), + // Status: to.Ptr(armdatafactory.SelfHostedIntegrationRuntimeNodeStatusOnline), + // Version: to.Ptr("3.8.6743.6"), + // VersionStatus: to.Ptr("UpToDate"), + // }}, + // PushedVersion: to.Ptr("3.9.6774.1"), + // ScheduledUpdateDate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-08-20T00:00:00Z"); return t}()), + // ServiceUrls: []*string{ + // to.Ptr("wu.frontend.int.clouddatahub-int.net"), + // to.Ptr("*.servicebus.windows.net")}, + // TaskQueueID: to.Ptr("823da112-f2d9-426b-a0d8-5f361b94f72a"), + // UpdateDelayOffset: to.Ptr("PT19H"), + // Version: to.Ptr("3.8.6743.6"), + // VersionStatus: to.Ptr("UpdateAvailable"), + // }, + // }, + // } } diff --git a/sdk/resourcemanager/datafactory/armdatafactory/linkedservices_client.go b/sdk/resourcemanager/datafactory/armdatafactory/linkedservices_client.go index b21601112959..b6d62149ea0f 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/linkedservices_client.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/linkedservices_client.go @@ -32,9 +32,9 @@ type LinkedServicesClient struct { } // NewLinkedServicesClient creates a new instance of LinkedServicesClient with the specified values. -// subscriptionID - The subscription identifier. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The subscription identifier. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewLinkedServicesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*LinkedServicesClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,13 +57,14 @@ func NewLinkedServicesClient(subscriptionID string, credential azcore.TokenCrede // CreateOrUpdate - Creates or updates a linked service. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// linkedServiceName - The linked service name. -// linkedService - Linked service resource definition. -// options - LinkedServicesClientCreateOrUpdateOptions contains the optional parameters for the LinkedServicesClient.CreateOrUpdate -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - linkedServiceName - The linked service name. +// - linkedService - Linked service resource definition. +// - options - LinkedServicesClientCreateOrUpdateOptions contains the optional parameters for the LinkedServicesClient.CreateOrUpdate +// method. func (client *LinkedServicesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, factoryName string, linkedServiceName string, linkedService LinkedServiceResource, options *LinkedServicesClientCreateOrUpdateOptions) (LinkedServicesClientCreateOrUpdateResponse, error) { req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, factoryName, linkedServiceName, linkedService, options) if err != nil { @@ -123,11 +124,12 @@ func (client *LinkedServicesClient) createOrUpdateHandleResponse(resp *http.Resp // Delete - Deletes a linked service. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// linkedServiceName - The linked service name. -// options - LinkedServicesClientDeleteOptions contains the optional parameters for the LinkedServicesClient.Delete method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - linkedServiceName - The linked service name. +// - options - LinkedServicesClientDeleteOptions contains the optional parameters for the LinkedServicesClient.Delete method. func (client *LinkedServicesClient) Delete(ctx context.Context, resourceGroupName string, factoryName string, linkedServiceName string, options *LinkedServicesClientDeleteOptions) (LinkedServicesClientDeleteResponse, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, factoryName, linkedServiceName, options) if err != nil { @@ -175,11 +177,12 @@ func (client *LinkedServicesClient) deleteCreateRequest(ctx context.Context, res // Get - Gets a linked service. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// linkedServiceName - The linked service name. -// options - LinkedServicesClientGetOptions contains the optional parameters for the LinkedServicesClient.Get method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - linkedServiceName - The linked service name. +// - options - LinkedServicesClientGetOptions contains the optional parameters for the LinkedServicesClient.Get method. func (client *LinkedServicesClient) Get(ctx context.Context, resourceGroupName string, factoryName string, linkedServiceName string, options *LinkedServicesClientGetOptions) (LinkedServicesClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, factoryName, linkedServiceName, options) if err != nil { @@ -238,11 +241,12 @@ func (client *LinkedServicesClient) getHandleResponse(resp *http.Response) (Link } // NewListByFactoryPager - Lists linked services. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// options - LinkedServicesClientListByFactoryOptions contains the optional parameters for the LinkedServicesClient.ListByFactory -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - options - LinkedServicesClientListByFactoryOptions contains the optional parameters for the LinkedServicesClient.NewListByFactoryPager +// method. func (client *LinkedServicesClient) NewListByFactoryPager(resourceGroupName string, factoryName string, options *LinkedServicesClientListByFactoryOptions) *runtime.Pager[LinkedServicesClientListByFactoryResponse] { return runtime.NewPager(runtime.PagingHandler[LinkedServicesClientListByFactoryResponse]{ More: func(page LinkedServicesClientListByFactoryResponse) bool { diff --git a/sdk/resourcemanager/datafactory/armdatafactory/linkedservices_client_example_test.go b/sdk/resourcemanager/datafactory/armdatafactory/linkedservices_client_example_test.go index f0ce3044b8f2..1e9cb524155e 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/linkedservices_client_example_test.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/linkedservices_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armdatafactory_test @@ -17,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_ListByFactory.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_ListByFactory.json func ExampleLinkedServicesClient_NewListByFactoryPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -30,18 +31,39 @@ func ExampleLinkedServicesClient_NewListByFactoryPager() { } pager := client.NewListByFactoryPager("exampleResourceGroup", "exampleFactoryName", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.LinkedServiceListResponse = armdatafactory.LinkedServiceListResponse{ + // Value: []*armdatafactory.LinkedServiceResource{ + // { + // Name: to.Ptr("exampleLinkedService"), + // Type: to.Ptr("Microsoft.DataFactory/factories/linkedservices"), + // Etag: to.Ptr("0a0064d4-0000-0000-0000-5b245bd00000"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/linkedservices/exampleLinkedService"), + // Properties: &armdatafactory.AzureStorageLinkedService{ + // Type: to.Ptr("AzureStorage"), + // Description: to.Ptr("Example description"), + // TypeProperties: &armdatafactory.AzureStorageLinkedServiceTypeProperties{ + // ConnectionString: map[string]any{ + // "type": "SecureString", + // "value": "**********", + // }, + // EncryptedCredential: to.Ptr("ew0KICAiVmVyc2lvbiI6ICIyMDE3LTExLTMwIiwNCiAgIlByb3RlY3Rpb25Nb2RlIjogIktleSIsDQogICJTZWNyZXRDb250ZW50VHlwZSI6ICJQbGFpbnRleHQiLA0KICAiQ3JlZGVudGlhbElkIjogIkRGLURPR0ZPT0QtWUFOWkhBTkctV1VfMGI2M2EyMmYtMGEzNC00NDg2LWIzMDktNzM0NTlkODUyY2Q1Ig0KfQ=="), + // }, + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_Create.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_Create.json func ExampleLinkedServicesClient_CreateOrUpdate_linkedServicesCreate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -56,7 +78,7 @@ func ExampleLinkedServicesClient_CreateOrUpdate_linkedServicesCreate() { Properties: &armdatafactory.AzureStorageLinkedService{ Type: to.Ptr("AzureStorage"), TypeProperties: &armdatafactory.AzureStorageLinkedServiceTypeProperties{ - ConnectionString: map[string]interface{}{ + ConnectionString: map[string]any{ "type": "SecureString", "value": "DefaultEndpointsProtocol=https;AccountName=examplestorageaccount;AccountKey=", }, @@ -66,11 +88,28 @@ func ExampleLinkedServicesClient_CreateOrUpdate_linkedServicesCreate() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.LinkedServiceResource = armdatafactory.LinkedServiceResource{ + // Name: to.Ptr("exampleLinkedService"), + // Type: to.Ptr("Microsoft.DataFactory/factories/linkedservices"), + // Etag: to.Ptr("0a0062d4-0000-0000-0000-5b245bcf0000"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/linkedservices/exampleLinkedService"), + // Properties: &armdatafactory.AzureStorageLinkedService{ + // Type: to.Ptr("AzureStorage"), + // TypeProperties: &armdatafactory.AzureStorageLinkedServiceTypeProperties{ + // ConnectionString: map[string]any{ + // "type": "SecureString", + // "value": "**********", + // }, + // EncryptedCredential: to.Ptr("ew0KICAiVmVyc2lvbiI6ICIyMDE3LTExLTMwIiwNCiAgIlByb3RlY3Rpb25Nb2RlIjogIktleSIsDQogICJTZWNyZXRDb250ZW50VHlwZSI6ICJQbGFpbnRleHQiLA0KICAiQ3JlZGVudGlhbElkIjogIkRGLURPR0ZPT0QtWUFOWkhBTkctV1VfM2FiMTk0NjYtNWUxNi00NzU1LWJlNzktMjI2ZTVmZWU3YzY0Ig0KfQ=="), + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_Update.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_Update.json func ExampleLinkedServicesClient_CreateOrUpdate_linkedServicesUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -86,7 +125,7 @@ func ExampleLinkedServicesClient_CreateOrUpdate_linkedServicesUpdate() { Type: to.Ptr("AzureStorage"), Description: to.Ptr("Example description"), TypeProperties: &armdatafactory.AzureStorageLinkedServiceTypeProperties{ - ConnectionString: map[string]interface{}{ + ConnectionString: map[string]any{ "type": "SecureString", "value": "DefaultEndpointsProtocol=https;AccountName=examplestorageaccount;AccountKey=", }, @@ -96,11 +135,29 @@ func ExampleLinkedServicesClient_CreateOrUpdate_linkedServicesUpdate() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.LinkedServiceResource = armdatafactory.LinkedServiceResource{ + // Name: to.Ptr("exampleLinkedService"), + // Type: to.Ptr("Microsoft.DataFactory/factories/linkedservices"), + // Etag: to.Ptr("0a0064d4-0000-0000-0000-5b245bd00000"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/linkedservices/exampleLinkedService"), + // Properties: &armdatafactory.AzureStorageLinkedService{ + // Type: to.Ptr("AzureStorage"), + // Description: to.Ptr("Example description"), + // TypeProperties: &armdatafactory.AzureStorageLinkedServiceTypeProperties{ + // ConnectionString: map[string]any{ + // "type": "SecureString", + // "value": "**********", + // }, + // EncryptedCredential: to.Ptr("ew0KICAiVmVyc2lvbiI6ICIyMDE3LTExLTMwIiwNCiAgIlByb3RlY3Rpb25Nb2RlIjogIktleSIsDQogICJTZWNyZXRDb250ZW50VHlwZSI6ICJQbGFpbnRleHQiLA0KICAiQ3JlZGVudGlhbElkIjogIkRGLURPR0ZPT0QtWUFOWkhBTkctV1VfMGI2M2EyMmYtMGEzNC00NDg2LWIzMDktNzM0NTlkODUyY2Q1Ig0KfQ=="), + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_Get.json func ExampleLinkedServicesClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -115,11 +172,29 @@ func ExampleLinkedServicesClient_Get() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.LinkedServiceResource = armdatafactory.LinkedServiceResource{ + // Name: to.Ptr("exampleLinkedService"), + // Type: to.Ptr("Microsoft.DataFactory/factories/linkedservices"), + // Etag: to.Ptr("1500474f-0000-0200-0000-5cbe090d0000"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/linkedservices/exampleLinkedService"), + // Properties: &armdatafactory.AzureStorageLinkedService{ + // Type: to.Ptr("AzureStorage"), + // Description: to.Ptr("Example description"), + // TypeProperties: &armdatafactory.AzureStorageLinkedServiceTypeProperties{ + // ConnectionString: map[string]any{ + // "type": "SecureString", + // "value": "**********", + // }, + // EncryptedCredential: to.Ptr("ew0KICAiVmVyc2lvbiI6ICIyMDE3LTExLTMwIiwNCiAgIlByb3RlY3Rpb25Nb2RlIjogIktleSIsDQogICJTZWNyZXRDb250ZW50VHlwZSI6ICJQbGFpbnRleHQiLA0KICAiQ3JlZGVudGlhbElkIjogIkhWVEVTVEVYQU1QTEVTXzg5MjU1NGY0LTViNGItNDFhOS1hYWYxLTg4ZWI5ZDBjOWIzMyINCn0="), + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_Delete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_Delete.json func ExampleLinkedServicesClient_Delete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/datafactory/armdatafactory/managedprivateendpoints_client.go b/sdk/resourcemanager/datafactory/armdatafactory/managedprivateendpoints_client.go index bc7be33c3a33..69dcaa7b7581 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/managedprivateendpoints_client.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/managedprivateendpoints_client.go @@ -32,9 +32,9 @@ type ManagedPrivateEndpointsClient struct { } // NewManagedPrivateEndpointsClient creates a new instance of ManagedPrivateEndpointsClient with the specified values. -// subscriptionID - The subscription identifier. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The subscription identifier. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewManagedPrivateEndpointsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ManagedPrivateEndpointsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,14 +57,15 @@ func NewManagedPrivateEndpointsClient(subscriptionID string, credential azcore.T // CreateOrUpdate - Creates or updates a managed private endpoint. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// managedVirtualNetworkName - Managed virtual network name -// managedPrivateEndpointName - Managed private endpoint name -// managedPrivateEndpoint - Managed private endpoint resource definition. -// options - ManagedPrivateEndpointsClientCreateOrUpdateOptions contains the optional parameters for the ManagedPrivateEndpointsClient.CreateOrUpdate -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - managedVirtualNetworkName - Managed virtual network name +// - managedPrivateEndpointName - Managed private endpoint name +// - managedPrivateEndpoint - Managed private endpoint resource definition. +// - options - ManagedPrivateEndpointsClientCreateOrUpdateOptions contains the optional parameters for the ManagedPrivateEndpointsClient.CreateOrUpdate +// method. func (client *ManagedPrivateEndpointsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, factoryName string, managedVirtualNetworkName string, managedPrivateEndpointName string, managedPrivateEndpoint ManagedPrivateEndpointResource, options *ManagedPrivateEndpointsClientCreateOrUpdateOptions) (ManagedPrivateEndpointsClientCreateOrUpdateResponse, error) { req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, factoryName, managedVirtualNetworkName, managedPrivateEndpointName, managedPrivateEndpoint, options) if err != nil { @@ -128,13 +129,14 @@ func (client *ManagedPrivateEndpointsClient) createOrUpdateHandleResponse(resp * // Delete - Deletes a managed private endpoint. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// managedVirtualNetworkName - Managed virtual network name -// managedPrivateEndpointName - Managed private endpoint name -// options - ManagedPrivateEndpointsClientDeleteOptions contains the optional parameters for the ManagedPrivateEndpointsClient.Delete -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - managedVirtualNetworkName - Managed virtual network name +// - managedPrivateEndpointName - Managed private endpoint name +// - options - ManagedPrivateEndpointsClientDeleteOptions contains the optional parameters for the ManagedPrivateEndpointsClient.Delete +// method. func (client *ManagedPrivateEndpointsClient) Delete(ctx context.Context, resourceGroupName string, factoryName string, managedVirtualNetworkName string, managedPrivateEndpointName string, options *ManagedPrivateEndpointsClientDeleteOptions) (ManagedPrivateEndpointsClientDeleteResponse, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, factoryName, managedVirtualNetworkName, managedPrivateEndpointName, options) if err != nil { @@ -186,13 +188,14 @@ func (client *ManagedPrivateEndpointsClient) deleteCreateRequest(ctx context.Con // Get - Gets a managed private endpoint. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// managedVirtualNetworkName - Managed virtual network name -// managedPrivateEndpointName - Managed private endpoint name -// options - ManagedPrivateEndpointsClientGetOptions contains the optional parameters for the ManagedPrivateEndpointsClient.Get -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - managedVirtualNetworkName - Managed virtual network name +// - managedPrivateEndpointName - Managed private endpoint name +// - options - ManagedPrivateEndpointsClientGetOptions contains the optional parameters for the ManagedPrivateEndpointsClient.Get +// method. func (client *ManagedPrivateEndpointsClient) Get(ctx context.Context, resourceGroupName string, factoryName string, managedVirtualNetworkName string, managedPrivateEndpointName string, options *ManagedPrivateEndpointsClientGetOptions) (ManagedPrivateEndpointsClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, factoryName, managedVirtualNetworkName, managedPrivateEndpointName, options) if err != nil { @@ -255,12 +258,13 @@ func (client *ManagedPrivateEndpointsClient) getHandleResponse(resp *http.Respon } // NewListByFactoryPager - Lists managed private endpoints. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// managedVirtualNetworkName - Managed virtual network name -// options - ManagedPrivateEndpointsClientListByFactoryOptions contains the optional parameters for the ManagedPrivateEndpointsClient.ListByFactory -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - managedVirtualNetworkName - Managed virtual network name +// - options - ManagedPrivateEndpointsClientListByFactoryOptions contains the optional parameters for the ManagedPrivateEndpointsClient.NewListByFactoryPager +// method. func (client *ManagedPrivateEndpointsClient) NewListByFactoryPager(resourceGroupName string, factoryName string, managedVirtualNetworkName string, options *ManagedPrivateEndpointsClientListByFactoryOptions) *runtime.Pager[ManagedPrivateEndpointsClientListByFactoryResponse] { return runtime.NewPager(runtime.PagingHandler[ManagedPrivateEndpointsClientListByFactoryResponse]{ More: func(page ManagedPrivateEndpointsClientListByFactoryResponse) bool { diff --git a/sdk/resourcemanager/datafactory/armdatafactory/managedprivateendpoints_client_example_test.go b/sdk/resourcemanager/datafactory/armdatafactory/managedprivateendpoints_client_example_test.go index dc8740cba475..3c68ca6e0728 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/managedprivateendpoints_client_example_test.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/managedprivateendpoints_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armdatafactory_test @@ -17,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ManagedPrivateEndpoints_ListByFactory.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ManagedPrivateEndpoints_ListByFactory.json func ExampleManagedPrivateEndpointsClient_NewListByFactoryPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -30,18 +31,40 @@ func ExampleManagedPrivateEndpointsClient_NewListByFactoryPager() { } pager := client.NewListByFactoryPager("exampleResourceGroup", "exampleFactoryName", "exampleManagedVirtualNetworkName", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.ManagedPrivateEndpointListResponse = armdatafactory.ManagedPrivateEndpointListResponse{ + // Value: []*armdatafactory.ManagedPrivateEndpointResource{ + // { + // Name: to.Ptr("exampleManagedPrivateEndpointName"), + // Type: to.Ptr("Microsoft.DataFactory/factories/managedVirtualNetworks/managedPrivateEndpoints"), + // Etag: to.Ptr("000046c4-0000-0000-0000-5b2198bf0000"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/managedVirtualNetworks/exampleManagedVirtualNetworkName/managedPrivateEndpoints/exampleManagedPrivateEndpointName"), + // Properties: &armdatafactory.ManagedPrivateEndpoint{ + // ConnectionState: &armdatafactory.ConnectionStateProperties{ + // Description: to.Ptr(""), + // ActionsRequired: to.Ptr("None"), + // Status: to.Ptr("Pending"), + // }, + // Fqdns: []*string{ + // }, + // GroupID: to.Ptr("blob"), + // PrivateLinkResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.Storage/storageAccounts/exampleBlobStorage"), + // ProvisioningState: to.Ptr("Succeeded"), + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ManagedPrivateEndpoints_Create.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ManagedPrivateEndpoints_Create.json func ExampleManagedPrivateEndpointsClient_CreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -62,11 +85,30 @@ func ExampleManagedPrivateEndpointsClient_CreateOrUpdate() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.ManagedPrivateEndpointResource = armdatafactory.ManagedPrivateEndpointResource{ + // Name: to.Ptr("exampleManagedPrivateEndpointName"), + // Type: to.Ptr("Microsoft.DataFactory/factories/managedVirtualNetworks/managedPrivateEndpoints"), + // Etag: to.Ptr("000046c4-0000-0000-0000-5b2198bf0000"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/managedVirtualNetworks/exampleManagedVirtualNetworkName/managedPrivateEndpoints/exampleManagedPrivateEndpointName"), + // Properties: &armdatafactory.ManagedPrivateEndpoint{ + // ConnectionState: &armdatafactory.ConnectionStateProperties{ + // Description: to.Ptr(""), + // ActionsRequired: to.Ptr("None"), + // Status: to.Ptr("Pending"), + // }, + // Fqdns: []*string{ + // }, + // GroupID: to.Ptr("blob"), + // PrivateLinkResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.Storage/storageAccounts/exampleBlobStorage"), + // ProvisioningState: to.Ptr("Succeeded"), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ManagedPrivateEndpoints_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ManagedPrivateEndpoints_Get.json func ExampleManagedPrivateEndpointsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -81,11 +123,30 @@ func ExampleManagedPrivateEndpointsClient_Get() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.ManagedPrivateEndpointResource = armdatafactory.ManagedPrivateEndpointResource{ + // Name: to.Ptr("exampleManagedPrivateEndpointName"), + // Type: to.Ptr("Microsoft.DataFactory/factories/managedVirtualNetworks/managedPrivateEndpoints"), + // Etag: to.Ptr("000046c4-0000-0000-0000-5b2198bf0000"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/managedVirtualNetworks/exampleManagedVirtualNetworkName/managedPrivateEndpoints/exampleManagedPrivateEndpointName"), + // Properties: &armdatafactory.ManagedPrivateEndpoint{ + // ConnectionState: &armdatafactory.ConnectionStateProperties{ + // Description: to.Ptr(""), + // ActionsRequired: to.Ptr("None"), + // Status: to.Ptr("Pending"), + // }, + // Fqdns: []*string{ + // }, + // GroupID: to.Ptr("blob"), + // PrivateLinkResourceID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.Storage/storageAccounts/exampleBlobStorage"), + // ProvisioningState: to.Ptr("Succeeded"), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ManagedPrivateEndpoints_Delete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ManagedPrivateEndpoints_Delete.json func ExampleManagedPrivateEndpointsClient_Delete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/datafactory/armdatafactory/managedvirtualnetworks_client.go b/sdk/resourcemanager/datafactory/armdatafactory/managedvirtualnetworks_client.go index 51ea09b7b913..ba0f25fdca84 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/managedvirtualnetworks_client.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/managedvirtualnetworks_client.go @@ -32,9 +32,9 @@ type ManagedVirtualNetworksClient struct { } // NewManagedVirtualNetworksClient creates a new instance of ManagedVirtualNetworksClient with the specified values. -// subscriptionID - The subscription identifier. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The subscription identifier. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewManagedVirtualNetworksClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ManagedVirtualNetworksClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,13 +57,14 @@ func NewManagedVirtualNetworksClient(subscriptionID string, credential azcore.To // CreateOrUpdate - Creates or updates a managed Virtual Network. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// managedVirtualNetworkName - Managed virtual network name -// managedVirtualNetwork - Managed Virtual Network resource definition. -// options - ManagedVirtualNetworksClientCreateOrUpdateOptions contains the optional parameters for the ManagedVirtualNetworksClient.CreateOrUpdate -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - managedVirtualNetworkName - Managed virtual network name +// - managedVirtualNetwork - Managed Virtual Network resource definition. +// - options - ManagedVirtualNetworksClientCreateOrUpdateOptions contains the optional parameters for the ManagedVirtualNetworksClient.CreateOrUpdate +// method. func (client *ManagedVirtualNetworksClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, factoryName string, managedVirtualNetworkName string, managedVirtualNetwork ManagedVirtualNetworkResource, options *ManagedVirtualNetworksClientCreateOrUpdateOptions) (ManagedVirtualNetworksClientCreateOrUpdateResponse, error) { req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, factoryName, managedVirtualNetworkName, managedVirtualNetwork, options) if err != nil { @@ -123,12 +124,13 @@ func (client *ManagedVirtualNetworksClient) createOrUpdateHandleResponse(resp *h // Get - Gets a managed Virtual Network. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// managedVirtualNetworkName - Managed virtual network name -// options - ManagedVirtualNetworksClientGetOptions contains the optional parameters for the ManagedVirtualNetworksClient.Get -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - managedVirtualNetworkName - Managed virtual network name +// - options - ManagedVirtualNetworksClientGetOptions contains the optional parameters for the ManagedVirtualNetworksClient.Get +// method. func (client *ManagedVirtualNetworksClient) Get(ctx context.Context, resourceGroupName string, factoryName string, managedVirtualNetworkName string, options *ManagedVirtualNetworksClientGetOptions) (ManagedVirtualNetworksClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, factoryName, managedVirtualNetworkName, options) if err != nil { @@ -187,11 +189,12 @@ func (client *ManagedVirtualNetworksClient) getHandleResponse(resp *http.Respons } // NewListByFactoryPager - Lists managed Virtual Networks. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// options - ManagedVirtualNetworksClientListByFactoryOptions contains the optional parameters for the ManagedVirtualNetworksClient.ListByFactory -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - options - ManagedVirtualNetworksClientListByFactoryOptions contains the optional parameters for the ManagedVirtualNetworksClient.NewListByFactoryPager +// method. func (client *ManagedVirtualNetworksClient) NewListByFactoryPager(resourceGroupName string, factoryName string, options *ManagedVirtualNetworksClientListByFactoryOptions) *runtime.Pager[ManagedVirtualNetworksClientListByFactoryResponse] { return runtime.NewPager(runtime.PagingHandler[ManagedVirtualNetworksClientListByFactoryResponse]{ More: func(page ManagedVirtualNetworksClientListByFactoryResponse) bool { diff --git a/sdk/resourcemanager/datafactory/armdatafactory/managedvirtualnetworks_client_example_test.go b/sdk/resourcemanager/datafactory/armdatafactory/managedvirtualnetworks_client_example_test.go index 167669290af8..785db4debdec 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/managedvirtualnetworks_client_example_test.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/managedvirtualnetworks_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armdatafactory_test @@ -16,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ManagedVirtualNetworks_ListByFactory.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ManagedVirtualNetworks_ListByFactory.json func ExampleManagedVirtualNetworksClient_NewListByFactoryPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -29,18 +30,32 @@ func ExampleManagedVirtualNetworksClient_NewListByFactoryPager() { } pager := client.NewListByFactoryPager("exampleResourceGroup", "exampleFactoryName", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.ManagedVirtualNetworkListResponse = armdatafactory.ManagedVirtualNetworkListResponse{ + // Value: []*armdatafactory.ManagedVirtualNetworkResource{ + // { + // Name: to.Ptr("exampleManagedVirtualNetworkName"), + // Type: to.Ptr("Microsoft.DataFactory/factories/managedVirtualNetworks"), + // Etag: to.Ptr("0400f1a1-0000-0000-0000-5b2188640000"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/managedVirtualNetworks/exampleManagedVirtualNetworkName"), + // Properties: &armdatafactory.ManagedVirtualNetwork{ + // Alias: to.Ptr("exampleFactoryName"), + // VNetID: to.Ptr("5a7bd944-87e6-454a-8d4d-9fba446514fd"), + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ManagedVirtualNetworks_Create.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ManagedVirtualNetworks_Create.json func ExampleManagedVirtualNetworksClient_CreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -57,11 +72,22 @@ func ExampleManagedVirtualNetworksClient_CreateOrUpdate() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.ManagedVirtualNetworkResource = armdatafactory.ManagedVirtualNetworkResource{ + // Name: to.Ptr("exampleManagedVirtualNetworkName"), + // Type: to.Ptr("Microsoft.DataFactory/factories/managedVirtualNetworks"), + // Etag: to.Ptr("000046c4-0000-0000-0000-5b2198bf0000"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/managedVirtualNetworks/exampleManagedVirtualNetworkName"), + // Properties: &armdatafactory.ManagedVirtualNetwork{ + // Alias: to.Ptr("exampleFactoryName"), + // VNetID: to.Ptr("12345678-1234-1234-1234-12345678123"), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ManagedVirtualNetworks_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ManagedVirtualNetworks_Get.json func ExampleManagedVirtualNetworksClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -76,6 +102,17 @@ func ExampleManagedVirtualNetworksClient_Get() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.ManagedVirtualNetworkResource = armdatafactory.ManagedVirtualNetworkResource{ + // Name: to.Ptr("exampleManagedVirtualNetworkName"), + // Type: to.Ptr("Microsoft.DataFactory/factories/managedVirtualNetworks"), + // Etag: to.Ptr("15003c4f-0000-0200-0000-5cbe090b0000"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/managedVirtualNetworks/exampleManagedVirtualNetworkName"), + // Properties: &armdatafactory.ManagedVirtualNetwork{ + // Alias: to.Ptr("exampleFactoryName"), + // VNetID: to.Ptr("5a7bd944-87e6-454a-8d4d-9fba446514fd"), + // }, + // } } diff --git a/sdk/resourcemanager/datafactory/armdatafactory/models.go b/sdk/resourcemanager/datafactory/armdatafactory/models.go index b29d662434a4..9c627e8e0ec9 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/models.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/models.go @@ -48,7 +48,7 @@ type Activity struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` @@ -72,16 +72,16 @@ type ActivityDependency struct { DependencyConditions []*DependencyCondition `json:"dependencyConditions,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any } // ActivityPolicy - Execution policy for an activity. type ActivityPolicy struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Maximum ordinary retry attempts. Default is 0. Type: integer (or Expression with resultType integer), minimum: 0. - Retry interface{} `json:"retry,omitempty"` + Retry any `json:"retry,omitempty"` // Interval between each retry attempt (in seconds). The default is 30 sec. RetryIntervalInSeconds *int32 `json:"retryIntervalInSeconds,omitempty"` @@ -94,13 +94,13 @@ type ActivityPolicy struct { // Specifies the timeout for the activity to run. The default timeout is 7 days. Type: string (or Expression with resultType // string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - Timeout interface{} `json:"timeout,omitempty"` + Timeout any `json:"timeout,omitempty"` } // ActivityRun - Information about an activity run in a pipeline. type ActivityRun struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // READ-ONLY; The name of the activity. ActivityName *string `json:"activityName,omitempty" azure:"ro"` @@ -121,16 +121,16 @@ type ActivityRun struct { DurationInMs *int32 `json:"durationInMs,omitempty" azure:"ro"` // READ-ONLY; The error if any from the activity run. - Error interface{} `json:"error,omitempty" azure:"ro"` + Error any `json:"error,omitempty" azure:"ro"` // READ-ONLY; The input for the activity. - Input interface{} `json:"input,omitempty" azure:"ro"` + Input any `json:"input,omitempty" azure:"ro"` // READ-ONLY; The name of the compute linked service. LinkedServiceName *string `json:"linkedServiceName,omitempty" azure:"ro"` // READ-ONLY; The output for the activity. - Output interface{} `json:"output,omitempty" azure:"ro"` + Output any `json:"output,omitempty" azure:"ro"` // READ-ONLY; The name of the pipeline. PipelineName *string `json:"pipelineName,omitempty" azure:"ro"` @@ -172,10 +172,10 @@ type AmazonMWSLinkedService struct { TypeProperties *AmazonMWSLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -202,21 +202,21 @@ func (a *AmazonMWSLinkedService) GetLinkedService() *LinkedService { // AmazonMWSLinkedServiceTypeProperties - Amazon Marketplace Web Service linked service properties. type AmazonMWSLinkedServiceTypeProperties struct { // REQUIRED; The access key id used to access data. - AccessKeyID interface{} `json:"accessKeyId,omitempty"` + AccessKeyID any `json:"accessKeyId,omitempty"` // REQUIRED; The endpoint of the Amazon MWS server, (i.e. mws.amazonservices.com) - Endpoint interface{} `json:"endpoint,omitempty"` + Endpoint any `json:"endpoint,omitempty"` // REQUIRED; The Amazon Marketplace ID you want to retrieve data from. To retrieve data from multiple Marketplace IDs, separate // them with a comma (,). (i.e. A2EUQ1WTGCTBG2) - MarketplaceID interface{} `json:"marketplaceID,omitempty"` + MarketplaceID any `json:"marketplaceID,omitempty"` // REQUIRED; The Amazon seller ID. - SellerID interface{} `json:"sellerID,omitempty"` + SellerID any `json:"sellerID,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // The Amazon MWS authentication token. MwsAuthToken SecretBaseClassification `json:"mwsAuthToken,omitempty"` @@ -225,14 +225,14 @@ type AmazonMWSLinkedServiceTypeProperties struct { SecretKey SecretBaseClassification `json:"secretKey,omitempty"` // Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. - UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` + UseEncryptedEndpoints any `json:"useEncryptedEndpoints,omitempty"` // Specifies whether to require the host name in the server's certificate to match the host name of the server when connecting // over SSL. The default value is true. - UseHostVerification interface{} `json:"useHostVerification,omitempty"` + UseHostVerification any `json:"useHostVerification,omitempty"` // Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. - UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` + UsePeerVerification any `json:"usePeerVerification,omitempty"` } // AmazonMWSObjectDataset - Amazon Marketplace Web Service dataset. @@ -244,10 +244,10 @@ type AmazonMWSObjectDataset struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -260,10 +260,10 @@ type AmazonMWSObjectDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` // Properties specific to this dataset type. TypeProperties *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` @@ -291,28 +291,28 @@ type AmazonMWSSource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type AmazonMWSSource. @@ -344,11 +344,11 @@ func (a *AmazonMWSSource) GetTabularSource() *TabularSource { // AmazonRdsForLinkedServiceTypeProperties - AmazonRdsForOracle database linked service properties. type AmazonRdsForLinkedServiceTypeProperties struct { // REQUIRED; The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` + ConnectionString any `json:"connectionString,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // The Azure key vault secret reference of password in connection string. Password SecretBaseClassification `json:"password,omitempty"` @@ -363,10 +363,10 @@ type AmazonRdsForOracleLinkedService struct { TypeProperties *AmazonRdsForLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -394,18 +394,18 @@ func (a *AmazonRdsForOracleLinkedService) GetLinkedService() *LinkedService { type AmazonRdsForOraclePartitionSettings struct { // The name of the column in integer type that will be used for proceeding range partitioning. Type: string (or Expression // with resultType string). - PartitionColumnName interface{} `json:"partitionColumnName,omitempty"` + PartitionColumnName any `json:"partitionColumnName,omitempty"` // The minimum value of column specified in partitionColumnName that will be used for proceeding range partitioning. Type: // string (or Expression with resultType string). - PartitionLowerBound interface{} `json:"partitionLowerBound,omitempty"` + PartitionLowerBound any `json:"partitionLowerBound,omitempty"` // Names of the physical partitions of AmazonRdsForOracle table. - PartitionNames interface{} `json:"partitionNames,omitempty"` + PartitionNames any `json:"partitionNames,omitempty"` // The maximum value of column specified in partitionColumnName that will be used for proceeding range partitioning. Type: // string (or Expression with resultType string). - PartitionUpperBound interface{} `json:"partitionUpperBound,omitempty"` + PartitionUpperBound any `json:"partitionUpperBound,omitempty"` } // AmazonRdsForOracleSource - A copy activity AmazonRdsForOracle source. @@ -415,35 +415,35 @@ type AmazonRdsForOracleSource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // AmazonRdsForOracle reader query. Type: string (or Expression with resultType string). - OracleReaderQuery interface{} `json:"oracleReaderQuery,omitempty"` + OracleReaderQuery any `json:"oracleReaderQuery,omitempty"` // The partition mechanism that will be used for AmazonRdsForOracle read in parallel. Type: string (or Expression with resultType // string). - PartitionOption interface{} `json:"partitionOption,omitempty"` + PartitionOption any `json:"partitionOption,omitempty"` // The settings that will be leveraged for AmazonRdsForOracle source partitioning. PartitionSettings *AmazonRdsForOraclePartitionSettings `json:"partitionSettings,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type AmazonRdsForOracleSource. @@ -467,10 +467,10 @@ type AmazonRdsForOracleTableDataset struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -483,10 +483,10 @@ type AmazonRdsForOracleTableDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` // AmazonRdsForOracle dataset properties. TypeProperties *AmazonRdsForOracleTableDatasetTypeProperties `json:"typeProperties,omitempty"` @@ -510,10 +510,10 @@ func (a *AmazonRdsForOracleTableDataset) GetDataset() *Dataset { // AmazonRdsForOracleTableDatasetTypeProperties - AmazonRdsForOracle dataset properties. type AmazonRdsForOracleTableDatasetTypeProperties struct { // The schema name of the AmazonRdsForOracle database. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // The table name of the AmazonRdsForOracle database. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` + Table any `json:"table,omitempty"` } // AmazonRdsForSQLServerLinkedService - Amazon RDS for SQL Server linked service. @@ -525,10 +525,10 @@ type AmazonRdsForSQLServerLinkedService struct { TypeProperties *AmazonRdsForSQLServerLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -555,20 +555,20 @@ func (a *AmazonRdsForSQLServerLinkedService) GetLinkedService() *LinkedService { // AmazonRdsForSQLServerLinkedServiceTypeProperties - Amazon Rds for SQL Server linked service properties. type AmazonRdsForSQLServerLinkedServiceTypeProperties struct { // REQUIRED; The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` + ConnectionString any `json:"connectionString,omitempty"` // Sql always encrypted properties. AlwaysEncryptedSettings *SQLAlwaysEncryptedProperties `json:"alwaysEncryptedSettings,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // The on-premises Windows authentication password. Password SecretBaseClassification `json:"password,omitempty"` // The on-premises Windows authentication user name. Type: string (or Expression with resultType string). - UserName interface{} `json:"userName,omitempty"` + UserName any `json:"userName,omitempty"` } // AmazonRdsForSQLServerSource - A copy activity Amazon RDS for SQL Server source. @@ -578,45 +578,45 @@ type AmazonRdsForSQLServerSource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // The partition mechanism that will be used for Sql read in parallel. Possible values include: "None", "PhysicalPartitionsOfTable", // "DynamicRange". - PartitionOption interface{} `json:"partitionOption,omitempty"` + PartitionOption any `json:"partitionOption,omitempty"` // The settings that will be leveraged for Sql source partitioning. PartitionSettings *SQLPartitionSettings `json:"partitionSettings,omitempty"` // Which additional types to produce. - ProduceAdditionalTypes interface{} `json:"produceAdditionalTypes,omitempty"` + ProduceAdditionalTypes any `json:"produceAdditionalTypes,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any `json:"queryTimeout,omitempty"` // SQL reader query. Type: string (or Expression with resultType string). - SQLReaderQuery interface{} `json:"sqlReaderQuery,omitempty"` + SQLReaderQuery any `json:"sqlReaderQuery,omitempty"` // Name of the stored procedure for a SQL Database source. This cannot be used at the same time as SqlReaderQuery. Type: string // (or Expression with resultType string). - SQLReaderStoredProcedureName interface{} `json:"sqlReaderStoredProcedureName,omitempty"` + SQLReaderStoredProcedureName any `json:"sqlReaderStoredProcedureName,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` // Value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". - StoredProcedureParameters interface{} `json:"storedProcedureParameters,omitempty"` + StoredProcedureParameters any `json:"storedProcedureParameters,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type AmazonRdsForSQLServerSource. @@ -654,10 +654,10 @@ type AmazonRdsForSQLServerTableDataset struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -670,10 +670,10 @@ type AmazonRdsForSQLServerTableDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` // The Amazon RDS for SQL Server dataset properties. TypeProperties *AmazonRdsForSQLServerTableDatasetTypeProperties `json:"typeProperties,omitempty"` @@ -697,10 +697,10 @@ func (a *AmazonRdsForSQLServerTableDataset) GetDataset() *Dataset { // AmazonRdsForSQLServerTableDatasetTypeProperties - The Amazon RDS for SQL Server dataset properties. type AmazonRdsForSQLServerTableDatasetTypeProperties struct { // The schema name of the SQL Server dataset. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // The table name of the SQL Server dataset. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` + Table any `json:"table,omitempty"` } // AmazonRedshiftLinkedService - Linked service for Amazon Redshift. @@ -712,10 +712,10 @@ type AmazonRedshiftLinkedService struct { TypeProperties *AmazonRedshiftLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -742,24 +742,24 @@ func (a *AmazonRedshiftLinkedService) GetLinkedService() *LinkedService { // AmazonRedshiftLinkedServiceTypeProperties - Amazon Redshift linked service properties. type AmazonRedshiftLinkedServiceTypeProperties struct { // REQUIRED; The database name of the Amazon Redshift source. Type: string (or Expression with resultType string). - Database interface{} `json:"database,omitempty"` + Database any `json:"database,omitempty"` // REQUIRED; The name of the Amazon Redshift server. Type: string (or Expression with resultType string). - Server interface{} `json:"server,omitempty"` + Server any `json:"server,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // The password of the Amazon Redshift source. Password SecretBaseClassification `json:"password,omitempty"` // The TCP port number that the Amazon Redshift server uses to listen for client connections. The default value is 5439. Type: // integer (or Expression with resultType integer). - Port interface{} `json:"port,omitempty"` + Port any `json:"port,omitempty"` // The username of the Amazon Redshift source. Type: string (or Expression with resultType string). - Username interface{} `json:"username,omitempty"` + Username any `json:"username,omitempty"` } // AmazonRedshiftSource - A copy activity source for Amazon Redshift Source. @@ -769,22 +769,22 @@ type AmazonRedshiftSource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // Database query. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any `json:"queryTimeout,omitempty"` // The Amazon S3 settings needed for the interim Amazon S3 when copying from Amazon Redshift with unload. With this, data // from Amazon Redshift source will be unloaded into S3 first and then copied into @@ -792,10 +792,10 @@ type AmazonRedshiftSource struct { RedshiftUnloadSettings *RedshiftUnloadSettings `json:"redshiftUnloadSettings,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type AmazonRedshiftSource. @@ -833,10 +833,10 @@ type AmazonRedshiftTableDataset struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -849,10 +849,10 @@ type AmazonRedshiftTableDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` // Amazon Redshift table dataset properties. TypeProperties *AmazonRedshiftTableDatasetTypeProperties `json:"typeProperties,omitempty"` @@ -876,13 +876,13 @@ func (a *AmazonRedshiftTableDataset) GetDataset() *Dataset { // AmazonRedshiftTableDatasetTypeProperties - Amazon Redshift table dataset properties. type AmazonRedshiftTableDatasetTypeProperties struct { // The Amazon Redshift schema name. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // The Amazon Redshift table name. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` + Table any `json:"table,omitempty"` // This property will be retired. Please consider using schema + table properties instead. - TableName interface{} `json:"tableName,omitempty"` + TableName any `json:"tableName,omitempty"` } // AmazonS3CompatibleLinkedService - Linked service for Amazon S3 Compatible. @@ -894,10 +894,10 @@ type AmazonS3CompatibleLinkedService struct { TypeProperties *AmazonS3CompatibleLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -925,15 +925,15 @@ func (a *AmazonS3CompatibleLinkedService) GetLinkedService() *LinkedService { type AmazonS3CompatibleLinkedServiceTypeProperties struct { // The access key identifier of the Amazon S3 Compatible Identity and Access Management (IAM) user. Type: string (or Expression // with resultType string). - AccessKeyID interface{} `json:"accessKeyId,omitempty"` + AccessKeyID any `json:"accessKeyId,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // If true, use S3 path-style access instead of virtual hosted-style access. Default value is false. Type: boolean (or Expression // with resultType boolean). - ForcePathStyle interface{} `json:"forcePathStyle,omitempty"` + ForcePathStyle any `json:"forcePathStyle,omitempty"` // The secret access key of the Amazon S3 Compatible Identity and Access Management (IAM) user. SecretAccessKey SecretBaseClassification `json:"secretAccessKey,omitempty"` @@ -941,7 +941,7 @@ type AmazonS3CompatibleLinkedServiceTypeProperties struct { // This value specifies the endpoint to access with the Amazon S3 Compatible Connector. This is an optional property; change // it only if you want to try a different service endpoint or want to switch // between https and http. Type: string (or Expression with resultType string). - ServiceURL interface{} `json:"serviceUrl,omitempty"` + ServiceURL any `json:"serviceUrl,omitempty"` } // AmazonS3CompatibleLocation - The location of Amazon S3 Compatible dataset. @@ -950,19 +950,19 @@ type AmazonS3CompatibleLocation struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Specify the bucketName of Amazon S3 Compatible. Type: string (or Expression with resultType string) - BucketName interface{} `json:"bucketName,omitempty"` + BucketName any `json:"bucketName,omitempty"` // Specify the file name of dataset. Type: string (or Expression with resultType string). - FileName interface{} `json:"fileName,omitempty"` + FileName any `json:"fileName,omitempty"` // Specify the folder path of dataset. Type: string (or Expression with resultType string) - FolderPath interface{} `json:"folderPath,omitempty"` + FolderPath any `json:"folderPath,omitempty"` // Specify the version of Amazon S3 Compatible. Type: string (or Expression with resultType string). - Version interface{} `json:"version,omitempty"` + Version any `json:"version,omitempty"` } // GetDatasetLocation implements the DatasetLocationClassification interface for type AmazonS3CompatibleLocation. @@ -981,46 +981,46 @@ type AmazonS3CompatibleReadSettings struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Indicates whether the source files need to be deleted after copy completion. Default is false. Type: boolean (or Expression // with resultType boolean). - DeleteFilesAfterCompletion interface{} `json:"deleteFilesAfterCompletion,omitempty"` + DeleteFilesAfterCompletion any `json:"deleteFilesAfterCompletion,omitempty"` // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // Indicates whether to enable partition discovery. EnablePartitionDiscovery *bool `json:"enablePartitionDiscovery,omitempty"` // Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. // Type: string (or Expression with resultType string). - FileListPath interface{} `json:"fileListPath,omitempty"` + FileListPath any `json:"fileListPath,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // The end of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` + ModifiedDatetimeEnd any `json:"modifiedDatetimeEnd,omitempty"` // The start of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` + ModifiedDatetimeStart any `json:"modifiedDatetimeStart,omitempty"` // Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). - PartitionRootPath interface{} `json:"partitionRootPath,omitempty"` + PartitionRootPath any `json:"partitionRootPath,omitempty"` // The prefix filter for the S3 Compatible object name. Type: string (or Expression with resultType string). - Prefix interface{} `json:"prefix,omitempty"` + Prefix any `json:"prefix,omitempty"` // If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType // boolean). - Recursive interface{} `json:"recursive,omitempty"` + Recursive any `json:"recursive,omitempty"` // Amazon S3 Compatible wildcardFileName. Type: string (or Expression with resultType string). - WildcardFileName interface{} `json:"wildcardFileName,omitempty"` + WildcardFileName any `json:"wildcardFileName,omitempty"` // Amazon S3 Compatible wildcardFolderPath. Type: string (or Expression with resultType string). - WildcardFolderPath interface{} `json:"wildcardFolderPath,omitempty"` + WildcardFolderPath any `json:"wildcardFolderPath,omitempty"` } // GetStoreReadSettings implements the StoreReadSettingsClassification interface for type AmazonS3CompatibleReadSettings. @@ -1045,10 +1045,10 @@ type AmazonS3Dataset struct { TypeProperties *AmazonS3DatasetTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -1061,10 +1061,10 @@ type AmazonS3Dataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` } // GetDataset implements the DatasetClassification interface for type AmazonS3Dataset. @@ -1085,7 +1085,7 @@ func (a *AmazonS3Dataset) GetDataset() *Dataset { // AmazonS3DatasetTypeProperties - Amazon S3 dataset properties. type AmazonS3DatasetTypeProperties struct { // REQUIRED; The name of the Amazon S3 bucket. Type: string (or Expression with resultType string). - BucketName interface{} `json:"bucketName,omitempty"` + BucketName any `json:"bucketName,omitempty"` // The data compression method used for the Amazon S3 object. Compression *DatasetCompression `json:"compression,omitempty"` @@ -1094,19 +1094,19 @@ type AmazonS3DatasetTypeProperties struct { Format DatasetStorageFormatClassification `json:"format,omitempty"` // The key of the Amazon S3 object. Type: string (or Expression with resultType string). - Key interface{} `json:"key,omitempty"` + Key any `json:"key,omitempty"` // The end of S3 object's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` + ModifiedDatetimeEnd any `json:"modifiedDatetimeEnd,omitempty"` // The start of S3 object's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` + ModifiedDatetimeStart any `json:"modifiedDatetimeStart,omitempty"` // The prefix filter for the S3 object name. Type: string (or Expression with resultType string). - Prefix interface{} `json:"prefix,omitempty"` + Prefix any `json:"prefix,omitempty"` // The version for the S3 object. Type: string (or Expression with resultType string). - Version interface{} `json:"version,omitempty"` + Version any `json:"version,omitempty"` } // AmazonS3LinkedService - Linked service for Amazon S3. @@ -1118,10 +1118,10 @@ type AmazonS3LinkedService struct { TypeProperties *AmazonS3LinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -1149,15 +1149,15 @@ func (a *AmazonS3LinkedService) GetLinkedService() *LinkedService { type AmazonS3LinkedServiceTypeProperties struct { // The access key identifier of the Amazon S3 Identity and Access Management (IAM) user. Type: string (or Expression with // resultType string). - AccessKeyID interface{} `json:"accessKeyId,omitempty"` + AccessKeyID any `json:"accessKeyId,omitempty"` // The authentication type of S3. Allowed value: AccessKey (default) or TemporarySecurityCredentials. Type: string (or Expression // with resultType string). - AuthenticationType interface{} `json:"authenticationType,omitempty"` + AuthenticationType any `json:"authenticationType,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // The secret access key of the Amazon S3 Identity and Access Management (IAM) user. SecretAccessKey SecretBaseClassification `json:"secretAccessKey,omitempty"` @@ -1165,7 +1165,7 @@ type AmazonS3LinkedServiceTypeProperties struct { // This value specifies the endpoint to access with the S3 Connector. This is an optional property; change it only if you // want to try a different service endpoint or want to switch between https and // http. Type: string (or Expression with resultType string). - ServiceURL interface{} `json:"serviceUrl,omitempty"` + ServiceURL any `json:"serviceUrl,omitempty"` // The session token for the S3 temporary security credential. SessionToken SecretBaseClassification `json:"sessionToken,omitempty"` @@ -1177,19 +1177,19 @@ type AmazonS3Location struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Specify the bucketName of amazon S3. Type: string (or Expression with resultType string) - BucketName interface{} `json:"bucketName,omitempty"` + BucketName any `json:"bucketName,omitempty"` // Specify the file name of dataset. Type: string (or Expression with resultType string). - FileName interface{} `json:"fileName,omitempty"` + FileName any `json:"fileName,omitempty"` // Specify the folder path of dataset. Type: string (or Expression with resultType string) - FolderPath interface{} `json:"folderPath,omitempty"` + FolderPath any `json:"folderPath,omitempty"` // Specify the version of amazon S3. Type: string (or Expression with resultType string). - Version interface{} `json:"version,omitempty"` + Version any `json:"version,omitempty"` } // GetDatasetLocation implements the DatasetLocationClassification interface for type AmazonS3Location. @@ -1208,46 +1208,46 @@ type AmazonS3ReadSettings struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Indicates whether the source files need to be deleted after copy completion. Default is false. Type: boolean (or Expression // with resultType boolean). - DeleteFilesAfterCompletion interface{} `json:"deleteFilesAfterCompletion,omitempty"` + DeleteFilesAfterCompletion any `json:"deleteFilesAfterCompletion,omitempty"` // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // Indicates whether to enable partition discovery. EnablePartitionDiscovery *bool `json:"enablePartitionDiscovery,omitempty"` // Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. // Type: string (or Expression with resultType string). - FileListPath interface{} `json:"fileListPath,omitempty"` + FileListPath any `json:"fileListPath,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // The end of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` + ModifiedDatetimeEnd any `json:"modifiedDatetimeEnd,omitempty"` // The start of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` + ModifiedDatetimeStart any `json:"modifiedDatetimeStart,omitempty"` // Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). - PartitionRootPath interface{} `json:"partitionRootPath,omitempty"` + PartitionRootPath any `json:"partitionRootPath,omitempty"` // The prefix filter for the S3 object name. Type: string (or Expression with resultType string). - Prefix interface{} `json:"prefix,omitempty"` + Prefix any `json:"prefix,omitempty"` // If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType // boolean). - Recursive interface{} `json:"recursive,omitempty"` + Recursive any `json:"recursive,omitempty"` // AmazonS3 wildcardFileName. Type: string (or Expression with resultType string). - WildcardFileName interface{} `json:"wildcardFileName,omitempty"` + WildcardFileName any `json:"wildcardFileName,omitempty"` // AmazonS3 wildcardFolderPath. Type: string (or Expression with resultType string). - WildcardFolderPath interface{} `json:"wildcardFolderPath,omitempty"` + WildcardFolderPath any `json:"wildcardFolderPath,omitempty"` } // GetStoreReadSettings implements the StoreReadSettingsClassification interface for type AmazonS3ReadSettings. @@ -1269,10 +1269,10 @@ type AppFiguresLinkedService struct { TypeProperties *AppFiguresLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -1305,7 +1305,7 @@ type AppFiguresLinkedServiceTypeProperties struct { Password SecretBaseClassification `json:"password,omitempty"` // REQUIRED; The username of the Appfigures source. - UserName interface{} `json:"userName,omitempty"` + UserName any `json:"userName,omitempty"` } // AppendVariableActivity - Append value for a Variable of type Array. @@ -1320,7 +1320,7 @@ type AppendVariableActivity struct { TypeProperties *AppendVariableActivityTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` @@ -1359,7 +1359,7 @@ func (a *AppendVariableActivity) GetControlActivity() *ControlActivity { // AppendVariableActivityTypeProperties - AppendVariable activity properties. type AppendVariableActivityTypeProperties struct { // Value to be appended. Could be a static value or Expression - Value interface{} `json:"value,omitempty"` + Value any `json:"value,omitempty"` // Name of the variable whose value needs to be appended to. VariableName *string `json:"variableName,omitempty"` @@ -1380,10 +1380,10 @@ type AsanaLinkedService struct { TypeProperties *AsanaLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -1414,7 +1414,7 @@ type AsanaLinkedServiceTypeProperties struct { // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` } // AvroDataset - Avro dataset. @@ -1426,10 +1426,10 @@ type AvroDataset struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -1442,10 +1442,10 @@ type AvroDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` // Avro dataset properties. TypeProperties *AvroDatasetTypeProperties `json:"typeProperties,omitempty"` @@ -1472,8 +1472,8 @@ type AvroDatasetTypeProperties struct { Location DatasetLocationClassification `json:"location,omitempty"` // The data avroCompressionCodec. Type: string (or Expression with resultType string). - AvroCompressionCodec interface{} `json:"avroCompressionCodec,omitempty"` - AvroCompressionLevel *int32 `json:"avroCompressionLevel,omitempty"` + AvroCompressionCodec any `json:"avroCompressionCodec,omitempty"` + AvroCompressionLevel *int32 `json:"avroCompressionLevel,omitempty"` } // AvroFormat - The data stored in Avro format. @@ -1482,13 +1482,13 @@ type AvroFormat struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Deserializer. Type: string (or Expression with resultType string). - Deserializer interface{} `json:"deserializer,omitempty"` + Deserializer any `json:"deserializer,omitempty"` // Serializer. Type: string (or Expression with resultType string). - Serializer interface{} `json:"serializer,omitempty"` + Serializer any `json:"serializer,omitempty"` } // GetDatasetStorageFormat implements the DatasetStorageFormatClassification interface for type AvroFormat. @@ -1507,31 +1507,31 @@ type AvroSink struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // Avro format settings. FormatSettings *AvroWriteSettings `json:"formatSettings,omitempty"` // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + SinkRetryCount any `json:"sinkRetryCount,omitempty"` // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + SinkRetryWait any `json:"sinkRetryWait,omitempty"` // Avro store settings. StoreSettings StoreWriteSettingsClassification `json:"storeSettings,omitempty"` // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + WriteBatchSize any `json:"writeBatchSize,omitempty"` // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + WriteBatchTimeout any `json:"writeBatchTimeout,omitempty"` } // GetCopySink implements the CopySinkClassification interface for type AvroSink. @@ -1555,22 +1555,22 @@ type AvroSource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` // Avro store settings. StoreSettings StoreReadSettingsClassification `json:"storeSettings,omitempty"` @@ -1594,15 +1594,15 @@ type AvroWriteSettings struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Specifies the file name pattern _. when copy from non-file based store without partitionOptions. Type: string (or Expression // with resultType string). - FileNamePrefix interface{} `json:"fileNamePrefix,omitempty"` + FileNamePrefix any `json:"fileNamePrefix,omitempty"` // Limit the written file's row count to be smaller than or equal to the specified count. Type: integer (or Expression with // resultType integer). - MaxRowsPerFile interface{} `json:"maxRowsPerFile,omitempty"` + MaxRowsPerFile any `json:"maxRowsPerFile,omitempty"` // Top level record name in write result, which is required in AVRO spec. RecordName *string `json:"recordName,omitempty"` @@ -1650,10 +1650,10 @@ type AzureBatchLinkedService struct { TypeProperties *AzureBatchLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -1680,16 +1680,16 @@ func (a *AzureBatchLinkedService) GetLinkedService() *LinkedService { // AzureBatchLinkedServiceTypeProperties - Azure Batch linked service properties. type AzureBatchLinkedServiceTypeProperties struct { // REQUIRED; The Azure Batch account name. Type: string (or Expression with resultType string). - AccountName interface{} `json:"accountName,omitempty"` + AccountName any `json:"accountName,omitempty"` // REQUIRED; The Azure Batch URI. Type: string (or Expression with resultType string). - BatchURI interface{} `json:"batchUri,omitempty"` + BatchURI any `json:"batchUri,omitempty"` // REQUIRED; The Azure Storage linked service reference. LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` // REQUIRED; The Azure Batch pool name. Type: string (or Expression with resultType string). - PoolName interface{} `json:"poolName,omitempty"` + PoolName any `json:"poolName,omitempty"` // The Azure Batch account access key. AccessKey SecretBaseClassification `json:"accessKey,omitempty"` @@ -1699,7 +1699,7 @@ type AzureBatchLinkedServiceTypeProperties struct { // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` } // AzureBlobDataset - The Azure Blob storage. @@ -1711,10 +1711,10 @@ type AzureBlobDataset struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -1727,10 +1727,10 @@ type AzureBlobDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` // Azure Blob dataset properties. TypeProperties *AzureBlobDatasetTypeProperties `json:"typeProperties,omitempty"` @@ -1757,22 +1757,22 @@ type AzureBlobDatasetTypeProperties struct { Compression *DatasetCompression `json:"compression,omitempty"` // The name of the Azure Blob. Type: string (or Expression with resultType string). - FileName interface{} `json:"fileName,omitempty"` + FileName any `json:"fileName,omitempty"` // The path of the Azure Blob storage. Type: string (or Expression with resultType string). - FolderPath interface{} `json:"folderPath,omitempty"` + FolderPath any `json:"folderPath,omitempty"` // The format of the Azure Blob storage. Format DatasetStorageFormatClassification `json:"format,omitempty"` // The end of Azure Blob's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` + ModifiedDatetimeEnd any `json:"modifiedDatetimeEnd,omitempty"` // The start of Azure Blob's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` + ModifiedDatetimeStart any `json:"modifiedDatetimeStart,omitempty"` // The root of blob path. Type: string (or Expression with resultType string). - TableRootLocation interface{} `json:"tableRootLocation,omitempty"` + TableRootLocation any `json:"tableRootLocation,omitempty"` } // AzureBlobFSDataset - The Azure Data Lake Storage Gen2 storage. @@ -1784,10 +1784,10 @@ type AzureBlobFSDataset struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -1800,10 +1800,10 @@ type AzureBlobFSDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` // Azure Data Lake Storage Gen2 dataset properties. TypeProperties *AzureBlobFSDatasetTypeProperties `json:"typeProperties,omitempty"` @@ -1830,10 +1830,10 @@ type AzureBlobFSDatasetTypeProperties struct { Compression *DatasetCompression `json:"compression,omitempty"` // The name of the Azure Data Lake Storage Gen2. Type: string (or Expression with resultType string). - FileName interface{} `json:"fileName,omitempty"` + FileName any `json:"fileName,omitempty"` // The path of the Azure Data Lake Storage Gen2 storage. Type: string (or Expression with resultType string). - FolderPath interface{} `json:"folderPath,omitempty"` + FolderPath any `json:"folderPath,omitempty"` // The format of the Azure Data Lake Storage Gen2 storage. Format DatasetStorageFormatClassification `json:"format,omitempty"` @@ -1848,10 +1848,10 @@ type AzureBlobFSLinkedService struct { TypeProperties *AzureBlobFSLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -1878,22 +1878,22 @@ func (a *AzureBlobFSLinkedService) GetLinkedService() *LinkedService { // AzureBlobFSLinkedServiceTypeProperties - Azure Data Lake Storage Gen2 linked service properties. type AzureBlobFSLinkedServiceTypeProperties struct { // REQUIRED; Endpoint for the Azure Data Lake Storage Gen2 service. Type: string (or Expression with resultType string). - URL interface{} `json:"url,omitempty"` + URL any `json:"url,omitempty"` // Account key for the Azure Data Lake Storage Gen2 service. Type: string (or Expression with resultType string). - AccountKey interface{} `json:"accountKey,omitempty"` + AccountKey any `json:"accountKey,omitempty"` // Indicates the azure cloud type of the service principle auth. Allowed values are AzurePublic, AzureChina, AzureUsGovernment, // AzureGermany. Default value is the data factory regions’ cloud type. Type: // string (or Expression with resultType string). - AzureCloudType interface{} `json:"azureCloudType,omitempty"` + AzureCloudType any `json:"azureCloudType,omitempty"` // The credential reference containing authentication information. Credential *CredentialReference `json:"credential,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // The credential of the service principal object in Azure Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', // servicePrincipalCredential can be SecureString or @@ -1904,17 +1904,17 @@ type AzureBlobFSLinkedServiceTypeProperties struct { // The service principal credential type to use in Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, // 'ServicePrincipalCert' for certificate. Type: string (or Expression with // resultType string). - ServicePrincipalCredentialType interface{} `json:"servicePrincipalCredentialType,omitempty"` + ServicePrincipalCredentialType any `json:"servicePrincipalCredentialType,omitempty"` // The ID of the application used to authenticate against the Azure Data Lake Storage Gen2 account. Type: string (or Expression // with resultType string). - ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` + ServicePrincipalID any `json:"servicePrincipalId,omitempty"` // The Key of the application used to authenticate against the Azure Data Lake Storage Gen2 account. ServicePrincipalKey SecretBaseClassification `json:"servicePrincipalKey,omitempty"` // The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string). - Tenant interface{} `json:"tenant,omitempty"` + Tenant any `json:"tenant,omitempty"` } // AzureBlobFSLocation - The location of azure blobFS dataset. @@ -1923,16 +1923,16 @@ type AzureBlobFSLocation struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Specify the file name of dataset. Type: string (or Expression with resultType string). - FileName interface{} `json:"fileName,omitempty"` + FileName any `json:"fileName,omitempty"` // Specify the fileSystem of azure blobFS. Type: string (or Expression with resultType string). - FileSystem interface{} `json:"fileSystem,omitempty"` + FileSystem any `json:"fileSystem,omitempty"` // Specify the folder path of dataset. Type: string (or Expression with resultType string) - FolderPath interface{} `json:"folderPath,omitempty"` + FolderPath any `json:"folderPath,omitempty"` } // GetDatasetLocation implements the DatasetLocationClassification interface for type AzureBlobFSLocation. @@ -1951,43 +1951,43 @@ type AzureBlobFSReadSettings struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Indicates whether the source files need to be deleted after copy completion. Default is false. Type: boolean (or Expression // with resultType boolean). - DeleteFilesAfterCompletion interface{} `json:"deleteFilesAfterCompletion,omitempty"` + DeleteFilesAfterCompletion any `json:"deleteFilesAfterCompletion,omitempty"` // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // Indicates whether to enable partition discovery. EnablePartitionDiscovery *bool `json:"enablePartitionDiscovery,omitempty"` // Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. // Type: string (or Expression with resultType string). - FileListPath interface{} `json:"fileListPath,omitempty"` + FileListPath any `json:"fileListPath,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // The end of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` + ModifiedDatetimeEnd any `json:"modifiedDatetimeEnd,omitempty"` // The start of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` + ModifiedDatetimeStart any `json:"modifiedDatetimeStart,omitempty"` // Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). - PartitionRootPath interface{} `json:"partitionRootPath,omitempty"` + PartitionRootPath any `json:"partitionRootPath,omitempty"` // If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType // boolean). - Recursive interface{} `json:"recursive,omitempty"` + Recursive any `json:"recursive,omitempty"` // Azure blobFS wildcardFileName. Type: string (or Expression with resultType string). - WildcardFileName interface{} `json:"wildcardFileName,omitempty"` + WildcardFileName any `json:"wildcardFileName,omitempty"` // Azure blobFS wildcardFolderPath. Type: string (or Expression with resultType string). - WildcardFolderPath interface{} `json:"wildcardFolderPath,omitempty"` + WildcardFolderPath any `json:"wildcardFolderPath,omitempty"` } // GetStoreReadSettings implements the StoreReadSettingsClassification interface for type AzureBlobFSReadSettings. @@ -2006,31 +2006,31 @@ type AzureBlobFSSink struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // The type of copy behavior for copy sink. - CopyBehavior interface{} `json:"copyBehavior,omitempty"` + CopyBehavior any `json:"copyBehavior,omitempty"` // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // Specify the custom metadata to be added to sink data. Type: array of objects (or Expression with resultType array of objects). Metadata []*MetadataItem `json:"metadata,omitempty"` // Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + SinkRetryCount any `json:"sinkRetryCount,omitempty"` // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + SinkRetryWait any `json:"sinkRetryWait,omitempty"` // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + WriteBatchSize any `json:"writeBatchSize,omitempty"` // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + WriteBatchTimeout any `json:"writeBatchTimeout,omitempty"` } // GetCopySink implements the CopySinkClassification interface for type AzureBlobFSSink. @@ -2053,29 +2053,29 @@ type AzureBlobFSSource struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType // boolean). - Recursive interface{} `json:"recursive,omitempty"` + Recursive any `json:"recursive,omitempty"` // Number of header lines to skip from each blob. Type: integer (or Expression with resultType integer). - SkipHeaderLineCount interface{} `json:"skipHeaderLineCount,omitempty"` + SkipHeaderLineCount any `json:"skipHeaderLineCount,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` // Treat empty as null. Type: boolean (or Expression with resultType boolean). - TreatEmptyAsNull interface{} `json:"treatEmptyAsNull,omitempty"` + TreatEmptyAsNull any `json:"treatEmptyAsNull,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type AzureBlobFSSource. @@ -2096,19 +2096,19 @@ type AzureBlobFSWriteSettings struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Indicates the block size(MB) when writing data to blob. Type: integer (or Expression with resultType integer). - BlockSizeInMB interface{} `json:"blockSizeInMB,omitempty"` + BlockSizeInMB any `json:"blockSizeInMB,omitempty"` // The type of copy behavior for copy sink. - CopyBehavior interface{} `json:"copyBehavior,omitempty"` + CopyBehavior any `json:"copyBehavior,omitempty"` // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` } // GetStoreWriteSettings implements the StoreWriteSettingsClassification interface for type AzureBlobFSWriteSettings. @@ -2131,10 +2131,10 @@ type AzureBlobStorageLinkedService struct { TypeProperties *AzureBlobStorageLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -2171,10 +2171,10 @@ type AzureBlobStorageLinkedServiceTypeProperties struct { // Indicates the azure cloud type of the service principle auth. Allowed values are AzurePublic, AzureChina, AzureUsGovernment, // AzureGermany. Default value is the data factory regions’ cloud type. Type: // string (or Expression with resultType string). - AzureCloudType interface{} `json:"azureCloudType,omitempty"` + AzureCloudType any `json:"azureCloudType,omitempty"` // The connection string. It is mutually exclusive with sasUri, serviceEndpoint property. Type: string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` + ConnectionString any `json:"connectionString,omitempty"` // The credential reference containing authentication information. Credential *CredentialReference `json:"credential,omitempty"` @@ -2188,20 +2188,20 @@ type AzureBlobStorageLinkedServiceTypeProperties struct { // SAS URI of the Azure Blob Storage resource. It is mutually exclusive with connectionString, serviceEndpoint property. Type: // string, SecureString or AzureKeyVaultSecretReference. - SasURI interface{} `json:"sasUri,omitempty"` + SasURI any `json:"sasUri,omitempty"` // Blob service endpoint of the Azure Blob Storage resource. It is mutually exclusive with connectionString, sasUri property. ServiceEndpoint *string `json:"serviceEndpoint,omitempty"` // The ID of the service principal used to authenticate against Azure SQL Data Warehouse. Type: string (or Expression with // resultType string). - ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` + ServicePrincipalID any `json:"servicePrincipalId,omitempty"` // The key of the service principal used to authenticate against Azure SQL Data Warehouse. ServicePrincipalKey SecretBaseClassification `json:"servicePrincipalKey,omitempty"` // The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string). - Tenant interface{} `json:"tenant,omitempty"` + Tenant any `json:"tenant,omitempty"` } // AzureBlobStorageLocation - The location of azure blob dataset. @@ -2210,16 +2210,16 @@ type AzureBlobStorageLocation struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Specify the container of azure blob. Type: string (or Expression with resultType string). - Container interface{} `json:"container,omitempty"` + Container any `json:"container,omitempty"` // Specify the file name of dataset. Type: string (or Expression with resultType string). - FileName interface{} `json:"fileName,omitempty"` + FileName any `json:"fileName,omitempty"` // Specify the folder path of dataset. Type: string (or Expression with resultType string) - FolderPath interface{} `json:"folderPath,omitempty"` + FolderPath any `json:"folderPath,omitempty"` } // GetDatasetLocation implements the DatasetLocationClassification interface for type AzureBlobStorageLocation. @@ -2238,46 +2238,46 @@ type AzureBlobStorageReadSettings struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Indicates whether the source files need to be deleted after copy completion. Default is false. Type: boolean (or Expression // with resultType boolean). - DeleteFilesAfterCompletion interface{} `json:"deleteFilesAfterCompletion,omitempty"` + DeleteFilesAfterCompletion any `json:"deleteFilesAfterCompletion,omitempty"` // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // Indicates whether to enable partition discovery. EnablePartitionDiscovery *bool `json:"enablePartitionDiscovery,omitempty"` // Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. // Type: string (or Expression with resultType string). - FileListPath interface{} `json:"fileListPath,omitempty"` + FileListPath any `json:"fileListPath,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // The end of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` + ModifiedDatetimeEnd any `json:"modifiedDatetimeEnd,omitempty"` // The start of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` + ModifiedDatetimeStart any `json:"modifiedDatetimeStart,omitempty"` // Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). - PartitionRootPath interface{} `json:"partitionRootPath,omitempty"` + PartitionRootPath any `json:"partitionRootPath,omitempty"` // The prefix filter for the Azure Blob name. Type: string (or Expression with resultType string). - Prefix interface{} `json:"prefix,omitempty"` + Prefix any `json:"prefix,omitempty"` // If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType // boolean). - Recursive interface{} `json:"recursive,omitempty"` + Recursive any `json:"recursive,omitempty"` // Azure blob wildcardFileName. Type: string (or Expression with resultType string). - WildcardFileName interface{} `json:"wildcardFileName,omitempty"` + WildcardFileName any `json:"wildcardFileName,omitempty"` // Azure blob wildcardFolderPath. Type: string (or Expression with resultType string). - WildcardFolderPath interface{} `json:"wildcardFolderPath,omitempty"` + WildcardFolderPath any `json:"wildcardFolderPath,omitempty"` } // GetStoreReadSettings implements the StoreReadSettingsClassification interface for type AzureBlobStorageReadSettings. @@ -2296,19 +2296,19 @@ type AzureBlobStorageWriteSettings struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Indicates the block size(MB) when writing data to blob. Type: integer (or Expression with resultType integer). - BlockSizeInMB interface{} `json:"blockSizeInMB,omitempty"` + BlockSizeInMB any `json:"blockSizeInMB,omitempty"` // The type of copy behavior for copy sink. - CopyBehavior interface{} `json:"copyBehavior,omitempty"` + CopyBehavior any `json:"copyBehavior,omitempty"` // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` } // GetStoreWriteSettings implements the StoreWriteSettingsClassification interface for type AzureBlobStorageWriteSettings. @@ -2334,7 +2334,7 @@ type AzureDataExplorerCommandActivity struct { TypeProperties *AzureDataExplorerCommandActivityTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` @@ -2382,16 +2382,16 @@ func (a *AzureDataExplorerCommandActivity) GetExecutionActivity() *ExecutionActi type AzureDataExplorerCommandActivityTypeProperties struct { // REQUIRED; A control command, according to the Azure Data Explorer command syntax. Type: string (or Expression with resultType // string). - Command interface{} `json:"command,omitempty"` + Command any `json:"command,omitempty"` // Control command timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9]))..) - CommandTimeout interface{} `json:"commandTimeout,omitempty"` + CommandTimeout any `json:"commandTimeout,omitempty"` } // AzureDataExplorerDatasetTypeProperties - Azure Data Explorer (Kusto) dataset properties. type AzureDataExplorerDatasetTypeProperties struct { // The table name of the Azure Data Explorer database. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` + Table any `json:"table,omitempty"` } // AzureDataExplorerLinkedService - Azure Data Explorer (Kusto) linked service. @@ -2403,10 +2403,10 @@ type AzureDataExplorerLinkedService struct { TypeProperties *AzureDataExplorerLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -2433,24 +2433,24 @@ func (a *AzureDataExplorerLinkedService) GetLinkedService() *LinkedService { // AzureDataExplorerLinkedServiceTypeProperties - Azure Data Explorer (Kusto) linked service properties. type AzureDataExplorerLinkedServiceTypeProperties struct { // REQUIRED; Database name for connection. Type: string (or Expression with resultType string). - Database interface{} `json:"database,omitempty"` + Database any `json:"database,omitempty"` // REQUIRED; The endpoint of Azure Data Explorer (the engine's endpoint). URL will be in the format https://..kusto.windows.net. // Type: string (or Expression with resultType string) - Endpoint interface{} `json:"endpoint,omitempty"` + Endpoint any `json:"endpoint,omitempty"` // The credential reference containing authentication information. Credential *CredentialReference `json:"credential,omitempty"` // The ID of the service principal used to authenticate against Azure Data Explorer. Type: string (or Expression with resultType // string). - ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` + ServicePrincipalID any `json:"servicePrincipalId,omitempty"` // The key of the service principal used to authenticate against Kusto. ServicePrincipalKey SecretBaseClassification `json:"servicePrincipalKey,omitempty"` // The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string). - Tenant interface{} `json:"tenant,omitempty"` + Tenant any `json:"tenant,omitempty"` } // AzureDataExplorerSink - A copy activity Azure Data Explorer sink. @@ -2459,34 +2459,34 @@ type AzureDataExplorerSink struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // If set to true, any aggregation will be skipped. Default is false. Type: boolean. - FlushImmediately interface{} `json:"flushImmediately,omitempty"` + FlushImmediately any `json:"flushImmediately,omitempty"` // An explicit column mapping description provided in a json format. Type: string. - IngestionMappingAsJSON interface{} `json:"ingestionMappingAsJson,omitempty"` + IngestionMappingAsJSON any `json:"ingestionMappingAsJson,omitempty"` // A name of a pre-created csv mapping that was defined on the target Kusto table. Type: string. - IngestionMappingName interface{} `json:"ingestionMappingName,omitempty"` + IngestionMappingName any `json:"ingestionMappingName,omitempty"` // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + SinkRetryCount any `json:"sinkRetryCount,omitempty"` // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + SinkRetryWait any `json:"sinkRetryWait,omitempty"` // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + WriteBatchSize any `json:"writeBatchSize,omitempty"` // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + WriteBatchTimeout any `json:"writeBatchTimeout,omitempty"` } // GetCopySink implements the CopySinkClassification interface for type AzureDataExplorerSink. @@ -2506,36 +2506,36 @@ func (a *AzureDataExplorerSink) GetCopySink() *CopySink { // AzureDataExplorerSource - A copy activity Azure Data Explorer (Kusto) source. type AzureDataExplorerSource struct { // REQUIRED; Database query. Should be a Kusto Query Language (KQL) query. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any `json:"query,omitempty"` // REQUIRED; Copy source type. Type *string `json:"type,omitempty"` // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // The name of the Boolean option that controls whether truncation is applied to result-sets that go beyond a certain row-count // limit. - NoTruncation interface{} `json:"noTruncation,omitempty"` + NoTruncation any `json:"noTruncation,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).. - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type AzureDataExplorerSource. @@ -2562,10 +2562,10 @@ type AzureDataExplorerTableDataset struct { TypeProperties *AzureDataExplorerDatasetTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -2578,10 +2578,10 @@ type AzureDataExplorerTableDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` } // GetDataset implements the DatasetClassification interface for type AzureDataExplorerTableDataset. @@ -2608,10 +2608,10 @@ type AzureDataLakeAnalyticsLinkedService struct { TypeProperties *AzureDataLakeAnalyticsLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -2638,33 +2638,33 @@ func (a *AzureDataLakeAnalyticsLinkedService) GetLinkedService() *LinkedService // AzureDataLakeAnalyticsLinkedServiceTypeProperties - Azure Data Lake Analytics linked service properties. type AzureDataLakeAnalyticsLinkedServiceTypeProperties struct { // REQUIRED; The Azure Data Lake Analytics account name. Type: string (or Expression with resultType string). - AccountName interface{} `json:"accountName,omitempty"` + AccountName any `json:"accountName,omitempty"` // REQUIRED; The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType // string). - Tenant interface{} `json:"tenant,omitempty"` + Tenant any `json:"tenant,omitempty"` // Azure Data Lake Analytics URI Type: string (or Expression with resultType string). - DataLakeAnalyticsURI interface{} `json:"dataLakeAnalyticsUri,omitempty"` + DataLakeAnalyticsURI any `json:"dataLakeAnalyticsUri,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // Data Lake Analytics account resource group name (if different from Data Factory account). Type: string (or Expression with // resultType string). - ResourceGroupName interface{} `json:"resourceGroupName,omitempty"` + ResourceGroupName any `json:"resourceGroupName,omitempty"` // The ID of the application used to authenticate against the Azure Data Lake Analytics account. Type: string (or Expression // with resultType string). - ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` + ServicePrincipalID any `json:"servicePrincipalId,omitempty"` // The Key of the application used to authenticate against the Azure Data Lake Analytics account. ServicePrincipalKey SecretBaseClassification `json:"servicePrincipalKey,omitempty"` // Data Lake Analytics account subscription ID (if different from Data Factory account). Type: string (or Expression with // resultType string). - SubscriptionID interface{} `json:"subscriptionId,omitempty"` + SubscriptionID any `json:"subscriptionId,omitempty"` } // AzureDataLakeStoreDataset - Azure Data Lake Store dataset. @@ -2676,10 +2676,10 @@ type AzureDataLakeStoreDataset struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -2692,10 +2692,10 @@ type AzureDataLakeStoreDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` // Azure Data Lake Store dataset properties. TypeProperties *AzureDataLakeStoreDatasetTypeProperties `json:"typeProperties,omitempty"` @@ -2722,10 +2722,10 @@ type AzureDataLakeStoreDatasetTypeProperties struct { Compression *DatasetCompression `json:"compression,omitempty"` // The name of the file in the Azure Data Lake Store. Type: string (or Expression with resultType string). - FileName interface{} `json:"fileName,omitempty"` + FileName any `json:"fileName,omitempty"` // Path to the folder in the Azure Data Lake Store. Type: string (or Expression with resultType string). - FolderPath interface{} `json:"folderPath,omitempty"` + FolderPath any `json:"folderPath,omitempty"` // The format of the Data Lake Store. Format DatasetStorageFormatClassification `json:"format,omitempty"` @@ -2740,10 +2740,10 @@ type AzureDataLakeStoreLinkedService struct { TypeProperties *AzureDataLakeStoreLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -2770,40 +2770,40 @@ func (a *AzureDataLakeStoreLinkedService) GetLinkedService() *LinkedService { // AzureDataLakeStoreLinkedServiceTypeProperties - Azure Data Lake Store linked service properties. type AzureDataLakeStoreLinkedServiceTypeProperties struct { // REQUIRED; Data Lake Store service URI. Type: string (or Expression with resultType string). - DataLakeStoreURI interface{} `json:"dataLakeStoreUri,omitempty"` + DataLakeStoreURI any `json:"dataLakeStoreUri,omitempty"` // Data Lake Store account name. Type: string (or Expression with resultType string). - AccountName interface{} `json:"accountName,omitempty"` + AccountName any `json:"accountName,omitempty"` // Indicates the azure cloud type of the service principle auth. Allowed values are AzurePublic, AzureChina, AzureUsGovernment, // AzureGermany. Default value is the data factory regions’ cloud type. Type: // string (or Expression with resultType string). - AzureCloudType interface{} `json:"azureCloudType,omitempty"` + AzureCloudType any `json:"azureCloudType,omitempty"` // The credential reference containing authentication information. Credential *CredentialReference `json:"credential,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // Data Lake Store account resource group name (if different from Data Factory account). Type: string (or Expression with // resultType string). - ResourceGroupName interface{} `json:"resourceGroupName,omitempty"` + ResourceGroupName any `json:"resourceGroupName,omitempty"` // The ID of the application used to authenticate against the Azure Data Lake Store account. Type: string (or Expression with // resultType string). - ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` + ServicePrincipalID any `json:"servicePrincipalId,omitempty"` // The Key of the application used to authenticate against the Azure Data Lake Store account. ServicePrincipalKey SecretBaseClassification `json:"servicePrincipalKey,omitempty"` // Data Lake Store account subscription ID (if different from Data Factory account). Type: string (or Expression with resultType // string). - SubscriptionID interface{} `json:"subscriptionId,omitempty"` + SubscriptionID any `json:"subscriptionId,omitempty"` // The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string). - Tenant interface{} `json:"tenant,omitempty"` + Tenant any `json:"tenant,omitempty"` } // AzureDataLakeStoreLocation - The location of azure data lake store dataset. @@ -2812,13 +2812,13 @@ type AzureDataLakeStoreLocation struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Specify the file name of dataset. Type: string (or Expression with resultType string). - FileName interface{} `json:"fileName,omitempty"` + FileName any `json:"fileName,omitempty"` // Specify the folder path of dataset. Type: string (or Expression with resultType string) - FolderPath interface{} `json:"folderPath,omitempty"` + FolderPath any `json:"folderPath,omitempty"` } // GetDatasetLocation implements the DatasetLocationClassification interface for type AzureDataLakeStoreLocation. @@ -2837,53 +2837,53 @@ type AzureDataLakeStoreReadSettings struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Indicates whether the source files need to be deleted after copy completion. Default is false. Type: boolean (or Expression // with resultType boolean). - DeleteFilesAfterCompletion interface{} `json:"deleteFilesAfterCompletion,omitempty"` + DeleteFilesAfterCompletion any `json:"deleteFilesAfterCompletion,omitempty"` // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // Indicates whether to enable partition discovery. EnablePartitionDiscovery *bool `json:"enablePartitionDiscovery,omitempty"` // Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. // Type: string (or Expression with resultType string). - FileListPath interface{} `json:"fileListPath,omitempty"` + FileListPath any `json:"fileListPath,omitempty"` // Lists files after the value (exclusive) based on file/folder names’ lexicographical order. Applies under the folderPath // in data set, and filter files/sub-folders under the folderPath. Type: string (or // Expression with resultType string). - ListAfter interface{} `json:"listAfter,omitempty"` + ListAfter any `json:"listAfter,omitempty"` // Lists files before the value (inclusive) based on file/folder names’ lexicographical order. Applies under the folderPath // in data set, and filter files/sub-folders under the folderPath. Type: string // (or Expression with resultType string). - ListBefore interface{} `json:"listBefore,omitempty"` + ListBefore any `json:"listBefore,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // The end of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` + ModifiedDatetimeEnd any `json:"modifiedDatetimeEnd,omitempty"` // The start of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` + ModifiedDatetimeStart any `json:"modifiedDatetimeStart,omitempty"` // Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). - PartitionRootPath interface{} `json:"partitionRootPath,omitempty"` + PartitionRootPath any `json:"partitionRootPath,omitempty"` // If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType // boolean). - Recursive interface{} `json:"recursive,omitempty"` + Recursive any `json:"recursive,omitempty"` // ADLS wildcardFileName. Type: string (or Expression with resultType string). - WildcardFileName interface{} `json:"wildcardFileName,omitempty"` + WildcardFileName any `json:"wildcardFileName,omitempty"` // ADLS wildcardFolderPath. Type: string (or Expression with resultType string). - WildcardFolderPath interface{} `json:"wildcardFolderPath,omitempty"` + WildcardFolderPath any `json:"wildcardFolderPath,omitempty"` } // GetStoreReadSettings implements the StoreReadSettingsClassification interface for type AzureDataLakeStoreReadSettings. @@ -2902,31 +2902,31 @@ type AzureDataLakeStoreSink struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // The type of copy behavior for copy sink. - CopyBehavior interface{} `json:"copyBehavior,omitempty"` + CopyBehavior any `json:"copyBehavior,omitempty"` // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // Single File Parallel. - EnableAdlsSingleFileParallel interface{} `json:"enableAdlsSingleFileParallel,omitempty"` + EnableAdlsSingleFileParallel any `json:"enableAdlsSingleFileParallel,omitempty"` // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + SinkRetryCount any `json:"sinkRetryCount,omitempty"` // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + SinkRetryWait any `json:"sinkRetryWait,omitempty"` // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + WriteBatchSize any `json:"writeBatchSize,omitempty"` // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + WriteBatchTimeout any `json:"writeBatchTimeout,omitempty"` } // GetCopySink implements the CopySinkClassification interface for type AzureDataLakeStoreSink. @@ -2949,23 +2949,23 @@ type AzureDataLakeStoreSource struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType // boolean). - Recursive interface{} `json:"recursive,omitempty"` + Recursive any `json:"recursive,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type AzureDataLakeStoreSource. @@ -2986,21 +2986,21 @@ type AzureDataLakeStoreWriteSettings struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // The type of copy behavior for copy sink. - CopyBehavior interface{} `json:"copyBehavior,omitempty"` + CopyBehavior any `json:"copyBehavior,omitempty"` // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // Specifies the expiry time of the written files. The time is applied to the UTC time zone in the format of "2018-12-01T05:00:00Z". // Default value is NULL. Type: integer (or Expression with resultType // integer). - ExpiryDateTime interface{} `json:"expiryDateTime,omitempty"` + ExpiryDateTime any `json:"expiryDateTime,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` } // GetStoreWriteSettings implements the StoreWriteSettingsClassification interface for type AzureDataLakeStoreWriteSettings. @@ -3023,10 +3023,10 @@ type AzureDatabricksDeltaLakeDataset struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -3039,10 +3039,10 @@ type AzureDatabricksDeltaLakeDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` // Properties specific to this dataset type. TypeProperties *AzureDatabricksDeltaLakeDatasetTypeProperties `json:"typeProperties,omitempty"` @@ -3066,10 +3066,10 @@ func (a *AzureDatabricksDeltaLakeDataset) GetDataset() *Dataset { // AzureDatabricksDeltaLakeDatasetTypeProperties - Azure Databricks Delta Lake Dataset Properties type AzureDatabricksDeltaLakeDatasetTypeProperties struct { // The database name of delta table. Type: string (or Expression with resultType string). - Database interface{} `json:"database,omitempty"` + Database any `json:"database,omitempty"` // The name of delta table. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` + Table any `json:"table,omitempty"` } // AzureDatabricksDeltaLakeExportCommand - Azure Databricks Delta Lake export command settings. @@ -3078,14 +3078,14 @@ type AzureDatabricksDeltaLakeExportCommand struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Specify the date format for the csv in Azure Databricks Delta Lake Copy. Type: string (or Expression with resultType string). - DateFormat interface{} `json:"dateFormat,omitempty"` + DateFormat any `json:"dateFormat,omitempty"` // Specify the timestamp format for the csv in Azure Databricks Delta Lake Copy. Type: string (or Expression with resultType // string). - TimestampFormat interface{} `json:"timestampFormat,omitempty"` + TimestampFormat any `json:"timestampFormat,omitempty"` } // GetExportSettings implements the ExportSettingsClassification interface for type AzureDatabricksDeltaLakeExportCommand. @@ -3102,13 +3102,13 @@ type AzureDatabricksDeltaLakeImportCommand struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Specify the date format for csv in Azure Databricks Delta Lake Copy. Type: string (or Expression with resultType string). - DateFormat interface{} `json:"dateFormat,omitempty"` + DateFormat any `json:"dateFormat,omitempty"` // Specify the timestamp format for csv in Azure Databricks Delta Lake Copy. Type: string (or Expression with resultType string). - TimestampFormat interface{} `json:"timestampFormat,omitempty"` + TimestampFormat any `json:"timestampFormat,omitempty"` } // GetImportSettings implements the ImportSettingsClassification interface for type AzureDatabricksDeltaLakeImportCommand. @@ -3128,10 +3128,10 @@ type AzureDatabricksDeltaLakeLinkedService struct { TypeProperties *AzureDatabricksDetltaLakeLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -3161,31 +3161,31 @@ type AzureDatabricksDeltaLakeSink struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // Azure Databricks Delta Lake import settings. ImportSettings *AzureDatabricksDeltaLakeImportCommand `json:"importSettings,omitempty"` // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // SQL pre-copy script. Type: string (or Expression with resultType string). - PreCopyScript interface{} `json:"preCopyScript,omitempty"` + PreCopyScript any `json:"preCopyScript,omitempty"` // Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + SinkRetryCount any `json:"sinkRetryCount,omitempty"` // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + SinkRetryWait any `json:"sinkRetryWait,omitempty"` // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + WriteBatchSize any `json:"writeBatchSize,omitempty"` // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + WriteBatchTimeout any `json:"writeBatchTimeout,omitempty"` } // GetCopySink implements the CopySinkClassification interface for type AzureDatabricksDeltaLakeSink. @@ -3208,25 +3208,25 @@ type AzureDatabricksDeltaLakeSource struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // Azure Databricks Delta Lake export settings. ExportSettings *AzureDatabricksDeltaLakeExportCommand `json:"exportSettings,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // Azure Databricks Delta Lake Sql query. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any `json:"query,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type AzureDatabricksDeltaLakeSource. @@ -3245,7 +3245,7 @@ func (a *AzureDatabricksDeltaLakeSource) GetCopySource() *CopySource { type AzureDatabricksDetltaLakeLinkedServiceTypeProperties struct { // REQUIRED; .azuredatabricks.net, domain name of your Databricks deployment. Type: string (or Expression with resultType // string). - Domain interface{} `json:"domain,omitempty"` + Domain any `json:"domain,omitempty"` // Access token for databricks REST API. Refer to https://docs.azuredatabricks.net/api/latest/authentication.html. Type: string, // SecureString or AzureKeyVaultSecretReference. @@ -3253,17 +3253,17 @@ type AzureDatabricksDetltaLakeLinkedServiceTypeProperties struct { // The id of an existing interactive cluster that will be used for all runs of this job. Type: string (or Expression with // resultType string). - ClusterID interface{} `json:"clusterId,omitempty"` + ClusterID any `json:"clusterId,omitempty"` // The credential reference containing authentication information. Credential *CredentialReference `json:"credential,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // Workspace resource id for databricks REST API. Type: string (or Expression with resultType string). - WorkspaceResourceID interface{} `json:"workspaceResourceId,omitempty"` + WorkspaceResourceID any `json:"workspaceResourceId,omitempty"` } // AzureDatabricksLinkedService - Azure Databricks linked service. @@ -3275,10 +3275,10 @@ type AzureDatabricksLinkedService struct { TypeProperties *AzureDatabricksLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -3306,7 +3306,7 @@ func (a *AzureDatabricksLinkedService) GetLinkedService() *LinkedService { type AzureDatabricksLinkedServiceTypeProperties struct { // REQUIRED; .azuredatabricks.net, domain name of your Databricks deployment. Type: string (or Expression with resultType // string). - Domain interface{} `json:"domain,omitempty"` + Domain any `json:"domain,omitempty"` // Access token for databricks REST API. Refer to https://docs.azuredatabricks.net/api/latest/authentication.html. Type: string // (or Expression with resultType string). @@ -3314,71 +3314,71 @@ type AzureDatabricksLinkedServiceTypeProperties struct { // Required to specify MSI, if using Workspace resource id for databricks REST API. Type: string (or Expression with resultType // string). - Authentication interface{} `json:"authentication,omitempty"` + Authentication any `json:"authentication,omitempty"` // The credential reference containing authentication information. Credential *CredentialReference `json:"credential,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // The id of an existing interactive cluster that will be used for all runs of this activity. Type: string (or Expression // with resultType string). - ExistingClusterID interface{} `json:"existingClusterId,omitempty"` + ExistingClusterID any `json:"existingClusterId,omitempty"` // The id of an existing instance pool that will be used for all runs of this activity. Type: string (or Expression with resultType // string). - InstancePoolID interface{} `json:"instancePoolId,omitempty"` + InstancePoolID any `json:"instancePoolId,omitempty"` // Additional tags for cluster resources. This property is ignored in instance pool configurations. - NewClusterCustomTags map[string]interface{} `json:"newClusterCustomTags,omitempty"` + NewClusterCustomTags map[string]any `json:"newClusterCustomTags,omitempty"` // The driver node type for the new job cluster. This property is ignored in instance pool configurations. Type: string (or // Expression with resultType string). - NewClusterDriverNodeType interface{} `json:"newClusterDriverNodeType,omitempty"` + NewClusterDriverNodeType any `json:"newClusterDriverNodeType,omitempty"` // Enable the elastic disk on the new cluster. This property is now ignored, and takes the default elastic disk behavior in // Databricks (elastic disks are always enabled). Type: boolean (or Expression // with resultType boolean). - NewClusterEnableElasticDisk interface{} `json:"newClusterEnableElasticDisk,omitempty"` + NewClusterEnableElasticDisk any `json:"newClusterEnableElasticDisk,omitempty"` // User-defined initialization scripts for the new cluster. Type: array of strings (or Expression with resultType array of // strings). - NewClusterInitScripts interface{} `json:"newClusterInitScripts,omitempty"` + NewClusterInitScripts any `json:"newClusterInitScripts,omitempty"` // Specify a location to deliver Spark driver, worker, and event logs. Type: string (or Expression with resultType string). - NewClusterLogDestination interface{} `json:"newClusterLogDestination,omitempty"` + NewClusterLogDestination any `json:"newClusterLogDestination,omitempty"` // The node type of the new job cluster. This property is required if newClusterVersion is specified and instancePoolId is // not specified. If instancePoolId is specified, this property is ignored. Type: // string (or Expression with resultType string). - NewClusterNodeType interface{} `json:"newClusterNodeType,omitempty"` + NewClusterNodeType any `json:"newClusterNodeType,omitempty"` // If not using an existing interactive cluster, this specifies the number of worker nodes to use for the new job cluster // or instance pool. For new job clusters, this a string-formatted Int32, like '1' // means numOfWorker is 1 or '1:10' means auto-scale from 1 (min) to 10 (max). For instance pools, this is a string-formatted // Int32, and can only specify a fixed number of worker nodes, such as '2'. // Required if newClusterVersion is specified. Type: string (or Expression with resultType string). - NewClusterNumOfWorker interface{} `json:"newClusterNumOfWorker,omitempty"` + NewClusterNumOfWorker any `json:"newClusterNumOfWorker,omitempty"` // A set of optional, user-specified Spark configuration key-value pairs. - NewClusterSparkConf map[string]interface{} `json:"newClusterSparkConf,omitempty"` + NewClusterSparkConf map[string]any `json:"newClusterSparkConf,omitempty"` // A set of optional, user-specified Spark environment variables key-value pairs. - NewClusterSparkEnvVars map[string]interface{} `json:"newClusterSparkEnvVars,omitempty"` + NewClusterSparkEnvVars map[string]any `json:"newClusterSparkEnvVars,omitempty"` // If not using an existing interactive cluster, this specifies the Spark version of a new job cluster or instance pool nodes // created for each run of this activity. Required if instancePoolId is // specified. Type: string (or Expression with resultType string). - NewClusterVersion interface{} `json:"newClusterVersion,omitempty"` + NewClusterVersion any `json:"newClusterVersion,omitempty"` // The policy id for limiting the ability to configure clusters based on a user defined set of rules. Type: string (or Expression // with resultType string). - PolicyID interface{} `json:"policyId,omitempty"` + PolicyID any `json:"policyId,omitempty"` // Workspace resource id for databricks REST API. Type: string (or Expression with resultType string). - WorkspaceResourceID interface{} `json:"workspaceResourceId,omitempty"` + WorkspaceResourceID any `json:"workspaceResourceId,omitempty"` } // AzureFileStorageLinkedService - Azure File Storage linked service. @@ -3390,10 +3390,10 @@ type AzureFileStorageLinkedService struct { TypeProperties *AzureFileStorageLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -3423,18 +3423,18 @@ type AzureFileStorageLinkedServiceTypeProperties struct { AccountKey *AzureKeyVaultSecretReference `json:"accountKey,omitempty"` // The connection string. It is mutually exclusive with sasUri property. Type: string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` + ConnectionString any `json:"connectionString,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // The azure file share name. It is required when auth with accountKey/sasToken. Type: string (or Expression with resultType // string). - FileShare interface{} `json:"fileShare,omitempty"` + FileShare any `json:"fileShare,omitempty"` // Host name of the server. Type: string (or Expression with resultType string). - Host interface{} `json:"host,omitempty"` + Host any `json:"host,omitempty"` // Password to logon the server. Password SecretBaseClassification `json:"password,omitempty"` @@ -3444,13 +3444,13 @@ type AzureFileStorageLinkedServiceTypeProperties struct { // SAS URI of the Azure File resource. It is mutually exclusive with connectionString property. Type: string, SecureString // or AzureKeyVaultSecretReference. - SasURI interface{} `json:"sasUri,omitempty"` + SasURI any `json:"sasUri,omitempty"` // The azure file share snapshot version. Type: string (or Expression with resultType string). - Snapshot interface{} `json:"snapshot,omitempty"` + Snapshot any `json:"snapshot,omitempty"` // User ID to logon the server. Type: string (or Expression with resultType string). - UserID interface{} `json:"userId,omitempty"` + UserID any `json:"userId,omitempty"` } // AzureFileStorageLocation - The location of file server dataset. @@ -3459,13 +3459,13 @@ type AzureFileStorageLocation struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Specify the file name of dataset. Type: string (or Expression with resultType string). - FileName interface{} `json:"fileName,omitempty"` + FileName any `json:"fileName,omitempty"` // Specify the folder path of dataset. Type: string (or Expression with resultType string) - FolderPath interface{} `json:"folderPath,omitempty"` + FolderPath any `json:"folderPath,omitempty"` } // GetDatasetLocation implements the DatasetLocationClassification interface for type AzureFileStorageLocation. @@ -3484,46 +3484,46 @@ type AzureFileStorageReadSettings struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Indicates whether the source files need to be deleted after copy completion. Default is false. Type: boolean (or Expression // with resultType boolean). - DeleteFilesAfterCompletion interface{} `json:"deleteFilesAfterCompletion,omitempty"` + DeleteFilesAfterCompletion any `json:"deleteFilesAfterCompletion,omitempty"` // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // Indicates whether to enable partition discovery. EnablePartitionDiscovery *bool `json:"enablePartitionDiscovery,omitempty"` // Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. // Type: string (or Expression with resultType string). - FileListPath interface{} `json:"fileListPath,omitempty"` + FileListPath any `json:"fileListPath,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // The end of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` + ModifiedDatetimeEnd any `json:"modifiedDatetimeEnd,omitempty"` // The start of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` + ModifiedDatetimeStart any `json:"modifiedDatetimeStart,omitempty"` // Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). - PartitionRootPath interface{} `json:"partitionRootPath,omitempty"` + PartitionRootPath any `json:"partitionRootPath,omitempty"` // The prefix filter for the Azure File name starting from root path. Type: string (or Expression with resultType string). - Prefix interface{} `json:"prefix,omitempty"` + Prefix any `json:"prefix,omitempty"` // If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType // boolean). - Recursive interface{} `json:"recursive,omitempty"` + Recursive any `json:"recursive,omitempty"` // Azure File Storage wildcardFileName. Type: string (or Expression with resultType string). - WildcardFileName interface{} `json:"wildcardFileName,omitempty"` + WildcardFileName any `json:"wildcardFileName,omitempty"` // Azure File Storage wildcardFolderPath. Type: string (or Expression with resultType string). - WildcardFolderPath interface{} `json:"wildcardFolderPath,omitempty"` + WildcardFolderPath any `json:"wildcardFolderPath,omitempty"` } // GetStoreReadSettings implements the StoreReadSettingsClassification interface for type AzureFileStorageReadSettings. @@ -3542,16 +3542,16 @@ type AzureFileStorageWriteSettings struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // The type of copy behavior for copy sink. - CopyBehavior interface{} `json:"copyBehavior,omitempty"` + CopyBehavior any `json:"copyBehavior,omitempty"` // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` } // GetStoreWriteSettings implements the StoreWriteSettingsClassification interface for type AzureFileStorageWriteSettings. @@ -3577,7 +3577,7 @@ type AzureFunctionActivity struct { TypeProperties *AzureFunctionActivityTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` @@ -3625,19 +3625,19 @@ func (a *AzureFunctionActivity) GetExecutionActivity() *ExecutionActivity { type AzureFunctionActivityTypeProperties struct { // REQUIRED; Name of the Function that the Azure Function Activity will call. Type: string (or Expression with resultType // string) - FunctionName interface{} `json:"functionName,omitempty"` + FunctionName any `json:"functionName,omitempty"` // REQUIRED; Rest API method for target endpoint. Method *AzureFunctionActivityMethod `json:"method,omitempty"` // Represents the payload that will be sent to the endpoint. Required for POST/PUT method, not allowed for GET method Type: // string (or Expression with resultType string). - Body interface{} `json:"body,omitempty"` + Body any `json:"body,omitempty"` // Represents the headers that will be sent to the request. For example, to set the language and type on a request: "headers" // : { "Accept-Language": "en-us", "Content-Type": "application/json" }. Type: // string (or Expression with resultType string). - Headers interface{} `json:"headers,omitempty"` + Headers any `json:"headers,omitempty"` } // AzureFunctionLinkedService - Azure Function linked service. @@ -3649,10 +3649,10 @@ type AzureFunctionLinkedService struct { TypeProperties *AzureFunctionLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -3679,24 +3679,24 @@ func (a *AzureFunctionLinkedService) GetLinkedService() *LinkedService { // AzureFunctionLinkedServiceTypeProperties - Azure Function linked service properties. type AzureFunctionLinkedServiceTypeProperties struct { // REQUIRED; The endpoint of the Azure Function App. URL will be in the format https://.azurewebsites.net. - FunctionAppURL interface{} `json:"functionAppUrl,omitempty"` + FunctionAppURL any `json:"functionAppUrl,omitempty"` // Type of authentication (Required to specify MSI) used to connect to AzureFunction. Type: string (or Expression with resultType // string). - Authentication interface{} `json:"authentication,omitempty"` + Authentication any `json:"authentication,omitempty"` // The credential reference containing authentication information. Credential *CredentialReference `json:"credential,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // Function or Host key for Azure Function App. FunctionKey SecretBaseClassification `json:"functionKey,omitempty"` // Allowed token audiences for azure function. - ResourceID interface{} `json:"resourceId,omitempty"` + ResourceID any `json:"resourceId,omitempty"` } // AzureKeyVaultLinkedService - Azure Key Vault linked service. @@ -3708,10 +3708,10 @@ type AzureKeyVaultLinkedService struct { TypeProperties *AzureKeyVaultLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -3739,7 +3739,7 @@ func (a *AzureKeyVaultLinkedService) GetLinkedService() *LinkedService { type AzureKeyVaultLinkedServiceTypeProperties struct { // REQUIRED; The base URL of the Azure Key Vault. e.g. https://myakv.vault.azure.net Type: string (or Expression with resultType // string). - BaseURL interface{} `json:"baseUrl,omitempty"` + BaseURL any `json:"baseUrl,omitempty"` // The credential reference containing authentication information. Credential *CredentialReference `json:"credential,omitempty"` @@ -3748,7 +3748,7 @@ type AzureKeyVaultLinkedServiceTypeProperties struct { // AzureKeyVaultSecretReference - Azure Key Vault secret reference. type AzureKeyVaultSecretReference struct { // REQUIRED; The name of the secret in Azure Key Vault. Type: string (or Expression with resultType string). - SecretName interface{} `json:"secretName,omitempty"` + SecretName any `json:"secretName,omitempty"` // REQUIRED; The Azure Key Vault linked service reference. Store *LinkedServiceReference `json:"store,omitempty"` @@ -3758,7 +3758,7 @@ type AzureKeyVaultSecretReference struct { // The version of the secret in Azure Key Vault. The default value is the latest version of the secret. Type: string (or Expression // with resultType string). - SecretVersion interface{} `json:"secretVersion,omitempty"` + SecretVersion any `json:"secretVersion,omitempty"` } // GetSecretBase implements the SecretBaseClassification interface for type AzureKeyVaultSecretReference. @@ -3780,7 +3780,7 @@ type AzureMLBatchExecutionActivity struct { TypeProperties *AzureMLBatchExecutionActivityTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` @@ -3829,7 +3829,7 @@ type AzureMLBatchExecutionActivityTypeProperties struct { // Key,Value pairs to be passed to the Azure ML Batch Execution Service endpoint. Keys must match the names of web service // parameters defined in the published Azure ML web service. Values will be passed // in the GlobalParameters property of the Azure ML batch execution request. - GlobalParameters map[string]interface{} `json:"globalParameters,omitempty"` + GlobalParameters map[string]any `json:"globalParameters,omitempty"` // Key,Value pairs, mapping the names of Azure ML endpoint's Web Service Inputs to AzureMLWebServiceFile objects specifying // the input Blob locations.. This information will be passed in the @@ -3854,7 +3854,7 @@ type AzureMLExecutePipelineActivity struct { TypeProperties *AzureMLExecutePipelineActivityTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` @@ -3903,37 +3903,37 @@ type AzureMLExecutePipelineActivityTypeProperties struct { // Whether to continue execution of other steps in the PipelineRun if a step fails. This information will be passed in the // continueOnStepFailure property of the published pipeline execution request. // Type: boolean (or Expression with resultType boolean). - ContinueOnStepFailure interface{} `json:"continueOnStepFailure,omitempty"` + ContinueOnStepFailure any `json:"continueOnStepFailure,omitempty"` // Dictionary used for changing data path assignments without retraining. Values will be passed in the dataPathAssignments // property of the published pipeline execution request. Type: object with key // value pairs (or Expression with resultType object). - DataPathAssignments interface{} `json:"dataPathAssignments,omitempty"` + DataPathAssignments any `json:"dataPathAssignments,omitempty"` // Run history experiment name of the pipeline run. This information will be passed in the ExperimentName property of the // published pipeline execution request. Type: string (or Expression with resultType // string). - ExperimentName interface{} `json:"experimentName,omitempty"` + ExperimentName any `json:"experimentName,omitempty"` // The parent Azure ML Service pipeline run id. This information will be passed in the ParentRunId property of the published // pipeline execution request. Type: string (or Expression with resultType // string). - MlParentRunID interface{} `json:"mlParentRunId,omitempty"` + MlParentRunID any `json:"mlParentRunId,omitempty"` // ID of the published Azure ML pipeline endpoint. Type: string (or Expression with resultType string). - MlPipelineEndpointID interface{} `json:"mlPipelineEndpointId,omitempty"` + MlPipelineEndpointID any `json:"mlPipelineEndpointId,omitempty"` // ID of the published Azure ML pipeline. Type: string (or Expression with resultType string). - MlPipelineID interface{} `json:"mlPipelineId,omitempty"` + MlPipelineID any `json:"mlPipelineId,omitempty"` // Key,Value pairs to be passed to the published Azure ML pipeline endpoint. Keys must match the names of pipeline parameters // defined in the published pipeline. Values will be passed in the // ParameterAssignments property of the published pipeline execution request. Type: object with key value pairs (or Expression // with resultType object). - MlPipelineParameters interface{} `json:"mlPipelineParameters,omitempty"` + MlPipelineParameters any `json:"mlPipelineParameters,omitempty"` // Version of the published Azure ML pipeline endpoint. Type: string (or Expression with resultType string). - Version interface{} `json:"version,omitempty"` + Version any `json:"version,omitempty"` } // AzureMLLinkedService - Azure ML Studio Web Service linked service. @@ -3945,10 +3945,10 @@ type AzureMLLinkedService struct { TypeProperties *AzureMLLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -3979,29 +3979,29 @@ type AzureMLLinkedServiceTypeProperties struct { // REQUIRED; The Batch Execution REST URL for an Azure ML Studio Web Service endpoint. Type: string (or Expression with resultType // string). - MlEndpoint interface{} `json:"mlEndpoint,omitempty"` + MlEndpoint any `json:"mlEndpoint,omitempty"` // Type of authentication (Required to specify MSI) used to connect to AzureML. Type: string (or Expression with resultType // string). - Authentication interface{} `json:"authentication,omitempty"` + Authentication any `json:"authentication,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // The ID of the service principal used to authenticate against the ARM-based updateResourceEndpoint of an Azure ML Studio // web service. Type: string (or Expression with resultType string). - ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` + ServicePrincipalID any `json:"servicePrincipalId,omitempty"` // The key of the service principal used to authenticate against the ARM-based updateResourceEndpoint of an Azure ML Studio // web service. ServicePrincipalKey SecretBaseClassification `json:"servicePrincipalKey,omitempty"` // The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string). - Tenant interface{} `json:"tenant,omitempty"` + Tenant any `json:"tenant,omitempty"` // The Update Resource REST URL for an Azure ML Studio Web Service endpoint. Type: string (or Expression with resultType string). - UpdateResourceEndpoint interface{} `json:"updateResourceEndpoint,omitempty"` + UpdateResourceEndpoint any `json:"updateResourceEndpoint,omitempty"` } // AzureMLServiceLinkedService - Azure ML Service linked service. @@ -4013,10 +4013,10 @@ type AzureMLServiceLinkedService struct { TypeProperties *AzureMLServiceLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -4043,27 +4043,27 @@ func (a *AzureMLServiceLinkedService) GetLinkedService() *LinkedService { // AzureMLServiceLinkedServiceTypeProperties - Azure ML Service linked service properties. type AzureMLServiceLinkedServiceTypeProperties struct { // REQUIRED; Azure ML Service workspace name. Type: string (or Expression with resultType string). - MlWorkspaceName interface{} `json:"mlWorkspaceName,omitempty"` + MlWorkspaceName any `json:"mlWorkspaceName,omitempty"` // REQUIRED; Azure ML Service workspace resource group name. Type: string (or Expression with resultType string). - ResourceGroupName interface{} `json:"resourceGroupName,omitempty"` + ResourceGroupName any `json:"resourceGroupName,omitempty"` // REQUIRED; Azure ML Service workspace subscription ID. Type: string (or Expression with resultType string). - SubscriptionID interface{} `json:"subscriptionId,omitempty"` + SubscriptionID any `json:"subscriptionId,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // The ID of the service principal used to authenticate against the endpoint of a published Azure ML Service pipeline. Type: // string (or Expression with resultType string). - ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` + ServicePrincipalID any `json:"servicePrincipalId,omitempty"` // The key of the service principal used to authenticate against the endpoint of a published Azure ML Service pipeline. ServicePrincipalKey SecretBaseClassification `json:"servicePrincipalKey,omitempty"` // The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string). - Tenant interface{} `json:"tenant,omitempty"` + Tenant any `json:"tenant,omitempty"` } // AzureMLUpdateResourceActivity - Azure ML Update Resource management activity. @@ -4078,7 +4078,7 @@ type AzureMLUpdateResourceActivity struct { TypeProperties *AzureMLUpdateResourceActivityTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` @@ -4126,21 +4126,21 @@ func (a *AzureMLUpdateResourceActivity) GetExecutionActivity() *ExecutionActivit type AzureMLUpdateResourceActivityTypeProperties struct { // REQUIRED; The relative file path in trainedModelLinkedService to represent the .ilearner file that will be uploaded by // the update operation. Type: string (or Expression with resultType string). - TrainedModelFilePath interface{} `json:"trainedModelFilePath,omitempty"` + TrainedModelFilePath any `json:"trainedModelFilePath,omitempty"` // REQUIRED; Name of Azure Storage linked service holding the .ilearner file that will be uploaded by the update operation. TrainedModelLinkedServiceName *LinkedServiceReference `json:"trainedModelLinkedServiceName,omitempty"` // REQUIRED; Name of the Trained Model module in the Web Service experiment to be updated. Type: string (or Expression with // resultType string). - TrainedModelName interface{} `json:"trainedModelName,omitempty"` + TrainedModelName any `json:"trainedModelName,omitempty"` } // AzureMLWebServiceFile - Azure ML WebService Input/Output file type AzureMLWebServiceFile struct { // REQUIRED; The relative file path, including container name, in the Azure Blob Storage specified by the LinkedService. Type: // string (or Expression with resultType string). - FilePath interface{} `json:"filePath,omitempty"` + FilePath any `json:"filePath,omitempty"` // REQUIRED; Reference to an Azure Storage LinkedService, where Azure ML WebService Input/Output file located. LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` @@ -4155,10 +4155,10 @@ type AzureMariaDBLinkedService struct { TypeProperties *AzureMariaDBLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -4185,11 +4185,11 @@ func (a *AzureMariaDBLinkedService) GetLinkedService() *LinkedService { // AzureMariaDBLinkedServiceTypeProperties - Azure Database for MariaDB linked service properties. type AzureMariaDBLinkedServiceTypeProperties struct { // An ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` + ConnectionString any `json:"connectionString,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // The Azure key vault secret reference of password in connection string. Pwd *AzureKeyVaultSecretReference `json:"pwd,omitempty"` @@ -4202,28 +4202,28 @@ type AzureMariaDBSource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type AzureMariaDBSource. @@ -4261,10 +4261,10 @@ type AzureMariaDBTableDataset struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -4277,10 +4277,10 @@ type AzureMariaDBTableDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` // Properties specific to this dataset type. TypeProperties *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` @@ -4310,10 +4310,10 @@ type AzureMySQLLinkedService struct { TypeProperties *AzureMySQLLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -4340,11 +4340,11 @@ func (a *AzureMySQLLinkedService) GetLinkedService() *LinkedService { // AzureMySQLLinkedServiceTypeProperties - Azure MySQL database linked service properties. type AzureMySQLLinkedServiceTypeProperties struct { // REQUIRED; The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` + ConnectionString any `json:"connectionString,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // The Azure key vault secret reference of password in connection string. Password *AzureKeyVaultSecretReference `json:"password,omitempty"` @@ -4356,28 +4356,28 @@ type AzureMySQLSink struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // A query to execute before starting the copy. Type: string (or Expression with resultType string). - PreCopyScript interface{} `json:"preCopyScript,omitempty"` + PreCopyScript any `json:"preCopyScript,omitempty"` // Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + SinkRetryCount any `json:"sinkRetryCount,omitempty"` // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + SinkRetryWait any `json:"sinkRetryWait,omitempty"` // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + WriteBatchSize any `json:"writeBatchSize,omitempty"` // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + WriteBatchTimeout any `json:"writeBatchTimeout,omitempty"` } // GetCopySink implements the CopySinkClassification interface for type AzureMySQLSink. @@ -4401,28 +4401,28 @@ type AzureMySQLSource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // Database query. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type AzureMySQLSource. @@ -4463,10 +4463,10 @@ type AzureMySQLTableDataset struct { TypeProperties *AzureMySQLTableDatasetTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -4479,10 +4479,10 @@ type AzureMySQLTableDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` } // GetDataset implements the DatasetClassification interface for type AzureMySQLTableDataset. @@ -4503,10 +4503,10 @@ func (a *AzureMySQLTableDataset) GetDataset() *Dataset { // AzureMySQLTableDatasetTypeProperties - Azure MySQL database dataset properties. type AzureMySQLTableDatasetTypeProperties struct { // The name of Azure MySQL database table. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` + Table any `json:"table,omitempty"` // The Azure MySQL database table name. Type: string (or Expression with resultType string). - TableName interface{} `json:"tableName,omitempty"` + TableName any `json:"tableName,omitempty"` } // AzurePostgreSQLLinkedService - Azure PostgreSQL linked service. @@ -4518,10 +4518,10 @@ type AzurePostgreSQLLinkedService struct { TypeProperties *AzurePostgreSQLLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -4548,11 +4548,11 @@ func (a *AzurePostgreSQLLinkedService) GetLinkedService() *LinkedService { // AzurePostgreSQLLinkedServiceTypeProperties - Azure PostgreSQL linked service properties. type AzurePostgreSQLLinkedServiceTypeProperties struct { // An ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` + ConnectionString any `json:"connectionString,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // The Azure key vault secret reference of password in connection string. Password *AzureKeyVaultSecretReference `json:"password,omitempty"` @@ -4564,28 +4564,28 @@ type AzurePostgreSQLSink struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // A query to execute before starting the copy. Type: string (or Expression with resultType string). - PreCopyScript interface{} `json:"preCopyScript,omitempty"` + PreCopyScript any `json:"preCopyScript,omitempty"` // Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + SinkRetryCount any `json:"sinkRetryCount,omitempty"` // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + SinkRetryWait any `json:"sinkRetryWait,omitempty"` // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + WriteBatchSize any `json:"writeBatchSize,omitempty"` // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + WriteBatchTimeout any `json:"writeBatchTimeout,omitempty"` } // GetCopySink implements the CopySinkClassification interface for type AzurePostgreSQLSink. @@ -4609,28 +4609,28 @@ type AzurePostgreSQLSource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type AzurePostgreSQLSource. @@ -4668,10 +4668,10 @@ type AzurePostgreSQLTableDataset struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -4684,10 +4684,10 @@ type AzurePostgreSQLTableDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` // Properties specific to this dataset type. TypeProperties *AzurePostgreSQLTableDatasetTypeProperties `json:"typeProperties,omitempty"` @@ -4711,14 +4711,14 @@ func (a *AzurePostgreSQLTableDataset) GetDataset() *Dataset { // AzurePostgreSQLTableDatasetTypeProperties - Azure PostgreSQL dataset properties. type AzurePostgreSQLTableDatasetTypeProperties struct { // The schema name of the Azure PostgreSQL database. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // The table name of the Azure PostgreSQL database. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` + Table any `json:"table,omitempty"` // The table name of the Azure PostgreSQL database which includes both schema and table. Type: string (or Expression with // resultType string). - TableName interface{} `json:"tableName,omitempty"` + TableName any `json:"tableName,omitempty"` } // AzureQueueSink - A copy activity Azure Queue sink. @@ -4727,25 +4727,25 @@ type AzureQueueSink struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + SinkRetryCount any `json:"sinkRetryCount,omitempty"` // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + SinkRetryWait any `json:"sinkRetryWait,omitempty"` // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + WriteBatchSize any `json:"writeBatchSize,omitempty"` // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + WriteBatchTimeout any `json:"writeBatchTimeout,omitempty"` } // GetCopySink implements the CopySinkClassification interface for type AzureQueueSink. @@ -4771,10 +4771,10 @@ type AzureSQLDWLinkedService struct { TypeProperties *AzureSQLDWLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -4802,32 +4802,32 @@ func (a *AzureSQLDWLinkedService) GetLinkedService() *LinkedService { type AzureSQLDWLinkedServiceTypeProperties struct { // REQUIRED; The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. Type: string, SecureString // or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` + ConnectionString any `json:"connectionString,omitempty"` // Indicates the azure cloud type of the service principle auth. Allowed values are AzurePublic, AzureChina, AzureUsGovernment, // AzureGermany. Default value is the data factory regions’ cloud type. Type: // string (or Expression with resultType string). - AzureCloudType interface{} `json:"azureCloudType,omitempty"` + AzureCloudType any `json:"azureCloudType,omitempty"` // The credential reference containing authentication information. Credential *CredentialReference `json:"credential,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // The Azure key vault secret reference of password in connection string. Password *AzureKeyVaultSecretReference `json:"password,omitempty"` // The ID of the service principal used to authenticate against Azure SQL Data Warehouse. Type: string (or Expression with // resultType string). - ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` + ServicePrincipalID any `json:"servicePrincipalId,omitempty"` // The key of the service principal used to authenticate against Azure SQL Data Warehouse. ServicePrincipalKey SecretBaseClassification `json:"servicePrincipalKey,omitempty"` // The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string). - Tenant interface{} `json:"tenant,omitempty"` + Tenant any `json:"tenant,omitempty"` } // AzureSQLDWTableDataset - The Azure SQL Data Warehouse dataset. @@ -4839,10 +4839,10 @@ type AzureSQLDWTableDataset struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -4855,10 +4855,10 @@ type AzureSQLDWTableDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` // Azure SQL Data Warehouse dataset properties. TypeProperties *AzureSQLDWTableDatasetTypeProperties `json:"typeProperties,omitempty"` @@ -4882,13 +4882,13 @@ func (a *AzureSQLDWTableDataset) GetDataset() *Dataset { // AzureSQLDWTableDatasetTypeProperties - Azure SQL Data Warehouse dataset properties. type AzureSQLDWTableDatasetTypeProperties struct { // The schema name of the Azure SQL Data Warehouse. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // The table name of the Azure SQL Data Warehouse. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` + Table any `json:"table,omitempty"` // This property will be retired. Please consider using schema + table properties instead. - TableName interface{} `json:"tableName,omitempty"` + TableName any `json:"tableName,omitempty"` } // AzureSQLDatabaseLinkedService - Microsoft Azure SQL Database linked service. @@ -4900,10 +4900,10 @@ type AzureSQLDatabaseLinkedService struct { TypeProperties *AzureSQLDatabaseLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -4930,7 +4930,7 @@ func (a *AzureSQLDatabaseLinkedService) GetLinkedService() *LinkedService { // AzureSQLDatabaseLinkedServiceTypeProperties - Azure SQL Database linked service properties. type AzureSQLDatabaseLinkedServiceTypeProperties struct { // REQUIRED; The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` + ConnectionString any `json:"connectionString,omitempty"` // Sql always encrypted properties. AlwaysEncryptedSettings *SQLAlwaysEncryptedProperties `json:"alwaysEncryptedSettings,omitempty"` @@ -4938,27 +4938,27 @@ type AzureSQLDatabaseLinkedServiceTypeProperties struct { // Indicates the azure cloud type of the service principle auth. Allowed values are AzurePublic, AzureChina, AzureUsGovernment, // AzureGermany. Default value is the data factory regions’ cloud type. Type: // string (or Expression with resultType string). - AzureCloudType interface{} `json:"azureCloudType,omitempty"` + AzureCloudType any `json:"azureCloudType,omitempty"` // The credential reference containing authentication information. Credential *CredentialReference `json:"credential,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // The Azure key vault secret reference of password in connection string. Password *AzureKeyVaultSecretReference `json:"password,omitempty"` // The ID of the service principal used to authenticate against Azure SQL Database. Type: string (or Expression with resultType // string). - ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` + ServicePrincipalID any `json:"servicePrincipalId,omitempty"` // The key of the service principal used to authenticate against Azure SQL Database. ServicePrincipalKey SecretBaseClassification `json:"servicePrincipalKey,omitempty"` // The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string). - Tenant interface{} `json:"tenant,omitempty"` + Tenant any `json:"tenant,omitempty"` } // AzureSQLMILinkedService - Azure SQL Managed Instance linked service. @@ -4970,10 +4970,10 @@ type AzureSQLMILinkedService struct { TypeProperties *AzureSQLMILinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -5000,7 +5000,7 @@ func (a *AzureSQLMILinkedService) GetLinkedService() *LinkedService { // AzureSQLMILinkedServiceTypeProperties - Azure SQL Managed Instance linked service properties. type AzureSQLMILinkedServiceTypeProperties struct { // REQUIRED; The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` + ConnectionString any `json:"connectionString,omitempty"` // Sql always encrypted properties. AlwaysEncryptedSettings *SQLAlwaysEncryptedProperties `json:"alwaysEncryptedSettings,omitempty"` @@ -5008,27 +5008,27 @@ type AzureSQLMILinkedServiceTypeProperties struct { // Indicates the azure cloud type of the service principle auth. Allowed values are AzurePublic, AzureChina, AzureUsGovernment, // AzureGermany. Default value is the data factory regions’ cloud type. Type: // string (or Expression with resultType string). - AzureCloudType interface{} `json:"azureCloudType,omitempty"` + AzureCloudType any `json:"azureCloudType,omitempty"` // The credential reference containing authentication information. Credential *CredentialReference `json:"credential,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // The Azure key vault secret reference of password in connection string. Password *AzureKeyVaultSecretReference `json:"password,omitempty"` // The ID of the service principal used to authenticate against Azure SQL Managed Instance. Type: string (or Expression with // resultType string). - ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` + ServicePrincipalID any `json:"servicePrincipalId,omitempty"` // The key of the service principal used to authenticate against Azure SQL Managed Instance. ServicePrincipalKey SecretBaseClassification `json:"servicePrincipalKey,omitempty"` // The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string). - Tenant interface{} `json:"tenant,omitempty"` + Tenant any `json:"tenant,omitempty"` } // AzureSQLMITableDataset - The Azure SQL Managed Instance dataset. @@ -5040,10 +5040,10 @@ type AzureSQLMITableDataset struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -5056,10 +5056,10 @@ type AzureSQLMITableDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` // Azure SQL Managed Instance dataset properties. TypeProperties *AzureSQLMITableDatasetTypeProperties `json:"typeProperties,omitempty"` @@ -5083,13 +5083,13 @@ func (a *AzureSQLMITableDataset) GetDataset() *Dataset { // AzureSQLMITableDatasetTypeProperties - Azure SQL Managed Instance dataset properties. type AzureSQLMITableDatasetTypeProperties struct { // The schema name of the Azure SQL Managed Instance. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // The table name of the Azure SQL Managed Instance dataset. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` + Table any `json:"table,omitempty"` // This property will be retired. Please consider using schema + table properties instead. - TableName interface{} `json:"tableName,omitempty"` + TableName any `json:"tableName,omitempty"` } // AzureSQLSink - A copy activity Azure SQL sink. @@ -5098,53 +5098,53 @@ type AzureSQLSink struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // SQL pre-copy script. Type: string (or Expression with resultType string). - PreCopyScript interface{} `json:"preCopyScript,omitempty"` + PreCopyScript any `json:"preCopyScript,omitempty"` // SQL writer stored procedure name. Type: string (or Expression with resultType string). - SQLWriterStoredProcedureName interface{} `json:"sqlWriterStoredProcedureName,omitempty"` + SQLWriterStoredProcedureName any `json:"sqlWriterStoredProcedureName,omitempty"` // SQL writer table type. Type: string (or Expression with resultType string). - SQLWriterTableType interface{} `json:"sqlWriterTableType,omitempty"` + SQLWriterTableType any `json:"sqlWriterTableType,omitempty"` // Whether to use table lock during bulk copy. Type: boolean (or Expression with resultType boolean). - SQLWriterUseTableLock interface{} `json:"sqlWriterUseTableLock,omitempty"` + SQLWriterUseTableLock any `json:"sqlWriterUseTableLock,omitempty"` // Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + SinkRetryCount any `json:"sinkRetryCount,omitempty"` // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + SinkRetryWait any `json:"sinkRetryWait,omitempty"` // SQL stored procedure parameters. - StoredProcedureParameters interface{} `json:"storedProcedureParameters,omitempty"` + StoredProcedureParameters any `json:"storedProcedureParameters,omitempty"` // The stored procedure parameter name of the table type. Type: string (or Expression with resultType string). - StoredProcedureTableTypeParameterName interface{} `json:"storedProcedureTableTypeParameterName,omitempty"` + StoredProcedureTableTypeParameterName any `json:"storedProcedureTableTypeParameterName,omitempty"` // The option to handle sink table, such as autoCreate. For now only 'autoCreate' value is supported. Type: string (or Expression // with resultType string). - TableOption interface{} `json:"tableOption,omitempty"` + TableOption any `json:"tableOption,omitempty"` // SQL upsert settings. UpsertSettings *SQLUpsertSettings `json:"upsertSettings,omitempty"` // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + WriteBatchSize any `json:"writeBatchSize,omitempty"` // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + WriteBatchTimeout any `json:"writeBatchTimeout,omitempty"` // Write behavior when copying data into Azure SQL. Type: SqlWriteBehaviorEnum (or Expression with resultType SqlWriteBehaviorEnum) - WriteBehavior interface{} `json:"writeBehavior,omitempty"` + WriteBehavior any `json:"writeBehavior,omitempty"` } // GetCopySink implements the CopySinkClassification interface for type AzureSQLSink. @@ -5168,45 +5168,45 @@ type AzureSQLSource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // The partition mechanism that will be used for Sql read in parallel. Possible values include: "None", "PhysicalPartitionsOfTable", // "DynamicRange". - PartitionOption interface{} `json:"partitionOption,omitempty"` + PartitionOption any `json:"partitionOption,omitempty"` // The settings that will be leveraged for Sql source partitioning. PartitionSettings *SQLPartitionSettings `json:"partitionSettings,omitempty"` // Which additional types to produce. - ProduceAdditionalTypes interface{} `json:"produceAdditionalTypes,omitempty"` + ProduceAdditionalTypes any `json:"produceAdditionalTypes,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any `json:"queryTimeout,omitempty"` // SQL reader query. Type: string (or Expression with resultType string). - SQLReaderQuery interface{} `json:"sqlReaderQuery,omitempty"` + SQLReaderQuery any `json:"sqlReaderQuery,omitempty"` // Name of the stored procedure for a SQL Database source. This cannot be used at the same time as SqlReaderQuery. Type: string // (or Expression with resultType string). - SQLReaderStoredProcedureName interface{} `json:"sqlReaderStoredProcedureName,omitempty"` + SQLReaderStoredProcedureName any `json:"sqlReaderStoredProcedureName,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` // Value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". - StoredProcedureParameters interface{} `json:"storedProcedureParameters,omitempty"` + StoredProcedureParameters any `json:"storedProcedureParameters,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type AzureSQLSource. @@ -5244,10 +5244,10 @@ type AzureSQLTableDataset struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -5260,10 +5260,10 @@ type AzureSQLTableDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` // Azure SQL dataset properties. TypeProperties *AzureSQLTableDatasetTypeProperties `json:"typeProperties,omitempty"` @@ -5287,13 +5287,13 @@ func (a *AzureSQLTableDataset) GetDataset() *Dataset { // AzureSQLTableDatasetTypeProperties - Azure SQL dataset properties. type AzureSQLTableDatasetTypeProperties struct { // The schema name of the Azure SQL database. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // The table name of the Azure SQL database. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` + Table any `json:"table,omitempty"` // This property will be retired. Please consider using schema + table properties instead. - TableName interface{} `json:"tableName,omitempty"` + TableName any `json:"tableName,omitempty"` } // AzureSearchIndexDataset - The Azure Search Index. @@ -5308,10 +5308,10 @@ type AzureSearchIndexDataset struct { TypeProperties *AzureSearchIndexDatasetTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -5324,10 +5324,10 @@ type AzureSearchIndexDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` } // GetDataset implements the DatasetClassification interface for type AzureSearchIndexDataset. @@ -5348,7 +5348,7 @@ func (a *AzureSearchIndexDataset) GetDataset() *Dataset { // AzureSearchIndexDatasetTypeProperties - Properties specific to this dataset type. type AzureSearchIndexDatasetTypeProperties struct { // REQUIRED; The name of the Azure Search Index. Type: string (or Expression with resultType string). - IndexName interface{} `json:"indexName,omitempty"` + IndexName any `json:"indexName,omitempty"` } // AzureSearchIndexSink - A copy activity Azure Search Index sink. @@ -5357,25 +5357,25 @@ type AzureSearchIndexSink struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + SinkRetryCount any `json:"sinkRetryCount,omitempty"` // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + SinkRetryWait any `json:"sinkRetryWait,omitempty"` // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + WriteBatchSize any `json:"writeBatchSize,omitempty"` // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + WriteBatchTimeout any `json:"writeBatchTimeout,omitempty"` // Specify the write behavior when upserting documents into Azure Search Index. WriteBehavior *AzureSearchIndexWriteBehaviorType `json:"writeBehavior,omitempty"` @@ -5404,10 +5404,10 @@ type AzureSearchLinkedService struct { TypeProperties *AzureSearchLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -5434,11 +5434,11 @@ func (a *AzureSearchLinkedService) GetLinkedService() *LinkedService { // AzureSearchLinkedServiceTypeProperties - Windows Azure Search Service linked service properties. type AzureSearchLinkedServiceTypeProperties struct { // REQUIRED; URL for Azure Search service. Type: string (or Expression with resultType string). - URL interface{} `json:"url,omitempty"` + URL any `json:"url,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // Admin Key for Azure Search service Key SecretBaseClassification `json:"key,omitempty"` @@ -5453,10 +5453,10 @@ type AzureStorageLinkedService struct { TypeProperties *AzureStorageLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -5486,7 +5486,7 @@ type AzureStorageLinkedServiceTypeProperties struct { AccountKey *AzureKeyVaultSecretReference `json:"accountKey,omitempty"` // The connection string. It is mutually exclusive with sasUri property. Type: string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` + ConnectionString any `json:"connectionString,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). @@ -5497,7 +5497,7 @@ type AzureStorageLinkedServiceTypeProperties struct { // SAS URI of the Azure Storage resource. It is mutually exclusive with connectionString property. Type: string, SecureString // or AzureKeyVaultSecretReference. - SasURI interface{} `json:"sasUri,omitempty"` + SasURI any `json:"sasUri,omitempty"` } // AzureSynapseArtifactsLinkedService - Azure Synapse Analytics (Artifacts) linked service. @@ -5509,10 +5509,10 @@ type AzureSynapseArtifactsLinkedService struct { TypeProperties *AzureSynapseArtifactsLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -5540,16 +5540,16 @@ func (a *AzureSynapseArtifactsLinkedService) GetLinkedService() *LinkedService { type AzureSynapseArtifactsLinkedServiceTypeProperties struct { // REQUIRED; https://.dev.azuresynapse.net, Azure Synapse Analytics workspace URL. Type: string (or Expression with resultType // string). - Endpoint interface{} `json:"endpoint,omitempty"` + Endpoint any `json:"endpoint,omitempty"` // Required to specify MSI, if using system assigned managed identity as authentication method. Type: string (or Expression // with resultType string). - Authentication interface{} `json:"authentication,omitempty"` + Authentication any `json:"authentication,omitempty"` // The resource ID of the Synapse workspace. The format should be: /subscriptions/{subscriptionID}/resourceGroups/{resourceGroup}/providers/Microsoft.Synapse/workspaces/{workspaceName}. // Type: string (or // Expression with resultType string). - WorkspaceResourceID interface{} `json:"workspaceResourceId,omitempty"` + WorkspaceResourceID any `json:"workspaceResourceId,omitempty"` } // AzureTableDataset - The Azure Table storage dataset. @@ -5564,10 +5564,10 @@ type AzureTableDataset struct { TypeProperties *AzureTableDatasetTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -5580,10 +5580,10 @@ type AzureTableDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` } // GetDataset implements the DatasetClassification interface for type AzureTableDataset. @@ -5604,7 +5604,7 @@ func (a *AzureTableDataset) GetDataset() *Dataset { // AzureTableDatasetTypeProperties - Azure Table dataset properties. type AzureTableDatasetTypeProperties struct { // REQUIRED; The table name of the Azure Table storage. Type: string (or Expression with resultType string). - TableName interface{} `json:"tableName,omitempty"` + TableName any `json:"tableName,omitempty"` } // AzureTableSink - A copy activity Azure Table sink. @@ -5613,37 +5613,37 @@ type AzureTableSink struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Azure Table default partition key value. Type: string (or Expression with resultType string). - AzureTableDefaultPartitionKeyValue interface{} `json:"azureTableDefaultPartitionKeyValue,omitempty"` + AzureTableDefaultPartitionKeyValue any `json:"azureTableDefaultPartitionKeyValue,omitempty"` // Azure Table insert type. Type: string (or Expression with resultType string). - AzureTableInsertType interface{} `json:"azureTableInsertType,omitempty"` + AzureTableInsertType any `json:"azureTableInsertType,omitempty"` // Azure Table partition key name. Type: string (or Expression with resultType string). - AzureTablePartitionKeyName interface{} `json:"azureTablePartitionKeyName,omitempty"` + AzureTablePartitionKeyName any `json:"azureTablePartitionKeyName,omitempty"` // Azure Table row key name. Type: string (or Expression with resultType string). - AzureTableRowKeyName interface{} `json:"azureTableRowKeyName,omitempty"` + AzureTableRowKeyName any `json:"azureTableRowKeyName,omitempty"` // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + SinkRetryCount any `json:"sinkRetryCount,omitempty"` // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + SinkRetryWait any `json:"sinkRetryWait,omitempty"` // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + WriteBatchSize any `json:"writeBatchSize,omitempty"` // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + WriteBatchTimeout any `json:"writeBatchTimeout,omitempty"` } // GetCopySink implements the CopySinkClassification interface for type AzureTableSink. @@ -5667,31 +5667,31 @@ type AzureTableSource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Azure Table source ignore table not found. Type: boolean (or Expression with resultType boolean). - AzureTableSourceIgnoreTableNotFound interface{} `json:"azureTableSourceIgnoreTableNotFound,omitempty"` + AzureTableSourceIgnoreTableNotFound any `json:"azureTableSourceIgnoreTableNotFound,omitempty"` // Azure Table source query. Type: string (or Expression with resultType string). - AzureTableSourceQuery interface{} `json:"azureTableSourceQuery,omitempty"` + AzureTableSourceQuery any `json:"azureTableSourceQuery,omitempty"` // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type AzureTableSource. @@ -5729,10 +5729,10 @@ type AzureTableStorageLinkedService struct { TypeProperties *AzureStorageLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -5759,7 +5759,7 @@ func (a *AzureTableStorageLinkedService) GetLinkedService() *LinkedService { // BigDataPoolParametrizationReference - Big data pool reference type. type BigDataPoolParametrizationReference struct { // REQUIRED; Reference big data pool name. Type: string (or Expression with resultType string). - ReferenceName interface{} `json:"referenceName,omitempty"` + ReferenceName any `json:"referenceName,omitempty"` // REQUIRED; Big data pool reference type. Type *BigDataPoolReferenceType `json:"type,omitempty"` @@ -5774,10 +5774,10 @@ type BinaryDataset struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -5790,10 +5790,10 @@ type BinaryDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` // Binary dataset properties. TypeProperties *BinaryDatasetTypeProperties `json:"typeProperties,omitempty"` @@ -5829,7 +5829,7 @@ type BinaryReadSettings struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Compression settings. CompressionProperties CompressionReadSettingsClassification `json:"compressionProperties,omitempty"` @@ -5849,28 +5849,28 @@ type BinarySink struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + SinkRetryCount any `json:"sinkRetryCount,omitempty"` // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + SinkRetryWait any `json:"sinkRetryWait,omitempty"` // Binary store settings. StoreSettings StoreWriteSettingsClassification `json:"storeSettings,omitempty"` // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + WriteBatchSize any `json:"writeBatchSize,omitempty"` // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + WriteBatchTimeout any `json:"writeBatchTimeout,omitempty"` } // GetCopySink implements the CopySinkClassification interface for type BinarySink. @@ -5893,22 +5893,22 @@ type BinarySource struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // Binary format settings. FormatSettings *BinaryReadSettings `json:"formatSettings,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` // Binary store settings. StoreSettings StoreReadSettingsClassification `json:"storeSettings,omitempty"` @@ -5935,10 +5935,10 @@ type BlobEventsTrigger struct { TypeProperties *BlobEventsTriggerTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the trigger. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Trigger description. Description *string `json:"description,omitempty"` @@ -6001,40 +6001,40 @@ type BlobSink struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Blob writer add header. Type: boolean (or Expression with resultType boolean). - BlobWriterAddHeader interface{} `json:"blobWriterAddHeader,omitempty"` + BlobWriterAddHeader any `json:"blobWriterAddHeader,omitempty"` // Blob writer date time format. Type: string (or Expression with resultType string). - BlobWriterDateTimeFormat interface{} `json:"blobWriterDateTimeFormat,omitempty"` + BlobWriterDateTimeFormat any `json:"blobWriterDateTimeFormat,omitempty"` // Blob writer overwrite files. Type: boolean (or Expression with resultType boolean). - BlobWriterOverwriteFiles interface{} `json:"blobWriterOverwriteFiles,omitempty"` + BlobWriterOverwriteFiles any `json:"blobWriterOverwriteFiles,omitempty"` // The type of copy behavior for copy sink. - CopyBehavior interface{} `json:"copyBehavior,omitempty"` + CopyBehavior any `json:"copyBehavior,omitempty"` // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // Specify the custom metadata to be added to sink data. Type: array of objects (or Expression with resultType array of objects). Metadata []*MetadataItem `json:"metadata,omitempty"` // Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + SinkRetryCount any `json:"sinkRetryCount,omitempty"` // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + SinkRetryWait any `json:"sinkRetryWait,omitempty"` // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + WriteBatchSize any `json:"writeBatchSize,omitempty"` // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + WriteBatchTimeout any `json:"writeBatchTimeout,omitempty"` } // GetCopySink implements the CopySinkClassification interface for type BlobSink. @@ -6057,29 +6057,29 @@ type BlobSource struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType // boolean). - Recursive interface{} `json:"recursive,omitempty"` + Recursive any `json:"recursive,omitempty"` // Number of header lines to skip from each blob. Type: integer (or Expression with resultType integer). - SkipHeaderLineCount interface{} `json:"skipHeaderLineCount,omitempty"` + SkipHeaderLineCount any `json:"skipHeaderLineCount,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` // Treat empty as null. Type: boolean (or Expression with resultType boolean). - TreatEmptyAsNull interface{} `json:"treatEmptyAsNull,omitempty"` + TreatEmptyAsNull any `json:"treatEmptyAsNull,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type BlobSource. @@ -6103,10 +6103,10 @@ type BlobTrigger struct { TypeProperties *BlobTriggerTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the trigger. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Trigger description. Description *string `json:"description,omitempty"` @@ -6168,10 +6168,10 @@ type CassandraLinkedService struct { TypeProperties *CassandraLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -6198,23 +6198,23 @@ func (c *CassandraLinkedService) GetLinkedService() *LinkedService { // CassandraLinkedServiceTypeProperties - Cassandra linked service properties. type CassandraLinkedServiceTypeProperties struct { // REQUIRED; Host name for connection. Type: string (or Expression with resultType string). - Host interface{} `json:"host,omitempty"` + Host any `json:"host,omitempty"` // AuthenticationType to be used for connection. Type: string (or Expression with resultType string). - AuthenticationType interface{} `json:"authenticationType,omitempty"` + AuthenticationType any `json:"authenticationType,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // Password for authentication. Password SecretBaseClassification `json:"password,omitempty"` // The port for the connection. Type: integer (or Expression with resultType integer). - Port interface{} `json:"port,omitempty"` + Port any `json:"port,omitempty"` // Username for authentication. Type: string (or Expression with resultType string). - Username interface{} `json:"username,omitempty"` + Username any `json:"username,omitempty"` } // CassandraSource - A copy activity source for a Cassandra database. @@ -6224,10 +6224,10 @@ type CassandraSource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // The consistency level specifies how many Cassandra servers must respond to a read request before returning data to the // client application. Cassandra checks the specified number of Cassandra servers @@ -6236,23 +6236,23 @@ type CassandraSource struct { ConsistencyLevel *CassandraSourceReadConsistencyLevels `json:"consistencyLevel,omitempty"` // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // Database query. Should be a SQL-92 query expression or Cassandra Query Language (CQL) command. Type: string (or Expression // with resultType string). - Query interface{} `json:"query,omitempty"` + Query any `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type CassandraSource. @@ -6290,10 +6290,10 @@ type CassandraTableDataset struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -6306,10 +6306,10 @@ type CassandraTableDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` // Cassandra dataset properties. TypeProperties *CassandraTableDatasetTypeProperties `json:"typeProperties,omitempty"` @@ -6333,10 +6333,10 @@ func (c *CassandraTableDataset) GetDataset() *Dataset { // CassandraTableDatasetTypeProperties - Cassandra dataset properties. type CassandraTableDatasetTypeProperties struct { // The keyspace of the Cassandra database. Type: string (or Expression with resultType string). - Keyspace interface{} `json:"keyspace,omitempty"` + Keyspace any `json:"keyspace,omitempty"` // The table name of the Cassandra database. Type: string (or Expression with resultType string). - TableName interface{} `json:"tableName,omitempty"` + TableName any `json:"tableName,omitempty"` } // ChainingTrigger - Trigger that allows the referenced pipeline to depend on other pipeline runs based on runDimension Name/Value @@ -6354,10 +6354,10 @@ type ChainingTrigger struct { TypeProperties *ChainingTriggerTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the trigger. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Trigger description. Description *string `json:"description,omitempty"` @@ -6408,10 +6408,10 @@ type CmdkeySetupTypeProperties struct { Password SecretBaseClassification `json:"password,omitempty"` // REQUIRED; The server name of data source access. - TargetName interface{} `json:"targetName,omitempty"` + TargetName any `json:"targetName,omitempty"` // REQUIRED; The user name of data source access. - UserName interface{} `json:"userName,omitempty"` + UserName any `json:"userName,omitempty"` } // CommonDataServiceForAppsEntityDataset - The Common Data Service for Apps entity dataset. @@ -6423,10 +6423,10 @@ type CommonDataServiceForAppsEntityDataset struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -6439,10 +6439,10 @@ type CommonDataServiceForAppsEntityDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` // Common Data Service for Apps entity dataset properties. TypeProperties *CommonDataServiceForAppsEntityDatasetTypeProperties `json:"typeProperties,omitempty"` @@ -6466,7 +6466,7 @@ func (c *CommonDataServiceForAppsEntityDataset) GetDataset() *Dataset { // CommonDataServiceForAppsEntityDatasetTypeProperties - Common Data Service for Apps entity dataset properties. type CommonDataServiceForAppsEntityDatasetTypeProperties struct { // The logical name of the entity. Type: string (or Expression with resultType string). - EntityName interface{} `json:"entityName,omitempty"` + EntityName any `json:"entityName,omitempty"` } // CommonDataServiceForAppsLinkedService - Common Data Service for Apps linked service. @@ -6478,10 +6478,10 @@ type CommonDataServiceForAppsLinkedService struct { TypeProperties *CommonDataServiceForAppsLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -6510,25 +6510,25 @@ type CommonDataServiceForAppsLinkedServiceTypeProperties struct { // REQUIRED; The authentication type to connect to Common Data Service for Apps server. 'Office365' for online scenario, 'Ifd' // for on-premises with Ifd scenario. 'AADServicePrincipal' for Server-To-Server // authentication in online scenario. Type: string (or Expression with resultType string). - AuthenticationType interface{} `json:"authenticationType,omitempty"` + AuthenticationType any `json:"authenticationType,omitempty"` // REQUIRED; The deployment type of the Common Data Service for Apps instance. 'Online' for Common Data Service for Apps Online // and 'OnPremisesWithIfd' for Common Data Service for Apps on-premises with Ifd. Type: // string (or Expression with resultType string). - DeploymentType interface{} `json:"deploymentType,omitempty"` + DeploymentType any `json:"deploymentType,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // The host name of the on-premises Common Data Service for Apps server. The property is required for on-prem and not allowed // for online. Type: string (or Expression with resultType string). - HostName interface{} `json:"hostName,omitempty"` + HostName any `json:"hostName,omitempty"` // The organization name of the Common Data Service for Apps instance. The property is required for on-prem and required for // online when there are more than one Common Data Service for Apps instances // associated with the user. Type: string (or Expression with resultType string). - OrganizationName interface{} `json:"organizationName,omitempty"` + OrganizationName any `json:"organizationName,omitempty"` // Password to access the Common Data Service for Apps instance. Password SecretBaseClassification `json:"password,omitempty"` @@ -6536,7 +6536,7 @@ type CommonDataServiceForAppsLinkedServiceTypeProperties struct { // The port of on-premises Common Data Service for Apps server. The property is required for on-prem and not allowed for online. // Default is 443. Type: integer (or Expression with resultType integer), // minimum: 0. - Port interface{} `json:"port,omitempty"` + Port any `json:"port,omitempty"` // The credential of the service principal object in Azure Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', // servicePrincipalCredential can be SecureString or @@ -6547,18 +6547,18 @@ type CommonDataServiceForAppsLinkedServiceTypeProperties struct { // The service principal credential type to use in Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, // 'ServicePrincipalCert' for certificate. Type: string (or Expression with // resultType string). - ServicePrincipalCredentialType interface{} `json:"servicePrincipalCredentialType,omitempty"` + ServicePrincipalCredentialType any `json:"servicePrincipalCredentialType,omitempty"` // The client ID of the application in Azure Active Directory used for Server-To-Server authentication. Type: string (or Expression // with resultType string). - ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` + ServicePrincipalID any `json:"servicePrincipalId,omitempty"` // The URL to the Microsoft Common Data Service for Apps server. The property is required for on-line and not allowed for // on-prem. Type: string (or Expression with resultType string). - ServiceURI interface{} `json:"serviceUri,omitempty"` + ServiceURI any `json:"serviceUri,omitempty"` // User name to access the Common Data Service for Apps instance. Type: string (or Expression with resultType string). - Username interface{} `json:"username,omitempty"` + Username any `json:"username,omitempty"` } // CommonDataServiceForAppsSink - A copy activity Common Data Service for Apps sink. @@ -6570,33 +6570,33 @@ type CommonDataServiceForAppsSink struct { WriteBehavior *DynamicsSinkWriteBehavior `json:"writeBehavior,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // The logical name of the alternate key which will be used when upserting records. Type: string (or Expression with resultType // string). - AlternateKeyName interface{} `json:"alternateKeyName,omitempty"` + AlternateKeyName any `json:"alternateKeyName,omitempty"` // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The flag indicating whether to ignore null values from input dataset (except key fields) during write operation. Default // is false. Type: boolean (or Expression with resultType boolean). - IgnoreNullValues interface{} `json:"ignoreNullValues,omitempty"` + IgnoreNullValues any `json:"ignoreNullValues,omitempty"` // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + SinkRetryCount any `json:"sinkRetryCount,omitempty"` // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + SinkRetryWait any `json:"sinkRetryWait,omitempty"` // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + WriteBatchSize any `json:"writeBatchSize,omitempty"` // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + WriteBatchTimeout any `json:"writeBatchTimeout,omitempty"` } // GetCopySink implements the CopySinkClassification interface for type CommonDataServiceForAppsSink. @@ -6620,26 +6620,26 @@ type CommonDataServiceForAppsSource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // FetchXML is a proprietary query language that is used in Microsoft Common Data Service for Apps (online & on-premises). // Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any `json:"query,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type CommonDataServiceForAppsSource. @@ -6685,7 +6685,7 @@ type CompressionReadSettings struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any } // GetCompressionReadSettings implements the CompressionReadSettingsClassification interface for type CompressionReadSettings. @@ -6700,10 +6700,10 @@ type ConcurLinkedService struct { TypeProperties *ConcurLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -6730,30 +6730,30 @@ func (c *ConcurLinkedService) GetLinkedService() *LinkedService { // ConcurLinkedServiceTypeProperties - Concur Service linked service properties. type ConcurLinkedServiceTypeProperties struct { // REQUIRED; Application client_id supplied by Concur App Management. - ClientID interface{} `json:"clientId,omitempty"` + ClientID any `json:"clientId,omitempty"` // REQUIRED; The user name that you use to access Concur Service. - Username interface{} `json:"username,omitempty"` + Username any `json:"username,omitempty"` // Properties used to connect to Concur. It is mutually exclusive with any other properties in the linked service. Type: object. - ConnectionProperties interface{} `json:"connectionProperties,omitempty"` + ConnectionProperties any `json:"connectionProperties,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // The password corresponding to the user name that you provided in the username field. Password SecretBaseClassification `json:"password,omitempty"` // Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. - UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` + UseEncryptedEndpoints any `json:"useEncryptedEndpoints,omitempty"` // Specifies whether to require the host name in the server's certificate to match the host name of the server when connecting // over SSL. The default value is true. - UseHostVerification interface{} `json:"useHostVerification,omitempty"` + UseHostVerification any `json:"useHostVerification,omitempty"` // Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. - UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` + UsePeerVerification any `json:"usePeerVerification,omitempty"` } // ConcurObjectDataset - Concur Service dataset. @@ -6765,10 +6765,10 @@ type ConcurObjectDataset struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -6781,10 +6781,10 @@ type ConcurObjectDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` // Properties specific to this dataset type. TypeProperties *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` @@ -6812,28 +6812,28 @@ type ConcurSource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type ConcurSource. @@ -6894,7 +6894,7 @@ type ControlActivity struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` @@ -6933,7 +6933,7 @@ type CopyActivity struct { TypeProperties *CopyActivityTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` @@ -6986,10 +6986,10 @@ func (c *CopyActivity) GetExecutionActivity() *ExecutionActivity { // CopyActivityLogSettings - Settings for copy activity log. type CopyActivityLogSettings struct { // Specifies whether to enable reliable logging. Type: boolean (or Expression with resultType boolean). - EnableReliableLogging interface{} `json:"enableReliableLogging,omitempty"` + EnableReliableLogging any `json:"enableReliableLogging,omitempty"` // Gets or sets the log level, support: Info, Warning. Type: string (or Expression with resultType string). - LogLevel interface{} `json:"logLevel,omitempty"` + LogLevel any `json:"logLevel,omitempty"` } // CopyActivityTypeProperties - Copy activity properties. @@ -7002,14 +7002,14 @@ type CopyActivityTypeProperties struct { // Maximum number of data integration units that can be used to perform this data movement. Type: integer (or Expression with // resultType integer), minimum: 0. - DataIntegrationUnits interface{} `json:"dataIntegrationUnits,omitempty"` + DataIntegrationUnits any `json:"dataIntegrationUnits,omitempty"` // Whether to skip incompatible row. Default value is false. Type: boolean (or Expression with resultType boolean). - EnableSkipIncompatibleRow interface{} `json:"enableSkipIncompatibleRow,omitempty"` + EnableSkipIncompatibleRow any `json:"enableSkipIncompatibleRow,omitempty"` // Specifies whether to copy data via an interim staging. Default value is false. Type: boolean (or Expression with resultType // boolean). - EnableStaging interface{} `json:"enableStaging,omitempty"` + EnableStaging any `json:"enableStaging,omitempty"` // Log settings customer needs provide when enabling log. LogSettings *LogSettings `json:"logSettings,omitempty"` @@ -7019,13 +7019,13 @@ type CopyActivityTypeProperties struct { // Maximum number of concurrent sessions opened on the source or sink to avoid overloading the data store. Type: integer (or // Expression with resultType integer), minimum: 0. - ParallelCopies interface{} `json:"parallelCopies,omitempty"` + ParallelCopies any `json:"parallelCopies,omitempty"` // Preserve rules. - Preserve []interface{} `json:"preserve,omitempty"` + Preserve []any `json:"preserve,omitempty"` // Preserve Rules. - PreserveRules []interface{} `json:"preserveRules,omitempty"` + PreserveRules []any `json:"preserveRules,omitempty"` // Redirect incompatible row settings when EnableSkipIncompatibleRow is true. RedirectIncompatibleRowSettings *RedirectIncompatibleRowSettings `json:"redirectIncompatibleRowSettings,omitempty"` @@ -7037,10 +7037,10 @@ type CopyActivityTypeProperties struct { StagingSettings *StagingSettings `json:"stagingSettings,omitempty"` // Copy activity translator. If not specified, tabular translator is used. - Translator interface{} `json:"translator,omitempty"` + Translator any `json:"translator,omitempty"` // Whether to enable Data Consistency validation. Type: boolean (or Expression with resultType boolean). - ValidateDataConsistency interface{} `json:"validateDataConsistency,omitempty"` + ValidateDataConsistency any `json:"validateDataConsistency,omitempty"` } // CopySinkClassification provides polymorphic access to related types. @@ -7063,25 +7063,25 @@ type CopySink struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + SinkRetryCount any `json:"sinkRetryCount,omitempty"` // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + SinkRetryWait any `json:"sinkRetryWait,omitempty"` // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + WriteBatchSize any `json:"writeBatchSize,omitempty"` // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + WriteBatchTimeout any `json:"writeBatchTimeout,omitempty"` } // GetCopySink implements the CopySinkClassification interface for type CopySink. @@ -7115,19 +7115,19 @@ type CopySource struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type CopySource. @@ -7142,10 +7142,10 @@ type CosmosDbLinkedService struct { TypeProperties *CosmosDbLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -7172,7 +7172,7 @@ func (c *CosmosDbLinkedService) GetLinkedService() *LinkedService { // CosmosDbLinkedServiceTypeProperties - CosmosDB linked service properties. type CosmosDbLinkedServiceTypeProperties struct { // The endpoint of the Azure CosmosDB account. Type: string (or Expression with resultType string) - AccountEndpoint interface{} `json:"accountEndpoint,omitempty"` + AccountEndpoint any `json:"accountEndpoint,omitempty"` // The account key of the Azure CosmosDB account. Type: SecureString or AzureKeyVaultSecretReference. AccountKey SecretBaseClassification `json:"accountKey,omitempty"` @@ -7180,23 +7180,23 @@ type CosmosDbLinkedServiceTypeProperties struct { // Indicates the azure cloud type of the service principle auth. Allowed values are AzurePublic, AzureChina, AzureUsGovernment, // AzureGermany. Default value is the data factory regions’ cloud type. Type: // string (or Expression with resultType string). - AzureCloudType interface{} `json:"azureCloudType,omitempty"` + AzureCloudType any `json:"azureCloudType,omitempty"` // The connection mode used to access CosmosDB account. Type: string (or Expression with resultType string). ConnectionMode *CosmosDbConnectionMode `json:"connectionMode,omitempty"` // The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` + ConnectionString any `json:"connectionString,omitempty"` // The credential reference containing authentication information. Credential *CredentialReference `json:"credential,omitempty"` // The name of the database. Type: string (or Expression with resultType string) - Database interface{} `json:"database,omitempty"` + Database any `json:"database,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // The credential of the service principal object in Azure Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', // servicePrincipalCredential can be SecureString or @@ -7211,10 +7211,10 @@ type CosmosDbLinkedServiceTypeProperties struct { // The client ID of the application in Azure Active Directory used for Server-To-Server authentication. Type: string (or Expression // with resultType string). - ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` + ServicePrincipalID any `json:"servicePrincipalId,omitempty"` // The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string). - Tenant interface{} `json:"tenant,omitempty"` + Tenant any `json:"tenant,omitempty"` } // CosmosDbMongoDbAPICollectionDataset - The CosmosDB (MongoDB API) database dataset. @@ -7229,10 +7229,10 @@ type CosmosDbMongoDbAPICollectionDataset struct { TypeProperties *CosmosDbMongoDbAPICollectionDatasetTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -7245,10 +7245,10 @@ type CosmosDbMongoDbAPICollectionDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` } // GetDataset implements the DatasetClassification interface for type CosmosDbMongoDbAPICollectionDataset. @@ -7269,7 +7269,7 @@ func (c *CosmosDbMongoDbAPICollectionDataset) GetDataset() *Dataset { // CosmosDbMongoDbAPICollectionDatasetTypeProperties - CosmosDB (MongoDB API) database dataset properties. type CosmosDbMongoDbAPICollectionDatasetTypeProperties struct { // REQUIRED; The collection name of the CosmosDB (MongoDB API) database. Type: string (or Expression with resultType string). - Collection interface{} `json:"collection,omitempty"` + Collection any `json:"collection,omitempty"` } // CosmosDbMongoDbAPILinkedService - Linked service for CosmosDB (MongoDB API) data source. @@ -7281,10 +7281,10 @@ type CosmosDbMongoDbAPILinkedService struct { TypeProperties *CosmosDbMongoDbAPILinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -7312,15 +7312,15 @@ func (c *CosmosDbMongoDbAPILinkedService) GetLinkedService() *LinkedService { type CosmosDbMongoDbAPILinkedServiceTypeProperties struct { // REQUIRED; The CosmosDB (MongoDB API) connection string. Type: string, SecureString or AzureKeyVaultSecretReference. Type: // string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` + ConnectionString any `json:"connectionString,omitempty"` // REQUIRED; The name of the CosmosDB (MongoDB API) database that you want to access. Type: string (or Expression with resultType // string). - Database interface{} `json:"database,omitempty"` + Database any `json:"database,omitempty"` // Whether the CosmosDB (MongoDB API) server version is higher than 3.2. The default value is false. Type: boolean (or Expression // with resultType boolean). - IsServerVersionAbove32 interface{} `json:"isServerVersionAbove32,omitempty"` + IsServerVersionAbove32 any `json:"isServerVersionAbove32,omitempty"` } // CosmosDbMongoDbAPISink - A copy activity sink for a CosmosDB (MongoDB API) database. @@ -7329,30 +7329,30 @@ type CosmosDbMongoDbAPISink struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + SinkRetryCount any `json:"sinkRetryCount,omitempty"` // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + SinkRetryWait any `json:"sinkRetryWait,omitempty"` // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + WriteBatchSize any `json:"writeBatchSize,omitempty"` // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + WriteBatchTimeout any `json:"writeBatchTimeout,omitempty"` // Specifies whether the document with same key to be overwritten (upsert) rather than throw exception (insert). The default // value is "insert". Type: string (or Expression with resultType string). Type: // string (or Expression with resultType string). - WriteBehavior interface{} `json:"writeBehavior,omitempty"` + WriteBehavior any `json:"writeBehavior,omitempty"` } // GetCopySink implements the CopySinkClassification interface for type CosmosDbMongoDbAPISink. @@ -7376,37 +7376,37 @@ type CosmosDbMongoDbAPISource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Specifies the number of documents to return in each batch of the response from MongoDB instance. In most cases, modifying // the batch size will not affect the user or the application. This property's // main purpose is to avoid hit the limitation of response size. Type: integer (or Expression with resultType integer). - BatchSize interface{} `json:"batchSize,omitempty"` + BatchSize any `json:"batchSize,omitempty"` // Cursor methods for Mongodb query. CursorMethods *MongoDbCursorMethodsProperties `json:"cursorMethods,omitempty"` // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // Specifies selection filter using query operators. To return all documents in a collection, omit this parameter or pass // an empty document ({}). Type: string (or Expression with resultType string). - Filter interface{} `json:"filter,omitempty"` + Filter any `json:"filter,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type CosmosDbMongoDbAPISource. @@ -7433,10 +7433,10 @@ type CosmosDbSQLAPICollectionDataset struct { TypeProperties *CosmosDbSQLAPICollectionDatasetTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -7449,10 +7449,10 @@ type CosmosDbSQLAPICollectionDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` } // GetDataset implements the DatasetClassification interface for type CosmosDbSQLAPICollectionDataset. @@ -7473,7 +7473,7 @@ func (c *CosmosDbSQLAPICollectionDataset) GetDataset() *Dataset { // CosmosDbSQLAPICollectionDatasetTypeProperties - CosmosDB (SQL API) Collection dataset properties. type CosmosDbSQLAPICollectionDatasetTypeProperties struct { // REQUIRED; CosmosDB (SQL API) collection name. Type: string (or Expression with resultType string). - CollectionName interface{} `json:"collectionName,omitempty"` + CollectionName any `json:"collectionName,omitempty"` } // CosmosDbSQLAPISink - A copy activity Azure CosmosDB (SQL API) Collection sink. @@ -7482,29 +7482,29 @@ type CosmosDbSQLAPISink struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + SinkRetryCount any `json:"sinkRetryCount,omitempty"` // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + SinkRetryWait any `json:"sinkRetryWait,omitempty"` // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + WriteBatchSize any `json:"writeBatchSize,omitempty"` // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + WriteBatchTimeout any `json:"writeBatchTimeout,omitempty"` // Describes how to write data to Azure Cosmos DB. Type: string (or Expression with resultType string). Allowed values: insert // and upsert. - WriteBehavior interface{} `json:"writeBehavior,omitempty"` + WriteBehavior any `json:"writeBehavior,omitempty"` } // GetCopySink implements the CopySinkClassification interface for type CosmosDbSQLAPISink. @@ -7528,34 +7528,34 @@ type CosmosDbSQLAPISource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Whether detect primitive values as datetime values. Type: boolean (or Expression with resultType boolean). - DetectDatetime interface{} `json:"detectDatetime,omitempty"` + DetectDatetime any `json:"detectDatetime,omitempty"` // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // Page size of the result. Type: integer (or Expression with resultType integer). - PageSize interface{} `json:"pageSize,omitempty"` + PageSize any `json:"pageSize,omitempty"` // Preferred regions. Type: array of strings (or Expression with resultType array of strings). - PreferredRegions interface{} `json:"preferredRegions,omitempty"` + PreferredRegions any `json:"preferredRegions,omitempty"` // SQL API query. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any `json:"query,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type CosmosDbSQLAPISource. @@ -7579,10 +7579,10 @@ type CouchbaseLinkedService struct { TypeProperties *CouchbaseLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -7609,14 +7609,14 @@ func (c *CouchbaseLinkedService) GetLinkedService() *LinkedService { // CouchbaseLinkedServiceTypeProperties - Couchbase server linked service properties. type CouchbaseLinkedServiceTypeProperties struct { // An ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` + ConnectionString any `json:"connectionString,omitempty"` // The Azure key vault secret reference of credString in connection string. CredString *AzureKeyVaultSecretReference `json:"credString,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` } // CouchbaseSource - A copy activity Couchbase server source. @@ -7626,28 +7626,28 @@ type CouchbaseSource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type CouchbaseSource. @@ -7685,10 +7685,10 @@ type CouchbaseTableDataset struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -7701,10 +7701,10 @@ type CouchbaseTableDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` // Properties specific to this dataset type. TypeProperties *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` @@ -7770,6 +7770,69 @@ type CreateRunResponse struct { RunID *string `json:"runId,omitempty"` } +// CredentialClassification provides polymorphic access to related types. +// Call the interface's GetCredential() method to access the common type. +// Use a type switch to determine the concrete type. The possible types are: +// - *Credential, *ManagedIdentityCredential, *ServicePrincipalCredential +type CredentialClassification interface { + // GetCredential returns the Credential content of the underlying type. + GetCredential() *Credential +} + +// Credential - The Azure Data Factory nested object which contains the information and credential which can be used to connect +// with related store or compute resource. +type Credential struct { + // REQUIRED; Type of credential. + Type *string `json:"type,omitempty"` + + // OPTIONAL; Contains additional key/value pairs not defined in the schema. + AdditionalProperties map[string]any + + // List of tags that can be used for describing the Credential. + Annotations []any `json:"annotations,omitempty"` + + // Credential description. + Description *string `json:"description,omitempty"` +} + +// GetCredential implements the CredentialClassification interface for type Credential. +func (c *Credential) GetCredential() *Credential { return c } + +// CredentialListResponse - A list of credential resources. +type CredentialListResponse struct { + // REQUIRED; List of credentials. + Value []*ManagedIdentityCredentialResource `json:"value,omitempty"` + + // The link to the next page of results, if any remaining results exist. + NextLink *string `json:"nextLink,omitempty"` +} + +// CredentialOperationsClientCreateOrUpdateOptions contains the optional parameters for the CredentialOperationsClient.CreateOrUpdate +// method. +type CredentialOperationsClientCreateOrUpdateOptions struct { + // ETag of the credential entity. Should only be specified for update, for which it should match existing entity or can be + // * for unconditional update. + IfMatch *string +} + +// CredentialOperationsClientDeleteOptions contains the optional parameters for the CredentialOperationsClient.Delete method. +type CredentialOperationsClientDeleteOptions struct { + // placeholder for future optional parameters +} + +// CredentialOperationsClientGetOptions contains the optional parameters for the CredentialOperationsClient.Get method. +type CredentialOperationsClientGetOptions struct { + // ETag of the credential entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was + // provided, then no content will be returned. + IfNoneMatch *string +} + +// CredentialOperationsClientListByFactoryOptions contains the optional parameters for the CredentialOperationsClient.NewListByFactoryPager +// method. +type CredentialOperationsClientListByFactoryOptions struct { + // placeholder for future optional parameters +} + // CredentialReference - Credential reference type. type CredentialReference struct { // REQUIRED; Reference credential name. @@ -7779,7 +7842,7 @@ type CredentialReference struct { Type *CredentialReferenceType `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any } // CustomActivity - Custom activity type. @@ -7794,7 +7857,7 @@ type CustomActivity struct { TypeProperties *CustomActivityTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` @@ -7850,17 +7913,17 @@ type CustomActivityReferenceObject struct { // CustomActivityTypeProperties - Custom activity properties. type CustomActivityTypeProperties struct { // REQUIRED; Command for custom activity Type: string (or Expression with resultType string). - Command interface{} `json:"command,omitempty"` + Command any `json:"command,omitempty"` // Elevation level and scope for the user, default is nonadmin task. Type: string (or Expression with resultType double). - AutoUserSpecification interface{} `json:"autoUserSpecification,omitempty"` + AutoUserSpecification any `json:"autoUserSpecification,omitempty"` // User defined property bag. There is no restriction on the keys or values that can be used. The user specified custom activity // has the full responsibility to consume and interpret the content defined. - ExtendedProperties map[string]interface{} `json:"extendedProperties,omitempty"` + ExtendedProperties map[string]any `json:"extendedProperties,omitempty"` // Folder path for resource files Type: string (or Expression with resultType string). - FolderPath interface{} `json:"folderPath,omitempty"` + FolderPath any `json:"folderPath,omitempty"` // Reference objects ReferenceObjects *CustomActivityReferenceObject `json:"referenceObjects,omitempty"` @@ -7869,7 +7932,7 @@ type CustomActivityTypeProperties struct { ResourceLinkedService *LinkedServiceReference `json:"resourceLinkedService,omitempty"` // The retention time for the files submitted for custom activity. Type: double (or Expression with resultType double). - RetentionTimeInDays interface{} `json:"retentionTimeInDays,omitempty"` + RetentionTimeInDays any `json:"retentionTimeInDays,omitempty"` } // CustomDataSourceLinkedService - Custom linked service. @@ -7878,13 +7941,13 @@ type CustomDataSourceLinkedService struct { Type *string `json:"type,omitempty"` // REQUIRED; Custom linked service properties. - TypeProperties interface{} `json:"typeProperties,omitempty"` + TypeProperties any `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -7917,10 +7980,10 @@ type CustomDataset struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -7933,13 +7996,13 @@ type CustomDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` // Custom dataset properties. - TypeProperties interface{} `json:"typeProperties,omitempty"` + TypeProperties any `json:"typeProperties,omitempty"` } // GetDataset implements the DatasetClassification interface for type CustomDataset. @@ -7966,10 +8029,10 @@ type CustomEventsTrigger struct { TypeProperties *CustomEventsTriggerTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the trigger. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Trigger description. Description *string `json:"description,omitempty"` @@ -8007,7 +8070,7 @@ func (c *CustomEventsTrigger) GetTrigger() *Trigger { // CustomEventsTriggerTypeProperties - Custom Events Trigger properties. type CustomEventsTriggerTypeProperties struct { // REQUIRED; The list of event types that cause this trigger to fire. - Events []interface{} `json:"events,omitempty"` + Events []any `json:"events,omitempty"` // REQUIRED; The ARM resource ID of the Azure Event Grid Topic. Scope *string `json:"scope,omitempty"` @@ -8042,10 +8105,10 @@ func (c *CustomSetupBase) GetCustomSetupBase() *CustomSetupBase { return c } // DWCopyCommandDefaultValue - Default value. type DWCopyCommandDefaultValue struct { // Column name. Type: object (or Expression with resultType string). - ColumnName interface{} `json:"columnName,omitempty"` + ColumnName any `json:"columnName,omitempty"` // The default value of the column. Type: object (or Expression with resultType string). - DefaultValue interface{} `json:"defaultValue,omitempty"` + DefaultValue any `json:"defaultValue,omitempty"` } // DWCopyCommandSettings - DW Copy Command settings. @@ -8076,7 +8139,7 @@ type DataFlow struct { Type *string `json:"type,omitempty"` // List of tags that can be used for describing the data flow. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The description of the data flow. Description *string `json:"description,omitempty"` @@ -8127,7 +8190,7 @@ type DataFlowDebugCommandResponse struct { // DataFlowDebugPackage - Request body structure for starting data flow debug session. type DataFlowDebugPackage struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Data flow instance. DataFlow *DataFlowDebugResource `json:"dataFlow,omitempty"` @@ -8154,10 +8217,10 @@ type DataFlowDebugPackage struct { // DataFlowDebugPackageDebugSettings - Data flow debug settings. type DataFlowDebugPackageDebugSettings struct { // Parameters for dataset. - DatasetParameters interface{} `json:"datasetParameters,omitempty"` + DatasetParameters any `json:"datasetParameters,omitempty"` // Data flow parameters. - Parameters map[string]interface{} `json:"parameters,omitempty"` + Parameters map[string]any `json:"parameters,omitempty"` // Source setting for data flow debug. SourceSettings []*DataFlowSourceSetting `json:"sourceSettings,omitempty"` @@ -8197,7 +8260,7 @@ type DataFlowDebugSessionClientDeleteOptions struct { // placeholder for future optional parameters } -// DataFlowDebugSessionClientQueryByFactoryOptions contains the optional parameters for the DataFlowDebugSessionClient.QueryByFactory +// DataFlowDebugSessionClientQueryByFactoryOptions contains the optional parameters for the DataFlowDebugSessionClient.NewQueryByFactoryPager // method. type DataFlowDebugSessionClientQueryByFactoryOptions struct { // placeholder for future optional parameters @@ -8206,7 +8269,7 @@ type DataFlowDebugSessionClientQueryByFactoryOptions struct { // DataFlowDebugSessionInfo - Data flow debug session info. type DataFlowDebugSessionInfo struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Compute type of the cluster. ComputeType *string `json:"computeType,omitempty"` @@ -8260,13 +8323,13 @@ type DataFlowReference struct { Type *DataFlowReferenceType `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Reference data flow parameters from dataset. - DatasetParameters interface{} `json:"datasetParameters,omitempty"` + DatasetParameters any `json:"datasetParameters,omitempty"` // Data flow parameters - Parameters map[string]interface{} `json:"parameters,omitempty"` + Parameters map[string]any `json:"parameters,omitempty"` } // DataFlowResource - Data flow resource type. @@ -8335,7 +8398,7 @@ type DataFlowSource struct { // DataFlowSourceSetting - Definition of data flow source setting for debug. type DataFlowSourceSetting struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Defines the row limit of data flow source in debug. RowLimit *int32 `json:"rowLimit,omitempty"` @@ -8347,7 +8410,7 @@ type DataFlowSourceSetting struct { // DataFlowStagingInfo - Staging info for execute data flow activity. type DataFlowStagingInfo struct { // Folder path for staging blob. Type: string (or Expression with resultType string) - FolderPath interface{} `json:"folderPath,omitempty"` + FolderPath any `json:"folderPath,omitempty"` // Staging linked service reference. LinkedService *LinkedServiceReference `json:"linkedService,omitempty"` @@ -8372,7 +8435,7 @@ type DataFlowsClientGetOptions struct { IfNoneMatch *string } -// DataFlowsClientListByFactoryOptions contains the optional parameters for the DataFlowsClient.ListByFactory method. +// DataFlowsClientListByFactoryOptions contains the optional parameters for the DataFlowsClient.NewListByFactoryPager method. type DataFlowsClientListByFactoryOptions struct { // placeholder for future optional parameters } @@ -8389,7 +8452,7 @@ type DataLakeAnalyticsUSQLActivity struct { TypeProperties *DataLakeAnalyticsUSQLActivityTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` @@ -8439,26 +8502,26 @@ type DataLakeAnalyticsUSQLActivityTypeProperties struct { ScriptLinkedService *LinkedServiceReference `json:"scriptLinkedService,omitempty"` // REQUIRED; Case-sensitive path to folder that contains the U-SQL script. Type: string (or Expression with resultType string). - ScriptPath interface{} `json:"scriptPath,omitempty"` + ScriptPath any `json:"scriptPath,omitempty"` // Compilation mode of U-SQL. Must be one of these values : Semantic, Full and SingleBox. Type: string (or Expression with // resultType string). - CompilationMode interface{} `json:"compilationMode,omitempty"` + CompilationMode any `json:"compilationMode,omitempty"` // The maximum number of nodes simultaneously used to run the job. Default value is 1. Type: integer (or Expression with resultType // integer), minimum: 1. - DegreeOfParallelism interface{} `json:"degreeOfParallelism,omitempty"` + DegreeOfParallelism any `json:"degreeOfParallelism,omitempty"` // Parameters for U-SQL job request. - Parameters map[string]interface{} `json:"parameters,omitempty"` + Parameters map[string]any `json:"parameters,omitempty"` // Determines which jobs out of all that are queued should be selected to run first. The lower the number, the higher the // priority. Default value is 1000. Type: integer (or Expression with resultType // integer), minimum: 1. - Priority interface{} `json:"priority,omitempty"` + Priority any `json:"priority,omitempty"` // Runtime version of the U-SQL engine to use. Type: string (or Expression with resultType string). - RuntimeVersion interface{} `json:"runtimeVersion,omitempty"` + RuntimeVersion any `json:"runtimeVersion,omitempty"` } // DatabricksNotebookActivity - DatabricksNotebook activity. @@ -8473,7 +8536,7 @@ type DatabricksNotebookActivity struct { TypeProperties *DatabricksNotebookActivityTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` @@ -8521,14 +8584,14 @@ func (d *DatabricksNotebookActivity) GetExecutionActivity() *ExecutionActivity { type DatabricksNotebookActivityTypeProperties struct { // REQUIRED; The absolute path of the notebook to be run in the Databricks Workspace. This path must begin with a slash. Type: // string (or Expression with resultType string). - NotebookPath interface{} `json:"notebookPath,omitempty"` + NotebookPath any `json:"notebookPath,omitempty"` // Base parameters to be used for each run of this job.If the notebook takes a parameter that is not specified, the default // value from the notebook will be used. - BaseParameters map[string]interface{} `json:"baseParameters,omitempty"` + BaseParameters map[string]any `json:"baseParameters,omitempty"` // A list of libraries to be installed on the cluster that will execute the job. - Libraries []map[string]interface{} `json:"libraries,omitempty"` + Libraries []map[string]any `json:"libraries,omitempty"` } // DatabricksSparkJarActivity - DatabricksSparkJar activity. @@ -8543,7 +8606,7 @@ type DatabricksSparkJarActivity struct { TypeProperties *DatabricksSparkJarActivityTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` @@ -8591,13 +8654,13 @@ func (d *DatabricksSparkJarActivity) GetExecutionActivity() *ExecutionActivity { type DatabricksSparkJarActivityTypeProperties struct { // REQUIRED; The full name of the class containing the main method to be executed. This class must be contained in a JAR provided // as a library. Type: string (or Expression with resultType string). - MainClassName interface{} `json:"mainClassName,omitempty"` + MainClassName any `json:"mainClassName,omitempty"` // A list of libraries to be installed on the cluster that will execute the job. - Libraries []map[string]interface{} `json:"libraries,omitempty"` + Libraries []map[string]any `json:"libraries,omitempty"` // Parameters that will be passed to the main method. - Parameters []interface{} `json:"parameters,omitempty"` + Parameters []any `json:"parameters,omitempty"` } // DatabricksSparkPythonActivity - DatabricksSparkPython activity. @@ -8612,7 +8675,7 @@ type DatabricksSparkPythonActivity struct { TypeProperties *DatabricksSparkPythonActivityTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` @@ -8660,13 +8723,13 @@ func (d *DatabricksSparkPythonActivity) GetExecutionActivity() *ExecutionActivit type DatabricksSparkPythonActivityTypeProperties struct { // REQUIRED; The URI of the Python file to be executed. DBFS paths are supported. Type: string (or Expression with resultType // string). - PythonFile interface{} `json:"pythonFile,omitempty"` + PythonFile any `json:"pythonFile,omitempty"` // A list of libraries to be installed on the cluster that will execute the job. - Libraries []map[string]interface{} `json:"libraries,omitempty"` + Libraries []map[string]any `json:"libraries,omitempty"` // Command line parameters that will be passed to the Python file. - Parameters []interface{} `json:"parameters,omitempty"` + Parameters []any `json:"parameters,omitempty"` } // DatasetClassification provides polymorphic access to related types. @@ -8706,10 +8769,10 @@ type Dataset struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -8722,10 +8785,10 @@ type Dataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` } // GetDataset implements the DatasetClassification interface for type Dataset. @@ -8734,13 +8797,13 @@ func (d *Dataset) GetDataset() *Dataset { return d } // DatasetCompression - The compression method used on a dataset. type DatasetCompression struct { // REQUIRED; Type of dataset compression. Type: string (or Expression with resultType string). - Type interface{} `json:"type,omitempty"` + Type any `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // The dataset compression level. Type: string (or Expression with resultType string). - Level interface{} `json:"level,omitempty"` + Level any `json:"level,omitempty"` } // DatasetDebugResource - Dataset debug resource. @@ -8784,13 +8847,13 @@ type DatasetLocation struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Specify the file name of dataset. Type: string (or Expression with resultType string). - FileName interface{} `json:"fileName,omitempty"` + FileName any `json:"fileName,omitempty"` // Specify the folder path of dataset. Type: string (or Expression with resultType string) - FolderPath interface{} `json:"folderPath,omitempty"` + FolderPath any `json:"folderPath,omitempty"` } // GetDatasetLocation implements the DatasetLocationClassification interface for type DatasetLocation. @@ -8805,7 +8868,7 @@ type DatasetReference struct { Type *DatasetReferenceType `json:"type,omitempty"` // Arguments for dataset. - Parameters map[string]interface{} `json:"parameters,omitempty"` + Parameters map[string]any `json:"parameters,omitempty"` } // DatasetResource - Dataset resource type. @@ -8841,13 +8904,13 @@ type DatasetStorageFormat struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Deserializer. Type: string (or Expression with resultType string). - Deserializer interface{} `json:"deserializer,omitempty"` + Deserializer any `json:"deserializer,omitempty"` // Serializer. Type: string (or Expression with resultType string). - Serializer interface{} `json:"serializer,omitempty"` + Serializer any `json:"serializer,omitempty"` } // GetDatasetStorageFormat implements the DatasetStorageFormatClassification interface for type DatasetStorageFormat. @@ -8872,7 +8935,7 @@ type DatasetsClientGetOptions struct { IfNoneMatch *string } -// DatasetsClientListByFactoryOptions contains the optional parameters for the DatasetsClient.ListByFactory method. +// DatasetsClientListByFactoryOptions contains the optional parameters for the DatasetsClient.NewListByFactoryPager method. type DatasetsClientListByFactoryOptions struct { // placeholder for future optional parameters } @@ -8886,10 +8949,10 @@ type DataworldLinkedService struct { TypeProperties *DataworldLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -8920,7 +8983,7 @@ type DataworldLinkedServiceTypeProperties struct { // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` } // Db2LinkedService - Linked service for DB2 data source. @@ -8932,10 +8995,10 @@ type Db2LinkedService struct { TypeProperties *Db2LinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -8966,36 +9029,36 @@ type Db2LinkedServiceTypeProperties struct { // Certificate Common Name when TLS is enabled. It is mutually exclusive with connectionString property. Type: string (or // Expression with resultType string). - CertificateCommonName interface{} `json:"certificateCommonName,omitempty"` + CertificateCommonName any `json:"certificateCommonName,omitempty"` // The connection string. It is mutually exclusive with server, database, authenticationType, userName, packageCollection // and certificateCommonName property. Type: string, SecureString or // AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` + ConnectionString any `json:"connectionString,omitempty"` // Database name for connection. It is mutually exclusive with connectionString property. Type: string (or Expression with // resultType string). - Database interface{} `json:"database,omitempty"` + Database any `json:"database,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // It is mutually exclusive with connectionString property. Type: string (or // Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // Under where packages are created when querying database. It is mutually exclusive with connectionString property. Type: // string (or Expression with resultType string). - PackageCollection interface{} `json:"packageCollection,omitempty"` + PackageCollection any `json:"packageCollection,omitempty"` // Password for authentication. Password SecretBaseClassification `json:"password,omitempty"` // Server name for connection. It is mutually exclusive with connectionString property. Type: string (or Expression with resultType // string). - Server interface{} `json:"server,omitempty"` + Server any `json:"server,omitempty"` // Username for authentication. It is mutually exclusive with connectionString property. Type: string (or Expression with // resultType string). - Username interface{} `json:"username,omitempty"` + Username any `json:"username,omitempty"` } // Db2Source - A copy activity source for Db2 databases. @@ -9005,28 +9068,28 @@ type Db2Source struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // Database query. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type Db2Source. @@ -9064,10 +9127,10 @@ type Db2TableDataset struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -9080,10 +9143,10 @@ type Db2TableDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` // Db2 table dataset properties. TypeProperties *Db2TableDatasetTypeProperties `json:"typeProperties,omitempty"` @@ -9107,13 +9170,13 @@ func (d *Db2TableDataset) GetDataset() *Dataset { // Db2TableDatasetTypeProperties - Db2 table dataset properties. type Db2TableDatasetTypeProperties struct { // The Db2 schema name. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // The Db2 table name. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` + Table any `json:"table,omitempty"` // This property will be retired. Please consider using schema + table properties instead. - TableName interface{} `json:"tableName,omitempty"` + TableName any `json:"tableName,omitempty"` } // DeleteActivity - Delete activity. @@ -9128,7 +9191,7 @@ type DeleteActivity struct { TypeProperties *DeleteActivityTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` @@ -9179,7 +9242,7 @@ type DeleteActivityTypeProperties struct { // Whether to record detailed logs of delete-activity execution. Default value is false. Type: boolean (or Expression with // resultType boolean). - EnableLogging interface{} `json:"enableLogging,omitempty"` + EnableLogging any `json:"enableLogging,omitempty"` // Log storage settings customer need to provide when enableLogging is true. LogStorageSettings *LogStorageSettings `json:"logStorageSettings,omitempty"` @@ -9189,7 +9252,7 @@ type DeleteActivityTypeProperties struct { // If true, files or sub-folders under current folder path will be deleted recursively. Default is false. Type: boolean (or // Expression with resultType boolean). - Recursive interface{} `json:"recursive,omitempty"` + Recursive any `json:"recursive,omitempty"` // Delete activity store settings. StoreSettings StoreReadSettingsClassification `json:"storeSettings,omitempty"` @@ -9210,10 +9273,10 @@ type DelimitedTextDataset struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -9226,10 +9289,10 @@ type DelimitedTextDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` // Delimited text dataset properties. TypeProperties *DelimitedTextDatasetTypeProperties `json:"typeProperties,omitempty"` @@ -9256,36 +9319,36 @@ type DelimitedTextDatasetTypeProperties struct { Location DatasetLocationClassification `json:"location,omitempty"` // The column delimiter. Type: string (or Expression with resultType string). - ColumnDelimiter interface{} `json:"columnDelimiter,omitempty"` + ColumnDelimiter any `json:"columnDelimiter,omitempty"` // The data compressionCodec. Type: string (or Expression with resultType string). - CompressionCodec interface{} `json:"compressionCodec,omitempty"` + CompressionCodec any `json:"compressionCodec,omitempty"` // The data compression method used for DelimitedText. - CompressionLevel interface{} `json:"compressionLevel,omitempty"` + CompressionLevel any `json:"compressionLevel,omitempty"` // The code page name of the preferred encoding. If miss, the default value is UTF-8, unless BOM denotes another Unicode encoding. // Refer to the name column of the table in the following link to set // supported values: https://msdn.microsoft.com/library/system.text.encoding.aspx. Type: string (or Expression with resultType // string). - EncodingName interface{} `json:"encodingName,omitempty"` + EncodingName any `json:"encodingName,omitempty"` // The escape character. Type: string (or Expression with resultType string). - EscapeChar interface{} `json:"escapeChar,omitempty"` + EscapeChar any `json:"escapeChar,omitempty"` // When used as input, treat the first row of data as headers. When used as output,write the headers into the output as the // first row of data. The default value is false. Type: boolean (or Expression // with resultType boolean). - FirstRowAsHeader interface{} `json:"firstRowAsHeader,omitempty"` + FirstRowAsHeader any `json:"firstRowAsHeader,omitempty"` // The null value string. Type: string (or Expression with resultType string). - NullValue interface{} `json:"nullValue,omitempty"` + NullValue any `json:"nullValue,omitempty"` // The quote character. Type: string (or Expression with resultType string). - QuoteChar interface{} `json:"quoteChar,omitempty"` + QuoteChar any `json:"quoteChar,omitempty"` // The row delimiter. Type: string (or Expression with resultType string). - RowDelimiter interface{} `json:"rowDelimiter,omitempty"` + RowDelimiter any `json:"rowDelimiter,omitempty"` } // DelimitedTextReadSettings - Delimited text read settings. @@ -9294,14 +9357,14 @@ type DelimitedTextReadSettings struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Compression settings. CompressionProperties CompressionReadSettingsClassification `json:"compressionProperties,omitempty"` // Indicates the number of non-empty rows to skip when reading data from input files. Type: integer (or Expression with resultType // integer). - SkipLineCount interface{} `json:"skipLineCount,omitempty"` + SkipLineCount any `json:"skipLineCount,omitempty"` } // GetFormatReadSettings implements the FormatReadSettingsClassification interface for type DelimitedTextReadSettings. @@ -9318,31 +9381,31 @@ type DelimitedTextSink struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // DelimitedText format settings. FormatSettings *DelimitedTextWriteSettings `json:"formatSettings,omitempty"` // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + SinkRetryCount any `json:"sinkRetryCount,omitempty"` // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + SinkRetryWait any `json:"sinkRetryWait,omitempty"` // DelimitedText store settings. StoreSettings StoreWriteSettingsClassification `json:"storeSettings,omitempty"` // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + WriteBatchSize any `json:"writeBatchSize,omitempty"` // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + WriteBatchTimeout any `json:"writeBatchTimeout,omitempty"` } // GetCopySink implements the CopySinkClassification interface for type DelimitedTextSink. @@ -9366,25 +9429,25 @@ type DelimitedTextSource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // DelimitedText format settings. FormatSettings *DelimitedTextReadSettings `json:"formatSettings,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` // DelimitedText store settings. StoreSettings StoreReadSettingsClassification `json:"storeSettings,omitempty"` @@ -9405,24 +9468,24 @@ func (d *DelimitedTextSource) GetCopySource() *CopySource { // DelimitedTextWriteSettings - Delimited text write settings. type DelimitedTextWriteSettings struct { // REQUIRED; The file extension used to create the files. Type: string (or Expression with resultType string). - FileExtension interface{} `json:"fileExtension,omitempty"` + FileExtension any `json:"fileExtension,omitempty"` // REQUIRED; The write setting type. Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Specifies the file name pattern _. when copy from non-file based store without partitionOptions. Type: string (or Expression // with resultType string). - FileNamePrefix interface{} `json:"fileNamePrefix,omitempty"` + FileNamePrefix any `json:"fileNamePrefix,omitempty"` // Limit the written file's row count to be smaller than or equal to the specified count. Type: integer (or Expression with // resultType integer). - MaxRowsPerFile interface{} `json:"maxRowsPerFile,omitempty"` + MaxRowsPerFile any `json:"maxRowsPerFile,omitempty"` // Indicates whether string values should always be enclosed with quotes. Type: boolean (or Expression with resultType boolean). - QuoteAllText interface{} `json:"quoteAllText,omitempty"` + QuoteAllText any `json:"quoteAllText,omitempty"` } // GetFormatWriteSettings implements the FormatWriteSettingsClassification interface for type DelimitedTextWriteSettings. @@ -9454,15 +9517,15 @@ func (d *DependencyReference) GetDependencyReference() *DependencyReference { re // DistcpSettings - Distcp settings. type DistcpSettings struct { // REQUIRED; Specifies the Yarn ResourceManager endpoint. Type: string (or Expression with resultType string). - ResourceManagerEndpoint interface{} `json:"resourceManagerEndpoint,omitempty"` + ResourceManagerEndpoint any `json:"resourceManagerEndpoint,omitempty"` // REQUIRED; Specifies an existing folder path which will be used to store temp Distcp command script. The script file is // generated by ADF and will be removed after Copy job finished. Type: string (or Expression // with resultType string). - TempScriptPath interface{} `json:"tempScriptPath,omitempty"` + TempScriptPath any `json:"tempScriptPath,omitempty"` // Specifies the Distcp options. Type: string (or Expression with resultType string). - DistcpOptions interface{} `json:"distcpOptions,omitempty"` + DistcpOptions any `json:"distcpOptions,omitempty"` } // DocumentDbCollectionDataset - Microsoft Azure Document Database Collection dataset. @@ -9477,10 +9540,10 @@ type DocumentDbCollectionDataset struct { TypeProperties *DocumentDbCollectionDatasetTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -9493,10 +9556,10 @@ type DocumentDbCollectionDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` } // GetDataset implements the DatasetClassification interface for type DocumentDbCollectionDataset. @@ -9517,7 +9580,7 @@ func (d *DocumentDbCollectionDataset) GetDataset() *Dataset { // DocumentDbCollectionDatasetTypeProperties - DocumentDB Collection dataset properties. type DocumentDbCollectionDatasetTypeProperties struct { // REQUIRED; Document Database collection name. Type: string (or Expression with resultType string). - CollectionName interface{} `json:"collectionName,omitempty"` + CollectionName any `json:"collectionName,omitempty"` } // DocumentDbCollectionSink - A copy activity Document Database Collection sink. @@ -9526,32 +9589,32 @@ type DocumentDbCollectionSink struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // Nested properties separator. Default is . (dot). Type: string (or Expression with resultType string). - NestingSeparator interface{} `json:"nestingSeparator,omitempty"` + NestingSeparator any `json:"nestingSeparator,omitempty"` // Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + SinkRetryCount any `json:"sinkRetryCount,omitempty"` // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + SinkRetryWait any `json:"sinkRetryWait,omitempty"` // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + WriteBatchSize any `json:"writeBatchSize,omitempty"` // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + WriteBatchTimeout any `json:"writeBatchTimeout,omitempty"` // Describes how to write data to Azure Cosmos DB. Type: string (or Expression with resultType string). Allowed values: insert // and upsert. - WriteBehavior interface{} `json:"writeBehavior,omitempty"` + WriteBehavior any `json:"writeBehavior,omitempty"` } // GetCopySink implements the CopySinkClassification interface for type DocumentDbCollectionSink. @@ -9575,31 +9638,31 @@ type DocumentDbCollectionSource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // Nested properties separator. Type: string (or Expression with resultType string). - NestingSeparator interface{} `json:"nestingSeparator,omitempty"` + NestingSeparator any `json:"nestingSeparator,omitempty"` // Documents query. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type DocumentDbCollectionSource. @@ -9617,13 +9680,13 @@ func (d *DocumentDbCollectionSource) GetCopySource() *CopySource { // DrillDatasetTypeProperties - Drill Dataset Properties type DrillDatasetTypeProperties struct { // The schema name of the Drill. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // The table name of the Drill. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` + Table any `json:"table,omitempty"` // This property will be retired. Please consider using schema + table properties instead. - TableName interface{} `json:"tableName,omitempty"` + TableName any `json:"tableName,omitempty"` } // DrillLinkedService - Drill server linked service. @@ -9635,10 +9698,10 @@ type DrillLinkedService struct { TypeProperties *DrillLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -9665,11 +9728,11 @@ func (d *DrillLinkedService) GetLinkedService() *LinkedService { // DrillLinkedServiceTypeProperties - Drill server linked service properties. type DrillLinkedServiceTypeProperties struct { // An ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` + ConnectionString any `json:"connectionString,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // The Azure key vault secret reference of password in connection string. Pwd *AzureKeyVaultSecretReference `json:"pwd,omitempty"` @@ -9682,28 +9745,28 @@ type DrillSource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type DrillSource. @@ -9741,10 +9804,10 @@ type DrillTableDataset struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -9757,10 +9820,10 @@ type DrillTableDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` // Properties specific to this dataset type. TypeProperties *DrillDatasetTypeProperties `json:"typeProperties,omitempty"` @@ -9790,10 +9853,10 @@ type DynamicsAXLinkedService struct { TypeProperties *DynamicsAXLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -9820,10 +9883,10 @@ func (d *DynamicsAXLinkedService) GetLinkedService() *LinkedService { // DynamicsAXLinkedServiceTypeProperties - Dynamics AX linked service properties. type DynamicsAXLinkedServiceTypeProperties struct { // REQUIRED; Specify the resource you are requesting authorization. Type: string (or Expression with resultType string). - AADResourceID interface{} `json:"aadResourceId,omitempty"` + AADResourceID any `json:"aadResourceId,omitempty"` // REQUIRED; Specify the application's client ID. Type: string (or Expression with resultType string). - ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` + ServicePrincipalID any `json:"servicePrincipalId,omitempty"` // REQUIRED; Specify the application's key. Mark this field as a SecureString to store it securely in Data Factory, or reference // a secret stored in Azure Key Vault. Type: string (or Expression with resultType @@ -9833,14 +9896,14 @@ type DynamicsAXLinkedServiceTypeProperties struct { // REQUIRED; Specify the tenant information (domain name or tenant ID) under which your application resides. Retrieve it by // hovering the mouse in the top-right corner of the Azure portal. Type: string (or // Expression with resultType string). - Tenant interface{} `json:"tenant,omitempty"` + Tenant any `json:"tenant,omitempty"` // REQUIRED; The Dynamics AX (or Dynamics 365 Finance and Operations) instance OData endpoint. - URL interface{} `json:"url,omitempty"` + URL any `json:"url,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` } // DynamicsAXResourceDataset - The path of the Dynamics AX OData entity. @@ -9855,10 +9918,10 @@ type DynamicsAXResourceDataset struct { TypeProperties *DynamicsAXResourceDatasetTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -9871,10 +9934,10 @@ type DynamicsAXResourceDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` } // GetDataset implements the DatasetClassification interface for type DynamicsAXResourceDataset. @@ -9895,7 +9958,7 @@ func (d *DynamicsAXResourceDataset) GetDataset() *Dataset { // DynamicsAXResourceDatasetTypeProperties - Dynamics AX OData resource dataset properties. type DynamicsAXResourceDatasetTypeProperties struct { // REQUIRED; The path of the Dynamics AX OData entity. Type: string (or Expression with resultType string). - Path interface{} `json:"path,omitempty"` + Path any `json:"path,omitempty"` } // DynamicsAXSource - A copy activity Dynamics AX source. @@ -9905,33 +9968,33 @@ type DynamicsAXSource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The timeout (TimeSpan) to get an HTTP response. It is the timeout to get a response, not the timeout to read response data. // Default value: 00:05:00. Type: string (or Expression with resultType // string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - HTTPRequestTimeout interface{} `json:"httpRequestTimeout,omitempty"` + HTTPRequestTimeout any `json:"httpRequestTimeout,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type DynamicsAXSource. @@ -9969,10 +10032,10 @@ type DynamicsCrmEntityDataset struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -9985,10 +10048,10 @@ type DynamicsCrmEntityDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` // Dynamics CRM entity dataset properties. TypeProperties *DynamicsCrmEntityDatasetTypeProperties `json:"typeProperties,omitempty"` @@ -10012,7 +10075,7 @@ func (d *DynamicsCrmEntityDataset) GetDataset() *Dataset { // DynamicsCrmEntityDatasetTypeProperties - Dynamics CRM entity dataset properties. type DynamicsCrmEntityDatasetTypeProperties struct { // The logical name of the entity. Type: string (or Expression with resultType string). - EntityName interface{} `json:"entityName,omitempty"` + EntityName any `json:"entityName,omitempty"` } // DynamicsCrmLinkedService - Dynamics CRM linked service. @@ -10024,10 +10087,10 @@ type DynamicsCrmLinkedService struct { TypeProperties *DynamicsCrmLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -10056,31 +10119,31 @@ type DynamicsCrmLinkedServiceTypeProperties struct { // REQUIRED; The authentication type to connect to Dynamics CRM server. 'Office365' for online scenario, 'Ifd' for on-premises // with Ifd scenario, 'AADServicePrincipal' for Server-To-Server authentication in online // scenario. Type: string (or Expression with resultType string). - AuthenticationType interface{} `json:"authenticationType,omitempty"` + AuthenticationType any `json:"authenticationType,omitempty"` // REQUIRED; The deployment type of the Dynamics CRM instance. 'Online' for Dynamics CRM Online and 'OnPremisesWithIfd' for // Dynamics CRM on-premises with Ifd. Type: string (or Expression with resultType string). - DeploymentType interface{} `json:"deploymentType,omitempty"` + DeploymentType any `json:"deploymentType,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // The host name of the on-premises Dynamics CRM server. The property is required for on-prem and not allowed for online. // Type: string (or Expression with resultType string). - HostName interface{} `json:"hostName,omitempty"` + HostName any `json:"hostName,omitempty"` // The organization name of the Dynamics CRM instance. The property is required for on-prem and required for online when there // are more than one Dynamics CRM instances associated with the user. Type: // string (or Expression with resultType string). - OrganizationName interface{} `json:"organizationName,omitempty"` + OrganizationName any `json:"organizationName,omitempty"` // Password to access the Dynamics CRM instance. Password SecretBaseClassification `json:"password,omitempty"` // The port of on-premises Dynamics CRM server. The property is required for on-prem and not allowed for online. Default is // 443. Type: integer (or Expression with resultType integer), minimum: 0. - Port interface{} `json:"port,omitempty"` + Port any `json:"port,omitempty"` // The credential of the service principal object in Azure Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', // servicePrincipalCredential can be SecureString or @@ -10091,18 +10154,18 @@ type DynamicsCrmLinkedServiceTypeProperties struct { // The service principal credential type to use in Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, // 'ServicePrincipalCert' for certificate. Type: string (or Expression with // resultType string). - ServicePrincipalCredentialType interface{} `json:"servicePrincipalCredentialType,omitempty"` + ServicePrincipalCredentialType any `json:"servicePrincipalCredentialType,omitempty"` // The client ID of the application in Azure Active Directory used for Server-To-Server authentication. Type: string (or Expression // with resultType string). - ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` + ServicePrincipalID any `json:"servicePrincipalId,omitempty"` // The URL to the Microsoft Dynamics CRM server. The property is required for on-line and not allowed for on-prem. Type: string // (or Expression with resultType string). - ServiceURI interface{} `json:"serviceUri,omitempty"` + ServiceURI any `json:"serviceUri,omitempty"` // User name to access the Dynamics CRM instance. Type: string (or Expression with resultType string). - Username interface{} `json:"username,omitempty"` + Username any `json:"username,omitempty"` } // DynamicsCrmSink - A copy activity Dynamics CRM sink. @@ -10114,33 +10177,33 @@ type DynamicsCrmSink struct { WriteBehavior *DynamicsSinkWriteBehavior `json:"writeBehavior,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // The logical name of the alternate key which will be used when upserting records. Type: string (or Expression with resultType // string). - AlternateKeyName interface{} `json:"alternateKeyName,omitempty"` + AlternateKeyName any `json:"alternateKeyName,omitempty"` // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The flag indicating whether to ignore null values from input dataset (except key fields) during write operation. Default // is false. Type: boolean (or Expression with resultType boolean). - IgnoreNullValues interface{} `json:"ignoreNullValues,omitempty"` + IgnoreNullValues any `json:"ignoreNullValues,omitempty"` // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + SinkRetryCount any `json:"sinkRetryCount,omitempty"` // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + SinkRetryWait any `json:"sinkRetryWait,omitempty"` // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + WriteBatchSize any `json:"writeBatchSize,omitempty"` // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + WriteBatchTimeout any `json:"writeBatchTimeout,omitempty"` } // GetCopySink implements the CopySinkClassification interface for type DynamicsCrmSink. @@ -10164,26 +10227,26 @@ type DynamicsCrmSource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // FetchXML is a proprietary query language that is used in Microsoft Dynamics CRM (online & on-premises). Type: string (or // Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any `json:"query,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type DynamicsCrmSource. @@ -10207,10 +10270,10 @@ type DynamicsEntityDataset struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -10223,10 +10286,10 @@ type DynamicsEntityDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` // Dynamics entity dataset properties. TypeProperties *DynamicsEntityDatasetTypeProperties `json:"typeProperties,omitempty"` @@ -10250,7 +10313,7 @@ func (d *DynamicsEntityDataset) GetDataset() *Dataset { // DynamicsEntityDatasetTypeProperties - Dynamics entity dataset properties. type DynamicsEntityDatasetTypeProperties struct { // The logical name of the entity. Type: string (or Expression with resultType string). - EntityName interface{} `json:"entityName,omitempty"` + EntityName any `json:"entityName,omitempty"` } // DynamicsLinkedService - Dynamics linked service. @@ -10262,10 +10325,10 @@ type DynamicsLinkedService struct { TypeProperties *DynamicsLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -10294,34 +10357,34 @@ type DynamicsLinkedServiceTypeProperties struct { // REQUIRED; The authentication type to connect to Dynamics server. 'Office365' for online scenario, 'Ifd' for on-premises // with Ifd scenario, 'AADServicePrincipal' for Server-To-Server authentication in online // scenario. Type: string (or Expression with resultType string). - AuthenticationType interface{} `json:"authenticationType,omitempty"` + AuthenticationType any `json:"authenticationType,omitempty"` // REQUIRED; The deployment type of the Dynamics instance. 'Online' for Dynamics Online and 'OnPremisesWithIfd' for Dynamics // on-premises with Ifd. Type: string (or Expression with resultType string). - DeploymentType interface{} `json:"deploymentType,omitempty"` + DeploymentType any `json:"deploymentType,omitempty"` // The credential reference containing authentication information. Credential *CredentialReference `json:"credential,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // The host name of the on-premises Dynamics server. The property is required for on-prem and not allowed for online. Type: // string (or Expression with resultType string). - HostName interface{} `json:"hostName,omitempty"` + HostName any `json:"hostName,omitempty"` // The organization name of the Dynamics instance. The property is required for on-prem and required for online when there // are more than one Dynamics instances associated with the user. Type: string (or // Expression with resultType string). - OrganizationName interface{} `json:"organizationName,omitempty"` + OrganizationName any `json:"organizationName,omitempty"` // Password to access the Dynamics instance. Password SecretBaseClassification `json:"password,omitempty"` // The port of on-premises Dynamics server. The property is required for on-prem and not allowed for online. Default is 443. // Type: integer (or Expression with resultType integer), minimum: 0. - Port interface{} `json:"port,omitempty"` + Port any `json:"port,omitempty"` // The credential of the service principal object in Azure Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', // servicePrincipalCredential can be SecureString or @@ -10332,18 +10395,18 @@ type DynamicsLinkedServiceTypeProperties struct { // The service principal credential type to use in Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, // 'ServicePrincipalCert' for certificate. Type: string (or Expression with // resultType string). - ServicePrincipalCredentialType interface{} `json:"servicePrincipalCredentialType,omitempty"` + ServicePrincipalCredentialType any `json:"servicePrincipalCredentialType,omitempty"` // The client ID of the application in Azure Active Directory used for Server-To-Server authentication. Type: string (or Expression // with resultType string). - ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` + ServicePrincipalID any `json:"servicePrincipalId,omitempty"` // The URL to the Microsoft Dynamics server. The property is required for on-line and not allowed for on-prem. Type: string // (or Expression with resultType string). - ServiceURI interface{} `json:"serviceUri,omitempty"` + ServiceURI any `json:"serviceUri,omitempty"` // User name to access the Dynamics instance. Type: string (or Expression with resultType string). - Username interface{} `json:"username,omitempty"` + Username any `json:"username,omitempty"` } // DynamicsSink - A copy activity Dynamics sink. @@ -10355,33 +10418,33 @@ type DynamicsSink struct { WriteBehavior *DynamicsSinkWriteBehavior `json:"writeBehavior,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // The logical name of the alternate key which will be used when upserting records. Type: string (or Expression with resultType // string). - AlternateKeyName interface{} `json:"alternateKeyName,omitempty"` + AlternateKeyName any `json:"alternateKeyName,omitempty"` // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The flag indicating whether ignore null values from input dataset (except key fields) during write operation. Default is // false. Type: boolean (or Expression with resultType boolean). - IgnoreNullValues interface{} `json:"ignoreNullValues,omitempty"` + IgnoreNullValues any `json:"ignoreNullValues,omitempty"` // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + SinkRetryCount any `json:"sinkRetryCount,omitempty"` // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + SinkRetryWait any `json:"sinkRetryWait,omitempty"` // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + WriteBatchSize any `json:"writeBatchSize,omitempty"` // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + WriteBatchTimeout any `json:"writeBatchTimeout,omitempty"` } // GetCopySink implements the CopySinkClassification interface for type DynamicsSink. @@ -10405,26 +10468,26 @@ type DynamicsSource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // FetchXML is a proprietary query language that is used in Microsoft Dynamics (online & on-premises). Type: string (or Expression // with resultType string). - Query interface{} `json:"query,omitempty"` + Query any `json:"query,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type DynamicsSource. @@ -10448,10 +10511,10 @@ type EloquaLinkedService struct { TypeProperties *EloquaLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -10478,27 +10541,27 @@ func (e *EloquaLinkedService) GetLinkedService() *LinkedService { // EloquaLinkedServiceTypeProperties - Eloqua server linked service properties. type EloquaLinkedServiceTypeProperties struct { // REQUIRED; The endpoint of the Eloqua server. (i.e. eloqua.example.com) - Endpoint interface{} `json:"endpoint,omitempty"` + Endpoint any `json:"endpoint,omitempty"` // REQUIRED; The site name and user name of your Eloqua account in the form: sitename/username. (i.e. Eloqua/Alice) - Username interface{} `json:"username,omitempty"` + Username any `json:"username,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // The password corresponding to the user name. Password SecretBaseClassification `json:"password,omitempty"` // Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. - UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` + UseEncryptedEndpoints any `json:"useEncryptedEndpoints,omitempty"` // Specifies whether to require the host name in the server's certificate to match the host name of the server when connecting // over SSL. The default value is true. - UseHostVerification interface{} `json:"useHostVerification,omitempty"` + UseHostVerification any `json:"useHostVerification,omitempty"` // Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. - UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` + UsePeerVerification any `json:"usePeerVerification,omitempty"` } // EloquaObjectDataset - Eloqua server dataset. @@ -10510,10 +10573,10 @@ type EloquaObjectDataset struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -10526,10 +10589,10 @@ type EloquaObjectDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` // Properties specific to this dataset type. TypeProperties *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` @@ -10557,28 +10620,28 @@ type EloquaSource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type EloquaSource. @@ -10666,10 +10729,10 @@ type ExcelDataset struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -10682,10 +10745,10 @@ type ExcelDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` // Excel dataset properties. TypeProperties *ExcelDatasetTypeProperties `json:"typeProperties,omitempty"` @@ -10717,19 +10780,19 @@ type ExcelDatasetTypeProperties struct { // When used as input, treat the first row of data as headers. When used as output,write the headers into the output as the // first row of data. The default value is false. Type: boolean (or Expression // with resultType boolean). - FirstRowAsHeader interface{} `json:"firstRowAsHeader,omitempty"` + FirstRowAsHeader any `json:"firstRowAsHeader,omitempty"` // The null value string. Type: string (or Expression with resultType string). - NullValue interface{} `json:"nullValue,omitempty"` + NullValue any `json:"nullValue,omitempty"` // The partial data of one sheet. Type: string (or Expression with resultType string). - Range interface{} `json:"range,omitempty"` + Range any `json:"range,omitempty"` // The sheet index of excel file and default value is 0. Type: integer (or Expression with resultType integer) - SheetIndex interface{} `json:"sheetIndex,omitempty"` + SheetIndex any `json:"sheetIndex,omitempty"` // The sheet name of excel file. Type: string (or Expression with resultType string). - SheetName interface{} `json:"sheetName,omitempty"` + SheetName any `json:"sheetName,omitempty"` } // ExcelSource - A copy activity excel source. @@ -10739,22 +10802,22 @@ type ExcelSource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` // Excel store settings. StoreSettings StoreReadSettingsClassification `json:"storeSettings,omitempty"` @@ -10784,7 +10847,7 @@ type ExecuteDataFlowActivity struct { TypeProperties *ExecuteDataFlowActivityTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` @@ -10838,35 +10901,35 @@ type ExecuteDataFlowActivityTypeProperties struct { // Continue on error setting used for data flow execution. Enables processing to continue if a sink fails. Type: boolean (or // Expression with resultType boolean) - ContinueOnError interface{} `json:"continueOnError,omitempty"` + ContinueOnError any `json:"continueOnError,omitempty"` // The integration runtime reference. IntegrationRuntime *IntegrationRuntimeReference `json:"integrationRuntime,omitempty"` // Concurrent run setting used for data flow execution. Allows sinks with the same save order to be processed concurrently. // Type: boolean (or Expression with resultType boolean) - RunConcurrently interface{} `json:"runConcurrently,omitempty"` + RunConcurrently any `json:"runConcurrently,omitempty"` // Specify number of parallel staging for sources applicable to the sink. Type: integer (or Expression with resultType integer) - SourceStagingConcurrency interface{} `json:"sourceStagingConcurrency,omitempty"` + SourceStagingConcurrency any `json:"sourceStagingConcurrency,omitempty"` // Staging info for execute data flow activity. Staging *DataFlowStagingInfo `json:"staging,omitempty"` // Trace level setting used for data flow monitoring output. Supported values are: 'coarse', 'fine', and 'none'. Type: string // (or Expression with resultType string) - TraceLevel interface{} `json:"traceLevel,omitempty"` + TraceLevel any `json:"traceLevel,omitempty"` } // ExecuteDataFlowActivityTypePropertiesCompute - Compute properties for data flow activity. type ExecuteDataFlowActivityTypePropertiesCompute struct { // Compute type of the cluster which will execute data flow job. Possible values include: 'General', 'MemoryOptimized', 'ComputeOptimized'. // Type: string (or Expression with resultType string) - ComputeType interface{} `json:"computeType,omitempty"` + ComputeType any `json:"computeType,omitempty"` // Core count of the cluster which will execute data flow job. Supported values are: 8, 16, 32, 48, 80, 144 and 272. Type: // integer (or Expression with resultType integer) - CoreCount interface{} `json:"coreCount,omitempty"` + CoreCount any `json:"coreCount,omitempty"` } // ExecutePipelineActivity - Execute pipeline activity. @@ -10881,7 +10944,7 @@ type ExecutePipelineActivity struct { TypeProperties *ExecutePipelineActivityTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` @@ -10923,7 +10986,7 @@ func (e *ExecutePipelineActivity) GetControlActivity() *ControlActivity { // ExecutePipelineActivityPolicy - Execution policy for an execute pipeline activity. type ExecutePipelineActivityPolicy struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // When set to true, Input from activity is considered as secure and will not be logged to monitoring. SecureInput *bool `json:"secureInput,omitempty"` @@ -10935,7 +10998,7 @@ type ExecutePipelineActivityTypeProperties struct { Pipeline *PipelineReference `json:"pipeline,omitempty"` // Pipeline parameters. - Parameters map[string]interface{} `json:"parameters,omitempty"` + Parameters map[string]any `json:"parameters,omitempty"` // Defines whether activity execution will wait for the dependent pipeline execution to finish. Default is false. WaitOnCompletion *bool `json:"waitOnCompletion,omitempty"` @@ -10951,7 +11014,7 @@ type ExecutePowerQueryActivityTypeProperties struct { // Continue on error setting used for data flow execution. Enables processing to continue if a sink fails. Type: boolean (or // Expression with resultType boolean) - ContinueOnError interface{} `json:"continueOnError,omitempty"` + ContinueOnError any `json:"continueOnError,omitempty"` // The integration runtime reference. IntegrationRuntime *IntegrationRuntimeReference `json:"integrationRuntime,omitempty"` @@ -10961,20 +11024,20 @@ type ExecutePowerQueryActivityTypeProperties struct { // Concurrent run setting used for data flow execution. Allows sinks with the same save order to be processed concurrently. // Type: boolean (or Expression with resultType boolean) - RunConcurrently interface{} `json:"runConcurrently,omitempty"` + RunConcurrently any `json:"runConcurrently,omitempty"` // (Deprecated. Please use Queries). List of Power Query activity sinks mapped to a queryName. Sinks map[string]*PowerQuerySink `json:"sinks,omitempty"` // Specify number of parallel staging for sources applicable to the sink. Type: integer (or Expression with resultType integer) - SourceStagingConcurrency interface{} `json:"sourceStagingConcurrency,omitempty"` + SourceStagingConcurrency any `json:"sourceStagingConcurrency,omitempty"` // Staging info for execute data flow activity. Staging *DataFlowStagingInfo `json:"staging,omitempty"` // Trace level setting used for data flow monitoring output. Supported values are: 'coarse', 'fine', and 'none'. Type: string // (or Expression with resultType string) - TraceLevel interface{} `json:"traceLevel,omitempty"` + TraceLevel any `json:"traceLevel,omitempty"` } // ExecuteSSISPackageActivity - Execute SSIS package activity. @@ -10989,7 +11052,7 @@ type ExecuteSSISPackageActivity struct { TypeProperties *ExecuteSSISPackageActivityTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` @@ -11042,7 +11105,7 @@ type ExecuteSSISPackageActivityTypeProperties struct { PackageLocation *SSISPackageLocation `json:"packageLocation,omitempty"` // The environment path to execute the SSIS package. Type: string (or Expression with resultType string). - EnvironmentPath interface{} `json:"environmentPath,omitempty"` + EnvironmentPath any `json:"environmentPath,omitempty"` // The package execution credential. ExecutionCredential *SSISExecutionCredential `json:"executionCredential,omitempty"` @@ -11051,7 +11114,7 @@ type ExecuteSSISPackageActivityTypeProperties struct { LogLocation *SSISLogLocation `json:"logLocation,omitempty"` // The logging level of SSIS package execution. Type: string (or Expression with resultType string). - LoggingLevel interface{} `json:"loggingLevel,omitempty"` + LoggingLevel any `json:"loggingLevel,omitempty"` // The package level connection managers to execute the SSIS package. PackageConnectionManagers map[string]map[string]*SSISExecutionParameter `json:"packageConnectionManagers,omitempty"` @@ -11070,7 +11133,7 @@ type ExecuteSSISPackageActivityTypeProperties struct { // Specifies the runtime to execute SSIS package. The value should be "x86" or "x64". Type: string (or Expression with resultType // string). - Runtime interface{} `json:"runtime,omitempty"` + Runtime any `json:"runtime,omitempty"` } // ExecuteWranglingDataflowActivity - Execute power query activity. @@ -11085,7 +11148,7 @@ type ExecuteWranglingDataflowActivity struct { TypeProperties *ExecutePowerQueryActivityTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` @@ -11136,7 +11199,7 @@ type ExecutionActivity struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` @@ -11184,7 +11247,7 @@ type ExportSettings struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any } // GetExportSettings implements the ExportSettingsClassification interface for type ExportSettings. @@ -11283,13 +11346,13 @@ type FactoriesClientGetOptions struct { IfNoneMatch *string } -// FactoriesClientListByResourceGroupOptions contains the optional parameters for the FactoriesClient.ListByResourceGroup +// FactoriesClientListByResourceGroupOptions contains the optional parameters for the FactoriesClient.NewListByResourceGroupPager // method. type FactoriesClientListByResourceGroupOptions struct { // placeholder for future optional parameters } -// FactoriesClientListOptions contains the optional parameters for the FactoriesClient.List method. +// FactoriesClientListOptions contains the optional parameters for the FactoriesClient.NewListPager method. type FactoriesClientListOptions struct { // placeholder for future optional parameters } @@ -11302,7 +11365,7 @@ type FactoriesClientUpdateOptions struct { // Factory resource type. type Factory struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Managed service identity of the factory. Identity *FactoryIdentity `json:"identity,omitempty"` @@ -11381,7 +11444,7 @@ type FactoryIdentity struct { Type *FactoryIdentityType `json:"type,omitempty"` // List of user assigned identities for the factory. - UserAssignedIdentities map[string]interface{} `json:"userAssignedIdentities,omitempty"` + UserAssignedIdentities map[string]any `json:"userAssignedIdentities,omitempty"` // READ-ONLY; The principal id of the identity. PrincipalID *string `json:"principalId,omitempty" azure:"ro"` @@ -11547,7 +11610,7 @@ type FailActivity struct { TypeProperties *FailActivityTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` @@ -11588,11 +11651,11 @@ type FailActivityTypeProperties struct { // REQUIRED; The error code that categorizes the error type of the Fail activity. It can be dynamic content that's evaluated // to a non empty/blank string at runtime. Type: string (or Expression with resultType // string). - ErrorCode interface{} `json:"errorCode,omitempty"` + ErrorCode any `json:"errorCode,omitempty"` // REQUIRED; The error message that surfaced in the Fail activity. It can be dynamic content that's evaluated to a non empty/blank // string at runtime. Type: string (or Expression with resultType string). - Message interface{} `json:"message,omitempty"` + Message any `json:"message,omitempty"` } // FileServerLinkedService - File system linked service. @@ -11604,10 +11667,10 @@ type FileServerLinkedService struct { TypeProperties *FileServerLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -11634,17 +11697,17 @@ func (f *FileServerLinkedService) GetLinkedService() *LinkedService { // FileServerLinkedServiceTypeProperties - File system linked service properties. type FileServerLinkedServiceTypeProperties struct { // REQUIRED; Host name of the server. Type: string (or Expression with resultType string). - Host interface{} `json:"host,omitempty"` + Host any `json:"host,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // Password to logon the server. Password SecretBaseClassification `json:"password,omitempty"` // User ID to logon the server. Type: string (or Expression with resultType string). - UserID interface{} `json:"userId,omitempty"` + UserID any `json:"userId,omitempty"` } // FileServerLocation - The location of file server dataset. @@ -11653,13 +11716,13 @@ type FileServerLocation struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Specify the file name of dataset. Type: string (or Expression with resultType string). - FileName interface{} `json:"fileName,omitempty"` + FileName any `json:"fileName,omitempty"` // Specify the folder path of dataset. Type: string (or Expression with resultType string) - FolderPath interface{} `json:"folderPath,omitempty"` + FolderPath any `json:"folderPath,omitempty"` } // GetDatasetLocation implements the DatasetLocationClassification interface for type FileServerLocation. @@ -11678,47 +11741,47 @@ type FileServerReadSettings struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Indicates whether the source files need to be deleted after copy completion. Default is false. Type: boolean (or Expression // with resultType boolean). - DeleteFilesAfterCompletion interface{} `json:"deleteFilesAfterCompletion,omitempty"` + DeleteFilesAfterCompletion any `json:"deleteFilesAfterCompletion,omitempty"` // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // Indicates whether to enable partition discovery. EnablePartitionDiscovery *bool `json:"enablePartitionDiscovery,omitempty"` // Specify a filter to be used to select a subset of files in the folderPath rather than all files. Type: string (or Expression // with resultType string). - FileFilter interface{} `json:"fileFilter,omitempty"` + FileFilter any `json:"fileFilter,omitempty"` // Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. // Type: string (or Expression with resultType string). - FileListPath interface{} `json:"fileListPath,omitempty"` + FileListPath any `json:"fileListPath,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // The end of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` + ModifiedDatetimeEnd any `json:"modifiedDatetimeEnd,omitempty"` // The start of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` + ModifiedDatetimeStart any `json:"modifiedDatetimeStart,omitempty"` // Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). - PartitionRootPath interface{} `json:"partitionRootPath,omitempty"` + PartitionRootPath any `json:"partitionRootPath,omitempty"` // If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType // boolean). - Recursive interface{} `json:"recursive,omitempty"` + Recursive any `json:"recursive,omitempty"` // FileServer wildcardFileName. Type: string (or Expression with resultType string). - WildcardFileName interface{} `json:"wildcardFileName,omitempty"` + WildcardFileName any `json:"wildcardFileName,omitempty"` // FileServer wildcardFolderPath. Type: string (or Expression with resultType string). - WildcardFolderPath interface{} `json:"wildcardFolderPath,omitempty"` + WildcardFolderPath any `json:"wildcardFolderPath,omitempty"` } // GetStoreReadSettings implements the StoreReadSettingsClassification interface for type FileServerReadSettings. @@ -11737,16 +11800,16 @@ type FileServerWriteSettings struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // The type of copy behavior for copy sink. - CopyBehavior interface{} `json:"copyBehavior,omitempty"` + CopyBehavior any `json:"copyBehavior,omitempty"` // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` } // GetStoreWriteSettings implements the StoreWriteSettingsClassification interface for type FileServerWriteSettings. @@ -11769,10 +11832,10 @@ type FileShareDataset struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -11785,10 +11848,10 @@ type FileShareDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` // On-premises file system dataset properties. TypeProperties *FileShareDatasetTypeProperties `json:"typeProperties,omitempty"` @@ -11816,22 +11879,22 @@ type FileShareDatasetTypeProperties struct { // Specify a filter to be used to select a subset of files in the folderPath rather than all files. Type: string (or Expression // with resultType string). - FileFilter interface{} `json:"fileFilter,omitempty"` + FileFilter any `json:"fileFilter,omitempty"` // The name of the on-premises file system. Type: string (or Expression with resultType string). - FileName interface{} `json:"fileName,omitempty"` + FileName any `json:"fileName,omitempty"` // The path of the on-premises file system. Type: string (or Expression with resultType string). - FolderPath interface{} `json:"folderPath,omitempty"` + FolderPath any `json:"folderPath,omitempty"` // The format of the files. Format DatasetStorageFormatClassification `json:"format,omitempty"` // The end of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` + ModifiedDatetimeEnd any `json:"modifiedDatetimeEnd,omitempty"` // The start of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` + ModifiedDatetimeStart any `json:"modifiedDatetimeStart,omitempty"` } // FileSystemSink - A copy activity file system sink. @@ -11840,28 +11903,28 @@ type FileSystemSink struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // The type of copy behavior for copy sink. - CopyBehavior interface{} `json:"copyBehavior,omitempty"` + CopyBehavior any `json:"copyBehavior,omitempty"` // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + SinkRetryCount any `json:"sinkRetryCount,omitempty"` // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + SinkRetryWait any `json:"sinkRetryWait,omitempty"` // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + WriteBatchSize any `json:"writeBatchSize,omitempty"` // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + WriteBatchTimeout any `json:"writeBatchTimeout,omitempty"` } // GetCopySink implements the CopySinkClassification interface for type FileSystemSink. @@ -11885,26 +11948,26 @@ type FileSystemSource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType // boolean). - Recursive interface{} `json:"recursive,omitempty"` + Recursive any `json:"recursive,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type FileSystemSource. @@ -11931,7 +11994,7 @@ type FilterActivity struct { TypeProperties *FilterActivityTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` @@ -11982,7 +12045,7 @@ type Flowlet struct { Type *string `json:"type,omitempty"` // List of tags that can be used for describing the data flow. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The description of the data flow. Description *string `json:"description,omitempty"` @@ -12034,7 +12097,7 @@ type ForEachActivity struct { TypeProperties *ForEachActivityTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` @@ -12100,7 +12163,7 @@ type FormatReadSettings struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any } // GetFormatReadSettings implements the FormatReadSettingsClassification interface for type FormatReadSettings. @@ -12121,7 +12184,7 @@ type FormatWriteSettings struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any } // GetFormatWriteSettings implements the FormatWriteSettingsClassification interface for type FormatWriteSettings. @@ -12133,43 +12196,43 @@ type FtpReadSettings struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Indicates whether the source files need to be deleted after copy completion. Default is false. Type: boolean (or Expression // with resultType boolean). - DeleteFilesAfterCompletion interface{} `json:"deleteFilesAfterCompletion,omitempty"` + DeleteFilesAfterCompletion any `json:"deleteFilesAfterCompletion,omitempty"` // If true, disable parallel reading within each file. Default is false. Type: boolean (or Expression with resultType boolean). - DisableChunking interface{} `json:"disableChunking,omitempty"` + DisableChunking any `json:"disableChunking,omitempty"` // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // Indicates whether to enable partition discovery. EnablePartitionDiscovery *bool `json:"enablePartitionDiscovery,omitempty"` // Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. // Type: string (or Expression with resultType string). - FileListPath interface{} `json:"fileListPath,omitempty"` + FileListPath any `json:"fileListPath,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). - PartitionRootPath interface{} `json:"partitionRootPath,omitempty"` + PartitionRootPath any `json:"partitionRootPath,omitempty"` // If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType // boolean). - Recursive interface{} `json:"recursive,omitempty"` + Recursive any `json:"recursive,omitempty"` // Specify whether to use binary transfer mode for FTP stores. UseBinaryTransfer *bool `json:"useBinaryTransfer,omitempty"` // Ftp wildcardFileName. Type: string (or Expression with resultType string). - WildcardFileName interface{} `json:"wildcardFileName,omitempty"` + WildcardFileName any `json:"wildcardFileName,omitempty"` // Ftp wildcardFolderPath. Type: string (or Expression with resultType string). - WildcardFolderPath interface{} `json:"wildcardFolderPath,omitempty"` + WildcardFolderPath any `json:"wildcardFolderPath,omitempty"` } // GetStoreReadSettings implements the StoreReadSettingsClassification interface for type FtpReadSettings. @@ -12191,10 +12254,10 @@ type FtpServerLinkedService struct { TypeProperties *FtpServerLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -12221,32 +12284,32 @@ func (f *FtpServerLinkedService) GetLinkedService() *LinkedService { // FtpServerLinkedServiceTypeProperties - Properties specific to this linked service type. type FtpServerLinkedServiceTypeProperties struct { // REQUIRED; Host name of the FTP server. Type: string (or Expression with resultType string). - Host interface{} `json:"host,omitempty"` + Host any `json:"host,omitempty"` // The authentication type to be used to connect to the FTP server. AuthenticationType *FtpAuthenticationType `json:"authenticationType,omitempty"` // If true, connect to the FTP server over SSL/TLS channel. Default value is true. Type: boolean (or Expression with resultType // boolean). - EnableSSL interface{} `json:"enableSsl,omitempty"` + EnableSSL any `json:"enableSsl,omitempty"` // If true, validate the FTP server SSL certificate when connect over SSL/TLS channel. Default value is true. Type: boolean // (or Expression with resultType boolean). - EnableServerCertificateValidation interface{} `json:"enableServerCertificateValidation,omitempty"` + EnableServerCertificateValidation any `json:"enableServerCertificateValidation,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // Password to logon the FTP server. Password SecretBaseClassification `json:"password,omitempty"` // The TCP port number that the FTP server uses to listen for client connections. Default value is 21. Type: integer (or Expression // with resultType integer), minimum: 0. - Port interface{} `json:"port,omitempty"` + Port any `json:"port,omitempty"` // Username to logon the FTP server. Type: string (or Expression with resultType string). - UserName interface{} `json:"userName,omitempty"` + UserName any `json:"userName,omitempty"` } // FtpServerLocation - The location of ftp server dataset. @@ -12255,13 +12318,13 @@ type FtpServerLocation struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Specify the file name of dataset. Type: string (or Expression with resultType string). - FileName interface{} `json:"fileName,omitempty"` + FileName any `json:"fileName,omitempty"` // Specify the folder path of dataset. Type: string (or Expression with resultType string) - FolderPath interface{} `json:"folderPath,omitempty"` + FolderPath any `json:"folderPath,omitempty"` } // GetDatasetLocation implements the DatasetLocationClassification interface for type FtpServerLocation. @@ -12277,7 +12340,7 @@ func (f *FtpServerLocation) GetDatasetLocation() *DatasetLocation { // GenericDatasetTypeProperties - Properties specific to this dataset type. type GenericDatasetTypeProperties struct { // The table name. Type: string (or Expression with resultType string). - TableName interface{} `json:"tableName,omitempty"` + TableName any `json:"tableName,omitempty"` } // GetMetadataActivity - Activity to get metadata of dataset @@ -12292,7 +12355,7 @@ type GetMetadataActivity struct { TypeProperties *GetMetadataActivityTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` @@ -12342,7 +12405,7 @@ type GetMetadataActivityTypeProperties struct { Dataset *DatasetReference `json:"dataset,omitempty"` // Fields of metadata to get from dataset. - FieldList []interface{} `json:"fieldList,omitempty"` + FieldList []any `json:"fieldList,omitempty"` // GetMetadata activity format settings. FormatSettings FormatReadSettingsClassification `json:"formatSettings,omitempty"` @@ -12420,7 +12483,7 @@ type GlobalParameterSpecification struct { Type *GlobalParameterType `json:"type,omitempty"` // REQUIRED; Value of parameter. - Value interface{} `json:"value,omitempty"` + Value any `json:"value,omitempty"` } // GlobalParametersClientCreateOrUpdateOptions contains the optional parameters for the GlobalParametersClient.CreateOrUpdate @@ -12439,7 +12502,7 @@ type GlobalParametersClientGetOptions struct { // placeholder for future optional parameters } -// GlobalParametersClientListByFactoryOptions contains the optional parameters for the GlobalParametersClient.ListByFactory +// GlobalParametersClientListByFactoryOptions contains the optional parameters for the GlobalParametersClient.NewListByFactoryPager // method. type GlobalParametersClientListByFactoryOptions struct { // placeholder for future optional parameters @@ -12454,10 +12517,10 @@ type GoogleAdWordsLinkedService struct { TypeProperties *GoogleAdWordsLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -12487,32 +12550,32 @@ type GoogleAdWordsLinkedServiceTypeProperties struct { AuthenticationType *GoogleAdWordsAuthenticationType `json:"authenticationType,omitempty"` // The Client customer ID of the AdWords account that you want to fetch report data for. - ClientCustomerID interface{} `json:"clientCustomerID,omitempty"` + ClientCustomerID any `json:"clientCustomerID,omitempty"` // The client id of the google application used to acquire the refresh token. Type: string (or Expression with resultType // string). - ClientID interface{} `json:"clientId,omitempty"` + ClientID any `json:"clientId,omitempty"` // The client secret of the google application used to acquire the refresh token. ClientSecret SecretBaseClassification `json:"clientSecret,omitempty"` // Properties used to connect to GoogleAds. It is mutually exclusive with any other properties in the linked service. Type: // object. - ConnectionProperties interface{} `json:"connectionProperties,omitempty"` + ConnectionProperties any `json:"connectionProperties,omitempty"` // The developer token associated with the manager account that you use to grant access to the AdWords API. DeveloperToken SecretBaseClassification `json:"developerToken,omitempty"` // The service account email ID that is used for ServiceAuthentication and can only be used on self-hosted IR. - Email interface{} `json:"email,omitempty"` + Email any `json:"email,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // The full path to the .p12 key file that is used to authenticate the service account email address and can only be used // on self-hosted IR. - KeyFilePath interface{} `json:"keyFilePath,omitempty"` + KeyFilePath any `json:"keyFilePath,omitempty"` // The refresh token obtained from Google for authorizing access to AdWords for UserAuthentication. RefreshToken SecretBaseClassification `json:"refreshToken,omitempty"` @@ -12520,11 +12583,11 @@ type GoogleAdWordsLinkedServiceTypeProperties struct { // The full path of the .pem file containing trusted CA certificates for verifying the server when connecting over SSL. This // property can only be set when using SSL on self-hosted IR. The default value // is the cacerts.pem file installed with the IR. - TrustedCertPath interface{} `json:"trustedCertPath,omitempty"` + TrustedCertPath any `json:"trustedCertPath,omitempty"` // Specifies whether to use a CA certificate from the system trust store or from a specified PEM file. The default value is // false. - UseSystemTrustStore interface{} `json:"useSystemTrustStore,omitempty"` + UseSystemTrustStore any `json:"useSystemTrustStore,omitempty"` } // GoogleAdWordsObjectDataset - Google AdWords service dataset. @@ -12536,10 +12599,10 @@ type GoogleAdWordsObjectDataset struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -12552,10 +12615,10 @@ type GoogleAdWordsObjectDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` // Properties specific to this dataset type. TypeProperties *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` @@ -12583,28 +12646,28 @@ type GoogleAdWordsSource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type GoogleAdWordsSource. @@ -12636,13 +12699,13 @@ func (g *GoogleAdWordsSource) GetTabularSource() *TabularSource { // GoogleBigQueryDatasetTypeProperties - Google BigQuery Dataset Properties type GoogleBigQueryDatasetTypeProperties struct { // The database name of the Google BigQuery. Type: string (or Expression with resultType string). - Dataset interface{} `json:"dataset,omitempty"` + Dataset any `json:"dataset,omitempty"` // The table name of the Google BigQuery. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` + Table any `json:"table,omitempty"` // This property will be retired. Please consider using database + table properties instead. - TableName interface{} `json:"tableName,omitempty"` + TableName any `json:"tableName,omitempty"` } // GoogleBigQueryLinkedService - Google BigQuery service linked service. @@ -12654,10 +12717,10 @@ type GoogleBigQueryLinkedService struct { TypeProperties *GoogleBigQueryLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -12688,44 +12751,44 @@ type GoogleBigQueryLinkedServiceTypeProperties struct { AuthenticationType *GoogleBigQueryAuthenticationType `json:"authenticationType,omitempty"` // REQUIRED; The default BigQuery project to query against. - Project interface{} `json:"project,omitempty"` + Project any `json:"project,omitempty"` // A comma-separated list of public BigQuery projects to access. - AdditionalProjects interface{} `json:"additionalProjects,omitempty"` + AdditionalProjects any `json:"additionalProjects,omitempty"` // The client id of the google application used to acquire the refresh token. Type: string (or Expression with resultType // string). - ClientID interface{} `json:"clientId,omitempty"` + ClientID any `json:"clientId,omitempty"` // The client secret of the google application used to acquire the refresh token. ClientSecret SecretBaseClassification `json:"clientSecret,omitempty"` // The service account email ID that is used for ServiceAuthentication and can only be used on self-hosted IR. - Email interface{} `json:"email,omitempty"` + Email any `json:"email,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // The full path to the .p12 key file that is used to authenticate the service account email address and can only be used // on self-hosted IR. - KeyFilePath interface{} `json:"keyFilePath,omitempty"` + KeyFilePath any `json:"keyFilePath,omitempty"` // The refresh token obtained from Google for authorizing access to BigQuery for UserAuthentication. RefreshToken SecretBaseClassification `json:"refreshToken,omitempty"` // Whether to request access to Google Drive. Allowing Google Drive access enables support for federated tables that combine // BigQuery data with data from Google Drive. The default value is false. - RequestGoogleDriveScope interface{} `json:"requestGoogleDriveScope,omitempty"` + RequestGoogleDriveScope any `json:"requestGoogleDriveScope,omitempty"` // The full path of the .pem file containing trusted CA certificates for verifying the server when connecting over SSL. This // property can only be set when using SSL on self-hosted IR. The default value // is the cacerts.pem file installed with the IR. - TrustedCertPath interface{} `json:"trustedCertPath,omitempty"` + TrustedCertPath any `json:"trustedCertPath,omitempty"` // Specifies whether to use a CA certificate from the system trust store or from a specified PEM file. The default value is // false. - UseSystemTrustStore interface{} `json:"useSystemTrustStore,omitempty"` + UseSystemTrustStore any `json:"useSystemTrustStore,omitempty"` } // GoogleBigQueryObjectDataset - Google BigQuery service dataset. @@ -12737,10 +12800,10 @@ type GoogleBigQueryObjectDataset struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -12753,10 +12816,10 @@ type GoogleBigQueryObjectDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` // Properties specific to this dataset type. TypeProperties *GoogleBigQueryDatasetTypeProperties `json:"typeProperties,omitempty"` @@ -12784,28 +12847,28 @@ type GoogleBigQuerySource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type GoogleBigQuerySource. @@ -12843,10 +12906,10 @@ type GoogleCloudStorageLinkedService struct { TypeProperties *GoogleCloudStorageLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -12874,11 +12937,11 @@ func (g *GoogleCloudStorageLinkedService) GetLinkedService() *LinkedService { type GoogleCloudStorageLinkedServiceTypeProperties struct { // The access key identifier of the Google Cloud Storage Identity and Access Management (IAM) user. Type: string (or Expression // with resultType string). - AccessKeyID interface{} `json:"accessKeyId,omitempty"` + AccessKeyID any `json:"accessKeyId,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // The secret access key of the Google Cloud Storage Identity and Access Management (IAM) user. SecretAccessKey SecretBaseClassification `json:"secretAccessKey,omitempty"` @@ -12886,7 +12949,7 @@ type GoogleCloudStorageLinkedServiceTypeProperties struct { // This value specifies the endpoint to access with the Google Cloud Storage Connector. This is an optional property; change // it only if you want to try a different service endpoint or want to switch // between https and http. Type: string (or Expression with resultType string). - ServiceURL interface{} `json:"serviceUrl,omitempty"` + ServiceURL any `json:"serviceUrl,omitempty"` } // GoogleCloudStorageLocation - The location of Google Cloud Storage dataset. @@ -12895,19 +12958,19 @@ type GoogleCloudStorageLocation struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Specify the bucketName of Google Cloud Storage. Type: string (or Expression with resultType string) - BucketName interface{} `json:"bucketName,omitempty"` + BucketName any `json:"bucketName,omitempty"` // Specify the file name of dataset. Type: string (or Expression with resultType string). - FileName interface{} `json:"fileName,omitempty"` + FileName any `json:"fileName,omitempty"` // Specify the folder path of dataset. Type: string (or Expression with resultType string) - FolderPath interface{} `json:"folderPath,omitempty"` + FolderPath any `json:"folderPath,omitempty"` // Specify the version of Google Cloud Storage. Type: string (or Expression with resultType string). - Version interface{} `json:"version,omitempty"` + Version any `json:"version,omitempty"` } // GetDatasetLocation implements the DatasetLocationClassification interface for type GoogleCloudStorageLocation. @@ -12926,46 +12989,46 @@ type GoogleCloudStorageReadSettings struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Indicates whether the source files need to be deleted after copy completion. Default is false. Type: boolean (or Expression // with resultType boolean). - DeleteFilesAfterCompletion interface{} `json:"deleteFilesAfterCompletion,omitempty"` + DeleteFilesAfterCompletion any `json:"deleteFilesAfterCompletion,omitempty"` // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // Indicates whether to enable partition discovery. EnablePartitionDiscovery *bool `json:"enablePartitionDiscovery,omitempty"` // Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. // Type: string (or Expression with resultType string). - FileListPath interface{} `json:"fileListPath,omitempty"` + FileListPath any `json:"fileListPath,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // The end of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` + ModifiedDatetimeEnd any `json:"modifiedDatetimeEnd,omitempty"` // The start of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` + ModifiedDatetimeStart any `json:"modifiedDatetimeStart,omitempty"` // Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). - PartitionRootPath interface{} `json:"partitionRootPath,omitempty"` + PartitionRootPath any `json:"partitionRootPath,omitempty"` // The prefix filter for the Google Cloud Storage object name. Type: string (or Expression with resultType string). - Prefix interface{} `json:"prefix,omitempty"` + Prefix any `json:"prefix,omitempty"` // If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType // boolean). - Recursive interface{} `json:"recursive,omitempty"` + Recursive any `json:"recursive,omitempty"` // Google Cloud Storage wildcardFileName. Type: string (or Expression with resultType string). - WildcardFileName interface{} `json:"wildcardFileName,omitempty"` + WildcardFileName any `json:"wildcardFileName,omitempty"` // Google Cloud Storage wildcardFolderPath. Type: string (or Expression with resultType string). - WildcardFolderPath interface{} `json:"wildcardFolderPath,omitempty"` + WildcardFolderPath any `json:"wildcardFolderPath,omitempty"` } // GetStoreReadSettings implements the StoreReadSettingsClassification interface for type GoogleCloudStorageReadSettings. @@ -12987,10 +13050,10 @@ type GoogleSheetsLinkedService struct { TypeProperties *GoogleSheetsLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -13021,19 +13084,19 @@ type GoogleSheetsLinkedServiceTypeProperties struct { // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` } // GreenplumDatasetTypeProperties - Greenplum Dataset Properties type GreenplumDatasetTypeProperties struct { // The schema name of Greenplum. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // The table name of Greenplum. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` + Table any `json:"table,omitempty"` // This property will be retired. Please consider using schema + table properties instead. - TableName interface{} `json:"tableName,omitempty"` + TableName any `json:"tableName,omitempty"` } // GreenplumLinkedService - Greenplum Database linked service. @@ -13045,10 +13108,10 @@ type GreenplumLinkedService struct { TypeProperties *GreenplumLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -13075,11 +13138,11 @@ func (g *GreenplumLinkedService) GetLinkedService() *LinkedService { // GreenplumLinkedServiceTypeProperties - Greenplum Database linked service properties. type GreenplumLinkedServiceTypeProperties struct { // An ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` + ConnectionString any `json:"connectionString,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // The Azure key vault secret reference of password in connection string. Pwd *AzureKeyVaultSecretReference `json:"pwd,omitempty"` @@ -13092,28 +13155,28 @@ type GreenplumSource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type GreenplumSource. @@ -13151,10 +13214,10 @@ type GreenplumTableDataset struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -13167,10 +13230,10 @@ type GreenplumTableDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` // Properties specific to this dataset type. TypeProperties *GreenplumDatasetTypeProperties `json:"typeProperties,omitempty"` @@ -13200,10 +13263,10 @@ type HBaseLinkedService struct { TypeProperties *HBaseLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -13233,38 +13296,38 @@ type HBaseLinkedServiceTypeProperties struct { AuthenticationType *HBaseAuthenticationType `json:"authenticationType,omitempty"` // REQUIRED; The IP address or host name of the HBase server. (i.e. 192.168.222.160) - Host interface{} `json:"host,omitempty"` + Host any `json:"host,omitempty"` // Specifies whether to require a CA-issued SSL certificate name to match the host name of the server when connecting over // SSL. The default value is false. - AllowHostNameCNMismatch interface{} `json:"allowHostNameCNMismatch,omitempty"` + AllowHostNameCNMismatch any `json:"allowHostNameCNMismatch,omitempty"` // Specifies whether to allow self-signed certificates from the server. The default value is false. - AllowSelfSignedServerCert interface{} `json:"allowSelfSignedServerCert,omitempty"` + AllowSelfSignedServerCert any `json:"allowSelfSignedServerCert,omitempty"` // Specifies whether the connections to the server are encrypted using SSL. The default value is false. - EnableSSL interface{} `json:"enableSsl,omitempty"` + EnableSSL any `json:"enableSsl,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // The partial URL corresponding to the HBase server. (i.e. /gateway/sandbox/hbase/version) - HTTPPath interface{} `json:"httpPath,omitempty"` + HTTPPath any `json:"httpPath,omitempty"` // The password corresponding to the user name. Password SecretBaseClassification `json:"password,omitempty"` // The TCP port that the HBase instance uses to listen for client connections. The default value is 9090. - Port interface{} `json:"port,omitempty"` + Port any `json:"port,omitempty"` // The full path of the .pem file containing trusted CA certificates for verifying the server when connecting over SSL. This // property can only be set when using SSL on self-hosted IR. The default value // is the cacerts.pem file installed with the IR. - TrustedCertPath interface{} `json:"trustedCertPath,omitempty"` + TrustedCertPath any `json:"trustedCertPath,omitempty"` // The user name used to connect to the HBase instance. - Username interface{} `json:"username,omitempty"` + Username any `json:"username,omitempty"` } // HBaseObjectDataset - HBase server dataset. @@ -13276,10 +13339,10 @@ type HBaseObjectDataset struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -13292,10 +13355,10 @@ type HBaseObjectDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` // Properties specific to this dataset type. TypeProperties *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` @@ -13323,28 +13386,28 @@ type HBaseSource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type HBaseSource. @@ -13385,7 +13448,7 @@ type HDInsightHiveActivity struct { TypeProperties *HDInsightHiveActivityTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` @@ -13432,10 +13495,10 @@ func (h *HDInsightHiveActivity) GetExecutionActivity() *ExecutionActivity { // HDInsightHiveActivityTypeProperties - HDInsight Hive activity properties. type HDInsightHiveActivityTypeProperties struct { // User specified arguments to HDInsightActivity. - Arguments []interface{} `json:"arguments,omitempty"` + Arguments []any `json:"arguments,omitempty"` // Allows user to specify defines for Hive job request. - Defines map[string]interface{} `json:"defines,omitempty"` + Defines map[string]any `json:"defines,omitempty"` // Debug info option. GetDebugInfo *HDInsightActivityDebugInfoOption `json:"getDebugInfo,omitempty"` @@ -13447,13 +13510,13 @@ type HDInsightHiveActivityTypeProperties struct { ScriptLinkedService *LinkedServiceReference `json:"scriptLinkedService,omitempty"` // Script path. Type: string (or Expression with resultType string). - ScriptPath interface{} `json:"scriptPath,omitempty"` + ScriptPath any `json:"scriptPath,omitempty"` // Storage linked service references. StorageLinkedServices []*LinkedServiceReference `json:"storageLinkedServices,omitempty"` // User specified arguments under hivevar namespace. - Variables []interface{} `json:"variables,omitempty"` + Variables []any `json:"variables,omitempty"` } // HDInsightLinkedService - HDInsight linked service. @@ -13465,10 +13528,10 @@ type HDInsightLinkedService struct { TypeProperties *HDInsightLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -13495,21 +13558,21 @@ func (h *HDInsightLinkedService) GetLinkedService() *LinkedService { // HDInsightLinkedServiceTypeProperties - HDInsight linked service properties. type HDInsightLinkedServiceTypeProperties struct { // REQUIRED; HDInsight cluster URI. Type: string (or Expression with resultType string). - ClusterURI interface{} `json:"clusterUri,omitempty"` + ClusterURI any `json:"clusterUri,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // Specify the FileSystem if the main storage for the HDInsight is ADLS Gen2. Type: string (or Expression with resultType // string). - FileSystem interface{} `json:"fileSystem,omitempty"` + FileSystem any `json:"fileSystem,omitempty"` // A reference to the Azure SQL linked service that points to the HCatalog database. HcatalogLinkedServiceName *LinkedServiceReference `json:"hcatalogLinkedServiceName,omitempty"` // Specify if the HDInsight is created with ESP (Enterprise Security Package). Type: Boolean. - IsEspEnabled interface{} `json:"isEspEnabled,omitempty"` + IsEspEnabled any `json:"isEspEnabled,omitempty"` // The Azure Storage linked service reference. LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` @@ -13518,7 +13581,7 @@ type HDInsightLinkedServiceTypeProperties struct { Password SecretBaseClassification `json:"password,omitempty"` // HDInsight cluster user name. Type: string (or Expression with resultType string). - UserName interface{} `json:"userName,omitempty"` + UserName any `json:"userName,omitempty"` } // HDInsightMapReduceActivity - HDInsight MapReduce activity type. @@ -13533,7 +13596,7 @@ type HDInsightMapReduceActivity struct { TypeProperties *HDInsightMapReduceActivityTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` @@ -13580,22 +13643,22 @@ func (h *HDInsightMapReduceActivity) GetExecutionActivity() *ExecutionActivity { // HDInsightMapReduceActivityTypeProperties - HDInsight MapReduce activity properties. type HDInsightMapReduceActivityTypeProperties struct { // REQUIRED; Class name. Type: string (or Expression with resultType string). - ClassName interface{} `json:"className,omitempty"` + ClassName any `json:"className,omitempty"` // REQUIRED; Jar path. Type: string (or Expression with resultType string). - JarFilePath interface{} `json:"jarFilePath,omitempty"` + JarFilePath any `json:"jarFilePath,omitempty"` // User specified arguments to HDInsightActivity. - Arguments []interface{} `json:"arguments,omitempty"` + Arguments []any `json:"arguments,omitempty"` // Allows user to specify defines for the MapReduce job request. - Defines map[string]interface{} `json:"defines,omitempty"` + Defines map[string]any `json:"defines,omitempty"` // Debug info option. GetDebugInfo *HDInsightActivityDebugInfoOption `json:"getDebugInfo,omitempty"` // Jar libs. - JarLibs []interface{} `json:"jarLibs,omitempty"` + JarLibs []any `json:"jarLibs,omitempty"` // Jar linked service reference. JarLinkedService *LinkedServiceReference `json:"jarLinkedService,omitempty"` @@ -13613,10 +13676,10 @@ type HDInsightOnDemandLinkedService struct { TypeProperties *HDInsightOnDemandLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -13643,35 +13706,35 @@ func (h *HDInsightOnDemandLinkedService) GetLinkedService() *LinkedService { // HDInsightOnDemandLinkedServiceTypeProperties - HDInsight ondemand linked service properties. type HDInsightOnDemandLinkedServiceTypeProperties struct { // REQUIRED; The resource group where the cluster belongs. Type: string (or Expression with resultType string). - ClusterResourceGroup interface{} `json:"clusterResourceGroup,omitempty"` + ClusterResourceGroup any `json:"clusterResourceGroup,omitempty"` // REQUIRED; Number of worker/data nodes in the cluster. Suggestion value: 4. Type: string (or Expression with resultType // string). - ClusterSize interface{} `json:"clusterSize,omitempty"` + ClusterSize any `json:"clusterSize,omitempty"` // REQUIRED; The customer’s subscription to host the cluster. Type: string (or Expression with resultType string). - HostSubscriptionID interface{} `json:"hostSubscriptionId,omitempty"` + HostSubscriptionID any `json:"hostSubscriptionId,omitempty"` // REQUIRED; Azure Storage linked service to be used by the on-demand cluster for storing and processing data. LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` // REQUIRED; The Tenant id/name to which the service principal belongs. Type: string (or Expression with resultType string). - Tenant interface{} `json:"tenant,omitempty"` + Tenant any `json:"tenant,omitempty"` // REQUIRED; The allowed idle time for the on-demand HDInsight cluster. Specifies how long the on-demand HDInsight cluster // stays alive after completion of an activity run if there are no other active jobs in the // cluster. The minimum value is 5 mins. Type: string (or Expression with resultType string). - TimeToLive interface{} `json:"timeToLive,omitempty"` + TimeToLive any `json:"timeToLive,omitempty"` // REQUIRED; Version of the HDInsight cluster. Type: string (or Expression with resultType string). - Version interface{} `json:"version,omitempty"` + Version any `json:"version,omitempty"` // Specifies additional storage accounts for the HDInsight linked service so that the Data Factory service can register them // on your behalf. AdditionalLinkedServiceNames []*LinkedServiceReference `json:"additionalLinkedServiceNames,omitempty"` // The prefix of cluster name, postfix will be distinct with timestamp. Type: string (or Expression with resultType string). - ClusterNamePrefix interface{} `json:"clusterNamePrefix,omitempty"` + ClusterNamePrefix any `json:"clusterNamePrefix,omitempty"` // The password to access the cluster. ClusterPassword SecretBaseClassification `json:"clusterPassword,omitempty"` @@ -13680,78 +13743,78 @@ type HDInsightOnDemandLinkedServiceTypeProperties struct { ClusterSSHPassword SecretBaseClassification `json:"clusterSshPassword,omitempty"` // The username to SSH remotely connect to cluster’s node (for Linux). Type: string (or Expression with resultType string). - ClusterSSHUserName interface{} `json:"clusterSshUserName,omitempty"` + ClusterSSHUserName any `json:"clusterSshUserName,omitempty"` // The cluster type. Type: string (or Expression with resultType string). - ClusterType interface{} `json:"clusterType,omitempty"` + ClusterType any `json:"clusterType,omitempty"` // The username to access the cluster. Type: string (or Expression with resultType string). - ClusterUserName interface{} `json:"clusterUserName,omitempty"` + ClusterUserName any `json:"clusterUserName,omitempty"` // Specifies the core configuration parameters (as in core-site.xml) for the HDInsight cluster to be created. - CoreConfiguration interface{} `json:"coreConfiguration,omitempty"` + CoreConfiguration any `json:"coreConfiguration,omitempty"` // The credential reference containing authentication information. Credential *CredentialReference `json:"credential,omitempty"` // Specifies the size of the data node for the HDInsight cluster. - DataNodeSize interface{} `json:"dataNodeSize,omitempty"` + DataNodeSize any `json:"dataNodeSize,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // Specifies the HBase configuration parameters (hbase-site.xml) for the HDInsight cluster. - HBaseConfiguration interface{} `json:"hBaseConfiguration,omitempty"` + HBaseConfiguration any `json:"hBaseConfiguration,omitempty"` // The name of Azure SQL linked service that point to the HCatalog database. The on-demand HDInsight cluster is created by // using the Azure SQL database as the metastore. HcatalogLinkedServiceName *LinkedServiceReference `json:"hcatalogLinkedServiceName,omitempty"` // Specifies the HDFS configuration parameters (hdfs-site.xml) for the HDInsight cluster. - HdfsConfiguration interface{} `json:"hdfsConfiguration,omitempty"` + HdfsConfiguration any `json:"hdfsConfiguration,omitempty"` // Specifies the size of the head node for the HDInsight cluster. - HeadNodeSize interface{} `json:"headNodeSize,omitempty"` + HeadNodeSize any `json:"headNodeSize,omitempty"` // Specifies the hive configuration parameters (hive-site.xml) for the HDInsight cluster. - HiveConfiguration interface{} `json:"hiveConfiguration,omitempty"` + HiveConfiguration any `json:"hiveConfiguration,omitempty"` // Specifies the MapReduce configuration parameters (mapred-site.xml) for the HDInsight cluster. - MapReduceConfiguration interface{} `json:"mapReduceConfiguration,omitempty"` + MapReduceConfiguration any `json:"mapReduceConfiguration,omitempty"` // Specifies the Oozie configuration parameters (oozie-site.xml) for the HDInsight cluster. - OozieConfiguration interface{} `json:"oozieConfiguration,omitempty"` + OozieConfiguration any `json:"oozieConfiguration,omitempty"` // Custom script actions to run on HDI ondemand cluster once it's up. Please refer to // https://docs.microsoft.com/en-us/azure/hdinsight/hdinsight-hadoop-customize-cluster-linux?toc=%2Fen-us%2Fazure%2Fhdinsight%2Fr-server%2FTOC.json&bc=%2Fen-us%2Fazure%2Fbread%2Ftoc.json#understanding-script-actions. ScriptActions []*ScriptAction `json:"scriptActions,omitempty"` // The service principal id for the hostSubscriptionId. Type: string (or Expression with resultType string). - ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` + ServicePrincipalID any `json:"servicePrincipalId,omitempty"` // The key for the service principal id. ServicePrincipalKey SecretBaseClassification `json:"servicePrincipalKey,omitempty"` // The version of spark if the cluster type is 'spark'. Type: string (or Expression with resultType string). - SparkVersion interface{} `json:"sparkVersion,omitempty"` + SparkVersion any `json:"sparkVersion,omitempty"` // Specifies the Storm configuration parameters (storm-site.xml) for the HDInsight cluster. - StormConfiguration interface{} `json:"stormConfiguration,omitempty"` + StormConfiguration any `json:"stormConfiguration,omitempty"` // The ARM resource ID for the subnet in the vNet. If virtualNetworkId was specified, then this property is required. Type: // string (or Expression with resultType string). - SubnetName interface{} `json:"subnetName,omitempty"` + SubnetName any `json:"subnetName,omitempty"` // The ARM resource ID for the vNet to which the cluster should be joined after creation. Type: string (or Expression with // resultType string). - VirtualNetworkID interface{} `json:"virtualNetworkId,omitempty"` + VirtualNetworkID any `json:"virtualNetworkId,omitempty"` // Specifies the Yarn configuration parameters (yarn-site.xml) for the HDInsight cluster. - YarnConfiguration interface{} `json:"yarnConfiguration,omitempty"` + YarnConfiguration any `json:"yarnConfiguration,omitempty"` // Specifies the size of the Zoo Keeper node for the HDInsight cluster. - ZookeeperNodeSize interface{} `json:"zookeeperNodeSize,omitempty"` + ZookeeperNodeSize any `json:"zookeeperNodeSize,omitempty"` } // HDInsightPigActivity - HDInsight Pig activity type. @@ -13766,7 +13829,7 @@ type HDInsightPigActivity struct { TypeProperties *HDInsightPigActivityTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` @@ -13813,10 +13876,10 @@ func (h *HDInsightPigActivity) GetExecutionActivity() *ExecutionActivity { // HDInsightPigActivityTypeProperties - HDInsight Pig activity properties. type HDInsightPigActivityTypeProperties struct { // User specified arguments to HDInsightActivity. Type: array (or Expression with resultType array). - Arguments interface{} `json:"arguments,omitempty"` + Arguments any `json:"arguments,omitempty"` // Allows user to specify defines for Pig job request. - Defines map[string]interface{} `json:"defines,omitempty"` + Defines map[string]any `json:"defines,omitempty"` // Debug info option. GetDebugInfo *HDInsightActivityDebugInfoOption `json:"getDebugInfo,omitempty"` @@ -13825,7 +13888,7 @@ type HDInsightPigActivityTypeProperties struct { ScriptLinkedService *LinkedServiceReference `json:"scriptLinkedService,omitempty"` // Script path. Type: string (or Expression with resultType string). - ScriptPath interface{} `json:"scriptPath,omitempty"` + ScriptPath any `json:"scriptPath,omitempty"` // Storage linked service references. StorageLinkedServices []*LinkedServiceReference `json:"storageLinkedServices,omitempty"` @@ -13843,7 +13906,7 @@ type HDInsightSparkActivity struct { TypeProperties *HDInsightSparkActivityTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` @@ -13891,14 +13954,14 @@ func (h *HDInsightSparkActivity) GetExecutionActivity() *ExecutionActivity { type HDInsightSparkActivityTypeProperties struct { // REQUIRED; The relative path to the root folder of the code/package to be executed. Type: string (or Expression with resultType // string). - EntryFilePath interface{} `json:"entryFilePath,omitempty"` + EntryFilePath any `json:"entryFilePath,omitempty"` // REQUIRED; The root path in 'sparkJobLinkedService' for all the job’s files. Type: string (or Expression with resultType // string). - RootPath interface{} `json:"rootPath,omitempty"` + RootPath any `json:"rootPath,omitempty"` // The user-specified arguments to HDInsightSparkActivity. - Arguments []interface{} `json:"arguments,omitempty"` + Arguments []any `json:"arguments,omitempty"` // The application's Java/Spark main class. ClassName *string `json:"className,omitempty"` @@ -13907,10 +13970,10 @@ type HDInsightSparkActivityTypeProperties struct { GetDebugInfo *HDInsightActivityDebugInfoOption `json:"getDebugInfo,omitempty"` // The user to impersonate that will execute the job. Type: string (or Expression with resultType string). - ProxyUser interface{} `json:"proxyUser,omitempty"` + ProxyUser any `json:"proxyUser,omitempty"` // Spark configuration property. - SparkConfig map[string]interface{} `json:"sparkConfig,omitempty"` + SparkConfig map[string]any `json:"sparkConfig,omitempty"` // The storage linked service for uploading the entry file and dependencies, and for receiving logs. SparkJobLinkedService *LinkedServiceReference `json:"sparkJobLinkedService,omitempty"` @@ -13928,7 +13991,7 @@ type HDInsightStreamingActivity struct { TypeProperties *HDInsightStreamingActivityTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` @@ -13975,31 +14038,31 @@ func (h *HDInsightStreamingActivity) GetExecutionActivity() *ExecutionActivity { // HDInsightStreamingActivityTypeProperties - HDInsight streaming activity properties. type HDInsightStreamingActivityTypeProperties struct { // REQUIRED; Paths to streaming job files. Can be directories. - FilePaths []interface{} `json:"filePaths,omitempty"` + FilePaths []any `json:"filePaths,omitempty"` // REQUIRED; Input blob path. Type: string (or Expression with resultType string). - Input interface{} `json:"input,omitempty"` + Input any `json:"input,omitempty"` // REQUIRED; Mapper executable name. Type: string (or Expression with resultType string). - Mapper interface{} `json:"mapper,omitempty"` + Mapper any `json:"mapper,omitempty"` // REQUIRED; Output blob path. Type: string (or Expression with resultType string). - Output interface{} `json:"output,omitempty"` + Output any `json:"output,omitempty"` // REQUIRED; Reducer executable name. Type: string (or Expression with resultType string). - Reducer interface{} `json:"reducer,omitempty"` + Reducer any `json:"reducer,omitempty"` // User specified arguments to HDInsightActivity. - Arguments []interface{} `json:"arguments,omitempty"` + Arguments []any `json:"arguments,omitempty"` // Combiner executable name. Type: string (or Expression with resultType string). - Combiner interface{} `json:"combiner,omitempty"` + Combiner any `json:"combiner,omitempty"` // Command line environment values. - CommandEnvironment []interface{} `json:"commandEnvironment,omitempty"` + CommandEnvironment []any `json:"commandEnvironment,omitempty"` // Allows user to specify defines for streaming job request. - Defines map[string]interface{} `json:"defines,omitempty"` + Defines map[string]any `json:"defines,omitempty"` // Linked service reference where the files are located. FileLinkedService *LinkedServiceReference `json:"fileLinkedService,omitempty"` @@ -14020,10 +14083,10 @@ type HTTPDataset struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -14036,10 +14099,10 @@ type HTTPDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` // Properties specific to this dataset type. TypeProperties *HTTPDatasetTypeProperties `json:"typeProperties,omitempty"` @@ -14064,7 +14127,7 @@ func (h *HTTPDataset) GetDataset() *Dataset { type HTTPDatasetTypeProperties struct { // The headers for the HTTP Request. e.g. request-header-name-1:request-header-value-1 … request-header-name-n:request-header-value-n // Type: string (or Expression with resultType string). - AdditionalHeaders interface{} `json:"additionalHeaders,omitempty"` + AdditionalHeaders any `json:"additionalHeaders,omitempty"` // The data compression method used on files. Compression *DatasetCompression `json:"compression,omitempty"` @@ -14074,13 +14137,13 @@ type HTTPDatasetTypeProperties struct { // The relative URL based on the URL in the HttpLinkedService refers to an HTTP file Type: string (or Expression with resultType // string). - RelativeURL interface{} `json:"relativeUrl,omitempty"` + RelativeURL any `json:"relativeUrl,omitempty"` // The body for the HTTP request. Type: string (or Expression with resultType string). - RequestBody interface{} `json:"requestBody,omitempty"` + RequestBody any `json:"requestBody,omitempty"` // The HTTP method for the HTTP request. Type: string (or Expression with resultType string). - RequestMethod interface{} `json:"requestMethod,omitempty"` + RequestMethod any `json:"requestMethod,omitempty"` } // HTTPLinkedService - Linked service for an HTTP source. @@ -14092,10 +14155,10 @@ type HTTPLinkedService struct { TypeProperties *HTTPLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -14123,11 +14186,11 @@ func (h *HTTPLinkedService) GetLinkedService() *LinkedService { type HTTPLinkedServiceTypeProperties struct { // REQUIRED; The base URL of the HTTP endpoint, e.g. https://www.microsoft.com. Type: string (or Expression with resultType // string). - URL interface{} `json:"url,omitempty"` + URL any `json:"url,omitempty"` // The additional HTTP headers in the request to RESTful API used for authorization. Type: object (or Expression with resultType // object). - AuthHeaders interface{} `json:"authHeaders,omitempty"` + AuthHeaders any `json:"authHeaders,omitempty"` // The authentication type to be used to connect to the HTTP server. AuthenticationType *HTTPAuthenticationType `json:"authenticationType,omitempty"` @@ -14135,26 +14198,26 @@ type HTTPLinkedServiceTypeProperties struct { // Thumbprint of certificate for ClientCertificate authentication. Only valid for on-premises copy. For on-premises copy with // ClientCertificate authentication, either CertThumbprint or // EmbeddedCertData/Password should be specified. Type: string (or Expression with resultType string). - CertThumbprint interface{} `json:"certThumbprint,omitempty"` + CertThumbprint any `json:"certThumbprint,omitempty"` // Base64 encoded certificate data for ClientCertificate authentication. For on-premises copy with ClientCertificate authentication, // either CertThumbprint or EmbeddedCertData/Password should be // specified. Type: string (or Expression with resultType string). - EmbeddedCertData interface{} `json:"embeddedCertData,omitempty"` + EmbeddedCertData any `json:"embeddedCertData,omitempty"` // If true, validate the HTTPS server SSL certificate. Default value is true. Type: boolean (or Expression with resultType // boolean). - EnableServerCertificateValidation interface{} `json:"enableServerCertificateValidation,omitempty"` + EnableServerCertificateValidation any `json:"enableServerCertificateValidation,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // Password for Basic, Digest, Windows, or ClientCertificate with EmbeddedCertData authentication. Password SecretBaseClassification `json:"password,omitempty"` // User name for Basic, Digest, or Windows authentication. Type: string (or Expression with resultType string). - UserName interface{} `json:"userName,omitempty"` + UserName any `json:"userName,omitempty"` } // HTTPReadSettings - Sftp read settings. @@ -14163,31 +14226,31 @@ type HTTPReadSettings struct { Type *string `json:"type,omitempty"` // The additional HTTP headers in the request to the RESTful API. Type: string (or Expression with resultType string). - AdditionalHeaders interface{} `json:"additionalHeaders,omitempty"` + AdditionalHeaders any `json:"additionalHeaders,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // Indicates whether to enable partition discovery. EnablePartitionDiscovery *bool `json:"enablePartitionDiscovery,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). - PartitionRootPath interface{} `json:"partitionRootPath,omitempty"` + PartitionRootPath any `json:"partitionRootPath,omitempty"` // The HTTP request body to the RESTful API if requestMethod is POST. Type: string (or Expression with resultType string). - RequestBody interface{} `json:"requestBody,omitempty"` + RequestBody any `json:"requestBody,omitempty"` // The HTTP method used to call the RESTful API. The default is GET. Type: string (or Expression with resultType string). - RequestMethod interface{} `json:"requestMethod,omitempty"` + RequestMethod any `json:"requestMethod,omitempty"` // Specifies the timeout for a HTTP client to get HTTP response from HTTP server. - RequestTimeout interface{} `json:"requestTimeout,omitempty"` + RequestTimeout any `json:"requestTimeout,omitempty"` } // GetStoreReadSettings implements the StoreReadSettingsClassification interface for type HTTPReadSettings. @@ -14206,16 +14269,16 @@ type HTTPServerLocation struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Specify the file name of dataset. Type: string (or Expression with resultType string). - FileName interface{} `json:"fileName,omitempty"` + FileName any `json:"fileName,omitempty"` // Specify the folder path of dataset. Type: string (or Expression with resultType string) - FolderPath interface{} `json:"folderPath,omitempty"` + FolderPath any `json:"folderPath,omitempty"` // Specify the relativeUrl of http server. Type: string (or Expression with resultType string) - RelativeURL interface{} `json:"relativeUrl,omitempty"` + RelativeURL any `json:"relativeUrl,omitempty"` } // GetDatasetLocation implements the DatasetLocationClassification interface for type HTTPServerLocation. @@ -14234,24 +14297,24 @@ type HTTPSource struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // Specifies the timeout for a HTTP client to get HTTP response from HTTP server. The default value is equivalent to System.Net.HttpWebRequest.Timeout. // Type: string (or Expression with resultType // string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - HTTPRequestTimeout interface{} `json:"httpRequestTimeout,omitempty"` + HTTPRequestTimeout any `json:"httpRequestTimeout,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type HTTPSource. @@ -14275,10 +14338,10 @@ type HdfsLinkedService struct { TypeProperties *HdfsLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -14306,21 +14369,21 @@ func (h *HdfsLinkedService) GetLinkedService() *LinkedService { type HdfsLinkedServiceTypeProperties struct { // REQUIRED; The URL of the HDFS service endpoint, e.g. http://myhostname:50070/webhdfs/v1 . Type: string (or Expression with // resultType string). - URL interface{} `json:"url,omitempty"` + URL any `json:"url,omitempty"` // Type of authentication used to connect to the HDFS. Possible values are: Anonymous and Windows. Type: string (or Expression // with resultType string). - AuthenticationType interface{} `json:"authenticationType,omitempty"` + AuthenticationType any `json:"authenticationType,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // Password for Windows authentication. Password SecretBaseClassification `json:"password,omitempty"` // User name for Windows authentication. Type: string (or Expression with resultType string). - UserName interface{} `json:"userName,omitempty"` + UserName any `json:"userName,omitempty"` } // HdfsLocation - The location of HDFS. @@ -14329,13 +14392,13 @@ type HdfsLocation struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Specify the file name of dataset. Type: string (or Expression with resultType string). - FileName interface{} `json:"fileName,omitempty"` + FileName any `json:"fileName,omitempty"` // Specify the folder path of dataset. Type: string (or Expression with resultType string) - FolderPath interface{} `json:"folderPath,omitempty"` + FolderPath any `json:"folderPath,omitempty"` } // GetDatasetLocation implements the DatasetLocationClassification interface for type HdfsLocation. @@ -14354,14 +14417,14 @@ type HdfsReadSettings struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Indicates whether the source files need to be deleted after copy completion. Default is false. Type: boolean (or Expression // with resultType boolean). - DeleteFilesAfterCompletion interface{} `json:"deleteFilesAfterCompletion,omitempty"` + DeleteFilesAfterCompletion any `json:"deleteFilesAfterCompletion,omitempty"` // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // Specifies Distcp-related settings. DistcpSettings *DistcpSettings `json:"distcpSettings,omitempty"` @@ -14371,29 +14434,29 @@ type HdfsReadSettings struct { // Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. // Type: string (or Expression with resultType string). - FileListPath interface{} `json:"fileListPath,omitempty"` + FileListPath any `json:"fileListPath,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // The end of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` + ModifiedDatetimeEnd any `json:"modifiedDatetimeEnd,omitempty"` // The start of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` + ModifiedDatetimeStart any `json:"modifiedDatetimeStart,omitempty"` // Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). - PartitionRootPath interface{} `json:"partitionRootPath,omitempty"` + PartitionRootPath any `json:"partitionRootPath,omitempty"` // If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType // boolean). - Recursive interface{} `json:"recursive,omitempty"` + Recursive any `json:"recursive,omitempty"` // HDFS wildcardFileName. Type: string (or Expression with resultType string). - WildcardFileName interface{} `json:"wildcardFileName,omitempty"` + WildcardFileName any `json:"wildcardFileName,omitempty"` // HDFS wildcardFolderPath. Type: string (or Expression with resultType string). - WildcardFolderPath interface{} `json:"wildcardFolderPath,omitempty"` + WildcardFolderPath any `json:"wildcardFolderPath,omitempty"` } // GetStoreReadSettings implements the StoreReadSettingsClassification interface for type HdfsReadSettings. @@ -14412,26 +14475,26 @@ type HdfsSource struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // Specifies Distcp-related settings. DistcpSettings *DistcpSettings `json:"distcpSettings,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType // boolean). - Recursive interface{} `json:"recursive,omitempty"` + Recursive any `json:"recursive,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type HdfsSource. @@ -14449,13 +14512,13 @@ func (h *HdfsSource) GetCopySource() *CopySource { // HiveDatasetTypeProperties - Hive Properties type HiveDatasetTypeProperties struct { // The schema name of the Hive. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // The table name of the Hive. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` + Table any `json:"table,omitempty"` // This property will be retired. Please consider using schema + table properties instead. - TableName interface{} `json:"tableName,omitempty"` + TableName any `json:"tableName,omitempty"` } // HiveLinkedService - Hive Server linked service. @@ -14467,10 +14530,10 @@ type HiveLinkedService struct { TypeProperties *HiveLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -14501,36 +14564,36 @@ type HiveLinkedServiceTypeProperties struct { // REQUIRED; IP address or host name of the Hive server, separated by ';' for multiple hosts (only when serviceDiscoveryMode // is enable). - Host interface{} `json:"host,omitempty"` + Host any `json:"host,omitempty"` // Specifies whether to require a CA-issued SSL certificate name to match the host name of the server when connecting over // SSL. The default value is false. - AllowHostNameCNMismatch interface{} `json:"allowHostNameCNMismatch,omitempty"` + AllowHostNameCNMismatch any `json:"allowHostNameCNMismatch,omitempty"` // Specifies whether to allow self-signed certificates from the server. The default value is false. - AllowSelfSignedServerCert interface{} `json:"allowSelfSignedServerCert,omitempty"` + AllowSelfSignedServerCert any `json:"allowSelfSignedServerCert,omitempty"` // Specifies whether the connections to the server are encrypted using SSL. The default value is false. - EnableSSL interface{} `json:"enableSsl,omitempty"` + EnableSSL any `json:"enableSsl,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // The partial URL corresponding to the Hive server. - HTTPPath interface{} `json:"httpPath,omitempty"` + HTTPPath any `json:"httpPath,omitempty"` // The password corresponding to the user name that you provided in the Username field Password SecretBaseClassification `json:"password,omitempty"` // The TCP port that the Hive server uses to listen for client connections. - Port interface{} `json:"port,omitempty"` + Port any `json:"port,omitempty"` // The type of Hive server. ServerType *HiveServerType `json:"serverType,omitempty"` // true to indicate using the ZooKeeper service, false not. - ServiceDiscoveryMode interface{} `json:"serviceDiscoveryMode,omitempty"` + ServiceDiscoveryMode any `json:"serviceDiscoveryMode,omitempty"` // The transport protocol to use in the Thrift layer. ThriftTransportProtocol *HiveThriftTransportProtocol `json:"thriftTransportProtocol,omitempty"` @@ -14538,20 +14601,20 @@ type HiveLinkedServiceTypeProperties struct { // The full path of the .pem file containing trusted CA certificates for verifying the server when connecting over SSL. This // property can only be set when using SSL on self-hosted IR. The default value // is the cacerts.pem file installed with the IR. - TrustedCertPath interface{} `json:"trustedCertPath,omitempty"` + TrustedCertPath any `json:"trustedCertPath,omitempty"` // Specifies whether the driver uses native HiveQL queries,or converts them into an equivalent form in HiveQL. - UseNativeQuery interface{} `json:"useNativeQuery,omitempty"` + UseNativeQuery any `json:"useNativeQuery,omitempty"` // Specifies whether to use a CA certificate from the system trust store or from a specified PEM file. The default value is // false. - UseSystemTrustStore interface{} `json:"useSystemTrustStore,omitempty"` + UseSystemTrustStore any `json:"useSystemTrustStore,omitempty"` // The user name that you use to access Hive Server. - Username interface{} `json:"username,omitempty"` + Username any `json:"username,omitempty"` // The namespace on ZooKeeper under which Hive Server 2 nodes are added. - ZooKeeperNameSpace interface{} `json:"zooKeeperNameSpace,omitempty"` + ZooKeeperNameSpace any `json:"zooKeeperNameSpace,omitempty"` } // HiveObjectDataset - Hive Server dataset. @@ -14563,10 +14626,10 @@ type HiveObjectDataset struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -14579,10 +14642,10 @@ type HiveObjectDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` // Properties specific to this dataset type. TypeProperties *HiveDatasetTypeProperties `json:"typeProperties,omitempty"` @@ -14610,28 +14673,28 @@ type HiveSource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type HiveSource. @@ -14669,10 +14732,10 @@ type HubspotLinkedService struct { TypeProperties *HubspotLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -14699,7 +14762,7 @@ func (h *HubspotLinkedService) GetLinkedService() *LinkedService { // HubspotLinkedServiceTypeProperties - Hubspot Service linked service properties. type HubspotLinkedServiceTypeProperties struct { // REQUIRED; The client ID associated with your Hubspot application. - ClientID interface{} `json:"clientId,omitempty"` + ClientID any `json:"clientId,omitempty"` // The access token obtained when initially authenticating your OAuth integration. AccessToken SecretBaseClassification `json:"accessToken,omitempty"` @@ -14709,20 +14772,20 @@ type HubspotLinkedServiceTypeProperties struct { // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // The refresh token obtained when initially authenticating your OAuth integration. RefreshToken SecretBaseClassification `json:"refreshToken,omitempty"` // Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. - UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` + UseEncryptedEndpoints any `json:"useEncryptedEndpoints,omitempty"` // Specifies whether to require the host name in the server's certificate to match the host name of the server when connecting // over SSL. The default value is true. - UseHostVerification interface{} `json:"useHostVerification,omitempty"` + UseHostVerification any `json:"useHostVerification,omitempty"` // Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. - UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` + UsePeerVerification any `json:"usePeerVerification,omitempty"` } // HubspotObjectDataset - Hubspot Service dataset. @@ -14734,10 +14797,10 @@ type HubspotObjectDataset struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -14750,10 +14813,10 @@ type HubspotObjectDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` // Properties specific to this dataset type. TypeProperties *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` @@ -14781,28 +14844,28 @@ type HubspotSource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type HubspotSource. @@ -14844,7 +14907,7 @@ type IfConditionActivity struct { TypeProperties *IfConditionActivityTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` @@ -14898,13 +14961,13 @@ type IfConditionActivityTypeProperties struct { // ImpalaDatasetTypeProperties - Impala Dataset Properties type ImpalaDatasetTypeProperties struct { // The schema name of the Impala. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // The table name of the Impala. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` + Table any `json:"table,omitempty"` // This property will be retired. Please consider using schema + table properties instead. - TableName interface{} `json:"tableName,omitempty"` + TableName any `json:"tableName,omitempty"` } // ImpalaLinkedService - Impala server linked service. @@ -14916,10 +14979,10 @@ type ImpalaLinkedService struct { TypeProperties *ImpalaLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -14949,39 +15012,39 @@ type ImpalaLinkedServiceTypeProperties struct { AuthenticationType *ImpalaAuthenticationType `json:"authenticationType,omitempty"` // REQUIRED; The IP address or host name of the Impala server. (i.e. 192.168.222.160) - Host interface{} `json:"host,omitempty"` + Host any `json:"host,omitempty"` // Specifies whether to require a CA-issued SSL certificate name to match the host name of the server when connecting over // SSL. The default value is false. - AllowHostNameCNMismatch interface{} `json:"allowHostNameCNMismatch,omitempty"` + AllowHostNameCNMismatch any `json:"allowHostNameCNMismatch,omitempty"` // Specifies whether to allow self-signed certificates from the server. The default value is false. - AllowSelfSignedServerCert interface{} `json:"allowSelfSignedServerCert,omitempty"` + AllowSelfSignedServerCert any `json:"allowSelfSignedServerCert,omitempty"` // Specifies whether the connections to the server are encrypted using SSL. The default value is false. - EnableSSL interface{} `json:"enableSsl,omitempty"` + EnableSSL any `json:"enableSsl,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // The password corresponding to the user name when using UsernameAndPassword. Password SecretBaseClassification `json:"password,omitempty"` // The TCP port that the Impala server uses to listen for client connections. The default value is 21050. - Port interface{} `json:"port,omitempty"` + Port any `json:"port,omitempty"` // The full path of the .pem file containing trusted CA certificates for verifying the server when connecting over SSL. This // property can only be set when using SSL on self-hosted IR. The default value // is the cacerts.pem file installed with the IR. - TrustedCertPath interface{} `json:"trustedCertPath,omitempty"` + TrustedCertPath any `json:"trustedCertPath,omitempty"` // Specifies whether to use a CA certificate from the system trust store or from a specified PEM file. The default value is // false. - UseSystemTrustStore interface{} `json:"useSystemTrustStore,omitempty"` + UseSystemTrustStore any `json:"useSystemTrustStore,omitempty"` // The user name used to access the Impala server. The default value is anonymous when using SASLUsername. - Username interface{} `json:"username,omitempty"` + Username any `json:"username,omitempty"` } // ImpalaObjectDataset - Impala server dataset. @@ -14993,10 +15056,10 @@ type ImpalaObjectDataset struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -15009,10 +15072,10 @@ type ImpalaObjectDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` // Properties specific to this dataset type. TypeProperties *ImpalaDatasetTypeProperties `json:"typeProperties,omitempty"` @@ -15040,28 +15103,28 @@ type ImpalaSource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type ImpalaSource. @@ -15105,7 +15168,7 @@ type ImportSettings struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any } // GetImportSettings implements the ImportSettingsClassification interface for type ImportSettings. @@ -15120,10 +15183,10 @@ type InformixLinkedService struct { TypeProperties *InformixLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -15151,24 +15214,24 @@ func (i *InformixLinkedService) GetLinkedService() *LinkedService { type InformixLinkedServiceTypeProperties struct { // REQUIRED; The non-access credential portion of the connection string as well as an optional encrypted credential. Type: // string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` + ConnectionString any `json:"connectionString,omitempty"` // Type of authentication used to connect to the Informix as ODBC data store. Possible values are: Anonymous and Basic. Type: // string (or Expression with resultType string). - AuthenticationType interface{} `json:"authenticationType,omitempty"` + AuthenticationType any `json:"authenticationType,omitempty"` // The access credential portion of the connection string specified in driver-specific property-value format. Credential SecretBaseClassification `json:"credential,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // Password for Basic authentication. Password SecretBaseClassification `json:"password,omitempty"` // User name for Basic authentication. Type: string (or Expression with resultType string). - UserName interface{} `json:"userName,omitempty"` + UserName any `json:"userName,omitempty"` } // InformixSink - A copy activity Informix sink. @@ -15177,28 +15240,28 @@ type InformixSink struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // A query to execute before starting the copy. Type: string (or Expression with resultType string). - PreCopyScript interface{} `json:"preCopyScript,omitempty"` + PreCopyScript any `json:"preCopyScript,omitempty"` // Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + SinkRetryCount any `json:"sinkRetryCount,omitempty"` // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + SinkRetryWait any `json:"sinkRetryWait,omitempty"` // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + WriteBatchSize any `json:"writeBatchSize,omitempty"` // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + WriteBatchTimeout any `json:"writeBatchTimeout,omitempty"` } // GetCopySink implements the CopySinkClassification interface for type InformixSink. @@ -15222,28 +15285,28 @@ type InformixSource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // Database query. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type InformixSource. @@ -15281,10 +15344,10 @@ type InformixTableDataset struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -15297,10 +15360,10 @@ type InformixTableDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` // Informix table dataset properties. TypeProperties *InformixTableDatasetTypeProperties `json:"typeProperties,omitempty"` @@ -15324,7 +15387,7 @@ func (i *InformixTableDataset) GetDataset() *Dataset { // InformixTableDatasetTypeProperties - Informix table dataset properties. type InformixTableDatasetTypeProperties struct { // The Informix table name. Type: string (or Expression with resultType string). - TableName interface{} `json:"tableName,omitempty"` + TableName any `json:"tableName,omitempty"` } // IntegrationRuntimeClassification provides polymorphic access to related types. @@ -15342,7 +15405,7 @@ type IntegrationRuntime struct { Type *IntegrationRuntimeType `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Integration runtime description. Description *string `json:"description,omitempty"` @@ -15363,7 +15426,7 @@ type IntegrationRuntimeAuthKeys struct { // IntegrationRuntimeComputeProperties - The compute resource properties for managed integration runtime. type IntegrationRuntimeComputeProperties struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Data flow properties for managed integration runtime. DataFlowProperties *IntegrationRuntimeDataFlowProperties `json:"dataFlowProperties,omitempty"` @@ -15387,7 +15450,7 @@ type IntegrationRuntimeComputeProperties struct { // IntegrationRuntimeConnectionInfo - Connection information for encrypting the on-premises data source credentials. type IntegrationRuntimeConnectionInfo struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // READ-ONLY; The on-premises integration runtime host URL. HostServiceURI *string `json:"hostServiceUri,omitempty" azure:"ro"` @@ -15427,7 +15490,7 @@ type IntegrationRuntimeCustomerVirtualNetwork struct { // IntegrationRuntimeDataFlowProperties - Data flow properties for managed integration runtime. type IntegrationRuntimeDataFlowProperties struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Cluster will not be recycled and it will be used in next data flow activity run until TTL (time to live) is reached if // this is set as false. Default is true. @@ -15491,7 +15554,7 @@ type IntegrationRuntimeNodeIPAddress struct { // IntegrationRuntimeNodeMonitoringData - Monitoring data for integration runtime node. type IntegrationRuntimeNodeMonitoringData struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // READ-ONLY; Available memory (MB) on the integration runtime node. AvailableMemoryInMB *int32 `json:"availableMemoryInMB,omitempty" azure:"ro"` @@ -15598,7 +15661,7 @@ type IntegrationRuntimeReference struct { Type *IntegrationRuntimeReferenceType `json:"type,omitempty"` // Arguments for integration runtime. - Parameters map[string]interface{} `json:"parameters,omitempty"` + Parameters map[string]any `json:"parameters,omitempty"` } // IntegrationRuntimeRegenerateKeyParameters - Parameters to regenerate the authentication key. @@ -15628,7 +15691,7 @@ type IntegrationRuntimeResource struct { // IntegrationRuntimeSsisCatalogInfo - Catalog information for managed dedicated integration runtime. type IntegrationRuntimeSsisCatalogInfo struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // The password of the administrator user account of the catalog database. CatalogAdminPassword *SecureString `json:"catalogAdminPassword,omitempty"` @@ -15649,7 +15712,7 @@ type IntegrationRuntimeSsisCatalogInfo struct { // IntegrationRuntimeSsisProperties - SSIS properties for managed integration runtime. type IntegrationRuntimeSsisProperties struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Catalog information for managed dedicated integration runtime. CatalogInfo *IntegrationRuntimeSsisCatalogInfo `json:"catalogInfo,omitempty"` @@ -15691,7 +15754,7 @@ type IntegrationRuntimeStatus struct { Type *IntegrationRuntimeType `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // READ-ONLY; The data factory name which the integration runtime belong to. DataFactoryName *string `json:"dataFactoryName,omitempty" azure:"ro"` @@ -15715,7 +15778,7 @@ type IntegrationRuntimeStatusResponse struct { // IntegrationRuntimeVNetProperties - VNet properties for managed integration runtime. type IntegrationRuntimeVNetProperties struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Resource IDs of the public IP addresses that this integration runtime will use. PublicIPs []*string `json:"publicIPs,omitempty"` @@ -15794,7 +15857,7 @@ type IntegrationRuntimesClientListAuthKeysOptions struct { // placeholder for future optional parameters } -// IntegrationRuntimesClientListByFactoryOptions contains the optional parameters for the IntegrationRuntimesClient.ListByFactory +// IntegrationRuntimesClientListByFactoryOptions contains the optional parameters for the IntegrationRuntimesClient.NewListByFactoryPager // method. type IntegrationRuntimesClientListByFactoryOptions struct { // placeholder for future optional parameters @@ -15843,10 +15906,10 @@ type JSONDataset struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -15859,10 +15922,10 @@ type JSONDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` // Json dataset properties. TypeProperties *JSONDatasetTypeProperties `json:"typeProperties,omitempty"` @@ -15895,7 +15958,7 @@ type JSONDatasetTypeProperties struct { // Unicode encoding. Refer to the name column of the table in the following link to // set supported values: https://msdn.microsoft.com/library/system.text.encoding.aspx. Type: string (or Expression with resultType // string). - EncodingName interface{} `json:"encodingName,omitempty"` + EncodingName any `json:"encodingName,omitempty"` } // JSONFormat - The data stored in JSON format. @@ -15904,37 +15967,37 @@ type JSONFormat struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Deserializer. Type: string (or Expression with resultType string). - Deserializer interface{} `json:"deserializer,omitempty"` + Deserializer any `json:"deserializer,omitempty"` // The code page name of the preferred encoding. If not provided, the default value is 'utf-8', unless the byte order mark // (BOM) denotes another Unicode encoding. The full list of supported values can be // found in the 'Name' column of the table of encodings in the following reference: https://go.microsoft.com/fwlink/?linkid=861078. // Type: string (or Expression with resultType string). - EncodingName interface{} `json:"encodingName,omitempty"` + EncodingName any `json:"encodingName,omitempty"` // File pattern of JSON. To be more specific, the way of separating a collection of JSON objects. The default value is 'setOfObjects'. // It is case-sensitive. - FilePattern interface{} `json:"filePattern,omitempty"` + FilePattern any `json:"filePattern,omitempty"` // The JSONPath of the JSON array element to be flattened. Example: "$.ArrayPath". Type: string (or Expression with resultType // string). - JSONNodeReference interface{} `json:"jsonNodeReference,omitempty"` + JSONNodeReference any `json:"jsonNodeReference,omitempty"` // The JSONPath definition for each column mapping with a customized column name to extract data from JSON file. For fields // under root object, start with "$"; for fields inside the array chosen by // jsonNodeReference property, start from the array element. Example: {"Column1": "$.Column1Path", "Column2": "Column2PathInArray"}. // Type: object (or Expression with resultType object). - JSONPathDefinition interface{} `json:"jsonPathDefinition,omitempty"` + JSONPathDefinition any `json:"jsonPathDefinition,omitempty"` // The character used to separate nesting levels. Default value is '.' (dot). Type: string (or Expression with resultType // string). - NestingSeparator interface{} `json:"nestingSeparator,omitempty"` + NestingSeparator any `json:"nestingSeparator,omitempty"` // Serializer. Type: string (or Expression with resultType string). - Serializer interface{} `json:"serializer,omitempty"` + Serializer any `json:"serializer,omitempty"` } // GetDatasetStorageFormat implements the DatasetStorageFormatClassification interface for type JSONFormat. @@ -15953,7 +16016,7 @@ type JSONReadSettings struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Compression settings. CompressionProperties CompressionReadSettingsClassification `json:"compressionProperties,omitempty"` @@ -15973,31 +16036,31 @@ type JSONSink struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // Json format settings. FormatSettings *JSONWriteSettings `json:"formatSettings,omitempty"` // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + SinkRetryCount any `json:"sinkRetryCount,omitempty"` // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + SinkRetryWait any `json:"sinkRetryWait,omitempty"` // Json store settings. StoreSettings StoreWriteSettingsClassification `json:"storeSettings,omitempty"` // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + WriteBatchSize any `json:"writeBatchSize,omitempty"` // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + WriteBatchTimeout any `json:"writeBatchTimeout,omitempty"` } // GetCopySink implements the CopySinkClassification interface for type JSONSink. @@ -16021,25 +16084,25 @@ type JSONSource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // Json format settings. FormatSettings *JSONReadSettings `json:"formatSettings,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` // Json store settings. StoreSettings StoreReadSettingsClassification `json:"storeSettings,omitempty"` @@ -16063,11 +16126,11 @@ type JSONWriteSettings struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // File pattern of JSON. This setting controls the way a collection of JSON objects will be treated. The default value is // 'setOfObjects'. It is case-sensitive. - FilePattern interface{} `json:"filePattern,omitempty"` + FilePattern any `json:"filePattern,omitempty"` } // GetFormatWriteSettings implements the FormatWriteSettingsClassification interface for type JSONWriteSettings. @@ -16087,10 +16150,10 @@ type JiraLinkedService struct { TypeProperties *JiraLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -16117,31 +16180,31 @@ func (j *JiraLinkedService) GetLinkedService() *LinkedService { // JiraLinkedServiceTypeProperties - Jira Service linked service properties. type JiraLinkedServiceTypeProperties struct { // REQUIRED; The IP address or host name of the Jira service. (e.g. jira.example.com) - Host interface{} `json:"host,omitempty"` + Host any `json:"host,omitempty"` // REQUIRED; The user name that you use to access Jira Service. - Username interface{} `json:"username,omitempty"` + Username any `json:"username,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // The password corresponding to the user name that you provided in the username field. Password SecretBaseClassification `json:"password,omitempty"` // The TCP port that the Jira server uses to listen for client connections. The default value is 443 if connecting through // HTTPS, or 8080 if connecting through HTTP. - Port interface{} `json:"port,omitempty"` + Port any `json:"port,omitempty"` // Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. - UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` + UseEncryptedEndpoints any `json:"useEncryptedEndpoints,omitempty"` // Specifies whether to require the host name in the server's certificate to match the host name of the server when connecting // over SSL. The default value is true. - UseHostVerification interface{} `json:"useHostVerification,omitempty"` + UseHostVerification any `json:"useHostVerification,omitempty"` // Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. - UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` + UsePeerVerification any `json:"usePeerVerification,omitempty"` } // JiraObjectDataset - Jira Service dataset. @@ -16153,10 +16216,10 @@ type JiraObjectDataset struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -16169,10 +16232,10 @@ type JiraObjectDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` // Properties specific to this dataset type. TypeProperties *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` @@ -16200,28 +16263,28 @@ type JiraSource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type JiraSource. @@ -16377,10 +16440,10 @@ type LinkedService struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -16422,7 +16485,7 @@ type LinkedServiceReference struct { Type *LinkedServiceReferenceType `json:"type,omitempty"` // Arguments for LinkedService. - Parameters map[string]interface{} `json:"parameters,omitempty"` + Parameters map[string]any `json:"parameters,omitempty"` } // LinkedServiceResource - Linked service resource type. @@ -16463,7 +16526,8 @@ type LinkedServicesClientGetOptions struct { IfNoneMatch *string } -// LinkedServicesClientListByFactoryOptions contains the optional parameters for the LinkedServicesClient.ListByFactory method. +// LinkedServicesClientListByFactoryOptions contains the optional parameters for the LinkedServicesClient.NewListByFactoryPager +// method. type LinkedServicesClientListByFactoryOptions struct { // placeholder for future optional parameters } @@ -16474,7 +16538,7 @@ type LogLocationSettings struct { LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` // The path to storage for storing detailed logs of activity execution. Type: string (or Expression with resultType string). - Path interface{} `json:"path,omitempty"` + Path any `json:"path,omitempty"` } // LogSettings - Log settings. @@ -16486,7 +16550,7 @@ type LogSettings struct { CopyActivityLogSettings *CopyActivityLogSettings `json:"copyActivityLogSettings,omitempty"` // Specifies whether to enable copy activity log. Type: boolean (or Expression with resultType boolean). - EnableCopyActivityLog interface{} `json:"enableCopyActivityLog,omitempty"` + EnableCopyActivityLog any `json:"enableCopyActivityLog,omitempty"` } // LogStorageSettings - (Deprecated. Please use LogSettings) Log storage settings. @@ -16495,16 +16559,16 @@ type LogStorageSettings struct { LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Specifies whether to enable reliable logging. Type: boolean (or Expression with resultType boolean). - EnableReliableLogging interface{} `json:"enableReliableLogging,omitempty"` + EnableReliableLogging any `json:"enableReliableLogging,omitempty"` // Gets or sets the log level, support: Info, Warning. Type: string (or Expression with resultType string). - LogLevel interface{} `json:"logLevel,omitempty"` + LogLevel any `json:"logLevel,omitempty"` // The path to storage for storing detailed logs of activity execution. Type: string (or Expression with resultType string). - Path interface{} `json:"path,omitempty"` + Path any `json:"path,omitempty"` } // LookupActivity - Lookup activity. @@ -16519,7 +16583,7 @@ type LookupActivity struct { TypeProperties *LookupActivityTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` @@ -16572,7 +16636,7 @@ type LookupActivityTypeProperties struct { Source CopySourceClassification `json:"source,omitempty"` // Whether to return first row or all rows. Default value is true. Type: boolean (or Expression with resultType boolean). - FirstRowOnly interface{} `json:"firstRowOnly,omitempty"` + FirstRowOnly any `json:"firstRowOnly,omitempty"` } // MagentoLinkedService - Magento server linked service. @@ -16584,10 +16648,10 @@ type MagentoLinkedService struct { TypeProperties *MagentoLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -16614,24 +16678,24 @@ func (m *MagentoLinkedService) GetLinkedService() *LinkedService { // MagentoLinkedServiceTypeProperties - Magento server linked service properties. type MagentoLinkedServiceTypeProperties struct { // REQUIRED; The URL of the Magento instance. (i.e. 192.168.222.110/magento3) - Host interface{} `json:"host,omitempty"` + Host any `json:"host,omitempty"` // The access token from Magento. AccessToken SecretBaseClassification `json:"accessToken,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. - UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` + UseEncryptedEndpoints any `json:"useEncryptedEndpoints,omitempty"` // Specifies whether to require the host name in the server's certificate to match the host name of the server when connecting // over SSL. The default value is true. - UseHostVerification interface{} `json:"useHostVerification,omitempty"` + UseHostVerification any `json:"useHostVerification,omitempty"` // Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. - UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` + UsePeerVerification any `json:"usePeerVerification,omitempty"` } // MagentoObjectDataset - Magento server dataset. @@ -16643,10 +16707,10 @@ type MagentoObjectDataset struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -16659,10 +16723,10 @@ type MagentoObjectDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` // Properties specific to this dataset type. TypeProperties *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` @@ -16690,28 +16754,28 @@ type MagentoSource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type MagentoSource. @@ -16740,6 +16804,58 @@ func (m *MagentoSource) GetTabularSource() *TabularSource { } } +// ManagedIdentityCredential - Managed identity credential. +type ManagedIdentityCredential struct { + // REQUIRED; Type of credential. + Type *string `json:"type,omitempty"` + + // OPTIONAL; Contains additional key/value pairs not defined in the schema. + AdditionalProperties map[string]any + + // List of tags that can be used for describing the Credential. + Annotations []any `json:"annotations,omitempty"` + + // Credential description. + Description *string `json:"description,omitempty"` + + // Managed identity credential properties. + TypeProperties *ManagedIdentityTypeProperties `json:"typeProperties,omitempty"` +} + +// GetCredential implements the CredentialClassification interface for type ManagedIdentityCredential. +func (m *ManagedIdentityCredential) GetCredential() *Credential { + return &Credential{ + Type: m.Type, + Description: m.Description, + Annotations: m.Annotations, + AdditionalProperties: m.AdditionalProperties, + } +} + +// ManagedIdentityCredentialResource - Credential resource type. +type ManagedIdentityCredentialResource struct { + // REQUIRED; Managed Identity Credential properties. + Properties *ManagedIdentityCredential `json:"properties,omitempty"` + + // READ-ONLY; Etag identifies change in the resource. + Etag *string `json:"etag,omitempty" azure:"ro"` + + // 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"` +} + +// ManagedIdentityTypeProperties - Managed identity type properties. +type ManagedIdentityTypeProperties struct { + // The resource id of user assigned managed identity + ResourceID *string `json:"resourceId,omitempty"` +} + // ManagedIntegrationRuntime - Managed integration runtime, including managed elastic and managed dedicated integration runtimes. type ManagedIntegrationRuntime struct { // REQUIRED; Type of integration runtime. @@ -16749,7 +16865,7 @@ type ManagedIntegrationRuntime struct { TypeProperties *ManagedIntegrationRuntimeTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Integration runtime description. Description *string `json:"description,omitempty"` @@ -16773,7 +16889,7 @@ func (m *ManagedIntegrationRuntime) GetIntegrationRuntime() *IntegrationRuntime // ManagedIntegrationRuntimeError - Error definition for managed integration runtime. type ManagedIntegrationRuntimeError struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // READ-ONLY; Error code. Code *string `json:"code,omitempty" azure:"ro"` @@ -16791,7 +16907,7 @@ type ManagedIntegrationRuntimeError struct { // ManagedIntegrationRuntimeNode - Properties of integration runtime node. type ManagedIntegrationRuntimeNode struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // The errors that occurred on this integration runtime node. Errors []*ManagedIntegrationRuntimeError `json:"errors,omitempty"` @@ -16806,7 +16922,7 @@ type ManagedIntegrationRuntimeNode struct { // ManagedIntegrationRuntimeOperationResult - Properties of managed integration runtime operation result. type ManagedIntegrationRuntimeOperationResult struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // READ-ONLY; The activity id for the operation request. ActivityID *string `json:"activityId,omitempty" azure:"ro"` @@ -16836,7 +16952,7 @@ type ManagedIntegrationRuntimeStatus struct { TypeProperties *ManagedIntegrationRuntimeStatusTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // READ-ONLY; The data factory name which the integration runtime belong to. DataFactoryName *string `json:"dataFactoryName,omitempty" azure:"ro"` @@ -16885,7 +17001,7 @@ type ManagedIntegrationRuntimeTypeProperties struct { // ManagedPrivateEndpoint - Properties of a managed private endpoint type ManagedPrivateEndpoint struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // The managed private endpoint connection state ConnectionState *ConnectionStateProperties `json:"connectionState,omitempty"` @@ -16954,7 +17070,7 @@ type ManagedPrivateEndpointsClientGetOptions struct { IfNoneMatch *string } -// ManagedPrivateEndpointsClientListByFactoryOptions contains the optional parameters for the ManagedPrivateEndpointsClient.ListByFactory +// ManagedPrivateEndpointsClientListByFactoryOptions contains the optional parameters for the ManagedPrivateEndpointsClient.NewListByFactoryPager // method. type ManagedPrivateEndpointsClientListByFactoryOptions struct { // placeholder for future optional parameters @@ -16963,7 +17079,7 @@ type ManagedPrivateEndpointsClientListByFactoryOptions struct { // ManagedVirtualNetwork - A managed Virtual Network associated with the Azure Data Factory type ManagedVirtualNetwork struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // READ-ONLY; Managed Virtual Network alias. Alias *string `json:"alias,omitempty" azure:"ro"` @@ -17023,7 +17139,7 @@ type ManagedVirtualNetworksClientGetOptions struct { IfNoneMatch *string } -// ManagedVirtualNetworksClientListByFactoryOptions contains the optional parameters for the ManagedVirtualNetworksClient.ListByFactory +// ManagedVirtualNetworksClientListByFactoryOptions contains the optional parameters for the ManagedVirtualNetworksClient.NewListByFactoryPager // method. type ManagedVirtualNetworksClientListByFactoryOptions struct { // placeholder for future optional parameters @@ -17035,7 +17151,7 @@ type MappingDataFlow struct { Type *string `json:"type,omitempty"` // List of tags that can be used for describing the data flow. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The description of the data flow. Description *string `json:"description,omitempty"` @@ -17084,10 +17200,10 @@ type MariaDBLinkedService struct { TypeProperties *MariaDBLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -17114,11 +17230,11 @@ func (m *MariaDBLinkedService) GetLinkedService() *LinkedService { // MariaDBLinkedServiceTypeProperties - MariaDB server linked service properties. type MariaDBLinkedServiceTypeProperties struct { // An ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` + ConnectionString any `json:"connectionString,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // The Azure key vault secret reference of password in connection string. Pwd *AzureKeyVaultSecretReference `json:"pwd,omitempty"` @@ -17131,28 +17247,28 @@ type MariaDBSource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type MariaDBSource. @@ -17190,10 +17306,10 @@ type MariaDBTableDataset struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -17206,10 +17322,10 @@ type MariaDBTableDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` // Properties specific to this dataset type. TypeProperties *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` @@ -17239,10 +17355,10 @@ type MarketoLinkedService struct { TypeProperties *MarketoLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -17269,27 +17385,27 @@ func (m *MarketoLinkedService) GetLinkedService() *LinkedService { // MarketoLinkedServiceTypeProperties - Marketo server linked service properties. type MarketoLinkedServiceTypeProperties struct { // REQUIRED; The client Id of your Marketo service. - ClientID interface{} `json:"clientId,omitempty"` + ClientID any `json:"clientId,omitempty"` // REQUIRED; The endpoint of the Marketo server. (i.e. 123-ABC-321.mktorest.com) - Endpoint interface{} `json:"endpoint,omitempty"` + Endpoint any `json:"endpoint,omitempty"` // The client secret of your Marketo service. ClientSecret SecretBaseClassification `json:"clientSecret,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. - UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` + UseEncryptedEndpoints any `json:"useEncryptedEndpoints,omitempty"` // Specifies whether to require the host name in the server's certificate to match the host name of the server when connecting // over SSL. The default value is true. - UseHostVerification interface{} `json:"useHostVerification,omitempty"` + UseHostVerification any `json:"useHostVerification,omitempty"` // Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. - UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` + UsePeerVerification any `json:"usePeerVerification,omitempty"` } // MarketoObjectDataset - Marketo server dataset. @@ -17301,10 +17417,10 @@ type MarketoObjectDataset struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -17317,10 +17433,10 @@ type MarketoObjectDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` // Properties specific to this dataset type. TypeProperties *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` @@ -17348,28 +17464,28 @@ type MarketoSource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type MarketoSource. @@ -17401,10 +17517,10 @@ func (m *MarketoSource) GetTabularSource() *TabularSource { // MetadataItem - Specify the name and value of custom metadata item. type MetadataItem struct { // Metadata item key name. Type: string (or Expression with resultType string). - Name interface{} `json:"name,omitempty"` + Name any `json:"name,omitempty"` // Metadata item value. Type: string (or Expression with resultType string). - Value interface{} `json:"value,omitempty"` + Value any `json:"value,omitempty"` } // MicrosoftAccessLinkedService - Microsoft Access linked service. @@ -17416,10 +17532,10 @@ type MicrosoftAccessLinkedService struct { TypeProperties *MicrosoftAccessLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -17447,24 +17563,24 @@ func (m *MicrosoftAccessLinkedService) GetLinkedService() *LinkedService { type MicrosoftAccessLinkedServiceTypeProperties struct { // REQUIRED; The non-access credential portion of the connection string as well as an optional encrypted credential. Type: // string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` + ConnectionString any `json:"connectionString,omitempty"` // Type of authentication used to connect to the Microsoft Access as ODBC data store. Possible values are: Anonymous and Basic. // Type: string (or Expression with resultType string). - AuthenticationType interface{} `json:"authenticationType,omitempty"` + AuthenticationType any `json:"authenticationType,omitempty"` // The access credential portion of the connection string specified in driver-specific property-value format. Credential SecretBaseClassification `json:"credential,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // Password for Basic authentication. Password SecretBaseClassification `json:"password,omitempty"` // User name for Basic authentication. Type: string (or Expression with resultType string). - UserName interface{} `json:"userName,omitempty"` + UserName any `json:"userName,omitempty"` } // MicrosoftAccessSink - A copy activity Microsoft Access sink. @@ -17473,28 +17589,28 @@ type MicrosoftAccessSink struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // A query to execute before starting the copy. Type: string (or Expression with resultType string). - PreCopyScript interface{} `json:"preCopyScript,omitempty"` + PreCopyScript any `json:"preCopyScript,omitempty"` // Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + SinkRetryCount any `json:"sinkRetryCount,omitempty"` // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + SinkRetryWait any `json:"sinkRetryWait,omitempty"` // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + WriteBatchSize any `json:"writeBatchSize,omitempty"` // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + WriteBatchTimeout any `json:"writeBatchTimeout,omitempty"` } // GetCopySink implements the CopySinkClassification interface for type MicrosoftAccessSink. @@ -17518,25 +17634,25 @@ type MicrosoftAccessSource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // Database query. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any `json:"query,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type MicrosoftAccessSource. @@ -17560,10 +17676,10 @@ type MicrosoftAccessTableDataset struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -17576,10 +17692,10 @@ type MicrosoftAccessTableDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` // Microsoft Access table dataset properties. TypeProperties *MicrosoftAccessTableDatasetTypeProperties `json:"typeProperties,omitempty"` @@ -17603,7 +17719,7 @@ func (m *MicrosoftAccessTableDataset) GetDataset() *Dataset { // MicrosoftAccessTableDatasetTypeProperties - Microsoft Access table dataset properties. type MicrosoftAccessTableDatasetTypeProperties struct { // The Microsoft Access table name. Type: string (or Expression with resultType string). - TableName interface{} `json:"tableName,omitempty"` + TableName any `json:"tableName,omitempty"` } // MongoDbAtlasCollectionDataset - The MongoDB Atlas database dataset. @@ -17618,10 +17734,10 @@ type MongoDbAtlasCollectionDataset struct { TypeProperties *MongoDbAtlasCollectionDatasetTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -17634,10 +17750,10 @@ type MongoDbAtlasCollectionDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` } // GetDataset implements the DatasetClassification interface for type MongoDbAtlasCollectionDataset. @@ -17658,7 +17774,7 @@ func (m *MongoDbAtlasCollectionDataset) GetDataset() *Dataset { // MongoDbAtlasCollectionDatasetTypeProperties - MongoDB Atlas database dataset properties. type MongoDbAtlasCollectionDatasetTypeProperties struct { // REQUIRED; The collection name of the MongoDB Atlas database. Type: string (or Expression with resultType string). - Collection interface{} `json:"collection,omitempty"` + Collection any `json:"collection,omitempty"` } // MongoDbAtlasLinkedService - Linked service for MongoDB Atlas data source. @@ -17670,10 +17786,10 @@ type MongoDbAtlasLinkedService struct { TypeProperties *MongoDbAtlasLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -17701,10 +17817,10 @@ func (m *MongoDbAtlasLinkedService) GetLinkedService() *LinkedService { type MongoDbAtlasLinkedServiceTypeProperties struct { // REQUIRED; The MongoDB Atlas connection string. Type: string, SecureString or AzureKeyVaultSecretReference. Type: string, // SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` + ConnectionString any `json:"connectionString,omitempty"` // REQUIRED; The name of the MongoDB Atlas database that you want to access. Type: string (or Expression with resultType string). - Database interface{} `json:"database,omitempty"` + Database any `json:"database,omitempty"` } // MongoDbAtlasSink - A copy activity MongoDB Atlas sink. @@ -17713,30 +17829,30 @@ type MongoDbAtlasSink struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + SinkRetryCount any `json:"sinkRetryCount,omitempty"` // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + SinkRetryWait any `json:"sinkRetryWait,omitempty"` // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + WriteBatchSize any `json:"writeBatchSize,omitempty"` // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + WriteBatchTimeout any `json:"writeBatchTimeout,omitempty"` // Specifies whether the document with same key to be overwritten (upsert) rather than throw exception (insert). The default // value is "insert". Type: string (or Expression with resultType string). Type: // string (or Expression with resultType string). - WriteBehavior interface{} `json:"writeBehavior,omitempty"` + WriteBehavior any `json:"writeBehavior,omitempty"` } // GetCopySink implements the CopySinkClassification interface for type MongoDbAtlasSink. @@ -17760,37 +17876,37 @@ type MongoDbAtlasSource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Specifies the number of documents to return in each batch of the response from MongoDB Atlas instance. In most cases, modifying // the batch size will not affect the user or the application. This // property's main purpose is to avoid hit the limitation of response size. Type: integer (or Expression with resultType integer). - BatchSize interface{} `json:"batchSize,omitempty"` + BatchSize any `json:"batchSize,omitempty"` // Cursor methods for Mongodb query CursorMethods *MongoDbCursorMethodsProperties `json:"cursorMethods,omitempty"` // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // Specifies selection filter using query operators. To return all documents in a collection, omit this parameter or pass // an empty document ({}). Type: string (or Expression with resultType string). - Filter interface{} `json:"filter,omitempty"` + Filter any `json:"filter,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type MongoDbAtlasSource. @@ -17817,10 +17933,10 @@ type MongoDbCollectionDataset struct { TypeProperties *MongoDbCollectionDatasetTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -17833,10 +17949,10 @@ type MongoDbCollectionDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` } // GetDataset implements the DatasetClassification interface for type MongoDbCollectionDataset. @@ -17857,30 +17973,30 @@ func (m *MongoDbCollectionDataset) GetDataset() *Dataset { // MongoDbCollectionDatasetTypeProperties - MongoDB database dataset properties. type MongoDbCollectionDatasetTypeProperties struct { // REQUIRED; The table name of the MongoDB database. Type: string (or Expression with resultType string). - CollectionName interface{} `json:"collectionName,omitempty"` + CollectionName any `json:"collectionName,omitempty"` } // MongoDbCursorMethodsProperties - Cursor methods for Mongodb query type MongoDbCursorMethodsProperties struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Specifies the maximum number of documents the server returns. limit() is analogous to the LIMIT statement in a SQL database. // Type: integer (or Expression with resultType integer). - Limit interface{} `json:"limit,omitempty"` + Limit any `json:"limit,omitempty"` // Specifies the fields to return in the documents that match the query filter. To return all fields in the matching documents, // omit this parameter. Type: string (or Expression with resultType string). - Project interface{} `json:"project,omitempty"` + Project any `json:"project,omitempty"` // Specifies the how many documents skipped and where MongoDB begins returning results. This approach may be useful in implementing // paginated results. Type: integer (or Expression with resultType // integer). - Skip interface{} `json:"skip,omitempty"` + Skip any `json:"skip,omitempty"` // Specifies the order in which the query returns matching documents. Type: string (or Expression with resultType string). // Type: string (or Expression with resultType string). - Sort interface{} `json:"sort,omitempty"` + Sort any `json:"sort,omitempty"` } // MongoDbLinkedService - Linked service for MongoDb data source. @@ -17892,10 +18008,10 @@ type MongoDbLinkedService struct { TypeProperties *MongoDbLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -17922,38 +18038,38 @@ func (m *MongoDbLinkedService) GetLinkedService() *LinkedService { // MongoDbLinkedServiceTypeProperties - MongoDB linked service properties. type MongoDbLinkedServiceTypeProperties struct { // REQUIRED; The name of the MongoDB database that you want to access. Type: string (or Expression with resultType string). - DatabaseName interface{} `json:"databaseName,omitempty"` + DatabaseName any `json:"databaseName,omitempty"` // REQUIRED; The IP address or server name of the MongoDB server. Type: string (or Expression with resultType string). - Server interface{} `json:"server,omitempty"` + Server any `json:"server,omitempty"` // Specifies whether to allow self-signed certificates from the server. The default value is false. Type: boolean (or Expression // with resultType boolean). - AllowSelfSignedServerCert interface{} `json:"allowSelfSignedServerCert,omitempty"` + AllowSelfSignedServerCert any `json:"allowSelfSignedServerCert,omitempty"` // Database to verify the username and password. Type: string (or Expression with resultType string). - AuthSource interface{} `json:"authSource,omitempty"` + AuthSource any `json:"authSource,omitempty"` // The authentication type to be used to connect to the MongoDB database. AuthenticationType *MongoDbAuthenticationType `json:"authenticationType,omitempty"` // Specifies whether the connections to the server are encrypted using SSL. The default value is false. Type: boolean (or // Expression with resultType boolean). - EnableSSL interface{} `json:"enableSsl,omitempty"` + EnableSSL any `json:"enableSsl,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // Password for authentication. Password SecretBaseClassification `json:"password,omitempty"` // The TCP port number that the MongoDB server uses to listen for client connections. The default value is 27017. Type: integer // (or Expression with resultType integer), minimum: 0. - Port interface{} `json:"port,omitempty"` + Port any `json:"port,omitempty"` // Username for authentication. Type: string (or Expression with resultType string). - Username interface{} `json:"username,omitempty"` + Username any `json:"username,omitempty"` } // MongoDbSource - A copy activity source for a MongoDB database. @@ -17963,25 +18079,25 @@ type MongoDbSource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // Database query. Should be a SQL-92 query expression. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any `json:"query,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type MongoDbSource. @@ -18008,10 +18124,10 @@ type MongoDbV2CollectionDataset struct { TypeProperties *MongoDbV2CollectionDatasetTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -18024,10 +18140,10 @@ type MongoDbV2CollectionDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` } // GetDataset implements the DatasetClassification interface for type MongoDbV2CollectionDataset. @@ -18048,7 +18164,7 @@ func (m *MongoDbV2CollectionDataset) GetDataset() *Dataset { // MongoDbV2CollectionDatasetTypeProperties - MongoDB database dataset properties. type MongoDbV2CollectionDatasetTypeProperties struct { // REQUIRED; The collection name of the MongoDB database. Type: string (or Expression with resultType string). - Collection interface{} `json:"collection,omitempty"` + Collection any `json:"collection,omitempty"` } // MongoDbV2LinkedService - Linked service for MongoDB data source. @@ -18060,10 +18176,10 @@ type MongoDbV2LinkedService struct { TypeProperties *MongoDbV2LinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -18091,10 +18207,10 @@ func (m *MongoDbV2LinkedService) GetLinkedService() *LinkedService { type MongoDbV2LinkedServiceTypeProperties struct { // REQUIRED; The MongoDB connection string. Type: string, SecureString or AzureKeyVaultSecretReference. Type: string, SecureString // or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` + ConnectionString any `json:"connectionString,omitempty"` // REQUIRED; The name of the MongoDB database that you want to access. Type: string (or Expression with resultType string). - Database interface{} `json:"database,omitempty"` + Database any `json:"database,omitempty"` } // MongoDbV2Sink - A copy activity MongoDB sink. @@ -18103,30 +18219,30 @@ type MongoDbV2Sink struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + SinkRetryCount any `json:"sinkRetryCount,omitempty"` // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + SinkRetryWait any `json:"sinkRetryWait,omitempty"` // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + WriteBatchSize any `json:"writeBatchSize,omitempty"` // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + WriteBatchTimeout any `json:"writeBatchTimeout,omitempty"` // Specifies whether the document with same key to be overwritten (upsert) rather than throw exception (insert). The default // value is "insert". Type: string (or Expression with resultType string). Type: // string (or Expression with resultType string). - WriteBehavior interface{} `json:"writeBehavior,omitempty"` + WriteBehavior any `json:"writeBehavior,omitempty"` } // GetCopySink implements the CopySinkClassification interface for type MongoDbV2Sink. @@ -18150,37 +18266,37 @@ type MongoDbV2Source struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Specifies the number of documents to return in each batch of the response from MongoDB instance. In most cases, modifying // the batch size will not affect the user or the application. This property's // main purpose is to avoid hit the limitation of response size. Type: integer (or Expression with resultType integer). - BatchSize interface{} `json:"batchSize,omitempty"` + BatchSize any `json:"batchSize,omitempty"` // Cursor methods for Mongodb query CursorMethods *MongoDbCursorMethodsProperties `json:"cursorMethods,omitempty"` // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // Specifies selection filter using query operators. To return all documents in a collection, omit this parameter or pass // an empty document ({}). Type: string (or Expression with resultType string). - Filter interface{} `json:"filter,omitempty"` + Filter any `json:"filter,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type MongoDbV2Source. @@ -18211,10 +18327,10 @@ type MultiplePipelineTrigger struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the trigger. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Trigger description. Description *string `json:"description,omitempty"` @@ -18249,10 +18365,10 @@ type MySQLLinkedService struct { TypeProperties *MySQLLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -18279,11 +18395,11 @@ func (m *MySQLLinkedService) GetLinkedService() *LinkedService { // MySQLLinkedServiceTypeProperties - MySQL linked service properties. type MySQLLinkedServiceTypeProperties struct { // REQUIRED; The connection string. - ConnectionString interface{} `json:"connectionString,omitempty"` + ConnectionString any `json:"connectionString,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // The Azure key vault secret reference of password in connection string. Password *AzureKeyVaultSecretReference `json:"password,omitempty"` @@ -18296,28 +18412,28 @@ type MySQLSource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // Database query. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type MySQLSource. @@ -18355,10 +18471,10 @@ type MySQLTableDataset struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -18371,10 +18487,10 @@ type MySQLTableDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` // MySQL table dataset properties. TypeProperties *MySQLTableDatasetTypeProperties `json:"typeProperties,omitempty"` @@ -18398,7 +18514,7 @@ func (m *MySQLTableDataset) GetDataset() *Dataset { // MySQLTableDatasetTypeProperties - MySql table dataset properties. type MySQLTableDatasetTypeProperties struct { // The MySQL table name. Type: string (or Expression with resultType string). - TableName interface{} `json:"tableName,omitempty"` + TableName any `json:"tableName,omitempty"` } // NetezzaLinkedService - Netezza linked service. @@ -18410,10 +18526,10 @@ type NetezzaLinkedService struct { TypeProperties *NetezzaLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -18440,11 +18556,11 @@ func (n *NetezzaLinkedService) GetLinkedService() *LinkedService { // NetezzaLinkedServiceTypeProperties - Netezza linked service properties. type NetezzaLinkedServiceTypeProperties struct { // An ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` + ConnectionString any `json:"connectionString,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // The Azure key vault secret reference of password in connection string. Pwd *AzureKeyVaultSecretReference `json:"pwd,omitempty"` @@ -18454,15 +18570,15 @@ type NetezzaLinkedServiceTypeProperties struct { type NetezzaPartitionSettings struct { // The name of the column in integer type that will be used for proceeding range partitioning. Type: string (or Expression // with resultType string). - PartitionColumnName interface{} `json:"partitionColumnName,omitempty"` + PartitionColumnName any `json:"partitionColumnName,omitempty"` // The minimum value of column specified in partitionColumnName that will be used for proceeding range partitioning. Type: // string (or Expression with resultType string). - PartitionLowerBound interface{} `json:"partitionLowerBound,omitempty"` + PartitionLowerBound any `json:"partitionLowerBound,omitempty"` // The maximum value of column specified in partitionColumnName that will be used for proceeding range partitioning. Type: // string (or Expression with resultType string). - PartitionUpperBound interface{} `json:"partitionUpperBound,omitempty"` + PartitionUpperBound any `json:"partitionUpperBound,omitempty"` } // NetezzaSource - A copy activity Netezza source. @@ -18472,34 +18588,34 @@ type NetezzaSource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // The partition mechanism that will be used for Netezza read in parallel. Possible values include: "None", "DataSlice", "DynamicRange". - PartitionOption interface{} `json:"partitionOption,omitempty"` + PartitionOption any `json:"partitionOption,omitempty"` // The settings that will be leveraged for Netezza source partitioning. PartitionSettings *NetezzaPartitionSettings `json:"partitionSettings,omitempty"` // A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type NetezzaSource. @@ -18537,10 +18653,10 @@ type NetezzaTableDataset struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -18553,10 +18669,10 @@ type NetezzaTableDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` // Properties specific to this dataset type. TypeProperties *NetezzaTableDatasetTypeProperties `json:"typeProperties,omitempty"` @@ -18580,13 +18696,13 @@ func (n *NetezzaTableDataset) GetDataset() *Dataset { // NetezzaTableDatasetTypeProperties - Netezza dataset properties. type NetezzaTableDatasetTypeProperties struct { // The schema name of the Netezza. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // The table name of the Netezza. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` + Table any `json:"table,omitempty"` // This property will be retired. Please consider using schema + table properties instead. - TableName interface{} `json:"tableName,omitempty"` + TableName any `json:"tableName,omitempty"` } // NotebookParameter - Notebook parameter. @@ -18595,7 +18711,7 @@ type NotebookParameter struct { Type *NotebookParameterType `json:"type,omitempty"` // Notebook parameter value. Type: string (or Expression with resultType string). - Value interface{} `json:"value,omitempty"` + Value any `json:"value,omitempty"` } // ODataLinkedService - Open Data Protocol (OData) linked service. @@ -18607,10 +18723,10 @@ type ODataLinkedService struct { TypeProperties *ODataLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -18637,17 +18753,17 @@ func (o *ODataLinkedService) GetLinkedService() *LinkedService { // ODataLinkedServiceTypeProperties - OData linked service properties. type ODataLinkedServiceTypeProperties struct { // REQUIRED; The URL of the OData service endpoint. Type: string (or Expression with resultType string). - URL interface{} `json:"url,omitempty"` + URL any `json:"url,omitempty"` // Specify the resource you are requesting authorization to use Directory. Type: string (or Expression with resultType string). - AADResourceID interface{} `json:"aadResourceId,omitempty"` + AADResourceID any `json:"aadResourceId,omitempty"` // Specify the credential type (key or cert) is used for service principal. AADServicePrincipalCredentialType *ODataAADServicePrincipalCredentialType `json:"aadServicePrincipalCredentialType,omitempty"` // The additional HTTP headers in the request to RESTful API used for authorization. Type: object (or Expression with resultType // object). - AuthHeaders interface{} `json:"authHeaders,omitempty"` + AuthHeaders any `json:"authHeaders,omitempty"` // Type of authentication used to connect to the OData service. AuthenticationType *ODataAuthenticationType `json:"authenticationType,omitempty"` @@ -18655,11 +18771,11 @@ type ODataLinkedServiceTypeProperties struct { // Indicates the azure cloud type of the service principle auth. Allowed values are AzurePublic, AzureChina, AzureUsGovernment, // AzureGermany. Default value is the data factory regions’ cloud type. Type: // string (or Expression with resultType string). - AzureCloudType interface{} `json:"azureCloudType,omitempty"` + AzureCloudType any `json:"azureCloudType,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // Password of the OData service. Password SecretBaseClassification `json:"password,omitempty"` @@ -18674,7 +18790,7 @@ type ODataLinkedServiceTypeProperties struct { // Specify the application id of your application registered in Azure Active Directory. Type: string (or Expression with resultType // string). - ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` + ServicePrincipalID any `json:"servicePrincipalId,omitempty"` // Specify the secret of your application registered in Azure Active Directory. Type: string (or Expression with resultType // string). @@ -18682,10 +18798,10 @@ type ODataLinkedServiceTypeProperties struct { // Specify the tenant information (domain name or tenant ID) under which your application resides. Type: string (or Expression // with resultType string). - Tenant interface{} `json:"tenant,omitempty"` + Tenant any `json:"tenant,omitempty"` // User name of the OData service. Type: string (or Expression with resultType string). - UserName interface{} `json:"userName,omitempty"` + UserName any `json:"userName,omitempty"` } // ODataResourceDataset - The Open Data Protocol (OData) resource dataset. @@ -18697,10 +18813,10 @@ type ODataResourceDataset struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -18713,10 +18829,10 @@ type ODataResourceDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` // OData dataset properties. TypeProperties *ODataResourceDatasetTypeProperties `json:"typeProperties,omitempty"` @@ -18740,7 +18856,7 @@ func (o *ODataResourceDataset) GetDataset() *Dataset { // ODataResourceDatasetTypeProperties - OData dataset properties. type ODataResourceDatasetTypeProperties struct { // The OData resource path. Type: string (or Expression with resultType string). - Path interface{} `json:"path,omitempty"` + Path any `json:"path,omitempty"` } // ODataSource - A copy activity source for OData source. @@ -18750,30 +18866,30 @@ type ODataSource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The timeout (TimeSpan) to get an HTTP response. It is the timeout to get a response, not the timeout to read response data. // Default value: 00:05:00. Type: string (or Expression with resultType // string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - HTTPRequestTimeout interface{} `json:"httpRequestTimeout,omitempty"` + HTTPRequestTimeout any `json:"httpRequestTimeout,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // OData query. For example, "$top=1". Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any `json:"query,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type ODataSource. @@ -18797,10 +18913,10 @@ type OdbcLinkedService struct { TypeProperties *OdbcLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -18828,24 +18944,24 @@ func (o *OdbcLinkedService) GetLinkedService() *LinkedService { type OdbcLinkedServiceTypeProperties struct { // REQUIRED; The non-access credential portion of the connection string as well as an optional encrypted credential. Type: // string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` + ConnectionString any `json:"connectionString,omitempty"` // Type of authentication used to connect to the ODBC data store. Possible values are: Anonymous and Basic. Type: string (or // Expression with resultType string). - AuthenticationType interface{} `json:"authenticationType,omitempty"` + AuthenticationType any `json:"authenticationType,omitempty"` // The access credential portion of the connection string specified in driver-specific property-value format. Credential SecretBaseClassification `json:"credential,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // Password for Basic authentication. Password SecretBaseClassification `json:"password,omitempty"` // User name for Basic authentication. Type: string (or Expression with resultType string). - UserName interface{} `json:"userName,omitempty"` + UserName any `json:"userName,omitempty"` } // OdbcSink - A copy activity ODBC sink. @@ -18854,28 +18970,28 @@ type OdbcSink struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // A query to execute before starting the copy. Type: string (or Expression with resultType string). - PreCopyScript interface{} `json:"preCopyScript,omitempty"` + PreCopyScript any `json:"preCopyScript,omitempty"` // Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + SinkRetryCount any `json:"sinkRetryCount,omitempty"` // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + SinkRetryWait any `json:"sinkRetryWait,omitempty"` // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + WriteBatchSize any `json:"writeBatchSize,omitempty"` // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + WriteBatchTimeout any `json:"writeBatchTimeout,omitempty"` } // GetCopySink implements the CopySinkClassification interface for type OdbcSink. @@ -18899,28 +19015,28 @@ type OdbcSource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // Database query. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type OdbcSource. @@ -18958,10 +19074,10 @@ type OdbcTableDataset struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -18974,10 +19090,10 @@ type OdbcTableDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` // ODBC table dataset properties. TypeProperties *OdbcTableDatasetTypeProperties `json:"typeProperties,omitempty"` @@ -19001,7 +19117,7 @@ func (o *OdbcTableDataset) GetDataset() *Dataset { // OdbcTableDatasetTypeProperties - ODBC table dataset properties. type OdbcTableDatasetTypeProperties struct { // The ODBC table name. Type: string (or Expression with resultType string). - TableName interface{} `json:"tableName,omitempty"` + TableName any `json:"tableName,omitempty"` } // Office365Dataset - The Office365 account. @@ -19016,10 +19132,10 @@ type Office365Dataset struct { TypeProperties *Office365DatasetTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -19032,10 +19148,10 @@ type Office365Dataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` } // GetDataset implements the DatasetClassification interface for type Office365Dataset. @@ -19056,11 +19172,11 @@ func (o *Office365Dataset) GetDataset() *Dataset { // Office365DatasetTypeProperties - Office365 dataset properties. type Office365DatasetTypeProperties struct { // REQUIRED; Name of the dataset to extract from Office 365. Type: string (or Expression with resultType string). - TableName interface{} `json:"tableName,omitempty"` + TableName any `json:"tableName,omitempty"` // A predicate expression that can be used to filter the specific rows to extract from Office 365. Type: string (or Expression // with resultType string). - Predicate interface{} `json:"predicate,omitempty"` + Predicate any `json:"predicate,omitempty"` } // Office365LinkedService - Office365 linked service. @@ -19072,10 +19188,10 @@ type Office365LinkedService struct { TypeProperties *Office365LinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -19102,21 +19218,21 @@ func (o *Office365LinkedService) GetLinkedService() *LinkedService { // Office365LinkedServiceTypeProperties - Office365 linked service properties. type Office365LinkedServiceTypeProperties struct { // REQUIRED; Azure tenant ID to which the Office 365 account belongs. Type: string (or Expression with resultType string). - Office365TenantID interface{} `json:"office365TenantId,omitempty"` + Office365TenantID any `json:"office365TenantId,omitempty"` // REQUIRED; Specify the application's client ID. Type: string (or Expression with resultType string). - ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` + ServicePrincipalID any `json:"servicePrincipalId,omitempty"` // REQUIRED; Specify the application's key. ServicePrincipalKey SecretBaseClassification `json:"servicePrincipalKey,omitempty"` // REQUIRED; Specify the tenant information under which your Azure AD web application resides. Type: string (or Expression // with resultType string). - ServicePrincipalTenantID interface{} `json:"servicePrincipalTenantId,omitempty"` + ServicePrincipalTenantID any `json:"servicePrincipalTenantId,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` } // Office365Source - A copy activity source for an Office 365 service. @@ -19125,38 +19241,38 @@ type Office365Source struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // The groups containing all the users. Type: array of strings (or Expression with resultType array of strings). - AllowedGroups interface{} `json:"allowedGroups,omitempty"` + AllowedGroups any `json:"allowedGroups,omitempty"` // The Column to apply the and . Type: string (or Expression with resultType string). - DateFilterColumn interface{} `json:"dateFilterColumn,omitempty"` + DateFilterColumn any `json:"dateFilterColumn,omitempty"` // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // End time of the requested range for this dataset. Type: string (or Expression with resultType string). - EndTime interface{} `json:"endTime,omitempty"` + EndTime any `json:"endTime,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // The columns to be read out from the Office 365 table. Type: array of objects (or Expression with resultType array of objects). // Example: [ { "name": "Id" }, { "name": "CreatedDateTime" } ] - OutputColumns interface{} `json:"outputColumns,omitempty"` + OutputColumns any `json:"outputColumns,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` // Start time of the requested range for this dataset. Type: string (or Expression with resultType string). - StartTime interface{} `json:"startTime,omitempty"` + StartTime any `json:"startTime,omitempty"` // The user scope uri. Type: string (or Expression with resultType string). - UserScopeFilterURI interface{} `json:"userScopeFilterUri,omitempty"` + UserScopeFilterURI any `json:"userScopeFilterUri,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type Office365Source. @@ -19291,7 +19407,7 @@ type OperationServiceSpecification struct { MetricSpecifications []*OperationMetricSpecification `json:"metricSpecifications,omitempty"` } -// OperationsClientListOptions contains the optional parameters for the OperationsClient.List method. +// OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method. type OperationsClientListOptions struct { // placeholder for future optional parameters } @@ -19305,10 +19421,10 @@ type OracleCloudStorageLinkedService struct { TypeProperties *OracleCloudStorageLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -19336,11 +19452,11 @@ func (o *OracleCloudStorageLinkedService) GetLinkedService() *LinkedService { type OracleCloudStorageLinkedServiceTypeProperties struct { // The access key identifier of the Oracle Cloud Storage Identity and Access Management (IAM) user. Type: string (or Expression // with resultType string). - AccessKeyID interface{} `json:"accessKeyId,omitempty"` + AccessKeyID any `json:"accessKeyId,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // The secret access key of the Oracle Cloud Storage Identity and Access Management (IAM) user. SecretAccessKey SecretBaseClassification `json:"secretAccessKey,omitempty"` @@ -19348,7 +19464,7 @@ type OracleCloudStorageLinkedServiceTypeProperties struct { // This value specifies the endpoint to access with the Oracle Cloud Storage Connector. This is an optional property; change // it only if you want to try a different service endpoint or want to switch // between https and http. Type: string (or Expression with resultType string). - ServiceURL interface{} `json:"serviceUrl,omitempty"` + ServiceURL any `json:"serviceUrl,omitempty"` } // OracleCloudStorageLocation - The location of Oracle Cloud Storage dataset. @@ -19357,19 +19473,19 @@ type OracleCloudStorageLocation struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Specify the bucketName of Oracle Cloud Storage. Type: string (or Expression with resultType string) - BucketName interface{} `json:"bucketName,omitempty"` + BucketName any `json:"bucketName,omitempty"` // Specify the file name of dataset. Type: string (or Expression with resultType string). - FileName interface{} `json:"fileName,omitempty"` + FileName any `json:"fileName,omitempty"` // Specify the folder path of dataset. Type: string (or Expression with resultType string) - FolderPath interface{} `json:"folderPath,omitempty"` + FolderPath any `json:"folderPath,omitempty"` // Specify the version of Oracle Cloud Storage. Type: string (or Expression with resultType string). - Version interface{} `json:"version,omitempty"` + Version any `json:"version,omitempty"` } // GetDatasetLocation implements the DatasetLocationClassification interface for type OracleCloudStorageLocation. @@ -19388,46 +19504,46 @@ type OracleCloudStorageReadSettings struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Indicates whether the source files need to be deleted after copy completion. Default is false. Type: boolean (or Expression // with resultType boolean). - DeleteFilesAfterCompletion interface{} `json:"deleteFilesAfterCompletion,omitempty"` + DeleteFilesAfterCompletion any `json:"deleteFilesAfterCompletion,omitempty"` // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // Indicates whether to enable partition discovery. EnablePartitionDiscovery *bool `json:"enablePartitionDiscovery,omitempty"` // Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. // Type: string (or Expression with resultType string). - FileListPath interface{} `json:"fileListPath,omitempty"` + FileListPath any `json:"fileListPath,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // The end of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` + ModifiedDatetimeEnd any `json:"modifiedDatetimeEnd,omitempty"` // The start of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` + ModifiedDatetimeStart any `json:"modifiedDatetimeStart,omitempty"` // Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). - PartitionRootPath interface{} `json:"partitionRootPath,omitempty"` + PartitionRootPath any `json:"partitionRootPath,omitempty"` // The prefix filter for the Oracle Cloud Storage object name. Type: string (or Expression with resultType string). - Prefix interface{} `json:"prefix,omitempty"` + Prefix any `json:"prefix,omitempty"` // If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType // boolean). - Recursive interface{} `json:"recursive,omitempty"` + Recursive any `json:"recursive,omitempty"` // Oracle Cloud Storage wildcardFileName. Type: string (or Expression with resultType string). - WildcardFileName interface{} `json:"wildcardFileName,omitempty"` + WildcardFileName any `json:"wildcardFileName,omitempty"` // Oracle Cloud Storage wildcardFolderPath. Type: string (or Expression with resultType string). - WildcardFolderPath interface{} `json:"wildcardFolderPath,omitempty"` + WildcardFolderPath any `json:"wildcardFolderPath,omitempty"` } // GetStoreReadSettings implements the StoreReadSettingsClassification interface for type OracleCloudStorageReadSettings. @@ -19449,10 +19565,10 @@ type OracleLinkedService struct { TypeProperties *OracleLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -19479,11 +19595,11 @@ func (o *OracleLinkedService) GetLinkedService() *LinkedService { // OracleLinkedServiceTypeProperties - Oracle database linked service properties. type OracleLinkedServiceTypeProperties struct { // REQUIRED; The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` + ConnectionString any `json:"connectionString,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // The Azure key vault secret reference of password in connection string. Password *AzureKeyVaultSecretReference `json:"password,omitempty"` @@ -19493,18 +19609,18 @@ type OracleLinkedServiceTypeProperties struct { type OraclePartitionSettings struct { // The name of the column in integer type that will be used for proceeding range partitioning. Type: string (or Expression // with resultType string). - PartitionColumnName interface{} `json:"partitionColumnName,omitempty"` + PartitionColumnName any `json:"partitionColumnName,omitempty"` // The minimum value of column specified in partitionColumnName that will be used for proceeding range partitioning. Type: // string (or Expression with resultType string). - PartitionLowerBound interface{} `json:"partitionLowerBound,omitempty"` + PartitionLowerBound any `json:"partitionLowerBound,omitempty"` // Names of the physical partitions of Oracle table. - PartitionNames interface{} `json:"partitionNames,omitempty"` + PartitionNames any `json:"partitionNames,omitempty"` // The maximum value of column specified in partitionColumnName that will be used for proceeding range partitioning. Type: // string (or Expression with resultType string). - PartitionUpperBound interface{} `json:"partitionUpperBound,omitempty"` + PartitionUpperBound any `json:"partitionUpperBound,omitempty"` } // OracleServiceCloudLinkedService - Oracle Service Cloud linked service. @@ -19516,10 +19632,10 @@ type OracleServiceCloudLinkedService struct { TypeProperties *OracleServiceCloudLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -19546,30 +19662,30 @@ func (o *OracleServiceCloudLinkedService) GetLinkedService() *LinkedService { // OracleServiceCloudLinkedServiceTypeProperties - Oracle Service Cloud linked service properties. type OracleServiceCloudLinkedServiceTypeProperties struct { // REQUIRED; The URL of the Oracle Service Cloud instance. - Host interface{} `json:"host,omitempty"` + Host any `json:"host,omitempty"` // REQUIRED; The password corresponding to the user name that you provided in the username key. Password SecretBaseClassification `json:"password,omitempty"` // REQUIRED; The user name that you use to access Oracle Service Cloud server. - Username interface{} `json:"username,omitempty"` + Username any `json:"username,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. Type: boolean (or Expression // with resultType boolean). - UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` + UseEncryptedEndpoints any `json:"useEncryptedEndpoints,omitempty"` // Specifies whether to require the host name in the server's certificate to match the host name of the server when connecting // over SSL. The default value is true. Type: boolean (or Expression with // resultType boolean). - UseHostVerification interface{} `json:"useHostVerification,omitempty"` + UseHostVerification any `json:"useHostVerification,omitempty"` // Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. Type: boolean // (or Expression with resultType boolean). - UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` + UsePeerVerification any `json:"usePeerVerification,omitempty"` } // OracleServiceCloudObjectDataset - Oracle Service Cloud dataset. @@ -19581,10 +19697,10 @@ type OracleServiceCloudObjectDataset struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -19597,10 +19713,10 @@ type OracleServiceCloudObjectDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` // Properties specific to this dataset type. TypeProperties *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` @@ -19628,28 +19744,28 @@ type OracleServiceCloudSource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type OracleServiceCloudSource. @@ -19684,28 +19800,28 @@ type OracleSink struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // SQL pre-copy script. Type: string (or Expression with resultType string). - PreCopyScript interface{} `json:"preCopyScript,omitempty"` + PreCopyScript any `json:"preCopyScript,omitempty"` // Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + SinkRetryCount any `json:"sinkRetryCount,omitempty"` // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + SinkRetryWait any `json:"sinkRetryWait,omitempty"` // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + WriteBatchSize any `json:"writeBatchSize,omitempty"` // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + WriteBatchTimeout any `json:"writeBatchTimeout,omitempty"` } // GetCopySink implements the CopySinkClassification interface for type OracleSink. @@ -19729,35 +19845,35 @@ type OracleSource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // Oracle reader query. Type: string (or Expression with resultType string). - OracleReaderQuery interface{} `json:"oracleReaderQuery,omitempty"` + OracleReaderQuery any `json:"oracleReaderQuery,omitempty"` // The partition mechanism that will be used for Oracle read in parallel. Possible values include: "None", "PhysicalPartitionsOfTable", // "DynamicRange". - PartitionOption interface{} `json:"partitionOption,omitempty"` + PartitionOption any `json:"partitionOption,omitempty"` // The settings that will be leveraged for Oracle source partitioning. PartitionSettings *OraclePartitionSettings `json:"partitionSettings,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type OracleSource. @@ -19781,10 +19897,10 @@ type OracleTableDataset struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -19797,10 +19913,10 @@ type OracleTableDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` // On-premises Oracle dataset properties. TypeProperties *OracleTableDatasetTypeProperties `json:"typeProperties,omitempty"` @@ -19824,13 +19940,13 @@ func (o *OracleTableDataset) GetDataset() *Dataset { // OracleTableDatasetTypeProperties - On-premises Oracle dataset properties. type OracleTableDatasetTypeProperties struct { // The schema name of the on-premises Oracle database. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // The table name of the on-premises Oracle database. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` + Table any `json:"table,omitempty"` // This property will be retired. Please consider using schema + table properties instead. - TableName interface{} `json:"tableName,omitempty"` + TableName any `json:"tableName,omitempty"` } // OrcDataset - ORC dataset. @@ -19842,10 +19958,10 @@ type OrcDataset struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -19858,10 +19974,10 @@ type OrcDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` // ORC dataset properties. TypeProperties *OrcDatasetTypeProperties `json:"typeProperties,omitempty"` @@ -19888,7 +20004,7 @@ type OrcDatasetTypeProperties struct { Location DatasetLocationClassification `json:"location,omitempty"` // The data orcCompressionCodec. Type: string (or Expression with resultType string). - OrcCompressionCodec interface{} `json:"orcCompressionCodec,omitempty"` + OrcCompressionCodec any `json:"orcCompressionCodec,omitempty"` } // OrcFormat - The data stored in Optimized Row Columnar (ORC) format. @@ -19897,13 +20013,13 @@ type OrcFormat struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Deserializer. Type: string (or Expression with resultType string). - Deserializer interface{} `json:"deserializer,omitempty"` + Deserializer any `json:"deserializer,omitempty"` // Serializer. Type: string (or Expression with resultType string). - Serializer interface{} `json:"serializer,omitempty"` + Serializer any `json:"serializer,omitempty"` } // GetDatasetStorageFormat implements the DatasetStorageFormatClassification interface for type OrcFormat. @@ -19922,31 +20038,31 @@ type OrcSink struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // ORC format settings. FormatSettings *OrcWriteSettings `json:"formatSettings,omitempty"` // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + SinkRetryCount any `json:"sinkRetryCount,omitempty"` // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + SinkRetryWait any `json:"sinkRetryWait,omitempty"` // ORC store settings. StoreSettings StoreWriteSettingsClassification `json:"storeSettings,omitempty"` // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + WriteBatchSize any `json:"writeBatchSize,omitempty"` // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + WriteBatchTimeout any `json:"writeBatchTimeout,omitempty"` } // GetCopySink implements the CopySinkClassification interface for type OrcSink. @@ -19970,22 +20086,22 @@ type OrcSource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` // ORC store settings. StoreSettings StoreReadSettingsClassification `json:"storeSettings,omitempty"` @@ -20009,15 +20125,15 @@ type OrcWriteSettings struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Specifies the file name pattern _. when copy from non-file based store without partitionOptions. Type: string (or Expression // with resultType string). - FileNamePrefix interface{} `json:"fileNamePrefix,omitempty"` + FileNamePrefix any `json:"fileNamePrefix,omitempty"` // Limit the written file's row count to be smaller than or equal to the specified count. Type: integer (or Expression with // resultType integer). - MaxRowsPerFile interface{} `json:"maxRowsPerFile,omitempty"` + MaxRowsPerFile any `json:"maxRowsPerFile,omitempty"` } // GetFormatWriteSettings implements the FormatWriteSettingsClassification interface for type OrcWriteSettings. @@ -20043,7 +20159,7 @@ type ParameterSpecification struct { Type *ParameterType `json:"type,omitempty"` // Default value of parameter. - DefaultValue interface{} `json:"defaultValue,omitempty"` + DefaultValue any `json:"defaultValue,omitempty"` } // ParquetDataset - Parquet dataset. @@ -20055,10 +20171,10 @@ type ParquetDataset struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -20071,10 +20187,10 @@ type ParquetDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` // Parquet dataset properties. TypeProperties *ParquetDatasetTypeProperties `json:"typeProperties,omitempty"` @@ -20101,7 +20217,7 @@ type ParquetDatasetTypeProperties struct { Location DatasetLocationClassification `json:"location,omitempty"` // The data compressionCodec. Type: string (or Expression with resultType string). - CompressionCodec interface{} `json:"compressionCodec,omitempty"` + CompressionCodec any `json:"compressionCodec,omitempty"` } // ParquetFormat - The data stored in Parquet format. @@ -20110,13 +20226,13 @@ type ParquetFormat struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Deserializer. Type: string (or Expression with resultType string). - Deserializer interface{} `json:"deserializer,omitempty"` + Deserializer any `json:"deserializer,omitempty"` // Serializer. Type: string (or Expression with resultType string). - Serializer interface{} `json:"serializer,omitempty"` + Serializer any `json:"serializer,omitempty"` } // GetDatasetStorageFormat implements the DatasetStorageFormatClassification interface for type ParquetFormat. @@ -20135,31 +20251,31 @@ type ParquetSink struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // Parquet format settings. FormatSettings *ParquetWriteSettings `json:"formatSettings,omitempty"` // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + SinkRetryCount any `json:"sinkRetryCount,omitempty"` // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + SinkRetryWait any `json:"sinkRetryWait,omitempty"` // Parquet store settings. StoreSettings StoreWriteSettingsClassification `json:"storeSettings,omitempty"` // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + WriteBatchSize any `json:"writeBatchSize,omitempty"` // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + WriteBatchTimeout any `json:"writeBatchTimeout,omitempty"` } // GetCopySink implements the CopySinkClassification interface for type ParquetSink. @@ -20183,22 +20299,22 @@ type ParquetSource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` // Parquet store settings. StoreSettings StoreReadSettingsClassification `json:"storeSettings,omitempty"` @@ -20222,15 +20338,15 @@ type ParquetWriteSettings struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Specifies the file name pattern _. when copy from non-file based store without partitionOptions. Type: string (or Expression // with resultType string). - FileNamePrefix interface{} `json:"fileNamePrefix,omitempty"` + FileNamePrefix any `json:"fileNamePrefix,omitempty"` // Limit the written file's row count to be smaller than or equal to the specified count. Type: integer (or Expression with // resultType integer). - MaxRowsPerFile interface{} `json:"maxRowsPerFile,omitempty"` + MaxRowsPerFile any `json:"maxRowsPerFile,omitempty"` } // GetFormatWriteSettings implements the FormatWriteSettingsClassification interface for type ParquetWriteSettings. @@ -20250,10 +20366,10 @@ type PaypalLinkedService struct { TypeProperties *PaypalLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -20280,27 +20396,27 @@ func (p *PaypalLinkedService) GetLinkedService() *LinkedService { // PaypalLinkedServiceTypeProperties - Paypal Service linked service properties. type PaypalLinkedServiceTypeProperties struct { // REQUIRED; The client ID associated with your PayPal application. - ClientID interface{} `json:"clientId,omitempty"` + ClientID any `json:"clientId,omitempty"` // REQUIRED; The URL of the PayPal instance. (i.e. api.sandbox.paypal.com) - Host interface{} `json:"host,omitempty"` + Host any `json:"host,omitempty"` // The client secret associated with your PayPal application. ClientSecret SecretBaseClassification `json:"clientSecret,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. - UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` + UseEncryptedEndpoints any `json:"useEncryptedEndpoints,omitempty"` // Specifies whether to require the host name in the server's certificate to match the host name of the server when connecting // over SSL. The default value is true. - UseHostVerification interface{} `json:"useHostVerification,omitempty"` + UseHostVerification any `json:"useHostVerification,omitempty"` // Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. - UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` + UsePeerVerification any `json:"usePeerVerification,omitempty"` } // PaypalObjectDataset - Paypal Service dataset. @@ -20312,10 +20428,10 @@ type PaypalObjectDataset struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -20328,10 +20444,10 @@ type PaypalObjectDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` // Properties specific to this dataset type. TypeProperties *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` @@ -20359,28 +20475,28 @@ type PaypalSource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type PaypalSource. @@ -20412,13 +20528,13 @@ func (p *PaypalSource) GetTabularSource() *TabularSource { // PhoenixDatasetTypeProperties - Phoenix Dataset Properties type PhoenixDatasetTypeProperties struct { // The schema name of the Phoenix. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // The table name of the Phoenix. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` + Table any `json:"table,omitempty"` // This property will be retired. Please consider using schema + table properties instead. - TableName interface{} `json:"tableName,omitempty"` + TableName any `json:"tableName,omitempty"` } // PhoenixLinkedService - Phoenix server linked service. @@ -20430,10 +20546,10 @@ type PhoenixLinkedService struct { TypeProperties *PhoenixLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -20463,43 +20579,43 @@ type PhoenixLinkedServiceTypeProperties struct { AuthenticationType *PhoenixAuthenticationType `json:"authenticationType,omitempty"` // REQUIRED; The IP address or host name of the Phoenix server. (i.e. 192.168.222.160) - Host interface{} `json:"host,omitempty"` + Host any `json:"host,omitempty"` // Specifies whether to require a CA-issued SSL certificate name to match the host name of the server when connecting over // SSL. The default value is false. - AllowHostNameCNMismatch interface{} `json:"allowHostNameCNMismatch,omitempty"` + AllowHostNameCNMismatch any `json:"allowHostNameCNMismatch,omitempty"` // Specifies whether to allow self-signed certificates from the server. The default value is false. - AllowSelfSignedServerCert interface{} `json:"allowSelfSignedServerCert,omitempty"` + AllowSelfSignedServerCert any `json:"allowSelfSignedServerCert,omitempty"` // Specifies whether the connections to the server are encrypted using SSL. The default value is false. - EnableSSL interface{} `json:"enableSsl,omitempty"` + EnableSSL any `json:"enableSsl,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // The partial URL corresponding to the Phoenix server. (i.e. /gateway/sandbox/phoenix/version). The default value is hbasephoenix // if using WindowsAzureHDInsightService. - HTTPPath interface{} `json:"httpPath,omitempty"` + HTTPPath any `json:"httpPath,omitempty"` // The password corresponding to the user name. Password SecretBaseClassification `json:"password,omitempty"` // The TCP port that the Phoenix server uses to listen for client connections. The default value is 8765. - Port interface{} `json:"port,omitempty"` + Port any `json:"port,omitempty"` // The full path of the .pem file containing trusted CA certificates for verifying the server when connecting over SSL. This // property can only be set when using SSL on self-hosted IR. The default value // is the cacerts.pem file installed with the IR. - TrustedCertPath interface{} `json:"trustedCertPath,omitempty"` + TrustedCertPath any `json:"trustedCertPath,omitempty"` // Specifies whether to use a CA certificate from the system trust store or from a specified PEM file. The default value is // false. - UseSystemTrustStore interface{} `json:"useSystemTrustStore,omitempty"` + UseSystemTrustStore any `json:"useSystemTrustStore,omitempty"` // The user name used to connect to the Phoenix server. - Username interface{} `json:"username,omitempty"` + Username any `json:"username,omitempty"` } // PhoenixObjectDataset - Phoenix server dataset. @@ -20511,10 +20627,10 @@ type PhoenixObjectDataset struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -20527,10 +20643,10 @@ type PhoenixObjectDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` // Properties specific to this dataset type. TypeProperties *PhoenixDatasetTypeProperties `json:"typeProperties,omitempty"` @@ -20558,28 +20674,28 @@ type PhoenixSource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type PhoenixSource. @@ -20614,7 +20730,7 @@ type Pipeline struct { Activities []ActivityClassification `json:"activities,omitempty"` // List of tags that can be used for describing the Pipeline. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The max number of concurrent runs for the pipeline. Concurrency *int32 `json:"concurrency,omitempty"` @@ -20632,7 +20748,7 @@ type Pipeline struct { Policy *PipelinePolicy `json:"policy,omitempty"` // Dimensions emitted by Pipeline. - RunDimensions map[string]interface{} `json:"runDimensions,omitempty"` + RunDimensions map[string]any `json:"runDimensions,omitempty"` // List of variables for pipeline. Variables map[string]*VariableSpecification `json:"variables,omitempty"` @@ -20641,7 +20757,7 @@ type Pipeline struct { // PipelineElapsedTimeMetricPolicy - Pipeline ElapsedTime Metric Policy. type PipelineElapsedTimeMetricPolicy struct { // TimeSpan value, after which an Azure Monitoring Metric is fired. - Duration interface{} `json:"duration,omitempty"` + Duration any `json:"duration,omitempty"` } // PipelineFolder - The folder that this Pipeline is in. If not specified, Pipeline will appear at the root level. @@ -20683,7 +20799,7 @@ type PipelineResource struct { Properties *Pipeline `json:"properties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // READ-ONLY; Etag identifies change in the resource. Etag *string `json:"etag,omitempty" azure:"ro"` @@ -20701,7 +20817,7 @@ type PipelineResource struct { // PipelineRun - Information about a pipeline run. type PipelineRun struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // READ-ONLY; The duration of a pipeline run. DurationInMs *int32 `json:"durationInMs,omitempty" azure:"ro"` @@ -20799,7 +20915,7 @@ type PipelinesClientCreateRunOptions struct { // under the same groupId. IsRecovery *bool // Parameters of the pipeline run. These parameters will be used only if the runId is not specified. - Parameters map[string]interface{} + Parameters map[string]any // The pipeline run identifier. If run ID is specified the parameters of the specified run will be used to create a new run. ReferencePipelineRunID *string // In recovery mode, the rerun will start from this activity. If not specified, all activities will run. @@ -20821,7 +20937,7 @@ type PipelinesClientGetOptions struct { IfNoneMatch *string } -// PipelinesClientListByFactoryOptions contains the optional parameters for the PipelinesClient.ListByFactory method. +// PipelinesClientListByFactoryOptions contains the optional parameters for the PipelinesClient.NewListByFactoryPager method. type PipelinesClientListByFactoryOptions struct { // placeholder for future optional parameters } @@ -20829,22 +20945,22 @@ type PipelinesClientListByFactoryOptions struct { // PolybaseSettings - PolyBase settings. type PolybaseSettings struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Determines the number of rows to attempt to retrieve before the PolyBase recalculates the percentage of rejected rows. // Type: integer (or Expression with resultType integer), minimum: 0. - RejectSampleValue interface{} `json:"rejectSampleValue,omitempty"` + RejectSampleValue any `json:"rejectSampleValue,omitempty"` // Reject type. RejectType *PolybaseSettingsRejectType `json:"rejectType,omitempty"` // Specifies the value or the percentage of rows that can be rejected before the query fails. Type: number (or Expression // with resultType number), minimum: 0. - RejectValue interface{} `json:"rejectValue,omitempty"` + RejectValue any `json:"rejectValue,omitempty"` // Specifies how to handle missing values in delimited text files when PolyBase retrieves data from the text file. Type: boolean // (or Expression with resultType boolean). - UseTypeDefault interface{} `json:"useTypeDefault,omitempty"` + UseTypeDefault any `json:"useTypeDefault,omitempty"` } // PostgreSQLLinkedService - Linked service for PostgreSQL data source. @@ -20856,10 +20972,10 @@ type PostgreSQLLinkedService struct { TypeProperties *PostgreSQLLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -20886,11 +21002,11 @@ func (p *PostgreSQLLinkedService) GetLinkedService() *LinkedService { // PostgreSQLLinkedServiceTypeProperties - PostgreSQL linked service properties. type PostgreSQLLinkedServiceTypeProperties struct { // REQUIRED; The connection string. - ConnectionString interface{} `json:"connectionString,omitempty"` + ConnectionString any `json:"connectionString,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // The Azure key vault secret reference of password in connection string. Password *AzureKeyVaultSecretReference `json:"password,omitempty"` @@ -20903,28 +21019,28 @@ type PostgreSQLSource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // Database query. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type PostgreSQLSource. @@ -20962,10 +21078,10 @@ type PostgreSQLTableDataset struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -20978,10 +21094,10 @@ type PostgreSQLTableDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` // PostgreSQL table dataset properties. TypeProperties *PostgreSQLTableDatasetTypeProperties `json:"typeProperties,omitempty"` @@ -21005,13 +21121,13 @@ func (p *PostgreSQLTableDataset) GetDataset() *Dataset { // PostgreSQLTableDatasetTypeProperties - PostgreSQL table dataset properties. type PostgreSQLTableDatasetTypeProperties struct { // The PostgreSQL schema name. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // The PostgreSQL table name. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` + Table any `json:"table,omitempty"` // This property will be retired. Please consider using schema + table properties instead. - TableName interface{} `json:"tableName,omitempty"` + TableName any `json:"tableName,omitempty"` } // PowerQuerySink - Power query sink. @@ -21089,13 +21205,13 @@ type PowerQueryTypeProperties struct { // PrestoDatasetTypeProperties - Presto Dataset Properties type PrestoDatasetTypeProperties struct { // The schema name of the Presto. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // The table name of the Presto. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` + Table any `json:"table,omitempty"` // This property will be retired. Please consider using schema + table properties instead. - TableName interface{} `json:"tableName,omitempty"` + TableName any `json:"tableName,omitempty"` } // PrestoLinkedService - Presto server linked service. @@ -21107,10 +21223,10 @@ type PrestoLinkedService struct { TypeProperties *PrestoLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -21140,49 +21256,49 @@ type PrestoLinkedServiceTypeProperties struct { AuthenticationType *PrestoAuthenticationType `json:"authenticationType,omitempty"` // REQUIRED; The catalog context for all request against the server. - Catalog interface{} `json:"catalog,omitempty"` + Catalog any `json:"catalog,omitempty"` // REQUIRED; The IP address or host name of the Presto server. (i.e. 192.168.222.160) - Host interface{} `json:"host,omitempty"` + Host any `json:"host,omitempty"` // REQUIRED; The version of the Presto server. (i.e. 0.148-t) - ServerVersion interface{} `json:"serverVersion,omitempty"` + ServerVersion any `json:"serverVersion,omitempty"` // Specifies whether to require a CA-issued SSL certificate name to match the host name of the server when connecting over // SSL. The default value is false. - AllowHostNameCNMismatch interface{} `json:"allowHostNameCNMismatch,omitempty"` + AllowHostNameCNMismatch any `json:"allowHostNameCNMismatch,omitempty"` // Specifies whether to allow self-signed certificates from the server. The default value is false. - AllowSelfSignedServerCert interface{} `json:"allowSelfSignedServerCert,omitempty"` + AllowSelfSignedServerCert any `json:"allowSelfSignedServerCert,omitempty"` // Specifies whether the connections to the server are encrypted using SSL. The default value is false. - EnableSSL interface{} `json:"enableSsl,omitempty"` + EnableSSL any `json:"enableSsl,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // The password corresponding to the user name. Password SecretBaseClassification `json:"password,omitempty"` // The TCP port that the Presto server uses to listen for client connections. The default value is 8080. - Port interface{} `json:"port,omitempty"` + Port any `json:"port,omitempty"` // The local time zone used by the connection. Valid values for this option are specified in the IANA Time Zone Database. // The default value is the system time zone. - TimeZoneID interface{} `json:"timeZoneID,omitempty"` + TimeZoneID any `json:"timeZoneID,omitempty"` // The full path of the .pem file containing trusted CA certificates for verifying the server when connecting over SSL. This // property can only be set when using SSL on self-hosted IR. The default value // is the cacerts.pem file installed with the IR. - TrustedCertPath interface{} `json:"trustedCertPath,omitempty"` + TrustedCertPath any `json:"trustedCertPath,omitempty"` // Specifies whether to use a CA certificate from the system trust store or from a specified PEM file. The default value is // false. - UseSystemTrustStore interface{} `json:"useSystemTrustStore,omitempty"` + UseSystemTrustStore any `json:"useSystemTrustStore,omitempty"` // The user name used to connect to the Presto server. - Username interface{} `json:"username,omitempty"` + Username any `json:"username,omitempty"` } // PrestoObjectDataset - Presto server dataset. @@ -21194,10 +21310,10 @@ type PrestoObjectDataset struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -21210,10 +21326,10 @@ type PrestoObjectDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` // Properties specific to this dataset type. TypeProperties *PrestoDatasetTypeProperties `json:"typeProperties,omitempty"` @@ -21241,28 +21357,28 @@ type PrestoSource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type PrestoSource. @@ -21291,7 +21407,7 @@ func (p *PrestoSource) GetTabularSource() *TabularSource { } } -// PrivateEndPointConnectionsClientListByFactoryOptions contains the optional parameters for the PrivateEndPointConnectionsClient.ListByFactory +// PrivateEndPointConnectionsClientListByFactoryOptions contains the optional parameters for the PrivateEndPointConnectionsClient.NewListByFactoryPager // method. type PrivateEndPointConnectionsClientListByFactoryOptions struct { // placeholder for future optional parameters @@ -21456,10 +21572,10 @@ type QuickBooksLinkedService struct { TypeProperties *QuickBooksLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -21492,27 +21608,27 @@ type QuickBooksLinkedServiceTypeProperties struct { AccessTokenSecret SecretBaseClassification `json:"accessTokenSecret,omitempty"` // The company ID of the QuickBooks company to authorize. - CompanyID interface{} `json:"companyId,omitempty"` + CompanyID any `json:"companyId,omitempty"` // Properties used to connect to QuickBooks. It is mutually exclusive with any other properties in the linked service. Type: // object. - ConnectionProperties interface{} `json:"connectionProperties,omitempty"` + ConnectionProperties any `json:"connectionProperties,omitempty"` // The consumer key for OAuth 1.0 authentication. - ConsumerKey interface{} `json:"consumerKey,omitempty"` + ConsumerKey any `json:"consumerKey,omitempty"` // The consumer secret for OAuth 1.0 authentication. ConsumerSecret SecretBaseClassification `json:"consumerSecret,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // The endpoint of the QuickBooks server. (i.e. quickbooks.api.intuit.com) - Endpoint interface{} `json:"endpoint,omitempty"` + Endpoint any `json:"endpoint,omitempty"` // Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. - UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` + UseEncryptedEndpoints any `json:"useEncryptedEndpoints,omitempty"` } // QuickBooksObjectDataset - QuickBooks server dataset. @@ -21524,10 +21640,10 @@ type QuickBooksObjectDataset struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -21540,10 +21656,10 @@ type QuickBooksObjectDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` // Properties specific to this dataset type. TypeProperties *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` @@ -21571,28 +21687,28 @@ type QuickBooksSource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type QuickBooksSource. @@ -21630,10 +21746,10 @@ type QuickbaseLinkedService struct { TypeProperties *QuickbaseLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -21660,20 +21776,20 @@ func (q *QuickbaseLinkedService) GetLinkedService() *LinkedService { // QuickbaseLinkedServiceTypeProperties - Quickbase linked service type properties. type QuickbaseLinkedServiceTypeProperties struct { // REQUIRED; The url to connect Quickbase source. Type: string (or Expression with resultType string). - URL interface{} `json:"url,omitempty"` + URL any `json:"url,omitempty"` // REQUIRED; The user token for the Quickbase source. UserToken SecretBaseClassification `json:"userToken,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` } // RecurrenceSchedule - The recurrence schedule. type RecurrenceSchedule struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // The hours. Hours []*int32 `json:"hours,omitempty"` @@ -21694,7 +21810,7 @@ type RecurrenceSchedule struct { // RecurrenceScheduleOccurrence - The recurrence schedule occurrence. type RecurrenceScheduleOccurrence struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // The day of the week. Day *DayOfWeek `json:"day,omitempty"` @@ -21708,13 +21824,13 @@ type RedirectIncompatibleRowSettings struct { // REQUIRED; Name of the Azure Storage, Storage SAS, or Azure Data Lake Store linked service used for redirecting incompatible // row. Must be specified if redirectIncompatibleRowSettings is specified. Type: string // (or Expression with resultType string). - LinkedServiceName interface{} `json:"linkedServiceName,omitempty"` + LinkedServiceName any `json:"linkedServiceName,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // The path for storing the redirect incompatible row data. Type: string (or Expression with resultType string). - Path interface{} `json:"path,omitempty"` + Path any `json:"path,omitempty"` } // RedshiftUnloadSettings - The Amazon S3 settings needed for the interim Amazon S3 when copying from Amazon Redshift with @@ -21724,7 +21840,7 @@ type RedshiftUnloadSettings struct { // REQUIRED; The bucket of the interim Amazon S3 which will be used to store the unloaded data from Amazon Redshift source. // The bucket must be in the same region as the Amazon Redshift source. Type: string (or // Expression with resultType string). - BucketName interface{} `json:"bucketName,omitempty"` + BucketName any `json:"bucketName,omitempty"` // REQUIRED; The name of the Amazon S3 linked service which will be used for the unload operation when copying from the Amazon // Redshift source. @@ -21738,25 +21854,25 @@ type RelationalSource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // Database query. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any `json:"query,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type RelationalSource. @@ -21780,10 +21896,10 @@ type RelationalTableDataset struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -21796,10 +21912,10 @@ type RelationalTableDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` // Relational table dataset properties. TypeProperties *RelationalTableDatasetTypeProperties `json:"typeProperties,omitempty"` @@ -21823,7 +21939,7 @@ func (r *RelationalTableDataset) GetDataset() *Dataset { // RelationalTableDatasetTypeProperties - Relational table dataset properties. type RelationalTableDatasetTypeProperties struct { // The relational table name. Type: string (or Expression with resultType string). - TableName interface{} `json:"tableName,omitempty"` + TableName any `json:"tableName,omitempty"` } // RemotePrivateEndpointConnection - A remote private endpoint connection @@ -21848,10 +21964,10 @@ type RerunTumblingWindowTrigger struct { TypeProperties *RerunTumblingWindowTriggerTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the trigger. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Trigger description. Description *string `json:"description,omitempty"` @@ -21874,7 +21990,7 @@ func (r *RerunTumblingWindowTrigger) GetTrigger() *Trigger { // RerunTumblingWindowTriggerTypeProperties - Rerun Trigger properties. type RerunTumblingWindowTriggerTypeProperties struct { // REQUIRED; The parent trigger reference. - ParentTrigger interface{} `json:"parentTrigger,omitempty"` + ParentTrigger any `json:"parentTrigger,omitempty"` // REQUIRED; The end time for the time period for which restatement is initiated. Only UTC time is currently supported. RequestedEndTime *time.Time `json:"requestedEndTime,omitempty"` @@ -21895,10 +22011,10 @@ type ResponsysLinkedService struct { TypeProperties *ResponsysLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -21925,30 +22041,30 @@ func (r *ResponsysLinkedService) GetLinkedService() *LinkedService { // ResponsysLinkedServiceTypeProperties - Responsys linked service properties. type ResponsysLinkedServiceTypeProperties struct { // REQUIRED; The client ID associated with the Responsys application. Type: string (or Expression with resultType string). - ClientID interface{} `json:"clientId,omitempty"` + ClientID any `json:"clientId,omitempty"` // REQUIRED; The endpoint of the Responsys server. - Endpoint interface{} `json:"endpoint,omitempty"` + Endpoint any `json:"endpoint,omitempty"` // The client secret associated with the Responsys application. Type: string (or Expression with resultType string). ClientSecret SecretBaseClassification `json:"clientSecret,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. Type: boolean (or Expression // with resultType boolean). - UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` + UseEncryptedEndpoints any `json:"useEncryptedEndpoints,omitempty"` // Specifies whether to require the host name in the server's certificate to match the host name of the server when connecting // over SSL. The default value is true. Type: boolean (or Expression with // resultType boolean). - UseHostVerification interface{} `json:"useHostVerification,omitempty"` + UseHostVerification any `json:"useHostVerification,omitempty"` // Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. Type: boolean // (or Expression with resultType boolean). - UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` + UsePeerVerification any `json:"usePeerVerification,omitempty"` } // ResponsysObjectDataset - Responsys dataset. @@ -21960,10 +22076,10 @@ type ResponsysObjectDataset struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -21976,10 +22092,10 @@ type ResponsysObjectDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` // Properties specific to this dataset type. TypeProperties *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` @@ -22007,28 +22123,28 @@ type ResponsysSource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type ResponsysSource. @@ -22066,10 +22182,10 @@ type RestResourceDataset struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -22082,10 +22198,10 @@ type RestResourceDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` // Properties specific to this dataset type. TypeProperties *RestResourceDatasetTypeProperties `json:"typeProperties,omitempty"` @@ -22109,19 +22225,19 @@ func (r *RestResourceDataset) GetDataset() *Dataset { // RestResourceDatasetTypeProperties - Properties specific to this dataset type. type RestResourceDatasetTypeProperties struct { // The additional HTTP headers in the request to the RESTful API. Type: string (or Expression with resultType string). - AdditionalHeaders interface{} `json:"additionalHeaders,omitempty"` + AdditionalHeaders any `json:"additionalHeaders,omitempty"` // The pagination rules to compose next page requests. Type: string (or Expression with resultType string). - PaginationRules interface{} `json:"paginationRules,omitempty"` + PaginationRules any `json:"paginationRules,omitempty"` // The relative URL to the resource that the RESTful API provides. Type: string (or Expression with resultType string). - RelativeURL interface{} `json:"relativeUrl,omitempty"` + RelativeURL any `json:"relativeUrl,omitempty"` // The HTTP request body to the RESTful API if requestMethod is POST. Type: string (or Expression with resultType string). - RequestBody interface{} `json:"requestBody,omitempty"` + RequestBody any `json:"requestBody,omitempty"` // The HTTP method used to call the RESTful API. The default is GET. Type: string (or Expression with resultType string). - RequestMethod interface{} `json:"requestMethod,omitempty"` + RequestMethod any `json:"requestMethod,omitempty"` } // RestServiceLinkedService - Rest Service linked service. @@ -22133,10 +22249,10 @@ type RestServiceLinkedService struct { TypeProperties *RestServiceLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -22166,22 +22282,22 @@ type RestServiceLinkedServiceTypeProperties struct { AuthenticationType *RestServiceAuthenticationType `json:"authenticationType,omitempty"` // REQUIRED; The base URL of the REST service. - URL interface{} `json:"url,omitempty"` + URL any `json:"url,omitempty"` // The resource you are requesting authorization to use. - AADResourceID interface{} `json:"aadResourceId,omitempty"` + AADResourceID any `json:"aadResourceId,omitempty"` // The additional HTTP headers in the request to RESTful API used for authorization. Type: object (or Expression with resultType // object). - AuthHeaders interface{} `json:"authHeaders,omitempty"` + AuthHeaders any `json:"authHeaders,omitempty"` // Indicates the azure cloud type of the service principle auth. Allowed values are AzurePublic, AzureChina, AzureUsGovernment, // AzureGermany. Default value is the data factory regions’ cloud type. Type: // string (or Expression with resultType string). - AzureCloudType interface{} `json:"azureCloudType,omitempty"` + AzureCloudType any `json:"azureCloudType,omitempty"` // The client ID associated with your application. Type: string (or Expression with resultType string). - ClientID interface{} `json:"clientId,omitempty"` + ClientID any `json:"clientId,omitempty"` // The client secret associated with your application. ClientSecret SecretBaseClassification `json:"clientSecret,omitempty"` @@ -22191,37 +22307,37 @@ type RestServiceLinkedServiceTypeProperties struct { // Whether to validate server side SSL certificate when connecting to the endpoint.The default value is true. Type: boolean // (or Expression with resultType boolean). - EnableServerCertificateValidation interface{} `json:"enableServerCertificateValidation,omitempty"` + EnableServerCertificateValidation any `json:"enableServerCertificateValidation,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // The password used in Basic authentication type. Password SecretBaseClassification `json:"password,omitempty"` // The target service or resource to which the access will be requested. Type: string (or Expression with resultType string). - Resource interface{} `json:"resource,omitempty"` + Resource any `json:"resource,omitempty"` // The scope of the access required. It describes what kind of access will be requested. Type: string (or Expression with // resultType string). - Scope interface{} `json:"scope,omitempty"` + Scope any `json:"scope,omitempty"` // The application's client ID used in AadServicePrincipal authentication type. - ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` + ServicePrincipalID any `json:"servicePrincipalId,omitempty"` // The application's key used in AadServicePrincipal authentication type. ServicePrincipalKey SecretBaseClassification `json:"servicePrincipalKey,omitempty"` // The tenant information (domain name or tenant ID) used in AadServicePrincipal authentication type under which your application // resides. - Tenant interface{} `json:"tenant,omitempty"` + Tenant any `json:"tenant,omitempty"` // The token endpoint of the authorization server to acquire access token. Type: string (or Expression with resultType string). - TokenEndpoint interface{} `json:"tokenEndpoint,omitempty"` + TokenEndpoint any `json:"tokenEndpoint,omitempty"` // The user name used in Basic authentication type. - UserName interface{} `json:"userName,omitempty"` + UserName any `json:"userName,omitempty"` } // RestSink - A copy activity Rest service Sink. @@ -22230,43 +22346,43 @@ type RestSink struct { Type *string `json:"type,omitempty"` // The additional HTTP headers in the request to the RESTful API. Type: string (or Expression with resultType string). - AdditionalHeaders interface{} `json:"additionalHeaders,omitempty"` + AdditionalHeaders any `json:"additionalHeaders,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // Http Compression Type to Send data in compressed format with Optimal Compression Level, Default is None. And The Only Supported // option is Gzip. - HTTPCompressionType interface{} `json:"httpCompressionType,omitempty"` + HTTPCompressionType any `json:"httpCompressionType,omitempty"` // The timeout (TimeSpan) to get an HTTP response. It is the timeout to get a response, not the timeout to read response data. // Default value: 00:01:40. Type: string (or Expression with resultType // string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - HTTPRequestTimeout interface{} `json:"httpRequestTimeout,omitempty"` + HTTPRequestTimeout any `json:"httpRequestTimeout,omitempty"` // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // The time to await before sending next request, in milliseconds - RequestInterval interface{} `json:"requestInterval,omitempty"` + RequestInterval any `json:"requestInterval,omitempty"` // The HTTP method used to call the RESTful API. The default is POST. Type: string (or Expression with resultType string). - RequestMethod interface{} `json:"requestMethod,omitempty"` + RequestMethod any `json:"requestMethod,omitempty"` // Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + SinkRetryCount any `json:"sinkRetryCount,omitempty"` // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + SinkRetryWait any `json:"sinkRetryWait,omitempty"` // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + WriteBatchSize any `json:"writeBatchSize,omitempty"` // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + WriteBatchTimeout any `json:"writeBatchTimeout,omitempty"` } // GetCopySink implements the CopySinkClassification interface for type RestSink. @@ -22290,42 +22406,42 @@ type RestSource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // The additional HTTP headers in the request to the RESTful API. Type: string (or Expression with resultType string). - AdditionalHeaders interface{} `json:"additionalHeaders,omitempty"` + AdditionalHeaders any `json:"additionalHeaders,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The timeout (TimeSpan) to get an HTTP response. It is the timeout to get a response, not the timeout to read response data. // Default value: 00:01:40. Type: string (or Expression with resultType // string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - HTTPRequestTimeout interface{} `json:"httpRequestTimeout,omitempty"` + HTTPRequestTimeout any `json:"httpRequestTimeout,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // The pagination rules to compose next page requests. Type: string (or Expression with resultType string). - PaginationRules interface{} `json:"paginationRules,omitempty"` + PaginationRules any `json:"paginationRules,omitempty"` // The HTTP request body to the RESTful API if requestMethod is POST. Type: string (or Expression with resultType string). - RequestBody interface{} `json:"requestBody,omitempty"` + RequestBody any `json:"requestBody,omitempty"` // The time to await before sending next page request. - RequestInterval interface{} `json:"requestInterval,omitempty"` + RequestInterval any `json:"requestInterval,omitempty"` // The HTTP method used to call the RESTful API. The default is GET. Type: string (or Expression with resultType string). - RequestMethod interface{} `json:"requestMethod,omitempty"` + RequestMethod any `json:"requestMethod,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type RestSource. @@ -22343,7 +22459,7 @@ func (r *RestSource) GetCopySource() *CopySource { // RetryPolicy - Execution policy for an activity. type RetryPolicy struct { // Maximum ordinary retry attempts. Default is 0. Type: integer (or Expression with resultType integer), minimum: 0. - Count interface{} `json:"count,omitempty"` + Count any `json:"count,omitempty"` // Interval between retries in seconds. Default is 30. IntervalInSeconds *int32 `json:"intervalInSeconds,omitempty"` @@ -22402,7 +22518,7 @@ type SQLAlwaysEncryptedProperties struct { // The client ID of the application in Azure Active Directory used for Azure Key Vault authentication. Type: string (or Expression // with resultType string). - ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` + ServicePrincipalID any `json:"servicePrincipalId,omitempty"` // The key of the service principal used to authenticate against Azure Key Vault. ServicePrincipalKey SecretBaseClassification `json:"servicePrincipalKey,omitempty"` @@ -22414,54 +22530,54 @@ type SQLDWSink struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Indicates to use Copy Command to copy data into SQL Data Warehouse. Type: boolean (or Expression with resultType boolean). - AllowCopyCommand interface{} `json:"allowCopyCommand,omitempty"` + AllowCopyCommand any `json:"allowCopyCommand,omitempty"` // Indicates to use PolyBase to copy data into SQL Data Warehouse when applicable. Type: boolean (or Expression with resultType // boolean). - AllowPolyBase interface{} `json:"allowPolyBase,omitempty"` + AllowPolyBase any `json:"allowPolyBase,omitempty"` // Specifies Copy Command related settings when allowCopyCommand is true. CopyCommandSettings *DWCopyCommandSettings `json:"copyCommandSettings,omitempty"` // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // Specifies PolyBase-related settings when allowPolyBase is true. PolyBaseSettings *PolybaseSettings `json:"polyBaseSettings,omitempty"` // SQL pre-copy script. Type: string (or Expression with resultType string). - PreCopyScript interface{} `json:"preCopyScript,omitempty"` + PreCopyScript any `json:"preCopyScript,omitempty"` // Whether to use table lock during bulk copy. Type: boolean (or Expression with resultType boolean). - SQLWriterUseTableLock interface{} `json:"sqlWriterUseTableLock,omitempty"` + SQLWriterUseTableLock any `json:"sqlWriterUseTableLock,omitempty"` // Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + SinkRetryCount any `json:"sinkRetryCount,omitempty"` // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + SinkRetryWait any `json:"sinkRetryWait,omitempty"` // The option to handle sink table, such as autoCreate. For now only 'autoCreate' value is supported. Type: string (or Expression // with resultType string). - TableOption interface{} `json:"tableOption,omitempty"` + TableOption any `json:"tableOption,omitempty"` // SQL DW upsert settings. UpsertSettings *SQLDWUpsertSettings `json:"upsertSettings,omitempty"` // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + WriteBatchSize any `json:"writeBatchSize,omitempty"` // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + WriteBatchTimeout any `json:"writeBatchTimeout,omitempty"` // Write behavior when copying data into azure SQL DW. Type: SqlDWWriteBehaviorEnum (or Expression with resultType SqlDWWriteBehaviorEnum) - WriteBehavior interface{} `json:"writeBehavior,omitempty"` + WriteBehavior any `json:"writeBehavior,omitempty"` } // GetCopySink implements the CopySinkClassification interface for type SQLDWSink. @@ -22485,43 +22601,43 @@ type SQLDWSource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // The partition mechanism that will be used for Sql read in parallel. Possible values include: "None", "PhysicalPartitionsOfTable", // "DynamicRange". - PartitionOption interface{} `json:"partitionOption,omitempty"` + PartitionOption any `json:"partitionOption,omitempty"` // The settings that will be leveraged for Sql source partitioning. PartitionSettings *SQLPartitionSettings `json:"partitionSettings,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any `json:"queryTimeout,omitempty"` // SQL Data Warehouse reader query. Type: string (or Expression with resultType string). - SQLReaderQuery interface{} `json:"sqlReaderQuery,omitempty"` + SQLReaderQuery any `json:"sqlReaderQuery,omitempty"` // Name of the stored procedure for a SQL Data Warehouse source. This cannot be used at the same time as SqlReaderQuery. Type: // string (or Expression with resultType string). - SQLReaderStoredProcedureName interface{} `json:"sqlReaderStoredProcedureName,omitempty"` + SQLReaderStoredProcedureName any `json:"sqlReaderStoredProcedureName,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` // Value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". Type: object // (or Expression with resultType object), itemType: StoredProcedureParameter. - StoredProcedureParameters interface{} `json:"storedProcedureParameters,omitempty"` + StoredProcedureParameters any `json:"storedProcedureParameters,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type SQLDWSource. @@ -22553,10 +22669,10 @@ func (s *SQLDWSource) GetTabularSource() *TabularSource { // SQLDWUpsertSettings - Sql DW upsert option settings type SQLDWUpsertSettings struct { // Schema name for interim table. Type: string (or Expression with resultType string). - InterimSchemaName interface{} `json:"interimSchemaName,omitempty"` + InterimSchemaName any `json:"interimSchemaName,omitempty"` // Key column names for unique row identification. Type: array of strings (or Expression with resultType array of strings). - Keys interface{} `json:"keys,omitempty"` + Keys any `json:"keys,omitempty"` } // SQLMISink - A copy activity Azure SQL Managed Instance sink. @@ -22565,53 +22681,53 @@ type SQLMISink struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // SQL pre-copy script. Type: string (or Expression with resultType string). - PreCopyScript interface{} `json:"preCopyScript,omitempty"` + PreCopyScript any `json:"preCopyScript,omitempty"` // SQL writer stored procedure name. Type: string (or Expression with resultType string). - SQLWriterStoredProcedureName interface{} `json:"sqlWriterStoredProcedureName,omitempty"` + SQLWriterStoredProcedureName any `json:"sqlWriterStoredProcedureName,omitempty"` // SQL writer table type. Type: string (or Expression with resultType string). - SQLWriterTableType interface{} `json:"sqlWriterTableType,omitempty"` + SQLWriterTableType any `json:"sqlWriterTableType,omitempty"` // Whether to use table lock during bulk copy. Type: boolean (or Expression with resultType boolean). - SQLWriterUseTableLock interface{} `json:"sqlWriterUseTableLock,omitempty"` + SQLWriterUseTableLock any `json:"sqlWriterUseTableLock,omitempty"` // Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + SinkRetryCount any `json:"sinkRetryCount,omitempty"` // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + SinkRetryWait any `json:"sinkRetryWait,omitempty"` // SQL stored procedure parameters. - StoredProcedureParameters interface{} `json:"storedProcedureParameters,omitempty"` + StoredProcedureParameters any `json:"storedProcedureParameters,omitempty"` // The stored procedure parameter name of the table type. Type: string (or Expression with resultType string). - StoredProcedureTableTypeParameterName interface{} `json:"storedProcedureTableTypeParameterName,omitempty"` + StoredProcedureTableTypeParameterName any `json:"storedProcedureTableTypeParameterName,omitempty"` // The option to handle sink table, such as autoCreate. For now only 'autoCreate' value is supported. Type: string (or Expression // with resultType string). - TableOption interface{} `json:"tableOption,omitempty"` + TableOption any `json:"tableOption,omitempty"` // SQL upsert settings. UpsertSettings *SQLUpsertSettings `json:"upsertSettings,omitempty"` // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + WriteBatchSize any `json:"writeBatchSize,omitempty"` // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + WriteBatchTimeout any `json:"writeBatchTimeout,omitempty"` // White behavior when copying data into azure SQL MI. Type: SqlWriteBehaviorEnum (or Expression with resultType SqlWriteBehaviorEnum) - WriteBehavior interface{} `json:"writeBehavior,omitempty"` + WriteBehavior any `json:"writeBehavior,omitempty"` } // GetCopySink implements the CopySinkClassification interface for type SQLMISink. @@ -22635,45 +22751,45 @@ type SQLMISource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // The partition mechanism that will be used for Sql read in parallel. Possible values include: "None", "PhysicalPartitionsOfTable", // "DynamicRange". - PartitionOption interface{} `json:"partitionOption,omitempty"` + PartitionOption any `json:"partitionOption,omitempty"` // The settings that will be leveraged for Sql source partitioning. PartitionSettings *SQLPartitionSettings `json:"partitionSettings,omitempty"` // Which additional types to produce. - ProduceAdditionalTypes interface{} `json:"produceAdditionalTypes,omitempty"` + ProduceAdditionalTypes any `json:"produceAdditionalTypes,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any `json:"queryTimeout,omitempty"` // SQL reader query. Type: string (or Expression with resultType string). - SQLReaderQuery interface{} `json:"sqlReaderQuery,omitempty"` + SQLReaderQuery any `json:"sqlReaderQuery,omitempty"` // Name of the stored procedure for a Azure SQL Managed Instance source. This cannot be used at the same time as SqlReaderQuery. // Type: string (or Expression with resultType string). - SQLReaderStoredProcedureName interface{} `json:"sqlReaderStoredProcedureName,omitempty"` + SQLReaderStoredProcedureName any `json:"sqlReaderStoredProcedureName,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` // Value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". - StoredProcedureParameters interface{} `json:"storedProcedureParameters,omitempty"` + StoredProcedureParameters any `json:"storedProcedureParameters,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type SQLMISource. @@ -22707,17 +22823,17 @@ type SQLPartitionSettings struct { // The name of the column in integer or datetime type that will be used for proceeding partitioning. If not specified, the // primary key of the table is auto-detected and used as the partition column. // Type: string (or Expression with resultType string). - PartitionColumnName interface{} `json:"partitionColumnName,omitempty"` + PartitionColumnName any `json:"partitionColumnName,omitempty"` // The minimum value of the partition column for partition range splitting. This value is used to decide the partition stride, // not for filtering the rows in table. All rows in the table or query result // will be partitioned and copied. Type: string (or Expression with resultType string). - PartitionLowerBound interface{} `json:"partitionLowerBound,omitempty"` + PartitionLowerBound any `json:"partitionLowerBound,omitempty"` // The maximum value of the partition column for partition range splitting. This value is used to decide the partition stride, // not for filtering the rows in table. All rows in the table or query result // will be partitioned and copied. Type: string (or Expression with resultType string). - PartitionUpperBound interface{} `json:"partitionUpperBound,omitempty"` + PartitionUpperBound any `json:"partitionUpperBound,omitempty"` } // SQLServerLinkedService - SQL Server linked service. @@ -22729,10 +22845,10 @@ type SQLServerLinkedService struct { TypeProperties *SQLServerLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -22759,20 +22875,20 @@ func (s *SQLServerLinkedService) GetLinkedService() *LinkedService { // SQLServerLinkedServiceTypeProperties - SQL Server linked service properties. type SQLServerLinkedServiceTypeProperties struct { // REQUIRED; The connection string. Type: string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` + ConnectionString any `json:"connectionString,omitempty"` // Sql always encrypted properties. AlwaysEncryptedSettings *SQLAlwaysEncryptedProperties `json:"alwaysEncryptedSettings,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // The on-premises Windows authentication password. Password SecretBaseClassification `json:"password,omitempty"` // The on-premises Windows authentication user name. Type: string (or Expression with resultType string). - UserName interface{} `json:"userName,omitempty"` + UserName any `json:"userName,omitempty"` } // SQLServerSink - A copy activity SQL server sink. @@ -22781,53 +22897,53 @@ type SQLServerSink struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // SQL pre-copy script. Type: string (or Expression with resultType string). - PreCopyScript interface{} `json:"preCopyScript,omitempty"` + PreCopyScript any `json:"preCopyScript,omitempty"` // SQL writer stored procedure name. Type: string (or Expression with resultType string). - SQLWriterStoredProcedureName interface{} `json:"sqlWriterStoredProcedureName,omitempty"` + SQLWriterStoredProcedureName any `json:"sqlWriterStoredProcedureName,omitempty"` // SQL writer table type. Type: string (or Expression with resultType string). - SQLWriterTableType interface{} `json:"sqlWriterTableType,omitempty"` + SQLWriterTableType any `json:"sqlWriterTableType,omitempty"` // Whether to use table lock during bulk copy. Type: boolean (or Expression with resultType boolean). - SQLWriterUseTableLock interface{} `json:"sqlWriterUseTableLock,omitempty"` + SQLWriterUseTableLock any `json:"sqlWriterUseTableLock,omitempty"` // Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + SinkRetryCount any `json:"sinkRetryCount,omitempty"` // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + SinkRetryWait any `json:"sinkRetryWait,omitempty"` // SQL stored procedure parameters. - StoredProcedureParameters interface{} `json:"storedProcedureParameters,omitempty"` + StoredProcedureParameters any `json:"storedProcedureParameters,omitempty"` // The stored procedure parameter name of the table type. Type: string (or Expression with resultType string). - StoredProcedureTableTypeParameterName interface{} `json:"storedProcedureTableTypeParameterName,omitempty"` + StoredProcedureTableTypeParameterName any `json:"storedProcedureTableTypeParameterName,omitempty"` // The option to handle sink table, such as autoCreate. For now only 'autoCreate' value is supported. Type: string (or Expression // with resultType string). - TableOption interface{} `json:"tableOption,omitempty"` + TableOption any `json:"tableOption,omitempty"` // SQL upsert settings. UpsertSettings *SQLUpsertSettings `json:"upsertSettings,omitempty"` // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + WriteBatchSize any `json:"writeBatchSize,omitempty"` // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + WriteBatchTimeout any `json:"writeBatchTimeout,omitempty"` // Write behavior when copying data into sql server. Type: SqlWriteBehaviorEnum (or Expression with resultType SqlWriteBehaviorEnum) - WriteBehavior interface{} `json:"writeBehavior,omitempty"` + WriteBehavior any `json:"writeBehavior,omitempty"` } // GetCopySink implements the CopySinkClassification interface for type SQLServerSink. @@ -22851,45 +22967,45 @@ type SQLServerSource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // The partition mechanism that will be used for Sql read in parallel. Possible values include: "None", "PhysicalPartitionsOfTable", // "DynamicRange". - PartitionOption interface{} `json:"partitionOption,omitempty"` + PartitionOption any `json:"partitionOption,omitempty"` // The settings that will be leveraged for Sql source partitioning. PartitionSettings *SQLPartitionSettings `json:"partitionSettings,omitempty"` // Which additional types to produce. - ProduceAdditionalTypes interface{} `json:"produceAdditionalTypes,omitempty"` + ProduceAdditionalTypes any `json:"produceAdditionalTypes,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any `json:"queryTimeout,omitempty"` // SQL reader query. Type: string (or Expression with resultType string). - SQLReaderQuery interface{} `json:"sqlReaderQuery,omitempty"` + SQLReaderQuery any `json:"sqlReaderQuery,omitempty"` // Name of the stored procedure for a SQL Database source. This cannot be used at the same time as SqlReaderQuery. Type: string // (or Expression with resultType string). - SQLReaderStoredProcedureName interface{} `json:"sqlReaderStoredProcedureName,omitempty"` + SQLReaderStoredProcedureName any `json:"sqlReaderStoredProcedureName,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` // Value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". - StoredProcedureParameters interface{} `json:"storedProcedureParameters,omitempty"` + StoredProcedureParameters any `json:"storedProcedureParameters,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type SQLServerSource. @@ -22930,7 +23046,7 @@ type SQLServerStoredProcedureActivity struct { TypeProperties *SQLServerStoredProcedureActivityTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` @@ -22977,10 +23093,10 @@ func (s *SQLServerStoredProcedureActivity) GetExecutionActivity() *ExecutionActi // SQLServerStoredProcedureActivityTypeProperties - SQL stored procedure activity properties. type SQLServerStoredProcedureActivityTypeProperties struct { // REQUIRED; Stored procedure name. Type: string (or Expression with resultType string). - StoredProcedureName interface{} `json:"storedProcedureName,omitempty"` + StoredProcedureName any `json:"storedProcedureName,omitempty"` // Value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". - StoredProcedureParameters interface{} `json:"storedProcedureParameters,omitempty"` + StoredProcedureParameters any `json:"storedProcedureParameters,omitempty"` } // SQLServerTableDataset - The on-premises SQL Server dataset. @@ -22992,10 +23108,10 @@ type SQLServerTableDataset struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -23008,10 +23124,10 @@ type SQLServerTableDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` // On-premises SQL Server dataset properties. TypeProperties *SQLServerTableDatasetTypeProperties `json:"typeProperties,omitempty"` @@ -23035,13 +23151,13 @@ func (s *SQLServerTableDataset) GetDataset() *Dataset { // SQLServerTableDatasetTypeProperties - On-premises SQL Server dataset properties. type SQLServerTableDatasetTypeProperties struct { // The schema name of the SQL Server dataset. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // The table name of the SQL Server dataset. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` + Table any `json:"table,omitempty"` // This property will be retired. Please consider using schema + table properties instead. - TableName interface{} `json:"tableName,omitempty"` + TableName any `json:"tableName,omitempty"` } // SQLSink - A copy activity SQL sink. @@ -23050,53 +23166,53 @@ type SQLSink struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // SQL pre-copy script. Type: string (or Expression with resultType string). - PreCopyScript interface{} `json:"preCopyScript,omitempty"` + PreCopyScript any `json:"preCopyScript,omitempty"` // SQL writer stored procedure name. Type: string (or Expression with resultType string). - SQLWriterStoredProcedureName interface{} `json:"sqlWriterStoredProcedureName,omitempty"` + SQLWriterStoredProcedureName any `json:"sqlWriterStoredProcedureName,omitempty"` // SQL writer table type. Type: string (or Expression with resultType string). - SQLWriterTableType interface{} `json:"sqlWriterTableType,omitempty"` + SQLWriterTableType any `json:"sqlWriterTableType,omitempty"` // Whether to use table lock during bulk copy. Type: boolean (or Expression with resultType boolean). - SQLWriterUseTableLock interface{} `json:"sqlWriterUseTableLock,omitempty"` + SQLWriterUseTableLock any `json:"sqlWriterUseTableLock,omitempty"` // Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + SinkRetryCount any `json:"sinkRetryCount,omitempty"` // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + SinkRetryWait any `json:"sinkRetryWait,omitempty"` // SQL stored procedure parameters. - StoredProcedureParameters interface{} `json:"storedProcedureParameters,omitempty"` + StoredProcedureParameters any `json:"storedProcedureParameters,omitempty"` // The stored procedure parameter name of the table type. Type: string (or Expression with resultType string). - StoredProcedureTableTypeParameterName interface{} `json:"storedProcedureTableTypeParameterName,omitempty"` + StoredProcedureTableTypeParameterName any `json:"storedProcedureTableTypeParameterName,omitempty"` // The option to handle sink table, such as autoCreate. For now only 'autoCreate' value is supported. Type: string (or Expression // with resultType string). - TableOption interface{} `json:"tableOption,omitempty"` + TableOption any `json:"tableOption,omitempty"` // SQL upsert settings. UpsertSettings *SQLUpsertSettings `json:"upsertSettings,omitempty"` // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + WriteBatchSize any `json:"writeBatchSize,omitempty"` // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + WriteBatchTimeout any `json:"writeBatchTimeout,omitempty"` // Write behavior when copying data into sql. Type: SqlWriteBehaviorEnum (or Expression with resultType SqlWriteBehaviorEnum) - WriteBehavior interface{} `json:"writeBehavior,omitempty"` + WriteBehavior any `json:"writeBehavior,omitempty"` } // GetCopySink implements the CopySinkClassification interface for type SQLSink. @@ -23120,47 +23236,47 @@ type SQLSource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // Specifies the transaction locking behavior for the SQL source. Allowed values: ReadCommitted/ReadUncommitted/RepeatableRead/Serializable/Snapshot. // The default value is ReadCommitted. Type: string (or // Expression with resultType string). - IsolationLevel interface{} `json:"isolationLevel,omitempty"` + IsolationLevel any `json:"isolationLevel,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // The partition mechanism that will be used for Sql read in parallel. Possible values include: "None", "PhysicalPartitionsOfTable", // "DynamicRange". - PartitionOption interface{} `json:"partitionOption,omitempty"` + PartitionOption any `json:"partitionOption,omitempty"` // The settings that will be leveraged for Sql source partitioning. PartitionSettings *SQLPartitionSettings `json:"partitionSettings,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any `json:"queryTimeout,omitempty"` // SQL reader query. Type: string (or Expression with resultType string). - SQLReaderQuery interface{} `json:"sqlReaderQuery,omitempty"` + SQLReaderQuery any `json:"sqlReaderQuery,omitempty"` // Name of the stored procedure for a SQL Database source. This cannot be used at the same time as SqlReaderQuery. Type: string // (or Expression with resultType string). - SQLReaderStoredProcedureName interface{} `json:"sqlReaderStoredProcedureName,omitempty"` + SQLReaderStoredProcedureName any `json:"sqlReaderStoredProcedureName,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` // Value and type setting for stored procedure parameters. Example: "{Parameter1: {value: "1", type: "int"}}". - StoredProcedureParameters interface{} `json:"storedProcedureParameters,omitempty"` + StoredProcedureParameters any `json:"storedProcedureParameters,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type SQLSource. @@ -23192,34 +23308,34 @@ func (s *SQLSource) GetTabularSource() *TabularSource { // SQLUpsertSettings - Sql upsert option settings type SQLUpsertSettings struct { // Schema name for interim table. Type: string (or Expression with resultType string). - InterimSchemaName interface{} `json:"interimSchemaName,omitempty"` + InterimSchemaName any `json:"interimSchemaName,omitempty"` // Key column names for unique row identification. Type: array of strings (or Expression with resultType array of strings). - Keys interface{} `json:"keys,omitempty"` + Keys any `json:"keys,omitempty"` // Specifies whether to use temp db for upsert interim table. Type: boolean (or Expression with resultType boolean). - UseTempDB interface{} `json:"useTempDB,omitempty"` + UseTempDB any `json:"useTempDB,omitempty"` } // SSISAccessCredential - SSIS access credential. type SSISAccessCredential struct { // REQUIRED; Domain for windows authentication. - Domain interface{} `json:"domain,omitempty"` + Domain any `json:"domain,omitempty"` // REQUIRED; Password for windows authentication. Password SecretBaseClassification `json:"password,omitempty"` // REQUIRED; UseName for windows authentication. - UserName interface{} `json:"userName,omitempty"` + UserName any `json:"userName,omitempty"` } // SSISChildPackage - SSIS embedded child package. type SSISChildPackage struct { // REQUIRED; Content for embedded child package. Type: string (or Expression with resultType string). - PackageContent interface{} `json:"packageContent,omitempty"` + PackageContent any `json:"packageContent,omitempty"` // REQUIRED; Path for embedded child package. Type: string (or Expression with resultType string). - PackagePath interface{} `json:"packagePath,omitempty"` + PackagePath any `json:"packagePath,omitempty"` // Last modified date for embedded child package. PackageLastModifiedDate *string `json:"packageLastModifiedDate,omitempty"` @@ -23231,25 +23347,25 @@ type SSISChildPackage struct { // SSISExecutionCredential - SSIS package execution credential. type SSISExecutionCredential struct { // REQUIRED; Domain for windows authentication. - Domain interface{} `json:"domain,omitempty"` + Domain any `json:"domain,omitempty"` // REQUIRED; Password for windows authentication. Password *SecureString `json:"password,omitempty"` // REQUIRED; UseName for windows authentication. - UserName interface{} `json:"userName,omitempty"` + UserName any `json:"userName,omitempty"` } // SSISExecutionParameter - SSIS execution parameter. type SSISExecutionParameter struct { // REQUIRED; SSIS package execution parameter value. Type: string (or Expression with resultType string). - Value interface{} `json:"value,omitempty"` + Value any `json:"value,omitempty"` } // SSISLogLocation - SSIS package execution log location type SSISLogLocation struct { // REQUIRED; The SSIS package execution log path. Type: string (or Expression with resultType string). - LogPath interface{} `json:"logPath,omitempty"` + LogPath any `json:"logPath,omitempty"` // REQUIRED; The type of SSIS log location. Type *SsisLogLocationType `json:"type,omitempty"` @@ -23265,13 +23381,13 @@ type SSISLogLocationTypeProperties struct { // Specifies the interval to refresh log. The default interval is 5 minutes. Type: string (or Expression with resultType string), // pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - LogRefreshInterval interface{} `json:"logRefreshInterval,omitempty"` + LogRefreshInterval any `json:"logRefreshInterval,omitempty"` } // SSISPackageLocation - SSIS package location. type SSISPackageLocation struct { // The SSIS package path. Type: string (or Expression with resultType string). - PackagePath interface{} `json:"packagePath,omitempty"` + PackagePath any `json:"packagePath,omitempty"` // The type of SSIS package location. Type *SsisPackageLocationType `json:"type,omitempty"` @@ -23292,10 +23408,10 @@ type SSISPackageLocationTypeProperties struct { ConfigurationAccessCredential *SSISAccessCredential `json:"configurationAccessCredential,omitempty"` // The configuration file of the package execution. Type: string (or Expression with resultType string). - ConfigurationPath interface{} `json:"configurationPath,omitempty"` + ConfigurationPath any `json:"configurationPath,omitempty"` // The embedded package content. Type: string (or Expression with resultType string). - PackageContent interface{} `json:"packageContent,omitempty"` + PackageContent any `json:"packageContent,omitempty"` // The embedded package last modified date. PackageLastModifiedDate *string `json:"packageLastModifiedDate,omitempty"` @@ -23310,7 +23426,7 @@ type SSISPackageLocationTypeProperties struct { // SSISPropertyOverride - SSIS property override. type SSISPropertyOverride struct { // REQUIRED; SSIS package property override value. Type: string (or Expression with resultType string). - Value interface{} `json:"value,omitempty"` + Value any `json:"value,omitempty"` // Whether SSIS package property override value is sensitive data. Value will be encrypted in SSISDB if it is true IsSensitive *bool `json:"isSensitive,omitempty"` @@ -23325,10 +23441,10 @@ type SalesforceLinkedService struct { TypeProperties *SalesforceLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -23355,16 +23471,16 @@ func (s *SalesforceLinkedService) GetLinkedService() *LinkedService { // SalesforceLinkedServiceTypeProperties - Salesforce linked service properties. type SalesforceLinkedServiceTypeProperties struct { // The Salesforce API version used in ADF. Type: string (or Expression with resultType string). - APIVersion interface{} `json:"apiVersion,omitempty"` + APIVersion any `json:"apiVersion,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // The URL of Salesforce instance. Default is 'https://login.salesforce.com'. To copy data from sandbox, specify 'https://test.salesforce.com'. // To copy data from custom domain, specify, for example, // 'https://[domain].my.salesforce.com'. Type: string (or Expression with resultType string). - EnvironmentURL interface{} `json:"environmentUrl,omitempty"` + EnvironmentURL any `json:"environmentUrl,omitempty"` // The password for Basic authentication of the Salesforce instance. Password SecretBaseClassification `json:"password,omitempty"` @@ -23373,7 +23489,7 @@ type SalesforceLinkedServiceTypeProperties struct { SecurityToken SecretBaseClassification `json:"securityToken,omitempty"` // The username for Basic authentication of the Salesforce instance. Type: string (or Expression with resultType string). - Username interface{} `json:"username,omitempty"` + Username any `json:"username,omitempty"` } // SalesforceMarketingCloudLinkedService - Salesforce Marketing Cloud linked service. @@ -23385,10 +23501,10 @@ type SalesforceMarketingCloudLinkedService struct { TypeProperties *SalesforceMarketingCloudLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -23415,7 +23531,7 @@ func (s *SalesforceMarketingCloudLinkedService) GetLinkedService() *LinkedServic // SalesforceMarketingCloudLinkedServiceTypeProperties - Salesforce Marketing Cloud linked service properties. type SalesforceMarketingCloudLinkedServiceTypeProperties struct { // The client ID associated with the Salesforce Marketing Cloud application. Type: string (or Expression with resultType string). - ClientID interface{} `json:"clientId,omitempty"` + ClientID any `json:"clientId,omitempty"` // The client secret associated with the Salesforce Marketing Cloud application. Type: string (or Expression with resultType // string). @@ -23423,24 +23539,24 @@ type SalesforceMarketingCloudLinkedServiceTypeProperties struct { // Properties used to connect to Salesforce Marketing Cloud. It is mutually exclusive with any other properties in the linked // service. Type: object. - ConnectionProperties interface{} `json:"connectionProperties,omitempty"` + ConnectionProperties any `json:"connectionProperties,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. Type: boolean (or Expression // with resultType boolean). - UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` + UseEncryptedEndpoints any `json:"useEncryptedEndpoints,omitempty"` // Specifies whether to require the host name in the server's certificate to match the host name of the server when connecting // over SSL. The default value is true. Type: boolean (or Expression with // resultType boolean). - UseHostVerification interface{} `json:"useHostVerification,omitempty"` + UseHostVerification any `json:"useHostVerification,omitempty"` // Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. Type: boolean // (or Expression with resultType boolean). - UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` + UsePeerVerification any `json:"usePeerVerification,omitempty"` } // SalesforceMarketingCloudObjectDataset - Salesforce Marketing Cloud dataset. @@ -23452,10 +23568,10 @@ type SalesforceMarketingCloudObjectDataset struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -23468,10 +23584,10 @@ type SalesforceMarketingCloudObjectDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` // Properties specific to this dataset type. TypeProperties *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` @@ -23499,28 +23615,28 @@ type SalesforceMarketingCloudSource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type SalesforceMarketingCloudSource. @@ -23558,10 +23674,10 @@ type SalesforceObjectDataset struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -23574,10 +23690,10 @@ type SalesforceObjectDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` // Salesforce object dataset properties. TypeProperties *SalesforceObjectDatasetTypeProperties `json:"typeProperties,omitempty"` @@ -23601,7 +23717,7 @@ func (s *SalesforceObjectDataset) GetDataset() *Dataset { // SalesforceObjectDatasetTypeProperties - Salesforce object dataset properties. type SalesforceObjectDatasetTypeProperties struct { // The Salesforce object API name. Type: string (or Expression with resultType string). - ObjectAPIName interface{} `json:"objectApiName,omitempty"` + ObjectAPIName any `json:"objectApiName,omitempty"` } // SalesforceServiceCloudLinkedService - Linked service for Salesforce Service Cloud. @@ -23613,10 +23729,10 @@ type SalesforceServiceCloudLinkedService struct { TypeProperties *SalesforceServiceCloudLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -23643,19 +23759,19 @@ func (s *SalesforceServiceCloudLinkedService) GetLinkedService() *LinkedService // SalesforceServiceCloudLinkedServiceTypeProperties - Salesforce Service Cloud linked service properties. type SalesforceServiceCloudLinkedServiceTypeProperties struct { // The Salesforce API version used in ADF. Type: string (or Expression with resultType string). - APIVersion interface{} `json:"apiVersion,omitempty"` + APIVersion any `json:"apiVersion,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // The URL of Salesforce Service Cloud instance. Default is 'https://login.salesforce.com'. To copy data from sandbox, specify // 'https://test.salesforce.com'. To copy data from custom domain, specify, for // example, 'https://[domain].my.salesforce.com'. Type: string (or Expression with resultType string). - EnvironmentURL interface{} `json:"environmentUrl,omitempty"` + EnvironmentURL any `json:"environmentUrl,omitempty"` // Extended properties appended to the connection string. Type: string (or Expression with resultType string). - ExtendedProperties interface{} `json:"extendedProperties,omitempty"` + ExtendedProperties any `json:"extendedProperties,omitempty"` // The password for Basic authentication of the Salesforce instance. Password SecretBaseClassification `json:"password,omitempty"` @@ -23664,7 +23780,7 @@ type SalesforceServiceCloudLinkedServiceTypeProperties struct { SecurityToken SecretBaseClassification `json:"securityToken,omitempty"` // The username for Basic authentication of the Salesforce instance. Type: string (or Expression with resultType string). - Username interface{} `json:"username,omitempty"` + Username any `json:"username,omitempty"` } // SalesforceServiceCloudObjectDataset - The Salesforce Service Cloud object dataset. @@ -23676,10 +23792,10 @@ type SalesforceServiceCloudObjectDataset struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -23692,10 +23808,10 @@ type SalesforceServiceCloudObjectDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` // Salesforce Service Cloud object dataset properties. TypeProperties *SalesforceServiceCloudObjectDatasetTypeProperties `json:"typeProperties,omitempty"` @@ -23719,7 +23835,7 @@ func (s *SalesforceServiceCloudObjectDataset) GetDataset() *Dataset { // SalesforceServiceCloudObjectDatasetTypeProperties - Salesforce Service Cloud object dataset properties. type SalesforceServiceCloudObjectDatasetTypeProperties struct { // The Salesforce Service Cloud object API name. Type: string (or Expression with resultType string). - ObjectAPIName interface{} `json:"objectApiName,omitempty"` + ObjectAPIName any `json:"objectApiName,omitempty"` } // SalesforceServiceCloudSink - A copy activity Salesforce Service Cloud sink. @@ -23728,14 +23844,14 @@ type SalesforceServiceCloudSink struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The name of the external ID field for upsert operation. Default value is 'Id' column. Type: string (or Expression with // resultType string). - ExternalIDFieldName interface{} `json:"externalIdFieldName,omitempty"` + ExternalIDFieldName any `json:"externalIdFieldName,omitempty"` // The flag indicating whether or not to ignore null values from input dataset (except key fields) during write operation. // Default value is false. If set it to true, it means ADF will leave the data in @@ -23743,22 +23859,22 @@ type SalesforceServiceCloudSink struct { // operation, versus ADF will update the data in the destination object to NULL when // doing upsert/update operation and insert NULL value when doing insert operation. Type: boolean (or Expression with resultType // boolean). - IgnoreNullValues interface{} `json:"ignoreNullValues,omitempty"` + IgnoreNullValues any `json:"ignoreNullValues,omitempty"` // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + SinkRetryCount any `json:"sinkRetryCount,omitempty"` // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + SinkRetryWait any `json:"sinkRetryWait,omitempty"` // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + WriteBatchSize any `json:"writeBatchSize,omitempty"` // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + WriteBatchTimeout any `json:"writeBatchTimeout,omitempty"` // The write behavior for the operation. Default is Insert. WriteBehavior *SalesforceSinkWriteBehavior `json:"writeBehavior,omitempty"` @@ -23785,28 +23901,28 @@ type SalesforceServiceCloudSource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // Database query. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any `json:"query,omitempty"` // The read behavior for the operation. Default is Query. ReadBehavior *SalesforceSourceReadBehavior `json:"readBehavior,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type SalesforceServiceCloudSource. @@ -23827,14 +23943,14 @@ type SalesforceSink struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The name of the external ID field for upsert operation. Default value is 'Id' column. Type: string (or Expression with // resultType string). - ExternalIDFieldName interface{} `json:"externalIdFieldName,omitempty"` + ExternalIDFieldName any `json:"externalIdFieldName,omitempty"` // The flag indicating whether or not to ignore null values from input dataset (except key fields) during write operation. // Default value is false. If set it to true, it means ADF will leave the data in @@ -23842,22 +23958,22 @@ type SalesforceSink struct { // operation, versus ADF will update the data in the destination object to NULL when // doing upsert/update operation and insert NULL value when doing insert operation. Type: boolean (or Expression with resultType // boolean). - IgnoreNullValues interface{} `json:"ignoreNullValues,omitempty"` + IgnoreNullValues any `json:"ignoreNullValues,omitempty"` // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + SinkRetryCount any `json:"sinkRetryCount,omitempty"` // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + SinkRetryWait any `json:"sinkRetryWait,omitempty"` // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + WriteBatchSize any `json:"writeBatchSize,omitempty"` // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + WriteBatchTimeout any `json:"writeBatchTimeout,omitempty"` // The write behavior for the operation. Default is Insert. WriteBehavior *SalesforceSinkWriteBehavior `json:"writeBehavior,omitempty"` @@ -23884,31 +24000,31 @@ type SalesforceSource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // Database query. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any `json:"queryTimeout,omitempty"` // The read behavior for the operation. Default is Query. ReadBehavior *SalesforceSourceReadBehavior `json:"readBehavior,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type SalesforceSource. @@ -23946,10 +24062,10 @@ type SapBWLinkedService struct { TypeProperties *SapBWLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -23977,24 +24093,24 @@ func (s *SapBWLinkedService) GetLinkedService() *LinkedService { type SapBWLinkedServiceTypeProperties struct { // REQUIRED; Client ID of the client on the BW system. (Usually a three-digit decimal number represented as a string) Type: // string (or Expression with resultType string). - ClientID interface{} `json:"clientId,omitempty"` + ClientID any `json:"clientId,omitempty"` // REQUIRED; Host name of the SAP BW instance. Type: string (or Expression with resultType string). - Server interface{} `json:"server,omitempty"` + Server any `json:"server,omitempty"` // REQUIRED; System number of the BW system. (Usually a two-digit decimal number represented as a string.) Type: string (or // Expression with resultType string). - SystemNumber interface{} `json:"systemNumber,omitempty"` + SystemNumber any `json:"systemNumber,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // Password to access the SAP BW server. Password SecretBaseClassification `json:"password,omitempty"` // Username to access the SAP BW server. Type: string (or Expression with resultType string). - UserName interface{} `json:"userName,omitempty"` + UserName any `json:"userName,omitempty"` } // SapBwCubeDataset - The SAP BW cube dataset. @@ -24006,10 +24122,10 @@ type SapBwCubeDataset struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -24022,10 +24138,10 @@ type SapBwCubeDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` } // GetDataset implements the DatasetClassification interface for type SapBwCubeDataset. @@ -24050,28 +24166,28 @@ type SapBwSource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // MDX query. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type SapBwSource. @@ -24109,10 +24225,10 @@ type SapCloudForCustomerLinkedService struct { TypeProperties *SapCloudForCustomerLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -24140,18 +24256,18 @@ func (s *SapCloudForCustomerLinkedService) GetLinkedService() *LinkedService { type SapCloudForCustomerLinkedServiceTypeProperties struct { // REQUIRED; The URL of SAP Cloud for Customer OData API. For example, '[https://[tenantname].crm.ondemand.com/sap/c4c/odata/v1]'. // Type: string (or Expression with resultType string). - URL interface{} `json:"url,omitempty"` + URL any `json:"url,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Either encryptedCredential or username/password must be provided. Type: // string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // The password for Basic authentication. Password SecretBaseClassification `json:"password,omitempty"` // The username for Basic authentication. Type: string (or Expression with resultType string). - Username interface{} `json:"username,omitempty"` + Username any `json:"username,omitempty"` } // SapCloudForCustomerResourceDataset - The path of the SAP Cloud for Customer OData entity. @@ -24166,10 +24282,10 @@ type SapCloudForCustomerResourceDataset struct { TypeProperties *SapCloudForCustomerResourceDatasetTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -24182,10 +24298,10 @@ type SapCloudForCustomerResourceDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` } // GetDataset implements the DatasetClassification interface for type SapCloudForCustomerResourceDataset. @@ -24206,7 +24322,7 @@ func (s *SapCloudForCustomerResourceDataset) GetDataset() *Dataset { // SapCloudForCustomerResourceDatasetTypeProperties - Sap Cloud For Customer OData resource dataset properties. type SapCloudForCustomerResourceDatasetTypeProperties struct { // REQUIRED; The path of the SAP Cloud for Customer OData entity. Type: string (or Expression with resultType string). - Path interface{} `json:"path,omitempty"` + Path any `json:"path,omitempty"` } // SapCloudForCustomerSink - A copy activity SAP Cloud for Customer sink. @@ -24215,30 +24331,30 @@ type SapCloudForCustomerSink struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The timeout (TimeSpan) to get an HTTP response. It is the timeout to get a response, not the timeout to read response data. // Default value: 00:05:00. Type: string (or Expression with resultType // string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - HTTPRequestTimeout interface{} `json:"httpRequestTimeout,omitempty"` + HTTPRequestTimeout any `json:"httpRequestTimeout,omitempty"` // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + SinkRetryCount any `json:"sinkRetryCount,omitempty"` // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + SinkRetryWait any `json:"sinkRetryWait,omitempty"` // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + WriteBatchSize any `json:"writeBatchSize,omitempty"` // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + WriteBatchTimeout any `json:"writeBatchTimeout,omitempty"` // The write behavior for the operation. Default is 'Insert'. WriteBehavior *SapCloudForCustomerSinkWriteBehavior `json:"writeBehavior,omitempty"` @@ -24265,33 +24381,33 @@ type SapCloudForCustomerSource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The timeout (TimeSpan) to get an HTTP response. It is the timeout to get a response, not the timeout to read response data. // Default value: 00:05:00. Type: string (or Expression with resultType // string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - HTTPRequestTimeout interface{} `json:"httpRequestTimeout,omitempty"` + HTTPRequestTimeout any `json:"httpRequestTimeout,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // SAP Cloud for Customer OData query. For example, "$top=1". Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type SapCloudForCustomerSource. @@ -24329,10 +24445,10 @@ type SapEccLinkedService struct { TypeProperties *SapEccLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -24386,10 +24502,10 @@ type SapEccResourceDataset struct { TypeProperties *SapEccResourceDatasetTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -24402,10 +24518,10 @@ type SapEccResourceDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` } // GetDataset implements the DatasetClassification interface for type SapEccResourceDataset. @@ -24426,7 +24542,7 @@ func (s *SapEccResourceDataset) GetDataset() *Dataset { // SapEccResourceDatasetTypeProperties - Sap ECC OData resource dataset properties. type SapEccResourceDatasetTypeProperties struct { // REQUIRED; The path of the SAP ECC OData entity. Type: string (or Expression with resultType string). - Path interface{} `json:"path,omitempty"` + Path any `json:"path,omitempty"` } // SapEccSource - A copy activity source for SAP ECC source. @@ -24436,33 +24552,33 @@ type SapEccSource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The timeout (TimeSpan) to get an HTTP response. It is the timeout to get a response, not the timeout to read response data. // Default value: 00:05:00. Type: string (or Expression with resultType // string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - HTTPRequestTimeout interface{} `json:"httpRequestTimeout,omitempty"` + HTTPRequestTimeout any `json:"httpRequestTimeout,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // SAP ECC OData query. For example, "$top=1". Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type SapEccSource. @@ -24500,10 +24616,10 @@ type SapHanaLinkedService struct { TypeProperties *SapHanaLinkedServiceProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -24533,27 +24649,27 @@ type SapHanaLinkedServiceProperties struct { AuthenticationType *SapHanaAuthenticationType `json:"authenticationType,omitempty"` // SAP HANA ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` + ConnectionString any `json:"connectionString,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // Password to access the SAP HANA server. Password SecretBaseClassification `json:"password,omitempty"` // Host name of the SAP HANA server. Type: string (or Expression with resultType string). - Server interface{} `json:"server,omitempty"` + Server any `json:"server,omitempty"` // Username to access the SAP HANA server. Type: string (or Expression with resultType string). - UserName interface{} `json:"userName,omitempty"` + UserName any `json:"userName,omitempty"` } // SapHanaPartitionSettings - The settings that will be leveraged for SAP HANA source partitioning. type SapHanaPartitionSettings struct { // The name of the column that will be used for proceeding range partitioning. Type: string (or Expression with resultType // string). - PartitionColumnName interface{} `json:"partitionColumnName,omitempty"` + PartitionColumnName any `json:"partitionColumnName,omitempty"` } // SapHanaSource - A copy activity source for SAP HANA source. @@ -24563,38 +24679,38 @@ type SapHanaSource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // The packet size of data read from SAP HANA. Type: integer(or Expression with resultType integer). - PacketSize interface{} `json:"packetSize,omitempty"` + PacketSize any `json:"packetSize,omitempty"` // The partition mechanism that will be used for SAP HANA read in parallel. Possible values include: "None", "PhysicalPartitionsOfTable", // "SapHanaDynamicRange". - PartitionOption interface{} `json:"partitionOption,omitempty"` + PartitionOption any `json:"partitionOption,omitempty"` // The settings that will be leveraged for SAP HANA source partitioning. PartitionSettings *SapHanaPartitionSettings `json:"partitionSettings,omitempty"` // SAP HANA Sql query. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type SapHanaSource. @@ -24632,10 +24748,10 @@ type SapHanaTableDataset struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -24648,10 +24764,10 @@ type SapHanaTableDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` // SAP HANA Table properties. TypeProperties *SapHanaTableDatasetTypeProperties `json:"typeProperties,omitempty"` @@ -24675,10 +24791,10 @@ func (s *SapHanaTableDataset) GetDataset() *Dataset { // SapHanaTableDatasetTypeProperties - SAP HANA Table properties. type SapHanaTableDatasetTypeProperties struct { // The schema name of SAP HANA. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // The table name of SAP HANA. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` + Table any `json:"table,omitempty"` } // SapOdpLinkedService - SAP ODP Linked Service. @@ -24690,10 +24806,10 @@ type SapOdpLinkedService struct { TypeProperties *SapOdpLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -24721,64 +24837,64 @@ func (s *SapOdpLinkedService) GetLinkedService() *LinkedService { type SapOdpLinkedServiceTypeProperties struct { // Client ID of the client on the SAP system where the table is located. (Usually a three-digit decimal number represented // as a string) Type: string (or Expression with resultType string). - ClientID interface{} `json:"clientId,omitempty"` + ClientID any `json:"clientId,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // Language of the SAP system where the table is located. The default value is EN. Type: string (or Expression with resultType // string). - Language interface{} `json:"language,omitempty"` + Language any `json:"language,omitempty"` // The Logon Group for the SAP System. Type: string (or Expression with resultType string). - LogonGroup interface{} `json:"logonGroup,omitempty"` + LogonGroup any `json:"logonGroup,omitempty"` // The hostname of the SAP Message Server. Type: string (or Expression with resultType string). - MessageServer interface{} `json:"messageServer,omitempty"` + MessageServer any `json:"messageServer,omitempty"` // The service name or port number of the Message Server. Type: string (or Expression with resultType string). - MessageServerService interface{} `json:"messageServerService,omitempty"` + MessageServerService any `json:"messageServerService,omitempty"` // Password to access the SAP server where the table is located. Password SecretBaseClassification `json:"password,omitempty"` // Host name of the SAP instance where the table is located. Type: string (or Expression with resultType string). - Server interface{} `json:"server,omitempty"` + Server any `json:"server,omitempty"` // External security product's library to access the SAP server where the table is located. Type: string (or Expression with // resultType string). - SncLibraryPath interface{} `json:"sncLibraryPath,omitempty"` + SncLibraryPath any `json:"sncLibraryPath,omitempty"` // SNC activation indicator to access the SAP server where the table is located. Must be either 0 (off) or 1 (on). Type: string // (or Expression with resultType string). - SncMode interface{} `json:"sncMode,omitempty"` + SncMode any `json:"sncMode,omitempty"` // Initiator's SNC name to access the SAP server where the table is located. Type: string (or Expression with resultType string). - SncMyName interface{} `json:"sncMyName,omitempty"` + SncMyName any `json:"sncMyName,omitempty"` // Communication partner's SNC name to access the SAP server where the table is located. Type: string (or Expression with // resultType string). - SncPartnerName interface{} `json:"sncPartnerName,omitempty"` + SncPartnerName any `json:"sncPartnerName,omitempty"` // SNC Quality of Protection. Allowed value include: 1, 2, 3, 8, 9. Type: string (or Expression with resultType string). - SncQop interface{} `json:"sncQop,omitempty"` + SncQop any `json:"sncQop,omitempty"` // The subscriber name. Type: string (or Expression with resultType string). - SubscriberName interface{} `json:"subscriberName,omitempty"` + SubscriberName any `json:"subscriberName,omitempty"` // SystemID of the SAP system where the table is located. Type: string (or Expression with resultType string). - SystemID interface{} `json:"systemId,omitempty"` + SystemID any `json:"systemId,omitempty"` // System number of the SAP system where the table is located. (Usually a two-digit decimal number represented as a string.) // Type: string (or Expression with resultType string). - SystemNumber interface{} `json:"systemNumber,omitempty"` + SystemNumber any `json:"systemNumber,omitempty"` // Username to access the SAP server where the table is located. Type: string (or Expression with resultType string). - UserName interface{} `json:"userName,omitempty"` + UserName any `json:"userName,omitempty"` // SNC X509 certificate file path. Type: string (or Expression with resultType string). - X509CertificatePath interface{} `json:"x509CertificatePath,omitempty"` + X509CertificatePath any `json:"x509CertificatePath,omitempty"` } // SapOdpResourceDataset - SAP ODP Resource properties. @@ -24793,10 +24909,10 @@ type SapOdpResourceDataset struct { TypeProperties *SapOdpResourceDatasetTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -24809,10 +24925,10 @@ type SapOdpResourceDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` } // GetDataset implements the DatasetClassification interface for type SapOdpResourceDataset. @@ -24833,10 +24949,10 @@ func (s *SapOdpResourceDataset) GetDataset() *Dataset { // SapOdpResourceDatasetTypeProperties - SAP ODP Resource properties. type SapOdpResourceDatasetTypeProperties struct { // REQUIRED; The context of the SAP ODP Object. Type: string (or Expression with resultType string). - Context interface{} `json:"context,omitempty"` + Context any `json:"context,omitempty"` // REQUIRED; The name of the SAP ODP Object. Type: string (or Expression with resultType string). - ObjectName interface{} `json:"objectName,omitempty"` + ObjectName any `json:"objectName,omitempty"` } // SapOdpSource - A copy activity source for SAP ODP source. @@ -24846,40 +24962,40 @@ type SapOdpSource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The extraction mode. Allowed value include: Full, Delta and Recovery. The default value is Full. Type: string (or Expression // with resultType string). - ExtractionMode interface{} `json:"extractionMode,omitempty"` + ExtractionMode any `json:"extractionMode,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // Specifies the columns to be selected from source data. Type: array of objects(projection) (or Expression with resultType // array of objects). - Projection interface{} `json:"projection,omitempty"` + Projection any `json:"projection,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any `json:"queryTimeout,omitempty"` // Specifies the selection conditions from source data. Type: array of objects(selection) (or Expression with resultType array // of objects). - Selection interface{} `json:"selection,omitempty"` + Selection any `json:"selection,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` // The subscriber process to manage the delta process. Type: string (or Expression with resultType string). - SubscriberProcess interface{} `json:"subscriberProcess,omitempty"` + SubscriberProcess any `json:"subscriberProcess,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type SapOdpSource. @@ -24917,10 +25033,10 @@ type SapOpenHubLinkedService struct { TypeProperties *SapOpenHubLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -24949,42 +25065,42 @@ func (s *SapOpenHubLinkedService) GetLinkedService() *LinkedService { type SapOpenHubLinkedServiceTypeProperties struct { // Client ID of the client on the BW system where the open hub destination is located. (Usually a three-digit decimal number // represented as a string) Type: string (or Expression with resultType string). - ClientID interface{} `json:"clientId,omitempty"` + ClientID any `json:"clientId,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // Language of the BW system where the open hub destination is located. The default value is EN. Type: string (or Expression // with resultType string). - Language interface{} `json:"language,omitempty"` + Language any `json:"language,omitempty"` // The Logon Group for the SAP System. Type: string (or Expression with resultType string). - LogonGroup interface{} `json:"logonGroup,omitempty"` + LogonGroup any `json:"logonGroup,omitempty"` // The hostname of the SAP Message Server. Type: string (or Expression with resultType string). - MessageServer interface{} `json:"messageServer,omitempty"` + MessageServer any `json:"messageServer,omitempty"` // The service name or port number of the Message Server. Type: string (or Expression with resultType string). - MessageServerService interface{} `json:"messageServerService,omitempty"` + MessageServerService any `json:"messageServerService,omitempty"` // Password to access the SAP BW server where the open hub destination is located. Password SecretBaseClassification `json:"password,omitempty"` // Host name of the SAP BW instance where the open hub destination is located. Type: string (or Expression with resultType // string). - Server interface{} `json:"server,omitempty"` + Server any `json:"server,omitempty"` // SystemID of the SAP system where the table is located. Type: string (or Expression with resultType string). - SystemID interface{} `json:"systemId,omitempty"` + SystemID any `json:"systemId,omitempty"` // System number of the BW system where the open hub destination is located. (Usually a two-digit decimal number represented // as a string.) Type: string (or Expression with resultType string). - SystemNumber interface{} `json:"systemNumber,omitempty"` + SystemNumber any `json:"systemNumber,omitempty"` // Username to access the SAP BW server where the open hub destination is located. Type: string (or Expression with resultType // string). - UserName interface{} `json:"userName,omitempty"` + UserName any `json:"userName,omitempty"` } // SapOpenHubSource - A copy activity source for SAP Business Warehouse Open Hub Destination source. @@ -24994,42 +25110,42 @@ type SapOpenHubSource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // The ID of request for delta loading. Once it is set, only data with requestId larger than the value of this property will // be retrieved. The default value is 0. Type: integer (or Expression with // resultType integer ). - BaseRequestID interface{} `json:"baseRequestId,omitempty"` + BaseRequestID any `json:"baseRequestId,omitempty"` // Specifies the custom RFC function module that will be used to read data from SAP Table. Type: string (or Expression with // resultType string). - CustomRFCReadTableFunctionModule interface{} `json:"customRfcReadTableFunctionModule,omitempty"` + CustomRFCReadTableFunctionModule any `json:"customRfcReadTableFunctionModule,omitempty"` // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // Whether to exclude the records of the last request. The default value is true. Type: boolean (or Expression with resultType // boolean). - ExcludeLastRequest interface{} `json:"excludeLastRequest,omitempty"` + ExcludeLastRequest any `json:"excludeLastRequest,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any `json:"queryTimeout,omitempty"` // The single character that will be used as delimiter passed to SAP RFC as well as splitting the output data retrieved. Type: // string (or Expression with resultType string). - SapDataColumnDelimiter interface{} `json:"sapDataColumnDelimiter,omitempty"` + SapDataColumnDelimiter any `json:"sapDataColumnDelimiter,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type SapOpenHubSource. @@ -25070,10 +25186,10 @@ type SapOpenHubTableDataset struct { TypeProperties *SapOpenHubTableDatasetTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -25086,10 +25202,10 @@ type SapOpenHubTableDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` } // GetDataset implements the DatasetClassification interface for type SapOpenHubTableDataset. @@ -25111,16 +25227,16 @@ func (s *SapOpenHubTableDataset) GetDataset() *Dataset { type SapOpenHubTableDatasetTypeProperties struct { // REQUIRED; The name of the Open Hub Destination with destination type as Database Table. Type: string (or Expression with // resultType string). - OpenHubDestinationName interface{} `json:"openHubDestinationName,omitempty"` + OpenHubDestinationName any `json:"openHubDestinationName,omitempty"` // The ID of request for delta loading. Once it is set, only data with requestId larger than the value of this property will // be retrieved. The default value is 0. Type: integer (or Expression with // resultType integer ). - BaseRequestID interface{} `json:"baseRequestId,omitempty"` + BaseRequestID any `json:"baseRequestId,omitempty"` // Whether to exclude the records of the last request. The default value is true. Type: boolean (or Expression with resultType // boolean). - ExcludeLastRequest interface{} `json:"excludeLastRequest,omitempty"` + ExcludeLastRequest any `json:"excludeLastRequest,omitempty"` } // SapTableLinkedService - SAP Table Linked Service. @@ -25132,10 +25248,10 @@ type SapTableLinkedService struct { TypeProperties *SapTableLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -25163,76 +25279,76 @@ func (s *SapTableLinkedService) GetLinkedService() *LinkedService { type SapTableLinkedServiceTypeProperties struct { // Client ID of the client on the SAP system where the table is located. (Usually a three-digit decimal number represented // as a string) Type: string (or Expression with resultType string). - ClientID interface{} `json:"clientId,omitempty"` + ClientID any `json:"clientId,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // Language of the SAP system where the table is located. The default value is EN. Type: string (or Expression with resultType // string). - Language interface{} `json:"language,omitempty"` + Language any `json:"language,omitempty"` // The Logon Group for the SAP System. Type: string (or Expression with resultType string). - LogonGroup interface{} `json:"logonGroup,omitempty"` + LogonGroup any `json:"logonGroup,omitempty"` // The hostname of the SAP Message Server. Type: string (or Expression with resultType string). - MessageServer interface{} `json:"messageServer,omitempty"` + MessageServer any `json:"messageServer,omitempty"` // The service name or port number of the Message Server. Type: string (or Expression with resultType string). - MessageServerService interface{} `json:"messageServerService,omitempty"` + MessageServerService any `json:"messageServerService,omitempty"` // Password to access the SAP server where the table is located. Password SecretBaseClassification `json:"password,omitempty"` // Host name of the SAP instance where the table is located. Type: string (or Expression with resultType string). - Server interface{} `json:"server,omitempty"` + Server any `json:"server,omitempty"` // External security product's library to access the SAP server where the table is located. Type: string (or Expression with // resultType string). - SncLibraryPath interface{} `json:"sncLibraryPath,omitempty"` + SncLibraryPath any `json:"sncLibraryPath,omitempty"` // SNC activation indicator to access the SAP server where the table is located. Must be either 0 (off) or 1 (on). Type: string // (or Expression with resultType string). - SncMode interface{} `json:"sncMode,omitempty"` + SncMode any `json:"sncMode,omitempty"` // Initiator's SNC name to access the SAP server where the table is located. Type: string (or Expression with resultType string). - SncMyName interface{} `json:"sncMyName,omitempty"` + SncMyName any `json:"sncMyName,omitempty"` // Communication partner's SNC name to access the SAP server where the table is located. Type: string (or Expression with // resultType string). - SncPartnerName interface{} `json:"sncPartnerName,omitempty"` + SncPartnerName any `json:"sncPartnerName,omitempty"` // SNC Quality of Protection. Allowed value include: 1, 2, 3, 8, 9. Type: string (or Expression with resultType string). - SncQop interface{} `json:"sncQop,omitempty"` + SncQop any `json:"sncQop,omitempty"` // SystemID of the SAP system where the table is located. Type: string (or Expression with resultType string). - SystemID interface{} `json:"systemId,omitempty"` + SystemID any `json:"systemId,omitempty"` // System number of the SAP system where the table is located. (Usually a two-digit decimal number represented as a string.) // Type: string (or Expression with resultType string). - SystemNumber interface{} `json:"systemNumber,omitempty"` + SystemNumber any `json:"systemNumber,omitempty"` // Username to access the SAP server where the table is located. Type: string (or Expression with resultType string). - UserName interface{} `json:"userName,omitempty"` + UserName any `json:"userName,omitempty"` } // SapTablePartitionSettings - The settings that will be leveraged for SAP table source partitioning. type SapTablePartitionSettings struct { // The maximum value of partitions the table will be split into. Type: integer (or Expression with resultType string). - MaxPartitionsNumber interface{} `json:"maxPartitionsNumber,omitempty"` + MaxPartitionsNumber any `json:"maxPartitionsNumber,omitempty"` // The name of the column that will be used for proceeding range partitioning. Type: string (or Expression with resultType // string). - PartitionColumnName interface{} `json:"partitionColumnName,omitempty"` + PartitionColumnName any `json:"partitionColumnName,omitempty"` // The minimum value of column specified in partitionColumnName that will be used for proceeding range partitioning. Type: // string (or Expression with resultType string). - PartitionLowerBound interface{} `json:"partitionLowerBound,omitempty"` + PartitionLowerBound any `json:"partitionLowerBound,omitempty"` // The maximum value of column specified in partitionColumnName that will be used for proceeding range partitioning. Type: // string (or Expression with resultType string). - PartitionUpperBound interface{} `json:"partitionUpperBound,omitempty"` + PartitionUpperBound any `json:"partitionUpperBound,omitempty"` } // SapTableResourceDataset - SAP Table Resource properties. @@ -25247,10 +25363,10 @@ type SapTableResourceDataset struct { TypeProperties *SapTableResourceDatasetTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -25263,10 +25379,10 @@ type SapTableResourceDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` } // GetDataset implements the DatasetClassification interface for type SapTableResourceDataset. @@ -25287,7 +25403,7 @@ func (s *SapTableResourceDataset) GetDataset() *Dataset { // SapTableResourceDatasetTypeProperties - SAP Table Resource properties. type SapTableResourceDatasetTypeProperties struct { // REQUIRED; The name of the SAP Table. Type: string (or Expression with resultType string). - TableName interface{} `json:"tableName,omitempty"` + TableName any `json:"tableName,omitempty"` } // SapTableSource - A copy activity source for SAP Table source. @@ -25297,59 +25413,59 @@ type SapTableSource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Specifies the maximum number of rows that will be retrieved at a time when retrieving data from SAP Table. Type: integer // (or Expression with resultType integer). - BatchSize interface{} `json:"batchSize,omitempty"` + BatchSize any `json:"batchSize,omitempty"` // Specifies the custom RFC function module that will be used to read data from SAP Table. Type: string (or Expression with // resultType string). - CustomRFCReadTableFunctionModule interface{} `json:"customRfcReadTableFunctionModule,omitempty"` + CustomRFCReadTableFunctionModule any `json:"customRfcReadTableFunctionModule,omitempty"` // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // The partition mechanism that will be used for SAP table read in parallel. Possible values include: "None", "PartitionOnInt", // "PartitionOnCalendarYear", "PartitionOnCalendarMonth", // "PartitionOnCalendarDate", "PartitionOnTime". - PartitionOption interface{} `json:"partitionOption,omitempty"` + PartitionOption any `json:"partitionOption,omitempty"` // The settings that will be leveraged for SAP table source partitioning. PartitionSettings *SapTablePartitionSettings `json:"partitionSettings,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any `json:"queryTimeout,omitempty"` // The fields of the SAP table that will be retrieved. For example, column0, column1. Type: string (or Expression with resultType // string). - RFCTableFields interface{} `json:"rfcTableFields,omitempty"` + RFCTableFields any `json:"rfcTableFields,omitempty"` // The options for the filtering of the SAP Table. For example, COLUMN0 EQ SOME VALUE. Type: string (or Expression with resultType // string). - RFCTableOptions interface{} `json:"rfcTableOptions,omitempty"` + RFCTableOptions any `json:"rfcTableOptions,omitempty"` // The number of rows to be retrieved. Type: integer(or Expression with resultType integer). - RowCount interface{} `json:"rowCount,omitempty"` + RowCount any `json:"rowCount,omitempty"` // The number of rows that will be skipped. Type: integer (or Expression with resultType integer). - RowSkips interface{} `json:"rowSkips,omitempty"` + RowSkips any `json:"rowSkips,omitempty"` // The single character that will be used as delimiter passed to SAP RFC as well as splitting the output data retrieved. Type: // string (or Expression with resultType string). - SapDataColumnDelimiter interface{} `json:"sapDataColumnDelimiter,omitempty"` + SapDataColumnDelimiter any `json:"sapDataColumnDelimiter,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type SapTableSource. @@ -25387,10 +25503,10 @@ type ScheduleTrigger struct { TypeProperties *ScheduleTriggerTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the trigger. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Trigger description. Description *string `json:"description,omitempty"` @@ -25428,7 +25544,7 @@ func (s *ScheduleTrigger) GetTrigger() *Trigger { // ScheduleTriggerRecurrence - The workflow trigger recurrence. type ScheduleTriggerRecurrence struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // The end time. EndTime *time.Time `json:"endTime,omitempty"` @@ -25461,7 +25577,7 @@ type ScriptAction struct { Name *string `json:"name,omitempty"` // REQUIRED; The node types on which the script action should be executed. - Roles interface{} `json:"roles,omitempty"` + Roles any `json:"roles,omitempty"` // REQUIRED; The URI for the script action. URI *string `json:"uri,omitempty"` @@ -25482,7 +25598,7 @@ type ScriptActivity struct { TypeProperties *ScriptActivityTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` @@ -25532,7 +25648,7 @@ type ScriptActivityParameter struct { Direction *ScriptActivityParameterDirection `json:"direction,omitempty"` // The name of the parameter. Type: string (or Expression with resultType string). - Name interface{} `json:"name,omitempty"` + Name any `json:"name,omitempty"` // The size of the output direction parameter. Size *int32 `json:"size,omitempty"` @@ -25541,13 +25657,13 @@ type ScriptActivityParameter struct { Type *ScriptActivityParameterType `json:"type,omitempty"` // The value of the parameter. - Value interface{} `json:"value,omitempty"` + Value any `json:"value,omitempty"` } // ScriptActivityScriptBlock - Script block of scripts. type ScriptActivityScriptBlock struct { // REQUIRED; The query text. Type: string (or Expression with resultType string). - Text interface{} `json:"text,omitempty"` + Text any `json:"text,omitempty"` // REQUIRED; The type of the query. Type: string. Type *ScriptType `json:"type,omitempty"` @@ -25562,7 +25678,7 @@ type ScriptActivityTypeProperties struct { LogSettings *ScriptActivityTypePropertiesLogSettings `json:"logSettings,omitempty"` // ScriptBlock execution timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - ScriptBlockExecutionTimeout interface{} `json:"scriptBlockExecutionTimeout,omitempty"` + ScriptBlockExecutionTimeout any `json:"scriptBlockExecutionTimeout,omitempty"` // Array of script blocks. Type: array. Scripts []*ScriptActivityScriptBlock `json:"scripts,omitempty"` @@ -25637,7 +25753,7 @@ type SelfHostedIntegrationRuntime struct { Type *IntegrationRuntimeType `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Integration runtime description. Description *string `json:"description,omitempty"` @@ -25659,7 +25775,7 @@ func (s *SelfHostedIntegrationRuntime) GetIntegrationRuntime() *IntegrationRunti // SelfHostedIntegrationRuntimeNode - Properties of Self-hosted integration runtime node. type SelfHostedIntegrationRuntimeNode struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // READ-ONLY; The integration runtime capabilities dictionary Capabilities map[string]*string `json:"capabilities,omitempty" azure:"ro"` @@ -25725,7 +25841,7 @@ type SelfHostedIntegrationRuntimeStatus struct { TypeProperties *SelfHostedIntegrationRuntimeStatusTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // READ-ONLY; The data factory name which the integration runtime belong to. DataFactoryName *string `json:"dataFactoryName,omitempty" azure:"ro"` @@ -25811,10 +25927,10 @@ type ServiceNowLinkedService struct { TypeProperties *ServiceNowLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -25844,33 +25960,33 @@ type ServiceNowLinkedServiceTypeProperties struct { AuthenticationType *ServiceNowAuthenticationType `json:"authenticationType,omitempty"` // REQUIRED; The endpoint of the ServiceNow server. (i.e. .service-now.com) - Endpoint interface{} `json:"endpoint,omitempty"` + Endpoint any `json:"endpoint,omitempty"` // The client id for OAuth2 authentication. - ClientID interface{} `json:"clientId,omitempty"` + ClientID any `json:"clientId,omitempty"` // The client secret for OAuth2 authentication. ClientSecret SecretBaseClassification `json:"clientSecret,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // The password corresponding to the user name for Basic and OAuth2 authentication. Password SecretBaseClassification `json:"password,omitempty"` // Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. - UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` + UseEncryptedEndpoints any `json:"useEncryptedEndpoints,omitempty"` // Specifies whether to require the host name in the server's certificate to match the host name of the server when connecting // over SSL. The default value is true. - UseHostVerification interface{} `json:"useHostVerification,omitempty"` + UseHostVerification any `json:"useHostVerification,omitempty"` // Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. - UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` + UsePeerVerification any `json:"usePeerVerification,omitempty"` // The user name used to connect to the ServiceNow server for Basic and OAuth2 authentication. - Username interface{} `json:"username,omitempty"` + Username any `json:"username,omitempty"` } // ServiceNowObjectDataset - ServiceNow server dataset. @@ -25882,10 +25998,10 @@ type ServiceNowObjectDataset struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -25898,10 +26014,10 @@ type ServiceNowObjectDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` // Properties specific to this dataset type. TypeProperties *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` @@ -25929,28 +26045,28 @@ type ServiceNowSource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type ServiceNowSource. @@ -25979,6 +26095,46 @@ func (s *ServiceNowSource) GetTabularSource() *TabularSource { } } +// ServicePrincipalCredential - Service principal credential. +type ServicePrincipalCredential struct { + // REQUIRED; Type of credential. + Type *string `json:"type,omitempty"` + + // REQUIRED; Service Principal credential properties. + TypeProperties *ServicePrincipalCredentialTypeProperties `json:"typeProperties,omitempty"` + + // OPTIONAL; Contains additional key/value pairs not defined in the schema. + AdditionalProperties map[string]any + + // List of tags that can be used for describing the Credential. + Annotations []any `json:"annotations,omitempty"` + + // Credential description. + Description *string `json:"description,omitempty"` +} + +// GetCredential implements the CredentialClassification interface for type ServicePrincipalCredential. +func (s *ServicePrincipalCredential) GetCredential() *Credential { + return &Credential{ + Type: s.Type, + Description: s.Description, + Annotations: s.Annotations, + AdditionalProperties: s.AdditionalProperties, + } +} + +// ServicePrincipalCredentialTypeProperties - Service Principal credential type properties. +type ServicePrincipalCredentialTypeProperties struct { + // The app ID of the service principal used to authenticate + ServicePrincipalID any `json:"servicePrincipalId,omitempty"` + + // The key of the service principal used to authenticate. + ServicePrincipalKey *AzureKeyVaultSecretReference `json:"servicePrincipalKey,omitempty"` + + // The ID of the tenant to which the service principal belongs + Tenant any `json:"tenant,omitempty"` +} + // SetVariableActivity - Set value for a Variable. type SetVariableActivity struct { // REQUIRED; Activity name. @@ -25991,7 +26147,7 @@ type SetVariableActivity struct { TypeProperties *SetVariableActivityTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` @@ -26030,7 +26186,7 @@ func (s *SetVariableActivity) GetControlActivity() *ControlActivity { // SetVariableActivityTypeProperties - SetVariable activity properties. type SetVariableActivityTypeProperties struct { // Value to be set. Could be a static value or Expression - Value interface{} `json:"value,omitempty"` + Value any `json:"value,omitempty"` // Name of the variable whose value needs to be set. VariableName *string `json:"variableName,omitempty"` @@ -26042,13 +26198,13 @@ type SftpLocation struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Specify the file name of dataset. Type: string (or Expression with resultType string). - FileName interface{} `json:"fileName,omitempty"` + FileName any `json:"fileName,omitempty"` // Specify the folder path of dataset. Type: string (or Expression with resultType string) - FolderPath interface{} `json:"folderPath,omitempty"` + FolderPath any `json:"folderPath,omitempty"` } // GetDatasetLocation implements the DatasetLocationClassification interface for type SftpLocation. @@ -26067,46 +26223,46 @@ type SftpReadSettings struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Indicates whether the source files need to be deleted after copy completion. Default is false. Type: boolean (or Expression // with resultType boolean). - DeleteFilesAfterCompletion interface{} `json:"deleteFilesAfterCompletion,omitempty"` + DeleteFilesAfterCompletion any `json:"deleteFilesAfterCompletion,omitempty"` // If true, disable parallel reading within each file. Default is false. Type: boolean (or Expression with resultType boolean). - DisableChunking interface{} `json:"disableChunking,omitempty"` + DisableChunking any `json:"disableChunking,omitempty"` // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // Indicates whether to enable partition discovery. EnablePartitionDiscovery *bool `json:"enablePartitionDiscovery,omitempty"` // Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. // Type: string (or Expression with resultType string). - FileListPath interface{} `json:"fileListPath,omitempty"` + FileListPath any `json:"fileListPath,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // The end of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeEnd interface{} `json:"modifiedDatetimeEnd,omitempty"` + ModifiedDatetimeEnd any `json:"modifiedDatetimeEnd,omitempty"` // The start of file's modified datetime. Type: string (or Expression with resultType string). - ModifiedDatetimeStart interface{} `json:"modifiedDatetimeStart,omitempty"` + ModifiedDatetimeStart any `json:"modifiedDatetimeStart,omitempty"` // Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). - PartitionRootPath interface{} `json:"partitionRootPath,omitempty"` + PartitionRootPath any `json:"partitionRootPath,omitempty"` // If true, files under the folder path will be read recursively. Default is true. Type: boolean (or Expression with resultType // boolean). - Recursive interface{} `json:"recursive,omitempty"` + Recursive any `json:"recursive,omitempty"` // Sftp wildcardFileName. Type: string (or Expression with resultType string). - WildcardFileName interface{} `json:"wildcardFileName,omitempty"` + WildcardFileName any `json:"wildcardFileName,omitempty"` // Sftp wildcardFolderPath. Type: string (or Expression with resultType string). - WildcardFolderPath interface{} `json:"wildcardFolderPath,omitempty"` + WildcardFolderPath any `json:"wildcardFolderPath,omitempty"` } // GetStoreReadSettings implements the StoreReadSettingsClassification interface for type SftpReadSettings. @@ -26128,10 +26284,10 @@ type SftpServerLinkedService struct { TypeProperties *SftpServerLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -26158,18 +26314,18 @@ func (s *SftpServerLinkedService) GetLinkedService() *LinkedService { // SftpServerLinkedServiceTypeProperties - Properties specific to this linked service type. type SftpServerLinkedServiceTypeProperties struct { // REQUIRED; The SFTP server host name. Type: string (or Expression with resultType string). - Host interface{} `json:"host,omitempty"` + Host any `json:"host,omitempty"` // The authentication type to be used to connect to the FTP server. AuthenticationType *SftpAuthenticationType `json:"authenticationType,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // The host key finger-print of the SFTP server. When SkipHostKeyValidation is false, HostKeyFingerprint should be specified. // Type: string (or Expression with resultType string). - HostKeyFingerprint interface{} `json:"hostKeyFingerprint,omitempty"` + HostKeyFingerprint any `json:"hostKeyFingerprint,omitempty"` // The password to decrypt the SSH private key if the SSH private key is encrypted. PassPhrase SecretBaseClassification `json:"passPhrase,omitempty"` @@ -26179,7 +26335,7 @@ type SftpServerLinkedServiceTypeProperties struct { // The TCP port number that the SFTP server uses to listen for client connections. Default value is 22. Type: integer (or // Expression with resultType integer), minimum: 0. - Port interface{} `json:"port,omitempty"` + Port any `json:"port,omitempty"` // Base64 encoded SSH private key content for SshPublicKey authentication. For on-premises copy with SshPublicKey authentication, // either PrivateKeyPath or PrivateKeyContent should be specified. SSH @@ -26189,13 +26345,13 @@ type SftpServerLinkedServiceTypeProperties struct { // The SSH private key file path for SshPublicKey authentication. Only valid for on-premises copy. For on-premises copy with // SshPublicKey authentication, either PrivateKeyPath or PrivateKeyContent should // be specified. SSH private key should be OpenSSH format. Type: string (or Expression with resultType string). - PrivateKeyPath interface{} `json:"privateKeyPath,omitempty"` + PrivateKeyPath any `json:"privateKeyPath,omitempty"` // If true, skip the SSH host key validation. Default value is false. Type: boolean (or Expression with resultType boolean). - SkipHostKeyValidation interface{} `json:"skipHostKeyValidation,omitempty"` + SkipHostKeyValidation any `json:"skipHostKeyValidation,omitempty"` // The username used to log on to the SFTP server. Type: string (or Expression with resultType string). - UserName interface{} `json:"userName,omitempty"` + UserName any `json:"userName,omitempty"` } // SftpWriteSettings - Sftp write settings. @@ -26204,24 +26360,24 @@ type SftpWriteSettings struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // The type of copy behavior for copy sink. - CopyBehavior interface{} `json:"copyBehavior,omitempty"` + CopyBehavior any `json:"copyBehavior,omitempty"` // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // Specifies the timeout for writing each chunk to SFTP server. Default value: 01:00:00 (one hour). Type: string (or Expression // with resultType string). - OperationTimeout interface{} `json:"operationTimeout,omitempty"` + OperationTimeout any `json:"operationTimeout,omitempty"` // Upload to temporary file(s) and rename. Disable this option if your SFTP server doesn't support rename operation. Type: // boolean (or Expression with resultType boolean). - UseTempFileRename interface{} `json:"useTempFileRename,omitempty"` + UseTempFileRename any `json:"useTempFileRename,omitempty"` } // GetStoreWriteSettings implements the StoreWriteSettingsClassification interface for type SftpWriteSettings. @@ -26238,7 +26394,7 @@ func (s *SftpWriteSettings) GetStoreWriteSettings() *StoreWriteSettings { // SharePointOnlineListDatasetTypeProperties - Sharepoint online list dataset properties. type SharePointOnlineListDatasetTypeProperties struct { // The name of the SharePoint Online list. Type: string (or Expression with resultType string). - ListName interface{} `json:"listName,omitempty"` + ListName any `json:"listName,omitempty"` } // SharePointOnlineListLinkedService - SharePoint Online List linked service. @@ -26250,10 +26406,10 @@ type SharePointOnlineListLinkedService struct { TypeProperties *SharePointOnlineListLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -26282,7 +26438,7 @@ type SharePointOnlineListLinkedServiceTypeProperties struct { // REQUIRED; The application (client) ID of your application registered in Azure Active Directory. Make sure to grant SharePoint // site permission to this application. Type: string (or Expression with resultType // string). - ServicePrincipalID interface{} `json:"servicePrincipalId,omitempty"` + ServicePrincipalID any `json:"servicePrincipalId,omitempty"` // REQUIRED; The client secret of your application registered in Azure Active Directory. Type: string (or Expression with // resultType string). @@ -26290,15 +26446,15 @@ type SharePointOnlineListLinkedServiceTypeProperties struct { // REQUIRED; The URL of the SharePoint Online site. For example, https://contoso.sharepoint.com/sites/siteName. Type: string // (or Expression with resultType string). - SiteURL interface{} `json:"siteUrl,omitempty"` + SiteURL any `json:"siteUrl,omitempty"` // REQUIRED; The tenant ID under which your application resides. You can find it from Azure portal Active Directory overview // page. Type: string (or Expression with resultType string). - TenantID interface{} `json:"tenantId,omitempty"` + TenantID any `json:"tenantId,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` } // SharePointOnlineListResourceDataset - The sharepoint online list resource dataset. @@ -26310,10 +26466,10 @@ type SharePointOnlineListResourceDataset struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -26326,10 +26482,10 @@ type SharePointOnlineListResourceDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` // Sharepoint online list dataset properties. TypeProperties *SharePointOnlineListDatasetTypeProperties `json:"typeProperties,omitempty"` @@ -26356,28 +26512,28 @@ type SharePointOnlineListSource struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The wait time to get a response from SharePoint Online. Default value is 5 minutes (00:05:00). Type: string (or Expression // with resultType string), pattern: // ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - HTTPRequestTimeout interface{} `json:"httpRequestTimeout,omitempty"` + HTTPRequestTimeout any `json:"httpRequestTimeout,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // The OData query to filter the data in SharePoint Online list. For example, "$top=1". Type: string (or Expression with resultType // string). - Query interface{} `json:"query,omitempty"` + Query any `json:"query,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type SharePointOnlineListSource. @@ -26401,10 +26557,10 @@ type ShopifyLinkedService struct { TypeProperties *ShopifyLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -26431,24 +26587,24 @@ func (s *ShopifyLinkedService) GetLinkedService() *LinkedService { // ShopifyLinkedServiceTypeProperties - Shopify Service linked service properties. type ShopifyLinkedServiceTypeProperties struct { // REQUIRED; The endpoint of the Shopify server. (i.e. mystore.myshopify.com) - Host interface{} `json:"host,omitempty"` + Host any `json:"host,omitempty"` // The API access token that can be used to access Shopify’s data. The token won't expire if it is offline mode. AccessToken SecretBaseClassification `json:"accessToken,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. - UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` + UseEncryptedEndpoints any `json:"useEncryptedEndpoints,omitempty"` // Specifies whether to require the host name in the server's certificate to match the host name of the server when connecting // over SSL. The default value is true. - UseHostVerification interface{} `json:"useHostVerification,omitempty"` + UseHostVerification any `json:"useHostVerification,omitempty"` // Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. - UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` + UsePeerVerification any `json:"usePeerVerification,omitempty"` } // ShopifyObjectDataset - Shopify Service dataset. @@ -26460,10 +26616,10 @@ type ShopifyObjectDataset struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -26476,10 +26632,10 @@ type ShopifyObjectDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` // Properties specific to this dataset type. TypeProperties *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` @@ -26507,28 +26663,28 @@ type ShopifySource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type ShopifySource. @@ -26561,10 +26717,10 @@ func (s *ShopifySource) GetTabularSource() *TabularSource { type SkipErrorFile struct { // Skip if source/sink file changed by other concurrent write. Default is false. Type: boolean (or Expression with resultType // boolean). - DataInconsistency interface{} `json:"dataInconsistency,omitempty"` + DataInconsistency any `json:"dataInconsistency,omitempty"` // Skip if file is deleted by other client during copy. Default is true. Type: boolean (or Expression with resultType boolean). - FileMissing interface{} `json:"fileMissing,omitempty"` + FileMissing any `json:"fileMissing,omitempty"` } // SmartsheetLinkedService - Linked service for Smartsheet. @@ -26576,10 +26732,10 @@ type SmartsheetLinkedService struct { TypeProperties *SmartsheetLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -26610,7 +26766,7 @@ type SmartsheetLinkedServiceTypeProperties struct { // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` } // SnowflakeDataset - The snowflake dataset. @@ -26625,10 +26781,10 @@ type SnowflakeDataset struct { TypeProperties *SnowflakeDatasetTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -26641,10 +26797,10 @@ type SnowflakeDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` } // GetDataset implements the DatasetClassification interface for type SnowflakeDataset. @@ -26665,10 +26821,10 @@ func (s *SnowflakeDataset) GetDataset() *Dataset { // SnowflakeDatasetTypeProperties - Snowflake dataset properties. type SnowflakeDatasetTypeProperties struct { // The schema name of the Snowflake database. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // The table name of the Snowflake database. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` + Table any `json:"table,omitempty"` } // SnowflakeExportCopyCommand - Snowflake export command settings. @@ -26679,15 +26835,15 @@ type SnowflakeExportCopyCommand struct { // Additional copy options directly passed to snowflake Copy Command. Type: key value pairs (value should be string type) // (or Expression with resultType object). Example: "additionalCopyOptions": { "DATE // FORMAT": "MM/DD/YYYY", "TIMEFORMAT": "'HH24:MI:SS.FF'" } - AdditionalCopyOptions map[string]interface{} `json:"additionalCopyOptions,omitempty"` + AdditionalCopyOptions map[string]any `json:"additionalCopyOptions,omitempty"` // Additional format options directly passed to snowflake Copy Command. Type: key value pairs (value should be string type) // (or Expression with resultType object). Example: "additionalFormatOptions": { // "OVERWRITE": "TRUE", "MAXFILESIZE": "'FALSE'" } - AdditionalFormatOptions map[string]interface{} `json:"additionalFormatOptions,omitempty"` + AdditionalFormatOptions map[string]any `json:"additionalFormatOptions,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any } // GetExportSettings implements the ExportSettingsClassification interface for type SnowflakeExportCopyCommand. @@ -26706,15 +26862,15 @@ type SnowflakeImportCopyCommand struct { // Additional copy options directly passed to snowflake Copy Command. Type: key value pairs (value should be string type) // (or Expression with resultType object). Example: "additionalCopyOptions": { "DATE // FORMAT": "MM/DD/YYYY", "TIMEFORMAT": "'HH24:MI:SS.FF'" } - AdditionalCopyOptions map[string]interface{} `json:"additionalCopyOptions,omitempty"` + AdditionalCopyOptions map[string]any `json:"additionalCopyOptions,omitempty"` // Additional format options directly passed to snowflake Copy Command. Type: key value pairs (value should be string type) // (or Expression with resultType object). Example: "additionalFormatOptions": { // "FORCE": "TRUE", "LOADUNCERTAINFILES": "'FALSE'" } - AdditionalFormatOptions map[string]interface{} `json:"additionalFormatOptions,omitempty"` + AdditionalFormatOptions map[string]any `json:"additionalFormatOptions,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any } // GetImportSettings implements the ImportSettingsClassification interface for type SnowflakeImportCopyCommand. @@ -26734,10 +26890,10 @@ type SnowflakeLinkedService struct { TypeProperties *SnowflakeLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -26764,11 +26920,11 @@ func (s *SnowflakeLinkedService) GetLinkedService() *LinkedService { // SnowflakeLinkedServiceTypeProperties - Snowflake linked service properties. type SnowflakeLinkedServiceTypeProperties struct { // REQUIRED; The connection string of snowflake. Type: string, SecureString. - ConnectionString interface{} `json:"connectionString,omitempty"` + ConnectionString any `json:"connectionString,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // The Azure key vault secret reference of password in connection string. Password *AzureKeyVaultSecretReference `json:"password,omitempty"` @@ -26780,31 +26936,31 @@ type SnowflakeSink struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // Snowflake import settings. ImportSettings *SnowflakeImportCopyCommand `json:"importSettings,omitempty"` // The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // SQL pre-copy script. Type: string (or Expression with resultType string). - PreCopyScript interface{} `json:"preCopyScript,omitempty"` + PreCopyScript any `json:"preCopyScript,omitempty"` // Sink retry count. Type: integer (or Expression with resultType integer). - SinkRetryCount interface{} `json:"sinkRetryCount,omitempty"` + SinkRetryCount any `json:"sinkRetryCount,omitempty"` // Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SinkRetryWait interface{} `json:"sinkRetryWait,omitempty"` + SinkRetryWait any `json:"sinkRetryWait,omitempty"` // Write batch size. Type: integer (or Expression with resultType integer), minimum: 0. - WriteBatchSize interface{} `json:"writeBatchSize,omitempty"` + WriteBatchSize any `json:"writeBatchSize,omitempty"` // Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - WriteBatchTimeout interface{} `json:"writeBatchTimeout,omitempty"` + WriteBatchTimeout any `json:"writeBatchTimeout,omitempty"` } // GetCopySink implements the CopySinkClassification interface for type SnowflakeSink. @@ -26823,29 +26979,29 @@ func (s *SnowflakeSink) GetCopySink() *CopySink { // SnowflakeSource - A copy activity snowflake source. type SnowflakeSource struct { + // REQUIRED; Snowflake export settings. + ExportSettings *SnowflakeExportCopyCommand `json:"exportSettings,omitempty"` + // REQUIRED; Copy source type. Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` - - // Snowflake export settings. - ExportSettings *SnowflakeExportCopyCommand `json:"exportSettings,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // Snowflake Sql query. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any `json:"query,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type SnowflakeSource. @@ -26860,16 +27016,25 @@ func (s *SnowflakeSource) GetCopySource() *CopySource { } } +// SparkConfigurationParametrizationReference - Spark configuration reference. +type SparkConfigurationParametrizationReference struct { + // REQUIRED; Reference spark configuration name. Type: string (or Expression with resultType string). + ReferenceName any `json:"referenceName,omitempty"` + + // REQUIRED; Spark configuration reference type. + Type *SparkConfigurationReferenceType `json:"type,omitempty"` +} + // SparkDatasetTypeProperties - Spark Properties type SparkDatasetTypeProperties struct { // The schema name of the Spark. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // The table name of the Spark. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` + Table any `json:"table,omitempty"` // This property will be retired. Please consider using schema + table properties instead. - TableName interface{} `json:"tableName,omitempty"` + TableName any `json:"tableName,omitempty"` } // SparkLinkedService - Spark Server linked service. @@ -26881,10 +27046,10 @@ type SparkLinkedService struct { TypeProperties *SparkLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -26914,27 +27079,27 @@ type SparkLinkedServiceTypeProperties struct { AuthenticationType *SparkAuthenticationType `json:"authenticationType,omitempty"` // REQUIRED; IP address or host name of the Spark server - Host interface{} `json:"host,omitempty"` + Host any `json:"host,omitempty"` // REQUIRED; The TCP port that the Spark server uses to listen for client connections. - Port interface{} `json:"port,omitempty"` + Port any `json:"port,omitempty"` // Specifies whether to require a CA-issued SSL certificate name to match the host name of the server when connecting over // SSL. The default value is false. - AllowHostNameCNMismatch interface{} `json:"allowHostNameCNMismatch,omitempty"` + AllowHostNameCNMismatch any `json:"allowHostNameCNMismatch,omitempty"` // Specifies whether to allow self-signed certificates from the server. The default value is false. - AllowSelfSignedServerCert interface{} `json:"allowSelfSignedServerCert,omitempty"` + AllowSelfSignedServerCert any `json:"allowSelfSignedServerCert,omitempty"` // Specifies whether the connections to the server are encrypted using SSL. The default value is false. - EnableSSL interface{} `json:"enableSsl,omitempty"` + EnableSSL any `json:"enableSsl,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // The partial URL corresponding to the Spark server. - HTTPPath interface{} `json:"httpPath,omitempty"` + HTTPPath any `json:"httpPath,omitempty"` // The password corresponding to the user name that you provided in the Username field Password SecretBaseClassification `json:"password,omitempty"` @@ -26948,14 +27113,14 @@ type SparkLinkedServiceTypeProperties struct { // The full path of the .pem file containing trusted CA certificates for verifying the server when connecting over SSL. This // property can only be set when using SSL on self-hosted IR. The default value // is the cacerts.pem file installed with the IR. - TrustedCertPath interface{} `json:"trustedCertPath,omitempty"` + TrustedCertPath any `json:"trustedCertPath,omitempty"` // Specifies whether to use a CA certificate from the system trust store or from a specified PEM file. The default value is // false. - UseSystemTrustStore interface{} `json:"useSystemTrustStore,omitempty"` + UseSystemTrustStore any `json:"useSystemTrustStore,omitempty"` // The user name that you use to access Spark Server. - Username interface{} `json:"username,omitempty"` + Username any `json:"username,omitempty"` } // SparkObjectDataset - Spark Server dataset. @@ -26967,10 +27132,10 @@ type SparkObjectDataset struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -26983,10 +27148,10 @@ type SparkObjectDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` // Properties specific to this dataset type. TypeProperties *SparkDatasetTypeProperties `json:"typeProperties,omitempty"` @@ -27014,28 +27179,28 @@ type SparkSource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type SparkSource. @@ -27073,10 +27238,10 @@ type SquareLinkedService struct { TypeProperties *SquareLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -27103,33 +27268,33 @@ func (s *SquareLinkedService) GetLinkedService() *LinkedService { // SquareLinkedServiceTypeProperties - Square Service linked service properties. type SquareLinkedServiceTypeProperties struct { // The client ID associated with your Square application. - ClientID interface{} `json:"clientId,omitempty"` + ClientID any `json:"clientId,omitempty"` // The client secret associated with your Square application. ClientSecret SecretBaseClassification `json:"clientSecret,omitempty"` // Properties used to connect to Square. It is mutually exclusive with any other properties in the linked service. Type: object. - ConnectionProperties interface{} `json:"connectionProperties,omitempty"` + ConnectionProperties any `json:"connectionProperties,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // The URL of the Square instance. (i.e. mystore.mysquare.com) - Host interface{} `json:"host,omitempty"` + Host any `json:"host,omitempty"` // The redirect URL assigned in the Square application dashboard. (i.e. http://localhost:2500) - RedirectURI interface{} `json:"redirectUri,omitempty"` + RedirectURI any `json:"redirectUri,omitempty"` // Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. - UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` + UseEncryptedEndpoints any `json:"useEncryptedEndpoints,omitempty"` // Specifies whether to require the host name in the server's certificate to match the host name of the server when connecting // over SSL. The default value is true. - UseHostVerification interface{} `json:"useHostVerification,omitempty"` + UseHostVerification any `json:"useHostVerification,omitempty"` // Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. - UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` + UsePeerVerification any `json:"usePeerVerification,omitempty"` } // SquareObjectDataset - Square Service dataset. @@ -27141,10 +27306,10 @@ type SquareObjectDataset struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -27157,10 +27322,10 @@ type SquareObjectDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` // Properties specific to this dataset type. TypeProperties *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` @@ -27188,28 +27353,28 @@ type SquareSource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type SquareSource. @@ -27503,14 +27668,14 @@ type StagingSettings struct { LinkedServiceName *LinkedServiceReference `json:"linkedServiceName,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Specifies whether to use compression when copying data via an interim staging. Default value is false. Type: boolean (or // Expression with resultType boolean). - EnableCompression interface{} `json:"enableCompression,omitempty"` + EnableCompression any `json:"enableCompression,omitempty"` // The path to storage for storing the interim data. Type: string (or Expression with resultType string). - Path interface{} `json:"path,omitempty"` + Path any `json:"path,omitempty"` } // StoreReadSettingsClassification provides polymorphic access to related types. @@ -27530,13 +27695,13 @@ type StoreReadSettings struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` } // GetStoreReadSettings implements the StoreReadSettingsClassification interface for type StoreReadSettings. @@ -27558,16 +27723,16 @@ type StoreWriteSettings struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // The type of copy behavior for copy sink. - CopyBehavior interface{} `json:"copyBehavior,omitempty"` + CopyBehavior any `json:"copyBehavior,omitempty"` // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` } // GetStoreWriteSettings implements the StoreWriteSettingsClassification interface for type StoreWriteSettings. @@ -27586,7 +27751,7 @@ type SwitchActivity struct { TypeProperties *SwitchActivityTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` @@ -27655,10 +27820,10 @@ type SybaseLinkedService struct { TypeProperties *SybaseLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -27685,26 +27850,26 @@ func (s *SybaseLinkedService) GetLinkedService() *LinkedService { // SybaseLinkedServiceTypeProperties - Sybase linked service properties. type SybaseLinkedServiceTypeProperties struct { // REQUIRED; Database name for connection. Type: string (or Expression with resultType string). - Database interface{} `json:"database,omitempty"` + Database any `json:"database,omitempty"` // REQUIRED; Server name for connection. Type: string (or Expression with resultType string). - Server interface{} `json:"server,omitempty"` + Server any `json:"server,omitempty"` // AuthenticationType to be used for connection. AuthenticationType *SybaseAuthenticationType `json:"authenticationType,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // Password for authentication. Password SecretBaseClassification `json:"password,omitempty"` // Schema name for connection. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Username for authentication. Type: string (or Expression with resultType string). - Username interface{} `json:"username,omitempty"` + Username any `json:"username,omitempty"` } // SybaseSource - A copy activity source for Sybase databases. @@ -27714,28 +27879,28 @@ type SybaseSource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // Database query. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type SybaseSource. @@ -27773,10 +27938,10 @@ type SybaseTableDataset struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -27789,10 +27954,10 @@ type SybaseTableDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` // Sybase table dataset properties. TypeProperties *SybaseTableDatasetTypeProperties `json:"typeProperties,omitempty"` @@ -27816,7 +27981,7 @@ func (s *SybaseTableDataset) GetDataset() *Dataset { // SybaseTableDatasetTypeProperties - Sybase table dataset properties. type SybaseTableDatasetTypeProperties struct { // The Sybase table name. Type: string (or Expression with resultType string). - TableName interface{} `json:"tableName,omitempty"` + TableName any `json:"tableName,omitempty"` } // SynapseNotebookActivity - Execute Synapse notebook activity. @@ -27831,7 +27996,7 @@ type SynapseNotebookActivity struct { TypeProperties *SynapseNotebookActivityTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` @@ -27881,17 +28046,17 @@ type SynapseNotebookActivityTypeProperties struct { Notebook *SynapseNotebookReference `json:"notebook,omitempty"` // Spark configuration properties, which will override the 'conf' of the notebook you provide. - Conf interface{} `json:"conf,omitempty"` + Conf any `json:"conf,omitempty"` // Number of core and memory to be used for driver allocated in the specified Spark pool for the session, which will be used // for overriding 'driverCores' and 'driverMemory' of the notebook you provide. // Type: string (or Expression with resultType string). - DriverSize interface{} `json:"driverSize,omitempty"` + DriverSize any `json:"driverSize,omitempty"` // Number of core and memory to be used for executors allocated in the specified Spark pool for the session, which will be // used for overriding 'executorCores' and 'executorMemory' of the notebook you // provide. Type: string (or Expression with resultType string). - ExecutorSize interface{} `json:"executorSize,omitempty"` + ExecutorSize any `json:"executorSize,omitempty"` // Number of executors to launch for this session, which will override the 'numExecutors' of the notebook you provide. NumExecutors *int32 `json:"numExecutors,omitempty"` @@ -27906,7 +28071,7 @@ type SynapseNotebookActivityTypeProperties struct { // SynapseNotebookReference - Synapse notebook reference type. type SynapseNotebookReference struct { // REQUIRED; Reference notebook name. Type: string (or Expression with resultType string). - ReferenceName interface{} `json:"referenceName,omitempty"` + ReferenceName any `json:"referenceName,omitempty"` // REQUIRED; Synapse notebook reference type. Type *NotebookReferenceType `json:"type,omitempty"` @@ -27918,48 +28083,63 @@ type SynapseSparkJobActivityTypeProperties struct { SparkJob *SynapseSparkJobReference `json:"sparkJob,omitempty"` // User specified arguments to SynapseSparkJobDefinitionActivity. - Arguments []interface{} `json:"args,omitempty"` + Arguments []any `json:"args,omitempty"` // The fully-qualified identifier or the main class that is in the main definition file, which will override the 'className' // of the spark job definition you provide. Type: string (or Expression with // resultType string). - ClassName interface{} `json:"className,omitempty"` + ClassName any `json:"className,omitempty"` // Spark configuration properties, which will override the 'conf' of the spark job definition you provide. - Conf interface{} `json:"conf,omitempty"` + Conf any `json:"conf,omitempty"` + + // The type of the spark config. + ConfigurationType *ConfigurationType `json:"configurationType,omitempty"` // Number of core and memory to be used for driver allocated in the specified Spark pool for the job, which will be used for // overriding 'driverCores' and 'driverMemory' of the spark job definition you // provide. Type: string (or Expression with resultType string). - DriverSize interface{} `json:"driverSize,omitempty"` + DriverSize any `json:"driverSize,omitempty"` // Number of core and memory to be used for executors allocated in the specified Spark pool for the job, which will be used // for overriding 'executorCores' and 'executorMemory' of the spark job definition // you provide. Type: string (or Expression with resultType string). - ExecutorSize interface{} `json:"executorSize,omitempty"` + ExecutorSize any `json:"executorSize,omitempty"` // The main file used for the job, which will override the 'file' of the spark job definition you provide. Type: string (or // Expression with resultType string). - File interface{} `json:"file,omitempty"` + File any `json:"file,omitempty"` // (Deprecated. Please use pythonCodeReference and filesV2) Additional files used for reference in the main definition file, // which will override the 'files' of the spark job definition you provide. - Files []interface{} `json:"files,omitempty"` + Files []any `json:"files,omitempty"` // Additional files used for reference in the main definition file, which will override the 'jars' and 'files' of the spark // job definition you provide. - FilesV2 []interface{} `json:"filesV2,omitempty"` + FilesV2 []any `json:"filesV2,omitempty"` // Number of executors to launch for this job, which will override the 'numExecutors' of the spark job definition you provide. - NumExecutors *int32 `json:"numExecutors,omitempty"` + // Type: integer (or Expression with resultType integer). + NumExecutors any `json:"numExecutors,omitempty"` // Additional python code files used for reference in the main definition file, which will override the 'pyFiles' of the spark // job definition you provide. - PythonCodeReference []interface{} `json:"pythonCodeReference,omitempty"` + PythonCodeReference []any `json:"pythonCodeReference,omitempty"` + + // Scanning subfolders from the root folder of the main definition file, these files will be added as reference files. The + // folders named 'jars', 'pyFiles', 'files' or 'archives' will be scanned, and the + // folders name are case sensitive. Type: boolean (or Expression with resultType boolean). + ScanFolder any `json:"scanFolder,omitempty"` + + // Spark configuration property. + SparkConfig map[string]any `json:"sparkConfig,omitempty"` // The name of the big data pool which will be used to execute the spark batch job, which will override the 'targetBigDataPool' // of the spark job definition you provide. TargetBigDataPool *BigDataPoolParametrizationReference `json:"targetBigDataPool,omitempty"` + + // The spark configuration of the spark job. + TargetSparkConfiguration *SparkConfigurationParametrizationReference `json:"targetSparkConfiguration,omitempty"` } // SynapseSparkJobDefinitionActivity - Execute spark job activity. @@ -27974,7 +28154,7 @@ type SynapseSparkJobDefinitionActivity struct { TypeProperties *SynapseSparkJobActivityTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` @@ -28021,7 +28201,7 @@ func (s *SynapseSparkJobDefinitionActivity) GetExecutionActivity() *ExecutionAct // SynapseSparkJobReference - Synapse spark job reference type. type SynapseSparkJobReference struct { // REQUIRED; Reference spark job name. Expression with resultType string. - ReferenceName interface{} `json:"referenceName,omitempty"` + ReferenceName any `json:"referenceName,omitempty"` // REQUIRED; Synapse spark job reference type. Type *SparkJobReferenceType `json:"type,omitempty"` @@ -28052,25 +28232,25 @@ type TabularSource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type TabularSource. @@ -28094,10 +28274,10 @@ type TarGZipReadSettings struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Preserve the compression file name as folder path. Type: boolean (or Expression with resultType boolean). - PreserveCompressionFileNameAsFolder interface{} `json:"preserveCompressionFileNameAsFolder,omitempty"` + PreserveCompressionFileNameAsFolder any `json:"preserveCompressionFileNameAsFolder,omitempty"` } // GetCompressionReadSettings implements the CompressionReadSettingsClassification interface for type TarGZipReadSettings. @@ -28114,10 +28294,10 @@ type TarReadSettings struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Preserve the compression file name as folder path. Type: boolean (or Expression with resultType boolean). - PreserveCompressionFileNameAsFolder interface{} `json:"preserveCompressionFileNameAsFolder,omitempty"` + PreserveCompressionFileNameAsFolder any `json:"preserveCompressionFileNameAsFolder,omitempty"` } // GetCompressionReadSettings implements the CompressionReadSettingsClassification interface for type TarReadSettings. @@ -28137,10 +28317,10 @@ type TeamDeskLinkedService struct { TypeProperties *TeamDeskLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -28170,20 +28350,20 @@ type TeamDeskLinkedServiceTypeProperties struct { AuthenticationType *TeamDeskAuthenticationType `json:"authenticationType,omitempty"` // REQUIRED; The url to connect TeamDesk source. Type: string (or Expression with resultType string). - URL interface{} `json:"url,omitempty"` + URL any `json:"url,omitempty"` // The api token for the TeamDesk source. APIToken SecretBaseClassification `json:"apiToken,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // The password of the TeamDesk source. Password SecretBaseClassification `json:"password,omitempty"` // The username of the TeamDesk source. Type: string (or Expression with resultType string). - UserName interface{} `json:"userName,omitempty"` + UserName any `json:"userName,omitempty"` } // TeradataLinkedService - Linked service for Teradata data source. @@ -28195,10 +28375,10 @@ type TeradataLinkedService struct { TypeProperties *TeradataLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -28228,35 +28408,35 @@ type TeradataLinkedServiceTypeProperties struct { AuthenticationType *TeradataAuthenticationType `json:"authenticationType,omitempty"` // Teradata ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` + ConnectionString any `json:"connectionString,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // Password for authentication. Password SecretBaseClassification `json:"password,omitempty"` // Server name for connection. Type: string (or Expression with resultType string). - Server interface{} `json:"server,omitempty"` + Server any `json:"server,omitempty"` // Username for authentication. Type: string (or Expression with resultType string). - Username interface{} `json:"username,omitempty"` + Username any `json:"username,omitempty"` } // TeradataPartitionSettings - The settings that will be leveraged for teradata source partitioning. type TeradataPartitionSettings struct { // The name of the column that will be used for proceeding range or hash partitioning. Type: string (or Expression with resultType // string). - PartitionColumnName interface{} `json:"partitionColumnName,omitempty"` + PartitionColumnName any `json:"partitionColumnName,omitempty"` // The minimum value of column specified in partitionColumnName that will be used for proceeding range partitioning. Type: // string (or Expression with resultType string). - PartitionLowerBound interface{} `json:"partitionLowerBound,omitempty"` + PartitionLowerBound any `json:"partitionLowerBound,omitempty"` // The maximum value of column specified in partitionColumnName that will be used for proceeding range partitioning. Type: // string (or Expression with resultType string). - PartitionUpperBound interface{} `json:"partitionUpperBound,omitempty"` + PartitionUpperBound any `json:"partitionUpperBound,omitempty"` } // TeradataSource - A copy activity Teradata source. @@ -28266,34 +28446,34 @@ type TeradataSource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // The partition mechanism that will be used for teradata read in parallel. Possible values include: "None", "Hash", "DynamicRange". - PartitionOption interface{} `json:"partitionOption,omitempty"` + PartitionOption any `json:"partitionOption,omitempty"` // The settings that will be leveraged for teradata source partitioning. PartitionSettings *TeradataPartitionSettings `json:"partitionSettings,omitempty"` // Teradata query. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type TeradataSource. @@ -28331,10 +28511,10 @@ type TeradataTableDataset struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -28347,10 +28527,10 @@ type TeradataTableDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` // Teradata dataset properties. TypeProperties *TeradataTableDatasetTypeProperties `json:"typeProperties,omitempty"` @@ -28374,10 +28554,10 @@ func (t *TeradataTableDataset) GetDataset() *Dataset { // TeradataTableDatasetTypeProperties - Teradata dataset properties. type TeradataTableDatasetTypeProperties struct { // The database name of Teradata. Type: string (or Expression with resultType string). - Database interface{} `json:"database,omitempty"` + Database any `json:"database,omitempty"` // The table name of Teradata. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` + Table any `json:"table,omitempty"` } // TextFormat - The data stored in text format. @@ -28386,47 +28566,47 @@ type TextFormat struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // The column delimiter. Type: string (or Expression with resultType string). - ColumnDelimiter interface{} `json:"columnDelimiter,omitempty"` + ColumnDelimiter any `json:"columnDelimiter,omitempty"` // Deserializer. Type: string (or Expression with resultType string). - Deserializer interface{} `json:"deserializer,omitempty"` + Deserializer any `json:"deserializer,omitempty"` // The code page name of the preferred encoding. If miss, the default value is ΓÇ£utf-8ΓÇ¥, unless BOM denotes another Unicode // encoding. Refer to the ΓÇ£NameΓÇ¥ column of the table in the following link // to set supported values: https://msdn.microsoft.com/library/system.text.encoding.aspx. Type: string (or Expression with // resultType string). - EncodingName interface{} `json:"encodingName,omitempty"` + EncodingName any `json:"encodingName,omitempty"` // The escape character. Type: string (or Expression with resultType string). - EscapeChar interface{} `json:"escapeChar,omitempty"` + EscapeChar any `json:"escapeChar,omitempty"` // When used as input, treat the first row of data as headers. When used as output,write the headers into the output as the // first row of data. The default value is false. Type: boolean (or Expression // with resultType boolean). - FirstRowAsHeader interface{} `json:"firstRowAsHeader,omitempty"` + FirstRowAsHeader any `json:"firstRowAsHeader,omitempty"` // The null value string. Type: string (or Expression with resultType string). - NullValue interface{} `json:"nullValue,omitempty"` + NullValue any `json:"nullValue,omitempty"` // The quote character. Type: string (or Expression with resultType string). - QuoteChar interface{} `json:"quoteChar,omitempty"` + QuoteChar any `json:"quoteChar,omitempty"` // The row delimiter. Type: string (or Expression with resultType string). - RowDelimiter interface{} `json:"rowDelimiter,omitempty"` + RowDelimiter any `json:"rowDelimiter,omitempty"` // Serializer. Type: string (or Expression with resultType string). - Serializer interface{} `json:"serializer,omitempty"` + Serializer any `json:"serializer,omitempty"` // The number of lines/rows to be skipped when parsing text files. The default value is 0. Type: integer (or Expression with // resultType integer). - SkipLineCount interface{} `json:"skipLineCount,omitempty"` + SkipLineCount any `json:"skipLineCount,omitempty"` // Treat empty column values in the text file as null. The default value is true. Type: boolean (or Expression with resultType // boolean). - TreatEmptyAsNull interface{} `json:"treatEmptyAsNull,omitempty"` + TreatEmptyAsNull any `json:"treatEmptyAsNull,omitempty"` } // GetDatasetStorageFormat implements the DatasetStorageFormatClassification interface for type TextFormat. @@ -28473,10 +28653,10 @@ type Trigger struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the trigger. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Trigger description. Description *string `json:"description,omitempty"` @@ -28540,7 +28720,7 @@ type TriggerListResponse struct { // TriggerPipelineReference - Pipeline that needs to be triggered with the given parameters. type TriggerPipelineReference struct { // Pipeline parameters. - Parameters map[string]interface{} `json:"parameters,omitempty"` + Parameters map[string]any `json:"parameters,omitempty"` // Pipeline reference. PipelineReference *PipelineReference `json:"pipelineReference,omitempty"` @@ -28585,10 +28765,10 @@ type TriggerResource struct { // TriggerRun - Trigger runs. type TriggerRun struct { // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // READ-ONLY; Status of the upstream pipelines. - DependencyStatus map[string]interface{} `json:"dependencyStatus,omitempty" azure:"ro"` + DependencyStatus map[string]any `json:"dependencyStatus,omitempty" azure:"ro"` // READ-ONLY; Trigger error message. Message *string `json:"message,omitempty" azure:"ro"` @@ -28702,7 +28882,7 @@ type TriggersClientGetOptions struct { IfNoneMatch *string } -// TriggersClientListByFactoryOptions contains the optional parameters for the TriggersClient.ListByFactory method. +// TriggersClientListByFactoryOptions contains the optional parameters for the TriggersClient.NewListByFactoryPager method. type TriggersClientListByFactoryOptions struct { // placeholder for future optional parameters } @@ -28725,10 +28905,10 @@ type TumblingWindowTrigger struct { TypeProperties *TumblingWindowTriggerTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the trigger. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Trigger description. Description *string `json:"description,omitempty"` @@ -28796,7 +28976,7 @@ type TumblingWindowTriggerTypeProperties struct { // Specifies how long the trigger waits past due time before triggering new run. It doesn't alter window start and end time. // The default is 0. Type: string (or Expression with resultType string), // pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - Delay interface{} `json:"delay,omitempty"` + Delay any `json:"delay,omitempty"` // Triggers that this trigger depends on. Only tumbling window triggers are supported. DependsOn []DependencyReferenceClassification `json:"dependsOn,omitempty"` @@ -28818,10 +28998,10 @@ type TwilioLinkedService struct { TypeProperties *TwilioLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -28851,7 +29031,7 @@ type TwilioLinkedServiceTypeProperties struct { Password SecretBaseClassification `json:"password,omitempty"` // REQUIRED; The Account SID of Twilio service. - UserName interface{} `json:"userName,omitempty"` + UserName any `json:"userName,omitempty"` } // UntilActivity - This activity executes inner activities until the specified boolean expression results to true or timeout @@ -28867,7 +29047,7 @@ type UntilActivity struct { TypeProperties *UntilActivityTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` @@ -28915,7 +29095,7 @@ type UntilActivityTypeProperties struct { // which is 1 week as default. Type: string (or Expression with resultType // string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). Type: string (or Expression with resultType string), // pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - Timeout interface{} `json:"timeout,omitempty"` + Timeout any `json:"timeout,omitempty"` } // UpdateIntegrationRuntimeNodeRequest - Update integration runtime node request. @@ -28961,7 +29141,7 @@ type UserProperty struct { Name *string `json:"name,omitempty"` // REQUIRED; User property value. Type: string (or Expression with resultType string). - Value interface{} `json:"value,omitempty"` + Value any `json:"value,omitempty"` } // ValidationActivity - This activity verifies that an external resource exists. @@ -28976,7 +29156,7 @@ type ValidationActivity struct { TypeProperties *ValidationActivityTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` @@ -29019,20 +29199,20 @@ type ValidationActivityTypeProperties struct { // Can be used if dataset points to a folder. If set to true, the folder must have at least one file. If set to false, the // folder must be empty. Type: boolean (or Expression with resultType boolean). - ChildItems interface{} `json:"childItems,omitempty"` + ChildItems any `json:"childItems,omitempty"` // Can be used if dataset points to a file. The file must be greater than or equal in size to the value specified. Type: integer // (or Expression with resultType integer). - MinimumSize interface{} `json:"minimumSize,omitempty"` + MinimumSize any `json:"minimumSize,omitempty"` // A delay in seconds between validation attempts. If no value is specified, 10 seconds will be used as the default. Type: // integer (or Expression with resultType integer). - Sleep interface{} `json:"sleep,omitempty"` + Sleep any `json:"sleep,omitempty"` // Specifies the timeout for the activity to run. If there is no value specified, it takes the value of TimeSpan.FromDays(7) // which is 1 week as default. Type: string (or Expression with resultType // string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - Timeout interface{} `json:"timeout,omitempty"` + Timeout any `json:"timeout,omitempty"` } // VariableSpecification - Definition of a single variable for a Pipeline. @@ -29041,19 +29221,19 @@ type VariableSpecification struct { Type *VariableType `json:"type,omitempty"` // Default value of variable. - DefaultValue interface{} `json:"defaultValue,omitempty"` + DefaultValue any `json:"defaultValue,omitempty"` } // VerticaDatasetTypeProperties - Vertica Properties type VerticaDatasetTypeProperties struct { // The schema name of the Vertica. Type: string (or Expression with resultType string). - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // The table name of the Vertica. Type: string (or Expression with resultType string). - Table interface{} `json:"table,omitempty"` + Table any `json:"table,omitempty"` // This property will be retired. Please consider using schema + table properties instead. - TableName interface{} `json:"tableName,omitempty"` + TableName any `json:"tableName,omitempty"` } // VerticaLinkedService - Vertica linked service. @@ -29065,10 +29245,10 @@ type VerticaLinkedService struct { TypeProperties *VerticaLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -29095,11 +29275,11 @@ func (v *VerticaLinkedService) GetLinkedService() *LinkedService { // VerticaLinkedServiceTypeProperties - Vertica linked service properties. type VerticaLinkedServiceTypeProperties struct { // An ODBC connection string. Type: string, SecureString or AzureKeyVaultSecretReference. - ConnectionString interface{} `json:"connectionString,omitempty"` + ConnectionString any `json:"connectionString,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // The Azure key vault secret reference of password in connection string. Pwd *AzureKeyVaultSecretReference `json:"pwd,omitempty"` @@ -29112,28 +29292,28 @@ type VerticaSource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type VerticaSource. @@ -29171,10 +29351,10 @@ type VerticaTableDataset struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -29187,10 +29367,10 @@ type VerticaTableDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` // Properties specific to this dataset type. TypeProperties *VerticaDatasetTypeProperties `json:"typeProperties,omitempty"` @@ -29223,7 +29403,7 @@ type WaitActivity struct { TypeProperties *WaitActivityTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` @@ -29262,7 +29442,7 @@ func (w *WaitActivity) GetControlActivity() *ControlActivity { // WaitActivityTypeProperties - Wait activity properties. type WaitActivityTypeProperties struct { // REQUIRED; Duration in seconds. - WaitTimeInSeconds interface{} `json:"waitTimeInSeconds,omitempty"` + WaitTimeInSeconds any `json:"waitTimeInSeconds,omitempty"` } // WebActivity - Web activity. @@ -29277,7 +29457,7 @@ type WebActivity struct { TypeProperties *WebActivityTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` @@ -29334,18 +29514,18 @@ type WebActivityAuthentication struct { // Resource for which Azure Auth token will be requested when using MSI Authentication. Type: string (or Expression with resultType // string). - Resource interface{} `json:"resource,omitempty"` + Resource any `json:"resource,omitempty"` // Web activity authentication (Basic/ClientCertificate/MSI/ServicePrincipal) Type *string `json:"type,omitempty"` // TenantId for which Azure Auth token will be requested when using ServicePrincipal Authentication. Type: string (or Expression // with resultType string). - UserTenant interface{} `json:"userTenant,omitempty"` + UserTenant any `json:"userTenant,omitempty"` // Web activity authentication user name for basic authentication or ClientID when used for ServicePrincipal. Type: string // (or Expression with resultType string). - Username interface{} `json:"username,omitempty"` + Username any `json:"username,omitempty"` } // WebActivityTypeProperties - Web activity type properties. @@ -29354,14 +29534,14 @@ type WebActivityTypeProperties struct { Method *WebActivityMethod `json:"method,omitempty"` // REQUIRED; Web activity target endpoint and path. Type: string (or Expression with resultType string). - URL interface{} `json:"url,omitempty"` + URL any `json:"url,omitempty"` // Authentication method used for calling the endpoint. Authentication *WebActivityAuthentication `json:"authentication,omitempty"` // Represents the payload that will be sent to the endpoint. Required for POST/PUT method, not allowed for GET method Type: // string (or Expression with resultType string). - Body interface{} `json:"body,omitempty"` + Body any `json:"body,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -29375,7 +29555,7 @@ type WebActivityTypeProperties struct { // Represents the headers that will be sent to the request. For example, to set the language and type on a request: "headers" // : { "Accept-Language": "en-us", "Content-Type": "application/json" }. Type: // string (or Expression with resultType string). - Headers interface{} `json:"headers,omitempty"` + Headers any `json:"headers,omitempty"` // List of linked services passed to web endpoint. LinkedServices []*LinkedServiceReference `json:"linkedServices,omitempty"` @@ -29388,7 +29568,7 @@ type WebAnonymousAuthentication struct { // REQUIRED; The URL of the web service endpoint, e.g. https://www.microsoft.com . Type: string (or Expression with resultType // string). - URL interface{} `json:"url,omitempty"` + URL any `json:"url,omitempty"` } // GetWebLinkedServiceTypeProperties implements the WebLinkedServiceTypePropertiesClassification interface for type WebAnonymousAuthentication. @@ -29409,10 +29589,10 @@ type WebBasicAuthentication struct { // REQUIRED; The URL of the web service endpoint, e.g. https://www.microsoft.com . Type: string (or Expression with resultType // string). - URL interface{} `json:"url,omitempty"` + URL any `json:"url,omitempty"` // REQUIRED; User name for Basic authentication. Type: string (or Expression with resultType string). - Username interface{} `json:"username,omitempty"` + Username any `json:"username,omitempty"` } // GetWebLinkedServiceTypeProperties implements the WebLinkedServiceTypePropertiesClassification interface for type WebBasicAuthentication. @@ -29438,7 +29618,7 @@ type WebClientCertificateAuthentication struct { // REQUIRED; The URL of the web service endpoint, e.g. https://www.microsoft.com . Type: string (or Expression with resultType // string). - URL interface{} `json:"url,omitempty"` + URL any `json:"url,omitempty"` } // GetWebLinkedServiceTypeProperties implements the WebLinkedServiceTypePropertiesClassification interface for type WebClientCertificateAuthentication. @@ -29461,7 +29641,7 @@ type WebHookActivity struct { TypeProperties *WebHookActivityTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Activity depends on condition. DependsOn []*ActivityDependency `json:"dependsOn,omitempty"` @@ -29503,24 +29683,24 @@ type WebHookActivityTypeProperties struct { Method *WebHookActivityMethod `json:"method,omitempty"` // REQUIRED; WebHook activity target endpoint and path. Type: string (or Expression with resultType string). - URL interface{} `json:"url,omitempty"` + URL any `json:"url,omitempty"` // Authentication method used for calling the endpoint. Authentication *WebActivityAuthentication `json:"authentication,omitempty"` // Represents the payload that will be sent to the endpoint. Required for POST/PUT method, not allowed for GET method Type: // string (or Expression with resultType string). - Body interface{} `json:"body,omitempty"` + Body any `json:"body,omitempty"` // Represents the headers that will be sent to the request. For example, to set the language and type on a request: "headers" // : { "Accept-Language": "en-us", "Content-Type": "application/json" }. Type: // string (or Expression with resultType string). - Headers interface{} `json:"headers,omitempty"` + Headers any `json:"headers,omitempty"` // When set to true, statusCode, output and error in callback request body will be consumed by activity. The activity can // be marked as failed by setting statusCode >= 400 in callback request. Default is // false. Type: boolean (or Expression with resultType boolean). - ReportStatusOnCallBack interface{} `json:"reportStatusOnCallBack,omitempty"` + ReportStatusOnCallBack any `json:"reportStatusOnCallBack,omitempty"` // The timeout within which the webhook should be called back. If there is no value specified, it defaults to 10 minutes. // Type: string. Pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). @@ -29536,10 +29716,10 @@ type WebLinkedService struct { TypeProperties WebLinkedServiceTypePropertiesClassification `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -29580,7 +29760,7 @@ type WebLinkedServiceTypeProperties struct { // REQUIRED; The URL of the web service endpoint, e.g. https://www.microsoft.com . Type: string (or Expression with resultType // string). - URL interface{} `json:"url,omitempty"` + URL any `json:"url,omitempty"` } // GetWebLinkedServiceTypeProperties implements the WebLinkedServiceTypePropertiesClassification interface for type WebLinkedServiceTypeProperties. @@ -29595,22 +29775,22 @@ type WebSource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type WebSource. @@ -29637,10 +29817,10 @@ type WebTableDataset struct { TypeProperties *WebTableDatasetTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -29653,10 +29833,10 @@ type WebTableDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` } // GetDataset implements the DatasetClassification interface for type WebTableDataset. @@ -29678,10 +29858,10 @@ func (w *WebTableDataset) GetDataset() *Dataset { type WebTableDatasetTypeProperties struct { // REQUIRED; The zero-based index of the table in the web page. Type: integer (or Expression with resultType integer), minimum: // 0. - Index interface{} `json:"index,omitempty"` + Index any `json:"index,omitempty"` // The relative URL to the web page from the linked service URL. Type: string (or Expression with resultType string). - Path interface{} `json:"path,omitempty"` + Path any `json:"path,omitempty"` } // WranglingDataFlow - Power Query data flow. @@ -29690,7 +29870,7 @@ type WranglingDataFlow struct { Type *string `json:"type,omitempty"` // List of tags that can be used for describing the data flow. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The description of the data flow. Description *string `json:"description,omitempty"` @@ -29721,10 +29901,10 @@ type XMLDataset struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -29737,10 +29917,10 @@ type XMLDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` // Xml dataset properties. TypeProperties *XMLDatasetTypeProperties `json:"typeProperties,omitempty"` @@ -29773,10 +29953,10 @@ type XMLDatasetTypeProperties struct { // Unicode encoding. Refer to the name column of the table in the following link to // set supported values: https://msdn.microsoft.com/library/system.text.encoding.aspx. Type: string (or Expression with resultType // string). - EncodingName interface{} `json:"encodingName,omitempty"` + EncodingName any `json:"encodingName,omitempty"` // The null value string. Type: string (or Expression with resultType string). - NullValue interface{} `json:"nullValue,omitempty"` + NullValue any `json:"nullValue,omitempty"` } // XMLReadSettings - Xml read settings. @@ -29785,26 +29965,26 @@ type XMLReadSettings struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Compression settings. CompressionProperties CompressionReadSettingsClassification `json:"compressionProperties,omitempty"` // Indicates whether type detection is enabled when reading the xml files. Type: boolean (or Expression with resultType boolean). - DetectDataType interface{} `json:"detectDataType,omitempty"` + DetectDataType any `json:"detectDataType,omitempty"` // Namespace uri to prefix mappings to override the prefixes in column names when namespace is enabled, if no prefix is defined // for a namespace uri, the prefix of xml element/attribute name in the xml // data file will be used. Example: "{"http://www.example.com/xml":"prefix"}" Type: object (or Expression with resultType // object). - NamespacePrefixes interface{} `json:"namespacePrefixes,omitempty"` + NamespacePrefixes any `json:"namespacePrefixes,omitempty"` // Indicates whether namespace is enabled when reading the xml files. Type: boolean (or Expression with resultType boolean). - Namespaces interface{} `json:"namespaces,omitempty"` + Namespaces any `json:"namespaces,omitempty"` // Indicates what validation method is used when reading the xml files. Allowed values: 'none', 'xsd', or 'dtd'. Type: string // (or Expression with resultType string). - ValidationMode interface{} `json:"validationMode,omitempty"` + ValidationMode any `json:"validationMode,omitempty"` } // GetFormatReadSettings implements the FormatReadSettingsClassification interface for type XMLReadSettings. @@ -29822,25 +30002,25 @@ type XMLSource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // Xml format settings. FormatSettings *XMLReadSettings `json:"formatSettings,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` // Xml store settings. StoreSettings StoreReadSettingsClassification `json:"storeSettings,omitempty"` @@ -29867,10 +30047,10 @@ type XeroLinkedService struct { TypeProperties *XeroLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -29897,31 +30077,31 @@ func (x *XeroLinkedService) GetLinkedService() *LinkedService { // XeroLinkedServiceTypeProperties - Xero Service linked service properties. type XeroLinkedServiceTypeProperties struct { // Properties used to connect to Xero. It is mutually exclusive with any other properties in the linked service. Type: object. - ConnectionProperties interface{} `json:"connectionProperties,omitempty"` + ConnectionProperties any `json:"connectionProperties,omitempty"` // The consumer key associated with the Xero application. ConsumerKey SecretBaseClassification `json:"consumerKey,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // The endpoint of the Xero server. (i.e. api.xero.com) - Host interface{} `json:"host,omitempty"` + Host any `json:"host,omitempty"` // The private key from the .pem file that was generated for your Xero private application. You must include all the text // from the .pem file, including the Unix line endings( ). PrivateKey SecretBaseClassification `json:"privateKey,omitempty"` // Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. - UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` + UseEncryptedEndpoints any `json:"useEncryptedEndpoints,omitempty"` // Specifies whether to require the host name in the server's certificate to match the host name of the server when connecting // over SSL. The default value is true. - UseHostVerification interface{} `json:"useHostVerification,omitempty"` + UseHostVerification any `json:"useHostVerification,omitempty"` // Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. - UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` + UsePeerVerification any `json:"usePeerVerification,omitempty"` } // XeroObjectDataset - Xero Service dataset. @@ -29933,10 +30113,10 @@ type XeroObjectDataset struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -29949,10 +30129,10 @@ type XeroObjectDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` // Properties specific to this dataset type. TypeProperties *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` @@ -29980,28 +30160,28 @@ type XeroSource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type XeroSource. @@ -30039,10 +30219,10 @@ type ZendeskLinkedService struct { TypeProperties *ZendeskLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -30072,20 +30252,20 @@ type ZendeskLinkedServiceTypeProperties struct { AuthenticationType *ZendeskAuthenticationType `json:"authenticationType,omitempty"` // REQUIRED; The url to connect Zendesk source. Type: string (or Expression with resultType string). - URL interface{} `json:"url,omitempty"` + URL any `json:"url,omitempty"` // The api token for the Zendesk source. APIToken SecretBaseClassification `json:"apiToken,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // The password of the Zendesk source. Password SecretBaseClassification `json:"password,omitempty"` // The username of the Zendesk source. Type: string (or Expression with resultType string). - UserName interface{} `json:"userName,omitempty"` + UserName any `json:"userName,omitempty"` } // ZipDeflateReadSettings - The ZipDeflate compression read settings. @@ -30094,10 +30274,10 @@ type ZipDeflateReadSettings struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Preserve the zip file name as folder path. Type: boolean (or Expression with resultType boolean). - PreserveZipFileNameAsFolder interface{} `json:"preserveZipFileNameAsFolder,omitempty"` + PreserveZipFileNameAsFolder any `json:"preserveZipFileNameAsFolder,omitempty"` } // GetCompressionReadSettings implements the CompressionReadSettingsClassification interface for type ZipDeflateReadSettings. @@ -30117,10 +30297,10 @@ type ZohoLinkedService struct { TypeProperties *ZohoLinkedServiceTypeProperties `json:"typeProperties,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the linked service. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // The integration runtime reference. ConnectVia *IntegrationRuntimeReference `json:"connectVia,omitempty"` @@ -30150,24 +30330,24 @@ type ZohoLinkedServiceTypeProperties struct { AccessToken SecretBaseClassification `json:"accessToken,omitempty"` // Properties used to connect to Zoho. It is mutually exclusive with any other properties in the linked service. Type: object. - ConnectionProperties interface{} `json:"connectionProperties,omitempty"` + ConnectionProperties any `json:"connectionProperties,omitempty"` // The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. // Type: string (or Expression with resultType string). - EncryptedCredential interface{} `json:"encryptedCredential,omitempty"` + EncryptedCredential any `json:"encryptedCredential,omitempty"` // The endpoint of the Zoho server. (i.e. crm.zoho.com/crm/private) - Endpoint interface{} `json:"endpoint,omitempty"` + Endpoint any `json:"endpoint,omitempty"` // Specifies whether the data source endpoints are encrypted using HTTPS. The default value is true. - UseEncryptedEndpoints interface{} `json:"useEncryptedEndpoints,omitempty"` + UseEncryptedEndpoints any `json:"useEncryptedEndpoints,omitempty"` // Specifies whether to require the host name in the server's certificate to match the host name of the server when connecting // over SSL. The default value is true. - UseHostVerification interface{} `json:"useHostVerification,omitempty"` + UseHostVerification any `json:"useHostVerification,omitempty"` // Specifies whether to verify the identity of the server when connecting over SSL. The default value is true. - UsePeerVerification interface{} `json:"usePeerVerification,omitempty"` + UsePeerVerification any `json:"usePeerVerification,omitempty"` } // ZohoObjectDataset - Zoho server dataset. @@ -30179,10 +30359,10 @@ type ZohoObjectDataset struct { Type *string `json:"type,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // List of tags that can be used for describing the Dataset. - Annotations []interface{} `json:"annotations,omitempty"` + Annotations []any `json:"annotations,omitempty"` // Dataset description. Description *string `json:"description,omitempty"` @@ -30195,10 +30375,10 @@ type ZohoObjectDataset struct { // Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: // DatasetSchemaDataElement. - Schema interface{} `json:"schema,omitempty"` + Schema any `json:"schema,omitempty"` // Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement. - Structure interface{} `json:"structure,omitempty"` + Structure any `json:"structure,omitempty"` // Properties specific to this dataset type. TypeProperties *GenericDatasetTypeProperties `json:"typeProperties,omitempty"` @@ -30226,28 +30406,28 @@ type ZohoSource struct { // Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with // resultType array of objects). - AdditionalColumns interface{} `json:"additionalColumns,omitempty"` + AdditionalColumns any `json:"additionalColumns,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean). - DisableMetricsCollection interface{} `json:"disableMetricsCollection,omitempty"` + DisableMetricsCollection any `json:"disableMetricsCollection,omitempty"` // The maximum concurrent connection count for the source data store. Type: integer (or Expression with resultType integer). - MaxConcurrentConnections interface{} `json:"maxConcurrentConnections,omitempty"` + MaxConcurrentConnections any `json:"maxConcurrentConnections,omitempty"` // A query to retrieve data from source. Type: string (or Expression with resultType string). - Query interface{} `json:"query,omitempty"` + Query any `json:"query,omitempty"` // Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - QueryTimeout interface{} `json:"queryTimeout,omitempty"` + QueryTimeout any `json:"queryTimeout,omitempty"` // Source retry count. Type: integer (or Expression with resultType integer). - SourceRetryCount interface{} `json:"sourceRetryCount,omitempty"` + SourceRetryCount any `json:"sourceRetryCount,omitempty"` // Source retry wait. Type: string (or Expression with resultType string), pattern: ((\d+).)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). - SourceRetryWait interface{} `json:"sourceRetryWait,omitempty"` + SourceRetryWait any `json:"sourceRetryWait,omitempty"` } // GetCopySource implements the CopySourceClassification interface for type ZohoSource. diff --git a/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go b/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go index df60d2df710c..dc6b0641d666 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/models_serde.go @@ -18,7 +18,7 @@ import ( // MarshalJSON implements the json.Marshaller interface for type AccessPolicyResponse. func (a AccessPolicyResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "accessToken", a.AccessToken) populate(objectMap, "dataPlaneUrl", a.DataPlaneURL) populate(objectMap, "policy", a.Policy) @@ -53,7 +53,7 @@ func (a *AccessPolicyResponse) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Activity. func (a Activity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", a.DependsOn) populate(objectMap, "description", a.Description) populate(objectMap, "name", a.Name) @@ -93,10 +93,10 @@ func (a *Activity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -111,7 +111,7 @@ func (a *Activity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ActivityDependency. func (a ActivityDependency) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "activity", a.Activity) populate(objectMap, "dependencyConditions", a.DependencyConditions) if a.AdditionalProperties != nil { @@ -139,10 +139,10 @@ func (a *ActivityDependency) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -157,7 +157,7 @@ func (a *ActivityDependency) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ActivityPolicy. func (a ActivityPolicy) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "retry", &a.Retry) populate(objectMap, "retryIntervalInSeconds", a.RetryIntervalInSeconds) populate(objectMap, "secureInput", a.SecureInput) @@ -197,10 +197,10 @@ func (a *ActivityPolicy) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -215,7 +215,7 @@ func (a *ActivityPolicy) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ActivityRun. func (a ActivityRun) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "activityName", a.ActivityName) populateTimeRFC3339(objectMap, "activityRunEnd", a.ActivityRunEnd) populate(objectMap, "activityRunId", a.ActivityRunID) @@ -287,10 +287,10 @@ func (a *ActivityRun) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -305,7 +305,7 @@ func (a *ActivityRun) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ActivityRunsQueryResponse. func (a ActivityRunsQueryResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "continuationToken", a.ContinuationToken) populate(objectMap, "value", a.Value) return json.Marshal(objectMap) @@ -336,7 +336,7 @@ func (a *ActivityRunsQueryResponse) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AddDataFlowToDebugSessionResponse. func (a AddDataFlowToDebugSessionResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "jobVersion", a.JobVersion) return json.Marshal(objectMap) } @@ -363,7 +363,7 @@ func (a *AddDataFlowToDebugSessionResponse) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AmazonMWSLinkedService. func (a AmazonMWSLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "connectVia", a.ConnectVia) populate(objectMap, "description", a.Description) @@ -407,10 +407,10 @@ func (a *AmazonMWSLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -425,7 +425,7 @@ func (a *AmazonMWSLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AmazonMWSLinkedServiceTypeProperties. func (a AmazonMWSLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "accessKeyId", &a.AccessKeyID) populate(objectMap, "encryptedCredential", &a.EncryptedCredential) populate(objectMap, "endpoint", &a.Endpoint) @@ -488,7 +488,7 @@ func (a *AmazonMWSLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type AmazonMWSObjectDataset. func (a AmazonMWSObjectDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "description", a.Description) populate(objectMap, "folder", a.Folder) @@ -544,10 +544,10 @@ func (a *AmazonMWSObjectDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -562,7 +562,7 @@ func (a *AmazonMWSObjectDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AmazonMWSSource. func (a AmazonMWSSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &a.AdditionalColumns) populate(objectMap, "disableMetricsCollection", &a.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &a.MaxConcurrentConnections) @@ -614,10 +614,10 @@ func (a *AmazonMWSSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -632,7 +632,7 @@ func (a *AmazonMWSSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AmazonRdsForLinkedServiceTypeProperties. func (a AmazonRdsForLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "connectionString", &a.ConnectionString) populate(objectMap, "encryptedCredential", &a.EncryptedCredential) populate(objectMap, "password", a.Password) @@ -667,7 +667,7 @@ func (a *AmazonRdsForLinkedServiceTypeProperties) UnmarshalJSON(data []byte) err // MarshalJSON implements the json.Marshaller interface for type AmazonRdsForOracleLinkedService. func (a AmazonRdsForOracleLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "connectVia", a.ConnectVia) populate(objectMap, "description", a.Description) @@ -711,10 +711,10 @@ func (a *AmazonRdsForOracleLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -729,7 +729,7 @@ func (a *AmazonRdsForOracleLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AmazonRdsForOraclePartitionSettings. func (a AmazonRdsForOraclePartitionSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "partitionColumnName", &a.PartitionColumnName) populate(objectMap, "partitionLowerBound", &a.PartitionLowerBound) populate(objectMap, "partitionNames", &a.PartitionNames) @@ -768,7 +768,7 @@ func (a *AmazonRdsForOraclePartitionSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AmazonRdsForOracleSource. func (a AmazonRdsForOracleSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &a.AdditionalColumns) populate(objectMap, "disableMetricsCollection", &a.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &a.MaxConcurrentConnections) @@ -828,10 +828,10 @@ func (a *AmazonRdsForOracleSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -846,7 +846,7 @@ func (a *AmazonRdsForOracleSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AmazonRdsForOracleTableDataset. func (a AmazonRdsForOracleTableDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "description", a.Description) populate(objectMap, "folder", a.Folder) @@ -902,10 +902,10 @@ func (a *AmazonRdsForOracleTableDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -920,7 +920,7 @@ func (a *AmazonRdsForOracleTableDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AmazonRdsForOracleTableDatasetTypeProperties. func (a AmazonRdsForOracleTableDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "schema", &a.Schema) populate(objectMap, "table", &a.Table) return json.Marshal(objectMap) @@ -951,7 +951,7 @@ func (a *AmazonRdsForOracleTableDatasetTypeProperties) UnmarshalJSON(data []byte // MarshalJSON implements the json.Marshaller interface for type AmazonRdsForSQLServerLinkedService. func (a AmazonRdsForSQLServerLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "connectVia", a.ConnectVia) populate(objectMap, "description", a.Description) @@ -995,10 +995,10 @@ func (a *AmazonRdsForSQLServerLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -1013,7 +1013,7 @@ func (a *AmazonRdsForSQLServerLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AmazonRdsForSQLServerLinkedServiceTypeProperties. func (a AmazonRdsForSQLServerLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "alwaysEncryptedSettings", a.AlwaysEncryptedSettings) populate(objectMap, "connectionString", &a.ConnectionString) populate(objectMap, "encryptedCredential", &a.EncryptedCredential) @@ -1056,7 +1056,7 @@ func (a *AmazonRdsForSQLServerLinkedServiceTypeProperties) UnmarshalJSON(data [] // MarshalJSON implements the json.Marshaller interface for type AmazonRdsForSQLServerSource. func (a AmazonRdsForSQLServerSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &a.AdditionalColumns) populate(objectMap, "disableMetricsCollection", &a.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &a.MaxConcurrentConnections) @@ -1128,10 +1128,10 @@ func (a *AmazonRdsForSQLServerSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -1146,7 +1146,7 @@ func (a *AmazonRdsForSQLServerSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AmazonRdsForSQLServerTableDataset. func (a AmazonRdsForSQLServerTableDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "description", a.Description) populate(objectMap, "folder", a.Folder) @@ -1202,10 +1202,10 @@ func (a *AmazonRdsForSQLServerTableDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -1220,7 +1220,7 @@ func (a *AmazonRdsForSQLServerTableDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AmazonRdsForSQLServerTableDatasetTypeProperties. func (a AmazonRdsForSQLServerTableDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "schema", &a.Schema) populate(objectMap, "table", &a.Table) return json.Marshal(objectMap) @@ -1251,7 +1251,7 @@ func (a *AmazonRdsForSQLServerTableDatasetTypeProperties) UnmarshalJSON(data []b // MarshalJSON implements the json.Marshaller interface for type AmazonRedshiftLinkedService. func (a AmazonRedshiftLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "connectVia", a.ConnectVia) populate(objectMap, "description", a.Description) @@ -1295,10 +1295,10 @@ func (a *AmazonRedshiftLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -1313,7 +1313,7 @@ func (a *AmazonRedshiftLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AmazonRedshiftLinkedServiceTypeProperties. func (a AmazonRedshiftLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "database", &a.Database) populate(objectMap, "encryptedCredential", &a.EncryptedCredential) populate(objectMap, "password", a.Password) @@ -1360,7 +1360,7 @@ func (a *AmazonRedshiftLinkedServiceTypeProperties) UnmarshalJSON(data []byte) e // MarshalJSON implements the json.Marshaller interface for type AmazonRedshiftSource. func (a AmazonRedshiftSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &a.AdditionalColumns) populate(objectMap, "disableMetricsCollection", &a.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &a.MaxConcurrentConnections) @@ -1416,10 +1416,10 @@ func (a *AmazonRedshiftSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -1434,7 +1434,7 @@ func (a *AmazonRedshiftSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AmazonRedshiftTableDataset. func (a AmazonRedshiftTableDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "description", a.Description) populate(objectMap, "folder", a.Folder) @@ -1490,10 +1490,10 @@ func (a *AmazonRedshiftTableDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -1508,7 +1508,7 @@ func (a *AmazonRedshiftTableDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AmazonRedshiftTableDatasetTypeProperties. func (a AmazonRedshiftTableDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "schema", &a.Schema) populate(objectMap, "table", &a.Table) populate(objectMap, "tableName", &a.TableName) @@ -1543,7 +1543,7 @@ func (a *AmazonRedshiftTableDatasetTypeProperties) UnmarshalJSON(data []byte) er // MarshalJSON implements the json.Marshaller interface for type AmazonS3CompatibleLinkedService. func (a AmazonS3CompatibleLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "connectVia", a.ConnectVia) populate(objectMap, "description", a.Description) @@ -1587,10 +1587,10 @@ func (a *AmazonS3CompatibleLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -1605,7 +1605,7 @@ func (a *AmazonS3CompatibleLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AmazonS3CompatibleLinkedServiceTypeProperties. func (a AmazonS3CompatibleLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "accessKeyId", &a.AccessKeyID) populate(objectMap, "encryptedCredential", &a.EncryptedCredential) populate(objectMap, "forcePathStyle", &a.ForcePathStyle) @@ -1648,7 +1648,7 @@ func (a *AmazonS3CompatibleLinkedServiceTypeProperties) UnmarshalJSON(data []byt // MarshalJSON implements the json.Marshaller interface for type AmazonS3CompatibleLocation. func (a AmazonS3CompatibleLocation) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "bucketName", &a.BucketName) populate(objectMap, "fileName", &a.FileName) populate(objectMap, "folderPath", &a.FolderPath) @@ -1688,10 +1688,10 @@ func (a *AmazonS3CompatibleLocation) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -1706,7 +1706,7 @@ func (a *AmazonS3CompatibleLocation) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AmazonS3CompatibleReadSettings. func (a AmazonS3CompatibleReadSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "deleteFilesAfterCompletion", &a.DeleteFilesAfterCompletion) populate(objectMap, "disableMetricsCollection", &a.DisableMetricsCollection) populate(objectMap, "enablePartitionDiscovery", a.EnablePartitionDiscovery) @@ -1778,10 +1778,10 @@ func (a *AmazonS3CompatibleReadSettings) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -1796,7 +1796,7 @@ func (a *AmazonS3CompatibleReadSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AmazonS3Dataset. func (a AmazonS3Dataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "description", a.Description) populate(objectMap, "folder", a.Folder) @@ -1852,10 +1852,10 @@ func (a *AmazonS3Dataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -1870,7 +1870,7 @@ func (a *AmazonS3Dataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AmazonS3DatasetTypeProperties. func (a AmazonS3DatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "bucketName", &a.BucketName) populate(objectMap, "compression", a.Compression) populate(objectMap, "format", a.Format) @@ -1925,7 +1925,7 @@ func (a *AmazonS3DatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AmazonS3LinkedService. func (a AmazonS3LinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "connectVia", a.ConnectVia) populate(objectMap, "description", a.Description) @@ -1969,10 +1969,10 @@ func (a *AmazonS3LinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -1987,7 +1987,7 @@ func (a *AmazonS3LinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AmazonS3LinkedServiceTypeProperties. func (a AmazonS3LinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "accessKeyId", &a.AccessKeyID) populate(objectMap, "authenticationType", &a.AuthenticationType) populate(objectMap, "encryptedCredential", &a.EncryptedCredential) @@ -2034,7 +2034,7 @@ func (a *AmazonS3LinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AmazonS3Location. func (a AmazonS3Location) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "bucketName", &a.BucketName) populate(objectMap, "fileName", &a.FileName) populate(objectMap, "folderPath", &a.FolderPath) @@ -2074,10 +2074,10 @@ func (a *AmazonS3Location) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -2092,7 +2092,7 @@ func (a *AmazonS3Location) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AmazonS3ReadSettings. func (a AmazonS3ReadSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "deleteFilesAfterCompletion", &a.DeleteFilesAfterCompletion) populate(objectMap, "disableMetricsCollection", &a.DisableMetricsCollection) populate(objectMap, "enablePartitionDiscovery", a.EnablePartitionDiscovery) @@ -2164,10 +2164,10 @@ func (a *AmazonS3ReadSettings) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -2182,7 +2182,7 @@ func (a *AmazonS3ReadSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AppFiguresLinkedService. func (a AppFiguresLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "connectVia", a.ConnectVia) populate(objectMap, "description", a.Description) @@ -2226,10 +2226,10 @@ func (a *AppFiguresLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -2244,7 +2244,7 @@ func (a *AppFiguresLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AppFiguresLinkedServiceTypeProperties. func (a AppFiguresLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "clientKey", a.ClientKey) populate(objectMap, "password", a.Password) populate(objectMap, "userName", &a.UserName) @@ -2279,7 +2279,7 @@ func (a *AppFiguresLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type AppendVariableActivity. func (a AppendVariableActivity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", a.DependsOn) populate(objectMap, "description", a.Description) populate(objectMap, "name", a.Name) @@ -2323,10 +2323,10 @@ func (a *AppendVariableActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -2341,7 +2341,7 @@ func (a *AppendVariableActivity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AppendVariableActivityTypeProperties. func (a AppendVariableActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "value", &a.Value) populate(objectMap, "variableName", a.VariableName) return json.Marshal(objectMap) @@ -2372,7 +2372,7 @@ func (a *AppendVariableActivityTypeProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type ArmIDWrapper. func (a ArmIDWrapper) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", a.ID) return json.Marshal(objectMap) } @@ -2399,7 +2399,7 @@ func (a *ArmIDWrapper) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AsanaLinkedService. func (a AsanaLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "connectVia", a.ConnectVia) populate(objectMap, "description", a.Description) @@ -2443,10 +2443,10 @@ func (a *AsanaLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -2461,7 +2461,7 @@ func (a *AsanaLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AsanaLinkedServiceTypeProperties. func (a AsanaLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "apiToken", a.APIToken) populate(objectMap, "encryptedCredential", &a.EncryptedCredential) return json.Marshal(objectMap) @@ -2492,7 +2492,7 @@ func (a *AsanaLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AvroDataset. func (a AvroDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "description", a.Description) populate(objectMap, "folder", a.Folder) @@ -2548,10 +2548,10 @@ func (a *AvroDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -2566,7 +2566,7 @@ func (a *AvroDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AvroDatasetTypeProperties. func (a AvroDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "avroCompressionCodec", &a.AvroCompressionCodec) populate(objectMap, "avroCompressionLevel", a.AvroCompressionLevel) populate(objectMap, "location", a.Location) @@ -2601,7 +2601,7 @@ func (a *AvroDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AvroFormat. func (a AvroFormat) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "deserializer", &a.Deserializer) populate(objectMap, "serializer", &a.Serializer) objectMap["type"] = "AvroFormat" @@ -2633,10 +2633,10 @@ func (a *AvroFormat) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -2651,7 +2651,7 @@ func (a *AvroFormat) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AvroSink. func (a AvroSink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "disableMetricsCollection", &a.DisableMetricsCollection) populate(objectMap, "formatSettings", a.FormatSettings) populate(objectMap, "maxConcurrentConnections", &a.MaxConcurrentConnections) @@ -2707,10 +2707,10 @@ func (a *AvroSink) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -2725,7 +2725,7 @@ func (a *AvroSink) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AvroSource. func (a AvroSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &a.AdditionalColumns) populate(objectMap, "disableMetricsCollection", &a.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &a.MaxConcurrentConnections) @@ -2773,10 +2773,10 @@ func (a *AvroSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -2791,7 +2791,7 @@ func (a *AvroSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AvroWriteSettings. func (a AvroWriteSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "fileNamePrefix", &a.FileNamePrefix) populate(objectMap, "maxRowsPerFile", &a.MaxRowsPerFile) populate(objectMap, "recordName", a.RecordName) @@ -2831,10 +2831,10 @@ func (a *AvroWriteSettings) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -2849,7 +2849,7 @@ func (a *AvroWriteSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzPowerShellSetup. func (a AzPowerShellSetup) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) objectMap["type"] = "AzPowerShellSetup" populate(objectMap, "typeProperties", a.TypeProperties) return json.Marshal(objectMap) @@ -2880,7 +2880,7 @@ func (a *AzPowerShellSetup) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzPowerShellSetupTypeProperties. func (a AzPowerShellSetupTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "version", a.Version) return json.Marshal(objectMap) } @@ -2907,7 +2907,7 @@ func (a *AzPowerShellSetupTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureBatchLinkedService. func (a AzureBatchLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "connectVia", a.ConnectVia) populate(objectMap, "description", a.Description) @@ -2951,10 +2951,10 @@ func (a *AzureBatchLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -2969,7 +2969,7 @@ func (a *AzureBatchLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureBatchLinkedServiceTypeProperties. func (a AzureBatchLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "accessKey", a.AccessKey) populate(objectMap, "accountName", &a.AccountName) populate(objectMap, "batchUri", &a.BatchURI) @@ -3020,7 +3020,7 @@ func (a *AzureBatchLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type AzureBlobDataset. func (a AzureBlobDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "description", a.Description) populate(objectMap, "folder", a.Folder) @@ -3076,10 +3076,10 @@ func (a *AzureBlobDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -3094,7 +3094,7 @@ func (a *AzureBlobDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureBlobDatasetTypeProperties. func (a AzureBlobDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "compression", a.Compression) populate(objectMap, "fileName", &a.FileName) populate(objectMap, "folderPath", &a.FolderPath) @@ -3145,7 +3145,7 @@ func (a *AzureBlobDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureBlobFSDataset. func (a AzureBlobFSDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "description", a.Description) populate(objectMap, "folder", a.Folder) @@ -3201,10 +3201,10 @@ func (a *AzureBlobFSDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -3219,7 +3219,7 @@ func (a *AzureBlobFSDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureBlobFSDatasetTypeProperties. func (a AzureBlobFSDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "compression", a.Compression) populate(objectMap, "fileName", &a.FileName) populate(objectMap, "folderPath", &a.FolderPath) @@ -3258,7 +3258,7 @@ func (a *AzureBlobFSDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureBlobFSLinkedService. func (a AzureBlobFSLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "connectVia", a.ConnectVia) populate(objectMap, "description", a.Description) @@ -3302,10 +3302,10 @@ func (a *AzureBlobFSLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -3320,7 +3320,7 @@ func (a *AzureBlobFSLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureBlobFSLinkedServiceTypeProperties. func (a AzureBlobFSLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "accountKey", &a.AccountKey) populate(objectMap, "azureCloudType", &a.AzureCloudType) populate(objectMap, "credential", a.Credential) @@ -3383,7 +3383,7 @@ func (a *AzureBlobFSLinkedServiceTypeProperties) UnmarshalJSON(data []byte) erro // MarshalJSON implements the json.Marshaller interface for type AzureBlobFSLocation. func (a AzureBlobFSLocation) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "fileName", &a.FileName) populate(objectMap, "fileSystem", &a.FileSystem) populate(objectMap, "folderPath", &a.FolderPath) @@ -3419,10 +3419,10 @@ func (a *AzureBlobFSLocation) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -3437,7 +3437,7 @@ func (a *AzureBlobFSLocation) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureBlobFSReadSettings. func (a AzureBlobFSReadSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "deleteFilesAfterCompletion", &a.DeleteFilesAfterCompletion) populate(objectMap, "disableMetricsCollection", &a.DisableMetricsCollection) populate(objectMap, "enablePartitionDiscovery", a.EnablePartitionDiscovery) @@ -3505,10 +3505,10 @@ func (a *AzureBlobFSReadSettings) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -3523,7 +3523,7 @@ func (a *AzureBlobFSReadSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureBlobFSSink. func (a AzureBlobFSSink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "copyBehavior", &a.CopyBehavior) populate(objectMap, "disableMetricsCollection", &a.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &a.MaxConcurrentConnections) @@ -3579,10 +3579,10 @@ func (a *AzureBlobFSSink) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -3597,7 +3597,7 @@ func (a *AzureBlobFSSink) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureBlobFSSource. func (a AzureBlobFSSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "disableMetricsCollection", &a.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &a.MaxConcurrentConnections) populate(objectMap, "recursive", &a.Recursive) @@ -3649,10 +3649,10 @@ func (a *AzureBlobFSSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -3667,7 +3667,7 @@ func (a *AzureBlobFSSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureBlobFSWriteSettings. func (a AzureBlobFSWriteSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "blockSizeInMB", &a.BlockSizeInMB) populate(objectMap, "copyBehavior", &a.CopyBehavior) populate(objectMap, "disableMetricsCollection", &a.DisableMetricsCollection) @@ -3707,10 +3707,10 @@ func (a *AzureBlobFSWriteSettings) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -3725,7 +3725,7 @@ func (a *AzureBlobFSWriteSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureBlobStorageLinkedService. func (a AzureBlobStorageLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "connectVia", a.ConnectVia) populate(objectMap, "description", a.Description) @@ -3769,10 +3769,10 @@ func (a *AzureBlobStorageLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -3787,7 +3787,7 @@ func (a *AzureBlobStorageLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureBlobStorageLinkedServiceTypeProperties. func (a AzureBlobStorageLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "accountKey", a.AccountKey) populate(objectMap, "accountKind", a.AccountKind) populate(objectMap, "azureCloudType", &a.AzureCloudType) @@ -3858,7 +3858,7 @@ func (a *AzureBlobStorageLinkedServiceTypeProperties) UnmarshalJSON(data []byte) // MarshalJSON implements the json.Marshaller interface for type AzureBlobStorageLocation. func (a AzureBlobStorageLocation) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "container", &a.Container) populate(objectMap, "fileName", &a.FileName) populate(objectMap, "folderPath", &a.FolderPath) @@ -3894,10 +3894,10 @@ func (a *AzureBlobStorageLocation) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -3912,7 +3912,7 @@ func (a *AzureBlobStorageLocation) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureBlobStorageReadSettings. func (a AzureBlobStorageReadSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "deleteFilesAfterCompletion", &a.DeleteFilesAfterCompletion) populate(objectMap, "disableMetricsCollection", &a.DisableMetricsCollection) populate(objectMap, "enablePartitionDiscovery", a.EnablePartitionDiscovery) @@ -3984,10 +3984,10 @@ func (a *AzureBlobStorageReadSettings) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -4002,7 +4002,7 @@ func (a *AzureBlobStorageReadSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureBlobStorageWriteSettings. func (a AzureBlobStorageWriteSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "blockSizeInMB", &a.BlockSizeInMB) populate(objectMap, "copyBehavior", &a.CopyBehavior) populate(objectMap, "disableMetricsCollection", &a.DisableMetricsCollection) @@ -4042,10 +4042,10 @@ func (a *AzureBlobStorageWriteSettings) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -4060,7 +4060,7 @@ func (a *AzureBlobStorageWriteSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureDataExplorerCommandActivity. func (a AzureDataExplorerCommandActivity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", a.DependsOn) populate(objectMap, "description", a.Description) populate(objectMap, "linkedServiceName", a.LinkedServiceName) @@ -4112,10 +4112,10 @@ func (a *AzureDataExplorerCommandActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -4130,7 +4130,7 @@ func (a *AzureDataExplorerCommandActivity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureDataExplorerCommandActivityTypeProperties. func (a AzureDataExplorerCommandActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "command", &a.Command) populate(objectMap, "commandTimeout", &a.CommandTimeout) return json.Marshal(objectMap) @@ -4161,7 +4161,7 @@ func (a *AzureDataExplorerCommandActivityTypeProperties) UnmarshalJSON(data []by // MarshalJSON implements the json.Marshaller interface for type AzureDataExplorerDatasetTypeProperties. func (a AzureDataExplorerDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "table", &a.Table) return json.Marshal(objectMap) } @@ -4188,7 +4188,7 @@ func (a *AzureDataExplorerDatasetTypeProperties) UnmarshalJSON(data []byte) erro // MarshalJSON implements the json.Marshaller interface for type AzureDataExplorerLinkedService. func (a AzureDataExplorerLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "connectVia", a.ConnectVia) populate(objectMap, "description", a.Description) @@ -4232,10 +4232,10 @@ func (a *AzureDataExplorerLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -4250,7 +4250,7 @@ func (a *AzureDataExplorerLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureDataExplorerLinkedServiceTypeProperties. func (a AzureDataExplorerLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "credential", a.Credential) populate(objectMap, "database", &a.Database) populate(objectMap, "endpoint", &a.Endpoint) @@ -4297,7 +4297,7 @@ func (a *AzureDataExplorerLinkedServiceTypeProperties) UnmarshalJSON(data []byte // MarshalJSON implements the json.Marshaller interface for type AzureDataExplorerSink. func (a AzureDataExplorerSink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "disableMetricsCollection", &a.DisableMetricsCollection) populate(objectMap, "flushImmediately", &a.FlushImmediately) populate(objectMap, "ingestionMappingAsJson", &a.IngestionMappingAsJSON) @@ -4357,10 +4357,10 @@ func (a *AzureDataExplorerSink) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -4375,7 +4375,7 @@ func (a *AzureDataExplorerSink) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureDataExplorerSource. func (a AzureDataExplorerSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &a.AdditionalColumns) populate(objectMap, "disableMetricsCollection", &a.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &a.MaxConcurrentConnections) @@ -4431,10 +4431,10 @@ func (a *AzureDataExplorerSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -4449,7 +4449,7 @@ func (a *AzureDataExplorerSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureDataExplorerTableDataset. func (a AzureDataExplorerTableDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "description", a.Description) populate(objectMap, "folder", a.Folder) @@ -4505,10 +4505,10 @@ func (a *AzureDataExplorerTableDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -4523,7 +4523,7 @@ func (a *AzureDataExplorerTableDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureDataLakeAnalyticsLinkedService. func (a AzureDataLakeAnalyticsLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "connectVia", a.ConnectVia) populate(objectMap, "description", a.Description) @@ -4567,10 +4567,10 @@ func (a *AzureDataLakeAnalyticsLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -4585,7 +4585,7 @@ func (a *AzureDataLakeAnalyticsLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureDataLakeAnalyticsLinkedServiceTypeProperties. func (a AzureDataLakeAnalyticsLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "accountName", &a.AccountName) populate(objectMap, "dataLakeAnalyticsUri", &a.DataLakeAnalyticsURI) populate(objectMap, "encryptedCredential", &a.EncryptedCredential) @@ -4640,7 +4640,7 @@ func (a *AzureDataLakeAnalyticsLinkedServiceTypeProperties) UnmarshalJSON(data [ // MarshalJSON implements the json.Marshaller interface for type AzureDataLakeStoreDataset. func (a AzureDataLakeStoreDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "description", a.Description) populate(objectMap, "folder", a.Folder) @@ -4696,10 +4696,10 @@ func (a *AzureDataLakeStoreDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -4714,7 +4714,7 @@ func (a *AzureDataLakeStoreDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureDataLakeStoreDatasetTypeProperties. func (a AzureDataLakeStoreDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "compression", a.Compression) populate(objectMap, "fileName", &a.FileName) populate(objectMap, "folderPath", &a.FolderPath) @@ -4753,7 +4753,7 @@ func (a *AzureDataLakeStoreDatasetTypeProperties) UnmarshalJSON(data []byte) err // MarshalJSON implements the json.Marshaller interface for type AzureDataLakeStoreLinkedService. func (a AzureDataLakeStoreLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "connectVia", a.ConnectVia) populate(objectMap, "description", a.Description) @@ -4797,10 +4797,10 @@ func (a *AzureDataLakeStoreLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -4815,7 +4815,7 @@ func (a *AzureDataLakeStoreLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureDataLakeStoreLinkedServiceTypeProperties. func (a AzureDataLakeStoreLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "accountName", &a.AccountName) populate(objectMap, "azureCloudType", &a.AzureCloudType) populate(objectMap, "credential", a.Credential) @@ -4878,7 +4878,7 @@ func (a *AzureDataLakeStoreLinkedServiceTypeProperties) UnmarshalJSON(data []byt // MarshalJSON implements the json.Marshaller interface for type AzureDataLakeStoreLocation. func (a AzureDataLakeStoreLocation) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "fileName", &a.FileName) populate(objectMap, "folderPath", &a.FolderPath) objectMap["type"] = "AzureDataLakeStoreLocation" @@ -4910,10 +4910,10 @@ func (a *AzureDataLakeStoreLocation) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -4928,7 +4928,7 @@ func (a *AzureDataLakeStoreLocation) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureDataLakeStoreReadSettings. func (a AzureDataLakeStoreReadSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "deleteFilesAfterCompletion", &a.DeleteFilesAfterCompletion) populate(objectMap, "disableMetricsCollection", &a.DisableMetricsCollection) populate(objectMap, "enablePartitionDiscovery", a.EnablePartitionDiscovery) @@ -5004,10 +5004,10 @@ func (a *AzureDataLakeStoreReadSettings) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -5022,7 +5022,7 @@ func (a *AzureDataLakeStoreReadSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureDataLakeStoreSink. func (a AzureDataLakeStoreSink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "copyBehavior", &a.CopyBehavior) populate(objectMap, "disableMetricsCollection", &a.DisableMetricsCollection) populate(objectMap, "enableAdlsSingleFileParallel", &a.EnableAdlsSingleFileParallel) @@ -5078,10 +5078,10 @@ func (a *AzureDataLakeStoreSink) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -5096,7 +5096,7 @@ func (a *AzureDataLakeStoreSink) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureDataLakeStoreSource. func (a AzureDataLakeStoreSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "disableMetricsCollection", &a.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &a.MaxConcurrentConnections) populate(objectMap, "recursive", &a.Recursive) @@ -5140,10 +5140,10 @@ func (a *AzureDataLakeStoreSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -5158,7 +5158,7 @@ func (a *AzureDataLakeStoreSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureDataLakeStoreWriteSettings. func (a AzureDataLakeStoreWriteSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "copyBehavior", &a.CopyBehavior) populate(objectMap, "disableMetricsCollection", &a.DisableMetricsCollection) populate(objectMap, "expiryDateTime", &a.ExpiryDateTime) @@ -5198,10 +5198,10 @@ func (a *AzureDataLakeStoreWriteSettings) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -5216,7 +5216,7 @@ func (a *AzureDataLakeStoreWriteSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureDatabricksDeltaLakeDataset. func (a AzureDatabricksDeltaLakeDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "description", a.Description) populate(objectMap, "folder", a.Folder) @@ -5272,10 +5272,10 @@ func (a *AzureDatabricksDeltaLakeDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -5290,7 +5290,7 @@ func (a *AzureDatabricksDeltaLakeDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureDatabricksDeltaLakeDatasetTypeProperties. func (a AzureDatabricksDeltaLakeDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "database", &a.Database) populate(objectMap, "table", &a.Table) return json.Marshal(objectMap) @@ -5321,7 +5321,7 @@ func (a *AzureDatabricksDeltaLakeDatasetTypeProperties) UnmarshalJSON(data []byt // MarshalJSON implements the json.Marshaller interface for type AzureDatabricksDeltaLakeExportCommand. func (a AzureDatabricksDeltaLakeExportCommand) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dateFormat", &a.DateFormat) populate(objectMap, "timestampFormat", &a.TimestampFormat) objectMap["type"] = "AzureDatabricksDeltaLakeExportCommand" @@ -5353,10 +5353,10 @@ func (a *AzureDatabricksDeltaLakeExportCommand) UnmarshalJSON(data []byte) error delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -5371,7 +5371,7 @@ func (a *AzureDatabricksDeltaLakeExportCommand) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type AzureDatabricksDeltaLakeImportCommand. func (a AzureDatabricksDeltaLakeImportCommand) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dateFormat", &a.DateFormat) populate(objectMap, "timestampFormat", &a.TimestampFormat) objectMap["type"] = "AzureDatabricksDeltaLakeImportCommand" @@ -5403,10 +5403,10 @@ func (a *AzureDatabricksDeltaLakeImportCommand) UnmarshalJSON(data []byte) error delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -5421,7 +5421,7 @@ func (a *AzureDatabricksDeltaLakeImportCommand) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type AzureDatabricksDeltaLakeLinkedService. func (a AzureDatabricksDeltaLakeLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "connectVia", a.ConnectVia) populate(objectMap, "description", a.Description) @@ -5465,10 +5465,10 @@ func (a *AzureDatabricksDeltaLakeLinkedService) UnmarshalJSON(data []byte) error delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -5483,7 +5483,7 @@ func (a *AzureDatabricksDeltaLakeLinkedService) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type AzureDatabricksDeltaLakeSink. func (a AzureDatabricksDeltaLakeSink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "disableMetricsCollection", &a.DisableMetricsCollection) populate(objectMap, "importSettings", a.ImportSettings) populate(objectMap, "maxConcurrentConnections", &a.MaxConcurrentConnections) @@ -5539,10 +5539,10 @@ func (a *AzureDatabricksDeltaLakeSink) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -5557,7 +5557,7 @@ func (a *AzureDatabricksDeltaLakeSink) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureDatabricksDeltaLakeSource. func (a AzureDatabricksDeltaLakeSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "disableMetricsCollection", &a.DisableMetricsCollection) populate(objectMap, "exportSettings", a.ExportSettings) populate(objectMap, "maxConcurrentConnections", &a.MaxConcurrentConnections) @@ -5605,10 +5605,10 @@ func (a *AzureDatabricksDeltaLakeSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -5623,7 +5623,7 @@ func (a *AzureDatabricksDeltaLakeSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureDatabricksDetltaLakeLinkedServiceTypeProperties. func (a AzureDatabricksDetltaLakeLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "accessToken", a.AccessToken) populate(objectMap, "clusterId", &a.ClusterID) populate(objectMap, "credential", a.Credential) @@ -5670,7 +5670,7 @@ func (a *AzureDatabricksDetltaLakeLinkedServiceTypeProperties) UnmarshalJSON(dat // MarshalJSON implements the json.Marshaller interface for type AzureDatabricksLinkedService. func (a AzureDatabricksLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "connectVia", a.ConnectVia) populate(objectMap, "description", a.Description) @@ -5714,10 +5714,10 @@ func (a *AzureDatabricksLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -5732,7 +5732,7 @@ func (a *AzureDatabricksLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureDatabricksLinkedServiceTypeProperties. func (a AzureDatabricksLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "accessToken", a.AccessToken) populate(objectMap, "authentication", &a.Authentication) populate(objectMap, "credential", a.Credential) @@ -5831,7 +5831,7 @@ func (a *AzureDatabricksLinkedServiceTypeProperties) UnmarshalJSON(data []byte) // MarshalJSON implements the json.Marshaller interface for type AzureFileStorageLinkedService. func (a AzureFileStorageLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "connectVia", a.ConnectVia) populate(objectMap, "description", a.Description) @@ -5875,10 +5875,10 @@ func (a *AzureFileStorageLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -5893,7 +5893,7 @@ func (a *AzureFileStorageLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureFileStorageLinkedServiceTypeProperties. func (a AzureFileStorageLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "accountKey", a.AccountKey) populate(objectMap, "connectionString", &a.ConnectionString) populate(objectMap, "encryptedCredential", &a.EncryptedCredential) @@ -5956,7 +5956,7 @@ func (a *AzureFileStorageLinkedServiceTypeProperties) UnmarshalJSON(data []byte) // MarshalJSON implements the json.Marshaller interface for type AzureFileStorageLocation. func (a AzureFileStorageLocation) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "fileName", &a.FileName) populate(objectMap, "folderPath", &a.FolderPath) objectMap["type"] = "AzureFileStorageLocation" @@ -5988,10 +5988,10 @@ func (a *AzureFileStorageLocation) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -6006,7 +6006,7 @@ func (a *AzureFileStorageLocation) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureFileStorageReadSettings. func (a AzureFileStorageReadSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "deleteFilesAfterCompletion", &a.DeleteFilesAfterCompletion) populate(objectMap, "disableMetricsCollection", &a.DisableMetricsCollection) populate(objectMap, "enablePartitionDiscovery", a.EnablePartitionDiscovery) @@ -6078,10 +6078,10 @@ func (a *AzureFileStorageReadSettings) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -6096,7 +6096,7 @@ func (a *AzureFileStorageReadSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureFileStorageWriteSettings. func (a AzureFileStorageWriteSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "copyBehavior", &a.CopyBehavior) populate(objectMap, "disableMetricsCollection", &a.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &a.MaxConcurrentConnections) @@ -6132,10 +6132,10 @@ func (a *AzureFileStorageWriteSettings) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -6150,7 +6150,7 @@ func (a *AzureFileStorageWriteSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureFunctionActivity. func (a AzureFunctionActivity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", a.DependsOn) populate(objectMap, "description", a.Description) populate(objectMap, "linkedServiceName", a.LinkedServiceName) @@ -6202,10 +6202,10 @@ func (a *AzureFunctionActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -6220,7 +6220,7 @@ func (a *AzureFunctionActivity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureFunctionActivityTypeProperties. func (a AzureFunctionActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "body", &a.Body) populate(objectMap, "functionName", &a.FunctionName) populate(objectMap, "headers", &a.Headers) @@ -6259,7 +6259,7 @@ func (a *AzureFunctionActivityTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureFunctionLinkedService. func (a AzureFunctionLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "connectVia", a.ConnectVia) populate(objectMap, "description", a.Description) @@ -6303,10 +6303,10 @@ func (a *AzureFunctionLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -6321,7 +6321,7 @@ func (a *AzureFunctionLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureFunctionLinkedServiceTypeProperties. func (a AzureFunctionLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "authentication", &a.Authentication) populate(objectMap, "credential", a.Credential) populate(objectMap, "encryptedCredential", &a.EncryptedCredential) @@ -6368,7 +6368,7 @@ func (a *AzureFunctionLinkedServiceTypeProperties) UnmarshalJSON(data []byte) er // MarshalJSON implements the json.Marshaller interface for type AzureKeyVaultLinkedService. func (a AzureKeyVaultLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "connectVia", a.ConnectVia) populate(objectMap, "description", a.Description) @@ -6412,10 +6412,10 @@ func (a *AzureKeyVaultLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -6430,7 +6430,7 @@ func (a *AzureKeyVaultLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureKeyVaultLinkedServiceTypeProperties. func (a AzureKeyVaultLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "baseUrl", &a.BaseURL) populate(objectMap, "credential", a.Credential) return json.Marshal(objectMap) @@ -6461,7 +6461,7 @@ func (a *AzureKeyVaultLinkedServiceTypeProperties) UnmarshalJSON(data []byte) er // MarshalJSON implements the json.Marshaller interface for type AzureKeyVaultSecretReference. func (a AzureKeyVaultSecretReference) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "secretName", &a.SecretName) populate(objectMap, "secretVersion", &a.SecretVersion) populate(objectMap, "store", a.Store) @@ -6500,7 +6500,7 @@ func (a *AzureKeyVaultSecretReference) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureMLBatchExecutionActivity. func (a AzureMLBatchExecutionActivity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", a.DependsOn) populate(objectMap, "description", a.Description) populate(objectMap, "linkedServiceName", a.LinkedServiceName) @@ -6552,10 +6552,10 @@ func (a *AzureMLBatchExecutionActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -6570,7 +6570,7 @@ func (a *AzureMLBatchExecutionActivity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureMLBatchExecutionActivityTypeProperties. func (a AzureMLBatchExecutionActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "globalParameters", a.GlobalParameters) populate(objectMap, "webServiceInputs", a.WebServiceInputs) populate(objectMap, "webServiceOutputs", a.WebServiceOutputs) @@ -6605,7 +6605,7 @@ func (a *AzureMLBatchExecutionActivityTypeProperties) UnmarshalJSON(data []byte) // MarshalJSON implements the json.Marshaller interface for type AzureMLExecutePipelineActivity. func (a AzureMLExecutePipelineActivity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", a.DependsOn) populate(objectMap, "description", a.Description) populate(objectMap, "linkedServiceName", a.LinkedServiceName) @@ -6657,10 +6657,10 @@ func (a *AzureMLExecutePipelineActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -6675,7 +6675,7 @@ func (a *AzureMLExecutePipelineActivity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureMLExecutePipelineActivityTypeProperties. func (a AzureMLExecutePipelineActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "continueOnStepFailure", &a.ContinueOnStepFailure) populate(objectMap, "dataPathAssignments", &a.DataPathAssignments) populate(objectMap, "experimentName", &a.ExperimentName) @@ -6730,7 +6730,7 @@ func (a *AzureMLExecutePipelineActivityTypeProperties) UnmarshalJSON(data []byte // MarshalJSON implements the json.Marshaller interface for type AzureMLLinkedService. func (a AzureMLLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "connectVia", a.ConnectVia) populate(objectMap, "description", a.Description) @@ -6774,10 +6774,10 @@ func (a *AzureMLLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -6792,7 +6792,7 @@ func (a *AzureMLLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureMLLinkedServiceTypeProperties. func (a AzureMLLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "apiKey", a.APIKey) populate(objectMap, "authentication", &a.Authentication) populate(objectMap, "encryptedCredential", &a.EncryptedCredential) @@ -6847,7 +6847,7 @@ func (a *AzureMLLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureMLServiceLinkedService. func (a AzureMLServiceLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "connectVia", a.ConnectVia) populate(objectMap, "description", a.Description) @@ -6891,10 +6891,10 @@ func (a *AzureMLServiceLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -6909,7 +6909,7 @@ func (a *AzureMLServiceLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureMLServiceLinkedServiceTypeProperties. func (a AzureMLServiceLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "encryptedCredential", &a.EncryptedCredential) populate(objectMap, "mlWorkspaceName", &a.MlWorkspaceName) populate(objectMap, "resourceGroupName", &a.ResourceGroupName) @@ -6960,7 +6960,7 @@ func (a *AzureMLServiceLinkedServiceTypeProperties) UnmarshalJSON(data []byte) e // MarshalJSON implements the json.Marshaller interface for type AzureMLUpdateResourceActivity. func (a AzureMLUpdateResourceActivity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", a.DependsOn) populate(objectMap, "description", a.Description) populate(objectMap, "linkedServiceName", a.LinkedServiceName) @@ -7012,10 +7012,10 @@ func (a *AzureMLUpdateResourceActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -7030,7 +7030,7 @@ func (a *AzureMLUpdateResourceActivity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureMLUpdateResourceActivityTypeProperties. func (a AzureMLUpdateResourceActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "trainedModelFilePath", &a.TrainedModelFilePath) populate(objectMap, "trainedModelLinkedServiceName", a.TrainedModelLinkedServiceName) populate(objectMap, "trainedModelName", &a.TrainedModelName) @@ -7065,7 +7065,7 @@ func (a *AzureMLUpdateResourceActivityTypeProperties) UnmarshalJSON(data []byte) // MarshalJSON implements the json.Marshaller interface for type AzureMLWebServiceFile. func (a AzureMLWebServiceFile) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "filePath", &a.FilePath) populate(objectMap, "linkedServiceName", a.LinkedServiceName) return json.Marshal(objectMap) @@ -7096,7 +7096,7 @@ func (a *AzureMLWebServiceFile) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureMariaDBLinkedService. func (a AzureMariaDBLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "connectVia", a.ConnectVia) populate(objectMap, "description", a.Description) @@ -7140,10 +7140,10 @@ func (a *AzureMariaDBLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -7158,7 +7158,7 @@ func (a *AzureMariaDBLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureMariaDBLinkedServiceTypeProperties. func (a AzureMariaDBLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "connectionString", &a.ConnectionString) populate(objectMap, "encryptedCredential", &a.EncryptedCredential) populate(objectMap, "pwd", a.Pwd) @@ -7193,7 +7193,7 @@ func (a *AzureMariaDBLinkedServiceTypeProperties) UnmarshalJSON(data []byte) err // MarshalJSON implements the json.Marshaller interface for type AzureMariaDBSource. func (a AzureMariaDBSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &a.AdditionalColumns) populate(objectMap, "disableMetricsCollection", &a.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &a.MaxConcurrentConnections) @@ -7245,10 +7245,10 @@ func (a *AzureMariaDBSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -7263,7 +7263,7 @@ func (a *AzureMariaDBSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureMariaDBTableDataset. func (a AzureMariaDBTableDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "description", a.Description) populate(objectMap, "folder", a.Folder) @@ -7319,10 +7319,10 @@ func (a *AzureMariaDBTableDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -7337,7 +7337,7 @@ func (a *AzureMariaDBTableDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureMySQLLinkedService. func (a AzureMySQLLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "connectVia", a.ConnectVia) populate(objectMap, "description", a.Description) @@ -7381,10 +7381,10 @@ func (a *AzureMySQLLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -7399,7 +7399,7 @@ func (a *AzureMySQLLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureMySQLLinkedServiceTypeProperties. func (a AzureMySQLLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "connectionString", &a.ConnectionString) populate(objectMap, "encryptedCredential", &a.EncryptedCredential) populate(objectMap, "password", a.Password) @@ -7434,7 +7434,7 @@ func (a *AzureMySQLLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type AzureMySQLSink. func (a AzureMySQLSink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "disableMetricsCollection", &a.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &a.MaxConcurrentConnections) populate(objectMap, "preCopyScript", &a.PreCopyScript) @@ -7486,10 +7486,10 @@ func (a *AzureMySQLSink) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -7504,7 +7504,7 @@ func (a *AzureMySQLSink) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureMySQLSource. func (a AzureMySQLSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &a.AdditionalColumns) populate(objectMap, "disableMetricsCollection", &a.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &a.MaxConcurrentConnections) @@ -7556,10 +7556,10 @@ func (a *AzureMySQLSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -7574,7 +7574,7 @@ func (a *AzureMySQLSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureMySQLTableDataset. func (a AzureMySQLTableDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "description", a.Description) populate(objectMap, "folder", a.Folder) @@ -7630,10 +7630,10 @@ func (a *AzureMySQLTableDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -7648,7 +7648,7 @@ func (a *AzureMySQLTableDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureMySQLTableDatasetTypeProperties. func (a AzureMySQLTableDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "table", &a.Table) populate(objectMap, "tableName", &a.TableName) return json.Marshal(objectMap) @@ -7679,7 +7679,7 @@ func (a *AzureMySQLTableDatasetTypeProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type AzurePostgreSQLLinkedService. func (a AzurePostgreSQLLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "connectVia", a.ConnectVia) populate(objectMap, "description", a.Description) @@ -7723,10 +7723,10 @@ func (a *AzurePostgreSQLLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -7741,7 +7741,7 @@ func (a *AzurePostgreSQLLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzurePostgreSQLLinkedServiceTypeProperties. func (a AzurePostgreSQLLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "connectionString", &a.ConnectionString) populate(objectMap, "encryptedCredential", &a.EncryptedCredential) populate(objectMap, "password", a.Password) @@ -7776,7 +7776,7 @@ func (a *AzurePostgreSQLLinkedServiceTypeProperties) UnmarshalJSON(data []byte) // MarshalJSON implements the json.Marshaller interface for type AzurePostgreSQLSink. func (a AzurePostgreSQLSink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "disableMetricsCollection", &a.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &a.MaxConcurrentConnections) populate(objectMap, "preCopyScript", &a.PreCopyScript) @@ -7828,10 +7828,10 @@ func (a *AzurePostgreSQLSink) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -7846,7 +7846,7 @@ func (a *AzurePostgreSQLSink) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzurePostgreSQLSource. func (a AzurePostgreSQLSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &a.AdditionalColumns) populate(objectMap, "disableMetricsCollection", &a.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &a.MaxConcurrentConnections) @@ -7898,10 +7898,10 @@ func (a *AzurePostgreSQLSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -7916,7 +7916,7 @@ func (a *AzurePostgreSQLSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzurePostgreSQLTableDataset. func (a AzurePostgreSQLTableDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "description", a.Description) populate(objectMap, "folder", a.Folder) @@ -7972,10 +7972,10 @@ func (a *AzurePostgreSQLTableDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -7990,7 +7990,7 @@ func (a *AzurePostgreSQLTableDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzurePostgreSQLTableDatasetTypeProperties. func (a AzurePostgreSQLTableDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "schema", &a.Schema) populate(objectMap, "table", &a.Table) populate(objectMap, "tableName", &a.TableName) @@ -8025,7 +8025,7 @@ func (a *AzurePostgreSQLTableDatasetTypeProperties) UnmarshalJSON(data []byte) e // MarshalJSON implements the json.Marshaller interface for type AzureQueueSink. func (a AzureQueueSink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "disableMetricsCollection", &a.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &a.MaxConcurrentConnections) populate(objectMap, "sinkRetryCount", &a.SinkRetryCount) @@ -8073,10 +8073,10 @@ func (a *AzureQueueSink) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -8091,7 +8091,7 @@ func (a *AzureQueueSink) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureSQLDWLinkedService. func (a AzureSQLDWLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "connectVia", a.ConnectVia) populate(objectMap, "description", a.Description) @@ -8135,10 +8135,10 @@ func (a *AzureSQLDWLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -8153,7 +8153,7 @@ func (a *AzureSQLDWLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureSQLDWLinkedServiceTypeProperties. func (a AzureSQLDWLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "azureCloudType", &a.AzureCloudType) populate(objectMap, "connectionString", &a.ConnectionString) populate(objectMap, "credential", a.Credential) @@ -8208,7 +8208,7 @@ func (a *AzureSQLDWLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type AzureSQLDWTableDataset. func (a AzureSQLDWTableDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "description", a.Description) populate(objectMap, "folder", a.Folder) @@ -8264,10 +8264,10 @@ func (a *AzureSQLDWTableDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -8282,7 +8282,7 @@ func (a *AzureSQLDWTableDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureSQLDWTableDatasetTypeProperties. func (a AzureSQLDWTableDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "schema", &a.Schema) populate(objectMap, "table", &a.Table) populate(objectMap, "tableName", &a.TableName) @@ -8317,7 +8317,7 @@ func (a *AzureSQLDWTableDatasetTypeProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type AzureSQLDatabaseLinkedService. func (a AzureSQLDatabaseLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "connectVia", a.ConnectVia) populate(objectMap, "description", a.Description) @@ -8361,10 +8361,10 @@ func (a *AzureSQLDatabaseLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -8379,7 +8379,7 @@ func (a *AzureSQLDatabaseLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureSQLDatabaseLinkedServiceTypeProperties. func (a AzureSQLDatabaseLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "alwaysEncryptedSettings", a.AlwaysEncryptedSettings) populate(objectMap, "azureCloudType", &a.AzureCloudType) populate(objectMap, "connectionString", &a.ConnectionString) @@ -8438,7 +8438,7 @@ func (a *AzureSQLDatabaseLinkedServiceTypeProperties) UnmarshalJSON(data []byte) // MarshalJSON implements the json.Marshaller interface for type AzureSQLMILinkedService. func (a AzureSQLMILinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "connectVia", a.ConnectVia) populate(objectMap, "description", a.Description) @@ -8482,10 +8482,10 @@ func (a *AzureSQLMILinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -8500,7 +8500,7 @@ func (a *AzureSQLMILinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureSQLMILinkedServiceTypeProperties. func (a AzureSQLMILinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "alwaysEncryptedSettings", a.AlwaysEncryptedSettings) populate(objectMap, "azureCloudType", &a.AzureCloudType) populate(objectMap, "connectionString", &a.ConnectionString) @@ -8559,7 +8559,7 @@ func (a *AzureSQLMILinkedServiceTypeProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type AzureSQLMITableDataset. func (a AzureSQLMITableDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "description", a.Description) populate(objectMap, "folder", a.Folder) @@ -8615,10 +8615,10 @@ func (a *AzureSQLMITableDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -8633,7 +8633,7 @@ func (a *AzureSQLMITableDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureSQLMITableDatasetTypeProperties. func (a AzureSQLMITableDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "schema", &a.Schema) populate(objectMap, "table", &a.Table) populate(objectMap, "tableName", &a.TableName) @@ -8668,7 +8668,7 @@ func (a *AzureSQLMITableDatasetTypeProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type AzureSQLSink. func (a AzureSQLSink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "disableMetricsCollection", &a.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &a.MaxConcurrentConnections) populate(objectMap, "preCopyScript", &a.PreCopyScript) @@ -8752,10 +8752,10 @@ func (a *AzureSQLSink) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -8770,7 +8770,7 @@ func (a *AzureSQLSink) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureSQLSource. func (a AzureSQLSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &a.AdditionalColumns) populate(objectMap, "disableMetricsCollection", &a.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &a.MaxConcurrentConnections) @@ -8842,10 +8842,10 @@ func (a *AzureSQLSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -8860,7 +8860,7 @@ func (a *AzureSQLSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureSQLTableDataset. func (a AzureSQLTableDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "description", a.Description) populate(objectMap, "folder", a.Folder) @@ -8916,10 +8916,10 @@ func (a *AzureSQLTableDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -8934,7 +8934,7 @@ func (a *AzureSQLTableDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureSQLTableDatasetTypeProperties. func (a AzureSQLTableDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "schema", &a.Schema) populate(objectMap, "table", &a.Table) populate(objectMap, "tableName", &a.TableName) @@ -8969,7 +8969,7 @@ func (a *AzureSQLTableDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureSearchIndexDataset. func (a AzureSearchIndexDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "description", a.Description) populate(objectMap, "folder", a.Folder) @@ -9025,10 +9025,10 @@ func (a *AzureSearchIndexDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -9043,7 +9043,7 @@ func (a *AzureSearchIndexDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureSearchIndexDatasetTypeProperties. func (a AzureSearchIndexDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "indexName", &a.IndexName) return json.Marshal(objectMap) } @@ -9070,7 +9070,7 @@ func (a *AzureSearchIndexDatasetTypeProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type AzureSearchIndexSink. func (a AzureSearchIndexSink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "disableMetricsCollection", &a.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &a.MaxConcurrentConnections) populate(objectMap, "sinkRetryCount", &a.SinkRetryCount) @@ -9122,10 +9122,10 @@ func (a *AzureSearchIndexSink) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -9140,7 +9140,7 @@ func (a *AzureSearchIndexSink) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureSearchLinkedService. func (a AzureSearchLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "connectVia", a.ConnectVia) populate(objectMap, "description", a.Description) @@ -9184,10 +9184,10 @@ func (a *AzureSearchLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -9202,7 +9202,7 @@ func (a *AzureSearchLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureSearchLinkedServiceTypeProperties. func (a AzureSearchLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "encryptedCredential", &a.EncryptedCredential) populate(objectMap, "key", a.Key) populate(objectMap, "url", &a.URL) @@ -9237,7 +9237,7 @@ func (a *AzureSearchLinkedServiceTypeProperties) UnmarshalJSON(data []byte) erro // MarshalJSON implements the json.Marshaller interface for type AzureStorageLinkedService. func (a AzureStorageLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "connectVia", a.ConnectVia) populate(objectMap, "description", a.Description) @@ -9281,10 +9281,10 @@ func (a *AzureStorageLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -9299,7 +9299,7 @@ func (a *AzureStorageLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureStorageLinkedServiceTypeProperties. func (a AzureStorageLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "accountKey", a.AccountKey) populate(objectMap, "connectionString", &a.ConnectionString) populate(objectMap, "encryptedCredential", a.EncryptedCredential) @@ -9342,7 +9342,7 @@ func (a *AzureStorageLinkedServiceTypeProperties) UnmarshalJSON(data []byte) err // MarshalJSON implements the json.Marshaller interface for type AzureSynapseArtifactsLinkedService. func (a AzureSynapseArtifactsLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "connectVia", a.ConnectVia) populate(objectMap, "description", a.Description) @@ -9386,10 +9386,10 @@ func (a *AzureSynapseArtifactsLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -9404,7 +9404,7 @@ func (a *AzureSynapseArtifactsLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureSynapseArtifactsLinkedServiceTypeProperties. func (a AzureSynapseArtifactsLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "authentication", &a.Authentication) populate(objectMap, "endpoint", &a.Endpoint) populate(objectMap, "workspaceResourceId", &a.WorkspaceResourceID) @@ -9439,7 +9439,7 @@ func (a *AzureSynapseArtifactsLinkedServiceTypeProperties) UnmarshalJSON(data [] // MarshalJSON implements the json.Marshaller interface for type AzureTableDataset. func (a AzureTableDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "description", a.Description) populate(objectMap, "folder", a.Folder) @@ -9495,10 +9495,10 @@ func (a *AzureTableDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -9513,7 +9513,7 @@ func (a *AzureTableDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureTableDatasetTypeProperties. func (a AzureTableDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "tableName", &a.TableName) return json.Marshal(objectMap) } @@ -9540,7 +9540,7 @@ func (a *AzureTableDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureTableSink. func (a AzureTableSink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "azureTableDefaultPartitionKeyValue", &a.AzureTableDefaultPartitionKeyValue) populate(objectMap, "azureTableInsertType", &a.AzureTableInsertType) populate(objectMap, "azureTablePartitionKeyName", &a.AzureTablePartitionKeyName) @@ -9604,10 +9604,10 @@ func (a *AzureTableSink) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -9622,7 +9622,7 @@ func (a *AzureTableSink) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureTableSource. func (a AzureTableSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &a.AdditionalColumns) populate(objectMap, "azureTableSourceIgnoreTableNotFound", &a.AzureTableSourceIgnoreTableNotFound) populate(objectMap, "azureTableSourceQuery", &a.AzureTableSourceQuery) @@ -9678,10 +9678,10 @@ func (a *AzureTableSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -9696,7 +9696,7 @@ func (a *AzureTableSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AzureTableStorageLinkedService. func (a AzureTableStorageLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", a.Annotations) populate(objectMap, "connectVia", a.ConnectVia) populate(objectMap, "description", a.Description) @@ -9740,10 +9740,10 @@ func (a *AzureTableStorageLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if a.AdditionalProperties == nil { - a.AdditionalProperties = map[string]interface{}{} + a.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) a.AdditionalProperties[key] = aux } @@ -9758,7 +9758,7 @@ func (a *AzureTableStorageLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type BigDataPoolParametrizationReference. func (b BigDataPoolParametrizationReference) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "referenceName", &b.ReferenceName) populate(objectMap, "type", b.Type) return json.Marshal(objectMap) @@ -9789,7 +9789,7 @@ func (b *BigDataPoolParametrizationReference) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type BinaryDataset. func (b BinaryDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", b.Annotations) populate(objectMap, "description", b.Description) populate(objectMap, "folder", b.Folder) @@ -9845,10 +9845,10 @@ func (b *BinaryDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if b.AdditionalProperties == nil { - b.AdditionalProperties = map[string]interface{}{} + b.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) b.AdditionalProperties[key] = aux } @@ -9863,7 +9863,7 @@ func (b *BinaryDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type BinaryDatasetTypeProperties. func (b BinaryDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "compression", b.Compression) populate(objectMap, "location", b.Location) return json.Marshal(objectMap) @@ -9894,7 +9894,7 @@ func (b *BinaryDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type BinaryReadSettings. func (b BinaryReadSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "compressionProperties", b.CompressionProperties) objectMap["type"] = "BinaryReadSettings" if b.AdditionalProperties != nil { @@ -9922,10 +9922,10 @@ func (b *BinaryReadSettings) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if b.AdditionalProperties == nil { - b.AdditionalProperties = map[string]interface{}{} + b.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) b.AdditionalProperties[key] = aux } @@ -9940,7 +9940,7 @@ func (b *BinaryReadSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type BinarySink. func (b BinarySink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "disableMetricsCollection", &b.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &b.MaxConcurrentConnections) populate(objectMap, "sinkRetryCount", &b.SinkRetryCount) @@ -9992,10 +9992,10 @@ func (b *BinarySink) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if b.AdditionalProperties == nil { - b.AdditionalProperties = map[string]interface{}{} + b.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) b.AdditionalProperties[key] = aux } @@ -10010,7 +10010,7 @@ func (b *BinarySink) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type BinarySource. func (b BinarySource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "disableMetricsCollection", &b.DisableMetricsCollection) populate(objectMap, "formatSettings", b.FormatSettings) populate(objectMap, "maxConcurrentConnections", &b.MaxConcurrentConnections) @@ -10058,10 +10058,10 @@ func (b *BinarySource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if b.AdditionalProperties == nil { - b.AdditionalProperties = map[string]interface{}{} + b.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) b.AdditionalProperties[key] = aux } @@ -10076,7 +10076,7 @@ func (b *BinarySource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type BlobEventsTrigger. func (b BlobEventsTrigger) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", b.Annotations) populate(objectMap, "description", b.Description) populate(objectMap, "pipelines", b.Pipelines) @@ -10120,10 +10120,10 @@ func (b *BlobEventsTrigger) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if b.AdditionalProperties == nil { - b.AdditionalProperties = map[string]interface{}{} + b.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) b.AdditionalProperties[key] = aux } @@ -10138,7 +10138,7 @@ func (b *BlobEventsTrigger) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type BlobEventsTriggerTypeProperties. func (b BlobEventsTriggerTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "blobPathBeginsWith", b.BlobPathBeginsWith) populate(objectMap, "blobPathEndsWith", b.BlobPathEndsWith) populate(objectMap, "events", b.Events) @@ -10181,7 +10181,7 @@ func (b *BlobEventsTriggerTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type BlobSink. func (b BlobSink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "blobWriterAddHeader", &b.BlobWriterAddHeader) populate(objectMap, "blobWriterDateTimeFormat", &b.BlobWriterDateTimeFormat) populate(objectMap, "blobWriterOverwriteFiles", &b.BlobWriterOverwriteFiles) @@ -10249,10 +10249,10 @@ func (b *BlobSink) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if b.AdditionalProperties == nil { - b.AdditionalProperties = map[string]interface{}{} + b.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) b.AdditionalProperties[key] = aux } @@ -10267,7 +10267,7 @@ func (b *BlobSink) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type BlobSource. func (b BlobSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "disableMetricsCollection", &b.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &b.MaxConcurrentConnections) populate(objectMap, "recursive", &b.Recursive) @@ -10319,10 +10319,10 @@ func (b *BlobSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if b.AdditionalProperties == nil { - b.AdditionalProperties = map[string]interface{}{} + b.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) b.AdditionalProperties[key] = aux } @@ -10337,7 +10337,7 @@ func (b *BlobSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type BlobTrigger. func (b BlobTrigger) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", b.Annotations) populate(objectMap, "description", b.Description) populate(objectMap, "pipelines", b.Pipelines) @@ -10381,10 +10381,10 @@ func (b *BlobTrigger) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if b.AdditionalProperties == nil { - b.AdditionalProperties = map[string]interface{}{} + b.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) b.AdditionalProperties[key] = aux } @@ -10399,7 +10399,7 @@ func (b *BlobTrigger) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type BlobTriggerTypeProperties. func (b BlobTriggerTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "folderPath", b.FolderPath) populate(objectMap, "linkedService", b.LinkedService) populate(objectMap, "maxConcurrency", b.MaxConcurrency) @@ -10434,7 +10434,7 @@ func (b *BlobTriggerTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CMKIdentityDefinition. func (c CMKIdentityDefinition) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "userAssignedIdentity", c.UserAssignedIdentity) return json.Marshal(objectMap) } @@ -10461,7 +10461,7 @@ func (c *CMKIdentityDefinition) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CassandraLinkedService. func (c CassandraLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", c.Annotations) populate(objectMap, "connectVia", c.ConnectVia) populate(objectMap, "description", c.Description) @@ -10505,10 +10505,10 @@ func (c *CassandraLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if c.AdditionalProperties == nil { - c.AdditionalProperties = map[string]interface{}{} + c.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) c.AdditionalProperties[key] = aux } @@ -10523,7 +10523,7 @@ func (c *CassandraLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CassandraLinkedServiceTypeProperties. func (c CassandraLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "authenticationType", &c.AuthenticationType) populate(objectMap, "encryptedCredential", &c.EncryptedCredential) populate(objectMap, "host", &c.Host) @@ -10570,7 +10570,7 @@ func (c *CassandraLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type CassandraSource. func (c CassandraSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &c.AdditionalColumns) populate(objectMap, "consistencyLevel", c.ConsistencyLevel) populate(objectMap, "disableMetricsCollection", &c.DisableMetricsCollection) @@ -10626,10 +10626,10 @@ func (c *CassandraSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if c.AdditionalProperties == nil { - c.AdditionalProperties = map[string]interface{}{} + c.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) c.AdditionalProperties[key] = aux } @@ -10644,7 +10644,7 @@ func (c *CassandraSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CassandraTableDataset. func (c CassandraTableDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", c.Annotations) populate(objectMap, "description", c.Description) populate(objectMap, "folder", c.Folder) @@ -10700,10 +10700,10 @@ func (c *CassandraTableDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if c.AdditionalProperties == nil { - c.AdditionalProperties = map[string]interface{}{} + c.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) c.AdditionalProperties[key] = aux } @@ -10718,7 +10718,7 @@ func (c *CassandraTableDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CassandraTableDatasetTypeProperties. func (c CassandraTableDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "keyspace", &c.Keyspace) populate(objectMap, "tableName", &c.TableName) return json.Marshal(objectMap) @@ -10749,7 +10749,7 @@ func (c *CassandraTableDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ChainingTrigger. func (c ChainingTrigger) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", c.Annotations) populate(objectMap, "description", c.Description) populate(objectMap, "pipeline", c.Pipeline) @@ -10793,10 +10793,10 @@ func (c *ChainingTrigger) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if c.AdditionalProperties == nil { - c.AdditionalProperties = map[string]interface{}{} + c.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) c.AdditionalProperties[key] = aux } @@ -10811,7 +10811,7 @@ func (c *ChainingTrigger) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ChainingTriggerTypeProperties. func (c ChainingTriggerTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", c.DependsOn) populate(objectMap, "runDimension", c.RunDimension) return json.Marshal(objectMap) @@ -10842,7 +10842,7 @@ func (c *ChainingTriggerTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CmdkeySetup. func (c CmdkeySetup) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) objectMap["type"] = "CmdkeySetup" populate(objectMap, "typeProperties", c.TypeProperties) return json.Marshal(objectMap) @@ -10873,7 +10873,7 @@ func (c *CmdkeySetup) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CmdkeySetupTypeProperties. func (c CmdkeySetupTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "password", c.Password) populate(objectMap, "targetName", &c.TargetName) populate(objectMap, "userName", &c.UserName) @@ -10908,7 +10908,7 @@ func (c *CmdkeySetupTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CommonDataServiceForAppsEntityDataset. func (c CommonDataServiceForAppsEntityDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", c.Annotations) populate(objectMap, "description", c.Description) populate(objectMap, "folder", c.Folder) @@ -10964,10 +10964,10 @@ func (c *CommonDataServiceForAppsEntityDataset) UnmarshalJSON(data []byte) error delete(rawMsg, key) default: if c.AdditionalProperties == nil { - c.AdditionalProperties = map[string]interface{}{} + c.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) c.AdditionalProperties[key] = aux } @@ -10982,7 +10982,7 @@ func (c *CommonDataServiceForAppsEntityDataset) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type CommonDataServiceForAppsEntityDatasetTypeProperties. func (c CommonDataServiceForAppsEntityDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "entityName", &c.EntityName) return json.Marshal(objectMap) } @@ -11009,7 +11009,7 @@ func (c *CommonDataServiceForAppsEntityDatasetTypeProperties) UnmarshalJSON(data // MarshalJSON implements the json.Marshaller interface for type CommonDataServiceForAppsLinkedService. func (c CommonDataServiceForAppsLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", c.Annotations) populate(objectMap, "connectVia", c.ConnectVia) populate(objectMap, "description", c.Description) @@ -11053,10 +11053,10 @@ func (c *CommonDataServiceForAppsLinkedService) UnmarshalJSON(data []byte) error delete(rawMsg, key) default: if c.AdditionalProperties == nil { - c.AdditionalProperties = map[string]interface{}{} + c.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) c.AdditionalProperties[key] = aux } @@ -11071,7 +11071,7 @@ func (c *CommonDataServiceForAppsLinkedService) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type CommonDataServiceForAppsLinkedServiceTypeProperties. func (c CommonDataServiceForAppsLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "authenticationType", &c.AuthenticationType) populate(objectMap, "deploymentType", &c.DeploymentType) populate(objectMap, "encryptedCredential", &c.EncryptedCredential) @@ -11142,7 +11142,7 @@ func (c *CommonDataServiceForAppsLinkedServiceTypeProperties) UnmarshalJSON(data // MarshalJSON implements the json.Marshaller interface for type CommonDataServiceForAppsSink. func (c CommonDataServiceForAppsSink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "alternateKeyName", &c.AlternateKeyName) populate(objectMap, "disableMetricsCollection", &c.DisableMetricsCollection) populate(objectMap, "ignoreNullValues", &c.IgnoreNullValues) @@ -11202,10 +11202,10 @@ func (c *CommonDataServiceForAppsSink) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if c.AdditionalProperties == nil { - c.AdditionalProperties = map[string]interface{}{} + c.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) c.AdditionalProperties[key] = aux } @@ -11220,7 +11220,7 @@ func (c *CommonDataServiceForAppsSink) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CommonDataServiceForAppsSource. func (c CommonDataServiceForAppsSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &c.AdditionalColumns) populate(objectMap, "disableMetricsCollection", &c.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &c.MaxConcurrentConnections) @@ -11268,10 +11268,10 @@ func (c *CommonDataServiceForAppsSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if c.AdditionalProperties == nil { - c.AdditionalProperties = map[string]interface{}{} + c.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) c.AdditionalProperties[key] = aux } @@ -11286,7 +11286,7 @@ func (c *CommonDataServiceForAppsSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ComponentSetup. func (c ComponentSetup) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) objectMap["type"] = "ComponentSetup" populate(objectMap, "typeProperties", c.TypeProperties) return json.Marshal(objectMap) @@ -11317,7 +11317,7 @@ func (c *ComponentSetup) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CompressionReadSettings. func (c CompressionReadSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) objectMap["type"] = c.Type if c.AdditionalProperties != nil { for key, val := range c.AdditionalProperties { @@ -11341,10 +11341,10 @@ func (c *CompressionReadSettings) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if c.AdditionalProperties == nil { - c.AdditionalProperties = map[string]interface{}{} + c.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) c.AdditionalProperties[key] = aux } @@ -11359,7 +11359,7 @@ func (c *CompressionReadSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ConcurLinkedService. func (c ConcurLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", c.Annotations) populate(objectMap, "connectVia", c.ConnectVia) populate(objectMap, "description", c.Description) @@ -11403,10 +11403,10 @@ func (c *ConcurLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if c.AdditionalProperties == nil { - c.AdditionalProperties = map[string]interface{}{} + c.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) c.AdditionalProperties[key] = aux } @@ -11421,7 +11421,7 @@ func (c *ConcurLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ConcurLinkedServiceTypeProperties. func (c ConcurLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "clientId", &c.ClientID) populate(objectMap, "connectionProperties", &c.ConnectionProperties) populate(objectMap, "encryptedCredential", &c.EncryptedCredential) @@ -11476,7 +11476,7 @@ func (c *ConcurLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ConcurObjectDataset. func (c ConcurObjectDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", c.Annotations) populate(objectMap, "description", c.Description) populate(objectMap, "folder", c.Folder) @@ -11532,10 +11532,10 @@ func (c *ConcurObjectDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if c.AdditionalProperties == nil { - c.AdditionalProperties = map[string]interface{}{} + c.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) c.AdditionalProperties[key] = aux } @@ -11550,7 +11550,7 @@ func (c *ConcurObjectDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ConcurSource. func (c ConcurSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &c.AdditionalColumns) populate(objectMap, "disableMetricsCollection", &c.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &c.MaxConcurrentConnections) @@ -11602,10 +11602,10 @@ func (c *ConcurSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if c.AdditionalProperties == nil { - c.AdditionalProperties = map[string]interface{}{} + c.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) c.AdditionalProperties[key] = aux } @@ -11620,7 +11620,7 @@ func (c *ConcurSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ConnectionStateProperties. func (c ConnectionStateProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "actionsRequired", c.ActionsRequired) populate(objectMap, "description", c.Description) populate(objectMap, "status", c.Status) @@ -11655,7 +11655,7 @@ func (c *ConnectionStateProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ControlActivity. func (c ControlActivity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", c.DependsOn) populate(objectMap, "description", c.Description) populate(objectMap, "name", c.Name) @@ -11695,10 +11695,10 @@ func (c *ControlActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if c.AdditionalProperties == nil { - c.AdditionalProperties = map[string]interface{}{} + c.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) c.AdditionalProperties[key] = aux } @@ -11713,7 +11713,7 @@ func (c *ControlActivity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CopyActivity. func (c CopyActivity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", c.DependsOn) populate(objectMap, "description", c.Description) populate(objectMap, "inputs", c.Inputs) @@ -11773,10 +11773,10 @@ func (c *CopyActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if c.AdditionalProperties == nil { - c.AdditionalProperties = map[string]interface{}{} + c.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) c.AdditionalProperties[key] = aux } @@ -11791,7 +11791,7 @@ func (c *CopyActivity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CopyActivityLogSettings. func (c CopyActivityLogSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "enableReliableLogging", &c.EnableReliableLogging) populate(objectMap, "logLevel", &c.LogLevel) return json.Marshal(objectMap) @@ -11822,7 +11822,7 @@ func (c *CopyActivityLogSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CopyActivityTypeProperties. func (c CopyActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dataIntegrationUnits", &c.DataIntegrationUnits) populate(objectMap, "enableSkipIncompatibleRow", &c.EnableSkipIncompatibleRow) populate(objectMap, "enableStaging", &c.EnableStaging) @@ -11905,7 +11905,7 @@ func (c *CopyActivityTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CopySink. func (c CopySink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "disableMetricsCollection", &c.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &c.MaxConcurrentConnections) populate(objectMap, "sinkRetryCount", &c.SinkRetryCount) @@ -11953,10 +11953,10 @@ func (c *CopySink) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if c.AdditionalProperties == nil { - c.AdditionalProperties = map[string]interface{}{} + c.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) c.AdditionalProperties[key] = aux } @@ -11971,7 +11971,7 @@ func (c *CopySink) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CopySource. func (c CopySource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "disableMetricsCollection", &c.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &c.MaxConcurrentConnections) populate(objectMap, "sourceRetryCount", &c.SourceRetryCount) @@ -12011,10 +12011,10 @@ func (c *CopySource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if c.AdditionalProperties == nil { - c.AdditionalProperties = map[string]interface{}{} + c.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) c.AdditionalProperties[key] = aux } @@ -12029,7 +12029,7 @@ func (c *CopySource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CosmosDbLinkedService. func (c CosmosDbLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", c.Annotations) populate(objectMap, "connectVia", c.ConnectVia) populate(objectMap, "description", c.Description) @@ -12073,10 +12073,10 @@ func (c *CosmosDbLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if c.AdditionalProperties == nil { - c.AdditionalProperties = map[string]interface{}{} + c.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) c.AdditionalProperties[key] = aux } @@ -12091,7 +12091,7 @@ func (c *CosmosDbLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CosmosDbLinkedServiceTypeProperties. func (c CosmosDbLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "accountEndpoint", &c.AccountEndpoint) populate(objectMap, "accountKey", c.AccountKey) populate(objectMap, "azureCloudType", &c.AzureCloudType) @@ -12162,7 +12162,7 @@ func (c *CosmosDbLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CosmosDbMongoDbAPICollectionDataset. func (c CosmosDbMongoDbAPICollectionDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", c.Annotations) populate(objectMap, "description", c.Description) populate(objectMap, "folder", c.Folder) @@ -12218,10 +12218,10 @@ func (c *CosmosDbMongoDbAPICollectionDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if c.AdditionalProperties == nil { - c.AdditionalProperties = map[string]interface{}{} + c.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) c.AdditionalProperties[key] = aux } @@ -12236,7 +12236,7 @@ func (c *CosmosDbMongoDbAPICollectionDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CosmosDbMongoDbAPICollectionDatasetTypeProperties. func (c CosmosDbMongoDbAPICollectionDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "collection", &c.Collection) return json.Marshal(objectMap) } @@ -12263,7 +12263,7 @@ func (c *CosmosDbMongoDbAPICollectionDatasetTypeProperties) UnmarshalJSON(data [ // MarshalJSON implements the json.Marshaller interface for type CosmosDbMongoDbAPILinkedService. func (c CosmosDbMongoDbAPILinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", c.Annotations) populate(objectMap, "connectVia", c.ConnectVia) populate(objectMap, "description", c.Description) @@ -12307,10 +12307,10 @@ func (c *CosmosDbMongoDbAPILinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if c.AdditionalProperties == nil { - c.AdditionalProperties = map[string]interface{}{} + c.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) c.AdditionalProperties[key] = aux } @@ -12325,7 +12325,7 @@ func (c *CosmosDbMongoDbAPILinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CosmosDbMongoDbAPILinkedServiceTypeProperties. func (c CosmosDbMongoDbAPILinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "connectionString", &c.ConnectionString) populate(objectMap, "database", &c.Database) populate(objectMap, "isServerVersionAbove32", &c.IsServerVersionAbove32) @@ -12360,7 +12360,7 @@ func (c *CosmosDbMongoDbAPILinkedServiceTypeProperties) UnmarshalJSON(data []byt // MarshalJSON implements the json.Marshaller interface for type CosmosDbMongoDbAPISink. func (c CosmosDbMongoDbAPISink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "disableMetricsCollection", &c.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &c.MaxConcurrentConnections) populate(objectMap, "sinkRetryCount", &c.SinkRetryCount) @@ -12412,10 +12412,10 @@ func (c *CosmosDbMongoDbAPISink) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if c.AdditionalProperties == nil { - c.AdditionalProperties = map[string]interface{}{} + c.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) c.AdditionalProperties[key] = aux } @@ -12430,7 +12430,7 @@ func (c *CosmosDbMongoDbAPISink) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CosmosDbMongoDbAPISource. func (c CosmosDbMongoDbAPISource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &c.AdditionalColumns) populate(objectMap, "batchSize", &c.BatchSize) populate(objectMap, "cursorMethods", c.CursorMethods) @@ -12490,10 +12490,10 @@ func (c *CosmosDbMongoDbAPISource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if c.AdditionalProperties == nil { - c.AdditionalProperties = map[string]interface{}{} + c.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) c.AdditionalProperties[key] = aux } @@ -12508,7 +12508,7 @@ func (c *CosmosDbMongoDbAPISource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CosmosDbSQLAPICollectionDataset. func (c CosmosDbSQLAPICollectionDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", c.Annotations) populate(objectMap, "description", c.Description) populate(objectMap, "folder", c.Folder) @@ -12564,10 +12564,10 @@ func (c *CosmosDbSQLAPICollectionDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if c.AdditionalProperties == nil { - c.AdditionalProperties = map[string]interface{}{} + c.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) c.AdditionalProperties[key] = aux } @@ -12582,7 +12582,7 @@ func (c *CosmosDbSQLAPICollectionDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CosmosDbSQLAPICollectionDatasetTypeProperties. func (c CosmosDbSQLAPICollectionDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "collectionName", &c.CollectionName) return json.Marshal(objectMap) } @@ -12609,7 +12609,7 @@ func (c *CosmosDbSQLAPICollectionDatasetTypeProperties) UnmarshalJSON(data []byt // MarshalJSON implements the json.Marshaller interface for type CosmosDbSQLAPISink. func (c CosmosDbSQLAPISink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "disableMetricsCollection", &c.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &c.MaxConcurrentConnections) populate(objectMap, "sinkRetryCount", &c.SinkRetryCount) @@ -12661,10 +12661,10 @@ func (c *CosmosDbSQLAPISink) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if c.AdditionalProperties == nil { - c.AdditionalProperties = map[string]interface{}{} + c.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) c.AdditionalProperties[key] = aux } @@ -12679,7 +12679,7 @@ func (c *CosmosDbSQLAPISink) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CosmosDbSQLAPISource. func (c CosmosDbSQLAPISource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &c.AdditionalColumns) populate(objectMap, "detectDatetime", &c.DetectDatetime) populate(objectMap, "disableMetricsCollection", &c.DisableMetricsCollection) @@ -12739,10 +12739,10 @@ func (c *CosmosDbSQLAPISource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if c.AdditionalProperties == nil { - c.AdditionalProperties = map[string]interface{}{} + c.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) c.AdditionalProperties[key] = aux } @@ -12757,7 +12757,7 @@ func (c *CosmosDbSQLAPISource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CouchbaseLinkedService. func (c CouchbaseLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", c.Annotations) populate(objectMap, "connectVia", c.ConnectVia) populate(objectMap, "description", c.Description) @@ -12801,10 +12801,10 @@ func (c *CouchbaseLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if c.AdditionalProperties == nil { - c.AdditionalProperties = map[string]interface{}{} + c.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) c.AdditionalProperties[key] = aux } @@ -12819,7 +12819,7 @@ func (c *CouchbaseLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CouchbaseLinkedServiceTypeProperties. func (c CouchbaseLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "connectionString", &c.ConnectionString) populate(objectMap, "credString", c.CredString) populate(objectMap, "encryptedCredential", &c.EncryptedCredential) @@ -12854,7 +12854,7 @@ func (c *CouchbaseLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type CouchbaseSource. func (c CouchbaseSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &c.AdditionalColumns) populate(objectMap, "disableMetricsCollection", &c.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &c.MaxConcurrentConnections) @@ -12906,10 +12906,10 @@ func (c *CouchbaseSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if c.AdditionalProperties == nil { - c.AdditionalProperties = map[string]interface{}{} + c.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) c.AdditionalProperties[key] = aux } @@ -12924,7 +12924,7 @@ func (c *CouchbaseSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CouchbaseTableDataset. func (c CouchbaseTableDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", c.Annotations) populate(objectMap, "description", c.Description) populate(objectMap, "folder", c.Folder) @@ -12980,10 +12980,10 @@ func (c *CouchbaseTableDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if c.AdditionalProperties == nil { - c.AdditionalProperties = map[string]interface{}{} + c.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) c.AdditionalProperties[key] = aux } @@ -12998,7 +12998,7 @@ func (c *CouchbaseTableDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CreateDataFlowDebugSessionRequest. func (c CreateDataFlowDebugSessionRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "computeType", c.ComputeType) populate(objectMap, "coreCount", c.CoreCount) populate(objectMap, "integrationRuntime", c.IntegrationRuntime) @@ -13037,7 +13037,7 @@ func (c *CreateDataFlowDebugSessionRequest) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CreateDataFlowDebugSessionResponse. func (c CreateDataFlowDebugSessionResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "sessionId", c.SessionID) populate(objectMap, "status", c.Status) return json.Marshal(objectMap) @@ -13068,7 +13068,7 @@ func (c *CreateDataFlowDebugSessionResponse) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CreateLinkedIntegrationRuntimeRequest. func (c CreateLinkedIntegrationRuntimeRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dataFactoryLocation", c.DataFactoryLocation) populate(objectMap, "dataFactoryName", c.DataFactoryName) populate(objectMap, "name", c.Name) @@ -13107,7 +13107,7 @@ func (c *CreateLinkedIntegrationRuntimeRequest) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type CreateRunResponse. func (c CreateRunResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "runId", c.RunID) return json.Marshal(objectMap) } @@ -13132,9 +13132,90 @@ func (c *CreateRunResponse) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type Credential. +func (c Credential) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "annotations", c.Annotations) + populate(objectMap, "description", c.Description) + objectMap["type"] = c.Type + if c.AdditionalProperties != nil { + for key, val := range c.AdditionalProperties { + objectMap[key] = val + } + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Credential. +func (c *Credential) 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 "annotations": + err = unpopulate(val, "Annotations", &c.Annotations) + delete(rawMsg, key) + case "description": + err = unpopulate(val, "Description", &c.Description) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &c.Type) + delete(rawMsg, key) + default: + if c.AdditionalProperties == nil { + c.AdditionalProperties = map[string]any{} + } + if val != nil { + var aux any + err = json.Unmarshal(val, &aux) + c.AdditionalProperties[key] = aux + } + 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 CredentialListResponse. +func (c CredentialListResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", c.NextLink) + populate(objectMap, "value", c.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CredentialListResponse. +func (c *CredentialListResponse) 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 "nextLink": + err = unpopulate(val, "NextLink", &c.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &c.Value) + 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 CredentialReference. func (c CredentialReference) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "referenceName", c.ReferenceName) populate(objectMap, "type", c.Type) if c.AdditionalProperties != nil { @@ -13162,10 +13243,10 @@ func (c *CredentialReference) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if c.AdditionalProperties == nil { - c.AdditionalProperties = map[string]interface{}{} + c.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) c.AdditionalProperties[key] = aux } @@ -13180,7 +13261,7 @@ func (c *CredentialReference) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CustomActivity. func (c CustomActivity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", c.DependsOn) populate(objectMap, "description", c.Description) populate(objectMap, "linkedServiceName", c.LinkedServiceName) @@ -13232,10 +13313,10 @@ func (c *CustomActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if c.AdditionalProperties == nil { - c.AdditionalProperties = map[string]interface{}{} + c.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) c.AdditionalProperties[key] = aux } @@ -13250,7 +13331,7 @@ func (c *CustomActivity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CustomActivityReferenceObject. func (c CustomActivityReferenceObject) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "datasets", c.Datasets) populate(objectMap, "linkedServices", c.LinkedServices) return json.Marshal(objectMap) @@ -13281,7 +13362,7 @@ func (c *CustomActivityReferenceObject) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CustomActivityTypeProperties. func (c CustomActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "autoUserSpecification", &c.AutoUserSpecification) populate(objectMap, "command", &c.Command) populate(objectMap, "extendedProperties", c.ExtendedProperties) @@ -13332,7 +13413,7 @@ func (c *CustomActivityTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CustomDataSourceLinkedService. func (c CustomDataSourceLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", c.Annotations) populate(objectMap, "connectVia", c.ConnectVia) populate(objectMap, "description", c.Description) @@ -13376,10 +13457,10 @@ func (c *CustomDataSourceLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if c.AdditionalProperties == nil { - c.AdditionalProperties = map[string]interface{}{} + c.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) c.AdditionalProperties[key] = aux } @@ -13394,7 +13475,7 @@ func (c *CustomDataSourceLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CustomDataset. func (c CustomDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", c.Annotations) populate(objectMap, "description", c.Description) populate(objectMap, "folder", c.Folder) @@ -13450,10 +13531,10 @@ func (c *CustomDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if c.AdditionalProperties == nil { - c.AdditionalProperties = map[string]interface{}{} + c.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) c.AdditionalProperties[key] = aux } @@ -13468,7 +13549,7 @@ func (c *CustomDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CustomEventsTrigger. func (c CustomEventsTrigger) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", c.Annotations) populate(objectMap, "description", c.Description) populate(objectMap, "pipelines", c.Pipelines) @@ -13512,10 +13593,10 @@ func (c *CustomEventsTrigger) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if c.AdditionalProperties == nil { - c.AdditionalProperties = map[string]interface{}{} + c.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) c.AdditionalProperties[key] = aux } @@ -13530,7 +13611,7 @@ func (c *CustomEventsTrigger) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CustomEventsTriggerTypeProperties. func (c CustomEventsTriggerTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "events", c.Events) populate(objectMap, "scope", c.Scope) populate(objectMap, "subjectBeginsWith", c.SubjectBeginsWith) @@ -13569,7 +13650,7 @@ func (c *CustomEventsTriggerTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CustomSetupBase. func (c CustomSetupBase) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) objectMap["type"] = c.Type return json.Marshal(objectMap) } @@ -13596,7 +13677,7 @@ func (c *CustomSetupBase) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DWCopyCommandDefaultValue. func (d DWCopyCommandDefaultValue) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "columnName", &d.ColumnName) populate(objectMap, "defaultValue", &d.DefaultValue) return json.Marshal(objectMap) @@ -13627,7 +13708,7 @@ func (d *DWCopyCommandDefaultValue) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DWCopyCommandSettings. func (d DWCopyCommandSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalOptions", d.AdditionalOptions) populate(objectMap, "defaultValues", d.DefaultValues) return json.Marshal(objectMap) @@ -13658,7 +13739,7 @@ func (d *DWCopyCommandSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DataFlow. func (d DataFlow) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", d.Annotations) populate(objectMap, "description", d.Description) populate(objectMap, "folder", d.Folder) @@ -13697,7 +13778,7 @@ func (d *DataFlow) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DataFlowDebugCommandPayload. func (d DataFlowDebugCommandPayload) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "columns", d.Columns) populate(objectMap, "expression", d.Expression) populate(objectMap, "rowLimits", d.RowLimits) @@ -13736,7 +13817,7 @@ func (d *DataFlowDebugCommandPayload) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DataFlowDebugCommandRequest. func (d DataFlowDebugCommandRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "command", d.Command) populate(objectMap, "commandPayload", d.CommandPayload) populate(objectMap, "sessionId", d.SessionID) @@ -13771,7 +13852,7 @@ func (d *DataFlowDebugCommandRequest) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DataFlowDebugCommandResponse. func (d DataFlowDebugCommandResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "data", d.Data) populate(objectMap, "status", d.Status) return json.Marshal(objectMap) @@ -13802,7 +13883,7 @@ func (d *DataFlowDebugCommandResponse) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DataFlowDebugPackage. func (d DataFlowDebugPackage) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dataFlow", d.DataFlow) populate(objectMap, "dataFlows", d.DataFlows) populate(objectMap, "datasets", d.Datasets) @@ -13850,10 +13931,10 @@ func (d *DataFlowDebugPackage) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} + d.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) d.AdditionalProperties[key] = aux } @@ -13868,7 +13949,7 @@ func (d *DataFlowDebugPackage) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DataFlowDebugPackageDebugSettings. func (d DataFlowDebugPackageDebugSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "datasetParameters", &d.DatasetParameters) populate(objectMap, "parameters", d.Parameters) populate(objectMap, "sourceSettings", d.SourceSettings) @@ -13903,7 +13984,7 @@ func (d *DataFlowDebugPackageDebugSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DataFlowDebugResource. func (d DataFlowDebugResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "name", d.Name) populate(objectMap, "properties", d.Properties) return json.Marshal(objectMap) @@ -13934,7 +14015,7 @@ func (d *DataFlowDebugResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DataFlowDebugSessionInfo. func (d DataFlowDebugSessionInfo) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "computeType", d.ComputeType) populate(objectMap, "coreCount", d.CoreCount) populate(objectMap, "dataFlowName", d.DataFlowName) @@ -13990,10 +14071,10 @@ func (d *DataFlowDebugSessionInfo) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} + d.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) d.AdditionalProperties[key] = aux } @@ -14008,7 +14089,7 @@ func (d *DataFlowDebugSessionInfo) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DataFlowFolder. func (d DataFlowFolder) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "name", d.Name) return json.Marshal(objectMap) } @@ -14035,7 +14116,7 @@ func (d *DataFlowFolder) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DataFlowListResponse. func (d DataFlowListResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", d.NextLink) populate(objectMap, "value", d.Value) return json.Marshal(objectMap) @@ -14066,7 +14147,7 @@ func (d *DataFlowListResponse) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DataFlowReference. func (d DataFlowReference) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "datasetParameters", &d.DatasetParameters) populate(objectMap, "parameters", d.Parameters) populate(objectMap, "referenceName", d.ReferenceName) @@ -14102,10 +14183,10 @@ func (d *DataFlowReference) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} + d.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) d.AdditionalProperties[key] = aux } @@ -14120,7 +14201,7 @@ func (d *DataFlowReference) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DataFlowResource. func (d DataFlowResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "etag", d.Etag) populate(objectMap, "id", d.ID) populate(objectMap, "name", d.Name) @@ -14163,7 +14244,7 @@ func (d *DataFlowResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DataFlowSink. func (d DataFlowSink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dataset", d.Dataset) populate(objectMap, "description", d.Description) populate(objectMap, "flowlet", d.Flowlet) @@ -14214,7 +14295,7 @@ func (d *DataFlowSink) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DataFlowSource. func (d DataFlowSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dataset", d.Dataset) populate(objectMap, "description", d.Description) populate(objectMap, "flowlet", d.Flowlet) @@ -14261,7 +14342,7 @@ func (d *DataFlowSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DataFlowSourceSetting. func (d DataFlowSourceSetting) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "rowLimit", d.RowLimit) populate(objectMap, "sourceName", d.SourceName) if d.AdditionalProperties != nil { @@ -14289,10 +14370,10 @@ func (d *DataFlowSourceSetting) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} + d.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) d.AdditionalProperties[key] = aux } @@ -14307,7 +14388,7 @@ func (d *DataFlowSourceSetting) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DataFlowStagingInfo. func (d DataFlowStagingInfo) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "folderPath", &d.FolderPath) populate(objectMap, "linkedService", d.LinkedService) return json.Marshal(objectMap) @@ -14338,7 +14419,7 @@ func (d *DataFlowStagingInfo) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DataLakeAnalyticsUSQLActivity. func (d DataLakeAnalyticsUSQLActivity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", d.DependsOn) populate(objectMap, "description", d.Description) populate(objectMap, "linkedServiceName", d.LinkedServiceName) @@ -14390,10 +14471,10 @@ func (d *DataLakeAnalyticsUSQLActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} + d.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) d.AdditionalProperties[key] = aux } @@ -14408,7 +14489,7 @@ func (d *DataLakeAnalyticsUSQLActivity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DataLakeAnalyticsUSQLActivityTypeProperties. func (d DataLakeAnalyticsUSQLActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "compilationMode", &d.CompilationMode) populate(objectMap, "degreeOfParallelism", &d.DegreeOfParallelism) populate(objectMap, "parameters", d.Parameters) @@ -14459,7 +14540,7 @@ func (d *DataLakeAnalyticsUSQLActivityTypeProperties) UnmarshalJSON(data []byte) // MarshalJSON implements the json.Marshaller interface for type DatabricksNotebookActivity. func (d DatabricksNotebookActivity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", d.DependsOn) populate(objectMap, "description", d.Description) populate(objectMap, "linkedServiceName", d.LinkedServiceName) @@ -14511,10 +14592,10 @@ func (d *DatabricksNotebookActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} + d.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) d.AdditionalProperties[key] = aux } @@ -14529,7 +14610,7 @@ func (d *DatabricksNotebookActivity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DatabricksNotebookActivityTypeProperties. func (d DatabricksNotebookActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "baseParameters", d.BaseParameters) populate(objectMap, "libraries", d.Libraries) populate(objectMap, "notebookPath", &d.NotebookPath) @@ -14564,7 +14645,7 @@ func (d *DatabricksNotebookActivityTypeProperties) UnmarshalJSON(data []byte) er // MarshalJSON implements the json.Marshaller interface for type DatabricksSparkJarActivity. func (d DatabricksSparkJarActivity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", d.DependsOn) populate(objectMap, "description", d.Description) populate(objectMap, "linkedServiceName", d.LinkedServiceName) @@ -14616,10 +14697,10 @@ func (d *DatabricksSparkJarActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} + d.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) d.AdditionalProperties[key] = aux } @@ -14634,7 +14715,7 @@ func (d *DatabricksSparkJarActivity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DatabricksSparkJarActivityTypeProperties. func (d DatabricksSparkJarActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "libraries", d.Libraries) populate(objectMap, "mainClassName", &d.MainClassName) populate(objectMap, "parameters", d.Parameters) @@ -14669,7 +14750,7 @@ func (d *DatabricksSparkJarActivityTypeProperties) UnmarshalJSON(data []byte) er // MarshalJSON implements the json.Marshaller interface for type DatabricksSparkPythonActivity. func (d DatabricksSparkPythonActivity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", d.DependsOn) populate(objectMap, "description", d.Description) populate(objectMap, "linkedServiceName", d.LinkedServiceName) @@ -14721,10 +14802,10 @@ func (d *DatabricksSparkPythonActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} + d.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) d.AdditionalProperties[key] = aux } @@ -14739,7 +14820,7 @@ func (d *DatabricksSparkPythonActivity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DatabricksSparkPythonActivityTypeProperties. func (d DatabricksSparkPythonActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "libraries", d.Libraries) populate(objectMap, "parameters", d.Parameters) populate(objectMap, "pythonFile", &d.PythonFile) @@ -14774,7 +14855,7 @@ func (d *DatabricksSparkPythonActivityTypeProperties) UnmarshalJSON(data []byte) // MarshalJSON implements the json.Marshaller interface for type Dataset. func (d Dataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", d.Annotations) populate(objectMap, "description", d.Description) populate(objectMap, "folder", d.Folder) @@ -14826,10 +14907,10 @@ func (d *Dataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} + d.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) d.AdditionalProperties[key] = aux } @@ -14844,7 +14925,7 @@ func (d *Dataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DatasetCompression. func (d DatasetCompression) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "level", &d.Level) populate(objectMap, "type", &d.Type) if d.AdditionalProperties != nil { @@ -14872,10 +14953,10 @@ func (d *DatasetCompression) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} + d.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) d.AdditionalProperties[key] = aux } @@ -14890,7 +14971,7 @@ func (d *DatasetCompression) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DatasetDebugResource. func (d DatasetDebugResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "name", d.Name) populate(objectMap, "properties", d.Properties) return json.Marshal(objectMap) @@ -14921,7 +15002,7 @@ func (d *DatasetDebugResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DatasetFolder. func (d DatasetFolder) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "name", d.Name) return json.Marshal(objectMap) } @@ -14948,7 +15029,7 @@ func (d *DatasetFolder) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DatasetListResponse. func (d DatasetListResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", d.NextLink) populate(objectMap, "value", d.Value) return json.Marshal(objectMap) @@ -14979,7 +15060,7 @@ func (d *DatasetListResponse) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DatasetLocation. func (d DatasetLocation) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "fileName", &d.FileName) populate(objectMap, "folderPath", &d.FolderPath) objectMap["type"] = d.Type @@ -15011,10 +15092,10 @@ func (d *DatasetLocation) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} + d.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) d.AdditionalProperties[key] = aux } @@ -15029,7 +15110,7 @@ func (d *DatasetLocation) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DatasetReference. func (d DatasetReference) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "parameters", d.Parameters) populate(objectMap, "referenceName", d.ReferenceName) populate(objectMap, "type", d.Type) @@ -15064,7 +15145,7 @@ func (d *DatasetReference) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DatasetResource. func (d DatasetResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "etag", d.Etag) populate(objectMap, "id", d.ID) populate(objectMap, "name", d.Name) @@ -15107,7 +15188,7 @@ func (d *DatasetResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DatasetStorageFormat. func (d DatasetStorageFormat) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "deserializer", &d.Deserializer) populate(objectMap, "serializer", &d.Serializer) objectMap["type"] = d.Type @@ -15139,10 +15220,10 @@ func (d *DatasetStorageFormat) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} + d.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) d.AdditionalProperties[key] = aux } @@ -15157,7 +15238,7 @@ func (d *DatasetStorageFormat) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DataworldLinkedService. func (d DataworldLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", d.Annotations) populate(objectMap, "connectVia", d.ConnectVia) populate(objectMap, "description", d.Description) @@ -15201,10 +15282,10 @@ func (d *DataworldLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} + d.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) d.AdditionalProperties[key] = aux } @@ -15219,7 +15300,7 @@ func (d *DataworldLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DataworldLinkedServiceTypeProperties. func (d DataworldLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "apiToken", d.APIToken) populate(objectMap, "encryptedCredential", &d.EncryptedCredential) return json.Marshal(objectMap) @@ -15250,7 +15331,7 @@ func (d *DataworldLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type Db2LinkedService. func (d Db2LinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", d.Annotations) populate(objectMap, "connectVia", d.ConnectVia) populate(objectMap, "description", d.Description) @@ -15294,10 +15375,10 @@ func (d *Db2LinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} + d.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) d.AdditionalProperties[key] = aux } @@ -15312,7 +15393,7 @@ func (d *Db2LinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Db2LinkedServiceTypeProperties. func (d Db2LinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "authenticationType", d.AuthenticationType) populate(objectMap, "certificateCommonName", &d.CertificateCommonName) populate(objectMap, "connectionString", &d.ConnectionString) @@ -15371,7 +15452,7 @@ func (d *Db2LinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Db2Source. func (d Db2Source) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &d.AdditionalColumns) populate(objectMap, "disableMetricsCollection", &d.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &d.MaxConcurrentConnections) @@ -15423,10 +15504,10 @@ func (d *Db2Source) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} + d.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) d.AdditionalProperties[key] = aux } @@ -15441,7 +15522,7 @@ func (d *Db2Source) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Db2TableDataset. func (d Db2TableDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", d.Annotations) populate(objectMap, "description", d.Description) populate(objectMap, "folder", d.Folder) @@ -15497,10 +15578,10 @@ func (d *Db2TableDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} + d.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) d.AdditionalProperties[key] = aux } @@ -15515,7 +15596,7 @@ func (d *Db2TableDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Db2TableDatasetTypeProperties. func (d Db2TableDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "schema", &d.Schema) populate(objectMap, "table", &d.Table) populate(objectMap, "tableName", &d.TableName) @@ -15550,7 +15631,7 @@ func (d *Db2TableDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DeleteActivity. func (d DeleteActivity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", d.DependsOn) populate(objectMap, "description", d.Description) populate(objectMap, "linkedServiceName", d.LinkedServiceName) @@ -15602,10 +15683,10 @@ func (d *DeleteActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} + d.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) d.AdditionalProperties[key] = aux } @@ -15620,7 +15701,7 @@ func (d *DeleteActivity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DeleteActivityTypeProperties. func (d DeleteActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dataset", d.Dataset) populate(objectMap, "enableLogging", &d.EnableLogging) populate(objectMap, "logStorageSettings", d.LogStorageSettings) @@ -15667,7 +15748,7 @@ func (d *DeleteActivityTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DeleteDataFlowDebugSessionRequest. func (d DeleteDataFlowDebugSessionRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "sessionId", d.SessionID) return json.Marshal(objectMap) } @@ -15694,7 +15775,7 @@ func (d *DeleteDataFlowDebugSessionRequest) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DelimitedTextDataset. func (d DelimitedTextDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", d.Annotations) populate(objectMap, "description", d.Description) populate(objectMap, "folder", d.Folder) @@ -15750,10 +15831,10 @@ func (d *DelimitedTextDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} + d.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) d.AdditionalProperties[key] = aux } @@ -15768,7 +15849,7 @@ func (d *DelimitedTextDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DelimitedTextDatasetTypeProperties. func (d DelimitedTextDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "columnDelimiter", &d.ColumnDelimiter) populate(objectMap, "compressionCodec", &d.CompressionCodec) populate(objectMap, "compressionLevel", &d.CompressionLevel) @@ -15831,7 +15912,7 @@ func (d *DelimitedTextDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DelimitedTextReadSettings. func (d DelimitedTextReadSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "compressionProperties", d.CompressionProperties) populate(objectMap, "skipLineCount", &d.SkipLineCount) objectMap["type"] = "DelimitedTextReadSettings" @@ -15863,10 +15944,10 @@ func (d *DelimitedTextReadSettings) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} + d.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) d.AdditionalProperties[key] = aux } @@ -15881,7 +15962,7 @@ func (d *DelimitedTextReadSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DelimitedTextSink. func (d DelimitedTextSink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "disableMetricsCollection", &d.DisableMetricsCollection) populate(objectMap, "formatSettings", d.FormatSettings) populate(objectMap, "maxConcurrentConnections", &d.MaxConcurrentConnections) @@ -15937,10 +16018,10 @@ func (d *DelimitedTextSink) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} + d.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) d.AdditionalProperties[key] = aux } @@ -15955,7 +16036,7 @@ func (d *DelimitedTextSink) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DelimitedTextSource. func (d DelimitedTextSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &d.AdditionalColumns) populate(objectMap, "disableMetricsCollection", &d.DisableMetricsCollection) populate(objectMap, "formatSettings", d.FormatSettings) @@ -16007,10 +16088,10 @@ func (d *DelimitedTextSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} + d.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) d.AdditionalProperties[key] = aux } @@ -16025,7 +16106,7 @@ func (d *DelimitedTextSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DelimitedTextWriteSettings. func (d DelimitedTextWriteSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "fileExtension", &d.FileExtension) populate(objectMap, "fileNamePrefix", &d.FileNamePrefix) populate(objectMap, "maxRowsPerFile", &d.MaxRowsPerFile) @@ -16065,10 +16146,10 @@ func (d *DelimitedTextWriteSettings) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} + d.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) d.AdditionalProperties[key] = aux } @@ -16083,7 +16164,7 @@ func (d *DelimitedTextWriteSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DependencyReference. func (d DependencyReference) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) objectMap["type"] = d.Type return json.Marshal(objectMap) } @@ -16110,7 +16191,7 @@ func (d *DependencyReference) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DistcpSettings. func (d DistcpSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "distcpOptions", &d.DistcpOptions) populate(objectMap, "resourceManagerEndpoint", &d.ResourceManagerEndpoint) populate(objectMap, "tempScriptPath", &d.TempScriptPath) @@ -16145,7 +16226,7 @@ func (d *DistcpSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DocumentDbCollectionDataset. func (d DocumentDbCollectionDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", d.Annotations) populate(objectMap, "description", d.Description) populate(objectMap, "folder", d.Folder) @@ -16201,10 +16282,10 @@ func (d *DocumentDbCollectionDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} + d.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) d.AdditionalProperties[key] = aux } @@ -16219,7 +16300,7 @@ func (d *DocumentDbCollectionDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DocumentDbCollectionDatasetTypeProperties. func (d DocumentDbCollectionDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "collectionName", &d.CollectionName) return json.Marshal(objectMap) } @@ -16246,7 +16327,7 @@ func (d *DocumentDbCollectionDatasetTypeProperties) UnmarshalJSON(data []byte) e // MarshalJSON implements the json.Marshaller interface for type DocumentDbCollectionSink. func (d DocumentDbCollectionSink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "disableMetricsCollection", &d.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &d.MaxConcurrentConnections) populate(objectMap, "nestingSeparator", &d.NestingSeparator) @@ -16302,10 +16383,10 @@ func (d *DocumentDbCollectionSink) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} + d.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) d.AdditionalProperties[key] = aux } @@ -16320,7 +16401,7 @@ func (d *DocumentDbCollectionSink) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DocumentDbCollectionSource. func (d DocumentDbCollectionSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &d.AdditionalColumns) populate(objectMap, "disableMetricsCollection", &d.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &d.MaxConcurrentConnections) @@ -16376,10 +16457,10 @@ func (d *DocumentDbCollectionSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} + d.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) d.AdditionalProperties[key] = aux } @@ -16394,7 +16475,7 @@ func (d *DocumentDbCollectionSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DrillDatasetTypeProperties. func (d DrillDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "schema", &d.Schema) populate(objectMap, "table", &d.Table) populate(objectMap, "tableName", &d.TableName) @@ -16429,7 +16510,7 @@ func (d *DrillDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DrillLinkedService. func (d DrillLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", d.Annotations) populate(objectMap, "connectVia", d.ConnectVia) populate(objectMap, "description", d.Description) @@ -16473,10 +16554,10 @@ func (d *DrillLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} + d.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) d.AdditionalProperties[key] = aux } @@ -16491,7 +16572,7 @@ func (d *DrillLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DrillLinkedServiceTypeProperties. func (d DrillLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "connectionString", &d.ConnectionString) populate(objectMap, "encryptedCredential", &d.EncryptedCredential) populate(objectMap, "pwd", d.Pwd) @@ -16526,7 +16607,7 @@ func (d *DrillLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DrillSource. func (d DrillSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &d.AdditionalColumns) populate(objectMap, "disableMetricsCollection", &d.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &d.MaxConcurrentConnections) @@ -16578,10 +16659,10 @@ func (d *DrillSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} + d.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) d.AdditionalProperties[key] = aux } @@ -16596,7 +16677,7 @@ func (d *DrillSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DrillTableDataset. func (d DrillTableDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", d.Annotations) populate(objectMap, "description", d.Description) populate(objectMap, "folder", d.Folder) @@ -16652,10 +16733,10 @@ func (d *DrillTableDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} + d.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) d.AdditionalProperties[key] = aux } @@ -16670,7 +16751,7 @@ func (d *DrillTableDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DynamicsAXLinkedService. func (d DynamicsAXLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", d.Annotations) populate(objectMap, "connectVia", d.ConnectVia) populate(objectMap, "description", d.Description) @@ -16714,10 +16795,10 @@ func (d *DynamicsAXLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} + d.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) d.AdditionalProperties[key] = aux } @@ -16732,7 +16813,7 @@ func (d *DynamicsAXLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DynamicsAXLinkedServiceTypeProperties. func (d DynamicsAXLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "aadResourceId", &d.AADResourceID) populate(objectMap, "encryptedCredential", &d.EncryptedCredential) populate(objectMap, "servicePrincipalId", &d.ServicePrincipalID) @@ -16779,7 +16860,7 @@ func (d *DynamicsAXLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type DynamicsAXResourceDataset. func (d DynamicsAXResourceDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", d.Annotations) populate(objectMap, "description", d.Description) populate(objectMap, "folder", d.Folder) @@ -16835,10 +16916,10 @@ func (d *DynamicsAXResourceDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} + d.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) d.AdditionalProperties[key] = aux } @@ -16853,7 +16934,7 @@ func (d *DynamicsAXResourceDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DynamicsAXResourceDatasetTypeProperties. func (d DynamicsAXResourceDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "path", &d.Path) return json.Marshal(objectMap) } @@ -16880,7 +16961,7 @@ func (d *DynamicsAXResourceDatasetTypeProperties) UnmarshalJSON(data []byte) err // MarshalJSON implements the json.Marshaller interface for type DynamicsAXSource. func (d DynamicsAXSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &d.AdditionalColumns) populate(objectMap, "disableMetricsCollection", &d.DisableMetricsCollection) populate(objectMap, "httpRequestTimeout", &d.HTTPRequestTimeout) @@ -16936,10 +17017,10 @@ func (d *DynamicsAXSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} + d.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) d.AdditionalProperties[key] = aux } @@ -16954,7 +17035,7 @@ func (d *DynamicsAXSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DynamicsCrmEntityDataset. func (d DynamicsCrmEntityDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", d.Annotations) populate(objectMap, "description", d.Description) populate(objectMap, "folder", d.Folder) @@ -17010,10 +17091,10 @@ func (d *DynamicsCrmEntityDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} + d.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) d.AdditionalProperties[key] = aux } @@ -17028,7 +17109,7 @@ func (d *DynamicsCrmEntityDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DynamicsCrmEntityDatasetTypeProperties. func (d DynamicsCrmEntityDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "entityName", &d.EntityName) return json.Marshal(objectMap) } @@ -17055,7 +17136,7 @@ func (d *DynamicsCrmEntityDatasetTypeProperties) UnmarshalJSON(data []byte) erro // MarshalJSON implements the json.Marshaller interface for type DynamicsCrmLinkedService. func (d DynamicsCrmLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", d.Annotations) populate(objectMap, "connectVia", d.ConnectVia) populate(objectMap, "description", d.Description) @@ -17099,10 +17180,10 @@ func (d *DynamicsCrmLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} + d.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) d.AdditionalProperties[key] = aux } @@ -17117,7 +17198,7 @@ func (d *DynamicsCrmLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DynamicsCrmLinkedServiceTypeProperties. func (d DynamicsCrmLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "authenticationType", &d.AuthenticationType) populate(objectMap, "deploymentType", &d.DeploymentType) populate(objectMap, "encryptedCredential", &d.EncryptedCredential) @@ -17188,7 +17269,7 @@ func (d *DynamicsCrmLinkedServiceTypeProperties) UnmarshalJSON(data []byte) erro // MarshalJSON implements the json.Marshaller interface for type DynamicsCrmSink. func (d DynamicsCrmSink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "alternateKeyName", &d.AlternateKeyName) populate(objectMap, "disableMetricsCollection", &d.DisableMetricsCollection) populate(objectMap, "ignoreNullValues", &d.IgnoreNullValues) @@ -17248,10 +17329,10 @@ func (d *DynamicsCrmSink) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} + d.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) d.AdditionalProperties[key] = aux } @@ -17266,7 +17347,7 @@ func (d *DynamicsCrmSink) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DynamicsCrmSource. func (d DynamicsCrmSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &d.AdditionalColumns) populate(objectMap, "disableMetricsCollection", &d.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &d.MaxConcurrentConnections) @@ -17314,10 +17395,10 @@ func (d *DynamicsCrmSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} + d.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) d.AdditionalProperties[key] = aux } @@ -17332,7 +17413,7 @@ func (d *DynamicsCrmSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DynamicsEntityDataset. func (d DynamicsEntityDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", d.Annotations) populate(objectMap, "description", d.Description) populate(objectMap, "folder", d.Folder) @@ -17388,10 +17469,10 @@ func (d *DynamicsEntityDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} + d.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) d.AdditionalProperties[key] = aux } @@ -17406,7 +17487,7 @@ func (d *DynamicsEntityDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DynamicsEntityDatasetTypeProperties. func (d DynamicsEntityDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "entityName", &d.EntityName) return json.Marshal(objectMap) } @@ -17433,7 +17514,7 @@ func (d *DynamicsEntityDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DynamicsLinkedService. func (d DynamicsLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", d.Annotations) populate(objectMap, "connectVia", d.ConnectVia) populate(objectMap, "description", d.Description) @@ -17477,10 +17558,10 @@ func (d *DynamicsLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} + d.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) d.AdditionalProperties[key] = aux } @@ -17495,7 +17576,7 @@ func (d *DynamicsLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DynamicsLinkedServiceTypeProperties. func (d DynamicsLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "authenticationType", &d.AuthenticationType) populate(objectMap, "credential", d.Credential) populate(objectMap, "deploymentType", &d.DeploymentType) @@ -17570,7 +17651,7 @@ func (d *DynamicsLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DynamicsSink. func (d DynamicsSink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "alternateKeyName", &d.AlternateKeyName) populate(objectMap, "disableMetricsCollection", &d.DisableMetricsCollection) populate(objectMap, "ignoreNullValues", &d.IgnoreNullValues) @@ -17630,10 +17711,10 @@ func (d *DynamicsSink) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} + d.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) d.AdditionalProperties[key] = aux } @@ -17648,7 +17729,7 @@ func (d *DynamicsSink) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type DynamicsSource. func (d DynamicsSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &d.AdditionalColumns) populate(objectMap, "disableMetricsCollection", &d.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &d.MaxConcurrentConnections) @@ -17696,10 +17777,10 @@ func (d *DynamicsSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} + d.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) d.AdditionalProperties[key] = aux } @@ -17714,7 +17795,7 @@ func (d *DynamicsSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type EloquaLinkedService. func (e EloquaLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", e.Annotations) populate(objectMap, "connectVia", e.ConnectVia) populate(objectMap, "description", e.Description) @@ -17758,10 +17839,10 @@ func (e *EloquaLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if e.AdditionalProperties == nil { - e.AdditionalProperties = map[string]interface{}{} + e.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) e.AdditionalProperties[key] = aux } @@ -17776,7 +17857,7 @@ func (e *EloquaLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type EloquaLinkedServiceTypeProperties. func (e EloquaLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "encryptedCredential", &e.EncryptedCredential) populate(objectMap, "endpoint", &e.Endpoint) populate(objectMap, "password", e.Password) @@ -17827,7 +17908,7 @@ func (e *EloquaLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type EloquaObjectDataset. func (e EloquaObjectDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", e.Annotations) populate(objectMap, "description", e.Description) populate(objectMap, "folder", e.Folder) @@ -17883,10 +17964,10 @@ func (e *EloquaObjectDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if e.AdditionalProperties == nil { - e.AdditionalProperties = map[string]interface{}{} + e.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) e.AdditionalProperties[key] = aux } @@ -17901,7 +17982,7 @@ func (e *EloquaObjectDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type EloquaSource. func (e EloquaSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &e.AdditionalColumns) populate(objectMap, "disableMetricsCollection", &e.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &e.MaxConcurrentConnections) @@ -17953,10 +18034,10 @@ func (e *EloquaSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if e.AdditionalProperties == nil { - e.AdditionalProperties = map[string]interface{}{} + e.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) e.AdditionalProperties[key] = aux } @@ -17971,7 +18052,7 @@ func (e *EloquaSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type EncryptionConfiguration. func (e EncryptionConfiguration) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "identity", e.Identity) populate(objectMap, "keyName", e.KeyName) populate(objectMap, "keyVersion", e.KeyVersion) @@ -18010,7 +18091,7 @@ func (e *EncryptionConfiguration) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type EntityReference. func (e EntityReference) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "referenceName", e.ReferenceName) populate(objectMap, "type", e.Type) return json.Marshal(objectMap) @@ -18041,7 +18122,7 @@ func (e *EntityReference) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type EnvironmentVariableSetup. func (e EnvironmentVariableSetup) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) objectMap["type"] = "EnvironmentVariableSetup" populate(objectMap, "typeProperties", e.TypeProperties) return json.Marshal(objectMap) @@ -18072,7 +18153,7 @@ func (e *EnvironmentVariableSetup) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type EnvironmentVariableSetupTypeProperties. func (e EnvironmentVariableSetupTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "variableName", e.VariableName) populate(objectMap, "variableValue", e.VariableValue) return json.Marshal(objectMap) @@ -18103,7 +18184,7 @@ func (e *EnvironmentVariableSetupTypeProperties) UnmarshalJSON(data []byte) erro // MarshalJSON implements the json.Marshaller interface for type ExcelDataset. func (e ExcelDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", e.Annotations) populate(objectMap, "description", e.Description) populate(objectMap, "folder", e.Folder) @@ -18159,10 +18240,10 @@ func (e *ExcelDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if e.AdditionalProperties == nil { - e.AdditionalProperties = map[string]interface{}{} + e.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) e.AdditionalProperties[key] = aux } @@ -18177,7 +18258,7 @@ func (e *ExcelDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ExcelDatasetTypeProperties. func (e ExcelDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "compression", e.Compression) populate(objectMap, "firstRowAsHeader", &e.FirstRowAsHeader) populate(objectMap, "location", e.Location) @@ -18228,7 +18309,7 @@ func (e *ExcelDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ExcelSource. func (e ExcelSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &e.AdditionalColumns) populate(objectMap, "disableMetricsCollection", &e.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &e.MaxConcurrentConnections) @@ -18276,10 +18357,10 @@ func (e *ExcelSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if e.AdditionalProperties == nil { - e.AdditionalProperties = map[string]interface{}{} + e.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) e.AdditionalProperties[key] = aux } @@ -18294,7 +18375,7 @@ func (e *ExcelSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ExecuteDataFlowActivity. func (e ExecuteDataFlowActivity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", e.DependsOn) populate(objectMap, "description", e.Description) populate(objectMap, "linkedServiceName", e.LinkedServiceName) @@ -18346,10 +18427,10 @@ func (e *ExecuteDataFlowActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if e.AdditionalProperties == nil { - e.AdditionalProperties = map[string]interface{}{} + e.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) e.AdditionalProperties[key] = aux } @@ -18364,7 +18445,7 @@ func (e *ExecuteDataFlowActivity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ExecuteDataFlowActivityTypeProperties. func (e ExecuteDataFlowActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "compute", e.Compute) populate(objectMap, "continueOnError", &e.ContinueOnError) populate(objectMap, "dataFlow", e.DataFlow) @@ -18419,7 +18500,7 @@ func (e *ExecuteDataFlowActivityTypeProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type ExecuteDataFlowActivityTypePropertiesCompute. func (e ExecuteDataFlowActivityTypePropertiesCompute) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "computeType", &e.ComputeType) populate(objectMap, "coreCount", &e.CoreCount) return json.Marshal(objectMap) @@ -18450,7 +18531,7 @@ func (e *ExecuteDataFlowActivityTypePropertiesCompute) UnmarshalJSON(data []byte // MarshalJSON implements the json.Marshaller interface for type ExecutePipelineActivity. func (e ExecutePipelineActivity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", e.DependsOn) populate(objectMap, "description", e.Description) populate(objectMap, "name", e.Name) @@ -18498,10 +18579,10 @@ func (e *ExecutePipelineActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if e.AdditionalProperties == nil { - e.AdditionalProperties = map[string]interface{}{} + e.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) e.AdditionalProperties[key] = aux } @@ -18516,7 +18597,7 @@ func (e *ExecutePipelineActivity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ExecutePipelineActivityPolicy. func (e ExecutePipelineActivityPolicy) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "secureInput", e.SecureInput) if e.AdditionalProperties != nil { for key, val := range e.AdditionalProperties { @@ -18540,10 +18621,10 @@ func (e *ExecutePipelineActivityPolicy) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if e.AdditionalProperties == nil { - e.AdditionalProperties = map[string]interface{}{} + e.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) e.AdditionalProperties[key] = aux } @@ -18558,7 +18639,7 @@ func (e *ExecutePipelineActivityPolicy) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ExecutePipelineActivityTypeProperties. func (e ExecutePipelineActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "parameters", e.Parameters) populate(objectMap, "pipeline", e.Pipeline) populate(objectMap, "waitOnCompletion", e.WaitOnCompletion) @@ -18593,7 +18674,7 @@ func (e *ExecutePipelineActivityTypeProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type ExecutePowerQueryActivityTypeProperties. func (e ExecutePowerQueryActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "compute", e.Compute) populate(objectMap, "continueOnError", &e.ContinueOnError) populate(objectMap, "dataFlow", e.DataFlow) @@ -18656,7 +18737,7 @@ func (e *ExecutePowerQueryActivityTypeProperties) UnmarshalJSON(data []byte) err // MarshalJSON implements the json.Marshaller interface for type ExecuteSSISPackageActivity. func (e ExecuteSSISPackageActivity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", e.DependsOn) populate(objectMap, "description", e.Description) populate(objectMap, "linkedServiceName", e.LinkedServiceName) @@ -18708,10 +18789,10 @@ func (e *ExecuteSSISPackageActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if e.AdditionalProperties == nil { - e.AdditionalProperties = map[string]interface{}{} + e.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) e.AdditionalProperties[key] = aux } @@ -18726,7 +18807,7 @@ func (e *ExecuteSSISPackageActivity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ExecuteSSISPackageActivityTypeProperties. func (e ExecuteSSISPackageActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "connectVia", e.ConnectVia) populate(objectMap, "environmentPath", &e.EnvironmentPath) populate(objectMap, "executionCredential", e.ExecutionCredential) @@ -18797,7 +18878,7 @@ func (e *ExecuteSSISPackageActivityTypeProperties) UnmarshalJSON(data []byte) er // MarshalJSON implements the json.Marshaller interface for type ExecuteWranglingDataflowActivity. func (e ExecuteWranglingDataflowActivity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", e.DependsOn) populate(objectMap, "description", e.Description) populate(objectMap, "name", e.Name) @@ -18845,10 +18926,10 @@ func (e *ExecuteWranglingDataflowActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if e.AdditionalProperties == nil { - e.AdditionalProperties = map[string]interface{}{} + e.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) e.AdditionalProperties[key] = aux } @@ -18863,7 +18944,7 @@ func (e *ExecuteWranglingDataflowActivity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ExecutionActivity. func (e ExecutionActivity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", e.DependsOn) populate(objectMap, "description", e.Description) populate(objectMap, "linkedServiceName", e.LinkedServiceName) @@ -18911,10 +18992,10 @@ func (e *ExecutionActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if e.AdditionalProperties == nil { - e.AdditionalProperties = map[string]interface{}{} + e.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) e.AdditionalProperties[key] = aux } @@ -18929,7 +19010,7 @@ func (e *ExecutionActivity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ExportSettings. func (e ExportSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) objectMap["type"] = e.Type if e.AdditionalProperties != nil { for key, val := range e.AdditionalProperties { @@ -18953,10 +19034,10 @@ func (e *ExportSettings) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if e.AdditionalProperties == nil { - e.AdditionalProperties = map[string]interface{}{} + e.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) e.AdditionalProperties[key] = aux } @@ -18971,7 +19052,7 @@ func (e *ExportSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ExposureControlBatchRequest. func (e ExposureControlBatchRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "exposureControlRequests", e.ExposureControlRequests) return json.Marshal(objectMap) } @@ -18998,7 +19079,7 @@ func (e *ExposureControlBatchRequest) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ExposureControlBatchResponse. func (e ExposureControlBatchResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "exposureControlResponses", e.ExposureControlResponses) return json.Marshal(objectMap) } @@ -19025,7 +19106,7 @@ func (e *ExposureControlBatchResponse) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ExposureControlRequest. func (e ExposureControlRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "featureName", e.FeatureName) populate(objectMap, "featureType", e.FeatureType) return json.Marshal(objectMap) @@ -19056,7 +19137,7 @@ func (e *ExposureControlRequest) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ExposureControlResponse. func (e ExposureControlResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "featureName", e.FeatureName) populate(objectMap, "value", e.Value) return json.Marshal(objectMap) @@ -19087,7 +19168,7 @@ func (e *ExposureControlResponse) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Expression. func (e Expression) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "type", e.Type) populate(objectMap, "value", e.Value) return json.Marshal(objectMap) @@ -19118,7 +19199,7 @@ func (e *Expression) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Factory. func (f Factory) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "eTag", f.ETag) populate(objectMap, "id", f.ID) populate(objectMap, "identity", f.Identity) @@ -19170,10 +19251,10 @@ func (f *Factory) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if f.AdditionalProperties == nil { - f.AdditionalProperties = map[string]interface{}{} + f.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) f.AdditionalProperties[key] = aux } @@ -19188,7 +19269,7 @@ func (f *Factory) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type FactoryGitHubConfiguration. func (f FactoryGitHubConfiguration) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "accountName", f.AccountName) populate(objectMap, "clientId", f.ClientID) populate(objectMap, "clientSecret", f.ClientSecret) @@ -19251,7 +19332,7 @@ func (f *FactoryGitHubConfiguration) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type FactoryIdentity. func (f FactoryIdentity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "principalId", f.PrincipalID) populate(objectMap, "tenantId", f.TenantID) populate(objectMap, "type", f.Type) @@ -19290,7 +19371,7 @@ func (f *FactoryIdentity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type FactoryListResponse. func (f FactoryListResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", f.NextLink) populate(objectMap, "value", f.Value) return json.Marshal(objectMap) @@ -19321,7 +19402,7 @@ func (f *FactoryListResponse) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type FactoryProperties. func (f FactoryProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populateTimeRFC3339(objectMap, "createTime", f.CreateTime) populate(objectMap, "encryption", f.Encryption) populate(objectMap, "globalParameters", f.GlobalParameters) @@ -19376,7 +19457,7 @@ func (f *FactoryProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type FactoryRepoConfiguration. func (f FactoryRepoConfiguration) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "accountName", f.AccountName) populate(objectMap, "collaborationBranch", f.CollaborationBranch) populate(objectMap, "disablePublish", f.DisablePublish) @@ -19427,7 +19508,7 @@ func (f *FactoryRepoConfiguration) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type FactoryRepoUpdate. func (f FactoryRepoUpdate) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "factoryResourceId", f.FactoryResourceID) populate(objectMap, "repoConfiguration", f.RepoConfiguration) return json.Marshal(objectMap) @@ -19458,7 +19539,7 @@ func (f *FactoryRepoUpdate) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type FactoryUpdateParameters. func (f FactoryUpdateParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "identity", f.Identity) populate(objectMap, "properties", f.Properties) populate(objectMap, "tags", f.Tags) @@ -19493,7 +19574,7 @@ func (f *FactoryUpdateParameters) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type FactoryUpdateProperties. func (f FactoryUpdateProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "publicNetworkAccess", f.PublicNetworkAccess) return json.Marshal(objectMap) } @@ -19520,7 +19601,7 @@ func (f *FactoryUpdateProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type FactoryVSTSConfiguration. func (f FactoryVSTSConfiguration) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "accountName", f.AccountName) populate(objectMap, "collaborationBranch", f.CollaborationBranch) populate(objectMap, "disablePublish", f.DisablePublish) @@ -19579,7 +19660,7 @@ func (f *FactoryVSTSConfiguration) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type FailActivity. func (f FailActivity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", f.DependsOn) populate(objectMap, "description", f.Description) populate(objectMap, "name", f.Name) @@ -19623,10 +19704,10 @@ func (f *FailActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if f.AdditionalProperties == nil { - f.AdditionalProperties = map[string]interface{}{} + f.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) f.AdditionalProperties[key] = aux } @@ -19641,7 +19722,7 @@ func (f *FailActivity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type FailActivityTypeProperties. func (f FailActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "errorCode", &f.ErrorCode) populate(objectMap, "message", &f.Message) return json.Marshal(objectMap) @@ -19672,7 +19753,7 @@ func (f *FailActivityTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type FileServerLinkedService. func (f FileServerLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", f.Annotations) populate(objectMap, "connectVia", f.ConnectVia) populate(objectMap, "description", f.Description) @@ -19716,10 +19797,10 @@ func (f *FileServerLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if f.AdditionalProperties == nil { - f.AdditionalProperties = map[string]interface{}{} + f.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) f.AdditionalProperties[key] = aux } @@ -19734,7 +19815,7 @@ func (f *FileServerLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type FileServerLinkedServiceTypeProperties. func (f FileServerLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "encryptedCredential", &f.EncryptedCredential) populate(objectMap, "host", &f.Host) populate(objectMap, "password", f.Password) @@ -19773,7 +19854,7 @@ func (f *FileServerLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type FileServerLocation. func (f FileServerLocation) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "fileName", &f.FileName) populate(objectMap, "folderPath", &f.FolderPath) objectMap["type"] = "FileServerLocation" @@ -19805,10 +19886,10 @@ func (f *FileServerLocation) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if f.AdditionalProperties == nil { - f.AdditionalProperties = map[string]interface{}{} + f.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) f.AdditionalProperties[key] = aux } @@ -19823,7 +19904,7 @@ func (f *FileServerLocation) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type FileServerReadSettings. func (f FileServerReadSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "deleteFilesAfterCompletion", &f.DeleteFilesAfterCompletion) populate(objectMap, "disableMetricsCollection", &f.DisableMetricsCollection) populate(objectMap, "enablePartitionDiscovery", f.EnablePartitionDiscovery) @@ -19895,10 +19976,10 @@ func (f *FileServerReadSettings) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if f.AdditionalProperties == nil { - f.AdditionalProperties = map[string]interface{}{} + f.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) f.AdditionalProperties[key] = aux } @@ -19913,7 +19994,7 @@ func (f *FileServerReadSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type FileServerWriteSettings. func (f FileServerWriteSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "copyBehavior", &f.CopyBehavior) populate(objectMap, "disableMetricsCollection", &f.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &f.MaxConcurrentConnections) @@ -19949,10 +20030,10 @@ func (f *FileServerWriteSettings) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if f.AdditionalProperties == nil { - f.AdditionalProperties = map[string]interface{}{} + f.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) f.AdditionalProperties[key] = aux } @@ -19967,7 +20048,7 @@ func (f *FileServerWriteSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type FileShareDataset. func (f FileShareDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", f.Annotations) populate(objectMap, "description", f.Description) populate(objectMap, "folder", f.Folder) @@ -20023,10 +20104,10 @@ func (f *FileShareDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if f.AdditionalProperties == nil { - f.AdditionalProperties = map[string]interface{}{} + f.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) f.AdditionalProperties[key] = aux } @@ -20041,7 +20122,7 @@ func (f *FileShareDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type FileShareDatasetTypeProperties. func (f FileShareDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "compression", f.Compression) populate(objectMap, "fileFilter", &f.FileFilter) populate(objectMap, "fileName", &f.FileName) @@ -20092,7 +20173,7 @@ func (f *FileShareDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type FileSystemSink. func (f FileSystemSink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "copyBehavior", &f.CopyBehavior) populate(objectMap, "disableMetricsCollection", &f.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &f.MaxConcurrentConnections) @@ -20144,10 +20225,10 @@ func (f *FileSystemSink) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if f.AdditionalProperties == nil { - f.AdditionalProperties = map[string]interface{}{} + f.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) f.AdditionalProperties[key] = aux } @@ -20162,7 +20243,7 @@ func (f *FileSystemSink) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type FileSystemSource. func (f FileSystemSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &f.AdditionalColumns) populate(objectMap, "disableMetricsCollection", &f.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &f.MaxConcurrentConnections) @@ -20210,10 +20291,10 @@ func (f *FileSystemSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if f.AdditionalProperties == nil { - f.AdditionalProperties = map[string]interface{}{} + f.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) f.AdditionalProperties[key] = aux } @@ -20228,7 +20309,7 @@ func (f *FileSystemSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type FilterActivity. func (f FilterActivity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", f.DependsOn) populate(objectMap, "description", f.Description) populate(objectMap, "name", f.Name) @@ -20272,10 +20353,10 @@ func (f *FilterActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if f.AdditionalProperties == nil { - f.AdditionalProperties = map[string]interface{}{} + f.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) f.AdditionalProperties[key] = aux } @@ -20290,7 +20371,7 @@ func (f *FilterActivity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type FilterActivityTypeProperties. func (f FilterActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "condition", f.Condition) populate(objectMap, "items", f.Items) return json.Marshal(objectMap) @@ -20321,7 +20402,7 @@ func (f *FilterActivityTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Flowlet. func (f Flowlet) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", f.Annotations) populate(objectMap, "description", f.Description) populate(objectMap, "folder", f.Folder) @@ -20364,7 +20445,7 @@ func (f *Flowlet) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type FlowletTypeProperties. func (f FlowletTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "script", f.Script) populate(objectMap, "scriptLines", f.ScriptLines) populate(objectMap, "sinks", f.Sinks) @@ -20407,7 +20488,7 @@ func (f *FlowletTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ForEachActivity. func (f ForEachActivity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", f.DependsOn) populate(objectMap, "description", f.Description) populate(objectMap, "name", f.Name) @@ -20451,10 +20532,10 @@ func (f *ForEachActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if f.AdditionalProperties == nil { - f.AdditionalProperties = map[string]interface{}{} + f.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) f.AdditionalProperties[key] = aux } @@ -20469,7 +20550,7 @@ func (f *ForEachActivity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ForEachActivityTypeProperties. func (f ForEachActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "activities", f.Activities) populate(objectMap, "batchCount", f.BatchCount) populate(objectMap, "isSequential", f.IsSequential) @@ -20508,7 +20589,7 @@ func (f *ForEachActivityTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type FormatReadSettings. func (f FormatReadSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) objectMap["type"] = f.Type if f.AdditionalProperties != nil { for key, val := range f.AdditionalProperties { @@ -20532,10 +20613,10 @@ func (f *FormatReadSettings) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if f.AdditionalProperties == nil { - f.AdditionalProperties = map[string]interface{}{} + f.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) f.AdditionalProperties[key] = aux } @@ -20550,7 +20631,7 @@ func (f *FormatReadSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type FormatWriteSettings. func (f FormatWriteSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) objectMap["type"] = f.Type if f.AdditionalProperties != nil { for key, val := range f.AdditionalProperties { @@ -20574,10 +20655,10 @@ func (f *FormatWriteSettings) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if f.AdditionalProperties == nil { - f.AdditionalProperties = map[string]interface{}{} + f.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) f.AdditionalProperties[key] = aux } @@ -20592,7 +20673,7 @@ func (f *FormatWriteSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type FtpReadSettings. func (f FtpReadSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "deleteFilesAfterCompletion", &f.DeleteFilesAfterCompletion) populate(objectMap, "disableChunking", &f.DisableChunking) populate(objectMap, "disableMetricsCollection", &f.DisableMetricsCollection) @@ -20660,10 +20741,10 @@ func (f *FtpReadSettings) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if f.AdditionalProperties == nil { - f.AdditionalProperties = map[string]interface{}{} + f.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) f.AdditionalProperties[key] = aux } @@ -20678,7 +20759,7 @@ func (f *FtpReadSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type FtpServerLinkedService. func (f FtpServerLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", f.Annotations) populate(objectMap, "connectVia", f.ConnectVia) populate(objectMap, "description", f.Description) @@ -20722,10 +20803,10 @@ func (f *FtpServerLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if f.AdditionalProperties == nil { - f.AdditionalProperties = map[string]interface{}{} + f.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) f.AdditionalProperties[key] = aux } @@ -20740,7 +20821,7 @@ func (f *FtpServerLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type FtpServerLinkedServiceTypeProperties. func (f FtpServerLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "authenticationType", f.AuthenticationType) populate(objectMap, "enableSsl", &f.EnableSSL) populate(objectMap, "enableServerCertificateValidation", &f.EnableServerCertificateValidation) @@ -20795,7 +20876,7 @@ func (f *FtpServerLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type FtpServerLocation. func (f FtpServerLocation) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "fileName", &f.FileName) populate(objectMap, "folderPath", &f.FolderPath) objectMap["type"] = "FtpServerLocation" @@ -20827,10 +20908,10 @@ func (f *FtpServerLocation) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if f.AdditionalProperties == nil { - f.AdditionalProperties = map[string]interface{}{} + f.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) f.AdditionalProperties[key] = aux } @@ -20845,7 +20926,7 @@ func (f *FtpServerLocation) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type GenericDatasetTypeProperties. func (g GenericDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "tableName", &g.TableName) return json.Marshal(objectMap) } @@ -20872,7 +20953,7 @@ func (g *GenericDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type GetMetadataActivity. func (g GetMetadataActivity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", g.DependsOn) populate(objectMap, "description", g.Description) populate(objectMap, "linkedServiceName", g.LinkedServiceName) @@ -20924,10 +21005,10 @@ func (g *GetMetadataActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if g.AdditionalProperties == nil { - g.AdditionalProperties = map[string]interface{}{} + g.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) g.AdditionalProperties[key] = aux } @@ -20942,7 +21023,7 @@ func (g *GetMetadataActivity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type GetMetadataActivityTypeProperties. func (g GetMetadataActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dataset", g.Dataset) populate(objectMap, "fieldList", g.FieldList) populate(objectMap, "formatSettings", g.FormatSettings) @@ -20981,7 +21062,7 @@ func (g *GetMetadataActivityTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type GetSsisObjectMetadataRequest. func (g GetSsisObjectMetadataRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "metadataPath", g.MetadataPath) return json.Marshal(objectMap) } @@ -21008,7 +21089,7 @@ func (g *GetSsisObjectMetadataRequest) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type GitHubAccessTokenRequest. func (g GitHubAccessTokenRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "gitHubAccessCode", g.GitHubAccessCode) populate(objectMap, "gitHubAccessTokenBaseUrl", g.GitHubAccessTokenBaseURL) populate(objectMap, "gitHubClientId", g.GitHubClientID) @@ -21047,7 +21128,7 @@ func (g *GitHubAccessTokenRequest) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type GitHubAccessTokenResponse. func (g GitHubAccessTokenResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "gitHubAccessToken", g.GitHubAccessToken) return json.Marshal(objectMap) } @@ -21074,7 +21155,7 @@ func (g *GitHubAccessTokenResponse) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type GitHubClientSecret. func (g GitHubClientSecret) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "byoaSecretAkvUrl", g.ByoaSecretAkvURL) populate(objectMap, "byoaSecretName", g.ByoaSecretName) return json.Marshal(objectMap) @@ -21105,7 +21186,7 @@ func (g *GitHubClientSecret) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type GlobalParameterListResponse. func (g GlobalParameterListResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", g.NextLink) populate(objectMap, "value", g.Value) return json.Marshal(objectMap) @@ -21136,7 +21217,7 @@ func (g *GlobalParameterListResponse) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type GlobalParameterResource. func (g GlobalParameterResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "etag", g.Etag) populate(objectMap, "id", g.ID) populate(objectMap, "name", g.Name) @@ -21179,7 +21260,7 @@ func (g *GlobalParameterResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type GlobalParameterSpecification. func (g GlobalParameterSpecification) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "type", g.Type) populate(objectMap, "value", &g.Value) return json.Marshal(objectMap) @@ -21210,7 +21291,7 @@ func (g *GlobalParameterSpecification) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type GoogleAdWordsLinkedService. func (g GoogleAdWordsLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", g.Annotations) populate(objectMap, "connectVia", g.ConnectVia) populate(objectMap, "description", g.Description) @@ -21254,10 +21335,10 @@ func (g *GoogleAdWordsLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if g.AdditionalProperties == nil { - g.AdditionalProperties = map[string]interface{}{} + g.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) g.AdditionalProperties[key] = aux } @@ -21272,7 +21353,7 @@ func (g *GoogleAdWordsLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type GoogleAdWordsLinkedServiceTypeProperties. func (g GoogleAdWordsLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "authenticationType", g.AuthenticationType) populate(objectMap, "clientCustomerID", &g.ClientCustomerID) populate(objectMap, "clientId", &g.ClientID) @@ -21343,7 +21424,7 @@ func (g *GoogleAdWordsLinkedServiceTypeProperties) UnmarshalJSON(data []byte) er // MarshalJSON implements the json.Marshaller interface for type GoogleAdWordsObjectDataset. func (g GoogleAdWordsObjectDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", g.Annotations) populate(objectMap, "description", g.Description) populate(objectMap, "folder", g.Folder) @@ -21399,10 +21480,10 @@ func (g *GoogleAdWordsObjectDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if g.AdditionalProperties == nil { - g.AdditionalProperties = map[string]interface{}{} + g.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) g.AdditionalProperties[key] = aux } @@ -21417,7 +21498,7 @@ func (g *GoogleAdWordsObjectDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type GoogleAdWordsSource. func (g GoogleAdWordsSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &g.AdditionalColumns) populate(objectMap, "disableMetricsCollection", &g.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &g.MaxConcurrentConnections) @@ -21469,10 +21550,10 @@ func (g *GoogleAdWordsSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if g.AdditionalProperties == nil { - g.AdditionalProperties = map[string]interface{}{} + g.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) g.AdditionalProperties[key] = aux } @@ -21487,7 +21568,7 @@ func (g *GoogleAdWordsSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type GoogleBigQueryDatasetTypeProperties. func (g GoogleBigQueryDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dataset", &g.Dataset) populate(objectMap, "table", &g.Table) populate(objectMap, "tableName", &g.TableName) @@ -21522,7 +21603,7 @@ func (g *GoogleBigQueryDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type GoogleBigQueryLinkedService. func (g GoogleBigQueryLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", g.Annotations) populate(objectMap, "connectVia", g.ConnectVia) populate(objectMap, "description", g.Description) @@ -21566,10 +21647,10 @@ func (g *GoogleBigQueryLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if g.AdditionalProperties == nil { - g.AdditionalProperties = map[string]interface{}{} + g.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) g.AdditionalProperties[key] = aux } @@ -21584,7 +21665,7 @@ func (g *GoogleBigQueryLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type GoogleBigQueryLinkedServiceTypeProperties. func (g GoogleBigQueryLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalProjects", &g.AdditionalProjects) populate(objectMap, "authenticationType", g.AuthenticationType) populate(objectMap, "clientId", &g.ClientID) @@ -21655,7 +21736,7 @@ func (g *GoogleBigQueryLinkedServiceTypeProperties) UnmarshalJSON(data []byte) e // MarshalJSON implements the json.Marshaller interface for type GoogleBigQueryObjectDataset. func (g GoogleBigQueryObjectDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", g.Annotations) populate(objectMap, "description", g.Description) populate(objectMap, "folder", g.Folder) @@ -21711,10 +21792,10 @@ func (g *GoogleBigQueryObjectDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if g.AdditionalProperties == nil { - g.AdditionalProperties = map[string]interface{}{} + g.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) g.AdditionalProperties[key] = aux } @@ -21729,7 +21810,7 @@ func (g *GoogleBigQueryObjectDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type GoogleBigQuerySource. func (g GoogleBigQuerySource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &g.AdditionalColumns) populate(objectMap, "disableMetricsCollection", &g.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &g.MaxConcurrentConnections) @@ -21781,10 +21862,10 @@ func (g *GoogleBigQuerySource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if g.AdditionalProperties == nil { - g.AdditionalProperties = map[string]interface{}{} + g.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) g.AdditionalProperties[key] = aux } @@ -21799,7 +21880,7 @@ func (g *GoogleBigQuerySource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type GoogleCloudStorageLinkedService. func (g GoogleCloudStorageLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", g.Annotations) populate(objectMap, "connectVia", g.ConnectVia) populate(objectMap, "description", g.Description) @@ -21843,10 +21924,10 @@ func (g *GoogleCloudStorageLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if g.AdditionalProperties == nil { - g.AdditionalProperties = map[string]interface{}{} + g.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) g.AdditionalProperties[key] = aux } @@ -21861,7 +21942,7 @@ func (g *GoogleCloudStorageLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type GoogleCloudStorageLinkedServiceTypeProperties. func (g GoogleCloudStorageLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "accessKeyId", &g.AccessKeyID) populate(objectMap, "encryptedCredential", &g.EncryptedCredential) populate(objectMap, "secretAccessKey", g.SecretAccessKey) @@ -21900,7 +21981,7 @@ func (g *GoogleCloudStorageLinkedServiceTypeProperties) UnmarshalJSON(data []byt // MarshalJSON implements the json.Marshaller interface for type GoogleCloudStorageLocation. func (g GoogleCloudStorageLocation) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "bucketName", &g.BucketName) populate(objectMap, "fileName", &g.FileName) populate(objectMap, "folderPath", &g.FolderPath) @@ -21940,10 +22021,10 @@ func (g *GoogleCloudStorageLocation) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if g.AdditionalProperties == nil { - g.AdditionalProperties = map[string]interface{}{} + g.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) g.AdditionalProperties[key] = aux } @@ -21958,7 +22039,7 @@ func (g *GoogleCloudStorageLocation) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type GoogleCloudStorageReadSettings. func (g GoogleCloudStorageReadSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "deleteFilesAfterCompletion", &g.DeleteFilesAfterCompletion) populate(objectMap, "disableMetricsCollection", &g.DisableMetricsCollection) populate(objectMap, "enablePartitionDiscovery", g.EnablePartitionDiscovery) @@ -22030,10 +22111,10 @@ func (g *GoogleCloudStorageReadSettings) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if g.AdditionalProperties == nil { - g.AdditionalProperties = map[string]interface{}{} + g.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) g.AdditionalProperties[key] = aux } @@ -22048,7 +22129,7 @@ func (g *GoogleCloudStorageReadSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type GoogleSheetsLinkedService. func (g GoogleSheetsLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", g.Annotations) populate(objectMap, "connectVia", g.ConnectVia) populate(objectMap, "description", g.Description) @@ -22092,10 +22173,10 @@ func (g *GoogleSheetsLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if g.AdditionalProperties == nil { - g.AdditionalProperties = map[string]interface{}{} + g.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) g.AdditionalProperties[key] = aux } @@ -22110,7 +22191,7 @@ func (g *GoogleSheetsLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type GoogleSheetsLinkedServiceTypeProperties. func (g GoogleSheetsLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "apiToken", g.APIToken) populate(objectMap, "encryptedCredential", &g.EncryptedCredential) return json.Marshal(objectMap) @@ -22141,7 +22222,7 @@ func (g *GoogleSheetsLinkedServiceTypeProperties) UnmarshalJSON(data []byte) err // MarshalJSON implements the json.Marshaller interface for type GreenplumDatasetTypeProperties. func (g GreenplumDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "schema", &g.Schema) populate(objectMap, "table", &g.Table) populate(objectMap, "tableName", &g.TableName) @@ -22176,7 +22257,7 @@ func (g *GreenplumDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type GreenplumLinkedService. func (g GreenplumLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", g.Annotations) populate(objectMap, "connectVia", g.ConnectVia) populate(objectMap, "description", g.Description) @@ -22220,10 +22301,10 @@ func (g *GreenplumLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if g.AdditionalProperties == nil { - g.AdditionalProperties = map[string]interface{}{} + g.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) g.AdditionalProperties[key] = aux } @@ -22238,7 +22319,7 @@ func (g *GreenplumLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type GreenplumLinkedServiceTypeProperties. func (g GreenplumLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "connectionString", &g.ConnectionString) populate(objectMap, "encryptedCredential", &g.EncryptedCredential) populate(objectMap, "pwd", g.Pwd) @@ -22273,7 +22354,7 @@ func (g *GreenplumLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type GreenplumSource. func (g GreenplumSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &g.AdditionalColumns) populate(objectMap, "disableMetricsCollection", &g.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &g.MaxConcurrentConnections) @@ -22325,10 +22406,10 @@ func (g *GreenplumSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if g.AdditionalProperties == nil { - g.AdditionalProperties = map[string]interface{}{} + g.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) g.AdditionalProperties[key] = aux } @@ -22343,7 +22424,7 @@ func (g *GreenplumSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type GreenplumTableDataset. func (g GreenplumTableDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", g.Annotations) populate(objectMap, "description", g.Description) populate(objectMap, "folder", g.Folder) @@ -22399,10 +22480,10 @@ func (g *GreenplumTableDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if g.AdditionalProperties == nil { - g.AdditionalProperties = map[string]interface{}{} + g.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) g.AdditionalProperties[key] = aux } @@ -22417,7 +22498,7 @@ func (g *GreenplumTableDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HBaseLinkedService. func (h HBaseLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", h.Annotations) populate(objectMap, "connectVia", h.ConnectVia) populate(objectMap, "description", h.Description) @@ -22461,10 +22542,10 @@ func (h *HBaseLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if h.AdditionalProperties == nil { - h.AdditionalProperties = map[string]interface{}{} + h.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) h.AdditionalProperties[key] = aux } @@ -22479,7 +22560,7 @@ func (h *HBaseLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HBaseLinkedServiceTypeProperties. func (h HBaseLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "allowHostNameCNMismatch", &h.AllowHostNameCNMismatch) populate(objectMap, "allowSelfSignedServerCert", &h.AllowSelfSignedServerCert) populate(objectMap, "authenticationType", h.AuthenticationType) @@ -22546,7 +22627,7 @@ func (h *HBaseLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HBaseObjectDataset. func (h HBaseObjectDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", h.Annotations) populate(objectMap, "description", h.Description) populate(objectMap, "folder", h.Folder) @@ -22602,10 +22683,10 @@ func (h *HBaseObjectDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if h.AdditionalProperties == nil { - h.AdditionalProperties = map[string]interface{}{} + h.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) h.AdditionalProperties[key] = aux } @@ -22620,7 +22701,7 @@ func (h *HBaseObjectDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HBaseSource. func (h HBaseSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &h.AdditionalColumns) populate(objectMap, "disableMetricsCollection", &h.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &h.MaxConcurrentConnections) @@ -22672,10 +22753,10 @@ func (h *HBaseSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if h.AdditionalProperties == nil { - h.AdditionalProperties = map[string]interface{}{} + h.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) h.AdditionalProperties[key] = aux } @@ -22690,7 +22771,7 @@ func (h *HBaseSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HDInsightHiveActivity. func (h HDInsightHiveActivity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", h.DependsOn) populate(objectMap, "description", h.Description) populate(objectMap, "linkedServiceName", h.LinkedServiceName) @@ -22742,10 +22823,10 @@ func (h *HDInsightHiveActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if h.AdditionalProperties == nil { - h.AdditionalProperties = map[string]interface{}{} + h.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) h.AdditionalProperties[key] = aux } @@ -22760,7 +22841,7 @@ func (h *HDInsightHiveActivity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HDInsightHiveActivityTypeProperties. func (h HDInsightHiveActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "arguments", h.Arguments) populate(objectMap, "defines", h.Defines) populate(objectMap, "getDebugInfo", h.GetDebugInfo) @@ -22815,7 +22896,7 @@ func (h *HDInsightHiveActivityTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HDInsightLinkedService. func (h HDInsightLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", h.Annotations) populate(objectMap, "connectVia", h.ConnectVia) populate(objectMap, "description", h.Description) @@ -22859,10 +22940,10 @@ func (h *HDInsightLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if h.AdditionalProperties == nil { - h.AdditionalProperties = map[string]interface{}{} + h.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) h.AdditionalProperties[key] = aux } @@ -22877,7 +22958,7 @@ func (h *HDInsightLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HDInsightLinkedServiceTypeProperties. func (h HDInsightLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "clusterUri", &h.ClusterURI) populate(objectMap, "encryptedCredential", &h.EncryptedCredential) populate(objectMap, "fileSystem", &h.FileSystem) @@ -22932,7 +23013,7 @@ func (h *HDInsightLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type HDInsightMapReduceActivity. func (h HDInsightMapReduceActivity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", h.DependsOn) populate(objectMap, "description", h.Description) populate(objectMap, "linkedServiceName", h.LinkedServiceName) @@ -22984,10 +23065,10 @@ func (h *HDInsightMapReduceActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if h.AdditionalProperties == nil { - h.AdditionalProperties = map[string]interface{}{} + h.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) h.AdditionalProperties[key] = aux } @@ -23002,7 +23083,7 @@ func (h *HDInsightMapReduceActivity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HDInsightMapReduceActivityTypeProperties. func (h HDInsightMapReduceActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "arguments", h.Arguments) populate(objectMap, "className", &h.ClassName) populate(objectMap, "defines", h.Defines) @@ -23057,7 +23138,7 @@ func (h *HDInsightMapReduceActivityTypeProperties) UnmarshalJSON(data []byte) er // MarshalJSON implements the json.Marshaller interface for type HDInsightOnDemandLinkedService. func (h HDInsightOnDemandLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", h.Annotations) populate(objectMap, "connectVia", h.ConnectVia) populate(objectMap, "description", h.Description) @@ -23101,10 +23182,10 @@ func (h *HDInsightOnDemandLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if h.AdditionalProperties == nil { - h.AdditionalProperties = map[string]interface{}{} + h.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) h.AdditionalProperties[key] = aux } @@ -23119,7 +23200,7 @@ func (h *HDInsightOnDemandLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HDInsightOnDemandLinkedServiceTypeProperties. func (h HDInsightOnDemandLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalLinkedServiceNames", h.AdditionalLinkedServiceNames) populate(objectMap, "clusterNamePrefix", &h.ClusterNamePrefix) populate(objectMap, "clusterPassword", h.ClusterPassword) @@ -23278,7 +23359,7 @@ func (h *HDInsightOnDemandLinkedServiceTypeProperties) UnmarshalJSON(data []byte // MarshalJSON implements the json.Marshaller interface for type HDInsightPigActivity. func (h HDInsightPigActivity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", h.DependsOn) populate(objectMap, "description", h.Description) populate(objectMap, "linkedServiceName", h.LinkedServiceName) @@ -23330,10 +23411,10 @@ func (h *HDInsightPigActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if h.AdditionalProperties == nil { - h.AdditionalProperties = map[string]interface{}{} + h.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) h.AdditionalProperties[key] = aux } @@ -23348,7 +23429,7 @@ func (h *HDInsightPigActivity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HDInsightPigActivityTypeProperties. func (h HDInsightPigActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "arguments", &h.Arguments) populate(objectMap, "defines", h.Defines) populate(objectMap, "getDebugInfo", h.GetDebugInfo) @@ -23395,7 +23476,7 @@ func (h *HDInsightPigActivityTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HDInsightSparkActivity. func (h HDInsightSparkActivity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", h.DependsOn) populate(objectMap, "description", h.Description) populate(objectMap, "linkedServiceName", h.LinkedServiceName) @@ -23447,10 +23528,10 @@ func (h *HDInsightSparkActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if h.AdditionalProperties == nil { - h.AdditionalProperties = map[string]interface{}{} + h.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) h.AdditionalProperties[key] = aux } @@ -23465,7 +23546,7 @@ func (h *HDInsightSparkActivity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HDInsightSparkActivityTypeProperties. func (h HDInsightSparkActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "arguments", h.Arguments) populate(objectMap, "className", h.ClassName) populate(objectMap, "entryFilePath", &h.EntryFilePath) @@ -23520,7 +23601,7 @@ func (h *HDInsightSparkActivityTypeProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type HDInsightStreamingActivity. func (h HDInsightStreamingActivity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", h.DependsOn) populate(objectMap, "description", h.Description) populate(objectMap, "linkedServiceName", h.LinkedServiceName) @@ -23572,10 +23653,10 @@ func (h *HDInsightStreamingActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if h.AdditionalProperties == nil { - h.AdditionalProperties = map[string]interface{}{} + h.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) h.AdditionalProperties[key] = aux } @@ -23590,7 +23671,7 @@ func (h *HDInsightStreamingActivity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HDInsightStreamingActivityTypeProperties. func (h HDInsightStreamingActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "arguments", h.Arguments) populate(objectMap, "combiner", &h.Combiner) populate(objectMap, "commandEnvironment", h.CommandEnvironment) @@ -23661,7 +23742,7 @@ func (h *HDInsightStreamingActivityTypeProperties) UnmarshalJSON(data []byte) er // MarshalJSON implements the json.Marshaller interface for type HTTPDataset. func (h HTTPDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", h.Annotations) populate(objectMap, "description", h.Description) populate(objectMap, "folder", h.Folder) @@ -23717,10 +23798,10 @@ func (h *HTTPDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if h.AdditionalProperties == nil { - h.AdditionalProperties = map[string]interface{}{} + h.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) h.AdditionalProperties[key] = aux } @@ -23735,7 +23816,7 @@ func (h *HTTPDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HTTPDatasetTypeProperties. func (h HTTPDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalHeaders", &h.AdditionalHeaders) populate(objectMap, "compression", h.Compression) populate(objectMap, "format", h.Format) @@ -23782,7 +23863,7 @@ func (h *HTTPDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HTTPLinkedService. func (h HTTPLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", h.Annotations) populate(objectMap, "connectVia", h.ConnectVia) populate(objectMap, "description", h.Description) @@ -23826,10 +23907,10 @@ func (h *HTTPLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if h.AdditionalProperties == nil { - h.AdditionalProperties = map[string]interface{}{} + h.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) h.AdditionalProperties[key] = aux } @@ -23844,7 +23925,7 @@ func (h *HTTPLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HTTPLinkedServiceTypeProperties. func (h HTTPLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "authHeaders", &h.AuthHeaders) populate(objectMap, "authenticationType", h.AuthenticationType) populate(objectMap, "certThumbprint", &h.CertThumbprint) @@ -23903,7 +23984,7 @@ func (h *HTTPLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HTTPReadSettings. func (h HTTPReadSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalHeaders", &h.AdditionalHeaders) populate(objectMap, "disableMetricsCollection", &h.DisableMetricsCollection) populate(objectMap, "enablePartitionDiscovery", h.EnablePartitionDiscovery) @@ -23959,10 +24040,10 @@ func (h *HTTPReadSettings) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if h.AdditionalProperties == nil { - h.AdditionalProperties = map[string]interface{}{} + h.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) h.AdditionalProperties[key] = aux } @@ -23977,7 +24058,7 @@ func (h *HTTPReadSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HTTPServerLocation. func (h HTTPServerLocation) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "fileName", &h.FileName) populate(objectMap, "folderPath", &h.FolderPath) populate(objectMap, "relativeUrl", &h.RelativeURL) @@ -24013,10 +24094,10 @@ func (h *HTTPServerLocation) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if h.AdditionalProperties == nil { - h.AdditionalProperties = map[string]interface{}{} + h.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) h.AdditionalProperties[key] = aux } @@ -24031,7 +24112,7 @@ func (h *HTTPServerLocation) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HTTPSource. func (h HTTPSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "disableMetricsCollection", &h.DisableMetricsCollection) populate(objectMap, "httpRequestTimeout", &h.HTTPRequestTimeout) populate(objectMap, "maxConcurrentConnections", &h.MaxConcurrentConnections) @@ -24075,10 +24156,10 @@ func (h *HTTPSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if h.AdditionalProperties == nil { - h.AdditionalProperties = map[string]interface{}{} + h.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) h.AdditionalProperties[key] = aux } @@ -24093,7 +24174,7 @@ func (h *HTTPSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HdfsLinkedService. func (h HdfsLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", h.Annotations) populate(objectMap, "connectVia", h.ConnectVia) populate(objectMap, "description", h.Description) @@ -24137,10 +24218,10 @@ func (h *HdfsLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if h.AdditionalProperties == nil { - h.AdditionalProperties = map[string]interface{}{} + h.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) h.AdditionalProperties[key] = aux } @@ -24155,7 +24236,7 @@ func (h *HdfsLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HdfsLinkedServiceTypeProperties. func (h HdfsLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "authenticationType", &h.AuthenticationType) populate(objectMap, "encryptedCredential", &h.EncryptedCredential) populate(objectMap, "password", h.Password) @@ -24198,7 +24279,7 @@ func (h *HdfsLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HdfsLocation. func (h HdfsLocation) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "fileName", &h.FileName) populate(objectMap, "folderPath", &h.FolderPath) objectMap["type"] = "HdfsLocation" @@ -24230,10 +24311,10 @@ func (h *HdfsLocation) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if h.AdditionalProperties == nil { - h.AdditionalProperties = map[string]interface{}{} + h.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) h.AdditionalProperties[key] = aux } @@ -24248,7 +24329,7 @@ func (h *HdfsLocation) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HdfsReadSettings. func (h HdfsReadSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "deleteFilesAfterCompletion", &h.DeleteFilesAfterCompletion) populate(objectMap, "disableMetricsCollection", &h.DisableMetricsCollection) populate(objectMap, "distcpSettings", h.DistcpSettings) @@ -24320,10 +24401,10 @@ func (h *HdfsReadSettings) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if h.AdditionalProperties == nil { - h.AdditionalProperties = map[string]interface{}{} + h.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) h.AdditionalProperties[key] = aux } @@ -24338,7 +24419,7 @@ func (h *HdfsReadSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HdfsSource. func (h HdfsSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "disableMetricsCollection", &h.DisableMetricsCollection) populate(objectMap, "distcpSettings", h.DistcpSettings) populate(objectMap, "maxConcurrentConnections", &h.MaxConcurrentConnections) @@ -24386,10 +24467,10 @@ func (h *HdfsSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if h.AdditionalProperties == nil { - h.AdditionalProperties = map[string]interface{}{} + h.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) h.AdditionalProperties[key] = aux } @@ -24404,7 +24485,7 @@ func (h *HdfsSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HiveDatasetTypeProperties. func (h HiveDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "schema", &h.Schema) populate(objectMap, "table", &h.Table) populate(objectMap, "tableName", &h.TableName) @@ -24439,7 +24520,7 @@ func (h *HiveDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HiveLinkedService. func (h HiveLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", h.Annotations) populate(objectMap, "connectVia", h.ConnectVia) populate(objectMap, "description", h.Description) @@ -24483,10 +24564,10 @@ func (h *HiveLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if h.AdditionalProperties == nil { - h.AdditionalProperties = map[string]interface{}{} + h.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) h.AdditionalProperties[key] = aux } @@ -24501,7 +24582,7 @@ func (h *HiveLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HiveLinkedServiceTypeProperties. func (h HiveLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "allowHostNameCNMismatch", &h.AllowHostNameCNMismatch) populate(objectMap, "allowSelfSignedServerCert", &h.AllowSelfSignedServerCert) populate(objectMap, "authenticationType", h.AuthenticationType) @@ -24592,7 +24673,7 @@ func (h *HiveLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HiveObjectDataset. func (h HiveObjectDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", h.Annotations) populate(objectMap, "description", h.Description) populate(objectMap, "folder", h.Folder) @@ -24648,10 +24729,10 @@ func (h *HiveObjectDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if h.AdditionalProperties == nil { - h.AdditionalProperties = map[string]interface{}{} + h.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) h.AdditionalProperties[key] = aux } @@ -24666,7 +24747,7 @@ func (h *HiveObjectDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HiveSource. func (h HiveSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &h.AdditionalColumns) populate(objectMap, "disableMetricsCollection", &h.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &h.MaxConcurrentConnections) @@ -24718,10 +24799,10 @@ func (h *HiveSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if h.AdditionalProperties == nil { - h.AdditionalProperties = map[string]interface{}{} + h.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) h.AdditionalProperties[key] = aux } @@ -24736,7 +24817,7 @@ func (h *HiveSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HubspotLinkedService. func (h HubspotLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", h.Annotations) populate(objectMap, "connectVia", h.ConnectVia) populate(objectMap, "description", h.Description) @@ -24780,10 +24861,10 @@ func (h *HubspotLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if h.AdditionalProperties == nil { - h.AdditionalProperties = map[string]interface{}{} + h.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) h.AdditionalProperties[key] = aux } @@ -24798,7 +24879,7 @@ func (h *HubspotLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HubspotLinkedServiceTypeProperties. func (h HubspotLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "accessToken", h.AccessToken) populate(objectMap, "clientId", &h.ClientID) populate(objectMap, "clientSecret", h.ClientSecret) @@ -24853,7 +24934,7 @@ func (h *HubspotLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HubspotObjectDataset. func (h HubspotObjectDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", h.Annotations) populate(objectMap, "description", h.Description) populate(objectMap, "folder", h.Folder) @@ -24909,10 +24990,10 @@ func (h *HubspotObjectDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if h.AdditionalProperties == nil { - h.AdditionalProperties = map[string]interface{}{} + h.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) h.AdditionalProperties[key] = aux } @@ -24927,7 +25008,7 @@ func (h *HubspotObjectDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type HubspotSource. func (h HubspotSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &h.AdditionalColumns) populate(objectMap, "disableMetricsCollection", &h.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &h.MaxConcurrentConnections) @@ -24979,10 +25060,10 @@ func (h *HubspotSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if h.AdditionalProperties == nil { - h.AdditionalProperties = map[string]interface{}{} + h.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) h.AdditionalProperties[key] = aux } @@ -24997,7 +25078,7 @@ func (h *HubspotSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type IfConditionActivity. func (i IfConditionActivity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", i.DependsOn) populate(objectMap, "description", i.Description) populate(objectMap, "name", i.Name) @@ -25041,10 +25122,10 @@ func (i *IfConditionActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if i.AdditionalProperties == nil { - i.AdditionalProperties = map[string]interface{}{} + i.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) i.AdditionalProperties[key] = aux } @@ -25059,7 +25140,7 @@ func (i *IfConditionActivity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type IfConditionActivityTypeProperties. func (i IfConditionActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "expression", i.Expression) populate(objectMap, "ifFalseActivities", i.IfFalseActivities) populate(objectMap, "ifTrueActivities", i.IfTrueActivities) @@ -25094,7 +25175,7 @@ func (i *IfConditionActivityTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ImpalaDatasetTypeProperties. func (i ImpalaDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "schema", &i.Schema) populate(objectMap, "table", &i.Table) populate(objectMap, "tableName", &i.TableName) @@ -25129,7 +25210,7 @@ func (i *ImpalaDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ImpalaLinkedService. func (i ImpalaLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", i.Annotations) populate(objectMap, "connectVia", i.ConnectVia) populate(objectMap, "description", i.Description) @@ -25173,10 +25254,10 @@ func (i *ImpalaLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if i.AdditionalProperties == nil { - i.AdditionalProperties = map[string]interface{}{} + i.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) i.AdditionalProperties[key] = aux } @@ -25191,7 +25272,7 @@ func (i *ImpalaLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ImpalaLinkedServiceTypeProperties. func (i ImpalaLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "allowHostNameCNMismatch", &i.AllowHostNameCNMismatch) populate(objectMap, "allowSelfSignedServerCert", &i.AllowSelfSignedServerCert) populate(objectMap, "authenticationType", i.AuthenticationType) @@ -25258,7 +25339,7 @@ func (i *ImpalaLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ImpalaObjectDataset. func (i ImpalaObjectDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", i.Annotations) populate(objectMap, "description", i.Description) populate(objectMap, "folder", i.Folder) @@ -25314,10 +25395,10 @@ func (i *ImpalaObjectDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if i.AdditionalProperties == nil { - i.AdditionalProperties = map[string]interface{}{} + i.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) i.AdditionalProperties[key] = aux } @@ -25332,7 +25413,7 @@ func (i *ImpalaObjectDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ImpalaSource. func (i ImpalaSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &i.AdditionalColumns) populate(objectMap, "disableMetricsCollection", &i.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &i.MaxConcurrentConnections) @@ -25384,10 +25465,10 @@ func (i *ImpalaSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if i.AdditionalProperties == nil { - i.AdditionalProperties = map[string]interface{}{} + i.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) i.AdditionalProperties[key] = aux } @@ -25402,7 +25483,7 @@ func (i *ImpalaSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ImportSettings. func (i ImportSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) objectMap["type"] = i.Type if i.AdditionalProperties != nil { for key, val := range i.AdditionalProperties { @@ -25426,10 +25507,10 @@ func (i *ImportSettings) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if i.AdditionalProperties == nil { - i.AdditionalProperties = map[string]interface{}{} + i.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) i.AdditionalProperties[key] = aux } @@ -25444,7 +25525,7 @@ func (i *ImportSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type InformixLinkedService. func (i InformixLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", i.Annotations) populate(objectMap, "connectVia", i.ConnectVia) populate(objectMap, "description", i.Description) @@ -25488,10 +25569,10 @@ func (i *InformixLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if i.AdditionalProperties == nil { - i.AdditionalProperties = map[string]interface{}{} + i.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) i.AdditionalProperties[key] = aux } @@ -25506,7 +25587,7 @@ func (i *InformixLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type InformixLinkedServiceTypeProperties. func (i InformixLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "authenticationType", &i.AuthenticationType) populate(objectMap, "connectionString", &i.ConnectionString) populate(objectMap, "credential", i.Credential) @@ -25553,7 +25634,7 @@ func (i *InformixLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type InformixSink. func (i InformixSink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "disableMetricsCollection", &i.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &i.MaxConcurrentConnections) populate(objectMap, "preCopyScript", &i.PreCopyScript) @@ -25605,10 +25686,10 @@ func (i *InformixSink) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if i.AdditionalProperties == nil { - i.AdditionalProperties = map[string]interface{}{} + i.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) i.AdditionalProperties[key] = aux } @@ -25623,7 +25704,7 @@ func (i *InformixSink) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type InformixSource. func (i InformixSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &i.AdditionalColumns) populate(objectMap, "disableMetricsCollection", &i.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &i.MaxConcurrentConnections) @@ -25675,10 +25756,10 @@ func (i *InformixSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if i.AdditionalProperties == nil { - i.AdditionalProperties = map[string]interface{}{} + i.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) i.AdditionalProperties[key] = aux } @@ -25693,7 +25774,7 @@ func (i *InformixSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type InformixTableDataset. func (i InformixTableDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", i.Annotations) populate(objectMap, "description", i.Description) populate(objectMap, "folder", i.Folder) @@ -25749,10 +25830,10 @@ func (i *InformixTableDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if i.AdditionalProperties == nil { - i.AdditionalProperties = map[string]interface{}{} + i.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) i.AdditionalProperties[key] = aux } @@ -25767,7 +25848,7 @@ func (i *InformixTableDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type InformixTableDatasetTypeProperties. func (i InformixTableDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "tableName", &i.TableName) return json.Marshal(objectMap) } @@ -25794,7 +25875,7 @@ func (i *InformixTableDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type IntegrationRuntime. func (i IntegrationRuntime) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "description", i.Description) objectMap["type"] = i.Type if i.AdditionalProperties != nil { @@ -25822,10 +25903,10 @@ func (i *IntegrationRuntime) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if i.AdditionalProperties == nil { - i.AdditionalProperties = map[string]interface{}{} + i.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) i.AdditionalProperties[key] = aux } @@ -25840,7 +25921,7 @@ func (i *IntegrationRuntime) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeAuthKeys. func (i IntegrationRuntimeAuthKeys) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "authKey1", i.AuthKey1) populate(objectMap, "authKey2", i.AuthKey2) return json.Marshal(objectMap) @@ -25871,7 +25952,7 @@ func (i *IntegrationRuntimeAuthKeys) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeComputeProperties. func (i IntegrationRuntimeComputeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dataFlowProperties", i.DataFlowProperties) populate(objectMap, "location", i.Location) populate(objectMap, "maxParallelExecutionsPerNode", i.MaxParallelExecutionsPerNode) @@ -25915,10 +25996,10 @@ func (i *IntegrationRuntimeComputeProperties) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if i.AdditionalProperties == nil { - i.AdditionalProperties = map[string]interface{}{} + i.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) i.AdditionalProperties[key] = aux } @@ -25933,7 +26014,7 @@ func (i *IntegrationRuntimeComputeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeConnectionInfo. func (i IntegrationRuntimeConnectionInfo) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "hostServiceUri", i.HostServiceURI) populate(objectMap, "identityCertThumbprint", i.IdentityCertThumbprint) populate(objectMap, "isIdentityCertExprired", i.IsIdentityCertExprired) @@ -25977,10 +26058,10 @@ func (i *IntegrationRuntimeConnectionInfo) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if i.AdditionalProperties == nil { - i.AdditionalProperties = map[string]interface{}{} + i.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) i.AdditionalProperties[key] = aux } @@ -25995,7 +26076,7 @@ func (i *IntegrationRuntimeConnectionInfo) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeCustomSetupScriptProperties. func (i IntegrationRuntimeCustomSetupScriptProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "blobContainerUri", i.BlobContainerURI) populate(objectMap, "sasToken", i.SasToken) return json.Marshal(objectMap) @@ -26026,7 +26107,7 @@ func (i *IntegrationRuntimeCustomSetupScriptProperties) UnmarshalJSON(data []byt // MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeCustomerVirtualNetwork. func (i IntegrationRuntimeCustomerVirtualNetwork) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "subnetId", i.SubnetID) return json.Marshal(objectMap) } @@ -26053,7 +26134,7 @@ func (i *IntegrationRuntimeCustomerVirtualNetwork) UnmarshalJSON(data []byte) er // MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeDataFlowProperties. func (i IntegrationRuntimeDataFlowProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "cleanup", i.Cleanup) populate(objectMap, "computeType", i.ComputeType) populate(objectMap, "coreCount", i.CoreCount) @@ -26089,10 +26170,10 @@ func (i *IntegrationRuntimeDataFlowProperties) UnmarshalJSON(data []byte) error delete(rawMsg, key) default: if i.AdditionalProperties == nil { - i.AdditionalProperties = map[string]interface{}{} + i.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) i.AdditionalProperties[key] = aux } @@ -26107,7 +26188,7 @@ func (i *IntegrationRuntimeDataFlowProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeDataProxyProperties. func (i IntegrationRuntimeDataProxyProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "connectVia", i.ConnectVia) populate(objectMap, "path", i.Path) populate(objectMap, "stagingLinkedService", i.StagingLinkedService) @@ -26142,7 +26223,7 @@ func (i *IntegrationRuntimeDataProxyProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeDebugResource. func (i IntegrationRuntimeDebugResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "name", i.Name) populate(objectMap, "properties", i.Properties) return json.Marshal(objectMap) @@ -26173,7 +26254,7 @@ func (i *IntegrationRuntimeDebugResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeListResponse. func (i IntegrationRuntimeListResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", i.NextLink) populate(objectMap, "value", i.Value) return json.Marshal(objectMap) @@ -26204,7 +26285,7 @@ func (i *IntegrationRuntimeListResponse) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeMonitoringData. func (i IntegrationRuntimeMonitoringData) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "name", i.Name) populate(objectMap, "nodes", i.Nodes) return json.Marshal(objectMap) @@ -26235,7 +26316,7 @@ func (i *IntegrationRuntimeMonitoringData) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeNodeIPAddress. func (i IntegrationRuntimeNodeIPAddress) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "ipAddress", i.IPAddress) return json.Marshal(objectMap) } @@ -26262,7 +26343,7 @@ func (i *IntegrationRuntimeNodeIPAddress) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeNodeMonitoringData. func (i IntegrationRuntimeNodeMonitoringData) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "availableMemoryInMB", i.AvailableMemoryInMB) populate(objectMap, "cpuUtilization", i.CPUUtilization) populate(objectMap, "concurrentJobsLimit", i.ConcurrentJobsLimit) @@ -26314,10 +26395,10 @@ func (i *IntegrationRuntimeNodeMonitoringData) UnmarshalJSON(data []byte) error delete(rawMsg, key) default: if i.AdditionalProperties == nil { - i.AdditionalProperties = map[string]interface{}{} + i.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) i.AdditionalProperties[key] = aux } @@ -26332,7 +26413,7 @@ func (i *IntegrationRuntimeNodeMonitoringData) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint. func (i IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "category", i.Category) populate(objectMap, "endpoints", i.Endpoints) return json.Marshal(objectMap) @@ -26363,7 +26444,7 @@ func (i *IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint) Unmarsha // MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeOutboundNetworkDependenciesEndpoint. func (i IntegrationRuntimeOutboundNetworkDependenciesEndpoint) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "domainName", i.DomainName) populate(objectMap, "endpointDetails", i.EndpointDetails) return json.Marshal(objectMap) @@ -26394,7 +26475,7 @@ func (i *IntegrationRuntimeOutboundNetworkDependenciesEndpoint) UnmarshalJSON(da // MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails. func (i IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "port", i.Port) return json.Marshal(objectMap) } @@ -26421,7 +26502,7 @@ func (i *IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails) Unmarshal // MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse. func (i IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "value", i.Value) return json.Marshal(objectMap) } @@ -26448,7 +26529,7 @@ func (i *IntegrationRuntimeOutboundNetworkDependenciesEndpointsResponse) Unmarsh // MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeReference. func (i IntegrationRuntimeReference) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "parameters", i.Parameters) populate(objectMap, "referenceName", i.ReferenceName) populate(objectMap, "type", i.Type) @@ -26483,7 +26564,7 @@ func (i *IntegrationRuntimeReference) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeRegenerateKeyParameters. func (i IntegrationRuntimeRegenerateKeyParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "keyName", i.KeyName) return json.Marshal(objectMap) } @@ -26510,7 +26591,7 @@ func (i *IntegrationRuntimeRegenerateKeyParameters) UnmarshalJSON(data []byte) e // MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeResource. func (i IntegrationRuntimeResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "etag", i.Etag) populate(objectMap, "id", i.ID) populate(objectMap, "name", i.Name) @@ -26553,7 +26634,7 @@ func (i *IntegrationRuntimeResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeSsisCatalogInfo. func (i IntegrationRuntimeSsisCatalogInfo) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "catalogAdminPassword", i.CatalogAdminPassword) populate(objectMap, "catalogAdminUserName", i.CatalogAdminUserName) populate(objectMap, "catalogPricingTier", i.CatalogPricingTier) @@ -26593,10 +26674,10 @@ func (i *IntegrationRuntimeSsisCatalogInfo) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if i.AdditionalProperties == nil { - i.AdditionalProperties = map[string]interface{}{} + i.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) i.AdditionalProperties[key] = aux } @@ -26611,7 +26692,7 @@ func (i *IntegrationRuntimeSsisCatalogInfo) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeSsisProperties. func (i IntegrationRuntimeSsisProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "catalogInfo", i.CatalogInfo) populate(objectMap, "credential", i.Credential) populate(objectMap, "customSetupScriptProperties", i.CustomSetupScriptProperties) @@ -26663,10 +26744,10 @@ func (i *IntegrationRuntimeSsisProperties) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if i.AdditionalProperties == nil { - i.AdditionalProperties = map[string]interface{}{} + i.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) i.AdditionalProperties[key] = aux } @@ -26681,7 +26762,7 @@ func (i *IntegrationRuntimeSsisProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeStatus. func (i IntegrationRuntimeStatus) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dataFactoryName", i.DataFactoryName) populate(objectMap, "state", i.State) objectMap["type"] = i.Type @@ -26713,10 +26794,10 @@ func (i *IntegrationRuntimeStatus) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if i.AdditionalProperties == nil { - i.AdditionalProperties = map[string]interface{}{} + i.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) i.AdditionalProperties[key] = aux } @@ -26731,7 +26812,7 @@ func (i *IntegrationRuntimeStatus) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeStatusResponse. func (i IntegrationRuntimeStatusResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "name", i.Name) populate(objectMap, "properties", i.Properties) return json.Marshal(objectMap) @@ -26762,7 +26843,7 @@ func (i *IntegrationRuntimeStatusResponse) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type IntegrationRuntimeVNetProperties. func (i IntegrationRuntimeVNetProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "publicIPs", i.PublicIPs) populate(objectMap, "subnet", i.Subnet) populate(objectMap, "subnetId", i.SubnetID) @@ -26798,10 +26879,10 @@ func (i *IntegrationRuntimeVNetProperties) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if i.AdditionalProperties == nil { - i.AdditionalProperties = map[string]interface{}{} + i.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) i.AdditionalProperties[key] = aux } @@ -26816,7 +26897,7 @@ func (i *IntegrationRuntimeVNetProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type JSONDataset. func (j JSONDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", j.Annotations) populate(objectMap, "description", j.Description) populate(objectMap, "folder", j.Folder) @@ -26872,10 +26953,10 @@ func (j *JSONDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if j.AdditionalProperties == nil { - j.AdditionalProperties = map[string]interface{}{} + j.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) j.AdditionalProperties[key] = aux } @@ -26890,7 +26971,7 @@ func (j *JSONDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type JSONDatasetTypeProperties. func (j JSONDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "compression", j.Compression) populate(objectMap, "encodingName", &j.EncodingName) populate(objectMap, "location", j.Location) @@ -26925,7 +27006,7 @@ func (j *JSONDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type JSONFormat. func (j JSONFormat) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "deserializer", &j.Deserializer) populate(objectMap, "encodingName", &j.EncodingName) populate(objectMap, "filePattern", &j.FilePattern) @@ -26977,10 +27058,10 @@ func (j *JSONFormat) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if j.AdditionalProperties == nil { - j.AdditionalProperties = map[string]interface{}{} + j.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) j.AdditionalProperties[key] = aux } @@ -26995,7 +27076,7 @@ func (j *JSONFormat) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type JSONReadSettings. func (j JSONReadSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "compressionProperties", j.CompressionProperties) objectMap["type"] = "JsonReadSettings" if j.AdditionalProperties != nil { @@ -27023,10 +27104,10 @@ func (j *JSONReadSettings) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if j.AdditionalProperties == nil { - j.AdditionalProperties = map[string]interface{}{} + j.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) j.AdditionalProperties[key] = aux } @@ -27041,7 +27122,7 @@ func (j *JSONReadSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type JSONSink. func (j JSONSink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "disableMetricsCollection", &j.DisableMetricsCollection) populate(objectMap, "formatSettings", j.FormatSettings) populate(objectMap, "maxConcurrentConnections", &j.MaxConcurrentConnections) @@ -27097,10 +27178,10 @@ func (j *JSONSink) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if j.AdditionalProperties == nil { - j.AdditionalProperties = map[string]interface{}{} + j.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) j.AdditionalProperties[key] = aux } @@ -27115,7 +27196,7 @@ func (j *JSONSink) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type JSONSource. func (j JSONSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &j.AdditionalColumns) populate(objectMap, "disableMetricsCollection", &j.DisableMetricsCollection) populate(objectMap, "formatSettings", j.FormatSettings) @@ -27167,10 +27248,10 @@ func (j *JSONSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if j.AdditionalProperties == nil { - j.AdditionalProperties = map[string]interface{}{} + j.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) j.AdditionalProperties[key] = aux } @@ -27185,7 +27266,7 @@ func (j *JSONSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type JSONWriteSettings. func (j JSONWriteSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "filePattern", &j.FilePattern) objectMap["type"] = "JsonWriteSettings" if j.AdditionalProperties != nil { @@ -27213,10 +27294,10 @@ func (j *JSONWriteSettings) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if j.AdditionalProperties == nil { - j.AdditionalProperties = map[string]interface{}{} + j.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) j.AdditionalProperties[key] = aux } @@ -27231,7 +27312,7 @@ func (j *JSONWriteSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type JiraLinkedService. func (j JiraLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", j.Annotations) populate(objectMap, "connectVia", j.ConnectVia) populate(objectMap, "description", j.Description) @@ -27275,10 +27356,10 @@ func (j *JiraLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if j.AdditionalProperties == nil { - j.AdditionalProperties = map[string]interface{}{} + j.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) j.AdditionalProperties[key] = aux } @@ -27293,7 +27374,7 @@ func (j *JiraLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type JiraLinkedServiceTypeProperties. func (j JiraLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "encryptedCredential", &j.EncryptedCredential) populate(objectMap, "host", &j.Host) populate(objectMap, "password", j.Password) @@ -27348,7 +27429,7 @@ func (j *JiraLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type JiraObjectDataset. func (j JiraObjectDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", j.Annotations) populate(objectMap, "description", j.Description) populate(objectMap, "folder", j.Folder) @@ -27404,10 +27485,10 @@ func (j *JiraObjectDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if j.AdditionalProperties == nil { - j.AdditionalProperties = map[string]interface{}{} + j.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) j.AdditionalProperties[key] = aux } @@ -27422,7 +27503,7 @@ func (j *JiraObjectDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type JiraSource. func (j JiraSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &j.AdditionalColumns) populate(objectMap, "disableMetricsCollection", &j.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &j.MaxConcurrentConnections) @@ -27474,10 +27555,10 @@ func (j *JiraSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if j.AdditionalProperties == nil { - j.AdditionalProperties = map[string]interface{}{} + j.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) j.AdditionalProperties[key] = aux } @@ -27492,7 +27573,7 @@ func (j *JiraSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type LicensedComponentSetupTypeProperties. func (l LicensedComponentSetupTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "componentName", l.ComponentName) populate(objectMap, "licenseKey", l.LicenseKey) return json.Marshal(objectMap) @@ -27523,7 +27604,7 @@ func (l *LicensedComponentSetupTypeProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type LinkedIntegrationRuntime. func (l LinkedIntegrationRuntime) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populateTimeRFC3339(objectMap, "createTime", l.CreateTime) populate(objectMap, "dataFactoryLocation", l.DataFactoryLocation) populate(objectMap, "dataFactoryName", l.DataFactoryName) @@ -27566,7 +27647,7 @@ func (l *LinkedIntegrationRuntime) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type LinkedIntegrationRuntimeKeyAuthorization. func (l LinkedIntegrationRuntimeKeyAuthorization) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) objectMap["authorizationType"] = "Key" populate(objectMap, "key", l.Key) return json.Marshal(objectMap) @@ -27597,7 +27678,7 @@ func (l *LinkedIntegrationRuntimeKeyAuthorization) UnmarshalJSON(data []byte) er // MarshalJSON implements the json.Marshaller interface for type LinkedIntegrationRuntimeRbacAuthorization. func (l LinkedIntegrationRuntimeRbacAuthorization) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) objectMap["authorizationType"] = "RBAC" populate(objectMap, "credential", l.Credential) populate(objectMap, "resourceId", l.ResourceID) @@ -27632,7 +27713,7 @@ func (l *LinkedIntegrationRuntimeRbacAuthorization) UnmarshalJSON(data []byte) e // MarshalJSON implements the json.Marshaller interface for type LinkedIntegrationRuntimeRequest. func (l LinkedIntegrationRuntimeRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "factoryName", l.LinkedFactoryName) return json.Marshal(objectMap) } @@ -27659,7 +27740,7 @@ func (l *LinkedIntegrationRuntimeRequest) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type LinkedIntegrationRuntimeType. func (l LinkedIntegrationRuntimeType) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) objectMap["authorizationType"] = l.AuthorizationType return json.Marshal(objectMap) } @@ -27686,7 +27767,7 @@ func (l *LinkedIntegrationRuntimeType) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type LinkedService. func (l LinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", l.Annotations) populate(objectMap, "connectVia", l.ConnectVia) populate(objectMap, "description", l.Description) @@ -27726,10 +27807,10 @@ func (l *LinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if l.AdditionalProperties == nil { - l.AdditionalProperties = map[string]interface{}{} + l.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) l.AdditionalProperties[key] = aux } @@ -27744,7 +27825,7 @@ func (l *LinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type LinkedServiceDebugResource. func (l LinkedServiceDebugResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "name", l.Name) populate(objectMap, "properties", l.Properties) return json.Marshal(objectMap) @@ -27775,7 +27856,7 @@ func (l *LinkedServiceDebugResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type LinkedServiceListResponse. func (l LinkedServiceListResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", l.NextLink) populate(objectMap, "value", l.Value) return json.Marshal(objectMap) @@ -27806,7 +27887,7 @@ func (l *LinkedServiceListResponse) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type LinkedServiceReference. func (l LinkedServiceReference) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "parameters", l.Parameters) populate(objectMap, "referenceName", l.ReferenceName) populate(objectMap, "type", l.Type) @@ -27841,7 +27922,7 @@ func (l *LinkedServiceReference) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type LinkedServiceResource. func (l LinkedServiceResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "etag", l.Etag) populate(objectMap, "id", l.ID) populate(objectMap, "name", l.Name) @@ -27884,7 +27965,7 @@ func (l *LinkedServiceResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type LogLocationSettings. func (l LogLocationSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "linkedServiceName", l.LinkedServiceName) populate(objectMap, "path", &l.Path) return json.Marshal(objectMap) @@ -27915,7 +27996,7 @@ func (l *LogLocationSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type LogSettings. func (l LogSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "copyActivityLogSettings", l.CopyActivityLogSettings) populate(objectMap, "enableCopyActivityLog", &l.EnableCopyActivityLog) populate(objectMap, "logLocationSettings", l.LogLocationSettings) @@ -27950,7 +28031,7 @@ func (l *LogSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type LogStorageSettings. func (l LogStorageSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "enableReliableLogging", &l.EnableReliableLogging) populate(objectMap, "linkedServiceName", l.LinkedServiceName) populate(objectMap, "logLevel", &l.LogLevel) @@ -27986,10 +28067,10 @@ func (l *LogStorageSettings) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if l.AdditionalProperties == nil { - l.AdditionalProperties = map[string]interface{}{} + l.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) l.AdditionalProperties[key] = aux } @@ -28004,7 +28085,7 @@ func (l *LogStorageSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type LookupActivity. func (l LookupActivity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", l.DependsOn) populate(objectMap, "description", l.Description) populate(objectMap, "linkedServiceName", l.LinkedServiceName) @@ -28056,10 +28137,10 @@ func (l *LookupActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if l.AdditionalProperties == nil { - l.AdditionalProperties = map[string]interface{}{} + l.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) l.AdditionalProperties[key] = aux } @@ -28074,7 +28155,7 @@ func (l *LookupActivity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type LookupActivityTypeProperties. func (l LookupActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dataset", l.Dataset) populate(objectMap, "firstRowOnly", &l.FirstRowOnly) populate(objectMap, "source", l.Source) @@ -28109,7 +28190,7 @@ func (l *LookupActivityTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MagentoLinkedService. func (m MagentoLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", m.Annotations) populate(objectMap, "connectVia", m.ConnectVia) populate(objectMap, "description", m.Description) @@ -28153,10 +28234,10 @@ func (m *MagentoLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if m.AdditionalProperties == nil { - m.AdditionalProperties = map[string]interface{}{} + m.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) m.AdditionalProperties[key] = aux } @@ -28171,7 +28252,7 @@ func (m *MagentoLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MagentoLinkedServiceTypeProperties. func (m MagentoLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "accessToken", m.AccessToken) populate(objectMap, "encryptedCredential", &m.EncryptedCredential) populate(objectMap, "host", &m.Host) @@ -28218,7 +28299,7 @@ func (m *MagentoLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MagentoObjectDataset. func (m MagentoObjectDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", m.Annotations) populate(objectMap, "description", m.Description) populate(objectMap, "folder", m.Folder) @@ -28274,10 +28355,10 @@ func (m *MagentoObjectDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if m.AdditionalProperties == nil { - m.AdditionalProperties = map[string]interface{}{} + m.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) m.AdditionalProperties[key] = aux } @@ -28292,7 +28373,7 @@ func (m *MagentoObjectDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MagentoSource. func (m MagentoSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &m.AdditionalColumns) populate(objectMap, "disableMetricsCollection", &m.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &m.MaxConcurrentConnections) @@ -28344,10 +28425,10 @@ func (m *MagentoSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if m.AdditionalProperties == nil { - m.AdditionalProperties = map[string]interface{}{} + m.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) m.AdditionalProperties[key] = aux } @@ -28360,9 +28441,133 @@ func (m *MagentoSource) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type ManagedIdentityCredential. +func (m ManagedIdentityCredential) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "annotations", m.Annotations) + populate(objectMap, "description", m.Description) + objectMap["type"] = "ManagedIdentity" + populate(objectMap, "typeProperties", m.TypeProperties) + if m.AdditionalProperties != nil { + for key, val := range m.AdditionalProperties { + objectMap[key] = val + } + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ManagedIdentityCredential. +func (m *ManagedIdentityCredential) 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 "annotations": + err = unpopulate(val, "Annotations", &m.Annotations) + delete(rawMsg, key) + case "description": + err = unpopulate(val, "Description", &m.Description) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &m.Type) + delete(rawMsg, key) + case "typeProperties": + err = unpopulate(val, "TypeProperties", &m.TypeProperties) + delete(rawMsg, key) + default: + if m.AdditionalProperties == nil { + m.AdditionalProperties = map[string]any{} + } + if val != nil { + var aux any + err = json.Unmarshal(val, &aux) + m.AdditionalProperties[key] = aux + } + 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 ManagedIdentityCredentialResource. +func (m ManagedIdentityCredentialResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "etag", m.Etag) + populate(objectMap, "id", m.ID) + populate(objectMap, "name", m.Name) + populate(objectMap, "properties", m.Properties) + populate(objectMap, "type", m.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ManagedIdentityCredentialResource. +func (m *ManagedIdentityCredentialResource) 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 "etag": + err = unpopulate(val, "Etag", &m.Etag) + delete(rawMsg, key) + case "id": + err = unpopulate(val, "ID", &m.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &m.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &m.Properties) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &m.Type) + 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 ManagedIdentityTypeProperties. +func (m ManagedIdentityTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "resourceId", m.ResourceID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ManagedIdentityTypeProperties. +func (m *ManagedIdentityTypeProperties) 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 "resourceId": + err = unpopulate(val, "ResourceID", &m.ResourceID) + 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 ManagedIntegrationRuntime. func (m ManagedIntegrationRuntime) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "description", m.Description) populate(objectMap, "managedVirtualNetwork", m.ManagedVirtualNetwork) populate(objectMap, "state", m.State) @@ -28402,10 +28607,10 @@ func (m *ManagedIntegrationRuntime) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if m.AdditionalProperties == nil { - m.AdditionalProperties = map[string]interface{}{} + m.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) m.AdditionalProperties[key] = aux } @@ -28420,7 +28625,7 @@ func (m *ManagedIntegrationRuntime) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ManagedIntegrationRuntimeError. func (m ManagedIntegrationRuntimeError) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "code", m.Code) populate(objectMap, "message", m.Message) populate(objectMap, "parameters", m.Parameters) @@ -28456,10 +28661,10 @@ func (m *ManagedIntegrationRuntimeError) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if m.AdditionalProperties == nil { - m.AdditionalProperties = map[string]interface{}{} + m.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) m.AdditionalProperties[key] = aux } @@ -28474,7 +28679,7 @@ func (m *ManagedIntegrationRuntimeError) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ManagedIntegrationRuntimeNode. func (m ManagedIntegrationRuntimeNode) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "errors", m.Errors) populate(objectMap, "nodeId", m.NodeID) populate(objectMap, "status", m.Status) @@ -28506,10 +28711,10 @@ func (m *ManagedIntegrationRuntimeNode) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if m.AdditionalProperties == nil { - m.AdditionalProperties = map[string]interface{}{} + m.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) m.AdditionalProperties[key] = aux } @@ -28524,7 +28729,7 @@ func (m *ManagedIntegrationRuntimeNode) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ManagedIntegrationRuntimeOperationResult. func (m ManagedIntegrationRuntimeOperationResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "activityId", m.ActivityID) populate(objectMap, "errorCode", m.ErrorCode) populate(objectMap, "parameters", m.Parameters) @@ -28568,10 +28773,10 @@ func (m *ManagedIntegrationRuntimeOperationResult) UnmarshalJSON(data []byte) er delete(rawMsg, key) default: if m.AdditionalProperties == nil { - m.AdditionalProperties = map[string]interface{}{} + m.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) m.AdditionalProperties[key] = aux } @@ -28586,7 +28791,7 @@ func (m *ManagedIntegrationRuntimeOperationResult) UnmarshalJSON(data []byte) er // MarshalJSON implements the json.Marshaller interface for type ManagedIntegrationRuntimeStatus. func (m ManagedIntegrationRuntimeStatus) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dataFactoryName", m.DataFactoryName) populate(objectMap, "state", m.State) objectMap["type"] = IntegrationRuntimeTypeManaged @@ -28622,10 +28827,10 @@ func (m *ManagedIntegrationRuntimeStatus) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if m.AdditionalProperties == nil { - m.AdditionalProperties = map[string]interface{}{} + m.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) m.AdditionalProperties[key] = aux } @@ -28640,7 +28845,7 @@ func (m *ManagedIntegrationRuntimeStatus) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ManagedIntegrationRuntimeStatusTypeProperties. func (m ManagedIntegrationRuntimeStatusTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populateTimeRFC3339(objectMap, "createTime", m.CreateTime) populate(objectMap, "lastOperation", m.LastOperation) populate(objectMap, "nodes", m.Nodes) @@ -28679,7 +28884,7 @@ func (m *ManagedIntegrationRuntimeStatusTypeProperties) UnmarshalJSON(data []byt // MarshalJSON implements the json.Marshaller interface for type ManagedIntegrationRuntimeTypeProperties. func (m ManagedIntegrationRuntimeTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "computeProperties", m.ComputeProperties) populate(objectMap, "customerVirtualNetwork", m.CustomerVirtualNetwork) populate(objectMap, "ssisProperties", m.SsisProperties) @@ -28714,7 +28919,7 @@ func (m *ManagedIntegrationRuntimeTypeProperties) UnmarshalJSON(data []byte) err // MarshalJSON implements the json.Marshaller interface for type ManagedPrivateEndpoint. func (m ManagedPrivateEndpoint) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "connectionState", m.ConnectionState) populate(objectMap, "fqdns", m.Fqdns) populate(objectMap, "groupId", m.GroupID) @@ -28758,10 +28963,10 @@ func (m *ManagedPrivateEndpoint) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if m.AdditionalProperties == nil { - m.AdditionalProperties = map[string]interface{}{} + m.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) m.AdditionalProperties[key] = aux } @@ -28776,7 +28981,7 @@ func (m *ManagedPrivateEndpoint) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ManagedPrivateEndpointListResponse. func (m ManagedPrivateEndpointListResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", m.NextLink) populate(objectMap, "value", m.Value) return json.Marshal(objectMap) @@ -28807,7 +29012,7 @@ func (m *ManagedPrivateEndpointListResponse) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ManagedPrivateEndpointResource. func (m ManagedPrivateEndpointResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "etag", m.Etag) populate(objectMap, "id", m.ID) populate(objectMap, "name", m.Name) @@ -28850,7 +29055,7 @@ func (m *ManagedPrivateEndpointResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ManagedVirtualNetwork. func (m ManagedVirtualNetwork) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "alias", m.Alias) populate(objectMap, "vNetId", m.VNetID) if m.AdditionalProperties != nil { @@ -28878,10 +29083,10 @@ func (m *ManagedVirtualNetwork) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if m.AdditionalProperties == nil { - m.AdditionalProperties = map[string]interface{}{} + m.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) m.AdditionalProperties[key] = aux } @@ -28896,7 +29101,7 @@ func (m *ManagedVirtualNetwork) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ManagedVirtualNetworkListResponse. func (m ManagedVirtualNetworkListResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", m.NextLink) populate(objectMap, "value", m.Value) return json.Marshal(objectMap) @@ -28927,7 +29132,7 @@ func (m *ManagedVirtualNetworkListResponse) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ManagedVirtualNetworkReference. func (m ManagedVirtualNetworkReference) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "referenceName", m.ReferenceName) populate(objectMap, "type", m.Type) return json.Marshal(objectMap) @@ -28958,7 +29163,7 @@ func (m *ManagedVirtualNetworkReference) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ManagedVirtualNetworkResource. func (m ManagedVirtualNetworkResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "etag", m.Etag) populate(objectMap, "id", m.ID) populate(objectMap, "name", m.Name) @@ -29001,7 +29206,7 @@ func (m *ManagedVirtualNetworkResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MappingDataFlow. func (m MappingDataFlow) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", m.Annotations) populate(objectMap, "description", m.Description) populate(objectMap, "folder", m.Folder) @@ -29044,7 +29249,7 @@ func (m *MappingDataFlow) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MappingDataFlowTypeProperties. func (m MappingDataFlowTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "script", m.Script) populate(objectMap, "scriptLines", m.ScriptLines) populate(objectMap, "sinks", m.Sinks) @@ -29087,7 +29292,7 @@ func (m *MappingDataFlowTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MariaDBLinkedService. func (m MariaDBLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", m.Annotations) populate(objectMap, "connectVia", m.ConnectVia) populate(objectMap, "description", m.Description) @@ -29131,10 +29336,10 @@ func (m *MariaDBLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if m.AdditionalProperties == nil { - m.AdditionalProperties = map[string]interface{}{} + m.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) m.AdditionalProperties[key] = aux } @@ -29149,7 +29354,7 @@ func (m *MariaDBLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MariaDBLinkedServiceTypeProperties. func (m MariaDBLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "connectionString", &m.ConnectionString) populate(objectMap, "encryptedCredential", &m.EncryptedCredential) populate(objectMap, "pwd", m.Pwd) @@ -29184,7 +29389,7 @@ func (m *MariaDBLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MariaDBSource. func (m MariaDBSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &m.AdditionalColumns) populate(objectMap, "disableMetricsCollection", &m.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &m.MaxConcurrentConnections) @@ -29236,10 +29441,10 @@ func (m *MariaDBSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if m.AdditionalProperties == nil { - m.AdditionalProperties = map[string]interface{}{} + m.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) m.AdditionalProperties[key] = aux } @@ -29254,7 +29459,7 @@ func (m *MariaDBSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MariaDBTableDataset. func (m MariaDBTableDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", m.Annotations) populate(objectMap, "description", m.Description) populate(objectMap, "folder", m.Folder) @@ -29310,10 +29515,10 @@ func (m *MariaDBTableDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if m.AdditionalProperties == nil { - m.AdditionalProperties = map[string]interface{}{} + m.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) m.AdditionalProperties[key] = aux } @@ -29328,7 +29533,7 @@ func (m *MariaDBTableDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MarketoLinkedService. func (m MarketoLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", m.Annotations) populate(objectMap, "connectVia", m.ConnectVia) populate(objectMap, "description", m.Description) @@ -29372,10 +29577,10 @@ func (m *MarketoLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if m.AdditionalProperties == nil { - m.AdditionalProperties = map[string]interface{}{} + m.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) m.AdditionalProperties[key] = aux } @@ -29390,7 +29595,7 @@ func (m *MarketoLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MarketoLinkedServiceTypeProperties. func (m MarketoLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "clientId", &m.ClientID) populate(objectMap, "clientSecret", m.ClientSecret) populate(objectMap, "encryptedCredential", &m.EncryptedCredential) @@ -29441,7 +29646,7 @@ func (m *MarketoLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MarketoObjectDataset. func (m MarketoObjectDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", m.Annotations) populate(objectMap, "description", m.Description) populate(objectMap, "folder", m.Folder) @@ -29497,10 +29702,10 @@ func (m *MarketoObjectDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if m.AdditionalProperties == nil { - m.AdditionalProperties = map[string]interface{}{} + m.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) m.AdditionalProperties[key] = aux } @@ -29515,7 +29720,7 @@ func (m *MarketoObjectDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MarketoSource. func (m MarketoSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &m.AdditionalColumns) populate(objectMap, "disableMetricsCollection", &m.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &m.MaxConcurrentConnections) @@ -29567,10 +29772,10 @@ func (m *MarketoSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if m.AdditionalProperties == nil { - m.AdditionalProperties = map[string]interface{}{} + m.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) m.AdditionalProperties[key] = aux } @@ -29585,7 +29790,7 @@ func (m *MarketoSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MetadataItem. func (m MetadataItem) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "name", &m.Name) populate(objectMap, "value", &m.Value) return json.Marshal(objectMap) @@ -29616,7 +29821,7 @@ func (m *MetadataItem) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MicrosoftAccessLinkedService. func (m MicrosoftAccessLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", m.Annotations) populate(objectMap, "connectVia", m.ConnectVia) populate(objectMap, "description", m.Description) @@ -29660,10 +29865,10 @@ func (m *MicrosoftAccessLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if m.AdditionalProperties == nil { - m.AdditionalProperties = map[string]interface{}{} + m.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) m.AdditionalProperties[key] = aux } @@ -29678,7 +29883,7 @@ func (m *MicrosoftAccessLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MicrosoftAccessLinkedServiceTypeProperties. func (m MicrosoftAccessLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "authenticationType", &m.AuthenticationType) populate(objectMap, "connectionString", &m.ConnectionString) populate(objectMap, "credential", m.Credential) @@ -29725,7 +29930,7 @@ func (m *MicrosoftAccessLinkedServiceTypeProperties) UnmarshalJSON(data []byte) // MarshalJSON implements the json.Marshaller interface for type MicrosoftAccessSink. func (m MicrosoftAccessSink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "disableMetricsCollection", &m.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &m.MaxConcurrentConnections) populate(objectMap, "preCopyScript", &m.PreCopyScript) @@ -29777,10 +29982,10 @@ func (m *MicrosoftAccessSink) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if m.AdditionalProperties == nil { - m.AdditionalProperties = map[string]interface{}{} + m.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) m.AdditionalProperties[key] = aux } @@ -29795,7 +30000,7 @@ func (m *MicrosoftAccessSink) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MicrosoftAccessSource. func (m MicrosoftAccessSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &m.AdditionalColumns) populate(objectMap, "disableMetricsCollection", &m.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &m.MaxConcurrentConnections) @@ -29843,10 +30048,10 @@ func (m *MicrosoftAccessSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if m.AdditionalProperties == nil { - m.AdditionalProperties = map[string]interface{}{} + m.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) m.AdditionalProperties[key] = aux } @@ -29861,7 +30066,7 @@ func (m *MicrosoftAccessSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MicrosoftAccessTableDataset. func (m MicrosoftAccessTableDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", m.Annotations) populate(objectMap, "description", m.Description) populate(objectMap, "folder", m.Folder) @@ -29917,10 +30122,10 @@ func (m *MicrosoftAccessTableDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if m.AdditionalProperties == nil { - m.AdditionalProperties = map[string]interface{}{} + m.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) m.AdditionalProperties[key] = aux } @@ -29935,7 +30140,7 @@ func (m *MicrosoftAccessTableDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MicrosoftAccessTableDatasetTypeProperties. func (m MicrosoftAccessTableDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "tableName", &m.TableName) return json.Marshal(objectMap) } @@ -29962,7 +30167,7 @@ func (m *MicrosoftAccessTableDatasetTypeProperties) UnmarshalJSON(data []byte) e // MarshalJSON implements the json.Marshaller interface for type MongoDbAtlasCollectionDataset. func (m MongoDbAtlasCollectionDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", m.Annotations) populate(objectMap, "description", m.Description) populate(objectMap, "folder", m.Folder) @@ -30018,10 +30223,10 @@ func (m *MongoDbAtlasCollectionDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if m.AdditionalProperties == nil { - m.AdditionalProperties = map[string]interface{}{} + m.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) m.AdditionalProperties[key] = aux } @@ -30036,7 +30241,7 @@ func (m *MongoDbAtlasCollectionDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MongoDbAtlasCollectionDatasetTypeProperties. func (m MongoDbAtlasCollectionDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "collection", &m.Collection) return json.Marshal(objectMap) } @@ -30063,7 +30268,7 @@ func (m *MongoDbAtlasCollectionDatasetTypeProperties) UnmarshalJSON(data []byte) // MarshalJSON implements the json.Marshaller interface for type MongoDbAtlasLinkedService. func (m MongoDbAtlasLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", m.Annotations) populate(objectMap, "connectVia", m.ConnectVia) populate(objectMap, "description", m.Description) @@ -30107,10 +30312,10 @@ func (m *MongoDbAtlasLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if m.AdditionalProperties == nil { - m.AdditionalProperties = map[string]interface{}{} + m.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) m.AdditionalProperties[key] = aux } @@ -30125,7 +30330,7 @@ func (m *MongoDbAtlasLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MongoDbAtlasLinkedServiceTypeProperties. func (m MongoDbAtlasLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "connectionString", &m.ConnectionString) populate(objectMap, "database", &m.Database) return json.Marshal(objectMap) @@ -30156,7 +30361,7 @@ func (m *MongoDbAtlasLinkedServiceTypeProperties) UnmarshalJSON(data []byte) err // MarshalJSON implements the json.Marshaller interface for type MongoDbAtlasSink. func (m MongoDbAtlasSink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "disableMetricsCollection", &m.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &m.MaxConcurrentConnections) populate(objectMap, "sinkRetryCount", &m.SinkRetryCount) @@ -30208,10 +30413,10 @@ func (m *MongoDbAtlasSink) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if m.AdditionalProperties == nil { - m.AdditionalProperties = map[string]interface{}{} + m.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) m.AdditionalProperties[key] = aux } @@ -30226,7 +30431,7 @@ func (m *MongoDbAtlasSink) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MongoDbAtlasSource. func (m MongoDbAtlasSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &m.AdditionalColumns) populate(objectMap, "batchSize", &m.BatchSize) populate(objectMap, "cursorMethods", m.CursorMethods) @@ -30286,10 +30491,10 @@ func (m *MongoDbAtlasSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if m.AdditionalProperties == nil { - m.AdditionalProperties = map[string]interface{}{} + m.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) m.AdditionalProperties[key] = aux } @@ -30304,7 +30509,7 @@ func (m *MongoDbAtlasSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MongoDbCollectionDataset. func (m MongoDbCollectionDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", m.Annotations) populate(objectMap, "description", m.Description) populate(objectMap, "folder", m.Folder) @@ -30360,10 +30565,10 @@ func (m *MongoDbCollectionDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if m.AdditionalProperties == nil { - m.AdditionalProperties = map[string]interface{}{} + m.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) m.AdditionalProperties[key] = aux } @@ -30378,7 +30583,7 @@ func (m *MongoDbCollectionDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MongoDbCollectionDatasetTypeProperties. func (m MongoDbCollectionDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "collectionName", &m.CollectionName) return json.Marshal(objectMap) } @@ -30405,7 +30610,7 @@ func (m *MongoDbCollectionDatasetTypeProperties) UnmarshalJSON(data []byte) erro // MarshalJSON implements the json.Marshaller interface for type MongoDbCursorMethodsProperties. func (m MongoDbCursorMethodsProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "limit", &m.Limit) populate(objectMap, "project", &m.Project) populate(objectMap, "skip", &m.Skip) @@ -30441,10 +30646,10 @@ func (m *MongoDbCursorMethodsProperties) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if m.AdditionalProperties == nil { - m.AdditionalProperties = map[string]interface{}{} + m.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) m.AdditionalProperties[key] = aux } @@ -30459,7 +30664,7 @@ func (m *MongoDbCursorMethodsProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MongoDbLinkedService. func (m MongoDbLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", m.Annotations) populate(objectMap, "connectVia", m.ConnectVia) populate(objectMap, "description", m.Description) @@ -30503,10 +30708,10 @@ func (m *MongoDbLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if m.AdditionalProperties == nil { - m.AdditionalProperties = map[string]interface{}{} + m.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) m.AdditionalProperties[key] = aux } @@ -30521,7 +30726,7 @@ func (m *MongoDbLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MongoDbLinkedServiceTypeProperties. func (m MongoDbLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "allowSelfSignedServerCert", &m.AllowSelfSignedServerCert) populate(objectMap, "authSource", &m.AuthSource) populate(objectMap, "authenticationType", m.AuthenticationType) @@ -30584,7 +30789,7 @@ func (m *MongoDbLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MongoDbSource. func (m MongoDbSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &m.AdditionalColumns) populate(objectMap, "disableMetricsCollection", &m.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &m.MaxConcurrentConnections) @@ -30632,10 +30837,10 @@ func (m *MongoDbSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if m.AdditionalProperties == nil { - m.AdditionalProperties = map[string]interface{}{} + m.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) m.AdditionalProperties[key] = aux } @@ -30650,7 +30855,7 @@ func (m *MongoDbSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MongoDbV2CollectionDataset. func (m MongoDbV2CollectionDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", m.Annotations) populate(objectMap, "description", m.Description) populate(objectMap, "folder", m.Folder) @@ -30706,10 +30911,10 @@ func (m *MongoDbV2CollectionDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if m.AdditionalProperties == nil { - m.AdditionalProperties = map[string]interface{}{} + m.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) m.AdditionalProperties[key] = aux } @@ -30724,7 +30929,7 @@ func (m *MongoDbV2CollectionDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MongoDbV2CollectionDatasetTypeProperties. func (m MongoDbV2CollectionDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "collection", &m.Collection) return json.Marshal(objectMap) } @@ -30751,7 +30956,7 @@ func (m *MongoDbV2CollectionDatasetTypeProperties) UnmarshalJSON(data []byte) er // MarshalJSON implements the json.Marshaller interface for type MongoDbV2LinkedService. func (m MongoDbV2LinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", m.Annotations) populate(objectMap, "connectVia", m.ConnectVia) populate(objectMap, "description", m.Description) @@ -30795,10 +31000,10 @@ func (m *MongoDbV2LinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if m.AdditionalProperties == nil { - m.AdditionalProperties = map[string]interface{}{} + m.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) m.AdditionalProperties[key] = aux } @@ -30813,7 +31018,7 @@ func (m *MongoDbV2LinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MongoDbV2LinkedServiceTypeProperties. func (m MongoDbV2LinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "connectionString", &m.ConnectionString) populate(objectMap, "database", &m.Database) return json.Marshal(objectMap) @@ -30844,7 +31049,7 @@ func (m *MongoDbV2LinkedServiceTypeProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type MongoDbV2Sink. func (m MongoDbV2Sink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "disableMetricsCollection", &m.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &m.MaxConcurrentConnections) populate(objectMap, "sinkRetryCount", &m.SinkRetryCount) @@ -30896,10 +31101,10 @@ func (m *MongoDbV2Sink) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if m.AdditionalProperties == nil { - m.AdditionalProperties = map[string]interface{}{} + m.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) m.AdditionalProperties[key] = aux } @@ -30914,7 +31119,7 @@ func (m *MongoDbV2Sink) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MongoDbV2Source. func (m MongoDbV2Source) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &m.AdditionalColumns) populate(objectMap, "batchSize", &m.BatchSize) populate(objectMap, "cursorMethods", m.CursorMethods) @@ -30974,10 +31179,10 @@ func (m *MongoDbV2Source) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if m.AdditionalProperties == nil { - m.AdditionalProperties = map[string]interface{}{} + m.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) m.AdditionalProperties[key] = aux } @@ -30992,7 +31197,7 @@ func (m *MongoDbV2Source) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MultiplePipelineTrigger. func (m MultiplePipelineTrigger) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", m.Annotations) populate(objectMap, "description", m.Description) populate(objectMap, "pipelines", m.Pipelines) @@ -31032,10 +31237,10 @@ func (m *MultiplePipelineTrigger) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if m.AdditionalProperties == nil { - m.AdditionalProperties = map[string]interface{}{} + m.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) m.AdditionalProperties[key] = aux } @@ -31050,7 +31255,7 @@ func (m *MultiplePipelineTrigger) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MySQLLinkedService. func (m MySQLLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", m.Annotations) populate(objectMap, "connectVia", m.ConnectVia) populate(objectMap, "description", m.Description) @@ -31094,10 +31299,10 @@ func (m *MySQLLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if m.AdditionalProperties == nil { - m.AdditionalProperties = map[string]interface{}{} + m.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) m.AdditionalProperties[key] = aux } @@ -31112,7 +31317,7 @@ func (m *MySQLLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MySQLLinkedServiceTypeProperties. func (m MySQLLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "connectionString", &m.ConnectionString) populate(objectMap, "encryptedCredential", &m.EncryptedCredential) populate(objectMap, "password", m.Password) @@ -31147,7 +31352,7 @@ func (m *MySQLLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MySQLSource. func (m MySQLSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &m.AdditionalColumns) populate(objectMap, "disableMetricsCollection", &m.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &m.MaxConcurrentConnections) @@ -31199,10 +31404,10 @@ func (m *MySQLSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if m.AdditionalProperties == nil { - m.AdditionalProperties = map[string]interface{}{} + m.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) m.AdditionalProperties[key] = aux } @@ -31217,7 +31422,7 @@ func (m *MySQLSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MySQLTableDataset. func (m MySQLTableDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", m.Annotations) populate(objectMap, "description", m.Description) populate(objectMap, "folder", m.Folder) @@ -31273,10 +31478,10 @@ func (m *MySQLTableDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if m.AdditionalProperties == nil { - m.AdditionalProperties = map[string]interface{}{} + m.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) m.AdditionalProperties[key] = aux } @@ -31291,7 +31496,7 @@ func (m *MySQLTableDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MySQLTableDatasetTypeProperties. func (m MySQLTableDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "tableName", &m.TableName) return json.Marshal(objectMap) } @@ -31318,7 +31523,7 @@ func (m *MySQLTableDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type NetezzaLinkedService. func (n NetezzaLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", n.Annotations) populate(objectMap, "connectVia", n.ConnectVia) populate(objectMap, "description", n.Description) @@ -31362,10 +31567,10 @@ func (n *NetezzaLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if n.AdditionalProperties == nil { - n.AdditionalProperties = map[string]interface{}{} + n.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) n.AdditionalProperties[key] = aux } @@ -31380,7 +31585,7 @@ func (n *NetezzaLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type NetezzaLinkedServiceTypeProperties. func (n NetezzaLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "connectionString", &n.ConnectionString) populate(objectMap, "encryptedCredential", &n.EncryptedCredential) populate(objectMap, "pwd", n.Pwd) @@ -31415,7 +31620,7 @@ func (n *NetezzaLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type NetezzaPartitionSettings. func (n NetezzaPartitionSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "partitionColumnName", &n.PartitionColumnName) populate(objectMap, "partitionLowerBound", &n.PartitionLowerBound) populate(objectMap, "partitionUpperBound", &n.PartitionUpperBound) @@ -31450,7 +31655,7 @@ func (n *NetezzaPartitionSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type NetezzaSource. func (n NetezzaSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &n.AdditionalColumns) populate(objectMap, "disableMetricsCollection", &n.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &n.MaxConcurrentConnections) @@ -31510,10 +31715,10 @@ func (n *NetezzaSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if n.AdditionalProperties == nil { - n.AdditionalProperties = map[string]interface{}{} + n.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) n.AdditionalProperties[key] = aux } @@ -31528,7 +31733,7 @@ func (n *NetezzaSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type NetezzaTableDataset. func (n NetezzaTableDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", n.Annotations) populate(objectMap, "description", n.Description) populate(objectMap, "folder", n.Folder) @@ -31584,10 +31789,10 @@ func (n *NetezzaTableDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if n.AdditionalProperties == nil { - n.AdditionalProperties = map[string]interface{}{} + n.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) n.AdditionalProperties[key] = aux } @@ -31602,7 +31807,7 @@ func (n *NetezzaTableDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type NetezzaTableDatasetTypeProperties. func (n NetezzaTableDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "schema", &n.Schema) populate(objectMap, "table", &n.Table) populate(objectMap, "tableName", &n.TableName) @@ -31637,7 +31842,7 @@ func (n *NetezzaTableDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type NotebookParameter. func (n NotebookParameter) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "type", n.Type) populate(objectMap, "value", &n.Value) return json.Marshal(objectMap) @@ -31668,7 +31873,7 @@ func (n *NotebookParameter) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ODataLinkedService. func (o ODataLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", o.Annotations) populate(objectMap, "connectVia", o.ConnectVia) populate(objectMap, "description", o.Description) @@ -31712,10 +31917,10 @@ func (o *ODataLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if o.AdditionalProperties == nil { - o.AdditionalProperties = map[string]interface{}{} + o.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) o.AdditionalProperties[key] = aux } @@ -31730,7 +31935,7 @@ func (o *ODataLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ODataLinkedServiceTypeProperties. func (o ODataLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "aadResourceId", &o.AADResourceID) populate(objectMap, "aadServicePrincipalCredentialType", o.AADServicePrincipalCredentialType) populate(objectMap, "authHeaders", &o.AuthHeaders) @@ -31809,7 +32014,7 @@ func (o *ODataLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ODataResourceDataset. func (o ODataResourceDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", o.Annotations) populate(objectMap, "description", o.Description) populate(objectMap, "folder", o.Folder) @@ -31865,10 +32070,10 @@ func (o *ODataResourceDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if o.AdditionalProperties == nil { - o.AdditionalProperties = map[string]interface{}{} + o.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) o.AdditionalProperties[key] = aux } @@ -31883,7 +32088,7 @@ func (o *ODataResourceDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ODataResourceDatasetTypeProperties. func (o ODataResourceDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "path", &o.Path) return json.Marshal(objectMap) } @@ -31910,7 +32115,7 @@ func (o *ODataResourceDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ODataSource. func (o ODataSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &o.AdditionalColumns) populate(objectMap, "disableMetricsCollection", &o.DisableMetricsCollection) populate(objectMap, "httpRequestTimeout", &o.HTTPRequestTimeout) @@ -31962,10 +32167,10 @@ func (o *ODataSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if o.AdditionalProperties == nil { - o.AdditionalProperties = map[string]interface{}{} + o.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) o.AdditionalProperties[key] = aux } @@ -31980,7 +32185,7 @@ func (o *ODataSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OdbcLinkedService. func (o OdbcLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", o.Annotations) populate(objectMap, "connectVia", o.ConnectVia) populate(objectMap, "description", o.Description) @@ -32024,10 +32229,10 @@ func (o *OdbcLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if o.AdditionalProperties == nil { - o.AdditionalProperties = map[string]interface{}{} + o.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) o.AdditionalProperties[key] = aux } @@ -32042,7 +32247,7 @@ func (o *OdbcLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OdbcLinkedServiceTypeProperties. func (o OdbcLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "authenticationType", &o.AuthenticationType) populate(objectMap, "connectionString", &o.ConnectionString) populate(objectMap, "credential", o.Credential) @@ -32089,7 +32294,7 @@ func (o *OdbcLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OdbcSink. func (o OdbcSink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "disableMetricsCollection", &o.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &o.MaxConcurrentConnections) populate(objectMap, "preCopyScript", &o.PreCopyScript) @@ -32141,10 +32346,10 @@ func (o *OdbcSink) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if o.AdditionalProperties == nil { - o.AdditionalProperties = map[string]interface{}{} + o.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) o.AdditionalProperties[key] = aux } @@ -32159,7 +32364,7 @@ func (o *OdbcSink) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OdbcSource. func (o OdbcSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &o.AdditionalColumns) populate(objectMap, "disableMetricsCollection", &o.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &o.MaxConcurrentConnections) @@ -32211,10 +32416,10 @@ func (o *OdbcSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if o.AdditionalProperties == nil { - o.AdditionalProperties = map[string]interface{}{} + o.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) o.AdditionalProperties[key] = aux } @@ -32229,7 +32434,7 @@ func (o *OdbcSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OdbcTableDataset. func (o OdbcTableDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", o.Annotations) populate(objectMap, "description", o.Description) populate(objectMap, "folder", o.Folder) @@ -32285,10 +32490,10 @@ func (o *OdbcTableDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if o.AdditionalProperties == nil { - o.AdditionalProperties = map[string]interface{}{} + o.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) o.AdditionalProperties[key] = aux } @@ -32303,7 +32508,7 @@ func (o *OdbcTableDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OdbcTableDatasetTypeProperties. func (o OdbcTableDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "tableName", &o.TableName) return json.Marshal(objectMap) } @@ -32330,7 +32535,7 @@ func (o *OdbcTableDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Office365Dataset. func (o Office365Dataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", o.Annotations) populate(objectMap, "description", o.Description) populate(objectMap, "folder", o.Folder) @@ -32386,10 +32591,10 @@ func (o *Office365Dataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if o.AdditionalProperties == nil { - o.AdditionalProperties = map[string]interface{}{} + o.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) o.AdditionalProperties[key] = aux } @@ -32404,7 +32609,7 @@ func (o *Office365Dataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Office365DatasetTypeProperties. func (o Office365DatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "predicate", &o.Predicate) populate(objectMap, "tableName", &o.TableName) return json.Marshal(objectMap) @@ -32435,7 +32640,7 @@ func (o *Office365DatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Office365LinkedService. func (o Office365LinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", o.Annotations) populate(objectMap, "connectVia", o.ConnectVia) populate(objectMap, "description", o.Description) @@ -32479,10 +32684,10 @@ func (o *Office365LinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if o.AdditionalProperties == nil { - o.AdditionalProperties = map[string]interface{}{} + o.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) o.AdditionalProperties[key] = aux } @@ -32497,7 +32702,7 @@ func (o *Office365LinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Office365LinkedServiceTypeProperties. func (o Office365LinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "encryptedCredential", &o.EncryptedCredential) populate(objectMap, "office365TenantId", &o.Office365TenantID) populate(objectMap, "servicePrincipalId", &o.ServicePrincipalID) @@ -32540,7 +32745,7 @@ func (o *Office365LinkedServiceTypeProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type Office365Source. func (o Office365Source) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "allowedGroups", &o.AllowedGroups) populate(objectMap, "dateFilterColumn", &o.DateFilterColumn) populate(objectMap, "disableMetricsCollection", &o.DisableMetricsCollection) @@ -32604,10 +32809,10 @@ func (o *Office365Source) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if o.AdditionalProperties == nil { - o.AdditionalProperties = map[string]interface{}{} + o.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) o.AdditionalProperties[key] = aux } @@ -32622,7 +32827,7 @@ func (o *Office365Source) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Operation. func (o Operation) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "display", o.Display) populate(objectMap, "name", o.Name) populate(objectMap, "origin", o.Origin) @@ -32661,7 +32866,7 @@ func (o *Operation) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OperationDisplay. func (o OperationDisplay) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "description", o.Description) populate(objectMap, "operation", o.Operation) populate(objectMap, "provider", o.Provider) @@ -32700,7 +32905,7 @@ func (o *OperationDisplay) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OperationListResponse. func (o OperationListResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", o.NextLink) populate(objectMap, "value", o.Value) return json.Marshal(objectMap) @@ -32731,7 +32936,7 @@ func (o *OperationListResponse) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OperationLogSpecification. func (o OperationLogSpecification) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "blobDuration", o.BlobDuration) populate(objectMap, "displayName", o.DisplayName) populate(objectMap, "name", o.Name) @@ -32766,7 +32971,7 @@ func (o *OperationLogSpecification) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OperationMetricAvailability. func (o OperationMetricAvailability) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "blobDuration", o.BlobDuration) populate(objectMap, "timeGrain", o.TimeGrain) return json.Marshal(objectMap) @@ -32797,7 +33002,7 @@ func (o *OperationMetricAvailability) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OperationMetricDimension. func (o OperationMetricDimension) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "displayName", o.DisplayName) populate(objectMap, "name", o.Name) populate(objectMap, "toBeExportedForShoebox", o.ToBeExportedForShoebox) @@ -32832,7 +33037,7 @@ func (o *OperationMetricDimension) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OperationMetricSpecification. func (o OperationMetricSpecification) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "aggregationType", o.AggregationType) populate(objectMap, "availabilities", o.Availabilities) populate(objectMap, "dimensions", o.Dimensions) @@ -32895,7 +33100,7 @@ func (o *OperationMetricSpecification) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OperationProperties. func (o OperationProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "serviceSpecification", o.ServiceSpecification) return json.Marshal(objectMap) } @@ -32922,7 +33127,7 @@ func (o *OperationProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OperationServiceSpecification. func (o OperationServiceSpecification) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "logSpecifications", o.LogSpecifications) populate(objectMap, "metricSpecifications", o.MetricSpecifications) return json.Marshal(objectMap) @@ -32953,7 +33158,7 @@ func (o *OperationServiceSpecification) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OracleCloudStorageLinkedService. func (o OracleCloudStorageLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", o.Annotations) populate(objectMap, "connectVia", o.ConnectVia) populate(objectMap, "description", o.Description) @@ -32997,10 +33202,10 @@ func (o *OracleCloudStorageLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if o.AdditionalProperties == nil { - o.AdditionalProperties = map[string]interface{}{} + o.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) o.AdditionalProperties[key] = aux } @@ -33015,7 +33220,7 @@ func (o *OracleCloudStorageLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OracleCloudStorageLinkedServiceTypeProperties. func (o OracleCloudStorageLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "accessKeyId", &o.AccessKeyID) populate(objectMap, "encryptedCredential", &o.EncryptedCredential) populate(objectMap, "secretAccessKey", o.SecretAccessKey) @@ -33054,7 +33259,7 @@ func (o *OracleCloudStorageLinkedServiceTypeProperties) UnmarshalJSON(data []byt // MarshalJSON implements the json.Marshaller interface for type OracleCloudStorageLocation. func (o OracleCloudStorageLocation) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "bucketName", &o.BucketName) populate(objectMap, "fileName", &o.FileName) populate(objectMap, "folderPath", &o.FolderPath) @@ -33094,10 +33299,10 @@ func (o *OracleCloudStorageLocation) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if o.AdditionalProperties == nil { - o.AdditionalProperties = map[string]interface{}{} + o.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) o.AdditionalProperties[key] = aux } @@ -33112,7 +33317,7 @@ func (o *OracleCloudStorageLocation) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OracleCloudStorageReadSettings. func (o OracleCloudStorageReadSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "deleteFilesAfterCompletion", &o.DeleteFilesAfterCompletion) populate(objectMap, "disableMetricsCollection", &o.DisableMetricsCollection) populate(objectMap, "enablePartitionDiscovery", o.EnablePartitionDiscovery) @@ -33184,10 +33389,10 @@ func (o *OracleCloudStorageReadSettings) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if o.AdditionalProperties == nil { - o.AdditionalProperties = map[string]interface{}{} + o.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) o.AdditionalProperties[key] = aux } @@ -33202,7 +33407,7 @@ func (o *OracleCloudStorageReadSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OracleLinkedService. func (o OracleLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", o.Annotations) populate(objectMap, "connectVia", o.ConnectVia) populate(objectMap, "description", o.Description) @@ -33246,10 +33451,10 @@ func (o *OracleLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if o.AdditionalProperties == nil { - o.AdditionalProperties = map[string]interface{}{} + o.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) o.AdditionalProperties[key] = aux } @@ -33264,7 +33469,7 @@ func (o *OracleLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OracleLinkedServiceTypeProperties. func (o OracleLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "connectionString", &o.ConnectionString) populate(objectMap, "encryptedCredential", &o.EncryptedCredential) populate(objectMap, "password", o.Password) @@ -33299,7 +33504,7 @@ func (o *OracleLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OraclePartitionSettings. func (o OraclePartitionSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "partitionColumnName", &o.PartitionColumnName) populate(objectMap, "partitionLowerBound", &o.PartitionLowerBound) populate(objectMap, "partitionNames", &o.PartitionNames) @@ -33338,7 +33543,7 @@ func (o *OraclePartitionSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OracleServiceCloudLinkedService. func (o OracleServiceCloudLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", o.Annotations) populate(objectMap, "connectVia", o.ConnectVia) populate(objectMap, "description", o.Description) @@ -33382,10 +33587,10 @@ func (o *OracleServiceCloudLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if o.AdditionalProperties == nil { - o.AdditionalProperties = map[string]interface{}{} + o.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) o.AdditionalProperties[key] = aux } @@ -33400,7 +33605,7 @@ func (o *OracleServiceCloudLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OracleServiceCloudLinkedServiceTypeProperties. func (o OracleServiceCloudLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "encryptedCredential", &o.EncryptedCredential) populate(objectMap, "host", &o.Host) populate(objectMap, "password", o.Password) @@ -33451,7 +33656,7 @@ func (o *OracleServiceCloudLinkedServiceTypeProperties) UnmarshalJSON(data []byt // MarshalJSON implements the json.Marshaller interface for type OracleServiceCloudObjectDataset. func (o OracleServiceCloudObjectDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", o.Annotations) populate(objectMap, "description", o.Description) populate(objectMap, "folder", o.Folder) @@ -33507,10 +33712,10 @@ func (o *OracleServiceCloudObjectDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if o.AdditionalProperties == nil { - o.AdditionalProperties = map[string]interface{}{} + o.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) o.AdditionalProperties[key] = aux } @@ -33525,7 +33730,7 @@ func (o *OracleServiceCloudObjectDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OracleServiceCloudSource. func (o OracleServiceCloudSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &o.AdditionalColumns) populate(objectMap, "disableMetricsCollection", &o.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &o.MaxConcurrentConnections) @@ -33577,10 +33782,10 @@ func (o *OracleServiceCloudSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if o.AdditionalProperties == nil { - o.AdditionalProperties = map[string]interface{}{} + o.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) o.AdditionalProperties[key] = aux } @@ -33595,7 +33800,7 @@ func (o *OracleServiceCloudSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OracleSink. func (o OracleSink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "disableMetricsCollection", &o.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &o.MaxConcurrentConnections) populate(objectMap, "preCopyScript", &o.PreCopyScript) @@ -33647,10 +33852,10 @@ func (o *OracleSink) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if o.AdditionalProperties == nil { - o.AdditionalProperties = map[string]interface{}{} + o.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) o.AdditionalProperties[key] = aux } @@ -33665,7 +33870,7 @@ func (o *OracleSink) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OracleSource. func (o OracleSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &o.AdditionalColumns) populate(objectMap, "disableMetricsCollection", &o.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &o.MaxConcurrentConnections) @@ -33725,10 +33930,10 @@ func (o *OracleSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if o.AdditionalProperties == nil { - o.AdditionalProperties = map[string]interface{}{} + o.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) o.AdditionalProperties[key] = aux } @@ -33743,7 +33948,7 @@ func (o *OracleSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OracleTableDataset. func (o OracleTableDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", o.Annotations) populate(objectMap, "description", o.Description) populate(objectMap, "folder", o.Folder) @@ -33799,10 +34004,10 @@ func (o *OracleTableDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if o.AdditionalProperties == nil { - o.AdditionalProperties = map[string]interface{}{} + o.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) o.AdditionalProperties[key] = aux } @@ -33817,7 +34022,7 @@ func (o *OracleTableDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OracleTableDatasetTypeProperties. func (o OracleTableDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "schema", &o.Schema) populate(objectMap, "table", &o.Table) populate(objectMap, "tableName", &o.TableName) @@ -33852,7 +34057,7 @@ func (o *OracleTableDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OrcDataset. func (o OrcDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", o.Annotations) populate(objectMap, "description", o.Description) populate(objectMap, "folder", o.Folder) @@ -33908,10 +34113,10 @@ func (o *OrcDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if o.AdditionalProperties == nil { - o.AdditionalProperties = map[string]interface{}{} + o.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) o.AdditionalProperties[key] = aux } @@ -33926,7 +34131,7 @@ func (o *OrcDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OrcDatasetTypeProperties. func (o OrcDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "location", o.Location) populate(objectMap, "orcCompressionCodec", &o.OrcCompressionCodec) return json.Marshal(objectMap) @@ -33957,7 +34162,7 @@ func (o *OrcDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OrcFormat. func (o OrcFormat) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "deserializer", &o.Deserializer) populate(objectMap, "serializer", &o.Serializer) objectMap["type"] = "OrcFormat" @@ -33989,10 +34194,10 @@ func (o *OrcFormat) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if o.AdditionalProperties == nil { - o.AdditionalProperties = map[string]interface{}{} + o.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) o.AdditionalProperties[key] = aux } @@ -34007,7 +34212,7 @@ func (o *OrcFormat) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OrcSink. func (o OrcSink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "disableMetricsCollection", &o.DisableMetricsCollection) populate(objectMap, "formatSettings", o.FormatSettings) populate(objectMap, "maxConcurrentConnections", &o.MaxConcurrentConnections) @@ -34063,10 +34268,10 @@ func (o *OrcSink) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if o.AdditionalProperties == nil { - o.AdditionalProperties = map[string]interface{}{} + o.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) o.AdditionalProperties[key] = aux } @@ -34081,7 +34286,7 @@ func (o *OrcSink) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OrcSource. func (o OrcSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &o.AdditionalColumns) populate(objectMap, "disableMetricsCollection", &o.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &o.MaxConcurrentConnections) @@ -34129,10 +34334,10 @@ func (o *OrcSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if o.AdditionalProperties == nil { - o.AdditionalProperties = map[string]interface{}{} + o.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) o.AdditionalProperties[key] = aux } @@ -34147,7 +34352,7 @@ func (o *OrcSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type OrcWriteSettings. func (o OrcWriteSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "fileNamePrefix", &o.FileNamePrefix) populate(objectMap, "maxRowsPerFile", &o.MaxRowsPerFile) objectMap["type"] = "OrcWriteSettings" @@ -34179,10 +34384,10 @@ func (o *OrcWriteSettings) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if o.AdditionalProperties == nil { - o.AdditionalProperties = map[string]interface{}{} + o.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) o.AdditionalProperties[key] = aux } @@ -34197,7 +34402,7 @@ func (o *OrcWriteSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PackageStore. func (p PackageStore) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "name", p.Name) populate(objectMap, "packageStoreLinkedService", p.PackageStoreLinkedService) return json.Marshal(objectMap) @@ -34228,7 +34433,7 @@ func (p *PackageStore) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ParameterSpecification. func (p ParameterSpecification) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "defaultValue", &p.DefaultValue) populate(objectMap, "type", p.Type) return json.Marshal(objectMap) @@ -34259,7 +34464,7 @@ func (p *ParameterSpecification) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ParquetDataset. func (p ParquetDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", p.Annotations) populate(objectMap, "description", p.Description) populate(objectMap, "folder", p.Folder) @@ -34315,10 +34520,10 @@ func (p *ParquetDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if p.AdditionalProperties == nil { - p.AdditionalProperties = map[string]interface{}{} + p.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) p.AdditionalProperties[key] = aux } @@ -34333,7 +34538,7 @@ func (p *ParquetDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ParquetDatasetTypeProperties. func (p ParquetDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "compressionCodec", &p.CompressionCodec) populate(objectMap, "location", p.Location) return json.Marshal(objectMap) @@ -34364,7 +34569,7 @@ func (p *ParquetDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ParquetFormat. func (p ParquetFormat) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "deserializer", &p.Deserializer) populate(objectMap, "serializer", &p.Serializer) objectMap["type"] = "ParquetFormat" @@ -34396,10 +34601,10 @@ func (p *ParquetFormat) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if p.AdditionalProperties == nil { - p.AdditionalProperties = map[string]interface{}{} + p.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) p.AdditionalProperties[key] = aux } @@ -34414,7 +34619,7 @@ func (p *ParquetFormat) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ParquetSink. func (p ParquetSink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "disableMetricsCollection", &p.DisableMetricsCollection) populate(objectMap, "formatSettings", p.FormatSettings) populate(objectMap, "maxConcurrentConnections", &p.MaxConcurrentConnections) @@ -34470,10 +34675,10 @@ func (p *ParquetSink) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if p.AdditionalProperties == nil { - p.AdditionalProperties = map[string]interface{}{} + p.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) p.AdditionalProperties[key] = aux } @@ -34488,7 +34693,7 @@ func (p *ParquetSink) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ParquetSource. func (p ParquetSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &p.AdditionalColumns) populate(objectMap, "disableMetricsCollection", &p.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &p.MaxConcurrentConnections) @@ -34536,10 +34741,10 @@ func (p *ParquetSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if p.AdditionalProperties == nil { - p.AdditionalProperties = map[string]interface{}{} + p.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) p.AdditionalProperties[key] = aux } @@ -34554,7 +34759,7 @@ func (p *ParquetSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ParquetWriteSettings. func (p ParquetWriteSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "fileNamePrefix", &p.FileNamePrefix) populate(objectMap, "maxRowsPerFile", &p.MaxRowsPerFile) objectMap["type"] = "ParquetWriteSettings" @@ -34586,10 +34791,10 @@ func (p *ParquetWriteSettings) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if p.AdditionalProperties == nil { - p.AdditionalProperties = map[string]interface{}{} + p.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) p.AdditionalProperties[key] = aux } @@ -34604,7 +34809,7 @@ func (p *ParquetWriteSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PaypalLinkedService. func (p PaypalLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", p.Annotations) populate(objectMap, "connectVia", p.ConnectVia) populate(objectMap, "description", p.Description) @@ -34648,10 +34853,10 @@ func (p *PaypalLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if p.AdditionalProperties == nil { - p.AdditionalProperties = map[string]interface{}{} + p.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) p.AdditionalProperties[key] = aux } @@ -34666,7 +34871,7 @@ func (p *PaypalLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PaypalLinkedServiceTypeProperties. func (p PaypalLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "clientId", &p.ClientID) populate(objectMap, "clientSecret", p.ClientSecret) populate(objectMap, "encryptedCredential", &p.EncryptedCredential) @@ -34717,7 +34922,7 @@ func (p *PaypalLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PaypalObjectDataset. func (p PaypalObjectDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", p.Annotations) populate(objectMap, "description", p.Description) populate(objectMap, "folder", p.Folder) @@ -34773,10 +34978,10 @@ func (p *PaypalObjectDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if p.AdditionalProperties == nil { - p.AdditionalProperties = map[string]interface{}{} + p.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) p.AdditionalProperties[key] = aux } @@ -34791,7 +34996,7 @@ func (p *PaypalObjectDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PaypalSource. func (p PaypalSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &p.AdditionalColumns) populate(objectMap, "disableMetricsCollection", &p.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &p.MaxConcurrentConnections) @@ -34843,10 +35048,10 @@ func (p *PaypalSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if p.AdditionalProperties == nil { - p.AdditionalProperties = map[string]interface{}{} + p.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) p.AdditionalProperties[key] = aux } @@ -34861,7 +35066,7 @@ func (p *PaypalSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PhoenixDatasetTypeProperties. func (p PhoenixDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "schema", &p.Schema) populate(objectMap, "table", &p.Table) populate(objectMap, "tableName", &p.TableName) @@ -34896,7 +35101,7 @@ func (p *PhoenixDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PhoenixLinkedService. func (p PhoenixLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", p.Annotations) populate(objectMap, "connectVia", p.ConnectVia) populate(objectMap, "description", p.Description) @@ -34940,10 +35145,10 @@ func (p *PhoenixLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if p.AdditionalProperties == nil { - p.AdditionalProperties = map[string]interface{}{} + p.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) p.AdditionalProperties[key] = aux } @@ -34958,7 +35163,7 @@ func (p *PhoenixLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PhoenixLinkedServiceTypeProperties. func (p PhoenixLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "allowHostNameCNMismatch", &p.AllowHostNameCNMismatch) populate(objectMap, "allowSelfSignedServerCert", &p.AllowSelfSignedServerCert) populate(objectMap, "authenticationType", p.AuthenticationType) @@ -35029,7 +35234,7 @@ func (p *PhoenixLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PhoenixObjectDataset. func (p PhoenixObjectDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", p.Annotations) populate(objectMap, "description", p.Description) populate(objectMap, "folder", p.Folder) @@ -35085,10 +35290,10 @@ func (p *PhoenixObjectDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if p.AdditionalProperties == nil { - p.AdditionalProperties = map[string]interface{}{} + p.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) p.AdditionalProperties[key] = aux } @@ -35103,7 +35308,7 @@ func (p *PhoenixObjectDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PhoenixSource. func (p PhoenixSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &p.AdditionalColumns) populate(objectMap, "disableMetricsCollection", &p.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &p.MaxConcurrentConnections) @@ -35155,10 +35360,10 @@ func (p *PhoenixSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if p.AdditionalProperties == nil { - p.AdditionalProperties = map[string]interface{}{} + p.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) p.AdditionalProperties[key] = aux } @@ -35173,7 +35378,7 @@ func (p *PhoenixSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Pipeline. func (p Pipeline) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "activities", p.Activities) populate(objectMap, "annotations", p.Annotations) populate(objectMap, "concurrency", p.Concurrency) @@ -35232,7 +35437,7 @@ func (p *Pipeline) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PipelineElapsedTimeMetricPolicy. func (p PipelineElapsedTimeMetricPolicy) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "duration", &p.Duration) return json.Marshal(objectMap) } @@ -35259,7 +35464,7 @@ func (p *PipelineElapsedTimeMetricPolicy) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PipelineFolder. func (p PipelineFolder) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "name", p.Name) return json.Marshal(objectMap) } @@ -35286,7 +35491,7 @@ func (p *PipelineFolder) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PipelineListResponse. func (p PipelineListResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", p.NextLink) populate(objectMap, "value", p.Value) return json.Marshal(objectMap) @@ -35317,7 +35522,7 @@ func (p *PipelineListResponse) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PipelinePolicy. func (p PipelinePolicy) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "elapsedTimeMetric", p.ElapsedTimeMetric) return json.Marshal(objectMap) } @@ -35344,7 +35549,7 @@ func (p *PipelinePolicy) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PipelineReference. func (p PipelineReference) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "name", p.Name) populate(objectMap, "referenceName", p.ReferenceName) populate(objectMap, "type", p.Type) @@ -35379,7 +35584,7 @@ func (p *PipelineReference) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PipelineResource. func (p PipelineResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "etag", p.Etag) populate(objectMap, "id", p.ID) populate(objectMap, "name", p.Name) @@ -35419,10 +35624,10 @@ func (p *PipelineResource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if p.AdditionalProperties == nil { - p.AdditionalProperties = map[string]interface{}{} + p.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) p.AdditionalProperties[key] = aux } @@ -35437,7 +35642,7 @@ func (p *PipelineResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PipelineRun. func (p PipelineRun) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "durationInMs", p.DurationInMs) populate(objectMap, "invokedBy", p.InvokedBy) populate(objectMap, "isLatest", p.IsLatest) @@ -35509,10 +35714,10 @@ func (p *PipelineRun) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if p.AdditionalProperties == nil { - p.AdditionalProperties = map[string]interface{}{} + p.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) p.AdditionalProperties[key] = aux } @@ -35527,7 +35732,7 @@ func (p *PipelineRun) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PipelineRunInvokedBy. func (p PipelineRunInvokedBy) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", p.ID) populate(objectMap, "invokedByType", p.InvokedByType) populate(objectMap, "name", p.Name) @@ -35570,7 +35775,7 @@ func (p *PipelineRunInvokedBy) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PipelineRunsQueryResponse. func (p PipelineRunsQueryResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "continuationToken", p.ContinuationToken) populate(objectMap, "value", p.Value) return json.Marshal(objectMap) @@ -35601,7 +35806,7 @@ func (p *PipelineRunsQueryResponse) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PolybaseSettings. func (p PolybaseSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "rejectSampleValue", &p.RejectSampleValue) populate(objectMap, "rejectType", p.RejectType) populate(objectMap, "rejectValue", &p.RejectValue) @@ -35637,10 +35842,10 @@ func (p *PolybaseSettings) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if p.AdditionalProperties == nil { - p.AdditionalProperties = map[string]interface{}{} + p.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) p.AdditionalProperties[key] = aux } @@ -35655,7 +35860,7 @@ func (p *PolybaseSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PostgreSQLLinkedService. func (p PostgreSQLLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", p.Annotations) populate(objectMap, "connectVia", p.ConnectVia) populate(objectMap, "description", p.Description) @@ -35699,10 +35904,10 @@ func (p *PostgreSQLLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if p.AdditionalProperties == nil { - p.AdditionalProperties = map[string]interface{}{} + p.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) p.AdditionalProperties[key] = aux } @@ -35717,7 +35922,7 @@ func (p *PostgreSQLLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PostgreSQLLinkedServiceTypeProperties. func (p PostgreSQLLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "connectionString", &p.ConnectionString) populate(objectMap, "encryptedCredential", &p.EncryptedCredential) populate(objectMap, "password", p.Password) @@ -35752,7 +35957,7 @@ func (p *PostgreSQLLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type PostgreSQLSource. func (p PostgreSQLSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &p.AdditionalColumns) populate(objectMap, "disableMetricsCollection", &p.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &p.MaxConcurrentConnections) @@ -35804,10 +36009,10 @@ func (p *PostgreSQLSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if p.AdditionalProperties == nil { - p.AdditionalProperties = map[string]interface{}{} + p.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) p.AdditionalProperties[key] = aux } @@ -35822,7 +36027,7 @@ func (p *PostgreSQLSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PostgreSQLTableDataset. func (p PostgreSQLTableDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", p.Annotations) populate(objectMap, "description", p.Description) populate(objectMap, "folder", p.Folder) @@ -35878,10 +36083,10 @@ func (p *PostgreSQLTableDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if p.AdditionalProperties == nil { - p.AdditionalProperties = map[string]interface{}{} + p.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) p.AdditionalProperties[key] = aux } @@ -35896,7 +36101,7 @@ func (p *PostgreSQLTableDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PostgreSQLTableDatasetTypeProperties. func (p PostgreSQLTableDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "schema", &p.Schema) populate(objectMap, "table", &p.Table) populate(objectMap, "tableName", &p.TableName) @@ -35931,7 +36136,7 @@ func (p *PostgreSQLTableDatasetTypeProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type PowerQuerySink. func (p PowerQuerySink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dataset", p.Dataset) populate(objectMap, "description", p.Description) populate(objectMap, "flowlet", p.Flowlet) @@ -35986,7 +36191,7 @@ func (p *PowerQuerySink) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PowerQuerySinkMapping. func (p PowerQuerySinkMapping) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dataflowSinks", p.DataflowSinks) populate(objectMap, "queryName", p.QueryName) return json.Marshal(objectMap) @@ -36017,7 +36222,7 @@ func (p *PowerQuerySinkMapping) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PowerQuerySource. func (p PowerQuerySource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dataset", p.Dataset) populate(objectMap, "description", p.Description) populate(objectMap, "flowlet", p.Flowlet) @@ -36068,7 +36273,7 @@ func (p *PowerQuerySource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PowerQueryTypeProperties. func (p PowerQueryTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "documentLocale", p.DocumentLocale) populate(objectMap, "script", p.Script) populate(objectMap, "sources", p.Sources) @@ -36103,7 +36308,7 @@ func (p *PowerQueryTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PrestoDatasetTypeProperties. func (p PrestoDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "schema", &p.Schema) populate(objectMap, "table", &p.Table) populate(objectMap, "tableName", &p.TableName) @@ -36138,7 +36343,7 @@ func (p *PrestoDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PrestoLinkedService. func (p PrestoLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", p.Annotations) populate(objectMap, "connectVia", p.ConnectVia) populate(objectMap, "description", p.Description) @@ -36182,10 +36387,10 @@ func (p *PrestoLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if p.AdditionalProperties == nil { - p.AdditionalProperties = map[string]interface{}{} + p.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) p.AdditionalProperties[key] = aux } @@ -36200,7 +36405,7 @@ func (p *PrestoLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PrestoLinkedServiceTypeProperties. func (p PrestoLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "allowHostNameCNMismatch", &p.AllowHostNameCNMismatch) populate(objectMap, "allowSelfSignedServerCert", &p.AllowSelfSignedServerCert) populate(objectMap, "authenticationType", p.AuthenticationType) @@ -36279,7 +36484,7 @@ func (p *PrestoLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PrestoObjectDataset. func (p PrestoObjectDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", p.Annotations) populate(objectMap, "description", p.Description) populate(objectMap, "folder", p.Folder) @@ -36335,10 +36540,10 @@ func (p *PrestoObjectDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if p.AdditionalProperties == nil { - p.AdditionalProperties = map[string]interface{}{} + p.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) p.AdditionalProperties[key] = aux } @@ -36353,7 +36558,7 @@ func (p *PrestoObjectDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PrestoSource. func (p PrestoSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &p.AdditionalColumns) populate(objectMap, "disableMetricsCollection", &p.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &p.MaxConcurrentConnections) @@ -36405,10 +36610,10 @@ func (p *PrestoSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if p.AdditionalProperties == nil { - p.AdditionalProperties = map[string]interface{}{} + p.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) p.AdditionalProperties[key] = aux } @@ -36423,7 +36628,7 @@ func (p *PrestoSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PrivateEndpoint. func (p PrivateEndpoint) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", p.ID) return json.Marshal(objectMap) } @@ -36450,7 +36655,7 @@ func (p *PrivateEndpoint) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PrivateEndpointConnectionListResponse. func (p PrivateEndpointConnectionListResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", p.NextLink) populate(objectMap, "value", p.Value) return json.Marshal(objectMap) @@ -36481,7 +36686,7 @@ func (p *PrivateEndpointConnectionListResponse) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type PrivateEndpointConnectionResource. func (p PrivateEndpointConnectionResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "etag", p.Etag) populate(objectMap, "id", p.ID) populate(objectMap, "name", p.Name) @@ -36524,7 +36729,7 @@ func (p *PrivateEndpointConnectionResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PrivateLinkConnectionApprovalRequest. func (p PrivateLinkConnectionApprovalRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "privateEndpoint", p.PrivateEndpoint) populate(objectMap, "privateLinkServiceConnectionState", p.PrivateLinkServiceConnectionState) return json.Marshal(objectMap) @@ -36555,7 +36760,7 @@ func (p *PrivateLinkConnectionApprovalRequest) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type PrivateLinkConnectionApprovalRequestResource. func (p PrivateLinkConnectionApprovalRequestResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "etag", p.Etag) populate(objectMap, "id", p.ID) populate(objectMap, "name", p.Name) @@ -36598,7 +36803,7 @@ func (p *PrivateLinkConnectionApprovalRequestResource) UnmarshalJSON(data []byte // MarshalJSON implements the json.Marshaller interface for type PrivateLinkConnectionState. func (p PrivateLinkConnectionState) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "actionsRequired", p.ActionsRequired) populate(objectMap, "description", p.Description) populate(objectMap, "status", p.Status) @@ -36633,7 +36838,7 @@ func (p *PrivateLinkConnectionState) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PrivateLinkResource. func (p PrivateLinkResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "etag", p.Etag) populate(objectMap, "id", p.ID) populate(objectMap, "name", p.Name) @@ -36676,7 +36881,7 @@ func (p *PrivateLinkResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PrivateLinkResourceProperties. func (p PrivateLinkResourceProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "groupId", p.GroupID) populate(objectMap, "requiredMembers", p.RequiredMembers) populate(objectMap, "requiredZoneNames", p.RequiredZoneNames) @@ -36711,7 +36916,7 @@ func (p *PrivateLinkResourceProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PrivateLinkResourcesWrapper. func (p PrivateLinkResourcesWrapper) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "value", p.Value) return json.Marshal(objectMap) } @@ -36738,7 +36943,7 @@ func (p *PrivateLinkResourcesWrapper) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PurviewConfiguration. func (p PurviewConfiguration) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "purviewResourceId", p.PurviewResourceID) return json.Marshal(objectMap) } @@ -36765,7 +36970,7 @@ func (p *PurviewConfiguration) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type QueryDataFlowDebugSessionsResponse. func (q QueryDataFlowDebugSessionsResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", q.NextLink) populate(objectMap, "value", q.Value) return json.Marshal(objectMap) @@ -36796,7 +37001,7 @@ func (q *QueryDataFlowDebugSessionsResponse) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type QuickBooksLinkedService. func (q QuickBooksLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", q.Annotations) populate(objectMap, "connectVia", q.ConnectVia) populate(objectMap, "description", q.Description) @@ -36840,10 +37045,10 @@ func (q *QuickBooksLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if q.AdditionalProperties == nil { - q.AdditionalProperties = map[string]interface{}{} + q.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) q.AdditionalProperties[key] = aux } @@ -36858,7 +37063,7 @@ func (q *QuickBooksLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type QuickBooksLinkedServiceTypeProperties. func (q QuickBooksLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "accessToken", q.AccessToken) populate(objectMap, "accessTokenSecret", q.AccessTokenSecret) populate(objectMap, "companyId", &q.CompanyID) @@ -36917,7 +37122,7 @@ func (q *QuickBooksLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type QuickBooksObjectDataset. func (q QuickBooksObjectDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", q.Annotations) populate(objectMap, "description", q.Description) populate(objectMap, "folder", q.Folder) @@ -36973,10 +37178,10 @@ func (q *QuickBooksObjectDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if q.AdditionalProperties == nil { - q.AdditionalProperties = map[string]interface{}{} + q.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) q.AdditionalProperties[key] = aux } @@ -36991,7 +37196,7 @@ func (q *QuickBooksObjectDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type QuickBooksSource. func (q QuickBooksSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &q.AdditionalColumns) populate(objectMap, "disableMetricsCollection", &q.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &q.MaxConcurrentConnections) @@ -37043,10 +37248,10 @@ func (q *QuickBooksSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if q.AdditionalProperties == nil { - q.AdditionalProperties = map[string]interface{}{} + q.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) q.AdditionalProperties[key] = aux } @@ -37061,7 +37266,7 @@ func (q *QuickBooksSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type QuickbaseLinkedService. func (q QuickbaseLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", q.Annotations) populate(objectMap, "connectVia", q.ConnectVia) populate(objectMap, "description", q.Description) @@ -37105,10 +37310,10 @@ func (q *QuickbaseLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if q.AdditionalProperties == nil { - q.AdditionalProperties = map[string]interface{}{} + q.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) q.AdditionalProperties[key] = aux } @@ -37123,7 +37328,7 @@ func (q *QuickbaseLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type QuickbaseLinkedServiceTypeProperties. func (q QuickbaseLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "encryptedCredential", &q.EncryptedCredential) populate(objectMap, "url", &q.URL) populate(objectMap, "userToken", q.UserToken) @@ -37158,7 +37363,7 @@ func (q *QuickbaseLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type RecurrenceSchedule. func (r RecurrenceSchedule) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "hours", r.Hours) populate(objectMap, "minutes", r.Minutes) populate(objectMap, "monthDays", r.MonthDays) @@ -37198,10 +37403,10 @@ func (r *RecurrenceSchedule) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if r.AdditionalProperties == nil { - r.AdditionalProperties = map[string]interface{}{} + r.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) r.AdditionalProperties[key] = aux } @@ -37216,7 +37421,7 @@ func (r *RecurrenceSchedule) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RecurrenceScheduleOccurrence. func (r RecurrenceScheduleOccurrence) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "day", r.Day) populate(objectMap, "occurrence", r.Occurrence) if r.AdditionalProperties != nil { @@ -37244,10 +37449,10 @@ func (r *RecurrenceScheduleOccurrence) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if r.AdditionalProperties == nil { - r.AdditionalProperties = map[string]interface{}{} + r.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) r.AdditionalProperties[key] = aux } @@ -37262,7 +37467,7 @@ func (r *RecurrenceScheduleOccurrence) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RedirectIncompatibleRowSettings. func (r RedirectIncompatibleRowSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "linkedServiceName", &r.LinkedServiceName) populate(objectMap, "path", &r.Path) if r.AdditionalProperties != nil { @@ -37290,10 +37495,10 @@ func (r *RedirectIncompatibleRowSettings) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if r.AdditionalProperties == nil { - r.AdditionalProperties = map[string]interface{}{} + r.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) r.AdditionalProperties[key] = aux } @@ -37308,7 +37513,7 @@ func (r *RedirectIncompatibleRowSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RedshiftUnloadSettings. func (r RedshiftUnloadSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "bucketName", &r.BucketName) populate(objectMap, "s3LinkedServiceName", r.S3LinkedServiceName) return json.Marshal(objectMap) @@ -37339,7 +37544,7 @@ func (r *RedshiftUnloadSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RelationalSource. func (r RelationalSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &r.AdditionalColumns) populate(objectMap, "disableMetricsCollection", &r.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &r.MaxConcurrentConnections) @@ -37387,10 +37592,10 @@ func (r *RelationalSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if r.AdditionalProperties == nil { - r.AdditionalProperties = map[string]interface{}{} + r.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) r.AdditionalProperties[key] = aux } @@ -37405,7 +37610,7 @@ func (r *RelationalSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RelationalTableDataset. func (r RelationalTableDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", r.Annotations) populate(objectMap, "description", r.Description) populate(objectMap, "folder", r.Folder) @@ -37461,10 +37666,10 @@ func (r *RelationalTableDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if r.AdditionalProperties == nil { - r.AdditionalProperties = map[string]interface{}{} + r.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) r.AdditionalProperties[key] = aux } @@ -37479,7 +37684,7 @@ func (r *RelationalTableDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RelationalTableDatasetTypeProperties. func (r RelationalTableDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "tableName", &r.TableName) return json.Marshal(objectMap) } @@ -37506,7 +37711,7 @@ func (r *RelationalTableDatasetTypeProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type RemotePrivateEndpointConnection. func (r RemotePrivateEndpointConnection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "privateEndpoint", r.PrivateEndpoint) populate(objectMap, "privateLinkServiceConnectionState", r.PrivateLinkServiceConnectionState) populate(objectMap, "provisioningState", r.ProvisioningState) @@ -37541,7 +37746,7 @@ func (r *RemotePrivateEndpointConnection) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RerunTumblingWindowTrigger. func (r RerunTumblingWindowTrigger) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", r.Annotations) populate(objectMap, "description", r.Description) populate(objectMap, "runtimeState", r.RuntimeState) @@ -37581,10 +37786,10 @@ func (r *RerunTumblingWindowTrigger) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if r.AdditionalProperties == nil { - r.AdditionalProperties = map[string]interface{}{} + r.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) r.AdditionalProperties[key] = aux } @@ -37599,7 +37804,7 @@ func (r *RerunTumblingWindowTrigger) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RerunTumblingWindowTriggerTypeProperties. func (r RerunTumblingWindowTriggerTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "parentTrigger", &r.ParentTrigger) populateTimeRFC3339(objectMap, "requestedEndTime", r.RequestedEndTime) populateTimeRFC3339(objectMap, "requestedStartTime", r.RequestedStartTime) @@ -37638,7 +37843,7 @@ func (r *RerunTumblingWindowTriggerTypeProperties) UnmarshalJSON(data []byte) er // MarshalJSON implements the json.Marshaller interface for type ResponsysLinkedService. func (r ResponsysLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", r.Annotations) populate(objectMap, "connectVia", r.ConnectVia) populate(objectMap, "description", r.Description) @@ -37682,10 +37887,10 @@ func (r *ResponsysLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if r.AdditionalProperties == nil { - r.AdditionalProperties = map[string]interface{}{} + r.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) r.AdditionalProperties[key] = aux } @@ -37700,7 +37905,7 @@ func (r *ResponsysLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ResponsysLinkedServiceTypeProperties. func (r ResponsysLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "clientId", &r.ClientID) populate(objectMap, "clientSecret", r.ClientSecret) populate(objectMap, "encryptedCredential", &r.EncryptedCredential) @@ -37751,7 +37956,7 @@ func (r *ResponsysLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type ResponsysObjectDataset. func (r ResponsysObjectDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", r.Annotations) populate(objectMap, "description", r.Description) populate(objectMap, "folder", r.Folder) @@ -37807,10 +38012,10 @@ func (r *ResponsysObjectDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if r.AdditionalProperties == nil { - r.AdditionalProperties = map[string]interface{}{} + r.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) r.AdditionalProperties[key] = aux } @@ -37825,7 +38030,7 @@ func (r *ResponsysObjectDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ResponsysSource. func (r ResponsysSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &r.AdditionalColumns) populate(objectMap, "disableMetricsCollection", &r.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &r.MaxConcurrentConnections) @@ -37877,10 +38082,10 @@ func (r *ResponsysSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if r.AdditionalProperties == nil { - r.AdditionalProperties = map[string]interface{}{} + r.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) r.AdditionalProperties[key] = aux } @@ -37895,7 +38100,7 @@ func (r *ResponsysSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RestResourceDataset. func (r RestResourceDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", r.Annotations) populate(objectMap, "description", r.Description) populate(objectMap, "folder", r.Folder) @@ -37951,10 +38156,10 @@ func (r *RestResourceDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if r.AdditionalProperties == nil { - r.AdditionalProperties = map[string]interface{}{} + r.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) r.AdditionalProperties[key] = aux } @@ -37969,7 +38174,7 @@ func (r *RestResourceDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RestResourceDatasetTypeProperties. func (r RestResourceDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalHeaders", &r.AdditionalHeaders) populate(objectMap, "paginationRules", &r.PaginationRules) populate(objectMap, "relativeUrl", &r.RelativeURL) @@ -38012,7 +38217,7 @@ func (r *RestResourceDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RestServiceLinkedService. func (r RestServiceLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", r.Annotations) populate(objectMap, "connectVia", r.ConnectVia) populate(objectMap, "description", r.Description) @@ -38056,10 +38261,10 @@ func (r *RestServiceLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if r.AdditionalProperties == nil { - r.AdditionalProperties = map[string]interface{}{} + r.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) r.AdditionalProperties[key] = aux } @@ -38074,7 +38279,7 @@ func (r *RestServiceLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RestServiceLinkedServiceTypeProperties. func (r RestServiceLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "aadResourceId", &r.AADResourceID) populate(objectMap, "authHeaders", &r.AuthHeaders) populate(objectMap, "authenticationType", r.AuthenticationType) @@ -38169,7 +38374,7 @@ func (r *RestServiceLinkedServiceTypeProperties) UnmarshalJSON(data []byte) erro // MarshalJSON implements the json.Marshaller interface for type RestSink. func (r RestSink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalHeaders", &r.AdditionalHeaders) populate(objectMap, "disableMetricsCollection", &r.DisableMetricsCollection) populate(objectMap, "httpCompressionType", &r.HTTPCompressionType) @@ -38237,10 +38442,10 @@ func (r *RestSink) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if r.AdditionalProperties == nil { - r.AdditionalProperties = map[string]interface{}{} + r.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) r.AdditionalProperties[key] = aux } @@ -38255,7 +38460,7 @@ func (r *RestSink) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RestSource. func (r RestSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &r.AdditionalColumns) populate(objectMap, "additionalHeaders", &r.AdditionalHeaders) populate(objectMap, "disableMetricsCollection", &r.DisableMetricsCollection) @@ -38323,10 +38528,10 @@ func (r *RestSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if r.AdditionalProperties == nil { - r.AdditionalProperties = map[string]interface{}{} + r.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) r.AdditionalProperties[key] = aux } @@ -38341,7 +38546,7 @@ func (r *RestSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RetryPolicy. func (r RetryPolicy) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "count", &r.Count) populate(objectMap, "intervalInSeconds", r.IntervalInSeconds) return json.Marshal(objectMap) @@ -38372,7 +38577,7 @@ func (r *RetryPolicy) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RunFilterParameters. func (r RunFilterParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "continuationToken", r.ContinuationToken) populate(objectMap, "filters", r.Filters) populateTimeRFC3339(objectMap, "lastUpdatedAfter", r.LastUpdatedAfter) @@ -38415,7 +38620,7 @@ func (r *RunFilterParameters) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RunQueryFilter. func (r RunQueryFilter) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "operand", r.Operand) populate(objectMap, "operator", r.Operator) populate(objectMap, "values", r.Values) @@ -38450,7 +38655,7 @@ func (r *RunQueryFilter) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RunQueryOrderBy. func (r RunQueryOrderBy) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "order", r.Order) populate(objectMap, "orderBy", r.OrderBy) return json.Marshal(objectMap) @@ -38481,7 +38686,7 @@ func (r *RunQueryOrderBy) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SQLAlwaysEncryptedProperties. func (s SQLAlwaysEncryptedProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "alwaysEncryptedAkvAuthType", s.AlwaysEncryptedAkvAuthType) populate(objectMap, "credential", s.Credential) populate(objectMap, "servicePrincipalId", &s.ServicePrincipalID) @@ -38520,7 +38725,7 @@ func (s *SQLAlwaysEncryptedProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SQLDWSink. func (s SQLDWSink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "allowCopyCommand", &s.AllowCopyCommand) populate(objectMap, "allowPolyBase", &s.AllowPolyBase) populate(objectMap, "copyCommandSettings", s.CopyCommandSettings) @@ -38604,10 +38809,10 @@ func (s *SQLDWSink) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -38622,7 +38827,7 @@ func (s *SQLDWSink) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SQLDWSource. func (s SQLDWSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &s.AdditionalColumns) populate(objectMap, "disableMetricsCollection", &s.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &s.MaxConcurrentConnections) @@ -38690,10 +38895,10 @@ func (s *SQLDWSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -38708,7 +38913,7 @@ func (s *SQLDWSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SQLDWUpsertSettings. func (s SQLDWUpsertSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "interimSchemaName", &s.InterimSchemaName) populate(objectMap, "keys", &s.Keys) return json.Marshal(objectMap) @@ -38739,7 +38944,7 @@ func (s *SQLDWUpsertSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SQLMISink. func (s SQLMISink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "disableMetricsCollection", &s.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &s.MaxConcurrentConnections) populate(objectMap, "preCopyScript", &s.PreCopyScript) @@ -38823,10 +39028,10 @@ func (s *SQLMISink) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -38841,7 +39046,7 @@ func (s *SQLMISink) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SQLMISource. func (s SQLMISource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &s.AdditionalColumns) populate(objectMap, "disableMetricsCollection", &s.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &s.MaxConcurrentConnections) @@ -38913,10 +39118,10 @@ func (s *SQLMISource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -38931,7 +39136,7 @@ func (s *SQLMISource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SQLPartitionSettings. func (s SQLPartitionSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "partitionColumnName", &s.PartitionColumnName) populate(objectMap, "partitionLowerBound", &s.PartitionLowerBound) populate(objectMap, "partitionUpperBound", &s.PartitionUpperBound) @@ -38966,7 +39171,7 @@ func (s *SQLPartitionSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SQLServerLinkedService. func (s SQLServerLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", s.Annotations) populate(objectMap, "connectVia", s.ConnectVia) populate(objectMap, "description", s.Description) @@ -39010,10 +39215,10 @@ func (s *SQLServerLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -39028,7 +39233,7 @@ func (s *SQLServerLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SQLServerLinkedServiceTypeProperties. func (s SQLServerLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "alwaysEncryptedSettings", s.AlwaysEncryptedSettings) populate(objectMap, "connectionString", &s.ConnectionString) populate(objectMap, "encryptedCredential", &s.EncryptedCredential) @@ -39071,7 +39276,7 @@ func (s *SQLServerLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type SQLServerSink. func (s SQLServerSink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "disableMetricsCollection", &s.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &s.MaxConcurrentConnections) populate(objectMap, "preCopyScript", &s.PreCopyScript) @@ -39155,10 +39360,10 @@ func (s *SQLServerSink) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -39173,7 +39378,7 @@ func (s *SQLServerSink) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SQLServerSource. func (s SQLServerSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &s.AdditionalColumns) populate(objectMap, "disableMetricsCollection", &s.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &s.MaxConcurrentConnections) @@ -39245,10 +39450,10 @@ func (s *SQLServerSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -39263,7 +39468,7 @@ func (s *SQLServerSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SQLServerStoredProcedureActivity. func (s SQLServerStoredProcedureActivity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", s.DependsOn) populate(objectMap, "description", s.Description) populate(objectMap, "linkedServiceName", s.LinkedServiceName) @@ -39315,10 +39520,10 @@ func (s *SQLServerStoredProcedureActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -39333,7 +39538,7 @@ func (s *SQLServerStoredProcedureActivity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SQLServerStoredProcedureActivityTypeProperties. func (s SQLServerStoredProcedureActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "storedProcedureName", &s.StoredProcedureName) populate(objectMap, "storedProcedureParameters", &s.StoredProcedureParameters) return json.Marshal(objectMap) @@ -39364,7 +39569,7 @@ func (s *SQLServerStoredProcedureActivityTypeProperties) UnmarshalJSON(data []by // MarshalJSON implements the json.Marshaller interface for type SQLServerTableDataset. func (s SQLServerTableDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", s.Annotations) populate(objectMap, "description", s.Description) populate(objectMap, "folder", s.Folder) @@ -39420,10 +39625,10 @@ func (s *SQLServerTableDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -39438,7 +39643,7 @@ func (s *SQLServerTableDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SQLServerTableDatasetTypeProperties. func (s SQLServerTableDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "schema", &s.Schema) populate(objectMap, "table", &s.Table) populate(objectMap, "tableName", &s.TableName) @@ -39473,7 +39678,7 @@ func (s *SQLServerTableDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SQLSink. func (s SQLSink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "disableMetricsCollection", &s.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &s.MaxConcurrentConnections) populate(objectMap, "preCopyScript", &s.PreCopyScript) @@ -39557,10 +39762,10 @@ func (s *SQLSink) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -39575,7 +39780,7 @@ func (s *SQLSink) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SQLSource. func (s SQLSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &s.AdditionalColumns) populate(objectMap, "disableMetricsCollection", &s.DisableMetricsCollection) populate(objectMap, "isolationLevel", &s.IsolationLevel) @@ -39647,10 +39852,10 @@ func (s *SQLSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -39665,7 +39870,7 @@ func (s *SQLSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SQLUpsertSettings. func (s SQLUpsertSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "interimSchemaName", &s.InterimSchemaName) populate(objectMap, "keys", &s.Keys) populate(objectMap, "useTempDB", &s.UseTempDB) @@ -39700,7 +39905,7 @@ func (s *SQLUpsertSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SSISAccessCredential. func (s SSISAccessCredential) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "domain", &s.Domain) populate(objectMap, "password", s.Password) populate(objectMap, "userName", &s.UserName) @@ -39735,7 +39940,7 @@ func (s *SSISAccessCredential) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SSISChildPackage. func (s SSISChildPackage) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "packageContent", &s.PackageContent) populate(objectMap, "packageLastModifiedDate", s.PackageLastModifiedDate) populate(objectMap, "packageName", s.PackageName) @@ -39774,7 +39979,7 @@ func (s *SSISChildPackage) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SSISExecutionCredential. func (s SSISExecutionCredential) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "domain", &s.Domain) populate(objectMap, "password", s.Password) populate(objectMap, "userName", &s.UserName) @@ -39809,7 +40014,7 @@ func (s *SSISExecutionCredential) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SSISExecutionParameter. func (s SSISExecutionParameter) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "value", &s.Value) return json.Marshal(objectMap) } @@ -39836,7 +40041,7 @@ func (s *SSISExecutionParameter) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SSISLogLocation. func (s SSISLogLocation) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "logPath", &s.LogPath) populate(objectMap, "type", s.Type) populate(objectMap, "typeProperties", s.TypeProperties) @@ -39871,7 +40076,7 @@ func (s *SSISLogLocation) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SSISLogLocationTypeProperties. func (s SSISLogLocationTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "accessCredential", s.AccessCredential) populate(objectMap, "logRefreshInterval", &s.LogRefreshInterval) return json.Marshal(objectMap) @@ -39902,7 +40107,7 @@ func (s *SSISLogLocationTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SSISPackageLocation. func (s SSISPackageLocation) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "packagePath", &s.PackagePath) populate(objectMap, "type", s.Type) populate(objectMap, "typeProperties", s.TypeProperties) @@ -39937,7 +40142,7 @@ func (s *SSISPackageLocation) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SSISPackageLocationTypeProperties. func (s SSISPackageLocationTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "accessCredential", s.AccessCredential) populate(objectMap, "childPackages", s.ChildPackages) populate(objectMap, "configurationAccessCredential", s.ConfigurationAccessCredential) @@ -39992,7 +40197,7 @@ func (s *SSISPackageLocationTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SSISPropertyOverride. func (s SSISPropertyOverride) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "isSensitive", s.IsSensitive) populate(objectMap, "value", &s.Value) return json.Marshal(objectMap) @@ -40023,7 +40228,7 @@ func (s *SSISPropertyOverride) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SalesforceLinkedService. func (s SalesforceLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", s.Annotations) populate(objectMap, "connectVia", s.ConnectVia) populate(objectMap, "description", s.Description) @@ -40067,10 +40272,10 @@ func (s *SalesforceLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -40085,7 +40290,7 @@ func (s *SalesforceLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SalesforceLinkedServiceTypeProperties. func (s SalesforceLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "apiVersion", &s.APIVersion) populate(objectMap, "encryptedCredential", &s.EncryptedCredential) populate(objectMap, "environmentUrl", &s.EnvironmentURL) @@ -40132,7 +40337,7 @@ func (s *SalesforceLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type SalesforceMarketingCloudLinkedService. func (s SalesforceMarketingCloudLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", s.Annotations) populate(objectMap, "connectVia", s.ConnectVia) populate(objectMap, "description", s.Description) @@ -40176,10 +40381,10 @@ func (s *SalesforceMarketingCloudLinkedService) UnmarshalJSON(data []byte) error delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -40194,7 +40399,7 @@ func (s *SalesforceMarketingCloudLinkedService) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type SalesforceMarketingCloudLinkedServiceTypeProperties. func (s SalesforceMarketingCloudLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "clientId", &s.ClientID) populate(objectMap, "clientSecret", s.ClientSecret) populate(objectMap, "connectionProperties", &s.ConnectionProperties) @@ -40245,7 +40450,7 @@ func (s *SalesforceMarketingCloudLinkedServiceTypeProperties) UnmarshalJSON(data // MarshalJSON implements the json.Marshaller interface for type SalesforceMarketingCloudObjectDataset. func (s SalesforceMarketingCloudObjectDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", s.Annotations) populate(objectMap, "description", s.Description) populate(objectMap, "folder", s.Folder) @@ -40301,10 +40506,10 @@ func (s *SalesforceMarketingCloudObjectDataset) UnmarshalJSON(data []byte) error delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -40319,7 +40524,7 @@ func (s *SalesforceMarketingCloudObjectDataset) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type SalesforceMarketingCloudSource. func (s SalesforceMarketingCloudSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &s.AdditionalColumns) populate(objectMap, "disableMetricsCollection", &s.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &s.MaxConcurrentConnections) @@ -40371,10 +40576,10 @@ func (s *SalesforceMarketingCloudSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -40389,7 +40594,7 @@ func (s *SalesforceMarketingCloudSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SalesforceObjectDataset. func (s SalesforceObjectDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", s.Annotations) populate(objectMap, "description", s.Description) populate(objectMap, "folder", s.Folder) @@ -40445,10 +40650,10 @@ func (s *SalesforceObjectDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -40463,7 +40668,7 @@ func (s *SalesforceObjectDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SalesforceObjectDatasetTypeProperties. func (s SalesforceObjectDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "objectApiName", &s.ObjectAPIName) return json.Marshal(objectMap) } @@ -40490,7 +40695,7 @@ func (s *SalesforceObjectDatasetTypeProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type SalesforceServiceCloudLinkedService. func (s SalesforceServiceCloudLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", s.Annotations) populate(objectMap, "connectVia", s.ConnectVia) populate(objectMap, "description", s.Description) @@ -40534,10 +40739,10 @@ func (s *SalesforceServiceCloudLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -40552,7 +40757,7 @@ func (s *SalesforceServiceCloudLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SalesforceServiceCloudLinkedServiceTypeProperties. func (s SalesforceServiceCloudLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "apiVersion", &s.APIVersion) populate(objectMap, "encryptedCredential", &s.EncryptedCredential) populate(objectMap, "environmentUrl", &s.EnvironmentURL) @@ -40603,7 +40808,7 @@ func (s *SalesforceServiceCloudLinkedServiceTypeProperties) UnmarshalJSON(data [ // MarshalJSON implements the json.Marshaller interface for type SalesforceServiceCloudObjectDataset. func (s SalesforceServiceCloudObjectDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", s.Annotations) populate(objectMap, "description", s.Description) populate(objectMap, "folder", s.Folder) @@ -40659,10 +40864,10 @@ func (s *SalesforceServiceCloudObjectDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -40677,7 +40882,7 @@ func (s *SalesforceServiceCloudObjectDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SalesforceServiceCloudObjectDatasetTypeProperties. func (s SalesforceServiceCloudObjectDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "objectApiName", &s.ObjectAPIName) return json.Marshal(objectMap) } @@ -40704,7 +40909,7 @@ func (s *SalesforceServiceCloudObjectDatasetTypeProperties) UnmarshalJSON(data [ // MarshalJSON implements the json.Marshaller interface for type SalesforceServiceCloudSink. func (s SalesforceServiceCloudSink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "disableMetricsCollection", &s.DisableMetricsCollection) populate(objectMap, "externalIdFieldName", &s.ExternalIDFieldName) populate(objectMap, "ignoreNullValues", &s.IgnoreNullValues) @@ -40764,10 +40969,10 @@ func (s *SalesforceServiceCloudSink) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -40782,7 +40987,7 @@ func (s *SalesforceServiceCloudSink) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SalesforceServiceCloudSource. func (s SalesforceServiceCloudSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &s.AdditionalColumns) populate(objectMap, "disableMetricsCollection", &s.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &s.MaxConcurrentConnections) @@ -40834,10 +41039,10 @@ func (s *SalesforceServiceCloudSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -40852,7 +41057,7 @@ func (s *SalesforceServiceCloudSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SalesforceSink. func (s SalesforceSink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "disableMetricsCollection", &s.DisableMetricsCollection) populate(objectMap, "externalIdFieldName", &s.ExternalIDFieldName) populate(objectMap, "ignoreNullValues", &s.IgnoreNullValues) @@ -40912,10 +41117,10 @@ func (s *SalesforceSink) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -40930,7 +41135,7 @@ func (s *SalesforceSink) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SalesforceSource. func (s SalesforceSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &s.AdditionalColumns) populate(objectMap, "disableMetricsCollection", &s.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &s.MaxConcurrentConnections) @@ -40986,10 +41191,10 @@ func (s *SalesforceSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -41004,7 +41209,7 @@ func (s *SalesforceSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SapBWLinkedService. func (s SapBWLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", s.Annotations) populate(objectMap, "connectVia", s.ConnectVia) populate(objectMap, "description", s.Description) @@ -41048,10 +41253,10 @@ func (s *SapBWLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -41066,7 +41271,7 @@ func (s *SapBWLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SapBWLinkedServiceTypeProperties. func (s SapBWLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "clientId", &s.ClientID) populate(objectMap, "encryptedCredential", &s.EncryptedCredential) populate(objectMap, "password", s.Password) @@ -41113,7 +41318,7 @@ func (s *SapBWLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SapBwCubeDataset. func (s SapBwCubeDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", s.Annotations) populate(objectMap, "description", s.Description) populate(objectMap, "folder", s.Folder) @@ -41165,10 +41370,10 @@ func (s *SapBwCubeDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -41183,7 +41388,7 @@ func (s *SapBwCubeDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SapBwSource. func (s SapBwSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &s.AdditionalColumns) populate(objectMap, "disableMetricsCollection", &s.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &s.MaxConcurrentConnections) @@ -41235,10 +41440,10 @@ func (s *SapBwSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -41253,7 +41458,7 @@ func (s *SapBwSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SapCloudForCustomerLinkedService. func (s SapCloudForCustomerLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", s.Annotations) populate(objectMap, "connectVia", s.ConnectVia) populate(objectMap, "description", s.Description) @@ -41297,10 +41502,10 @@ func (s *SapCloudForCustomerLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -41315,7 +41520,7 @@ func (s *SapCloudForCustomerLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SapCloudForCustomerLinkedServiceTypeProperties. func (s SapCloudForCustomerLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "encryptedCredential", &s.EncryptedCredential) populate(objectMap, "password", s.Password) populate(objectMap, "url", &s.URL) @@ -41354,7 +41559,7 @@ func (s *SapCloudForCustomerLinkedServiceTypeProperties) UnmarshalJSON(data []by // MarshalJSON implements the json.Marshaller interface for type SapCloudForCustomerResourceDataset. func (s SapCloudForCustomerResourceDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", s.Annotations) populate(objectMap, "description", s.Description) populate(objectMap, "folder", s.Folder) @@ -41410,10 +41615,10 @@ func (s *SapCloudForCustomerResourceDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -41428,7 +41633,7 @@ func (s *SapCloudForCustomerResourceDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SapCloudForCustomerResourceDatasetTypeProperties. func (s SapCloudForCustomerResourceDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "path", &s.Path) return json.Marshal(objectMap) } @@ -41455,7 +41660,7 @@ func (s *SapCloudForCustomerResourceDatasetTypeProperties) UnmarshalJSON(data [] // MarshalJSON implements the json.Marshaller interface for type SapCloudForCustomerSink. func (s SapCloudForCustomerSink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "disableMetricsCollection", &s.DisableMetricsCollection) populate(objectMap, "httpRequestTimeout", &s.HTTPRequestTimeout) populate(objectMap, "maxConcurrentConnections", &s.MaxConcurrentConnections) @@ -41511,10 +41716,10 @@ func (s *SapCloudForCustomerSink) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -41529,7 +41734,7 @@ func (s *SapCloudForCustomerSink) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SapCloudForCustomerSource. func (s SapCloudForCustomerSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &s.AdditionalColumns) populate(objectMap, "disableMetricsCollection", &s.DisableMetricsCollection) populate(objectMap, "httpRequestTimeout", &s.HTTPRequestTimeout) @@ -41585,10 +41790,10 @@ func (s *SapCloudForCustomerSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -41603,7 +41808,7 @@ func (s *SapCloudForCustomerSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SapEccLinkedService. func (s SapEccLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", s.Annotations) populate(objectMap, "connectVia", s.ConnectVia) populate(objectMap, "description", s.Description) @@ -41647,10 +41852,10 @@ func (s *SapEccLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -41665,7 +41870,7 @@ func (s *SapEccLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SapEccLinkedServiceTypeProperties. func (s SapEccLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "encryptedCredential", s.EncryptedCredential) populate(objectMap, "password", s.Password) populate(objectMap, "url", s.URL) @@ -41704,7 +41909,7 @@ func (s *SapEccLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SapEccResourceDataset. func (s SapEccResourceDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", s.Annotations) populate(objectMap, "description", s.Description) populate(objectMap, "folder", s.Folder) @@ -41760,10 +41965,10 @@ func (s *SapEccResourceDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -41778,7 +41983,7 @@ func (s *SapEccResourceDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SapEccResourceDatasetTypeProperties. func (s SapEccResourceDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "path", &s.Path) return json.Marshal(objectMap) } @@ -41805,7 +42010,7 @@ func (s *SapEccResourceDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SapEccSource. func (s SapEccSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &s.AdditionalColumns) populate(objectMap, "disableMetricsCollection", &s.DisableMetricsCollection) populate(objectMap, "httpRequestTimeout", &s.HTTPRequestTimeout) @@ -41861,10 +42066,10 @@ func (s *SapEccSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -41879,7 +42084,7 @@ func (s *SapEccSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SapHanaLinkedService. func (s SapHanaLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", s.Annotations) populate(objectMap, "connectVia", s.ConnectVia) populate(objectMap, "description", s.Description) @@ -41923,10 +42128,10 @@ func (s *SapHanaLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -41941,7 +42146,7 @@ func (s *SapHanaLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SapHanaLinkedServiceProperties. func (s SapHanaLinkedServiceProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "authenticationType", s.AuthenticationType) populate(objectMap, "connectionString", &s.ConnectionString) populate(objectMap, "encryptedCredential", &s.EncryptedCredential) @@ -41988,7 +42193,7 @@ func (s *SapHanaLinkedServiceProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SapHanaPartitionSettings. func (s SapHanaPartitionSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "partitionColumnName", &s.PartitionColumnName) return json.Marshal(objectMap) } @@ -42015,7 +42220,7 @@ func (s *SapHanaPartitionSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SapHanaSource. func (s SapHanaSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &s.AdditionalColumns) populate(objectMap, "disableMetricsCollection", &s.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &s.MaxConcurrentConnections) @@ -42079,10 +42284,10 @@ func (s *SapHanaSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -42097,7 +42302,7 @@ func (s *SapHanaSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SapHanaTableDataset. func (s SapHanaTableDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", s.Annotations) populate(objectMap, "description", s.Description) populate(objectMap, "folder", s.Folder) @@ -42153,10 +42358,10 @@ func (s *SapHanaTableDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -42171,7 +42376,7 @@ func (s *SapHanaTableDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SapHanaTableDatasetTypeProperties. func (s SapHanaTableDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "schema", &s.Schema) populate(objectMap, "table", &s.Table) return json.Marshal(objectMap) @@ -42202,7 +42407,7 @@ func (s *SapHanaTableDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SapOdpLinkedService. func (s SapOdpLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", s.Annotations) populate(objectMap, "connectVia", s.ConnectVia) populate(objectMap, "description", s.Description) @@ -42246,10 +42451,10 @@ func (s *SapOdpLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -42264,7 +42469,7 @@ func (s *SapOdpLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SapOdpLinkedServiceTypeProperties. func (s SapOdpLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "clientId", &s.ClientID) populate(objectMap, "encryptedCredential", &s.EncryptedCredential) populate(objectMap, "language", &s.Language) @@ -42359,7 +42564,7 @@ func (s *SapOdpLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SapOdpResourceDataset. func (s SapOdpResourceDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", s.Annotations) populate(objectMap, "description", s.Description) populate(objectMap, "folder", s.Folder) @@ -42415,10 +42620,10 @@ func (s *SapOdpResourceDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -42433,7 +42638,7 @@ func (s *SapOdpResourceDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SapOdpResourceDatasetTypeProperties. func (s SapOdpResourceDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "context", &s.Context) populate(objectMap, "objectName", &s.ObjectName) return json.Marshal(objectMap) @@ -42464,7 +42669,7 @@ func (s *SapOdpResourceDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SapOdpSource. func (s SapOdpSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &s.AdditionalColumns) populate(objectMap, "disableMetricsCollection", &s.DisableMetricsCollection) populate(objectMap, "extractionMode", &s.ExtractionMode) @@ -42528,10 +42733,10 @@ func (s *SapOdpSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -42546,7 +42751,7 @@ func (s *SapOdpSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SapOpenHubLinkedService. func (s SapOpenHubLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", s.Annotations) populate(objectMap, "connectVia", s.ConnectVia) populate(objectMap, "description", s.Description) @@ -42590,10 +42795,10 @@ func (s *SapOpenHubLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -42608,7 +42813,7 @@ func (s *SapOpenHubLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SapOpenHubLinkedServiceTypeProperties. func (s SapOpenHubLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "clientId", &s.ClientID) populate(objectMap, "encryptedCredential", &s.EncryptedCredential) populate(objectMap, "language", &s.Language) @@ -42675,7 +42880,7 @@ func (s *SapOpenHubLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type SapOpenHubSource. func (s SapOpenHubSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &s.AdditionalColumns) populate(objectMap, "baseRequestId", &s.BaseRequestID) populate(objectMap, "customRfcReadTableFunctionModule", &s.CustomRFCReadTableFunctionModule) @@ -42739,10 +42944,10 @@ func (s *SapOpenHubSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -42757,7 +42962,7 @@ func (s *SapOpenHubSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SapOpenHubTableDataset. func (s SapOpenHubTableDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", s.Annotations) populate(objectMap, "description", s.Description) populate(objectMap, "folder", s.Folder) @@ -42813,10 +43018,10 @@ func (s *SapOpenHubTableDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -42831,7 +43036,7 @@ func (s *SapOpenHubTableDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SapOpenHubTableDatasetTypeProperties. func (s SapOpenHubTableDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "baseRequestId", &s.BaseRequestID) populate(objectMap, "excludeLastRequest", &s.ExcludeLastRequest) populate(objectMap, "openHubDestinationName", &s.OpenHubDestinationName) @@ -42866,7 +43071,7 @@ func (s *SapOpenHubTableDatasetTypeProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type SapTableLinkedService. func (s SapTableLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", s.Annotations) populate(objectMap, "connectVia", s.ConnectVia) populate(objectMap, "description", s.Description) @@ -42910,10 +43115,10 @@ func (s *SapTableLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -42928,7 +43133,7 @@ func (s *SapTableLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SapTableLinkedServiceTypeProperties. func (s SapTableLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "clientId", &s.ClientID) populate(objectMap, "encryptedCredential", &s.EncryptedCredential) populate(objectMap, "language", &s.Language) @@ -43015,7 +43220,7 @@ func (s *SapTableLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SapTablePartitionSettings. func (s SapTablePartitionSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "maxPartitionsNumber", &s.MaxPartitionsNumber) populate(objectMap, "partitionColumnName", &s.PartitionColumnName) populate(objectMap, "partitionLowerBound", &s.PartitionLowerBound) @@ -43054,7 +43259,7 @@ func (s *SapTablePartitionSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SapTableResourceDataset. func (s SapTableResourceDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", s.Annotations) populate(objectMap, "description", s.Description) populate(objectMap, "folder", s.Folder) @@ -43110,10 +43315,10 @@ func (s *SapTableResourceDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -43128,7 +43333,7 @@ func (s *SapTableResourceDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SapTableResourceDatasetTypeProperties. func (s SapTableResourceDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "tableName", &s.TableName) return json.Marshal(objectMap) } @@ -43155,7 +43360,7 @@ func (s *SapTableResourceDatasetTypeProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type SapTableSource. func (s SapTableSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &s.AdditionalColumns) populate(objectMap, "batchSize", &s.BatchSize) populate(objectMap, "customRfcReadTableFunctionModule", &s.CustomRFCReadTableFunctionModule) @@ -43239,10 +43444,10 @@ func (s *SapTableSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -43257,7 +43462,7 @@ func (s *SapTableSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ScheduleTrigger. func (s ScheduleTrigger) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", s.Annotations) populate(objectMap, "description", s.Description) populate(objectMap, "pipelines", s.Pipelines) @@ -43301,10 +43506,10 @@ func (s *ScheduleTrigger) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -43319,7 +43524,7 @@ func (s *ScheduleTrigger) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ScheduleTriggerRecurrence. func (s ScheduleTriggerRecurrence) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populateTimeRFC3339(objectMap, "endTime", s.EndTime) populate(objectMap, "frequency", s.Frequency) populate(objectMap, "interval", s.Interval) @@ -43363,10 +43568,10 @@ func (s *ScheduleTriggerRecurrence) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -43381,7 +43586,7 @@ func (s *ScheduleTriggerRecurrence) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ScheduleTriggerTypeProperties. func (s ScheduleTriggerTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "recurrence", s.Recurrence) return json.Marshal(objectMap) } @@ -43408,7 +43613,7 @@ func (s *ScheduleTriggerTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ScriptAction. func (s ScriptAction) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "name", s.Name) populate(objectMap, "parameters", s.Parameters) populate(objectMap, "roles", &s.Roles) @@ -43447,7 +43652,7 @@ func (s *ScriptAction) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ScriptActivity. func (s ScriptActivity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", s.DependsOn) populate(objectMap, "description", s.Description) populate(objectMap, "linkedServiceName", s.LinkedServiceName) @@ -43499,10 +43704,10 @@ func (s *ScriptActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -43517,7 +43722,7 @@ func (s *ScriptActivity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ScriptActivityParameter. func (s ScriptActivityParameter) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "direction", s.Direction) populate(objectMap, "name", &s.Name) populate(objectMap, "size", s.Size) @@ -43560,7 +43765,7 @@ func (s *ScriptActivityParameter) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ScriptActivityScriptBlock. func (s ScriptActivityScriptBlock) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "parameters", s.Parameters) populate(objectMap, "text", &s.Text) populate(objectMap, "type", s.Type) @@ -43595,7 +43800,7 @@ func (s *ScriptActivityScriptBlock) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ScriptActivityTypeProperties. func (s ScriptActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "logSettings", s.LogSettings) populate(objectMap, "scriptBlockExecutionTimeout", &s.ScriptBlockExecutionTimeout) populate(objectMap, "scripts", s.Scripts) @@ -43630,7 +43835,7 @@ func (s *ScriptActivityTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ScriptActivityTypePropertiesLogSettings. func (s ScriptActivityTypePropertiesLogSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "logDestination", s.LogDestination) populate(objectMap, "logLocationSettings", s.LogLocationSettings) return json.Marshal(objectMap) @@ -43661,7 +43866,7 @@ func (s *ScriptActivityTypePropertiesLogSettings) UnmarshalJSON(data []byte) err // MarshalJSON implements the json.Marshaller interface for type SecretBase. func (s SecretBase) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) objectMap["type"] = s.Type return json.Marshal(objectMap) } @@ -43688,7 +43893,7 @@ func (s *SecretBase) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SecureString. func (s SecureString) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) objectMap["type"] = "SecureString" populate(objectMap, "value", s.Value) return json.Marshal(objectMap) @@ -43719,7 +43924,7 @@ func (s *SecureString) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SelfDependencyTumblingWindowTriggerReference. func (s SelfDependencyTumblingWindowTriggerReference) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "offset", s.Offset) populate(objectMap, "size", s.Size) objectMap["type"] = "SelfDependencyTumblingWindowTriggerReference" @@ -43754,7 +43959,7 @@ func (s *SelfDependencyTumblingWindowTriggerReference) UnmarshalJSON(data []byte // MarshalJSON implements the json.Marshaller interface for type SelfHostedIntegrationRuntime. func (s SelfHostedIntegrationRuntime) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "description", s.Description) objectMap["type"] = IntegrationRuntimeTypeSelfHosted populate(objectMap, "typeProperties", s.TypeProperties) @@ -43786,10 +43991,10 @@ func (s *SelfHostedIntegrationRuntime) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -43804,7 +44009,7 @@ func (s *SelfHostedIntegrationRuntime) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SelfHostedIntegrationRuntimeNode. func (s SelfHostedIntegrationRuntimeNode) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "capabilities", s.Capabilities) populate(objectMap, "concurrentJobsLimit", s.ConcurrentJobsLimit) populateTimeRFC3339(objectMap, "expiryTime", s.ExpiryTime) @@ -43896,10 +44101,10 @@ func (s *SelfHostedIntegrationRuntimeNode) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -43914,7 +44119,7 @@ func (s *SelfHostedIntegrationRuntimeNode) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SelfHostedIntegrationRuntimeStatus. func (s SelfHostedIntegrationRuntimeStatus) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dataFactoryName", s.DataFactoryName) populate(objectMap, "state", s.State) objectMap["type"] = IntegrationRuntimeTypeSelfHosted @@ -43950,10 +44155,10 @@ func (s *SelfHostedIntegrationRuntimeStatus) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -43968,7 +44173,7 @@ func (s *SelfHostedIntegrationRuntimeStatus) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SelfHostedIntegrationRuntimeStatusTypeProperties. func (s SelfHostedIntegrationRuntimeStatusTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "autoUpdate", s.AutoUpdate) populateTimeRFC3339(objectMap, "autoUpdateETA", s.AutoUpdateETA) populate(objectMap, "capabilities", s.Capabilities) @@ -44055,7 +44260,7 @@ func (s *SelfHostedIntegrationRuntimeStatusTypeProperties) UnmarshalJSON(data [] // MarshalJSON implements the json.Marshaller interface for type SelfHostedIntegrationRuntimeTypeProperties. func (s SelfHostedIntegrationRuntimeTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "linkedInfo", s.LinkedInfo) return json.Marshal(objectMap) } @@ -44082,7 +44287,7 @@ func (s *SelfHostedIntegrationRuntimeTypeProperties) UnmarshalJSON(data []byte) // MarshalJSON implements the json.Marshaller interface for type ServiceNowLinkedService. func (s ServiceNowLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", s.Annotations) populate(objectMap, "connectVia", s.ConnectVia) populate(objectMap, "description", s.Description) @@ -44126,10 +44331,10 @@ func (s *ServiceNowLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -44144,7 +44349,7 @@ func (s *ServiceNowLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ServiceNowLinkedServiceTypeProperties. func (s ServiceNowLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "authenticationType", s.AuthenticationType) populate(objectMap, "clientId", &s.ClientID) populate(objectMap, "clientSecret", s.ClientSecret) @@ -44207,7 +44412,7 @@ func (s *ServiceNowLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type ServiceNowObjectDataset. func (s ServiceNowObjectDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", s.Annotations) populate(objectMap, "description", s.Description) populate(objectMap, "folder", s.Folder) @@ -44263,10 +44468,10 @@ func (s *ServiceNowObjectDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -44281,7 +44486,7 @@ func (s *ServiceNowObjectDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ServiceNowSource. func (s ServiceNowSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &s.AdditionalColumns) populate(objectMap, "disableMetricsCollection", &s.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &s.MaxConcurrentConnections) @@ -44333,10 +44538,10 @@ func (s *ServiceNowSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -44349,9 +44554,98 @@ func (s *ServiceNowSource) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type ServicePrincipalCredential. +func (s ServicePrincipalCredential) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "annotations", s.Annotations) + populate(objectMap, "description", s.Description) + objectMap["type"] = "ServicePrincipal" + populate(objectMap, "typeProperties", s.TypeProperties) + if s.AdditionalProperties != nil { + for key, val := range s.AdditionalProperties { + objectMap[key] = val + } + } + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ServicePrincipalCredential. +func (s *ServicePrincipalCredential) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "annotations": + err = unpopulate(val, "Annotations", &s.Annotations) + delete(rawMsg, key) + case "description": + err = unpopulate(val, "Description", &s.Description) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &s.Type) + delete(rawMsg, key) + case "typeProperties": + err = unpopulate(val, "TypeProperties", &s.TypeProperties) + delete(rawMsg, key) + default: + if s.AdditionalProperties == nil { + s.AdditionalProperties = map[string]any{} + } + if val != nil { + var aux any + err = json.Unmarshal(val, &aux) + s.AdditionalProperties[key] = aux + } + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ServicePrincipalCredentialTypeProperties. +func (s ServicePrincipalCredentialTypeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "servicePrincipalId", &s.ServicePrincipalID) + populate(objectMap, "servicePrincipalKey", s.ServicePrincipalKey) + populate(objectMap, "tenant", &s.Tenant) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ServicePrincipalCredentialTypeProperties. +func (s *ServicePrincipalCredentialTypeProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "servicePrincipalId": + err = unpopulate(val, "ServicePrincipalID", &s.ServicePrincipalID) + delete(rawMsg, key) + case "servicePrincipalKey": + err = unpopulate(val, "ServicePrincipalKey", &s.ServicePrincipalKey) + delete(rawMsg, key) + case "tenant": + err = unpopulate(val, "Tenant", &s.Tenant) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type SetVariableActivity. func (s SetVariableActivity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", s.DependsOn) populate(objectMap, "description", s.Description) populate(objectMap, "name", s.Name) @@ -44395,10 +44689,10 @@ func (s *SetVariableActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -44413,7 +44707,7 @@ func (s *SetVariableActivity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SetVariableActivityTypeProperties. func (s SetVariableActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "value", &s.Value) populate(objectMap, "variableName", s.VariableName) return json.Marshal(objectMap) @@ -44444,7 +44738,7 @@ func (s *SetVariableActivityTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SftpLocation. func (s SftpLocation) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "fileName", &s.FileName) populate(objectMap, "folderPath", &s.FolderPath) objectMap["type"] = "SftpLocation" @@ -44476,10 +44770,10 @@ func (s *SftpLocation) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -44494,7 +44788,7 @@ func (s *SftpLocation) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SftpReadSettings. func (s SftpReadSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "deleteFilesAfterCompletion", &s.DeleteFilesAfterCompletion) populate(objectMap, "disableChunking", &s.DisableChunking) populate(objectMap, "disableMetricsCollection", &s.DisableMetricsCollection) @@ -44566,10 +44860,10 @@ func (s *SftpReadSettings) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -44584,7 +44878,7 @@ func (s *SftpReadSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SftpServerLinkedService. func (s SftpServerLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", s.Annotations) populate(objectMap, "connectVia", s.ConnectVia) populate(objectMap, "description", s.Description) @@ -44628,10 +44922,10 @@ func (s *SftpServerLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -44646,7 +44940,7 @@ func (s *SftpServerLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SftpServerLinkedServiceTypeProperties. func (s SftpServerLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "authenticationType", s.AuthenticationType) populate(objectMap, "encryptedCredential", &s.EncryptedCredential) populate(objectMap, "host", &s.Host) @@ -44713,7 +45007,7 @@ func (s *SftpServerLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type SftpWriteSettings. func (s SftpWriteSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "copyBehavior", &s.CopyBehavior) populate(objectMap, "disableMetricsCollection", &s.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &s.MaxConcurrentConnections) @@ -44757,10 +45051,10 @@ func (s *SftpWriteSettings) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -44775,7 +45069,7 @@ func (s *SftpWriteSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SharePointOnlineListDatasetTypeProperties. func (s SharePointOnlineListDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "listName", &s.ListName) return json.Marshal(objectMap) } @@ -44802,7 +45096,7 @@ func (s *SharePointOnlineListDatasetTypeProperties) UnmarshalJSON(data []byte) e // MarshalJSON implements the json.Marshaller interface for type SharePointOnlineListLinkedService. func (s SharePointOnlineListLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", s.Annotations) populate(objectMap, "connectVia", s.ConnectVia) populate(objectMap, "description", s.Description) @@ -44846,10 +45140,10 @@ func (s *SharePointOnlineListLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -44864,7 +45158,7 @@ func (s *SharePointOnlineListLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SharePointOnlineListLinkedServiceTypeProperties. func (s SharePointOnlineListLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "encryptedCredential", &s.EncryptedCredential) populate(objectMap, "servicePrincipalId", &s.ServicePrincipalID) populate(objectMap, "servicePrincipalKey", s.ServicePrincipalKey) @@ -44907,7 +45201,7 @@ func (s *SharePointOnlineListLinkedServiceTypeProperties) UnmarshalJSON(data []b // MarshalJSON implements the json.Marshaller interface for type SharePointOnlineListResourceDataset. func (s SharePointOnlineListResourceDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", s.Annotations) populate(objectMap, "description", s.Description) populate(objectMap, "folder", s.Folder) @@ -44963,10 +45257,10 @@ func (s *SharePointOnlineListResourceDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -44981,7 +45275,7 @@ func (s *SharePointOnlineListResourceDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SharePointOnlineListSource. func (s SharePointOnlineListSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "disableMetricsCollection", &s.DisableMetricsCollection) populate(objectMap, "httpRequestTimeout", &s.HTTPRequestTimeout) populate(objectMap, "maxConcurrentConnections", &s.MaxConcurrentConnections) @@ -45029,10 +45323,10 @@ func (s *SharePointOnlineListSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -45047,7 +45341,7 @@ func (s *SharePointOnlineListSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ShopifyLinkedService. func (s ShopifyLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", s.Annotations) populate(objectMap, "connectVia", s.ConnectVia) populate(objectMap, "description", s.Description) @@ -45091,10 +45385,10 @@ func (s *ShopifyLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -45109,7 +45403,7 @@ func (s *ShopifyLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ShopifyLinkedServiceTypeProperties. func (s ShopifyLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "accessToken", s.AccessToken) populate(objectMap, "encryptedCredential", &s.EncryptedCredential) populate(objectMap, "host", &s.Host) @@ -45156,7 +45450,7 @@ func (s *ShopifyLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ShopifyObjectDataset. func (s ShopifyObjectDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", s.Annotations) populate(objectMap, "description", s.Description) populate(objectMap, "folder", s.Folder) @@ -45212,10 +45506,10 @@ func (s *ShopifyObjectDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -45230,7 +45524,7 @@ func (s *ShopifyObjectDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ShopifySource. func (s ShopifySource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &s.AdditionalColumns) populate(objectMap, "disableMetricsCollection", &s.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &s.MaxConcurrentConnections) @@ -45282,10 +45576,10 @@ func (s *ShopifySource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -45300,7 +45594,7 @@ func (s *ShopifySource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SkipErrorFile. func (s SkipErrorFile) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dataInconsistency", &s.DataInconsistency) populate(objectMap, "fileMissing", &s.FileMissing) return json.Marshal(objectMap) @@ -45331,7 +45625,7 @@ func (s *SkipErrorFile) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SmartsheetLinkedService. func (s SmartsheetLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", s.Annotations) populate(objectMap, "connectVia", s.ConnectVia) populate(objectMap, "description", s.Description) @@ -45375,10 +45669,10 @@ func (s *SmartsheetLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -45393,7 +45687,7 @@ func (s *SmartsheetLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SmartsheetLinkedServiceTypeProperties. func (s SmartsheetLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "apiToken", s.APIToken) populate(objectMap, "encryptedCredential", &s.EncryptedCredential) return json.Marshal(objectMap) @@ -45424,7 +45718,7 @@ func (s *SmartsheetLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type SnowflakeDataset. func (s SnowflakeDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", s.Annotations) populate(objectMap, "description", s.Description) populate(objectMap, "folder", s.Folder) @@ -45480,10 +45774,10 @@ func (s *SnowflakeDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -45498,7 +45792,7 @@ func (s *SnowflakeDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SnowflakeDatasetTypeProperties. func (s SnowflakeDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "schema", &s.Schema) populate(objectMap, "table", &s.Table) return json.Marshal(objectMap) @@ -45529,7 +45823,7 @@ func (s *SnowflakeDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SnowflakeExportCopyCommand. func (s SnowflakeExportCopyCommand) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalCopyOptions", s.AdditionalCopyOptions) populate(objectMap, "additionalFormatOptions", s.AdditionalFormatOptions) objectMap["type"] = "SnowflakeExportCopyCommand" @@ -45561,10 +45855,10 @@ func (s *SnowflakeExportCopyCommand) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -45579,7 +45873,7 @@ func (s *SnowflakeExportCopyCommand) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SnowflakeImportCopyCommand. func (s SnowflakeImportCopyCommand) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalCopyOptions", s.AdditionalCopyOptions) populate(objectMap, "additionalFormatOptions", s.AdditionalFormatOptions) objectMap["type"] = "SnowflakeImportCopyCommand" @@ -45611,10 +45905,10 @@ func (s *SnowflakeImportCopyCommand) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -45629,7 +45923,7 @@ func (s *SnowflakeImportCopyCommand) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SnowflakeLinkedService. func (s SnowflakeLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", s.Annotations) populate(objectMap, "connectVia", s.ConnectVia) populate(objectMap, "description", s.Description) @@ -45673,10 +45967,10 @@ func (s *SnowflakeLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -45691,7 +45985,7 @@ func (s *SnowflakeLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SnowflakeLinkedServiceTypeProperties. func (s SnowflakeLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "connectionString", &s.ConnectionString) populate(objectMap, "encryptedCredential", &s.EncryptedCredential) populate(objectMap, "password", s.Password) @@ -45726,7 +46020,7 @@ func (s *SnowflakeLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type SnowflakeSink. func (s SnowflakeSink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "disableMetricsCollection", &s.DisableMetricsCollection) populate(objectMap, "importSettings", s.ImportSettings) populate(objectMap, "maxConcurrentConnections", &s.MaxConcurrentConnections) @@ -45782,10 +46076,10 @@ func (s *SnowflakeSink) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -45800,7 +46094,7 @@ func (s *SnowflakeSink) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SnowflakeSource. func (s SnowflakeSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "disableMetricsCollection", &s.DisableMetricsCollection) populate(objectMap, "exportSettings", s.ExportSettings) populate(objectMap, "maxConcurrentConnections", &s.MaxConcurrentConnections) @@ -45848,10 +46142,10 @@ func (s *SnowflakeSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -45864,9 +46158,40 @@ func (s *SnowflakeSource) UnmarshalJSON(data []byte) error { return nil } +// MarshalJSON implements the json.Marshaller interface for type SparkConfigurationParametrizationReference. +func (s SparkConfigurationParametrizationReference) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "referenceName", &s.ReferenceName) + populate(objectMap, "type", s.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SparkConfigurationParametrizationReference. +func (s *SparkConfigurationParametrizationReference) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "referenceName": + err = unpopulate(val, "ReferenceName", &s.ReferenceName) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &s.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + // MarshalJSON implements the json.Marshaller interface for type SparkDatasetTypeProperties. func (s SparkDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "schema", &s.Schema) populate(objectMap, "table", &s.Table) populate(objectMap, "tableName", &s.TableName) @@ -45901,7 +46226,7 @@ func (s *SparkDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SparkLinkedService. func (s SparkLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", s.Annotations) populate(objectMap, "connectVia", s.ConnectVia) populate(objectMap, "description", s.Description) @@ -45945,10 +46270,10 @@ func (s *SparkLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -45963,7 +46288,7 @@ func (s *SparkLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SparkLinkedServiceTypeProperties. func (s SparkLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "allowHostNameCNMismatch", &s.AllowHostNameCNMismatch) populate(objectMap, "allowSelfSignedServerCert", &s.AllowSelfSignedServerCert) populate(objectMap, "authenticationType", s.AuthenticationType) @@ -46042,7 +46367,7 @@ func (s *SparkLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SparkObjectDataset. func (s SparkObjectDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", s.Annotations) populate(objectMap, "description", s.Description) populate(objectMap, "folder", s.Folder) @@ -46098,10 +46423,10 @@ func (s *SparkObjectDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -46116,7 +46441,7 @@ func (s *SparkObjectDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SparkSource. func (s SparkSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &s.AdditionalColumns) populate(objectMap, "disableMetricsCollection", &s.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &s.MaxConcurrentConnections) @@ -46168,10 +46493,10 @@ func (s *SparkSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -46186,7 +46511,7 @@ func (s *SparkSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SquareLinkedService. func (s SquareLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", s.Annotations) populate(objectMap, "connectVia", s.ConnectVia) populate(objectMap, "description", s.Description) @@ -46230,10 +46555,10 @@ func (s *SquareLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -46248,7 +46573,7 @@ func (s *SquareLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SquareLinkedServiceTypeProperties. func (s SquareLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "clientId", &s.ClientID) populate(objectMap, "clientSecret", s.ClientSecret) populate(objectMap, "connectionProperties", &s.ConnectionProperties) @@ -46307,7 +46632,7 @@ func (s *SquareLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SquareObjectDataset. func (s SquareObjectDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", s.Annotations) populate(objectMap, "description", s.Description) populate(objectMap, "folder", s.Folder) @@ -46363,10 +46688,10 @@ func (s *SquareObjectDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -46381,7 +46706,7 @@ func (s *SquareObjectDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SquareSource. func (s SquareSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &s.AdditionalColumns) populate(objectMap, "disableMetricsCollection", &s.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &s.MaxConcurrentConnections) @@ -46433,10 +46758,10 @@ func (s *SquareSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -46451,7 +46776,7 @@ func (s *SquareSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SsisEnvironment. func (s SsisEnvironment) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "description", s.Description) populate(objectMap, "folderId", s.FolderID) populate(objectMap, "id", s.ID) @@ -46498,7 +46823,7 @@ func (s *SsisEnvironment) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SsisEnvironmentReference. func (s SsisEnvironmentReference) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "environmentFolderName", s.EnvironmentFolderName) populate(objectMap, "environmentName", s.EnvironmentName) populate(objectMap, "id", s.ID) @@ -46537,7 +46862,7 @@ func (s *SsisEnvironmentReference) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SsisFolder. func (s SsisFolder) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "description", s.Description) populate(objectMap, "id", s.ID) populate(objectMap, "name", s.Name) @@ -46576,7 +46901,7 @@ func (s *SsisFolder) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SsisObjectMetadata. func (s SsisObjectMetadata) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "description", s.Description) populate(objectMap, "id", s.ID) populate(objectMap, "name", s.Name) @@ -46615,7 +46940,7 @@ func (s *SsisObjectMetadata) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SsisObjectMetadataListResponse. func (s SsisObjectMetadataListResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", s.NextLink) populate(objectMap, "value", s.Value) return json.Marshal(objectMap) @@ -46646,7 +46971,7 @@ func (s *SsisObjectMetadataListResponse) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SsisObjectMetadataStatusResponse. func (s SsisObjectMetadataStatusResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "error", s.Error) populate(objectMap, "name", s.Name) populate(objectMap, "properties", s.Properties) @@ -46685,7 +47010,7 @@ func (s *SsisObjectMetadataStatusResponse) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SsisPackage. func (s SsisPackage) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "description", s.Description) populate(objectMap, "folderId", s.FolderID) populate(objectMap, "id", s.ID) @@ -46740,7 +47065,7 @@ func (s *SsisPackage) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SsisParameter. func (s SsisParameter) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dataType", s.DataType) populate(objectMap, "defaultValue", s.DefaultValue) populate(objectMap, "description", s.Description) @@ -46811,7 +47136,7 @@ func (s *SsisParameter) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SsisProject. func (s SsisProject) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "description", s.Description) populate(objectMap, "environmentRefs", s.EnvironmentRefs) populate(objectMap, "folderId", s.FolderID) @@ -46866,7 +47191,7 @@ func (s *SsisProject) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SsisVariable. func (s SsisVariable) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dataType", s.DataType) populate(objectMap, "description", s.Description) populate(objectMap, "id", s.ID) @@ -46917,7 +47242,7 @@ func (s *SsisVariable) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type StagingSettings. func (s StagingSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "enableCompression", &s.EnableCompression) populate(objectMap, "linkedServiceName", s.LinkedServiceName) populate(objectMap, "path", &s.Path) @@ -46949,10 +47274,10 @@ func (s *StagingSettings) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -46967,7 +47292,7 @@ func (s *StagingSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type StoreReadSettings. func (s StoreReadSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "disableMetricsCollection", &s.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &s.MaxConcurrentConnections) objectMap["type"] = s.Type @@ -46999,10 +47324,10 @@ func (s *StoreReadSettings) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -47017,7 +47342,7 @@ func (s *StoreReadSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type StoreWriteSettings. func (s StoreWriteSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "copyBehavior", &s.CopyBehavior) populate(objectMap, "disableMetricsCollection", &s.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &s.MaxConcurrentConnections) @@ -47053,10 +47378,10 @@ func (s *StoreWriteSettings) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -47071,7 +47396,7 @@ func (s *StoreWriteSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SwitchActivity. func (s SwitchActivity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", s.DependsOn) populate(objectMap, "description", s.Description) populate(objectMap, "name", s.Name) @@ -47115,10 +47440,10 @@ func (s *SwitchActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -47133,7 +47458,7 @@ func (s *SwitchActivity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SwitchActivityTypeProperties. func (s SwitchActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "cases", s.Cases) populate(objectMap, "defaultActivities", s.DefaultActivities) populate(objectMap, "on", s.On) @@ -47168,7 +47493,7 @@ func (s *SwitchActivityTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SwitchCase. func (s SwitchCase) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "activities", s.Activities) populate(objectMap, "value", s.Value) return json.Marshal(objectMap) @@ -47199,7 +47524,7 @@ func (s *SwitchCase) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SybaseLinkedService. func (s SybaseLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", s.Annotations) populate(objectMap, "connectVia", s.ConnectVia) populate(objectMap, "description", s.Description) @@ -47243,10 +47568,10 @@ func (s *SybaseLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -47261,7 +47586,7 @@ func (s *SybaseLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SybaseLinkedServiceTypeProperties. func (s SybaseLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "authenticationType", s.AuthenticationType) populate(objectMap, "database", &s.Database) populate(objectMap, "encryptedCredential", &s.EncryptedCredential) @@ -47312,7 +47637,7 @@ func (s *SybaseLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SybaseSource. func (s SybaseSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &s.AdditionalColumns) populate(objectMap, "disableMetricsCollection", &s.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &s.MaxConcurrentConnections) @@ -47364,10 +47689,10 @@ func (s *SybaseSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -47382,7 +47707,7 @@ func (s *SybaseSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SybaseTableDataset. func (s SybaseTableDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", s.Annotations) populate(objectMap, "description", s.Description) populate(objectMap, "folder", s.Folder) @@ -47438,10 +47763,10 @@ func (s *SybaseTableDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -47456,7 +47781,7 @@ func (s *SybaseTableDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SybaseTableDatasetTypeProperties. func (s SybaseTableDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "tableName", &s.TableName) return json.Marshal(objectMap) } @@ -47483,7 +47808,7 @@ func (s *SybaseTableDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SynapseNotebookActivity. func (s SynapseNotebookActivity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", s.DependsOn) populate(objectMap, "description", s.Description) populate(objectMap, "linkedServiceName", s.LinkedServiceName) @@ -47535,10 +47860,10 @@ func (s *SynapseNotebookActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -47553,7 +47878,7 @@ func (s *SynapseNotebookActivity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SynapseNotebookActivityTypeProperties. func (s SynapseNotebookActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "conf", &s.Conf) populate(objectMap, "driverSize", &s.DriverSize) populate(objectMap, "executorSize", &s.ExecutorSize) @@ -47604,7 +47929,7 @@ func (s *SynapseNotebookActivityTypeProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type SynapseNotebookReference. func (s SynapseNotebookReference) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "referenceName", &s.ReferenceName) populate(objectMap, "type", s.Type) return json.Marshal(objectMap) @@ -47635,19 +47960,23 @@ func (s *SynapseNotebookReference) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SynapseSparkJobActivityTypeProperties. func (s SynapseSparkJobActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "args", s.Arguments) populate(objectMap, "className", &s.ClassName) populate(objectMap, "conf", &s.Conf) + populate(objectMap, "configurationType", s.ConfigurationType) populate(objectMap, "driverSize", &s.DriverSize) populate(objectMap, "executorSize", &s.ExecutorSize) populate(objectMap, "file", &s.File) populate(objectMap, "files", s.Files) populate(objectMap, "filesV2", s.FilesV2) - populate(objectMap, "numExecutors", s.NumExecutors) + populate(objectMap, "numExecutors", &s.NumExecutors) populate(objectMap, "pythonCodeReference", s.PythonCodeReference) + populate(objectMap, "scanFolder", &s.ScanFolder) + populate(objectMap, "sparkConfig", s.SparkConfig) populate(objectMap, "sparkJob", s.SparkJob) populate(objectMap, "targetBigDataPool", s.TargetBigDataPool) + populate(objectMap, "targetSparkConfiguration", s.TargetSparkConfiguration) return json.Marshal(objectMap) } @@ -47669,6 +47998,9 @@ func (s *SynapseSparkJobActivityTypeProperties) UnmarshalJSON(data []byte) error case "conf": err = unpopulate(val, "Conf", &s.Conf) delete(rawMsg, key) + case "configurationType": + err = unpopulate(val, "ConfigurationType", &s.ConfigurationType) + delete(rawMsg, key) case "driverSize": err = unpopulate(val, "DriverSize", &s.DriverSize) delete(rawMsg, key) @@ -47690,12 +48022,21 @@ func (s *SynapseSparkJobActivityTypeProperties) UnmarshalJSON(data []byte) error case "pythonCodeReference": err = unpopulate(val, "PythonCodeReference", &s.PythonCodeReference) delete(rawMsg, key) + case "scanFolder": + err = unpopulate(val, "ScanFolder", &s.ScanFolder) + delete(rawMsg, key) + case "sparkConfig": + err = unpopulate(val, "SparkConfig", &s.SparkConfig) + delete(rawMsg, key) case "sparkJob": err = unpopulate(val, "SparkJob", &s.SparkJob) delete(rawMsg, key) case "targetBigDataPool": err = unpopulate(val, "TargetBigDataPool", &s.TargetBigDataPool) delete(rawMsg, key) + case "targetSparkConfiguration": + err = unpopulate(val, "TargetSparkConfiguration", &s.TargetSparkConfiguration) + delete(rawMsg, key) } if err != nil { return fmt.Errorf("unmarshalling type %T: %v", s, err) @@ -47706,7 +48047,7 @@ func (s *SynapseSparkJobActivityTypeProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type SynapseSparkJobDefinitionActivity. func (s SynapseSparkJobDefinitionActivity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", s.DependsOn) populate(objectMap, "description", s.Description) populate(objectMap, "linkedServiceName", s.LinkedServiceName) @@ -47758,10 +48099,10 @@ func (s *SynapseSparkJobDefinitionActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -47776,7 +48117,7 @@ func (s *SynapseSparkJobDefinitionActivity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SynapseSparkJobReference. func (s SynapseSparkJobReference) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "referenceName", &s.ReferenceName) populate(objectMap, "type", s.Type) return json.Marshal(objectMap) @@ -47807,7 +48148,7 @@ func (s *SynapseSparkJobReference) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TabularSource. func (t TabularSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &t.AdditionalColumns) populate(objectMap, "disableMetricsCollection", &t.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &t.MaxConcurrentConnections) @@ -47855,10 +48196,10 @@ func (t *TabularSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if t.AdditionalProperties == nil { - t.AdditionalProperties = map[string]interface{}{} + t.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) t.AdditionalProperties[key] = aux } @@ -47873,7 +48214,7 @@ func (t *TabularSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TarGZipReadSettings. func (t TarGZipReadSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "preserveCompressionFileNameAsFolder", &t.PreserveCompressionFileNameAsFolder) objectMap["type"] = "TarGZipReadSettings" if t.AdditionalProperties != nil { @@ -47901,10 +48242,10 @@ func (t *TarGZipReadSettings) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if t.AdditionalProperties == nil { - t.AdditionalProperties = map[string]interface{}{} + t.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) t.AdditionalProperties[key] = aux } @@ -47919,7 +48260,7 @@ func (t *TarGZipReadSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TarReadSettings. func (t TarReadSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "preserveCompressionFileNameAsFolder", &t.PreserveCompressionFileNameAsFolder) objectMap["type"] = "TarReadSettings" if t.AdditionalProperties != nil { @@ -47947,10 +48288,10 @@ func (t *TarReadSettings) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if t.AdditionalProperties == nil { - t.AdditionalProperties = map[string]interface{}{} + t.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) t.AdditionalProperties[key] = aux } @@ -47965,7 +48306,7 @@ func (t *TarReadSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TeamDeskLinkedService. func (t TeamDeskLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", t.Annotations) populate(objectMap, "connectVia", t.ConnectVia) populate(objectMap, "description", t.Description) @@ -48009,10 +48350,10 @@ func (t *TeamDeskLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if t.AdditionalProperties == nil { - t.AdditionalProperties = map[string]interface{}{} + t.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) t.AdditionalProperties[key] = aux } @@ -48027,7 +48368,7 @@ func (t *TeamDeskLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TeamDeskLinkedServiceTypeProperties. func (t TeamDeskLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "apiToken", t.APIToken) populate(objectMap, "authenticationType", t.AuthenticationType) populate(objectMap, "encryptedCredential", &t.EncryptedCredential) @@ -48074,7 +48415,7 @@ func (t *TeamDeskLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TeradataLinkedService. func (t TeradataLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", t.Annotations) populate(objectMap, "connectVia", t.ConnectVia) populate(objectMap, "description", t.Description) @@ -48118,10 +48459,10 @@ func (t *TeradataLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if t.AdditionalProperties == nil { - t.AdditionalProperties = map[string]interface{}{} + t.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) t.AdditionalProperties[key] = aux } @@ -48136,7 +48477,7 @@ func (t *TeradataLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TeradataLinkedServiceTypeProperties. func (t TeradataLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "authenticationType", t.AuthenticationType) populate(objectMap, "connectionString", &t.ConnectionString) populate(objectMap, "encryptedCredential", &t.EncryptedCredential) @@ -48183,7 +48524,7 @@ func (t *TeradataLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TeradataPartitionSettings. func (t TeradataPartitionSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "partitionColumnName", &t.PartitionColumnName) populate(objectMap, "partitionLowerBound", &t.PartitionLowerBound) populate(objectMap, "partitionUpperBound", &t.PartitionUpperBound) @@ -48218,7 +48559,7 @@ func (t *TeradataPartitionSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TeradataSource. func (t TeradataSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &t.AdditionalColumns) populate(objectMap, "disableMetricsCollection", &t.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &t.MaxConcurrentConnections) @@ -48278,10 +48619,10 @@ func (t *TeradataSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if t.AdditionalProperties == nil { - t.AdditionalProperties = map[string]interface{}{} + t.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) t.AdditionalProperties[key] = aux } @@ -48296,7 +48637,7 @@ func (t *TeradataSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TeradataTableDataset. func (t TeradataTableDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", t.Annotations) populate(objectMap, "description", t.Description) populate(objectMap, "folder", t.Folder) @@ -48352,10 +48693,10 @@ func (t *TeradataTableDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if t.AdditionalProperties == nil { - t.AdditionalProperties = map[string]interface{}{} + t.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) t.AdditionalProperties[key] = aux } @@ -48370,7 +48711,7 @@ func (t *TeradataTableDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TeradataTableDatasetTypeProperties. func (t TeradataTableDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "database", &t.Database) populate(objectMap, "table", &t.Table) return json.Marshal(objectMap) @@ -48401,7 +48742,7 @@ func (t *TeradataTableDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TextFormat. func (t TextFormat) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "columnDelimiter", &t.ColumnDelimiter) populate(objectMap, "deserializer", &t.Deserializer) populate(objectMap, "encodingName", &t.EncodingName) @@ -48469,10 +48810,10 @@ func (t *TextFormat) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if t.AdditionalProperties == nil { - t.AdditionalProperties = map[string]interface{}{} + t.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) t.AdditionalProperties[key] = aux } @@ -48487,7 +48828,7 @@ func (t *TextFormat) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Transformation. func (t Transformation) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dataset", t.Dataset) populate(objectMap, "description", t.Description) populate(objectMap, "flowlet", t.Flowlet) @@ -48530,7 +48871,7 @@ func (t *Transformation) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Trigger. func (t Trigger) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", t.Annotations) populate(objectMap, "description", t.Description) populate(objectMap, "runtimeState", t.RuntimeState) @@ -48566,10 +48907,10 @@ func (t *Trigger) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if t.AdditionalProperties == nil { - t.AdditionalProperties = map[string]interface{}{} + t.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) t.AdditionalProperties[key] = aux } @@ -48584,7 +48925,7 @@ func (t *Trigger) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TriggerDependencyReference. func (t TriggerDependencyReference) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "referenceTrigger", t.ReferenceTrigger) objectMap["type"] = "TriggerDependencyReference" return json.Marshal(objectMap) @@ -48615,7 +48956,7 @@ func (t *TriggerDependencyReference) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TriggerFilterParameters. func (t TriggerFilterParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "continuationToken", t.ContinuationToken) populate(objectMap, "parentTriggerName", t.ParentTriggerName) return json.Marshal(objectMap) @@ -48646,7 +48987,7 @@ func (t *TriggerFilterParameters) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TriggerListResponse. func (t TriggerListResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", t.NextLink) populate(objectMap, "value", t.Value) return json.Marshal(objectMap) @@ -48677,7 +49018,7 @@ func (t *TriggerListResponse) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TriggerPipelineReference. func (t TriggerPipelineReference) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "parameters", t.Parameters) populate(objectMap, "pipelineReference", t.PipelineReference) return json.Marshal(objectMap) @@ -48708,7 +49049,7 @@ func (t *TriggerPipelineReference) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TriggerQueryResponse. func (t TriggerQueryResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "continuationToken", t.ContinuationToken) populate(objectMap, "value", t.Value) return json.Marshal(objectMap) @@ -48739,7 +49080,7 @@ func (t *TriggerQueryResponse) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TriggerReference. func (t TriggerReference) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "referenceName", t.ReferenceName) populate(objectMap, "type", t.Type) return json.Marshal(objectMap) @@ -48770,7 +49111,7 @@ func (t *TriggerReference) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TriggerResource. func (t TriggerResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "etag", t.Etag) populate(objectMap, "id", t.ID) populate(objectMap, "name", t.Name) @@ -48813,7 +49154,7 @@ func (t *TriggerResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TriggerRun. func (t TriggerRun) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependencyStatus", t.DependencyStatus) populate(objectMap, "message", t.Message) populate(objectMap, "properties", t.Properties) @@ -48873,10 +49214,10 @@ func (t *TriggerRun) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if t.AdditionalProperties == nil { - t.AdditionalProperties = map[string]interface{}{} + t.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) t.AdditionalProperties[key] = aux } @@ -48891,7 +49232,7 @@ func (t *TriggerRun) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TriggerRunsQueryResponse. func (t TriggerRunsQueryResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "continuationToken", t.ContinuationToken) populate(objectMap, "value", t.Value) return json.Marshal(objectMap) @@ -48922,7 +49263,7 @@ func (t *TriggerRunsQueryResponse) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TriggerSubscriptionOperationStatus. func (t TriggerSubscriptionOperationStatus) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "status", t.Status) populate(objectMap, "triggerName", t.TriggerName) return json.Marshal(objectMap) @@ -48953,7 +49294,7 @@ func (t *TriggerSubscriptionOperationStatus) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TumblingWindowTrigger. func (t TumblingWindowTrigger) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", t.Annotations) populate(objectMap, "description", t.Description) populate(objectMap, "pipeline", t.Pipeline) @@ -48997,10 +49338,10 @@ func (t *TumblingWindowTrigger) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if t.AdditionalProperties == nil { - t.AdditionalProperties = map[string]interface{}{} + t.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) t.AdditionalProperties[key] = aux } @@ -49015,7 +49356,7 @@ func (t *TumblingWindowTrigger) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TumblingWindowTriggerDependencyReference. func (t TumblingWindowTriggerDependencyReference) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "offset", t.Offset) populate(objectMap, "referenceTrigger", t.ReferenceTrigger) populate(objectMap, "size", t.Size) @@ -49054,7 +49395,7 @@ func (t *TumblingWindowTriggerDependencyReference) UnmarshalJSON(data []byte) er // MarshalJSON implements the json.Marshaller interface for type TumblingWindowTriggerTypeProperties. func (t TumblingWindowTriggerTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "delay", &t.Delay) populate(objectMap, "dependsOn", t.DependsOn) populateTimeRFC3339(objectMap, "endTime", t.EndTime) @@ -49109,7 +49450,7 @@ func (t *TumblingWindowTriggerTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TwilioLinkedService. func (t TwilioLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", t.Annotations) populate(objectMap, "connectVia", t.ConnectVia) populate(objectMap, "description", t.Description) @@ -49153,10 +49494,10 @@ func (t *TwilioLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if t.AdditionalProperties == nil { - t.AdditionalProperties = map[string]interface{}{} + t.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) t.AdditionalProperties[key] = aux } @@ -49171,7 +49512,7 @@ func (t *TwilioLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TwilioLinkedServiceTypeProperties. func (t TwilioLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "password", t.Password) populate(objectMap, "userName", &t.UserName) return json.Marshal(objectMap) @@ -49202,7 +49543,7 @@ func (t *TwilioLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type UntilActivity. func (u UntilActivity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", u.DependsOn) populate(objectMap, "description", u.Description) populate(objectMap, "name", u.Name) @@ -49246,10 +49587,10 @@ func (u *UntilActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if u.AdditionalProperties == nil { - u.AdditionalProperties = map[string]interface{}{} + u.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) u.AdditionalProperties[key] = aux } @@ -49264,7 +49605,7 @@ func (u *UntilActivity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type UntilActivityTypeProperties. func (u UntilActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "activities", u.Activities) populate(objectMap, "expression", u.Expression) populate(objectMap, "timeout", &u.Timeout) @@ -49299,7 +49640,7 @@ func (u *UntilActivityTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type UpdateIntegrationRuntimeNodeRequest. func (u UpdateIntegrationRuntimeNodeRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "concurrentJobsLimit", u.ConcurrentJobsLimit) return json.Marshal(objectMap) } @@ -49326,7 +49667,7 @@ func (u *UpdateIntegrationRuntimeNodeRequest) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type UpdateIntegrationRuntimeRequest. func (u UpdateIntegrationRuntimeRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "autoUpdate", u.AutoUpdate) populate(objectMap, "updateDelayOffset", u.UpdateDelayOffset) return json.Marshal(objectMap) @@ -49357,7 +49698,7 @@ func (u *UpdateIntegrationRuntimeRequest) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type UserAccessPolicy. func (u UserAccessPolicy) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "accessResourcePath", u.AccessResourcePath) populate(objectMap, "expireTime", u.ExpireTime) populate(objectMap, "permissions", u.Permissions) @@ -49400,7 +49741,7 @@ func (u *UserAccessPolicy) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type UserProperty. func (u UserProperty) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "name", u.Name) populate(objectMap, "value", &u.Value) return json.Marshal(objectMap) @@ -49431,7 +49772,7 @@ func (u *UserProperty) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ValidationActivity. func (v ValidationActivity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", v.DependsOn) populate(objectMap, "description", v.Description) populate(objectMap, "name", v.Name) @@ -49475,10 +49816,10 @@ func (v *ValidationActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if v.AdditionalProperties == nil { - v.AdditionalProperties = map[string]interface{}{} + v.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) v.AdditionalProperties[key] = aux } @@ -49493,7 +49834,7 @@ func (v *ValidationActivity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ValidationActivityTypeProperties. func (v ValidationActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "childItems", &v.ChildItems) populate(objectMap, "dataset", v.Dataset) populate(objectMap, "minimumSize", &v.MinimumSize) @@ -49536,7 +49877,7 @@ func (v *ValidationActivityTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type VariableSpecification. func (v VariableSpecification) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "defaultValue", &v.DefaultValue) populate(objectMap, "type", v.Type) return json.Marshal(objectMap) @@ -49567,7 +49908,7 @@ func (v *VariableSpecification) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type VerticaDatasetTypeProperties. func (v VerticaDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "schema", &v.Schema) populate(objectMap, "table", &v.Table) populate(objectMap, "tableName", &v.TableName) @@ -49602,7 +49943,7 @@ func (v *VerticaDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type VerticaLinkedService. func (v VerticaLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", v.Annotations) populate(objectMap, "connectVia", v.ConnectVia) populate(objectMap, "description", v.Description) @@ -49646,10 +49987,10 @@ func (v *VerticaLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if v.AdditionalProperties == nil { - v.AdditionalProperties = map[string]interface{}{} + v.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) v.AdditionalProperties[key] = aux } @@ -49664,7 +50005,7 @@ func (v *VerticaLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type VerticaLinkedServiceTypeProperties. func (v VerticaLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "connectionString", &v.ConnectionString) populate(objectMap, "encryptedCredential", &v.EncryptedCredential) populate(objectMap, "pwd", v.Pwd) @@ -49699,7 +50040,7 @@ func (v *VerticaLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type VerticaSource. func (v VerticaSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &v.AdditionalColumns) populate(objectMap, "disableMetricsCollection", &v.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &v.MaxConcurrentConnections) @@ -49751,10 +50092,10 @@ func (v *VerticaSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if v.AdditionalProperties == nil { - v.AdditionalProperties = map[string]interface{}{} + v.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) v.AdditionalProperties[key] = aux } @@ -49769,7 +50110,7 @@ func (v *VerticaSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type VerticaTableDataset. func (v VerticaTableDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", v.Annotations) populate(objectMap, "description", v.Description) populate(objectMap, "folder", v.Folder) @@ -49825,10 +50166,10 @@ func (v *VerticaTableDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if v.AdditionalProperties == nil { - v.AdditionalProperties = map[string]interface{}{} + v.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) v.AdditionalProperties[key] = aux } @@ -49843,7 +50184,7 @@ func (v *VerticaTableDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type WaitActivity. func (w WaitActivity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", w.DependsOn) populate(objectMap, "description", w.Description) populate(objectMap, "name", w.Name) @@ -49887,10 +50228,10 @@ func (w *WaitActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if w.AdditionalProperties == nil { - w.AdditionalProperties = map[string]interface{}{} + w.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) w.AdditionalProperties[key] = aux } @@ -49905,7 +50246,7 @@ func (w *WaitActivity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type WaitActivityTypeProperties. func (w WaitActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "waitTimeInSeconds", &w.WaitTimeInSeconds) return json.Marshal(objectMap) } @@ -49932,7 +50273,7 @@ func (w *WaitActivityTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type WebActivity. func (w WebActivity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", w.DependsOn) populate(objectMap, "description", w.Description) populate(objectMap, "linkedServiceName", w.LinkedServiceName) @@ -49984,10 +50325,10 @@ func (w *WebActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if w.AdditionalProperties == nil { - w.AdditionalProperties = map[string]interface{}{} + w.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) w.AdditionalProperties[key] = aux } @@ -50002,7 +50343,7 @@ func (w *WebActivity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type WebActivityAuthentication. func (w WebActivityAuthentication) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "credential", w.Credential) populate(objectMap, "password", w.Password) populate(objectMap, "pfx", w.Pfx) @@ -50053,7 +50394,7 @@ func (w *WebActivityAuthentication) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type WebActivityTypeProperties. func (w WebActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "authentication", w.Authentication) populate(objectMap, "body", &w.Body) populate(objectMap, "connectVia", w.ConnectVia) @@ -50112,7 +50453,7 @@ func (w *WebActivityTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type WebAnonymousAuthentication. func (w WebAnonymousAuthentication) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) objectMap["authenticationType"] = WebAuthenticationTypeAnonymous populate(objectMap, "url", &w.URL) return json.Marshal(objectMap) @@ -50143,7 +50484,7 @@ func (w *WebAnonymousAuthentication) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type WebBasicAuthentication. func (w WebBasicAuthentication) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) objectMap["authenticationType"] = WebAuthenticationTypeBasic populate(objectMap, "password", w.Password) populate(objectMap, "url", &w.URL) @@ -50182,7 +50523,7 @@ func (w *WebBasicAuthentication) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type WebClientCertificateAuthentication. func (w WebClientCertificateAuthentication) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) objectMap["authenticationType"] = WebAuthenticationTypeClientCertificate populate(objectMap, "password", w.Password) populate(objectMap, "pfx", w.Pfx) @@ -50221,7 +50562,7 @@ func (w *WebClientCertificateAuthentication) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type WebHookActivity. func (w WebHookActivity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dependsOn", w.DependsOn) populate(objectMap, "description", w.Description) populate(objectMap, "name", w.Name) @@ -50265,10 +50606,10 @@ func (w *WebHookActivity) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if w.AdditionalProperties == nil { - w.AdditionalProperties = map[string]interface{}{} + w.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) w.AdditionalProperties[key] = aux } @@ -50283,7 +50624,7 @@ func (w *WebHookActivity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type WebHookActivityTypeProperties. func (w WebHookActivityTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "authentication", w.Authentication) populate(objectMap, "body", &w.Body) populate(objectMap, "headers", &w.Headers) @@ -50334,7 +50675,7 @@ func (w *WebHookActivityTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type WebLinkedService. func (w WebLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", w.Annotations) populate(objectMap, "connectVia", w.ConnectVia) populate(objectMap, "description", w.Description) @@ -50378,10 +50719,10 @@ func (w *WebLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if w.AdditionalProperties == nil { - w.AdditionalProperties = map[string]interface{}{} + w.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) w.AdditionalProperties[key] = aux } @@ -50396,7 +50737,7 @@ func (w *WebLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type WebLinkedServiceTypeProperties. func (w WebLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) objectMap["authenticationType"] = w.AuthenticationType populate(objectMap, "url", &w.URL) return json.Marshal(objectMap) @@ -50427,7 +50768,7 @@ func (w *WebLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type WebSource. func (w WebSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &w.AdditionalColumns) populate(objectMap, "disableMetricsCollection", &w.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &w.MaxConcurrentConnections) @@ -50471,10 +50812,10 @@ func (w *WebSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if w.AdditionalProperties == nil { - w.AdditionalProperties = map[string]interface{}{} + w.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) w.AdditionalProperties[key] = aux } @@ -50489,7 +50830,7 @@ func (w *WebSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type WebTableDataset. func (w WebTableDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", w.Annotations) populate(objectMap, "description", w.Description) populate(objectMap, "folder", w.Folder) @@ -50545,10 +50886,10 @@ func (w *WebTableDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if w.AdditionalProperties == nil { - w.AdditionalProperties = map[string]interface{}{} + w.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) w.AdditionalProperties[key] = aux } @@ -50563,7 +50904,7 @@ func (w *WebTableDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type WebTableDatasetTypeProperties. func (w WebTableDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "index", &w.Index) populate(objectMap, "path", &w.Path) return json.Marshal(objectMap) @@ -50594,7 +50935,7 @@ func (w *WebTableDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type WranglingDataFlow. func (w WranglingDataFlow) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", w.Annotations) populate(objectMap, "description", w.Description) populate(objectMap, "folder", w.Folder) @@ -50637,7 +50978,7 @@ func (w *WranglingDataFlow) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type XMLDataset. func (x XMLDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", x.Annotations) populate(objectMap, "description", x.Description) populate(objectMap, "folder", x.Folder) @@ -50693,10 +51034,10 @@ func (x *XMLDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if x.AdditionalProperties == nil { - x.AdditionalProperties = map[string]interface{}{} + x.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) x.AdditionalProperties[key] = aux } @@ -50711,7 +51052,7 @@ func (x *XMLDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type XMLDatasetTypeProperties. func (x XMLDatasetTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "compression", x.Compression) populate(objectMap, "encodingName", &x.EncodingName) populate(objectMap, "location", x.Location) @@ -50750,7 +51091,7 @@ func (x *XMLDatasetTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type XMLReadSettings. func (x XMLReadSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "compressionProperties", x.CompressionProperties) populate(objectMap, "detectDataType", &x.DetectDataType) populate(objectMap, "namespacePrefixes", &x.NamespacePrefixes) @@ -50794,10 +51135,10 @@ func (x *XMLReadSettings) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if x.AdditionalProperties == nil { - x.AdditionalProperties = map[string]interface{}{} + x.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) x.AdditionalProperties[key] = aux } @@ -50812,7 +51153,7 @@ func (x *XMLReadSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type XMLSource. func (x XMLSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &x.AdditionalColumns) populate(objectMap, "disableMetricsCollection", &x.DisableMetricsCollection) populate(objectMap, "formatSettings", x.FormatSettings) @@ -50864,10 +51205,10 @@ func (x *XMLSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if x.AdditionalProperties == nil { - x.AdditionalProperties = map[string]interface{}{} + x.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) x.AdditionalProperties[key] = aux } @@ -50882,7 +51223,7 @@ func (x *XMLSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type XeroLinkedService. func (x XeroLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", x.Annotations) populate(objectMap, "connectVia", x.ConnectVia) populate(objectMap, "description", x.Description) @@ -50926,10 +51267,10 @@ func (x *XeroLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if x.AdditionalProperties == nil { - x.AdditionalProperties = map[string]interface{}{} + x.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) x.AdditionalProperties[key] = aux } @@ -50944,7 +51285,7 @@ func (x *XeroLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type XeroLinkedServiceTypeProperties. func (x XeroLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "connectionProperties", &x.ConnectionProperties) populate(objectMap, "consumerKey", x.ConsumerKey) populate(objectMap, "encryptedCredential", &x.EncryptedCredential) @@ -50999,7 +51340,7 @@ func (x *XeroLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type XeroObjectDataset. func (x XeroObjectDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", x.Annotations) populate(objectMap, "description", x.Description) populate(objectMap, "folder", x.Folder) @@ -51055,10 +51396,10 @@ func (x *XeroObjectDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if x.AdditionalProperties == nil { - x.AdditionalProperties = map[string]interface{}{} + x.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) x.AdditionalProperties[key] = aux } @@ -51073,7 +51414,7 @@ func (x *XeroObjectDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type XeroSource. func (x XeroSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &x.AdditionalColumns) populate(objectMap, "disableMetricsCollection", &x.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &x.MaxConcurrentConnections) @@ -51125,10 +51466,10 @@ func (x *XeroSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if x.AdditionalProperties == nil { - x.AdditionalProperties = map[string]interface{}{} + x.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) x.AdditionalProperties[key] = aux } @@ -51143,7 +51484,7 @@ func (x *XeroSource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ZendeskLinkedService. func (z ZendeskLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", z.Annotations) populate(objectMap, "connectVia", z.ConnectVia) populate(objectMap, "description", z.Description) @@ -51187,10 +51528,10 @@ func (z *ZendeskLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if z.AdditionalProperties == nil { - z.AdditionalProperties = map[string]interface{}{} + z.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) z.AdditionalProperties[key] = aux } @@ -51205,7 +51546,7 @@ func (z *ZendeskLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ZendeskLinkedServiceTypeProperties. func (z ZendeskLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "apiToken", z.APIToken) populate(objectMap, "authenticationType", z.AuthenticationType) populate(objectMap, "encryptedCredential", &z.EncryptedCredential) @@ -51252,7 +51593,7 @@ func (z *ZendeskLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ZipDeflateReadSettings. func (z ZipDeflateReadSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "preserveZipFileNameAsFolder", &z.PreserveZipFileNameAsFolder) objectMap["type"] = "ZipDeflateReadSettings" if z.AdditionalProperties != nil { @@ -51280,10 +51621,10 @@ func (z *ZipDeflateReadSettings) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if z.AdditionalProperties == nil { - z.AdditionalProperties = map[string]interface{}{} + z.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) z.AdditionalProperties[key] = aux } @@ -51298,7 +51639,7 @@ func (z *ZipDeflateReadSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ZohoLinkedService. func (z ZohoLinkedService) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", z.Annotations) populate(objectMap, "connectVia", z.ConnectVia) populate(objectMap, "description", z.Description) @@ -51342,10 +51683,10 @@ func (z *ZohoLinkedService) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if z.AdditionalProperties == nil { - z.AdditionalProperties = map[string]interface{}{} + z.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) z.AdditionalProperties[key] = aux } @@ -51360,7 +51701,7 @@ func (z *ZohoLinkedService) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ZohoLinkedServiceTypeProperties. func (z ZohoLinkedServiceTypeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "accessToken", z.AccessToken) populate(objectMap, "connectionProperties", &z.ConnectionProperties) populate(objectMap, "encryptedCredential", &z.EncryptedCredential) @@ -51411,7 +51752,7 @@ func (z *ZohoLinkedServiceTypeProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ZohoObjectDataset. func (z ZohoObjectDataset) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "annotations", z.Annotations) populate(objectMap, "description", z.Description) populate(objectMap, "folder", z.Folder) @@ -51467,10 +51808,10 @@ func (z *ZohoObjectDataset) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if z.AdditionalProperties == nil { - z.AdditionalProperties = map[string]interface{}{} + z.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) z.AdditionalProperties[key] = aux } @@ -51485,7 +51826,7 @@ func (z *ZohoObjectDataset) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ZohoSource. func (z ZohoSource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "additionalColumns", &z.AdditionalColumns) populate(objectMap, "disableMetricsCollection", &z.DisableMetricsCollection) populate(objectMap, "maxConcurrentConnections", &z.MaxConcurrentConnections) @@ -51537,10 +51878,10 @@ func (z *ZohoSource) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if z.AdditionalProperties == nil { - z.AdditionalProperties = map[string]interface{}{} + z.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) z.AdditionalProperties[key] = aux } @@ -51553,7 +51894,7 @@ func (z *ZohoSource) UnmarshalJSON(data []byte) error { return nil } -func populate(m map[string]interface{}, k string, v interface{}) { +func populate(m map[string]any, k string, v any) { if v == nil { return } else if azcore.IsNullValue(v) { @@ -51563,7 +51904,7 @@ func populate(m map[string]interface{}, k string, v interface{}) { } } -func unpopulate(data json.RawMessage, fn string, v interface{}) error { +func unpopulate(data json.RawMessage, fn string, v any) error { if data == nil { return nil } diff --git a/sdk/resourcemanager/datafactory/armdatafactory/operations_client.go b/sdk/resourcemanager/datafactory/armdatafactory/operations_client.go index 26a5b95922ce..8ef3594f7574 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/operations_client.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/operations_client.go @@ -28,8 +28,8 @@ type OperationsClient struct { } // NewOperationsClient creates a new instance of OperationsClient with the specified values. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*OperationsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -50,8 +50,9 @@ func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientO } // NewListPager - Lists the available Azure Data Factory API operations. +// // Generated from API version 2018-06-01 -// options - OperationsClientListOptions contains the optional parameters for the OperationsClient.List method. +// - 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]{ More: func(page OperationsClientListResponse) bool { diff --git a/sdk/resourcemanager/datafactory/armdatafactory/operations_client_example_test.go b/sdk/resourcemanager/datafactory/armdatafactory/operations_client_example_test.go index 18422c389c76..41ae1e3af49e 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/operations_client_example_test.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/operations_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armdatafactory_test @@ -16,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Operations_List.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Operations_List.json func ExampleOperationsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -29,13 +30,1015 @@ func ExampleOperationsClient_NewListPager() { } pager := client.NewListPager(nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.OperationListResponse = armdatafactory.OperationListResponse{ + // Value: []*armdatafactory.Operation{ + // { + // Name: to.Ptr("Microsoft.DataFactory/datafactories/providers/Microsoft.Insights/metricDefinitions/read"), + // Display: &armdatafactory.OperationDisplay{ + // Description: to.Ptr("Gets the available metrics for datafactories"), + // Operation: to.Ptr("Read datafactories metric definitions"), + // Provider: to.Ptr("Microsoft.DataFactory"), + // Resource: to.Ptr("datafactories"), + // }, + // Origin: to.Ptr("system"), + // Properties: &armdatafactory.OperationProperties{ + // ServiceSpecification: &armdatafactory.OperationServiceSpecification{ + // MetricSpecifications: []*armdatafactory.OperationMetricSpecification{ + // { + // Name: to.Ptr("FailedRuns"), + // AggregationType: to.Ptr("Total"), + // Availabilities: []*armdatafactory.OperationMetricAvailability{ + // { + // BlobDuration: to.Ptr("P1D"), + // TimeGrain: to.Ptr("PT1H"), + // }}, + // Dimensions: []*armdatafactory.OperationMetricDimension{ + // { + // Name: to.Ptr("pipelineName"), + // DisplayName: to.Ptr("Pipeline"), + // ToBeExportedForShoebox: to.Ptr(true), + // }, + // { + // Name: to.Ptr("activityName"), + // DisplayName: to.Ptr("Activity"), + // ToBeExportedForShoebox: to.Ptr(true), + // }, + // { + // Name: to.Ptr("windowEnd"), + // DisplayName: to.Ptr("Window End"), + // ToBeExportedForShoebox: to.Ptr(true), + // }, + // { + // Name: to.Ptr("windowStart"), + // DisplayName: to.Ptr("Window Start"), + // ToBeExportedForShoebox: to.Ptr(true), + // }}, + // DisplayName: to.Ptr("Failed Runs"), + // EnableRegionalMdmAccount: to.Ptr("false"), + // SourceMdmAccount: to.Ptr("MicrosoftDataFactoryProdShoebox"), + // SourceMdmNamespace: to.Ptr("ADFMetricsV1"), + // Unit: to.Ptr("Count"), + // }, + // { + // Name: to.Ptr("SuccessfulRuns"), + // AggregationType: to.Ptr("Total"), + // Availabilities: []*armdatafactory.OperationMetricAvailability{ + // { + // BlobDuration: to.Ptr("P1D"), + // TimeGrain: to.Ptr("PT1H"), + // }}, + // Dimensions: []*armdatafactory.OperationMetricDimension{ + // { + // Name: to.Ptr("pipelineName"), + // DisplayName: to.Ptr("Pipeline"), + // ToBeExportedForShoebox: to.Ptr(true), + // }, + // { + // Name: to.Ptr("activityName"), + // DisplayName: to.Ptr("Activity"), + // ToBeExportedForShoebox: to.Ptr(true), + // }, + // { + // Name: to.Ptr("windowEnd"), + // DisplayName: to.Ptr("Window End"), + // ToBeExportedForShoebox: to.Ptr(true), + // }, + // { + // Name: to.Ptr("windowStart"), + // DisplayName: to.Ptr("Window Start"), + // ToBeExportedForShoebox: to.Ptr(true), + // }}, + // DisplayName: to.Ptr("Successful Runs"), + // EnableRegionalMdmAccount: to.Ptr("false"), + // SourceMdmAccount: to.Ptr("MicrosoftDataFactoryProdShoebox"), + // SourceMdmNamespace: to.Ptr("ADFMetricsV1"), + // Unit: to.Ptr("Count"), + // }}, + // }, + // }, + // }, + // { + // Name: to.Ptr("Microsoft.DataFactory/datafactories/providers/Microsoft.Insights/diagnosticSettings/read"), + // Display: &armdatafactory.OperationDisplay{ + // Description: to.Ptr("Gets the diagnostic setting for the resource"), + // Operation: to.Ptr("Read diagnostic setting"), + // Provider: to.Ptr("Microsoft.DataFactory"), + // Resource: to.Ptr("datafactories"), + // }, + // Origin: to.Ptr("system"), + // }, + // { + // Name: to.Ptr("Microsoft.DataFactory/datafactories/providers/Microsoft.Insights/diagnosticSettings/write"), + // Display: &armdatafactory.OperationDisplay{ + // Description: to.Ptr("Creates or updates the diagnostic setting for the resource"), + // Operation: to.Ptr("Write diagnostic setting"), + // Provider: to.Ptr("Microsoft.DataFactory"), + // Resource: to.Ptr("datafactories"), + // }, + // Origin: to.Ptr("system"), + // }, + // { + // Name: to.Ptr("Microsoft.DataFactory/factories/providers/Microsoft.Insights/logDefinitions/read"), + // Display: &armdatafactory.OperationDisplay{ + // Description: to.Ptr("Gets the available logs for factories"), + // Operation: to.Ptr("Read factories log definitions"), + // Provider: to.Ptr("Microsoft.DataFactory"), + // Resource: to.Ptr("The log definition of factories"), + // }, + // Origin: to.Ptr("system"), + // Properties: &armdatafactory.OperationProperties{ + // ServiceSpecification: &armdatafactory.OperationServiceSpecification{ + // LogSpecifications: []*armdatafactory.OperationLogSpecification{ + // { + // Name: to.Ptr("ActivityRuns"), + // BlobDuration: to.Ptr("PT1H"), + // DisplayName: to.Ptr("Pipeline activity runs log"), + // }, + // { + // Name: to.Ptr("PipelineRuns"), + // BlobDuration: to.Ptr("PT1H"), + // DisplayName: to.Ptr("Pipeline runs log"), + // }, + // { + // Name: to.Ptr("TriggerRuns"), + // BlobDuration: to.Ptr("PT1H"), + // DisplayName: to.Ptr("Trigger runs log"), + // }}, + // }, + // }, + // }, + // { + // Name: to.Ptr("Microsoft.DataFactory/factories/providers/Microsoft.Insights/diagnosticSettings/read"), + // Display: &armdatafactory.OperationDisplay{ + // Description: to.Ptr("Gets the diagnostic setting for the resource"), + // Operation: to.Ptr("Read diagnostic setting"), + // Provider: to.Ptr("Microsoft.DataFactory"), + // Resource: to.Ptr("factories"), + // }, + // Origin: to.Ptr("system"), + // }, + // { + // Name: to.Ptr("Microsoft.DataFactory/factories/providers/Microsoft.Insights/diagnosticSettings/write"), + // Display: &armdatafactory.OperationDisplay{ + // Description: to.Ptr("Creates or updates the diagnostic setting for the resource"), + // Operation: to.Ptr("Write diagnostic setting"), + // Provider: to.Ptr("Microsoft.DataFactory"), + // Resource: to.Ptr("factories"), + // }, + // Origin: to.Ptr("system"), + // }, + // { + // Name: to.Ptr("Microsoft.DataFactory/factories/providers/Microsoft.Insights/metricDefinitions/read"), + // Display: &armdatafactory.OperationDisplay{ + // Description: to.Ptr("Gets the available metrics for factories"), + // Operation: to.Ptr("Read metric definitions"), + // Provider: to.Ptr("Microsoft.DataFactory"), + // Resource: to.Ptr("factories"), + // }, + // Origin: to.Ptr("system"), + // Properties: &armdatafactory.OperationProperties{ + // ServiceSpecification: &armdatafactory.OperationServiceSpecification{ + // MetricSpecifications: []*armdatafactory.OperationMetricSpecification{ + // { + // Name: to.Ptr("PipelineFailedRuns"), + // AggregationType: to.Ptr("Total"), + // Dimensions: []*armdatafactory.OperationMetricDimension{ + // { + // Name: to.Ptr("FailureType"), + // DisplayName: to.Ptr("Failure Type"), + // ToBeExportedForShoebox: to.Ptr(true), + // }, + // { + // Name: to.Ptr("Name"), + // DisplayName: to.Ptr("Pipeline"), + // ToBeExportedForShoebox: to.Ptr(true), + // }}, + // DisplayName: to.Ptr("Failed pipeline runs metrics"), + // EnableRegionalMdmAccount: to.Ptr("false"), + // SourceMdmAccount: to.Ptr("MicrosoftDataFactoryProdShoebox"), + // SourceMdmNamespace: to.Ptr("ADFMetrics"), + // Unit: to.Ptr("Count"), + // }, + // { + // Name: to.Ptr("PipelineSucceededRuns"), + // AggregationType: to.Ptr("Total"), + // Dimensions: []*armdatafactory.OperationMetricDimension{ + // { + // Name: to.Ptr("FailureType"), + // DisplayName: to.Ptr("Failure Type"), + // ToBeExportedForShoebox: to.Ptr(true), + // }, + // { + // Name: to.Ptr("Name"), + // DisplayName: to.Ptr("Pipeline"), + // ToBeExportedForShoebox: to.Ptr(true), + // }}, + // DisplayName: to.Ptr("Succeeded pipeline runs metrics"), + // EnableRegionalMdmAccount: to.Ptr("false"), + // SourceMdmAccount: to.Ptr("MicrosoftDataFactoryProdShoebox"), + // SourceMdmNamespace: to.Ptr("ADFMetrics"), + // Unit: to.Ptr("Count"), + // }, + // { + // Name: to.Ptr("ActivityFailedRuns"), + // AggregationType: to.Ptr("Total"), + // Dimensions: []*armdatafactory.OperationMetricDimension{ + // { + // Name: to.Ptr("ActivityType"), + // DisplayName: to.Ptr("Activity Type"), + // ToBeExportedForShoebox: to.Ptr(true), + // }, + // { + // Name: to.Ptr("PipelineName"), + // DisplayName: to.Ptr("Pipeline"), + // ToBeExportedForShoebox: to.Ptr(true), + // }, + // { + // Name: to.Ptr("FailureType"), + // DisplayName: to.Ptr("Failure Type"), + // ToBeExportedForShoebox: to.Ptr(true), + // }, + // { + // Name: to.Ptr("Name"), + // DisplayName: to.Ptr("Activity"), + // ToBeExportedForShoebox: to.Ptr(true), + // }}, + // DisplayName: to.Ptr("Failed activity runs metrics"), + // EnableRegionalMdmAccount: to.Ptr("false"), + // SourceMdmAccount: to.Ptr("MicrosoftDataFactoryProdShoebox"), + // SourceMdmNamespace: to.Ptr("ADFMetrics"), + // Unit: to.Ptr("Count"), + // }, + // { + // Name: to.Ptr("ActivitySucceededRuns"), + // AggregationType: to.Ptr("Total"), + // Dimensions: []*armdatafactory.OperationMetricDimension{ + // { + // Name: to.Ptr("ActivityType"), + // DisplayName: to.Ptr("Activity Type"), + // ToBeExportedForShoebox: to.Ptr(true), + // }, + // { + // Name: to.Ptr("PipelineName"), + // DisplayName: to.Ptr("Pipeline"), + // ToBeExportedForShoebox: to.Ptr(true), + // }, + // { + // Name: to.Ptr("FailureType"), + // DisplayName: to.Ptr("Failure Type"), + // ToBeExportedForShoebox: to.Ptr(true), + // }, + // { + // Name: to.Ptr("Name"), + // DisplayName: to.Ptr("Activity"), + // ToBeExportedForShoebox: to.Ptr(true), + // }}, + // DisplayName: to.Ptr("Succeeded activity runs metrics"), + // EnableRegionalMdmAccount: to.Ptr("false"), + // SourceMdmAccount: to.Ptr("MicrosoftDataFactoryProdShoebox"), + // SourceMdmNamespace: to.Ptr("ADFMetrics"), + // Unit: to.Ptr("Count"), + // }, + // { + // Name: to.Ptr("TriggerFailedRuns"), + // AggregationType: to.Ptr("Total"), + // Dimensions: []*armdatafactory.OperationMetricDimension{ + // { + // Name: to.Ptr("Name"), + // DisplayName: to.Ptr("Trigger"), + // ToBeExportedForShoebox: to.Ptr(true), + // }, + // { + // Name: to.Ptr("FailureType"), + // DisplayName: to.Ptr("Failure Type"), + // ToBeExportedForShoebox: to.Ptr(true), + // }}, + // DisplayName: to.Ptr("Failed trigger runs metrics"), + // EnableRegionalMdmAccount: to.Ptr("false"), + // SourceMdmAccount: to.Ptr("MicrosoftDataFactoryProdShoebox"), + // SourceMdmNamespace: to.Ptr("ADFMetrics"), + // Unit: to.Ptr("Count"), + // }, + // { + // Name: to.Ptr("TriggerSucceededRuns"), + // AggregationType: to.Ptr("Total"), + // Dimensions: []*armdatafactory.OperationMetricDimension{ + // { + // Name: to.Ptr("Name"), + // DisplayName: to.Ptr("Trigger"), + // ToBeExportedForShoebox: to.Ptr(true), + // }, + // { + // Name: to.Ptr("FailureType"), + // DisplayName: to.Ptr("Failure Type"), + // ToBeExportedForShoebox: to.Ptr(true), + // }}, + // DisplayName: to.Ptr("Succeeded trigger runs metrics"), + // EnableRegionalMdmAccount: to.Ptr("false"), + // SourceMdmAccount: to.Ptr("MicrosoftDataFactoryProdShoebox"), + // SourceMdmNamespace: to.Ptr("ADFMetrics"), + // Unit: to.Ptr("Count"), + // }, + // { + // Name: to.Ptr("IntegrationRuntimeCpuPercentage"), + // AggregationType: to.Ptr("Average"), + // Dimensions: []*armdatafactory.OperationMetricDimension{ + // { + // Name: to.Ptr("IntegrationRuntimeName"), + // DisplayName: to.Ptr("Integration Runtime"), + // ToBeExportedForShoebox: to.Ptr(true), + // }, + // { + // Name: to.Ptr("NodeName"), + // DisplayName: to.Ptr("Integration Runtime Node"), + // ToBeExportedForShoebox: to.Ptr(true), + // }}, + // DisplayName: to.Ptr("Integration runtime CPU utilization"), + // EnableRegionalMdmAccount: to.Ptr("false"), + // SourceMdmAccount: to.Ptr("MicrosoftDataFactoryProdShoebox"), + // SourceMdmNamespace: to.Ptr("ADFMetrics"), + // Unit: to.Ptr("Percent"), + // }, + // { + // Name: to.Ptr("IntegrationRuntimeAvailableMemory"), + // AggregationType: to.Ptr("Average"), + // Dimensions: []*armdatafactory.OperationMetricDimension{ + // { + // Name: to.Ptr("IntegrationRuntimeName"), + // DisplayName: to.Ptr("Integration Runtime"), + // ToBeExportedForShoebox: to.Ptr(true), + // }, + // { + // Name: to.Ptr("NodeName"), + // DisplayName: to.Ptr("Integration Runtime Node"), + // ToBeExportedForShoebox: to.Ptr(true), + // }}, + // DisplayName: to.Ptr("Integration runtime available memory"), + // EnableRegionalMdmAccount: to.Ptr("false"), + // SourceMdmAccount: to.Ptr("MicrosoftDataFactoryProdShoebox"), + // SourceMdmNamespace: to.Ptr("ADFMetrics"), + // Unit: to.Ptr("Bytes"), + // }}, + // }, + // }, + // }, + // { + // Name: to.Ptr("Microsoft.DataFactory/register/action"), + // Display: &armdatafactory.OperationDisplay{ + // Description: to.Ptr("Registers the subscription for the Data Factory Resource Provider."), + // Operation: to.Ptr("Register Data Factory Resource Provider"), + // Provider: to.Ptr("Microsoft Data Factory"), + // Resource: to.Ptr("Data Factory Resource Provider"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.DataFactory/unregister/action"), + // Display: &armdatafactory.OperationDisplay{ + // Description: to.Ptr("Unregisters the subscription for the Data Factory Resource Provider."), + // Operation: to.Ptr("Unregister Data Factory Resource Provider"), + // Provider: to.Ptr("Microsoft Data Factory"), + // Resource: to.Ptr("Data Factory Resource Provider"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.DataFactory/datafactories/read"), + // Display: &armdatafactory.OperationDisplay{ + // Description: to.Ptr("Reads the Data Factory."), + // Operation: to.Ptr("Read Data Factory"), + // Provider: to.Ptr("Microsoft Data Factory"), + // Resource: to.Ptr("Data Factory"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.DataFactory/datafactories/write"), + // Display: &armdatafactory.OperationDisplay{ + // Description: to.Ptr("Creates or Updates the Data Factory."), + // Operation: to.Ptr("Create or Update Data Factory"), + // Provider: to.Ptr("Microsoft Data Factory"), + // Resource: to.Ptr("Data Factory"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.DataFactory/datafactories/delete"), + // Display: &armdatafactory.OperationDisplay{ + // Description: to.Ptr("Deletes the Data Factory."), + // Operation: to.Ptr("Delete Data Factory"), + // Provider: to.Ptr("Microsoft Data Factory"), + // Resource: to.Ptr("Data Factory"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.DataFactory/datafactories/linkedServices/read"), + // Display: &armdatafactory.OperationDisplay{ + // Description: to.Ptr("Reads any Linked Service."), + // Operation: to.Ptr("Read Linked Service"), + // Provider: to.Ptr("Microsoft Data Factory"), + // Resource: to.Ptr("Linked Service"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.DataFactory/datafactories/linkedServices/delete"), + // Display: &armdatafactory.OperationDisplay{ + // Description: to.Ptr("Deletes any Linked Service."), + // Operation: to.Ptr("Delete Linked Service"), + // Provider: to.Ptr("Microsoft Data Factory"), + // Resource: to.Ptr("Linked Service"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.DataFactory/datafactories/linkedServices/write"), + // Display: &armdatafactory.OperationDisplay{ + // Description: to.Ptr("Creates or Updates any Linked Service."), + // Operation: to.Ptr("Create or Update Linked Service"), + // Provider: to.Ptr("Microsoft Data Factory"), + // Resource: to.Ptr("Linked Service"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.DataFactory/datafactories/datapipelines/read"), + // Display: &armdatafactory.OperationDisplay{ + // Description: to.Ptr("Reads any Pipeline."), + // Operation: to.Ptr("Read Pipeline"), + // Provider: to.Ptr("Microsoft Data Factory"), + // Resource: to.Ptr("Pipeline"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.DataFactory/datafactories/datapipelines/delete"), + // Display: &armdatafactory.OperationDisplay{ + // Description: to.Ptr("Deletes any Pipeline."), + // Operation: to.Ptr("Delete Pipeline"), + // Provider: to.Ptr("Microsoft Data Factory"), + // Resource: to.Ptr("Pipeline"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.DataFactory/datafactories/datapipelines/pause/action"), + // Display: &armdatafactory.OperationDisplay{ + // Description: to.Ptr("Pauses any Pipeline."), + // Operation: to.Ptr("Pause Pipeline"), + // Provider: to.Ptr("Microsoft Data Factory"), + // Resource: to.Ptr("Pipeline"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.DataFactory/datafactories/datapipelines/resume/action"), + // Display: &armdatafactory.OperationDisplay{ + // Description: to.Ptr("Resumes any Pipeline."), + // Operation: to.Ptr("Resume Pipeline"), + // Provider: to.Ptr("Microsoft Data Factory"), + // Resource: to.Ptr("Pipeline"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.DataFactory/datafactories/datapipelines/update/action"), + // Display: &armdatafactory.OperationDisplay{ + // Description: to.Ptr("Updates any Pipeline."), + // Operation: to.Ptr("Update Pipeline"), + // Provider: to.Ptr("Microsoft Data Factory"), + // Resource: to.Ptr("Pipeline"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.DataFactory/datafactories/datapipelines/write"), + // Display: &armdatafactory.OperationDisplay{ + // Description: to.Ptr("Creates or Updates any Pipeline."), + // Operation: to.Ptr("Create or Update Pipeline"), + // Provider: to.Ptr("Microsoft Data Factory"), + // Resource: to.Ptr("Pipeline"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.DataFactory/datafactories/datasets/read"), + // Display: &armdatafactory.OperationDisplay{ + // Description: to.Ptr("Reads any Dataset."), + // Operation: to.Ptr("Read Dataset"), + // Provider: to.Ptr("Microsoft Data Factory"), + // Resource: to.Ptr("Dataset"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.DataFactory/datafactories/datasets/delete"), + // Display: &armdatafactory.OperationDisplay{ + // Description: to.Ptr("Deletes any Dataset."), + // Operation: to.Ptr("Delete Dataset"), + // Provider: to.Ptr("Microsoft Data Factory"), + // Resource: to.Ptr("Dataset"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.DataFactory/datafactories/datasets/write"), + // Display: &armdatafactory.OperationDisplay{ + // Description: to.Ptr("Creates or Updates any Dataset."), + // Operation: to.Ptr("Create or Update Dataset"), + // Provider: to.Ptr("Microsoft Data Factory"), + // Resource: to.Ptr("Dataset"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.DataFactory/datafactories/tables/read"), + // Display: &armdatafactory.OperationDisplay{ + // Description: to.Ptr("Reads any Dataset."), + // Operation: to.Ptr("Read Dataset"), + // Provider: to.Ptr("Microsoft Data Factory"), + // Resource: to.Ptr("Dataset"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.DataFactory/datafactories/tables/delete"), + // Display: &armdatafactory.OperationDisplay{ + // Description: to.Ptr("Deletes any Dataset."), + // Operation: to.Ptr("Delete Dataset"), + // Provider: to.Ptr("Microsoft Data Factory"), + // Resource: to.Ptr("Dataset"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.DataFactory/datafactories/tables/write"), + // Display: &armdatafactory.OperationDisplay{ + // Description: to.Ptr("Creates or Updates any Dataset."), + // Operation: to.Ptr("Create or Update Dataset"), + // Provider: to.Ptr("Microsoft Data Factory"), + // Resource: to.Ptr("Dataset"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.DataFactory/datafactories/datasets/slices/read"), + // Display: &armdatafactory.OperationDisplay{ + // Description: to.Ptr("Gets the Data Slices in the given period."), + // Operation: to.Ptr("Read Data Slices"), + // Provider: to.Ptr("Microsoft Data Factory"), + // Resource: to.Ptr("Data Slice"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.DataFactory/datafactories/datasets/slices/write"), + // Display: &armdatafactory.OperationDisplay{ + // Description: to.Ptr("Update the Status of the Data Slice."), + // Operation: to.Ptr("Update Data Slice Status"), + // Provider: to.Ptr("Microsoft Data Factory"), + // Resource: to.Ptr("Data Slice"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.DataFactory/datafactories/datasets/sliceruns/read"), + // Display: &armdatafactory.OperationDisplay{ + // Description: to.Ptr("Reads the Data Slice Run for the given dataset with the given start time."), + // Operation: to.Ptr("Read Data Slice Run"), + // Provider: to.Ptr("Microsoft Data Factory"), + // Resource: to.Ptr("Data Slice"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.DataFactory/datafactories/runs/loginfo/read"), + // Display: &armdatafactory.OperationDisplay{ + // Description: to.Ptr("Reads a SAS URI to a blob container containing the logs."), + // Operation: to.Ptr("Read Run Log Info"), + // Provider: to.Ptr("Microsoft Data Factory"), + // Resource: to.Ptr("Run Log"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.DataFactory/datafactories/activitywindows/read"), + // Display: &armdatafactory.OperationDisplay{ + // Description: to.Ptr("Reads Activity Windows in the Data Factory with specified parameters."), + // Operation: to.Ptr("Read Activity Windows in any Data Factory"), + // Provider: to.Ptr("Microsoft Data Factory"), + // Resource: to.Ptr("Activity Windows"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.DataFactory/datafactories/datapipelines/activitywindows/read"), + // Display: &armdatafactory.OperationDisplay{ + // Description: to.Ptr("Reads Activity Windows for the Pipeline with specified parameters."), + // Operation: to.Ptr("Read Activity Windows for any Pipeline"), + // Provider: to.Ptr("Microsoft Data Factory"), + // Resource: to.Ptr("Activity Windows"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.DataFactory/datafactories/datapipelines/activities/activitywindows/read"), + // Display: &armdatafactory.OperationDisplay{ + // Description: to.Ptr("Reads Activity Windows for the Pipeline Activity with specified parameters."), + // Operation: to.Ptr("Read Activity Windows for any Pipeline Activity"), + // Provider: to.Ptr("Microsoft Data Factory"), + // Resource: to.Ptr("Activity Windows"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.DataFactory/datafactories/datasets/activitywindows/read"), + // Display: &armdatafactory.OperationDisplay{ + // Description: to.Ptr("Reads Activity Windows for the Dataset with specified parameters."), + // Operation: to.Ptr("Read Activity Windows for any Dataset"), + // Provider: to.Ptr("Microsoft Data Factory"), + // Resource: to.Ptr("Activity Windows"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.DataFactory/datafactories/gateways/read"), + // Display: &armdatafactory.OperationDisplay{ + // Description: to.Ptr("Reads any Gateway."), + // Operation: to.Ptr("Read Gateway"), + // Provider: to.Ptr("Microsoft Data Factory"), + // Resource: to.Ptr("Gateway"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.DataFactory/datafactories/gateways/write"), + // Display: &armdatafactory.OperationDisplay{ + // Description: to.Ptr("Creates or Updates any Gateway."), + // Operation: to.Ptr("Create or Update Gateway"), + // Provider: to.Ptr("Microsoft Data Factory"), + // Resource: to.Ptr("Gateway"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.DataFactory/datafactories/gateways/delete"), + // Display: &armdatafactory.OperationDisplay{ + // Description: to.Ptr("Deletes any Gateway."), + // Operation: to.Ptr("Delete Gateway"), + // Provider: to.Ptr("Microsoft Data Factory"), + // Resource: to.Ptr("Gateway"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.DataFactory/datafactories/gateways/connectioninfo/action"), + // Display: &armdatafactory.OperationDisplay{ + // Description: to.Ptr("Reads the Connection Info for any Gateway."), + // Operation: to.Ptr("Read Gateway Connection Info"), + // Provider: to.Ptr("Microsoft Data Factory"), + // Resource: to.Ptr("Gateway"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.DataFactory/datafactories/gateways/listauthkeys/action"), + // Display: &armdatafactory.OperationDisplay{ + // Description: to.Ptr("Lists the Authentication Keys for any Gateway."), + // Operation: to.Ptr("List Gateway Authentication Keys"), + // Provider: to.Ptr("Microsoft Data Factory"), + // Resource: to.Ptr("Gateway"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.DataFactory/datafactories/gateways/regenerateauthkey/action"), + // Display: &armdatafactory.OperationDisplay{ + // Description: to.Ptr("Regenerates the Authentication Keys for any Gateway."), + // Operation: to.Ptr("Regenerate Gateway Authentication Keys"), + // Provider: to.Ptr("Microsoft Data Factory"), + // Resource: to.Ptr("Gateway"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.DataFactory/factories/read"), + // Display: &armdatafactory.OperationDisplay{ + // Description: to.Ptr("Reads Data Factory."), + // Operation: to.Ptr("Read Data Factory"), + // Provider: to.Ptr("Microsoft Data Factory"), + // Resource: to.Ptr("Data Factory"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.DataFactory/factories/write"), + // Display: &armdatafactory.OperationDisplay{ + // Description: to.Ptr("Create or Update Data Factory"), + // Operation: to.Ptr("Create or Update any Data Factory."), + // Provider: to.Ptr("Microsoft Data Factory"), + // Resource: to.Ptr("Data Factory"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.DataFactory/factories/delete"), + // Display: &armdatafactory.OperationDisplay{ + // Description: to.Ptr("Deletes Data Factory."), + // Operation: to.Ptr("Delete Data Factory"), + // Provider: to.Ptr("Microsoft Data Factory"), + // Resource: to.Ptr("Data Factory"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.DataFactory/factories/linkedServices/read"), + // Display: &armdatafactory.OperationDisplay{ + // Description: to.Ptr("Reads Linked Service."), + // Operation: to.Ptr("Read Linked Service"), + // Provider: to.Ptr("Microsoft Data Factory"), + // Resource: to.Ptr("Linked Service"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.DataFactory/factories/linkedServices/delete"), + // Display: &armdatafactory.OperationDisplay{ + // Description: to.Ptr("Deletes Linked Service."), + // Operation: to.Ptr("Delete Linked Service"), + // Provider: to.Ptr("Microsoft Data Factory"), + // Resource: to.Ptr("Linked Service"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.DataFactory/factories/linkedServices/write"), + // Display: &armdatafactory.OperationDisplay{ + // Description: to.Ptr("Create or Update Linked Service"), + // Operation: to.Ptr("Create or Update any Linked Service."), + // Provider: to.Ptr("Microsoft Data Factory"), + // Resource: to.Ptr("Linked Service"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.DataFactory/factories/pipelines/read"), + // Display: &armdatafactory.OperationDisplay{ + // Description: to.Ptr("Reads Pipeline."), + // Operation: to.Ptr("Read Pipeline"), + // Provider: to.Ptr("Microsoft Data Factory"), + // Resource: to.Ptr("Pipeline"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.DataFactory/factories/pipelines/delete"), + // Display: &armdatafactory.OperationDisplay{ + // Description: to.Ptr("Deletes Pipeline."), + // Operation: to.Ptr("Delete Pipeline"), + // Provider: to.Ptr("Microsoft Data Factory"), + // Resource: to.Ptr("Pipeline"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.DataFactory/factories/pipelines/write"), + // Display: &armdatafactory.OperationDisplay{ + // Description: to.Ptr("Create or Update Pipeline"), + // Operation: to.Ptr("Create or Update any Pipeline."), + // Provider: to.Ptr("Microsoft Data Factory"), + // Resource: to.Ptr("Pipeline"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.DataFactory/factories/pipelines/createrun/action"), + // Display: &armdatafactory.OperationDisplay{ + // Description: to.Ptr("Creates a run for the Pipeline."), + // Operation: to.Ptr("Create Pipeline Run"), + // Provider: to.Ptr("Microsoft Data Factory"), + // Resource: to.Ptr("Pipeline"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.DataFactory/factories/cancelpipelinerun/action"), + // Display: &armdatafactory.OperationDisplay{ + // Description: to.Ptr("Cancels the pipeline run specified by the run ID."), + // Operation: to.Ptr("Cancel any Pipeline Run"), + // Provider: to.Ptr("Microsoft Data Factory"), + // Resource: to.Ptr("Data Factory"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.DataFactory/factories/pipelineruns/read"), + // Display: &armdatafactory.OperationDisplay{ + // Description: to.Ptr("Reads the Pipeline Runs."), + // Operation: to.Ptr("Read Pipeline Runs"), + // Provider: to.Ptr("Microsoft Data Factory"), + // Resource: to.Ptr("Data Factory"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.DataFactory/factories/pipelineruns/activityruns/read"), + // Display: &armdatafactory.OperationDisplay{ + // Description: to.Ptr("Reads the activity runs for the specified pipeline run ID."), + // Operation: to.Ptr("Read Activity Runs"), + // Provider: to.Ptr("Microsoft Data Factory"), + // Resource: to.Ptr("Data Factory"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.DataFactory/factories/datasets/read"), + // Display: &armdatafactory.OperationDisplay{ + // Description: to.Ptr("Reads any Dataset."), + // Operation: to.Ptr("Read Dataset"), + // Provider: to.Ptr("Microsoft Data Factory"), + // Resource: to.Ptr("Dataset"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.DataFactory/factories/datasets/delete"), + // Display: &armdatafactory.OperationDisplay{ + // Description: to.Ptr("Deletes any Dataset."), + // Operation: to.Ptr("Delete Dataset"), + // Provider: to.Ptr("Microsoft Data Factory"), + // Resource: to.Ptr("Dataset"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.DataFactory/factories/datasets/write"), + // Display: &armdatafactory.OperationDisplay{ + // Description: to.Ptr("Creates or Updates any Dataset."), + // Operation: to.Ptr("Create or Update Dataset"), + // Provider: to.Ptr("Microsoft Data Factory"), + // Resource: to.Ptr("Dataset"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.DataFactory/factories/integrationruntimes/read"), + // Display: &armdatafactory.OperationDisplay{ + // Description: to.Ptr("Reads any Integration Runtime."), + // Operation: to.Ptr("Read Integration Runtime"), + // Provider: to.Ptr("Microsoft Data Factory"), + // Resource: to.Ptr("Integration Runtime"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.DataFactory/factories/integrationruntimes/write"), + // Display: &armdatafactory.OperationDisplay{ + // Description: to.Ptr("Creates or Updates any Integration Runtime."), + // Operation: to.Ptr("Create or Update Integration Runtime"), + // Provider: to.Ptr("Microsoft Data Factory"), + // Resource: to.Ptr("Integration Runtime"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.DataFactory/factories/integrationruntimes/delete"), + // Display: &armdatafactory.OperationDisplay{ + // Description: to.Ptr("Deletes any Integration Runtime."), + // Operation: to.Ptr("Delete Integration Runtime"), + // Provider: to.Ptr("Microsoft Data Factory"), + // Resource: to.Ptr("Integration Runtime"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.DataFactory/factories/integrationruntimes/start/action"), + // Display: &armdatafactory.OperationDisplay{ + // Description: to.Ptr("Starts any Integration Runtime."), + // Operation: to.Ptr("Start Integration Runtime"), + // Provider: to.Ptr("Microsoft Data Factory"), + // Resource: to.Ptr("Integration Runtime"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.DataFactory/factories/integrationruntimes/stop/action"), + // Display: &armdatafactory.OperationDisplay{ + // Description: to.Ptr("Stops any Integration Runtime."), + // Operation: to.Ptr("Stop Integration Runtime"), + // Provider: to.Ptr("Microsoft Data Factory"), + // Resource: to.Ptr("Integration Runtime"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.DataFactory/factories/integrationruntimes/getconnectioninfo/read"), + // Display: &armdatafactory.OperationDisplay{ + // Description: to.Ptr("Reads Integration Runtime Connection Info."), + // Operation: to.Ptr("Read Integration Runtime Connection Info"), + // Provider: to.Ptr("Microsoft Data Factory"), + // Resource: to.Ptr("Integration Runtime"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.DataFactory/factories/integrationruntimes/getstatus/read"), + // Display: &armdatafactory.OperationDisplay{ + // Description: to.Ptr("Reads Integration Runtime Status."), + // Operation: to.Ptr("Read Integration Runtime Status"), + // Provider: to.Ptr("Microsoft Data Factory"), + // Resource: to.Ptr("Integration Runtime"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.DataFactory/factories/integrationruntimes/listauthkeys/read"), + // Display: &armdatafactory.OperationDisplay{ + // Description: to.Ptr("Lists the Authentication Keys for any Integration Runtime."), + // Operation: to.Ptr("List Integration Runtime Authentication Keys"), + // Provider: to.Ptr("Microsoft Data Factory"), + // Resource: to.Ptr("Integration Runtime"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.DataFactory/factories/integrationruntimes/monitoringdata/read"), + // Display: &armdatafactory.OperationDisplay{ + // Description: to.Ptr("Gets the Monitoring Data for any Integration Runtime."), + // Operation: to.Ptr("Get Integration Runtime Monitoring Data"), + // Provider: to.Ptr("Microsoft Data Factory"), + // Resource: to.Ptr("Integration Runtime"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.DataFactory/factories/integrationruntimes/nodes/delete"), + // Display: &armdatafactory.OperationDisplay{ + // Description: to.Ptr("Deletes the Node for the specified Integration Runtime."), + // Operation: to.Ptr("Delete Integration Runtime Node"), + // Provider: to.Ptr("Microsoft Data Factory"), + // Resource: to.Ptr("Integration Runtime"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.DataFactory/factories/integrationruntimes/nodes/write"), + // Display: &armdatafactory.OperationDisplay{ + // Description: to.Ptr("Updates a self-hosted Integration Runtime Node."), + // Operation: to.Ptr("Update Integration Runtime Node"), + // Provider: to.Ptr("Microsoft Data Factory"), + // Resource: to.Ptr("Integration Runtime"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.DataFactory/factories/integrationruntimes/nodes/ipAddress/action"), + // Display: &armdatafactory.OperationDisplay{ + // Description: to.Ptr("Returns the IP Address for the specified node of the Integration Runtime."), + // Operation: to.Ptr("Read Integration Runtime Node IP Address"), + // Provider: to.Ptr("Microsoft Data Factory"), + // Resource: to.Ptr("Integration Runtime"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.DataFactory/factories/integrationruntimes/synccredentials/action"), + // Display: &armdatafactory.OperationDisplay{ + // Description: to.Ptr("Syncs the Credentials for the specified Integration Runtime."), + // Operation: to.Ptr("Sync Credentials for Integration Runtime"), + // Provider: to.Ptr("Microsoft Data Factory"), + // Resource: to.Ptr("Integration Runtime"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.DataFactory/factories/integrationruntimes/upgrade/action"), + // Display: &armdatafactory.OperationDisplay{ + // Description: to.Ptr("Upgrades the specified Integration Runtime."), + // Operation: to.Ptr("Upgrade Integration Runtime"), + // Provider: to.Ptr("Microsoft Data Factory"), + // Resource: to.Ptr("Integration Runtime"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.DataFactory/factories/integrationruntimes/regenerateauthkey/action"), + // Display: &armdatafactory.OperationDisplay{ + // Description: to.Ptr("Regenerates the Authentication Keys for the specified Integration Runtime."), + // Operation: to.Ptr("Regenerate Integration Runtime Authentication Keys"), + // Provider: to.Ptr("Microsoft Data Factory"), + // Resource: to.Ptr("Integration Runtime"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.DataFactory/factories/triggers/read"), + // Display: &armdatafactory.OperationDisplay{ + // Description: to.Ptr("Reads any Trigger."), + // Operation: to.Ptr("Read Trigger"), + // Provider: to.Ptr("Microsoft Data Factory"), + // Resource: to.Ptr("Trigger"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.DataFactory/factories/triggers/write"), + // Display: &armdatafactory.OperationDisplay{ + // Description: to.Ptr("Creates or Updates any Trigger."), + // Operation: to.Ptr("Create or Update Trigger"), + // Provider: to.Ptr("Microsoft Data Factory"), + // Resource: to.Ptr("Trigger"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.DataFactory/factories/triggers/delete"), + // Display: &armdatafactory.OperationDisplay{ + // Description: to.Ptr("Deletes any Trigger."), + // Operation: to.Ptr("Delete Trigger"), + // Provider: to.Ptr("Microsoft Data Factory"), + // Resource: to.Ptr("Trigger"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.DataFactory/factories/triggers/start/action"), + // Display: &armdatafactory.OperationDisplay{ + // Description: to.Ptr("Starts any Trigger."), + // Operation: to.Ptr("Start Trigger"), + // Provider: to.Ptr("Microsoft Data Factory"), + // Resource: to.Ptr("Trigger"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.DataFactory/factories/triggers/stop/action"), + // Display: &armdatafactory.OperationDisplay{ + // Description: to.Ptr("Stops any Trigger."), + // Operation: to.Ptr("Stop Trigger"), + // Provider: to.Ptr("Microsoft Data Factory"), + // Resource: to.Ptr("Trigger"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.DataFactory/factories/triggers/triggerruns/read"), + // Display: &armdatafactory.OperationDisplay{ + // Description: to.Ptr("Reads the Trigger Runs."), + // Operation: to.Ptr("Read Trigger Runs"), + // Provider: to.Ptr("Microsoft Data Factory"), + // Resource: to.Ptr("Data Factory"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.DataFactory/locations/configureFactoryRepo/action"), + // Display: &armdatafactory.OperationDisplay{ + // Description: to.Ptr("Configures the repository for the factory."), + // Operation: to.Ptr("Configure Factory Repository"), + // Provider: to.Ptr("Microsoft Data Factory"), + // Resource: to.Ptr("Data Factory"), + // }, + // }}, + // } } } diff --git a/sdk/resourcemanager/datafactory/armdatafactory/pipelineruns_client.go b/sdk/resourcemanager/datafactory/armdatafactory/pipelineruns_client.go index 70f0473027cc..92cc27686caa 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/pipelineruns_client.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/pipelineruns_client.go @@ -33,9 +33,9 @@ type PipelineRunsClient struct { } // NewPipelineRunsClient creates a new instance of PipelineRunsClient with the specified values. -// subscriptionID - The subscription identifier. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The subscription identifier. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewPipelineRunsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PipelineRunsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -58,11 +58,12 @@ func NewPipelineRunsClient(subscriptionID string, credential azcore.TokenCredent // Cancel - Cancel a pipeline run by its run ID. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// runID - The pipeline run identifier. -// options - PipelineRunsClientCancelOptions contains the optional parameters for the PipelineRunsClient.Cancel method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - runID - The pipeline run identifier. +// - options - PipelineRunsClientCancelOptions contains the optional parameters for the PipelineRunsClient.Cancel method. func (client *PipelineRunsClient) Cancel(ctx context.Context, resourceGroupName string, factoryName string, runID string, options *PipelineRunsClientCancelOptions) (PipelineRunsClientCancelResponse, error) { req, err := client.cancelCreateRequest(ctx, resourceGroupName, factoryName, runID, options) if err != nil { @@ -113,11 +114,12 @@ func (client *PipelineRunsClient) cancelCreateRequest(ctx context.Context, resou // Get - Get a pipeline run by its run ID. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// runID - The pipeline run identifier. -// options - PipelineRunsClientGetOptions contains the optional parameters for the PipelineRunsClient.Get method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - runID - The pipeline run identifier. +// - options - PipelineRunsClientGetOptions contains the optional parameters for the PipelineRunsClient.Get method. func (client *PipelineRunsClient) Get(ctx context.Context, resourceGroupName string, factoryName string, runID string, options *PipelineRunsClientGetOptions) (PipelineRunsClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, factoryName, runID, options) if err != nil { @@ -174,12 +176,13 @@ func (client *PipelineRunsClient) getHandleResponse(resp *http.Response) (Pipeli // QueryByFactory - Query pipeline runs in the factory based on input filter conditions. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// filterParameters - Parameters to filter the pipeline run. -// options - PipelineRunsClientQueryByFactoryOptions contains the optional parameters for the PipelineRunsClient.QueryByFactory -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - filterParameters - Parameters to filter the pipeline run. +// - options - PipelineRunsClientQueryByFactoryOptions contains the optional parameters for the PipelineRunsClient.QueryByFactory +// method. func (client *PipelineRunsClient) QueryByFactory(ctx context.Context, resourceGroupName string, factoryName string, filterParameters RunFilterParameters, options *PipelineRunsClientQueryByFactoryOptions) (PipelineRunsClientQueryByFactoryResponse, error) { req, err := client.queryByFactoryCreateRequest(ctx, resourceGroupName, factoryName, filterParameters, options) if err != nil { diff --git a/sdk/resourcemanager/datafactory/armdatafactory/pipelineruns_client_example_test.go b/sdk/resourcemanager/datafactory/armdatafactory/pipelineruns_client_example_test.go index ceffcf5177d6..cd0ae67b99be 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/pipelineruns_client_example_test.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/pipelineruns_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armdatafactory_test @@ -19,7 +20,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/PipelineRuns_QueryByFactory.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/PipelineRuns_QueryByFactory.json func ExamplePipelineRunsClient_QueryByFactory() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -44,11 +45,61 @@ func ExamplePipelineRunsClient_QueryByFactory() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.PipelineRunsQueryResponse = armdatafactory.PipelineRunsQueryResponse{ + // Value: []*armdatafactory.PipelineRun{ + // { + // AdditionalProperties: map[string]any{ + // "annotations": []any{ + // }, + // "runDimension": map[string]any{ + // "JobId": "79c1cc52-265f-41a5-9553-be65e736fbd3", + // }, + // }, + // DurationInMs: to.Ptr[int32](28105), + // InvokedBy: &armdatafactory.PipelineRunInvokedBy{ + // Name: to.Ptr("Manual"), + // ID: to.Ptr("80a01654a9d34ad18b3fcac5d5d76b67"), + // }, + // LastUpdated: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-16T00:38:12.7314495Z"); return t}()), + // Message: to.Ptr(""), + // Parameters: map[string]*string{ + // "OutputBlobNameList": to.Ptr("[\"exampleoutput.csv\"]"), + // }, + // PipelineName: to.Ptr("examplePipeline"), + // RunEnd: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-16T00:38:12.7314495Z"); return t}()), + // RunID: to.Ptr("2f7fdb90-5df1-4b8e-ac2f-064cfa58202b"), + // RunStart: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-16T00:37:44.6257014Z"); return t}()), + // Status: to.Ptr("Succeeded"), + // }, + // { + // AdditionalProperties: map[string]any{ + // "annotations": []any{ + // }, + // "runDimension": map[string]any{ + // "JobId": "84a3c493-0628-4b44-852f-ef5b3a11bdab", + // }, + // }, + // InvokedBy: &armdatafactory.PipelineRunInvokedBy{ + // Name: to.Ptr("Manual"), + // ID: to.Ptr("7c5fd7ef7e8a464b98b931cf15fcac66"), + // }, + // LastUpdated: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-16T00:39:51.216097Z"); return t}()), + // Message: to.Ptr(""), + // Parameters: map[string]*string{ + // "OutputBlobNameList": to.Ptr("[\"exampleoutput.csv\"]"), + // }, + // PipelineName: to.Ptr("examplePipeline"), + // RunID: to.Ptr("16ac5348-ff82-4f95-a80d-638c1d47b721"), + // RunStart: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-16T00:39:49.2745128Z"); return t}()), + // Status: to.Ptr("Cancelled"), + // }}, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/PipelineRuns_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/PipelineRuns_Get.json func ExamplePipelineRunsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -63,11 +114,33 @@ func ExamplePipelineRunsClient_Get() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.PipelineRun = armdatafactory.PipelineRun{ + // AdditionalProperties: map[string]any{ + // "annotations": []any{ + // }, + // }, + // DurationInMs: to.Ptr[int32](28105), + // InvokedBy: &armdatafactory.PipelineRunInvokedBy{ + // Name: to.Ptr("Manual"), + // ID: to.Ptr("80a01654a9d34ad18b3fcac5d5d76b67"), + // }, + // LastUpdated: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-16T00:38:12.7314495Z"); return t}()), + // Message: to.Ptr(""), + // Parameters: map[string]*string{ + // "OutputBlobNameList": to.Ptr("[\"exampleoutput.csv\"]"), + // }, + // PipelineName: to.Ptr("examplePipeline"), + // RunEnd: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-16T00:38:12.7314495Z"); return t}()), + // RunID: to.Ptr("2f7fdb90-5df1-4b8e-ac2f-064cfa58202b"), + // RunStart: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-16T00:37:44.6257014Z"); return t}()), + // Status: to.Ptr("Succeeded"), + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/PipelineRuns_Cancel.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/PipelineRuns_Cancel.json func ExamplePipelineRunsClient_Cancel() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/datafactory/armdatafactory/pipelines_client.go b/sdk/resourcemanager/datafactory/armdatafactory/pipelines_client.go index 978cf9cc9460..8fa83020576a 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/pipelines_client.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/pipelines_client.go @@ -33,9 +33,9 @@ type PipelinesClient struct { } // NewPipelinesClient creates a new instance of PipelinesClient with the specified values. -// subscriptionID - The subscription identifier. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The subscription identifier. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewPipelinesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PipelinesClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -58,13 +58,14 @@ func NewPipelinesClient(subscriptionID string, credential azcore.TokenCredential // CreateOrUpdate - Creates or updates a pipeline. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// pipelineName - The pipeline name. -// pipeline - Pipeline resource definition. -// options - PipelinesClientCreateOrUpdateOptions contains the optional parameters for the PipelinesClient.CreateOrUpdate -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - pipelineName - The pipeline name. +// - pipeline - Pipeline resource definition. +// - options - PipelinesClientCreateOrUpdateOptions contains the optional parameters for the PipelinesClient.CreateOrUpdate +// method. func (client *PipelinesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, factoryName string, pipelineName string, pipeline PipelineResource, options *PipelinesClientCreateOrUpdateOptions) (PipelinesClientCreateOrUpdateResponse, error) { req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, factoryName, pipelineName, pipeline, options) if err != nil { @@ -124,11 +125,12 @@ func (client *PipelinesClient) createOrUpdateHandleResponse(resp *http.Response) // CreateRun - Creates a run of a pipeline. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// pipelineName - The pipeline name. -// options - PipelinesClientCreateRunOptions contains the optional parameters for the PipelinesClient.CreateRun method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - pipelineName - The pipeline name. +// - options - PipelinesClientCreateRunOptions contains the optional parameters for the PipelinesClient.CreateRun method. func (client *PipelinesClient) CreateRun(ctx context.Context, resourceGroupName string, factoryName string, pipelineName string, options *PipelinesClientCreateRunOptions) (PipelinesClientCreateRunResponse, error) { req, err := client.createRunCreateRequest(ctx, resourceGroupName, factoryName, pipelineName, options) if err != nil { @@ -200,11 +202,12 @@ func (client *PipelinesClient) createRunHandleResponse(resp *http.Response) (Pip // Delete - Deletes a pipeline. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// pipelineName - The pipeline name. -// options - PipelinesClientDeleteOptions contains the optional parameters for the PipelinesClient.Delete method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - pipelineName - The pipeline name. +// - options - PipelinesClientDeleteOptions contains the optional parameters for the PipelinesClient.Delete method. func (client *PipelinesClient) Delete(ctx context.Context, resourceGroupName string, factoryName string, pipelineName string, options *PipelinesClientDeleteOptions) (PipelinesClientDeleteResponse, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, factoryName, pipelineName, options) if err != nil { @@ -252,11 +255,12 @@ func (client *PipelinesClient) deleteCreateRequest(ctx context.Context, resource // Get - Gets a pipeline. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// pipelineName - The pipeline name. -// options - PipelinesClientGetOptions contains the optional parameters for the PipelinesClient.Get method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - pipelineName - The pipeline name. +// - options - PipelinesClientGetOptions contains the optional parameters for the PipelinesClient.Get method. func (client *PipelinesClient) Get(ctx context.Context, resourceGroupName string, factoryName string, pipelineName string, options *PipelinesClientGetOptions) (PipelinesClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, factoryName, pipelineName, options) if err != nil { @@ -315,10 +319,12 @@ func (client *PipelinesClient) getHandleResponse(resp *http.Response) (Pipelines } // NewListByFactoryPager - Lists pipelines. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// options - PipelinesClientListByFactoryOptions contains the optional parameters for the PipelinesClient.ListByFactory method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - options - PipelinesClientListByFactoryOptions contains the optional parameters for the PipelinesClient.NewListByFactoryPager +// method. func (client *PipelinesClient) NewListByFactoryPager(resourceGroupName string, factoryName string, options *PipelinesClientListByFactoryOptions) *runtime.Pager[PipelinesClientListByFactoryResponse] { return runtime.NewPager(runtime.PagingHandler[PipelinesClientListByFactoryResponse]{ More: func(page PipelinesClientListByFactoryResponse) bool { diff --git a/sdk/resourcemanager/datafactory/armdatafactory/pipelines_client_example_test.go b/sdk/resourcemanager/datafactory/armdatafactory/pipelines_client_example_test.go index 2f24feb96024..6d0ab279072d 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/pipelines_client_example_test.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/pipelines_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armdatafactory_test @@ -17,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_ListByFactory.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_ListByFactory.json func ExamplePipelinesClient_NewListByFactoryPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -30,18 +31,83 @@ func ExamplePipelinesClient_NewListByFactoryPager() { } pager := client.NewListByFactoryPager("exampleResourceGroup", "exampleFactoryName", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.PipelineListResponse = armdatafactory.PipelineListResponse{ + // Value: []*armdatafactory.PipelineResource{ + // { + // Name: to.Ptr("examplePipeline"), + // Type: to.Ptr("Microsoft.DataFactory/factories/pipelines"), + // Etag: to.Ptr("0a006cd4-0000-0000-0000-5b245bd60000"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/pipelines/examplePipeline"), + // Properties: &armdatafactory.Pipeline{ + // Description: to.Ptr("Example description"), + // Activities: []armdatafactory.ActivityClassification{ + // &armdatafactory.ForEachActivity{ + // Name: to.Ptr("ExampleForeachActivity"), + // Type: to.Ptr("ForEach"), + // TypeProperties: &armdatafactory.ForEachActivityTypeProperties{ + // Activities: []armdatafactory.ActivityClassification{ + // &armdatafactory.CopyActivity{ + // Name: to.Ptr("ExampleCopyActivity"), + // Type: to.Ptr("Copy"), + // Inputs: []*armdatafactory.DatasetReference{ + // { + // Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), + // Parameters: map[string]any{ + // "MyFileName": "examplecontainer.csv", + // "MyFolderPath": "examplecontainer", + // }, + // ReferenceName: to.Ptr("exampleDataset"), + // }}, + // Outputs: []*armdatafactory.DatasetReference{ + // { + // Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), + // Parameters: map[string]any{ + // "MyFileName": map[string]any{ + // "type": "Expression", + // "value": "@item()", + // }, + // "MyFolderPath": "examplecontainer", + // }, + // ReferenceName: to.Ptr("exampleDataset"), + // }}, + // TypeProperties: &armdatafactory.CopyActivityTypeProperties{ + // DataIntegrationUnits: float64(32), + // Sink: &armdatafactory.BlobSink{ + // Type: to.Ptr("BlobSink"), + // }, + // Source: &armdatafactory.BlobSource{ + // Type: to.Ptr("BlobSource"), + // }, + // }, + // }}, + // IsSequential: to.Ptr(true), + // Items: &armdatafactory.Expression{ + // Type: to.Ptr(armdatafactory.ExpressionTypeExpression), + // Value: to.Ptr("@pipeline().parameters.OutputBlobNameList"), + // }, + // }, + // }}, + // Parameters: map[string]*armdatafactory.ParameterSpecification{ + // "OutputBlobNameList": &armdatafactory.ParameterSpecification{ + // Type: to.Ptr(armdatafactory.ParameterTypeArray), + // }, + // }, + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Create.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Create.json func ExamplePipelinesClient_CreateOrUpdate_pipelinesCreate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -66,7 +132,7 @@ func ExamplePipelinesClient_CreateOrUpdate_pipelinesCreate() { Inputs: []*armdatafactory.DatasetReference{ { Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), - Parameters: map[string]interface{}{ + Parameters: map[string]any{ "MyFileName": "examplecontainer.csv", "MyFolderPath": "examplecontainer", }, @@ -75,8 +141,8 @@ func ExamplePipelinesClient_CreateOrUpdate_pipelinesCreate() { Outputs: []*armdatafactory.DatasetReference{ { Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), - Parameters: map[string]interface{}{ - "MyFileName": map[string]interface{}{ + Parameters: map[string]any{ + "MyFileName": map[string]any{ "type": "Expression", "value": "@item()", }, @@ -114,8 +180,8 @@ func ExamplePipelinesClient_CreateOrUpdate_pipelinesCreate() { Duration: "0.00:10:00", }, }, - RunDimensions: map[string]interface{}{ - "JobId": map[string]interface{}{ + RunDimensions: map[string]any{ + "JobId": map[string]any{ "type": "Expression", "value": "@pipeline().parameters.JobId", }, @@ -130,11 +196,86 @@ func ExamplePipelinesClient_CreateOrUpdate_pipelinesCreate() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.PipelineResource = armdatafactory.PipelineResource{ + // Name: to.Ptr("examplePipeline"), + // Type: to.Ptr("Microsoft.DataFactory/factories/pipelines"), + // Etag: to.Ptr("0a0069d4-0000-0000-0000-5b245bd50000"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/pipelines/examplePipeline"), + // Properties: &armdatafactory.Pipeline{ + // Activities: []armdatafactory.ActivityClassification{ + // &armdatafactory.ForEachActivity{ + // Name: to.Ptr("ExampleForeachActivity"), + // Type: to.Ptr("ForEach"), + // TypeProperties: &armdatafactory.ForEachActivityTypeProperties{ + // Activities: []armdatafactory.ActivityClassification{ + // &armdatafactory.CopyActivity{ + // Name: to.Ptr("ExampleCopyActivity"), + // Type: to.Ptr("Copy"), + // Inputs: []*armdatafactory.DatasetReference{ + // { + // Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), + // Parameters: map[string]any{ + // "MyFileName": "examplecontainer.csv", + // "MyFolderPath": "examplecontainer", + // }, + // ReferenceName: to.Ptr("exampleDataset"), + // }}, + // Outputs: []*armdatafactory.DatasetReference{ + // { + // Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), + // Parameters: map[string]any{ + // "MyFileName": map[string]any{ + // "type": "Expression", + // "value": "@item()", + // }, + // "MyFolderPath": "examplecontainer", + // }, + // ReferenceName: to.Ptr("exampleDataset"), + // }}, + // TypeProperties: &armdatafactory.CopyActivityTypeProperties{ + // DataIntegrationUnits: float64(32), + // Sink: &armdatafactory.BlobSink{ + // Type: to.Ptr("BlobSink"), + // }, + // Source: &armdatafactory.BlobSource{ + // Type: to.Ptr("BlobSource"), + // }, + // }, + // }}, + // IsSequential: to.Ptr(true), + // Items: &armdatafactory.Expression{ + // Type: to.Ptr(armdatafactory.ExpressionTypeExpression), + // Value: to.Ptr("@pipeline().parameters.OutputBlobNameList"), + // }, + // }, + // }}, + // Parameters: map[string]*armdatafactory.ParameterSpecification{ + // "JobId": &armdatafactory.ParameterSpecification{ + // Type: to.Ptr(armdatafactory.ParameterTypeString), + // }, + // "OutputBlobNameList": &armdatafactory.ParameterSpecification{ + // Type: to.Ptr(armdatafactory.ParameterTypeArray), + // }, + // }, + // RunDimensions: map[string]any{ + // "JobId": map[string]any{ + // "type": "Expression", + // "value": "@pipeline().parameters.JobId", + // }, + // }, + // Variables: map[string]*armdatafactory.VariableSpecification{ + // "TestVariableArray": &armdatafactory.VariableSpecification{ + // Type: to.Ptr(armdatafactory.VariableTypeArray), + // }, + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Update.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Update.json func ExamplePipelinesClient_CreateOrUpdate_pipelinesUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -160,7 +301,7 @@ func ExamplePipelinesClient_CreateOrUpdate_pipelinesUpdate() { Inputs: []*armdatafactory.DatasetReference{ { Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), - Parameters: map[string]interface{}{ + Parameters: map[string]any{ "MyFileName": "examplecontainer.csv", "MyFolderPath": "examplecontainer", }, @@ -169,8 +310,8 @@ func ExamplePipelinesClient_CreateOrUpdate_pipelinesUpdate() { Outputs: []*armdatafactory.DatasetReference{ { Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), - Parameters: map[string]interface{}{ - "MyFileName": map[string]interface{}{ + Parameters: map[string]any{ + "MyFileName": map[string]any{ "type": "Expression", "value": "@item()", }, @@ -210,11 +351,73 @@ func ExamplePipelinesClient_CreateOrUpdate_pipelinesUpdate() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.PipelineResource = armdatafactory.PipelineResource{ + // Name: to.Ptr("examplePipeline"), + // Type: to.Ptr("Microsoft.DataFactory/factories/pipelines"), + // Etag: to.Ptr("0a006cd4-0000-0000-0000-5b245bd60000"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/pipelines/examplePipeline"), + // Properties: &armdatafactory.Pipeline{ + // Description: to.Ptr("Example description"), + // Activities: []armdatafactory.ActivityClassification{ + // &armdatafactory.ForEachActivity{ + // Name: to.Ptr("ExampleForeachActivity"), + // Type: to.Ptr("ForEach"), + // TypeProperties: &armdatafactory.ForEachActivityTypeProperties{ + // Activities: []armdatafactory.ActivityClassification{ + // &armdatafactory.CopyActivity{ + // Name: to.Ptr("ExampleCopyActivity"), + // Type: to.Ptr("Copy"), + // Inputs: []*armdatafactory.DatasetReference{ + // { + // Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), + // Parameters: map[string]any{ + // "MyFileName": "examplecontainer.csv", + // "MyFolderPath": "examplecontainer", + // }, + // ReferenceName: to.Ptr("exampleDataset"), + // }}, + // Outputs: []*armdatafactory.DatasetReference{ + // { + // Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), + // Parameters: map[string]any{ + // "MyFileName": map[string]any{ + // "type": "Expression", + // "value": "@item()", + // }, + // "MyFolderPath": "examplecontainer", + // }, + // ReferenceName: to.Ptr("exampleDataset"), + // }}, + // TypeProperties: &armdatafactory.CopyActivityTypeProperties{ + // DataIntegrationUnits: float64(32), + // Sink: &armdatafactory.BlobSink{ + // Type: to.Ptr("BlobSink"), + // }, + // Source: &armdatafactory.BlobSource{ + // Type: to.Ptr("BlobSource"), + // }, + // }, + // }}, + // IsSequential: to.Ptr(true), + // Items: &armdatafactory.Expression{ + // Type: to.Ptr(armdatafactory.ExpressionTypeExpression), + // Value: to.Ptr("@pipeline().parameters.OutputBlobNameList"), + // }, + // }, + // }}, + // Parameters: map[string]*armdatafactory.ParameterSpecification{ + // "OutputBlobNameList": &armdatafactory.ParameterSpecification{ + // Type: to.Ptr(armdatafactory.ParameterTypeArray), + // }, + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Get.json func ExamplePipelinesClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -229,11 +432,83 @@ func ExamplePipelinesClient_Get() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.PipelineResource = armdatafactory.PipelineResource{ + // Name: to.Ptr("examplePipeline"), + // Type: to.Ptr("Microsoft.DataFactory/factories/pipelines"), + // Etag: to.Ptr("1500504f-0000-0200-0000-5cbe090f0000"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/pipelines/examplePipeline"), + // Properties: &armdatafactory.Pipeline{ + // Description: to.Ptr("Example description"), + // Activities: []armdatafactory.ActivityClassification{ + // &armdatafactory.ForEachActivity{ + // Name: to.Ptr("ExampleForeachActivity"), + // Type: to.Ptr("ForEach"), + // TypeProperties: &armdatafactory.ForEachActivityTypeProperties{ + // Activities: []armdatafactory.ActivityClassification{ + // &armdatafactory.CopyActivity{ + // Name: to.Ptr("ExampleCopyActivity"), + // Type: to.Ptr("Copy"), + // Inputs: []*armdatafactory.DatasetReference{ + // { + // Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), + // Parameters: map[string]any{ + // "MyFileName": "examplecontainer.csv", + // "MyFolderPath": "examplecontainer", + // }, + // ReferenceName: to.Ptr("exampleDataset"), + // }}, + // Outputs: []*armdatafactory.DatasetReference{ + // { + // Type: to.Ptr(armdatafactory.DatasetReferenceTypeDatasetReference), + // Parameters: map[string]any{ + // "MyFileName": map[string]any{ + // "type": "Expression", + // "value": "@item()", + // }, + // "MyFolderPath": "examplecontainer", + // }, + // ReferenceName: to.Ptr("exampleDataset"), + // }}, + // TypeProperties: &armdatafactory.CopyActivityTypeProperties{ + // DataIntegrationUnits: float64(32), + // Sink: &armdatafactory.BlobSink{ + // Type: to.Ptr("BlobSink"), + // }, + // Source: &armdatafactory.BlobSource{ + // Type: to.Ptr("BlobSource"), + // }, + // }, + // }}, + // IsSequential: to.Ptr(true), + // Items: &armdatafactory.Expression{ + // Type: to.Ptr(armdatafactory.ExpressionTypeExpression), + // Value: to.Ptr("@pipeline().parameters.OutputBlobNameList"), + // }, + // }, + // }}, + // Parameters: map[string]*armdatafactory.ParameterSpecification{ + // "OutputBlobNameList": &armdatafactory.ParameterSpecification{ + // Type: to.Ptr(armdatafactory.ParameterTypeArray), + // }, + // }, + // Policy: &armdatafactory.PipelinePolicy{ + // ElapsedTimeMetric: &armdatafactory.PipelineElapsedTimeMetricPolicy{ + // Duration: "0.00:10:00", + // }, + // }, + // Variables: map[string]*armdatafactory.VariableSpecification{ + // "TestVariableArray": &armdatafactory.VariableSpecification{ + // Type: to.Ptr(armdatafactory.VariableTypeArray), + // }, + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Delete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Delete.json func ExamplePipelinesClient_Delete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -250,7 +525,7 @@ func ExamplePipelinesClient_Delete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_CreateRun.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_CreateRun.json func ExamplePipelinesClient_CreateRun() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -265,8 +540,8 @@ func ExamplePipelinesClient_CreateRun() { IsRecovery: nil, StartActivityName: nil, StartFromFailure: nil, - Parameters: map[string]interface{}{ - "OutputBlobNameList": []interface{}{ + Parameters: map[string]any{ + "OutputBlobNameList": []any{ "exampleoutput.csv", }, }, @@ -274,6 +549,10 @@ func ExamplePipelinesClient_CreateRun() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.CreateRunResponse = armdatafactory.CreateRunResponse{ + // RunID: to.Ptr("2f7fdb90-5df1-4b8e-ac2f-064cfa58202b"), + // } } diff --git a/sdk/resourcemanager/datafactory/armdatafactory/polymorphic_helpers.go b/sdk/resourcemanager/datafactory/armdatafactory/polymorphic_helpers.go index 030a6ecb2592..42d366ae3711 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/polymorphic_helpers.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/polymorphic_helpers.go @@ -15,7 +15,7 @@ func unmarshalActivityClassification(rawMsg json.RawMessage) (ActivityClassifica if rawMsg == nil { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } @@ -132,7 +132,7 @@ func unmarshalCompressionReadSettingsClassification(rawMsg json.RawMessage) (Com if rawMsg == nil { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } @@ -154,7 +154,7 @@ func unmarshalCopySinkClassification(rawMsg json.RawMessage) (CopySinkClassifica if rawMsg == nil { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } @@ -248,7 +248,7 @@ func unmarshalCopySourceClassification(rawMsg json.RawMessage) (CopySourceClassi if rawMsg == nil { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } @@ -452,11 +452,31 @@ func unmarshalCopySourceClassification(rawMsg json.RawMessage) (CopySourceClassi return b, json.Unmarshal(rawMsg, b) } +func unmarshalCredentialClassification(rawMsg json.RawMessage) (CredentialClassification, error) { + if rawMsg == nil { + return nil, nil + } + var m map[string]any + if err := json.Unmarshal(rawMsg, &m); err != nil { + return nil, err + } + var b CredentialClassification + switch m["type"] { + case "ManagedIdentity": + b = &ManagedIdentityCredential{} + case "ServicePrincipal": + b = &ServicePrincipalCredential{} + default: + b = &Credential{} + } + return b, json.Unmarshal(rawMsg, b) +} + func unmarshalCustomSetupBaseClassification(rawMsg json.RawMessage) (CustomSetupBaseClassification, error) { if rawMsg == nil { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } @@ -499,7 +519,7 @@ func unmarshalDataFlowClassification(rawMsg json.RawMessage) (DataFlowClassifica if rawMsg == nil { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } @@ -521,7 +541,7 @@ func unmarshalDatasetClassification(rawMsg json.RawMessage) (DatasetClassificati if rawMsg == nil { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } @@ -729,7 +749,7 @@ func unmarshalDatasetLocationClassification(rawMsg json.RawMessage) (DatasetLoca if rawMsg == nil { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } @@ -771,7 +791,7 @@ func unmarshalDatasetStorageFormatClassification(rawMsg json.RawMessage) (Datase if rawMsg == nil { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } @@ -797,7 +817,7 @@ func unmarshalDependencyReferenceClassification(rawMsg json.RawMessage) (Depende if rawMsg == nil { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } @@ -838,7 +858,7 @@ func unmarshalFactoryRepoConfigurationClassification(rawMsg json.RawMessage) (Fa if rawMsg == nil { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } @@ -858,7 +878,7 @@ func unmarshalFormatReadSettingsClassification(rawMsg json.RawMessage) (FormatRe if rawMsg == nil { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } @@ -882,7 +902,7 @@ func unmarshalIntegrationRuntimeClassification(rawMsg json.RawMessage) (Integrat if rawMsg == nil { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } @@ -902,7 +922,7 @@ func unmarshalIntegrationRuntimeStatusClassification(rawMsg json.RawMessage) (In if rawMsg == nil { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } @@ -922,7 +942,7 @@ func unmarshalLinkedIntegrationRuntimeTypeClassification(rawMsg json.RawMessage) if rawMsg == nil { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } @@ -942,7 +962,7 @@ func unmarshalLinkedServiceClassification(rawMsg json.RawMessage) (LinkedService if rawMsg == nil { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } @@ -1184,7 +1204,7 @@ func unmarshalSecretBaseClassification(rawMsg json.RawMessage) (SecretBaseClassi if rawMsg == nil { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } @@ -1204,7 +1224,7 @@ func unmarshalSsisObjectMetadataClassification(rawMsg json.RawMessage) (SsisObje if rawMsg == nil { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } @@ -1247,7 +1267,7 @@ func unmarshalStoreReadSettingsClassification(rawMsg json.RawMessage) (StoreRead if rawMsg == nil { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } @@ -1289,7 +1309,7 @@ func unmarshalStoreWriteSettingsClassification(rawMsg json.RawMessage) (StoreWri if rawMsg == nil { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } @@ -1317,7 +1337,7 @@ func unmarshalTriggerClassification(rawMsg json.RawMessage) (TriggerClassificati if rawMsg == nil { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } @@ -1349,7 +1369,7 @@ func unmarshalWebLinkedServiceTypePropertiesClassification(rawMsg json.RawMessag if rawMsg == nil { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } diff --git a/sdk/resourcemanager/datafactory/armdatafactory/privateendpointconnection_client.go b/sdk/resourcemanager/datafactory/armdatafactory/privateendpointconnection_client.go index 3af1e26acea2..fdfdab384226 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/privateendpointconnection_client.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/privateendpointconnection_client.go @@ -32,9 +32,9 @@ type PrivateEndpointConnectionClient struct { } // NewPrivateEndpointConnectionClient creates a new instance of PrivateEndpointConnectionClient with the specified values. -// subscriptionID - The subscription identifier. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The subscription identifier. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewPrivateEndpointConnectionClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PrivateEndpointConnectionClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,12 +57,13 @@ func NewPrivateEndpointConnectionClient(subscriptionID string, credential azcore // CreateOrUpdate - Approves or rejects a private endpoint connection // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// privateEndpointConnectionName - The private endpoint connection name. -// options - PrivateEndpointConnectionClientCreateOrUpdateOptions contains the optional parameters for the PrivateEndpointConnectionClient.CreateOrUpdate -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - privateEndpointConnectionName - The private endpoint connection name. +// - options - PrivateEndpointConnectionClientCreateOrUpdateOptions contains the optional parameters for the PrivateEndpointConnectionClient.CreateOrUpdate +// method. func (client *PrivateEndpointConnectionClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, factoryName string, privateEndpointConnectionName string, privateEndpointWrapper PrivateLinkConnectionApprovalRequestResource, options *PrivateEndpointConnectionClientCreateOrUpdateOptions) (PrivateEndpointConnectionClientCreateOrUpdateResponse, error) { req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, factoryName, privateEndpointConnectionName, privateEndpointWrapper, options) if err != nil { @@ -122,12 +123,13 @@ func (client *PrivateEndpointConnectionClient) createOrUpdateHandleResponse(resp // Delete - Deletes a private endpoint connection // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// privateEndpointConnectionName - The private endpoint connection name. -// options - PrivateEndpointConnectionClientDeleteOptions contains the optional parameters for the PrivateEndpointConnectionClient.Delete -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - privateEndpointConnectionName - The private endpoint connection name. +// - options - PrivateEndpointConnectionClientDeleteOptions contains the optional parameters for the PrivateEndpointConnectionClient.Delete +// method. func (client *PrivateEndpointConnectionClient) Delete(ctx context.Context, resourceGroupName string, factoryName string, privateEndpointConnectionName string, options *PrivateEndpointConnectionClientDeleteOptions) (PrivateEndpointConnectionClientDeleteResponse, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, factoryName, privateEndpointConnectionName, options) if err != nil { @@ -175,12 +177,13 @@ func (client *PrivateEndpointConnectionClient) deleteCreateRequest(ctx context.C // Get - Gets a private endpoint connection // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// privateEndpointConnectionName - The private endpoint connection name. -// options - PrivateEndpointConnectionClientGetOptions contains the optional parameters for the PrivateEndpointConnectionClient.Get -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - privateEndpointConnectionName - The private endpoint connection name. +// - options - PrivateEndpointConnectionClientGetOptions contains the optional parameters for the PrivateEndpointConnectionClient.Get +// method. func (client *PrivateEndpointConnectionClient) Get(ctx context.Context, resourceGroupName string, factoryName string, privateEndpointConnectionName string, options *PrivateEndpointConnectionClientGetOptions) (PrivateEndpointConnectionClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, factoryName, privateEndpointConnectionName, options) if err != nil { diff --git a/sdk/resourcemanager/datafactory/armdatafactory/privateendpointconnection_client_example_test.go b/sdk/resourcemanager/datafactory/armdatafactory/privateendpointconnection_client_example_test.go index bdfd20e7e253..630fbf07bfec 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/privateendpointconnection_client_example_test.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/privateendpointconnection_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armdatafactory_test @@ -17,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ApproveRejectPrivateEndpointConnection.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ApproveRejectPrivateEndpointConnection.json func ExamplePrivateEndpointConnectionClient_CreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -43,11 +44,28 @@ func ExamplePrivateEndpointConnectionClient_CreateOrUpdate() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.PrivateEndpointConnectionResource = armdatafactory.PrivateEndpointConnectionResource{ + // Name: to.Ptr("exampleFactoryName"), + // Type: to.Ptr("Microsoft.DataFactory/factories/privateEndpointConnections"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName"), + // Properties: &armdatafactory.RemotePrivateEndpointConnection{ + // PrivateEndpoint: &armdatafactory.ArmIDWrapper{ + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/privateEndpoints/myPrivateEndpoint"), + // }, + // PrivateLinkServiceConnectionState: &armdatafactory.PrivateLinkConnectionState{ + // Description: to.Ptr("Approved by admin."), + // ActionsRequired: to.Ptr(""), + // Status: to.Ptr("Approved"), + // }, + // ProvisioningState: to.Ptr("Succeeded"), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GetPrivateEndpointConnection.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GetPrivateEndpointConnection.json func ExamplePrivateEndpointConnectionClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -62,11 +80,28 @@ func ExamplePrivateEndpointConnectionClient_Get() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.PrivateEndpointConnectionResource = armdatafactory.PrivateEndpointConnectionResource{ + // Name: to.Ptr("exampleFactoryName"), + // Type: to.Ptr("Microsoft.DataFactory/factories/privateEndpointConnections"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName"), + // Properties: &armdatafactory.RemotePrivateEndpointConnection{ + // PrivateEndpoint: &armdatafactory.ArmIDWrapper{ + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/privateEndpoints/myPrivateEndpoint"), + // }, + // PrivateLinkServiceConnectionState: &armdatafactory.PrivateLinkConnectionState{ + // Description: to.Ptr("Approved by admin."), + // ActionsRequired: to.Ptr(""), + // Status: to.Ptr("Approved"), + // }, + // ProvisioningState: to.Ptr("Succeeded"), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DeletePrivateEndpointConnection.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DeletePrivateEndpointConnection.json func ExamplePrivateEndpointConnectionClient_Delete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/datafactory/armdatafactory/privateendpointconnections_client.go b/sdk/resourcemanager/datafactory/armdatafactory/privateendpointconnections_client.go index 340027f8759a..a41b7bbfb78a 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/privateendpointconnections_client.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/privateendpointconnections_client.go @@ -32,9 +32,9 @@ type PrivateEndPointConnectionsClient struct { } // NewPrivateEndPointConnectionsClient creates a new instance of PrivateEndPointConnectionsClient with the specified values. -// subscriptionID - The subscription identifier. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The subscription identifier. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewPrivateEndPointConnectionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PrivateEndPointConnectionsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,11 +56,12 @@ func NewPrivateEndPointConnectionsClient(subscriptionID string, credential azcor } // NewListByFactoryPager - Lists Private endpoint connections +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// options - PrivateEndPointConnectionsClientListByFactoryOptions contains the optional parameters for the PrivateEndPointConnectionsClient.ListByFactory -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - options - PrivateEndPointConnectionsClientListByFactoryOptions contains the optional parameters for the PrivateEndPointConnectionsClient.NewListByFactoryPager +// method. func (client *PrivateEndPointConnectionsClient) NewListByFactoryPager(resourceGroupName string, factoryName string, options *PrivateEndPointConnectionsClientListByFactoryOptions) *runtime.Pager[PrivateEndPointConnectionsClientListByFactoryResponse] { return runtime.NewPager(runtime.PagingHandler[PrivateEndPointConnectionsClientListByFactoryResponse]{ More: func(page PrivateEndPointConnectionsClientListByFactoryResponse) bool { diff --git a/sdk/resourcemanager/datafactory/armdatafactory/privateendpointconnections_client_example_test.go b/sdk/resourcemanager/datafactory/armdatafactory/privateendpointconnections_client_example_test.go index 393f787d724d..8b810e53c52e 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/privateendpointconnections_client_example_test.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/privateendpointconnections_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armdatafactory_test @@ -16,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/PrivateEndPointConnections_ListByFactory.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/PrivateEndPointConnections_ListByFactory.json func ExamplePrivateEndPointConnectionsClient_NewListByFactoryPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -29,13 +30,33 @@ func ExamplePrivateEndPointConnectionsClient_NewListByFactoryPager() { } pager := client.NewListByFactoryPager("exampleResourceGroup", "exampleFactoryName", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.PrivateEndpointConnectionListResponse = armdatafactory.PrivateEndpointConnectionListResponse{ + // Value: []*armdatafactory.PrivateEndpointConnectionResource{ + // { + // Name: to.Ptr("factories"), + // Type: to.Ptr("Microsoft.DataFactory/factories/privateEndpointConnections"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/privateEndpoints/myPrivateEndpoint"), + // Properties: &armdatafactory.RemotePrivateEndpointConnection{ + // PrivateEndpoint: &armdatafactory.ArmIDWrapper{ + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/managedVirtualNetworks/myPrivateEndpoint"), + // }, + // PrivateLinkServiceConnectionState: &armdatafactory.PrivateLinkConnectionState{ + // Description: to.Ptr("Approved by admin."), + // ActionsRequired: to.Ptr("exampleActionsRequired"), + // Status: to.Ptr("Approved"), + // }, + // ProvisioningState: to.Ptr("Succeeded"), + // }, + // }}, + // } } } diff --git a/sdk/resourcemanager/datafactory/armdatafactory/privatelinkresources_client.go b/sdk/resourcemanager/datafactory/armdatafactory/privatelinkresources_client.go index ce08c11c47a2..d20e15adf005 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/privatelinkresources_client.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/privatelinkresources_client.go @@ -32,9 +32,9 @@ type PrivateLinkResourcesClient struct { } // NewPrivateLinkResourcesClient creates a new instance of PrivateLinkResourcesClient with the specified values. -// subscriptionID - The subscription identifier. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The subscription identifier. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewPrivateLinkResourcesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PrivateLinkResourcesClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,11 +57,12 @@ func NewPrivateLinkResourcesClient(subscriptionID string, credential azcore.Toke // Get - Gets the private link resources // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// options - PrivateLinkResourcesClientGetOptions contains the optional parameters for the PrivateLinkResourcesClient.Get -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - options - PrivateLinkResourcesClientGetOptions contains the optional parameters for the PrivateLinkResourcesClient.Get +// method. func (client *PrivateLinkResourcesClient) Get(ctx context.Context, resourceGroupName string, factoryName string, options *PrivateLinkResourcesClientGetOptions) (PrivateLinkResourcesClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, factoryName, options) if err != nil { diff --git a/sdk/resourcemanager/datafactory/armdatafactory/privatelinkresources_client_example_test.go b/sdk/resourcemanager/datafactory/armdatafactory/privatelinkresources_client_example_test.go index e568b8fe4f10..9371bc62aff2 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/privatelinkresources_client_example_test.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/privatelinkresources_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armdatafactory_test @@ -16,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GetPrivateLinkResources.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GetPrivateLinkResources.json func ExamplePrivateLinkResourcesClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -31,6 +32,22 @@ func ExamplePrivateLinkResourcesClient_Get() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.PrivateLinkResourcesWrapper = armdatafactory.PrivateLinkResourcesWrapper{ + // Value: []*armdatafactory.PrivateLinkResource{ + // { + // Name: to.Ptr("exampleFactoryName"), + // Type: to.Ptr("Microsoft.DataFactory/factories/privateLinkResources"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName"), + // Properties: &armdatafactory.PrivateLinkResourceProperties{ + // GroupID: to.Ptr("dataFactory"), + // RequiredMembers: []*string{ + // to.Ptr("dataFactory")}, + // RequiredZoneNames: []*string{ + // to.Ptr("privatelink.datafactory.azure.net")}, + // }, + // }}, + // } } diff --git a/sdk/resourcemanager/datafactory/armdatafactory/response_types.go b/sdk/resourcemanager/datafactory/armdatafactory/response_types.go index f57a7aca83e6..c36654413b2c 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/response_types.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/response_types.go @@ -14,12 +14,32 @@ type ActivityRunsClientQueryByPipelineRunResponse struct { ActivityRunsQueryResponse } +// CredentialOperationsClientCreateOrUpdateResponse contains the response from method CredentialOperationsClient.CreateOrUpdate. +type CredentialOperationsClientCreateOrUpdateResponse struct { + ManagedIdentityCredentialResource +} + +// CredentialOperationsClientDeleteResponse contains the response from method CredentialOperationsClient.Delete. +type CredentialOperationsClientDeleteResponse struct { + // placeholder for future response values +} + +// CredentialOperationsClientGetResponse contains the response from method CredentialOperationsClient.Get. +type CredentialOperationsClientGetResponse struct { + ManagedIdentityCredentialResource +} + +// CredentialOperationsClientListByFactoryResponse contains the response from method CredentialOperationsClient.NewListByFactoryPager. +type CredentialOperationsClientListByFactoryResponse struct { + CredentialListResponse +} + // DataFlowDebugSessionClientAddDataFlowResponse contains the response from method DataFlowDebugSessionClient.AddDataFlow. type DataFlowDebugSessionClientAddDataFlowResponse struct { AddDataFlowToDebugSessionResponse } -// DataFlowDebugSessionClientCreateResponse contains the response from method DataFlowDebugSessionClient.Create. +// DataFlowDebugSessionClientCreateResponse contains the response from method DataFlowDebugSessionClient.BeginCreate. type DataFlowDebugSessionClientCreateResponse struct { CreateDataFlowDebugSessionResponse } @@ -29,12 +49,12 @@ type DataFlowDebugSessionClientDeleteResponse struct { // placeholder for future response values } -// DataFlowDebugSessionClientExecuteCommandResponse contains the response from method DataFlowDebugSessionClient.ExecuteCommand. +// DataFlowDebugSessionClientExecuteCommandResponse contains the response from method DataFlowDebugSessionClient.BeginExecuteCommand. type DataFlowDebugSessionClientExecuteCommandResponse struct { DataFlowDebugCommandResponse } -// DataFlowDebugSessionClientQueryByFactoryResponse contains the response from method DataFlowDebugSessionClient.QueryByFactory. +// DataFlowDebugSessionClientQueryByFactoryResponse contains the response from method DataFlowDebugSessionClient.NewQueryByFactoryPager. type DataFlowDebugSessionClientQueryByFactoryResponse struct { QueryDataFlowDebugSessionsResponse } @@ -54,7 +74,7 @@ type DataFlowsClientGetResponse struct { DataFlowResource } -// DataFlowsClientListByFactoryResponse contains the response from method DataFlowsClient.ListByFactory. +// DataFlowsClientListByFactoryResponse contains the response from method DataFlowsClient.NewListByFactoryPager. type DataFlowsClientListByFactoryResponse struct { DataFlowListResponse } @@ -74,7 +94,7 @@ type DatasetsClientGetResponse struct { DatasetResource } -// DatasetsClientListByFactoryResponse contains the response from method DatasetsClient.ListByFactory. +// DatasetsClientListByFactoryResponse contains the response from method DatasetsClient.NewListByFactoryPager. type DatasetsClientListByFactoryResponse struct { DatasetListResponse } @@ -124,12 +144,12 @@ type FactoriesClientGetResponse struct { Factory } -// FactoriesClientListByResourceGroupResponse contains the response from method FactoriesClient.ListByResourceGroup. +// FactoriesClientListByResourceGroupResponse contains the response from method FactoriesClient.NewListByResourceGroupPager. type FactoriesClientListByResourceGroupResponse struct { FactoryListResponse } -// FactoriesClientListResponse contains the response from method FactoriesClient.List. +// FactoriesClientListResponse contains the response from method FactoriesClient.NewListPager. type FactoriesClientListResponse struct { FactoryListResponse } @@ -154,7 +174,7 @@ type GlobalParametersClientGetResponse struct { GlobalParameterResource } -// GlobalParametersClientListByFactoryResponse contains the response from method GlobalParametersClient.ListByFactory. +// GlobalParametersClientListByFactoryResponse contains the response from method GlobalParametersClient.NewListByFactoryPager. type GlobalParametersClientListByFactoryResponse struct { GlobalParameterListResponse } @@ -184,7 +204,7 @@ type IntegrationRuntimeObjectMetadataClientGetResponse struct { SsisObjectMetadataListResponse } -// IntegrationRuntimeObjectMetadataClientRefreshResponse contains the response from method IntegrationRuntimeObjectMetadataClient.Refresh. +// IntegrationRuntimeObjectMetadataClientRefreshResponse contains the response from method IntegrationRuntimeObjectMetadataClient.BeginRefresh. type IntegrationRuntimeObjectMetadataClientRefreshResponse struct { SsisObjectMetadataStatusResponse } @@ -229,7 +249,7 @@ type IntegrationRuntimesClientListAuthKeysResponse struct { IntegrationRuntimeAuthKeys } -// IntegrationRuntimesClientListByFactoryResponse contains the response from method IntegrationRuntimesClient.ListByFactory. +// IntegrationRuntimesClientListByFactoryResponse contains the response from method IntegrationRuntimesClient.NewListByFactoryPager. type IntegrationRuntimesClientListByFactoryResponse struct { IntegrationRuntimeListResponse } @@ -249,12 +269,12 @@ type IntegrationRuntimesClientRemoveLinksResponse struct { // placeholder for future response values } -// IntegrationRuntimesClientStartResponse contains the response from method IntegrationRuntimesClient.Start. +// IntegrationRuntimesClientStartResponse contains the response from method IntegrationRuntimesClient.BeginStart. type IntegrationRuntimesClientStartResponse struct { IntegrationRuntimeStatusResponse } -// IntegrationRuntimesClientStopResponse contains the response from method IntegrationRuntimesClient.Stop. +// IntegrationRuntimesClientStopResponse contains the response from method IntegrationRuntimesClient.BeginStop. type IntegrationRuntimesClientStopResponse struct { // placeholder for future response values } @@ -289,7 +309,7 @@ type LinkedServicesClientGetResponse struct { LinkedServiceResource } -// LinkedServicesClientListByFactoryResponse contains the response from method LinkedServicesClient.ListByFactory. +// LinkedServicesClientListByFactoryResponse contains the response from method LinkedServicesClient.NewListByFactoryPager. type LinkedServicesClientListByFactoryResponse struct { LinkedServiceListResponse } @@ -309,7 +329,7 @@ type ManagedPrivateEndpointsClientGetResponse struct { ManagedPrivateEndpointResource } -// ManagedPrivateEndpointsClientListByFactoryResponse contains the response from method ManagedPrivateEndpointsClient.ListByFactory. +// ManagedPrivateEndpointsClientListByFactoryResponse contains the response from method ManagedPrivateEndpointsClient.NewListByFactoryPager. type ManagedPrivateEndpointsClientListByFactoryResponse struct { ManagedPrivateEndpointListResponse } @@ -324,12 +344,12 @@ type ManagedVirtualNetworksClientGetResponse struct { ManagedVirtualNetworkResource } -// ManagedVirtualNetworksClientListByFactoryResponse contains the response from method ManagedVirtualNetworksClient.ListByFactory. +// ManagedVirtualNetworksClientListByFactoryResponse contains the response from method ManagedVirtualNetworksClient.NewListByFactoryPager. type ManagedVirtualNetworksClientListByFactoryResponse struct { ManagedVirtualNetworkListResponse } -// OperationsClientListResponse contains the response from method OperationsClient.List. +// OperationsClientListResponse contains the response from method OperationsClient.NewListPager. type OperationsClientListResponse struct { OperationListResponse } @@ -369,12 +389,12 @@ type PipelinesClientGetResponse struct { PipelineResource } -// PipelinesClientListByFactoryResponse contains the response from method PipelinesClient.ListByFactory. +// PipelinesClientListByFactoryResponse contains the response from method PipelinesClient.NewListByFactoryPager. type PipelinesClientListByFactoryResponse struct { PipelineListResponse } -// PrivateEndPointConnectionsClientListByFactoryResponse contains the response from method PrivateEndPointConnectionsClient.ListByFactory. +// PrivateEndPointConnectionsClientListByFactoryResponse contains the response from method PrivateEndPointConnectionsClient.NewListByFactoryPager. type PrivateEndPointConnectionsClientListByFactoryResponse struct { PrivateEndpointConnectionListResponse } @@ -434,7 +454,7 @@ type TriggersClientGetResponse struct { TriggerResource } -// TriggersClientListByFactoryResponse contains the response from method TriggersClient.ListByFactory. +// TriggersClientListByFactoryResponse contains the response from method TriggersClient.NewListByFactoryPager. type TriggersClientListByFactoryResponse struct { TriggerListResponse } @@ -444,22 +464,22 @@ type TriggersClientQueryByFactoryResponse struct { TriggerQueryResponse } -// TriggersClientStartResponse contains the response from method TriggersClient.Start. +// TriggersClientStartResponse contains the response from method TriggersClient.BeginStart. type TriggersClientStartResponse struct { // placeholder for future response values } -// TriggersClientStopResponse contains the response from method TriggersClient.Stop. +// TriggersClientStopResponse contains the response from method TriggersClient.BeginStop. type TriggersClientStopResponse struct { // placeholder for future response values } -// TriggersClientSubscribeToEventsResponse contains the response from method TriggersClient.SubscribeToEvents. +// TriggersClientSubscribeToEventsResponse contains the response from method TriggersClient.BeginSubscribeToEvents. type TriggersClientSubscribeToEventsResponse struct { TriggerSubscriptionOperationStatus } -// TriggersClientUnsubscribeFromEventsResponse contains the response from method TriggersClient.UnsubscribeFromEvents. +// TriggersClientUnsubscribeFromEventsResponse contains the response from method TriggersClient.BeginUnsubscribeFromEvents. type TriggersClientUnsubscribeFromEventsResponse struct { TriggerSubscriptionOperationStatus } diff --git a/sdk/resourcemanager/datafactory/armdatafactory/time_rfc3339.go b/sdk/resourcemanager/datafactory/armdatafactory/time_rfc3339.go index aeac0835b7ce..2019e5792472 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/time_rfc3339.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/time_rfc3339.go @@ -62,7 +62,7 @@ func (t *timeRFC3339) Parse(layout, value string) error { return err } -func populateTimeRFC3339(m map[string]interface{}, k string, t *time.Time) { +func populateTimeRFC3339(m map[string]any, k string, t *time.Time) { if t == nil { return } else if azcore.IsNullValue(t) { diff --git a/sdk/resourcemanager/datafactory/armdatafactory/triggerruns_client.go b/sdk/resourcemanager/datafactory/armdatafactory/triggerruns_client.go index a6200f4ba67c..3eec20d65524 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/triggerruns_client.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/triggerruns_client.go @@ -32,9 +32,9 @@ type TriggerRunsClient struct { } // NewTriggerRunsClient creates a new instance of TriggerRunsClient with the specified values. -// subscriptionID - The subscription identifier. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The subscription identifier. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewTriggerRunsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*TriggerRunsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,12 +57,13 @@ func NewTriggerRunsClient(subscriptionID string, credential azcore.TokenCredenti // Cancel - Cancel a single trigger instance by runId. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// triggerName - The trigger name. -// runID - The pipeline run identifier. -// options - TriggerRunsClientCancelOptions contains the optional parameters for the TriggerRunsClient.Cancel method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - triggerName - The trigger name. +// - runID - The pipeline run identifier. +// - options - TriggerRunsClientCancelOptions contains the optional parameters for the TriggerRunsClient.Cancel method. func (client *TriggerRunsClient) Cancel(ctx context.Context, resourceGroupName string, factoryName string, triggerName string, runID string, options *TriggerRunsClientCancelOptions) (TriggerRunsClientCancelResponse, error) { req, err := client.cancelCreateRequest(ctx, resourceGroupName, factoryName, triggerName, runID, options) if err != nil { @@ -114,12 +115,13 @@ func (client *TriggerRunsClient) cancelCreateRequest(ctx context.Context, resour // QueryByFactory - Query trigger runs. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// filterParameters - Parameters to filter the pipeline run. -// options - TriggerRunsClientQueryByFactoryOptions contains the optional parameters for the TriggerRunsClient.QueryByFactory -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - filterParameters - Parameters to filter the pipeline run. +// - options - TriggerRunsClientQueryByFactoryOptions contains the optional parameters for the TriggerRunsClient.QueryByFactory +// method. func (client *TriggerRunsClient) QueryByFactory(ctx context.Context, resourceGroupName string, factoryName string, filterParameters RunFilterParameters, options *TriggerRunsClientQueryByFactoryOptions) (TriggerRunsClientQueryByFactoryResponse, error) { req, err := client.queryByFactoryCreateRequest(ctx, resourceGroupName, factoryName, filterParameters, options) if err != nil { @@ -172,12 +174,13 @@ func (client *TriggerRunsClient) queryByFactoryHandleResponse(resp *http.Respons // Rerun - Rerun single trigger instance by runId. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// triggerName - The trigger name. -// runID - The pipeline run identifier. -// options - TriggerRunsClientRerunOptions contains the optional parameters for the TriggerRunsClient.Rerun method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - triggerName - The trigger name. +// - runID - The pipeline run identifier. +// - options - TriggerRunsClientRerunOptions contains the optional parameters for the TriggerRunsClient.Rerun method. func (client *TriggerRunsClient) Rerun(ctx context.Context, resourceGroupName string, factoryName string, triggerName string, runID string, options *TriggerRunsClientRerunOptions) (TriggerRunsClientRerunResponse, error) { req, err := client.rerunCreateRequest(ctx, resourceGroupName, factoryName, triggerName, runID, options) if err != nil { diff --git a/sdk/resourcemanager/datafactory/armdatafactory/triggerruns_client_example_test.go b/sdk/resourcemanager/datafactory/armdatafactory/triggerruns_client_example_test.go index 7022cd617170..51e634e0cdb0 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/triggerruns_client_example_test.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/triggerruns_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armdatafactory_test @@ -19,7 +20,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/TriggerRuns_Rerun.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/TriggerRuns_Rerun.json func ExampleTriggerRunsClient_Rerun() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -36,7 +37,7 @@ func ExampleTriggerRunsClient_Rerun() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/TriggerRuns_Cancel.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/TriggerRuns_Cancel.json func ExampleTriggerRunsClient_Cancel() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -53,7 +54,7 @@ func ExampleTriggerRunsClient_Cancel() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/TriggerRuns_QueryByFactory.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/TriggerRuns_QueryByFactory.json func ExampleTriggerRunsClient_QueryByFactory() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -78,6 +79,25 @@ func ExampleTriggerRunsClient_QueryByFactory() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.TriggerRunsQueryResponse = armdatafactory.TriggerRunsQueryResponse{ + // Value: []*armdatafactory.TriggerRun{ + // { + // Message: to.Ptr(""), + // Properties: map[string]*string{ + // "ScheduleTime": to.Ptr("6/16/2018 12:43:14 AM"), + // "TriggerTime": to.Ptr("6/16/2018 12:43:15 AM"), + // }, + // Status: to.Ptr(armdatafactory.TriggerRunStatusSucceeded), + // TriggerName: to.Ptr("exampleTrigger"), + // TriggerRunID: to.Ptr("08586724970898148904457116912CU27"), + // TriggerRunTimestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-16T00:43:15.660141Z"); return t}()), + // TriggerType: to.Ptr("ScheduleTrigger"), + // TriggeredPipelines: map[string]*string{ + // "examplePipeline": to.Ptr("9f3ce8b3-37d7-43eb-96ac-a656c0476283"), + // }, + // }}, + // } } diff --git a/sdk/resourcemanager/datafactory/armdatafactory/triggers_client.go b/sdk/resourcemanager/datafactory/armdatafactory/triggers_client.go index cc1b2a6ea17b..e864436ce283 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/triggers_client.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/triggers_client.go @@ -32,9 +32,9 @@ type TriggersClient struct { } // NewTriggersClient creates a new instance of TriggersClient with the specified values. -// subscriptionID - The subscription identifier. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The subscription identifier. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewTriggersClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*TriggersClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,12 +57,13 @@ func NewTriggersClient(subscriptionID string, credential azcore.TokenCredential, // CreateOrUpdate - Creates or updates a trigger. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// triggerName - The trigger name. -// trigger - Trigger resource definition. -// options - TriggersClientCreateOrUpdateOptions contains the optional parameters for the TriggersClient.CreateOrUpdate method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - triggerName - The trigger name. +// - trigger - Trigger resource definition. +// - options - TriggersClientCreateOrUpdateOptions contains the optional parameters for the TriggersClient.CreateOrUpdate method. func (client *TriggersClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, factoryName string, triggerName string, trigger TriggerResource, options *TriggersClientCreateOrUpdateOptions) (TriggersClientCreateOrUpdateResponse, error) { req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, factoryName, triggerName, trigger, options) if err != nil { @@ -122,11 +123,12 @@ func (client *TriggersClient) createOrUpdateHandleResponse(resp *http.Response) // Delete - Deletes a trigger. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// triggerName - The trigger name. -// options - TriggersClientDeleteOptions contains the optional parameters for the TriggersClient.Delete method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - triggerName - The trigger name. +// - options - TriggersClientDeleteOptions contains the optional parameters for the TriggersClient.Delete method. func (client *TriggersClient) Delete(ctx context.Context, resourceGroupName string, factoryName string, triggerName string, options *TriggersClientDeleteOptions) (TriggersClientDeleteResponse, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, factoryName, triggerName, options) if err != nil { @@ -174,11 +176,12 @@ func (client *TriggersClient) deleteCreateRequest(ctx context.Context, resourceG // Get - Gets a trigger. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// triggerName - The trigger name. -// options - TriggersClientGetOptions contains the optional parameters for the TriggersClient.Get method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - triggerName - The trigger name. +// - options - TriggersClientGetOptions contains the optional parameters for the TriggersClient.Get method. func (client *TriggersClient) Get(ctx context.Context, resourceGroupName string, factoryName string, triggerName string, options *TriggersClientGetOptions) (TriggersClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, factoryName, triggerName, options) if err != nil { @@ -238,12 +241,13 @@ func (client *TriggersClient) getHandleResponse(resp *http.Response) (TriggersCl // GetEventSubscriptionStatus - Get a trigger's event subscription status. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// triggerName - The trigger name. -// options - TriggersClientGetEventSubscriptionStatusOptions contains the optional parameters for the TriggersClient.GetEventSubscriptionStatus -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - triggerName - The trigger name. +// - options - TriggersClientGetEventSubscriptionStatusOptions contains the optional parameters for the TriggersClient.GetEventSubscriptionStatus +// method. func (client *TriggersClient) GetEventSubscriptionStatus(ctx context.Context, resourceGroupName string, factoryName string, triggerName string, options *TriggersClientGetEventSubscriptionStatusOptions) (TriggersClientGetEventSubscriptionStatusResponse, error) { req, err := client.getEventSubscriptionStatusCreateRequest(ctx, resourceGroupName, factoryName, triggerName, options) if err != nil { @@ -299,10 +303,12 @@ func (client *TriggersClient) getEventSubscriptionStatusHandleResponse(resp *htt } // NewListByFactoryPager - Lists triggers. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// options - TriggersClientListByFactoryOptions contains the optional parameters for the TriggersClient.ListByFactory method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - options - TriggersClientListByFactoryOptions contains the optional parameters for the TriggersClient.NewListByFactoryPager +// method. func (client *TriggersClient) NewListByFactoryPager(resourceGroupName string, factoryName string, options *TriggersClientListByFactoryOptions) *runtime.Pager[TriggersClientListByFactoryResponse] { return runtime.NewPager(runtime.PagingHandler[TriggersClientListByFactoryResponse]{ More: func(page TriggersClientListByFactoryResponse) bool { @@ -368,11 +374,12 @@ func (client *TriggersClient) listByFactoryHandleResponse(resp *http.Response) ( // QueryByFactory - Query triggers. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// filterParameters - Parameters to filter the triggers. -// options - TriggersClientQueryByFactoryOptions contains the optional parameters for the TriggersClient.QueryByFactory method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - filterParameters - Parameters to filter the triggers. +// - options - TriggersClientQueryByFactoryOptions contains the optional parameters for the TriggersClient.QueryByFactory method. func (client *TriggersClient) QueryByFactory(ctx context.Context, resourceGroupName string, factoryName string, filterParameters TriggerFilterParameters, options *TriggersClientQueryByFactoryOptions) (TriggersClientQueryByFactoryResponse, error) { req, err := client.queryByFactoryCreateRequest(ctx, resourceGroupName, factoryName, filterParameters, options) if err != nil { @@ -425,11 +432,12 @@ func (client *TriggersClient) queryByFactoryHandleResponse(resp *http.Response) // BeginStart - Starts a trigger. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// triggerName - The trigger name. -// options - TriggersClientBeginStartOptions contains the optional parameters for the TriggersClient.BeginStart method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - triggerName - The trigger name. +// - options - TriggersClientBeginStartOptions contains the optional parameters for the TriggersClient.BeginStart method. func (client *TriggersClient) BeginStart(ctx context.Context, resourceGroupName string, factoryName string, triggerName string, options *TriggersClientBeginStartOptions) (*runtime.Poller[TriggersClientStartResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.start(ctx, resourceGroupName, factoryName, triggerName, options) @@ -444,6 +452,7 @@ func (client *TriggersClient) BeginStart(ctx context.Context, resourceGroupName // Start - Starts a trigger. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 func (client *TriggersClient) start(ctx context.Context, resourceGroupName string, factoryName string, triggerName string, options *TriggersClientBeginStartOptions) (*http.Response, error) { req, err := client.startCreateRequest(ctx, resourceGroupName, factoryName, triggerName, options) @@ -492,11 +501,12 @@ func (client *TriggersClient) startCreateRequest(ctx context.Context, resourceGr // BeginStop - Stops a trigger. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// triggerName - The trigger name. -// options - TriggersClientBeginStopOptions contains the optional parameters for the TriggersClient.BeginStop method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - triggerName - The trigger name. +// - options - TriggersClientBeginStopOptions contains the optional parameters for the TriggersClient.BeginStop method. func (client *TriggersClient) BeginStop(ctx context.Context, resourceGroupName string, factoryName string, triggerName string, options *TriggersClientBeginStopOptions) (*runtime.Poller[TriggersClientStopResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.stop(ctx, resourceGroupName, factoryName, triggerName, options) @@ -511,6 +521,7 @@ func (client *TriggersClient) BeginStop(ctx context.Context, resourceGroupName s // Stop - Stops a trigger. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 func (client *TriggersClient) stop(ctx context.Context, resourceGroupName string, factoryName string, triggerName string, options *TriggersClientBeginStopOptions) (*http.Response, error) { req, err := client.stopCreateRequest(ctx, resourceGroupName, factoryName, triggerName, options) @@ -559,12 +570,13 @@ func (client *TriggersClient) stopCreateRequest(ctx context.Context, resourceGro // BeginSubscribeToEvents - Subscribe event trigger to events. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// triggerName - The trigger name. -// options - TriggersClientBeginSubscribeToEventsOptions contains the optional parameters for the TriggersClient.BeginSubscribeToEvents -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - triggerName - The trigger name. +// - options - TriggersClientBeginSubscribeToEventsOptions contains the optional parameters for the TriggersClient.BeginSubscribeToEvents +// method. func (client *TriggersClient) BeginSubscribeToEvents(ctx context.Context, resourceGroupName string, factoryName string, triggerName string, options *TriggersClientBeginSubscribeToEventsOptions) (*runtime.Poller[TriggersClientSubscribeToEventsResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.subscribeToEvents(ctx, resourceGroupName, factoryName, triggerName, options) @@ -579,6 +591,7 @@ func (client *TriggersClient) BeginSubscribeToEvents(ctx context.Context, resour // SubscribeToEvents - Subscribe event trigger to events. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 func (client *TriggersClient) subscribeToEvents(ctx context.Context, resourceGroupName string, factoryName string, triggerName string, options *TriggersClientBeginSubscribeToEventsOptions) (*http.Response, error) { req, err := client.subscribeToEventsCreateRequest(ctx, resourceGroupName, factoryName, triggerName, options) @@ -627,12 +640,13 @@ func (client *TriggersClient) subscribeToEventsCreateRequest(ctx context.Context // BeginUnsubscribeFromEvents - Unsubscribe event trigger from events. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 -// resourceGroupName - The resource group name. -// factoryName - The factory name. -// triggerName - The trigger name. -// options - TriggersClientBeginUnsubscribeFromEventsOptions contains the optional parameters for the TriggersClient.BeginUnsubscribeFromEvents -// method. +// - resourceGroupName - The resource group name. +// - factoryName - The factory name. +// - triggerName - The trigger name. +// - options - TriggersClientBeginUnsubscribeFromEventsOptions contains the optional parameters for the TriggersClient.BeginUnsubscribeFromEvents +// method. func (client *TriggersClient) BeginUnsubscribeFromEvents(ctx context.Context, resourceGroupName string, factoryName string, triggerName string, options *TriggersClientBeginUnsubscribeFromEventsOptions) (*runtime.Poller[TriggersClientUnsubscribeFromEventsResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.unsubscribeFromEvents(ctx, resourceGroupName, factoryName, triggerName, options) @@ -647,6 +661,7 @@ func (client *TriggersClient) BeginUnsubscribeFromEvents(ctx context.Context, re // UnsubscribeFromEvents - Unsubscribe event trigger from events. // If the operation fails it returns an *azcore.ResponseError type. +// // Generated from API version 2018-06-01 func (client *TriggersClient) unsubscribeFromEvents(ctx context.Context, resourceGroupName string, factoryName string, triggerName string, options *TriggersClientBeginUnsubscribeFromEventsOptions) (*http.Response, error) { req, err := client.unsubscribeFromEventsCreateRequest(ctx, resourceGroupName, factoryName, triggerName, options) diff --git a/sdk/resourcemanager/datafactory/armdatafactory/triggers_client_example_test.go b/sdk/resourcemanager/datafactory/armdatafactory/triggers_client_example_test.go index 7856061149cb..0416f480538f 100644 --- a/sdk/resourcemanager/datafactory/armdatafactory/triggers_client_example_test.go +++ b/sdk/resourcemanager/datafactory/armdatafactory/triggers_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armdatafactory_test @@ -19,7 +20,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/datafactory/armdatafactory/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_ListByFactory.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_ListByFactory.json func ExampleTriggersClient_NewListByFactoryPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -32,18 +33,54 @@ func ExampleTriggersClient_NewListByFactoryPager() { } pager := client.NewListByFactoryPager("exampleResourceGroup", "exampleFactoryName", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.TriggerListResponse = armdatafactory.TriggerListResponse{ + // Value: []*armdatafactory.TriggerResource{ + // { + // Name: to.Ptr("exampleTrigger"), + // Type: to.Ptr("Microsoft.DataFactory/factories/triggers"), + // Etag: to.Ptr("0a008ed4-0000-0000-0000-5b245c740000"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/triggers/exampleTrigger"), + // Properties: &armdatafactory.ScheduleTrigger{ + // Type: to.Ptr("ScheduleTrigger"), + // Description: to.Ptr("Example description"), + // RuntimeState: to.Ptr(armdatafactory.TriggerRuntimeStateStarted), + // Pipelines: []*armdatafactory.TriggerPipelineReference{ + // { + // Parameters: map[string]any{ + // "OutputBlobNameList": []any{ + // "exampleoutput.csv", + // }, + // }, + // PipelineReference: &armdatafactory.PipelineReference{ + // Type: to.Ptr(armdatafactory.PipelineReferenceTypePipelineReference), + // ReferenceName: to.Ptr("examplePipeline"), + // }, + // }}, + // TypeProperties: &armdatafactory.ScheduleTriggerTypeProperties{ + // Recurrence: &armdatafactory.ScheduleTriggerRecurrence{ + // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-16T00:55:14.905167Z"); return t}()), + // Frequency: to.Ptr(armdatafactory.RecurrenceFrequencyMinute), + // Interval: to.Ptr[int32](4), + // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-16T00:39:14.905167Z"); return t}()), + // TimeZone: to.Ptr("UTC"), + // }, + // }, + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_QueryByFactory.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_QueryByFactory.json func ExampleTriggersClient_QueryByFactory() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -60,11 +97,30 @@ func ExampleTriggersClient_QueryByFactory() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.TriggerQueryResponse = armdatafactory.TriggerQueryResponse{ + // Value: []*armdatafactory.TriggerResource{ + // { + // Name: to.Ptr("exampleRerunTrigger"), + // Type: to.Ptr("Microsoft.DataFactory/factories/triggers"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/triggers/exampleRerunTrigger"), + // Properties: &armdatafactory.RerunTumblingWindowTrigger{ + // Type: to.Ptr("RerunTumblingWindowTrigger"), + // Description: to.Ptr("Example description"), + // TypeProperties: &armdatafactory.RerunTumblingWindowTriggerTypeProperties{ + // ParentTrigger: "exampleTrigger", + // RequestedEndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-16T00:55:14.905167Z"); return t}()), + // RequestedStartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-16T00:39:14.905167Z"); return t}()), + // RerunConcurrency: to.Ptr[int32](4), + // }, + // }, + // }}, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Create.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Create.json func ExampleTriggersClient_CreateOrUpdate_triggersCreate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -80,8 +136,8 @@ func ExampleTriggersClient_CreateOrUpdate_triggersCreate() { Type: to.Ptr("ScheduleTrigger"), Pipelines: []*armdatafactory.TriggerPipelineReference{ { - Parameters: map[string]interface{}{ - "OutputBlobNameList": []interface{}{ + Parameters: map[string]any{ + "OutputBlobNameList": []any{ "exampleoutput.csv", }, }, @@ -104,11 +160,43 @@ func ExampleTriggersClient_CreateOrUpdate_triggersCreate() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.TriggerResource = armdatafactory.TriggerResource{ + // Name: to.Ptr("exampleTrigger"), + // Type: to.Ptr("Microsoft.DataFactory/factories/triggers"), + // Etag: to.Ptr("0a008ad4-0000-0000-0000-5b245c6e0000"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/triggers/exampleTrigger"), + // Properties: &armdatafactory.ScheduleTrigger{ + // Type: to.Ptr("ScheduleTrigger"), + // RuntimeState: to.Ptr(armdatafactory.TriggerRuntimeStateStopped), + // Pipelines: []*armdatafactory.TriggerPipelineReference{ + // { + // Parameters: map[string]any{ + // "OutputBlobNameList": []any{ + // "exampleoutput.csv", + // }, + // }, + // PipelineReference: &armdatafactory.PipelineReference{ + // Type: to.Ptr(armdatafactory.PipelineReferenceTypePipelineReference), + // ReferenceName: to.Ptr("examplePipeline"), + // }, + // }}, + // TypeProperties: &armdatafactory.ScheduleTriggerTypeProperties{ + // Recurrence: &armdatafactory.ScheduleTriggerRecurrence{ + // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-16T00:55:13.8441801Z"); return t}()), + // Frequency: to.Ptr(armdatafactory.RecurrenceFrequencyMinute), + // Interval: to.Ptr[int32](4), + // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-16T00:39:13.8441801Z"); return t}()), + // TimeZone: to.Ptr("UTC"), + // }, + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Update.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Update.json func ExampleTriggersClient_CreateOrUpdate_triggersUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -125,8 +213,8 @@ func ExampleTriggersClient_CreateOrUpdate_triggersUpdate() { Description: to.Ptr("Example description"), Pipelines: []*armdatafactory.TriggerPipelineReference{ { - Parameters: map[string]interface{}{ - "OutputBlobNameList": []interface{}{ + Parameters: map[string]any{ + "OutputBlobNameList": []any{ "exampleoutput.csv", }, }, @@ -149,11 +237,44 @@ func ExampleTriggersClient_CreateOrUpdate_triggersUpdate() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.TriggerResource = armdatafactory.TriggerResource{ + // Name: to.Ptr("exampleTrigger"), + // Type: to.Ptr("Microsoft.DataFactory/factories/triggers"), + // Etag: to.Ptr("0a008dd4-0000-0000-0000-5b245c6f0000"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/triggers/exampleTrigger"), + // Properties: &armdatafactory.ScheduleTrigger{ + // Type: to.Ptr("ScheduleTrigger"), + // Description: to.Ptr("Example description"), + // RuntimeState: to.Ptr(armdatafactory.TriggerRuntimeStateStopped), + // Pipelines: []*armdatafactory.TriggerPipelineReference{ + // { + // Parameters: map[string]any{ + // "OutputBlobNameList": []any{ + // "exampleoutput.csv", + // }, + // }, + // PipelineReference: &armdatafactory.PipelineReference{ + // Type: to.Ptr(armdatafactory.PipelineReferenceTypePipelineReference), + // ReferenceName: to.Ptr("examplePipeline"), + // }, + // }}, + // TypeProperties: &armdatafactory.ScheduleTriggerTypeProperties{ + // Recurrence: &armdatafactory.ScheduleTriggerRecurrence{ + // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-16T00:55:14.905167Z"); return t}()), + // Frequency: to.Ptr(armdatafactory.RecurrenceFrequencyMinute), + // Interval: to.Ptr[int32](4), + // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2018-06-16T00:39:14.905167Z"); return t}()), + // TimeZone: to.Ptr("UTC"), + // }, + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Get.json func ExampleTriggersClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -168,11 +289,43 @@ func ExampleTriggersClient_Get() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.TriggerResource = armdatafactory.TriggerResource{ + // Name: to.Ptr("exampleTrigger"), + // Type: to.Ptr("Microsoft.DataFactory/factories/triggers"), + // Etag: to.Ptr("1500544f-0000-0200-0000-5cbe09100000"), + // ID: to.Ptr("/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/triggers/exampleTrigger"), + // Properties: &armdatafactory.ScheduleTrigger{ + // Type: to.Ptr("ScheduleTrigger"), + // RuntimeState: to.Ptr(armdatafactory.TriggerRuntimeStateStopped), + // Pipelines: []*armdatafactory.TriggerPipelineReference{ + // { + // Parameters: map[string]any{ + // "OutputBlobNameList": []any{ + // "exampleoutput.csv", + // }, + // }, + // PipelineReference: &armdatafactory.PipelineReference{ + // Type: to.Ptr(armdatafactory.PipelineReferenceTypePipelineReference), + // ReferenceName: to.Ptr("examplePipeline"), + // }, + // }}, + // TypeProperties: &armdatafactory.ScheduleTriggerTypeProperties{ + // Recurrence: &armdatafactory.ScheduleTriggerRecurrence{ + // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-04-22T18:48:52.5281747Z"); return t}()), + // Frequency: to.Ptr(armdatafactory.RecurrenceFrequencyMinute), + // Interval: to.Ptr[int32](4), + // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-04-22T18:32:52.527912Z"); return t}()), + // TimeZone: to.Ptr("UTC"), + // }, + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Delete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Delete.json func ExampleTriggersClient_Delete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -189,7 +342,7 @@ func ExampleTriggersClient_Delete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_SubscribeToEvents.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_SubscribeToEvents.json func ExampleTriggersClient_BeginSubscribeToEvents() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -208,11 +361,16 @@ func ExampleTriggersClient_BeginSubscribeToEvents() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.TriggerSubscriptionOperationStatus = armdatafactory.TriggerSubscriptionOperationStatus{ + // Status: to.Ptr(armdatafactory.EventSubscriptionStatusEnabled), + // TriggerName: to.Ptr("exampleTrigger"), + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_GetEventSubscriptionStatus.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_GetEventSubscriptionStatus.json func ExampleTriggersClient_GetEventSubscriptionStatus() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -227,11 +385,16 @@ func ExampleTriggersClient_GetEventSubscriptionStatus() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.TriggerSubscriptionOperationStatus = armdatafactory.TriggerSubscriptionOperationStatus{ + // Status: to.Ptr(armdatafactory.EventSubscriptionStatusEnabled), + // TriggerName: to.Ptr("exampleTrigger"), + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_UnsubscribeFromEvents.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_UnsubscribeFromEvents.json func ExampleTriggersClient_BeginUnsubscribeFromEvents() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -250,11 +413,16 @@ func ExampleTriggersClient_BeginUnsubscribeFromEvents() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.TriggerSubscriptionOperationStatus = armdatafactory.TriggerSubscriptionOperationStatus{ + // Status: to.Ptr(armdatafactory.EventSubscriptionStatusDisabled), + // TriggerName: to.Ptr("exampleTrigger"), + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Start.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Start.json func ExampleTriggersClient_BeginStart() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -275,7 +443,7 @@ func ExampleTriggersClient_BeginStart() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Stop.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/4afa6837cfb404d8e5ffa8a604a5e09996d6f79e/specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Stop.json func ExampleTriggersClient_BeginStop() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { From c4184353a94f37a13668aee9c906c63eeacda43c Mon Sep 17 00:00:00 2001 From: Peng Jiahui <46921893+Alancere@users.noreply.github.com> Date: Fri, 24 Feb 2023 10:39:30 +0800 Subject: [PATCH 054/107] [Release] sdk/resourcemanager/storagemover/armstoragemover/0.1.0 generation from spec commit: 3d7a3848106b831a4a7f46976fe38aa605c4f44d (#19938) --- .../storagemover/armstoragemover/CHANGELOG.md | 7 + .../storagemover/armstoragemover/LICENSE.txt | 21 + .../storagemover/armstoragemover/README.md | 77 + .../armstoragemover/agents_client.go | 382 +++++ .../agents_client_example_test.go | 271 +++ .../storagemover/armstoragemover/autorest.md | 13 + .../storagemover/armstoragemover/build.go | 7 + .../storagemover/armstoragemover/ci.yml | 28 + .../storagemover/armstoragemover/constants.go | 202 +++ .../armstoragemover/endpoints_client.go | 383 +++++ .../endpoints_client_example_test.go | 206 +++ .../storagemover/armstoragemover/go.mod | 21 + .../storagemover/armstoragemover/go.sum | 30 + .../armstoragemover/jobdefinitions_client.go | 544 ++++++ .../jobdefinitions_client_example_test.go | 299 ++++ .../armstoragemover/jobruns_client.go | 207 +++ .../jobruns_client_example_test.go | 206 +++ .../storagemover/armstoragemover/models.go | 778 +++++++++ .../armstoragemover/models_serde.go | 1496 +++++++++++++++++ .../armstoragemover/operations_client.go | 105 ++ .../operations_client_example_test.go | 76 + .../armstoragemover/polymorphic_helpers.go | 32 + .../armstoragemover/projects_client.go | 382 +++++ .../projects_client_example_test.go | 184 ++ .../armstoragemover/response_types.go | 165 ++ .../armstoragemover/storagemovers_client.go | 419 +++++ .../storagemovers_client_example_test.go | 358 ++++ .../armstoragemover/time_rfc3339.go | 87 + 28 files changed, 6986 insertions(+) create mode 100644 sdk/resourcemanager/storagemover/armstoragemover/CHANGELOG.md create mode 100644 sdk/resourcemanager/storagemover/armstoragemover/LICENSE.txt create mode 100644 sdk/resourcemanager/storagemover/armstoragemover/README.md create mode 100644 sdk/resourcemanager/storagemover/armstoragemover/agents_client.go create mode 100644 sdk/resourcemanager/storagemover/armstoragemover/agents_client_example_test.go create mode 100644 sdk/resourcemanager/storagemover/armstoragemover/autorest.md create mode 100644 sdk/resourcemanager/storagemover/armstoragemover/build.go create mode 100644 sdk/resourcemanager/storagemover/armstoragemover/ci.yml create mode 100644 sdk/resourcemanager/storagemover/armstoragemover/constants.go create mode 100644 sdk/resourcemanager/storagemover/armstoragemover/endpoints_client.go create mode 100644 sdk/resourcemanager/storagemover/armstoragemover/endpoints_client_example_test.go create mode 100644 sdk/resourcemanager/storagemover/armstoragemover/go.mod create mode 100644 sdk/resourcemanager/storagemover/armstoragemover/go.sum create mode 100644 sdk/resourcemanager/storagemover/armstoragemover/jobdefinitions_client.go create mode 100644 sdk/resourcemanager/storagemover/armstoragemover/jobdefinitions_client_example_test.go create mode 100644 sdk/resourcemanager/storagemover/armstoragemover/jobruns_client.go create mode 100644 sdk/resourcemanager/storagemover/armstoragemover/jobruns_client_example_test.go create mode 100644 sdk/resourcemanager/storagemover/armstoragemover/models.go create mode 100644 sdk/resourcemanager/storagemover/armstoragemover/models_serde.go create mode 100644 sdk/resourcemanager/storagemover/armstoragemover/operations_client.go create mode 100644 sdk/resourcemanager/storagemover/armstoragemover/operations_client_example_test.go create mode 100644 sdk/resourcemanager/storagemover/armstoragemover/polymorphic_helpers.go create mode 100644 sdk/resourcemanager/storagemover/armstoragemover/projects_client.go create mode 100644 sdk/resourcemanager/storagemover/armstoragemover/projects_client_example_test.go create mode 100644 sdk/resourcemanager/storagemover/armstoragemover/response_types.go create mode 100644 sdk/resourcemanager/storagemover/armstoragemover/storagemovers_client.go create mode 100644 sdk/resourcemanager/storagemover/armstoragemover/storagemovers_client_example_test.go create mode 100644 sdk/resourcemanager/storagemover/armstoragemover/time_rfc3339.go diff --git a/sdk/resourcemanager/storagemover/armstoragemover/CHANGELOG.md b/sdk/resourcemanager/storagemover/armstoragemover/CHANGELOG.md new file mode 100644 index 000000000000..bff9fc455fdc --- /dev/null +++ b/sdk/resourcemanager/storagemover/armstoragemover/CHANGELOG.md @@ -0,0 +1,7 @@ +# Release History + +## 0.1.0 (2023-02-24) + +The package of `github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storagemover/armstoragemover` is using our [next generation design principles](https://azure.github.io/azure-sdk/general_introduction.html). + +To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/go/mgmt). \ No newline at end of file diff --git a/sdk/resourcemanager/storagemover/armstoragemover/LICENSE.txt b/sdk/resourcemanager/storagemover/armstoragemover/LICENSE.txt new file mode 100644 index 000000000000..dc0c2ffb3dc1 --- /dev/null +++ b/sdk/resourcemanager/storagemover/armstoragemover/LICENSE.txt @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Microsoft Corporation. All rights reserved. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/sdk/resourcemanager/storagemover/armstoragemover/README.md b/sdk/resourcemanager/storagemover/armstoragemover/README.md new file mode 100644 index 000000000000..d91c25bdb336 --- /dev/null +++ b/sdk/resourcemanager/storagemover/armstoragemover/README.md @@ -0,0 +1,77 @@ +# Azure Storage Mover Module for Go + +[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storagemover/armstoragemover)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storagemover/armstoragemover) + +The `armstoragemover` module provides operations for working with Azure Storage Mover. + +[Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/storagemover/armstoragemover) + +# Getting started + +## Prerequisites + +- an [Azure subscription](https://azure.microsoft.com/free/) +- Go 1.18 or above (You could download and install the latest version of Go from [here](https://go.dev/doc/install). It will replace the existing Go on your machine. If you want to install multiple Go versions on the same machine, you could refer this [doc](https://go.dev/doc/manage-install).) + +## Install the package + +This project uses [Go modules](https://github.com/golang/go/wiki/Modules) for versioning and dependency management. + +Install the Azure Storage Mover module: + +```sh +go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storagemover/armstoragemover +``` + +## Authorization + +When creating a client, you will need to provide a credential for authenticating with Azure Storage Mover. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. + +```go +cred, err := azidentity.NewDefaultAzureCredential(nil) +``` + +For more information on authentication, please see the documentation for `azidentity` at [pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azidentity](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azidentity). + +## Clients + +Azure Storage Mover modules consist of one or more clients. A client groups a set of related APIs, providing access to its functionality within the specified subscription. Create one or more clients to access the APIs you require using your credential. + +```go +client, err := armstoragemover.NewJobDefinitionsClient(, cred, nil) +``` + +You can use `ClientOptions` in package `github.com/Azure/azure-sdk-for-go/sdk/azcore/arm` to set endpoint to connect with public and sovereign clouds as well as Azure Stack. For more information, please see the documentation for `azcore` at [pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azcore](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azcore). + +```go +options := arm.ClientOptions{ + ClientOptions: azcore.ClientOptions { + Cloud: cloud.AzureChina, + }, +} +client, err := armstoragemover.NewJobDefinitionsClient(, cred, &options) +``` + +## Provide Feedback + +If you encounter bugs or have suggestions, please +[open an issue](https://github.com/Azure/azure-sdk-for-go/issues) and assign the `Storage Mover` label. + +# Contributing + +This project welcomes contributions and suggestions. Most contributions require +you to agree to a Contributor License Agreement (CLA) declaring that you have +the right to, and actually do, grant us the rights to use your contribution. +For details, visit [https://cla.microsoft.com](https://cla.microsoft.com). + +When you submit a pull request, a CLA-bot will automatically determine whether +you need to provide a CLA and decorate the PR appropriately (e.g., label, +comment). Simply follow the instructions provided by the bot. You will only +need to do this once across all repos using our CLA. + +This project has adopted the +[Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). +For more information, see the +[Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) +or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any +additional questions or comments. \ No newline at end of file diff --git a/sdk/resourcemanager/storagemover/armstoragemover/agents_client.go b/sdk/resourcemanager/storagemover/armstoragemover/agents_client.go new file mode 100644 index 000000000000..17f41d2f6fc3 --- /dev/null +++ b/sdk/resourcemanager/storagemover/armstoragemover/agents_client.go @@ -0,0 +1,382 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armstoragemover + +import ( + "context" + "errors" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "net/http" + "net/url" + "strings" +) + +// AgentsClient contains the methods for the Agents group. +// Don't use this type directly, use NewAgentsClient() instead. +type AgentsClient struct { + host string + subscriptionID string + pl runtime.Pipeline +} + +// NewAgentsClient creates a new instance of AgentsClient with the specified values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. +func NewAgentsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*AgentsClient, error) { + if options == nil { + options = &arm.ClientOptions{} + } + ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err + } + client := &AgentsClient{ + subscriptionID: subscriptionID, + host: ep, + pl: pl, + } + return client, nil +} + +// CreateOrUpdate - Creates or updates an Agent resource, which references a hybrid compute machine that can run jobs. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-07-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - storageMoverName - The name of the Storage Mover resource. +// - agentName - The name of the Agent resource. +// - options - AgentsClientCreateOrUpdateOptions contains the optional parameters for the AgentsClient.CreateOrUpdate method. +func (client *AgentsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, storageMoverName string, agentName string, agent Agent, options *AgentsClientCreateOrUpdateOptions) (AgentsClientCreateOrUpdateResponse, error) { + req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, storageMoverName, agentName, agent, options) + if err != nil { + return AgentsClientCreateOrUpdateResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return AgentsClientCreateOrUpdateResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return AgentsClientCreateOrUpdateResponse{}, runtime.NewResponseError(resp) + } + return client.createOrUpdateHandleResponse(resp) +} + +// createOrUpdateCreateRequest creates the CreateOrUpdate request. +func (client *AgentsClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, storageMoverName string, agentName string, agent Agent, options *AgentsClientCreateOrUpdateOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/agents/{agentName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if storageMoverName == "" { + return nil, errors.New("parameter storageMoverName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{storageMoverName}", url.PathEscape(storageMoverName)) + if agentName == "" { + return nil, errors.New("parameter agentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{agentName}", url.PathEscape(agentName)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-07-01-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, runtime.MarshalAsJSON(req, agent) +} + +// createOrUpdateHandleResponse handles the CreateOrUpdate response. +func (client *AgentsClient) createOrUpdateHandleResponse(resp *http.Response) (AgentsClientCreateOrUpdateResponse, error) { + result := AgentsClientCreateOrUpdateResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.Agent); err != nil { + return AgentsClientCreateOrUpdateResponse{}, err + } + return result, nil +} + +// BeginDelete - Deletes an Agent resource. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-07-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - storageMoverName - The name of the Storage Mover resource. +// - agentName - The name of the Agent resource. +// - options - AgentsClientBeginDeleteOptions contains the optional parameters for the AgentsClient.BeginDelete method. +func (client *AgentsClient) BeginDelete(ctx context.Context, resourceGroupName string, storageMoverName string, agentName string, options *AgentsClientBeginDeleteOptions) (*runtime.Poller[AgentsClientDeleteResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.deleteOperation(ctx, resourceGroupName, storageMoverName, agentName, options) + if err != nil { + return nil, err + } + return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[AgentsClientDeleteResponse]{ + FinalStateVia: runtime.FinalStateViaLocation, + }) + } else { + return runtime.NewPollerFromResumeToken[AgentsClientDeleteResponse](options.ResumeToken, client.pl, nil) + } +} + +// Delete - Deletes an Agent resource. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-07-01-preview +func (client *AgentsClient) deleteOperation(ctx context.Context, resourceGroupName string, storageMoverName string, agentName string, options *AgentsClientBeginDeleteOptions) (*http.Response, error) { + req, err := client.deleteCreateRequest(ctx, resourceGroupName, storageMoverName, agentName, options) + if err != nil { + return nil, err + } + resp, err := client.pl.Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { + return nil, runtime.NewResponseError(resp) + } + return resp, nil +} + +// deleteCreateRequest creates the Delete request. +func (client *AgentsClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, storageMoverName string, agentName string, options *AgentsClientBeginDeleteOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/agents/{agentName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if storageMoverName == "" { + return nil, errors.New("parameter storageMoverName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{storageMoverName}", url.PathEscape(storageMoverName)) + if agentName == "" { + return nil, errors.New("parameter agentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{agentName}", url.PathEscape(agentName)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-07-01-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// Get - Gets an Agent resource. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-07-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - storageMoverName - The name of the Storage Mover resource. +// - agentName - The name of the Agent resource. +// - options - AgentsClientGetOptions contains the optional parameters for the AgentsClient.Get method. +func (client *AgentsClient) Get(ctx context.Context, resourceGroupName string, storageMoverName string, agentName string, options *AgentsClientGetOptions) (AgentsClientGetResponse, error) { + req, err := client.getCreateRequest(ctx, resourceGroupName, storageMoverName, agentName, options) + if err != nil { + return AgentsClientGetResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return AgentsClientGetResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return AgentsClientGetResponse{}, runtime.NewResponseError(resp) + } + return client.getHandleResponse(resp) +} + +// getCreateRequest creates the Get request. +func (client *AgentsClient) getCreateRequest(ctx context.Context, resourceGroupName string, storageMoverName string, agentName string, options *AgentsClientGetOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/agents/{agentName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if storageMoverName == "" { + return nil, errors.New("parameter storageMoverName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{storageMoverName}", url.PathEscape(storageMoverName)) + if agentName == "" { + return nil, errors.New("parameter agentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{agentName}", url.PathEscape(agentName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-07-01-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// getHandleResponse handles the Get response. +func (client *AgentsClient) getHandleResponse(resp *http.Response) (AgentsClientGetResponse, error) { + result := AgentsClientGetResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.Agent); err != nil { + return AgentsClientGetResponse{}, err + } + return result, nil +} + +// NewListPager - Lists all Agents in a Storage Mover. +// +// Generated from API version 2022-07-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - storageMoverName - The name of the Storage Mover resource. +// - options - AgentsClientListOptions contains the optional parameters for the AgentsClient.NewListPager method. +func (client *AgentsClient) NewListPager(resourceGroupName string, storageMoverName string, options *AgentsClientListOptions) *runtime.Pager[AgentsClientListResponse] { + return runtime.NewPager(runtime.PagingHandler[AgentsClientListResponse]{ + More: func(page AgentsClientListResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 + }, + Fetcher: func(ctx context.Context, page *AgentsClientListResponse) (AgentsClientListResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listCreateRequest(ctx, resourceGroupName, storageMoverName, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return AgentsClientListResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return AgentsClientListResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return AgentsClientListResponse{}, runtime.NewResponseError(resp) + } + return client.listHandleResponse(resp) + }, + }) +} + +// listCreateRequest creates the List request. +func (client *AgentsClient) listCreateRequest(ctx context.Context, resourceGroupName string, storageMoverName string, options *AgentsClientListOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/agents" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if storageMoverName == "" { + return nil, errors.New("parameter storageMoverName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{storageMoverName}", url.PathEscape(storageMoverName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-07-01-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listHandleResponse handles the List response. +func (client *AgentsClient) listHandleResponse(resp *http.Response) (AgentsClientListResponse, error) { + result := AgentsClientListResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.AgentList); err != nil { + return AgentsClientListResponse{}, err + } + return result, nil +} + +// Update - Creates or updates an Agent resource. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-07-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - storageMoverName - The name of the Storage Mover resource. +// - agentName - The name of the Agent resource. +// - options - AgentsClientUpdateOptions contains the optional parameters for the AgentsClient.Update method. +func (client *AgentsClient) Update(ctx context.Context, resourceGroupName string, storageMoverName string, agentName string, agent AgentUpdateParameters, options *AgentsClientUpdateOptions) (AgentsClientUpdateResponse, error) { + req, err := client.updateCreateRequest(ctx, resourceGroupName, storageMoverName, agentName, agent, options) + if err != nil { + return AgentsClientUpdateResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return AgentsClientUpdateResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return AgentsClientUpdateResponse{}, runtime.NewResponseError(resp) + } + return client.updateHandleResponse(resp) +} + +// updateCreateRequest creates the Update request. +func (client *AgentsClient) updateCreateRequest(ctx context.Context, resourceGroupName string, storageMoverName string, agentName string, agent AgentUpdateParameters, options *AgentsClientUpdateOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/agents/{agentName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if storageMoverName == "" { + return nil, errors.New("parameter storageMoverName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{storageMoverName}", url.PathEscape(storageMoverName)) + if agentName == "" { + return nil, errors.New("parameter agentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{agentName}", url.PathEscape(agentName)) + req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-07-01-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, runtime.MarshalAsJSON(req, agent) +} + +// updateHandleResponse handles the Update response. +func (client *AgentsClient) updateHandleResponse(resp *http.Response) (AgentsClientUpdateResponse, error) { + result := AgentsClientUpdateResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.Agent); err != nil { + return AgentsClientUpdateResponse{}, err + } + return result, nil +} diff --git a/sdk/resourcemanager/storagemover/armstoragemover/agents_client_example_test.go b/sdk/resourcemanager/storagemover/armstoragemover/agents_client_example_test.go new file mode 100644 index 000000000000..b281628fcfb3 --- /dev/null +++ b/sdk/resourcemanager/storagemover/armstoragemover/agents_client_example_test.go @@ -0,0 +1,271 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armstoragemover_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storagemover/armstoragemover" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3d7a3848106b831a4a7f46976fe38aa605c4f44d/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/Agents_List.json +func ExampleAgentsClient_NewListPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armstoragemover.NewAgentsClient("11111111-2222-3333-4444-555555555555", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListPager("examples-rg", "examples-storageMoverName", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.AgentList = armstoragemover.AgentList{ + // Value: []*armstoragemover.Agent{ + // { + // Name: to.Ptr("examples-agentName1"), + // Type: to.Ptr("Microsoft.StorageMover/storageMovers/agents"), + // ID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/agents/examples-agentName1"), + // Properties: &armstoragemover.AgentProperties{ + // Description: to.Ptr("Example Agent 1 Description"), + // AgentStatus: to.Ptr(armstoragemover.AgentStatusOnline), + // AgentVersion: to.Ptr("1.0.0"), + // ArcResourceID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.HybridCompute/machines/examples-hybridComputeName1"), + // ArcVMUUID: to.Ptr("3bb2c024-eba9-4d18-9e7a-1d772fcc5fe9"), + // LastStatusUpdate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-01T01:01:01.1075056Z"); return t}()), + // LocalIPAddress: to.Ptr("192.168.0.0"), + // MemoryInMB: to.Ptr[int64](100024), + // NumberOfCores: to.Ptr[int64](32), + // UptimeInSeconds: to.Ptr[int64](522), + // }, + // SystemData: &armstoragemover.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-01T01:01:01.1075056Z"); return t}()), + // CreatedBy: to.Ptr("string"), + // CreatedByType: to.Ptr(armstoragemover.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-01T01:01:01.1075056Z"); return t}()), + // LastModifiedBy: to.Ptr("string"), + // LastModifiedByType: to.Ptr(armstoragemover.CreatedByTypeUser), + // }, + // }, + // { + // Name: to.Ptr("examples-agentName2"), + // Type: to.Ptr("Microsoft.StorageMover/storageMovers/agents"), + // ID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/agents/examples-agentName2"), + // Properties: &armstoragemover.AgentProperties{ + // Description: to.Ptr("Example Agent 2 Description"), + // AgentStatus: to.Ptr(armstoragemover.AgentStatusOnline), + // AgentVersion: to.Ptr("1.0.0"), + // ArcResourceID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.HybridCompute/machines/examples-hybridComputeName2"), + // ArcVMUUID: to.Ptr("147a1f84-7bbf-4e99-9a6a-a1735a91dfd5"), + // LastStatusUpdate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-01T01:01:01.1075056Z"); return t}()), + // LocalIPAddress: to.Ptr("192.168.0.0"), + // MemoryInMB: to.Ptr[int64](100024), + // NumberOfCores: to.Ptr[int64](32), + // UptimeInSeconds: to.Ptr[int64](522), + // }, + // SystemData: &armstoragemover.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-01T01:01:01.1075056Z"); return t}()), + // CreatedBy: to.Ptr("string"), + // CreatedByType: to.Ptr(armstoragemover.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-01T01:01:01.1075056Z"); return t}()), + // LastModifiedBy: to.Ptr("string"), + // LastModifiedByType: to.Ptr(armstoragemover.CreatedByTypeUser), + // }, + // }, + // { + // Name: to.Ptr("examples-agentName3"), + // Type: to.Ptr("Microsoft.StorageMover/storageMovers/agents"), + // ID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/agents/examples-agentName3"), + // Properties: &armstoragemover.AgentProperties{ + // Description: to.Ptr("Example Agent 3 Description"), + // AgentStatus: to.Ptr(armstoragemover.AgentStatusOnline), + // AgentVersion: to.Ptr("1.0.0"), + // ArcResourceID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.HybridCompute/machines/examples-hybridComputeName3"), + // ArcVMUUID: to.Ptr("648a7958-f99e-4268-b20e-94c96558dc0d"), + // ErrorDetails: &armstoragemover.AgentPropertiesErrorDetails{ + // Code: to.Ptr("SampleErrorCode"), + // Message: to.Ptr("Detailed sample error message."), + // }, + // LastStatusUpdate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-01T01:01:01.1075056Z"); return t}()), + // LocalIPAddress: to.Ptr("192.168.0.0"), + // MemoryInMB: to.Ptr[int64](100024), + // NumberOfCores: to.Ptr[int64](32), + // UptimeInSeconds: to.Ptr[int64](522), + // }, + // SystemData: &armstoragemover.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-01T01:01:01.1075056Z"); return t}()), + // CreatedBy: to.Ptr("string"), + // CreatedByType: to.Ptr(armstoragemover.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-01T01:01:01.1075056Z"); return t}()), + // LastModifiedBy: to.Ptr("string"), + // LastModifiedByType: to.Ptr(armstoragemover.CreatedByTypeUser), + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3d7a3848106b831a4a7f46976fe38aa605c4f44d/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/Agents_Get.json +func ExampleAgentsClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armstoragemover.NewAgentsClient("11111111-2222-3333-4444-555555555555", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "examples-rg", "examples-storageMoverName", "examples-agentName", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.Agent = armstoragemover.Agent{ + // Name: to.Ptr("examples-agentName"), + // Type: to.Ptr("Microsoft.StorageMover/storageMovers/agents"), + // ID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/agents/examples-agentName"), + // Properties: &armstoragemover.AgentProperties{ + // Description: to.Ptr("Example Agent Description"), + // AgentStatus: to.Ptr(armstoragemover.AgentStatusOnline), + // AgentVersion: to.Ptr("1.0.0"), + // ArcResourceID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.HybridCompute/machines/examples-hybridComputeName"), + // ArcVMUUID: to.Ptr("3bb2c024-eba9-4d18-9e7a-1d772fcc5fe9"), + // LastStatusUpdate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-01T01:01:01.1075056Z"); return t}()), + // LocalIPAddress: to.Ptr("192.168.0.0"), + // MemoryInMB: to.Ptr[int64](100024), + // NumberOfCores: to.Ptr[int64](32), + // UptimeInSeconds: to.Ptr[int64](522), + // }, + // SystemData: &armstoragemover.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-01T01:01:01.1075056Z"); return t}()), + // CreatedBy: to.Ptr("string"), + // CreatedByType: to.Ptr(armstoragemover.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-01T01:01:01.1075056Z"); return t}()), + // LastModifiedBy: to.Ptr("string"), + // LastModifiedByType: to.Ptr(armstoragemover.CreatedByTypeUser), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3d7a3848106b831a4a7f46976fe38aa605c4f44d/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/Agents_CreateOrUpdate.json +func ExampleAgentsClient_CreateOrUpdate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armstoragemover.NewAgentsClient("11111111-2222-3333-4444-555555555555", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.CreateOrUpdate(ctx, "examples-rg", "examples-storageMoverName", "examples-agentName", armstoragemover.Agent{ + Properties: &armstoragemover.AgentProperties{ + Description: to.Ptr("Example Agent Description"), + ArcResourceID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.HybridCompute/machines/examples-hybridComputeName"), + ArcVMUUID: to.Ptr("3bb2c024-eba9-4d18-9e7a-1d772fcc5fe9"), + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.Agent = armstoragemover.Agent{ + // Name: to.Ptr("examples-agentName"), + // Type: to.Ptr("Microsoft.StorageMover/storageMovers/agents"), + // ID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/agents/examples-agentName"), + // Properties: &armstoragemover.AgentProperties{ + // Description: to.Ptr("Example Agent Description"), + // AgentStatus: to.Ptr(armstoragemover.AgentStatusRegistering), + // AgentVersion: to.Ptr("1.0.0"), + // ArcResourceID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.HybridCompute/machines/examples-hybridComputeName"), + // ArcVMUUID: to.Ptr("3bb2c024-eba9-4d18-9e7a-1d772fcc5fe9"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3d7a3848106b831a4a7f46976fe38aa605c4f44d/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/Agents_Update.json +func ExampleAgentsClient_Update() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armstoragemover.NewAgentsClient("11111111-2222-3333-4444-555555555555", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Update(ctx, "examples-rg", "examples-storageMoverName", "examples-agentName", armstoragemover.AgentUpdateParameters{ + Properties: &armstoragemover.AgentUpdateProperties{ + Description: to.Ptr("Updated Agent Description"), + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.Agent = armstoragemover.Agent{ + // Name: to.Ptr("examples-agentName"), + // Type: to.Ptr("Microsoft.StorageMover/storageMovers/agents"), + // ID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/agents/examples-agentName"), + // Properties: &armstoragemover.AgentProperties{ + // Description: to.Ptr("Updated Agent Description"), + // AgentStatus: to.Ptr(armstoragemover.AgentStatusOnline), + // AgentVersion: to.Ptr("1.0.0"), + // ArcResourceID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.HybridCompute/machines/examples-hybridComputeName"), + // ArcVMUUID: to.Ptr("3bb2c024-eba9-4d18-9e7a-1d772fcc5fe9"), + // LastStatusUpdate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-01T01:01:01.1075056Z"); return t}()), + // LocalIPAddress: to.Ptr("192.168.0.0"), + // MemoryInMB: to.Ptr[int64](100024), + // NumberOfCores: to.Ptr[int64](32), + // UptimeInSeconds: to.Ptr[int64](522), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3d7a3848106b831a4a7f46976fe38aa605c4f44d/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/Agents_Delete.json +func ExampleAgentsClient_BeginDelete() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armstoragemover.NewAgentsClient("11111111-2222-3333-4444-555555555555", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginDelete(ctx, "examples-rg", "examples-storageMoverName", "examples-agentName", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + _, err = poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } +} diff --git a/sdk/resourcemanager/storagemover/armstoragemover/autorest.md b/sdk/resourcemanager/storagemover/armstoragemover/autorest.md new file mode 100644 index 000000000000..b0ff30a53266 --- /dev/null +++ b/sdk/resourcemanager/storagemover/armstoragemover/autorest.md @@ -0,0 +1,13 @@ +### AutoRest Configuration + +> see https://aka.ms/autorest + +``` yaml +azure-arm: true +require: +- https://github.com/Azure/azure-rest-api-specs/blob/3d7a3848106b831a4a7f46976fe38aa605c4f44d/specification/storagemover/resource-manager/readme.md +- https://github.com/Azure/azure-rest-api-specs/blob/3d7a3848106b831a4a7f46976fe38aa605c4f44d/specification/storagemover/resource-manager/readme.go.md +license-header: MICROSOFT_MIT_NO_VERSION +module-version: 0.1.0 +tag: package-2022-07-01-preview +``` \ No newline at end of file diff --git a/sdk/resourcemanager/storagemover/armstoragemover/build.go b/sdk/resourcemanager/storagemover/armstoragemover/build.go new file mode 100644 index 000000000000..a36c2b7f49a5 --- /dev/null +++ b/sdk/resourcemanager/storagemover/armstoragemover/build.go @@ -0,0 +1,7 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// 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 -alwaysSetBodyParamRequired -removeUnreferencedTypes resourcemanager/storagemover/armstoragemover + +package armstoragemover diff --git a/sdk/resourcemanager/storagemover/armstoragemover/ci.yml b/sdk/resourcemanager/storagemover/armstoragemover/ci.yml new file mode 100644 index 000000000000..63d7bda48f78 --- /dev/null +++ b/sdk/resourcemanager/storagemover/armstoragemover/ci.yml @@ -0,0 +1,28 @@ +# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. +trigger: + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/resourcemanager/storagemover/armstoragemover/ + +pr: + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/resourcemanager/storagemover/armstoragemover/ + +stages: +- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml + parameters: + IncludeRelease: true + ServiceDirectory: 'resourcemanager/storagemover/armstoragemover' diff --git a/sdk/resourcemanager/storagemover/armstoragemover/constants.go b/sdk/resourcemanager/storagemover/armstoragemover/constants.go new file mode 100644 index 000000000000..c505e4940678 --- /dev/null +++ b/sdk/resourcemanager/storagemover/armstoragemover/constants.go @@ -0,0 +1,202 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armstoragemover + +const ( + moduleName = "armstoragemover" + moduleVersion = "v0.1.0" +) + +// ActionType - Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. +type ActionType string + +const ( + ActionTypeInternal ActionType = "Internal" +) + +// PossibleActionTypeValues returns the possible values for the ActionType const type. +func PossibleActionTypeValues() []ActionType { + return []ActionType{ + ActionTypeInternal, + } +} + +// AgentStatus - The Agent status. +type AgentStatus string + +const ( + AgentStatusExecuting AgentStatus = "Executing" + AgentStatusOffline AgentStatus = "Offline" + AgentStatusOnline AgentStatus = "Online" + AgentStatusRegistering AgentStatus = "Registering" + AgentStatusRequiresAttention AgentStatus = "RequiresAttention" + AgentStatusUnregistering AgentStatus = "Unregistering" +) + +// PossibleAgentStatusValues returns the possible values for the AgentStatus const type. +func PossibleAgentStatusValues() []AgentStatus { + return []AgentStatus{ + AgentStatusExecuting, + AgentStatusOffline, + AgentStatusOnline, + AgentStatusRegistering, + AgentStatusRequiresAttention, + AgentStatusUnregistering, + } +} + +// CopyMode - Strategy to use for copy. +type CopyMode string + +const ( + CopyModeAdditive CopyMode = "Additive" + CopyModeMirror CopyMode = "Mirror" +) + +// PossibleCopyModeValues returns the possible values for the CopyMode const type. +func PossibleCopyModeValues() []CopyMode { + return []CopyMode{ + CopyModeAdditive, + CopyModeMirror, + } +} + +// CreatedByType - The type of identity that created the resource. +type CreatedByType string + +const ( + CreatedByTypeApplication CreatedByType = "Application" + CreatedByTypeKey CreatedByType = "Key" + CreatedByTypeManagedIdentity CreatedByType = "ManagedIdentity" + CreatedByTypeUser CreatedByType = "User" +) + +// PossibleCreatedByTypeValues returns the possible values for the CreatedByType const type. +func PossibleCreatedByTypeValues() []CreatedByType { + return []CreatedByType{ + CreatedByTypeApplication, + CreatedByTypeKey, + CreatedByTypeManagedIdentity, + CreatedByTypeUser, + } +} + +// EndpointType - The Endpoint resource type. +type EndpointType string + +const ( + EndpointTypeAzureStorageBlobContainer EndpointType = "AzureStorageBlobContainer" + EndpointTypeNfsMount EndpointType = "NfsMount" +) + +// PossibleEndpointTypeValues returns the possible values for the EndpointType const type. +func PossibleEndpointTypeValues() []EndpointType { + return []EndpointType{ + EndpointTypeAzureStorageBlobContainer, + EndpointTypeNfsMount, + } +} + +// JobRunScanStatus - The status of Agent's scanning of source. +type JobRunScanStatus string + +const ( + JobRunScanStatusCompleted JobRunScanStatus = "Completed" + JobRunScanStatusNotStarted JobRunScanStatus = "NotStarted" + JobRunScanStatusScanning JobRunScanStatus = "Scanning" +) + +// PossibleJobRunScanStatusValues returns the possible values for the JobRunScanStatus const type. +func PossibleJobRunScanStatusValues() []JobRunScanStatus { + return []JobRunScanStatus{ + JobRunScanStatusCompleted, + JobRunScanStatusNotStarted, + JobRunScanStatusScanning, + } +} + +// JobRunStatus - The current status of the Job Run in a non-terminal state, if exists. +type JobRunStatus string + +const ( + JobRunStatusCancelRequested JobRunStatus = "CancelRequested" + JobRunStatusCanceled JobRunStatus = "Canceled" + JobRunStatusCanceling JobRunStatus = "Canceling" + JobRunStatusFailed JobRunStatus = "Failed" + JobRunStatusQueued JobRunStatus = "Queued" + JobRunStatusRunning JobRunStatus = "Running" + JobRunStatusStarted JobRunStatus = "Started" + JobRunStatusSucceeded JobRunStatus = "Succeeded" +) + +// PossibleJobRunStatusValues returns the possible values for the JobRunStatus const type. +func PossibleJobRunStatusValues() []JobRunStatus { + return []JobRunStatus{ + JobRunStatusCancelRequested, + JobRunStatusCanceled, + JobRunStatusCanceling, + JobRunStatusFailed, + JobRunStatusQueued, + JobRunStatusRunning, + JobRunStatusStarted, + JobRunStatusSucceeded, + } +} + +// NfsVersion - The NFS protocol version. +type NfsVersion string + +const ( + NfsVersionNFSauto NfsVersion = "NFSauto" + NfsVersionNFSv3 NfsVersion = "NFSv3" + NfsVersionNFSv4 NfsVersion = "NFSv4" +) + +// PossibleNfsVersionValues returns the possible values for the NfsVersion const type. +func PossibleNfsVersionValues() []NfsVersion { + return []NfsVersion{ + NfsVersionNFSauto, + NfsVersionNFSv3, + NfsVersionNFSv4, + } +} + +// Origin - The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default +// value is "user,system" +type Origin string + +const ( + OriginSystem Origin = "system" + OriginUser Origin = "user" + OriginUserSystem Origin = "user,system" +) + +// PossibleOriginValues returns the possible values for the Origin const type. +func PossibleOriginValues() []Origin { + return []Origin{ + OriginSystem, + OriginUser, + OriginUserSystem, + } +} + +// ProvisioningState - The provisioning state of this resource. +type ProvisioningState string + +const ( + ProvisioningStateSucceeded ProvisioningState = "Succeeded" +) + +// PossibleProvisioningStateValues returns the possible values for the ProvisioningState const type. +func PossibleProvisioningStateValues() []ProvisioningState { + return []ProvisioningState{ + ProvisioningStateSucceeded, + } +} diff --git a/sdk/resourcemanager/storagemover/armstoragemover/endpoints_client.go b/sdk/resourcemanager/storagemover/armstoragemover/endpoints_client.go new file mode 100644 index 000000000000..cf3a52729f01 --- /dev/null +++ b/sdk/resourcemanager/storagemover/armstoragemover/endpoints_client.go @@ -0,0 +1,383 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armstoragemover + +import ( + "context" + "errors" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "net/http" + "net/url" + "strings" +) + +// EndpointsClient contains the methods for the Endpoints group. +// Don't use this type directly, use NewEndpointsClient() instead. +type EndpointsClient struct { + host string + subscriptionID string + pl runtime.Pipeline +} + +// NewEndpointsClient creates a new instance of EndpointsClient with the specified values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. +func NewEndpointsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*EndpointsClient, error) { + if options == nil { + options = &arm.ClientOptions{} + } + ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err + } + client := &EndpointsClient{ + subscriptionID: subscriptionID, + host: ep, + pl: pl, + } + return client, nil +} + +// CreateOrUpdate - Creates or updates an Endpoint resource, which represents a data transfer source or destination. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-07-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - storageMoverName - The name of the Storage Mover resource. +// - endpointName - The name of the Endpoint resource. +// - options - EndpointsClientCreateOrUpdateOptions contains the optional parameters for the EndpointsClient.CreateOrUpdate +// method. +func (client *EndpointsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, storageMoverName string, endpointName string, endpoint Endpoint, options *EndpointsClientCreateOrUpdateOptions) (EndpointsClientCreateOrUpdateResponse, error) { + req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, storageMoverName, endpointName, endpoint, options) + if err != nil { + return EndpointsClientCreateOrUpdateResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return EndpointsClientCreateOrUpdateResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return EndpointsClientCreateOrUpdateResponse{}, runtime.NewResponseError(resp) + } + return client.createOrUpdateHandleResponse(resp) +} + +// createOrUpdateCreateRequest creates the CreateOrUpdate request. +func (client *EndpointsClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, storageMoverName string, endpointName string, endpoint Endpoint, options *EndpointsClientCreateOrUpdateOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/endpoints/{endpointName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if storageMoverName == "" { + return nil, errors.New("parameter storageMoverName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{storageMoverName}", url.PathEscape(storageMoverName)) + if endpointName == "" { + return nil, errors.New("parameter endpointName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{endpointName}", url.PathEscape(endpointName)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-07-01-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, runtime.MarshalAsJSON(req, endpoint) +} + +// createOrUpdateHandleResponse handles the CreateOrUpdate response. +func (client *EndpointsClient) createOrUpdateHandleResponse(resp *http.Response) (EndpointsClientCreateOrUpdateResponse, error) { + result := EndpointsClientCreateOrUpdateResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.Endpoint); err != nil { + return EndpointsClientCreateOrUpdateResponse{}, err + } + return result, nil +} + +// BeginDelete - Deletes an Endpoint resource. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-07-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - storageMoverName - The name of the Storage Mover resource. +// - endpointName - The name of the Endpoint resource. +// - options - EndpointsClientBeginDeleteOptions contains the optional parameters for the EndpointsClient.BeginDelete method. +func (client *EndpointsClient) BeginDelete(ctx context.Context, resourceGroupName string, storageMoverName string, endpointName string, options *EndpointsClientBeginDeleteOptions) (*runtime.Poller[EndpointsClientDeleteResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.deleteOperation(ctx, resourceGroupName, storageMoverName, endpointName, options) + if err != nil { + return nil, err + } + return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[EndpointsClientDeleteResponse]{ + FinalStateVia: runtime.FinalStateViaLocation, + }) + } else { + return runtime.NewPollerFromResumeToken[EndpointsClientDeleteResponse](options.ResumeToken, client.pl, nil) + } +} + +// Delete - Deletes an Endpoint resource. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-07-01-preview +func (client *EndpointsClient) deleteOperation(ctx context.Context, resourceGroupName string, storageMoverName string, endpointName string, options *EndpointsClientBeginDeleteOptions) (*http.Response, error) { + req, err := client.deleteCreateRequest(ctx, resourceGroupName, storageMoverName, endpointName, options) + if err != nil { + return nil, err + } + resp, err := client.pl.Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { + return nil, runtime.NewResponseError(resp) + } + return resp, nil +} + +// deleteCreateRequest creates the Delete request. +func (client *EndpointsClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, storageMoverName string, endpointName string, options *EndpointsClientBeginDeleteOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/endpoints/{endpointName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if storageMoverName == "" { + return nil, errors.New("parameter storageMoverName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{storageMoverName}", url.PathEscape(storageMoverName)) + if endpointName == "" { + return nil, errors.New("parameter endpointName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{endpointName}", url.PathEscape(endpointName)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-07-01-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// Get - Gets an Endpoint resource. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-07-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - storageMoverName - The name of the Storage Mover resource. +// - endpointName - The name of the Endpoint resource. +// - options - EndpointsClientGetOptions contains the optional parameters for the EndpointsClient.Get method. +func (client *EndpointsClient) Get(ctx context.Context, resourceGroupName string, storageMoverName string, endpointName string, options *EndpointsClientGetOptions) (EndpointsClientGetResponse, error) { + req, err := client.getCreateRequest(ctx, resourceGroupName, storageMoverName, endpointName, options) + if err != nil { + return EndpointsClientGetResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return EndpointsClientGetResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return EndpointsClientGetResponse{}, runtime.NewResponseError(resp) + } + return client.getHandleResponse(resp) +} + +// getCreateRequest creates the Get request. +func (client *EndpointsClient) getCreateRequest(ctx context.Context, resourceGroupName string, storageMoverName string, endpointName string, options *EndpointsClientGetOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/endpoints/{endpointName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if storageMoverName == "" { + return nil, errors.New("parameter storageMoverName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{storageMoverName}", url.PathEscape(storageMoverName)) + if endpointName == "" { + return nil, errors.New("parameter endpointName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{endpointName}", url.PathEscape(endpointName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-07-01-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// getHandleResponse handles the Get response. +func (client *EndpointsClient) getHandleResponse(resp *http.Response) (EndpointsClientGetResponse, error) { + result := EndpointsClientGetResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.Endpoint); err != nil { + return EndpointsClientGetResponse{}, err + } + return result, nil +} + +// NewListPager - Lists all Endpoints in a Storage Mover. +// +// Generated from API version 2022-07-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - storageMoverName - The name of the Storage Mover resource. +// - options - EndpointsClientListOptions contains the optional parameters for the EndpointsClient.NewListPager method. +func (client *EndpointsClient) NewListPager(resourceGroupName string, storageMoverName string, options *EndpointsClientListOptions) *runtime.Pager[EndpointsClientListResponse] { + return runtime.NewPager(runtime.PagingHandler[EndpointsClientListResponse]{ + More: func(page EndpointsClientListResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 + }, + Fetcher: func(ctx context.Context, page *EndpointsClientListResponse) (EndpointsClientListResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listCreateRequest(ctx, resourceGroupName, storageMoverName, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return EndpointsClientListResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return EndpointsClientListResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return EndpointsClientListResponse{}, runtime.NewResponseError(resp) + } + return client.listHandleResponse(resp) + }, + }) +} + +// listCreateRequest creates the List request. +func (client *EndpointsClient) listCreateRequest(ctx context.Context, resourceGroupName string, storageMoverName string, options *EndpointsClientListOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/endpoints" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if storageMoverName == "" { + return nil, errors.New("parameter storageMoverName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{storageMoverName}", url.PathEscape(storageMoverName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-07-01-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listHandleResponse handles the List response. +func (client *EndpointsClient) listHandleResponse(resp *http.Response) (EndpointsClientListResponse, error) { + result := EndpointsClientListResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.EndpointList); err != nil { + return EndpointsClientListResponse{}, err + } + return result, nil +} + +// Update - Updates properties for an Endpoint resource. Properties not specified in the request body will be unchanged. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-07-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - storageMoverName - The name of the Storage Mover resource. +// - endpointName - The name of the Endpoint resource. +// - options - EndpointsClientUpdateOptions contains the optional parameters for the EndpointsClient.Update method. +func (client *EndpointsClient) Update(ctx context.Context, resourceGroupName string, storageMoverName string, endpointName string, endpoint EndpointBaseUpdateParameters, options *EndpointsClientUpdateOptions) (EndpointsClientUpdateResponse, error) { + req, err := client.updateCreateRequest(ctx, resourceGroupName, storageMoverName, endpointName, endpoint, options) + if err != nil { + return EndpointsClientUpdateResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return EndpointsClientUpdateResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return EndpointsClientUpdateResponse{}, runtime.NewResponseError(resp) + } + return client.updateHandleResponse(resp) +} + +// updateCreateRequest creates the Update request. +func (client *EndpointsClient) updateCreateRequest(ctx context.Context, resourceGroupName string, storageMoverName string, endpointName string, endpoint EndpointBaseUpdateParameters, options *EndpointsClientUpdateOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/endpoints/{endpointName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if storageMoverName == "" { + return nil, errors.New("parameter storageMoverName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{storageMoverName}", url.PathEscape(storageMoverName)) + if endpointName == "" { + return nil, errors.New("parameter endpointName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{endpointName}", url.PathEscape(endpointName)) + req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-07-01-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, runtime.MarshalAsJSON(req, endpoint) +} + +// updateHandleResponse handles the Update response. +func (client *EndpointsClient) updateHandleResponse(resp *http.Response) (EndpointsClientUpdateResponse, error) { + result := EndpointsClientUpdateResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.Endpoint); err != nil { + return EndpointsClientUpdateResponse{}, err + } + return result, nil +} diff --git a/sdk/resourcemanager/storagemover/armstoragemover/endpoints_client_example_test.go b/sdk/resourcemanager/storagemover/armstoragemover/endpoints_client_example_test.go new file mode 100644 index 000000000000..1874eabfa08f --- /dev/null +++ b/sdk/resourcemanager/storagemover/armstoragemover/endpoints_client_example_test.go @@ -0,0 +1,206 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armstoragemover_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storagemover/armstoragemover" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3d7a3848106b831a4a7f46976fe38aa605c4f44d/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/Endpoints_List.json +func ExampleEndpointsClient_NewListPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armstoragemover.NewEndpointsClient("11111111-2222-3333-4444-555555555555", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListPager("examples-rg", "examples-storageMoverName", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.EndpointList = armstoragemover.EndpointList{ + // Value: []*armstoragemover.Endpoint{ + // { + // Name: to.Ptr("examples-endpointName1"), + // Type: to.Ptr("Microsoft.StorageMover/storageMovers/endpoints"), + // ID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/endpoints/examples-endpointName1"), + // Properties: &armstoragemover.AzureStorageBlobContainerEndpointProperties{ + // Description: to.Ptr("Example Storage Container Endpoint 1 Description"), + // EndpointType: to.Ptr(armstoragemover.EndpointTypeAzureStorageBlobContainer), + // BlobContainerName: to.Ptr("examples-blobContainerName1"), + // StorageAccountResourceID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.Storage/storageAccounts/examples-storageAccountName/"), + // }, + // }, + // { + // Name: to.Ptr("examples-endpointName2"), + // Type: to.Ptr("Microsoft.StorageMover/storageMovers/endpoints"), + // ID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/endpoints/examples-endpointName2"), + // Properties: &armstoragemover.NfsMountEndpointProperties{ + // Description: to.Ptr("Example Storage Container Endpoint 2 Description"), + // EndpointType: to.Ptr(armstoragemover.EndpointTypeNfsMount), + // Export: to.Ptr("/"), + // Host: to.Ptr("0.0.0.0"), + // NfsVersion: to.Ptr(armstoragemover.NfsVersionNFSv4), + // }, + // }, + // { + // Name: to.Ptr("examples-endpointName3"), + // Type: to.Ptr("Microsoft.StorageMover/storageMovers/endpoints"), + // ID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/endpoints/examples-endpointName3"), + // Properties: &armstoragemover.AzureStorageBlobContainerEndpointProperties{ + // Description: to.Ptr("Example Storage Container Endpoint 3 Description"), + // EndpointType: to.Ptr(armstoragemover.EndpointTypeAzureStorageBlobContainer), + // BlobContainerName: to.Ptr("examples-blobContainerName3"), + // StorageAccountResourceID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.Storage/storageAccounts/examples-storageAccountName/"), + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3d7a3848106b831a4a7f46976fe38aa605c4f44d/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/Endpoints_Get.json +func ExampleEndpointsClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armstoragemover.NewEndpointsClient("11111111-2222-3333-4444-555555555555", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "examples-rg", "examples-storageMoverName", "examples-endpointName", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.Endpoint = armstoragemover.Endpoint{ + // Name: to.Ptr("examples-endpointName"), + // Type: to.Ptr("Microsoft.StorageMover/storageMovers/endpoints"), + // ID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/endpoints/examples-endpointName"), + // Properties: &armstoragemover.AzureStorageBlobContainerEndpointProperties{ + // Description: to.Ptr("Example Storage Container Endpoint Description"), + // EndpointType: to.Ptr(armstoragemover.EndpointTypeAzureStorageBlobContainer), + // BlobContainerName: to.Ptr("examples-blobContainerName"), + // StorageAccountResourceID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.Storage/storageAccounts/examples-storageAccountName/"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3d7a3848106b831a4a7f46976fe38aa605c4f44d/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/Endpoints_CreateOrUpdate.json +func ExampleEndpointsClient_CreateOrUpdate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armstoragemover.NewEndpointsClient("11111111-2222-3333-4444-555555555555", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.CreateOrUpdate(ctx, "examples-rg", "examples-storageMoverName", "examples-endpointName", armstoragemover.Endpoint{ + Properties: &armstoragemover.AzureStorageBlobContainerEndpointProperties{ + Description: to.Ptr("Example Storage Container Endpoint Description"), + EndpointType: to.Ptr(armstoragemover.EndpointTypeAzureStorageBlobContainer), + BlobContainerName: to.Ptr("examples-blobContainerName"), + StorageAccountResourceID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.Storage/storageAccounts/examples-storageAccountName/"), + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.Endpoint = armstoragemover.Endpoint{ + // Name: to.Ptr("examples-endpointName"), + // Type: to.Ptr("Microsoft.StorageMover/storageMovers/endpoints"), + // ID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/endpoints/examples-endpointName"), + // Properties: &armstoragemover.AzureStorageBlobContainerEndpointProperties{ + // Description: to.Ptr("Example Storage Container Endpoint Description"), + // EndpointType: to.Ptr(armstoragemover.EndpointTypeAzureStorageBlobContainer), + // BlobContainerName: to.Ptr("examples-blobContainerName"), + // StorageAccountResourceID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.Storage/storageAccounts/examples-storageAccountName/"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3d7a3848106b831a4a7f46976fe38aa605c4f44d/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/Endpoints_Update.json +func ExampleEndpointsClient_Update() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armstoragemover.NewEndpointsClient("11111111-2222-3333-4444-555555555555", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Update(ctx, "examples-rg", "examples-storageMoverName", "examples-endpointName", armstoragemover.EndpointBaseUpdateParameters{ + Properties: &armstoragemover.EndpointBaseUpdateProperties{ + Description: to.Ptr("Updated Endpoint Description"), + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.Endpoint = armstoragemover.Endpoint{ + // Name: to.Ptr("examples-endpointName"), + // Type: to.Ptr("Microsoft.StorageMover/storageMovers/endpoints"), + // ID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/endpoints/examples-endpointName"), + // Properties: &armstoragemover.AzureStorageBlobContainerEndpointProperties{ + // Description: to.Ptr("Updated Endpoint Description"), + // EndpointType: to.Ptr(armstoragemover.EndpointTypeAzureStorageBlobContainer), + // BlobContainerName: to.Ptr("examples-blobContainerName"), + // StorageAccountResourceID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.Storage/storageAccounts/examples-storageAccountName/"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3d7a3848106b831a4a7f46976fe38aa605c4f44d/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/Endpoints_Delete.json +func ExampleEndpointsClient_BeginDelete() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armstoragemover.NewEndpointsClient("11111111-2222-3333-4444-555555555555", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginDelete(ctx, "examples-rg", "examples-storageMoverName", "examples-endpointName", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + _, err = poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } +} diff --git a/sdk/resourcemanager/storagemover/armstoragemover/go.mod b/sdk/resourcemanager/storagemover/armstoragemover/go.mod new file mode 100644 index 000000000000..5d882c7d6a0f --- /dev/null +++ b/sdk/resourcemanager/storagemover/armstoragemover/go.mod @@ -0,0 +1,21 @@ +module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storagemover/armstoragemover + +go 1.18 + +require ( + github.com/Azure/azure-sdk-for-go/sdk/azcore v1.0.0 + github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.1 +) + +require ( + github.com/Azure/azure-sdk-for-go/sdk/internal v1.0.0 // indirect + github.com/AzureAD/microsoft-authentication-library-for-go v0.8.1 // indirect + github.com/golang-jwt/jwt/v4 v4.4.2 // 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-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/storagemover/armstoragemover/go.sum b/sdk/resourcemanager/storagemover/armstoragemover/go.sum new file mode 100644 index 000000000000..67cfef6bdf6e --- /dev/null +++ b/sdk/resourcemanager/storagemover/armstoragemover/go.sum @@ -0,0 +1,30 @@ +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.2.1 h1:T8quHYlUGyb/oqtSTwqlCr1ilJHrDv+ZtpSfo+hm1BU= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.1/go.mod h1:gLa1CL2RNE4s7M3yopJ/p0iq5DdY6Yv5ZUt9MTRZOQM= +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.8.1 h1:oPdPEZFSbl7oSPEAIPMPBMUmiL+mqgzBJwM/9qYcwNg= +github.com/AzureAD/microsoft-authentication-library-for-go v0.8.1/go.mod h1:4qFor3D/HDsvBME35Xy9rwW9DecL+M2sNw1ybjPtwA0= +github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= +github.com/dnaeon/go-vcr v1.1.0 h1:ReYa/UBrRyQdant9B4fNHGoCNKw6qh6P0fsdGmZpR7c= +github.com/golang-jwt/jwt/v4 v4.4.2 h1:rcc4lwaZgFMCZ5jxF9ABolDcIHdBytAFgqFPbSJQAYs= +github.com/golang-jwt/jwt/v4 v4.4.2/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= +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/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/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= +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-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= +gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= +gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo= diff --git a/sdk/resourcemanager/storagemover/armstoragemover/jobdefinitions_client.go b/sdk/resourcemanager/storagemover/armstoragemover/jobdefinitions_client.go new file mode 100644 index 000000000000..75b9c7d37ec3 --- /dev/null +++ b/sdk/resourcemanager/storagemover/armstoragemover/jobdefinitions_client.go @@ -0,0 +1,544 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armstoragemover + +import ( + "context" + "errors" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "net/http" + "net/url" + "strings" +) + +// JobDefinitionsClient contains the methods for the JobDefinitions group. +// Don't use this type directly, use NewJobDefinitionsClient() instead. +type JobDefinitionsClient struct { + host string + subscriptionID string + pl runtime.Pipeline +} + +// NewJobDefinitionsClient creates a new instance of JobDefinitionsClient with the specified values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. +func NewJobDefinitionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*JobDefinitionsClient, error) { + if options == nil { + options = &arm.ClientOptions{} + } + ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err + } + client := &JobDefinitionsClient{ + subscriptionID: subscriptionID, + host: ep, + pl: pl, + } + return client, nil +} + +// CreateOrUpdate - Creates or updates a Job Definition resource, which contains configuration for a single unit of managed +// data transfer. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-07-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - storageMoverName - The name of the Storage Mover resource. +// - projectName - The name of the Project resource. +// - jobDefinitionName - The name of the Job Definition resource. +// - options - JobDefinitionsClientCreateOrUpdateOptions contains the optional parameters for the JobDefinitionsClient.CreateOrUpdate +// method. +func (client *JobDefinitionsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, storageMoverName string, projectName string, jobDefinitionName string, jobDefinition JobDefinition, options *JobDefinitionsClientCreateOrUpdateOptions) (JobDefinitionsClientCreateOrUpdateResponse, error) { + req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, storageMoverName, projectName, jobDefinitionName, jobDefinition, options) + if err != nil { + return JobDefinitionsClientCreateOrUpdateResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return JobDefinitionsClientCreateOrUpdateResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return JobDefinitionsClientCreateOrUpdateResponse{}, runtime.NewResponseError(resp) + } + return client.createOrUpdateHandleResponse(resp) +} + +// createOrUpdateCreateRequest creates the CreateOrUpdate request. +func (client *JobDefinitionsClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, storageMoverName string, projectName string, jobDefinitionName string, jobDefinition JobDefinition, options *JobDefinitionsClientCreateOrUpdateOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if storageMoverName == "" { + return nil, errors.New("parameter storageMoverName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{storageMoverName}", url.PathEscape(storageMoverName)) + if projectName == "" { + return nil, errors.New("parameter projectName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{projectName}", url.PathEscape(projectName)) + if jobDefinitionName == "" { + return nil, errors.New("parameter jobDefinitionName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{jobDefinitionName}", url.PathEscape(jobDefinitionName)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-07-01-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, runtime.MarshalAsJSON(req, jobDefinition) +} + +// createOrUpdateHandleResponse handles the CreateOrUpdate response. +func (client *JobDefinitionsClient) createOrUpdateHandleResponse(resp *http.Response) (JobDefinitionsClientCreateOrUpdateResponse, error) { + result := JobDefinitionsClientCreateOrUpdateResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.JobDefinition); err != nil { + return JobDefinitionsClientCreateOrUpdateResponse{}, err + } + return result, nil +} + +// BeginDelete - Deletes a Job Definition resource. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-07-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - storageMoverName - The name of the Storage Mover resource. +// - projectName - The name of the Project resource. +// - jobDefinitionName - The name of the Job Definition resource. +// - options - JobDefinitionsClientBeginDeleteOptions contains the optional parameters for the JobDefinitionsClient.BeginDelete +// method. +func (client *JobDefinitionsClient) BeginDelete(ctx context.Context, resourceGroupName string, storageMoverName string, projectName string, jobDefinitionName string, options *JobDefinitionsClientBeginDeleteOptions) (*runtime.Poller[JobDefinitionsClientDeleteResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.deleteOperation(ctx, resourceGroupName, storageMoverName, projectName, jobDefinitionName, options) + if err != nil { + return nil, err + } + return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[JobDefinitionsClientDeleteResponse]{ + FinalStateVia: runtime.FinalStateViaLocation, + }) + } else { + return runtime.NewPollerFromResumeToken[JobDefinitionsClientDeleteResponse](options.ResumeToken, client.pl, nil) + } +} + +// Delete - Deletes a Job Definition resource. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-07-01-preview +func (client *JobDefinitionsClient) deleteOperation(ctx context.Context, resourceGroupName string, storageMoverName string, projectName string, jobDefinitionName string, options *JobDefinitionsClientBeginDeleteOptions) (*http.Response, error) { + req, err := client.deleteCreateRequest(ctx, resourceGroupName, storageMoverName, projectName, jobDefinitionName, options) + if err != nil { + return nil, err + } + resp, err := client.pl.Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { + return nil, runtime.NewResponseError(resp) + } + return resp, nil +} + +// deleteCreateRequest creates the Delete request. +func (client *JobDefinitionsClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, storageMoverName string, projectName string, jobDefinitionName string, options *JobDefinitionsClientBeginDeleteOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if storageMoverName == "" { + return nil, errors.New("parameter storageMoverName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{storageMoverName}", url.PathEscape(storageMoverName)) + if projectName == "" { + return nil, errors.New("parameter projectName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{projectName}", url.PathEscape(projectName)) + if jobDefinitionName == "" { + return nil, errors.New("parameter jobDefinitionName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{jobDefinitionName}", url.PathEscape(jobDefinitionName)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-07-01-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// Get - Gets a Job Definition resource. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-07-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - storageMoverName - The name of the Storage Mover resource. +// - projectName - The name of the Project resource. +// - jobDefinitionName - The name of the Job Definition resource. +// - options - JobDefinitionsClientGetOptions contains the optional parameters for the JobDefinitionsClient.Get method. +func (client *JobDefinitionsClient) Get(ctx context.Context, resourceGroupName string, storageMoverName string, projectName string, jobDefinitionName string, options *JobDefinitionsClientGetOptions) (JobDefinitionsClientGetResponse, error) { + req, err := client.getCreateRequest(ctx, resourceGroupName, storageMoverName, projectName, jobDefinitionName, options) + if err != nil { + return JobDefinitionsClientGetResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return JobDefinitionsClientGetResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return JobDefinitionsClientGetResponse{}, runtime.NewResponseError(resp) + } + return client.getHandleResponse(resp) +} + +// getCreateRequest creates the Get request. +func (client *JobDefinitionsClient) getCreateRequest(ctx context.Context, resourceGroupName string, storageMoverName string, projectName string, jobDefinitionName string, options *JobDefinitionsClientGetOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if storageMoverName == "" { + return nil, errors.New("parameter storageMoverName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{storageMoverName}", url.PathEscape(storageMoverName)) + if projectName == "" { + return nil, errors.New("parameter projectName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{projectName}", url.PathEscape(projectName)) + if jobDefinitionName == "" { + return nil, errors.New("parameter jobDefinitionName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{jobDefinitionName}", url.PathEscape(jobDefinitionName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-07-01-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// getHandleResponse handles the Get response. +func (client *JobDefinitionsClient) getHandleResponse(resp *http.Response) (JobDefinitionsClientGetResponse, error) { + result := JobDefinitionsClientGetResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.JobDefinition); err != nil { + return JobDefinitionsClientGetResponse{}, err + } + return result, nil +} + +// NewListPager - Lists all Job Definitions in a Project. +// +// Generated from API version 2022-07-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - storageMoverName - The name of the Storage Mover resource. +// - projectName - The name of the Project resource. +// - options - JobDefinitionsClientListOptions contains the optional parameters for the JobDefinitionsClient.NewListPager method. +func (client *JobDefinitionsClient) NewListPager(resourceGroupName string, storageMoverName string, projectName string, options *JobDefinitionsClientListOptions) *runtime.Pager[JobDefinitionsClientListResponse] { + return runtime.NewPager(runtime.PagingHandler[JobDefinitionsClientListResponse]{ + More: func(page JobDefinitionsClientListResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 + }, + Fetcher: func(ctx context.Context, page *JobDefinitionsClientListResponse) (JobDefinitionsClientListResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listCreateRequest(ctx, resourceGroupName, storageMoverName, projectName, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return JobDefinitionsClientListResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return JobDefinitionsClientListResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return JobDefinitionsClientListResponse{}, runtime.NewResponseError(resp) + } + return client.listHandleResponse(resp) + }, + }) +} + +// listCreateRequest creates the List request. +func (client *JobDefinitionsClient) listCreateRequest(ctx context.Context, resourceGroupName string, storageMoverName string, projectName string, options *JobDefinitionsClientListOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if storageMoverName == "" { + return nil, errors.New("parameter storageMoverName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{storageMoverName}", url.PathEscape(storageMoverName)) + if projectName == "" { + return nil, errors.New("parameter projectName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{projectName}", url.PathEscape(projectName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-07-01-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listHandleResponse handles the List response. +func (client *JobDefinitionsClient) listHandleResponse(resp *http.Response) (JobDefinitionsClientListResponse, error) { + result := JobDefinitionsClientListResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.JobDefinitionList); err != nil { + return JobDefinitionsClientListResponse{}, err + } + return result, nil +} + +// StartJob - Requests an Agent to start a new instance of this Job Definition, generating a new Job Run resource. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-07-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - storageMoverName - The name of the Storage Mover resource. +// - projectName - The name of the Project resource. +// - jobDefinitionName - The name of the Job Definition resource. +// - options - JobDefinitionsClientStartJobOptions contains the optional parameters for the JobDefinitionsClient.StartJob method. +func (client *JobDefinitionsClient) StartJob(ctx context.Context, resourceGroupName string, storageMoverName string, projectName string, jobDefinitionName string, options *JobDefinitionsClientStartJobOptions) (JobDefinitionsClientStartJobResponse, error) { + req, err := client.startJobCreateRequest(ctx, resourceGroupName, storageMoverName, projectName, jobDefinitionName, options) + if err != nil { + return JobDefinitionsClientStartJobResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return JobDefinitionsClientStartJobResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return JobDefinitionsClientStartJobResponse{}, runtime.NewResponseError(resp) + } + return client.startJobHandleResponse(resp) +} + +// startJobCreateRequest creates the StartJob request. +func (client *JobDefinitionsClient) startJobCreateRequest(ctx context.Context, resourceGroupName string, storageMoverName string, projectName string, jobDefinitionName string, options *JobDefinitionsClientStartJobOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}/startJob" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if storageMoverName == "" { + return nil, errors.New("parameter storageMoverName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{storageMoverName}", url.PathEscape(storageMoverName)) + if projectName == "" { + return nil, errors.New("parameter projectName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{projectName}", url.PathEscape(projectName)) + if jobDefinitionName == "" { + return nil, errors.New("parameter jobDefinitionName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{jobDefinitionName}", url.PathEscape(jobDefinitionName)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-07-01-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// startJobHandleResponse handles the StartJob response. +func (client *JobDefinitionsClient) startJobHandleResponse(resp *http.Response) (JobDefinitionsClientStartJobResponse, error) { + result := JobDefinitionsClientStartJobResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.JobRunResourceID); err != nil { + return JobDefinitionsClientStartJobResponse{}, err + } + return result, nil +} + +// StopJob - Requests the Agent of any active instance of this Job Definition to stop. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-07-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - storageMoverName - The name of the Storage Mover resource. +// - projectName - The name of the Project resource. +// - jobDefinitionName - The name of the Job Definition resource. +// - options - JobDefinitionsClientStopJobOptions contains the optional parameters for the JobDefinitionsClient.StopJob method. +func (client *JobDefinitionsClient) StopJob(ctx context.Context, resourceGroupName string, storageMoverName string, projectName string, jobDefinitionName string, options *JobDefinitionsClientStopJobOptions) (JobDefinitionsClientStopJobResponse, error) { + req, err := client.stopJobCreateRequest(ctx, resourceGroupName, storageMoverName, projectName, jobDefinitionName, options) + if err != nil { + return JobDefinitionsClientStopJobResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return JobDefinitionsClientStopJobResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return JobDefinitionsClientStopJobResponse{}, runtime.NewResponseError(resp) + } + return client.stopJobHandleResponse(resp) +} + +// stopJobCreateRequest creates the StopJob request. +func (client *JobDefinitionsClient) stopJobCreateRequest(ctx context.Context, resourceGroupName string, storageMoverName string, projectName string, jobDefinitionName string, options *JobDefinitionsClientStopJobOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}/stopJob" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if storageMoverName == "" { + return nil, errors.New("parameter storageMoverName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{storageMoverName}", url.PathEscape(storageMoverName)) + if projectName == "" { + return nil, errors.New("parameter projectName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{projectName}", url.PathEscape(projectName)) + if jobDefinitionName == "" { + return nil, errors.New("parameter jobDefinitionName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{jobDefinitionName}", url.PathEscape(jobDefinitionName)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-07-01-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// stopJobHandleResponse handles the StopJob response. +func (client *JobDefinitionsClient) stopJobHandleResponse(resp *http.Response) (JobDefinitionsClientStopJobResponse, error) { + result := JobDefinitionsClientStopJobResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.JobRunResourceID); err != nil { + return JobDefinitionsClientStopJobResponse{}, err + } + return result, nil +} + +// Update - Updates properties for a Job Definition resource. Properties not specified in the request body will be unchanged. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-07-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - storageMoverName - The name of the Storage Mover resource. +// - projectName - The name of the Project resource. +// - jobDefinitionName - The name of the Job Definition resource. +// - options - JobDefinitionsClientUpdateOptions contains the optional parameters for the JobDefinitionsClient.Update method. +func (client *JobDefinitionsClient) Update(ctx context.Context, resourceGroupName string, storageMoverName string, projectName string, jobDefinitionName string, jobDefinition JobDefinitionUpdateParameters, options *JobDefinitionsClientUpdateOptions) (JobDefinitionsClientUpdateResponse, error) { + req, err := client.updateCreateRequest(ctx, resourceGroupName, storageMoverName, projectName, jobDefinitionName, jobDefinition, options) + if err != nil { + return JobDefinitionsClientUpdateResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return JobDefinitionsClientUpdateResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return JobDefinitionsClientUpdateResponse{}, runtime.NewResponseError(resp) + } + return client.updateHandleResponse(resp) +} + +// updateCreateRequest creates the Update request. +func (client *JobDefinitionsClient) updateCreateRequest(ctx context.Context, resourceGroupName string, storageMoverName string, projectName string, jobDefinitionName string, jobDefinition JobDefinitionUpdateParameters, options *JobDefinitionsClientUpdateOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if storageMoverName == "" { + return nil, errors.New("parameter storageMoverName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{storageMoverName}", url.PathEscape(storageMoverName)) + if projectName == "" { + return nil, errors.New("parameter projectName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{projectName}", url.PathEscape(projectName)) + if jobDefinitionName == "" { + return nil, errors.New("parameter jobDefinitionName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{jobDefinitionName}", url.PathEscape(jobDefinitionName)) + req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-07-01-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, runtime.MarshalAsJSON(req, jobDefinition) +} + +// updateHandleResponse handles the Update response. +func (client *JobDefinitionsClient) updateHandleResponse(resp *http.Response) (JobDefinitionsClientUpdateResponse, error) { + result := JobDefinitionsClientUpdateResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.JobDefinition); err != nil { + return JobDefinitionsClientUpdateResponse{}, err + } + return result, nil +} diff --git a/sdk/resourcemanager/storagemover/armstoragemover/jobdefinitions_client_example_test.go b/sdk/resourcemanager/storagemover/armstoragemover/jobdefinitions_client_example_test.go new file mode 100644 index 000000000000..d350519c142e --- /dev/null +++ b/sdk/resourcemanager/storagemover/armstoragemover/jobdefinitions_client_example_test.go @@ -0,0 +1,299 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armstoragemover_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storagemover/armstoragemover" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3d7a3848106b831a4a7f46976fe38aa605c4f44d/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/JobDefinitions_List.json +func ExampleJobDefinitionsClient_NewListPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armstoragemover.NewJobDefinitionsClient("11111111-2222-3333-4444-555555555555", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListPager("examples-rg", "examples-storageMoverName", "examples-projectName", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.JobDefinitionList = armstoragemover.JobDefinitionList{ + // Value: []*armstoragemover.JobDefinition{ + // { + // Name: to.Ptr("examples-jobDefinitionName1"), + // Type: to.Ptr("Microsoft.StorageMover/storageMovers/jobDefinitions"), + // ID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/jobDefinitions/examples-jobDefinitionName1"), + // Properties: &armstoragemover.JobDefinitionProperties{ + // Description: to.Ptr("Example Job Definition 1 Description"), + // AgentName: to.Ptr("migration-agent"), + // AgentResourceID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/agents/migration-agent"), + // CopyMode: to.Ptr(armstoragemover.CopyModeAdditive), + // SourceName: to.Ptr("examples-sourceEndpointName1"), + // SourceResourceID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/endpoints/examples-sourceEndpointName1"), + // SourceSubpath: to.Ptr("/"), + // TargetName: to.Ptr("examples-targetEndpointName1"), + // TargetResourceID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/endpoints/examples-targetEndpointName1"), + // TargetSubpath: to.Ptr("/"), + // }, + // }, + // { + // Name: to.Ptr("examples-jobDefinitionName2"), + // Type: to.Ptr("Microsoft.StorageMover/storageMovers/jobDefinitions"), + // ID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/jobDefinitions/examples-jobDefinitionName2"), + // Properties: &armstoragemover.JobDefinitionProperties{ + // Description: to.Ptr("Example Job Definition 2 Description"), + // AgentName: to.Ptr("migration-agent"), + // AgentResourceID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/agents/migration-agent"), + // CopyMode: to.Ptr(armstoragemover.CopyModeAdditive), + // SourceName: to.Ptr("examples-sourceEndpointName2"), + // SourceResourceID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/endpoints/examples-sourceEndpointName2"), + // SourceSubpath: to.Ptr("/"), + // TargetName: to.Ptr("examples-targetEndpointName2"), + // TargetResourceID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/endpoints/examples-targetEndpointName2"), + // TargetSubpath: to.Ptr("/"), + // }, + // SystemData: &armstoragemover.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-01T01:01:01.1075056Z"); return t}()), + // CreatedBy: to.Ptr("string"), + // CreatedByType: to.Ptr(armstoragemover.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-01T01:01:01.1075056Z"); return t}()), + // LastModifiedBy: to.Ptr("string"), + // LastModifiedByType: to.Ptr(armstoragemover.CreatedByTypeUser), + // }, + // }, + // { + // Name: to.Ptr("examples-jobDefinitionName3"), + // Type: to.Ptr("Microsoft.StorageMover/storageMovers/jobDefinitions"), + // ID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/jobDefinitions/examples-jobDefinitionName3"), + // Properties: &armstoragemover.JobDefinitionProperties{ + // Description: to.Ptr("Example Job Definition 3 Description"), + // AgentName: to.Ptr("migration-agent"), + // AgentResourceID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/agents/migration-agent"), + // CopyMode: to.Ptr(armstoragemover.CopyModeMirror), + // SourceName: to.Ptr("examples-sourceEndpointName3"), + // SourceResourceID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/endpoints/examples-sourceEndpointName3"), + // SourceSubpath: to.Ptr("/"), + // TargetName: to.Ptr("examples-targetEndpointName3"), + // TargetResourceID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/endpoints/examples-targetEndpointName3"), + // TargetSubpath: to.Ptr("/"), + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3d7a3848106b831a4a7f46976fe38aa605c4f44d/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/JobDefinitions_Get.json +func ExampleJobDefinitionsClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armstoragemover.NewJobDefinitionsClient("11111111-2222-3333-4444-555555555555", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "examples-rg", "examples-storageMoverName", "examples-projectName", "examples-jobDefinitionName", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.JobDefinition = armstoragemover.JobDefinition{ + // Name: to.Ptr("examples-jobDefinitionName"), + // Type: to.Ptr("Microsoft.StorageMover/storageMovers/jobDefinitions"), + // ID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/jobDefinitions/examples-jobDefinitionName"), + // Properties: &armstoragemover.JobDefinitionProperties{ + // Description: to.Ptr("Example Job Definition Description"), + // AgentName: to.Ptr("migration-agent"), + // AgentResourceID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/agents/migration-agent"), + // CopyMode: to.Ptr(armstoragemover.CopyModeAdditive), + // SourceName: to.Ptr("examples-sourceEndpointName"), + // SourceResourceID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/endpoints/examples-sourceEndpointName"), + // SourceSubpath: to.Ptr("/"), + // TargetName: to.Ptr("examples-targetEndpointName"), + // TargetResourceID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/endpoints/examples-targetEndpointName"), + // TargetSubpath: to.Ptr("/"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3d7a3848106b831a4a7f46976fe38aa605c4f44d/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/JobDefinitions_CreateOrUpdate.json +func ExampleJobDefinitionsClient_CreateOrUpdate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armstoragemover.NewJobDefinitionsClient("11111111-2222-3333-4444-555555555555", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.CreateOrUpdate(ctx, "examples-rg", "examples-storageMoverName", "examples-projectName", "examples-jobDefinitionName", armstoragemover.JobDefinition{ + Properties: &armstoragemover.JobDefinitionProperties{ + Description: to.Ptr("Example Job Definition Description"), + AgentName: to.Ptr("migration-agent"), + CopyMode: to.Ptr(armstoragemover.CopyModeAdditive), + SourceName: to.Ptr("examples-sourceEndpointName"), + SourceSubpath: to.Ptr("/"), + TargetName: to.Ptr("examples-targetEndpointName"), + TargetSubpath: to.Ptr("/"), + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.JobDefinition = armstoragemover.JobDefinition{ + // Name: to.Ptr("examples-jobDefinitionName"), + // Type: to.Ptr("Microsoft.StorageMover/storageMovers/projectName/jobDefinitionName"), + // ID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/projects/examples-projectName/jobDefinitions/examples-jobDefinitionName"), + // Properties: &armstoragemover.JobDefinitionProperties{ + // Description: to.Ptr("Example Job Definition Description"), + // AgentName: to.Ptr("migration-agent"), + // AgentResourceID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/agents/migration-agent"), + // CopyMode: to.Ptr(armstoragemover.CopyModeAdditive), + // SourceName: to.Ptr("examples-sourceEndpointName"), + // SourceResourceID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/endpoints/examples-sourceEndpointName"), + // SourceSubpath: to.Ptr("/"), + // TargetName: to.Ptr("examples-targetEndpointName"), + // TargetResourceID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/endpoints/examples-targetEndpointName"), + // TargetSubpath: to.Ptr("/"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3d7a3848106b831a4a7f46976fe38aa605c4f44d/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/JobDefinitions_Update.json +func ExampleJobDefinitionsClient_Update() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armstoragemover.NewJobDefinitionsClient("11111111-2222-3333-4444-555555555555", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Update(ctx, "examples-rg", "examples-storageMoverName", "examples-projectName", "examples-jobDefinitionName", armstoragemover.JobDefinitionUpdateParameters{ + Properties: &armstoragemover.JobDefinitionUpdateProperties{ + Description: to.Ptr("Updated Job Definition Description"), + AgentName: to.Ptr("updatedAgentName"), + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.JobDefinition = armstoragemover.JobDefinition{ + // Name: to.Ptr("examples-jobDefinitionName"), + // Type: to.Ptr("Microsoft.StorageMover/storageMovers/projectName/jobDefinitionName"), + // ID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/projects/examples-projectName/jobDefinitions/examples-jobDefinitionName"), + // Properties: &armstoragemover.JobDefinitionProperties{ + // Description: to.Ptr("Updated Job Definition Description"), + // AgentName: to.Ptr("updatedAgentName"), + // AgentResourceID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/agents/migration-agent"), + // CopyMode: to.Ptr(armstoragemover.CopyModeAdditive), + // SourceName: to.Ptr("updatedSource"), + // SourceResourceID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/endpoints/updatedSource"), + // SourceSubpath: to.Ptr("/"), + // TargetName: to.Ptr("updatedTarget"), + // TargetResourceID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/endpoints/updatedTarget"), + // TargetSubpath: to.Ptr("/"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3d7a3848106b831a4a7f46976fe38aa605c4f44d/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/JobDefinitions_Delete.json +func ExampleJobDefinitionsClient_BeginDelete() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armstoragemover.NewJobDefinitionsClient("11111111-2222-3333-4444-555555555555", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginDelete(ctx, "examples-rg", "examples-storageMoverName", "examples-projectName", "examples-jobDefinitionName", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + _, err = poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3d7a3848106b831a4a7f46976fe38aa605c4f44d/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/JobDefinitions_StartJob.json +func ExampleJobDefinitionsClient_StartJob() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armstoragemover.NewJobDefinitionsClient("11111111-2222-3333-4444-555555555555", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.StartJob(ctx, "examples-rg", "examples-storageMoverName", "examples-projectName", "examples-jobDefinitionName", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.JobRunResourceID = armstoragemover.JobRunResourceID{ + // JobRunResourceID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/jobDefinitions/examples-jobDefinitionName/jobRuns/examples-jobRunName"), + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3d7a3848106b831a4a7f46976fe38aa605c4f44d/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/JobDefinitions_StopJob.json +func ExampleJobDefinitionsClient_StopJob() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armstoragemover.NewJobDefinitionsClient("11111111-2222-3333-4444-555555555555", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.StopJob(ctx, "examples-rg", "examples-storageMoverName", "examples-projectName", "examples-jobDefinitionName", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.JobRunResourceID = armstoragemover.JobRunResourceID{ + // JobRunResourceID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/jobDefinitions/examples-jobDefinitionName/jobRuns/examples-jobRunName"), + // } +} diff --git a/sdk/resourcemanager/storagemover/armstoragemover/jobruns_client.go b/sdk/resourcemanager/storagemover/armstoragemover/jobruns_client.go new file mode 100644 index 000000000000..8e828e4887a6 --- /dev/null +++ b/sdk/resourcemanager/storagemover/armstoragemover/jobruns_client.go @@ -0,0 +1,207 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armstoragemover + +import ( + "context" + "errors" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "net/http" + "net/url" + "strings" +) + +// JobRunsClient contains the methods for the JobRuns group. +// Don't use this type directly, use NewJobRunsClient() instead. +type JobRunsClient struct { + host string + subscriptionID string + pl runtime.Pipeline +} + +// NewJobRunsClient creates a new instance of JobRunsClient with the specified values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. +func NewJobRunsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*JobRunsClient, error) { + if options == nil { + options = &arm.ClientOptions{} + } + ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err + } + client := &JobRunsClient{ + subscriptionID: subscriptionID, + host: ep, + pl: pl, + } + return client, nil +} + +// Get - Gets a Job Run resource. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-07-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - storageMoverName - The name of the Storage Mover resource. +// - projectName - The name of the Project resource. +// - jobDefinitionName - The name of the Job Definition resource. +// - jobRunName - The name of the Job Run resource. +// - options - JobRunsClientGetOptions contains the optional parameters for the JobRunsClient.Get method. +func (client *JobRunsClient) Get(ctx context.Context, resourceGroupName string, storageMoverName string, projectName string, jobDefinitionName string, jobRunName string, options *JobRunsClientGetOptions) (JobRunsClientGetResponse, error) { + req, err := client.getCreateRequest(ctx, resourceGroupName, storageMoverName, projectName, jobDefinitionName, jobRunName, options) + if err != nil { + return JobRunsClientGetResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return JobRunsClientGetResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return JobRunsClientGetResponse{}, runtime.NewResponseError(resp) + } + return client.getHandleResponse(resp) +} + +// getCreateRequest creates the Get request. +func (client *JobRunsClient) getCreateRequest(ctx context.Context, resourceGroupName string, storageMoverName string, projectName string, jobDefinitionName string, jobRunName string, options *JobRunsClientGetOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}/jobRuns/{jobRunName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if storageMoverName == "" { + return nil, errors.New("parameter storageMoverName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{storageMoverName}", url.PathEscape(storageMoverName)) + if projectName == "" { + return nil, errors.New("parameter projectName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{projectName}", url.PathEscape(projectName)) + if jobDefinitionName == "" { + return nil, errors.New("parameter jobDefinitionName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{jobDefinitionName}", url.PathEscape(jobDefinitionName)) + if jobRunName == "" { + return nil, errors.New("parameter jobRunName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{jobRunName}", url.PathEscape(jobRunName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-07-01-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// getHandleResponse handles the Get response. +func (client *JobRunsClient) getHandleResponse(resp *http.Response) (JobRunsClientGetResponse, error) { + result := JobRunsClientGetResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.JobRun); err != nil { + return JobRunsClientGetResponse{}, err + } + return result, nil +} + +// NewListPager - Lists all Job Runs in a Job Definition. +// +// Generated from API version 2022-07-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - storageMoverName - The name of the Storage Mover resource. +// - projectName - The name of the Project resource. +// - jobDefinitionName - The name of the Job Definition resource. +// - options - JobRunsClientListOptions contains the optional parameters for the JobRunsClient.NewListPager method. +func (client *JobRunsClient) NewListPager(resourceGroupName string, storageMoverName string, projectName string, jobDefinitionName string, options *JobRunsClientListOptions) *runtime.Pager[JobRunsClientListResponse] { + return runtime.NewPager(runtime.PagingHandler[JobRunsClientListResponse]{ + More: func(page JobRunsClientListResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 + }, + Fetcher: func(ctx context.Context, page *JobRunsClientListResponse) (JobRunsClientListResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listCreateRequest(ctx, resourceGroupName, storageMoverName, projectName, jobDefinitionName, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return JobRunsClientListResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return JobRunsClientListResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return JobRunsClientListResponse{}, runtime.NewResponseError(resp) + } + return client.listHandleResponse(resp) + }, + }) +} + +// listCreateRequest creates the List request. +func (client *JobRunsClient) listCreateRequest(ctx context.Context, resourceGroupName string, storageMoverName string, projectName string, jobDefinitionName string, options *JobRunsClientListOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}/jobDefinitions/{jobDefinitionName}/jobRuns" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if storageMoverName == "" { + return nil, errors.New("parameter storageMoverName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{storageMoverName}", url.PathEscape(storageMoverName)) + if projectName == "" { + return nil, errors.New("parameter projectName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{projectName}", url.PathEscape(projectName)) + if jobDefinitionName == "" { + return nil, errors.New("parameter jobDefinitionName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{jobDefinitionName}", url.PathEscape(jobDefinitionName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-07-01-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listHandleResponse handles the List response. +func (client *JobRunsClient) listHandleResponse(resp *http.Response) (JobRunsClientListResponse, error) { + result := JobRunsClientListResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.JobRunList); err != nil { + return JobRunsClientListResponse{}, err + } + return result, nil +} diff --git a/sdk/resourcemanager/storagemover/armstoragemover/jobruns_client_example_test.go b/sdk/resourcemanager/storagemover/armstoragemover/jobruns_client_example_test.go new file mode 100644 index 000000000000..87eac72ff253 --- /dev/null +++ b/sdk/resourcemanager/storagemover/armstoragemover/jobruns_client_example_test.go @@ -0,0 +1,206 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armstoragemover_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storagemover/armstoragemover" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3d7a3848106b831a4a7f46976fe38aa605c4f44d/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/JobRuns_List.json +func ExampleJobRunsClient_NewListPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armstoragemover.NewJobRunsClient("11111111-2222-3333-4444-555555555555", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListPager("examples-rg", "examples-storageMoverName", "examples-projectName", "examples-jobDefinitionName", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.JobRunList = armstoragemover.JobRunList{ + // Value: []*armstoragemover.JobRun{ + // { + // Name: to.Ptr("examples-jobRunName1"), + // Type: to.Ptr("Microsoft.StorageMover/storageMovers/projects/jobDefinitions/jobRuns"), + // ID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/projectName/examples-projectName/jobDefinitions/examples-jobDefinitionName1/jobRuns/examples-jobRunName1"), + // Properties: &armstoragemover.JobRunProperties{ + // AgentName: to.Ptr("migration-agent"), + // AgentResourceID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/agents/migration-agent"), + // BytesExcluded: to.Ptr[int64](995116277760), + // BytesFailed: to.Ptr[int64](5116277760), + // BytesNoTransferNeeded: to.Ptr[int64](2995116277760), + // BytesScanned: to.Ptr[int64](49951162777600), + // BytesTransferred: to.Ptr[int64](1995116277760), + // BytesUnsupported: to.Ptr[int64](495116277760), + // ExecutionStartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-01T01:01:01.1075056Z"); return t}()), + // ItemsExcluded: to.Ptr[int64](50), + // ItemsFailed: to.Ptr[int64](3), + // ItemsNoTransferNeeded: to.Ptr[int64](150), + // ItemsScanned: to.Ptr[int64](351), + // ItemsTransferred: to.Ptr[int64](100), + // ItemsUnsupported: to.Ptr[int64](27), + // JobDefinitionProperties: map[string]any{ + // }, + // LastStatusUpdate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-01T01:31:01.1075056Z"); return t}()), + // ScanStatus: to.Ptr(armstoragemover.JobRunScanStatusScanning), + // SourceName: to.Ptr("sourceEndpoint"), + // SourceProperties: map[string]any{ + // }, + // SourceResourceID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/endpoints/sourceEndpoint"), + // Status: to.Ptr(armstoragemover.JobRunStatusRunning), + // TargetName: to.Ptr("targetEndpoint"), + // TargetProperties: map[string]any{ + // }, + // TargetResourceID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/endpoints/targetEndpoint"), + // }, + // }, + // { + // Name: to.Ptr("examples-jobRunName2"), + // Type: to.Ptr("Microsoft.StorageMover/storageMovers/projects/jobDefinitions/jobRuns"), + // ID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/projectName/examples-projectName/jobDefinitions/examples-jobDefinitionName1/jobRuns/examples-jobRunName2"), + // Properties: &armstoragemover.JobRunProperties{ + // AgentName: to.Ptr("migration-agent"), + // AgentResourceID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/agents/migration-agent"), + // BytesExcluded: to.Ptr[int64](995116277760), + // BytesFailed: to.Ptr[int64](5116277760), + // BytesNoTransferNeeded: to.Ptr[int64](2995116277760), + // BytesScanned: to.Ptr[int64](49951162777600), + // BytesTransferred: to.Ptr[int64](1995116277760), + // BytesUnsupported: to.Ptr[int64](495116277760), + // ExecutionStartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-01T01:01:01.1075056Z"); return t}()), + // ItemsExcluded: to.Ptr[int64](50), + // ItemsFailed: to.Ptr[int64](3), + // ItemsNoTransferNeeded: to.Ptr[int64](150), + // ItemsScanned: to.Ptr[int64](351), + // ItemsTransferred: to.Ptr[int64](100), + // ItemsUnsupported: to.Ptr[int64](27), + // JobDefinitionProperties: map[string]any{ + // }, + // LastStatusUpdate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-01T01:31:01.1075056Z"); return t}()), + // ScanStatus: to.Ptr(armstoragemover.JobRunScanStatusScanning), + // SourceName: to.Ptr("sourceEndpoint"), + // SourceProperties: map[string]any{ + // }, + // SourceResourceID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/endpoints/sourceEndpoint"), + // Status: to.Ptr(armstoragemover.JobRunStatusFailed), + // TargetName: to.Ptr("targetEndpoint"), + // TargetProperties: map[string]any{ + // }, + // TargetResourceID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/endpoints/targetEndpoint"), + // }, + // }, + // { + // Name: to.Ptr("examples-jobRunName3"), + // Type: to.Ptr("Microsoft.StorageMover/storageMovers/projects/jobDefinitions/jobRuns"), + // ID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/projectName/examples-projectName/jobDefinitions/examples-jobDefinitionName1/jobRuns/examples-jobRunName3"), + // Properties: &armstoragemover.JobRunProperties{ + // AgentName: to.Ptr("migration-agent"), + // AgentResourceID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/agents/migration-agent"), + // BytesExcluded: to.Ptr[int64](995116277760), + // BytesFailed: to.Ptr[int64](5116277760), + // BytesNoTransferNeeded: to.Ptr[int64](2995116277760), + // BytesScanned: to.Ptr[int64](49951162777600), + // BytesTransferred: to.Ptr[int64](1995116277760), + // BytesUnsupported: to.Ptr[int64](495116277760), + // ExecutionStartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-01T01:01:01.1075056Z"); return t}()), + // ItemsExcluded: to.Ptr[int64](50), + // ItemsFailed: to.Ptr[int64](3), + // ItemsNoTransferNeeded: to.Ptr[int64](150), + // ItemsScanned: to.Ptr[int64](351), + // ItemsTransferred: to.Ptr[int64](100), + // ItemsUnsupported: to.Ptr[int64](27), + // JobDefinitionProperties: map[string]any{ + // }, + // LastStatusUpdate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-01T01:31:01.1075056Z"); return t}()), + // ScanStatus: to.Ptr(armstoragemover.JobRunScanStatusScanning), + // SourceName: to.Ptr("sourceEndpoint"), + // SourceProperties: map[string]any{ + // }, + // SourceResourceID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/endpoints/sourceEndpoint"), + // Status: to.Ptr(armstoragemover.JobRunStatusFailed), + // TargetName: to.Ptr("targetEndpoint"), + // TargetProperties: map[string]any{ + // }, + // TargetResourceID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/endpoints/targetEndpoint"), + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3d7a3848106b831a4a7f46976fe38aa605c4f44d/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/JobRuns_Get.json +func ExampleJobRunsClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armstoragemover.NewJobRunsClient("11111111-2222-3333-4444-555555555555", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "examples-rg", "examples-storageMoverName", "examples-projectName", "examples-jobDefinitionName", "examples-jobRunName", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.JobRun = armstoragemover.JobRun{ + // Name: to.Ptr("examples-jobRunName"), + // Type: to.Ptr("Microsoft.StorageMover/storageMovers/projects/jobDefinitions/jobRuns"), + // ID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/projects/examples-projectName/jobDefinitions/examples-jobDefinitionName/jobRuns/examples-jobRunName"), + // Properties: &armstoragemover.JobRunProperties{ + // AgentName: to.Ptr("migration-agent"), + // AgentResourceID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/agents/migration-agent"), + // BytesExcluded: to.Ptr[int64](995116277760), + // BytesFailed: to.Ptr[int64](5116277760), + // BytesNoTransferNeeded: to.Ptr[int64](2995116277760), + // BytesScanned: to.Ptr[int64](49951162777600), + // BytesTransferred: to.Ptr[int64](1995116277760), + // BytesUnsupported: to.Ptr[int64](495116277760), + // ExecutionStartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-01T01:01:01.1075056Z"); return t}()), + // ItemsExcluded: to.Ptr[int64](50), + // ItemsFailed: to.Ptr[int64](3), + // ItemsNoTransferNeeded: to.Ptr[int64](150), + // ItemsScanned: to.Ptr[int64](351), + // ItemsTransferred: to.Ptr[int64](100), + // ItemsUnsupported: to.Ptr[int64](27), + // JobDefinitionProperties: map[string]any{ + // }, + // LastStatusUpdate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-01T01:31:01.1075056Z"); return t}()), + // ScanStatus: to.Ptr(armstoragemover.JobRunScanStatusScanning), + // SourceName: to.Ptr("sourceEndpoint"), + // SourceProperties: map[string]any{ + // }, + // SourceResourceID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/endpoints/sourceEndpoint"), + // Status: to.Ptr(armstoragemover.JobRunStatusRunning), + // TargetName: to.Ptr("targetEndpoint"), + // TargetProperties: map[string]any{ + // }, + // TargetResourceID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/endpoints/targetEndpoint"), + // }, + // } +} diff --git a/sdk/resourcemanager/storagemover/armstoragemover/models.go b/sdk/resourcemanager/storagemover/armstoragemover/models.go new file mode 100644 index 000000000000..1632576a5736 --- /dev/null +++ b/sdk/resourcemanager/storagemover/armstoragemover/models.go @@ -0,0 +1,778 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armstoragemover + +import "time" + +// Agent - The Agent resource. +type Agent struct { + // REQUIRED + Properties *AgentProperties `json:"properties,omitempty"` + + // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string `json:"id,omitempty" azure:"ro"` + + // READ-ONLY; The name of the resource + Name *string `json:"name,omitempty" azure:"ro"` + + // READ-ONLY; Resource system metadata. + SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + + // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string `json:"type,omitempty" azure:"ro"` +} + +// AgentList - List of Agents. +type AgentList struct { + // READ-ONLY; Request URL that can be used to query next page of containers. Returned when total number of requested containers + // exceed maximum page size. + NextLink *string `json:"nextLink,omitempty" azure:"ro"` + + // READ-ONLY + Value []*Agent `json:"value,omitempty" azure:"ro"` +} + +type AgentProperties struct { + // REQUIRED; The fully qualified resource ID of the Hybrid Compute resource for the Agent. + ArcResourceID *string `json:"arcResourceId,omitempty"` + + // REQUIRED; The VM UUID of the Hybrid Compute resource for the Agent. + ArcVMUUID *string `json:"arcVmUuid,omitempty"` + + // A description for the Agent. + Description *string `json:"description,omitempty"` + + // READ-ONLY; The Agent status. + AgentStatus *AgentStatus `json:"agentStatus,omitempty" azure:"ro"` + + // READ-ONLY; The Agent version. + AgentVersion *string `json:"agentVersion,omitempty" azure:"ro"` + + // READ-ONLY + ErrorDetails *AgentPropertiesErrorDetails `json:"errorDetails,omitempty" azure:"ro"` + + // READ-ONLY; The last updated time of the Agent status. + LastStatusUpdate *time.Time `json:"lastStatusUpdate,omitempty" azure:"ro"` + + // READ-ONLY; Local IP address reported by the Agent. + LocalIPAddress *string `json:"localIPAddress,omitempty" azure:"ro"` + + // READ-ONLY; Available memory reported by the Agent, in MB. + MemoryInMB *int64 `json:"memoryInMB,omitempty" azure:"ro"` + + // READ-ONLY; Available compute cores reported by the Agent. + NumberOfCores *int64 `json:"numberOfCores,omitempty" azure:"ro"` + + // READ-ONLY; The provisioning state of this resource. + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` + + // READ-ONLY; Uptime of the Agent in seconds. + UptimeInSeconds *int64 `json:"uptimeInSeconds,omitempty" azure:"ro"` +} + +type AgentPropertiesErrorDetails struct { + // Error code reported by Agent + Code *string `json:"code,omitempty"` + + // Expanded description of reported error code + Message *string `json:"message,omitempty"` +} + +// AgentUpdateParameters - The Agent resource. +type AgentUpdateParameters struct { + Properties *AgentUpdateProperties `json:"properties,omitempty"` +} + +type AgentUpdateProperties struct { + // A description for the Agent. + Description *string `json:"description,omitempty"` +} + +// AgentsClientBeginDeleteOptions contains the optional parameters for the AgentsClient.BeginDelete method. +type AgentsClientBeginDeleteOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// AgentsClientCreateOrUpdateOptions contains the optional parameters for the AgentsClient.CreateOrUpdate method. +type AgentsClientCreateOrUpdateOptions struct { + // placeholder for future optional parameters +} + +// AgentsClientGetOptions contains the optional parameters for the AgentsClient.Get method. +type AgentsClientGetOptions struct { + // placeholder for future optional parameters +} + +// AgentsClientListOptions contains the optional parameters for the AgentsClient.NewListPager method. +type AgentsClientListOptions struct { + // placeholder for future optional parameters +} + +// AgentsClientUpdateOptions contains the optional parameters for the AgentsClient.Update method. +type AgentsClientUpdateOptions struct { + // placeholder for future optional parameters +} + +type AzureStorageBlobContainerEndpointProperties struct { + // REQUIRED; The name of the Storage blob container that is the target destination. + BlobContainerName *string `json:"blobContainerName,omitempty"` + + // REQUIRED; The Endpoint resource type. + EndpointType *EndpointType `json:"endpointType,omitempty"` + + // REQUIRED; The Azure Resource ID of the storage account that is the target destination. + StorageAccountResourceID *string `json:"storageAccountResourceId,omitempty"` + + // A description for the Endpoint. + Description *string `json:"description,omitempty"` + + // READ-ONLY; The provisioning state of this resource. + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` +} + +// GetEndpointBaseProperties implements the EndpointBasePropertiesClassification interface for type AzureStorageBlobContainerEndpointProperties. +func (a *AzureStorageBlobContainerEndpointProperties) GetEndpointBaseProperties() *EndpointBaseProperties { + return &EndpointBaseProperties{ + EndpointType: a.EndpointType, + Description: a.Description, + ProvisioningState: a.ProvisioningState, + } +} + +// Endpoint - The Endpoint resource, which contains information about file sources and targets. +type Endpoint struct { + // REQUIRED; The resource specific properties for the Storage Mover resource. + Properties EndpointBasePropertiesClassification `json:"properties,omitempty"` + + // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string `json:"id,omitempty" azure:"ro"` + + // READ-ONLY; The name of the resource + Name *string `json:"name,omitempty" azure:"ro"` + + // READ-ONLY; Resource system metadata. + SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + + // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string `json:"type,omitempty" azure:"ro"` +} + +// EndpointBasePropertiesClassification provides polymorphic access to related types. +// Call the interface's GetEndpointBaseProperties() method to access the common type. +// Use a type switch to determine the concrete type. The possible types are: +// - *AzureStorageBlobContainerEndpointProperties, *EndpointBaseProperties, *NfsMountEndpointProperties +type EndpointBasePropertiesClassification interface { + // GetEndpointBaseProperties returns the EndpointBaseProperties content of the underlying type. + GetEndpointBaseProperties() *EndpointBaseProperties +} + +// EndpointBaseProperties - The resource specific properties for the Storage Mover resource. +type EndpointBaseProperties struct { + // REQUIRED; The Endpoint resource type. + EndpointType *EndpointType `json:"endpointType,omitempty"` + + // A description for the Endpoint. + Description *string `json:"description,omitempty"` + + // READ-ONLY; The provisioning state of this resource. + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` +} + +// GetEndpointBaseProperties implements the EndpointBasePropertiesClassification interface for type EndpointBaseProperties. +func (e *EndpointBaseProperties) GetEndpointBaseProperties() *EndpointBaseProperties { return e } + +// EndpointBaseUpdateParameters - The Endpoint resource. +type EndpointBaseUpdateParameters struct { + // The Endpoint resource, which contains information about file sources and targets. + Properties *EndpointBaseUpdateProperties `json:"properties,omitempty"` +} + +// EndpointBaseUpdateProperties - The Endpoint resource, which contains information about file sources and targets. +type EndpointBaseUpdateProperties struct { + // A description for the Endpoint. + Description *string `json:"description,omitempty"` +} + +// EndpointList - List of Endpoints. +type EndpointList struct { + // READ-ONLY; Request URL that can be used to query next page of containers. Returned when total number of requested containers + // exceed maximum page size. + NextLink *string `json:"nextLink,omitempty" azure:"ro"` + + // READ-ONLY + Value []*Endpoint `json:"value,omitempty" azure:"ro"` +} + +// EndpointsClientBeginDeleteOptions contains the optional parameters for the EndpointsClient.BeginDelete method. +type EndpointsClientBeginDeleteOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// EndpointsClientCreateOrUpdateOptions contains the optional parameters for the EndpointsClient.CreateOrUpdate method. +type EndpointsClientCreateOrUpdateOptions struct { + // placeholder for future optional parameters +} + +// EndpointsClientGetOptions contains the optional parameters for the EndpointsClient.Get method. +type EndpointsClientGetOptions struct { + // placeholder for future optional parameters +} + +// EndpointsClientListOptions contains the optional parameters for the EndpointsClient.NewListPager method. +type EndpointsClientListOptions struct { + // placeholder for future optional parameters +} + +// EndpointsClientUpdateOptions contains the optional parameters for the EndpointsClient.Update method. +type EndpointsClientUpdateOptions struct { + // placeholder for future optional parameters +} + +// JobDefinition - The Job Definition resource. +type JobDefinition struct { + // REQUIRED; Job definition properties. + Properties *JobDefinitionProperties `json:"properties,omitempty"` + + // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string `json:"id,omitempty" azure:"ro"` + + // READ-ONLY; The name of the resource + Name *string `json:"name,omitempty" azure:"ro"` + + // READ-ONLY; Resource system metadata. + SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + + // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string `json:"type,omitempty" azure:"ro"` +} + +// JobDefinitionList - List of Job Definitions. +type JobDefinitionList struct { + // READ-ONLY; Request URL that can be used to query next page of containers. Returned when total number of requested containers + // exceed maximum page size. + NextLink *string `json:"nextLink,omitempty" azure:"ro"` + + // READ-ONLY + Value []*JobDefinition `json:"value,omitempty" azure:"ro"` +} + +// JobDefinitionProperties - Job definition properties. +type JobDefinitionProperties struct { + // REQUIRED; Strategy to use for copy. + CopyMode *CopyMode `json:"copyMode,omitempty"` + + // REQUIRED; The name of the source Endpoint. + SourceName *string `json:"sourceName,omitempty"` + + // REQUIRED; The name of the target Endpoint. + TargetName *string `json:"targetName,omitempty"` + + // Name of the Agent to assign for new Job Runs of this Job Definition. + AgentName *string `json:"agentName,omitempty"` + + // A description for the Job Definition. + Description *string `json:"description,omitempty"` + + // The subpath to use when reading from the source Endpoint. + SourceSubpath *string `json:"sourceSubpath,omitempty"` + + // The subpath to use when writing to the target Endpoint. + TargetSubpath *string `json:"targetSubpath,omitempty"` + + // READ-ONLY; Fully qualified resource id of the Agent to assign for new Job Runs of this Job Definition. + AgentResourceID *string `json:"agentResourceId,omitempty" azure:"ro"` + + // READ-ONLY; The name of the Job Run in a non-terminal state, if exists. + LatestJobRunName *string `json:"latestJobRunName,omitempty" azure:"ro"` + + // READ-ONLY; The fully qualified resource ID of the Job Run in a non-terminal state, if exists. + LatestJobRunResourceID *string `json:"latestJobRunResourceId,omitempty" azure:"ro"` + + // READ-ONLY; The current status of the Job Run in a non-terminal state, if exists. + LatestJobRunStatus *JobRunStatus `json:"latestJobRunStatus,omitempty" azure:"ro"` + + // READ-ONLY; The provisioning state of this resource. + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` + + // READ-ONLY; Fully qualified resource ID of the source Endpoint. + SourceResourceID *string `json:"sourceResourceId,omitempty" azure:"ro"` + + // READ-ONLY; Fully qualified resource ID of the target Endpoint. + TargetResourceID *string `json:"targetResourceId,omitempty" azure:"ro"` +} + +// JobDefinitionUpdateParameters - The Job Definition resource. +type JobDefinitionUpdateParameters struct { + // Job definition properties. + Properties *JobDefinitionUpdateProperties `json:"properties,omitempty"` +} + +// JobDefinitionUpdateProperties - Job definition properties. +type JobDefinitionUpdateProperties struct { + // Name of the Agent to assign for new Job Runs of this Job Definition. + AgentName *string `json:"agentName,omitempty"` + + // Strategy to use for copy. + CopyMode *CopyMode `json:"copyMode,omitempty"` + + // A description for the Job Definition. + Description *string `json:"description,omitempty"` +} + +// JobDefinitionsClientBeginDeleteOptions contains the optional parameters for the JobDefinitionsClient.BeginDelete method. +type JobDefinitionsClientBeginDeleteOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// JobDefinitionsClientCreateOrUpdateOptions contains the optional parameters for the JobDefinitionsClient.CreateOrUpdate +// method. +type JobDefinitionsClientCreateOrUpdateOptions struct { + // placeholder for future optional parameters +} + +// JobDefinitionsClientGetOptions contains the optional parameters for the JobDefinitionsClient.Get method. +type JobDefinitionsClientGetOptions struct { + // placeholder for future optional parameters +} + +// JobDefinitionsClientListOptions contains the optional parameters for the JobDefinitionsClient.NewListPager method. +type JobDefinitionsClientListOptions struct { + // placeholder for future optional parameters +} + +// JobDefinitionsClientStartJobOptions contains the optional parameters for the JobDefinitionsClient.StartJob method. +type JobDefinitionsClientStartJobOptions struct { + // placeholder for future optional parameters +} + +// JobDefinitionsClientStopJobOptions contains the optional parameters for the JobDefinitionsClient.StopJob method. +type JobDefinitionsClientStopJobOptions struct { + // placeholder for future optional parameters +} + +// JobDefinitionsClientUpdateOptions contains the optional parameters for the JobDefinitionsClient.Update method. +type JobDefinitionsClientUpdateOptions struct { + // placeholder for future optional parameters +} + +// JobRun - The Job Run resource. +type JobRun struct { + // Job run properties. + Properties *JobRunProperties `json:"properties,omitempty"` + + // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string `json:"id,omitempty" azure:"ro"` + + // READ-ONLY; The name of the resource + Name *string `json:"name,omitempty" azure:"ro"` + + // READ-ONLY; Resource system metadata. + SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + + // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string `json:"type,omitempty" azure:"ro"` +} + +// JobRunError - Error type +type JobRunError struct { + // Error code of the given entry. + Code *string `json:"code,omitempty"` + + // Error message of the given entry. + Message *string `json:"message,omitempty"` + + // Target of the given error entry. + Target *string `json:"target,omitempty"` +} + +// JobRunList - List of Job Runs. +type JobRunList struct { + // READ-ONLY; Request URL that can be used to query next page of containers. Returned when total number of requested containers + // exceed maximum page size. + NextLink *string `json:"nextLink,omitempty" azure:"ro"` + + // READ-ONLY + Value []*JobRun `json:"value,omitempty" azure:"ro"` +} + +// JobRunProperties - Job run properties. +type JobRunProperties struct { + // READ-ONLY; Name of the Agent assigned to this run. + AgentName *string `json:"agentName,omitempty" azure:"ro"` + + // READ-ONLY; Fully qualified resource id of the Agent assigned to this run. + AgentResourceID *string `json:"agentResourceId,omitempty" azure:"ro"` + + // READ-ONLY; Bytes of data that will not be transferred, as they are excluded by user configuration. + BytesExcluded *int64 `json:"bytesExcluded,omitempty" azure:"ro"` + + // READ-ONLY; Bytes of data that were attempted to transfer and failed. + BytesFailed *int64 `json:"bytesFailed,omitempty" azure:"ro"` + + // READ-ONLY; Bytes of data that will not be transferred, as they are already found on target (e.g. mirror mode). + BytesNoTransferNeeded *int64 `json:"bytesNoTransferNeeded,omitempty" azure:"ro"` + + // READ-ONLY; Bytes of data scanned so far in source. + BytesScanned *int64 `json:"bytesScanned,omitempty" azure:"ro"` + + // READ-ONLY; Bytes of data successfully transferred to target. + BytesTransferred *int64 `json:"bytesTransferred,omitempty" azure:"ro"` + + // READ-ONLY; Bytes of data that will not be transferred, as they are unsupported on target. + BytesUnsupported *int64 `json:"bytesUnsupported,omitempty" azure:"ro"` + + // READ-ONLY; Error details. + Error *JobRunError `json:"error,omitempty" azure:"ro"` + + // READ-ONLY; End time of the run. Null if Agent has not reported that the job has ended. + ExecutionEndTime *time.Time `json:"executionEndTime,omitempty" azure:"ro"` + + // READ-ONLY; Start time of the run. Null if no Agent reported that the job has started. + ExecutionStartTime *time.Time `json:"executionStartTime,omitempty" azure:"ro"` + + // READ-ONLY; Number of items that will not be transferred, as they are excluded by user configuration. + ItemsExcluded *int64 `json:"itemsExcluded,omitempty" azure:"ro"` + + // READ-ONLY; Number of items that were attempted to transfer and failed. + ItemsFailed *int64 `json:"itemsFailed,omitempty" azure:"ro"` + + // READ-ONLY; Number of items that will not be transferred, as they are already found on target (e.g. mirror mode). + ItemsNoTransferNeeded *int64 `json:"itemsNoTransferNeeded,omitempty" azure:"ro"` + + // READ-ONLY; Number of items scanned so far in source. + ItemsScanned *int64 `json:"itemsScanned,omitempty" azure:"ro"` + + // READ-ONLY; Number of items successfully transferred to target. + ItemsTransferred *int64 `json:"itemsTransferred,omitempty" azure:"ro"` + + // READ-ONLY; Number of items that will not be transferred, as they are unsupported on target. + ItemsUnsupported *int64 `json:"itemsUnsupported,omitempty" azure:"ro"` + + // READ-ONLY; Copy of parent Job Definition's properties at time of Job Run creation. + JobDefinitionProperties any `json:"jobDefinitionProperties,omitempty" azure:"ro"` + + // READ-ONLY; The last updated time of the Job Run. + LastStatusUpdate *time.Time `json:"lastStatusUpdate,omitempty" azure:"ro"` + + // READ-ONLY; The provisioning state of this resource. + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` + + // READ-ONLY; The status of Agent's scanning of source. + ScanStatus *JobRunScanStatus `json:"scanStatus,omitempty" azure:"ro"` + + // READ-ONLY; Name of source Endpoint resource. This resource may no longer exist. + SourceName *string `json:"sourceName,omitempty" azure:"ro"` + + // READ-ONLY; Copy of source Endpoint resource's properties at time of Job Run creation. + SourceProperties any `json:"sourceProperties,omitempty" azure:"ro"` + + // READ-ONLY; Fully qualified resource id of source Endpoint. This id may no longer exist. + SourceResourceID *string `json:"sourceResourceId,omitempty" azure:"ro"` + + // READ-ONLY; The state of the job execution. + Status *JobRunStatus `json:"status,omitempty" azure:"ro"` + + // READ-ONLY; Name of target Endpoint resource. This resource may no longer exist. + TargetName *string `json:"targetName,omitempty" azure:"ro"` + + // READ-ONLY; Copy of Endpoint resource's properties at time of Job Run creation. + TargetProperties any `json:"targetProperties,omitempty" azure:"ro"` + + // READ-ONLY; Fully qualified resource id of of Endpoint. This id may no longer exist. + TargetResourceID *string `json:"targetResourceId,omitempty" azure:"ro"` +} + +// JobRunResourceID - Response that identifies a Job Run. +type JobRunResourceID struct { + // READ-ONLY; Fully qualified resource id of the Job Run. + JobRunResourceID *string `json:"jobRunResourceId,omitempty" azure:"ro"` +} + +// JobRunsClientGetOptions contains the optional parameters for the JobRunsClient.Get method. +type JobRunsClientGetOptions struct { + // placeholder for future optional parameters +} + +// JobRunsClientListOptions contains the optional parameters for the JobRunsClient.NewListPager method. +type JobRunsClientListOptions struct { + // placeholder for future optional parameters +} + +// List of Storage Movers. +type List struct { + // READ-ONLY; Request URL that can be used to query next page of containers. Returned when total number of requested containers + // exceed maximum page size. + NextLink *string `json:"nextLink,omitempty" azure:"ro"` + + // READ-ONLY + Value []*StorageMover `json:"value,omitempty" azure:"ro"` +} + +type NfsMountEndpointProperties struct { + // REQUIRED; The Endpoint resource type. + EndpointType *EndpointType `json:"endpointType,omitempty"` + + // REQUIRED; The directory being exported from the server. + Export *string `json:"export,omitempty"` + + // REQUIRED; The host name or IP address of the server exporting the file system. + Host *string `json:"host,omitempty"` + + // A description for the Endpoint. + Description *string `json:"description,omitempty"` + + // The NFS protocol version. + NfsVersion *NfsVersion `json:"nfsVersion,omitempty"` + + // READ-ONLY; The provisioning state of this resource. + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` +} + +// GetEndpointBaseProperties implements the EndpointBasePropertiesClassification interface for type NfsMountEndpointProperties. +func (n *NfsMountEndpointProperties) GetEndpointBaseProperties() *EndpointBaseProperties { + return &EndpointBaseProperties{ + EndpointType: n.EndpointType, + Description: n.Description, + ProvisioningState: n.ProvisioningState, + } +} + +// Operation - Details of a REST API operation, returned from the Resource Provider Operations API +type Operation struct { + // Localized display information for this particular operation. + Display *OperationDisplay `json:"display,omitempty"` + + // READ-ONLY; Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. + ActionType *ActionType `json:"actionType,omitempty" azure:"ro"` + + // READ-ONLY; Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for ARM/control-plane + // operations. + IsDataAction *bool `json:"isDataAction,omitempty" azure:"ro"` + + // READ-ONLY; The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", + // "Microsoft.Compute/virtualMachines/capture/action" + Name *string `json:"name,omitempty" azure:"ro"` + + // READ-ONLY; The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default + // value is "user,system" + Origin *Origin `json:"origin,omitempty" azure:"ro"` +} + +// OperationDisplay - Localized display information for this particular operation. +type OperationDisplay struct { + // READ-ONLY; The short, localized friendly description of the operation; suitable for tool tips and detailed views. + Description *string `json:"description,omitempty" azure:"ro"` + + // READ-ONLY; The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual + // Machine", "Restart Virtual Machine". + Operation *string `json:"operation,omitempty" azure:"ro"` + + // READ-ONLY; The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft + // Compute". + Provider *string `json:"provider,omitempty" azure:"ro"` + + // READ-ONLY; The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job + // Schedule Collections". + Resource *string `json:"resource,omitempty" azure:"ro"` +} + +// OperationListResult - A list of REST API operations supported by an Azure Resource Provider. It contains an 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"` + + // READ-ONLY; List of operations supported by the resource provider + Value []*Operation `json:"value,omitempty" azure:"ro"` +} + +// OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method. +type OperationsClientListOptions struct { + // placeholder for future optional parameters +} + +// Project - The Project resource. +type Project struct { + // Project properties. + Properties *ProjectProperties `json:"properties,omitempty"` + + // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string `json:"id,omitempty" azure:"ro"` + + // READ-ONLY; The name of the resource + Name *string `json:"name,omitempty" azure:"ro"` + + // READ-ONLY; Resource system metadata. + SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + + // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string `json:"type,omitempty" azure:"ro"` +} + +// ProjectList - List of Project resources. +type ProjectList struct { + // READ-ONLY; Request URL that can be used to query next page of containers. Returned when total number of requested containers + // exceed maximum page size. + NextLink *string `json:"nextLink,omitempty" azure:"ro"` + + // READ-ONLY + Value []*Project `json:"value,omitempty" azure:"ro"` +} + +// ProjectProperties - Project properties. +type ProjectProperties struct { + // A description for the Project. + Description *string `json:"description,omitempty"` + + // READ-ONLY; The provisioning state of this resource. + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` +} + +// ProjectUpdateParameters - The Project resource. +type ProjectUpdateParameters struct { + // Project properties. + Properties *ProjectUpdateProperties `json:"properties,omitempty"` +} + +// ProjectUpdateProperties - Project properties. +type ProjectUpdateProperties struct { + // A description for the Project. + Description *string `json:"description,omitempty"` +} + +// ProjectsClientBeginDeleteOptions contains the optional parameters for the ProjectsClient.BeginDelete method. +type ProjectsClientBeginDeleteOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// ProjectsClientCreateOrUpdateOptions contains the optional parameters for the ProjectsClient.CreateOrUpdate method. +type ProjectsClientCreateOrUpdateOptions struct { + // placeholder for future optional parameters +} + +// ProjectsClientGetOptions contains the optional parameters for the ProjectsClient.Get method. +type ProjectsClientGetOptions struct { + // placeholder for future optional parameters +} + +// ProjectsClientListOptions contains the optional parameters for the ProjectsClient.NewListPager method. +type ProjectsClientListOptions struct { + // placeholder for future optional parameters +} + +// ProjectsClientUpdateOptions contains the optional parameters for the ProjectsClient.Update method. +type ProjectsClientUpdateOptions struct { + // placeholder for future optional parameters +} + +// Properties - The resource specific properties for the Storage Mover resource. +type Properties struct { + // A description for the Storage Mover. + Description *string `json:"description,omitempty"` + + // READ-ONLY; The provisioning state of this resource. + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` +} + +// StorageMover - The Storage Mover resource, which is a container for a group of Agents, Projects, and Endpoints. +type StorageMover struct { + // REQUIRED; The geo-location where the resource lives + Location *string `json:"location,omitempty"` + + // The resource specific properties for the Storage Mover resource. + Properties *Properties `json:"properties,omitempty"` + + // Resource tags. + Tags map[string]*string `json:"tags,omitempty"` + + // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string `json:"id,omitempty" azure:"ro"` + + // READ-ONLY; The name of the resource + Name *string `json:"name,omitempty" azure:"ro"` + + // READ-ONLY; Resource system metadata. + SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + + // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string `json:"type,omitempty" azure:"ro"` +} + +// StorageMoversClientBeginDeleteOptions contains the optional parameters for the StorageMoversClient.BeginDelete method. +type StorageMoversClientBeginDeleteOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// StorageMoversClientCreateOrUpdateOptions contains the optional parameters for the StorageMoversClient.CreateOrUpdate method. +type StorageMoversClientCreateOrUpdateOptions struct { + // placeholder for future optional parameters +} + +// StorageMoversClientGetOptions contains the optional parameters for the StorageMoversClient.Get method. +type StorageMoversClientGetOptions struct { + // placeholder for future optional parameters +} + +// StorageMoversClientListBySubscriptionOptions contains the optional parameters for the StorageMoversClient.NewListBySubscriptionPager +// method. +type StorageMoversClientListBySubscriptionOptions struct { + // placeholder for future optional parameters +} + +// StorageMoversClientListOptions contains the optional parameters for the StorageMoversClient.NewListPager method. +type StorageMoversClientListOptions struct { + // placeholder for future optional parameters +} + +// StorageMoversClientUpdateOptions contains the optional parameters for the StorageMoversClient.Update method. +type StorageMoversClientUpdateOptions struct { + // placeholder for future optional parameters +} + +// 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"` + + // The identity that created the resource. + CreatedBy *string `json:"createdBy,omitempty"` + + // The type of identity that created the resource. + CreatedByType *CreatedByType `json:"createdByType,omitempty"` + + // The timestamp of resource last modification (UTC) + LastModifiedAt *time.Time `json:"lastModifiedAt,omitempty"` + + // The identity that last modified the resource. + LastModifiedBy *string `json:"lastModifiedBy,omitempty"` + + // The type of identity that last modified the resource. + LastModifiedByType *CreatedByType `json:"lastModifiedByType,omitempty"` +} + +// UpdateParameters - The Storage Mover resource. +type UpdateParameters struct { + // The resource specific properties for the Storage Mover resource. + Properties *UpdateProperties `json:"properties,omitempty"` + + // Resource tags. + Tags map[string]*string `json:"tags,omitempty"` +} + +// UpdateProperties - The resource specific properties for the Storage Mover resource. +type UpdateProperties struct { + // A description for the Storage Mover. + Description *string `json:"description,omitempty"` +} diff --git a/sdk/resourcemanager/storagemover/armstoragemover/models_serde.go b/sdk/resourcemanager/storagemover/armstoragemover/models_serde.go new file mode 100644 index 000000000000..329bc94c9ad2 --- /dev/null +++ b/sdk/resourcemanager/storagemover/armstoragemover/models_serde.go @@ -0,0 +1,1496 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armstoragemover + +import ( + "encoding/json" + "fmt" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "reflect" +) + +// MarshalJSON implements the json.Marshaller interface for type Agent. +func (a Agent) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", a.ID) + populate(objectMap, "name", a.Name) + populate(objectMap, "properties", a.Properties) + populate(objectMap, "systemData", a.SystemData) + populate(objectMap, "type", a.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Agent. +func (a *Agent) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &a.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &a.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &a.Properties) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &a.SystemData) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &a.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type AgentList. +func (a AgentList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", a.NextLink) + populate(objectMap, "value", a.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AgentList. +func (a *AgentList) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &a.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &a.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type AgentProperties. +func (a AgentProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "agentStatus", a.AgentStatus) + populate(objectMap, "agentVersion", a.AgentVersion) + populate(objectMap, "arcResourceId", a.ArcResourceID) + populate(objectMap, "arcVmUuid", a.ArcVMUUID) + populate(objectMap, "description", a.Description) + populate(objectMap, "errorDetails", a.ErrorDetails) + populateTimeRFC3339(objectMap, "lastStatusUpdate", a.LastStatusUpdate) + populate(objectMap, "localIPAddress", a.LocalIPAddress) + populate(objectMap, "memoryInMB", a.MemoryInMB) + populate(objectMap, "numberOfCores", a.NumberOfCores) + populate(objectMap, "provisioningState", a.ProvisioningState) + populate(objectMap, "uptimeInSeconds", a.UptimeInSeconds) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AgentProperties. +func (a *AgentProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "agentStatus": + err = unpopulate(val, "AgentStatus", &a.AgentStatus) + delete(rawMsg, key) + case "agentVersion": + err = unpopulate(val, "AgentVersion", &a.AgentVersion) + delete(rawMsg, key) + case "arcResourceId": + err = unpopulate(val, "ArcResourceID", &a.ArcResourceID) + delete(rawMsg, key) + case "arcVmUuid": + err = unpopulate(val, "ArcVMUUID", &a.ArcVMUUID) + delete(rawMsg, key) + case "description": + err = unpopulate(val, "Description", &a.Description) + delete(rawMsg, key) + case "errorDetails": + err = unpopulate(val, "ErrorDetails", &a.ErrorDetails) + delete(rawMsg, key) + case "lastStatusUpdate": + err = unpopulateTimeRFC3339(val, "LastStatusUpdate", &a.LastStatusUpdate) + delete(rawMsg, key) + case "localIPAddress": + err = unpopulate(val, "LocalIPAddress", &a.LocalIPAddress) + delete(rawMsg, key) + case "memoryInMB": + err = unpopulate(val, "MemoryInMB", &a.MemoryInMB) + delete(rawMsg, key) + case "numberOfCores": + err = unpopulate(val, "NumberOfCores", &a.NumberOfCores) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &a.ProvisioningState) + delete(rawMsg, key) + case "uptimeInSeconds": + err = unpopulate(val, "UptimeInSeconds", &a.UptimeInSeconds) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type AgentPropertiesErrorDetails. +func (a AgentPropertiesErrorDetails) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "code", a.Code) + populate(objectMap, "message", a.Message) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AgentPropertiesErrorDetails. +func (a *AgentPropertiesErrorDetails) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "code": + err = unpopulate(val, "Code", &a.Code) + delete(rawMsg, key) + case "message": + err = unpopulate(val, "Message", &a.Message) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type AgentUpdateParameters. +func (a AgentUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "properties", a.Properties) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AgentUpdateParameters. +func (a *AgentUpdateParameters) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "properties": + err = unpopulate(val, "Properties", &a.Properties) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type AgentUpdateProperties. +func (a AgentUpdateProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "description", a.Description) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AgentUpdateProperties. +func (a *AgentUpdateProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "description": + err = unpopulate(val, "Description", &a.Description) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type AzureStorageBlobContainerEndpointProperties. +func (a AzureStorageBlobContainerEndpointProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "blobContainerName", a.BlobContainerName) + populate(objectMap, "description", a.Description) + objectMap["endpointType"] = EndpointTypeAzureStorageBlobContainer + populate(objectMap, "provisioningState", a.ProvisioningState) + populate(objectMap, "storageAccountResourceId", a.StorageAccountResourceID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type AzureStorageBlobContainerEndpointProperties. +func (a *AzureStorageBlobContainerEndpointProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "blobContainerName": + err = unpopulate(val, "BlobContainerName", &a.BlobContainerName) + delete(rawMsg, key) + case "description": + err = unpopulate(val, "Description", &a.Description) + delete(rawMsg, key) + case "endpointType": + err = unpopulate(val, "EndpointType", &a.EndpointType) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &a.ProvisioningState) + delete(rawMsg, key) + case "storageAccountResourceId": + err = unpopulate(val, "StorageAccountResourceID", &a.StorageAccountResourceID) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", a, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type Endpoint. +func (e Endpoint) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", e.ID) + populate(objectMap, "name", e.Name) + populate(objectMap, "properties", e.Properties) + populate(objectMap, "systemData", e.SystemData) + populate(objectMap, "type", e.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Endpoint. +func (e *Endpoint) 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 "id": + err = unpopulate(val, "ID", &e.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &e.Name) + delete(rawMsg, key) + case "properties": + e.Properties, err = unmarshalEndpointBasePropertiesClassification(val) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &e.SystemData) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &e.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", e, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type EndpointBaseProperties. +func (e EndpointBaseProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "description", e.Description) + objectMap["endpointType"] = e.EndpointType + populate(objectMap, "provisioningState", e.ProvisioningState) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type EndpointBaseProperties. +func (e *EndpointBaseProperties) 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 "description": + err = unpopulate(val, "Description", &e.Description) + delete(rawMsg, key) + case "endpointType": + err = unpopulate(val, "EndpointType", &e.EndpointType) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &e.ProvisioningState) + 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 EndpointBaseUpdateParameters. +func (e EndpointBaseUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "properties", e.Properties) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type EndpointBaseUpdateParameters. +func (e *EndpointBaseUpdateParameters) 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 "properties": + err = unpopulate(val, "Properties", &e.Properties) + 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 EndpointBaseUpdateProperties. +func (e EndpointBaseUpdateProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "description", e.Description) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type EndpointBaseUpdateProperties. +func (e *EndpointBaseUpdateProperties) 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 "description": + err = unpopulate(val, "Description", &e.Description) + 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 EndpointList. +func (e EndpointList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", e.NextLink) + populate(objectMap, "value", e.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type EndpointList. +func (e *EndpointList) 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 "nextLink": + err = unpopulate(val, "NextLink", &e.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &e.Value) + 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 JobDefinition. +func (j JobDefinition) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", j.ID) + populate(objectMap, "name", j.Name) + populate(objectMap, "properties", j.Properties) + populate(objectMap, "systemData", j.SystemData) + populate(objectMap, "type", j.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type JobDefinition. +func (j *JobDefinition) 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", j, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &j.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &j.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &j.Properties) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &j.SystemData) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &j.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", j, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type JobDefinitionList. +func (j JobDefinitionList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", j.NextLink) + populate(objectMap, "value", j.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type JobDefinitionList. +func (j *JobDefinitionList) 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", j, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &j.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &j.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", j, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type JobDefinitionProperties. +func (j JobDefinitionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "agentName", j.AgentName) + populate(objectMap, "agentResourceId", j.AgentResourceID) + populate(objectMap, "copyMode", j.CopyMode) + populate(objectMap, "description", j.Description) + populate(objectMap, "latestJobRunName", j.LatestJobRunName) + populate(objectMap, "latestJobRunResourceId", j.LatestJobRunResourceID) + populate(objectMap, "latestJobRunStatus", j.LatestJobRunStatus) + populate(objectMap, "provisioningState", j.ProvisioningState) + populate(objectMap, "sourceName", j.SourceName) + populate(objectMap, "sourceResourceId", j.SourceResourceID) + populate(objectMap, "sourceSubpath", j.SourceSubpath) + populate(objectMap, "targetName", j.TargetName) + populate(objectMap, "targetResourceId", j.TargetResourceID) + populate(objectMap, "targetSubpath", j.TargetSubpath) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type JobDefinitionProperties. +func (j *JobDefinitionProperties) 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", j, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "agentName": + err = unpopulate(val, "AgentName", &j.AgentName) + delete(rawMsg, key) + case "agentResourceId": + err = unpopulate(val, "AgentResourceID", &j.AgentResourceID) + delete(rawMsg, key) + case "copyMode": + err = unpopulate(val, "CopyMode", &j.CopyMode) + delete(rawMsg, key) + case "description": + err = unpopulate(val, "Description", &j.Description) + delete(rawMsg, key) + case "latestJobRunName": + err = unpopulate(val, "LatestJobRunName", &j.LatestJobRunName) + delete(rawMsg, key) + case "latestJobRunResourceId": + err = unpopulate(val, "LatestJobRunResourceID", &j.LatestJobRunResourceID) + delete(rawMsg, key) + case "latestJobRunStatus": + err = unpopulate(val, "LatestJobRunStatus", &j.LatestJobRunStatus) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &j.ProvisioningState) + delete(rawMsg, key) + case "sourceName": + err = unpopulate(val, "SourceName", &j.SourceName) + delete(rawMsg, key) + case "sourceResourceId": + err = unpopulate(val, "SourceResourceID", &j.SourceResourceID) + delete(rawMsg, key) + case "sourceSubpath": + err = unpopulate(val, "SourceSubpath", &j.SourceSubpath) + delete(rawMsg, key) + case "targetName": + err = unpopulate(val, "TargetName", &j.TargetName) + delete(rawMsg, key) + case "targetResourceId": + err = unpopulate(val, "TargetResourceID", &j.TargetResourceID) + delete(rawMsg, key) + case "targetSubpath": + err = unpopulate(val, "TargetSubpath", &j.TargetSubpath) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", j, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type JobDefinitionUpdateParameters. +func (j JobDefinitionUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "properties", j.Properties) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type JobDefinitionUpdateParameters. +func (j *JobDefinitionUpdateParameters) 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", j, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "properties": + err = unpopulate(val, "Properties", &j.Properties) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", j, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type JobDefinitionUpdateProperties. +func (j JobDefinitionUpdateProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "agentName", j.AgentName) + populate(objectMap, "copyMode", j.CopyMode) + populate(objectMap, "description", j.Description) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type JobDefinitionUpdateProperties. +func (j *JobDefinitionUpdateProperties) 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", j, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "agentName": + err = unpopulate(val, "AgentName", &j.AgentName) + delete(rawMsg, key) + case "copyMode": + err = unpopulate(val, "CopyMode", &j.CopyMode) + delete(rawMsg, key) + case "description": + err = unpopulate(val, "Description", &j.Description) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", j, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type JobRun. +func (j JobRun) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", j.ID) + populate(objectMap, "name", j.Name) + populate(objectMap, "properties", j.Properties) + populate(objectMap, "systemData", j.SystemData) + populate(objectMap, "type", j.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type JobRun. +func (j *JobRun) 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", j, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &j.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &j.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &j.Properties) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &j.SystemData) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &j.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", j, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type JobRunError. +func (j JobRunError) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "code", j.Code) + populate(objectMap, "message", j.Message) + populate(objectMap, "target", j.Target) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type JobRunError. +func (j *JobRunError) 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", j, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "code": + err = unpopulate(val, "Code", &j.Code) + delete(rawMsg, key) + case "message": + err = unpopulate(val, "Message", &j.Message) + delete(rawMsg, key) + case "target": + err = unpopulate(val, "Target", &j.Target) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", j, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type JobRunList. +func (j JobRunList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", j.NextLink) + populate(objectMap, "value", j.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type JobRunList. +func (j *JobRunList) 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", j, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &j.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &j.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", j, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type JobRunProperties. +func (j JobRunProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "agentName", j.AgentName) + populate(objectMap, "agentResourceId", j.AgentResourceID) + populate(objectMap, "bytesExcluded", j.BytesExcluded) + populate(objectMap, "bytesFailed", j.BytesFailed) + populate(objectMap, "bytesNoTransferNeeded", j.BytesNoTransferNeeded) + populate(objectMap, "bytesScanned", j.BytesScanned) + populate(objectMap, "bytesTransferred", j.BytesTransferred) + populate(objectMap, "bytesUnsupported", j.BytesUnsupported) + populate(objectMap, "error", j.Error) + populateTimeRFC3339(objectMap, "executionEndTime", j.ExecutionEndTime) + populateTimeRFC3339(objectMap, "executionStartTime", j.ExecutionStartTime) + populate(objectMap, "itemsExcluded", j.ItemsExcluded) + populate(objectMap, "itemsFailed", j.ItemsFailed) + populate(objectMap, "itemsNoTransferNeeded", j.ItemsNoTransferNeeded) + populate(objectMap, "itemsScanned", j.ItemsScanned) + populate(objectMap, "itemsTransferred", j.ItemsTransferred) + populate(objectMap, "itemsUnsupported", j.ItemsUnsupported) + populate(objectMap, "jobDefinitionProperties", &j.JobDefinitionProperties) + populateTimeRFC3339(objectMap, "lastStatusUpdate", j.LastStatusUpdate) + populate(objectMap, "provisioningState", j.ProvisioningState) + populate(objectMap, "scanStatus", j.ScanStatus) + populate(objectMap, "sourceName", j.SourceName) + populate(objectMap, "sourceProperties", &j.SourceProperties) + populate(objectMap, "sourceResourceId", j.SourceResourceID) + populate(objectMap, "status", j.Status) + populate(objectMap, "targetName", j.TargetName) + populate(objectMap, "targetProperties", &j.TargetProperties) + populate(objectMap, "targetResourceId", j.TargetResourceID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type JobRunProperties. +func (j *JobRunProperties) 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", j, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "agentName": + err = unpopulate(val, "AgentName", &j.AgentName) + delete(rawMsg, key) + case "agentResourceId": + err = unpopulate(val, "AgentResourceID", &j.AgentResourceID) + delete(rawMsg, key) + case "bytesExcluded": + err = unpopulate(val, "BytesExcluded", &j.BytesExcluded) + delete(rawMsg, key) + case "bytesFailed": + err = unpopulate(val, "BytesFailed", &j.BytesFailed) + delete(rawMsg, key) + case "bytesNoTransferNeeded": + err = unpopulate(val, "BytesNoTransferNeeded", &j.BytesNoTransferNeeded) + delete(rawMsg, key) + case "bytesScanned": + err = unpopulate(val, "BytesScanned", &j.BytesScanned) + delete(rawMsg, key) + case "bytesTransferred": + err = unpopulate(val, "BytesTransferred", &j.BytesTransferred) + delete(rawMsg, key) + case "bytesUnsupported": + err = unpopulate(val, "BytesUnsupported", &j.BytesUnsupported) + delete(rawMsg, key) + case "error": + err = unpopulate(val, "Error", &j.Error) + delete(rawMsg, key) + case "executionEndTime": + err = unpopulateTimeRFC3339(val, "ExecutionEndTime", &j.ExecutionEndTime) + delete(rawMsg, key) + case "executionStartTime": + err = unpopulateTimeRFC3339(val, "ExecutionStartTime", &j.ExecutionStartTime) + delete(rawMsg, key) + case "itemsExcluded": + err = unpopulate(val, "ItemsExcluded", &j.ItemsExcluded) + delete(rawMsg, key) + case "itemsFailed": + err = unpopulate(val, "ItemsFailed", &j.ItemsFailed) + delete(rawMsg, key) + case "itemsNoTransferNeeded": + err = unpopulate(val, "ItemsNoTransferNeeded", &j.ItemsNoTransferNeeded) + delete(rawMsg, key) + case "itemsScanned": + err = unpopulate(val, "ItemsScanned", &j.ItemsScanned) + delete(rawMsg, key) + case "itemsTransferred": + err = unpopulate(val, "ItemsTransferred", &j.ItemsTransferred) + delete(rawMsg, key) + case "itemsUnsupported": + err = unpopulate(val, "ItemsUnsupported", &j.ItemsUnsupported) + delete(rawMsg, key) + case "jobDefinitionProperties": + err = unpopulate(val, "JobDefinitionProperties", &j.JobDefinitionProperties) + delete(rawMsg, key) + case "lastStatusUpdate": + err = unpopulateTimeRFC3339(val, "LastStatusUpdate", &j.LastStatusUpdate) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &j.ProvisioningState) + delete(rawMsg, key) + case "scanStatus": + err = unpopulate(val, "ScanStatus", &j.ScanStatus) + delete(rawMsg, key) + case "sourceName": + err = unpopulate(val, "SourceName", &j.SourceName) + delete(rawMsg, key) + case "sourceProperties": + err = unpopulate(val, "SourceProperties", &j.SourceProperties) + delete(rawMsg, key) + case "sourceResourceId": + err = unpopulate(val, "SourceResourceID", &j.SourceResourceID) + delete(rawMsg, key) + case "status": + err = unpopulate(val, "Status", &j.Status) + delete(rawMsg, key) + case "targetName": + err = unpopulate(val, "TargetName", &j.TargetName) + delete(rawMsg, key) + case "targetProperties": + err = unpopulate(val, "TargetProperties", &j.TargetProperties) + delete(rawMsg, key) + case "targetResourceId": + err = unpopulate(val, "TargetResourceID", &j.TargetResourceID) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", j, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type JobRunResourceID. +func (j JobRunResourceID) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "jobRunResourceId", j.JobRunResourceID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type JobRunResourceID. +func (j *JobRunResourceID) 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", j, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "jobRunResourceId": + err = unpopulate(val, "JobRunResourceID", &j.JobRunResourceID) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", j, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type List. +func (l List) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", l.NextLink) + populate(objectMap, "value", l.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type List. +func (l *List) 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", l, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &l.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &l.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", l, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type NfsMountEndpointProperties. +func (n NfsMountEndpointProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "description", n.Description) + objectMap["endpointType"] = EndpointTypeNfsMount + populate(objectMap, "export", n.Export) + populate(objectMap, "host", n.Host) + populate(objectMap, "nfsVersion", n.NfsVersion) + populate(objectMap, "provisioningState", n.ProvisioningState) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type NfsMountEndpointProperties. +func (n *NfsMountEndpointProperties) 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", n, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "description": + err = unpopulate(val, "Description", &n.Description) + delete(rawMsg, key) + case "endpointType": + err = unpopulate(val, "EndpointType", &n.EndpointType) + delete(rawMsg, key) + case "export": + err = unpopulate(val, "Export", &n.Export) + delete(rawMsg, key) + case "host": + err = unpopulate(val, "Host", &n.Host) + delete(rawMsg, key) + case "nfsVersion": + err = unpopulate(val, "NfsVersion", &n.NfsVersion) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &n.ProvisioningState) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", n, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type Operation. +func (o Operation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "actionType", o.ActionType) + populate(objectMap, "display", o.Display) + populate(objectMap, "isDataAction", o.IsDataAction) + populate(objectMap, "name", o.Name) + populate(objectMap, "origin", o.Origin) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Operation. +func (o *Operation) 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", o, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "actionType": + err = unpopulate(val, "ActionType", &o.ActionType) + delete(rawMsg, key) + case "display": + err = unpopulate(val, "Display", &o.Display) + delete(rawMsg, key) + case "isDataAction": + err = unpopulate(val, "IsDataAction", &o.IsDataAction) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &o.Name) + delete(rawMsg, key) + case "origin": + err = unpopulate(val, "Origin", &o.Origin) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", o, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "description", o.Description) + populate(objectMap, "operation", o.Operation) + populate(objectMap, "provider", o.Provider) + populate(objectMap, "resource", o.Resource) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type OperationDisplay. +func (o *OperationDisplay) 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", o, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "description": + err = unpopulate(val, "Description", &o.Description) + delete(rawMsg, key) + case "operation": + err = unpopulate(val, "Operation", &o.Operation) + delete(rawMsg, key) + case "provider": + err = unpopulate(val, "Provider", &o.Provider) + delete(rawMsg, key) + case "resource": + err = unpopulate(val, "Resource", &o.Resource) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", o, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type OperationListResult. +func (o OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", o.NextLink) + populate(objectMap, "value", o.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type OperationListResult. +func (o *OperationListResult) 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", o, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &o.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &o.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", o, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type Project. +func (p Project) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", p.ID) + populate(objectMap, "name", p.Name) + populate(objectMap, "properties", p.Properties) + populate(objectMap, "systemData", p.SystemData) + populate(objectMap, "type", p.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Project. +func (p *Project) 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", p, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &p.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &p.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &p.Properties) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &p.SystemData) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &p.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", p, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ProjectList. +func (p ProjectList) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", p.NextLink) + populate(objectMap, "value", p.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ProjectList. +func (p *ProjectList) 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", p, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &p.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &p.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", p, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ProjectProperties. +func (p ProjectProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "description", p.Description) + populate(objectMap, "provisioningState", p.ProvisioningState) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ProjectProperties. +func (p *ProjectProperties) 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", p, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "description": + err = unpopulate(val, "Description", &p.Description) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &p.ProvisioningState) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", p, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ProjectUpdateParameters. +func (p ProjectUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "properties", p.Properties) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ProjectUpdateParameters. +func (p *ProjectUpdateParameters) 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", p, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "properties": + err = unpopulate(val, "Properties", &p.Properties) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", p, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ProjectUpdateProperties. +func (p ProjectUpdateProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "description", p.Description) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ProjectUpdateProperties. +func (p *ProjectUpdateProperties) 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", p, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "description": + err = unpopulate(val, "Description", &p.Description) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", p, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type Properties. +func (p Properties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "description", p.Description) + populate(objectMap, "provisioningState", p.ProvisioningState) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Properties. +func (p *Properties) 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", p, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "description": + err = unpopulate(val, "Description", &p.Description) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &p.ProvisioningState) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", p, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type StorageMover. +func (s StorageMover) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", s.ID) + populate(objectMap, "location", s.Location) + populate(objectMap, "name", s.Name) + populate(objectMap, "properties", s.Properties) + populate(objectMap, "systemData", s.SystemData) + populate(objectMap, "tags", s.Tags) + populate(objectMap, "type", s.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type StorageMover. +func (s *StorageMover) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &s.ID) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &s.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &s.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &s.Properties) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &s.SystemData) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &s.Tags) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &s.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SystemData. +func (s SystemData) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateTimeRFC3339(objectMap, "createdAt", s.CreatedAt) + populate(objectMap, "createdBy", s.CreatedBy) + populate(objectMap, "createdByType", s.CreatedByType) + populateTimeRFC3339(objectMap, "lastModifiedAt", s.LastModifiedAt) + populate(objectMap, "lastModifiedBy", s.LastModifiedBy) + populate(objectMap, "lastModifiedByType", s.LastModifiedByType) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SystemData. +func (s *SystemData) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "createdAt": + err = unpopulateTimeRFC3339(val, "CreatedAt", &s.CreatedAt) + delete(rawMsg, key) + case "createdBy": + err = unpopulate(val, "CreatedBy", &s.CreatedBy) + delete(rawMsg, key) + case "createdByType": + err = unpopulate(val, "CreatedByType", &s.CreatedByType) + delete(rawMsg, key) + case "lastModifiedAt": + err = unpopulateTimeRFC3339(val, "LastModifiedAt", &s.LastModifiedAt) + delete(rawMsg, key) + case "lastModifiedBy": + err = unpopulate(val, "LastModifiedBy", &s.LastModifiedBy) + delete(rawMsg, key) + case "lastModifiedByType": + err = unpopulate(val, "LastModifiedByType", &s.LastModifiedByType) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type UpdateParameters. +func (u UpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "properties", u.Properties) + populate(objectMap, "tags", u.Tags) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type UpdateParameters. +func (u *UpdateParameters) 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 "properties": + err = unpopulate(val, "Properties", &u.Properties) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &u.Tags) + 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 UpdateProperties. +func (u UpdateProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "description", u.Description) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type UpdateProperties. +func (u *UpdateProperties) 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 "description": + err = unpopulate(val, "Description", &u.Description) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", u, err) + } + } + return nil +} + +func populate(m map[string]any, k string, v any) { + if v == nil { + return + } else if azcore.IsNullValue(v) { + m[k] = nil + } else if !reflect.ValueOf(v).IsNil() { + m[k] = v + } +} + +func unpopulate(data json.RawMessage, fn string, v any) error { + if data == nil { + return nil + } + if err := json.Unmarshal(data, v); err != nil { + return fmt.Errorf("struct field %s: %v", fn, err) + } + return nil +} diff --git a/sdk/resourcemanager/storagemover/armstoragemover/operations_client.go b/sdk/resourcemanager/storagemover/armstoragemover/operations_client.go new file mode 100644 index 000000000000..c61964df5a4f --- /dev/null +++ b/sdk/resourcemanager/storagemover/armstoragemover/operations_client.go @@ -0,0 +1,105 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armstoragemover + +import ( + "context" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "net/http" +) + +// OperationsClient contains the methods for the Operations group. +// Don't use this type directly, use NewOperationsClient() instead. +type OperationsClient struct { + host string + pl runtime.Pipeline +} + +// NewOperationsClient creates a new instance of OperationsClient with the specified values. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. +func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*OperationsClient, error) { + if options == nil { + options = &arm.ClientOptions{} + } + ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err + } + client := &OperationsClient{ + host: ep, + pl: pl, + } + return client, nil +} + +// NewListPager - Lists all the supported operations for the Azure Storage Mover REST API. +// +// Generated from API version 2022-07-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]{ + More: func(page OperationsClientListResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 + }, + Fetcher: func(ctx context.Context, page *OperationsClientListResponse) (OperationsClientListResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listCreateRequest(ctx, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return OperationsClientListResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return OperationsClientListResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return OperationsClientListResponse{}, runtime.NewResponseError(resp) + } + return client.listHandleResponse(resp) + }, + }) +} + +// listCreateRequest creates the List request. +func (client *OperationsClient) listCreateRequest(ctx context.Context, options *OperationsClientListOptions) (*policy.Request, error) { + urlPath := "/providers/Microsoft.StorageMover/operations" + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-07-01-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listHandleResponse handles the List response. +func (client *OperationsClient) listHandleResponse(resp *http.Response) (OperationsClientListResponse, error) { + result := OperationsClientListResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.OperationListResult); err != nil { + return OperationsClientListResponse{}, err + } + return result, nil +} diff --git a/sdk/resourcemanager/storagemover/armstoragemover/operations_client_example_test.go b/sdk/resourcemanager/storagemover/armstoragemover/operations_client_example_test.go new file mode 100644 index 000000000000..bccd61a46fe6 --- /dev/null +++ b/sdk/resourcemanager/storagemover/armstoragemover/operations_client_example_test.go @@ -0,0 +1,76 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armstoragemover_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storagemover/armstoragemover" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3d7a3848106b831a4a7f46976fe38aa605c4f44d/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/Operations_List.json +func ExampleOperationsClient_NewListPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armstoragemover.NewOperationsClient(cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListPager(nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.OperationListResult = armstoragemover.OperationListResult{ + // Value: []*armstoragemover.Operation{ + // { + // Name: to.Ptr("Microsoft.StorageMover/storageMovers/read"), + // Display: &armstoragemover.OperationDisplay{ + // Description: to.Ptr("Gets or Lists existing StorageMover resource(s)."), + // Operation: to.Ptr("Get or List StorageMover resource(s)."), + // Provider: to.Ptr("Microsoft StorageMover"), + // Resource: to.Ptr("StorageMovers"), + // }, + // IsDataAction: to.Ptr(false), + // }, + // { + // Name: to.Ptr("Microsoft.StorageMover/storageMovers/write"), + // Display: &armstoragemover.OperationDisplay{ + // Description: to.Ptr("Creates or Updates StorageMover resource."), + // Operation: to.Ptr("Create or Update StorageMover resource."), + // Provider: to.Ptr("Microsoft StorageMover"), + // Resource: to.Ptr("StorageMovers"), + // }, + // IsDataAction: to.Ptr(false), + // }, + // { + // Name: to.Ptr("Microsoft.StorageMover/storageMovers/delete"), + // Display: &armstoragemover.OperationDisplay{ + // Description: to.Ptr("Deletes StorageMover resource."), + // Operation: to.Ptr("Delete StorageMover resource."), + // Provider: to.Ptr("Microsoft StorageMover"), + // Resource: to.Ptr("StorageMovers"), + // }, + // IsDataAction: to.Ptr(false), + // }}, + // } + } +} diff --git a/sdk/resourcemanager/storagemover/armstoragemover/polymorphic_helpers.go b/sdk/resourcemanager/storagemover/armstoragemover/polymorphic_helpers.go new file mode 100644 index 000000000000..f7805272493b --- /dev/null +++ b/sdk/resourcemanager/storagemover/armstoragemover/polymorphic_helpers.go @@ -0,0 +1,32 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armstoragemover + +import "encoding/json" + +func unmarshalEndpointBasePropertiesClassification(rawMsg json.RawMessage) (EndpointBasePropertiesClassification, error) { + if rawMsg == nil { + return nil, nil + } + var m map[string]any + if err := json.Unmarshal(rawMsg, &m); err != nil { + return nil, err + } + var b EndpointBasePropertiesClassification + switch m["endpointType"] { + case string(EndpointTypeAzureStorageBlobContainer): + b = &AzureStorageBlobContainerEndpointProperties{} + case string(EndpointTypeNfsMount): + b = &NfsMountEndpointProperties{} + default: + b = &EndpointBaseProperties{} + } + return b, json.Unmarshal(rawMsg, b) +} diff --git a/sdk/resourcemanager/storagemover/armstoragemover/projects_client.go b/sdk/resourcemanager/storagemover/armstoragemover/projects_client.go new file mode 100644 index 000000000000..e0f3e6f2f5c9 --- /dev/null +++ b/sdk/resourcemanager/storagemover/armstoragemover/projects_client.go @@ -0,0 +1,382 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armstoragemover + +import ( + "context" + "errors" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "net/http" + "net/url" + "strings" +) + +// ProjectsClient contains the methods for the Projects group. +// Don't use this type directly, use NewProjectsClient() instead. +type ProjectsClient struct { + host string + subscriptionID string + pl runtime.Pipeline +} + +// NewProjectsClient creates a new instance of ProjectsClient with the specified values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. +func NewProjectsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ProjectsClient, error) { + if options == nil { + options = &arm.ClientOptions{} + } + ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err + } + client := &ProjectsClient{ + subscriptionID: subscriptionID, + host: ep, + pl: pl, + } + return client, nil +} + +// CreateOrUpdate - Creates or updates a Project resource, which is a logical grouping of related jobs. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-07-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - storageMoverName - The name of the Storage Mover resource. +// - projectName - The name of the Project resource. +// - options - ProjectsClientCreateOrUpdateOptions contains the optional parameters for the ProjectsClient.CreateOrUpdate method. +func (client *ProjectsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, storageMoverName string, projectName string, project Project, options *ProjectsClientCreateOrUpdateOptions) (ProjectsClientCreateOrUpdateResponse, error) { + req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, storageMoverName, projectName, project, options) + if err != nil { + return ProjectsClientCreateOrUpdateResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return ProjectsClientCreateOrUpdateResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return ProjectsClientCreateOrUpdateResponse{}, runtime.NewResponseError(resp) + } + return client.createOrUpdateHandleResponse(resp) +} + +// createOrUpdateCreateRequest creates the CreateOrUpdate request. +func (client *ProjectsClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, storageMoverName string, projectName string, project Project, options *ProjectsClientCreateOrUpdateOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if storageMoverName == "" { + return nil, errors.New("parameter storageMoverName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{storageMoverName}", url.PathEscape(storageMoverName)) + if projectName == "" { + return nil, errors.New("parameter projectName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{projectName}", url.PathEscape(projectName)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-07-01-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, runtime.MarshalAsJSON(req, project) +} + +// createOrUpdateHandleResponse handles the CreateOrUpdate response. +func (client *ProjectsClient) createOrUpdateHandleResponse(resp *http.Response) (ProjectsClientCreateOrUpdateResponse, error) { + result := ProjectsClientCreateOrUpdateResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.Project); err != nil { + return ProjectsClientCreateOrUpdateResponse{}, err + } + return result, nil +} + +// BeginDelete - Deletes a Project resource. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-07-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - storageMoverName - The name of the Storage Mover resource. +// - projectName - The name of the Project resource. +// - options - ProjectsClientBeginDeleteOptions contains the optional parameters for the ProjectsClient.BeginDelete method. +func (client *ProjectsClient) BeginDelete(ctx context.Context, resourceGroupName string, storageMoverName string, projectName string, options *ProjectsClientBeginDeleteOptions) (*runtime.Poller[ProjectsClientDeleteResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.deleteOperation(ctx, resourceGroupName, storageMoverName, projectName, options) + if err != nil { + return nil, err + } + return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[ProjectsClientDeleteResponse]{ + FinalStateVia: runtime.FinalStateViaLocation, + }) + } else { + return runtime.NewPollerFromResumeToken[ProjectsClientDeleteResponse](options.ResumeToken, client.pl, nil) + } +} + +// Delete - Deletes a Project resource. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-07-01-preview +func (client *ProjectsClient) deleteOperation(ctx context.Context, resourceGroupName string, storageMoverName string, projectName string, options *ProjectsClientBeginDeleteOptions) (*http.Response, error) { + req, err := client.deleteCreateRequest(ctx, resourceGroupName, storageMoverName, projectName, options) + if err != nil { + return nil, err + } + resp, err := client.pl.Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { + return nil, runtime.NewResponseError(resp) + } + return resp, nil +} + +// deleteCreateRequest creates the Delete request. +func (client *ProjectsClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, storageMoverName string, projectName string, options *ProjectsClientBeginDeleteOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if storageMoverName == "" { + return nil, errors.New("parameter storageMoverName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{storageMoverName}", url.PathEscape(storageMoverName)) + if projectName == "" { + return nil, errors.New("parameter projectName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{projectName}", url.PathEscape(projectName)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-07-01-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// Get - Gets a Project resource. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-07-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - storageMoverName - The name of the Storage Mover resource. +// - projectName - The name of the Project resource. +// - options - ProjectsClientGetOptions contains the optional parameters for the ProjectsClient.Get method. +func (client *ProjectsClient) Get(ctx context.Context, resourceGroupName string, storageMoverName string, projectName string, options *ProjectsClientGetOptions) (ProjectsClientGetResponse, error) { + req, err := client.getCreateRequest(ctx, resourceGroupName, storageMoverName, projectName, options) + if err != nil { + return ProjectsClientGetResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return ProjectsClientGetResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return ProjectsClientGetResponse{}, runtime.NewResponseError(resp) + } + return client.getHandleResponse(resp) +} + +// getCreateRequest creates the Get request. +func (client *ProjectsClient) getCreateRequest(ctx context.Context, resourceGroupName string, storageMoverName string, projectName string, options *ProjectsClientGetOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if storageMoverName == "" { + return nil, errors.New("parameter storageMoverName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{storageMoverName}", url.PathEscape(storageMoverName)) + if projectName == "" { + return nil, errors.New("parameter projectName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{projectName}", url.PathEscape(projectName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-07-01-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// getHandleResponse handles the Get response. +func (client *ProjectsClient) getHandleResponse(resp *http.Response) (ProjectsClientGetResponse, error) { + result := ProjectsClientGetResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.Project); err != nil { + return ProjectsClientGetResponse{}, err + } + return result, nil +} + +// NewListPager - Lists all Projects in a Storage Mover. +// +// Generated from API version 2022-07-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - storageMoverName - The name of the Storage Mover resource. +// - options - ProjectsClientListOptions contains the optional parameters for the ProjectsClient.NewListPager method. +func (client *ProjectsClient) NewListPager(resourceGroupName string, storageMoverName string, options *ProjectsClientListOptions) *runtime.Pager[ProjectsClientListResponse] { + return runtime.NewPager(runtime.PagingHandler[ProjectsClientListResponse]{ + More: func(page ProjectsClientListResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 + }, + Fetcher: func(ctx context.Context, page *ProjectsClientListResponse) (ProjectsClientListResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listCreateRequest(ctx, resourceGroupName, storageMoverName, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return ProjectsClientListResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return ProjectsClientListResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return ProjectsClientListResponse{}, runtime.NewResponseError(resp) + } + return client.listHandleResponse(resp) + }, + }) +} + +// listCreateRequest creates the List request. +func (client *ProjectsClient) listCreateRequest(ctx context.Context, resourceGroupName string, storageMoverName string, options *ProjectsClientListOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if storageMoverName == "" { + return nil, errors.New("parameter storageMoverName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{storageMoverName}", url.PathEscape(storageMoverName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-07-01-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listHandleResponse handles the List response. +func (client *ProjectsClient) listHandleResponse(resp *http.Response) (ProjectsClientListResponse, error) { + result := ProjectsClientListResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.ProjectList); err != nil { + return ProjectsClientListResponse{}, err + } + return result, nil +} + +// Update - Updates properties for a Project resource. Properties not specified in the request body will be unchanged. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-07-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - storageMoverName - The name of the Storage Mover resource. +// - projectName - The name of the Project resource. +// - options - ProjectsClientUpdateOptions contains the optional parameters for the ProjectsClient.Update method. +func (client *ProjectsClient) Update(ctx context.Context, resourceGroupName string, storageMoverName string, projectName string, project ProjectUpdateParameters, options *ProjectsClientUpdateOptions) (ProjectsClientUpdateResponse, error) { + req, err := client.updateCreateRequest(ctx, resourceGroupName, storageMoverName, projectName, project, options) + if err != nil { + return ProjectsClientUpdateResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return ProjectsClientUpdateResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return ProjectsClientUpdateResponse{}, runtime.NewResponseError(resp) + } + return client.updateHandleResponse(resp) +} + +// updateCreateRequest creates the Update request. +func (client *ProjectsClient) updateCreateRequest(ctx context.Context, resourceGroupName string, storageMoverName string, projectName string, project ProjectUpdateParameters, options *ProjectsClientUpdateOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}/projects/{projectName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if storageMoverName == "" { + return nil, errors.New("parameter storageMoverName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{storageMoverName}", url.PathEscape(storageMoverName)) + if projectName == "" { + return nil, errors.New("parameter projectName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{projectName}", url.PathEscape(projectName)) + req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-07-01-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, runtime.MarshalAsJSON(req, project) +} + +// updateHandleResponse handles the Update response. +func (client *ProjectsClient) updateHandleResponse(resp *http.Response) (ProjectsClientUpdateResponse, error) { + result := ProjectsClientUpdateResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.Project); err != nil { + return ProjectsClientUpdateResponse{}, err + } + return result, nil +} diff --git a/sdk/resourcemanager/storagemover/armstoragemover/projects_client_example_test.go b/sdk/resourcemanager/storagemover/armstoragemover/projects_client_example_test.go new file mode 100644 index 000000000000..a7519a23c381 --- /dev/null +++ b/sdk/resourcemanager/storagemover/armstoragemover/projects_client_example_test.go @@ -0,0 +1,184 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armstoragemover_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storagemover/armstoragemover" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3d7a3848106b831a4a7f46976fe38aa605c4f44d/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/Projects_List.json +func ExampleProjectsClient_NewListPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armstoragemover.NewProjectsClient("11111111-2222-3333-4444-555555555555", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListPager("examples-rg", "examples-storageMoverName", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.ProjectList = armstoragemover.ProjectList{ + // Value: []*armstoragemover.Project{ + // { + // Name: to.Ptr("examples-projectName1"), + // Type: to.Ptr("Microsoft.StorageMover/storageMovers/projects"), + // ID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/projects/examples-projectName1"), + // Properties: &armstoragemover.ProjectProperties{ + // Description: to.Ptr("Example Project 1 Description"), + // }, + // }, + // { + // Name: to.Ptr("examples-projectName2"), + // Type: to.Ptr("Microsoft.StorageMover/storageMovers/projects"), + // ID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/projects/examples-projectName2"), + // Properties: &armstoragemover.ProjectProperties{ + // Description: to.Ptr("Example Project 2 Description"), + // }, + // }, + // { + // Name: to.Ptr("examples-projectName3"), + // Type: to.Ptr("Microsoft.StorageMover/storageMovers/projects"), + // ID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/projects/examples-projectName2"), + // Properties: &armstoragemover.ProjectProperties{ + // Description: to.Ptr("Example Project 3 Description"), + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3d7a3848106b831a4a7f46976fe38aa605c4f44d/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/Projects_Get.json +func ExampleProjectsClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armstoragemover.NewProjectsClient("11111111-2222-3333-4444-555555555555", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "examples-rg", "examples-storageMoverName", "examples-projectName", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.Project = armstoragemover.Project{ + // Name: to.Ptr("examples-projectName"), + // Type: to.Ptr("Microsoft.StorageMover/storageMovers/projects"), + // ID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/projects/examples-projectName"), + // Properties: &armstoragemover.ProjectProperties{ + // Description: to.Ptr("Example Project Description"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3d7a3848106b831a4a7f46976fe38aa605c4f44d/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/Projects_CreateOrUpdate.json +func ExampleProjectsClient_CreateOrUpdate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armstoragemover.NewProjectsClient("11111111-2222-3333-4444-555555555555", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.CreateOrUpdate(ctx, "examples-rg", "examples-storageMoverName", "examples-projectName", armstoragemover.Project{ + Properties: &armstoragemover.ProjectProperties{ + Description: to.Ptr("Example Project Description"), + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.Project = armstoragemover.Project{ + // Name: to.Ptr("examples-projectName"), + // Type: to.Ptr("Microsoft.StorageMover/storageMovers/projects"), + // ID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/agents/examples-projectName"), + // Properties: &armstoragemover.ProjectProperties{ + // Description: to.Ptr("Example Project Description"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3d7a3848106b831a4a7f46976fe38aa605c4f44d/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/Projects_Update.json +func ExampleProjectsClient_Update() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armstoragemover.NewProjectsClient("11111111-2222-3333-4444-555555555555", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Update(ctx, "examples-rg", "examples-storageMoverName", "examples-projectName", armstoragemover.ProjectUpdateParameters{ + Properties: &armstoragemover.ProjectUpdateProperties{ + Description: to.Ptr("Example Project Description"), + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.Project = armstoragemover.Project{ + // Name: to.Ptr("examples-projectName"), + // Type: to.Ptr("Microsoft.StorageMover/storageMovers/projectName"), + // ID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName/agents/examples-projectName"), + // Properties: &armstoragemover.ProjectProperties{ + // Description: to.Ptr("Example Project Description"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3d7a3848106b831a4a7f46976fe38aa605c4f44d/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/Projects_Delete.json +func ExampleProjectsClient_BeginDelete() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armstoragemover.NewProjectsClient("11111111-2222-3333-4444-555555555555", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginDelete(ctx, "examples-rg", "examples-storageMoverName", "examples-projectName", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + _, err = poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } +} diff --git a/sdk/resourcemanager/storagemover/armstoragemover/response_types.go b/sdk/resourcemanager/storagemover/armstoragemover/response_types.go new file mode 100644 index 000000000000..0218cca97315 --- /dev/null +++ b/sdk/resourcemanager/storagemover/armstoragemover/response_types.go @@ -0,0 +1,165 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armstoragemover + +// AgentsClientCreateOrUpdateResponse contains the response from method AgentsClient.CreateOrUpdate. +type AgentsClientCreateOrUpdateResponse struct { + Agent +} + +// AgentsClientDeleteResponse contains the response from method AgentsClient.BeginDelete. +type AgentsClientDeleteResponse struct { + // placeholder for future response values +} + +// AgentsClientGetResponse contains the response from method AgentsClient.Get. +type AgentsClientGetResponse struct { + Agent +} + +// AgentsClientListResponse contains the response from method AgentsClient.NewListPager. +type AgentsClientListResponse struct { + AgentList +} + +// AgentsClientUpdateResponse contains the response from method AgentsClient.Update. +type AgentsClientUpdateResponse struct { + Agent +} + +// EndpointsClientCreateOrUpdateResponse contains the response from method EndpointsClient.CreateOrUpdate. +type EndpointsClientCreateOrUpdateResponse struct { + Endpoint +} + +// EndpointsClientDeleteResponse contains the response from method EndpointsClient.BeginDelete. +type EndpointsClientDeleteResponse struct { + // placeholder for future response values +} + +// EndpointsClientGetResponse contains the response from method EndpointsClient.Get. +type EndpointsClientGetResponse struct { + Endpoint +} + +// EndpointsClientListResponse contains the response from method EndpointsClient.NewListPager. +type EndpointsClientListResponse struct { + EndpointList +} + +// EndpointsClientUpdateResponse contains the response from method EndpointsClient.Update. +type EndpointsClientUpdateResponse struct { + Endpoint +} + +// JobDefinitionsClientCreateOrUpdateResponse contains the response from method JobDefinitionsClient.CreateOrUpdate. +type JobDefinitionsClientCreateOrUpdateResponse struct { + JobDefinition +} + +// JobDefinitionsClientDeleteResponse contains the response from method JobDefinitionsClient.BeginDelete. +type JobDefinitionsClientDeleteResponse struct { + // placeholder for future response values +} + +// JobDefinitionsClientGetResponse contains the response from method JobDefinitionsClient.Get. +type JobDefinitionsClientGetResponse struct { + JobDefinition +} + +// JobDefinitionsClientListResponse contains the response from method JobDefinitionsClient.NewListPager. +type JobDefinitionsClientListResponse struct { + JobDefinitionList +} + +// JobDefinitionsClientStartJobResponse contains the response from method JobDefinitionsClient.StartJob. +type JobDefinitionsClientStartJobResponse struct { + JobRunResourceID +} + +// JobDefinitionsClientStopJobResponse contains the response from method JobDefinitionsClient.StopJob. +type JobDefinitionsClientStopJobResponse struct { + JobRunResourceID +} + +// JobDefinitionsClientUpdateResponse contains the response from method JobDefinitionsClient.Update. +type JobDefinitionsClientUpdateResponse struct { + JobDefinition +} + +// JobRunsClientGetResponse contains the response from method JobRunsClient.Get. +type JobRunsClientGetResponse struct { + JobRun +} + +// JobRunsClientListResponse contains the response from method JobRunsClient.NewListPager. +type JobRunsClientListResponse struct { + JobRunList +} + +// OperationsClientListResponse contains the response from method OperationsClient.NewListPager. +type OperationsClientListResponse struct { + OperationListResult +} + +// ProjectsClientCreateOrUpdateResponse contains the response from method ProjectsClient.CreateOrUpdate. +type ProjectsClientCreateOrUpdateResponse struct { + Project +} + +// ProjectsClientDeleteResponse contains the response from method ProjectsClient.BeginDelete. +type ProjectsClientDeleteResponse struct { + // placeholder for future response values +} + +// ProjectsClientGetResponse contains the response from method ProjectsClient.Get. +type ProjectsClientGetResponse struct { + Project +} + +// ProjectsClientListResponse contains the response from method ProjectsClient.NewListPager. +type ProjectsClientListResponse struct { + ProjectList +} + +// ProjectsClientUpdateResponse contains the response from method ProjectsClient.Update. +type ProjectsClientUpdateResponse struct { + Project +} + +// StorageMoversClientCreateOrUpdateResponse contains the response from method StorageMoversClient.CreateOrUpdate. +type StorageMoversClientCreateOrUpdateResponse struct { + StorageMover +} + +// StorageMoversClientDeleteResponse contains the response from method StorageMoversClient.BeginDelete. +type StorageMoversClientDeleteResponse struct { + // placeholder for future response values +} + +// StorageMoversClientGetResponse contains the response from method StorageMoversClient.Get. +type StorageMoversClientGetResponse struct { + StorageMover +} + +// StorageMoversClientListBySubscriptionResponse contains the response from method StorageMoversClient.NewListBySubscriptionPager. +type StorageMoversClientListBySubscriptionResponse struct { + List +} + +// StorageMoversClientListResponse contains the response from method StorageMoversClient.NewListPager. +type StorageMoversClientListResponse struct { + List +} + +// StorageMoversClientUpdateResponse contains the response from method StorageMoversClient.Update. +type StorageMoversClientUpdateResponse struct { + StorageMover +} diff --git a/sdk/resourcemanager/storagemover/armstoragemover/storagemovers_client.go b/sdk/resourcemanager/storagemover/armstoragemover/storagemovers_client.go new file mode 100644 index 000000000000..978b5ce469f3 --- /dev/null +++ b/sdk/resourcemanager/storagemover/armstoragemover/storagemovers_client.go @@ -0,0 +1,419 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armstoragemover + +import ( + "context" + "errors" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "net/http" + "net/url" + "strings" +) + +// StorageMoversClient contains the methods for the StorageMovers group. +// Don't use this type directly, use NewStorageMoversClient() instead. +type StorageMoversClient struct { + host string + subscriptionID string + pl runtime.Pipeline +} + +// NewStorageMoversClient creates a new instance of StorageMoversClient with the specified values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. +func NewStorageMoversClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*StorageMoversClient, error) { + if options == nil { + options = &arm.ClientOptions{} + } + ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err + } + client := &StorageMoversClient{ + subscriptionID: subscriptionID, + host: ep, + pl: pl, + } + return client, nil +} + +// CreateOrUpdate - Creates or updates a top-level Storage Mover resource. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-07-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - storageMoverName - The name of the Storage Mover resource. +// - options - StorageMoversClientCreateOrUpdateOptions contains the optional parameters for the StorageMoversClient.CreateOrUpdate +// method. +func (client *StorageMoversClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, storageMoverName string, storageMover StorageMover, options *StorageMoversClientCreateOrUpdateOptions) (StorageMoversClientCreateOrUpdateResponse, error) { + req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, storageMoverName, storageMover, options) + if err != nil { + return StorageMoversClientCreateOrUpdateResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return StorageMoversClientCreateOrUpdateResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return StorageMoversClientCreateOrUpdateResponse{}, runtime.NewResponseError(resp) + } + return client.createOrUpdateHandleResponse(resp) +} + +// createOrUpdateCreateRequest creates the CreateOrUpdate request. +func (client *StorageMoversClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, storageMoverName string, storageMover StorageMover, options *StorageMoversClientCreateOrUpdateOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if storageMoverName == "" { + return nil, errors.New("parameter storageMoverName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{storageMoverName}", url.PathEscape(storageMoverName)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-07-01-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, runtime.MarshalAsJSON(req, storageMover) +} + +// createOrUpdateHandleResponse handles the CreateOrUpdate response. +func (client *StorageMoversClient) createOrUpdateHandleResponse(resp *http.Response) (StorageMoversClientCreateOrUpdateResponse, error) { + result := StorageMoversClientCreateOrUpdateResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.StorageMover); err != nil { + return StorageMoversClientCreateOrUpdateResponse{}, err + } + return result, nil +} + +// BeginDelete - Deletes a Storage Mover resource. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-07-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - storageMoverName - The name of the Storage Mover resource. +// - options - StorageMoversClientBeginDeleteOptions contains the optional parameters for the StorageMoversClient.BeginDelete +// method. +func (client *StorageMoversClient) BeginDelete(ctx context.Context, resourceGroupName string, storageMoverName string, options *StorageMoversClientBeginDeleteOptions) (*runtime.Poller[StorageMoversClientDeleteResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.deleteOperation(ctx, resourceGroupName, storageMoverName, options) + if err != nil { + return nil, err + } + return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[StorageMoversClientDeleteResponse]{ + FinalStateVia: runtime.FinalStateViaLocation, + }) + } else { + return runtime.NewPollerFromResumeToken[StorageMoversClientDeleteResponse](options.ResumeToken, client.pl, nil) + } +} + +// Delete - Deletes a Storage Mover resource. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-07-01-preview +func (client *StorageMoversClient) deleteOperation(ctx context.Context, resourceGroupName string, storageMoverName string, options *StorageMoversClientBeginDeleteOptions) (*http.Response, error) { + req, err := client.deleteCreateRequest(ctx, resourceGroupName, storageMoverName, options) + if err != nil { + return nil, err + } + resp, err := client.pl.Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { + return nil, runtime.NewResponseError(resp) + } + return resp, nil +} + +// deleteCreateRequest creates the Delete request. +func (client *StorageMoversClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, storageMoverName string, options *StorageMoversClientBeginDeleteOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if storageMoverName == "" { + return nil, errors.New("parameter storageMoverName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{storageMoverName}", url.PathEscape(storageMoverName)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-07-01-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// Get - Gets a Storage Mover resource. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-07-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - storageMoverName - The name of the Storage Mover resource. +// - options - StorageMoversClientGetOptions contains the optional parameters for the StorageMoversClient.Get method. +func (client *StorageMoversClient) Get(ctx context.Context, resourceGroupName string, storageMoverName string, options *StorageMoversClientGetOptions) (StorageMoversClientGetResponse, error) { + req, err := client.getCreateRequest(ctx, resourceGroupName, storageMoverName, options) + if err != nil { + return StorageMoversClientGetResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return StorageMoversClientGetResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return StorageMoversClientGetResponse{}, runtime.NewResponseError(resp) + } + return client.getHandleResponse(resp) +} + +// getCreateRequest creates the Get request. +func (client *StorageMoversClient) getCreateRequest(ctx context.Context, resourceGroupName string, storageMoverName string, options *StorageMoversClientGetOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if storageMoverName == "" { + return nil, errors.New("parameter storageMoverName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{storageMoverName}", url.PathEscape(storageMoverName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-07-01-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// getHandleResponse handles the Get response. +func (client *StorageMoversClient) getHandleResponse(resp *http.Response) (StorageMoversClientGetResponse, error) { + result := StorageMoversClientGetResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.StorageMover); err != nil { + return StorageMoversClientGetResponse{}, err + } + return result, nil +} + +// NewListPager - Lists all Storage Movers in a resource group. +// +// Generated from API version 2022-07-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - options - StorageMoversClientListOptions contains the optional parameters for the StorageMoversClient.NewListPager method. +func (client *StorageMoversClient) NewListPager(resourceGroupName string, options *StorageMoversClientListOptions) *runtime.Pager[StorageMoversClientListResponse] { + return runtime.NewPager(runtime.PagingHandler[StorageMoversClientListResponse]{ + More: func(page StorageMoversClientListResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 + }, + Fetcher: func(ctx context.Context, page *StorageMoversClientListResponse) (StorageMoversClientListResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listCreateRequest(ctx, resourceGroupName, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return StorageMoversClientListResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return StorageMoversClientListResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return StorageMoversClientListResponse{}, runtime.NewResponseError(resp) + } + return client.listHandleResponse(resp) + }, + }) +} + +// listCreateRequest creates the List request. +func (client *StorageMoversClient) listCreateRequest(ctx context.Context, resourceGroupName string, options *StorageMoversClientListOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-07-01-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listHandleResponse handles the List response. +func (client *StorageMoversClient) listHandleResponse(resp *http.Response) (StorageMoversClientListResponse, error) { + result := StorageMoversClientListResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.List); err != nil { + return StorageMoversClientListResponse{}, err + } + return result, nil +} + +// NewListBySubscriptionPager - Lists all Storage Movers in a subscription. +// +// Generated from API version 2022-07-01-preview +// - options - StorageMoversClientListBySubscriptionOptions contains the optional parameters for the StorageMoversClient.NewListBySubscriptionPager +// method. +func (client *StorageMoversClient) NewListBySubscriptionPager(options *StorageMoversClientListBySubscriptionOptions) *runtime.Pager[StorageMoversClientListBySubscriptionResponse] { + return runtime.NewPager(runtime.PagingHandler[StorageMoversClientListBySubscriptionResponse]{ + More: func(page StorageMoversClientListBySubscriptionResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 + }, + Fetcher: func(ctx context.Context, page *StorageMoversClientListBySubscriptionResponse) (StorageMoversClientListBySubscriptionResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listBySubscriptionCreateRequest(ctx, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return StorageMoversClientListBySubscriptionResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return StorageMoversClientListBySubscriptionResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return StorageMoversClientListBySubscriptionResponse{}, runtime.NewResponseError(resp) + } + return client.listBySubscriptionHandleResponse(resp) + }, + }) +} + +// listBySubscriptionCreateRequest creates the ListBySubscription request. +func (client *StorageMoversClient) listBySubscriptionCreateRequest(ctx context.Context, options *StorageMoversClientListBySubscriptionOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.StorageMover/storageMovers" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-07-01-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listBySubscriptionHandleResponse handles the ListBySubscription response. +func (client *StorageMoversClient) listBySubscriptionHandleResponse(resp *http.Response) (StorageMoversClientListBySubscriptionResponse, error) { + result := StorageMoversClientListBySubscriptionResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.List); err != nil { + return StorageMoversClientListBySubscriptionResponse{}, err + } + return result, nil +} + +// Update - Updates properties for a Storage Mover resource. Properties not specified in the request body will be unchanged. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-07-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - storageMoverName - The name of the Storage Mover resource. +// - options - StorageMoversClientUpdateOptions contains the optional parameters for the StorageMoversClient.Update method. +func (client *StorageMoversClient) Update(ctx context.Context, resourceGroupName string, storageMoverName string, storageMover UpdateParameters, options *StorageMoversClientUpdateOptions) (StorageMoversClientUpdateResponse, error) { + req, err := client.updateCreateRequest(ctx, resourceGroupName, storageMoverName, storageMover, options) + if err != nil { + return StorageMoversClientUpdateResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return StorageMoversClientUpdateResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return StorageMoversClientUpdateResponse{}, runtime.NewResponseError(resp) + } + return client.updateHandleResponse(resp) +} + +// updateCreateRequest creates the Update request. +func (client *StorageMoversClient) updateCreateRequest(ctx context.Context, resourceGroupName string, storageMoverName string, storageMover UpdateParameters, options *StorageMoversClientUpdateOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageMover/storageMovers/{storageMoverName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if storageMoverName == "" { + return nil, errors.New("parameter storageMoverName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{storageMoverName}", url.PathEscape(storageMoverName)) + req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-07-01-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, runtime.MarshalAsJSON(req, storageMover) +} + +// updateHandleResponse handles the Update response. +func (client *StorageMoversClient) updateHandleResponse(resp *http.Response) (StorageMoversClientUpdateResponse, error) { + result := StorageMoversClientUpdateResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.StorageMover); err != nil { + return StorageMoversClientUpdateResponse{}, err + } + return result, nil +} diff --git a/sdk/resourcemanager/storagemover/armstoragemover/storagemovers_client_example_test.go b/sdk/resourcemanager/storagemover/armstoragemover/storagemovers_client_example_test.go new file mode 100644 index 000000000000..5b1ab3196689 --- /dev/null +++ b/sdk/resourcemanager/storagemover/armstoragemover/storagemovers_client_example_test.go @@ -0,0 +1,358 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armstoragemover_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storagemover/armstoragemover" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3d7a3848106b831a4a7f46976fe38aa605c4f44d/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/StorageMovers_ListBySubscription.json +func ExampleStorageMoversClient_NewListBySubscriptionPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armstoragemover.NewStorageMoversClient("11111111-2222-3333-4444-555555555555", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListBySubscriptionPager(nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.List = armstoragemover.List{ + // Value: []*armstoragemover.StorageMover{ + // { + // Name: to.Ptr("examples-storageMoverResourceName1"), + // Type: to.Ptr("Microsoft.StorageMover/storageMovers"), + // ID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverResourceName1"), + // Location: to.Ptr("eastus2"), + // Tags: map[string]*string{ + // "key1": to.Ptr("value1"), + // "key2": to.Ptr("value2"), + // }, + // Properties: &armstoragemover.Properties{ + // Description: to.Ptr("Example Storage Mover 1 Description"), + // }, + // SystemData: &armstoragemover.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-01T01:01:01.1075056Z"); return t}()), + // CreatedBy: to.Ptr("string"), + // CreatedByType: to.Ptr(armstoragemover.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-01T01:01:01.1075056Z"); return t}()), + // LastModifiedBy: to.Ptr("string"), + // LastModifiedByType: to.Ptr(armstoragemover.CreatedByTypeUser), + // }, + // }, + // { + // Name: to.Ptr("examples-storageMoverResourceName2"), + // Type: to.Ptr("Microsoft.StorageMover/storageMovers"), + // ID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg2/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverResourceName2"), + // Location: to.Ptr("eastus2"), + // Tags: map[string]*string{ + // "key1": to.Ptr("value1"), + // "key2": to.Ptr("value2"), + // }, + // Properties: &armstoragemover.Properties{ + // Description: to.Ptr("Example Storage Mover 2 Description"), + // }, + // SystemData: &armstoragemover.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-01T01:01:01.1075056Z"); return t}()), + // CreatedBy: to.Ptr("string"), + // CreatedByType: to.Ptr(armstoragemover.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-01T01:01:01.1075056Z"); return t}()), + // LastModifiedBy: to.Ptr("string"), + // LastModifiedByType: to.Ptr(armstoragemover.CreatedByTypeUser), + // }, + // }, + // { + // Name: to.Ptr("examples-storageMoverResourceName3"), + // Type: to.Ptr("Microsoft.StorageMover/storageMovers"), + // ID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverResourceName3"), + // Location: to.Ptr("eastus2"), + // Tags: map[string]*string{ + // "key1": to.Ptr("value1"), + // "key2": to.Ptr("value2"), + // }, + // Properties: &armstoragemover.Properties{ + // Description: to.Ptr("Example Storage Mover 3 Description"), + // }, + // SystemData: &armstoragemover.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-01T01:01:01.1075056Z"); return t}()), + // CreatedBy: to.Ptr("string"), + // CreatedByType: to.Ptr(armstoragemover.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-01T01:01:01.1075056Z"); return t}()), + // LastModifiedBy: to.Ptr("string"), + // LastModifiedByType: to.Ptr(armstoragemover.CreatedByTypeUser), + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3d7a3848106b831a4a7f46976fe38aa605c4f44d/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/StorageMovers_List.json +func ExampleStorageMoversClient_NewListPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armstoragemover.NewStorageMoversClient("11111111-2222-3333-4444-555555555555", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListPager("examples-rg", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.List = armstoragemover.List{ + // Value: []*armstoragemover.StorageMover{ + // { + // Name: to.Ptr("examples-storageMoverResourceName1"), + // Type: to.Ptr("Microsoft.StorageMover/storageMovers"), + // ID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverResourceName1"), + // Location: to.Ptr("eastus2"), + // Tags: map[string]*string{ + // "key1": to.Ptr("value1"), + // "key2": to.Ptr("value2"), + // }, + // Properties: &armstoragemover.Properties{ + // Description: to.Ptr("Example Storage Mover 1 Description"), + // }, + // SystemData: &armstoragemover.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-01T01:01:01.1075056Z"); return t}()), + // CreatedBy: to.Ptr("string"), + // CreatedByType: to.Ptr(armstoragemover.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-01T01:01:01.1075056Z"); return t}()), + // LastModifiedBy: to.Ptr("string"), + // LastModifiedByType: to.Ptr(armstoragemover.CreatedByTypeUser), + // }, + // }, + // { + // Name: to.Ptr("examples-storageMoverResourceName2"), + // Type: to.Ptr("Microsoft.StorageMover/storageMovers"), + // ID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverResourceName2"), + // Location: to.Ptr("eastus2"), + // Tags: map[string]*string{ + // "key1": to.Ptr("value1"), + // "key2": to.Ptr("value2"), + // }, + // Properties: &armstoragemover.Properties{ + // Description: to.Ptr("Example Storage Mover 2 Description"), + // }, + // SystemData: &armstoragemover.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-01T01:01:01.1075056Z"); return t}()), + // CreatedBy: to.Ptr("string"), + // CreatedByType: to.Ptr(armstoragemover.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-01T01:01:01.1075056Z"); return t}()), + // LastModifiedBy: to.Ptr("string"), + // LastModifiedByType: to.Ptr(armstoragemover.CreatedByTypeUser), + // }, + // }, + // { + // Name: to.Ptr("examples-storageMoverResourceName3"), + // Type: to.Ptr("Microsoft.StorageMover/storageMovers"), + // ID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverResourceName3"), + // Location: to.Ptr("eastus2"), + // Tags: map[string]*string{ + // "key1": to.Ptr("value1"), + // "key2": to.Ptr("value2"), + // }, + // Properties: &armstoragemover.Properties{ + // Description: to.Ptr("Example Storage Mover 3 Description"), + // }, + // SystemData: &armstoragemover.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-01T01:01:01.1075056Z"); return t}()), + // CreatedBy: to.Ptr("string"), + // CreatedByType: to.Ptr(armstoragemover.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-01T01:01:01.1075056Z"); return t}()), + // LastModifiedBy: to.Ptr("string"), + // LastModifiedByType: to.Ptr(armstoragemover.CreatedByTypeUser), + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3d7a3848106b831a4a7f46976fe38aa605c4f44d/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/StorageMovers_Get.json +func ExampleStorageMoversClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armstoragemover.NewStorageMoversClient("11111111-2222-3333-4444-555555555555", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "examples-rg", "examples-storageMoverName", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.StorageMover = armstoragemover.StorageMover{ + // Name: to.Ptr("examples-storageMoverName"), + // Type: to.Ptr("Microsoft.StorageMover/storageMovers"), + // ID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName"), + // Location: to.Ptr("eastus2"), + // Tags: map[string]*string{ + // "key1": to.Ptr("value1"), + // "key2": to.Ptr("value2"), + // }, + // Properties: &armstoragemover.Properties{ + // Description: to.Ptr("Example Storage Mover Description"), + // }, + // SystemData: &armstoragemover.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-01T01:01:01.1075056Z"); return t}()), + // CreatedBy: to.Ptr("string"), + // CreatedByType: to.Ptr(armstoragemover.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-01T01:01:01.1075056Z"); return t}()), + // LastModifiedBy: to.Ptr("string"), + // LastModifiedByType: to.Ptr(armstoragemover.CreatedByTypeUser), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3d7a3848106b831a4a7f46976fe38aa605c4f44d/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/StorageMovers_CreateOrUpdate.json +func ExampleStorageMoversClient_CreateOrUpdate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armstoragemover.NewStorageMoversClient("11111111-2222-3333-4444-555555555555", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.CreateOrUpdate(ctx, "examples-rg", "examples-storageMoverName", armstoragemover.StorageMover{ + Location: to.Ptr("eastus2"), + Tags: map[string]*string{ + "key1": to.Ptr("value1"), + "key2": to.Ptr("value2"), + }, + Properties: &armstoragemover.Properties{ + Description: to.Ptr("Example Storage Mover Description"), + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.StorageMover = armstoragemover.StorageMover{ + // Name: to.Ptr("examples-storageMoverName"), + // Type: to.Ptr("Microsoft.StorageMover/storageMovers"), + // ID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName"), + // Location: to.Ptr("eastus2"), + // Tags: map[string]*string{ + // "key1": to.Ptr("value1"), + // "key2": to.Ptr("value2"), + // }, + // Properties: &armstoragemover.Properties{ + // Description: to.Ptr("Example Storage Mover Description"), + // }, + // SystemData: &armstoragemover.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-01T01:01:01.1075056Z"); return t}()), + // CreatedBy: to.Ptr("string"), + // CreatedByType: to.Ptr(armstoragemover.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-01T01:01:01.1075056Z"); return t}()), + // LastModifiedBy: to.Ptr("string"), + // LastModifiedByType: to.Ptr(armstoragemover.CreatedByTypeUser), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3d7a3848106b831a4a7f46976fe38aa605c4f44d/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/StorageMovers_Update.json +func ExampleStorageMoversClient_Update() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armstoragemover.NewStorageMoversClient("11111111-2222-3333-4444-555555555555", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Update(ctx, "examples-rg", "examples-storageMoverName", armstoragemover.UpdateParameters{ + Properties: &armstoragemover.UpdateProperties{ + Description: to.Ptr("Updated Storage Mover Description"), + }, + }, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.StorageMover = armstoragemover.StorageMover{ + // Name: to.Ptr("examples-storageMoverName"), + // Type: to.Ptr("Microsoft.StorageMover/storageMovers"), + // ID: to.Ptr("/subscriptions/11111111-2222-3333-4444-555555555555/resourceGroups/examples-rg/providers/Microsoft.StorageMover/storageMovers/examples-storageMoverName"), + // Location: to.Ptr("eastus2"), + // Tags: map[string]*string{ + // "key1": to.Ptr("value1"), + // "key2": to.Ptr("value2"), + // }, + // Properties: &armstoragemover.Properties{ + // Description: to.Ptr("Updated Storage Mover Description"), + // }, + // SystemData: &armstoragemover.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-01T01:01:01.1075056Z"); return t}()), + // CreatedBy: to.Ptr("string"), + // CreatedByType: to.Ptr(armstoragemover.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-01T01:01:01.1075056Z"); return t}()), + // LastModifiedBy: to.Ptr("string"), + // LastModifiedByType: to.Ptr(armstoragemover.CreatedByTypeUser), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3d7a3848106b831a4a7f46976fe38aa605c4f44d/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/StorageMovers_Delete.json +func ExampleStorageMoversClient_BeginDelete() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armstoragemover.NewStorageMoversClient("11111111-2222-3333-4444-555555555555", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginDelete(ctx, "examples-rg", "examples-storageMoverName", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + _, err = poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } +} diff --git a/sdk/resourcemanager/storagemover/armstoragemover/time_rfc3339.go b/sdk/resourcemanager/storagemover/armstoragemover/time_rfc3339.go new file mode 100644 index 000000000000..049fdaa433a7 --- /dev/null +++ b/sdk/resourcemanager/storagemover/armstoragemover/time_rfc3339.go @@ -0,0 +1,87 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armstoragemover + +import ( + "encoding/json" + "fmt" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "reflect" + "regexp" + "strings" + "time" +) + +const ( + utcLayoutJSON = `"2006-01-02T15:04:05.999999999"` + utcLayout = "2006-01-02T15:04:05.999999999" + rfc3339JSON = `"` + time.RFC3339Nano + `"` +) + +// Azure reports time in UTC but it doesn't include the 'Z' time zone suffix in some cases. +var tzOffsetRegex = regexp.MustCompile(`(Z|z|\+|-)(\d+:\d+)*"*$`) + +type timeRFC3339 time.Time + +func (t timeRFC3339) MarshalJSON() (json []byte, err error) { + tt := time.Time(t) + return tt.MarshalJSON() +} + +func (t timeRFC3339) MarshalText() (text []byte, err error) { + tt := time.Time(t) + return tt.MarshalText() +} + +func (t *timeRFC3339) UnmarshalJSON(data []byte) error { + layout := utcLayoutJSON + if tzOffsetRegex.Match(data) { + layout = rfc3339JSON + } + return t.Parse(layout, string(data)) +} + +func (t *timeRFC3339) UnmarshalText(data []byte) (err error) { + layout := utcLayout + if tzOffsetRegex.Match(data) { + layout = time.RFC3339Nano + } + return t.Parse(layout, string(data)) +} + +func (t *timeRFC3339) Parse(layout, value string) error { + p, err := time.Parse(layout, strings.ToUpper(value)) + *t = timeRFC3339(p) + return err +} + +func populateTimeRFC3339(m map[string]any, k string, t *time.Time) { + if t == nil { + return + } else if azcore.IsNullValue(t) { + m[k] = nil + return + } else if reflect.ValueOf(t).IsNil() { + return + } + m[k] = (*timeRFC3339)(t) +} + +func unpopulateTimeRFC3339(data json.RawMessage, fn string, t **time.Time) error { + if data == nil || strings.EqualFold(string(data), "null") { + return nil + } + var aux timeRFC3339 + if err := json.Unmarshal(data, &aux); err != nil { + return fmt.Errorf("struct field %s: %v", fn, err) + } + *t = (*time.Time)(&aux) + return nil +} From 0893006f88c68124d4a2a5eb40b192a167a2ed82 Mon Sep 17 00:00:00 2001 From: Peng Jiahui <46921893+Alancere@users.noreply.github.com> Date: Fri, 24 Feb 2023 10:50:11 +0800 Subject: [PATCH 055/107] [Release] sdk/resourcemanager/storagecache/armstoragecache/3.0.0 (#20019) * [Release] sdk/resourcemanager/storagecache/armstoragecache/3.0.0 generation from spec commit: 402006d2796cdd3894d013d83e77b46a5c844005 * update CHANGELOG.md --- .../storagecache/armstoragecache/CHANGELOG.md | 14 + .../armstoragecache/ascoperations_client.go | 19 +- .../ascoperations_client_example_test.go | 20 +- .../armstoragecache/ascusages_client.go | 18 +- .../ascusages_client_example_test.go | 36 +- .../storagecache/armstoragecache/autorest.md | 6 +- .../armstoragecache/caches_client.go | 281 +-- .../caches_client_example_test.go | 1762 ++++++++++++++--- .../storagecache/armstoragecache/constants.go | 2 +- .../storagecache/armstoragecache/go.mod | 8 +- .../storagecache/armstoragecache/go.sum | 15 +- .../storagecache/armstoragecache/models.go | 54 +- .../armstoragecache/models_serde.go | 163 +- .../armstoragecache/operations_client.go | 12 +- .../operations_client_example_test.go | 71 +- .../armstoragecache/response_types.go | 59 +- .../armstoragecache/skus_client.go | 16 +- .../skus_client_example_test.go | 84 +- .../armstoragecache/storagetarget_client.go | 80 +- .../storagetarget_client_example_test.go | 35 +- .../armstoragecache/storagetargets_client.go | 163 +- .../storagetargets_client_example_test.go | 414 +++- .../armstoragecache/time_rfc3339.go | 2 +- .../armstoragecache/usagemodels_client.go | 16 +- .../usagemodels_client_example_test.go | 29 +- 25 files changed, 2644 insertions(+), 735 deletions(-) diff --git a/sdk/resourcemanager/storagecache/armstoragecache/CHANGELOG.md b/sdk/resourcemanager/storagecache/armstoragecache/CHANGELOG.md index 8bc5a9ddfbc1..d376a40ec167 100644 --- a/sdk/resourcemanager/storagecache/armstoragecache/CHANGELOG.md +++ b/sdk/resourcemanager/storagecache/armstoragecache/CHANGELOG.md @@ -1,5 +1,19 @@ # Release History +## 3.0.0 (2023-02-24) +### Breaking Changes + +- Operation `*CachesClient.Update` has been changed to LRO, use `*CachesClient.BeginUpdate` instead. + +### Features Added + +- New function `*StorageTargetsClient.BeginRestoreDefaults(context.Context, string, string, string, *StorageTargetsClientBeginRestoreDefaultsOptions) (*runtime.Poller[StorageTargetsClientRestoreDefaultsResponse], error)` +- New field `VerificationTimer` in struct `BlobNfsTarget` +- New field `WriteBackTimer` in struct `BlobNfsTarget` +- New field `VerificationTimer` in struct `Nfs3Target` +- New field `WriteBackTimer` in struct `Nfs3Target` + + ## 2.0.0 (2022-07-06) ### Breaking Changes diff --git a/sdk/resourcemanager/storagecache/armstoragecache/ascoperations_client.go b/sdk/resourcemanager/storagecache/armstoragecache/ascoperations_client.go index 936d7ae4e8cf..87a83c53b4bd 100644 --- a/sdk/resourcemanager/storagecache/armstoragecache/ascoperations_client.go +++ b/sdk/resourcemanager/storagecache/armstoragecache/ascoperations_client.go @@ -32,10 +32,10 @@ type AscOperationsClient struct { } // NewAscOperationsClient creates a new instance of AscOperationsClient with the specified values. -// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms -// part of the URI for every service call. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms +// part of the URI for every service call. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewAscOperationsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*AscOperationsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -58,10 +58,11 @@ func NewAscOperationsClient(subscriptionID string, credential azcore.TokenCreden // Get - Gets the status of an asynchronous operation for the Azure HPC Cache // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-05-01 -// location - The name of the region used to look up the operation. -// operationID - The operation id which uniquely identifies the asynchronous operation. -// options - AscOperationsClientGetOptions contains the optional parameters for the AscOperationsClient.Get method. +// +// Generated from API version 2023-01-01 +// - location - The name of the region used to look up the operation. +// - operationID - The operation id which uniquely identifies the asynchronous operation. +// - options - AscOperationsClientGetOptions contains the optional parameters for the AscOperationsClient.Get method. func (client *AscOperationsClient) Get(ctx context.Context, location string, operationID string, options *AscOperationsClientGetOptions) (AscOperationsClientGetResponse, error) { req, err := client.getCreateRequest(ctx, location, operationID, options) if err != nil { @@ -97,7 +98,7 @@ func (client *AscOperationsClient) getCreateRequest(ctx context.Context, locatio return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-05-01") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/storagecache/armstoragecache/ascoperations_client_example_test.go b/sdk/resourcemanager/storagecache/armstoragecache/ascoperations_client_example_test.go index 132f835304be..d42b077cbd98 100644 --- a/sdk/resourcemanager/storagecache/armstoragecache/ascoperations_client_example_test.go +++ b/sdk/resourcemanager/storagecache/armstoragecache/ascoperations_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armstoragecache_test @@ -13,10 +14,10 @@ import ( "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storagecache/armstoragecache/v2" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storagecache/armstoragecache/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2022-05-01/examples/AscOperations_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/AscOperations_Get.json func ExampleAscOperationsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -27,13 +28,18 @@ func ExampleAscOperationsClient_Get() { if err != nil { log.Fatalf("failed to create client: %v", err) } - res, err := client.Get(ctx, - "westus", - "testoperationid", - nil) + res, err := client.Get(ctx, "westus", "testoperationid", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.AscOperation = armstoragecache.AscOperation{ + // Name: to.Ptr("testoperationid"), + // EndTime: to.Ptr("2023-01-01T16:13:13.933Z"), + // ID: to.Ptr("/subscriptions/id/locations/westus/ascOperations/testoperationid"), + // StartTime: to.Ptr("2023-01-01T13:13:13.933Z"), + // Status: to.Ptr("Succeeded"), + // } } diff --git a/sdk/resourcemanager/storagecache/armstoragecache/ascusages_client.go b/sdk/resourcemanager/storagecache/armstoragecache/ascusages_client.go index b5b1c6122e8d..4c7f996fb36e 100644 --- a/sdk/resourcemanager/storagecache/armstoragecache/ascusages_client.go +++ b/sdk/resourcemanager/storagecache/armstoragecache/ascusages_client.go @@ -32,10 +32,10 @@ type AscUsagesClient struct { } // NewAscUsagesClient creates a new instance of AscUsagesClient with the specified values. -// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms -// part of the URI for every service call. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms +// part of the URI for every service call. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewAscUsagesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*AscUsagesClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,10 +57,10 @@ func NewAscUsagesClient(subscriptionID string, credential azcore.TokenCredential } // NewListPager - Gets the quantity used and quota limit for resources -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-05-01 -// location - The name of the region to query for usage information. -// options - AscUsagesClientListOptions contains the optional parameters for the AscUsagesClient.List method. +// +// Generated from API version 2023-01-01 +// - location - The name of the region to query for usage information. +// - options - AscUsagesClientListOptions contains the optional parameters for the AscUsagesClient.NewListPager method. func (client *AscUsagesClient) NewListPager(location string, options *AscUsagesClientListOptions) *runtime.Pager[AscUsagesClientListResponse] { return runtime.NewPager(runtime.PagingHandler[AscUsagesClientListResponse]{ More: func(page AscUsagesClientListResponse) bool { @@ -105,7 +105,7 @@ func (client *AscUsagesClient) listCreateRequest(ctx context.Context, location s return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-05-01") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/storagecache/armstoragecache/ascusages_client_example_test.go b/sdk/resourcemanager/storagecache/armstoragecache/ascusages_client_example_test.go index b5d974ab6513..78dd3a362cd1 100644 --- a/sdk/resourcemanager/storagecache/armstoragecache/ascusages_client_example_test.go +++ b/sdk/resourcemanager/storagecache/armstoragecache/ascusages_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armstoragecache_test @@ -13,10 +14,10 @@ import ( "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storagecache/armstoragecache/v2" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storagecache/armstoragecache/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2022-05-01/examples/AscResourceUsages_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/AscResourceUsages_Get.json func ExampleAscUsagesClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -27,16 +28,37 @@ func ExampleAscUsagesClient_NewListPager() { if err != nil { log.Fatalf("failed to create client: %v", err) } - pager := client.NewListPager("eastus", - nil) + pager := client.NewListPager("eastus", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.ResourceUsagesListResult = armstoragecache.ResourceUsagesListResult{ + // Value: []*armstoragecache.ResourceUsage{ + // { + // Name: &armstoragecache.ResourceUsageName{ + // LocalizedValue: to.Ptr("Cache"), + // Value: to.Ptr("Cache"), + // }, + // CurrentValue: to.Ptr[int32](1), + // Limit: to.Ptr[int32](4), + // Unit: to.Ptr("Count"), + // }, + // { + // Name: &armstoragecache.ResourceUsageName{ + // LocalizedValue: to.Ptr("AmlFilesystem"), + // Value: to.Ptr("AmlFilesystem"), + // }, + // CurrentValue: to.Ptr[int32](0), + // Limit: to.Ptr[int32](4), + // Unit: to.Ptr("Count"), + // }}, + // } } } diff --git a/sdk/resourcemanager/storagecache/armstoragecache/autorest.md b/sdk/resourcemanager/storagecache/armstoragecache/autorest.md index 2a198250ab88..22c984147126 100644 --- a/sdk/resourcemanager/storagecache/armstoragecache/autorest.md +++ b/sdk/resourcemanager/storagecache/armstoragecache/autorest.md @@ -5,9 +5,9 @@ ``` yaml azure-arm: true require: -- https://github.com/Azure/azure-rest-api-specs/blob/f95b40108e41ad35bde8586a409cee6af65808fd/specification/storagecache/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/f95b40108e41ad35bde8586a409cee6af65808fd/specification/storagecache/resource-manager/readme.go.md +- https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/storagecache/resource-manager/readme.md +- https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/storagecache/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 2.0.0 +module-version: 3.0.0 ``` \ No newline at end of file diff --git a/sdk/resourcemanager/storagecache/armstoragecache/caches_client.go b/sdk/resourcemanager/storagecache/armstoragecache/caches_client.go index 8eb51b247dbb..2c4e19f06af7 100644 --- a/sdk/resourcemanager/storagecache/armstoragecache/caches_client.go +++ b/sdk/resourcemanager/storagecache/armstoragecache/caches_client.go @@ -32,10 +32,10 @@ type CachesClient struct { } // NewCachesClient creates a new instance of CachesClient with the specified values. -// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms -// part of the URI for every service call. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms +// part of the URI for every service call. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewCachesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*CachesClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -58,13 +58,14 @@ func NewCachesClient(subscriptionID string, credential azcore.TokenCredential, o // BeginCreateOrUpdate - Create or update a Cache. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-05-01 -// resourceGroupName - Target resource group. -// cacheName - Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class. -// cache - Object containing the user-selectable properties of the new Cache. If read-only properties are included, they must -// match the existing values of those properties. -// options - CachesClientBeginCreateOrUpdateOptions contains the optional parameters for the CachesClient.BeginCreateOrUpdate -// method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - Target resource group. +// - cacheName - Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class. +// - cache - Object containing the user-selectable properties of the new Cache. If read-only properties are included, they must +// match the existing values of those properties. +// - options - CachesClientBeginCreateOrUpdateOptions contains the optional parameters for the CachesClient.BeginCreateOrUpdate +// method. func (client *CachesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, cacheName string, cache Cache, options *CachesClientBeginCreateOrUpdateOptions) (*runtime.Poller[CachesClientCreateOrUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createOrUpdate(ctx, resourceGroupName, cacheName, cache, options) @@ -79,7 +80,8 @@ func (client *CachesClient) BeginCreateOrUpdate(ctx context.Context, resourceGro // CreateOrUpdate - Create or update a Cache. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-05-01 +// +// Generated from API version 2023-01-01 func (client *CachesClient) createOrUpdate(ctx context.Context, resourceGroupName string, cacheName string, cache Cache, options *CachesClientBeginCreateOrUpdateOptions) (*http.Response, error) { req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, cacheName, cache, options) if err != nil { @@ -115,7 +117,7 @@ func (client *CachesClient) createOrUpdateCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-05-01") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, cache) @@ -123,10 +125,11 @@ func (client *CachesClient) createOrUpdateCreateRequest(ctx context.Context, res // BeginDebugInfo - Tells a Cache to write generate debug info for support to process. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-05-01 -// resourceGroupName - Target resource group. -// cacheName - Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class. -// options - CachesClientBeginDebugInfoOptions contains the optional parameters for the CachesClient.BeginDebugInfo method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - Target resource group. +// - cacheName - Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class. +// - options - CachesClientBeginDebugInfoOptions contains the optional parameters for the CachesClient.BeginDebugInfo method. func (client *CachesClient) BeginDebugInfo(ctx context.Context, resourceGroupName string, cacheName string, options *CachesClientBeginDebugInfoOptions) (*runtime.Poller[CachesClientDebugInfoResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.debugInfo(ctx, resourceGroupName, cacheName, options) @@ -143,7 +146,8 @@ func (client *CachesClient) BeginDebugInfo(ctx context.Context, resourceGroupNam // DebugInfo - Tells a Cache to write generate debug info for support to process. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-05-01 +// +// Generated from API version 2023-01-01 func (client *CachesClient) debugInfo(ctx context.Context, resourceGroupName string, cacheName string, options *CachesClientBeginDebugInfoOptions) (*http.Response, error) { req, err := client.debugInfoCreateRequest(ctx, resourceGroupName, cacheName, options) if err != nil { @@ -179,7 +183,7 @@ func (client *CachesClient) debugInfoCreateRequest(ctx context.Context, resource return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-05-01") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -187,10 +191,11 @@ func (client *CachesClient) debugInfoCreateRequest(ctx context.Context, resource // BeginDelete - Schedules a Cache for deletion. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-05-01 -// resourceGroupName - Target resource group. -// cacheName - Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class. -// options - CachesClientBeginDeleteOptions contains the optional parameters for the CachesClient.BeginDelete method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - Target resource group. +// - cacheName - Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class. +// - options - CachesClientBeginDeleteOptions contains the optional parameters for the CachesClient.BeginDelete method. func (client *CachesClient) BeginDelete(ctx context.Context, resourceGroupName string, cacheName string, options *CachesClientBeginDeleteOptions) (*runtime.Poller[CachesClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, cacheName, options) @@ -205,7 +210,8 @@ func (client *CachesClient) BeginDelete(ctx context.Context, resourceGroupName s // Delete - Schedules a Cache for deletion. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-05-01 +// +// Generated from API version 2023-01-01 func (client *CachesClient) deleteOperation(ctx context.Context, resourceGroupName string, cacheName string, options *CachesClientBeginDeleteOptions) (*http.Response, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, cacheName, options) if err != nil { @@ -241,7 +247,7 @@ func (client *CachesClient) deleteCreateRequest(ctx context.Context, resourceGro return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-05-01") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -250,10 +256,11 @@ func (client *CachesClient) deleteCreateRequest(ctx context.Context, resourceGro // BeginFlush - Tells a Cache to write all dirty data to the Storage Target(s). During the flush, clients will see errors // returned until the flush is complete. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-05-01 -// resourceGroupName - Target resource group. -// cacheName - Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class. -// options - CachesClientBeginFlushOptions contains the optional parameters for the CachesClient.BeginFlush method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - Target resource group. +// - cacheName - Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class. +// - options - CachesClientBeginFlushOptions contains the optional parameters for the CachesClient.BeginFlush method. func (client *CachesClient) BeginFlush(ctx context.Context, resourceGroupName string, cacheName string, options *CachesClientBeginFlushOptions) (*runtime.Poller[CachesClientFlushResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.flush(ctx, resourceGroupName, cacheName, options) @@ -271,7 +278,8 @@ func (client *CachesClient) BeginFlush(ctx context.Context, resourceGroupName st // Flush - Tells a Cache to write all dirty data to the Storage Target(s). During the flush, clients will see errors returned // until the flush is complete. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-05-01 +// +// Generated from API version 2023-01-01 func (client *CachesClient) flush(ctx context.Context, resourceGroupName string, cacheName string, options *CachesClientBeginFlushOptions) (*http.Response, error) { req, err := client.flushCreateRequest(ctx, resourceGroupName, cacheName, options) if err != nil { @@ -307,7 +315,7 @@ func (client *CachesClient) flushCreateRequest(ctx context.Context, resourceGrou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-05-01") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -315,10 +323,11 @@ func (client *CachesClient) flushCreateRequest(ctx context.Context, resourceGrou // Get - Returns a Cache. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-05-01 -// resourceGroupName - Target resource group. -// cacheName - Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class. -// options - CachesClientGetOptions contains the optional parameters for the CachesClient.Get method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - Target resource group. +// - cacheName - Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class. +// - options - CachesClientGetOptions contains the optional parameters for the CachesClient.Get method. func (client *CachesClient) Get(ctx context.Context, resourceGroupName string, cacheName string, options *CachesClientGetOptions) (CachesClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, cacheName, options) if err != nil { @@ -354,7 +363,7 @@ func (client *CachesClient) getCreateRequest(ctx context.Context, resourceGroupN return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-05-01") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -370,9 +379,9 @@ func (client *CachesClient) getHandleResponse(resp *http.Response) (CachesClient } // NewListPager - Returns all Caches the user has access to under a subscription. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-05-01 -// options - CachesClientListOptions contains the optional parameters for the CachesClient.List method. +// +// Generated from API version 2023-01-01 +// - options - CachesClientListOptions contains the optional parameters for the CachesClient.NewListPager method. func (client *CachesClient) NewListPager(options *CachesClientListOptions) *runtime.Pager[CachesClientListResponse] { return runtime.NewPager(runtime.PagingHandler[CachesClientListResponse]{ More: func(page CachesClientListResponse) bool { @@ -413,7 +422,7 @@ func (client *CachesClient) listCreateRequest(ctx context.Context, options *Cach return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-05-01") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -429,11 +438,11 @@ func (client *CachesClient) listHandleResponse(resp *http.Response) (CachesClien } // NewListByResourceGroupPager - Returns all Caches the user has access to under a resource group. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-05-01 -// resourceGroupName - Target resource group. -// options - CachesClientListByResourceGroupOptions contains the optional parameters for the CachesClient.ListByResourceGroup -// method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - Target resource group. +// - options - CachesClientListByResourceGroupOptions contains the optional parameters for the CachesClient.NewListByResourceGroupPager +// method. func (client *CachesClient) NewListByResourceGroupPager(resourceGroupName string, options *CachesClientListByResourceGroupOptions) *runtime.Pager[CachesClientListByResourceGroupResponse] { return runtime.NewPager(runtime.PagingHandler[CachesClientListByResourceGroupResponse]{ More: func(page CachesClientListByResourceGroupResponse) bool { @@ -478,7 +487,7 @@ func (client *CachesClient) listByResourceGroupCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-05-01") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -495,11 +504,12 @@ func (client *CachesClient) listByResourceGroupHandleResponse(resp *http.Respons // BeginPausePrimingJob - Schedule a priming job to be paused. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-05-01 -// resourceGroupName - Target resource group. -// cacheName - Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class. -// options - CachesClientBeginPausePrimingJobOptions contains the optional parameters for the CachesClient.BeginPausePrimingJob -// method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - Target resource group. +// - cacheName - Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class. +// - options - CachesClientBeginPausePrimingJobOptions contains the optional parameters for the CachesClient.BeginPausePrimingJob +// method. func (client *CachesClient) BeginPausePrimingJob(ctx context.Context, resourceGroupName string, cacheName string, options *CachesClientBeginPausePrimingJobOptions) (*runtime.Poller[CachesClientPausePrimingJobResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.pausePrimingJob(ctx, resourceGroupName, cacheName, options) @@ -516,7 +526,8 @@ func (client *CachesClient) BeginPausePrimingJob(ctx context.Context, resourceGr // PausePrimingJob - Schedule a priming job to be paused. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-05-01 +// +// Generated from API version 2023-01-01 func (client *CachesClient) pausePrimingJob(ctx context.Context, resourceGroupName string, cacheName string, options *CachesClientBeginPausePrimingJobOptions) (*http.Response, error) { req, err := client.pausePrimingJobCreateRequest(ctx, resourceGroupName, cacheName, options) if err != nil { @@ -552,7 +563,7 @@ func (client *CachesClient) pausePrimingJobCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-05-01") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.PrimingJobID != nil { @@ -563,11 +574,12 @@ func (client *CachesClient) pausePrimingJobCreateRequest(ctx context.Context, re // BeginResumePrimingJob - Resumes a paused priming job. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-05-01 -// resourceGroupName - Target resource group. -// cacheName - Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class. -// options - CachesClientBeginResumePrimingJobOptions contains the optional parameters for the CachesClient.BeginResumePrimingJob -// method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - Target resource group. +// - cacheName - Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class. +// - options - CachesClientBeginResumePrimingJobOptions contains the optional parameters for the CachesClient.BeginResumePrimingJob +// method. func (client *CachesClient) BeginResumePrimingJob(ctx context.Context, resourceGroupName string, cacheName string, options *CachesClientBeginResumePrimingJobOptions) (*runtime.Poller[CachesClientResumePrimingJobResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.resumePrimingJob(ctx, resourceGroupName, cacheName, options) @@ -584,7 +596,8 @@ func (client *CachesClient) BeginResumePrimingJob(ctx context.Context, resourceG // ResumePrimingJob - Resumes a paused priming job. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-05-01 +// +// Generated from API version 2023-01-01 func (client *CachesClient) resumePrimingJob(ctx context.Context, resourceGroupName string, cacheName string, options *CachesClientBeginResumePrimingJobOptions) (*http.Response, error) { req, err := client.resumePrimingJobCreateRequest(ctx, resourceGroupName, cacheName, options) if err != nil { @@ -620,7 +633,7 @@ func (client *CachesClient) resumePrimingJobCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-05-01") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.PrimingJobID != nil { @@ -631,11 +644,12 @@ func (client *CachesClient) resumePrimingJobCreateRequest(ctx context.Context, r // BeginSpaceAllocation - Update cache space allocation. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-05-01 -// resourceGroupName - Target resource group. -// cacheName - Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class. -// options - CachesClientBeginSpaceAllocationOptions contains the optional parameters for the CachesClient.BeginSpaceAllocation -// method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - Target resource group. +// - cacheName - Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class. +// - options - CachesClientBeginSpaceAllocationOptions contains the optional parameters for the CachesClient.BeginSpaceAllocation +// method. func (client *CachesClient) BeginSpaceAllocation(ctx context.Context, resourceGroupName string, cacheName string, options *CachesClientBeginSpaceAllocationOptions) (*runtime.Poller[CachesClientSpaceAllocationResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.spaceAllocation(ctx, resourceGroupName, cacheName, options) @@ -652,7 +666,8 @@ func (client *CachesClient) BeginSpaceAllocation(ctx context.Context, resourceGr // SpaceAllocation - Update cache space allocation. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-05-01 +// +// Generated from API version 2023-01-01 func (client *CachesClient) spaceAllocation(ctx context.Context, resourceGroupName string, cacheName string, options *CachesClientBeginSpaceAllocationOptions) (*http.Response, error) { req, err := client.spaceAllocationCreateRequest(ctx, resourceGroupName, cacheName, options) if err != nil { @@ -688,7 +703,7 @@ func (client *CachesClient) spaceAllocationCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-05-01") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.SpaceAllocation != nil { @@ -699,10 +714,11 @@ func (client *CachesClient) spaceAllocationCreateRequest(ctx context.Context, re // BeginStart - Tells a Stopped state Cache to transition to Active state. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-05-01 -// resourceGroupName - Target resource group. -// cacheName - Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class. -// options - CachesClientBeginStartOptions contains the optional parameters for the CachesClient.BeginStart method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - Target resource group. +// - cacheName - Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class. +// - options - CachesClientBeginStartOptions contains the optional parameters for the CachesClient.BeginStart method. func (client *CachesClient) BeginStart(ctx context.Context, resourceGroupName string, cacheName string, options *CachesClientBeginStartOptions) (*runtime.Poller[CachesClientStartResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.start(ctx, resourceGroupName, cacheName, options) @@ -719,7 +735,8 @@ func (client *CachesClient) BeginStart(ctx context.Context, resourceGroupName st // Start - Tells a Stopped state Cache to transition to Active state. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-05-01 +// +// Generated from API version 2023-01-01 func (client *CachesClient) start(ctx context.Context, resourceGroupName string, cacheName string, options *CachesClientBeginStartOptions) (*http.Response, error) { req, err := client.startCreateRequest(ctx, resourceGroupName, cacheName, options) if err != nil { @@ -755,7 +772,7 @@ func (client *CachesClient) startCreateRequest(ctx context.Context, resourceGrou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-05-01") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -763,11 +780,12 @@ func (client *CachesClient) startCreateRequest(ctx context.Context, resourceGrou // BeginStartPrimingJob - Create a priming job. This operation is only allowed when the cache is healthy. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-05-01 -// resourceGroupName - Target resource group. -// cacheName - Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class. -// options - CachesClientBeginStartPrimingJobOptions contains the optional parameters for the CachesClient.BeginStartPrimingJob -// method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - Target resource group. +// - cacheName - Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class. +// - options - CachesClientBeginStartPrimingJobOptions contains the optional parameters for the CachesClient.BeginStartPrimingJob +// method. func (client *CachesClient) BeginStartPrimingJob(ctx context.Context, resourceGroupName string, cacheName string, options *CachesClientBeginStartPrimingJobOptions) (*runtime.Poller[CachesClientStartPrimingJobResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.startPrimingJob(ctx, resourceGroupName, cacheName, options) @@ -784,7 +802,8 @@ func (client *CachesClient) BeginStartPrimingJob(ctx context.Context, resourceGr // StartPrimingJob - Create a priming job. This operation is only allowed when the cache is healthy. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-05-01 +// +// Generated from API version 2023-01-01 func (client *CachesClient) startPrimingJob(ctx context.Context, resourceGroupName string, cacheName string, options *CachesClientBeginStartPrimingJobOptions) (*http.Response, error) { req, err := client.startPrimingJobCreateRequest(ctx, resourceGroupName, cacheName, options) if err != nil { @@ -820,7 +839,7 @@ func (client *CachesClient) startPrimingJobCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-05-01") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.Primingjob != nil { @@ -831,10 +850,11 @@ func (client *CachesClient) startPrimingJobCreateRequest(ctx context.Context, re // BeginStop - Tells an Active Cache to transition to Stopped state. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-05-01 -// resourceGroupName - Target resource group. -// cacheName - Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class. -// options - CachesClientBeginStopOptions contains the optional parameters for the CachesClient.BeginStop method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - Target resource group. +// - cacheName - Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class. +// - options - CachesClientBeginStopOptions contains the optional parameters for the CachesClient.BeginStop method. func (client *CachesClient) BeginStop(ctx context.Context, resourceGroupName string, cacheName string, options *CachesClientBeginStopOptions) (*runtime.Poller[CachesClientStopResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.stop(ctx, resourceGroupName, cacheName, options) @@ -851,7 +871,8 @@ func (client *CachesClient) BeginStop(ctx context.Context, resourceGroupName str // Stop - Tells an Active Cache to transition to Stopped state. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-05-01 +// +// Generated from API version 2023-01-01 func (client *CachesClient) stop(ctx context.Context, resourceGroupName string, cacheName string, options *CachesClientBeginStopOptions) (*http.Response, error) { req, err := client.stopCreateRequest(ctx, resourceGroupName, cacheName, options) if err != nil { @@ -887,7 +908,7 @@ func (client *CachesClient) stopCreateRequest(ctx context.Context, resourceGroup return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-05-01") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -895,11 +916,12 @@ func (client *CachesClient) stopCreateRequest(ctx context.Context, resourceGroup // BeginStopPrimingJob - Schedule a priming job for deletion. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-05-01 -// resourceGroupName - Target resource group. -// cacheName - Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class. -// options - CachesClientBeginStopPrimingJobOptions contains the optional parameters for the CachesClient.BeginStopPrimingJob -// method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - Target resource group. +// - cacheName - Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class. +// - options - CachesClientBeginStopPrimingJobOptions contains the optional parameters for the CachesClient.BeginStopPrimingJob +// method. func (client *CachesClient) BeginStopPrimingJob(ctx context.Context, resourceGroupName string, cacheName string, options *CachesClientBeginStopPrimingJobOptions) (*runtime.Poller[CachesClientStopPrimingJobResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.stopPrimingJob(ctx, resourceGroupName, cacheName, options) @@ -916,7 +938,8 @@ func (client *CachesClient) BeginStopPrimingJob(ctx context.Context, resourceGro // StopPrimingJob - Schedule a priming job for deletion. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-05-01 +// +// Generated from API version 2023-01-01 func (client *CachesClient) stopPrimingJob(ctx context.Context, resourceGroupName string, cacheName string, options *CachesClientBeginStopPrimingJobOptions) (*http.Response, error) { req, err := client.stopPrimingJobCreateRequest(ctx, resourceGroupName, cacheName, options) if err != nil { @@ -952,7 +975,7 @@ func (client *CachesClient) stopPrimingJobCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-05-01") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} if options != nil && options.PrimingJobID != nil { @@ -961,31 +984,50 @@ func (client *CachesClient) stopPrimingJobCreateRequest(ctx context.Context, res return req, nil } +// BeginUpdate - Update a Cache instance. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - Target resource group. +// - cacheName - Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class. +// - cache - Object containing the user-selectable properties of the Cache. If read-only properties are included, they must +// match the existing values of those properties. +// - options - CachesClientBeginUpdateOptions contains the optional parameters for the CachesClient.BeginUpdate method. +func (client *CachesClient) BeginUpdate(ctx context.Context, resourceGroupName string, cacheName string, cache Cache, options *CachesClientBeginUpdateOptions) (*runtime.Poller[CachesClientUpdateResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.update(ctx, resourceGroupName, cacheName, cache, options) + if err != nil { + return nil, err + } + return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[CachesClientUpdateResponse]{ + FinalStateVia: runtime.FinalStateViaAzureAsyncOp, + }) + } else { + return runtime.NewPollerFromResumeToken[CachesClientUpdateResponse](options.ResumeToken, client.pl, nil) + } +} + // Update - Update a Cache instance. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-05-01 -// resourceGroupName - Target resource group. -// cacheName - Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class. -// cache - Object containing the user-selectable properties of the Cache. If read-only properties are included, they must -// match the existing values of those properties. -// options - CachesClientUpdateOptions contains the optional parameters for the CachesClient.Update method. -func (client *CachesClient) Update(ctx context.Context, resourceGroupName string, cacheName string, cache Cache, options *CachesClientUpdateOptions) (CachesClientUpdateResponse, error) { +// +// Generated from API version 2023-01-01 +func (client *CachesClient) update(ctx context.Context, resourceGroupName string, cacheName string, cache Cache, options *CachesClientBeginUpdateOptions) (*http.Response, error) { req, err := client.updateCreateRequest(ctx, resourceGroupName, cacheName, cache, options) if err != nil { - return CachesClientUpdateResponse{}, err + return nil, err } resp, err := client.pl.Do(req) if err != nil { - return CachesClientUpdateResponse{}, err + return nil, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return CachesClientUpdateResponse{}, runtime.NewResponseError(resp) + if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { + return nil, runtime.NewResponseError(resp) } - return client.updateHandleResponse(resp) + return resp, nil } // updateCreateRequest creates the Update request. -func (client *CachesClient) updateCreateRequest(ctx context.Context, resourceGroupName string, cacheName string, cache Cache, options *CachesClientUpdateOptions) (*policy.Request, error) { +func (client *CachesClient) updateCreateRequest(ctx context.Context, resourceGroupName string, cacheName string, cache Cache, options *CachesClientBeginUpdateOptions) (*policy.Request, error) { urlPath := "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}" if resourceGroupName == "" { return nil, errors.New("parameter resourceGroupName cannot be empty") @@ -1004,28 +1046,20 @@ func (client *CachesClient) updateCreateRequest(ctx context.Context, resourceGro return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-05-01") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, cache) } -// updateHandleResponse handles the Update response. -func (client *CachesClient) updateHandleResponse(resp *http.Response) (CachesClientUpdateResponse, error) { - result := CachesClientUpdateResponse{} - if err := runtime.UnmarshalAsJSON(resp, &result.Cache); err != nil { - return CachesClientUpdateResponse{}, err - } - return result, nil -} - // BeginUpgradeFirmware - Upgrade a Cache's firmware if a new version is available. Otherwise, this operation has no effect. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-05-01 -// resourceGroupName - Target resource group. -// cacheName - Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class. -// options - CachesClientBeginUpgradeFirmwareOptions contains the optional parameters for the CachesClient.BeginUpgradeFirmware -// method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - Target resource group. +// - cacheName - Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class. +// - options - CachesClientBeginUpgradeFirmwareOptions contains the optional parameters for the CachesClient.BeginUpgradeFirmware +// method. func (client *CachesClient) BeginUpgradeFirmware(ctx context.Context, resourceGroupName string, cacheName string, options *CachesClientBeginUpgradeFirmwareOptions) (*runtime.Poller[CachesClientUpgradeFirmwareResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.upgradeFirmware(ctx, resourceGroupName, cacheName, options) @@ -1042,7 +1076,8 @@ func (client *CachesClient) BeginUpgradeFirmware(ctx context.Context, resourceGr // UpgradeFirmware - Upgrade a Cache's firmware if a new version is available. Otherwise, this operation has no effect. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-05-01 +// +// Generated from API version 2023-01-01 func (client *CachesClient) upgradeFirmware(ctx context.Context, resourceGroupName string, cacheName string, options *CachesClientBeginUpgradeFirmwareOptions) (*http.Response, error) { req, err := client.upgradeFirmwareCreateRequest(ctx, resourceGroupName, cacheName, options) if err != nil { @@ -1078,7 +1113,7 @@ func (client *CachesClient) upgradeFirmwareCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-05-01") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/storagecache/armstoragecache/caches_client_example_test.go b/sdk/resourcemanager/storagecache/armstoragecache/caches_client_example_test.go index cc3f7796d3e0..c24d2251ba3d 100644 --- a/sdk/resourcemanager/storagecache/armstoragecache/caches_client_example_test.go +++ b/sdk/resourcemanager/storagecache/armstoragecache/caches_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armstoragecache_test @@ -16,10 +17,10 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storagecache/armstoragecache/v2" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storagecache/armstoragecache/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2022-05-01/examples/Caches_List.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/Caches_List.json func ExampleCachesClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -32,18 +33,260 @@ func ExampleCachesClient_NewListPager() { } pager := client.NewListPager(nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.CachesListResult = armstoragecache.CachesListResult{ + // Value: []*armstoragecache.Cache{ + // { + // Name: to.Ptr("sc1"), + // Type: to.Ptr("Microsoft.StorageCache/Cache"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.StorageCache/caches/sc1"), + // Location: to.Ptr("westus"), + // Properties: &armstoragecache.CacheProperties{ + // CacheSizeGB: to.Ptr[int32](3072), + // DirectoryServicesSettings: &armstoragecache.CacheDirectorySettings{ + // ActiveDirectory: &armstoragecache.CacheActiveDirectorySettings{ + // CacheNetBiosName: to.Ptr("contosoSmb"), + // DomainJoined: to.Ptr(armstoragecache.DomainJoinedTypeYes), + // DomainName: to.Ptr("contosoAd.contoso.local"), + // DomainNetBiosName: to.Ptr("contosoAd"), + // PrimaryDNSIPAddress: to.Ptr("192.0.2.10"), + // SecondaryDNSIPAddress: to.Ptr("192.0.2.11"), + // }, + // UsernameDownload: &armstoragecache.CacheUsernameDownloadSettings{ + // AutoDownloadCertificate: to.Ptr(false), + // CaCertificateURI: to.Ptr(""), + // EncryptLdapConnection: to.Ptr(false), + // ExtendedGroups: to.Ptr(true), + // GroupFileURI: to.Ptr(""), + // LdapBaseDN: to.Ptr("dc=contosoad,dc=contoso,dc=local"), + // LdapServer: to.Ptr("192.0.2.12"), + // RequireValidCertificate: to.Ptr(false), + // UserFileURI: to.Ptr(""), + // UsernameDownloaded: to.Ptr(armstoragecache.UsernameDownloadedTypeYes), + // UsernameSource: to.Ptr(armstoragecache.UsernameSourceLDAP), + // }, + // }, + // EncryptionSettings: &armstoragecache.CacheEncryptionSettings{ + // KeyEncryptionKey: &armstoragecache.KeyVaultKeyReference{ + // KeyURL: to.Ptr("https://keyvault-cmk.vault.azure.net/keys/key2048/test"), + // SourceVault: &armstoragecache.KeyVaultKeyReferenceSourceVault{ + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.KeyVault/vaults/keyvault-cmk"), + // }, + // }, + // }, + // Health: &armstoragecache.CacheHealth{ + // Conditions: []*armstoragecache.Condition{ + // { + // Message: to.Ptr("Cannot contact DNS server"), + // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-04-21T18:25:43.511Z"); return t}()), + // }}, + // State: to.Ptr(armstoragecache.HealthStateTypeTransitioning), + // StatusDescription: to.Ptr("Cache is being created."), + // }, + // MountAddresses: []*string{ + // to.Ptr("192.168.1.1"), + // to.Ptr("192.168.1.2")}, + // NetworkSettings: &armstoragecache.CacheNetworkSettings{ + // DNSSearchDomain: to.Ptr("contoso.com"), + // DNSServers: []*string{ + // to.Ptr("10.1.22.33"), + // to.Ptr("10.1.12.33")}, + // Mtu: to.Ptr[int32](1500), + // NtpServer: to.Ptr("time.contoso.com"), + // }, + // PrimingJobs: []*armstoragecache.PrimingJob{ + // }, + // ProvisioningState: to.Ptr(armstoragecache.ProvisioningStateTypeSucceeded), + // SecuritySettings: &armstoragecache.CacheSecuritySettings{ + // AccessPolicies: []*armstoragecache.NfsAccessPolicy{ + // { + // Name: to.Ptr("default"), + // AccessRules: []*armstoragecache.NfsAccessRule{ + // { + // Access: to.Ptr(armstoragecache.NfsAccessRuleAccessRw), + // RootSquash: to.Ptr(false), + // Scope: to.Ptr(armstoragecache.NfsAccessRuleScopeDefault), + // SubmountAccess: to.Ptr(true), + // Suid: to.Ptr(false), + // }}, + // }}, + // }, + // SpaceAllocation: []*armstoragecache.StorageTargetSpaceAllocation{ + // { + // Name: to.Ptr("st1"), + // AllocationPercentage: to.Ptr[int32](25), + // }, + // { + // Name: to.Ptr("st2"), + // AllocationPercentage: to.Ptr[int32](50), + // }, + // { + // Name: to.Ptr("st3"), + // AllocationPercentage: to.Ptr[int32](25), + // }}, + // Subnet: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.Network/virtualNetworks/scvnet/subnets/sub1"), + // UpgradeSettings: &armstoragecache.CacheUpgradeSettings{ + // ScheduledTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-04-26T18:25:43.511Z"); return t}()), + // UpgradeScheduleEnabled: to.Ptr(true), + // }, + // UpgradeStatus: &armstoragecache.CacheUpgradeStatus{ + // CurrentFirmwareVersion: to.Ptr("V5.1.12"), + // FirmwareUpdateDeadline: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-04-21T18:25:43.511Z"); return t}()), + // FirmwareUpdateStatus: to.Ptr(armstoragecache.FirmwareStatusTypeAvailable), + // LastFirmwareUpdate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-01-21T18:25:43.511Z"); return t}()), + // PendingFirmwareVersion: to.Ptr("V5.1.15"), + // }, + // }, + // SKU: &armstoragecache.CacheSKU{ + // Name: to.Ptr("Standard_2G"), + // }, + // SystemData: &armstoragecache.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-01T17:18:19.1234567Z"); return t}()), + // CreatedBy: to.Ptr("user1"), + // CreatedByType: to.Ptr(armstoragecache.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-02T17:18:19.1234567Z"); return t}()), + // LastModifiedBy: to.Ptr("user2"), + // LastModifiedByType: to.Ptr(armstoragecache.CreatedByTypeUser), + // }, + // Tags: map[string]*string{ + // "Dept": to.Ptr("Contoso"), + // }, + // }, + // { + // Name: to.Ptr("sc2"), + // Type: to.Ptr("Microsoft.StorageCache/Cache"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.StorageCache/caches/sc2"), + // Location: to.Ptr("westus"), + // Properties: &armstoragecache.CacheProperties{ + // CacheSizeGB: to.Ptr[int32](3072), + // DirectoryServicesSettings: &armstoragecache.CacheDirectorySettings{ + // ActiveDirectory: &armstoragecache.CacheActiveDirectorySettings{ + // CacheNetBiosName: to.Ptr("contosoSmb"), + // DomainJoined: to.Ptr(armstoragecache.DomainJoinedTypeYes), + // DomainName: to.Ptr("contosoAd.contoso.local"), + // DomainNetBiosName: to.Ptr("contosoAd"), + // PrimaryDNSIPAddress: to.Ptr("192.0.2.10"), + // SecondaryDNSIPAddress: to.Ptr("192.0.2.11"), + // }, + // UsernameDownload: &armstoragecache.CacheUsernameDownloadSettings{ + // AutoDownloadCertificate: to.Ptr(false), + // CaCertificateURI: to.Ptr(""), + // EncryptLdapConnection: to.Ptr(false), + // ExtendedGroups: to.Ptr(true), + // GroupFileURI: to.Ptr(""), + // LdapBaseDN: to.Ptr(""), + // LdapServer: to.Ptr(""), + // RequireValidCertificate: to.Ptr(false), + // UserFileURI: to.Ptr(""), + // UsernameDownloaded: to.Ptr(armstoragecache.UsernameDownloadedTypeYes), + // UsernameSource: to.Ptr(armstoragecache.UsernameSourceAD), + // }, + // }, + // EncryptionSettings: &armstoragecache.CacheEncryptionSettings{ + // KeyEncryptionKey: &armstoragecache.KeyVaultKeyReference{ + // KeyURL: to.Ptr("https://keyvault-cmk.vault.azure.net/keys/key2048/test"), + // SourceVault: &armstoragecache.KeyVaultKeyReferenceSourceVault{ + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.KeyVault/vaults/keyvault-cmk"), + // }, + // }, + // }, + // Health: &armstoragecache.CacheHealth{ + // Conditions: []*armstoragecache.Condition{ + // { + // Message: to.Ptr("Cannot contact DNS server"), + // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-04-21T18:25:43.511Z"); return t}()), + // }}, + // State: to.Ptr(armstoragecache.HealthStateTypeTransitioning), + // StatusDescription: to.Ptr("Cache is being created."), + // }, + // MountAddresses: []*string{ + // to.Ptr("192.168.1.1"), + // to.Ptr("192.168.1.2")}, + // NetworkSettings: &armstoragecache.CacheNetworkSettings{ + // DNSSearchDomain: to.Ptr("contoso.com"), + // DNSServers: []*string{ + // to.Ptr("10.1.22.33"), + // to.Ptr("10.1.12.33")}, + // Mtu: to.Ptr[int32](1500), + // NtpServer: to.Ptr("time.contoso.com"), + // }, + // PrimingJobs: []*armstoragecache.PrimingJob{ + // { + // PrimingJobDetails: to.Ptr("Files: Cached=635, Failed=0, Excluded=80, Data=346030 bytes, Directories: Cached=1003, Failed=0, Excluded=0"), + // PrimingJobID: to.Ptr("00000000000_0000000000"), + // PrimingJobName: to.Ptr("contosoJob1"), + // PrimingJobPercentComplete: to.Ptr[float64](100), + // PrimingJobState: to.Ptr(armstoragecache.PrimingJobStateComplete), + // PrimingJobStatus: to.Ptr("success"), + // }, + // { + // PrimingJobDetails: to.Ptr(""), + // PrimingJobID: to.Ptr("11111111111_1111111111"), + // PrimingJobName: to.Ptr("contosoJob2"), + // PrimingJobPercentComplete: to.Ptr[float64](0), + // PrimingJobState: to.Ptr(armstoragecache.PrimingJobStateQueued), + // PrimingJobStatus: to.Ptr(""), + // }}, + // ProvisioningState: to.Ptr(armstoragecache.ProvisioningStateTypeSucceeded), + // SecuritySettings: &armstoragecache.CacheSecuritySettings{ + // AccessPolicies: []*armstoragecache.NfsAccessPolicy{ + // { + // Name: to.Ptr("default"), + // AccessRules: []*armstoragecache.NfsAccessRule{ + // { + // Access: to.Ptr(armstoragecache.NfsAccessRuleAccessRw), + // RootSquash: to.Ptr(false), + // Scope: to.Ptr(armstoragecache.NfsAccessRuleScopeDefault), + // SubmountAccess: to.Ptr(true), + // Suid: to.Ptr(false), + // }}, + // }}, + // }, + // SpaceAllocation: []*armstoragecache.StorageTargetSpaceAllocation{ + // }, + // Subnet: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.Network/virtualNetworks/scvnet/subnets/sub2"), + // UpgradeSettings: &armstoragecache.CacheUpgradeSettings{ + // ScheduledTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-04-26T18:25:43.511Z"); return t}()), + // UpgradeScheduleEnabled: to.Ptr(true), + // }, + // UpgradeStatus: &armstoragecache.CacheUpgradeStatus{ + // CurrentFirmwareVersion: to.Ptr("V5.1.12"), + // FirmwareUpdateDeadline: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-04-21T18:25:43.511Z"); return t}()), + // FirmwareUpdateStatus: to.Ptr(armstoragecache.FirmwareStatusTypeAvailable), + // LastFirmwareUpdate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-01-21T18:25:43.511Z"); return t}()), + // PendingFirmwareVersion: to.Ptr("V5.1.15"), + // }, + // Zones: []*string{ + // to.Ptr("1")}, + // }, + // SKU: &armstoragecache.CacheSKU{ + // Name: to.Ptr("Standard_2G"), + // }, + // SystemData: &armstoragecache.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-01T17:18:19.1234567Z"); return t}()), + // CreatedBy: to.Ptr("user1"), + // CreatedByType: to.Ptr(armstoragecache.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-02T17:18:19.1234567Z"); return t}()), + // LastModifiedBy: to.Ptr("user2"), + // LastModifiedByType: to.Ptr(armstoragecache.CreatedByTypeUser), + // }, + // Tags: map[string]*string{ + // "Dept": to.Ptr("Contoso"), + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2022-05-01/examples/Caches_ListByResourceGroup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/Caches_ListByResourceGroup.json func ExampleCachesClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -54,21 +297,264 @@ func ExampleCachesClient_NewListByResourceGroupPager() { if err != nil { log.Fatalf("failed to create client: %v", err) } - pager := client.NewListByResourceGroupPager("scgroup", - nil) + pager := client.NewListByResourceGroupPager("scgroup", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.CachesListResult = armstoragecache.CachesListResult{ + // Value: []*armstoragecache.Cache{ + // { + // Name: to.Ptr("sc1"), + // Type: to.Ptr("Microsoft.StorageCache/Cache"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.StorageCache/caches/sc1"), + // Location: to.Ptr("westus"), + // Properties: &armstoragecache.CacheProperties{ + // CacheSizeGB: to.Ptr[int32](3072), + // DirectoryServicesSettings: &armstoragecache.CacheDirectorySettings{ + // ActiveDirectory: &armstoragecache.CacheActiveDirectorySettings{ + // CacheNetBiosName: to.Ptr("contosoSmb"), + // DomainJoined: to.Ptr(armstoragecache.DomainJoinedTypeYes), + // DomainName: to.Ptr("contosoAd.contoso.local"), + // DomainNetBiosName: to.Ptr("contosoAd"), + // PrimaryDNSIPAddress: to.Ptr("192.0.2.10"), + // SecondaryDNSIPAddress: to.Ptr("192.0.2.11"), + // }, + // UsernameDownload: &armstoragecache.CacheUsernameDownloadSettings{ + // AutoDownloadCertificate: to.Ptr(false), + // CaCertificateURI: to.Ptr(""), + // EncryptLdapConnection: to.Ptr(false), + // ExtendedGroups: to.Ptr(true), + // GroupFileURI: to.Ptr(""), + // LdapBaseDN: to.Ptr("dc=contosoad,dc=contoso,dc=local"), + // LdapServer: to.Ptr("192.0.2.12"), + // RequireValidCertificate: to.Ptr(false), + // UserFileURI: to.Ptr(""), + // UsernameDownloaded: to.Ptr(armstoragecache.UsernameDownloadedTypeYes), + // UsernameSource: to.Ptr(armstoragecache.UsernameSourceLDAP), + // }, + // }, + // EncryptionSettings: &armstoragecache.CacheEncryptionSettings{ + // KeyEncryptionKey: &armstoragecache.KeyVaultKeyReference{ + // KeyURL: to.Ptr("https://keyvault-cmk.vault.azure.net/keys/key2048/test"), + // SourceVault: &armstoragecache.KeyVaultKeyReferenceSourceVault{ + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.KeyVault/vaults/keyvault-cmk"), + // }, + // }, + // }, + // Health: &armstoragecache.CacheHealth{ + // Conditions: []*armstoragecache.Condition{ + // { + // Message: to.Ptr("Cannot contact DNS server"), + // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-04-21T18:25:43.511Z"); return t}()), + // }}, + // State: to.Ptr(armstoragecache.HealthStateTypeTransitioning), + // StatusDescription: to.Ptr("Cache is being created."), + // }, + // MountAddresses: []*string{ + // to.Ptr("192.168.1.1"), + // to.Ptr("192.168.1.2")}, + // NetworkSettings: &armstoragecache.CacheNetworkSettings{ + // DNSSearchDomain: to.Ptr("contoso.com"), + // DNSServers: []*string{ + // to.Ptr("10.1.22.33"), + // to.Ptr("10.1.12.33")}, + // Mtu: to.Ptr[int32](1500), + // NtpServer: to.Ptr("time.contoso.com"), + // }, + // PrimingJobs: []*armstoragecache.PrimingJob{ + // }, + // ProvisioningState: to.Ptr(armstoragecache.ProvisioningStateTypeSucceeded), + // SecuritySettings: &armstoragecache.CacheSecuritySettings{ + // AccessPolicies: []*armstoragecache.NfsAccessPolicy{ + // { + // Name: to.Ptr("default"), + // AccessRules: []*armstoragecache.NfsAccessRule{ + // { + // Access: to.Ptr(armstoragecache.NfsAccessRuleAccessRw), + // RootSquash: to.Ptr(false), + // Scope: to.Ptr(armstoragecache.NfsAccessRuleScopeDefault), + // SubmountAccess: to.Ptr(true), + // Suid: to.Ptr(false), + // }}, + // }}, + // }, + // SpaceAllocation: []*armstoragecache.StorageTargetSpaceAllocation{ + // { + // Name: to.Ptr("st1"), + // AllocationPercentage: to.Ptr[int32](25), + // }, + // { + // Name: to.Ptr("st2"), + // AllocationPercentage: to.Ptr[int32](50), + // }, + // { + // Name: to.Ptr("st3"), + // AllocationPercentage: to.Ptr[int32](25), + // }}, + // Subnet: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.Network/virtualNetworks/scvnet/subnets/sub1"), + // UpgradeSettings: &armstoragecache.CacheUpgradeSettings{ + // ScheduledTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-04-26T18:25:43.511Z"); return t}()), + // UpgradeScheduleEnabled: to.Ptr(true), + // }, + // UpgradeStatus: &armstoragecache.CacheUpgradeStatus{ + // CurrentFirmwareVersion: to.Ptr("V5.1.12"), + // FirmwareUpdateDeadline: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-04-21T18:25:43.511Z"); return t}()), + // FirmwareUpdateStatus: to.Ptr(armstoragecache.FirmwareStatusTypeAvailable), + // LastFirmwareUpdate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-01-21T18:25:43.511Z"); return t}()), + // PendingFirmwareVersion: to.Ptr("V5.1.15"), + // }, + // Zones: []*string{ + // to.Ptr("1")}, + // }, + // SKU: &armstoragecache.CacheSKU{ + // Name: to.Ptr("Standard_2G"), + // }, + // SystemData: &armstoragecache.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-01T17:18:19.1234567Z"); return t}()), + // CreatedBy: to.Ptr("user1"), + // CreatedByType: to.Ptr(armstoragecache.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-02T17:18:19.1234567Z"); return t}()), + // LastModifiedBy: to.Ptr("user2"), + // LastModifiedByType: to.Ptr(armstoragecache.CreatedByTypeUser), + // }, + // Tags: map[string]*string{ + // "Dept": to.Ptr("Contoso"), + // }, + // }, + // { + // Name: to.Ptr("sc2"), + // Type: to.Ptr("Microsoft.StorageCache/Cache"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.StorageCache/caches/sc2"), + // Location: to.Ptr("westus"), + // Properties: &armstoragecache.CacheProperties{ + // CacheSizeGB: to.Ptr[int32](3072), + // DirectoryServicesSettings: &armstoragecache.CacheDirectorySettings{ + // ActiveDirectory: &armstoragecache.CacheActiveDirectorySettings{ + // CacheNetBiosName: to.Ptr("contosoSmb"), + // DomainJoined: to.Ptr(armstoragecache.DomainJoinedTypeYes), + // DomainName: to.Ptr("contosoAd.contoso.local"), + // DomainNetBiosName: to.Ptr("contosoAd"), + // PrimaryDNSIPAddress: to.Ptr("192.0.2.10"), + // SecondaryDNSIPAddress: to.Ptr("192.0.2.11"), + // }, + // UsernameDownload: &armstoragecache.CacheUsernameDownloadSettings{ + // AutoDownloadCertificate: to.Ptr(false), + // CaCertificateURI: to.Ptr(""), + // EncryptLdapConnection: to.Ptr(false), + // ExtendedGroups: to.Ptr(true), + // GroupFileURI: to.Ptr(""), + // LdapBaseDN: to.Ptr(""), + // LdapServer: to.Ptr(""), + // RequireValidCertificate: to.Ptr(false), + // UserFileURI: to.Ptr(""), + // UsernameDownloaded: to.Ptr(armstoragecache.UsernameDownloadedTypeYes), + // UsernameSource: to.Ptr(armstoragecache.UsernameSourceAD), + // }, + // }, + // EncryptionSettings: &armstoragecache.CacheEncryptionSettings{ + // KeyEncryptionKey: &armstoragecache.KeyVaultKeyReference{ + // KeyURL: to.Ptr("https://keyvault-cmk.vault.azure.net/keys/key2048/test"), + // SourceVault: &armstoragecache.KeyVaultKeyReferenceSourceVault{ + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.KeyVault/vaults/keyvault-cmk"), + // }, + // }, + // }, + // Health: &armstoragecache.CacheHealth{ + // Conditions: []*armstoragecache.Condition{ + // { + // Message: to.Ptr("Cannot contact DNS server"), + // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-04-21T18:25:43.511Z"); return t}()), + // }}, + // State: to.Ptr(armstoragecache.HealthStateTypeTransitioning), + // StatusDescription: to.Ptr("Cache is being created."), + // }, + // MountAddresses: []*string{ + // to.Ptr("192.168.1.1"), + // to.Ptr("192.168.1.2")}, + // NetworkSettings: &armstoragecache.CacheNetworkSettings{ + // DNSSearchDomain: to.Ptr("contoso.com"), + // DNSServers: []*string{ + // to.Ptr("10.1.22.33"), + // to.Ptr("10.1.12.33")}, + // Mtu: to.Ptr[int32](1500), + // NtpServer: to.Ptr("time.contoso.com"), + // }, + // PrimingJobs: []*armstoragecache.PrimingJob{ + // { + // PrimingJobDetails: to.Ptr("Files: Cached=635, Failed=0, Excluded=80, Data=346030 bytes, Directories: Cached=1003, Failed=0, Excluded=0"), + // PrimingJobID: to.Ptr("00000000000_0000000000"), + // PrimingJobName: to.Ptr("contosoJob1"), + // PrimingJobPercentComplete: to.Ptr[float64](100), + // PrimingJobState: to.Ptr(armstoragecache.PrimingJobStateComplete), + // PrimingJobStatus: to.Ptr("success"), + // }, + // { + // PrimingJobDetails: to.Ptr(""), + // PrimingJobID: to.Ptr("11111111111_1111111111"), + // PrimingJobName: to.Ptr("contosoJob2"), + // PrimingJobPercentComplete: to.Ptr[float64](0), + // PrimingJobState: to.Ptr(armstoragecache.PrimingJobStateQueued), + // PrimingJobStatus: to.Ptr(""), + // }}, + // ProvisioningState: to.Ptr(armstoragecache.ProvisioningStateTypeSucceeded), + // SecuritySettings: &armstoragecache.CacheSecuritySettings{ + // AccessPolicies: []*armstoragecache.NfsAccessPolicy{ + // { + // Name: to.Ptr("default"), + // AccessRules: []*armstoragecache.NfsAccessRule{ + // { + // Access: to.Ptr(armstoragecache.NfsAccessRuleAccessRw), + // RootSquash: to.Ptr(false), + // Scope: to.Ptr(armstoragecache.NfsAccessRuleScopeDefault), + // SubmountAccess: to.Ptr(true), + // Suid: to.Ptr(false), + // }}, + // }}, + // }, + // SpaceAllocation: []*armstoragecache.StorageTargetSpaceAllocation{ + // }, + // Subnet: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.Network/virtualNetworks/scvnet/subnets/sub2"), + // UpgradeSettings: &armstoragecache.CacheUpgradeSettings{ + // ScheduledTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-04-26T18:25:43.511Z"); return t}()), + // UpgradeScheduleEnabled: to.Ptr(true), + // }, + // UpgradeStatus: &armstoragecache.CacheUpgradeStatus{ + // CurrentFirmwareVersion: to.Ptr("V5.1.12"), + // FirmwareUpdateDeadline: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-04-21T18:25:43.511Z"); return t}()), + // FirmwareUpdateStatus: to.Ptr(armstoragecache.FirmwareStatusTypeAvailable), + // LastFirmwareUpdate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-01-21T18:25:43.511Z"); return t}()), + // PendingFirmwareVersion: to.Ptr("V5.1.15"), + // }, + // Zones: []*string{ + // to.Ptr("2")}, + // }, + // SKU: &armstoragecache.CacheSKU{ + // Name: to.Ptr("Standard_2G"), + // }, + // SystemData: &armstoragecache.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-01T17:18:19.1234567Z"); return t}()), + // CreatedBy: to.Ptr("user1"), + // CreatedByType: to.Ptr(armstoragecache.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-02T17:18:19.1234567Z"); return t}()), + // LastModifiedBy: to.Ptr("user2"), + // LastModifiedByType: to.Ptr(armstoragecache.CreatedByTypeUser), + // }, + // Tags: map[string]*string{ + // "Dept": to.Ptr("Contoso"), + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2022-05-01/examples/Caches_Delete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/Caches_Delete.json func ExampleCachesClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -79,10 +565,7 @@ func ExampleCachesClient_BeginDelete() { if err != nil { log.Fatalf("failed to create client: %v", err) } - poller, err := client.BeginDelete(ctx, - "scgroup", - "sc", - nil) + poller, err := client.BeginDelete(ctx, "scgroup", "sc", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } @@ -92,7 +575,7 @@ func ExampleCachesClient_BeginDelete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2022-05-01/examples/Caches_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/Caches_Get.json func ExampleCachesClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -103,19 +586,150 @@ func ExampleCachesClient_Get() { if err != nil { log.Fatalf("failed to create client: %v", err) } - res, err := client.Get(ctx, - "scgroup", - "sc1", - nil) + res, err := client.Get(ctx, "scgroup", "sc1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.Cache = armstoragecache.Cache{ + // Name: to.Ptr("sc1"), + // Type: to.Ptr("Microsoft.StorageCache/Cache"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.StorageCache/caches/sc1"), + // Location: to.Ptr("westus"), + // Properties: &armstoragecache.CacheProperties{ + // CacheSizeGB: to.Ptr[int32](3072), + // DirectoryServicesSettings: &armstoragecache.CacheDirectorySettings{ + // ActiveDirectory: &armstoragecache.CacheActiveDirectorySettings{ + // CacheNetBiosName: to.Ptr("contosoSmb"), + // DomainJoined: to.Ptr(armstoragecache.DomainJoinedTypeYes), + // DomainName: to.Ptr("contosoAd.contoso.local"), + // DomainNetBiosName: to.Ptr("contosoAd"), + // PrimaryDNSIPAddress: to.Ptr("192.0.2.10"), + // SecondaryDNSIPAddress: to.Ptr("192.0.2.11"), + // }, + // UsernameDownload: &armstoragecache.CacheUsernameDownloadSettings{ + // AutoDownloadCertificate: to.Ptr(false), + // CaCertificateURI: to.Ptr(""), + // EncryptLdapConnection: to.Ptr(false), + // ExtendedGroups: to.Ptr(true), + // GroupFileURI: to.Ptr(""), + // LdapBaseDN: to.Ptr("dc=contosoad,dc=contoso,dc=local"), + // LdapServer: to.Ptr("192.0.2.12"), + // RequireValidCertificate: to.Ptr(false), + // UserFileURI: to.Ptr(""), + // UsernameDownloaded: to.Ptr(armstoragecache.UsernameDownloadedTypeYes), + // UsernameSource: to.Ptr(armstoragecache.UsernameSourceLDAP), + // }, + // }, + // EncryptionSettings: &armstoragecache.CacheEncryptionSettings{ + // KeyEncryptionKey: &armstoragecache.KeyVaultKeyReference{ + // KeyURL: to.Ptr("https://keyvault-cmk.vault.azure.net/keys/key2048/test"), + // SourceVault: &armstoragecache.KeyVaultKeyReferenceSourceVault{ + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.KeyVault/vaults/keyvault-cmk"), + // }, + // }, + // }, + // Health: &armstoragecache.CacheHealth{ + // Conditions: []*armstoragecache.Condition{ + // { + // Message: to.Ptr("Cannot contact DNS server"), + // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-04-21T18:25:43.511Z"); return t}()), + // }}, + // State: to.Ptr(armstoragecache.HealthStateTypeTransitioning), + // StatusDescription: to.Ptr("Cache is being created."), + // }, + // MountAddresses: []*string{ + // to.Ptr("192.168.1.1"), + // to.Ptr("192.168.1.2")}, + // NetworkSettings: &armstoragecache.CacheNetworkSettings{ + // DNSSearchDomain: to.Ptr("contoso.com"), + // DNSServers: []*string{ + // to.Ptr("10.1.22.33"), + // to.Ptr("10.1.12.33")}, + // Mtu: to.Ptr[int32](1500), + // NtpServer: to.Ptr("time.contoso.com"), + // }, + // PrimingJobs: []*armstoragecache.PrimingJob{ + // { + // PrimingJobDetails: to.Ptr("Files: Cached=635, Failed=0, Excluded=80, Data=346030 bytes, Directories: Cached=1003, Failed=0, Excluded=0"), + // PrimingJobID: to.Ptr("00000000000_0000000000"), + // PrimingJobName: to.Ptr("contosoJob1"), + // PrimingJobPercentComplete: to.Ptr[float64](100), + // PrimingJobState: to.Ptr(armstoragecache.PrimingJobStateComplete), + // PrimingJobStatus: to.Ptr("success"), + // }, + // { + // PrimingJobDetails: to.Ptr(""), + // PrimingJobID: to.Ptr("11111111111_1111111111"), + // PrimingJobName: to.Ptr("contosoJob2"), + // PrimingJobPercentComplete: to.Ptr[float64](0), + // PrimingJobState: to.Ptr(armstoragecache.PrimingJobStateQueued), + // PrimingJobStatus: to.Ptr(""), + // }}, + // ProvisioningState: to.Ptr(armstoragecache.ProvisioningStateTypeSucceeded), + // SecuritySettings: &armstoragecache.CacheSecuritySettings{ + // AccessPolicies: []*armstoragecache.NfsAccessPolicy{ + // { + // Name: to.Ptr("default"), + // AccessRules: []*armstoragecache.NfsAccessRule{ + // { + // Access: to.Ptr(armstoragecache.NfsAccessRuleAccessRw), + // RootSquash: to.Ptr(false), + // Scope: to.Ptr(armstoragecache.NfsAccessRuleScopeDefault), + // SubmountAccess: to.Ptr(true), + // Suid: to.Ptr(false), + // }}, + // }}, + // }, + // SpaceAllocation: []*armstoragecache.StorageTargetSpaceAllocation{ + // { + // Name: to.Ptr("st1"), + // AllocationPercentage: to.Ptr[int32](25), + // }, + // { + // Name: to.Ptr("st2"), + // AllocationPercentage: to.Ptr[int32](50), + // }, + // { + // Name: to.Ptr("st3"), + // AllocationPercentage: to.Ptr[int32](25), + // }}, + // Subnet: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.Network/virtualNetworks/scvnet/subnets/sub1"), + // UpgradeSettings: &armstoragecache.CacheUpgradeSettings{ + // ScheduledTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-04-26T18:25:43.511Z"); return t}()), + // UpgradeScheduleEnabled: to.Ptr(true), + // }, + // UpgradeStatus: &armstoragecache.CacheUpgradeStatus{ + // CurrentFirmwareVersion: to.Ptr("V5.1.12"), + // FirmwareUpdateDeadline: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-04-21T18:25:43.511Z"); return t}()), + // FirmwareUpdateStatus: to.Ptr(armstoragecache.FirmwareStatusTypeAvailable), + // LastFirmwareUpdate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-01-21T18:25:43.511Z"); return t}()), + // PendingFirmwareVersion: to.Ptr("V5.1.15"), + // }, + // Zones: []*string{ + // to.Ptr("1")}, + // }, + // SKU: &armstoragecache.CacheSKU{ + // Name: to.Ptr("Standard_2G"), + // }, + // SystemData: &armstoragecache.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-01T17:18:19.1234567Z"); return t}()), + // CreatedBy: to.Ptr("user1"), + // CreatedByType: to.Ptr(armstoragecache.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-02T17:18:19.1234567Z"); return t}()), + // LastModifiedBy: to.Ptr("user2"), + // LastModifiedByType: to.Ptr(armstoragecache.CreatedByTypeUser), + // }, + // Tags: map[string]*string{ + // "Dept": to.Ptr("Contoso"), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2022-05-01/examples/Caches_CreateOrUpdate.json -func ExampleCachesClient_BeginCreateOrUpdate() { +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/Caches_CreateOrUpdate.json +func ExampleCachesClient_BeginCreateOrUpdate_cachesCreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -125,78 +739,74 @@ func ExampleCachesClient_BeginCreateOrUpdate() { if err != nil { log.Fatalf("failed to create client: %v", err) } - poller, err := client.BeginCreateOrUpdate(ctx, - "scgroup", - "sc1", - armstoragecache.Cache{ - Identity: &armstoragecache.CacheIdentity{ - Type: to.Ptr(armstoragecache.CacheIdentityTypeUserAssigned), - UserAssignedIdentities: map[string]*armstoragecache.UserAssignedIdentitiesValue{ - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1": {}, - }, + poller, err := client.BeginCreateOrUpdate(ctx, "scgroup", "sc1", armstoragecache.Cache{ + Identity: &armstoragecache.CacheIdentity{ + Type: to.Ptr(armstoragecache.CacheIdentityTypeUserAssigned), + UserAssignedIdentities: map[string]*armstoragecache.UserAssignedIdentitiesValue{ + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1": {}, }, - Location: to.Ptr("westus"), - Properties: &armstoragecache.CacheProperties{ - CacheSizeGB: to.Ptr[int32](3072), - DirectoryServicesSettings: &armstoragecache.CacheDirectorySettings{ - ActiveDirectory: &armstoragecache.CacheActiveDirectorySettings{ - CacheNetBiosName: to.Ptr("contosoSmb"), - Credentials: &armstoragecache.CacheActiveDirectorySettingsCredentials{ - Password: to.Ptr(""), - Username: to.Ptr("consotoAdmin"), - }, - DomainName: to.Ptr("contosoAd.contoso.local"), - DomainNetBiosName: to.Ptr("contosoAd"), - PrimaryDNSIPAddress: to.Ptr("192.0.2.10"), - SecondaryDNSIPAddress: to.Ptr("192.0.2.11"), - }, - UsernameDownload: &armstoragecache.CacheUsernameDownloadSettings{ - Credentials: &armstoragecache.CacheUsernameDownloadSettingsCredentials{ - BindDn: to.Ptr("cn=ldapadmin,dc=contosoad,dc=contoso,dc=local"), - BindPassword: to.Ptr(""), - }, - ExtendedGroups: to.Ptr(true), - LdapBaseDN: to.Ptr("dc=contosoad,dc=contoso,dc=local"), - LdapServer: to.Ptr("192.0.2.12"), - UsernameSource: to.Ptr(armstoragecache.UsernameSourceLDAP), + }, + Location: to.Ptr("westus"), + Properties: &armstoragecache.CacheProperties{ + CacheSizeGB: to.Ptr[int32](3072), + DirectoryServicesSettings: &armstoragecache.CacheDirectorySettings{ + ActiveDirectory: &armstoragecache.CacheActiveDirectorySettings{ + CacheNetBiosName: to.Ptr("contosoSmb"), + Credentials: &armstoragecache.CacheActiveDirectorySettingsCredentials{ + Password: to.Ptr(""), + Username: to.Ptr("consotoAdmin"), }, + DomainName: to.Ptr("contosoAd.contoso.local"), + DomainNetBiosName: to.Ptr("contosoAd"), + PrimaryDNSIPAddress: to.Ptr("192.0.2.10"), + SecondaryDNSIPAddress: to.Ptr("192.0.2.11"), }, - EncryptionSettings: &armstoragecache.CacheEncryptionSettings{ - KeyEncryptionKey: &armstoragecache.KeyVaultKeyReference{ - KeyURL: to.Ptr("https://keyvault-cmk.vault.azure.net/keys/key2047/test"), - SourceVault: &armstoragecache.KeyVaultKeyReferenceSourceVault{ - ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.KeyVault/vaults/keyvault-cmk"), - }, + UsernameDownload: &armstoragecache.CacheUsernameDownloadSettings{ + Credentials: &armstoragecache.CacheUsernameDownloadSettingsCredentials{ + BindDn: to.Ptr("cn=ldapadmin,dc=contosoad,dc=contoso,dc=local"), + BindPassword: to.Ptr(""), }, + ExtendedGroups: to.Ptr(true), + LdapBaseDN: to.Ptr("dc=contosoad,dc=contoso,dc=local"), + LdapServer: to.Ptr("192.0.2.12"), + UsernameSource: to.Ptr(armstoragecache.UsernameSourceLDAP), }, - SecuritySettings: &armstoragecache.CacheSecuritySettings{ - AccessPolicies: []*armstoragecache.NfsAccessPolicy{ - { - Name: to.Ptr("default"), - AccessRules: []*armstoragecache.NfsAccessRule{ - { - Access: to.Ptr(armstoragecache.NfsAccessRuleAccessRw), - RootSquash: to.Ptr(false), - Scope: to.Ptr(armstoragecache.NfsAccessRuleScopeDefault), - SubmountAccess: to.Ptr(true), - Suid: to.Ptr(false), - }}, - }}, - }, - Subnet: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.Network/virtualNetworks/scvnet/subnets/sub1"), - UpgradeSettings: &armstoragecache.CacheUpgradeSettings{ - ScheduledTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-04-26T18:25:43.511Z"); return t }()), - UpgradeScheduleEnabled: to.Ptr(true), + }, + EncryptionSettings: &armstoragecache.CacheEncryptionSettings{ + KeyEncryptionKey: &armstoragecache.KeyVaultKeyReference{ + KeyURL: to.Ptr("https://keyvault-cmk.vault.azure.net/keys/key2047/test"), + SourceVault: &armstoragecache.KeyVaultKeyReferenceSourceVault{ + ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.KeyVault/vaults/keyvault-cmk"), + }, }, }, - SKU: &armstoragecache.CacheSKU{ - Name: to.Ptr("Standard_2G"), + SecuritySettings: &armstoragecache.CacheSecuritySettings{ + AccessPolicies: []*armstoragecache.NfsAccessPolicy{ + { + Name: to.Ptr("default"), + AccessRules: []*armstoragecache.NfsAccessRule{ + { + Access: to.Ptr(armstoragecache.NfsAccessRuleAccessRw), + RootSquash: to.Ptr(false), + Scope: to.Ptr(armstoragecache.NfsAccessRuleScopeDefault), + SubmountAccess: to.Ptr(true), + Suid: to.Ptr(false), + }}, + }}, }, - Tags: map[string]*string{ - "Dept": to.Ptr("Contoso"), + Subnet: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.Network/virtualNetworks/scvnet/subnets/sub1"), + UpgradeSettings: &armstoragecache.CacheUpgradeSettings{ + ScheduledTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-04-26T18:25:43.511Z"); return t }()), + UpgradeScheduleEnabled: to.Ptr(true), }, }, - nil) + SKU: &armstoragecache.CacheSKU{ + Name: to.Ptr("Standard_2G"), + }, + Tags: map[string]*string{ + "Dept": to.Ptr("Contoso"), + }, + }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } @@ -204,12 +814,135 @@ func ExampleCachesClient_BeginCreateOrUpdate() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.Cache = armstoragecache.Cache{ + // Name: to.Ptr("sc1"), + // Type: to.Ptr("Microsoft.StorageCache/Cache"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.StorageCache/caches/sc1"), + // Location: to.Ptr("westus"), + // Properties: &armstoragecache.CacheProperties{ + // CacheSizeGB: to.Ptr[int32](3072), + // DirectoryServicesSettings: &armstoragecache.CacheDirectorySettings{ + // ActiveDirectory: &armstoragecache.CacheActiveDirectorySettings{ + // CacheNetBiosName: to.Ptr("contosoSmb"), + // DomainJoined: to.Ptr(armstoragecache.DomainJoinedTypeYes), + // DomainName: to.Ptr("contosoAd.contoso.local"), + // DomainNetBiosName: to.Ptr("contosoAd"), + // PrimaryDNSIPAddress: to.Ptr("192.0.2.10"), + // SecondaryDNSIPAddress: to.Ptr("192.0.2.11"), + // }, + // UsernameDownload: &armstoragecache.CacheUsernameDownloadSettings{ + // AutoDownloadCertificate: to.Ptr(false), + // CaCertificateURI: to.Ptr(""), + // EncryptLdapConnection: to.Ptr(false), + // ExtendedGroups: to.Ptr(true), + // GroupFileURI: to.Ptr(""), + // LdapBaseDN: to.Ptr("dc=contosoad,dc=contoso,dc=local"), + // LdapServer: to.Ptr("192.0.2.12"), + // RequireValidCertificate: to.Ptr(false), + // UserFileURI: to.Ptr(""), + // UsernameDownloaded: to.Ptr(armstoragecache.UsernameDownloadedTypeYes), + // UsernameSource: to.Ptr(armstoragecache.UsernameSourceLDAP), + // }, + // }, + // EncryptionSettings: &armstoragecache.CacheEncryptionSettings{ + // KeyEncryptionKey: &armstoragecache.KeyVaultKeyReference{ + // KeyURL: to.Ptr("https://keyvault-cmk.vault.azure.net/keys/key2048/test"), + // SourceVault: &armstoragecache.KeyVaultKeyReferenceSourceVault{ + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.KeyVault/vaults/keyvault-cmk"), + // }, + // }, + // }, + // Health: &armstoragecache.CacheHealth{ + // Conditions: []*armstoragecache.Condition{ + // { + // Message: to.Ptr("Cannot contact DNS server"), + // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-04-21T18:25:43.511Z"); return t}()), + // }}, + // State: to.Ptr(armstoragecache.HealthStateTypeTransitioning), + // StatusDescription: to.Ptr("Cache is being created."), + // }, + // MountAddresses: []*string{ + // to.Ptr("192.168.1.1"), + // to.Ptr("192.168.1.2")}, + // NetworkSettings: &armstoragecache.CacheNetworkSettings{ + // DNSSearchDomain: to.Ptr("contoso.com"), + // DNSServers: []*string{ + // to.Ptr("10.1.22.33"), + // to.Ptr("10.1.12.33")}, + // Mtu: to.Ptr[int32](1500), + // NtpServer: to.Ptr("time.contoso.com"), + // }, + // PrimingJobs: []*armstoragecache.PrimingJob{ + // { + // PrimingJobDetails: to.Ptr("Files: Cached=635, Failed=0, Excluded=80, Data=346030 bytes, Directories: Cached=1003, Failed=0, Excluded=0"), + // PrimingJobID: to.Ptr("00000000000_0000000000"), + // PrimingJobName: to.Ptr("contosoJob1"), + // PrimingJobPercentComplete: to.Ptr[float64](100), + // PrimingJobState: to.Ptr(armstoragecache.PrimingJobStateComplete), + // PrimingJobStatus: to.Ptr("success"), + // }, + // { + // PrimingJobDetails: to.Ptr(""), + // PrimingJobID: to.Ptr("11111111111_1111111111"), + // PrimingJobName: to.Ptr("contosoJob2"), + // PrimingJobPercentComplete: to.Ptr[float64](0), + // PrimingJobState: to.Ptr(armstoragecache.PrimingJobStateQueued), + // PrimingJobStatus: to.Ptr(""), + // }}, + // ProvisioningState: to.Ptr(armstoragecache.ProvisioningStateTypeSucceeded), + // SecuritySettings: &armstoragecache.CacheSecuritySettings{ + // AccessPolicies: []*armstoragecache.NfsAccessPolicy{ + // { + // Name: to.Ptr("default"), + // AccessRules: []*armstoragecache.NfsAccessRule{ + // { + // Access: to.Ptr(armstoragecache.NfsAccessRuleAccessRw), + // RootSquash: to.Ptr(false), + // Scope: to.Ptr(armstoragecache.NfsAccessRuleScopeDefault), + // SubmountAccess: to.Ptr(true), + // Suid: to.Ptr(false), + // }}, + // }}, + // }, + // SpaceAllocation: []*armstoragecache.StorageTargetSpaceAllocation{ + // }, + // Subnet: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.Network/virtualNetworks/scvnet/subnets/sub1"), + // UpgradeSettings: &armstoragecache.CacheUpgradeSettings{ + // ScheduledTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-04-26T18:25:43.511Z"); return t}()), + // UpgradeScheduleEnabled: to.Ptr(true), + // }, + // UpgradeStatus: &armstoragecache.CacheUpgradeStatus{ + // CurrentFirmwareVersion: to.Ptr("V5.1.12"), + // FirmwareUpdateDeadline: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-04-21T18:25:43.511Z"); return t}()), + // FirmwareUpdateStatus: to.Ptr(armstoragecache.FirmwareStatusTypeAvailable), + // LastFirmwareUpdate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-01-21T18:25:43.511Z"); return t}()), + // PendingFirmwareVersion: to.Ptr("V5.1.15"), + // }, + // Zones: []*string{ + // to.Ptr("1")}, + // }, + // SKU: &armstoragecache.CacheSKU{ + // Name: to.Ptr("Standard_2G"), + // }, + // SystemData: &armstoragecache.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-01T17:18:19.1234567Z"); return t}()), + // CreatedBy: to.Ptr("user1"), + // CreatedByType: to.Ptr(armstoragecache.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-02T17:18:19.1234567Z"); return t}()), + // LastModifiedBy: to.Ptr("user2"), + // LastModifiedByType: to.Ptr(armstoragecache.CreatedByTypeUser), + // }, + // Tags: map[string]*string{ + // "Dept": to.Ptr("Contoso"), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2022-05-01/examples/Caches_Update.json -func ExampleCachesClient_Update() { +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/Caches_CreateOrUpdate_ldap_only.json +func ExampleCachesClient_BeginCreateOrUpdate_cachesCreateOrUpdateLdapOnly() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -219,99 +952,676 @@ func ExampleCachesClient_Update() { if err != nil { log.Fatalf("failed to create client: %v", err) } - res, err := client.Update(ctx, - "scgroup", - "sc1", - armstoragecache.Cache{ - Location: to.Ptr("westus"), - Properties: &armstoragecache.CacheProperties{ - CacheSizeGB: to.Ptr[int32](3072), - DirectoryServicesSettings: &armstoragecache.CacheDirectorySettings{ - ActiveDirectory: &armstoragecache.CacheActiveDirectorySettings{ - CacheNetBiosName: to.Ptr("contosoSmb"), - DomainName: to.Ptr("contosoAd.contoso.local"), - DomainNetBiosName: to.Ptr("contosoAd"), - PrimaryDNSIPAddress: to.Ptr("192.0.2.10"), - SecondaryDNSIPAddress: to.Ptr("192.0.2.11"), + poller, err := client.BeginCreateOrUpdate(ctx, "scgroup", "sc1", armstoragecache.Cache{ + Location: to.Ptr("westus"), + Properties: &armstoragecache.CacheProperties{ + CacheSizeGB: to.Ptr[int32](3072), + DirectoryServicesSettings: &armstoragecache.CacheDirectorySettings{ + UsernameDownload: &armstoragecache.CacheUsernameDownloadSettings{ + Credentials: &armstoragecache.CacheUsernameDownloadSettingsCredentials{ + BindDn: to.Ptr("cn=ldapadmin,dc=contosoad,dc=contoso,dc=local"), + BindPassword: to.Ptr(""), }, - UsernameDownload: &armstoragecache.CacheUsernameDownloadSettings{ - ExtendedGroups: to.Ptr(true), - UsernameSource: to.Ptr(armstoragecache.UsernameSourceAD), + ExtendedGroups: to.Ptr(true), + LdapBaseDN: to.Ptr("dc=contosoad,dc=contoso,dc=local"), + LdapServer: to.Ptr("192.0.2.12"), + UsernameSource: to.Ptr(armstoragecache.UsernameSourceLDAP), + }, + }, + EncryptionSettings: &armstoragecache.CacheEncryptionSettings{ + KeyEncryptionKey: &armstoragecache.KeyVaultKeyReference{ + KeyURL: to.Ptr("https://keyvault-cmk.vault.azure.net/keys/key2048/test"), + SourceVault: &armstoragecache.KeyVaultKeyReferenceSourceVault{ + ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.KeyVault/vaults/keyvault-cmk"), }, }, - NetworkSettings: &armstoragecache.CacheNetworkSettings{ - DNSSearchDomain: to.Ptr("contoso.com"), - DNSServers: []*string{ - to.Ptr("10.1.22.33"), - to.Ptr("10.1.12.33")}, - Mtu: to.Ptr[int32](1500), - NtpServer: to.Ptr("time.contoso.com"), + }, + SecuritySettings: &armstoragecache.CacheSecuritySettings{ + AccessPolicies: []*armstoragecache.NfsAccessPolicy{ + { + Name: to.Ptr("default"), + AccessRules: []*armstoragecache.NfsAccessRule{ + { + Access: to.Ptr(armstoragecache.NfsAccessRuleAccessRw), + RootSquash: to.Ptr(false), + Scope: to.Ptr(armstoragecache.NfsAccessRuleScopeDefault), + SubmountAccess: to.Ptr(true), + Suid: to.Ptr(false), + }}, + }}, + }, + Subnet: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.Network/virtualNetworks/scvnet/subnets/sub1"), + UpgradeSettings: &armstoragecache.CacheUpgradeSettings{ + ScheduledTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-04-26T18:25:43.511Z"); return t }()), + UpgradeScheduleEnabled: to.Ptr(true), + }, + }, + SKU: &armstoragecache.CacheSKU{ + Name: to.Ptr("Standard_2G"), + }, + Tags: map[string]*string{ + "Dept": to.Ptr("Contoso"), + }, + }, 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.Cache = armstoragecache.Cache{ + // Name: to.Ptr("sc1"), + // Type: to.Ptr("Microsoft.StorageCache/Cache"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.StorageCache/caches/sc1"), + // Location: to.Ptr("westus"), + // Properties: &armstoragecache.CacheProperties{ + // CacheSizeGB: to.Ptr[int32](3072), + // DirectoryServicesSettings: &armstoragecache.CacheDirectorySettings{ + // UsernameDownload: &armstoragecache.CacheUsernameDownloadSettings{ + // AutoDownloadCertificate: to.Ptr(false), + // CaCertificateURI: to.Ptr(""), + // EncryptLdapConnection: to.Ptr(false), + // ExtendedGroups: to.Ptr(true), + // GroupFileURI: to.Ptr(""), + // LdapBaseDN: to.Ptr("dc=contosoad,dc=contoso,dc=local"), + // LdapServer: to.Ptr("192.0.2.12"), + // RequireValidCertificate: to.Ptr(false), + // UserFileURI: to.Ptr(""), + // UsernameDownloaded: to.Ptr(armstoragecache.UsernameDownloadedTypeYes), + // UsernameSource: to.Ptr(armstoragecache.UsernameSourceLDAP), + // }, + // }, + // EncryptionSettings: &armstoragecache.CacheEncryptionSettings{ + // KeyEncryptionKey: &armstoragecache.KeyVaultKeyReference{ + // KeyURL: to.Ptr("https://keyvault-cmk.vault.azure.net/keys/key2048/test"), + // SourceVault: &armstoragecache.KeyVaultKeyReferenceSourceVault{ + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.KeyVault/vaults/keyvault-cmk"), + // }, + // }, + // }, + // Health: &armstoragecache.CacheHealth{ + // Conditions: []*armstoragecache.Condition{ + // { + // Message: to.Ptr("Cannot contact DNS server"), + // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-04-21T18:25:43.511Z"); return t}()), + // }}, + // State: to.Ptr(armstoragecache.HealthStateTypeTransitioning), + // StatusDescription: to.Ptr("Cache is being created."), + // }, + // MountAddresses: []*string{ + // to.Ptr("192.168.1.1"), + // to.Ptr("192.168.1.2")}, + // NetworkSettings: &armstoragecache.CacheNetworkSettings{ + // DNSSearchDomain: to.Ptr("contoso.com"), + // DNSServers: []*string{ + // to.Ptr("10.1.22.33"), + // to.Ptr("10.1.12.33")}, + // Mtu: to.Ptr[int32](1500), + // NtpServer: to.Ptr("time.contoso.com"), + // }, + // PrimingJobs: []*armstoragecache.PrimingJob{ + // { + // PrimingJobDetails: to.Ptr("Files: Cached=635, Failed=0, Excluded=80, Data=346030 bytes, Directories: Cached=1003, Failed=0, Excluded=0"), + // PrimingJobID: to.Ptr("00000000000_0000000000"), + // PrimingJobName: to.Ptr("contosoJob1"), + // PrimingJobPercentComplete: to.Ptr[float64](100), + // PrimingJobState: to.Ptr(armstoragecache.PrimingJobStateComplete), + // PrimingJobStatus: to.Ptr("success"), + // }, + // { + // PrimingJobDetails: to.Ptr(""), + // PrimingJobID: to.Ptr("11111111111_1111111111"), + // PrimingJobName: to.Ptr("contosoJob2"), + // PrimingJobPercentComplete: to.Ptr[float64](0), + // PrimingJobState: to.Ptr(armstoragecache.PrimingJobStateQueued), + // PrimingJobStatus: to.Ptr(""), + // }}, + // ProvisioningState: to.Ptr(armstoragecache.ProvisioningStateTypeSucceeded), + // SecuritySettings: &armstoragecache.CacheSecuritySettings{ + // AccessPolicies: []*armstoragecache.NfsAccessPolicy{ + // { + // Name: to.Ptr("default"), + // AccessRules: []*armstoragecache.NfsAccessRule{ + // { + // Access: to.Ptr(armstoragecache.NfsAccessRuleAccessRw), + // RootSquash: to.Ptr(false), + // Scope: to.Ptr(armstoragecache.NfsAccessRuleScopeDefault), + // SubmountAccess: to.Ptr(true), + // Suid: to.Ptr(false), + // }}, + // }}, + // }, + // SpaceAllocation: []*armstoragecache.StorageTargetSpaceAllocation{ + // }, + // Subnet: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.Network/virtualNetworks/scvnet/subnets/sub1"), + // UpgradeSettings: &armstoragecache.CacheUpgradeSettings{ + // ScheduledTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-04-26T18:25:43.511Z"); return t}()), + // UpgradeScheduleEnabled: to.Ptr(true), + // }, + // UpgradeStatus: &armstoragecache.CacheUpgradeStatus{ + // CurrentFirmwareVersion: to.Ptr("V5.1.12"), + // FirmwareUpdateDeadline: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-04-21T18:25:43.511Z"); return t}()), + // FirmwareUpdateStatus: to.Ptr(armstoragecache.FirmwareStatusTypeAvailable), + // LastFirmwareUpdate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-01-21T18:25:43.511Z"); return t}()), + // PendingFirmwareVersion: to.Ptr("V5.1.15"), + // }, + // Zones: []*string{ + // to.Ptr("1")}, + // }, + // SKU: &armstoragecache.CacheSKU{ + // Name: to.Ptr("Standard_2G"), + // }, + // SystemData: &armstoragecache.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-01T17:18:19.1234567Z"); return t}()), + // CreatedBy: to.Ptr("user1"), + // CreatedByType: to.Ptr(armstoragecache.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-02T17:18:19.1234567Z"); return t}()), + // LastModifiedBy: to.Ptr("user2"), + // LastModifiedByType: to.Ptr(armstoragecache.CreatedByTypeUser), + // }, + // Tags: map[string]*string{ + // "Dept": to.Ptr("Contoso"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/Caches_Update.json +func ExampleCachesClient_BeginUpdate_cachesUpdate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armstoragecache.NewCachesClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginUpdate(ctx, "scgroup", "sc1", armstoragecache.Cache{ + Location: to.Ptr("westus"), + Properties: &armstoragecache.CacheProperties{ + CacheSizeGB: to.Ptr[int32](3072), + DirectoryServicesSettings: &armstoragecache.CacheDirectorySettings{ + ActiveDirectory: &armstoragecache.CacheActiveDirectorySettings{ + CacheNetBiosName: to.Ptr("contosoSmb"), + DomainName: to.Ptr("contosoAd.contoso.local"), + DomainNetBiosName: to.Ptr("contosoAd"), + PrimaryDNSIPAddress: to.Ptr("192.0.2.10"), + SecondaryDNSIPAddress: to.Ptr("192.0.2.11"), }, - SecuritySettings: &armstoragecache.CacheSecuritySettings{ - AccessPolicies: []*armstoragecache.NfsAccessPolicy{ - { - Name: to.Ptr("default"), - AccessRules: []*armstoragecache.NfsAccessRule{ - { - Access: to.Ptr(armstoragecache.NfsAccessRuleAccessRw), - RootSquash: to.Ptr(false), - Scope: to.Ptr(armstoragecache.NfsAccessRuleScopeDefault), - SubmountAccess: to.Ptr(true), - Suid: to.Ptr(false), - }}, - }, - { - Name: to.Ptr("restrictive"), - AccessRules: []*armstoragecache.NfsAccessRule{ - { - Access: to.Ptr(armstoragecache.NfsAccessRuleAccessRw), - Filter: to.Ptr("10.99.3.145"), - RootSquash: to.Ptr(false), - Scope: to.Ptr(armstoragecache.NfsAccessRuleScopeHost), - SubmountAccess: to.Ptr(true), - Suid: to.Ptr(true), - }, - { - Access: to.Ptr(armstoragecache.NfsAccessRuleAccessRw), - Filter: to.Ptr("10.99.1.0/24"), - RootSquash: to.Ptr(false), - Scope: to.Ptr(armstoragecache.NfsAccessRuleScopeNetwork), - SubmountAccess: to.Ptr(true), - Suid: to.Ptr(true), - }, - { - Access: to.Ptr(armstoragecache.NfsAccessRuleAccessNo), - AnonymousGID: to.Ptr("65534"), - AnonymousUID: to.Ptr("65534"), - RootSquash: to.Ptr(true), - Scope: to.Ptr(armstoragecache.NfsAccessRuleScopeDefault), - SubmountAccess: to.Ptr(true), - Suid: to.Ptr(false), - }}, - }}, + UsernameDownload: &armstoragecache.CacheUsernameDownloadSettings{ + ExtendedGroups: to.Ptr(true), + UsernameSource: to.Ptr(armstoragecache.UsernameSourceAD), }, - Subnet: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.Network/virtualNetworks/scvnet/subnets/sub1"), - UpgradeSettings: &armstoragecache.CacheUpgradeSettings{ - ScheduledTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-04-26T18:25:43.511Z"); return t }()), - UpgradeScheduleEnabled: to.Ptr(true), + }, + NetworkSettings: &armstoragecache.CacheNetworkSettings{ + DNSSearchDomain: to.Ptr("contoso.com"), + DNSServers: []*string{ + to.Ptr("10.1.22.33"), + to.Ptr("10.1.12.33")}, + Mtu: to.Ptr[int32](1500), + NtpServer: to.Ptr("time.contoso.com"), + }, + SecuritySettings: &armstoragecache.CacheSecuritySettings{ + AccessPolicies: []*armstoragecache.NfsAccessPolicy{ + { + Name: to.Ptr("default"), + AccessRules: []*armstoragecache.NfsAccessRule{ + { + Access: to.Ptr(armstoragecache.NfsAccessRuleAccessRw), + RootSquash: to.Ptr(false), + Scope: to.Ptr(armstoragecache.NfsAccessRuleScopeDefault), + SubmountAccess: to.Ptr(true), + Suid: to.Ptr(false), + }}, + }, + { + Name: to.Ptr("restrictive"), + AccessRules: []*armstoragecache.NfsAccessRule{ + { + Access: to.Ptr(armstoragecache.NfsAccessRuleAccessRw), + Filter: to.Ptr("10.99.3.145"), + RootSquash: to.Ptr(false), + Scope: to.Ptr(armstoragecache.NfsAccessRuleScopeHost), + SubmountAccess: to.Ptr(true), + Suid: to.Ptr(true), + }, + { + Access: to.Ptr(armstoragecache.NfsAccessRuleAccessRw), + Filter: to.Ptr("10.99.1.0/24"), + RootSquash: to.Ptr(false), + Scope: to.Ptr(armstoragecache.NfsAccessRuleScopeNetwork), + SubmountAccess: to.Ptr(true), + Suid: to.Ptr(true), + }, + { + Access: to.Ptr(armstoragecache.NfsAccessRuleAccessNo), + AnonymousGID: to.Ptr("65534"), + AnonymousUID: to.Ptr("65534"), + RootSquash: to.Ptr(true), + Scope: to.Ptr(armstoragecache.NfsAccessRuleScopeDefault), + SubmountAccess: to.Ptr(true), + Suid: to.Ptr(false), + }}, + }}, + }, + Subnet: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.Network/virtualNetworks/scvnet/subnets/sub1"), + UpgradeSettings: &armstoragecache.CacheUpgradeSettings{ + ScheduledTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-04-26T18:25:43.511Z"); return t }()), + UpgradeScheduleEnabled: to.Ptr(true), + }, + }, + SKU: &armstoragecache.CacheSKU{ + Name: to.Ptr("Standard_2G"), + }, + Tags: map[string]*string{ + "Dept": to.Ptr("Contoso"), + }, + }, 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.Cache = armstoragecache.Cache{ + // Name: to.Ptr("sc1"), + // Type: to.Ptr("Microsoft.StorageCache/Cache"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.StorageCache/caches/sc1"), + // Location: to.Ptr("westus"), + // Properties: &armstoragecache.CacheProperties{ + // CacheSizeGB: to.Ptr[int32](3072), + // DirectoryServicesSettings: &armstoragecache.CacheDirectorySettings{ + // ActiveDirectory: &armstoragecache.CacheActiveDirectorySettings{ + // CacheNetBiosName: to.Ptr("contosoSmb"), + // DomainJoined: to.Ptr(armstoragecache.DomainJoinedTypeYes), + // DomainName: to.Ptr("contosoAd.contoso.local"), + // DomainNetBiosName: to.Ptr("contosoAd"), + // PrimaryDNSIPAddress: to.Ptr("192.0.2.10"), + // SecondaryDNSIPAddress: to.Ptr("192.0.2.11"), + // }, + // UsernameDownload: &armstoragecache.CacheUsernameDownloadSettings{ + // AutoDownloadCertificate: to.Ptr(false), + // CaCertificateURI: to.Ptr(""), + // EncryptLdapConnection: to.Ptr(false), + // ExtendedGroups: to.Ptr(true), + // GroupFileURI: to.Ptr(""), + // LdapBaseDN: to.Ptr(""), + // LdapServer: to.Ptr(""), + // RequireValidCertificate: to.Ptr(false), + // UserFileURI: to.Ptr(""), + // UsernameDownloaded: to.Ptr(armstoragecache.UsernameDownloadedTypeYes), + // UsernameSource: to.Ptr(armstoragecache.UsernameSourceAD), + // }, + // }, + // Health: &armstoragecache.CacheHealth{ + // Conditions: []*armstoragecache.Condition{ + // { + // Message: to.Ptr("Cannot contact DNS server"), + // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-04-21T18:25:43.511Z"); return t}()), + // }}, + // State: to.Ptr(armstoragecache.HealthStateTypeTransitioning), + // StatusDescription: to.Ptr("Cache is being created."), + // }, + // MountAddresses: []*string{ + // to.Ptr("192.168.1.1"), + // to.Ptr("192.168.1.2")}, + // NetworkSettings: &armstoragecache.CacheNetworkSettings{ + // DNSSearchDomain: to.Ptr("contoso.com"), + // DNSServers: []*string{ + // to.Ptr("10.1.22.33"), + // to.Ptr("10.1.12.33")}, + // Mtu: to.Ptr[int32](1500), + // NtpServer: to.Ptr("time.contoso.com"), + // }, + // PrimingJobs: []*armstoragecache.PrimingJob{ + // { + // PrimingJobDetails: to.Ptr("Files: Cached=635, Failed=0, Excluded=80, Data=346030 bytes, Directories: Cached=1003, Failed=0, Excluded=0"), + // PrimingJobID: to.Ptr("00000000000_0000000000"), + // PrimingJobName: to.Ptr("contosoJob1"), + // PrimingJobPercentComplete: to.Ptr[float64](100), + // PrimingJobState: to.Ptr(armstoragecache.PrimingJobStateComplete), + // PrimingJobStatus: to.Ptr("success"), + // }, + // { + // PrimingJobDetails: to.Ptr(""), + // PrimingJobID: to.Ptr("11111111111_1111111111"), + // PrimingJobName: to.Ptr("contosoJob2"), + // PrimingJobPercentComplete: to.Ptr[float64](0), + // PrimingJobState: to.Ptr(armstoragecache.PrimingJobStateQueued), + // PrimingJobStatus: to.Ptr(""), + // }}, + // ProvisioningState: to.Ptr(armstoragecache.ProvisioningStateTypeSucceeded), + // SecuritySettings: &armstoragecache.CacheSecuritySettings{ + // AccessPolicies: []*armstoragecache.NfsAccessPolicy{ + // { + // Name: to.Ptr("default"), + // AccessRules: []*armstoragecache.NfsAccessRule{ + // { + // Access: to.Ptr(armstoragecache.NfsAccessRuleAccessRw), + // RootSquash: to.Ptr(false), + // Scope: to.Ptr(armstoragecache.NfsAccessRuleScopeDefault), + // SubmountAccess: to.Ptr(true), + // Suid: to.Ptr(false), + // }}, + // }, + // { + // Name: to.Ptr("restrictive"), + // AccessRules: []*armstoragecache.NfsAccessRule{ + // { + // Access: to.Ptr(armstoragecache.NfsAccessRuleAccessRw), + // Filter: to.Ptr("10.99.3.145"), + // RootSquash: to.Ptr(false), + // Scope: to.Ptr(armstoragecache.NfsAccessRuleScopeHost), + // SubmountAccess: to.Ptr(true), + // Suid: to.Ptr(true), + // }, + // { + // Access: to.Ptr(armstoragecache.NfsAccessRuleAccessRw), + // Filter: to.Ptr("10.99.1.0/24"), + // RootSquash: to.Ptr(false), + // Scope: to.Ptr(armstoragecache.NfsAccessRuleScopeNetwork), + // SubmountAccess: to.Ptr(true), + // Suid: to.Ptr(true), + // }, + // { + // Access: to.Ptr(armstoragecache.NfsAccessRuleAccessNo), + // AnonymousGID: to.Ptr("65534"), + // AnonymousUID: to.Ptr("65534"), + // RootSquash: to.Ptr(true), + // Scope: to.Ptr(armstoragecache.NfsAccessRuleScopeDefault), + // SubmountAccess: to.Ptr(true), + // Suid: to.Ptr(false), + // }}, + // }}, + // }, + // SpaceAllocation: []*armstoragecache.StorageTargetSpaceAllocation{ + // { + // Name: to.Ptr("st1"), + // AllocationPercentage: to.Ptr[int32](25), + // }, + // { + // Name: to.Ptr("st2"), + // AllocationPercentage: to.Ptr[int32](50), + // }, + // { + // Name: to.Ptr("st3"), + // AllocationPercentage: to.Ptr[int32](25), + // }}, + // Subnet: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.Network/virtualNetworks/scvnet/subnets/sub1"), + // UpgradeSettings: &armstoragecache.CacheUpgradeSettings{ + // ScheduledTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-04-26T18:25:43.511Z"); return t}()), + // UpgradeScheduleEnabled: to.Ptr(true), + // }, + // UpgradeStatus: &armstoragecache.CacheUpgradeStatus{ + // CurrentFirmwareVersion: to.Ptr("V5.1.12"), + // FirmwareUpdateDeadline: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-04-21T18:25:43.511Z"); return t}()), + // FirmwareUpdateStatus: to.Ptr(armstoragecache.FirmwareStatusTypeAvailable), + // LastFirmwareUpdate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-01-21T18:25:43.511Z"); return t}()), + // PendingFirmwareVersion: to.Ptr("V5.1.15"), + // }, + // }, + // SKU: &armstoragecache.CacheSKU{ + // Name: to.Ptr("Standard_2G"), + // }, + // SystemData: &armstoragecache.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-01T17:18:19.1234567Z"); return t}()), + // CreatedBy: to.Ptr("user1"), + // CreatedByType: to.Ptr(armstoragecache.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-02T17:18:19.1234567Z"); return t}()), + // LastModifiedBy: to.Ptr("user2"), + // LastModifiedByType: to.Ptr(armstoragecache.CreatedByTypeUser), + // }, + // Tags: map[string]*string{ + // "Dept": to.Ptr("Contoso"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/Caches_Update_ldap_only.json +func ExampleCachesClient_BeginUpdate_cachesUpdateLdapOnly() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armstoragecache.NewCachesClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginUpdate(ctx, "scgroup", "sc1", armstoragecache.Cache{ + Location: to.Ptr("westus"), + Properties: &armstoragecache.CacheProperties{ + CacheSizeGB: to.Ptr[int32](3072), + DirectoryServicesSettings: &armstoragecache.CacheDirectorySettings{ + UsernameDownload: &armstoragecache.CacheUsernameDownloadSettings{ + Credentials: &armstoragecache.CacheUsernameDownloadSettingsCredentials{ + BindDn: to.Ptr("cn=ldapadmin,dc=contosoad,dc=contoso,dc=local"), + BindPassword: to.Ptr(""), + }, + ExtendedGroups: to.Ptr(true), + LdapBaseDN: to.Ptr("dc=contosoad,dc=contoso,dc=local"), + LdapServer: to.Ptr("192.0.2.12"), + UsernameSource: to.Ptr(armstoragecache.UsernameSourceLDAP), }, }, - SKU: &armstoragecache.CacheSKU{ - Name: to.Ptr("Standard_2G"), + NetworkSettings: &armstoragecache.CacheNetworkSettings{ + DNSSearchDomain: to.Ptr("contoso.com"), + DNSServers: []*string{ + to.Ptr("10.1.22.33"), + to.Ptr("10.1.12.33")}, + Mtu: to.Ptr[int32](1500), + NtpServer: to.Ptr("time.contoso.com"), + }, + SecuritySettings: &armstoragecache.CacheSecuritySettings{ + AccessPolicies: []*armstoragecache.NfsAccessPolicy{ + { + Name: to.Ptr("default"), + AccessRules: []*armstoragecache.NfsAccessRule{ + { + Access: to.Ptr(armstoragecache.NfsAccessRuleAccessRw), + RootSquash: to.Ptr(false), + Scope: to.Ptr(armstoragecache.NfsAccessRuleScopeDefault), + SubmountAccess: to.Ptr(true), + Suid: to.Ptr(false), + }}, + }, + { + Name: to.Ptr("restrictive"), + AccessRules: []*armstoragecache.NfsAccessRule{ + { + Access: to.Ptr(armstoragecache.NfsAccessRuleAccessRw), + Filter: to.Ptr("10.99.3.145"), + RootSquash: to.Ptr(false), + Scope: to.Ptr(armstoragecache.NfsAccessRuleScopeHost), + SubmountAccess: to.Ptr(true), + Suid: to.Ptr(true), + }, + { + Access: to.Ptr(armstoragecache.NfsAccessRuleAccessRw), + Filter: to.Ptr("10.99.1.0/24"), + RootSquash: to.Ptr(false), + Scope: to.Ptr(armstoragecache.NfsAccessRuleScopeNetwork), + SubmountAccess: to.Ptr(true), + Suid: to.Ptr(true), + }, + { + Access: to.Ptr(armstoragecache.NfsAccessRuleAccessNo), + AnonymousGID: to.Ptr("65534"), + AnonymousUID: to.Ptr("65534"), + RootSquash: to.Ptr(true), + Scope: to.Ptr(armstoragecache.NfsAccessRuleScopeDefault), + SubmountAccess: to.Ptr(true), + Suid: to.Ptr(false), + }}, + }}, }, - Tags: map[string]*string{ - "Dept": to.Ptr("Contoso"), + Subnet: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.Network/virtualNetworks/scvnet/subnets/sub1"), + UpgradeSettings: &armstoragecache.CacheUpgradeSettings{ + ScheduledTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-04-26T18:25:43.511Z"); return t }()), + UpgradeScheduleEnabled: to.Ptr(true), }, }, - nil) + SKU: &armstoragecache.CacheSKU{ + Name: to.Ptr("Standard_2G"), + }, + Tags: map[string]*string{ + "Dept": to.Ptr("Contoso"), + }, + }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + 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.Cache = armstoragecache.Cache{ + // Name: to.Ptr("sc1"), + // Type: to.Ptr("Microsoft.StorageCache/Cache"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.StorageCache/caches/sc1"), + // Location: to.Ptr("westus"), + // Properties: &armstoragecache.CacheProperties{ + // CacheSizeGB: to.Ptr[int32](3072), + // DirectoryServicesSettings: &armstoragecache.CacheDirectorySettings{ + // UsernameDownload: &armstoragecache.CacheUsernameDownloadSettings{ + // AutoDownloadCertificate: to.Ptr(false), + // CaCertificateURI: to.Ptr(""), + // EncryptLdapConnection: to.Ptr(false), + // ExtendedGroups: to.Ptr(true), + // GroupFileURI: to.Ptr(""), + // LdapBaseDN: to.Ptr("dc=contosoad,dc=contoso,dc=local"), + // LdapServer: to.Ptr("192.0.2.12"), + // RequireValidCertificate: to.Ptr(false), + // UserFileURI: to.Ptr(""), + // UsernameDownloaded: to.Ptr(armstoragecache.UsernameDownloadedTypeNo), + // UsernameSource: to.Ptr(armstoragecache.UsernameSourceLDAP), + // }, + // }, + // Health: &armstoragecache.CacheHealth{ + // Conditions: []*armstoragecache.Condition{ + // { + // Message: to.Ptr("Cannot contact DNS server"), + // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-04-21T18:25:43.511Z"); return t}()), + // }}, + // State: to.Ptr(armstoragecache.HealthStateTypeTransitioning), + // StatusDescription: to.Ptr("Cache is being created."), + // }, + // MountAddresses: []*string{ + // to.Ptr("192.168.1.1"), + // to.Ptr("192.168.1.2")}, + // NetworkSettings: &armstoragecache.CacheNetworkSettings{ + // DNSSearchDomain: to.Ptr("contoso.com"), + // DNSServers: []*string{ + // to.Ptr("10.1.22.33"), + // to.Ptr("10.1.12.33")}, + // Mtu: to.Ptr[int32](1500), + // NtpServer: to.Ptr("time.contoso.com"), + // }, + // PrimingJobs: []*armstoragecache.PrimingJob{ + // { + // PrimingJobDetails: to.Ptr("Files: Cached=635, Failed=0, Excluded=80, Data=346030 bytes, Directories: Cached=1003, Failed=0, Excluded=0"), + // PrimingJobID: to.Ptr("00000000000_0000000000"), + // PrimingJobName: to.Ptr("contosoJob1"), + // PrimingJobPercentComplete: to.Ptr[float64](100), + // PrimingJobState: to.Ptr(armstoragecache.PrimingJobStateComplete), + // PrimingJobStatus: to.Ptr("success"), + // }, + // { + // PrimingJobDetails: to.Ptr(""), + // PrimingJobID: to.Ptr("11111111111_1111111111"), + // PrimingJobName: to.Ptr("contosoJob2"), + // PrimingJobPercentComplete: to.Ptr[float64](0), + // PrimingJobState: to.Ptr(armstoragecache.PrimingJobStateQueued), + // PrimingJobStatus: to.Ptr(""), + // }}, + // ProvisioningState: to.Ptr(armstoragecache.ProvisioningStateTypeSucceeded), + // SecuritySettings: &armstoragecache.CacheSecuritySettings{ + // AccessPolicies: []*armstoragecache.NfsAccessPolicy{ + // { + // Name: to.Ptr("default"), + // AccessRules: []*armstoragecache.NfsAccessRule{ + // { + // Access: to.Ptr(armstoragecache.NfsAccessRuleAccessRw), + // RootSquash: to.Ptr(false), + // Scope: to.Ptr(armstoragecache.NfsAccessRuleScopeDefault), + // SubmountAccess: to.Ptr(true), + // Suid: to.Ptr(false), + // }}, + // }, + // { + // Name: to.Ptr("restrictive"), + // AccessRules: []*armstoragecache.NfsAccessRule{ + // { + // Access: to.Ptr(armstoragecache.NfsAccessRuleAccessRw), + // Filter: to.Ptr("10.99.3.145"), + // RootSquash: to.Ptr(false), + // Scope: to.Ptr(armstoragecache.NfsAccessRuleScopeHost), + // SubmountAccess: to.Ptr(true), + // Suid: to.Ptr(true), + // }, + // { + // Access: to.Ptr(armstoragecache.NfsAccessRuleAccessRw), + // Filter: to.Ptr("10.99.1.0/24"), + // RootSquash: to.Ptr(false), + // Scope: to.Ptr(armstoragecache.NfsAccessRuleScopeNetwork), + // SubmountAccess: to.Ptr(true), + // Suid: to.Ptr(true), + // }, + // { + // Access: to.Ptr(armstoragecache.NfsAccessRuleAccessNo), + // AnonymousGID: to.Ptr("65534"), + // AnonymousUID: to.Ptr("65534"), + // RootSquash: to.Ptr(true), + // Scope: to.Ptr(armstoragecache.NfsAccessRuleScopeDefault), + // SubmountAccess: to.Ptr(true), + // Suid: to.Ptr(false), + // }}, + // }}, + // }, + // SpaceAllocation: []*armstoragecache.StorageTargetSpaceAllocation{ + // }, + // Subnet: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.Network/virtualNetworks/scvnet/subnets/sub1"), + // UpgradeSettings: &armstoragecache.CacheUpgradeSettings{ + // ScheduledTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-04-26T18:25:43.511Z"); return t}()), + // UpgradeScheduleEnabled: to.Ptr(true), + // }, + // UpgradeStatus: &armstoragecache.CacheUpgradeStatus{ + // CurrentFirmwareVersion: to.Ptr("V5.1.12"), + // FirmwareUpdateDeadline: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-04-21T18:25:43.511Z"); return t}()), + // FirmwareUpdateStatus: to.Ptr(armstoragecache.FirmwareStatusTypeAvailable), + // LastFirmwareUpdate: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2019-01-21T18:25:43.511Z"); return t}()), + // PendingFirmwareVersion: to.Ptr("V5.1.15"), + // }, + // }, + // SKU: &armstoragecache.CacheSKU{ + // Name: to.Ptr("Standard_2G"), + // }, + // SystemData: &armstoragecache.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-01T17:18:19.1234567Z"); return t}()), + // CreatedBy: to.Ptr("user1"), + // CreatedByType: to.Ptr(armstoragecache.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-02T17:18:19.1234567Z"); return t}()), + // LastModifiedBy: to.Ptr("user2"), + // LastModifiedByType: to.Ptr(armstoragecache.CreatedByTypeUser), + // }, + // Tags: map[string]*string{ + // "Dept": to.Ptr("Contoso"), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2022-05-01/examples/Caches_DebugInfo.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/Caches_DebugInfo.json func ExampleCachesClient_BeginDebugInfo() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -322,10 +1632,7 @@ func ExampleCachesClient_BeginDebugInfo() { if err != nil { log.Fatalf("failed to create client: %v", err) } - poller, err := client.BeginDebugInfo(ctx, - "scgroup", - "sc", - nil) + poller, err := client.BeginDebugInfo(ctx, "scgroup", "sc", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } @@ -335,7 +1642,7 @@ func ExampleCachesClient_BeginDebugInfo() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2022-05-01/examples/Caches_Flush.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/Caches_Flush.json func ExampleCachesClient_BeginFlush() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -346,10 +1653,7 @@ func ExampleCachesClient_BeginFlush() { if err != nil { log.Fatalf("failed to create client: %v", err) } - poller, err := client.BeginFlush(ctx, - "scgroup", - "sc", - nil) + poller, err := client.BeginFlush(ctx, "scgroup", "sc", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } @@ -359,7 +1663,7 @@ func ExampleCachesClient_BeginFlush() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2022-05-01/examples/Caches_Start.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/Caches_Start.json func ExampleCachesClient_BeginStart() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -370,10 +1674,7 @@ func ExampleCachesClient_BeginStart() { if err != nil { log.Fatalf("failed to create client: %v", err) } - poller, err := client.BeginStart(ctx, - "scgroup", - "sc", - nil) + poller, err := client.BeginStart(ctx, "scgroup", "sc", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } @@ -383,7 +1684,7 @@ func ExampleCachesClient_BeginStart() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2022-05-01/examples/Caches_Stop.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/Caches_Stop.json func ExampleCachesClient_BeginStop() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -394,10 +1695,7 @@ func ExampleCachesClient_BeginStop() { if err != nil { log.Fatalf("failed to create client: %v", err) } - poller, err := client.BeginStop(ctx, - "scgroup", - "sc", - nil) + poller, err := client.BeginStop(ctx, "scgroup", "sc", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } @@ -407,7 +1705,7 @@ func ExampleCachesClient_BeginStop() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2022-05-01/examples/StartPrimingJob.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/StartPrimingJob.json func ExampleCachesClient_BeginStartPrimingJob() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -418,14 +1716,11 @@ func ExampleCachesClient_BeginStartPrimingJob() { if err != nil { log.Fatalf("failed to create client: %v", err) } - poller, err := client.BeginStartPrimingJob(ctx, - "scgroup", - "sc1", - &armstoragecache.CachesClientBeginStartPrimingJobOptions{Primingjob: &armstoragecache.PrimingJob{ - PrimingJobName: to.Ptr("contosoJob"), - PrimingManifestURL: to.Ptr("https://contosostorage.blob.core.windows.net/contosoblob/00000000_00000000000000000000000000000000.00000000000.FFFFFFFF.00000000?sp=r&st=2021-08-11T19:33:35Z&se=2021-08-12T03:33:35Z&spr=https&sv=2020-08-04&sr=b&sig="), - }, - }) + poller, err := client.BeginStartPrimingJob(ctx, "scgroup", "sc1", &armstoragecache.CachesClientBeginStartPrimingJobOptions{Primingjob: &armstoragecache.PrimingJob{ + PrimingJobName: to.Ptr("contosoJob"), + PrimingManifestURL: to.Ptr("https://contosostorage.blob.core.windows.net/contosoblob/00000000_00000000000000000000000000000000.00000000000.FFFFFFFF.00000000?sp=r&st=2021-08-11T19:33:35Z&se=2021-08-12T03:33:35Z&spr=https&sv=2020-08-04&sr=b&sig="), + }, + }) if err != nil { log.Fatalf("failed to finish the request: %v", err) } @@ -435,7 +1730,7 @@ func ExampleCachesClient_BeginStartPrimingJob() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2022-05-01/examples/StopPrimingJob.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/StopPrimingJob.json func ExampleCachesClient_BeginStopPrimingJob() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -446,13 +1741,10 @@ func ExampleCachesClient_BeginStopPrimingJob() { if err != nil { log.Fatalf("failed to create client: %v", err) } - poller, err := client.BeginStopPrimingJob(ctx, - "scgroup", - "sc1", - &armstoragecache.CachesClientBeginStopPrimingJobOptions{PrimingJobID: &armstoragecache.PrimingJobIDParameter{ - PrimingJobID: to.Ptr("00000000000_0000000000"), - }, - }) + poller, err := client.BeginStopPrimingJob(ctx, "scgroup", "sc1", &armstoragecache.CachesClientBeginStopPrimingJobOptions{PrimingJobID: &armstoragecache.PrimingJobIDParameter{ + PrimingJobID: to.Ptr("00000000000_0000000000"), + }, + }) if err != nil { log.Fatalf("failed to finish the request: %v", err) } @@ -462,7 +1754,7 @@ func ExampleCachesClient_BeginStopPrimingJob() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2022-05-01/examples/PausePrimingJob.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/PausePrimingJob.json func ExampleCachesClient_BeginPausePrimingJob() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -473,13 +1765,10 @@ func ExampleCachesClient_BeginPausePrimingJob() { if err != nil { log.Fatalf("failed to create client: %v", err) } - poller, err := client.BeginPausePrimingJob(ctx, - "scgroup", - "sc1", - &armstoragecache.CachesClientBeginPausePrimingJobOptions{PrimingJobID: &armstoragecache.PrimingJobIDParameter{ - PrimingJobID: to.Ptr("00000000000_0000000000"), - }, - }) + poller, err := client.BeginPausePrimingJob(ctx, "scgroup", "sc1", &armstoragecache.CachesClientBeginPausePrimingJobOptions{PrimingJobID: &armstoragecache.PrimingJobIDParameter{ + PrimingJobID: to.Ptr("00000000000_0000000000"), + }, + }) if err != nil { log.Fatalf("failed to finish the request: %v", err) } @@ -489,7 +1778,7 @@ func ExampleCachesClient_BeginPausePrimingJob() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2022-05-01/examples/ResumePrimingJob.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/ResumePrimingJob.json func ExampleCachesClient_BeginResumePrimingJob() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -500,13 +1789,10 @@ func ExampleCachesClient_BeginResumePrimingJob() { if err != nil { log.Fatalf("failed to create client: %v", err) } - poller, err := client.BeginResumePrimingJob(ctx, - "scgroup", - "sc1", - &armstoragecache.CachesClientBeginResumePrimingJobOptions{PrimingJobID: &armstoragecache.PrimingJobIDParameter{ - PrimingJobID: to.Ptr("00000000000_0000000000"), - }, - }) + poller, err := client.BeginResumePrimingJob(ctx, "scgroup", "sc1", &armstoragecache.CachesClientBeginResumePrimingJobOptions{PrimingJobID: &armstoragecache.PrimingJobIDParameter{ + PrimingJobID: to.Ptr("00000000000_0000000000"), + }, + }) if err != nil { log.Fatalf("failed to finish the request: %v", err) } @@ -516,7 +1802,7 @@ func ExampleCachesClient_BeginResumePrimingJob() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2022-05-01/examples/Caches_UpgradeFirmware.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/Caches_UpgradeFirmware.json func ExampleCachesClient_BeginUpgradeFirmware() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -527,10 +1813,7 @@ func ExampleCachesClient_BeginUpgradeFirmware() { if err != nil { log.Fatalf("failed to create client: %v", err) } - poller, err := client.BeginUpgradeFirmware(ctx, - "scgroup", - "sc1", - nil) + poller, err := client.BeginUpgradeFirmware(ctx, "scgroup", "sc1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } @@ -540,7 +1823,7 @@ func ExampleCachesClient_BeginUpgradeFirmware() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2022-05-01/examples/SpaceAllocation_Post.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/SpaceAllocation_Post.json func ExampleCachesClient_BeginSpaceAllocation() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -551,23 +1834,20 @@ func ExampleCachesClient_BeginSpaceAllocation() { if err != nil { log.Fatalf("failed to create client: %v", err) } - poller, err := client.BeginSpaceAllocation(ctx, - "scgroup", - "sc1", - &armstoragecache.CachesClientBeginSpaceAllocationOptions{SpaceAllocation: []*armstoragecache.StorageTargetSpaceAllocation{ - { - Name: to.Ptr("st1"), - AllocationPercentage: to.Ptr[int32](25), - }, - { - Name: to.Ptr("st2"), - AllocationPercentage: to.Ptr[int32](50), - }, - { - Name: to.Ptr("st3"), - AllocationPercentage: to.Ptr[int32](25), - }}, - }) + poller, err := client.BeginSpaceAllocation(ctx, "scgroup", "sc1", &armstoragecache.CachesClientBeginSpaceAllocationOptions{SpaceAllocation: []*armstoragecache.StorageTargetSpaceAllocation{ + { + Name: to.Ptr("st1"), + AllocationPercentage: to.Ptr[int32](25), + }, + { + Name: to.Ptr("st2"), + AllocationPercentage: to.Ptr[int32](50), + }, + { + Name: to.Ptr("st3"), + AllocationPercentage: to.Ptr[int32](25), + }}, + }) if err != nil { log.Fatalf("failed to finish the request: %v", err) } diff --git a/sdk/resourcemanager/storagecache/armstoragecache/constants.go b/sdk/resourcemanager/storagecache/armstoragecache/constants.go index c2b8c80ab594..93f392a218bc 100644 --- a/sdk/resourcemanager/storagecache/armstoragecache/constants.go +++ b/sdk/resourcemanager/storagecache/armstoragecache/constants.go @@ -11,7 +11,7 @@ package armstoragecache const ( moduleName = "armstoragecache" - moduleVersion = "v2.0.0" + moduleVersion = "v3.0.0" ) // CacheIdentityType - The type of identity used for the cache diff --git a/sdk/resourcemanager/storagecache/armstoragecache/go.mod b/sdk/resourcemanager/storagecache/armstoragecache/go.mod index 4f5ac4a02b7d..66912cc248cf 100644 --- a/sdk/resourcemanager/storagecache/armstoragecache/go.mod +++ b/sdk/resourcemanager/storagecache/armstoragecache/go.mod @@ -1,16 +1,16 @@ -module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storagecache/armstoragecache/v2 +module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storagecache/armstoragecache/v3 go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.0.0 - github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.1.0 + github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.1 ) require ( github.com/Azure/azure-sdk-for-go/sdk/internal v1.0.0 // indirect - github.com/AzureAD/microsoft-authentication-library-for-go v0.5.1 // indirect - github.com/golang-jwt/jwt v3.2.1+incompatible // indirect + github.com/AzureAD/microsoft-authentication-library-for-go v0.8.1 // indirect + github.com/golang-jwt/jwt/v4 v4.4.2 // 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 diff --git a/sdk/resourcemanager/storagecache/armstoragecache/go.sum b/sdk/resourcemanager/storagecache/armstoragecache/go.sum index 8828b17b1853..67cfef6bdf6e 100644 --- a/sdk/resourcemanager/storagecache/armstoragecache/go.sum +++ b/sdk/resourcemanager/storagecache/armstoragecache/go.sum @@ -1,21 +1,19 @@ 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.1.0 h1:QkAcEIAKbNL4KoFr4SathZPhDhF4mVwpBMFlYjyAqy8= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.1.0/go.mod h1:bhXu1AjYL+wutSL/kpSq6s7733q2Rb0yuot9Zgfqa/0= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.1 h1:T8quHYlUGyb/oqtSTwqlCr1ilJHrDv+ZtpSfo+hm1BU= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.1/go.mod h1:gLa1CL2RNE4s7M3yopJ/p0iq5DdY6Yv5ZUt9MTRZOQM= 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.5.1 h1:BWe8a+f/t+7KY7zH2mqygeUD0t8hNFXe08p1Pb3/jKE= -github.com/AzureAD/microsoft-authentication-library-for-go v0.5.1/go.mod h1:Vt9sXTKwMyGcOxSmLDMnGPgqsUg7m8pe215qMLrDXw4= +github.com/AzureAD/microsoft-authentication-library-for-go v0.8.1 h1:oPdPEZFSbl7oSPEAIPMPBMUmiL+mqgzBJwM/9qYcwNg= +github.com/AzureAD/microsoft-authentication-library-for-go v0.8.1/go.mod h1:4qFor3D/HDsvBME35Xy9rwW9DecL+M2sNw1ybjPtwA0= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/dnaeon/go-vcr v1.1.0 h1:ReYa/UBrRyQdant9B4fNHGoCNKw6qh6P0fsdGmZpR7c= -github.com/golang-jwt/jwt 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= +github.com/golang-jwt/jwt/v4 v4.4.2 h1:rcc4lwaZgFMCZ5jxF9ABolDcIHdBytAFgqFPbSJQAYs= +github.com/golang-jwt/jwt/v4 v4.4.2/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= 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/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= @@ -24,7 +22,6 @@ golang.org/x/crypto v0.0.0-20220511200225-c6db032c6c88 h1:Tgea0cVUD0ivh5ADBX4Wwu 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-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= diff --git a/sdk/resourcemanager/storagecache/armstoragecache/models.go b/sdk/resourcemanager/storagecache/armstoragecache/models.go index e02a0abaff9e..8d258408a43c 100644 --- a/sdk/resourcemanager/storagecache/armstoragecache/models.go +++ b/sdk/resourcemanager/storagecache/armstoragecache/models.go @@ -96,7 +96,7 @@ type AscOperation struct { // AscOperationProperties - Additional operation-specific output. type AscOperationProperties struct { // Additional operation-specific output. - Output map[string]interface{} `json:"output,omitempty"` + Output map[string]any `json:"output,omitempty"` } // AscOperationsClientGetOptions contains the optional parameters for the AscOperationsClient.Get method. @@ -104,7 +104,7 @@ type AscOperationsClientGetOptions struct { // placeholder for future optional parameters } -// AscUsagesClientListOptions contains the optional parameters for the AscUsagesClient.List method. +// AscUsagesClientListOptions contains the optional parameters for the AscUsagesClient.NewListPager method. type AscUsagesClientListOptions struct { // placeholder for future optional parameters } @@ -116,6 +116,12 @@ type BlobNfsTarget struct { // Identifies the StorageCache usage model to be used for this storage target. UsageModel *string `json:"usageModel,omitempty"` + + // Amount of time (in seconds) the cache waits before it checks the back-end storage for file updates. + VerificationTimer *int32 `json:"verificationTimer,omitempty"` + + // Amount of time (in seconds) the cache waits after the last file change before it copies the changed file to back-end storage. + WriteBackTimer *int32 `json:"writeBackTimer,omitempty"` } // Cache - A Cache instance. Follows Azure Resource Manager standards: https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/resource-api-reference.md @@ -463,6 +469,12 @@ type CachesClientBeginStopPrimingJobOptions struct { ResumeToken string } +// CachesClientBeginUpdateOptions contains the optional parameters for the CachesClient.BeginUpdate method. +type CachesClientBeginUpdateOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + // CachesClientBeginUpgradeFirmwareOptions contains the optional parameters for the CachesClient.BeginUpgradeFirmware method. type CachesClientBeginUpgradeFirmwareOptions struct { // Resumes the LRO from the provided token. @@ -474,21 +486,17 @@ type CachesClientGetOptions struct { // placeholder for future optional parameters } -// CachesClientListByResourceGroupOptions contains the optional parameters for the CachesClient.ListByResourceGroup method. +// CachesClientListByResourceGroupOptions contains the optional parameters for the CachesClient.NewListByResourceGroupPager +// method. type CachesClientListByResourceGroupOptions struct { // placeholder for future optional parameters } -// CachesClientListOptions contains the optional parameters for the CachesClient.List method. +// CachesClientListOptions contains the optional parameters for the CachesClient.NewListPager method. type CachesClientListOptions struct { // placeholder for future optional parameters } -// CachesClientUpdateOptions contains the optional parameters for the CachesClient.Update method. -type CachesClientUpdateOptions struct { - // placeholder for future optional parameters -} - // CachesListResult - Result of the request to list Caches. It contains a list of Caches and a URL link to get the next set // of results. type CachesListResult struct { @@ -505,12 +513,6 @@ type ClfsTarget struct { Target *string `json:"target,omitempty"` } -// CloudError - An error response. -type CloudError struct { - // The body of the error. - Error *CloudErrorBody `json:"error,omitempty"` -} - // CloudErrorBody - An error response. type CloudErrorBody struct { // An identifier for the error. Codes are invariant and are intended to be consumed programmatically. @@ -632,6 +634,12 @@ type Nfs3Target struct { // Identifies the StorageCache usage model to be used for this storage target. UsageModel *string `json:"usageModel,omitempty"` + + // Amount of time (in seconds) the cache waits before it checks the back-end storage for file updates. + VerificationTimer *int32 `json:"verificationTimer,omitempty"` + + // Amount of time (in seconds) the cache waits after the last file change before it copies the changed file to back-end storage. + WriteBackTimer *int32 `json:"writeBackTimer,omitempty"` } // NfsAccessPolicy - A set of rules describing access policies applied to NFSv3 clients of the cache. @@ -674,7 +682,7 @@ type NfsAccessRule struct { Suid *bool `json:"suid,omitempty"` } -// OperationsClientListOptions contains the optional parameters for the OperationsClient.List method. +// OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method. type OperationsClientListOptions struct { // placeholder for future optional parameters } @@ -809,7 +817,7 @@ type Restriction struct { Values []*string `json:"values,omitempty" azure:"ro"` } -// SKUsClientListOptions contains the optional parameters for the SKUsClient.List method. +// SKUsClientListOptions contains the optional parameters for the SKUsClient.NewListPager method. type SKUsClientListOptions struct { // placeholder for future optional parameters } @@ -940,12 +948,20 @@ type StorageTargetsClientBeginDeleteOptions struct { ResumeToken string } +// StorageTargetsClientBeginRestoreDefaultsOptions contains the optional parameters for the StorageTargetsClient.BeginRestoreDefaults +// method. +type StorageTargetsClientBeginRestoreDefaultsOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + // StorageTargetsClientGetOptions contains the optional parameters for the StorageTargetsClient.Get method. type StorageTargetsClientGetOptions struct { // placeholder for future optional parameters } -// StorageTargetsClientListByCacheOptions contains the optional parameters for the StorageTargetsClient.ListByCache method. +// StorageTargetsClientListByCacheOptions contains the optional parameters for the StorageTargetsClient.NewListByCachePager +// method. type StorageTargetsClientListByCacheOptions struct { // placeholder for future optional parameters } @@ -1004,7 +1020,7 @@ type UsageModelDisplay struct { Description *string `json:"description,omitempty"` } -// UsageModelsClientListOptions contains the optional parameters for the UsageModelsClient.List method. +// UsageModelsClientListOptions contains the optional parameters for the UsageModelsClient.NewListPager method. type UsageModelsClientListOptions struct { // placeholder for future optional parameters } diff --git a/sdk/resourcemanager/storagecache/armstoragecache/models_serde.go b/sdk/resourcemanager/storagecache/armstoragecache/models_serde.go index 5c54979d4b2d..65d6aae302f8 100644 --- a/sdk/resourcemanager/storagecache/armstoragecache/models_serde.go +++ b/sdk/resourcemanager/storagecache/armstoragecache/models_serde.go @@ -18,7 +18,7 @@ import ( // MarshalJSON implements the json.Marshaller interface for type APIOperation. func (a APIOperation) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "display", a.Display) populate(objectMap, "isDataAction", a.IsDataAction) populate(objectMap, "name", a.Name) @@ -61,7 +61,7 @@ func (a *APIOperation) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type APIOperationDisplay. func (a APIOperationDisplay) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "description", a.Description) populate(objectMap, "operation", a.Operation) populate(objectMap, "provider", a.Provider) @@ -100,7 +100,7 @@ func (a *APIOperationDisplay) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type APIOperationListResult. func (a APIOperationListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", a.NextLink) populate(objectMap, "value", a.Value) return json.Marshal(objectMap) @@ -131,7 +131,7 @@ func (a *APIOperationListResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type APIOperationProperties. func (a APIOperationProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "serviceSpecification", a.ServiceSpecification) return json.Marshal(objectMap) } @@ -158,7 +158,7 @@ func (a *APIOperationProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type APIOperationPropertiesServiceSpecification. func (a APIOperationPropertiesServiceSpecification) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "logSpecifications", a.LogSpecifications) populate(objectMap, "metricSpecifications", a.MetricSpecifications) return json.Marshal(objectMap) @@ -189,7 +189,7 @@ func (a *APIOperationPropertiesServiceSpecification) UnmarshalJSON(data []byte) // MarshalJSON implements the json.Marshaller interface for type AscOperation. func (a AscOperation) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "endTime", a.EndTime) populate(objectMap, "error", a.Error) populate(objectMap, "id", a.ID) @@ -240,7 +240,7 @@ func (a *AscOperation) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AscOperationProperties. func (a AscOperationProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "output", a.Output) return json.Marshal(objectMap) } @@ -267,9 +267,11 @@ func (a *AscOperationProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type BlobNfsTarget. func (b BlobNfsTarget) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "target", b.Target) populate(objectMap, "usageModel", b.UsageModel) + populate(objectMap, "verificationTimer", b.VerificationTimer) + populate(objectMap, "writeBackTimer", b.WriteBackTimer) return json.Marshal(objectMap) } @@ -288,6 +290,12 @@ func (b *BlobNfsTarget) UnmarshalJSON(data []byte) error { case "usageModel": err = unpopulate(val, "UsageModel", &b.UsageModel) delete(rawMsg, key) + case "verificationTimer": + err = unpopulate(val, "VerificationTimer", &b.VerificationTimer) + delete(rawMsg, key) + case "writeBackTimer": + err = unpopulate(val, "WriteBackTimer", &b.WriteBackTimer) + delete(rawMsg, key) } if err != nil { return fmt.Errorf("unmarshalling type %T: %v", b, err) @@ -298,7 +306,7 @@ func (b *BlobNfsTarget) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Cache. func (c Cache) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", c.ID) populate(objectMap, "identity", c.Identity) populate(objectMap, "location", c.Location) @@ -357,7 +365,7 @@ func (c *Cache) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CacheActiveDirectorySettings. func (c CacheActiveDirectorySettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "cacheNetBiosName", c.CacheNetBiosName) populate(objectMap, "credentials", c.Credentials) populate(objectMap, "domainJoined", c.DomainJoined) @@ -408,7 +416,7 @@ func (c *CacheActiveDirectorySettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CacheActiveDirectorySettingsCredentials. func (c CacheActiveDirectorySettingsCredentials) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "password", c.Password) populate(objectMap, "username", c.Username) return json.Marshal(objectMap) @@ -439,7 +447,7 @@ func (c *CacheActiveDirectorySettingsCredentials) UnmarshalJSON(data []byte) err // MarshalJSON implements the json.Marshaller interface for type CacheDirectorySettings. func (c CacheDirectorySettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "activeDirectory", c.ActiveDirectory) populate(objectMap, "usernameDownload", c.UsernameDownload) return json.Marshal(objectMap) @@ -470,7 +478,7 @@ func (c *CacheDirectorySettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CacheEncryptionSettings. func (c CacheEncryptionSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "keyEncryptionKey", c.KeyEncryptionKey) populate(objectMap, "rotationToLatestKeyVersionEnabled", c.RotationToLatestKeyVersionEnabled) return json.Marshal(objectMap) @@ -501,7 +509,7 @@ func (c *CacheEncryptionSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CacheHealth. func (c CacheHealth) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "conditions", c.Conditions) populate(objectMap, "state", c.State) populate(objectMap, "statusDescription", c.StatusDescription) @@ -536,7 +544,7 @@ func (c *CacheHealth) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CacheIdentity. func (c CacheIdentity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "principalId", c.PrincipalID) populate(objectMap, "tenantId", c.TenantID) populate(objectMap, "type", c.Type) @@ -575,7 +583,7 @@ func (c *CacheIdentity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CacheNetworkSettings. func (c CacheNetworkSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "dnsSearchDomain", c.DNSSearchDomain) populate(objectMap, "dnsServers", c.DNSServers) populate(objectMap, "mtu", c.Mtu) @@ -618,7 +626,7 @@ func (c *CacheNetworkSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CacheProperties. func (c CacheProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "cacheSizeGB", c.CacheSizeGB) populate(objectMap, "directoryServicesSettings", c.DirectoryServicesSettings) populate(objectMap, "encryptionSettings", c.EncryptionSettings) @@ -697,7 +705,7 @@ func (c *CacheProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CacheSKU. func (c CacheSKU) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "name", c.Name) return json.Marshal(objectMap) } @@ -724,7 +732,7 @@ func (c *CacheSKU) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CacheSecuritySettings. func (c CacheSecuritySettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "accessPolicies", c.AccessPolicies) return json.Marshal(objectMap) } @@ -751,7 +759,7 @@ func (c *CacheSecuritySettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CacheUpgradeSettings. func (c CacheUpgradeSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populateTimeRFC3339(objectMap, "scheduledTime", c.ScheduledTime) populate(objectMap, "upgradeScheduleEnabled", c.UpgradeScheduleEnabled) return json.Marshal(objectMap) @@ -782,7 +790,7 @@ func (c *CacheUpgradeSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CacheUpgradeStatus. func (c CacheUpgradeStatus) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "currentFirmwareVersion", c.CurrentFirmwareVersion) populateTimeRFC3339(objectMap, "firmwareUpdateDeadline", c.FirmwareUpdateDeadline) populate(objectMap, "firmwareUpdateStatus", c.FirmwareUpdateStatus) @@ -825,7 +833,7 @@ func (c *CacheUpgradeStatus) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CacheUsernameDownloadSettings. func (c CacheUsernameDownloadSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "autoDownloadCertificate", c.AutoDownloadCertificate) populate(objectMap, "caCertificateURI", c.CaCertificateURI) populate(objectMap, "credentials", c.Credentials) @@ -896,7 +904,7 @@ func (c *CacheUsernameDownloadSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CacheUsernameDownloadSettingsCredentials. func (c CacheUsernameDownloadSettingsCredentials) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "bindDn", c.BindDn) populate(objectMap, "bindPassword", c.BindPassword) return json.Marshal(objectMap) @@ -927,7 +935,7 @@ func (c *CacheUsernameDownloadSettingsCredentials) UnmarshalJSON(data []byte) er // MarshalJSON implements the json.Marshaller interface for type CachesListResult. func (c CachesListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", c.NextLink) populate(objectMap, "value", c.Value) return json.Marshal(objectMap) @@ -958,7 +966,7 @@ func (c *CachesListResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ClfsTarget. func (c ClfsTarget) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "target", c.Target) return json.Marshal(objectMap) } @@ -983,36 +991,9 @@ func (c *ClfsTarget) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type CloudError. -func (c CloudError) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "error", c.Error) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type CloudError. -func (c *CloudError) 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 "error": - err = unpopulate(val, "Error", &c.Error) - 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 CloudErrorBody. func (c CloudErrorBody) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "code", c.Code) populate(objectMap, "details", c.Details) populate(objectMap, "message", c.Message) @@ -1051,7 +1032,7 @@ func (c *CloudErrorBody) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Condition. func (c Condition) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "message", c.Message) populateTimeRFC3339(objectMap, "timestamp", c.Timestamp) return json.Marshal(objectMap) @@ -1082,7 +1063,7 @@ func (c *Condition) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ErrorResponse. func (e ErrorResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "code", e.Code) populate(objectMap, "message", e.Message) return json.Marshal(objectMap) @@ -1113,7 +1094,7 @@ func (e *ErrorResponse) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type KeyVaultKeyReference. func (k KeyVaultKeyReference) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "keyUrl", k.KeyURL) populate(objectMap, "sourceVault", k.SourceVault) return json.Marshal(objectMap) @@ -1144,7 +1125,7 @@ func (k *KeyVaultKeyReference) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type KeyVaultKeyReferenceSourceVault. func (k KeyVaultKeyReferenceSourceVault) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", k.ID) return json.Marshal(objectMap) } @@ -1171,7 +1152,7 @@ func (k *KeyVaultKeyReferenceSourceVault) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type LogSpecification. func (l LogSpecification) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "displayName", l.DisplayName) populate(objectMap, "name", l.Name) return json.Marshal(objectMap) @@ -1202,7 +1183,7 @@ func (l *LogSpecification) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MetricDimension. func (m MetricDimension) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "displayName", m.DisplayName) populate(objectMap, "internalName", m.InternalName) populate(objectMap, "name", m.Name) @@ -1241,7 +1222,7 @@ func (m *MetricDimension) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type MetricSpecification. func (m MetricSpecification) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "aggregationType", m.AggregationType) populate(objectMap, "dimensions", m.Dimensions) populate(objectMap, "displayDescription", m.DisplayDescription) @@ -1296,7 +1277,7 @@ func (m *MetricSpecification) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type NamespaceJunction. func (n NamespaceJunction) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "namespacePath", n.NamespacePath) populate(objectMap, "nfsAccessPolicy", n.NfsAccessPolicy) populate(objectMap, "nfsExport", n.NfsExport) @@ -1335,9 +1316,11 @@ func (n *NamespaceJunction) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Nfs3Target. func (n Nfs3Target) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "target", n.Target) populate(objectMap, "usageModel", n.UsageModel) + populate(objectMap, "verificationTimer", n.VerificationTimer) + populate(objectMap, "writeBackTimer", n.WriteBackTimer) return json.Marshal(objectMap) } @@ -1356,6 +1339,12 @@ func (n *Nfs3Target) UnmarshalJSON(data []byte) error { case "usageModel": err = unpopulate(val, "UsageModel", &n.UsageModel) delete(rawMsg, key) + case "verificationTimer": + err = unpopulate(val, "VerificationTimer", &n.VerificationTimer) + delete(rawMsg, key) + case "writeBackTimer": + err = unpopulate(val, "WriteBackTimer", &n.WriteBackTimer) + delete(rawMsg, key) } if err != nil { return fmt.Errorf("unmarshalling type %T: %v", n, err) @@ -1366,7 +1355,7 @@ func (n *Nfs3Target) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type NfsAccessPolicy. func (n NfsAccessPolicy) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "accessRules", n.AccessRules) populate(objectMap, "name", n.Name) return json.Marshal(objectMap) @@ -1397,7 +1386,7 @@ func (n *NfsAccessPolicy) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type NfsAccessRule. func (n NfsAccessRule) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "access", n.Access) populate(objectMap, "anonymousGID", n.AnonymousGID) populate(objectMap, "anonymousUID", n.AnonymousUID) @@ -1452,7 +1441,7 @@ func (n *NfsAccessRule) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PrimingJob. func (p PrimingJob) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "primingJobDetails", p.PrimingJobDetails) populate(objectMap, "primingJobId", p.PrimingJobID) populate(objectMap, "primingJobName", p.PrimingJobName) @@ -1503,7 +1492,7 @@ func (p *PrimingJob) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PrimingJobIDParameter. func (p PrimingJobIDParameter) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "primingJobId", p.PrimingJobID) return json.Marshal(objectMap) } @@ -1530,7 +1519,7 @@ func (p *PrimingJobIDParameter) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ResourceSKU. func (r ResourceSKU) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "capabilities", r.Capabilities) populate(objectMap, "locationInfo", r.LocationInfo) populate(objectMap, "locations", r.Locations) @@ -1577,7 +1566,7 @@ func (r *ResourceSKU) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ResourceSKUCapabilities. func (r ResourceSKUCapabilities) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "name", r.Name) populate(objectMap, "value", r.Value) return json.Marshal(objectMap) @@ -1608,7 +1597,7 @@ func (r *ResourceSKUCapabilities) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ResourceSKULocationInfo. func (r ResourceSKULocationInfo) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "location", r.Location) populate(objectMap, "zones", r.Zones) return json.Marshal(objectMap) @@ -1639,7 +1628,7 @@ func (r *ResourceSKULocationInfo) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ResourceSKUsResult. func (r ResourceSKUsResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", r.NextLink) populate(objectMap, "value", r.Value) return json.Marshal(objectMap) @@ -1670,7 +1659,7 @@ func (r *ResourceSKUsResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ResourceUsage. func (r ResourceUsage) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "currentValue", r.CurrentValue) populate(objectMap, "limit", r.Limit) populate(objectMap, "name", r.Name) @@ -1709,7 +1698,7 @@ func (r *ResourceUsage) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ResourceUsageName. func (r ResourceUsageName) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "localizedValue", r.LocalizedValue) populate(objectMap, "value", r.Value) return json.Marshal(objectMap) @@ -1740,7 +1729,7 @@ func (r *ResourceUsageName) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ResourceUsagesListResult. func (r ResourceUsagesListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", r.NextLink) populate(objectMap, "value", r.Value) return json.Marshal(objectMap) @@ -1771,7 +1760,7 @@ func (r *ResourceUsagesListResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Restriction. func (r Restriction) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "reasonCode", r.ReasonCode) populate(objectMap, "type", r.Type) populate(objectMap, "values", r.Values) @@ -1806,7 +1795,7 @@ func (r *Restriction) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type StorageTarget. func (s StorageTarget) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", s.ID) populate(objectMap, "location", s.Location) populate(objectMap, "name", s.Name) @@ -1853,7 +1842,7 @@ func (s *StorageTarget) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type StorageTargetProperties. func (s StorageTargetProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "allocationPercentage", s.AllocationPercentage) populate(objectMap, "blobNfs", s.BlobNfs) populate(objectMap, "clfs", s.Clfs) @@ -1912,7 +1901,7 @@ func (s *StorageTargetProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type StorageTargetResource. func (s StorageTargetResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", s.ID) populate(objectMap, "location", s.Location) populate(objectMap, "name", s.Name) @@ -1955,7 +1944,7 @@ func (s *StorageTargetResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type StorageTargetSpaceAllocation. func (s StorageTargetSpaceAllocation) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "allocationPercentage", s.AllocationPercentage) populate(objectMap, "name", s.Name) return json.Marshal(objectMap) @@ -1986,7 +1975,7 @@ func (s *StorageTargetSpaceAllocation) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type StorageTargetsResult. func (s StorageTargetsResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", s.NextLink) populate(objectMap, "value", s.Value) return json.Marshal(objectMap) @@ -2017,7 +2006,7 @@ func (s *StorageTargetsResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SystemData. func (s SystemData) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populateTimeRFC3339(objectMap, "createdAt", s.CreatedAt) populate(objectMap, "createdBy", s.CreatedBy) populate(objectMap, "createdByType", s.CreatedByType) @@ -2064,7 +2053,7 @@ func (s *SystemData) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type UnknownTarget. func (u UnknownTarget) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "attributes", u.Attributes) return json.Marshal(objectMap) } @@ -2091,7 +2080,7 @@ func (u *UnknownTarget) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type UsageModel. func (u UsageModel) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "display", u.Display) populate(objectMap, "modelName", u.ModelName) populate(objectMap, "targetType", u.TargetType) @@ -2126,7 +2115,7 @@ func (u *UsageModel) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type UsageModelDisplay. func (u UsageModelDisplay) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "description", u.Description) return json.Marshal(objectMap) } @@ -2153,7 +2142,7 @@ func (u *UsageModelDisplay) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type UsageModelsResult. func (u UsageModelsResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "nextLink", u.NextLink) populate(objectMap, "value", u.Value) return json.Marshal(objectMap) @@ -2184,7 +2173,7 @@ func (u *UsageModelsResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type UserAssignedIdentitiesValue. func (u UserAssignedIdentitiesValue) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "clientId", u.ClientID) populate(objectMap, "principalId", u.PrincipalID) return json.Marshal(objectMap) @@ -2213,7 +2202,7 @@ func (u *UserAssignedIdentitiesValue) UnmarshalJSON(data []byte) error { return nil } -func populate(m map[string]interface{}, k string, v interface{}) { +func populate(m map[string]any, k string, v any) { if v == nil { return } else if azcore.IsNullValue(v) { @@ -2223,7 +2212,7 @@ func populate(m map[string]interface{}, k string, v interface{}) { } } -func unpopulate(data json.RawMessage, fn string, v interface{}) error { +func unpopulate(data json.RawMessage, fn string, v any) error { if data == nil { return nil } diff --git a/sdk/resourcemanager/storagecache/armstoragecache/operations_client.go b/sdk/resourcemanager/storagecache/armstoragecache/operations_client.go index 489b4abf650c..80ec3a631226 100644 --- a/sdk/resourcemanager/storagecache/armstoragecache/operations_client.go +++ b/sdk/resourcemanager/storagecache/armstoragecache/operations_client.go @@ -28,8 +28,8 @@ type OperationsClient struct { } // NewOperationsClient creates a new instance of OperationsClient with the specified values. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*OperationsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -50,9 +50,9 @@ func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientO } // NewListPager - Lists all of the available Resource Provider operations. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-05-01 -// options - OperationsClientListOptions contains the optional parameters for the OperationsClient.List method. +// +// Generated from API version 2023-01-01 +// - options - OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method. func (client *OperationsClient) NewListPager(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse] { return runtime.NewPager(runtime.PagingHandler[OperationsClientListResponse]{ More: func(page OperationsClientListResponse) bool { @@ -89,7 +89,7 @@ func (client *OperationsClient) listCreateRequest(ctx context.Context, options * return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-05-01") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/storagecache/armstoragecache/operations_client_example_test.go b/sdk/resourcemanager/storagecache/armstoragecache/operations_client_example_test.go index 2354a6743c96..b4238322d296 100644 --- a/sdk/resourcemanager/storagecache/armstoragecache/operations_client_example_test.go +++ b/sdk/resourcemanager/storagecache/armstoragecache/operations_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armstoragecache_test @@ -13,10 +14,10 @@ import ( "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storagecache/armstoragecache/v2" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storagecache/armstoragecache/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2022-05-01/examples/Operations_List.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/Operations_List.json func ExampleOperationsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -29,13 +30,73 @@ func ExampleOperationsClient_NewListPager() { } pager := client.NewListPager(nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.APIOperationListResult = armstoragecache.APIOperationListResult{ + // Value: []*armstoragecache.APIOperation{ + // { + // Name: to.Ptr("Microsoft.StorageCache/caches/write"), + // Display: &armstoragecache.APIOperationDisplay{ + // Operation: to.Ptr("Create or Update Cache"), + // Provider: to.Ptr("Azure Storage Cache"), + // Resource: to.Ptr("Caches"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.StorageCache/caches/delete"), + // Display: &armstoragecache.APIOperationDisplay{ + // Operation: to.Ptr("Delete Cache"), + // Provider: to.Ptr("Azure Storage Cache"), + // Resource: to.Ptr("Caches"), + // }, + // }, + // { + // Name: to.Ptr("Microsoft.StorageCache/caches/providers/Microsoft.Insights/metricDefinitions/read"), + // Display: &armstoragecache.APIOperationDisplay{ + // Description: to.Ptr("Reads Cache Metric Definitions."), + // Operation: to.Ptr("Get Cache Metric Definitions"), + // Provider: to.Ptr("Microsoft Azure HPC Cache"), + // Resource: to.Ptr("StorageCache Metric Definitions"), + // }, + // IsDataAction: to.Ptr(false), + // Origin: to.Ptr("system"), + // Properties: &armstoragecache.APIOperationProperties{ + // ServiceSpecification: &armstoragecache.APIOperationPropertiesServiceSpecification{ + // MetricSpecifications: []*armstoragecache.MetricSpecification{ + // { + // Name: to.Ptr("ClientIOPS"), + // AggregationType: to.Ptr("Average"), + // DisplayDescription: to.Ptr("The rate of client file operations processed by the Cache."), + // DisplayName: to.Ptr("Total Client IOPS"), + // MetricClass: to.Ptr("Transactions"), + // SupportedAggregationTypes: []*armstoragecache.MetricAggregationType{ + // to.Ptr(armstoragecache.MetricAggregationTypeMinimum), + // to.Ptr(armstoragecache.MetricAggregationTypeMaximum), + // to.Ptr(armstoragecache.MetricAggregationTypeAverage)}, + // Unit: to.Ptr("Count"), + // }, + // { + // Name: to.Ptr("ClientLatency"), + // AggregationType: to.Ptr("Average"), + // DisplayDescription: to.Ptr("Average latency of client file operations to the Cache."), + // DisplayName: to.Ptr("Average Client Latency"), + // MetricClass: to.Ptr("Latency"), + // SupportedAggregationTypes: []*armstoragecache.MetricAggregationType{ + // to.Ptr(armstoragecache.MetricAggregationTypeMinimum), + // to.Ptr(armstoragecache.MetricAggregationTypeMaximum), + // to.Ptr(armstoragecache.MetricAggregationTypeAverage)}, + // Unit: to.Ptr("Milliseconds"), + // }}, + // }, + // }, + // }}, + // } } } diff --git a/sdk/resourcemanager/storagecache/armstoragecache/response_types.go b/sdk/resourcemanager/storagecache/armstoragecache/response_types.go index 72d77073ad11..526991d96999 100644 --- a/sdk/resourcemanager/storagecache/armstoragecache/response_types.go +++ b/sdk/resourcemanager/storagecache/armstoragecache/response_types.go @@ -14,27 +14,27 @@ type AscOperationsClientGetResponse struct { AscOperation } -// AscUsagesClientListResponse contains the response from method AscUsagesClient.List. +// AscUsagesClientListResponse contains the response from method AscUsagesClient.NewListPager. type AscUsagesClientListResponse struct { ResourceUsagesListResult } -// CachesClientCreateOrUpdateResponse contains the response from method CachesClient.CreateOrUpdate. +// CachesClientCreateOrUpdateResponse contains the response from method CachesClient.BeginCreateOrUpdate. type CachesClientCreateOrUpdateResponse struct { Cache } -// CachesClientDebugInfoResponse contains the response from method CachesClient.DebugInfo. +// CachesClientDebugInfoResponse contains the response from method CachesClient.BeginDebugInfo. type CachesClientDebugInfoResponse struct { // placeholder for future response values } -// CachesClientDeleteResponse contains the response from method CachesClient.Delete. +// CachesClientDeleteResponse contains the response from method CachesClient.BeginDelete. type CachesClientDeleteResponse struct { // placeholder for future response values } -// CachesClientFlushResponse contains the response from method CachesClient.Flush. +// CachesClientFlushResponse contains the response from method CachesClient.BeginFlush. type CachesClientFlushResponse struct { // placeholder for future response values } @@ -44,102 +44,102 @@ type CachesClientGetResponse struct { Cache } -// CachesClientListByResourceGroupResponse contains the response from method CachesClient.ListByResourceGroup. +// CachesClientListByResourceGroupResponse contains the response from method CachesClient.NewListByResourceGroupPager. type CachesClientListByResourceGroupResponse struct { CachesListResult } -// CachesClientListResponse contains the response from method CachesClient.List. +// CachesClientListResponse contains the response from method CachesClient.NewListPager. type CachesClientListResponse struct { CachesListResult } -// CachesClientPausePrimingJobResponse contains the response from method CachesClient.PausePrimingJob. +// CachesClientPausePrimingJobResponse contains the response from method CachesClient.BeginPausePrimingJob. type CachesClientPausePrimingJobResponse struct { // placeholder for future response values } -// CachesClientResumePrimingJobResponse contains the response from method CachesClient.ResumePrimingJob. +// CachesClientResumePrimingJobResponse contains the response from method CachesClient.BeginResumePrimingJob. type CachesClientResumePrimingJobResponse struct { // placeholder for future response values } -// CachesClientSpaceAllocationResponse contains the response from method CachesClient.SpaceAllocation. +// CachesClientSpaceAllocationResponse contains the response from method CachesClient.BeginSpaceAllocation. type CachesClientSpaceAllocationResponse struct { // placeholder for future response values } -// CachesClientStartPrimingJobResponse contains the response from method CachesClient.StartPrimingJob. +// CachesClientStartPrimingJobResponse contains the response from method CachesClient.BeginStartPrimingJob. type CachesClientStartPrimingJobResponse struct { // placeholder for future response values } -// CachesClientStartResponse contains the response from method CachesClient.Start. +// CachesClientStartResponse contains the response from method CachesClient.BeginStart. type CachesClientStartResponse struct { // placeholder for future response values } -// CachesClientStopPrimingJobResponse contains the response from method CachesClient.StopPrimingJob. +// CachesClientStopPrimingJobResponse contains the response from method CachesClient.BeginStopPrimingJob. type CachesClientStopPrimingJobResponse struct { // placeholder for future response values } -// CachesClientStopResponse contains the response from method CachesClient.Stop. +// CachesClientStopResponse contains the response from method CachesClient.BeginStop. type CachesClientStopResponse struct { // placeholder for future response values } -// CachesClientUpdateResponse contains the response from method CachesClient.Update. +// CachesClientUpdateResponse contains the response from method CachesClient.BeginUpdate. type CachesClientUpdateResponse struct { Cache } -// CachesClientUpgradeFirmwareResponse contains the response from method CachesClient.UpgradeFirmware. +// CachesClientUpgradeFirmwareResponse contains the response from method CachesClient.BeginUpgradeFirmware. type CachesClientUpgradeFirmwareResponse struct { // placeholder for future response values } -// OperationsClientListResponse contains the response from method OperationsClient.List. +// OperationsClientListResponse contains the response from method OperationsClient.NewListPager. type OperationsClientListResponse struct { APIOperationListResult } -// SKUsClientListResponse contains the response from method SKUsClient.List. +// SKUsClientListResponse contains the response from method SKUsClient.NewListPager. type SKUsClientListResponse struct { ResourceSKUsResult } -// StorageTargetClientFlushResponse contains the response from method StorageTargetClient.Flush. +// StorageTargetClientFlushResponse contains the response from method StorageTargetClient.BeginFlush. type StorageTargetClientFlushResponse struct { // placeholder for future response values } -// StorageTargetClientInvalidateResponse contains the response from method StorageTargetClient.Invalidate. +// StorageTargetClientInvalidateResponse contains the response from method StorageTargetClient.BeginInvalidate. type StorageTargetClientInvalidateResponse struct { // placeholder for future response values } -// StorageTargetClientResumeResponse contains the response from method StorageTargetClient.Resume. +// StorageTargetClientResumeResponse contains the response from method StorageTargetClient.BeginResume. type StorageTargetClientResumeResponse struct { // placeholder for future response values } -// StorageTargetClientSuspendResponse contains the response from method StorageTargetClient.Suspend. +// StorageTargetClientSuspendResponse contains the response from method StorageTargetClient.BeginSuspend. type StorageTargetClientSuspendResponse struct { // placeholder for future response values } -// StorageTargetsClientCreateOrUpdateResponse contains the response from method StorageTargetsClient.CreateOrUpdate. +// StorageTargetsClientCreateOrUpdateResponse contains the response from method StorageTargetsClient.BeginCreateOrUpdate. type StorageTargetsClientCreateOrUpdateResponse struct { StorageTarget } -// StorageTargetsClientDNSRefreshResponse contains the response from method StorageTargetsClient.DNSRefresh. +// StorageTargetsClientDNSRefreshResponse contains the response from method StorageTargetsClient.BeginDNSRefresh. type StorageTargetsClientDNSRefreshResponse struct { // placeholder for future response values } -// StorageTargetsClientDeleteResponse contains the response from method StorageTargetsClient.Delete. +// StorageTargetsClientDeleteResponse contains the response from method StorageTargetsClient.BeginDelete. type StorageTargetsClientDeleteResponse struct { // placeholder for future response values } @@ -149,12 +149,17 @@ type StorageTargetsClientGetResponse struct { StorageTarget } -// StorageTargetsClientListByCacheResponse contains the response from method StorageTargetsClient.ListByCache. +// StorageTargetsClientListByCacheResponse contains the response from method StorageTargetsClient.NewListByCachePager. type StorageTargetsClientListByCacheResponse struct { StorageTargetsResult } -// UsageModelsClientListResponse contains the response from method UsageModelsClient.List. +// StorageTargetsClientRestoreDefaultsResponse contains the response from method StorageTargetsClient.BeginRestoreDefaults. +type StorageTargetsClientRestoreDefaultsResponse struct { + // placeholder for future response values +} + +// UsageModelsClientListResponse contains the response from method UsageModelsClient.NewListPager. type UsageModelsClientListResponse struct { UsageModelsResult } diff --git a/sdk/resourcemanager/storagecache/armstoragecache/skus_client.go b/sdk/resourcemanager/storagecache/armstoragecache/skus_client.go index eed4e85bf154..c5696adecce4 100644 --- a/sdk/resourcemanager/storagecache/armstoragecache/skus_client.go +++ b/sdk/resourcemanager/storagecache/armstoragecache/skus_client.go @@ -32,10 +32,10 @@ type SKUsClient struct { } // NewSKUsClient creates a new instance of SKUsClient with the specified values. -// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms -// part of the URI for every service call. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms +// part of the URI for every service call. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewSKUsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SKUsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,9 +57,9 @@ func NewSKUsClient(subscriptionID string, credential azcore.TokenCredential, opt } // NewListPager - Get the list of StorageCache.Cache SKUs available to this subscription. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-05-01 -// options - SKUsClientListOptions contains the optional parameters for the SKUsClient.List method. +// +// Generated from API version 2023-01-01 +// - options - SKUsClientListOptions contains the optional parameters for the SKUsClient.NewListPager method. func (client *SKUsClient) NewListPager(options *SKUsClientListOptions) *runtime.Pager[SKUsClientListResponse] { return runtime.NewPager(runtime.PagingHandler[SKUsClientListResponse]{ More: func(page SKUsClientListResponse) bool { @@ -100,7 +100,7 @@ func (client *SKUsClient) listCreateRequest(ctx context.Context, options *SKUsCl return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-05-01") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/storagecache/armstoragecache/skus_client_example_test.go b/sdk/resourcemanager/storagecache/armstoragecache/skus_client_example_test.go index ea725e31328f..08020555bf2c 100644 --- a/sdk/resourcemanager/storagecache/armstoragecache/skus_client_example_test.go +++ b/sdk/resourcemanager/storagecache/armstoragecache/skus_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armstoragecache_test @@ -13,10 +14,10 @@ import ( "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storagecache/armstoragecache/v2" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storagecache/armstoragecache/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2022-05-01/examples/Skus_List.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/Skus_List.json func ExampleSKUsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -29,13 +30,86 @@ func ExampleSKUsClient_NewListPager() { } pager := client.NewListPager(nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.ResourceSKUsResult = armstoragecache.ResourceSKUsResult{ + // Value: []*armstoragecache.ResourceSKU{ + // { + // Name: to.Ptr("Standard_2G"), + // Capabilities: []*armstoragecache.ResourceSKUCapabilities{ + // { + // Name: to.Ptr("throughput GB/s"), + // Value: to.Ptr("2"), + // }, + // { + // Name: to.Ptr("cache sizes(GB)"), + // Value: to.Ptr("3072,6144,12288"), + // }}, + // LocationInfo: []*armstoragecache.ResourceSKULocationInfo{ + // { + // Location: to.Ptr("eastus"), + // Zones: []*string{ + // }, + // }}, + // Locations: []*string{ + // to.Ptr("eastus")}, + // ResourceType: to.Ptr("caches"), + // Restrictions: []*armstoragecache.Restriction{ + // }, + // }, + // { + // Name: to.Ptr("Standard_4G"), + // Capabilities: []*armstoragecache.ResourceSKUCapabilities{ + // { + // Name: to.Ptr("throughput GB/s"), + // Value: to.Ptr("4"), + // }, + // { + // Name: to.Ptr("cache sizes(GB)"), + // Value: to.Ptr("6144,12288,24576"), + // }}, + // LocationInfo: []*armstoragecache.ResourceSKULocationInfo{ + // { + // Location: to.Ptr("eastus"), + // Zones: []*string{ + // }, + // }}, + // Locations: []*string{ + // to.Ptr("eastus")}, + // ResourceType: to.Ptr("caches"), + // Restrictions: []*armstoragecache.Restriction{ + // }, + // }, + // { + // Name: to.Ptr("Standard_8G"), + // Capabilities: []*armstoragecache.ResourceSKUCapabilities{ + // { + // Name: to.Ptr("throughput GB/s"), + // Value: to.Ptr("8"), + // }, + // { + // Name: to.Ptr("cache sizes(GB)"), + // Value: to.Ptr("12288,24576,49152"), + // }}, + // LocationInfo: []*armstoragecache.ResourceSKULocationInfo{ + // { + // Location: to.Ptr("eastus"), + // Zones: []*string{ + // }, + // }}, + // Locations: []*string{ + // to.Ptr("eastus")}, + // ResourceType: to.Ptr("caches"), + // Restrictions: []*armstoragecache.Restriction{ + // }, + // }}, + // } } } diff --git a/sdk/resourcemanager/storagecache/armstoragecache/storagetarget_client.go b/sdk/resourcemanager/storagecache/armstoragecache/storagetarget_client.go index 921be9eea660..6e52db175789 100644 --- a/sdk/resourcemanager/storagecache/armstoragecache/storagetarget_client.go +++ b/sdk/resourcemanager/storagecache/armstoragecache/storagetarget_client.go @@ -32,10 +32,10 @@ type StorageTargetClient struct { } // NewStorageTargetClient creates a new instance of StorageTargetClient with the specified values. -// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms -// part of the URI for every service call. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms +// part of the URI for every service call. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewStorageTargetClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*StorageTargetClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -59,12 +59,13 @@ func NewStorageTargetClient(subscriptionID string, credential azcore.TokenCreden // BeginFlush - Tells the cache to write all dirty data to the Storage Target's backend storage. Client requests to this storage // target's namespace will return errors until the flush operation completes. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-05-01 -// resourceGroupName - Target resource group. -// cacheName - Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class. -// storageTargetName - Name of Storage Target. -// options - StorageTargetClientBeginFlushOptions contains the optional parameters for the StorageTargetClient.BeginFlush -// method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - Target resource group. +// - cacheName - Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class. +// - storageTargetName - Name of Storage Target. +// - options - StorageTargetClientBeginFlushOptions contains the optional parameters for the StorageTargetClient.BeginFlush +// method. func (client *StorageTargetClient) BeginFlush(ctx context.Context, resourceGroupName string, cacheName string, storageTargetName string, options *StorageTargetClientBeginFlushOptions) (*runtime.Poller[StorageTargetClientFlushResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.flush(ctx, resourceGroupName, cacheName, storageTargetName, options) @@ -82,7 +83,8 @@ func (client *StorageTargetClient) BeginFlush(ctx context.Context, resourceGroup // Flush - Tells the cache to write all dirty data to the Storage Target's backend storage. Client requests to this storage // target's namespace will return errors until the flush operation completes. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-05-01 +// +// Generated from API version 2023-01-01 func (client *StorageTargetClient) flush(ctx context.Context, resourceGroupName string, cacheName string, storageTargetName string, options *StorageTargetClientBeginFlushOptions) (*http.Response, error) { req, err := client.flushCreateRequest(ctx, resourceGroupName, cacheName, storageTargetName, options) if err != nil { @@ -122,7 +124,7 @@ func (client *StorageTargetClient) flushCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-05-01") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -131,12 +133,13 @@ func (client *StorageTargetClient) flushCreateRequest(ctx context.Context, resou // BeginInvalidate - Invalidate all cached data for a storage target. Cached files are discarded and fetched from the back // end on the next request. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-05-01 -// resourceGroupName - Target resource group. -// cacheName - Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class. -// storageTargetName - Name of Storage Target. -// options - StorageTargetClientBeginInvalidateOptions contains the optional parameters for the StorageTargetClient.BeginInvalidate -// method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - Target resource group. +// - cacheName - Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class. +// - storageTargetName - Name of Storage Target. +// - options - StorageTargetClientBeginInvalidateOptions contains the optional parameters for the StorageTargetClient.BeginInvalidate +// method. func (client *StorageTargetClient) BeginInvalidate(ctx context.Context, resourceGroupName string, cacheName string, storageTargetName string, options *StorageTargetClientBeginInvalidateOptions) (*runtime.Poller[StorageTargetClientInvalidateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.invalidate(ctx, resourceGroupName, cacheName, storageTargetName, options) @@ -154,7 +157,8 @@ func (client *StorageTargetClient) BeginInvalidate(ctx context.Context, resource // Invalidate - Invalidate all cached data for a storage target. Cached files are discarded and fetched from the back end // on the next request. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-05-01 +// +// Generated from API version 2023-01-01 func (client *StorageTargetClient) invalidate(ctx context.Context, resourceGroupName string, cacheName string, storageTargetName string, options *StorageTargetClientBeginInvalidateOptions) (*http.Response, error) { req, err := client.invalidateCreateRequest(ctx, resourceGroupName, cacheName, storageTargetName, options) if err != nil { @@ -194,7 +198,7 @@ func (client *StorageTargetClient) invalidateCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-05-01") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -202,12 +206,13 @@ func (client *StorageTargetClient) invalidateCreateRequest(ctx context.Context, // BeginResume - Resumes client access to a previously suspended storage target. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-05-01 -// resourceGroupName - Target resource group. -// cacheName - Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class. -// storageTargetName - Name of Storage Target. -// options - StorageTargetClientBeginResumeOptions contains the optional parameters for the StorageTargetClient.BeginResume -// method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - Target resource group. +// - cacheName - Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class. +// - storageTargetName - Name of Storage Target. +// - options - StorageTargetClientBeginResumeOptions contains the optional parameters for the StorageTargetClient.BeginResume +// method. func (client *StorageTargetClient) BeginResume(ctx context.Context, resourceGroupName string, cacheName string, storageTargetName string, options *StorageTargetClientBeginResumeOptions) (*runtime.Poller[StorageTargetClientResumeResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.resume(ctx, resourceGroupName, cacheName, storageTargetName, options) @@ -224,7 +229,8 @@ func (client *StorageTargetClient) BeginResume(ctx context.Context, resourceGrou // Resume - Resumes client access to a previously suspended storage target. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-05-01 +// +// Generated from API version 2023-01-01 func (client *StorageTargetClient) resume(ctx context.Context, resourceGroupName string, cacheName string, storageTargetName string, options *StorageTargetClientBeginResumeOptions) (*http.Response, error) { req, err := client.resumeCreateRequest(ctx, resourceGroupName, cacheName, storageTargetName, options) if err != nil { @@ -264,7 +270,7 @@ func (client *StorageTargetClient) resumeCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-05-01") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -272,12 +278,13 @@ func (client *StorageTargetClient) resumeCreateRequest(ctx context.Context, reso // BeginSuspend - Suspends client access to a storage target. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-05-01 -// resourceGroupName - Target resource group. -// cacheName - Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class. -// storageTargetName - Name of Storage Target. -// options - StorageTargetClientBeginSuspendOptions contains the optional parameters for the StorageTargetClient.BeginSuspend -// method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - Target resource group. +// - cacheName - Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class. +// - storageTargetName - Name of Storage Target. +// - options - StorageTargetClientBeginSuspendOptions contains the optional parameters for the StorageTargetClient.BeginSuspend +// method. func (client *StorageTargetClient) BeginSuspend(ctx context.Context, resourceGroupName string, cacheName string, storageTargetName string, options *StorageTargetClientBeginSuspendOptions) (*runtime.Poller[StorageTargetClientSuspendResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.suspend(ctx, resourceGroupName, cacheName, storageTargetName, options) @@ -294,7 +301,8 @@ func (client *StorageTargetClient) BeginSuspend(ctx context.Context, resourceGro // Suspend - Suspends client access to a storage target. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-05-01 +// +// Generated from API version 2023-01-01 func (client *StorageTargetClient) suspend(ctx context.Context, resourceGroupName string, cacheName string, storageTargetName string, options *StorageTargetClientBeginSuspendOptions) (*http.Response, error) { req, err := client.suspendCreateRequest(ctx, resourceGroupName, cacheName, storageTargetName, options) if err != nil { @@ -334,7 +342,7 @@ func (client *StorageTargetClient) suspendCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-05-01") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/storagecache/armstoragecache/storagetarget_client_example_test.go b/sdk/resourcemanager/storagecache/armstoragecache/storagetarget_client_example_test.go index 3a75be600b40..e5ca75fe5de2 100644 --- a/sdk/resourcemanager/storagecache/armstoragecache/storagetarget_client_example_test.go +++ b/sdk/resourcemanager/storagecache/armstoragecache/storagetarget_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armstoragecache_test @@ -13,10 +14,10 @@ import ( "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storagecache/armstoragecache/v2" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storagecache/armstoragecache/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2022-05-01/examples/StorageTargets_Flush.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/StorageTargets_Flush.json func ExampleStorageTargetClient_BeginFlush() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -27,11 +28,7 @@ func ExampleStorageTargetClient_BeginFlush() { if err != nil { log.Fatalf("failed to create client: %v", err) } - poller, err := client.BeginFlush(ctx, - "scgroup", - "sc", - "st1", - nil) + poller, err := client.BeginFlush(ctx, "scgroup", "sc", "st1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } @@ -41,7 +38,7 @@ func ExampleStorageTargetClient_BeginFlush() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2022-05-01/examples/StorageTargets_Suspend.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/StorageTargets_Suspend.json func ExampleStorageTargetClient_BeginSuspend() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -52,11 +49,7 @@ func ExampleStorageTargetClient_BeginSuspend() { if err != nil { log.Fatalf("failed to create client: %v", err) } - poller, err := client.BeginSuspend(ctx, - "scgroup", - "sc", - "st1", - nil) + poller, err := client.BeginSuspend(ctx, "scgroup", "sc", "st1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } @@ -66,7 +59,7 @@ func ExampleStorageTargetClient_BeginSuspend() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2022-05-01/examples/StorageTargets_Resume.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/StorageTargets_Resume.json func ExampleStorageTargetClient_BeginResume() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -77,11 +70,7 @@ func ExampleStorageTargetClient_BeginResume() { if err != nil { log.Fatalf("failed to create client: %v", err) } - poller, err := client.BeginResume(ctx, - "scgroup", - "sc", - "st1", - nil) + poller, err := client.BeginResume(ctx, "scgroup", "sc", "st1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } @@ -91,7 +80,7 @@ func ExampleStorageTargetClient_BeginResume() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2022-05-01/examples/StorageTargets_Invalidate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/StorageTargets_Invalidate.json func ExampleStorageTargetClient_BeginInvalidate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -102,11 +91,7 @@ func ExampleStorageTargetClient_BeginInvalidate() { if err != nil { log.Fatalf("failed to create client: %v", err) } - poller, err := client.BeginInvalidate(ctx, - "scgroup", - "sc", - "st1", - nil) + poller, err := client.BeginInvalidate(ctx, "scgroup", "sc", "st1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } diff --git a/sdk/resourcemanager/storagecache/armstoragecache/storagetargets_client.go b/sdk/resourcemanager/storagecache/armstoragecache/storagetargets_client.go index 65c18c19b91b..963bc9039b8b 100644 --- a/sdk/resourcemanager/storagecache/armstoragecache/storagetargets_client.go +++ b/sdk/resourcemanager/storagecache/armstoragecache/storagetargets_client.go @@ -32,10 +32,10 @@ type StorageTargetsClient struct { } // NewStorageTargetsClient creates a new instance of StorageTargetsClient with the specified values. -// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms -// part of the URI for every service call. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms +// part of the URI for every service call. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewStorageTargetsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*StorageTargetsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -60,13 +60,14 @@ func NewStorageTargetsClient(subscriptionID string, credential azcore.TokenCrede // or unhealthy, the actual creation/modification of the Storage Target may be delayed until the Cache // is healthy again. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-05-01 -// resourceGroupName - Target resource group. -// cacheName - Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class. -// storageTargetName - Name of Storage Target. -// storagetarget - Object containing the definition of a Storage Target. -// options - StorageTargetsClientBeginCreateOrUpdateOptions contains the optional parameters for the StorageTargetsClient.BeginCreateOrUpdate -// method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - Target resource group. +// - cacheName - Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class. +// - storageTargetName - Name of Storage Target. +// - storagetarget - Object containing the definition of a Storage Target. +// - options - StorageTargetsClientBeginCreateOrUpdateOptions contains the optional parameters for the StorageTargetsClient.BeginCreateOrUpdate +// method. func (client *StorageTargetsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, cacheName string, storageTargetName string, storagetarget StorageTarget, options *StorageTargetsClientBeginCreateOrUpdateOptions) (*runtime.Poller[StorageTargetsClientCreateOrUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createOrUpdate(ctx, resourceGroupName, cacheName, storageTargetName, storagetarget, options) @@ -83,7 +84,8 @@ func (client *StorageTargetsClient) BeginCreateOrUpdate(ctx context.Context, res // unhealthy, the actual creation/modification of the Storage Target may be delayed until the Cache // is healthy again. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-05-01 +// +// Generated from API version 2023-01-01 func (client *StorageTargetsClient) createOrUpdate(ctx context.Context, resourceGroupName string, cacheName string, storageTargetName string, storagetarget StorageTarget, options *StorageTargetsClientBeginCreateOrUpdateOptions) (*http.Response, error) { req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, cacheName, storageTargetName, storagetarget, options) if err != nil { @@ -123,7 +125,7 @@ func (client *StorageTargetsClient) createOrUpdateCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-05-01") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, storagetarget) @@ -131,12 +133,13 @@ func (client *StorageTargetsClient) createOrUpdateCreateRequest(ctx context.Cont // BeginDNSRefresh - Tells a storage target to refresh its DNS information. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-05-01 -// resourceGroupName - Target resource group. -// cacheName - Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class. -// storageTargetName - Name of Storage Target. -// options - StorageTargetsClientBeginDNSRefreshOptions contains the optional parameters for the StorageTargetsClient.BeginDNSRefresh -// method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - Target resource group. +// - cacheName - Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class. +// - storageTargetName - Name of Storage Target. +// - options - StorageTargetsClientBeginDNSRefreshOptions contains the optional parameters for the StorageTargetsClient.BeginDNSRefresh +// method. func (client *StorageTargetsClient) BeginDNSRefresh(ctx context.Context, resourceGroupName string, cacheName string, storageTargetName string, options *StorageTargetsClientBeginDNSRefreshOptions) (*runtime.Poller[StorageTargetsClientDNSRefreshResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.dNSRefresh(ctx, resourceGroupName, cacheName, storageTargetName, options) @@ -153,7 +156,8 @@ func (client *StorageTargetsClient) BeginDNSRefresh(ctx context.Context, resourc // DNSRefresh - Tells a storage target to refresh its DNS information. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-05-01 +// +// Generated from API version 2023-01-01 func (client *StorageTargetsClient) dNSRefresh(ctx context.Context, resourceGroupName string, cacheName string, storageTargetName string, options *StorageTargetsClientBeginDNSRefreshOptions) (*http.Response, error) { req, err := client.dnsRefreshCreateRequest(ctx, resourceGroupName, cacheName, storageTargetName, options) if err != nil { @@ -193,7 +197,7 @@ func (client *StorageTargetsClient) dnsRefreshCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-05-01") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -204,12 +208,13 @@ func (client *StorageTargetsClient) dnsRefreshCreateRequest(ctx context.Context, // again. Note that if the Cache has data to flush to the Storage Target, the data will be flushed before the Storage Target // will be deleted. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-05-01 -// resourceGroupName - Target resource group. -// cacheName - Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class. -// storageTargetName - Name of Storage Target. -// options - StorageTargetsClientBeginDeleteOptions contains the optional parameters for the StorageTargetsClient.BeginDelete -// method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - Target resource group. +// - cacheName - Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class. +// - storageTargetName - Name of Storage Target. +// - options - StorageTargetsClientBeginDeleteOptions contains the optional parameters for the StorageTargetsClient.BeginDelete +// method. func (client *StorageTargetsClient) BeginDelete(ctx context.Context, resourceGroupName string, cacheName string, storageTargetName string, options *StorageTargetsClientBeginDeleteOptions) (*runtime.Poller[StorageTargetsClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, cacheName, storageTargetName, options) @@ -227,7 +232,8 @@ func (client *StorageTargetsClient) BeginDelete(ctx context.Context, resourceGro // again. Note that if the Cache has data to flush to the Storage Target, the data will be flushed before the Storage Target // will be deleted. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-05-01 +// +// Generated from API version 2023-01-01 func (client *StorageTargetsClient) deleteOperation(ctx context.Context, resourceGroupName string, cacheName string, storageTargetName string, options *StorageTargetsClientBeginDeleteOptions) (*http.Response, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, cacheName, storageTargetName, options) if err != nil { @@ -267,7 +273,7 @@ func (client *StorageTargetsClient) deleteCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-05-01") + reqQP.Set("api-version", "2023-01-01") if options != nil && options.Force != nil { reqQP.Set("force", *options.Force) } @@ -278,11 +284,12 @@ func (client *StorageTargetsClient) deleteCreateRequest(ctx context.Context, res // Get - Returns a Storage Target from a Cache. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-05-01 -// resourceGroupName - Target resource group. -// cacheName - Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class. -// storageTargetName - Name of Storage Target. -// options - StorageTargetsClientGetOptions contains the optional parameters for the StorageTargetsClient.Get method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - Target resource group. +// - cacheName - Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class. +// - storageTargetName - Name of Storage Target. +// - options - StorageTargetsClientGetOptions contains the optional parameters for the StorageTargetsClient.Get method. func (client *StorageTargetsClient) Get(ctx context.Context, resourceGroupName string, cacheName string, storageTargetName string, options *StorageTargetsClientGetOptions) (StorageTargetsClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, cacheName, storageTargetName, options) if err != nil { @@ -322,7 +329,7 @@ func (client *StorageTargetsClient) getCreateRequest(ctx context.Context, resour return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-05-01") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -338,12 +345,12 @@ func (client *StorageTargetsClient) getHandleResponse(resp *http.Response) (Stor } // NewListByCachePager - Returns a list of Storage Targets for the specified Cache. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-05-01 -// resourceGroupName - Target resource group. -// cacheName - Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class. -// options - StorageTargetsClientListByCacheOptions contains the optional parameters for the StorageTargetsClient.ListByCache -// method. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - Target resource group. +// - cacheName - Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class. +// - options - StorageTargetsClientListByCacheOptions contains the optional parameters for the StorageTargetsClient.NewListByCachePager +// method. func (client *StorageTargetsClient) NewListByCachePager(resourceGroupName string, cacheName string, options *StorageTargetsClientListByCacheOptions) *runtime.Pager[StorageTargetsClientListByCacheResponse] { return runtime.NewPager(runtime.PagingHandler[StorageTargetsClientListByCacheResponse]{ More: func(page StorageTargetsClientListByCacheResponse) bool { @@ -392,7 +399,7 @@ func (client *StorageTargetsClient) listByCacheCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-05-01") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -406,3 +413,75 @@ func (client *StorageTargetsClient) listByCacheHandleResponse(resp *http.Respons } return result, nil } + +// BeginRestoreDefaults - Tells a storage target to restore its settings to their default values. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-01-01 +// - resourceGroupName - Target resource group. +// - cacheName - Name of Cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class. +// - storageTargetName - Name of Storage Target. +// - options - StorageTargetsClientBeginRestoreDefaultsOptions contains the optional parameters for the StorageTargetsClient.BeginRestoreDefaults +// method. +func (client *StorageTargetsClient) BeginRestoreDefaults(ctx context.Context, resourceGroupName string, cacheName string, storageTargetName string, options *StorageTargetsClientBeginRestoreDefaultsOptions) (*runtime.Poller[StorageTargetsClientRestoreDefaultsResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.restoreDefaults(ctx, resourceGroupName, cacheName, storageTargetName, options) + if err != nil { + return nil, err + } + return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[StorageTargetsClientRestoreDefaultsResponse]{ + FinalStateVia: runtime.FinalStateViaLocation, + }) + } else { + return runtime.NewPollerFromResumeToken[StorageTargetsClientRestoreDefaultsResponse](options.ResumeToken, client.pl, nil) + } +} + +// RestoreDefaults - Tells a storage target to restore its settings to their default values. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2023-01-01 +func (client *StorageTargetsClient) restoreDefaults(ctx context.Context, resourceGroupName string, cacheName string, storageTargetName string, options *StorageTargetsClientBeginRestoreDefaultsOptions) (*http.Response, error) { + req, err := client.restoreDefaultsCreateRequest(ctx, resourceGroupName, cacheName, storageTargetName, options) + if err != nil { + return nil, err + } + resp, err := client.pl.Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { + return nil, runtime.NewResponseError(resp) + } + return resp, nil +} + +// restoreDefaultsCreateRequest creates the RestoreDefaults request. +func (client *StorageTargetsClient) restoreDefaultsCreateRequest(ctx context.Context, resourceGroupName string, cacheName string, storageTargetName string, options *StorageTargetsClientBeginRestoreDefaultsOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/storageTargets/{storageTargetName}/restoreDefaults" + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if cacheName == "" { + return nil, errors.New("parameter cacheName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{cacheName}", url.PathEscape(cacheName)) + if storageTargetName == "" { + return nil, errors.New("parameter storageTargetName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{storageTargetName}", url.PathEscape(storageTargetName)) + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2023-01-01") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} diff --git a/sdk/resourcemanager/storagecache/armstoragecache/storagetargets_client_example_test.go b/sdk/resourcemanager/storagecache/armstoragecache/storagetargets_client_example_test.go index 2e933908edbf..7205edfc36b3 100644 --- a/sdk/resourcemanager/storagecache/armstoragecache/storagetargets_client_example_test.go +++ b/sdk/resourcemanager/storagecache/armstoragecache/storagetargets_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armstoragecache_test @@ -14,10 +15,31 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storagecache/armstoragecache/v2" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storagecache/armstoragecache/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2022-05-01/examples/StorageTargets_ListByCache.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/StorageTargets_DnsRefresh.json +func ExampleStorageTargetsClient_BeginDNSRefresh() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armstoragecache.NewStorageTargetsClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginDNSRefresh(ctx, "scgroup", "sc", "st1", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + _, err = poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/StorageTargets_ListByCache.json func ExampleStorageTargetsClient_NewListByCachePager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -28,22 +50,117 @@ func ExampleStorageTargetsClient_NewListByCachePager() { if err != nil { log.Fatalf("failed to create client: %v", err) } - pager := client.NewListByCachePager("scgroup", - "sc1", - nil) + pager := client.NewListByCachePager("scgroup", "sc1", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.StorageTargetsResult = armstoragecache.StorageTargetsResult{ + // Value: []*armstoragecache.StorageTarget{ + // { + // Name: to.Ptr("st1"), + // Type: to.Ptr("Microsoft.StorageCache/Cache/StorageTarget"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.StorageCache/caches/sc1/storagetargets/st1"), + // SystemData: &armstoragecache.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-01T17:18:19.1234567Z"); return t}()), + // CreatedBy: to.Ptr("user1"), + // CreatedByType: to.Ptr(armstoragecache.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-02T17:18:19.1234567Z"); return t}()), + // LastModifiedBy: to.Ptr("user2"), + // LastModifiedByType: to.Ptr(armstoragecache.CreatedByTypeUser), + // }, + // Properties: &armstoragecache.StorageTargetProperties{ + // AllocationPercentage: to.Ptr[int32](25), + // Junctions: []*armstoragecache.NamespaceJunction{ + // { + // NamespacePath: to.Ptr("/path/on/cache"), + // NfsAccessPolicy: to.Ptr("default"), + // NfsExport: to.Ptr("exp1"), + // TargetPath: to.Ptr("/path/on/exp1"), + // }, + // { + // NamespacePath: to.Ptr("/path2/on/cache"), + // NfsAccessPolicy: to.Ptr("default"), + // NfsExport: to.Ptr("exp2"), + // TargetPath: to.Ptr("/path2/on/exp2"), + // }}, + // Nfs3: &armstoragecache.Nfs3Target{ + // Target: to.Ptr("10.0.44.44"), + // UsageModel: to.Ptr("READ_ONLY"), + // }, + // State: to.Ptr(armstoragecache.OperationalStateTypeReady), + // TargetType: to.Ptr(armstoragecache.StorageTargetTypeNfs3), + // }, + // }, + // { + // Name: to.Ptr("st2"), + // Type: to.Ptr("Microsoft.StorageCache/Cache/StorageTarget"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.StorageCache/caches/sc1/storagetargets/st2"), + // SystemData: &armstoragecache.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-01T17:18:19.1234567Z"); return t}()), + // CreatedBy: to.Ptr("user1"), + // CreatedByType: to.Ptr(armstoragecache.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-02T17:18:19.1234567Z"); return t}()), + // LastModifiedBy: to.Ptr("user2"), + // LastModifiedByType: to.Ptr(armstoragecache.CreatedByTypeUser), + // }, + // Properties: &armstoragecache.StorageTargetProperties{ + // AllocationPercentage: to.Ptr[int32](50), + // Clfs: &armstoragecache.ClfsTarget{ + // Target: to.Ptr("https://contoso123.blob.core.windows.net/contoso123"), + // }, + // Junctions: []*armstoragecache.NamespaceJunction{ + // { + // NamespacePath: to.Ptr("/some/arbitrary/place/on/cache"), + // NfsAccessPolicy: to.Ptr("default"), + // TargetPath: to.Ptr("/"), + // }}, + // State: to.Ptr(armstoragecache.OperationalStateTypeReady), + // TargetType: to.Ptr(armstoragecache.StorageTargetTypeClfs), + // }, + // }, + // { + // Name: to.Ptr("st3"), + // Type: to.Ptr("Microsoft.StorageCache/Cache/StorageTarget"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.StorageCache/caches/sc1/storagetargets/st3"), + // SystemData: &armstoragecache.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-01T17:18:19.1234567Z"); return t}()), + // CreatedBy: to.Ptr("user1"), + // CreatedByType: to.Ptr(armstoragecache.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-02T17:18:19.1234567Z"); return t}()), + // LastModifiedBy: to.Ptr("user2"), + // LastModifiedByType: to.Ptr(armstoragecache.CreatedByTypeUser), + // }, + // Properties: &armstoragecache.StorageTargetProperties{ + // AllocationPercentage: to.Ptr[int32](25), + // Junctions: []*armstoragecache.NamespaceJunction{ + // { + // NamespacePath: to.Ptr("/some/crazier/place/on/cache"), + // NfsAccessPolicy: to.Ptr("default"), + // NfsExport: to.Ptr(""), + // TargetPath: to.Ptr("/"), + // }}, + // State: to.Ptr(armstoragecache.OperationalStateTypeReady), + // TargetType: to.Ptr(armstoragecache.StorageTargetTypeUnknown), + // Unknown: &armstoragecache.UnknownTarget{ + // Attributes: map[string]*string{ + // "foo": to.Ptr("bar"), + // "foo2": to.Ptr("test"), + // }, + // }, + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2022-05-01/examples/StorageTargets_Delete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/StorageTargets_Delete.json func ExampleStorageTargetsClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -54,11 +171,7 @@ func ExampleStorageTargetsClient_BeginDelete() { if err != nil { log.Fatalf("failed to create client: %v", err) } - poller, err := client.BeginDelete(ctx, - "scgroup", - "sc1", - "st1", - &armstoragecache.StorageTargetsClientBeginDeleteOptions{Force: nil}) + poller, err := client.BeginDelete(ctx, "scgroup", "sc1", "st1", &armstoragecache.StorageTargetsClientBeginDeleteOptions{Force: nil}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } @@ -68,7 +181,7 @@ func ExampleStorageTargetsClient_BeginDelete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2022-05-01/examples/StorageTargets_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/StorageTargets_Get.json func ExampleStorageTargetsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -79,20 +192,52 @@ func ExampleStorageTargetsClient_Get() { if err != nil { log.Fatalf("failed to create client: %v", err) } - res, err := client.Get(ctx, - "scgroup", - "sc1", - "st1", - nil) + res, err := client.Get(ctx, "scgroup", "sc1", "st1", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.StorageTarget = armstoragecache.StorageTarget{ + // Name: to.Ptr("st1"), + // Type: to.Ptr("Microsoft.StorageCache/Cache/StorageTarget"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.StorageCache/caches/sc1/storagetargets/st1"), + // SystemData: &armstoragecache.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-01T17:18:19.1234567Z"); return t}()), + // CreatedBy: to.Ptr("user1"), + // CreatedByType: to.Ptr(armstoragecache.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-02T17:18:19.1234567Z"); return t}()), + // LastModifiedBy: to.Ptr("user2"), + // LastModifiedByType: to.Ptr(armstoragecache.CreatedByTypeUser), + // }, + // Properties: &armstoragecache.StorageTargetProperties{ + // AllocationPercentage: to.Ptr[int32](25), + // Junctions: []*armstoragecache.NamespaceJunction{ + // { + // NamespacePath: to.Ptr("/path/on/cache"), + // NfsAccessPolicy: to.Ptr("default"), + // NfsExport: to.Ptr("exp1"), + // TargetPath: to.Ptr("/path/on/exp1"), + // }, + // { + // NamespacePath: to.Ptr("/path2/on/cache"), + // NfsAccessPolicy: to.Ptr("default"), + // NfsExport: to.Ptr("exp2"), + // TargetPath: to.Ptr("/path2/on/exp2"), + // }}, + // Nfs3: &armstoragecache.Nfs3Target{ + // Target: to.Ptr("10.0.44.44"), + // UsageModel: to.Ptr("READ_HEAVY_FREQ"), + // }, + // State: to.Ptr(armstoragecache.OperationalStateTypeReady), + // TargetType: to.Ptr(armstoragecache.StorageTargetTypeNfs3), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2022-05-01/examples/StorageTargets_CreateOrUpdate.json -func ExampleStorageTargetsClient_BeginCreateOrUpdate() { +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/StorageTargets_CreateOrUpdate.json +func ExampleStorageTargetsClient_BeginCreateOrUpdate_storageTargetsCreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -102,33 +247,102 @@ func ExampleStorageTargetsClient_BeginCreateOrUpdate() { if err != nil { log.Fatalf("failed to create client: %v", err) } - poller, err := client.BeginCreateOrUpdate(ctx, - "scgroup", - "sc1", - "st1", - armstoragecache.StorageTarget{ - Properties: &armstoragecache.StorageTargetProperties{ - Junctions: []*armstoragecache.NamespaceJunction{ - { - NamespacePath: to.Ptr("/path/on/cache"), - NfsAccessPolicy: to.Ptr("default"), - NfsExport: to.Ptr("exp1"), - TargetPath: to.Ptr("/path/on/exp1"), - }, - { - NamespacePath: to.Ptr("/path2/on/cache"), - NfsAccessPolicy: to.Ptr("rootSquash"), - NfsExport: to.Ptr("exp2"), - TargetPath: to.Ptr("/path2/on/exp2"), - }}, - Nfs3: &armstoragecache.Nfs3Target{ - Target: to.Ptr("10.0.44.44"), - UsageModel: to.Ptr("READ_HEAVY_INFREQ"), + poller, err := client.BeginCreateOrUpdate(ctx, "scgroup", "sc1", "st1", armstoragecache.StorageTarget{ + Properties: &armstoragecache.StorageTargetProperties{ + Junctions: []*armstoragecache.NamespaceJunction{ + { + NamespacePath: to.Ptr("/path/on/cache"), + NfsAccessPolicy: to.Ptr("default"), + NfsExport: to.Ptr("exp1"), + TargetPath: to.Ptr("/path/on/exp1"), }, - TargetType: to.Ptr(armstoragecache.StorageTargetTypeNfs3), + { + NamespacePath: to.Ptr("/path2/on/cache"), + NfsAccessPolicy: to.Ptr("rootSquash"), + NfsExport: to.Ptr("exp2"), + TargetPath: to.Ptr("/path2/on/exp2"), + }}, + Nfs3: &armstoragecache.Nfs3Target{ + Target: to.Ptr("10.0.44.44"), + UsageModel: to.Ptr("READ_ONLY"), + VerificationTimer: to.Ptr[int32](30), + }, + TargetType: to.Ptr(armstoragecache.StorageTargetTypeNfs3), + }, + }, 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.StorageTarget = armstoragecache.StorageTarget{ + // Name: to.Ptr("st1"), + // Type: to.Ptr("Microsoft.StorageCache/Cache/StorageTarget"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.StorageCache/caches/sc1/storagetargets/st1"), + // SystemData: &armstoragecache.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-01T17:18:19.1234567Z"); return t}()), + // CreatedBy: to.Ptr("user1"), + // CreatedByType: to.Ptr(armstoragecache.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-02T17:18:19.1234567Z"); return t}()), + // LastModifiedBy: to.Ptr("user2"), + // LastModifiedByType: to.Ptr(armstoragecache.CreatedByTypeUser), + // }, + // Properties: &armstoragecache.StorageTargetProperties{ + // Junctions: []*armstoragecache.NamespaceJunction{ + // { + // NamespacePath: to.Ptr("/path/on/cache"), + // NfsAccessPolicy: to.Ptr("default"), + // NfsExport: to.Ptr("exp1"), + // TargetPath: to.Ptr("/path/on/exp1"), + // }, + // { + // NamespacePath: to.Ptr("/path2/on/cache"), + // NfsAccessPolicy: to.Ptr("rootSquash"), + // NfsExport: to.Ptr("exp2"), + // TargetPath: to.Ptr("/path2/on/exp2"), + // }}, + // Nfs3: &armstoragecache.Nfs3Target{ + // Target: to.Ptr("10.0.44.44"), + // UsageModel: to.Ptr("READ_ONLY"), + // VerificationTimer: to.Ptr[int32](30), + // }, + // State: to.Ptr(armstoragecache.OperationalStateTypeReady), + // TargetType: to.Ptr(armstoragecache.StorageTargetTypeNfs3), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/StorageTargets_CreateOrUpdate_BlobNfs.json +func ExampleStorageTargetsClient_BeginCreateOrUpdate_storageTargetsCreateOrUpdateBlobNfs() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armstoragecache.NewStorageTargetsClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreateOrUpdate(ctx, "scgroup", "sc1", "st1", armstoragecache.StorageTarget{ + Properties: &armstoragecache.StorageTargetProperties{ + BlobNfs: &armstoragecache.BlobNfsTarget{ + Target: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.Storage/storageAccounts/blofnfs/blobServices/default/containers/blobnfs"), + UsageModel: to.Ptr("READ_WRITE"), + VerificationTimer: to.Ptr[int32](28800), + WriteBackTimer: to.Ptr[int32](3600), }, + Junctions: []*armstoragecache.NamespaceJunction{ + { + NamespacePath: to.Ptr("/blobnfs"), + }}, + TargetType: to.Ptr(armstoragecache.StorageTargetTypeBlobNfs), }, - nil) + }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } @@ -136,6 +350,110 @@ func ExampleStorageTargetsClient_BeginCreateOrUpdate() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.StorageTarget = armstoragecache.StorageTarget{ + // Name: to.Ptr("st1"), + // Type: to.Ptr("Microsoft.StorageCache/Cache/StorageTarget"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.StorageCache/caches/sc1/storagetargets/st1"), + // SystemData: &armstoragecache.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-01T17:18:19.1234567Z"); return t}()), + // CreatedBy: to.Ptr("user1"), + // CreatedByType: to.Ptr(armstoragecache.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-02T17:18:19.1234567Z"); return t}()), + // LastModifiedBy: to.Ptr("user2"), + // LastModifiedByType: to.Ptr(armstoragecache.CreatedByTypeUser), + // }, + // Properties: &armstoragecache.StorageTargetProperties{ + // BlobNfs: &armstoragecache.BlobNfsTarget{ + // Target: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.Storage/storageAccounts/blofnfs/blobServices/default/containers/blobnfs"), + // UsageModel: to.Ptr("READ_WRITE"), + // VerificationTimer: to.Ptr[int32](28800), + // WriteBackTimer: to.Ptr[int32](3600), + // }, + // Junctions: []*armstoragecache.NamespaceJunction{ + // { + // NamespacePath: to.Ptr("/blobnfs"), + // }}, + // State: to.Ptr(armstoragecache.OperationalStateTypeReady), + // TargetType: to.Ptr(armstoragecache.StorageTargetTypeBlobNfs), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/StorageTargets_CreateOrUpdate_NoJunctions.json +func ExampleStorageTargetsClient_BeginCreateOrUpdate_storageTargetsCreateOrUpdateNoJunctions() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armstoragecache.NewStorageTargetsClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreateOrUpdate(ctx, "scgroup", "sc1", "st1", armstoragecache.StorageTarget{ + Properties: &armstoragecache.StorageTargetProperties{ + Nfs3: &armstoragecache.Nfs3Target{ + Target: to.Ptr("10.0.44.44"), + UsageModel: to.Ptr("READ_ONLY"), + VerificationTimer: to.Ptr[int32](30), + }, + TargetType: to.Ptr(armstoragecache.StorageTargetTypeNfs3), + }, + }, 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.StorageTarget = armstoragecache.StorageTarget{ + // Name: to.Ptr("st1"), + // Type: to.Ptr("Microsoft.StorageCache/Cache/StorageTarget"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/scgroup/providers/Microsoft.StorageCache/caches/sc1/storagetargets/st1"), + // SystemData: &armstoragecache.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-01T17:18:19.1234567Z"); return t}()), + // CreatedBy: to.Ptr("user1"), + // CreatedByType: to.Ptr(armstoragecache.CreatedByTypeUser), + // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-01-02T17:18:19.1234567Z"); return t}()), + // LastModifiedBy: to.Ptr("user2"), + // LastModifiedByType: to.Ptr(armstoragecache.CreatedByTypeUser), + // }, + // Properties: &armstoragecache.StorageTargetProperties{ + // Nfs3: &armstoragecache.Nfs3Target{ + // Target: to.Ptr("10.0.44.44"), + // UsageModel: to.Ptr("READ_ONLY"), + // VerificationTimer: to.Ptr[int32](30), + // }, + // State: to.Ptr(armstoragecache.OperationalStateTypeReady), + // TargetType: to.Ptr(armstoragecache.StorageTargetTypeNfs3), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/StorageTargets_RestoreDefaults.json +func ExampleStorageTargetsClient_BeginRestoreDefaults() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armstoragecache.NewStorageTargetsClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginRestoreDefaults(ctx, "scgroup", "sc", "st1", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + _, err = poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } } diff --git a/sdk/resourcemanager/storagecache/armstoragecache/time_rfc3339.go b/sdk/resourcemanager/storagecache/armstoragecache/time_rfc3339.go index 662f61bdfc02..892055bf7b5f 100644 --- a/sdk/resourcemanager/storagecache/armstoragecache/time_rfc3339.go +++ b/sdk/resourcemanager/storagecache/armstoragecache/time_rfc3339.go @@ -62,7 +62,7 @@ func (t *timeRFC3339) Parse(layout, value string) error { return err } -func populateTimeRFC3339(m map[string]interface{}, k string, t *time.Time) { +func populateTimeRFC3339(m map[string]any, k string, t *time.Time) { if t == nil { return } else if azcore.IsNullValue(t) { diff --git a/sdk/resourcemanager/storagecache/armstoragecache/usagemodels_client.go b/sdk/resourcemanager/storagecache/armstoragecache/usagemodels_client.go index 2025f5510e86..db36d4f553ac 100644 --- a/sdk/resourcemanager/storagecache/armstoragecache/usagemodels_client.go +++ b/sdk/resourcemanager/storagecache/armstoragecache/usagemodels_client.go @@ -32,10 +32,10 @@ type UsageModelsClient struct { } // NewUsageModelsClient creates a new instance of UsageModelsClient with the specified values. -// subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms -// part of the URI for every service call. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms +// part of the URI for every service call. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewUsageModelsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*UsageModelsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,9 +57,9 @@ func NewUsageModelsClient(subscriptionID string, credential azcore.TokenCredenti } // NewListPager - Get the list of Cache Usage Models available to this subscription. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-05-01 -// options - UsageModelsClientListOptions contains the optional parameters for the UsageModelsClient.List method. +// +// Generated from API version 2023-01-01 +// - options - UsageModelsClientListOptions contains the optional parameters for the UsageModelsClient.NewListPager method. func (client *UsageModelsClient) NewListPager(options *UsageModelsClientListOptions) *runtime.Pager[UsageModelsClientListResponse] { return runtime.NewPager(runtime.PagingHandler[UsageModelsClientListResponse]{ More: func(page UsageModelsClientListResponse) bool { @@ -100,7 +100,7 @@ func (client *UsageModelsClient) listCreateRequest(ctx context.Context, options return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-05-01") + reqQP.Set("api-version", "2023-01-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/storagecache/armstoragecache/usagemodels_client_example_test.go b/sdk/resourcemanager/storagecache/armstoragecache/usagemodels_client_example_test.go index 0672f0a82a33..eee79d0b1885 100644 --- a/sdk/resourcemanager/storagecache/armstoragecache/usagemodels_client_example_test.go +++ b/sdk/resourcemanager/storagecache/armstoragecache/usagemodels_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armstoragecache_test @@ -13,10 +14,10 @@ import ( "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storagecache/armstoragecache/v2" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storagecache/armstoragecache/v3" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2022-05-01/examples/UsageModels_List.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-01-01/examples/UsageModels_List.json func ExampleUsageModelsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -29,13 +30,31 @@ func ExampleUsageModelsClient_NewListPager() { } pager := client.NewListPager(nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.UsageModelsResult = armstoragecache.UsageModelsResult{ + // Value: []*armstoragecache.UsageModel{ + // { + // Display: &armstoragecache.UsageModelDisplay{ + // Description: to.Ptr("Read only, with a default verification timer of 30 seconds. Verification timer has a minimum value of 1 and maximum value of 31536000. Write-back timer must have value of 0 or be null."), + // }, + // ModelName: to.Ptr("READ_ONLY"), + // TargetType: to.Ptr("nfs3"), + // }, + // { + // Display: &armstoragecache.UsageModelDisplay{ + // Description: to.Ptr("Read-write, with a default verification timer of 8 hours and default write-back timer of 1 hour. Verification timer and write-back timer have a minimum value of 1 and maximum value of 31536000."), + // }, + // ModelName: to.Ptr("READ_WRITE"), + // TargetType: to.Ptr("nfs3"), + // }}, + // } } } From 09b540e5a76ce2cc98d4511dacf9a565e05c17fa Mon Sep 17 00:00:00 2001 From: Peng Jiahui <46921893+Alancere@users.noreply.github.com> Date: Fri, 24 Feb 2023 10:52:10 +0800 Subject: [PATCH 056/107] [Release] sdk/resourcemanager/cosmos/armcosmos/2.2.0 (#20018) * [Release] sdk/resourcemanager/cosmos/armcosmos/3.0.0 generation from spec commit: 402006d2796cdd3894d013d83e77b46a5c844005 * fix version number * replace recording version --- .../cosmos/armcosmos/CHANGELOG.md | 277 +- .../cosmos/armcosmos/autorest.md | 6 +- .../armcosmos/cassandraclusters_client.go | 277 +- .../cassandraclusters_client_example_test.go | 522 +- .../armcosmos/cassandradatacenters_client.go | 92 +- ...assandradatacenters_client_example_test.go | 125 +- .../armcosmos/cassandraresources_client.go | 865 +- .../cassandraresources_client_example_test.go | 543 +- .../cosmos/armcosmos/collection_client.go | 61 +- .../collection_client_example_test.go | 104 +- .../armcosmos/collectionpartition_client.go | 46 +- ...collectionpartition_client_example_test.go | 74 +- .../collectionpartitionregion_client.go | 31 +- ...tionpartitionregion_client_example_test.go | 50 +- .../armcosmos/collectionregion_client.go | 31 +- .../collectionregion_client_example_test.go | 48 +- .../cosmos/armcosmos/constants.go | 96 +- .../cosmos/armcosmos/database_client.go | 54 +- .../armcosmos/database_client_example_test.go | 104 +- .../armcosmos/databaseaccountregion_client.go | 27 +- ...tabaseaccountregion_client_example_test.go | 48 +- .../armcosmos/databaseaccounts_client.go | 268 +- .../databaseaccounts_client_example_test.go | 990 ++- .../armcosmos/datatransferjobs_client.go | 430 - .../datatransferjobs_client_example_test.go | 150 - sdk/resourcemanager/cosmos/armcosmos/go.mod | 6 +- sdk/resourcemanager/cosmos/armcosmos/go.sum | 15 +- .../cosmos/armcosmos/graphresources_client.go | 316 - .../graphresources_client_example_test.go | 114 - .../armcosmos/gremlinresources_client.go | 318 +- .../gremlinresources_client_example_test.go | 429 +- .../cosmos/armcosmos/locations_client.go | 22 +- .../locations_client_example_test.go | 54 +- .../cosmos/armcosmos/models.go | 1129 +-- .../cosmos/armcosmos/models_serde.go | 7451 +++++++---------- .../armcosmos/mongodbresources_client.go | 822 +- .../mongodbresources_client_example_test.go | 798 +- .../armcosmos/notebookworkspaces_client.go | 121 +- .../notebookworkspaces_client_example_test.go | 65 +- .../cosmos/armcosmos/operations_client.go | 11 +- .../operations_client_example_test.go | 22 +- .../armcosmos/partitionkeyrangeid_client.go | 31 +- ...partitionkeyrangeid_client_example_test.go | 50 +- .../partitionkeyrangeidregion_client.go | 33 +- ...ionkeyrangeidregion_client_example_test.go | 50 +- .../cosmos/armcosmos/percentile_client.go | 24 +- .../percentile_client_example_test.go | 55 +- .../percentilesourcetarget_client.go | 29 +- ...centilesourcetarget_client_example_test.go | 34 +- .../armcosmos/percentiletarget_client.go | 27 +- .../percentiletarget_client_example_test.go | 55 +- .../cosmos/armcosmos/polymorphic_helpers.go | 26 +- .../privateendpointconnections_client.go | 70 +- ...endpointconnections_client_example_test.go | 93 +- .../armcosmos/privatelinkresources_client.go | 34 +- ...rivatelinkresources_client_example_test.go | 44 +- .../cosmos/armcosmos/response_types.go | 446 +- .../restorabledatabaseaccounts_client.go | 39 +- ...bledatabaseaccounts_client_example_test.go | 148 +- .../restorablegremlindatabases_client.go | 19 +- ...blegremlindatabases_client_example_test.go | 41 +- .../restorablegremlingraphs_client.go | 19 +- ...orablegremlingraphs_client_example_test.go | 27 +- .../restorablegremlinresources_client.go | 19 +- ...blegremlinresources_client_example_test.go | 38 +- .../restorablemongodbcollections_client.go | 19 +- ...emongodbcollections_client_example_test.go | 27 +- .../restorablemongodbdatabases_client.go | 19 +- ...blemongodbdatabases_client_example_test.go | 41 +- .../restorablemongodbresources_client.go | 19 +- ...blemongodbresources_client_example_test.go | 38 +- .../restorablesqlcontainers_client.go | 19 +- ...orablesqlcontainers_client_example_test.go | 94 +- .../restorablesqldatabases_client.go | 19 +- ...torablesqldatabases_client_example_test.go | 80 +- .../restorablesqlresources_client.go | 19 +- ...torablesqlresources_client_example_test.go | 38 +- .../restorabletableresources_client.go | 19 +- ...rabletableresources_client_example_test.go | 23 +- .../armcosmos/restorabletables_client.go | 18 +- .../restorabletables_client_example_test.go | 27 +- .../cosmos/armcosmos/service_client.go | 64 +- .../armcosmos/service_client_example_test.go | 233 +- .../cosmos/armcosmos/sqlresources_client.go | 1120 +-- .../sqlresources_client_example_test.go | 1370 ++- .../cosmos/armcosmos/tableresources_client.go | 161 +- .../tableresources_client_example_test.go | 158 +- .../TestCassandraresourcesTestSuite.json | 142 +- .../TestDatabaseaccountsTestSuite.json | 182 +- .../TestGremlinresourcesTestSuite.json | 152 +- .../TestMongodbresourcesTestSuite.json | 150 +- ...stPrivateendpointconnectionsTestSuite.json | 54 +- .../recordings/TestServiceTestSuite.json | 76 +- .../recordings/TestSqlresourcesTestSuite.json | 224 +- .../TestTableresourcesTestSuite.json | 88 +- .../cosmos/armcosmos/time_rfc3339.go | 2 +- 96 files changed, 10931 insertions(+), 12227 deletions(-) delete mode 100644 sdk/resourcemanager/cosmos/armcosmos/datatransferjobs_client.go delete mode 100644 sdk/resourcemanager/cosmos/armcosmos/datatransferjobs_client_example_test.go delete mode 100644 sdk/resourcemanager/cosmos/armcosmos/graphresources_client.go delete mode 100644 sdk/resourcemanager/cosmos/armcosmos/graphresources_client_example_test.go diff --git a/sdk/resourcemanager/cosmos/armcosmos/CHANGELOG.md b/sdk/resourcemanager/cosmos/armcosmos/CHANGELOG.md index dc077f2957b4..a70c1dead0a6 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/CHANGELOG.md +++ b/sdk/resourcemanager/cosmos/armcosmos/CHANGELOG.md @@ -1,113 +1,24 @@ # Release History -## 2.2.0-beta.1 (2022-10-09) +## 2.2.0 (2023-02-24) ### Features Added -- New const `ThroughputPolicyTypeEqual` -- New const `AuthenticationMethodLdap` -- New const `EnableFullTextQueryNone` -- New const `ContinuousTierContinuous7Days` -- New const `EnableFullTextQueryFalse` -- New const `ThroughputPolicyTypeCustom` -- New const `DataTransferComponentCosmosDBSQL` -- New const `ContinuousTierContinuous30Days` -- New const `ThroughputPolicyTypeNone` -- New const `DataTransferComponentAzureBlobStorage` -- New const `EnableFullTextQueryTrue` -- New const `OperationTypeRecreate` -- New const `DataTransferComponentCosmosDBCassandra` -- New type alias `ContinuousTier` -- New type alias `ThroughputPolicyType` -- New type alias `EnableFullTextQuery` -- New type alias `DataTransferComponent` -- New function `*CassandraResourcesClient.GetCassandraViewThroughput(context.Context, string, string, string, string, *CassandraResourcesClientGetCassandraViewThroughputOptions) (CassandraResourcesClientGetCassandraViewThroughputResponse, error)` -- New function `PossibleThroughputPolicyTypeValues() []ThroughputPolicyType` -- New function `*GraphResourcesClient.BeginDeleteGraphResource(context.Context, string, string, string, *GraphResourcesClientBeginDeleteGraphResourceOptions) (*runtime.Poller[GraphResourcesClientDeleteGraphResourceResponse], error)` -- New function `*RestorableTablesClient.NewListPager(string, string, *RestorableTablesClientListOptions) *runtime.Pager[RestorableTablesClientListResponse]` -- New function `*SQLResourcesClient.BeginSQLContainerRedistributeThroughput(context.Context, string, string, string, string, RedistributeThroughputParameters, *SQLResourcesClientBeginSQLContainerRedistributeThroughputOptions) (*runtime.Poller[SQLResourcesClientSQLContainerRedistributeThroughputResponse], error)` -- New function `*RestorableTableResourcesClient.NewListPager(string, string, *RestorableTableResourcesClientListOptions) *runtime.Pager[RestorableTableResourcesClientListResponse]` -- New function `*SQLResourcesClient.NewListClientEncryptionKeysPager(string, string, string, *SQLResourcesClientListClientEncryptionKeysOptions) *runtime.Pager[SQLResourcesClientListClientEncryptionKeysResponse]` -- New function `*SQLResourcesClient.BeginSQLDatabaseRetrieveThroughputDistribution(context.Context, string, string, string, RetrieveThroughputParameters, *SQLResourcesClientBeginSQLDatabaseRetrieveThroughputDistributionOptions) (*runtime.Poller[SQLResourcesClientSQLDatabaseRetrieveThroughputDistributionResponse], error)` -- New function `*MongoDBResourcesClient.BeginMongoDBDatabaseRedistributeThroughput(context.Context, string, string, string, RedistributeThroughputParameters, *MongoDBResourcesClientBeginMongoDBDatabaseRedistributeThroughputOptions) (*runtime.Poller[MongoDBResourcesClientMongoDBDatabaseRedistributeThroughputResponse], error)` -- New function `*RestorableGremlinGraphsClient.NewListPager(string, string, *RestorableGremlinGraphsClientListOptions) *runtime.Pager[RestorableGremlinGraphsClientListResponse]` -- New function `*DataTransferJobsClient.Pause(context.Context, string, string, string, *DataTransferJobsClientPauseOptions) (DataTransferJobsClientPauseResponse, error)` -- New function `*SQLResourcesClient.BeginCreateUpdateClientEncryptionKey(context.Context, string, string, string, string, ClientEncryptionKeyCreateUpdateParameters, *SQLResourcesClientBeginCreateUpdateClientEncryptionKeyOptions) (*runtime.Poller[SQLResourcesClientCreateUpdateClientEncryptionKeyResponse], error)` -- New function `*CassandraResourcesClient.BeginDeleteCassandraView(context.Context, string, string, string, string, *CassandraResourcesClientBeginDeleteCassandraViewOptions) (*runtime.Poller[CassandraResourcesClientDeleteCassandraViewResponse], error)` -- New function `*SQLDataTransferDataSourceSink.GetDataTransferDataSourceSink() *DataTransferDataSourceSink` -- New function `PossibleDataTransferComponentValues() []DataTransferComponent` -- New function `NewRestorableTableResourcesClient(string, azcore.TokenCredential, *arm.ClientOptions) (*RestorableTableResourcesClient, error)` -- New function `*AzureBlobDataTransferDataSourceSink.GetDataTransferDataSourceSink() *DataTransferDataSourceSink` -- New function `NewDataTransferJobsClient(string, azcore.TokenCredential, *arm.ClientOptions) (*DataTransferJobsClient, error)` -- New function `*GraphResourcesClient.BeginCreateUpdateGraph(context.Context, string, string, string, GraphResourceCreateUpdateParameters, *GraphResourcesClientBeginCreateUpdateGraphOptions) (*runtime.Poller[GraphResourcesClientCreateUpdateGraphResponse], error)` -- New function `*SQLResourcesClient.BeginSQLDatabaseRedistributeThroughput(context.Context, string, string, string, RedistributeThroughputParameters, *SQLResourcesClientBeginSQLDatabaseRedistributeThroughputOptions) (*runtime.Poller[SQLResourcesClientSQLDatabaseRedistributeThroughputResponse], error)` +- New type alias `MinimalTLSVersion` with values `MinimalTLSVersionTLS`, `MinimalTLSVersionTls11`, `MinimalTLSVersionTls12` +- New function `*GremlinResourcesClient.BeginRetrieveContinuousBackupInformation(context.Context, string, string, string, string, ContinuousBackupRestoreLocation, *GremlinResourcesClientBeginRetrieveContinuousBackupInformationOptions) (*runtime.Poller[GremlinResourcesClientRetrieveContinuousBackupInformationResponse], error)` - New function `NewRestorableGremlinDatabasesClient(string, azcore.TokenCredential, *arm.ClientOptions) (*RestorableGremlinDatabasesClient, error)` -- New function `*DataTransferJobsClient.NewListByDatabaseAccountPager(string, string, *DataTransferJobsClientListByDatabaseAccountOptions) *runtime.Pager[DataTransferJobsClientListByDatabaseAccountResponse]` -- New function `PossibleContinuousTierValues() []ContinuousTier` -- New function `*SQLResourcesClient.GetClientEncryptionKey(context.Context, string, string, string, string, *SQLResourcesClientGetClientEncryptionKeyOptions) (SQLResourcesClientGetClientEncryptionKeyResponse, error)` -- New function `*DataTransferJobsClient.Create(context.Context, string, string, string, CreateJobRequest, *DataTransferJobsClientCreateOptions) (DataTransferJobsClientCreateResponse, error)` -- New function `*CassandraResourcesClient.BeginMigrateCassandraViewToManualThroughput(context.Context, string, string, string, string, *CassandraResourcesClientBeginMigrateCassandraViewToManualThroughputOptions) (*runtime.Poller[CassandraResourcesClientMigrateCassandraViewToManualThroughputResponse], error)` -- New function `*CassandraResourcesClient.BeginCreateUpdateCassandraView(context.Context, string, string, string, string, CassandraViewCreateUpdateParameters, *CassandraResourcesClientBeginCreateUpdateCassandraViewOptions) (*runtime.Poller[CassandraResourcesClientCreateUpdateCassandraViewResponse], error)` -- New function `*DataTransferJobsClient.Resume(context.Context, string, string, string, *DataTransferJobsClientResumeOptions) (DataTransferJobsClientResumeResponse, error)` -- New function `*CassandraClustersClient.NewListBackupsPager(string, string, *CassandraClustersClientListBackupsOptions) *runtime.Pager[CassandraClustersClientListBackupsResponse]` -- New function `NewRestorableGremlinResourcesClient(string, azcore.TokenCredential, *arm.ClientOptions) (*RestorableGremlinResourcesClient, error)` -- New function `*SQLResourcesClient.BeginSQLContainerRetrieveThroughputDistribution(context.Context, string, string, string, string, RetrieveThroughputParameters, *SQLResourcesClientBeginSQLContainerRetrieveThroughputDistributionOptions) (*runtime.Poller[SQLResourcesClientSQLContainerRetrieveThroughputDistributionResponse], error)` -- New function `*CassandraResourcesClient.BeginMigrateCassandraViewToAutoscale(context.Context, string, string, string, string, *CassandraResourcesClientBeginMigrateCassandraViewToAutoscaleOptions) (*runtime.Poller[CassandraResourcesClientMigrateCassandraViewToAutoscaleResponse], error)` -- New function `*DataTransferDataSourceSink.GetDataTransferDataSourceSink() *DataTransferDataSourceSink` -- New function `PossibleEnableFullTextQueryValues() []EnableFullTextQuery` -- New function `*DataTransferJobsClient.Get(context.Context, string, string, string, *DataTransferJobsClientGetOptions) (DataTransferJobsClientGetResponse, error)` -- New function `*MongoDBResourcesClient.BeginMongoDBContainerRedistributeThroughput(context.Context, string, string, string, string, RedistributeThroughputParameters, *MongoDBResourcesClientBeginMongoDBContainerRedistributeThroughputOptions) (*runtime.Poller[MongoDBResourcesClientMongoDBContainerRedistributeThroughputResponse], error)` +- New function `*RestorableGremlinDatabasesClient.NewListPager(string, string, *RestorableGremlinDatabasesClientListOptions) *runtime.Pager[RestorableGremlinDatabasesClientListResponse]` - New function `NewRestorableGremlinGraphsClient(string, azcore.TokenCredential, *arm.ClientOptions) (*RestorableGremlinGraphsClient, error)` +- New function `*RestorableGremlinGraphsClient.NewListPager(string, string, *RestorableGremlinGraphsClientListOptions) *runtime.Pager[RestorableGremlinGraphsClientListResponse]` +- New function `NewRestorableGremlinResourcesClient(string, azcore.TokenCredential, *arm.ClientOptions) (*RestorableGremlinResourcesClient, error)` - New function `*RestorableGremlinResourcesClient.NewListPager(string, string, *RestorableGremlinResourcesClientListOptions) *runtime.Pager[RestorableGremlinResourcesClientListResponse]` -- New function `*CassandraResourcesClient.BeginUpdateCassandraViewThroughput(context.Context, string, string, string, string, ThroughputSettingsUpdateParameters, *CassandraResourcesClientBeginUpdateCassandraViewThroughputOptions) (*runtime.Poller[CassandraResourcesClientUpdateCassandraViewThroughputResponse], error)` -- New function `*DataTransferJobsClient.Cancel(context.Context, string, string, string, *DataTransferJobsClientCancelOptions) (DataTransferJobsClientCancelResponse, error)` -- New function `*CassandraClustersClient.GetBackup(context.Context, string, string, string, *CassandraClustersClientGetBackupOptions) (CassandraClustersClientGetBackupResponse, error)` -- New function `*GraphResourcesClient.NewListGraphsPager(string, string, *GraphResourcesClientListGraphsOptions) *runtime.Pager[GraphResourcesClientListGraphsResponse]` -- New function `*MongoDBResourcesClient.BeginMongoDBDatabaseRetrieveThroughputDistribution(context.Context, string, string, string, RetrieveThroughputParameters, *MongoDBResourcesClientBeginMongoDBDatabaseRetrieveThroughputDistributionOptions) (*runtime.Poller[MongoDBResourcesClientMongoDBDatabaseRetrieveThroughputDistributionResponse], error)` -- New function `*CassandraDataTransferDataSourceSink.GetDataTransferDataSourceSink() *DataTransferDataSourceSink` -- New function `*CassandraResourcesClient.GetCassandraView(context.Context, string, string, string, string, *CassandraResourcesClientGetCassandraViewOptions) (CassandraResourcesClientGetCassandraViewResponse, error)` -- New function `*MongoDBResourcesClient.BeginMongoDBContainerRetrieveThroughputDistribution(context.Context, string, string, string, string, RetrieveThroughputParameters, *MongoDBResourcesClientBeginMongoDBContainerRetrieveThroughputDistributionOptions) (*runtime.Poller[MongoDBResourcesClientMongoDBContainerRetrieveThroughputDistributionResponse], error)` -- New function `NewGraphResourcesClient(string, azcore.TokenCredential, *arm.ClientOptions) (*GraphResourcesClient, error)` -- New function `*TableResourcesClient.BeginRetrieveContinuousBackupInformation(context.Context, string, string, string, ContinuousBackupRestoreLocation, *TableResourcesClientBeginRetrieveContinuousBackupInformationOptions) (*runtime.Poller[TableResourcesClientRetrieveContinuousBackupInformationResponse], error)` -- New function `*GraphResourcesClient.GetGraph(context.Context, string, string, string, *GraphResourcesClientGetGraphOptions) (GraphResourcesClientGetGraphResponse, error)` -- New function `*RestorableGremlinDatabasesClient.NewListPager(string, string, *RestorableGremlinDatabasesClientListOptions) *runtime.Pager[RestorableGremlinDatabasesClientListResponse]` -- New function `*MongoDBResourcesClient.BeginListMongoDBCollectionPartitionMerge(context.Context, string, string, string, string, MergeParameters, *MongoDBResourcesClientBeginListMongoDBCollectionPartitionMergeOptions) (*runtime.Poller[MongoDBResourcesClientListMongoDBCollectionPartitionMergeResponse], error)` -- New function `*GremlinResourcesClient.BeginRetrieveContinuousBackupInformation(context.Context, string, string, string, string, ContinuousBackupRestoreLocation, *GremlinResourcesClientBeginRetrieveContinuousBackupInformationOptions) (*runtime.Poller[GremlinResourcesClientRetrieveContinuousBackupInformationResponse], error)` -- New function `*CassandraResourcesClient.NewListCassandraViewsPager(string, string, string, *CassandraResourcesClientListCassandraViewsOptions) *runtime.Pager[CassandraResourcesClientListCassandraViewsResponse]` -- New function `*SQLResourcesClient.BeginListSQLContainerPartitionMerge(context.Context, string, string, string, string, MergeParameters, *SQLResourcesClientBeginListSQLContainerPartitionMergeOptions) (*runtime.Poller[SQLResourcesClientListSQLContainerPartitionMergeResponse], error)` +- New function `NewRestorableTableResourcesClient(string, azcore.TokenCredential, *arm.ClientOptions) (*RestorableTableResourcesClient, error)` +- New function `*RestorableTableResourcesClient.NewListPager(string, string, *RestorableTableResourcesClientListOptions) *runtime.Pager[RestorableTableResourcesClientListResponse]` - New function `NewRestorableTablesClient(string, azcore.TokenCredential, *arm.ClientOptions) (*RestorableTablesClient, error)` -- New struct `AuthenticationMethodLdapProperties` -- New struct `AzureBlobDataTransferDataSourceSink` -- New struct `BackupResource` -- New struct `BackupResourceProperties` -- New struct `CassandraClustersClientGetBackupOptions` -- New struct `CassandraClustersClientGetBackupResponse` -- New struct `CassandraClustersClientListBackupsOptions` -- New struct `CassandraClustersClientListBackupsResponse` -- New struct `CassandraDataTransferDataSourceSink` -- New struct `CassandraResourcesClientBeginCreateUpdateCassandraViewOptions` -- New struct `CassandraResourcesClientBeginDeleteCassandraViewOptions` -- New struct `CassandraResourcesClientBeginMigrateCassandraViewToAutoscaleOptions` -- New struct `CassandraResourcesClientBeginMigrateCassandraViewToManualThroughputOptions` -- New struct `CassandraResourcesClientBeginUpdateCassandraViewThroughputOptions` -- New struct `CassandraResourcesClientCreateUpdateCassandraViewResponse` -- New struct `CassandraResourcesClientDeleteCassandraViewResponse` -- New struct `CassandraResourcesClientGetCassandraViewOptions` -- New struct `CassandraResourcesClientGetCassandraViewResponse` -- New struct `CassandraResourcesClientGetCassandraViewThroughputOptions` -- New struct `CassandraResourcesClientGetCassandraViewThroughputResponse` -- New struct `CassandraResourcesClientListCassandraViewsOptions` -- New struct `CassandraResourcesClientListCassandraViewsResponse` -- New struct `CassandraResourcesClientMigrateCassandraViewToAutoscaleResponse` -- New struct `CassandraResourcesClientMigrateCassandraViewToManualThroughputResponse` -- New struct `CassandraResourcesClientUpdateCassandraViewThroughputResponse` -- New struct `CassandraViewCreateUpdateParameters` -- New struct `CassandraViewCreateUpdateProperties` -- New struct `CassandraViewGetProperties` -- New struct `CassandraViewGetPropertiesOptions` -- New struct `CassandraViewGetPropertiesResource` -- New struct `CassandraViewGetResults` -- New struct `CassandraViewListResult` -- New struct `CassandraViewResource` +- New function `*RestorableTablesClient.NewListPager(string, string, *RestorableTablesClientListOptions) *runtime.Pager[RestorableTablesClientListResponse]` +- New function `*SQLResourcesClient.BeginCreateUpdateClientEncryptionKey(context.Context, string, string, string, string, ClientEncryptionKeyCreateUpdateParameters, *SQLResourcesClientBeginCreateUpdateClientEncryptionKeyOptions) (*runtime.Poller[SQLResourcesClientCreateUpdateClientEncryptionKeyResponse], error)` +- New function `*SQLResourcesClient.GetClientEncryptionKey(context.Context, string, string, string, string, *SQLResourcesClientGetClientEncryptionKeyOptions) (SQLResourcesClientGetClientEncryptionKeyResponse, error)` +- New function `*SQLResourcesClient.NewListClientEncryptionKeysPager(string, string, string, *SQLResourcesClientListClientEncryptionKeysOptions) *runtime.Pager[SQLResourcesClientListClientEncryptionKeysResponse]` +- New function `*TableResourcesClient.BeginRetrieveContinuousBackupInformation(context.Context, string, string, string, ContinuousBackupRestoreLocation, *TableResourcesClientBeginRetrieveContinuousBackupInformationOptions) (*runtime.Poller[TableResourcesClientRetrieveContinuousBackupInformationResponse], error)` - New struct `ClientEncryptionIncludedPath` - New struct `ClientEncryptionKeyCreateUpdateParameters` - New struct `ClientEncryptionKeyCreateUpdateProperties` @@ -117,189 +28,39 @@ - New struct `ClientEncryptionKeyResource` - New struct `ClientEncryptionKeysListResult` - New struct `ClientEncryptionPolicy` -- New struct `ContinuousModeProperties` -- New struct `CreateJobRequest` -- New struct `DataTransferDataSourceSink` -- New struct `DataTransferJobFeedResults` -- New struct `DataTransferJobGetResults` -- New struct `DataTransferJobProperties` -- New struct `DataTransferJobsClient` -- New struct `DataTransferJobsClientCancelOptions` -- New struct `DataTransferJobsClientCancelResponse` -- New struct `DataTransferJobsClientCreateOptions` -- New struct `DataTransferJobsClientCreateResponse` -- New struct `DataTransferJobsClientGetOptions` -- New struct `DataTransferJobsClientGetResponse` -- New struct `DataTransferJobsClientListByDatabaseAccountOptions` -- New struct `DataTransferJobsClientListByDatabaseAccountResponse` -- New struct `DataTransferJobsClientPauseOptions` -- New struct `DataTransferJobsClientPauseResponse` -- New struct `DataTransferJobsClientResumeOptions` -- New struct `DataTransferJobsClientResumeResponse` -- New struct `DiagnosticLogSettings` -- New struct `GraphResource` -- New struct `GraphResourceCreateUpdateParameters` -- New struct `GraphResourceCreateUpdateProperties` -- New struct `GraphResourceGetProperties` -- New struct `GraphResourceGetPropertiesOptions` -- New struct `GraphResourceGetPropertiesResource` -- New struct `GraphResourceGetResults` -- New struct `GraphResourcesClient` -- New struct `GraphResourcesClientBeginCreateUpdateGraphOptions` -- New struct `GraphResourcesClientBeginDeleteGraphResourceOptions` -- New struct `GraphResourcesClientCreateUpdateGraphResponse` -- New struct `GraphResourcesClientDeleteGraphResourceResponse` -- New struct `GraphResourcesClientGetGraphOptions` -- New struct `GraphResourcesClientGetGraphResponse` -- New struct `GraphResourcesClientListGraphsOptions` -- New struct `GraphResourcesClientListGraphsResponse` -- New struct `GraphResourcesListResult` - New struct `GremlinDatabaseRestoreResource` -- New struct `GremlinResourcesClientBeginRetrieveContinuousBackupInformationOptions` -- New struct `GremlinResourcesClientRetrieveContinuousBackupInformationResponse` - New struct `KeyWrapMetadata` -- New struct `ListBackups` -- New struct `MergeParameters` -- New struct `MongoDBResourcesClientBeginListMongoDBCollectionPartitionMergeOptions` -- New struct `MongoDBResourcesClientBeginMongoDBContainerRedistributeThroughputOptions` -- New struct `MongoDBResourcesClientBeginMongoDBContainerRetrieveThroughputDistributionOptions` -- New struct `MongoDBResourcesClientBeginMongoDBDatabaseRedistributeThroughputOptions` -- New struct `MongoDBResourcesClientBeginMongoDBDatabaseRetrieveThroughputDistributionOptions` -- New struct `MongoDBResourcesClientListMongoDBCollectionPartitionMergeResponse` -- New struct `MongoDBResourcesClientMongoDBContainerRedistributeThroughputResponse` -- New struct `MongoDBResourcesClientMongoDBContainerRetrieveThroughputDistributionResponse` -- New struct `MongoDBResourcesClientMongoDBDatabaseRedistributeThroughputResponse` -- New struct `MongoDBResourcesClientMongoDBDatabaseRetrieveThroughputDistributionResponse` -- New struct `PhysicalPartitionID` -- New struct `PhysicalPartitionStorageInfo` -- New struct `PhysicalPartitionStorageInfoCollection` -- New struct `PhysicalPartitionThroughputInfoProperties` -- New struct `PhysicalPartitionThroughputInfoResource` -- New struct `PhysicalPartitionThroughputInfoResult` -- New struct `PhysicalPartitionThroughputInfoResultProperties` -- New struct `PhysicalPartitionThroughputInfoResultPropertiesResource` -- New struct `RedistributeThroughputParameters` -- New struct `RedistributeThroughputProperties` -- New struct `RedistributeThroughputPropertiesResource` -- New struct `ResourceRestoreParameters` - New struct `RestorableGremlinDatabaseGetResult` - New struct `RestorableGremlinDatabaseProperties` - New struct `RestorableGremlinDatabasePropertiesResource` - New struct `RestorableGremlinDatabasesClient` -- New struct `RestorableGremlinDatabasesClientListOptions` -- New struct `RestorableGremlinDatabasesClientListResponse` - New struct `RestorableGremlinDatabasesListResult` - New struct `RestorableGremlinGraphGetResult` - New struct `RestorableGremlinGraphProperties` - New struct `RestorableGremlinGraphPropertiesResource` - New struct `RestorableGremlinGraphsClient` -- New struct `RestorableGremlinGraphsClientListOptions` -- New struct `RestorableGremlinGraphsClientListResponse` - New struct `RestorableGremlinGraphsListResult` - New struct `RestorableGremlinResourcesClient` -- New struct `RestorableGremlinResourcesClientListOptions` -- New struct `RestorableGremlinResourcesClientListResponse` - New struct `RestorableGremlinResourcesGetResult` - New struct `RestorableGremlinResourcesListResult` - New struct `RestorableTableGetResult` - New struct `RestorableTableProperties` - New struct `RestorableTablePropertiesResource` - New struct `RestorableTableResourcesClient` -- New struct `RestorableTableResourcesClientListOptions` -- New struct `RestorableTableResourcesClientListResponse` - New struct `RestorableTableResourcesGetResult` - New struct `RestorableTableResourcesListResult` - New struct `RestorableTablesClient` -- New struct `RestorableTablesClientListOptions` -- New struct `RestorableTablesClientListResponse` - New struct `RestorableTablesListResult` -- New struct `RestoreParametersBase` -- New struct `RetrieveThroughputParameters` -- New struct `RetrieveThroughputProperties` -- New struct `RetrieveThroughputPropertiesResource` -- New struct `SQLDataTransferDataSourceSink` -- New struct `SQLResourcesClientBeginCreateUpdateClientEncryptionKeyOptions` -- New struct `SQLResourcesClientBeginListSQLContainerPartitionMergeOptions` -- New struct `SQLResourcesClientBeginSQLContainerRedistributeThroughputOptions` -- New struct `SQLResourcesClientBeginSQLContainerRetrieveThroughputDistributionOptions` -- New struct `SQLResourcesClientBeginSQLDatabaseRedistributeThroughputOptions` -- New struct `SQLResourcesClientBeginSQLDatabaseRetrieveThroughputDistributionOptions` -- New struct `SQLResourcesClientCreateUpdateClientEncryptionKeyResponse` -- New struct `SQLResourcesClientGetClientEncryptionKeyOptions` -- New struct `SQLResourcesClientGetClientEncryptionKeyResponse` -- New struct `SQLResourcesClientListClientEncryptionKeysOptions` -- New struct `SQLResourcesClientListClientEncryptionKeysResponse` -- New struct `SQLResourcesClientListSQLContainerPartitionMergeResponse` -- New struct `SQLResourcesClientSQLContainerRedistributeThroughputResponse` -- New struct `SQLResourcesClientSQLContainerRetrieveThroughputDistributionResponse` -- New struct `SQLResourcesClientSQLDatabaseRedistributeThroughputResponse` -- New struct `SQLResourcesClientSQLDatabaseRetrieveThroughputDistributionResponse` -- New struct `TableResourcesClientBeginRetrieveContinuousBackupInformationOptions` -- New struct `TableResourcesClientRetrieveContinuousBackupInformationResponse` -- New field `Identity` in struct `GremlinDatabaseCreateUpdateParameters` -- New field `ClientEncryptionPolicy` in struct `SQLContainerResource` -- New field `CreateMode` in struct `SQLContainerResource` -- New field `RestoreParameters` in struct `SQLContainerResource` -- New field `CreateMode` in struct `RestorableSQLDatabasePropertiesResourceDatabase` -- New field `RestoreParameters` in struct `RestorableSQLDatabasePropertiesResourceDatabase` -- New field `RestoreParameters` in struct `RestorableSQLContainerPropertiesResourceContainer` -- New field `ClientEncryptionPolicy` in struct `RestorableSQLContainerPropertiesResourceContainer` -- New field `CreateMode` in struct `RestorableSQLContainerPropertiesResourceContainer` -- New field `Identity` in struct `GremlinGraphCreateUpdateParameters` -- New field `OldestRestorableTime` in struct `RestorableDatabaseAccountProperties` -- New field `CreateMode` in struct `SQLDatabaseResource` -- New field `RestoreParameters` in struct `SQLDatabaseResource` -- New field `Identity` in struct `MongoDBDatabaseGetResults` -- New field `Identity` in struct `SQLContainerGetResults` -- New field `Identity` in struct `ARMResourceProperties` -- New field `EnableMaterializedViews` in struct `DatabaseAccountUpdateProperties` -- New field `DiagnosticLogSettings` in struct `DatabaseAccountUpdateProperties` -- New field `Identity` in struct `CassandraKeyspaceGetResults` -- New field `Identity` in struct `SQLDatabaseCreateUpdateParameters` +- New field `MinimalTLSVersion` in struct `DatabaseAccountCreateUpdateProperties` +- New field `MinimalTLSVersion` in struct `DatabaseAccountGetProperties` +- New field `MinimalTLSVersion` in struct `DatabaseAccountUpdateProperties` - New field `EndTime` in struct `RestorableMongodbCollectionsClientListOptions` - New field `StartTime` in struct `RestorableMongodbCollectionsClientListOptions` -- New field `Identity` in struct `MongoDBCollectionCreateUpdateParameters` -- New field `Identity` in struct `SQLTriggerCreateUpdateParameters` -- New field `Identity` in struct `TableGetResults` -- New field `AuthenticationMethodLdapProperties` in struct `DataCenterResourceProperties` -- New field `Status` in struct `LocationProperties` -- New field `Identity` in struct `SQLStoredProcedureGetResults` -- New field `ContinuousModeProperties` in struct `ContinuousModeBackupPolicy` -- New field `CreateMode` in struct `SQLContainerGetPropertiesResource` -- New field `ClientEncryptionPolicy` in struct `SQLContainerGetPropertiesResource` -- New field `RestoreParameters` in struct `SQLContainerGetPropertiesResource` +- New field `ClientEncryptionPolicy` in struct `RestorableSQLContainerPropertiesResourceContainer` - New field `GremlinDatabasesToRestore` in struct `RestoreParameters` - New field `TablesToRestore` in struct `RestoreParameters` -- New field `Identity` in struct `ThroughputSettingsUpdateParameters` -- New field `Identity` in struct `SQLTriggerGetResults` -- New field `Identity` in struct `SQLStoredProcedureCreateUpdateParameters` -- New field `RestoreParameters` in struct `MongoDBCollectionGetPropertiesResource` -- New field `CreateMode` in struct `MongoDBCollectionGetPropertiesResource` -- New field `CreateMode` in struct `MongoDBCollectionResource` -- New field `RestoreParameters` in struct `MongoDBCollectionResource` -- New field `Identity` in struct `TableCreateUpdateParameters` -- New field `Identity` in struct `SQLDatabaseGetResults` -- New field `Identity` in struct `GremlinGraphGetResults` -- New field `CreateMode` in struct `MongoDBDatabaseResource` -- New field `RestoreParameters` in struct `MongoDBDatabaseResource` -- New field `CreateMode` in struct `SQLDatabaseGetPropertiesResource` -- New field `RestoreParameters` in struct `SQLDatabaseGetPropertiesResource` -- New field `Identity` in struct `GremlinDatabaseGetResults` -- New field `EnableMaterializedViews` in struct `DatabaseAccountCreateUpdateProperties` -- New field `DiagnosticLogSettings` in struct `DatabaseAccountCreateUpdateProperties` -- New field `Identity` in struct `CassandraKeyspaceCreateUpdateParameters` -- New field `Identity` in struct `SQLContainerCreateUpdateParameters` -- New field `Identity` in struct `MongoDBDatabaseCreateUpdateParameters` -- New field `Identity` in struct `ThroughputSettingsGetResults` -- New field `Identity` in struct `CassandraTableGetResults` -- New field `CreateMode` in struct `MongoDBDatabaseGetPropertiesResource` -- New field `RestoreParameters` in struct `MongoDBDatabaseGetPropertiesResource` -- New field `Identity` in struct `SQLUserDefinedFunctionGetResults` -- New field `Identity` in struct `SQLUserDefinedFunctionCreateUpdateParameters` -- New field `DiagnosticLogSettings` in struct `DatabaseAccountGetProperties` -- New field `EnableMaterializedViews` in struct `DatabaseAccountGetProperties` -- New field `Identity` in struct `MongoDBCollectionGetResults` -- New field `Identity` in struct `CassandraTableCreateUpdateParameters` +- New field `ClientEncryptionPolicy` in struct `SQLContainerGetPropertiesResource` +- New field `ClientEncryptionPolicy` in struct `SQLContainerResource` ## 2.1.0 (2022-09-06) diff --git a/sdk/resourcemanager/cosmos/armcosmos/autorest.md b/sdk/resourcemanager/cosmos/armcosmos/autorest.md index e1d3edc0c17c..8181dbf6c9d1 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/autorest.md +++ b/sdk/resourcemanager/cosmos/armcosmos/autorest.md @@ -5,8 +5,8 @@ ``` yaml azure-arm: true require: -- https://github.com/Azure/azure-rest-api-specs/blob/14677ba21f6b5676e79b33d699f7a103dd8f255f/specification/cosmos-db/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/14677ba21f6b5676e79b33d699f7a103dd8f255f/specification/cosmos-db/resource-manager/readme.go.md +- https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/readme.md +- https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 2.2.0-beta.1 +module-version: 2.2.0 ``` \ No newline at end of file diff --git a/sdk/resourcemanager/cosmos/armcosmos/cassandraclusters_client.go b/sdk/resourcemanager/cosmos/armcosmos/cassandraclusters_client.go index 0d463909aa96..1d2b109e77d4 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/cassandraclusters_client.go +++ b/sdk/resourcemanager/cosmos/armcosmos/cassandraclusters_client.go @@ -32,9 +32,9 @@ type CassandraClustersClient struct { } // NewCassandraClustersClient creates a new instance of CassandraClustersClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewCassandraClustersClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*CassandraClustersClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -58,12 +58,13 @@ func NewCassandraClustersClient(subscriptionID string, credential azcore.TokenCr // BeginCreateUpdate - Create or update a managed Cassandra cluster. When updating, you must specify all writable properties. // To update only some properties, use PATCH. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// clusterName - Managed Cassandra cluster name. -// body - The properties specifying the desired state of the managed Cassandra cluster. -// options - CassandraClustersClientBeginCreateUpdateOptions contains the optional parameters for the CassandraClustersClient.BeginCreateUpdate -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - clusterName - Managed Cassandra cluster name. +// - body - The properties specifying the desired state of the managed Cassandra cluster. +// - options - CassandraClustersClientBeginCreateUpdateOptions contains the optional parameters for the CassandraClustersClient.BeginCreateUpdate +// method. func (client *CassandraClustersClient) BeginCreateUpdate(ctx context.Context, resourceGroupName string, clusterName string, body ClusterResource, options *CassandraClustersClientBeginCreateUpdateOptions) (*runtime.Poller[CassandraClustersClientCreateUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createUpdate(ctx, resourceGroupName, clusterName, body, options) @@ -79,7 +80,8 @@ func (client *CassandraClustersClient) BeginCreateUpdate(ctx context.Context, re // CreateUpdate - Create or update a managed Cassandra cluster. When updating, you must specify all writable properties. To // update only some properties, use PATCH. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *CassandraClustersClient) createUpdate(ctx context.Context, resourceGroupName string, clusterName string, body ClusterResource, options *CassandraClustersClientBeginCreateUpdateOptions) (*http.Response, error) { req, err := client.createUpdateCreateRequest(ctx, resourceGroupName, clusterName, body, options) if err != nil { @@ -115,7 +117,7 @@ func (client *CassandraClustersClient) createUpdateCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, body) @@ -125,11 +127,12 @@ func (client *CassandraClustersClient) createUpdateCreateRequest(ctx context.Con // host virtual machine of this cluster, and reserved the data disk. This won't do anything on an // already deallocated cluster. Use Start to restart the cluster. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// clusterName - Managed Cassandra cluster name. -// options - CassandraClustersClientBeginDeallocateOptions contains the optional parameters for the CassandraClustersClient.BeginDeallocate -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - clusterName - Managed Cassandra cluster name. +// - options - CassandraClustersClientBeginDeallocateOptions contains the optional parameters for the CassandraClustersClient.BeginDeallocate +// method. func (client *CassandraClustersClient) BeginDeallocate(ctx context.Context, resourceGroupName string, clusterName string, options *CassandraClustersClientBeginDeallocateOptions) (*runtime.Poller[CassandraClustersClientDeallocateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deallocate(ctx, resourceGroupName, clusterName, options) @@ -146,7 +149,8 @@ func (client *CassandraClustersClient) BeginDeallocate(ctx context.Context, reso // virtual machine of this cluster, and reserved the data disk. This won't do anything on an // already deallocated cluster. Use Start to restart the cluster. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *CassandraClustersClient) deallocate(ctx context.Context, resourceGroupName string, clusterName string, options *CassandraClustersClientBeginDeallocateOptions) (*http.Response, error) { req, err := client.deallocateCreateRequest(ctx, resourceGroupName, clusterName, options) if err != nil { @@ -182,7 +186,7 @@ func (client *CassandraClustersClient) deallocateCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -190,11 +194,12 @@ func (client *CassandraClustersClient) deallocateCreateRequest(ctx context.Conte // BeginDelete - Deletes a managed Cassandra cluster. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// clusterName - Managed Cassandra cluster name. -// options - CassandraClustersClientBeginDeleteOptions contains the optional parameters for the CassandraClustersClient.BeginDelete -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - clusterName - Managed Cassandra cluster name. +// - options - CassandraClustersClientBeginDeleteOptions contains the optional parameters for the CassandraClustersClient.BeginDelete +// method. func (client *CassandraClustersClient) BeginDelete(ctx context.Context, resourceGroupName string, clusterName string, options *CassandraClustersClientBeginDeleteOptions) (*runtime.Poller[CassandraClustersClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, clusterName, options) @@ -209,7 +214,8 @@ func (client *CassandraClustersClient) BeginDelete(ctx context.Context, resource // Delete - Deletes a managed Cassandra cluster. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *CassandraClustersClient) deleteOperation(ctx context.Context, resourceGroupName string, clusterName string, options *CassandraClustersClientBeginDeleteOptions) (*http.Response, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, clusterName, options) if err != nil { @@ -245,7 +251,7 @@ func (client *CassandraClustersClient) deleteCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -253,10 +259,11 @@ func (client *CassandraClustersClient) deleteCreateRequest(ctx context.Context, // Get - Get the properties of a managed Cassandra cluster. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// clusterName - Managed Cassandra cluster name. -// options - CassandraClustersClientGetOptions contains the optional parameters for the CassandraClustersClient.Get method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - clusterName - Managed Cassandra cluster name. +// - options - CassandraClustersClientGetOptions contains the optional parameters for the CassandraClustersClient.Get method. func (client *CassandraClustersClient) Get(ctx context.Context, resourceGroupName string, clusterName string, options *CassandraClustersClientGetOptions) (CassandraClustersClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, clusterName, options) if err != nil { @@ -292,7 +299,7 @@ func (client *CassandraClustersClient) getCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -307,76 +314,15 @@ func (client *CassandraClustersClient) getHandleResponse(resp *http.Response) (C return result, nil } -// GetBackup - Get the properties of an individual backup of this cluster that is available to restore. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// clusterName - Managed Cassandra cluster name. -// backupID - Id of a restorable backup of a Cassandra cluster. -// options - CassandraClustersClientGetBackupOptions contains the optional parameters for the CassandraClustersClient.GetBackup -// method. -func (client *CassandraClustersClient) GetBackup(ctx context.Context, resourceGroupName string, clusterName string, backupID string, options *CassandraClustersClientGetBackupOptions) (CassandraClustersClientGetBackupResponse, error) { - req, err := client.getBackupCreateRequest(ctx, resourceGroupName, clusterName, backupID, options) - if err != nil { - return CassandraClustersClientGetBackupResponse{}, err - } - resp, err := client.pl.Do(req) - if err != nil { - return CassandraClustersClientGetBackupResponse{}, err - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return CassandraClustersClientGetBackupResponse{}, runtime.NewResponseError(resp) - } - return client.getBackupHandleResponse(resp) -} - -// getBackupCreateRequest creates the GetBackup request. -func (client *CassandraClustersClient) getBackupCreateRequest(ctx context.Context, resourceGroupName string, clusterName string, backupID string, options *CassandraClustersClientGetBackupOptions) (*policy.Request, error) { - urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/backups/{backupId}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - if resourceGroupName == "" { - return nil, errors.New("parameter resourceGroupName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) - if clusterName == "" { - return nil, errors.New("parameter clusterName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{clusterName}", url.PathEscape(clusterName)) - if backupID == "" { - return nil, errors.New("parameter backupID cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{backupId}", url.PathEscape(backupID)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) - if err != nil { - return nil, err - } - reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") - req.Raw().URL.RawQuery = reqQP.Encode() - req.Raw().Header["Accept"] = []string{"application/json"} - return req, nil -} - -// getBackupHandleResponse handles the GetBackup response. -func (client *CassandraClustersClient) getBackupHandleResponse(resp *http.Response) (CassandraClustersClientGetBackupResponse, error) { - result := CassandraClustersClientGetBackupResponse{} - if err := runtime.UnmarshalAsJSON(resp, &result.BackupResource); err != nil { - return CassandraClustersClientGetBackupResponse{}, err - } - return result, nil -} - // BeginInvokeCommand - Invoke a command like nodetool for cassandra maintenance // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// clusterName - Managed Cassandra cluster name. -// body - Specification which command to run where -// options - CassandraClustersClientBeginInvokeCommandOptions contains the optional parameters for the CassandraClustersClient.BeginInvokeCommand -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - clusterName - Managed Cassandra cluster name. +// - body - Specification which command to run where +// - options - CassandraClustersClientBeginInvokeCommandOptions contains the optional parameters for the CassandraClustersClient.BeginInvokeCommand +// method. func (client *CassandraClustersClient) BeginInvokeCommand(ctx context.Context, resourceGroupName string, clusterName string, body CommandPostBody, options *CassandraClustersClientBeginInvokeCommandOptions) (*runtime.Poller[CassandraClustersClientInvokeCommandResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.invokeCommand(ctx, resourceGroupName, clusterName, body, options) @@ -391,7 +337,8 @@ func (client *CassandraClustersClient) BeginInvokeCommand(ctx context.Context, r // InvokeCommand - Invoke a command like nodetool for cassandra maintenance // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *CassandraClustersClient) invokeCommand(ctx context.Context, resourceGroupName string, clusterName string, body CommandPostBody, options *CassandraClustersClientBeginInvokeCommandOptions) (*http.Response, error) { req, err := client.invokeCommandCreateRequest(ctx, resourceGroupName, clusterName, body, options) if err != nil { @@ -427,80 +374,18 @@ func (client *CassandraClustersClient) invokeCommandCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, body) } -// NewListBackupsPager - List the backups of this cluster that are available to restore. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// clusterName - Managed Cassandra cluster name. -// options - CassandraClustersClientListBackupsOptions contains the optional parameters for the CassandraClustersClient.ListBackups -// method. -func (client *CassandraClustersClient) NewListBackupsPager(resourceGroupName string, clusterName string, options *CassandraClustersClientListBackupsOptions) *runtime.Pager[CassandraClustersClientListBackupsResponse] { - return runtime.NewPager(runtime.PagingHandler[CassandraClustersClientListBackupsResponse]{ - More: func(page CassandraClustersClientListBackupsResponse) bool { - return false - }, - Fetcher: func(ctx context.Context, page *CassandraClustersClientListBackupsResponse) (CassandraClustersClientListBackupsResponse, error) { - req, err := client.listBackupsCreateRequest(ctx, resourceGroupName, clusterName, options) - if err != nil { - return CassandraClustersClientListBackupsResponse{}, err - } - resp, err := client.pl.Do(req) - if err != nil { - return CassandraClustersClientListBackupsResponse{}, err - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return CassandraClustersClientListBackupsResponse{}, runtime.NewResponseError(resp) - } - return client.listBackupsHandleResponse(resp) - }, - }) -} - -// listBackupsCreateRequest creates the ListBackups request. -func (client *CassandraClustersClient) listBackupsCreateRequest(ctx context.Context, resourceGroupName string, clusterName string, options *CassandraClustersClientListBackupsOptions) (*policy.Request, error) { - urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/cassandraClusters/{clusterName}/backups" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - if resourceGroupName == "" { - return nil, errors.New("parameter resourceGroupName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) - if clusterName == "" { - return nil, errors.New("parameter clusterName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{clusterName}", url.PathEscape(clusterName)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) - if err != nil { - return nil, err - } - reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") - req.Raw().URL.RawQuery = reqQP.Encode() - req.Raw().Header["Accept"] = []string{"application/json"} - return req, nil -} - -// listBackupsHandleResponse handles the ListBackups response. -func (client *CassandraClustersClient) listBackupsHandleResponse(resp *http.Response) (CassandraClustersClientListBackupsResponse, error) { - result := CassandraClustersClientListBackupsResponse{} - if err := runtime.UnmarshalAsJSON(resp, &result.ListBackups); err != nil { - return CassandraClustersClientListBackupsResponse{}, err - } - return result, nil -} - // NewListByResourceGroupPager - List all managed Cassandra clusters in this resource group. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// options - CassandraClustersClientListByResourceGroupOptions contains the optional parameters for the CassandraClustersClient.ListByResourceGroup -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - options - CassandraClustersClientListByResourceGroupOptions contains the optional parameters for the CassandraClustersClient.NewListByResourceGroupPager +// method. func (client *CassandraClustersClient) NewListByResourceGroupPager(resourceGroupName string, options *CassandraClustersClientListByResourceGroupOptions) *runtime.Pager[CassandraClustersClientListByResourceGroupResponse] { return runtime.NewPager(runtime.PagingHandler[CassandraClustersClientListByResourceGroupResponse]{ More: func(page CassandraClustersClientListByResourceGroupResponse) bool { @@ -539,7 +424,7 @@ func (client *CassandraClustersClient) listByResourceGroupCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -555,9 +440,10 @@ func (client *CassandraClustersClient) listByResourceGroupHandleResponse(resp *h } // NewListBySubscriptionPager - List all managed Cassandra clusters in this subscription. -// Generated from API version 2022-08-15-preview -// options - CassandraClustersClientListBySubscriptionOptions contains the optional parameters for the CassandraClustersClient.ListBySubscription -// method. +// +// Generated from API version 2022-11-15 +// - options - CassandraClustersClientListBySubscriptionOptions contains the optional parameters for the CassandraClustersClient.NewListBySubscriptionPager +// method. func (client *CassandraClustersClient) NewListBySubscriptionPager(options *CassandraClustersClientListBySubscriptionOptions) *runtime.Pager[CassandraClustersClientListBySubscriptionResponse] { return runtime.NewPager(runtime.PagingHandler[CassandraClustersClientListBySubscriptionResponse]{ More: func(page CassandraClustersClientListBySubscriptionResponse) bool { @@ -592,7 +478,7 @@ func (client *CassandraClustersClient) listBySubscriptionCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -611,11 +497,12 @@ func (client *CassandraClustersClient) listBySubscriptionHandleResponse(resp *ht // of this cluster with reserved data disk. This won't do anything on an already running // cluster. Use Deallocate to deallocate the cluster. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// clusterName - Managed Cassandra cluster name. -// options - CassandraClustersClientBeginStartOptions contains the optional parameters for the CassandraClustersClient.BeginStart -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - clusterName - Managed Cassandra cluster name. +// - options - CassandraClustersClientBeginStartOptions contains the optional parameters for the CassandraClustersClient.BeginStart +// method. func (client *CassandraClustersClient) BeginStart(ctx context.Context, resourceGroupName string, clusterName string, options *CassandraClustersClientBeginStartOptions) (*runtime.Poller[CassandraClustersClientStartResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.start(ctx, resourceGroupName, clusterName, options) @@ -632,7 +519,8 @@ func (client *CassandraClustersClient) BeginStart(ctx context.Context, resourceG // cluster with reserved data disk. This won't do anything on an already running // cluster. Use Deallocate to deallocate the cluster. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *CassandraClustersClient) start(ctx context.Context, resourceGroupName string, clusterName string, options *CassandraClustersClientBeginStartOptions) (*http.Response, error) { req, err := client.startCreateRequest(ctx, resourceGroupName, clusterName, options) if err != nil { @@ -668,7 +556,7 @@ func (client *CassandraClustersClient) startCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -676,11 +564,12 @@ func (client *CassandraClustersClient) startCreateRequest(ctx context.Context, r // Status - Gets the CPU, memory, and disk usage statistics for each Cassandra node in a cluster. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// clusterName - Managed Cassandra cluster name. -// options - CassandraClustersClientStatusOptions contains the optional parameters for the CassandraClustersClient.Status -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - clusterName - Managed Cassandra cluster name. +// - options - CassandraClustersClientStatusOptions contains the optional parameters for the CassandraClustersClient.Status +// method. func (client *CassandraClustersClient) Status(ctx context.Context, resourceGroupName string, clusterName string, options *CassandraClustersClientStatusOptions) (CassandraClustersClientStatusResponse, error) { req, err := client.statusCreateRequest(ctx, resourceGroupName, clusterName, options) if err != nil { @@ -716,7 +605,7 @@ func (client *CassandraClustersClient) statusCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -733,12 +622,13 @@ func (client *CassandraClustersClient) statusHandleResponse(resp *http.Response) // BeginUpdate - Updates some of the properties of a managed Cassandra cluster. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// clusterName - Managed Cassandra cluster name. -// body - Parameters to provide for specifying the managed Cassandra cluster. -// options - CassandraClustersClientBeginUpdateOptions contains the optional parameters for the CassandraClustersClient.BeginUpdate -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - clusterName - Managed Cassandra cluster name. +// - body - Parameters to provide for specifying the managed Cassandra cluster. +// - options - CassandraClustersClientBeginUpdateOptions contains the optional parameters for the CassandraClustersClient.BeginUpdate +// method. func (client *CassandraClustersClient) BeginUpdate(ctx context.Context, resourceGroupName string, clusterName string, body ClusterResource, options *CassandraClustersClientBeginUpdateOptions) (*runtime.Poller[CassandraClustersClientUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.update(ctx, resourceGroupName, clusterName, body, options) @@ -753,7 +643,8 @@ func (client *CassandraClustersClient) BeginUpdate(ctx context.Context, resource // Update - Updates some of the properties of a managed Cassandra cluster. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *CassandraClustersClient) update(ctx context.Context, resourceGroupName string, clusterName string, body ClusterResource, options *CassandraClustersClientBeginUpdateOptions) (*http.Response, error) { req, err := client.updateCreateRequest(ctx, resourceGroupName, clusterName, body, options) if err != nil { @@ -789,7 +680,7 @@ func (client *CassandraClustersClient) updateCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, body) diff --git a/sdk/resourcemanager/cosmos/armcosmos/cassandraclusters_client_example_test.go b/sdk/resourcemanager/cosmos/armcosmos/cassandraclusters_client_example_test.go index 9b06f5d63105..579218544646 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/cassandraclusters_client_example_test.go +++ b/sdk/resourcemanager/cosmos/armcosmos/cassandraclusters_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armcosmos_test @@ -17,62 +18,184 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cosmos/armcosmos/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBManagedCassandraClusterListBySubscription.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBManagedCassandraClusterListBySubscription.json func ExampleCassandraClustersClient_NewListBySubscriptionPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armcosmos.NewCassandraClustersClient("subid", cred, nil) + client, err := armcosmos.NewCassandraClustersClient("00000000-0000-0000-0000-000000000000", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListBySubscriptionPager(nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.ListClusters = armcosmos.ListClusters{ + // Value: []*armcosmos.ClusterResource{ + // { + // Name: to.Ptr("cassandra-prod"), + // Type: to.Ptr("Microsoft.DocumentDB/cassandraClusters"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/cassandraClusters"), + // Location: to.Ptr("West US"), + // Tags: map[string]*string{ + // }, + // Properties: &armcosmos.ClusterResourceProperties{ + // AuthenticationMethod: to.Ptr(armcosmos.AuthenticationMethodCassandra), + // CassandraVersion: to.Ptr("3.11"), + // ClientCertificates: []*armcosmos.Certificate{ + // { + // Pem: to.Ptr("-----BEGIN CERTIFICATE-----\n...Base64 encoded certificate...\n-----END CERTIFICATE-----"), + // }}, + // ClusterNameOverride: to.Ptr("ClusterNameIllegalForAzureResource"), + // DelegatedManagementSubnetID: to.Ptr("/subscriptions/536e130b-d7d6-4ac7-98a5-de20d69588d2/resourceGroups/customer-vnet-rg/providers/Microsoft.Network/virtualNetworks/customer-vnet/subnets/management"), + // ExternalGossipCertificates: []*armcosmos.Certificate{ + // { + // Pem: to.Ptr("-----BEGIN CERTIFICATE-----\n...Base64 encoded certificate...\n-----END CERTIFICATE-----"), + // }}, + // ExternalSeedNodes: []*armcosmos.SeedNode{ + // { + // IPAddress: to.Ptr("10.52.221.2"), + // }, + // { + // IPAddress: to.Ptr("10.52.221.3"), + // }, + // { + // IPAddress: to.Ptr("10.52.221.4"), + // }}, + // GossipCertificates: []*armcosmos.Certificate{ + // { + // Pem: to.Ptr("-----BEGIN CERTIFICATE-----\n...Base64 encoded certificate...\n-----END CERTIFICATE-----"), + // }}, + // HoursBetweenBackups: to.Ptr[int32](24), + // ProvisioningState: to.Ptr(armcosmos.ManagedCassandraProvisioningStateSucceeded), + // SeedNodes: []*armcosmos.SeedNode{ + // { + // IPAddress: to.Ptr("10.52.221.2"), + // }, + // { + // IPAddress: to.Ptr("10.52.221.3"), + // }, + // { + // IPAddress: to.Ptr("10.52.221.4"), + // }, + // { + // IPAddress: to.Ptr("192.168.12.2"), + // }, + // { + // IPAddress: to.Ptr("192.168.12.3"), + // }, + // { + // IPAddress: to.Ptr("192.168.12.4"), + // }}, + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBManagedCassandraClusterListByResourceGroup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBManagedCassandraClusterListByResourceGroup.json func ExampleCassandraClustersClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armcosmos.NewCassandraClustersClient("subid", cred, nil) + client, err := armcosmos.NewCassandraClustersClient("00000000-0000-0000-0000-000000000000", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListByResourceGroupPager("cassandra-prod-rg", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.ListClusters = armcosmos.ListClusters{ + // Value: []*armcosmos.ClusterResource{ + // { + // Name: to.Ptr("cassandra-prod"), + // Type: to.Ptr("Microsoft.DocumentDB/cassandraClusters"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cassandra-prod-rg/providers/Microsoft.DocumentDB/cassandraClusters"), + // Location: to.Ptr("West US"), + // Tags: map[string]*string{ + // }, + // Properties: &armcosmos.ClusterResourceProperties{ + // AuthenticationMethod: to.Ptr(armcosmos.AuthenticationMethodCassandra), + // CassandraVersion: to.Ptr("3.11"), + // ClientCertificates: []*armcosmos.Certificate{ + // { + // Pem: to.Ptr("-----BEGIN CERTIFICATE-----\n...Base64 encoded certificate...\n-----END CERTIFICATE-----"), + // }}, + // ClusterNameOverride: to.Ptr("ClusterNameIllegalForAzureResource"), + // DelegatedManagementSubnetID: to.Ptr("/subscriptions/536e130b-d7d6-4ac7-98a5-de20d69588d2/resourceGroups/customer-vnet-rg/providers/Microsoft.Network/virtualNetworks/customer-vnet/subnets/management"), + // ExternalGossipCertificates: []*armcosmos.Certificate{ + // { + // Pem: to.Ptr("-----BEGIN CERTIFICATE-----\n...Base64 encoded certificate...\n-----END CERTIFICATE-----"), + // }}, + // ExternalSeedNodes: []*armcosmos.SeedNode{ + // { + // IPAddress: to.Ptr("10.52.221.2"), + // }, + // { + // IPAddress: to.Ptr("10.52.221.3"), + // }, + // { + // IPAddress: to.Ptr("10.52.221.4"), + // }}, + // GossipCertificates: []*armcosmos.Certificate{ + // { + // Pem: to.Ptr("-----BEGIN CERTIFICATE-----\n...Base64 encoded certificate...\n-----END CERTIFICATE-----"), + // }}, + // HoursBetweenBackups: to.Ptr[int32](24), + // ProvisioningState: to.Ptr(armcosmos.ManagedCassandraProvisioningStateSucceeded), + // SeedNodes: []*armcosmos.SeedNode{ + // { + // IPAddress: to.Ptr("10.52.221.2"), + // }, + // { + // IPAddress: to.Ptr("10.52.221.3"), + // }, + // { + // IPAddress: to.Ptr("10.52.221.4"), + // }, + // { + // IPAddress: to.Ptr("192.168.12.2"), + // }, + // { + // IPAddress: to.Ptr("192.168.12.3"), + // }, + // { + // IPAddress: to.Ptr("192.168.12.4"), + // }}, + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBManagedCassandraClusterGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBManagedCassandraClusterGet.json func ExampleCassandraClustersClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armcosmos.NewCassandraClustersClient("subid", cred, nil) + client, err := armcosmos.NewCassandraClustersClient("00000000-0000-0000-0000-000000000000", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } @@ -80,18 +203,76 @@ func ExampleCassandraClustersClient_Get() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.ClusterResource = armcosmos.ClusterResource{ + // Name: to.Ptr("cassandra-prod"), + // Type: to.Ptr("Microsoft.DocumentDB/cassandraClusters"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cassandra-prod-rg/providers/Microsoft.DocumentDB/cassandraClusters/cassandra-prod"), + // Location: to.Ptr("West US"), + // Tags: map[string]*string{ + // }, + // Properties: &armcosmos.ClusterResourceProperties{ + // AuthenticationMethod: to.Ptr(armcosmos.AuthenticationMethodCassandra), + // CassandraVersion: to.Ptr("3.11"), + // ClientCertificates: []*armcosmos.Certificate{ + // { + // Pem: to.Ptr("-----BEGIN CERTIFICATE-----\n...Base64 encoded certificate...\n-----END CERTIFICATE-----"), + // }}, + // ClusterNameOverride: to.Ptr("ClusterNameIllegalForAzureResource"), + // DelegatedManagementSubnetID: to.Ptr("/subscriptions/536e130b-d7d6-4ac7-98a5-de20d69588d2/resourceGroups/customer-vnet-rg/providers/Microsoft.Network/virtualNetworks/customer-vnet/subnets/management"), + // ExternalGossipCertificates: []*armcosmos.Certificate{ + // { + // Pem: to.Ptr("-----BEGIN CERTIFICATE-----\n...Base64 encoded certificate...\n-----END CERTIFICATE-----"), + // }}, + // ExternalSeedNodes: []*armcosmos.SeedNode{ + // { + // IPAddress: to.Ptr("10.52.221.2"), + // }, + // { + // IPAddress: to.Ptr("10.52.221.3"), + // }, + // { + // IPAddress: to.Ptr("10.52.221.4"), + // }}, + // GossipCertificates: []*armcosmos.Certificate{ + // { + // Pem: to.Ptr("-----BEGIN CERTIFICATE-----\n...Base64 encoded certificate...\n-----END CERTIFICATE-----"), + // }}, + // HoursBetweenBackups: to.Ptr[int32](24), + // ProvisioningState: to.Ptr(armcosmos.ManagedCassandraProvisioningStateSucceeded), + // SeedNodes: []*armcosmos.SeedNode{ + // { + // IPAddress: to.Ptr("10.52.221.2"), + // }, + // { + // IPAddress: to.Ptr("10.52.221.3"), + // }, + // { + // IPAddress: to.Ptr("10.52.221.4"), + // }, + // { + // IPAddress: to.Ptr("192.168.12.2"), + // }, + // { + // IPAddress: to.Ptr("192.168.12.3"), + // }, + // { + // IPAddress: to.Ptr("192.168.12.4"), + // }}, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBManagedCassandraClusterDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBManagedCassandraClusterDelete.json func ExampleCassandraClustersClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armcosmos.NewCassandraClustersClient("subid", cred, nil) + client, err := armcosmos.NewCassandraClustersClient("00000000-0000-0000-0000-000000000000", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } @@ -105,7 +286,7 @@ func ExampleCassandraClustersClient_BeginDelete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBManagedCassandraClusterCreate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBManagedCassandraClusterCreate.json func ExampleCassandraClustersClient_BeginCreateUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -153,11 +334,69 @@ func ExampleCassandraClustersClient_BeginCreateUpdate() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.ClusterResource = armcosmos.ClusterResource{ + // Name: to.Ptr("cassandra-prod"), + // Type: to.Ptr("Microsoft.DocumentDB/cassandraClusters"), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/cassandra-prod-rg/providers/Microsoft.DocumentDB/cassandraClusters/cassandra-prod"), + // Location: to.Ptr("West US"), + // Tags: map[string]*string{ + // }, + // Properties: &armcosmos.ClusterResourceProperties{ + // AuthenticationMethod: to.Ptr(armcosmos.AuthenticationMethodCassandra), + // CassandraVersion: to.Ptr("3.11"), + // ClientCertificates: []*armcosmos.Certificate{ + // { + // Pem: to.Ptr("-----BEGIN CERTIFICATE-----\n...Base64 encoded certificate...\n-----END CERTIFICATE-----"), + // }}, + // ClusterNameOverride: to.Ptr("ClusterNameIllegalForAzureResource"), + // DelegatedManagementSubnetID: to.Ptr("/subscriptions/536e130b-d7d6-4ac7-98a5-de20d69588d2/resourceGroups/customer-vnet-rg/providers/Microsoft.Network/virtualNetworks/customer-vnet/subnets/management"), + // ExternalGossipCertificates: []*armcosmos.Certificate{ + // { + // Pem: to.Ptr("-----BEGIN CERTIFICATE-----\n...Base64 encoded certificate...\n-----END CERTIFICATE-----"), + // }}, + // ExternalSeedNodes: []*armcosmos.SeedNode{ + // { + // IPAddress: to.Ptr("10.52.221.2"), + // }, + // { + // IPAddress: to.Ptr("10.52.221.3"), + // }, + // { + // IPAddress: to.Ptr("10.52.221.4"), + // }}, + // GossipCertificates: []*armcosmos.Certificate{ + // { + // Pem: to.Ptr("-----BEGIN CERTIFICATE-----\n...Base64 encoded certificate...\n-----END CERTIFICATE-----"), + // }}, + // HoursBetweenBackups: to.Ptr[int32](24), + // ProvisioningState: to.Ptr(armcosmos.ManagedCassandraProvisioningStateSucceeded), + // SeedNodes: []*armcosmos.SeedNode{ + // { + // IPAddress: to.Ptr("10.52.221.2"), + // }, + // { + // IPAddress: to.Ptr("10.52.221.3"), + // }, + // { + // IPAddress: to.Ptr("10.52.221.4"), + // }, + // { + // IPAddress: to.Ptr("192.168.12.2"), + // }, + // { + // IPAddress: to.Ptr("192.168.12.3"), + // }, + // { + // IPAddress: to.Ptr("192.168.12.4"), + // }}, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBManagedCassandraClusterPatch.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBManagedCassandraClusterPatch.json func ExampleCassandraClustersClient_BeginUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -198,26 +437,81 @@ func ExampleCassandraClustersClient_BeginUpdate() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.ClusterResource = armcosmos.ClusterResource{ + // Name: to.Ptr("cassandra-prod"), + // Type: to.Ptr("Microsoft.DocumentDB/cassandraClusters"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cassandra-prod-rg/providers/Microsoft.DocumentDB/cassandraClusters/cassandra-prod"), + // Location: to.Ptr("West US"), + // Tags: map[string]*string{ + // }, + // Properties: &armcosmos.ClusterResourceProperties{ + // AuthenticationMethod: to.Ptr(armcosmos.AuthenticationMethodCassandra), + // CassandraVersion: to.Ptr("3.11"), + // ClientCertificates: []*armcosmos.Certificate{ + // { + // Pem: to.Ptr("-----BEGIN CERTIFICATE-----\n...Base64 encoded certificate...\n-----END CERTIFICATE-----"), + // }}, + // ClusterNameOverride: to.Ptr("ClusterNameIllegalForAzureResource"), + // DelegatedManagementSubnetID: to.Ptr("/subscriptions/536e130b-d7d6-4ac7-98a5-de20d69588d2/resourceGroups/customer-vnet-rg/providers/Microsoft.Network/virtualNetworks/customer-vnet/subnets/management"), + // ExternalGossipCertificates: []*armcosmos.Certificate{ + // { + // Pem: to.Ptr("-----BEGIN CERTIFICATE-----\n...Base64 encoded certificate...\n-----END CERTIFICATE-----"), + // }}, + // ExternalSeedNodes: []*armcosmos.SeedNode{ + // { + // IPAddress: to.Ptr("10.52.221.2"), + // }, + // { + // IPAddress: to.Ptr("10.52.221.3"), + // }, + // { + // IPAddress: to.Ptr("10.52.221.4"), + // }}, + // GossipCertificates: []*armcosmos.Certificate{ + // { + // Pem: to.Ptr("-----BEGIN CERTIFICATE-----\n...Base64 encoded certificate...\n-----END CERTIFICATE-----"), + // }}, + // HoursBetweenBackups: to.Ptr[int32](24), + // ProvisioningState: to.Ptr(armcosmos.ManagedCassandraProvisioningStateSucceeded), + // SeedNodes: []*armcosmos.SeedNode{ + // { + // IPAddress: to.Ptr("10.52.221.2"), + // }, + // { + // IPAddress: to.Ptr("10.52.221.3"), + // }, + // { + // IPAddress: to.Ptr("10.52.221.4"), + // }, + // { + // IPAddress: to.Ptr("192.168.12.2"), + // }, + // { + // IPAddress: to.Ptr("192.168.12.3"), + // }, + // { + // IPAddress: to.Ptr("192.168.12.4"), + // }}, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBManagedCassandraCommand.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBManagedCassandraCommand.json func ExampleCassandraClustersClient_BeginInvokeCommand() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armcosmos.NewCassandraClustersClient("00000000-0000-0000-0000-000000000000", cred, nil) + client, err := armcosmos.NewCassandraClustersClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginInvokeCommand(ctx, "cassandra-prod-rg", "cassandra-prod", armcosmos.CommandPostBody{ - Arguments: map[string]*string{ - "status": to.Ptr(""), - }, - Command: to.Ptr("nodetool"), + Command: to.Ptr("nodetool status"), Host: to.Ptr("10.0.1.12"), }, nil) if err != nil { @@ -229,50 +523,7 @@ func ExampleCassandraClustersClient_BeginInvokeCommand() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBManagedCassandraBackupsList.json -func ExampleCassandraClustersClient_NewListBackupsPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcosmos.NewCassandraClustersClient("subid", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListBackupsPager("cassandra-prod-rg", "cassandra-prod", nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBManagedCassandraBackup.json -func ExampleCassandraClustersClient_GetBackup() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcosmos.NewCassandraClustersClient("subid", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.GetBackup(ctx, "cassandra-prod-rg", "cassandra-prod", "1611250348", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBManagedCassandraClusterDeallocate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBManagedCassandraClusterDeallocate.json func ExampleCassandraClustersClient_BeginDeallocate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -293,14 +544,14 @@ func ExampleCassandraClustersClient_BeginDeallocate() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBManagedCassandraClusterStart.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBManagedCassandraClusterStart.json func ExampleCassandraClustersClient_BeginStart() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armcosmos.NewCassandraClustersClient("00000000-0000-0000-0000-000000000000", cred, nil) + client, err := armcosmos.NewCassandraClustersClient("subid", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } @@ -314,7 +565,7 @@ func ExampleCassandraClustersClient_BeginStart() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBManagedCassandraStatus.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBManagedCassandraStatus.json func ExampleCassandraClustersClient_Status() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -329,6 +580,131 @@ func ExampleCassandraClustersClient_Status() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.CassandraClusterPublicStatus = armcosmos.CassandraClusterPublicStatus{ + // ConnectionErrors: []*armcosmos.ConnectionError{ + // }, + // DataCenters: []*armcosmos.CassandraClusterPublicStatusDataCentersItem{ + // { + // Name: to.Ptr("cassandra-westus2-vmss"), + // Nodes: []*armcosmos.ComponentsM9L909SchemasCassandraclusterpublicstatusPropertiesDatacentersItemsPropertiesNodesItems{ + // { + // Address: to.Ptr("10.0.8.10"), + // CPUUsage: to.Ptr[float64](0.9), + // DiskFreeKB: to.Ptr[int64](1001260056), + // DiskUsedKB: to.Ptr[int64](749836), + // HostID: to.Ptr("8ccc00a7-9e22-4ac2-aa63-e5327aa0dc51"), + // Load: to.Ptr("84.61 MiB"), + // MemoryBuffersAndCachedKB: to.Ptr[int64](10817580), + // MemoryFreeKB: to.Ptr[int64](35731832), + // MemoryTotalKB: to.Ptr[int64](57610444), + // MemoryUsedKB: to.Ptr[int64](11061032), + // Rack: to.Ptr("rack1"), + // Size: to.Ptr[int32](16), + // State: to.Ptr(armcosmos.NodeState("")), + // Status: to.Ptr(""), + // Timestamp: to.Ptr("10/05/2021, 14:35:20.028"), + // Tokens: []*string{ + // to.Ptr("-7785254003841681178"), + // to.Ptr("-6756518164561476165"), + // to.Ptr("-4269720020504480060"), + // to.Ptr("-2697657908817852783"), + // to.Ptr("-2622387897201218249"), + // to.Ptr("-2177258200443022948"), + // to.Ptr("-129203941752875603"), + // to.Ptr("1738406920822650025"), + // to.Ptr("2598053056312400240"), + // to.Ptr("3227346424117996872"), + // to.Ptr("3644347038875498376"), + // to.Ptr("4823546474906050895"), + // to.Ptr("5293156680707616627"), + // to.Ptr("5485806686603256557"), + // to.Ptr("6250058817756969464"), + // to.Ptr("7991328665766267709")}, + // }, + // { + // Address: to.Ptr("10.0.8.11"), + // CPUUsage: to.Ptr[float64](1.2), + // DiskFreeKB: to.Ptr[int64](1001283028), + // DiskUsedKB: to.Ptr[int64](726864), + // HostID: to.Ptr("14092117-4f77-4ec0-8984-c5b860b88a47"), + // Load: to.Ptr("59.67 MiB"), + // MemoryBuffersAndCachedKB: to.Ptr[int64](10691520), + // MemoryFreeKB: to.Ptr[int64](35863248), + // MemoryTotalKB: to.Ptr[int64](57610444), + // MemoryUsedKB: to.Ptr[int64](11055676), + // Rack: to.Ptr("rack2"), + // Size: to.Ptr[int32](16), + // State: to.Ptr(armcosmos.NodeState("")), + // Status: to.Ptr(""), + // Timestamp: to.Ptr("10/05/2021, 14:35:20.028"), + // Tokens: []*string{ + // to.Ptr("-8726238055665903210"), + // to.Ptr("-6687985003871487470"), + // to.Ptr("-5269140854976433359"), + // to.Ptr("-3989177686905645288"), + // to.Ptr("-3957362495277148220"), + // to.Ptr("-2539287458896988944"), + // to.Ptr("-2460716365393303466"), + // to.Ptr("-1848370030729221440"), + // to.Ptr("137707733677015122"), + // to.Ptr("579467328507000597"), + // to.Ptr("1698264534774619627"), + // to.Ptr("1904235159942090722"), + // to.Ptr("3312208865519999146"), + // to.Ptr("4035940456270983993"), + // to.Ptr("4412314431151736777"), + // to.Ptr("8232565668795426078")}, + // }, + // { + // Address: to.Ptr("10.0.8.12"), + // CPUUsage: to.Ptr[float64](0.4), + // DiskFreeKB: to.Ptr[int64](1001252352), + // DiskUsedKB: to.Ptr[int64](757540), + // HostID: to.Ptr("e16ada14-39db-462b-9f9e-5b5f6beb8bbd"), + // Load: to.Ptr("93.2 MiB"), + // MemoryBuffersAndCachedKB: to.Ptr[int64](10453856), + // MemoryFreeKB: to.Ptr[int64](36104980), + // MemoryTotalKB: to.Ptr[int64](57610444), + // MemoryUsedKB: to.Ptr[int64](11051608), + // Rack: to.Ptr("rack3"), + // Size: to.Ptr[int32](16), + // State: to.Ptr(armcosmos.NodeState("")), + // Status: to.Ptr(""), + // Timestamp: to.Ptr("10/05/2021, 14:35:20.028"), + // Tokens: []*string{ + // to.Ptr("-5679481051867296621"), + // to.Ptr("-4574115287969297989"), + // to.Ptr("-3444578133211470522"), + // to.Ptr("-2755931580714972271"), + // to.Ptr("-2304431590844389550"), + // to.Ptr("-1961946736975068713"), + // to.Ptr("-940120277889446704"), + // to.Ptr("554469308917912318"), + // to.Ptr("1030447162050118004"), + // to.Ptr("2745632329542596589"), + // to.Ptr("4564547712926446283"), + // to.Ptr("5185613478135944116"), + // to.Ptr("7280237939830623824"), + // to.Ptr("7504213835759531710"), + // to.Ptr("7631994478195429959"), + // to.Ptr("8139769477321226157")}, + // }}, + // SeedNodes: []*string{ + // to.Ptr("10.0.8.10"), + // to.Ptr("10.0.8.11"), + // to.Ptr("10.0.8.12")}, + // }}, + // ETag: to.Ptr("A350A2CE7E91B6D5A102A5E5EC222B882D981092"), + // ReaperStatus: &armcosmos.ManagedCassandraReaperStatus{ + // Healthy: to.Ptr(true), + // RepairRunIDs: map[string]*string{ + // }, + // RepairSchedules: map[string]*string{ + // "00000000-0000-0001-0000-000000000000": to.Ptr("ACTIVE"), + // }, + // }, + // } } diff --git a/sdk/resourcemanager/cosmos/armcosmos/cassandradatacenters_client.go b/sdk/resourcemanager/cosmos/armcosmos/cassandradatacenters_client.go index 7fc884e39d2a..fbfe7b7105b4 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/cassandradatacenters_client.go +++ b/sdk/resourcemanager/cosmos/armcosmos/cassandradatacenters_client.go @@ -32,9 +32,9 @@ type CassandraDataCentersClient struct { } // NewCassandraDataCentersClient creates a new instance of CassandraDataCentersClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewCassandraDataCentersClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*CassandraDataCentersClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -58,13 +58,14 @@ func NewCassandraDataCentersClient(subscriptionID string, credential azcore.Toke // BeginCreateUpdate - Create or update a managed Cassandra data center. When updating, overwrite all properties. To update // only some properties, use PATCH. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// clusterName - Managed Cassandra cluster name. -// dataCenterName - Data center name in a managed Cassandra cluster. -// body - Parameters specifying the managed Cassandra data center. -// options - CassandraDataCentersClientBeginCreateUpdateOptions contains the optional parameters for the CassandraDataCentersClient.BeginCreateUpdate -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - clusterName - Managed Cassandra cluster name. +// - dataCenterName - Data center name in a managed Cassandra cluster. +// - body - Parameters specifying the managed Cassandra data center. +// - options - CassandraDataCentersClientBeginCreateUpdateOptions contains the optional parameters for the CassandraDataCentersClient.BeginCreateUpdate +// method. func (client *CassandraDataCentersClient) BeginCreateUpdate(ctx context.Context, resourceGroupName string, clusterName string, dataCenterName string, body DataCenterResource, options *CassandraDataCentersClientBeginCreateUpdateOptions) (*runtime.Poller[CassandraDataCentersClientCreateUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createUpdate(ctx, resourceGroupName, clusterName, dataCenterName, body, options) @@ -80,7 +81,8 @@ func (client *CassandraDataCentersClient) BeginCreateUpdate(ctx context.Context, // CreateUpdate - Create or update a managed Cassandra data center. When updating, overwrite all properties. To update only // some properties, use PATCH. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *CassandraDataCentersClient) createUpdate(ctx context.Context, resourceGroupName string, clusterName string, dataCenterName string, body DataCenterResource, options *CassandraDataCentersClientBeginCreateUpdateOptions) (*http.Response, error) { req, err := client.createUpdateCreateRequest(ctx, resourceGroupName, clusterName, dataCenterName, body, options) if err != nil { @@ -120,7 +122,7 @@ func (client *CassandraDataCentersClient) createUpdateCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, body) @@ -128,12 +130,13 @@ func (client *CassandraDataCentersClient) createUpdateCreateRequest(ctx context. // BeginDelete - Delete a managed Cassandra data center. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// clusterName - Managed Cassandra cluster name. -// dataCenterName - Data center name in a managed Cassandra cluster. -// options - CassandraDataCentersClientBeginDeleteOptions contains the optional parameters for the CassandraDataCentersClient.BeginDelete -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - clusterName - Managed Cassandra cluster name. +// - dataCenterName - Data center name in a managed Cassandra cluster. +// - options - CassandraDataCentersClientBeginDeleteOptions contains the optional parameters for the CassandraDataCentersClient.BeginDelete +// method. func (client *CassandraDataCentersClient) BeginDelete(ctx context.Context, resourceGroupName string, clusterName string, dataCenterName string, options *CassandraDataCentersClientBeginDeleteOptions) (*runtime.Poller[CassandraDataCentersClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, clusterName, dataCenterName, options) @@ -148,7 +151,8 @@ func (client *CassandraDataCentersClient) BeginDelete(ctx context.Context, resou // Delete - Delete a managed Cassandra data center. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *CassandraDataCentersClient) deleteOperation(ctx context.Context, resourceGroupName string, clusterName string, dataCenterName string, options *CassandraDataCentersClientBeginDeleteOptions) (*http.Response, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, clusterName, dataCenterName, options) if err != nil { @@ -188,7 +192,7 @@ func (client *CassandraDataCentersClient) deleteCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -196,12 +200,13 @@ func (client *CassandraDataCentersClient) deleteCreateRequest(ctx context.Contex // Get - Get the properties of a managed Cassandra data center. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// clusterName - Managed Cassandra cluster name. -// dataCenterName - Data center name in a managed Cassandra cluster. -// options - CassandraDataCentersClientGetOptions contains the optional parameters for the CassandraDataCentersClient.Get -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - clusterName - Managed Cassandra cluster name. +// - dataCenterName - Data center name in a managed Cassandra cluster. +// - options - CassandraDataCentersClientGetOptions contains the optional parameters for the CassandraDataCentersClient.Get +// method. func (client *CassandraDataCentersClient) Get(ctx context.Context, resourceGroupName string, clusterName string, dataCenterName string, options *CassandraDataCentersClientGetOptions) (CassandraDataCentersClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, clusterName, dataCenterName, options) if err != nil { @@ -241,7 +246,7 @@ func (client *CassandraDataCentersClient) getCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -257,11 +262,12 @@ func (client *CassandraDataCentersClient) getHandleResponse(resp *http.Response) } // NewListPager - List all data centers in a particular managed Cassandra cluster. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// clusterName - Managed Cassandra cluster name. -// options - CassandraDataCentersClientListOptions contains the optional parameters for the CassandraDataCentersClient.List -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - clusterName - Managed Cassandra cluster name. +// - options - CassandraDataCentersClientListOptions contains the optional parameters for the CassandraDataCentersClient.NewListPager +// method. func (client *CassandraDataCentersClient) NewListPager(resourceGroupName string, clusterName string, options *CassandraDataCentersClientListOptions) *runtime.Pager[CassandraDataCentersClientListResponse] { return runtime.NewPager(runtime.PagingHandler[CassandraDataCentersClientListResponse]{ More: func(page CassandraDataCentersClientListResponse) bool { @@ -304,7 +310,7 @@ func (client *CassandraDataCentersClient) listCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -321,13 +327,14 @@ func (client *CassandraDataCentersClient) listHandleResponse(resp *http.Response // BeginUpdate - Update some of the properties of a managed Cassandra data center. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// clusterName - Managed Cassandra cluster name. -// dataCenterName - Data center name in a managed Cassandra cluster. -// body - Parameters to provide for specifying the managed Cassandra data center. -// options - CassandraDataCentersClientBeginUpdateOptions contains the optional parameters for the CassandraDataCentersClient.BeginUpdate -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - clusterName - Managed Cassandra cluster name. +// - dataCenterName - Data center name in a managed Cassandra cluster. +// - body - Parameters to provide for specifying the managed Cassandra data center. +// - options - CassandraDataCentersClientBeginUpdateOptions contains the optional parameters for the CassandraDataCentersClient.BeginUpdate +// method. func (client *CassandraDataCentersClient) BeginUpdate(ctx context.Context, resourceGroupName string, clusterName string, dataCenterName string, body DataCenterResource, options *CassandraDataCentersClientBeginUpdateOptions) (*runtime.Poller[CassandraDataCentersClientUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.update(ctx, resourceGroupName, clusterName, dataCenterName, body, options) @@ -342,7 +349,8 @@ func (client *CassandraDataCentersClient) BeginUpdate(ctx context.Context, resou // Update - Update some of the properties of a managed Cassandra data center. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *CassandraDataCentersClient) update(ctx context.Context, resourceGroupName string, clusterName string, dataCenterName string, body DataCenterResource, options *CassandraDataCentersClientBeginUpdateOptions) (*http.Response, error) { req, err := client.updateCreateRequest(ctx, resourceGroupName, clusterName, dataCenterName, body, options) if err != nil { @@ -382,7 +390,7 @@ func (client *CassandraDataCentersClient) updateCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, body) diff --git a/sdk/resourcemanager/cosmos/armcosmos/cassandradatacenters_client_example_test.go b/sdk/resourcemanager/cosmos/armcosmos/cassandradatacenters_client_example_test.go index 3b76935caa5b..94ababc15e6b 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/cassandradatacenters_client_example_test.go +++ b/sdk/resourcemanager/cosmos/armcosmos/cassandradatacenters_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armcosmos_test @@ -17,38 +18,64 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cosmos/armcosmos/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBManagedCassandraDataCenterList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBManagedCassandraDataCenterList.json func ExampleCassandraDataCentersClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armcosmos.NewCassandraDataCentersClient("subid", cred, nil) + client, err := armcosmos.NewCassandraDataCentersClient("00000000-0000-0000-0000-000000000000", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := client.NewListPager("cassandra-prod-rg", "cassandra-prod", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.ListDataCenters = armcosmos.ListDataCenters{ + // Value: []*armcosmos.DataCenterResource{ + // { + // Name: to.Ptr("dc1"), + // Type: to.Ptr("Microsoft.DocumentDB/cassandraClusters/dataCenters"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cassandra-prod-rg/providers/Microsoft.DocumentDB/cassandraClusters/cassandra-prod/dataCenters"), + // Properties: &armcosmos.DataCenterResourceProperties{ + // Base64EncodedCassandraYamlFragment: to.Ptr("Y29tcGFjdGlvbl90aHJvdWdocHV0X21iX3Blcl9zZWM6IDMyCmNvbXBhY3Rpb25fbGFyZ2VfcGFydGl0aW9uX3dhcm5pbmdfdGhyZXNob2xkX21iOiAxMDA="), + // DataCenterLocation: to.Ptr("West US 2"), + // DelegatedSubnetID: to.Ptr("/subscriptions/536e130b-d7d6-4ac7-98a5-de20d69588d2/resourceGroups/customer-vnet-rg/providers/Microsoft.Network/virtualNetworks/customer-vnet/subnets/dc1"), + // NodeCount: to.Ptr[int32](9), + // ProvisioningState: to.Ptr(armcosmos.ManagedCassandraProvisioningStateSucceeded), + // SeedNodes: []*armcosmos.SeedNode{ + // { + // IPAddress: to.Ptr("192.168.12.2"), + // }, + // { + // IPAddress: to.Ptr("192.168.12.3"), + // }, + // { + // IPAddress: to.Ptr("192.168.12.4"), + // }}, + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBManagedCassandraDataCenterGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBManagedCassandraDataCenterGet.json func ExampleCassandraDataCentersClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armcosmos.NewCassandraDataCentersClient("subid", cred, nil) + client, err := armcosmos.NewCassandraDataCentersClient("00000000-0000-0000-0000-000000000000", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } @@ -56,18 +83,41 @@ func ExampleCassandraDataCentersClient_Get() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.DataCenterResource = armcosmos.DataCenterResource{ + // Name: to.Ptr("dc1"), + // Type: to.Ptr("Microsoft.DocumentDB/cassandraClusters/dataCenters"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cassandra-prod-rg/providers/Microsoft.DocumentDB/cassandraClusters/cassandra-prod/dataCenters/dc1"), + // Properties: &armcosmos.DataCenterResourceProperties{ + // Base64EncodedCassandraYamlFragment: to.Ptr("Y29tcGFjdGlvbl90aHJvdWdocHV0X21iX3Blcl9zZWM6IDMyCmNvbXBhY3Rpb25fbGFyZ2VfcGFydGl0aW9uX3dhcm5pbmdfdGhyZXNob2xkX21iOiAxMDA="), + // DataCenterLocation: to.Ptr("West US 2"), + // DelegatedSubnetID: to.Ptr("/subscriptions/536e130b-d7d6-4ac7-98a5-de20d69588d2/resourceGroups/customer-vnet-rg/providers/Microsoft.Network/virtualNetworks/customer-vnet/subnets/dc1"), + // NodeCount: to.Ptr[int32](9), + // ProvisioningState: to.Ptr(armcosmos.ManagedCassandraProvisioningStateSucceeded), + // SeedNodes: []*armcosmos.SeedNode{ + // { + // IPAddress: to.Ptr("192.168.12.2"), + // }, + // { + // IPAddress: to.Ptr("192.168.12.3"), + // }, + // { + // IPAddress: to.Ptr("192.168.12.4"), + // }}, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBManagedCassandraDataCenterDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBManagedCassandraDataCenterDelete.json func ExampleCassandraDataCentersClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armcosmos.NewCassandraDataCentersClient("subid", cred, nil) + client, err := armcosmos.NewCassandraDataCentersClient("00000000-0000-0000-0000-000000000000", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } @@ -81,14 +131,14 @@ func ExampleCassandraDataCentersClient_BeginDelete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBManagedCassandraDataCenterCreate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBManagedCassandraDataCenterCreate.json func ExampleCassandraDataCentersClient_BeginCreateUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armcosmos.NewCassandraDataCentersClient("subid", cred, nil) + client, err := armcosmos.NewCassandraDataCentersClient("00000000-0000-0000-0000-000000000000", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } @@ -107,11 +157,33 @@ func ExampleCassandraDataCentersClient_BeginCreateUpdate() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.DataCenterResource = armcosmos.DataCenterResource{ + // Name: to.Ptr("dc1"), + // Type: to.Ptr("Microsoft.DocumentDB/cassandraClusters/dataCenters"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cassandra-prod-rg/providers/Microsoft.DocumentDB/cassandraClusters/cassandra-prod/dataCenters/dc1"), + // Properties: &armcosmos.DataCenterResourceProperties{ + // DataCenterLocation: to.Ptr("West US 2"), + // DelegatedSubnetID: to.Ptr("/subscriptions/536e130b-d7d6-4ac7-98a5-de20d69588d2/resourceGroups/customer-vnet-rg/providers/Microsoft.Network/virtualNetworks/customer-vnet/subnets/dc1"), + // NodeCount: to.Ptr[int32](9), + // ProvisioningState: to.Ptr(armcosmos.ManagedCassandraProvisioningStateSucceeded), + // SeedNodes: []*armcosmos.SeedNode{ + // { + // IPAddress: to.Ptr("192.168.12.2"), + // }, + // { + // IPAddress: to.Ptr("192.168.12.3"), + // }, + // { + // IPAddress: to.Ptr("192.168.12.4"), + // }}, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBManagedCassandraDataCenterPatch.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBManagedCassandraDataCenterPatch.json func ExampleCassandraDataCentersClient_BeginUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -137,6 +209,29 @@ func ExampleCassandraDataCentersClient_BeginUpdate() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.DataCenterResource = armcosmos.DataCenterResource{ + // Name: to.Ptr("dc1"), + // Type: to.Ptr("Microsoft.DocumentDB/cassandraClusters/dataCenters"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cassandra-prod-rg/providers/Microsoft.DocumentDB/cassandraClusters/cassandra-prod/dataCenters/dc1"), + // Properties: &armcosmos.DataCenterResourceProperties{ + // Base64EncodedCassandraYamlFragment: to.Ptr("Y29tcGFjdGlvbl90aHJvdWdocHV0X21iX3Blcl9zZWM6IDMyCmNvbXBhY3Rpb25fbGFyZ2VfcGFydGl0aW9uX3dhcm5pbmdfdGhyZXNob2xkX21iOiAxMDA="), + // DataCenterLocation: to.Ptr("West US 2"), + // DelegatedSubnetID: to.Ptr("/subscriptions/536e130b-d7d6-4ac7-98a5-de20d69588d2/resourceGroups/customer-vnet-rg/providers/Microsoft.Network/virtualNetworks/customer-vnet/subnets/dc1"), + // NodeCount: to.Ptr[int32](9), + // ProvisioningState: to.Ptr(armcosmos.ManagedCassandraProvisioningStateSucceeded), + // SeedNodes: []*armcosmos.SeedNode{ + // { + // IPAddress: to.Ptr("192.168.12.2"), + // }, + // { + // IPAddress: to.Ptr("192.168.12.3"), + // }, + // { + // IPAddress: to.Ptr("192.168.12.4"), + // }}, + // }, + // } } diff --git a/sdk/resourcemanager/cosmos/armcosmos/cassandraresources_client.go b/sdk/resourcemanager/cosmos/armcosmos/cassandraresources_client.go index cbeed12af8e8..1a1f14dd516a 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/cassandraresources_client.go +++ b/sdk/resourcemanager/cosmos/armcosmos/cassandraresources_client.go @@ -32,9 +32,9 @@ type CassandraResourcesClient struct { } // NewCassandraResourcesClient creates a new instance of CassandraResourcesClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewCassandraResourcesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*CassandraResourcesClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,13 +57,14 @@ func NewCassandraResourcesClient(subscriptionID string, credential azcore.TokenC // BeginCreateUpdateCassandraKeyspace - Create or update an Azure Cosmos DB Cassandra keyspace // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// keyspaceName - Cosmos DB keyspace name. -// createUpdateCassandraKeyspaceParameters - The parameters to provide for the current Cassandra keyspace. -// options - CassandraResourcesClientBeginCreateUpdateCassandraKeyspaceOptions contains the optional parameters for the CassandraResourcesClient.BeginCreateUpdateCassandraKeyspace -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - keyspaceName - Cosmos DB keyspace name. +// - createUpdateCassandraKeyspaceParameters - The parameters to provide for the current Cassandra keyspace. +// - options - CassandraResourcesClientBeginCreateUpdateCassandraKeyspaceOptions contains the optional parameters for the CassandraResourcesClient.BeginCreateUpdateCassandraKeyspace +// method. func (client *CassandraResourcesClient) BeginCreateUpdateCassandraKeyspace(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string, createUpdateCassandraKeyspaceParameters CassandraKeyspaceCreateUpdateParameters, options *CassandraResourcesClientBeginCreateUpdateCassandraKeyspaceOptions) (*runtime.Poller[CassandraResourcesClientCreateUpdateCassandraKeyspaceResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createUpdateCassandraKeyspace(ctx, resourceGroupName, accountName, keyspaceName, createUpdateCassandraKeyspaceParameters, options) @@ -78,7 +79,8 @@ func (client *CassandraResourcesClient) BeginCreateUpdateCassandraKeyspace(ctx c // CreateUpdateCassandraKeyspace - Create or update an Azure Cosmos DB Cassandra keyspace // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *CassandraResourcesClient) createUpdateCassandraKeyspace(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string, createUpdateCassandraKeyspaceParameters CassandraKeyspaceCreateUpdateParameters, options *CassandraResourcesClientBeginCreateUpdateCassandraKeyspaceOptions) (*http.Response, error) { req, err := client.createUpdateCassandraKeyspaceCreateRequest(ctx, resourceGroupName, accountName, keyspaceName, createUpdateCassandraKeyspaceParameters, options) if err != nil { @@ -118,7 +120,7 @@ func (client *CassandraResourcesClient) createUpdateCassandraKeyspaceCreateReque return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, createUpdateCassandraKeyspaceParameters) @@ -126,14 +128,15 @@ func (client *CassandraResourcesClient) createUpdateCassandraKeyspaceCreateReque // BeginCreateUpdateCassandraTable - Create or update an Azure Cosmos DB Cassandra Table // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// keyspaceName - Cosmos DB keyspace name. -// tableName - Cosmos DB table name. -// createUpdateCassandraTableParameters - The parameters to provide for the current Cassandra Table. -// options - CassandraResourcesClientBeginCreateUpdateCassandraTableOptions contains the optional parameters for the CassandraResourcesClient.BeginCreateUpdateCassandraTable -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - keyspaceName - Cosmos DB keyspace name. +// - tableName - Cosmos DB table name. +// - createUpdateCassandraTableParameters - The parameters to provide for the current Cassandra Table. +// - options - CassandraResourcesClientBeginCreateUpdateCassandraTableOptions contains the optional parameters for the CassandraResourcesClient.BeginCreateUpdateCassandraTable +// method. func (client *CassandraResourcesClient) BeginCreateUpdateCassandraTable(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string, tableName string, createUpdateCassandraTableParameters CassandraTableCreateUpdateParameters, options *CassandraResourcesClientBeginCreateUpdateCassandraTableOptions) (*runtime.Poller[CassandraResourcesClientCreateUpdateCassandraTableResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createUpdateCassandraTable(ctx, resourceGroupName, accountName, keyspaceName, tableName, createUpdateCassandraTableParameters, options) @@ -148,7 +151,8 @@ func (client *CassandraResourcesClient) BeginCreateUpdateCassandraTable(ctx cont // CreateUpdateCassandraTable - Create or update an Azure Cosmos DB Cassandra Table // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *CassandraResourcesClient) createUpdateCassandraTable(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string, tableName string, createUpdateCassandraTableParameters CassandraTableCreateUpdateParameters, options *CassandraResourcesClientBeginCreateUpdateCassandraTableOptions) (*http.Response, error) { req, err := client.createUpdateCassandraTableCreateRequest(ctx, resourceGroupName, accountName, keyspaceName, tableName, createUpdateCassandraTableParameters, options) if err != nil { @@ -192,94 +196,21 @@ func (client *CassandraResourcesClient) createUpdateCassandraTableCreateRequest( return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, createUpdateCassandraTableParameters) } -// BeginCreateUpdateCassandraView - Create or update an Azure Cosmos DB Cassandra View -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// keyspaceName - Cosmos DB keyspace name. -// viewName - Cosmos DB view name. -// createUpdateCassandraViewParameters - The parameters to provide for the current Cassandra View. -// options - CassandraResourcesClientBeginCreateUpdateCassandraViewOptions contains the optional parameters for the CassandraResourcesClient.BeginCreateUpdateCassandraView -// method. -func (client *CassandraResourcesClient) BeginCreateUpdateCassandraView(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string, viewName string, createUpdateCassandraViewParameters CassandraViewCreateUpdateParameters, options *CassandraResourcesClientBeginCreateUpdateCassandraViewOptions) (*runtime.Poller[CassandraResourcesClientCreateUpdateCassandraViewResponse], error) { - if options == nil || options.ResumeToken == "" { - resp, err := client.createUpdateCassandraView(ctx, resourceGroupName, accountName, keyspaceName, viewName, createUpdateCassandraViewParameters, options) - if err != nil { - return nil, err - } - return runtime.NewPoller[CassandraResourcesClientCreateUpdateCassandraViewResponse](resp, client.pl, nil) - } else { - return runtime.NewPollerFromResumeToken[CassandraResourcesClientCreateUpdateCassandraViewResponse](options.ResumeToken, client.pl, nil) - } -} - -// CreateUpdateCassandraView - Create or update an Azure Cosmos DB Cassandra View -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -func (client *CassandraResourcesClient) createUpdateCassandraView(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string, viewName string, createUpdateCassandraViewParameters CassandraViewCreateUpdateParameters, options *CassandraResourcesClientBeginCreateUpdateCassandraViewOptions) (*http.Response, error) { - req, err := client.createUpdateCassandraViewCreateRequest(ctx, resourceGroupName, accountName, keyspaceName, viewName, createUpdateCassandraViewParameters, options) - if err != nil { - return nil, err - } - resp, err := client.pl.Do(req) - if err != nil { - return nil, err - } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) - } - return resp, nil -} - -// createUpdateCassandraViewCreateRequest creates the CreateUpdateCassandraView request. -func (client *CassandraResourcesClient) createUpdateCassandraViewCreateRequest(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string, viewName string, createUpdateCassandraViewParameters CassandraViewCreateUpdateParameters, options *CassandraResourcesClientBeginCreateUpdateCassandraViewOptions) (*policy.Request, error) { - urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/views/{viewName}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - if resourceGroupName == "" { - return nil, errors.New("parameter resourceGroupName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) - if accountName == "" { - return nil, errors.New("parameter accountName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{accountName}", url.PathEscape(accountName)) - if keyspaceName == "" { - return nil, errors.New("parameter keyspaceName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{keyspaceName}", url.PathEscape(keyspaceName)) - if viewName == "" { - return nil, errors.New("parameter viewName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{viewName}", url.PathEscape(viewName)) - req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath)) - if err != nil { - return nil, err - } - reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") - req.Raw().URL.RawQuery = reqQP.Encode() - req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, createUpdateCassandraViewParameters) -} - // BeginDeleteCassandraKeyspace - Deletes an existing Azure Cosmos DB Cassandra keyspace. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// keyspaceName - Cosmos DB keyspace name. -// options - CassandraResourcesClientBeginDeleteCassandraKeyspaceOptions contains the optional parameters for the CassandraResourcesClient.BeginDeleteCassandraKeyspace -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - keyspaceName - Cosmos DB keyspace name. +// - options - CassandraResourcesClientBeginDeleteCassandraKeyspaceOptions contains the optional parameters for the CassandraResourcesClient.BeginDeleteCassandraKeyspace +// method. func (client *CassandraResourcesClient) BeginDeleteCassandraKeyspace(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string, options *CassandraResourcesClientBeginDeleteCassandraKeyspaceOptions) (*runtime.Poller[CassandraResourcesClientDeleteCassandraKeyspaceResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteCassandraKeyspace(ctx, resourceGroupName, accountName, keyspaceName, options) @@ -294,7 +225,8 @@ func (client *CassandraResourcesClient) BeginDeleteCassandraKeyspace(ctx context // DeleteCassandraKeyspace - Deletes an existing Azure Cosmos DB Cassandra keyspace. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *CassandraResourcesClient) deleteCassandraKeyspace(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string, options *CassandraResourcesClientBeginDeleteCassandraKeyspaceOptions) (*http.Response, error) { req, err := client.deleteCassandraKeyspaceCreateRequest(ctx, resourceGroupName, accountName, keyspaceName, options) if err != nil { @@ -334,20 +266,21 @@ func (client *CassandraResourcesClient) deleteCassandraKeyspaceCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() return req, nil } // BeginDeleteCassandraTable - Deletes an existing Azure Cosmos DB Cassandra table. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// keyspaceName - Cosmos DB keyspace name. -// tableName - Cosmos DB table name. -// options - CassandraResourcesClientBeginDeleteCassandraTableOptions contains the optional parameters for the CassandraResourcesClient.BeginDeleteCassandraTable -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - keyspaceName - Cosmos DB keyspace name. +// - tableName - Cosmos DB table name. +// - options - CassandraResourcesClientBeginDeleteCassandraTableOptions contains the optional parameters for the CassandraResourcesClient.BeginDeleteCassandraTable +// method. func (client *CassandraResourcesClient) BeginDeleteCassandraTable(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string, tableName string, options *CassandraResourcesClientBeginDeleteCassandraTableOptions) (*runtime.Poller[CassandraResourcesClientDeleteCassandraTableResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteCassandraTable(ctx, resourceGroupName, accountName, keyspaceName, tableName, options) @@ -362,7 +295,8 @@ func (client *CassandraResourcesClient) BeginDeleteCassandraTable(ctx context.Co // DeleteCassandraTable - Deletes an existing Azure Cosmos DB Cassandra table. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *CassandraResourcesClient) deleteCassandraTable(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string, tableName string, options *CassandraResourcesClientBeginDeleteCassandraTableOptions) (*http.Response, error) { req, err := client.deleteCassandraTableCreateRequest(ctx, resourceGroupName, accountName, keyspaceName, tableName, options) if err != nil { @@ -406,79 +340,7 @@ func (client *CassandraResourcesClient) deleteCassandraTableCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") - req.Raw().URL.RawQuery = reqQP.Encode() - return req, nil -} - -// BeginDeleteCassandraView - Deletes an existing Azure Cosmos DB Cassandra view. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// keyspaceName - Cosmos DB keyspace name. -// viewName - Cosmos DB view name. -// options - CassandraResourcesClientBeginDeleteCassandraViewOptions contains the optional parameters for the CassandraResourcesClient.BeginDeleteCassandraView -// method. -func (client *CassandraResourcesClient) BeginDeleteCassandraView(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string, viewName string, options *CassandraResourcesClientBeginDeleteCassandraViewOptions) (*runtime.Poller[CassandraResourcesClientDeleteCassandraViewResponse], error) { - if options == nil || options.ResumeToken == "" { - resp, err := client.deleteCassandraView(ctx, resourceGroupName, accountName, keyspaceName, viewName, options) - if err != nil { - return nil, err - } - return runtime.NewPoller[CassandraResourcesClientDeleteCassandraViewResponse](resp, client.pl, nil) - } else { - return runtime.NewPollerFromResumeToken[CassandraResourcesClientDeleteCassandraViewResponse](options.ResumeToken, client.pl, nil) - } -} - -// DeleteCassandraView - Deletes an existing Azure Cosmos DB Cassandra view. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -func (client *CassandraResourcesClient) deleteCassandraView(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string, viewName string, options *CassandraResourcesClientBeginDeleteCassandraViewOptions) (*http.Response, error) { - req, err := client.deleteCassandraViewCreateRequest(ctx, resourceGroupName, accountName, keyspaceName, viewName, options) - if err != nil { - return nil, err - } - resp, err := client.pl.Do(req) - if err != nil { - return nil, err - } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { - return nil, runtime.NewResponseError(resp) - } - return resp, nil -} - -// deleteCassandraViewCreateRequest creates the DeleteCassandraView request. -func (client *CassandraResourcesClient) deleteCassandraViewCreateRequest(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string, viewName string, options *CassandraResourcesClientBeginDeleteCassandraViewOptions) (*policy.Request, error) { - urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/views/{viewName}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - if resourceGroupName == "" { - return nil, errors.New("parameter resourceGroupName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) - if accountName == "" { - return nil, errors.New("parameter accountName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{accountName}", url.PathEscape(accountName)) - if keyspaceName == "" { - return nil, errors.New("parameter keyspaceName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{keyspaceName}", url.PathEscape(keyspaceName)) - if viewName == "" { - return nil, errors.New("parameter viewName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{viewName}", url.PathEscape(viewName)) - req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath)) - if err != nil { - return nil, err - } - reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() return req, nil } @@ -486,12 +348,13 @@ func (client *CassandraResourcesClient) deleteCassandraViewCreateRequest(ctx con // GetCassandraKeyspace - Gets the Cassandra keyspaces under an existing Azure Cosmos DB database account with the provided // name. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// keyspaceName - Cosmos DB keyspace name. -// options - CassandraResourcesClientGetCassandraKeyspaceOptions contains the optional parameters for the CassandraResourcesClient.GetCassandraKeyspace -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - keyspaceName - Cosmos DB keyspace name. +// - options - CassandraResourcesClientGetCassandraKeyspaceOptions contains the optional parameters for the CassandraResourcesClient.GetCassandraKeyspace +// method. func (client *CassandraResourcesClient) GetCassandraKeyspace(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string, options *CassandraResourcesClientGetCassandraKeyspaceOptions) (CassandraResourcesClientGetCassandraKeyspaceResponse, error) { req, err := client.getCassandraKeyspaceCreateRequest(ctx, resourceGroupName, accountName, keyspaceName, options) if err != nil { @@ -531,7 +394,7 @@ func (client *CassandraResourcesClient) getCassandraKeyspaceCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -549,12 +412,13 @@ func (client *CassandraResourcesClient) getCassandraKeyspaceHandleResponse(resp // GetCassandraKeyspaceThroughput - Gets the RUs per second of the Cassandra Keyspace under an existing Azure Cosmos DB database // account with the provided name. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// keyspaceName - Cosmos DB keyspace name. -// options - CassandraResourcesClientGetCassandraKeyspaceThroughputOptions contains the optional parameters for the CassandraResourcesClient.GetCassandraKeyspaceThroughput -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - keyspaceName - Cosmos DB keyspace name. +// - options - CassandraResourcesClientGetCassandraKeyspaceThroughputOptions contains the optional parameters for the CassandraResourcesClient.GetCassandraKeyspaceThroughput +// method. func (client *CassandraResourcesClient) GetCassandraKeyspaceThroughput(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string, options *CassandraResourcesClientGetCassandraKeyspaceThroughputOptions) (CassandraResourcesClientGetCassandraKeyspaceThroughputResponse, error) { req, err := client.getCassandraKeyspaceThroughputCreateRequest(ctx, resourceGroupName, accountName, keyspaceName, options) if err != nil { @@ -594,7 +458,7 @@ func (client *CassandraResourcesClient) getCassandraKeyspaceThroughputCreateRequ return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -611,13 +475,14 @@ func (client *CassandraResourcesClient) getCassandraKeyspaceThroughputHandleResp // GetCassandraTable - Gets the Cassandra table under an existing Azure Cosmos DB database account. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// keyspaceName - Cosmos DB keyspace name. -// tableName - Cosmos DB table name. -// options - CassandraResourcesClientGetCassandraTableOptions contains the optional parameters for the CassandraResourcesClient.GetCassandraTable -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - keyspaceName - Cosmos DB keyspace name. +// - tableName - Cosmos DB table name. +// - options - CassandraResourcesClientGetCassandraTableOptions contains the optional parameters for the CassandraResourcesClient.GetCassandraTable +// method. func (client *CassandraResourcesClient) GetCassandraTable(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string, tableName string, options *CassandraResourcesClientGetCassandraTableOptions) (CassandraResourcesClientGetCassandraTableResponse, error) { req, err := client.getCassandraTableCreateRequest(ctx, resourceGroupName, accountName, keyspaceName, tableName, options) if err != nil { @@ -661,7 +526,7 @@ func (client *CassandraResourcesClient) getCassandraTableCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -679,13 +544,14 @@ func (client *CassandraResourcesClient) getCassandraTableHandleResponse(resp *ht // GetCassandraTableThroughput - Gets the RUs per second of the Cassandra table under an existing Azure Cosmos DB database // account with the provided name. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// keyspaceName - Cosmos DB keyspace name. -// tableName - Cosmos DB table name. -// options - CassandraResourcesClientGetCassandraTableThroughputOptions contains the optional parameters for the CassandraResourcesClient.GetCassandraTableThroughput -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - keyspaceName - Cosmos DB keyspace name. +// - tableName - Cosmos DB table name. +// - options - CassandraResourcesClientGetCassandraTableThroughputOptions contains the optional parameters for the CassandraResourcesClient.GetCassandraTableThroughput +// method. func (client *CassandraResourcesClient) GetCassandraTableThroughput(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string, tableName string, options *CassandraResourcesClientGetCassandraTableThroughputOptions) (CassandraResourcesClientGetCassandraTableThroughputResponse, error) { req, err := client.getCassandraTableThroughputCreateRequest(ctx, resourceGroupName, accountName, keyspaceName, tableName, options) if err != nil { @@ -729,7 +595,7 @@ func (client *CassandraResourcesClient) getCassandraTableThroughputCreateRequest return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -744,147 +610,13 @@ func (client *CassandraResourcesClient) getCassandraTableThroughputHandleRespons return result, nil } -// GetCassandraView - Gets the Cassandra view under an existing Azure Cosmos DB database account. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// keyspaceName - Cosmos DB keyspace name. -// viewName - Cosmos DB view name. -// options - CassandraResourcesClientGetCassandraViewOptions contains the optional parameters for the CassandraResourcesClient.GetCassandraView -// method. -func (client *CassandraResourcesClient) GetCassandraView(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string, viewName string, options *CassandraResourcesClientGetCassandraViewOptions) (CassandraResourcesClientGetCassandraViewResponse, error) { - req, err := client.getCassandraViewCreateRequest(ctx, resourceGroupName, accountName, keyspaceName, viewName, options) - if err != nil { - return CassandraResourcesClientGetCassandraViewResponse{}, err - } - resp, err := client.pl.Do(req) - if err != nil { - return CassandraResourcesClientGetCassandraViewResponse{}, err - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return CassandraResourcesClientGetCassandraViewResponse{}, runtime.NewResponseError(resp) - } - return client.getCassandraViewHandleResponse(resp) -} - -// getCassandraViewCreateRequest creates the GetCassandraView request. -func (client *CassandraResourcesClient) getCassandraViewCreateRequest(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string, viewName string, options *CassandraResourcesClientGetCassandraViewOptions) (*policy.Request, error) { - urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/views/{viewName}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - if resourceGroupName == "" { - return nil, errors.New("parameter resourceGroupName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) - if accountName == "" { - return nil, errors.New("parameter accountName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{accountName}", url.PathEscape(accountName)) - if keyspaceName == "" { - return nil, errors.New("parameter keyspaceName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{keyspaceName}", url.PathEscape(keyspaceName)) - if viewName == "" { - return nil, errors.New("parameter viewName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{viewName}", url.PathEscape(viewName)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) - if err != nil { - return nil, err - } - reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") - req.Raw().URL.RawQuery = reqQP.Encode() - req.Raw().Header["Accept"] = []string{"application/json"} - return req, nil -} - -// getCassandraViewHandleResponse handles the GetCassandraView response. -func (client *CassandraResourcesClient) getCassandraViewHandleResponse(resp *http.Response) (CassandraResourcesClientGetCassandraViewResponse, error) { - result := CassandraResourcesClientGetCassandraViewResponse{} - if err := runtime.UnmarshalAsJSON(resp, &result.CassandraViewGetResults); err != nil { - return CassandraResourcesClientGetCassandraViewResponse{}, err - } - return result, nil -} - -// GetCassandraViewThroughput - Gets the RUs per second of the Cassandra view under an existing Azure Cosmos DB database account -// with the provided name. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// keyspaceName - Cosmos DB keyspace name. -// viewName - Cosmos DB view name. -// options - CassandraResourcesClientGetCassandraViewThroughputOptions contains the optional parameters for the CassandraResourcesClient.GetCassandraViewThroughput -// method. -func (client *CassandraResourcesClient) GetCassandraViewThroughput(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string, viewName string, options *CassandraResourcesClientGetCassandraViewThroughputOptions) (CassandraResourcesClientGetCassandraViewThroughputResponse, error) { - req, err := client.getCassandraViewThroughputCreateRequest(ctx, resourceGroupName, accountName, keyspaceName, viewName, options) - if err != nil { - return CassandraResourcesClientGetCassandraViewThroughputResponse{}, err - } - resp, err := client.pl.Do(req) - if err != nil { - return CassandraResourcesClientGetCassandraViewThroughputResponse{}, err - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return CassandraResourcesClientGetCassandraViewThroughputResponse{}, runtime.NewResponseError(resp) - } - return client.getCassandraViewThroughputHandleResponse(resp) -} - -// getCassandraViewThroughputCreateRequest creates the GetCassandraViewThroughput request. -func (client *CassandraResourcesClient) getCassandraViewThroughputCreateRequest(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string, viewName string, options *CassandraResourcesClientGetCassandraViewThroughputOptions) (*policy.Request, error) { - urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/views/{viewName}/throughputSettings/default" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - if resourceGroupName == "" { - return nil, errors.New("parameter resourceGroupName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) - if accountName == "" { - return nil, errors.New("parameter accountName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{accountName}", url.PathEscape(accountName)) - if keyspaceName == "" { - return nil, errors.New("parameter keyspaceName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{keyspaceName}", url.PathEscape(keyspaceName)) - if viewName == "" { - return nil, errors.New("parameter viewName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{viewName}", url.PathEscape(viewName)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) - if err != nil { - return nil, err - } - reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") - req.Raw().URL.RawQuery = reqQP.Encode() - req.Raw().Header["Accept"] = []string{"application/json"} - return req, nil -} - -// getCassandraViewThroughputHandleResponse handles the GetCassandraViewThroughput response. -func (client *CassandraResourcesClient) getCassandraViewThroughputHandleResponse(resp *http.Response) (CassandraResourcesClientGetCassandraViewThroughputResponse, error) { - result := CassandraResourcesClientGetCassandraViewThroughputResponse{} - if err := runtime.UnmarshalAsJSON(resp, &result.ThroughputSettingsGetResults); err != nil { - return CassandraResourcesClientGetCassandraViewThroughputResponse{}, err - } - return result, nil -} - // NewListCassandraKeyspacesPager - Lists the Cassandra keyspaces under an existing Azure Cosmos DB database account. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// options - CassandraResourcesClientListCassandraKeyspacesOptions contains the optional parameters for the CassandraResourcesClient.ListCassandraKeyspaces -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - options - CassandraResourcesClientListCassandraKeyspacesOptions contains the optional parameters for the CassandraResourcesClient.NewListCassandraKeyspacesPager +// method. func (client *CassandraResourcesClient) NewListCassandraKeyspacesPager(resourceGroupName string, accountName string, options *CassandraResourcesClientListCassandraKeyspacesOptions) *runtime.Pager[CassandraResourcesClientListCassandraKeyspacesResponse] { return runtime.NewPager(runtime.PagingHandler[CassandraResourcesClientListCassandraKeyspacesResponse]{ More: func(page CassandraResourcesClientListCassandraKeyspacesResponse) bool { @@ -927,7 +659,7 @@ func (client *CassandraResourcesClient) listCassandraKeyspacesCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -943,12 +675,13 @@ func (client *CassandraResourcesClient) listCassandraKeyspacesHandleResponse(res } // NewListCassandraTablesPager - Lists the Cassandra table under an existing Azure Cosmos DB database account. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// keyspaceName - Cosmos DB keyspace name. -// options - CassandraResourcesClientListCassandraTablesOptions contains the optional parameters for the CassandraResourcesClient.ListCassandraTables -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - keyspaceName - Cosmos DB keyspace name. +// - options - CassandraResourcesClientListCassandraTablesOptions contains the optional parameters for the CassandraResourcesClient.NewListCassandraTablesPager +// method. func (client *CassandraResourcesClient) NewListCassandraTablesPager(resourceGroupName string, accountName string, keyspaceName string, options *CassandraResourcesClientListCassandraTablesOptions) *runtime.Pager[CassandraResourcesClientListCassandraTablesResponse] { return runtime.NewPager(runtime.PagingHandler[CassandraResourcesClientListCassandraTablesResponse]{ More: func(page CassandraResourcesClientListCassandraTablesResponse) bool { @@ -995,7 +728,7 @@ func (client *CassandraResourcesClient) listCassandraTablesCreateRequest(ctx con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1010,82 +743,15 @@ func (client *CassandraResourcesClient) listCassandraTablesHandleResponse(resp * return result, nil } -// NewListCassandraViewsPager - Lists the Cassandra materialized views under an existing Azure Cosmos DB database account. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// keyspaceName - Cosmos DB keyspace name. -// options - CassandraResourcesClientListCassandraViewsOptions contains the optional parameters for the CassandraResourcesClient.ListCassandraViews -// method. -func (client *CassandraResourcesClient) NewListCassandraViewsPager(resourceGroupName string, accountName string, keyspaceName string, options *CassandraResourcesClientListCassandraViewsOptions) *runtime.Pager[CassandraResourcesClientListCassandraViewsResponse] { - return runtime.NewPager(runtime.PagingHandler[CassandraResourcesClientListCassandraViewsResponse]{ - More: func(page CassandraResourcesClientListCassandraViewsResponse) bool { - return false - }, - Fetcher: func(ctx context.Context, page *CassandraResourcesClientListCassandraViewsResponse) (CassandraResourcesClientListCassandraViewsResponse, error) { - req, err := client.listCassandraViewsCreateRequest(ctx, resourceGroupName, accountName, keyspaceName, options) - if err != nil { - return CassandraResourcesClientListCassandraViewsResponse{}, err - } - resp, err := client.pl.Do(req) - if err != nil { - return CassandraResourcesClientListCassandraViewsResponse{}, err - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return CassandraResourcesClientListCassandraViewsResponse{}, runtime.NewResponseError(resp) - } - return client.listCassandraViewsHandleResponse(resp) - }, - }) -} - -// listCassandraViewsCreateRequest creates the ListCassandraViews request. -func (client *CassandraResourcesClient) listCassandraViewsCreateRequest(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string, options *CassandraResourcesClientListCassandraViewsOptions) (*policy.Request, error) { - urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/views" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - if resourceGroupName == "" { - return nil, errors.New("parameter resourceGroupName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) - if accountName == "" { - return nil, errors.New("parameter accountName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{accountName}", url.PathEscape(accountName)) - if keyspaceName == "" { - return nil, errors.New("parameter keyspaceName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{keyspaceName}", url.PathEscape(keyspaceName)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) - if err != nil { - return nil, err - } - reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") - req.Raw().URL.RawQuery = reqQP.Encode() - req.Raw().Header["Accept"] = []string{"application/json"} - return req, nil -} - -// listCassandraViewsHandleResponse handles the ListCassandraViews response. -func (client *CassandraResourcesClient) listCassandraViewsHandleResponse(resp *http.Response) (CassandraResourcesClientListCassandraViewsResponse, error) { - result := CassandraResourcesClientListCassandraViewsResponse{} - if err := runtime.UnmarshalAsJSON(resp, &result.CassandraViewListResult); err != nil { - return CassandraResourcesClientListCassandraViewsResponse{}, err - } - return result, nil -} - // BeginMigrateCassandraKeyspaceToAutoscale - Migrate an Azure Cosmos DB Cassandra Keyspace from manual throughput to autoscale // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// keyspaceName - Cosmos DB keyspace name. -// options - CassandraResourcesClientBeginMigrateCassandraKeyspaceToAutoscaleOptions contains the optional parameters for -// the CassandraResourcesClient.BeginMigrateCassandraKeyspaceToAutoscale method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - keyspaceName - Cosmos DB keyspace name. +// - options - CassandraResourcesClientBeginMigrateCassandraKeyspaceToAutoscaleOptions contains the optional parameters for +// the CassandraResourcesClient.BeginMigrateCassandraKeyspaceToAutoscale method. func (client *CassandraResourcesClient) BeginMigrateCassandraKeyspaceToAutoscale(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string, options *CassandraResourcesClientBeginMigrateCassandraKeyspaceToAutoscaleOptions) (*runtime.Poller[CassandraResourcesClientMigrateCassandraKeyspaceToAutoscaleResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.migrateCassandraKeyspaceToAutoscale(ctx, resourceGroupName, accountName, keyspaceName, options) @@ -1100,7 +766,8 @@ func (client *CassandraResourcesClient) BeginMigrateCassandraKeyspaceToAutoscale // MigrateCassandraKeyspaceToAutoscale - Migrate an Azure Cosmos DB Cassandra Keyspace from manual throughput to autoscale // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *CassandraResourcesClient) migrateCassandraKeyspaceToAutoscale(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string, options *CassandraResourcesClientBeginMigrateCassandraKeyspaceToAutoscaleOptions) (*http.Response, error) { req, err := client.migrateCassandraKeyspaceToAutoscaleCreateRequest(ctx, resourceGroupName, accountName, keyspaceName, options) if err != nil { @@ -1140,7 +807,7 @@ func (client *CassandraResourcesClient) migrateCassandraKeyspaceToAutoscaleCreat return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1149,12 +816,13 @@ func (client *CassandraResourcesClient) migrateCassandraKeyspaceToAutoscaleCreat // BeginMigrateCassandraKeyspaceToManualThroughput - Migrate an Azure Cosmos DB Cassandra Keyspace from autoscale to manual // throughput // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// keyspaceName - Cosmos DB keyspace name. -// options - CassandraResourcesClientBeginMigrateCassandraKeyspaceToManualThroughputOptions contains the optional parameters -// for the CassandraResourcesClient.BeginMigrateCassandraKeyspaceToManualThroughput method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - keyspaceName - Cosmos DB keyspace name. +// - options - CassandraResourcesClientBeginMigrateCassandraKeyspaceToManualThroughputOptions contains the optional parameters +// for the CassandraResourcesClient.BeginMigrateCassandraKeyspaceToManualThroughput method. func (client *CassandraResourcesClient) BeginMigrateCassandraKeyspaceToManualThroughput(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string, options *CassandraResourcesClientBeginMigrateCassandraKeyspaceToManualThroughputOptions) (*runtime.Poller[CassandraResourcesClientMigrateCassandraKeyspaceToManualThroughputResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.migrateCassandraKeyspaceToManualThroughput(ctx, resourceGroupName, accountName, keyspaceName, options) @@ -1169,7 +837,8 @@ func (client *CassandraResourcesClient) BeginMigrateCassandraKeyspaceToManualThr // MigrateCassandraKeyspaceToManualThroughput - Migrate an Azure Cosmos DB Cassandra Keyspace from autoscale to manual throughput // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *CassandraResourcesClient) migrateCassandraKeyspaceToManualThroughput(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string, options *CassandraResourcesClientBeginMigrateCassandraKeyspaceToManualThroughputOptions) (*http.Response, error) { req, err := client.migrateCassandraKeyspaceToManualThroughputCreateRequest(ctx, resourceGroupName, accountName, keyspaceName, options) if err != nil { @@ -1209,7 +878,7 @@ func (client *CassandraResourcesClient) migrateCassandraKeyspaceToManualThroughp return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1217,13 +886,14 @@ func (client *CassandraResourcesClient) migrateCassandraKeyspaceToManualThroughp // BeginMigrateCassandraTableToAutoscale - Migrate an Azure Cosmos DB Cassandra table from manual throughput to autoscale // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// keyspaceName - Cosmos DB keyspace name. -// tableName - Cosmos DB table name. -// options - CassandraResourcesClientBeginMigrateCassandraTableToAutoscaleOptions contains the optional parameters for the -// CassandraResourcesClient.BeginMigrateCassandraTableToAutoscale method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - keyspaceName - Cosmos DB keyspace name. +// - tableName - Cosmos DB table name. +// - options - CassandraResourcesClientBeginMigrateCassandraTableToAutoscaleOptions contains the optional parameters for the +// CassandraResourcesClient.BeginMigrateCassandraTableToAutoscale method. func (client *CassandraResourcesClient) BeginMigrateCassandraTableToAutoscale(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string, tableName string, options *CassandraResourcesClientBeginMigrateCassandraTableToAutoscaleOptions) (*runtime.Poller[CassandraResourcesClientMigrateCassandraTableToAutoscaleResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.migrateCassandraTableToAutoscale(ctx, resourceGroupName, accountName, keyspaceName, tableName, options) @@ -1238,7 +908,8 @@ func (client *CassandraResourcesClient) BeginMigrateCassandraTableToAutoscale(ct // MigrateCassandraTableToAutoscale - Migrate an Azure Cosmos DB Cassandra table from manual throughput to autoscale // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *CassandraResourcesClient) migrateCassandraTableToAutoscale(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string, tableName string, options *CassandraResourcesClientBeginMigrateCassandraTableToAutoscaleOptions) (*http.Response, error) { req, err := client.migrateCassandraTableToAutoscaleCreateRequest(ctx, resourceGroupName, accountName, keyspaceName, tableName, options) if err != nil { @@ -1282,7 +953,7 @@ func (client *CassandraResourcesClient) migrateCassandraTableToAutoscaleCreateRe return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1290,13 +961,14 @@ func (client *CassandraResourcesClient) migrateCassandraTableToAutoscaleCreateRe // BeginMigrateCassandraTableToManualThroughput - Migrate an Azure Cosmos DB Cassandra table from autoscale to manual throughput // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// keyspaceName - Cosmos DB keyspace name. -// tableName - Cosmos DB table name. -// options - CassandraResourcesClientBeginMigrateCassandraTableToManualThroughputOptions contains the optional parameters -// for the CassandraResourcesClient.BeginMigrateCassandraTableToManualThroughput method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - keyspaceName - Cosmos DB keyspace name. +// - tableName - Cosmos DB table name. +// - options - CassandraResourcesClientBeginMigrateCassandraTableToManualThroughputOptions contains the optional parameters +// for the CassandraResourcesClient.BeginMigrateCassandraTableToManualThroughput method. func (client *CassandraResourcesClient) BeginMigrateCassandraTableToManualThroughput(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string, tableName string, options *CassandraResourcesClientBeginMigrateCassandraTableToManualThroughputOptions) (*runtime.Poller[CassandraResourcesClientMigrateCassandraTableToManualThroughputResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.migrateCassandraTableToManualThroughput(ctx, resourceGroupName, accountName, keyspaceName, tableName, options) @@ -1311,7 +983,8 @@ func (client *CassandraResourcesClient) BeginMigrateCassandraTableToManualThroug // MigrateCassandraTableToManualThroughput - Migrate an Azure Cosmos DB Cassandra table from autoscale to manual throughput // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *CassandraResourcesClient) migrateCassandraTableToManualThroughput(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string, tableName string, options *CassandraResourcesClientBeginMigrateCassandraTableToManualThroughputOptions) (*http.Response, error) { req, err := client.migrateCassandraTableToManualThroughputCreateRequest(ctx, resourceGroupName, accountName, keyspaceName, tableName, options) if err != nil { @@ -1355,153 +1028,7 @@ func (client *CassandraResourcesClient) migrateCassandraTableToManualThroughputC return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") - req.Raw().URL.RawQuery = reqQP.Encode() - req.Raw().Header["Accept"] = []string{"application/json"} - return req, nil -} - -// BeginMigrateCassandraViewToAutoscale - Migrate an Azure Cosmos DB Cassandra view from manual throughput to autoscale -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// keyspaceName - Cosmos DB keyspace name. -// viewName - Cosmos DB view name. -// options - CassandraResourcesClientBeginMigrateCassandraViewToAutoscaleOptions contains the optional parameters for the -// CassandraResourcesClient.BeginMigrateCassandraViewToAutoscale method. -func (client *CassandraResourcesClient) BeginMigrateCassandraViewToAutoscale(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string, viewName string, options *CassandraResourcesClientBeginMigrateCassandraViewToAutoscaleOptions) (*runtime.Poller[CassandraResourcesClientMigrateCassandraViewToAutoscaleResponse], error) { - if options == nil || options.ResumeToken == "" { - resp, err := client.migrateCassandraViewToAutoscale(ctx, resourceGroupName, accountName, keyspaceName, viewName, options) - if err != nil { - return nil, err - } - return runtime.NewPoller[CassandraResourcesClientMigrateCassandraViewToAutoscaleResponse](resp, client.pl, nil) - } else { - return runtime.NewPollerFromResumeToken[CassandraResourcesClientMigrateCassandraViewToAutoscaleResponse](options.ResumeToken, client.pl, nil) - } -} - -// MigrateCassandraViewToAutoscale - Migrate an Azure Cosmos DB Cassandra view from manual throughput to autoscale -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -func (client *CassandraResourcesClient) migrateCassandraViewToAutoscale(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string, viewName string, options *CassandraResourcesClientBeginMigrateCassandraViewToAutoscaleOptions) (*http.Response, error) { - req, err := client.migrateCassandraViewToAutoscaleCreateRequest(ctx, resourceGroupName, accountName, keyspaceName, viewName, options) - if err != nil { - return nil, err - } - resp, err := client.pl.Do(req) - if err != nil { - return nil, err - } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) - } - return resp, nil -} - -// migrateCassandraViewToAutoscaleCreateRequest creates the MigrateCassandraViewToAutoscale request. -func (client *CassandraResourcesClient) migrateCassandraViewToAutoscaleCreateRequest(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string, viewName string, options *CassandraResourcesClientBeginMigrateCassandraViewToAutoscaleOptions) (*policy.Request, error) { - urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/views/{viewName}/throughputSettings/default/migrateToAutoscale" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - if resourceGroupName == "" { - return nil, errors.New("parameter resourceGroupName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) - if accountName == "" { - return nil, errors.New("parameter accountName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{accountName}", url.PathEscape(accountName)) - if keyspaceName == "" { - return nil, errors.New("parameter keyspaceName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{keyspaceName}", url.PathEscape(keyspaceName)) - if viewName == "" { - return nil, errors.New("parameter viewName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{viewName}", url.PathEscape(viewName)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) - if err != nil { - return nil, err - } - reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") - req.Raw().URL.RawQuery = reqQP.Encode() - req.Raw().Header["Accept"] = []string{"application/json"} - return req, nil -} - -// BeginMigrateCassandraViewToManualThroughput - Migrate an Azure Cosmos DB Cassandra view from autoscale to manual throughput -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// keyspaceName - Cosmos DB keyspace name. -// viewName - Cosmos DB view name. -// options - CassandraResourcesClientBeginMigrateCassandraViewToManualThroughputOptions contains the optional parameters for -// the CassandraResourcesClient.BeginMigrateCassandraViewToManualThroughput method. -func (client *CassandraResourcesClient) BeginMigrateCassandraViewToManualThroughput(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string, viewName string, options *CassandraResourcesClientBeginMigrateCassandraViewToManualThroughputOptions) (*runtime.Poller[CassandraResourcesClientMigrateCassandraViewToManualThroughputResponse], error) { - if options == nil || options.ResumeToken == "" { - resp, err := client.migrateCassandraViewToManualThroughput(ctx, resourceGroupName, accountName, keyspaceName, viewName, options) - if err != nil { - return nil, err - } - return runtime.NewPoller[CassandraResourcesClientMigrateCassandraViewToManualThroughputResponse](resp, client.pl, nil) - } else { - return runtime.NewPollerFromResumeToken[CassandraResourcesClientMigrateCassandraViewToManualThroughputResponse](options.ResumeToken, client.pl, nil) - } -} - -// MigrateCassandraViewToManualThroughput - Migrate an Azure Cosmos DB Cassandra view from autoscale to manual throughput -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -func (client *CassandraResourcesClient) migrateCassandraViewToManualThroughput(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string, viewName string, options *CassandraResourcesClientBeginMigrateCassandraViewToManualThroughputOptions) (*http.Response, error) { - req, err := client.migrateCassandraViewToManualThroughputCreateRequest(ctx, resourceGroupName, accountName, keyspaceName, viewName, options) - if err != nil { - return nil, err - } - resp, err := client.pl.Do(req) - if err != nil { - return nil, err - } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) - } - return resp, nil -} - -// migrateCassandraViewToManualThroughputCreateRequest creates the MigrateCassandraViewToManualThroughput request. -func (client *CassandraResourcesClient) migrateCassandraViewToManualThroughputCreateRequest(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string, viewName string, options *CassandraResourcesClientBeginMigrateCassandraViewToManualThroughputOptions) (*policy.Request, error) { - urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/views/{viewName}/throughputSettings/default/migrateToManualThroughput" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - if resourceGroupName == "" { - return nil, errors.New("parameter resourceGroupName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) - if accountName == "" { - return nil, errors.New("parameter accountName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{accountName}", url.PathEscape(accountName)) - if keyspaceName == "" { - return nil, errors.New("parameter keyspaceName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{keyspaceName}", url.PathEscape(keyspaceName)) - if viewName == "" { - return nil, errors.New("parameter viewName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{viewName}", url.PathEscape(viewName)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) - if err != nil { - return nil, err - } - reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1509,13 +1036,14 @@ func (client *CassandraResourcesClient) migrateCassandraViewToManualThroughputCr // BeginUpdateCassandraKeyspaceThroughput - Update RUs per second of an Azure Cosmos DB Cassandra Keyspace // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// keyspaceName - Cosmos DB keyspace name. -// updateThroughputParameters - The RUs per second of the parameters to provide for the current Cassandra Keyspace. -// options - CassandraResourcesClientBeginUpdateCassandraKeyspaceThroughputOptions contains the optional parameters for the -// CassandraResourcesClient.BeginUpdateCassandraKeyspaceThroughput method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - keyspaceName - Cosmos DB keyspace name. +// - updateThroughputParameters - The RUs per second of the parameters to provide for the current Cassandra Keyspace. +// - options - CassandraResourcesClientBeginUpdateCassandraKeyspaceThroughputOptions contains the optional parameters for the +// CassandraResourcesClient.BeginUpdateCassandraKeyspaceThroughput method. func (client *CassandraResourcesClient) BeginUpdateCassandraKeyspaceThroughput(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string, updateThroughputParameters ThroughputSettingsUpdateParameters, options *CassandraResourcesClientBeginUpdateCassandraKeyspaceThroughputOptions) (*runtime.Poller[CassandraResourcesClientUpdateCassandraKeyspaceThroughputResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.updateCassandraKeyspaceThroughput(ctx, resourceGroupName, accountName, keyspaceName, updateThroughputParameters, options) @@ -1530,7 +1058,8 @@ func (client *CassandraResourcesClient) BeginUpdateCassandraKeyspaceThroughput(c // UpdateCassandraKeyspaceThroughput - Update RUs per second of an Azure Cosmos DB Cassandra Keyspace // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *CassandraResourcesClient) updateCassandraKeyspaceThroughput(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string, updateThroughputParameters ThroughputSettingsUpdateParameters, options *CassandraResourcesClientBeginUpdateCassandraKeyspaceThroughputOptions) (*http.Response, error) { req, err := client.updateCassandraKeyspaceThroughputCreateRequest(ctx, resourceGroupName, accountName, keyspaceName, updateThroughputParameters, options) if err != nil { @@ -1570,7 +1099,7 @@ func (client *CassandraResourcesClient) updateCassandraKeyspaceThroughputCreateR return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, updateThroughputParameters) @@ -1578,14 +1107,15 @@ func (client *CassandraResourcesClient) updateCassandraKeyspaceThroughputCreateR // BeginUpdateCassandraTableThroughput - Update RUs per second of an Azure Cosmos DB Cassandra table // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// keyspaceName - Cosmos DB keyspace name. -// tableName - Cosmos DB table name. -// updateThroughputParameters - The RUs per second of the parameters to provide for the current Cassandra table. -// options - CassandraResourcesClientBeginUpdateCassandraTableThroughputOptions contains the optional parameters for the CassandraResourcesClient.BeginUpdateCassandraTableThroughput -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - keyspaceName - Cosmos DB keyspace name. +// - tableName - Cosmos DB table name. +// - updateThroughputParameters - The RUs per second of the parameters to provide for the current Cassandra table. +// - options - CassandraResourcesClientBeginUpdateCassandraTableThroughputOptions contains the optional parameters for the CassandraResourcesClient.BeginUpdateCassandraTableThroughput +// method. func (client *CassandraResourcesClient) BeginUpdateCassandraTableThroughput(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string, tableName string, updateThroughputParameters ThroughputSettingsUpdateParameters, options *CassandraResourcesClientBeginUpdateCassandraTableThroughputOptions) (*runtime.Poller[CassandraResourcesClientUpdateCassandraTableThroughputResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.updateCassandraTableThroughput(ctx, resourceGroupName, accountName, keyspaceName, tableName, updateThroughputParameters, options) @@ -1600,7 +1130,8 @@ func (client *CassandraResourcesClient) BeginUpdateCassandraTableThroughput(ctx // UpdateCassandraTableThroughput - Update RUs per second of an Azure Cosmos DB Cassandra table // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *CassandraResourcesClient) updateCassandraTableThroughput(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string, tableName string, updateThroughputParameters ThroughputSettingsUpdateParameters, options *CassandraResourcesClientBeginUpdateCassandraTableThroughputOptions) (*http.Response, error) { req, err := client.updateCassandraTableThroughputCreateRequest(ctx, resourceGroupName, accountName, keyspaceName, tableName, updateThroughputParameters, options) if err != nil { @@ -1644,81 +1175,7 @@ func (client *CassandraResourcesClient) updateCassandraTableThroughputCreateRequ return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") - req.Raw().URL.RawQuery = reqQP.Encode() - req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, updateThroughputParameters) -} - -// BeginUpdateCassandraViewThroughput - Update RUs per second of an Azure Cosmos DB Cassandra view -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// keyspaceName - Cosmos DB keyspace name. -// viewName - Cosmos DB view name. -// updateThroughputParameters - The RUs per second of the parameters to provide for the current Cassandra view. -// options - CassandraResourcesClientBeginUpdateCassandraViewThroughputOptions contains the optional parameters for the CassandraResourcesClient.BeginUpdateCassandraViewThroughput -// method. -func (client *CassandraResourcesClient) BeginUpdateCassandraViewThroughput(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string, viewName string, updateThroughputParameters ThroughputSettingsUpdateParameters, options *CassandraResourcesClientBeginUpdateCassandraViewThroughputOptions) (*runtime.Poller[CassandraResourcesClientUpdateCassandraViewThroughputResponse], error) { - if options == nil || options.ResumeToken == "" { - resp, err := client.updateCassandraViewThroughput(ctx, resourceGroupName, accountName, keyspaceName, viewName, updateThroughputParameters, options) - if err != nil { - return nil, err - } - return runtime.NewPoller[CassandraResourcesClientUpdateCassandraViewThroughputResponse](resp, client.pl, nil) - } else { - return runtime.NewPollerFromResumeToken[CassandraResourcesClientUpdateCassandraViewThroughputResponse](options.ResumeToken, client.pl, nil) - } -} - -// UpdateCassandraViewThroughput - Update RUs per second of an Azure Cosmos DB Cassandra view -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -func (client *CassandraResourcesClient) updateCassandraViewThroughput(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string, viewName string, updateThroughputParameters ThroughputSettingsUpdateParameters, options *CassandraResourcesClientBeginUpdateCassandraViewThroughputOptions) (*http.Response, error) { - req, err := client.updateCassandraViewThroughputCreateRequest(ctx, resourceGroupName, accountName, keyspaceName, viewName, updateThroughputParameters, options) - if err != nil { - return nil, err - } - resp, err := client.pl.Do(req) - if err != nil { - return nil, err - } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) - } - return resp, nil -} - -// updateCassandraViewThroughputCreateRequest creates the UpdateCassandraViewThroughput request. -func (client *CassandraResourcesClient) updateCassandraViewThroughputCreateRequest(ctx context.Context, resourceGroupName string, accountName string, keyspaceName string, viewName string, updateThroughputParameters ThroughputSettingsUpdateParameters, options *CassandraResourcesClientBeginUpdateCassandraViewThroughputOptions) (*policy.Request, error) { - urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/views/{viewName}/throughputSettings/default" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - if resourceGroupName == "" { - return nil, errors.New("parameter resourceGroupName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) - if accountName == "" { - return nil, errors.New("parameter accountName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{accountName}", url.PathEscape(accountName)) - if keyspaceName == "" { - return nil, errors.New("parameter keyspaceName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{keyspaceName}", url.PathEscape(keyspaceName)) - if viewName == "" { - return nil, errors.New("parameter viewName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{viewName}", url.PathEscape(viewName)) - req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath)) - if err != nil { - return nil, err - } - reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, updateThroughputParameters) diff --git a/sdk/resourcemanager/cosmos/armcosmos/cassandraresources_client_example_test.go b/sdk/resourcemanager/cosmos/armcosmos/cassandraresources_client_example_test.go index 17c81bdad469..3abfcb8b2d98 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/cassandraresources_client_example_test.go +++ b/sdk/resourcemanager/cosmos/armcosmos/cassandraresources_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armcosmos_test @@ -17,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cosmos/armcosmos/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBCassandraKeyspaceList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBCassandraKeyspaceList.json func ExampleCassandraResourcesClient_NewListCassandraKeyspacesPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -30,18 +31,35 @@ func ExampleCassandraResourcesClient_NewListCassandraKeyspacesPager() { } pager := client.NewListCassandraKeyspacesPager("rgName", "ddb1", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.CassandraKeyspaceListResult = armcosmos.CassandraKeyspaceListResult{ + // Value: []*armcosmos.CassandraKeyspaceGetResults{ + // { + // Name: to.Ptr("keyspaceName"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces"), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/cassandraKeyspaces/keyspaceName"), + // Location: to.Ptr("West US"), + // Tags: map[string]*string{ + // }, + // Properties: &armcosmos.CassandraKeyspaceGetProperties{ + // Resource: &armcosmos.CassandraKeyspaceGetPropertiesResource{ + // ID: to.Ptr("keyspaceName"), + // }, + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBCassandraKeyspaceGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBCassandraKeyspaceGet.json func ExampleCassandraResourcesClient_GetCassandraKeyspace() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -56,11 +74,28 @@ func ExampleCassandraResourcesClient_GetCassandraKeyspace() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.CassandraKeyspaceGetResults = armcosmos.CassandraKeyspaceGetResults{ + // Name: to.Ptr("keyspaceName"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces"), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/cassandraKeyspaces/keyspaceName"), + // Location: to.Ptr("West US"), + // Tags: map[string]*string{ + // }, + // Properties: &armcosmos.CassandraKeyspaceGetProperties{ + // Resource: &armcosmos.CassandraKeyspaceGetPropertiesResource{ + // ID: to.Ptr("keyspaceName"), + // Etag: to.Ptr("\"00005900-0000-0000-0000-56f9a2630000\""), + // Rid: to.Ptr("PD5DALigDgw="), + // Ts: to.Ptr[float32](1459200611), + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBCassandraKeyspaceCreateUpdate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBCassandraKeyspaceCreateUpdate.json func ExampleCassandraResourcesClient_BeginCreateUpdateCassandraKeyspace() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -88,11 +123,25 @@ func ExampleCassandraResourcesClient_BeginCreateUpdateCassandraKeyspace() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.CassandraKeyspaceGetResults = armcosmos.CassandraKeyspaceGetResults{ + // Name: to.Ptr("keyspaceName"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces"), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/cassandraKeyspaces/keyspaceName"), + // Location: to.Ptr("West US"), + // Tags: map[string]*string{ + // }, + // Properties: &armcosmos.CassandraKeyspaceGetProperties{ + // Resource: &armcosmos.CassandraKeyspaceGetPropertiesResource{ + // ID: to.Ptr("keyspaceName"), + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBCassandraKeyspaceDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBCassandraKeyspaceDelete.json func ExampleCassandraResourcesClient_BeginDeleteCassandraKeyspace() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -113,7 +162,7 @@ func ExampleCassandraResourcesClient_BeginDeleteCassandraKeyspace() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBCassandraKeyspaceThroughputGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBCassandraKeyspaceThroughputGet.json func ExampleCassandraResourcesClient_GetCassandraKeyspaceThroughput() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -128,11 +177,30 @@ func ExampleCassandraResourcesClient_GetCassandraKeyspaceThroughput() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.ThroughputSettingsGetResults = armcosmos.ThroughputSettingsGetResults{ + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/throughputSettings"), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/cassandraKeyspaces/keyspaceName/throughputSettings/default"), + // Location: to.Ptr("West US"), + // Tags: map[string]*string{ + // }, + // Properties: &armcosmos.ThroughputSettingsGetProperties{ + // Resource: &armcosmos.ThroughputSettingsGetPropertiesResource{ + // Etag: to.Ptr("\"00005900-0000-0000-0000-56f9a2630000\""), + // Rid: to.Ptr("PD5DALigDgw="), + // Ts: to.Ptr[float32](1459200611), + // MinimumThroughput: to.Ptr("400"), + // OfferReplacePending: to.Ptr("true"), + // Throughput: to.Ptr[int32](400), + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBCassandraKeyspaceThroughputUpdate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBCassandraKeyspaceThroughputUpdate.json func ExampleCassandraResourcesClient_BeginUpdateCassandraKeyspaceThroughput() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -159,11 +227,30 @@ func ExampleCassandraResourcesClient_BeginUpdateCassandraKeyspaceThroughput() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.ThroughputSettingsGetResults = armcosmos.ThroughputSettingsGetResults{ + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/throughputSettings"), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/cassandraKeyspaces/keyspaceName/throughputSettings/default"), + // Location: to.Ptr("West US"), + // Tags: map[string]*string{ + // }, + // Properties: &armcosmos.ThroughputSettingsGetProperties{ + // Resource: &armcosmos.ThroughputSettingsGetPropertiesResource{ + // Etag: to.Ptr("\"00005900-0000-0000-0000-56f9a2630000\""), + // Rid: to.Ptr("PD5DALigDgw="), + // Ts: to.Ptr[float32](1459200611), + // MinimumThroughput: to.Ptr("400"), + // OfferReplacePending: to.Ptr("true"), + // Throughput: to.Ptr[int32](400), + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBCassandraKeyspaceMigrateToAutoscale.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBCassandraKeyspaceMigrateToAutoscale.json func ExampleCassandraResourcesClient_BeginMigrateCassandraKeyspaceToAutoscale() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -182,11 +269,27 @@ func ExampleCassandraResourcesClient_BeginMigrateCassandraKeyspaceToAutoscale() if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.ThroughputSettingsGetResults = armcosmos.ThroughputSettingsGetResults{ + // Properties: &armcosmos.ThroughputSettingsGetProperties{ + // Resource: &armcosmos.ThroughputSettingsGetPropertiesResource{ + // Etag: to.Ptr("\"00005900-0000-0000-0000-56f9a2630000\""), + // Rid: to.Ptr("PD5DALigDgw="), + // Ts: to.Ptr[float32](1459200611), + // AutoscaleSettings: &armcosmos.AutoscaleSettingsResource{ + // MaxThroughput: to.Ptr[int32](4000), + // }, + // MinimumThroughput: to.Ptr("4000"), + // OfferReplacePending: to.Ptr("false"), + // Throughput: to.Ptr[int32](400), + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBCassandraKeyspaceMigrateToManualThroughput.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBCassandraKeyspaceMigrateToManualThroughput.json func ExampleCassandraResourcesClient_BeginMigrateCassandraKeyspaceToManualThroughput() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -205,11 +308,24 @@ func ExampleCassandraResourcesClient_BeginMigrateCassandraKeyspaceToManualThroug if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.ThroughputSettingsGetResults = armcosmos.ThroughputSettingsGetResults{ + // Properties: &armcosmos.ThroughputSettingsGetProperties{ + // Resource: &armcosmos.ThroughputSettingsGetPropertiesResource{ + // Etag: to.Ptr("\"00005900-0000-0000-0000-56f9a2630000\""), + // Rid: to.Ptr("PD5DALigDgw="), + // Ts: to.Ptr[float32](1459200611), + // MinimumThroughput: to.Ptr("400"), + // OfferReplacePending: to.Ptr("false"), + // Throughput: to.Ptr[int32](400), + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBCassandraTableList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBCassandraTableList.json func ExampleCassandraResourcesClient_NewListCassandraTablesPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -222,18 +338,52 @@ func ExampleCassandraResourcesClient_NewListCassandraTablesPager() { } pager := client.NewListCassandraTablesPager("rgName", "ddb1", "keyspaceName", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.CassandraTableListResult = armcosmos.CassandraTableListResult{ + // Value: []*armcosmos.CassandraTableGetResults{ + // { + // Name: to.Ptr("tableName"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/cassandraTables"), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/cassandraKeyspaces/keyspaceName/cassandraTables/tableName"), + // Location: to.Ptr("West US"), + // Tags: map[string]*string{ + // }, + // Properties: &armcosmos.CassandraTableGetProperties{ + // Resource: &armcosmos.CassandraTableGetPropertiesResource{ + // Schema: &armcosmos.CassandraSchema{ + // ClusterKeys: []*armcosmos.ClusterKey{ + // { + // Name: to.Ptr("columnA"), + // OrderBy: to.Ptr("Asc"), + // }}, + // Columns: []*armcosmos.Column{ + // { + // Name: to.Ptr("columnA"), + // Type: to.Ptr("Ascii"), + // }}, + // PartitionKeys: []*armcosmos.CassandraPartitionKey{ + // { + // Name: to.Ptr("columnA"), + // }}, + // }, + // DefaultTTL: to.Ptr[int32](100), + // ID: to.Ptr("tableName"), + // }, + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBCassandraTableGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBCassandraTableGet.json func ExampleCassandraResourcesClient_GetCassandraTable() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -248,11 +398,45 @@ func ExampleCassandraResourcesClient_GetCassandraTable() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.CassandraTableGetResults = armcosmos.CassandraTableGetResults{ + // Name: to.Ptr("tableName"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/cassandraTables"), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/cassandraKeyspaces/keyspaceName/cassandraTables/tableName"), + // Location: to.Ptr("West US"), + // Tags: map[string]*string{ + // }, + // Properties: &armcosmos.CassandraTableGetProperties{ + // Resource: &armcosmos.CassandraTableGetPropertiesResource{ + // Schema: &armcosmos.CassandraSchema{ + // ClusterKeys: []*armcosmos.ClusterKey{ + // { + // Name: to.Ptr("columnA"), + // OrderBy: to.Ptr("Asc"), + // }}, + // Columns: []*armcosmos.Column{ + // { + // Name: to.Ptr("columnA"), + // Type: to.Ptr("Ascii"), + // }}, + // PartitionKeys: []*armcosmos.CassandraPartitionKey{ + // { + // Name: to.Ptr("columnA"), + // }}, + // }, + // DefaultTTL: to.Ptr[int32](100), + // ID: to.Ptr("tableName"), + // Etag: to.Ptr("\"00005900-0000-0000-0000-56f9a2630000\""), + // Rid: to.Ptr("PD5DALigDgw="), + // Ts: to.Ptr[float32](1459200611), + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBCassandraTableCreateUpdate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBCassandraTableCreateUpdate.json func ExampleCassandraResourcesClient_BeginCreateUpdateCassandraTable() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -285,9 +469,8 @@ func ExampleCassandraResourcesClient_BeginCreateUpdateCassandraTable() { Name: to.Ptr("columnA"), }}, }, - AnalyticalStorageTTL: to.Ptr[int32](500), - DefaultTTL: to.Ptr[int32](100), - ID: to.Ptr("tableName"), + DefaultTTL: to.Ptr[int32](100), + ID: to.Ptr("tableName"), }, }, }, nil) @@ -298,11 +481,42 @@ func ExampleCassandraResourcesClient_BeginCreateUpdateCassandraTable() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.CassandraTableGetResults = armcosmos.CassandraTableGetResults{ + // Name: to.Ptr("tableName"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/cassandraTables"), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/cassandraKeyspaces/keyspaceName/cassandraTables/tableName"), + // Location: to.Ptr("West US"), + // Tags: map[string]*string{ + // }, + // Properties: &armcosmos.CassandraTableGetProperties{ + // Resource: &armcosmos.CassandraTableGetPropertiesResource{ + // Schema: &armcosmos.CassandraSchema{ + // ClusterKeys: []*armcosmos.ClusterKey{ + // { + // Name: to.Ptr("columnA"), + // OrderBy: to.Ptr("Asc"), + // }}, + // Columns: []*armcosmos.Column{ + // { + // Name: to.Ptr("columnA"), + // Type: to.Ptr("Ascii"), + // }}, + // PartitionKeys: []*armcosmos.CassandraPartitionKey{ + // { + // Name: to.Ptr("columnA"), + // }}, + // }, + // DefaultTTL: to.Ptr[int32](100), + // ID: to.Ptr("tableName"), + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBCassandraTableDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBCassandraTableDelete.json func ExampleCassandraResourcesClient_BeginDeleteCassandraTable() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -323,7 +537,7 @@ func ExampleCassandraResourcesClient_BeginDeleteCassandraTable() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBCassandraTableThroughputGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBCassandraTableThroughputGet.json func ExampleCassandraResourcesClient_GetCassandraTableThroughput() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -338,11 +552,30 @@ func ExampleCassandraResourcesClient_GetCassandraTableThroughput() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.ThroughputSettingsGetResults = armcosmos.ThroughputSettingsGetResults{ + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/cassandraTables/throughputSettings"), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/cassandraKeyspaces/keyspaceName/cassandraTables/tableName/throughputSettings/default"), + // Location: to.Ptr("West US"), + // Tags: map[string]*string{ + // }, + // Properties: &armcosmos.ThroughputSettingsGetProperties{ + // Resource: &armcosmos.ThroughputSettingsGetPropertiesResource{ + // Etag: to.Ptr("\"00005900-0000-0000-0000-56f9a2630000\""), + // Rid: to.Ptr("PD5DALigDgw="), + // Ts: to.Ptr[float32](1459200611), + // MinimumThroughput: to.Ptr("400"), + // OfferReplacePending: to.Ptr("true"), + // Throughput: to.Ptr[int32](400), + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBCassandraTableThroughputUpdate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBCassandraTableThroughputUpdate.json func ExampleCassandraResourcesClient_BeginUpdateCassandraTableThroughput() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -369,11 +602,27 @@ func ExampleCassandraResourcesClient_BeginUpdateCassandraTableThroughput() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.ThroughputSettingsGetResults = armcosmos.ThroughputSettingsGetResults{ + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/cassandraTables/throughputSettings"), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/cassandraKeyspaces/keyspaceName/cassandraTables/tableName/throughputSettings/default"), + // Properties: &armcosmos.ThroughputSettingsGetProperties{ + // Resource: &armcosmos.ThroughputSettingsGetPropertiesResource{ + // Etag: to.Ptr("\"00005900-0000-0000-0000-56f9a2630000\""), + // Rid: to.Ptr("PD5DALigDgw="), + // Ts: to.Ptr[float32](1459200611), + // MinimumThroughput: to.Ptr("400"), + // OfferReplacePending: to.Ptr("true"), + // Throughput: to.Ptr[int32](400), + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBCassandraTableMigrateToAutoscale.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBCassandraTableMigrateToAutoscale.json func ExampleCassandraResourcesClient_BeginMigrateCassandraTableToAutoscale() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -392,11 +641,27 @@ func ExampleCassandraResourcesClient_BeginMigrateCassandraTableToAutoscale() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.ThroughputSettingsGetResults = armcosmos.ThroughputSettingsGetResults{ + // Properties: &armcosmos.ThroughputSettingsGetProperties{ + // Resource: &armcosmos.ThroughputSettingsGetPropertiesResource{ + // Etag: to.Ptr("\"00005900-0000-0000-0000-56f9a2630000\""), + // Rid: to.Ptr("PD5DALigDgw="), + // Ts: to.Ptr[float32](1459200611), + // AutoscaleSettings: &armcosmos.AutoscaleSettingsResource{ + // MaxThroughput: to.Ptr[int32](4000), + // }, + // MinimumThroughput: to.Ptr("4000"), + // OfferReplacePending: to.Ptr("false"), + // Throughput: to.Ptr[int32](400), + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBCassandraTableMigrateToManualThroughput.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBCassandraTableMigrateToManualThroughput.json func ExampleCassandraResourcesClient_BeginMigrateCassandraTableToManualThroughput() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -415,197 +680,19 @@ func ExampleCassandraResourcesClient_BeginMigrateCassandraTableToManualThroughpu if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBCassandraViewList.json -func ExampleCassandraResourcesClient_NewListCassandraViewsPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcosmos.NewCassandraResourcesClient("subid", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListCassandraViewsPager("rgName", "ddb1", "keyspacename", nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBCassandraViewGet.json -func ExampleCassandraResourcesClient_GetCassandraView() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcosmos.NewCassandraResourcesClient("subid", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.GetCassandraView(ctx, "rg1", "ddb1", "keyspacename", "viewname", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBCassandraViewCreateUpdate.json -func ExampleCassandraResourcesClient_BeginCreateUpdateCassandraView() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcosmos.NewCassandraResourcesClient("subid", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginCreateUpdateCassandraView(ctx, "rg1", "ddb1", "keyspacename", "viewname", armcosmos.CassandraViewCreateUpdateParameters{ - Tags: map[string]*string{}, - Properties: &armcosmos.CassandraViewCreateUpdateProperties{ - Options: &armcosmos.CreateUpdateOptions{}, - Resource: &armcosmos.CassandraViewResource{ - ID: to.Ptr("viewname"), - ViewDefinition: to.Ptr("SELECT columna, columnb, columnc FROM keyspacename.srctablename WHERE columna IS NOT NULL AND columnc IS NOT NULL PRIMARY (columnc, columna)"), - }, - }, - }, 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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBCassandraViewDelete.json -func ExampleCassandraResourcesClient_BeginDeleteCassandraView() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcosmos.NewCassandraResourcesClient("subid", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginDeleteCassandraView(ctx, "rg1", "ddb1", "keyspacename", "viewname", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBCassandraViewThroughputGet.json -func ExampleCassandraResourcesClient_GetCassandraViewThroughput() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcosmos.NewCassandraResourcesClient("subid", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.GetCassandraViewThroughput(ctx, "rg1", "ddb1", "keyspacename", "viewname", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBCassandraViewThroughputUpdate.json -func ExampleCassandraResourcesClient_BeginUpdateCassandraViewThroughput() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcosmos.NewCassandraResourcesClient("subid", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginUpdateCassandraViewThroughput(ctx, "rg1", "ddb1", "keyspacename", "viewname", armcosmos.ThroughputSettingsUpdateParameters{ - Tags: map[string]*string{}, - Properties: &armcosmos.ThroughputSettingsUpdateProperties{ - Resource: &armcosmos.ThroughputSettingsResource{ - Throughput: to.Ptr[int32](400), - }, - }, - }, 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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBCassandraViewMigrateToAutoscale.json -func ExampleCassandraResourcesClient_BeginMigrateCassandraViewToAutoscale() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcosmos.NewCassandraResourcesClient("subid", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginMigrateCassandraViewToAutoscale(ctx, "rg1", "ddb1", "keyspacename", "viewname", 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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBCassandraViewMigrateToManualThroughput.json -func ExampleCassandraResourcesClient_BeginMigrateCassandraViewToManualThroughput() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcosmos.NewCassandraResourcesClient("subid", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginMigrateCassandraViewToManualThroughput(ctx, "rg1", "ddb1", "keyspacename", "viewname", 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) - } - // TODO: use response item + // 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.ThroughputSettingsGetResults = armcosmos.ThroughputSettingsGetResults{ + // Properties: &armcosmos.ThroughputSettingsGetProperties{ + // Resource: &armcosmos.ThroughputSettingsGetPropertiesResource{ + // Etag: to.Ptr("\"00005900-0000-0000-0000-56f9a2630000\""), + // Rid: to.Ptr("PD5DALigDgw="), + // Ts: to.Ptr[float32](1459200611), + // MinimumThroughput: to.Ptr("400"), + // OfferReplacePending: to.Ptr("false"), + // Throughput: to.Ptr[int32](400), + // }, + // }, + // } } diff --git a/sdk/resourcemanager/cosmos/armcosmos/collection_client.go b/sdk/resourcemanager/cosmos/armcosmos/collection_client.go index 33fd768febcf..e5fac089ff2e 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/collection_client.go +++ b/sdk/resourcemanager/cosmos/armcosmos/collection_client.go @@ -32,9 +32,9 @@ type CollectionClient struct { } // NewCollectionClient creates a new instance of CollectionClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewCollectionClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*CollectionClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,13 +56,14 @@ func NewCollectionClient(subscriptionID string, credential azcore.TokenCredentia } // NewListMetricDefinitionsPager - Retrieves metric definitions for the given collection. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseRid - Cosmos DB database rid. -// collectionRid - Cosmos DB collection rid. -// options - CollectionClientListMetricDefinitionsOptions contains the optional parameters for the CollectionClient.ListMetricDefinitions -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - databaseRid - Cosmos DB database rid. +// - collectionRid - Cosmos DB collection rid. +// - options - CollectionClientListMetricDefinitionsOptions contains the optional parameters for the CollectionClient.NewListMetricDefinitionsPager +// method. func (client *CollectionClient) NewListMetricDefinitionsPager(resourceGroupName string, accountName string, databaseRid string, collectionRid string, options *CollectionClientListMetricDefinitionsOptions) *runtime.Pager[CollectionClientListMetricDefinitionsResponse] { return runtime.NewPager(runtime.PagingHandler[CollectionClientListMetricDefinitionsResponse]{ More: func(page CollectionClientListMetricDefinitionsResponse) bool { @@ -113,7 +114,7 @@ func (client *CollectionClient) listMetricDefinitionsCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -129,15 +130,17 @@ func (client *CollectionClient) listMetricDefinitionsHandleResponse(resp *http.R } // NewListMetricsPager - Retrieves the metrics determined by the given filter for the given database account and collection. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseRid - Cosmos DB database rid. -// collectionRid - Cosmos DB collection rid. -// filter - An OData filter expression that describes a subset of metrics to return. The parameters that can be filtered are -// name.value (name of the metric, can have an or of multiple names), startTime, endTime, -// and timeGrain. The supported operator is eq. -// options - CollectionClientListMetricsOptions contains the optional parameters for the CollectionClient.ListMetrics method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - databaseRid - Cosmos DB database rid. +// - collectionRid - Cosmos DB collection rid. +// - filter - An OData filter expression that describes a subset of metrics to return. The parameters that can be filtered are +// name.value (name of the metric, can have an or of multiple names), startTime, endTime, +// and timeGrain. The supported operator is eq. +// - options - CollectionClientListMetricsOptions contains the optional parameters for the CollectionClient.NewListMetricsPager +// method. func (client *CollectionClient) NewListMetricsPager(resourceGroupName string, accountName string, databaseRid string, collectionRid string, filter string, options *CollectionClientListMetricsOptions) *runtime.Pager[CollectionClientListMetricsResponse] { return runtime.NewPager(runtime.PagingHandler[CollectionClientListMetricsResponse]{ More: func(page CollectionClientListMetricsResponse) bool { @@ -188,7 +191,7 @@ func (client *CollectionClient) listMetricsCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") reqQP.Set("$filter", filter) req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} @@ -205,12 +208,14 @@ func (client *CollectionClient) listMetricsHandleResponse(resp *http.Response) ( } // NewListUsagesPager - Retrieves the usages (most recent storage data) for the given collection. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseRid - Cosmos DB database rid. -// collectionRid - Cosmos DB collection rid. -// options - CollectionClientListUsagesOptions contains the optional parameters for the CollectionClient.ListUsages method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - databaseRid - Cosmos DB database rid. +// - collectionRid - Cosmos DB collection rid. +// - options - CollectionClientListUsagesOptions contains the optional parameters for the CollectionClient.NewListUsagesPager +// method. func (client *CollectionClient) NewListUsagesPager(resourceGroupName string, accountName string, databaseRid string, collectionRid string, options *CollectionClientListUsagesOptions) *runtime.Pager[CollectionClientListUsagesResponse] { return runtime.NewPager(runtime.PagingHandler[CollectionClientListUsagesResponse]{ More: func(page CollectionClientListUsagesResponse) bool { @@ -261,7 +266,7 @@ func (client *CollectionClient) listUsagesCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") if options != nil && options.Filter != nil { reqQP.Set("$filter", *options.Filter) } diff --git a/sdk/resourcemanager/cosmos/armcosmos/collection_client_example_test.go b/sdk/resourcemanager/cosmos/armcosmos/collection_client_example_test.go index bccd440777f8..1ab9da4b2722 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/collection_client_example_test.go +++ b/sdk/resourcemanager/cosmos/armcosmos/collection_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armcosmos_test @@ -17,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cosmos/armcosmos/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBCollectionGetMetrics.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBCollectionGetMetrics.json func ExampleCollectionClient_NewListMetricsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -30,18 +31,57 @@ func ExampleCollectionClient_NewListMetricsPager() { } pager := client.NewListMetricsPager("rg1", "ddb1", "databaseRid", "collectionRid", "$filter=(name.value eq 'Total Requests') and timeGrain eq duration'PT5M' and startTime eq '2017-11-19T23:53:55.2780000Z' and endTime eq '2017-11-20T00:13:55.2780000Z", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.MetricListResult = armcosmos.MetricListResult{ + // Value: []*armcosmos.Metric{ + // { + // Name: &armcosmos.MetricName{ + // LocalizedValue: to.Ptr("Total Requests"), + // Value: to.Ptr("Total Requests"), + // }, + // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-20T00:13:55.2780000Z"); return t}()), + // MetricValues: []*armcosmos.MetricValue{ + // { + // Count: to.Ptr[int32](0), + // Average: to.Ptr[float64](0), + // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-19T23:53:55.2780000Z"); return t}()), + // Total: to.Ptr[float64](0), + // }, + // { + // Count: to.Ptr[int32](0), + // Average: to.Ptr[float64](0), + // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-19T23:58:55.2780000Z"); return t}()), + // Total: to.Ptr[float64](0), + // }, + // { + // Count: to.Ptr[int32](0), + // Average: to.Ptr[float64](0), + // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-20T00:03:55.2780000Z"); return t}()), + // Total: to.Ptr[float64](0), + // }, + // { + // Count: to.Ptr[int32](0), + // Average: to.Ptr[float64](0), + // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-20T00:08:55.2780000Z"); return t}()), + // Total: to.Ptr[float64](0), + // }}, + // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-19T23:53:55.2780000Z"); return t}()), + // TimeGrain: to.Ptr("PT5M"), + // Unit: to.Ptr(armcosmos.UnitTypeCount), + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBCollectionGetUsages.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBCollectionGetUsages.json func ExampleCollectionClient_NewListUsagesPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -54,18 +94,32 @@ func ExampleCollectionClient_NewListUsagesPager() { } pager := client.NewListUsagesPager("rg1", "ddb1", "databaseRid", "collectionRid", &armcosmos.CollectionClientListUsagesOptions{Filter: to.Ptr("$filter=name.value eq 'Storage'")}) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.UsagesResult = armcosmos.UsagesResult{ + // Value: []*armcosmos.Usage{ + // { + // Name: &armcosmos.MetricName{ + // LocalizedValue: to.Ptr("Storage"), + // Value: to.Ptr("Storage"), + // }, + // CurrentValue: to.Ptr[int64](0), + // Limit: to.Ptr[int64](10737418240), + // QuotaPeriod: to.Ptr("P1D"), + // Unit: to.Ptr(armcosmos.UnitTypeBytes), + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBCollectionGetMetricDefinitions.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBCollectionGetMetricDefinitions.json func ExampleCollectionClient_NewListMetricDefinitionsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -78,13 +132,39 @@ func ExampleCollectionClient_NewListMetricDefinitionsPager() { } pager := client.NewListMetricDefinitionsPager("rg1", "ddb1", "databaseRid", "collectionRid", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.MetricDefinitionsListResult = armcosmos.MetricDefinitionsListResult{ + // Value: []*armcosmos.MetricDefinition{ + // { + // Name: &armcosmos.MetricName{ + // LocalizedValue: to.Ptr("Total Requests"), + // Value: to.Ptr("Total Requests"), + // }, + // MetricAvailabilities: []*armcosmos.MetricAvailability{ + // { + // Retention: to.Ptr("P2D"), + // TimeGrain: to.Ptr("PT5M"), + // }, + // { + // Retention: to.Ptr("P14D"), + // TimeGrain: to.Ptr("PT1H"), + // }, + // { + // Retention: to.Ptr("P60D"), + // TimeGrain: to.Ptr("P1D"), + // }}, + // PrimaryAggregationType: to.Ptr(armcosmos.PrimaryAggregationTypeTotal), + // ResourceURI: to.Ptr("/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1"), + // Unit: to.Ptr(armcosmos.UnitTypeCount), + // }}, + // } } } diff --git a/sdk/resourcemanager/cosmos/armcosmos/collectionpartition_client.go b/sdk/resourcemanager/cosmos/armcosmos/collectionpartition_client.go index 8065d03aff3e..e8e7280e676d 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/collectionpartition_client.go +++ b/sdk/resourcemanager/cosmos/armcosmos/collectionpartition_client.go @@ -32,9 +32,9 @@ type CollectionPartitionClient struct { } // NewCollectionPartitionClient creates a new instance of CollectionPartitionClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewCollectionPartitionClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*CollectionPartitionClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,16 +56,17 @@ func NewCollectionPartitionClient(subscriptionID string, credential azcore.Token } // NewListMetricsPager - Retrieves the metrics determined by the given filter for the given collection, split by partition. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseRid - Cosmos DB database rid. -// collectionRid - Cosmos DB collection rid. -// filter - An OData filter expression that describes a subset of metrics to return. The parameters that can be filtered are -// name.value (name of the metric, can have an or of multiple names), startTime, endTime, -// and timeGrain. The supported operator is eq. -// options - CollectionPartitionClientListMetricsOptions contains the optional parameters for the CollectionPartitionClient.ListMetrics -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - databaseRid - Cosmos DB database rid. +// - collectionRid - Cosmos DB collection rid. +// - filter - An OData filter expression that describes a subset of metrics to return. The parameters that can be filtered are +// name.value (name of the metric, can have an or of multiple names), startTime, endTime, +// and timeGrain. The supported operator is eq. +// - options - CollectionPartitionClientListMetricsOptions contains the optional parameters for the CollectionPartitionClient.NewListMetricsPager +// method. func (client *CollectionPartitionClient) NewListMetricsPager(resourceGroupName string, accountName string, databaseRid string, collectionRid string, filter string, options *CollectionPartitionClientListMetricsOptions) *runtime.Pager[CollectionPartitionClientListMetricsResponse] { return runtime.NewPager(runtime.PagingHandler[CollectionPartitionClientListMetricsResponse]{ More: func(page CollectionPartitionClientListMetricsResponse) bool { @@ -116,7 +117,7 @@ func (client *CollectionPartitionClient) listMetricsCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") reqQP.Set("$filter", filter) req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} @@ -133,13 +134,14 @@ func (client *CollectionPartitionClient) listMetricsHandleResponse(resp *http.Re } // NewListUsagesPager - Retrieves the usages (most recent storage data) for the given collection, split by partition. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseRid - Cosmos DB database rid. -// collectionRid - Cosmos DB collection rid. -// options - CollectionPartitionClientListUsagesOptions contains the optional parameters for the CollectionPartitionClient.ListUsages -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - databaseRid - Cosmos DB database rid. +// - collectionRid - Cosmos DB collection rid. +// - options - CollectionPartitionClientListUsagesOptions contains the optional parameters for the CollectionPartitionClient.NewListUsagesPager +// method. func (client *CollectionPartitionClient) NewListUsagesPager(resourceGroupName string, accountName string, databaseRid string, collectionRid string, options *CollectionPartitionClientListUsagesOptions) *runtime.Pager[CollectionPartitionClientListUsagesResponse] { return runtime.NewPager(runtime.PagingHandler[CollectionPartitionClientListUsagesResponse]{ More: func(page CollectionPartitionClientListUsagesResponse) bool { @@ -190,7 +192,7 @@ func (client *CollectionPartitionClient) listUsagesCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") if options != nil && options.Filter != nil { reqQP.Set("$filter", *options.Filter) } diff --git a/sdk/resourcemanager/cosmos/armcosmos/collectionpartition_client_example_test.go b/sdk/resourcemanager/cosmos/armcosmos/collectionpartition_client_example_test.go index 2616a635a423..131e4fdcee9a 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/collectionpartition_client_example_test.go +++ b/sdk/resourcemanager/cosmos/armcosmos/collectionpartition_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armcosmos_test @@ -17,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cosmos/armcosmos/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBCollectionPartitionGetMetrics.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBCollectionPartitionGetMetrics.json func ExampleCollectionPartitionClient_NewListMetricsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -30,18 +31,59 @@ func ExampleCollectionPartitionClient_NewListMetricsPager() { } pager := client.NewListMetricsPager("rg1", "ddb1", "databaseRid", "collectionRid", "$filter=(name.value eq 'Max RUs Per Second') and timeGrain eq duration'PT1M' and startTime eq '2017-11-19T23:53:55.2780000Z' and endTime eq '2017-11-20T23:58:55.2780000Z", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.PartitionMetricListResult = armcosmos.PartitionMetricListResult{ + // Value: []*armcosmos.PartitionMetric{ + // { + // Name: &armcosmos.MetricName{ + // LocalizedValue: to.Ptr("Max RUs Per Second"), + // Value: to.Ptr("Max RUs Per Second"), + // }, + // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-20T23:58:55.2780000Z"); return t}()), + // MetricValues: []*armcosmos.MetricValue{ + // { + // Maximum: to.Ptr[float64](5), + // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-19T23:53:55.2780000Z"); return t}()), + // }, + // { + // Maximum: to.Ptr[float64](5), + // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-19T23:54:55.2780000Z"); return t}()), + // }, + // { + // Maximum: to.Ptr[float64](5), + // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-19T23:55:55.2780000Z"); return t}()), + // }, + // { + // Maximum: to.Ptr[float64](5), + // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-19T23:56:55.2780000Z"); return t}()), + // }, + // { + // Maximum: to.Ptr[float64](5), + // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-19T23:57:55.2780000Z"); return t}()), + // }, + // { + // Maximum: to.Ptr[float64](5), + // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-19T23:58:55.2780000Z"); return t}()), + // }}, + // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-19T23:53:55.2780000Z"); return t}()), + // TimeGrain: to.Ptr("PT1M"), + // Unit: to.Ptr(armcosmos.UnitTypeCount), + // PartitionID: to.Ptr("00000000-0000-0000-0000-000000000000"), + // PartitionKeyRangeID: to.Ptr("0"), + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBCollectionPartitionGetUsages.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBCollectionPartitionGetUsages.json func ExampleCollectionPartitionClient_NewListUsagesPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -54,13 +96,29 @@ func ExampleCollectionPartitionClient_NewListUsagesPager() { } pager := client.NewListUsagesPager("rg1", "ddb1", "databaseRid", "collectionRid", &armcosmos.CollectionPartitionClientListUsagesOptions{Filter: to.Ptr("$filter=name.value eq 'Partition Storage'")}) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.PartitionUsagesResult = armcosmos.PartitionUsagesResult{ + // Value: []*armcosmos.PartitionUsage{ + // { + // Name: &armcosmos.MetricName{ + // LocalizedValue: to.Ptr("Storage"), + // Value: to.Ptr("Storage"), + // }, + // CurrentValue: to.Ptr[int64](0), + // Limit: to.Ptr[int64](10737418240), + // QuotaPeriod: to.Ptr("P1D"), + // Unit: to.Ptr(armcosmos.UnitTypeBytes), + // PartitionID: to.Ptr("00000000-0000-0000-0000-000000000000"), + // PartitionKeyRangeID: to.Ptr("0"), + // }}, + // } } } diff --git a/sdk/resourcemanager/cosmos/armcosmos/collectionpartitionregion_client.go b/sdk/resourcemanager/cosmos/armcosmos/collectionpartitionregion_client.go index fc4a049f1981..4f263903f52c 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/collectionpartitionregion_client.go +++ b/sdk/resourcemanager/cosmos/armcosmos/collectionpartitionregion_client.go @@ -32,9 +32,9 @@ type CollectionPartitionRegionClient struct { } // NewCollectionPartitionRegionClient creates a new instance of CollectionPartitionRegionClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewCollectionPartitionRegionClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*CollectionPartitionRegionClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,17 +57,18 @@ func NewCollectionPartitionRegionClient(subscriptionID string, credential azcore // NewListMetricsPager - Retrieves the metrics determined by the given filter for the given collection and region, split by // partition. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// region - Cosmos DB region, with spaces between words and each word capitalized. -// databaseRid - Cosmos DB database rid. -// collectionRid - Cosmos DB collection rid. -// filter - An OData filter expression that describes a subset of metrics to return. The parameters that can be filtered are -// name.value (name of the metric, can have an or of multiple names), startTime, endTime, -// and timeGrain. The supported operator is eq. -// options - CollectionPartitionRegionClientListMetricsOptions contains the optional parameters for the CollectionPartitionRegionClient.ListMetrics -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - region - Cosmos DB region, with spaces between words and each word capitalized. +// - databaseRid - Cosmos DB database rid. +// - collectionRid - Cosmos DB collection rid. +// - filter - An OData filter expression that describes a subset of metrics to return. The parameters that can be filtered are +// name.value (name of the metric, can have an or of multiple names), startTime, endTime, +// and timeGrain. The supported operator is eq. +// - options - CollectionPartitionRegionClientListMetricsOptions contains the optional parameters for the CollectionPartitionRegionClient.NewListMetricsPager +// method. func (client *CollectionPartitionRegionClient) NewListMetricsPager(resourceGroupName string, accountName string, region string, databaseRid string, collectionRid string, filter string, options *CollectionPartitionRegionClientListMetricsOptions) *runtime.Pager[CollectionPartitionRegionClientListMetricsResponse] { return runtime.NewPager(runtime.PagingHandler[CollectionPartitionRegionClientListMetricsResponse]{ More: func(page CollectionPartitionRegionClientListMetricsResponse) bool { @@ -122,7 +123,7 @@ func (client *CollectionPartitionRegionClient) listMetricsCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") reqQP.Set("$filter", filter) req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} diff --git a/sdk/resourcemanager/cosmos/armcosmos/collectionpartitionregion_client_example_test.go b/sdk/resourcemanager/cosmos/armcosmos/collectionpartitionregion_client_example_test.go index cc36662d980e..629cd23e6fb4 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/collectionpartitionregion_client_example_test.go +++ b/sdk/resourcemanager/cosmos/armcosmos/collectionpartitionregion_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armcosmos_test @@ -16,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cosmos/armcosmos/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBCollectionPartitionRegionGetMetrics.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBCollectionPartitionRegionGetMetrics.json func ExampleCollectionPartitionRegionClient_NewListMetricsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -29,13 +30,54 @@ func ExampleCollectionPartitionRegionClient_NewListMetricsPager() { } pager := client.NewListMetricsPager("rg1", "ddb1", "North Europe", "databaseRid", "collectionRid", "$filter=(name.value eq 'Max RUs Per Second') and timeGrain eq duration'PT1M' and startTime eq '2017-11-19T23:53:55.2780000Z' and endTime eq '2017-11-20T23:58:55.2780000Z", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.PartitionMetricListResult = armcosmos.PartitionMetricListResult{ + // Value: []*armcosmos.PartitionMetric{ + // { + // Name: &armcosmos.MetricName{ + // LocalizedValue: to.Ptr("Max RUs Per Second"), + // Value: to.Ptr("Max RUs Per Second"), + // }, + // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-20T23:58:55.2780000Z"); return t}()), + // MetricValues: []*armcosmos.MetricValue{ + // { + // Maximum: to.Ptr[float64](5), + // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-19T23:53:55.2780000Z"); return t}()), + // }, + // { + // Maximum: to.Ptr[float64](5), + // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-19T23:54:55.2780000Z"); return t}()), + // }, + // { + // Maximum: to.Ptr[float64](5), + // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-19T23:55:55.2780000Z"); return t}()), + // }, + // { + // Maximum: to.Ptr[float64](5), + // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-19T23:56:55.2780000Z"); return t}()), + // }, + // { + // Maximum: to.Ptr[float64](5), + // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-19T23:57:55.2780000Z"); return t}()), + // }, + // { + // Maximum: to.Ptr[float64](5), + // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-19T23:58:55.2780000Z"); return t}()), + // }}, + // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-19T23:53:55.2780000Z"); return t}()), + // TimeGrain: to.Ptr("PT1M"), + // Unit: to.Ptr(armcosmos.UnitTypeCount), + // PartitionID: to.Ptr("00000000-0000-0000-0000-000000000000"), + // PartitionKeyRangeID: to.Ptr("0"), + // }}, + // } } } diff --git a/sdk/resourcemanager/cosmos/armcosmos/collectionregion_client.go b/sdk/resourcemanager/cosmos/armcosmos/collectionregion_client.go index 54b7126853b0..5c063d6b8db7 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/collectionregion_client.go +++ b/sdk/resourcemanager/cosmos/armcosmos/collectionregion_client.go @@ -32,9 +32,9 @@ type CollectionRegionClient struct { } // NewCollectionRegionClient creates a new instance of CollectionRegionClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewCollectionRegionClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*CollectionRegionClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,17 +57,18 @@ func NewCollectionRegionClient(subscriptionID string, credential azcore.TokenCre // NewListMetricsPager - Retrieves the metrics determined by the given filter for the given database account, collection and // region. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// region - Cosmos DB region, with spaces between words and each word capitalized. -// databaseRid - Cosmos DB database rid. -// collectionRid - Cosmos DB collection rid. -// filter - An OData filter expression that describes a subset of metrics to return. The parameters that can be filtered are -// name.value (name of the metric, can have an or of multiple names), startTime, endTime, -// and timeGrain. The supported operator is eq. -// options - CollectionRegionClientListMetricsOptions contains the optional parameters for the CollectionRegionClient.ListMetrics -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - region - Cosmos DB region, with spaces between words and each word capitalized. +// - databaseRid - Cosmos DB database rid. +// - collectionRid - Cosmos DB collection rid. +// - filter - An OData filter expression that describes a subset of metrics to return. The parameters that can be filtered are +// name.value (name of the metric, can have an or of multiple names), startTime, endTime, +// and timeGrain. The supported operator is eq. +// - options - CollectionRegionClientListMetricsOptions contains the optional parameters for the CollectionRegionClient.NewListMetricsPager +// method. func (client *CollectionRegionClient) NewListMetricsPager(resourceGroupName string, accountName string, region string, databaseRid string, collectionRid string, filter string, options *CollectionRegionClientListMetricsOptions) *runtime.Pager[CollectionRegionClientListMetricsResponse] { return runtime.NewPager(runtime.PagingHandler[CollectionRegionClientListMetricsResponse]{ More: func(page CollectionRegionClientListMetricsResponse) bool { @@ -122,7 +123,7 @@ func (client *CollectionRegionClient) listMetricsCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") reqQP.Set("$filter", filter) req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} diff --git a/sdk/resourcemanager/cosmos/armcosmos/collectionregion_client_example_test.go b/sdk/resourcemanager/cosmos/armcosmos/collectionregion_client_example_test.go index 387bb2a84d2c..b743ef073ebd 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/collectionregion_client_example_test.go +++ b/sdk/resourcemanager/cosmos/armcosmos/collectionregion_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armcosmos_test @@ -16,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cosmos/armcosmos/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBRegionCollectionGetMetrics.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBRegionCollectionGetMetrics.json func ExampleCollectionRegionClient_NewListMetricsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -29,13 +30,52 @@ func ExampleCollectionRegionClient_NewListMetricsPager() { } pager := client.NewListMetricsPager("rg1", "ddb1", "North Europe", "databaseRid", "collectionRid", "$filter=(name.value eq 'Total Requests') and timeGrain eq duration'PT5M' and startTime eq '2017-11-19T23:53:55.2780000Z' and endTime eq '2017-11-20T00:13:55.2780000Z", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.MetricListResult = armcosmos.MetricListResult{ + // Value: []*armcosmos.Metric{ + // { + // Name: &armcosmos.MetricName{ + // LocalizedValue: to.Ptr("Total Requests"), + // Value: to.Ptr("Total Requests"), + // }, + // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-20T00:13:55.2780000Z"); return t}()), + // MetricValues: []*armcosmos.MetricValue{ + // { + // Count: to.Ptr[int32](0), + // Average: to.Ptr[float64](0), + // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-19T23:53:55.2780000Z"); return t}()), + // Total: to.Ptr[float64](0), + // }, + // { + // Count: to.Ptr[int32](0), + // Average: to.Ptr[float64](0), + // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-19T23:58:55.2780000Z"); return t}()), + // Total: to.Ptr[float64](0), + // }, + // { + // Count: to.Ptr[int32](0), + // Average: to.Ptr[float64](0), + // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-20T00:03:55.2780000Z"); return t}()), + // Total: to.Ptr[float64](0), + // }, + // { + // Count: to.Ptr[int32](0), + // Average: to.Ptr[float64](0), + // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-20T00:08:55.2780000Z"); return t}()), + // Total: to.Ptr[float64](0), + // }}, + // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-19T23:53:55.2780000Z"); return t}()), + // TimeGrain: to.Ptr("PT5M"), + // Unit: to.Ptr(armcosmos.UnitTypeCount), + // }}, + // } } } diff --git a/sdk/resourcemanager/cosmos/armcosmos/constants.go b/sdk/resourcemanager/cosmos/armcosmos/constants.go index 78d61a470f74..0eeea51f3631 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/constants.go +++ b/sdk/resourcemanager/cosmos/armcosmos/constants.go @@ -11,7 +11,7 @@ package armcosmos const ( moduleName = "armcosmos" - moduleVersion = "v2.2.0-beta.1" + moduleVersion = "v2.2.0" ) // APIType - Enum to indicate the API type of the restorable database account. @@ -56,12 +56,11 @@ func PossibleAnalyticalStorageSchemaTypeValues() []AnalyticalStorageSchemaType { // AuthenticationMethod - Which authentication method Cassandra should use to authenticate clients. 'None' turns off authentication, // so should not be used except in emergencies. 'Cassandra' is the default password based -// authentication. The default is 'Cassandra'. 'Ldap' is in preview. +// authentication. The default is 'Cassandra'. type AuthenticationMethod string const ( AuthenticationMethodCassandra AuthenticationMethod = "Cassandra" - AuthenticationMethodLdap AuthenticationMethod = "Ldap" AuthenticationMethodNone AuthenticationMethod = "None" ) @@ -69,7 +68,6 @@ const ( func PossibleAuthenticationMethodValues() []AuthenticationMethod { return []AuthenticationMethod{ AuthenticationMethodCassandra, - AuthenticationMethodLdap, AuthenticationMethodNone, } } @@ -198,22 +196,6 @@ func PossibleConnectorOfferValues() []ConnectorOffer { } } -// ContinuousTier - Enum to indicate type of Continuous backup tier. -type ContinuousTier string - -const ( - ContinuousTierContinuous30Days ContinuousTier = "Continuous30Days" - ContinuousTierContinuous7Days ContinuousTier = "Continuous7Days" -) - -// PossibleContinuousTierValues returns the possible values for the ContinuousTier const type. -func PossibleContinuousTierValues() []ContinuousTier { - return []ContinuousTier{ - ContinuousTierContinuous30Days, - ContinuousTierContinuous7Days, - } -} - // CreateMode - Enum to indicate the mode of account creation. type CreateMode string @@ -250,23 +232,6 @@ func PossibleCreatedByTypeValues() []CreatedByType { } } -type DataTransferComponent string - -const ( - DataTransferComponentAzureBlobStorage DataTransferComponent = "AzureBlobStorage" - DataTransferComponentCosmosDBCassandra DataTransferComponent = "CosmosDBCassandra" - DataTransferComponentCosmosDBSQL DataTransferComponent = "CosmosDBSql" -) - -// PossibleDataTransferComponentValues returns the possible values for the DataTransferComponent const type. -func PossibleDataTransferComponentValues() []DataTransferComponent { - return []DataTransferComponent{ - DataTransferComponentAzureBlobStorage, - DataTransferComponentCosmosDBCassandra, - DataTransferComponentCosmosDBSQL, - } -} - // DataType - The datatype for which the indexing behavior is applied to. type DataType string @@ -331,24 +296,6 @@ func PossibleDefaultConsistencyLevelValues() []DefaultConsistencyLevel { } } -// EnableFullTextQuery - Describe the level of detail with which queries are to be logged. -type EnableFullTextQuery string - -const ( - EnableFullTextQueryNone EnableFullTextQuery = "None" - EnableFullTextQueryTrue EnableFullTextQuery = "True" - EnableFullTextQueryFalse EnableFullTextQuery = "False" -) - -// PossibleEnableFullTextQueryValues returns the possible values for the EnableFullTextQuery const type. -func PossibleEnableFullTextQueryValues() []EnableFullTextQuery { - return []EnableFullTextQuery{ - EnableFullTextQueryNone, - EnableFullTextQueryTrue, - EnableFullTextQueryFalse, - } -} - // IndexKind - Indicates the type of index. type IndexKind string @@ -445,6 +392,25 @@ func PossibleManagedCassandraResourceIdentityTypeValues() []ManagedCassandraReso } } +// MinimalTLSVersion - Indicates the minimum allowed Tls version. The default is Tls 1.0, except for Cassandra and Mongo API's, +// which only work with Tls 1.2. +type MinimalTLSVersion string + +const ( + MinimalTLSVersionTLS MinimalTLSVersion = "Tls" + MinimalTLSVersionTls11 MinimalTLSVersion = "Tls11" + MinimalTLSVersionTls12 MinimalTLSVersion = "Tls12" +) + +// PossibleMinimalTLSVersionValues returns the possible values for the MinimalTLSVersion const type. +func PossibleMinimalTLSVersionValues() []MinimalTLSVersion { + return []MinimalTLSVersion{ + MinimalTLSVersionTLS, + MinimalTLSVersionTls11, + MinimalTLSVersionTls12, + } +} + // MongoRoleDefinitionType - Indicates whether the Role Definition was built-in or user created. type MongoRoleDefinitionType string @@ -534,7 +500,6 @@ type OperationType string const ( OperationTypeCreate OperationType = "Create" OperationTypeDelete OperationType = "Delete" - OperationTypeRecreate OperationType = "Recreate" OperationTypeReplace OperationType = "Replace" OperationTypeSystemOperation OperationType = "SystemOperation" ) @@ -544,7 +509,6 @@ func PossibleOperationTypeValues() []OperationType { return []OperationType{ OperationTypeCreate, OperationTypeDelete, - OperationTypeRecreate, OperationTypeReplace, OperationTypeSystemOperation, } @@ -763,24 +727,6 @@ func PossibleSpatialTypeValues() []SpatialType { } } -// ThroughputPolicyType - ThroughputPolicy to apply for throughput redistribution -type ThroughputPolicyType string - -const ( - ThroughputPolicyTypeCustom ThroughputPolicyType = "custom" - ThroughputPolicyTypeEqual ThroughputPolicyType = "equal" - ThroughputPolicyTypeNone ThroughputPolicyType = "none" -) - -// PossibleThroughputPolicyTypeValues returns the possible values for the ThroughputPolicyType const type. -func PossibleThroughputPolicyTypeValues() []ThroughputPolicyType { - return []ThroughputPolicyType{ - ThroughputPolicyTypeCustom, - ThroughputPolicyTypeEqual, - ThroughputPolicyTypeNone, - } -} - // TriggerOperation - The operation the trigger is associated with type TriggerOperation string diff --git a/sdk/resourcemanager/cosmos/armcosmos/database_client.go b/sdk/resourcemanager/cosmos/armcosmos/database_client.go index ac7963658378..a35831810fc0 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/database_client.go +++ b/sdk/resourcemanager/cosmos/armcosmos/database_client.go @@ -32,9 +32,9 @@ type DatabaseClient struct { } // NewDatabaseClient creates a new instance of DatabaseClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewDatabaseClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DatabaseClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,12 +56,13 @@ func NewDatabaseClient(subscriptionID string, credential azcore.TokenCredential, } // NewListMetricDefinitionsPager - Retrieves metric definitions for the given database. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseRid - Cosmos DB database rid. -// options - DatabaseClientListMetricDefinitionsOptions contains the optional parameters for the DatabaseClient.ListMetricDefinitions -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - databaseRid - Cosmos DB database rid. +// - options - DatabaseClientListMetricDefinitionsOptions contains the optional parameters for the DatabaseClient.NewListMetricDefinitionsPager +// method. func (client *DatabaseClient) NewListMetricDefinitionsPager(resourceGroupName string, accountName string, databaseRid string, options *DatabaseClientListMetricDefinitionsOptions) *runtime.Pager[DatabaseClientListMetricDefinitionsResponse] { return runtime.NewPager(runtime.PagingHandler[DatabaseClientListMetricDefinitionsResponse]{ More: func(page DatabaseClientListMetricDefinitionsResponse) bool { @@ -108,7 +109,7 @@ func (client *DatabaseClient) listMetricDefinitionsCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -124,14 +125,16 @@ func (client *DatabaseClient) listMetricDefinitionsHandleResponse(resp *http.Res } // NewListMetricsPager - Retrieves the metrics determined by the given filter for the given database account and database. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseRid - Cosmos DB database rid. -// filter - An OData filter expression that describes a subset of metrics to return. The parameters that can be filtered are -// name.value (name of the metric, can have an or of multiple names), startTime, endTime, -// and timeGrain. The supported operator is eq. -// options - DatabaseClientListMetricsOptions contains the optional parameters for the DatabaseClient.ListMetrics method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - databaseRid - Cosmos DB database rid. +// - filter - An OData filter expression that describes a subset of metrics to return. The parameters that can be filtered are +// name.value (name of the metric, can have an or of multiple names), startTime, endTime, +// and timeGrain. The supported operator is eq. +// - options - DatabaseClientListMetricsOptions contains the optional parameters for the DatabaseClient.NewListMetricsPager +// method. func (client *DatabaseClient) NewListMetricsPager(resourceGroupName string, accountName string, databaseRid string, filter string, options *DatabaseClientListMetricsOptions) *runtime.Pager[DatabaseClientListMetricsResponse] { return runtime.NewPager(runtime.PagingHandler[DatabaseClientListMetricsResponse]{ More: func(page DatabaseClientListMetricsResponse) bool { @@ -178,7 +181,7 @@ func (client *DatabaseClient) listMetricsCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") reqQP.Set("$filter", filter) req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} @@ -195,11 +198,12 @@ func (client *DatabaseClient) listMetricsHandleResponse(resp *http.Response) (Da } // NewListUsagesPager - Retrieves the usages (most recent data) for the given database. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseRid - Cosmos DB database rid. -// options - DatabaseClientListUsagesOptions contains the optional parameters for the DatabaseClient.ListUsages method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - databaseRid - Cosmos DB database rid. +// - options - DatabaseClientListUsagesOptions contains the optional parameters for the DatabaseClient.NewListUsagesPager method. func (client *DatabaseClient) NewListUsagesPager(resourceGroupName string, accountName string, databaseRid string, options *DatabaseClientListUsagesOptions) *runtime.Pager[DatabaseClientListUsagesResponse] { return runtime.NewPager(runtime.PagingHandler[DatabaseClientListUsagesResponse]{ More: func(page DatabaseClientListUsagesResponse) bool { @@ -246,7 +250,7 @@ func (client *DatabaseClient) listUsagesCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") if options != nil && options.Filter != nil { reqQP.Set("$filter", *options.Filter) } diff --git a/sdk/resourcemanager/cosmos/armcosmos/database_client_example_test.go b/sdk/resourcemanager/cosmos/armcosmos/database_client_example_test.go index a2554671c02e..bc582972ed0a 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/database_client_example_test.go +++ b/sdk/resourcemanager/cosmos/armcosmos/database_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armcosmos_test @@ -17,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cosmos/armcosmos/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBDatabaseGetMetrics.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBDatabaseGetMetrics.json func ExampleDatabaseClient_NewListMetricsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -30,18 +31,57 @@ func ExampleDatabaseClient_NewListMetricsPager() { } pager := client.NewListMetricsPager("rg1", "ddb1", "rid", "$filter=(name.value eq 'Total Requests') and timeGrain eq duration'PT5M' and startTime eq '2017-11-19T23:53:55.2780000Z' and endTime eq '2017-11-20T00:13:55.2780000Z", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.MetricListResult = armcosmos.MetricListResult{ + // Value: []*armcosmos.Metric{ + // { + // Name: &armcosmos.MetricName{ + // LocalizedValue: to.Ptr("Total Requests"), + // Value: to.Ptr("Total Requests"), + // }, + // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-20T00:13:55.2780000Z"); return t}()), + // MetricValues: []*armcosmos.MetricValue{ + // { + // Count: to.Ptr[int32](0), + // Average: to.Ptr[float64](0), + // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-19T23:53:55.2780000Z"); return t}()), + // Total: to.Ptr[float64](0), + // }, + // { + // Count: to.Ptr[int32](0), + // Average: to.Ptr[float64](0), + // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-19T23:58:55.2780000Z"); return t}()), + // Total: to.Ptr[float64](0), + // }, + // { + // Count: to.Ptr[int32](0), + // Average: to.Ptr[float64](0), + // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-20T00:03:55.2780000Z"); return t}()), + // Total: to.Ptr[float64](0), + // }, + // { + // Count: to.Ptr[int32](0), + // Average: to.Ptr[float64](0), + // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-20T00:08:55.2780000Z"); return t}()), + // Total: to.Ptr[float64](0), + // }}, + // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-19T23:53:55.2780000Z"); return t}()), + // TimeGrain: to.Ptr("PT5M"), + // Unit: to.Ptr(armcosmos.UnitTypeCount), + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBDatabaseGetUsages.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBDatabaseGetUsages.json func ExampleDatabaseClient_NewListUsagesPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -54,18 +94,32 @@ func ExampleDatabaseClient_NewListUsagesPager() { } pager := client.NewListUsagesPager("rg1", "ddb1", "databaseRid", &armcosmos.DatabaseClientListUsagesOptions{Filter: to.Ptr("$filter=name.value eq 'Storage'")}) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.UsagesResult = armcosmos.UsagesResult{ + // Value: []*armcosmos.Usage{ + // { + // Name: &armcosmos.MetricName{ + // LocalizedValue: to.Ptr("Storage"), + // Value: to.Ptr("Storage"), + // }, + // CurrentValue: to.Ptr[int64](0), + // Limit: to.Ptr[int64](10737418240), + // QuotaPeriod: to.Ptr("P1D"), + // Unit: to.Ptr(armcosmos.UnitTypeBytes), + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBDatabaseGetMetricDefinitions.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBDatabaseGetMetricDefinitions.json func ExampleDatabaseClient_NewListMetricDefinitionsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -78,13 +132,39 @@ func ExampleDatabaseClient_NewListMetricDefinitionsPager() { } pager := client.NewListMetricDefinitionsPager("rg1", "ddb1", "databaseRid", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.MetricDefinitionsListResult = armcosmos.MetricDefinitionsListResult{ + // Value: []*armcosmos.MetricDefinition{ + // { + // Name: &armcosmos.MetricName{ + // LocalizedValue: to.Ptr("Total Requests"), + // Value: to.Ptr("Total Requests"), + // }, + // MetricAvailabilities: []*armcosmos.MetricAvailability{ + // { + // Retention: to.Ptr("P2D"), + // TimeGrain: to.Ptr("PT5M"), + // }, + // { + // Retention: to.Ptr("P14D"), + // TimeGrain: to.Ptr("PT1H"), + // }, + // { + // Retention: to.Ptr("P60D"), + // TimeGrain: to.Ptr("P1D"), + // }}, + // PrimaryAggregationType: to.Ptr(armcosmos.PrimaryAggregationTypeTotal), + // ResourceURI: to.Ptr("/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1"), + // Unit: to.Ptr(armcosmos.UnitTypeCount), + // }}, + // } } } diff --git a/sdk/resourcemanager/cosmos/armcosmos/databaseaccountregion_client.go b/sdk/resourcemanager/cosmos/armcosmos/databaseaccountregion_client.go index 5656aa24a959..2a909605f9a5 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/databaseaccountregion_client.go +++ b/sdk/resourcemanager/cosmos/armcosmos/databaseaccountregion_client.go @@ -32,9 +32,9 @@ type DatabaseAccountRegionClient struct { } // NewDatabaseAccountRegionClient creates a new instance of DatabaseAccountRegionClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewDatabaseAccountRegionClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DatabaseAccountRegionClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,15 +56,16 @@ func NewDatabaseAccountRegionClient(subscriptionID string, credential azcore.Tok } // NewListMetricsPager - Retrieves the metrics determined by the given filter for the given database account and region. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// region - Cosmos DB region, with spaces between words and each word capitalized. -// filter - An OData filter expression that describes a subset of metrics to return. The parameters that can be filtered are -// name.value (name of the metric, can have an or of multiple names), startTime, endTime, -// and timeGrain. The supported operator is eq. -// options - DatabaseAccountRegionClientListMetricsOptions contains the optional parameters for the DatabaseAccountRegionClient.ListMetrics -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - region - Cosmos DB region, with spaces between words and each word capitalized. +// - filter - An OData filter expression that describes a subset of metrics to return. The parameters that can be filtered are +// name.value (name of the metric, can have an or of multiple names), startTime, endTime, +// and timeGrain. The supported operator is eq. +// - options - DatabaseAccountRegionClientListMetricsOptions contains the optional parameters for the DatabaseAccountRegionClient.NewListMetricsPager +// method. func (client *DatabaseAccountRegionClient) NewListMetricsPager(resourceGroupName string, accountName string, region string, filter string, options *DatabaseAccountRegionClientListMetricsOptions) *runtime.Pager[DatabaseAccountRegionClientListMetricsResponse] { return runtime.NewPager(runtime.PagingHandler[DatabaseAccountRegionClientListMetricsResponse]{ More: func(page DatabaseAccountRegionClientListMetricsResponse) bool { @@ -111,7 +112,7 @@ func (client *DatabaseAccountRegionClient) listMetricsCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") reqQP.Set("$filter", filter) req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} diff --git a/sdk/resourcemanager/cosmos/armcosmos/databaseaccountregion_client_example_test.go b/sdk/resourcemanager/cosmos/armcosmos/databaseaccountregion_client_example_test.go index b77bb635bd31..9f4b0b87cfa0 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/databaseaccountregion_client_example_test.go +++ b/sdk/resourcemanager/cosmos/armcosmos/databaseaccountregion_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armcosmos_test @@ -16,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cosmos/armcosmos/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBDatabaseAccountRegionGetMetrics.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBDatabaseAccountRegionGetMetrics.json func ExampleDatabaseAccountRegionClient_NewListMetricsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -29,13 +30,52 @@ func ExampleDatabaseAccountRegionClient_NewListMetricsPager() { } pager := client.NewListMetricsPager("rg1", "ddb1", "North Europe", "$filter=(name.value eq 'Total Requests') and timeGrain eq duration'PT5M' and startTime eq '2017-11-19T23:53:55.2780000Z' and endTime eq '2017-11-20T00:13:55.2780000Z", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.MetricListResult = armcosmos.MetricListResult{ + // Value: []*armcosmos.Metric{ + // { + // Name: &armcosmos.MetricName{ + // LocalizedValue: to.Ptr("Total Requests"), + // Value: to.Ptr("Total Requests"), + // }, + // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-20T00:13:55.2780000Z"); return t}()), + // MetricValues: []*armcosmos.MetricValue{ + // { + // Count: to.Ptr[int32](0), + // Average: to.Ptr[float64](0), + // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-19T23:53:55.2780000Z"); return t}()), + // Total: to.Ptr[float64](0), + // }, + // { + // Count: to.Ptr[int32](0), + // Average: to.Ptr[float64](0), + // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-19T23:58:55.2780000Z"); return t}()), + // Total: to.Ptr[float64](0), + // }, + // { + // Count: to.Ptr[int32](0), + // Average: to.Ptr[float64](0), + // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-20T00:03:55.2780000Z"); return t}()), + // Total: to.Ptr[float64](0), + // }, + // { + // Count: to.Ptr[int32](0), + // Average: to.Ptr[float64](0), + // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-20T00:08:55.2780000Z"); return t}()), + // Total: to.Ptr[float64](0), + // }}, + // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-19T23:53:55.2780000Z"); return t}()), + // TimeGrain: to.Ptr("PT5M"), + // Unit: to.Ptr(armcosmos.UnitTypeCount), + // }}, + // } } } diff --git a/sdk/resourcemanager/cosmos/armcosmos/databaseaccounts_client.go b/sdk/resourcemanager/cosmos/armcosmos/databaseaccounts_client.go index 435c86685365..241e9f207b0e 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/databaseaccounts_client.go +++ b/sdk/resourcemanager/cosmos/armcosmos/databaseaccounts_client.go @@ -32,9 +32,9 @@ type DatabaseAccountsClient struct { } // NewDatabaseAccountsClient creates a new instance of DatabaseAccountsClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewDatabaseAccountsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DatabaseAccountsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,10 +57,11 @@ func NewDatabaseAccountsClient(subscriptionID string, credential azcore.TokenCre // CheckNameExists - Checks that the Azure Cosmos DB account name already exists. A valid account name may contain only lowercase // letters, numbers, and the '-' character, and must be between 3 and 50 characters. -// Generated from API version 2022-08-15-preview -// accountName - Cosmos DB database account name. -// options - DatabaseAccountsClientCheckNameExistsOptions contains the optional parameters for the DatabaseAccountsClient.CheckNameExists -// method. +// +// Generated from API version 2022-11-15 +// - accountName - Cosmos DB database account name. +// - options - DatabaseAccountsClientCheckNameExistsOptions contains the optional parameters for the DatabaseAccountsClient.CheckNameExists +// method. func (client *DatabaseAccountsClient) CheckNameExists(ctx context.Context, accountName string, options *DatabaseAccountsClientCheckNameExistsOptions) (DatabaseAccountsClientCheckNameExistsResponse, error) { req, err := client.checkNameExistsCreateRequest(ctx, accountName, options) if err != nil { @@ -88,7 +89,7 @@ func (client *DatabaseAccountsClient) checkNameExistsCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() return req, nil } @@ -96,12 +97,13 @@ func (client *DatabaseAccountsClient) checkNameExistsCreateRequest(ctx context.C // BeginCreateOrUpdate - Creates or updates an Azure Cosmos DB database account. The "Update" method is preferred when performing // updates on an account. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// createUpdateParameters - The parameters to provide for the current database account. -// options - DatabaseAccountsClientBeginCreateOrUpdateOptions contains the optional parameters for the DatabaseAccountsClient.BeginCreateOrUpdate -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - createUpdateParameters - The parameters to provide for the current database account. +// - options - DatabaseAccountsClientBeginCreateOrUpdateOptions contains the optional parameters for the DatabaseAccountsClient.BeginCreateOrUpdate +// method. func (client *DatabaseAccountsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, accountName string, createUpdateParameters DatabaseAccountCreateUpdateParameters, options *DatabaseAccountsClientBeginCreateOrUpdateOptions) (*runtime.Poller[DatabaseAccountsClientCreateOrUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createOrUpdate(ctx, resourceGroupName, accountName, createUpdateParameters, options) @@ -117,7 +119,8 @@ func (client *DatabaseAccountsClient) BeginCreateOrUpdate(ctx context.Context, r // CreateOrUpdate - Creates or updates an Azure Cosmos DB database account. The "Update" method is preferred when performing // updates on an account. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *DatabaseAccountsClient) createOrUpdate(ctx context.Context, resourceGroupName string, accountName string, createUpdateParameters DatabaseAccountCreateUpdateParameters, options *DatabaseAccountsClientBeginCreateOrUpdateOptions) (*http.Response, error) { req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, accountName, createUpdateParameters, options) if err != nil { @@ -153,7 +156,7 @@ func (client *DatabaseAccountsClient) createOrUpdateCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, createUpdateParameters) @@ -161,11 +164,12 @@ func (client *DatabaseAccountsClient) createOrUpdateCreateRequest(ctx context.Co // BeginDelete - Deletes an existing Azure Cosmos DB database account. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// options - DatabaseAccountsClientBeginDeleteOptions contains the optional parameters for the DatabaseAccountsClient.BeginDelete -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - options - DatabaseAccountsClientBeginDeleteOptions contains the optional parameters for the DatabaseAccountsClient.BeginDelete +// method. func (client *DatabaseAccountsClient) BeginDelete(ctx context.Context, resourceGroupName string, accountName string, options *DatabaseAccountsClientBeginDeleteOptions) (*runtime.Poller[DatabaseAccountsClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, accountName, options) @@ -180,7 +184,8 @@ func (client *DatabaseAccountsClient) BeginDelete(ctx context.Context, resourceG // Delete - Deletes an existing Azure Cosmos DB database account. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *DatabaseAccountsClient) deleteOperation(ctx context.Context, resourceGroupName string, accountName string, options *DatabaseAccountsClientBeginDeleteOptions) (*http.Response, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, accountName, options) if err != nil { @@ -216,7 +221,7 @@ func (client *DatabaseAccountsClient) deleteCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() return req, nil } @@ -225,12 +230,13 @@ func (client *DatabaseAccountsClient) deleteCreateRequest(ctx context.Context, r // of 0 indicates a write region. The maximum value for a failover priority = (total number of regions - 1). // Failover priority values must be unique for each of the regions in which the database account exists. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// failoverParameters - The new failover policies for the database account. -// options - DatabaseAccountsClientBeginFailoverPriorityChangeOptions contains the optional parameters for the DatabaseAccountsClient.BeginFailoverPriorityChange -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - failoverParameters - The new failover policies for the database account. +// - options - DatabaseAccountsClientBeginFailoverPriorityChangeOptions contains the optional parameters for the DatabaseAccountsClient.BeginFailoverPriorityChange +// method. func (client *DatabaseAccountsClient) BeginFailoverPriorityChange(ctx context.Context, resourceGroupName string, accountName string, failoverParameters FailoverPolicies, options *DatabaseAccountsClientBeginFailoverPriorityChangeOptions) (*runtime.Poller[DatabaseAccountsClientFailoverPriorityChangeResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.failoverPriorityChange(ctx, resourceGroupName, accountName, failoverParameters, options) @@ -247,7 +253,8 @@ func (client *DatabaseAccountsClient) BeginFailoverPriorityChange(ctx context.Co // 0 indicates a write region. The maximum value for a failover priority = (total number of regions - 1). // Failover priority values must be unique for each of the regions in which the database account exists. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *DatabaseAccountsClient) failoverPriorityChange(ctx context.Context, resourceGroupName string, accountName string, failoverParameters FailoverPolicies, options *DatabaseAccountsClientBeginFailoverPriorityChangeOptions) (*http.Response, error) { req, err := client.failoverPriorityChangeCreateRequest(ctx, resourceGroupName, accountName, failoverParameters, options) if err != nil { @@ -283,17 +290,18 @@ func (client *DatabaseAccountsClient) failoverPriorityChangeCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() return req, runtime.MarshalAsJSON(req, failoverParameters) } // Get - Retrieves the properties of an existing Azure Cosmos DB database account. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// options - DatabaseAccountsClientGetOptions contains the optional parameters for the DatabaseAccountsClient.Get method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - options - DatabaseAccountsClientGetOptions contains the optional parameters for the DatabaseAccountsClient.Get method. func (client *DatabaseAccountsClient) Get(ctx context.Context, resourceGroupName string, accountName string, options *DatabaseAccountsClientGetOptions) (DatabaseAccountsClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, accountName, options) if err != nil { @@ -329,7 +337,7 @@ func (client *DatabaseAccountsClient) getCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -346,11 +354,12 @@ func (client *DatabaseAccountsClient) getHandleResponse(resp *http.Response) (Da // GetReadOnlyKeys - Lists the read-only access keys for the specified Azure Cosmos DB database account. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// options - DatabaseAccountsClientGetReadOnlyKeysOptions contains the optional parameters for the DatabaseAccountsClient.GetReadOnlyKeys -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - options - DatabaseAccountsClientGetReadOnlyKeysOptions contains the optional parameters for the DatabaseAccountsClient.GetReadOnlyKeys +// method. func (client *DatabaseAccountsClient) GetReadOnlyKeys(ctx context.Context, resourceGroupName string, accountName string, options *DatabaseAccountsClientGetReadOnlyKeysOptions) (DatabaseAccountsClientGetReadOnlyKeysResponse, error) { req, err := client.getReadOnlyKeysCreateRequest(ctx, resourceGroupName, accountName, options) if err != nil { @@ -386,7 +395,7 @@ func (client *DatabaseAccountsClient) getReadOnlyKeysCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -402,8 +411,10 @@ func (client *DatabaseAccountsClient) getReadOnlyKeysHandleResponse(resp *http.R } // NewListPager - Lists all the Azure Cosmos DB database accounts available under the subscription. -// Generated from API version 2022-08-15-preview -// options - DatabaseAccountsClientListOptions contains the optional parameters for the DatabaseAccountsClient.List method. +// +// Generated from API version 2022-11-15 +// - options - DatabaseAccountsClientListOptions contains the optional parameters for the DatabaseAccountsClient.NewListPager +// method. func (client *DatabaseAccountsClient) NewListPager(options *DatabaseAccountsClientListOptions) *runtime.Pager[DatabaseAccountsClientListResponse] { return runtime.NewPager(runtime.PagingHandler[DatabaseAccountsClientListResponse]{ More: func(page DatabaseAccountsClientListResponse) bool { @@ -438,7 +449,7 @@ func (client *DatabaseAccountsClient) listCreateRequest(ctx context.Context, opt return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -454,10 +465,11 @@ func (client *DatabaseAccountsClient) listHandleResponse(resp *http.Response) (D } // NewListByResourceGroupPager - Lists all the Azure Cosmos DB database accounts available under the given resource group. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// options - DatabaseAccountsClientListByResourceGroupOptions contains the optional parameters for the DatabaseAccountsClient.ListByResourceGroup -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - options - DatabaseAccountsClientListByResourceGroupOptions contains the optional parameters for the DatabaseAccountsClient.NewListByResourceGroupPager +// method. func (client *DatabaseAccountsClient) NewListByResourceGroupPager(resourceGroupName string, options *DatabaseAccountsClientListByResourceGroupOptions) *runtime.Pager[DatabaseAccountsClientListByResourceGroupResponse] { return runtime.NewPager(runtime.PagingHandler[DatabaseAccountsClientListByResourceGroupResponse]{ More: func(page DatabaseAccountsClientListByResourceGroupResponse) bool { @@ -496,7 +508,7 @@ func (client *DatabaseAccountsClient) listByResourceGroupCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -513,11 +525,12 @@ func (client *DatabaseAccountsClient) listByResourceGroupHandleResponse(resp *ht // ListConnectionStrings - Lists the connection strings for the specified Azure Cosmos DB database account. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// options - DatabaseAccountsClientListConnectionStringsOptions contains the optional parameters for the DatabaseAccountsClient.ListConnectionStrings -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - options - DatabaseAccountsClientListConnectionStringsOptions contains the optional parameters for the DatabaseAccountsClient.ListConnectionStrings +// method. func (client *DatabaseAccountsClient) ListConnectionStrings(ctx context.Context, resourceGroupName string, accountName string, options *DatabaseAccountsClientListConnectionStringsOptions) (DatabaseAccountsClientListConnectionStringsResponse, error) { req, err := client.listConnectionStringsCreateRequest(ctx, resourceGroupName, accountName, options) if err != nil { @@ -553,7 +566,7 @@ func (client *DatabaseAccountsClient) listConnectionStringsCreateRequest(ctx con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -570,11 +583,12 @@ func (client *DatabaseAccountsClient) listConnectionStringsHandleResponse(resp * // ListKeys - Lists the access keys for the specified Azure Cosmos DB database account. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// options - DatabaseAccountsClientListKeysOptions contains the optional parameters for the DatabaseAccountsClient.ListKeys -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - options - DatabaseAccountsClientListKeysOptions contains the optional parameters for the DatabaseAccountsClient.ListKeys +// method. func (client *DatabaseAccountsClient) ListKeys(ctx context.Context, resourceGroupName string, accountName string, options *DatabaseAccountsClientListKeysOptions) (DatabaseAccountsClientListKeysResponse, error) { req, err := client.listKeysCreateRequest(ctx, resourceGroupName, accountName, options) if err != nil { @@ -610,7 +624,7 @@ func (client *DatabaseAccountsClient) listKeysCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -626,11 +640,12 @@ func (client *DatabaseAccountsClient) listKeysHandleResponse(resp *http.Response } // NewListMetricDefinitionsPager - Retrieves metric definitions for the given database account. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// options - DatabaseAccountsClientListMetricDefinitionsOptions contains the optional parameters for the DatabaseAccountsClient.ListMetricDefinitions -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - options - DatabaseAccountsClientListMetricDefinitionsOptions contains the optional parameters for the DatabaseAccountsClient.NewListMetricDefinitionsPager +// method. func (client *DatabaseAccountsClient) NewListMetricDefinitionsPager(resourceGroupName string, accountName string, options *DatabaseAccountsClientListMetricDefinitionsOptions) *runtime.Pager[DatabaseAccountsClientListMetricDefinitionsResponse] { return runtime.NewPager(runtime.PagingHandler[DatabaseAccountsClientListMetricDefinitionsResponse]{ More: func(page DatabaseAccountsClientListMetricDefinitionsResponse) bool { @@ -673,7 +688,7 @@ func (client *DatabaseAccountsClient) listMetricDefinitionsCreateRequest(ctx con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -689,14 +704,15 @@ func (client *DatabaseAccountsClient) listMetricDefinitionsHandleResponse(resp * } // NewListMetricsPager - Retrieves the metrics determined by the given filter for the given database account. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// filter - An OData filter expression that describes a subset of metrics to return. The parameters that can be filtered are -// name.value (name of the metric, can have an or of multiple names), startTime, endTime, -// and timeGrain. The supported operator is eq. -// options - DatabaseAccountsClientListMetricsOptions contains the optional parameters for the DatabaseAccountsClient.ListMetrics -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - filter - An OData filter expression that describes a subset of metrics to return. The parameters that can be filtered are +// name.value (name of the metric, can have an or of multiple names), startTime, endTime, +// and timeGrain. The supported operator is eq. +// - options - DatabaseAccountsClientListMetricsOptions contains the optional parameters for the DatabaseAccountsClient.NewListMetricsPager +// method. func (client *DatabaseAccountsClient) NewListMetricsPager(resourceGroupName string, accountName string, filter string, options *DatabaseAccountsClientListMetricsOptions) *runtime.Pager[DatabaseAccountsClientListMetricsResponse] { return runtime.NewPager(runtime.PagingHandler[DatabaseAccountsClientListMetricsResponse]{ More: func(page DatabaseAccountsClientListMetricsResponse) bool { @@ -739,7 +755,7 @@ func (client *DatabaseAccountsClient) listMetricsCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") reqQP.Set("$filter", filter) req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} @@ -757,11 +773,12 @@ func (client *DatabaseAccountsClient) listMetricsHandleResponse(resp *http.Respo // ListReadOnlyKeys - Lists the read-only access keys for the specified Azure Cosmos DB database account. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// options - DatabaseAccountsClientListReadOnlyKeysOptions contains the optional parameters for the DatabaseAccountsClient.ListReadOnlyKeys -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - options - DatabaseAccountsClientListReadOnlyKeysOptions contains the optional parameters for the DatabaseAccountsClient.ListReadOnlyKeys +// method. func (client *DatabaseAccountsClient) ListReadOnlyKeys(ctx context.Context, resourceGroupName string, accountName string, options *DatabaseAccountsClientListReadOnlyKeysOptions) (DatabaseAccountsClientListReadOnlyKeysResponse, error) { req, err := client.listReadOnlyKeysCreateRequest(ctx, resourceGroupName, accountName, options) if err != nil { @@ -797,7 +814,7 @@ func (client *DatabaseAccountsClient) listReadOnlyKeysCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -813,11 +830,12 @@ func (client *DatabaseAccountsClient) listReadOnlyKeysHandleResponse(resp *http. } // NewListUsagesPager - Retrieves the usages (most recent data) for the given database account. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// options - DatabaseAccountsClientListUsagesOptions contains the optional parameters for the DatabaseAccountsClient.ListUsages -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - options - DatabaseAccountsClientListUsagesOptions contains the optional parameters for the DatabaseAccountsClient.NewListUsagesPager +// method. func (client *DatabaseAccountsClient) NewListUsagesPager(resourceGroupName string, accountName string, options *DatabaseAccountsClientListUsagesOptions) *runtime.Pager[DatabaseAccountsClientListUsagesResponse] { return runtime.NewPager(runtime.PagingHandler[DatabaseAccountsClientListUsagesResponse]{ More: func(page DatabaseAccountsClientListUsagesResponse) bool { @@ -860,7 +878,7 @@ func (client *DatabaseAccountsClient) listUsagesCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") if options != nil && options.Filter != nil { reqQP.Set("$filter", *options.Filter) } @@ -880,12 +898,13 @@ func (client *DatabaseAccountsClient) listUsagesHandleResponse(resp *http.Respon // BeginOfflineRegion - Offline the specified region for the specified Azure Cosmos DB database account. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// regionParameterForOffline - Cosmos DB region to offline for the database account. -// options - DatabaseAccountsClientBeginOfflineRegionOptions contains the optional parameters for the DatabaseAccountsClient.BeginOfflineRegion -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - regionParameterForOffline - Cosmos DB region to offline for the database account. +// - options - DatabaseAccountsClientBeginOfflineRegionOptions contains the optional parameters for the DatabaseAccountsClient.BeginOfflineRegion +// method. func (client *DatabaseAccountsClient) BeginOfflineRegion(ctx context.Context, resourceGroupName string, accountName string, regionParameterForOffline RegionForOnlineOffline, options *DatabaseAccountsClientBeginOfflineRegionOptions) (*runtime.Poller[DatabaseAccountsClientOfflineRegionResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.offlineRegion(ctx, resourceGroupName, accountName, regionParameterForOffline, options) @@ -900,7 +919,8 @@ func (client *DatabaseAccountsClient) BeginOfflineRegion(ctx context.Context, re // OfflineRegion - Offline the specified region for the specified Azure Cosmos DB database account. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *DatabaseAccountsClient) offlineRegion(ctx context.Context, resourceGroupName string, accountName string, regionParameterForOffline RegionForOnlineOffline, options *DatabaseAccountsClientBeginOfflineRegionOptions) (*http.Response, error) { req, err := client.offlineRegionCreateRequest(ctx, resourceGroupName, accountName, regionParameterForOffline, options) if err != nil { @@ -936,7 +956,7 @@ func (client *DatabaseAccountsClient) offlineRegionCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, regionParameterForOffline) @@ -944,12 +964,13 @@ func (client *DatabaseAccountsClient) offlineRegionCreateRequest(ctx context.Con // BeginOnlineRegion - Online the specified region for the specified Azure Cosmos DB database account. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// regionParameterForOnline - Cosmos DB region to online for the database account. -// options - DatabaseAccountsClientBeginOnlineRegionOptions contains the optional parameters for the DatabaseAccountsClient.BeginOnlineRegion -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - regionParameterForOnline - Cosmos DB region to online for the database account. +// - options - DatabaseAccountsClientBeginOnlineRegionOptions contains the optional parameters for the DatabaseAccountsClient.BeginOnlineRegion +// method. func (client *DatabaseAccountsClient) BeginOnlineRegion(ctx context.Context, resourceGroupName string, accountName string, regionParameterForOnline RegionForOnlineOffline, options *DatabaseAccountsClientBeginOnlineRegionOptions) (*runtime.Poller[DatabaseAccountsClientOnlineRegionResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.onlineRegion(ctx, resourceGroupName, accountName, regionParameterForOnline, options) @@ -964,7 +985,8 @@ func (client *DatabaseAccountsClient) BeginOnlineRegion(ctx context.Context, res // OnlineRegion - Online the specified region for the specified Azure Cosmos DB database account. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *DatabaseAccountsClient) onlineRegion(ctx context.Context, resourceGroupName string, accountName string, regionParameterForOnline RegionForOnlineOffline, options *DatabaseAccountsClientBeginOnlineRegionOptions) (*http.Response, error) { req, err := client.onlineRegionCreateRequest(ctx, resourceGroupName, accountName, regionParameterForOnline, options) if err != nil { @@ -1000,7 +1022,7 @@ func (client *DatabaseAccountsClient) onlineRegionCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, regionParameterForOnline) @@ -1008,12 +1030,13 @@ func (client *DatabaseAccountsClient) onlineRegionCreateRequest(ctx context.Cont // BeginRegenerateKey - Regenerates an access key for the specified Azure Cosmos DB database account. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// keyToRegenerate - The name of the key to regenerate. -// options - DatabaseAccountsClientBeginRegenerateKeyOptions contains the optional parameters for the DatabaseAccountsClient.BeginRegenerateKey -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - keyToRegenerate - The name of the key to regenerate. +// - options - DatabaseAccountsClientBeginRegenerateKeyOptions contains the optional parameters for the DatabaseAccountsClient.BeginRegenerateKey +// method. func (client *DatabaseAccountsClient) BeginRegenerateKey(ctx context.Context, resourceGroupName string, accountName string, keyToRegenerate DatabaseAccountRegenerateKeyParameters, options *DatabaseAccountsClientBeginRegenerateKeyOptions) (*runtime.Poller[DatabaseAccountsClientRegenerateKeyResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.regenerateKey(ctx, resourceGroupName, accountName, keyToRegenerate, options) @@ -1028,7 +1051,8 @@ func (client *DatabaseAccountsClient) BeginRegenerateKey(ctx context.Context, re // RegenerateKey - Regenerates an access key for the specified Azure Cosmos DB database account. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *DatabaseAccountsClient) regenerateKey(ctx context.Context, resourceGroupName string, accountName string, keyToRegenerate DatabaseAccountRegenerateKeyParameters, options *DatabaseAccountsClientBeginRegenerateKeyOptions) (*http.Response, error) { req, err := client.regenerateKeyCreateRequest(ctx, resourceGroupName, accountName, keyToRegenerate, options) if err != nil { @@ -1064,19 +1088,20 @@ func (client *DatabaseAccountsClient) regenerateKeyCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() return req, runtime.MarshalAsJSON(req, keyToRegenerate) } // BeginUpdate - Updates the properties of an existing Azure Cosmos DB database account. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// updateParameters - The parameters to provide for the current database account. -// options - DatabaseAccountsClientBeginUpdateOptions contains the optional parameters for the DatabaseAccountsClient.BeginUpdate -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - updateParameters - The parameters to provide for the current database account. +// - options - DatabaseAccountsClientBeginUpdateOptions contains the optional parameters for the DatabaseAccountsClient.BeginUpdate +// method. func (client *DatabaseAccountsClient) BeginUpdate(ctx context.Context, resourceGroupName string, accountName string, updateParameters DatabaseAccountUpdateParameters, options *DatabaseAccountsClientBeginUpdateOptions) (*runtime.Poller[DatabaseAccountsClientUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.update(ctx, resourceGroupName, accountName, updateParameters, options) @@ -1091,7 +1116,8 @@ func (client *DatabaseAccountsClient) BeginUpdate(ctx context.Context, resourceG // Update - Updates the properties of an existing Azure Cosmos DB database account. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *DatabaseAccountsClient) update(ctx context.Context, resourceGroupName string, accountName string, updateParameters DatabaseAccountUpdateParameters, options *DatabaseAccountsClientBeginUpdateOptions) (*http.Response, error) { req, err := client.updateCreateRequest(ctx, resourceGroupName, accountName, updateParameters, options) if err != nil { @@ -1127,7 +1153,7 @@ func (client *DatabaseAccountsClient) updateCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, updateParameters) diff --git a/sdk/resourcemanager/cosmos/armcosmos/databaseaccounts_client_example_test.go b/sdk/resourcemanager/cosmos/armcosmos/databaseaccounts_client_example_test.go index 48eb6c3c3a55..6216a9f340fb 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/databaseaccounts_client_example_test.go +++ b/sdk/resourcemanager/cosmos/armcosmos/databaseaccounts_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armcosmos_test @@ -19,7 +20,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cosmos/armcosmos/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBDatabaseAccountGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBDatabaseAccountGet.json func ExampleDatabaseAccountsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -34,11 +35,135 @@ func ExampleDatabaseAccountsClient_Get() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.DatabaseAccountGetResults = armcosmos.DatabaseAccountGetResults{ + // Name: to.Ptr("ddb1"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts"), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1"), + // Location: to.Ptr("West US"), + // Tags: map[string]*string{ + // }, + // Identity: &armcosmos.ManagedServiceIdentity{ + // Type: to.Ptr(armcosmos.ResourceIdentityTypeSystemAssignedUserAssigned), + // PrincipalID: to.Ptr("52f4fef3-3c3f-4ff3-b52e-b5c9eeb68656"), + // TenantID: to.Ptr("33e01921-4d64-4f8c-a055-5bdaffd5e33d"), + // UserAssignedIdentities: map[string]*armcosmos.Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserassignedidentitiesAdditionalproperties{ + // "/subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups/eu2cgroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": &armcosmos.Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserassignedidentitiesAdditionalproperties{ + // ClientID: to.Ptr("fbe75b66-01c5-4f87-a220-233af3270436"), + // PrincipalID: to.Ptr("33e01921-4d64-4f8c-a055-5bdaffd5e33d"), + // }, + // }, + // }, + // Kind: to.Ptr(armcosmos.DatabaseAccountKindGlobalDocumentDB), + // Properties: &armcosmos.DatabaseAccountGetProperties{ + // AnalyticalStorageConfiguration: &armcosmos.AnalyticalStorageConfiguration{ + // SchemaType: to.Ptr(armcosmos.AnalyticalStorageSchemaTypeWellDefined), + // }, + // APIProperties: &armcosmos.APIProperties{ + // }, + // BackupPolicy: &armcosmos.PeriodicModeBackupPolicy{ + // Type: to.Ptr(armcosmos.BackupPolicyTypePeriodic), + // MigrationState: &armcosmos.BackupPolicyMigrationState{ + // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-06-09T21:07:16Z"); return t}()), + // Status: to.Ptr(armcosmos.BackupPolicyMigrationStatusInProgress), + // TargetType: to.Ptr(armcosmos.BackupPolicyTypeContinuous), + // }, + // PeriodicModeProperties: &armcosmos.PeriodicModeProperties{ + // BackupIntervalInMinutes: to.Ptr[int32](240), + // BackupRetentionIntervalInHours: to.Ptr[int32](8), + // BackupStorageRedundancy: to.Ptr(armcosmos.BackupStorageRedundancyGeo), + // }, + // }, + // ConsistencyPolicy: &armcosmos.ConsistencyPolicy{ + // DefaultConsistencyLevel: to.Ptr(armcosmos.DefaultConsistencyLevelSession), + // MaxIntervalInSeconds: to.Ptr[int32](5), + // MaxStalenessPrefix: to.Ptr[int64](100), + // }, + // Cors: []*armcosmos.CorsPolicy{ + // }, + // CreateMode: to.Ptr(armcosmos.CreateModeDefault), + // DatabaseAccountOfferType: to.Ptr("Standard"), + // DefaultIdentity: to.Ptr("FirstPartyIdentity"), + // DisableKeyBasedMetadataWriteAccess: to.Ptr(false), + // DocumentEndpoint: to.Ptr("https://ddb1.documents.azure.com:443/"), + // EnableAnalyticalStorage: to.Ptr(true), + // EnableFreeTier: to.Ptr(false), + // EnablePartitionMerge: to.Ptr(true), + // FailoverPolicies: []*armcosmos.FailoverPolicy{ + // { + // FailoverPriority: to.Ptr[int32](0), + // ID: to.Ptr("ddb1-eastus"), + // LocationName: to.Ptr("East US"), + // }}, + // InstanceID: to.Ptr("d9b26648-2f53-4541-b3d8-3044f4f9810d"), + // IPRules: []*armcosmos.IPAddressOrRange{ + // }, + // IsVirtualNetworkFilterEnabled: to.Ptr(false), + // KeysMetadata: &armcosmos.DatabaseAccountKeysMetadata{ + // PrimaryMasterKey: &armcosmos.AccountKeyMetadata{ + // GenerationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-02-25T20:30:11Z"); return t}()), + // }, + // PrimaryReadonlyMasterKey: &armcosmos.AccountKeyMetadata{ + // GenerationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-02-25T20:30:11Z"); return t}()), + // }, + // SecondaryMasterKey: &armcosmos.AccountKeyMetadata{ + // GenerationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-02-25T20:30:11Z"); return t}()), + // }, + // SecondaryReadonlyMasterKey: &armcosmos.AccountKeyMetadata{ + // GenerationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-02-25T20:30:11Z"); return t}()), + // }, + // }, + // Locations: []*armcosmos.Location{ + // { + // DocumentEndpoint: to.Ptr("https://ddb1-eastus.documents.azure.com:443/"), + // FailoverPriority: to.Ptr[int32](0), + // ID: to.Ptr("ddb1-eastus"), + // LocationName: to.Ptr("East US"), + // ProvisioningState: to.Ptr("Succeeded"), + // }}, + // MinimalTLSVersion: to.Ptr(armcosmos.MinimalTLSVersionTLS), + // NetworkACLBypass: to.Ptr(armcosmos.NetworkACLBypassNone), + // NetworkACLBypassResourceIDs: []*string{ + // }, + // PrivateEndpointConnections: []*armcosmos.PrivateEndpointConnection{ + // { + // ID: to.Ptr("/subscriptions/subId/resourceGroups/rg/providers/Microsoft.DocumentDB/databaseAccounts/account1/privateEndpointConnections/pe1"), + // Properties: &armcosmos.PrivateEndpointConnectionProperties{ + // PrivateEndpoint: &armcosmos.PrivateEndpointProperty{ + // ID: to.Ptr("/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/privateEndpoints/pe1"), + // }, + // PrivateLinkServiceConnectionState: &armcosmos.PrivateLinkServiceConnectionStateProperty{ + // ActionsRequired: to.Ptr("None"), + // Status: to.Ptr("Approved"), + // }, + // }, + // }}, + // ProvisioningState: to.Ptr("Succeeded"), + // ReadLocations: []*armcosmos.Location{ + // { + // DocumentEndpoint: to.Ptr("https://ddb1-eastus.documents.azure.com:443/"), + // FailoverPriority: to.Ptr[int32](0), + // ID: to.Ptr("ddb1-eastus"), + // LocationName: to.Ptr("East US"), + // ProvisioningState: to.Ptr("Succeeded"), + // }}, + // VirtualNetworkRules: []*armcosmos.VirtualNetworkRule{ + // }, + // WriteLocations: []*armcosmos.Location{ + // { + // DocumentEndpoint: to.Ptr("https://ddb1-eastus.documents.azure.com:443/"), + // FailoverPriority: to.Ptr[int32](0), + // ID: to.Ptr("ddb1-eastus"), + // LocationName: to.Ptr("East US"), + // ProvisioningState: to.Ptr("Succeeded"), + // }}, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBDatabaseAccountPatch.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBDatabaseAccountPatch.json func ExampleDatabaseAccountsClient_BeginUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -66,7 +191,7 @@ func ExampleDatabaseAccountsClient_BeginUpdate() { PeriodicModeProperties: &armcosmos.PeriodicModeProperties{ BackupIntervalInMinutes: to.Ptr[int32](240), BackupRetentionIntervalInHours: to.Ptr[int32](720), - BackupStorageRedundancy: to.Ptr(armcosmos.BackupStorageRedundancyGeo), + BackupStorageRedundancy: to.Ptr(armcosmos.BackupStorageRedundancyLocal), }, }, Capacity: &armcosmos.Capacity{ @@ -77,10 +202,7 @@ func ExampleDatabaseAccountsClient_BeginUpdate() { MaxIntervalInSeconds: to.Ptr[int32](10), MaxStalenessPrefix: to.Ptr[int64](200), }, - DefaultIdentity: to.Ptr("FirstPartyIdentity"), - DiagnosticLogSettings: &armcosmos.DiagnosticLogSettings{ - EnableFullTextQuery: to.Ptr(armcosmos.EnableFullTextQueryTrue), - }, + DefaultIdentity: to.Ptr("FirstPartyIdentity"), EnableAnalyticalStorage: to.Ptr(true), EnableFreeTier: to.Ptr(false), EnablePartitionMerge: to.Ptr(true), @@ -92,6 +214,7 @@ func ExampleDatabaseAccountsClient_BeginUpdate() { IPAddressOrRange: to.Ptr("110.12.240.0/12"), }}, IsVirtualNetworkFilterEnabled: to.Ptr(true), + MinimalTLSVersion: to.Ptr(armcosmos.MinimalTLSVersionTLS), NetworkACLBypass: to.Ptr(armcosmos.NetworkACLBypassAzureServices), NetworkACLBypassResourceIDs: []*string{ to.Ptr("/subscriptions/subId/resourcegroups/rgName/providers/Microsoft.Synapse/workspaces/workspaceName")}, @@ -112,11 +235,140 @@ func ExampleDatabaseAccountsClient_BeginUpdate() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.DatabaseAccountGetResults = armcosmos.DatabaseAccountGetResults{ + // Name: to.Ptr("ddb1"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts"), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1"), + // Location: to.Ptr("West US"), + // Tags: map[string]*string{ + // "dept": to.Ptr("finance"), + // }, + // Identity: &armcosmos.ManagedServiceIdentity{ + // Type: to.Ptr(armcosmos.ResourceIdentityTypeSystemAssignedUserAssigned), + // PrincipalID: to.Ptr("52f4fef3-3c3f-4ff3-b52e-b5c9eeb68656"), + // TenantID: to.Ptr("33e01921-4d64-4f8c-a055-5bdaffd5e33d"), + // UserAssignedIdentities: map[string]*armcosmos.Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserassignedidentitiesAdditionalproperties{ + // "/subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups/eu2cgroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": &armcosmos.Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserassignedidentitiesAdditionalproperties{ + // ClientID: to.Ptr("fbe75b66-01c5-4f87-a220-233af3270436"), + // PrincipalID: to.Ptr("33e01921-4d64-4f8c-a055-5bdaffd5e33d"), + // }, + // }, + // }, + // Kind: to.Ptr(armcosmos.DatabaseAccountKindGlobalDocumentDB), + // Properties: &armcosmos.DatabaseAccountGetProperties{ + // AnalyticalStorageConfiguration: &armcosmos.AnalyticalStorageConfiguration{ + // SchemaType: to.Ptr(armcosmos.AnalyticalStorageSchemaTypeWellDefined), + // }, + // APIProperties: &armcosmos.APIProperties{ + // }, + // BackupPolicy: &armcosmos.PeriodicModeBackupPolicy{ + // Type: to.Ptr(armcosmos.BackupPolicyTypePeriodic), + // PeriodicModeProperties: &armcosmos.PeriodicModeProperties{ + // BackupIntervalInMinutes: to.Ptr[int32](240), + // BackupRetentionIntervalInHours: to.Ptr[int32](720), + // BackupStorageRedundancy: to.Ptr(armcosmos.BackupStorageRedundancyLocal), + // }, + // }, + // Capacity: &armcosmos.Capacity{ + // TotalThroughputLimit: to.Ptr[int32](2000), + // }, + // ConsistencyPolicy: &armcosmos.ConsistencyPolicy{ + // DefaultConsistencyLevel: to.Ptr(armcosmos.DefaultConsistencyLevelBoundedStaleness), + // MaxIntervalInSeconds: to.Ptr[int32](10), + // MaxStalenessPrefix: to.Ptr[int64](200), + // }, + // Cors: []*armcosmos.CorsPolicy{ + // }, + // DatabaseAccountOfferType: to.Ptr("Standard"), + // DefaultIdentity: to.Ptr("FirstPartyIdentity"), + // DisableKeyBasedMetadataWriteAccess: to.Ptr(false), + // DocumentEndpoint: to.Ptr("https://ddb1.documents.azure.com:443/"), + // EnableAnalyticalStorage: to.Ptr(true), + // EnableFreeTier: to.Ptr(false), + // EnablePartitionMerge: to.Ptr(true), + // FailoverPolicies: []*armcosmos.FailoverPolicy{ + // { + // FailoverPriority: to.Ptr[int32](0), + // ID: to.Ptr("ddb1-eastus"), + // LocationName: to.Ptr("East US"), + // }}, + // IPRules: []*armcosmos.IPAddressOrRange{ + // { + // IPAddressOrRange: to.Ptr("23.43.230.120"), + // }, + // { + // IPAddressOrRange: to.Ptr("110.12.240.0/12"), + // }}, + // IsVirtualNetworkFilterEnabled: to.Ptr(true), + // KeysMetadata: &armcosmos.DatabaseAccountKeysMetadata{ + // PrimaryMasterKey: &armcosmos.AccountKeyMetadata{ + // GenerationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-02-25T20:30:11Z"); return t}()), + // }, + // PrimaryReadonlyMasterKey: &armcosmos.AccountKeyMetadata{ + // GenerationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-02-25T20:30:11Z"); return t}()), + // }, + // SecondaryMasterKey: &armcosmos.AccountKeyMetadata{ + // GenerationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-02-25T20:30:11Z"); return t}()), + // }, + // SecondaryReadonlyMasterKey: &armcosmos.AccountKeyMetadata{ + // GenerationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-02-25T20:30:11Z"); return t}()), + // }, + // }, + // Locations: []*armcosmos.Location{ + // { + // DocumentEndpoint: to.Ptr("https://ddb1-eastus.documents.azure.com:443/"), + // FailoverPriority: to.Ptr[int32](0), + // ID: to.Ptr("ddb1-eastus"), + // LocationName: to.Ptr("East US"), + // ProvisioningState: to.Ptr("Succeeded"), + // }}, + // MinimalTLSVersion: to.Ptr(armcosmos.MinimalTLSVersionTLS), + // NetworkACLBypass: to.Ptr(armcosmos.NetworkACLBypassAzureServices), + // NetworkACLBypassResourceIDs: []*string{ + // to.Ptr("/subscriptions/subId/resourcegroups/rgName/providers/Microsoft.Synapse/workspaces/workspaceName")}, + // PrivateEndpointConnections: []*armcosmos.PrivateEndpointConnection{ + // { + // ID: to.Ptr("/subscriptions/subId/resourceGroups/rg/providers/Microsoft.DocumentDB/databaseAccounts/account1/privateEndpointConnections/pe1"), + // Properties: &armcosmos.PrivateEndpointConnectionProperties{ + // PrivateEndpoint: &armcosmos.PrivateEndpointProperty{ + // ID: to.Ptr("/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/privateEndpoints/pe1"), + // }, + // PrivateLinkServiceConnectionState: &armcosmos.PrivateLinkServiceConnectionStateProperty{ + // ActionsRequired: to.Ptr("None"), + // Status: to.Ptr("Approved"), + // }, + // }, + // }}, + // ProvisioningState: to.Ptr("Succeeded"), + // ReadLocations: []*armcosmos.Location{ + // { + // DocumentEndpoint: to.Ptr("https://ddb1-eastus.documents.azure.com:443/"), + // FailoverPriority: to.Ptr[int32](0), + // ID: to.Ptr("ddb1-eastus"), + // LocationName: to.Ptr("East US"), + // ProvisioningState: to.Ptr("Succeeded"), + // }}, + // VirtualNetworkRules: []*armcosmos.VirtualNetworkRule{ + // { + // ID: to.Ptr("/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1"), + // IgnoreMissingVNetServiceEndpoint: to.Ptr(false), + // }}, + // WriteLocations: []*armcosmos.Location{ + // { + // DocumentEndpoint: to.Ptr("https://ddb1-eastus.documents.azure.com:443/"), + // FailoverPriority: to.Ptr[int32](0), + // ID: to.Ptr("ddb1-eastus"), + // LocationName: to.Ptr("East US"), + // ProvisioningState: to.Ptr("Succeeded"), + // }}, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBDatabaseAccountCreateMax.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBDatabaseAccountCreateMax.json func ExampleDatabaseAccountsClient_BeginCreateOrUpdate_cosmosDbDatabaseAccountCreateMax() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -128,15 +380,15 @@ func ExampleDatabaseAccountsClient_BeginCreateOrUpdate_cosmosDbDatabaseAccountCr log.Fatalf("failed to create client: %v", err) } poller, err := client.BeginCreateOrUpdate(ctx, "rg1", "ddb1", armcosmos.DatabaseAccountCreateUpdateParameters{ + Location: to.Ptr("westus"), + Tags: map[string]*string{}, Identity: &armcosmos.ManagedServiceIdentity{ Type: to.Ptr(armcosmos.ResourceIdentityTypeSystemAssignedUserAssigned), UserAssignedIdentities: map[string]*armcosmos.Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserassignedidentitiesAdditionalproperties{ "/subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups/eu2cgroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": {}, }, }, - Location: to.Ptr("westus"), - Tags: map[string]*string{}, - Kind: to.Ptr(armcosmos.DatabaseAccountKindMongoDB), + Kind: to.Ptr(armcosmos.DatabaseAccountKindMongoDB), Properties: &armcosmos.DatabaseAccountCreateUpdateProperties{ AnalyticalStorageConfiguration: &armcosmos.AnalyticalStorageConfiguration{ SchemaType: to.Ptr(armcosmos.AnalyticalStorageSchemaTypeWellDefined), @@ -169,7 +421,6 @@ func ExampleDatabaseAccountsClient_BeginCreateOrUpdate_cosmosDbDatabaseAccountCr DefaultIdentity: to.Ptr("FirstPartyIdentity"), EnableAnalyticalStorage: to.Ptr(true), EnableFreeTier: to.Ptr(false), - EnableMaterializedViews: to.Ptr(false), IPRules: []*armcosmos.IPAddressOrRange{ { IPAddressOrRange: to.Ptr("23.43.230.120"), @@ -190,7 +441,8 @@ func ExampleDatabaseAccountsClient_BeginCreateOrUpdate_cosmosDbDatabaseAccountCr IsZoneRedundant: to.Ptr(false), LocationName: to.Ptr("eastus"), }}, - NetworkACLBypass: to.Ptr(armcosmos.NetworkACLBypassAzureServices), + MinimalTLSVersion: to.Ptr(armcosmos.MinimalTLSVersionTls12), + NetworkACLBypass: to.Ptr(armcosmos.NetworkACLBypassAzureServices), NetworkACLBypassResourceIDs: []*string{ to.Ptr("/subscriptions/subId/resourcegroups/rgName/providers/Microsoft.Synapse/workspaces/workspaceName")}, PublicNetworkAccess: to.Ptr(armcosmos.PublicNetworkAccessEnabled), @@ -208,11 +460,152 @@ func ExampleDatabaseAccountsClient_BeginCreateOrUpdate_cosmosDbDatabaseAccountCr if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.DatabaseAccountGetResults = armcosmos.DatabaseAccountGetResults{ + // Name: to.Ptr("ddb1"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts"), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1"), + // Location: to.Ptr("West US"), + // Tags: map[string]*string{ + // }, + // Identity: &armcosmos.ManagedServiceIdentity{ + // Type: to.Ptr(armcosmos.ResourceIdentityTypeSystemAssignedUserAssigned), + // PrincipalID: to.Ptr("52f4fef3-3c3f-4ff3-b52e-b5c9eeb68656"), + // TenantID: to.Ptr("33e01921-4d64-4f8c-a055-5bdaffd5e33d"), + // UserAssignedIdentities: map[string]*armcosmos.Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserassignedidentitiesAdditionalproperties{ + // "/subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups/eu2cgroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": &armcosmos.Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserassignedidentitiesAdditionalproperties{ + // ClientID: to.Ptr("fbe75b66-01c5-4f87-a220-233af3270436"), + // PrincipalID: to.Ptr("33e01921-4d64-4f8c-a055-5bdaffd5e33d"), + // }, + // }, + // }, + // Kind: to.Ptr(armcosmos.DatabaseAccountKindMongoDB), + // Properties: &armcosmos.DatabaseAccountGetProperties{ + // AnalyticalStorageConfiguration: &armcosmos.AnalyticalStorageConfiguration{ + // SchemaType: to.Ptr(armcosmos.AnalyticalStorageSchemaTypeWellDefined), + // }, + // APIProperties: &armcosmos.APIProperties{ + // ServerVersion: to.Ptr(armcosmos.ServerVersionThree2), + // }, + // BackupPolicy: &armcosmos.PeriodicModeBackupPolicy{ + // Type: to.Ptr(armcosmos.BackupPolicyTypePeriodic), + // PeriodicModeProperties: &armcosmos.PeriodicModeProperties{ + // BackupIntervalInMinutes: to.Ptr[int32](240), + // BackupRetentionIntervalInHours: to.Ptr[int32](8), + // BackupStorageRedundancy: to.Ptr(armcosmos.BackupStorageRedundancyGeo), + // }, + // }, + // Capacity: &armcosmos.Capacity{ + // TotalThroughputLimit: to.Ptr[int32](2000), + // }, + // ConsistencyPolicy: &armcosmos.ConsistencyPolicy{ + // DefaultConsistencyLevel: to.Ptr(armcosmos.DefaultConsistencyLevelBoundedStaleness), + // MaxIntervalInSeconds: to.Ptr[int32](10), + // MaxStalenessPrefix: to.Ptr[int64](200), + // }, + // Cors: []*armcosmos.CorsPolicy{ + // { + // AllowedOrigins: to.Ptr("https://test"), + // }}, + // CreateMode: to.Ptr(armcosmos.CreateModeDefault), + // DatabaseAccountOfferType: to.Ptr("Standard"), + // DefaultIdentity: to.Ptr("FirstPartyIdentity"), + // DisableKeyBasedMetadataWriteAccess: to.Ptr(false), + // EnableAnalyticalStorage: to.Ptr(true), + // EnableFreeTier: to.Ptr(false), + // FailoverPolicies: []*armcosmos.FailoverPolicy{ + // { + // FailoverPriority: to.Ptr[int32](0), + // ID: to.Ptr("ddb1-southcentralus"), + // LocationName: to.Ptr("South Central US"), + // }, + // { + // FailoverPriority: to.Ptr[int32](1), + // ID: to.Ptr("ddb1-eastus"), + // LocationName: to.Ptr("East US"), + // }}, + // InstanceID: to.Ptr("d9b26648-2f53-4541-b3d8-3044f4f9810d"), + // IPRules: []*armcosmos.IPAddressOrRange{ + // { + // IPAddressOrRange: to.Ptr("23.43.230.120"), + // }, + // { + // IPAddressOrRange: to.Ptr("110.12.240.0/12"), + // }}, + // IsVirtualNetworkFilterEnabled: to.Ptr(true), + // KeyVaultKeyURI: to.Ptr("https://myKeyVault.vault.azure.net"), + // KeysMetadata: &armcosmos.DatabaseAccountKeysMetadata{ + // PrimaryMasterKey: &armcosmos.AccountKeyMetadata{ + // GenerationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-12T22:05:09Z"); return t}()), + // }, + // PrimaryReadonlyMasterKey: &armcosmos.AccountKeyMetadata{ + // GenerationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-12T22:05:09Z"); return t}()), + // }, + // SecondaryMasterKey: &armcosmos.AccountKeyMetadata{ + // GenerationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-12T22:05:09Z"); return t}()), + // }, + // SecondaryReadonlyMasterKey: &armcosmos.AccountKeyMetadata{ + // GenerationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-12T22:05:09Z"); return t}()), + // }, + // }, + // Locations: []*armcosmos.Location{ + // { + // FailoverPriority: to.Ptr[int32](0), + // ID: to.Ptr("ddb1-southcentralus"), + // IsZoneRedundant: to.Ptr(false), + // LocationName: to.Ptr("South Central US"), + // ProvisioningState: to.Ptr("Succeeded"), + // }, + // { + // FailoverPriority: to.Ptr[int32](1), + // ID: to.Ptr("ddb1-eastus"), + // IsZoneRedundant: to.Ptr(false), + // LocationName: to.Ptr("East US"), + // ProvisioningState: to.Ptr("Succeeded"), + // }}, + // MinimalTLSVersion: to.Ptr(armcosmos.MinimalTLSVersionTls12), + // NetworkACLBypass: to.Ptr(armcosmos.NetworkACLBypassAzureServices), + // NetworkACLBypassResourceIDs: []*string{ + // to.Ptr("/subscriptions/subId/resourcegroups/rgName/providers/Microsoft.Synapse/workspaces/workspaceName")}, + // ProvisioningState: to.Ptr("Succeeded"), + // PublicNetworkAccess: to.Ptr(armcosmos.PublicNetworkAccessEnabled), + // ReadLocations: []*armcosmos.Location{ + // { + // FailoverPriority: to.Ptr[int32](0), + // ID: to.Ptr("ddb1-southcentralus"), + // IsZoneRedundant: to.Ptr(false), + // LocationName: to.Ptr("South Central US"), + // ProvisioningState: to.Ptr("Succeeded"), + // }, + // { + // FailoverPriority: to.Ptr[int32](1), + // ID: to.Ptr("ddb1-eastus"), + // IsZoneRedundant: to.Ptr(false), + // LocationName: to.Ptr("East US"), + // ProvisioningState: to.Ptr("Succeeded"), + // }}, + // VirtualNetworkRules: []*armcosmos.VirtualNetworkRule{ + // { + // ID: to.Ptr("/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1"), + // }}, + // WriteLocations: []*armcosmos.Location{ + // { + // FailoverPriority: to.Ptr[int32](0), + // ID: to.Ptr("ddb1-southcentralus"), + // IsZoneRedundant: to.Ptr(false), + // LocationName: to.Ptr("South Central US"), + // ProvisioningState: to.Ptr("Succeeded"), + // }}, + // }, + // SystemData: &armcosmos.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-12T22:05:09Z"); return t}()), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBDatabaseAccountCreateMin.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBDatabaseAccountCreateMin.json func ExampleDatabaseAccountsClient_BeginCreateOrUpdate_cosmosDbDatabaseAccountCreateMin() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -243,11 +636,100 @@ func ExampleDatabaseAccountsClient_BeginCreateOrUpdate_cosmosDbDatabaseAccountCr if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.DatabaseAccountGetResults = armcosmos.DatabaseAccountGetResults{ + // Name: to.Ptr("ddb1"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts"), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1"), + // Location: to.Ptr("West US"), + // Tags: map[string]*string{ + // }, + // Kind: to.Ptr(armcosmos.DatabaseAccountKindGlobalDocumentDB), + // Properties: &armcosmos.DatabaseAccountGetProperties{ + // APIProperties: &armcosmos.APIProperties{ + // }, + // BackupPolicy: &armcosmos.PeriodicModeBackupPolicy{ + // Type: to.Ptr(armcosmos.BackupPolicyTypePeriodic), + // PeriodicModeProperties: &armcosmos.PeriodicModeProperties{ + // BackupIntervalInMinutes: to.Ptr[int32](240), + // BackupRetentionIntervalInHours: to.Ptr[int32](720), + // BackupStorageRedundancy: to.Ptr(armcosmos.BackupStorageRedundancyGeo), + // }, + // }, + // ConsistencyPolicy: &armcosmos.ConsistencyPolicy{ + // DefaultConsistencyLevel: to.Ptr(armcosmos.DefaultConsistencyLevelSession), + // MaxIntervalInSeconds: to.Ptr[int32](5), + // MaxStalenessPrefix: to.Ptr[int64](100), + // }, + // Cors: []*armcosmos.CorsPolicy{ + // }, + // CreateMode: to.Ptr(armcosmos.CreateModeDefault), + // DatabaseAccountOfferType: to.Ptr("Standard"), + // DisableKeyBasedMetadataWriteAccess: to.Ptr(false), + // EnableAnalyticalStorage: to.Ptr(false), + // EnableFreeTier: to.Ptr(false), + // FailoverPolicies: []*armcosmos.FailoverPolicy{ + // { + // FailoverPriority: to.Ptr[int32](0), + // ID: to.Ptr("ddb1-southcentralus"), + // LocationName: to.Ptr("South Central US"), + // }}, + // InstanceID: to.Ptr("d9b26648-2f53-4541-b3d8-3044f4f9810d"), + // IPRules: []*armcosmos.IPAddressOrRange{ + // }, + // KeysMetadata: &armcosmos.DatabaseAccountKeysMetadata{ + // PrimaryMasterKey: &armcosmos.AccountKeyMetadata{ + // GenerationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-12T22:05:09Z"); return t}()), + // }, + // PrimaryReadonlyMasterKey: &armcosmos.AccountKeyMetadata{ + // GenerationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-12T22:05:09Z"); return t}()), + // }, + // SecondaryMasterKey: &armcosmos.AccountKeyMetadata{ + // GenerationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-12T22:05:09Z"); return t}()), + // }, + // SecondaryReadonlyMasterKey: &armcosmos.AccountKeyMetadata{ + // GenerationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-12T22:05:09Z"); return t}()), + // }, + // }, + // Locations: []*armcosmos.Location{ + // { + // FailoverPriority: to.Ptr[int32](0), + // ID: to.Ptr("ddb1-southcentralus"), + // IsZoneRedundant: to.Ptr(false), + // LocationName: to.Ptr("South Central US"), + // ProvisioningState: to.Ptr("Succeeded"), + // }}, + // MinimalTLSVersion: to.Ptr(armcosmos.MinimalTLSVersionTLS), + // NetworkACLBypass: to.Ptr(armcosmos.NetworkACLBypassNone), + // NetworkACLBypassResourceIDs: []*string{ + // }, + // ProvisioningState: to.Ptr("Succeeded"), + // ReadLocations: []*armcosmos.Location{ + // { + // FailoverPriority: to.Ptr[int32](0), + // ID: to.Ptr("ddb1-southcentralus"), + // IsZoneRedundant: to.Ptr(false), + // LocationName: to.Ptr("South Central US"), + // ProvisioningState: to.Ptr("Succeeded"), + // }}, + // WriteLocations: []*armcosmos.Location{ + // { + // FailoverPriority: to.Ptr[int32](0), + // ID: to.Ptr("ddb1-southcentralus"), + // IsZoneRedundant: to.Ptr(false), + // LocationName: to.Ptr("South Central US"), + // ProvisioningState: to.Ptr("Succeeded"), + // }}, + // }, + // SystemData: &armcosmos.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-12T22:05:09Z"); return t}()), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBRestoreDatabaseAccountCreateUpdate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBRestoreDatabaseAccountCreateUpdate.json func ExampleDatabaseAccountsClient_BeginCreateOrUpdate_cosmosDbRestoreDatabaseAccountCreateUpdateJson() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -268,9 +750,6 @@ func ExampleDatabaseAccountsClient_BeginCreateOrUpdate_cosmosDbRestoreDatabaseAc }, BackupPolicy: &armcosmos.ContinuousModeBackupPolicy{ Type: to.Ptr(armcosmos.BackupPolicyTypeContinuous), - ContinuousModeProperties: &armcosmos.ContinuousModeProperties{ - Tier: to.Ptr(armcosmos.ContinuousTierContinuous30Days), - }, }, ConsistencyPolicy: &armcosmos.ConsistencyPolicy{ DefaultConsistencyLevel: to.Ptr(armcosmos.DefaultConsistencyLevelBoundedStaleness), @@ -281,7 +760,6 @@ func ExampleDatabaseAccountsClient_BeginCreateOrUpdate_cosmosDbRestoreDatabaseAc DatabaseAccountOfferType: to.Ptr("Standard"), EnableAnalyticalStorage: to.Ptr(true), EnableFreeTier: to.Ptr(false), - EnableMaterializedViews: to.Ptr(false), KeyVaultKeyURI: to.Ptr("https://myKeyVault.vault.azure.net"), Locations: []*armcosmos.Location{ { @@ -289,9 +767,8 @@ func ExampleDatabaseAccountsClient_BeginCreateOrUpdate_cosmosDbRestoreDatabaseAc IsZoneRedundant: to.Ptr(false), LocationName: to.Ptr("southcentralus"), }}, + MinimalTLSVersion: to.Ptr(armcosmos.MinimalTLSVersionTLS), RestoreParameters: &armcosmos.RestoreParameters{ - RestoreSource: to.Ptr("/subscriptions/subid/providers/Microsoft.DocumentDB/locations/westus/restorableDatabaseAccounts/1a97b4bb-f6a0-430e-ade1-638d781830cc"), - RestoreTimestampInUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-11T22:05:09Z"); return t }()), DatabasesToRestore: []*armcosmos.DatabaseRestoreResource{ { CollectionNames: []*string{ @@ -305,7 +782,9 @@ func ExampleDatabaseAccountsClient_BeginCreateOrUpdate_cosmosDbRestoreDatabaseAc to.Ptr("collection4")}, DatabaseName: to.Ptr("db2"), }}, - RestoreMode: to.Ptr(armcosmos.RestoreModePointInTime), + RestoreMode: to.Ptr(armcosmos.RestoreModePointInTime), + RestoreSource: to.Ptr("/subscriptions/subid/providers/Microsoft.DocumentDB/locations/westus/restorableDatabaseAccounts/1a97b4bb-f6a0-430e-ade1-638d781830cc"), + RestoreTimestampInUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-11T22:05:09Z"); return t }()), }, }, }, nil) @@ -316,11 +795,87 @@ func ExampleDatabaseAccountsClient_BeginCreateOrUpdate_cosmosDbRestoreDatabaseAc if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.DatabaseAccountGetResults = armcosmos.DatabaseAccountGetResults{ + // Name: to.Ptr("ddb1"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts"), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1"), + // Location: to.Ptr("West US"), + // Tags: map[string]*string{ + // }, + // Kind: to.Ptr(armcosmos.DatabaseAccountKindGlobalDocumentDB), + // Properties: &armcosmos.DatabaseAccountGetProperties{ + // APIProperties: &armcosmos.APIProperties{ + // }, + // ConsistencyPolicy: &armcosmos.ConsistencyPolicy{ + // DefaultConsistencyLevel: to.Ptr(armcosmos.DefaultConsistencyLevelSession), + // MaxIntervalInSeconds: to.Ptr[int32](5), + // MaxStalenessPrefix: to.Ptr[int64](100), + // }, + // CreateMode: to.Ptr(armcosmos.CreateModeRestore), + // DatabaseAccountOfferType: to.Ptr("Standard"), + // DisableKeyBasedMetadataWriteAccess: to.Ptr(false), + // EnableAnalyticalStorage: to.Ptr(false), + // EnableFreeTier: to.Ptr(false), + // FailoverPolicies: []*armcosmos.FailoverPolicy{ + // { + // FailoverPriority: to.Ptr[int32](0), + // ID: to.Ptr("ddb1-southcentralus"), + // LocationName: to.Ptr("South Central US"), + // }}, + // InstanceID: to.Ptr("d9b26648-2f53-4541-b3d8-3044f4f9810d"), + // IPRules: []*armcosmos.IPAddressOrRange{ + // }, + // KeysMetadata: &armcosmos.DatabaseAccountKeysMetadata{ + // PrimaryMasterKey: &armcosmos.AccountKeyMetadata{ + // GenerationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-02-25T20:30:11Z"); return t}()), + // }, + // PrimaryReadonlyMasterKey: &armcosmos.AccountKeyMetadata{ + // GenerationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-02-25T20:30:11Z"); return t}()), + // }, + // SecondaryMasterKey: &armcosmos.AccountKeyMetadata{ + // GenerationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-02-25T20:30:11Z"); return t}()), + // }, + // SecondaryReadonlyMasterKey: &armcosmos.AccountKeyMetadata{ + // GenerationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-02-25T20:30:11Z"); return t}()), + // }, + // }, + // Locations: []*armcosmos.Location{ + // { + // FailoverPriority: to.Ptr[int32](0), + // ID: to.Ptr("ddb1-southcentralus"), + // IsZoneRedundant: to.Ptr(false), + // LocationName: to.Ptr("South Central US"), + // ProvisioningState: to.Ptr("Succeeded"), + // }}, + // MinimalTLSVersion: to.Ptr(armcosmos.MinimalTLSVersionTLS), + // ProvisioningState: to.Ptr("Succeeded"), + // ReadLocations: []*armcosmos.Location{ + // { + // FailoverPriority: to.Ptr[int32](0), + // ID: to.Ptr("ddb1-southcentralus"), + // IsZoneRedundant: to.Ptr(false), + // LocationName: to.Ptr("South Central US"), + // ProvisioningState: to.Ptr("Succeeded"), + // }}, + // WriteLocations: []*armcosmos.Location{ + // { + // FailoverPriority: to.Ptr[int32](0), + // ID: to.Ptr("ddb1-southcentralus"), + // IsZoneRedundant: to.Ptr(false), + // LocationName: to.Ptr("South Central US"), + // ProvisioningState: to.Ptr("Succeeded"), + // }}, + // }, + // SystemData: &armcosmos.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-12T22:05:09Z"); return t}()), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBDatabaseAccountDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBDatabaseAccountDelete.json func ExampleDatabaseAccountsClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -341,7 +896,7 @@ func ExampleDatabaseAccountsClient_BeginDelete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBDatabaseAccountFailoverPriorityChange.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBDatabaseAccountFailoverPriorityChange.json func ExampleDatabaseAccountsClient_BeginFailoverPriorityChange() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -372,7 +927,7 @@ func ExampleDatabaseAccountsClient_BeginFailoverPriorityChange() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBDatabaseAccountList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBDatabaseAccountList.json func ExampleDatabaseAccountsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -385,18 +940,140 @@ func ExampleDatabaseAccountsClient_NewListPager() { } pager := client.NewListPager(nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.DatabaseAccountsListResult = armcosmos.DatabaseAccountsListResult{ + // Value: []*armcosmos.DatabaseAccountGetResults{ + // { + // Name: to.Ptr("ddb1"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts"), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1"), + // Location: to.Ptr("West US"), + // Tags: map[string]*string{ + // }, + // Identity: &armcosmos.ManagedServiceIdentity{ + // Type: to.Ptr(armcosmos.ResourceIdentityTypeSystemAssignedUserAssigned), + // PrincipalID: to.Ptr("52f4fef3-3c3f-4ff3-b52e-b5c9eeb68656"), + // TenantID: to.Ptr("33e01921-4d64-4f8c-a055-5bdaffd5e33d"), + // UserAssignedIdentities: map[string]*armcosmos.Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserassignedidentitiesAdditionalproperties{ + // "/subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups/eu2cgroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": &armcosmos.Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserassignedidentitiesAdditionalproperties{ + // ClientID: to.Ptr("fbe75b66-01c5-4f87-a220-233af3270436"), + // PrincipalID: to.Ptr("33e01921-4d64-4f8c-a055-5bdaffd5e33d"), + // }, + // }, + // }, + // Kind: to.Ptr(armcosmos.DatabaseAccountKindGlobalDocumentDB), + // Properties: &armcosmos.DatabaseAccountGetProperties{ + // AnalyticalStorageConfiguration: &armcosmos.AnalyticalStorageConfiguration{ + // SchemaType: to.Ptr(armcosmos.AnalyticalStorageSchemaTypeWellDefined), + // }, + // APIProperties: &armcosmos.APIProperties{ + // }, + // BackupPolicy: &armcosmos.PeriodicModeBackupPolicy{ + // Type: to.Ptr(armcosmos.BackupPolicyTypePeriodic), + // PeriodicModeProperties: &armcosmos.PeriodicModeProperties{ + // BackupIntervalInMinutes: to.Ptr[int32](240), + // BackupRetentionIntervalInHours: to.Ptr[int32](720), + // BackupStorageRedundancy: to.Ptr(armcosmos.BackupStorageRedundancyGeo), + // }, + // }, + // ConsistencyPolicy: &armcosmos.ConsistencyPolicy{ + // DefaultConsistencyLevel: to.Ptr(armcosmos.DefaultConsistencyLevelSession), + // MaxIntervalInSeconds: to.Ptr[int32](5), + // MaxStalenessPrefix: to.Ptr[int64](100), + // }, + // Cors: []*armcosmos.CorsPolicy{ + // }, + // CreateMode: to.Ptr(armcosmos.CreateModeDefault), + // DatabaseAccountOfferType: to.Ptr("Standard"), + // DefaultIdentity: to.Ptr("FirstPartyIdentity"), + // DisableKeyBasedMetadataWriteAccess: to.Ptr(false), + // DocumentEndpoint: to.Ptr("https://ddb1.documents.azure.com:443/"), + // EnableAnalyticalStorage: to.Ptr(true), + // EnableFreeTier: to.Ptr(false), + // EnablePartitionMerge: to.Ptr(true), + // FailoverPolicies: []*armcosmos.FailoverPolicy{ + // { + // FailoverPriority: to.Ptr[int32](0), + // ID: to.Ptr("ddb1-eastus"), + // LocationName: to.Ptr("East US"), + // }}, + // InstanceID: to.Ptr("d9b26648-2f53-4541-b3d8-3044f4f9810d"), + // IPRules: []*armcosmos.IPAddressOrRange{ + // }, + // KeysMetadata: &armcosmos.DatabaseAccountKeysMetadata{ + // PrimaryMasterKey: &armcosmos.AccountKeyMetadata{ + // GenerationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-02-25T20:30:11Z"); return t}()), + // }, + // PrimaryReadonlyMasterKey: &armcosmos.AccountKeyMetadata{ + // GenerationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-02-25T20:30:11Z"); return t}()), + // }, + // SecondaryMasterKey: &armcosmos.AccountKeyMetadata{ + // GenerationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-02-25T20:30:11Z"); return t}()), + // }, + // SecondaryReadonlyMasterKey: &armcosmos.AccountKeyMetadata{ + // GenerationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-02-25T20:30:11Z"); return t}()), + // }, + // }, + // Locations: []*armcosmos.Location{ + // { + // DocumentEndpoint: to.Ptr("https://ddb1-eastus.documents.azure.com:443/"), + // FailoverPriority: to.Ptr[int32](0), + // ID: to.Ptr("ddb1-eastus"), + // LocationName: to.Ptr("East US"), + // ProvisioningState: to.Ptr("Succeeded"), + // }}, + // MinimalTLSVersion: to.Ptr(armcosmos.MinimalTLSVersionTLS), + // NetworkACLBypass: to.Ptr(armcosmos.NetworkACLBypassNone), + // NetworkACLBypassResourceIDs: []*string{ + // }, + // PrivateEndpointConnections: []*armcosmos.PrivateEndpointConnection{ + // { + // ID: to.Ptr("/subscriptions/subId/resourceGroups/rg/providers/Microsoft.DocumentDB/databaseAccounts/account1/privateEndpointConnections/pe1"), + // Properties: &armcosmos.PrivateEndpointConnectionProperties{ + // PrivateEndpoint: &armcosmos.PrivateEndpointProperty{ + // ID: to.Ptr("/subscriptions/subId/resourceGroups/rg/providers/Microsoft.Network/privateEndpoints/pe1"), + // }, + // PrivateLinkServiceConnectionState: &armcosmos.PrivateLinkServiceConnectionStateProperty{ + // ActionsRequired: to.Ptr("None"), + // Status: to.Ptr("Approved"), + // }, + // }, + // }}, + // ProvisioningState: to.Ptr("Succeeded"), + // ReadLocations: []*armcosmos.Location{ + // { + // DocumentEndpoint: to.Ptr("https://ddb1-eastus.documents.azure.com:443/"), + // FailoverPriority: to.Ptr[int32](0), + // ID: to.Ptr("ddb1-eastus"), + // LocationName: to.Ptr("East US"), + // ProvisioningState: to.Ptr("Succeeded"), + // }}, + // WriteLocations: []*armcosmos.Location{ + // { + // DocumentEndpoint: to.Ptr("https://ddb1-eastus.documents.azure.com:443/"), + // FailoverPriority: to.Ptr[int32](0), + // ID: to.Ptr("ddb1-eastus"), + // LocationName: to.Ptr("East US"), + // ProvisioningState: to.Ptr("Succeeded"), + // }}, + // }, + // SystemData: &armcosmos.SystemData{ + // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-12T22:05:09Z"); return t}()), + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBDatabaseAccountListByResourceGroup.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBDatabaseAccountListByResourceGroup.json func ExampleDatabaseAccountsClient_NewListByResourceGroupPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -409,18 +1086,107 @@ func ExampleDatabaseAccountsClient_NewListByResourceGroupPager() { } pager := client.NewListByResourceGroupPager("rg1", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.DatabaseAccountsListResult = armcosmos.DatabaseAccountsListResult{ + // Value: []*armcosmos.DatabaseAccountGetResults{ + // { + // Name: to.Ptr("ddb1"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts"), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1"), + // Location: to.Ptr("West US"), + // Tags: map[string]*string{ + // }, + // Identity: &armcosmos.ManagedServiceIdentity{ + // Type: to.Ptr(armcosmos.ResourceIdentityTypeSystemAssignedUserAssigned), + // PrincipalID: to.Ptr("52f4fef3-3c3f-4ff3-b52e-b5c9eeb68656"), + // TenantID: to.Ptr("33e01921-4d64-4f8c-a055-5bdaffd5e33d"), + // UserAssignedIdentities: map[string]*armcosmos.Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserassignedidentitiesAdditionalproperties{ + // "/subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups/eu2cgroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": &armcosmos.Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserassignedidentitiesAdditionalproperties{ + // ClientID: to.Ptr("fbe75b66-01c5-4f87-a220-233af3270436"), + // PrincipalID: to.Ptr("33e01921-4d64-4f8c-a055-5bdaffd5e33d"), + // }, + // }, + // }, + // Kind: to.Ptr(armcosmos.DatabaseAccountKindGlobalDocumentDB), + // Properties: &armcosmos.DatabaseAccountGetProperties{ + // ConsistencyPolicy: &armcosmos.ConsistencyPolicy{ + // DefaultConsistencyLevel: to.Ptr(armcosmos.DefaultConsistencyLevelSession), + // MaxIntervalInSeconds: to.Ptr[int32](5), + // MaxStalenessPrefix: to.Ptr[int64](100), + // }, + // Cors: []*armcosmos.CorsPolicy{ + // }, + // DatabaseAccountOfferType: to.Ptr("Standard"), + // DefaultIdentity: to.Ptr("FirstPartyIdentity"), + // DisableKeyBasedMetadataWriteAccess: to.Ptr(false), + // DocumentEndpoint: to.Ptr("https://ddb1.documents.azure.com:443/"), + // EnableFreeTier: to.Ptr(false), + // FailoverPolicies: []*armcosmos.FailoverPolicy{ + // { + // FailoverPriority: to.Ptr[int32](0), + // ID: to.Ptr("ddb1-eastus"), + // LocationName: to.Ptr("East US"), + // }}, + // IPRules: []*armcosmos.IPAddressOrRange{ + // }, + // KeysMetadata: &armcosmos.DatabaseAccountKeysMetadata{ + // PrimaryMasterKey: &armcosmos.AccountKeyMetadata{ + // GenerationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-02-25T20:30:11Z"); return t}()), + // }, + // PrimaryReadonlyMasterKey: &armcosmos.AccountKeyMetadata{ + // GenerationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-02-25T20:30:11Z"); return t}()), + // }, + // SecondaryMasterKey: &armcosmos.AccountKeyMetadata{ + // GenerationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-02-25T20:30:11Z"); return t}()), + // }, + // SecondaryReadonlyMasterKey: &armcosmos.AccountKeyMetadata{ + // GenerationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-02-25T20:30:11Z"); return t}()), + // }, + // }, + // Locations: []*armcosmos.Location{ + // { + // DocumentEndpoint: to.Ptr("https://ddb1-eastus.documents.azure.com:443/"), + // FailoverPriority: to.Ptr[int32](0), + // ID: to.Ptr("ddb1-eastus"), + // LocationName: to.Ptr("East US"), + // ProvisioningState: to.Ptr("Succeeded"), + // }}, + // MinimalTLSVersion: to.Ptr(armcosmos.MinimalTLSVersionTLS), + // NetworkACLBypass: to.Ptr(armcosmos.NetworkACLBypassNone), + // NetworkACLBypassResourceIDs: []*string{ + // }, + // ProvisioningState: to.Ptr("Succeeded"), + // ReadLocations: []*armcosmos.Location{ + // { + // DocumentEndpoint: to.Ptr("https://ddb1-eastus.documents.azure.com:443/"), + // FailoverPriority: to.Ptr[int32](0), + // ID: to.Ptr("ddb1-eastus"), + // LocationName: to.Ptr("East US"), + // ProvisioningState: to.Ptr("Succeeded"), + // }}, + // WriteLocations: []*armcosmos.Location{ + // { + // DocumentEndpoint: to.Ptr("https://ddb1-eastus.documents.azure.com:443/"), + // FailoverPriority: to.Ptr[int32](0), + // ID: to.Ptr("ddb1-eastus"), + // LocationName: to.Ptr("East US"), + // ProvisioningState: to.Ptr("Succeeded"), + // }}, + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBDatabaseAccountListKeys.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBDatabaseAccountListKeys.json func ExampleDatabaseAccountsClient_ListKeys() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -435,11 +1201,18 @@ func ExampleDatabaseAccountsClient_ListKeys() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.DatabaseAccountListKeysResult = armcosmos.DatabaseAccountListKeysResult{ + // PrimaryReadonlyMasterKey: to.Ptr("primaryReadonlyMasterKey"), + // SecondaryReadonlyMasterKey: to.Ptr("secondaryReadonlyMasterKey"), + // PrimaryMasterKey: to.Ptr("primaryMasterKey"), + // SecondaryMasterKey: to.Ptr("secondaryMasterKey"), + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBDatabaseAccountListConnectionStrings.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBDatabaseAccountListConnectionStrings.json func ExampleDatabaseAccountsClient_ListConnectionStrings_cosmosDbDatabaseAccountListConnectionStrings() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -454,11 +1227,14 @@ func ExampleDatabaseAccountsClient_ListConnectionStrings_cosmosDbDatabaseAccount if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.DatabaseAccountListConnectionStringsResult = armcosmos.DatabaseAccountListConnectionStringsResult{ + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBDatabaseAccountListConnectionStringsMongo.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBDatabaseAccountListConnectionStringsMongo.json func ExampleDatabaseAccountsClient_ListConnectionStrings_cosmosDbDatabaseAccountListConnectionStringsMongo() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -473,11 +1249,19 @@ func ExampleDatabaseAccountsClient_ListConnectionStrings_cosmosDbDatabaseAccount if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.DatabaseAccountListConnectionStringsResult = armcosmos.DatabaseAccountListConnectionStringsResult{ + // ConnectionStrings: []*armcosmos.DatabaseAccountConnectionString{ + // { + // Description: to.Ptr("Name of the connection string"), + // ConnectionString: to.Ptr("connection-string"), + // }}, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBDatabaseAccountOfflineRegion.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBDatabaseAccountOfflineRegion.json func ExampleDatabaseAccountsClient_BeginOfflineRegion() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -498,7 +1282,7 @@ func ExampleDatabaseAccountsClient_BeginOfflineRegion() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBDatabaseAccountOnlineRegion.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBDatabaseAccountOnlineRegion.json func ExampleDatabaseAccountsClient_BeginOnlineRegion() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -519,7 +1303,7 @@ func ExampleDatabaseAccountsClient_BeginOnlineRegion() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBDatabaseAccountListReadOnlyKeys.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBDatabaseAccountListReadOnlyKeys.json func ExampleDatabaseAccountsClient_GetReadOnlyKeys() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -534,11 +1318,16 @@ func ExampleDatabaseAccountsClient_GetReadOnlyKeys() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.DatabaseAccountListReadOnlyKeysResult = armcosmos.DatabaseAccountListReadOnlyKeysResult{ + // PrimaryReadonlyMasterKey: to.Ptr("primaryReadonlyMasterKey"), + // SecondaryReadonlyMasterKey: to.Ptr("secondaryReadonlyMasterKey"), + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBDatabaseAccountRegenerateKey.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBDatabaseAccountRegenerateKey.json func ExampleDatabaseAccountsClient_BeginRegenerateKey() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -561,7 +1350,7 @@ func ExampleDatabaseAccountsClient_BeginRegenerateKey() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBDatabaseAccountCheckNameExists.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBDatabaseAccountCheckNameExists.json func ExampleDatabaseAccountsClient_CheckNameExists() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -578,7 +1367,7 @@ func ExampleDatabaseAccountsClient_CheckNameExists() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBDatabaseAccountGetMetrics.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBDatabaseAccountGetMetrics.json func ExampleDatabaseAccountsClient_NewListMetricsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -591,18 +1380,57 @@ func ExampleDatabaseAccountsClient_NewListMetricsPager() { } pager := client.NewListMetricsPager("rg1", "ddb1", "$filter=(name.value eq 'Total Requests') and timeGrain eq duration'PT5M' and startTime eq '2017-11-19T23:53:55.2780000Z' and endTime eq '2017-11-20T00:13:55.2780000Z", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.MetricListResult = armcosmos.MetricListResult{ + // Value: []*armcosmos.Metric{ + // { + // Name: &armcosmos.MetricName{ + // LocalizedValue: to.Ptr("Total Requests"), + // Value: to.Ptr("Total Requests"), + // }, + // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-20T00:13:55.2780000Z"); return t}()), + // MetricValues: []*armcosmos.MetricValue{ + // { + // Count: to.Ptr[int32](0), + // Average: to.Ptr[float64](0), + // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-19T23:53:55.2780000Z"); return t}()), + // Total: to.Ptr[float64](0), + // }, + // { + // Count: to.Ptr[int32](0), + // Average: to.Ptr[float64](0), + // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-19T23:58:55.2780000Z"); return t}()), + // Total: to.Ptr[float64](0), + // }, + // { + // Count: to.Ptr[int32](0), + // Average: to.Ptr[float64](0), + // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-20T00:03:55.2780000Z"); return t}()), + // Total: to.Ptr[float64](0), + // }, + // { + // Count: to.Ptr[int32](0), + // Average: to.Ptr[float64](0), + // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-20T00:08:55.2780000Z"); return t}()), + // Total: to.Ptr[float64](0), + // }}, + // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-19T23:53:55.2780000Z"); return t}()), + // TimeGrain: to.Ptr("PT5M"), + // Unit: to.Ptr(armcosmos.UnitTypeCount), + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBDatabaseAccountGetUsages.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBDatabaseAccountGetUsages.json func ExampleDatabaseAccountsClient_NewListUsagesPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -615,18 +1443,32 @@ func ExampleDatabaseAccountsClient_NewListUsagesPager() { } pager := client.NewListUsagesPager("rg1", "ddb1", &armcosmos.DatabaseAccountsClientListUsagesOptions{Filter: to.Ptr("$filter=name.value eq 'Storage'")}) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.UsagesResult = armcosmos.UsagesResult{ + // Value: []*armcosmos.Usage{ + // { + // Name: &armcosmos.MetricName{ + // LocalizedValue: to.Ptr("Storage"), + // Value: to.Ptr("Storage"), + // }, + // CurrentValue: to.Ptr[int64](0), + // Limit: to.Ptr[int64](10737418240), + // QuotaPeriod: to.Ptr("P1D"), + // Unit: to.Ptr(armcosmos.UnitTypeBytes), + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBDatabaseAccountGetMetricDefinitions.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBDatabaseAccountGetMetricDefinitions.json func ExampleDatabaseAccountsClient_NewListMetricDefinitionsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -639,13 +1481,39 @@ func ExampleDatabaseAccountsClient_NewListMetricDefinitionsPager() { } pager := client.NewListMetricDefinitionsPager("rg1", "ddb1", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.MetricDefinitionsListResult = armcosmos.MetricDefinitionsListResult{ + // Value: []*armcosmos.MetricDefinition{ + // { + // Name: &armcosmos.MetricName{ + // LocalizedValue: to.Ptr("Total Requests"), + // Value: to.Ptr("Total Requests"), + // }, + // MetricAvailabilities: []*armcosmos.MetricAvailability{ + // { + // Retention: to.Ptr("P2D"), + // TimeGrain: to.Ptr("PT5M"), + // }, + // { + // Retention: to.Ptr("P14D"), + // TimeGrain: to.Ptr("PT1H"), + // }, + // { + // Retention: to.Ptr("P60D"), + // TimeGrain: to.Ptr("P1D"), + // }}, + // PrimaryAggregationType: to.Ptr(armcosmos.PrimaryAggregationTypeTotal), + // ResourceURI: to.Ptr("/subscriptions/subId/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1"), + // Unit: to.Ptr(armcosmos.UnitTypeCount), + // }}, + // } } } diff --git a/sdk/resourcemanager/cosmos/armcosmos/datatransferjobs_client.go b/sdk/resourcemanager/cosmos/armcosmos/datatransferjobs_client.go deleted file mode 100644 index ad3affc24181..000000000000 --- a/sdk/resourcemanager/cosmos/armcosmos/datatransferjobs_client.go +++ /dev/null @@ -1,430 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armcosmos - -import ( - "context" - "errors" - "github.com/Azure/azure-sdk-for-go/sdk/azcore" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" - "net/http" - "net/url" - "strings" -) - -// DataTransferJobsClient contains the methods for the DataTransferJobs group. -// Don't use this type directly, use NewDataTransferJobsClient() instead. -type DataTransferJobsClient struct { - host string - subscriptionID string - pl runtime.Pipeline -} - -// NewDataTransferJobsClient creates a new instance of DataTransferJobsClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. -func NewDataTransferJobsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DataTransferJobsClient, error) { - if options == nil { - options = &arm.ClientOptions{} - } - ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint - if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { - ep = c.Endpoint - } - pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) - if err != nil { - return nil, err - } - client := &DataTransferJobsClient{ - subscriptionID: subscriptionID, - host: ep, - pl: pl, - } - return client, nil -} - -// Cancel - Cancels a Data Transfer Job. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// jobName - Name of the Data Transfer Job -// options - DataTransferJobsClientCancelOptions contains the optional parameters for the DataTransferJobsClient.Cancel method. -func (client *DataTransferJobsClient) Cancel(ctx context.Context, resourceGroupName string, accountName string, jobName string, options *DataTransferJobsClientCancelOptions) (DataTransferJobsClientCancelResponse, error) { - req, err := client.cancelCreateRequest(ctx, resourceGroupName, accountName, jobName, options) - if err != nil { - return DataTransferJobsClientCancelResponse{}, err - } - resp, err := client.pl.Do(req) - if err != nil { - return DataTransferJobsClientCancelResponse{}, err - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return DataTransferJobsClientCancelResponse{}, runtime.NewResponseError(resp) - } - return client.cancelHandleResponse(resp) -} - -// cancelCreateRequest creates the Cancel request. -func (client *DataTransferJobsClient) cancelCreateRequest(ctx context.Context, resourceGroupName string, accountName string, jobName string, options *DataTransferJobsClientCancelOptions) (*policy.Request, error) { - urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/dataTransferJobs/{jobName}/cancel" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - if resourceGroupName == "" { - return nil, errors.New("parameter resourceGroupName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) - if accountName == "" { - return nil, errors.New("parameter accountName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{accountName}", url.PathEscape(accountName)) - if jobName == "" { - return nil, errors.New("parameter jobName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{jobName}", url.PathEscape(jobName)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) - if err != nil { - return nil, err - } - reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") - req.Raw().URL.RawQuery = reqQP.Encode() - req.Raw().Header["Accept"] = []string{"application/json"} - return req, nil -} - -// cancelHandleResponse handles the Cancel response. -func (client *DataTransferJobsClient) cancelHandleResponse(resp *http.Response) (DataTransferJobsClientCancelResponse, error) { - result := DataTransferJobsClientCancelResponse{} - if err := runtime.UnmarshalAsJSON(resp, &result.DataTransferJobGetResults); err != nil { - return DataTransferJobsClientCancelResponse{}, err - } - return result, nil -} - -// Create - Creates a Data Transfer Job. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// jobName - Name of the Data Transfer Job -// options - DataTransferJobsClientCreateOptions contains the optional parameters for the DataTransferJobsClient.Create method. -func (client *DataTransferJobsClient) Create(ctx context.Context, resourceGroupName string, accountName string, jobName string, jobCreateParameters CreateJobRequest, options *DataTransferJobsClientCreateOptions) (DataTransferJobsClientCreateResponse, error) { - req, err := client.createCreateRequest(ctx, resourceGroupName, accountName, jobName, jobCreateParameters, options) - if err != nil { - return DataTransferJobsClientCreateResponse{}, err - } - resp, err := client.pl.Do(req) - if err != nil { - return DataTransferJobsClientCreateResponse{}, err - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return DataTransferJobsClientCreateResponse{}, runtime.NewResponseError(resp) - } - return client.createHandleResponse(resp) -} - -// createCreateRequest creates the Create request. -func (client *DataTransferJobsClient) createCreateRequest(ctx context.Context, resourceGroupName string, accountName string, jobName string, jobCreateParameters CreateJobRequest, options *DataTransferJobsClientCreateOptions) (*policy.Request, error) { - urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/dataTransferJobs/{jobName}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - if resourceGroupName == "" { - return nil, errors.New("parameter resourceGroupName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) - if accountName == "" { - return nil, errors.New("parameter accountName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{accountName}", url.PathEscape(accountName)) - if jobName == "" { - return nil, errors.New("parameter jobName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{jobName}", url.PathEscape(jobName)) - req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath)) - if err != nil { - return nil, err - } - reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") - req.Raw().URL.RawQuery = reqQP.Encode() - req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, jobCreateParameters) -} - -// createHandleResponse handles the Create response. -func (client *DataTransferJobsClient) createHandleResponse(resp *http.Response) (DataTransferJobsClientCreateResponse, error) { - result := DataTransferJobsClientCreateResponse{} - if err := runtime.UnmarshalAsJSON(resp, &result.DataTransferJobGetResults); err != nil { - return DataTransferJobsClientCreateResponse{}, err - } - return result, nil -} - -// Get - Get a Data Transfer Job. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// jobName - Name of the Data Transfer Job -// options - DataTransferJobsClientGetOptions contains the optional parameters for the DataTransferJobsClient.Get method. -func (client *DataTransferJobsClient) Get(ctx context.Context, resourceGroupName string, accountName string, jobName string, options *DataTransferJobsClientGetOptions) (DataTransferJobsClientGetResponse, error) { - req, err := client.getCreateRequest(ctx, resourceGroupName, accountName, jobName, options) - if err != nil { - return DataTransferJobsClientGetResponse{}, err - } - resp, err := client.pl.Do(req) - if err != nil { - return DataTransferJobsClientGetResponse{}, err - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return DataTransferJobsClientGetResponse{}, runtime.NewResponseError(resp) - } - return client.getHandleResponse(resp) -} - -// getCreateRequest creates the Get request. -func (client *DataTransferJobsClient) getCreateRequest(ctx context.Context, resourceGroupName string, accountName string, jobName string, options *DataTransferJobsClientGetOptions) (*policy.Request, error) { - urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/dataTransferJobs/{jobName}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - if resourceGroupName == "" { - return nil, errors.New("parameter resourceGroupName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) - if accountName == "" { - return nil, errors.New("parameter accountName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{accountName}", url.PathEscape(accountName)) - if jobName == "" { - return nil, errors.New("parameter jobName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{jobName}", url.PathEscape(jobName)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) - if err != nil { - return nil, err - } - reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") - req.Raw().URL.RawQuery = reqQP.Encode() - req.Raw().Header["Accept"] = []string{"application/json"} - return req, nil -} - -// getHandleResponse handles the Get response. -func (client *DataTransferJobsClient) getHandleResponse(resp *http.Response) (DataTransferJobsClientGetResponse, error) { - result := DataTransferJobsClientGetResponse{} - if err := runtime.UnmarshalAsJSON(resp, &result.DataTransferJobGetResults); err != nil { - return DataTransferJobsClientGetResponse{}, err - } - return result, nil -} - -// NewListByDatabaseAccountPager - Get a list of Data Transfer jobs. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// options - DataTransferJobsClientListByDatabaseAccountOptions contains the optional parameters for the DataTransferJobsClient.ListByDatabaseAccount -// method. -func (client *DataTransferJobsClient) NewListByDatabaseAccountPager(resourceGroupName string, accountName string, options *DataTransferJobsClientListByDatabaseAccountOptions) *runtime.Pager[DataTransferJobsClientListByDatabaseAccountResponse] { - return runtime.NewPager(runtime.PagingHandler[DataTransferJobsClientListByDatabaseAccountResponse]{ - More: func(page DataTransferJobsClientListByDatabaseAccountResponse) bool { - return page.NextLink != nil && len(*page.NextLink) > 0 - }, - Fetcher: func(ctx context.Context, page *DataTransferJobsClientListByDatabaseAccountResponse) (DataTransferJobsClientListByDatabaseAccountResponse, error) { - var req *policy.Request - var err error - if page == nil { - req, err = client.listByDatabaseAccountCreateRequest(ctx, resourceGroupName, accountName, options) - } else { - req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) - } - if err != nil { - return DataTransferJobsClientListByDatabaseAccountResponse{}, err - } - resp, err := client.pl.Do(req) - if err != nil { - return DataTransferJobsClientListByDatabaseAccountResponse{}, err - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return DataTransferJobsClientListByDatabaseAccountResponse{}, runtime.NewResponseError(resp) - } - return client.listByDatabaseAccountHandleResponse(resp) - }, - }) -} - -// listByDatabaseAccountCreateRequest creates the ListByDatabaseAccount request. -func (client *DataTransferJobsClient) listByDatabaseAccountCreateRequest(ctx context.Context, resourceGroupName string, accountName string, options *DataTransferJobsClientListByDatabaseAccountOptions) (*policy.Request, error) { - urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/dataTransferJobs" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - if resourceGroupName == "" { - return nil, errors.New("parameter resourceGroupName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) - if accountName == "" { - return nil, errors.New("parameter accountName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{accountName}", url.PathEscape(accountName)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) - if err != nil { - return nil, err - } - reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") - req.Raw().URL.RawQuery = reqQP.Encode() - req.Raw().Header["Accept"] = []string{"application/json"} - return req, nil -} - -// listByDatabaseAccountHandleResponse handles the ListByDatabaseAccount response. -func (client *DataTransferJobsClient) listByDatabaseAccountHandleResponse(resp *http.Response) (DataTransferJobsClientListByDatabaseAccountResponse, error) { - result := DataTransferJobsClientListByDatabaseAccountResponse{} - if err := runtime.UnmarshalAsJSON(resp, &result.DataTransferJobFeedResults); err != nil { - return DataTransferJobsClientListByDatabaseAccountResponse{}, err - } - return result, nil -} - -// Pause - Pause a Data Transfer Job. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// jobName - Name of the Data Transfer Job -// options - DataTransferJobsClientPauseOptions contains the optional parameters for the DataTransferJobsClient.Pause method. -func (client *DataTransferJobsClient) Pause(ctx context.Context, resourceGroupName string, accountName string, jobName string, options *DataTransferJobsClientPauseOptions) (DataTransferJobsClientPauseResponse, error) { - req, err := client.pauseCreateRequest(ctx, resourceGroupName, accountName, jobName, options) - if err != nil { - return DataTransferJobsClientPauseResponse{}, err - } - resp, err := client.pl.Do(req) - if err != nil { - return DataTransferJobsClientPauseResponse{}, err - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return DataTransferJobsClientPauseResponse{}, runtime.NewResponseError(resp) - } - return client.pauseHandleResponse(resp) -} - -// pauseCreateRequest creates the Pause request. -func (client *DataTransferJobsClient) pauseCreateRequest(ctx context.Context, resourceGroupName string, accountName string, jobName string, options *DataTransferJobsClientPauseOptions) (*policy.Request, error) { - urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/dataTransferJobs/{jobName}/pause" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - if resourceGroupName == "" { - return nil, errors.New("parameter resourceGroupName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) - if accountName == "" { - return nil, errors.New("parameter accountName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{accountName}", url.PathEscape(accountName)) - if jobName == "" { - return nil, errors.New("parameter jobName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{jobName}", url.PathEscape(jobName)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) - if err != nil { - return nil, err - } - reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") - req.Raw().URL.RawQuery = reqQP.Encode() - req.Raw().Header["Accept"] = []string{"application/json"} - return req, nil -} - -// pauseHandleResponse handles the Pause response. -func (client *DataTransferJobsClient) pauseHandleResponse(resp *http.Response) (DataTransferJobsClientPauseResponse, error) { - result := DataTransferJobsClientPauseResponse{} - if err := runtime.UnmarshalAsJSON(resp, &result.DataTransferJobGetResults); err != nil { - return DataTransferJobsClientPauseResponse{}, err - } - return result, nil -} - -// Resume - Resumes a Data Transfer Job. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// jobName - Name of the Data Transfer Job -// options - DataTransferJobsClientResumeOptions contains the optional parameters for the DataTransferJobsClient.Resume method. -func (client *DataTransferJobsClient) Resume(ctx context.Context, resourceGroupName string, accountName string, jobName string, options *DataTransferJobsClientResumeOptions) (DataTransferJobsClientResumeResponse, error) { - req, err := client.resumeCreateRequest(ctx, resourceGroupName, accountName, jobName, options) - if err != nil { - return DataTransferJobsClientResumeResponse{}, err - } - resp, err := client.pl.Do(req) - if err != nil { - return DataTransferJobsClientResumeResponse{}, err - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return DataTransferJobsClientResumeResponse{}, runtime.NewResponseError(resp) - } - return client.resumeHandleResponse(resp) -} - -// resumeCreateRequest creates the Resume request. -func (client *DataTransferJobsClient) resumeCreateRequest(ctx context.Context, resourceGroupName string, accountName string, jobName string, options *DataTransferJobsClientResumeOptions) (*policy.Request, error) { - urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/dataTransferJobs/{jobName}/resume" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - if resourceGroupName == "" { - return nil, errors.New("parameter resourceGroupName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) - if accountName == "" { - return nil, errors.New("parameter accountName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{accountName}", url.PathEscape(accountName)) - if jobName == "" { - return nil, errors.New("parameter jobName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{jobName}", url.PathEscape(jobName)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) - if err != nil { - return nil, err - } - reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") - req.Raw().URL.RawQuery = reqQP.Encode() - req.Raw().Header["Accept"] = []string{"application/json"} - return req, nil -} - -// resumeHandleResponse handles the Resume response. -func (client *DataTransferJobsClient) resumeHandleResponse(resp *http.Response) (DataTransferJobsClientResumeResponse, error) { - result := DataTransferJobsClientResumeResponse{} - if err := runtime.UnmarshalAsJSON(resp, &result.DataTransferJobGetResults); err != nil { - return DataTransferJobsClientResumeResponse{}, err - } - return result, nil -} diff --git a/sdk/resourcemanager/cosmos/armcosmos/datatransferjobs_client_example_test.go b/sdk/resourcemanager/cosmos/armcosmos/datatransferjobs_client_example_test.go deleted file mode 100644 index 621df8cde16b..000000000000 --- a/sdk/resourcemanager/cosmos/armcosmos/datatransferjobs_client_example_test.go +++ /dev/null @@ -1,150 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armcosmos_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cosmos/armcosmos/v2" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/data-transfer-service/CosmosDBDataTransferJobCreate.json -func ExampleDataTransferJobsClient_Create() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcosmos.NewDataTransferJobsClient("subid", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Create(ctx, "rg1", "ddb1", "j1", armcosmos.CreateJobRequest{ - Properties: &armcosmos.DataTransferJobProperties{ - Destination: &armcosmos.AzureBlobDataTransferDataSourceSink{ - Component: to.Ptr(armcosmos.DataTransferComponentAzureBlobStorage), - ContainerName: to.Ptr("blob_container"), - EndpointURL: to.Ptr("https://blob.windows.net"), - }, - Source: &armcosmos.CassandraDataTransferDataSourceSink{ - Component: to.Ptr(armcosmos.DataTransferComponentCosmosDBCassandra), - KeyspaceName: to.Ptr("keyspace"), - TableName: to.Ptr("table"), - }, - }, - }, nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/data-transfer-service/CosmosDBDataTransferJobGet.json -func ExampleDataTransferJobsClient_Get() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcosmos.NewDataTransferJobsClient("subid", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Get(ctx, "rg1", "ddb1", "j1", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/data-transfer-service/CosmosDBDataTransferJobPause.json -func ExampleDataTransferJobsClient_Pause() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcosmos.NewDataTransferJobsClient("subid", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Pause(ctx, "rg1", "ddb1", "j1", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/data-transfer-service/CosmosDBDataTransferJobResume.json -func ExampleDataTransferJobsClient_Resume() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcosmos.NewDataTransferJobsClient("subid", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Resume(ctx, "rg1", "ddb1", "j1", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/data-transfer-service/CosmosDBDataTransferJobCancel.json -func ExampleDataTransferJobsClient_Cancel() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcosmos.NewDataTransferJobsClient("subid", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.Cancel(ctx, "rg1", "ddb1", "j1", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/data-transfer-service/CosmosDBDataTransferJobFeed.json -func ExampleDataTransferJobsClient_NewListByDatabaseAccountPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcosmos.NewDataTransferJobsClient("subid", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListByDatabaseAccountPager("rg1", "ddb1", nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} diff --git a/sdk/resourcemanager/cosmos/armcosmos/go.mod b/sdk/resourcemanager/cosmos/armcosmos/go.mod index 602af7c03ef6..5a1314710fe7 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/go.mod +++ b/sdk/resourcemanager/cosmos/armcosmos/go.mod @@ -4,7 +4,7 @@ go 1.18 require ( github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.0 - github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.1.0 + github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.1 github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.1 github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0 github.com/stretchr/testify v1.7.0 @@ -12,10 +12,10 @@ require ( require ( github.com/Azure/azure-sdk-for-go/sdk/internal v1.0.0 // indirect - github.com/AzureAD/microsoft-authentication-library-for-go v0.5.1 // indirect + github.com/AzureAD/microsoft-authentication-library-for-go v0.8.1 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/dnaeon/go-vcr v1.1.0 // indirect - github.com/golang-jwt/jwt v3.2.1+incompatible // indirect + github.com/golang-jwt/jwt/v4 v4.4.2 // 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 diff --git a/sdk/resourcemanager/cosmos/armcosmos/go.sum b/sdk/resourcemanager/cosmos/armcosmos/go.sum index 1b67d30343d7..fb080565c360 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/go.sum +++ b/sdk/resourcemanager/cosmos/armcosmos/go.sum @@ -1,29 +1,27 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.0 h1:Ut0ZGdOwJDw0npYEg+TLlPls3Pq6JiZaP2/aGKir7Zw= github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.0/go.mod h1:uGG2W01BaETf0Ozp+QxxKJdMBNRWPdstHG0Fmdwn1/U= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.1.0 h1:QkAcEIAKbNL4KoFr4SathZPhDhF4mVwpBMFlYjyAqy8= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.1.0/go.mod h1:bhXu1AjYL+wutSL/kpSq6s7733q2Rb0yuot9Zgfqa/0= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.1 h1:T8quHYlUGyb/oqtSTwqlCr1ilJHrDv+ZtpSfo+hm1BU= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.1/go.mod h1:gLa1CL2RNE4s7M3yopJ/p0iq5DdY6Yv5ZUt9MTRZOQM= 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/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.1 h1:BZOe7ExNYNGmapT91ZUrxtMYsqVljMxTHEnwjOdG7pk= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.1/go.mod h1:TSPEzbGHEgqFa3kUn09SpCrfKNbj7+mMulU/72Vg84E= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0 h1:ECsQtyERDVz3NP3kvDOTLvbQhqWp/x9EsGKtb4ogUr8= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0/go.mod h1:s1tW/At+xHqjNFvWU4G0c0Qv33KOhvbGNj0RCTQDV8s= -github.com/AzureAD/microsoft-authentication-library-for-go v0.5.1 h1:BWe8a+f/t+7KY7zH2mqygeUD0t8hNFXe08p1Pb3/jKE= -github.com/AzureAD/microsoft-authentication-library-for-go v0.5.1/go.mod h1:Vt9sXTKwMyGcOxSmLDMnGPgqsUg7m8pe215qMLrDXw4= +github.com/AzureAD/microsoft-authentication-library-for-go v0.8.1 h1:oPdPEZFSbl7oSPEAIPMPBMUmiL+mqgzBJwM/9qYcwNg= +github.com/AzureAD/microsoft-authentication-library-for-go v0.8.1/go.mod h1:4qFor3D/HDsvBME35Xy9rwW9DecL+M2sNw1ybjPtwA0= 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/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 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= +github.com/golang-jwt/jwt/v4 v4.4.2 h1:rcc4lwaZgFMCZ5jxF9ABolDcIHdBytAFgqFPbSJQAYs= +github.com/golang-jwt/jwt/v4 v4.4.2/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= 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= @@ -35,7 +33,6 @@ golang.org/x/crypto v0.0.0-20220511200225-c6db032c6c88 h1:Tgea0cVUD0ivh5ADBX4Wwu 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-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= diff --git a/sdk/resourcemanager/cosmos/armcosmos/graphresources_client.go b/sdk/resourcemanager/cosmos/armcosmos/graphresources_client.go deleted file mode 100644 index ea19291fff91..000000000000 --- a/sdk/resourcemanager/cosmos/armcosmos/graphresources_client.go +++ /dev/null @@ -1,316 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DO NOT EDIT. - -package armcosmos - -import ( - "context" - "errors" - "github.com/Azure/azure-sdk-for-go/sdk/azcore" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" - armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" - "net/http" - "net/url" - "strings" -) - -// GraphResourcesClient contains the methods for the GraphResources group. -// Don't use this type directly, use NewGraphResourcesClient() instead. -type GraphResourcesClient struct { - host string - subscriptionID string - pl runtime.Pipeline -} - -// NewGraphResourcesClient creates a new instance of GraphResourcesClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. -func NewGraphResourcesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*GraphResourcesClient, error) { - if options == nil { - options = &arm.ClientOptions{} - } - ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint - if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { - ep = c.Endpoint - } - pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) - if err != nil { - return nil, err - } - client := &GraphResourcesClient{ - subscriptionID: subscriptionID, - host: ep, - pl: pl, - } - return client, nil -} - -// BeginCreateUpdateGraph - Create or update an Azure Cosmos DB Graph. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// graphName - Cosmos DB graph resource name. -// createUpdateGraphParameters - The parameters to provide for the current graph. -// options - GraphResourcesClientBeginCreateUpdateGraphOptions contains the optional parameters for the GraphResourcesClient.BeginCreateUpdateGraph -// method. -func (client *GraphResourcesClient) BeginCreateUpdateGraph(ctx context.Context, resourceGroupName string, accountName string, graphName string, createUpdateGraphParameters GraphResourceCreateUpdateParameters, options *GraphResourcesClientBeginCreateUpdateGraphOptions) (*runtime.Poller[GraphResourcesClientCreateUpdateGraphResponse], error) { - if options == nil || options.ResumeToken == "" { - resp, err := client.createUpdateGraph(ctx, resourceGroupName, accountName, graphName, createUpdateGraphParameters, options) - if err != nil { - return nil, err - } - return runtime.NewPoller[GraphResourcesClientCreateUpdateGraphResponse](resp, client.pl, nil) - } else { - return runtime.NewPollerFromResumeToken[GraphResourcesClientCreateUpdateGraphResponse](options.ResumeToken, client.pl, nil) - } -} - -// CreateUpdateGraph - Create or update an Azure Cosmos DB Graph. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -func (client *GraphResourcesClient) createUpdateGraph(ctx context.Context, resourceGroupName string, accountName string, graphName string, createUpdateGraphParameters GraphResourceCreateUpdateParameters, options *GraphResourcesClientBeginCreateUpdateGraphOptions) (*http.Response, error) { - req, err := client.createUpdateGraphCreateRequest(ctx, resourceGroupName, accountName, graphName, createUpdateGraphParameters, options) - if err != nil { - return nil, err - } - resp, err := client.pl.Do(req) - if err != nil { - return nil, err - } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) - } - return resp, nil -} - -// createUpdateGraphCreateRequest creates the CreateUpdateGraph request. -func (client *GraphResourcesClient) createUpdateGraphCreateRequest(ctx context.Context, resourceGroupName string, accountName string, graphName string, createUpdateGraphParameters GraphResourceCreateUpdateParameters, options *GraphResourcesClientBeginCreateUpdateGraphOptions) (*policy.Request, error) { - urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/graphs/{graphName}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - if resourceGroupName == "" { - return nil, errors.New("parameter resourceGroupName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) - if accountName == "" { - return nil, errors.New("parameter accountName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{accountName}", url.PathEscape(accountName)) - if graphName == "" { - return nil, errors.New("parameter graphName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{graphName}", url.PathEscape(graphName)) - req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath)) - if err != nil { - return nil, err - } - reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") - req.Raw().URL.RawQuery = reqQP.Encode() - req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, createUpdateGraphParameters) -} - -// BeginDeleteGraphResource - Deletes an existing Azure Cosmos DB Graph Resource. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// graphName - Cosmos DB graph resource name. -// options - GraphResourcesClientBeginDeleteGraphResourceOptions contains the optional parameters for the GraphResourcesClient.BeginDeleteGraphResource -// method. -func (client *GraphResourcesClient) BeginDeleteGraphResource(ctx context.Context, resourceGroupName string, accountName string, graphName string, options *GraphResourcesClientBeginDeleteGraphResourceOptions) (*runtime.Poller[GraphResourcesClientDeleteGraphResourceResponse], error) { - if options == nil || options.ResumeToken == "" { - resp, err := client.deleteGraphResource(ctx, resourceGroupName, accountName, graphName, options) - if err != nil { - return nil, err - } - return runtime.NewPoller[GraphResourcesClientDeleteGraphResourceResponse](resp, client.pl, nil) - } else { - return runtime.NewPollerFromResumeToken[GraphResourcesClientDeleteGraphResourceResponse](options.ResumeToken, client.pl, nil) - } -} - -// DeleteGraphResource - Deletes an existing Azure Cosmos DB Graph Resource. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -func (client *GraphResourcesClient) deleteGraphResource(ctx context.Context, resourceGroupName string, accountName string, graphName string, options *GraphResourcesClientBeginDeleteGraphResourceOptions) (*http.Response, error) { - req, err := client.deleteGraphResourceCreateRequest(ctx, resourceGroupName, accountName, graphName, options) - if err != nil { - return nil, err - } - resp, err := client.pl.Do(req) - if err != nil { - return nil, err - } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { - return nil, runtime.NewResponseError(resp) - } - return resp, nil -} - -// deleteGraphResourceCreateRequest creates the DeleteGraphResource request. -func (client *GraphResourcesClient) deleteGraphResourceCreateRequest(ctx context.Context, resourceGroupName string, accountName string, graphName string, options *GraphResourcesClientBeginDeleteGraphResourceOptions) (*policy.Request, error) { - urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/graphs/{graphName}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - if resourceGroupName == "" { - return nil, errors.New("parameter resourceGroupName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) - if accountName == "" { - return nil, errors.New("parameter accountName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{accountName}", url.PathEscape(accountName)) - if graphName == "" { - return nil, errors.New("parameter graphName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{graphName}", url.PathEscape(graphName)) - req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath)) - if err != nil { - return nil, err - } - reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") - req.Raw().URL.RawQuery = reqQP.Encode() - return req, nil -} - -// GetGraph - Gets the Graph resource under an existing Azure Cosmos DB database account with the provided name. -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// graphName - Cosmos DB graph resource name. -// options - GraphResourcesClientGetGraphOptions contains the optional parameters for the GraphResourcesClient.GetGraph method. -func (client *GraphResourcesClient) GetGraph(ctx context.Context, resourceGroupName string, accountName string, graphName string, options *GraphResourcesClientGetGraphOptions) (GraphResourcesClientGetGraphResponse, error) { - req, err := client.getGraphCreateRequest(ctx, resourceGroupName, accountName, graphName, options) - if err != nil { - return GraphResourcesClientGetGraphResponse{}, err - } - resp, err := client.pl.Do(req) - if err != nil { - return GraphResourcesClientGetGraphResponse{}, err - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return GraphResourcesClientGetGraphResponse{}, runtime.NewResponseError(resp) - } - return client.getGraphHandleResponse(resp) -} - -// getGraphCreateRequest creates the GetGraph request. -func (client *GraphResourcesClient) getGraphCreateRequest(ctx context.Context, resourceGroupName string, accountName string, graphName string, options *GraphResourcesClientGetGraphOptions) (*policy.Request, error) { - urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/graphs/{graphName}" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - if resourceGroupName == "" { - return nil, errors.New("parameter resourceGroupName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) - if accountName == "" { - return nil, errors.New("parameter accountName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{accountName}", url.PathEscape(accountName)) - if graphName == "" { - return nil, errors.New("parameter graphName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{graphName}", url.PathEscape(graphName)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) - if err != nil { - return nil, err - } - reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") - req.Raw().URL.RawQuery = reqQP.Encode() - req.Raw().Header["Accept"] = []string{"application/json"} - return req, nil -} - -// getGraphHandleResponse handles the GetGraph response. -func (client *GraphResourcesClient) getGraphHandleResponse(resp *http.Response) (GraphResourcesClientGetGraphResponse, error) { - result := GraphResourcesClientGetGraphResponse{} - if err := runtime.UnmarshalAsJSON(resp, &result.GraphResourceGetResults); err != nil { - return GraphResourcesClientGetGraphResponse{}, err - } - return result, nil -} - -// NewListGraphsPager - Lists the graphs under an existing Azure Cosmos DB database account. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// options - GraphResourcesClientListGraphsOptions contains the optional parameters for the GraphResourcesClient.ListGraphs -// method. -func (client *GraphResourcesClient) NewListGraphsPager(resourceGroupName string, accountName string, options *GraphResourcesClientListGraphsOptions) *runtime.Pager[GraphResourcesClientListGraphsResponse] { - return runtime.NewPager(runtime.PagingHandler[GraphResourcesClientListGraphsResponse]{ - More: func(page GraphResourcesClientListGraphsResponse) bool { - return false - }, - Fetcher: func(ctx context.Context, page *GraphResourcesClientListGraphsResponse) (GraphResourcesClientListGraphsResponse, error) { - req, err := client.listGraphsCreateRequest(ctx, resourceGroupName, accountName, options) - if err != nil { - return GraphResourcesClientListGraphsResponse{}, err - } - resp, err := client.pl.Do(req) - if err != nil { - return GraphResourcesClientListGraphsResponse{}, err - } - if !runtime.HasStatusCode(resp, http.StatusOK) { - return GraphResourcesClientListGraphsResponse{}, runtime.NewResponseError(resp) - } - return client.listGraphsHandleResponse(resp) - }, - }) -} - -// listGraphsCreateRequest creates the ListGraphs request. -func (client *GraphResourcesClient) listGraphsCreateRequest(ctx context.Context, resourceGroupName string, accountName string, options *GraphResourcesClientListGraphsOptions) (*policy.Request, error) { - urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/graphs" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - if resourceGroupName == "" { - return nil, errors.New("parameter resourceGroupName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) - if accountName == "" { - return nil, errors.New("parameter accountName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{accountName}", url.PathEscape(accountName)) - req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) - if err != nil { - return nil, err - } - reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") - req.Raw().URL.RawQuery = reqQP.Encode() - req.Raw().Header["Accept"] = []string{"application/json"} - return req, nil -} - -// listGraphsHandleResponse handles the ListGraphs response. -func (client *GraphResourcesClient) listGraphsHandleResponse(resp *http.Response) (GraphResourcesClientListGraphsResponse, error) { - result := GraphResourcesClientListGraphsResponse{} - if err := runtime.UnmarshalAsJSON(resp, &result.GraphResourcesListResult); err != nil { - return GraphResourcesClientListGraphsResponse{}, err - } - return result, nil -} diff --git a/sdk/resourcemanager/cosmos/armcosmos/graphresources_client_example_test.go b/sdk/resourcemanager/cosmos/armcosmos/graphresources_client_example_test.go deleted file mode 100644 index 83639dab9e91..000000000000 --- a/sdk/resourcemanager/cosmos/armcosmos/graphresources_client_example_test.go +++ /dev/null @@ -1,114 +0,0 @@ -//go:build go1.18 -// +build go1.18 - -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -package armcosmos_test - -import ( - "context" - "log" - - "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/azidentity" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cosmos/armcosmos/v2" -) - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBGraphResourceList.json -func ExampleGraphResourcesClient_NewListGraphsPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcosmos.NewGraphResourcesClient("subid", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListGraphsPager("rgName", "ddb1", nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBGraphResourceGet.json -func ExampleGraphResourcesClient_GetGraph() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcosmos.NewGraphResourcesClient("subid", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.GetGraph(ctx, "rg1", "ddb1", "graphName", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBGraphResourceCreateUpdate.json -func ExampleGraphResourcesClient_BeginCreateUpdateGraph() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcosmos.NewGraphResourcesClient("subid", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginCreateUpdateGraph(ctx, "rg1", "ddb1", "graphName", armcosmos.GraphResourceCreateUpdateParameters{ - Location: to.Ptr("West US"), - Tags: map[string]*string{}, - Properties: &armcosmos.GraphResourceCreateUpdateProperties{ - Options: &armcosmos.CreateUpdateOptions{}, - Resource: &armcosmos.GraphResource{ - ID: to.Ptr("graphName"), - }, - }, - }, 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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBGraphResourceDelete.json -func ExampleGraphResourcesClient_BeginDeleteGraphResource() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcosmos.NewGraphResourcesClient("subid", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginDeleteGraphResource(ctx, "rg1", "ddb1", "graphName", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - _, err = poller.PollUntilDone(ctx, nil) - if err != nil { - log.Fatalf("failed to pull the result: %v", err) - } -} diff --git a/sdk/resourcemanager/cosmos/armcosmos/gremlinresources_client.go b/sdk/resourcemanager/cosmos/armcosmos/gremlinresources_client.go index 9cd825c5e7ab..70c8d60a2f6a 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/gremlinresources_client.go +++ b/sdk/resourcemanager/cosmos/armcosmos/gremlinresources_client.go @@ -32,9 +32,9 @@ type GremlinResourcesClient struct { } // NewGremlinResourcesClient creates a new instance of GremlinResourcesClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewGremlinResourcesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*GremlinResourcesClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,13 +57,14 @@ func NewGremlinResourcesClient(subscriptionID string, credential azcore.TokenCre // BeginCreateUpdateGremlinDatabase - Create or update an Azure Cosmos DB Gremlin database // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseName - Cosmos DB database name. -// createUpdateGremlinDatabaseParameters - The parameters to provide for the current Gremlin database. -// options - GremlinResourcesClientBeginCreateUpdateGremlinDatabaseOptions contains the optional parameters for the GremlinResourcesClient.BeginCreateUpdateGremlinDatabase -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - databaseName - Cosmos DB database name. +// - createUpdateGremlinDatabaseParameters - The parameters to provide for the current Gremlin database. +// - options - GremlinResourcesClientBeginCreateUpdateGremlinDatabaseOptions contains the optional parameters for the GremlinResourcesClient.BeginCreateUpdateGremlinDatabase +// method. func (client *GremlinResourcesClient) BeginCreateUpdateGremlinDatabase(ctx context.Context, resourceGroupName string, accountName string, databaseName string, createUpdateGremlinDatabaseParameters GremlinDatabaseCreateUpdateParameters, options *GremlinResourcesClientBeginCreateUpdateGremlinDatabaseOptions) (*runtime.Poller[GremlinResourcesClientCreateUpdateGremlinDatabaseResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createUpdateGremlinDatabase(ctx, resourceGroupName, accountName, databaseName, createUpdateGremlinDatabaseParameters, options) @@ -78,7 +79,8 @@ func (client *GremlinResourcesClient) BeginCreateUpdateGremlinDatabase(ctx conte // CreateUpdateGremlinDatabase - Create or update an Azure Cosmos DB Gremlin database // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *GremlinResourcesClient) createUpdateGremlinDatabase(ctx context.Context, resourceGroupName string, accountName string, databaseName string, createUpdateGremlinDatabaseParameters GremlinDatabaseCreateUpdateParameters, options *GremlinResourcesClientBeginCreateUpdateGremlinDatabaseOptions) (*http.Response, error) { req, err := client.createUpdateGremlinDatabaseCreateRequest(ctx, resourceGroupName, accountName, databaseName, createUpdateGremlinDatabaseParameters, options) if err != nil { @@ -118,7 +120,7 @@ func (client *GremlinResourcesClient) createUpdateGremlinDatabaseCreateRequest(c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, createUpdateGremlinDatabaseParameters) @@ -126,14 +128,15 @@ func (client *GremlinResourcesClient) createUpdateGremlinDatabaseCreateRequest(c // BeginCreateUpdateGremlinGraph - Create or update an Azure Cosmos DB Gremlin graph // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseName - Cosmos DB database name. -// graphName - Cosmos DB graph name. -// createUpdateGremlinGraphParameters - The parameters to provide for the current Gremlin graph. -// options - GremlinResourcesClientBeginCreateUpdateGremlinGraphOptions contains the optional parameters for the GremlinResourcesClient.BeginCreateUpdateGremlinGraph -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - databaseName - Cosmos DB database name. +// - graphName - Cosmos DB graph name. +// - createUpdateGremlinGraphParameters - The parameters to provide for the current Gremlin graph. +// - options - GremlinResourcesClientBeginCreateUpdateGremlinGraphOptions contains the optional parameters for the GremlinResourcesClient.BeginCreateUpdateGremlinGraph +// method. func (client *GremlinResourcesClient) BeginCreateUpdateGremlinGraph(ctx context.Context, resourceGroupName string, accountName string, databaseName string, graphName string, createUpdateGremlinGraphParameters GremlinGraphCreateUpdateParameters, options *GremlinResourcesClientBeginCreateUpdateGremlinGraphOptions) (*runtime.Poller[GremlinResourcesClientCreateUpdateGremlinGraphResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createUpdateGremlinGraph(ctx, resourceGroupName, accountName, databaseName, graphName, createUpdateGremlinGraphParameters, options) @@ -148,7 +151,8 @@ func (client *GremlinResourcesClient) BeginCreateUpdateGremlinGraph(ctx context. // CreateUpdateGremlinGraph - Create or update an Azure Cosmos DB Gremlin graph // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *GremlinResourcesClient) createUpdateGremlinGraph(ctx context.Context, resourceGroupName string, accountName string, databaseName string, graphName string, createUpdateGremlinGraphParameters GremlinGraphCreateUpdateParameters, options *GremlinResourcesClientBeginCreateUpdateGremlinGraphOptions) (*http.Response, error) { req, err := client.createUpdateGremlinGraphCreateRequest(ctx, resourceGroupName, accountName, databaseName, graphName, createUpdateGremlinGraphParameters, options) if err != nil { @@ -192,7 +196,7 @@ func (client *GremlinResourcesClient) createUpdateGremlinGraphCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, createUpdateGremlinGraphParameters) @@ -200,12 +204,13 @@ func (client *GremlinResourcesClient) createUpdateGremlinGraphCreateRequest(ctx // BeginDeleteGremlinDatabase - Deletes an existing Azure Cosmos DB Gremlin database. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseName - Cosmos DB database name. -// options - GremlinResourcesClientBeginDeleteGremlinDatabaseOptions contains the optional parameters for the GremlinResourcesClient.BeginDeleteGremlinDatabase -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - databaseName - Cosmos DB database name. +// - options - GremlinResourcesClientBeginDeleteGremlinDatabaseOptions contains the optional parameters for the GremlinResourcesClient.BeginDeleteGremlinDatabase +// method. func (client *GremlinResourcesClient) BeginDeleteGremlinDatabase(ctx context.Context, resourceGroupName string, accountName string, databaseName string, options *GremlinResourcesClientBeginDeleteGremlinDatabaseOptions) (*runtime.Poller[GremlinResourcesClientDeleteGremlinDatabaseResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteGremlinDatabase(ctx, resourceGroupName, accountName, databaseName, options) @@ -220,7 +225,8 @@ func (client *GremlinResourcesClient) BeginDeleteGremlinDatabase(ctx context.Con // DeleteGremlinDatabase - Deletes an existing Azure Cosmos DB Gremlin database. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *GremlinResourcesClient) deleteGremlinDatabase(ctx context.Context, resourceGroupName string, accountName string, databaseName string, options *GremlinResourcesClientBeginDeleteGremlinDatabaseOptions) (*http.Response, error) { req, err := client.deleteGremlinDatabaseCreateRequest(ctx, resourceGroupName, accountName, databaseName, options) if err != nil { @@ -260,20 +266,21 @@ func (client *GremlinResourcesClient) deleteGremlinDatabaseCreateRequest(ctx con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() return req, nil } // BeginDeleteGremlinGraph - Deletes an existing Azure Cosmos DB Gremlin graph. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseName - Cosmos DB database name. -// graphName - Cosmos DB graph name. -// options - GremlinResourcesClientBeginDeleteGremlinGraphOptions contains the optional parameters for the GremlinResourcesClient.BeginDeleteGremlinGraph -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - databaseName - Cosmos DB database name. +// - graphName - Cosmos DB graph name. +// - options - GremlinResourcesClientBeginDeleteGremlinGraphOptions contains the optional parameters for the GremlinResourcesClient.BeginDeleteGremlinGraph +// method. func (client *GremlinResourcesClient) BeginDeleteGremlinGraph(ctx context.Context, resourceGroupName string, accountName string, databaseName string, graphName string, options *GremlinResourcesClientBeginDeleteGremlinGraphOptions) (*runtime.Poller[GremlinResourcesClientDeleteGremlinGraphResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteGremlinGraph(ctx, resourceGroupName, accountName, databaseName, graphName, options) @@ -288,7 +295,8 @@ func (client *GremlinResourcesClient) BeginDeleteGremlinGraph(ctx context.Contex // DeleteGremlinGraph - Deletes an existing Azure Cosmos DB Gremlin graph. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *GremlinResourcesClient) deleteGremlinGraph(ctx context.Context, resourceGroupName string, accountName string, databaseName string, graphName string, options *GremlinResourcesClientBeginDeleteGremlinGraphOptions) (*http.Response, error) { req, err := client.deleteGremlinGraphCreateRequest(ctx, resourceGroupName, accountName, databaseName, graphName, options) if err != nil { @@ -332,19 +340,20 @@ func (client *GremlinResourcesClient) deleteGremlinGraphCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() return req, nil } // GetGremlinDatabase - Gets the Gremlin databases under an existing Azure Cosmos DB database account with the provided name. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseName - Cosmos DB database name. -// options - GremlinResourcesClientGetGremlinDatabaseOptions contains the optional parameters for the GremlinResourcesClient.GetGremlinDatabase -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - databaseName - Cosmos DB database name. +// - options - GremlinResourcesClientGetGremlinDatabaseOptions contains the optional parameters for the GremlinResourcesClient.GetGremlinDatabase +// method. func (client *GremlinResourcesClient) GetGremlinDatabase(ctx context.Context, resourceGroupName string, accountName string, databaseName string, options *GremlinResourcesClientGetGremlinDatabaseOptions) (GremlinResourcesClientGetGremlinDatabaseResponse, error) { req, err := client.getGremlinDatabaseCreateRequest(ctx, resourceGroupName, accountName, databaseName, options) if err != nil { @@ -384,7 +393,7 @@ func (client *GremlinResourcesClient) getGremlinDatabaseCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -402,12 +411,13 @@ func (client *GremlinResourcesClient) getGremlinDatabaseHandleResponse(resp *htt // GetGremlinDatabaseThroughput - Gets the RUs per second of the Gremlin database under an existing Azure Cosmos DB database // account with the provided name. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseName - Cosmos DB database name. -// options - GremlinResourcesClientGetGremlinDatabaseThroughputOptions contains the optional parameters for the GremlinResourcesClient.GetGremlinDatabaseThroughput -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - databaseName - Cosmos DB database name. +// - options - GremlinResourcesClientGetGremlinDatabaseThroughputOptions contains the optional parameters for the GremlinResourcesClient.GetGremlinDatabaseThroughput +// method. func (client *GremlinResourcesClient) GetGremlinDatabaseThroughput(ctx context.Context, resourceGroupName string, accountName string, databaseName string, options *GremlinResourcesClientGetGremlinDatabaseThroughputOptions) (GremlinResourcesClientGetGremlinDatabaseThroughputResponse, error) { req, err := client.getGremlinDatabaseThroughputCreateRequest(ctx, resourceGroupName, accountName, databaseName, options) if err != nil { @@ -447,7 +457,7 @@ func (client *GremlinResourcesClient) getGremlinDatabaseThroughputCreateRequest( return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -464,13 +474,14 @@ func (client *GremlinResourcesClient) getGremlinDatabaseThroughputHandleResponse // GetGremlinGraph - Gets the Gremlin graph under an existing Azure Cosmos DB database account. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseName - Cosmos DB database name. -// graphName - Cosmos DB graph name. -// options - GremlinResourcesClientGetGremlinGraphOptions contains the optional parameters for the GremlinResourcesClient.GetGremlinGraph -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - databaseName - Cosmos DB database name. +// - graphName - Cosmos DB graph name. +// - options - GremlinResourcesClientGetGremlinGraphOptions contains the optional parameters for the GremlinResourcesClient.GetGremlinGraph +// method. func (client *GremlinResourcesClient) GetGremlinGraph(ctx context.Context, resourceGroupName string, accountName string, databaseName string, graphName string, options *GremlinResourcesClientGetGremlinGraphOptions) (GremlinResourcesClientGetGremlinGraphResponse, error) { req, err := client.getGremlinGraphCreateRequest(ctx, resourceGroupName, accountName, databaseName, graphName, options) if err != nil { @@ -514,7 +525,7 @@ func (client *GremlinResourcesClient) getGremlinGraphCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -532,13 +543,14 @@ func (client *GremlinResourcesClient) getGremlinGraphHandleResponse(resp *http.R // GetGremlinGraphThroughput - Gets the Gremlin graph throughput under an existing Azure Cosmos DB database account with the // provided name. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseName - Cosmos DB database name. -// graphName - Cosmos DB graph name. -// options - GremlinResourcesClientGetGremlinGraphThroughputOptions contains the optional parameters for the GremlinResourcesClient.GetGremlinGraphThroughput -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - databaseName - Cosmos DB database name. +// - graphName - Cosmos DB graph name. +// - options - GremlinResourcesClientGetGremlinGraphThroughputOptions contains the optional parameters for the GremlinResourcesClient.GetGremlinGraphThroughput +// method. func (client *GremlinResourcesClient) GetGremlinGraphThroughput(ctx context.Context, resourceGroupName string, accountName string, databaseName string, graphName string, options *GremlinResourcesClientGetGremlinGraphThroughputOptions) (GremlinResourcesClientGetGremlinGraphThroughputResponse, error) { req, err := client.getGremlinGraphThroughputCreateRequest(ctx, resourceGroupName, accountName, databaseName, graphName, options) if err != nil { @@ -582,7 +594,7 @@ func (client *GremlinResourcesClient) getGremlinGraphThroughputCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -598,11 +610,12 @@ func (client *GremlinResourcesClient) getGremlinGraphThroughputHandleResponse(re } // NewListGremlinDatabasesPager - Lists the Gremlin databases under an existing Azure Cosmos DB database account. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// options - GremlinResourcesClientListGremlinDatabasesOptions contains the optional parameters for the GremlinResourcesClient.ListGremlinDatabases -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - options - GremlinResourcesClientListGremlinDatabasesOptions contains the optional parameters for the GremlinResourcesClient.NewListGremlinDatabasesPager +// method. func (client *GremlinResourcesClient) NewListGremlinDatabasesPager(resourceGroupName string, accountName string, options *GremlinResourcesClientListGremlinDatabasesOptions) *runtime.Pager[GremlinResourcesClientListGremlinDatabasesResponse] { return runtime.NewPager(runtime.PagingHandler[GremlinResourcesClientListGremlinDatabasesResponse]{ More: func(page GremlinResourcesClientListGremlinDatabasesResponse) bool { @@ -645,7 +658,7 @@ func (client *GremlinResourcesClient) listGremlinDatabasesCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -661,12 +674,13 @@ func (client *GremlinResourcesClient) listGremlinDatabasesHandleResponse(resp *h } // NewListGremlinGraphsPager - Lists the Gremlin graph under an existing Azure Cosmos DB database account. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseName - Cosmos DB database name. -// options - GremlinResourcesClientListGremlinGraphsOptions contains the optional parameters for the GremlinResourcesClient.ListGremlinGraphs -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - databaseName - Cosmos DB database name. +// - options - GremlinResourcesClientListGremlinGraphsOptions contains the optional parameters for the GremlinResourcesClient.NewListGremlinGraphsPager +// method. func (client *GremlinResourcesClient) NewListGremlinGraphsPager(resourceGroupName string, accountName string, databaseName string, options *GremlinResourcesClientListGremlinGraphsOptions) *runtime.Pager[GremlinResourcesClientListGremlinGraphsResponse] { return runtime.NewPager(runtime.PagingHandler[GremlinResourcesClientListGremlinGraphsResponse]{ More: func(page GremlinResourcesClientListGremlinGraphsResponse) bool { @@ -713,7 +727,7 @@ func (client *GremlinResourcesClient) listGremlinGraphsCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -730,12 +744,13 @@ func (client *GremlinResourcesClient) listGremlinGraphsHandleResponse(resp *http // BeginMigrateGremlinDatabaseToAutoscale - Migrate an Azure Cosmos DB Gremlin database from manual throughput to autoscale // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseName - Cosmos DB database name. -// options - GremlinResourcesClientBeginMigrateGremlinDatabaseToAutoscaleOptions contains the optional parameters for the -// GremlinResourcesClient.BeginMigrateGremlinDatabaseToAutoscale method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - databaseName - Cosmos DB database name. +// - options - GremlinResourcesClientBeginMigrateGremlinDatabaseToAutoscaleOptions contains the optional parameters for the +// GremlinResourcesClient.BeginMigrateGremlinDatabaseToAutoscale method. func (client *GremlinResourcesClient) BeginMigrateGremlinDatabaseToAutoscale(ctx context.Context, resourceGroupName string, accountName string, databaseName string, options *GremlinResourcesClientBeginMigrateGremlinDatabaseToAutoscaleOptions) (*runtime.Poller[GremlinResourcesClientMigrateGremlinDatabaseToAutoscaleResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.migrateGremlinDatabaseToAutoscale(ctx, resourceGroupName, accountName, databaseName, options) @@ -750,7 +765,8 @@ func (client *GremlinResourcesClient) BeginMigrateGremlinDatabaseToAutoscale(ctx // MigrateGremlinDatabaseToAutoscale - Migrate an Azure Cosmos DB Gremlin database from manual throughput to autoscale // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *GremlinResourcesClient) migrateGremlinDatabaseToAutoscale(ctx context.Context, resourceGroupName string, accountName string, databaseName string, options *GremlinResourcesClientBeginMigrateGremlinDatabaseToAutoscaleOptions) (*http.Response, error) { req, err := client.migrateGremlinDatabaseToAutoscaleCreateRequest(ctx, resourceGroupName, accountName, databaseName, options) if err != nil { @@ -790,7 +806,7 @@ func (client *GremlinResourcesClient) migrateGremlinDatabaseToAutoscaleCreateReq return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -798,12 +814,13 @@ func (client *GremlinResourcesClient) migrateGremlinDatabaseToAutoscaleCreateReq // BeginMigrateGremlinDatabaseToManualThroughput - Migrate an Azure Cosmos DB Gremlin database from autoscale to manual throughput // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseName - Cosmos DB database name. -// options - GremlinResourcesClientBeginMigrateGremlinDatabaseToManualThroughputOptions contains the optional parameters for -// the GremlinResourcesClient.BeginMigrateGremlinDatabaseToManualThroughput method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - databaseName - Cosmos DB database name. +// - options - GremlinResourcesClientBeginMigrateGremlinDatabaseToManualThroughputOptions contains the optional parameters for +// the GremlinResourcesClient.BeginMigrateGremlinDatabaseToManualThroughput method. func (client *GremlinResourcesClient) BeginMigrateGremlinDatabaseToManualThroughput(ctx context.Context, resourceGroupName string, accountName string, databaseName string, options *GremlinResourcesClientBeginMigrateGremlinDatabaseToManualThroughputOptions) (*runtime.Poller[GremlinResourcesClientMigrateGremlinDatabaseToManualThroughputResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.migrateGremlinDatabaseToManualThroughput(ctx, resourceGroupName, accountName, databaseName, options) @@ -818,7 +835,8 @@ func (client *GremlinResourcesClient) BeginMigrateGremlinDatabaseToManualThrough // MigrateGremlinDatabaseToManualThroughput - Migrate an Azure Cosmos DB Gremlin database from autoscale to manual throughput // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *GremlinResourcesClient) migrateGremlinDatabaseToManualThroughput(ctx context.Context, resourceGroupName string, accountName string, databaseName string, options *GremlinResourcesClientBeginMigrateGremlinDatabaseToManualThroughputOptions) (*http.Response, error) { req, err := client.migrateGremlinDatabaseToManualThroughputCreateRequest(ctx, resourceGroupName, accountName, databaseName, options) if err != nil { @@ -858,7 +876,7 @@ func (client *GremlinResourcesClient) migrateGremlinDatabaseToManualThroughputCr return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -866,13 +884,14 @@ func (client *GremlinResourcesClient) migrateGremlinDatabaseToManualThroughputCr // BeginMigrateGremlinGraphToAutoscale - Migrate an Azure Cosmos DB Gremlin graph from manual throughput to autoscale // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseName - Cosmos DB database name. -// graphName - Cosmos DB graph name. -// options - GremlinResourcesClientBeginMigrateGremlinGraphToAutoscaleOptions contains the optional parameters for the GremlinResourcesClient.BeginMigrateGremlinGraphToAutoscale -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - databaseName - Cosmos DB database name. +// - graphName - Cosmos DB graph name. +// - options - GremlinResourcesClientBeginMigrateGremlinGraphToAutoscaleOptions contains the optional parameters for the GremlinResourcesClient.BeginMigrateGremlinGraphToAutoscale +// method. func (client *GremlinResourcesClient) BeginMigrateGremlinGraphToAutoscale(ctx context.Context, resourceGroupName string, accountName string, databaseName string, graphName string, options *GremlinResourcesClientBeginMigrateGremlinGraphToAutoscaleOptions) (*runtime.Poller[GremlinResourcesClientMigrateGremlinGraphToAutoscaleResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.migrateGremlinGraphToAutoscale(ctx, resourceGroupName, accountName, databaseName, graphName, options) @@ -887,7 +906,8 @@ func (client *GremlinResourcesClient) BeginMigrateGremlinGraphToAutoscale(ctx co // MigrateGremlinGraphToAutoscale - Migrate an Azure Cosmos DB Gremlin graph from manual throughput to autoscale // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *GremlinResourcesClient) migrateGremlinGraphToAutoscale(ctx context.Context, resourceGroupName string, accountName string, databaseName string, graphName string, options *GremlinResourcesClientBeginMigrateGremlinGraphToAutoscaleOptions) (*http.Response, error) { req, err := client.migrateGremlinGraphToAutoscaleCreateRequest(ctx, resourceGroupName, accountName, databaseName, graphName, options) if err != nil { @@ -931,7 +951,7 @@ func (client *GremlinResourcesClient) migrateGremlinGraphToAutoscaleCreateReques return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -939,13 +959,14 @@ func (client *GremlinResourcesClient) migrateGremlinGraphToAutoscaleCreateReques // BeginMigrateGremlinGraphToManualThroughput - Migrate an Azure Cosmos DB Gremlin graph from autoscale to manual throughput // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseName - Cosmos DB database name. -// graphName - Cosmos DB graph name. -// options - GremlinResourcesClientBeginMigrateGremlinGraphToManualThroughputOptions contains the optional parameters for -// the GremlinResourcesClient.BeginMigrateGremlinGraphToManualThroughput method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - databaseName - Cosmos DB database name. +// - graphName - Cosmos DB graph name. +// - options - GremlinResourcesClientBeginMigrateGremlinGraphToManualThroughputOptions contains the optional parameters for +// the GremlinResourcesClient.BeginMigrateGremlinGraphToManualThroughput method. func (client *GremlinResourcesClient) BeginMigrateGremlinGraphToManualThroughput(ctx context.Context, resourceGroupName string, accountName string, databaseName string, graphName string, options *GremlinResourcesClientBeginMigrateGremlinGraphToManualThroughputOptions) (*runtime.Poller[GremlinResourcesClientMigrateGremlinGraphToManualThroughputResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.migrateGremlinGraphToManualThroughput(ctx, resourceGroupName, accountName, databaseName, graphName, options) @@ -960,7 +981,8 @@ func (client *GremlinResourcesClient) BeginMigrateGremlinGraphToManualThroughput // MigrateGremlinGraphToManualThroughput - Migrate an Azure Cosmos DB Gremlin graph from autoscale to manual throughput // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *GremlinResourcesClient) migrateGremlinGraphToManualThroughput(ctx context.Context, resourceGroupName string, accountName string, databaseName string, graphName string, options *GremlinResourcesClientBeginMigrateGremlinGraphToManualThroughputOptions) (*http.Response, error) { req, err := client.migrateGremlinGraphToManualThroughputCreateRequest(ctx, resourceGroupName, accountName, databaseName, graphName, options) if err != nil { @@ -1004,7 +1026,7 @@ func (client *GremlinResourcesClient) migrateGremlinGraphToManualThroughputCreat return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1012,14 +1034,15 @@ func (client *GremlinResourcesClient) migrateGremlinGraphToManualThroughputCreat // BeginRetrieveContinuousBackupInformation - Retrieves continuous backup information for a gremlin graph. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseName - Cosmos DB database name. -// graphName - Cosmos DB graph name. -// location - The name of the continuous backup restore location. -// options - GremlinResourcesClientBeginRetrieveContinuousBackupInformationOptions contains the optional parameters for the -// GremlinResourcesClient.BeginRetrieveContinuousBackupInformation method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - databaseName - Cosmos DB database name. +// - graphName - Cosmos DB graph name. +// - location - The name of the continuous backup restore location. +// - options - GremlinResourcesClientBeginRetrieveContinuousBackupInformationOptions contains the optional parameters for the +// GremlinResourcesClient.BeginRetrieveContinuousBackupInformation method. func (client *GremlinResourcesClient) BeginRetrieveContinuousBackupInformation(ctx context.Context, resourceGroupName string, accountName string, databaseName string, graphName string, location ContinuousBackupRestoreLocation, options *GremlinResourcesClientBeginRetrieveContinuousBackupInformationOptions) (*runtime.Poller[GremlinResourcesClientRetrieveContinuousBackupInformationResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.retrieveContinuousBackupInformation(ctx, resourceGroupName, accountName, databaseName, graphName, location, options) @@ -1036,7 +1059,8 @@ func (client *GremlinResourcesClient) BeginRetrieveContinuousBackupInformation(c // RetrieveContinuousBackupInformation - Retrieves continuous backup information for a gremlin graph. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *GremlinResourcesClient) retrieveContinuousBackupInformation(ctx context.Context, resourceGroupName string, accountName string, databaseName string, graphName string, location ContinuousBackupRestoreLocation, options *GremlinResourcesClientBeginRetrieveContinuousBackupInformationOptions) (*http.Response, error) { req, err := client.retrieveContinuousBackupInformationCreateRequest(ctx, resourceGroupName, accountName, databaseName, graphName, location, options) if err != nil { @@ -1080,7 +1104,7 @@ func (client *GremlinResourcesClient) retrieveContinuousBackupInformationCreateR return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, location) @@ -1088,13 +1112,14 @@ func (client *GremlinResourcesClient) retrieveContinuousBackupInformationCreateR // BeginUpdateGremlinDatabaseThroughput - Update RUs per second of an Azure Cosmos DB Gremlin database // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseName - Cosmos DB database name. -// updateThroughputParameters - The RUs per second of the parameters to provide for the current Gremlin database. -// options - GremlinResourcesClientBeginUpdateGremlinDatabaseThroughputOptions contains the optional parameters for the GremlinResourcesClient.BeginUpdateGremlinDatabaseThroughput -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - databaseName - Cosmos DB database name. +// - updateThroughputParameters - The RUs per second of the parameters to provide for the current Gremlin database. +// - options - GremlinResourcesClientBeginUpdateGremlinDatabaseThroughputOptions contains the optional parameters for the GremlinResourcesClient.BeginUpdateGremlinDatabaseThroughput +// method. func (client *GremlinResourcesClient) BeginUpdateGremlinDatabaseThroughput(ctx context.Context, resourceGroupName string, accountName string, databaseName string, updateThroughputParameters ThroughputSettingsUpdateParameters, options *GremlinResourcesClientBeginUpdateGremlinDatabaseThroughputOptions) (*runtime.Poller[GremlinResourcesClientUpdateGremlinDatabaseThroughputResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.updateGremlinDatabaseThroughput(ctx, resourceGroupName, accountName, databaseName, updateThroughputParameters, options) @@ -1109,7 +1134,8 @@ func (client *GremlinResourcesClient) BeginUpdateGremlinDatabaseThroughput(ctx c // UpdateGremlinDatabaseThroughput - Update RUs per second of an Azure Cosmos DB Gremlin database // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *GremlinResourcesClient) updateGremlinDatabaseThroughput(ctx context.Context, resourceGroupName string, accountName string, databaseName string, updateThroughputParameters ThroughputSettingsUpdateParameters, options *GremlinResourcesClientBeginUpdateGremlinDatabaseThroughputOptions) (*http.Response, error) { req, err := client.updateGremlinDatabaseThroughputCreateRequest(ctx, resourceGroupName, accountName, databaseName, updateThroughputParameters, options) if err != nil { @@ -1149,7 +1175,7 @@ func (client *GremlinResourcesClient) updateGremlinDatabaseThroughputCreateReque return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, updateThroughputParameters) @@ -1157,14 +1183,15 @@ func (client *GremlinResourcesClient) updateGremlinDatabaseThroughputCreateReque // BeginUpdateGremlinGraphThroughput - Update RUs per second of an Azure Cosmos DB Gremlin graph // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseName - Cosmos DB database name. -// graphName - Cosmos DB graph name. -// updateThroughputParameters - The RUs per second of the parameters to provide for the current Gremlin graph. -// options - GremlinResourcesClientBeginUpdateGremlinGraphThroughputOptions contains the optional parameters for the GremlinResourcesClient.BeginUpdateGremlinGraphThroughput -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - databaseName - Cosmos DB database name. +// - graphName - Cosmos DB graph name. +// - updateThroughputParameters - The RUs per second of the parameters to provide for the current Gremlin graph. +// - options - GremlinResourcesClientBeginUpdateGremlinGraphThroughputOptions contains the optional parameters for the GremlinResourcesClient.BeginUpdateGremlinGraphThroughput +// method. func (client *GremlinResourcesClient) BeginUpdateGremlinGraphThroughput(ctx context.Context, resourceGroupName string, accountName string, databaseName string, graphName string, updateThroughputParameters ThroughputSettingsUpdateParameters, options *GremlinResourcesClientBeginUpdateGremlinGraphThroughputOptions) (*runtime.Poller[GremlinResourcesClientUpdateGremlinGraphThroughputResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.updateGremlinGraphThroughput(ctx, resourceGroupName, accountName, databaseName, graphName, updateThroughputParameters, options) @@ -1179,7 +1206,8 @@ func (client *GremlinResourcesClient) BeginUpdateGremlinGraphThroughput(ctx cont // UpdateGremlinGraphThroughput - Update RUs per second of an Azure Cosmos DB Gremlin graph // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *GremlinResourcesClient) updateGremlinGraphThroughput(ctx context.Context, resourceGroupName string, accountName string, databaseName string, graphName string, updateThroughputParameters ThroughputSettingsUpdateParameters, options *GremlinResourcesClientBeginUpdateGremlinGraphThroughputOptions) (*http.Response, error) { req, err := client.updateGremlinGraphThroughputCreateRequest(ctx, resourceGroupName, accountName, databaseName, graphName, updateThroughputParameters, options) if err != nil { @@ -1223,7 +1251,7 @@ func (client *GremlinResourcesClient) updateGremlinGraphThroughputCreateRequest( return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, updateThroughputParameters) diff --git a/sdk/resourcemanager/cosmos/armcosmos/gremlinresources_client_example_test.go b/sdk/resourcemanager/cosmos/armcosmos/gremlinresources_client_example_test.go index 9cd609e58ddc..2d9cabbec244 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/gremlinresources_client_example_test.go +++ b/sdk/resourcemanager/cosmos/armcosmos/gremlinresources_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armcosmos_test @@ -17,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cosmos/armcosmos/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBGremlinDatabaseList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBGremlinDatabaseList.json func ExampleGremlinResourcesClient_NewListGremlinDatabasesPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -30,18 +31,38 @@ func ExampleGremlinResourcesClient_NewListGremlinDatabasesPager() { } pager := client.NewListGremlinDatabasesPager("rgName", "ddb1", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.GremlinDatabaseListResult = armcosmos.GremlinDatabaseListResult{ + // Value: []*armcosmos.GremlinDatabaseGetResults{ + // { + // Name: to.Ptr("databaseName"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/gremlinDatabases"), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/gremlinDatabases/databaseName"), + // Location: to.Ptr("West US"), + // Tags: map[string]*string{ + // }, + // Properties: &armcosmos.GremlinDatabaseGetProperties{ + // Resource: &armcosmos.GremlinDatabaseGetPropertiesResource{ + // Etag: to.Ptr("\"00000a00-0000-0000-0000-56672f920000\""), + // Rid: to.Ptr("CqNBAA=="), + // Ts: to.Ptr[float32](1449602962), + // ID: to.Ptr("databaseName"), + // }, + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBGremlinDatabaseGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBGremlinDatabaseGet.json func ExampleGremlinResourcesClient_GetGremlinDatabase() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -56,11 +77,28 @@ func ExampleGremlinResourcesClient_GetGremlinDatabase() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.GremlinDatabaseGetResults = armcosmos.GremlinDatabaseGetResults{ + // Name: to.Ptr("databaseName"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/gremlinDatabases"), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/gremlinDatabases/databaseName"), + // Location: to.Ptr("West US"), + // Tags: map[string]*string{ + // }, + // Properties: &armcosmos.GremlinDatabaseGetProperties{ + // Resource: &armcosmos.GremlinDatabaseGetPropertiesResource{ + // Etag: to.Ptr("\"00000a00-0000-0000-0000-56672f920000\""), + // Rid: to.Ptr("CqNBAA=="), + // Ts: to.Ptr[float32](1449602962), + // ID: to.Ptr("databaseName"), + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBGremlinDatabaseCreateUpdate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBGremlinDatabaseCreateUpdate.json func ExampleGremlinResourcesClient_BeginCreateUpdateGremlinDatabase() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -88,11 +126,28 @@ func ExampleGremlinResourcesClient_BeginCreateUpdateGremlinDatabase() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.GremlinDatabaseGetResults = armcosmos.GremlinDatabaseGetResults{ + // Name: to.Ptr("databaseName"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/gremlinDatabases"), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/gremlinDatabases/databaseName"), + // Location: to.Ptr("West US"), + // Tags: map[string]*string{ + // }, + // Properties: &armcosmos.GremlinDatabaseGetProperties{ + // Resource: &armcosmos.GremlinDatabaseGetPropertiesResource{ + // Etag: to.Ptr("\"00000a00-0000-0000-0000-56672f920000\""), + // Rid: to.Ptr("CqNBAA=="), + // Ts: to.Ptr[float32](1449602962), + // ID: to.Ptr("databaseName"), + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBGremlinDatabaseDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBGremlinDatabaseDelete.json func ExampleGremlinResourcesClient_BeginDeleteGremlinDatabase() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -113,7 +168,7 @@ func ExampleGremlinResourcesClient_BeginDeleteGremlinDatabase() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBGremlinDatabaseThroughputGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBGremlinDatabaseThroughputGet.json func ExampleGremlinResourcesClient_GetGremlinDatabaseThroughput() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -128,11 +183,30 @@ func ExampleGremlinResourcesClient_GetGremlinDatabaseThroughput() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.ThroughputSettingsGetResults = armcosmos.ThroughputSettingsGetResults{ + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/throughputSettings"), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/gremlinDatabases/databaseName/throughputSettings/default"), + // Location: to.Ptr("West US"), + // Tags: map[string]*string{ + // }, + // Properties: &armcosmos.ThroughputSettingsGetProperties{ + // Resource: &armcosmos.ThroughputSettingsGetPropertiesResource{ + // Etag: to.Ptr("\"00005900-0000-0000-0000-56f9a2630000\""), + // Rid: to.Ptr("PD5DALigDgw="), + // Ts: to.Ptr[float32](1459200611), + // MinimumThroughput: to.Ptr("400"), + // OfferReplacePending: to.Ptr("true"), + // Throughput: to.Ptr[int32](400), + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBGremlinDatabaseThroughputUpdate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBGremlinDatabaseThroughputUpdate.json func ExampleGremlinResourcesClient_BeginUpdateGremlinDatabaseThroughput() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -159,11 +233,30 @@ func ExampleGremlinResourcesClient_BeginUpdateGremlinDatabaseThroughput() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.ThroughputSettingsGetResults = armcosmos.ThroughputSettingsGetResults{ + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/throughputSettings"), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/gremlinDatabases/databaseName/throughputSettings/default"), + // Location: to.Ptr("West US"), + // Tags: map[string]*string{ + // }, + // Properties: &armcosmos.ThroughputSettingsGetProperties{ + // Resource: &armcosmos.ThroughputSettingsGetPropertiesResource{ + // Etag: to.Ptr("\"00005900-0000-0000-0000-56f9a2630000\""), + // Rid: to.Ptr("PD5DALigDgw="), + // Ts: to.Ptr[float32](1459200611), + // MinimumThroughput: to.Ptr("400"), + // OfferReplacePending: to.Ptr("true"), + // Throughput: to.Ptr[int32](400), + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBGremlinDatabaseMigrateToAutoscale.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBGremlinDatabaseMigrateToAutoscale.json func ExampleGremlinResourcesClient_BeginMigrateGremlinDatabaseToAutoscale() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -182,11 +275,27 @@ func ExampleGremlinResourcesClient_BeginMigrateGremlinDatabaseToAutoscale() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.ThroughputSettingsGetResults = armcosmos.ThroughputSettingsGetResults{ + // Properties: &armcosmos.ThroughputSettingsGetProperties{ + // Resource: &armcosmos.ThroughputSettingsGetPropertiesResource{ + // Etag: to.Ptr("\"00005900-0000-0000-0000-56f9a2630000\""), + // Rid: to.Ptr("PD5DALigDgw="), + // Ts: to.Ptr[float32](1459200611), + // AutoscaleSettings: &armcosmos.AutoscaleSettingsResource{ + // MaxThroughput: to.Ptr[int32](4000), + // }, + // MinimumThroughput: to.Ptr("4000"), + // OfferReplacePending: to.Ptr("false"), + // Throughput: to.Ptr[int32](400), + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBGremlinDatabaseMigrateToManualThroughput.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBGremlinDatabaseMigrateToManualThroughput.json func ExampleGremlinResourcesClient_BeginMigrateGremlinDatabaseToManualThroughput() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -205,11 +314,24 @@ func ExampleGremlinResourcesClient_BeginMigrateGremlinDatabaseToManualThroughput if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.ThroughputSettingsGetResults = armcosmos.ThroughputSettingsGetResults{ + // Properties: &armcosmos.ThroughputSettingsGetProperties{ + // Resource: &armcosmos.ThroughputSettingsGetPropertiesResource{ + // Etag: to.Ptr("\"00005900-0000-0000-0000-56f9a2630000\""), + // Rid: to.Ptr("PD5DALigDgw="), + // Ts: to.Ptr[float32](1459200611), + // MinimumThroughput: to.Ptr("400"), + // OfferReplacePending: to.Ptr("true"), + // Throughput: to.Ptr[int32](400), + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBGremlinGraphList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBGremlinGraphList.json func ExampleGremlinResourcesClient_NewListGremlinGraphsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -222,18 +344,73 @@ func ExampleGremlinResourcesClient_NewListGremlinGraphsPager() { } pager := client.NewListGremlinGraphsPager("rgName", "ddb1", "databaseName", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.GremlinGraphListResult = armcosmos.GremlinGraphListResult{ + // Value: []*armcosmos.GremlinGraphGetResults{ + // { + // Name: to.Ptr("testgrf"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/apis/databases/graphs"), + // ID: to.Ptr("testgrf"), + // Properties: &armcosmos.GremlinGraphGetProperties{ + // Resource: &armcosmos.GremlinGraphGetPropertiesResource{ + // Etag: to.Ptr("\"00005900-0000-0000-0000-56f9a2630000\""), + // Rid: to.Ptr("PD5DALigDgw="), + // Ts: to.Ptr[float32](1459200611), + // ConflictResolutionPolicy: &armcosmos.ConflictResolutionPolicy{ + // ConflictResolutionPath: to.Ptr("/path"), + // Mode: to.Ptr(armcosmos.ConflictResolutionModeLastWriterWins), + // }, + // DefaultTTL: to.Ptr[int32](100), + // ID: to.Ptr("testgrf"), + // IndexingPolicy: &armcosmos.IndexingPolicy{ + // Automatic: to.Ptr(true), + // ExcludedPaths: []*armcosmos.ExcludedPath{ + // }, + // IncludedPaths: []*armcosmos.IncludedPath{ + // { + // Path: to.Ptr("/*"), + // Indexes: []*armcosmos.Indexes{ + // { + // DataType: to.Ptr(armcosmos.DataTypeString), + // Kind: to.Ptr(armcosmos.IndexKindRange), + // Precision: to.Ptr[int32](-1), + // }, + // { + // DataType: to.Ptr(armcosmos.DataTypeNumber), + // Kind: to.Ptr(armcosmos.IndexKindRange), + // Precision: to.Ptr[int32](-1), + // }}, + // }}, + // IndexingMode: to.Ptr(armcosmos.IndexingModeConsistent), + // }, + // PartitionKey: &armcosmos.ContainerPartitionKey{ + // Kind: to.Ptr(armcosmos.PartitionKindHash), + // Paths: []*string{ + // to.Ptr("/AccountNumber")}, + // }, + // UniqueKeyPolicy: &armcosmos.UniqueKeyPolicy{ + // UniqueKeys: []*armcosmos.UniqueKey{ + // { + // Paths: []*string{ + // to.Ptr("/testPath")}, + // }}, + // }, + // }, + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBGremlinGraphGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBGremlinGraphGet.json func ExampleGremlinResourcesClient_GetGremlinGraph() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -248,11 +425,63 @@ func ExampleGremlinResourcesClient_GetGremlinGraph() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.GremlinGraphGetResults = armcosmos.GremlinGraphGetResults{ + // Name: to.Ptr("graphName"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/apis/databases/graphs"), + // ID: to.Ptr("graphName"), + // Properties: &armcosmos.GremlinGraphGetProperties{ + // Resource: &armcosmos.GremlinGraphGetPropertiesResource{ + // Etag: to.Ptr("\"00005900-0000-0000-0000-56f9a2630000\""), + // Rid: to.Ptr("PD5DALigDgw="), + // Ts: to.Ptr[float32](1459200611), + // ConflictResolutionPolicy: &armcosmos.ConflictResolutionPolicy{ + // ConflictResolutionPath: to.Ptr("/path"), + // Mode: to.Ptr(armcosmos.ConflictResolutionModeLastWriterWins), + // }, + // DefaultTTL: to.Ptr[int32](100), + // ID: to.Ptr("graphName"), + // IndexingPolicy: &armcosmos.IndexingPolicy{ + // Automatic: to.Ptr(true), + // ExcludedPaths: []*armcosmos.ExcludedPath{ + // }, + // IncludedPaths: []*armcosmos.IncludedPath{ + // { + // Path: to.Ptr("/*"), + // Indexes: []*armcosmos.Indexes{ + // { + // DataType: to.Ptr(armcosmos.DataTypeString), + // Kind: to.Ptr(armcosmos.IndexKindRange), + // Precision: to.Ptr[int32](-1), + // }, + // { + // DataType: to.Ptr(armcosmos.DataTypeNumber), + // Kind: to.Ptr(armcosmos.IndexKindRange), + // Precision: to.Ptr[int32](-1), + // }}, + // }}, + // IndexingMode: to.Ptr(armcosmos.IndexingModeConsistent), + // }, + // PartitionKey: &armcosmos.ContainerPartitionKey{ + // Kind: to.Ptr(armcosmos.PartitionKindHash), + // Paths: []*string{ + // to.Ptr("/AccountNumber")}, + // }, + // UniqueKeyPolicy: &armcosmos.UniqueKeyPolicy{ + // UniqueKeys: []*armcosmos.UniqueKey{ + // { + // Paths: []*string{ + // to.Ptr("/testPath")}, + // }}, + // }, + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBGremlinGraphCreateUpdate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBGremlinGraphCreateUpdate.json func ExampleGremlinResourcesClient_BeginCreateUpdateGremlinGraph() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -317,11 +546,66 @@ func ExampleGremlinResourcesClient_BeginCreateUpdateGremlinGraph() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.GremlinGraphGetResults = armcosmos.GremlinGraphGetResults{ + // Name: to.Ptr("graphName"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/gremlinGraphs"), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/gremlinDatabases/databaseName/gremlinGraphs/graphName"), + // Location: to.Ptr("West US"), + // Tags: map[string]*string{ + // }, + // Properties: &armcosmos.GremlinGraphGetProperties{ + // Resource: &armcosmos.GremlinGraphGetPropertiesResource{ + // Etag: to.Ptr("\"00005900-0000-0000-0000-56f9a2630000\""), + // Rid: to.Ptr("PD5DALigDgw="), + // Ts: to.Ptr[float32](1459200611), + // ConflictResolutionPolicy: &armcosmos.ConflictResolutionPolicy{ + // ConflictResolutionPath: to.Ptr("/path"), + // Mode: to.Ptr(armcosmos.ConflictResolutionModeLastWriterWins), + // }, + // DefaultTTL: to.Ptr[int32](100), + // ID: to.Ptr("graphName"), + // IndexingPolicy: &armcosmos.IndexingPolicy{ + // Automatic: to.Ptr(true), + // ExcludedPaths: []*armcosmos.ExcludedPath{ + // }, + // IncludedPaths: []*armcosmos.IncludedPath{ + // { + // Path: to.Ptr("/*"), + // Indexes: []*armcosmos.Indexes{ + // { + // DataType: to.Ptr(armcosmos.DataTypeString), + // Kind: to.Ptr(armcosmos.IndexKindRange), + // Precision: to.Ptr[int32](-1), + // }, + // { + // DataType: to.Ptr(armcosmos.DataTypeNumber), + // Kind: to.Ptr(armcosmos.IndexKindRange), + // Precision: to.Ptr[int32](-1), + // }}, + // }}, + // IndexingMode: to.Ptr(armcosmos.IndexingModeConsistent), + // }, + // PartitionKey: &armcosmos.ContainerPartitionKey{ + // Kind: to.Ptr(armcosmos.PartitionKindHash), + // Paths: []*string{ + // to.Ptr("/AccountNumber")}, + // }, + // UniqueKeyPolicy: &armcosmos.UniqueKeyPolicy{ + // UniqueKeys: []*armcosmos.UniqueKey{ + // { + // Paths: []*string{ + // to.Ptr("/testPath")}, + // }}, + // }, + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBGremlinGraphDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBGremlinGraphDelete.json func ExampleGremlinResourcesClient_BeginDeleteGremlinGraph() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -342,7 +626,7 @@ func ExampleGremlinResourcesClient_BeginDeleteGremlinGraph() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBGremlinGraphThroughputGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBGremlinGraphThroughputGet.json func ExampleGremlinResourcesClient_GetGremlinGraphThroughput() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -357,11 +641,30 @@ func ExampleGremlinResourcesClient_GetGremlinGraphThroughput() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.ThroughputSettingsGetResults = armcosmos.ThroughputSettingsGetResults{ + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/throughputSettings"), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/gremlinDatabases/databaseName/gremlinGraphs/graphName/throughputSettings/default"), + // Location: to.Ptr("West US"), + // Tags: map[string]*string{ + // }, + // Properties: &armcosmos.ThroughputSettingsGetProperties{ + // Resource: &armcosmos.ThroughputSettingsGetPropertiesResource{ + // Etag: to.Ptr("\"00005900-0000-0000-0000-56f9a2630000\""), + // Rid: to.Ptr("PD5DALigDgw="), + // Ts: to.Ptr[float32](1459200611), + // MinimumThroughput: to.Ptr("400"), + // OfferReplacePending: to.Ptr("true"), + // Throughput: to.Ptr[int32](400), + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBGremlinGraphThroughputUpdate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBGremlinGraphThroughputUpdate.json func ExampleGremlinResourcesClient_BeginUpdateGremlinGraphThroughput() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -388,11 +691,30 @@ func ExampleGremlinResourcesClient_BeginUpdateGremlinGraphThroughput() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.ThroughputSettingsGetResults = armcosmos.ThroughputSettingsGetResults{ + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/throughputSettings"), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/gremlinDatabases/databaseName/gremlinGraphs/graphName/throughputSettings/default"), + // Location: to.Ptr("West US"), + // Tags: map[string]*string{ + // }, + // Properties: &armcosmos.ThroughputSettingsGetProperties{ + // Resource: &armcosmos.ThroughputSettingsGetPropertiesResource{ + // Etag: to.Ptr("\"00005900-0000-0000-0000-56f9a2630000\""), + // Rid: to.Ptr("PD5DALigDgw="), + // Ts: to.Ptr[float32](1459200611), + // MinimumThroughput: to.Ptr("400"), + // OfferReplacePending: to.Ptr("true"), + // Throughput: to.Ptr[int32](400), + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBGremlinGraphMigrateToAutoscale.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBGremlinGraphMigrateToAutoscale.json func ExampleGremlinResourcesClient_BeginMigrateGremlinGraphToAutoscale() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -411,11 +733,27 @@ func ExampleGremlinResourcesClient_BeginMigrateGremlinGraphToAutoscale() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.ThroughputSettingsGetResults = armcosmos.ThroughputSettingsGetResults{ + // Properties: &armcosmos.ThroughputSettingsGetProperties{ + // Resource: &armcosmos.ThroughputSettingsGetPropertiesResource{ + // Etag: to.Ptr("\"00005900-0000-0000-0000-56f9a2630000\""), + // Rid: to.Ptr("PD5DALigDgw="), + // Ts: to.Ptr[float32](1459200611), + // AutoscaleSettings: &armcosmos.AutoscaleSettingsResource{ + // MaxThroughput: to.Ptr[int32](4000), + // }, + // MinimumThroughput: to.Ptr("4000"), + // OfferReplacePending: to.Ptr("false"), + // Throughput: to.Ptr[int32](400), + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBGremlinGraphMigrateToManualThroughput.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBGremlinGraphMigrateToManualThroughput.json func ExampleGremlinResourcesClient_BeginMigrateGremlinGraphToManualThroughput() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -434,11 +772,24 @@ func ExampleGremlinResourcesClient_BeginMigrateGremlinGraphToManualThroughput() if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.ThroughputSettingsGetResults = armcosmos.ThroughputSettingsGetResults{ + // Properties: &armcosmos.ThroughputSettingsGetProperties{ + // Resource: &armcosmos.ThroughputSettingsGetPropertiesResource{ + // Etag: to.Ptr("\"00005900-0000-0000-0000-56f9a2630000\""), + // Rid: to.Ptr("PD5DALigDgw="), + // Ts: to.Ptr[float32](1459200611), + // MinimumThroughput: to.Ptr("400"), + // OfferReplacePending: to.Ptr("true"), + // Throughput: to.Ptr[int32](400), + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBGremlinGraphBackupInformation.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBGremlinGraphBackupInformation.json func ExampleGremlinResourcesClient_BeginRetrieveContinuousBackupInformation() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -459,6 +810,12 @@ func ExampleGremlinResourcesClient_BeginRetrieveContinuousBackupInformation() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.BackupInformation = armcosmos.BackupInformation{ + // ContinuousBackupInformation: &armcosmos.ContinuousBackupInformation{ + // LatestRestorableTimestamp: to.Ptr("2021-02-05T02:40:50Z"), + // }, + // } } diff --git a/sdk/resourcemanager/cosmos/armcosmos/locations_client.go b/sdk/resourcemanager/cosmos/armcosmos/locations_client.go index 3b112755d2aa..1c34563028fb 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/locations_client.go +++ b/sdk/resourcemanager/cosmos/armcosmos/locations_client.go @@ -32,9 +32,9 @@ type LocationsClient struct { } // NewLocationsClient creates a new instance of LocationsClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewLocationsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*LocationsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,9 +57,10 @@ func NewLocationsClient(subscriptionID string, credential azcore.TokenCredential // Get - Get the properties of an existing Cosmos DB location // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// location - Cosmos DB region, with spaces between words and each word capitalized. -// options - LocationsClientGetOptions contains the optional parameters for the LocationsClient.Get method. +// +// Generated from API version 2022-11-15 +// - location - Cosmos DB region, with spaces between words and each word capitalized. +// - options - LocationsClientGetOptions contains the optional parameters for the LocationsClient.Get method. func (client *LocationsClient) Get(ctx context.Context, location string, options *LocationsClientGetOptions) (LocationsClientGetResponse, error) { req, err := client.getCreateRequest(ctx, location, options) if err != nil { @@ -91,7 +92,7 @@ func (client *LocationsClient) getCreateRequest(ctx context.Context, location st return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -107,8 +108,9 @@ func (client *LocationsClient) getHandleResponse(resp *http.Response) (Locations } // NewListPager - List Cosmos DB locations and their properties -// Generated from API version 2022-08-15-preview -// options - LocationsClientListOptions contains the optional parameters for the LocationsClient.List method. +// +// Generated from API version 2022-11-15 +// - options - LocationsClientListOptions contains the optional parameters for the LocationsClient.NewListPager method. func (client *LocationsClient) NewListPager(options *LocationsClientListOptions) *runtime.Pager[LocationsClientListResponse] { return runtime.NewPager(runtime.PagingHandler[LocationsClientListResponse]{ More: func(page LocationsClientListResponse) bool { @@ -143,7 +145,7 @@ func (client *LocationsClient) listCreateRequest(ctx context.Context, options *L return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/cosmos/armcosmos/locations_client_example_test.go b/sdk/resourcemanager/cosmos/armcosmos/locations_client_example_test.go index 4baf24262238..a5243c20e54f 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/locations_client_example_test.go +++ b/sdk/resourcemanager/cosmos/armcosmos/locations_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armcosmos_test @@ -16,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cosmos/armcosmos/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBLocationList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBLocationList.json func ExampleLocationsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -29,18 +30,46 @@ func ExampleLocationsClient_NewListPager() { } pager := client.NewListPager(nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.LocationListResult = armcosmos.LocationListResult{ + // Value: []*armcosmos.LocationGetResult{ + // { + // Name: to.Ptr("westus"), + // Type: to.Ptr("Microsoft.DocumentDB/locations"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus"), + // Properties: &armcosmos.LocationProperties{ + // BackupStorageRedundancies: []*armcosmos.BackupStorageRedundancy{ + // to.Ptr(armcosmos.BackupStorageRedundancyLocal), + // to.Ptr(armcosmos.BackupStorageRedundancyGeo)}, + // IsResidencyRestricted: to.Ptr(false), + // SupportsAvailabilityZone: to.Ptr(false), + // }, + // }, + // { + // Name: to.Ptr("centralus"), + // Type: to.Ptr("Microsoft.DocumentDB/locations"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/centralus"), + // Properties: &armcosmos.LocationProperties{ + // BackupStorageRedundancies: []*armcosmos.BackupStorageRedundancy{ + // to.Ptr(armcosmos.BackupStorageRedundancyZone), + // to.Ptr(armcosmos.BackupStorageRedundancyGeo)}, + // IsResidencyRestricted: to.Ptr(false), + // SupportsAvailabilityZone: to.Ptr(true), + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBLocationGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBLocationGet.json func ExampleLocationsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -55,6 +84,19 @@ func ExampleLocationsClient_Get() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.LocationGetResult = armcosmos.LocationGetResult{ + // Name: to.Ptr("westus"), + // Type: to.Ptr("Microsoft.DocumentDB/locations"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus"), + // Properties: &armcosmos.LocationProperties{ + // BackupStorageRedundancies: []*armcosmos.BackupStorageRedundancy{ + // to.Ptr(armcosmos.BackupStorageRedundancyLocal), + // to.Ptr(armcosmos.BackupStorageRedundancyGeo)}, + // IsResidencyRestricted: to.Ptr(true), + // SupportsAvailabilityZone: to.Ptr(true), + // }, + // } } diff --git a/sdk/resourcemanager/cosmos/armcosmos/models.go b/sdk/resourcemanager/cosmos/armcosmos/models.go index 1bbd8723156e..cc29b89aa4c4 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/models.go +++ b/sdk/resourcemanager/cosmos/armcosmos/models.go @@ -31,9 +31,6 @@ type ARMProxyResource struct { // ARMResourceProperties - The core properties of ARM resources. type ARMResourceProperties struct { - // Identity for the resource. - Identity *ManagedServiceIdentity `json:"identity,omitempty"` - // The location of the resource group to which the resource belongs. Location *string `json:"location,omitempty"` @@ -67,28 +64,6 @@ type AnalyticalStorageConfiguration struct { SchemaType *AnalyticalStorageSchemaType `json:"schemaType,omitempty"` } -// AuthenticationMethodLdapProperties - Ldap authentication method properties. This feature is in preview. -type AuthenticationMethodLdapProperties struct { - // Distinguished name of the object to start the recursive search of users from. - SearchBaseDistinguishedName *string `json:"searchBaseDistinguishedName,omitempty"` - - // Template to use for searching. Defaults to (cn=%s) where %s will be replaced by the username used to login. - SearchFilterTemplate *string `json:"searchFilterTemplate,omitempty"` - ServerCertificates []*Certificate `json:"serverCertificates,omitempty"` - - // Hostname of the LDAP server. - ServerHostname *string `json:"serverHostname,omitempty"` - - // Port of the LDAP server. - ServerPort *int32 `json:"serverPort,omitempty"` - - // Distinguished name of the look up user account, who can look up user details on authentication. - ServiceUserDistinguishedName *string `json:"serviceUserDistinguishedName,omitempty"` - - // Password of the look up user. - ServiceUserPassword *string `json:"serviceUserPassword,omitempty"` -} - // AutoUpgradePolicyResource - Cosmos DB resource auto-upgrade policy type AutoUpgradePolicyResource struct { // Represents throughput policy which service must adhere to for auto-upgrade @@ -112,23 +87,6 @@ type AutoscaleSettingsResource struct { TargetMaxThroughput *int32 `json:"targetMaxThroughput,omitempty" azure:"ro"` } -// AzureBlobDataTransferDataSourceSink - An Azure Blob Storage data source/sink -type AzureBlobDataTransferDataSourceSink struct { - // REQUIRED - Component *DataTransferComponent `json:"component,omitempty"` - - // REQUIRED - ContainerName *string `json:"containerName,omitempty"` - EndpointURL *string `json:"endpointUrl,omitempty"` -} - -// GetDataTransferDataSourceSink implements the DataTransferDataSourceSinkClassification interface for type AzureBlobDataTransferDataSourceSink. -func (a *AzureBlobDataTransferDataSourceSink) GetDataTransferDataSourceSink() *DataTransferDataSourceSink { - return &DataTransferDataSourceSink{ - Component: a.Component, - } -} - // BackupInformation - Backup information of a resource. type BackupInformation struct { // READ-ONLY; Information about the status of continuous backups. @@ -168,25 +126,6 @@ type BackupPolicyMigrationState struct { TargetType *BackupPolicyType `json:"targetType,omitempty"` } -// BackupResource - A restorable backup of a Cassandra cluster. -type BackupResource struct { - Properties *BackupResourceProperties `json:"properties,omitempty"` - - // READ-ONLY; The unique resource identifier of the database account. - ID *string `json:"id,omitempty" azure:"ro"` - - // READ-ONLY; The name of the database account. - Name *string `json:"name,omitempty" azure:"ro"` - - // READ-ONLY; The type of Azure resource. - Type *string `json:"type,omitempty" azure:"ro"` -} - -type BackupResourceProperties struct { - // The time this backup was taken, formatted like 2021-01-21T17:35:21 - Timestamp *time.Time `json:"timestamp,omitempty"` -} - // Capability - Cosmos DB capability object type Capability struct { // Name of the Cosmos DB capability. For example, "name": "EnableCassandra". Current values also include "EnableTable" and @@ -263,29 +202,18 @@ type CassandraClustersClientBeginUpdateOptions struct { ResumeToken string } -// CassandraClustersClientGetBackupOptions contains the optional parameters for the CassandraClustersClient.GetBackup method. -type CassandraClustersClientGetBackupOptions struct { - // placeholder for future optional parameters -} - // CassandraClustersClientGetOptions contains the optional parameters for the CassandraClustersClient.Get method. type CassandraClustersClientGetOptions struct { // placeholder for future optional parameters } -// CassandraClustersClientListBackupsOptions contains the optional parameters for the CassandraClustersClient.ListBackups -// method. -type CassandraClustersClientListBackupsOptions struct { - // placeholder for future optional parameters -} - -// CassandraClustersClientListByResourceGroupOptions contains the optional parameters for the CassandraClustersClient.ListByResourceGroup +// CassandraClustersClientListByResourceGroupOptions contains the optional parameters for the CassandraClustersClient.NewListByResourceGroupPager // method. type CassandraClustersClientListByResourceGroupOptions struct { // placeholder for future optional parameters } -// CassandraClustersClientListBySubscriptionOptions contains the optional parameters for the CassandraClustersClient.ListBySubscription +// CassandraClustersClientListBySubscriptionOptions contains the optional parameters for the CassandraClustersClient.NewListBySubscriptionPager // method. type CassandraClustersClientListBySubscriptionOptions struct { // placeholder for future optional parameters @@ -322,38 +250,17 @@ type CassandraDataCentersClientGetOptions struct { // placeholder for future optional parameters } -// CassandraDataCentersClientListOptions contains the optional parameters for the CassandraDataCentersClient.List method. +// CassandraDataCentersClientListOptions contains the optional parameters for the CassandraDataCentersClient.NewListPager +// method. type CassandraDataCentersClientListOptions struct { // placeholder for future optional parameters } -// CassandraDataTransferDataSourceSink - A CosmosDB Cassandra API data source/sink -type CassandraDataTransferDataSourceSink struct { - // REQUIRED - Component *DataTransferComponent `json:"component,omitempty"` - - // REQUIRED - KeyspaceName *string `json:"keyspaceName,omitempty"` - - // REQUIRED - TableName *string `json:"tableName,omitempty"` -} - -// GetDataTransferDataSourceSink implements the DataTransferDataSourceSinkClassification interface for type CassandraDataTransferDataSourceSink. -func (c *CassandraDataTransferDataSourceSink) GetDataTransferDataSourceSink() *DataTransferDataSourceSink { - return &DataTransferDataSourceSink{ - Component: c.Component, - } -} - // CassandraKeyspaceCreateUpdateParameters - Parameters to create and update Cosmos DB Cassandra keyspace. type CassandraKeyspaceCreateUpdateParameters struct { // REQUIRED; Properties to create and update Azure Cosmos DB Cassandra keyspace. Properties *CassandraKeyspaceCreateUpdateProperties `json:"properties,omitempty"` - // Identity for the resource. - Identity *ManagedServiceIdentity `json:"identity,omitempty"` - // The location of the resource group to which the resource belongs. Location *string `json:"location,omitempty"` @@ -414,9 +321,6 @@ type CassandraKeyspaceGetPropertiesResource struct { // CassandraKeyspaceGetResults - An Azure Cosmos DB Cassandra keyspace. type CassandraKeyspaceGetResults struct { - // Identity for the resource. - Identity *ManagedServiceIdentity `json:"identity,omitempty"` - // The location of the resource group to which the resource belongs. Location *string `json:"location,omitempty"` @@ -472,13 +376,6 @@ type CassandraResourcesClientBeginCreateUpdateCassandraTableOptions struct { ResumeToken string } -// CassandraResourcesClientBeginCreateUpdateCassandraViewOptions contains the optional parameters for the CassandraResourcesClient.BeginCreateUpdateCassandraView -// method. -type CassandraResourcesClientBeginCreateUpdateCassandraViewOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - // CassandraResourcesClientBeginDeleteCassandraKeyspaceOptions contains the optional parameters for the CassandraResourcesClient.BeginDeleteCassandraKeyspace // method. type CassandraResourcesClientBeginDeleteCassandraKeyspaceOptions struct { @@ -493,13 +390,6 @@ type CassandraResourcesClientBeginDeleteCassandraTableOptions struct { ResumeToken string } -// CassandraResourcesClientBeginDeleteCassandraViewOptions contains the optional parameters for the CassandraResourcesClient.BeginDeleteCassandraView -// method. -type CassandraResourcesClientBeginDeleteCassandraViewOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - // CassandraResourcesClientBeginMigrateCassandraKeyspaceToAutoscaleOptions contains the optional parameters for the CassandraResourcesClient.BeginMigrateCassandraKeyspaceToAutoscale // method. type CassandraResourcesClientBeginMigrateCassandraKeyspaceToAutoscaleOptions struct { @@ -528,20 +418,6 @@ type CassandraResourcesClientBeginMigrateCassandraTableToManualThroughputOptions ResumeToken string } -// CassandraResourcesClientBeginMigrateCassandraViewToAutoscaleOptions contains the optional parameters for the CassandraResourcesClient.BeginMigrateCassandraViewToAutoscale -// method. -type CassandraResourcesClientBeginMigrateCassandraViewToAutoscaleOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// CassandraResourcesClientBeginMigrateCassandraViewToManualThroughputOptions contains the optional parameters for the CassandraResourcesClient.BeginMigrateCassandraViewToManualThroughput -// method. -type CassandraResourcesClientBeginMigrateCassandraViewToManualThroughputOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - // CassandraResourcesClientBeginUpdateCassandraKeyspaceThroughputOptions contains the optional parameters for the CassandraResourcesClient.BeginUpdateCassandraKeyspaceThroughput // method. type CassandraResourcesClientBeginUpdateCassandraKeyspaceThroughputOptions struct { @@ -556,13 +432,6 @@ type CassandraResourcesClientBeginUpdateCassandraTableThroughputOptions struct { ResumeToken string } -// CassandraResourcesClientBeginUpdateCassandraViewThroughputOptions contains the optional parameters for the CassandraResourcesClient.BeginUpdateCassandraViewThroughput -// method. -type CassandraResourcesClientBeginUpdateCassandraViewThroughputOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - // CassandraResourcesClientGetCassandraKeyspaceOptions contains the optional parameters for the CassandraResourcesClient.GetCassandraKeyspace // method. type CassandraResourcesClientGetCassandraKeyspaceOptions struct { @@ -587,36 +456,18 @@ type CassandraResourcesClientGetCassandraTableThroughputOptions struct { // placeholder for future optional parameters } -// CassandraResourcesClientGetCassandraViewOptions contains the optional parameters for the CassandraResourcesClient.GetCassandraView -// method. -type CassandraResourcesClientGetCassandraViewOptions struct { - // placeholder for future optional parameters -} - -// CassandraResourcesClientGetCassandraViewThroughputOptions contains the optional parameters for the CassandraResourcesClient.GetCassandraViewThroughput -// method. -type CassandraResourcesClientGetCassandraViewThroughputOptions struct { - // placeholder for future optional parameters -} - -// CassandraResourcesClientListCassandraKeyspacesOptions contains the optional parameters for the CassandraResourcesClient.ListCassandraKeyspaces +// CassandraResourcesClientListCassandraKeyspacesOptions contains the optional parameters for the CassandraResourcesClient.NewListCassandraKeyspacesPager // method. type CassandraResourcesClientListCassandraKeyspacesOptions struct { // placeholder for future optional parameters } -// CassandraResourcesClientListCassandraTablesOptions contains the optional parameters for the CassandraResourcesClient.ListCassandraTables +// CassandraResourcesClientListCassandraTablesOptions contains the optional parameters for the CassandraResourcesClient.NewListCassandraTablesPager // method. type CassandraResourcesClientListCassandraTablesOptions struct { // placeholder for future optional parameters } -// CassandraResourcesClientListCassandraViewsOptions contains the optional parameters for the CassandraResourcesClient.ListCassandraViews -// method. -type CassandraResourcesClientListCassandraViewsOptions struct { - // placeholder for future optional parameters -} - // CassandraSchema - Cosmos DB Cassandra table schema type CassandraSchema struct { // List of cluster key. @@ -634,9 +485,6 @@ type CassandraTableCreateUpdateParameters struct { // REQUIRED; Properties to create and update Azure Cosmos DB Cassandra table. Properties *CassandraTableCreateUpdateProperties `json:"properties,omitempty"` - // Identity for the resource. - Identity *ManagedServiceIdentity `json:"identity,omitempty"` - // The location of the resource group to which the resource belongs. Location *string `json:"location,omitempty"` @@ -706,9 +554,6 @@ type CassandraTableGetPropertiesResource struct { // CassandraTableGetResults - An Azure Cosmos DB Cassandra table. type CassandraTableGetResults struct { - // Identity for the resource. - Identity *ManagedServiceIdentity `json:"identity,omitempty"` - // The location of the resource group to which the resource belongs. Location *string `json:"location,omitempty"` @@ -753,118 +598,6 @@ type CassandraTableResource struct { Schema *CassandraSchema `json:"schema,omitempty"` } -// CassandraViewCreateUpdateParameters - Parameters to create and update Cosmos DB Cassandra view. -type CassandraViewCreateUpdateParameters struct { - // REQUIRED; Properties to create and update Azure Cosmos DB Cassandra view. - Properties *CassandraViewCreateUpdateProperties `json:"properties,omitempty"` - - // Identity for the resource. - Identity *ManagedServiceIdentity `json:"identity,omitempty"` - - // The location of the resource group to which the resource belongs. - Location *string `json:"location,omitempty"` - - // Tags are a list of key-value pairs that describe the resource. These tags can be used in viewing and grouping this resource - // (across resource groups). A maximum of 15 tags can be provided for a - // resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters. For example, - // the default experience for a template type is set with "defaultExperience": - // "Cassandra". Current "defaultExperience" values also include "Table", "Graph", "DocumentDB", and "MongoDB". - Tags map[string]*string `json:"tags,omitempty"` - - // READ-ONLY; The unique resource identifier of the ARM resource. - ID *string `json:"id,omitempty" azure:"ro"` - - // READ-ONLY; The name of the ARM resource. - Name *string `json:"name,omitempty" azure:"ro"` - - // READ-ONLY; The type of Azure resource. - Type *string `json:"type,omitempty" azure:"ro"` -} - -// CassandraViewCreateUpdateProperties - Properties to create and update Azure Cosmos DB Cassandra view. -type CassandraViewCreateUpdateProperties struct { - // REQUIRED; The standard JSON format of a Cassandra view - Resource *CassandraViewResource `json:"resource,omitempty"` - - // A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request. - Options *CreateUpdateOptions `json:"options,omitempty"` -} - -// CassandraViewGetProperties - The properties of an Azure Cosmos DB Cassandra view -type CassandraViewGetProperties struct { - Options *CassandraViewGetPropertiesOptions `json:"options,omitempty"` - Resource *CassandraViewGetPropertiesResource `json:"resource,omitempty"` -} - -type CassandraViewGetPropertiesOptions struct { - // Specifies the Autoscale settings. - AutoscaleSettings *AutoscaleSettings `json:"autoscaleSettings,omitempty"` - - // Value of the Cosmos DB resource throughput or autoscaleSettings. Use the ThroughputSetting resource when retrieving offer - // details. - Throughput *int32 `json:"throughput,omitempty"` -} - -type CassandraViewGetPropertiesResource struct { - // REQUIRED; Name of the Cosmos DB Cassandra view - ID *string `json:"id,omitempty"` - - // REQUIRED; View Definition of the Cosmos DB Cassandra view - ViewDefinition *string `json:"viewDefinition,omitempty"` - - // READ-ONLY; A system generated property representing the resource etag required for optimistic concurrency control. - Etag *string `json:"_etag,omitempty" azure:"ro"` - - // READ-ONLY; A system generated property. A unique identifier. - Rid *string `json:"_rid,omitempty" azure:"ro"` - - // READ-ONLY; A system generated property that denotes the last updated timestamp of the resource. - Ts *float32 `json:"_ts,omitempty" azure:"ro"` -} - -// CassandraViewGetResults - An Azure Cosmos DB Cassandra view. -type CassandraViewGetResults struct { - // Identity for the resource. - Identity *ManagedServiceIdentity `json:"identity,omitempty"` - - // The location of the resource group to which the resource belongs. - Location *string `json:"location,omitempty"` - - // The properties of an Azure Cosmos DB Cassandra view - Properties *CassandraViewGetProperties `json:"properties,omitempty"` - - // Tags are a list of key-value pairs that describe the resource. These tags can be used in viewing and grouping this resource - // (across resource groups). A maximum of 15 tags can be provided for a - // resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters. For example, - // the default experience for a template type is set with "defaultExperience": - // "Cassandra". Current "defaultExperience" values also include "Table", "Graph", "DocumentDB", and "MongoDB". - Tags map[string]*string `json:"tags,omitempty"` - - // READ-ONLY; The unique resource identifier of the ARM resource. - ID *string `json:"id,omitempty" azure:"ro"` - - // READ-ONLY; The name of the ARM resource. - Name *string `json:"name,omitempty" azure:"ro"` - - // READ-ONLY; The type of Azure resource. - Type *string `json:"type,omitempty" azure:"ro"` -} - -// CassandraViewListResult - The List operation response, that contains the Cassandra views and their properties. -type CassandraViewListResult struct { - // READ-ONLY; List of Cassandra views and their properties. - Value []*CassandraViewGetResults `json:"value,omitempty" azure:"ro"` -} - -// CassandraViewResource - Cosmos DB Cassandra view resource object -type CassandraViewResource struct { - // REQUIRED; Name of the Cosmos DB Cassandra view - ID *string `json:"id,omitempty"` - - // REQUIRED; View Definition of the Cosmos DB Cassandra view - ViewDefinition *string `json:"viewDefinition,omitempty"` -} - type Certificate struct { // PEM formatted public key. Pem *string `json:"pem,omitempty"` @@ -966,8 +699,8 @@ type ClientEncryptionPolicy struct { // REQUIRED; Paths of the item that need encryption along with path-specific settings. IncludedPaths []*ClientEncryptionIncludedPath `json:"includedPaths,omitempty"` - // Version of the client encryption policy definition. Please note, user passed value is ignored. Default policy version is - // 1. + // REQUIRED; Version of the client encryption policy definition. Supported versions are 1 and 2. Version 2 supports id and + // partition key path encryption. PolicyFormatVersion *int32 `json:"policyFormatVersion,omitempty"` } @@ -1012,7 +745,7 @@ type ClusterResource struct { type ClusterResourceProperties struct { // Which authentication method Cassandra should use to authenticate clients. 'None' turns off authentication, so should not // be used except in emergencies. 'Cassandra' is the default password based - // authentication. The default is 'Cassandra'. 'Ldap' is in preview. + // authentication. The default is 'Cassandra'. AuthenticationMethod *AuthenticationMethod `json:"authenticationMethod,omitempty"` // Whether Cassandra audit logging is enabled @@ -1049,7 +782,7 @@ type ClusterResourceProperties struct { // nodes. ExternalSeedNodes []*SeedNode `json:"externalSeedNodes,omitempty"` - // Number of hours to wait between taking a backup of the cluster. + // Number of hours to wait between taking a backup of the cluster. To disable backups, set this property to 0. HoursBetweenBackups *int32 `json:"hoursBetweenBackups,omitempty"` // Initial password for clients connecting as admin to the cluster. Should be changed after cluster creation. Returns null @@ -1081,31 +814,31 @@ type ClusterResourceProperties struct { SeedNodes []*SeedNode `json:"seedNodes,omitempty" azure:"ro"` } -// CollectionClientListMetricDefinitionsOptions contains the optional parameters for the CollectionClient.ListMetricDefinitions +// CollectionClientListMetricDefinitionsOptions contains the optional parameters for the CollectionClient.NewListMetricDefinitionsPager // method. type CollectionClientListMetricDefinitionsOptions struct { // placeholder for future optional parameters } -// CollectionClientListMetricsOptions contains the optional parameters for the CollectionClient.ListMetrics method. +// CollectionClientListMetricsOptions contains the optional parameters for the CollectionClient.NewListMetricsPager method. type CollectionClientListMetricsOptions struct { // placeholder for future optional parameters } -// CollectionClientListUsagesOptions contains the optional parameters for the CollectionClient.ListUsages method. +// CollectionClientListUsagesOptions contains the optional parameters for the CollectionClient.NewListUsagesPager method. type CollectionClientListUsagesOptions struct { // An OData filter expression that describes a subset of usages to return. The supported parameter is name.value (name of // the metric, can have an or of multiple names). Filter *string } -// CollectionPartitionClientListMetricsOptions contains the optional parameters for the CollectionPartitionClient.ListMetrics +// CollectionPartitionClientListMetricsOptions contains the optional parameters for the CollectionPartitionClient.NewListMetricsPager // method. type CollectionPartitionClientListMetricsOptions struct { // placeholder for future optional parameters } -// CollectionPartitionClientListUsagesOptions contains the optional parameters for the CollectionPartitionClient.ListUsages +// CollectionPartitionClientListUsagesOptions contains the optional parameters for the CollectionPartitionClient.NewListUsagesPager // method. type CollectionPartitionClientListUsagesOptions struct { // An OData filter expression that describes a subset of usages to return. The supported parameter is name.value (name of @@ -1113,13 +846,14 @@ type CollectionPartitionClientListUsagesOptions struct { Filter *string } -// CollectionPartitionRegionClientListMetricsOptions contains the optional parameters for the CollectionPartitionRegionClient.ListMetrics +// CollectionPartitionRegionClientListMetricsOptions contains the optional parameters for the CollectionPartitionRegionClient.NewListMetricsPager // method. type CollectionPartitionRegionClientListMetricsOptions struct { // placeholder for future optional parameters } -// CollectionRegionClientListMetricsOptions contains the optional parameters for the CollectionRegionClient.ListMetrics method. +// CollectionRegionClientListMetricsOptions contains the optional parameters for the CollectionRegionClient.NewListMetricsPager +// method. type CollectionRegionClientListMetricsOptions struct { // placeholder for future optional parameters } @@ -1207,7 +941,7 @@ type ComponentsM9L909SchemasCassandraclusterpublicstatusPropertiesDatacentersIte State *NodeState `json:"state,omitempty"` Status *string `json:"status,omitempty"` - // The timestamp at which that snapshot of these usage statistics were taken. + // The timestamp when these statistics were captured. Timestamp *string `json:"timestamp,omitempty"` // List of tokens this node covers. @@ -1300,9 +1034,6 @@ type ContinuousModeBackupPolicy struct { // REQUIRED; Describes the mode of backups. Type *BackupPolicyType `json:"type,omitempty"` - // Configuration values for continuous mode backup - ContinuousModeProperties *ContinuousModeProperties `json:"continuousModeProperties,omitempty"` - // The object representing the state of the migration between the backup policies. MigrationState *BackupPolicyMigrationState `json:"migrationState,omitempty"` } @@ -1315,12 +1046,6 @@ func (c *ContinuousModeBackupPolicy) GetBackupPolicy() *BackupPolicy { } } -// ContinuousModeProperties - Configuration values for periodic mode backup -type ContinuousModeProperties struct { - // Enum to indicate type of Continuos backup mode - Tier *ContinuousTier `json:"tier,omitempty"` -} - // CorsPolicy - The CORS policy for the Cosmos DB database account. type CorsPolicy struct { // REQUIRED; The origin domains that are permitted to make a request against the service via CORS. @@ -1339,21 +1064,6 @@ type CorsPolicy struct { MaxAgeInSeconds *int64 `json:"maxAgeInSeconds,omitempty"` } -// CreateJobRequest - Parameters to create Data Transfer Job -type CreateJobRequest struct { - // REQUIRED; Data Transfer Create Job Properties - Properties *DataTransferJobProperties `json:"properties,omitempty"` - - // READ-ONLY; The unique resource identifier of the database account. - ID *string `json:"id,omitempty" azure:"ro"` - - // READ-ONLY; The name of the database account. - Name *string `json:"name,omitempty" azure:"ro"` - - // READ-ONLY; The type of Azure resource. - Type *string `json:"type,omitempty" azure:"ro"` -} - // CreateUpdateOptions are a list of key-value pairs that describe the resource. Supported keys are "If-Match", "If-None-Match", // "Session-Token" and "Throughput" type CreateUpdateOptions struct { @@ -1381,11 +1091,8 @@ type DataCenterResource struct { // DataCenterResourceProperties - Properties of a managed Cassandra data center. type DataCenterResourceProperties struct { - // Ldap authentication method properties. This feature is in preview. - AuthenticationMethodLdapProperties *AuthenticationMethodLdapProperties `json:"authenticationMethodLdapProperties,omitempty"` - - // If the data center has Availability Zone feature, apply it to the Virtual Machine ScaleSet that host the cassandra data - // center virtual machines. + // If the azure data center has Availability Zone support, apply it to the Virtual Machine ScaleSet that host the cassandra + // data center virtual machines. AvailabilityZone *bool `json:"availabilityZone,omitempty"` // Indicates the Key Uri of the customer key to use for encryption of the backup storage account. @@ -1432,111 +1139,6 @@ type DataCenterResourceProperties struct { SeedNodes []*SeedNode `json:"seedNodes,omitempty" azure:"ro"` } -// DataTransferDataSourceSinkClassification provides polymorphic access to related types. -// Call the interface's GetDataTransferDataSourceSink() method to access the common type. -// Use a type switch to determine the concrete type. The possible types are: -// - *AzureBlobDataTransferDataSourceSink, *CassandraDataTransferDataSourceSink, *DataTransferDataSourceSink, *SQLDataTransferDataSourceSink -type DataTransferDataSourceSinkClassification interface { - // GetDataTransferDataSourceSink returns the DataTransferDataSourceSink content of the underlying type. - GetDataTransferDataSourceSink() *DataTransferDataSourceSink -} - -// DataTransferDataSourceSink - Base class for all DataTransfer source/sink -type DataTransferDataSourceSink struct { - // REQUIRED - Component *DataTransferComponent `json:"component,omitempty"` -} - -// GetDataTransferDataSourceSink implements the DataTransferDataSourceSinkClassification interface for type DataTransferDataSourceSink. -func (d *DataTransferDataSourceSink) GetDataTransferDataSourceSink() *DataTransferDataSourceSink { - return d -} - -// DataTransferJobFeedResults - The List operation response, that contains the Data Transfer jobs and their properties. -type DataTransferJobFeedResults struct { - // READ-ONLY; URL to get the next set of Data Transfer job list results if there are any. - NextLink *string `json:"nextLink,omitempty" azure:"ro"` - - // READ-ONLY; List of Data Transfer jobs and their properties. - Value []*DataTransferJobGetResults `json:"value,omitempty" azure:"ro"` -} - -// DataTransferJobGetResults - A Cosmos DB Data Transfer Job -type DataTransferJobGetResults struct { - // The properties of a DataTransfer Job - Properties *DataTransferJobProperties `json:"properties,omitempty"` - - // READ-ONLY; The unique resource identifier of the database account. - ID *string `json:"id,omitempty" azure:"ro"` - - // READ-ONLY; The name of the database account. - Name *string `json:"name,omitempty" azure:"ro"` - - // READ-ONLY; The type of Azure resource. - Type *string `json:"type,omitempty" azure:"ro"` -} - -// DataTransferJobProperties - The properties of a DataTransfer Job -type DataTransferJobProperties struct { - // REQUIRED; Destination DataStore details - Destination DataTransferDataSourceSinkClassification `json:"destination,omitempty"` - - // REQUIRED; Source DataStore details - Source DataTransferDataSourceSinkClassification `json:"source,omitempty"` - - // Worker count - WorkerCount *int32 `json:"workerCount,omitempty"` - - // READ-ONLY; Error response for Faulted job - Error *ErrorResponse `json:"error,omitempty" azure:"ro"` - - // READ-ONLY; Job Name - JobName *string `json:"jobName,omitempty" azure:"ro"` - - // READ-ONLY; Last Updated Time (ISO-8601 format). - LastUpdatedUTCTime *time.Time `json:"lastUpdatedUtcTime,omitempty" azure:"ro"` - - // READ-ONLY; Processed Count. - ProcessedCount *int64 `json:"processedCount,omitempty" azure:"ro"` - - // READ-ONLY; Job Status - Status *string `json:"status,omitempty" azure:"ro"` - - // READ-ONLY; Total Count. - TotalCount *int64 `json:"totalCount,omitempty" azure:"ro"` -} - -// DataTransferJobsClientCancelOptions contains the optional parameters for the DataTransferJobsClient.Cancel method. -type DataTransferJobsClientCancelOptions struct { - // placeholder for future optional parameters -} - -// DataTransferJobsClientCreateOptions contains the optional parameters for the DataTransferJobsClient.Create method. -type DataTransferJobsClientCreateOptions struct { - // placeholder for future optional parameters -} - -// DataTransferJobsClientGetOptions contains the optional parameters for the DataTransferJobsClient.Get method. -type DataTransferJobsClientGetOptions struct { - // placeholder for future optional parameters -} - -// DataTransferJobsClientListByDatabaseAccountOptions contains the optional parameters for the DataTransferJobsClient.ListByDatabaseAccount -// method. -type DataTransferJobsClientListByDatabaseAccountOptions struct { - // placeholder for future optional parameters -} - -// DataTransferJobsClientPauseOptions contains the optional parameters for the DataTransferJobsClient.Pause method. -type DataTransferJobsClientPauseOptions struct { - // placeholder for future optional parameters -} - -// DataTransferJobsClientResumeOptions contains the optional parameters for the DataTransferJobsClient.Resume method. -type DataTransferJobsClientResumeOptions struct { - // placeholder for future optional parameters -} - // DataTransferRegionalServiceResource - Resource for a regional service location. type DataTransferRegionalServiceResource struct { // READ-ONLY; The location name. @@ -1561,7 +1163,7 @@ type DataTransferServiceResourceProperties struct { ServiceType *ServiceType `json:"serviceType,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Instance count for the service. InstanceCount *int32 `json:"instanceCount,omitempty"` @@ -1672,9 +1274,6 @@ type DatabaseAccountCreateUpdateProperties struct { // "SystemAssignedIdentity" and more. DefaultIdentity *string `json:"defaultIdentity,omitempty"` - // The Object representing the different Diagnostic log settings for the Cosmos DB Account. - DiagnosticLogSettings *DiagnosticLogSettings `json:"diagnosticLogSettings,omitempty"` - // Disable write operations on metadata resources (databases, containers, throughput) via account keys DisableKeyBasedMetadataWriteAccess *bool `json:"disableKeyBasedMetadataWriteAccess,omitempty"` @@ -1695,9 +1294,6 @@ type DatabaseAccountCreateUpdateProperties struct { // Flag to indicate whether Free Tier is enabled. EnableFreeTier *bool `json:"enableFreeTier,omitempty"` - // Flag to indicate whether to enable MaterializedViews on the Cosmos DB account - EnableMaterializedViews *bool `json:"enableMaterializedViews,omitempty"` - // Enables the account to write in multiple locations EnableMultipleWriteLocations *bool `json:"enableMultipleWriteLocations,omitempty"` @@ -1713,6 +1309,10 @@ type DatabaseAccountCreateUpdateProperties struct { // The URI of the key vault KeyVaultKeyURI *string `json:"keyVaultKeyUri,omitempty"` + // Indicates the minimum allowed Tls version. The default is Tls 1.0, except for Cassandra and Mongo API's, which only work + // with Tls 1.2. + MinimalTLSVersion *MinimalTLSVersion `json:"minimalTlsVersion,omitempty"` + // Indicates what services are allowed to bypass firewall checks. NetworkACLBypass *NetworkACLBypass `json:"networkAclBypass,omitempty"` @@ -1767,9 +1367,6 @@ type DatabaseAccountGetProperties struct { // "SystemAssignedIdentity" and more. DefaultIdentity *string `json:"defaultIdentity,omitempty"` - // The Object representing the different Diagnostic log settings for the Cosmos DB Account. - DiagnosticLogSettings *DiagnosticLogSettings `json:"diagnosticLogSettings,omitempty"` - // Disable write operations on metadata resources (databases, containers, throughput) via account keys DisableKeyBasedMetadataWriteAccess *bool `json:"disableKeyBasedMetadataWriteAccess,omitempty"` @@ -1790,9 +1387,6 @@ type DatabaseAccountGetProperties struct { // Flag to indicate whether Free Tier is enabled. EnableFreeTier *bool `json:"enableFreeTier,omitempty"` - // Flag to indicate whether to enable MaterializedViews on the Cosmos DB account - EnableMaterializedViews *bool `json:"enableMaterializedViews,omitempty"` - // Enables the account to write in multiple locations EnableMultipleWriteLocations *bool `json:"enableMultipleWriteLocations,omitempty"` @@ -1808,6 +1402,10 @@ type DatabaseAccountGetProperties struct { // The URI of the key vault KeyVaultKeyURI *string `json:"keyVaultKeyUri,omitempty"` + // Indicates the minimum allowed Tls version. The default is Tls 1.0, except for Cassandra and Mongo API's, which only work + // with Tls 1.2. + MinimalTLSVersion *MinimalTLSVersion `json:"minimalTlsVersion,omitempty"` + // Indicates what services are allowed to bypass firewall checks. NetworkACLBypass *NetworkACLBypass `json:"networkAclBypass,omitempty"` @@ -1944,7 +1542,7 @@ type DatabaseAccountRegenerateKeyParameters struct { KeyKind *KeyKind `json:"keyKind,omitempty"` } -// DatabaseAccountRegionClientListMetricsOptions contains the optional parameters for the DatabaseAccountRegionClient.ListMetrics +// DatabaseAccountRegionClientListMetricsOptions contains the optional parameters for the DatabaseAccountRegionClient.NewListMetricsPager // method. type DatabaseAccountRegionClientListMetricsOptions struct { // placeholder for future optional parameters @@ -2000,9 +1598,6 @@ type DatabaseAccountUpdateProperties struct { // "SystemAssignedIdentity" and more. DefaultIdentity *string `json:"defaultIdentity,omitempty"` - // The Object representing the different Diagnostic log settings for the Cosmos DB Account. - DiagnosticLogSettings *DiagnosticLogSettings `json:"diagnosticLogSettings,omitempty"` - // Disable write operations on metadata resources (databases, containers, throughput) via account keys DisableKeyBasedMetadataWriteAccess *bool `json:"disableKeyBasedMetadataWriteAccess,omitempty"` @@ -2023,9 +1618,6 @@ type DatabaseAccountUpdateProperties struct { // Flag to indicate whether Free Tier is enabled. EnableFreeTier *bool `json:"enableFreeTier,omitempty"` - // Flag to indicate whether to enable MaterializedViews on the Cosmos DB account - EnableMaterializedViews *bool `json:"enableMaterializedViews,omitempty"` - // Enables the account to write in multiple locations EnableMultipleWriteLocations *bool `json:"enableMultipleWriteLocations,omitempty"` @@ -2044,6 +1636,10 @@ type DatabaseAccountUpdateProperties struct { // An array that contains the georeplication locations enabled for the Cosmos DB account. Locations []*Location `json:"locations,omitempty"` + // Indicates the minimum allowed Tls version. The default is Tls 1.0, except for Cassandra and Mongo API's, which only work + // with Tls 1.2. + MinimalTLSVersion *MinimalTLSVersion `json:"minimalTlsVersion,omitempty"` + // Indicates what services are allowed to bypass firewall checks. NetworkACLBypass *NetworkACLBypass `json:"networkAclBypass,omitempty"` @@ -2125,7 +1721,7 @@ type DatabaseAccountsClientGetReadOnlyKeysOptions struct { // placeholder for future optional parameters } -// DatabaseAccountsClientListByResourceGroupOptions contains the optional parameters for the DatabaseAccountsClient.ListByResourceGroup +// DatabaseAccountsClientListByResourceGroupOptions contains the optional parameters for the DatabaseAccountsClient.NewListByResourceGroupPager // method. type DatabaseAccountsClientListByResourceGroupOptions struct { // placeholder for future optional parameters @@ -2142,18 +1738,19 @@ type DatabaseAccountsClientListKeysOptions struct { // placeholder for future optional parameters } -// DatabaseAccountsClientListMetricDefinitionsOptions contains the optional parameters for the DatabaseAccountsClient.ListMetricDefinitions +// DatabaseAccountsClientListMetricDefinitionsOptions contains the optional parameters for the DatabaseAccountsClient.NewListMetricDefinitionsPager // method. type DatabaseAccountsClientListMetricDefinitionsOptions struct { // placeholder for future optional parameters } -// DatabaseAccountsClientListMetricsOptions contains the optional parameters for the DatabaseAccountsClient.ListMetrics method. +// DatabaseAccountsClientListMetricsOptions contains the optional parameters for the DatabaseAccountsClient.NewListMetricsPager +// method. type DatabaseAccountsClientListMetricsOptions struct { // placeholder for future optional parameters } -// DatabaseAccountsClientListOptions contains the optional parameters for the DatabaseAccountsClient.List method. +// DatabaseAccountsClientListOptions contains the optional parameters for the DatabaseAccountsClient.NewListPager method. type DatabaseAccountsClientListOptions struct { // placeholder for future optional parameters } @@ -2164,7 +1761,8 @@ type DatabaseAccountsClientListReadOnlyKeysOptions struct { // placeholder for future optional parameters } -// DatabaseAccountsClientListUsagesOptions contains the optional parameters for the DatabaseAccountsClient.ListUsages method. +// DatabaseAccountsClientListUsagesOptions contains the optional parameters for the DatabaseAccountsClient.NewListUsagesPager +// method. type DatabaseAccountsClientListUsagesOptions struct { // An OData filter expression that describes a subset of usages to return. The supported parameter is name.value (name of // the metric, can have an or of multiple names). @@ -2177,18 +1775,18 @@ type DatabaseAccountsListResult struct { Value []*DatabaseAccountGetResults `json:"value,omitempty" azure:"ro"` } -// DatabaseClientListMetricDefinitionsOptions contains the optional parameters for the DatabaseClient.ListMetricDefinitions +// DatabaseClientListMetricDefinitionsOptions contains the optional parameters for the DatabaseClient.NewListMetricDefinitionsPager // method. type DatabaseClientListMetricDefinitionsOptions struct { // placeholder for future optional parameters } -// DatabaseClientListMetricsOptions contains the optional parameters for the DatabaseClient.ListMetrics method. +// DatabaseClientListMetricsOptions contains the optional parameters for the DatabaseClient.NewListMetricsPager method. type DatabaseClientListMetricsOptions struct { // placeholder for future optional parameters } -// DatabaseClientListUsagesOptions contains the optional parameters for the DatabaseClient.ListUsages method. +// DatabaseClientListUsagesOptions contains the optional parameters for the DatabaseClient.NewListUsagesPager method. type DatabaseClientListUsagesOptions struct { // An OData filter expression that describes a subset of usages to return. The supported parameter is name.value (name of // the metric, can have an or of multiple names). @@ -2204,12 +1802,6 @@ type DatabaseRestoreResource struct { DatabaseName *string `json:"databaseName,omitempty"` } -// DiagnosticLogSettings - Indicates what diagnostic log settings are to be enabled. -type DiagnosticLogSettings struct { - // Describe the level of detail with which queries are to be logged. - EnableFullTextQuery *EnableFullTextQuery `json:"enableFullTextQuery,omitempty"` -} - // ErrorResponse - Error Response. type ErrorResponse struct { // Error code. @@ -2284,7 +1876,7 @@ type GraphAPIComputeServiceResourceProperties struct { ServiceType *ServiceType `json:"serviceType,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // GraphAPICompute endpoint for the service. GraphAPIComputeEndpoint *string `json:"graphApiComputeEndpoint,omitempty"` @@ -2317,135 +1909,11 @@ func (g *GraphAPIComputeServiceResourceProperties) GetServiceResourceProperties( } } -// GraphResource - Cosmos DB Graph resource object -type GraphResource struct { - // REQUIRED; Name of the Cosmos DB Graph - ID *string `json:"id,omitempty"` -} - -// GraphResourceCreateUpdateParameters - Parameters to create and update Cosmos DB Graph resource. -type GraphResourceCreateUpdateParameters struct { - // REQUIRED; Properties to create and update Azure Cosmos DB Graph resource. - Properties *GraphResourceCreateUpdateProperties `json:"properties,omitempty"` - - // Identity for the resource. - Identity *ManagedServiceIdentity `json:"identity,omitempty"` - - // The location of the resource group to which the resource belongs. - Location *string `json:"location,omitempty"` - - // Tags are a list of key-value pairs that describe the resource. These tags can be used in viewing and grouping this resource - // (across resource groups). A maximum of 15 tags can be provided for a - // resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters. For example, - // the default experience for a template type is set with "defaultExperience": - // "Cassandra". Current "defaultExperience" values also include "Table", "Graph", "DocumentDB", and "MongoDB". - Tags map[string]*string `json:"tags,omitempty"` - - // READ-ONLY; The unique resource identifier of the ARM resource. - ID *string `json:"id,omitempty" azure:"ro"` - - // READ-ONLY; The name of the ARM resource. - Name *string `json:"name,omitempty" azure:"ro"` - - // READ-ONLY; The type of Azure resource. - Type *string `json:"type,omitempty" azure:"ro"` -} - -// GraphResourceCreateUpdateProperties - Properties to create and update Azure Cosmos DB Graph resource. -type GraphResourceCreateUpdateProperties struct { - // REQUIRED; The standard JSON format of a Graph resource - Resource *GraphResource `json:"resource,omitempty"` - - // A key-value pair of options to be applied for the request. This corresponds to the headers sent with the request. - Options *CreateUpdateOptions `json:"options,omitempty"` -} - -// GraphResourceGetProperties - The properties of an Azure Cosmos DB SQL database -type GraphResourceGetProperties struct { - Options *GraphResourceGetPropertiesOptions `json:"options,omitempty"` - Resource *GraphResourceGetPropertiesResource `json:"resource,omitempty"` -} - -type GraphResourceGetPropertiesOptions struct { - // Specifies the Autoscale settings. - AutoscaleSettings *AutoscaleSettings `json:"autoscaleSettings,omitempty"` - - // Value of the Cosmos DB resource throughput or autoscaleSettings. Use the ThroughputSetting resource when retrieving offer - // details. - Throughput *int32 `json:"throughput,omitempty"` -} - -type GraphResourceGetPropertiesResource struct { - // REQUIRED; Name of the Cosmos DB Graph - ID *string `json:"id,omitempty"` -} - -// GraphResourceGetResults - An Azure Cosmos DB Graph resource. -type GraphResourceGetResults struct { - // Identity for the resource. - Identity *ManagedServiceIdentity `json:"identity,omitempty"` - - // The location of the resource group to which the resource belongs. - Location *string `json:"location,omitempty"` - - // The properties of an Azure Cosmos DB Graph resource. - Properties *GraphResourceGetProperties `json:"properties,omitempty"` - - // Tags are a list of key-value pairs that describe the resource. These tags can be used in viewing and grouping this resource - // (across resource groups). A maximum of 15 tags can be provided for a - // resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters. For example, - // the default experience for a template type is set with "defaultExperience": - // "Cassandra". Current "defaultExperience" values also include "Table", "Graph", "DocumentDB", and "MongoDB". - Tags map[string]*string `json:"tags,omitempty"` - - // READ-ONLY; The unique resource identifier of the ARM resource. - ID *string `json:"id,omitempty" azure:"ro"` - - // READ-ONLY; The name of the ARM resource. - Name *string `json:"name,omitempty" azure:"ro"` - - // READ-ONLY; The type of Azure resource. - Type *string `json:"type,omitempty" azure:"ro"` -} - -// GraphResourcesClientBeginCreateUpdateGraphOptions contains the optional parameters for the GraphResourcesClient.BeginCreateUpdateGraph -// method. -type GraphResourcesClientBeginCreateUpdateGraphOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// GraphResourcesClientBeginDeleteGraphResourceOptions contains the optional parameters for the GraphResourcesClient.BeginDeleteGraphResource -// method. -type GraphResourcesClientBeginDeleteGraphResourceOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// GraphResourcesClientGetGraphOptions contains the optional parameters for the GraphResourcesClient.GetGraph method. -type GraphResourcesClientGetGraphOptions struct { - // placeholder for future optional parameters -} - -// GraphResourcesClientListGraphsOptions contains the optional parameters for the GraphResourcesClient.ListGraphs method. -type GraphResourcesClientListGraphsOptions struct { - // placeholder for future optional parameters -} - -// GraphResourcesListResult - The List operation response, that contains the Graph resource and their properties. -type GraphResourcesListResult struct { - // READ-ONLY; List of Graph resource and their properties. - Value []*GraphResourceGetResults `json:"value,omitempty" azure:"ro"` -} - // GremlinDatabaseCreateUpdateParameters - Parameters to create and update Cosmos DB Gremlin database. type GremlinDatabaseCreateUpdateParameters struct { // REQUIRED; Properties to create and update Azure Cosmos DB Gremlin database. Properties *GremlinDatabaseCreateUpdateProperties `json:"properties,omitempty"` - // Identity for the resource. - Identity *ManagedServiceIdentity `json:"identity,omitempty"` - // The location of the resource group to which the resource belongs. Location *string `json:"location,omitempty"` @@ -2506,9 +1974,6 @@ type GremlinDatabaseGetPropertiesResource struct { // GremlinDatabaseGetResults - An Azure Cosmos DB Gremlin database. type GremlinDatabaseGetResults struct { - // Identity for the resource. - Identity *ManagedServiceIdentity `json:"identity,omitempty"` - // The location of the resource group to which the resource belongs. Location *string `json:"location,omitempty"` @@ -2558,9 +2023,6 @@ type GremlinGraphCreateUpdateParameters struct { // REQUIRED; Properties to create and update Azure Cosmos DB Gremlin graph. Properties *GremlinGraphCreateUpdateProperties `json:"properties,omitempty"` - // Identity for the resource. - Identity *ManagedServiceIdentity `json:"identity,omitempty"` - // The location of the resource group to which the resource belongs. Location *string `json:"location,omitempty"` @@ -2640,9 +2102,6 @@ type GremlinGraphGetPropertiesResource struct { // GremlinGraphGetResults - An Azure Cosmos DB Gremlin graph. type GremlinGraphGetResults struct { - // Identity for the resource. - Identity *ManagedServiceIdentity `json:"identity,omitempty"` - // The location of the resource group to which the resource belongs. Location *string `json:"location,omitempty"` @@ -2798,13 +2257,13 @@ type GremlinResourcesClientGetGremlinGraphThroughputOptions struct { // placeholder for future optional parameters } -// GremlinResourcesClientListGremlinDatabasesOptions contains the optional parameters for the GremlinResourcesClient.ListGremlinDatabases +// GremlinResourcesClientListGremlinDatabasesOptions contains the optional parameters for the GremlinResourcesClient.NewListGremlinDatabasesPager // method. type GremlinResourcesClientListGremlinDatabasesOptions struct { // placeholder for future optional parameters } -// GremlinResourcesClientListGremlinGraphsOptions contains the optional parameters for the GremlinResourcesClient.ListGremlinGraphs +// GremlinResourcesClientListGremlinGraphsOptions contains the optional parameters for the GremlinResourcesClient.NewListGremlinGraphsPager // method. type GremlinResourcesClientListGremlinGraphsOptions struct { // placeholder for future optional parameters @@ -2877,12 +2336,6 @@ type KeyWrapMetadata struct { Value *string `json:"value,omitempty"` } -// ListBackups - List of restorable backups for a Cassandra cluster. -type ListBackups struct { - // READ-ONLY; Container for array of backups. - Value []*BackupResource `json:"value,omitempty" azure:"ro"` -} - // ListClusters - List of managed Cassandra clusters. type ListClusters struct { // Container for the array of clusters. @@ -2952,9 +2405,6 @@ type LocationProperties struct { // READ-ONLY; Flag indicating whether the location is residency sensitive. IsResidencyRestricted *bool `json:"isResidencyRestricted,omitempty" azure:"ro"` - // READ-ONLY; The current status of location in Azure. - Status *string `json:"status,omitempty" azure:"ro"` - // READ-ONLY; Flag indicating whether the location supports availability zones or not. SupportsAvailabilityZone *bool `json:"supportsAvailabilityZone,omitempty" azure:"ro"` } @@ -2964,7 +2414,7 @@ type LocationsClientGetOptions struct { // placeholder for future optional parameters } -// LocationsClientListOptions contains the optional parameters for the LocationsClient.List method. +// LocationsClientListOptions contains the optional parameters for the LocationsClient.NewListPager method. type LocationsClientListOptions struct { // placeholder for future optional parameters } @@ -3060,7 +2510,7 @@ type MaterializedViewsBuilderServiceResourceProperties struct { ServiceType *ServiceType `json:"serviceType,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Instance count for the service. InstanceCount *int32 `json:"instanceCount,omitempty"` @@ -3090,12 +2540,6 @@ func (m *MaterializedViewsBuilderServiceResourceProperties) GetServiceResourcePr } } -// MergeParameters - The properties of an Azure Cosmos DB merge operations -type MergeParameters struct { - // Specifies whether the operation is a real merge operation or a simulation. - IsDryRun *bool `json:"isDryRun,omitempty"` -} - // Metric data type Metric struct { // READ-ONLY; The end time for the metric (ISO-8601 format). @@ -3191,9 +2635,6 @@ type MongoDBCollectionCreateUpdateParameters struct { // REQUIRED; Properties to create and update Azure Cosmos DB MongoDB collection. Properties *MongoDBCollectionCreateUpdateProperties `json:"properties,omitempty"` - // Identity for the resource. - Identity *ManagedServiceIdentity `json:"identity,omitempty"` - // The location of the resource group to which the resource belongs. Location *string `json:"location,omitempty"` @@ -3245,15 +2686,9 @@ type MongoDBCollectionGetPropertiesResource struct { // Analytical TTL. AnalyticalStorageTTL *int32 `json:"analyticalStorageTtl,omitempty"` - // Enum to indicate the mode of resource creation. - CreateMode *CreateMode `json:"createMode,omitempty"` - // List of index keys Indexes []*MongoIndex `json:"indexes,omitempty"` - // Parameters to indicate the information about the restore - RestoreParameters *ResourceRestoreParameters `json:"restoreParameters,omitempty"` - // A key-value pair of shard keys to be applied for the request. ShardKey map[string]*string `json:"shardKey,omitempty"` @@ -3269,9 +2704,6 @@ type MongoDBCollectionGetPropertiesResource struct { // MongoDBCollectionGetResults - An Azure Cosmos DB MongoDB collection. type MongoDBCollectionGetResults struct { - // Identity for the resource. - Identity *ManagedServiceIdentity `json:"identity,omitempty"` - // The location of the resource group to which the resource belongs. Location *string `json:"location,omitempty"` @@ -3309,15 +2741,9 @@ type MongoDBCollectionResource struct { // Analytical TTL. AnalyticalStorageTTL *int32 `json:"analyticalStorageTtl,omitempty"` - // Enum to indicate the mode of resource creation. - CreateMode *CreateMode `json:"createMode,omitempty"` - // List of index keys Indexes []*MongoIndex `json:"indexes,omitempty"` - // Parameters to indicate the information about the restore - RestoreParameters *ResourceRestoreParameters `json:"restoreParameters,omitempty"` - // A key-value pair of shard keys to be applied for the request. ShardKey map[string]*string `json:"shardKey,omitempty"` } @@ -3327,9 +2753,6 @@ type MongoDBDatabaseCreateUpdateParameters struct { // REQUIRED; Properties to create and update Azure Cosmos DB MongoDB database. Properties *MongoDBDatabaseCreateUpdateProperties `json:"properties,omitempty"` - // Identity for the resource. - Identity *ManagedServiceIdentity `json:"identity,omitempty"` - // The location of the resource group to which the resource belongs. Location *string `json:"location,omitempty"` @@ -3378,12 +2801,6 @@ type MongoDBDatabaseGetPropertiesResource struct { // REQUIRED; Name of the Cosmos DB MongoDB database ID *string `json:"id,omitempty"` - // Enum to indicate the mode of resource creation. - CreateMode *CreateMode `json:"createMode,omitempty"` - - // Parameters to indicate the information about the restore - RestoreParameters *ResourceRestoreParameters `json:"restoreParameters,omitempty"` - // READ-ONLY; A system generated property representing the resource etag required for optimistic concurrency control. Etag *string `json:"_etag,omitempty" azure:"ro"` @@ -3396,9 +2813,6 @@ type MongoDBDatabaseGetPropertiesResource struct { // MongoDBDatabaseGetResults - An Azure Cosmos DB MongoDB database. type MongoDBDatabaseGetResults struct { - // Identity for the resource. - Identity *ManagedServiceIdentity `json:"identity,omitempty"` - // The location of the resource group to which the resource belongs. Location *string `json:"location,omitempty"` @@ -3432,12 +2846,6 @@ type MongoDBDatabaseListResult struct { type MongoDBDatabaseResource struct { // REQUIRED; Name of the Cosmos DB MongoDB database ID *string `json:"id,omitempty"` - - // Enum to indicate the mode of resource creation. - CreateMode *CreateMode `json:"createMode,omitempty"` - - // Parameters to indicate the information about the restore - RestoreParameters *ResourceRestoreParameters `json:"restoreParameters,omitempty"` } // MongoDBResourcesClientBeginCreateUpdateMongoDBCollectionOptions contains the optional parameters for the MongoDBResourcesClient.BeginCreateUpdateMongoDBCollection @@ -3496,13 +2904,6 @@ type MongoDBResourcesClientBeginDeleteMongoUserDefinitionOptions struct { ResumeToken string } -// MongoDBResourcesClientBeginListMongoDBCollectionPartitionMergeOptions contains the optional parameters for the MongoDBResourcesClient.BeginListMongoDBCollectionPartitionMerge -// method. -type MongoDBResourcesClientBeginListMongoDBCollectionPartitionMergeOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - // MongoDBResourcesClientBeginMigrateMongoDBCollectionToAutoscaleOptions contains the optional parameters for the MongoDBResourcesClient.BeginMigrateMongoDBCollectionToAutoscale // method. type MongoDBResourcesClientBeginMigrateMongoDBCollectionToAutoscaleOptions struct { @@ -3531,34 +2932,6 @@ type MongoDBResourcesClientBeginMigrateMongoDBDatabaseToManualThroughputOptions ResumeToken string } -// MongoDBResourcesClientBeginMongoDBContainerRedistributeThroughputOptions contains the optional parameters for the MongoDBResourcesClient.BeginMongoDBContainerRedistributeThroughput -// method. -type MongoDBResourcesClientBeginMongoDBContainerRedistributeThroughputOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// MongoDBResourcesClientBeginMongoDBContainerRetrieveThroughputDistributionOptions contains the optional parameters for the -// MongoDBResourcesClient.BeginMongoDBContainerRetrieveThroughputDistribution method. -type MongoDBResourcesClientBeginMongoDBContainerRetrieveThroughputDistributionOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// MongoDBResourcesClientBeginMongoDBDatabaseRedistributeThroughputOptions contains the optional parameters for the MongoDBResourcesClient.BeginMongoDBDatabaseRedistributeThroughput -// method. -type MongoDBResourcesClientBeginMongoDBDatabaseRedistributeThroughputOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// MongoDBResourcesClientBeginMongoDBDatabaseRetrieveThroughputDistributionOptions contains the optional parameters for the -// MongoDBResourcesClient.BeginMongoDBDatabaseRetrieveThroughputDistribution method. -type MongoDBResourcesClientBeginMongoDBDatabaseRetrieveThroughputDistributionOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - // MongoDBResourcesClientBeginRetrieveContinuousBackupInformationOptions contains the optional parameters for the MongoDBResourcesClient.BeginRetrieveContinuousBackupInformation // method. type MongoDBResourcesClientBeginRetrieveContinuousBackupInformationOptions struct { @@ -3616,25 +2989,25 @@ type MongoDBResourcesClientGetMongoUserDefinitionOptions struct { // placeholder for future optional parameters } -// MongoDBResourcesClientListMongoDBCollectionsOptions contains the optional parameters for the MongoDBResourcesClient.ListMongoDBCollections +// MongoDBResourcesClientListMongoDBCollectionsOptions contains the optional parameters for the MongoDBResourcesClient.NewListMongoDBCollectionsPager // method. type MongoDBResourcesClientListMongoDBCollectionsOptions struct { // placeholder for future optional parameters } -// MongoDBResourcesClientListMongoDBDatabasesOptions contains the optional parameters for the MongoDBResourcesClient.ListMongoDBDatabases +// MongoDBResourcesClientListMongoDBDatabasesOptions contains the optional parameters for the MongoDBResourcesClient.NewListMongoDBDatabasesPager // method. type MongoDBResourcesClientListMongoDBDatabasesOptions struct { // placeholder for future optional parameters } -// MongoDBResourcesClientListMongoRoleDefinitionsOptions contains the optional parameters for the MongoDBResourcesClient.ListMongoRoleDefinitions +// MongoDBResourcesClientListMongoRoleDefinitionsOptions contains the optional parameters for the MongoDBResourcesClient.NewListMongoRoleDefinitionsPager // method. type MongoDBResourcesClientListMongoRoleDefinitionsOptions struct { // placeholder for future optional parameters } -// MongoDBResourcesClientListMongoUserDefinitionsOptions contains the optional parameters for the MongoDBResourcesClient.ListMongoUserDefinitions +// MongoDBResourcesClientListMongoUserDefinitionsOptions contains the optional parameters for the MongoDBResourcesClient.NewListMongoUserDefinitionsPager // method. type MongoDBResourcesClientListMongoUserDefinitionsOptions struct { // placeholder for future optional parameters @@ -3843,7 +3216,7 @@ type NotebookWorkspacesClientGetOptions struct { // placeholder for future optional parameters } -// NotebookWorkspacesClientListByDatabaseAccountOptions contains the optional parameters for the NotebookWorkspacesClient.ListByDatabaseAccount +// NotebookWorkspacesClientListByDatabaseAccountOptions contains the optional parameters for the NotebookWorkspacesClient.NewListByDatabaseAccountPager // method. type NotebookWorkspacesClientListByDatabaseAccountOptions struct { // placeholder for future optional parameters @@ -3889,7 +3262,7 @@ type OperationListResult struct { Value []*Operation `json:"value,omitempty"` } -// OperationsClientListOptions contains the optional parameters for the OperationsClient.List method. +// OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method. type OperationsClientListOptions struct { // placeholder for future optional parameters } @@ -3904,13 +3277,13 @@ type OptionsResource struct { Throughput *int32 `json:"throughput,omitempty"` } -// PartitionKeyRangeIDClientListMetricsOptions contains the optional parameters for the PartitionKeyRangeIDClient.ListMetrics +// PartitionKeyRangeIDClientListMetricsOptions contains the optional parameters for the PartitionKeyRangeIDClient.NewListMetricsPager // method. type PartitionKeyRangeIDClientListMetricsOptions struct { // placeholder for future optional parameters } -// PartitionKeyRangeIDRegionClientListMetricsOptions contains the optional parameters for the PartitionKeyRangeIDRegionClient.ListMetrics +// PartitionKeyRangeIDRegionClientListMetricsOptions contains the optional parameters for the PartitionKeyRangeIDRegionClient.NewListMetricsPager // method. type PartitionKeyRangeIDRegionClientListMetricsOptions struct { // placeholder for future optional parameters @@ -3979,7 +3352,7 @@ type PartitionUsagesResult struct { Value []*PartitionUsage `json:"value,omitempty" azure:"ro"` } -// PercentileClientListMetricsOptions contains the optional parameters for the PercentileClient.ListMetrics method. +// PercentileClientListMetricsOptions contains the optional parameters for the PercentileClient.NewListMetricsPager method. type PercentileClientListMetricsOptions struct { // placeholder for future optional parameters } @@ -4053,13 +3426,14 @@ type PercentileMetricValue struct { Total *float64 `json:"total,omitempty" azure:"ro"` } -// PercentileSourceTargetClientListMetricsOptions contains the optional parameters for the PercentileSourceTargetClient.ListMetrics +// PercentileSourceTargetClientListMetricsOptions contains the optional parameters for the PercentileSourceTargetClient.NewListMetricsPager // method. type PercentileSourceTargetClientListMetricsOptions struct { // placeholder for future optional parameters } -// PercentileTargetClientListMetricsOptions contains the optional parameters for the PercentileTargetClient.ListMetrics method. +// PercentileTargetClientListMetricsOptions contains the optional parameters for the PercentileTargetClient.NewListMetricsPager +// method. type PercentileTargetClientListMetricsOptions struct { // placeholder for future optional parameters } @@ -4105,84 +3479,6 @@ type Permission struct { NotDataActions []*string `json:"notDataActions,omitempty"` } -// PhysicalPartitionID - PhysicalPartitionId object -type PhysicalPartitionID struct { - // REQUIRED; Id of a physical partition - ID *string `json:"id,omitempty"` -} - -// PhysicalPartitionStorageInfo - The storage of a physical partition -type PhysicalPartitionStorageInfo struct { - // READ-ONLY; The unique identifier of the partition. - ID *string `json:"id,omitempty" azure:"ro"` - - // READ-ONLY; The storage in KB for the physical partition. - StorageInKB *float64 `json:"storageInKB,omitempty" azure:"ro"` -} - -// PhysicalPartitionStorageInfoCollection - List of physical partitions and their properties returned by a merge operation. -type PhysicalPartitionStorageInfoCollection struct { - // READ-ONLY; List of physical partitions and their properties. - PhysicalPartitionStorageInfoCollection []*PhysicalPartitionStorageInfo `json:"physicalPartitionStorageInfoCollection,omitempty" azure:"ro"` -} - -// PhysicalPartitionThroughputInfoProperties - The properties of an Azure Cosmos DB PhysicalPartitionThroughputInfoProperties -// object -type PhysicalPartitionThroughputInfoProperties struct { - // Array of physical partition throughput info objects - PhysicalPartitionThroughputInfo []*PhysicalPartitionThroughputInfoResource `json:"physicalPartitionThroughputInfo,omitempty"` -} - -// PhysicalPartitionThroughputInfoResource - PhysicalPartitionThroughputInfo object -type PhysicalPartitionThroughputInfoResource struct { - // REQUIRED; Id of a physical partition - ID *string `json:"id,omitempty"` - - // Throughput of a physical partition - Throughput *float64 `json:"throughput,omitempty"` -} - -// PhysicalPartitionThroughputInfoResult - An Azure Cosmos DB PhysicalPartitionThroughputInfoResult object. -type PhysicalPartitionThroughputInfoResult struct { - // Identity for the resource. - Identity *ManagedServiceIdentity `json:"identity,omitempty"` - - // The location of the resource group to which the resource belongs. - Location *string `json:"location,omitempty"` - - // The properties of an Azure Cosmos DB PhysicalPartitionThroughputInfoResult object - Properties *PhysicalPartitionThroughputInfoResultProperties `json:"properties,omitempty"` - - // Tags are a list of key-value pairs that describe the resource. These tags can be used in viewing and grouping this resource - // (across resource groups). A maximum of 15 tags can be provided for a - // resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters. For example, - // the default experience for a template type is set with "defaultExperience": - // "Cassandra". Current "defaultExperience" values also include "Table", "Graph", "DocumentDB", and "MongoDB". - Tags map[string]*string `json:"tags,omitempty"` - - // READ-ONLY; The unique resource identifier of the ARM resource. - ID *string `json:"id,omitempty" azure:"ro"` - - // READ-ONLY; The name of the ARM resource. - Name *string `json:"name,omitempty" azure:"ro"` - - // READ-ONLY; The type of Azure resource. - Type *string `json:"type,omitempty" azure:"ro"` -} - -// PhysicalPartitionThroughputInfoResultProperties - The properties of an Azure Cosmos DB PhysicalPartitionThroughputInfoResult -// object -type PhysicalPartitionThroughputInfoResultProperties struct { - // properties of physical partition throughput info - Resource *PhysicalPartitionThroughputInfoResultPropertiesResource `json:"resource,omitempty"` -} - -// PhysicalPartitionThroughputInfoResultPropertiesResource - properties of physical partition throughput info -type PhysicalPartitionThroughputInfoResultPropertiesResource struct { - // Array of physical partition throughput info objects - PhysicalPartitionThroughputInfo []*PhysicalPartitionThroughputInfoResource `json:"physicalPartitionThroughputInfo,omitempty"` -} - // PrivateEndpointConnection - A private endpoint connection type PrivateEndpointConnection struct { // Resource properties. @@ -4239,7 +3535,7 @@ type PrivateEndpointConnectionsClientGetOptions struct { // placeholder for future optional parameters } -// PrivateEndpointConnectionsClientListByDatabaseAccountOptions contains the optional parameters for the PrivateEndpointConnectionsClient.ListByDatabaseAccount +// PrivateEndpointConnectionsClientListByDatabaseAccountOptions contains the optional parameters for the PrivateEndpointConnectionsClient.NewListByDatabaseAccountPager // method. type PrivateEndpointConnectionsClientListByDatabaseAccountOptions struct { // placeholder for future optional parameters @@ -4289,7 +3585,7 @@ type PrivateLinkResourcesClientGetOptions struct { // placeholder for future optional parameters } -// PrivateLinkResourcesClientListByDatabaseAccountOptions contains the optional parameters for the PrivateLinkResourcesClient.ListByDatabaseAccount +// PrivateLinkResourcesClientListByDatabaseAccountOptions contains the optional parameters for the PrivateLinkResourcesClient.NewListByDatabaseAccountPager // method. type PrivateLinkResourcesClientListByDatabaseAccountOptions struct { // placeholder for future optional parameters @@ -4338,52 +3634,6 @@ type ProxyResource struct { Type *string `json:"type,omitempty" azure:"ro"` } -// RedistributeThroughputParameters - Cosmos DB redistribute throughput parameters object -type RedistributeThroughputParameters struct { - // REQUIRED; Properties to redistribute throughput parameters object - Properties *RedistributeThroughputProperties `json:"properties,omitempty"` - - // Identity for the resource. - Identity *ManagedServiceIdentity `json:"identity,omitempty"` - - // The location of the resource group to which the resource belongs. - Location *string `json:"location,omitempty"` - - // Tags are a list of key-value pairs that describe the resource. These tags can be used in viewing and grouping this resource - // (across resource groups). A maximum of 15 tags can be provided for a - // resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters. For example, - // the default experience for a template type is set with "defaultExperience": - // "Cassandra". Current "defaultExperience" values also include "Table", "Graph", "DocumentDB", and "MongoDB". - Tags map[string]*string `json:"tags,omitempty"` - - // READ-ONLY; The unique resource identifier of the ARM resource. - ID *string `json:"id,omitempty" azure:"ro"` - - // READ-ONLY; The name of the ARM resource. - Name *string `json:"name,omitempty" azure:"ro"` - - // READ-ONLY; The type of Azure resource. - Type *string `json:"type,omitempty" azure:"ro"` -} - -// RedistributeThroughputProperties - Properties to redistribute throughput for Azure Cosmos DB resource. -type RedistributeThroughputProperties struct { - // REQUIRED; The standard JSON format of a resource throughput - Resource *RedistributeThroughputPropertiesResource `json:"resource,omitempty"` -} - -// RedistributeThroughputPropertiesResource - Resource to redistribute throughput for Azure Cosmos DB resource -type RedistributeThroughputPropertiesResource struct { - // REQUIRED; Array of PhysicalPartitionThroughputInfoResource objects. - SourcePhysicalPartitionThroughputInfo []*PhysicalPartitionThroughputInfoResource `json:"sourcePhysicalPartitionThroughputInfo,omitempty"` - - // REQUIRED; Array of PhysicalPartitionThroughputInfoResource objects. - TargetPhysicalPartitionThroughputInfo []*PhysicalPartitionThroughputInfoResource `json:"targetPhysicalPartitionThroughputInfo,omitempty"` - - // REQUIRED; ThroughputPolicy to apply for throughput redistribution - ThroughputPolicy *ThroughputPolicyType `json:"throughputPolicy,omitempty"` -} - // RegionForOnlineOffline - Cosmos DB region to online or offline. type RegionForOnlineOffline struct { // REQUIRED; Cosmos DB region, with spaces between words and each word capitalized. @@ -4414,16 +3664,6 @@ type Resource struct { Type *string `json:"type,omitempty" azure:"ro"` } -// ResourceRestoreParameters - Parameters to indicate the information about the restore. -type ResourceRestoreParameters struct { - // The id of the restorable database account from which the restore has to be initiated. For example: - // /subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{restorableDatabaseAccountName} - RestoreSource *string `json:"restoreSource,omitempty"` - - // Time to which the account has to be restored (ISO-8601 format). - RestoreTimestampInUTC *time.Time `json:"restoreTimestampInUtc,omitempty"` -} - // RestorableDatabaseAccountGetResult - A Azure Cosmos DB restorable database account. type RestorableDatabaseAccountGetResult struct { // The location of the resource group to which the resource belongs. @@ -4453,9 +3693,6 @@ type RestorableDatabaseAccountProperties struct { // The time at which the restorable database account has been deleted (ISO-8601 format). DeletionTime *time.Time `json:"deletionTime,omitempty"` - // The least recent time at which the database account can be restored to (ISO-8601 format). - OldestRestorableTime *time.Time `json:"oldestRestorableTime,omitempty"` - // READ-ONLY; The API type of the restorable database account. APIType *APIType `json:"apiType,omitempty" azure:"ro"` @@ -4469,13 +3706,13 @@ type RestorableDatabaseAccountsClientGetByLocationOptions struct { // placeholder for future optional parameters } -// RestorableDatabaseAccountsClientListByLocationOptions contains the optional parameters for the RestorableDatabaseAccountsClient.ListByLocation +// RestorableDatabaseAccountsClientListByLocationOptions contains the optional parameters for the RestorableDatabaseAccountsClient.NewListByLocationPager // method. type RestorableDatabaseAccountsClientListByLocationOptions struct { // placeholder for future optional parameters } -// RestorableDatabaseAccountsClientListOptions contains the optional parameters for the RestorableDatabaseAccountsClient.List +// RestorableDatabaseAccountsClientListOptions contains the optional parameters for the RestorableDatabaseAccountsClient.NewListPager // method. type RestorableDatabaseAccountsClientListOptions struct { // placeholder for future optional parameters @@ -4527,7 +3764,7 @@ type RestorableGremlinDatabasePropertiesResource struct { Rid *string `json:"_rid,omitempty" azure:"ro"` } -// RestorableGremlinDatabasesClientListOptions contains the optional parameters for the RestorableGremlinDatabasesClient.List +// RestorableGremlinDatabasesClientListOptions contains the optional parameters for the RestorableGremlinDatabasesClient.NewListPager // method. type RestorableGremlinDatabasesClientListOptions struct { // placeholder for future optional parameters @@ -4579,7 +3816,8 @@ type RestorableGremlinGraphPropertiesResource struct { Rid *string `json:"_rid,omitempty" azure:"ro"` } -// RestorableGremlinGraphsClientListOptions contains the optional parameters for the RestorableGremlinGraphsClient.List method. +// RestorableGremlinGraphsClientListOptions contains the optional parameters for the RestorableGremlinGraphsClient.NewListPager +// method. type RestorableGremlinGraphsClientListOptions struct { // Restorable Gremlin graphs event feed end time. EndTime *string @@ -4595,7 +3833,7 @@ type RestorableGremlinGraphsListResult struct { Value []*RestorableGremlinGraphGetResult `json:"value,omitempty" azure:"ro"` } -// RestorableGremlinResourcesClientListOptions contains the optional parameters for the RestorableGremlinResourcesClient.List +// RestorableGremlinResourcesClientListOptions contains the optional parameters for the RestorableGremlinResourcesClient.NewListPager // method. type RestorableGremlinResourcesClientListOptions struct { // The location where the restorable resources are located. @@ -4682,7 +3920,7 @@ type RestorableMongodbCollectionPropertiesResource struct { Rid *string `json:"_rid,omitempty" azure:"ro"` } -// RestorableMongodbCollectionsClientListOptions contains the optional parameters for the RestorableMongodbCollectionsClient.List +// RestorableMongodbCollectionsClientListOptions contains the optional parameters for the RestorableMongodbCollectionsClient.NewListPager // method. type RestorableMongodbCollectionsClientListOptions struct { // Restorable MongoDB collections event feed end time. @@ -4739,7 +3977,7 @@ type RestorableMongodbDatabasePropertiesResource struct { Rid *string `json:"_rid,omitempty" azure:"ro"` } -// RestorableMongodbDatabasesClientListOptions contains the optional parameters for the RestorableMongodbDatabasesClient.List +// RestorableMongodbDatabasesClientListOptions contains the optional parameters for the RestorableMongodbDatabasesClient.NewListPager // method. type RestorableMongodbDatabasesClientListOptions struct { // placeholder for future optional parameters @@ -4752,7 +3990,7 @@ type RestorableMongodbDatabasesListResult struct { Value []*RestorableMongodbDatabaseGetResult `json:"value,omitempty" azure:"ro"` } -// RestorableMongodbResourcesClientListOptions contains the optional parameters for the RestorableMongodbResourcesClient.List +// RestorableMongodbResourcesClientListOptions contains the optional parameters for the RestorableMongodbResourcesClient.NewListPager // method. type RestorableMongodbResourcesClientListOptions struct { // The location where the restorable resources are located. @@ -4841,9 +4079,6 @@ type RestorableSQLContainerPropertiesResourceContainer struct { // The conflict resolution policy for the container. ConflictResolutionPolicy *ConflictResolutionPolicy `json:"conflictResolutionPolicy,omitempty"` - // Enum to indicate the mode of resource creation. - CreateMode *CreateMode `json:"createMode,omitempty"` - // Default time to live DefaultTTL *int32 `json:"defaultTtl,omitempty"` @@ -4853,9 +4088,6 @@ type RestorableSQLContainerPropertiesResourceContainer struct { // The configuration of the partition key to be used for partitioning data into multiple partitions PartitionKey *ContainerPartitionKey `json:"partitionKey,omitempty"` - // Parameters to indicate the information about the restore - RestoreParameters *ResourceRestoreParameters `json:"restoreParameters,omitempty"` - // The unique key policy configuration for specifying uniqueness constraints on documents in the collection in the Azure Cosmos // DB service. UniqueKeyPolicy *UniqueKeyPolicy `json:"uniqueKeyPolicy,omitempty"` @@ -4873,7 +4105,8 @@ type RestorableSQLContainerPropertiesResourceContainer struct { Ts *float32 `json:"_ts,omitempty" azure:"ro"` } -// RestorableSQLContainersClientListOptions contains the optional parameters for the RestorableSQLContainersClient.List method. +// RestorableSQLContainersClientListOptions contains the optional parameters for the RestorableSQLContainersClient.NewListPager +// method. type RestorableSQLContainersClientListOptions struct { // Restorable Sql containers event feed end time. EndTime *string @@ -4936,12 +4169,6 @@ type RestorableSQLDatabasePropertiesResourceDatabase struct { // REQUIRED; Name of the Cosmos DB SQL database ID *string `json:"id,omitempty"` - // Enum to indicate the mode of resource creation. - CreateMode *CreateMode `json:"createMode,omitempty"` - - // Parameters to indicate the information about the restore - RestoreParameters *ResourceRestoreParameters `json:"restoreParameters,omitempty"` - // READ-ONLY; A system generated property that specified the addressable path of the collections resource. Colls *string `json:"_colls,omitempty" azure:"ro"` @@ -4961,7 +4188,8 @@ type RestorableSQLDatabasePropertiesResourceDatabase struct { Users *string `json:"_users,omitempty" azure:"ro"` } -// RestorableSQLDatabasesClientListOptions contains the optional parameters for the RestorableSQLDatabasesClient.List method. +// RestorableSQLDatabasesClientListOptions contains the optional parameters for the RestorableSQLDatabasesClient.NewListPager +// method. type RestorableSQLDatabasesClientListOptions struct { // placeholder for future optional parameters } @@ -4972,7 +4200,8 @@ type RestorableSQLDatabasesListResult struct { Value []*RestorableSQLDatabaseGetResult `json:"value,omitempty" azure:"ro"` } -// RestorableSQLResourcesClientListOptions contains the optional parameters for the RestorableSQLResourcesClient.List method. +// RestorableSQLResourcesClientListOptions contains the optional parameters for the RestorableSQLResourcesClient.NewListPager +// method. type RestorableSQLResourcesClientListOptions struct { // The location where the restorable resources are located. RestoreLocation *string @@ -5043,7 +4272,7 @@ type RestorableTablePropertiesResource struct { Rid *string `json:"_rid,omitempty" azure:"ro"` } -// RestorableTableResourcesClientListOptions contains the optional parameters for the RestorableTableResourcesClient.List +// RestorableTableResourcesClientListOptions contains the optional parameters for the RestorableTableResourcesClient.NewListPager // method. type RestorableTableResourcesClientListOptions struct { // The location where the restorable resources are located. @@ -5070,7 +4299,7 @@ type RestorableTableResourcesListResult struct { Value []*RestorableTableResourcesGetResult `json:"value,omitempty" azure:"ro"` } -// RestorableTablesClientListOptions contains the optional parameters for the RestorableTablesClient.List method. +// RestorableTablesClientListOptions contains the optional parameters for the RestorableTablesClient.NewListPager method. type RestorableTablesClientListOptions struct { // Restorable Tables event feed end time. EndTime *string @@ -5106,56 +4335,6 @@ type RestoreParameters struct { TablesToRestore []*string `json:"tablesToRestore,omitempty"` } -// RestoreParametersBase - Parameters to indicate the information about the restore. -type RestoreParametersBase struct { - // The id of the restorable database account from which the restore has to be initiated. For example: - // /subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{restorableDatabaseAccountName} - RestoreSource *string `json:"restoreSource,omitempty"` - - // Time to which the account has to be restored (ISO-8601 format). - RestoreTimestampInUTC *time.Time `json:"restoreTimestampInUtc,omitempty"` -} - -// RetrieveThroughputParameters - Cosmos DB retrieve throughput parameters object -type RetrieveThroughputParameters struct { - // REQUIRED; Properties to retrieve throughput parameters object - Properties *RetrieveThroughputProperties `json:"properties,omitempty"` - - // Identity for the resource. - Identity *ManagedServiceIdentity `json:"identity,omitempty"` - - // The location of the resource group to which the resource belongs. - Location *string `json:"location,omitempty"` - - // Tags are a list of key-value pairs that describe the resource. These tags can be used in viewing and grouping this resource - // (across resource groups). A maximum of 15 tags can be provided for a - // resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters. For example, - // the default experience for a template type is set with "defaultExperience": - // "Cassandra". Current "defaultExperience" values also include "Table", "Graph", "DocumentDB", and "MongoDB". - Tags map[string]*string `json:"tags,omitempty"` - - // READ-ONLY; The unique resource identifier of the ARM resource. - ID *string `json:"id,omitempty" azure:"ro"` - - // READ-ONLY; The name of the ARM resource. - Name *string `json:"name,omitempty" azure:"ro"` - - // READ-ONLY; The type of Azure resource. - Type *string `json:"type,omitempty" azure:"ro"` -} - -// RetrieveThroughputProperties - Properties to retrieve throughput for Azure Cosmos DB resource. -type RetrieveThroughputProperties struct { - // REQUIRED; The standard JSON format of a resource throughput - Resource *RetrieveThroughputPropertiesResource `json:"resource,omitempty"` -} - -// RetrieveThroughputPropertiesResource - Resource to retrieve throughput information for Cosmos DB resource -type RetrieveThroughputPropertiesResource struct { - // REQUIRED; Array of PhysicalPartitionId objects. - PhysicalPartitionIDs []*PhysicalPartitionID `json:"physicalPartitionIds,omitempty"` -} - // Role - The set of roles permitted through this Role Definition. type Role struct { // The database name the role is applied. @@ -5170,9 +4349,6 @@ type SQLContainerCreateUpdateParameters struct { // REQUIRED; Properties to create and update Azure Cosmos DB container. Properties *SQLContainerCreateUpdateProperties `json:"properties,omitempty"` - // Identity for the resource. - Identity *ManagedServiceIdentity `json:"identity,omitempty"` - // The location of the resource group to which the resource belongs. Location *string `json:"location,omitempty"` @@ -5230,9 +4406,6 @@ type SQLContainerGetPropertiesResource struct { // The conflict resolution policy for the container. ConflictResolutionPolicy *ConflictResolutionPolicy `json:"conflictResolutionPolicy,omitempty"` - // Enum to indicate the mode of resource creation. - CreateMode *CreateMode `json:"createMode,omitempty"` - // Default time to live DefaultTTL *int32 `json:"defaultTtl,omitempty"` @@ -5242,9 +4415,6 @@ type SQLContainerGetPropertiesResource struct { // The configuration of the partition key to be used for partitioning data into multiple partitions PartitionKey *ContainerPartitionKey `json:"partitionKey,omitempty"` - // Parameters to indicate the information about the restore - RestoreParameters *ResourceRestoreParameters `json:"restoreParameters,omitempty"` - // The unique key policy configuration for specifying uniqueness constraints on documents in the collection in the Azure Cosmos // DB service. UniqueKeyPolicy *UniqueKeyPolicy `json:"uniqueKeyPolicy,omitempty"` @@ -5261,9 +4431,6 @@ type SQLContainerGetPropertiesResource struct { // SQLContainerGetResults - An Azure Cosmos DB container. type SQLContainerGetResults struct { - // Identity for the resource. - Identity *ManagedServiceIdentity `json:"identity,omitempty"` - // The location of the resource group to which the resource belongs. Location *string `json:"location,omitempty"` @@ -5307,9 +4474,6 @@ type SQLContainerResource struct { // The conflict resolution policy for the container. ConflictResolutionPolicy *ConflictResolutionPolicy `json:"conflictResolutionPolicy,omitempty"` - // Enum to indicate the mode of resource creation. - CreateMode *CreateMode `json:"createMode,omitempty"` - // Default time to live DefaultTTL *int32 `json:"defaultTtl,omitempty"` @@ -5319,41 +4483,16 @@ type SQLContainerResource struct { // The configuration of the partition key to be used for partitioning data into multiple partitions PartitionKey *ContainerPartitionKey `json:"partitionKey,omitempty"` - // Parameters to indicate the information about the restore - RestoreParameters *ResourceRestoreParameters `json:"restoreParameters,omitempty"` - // The unique key policy configuration for specifying uniqueness constraints on documents in the collection in the Azure Cosmos // DB service. UniqueKeyPolicy *UniqueKeyPolicy `json:"uniqueKeyPolicy,omitempty"` } -// SQLDataTransferDataSourceSink - A CosmosDB Cassandra API data source/sink -type SQLDataTransferDataSourceSink struct { - // REQUIRED - Component *DataTransferComponent `json:"component,omitempty"` - - // REQUIRED - ContainerName *string `json:"containerName,omitempty"` - - // REQUIRED - DatabaseName *string `json:"databaseName,omitempty"` -} - -// GetDataTransferDataSourceSink implements the DataTransferDataSourceSinkClassification interface for type SQLDataTransferDataSourceSink. -func (s *SQLDataTransferDataSourceSink) GetDataTransferDataSourceSink() *DataTransferDataSourceSink { - return &DataTransferDataSourceSink{ - Component: s.Component, - } -} - // SQLDatabaseCreateUpdateParameters - Parameters to create and update Cosmos DB SQL database. type SQLDatabaseCreateUpdateParameters struct { // REQUIRED; Properties to create and update Azure Cosmos DB SQL database. Properties *SQLDatabaseCreateUpdateProperties `json:"properties,omitempty"` - // Identity for the resource. - Identity *ManagedServiceIdentity `json:"identity,omitempty"` - // The location of the resource group to which the resource belongs. Location *string `json:"location,omitempty"` @@ -5405,12 +4544,6 @@ type SQLDatabaseGetPropertiesResource struct { // A system generated property that specified the addressable path of the collections resource. Colls *string `json:"_colls,omitempty"` - // Enum to indicate the mode of resource creation. - CreateMode *CreateMode `json:"createMode,omitempty"` - - // Parameters to indicate the information about the restore - RestoreParameters *ResourceRestoreParameters `json:"restoreParameters,omitempty"` - // A system generated property that specifies the addressable path of the users resource. Users *string `json:"_users,omitempty"` @@ -5426,9 +4559,6 @@ type SQLDatabaseGetPropertiesResource struct { // SQLDatabaseGetResults - An Azure Cosmos DB SQL database. type SQLDatabaseGetResults struct { - // Identity for the resource. - Identity *ManagedServiceIdentity `json:"identity,omitempty"` - // The location of the resource group to which the resource belongs. Location *string `json:"location,omitempty"` @@ -5462,12 +4592,6 @@ type SQLDatabaseListResult struct { type SQLDatabaseResource struct { // REQUIRED; Name of the Cosmos DB SQL database ID *string `json:"id,omitempty"` - - // Enum to indicate the mode of resource creation. - CreateMode *CreateMode `json:"createMode,omitempty"` - - // Parameters to indicate the information about the restore - RestoreParameters *ResourceRestoreParameters `json:"restoreParameters,omitempty"` } // SQLDedicatedGatewayRegionalServiceResource - Resource for a regional service location. @@ -5497,7 +4621,7 @@ type SQLDedicatedGatewayServiceResourceProperties struct { ServiceType *ServiceType `json:"serviceType,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Instance count for the service. InstanceCount *int32 `json:"instanceCount,omitempty"` @@ -5635,13 +4759,6 @@ type SQLResourcesClientBeginDeleteSQLUserDefinedFunctionOptions struct { ResumeToken string } -// SQLResourcesClientBeginListSQLContainerPartitionMergeOptions contains the optional parameters for the SQLResourcesClient.BeginListSQLContainerPartitionMerge -// method. -type SQLResourcesClientBeginListSQLContainerPartitionMergeOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - // SQLResourcesClientBeginMigrateSQLContainerToAutoscaleOptions contains the optional parameters for the SQLResourcesClient.BeginMigrateSQLContainerToAutoscale // method. type SQLResourcesClientBeginMigrateSQLContainerToAutoscaleOptions struct { @@ -5677,34 +4794,6 @@ type SQLResourcesClientBeginRetrieveContinuousBackupInformationOptions struct { ResumeToken string } -// SQLResourcesClientBeginSQLContainerRedistributeThroughputOptions contains the optional parameters for the SQLResourcesClient.BeginSQLContainerRedistributeThroughput -// method. -type SQLResourcesClientBeginSQLContainerRedistributeThroughputOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// SQLResourcesClientBeginSQLContainerRetrieveThroughputDistributionOptions contains the optional parameters for the SQLResourcesClient.BeginSQLContainerRetrieveThroughputDistribution -// method. -type SQLResourcesClientBeginSQLContainerRetrieveThroughputDistributionOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// SQLResourcesClientBeginSQLDatabaseRedistributeThroughputOptions contains the optional parameters for the SQLResourcesClient.BeginSQLDatabaseRedistributeThroughput -// method. -type SQLResourcesClientBeginSQLDatabaseRedistributeThroughputOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - -// SQLResourcesClientBeginSQLDatabaseRetrieveThroughputDistributionOptions contains the optional parameters for the SQLResourcesClient.BeginSQLDatabaseRetrieveThroughputDistribution -// method. -type SQLResourcesClientBeginSQLDatabaseRetrieveThroughputDistributionOptions struct { - // Resumes the LRO from the provided token. - ResumeToken string -} - // SQLResourcesClientBeginUpdateSQLContainerThroughputOptions contains the optional parameters for the SQLResourcesClient.BeginUpdateSQLContainerThroughput // method. type SQLResourcesClientBeginUpdateSQLContainerThroughputOptions struct { @@ -5776,48 +4865,49 @@ type SQLResourcesClientGetSQLUserDefinedFunctionOptions struct { // placeholder for future optional parameters } -// SQLResourcesClientListClientEncryptionKeysOptions contains the optional parameters for the SQLResourcesClient.ListClientEncryptionKeys +// SQLResourcesClientListClientEncryptionKeysOptions contains the optional parameters for the SQLResourcesClient.NewListClientEncryptionKeysPager // method. type SQLResourcesClientListClientEncryptionKeysOptions struct { // placeholder for future optional parameters } -// SQLResourcesClientListSQLContainersOptions contains the optional parameters for the SQLResourcesClient.ListSQLContainers +// SQLResourcesClientListSQLContainersOptions contains the optional parameters for the SQLResourcesClient.NewListSQLContainersPager // method. type SQLResourcesClientListSQLContainersOptions struct { // placeholder for future optional parameters } -// SQLResourcesClientListSQLDatabasesOptions contains the optional parameters for the SQLResourcesClient.ListSQLDatabases +// SQLResourcesClientListSQLDatabasesOptions contains the optional parameters for the SQLResourcesClient.NewListSQLDatabasesPager // method. type SQLResourcesClientListSQLDatabasesOptions struct { // placeholder for future optional parameters } -// SQLResourcesClientListSQLRoleAssignmentsOptions contains the optional parameters for the SQLResourcesClient.ListSQLRoleAssignments +// SQLResourcesClientListSQLRoleAssignmentsOptions contains the optional parameters for the SQLResourcesClient.NewListSQLRoleAssignmentsPager // method. type SQLResourcesClientListSQLRoleAssignmentsOptions struct { // placeholder for future optional parameters } -// SQLResourcesClientListSQLRoleDefinitionsOptions contains the optional parameters for the SQLResourcesClient.ListSQLRoleDefinitions +// SQLResourcesClientListSQLRoleDefinitionsOptions contains the optional parameters for the SQLResourcesClient.NewListSQLRoleDefinitionsPager // method. type SQLResourcesClientListSQLRoleDefinitionsOptions struct { // placeholder for future optional parameters } -// SQLResourcesClientListSQLStoredProceduresOptions contains the optional parameters for the SQLResourcesClient.ListSQLStoredProcedures +// SQLResourcesClientListSQLStoredProceduresOptions contains the optional parameters for the SQLResourcesClient.NewListSQLStoredProceduresPager // method. type SQLResourcesClientListSQLStoredProceduresOptions struct { // placeholder for future optional parameters } -// SQLResourcesClientListSQLTriggersOptions contains the optional parameters for the SQLResourcesClient.ListSQLTriggers method. +// SQLResourcesClientListSQLTriggersOptions contains the optional parameters for the SQLResourcesClient.NewListSQLTriggersPager +// method. type SQLResourcesClientListSQLTriggersOptions struct { // placeholder for future optional parameters } -// SQLResourcesClientListSQLUserDefinedFunctionsOptions contains the optional parameters for the SQLResourcesClient.ListSQLUserDefinedFunctions +// SQLResourcesClientListSQLUserDefinedFunctionsOptions contains the optional parameters for the SQLResourcesClient.NewListSQLUserDefinedFunctionsPager // method. type SQLResourcesClientListSQLUserDefinedFunctionsOptions struct { // placeholder for future optional parameters @@ -5915,9 +5005,6 @@ type SQLStoredProcedureCreateUpdateParameters struct { // REQUIRED; Properties to create and update Azure Cosmos DB storedProcedure. Properties *SQLStoredProcedureCreateUpdateProperties `json:"properties,omitempty"` - // Identity for the resource. - Identity *ManagedServiceIdentity `json:"identity,omitempty"` - // The location of the resource group to which the resource belongs. Location *string `json:"location,omitempty"` @@ -5971,9 +5058,6 @@ type SQLStoredProcedureGetPropertiesResource struct { // SQLStoredProcedureGetResults - An Azure Cosmos DB storedProcedure. type SQLStoredProcedureGetResults struct { - // Identity for the resource. - Identity *ManagedServiceIdentity `json:"identity,omitempty"` - // The location of the resource group to which the resource belongs. Location *string `json:"location,omitempty"` @@ -6017,9 +5101,6 @@ type SQLTriggerCreateUpdateParameters struct { // REQUIRED; Properties to create and update Azure Cosmos DB trigger. Properties *SQLTriggerCreateUpdateProperties `json:"properties,omitempty"` - // Identity for the resource. - Identity *ManagedServiceIdentity `json:"identity,omitempty"` - // The location of the resource group to which the resource belongs. Location *string `json:"location,omitempty"` @@ -6079,9 +5160,6 @@ type SQLTriggerGetPropertiesResource struct { // SQLTriggerGetResults - An Azure Cosmos DB trigger. type SQLTriggerGetResults struct { - // Identity for the resource. - Identity *ManagedServiceIdentity `json:"identity,omitempty"` - // The location of the resource group to which the resource belongs. Location *string `json:"location,omitempty"` @@ -6131,9 +5209,6 @@ type SQLUserDefinedFunctionCreateUpdateParameters struct { // REQUIRED; Properties to create and update Azure Cosmos DB userDefinedFunction. Properties *SQLUserDefinedFunctionCreateUpdateProperties `json:"properties,omitempty"` - // Identity for the resource. - Identity *ManagedServiceIdentity `json:"identity,omitempty"` - // The location of the resource group to which the resource belongs. Location *string `json:"location,omitempty"` @@ -6187,9 +5262,6 @@ type SQLUserDefinedFunctionGetPropertiesResource struct { // SQLUserDefinedFunctionGetResults - An Azure Cosmos DB userDefinedFunction. type SQLUserDefinedFunctionGetResults struct { - // Identity for the resource. - Identity *ManagedServiceIdentity `json:"identity,omitempty"` - // The location of the resource group to which the resource belongs. Location *string `json:"location,omitempty"` @@ -6250,7 +5322,7 @@ type ServiceClientGetOptions struct { // placeholder for future optional parameters } -// ServiceClientListOptions contains the optional parameters for the ServiceClient.List method. +// ServiceClientListOptions contains the optional parameters for the ServiceClient.NewListPager method. type ServiceClientListOptions struct { // placeholder for future optional parameters } @@ -6310,7 +5382,7 @@ type ServiceResourceProperties struct { ServiceType *ServiceType `json:"serviceType,omitempty"` // OPTIONAL; Contains additional key/value pairs not defined in the schema. - AdditionalProperties map[string]interface{} + AdditionalProperties map[string]any // Instance count for the service. InstanceCount *int32 `json:"instanceCount,omitempty"` @@ -6364,9 +5436,6 @@ type TableCreateUpdateParameters struct { // REQUIRED; Properties to create and update Azure Cosmos DB Table. Properties *TableCreateUpdateProperties `json:"properties,omitempty"` - // Identity for the resource. - Identity *ManagedServiceIdentity `json:"identity,omitempty"` - // The location of the resource group to which the resource belongs. Location *string `json:"location,omitempty"` @@ -6427,9 +5496,6 @@ type TableGetPropertiesResource struct { // TableGetResults - An Azure Cosmos DB Table. type TableGetResults struct { - // Identity for the resource. - Identity *ManagedServiceIdentity `json:"identity,omitempty"` - // The location of the resource group to which the resource belongs. Location *string `json:"location,omitempty"` @@ -6518,7 +5584,8 @@ type TableResourcesClientGetTableThroughputOptions struct { // placeholder for future optional parameters } -// TableResourcesClientListTablesOptions contains the optional parameters for the TableResourcesClient.ListTables method. +// TableResourcesClientListTablesOptions contains the optional parameters for the TableResourcesClient.NewListTablesPager +// method. type TableResourcesClientListTablesOptions struct { // placeholder for future optional parameters } @@ -6562,9 +5629,6 @@ type ThroughputSettingsGetPropertiesResource struct { // ThroughputSettingsGetResults - An Azure Cosmos DB resource throughput. type ThroughputSettingsGetResults struct { - // Identity for the resource. - Identity *ManagedServiceIdentity `json:"identity,omitempty"` - // The location of the resource group to which the resource belongs. Location *string `json:"location,omitempty"` @@ -6609,9 +5673,6 @@ type ThroughputSettingsUpdateParameters struct { // REQUIRED; Properties to update Azure Cosmos DB resource throughput. Properties *ThroughputSettingsUpdateProperties `json:"properties,omitempty"` - // Identity for the resource. - Identity *ManagedServiceIdentity `json:"identity,omitempty"` - // The location of the resource group to which the resource belongs. Location *string `json:"location,omitempty"` diff --git a/sdk/resourcemanager/cosmos/armcosmos/models_serde.go b/sdk/resourcemanager/cosmos/armcosmos/models_serde.go index 31e10a961e3d..919bc879ed2d 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/models_serde.go +++ b/sdk/resourcemanager/cosmos/armcosmos/models_serde.go @@ -19,7 +19,7 @@ import ( // MarshalJSON implements the json.Marshaller interface for type APIProperties. func (a APIProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "serverVersion", a.ServerVersion) return json.Marshal(objectMap) } @@ -46,7 +46,7 @@ func (a *APIProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ARMProxyResource. func (a ARMProxyResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", a.ID) populate(objectMap, "name", a.Name) populate(objectMap, "type", a.Type) @@ -81,9 +81,8 @@ func (a *ARMProxyResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ARMResourceProperties. func (a ARMResourceProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", a.ID) - populate(objectMap, "identity", a.Identity) populate(objectMap, "location", a.Location) populate(objectMap, "name", a.Name) populate(objectMap, "tags", a.Tags) @@ -103,9 +102,6 @@ func (a *ARMResourceProperties) UnmarshalJSON(data []byte) error { case "id": err = unpopulate(val, "ID", &a.ID) delete(rawMsg, key) - case "identity": - err = unpopulate(val, "Identity", &a.Identity) - delete(rawMsg, key) case "location": err = unpopulate(val, "Location", &a.Location) delete(rawMsg, key) @@ -128,7 +124,7 @@ func (a *ARMResourceProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AccountKeyMetadata. func (a AccountKeyMetadata) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populateTimeRFC3339(objectMap, "generationTime", a.GenerationTime) return json.Marshal(objectMap) } @@ -155,7 +151,7 @@ func (a *AccountKeyMetadata) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AnalyticalStorageConfiguration. func (a AnalyticalStorageConfiguration) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "schemaType", a.SchemaType) return json.Marshal(objectMap) } @@ -180,60 +176,9 @@ func (a *AnalyticalStorageConfiguration) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type AuthenticationMethodLdapProperties. -func (a AuthenticationMethodLdapProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "searchBaseDistinguishedName", a.SearchBaseDistinguishedName) - populate(objectMap, "searchFilterTemplate", a.SearchFilterTemplate) - populate(objectMap, "serverCertificates", a.ServerCertificates) - populate(objectMap, "serverHostname", a.ServerHostname) - populate(objectMap, "serverPort", a.ServerPort) - populate(objectMap, "serviceUserDistinguishedName", a.ServiceUserDistinguishedName) - populate(objectMap, "serviceUserPassword", a.ServiceUserPassword) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type AuthenticationMethodLdapProperties. -func (a *AuthenticationMethodLdapProperties) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", a, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "searchBaseDistinguishedName": - err = unpopulate(val, "SearchBaseDistinguishedName", &a.SearchBaseDistinguishedName) - delete(rawMsg, key) - case "searchFilterTemplate": - err = unpopulate(val, "SearchFilterTemplate", &a.SearchFilterTemplate) - delete(rawMsg, key) - case "serverCertificates": - err = unpopulate(val, "ServerCertificates", &a.ServerCertificates) - delete(rawMsg, key) - case "serverHostname": - err = unpopulate(val, "ServerHostname", &a.ServerHostname) - delete(rawMsg, key) - case "serverPort": - err = unpopulate(val, "ServerPort", &a.ServerPort) - delete(rawMsg, key) - case "serviceUserDistinguishedName": - err = unpopulate(val, "ServiceUserDistinguishedName", &a.ServiceUserDistinguishedName) - delete(rawMsg, key) - case "serviceUserPassword": - err = unpopulate(val, "ServiceUserPassword", &a.ServiceUserPassword) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", a, err) - } - } - return nil -} - // MarshalJSON implements the json.Marshaller interface for type AutoUpgradePolicyResource. func (a AutoUpgradePolicyResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "throughputPolicy", a.ThroughputPolicy) return json.Marshal(objectMap) } @@ -260,7 +205,7 @@ func (a *AutoUpgradePolicyResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AutoscaleSettings. func (a AutoscaleSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "maxThroughput", a.MaxThroughput) return json.Marshal(objectMap) } @@ -287,7 +232,7 @@ func (a *AutoscaleSettings) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type AutoscaleSettingsResource. func (a AutoscaleSettingsResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "autoUpgradePolicy", a.AutoUpgradePolicy) populate(objectMap, "maxThroughput", a.MaxThroughput) populate(objectMap, "targetMaxThroughput", a.TargetMaxThroughput) @@ -320,44 +265,9 @@ func (a *AutoscaleSettingsResource) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type AzureBlobDataTransferDataSourceSink. -func (a AzureBlobDataTransferDataSourceSink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - objectMap["component"] = DataTransferComponentAzureBlobStorage - populate(objectMap, "containerName", a.ContainerName) - populate(objectMap, "endpointUrl", a.EndpointURL) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type AzureBlobDataTransferDataSourceSink. -func (a *AzureBlobDataTransferDataSourceSink) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", a, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "component": - err = unpopulate(val, "Component", &a.Component) - delete(rawMsg, key) - case "containerName": - err = unpopulate(val, "ContainerName", &a.ContainerName) - delete(rawMsg, key) - case "endpointUrl": - err = unpopulate(val, "EndpointURL", &a.EndpointURL) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", a, err) - } - } - return nil -} - // MarshalJSON implements the json.Marshaller interface for type BackupInformation. func (b BackupInformation) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "continuousBackupInformation", b.ContinuousBackupInformation) return json.Marshal(objectMap) } @@ -384,7 +294,7 @@ func (b *BackupInformation) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type BackupPolicy. func (b BackupPolicy) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "migrationState", b.MigrationState) objectMap["type"] = b.Type return json.Marshal(objectMap) @@ -415,7 +325,7 @@ func (b *BackupPolicy) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type BackupPolicyMigrationState. func (b BackupPolicyMigrationState) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populateTimeRFC3339(objectMap, "startTime", b.StartTime) populate(objectMap, "status", b.Status) populate(objectMap, "targetType", b.TargetType) @@ -448,75 +358,9 @@ func (b *BackupPolicyMigrationState) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type BackupResource. -func (b BackupResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", b.ID) - populate(objectMap, "name", b.Name) - populate(objectMap, "properties", b.Properties) - populate(objectMap, "type", b.Type) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type BackupResource. -func (b *BackupResource) 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", b, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "id": - err = unpopulate(val, "ID", &b.ID) - delete(rawMsg, key) - case "name": - err = unpopulate(val, "Name", &b.Name) - delete(rawMsg, key) - case "properties": - err = unpopulate(val, "Properties", &b.Properties) - delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &b.Type) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", b, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type BackupResourceProperties. -func (b BackupResourceProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populateTimeRFC3339(objectMap, "timestamp", b.Timestamp) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type BackupResourceProperties. -func (b *BackupResourceProperties) 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", b, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "timestamp": - err = unpopulateTimeRFC3339(val, "Timestamp", &b.Timestamp) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", b, err) - } - } - return nil -} - // MarshalJSON implements the json.Marshaller interface for type Capability. func (c Capability) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "name", c.Name) return json.Marshal(objectMap) } @@ -543,7 +387,7 @@ func (c *Capability) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Capacity. func (c Capacity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "totalThroughputLimit", c.TotalThroughputLimit) return json.Marshal(objectMap) } @@ -570,7 +414,7 @@ func (c *Capacity) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CassandraClusterPublicStatus. func (c CassandraClusterPublicStatus) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "connectionErrors", c.ConnectionErrors) populate(objectMap, "dataCenters", c.DataCenters) populate(objectMap, "eTag", c.ETag) @@ -609,7 +453,7 @@ func (c *CassandraClusterPublicStatus) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CassandraClusterPublicStatusDataCentersItem. func (c CassandraClusterPublicStatusDataCentersItem) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "name", c.Name) populate(objectMap, "nodes", c.Nodes) populate(objectMap, "seedNodes", c.SeedNodes) @@ -642,46 +486,10 @@ func (c *CassandraClusterPublicStatusDataCentersItem) UnmarshalJSON(data []byte) return nil } -// MarshalJSON implements the json.Marshaller interface for type CassandraDataTransferDataSourceSink. -func (c CassandraDataTransferDataSourceSink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - objectMap["component"] = DataTransferComponentCosmosDBCassandra - populate(objectMap, "keyspaceName", c.KeyspaceName) - populate(objectMap, "tableName", c.TableName) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type CassandraDataTransferDataSourceSink. -func (c *CassandraDataTransferDataSourceSink) 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 "component": - err = unpopulate(val, "Component", &c.Component) - delete(rawMsg, key) - case "keyspaceName": - err = unpopulate(val, "KeyspaceName", &c.KeyspaceName) - delete(rawMsg, key) - case "tableName": - err = unpopulate(val, "TableName", &c.TableName) - 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 CassandraKeyspaceCreateUpdateParameters. func (c CassandraKeyspaceCreateUpdateParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", c.ID) - populate(objectMap, "identity", c.Identity) populate(objectMap, "location", c.Location) populate(objectMap, "name", c.Name) populate(objectMap, "properties", c.Properties) @@ -702,9 +510,6 @@ func (c *CassandraKeyspaceCreateUpdateParameters) UnmarshalJSON(data []byte) err case "id": err = unpopulate(val, "ID", &c.ID) delete(rawMsg, key) - case "identity": - err = unpopulate(val, "Identity", &c.Identity) - delete(rawMsg, key) case "location": err = unpopulate(val, "Location", &c.Location) delete(rawMsg, key) @@ -730,7 +535,7 @@ func (c *CassandraKeyspaceCreateUpdateParameters) UnmarshalJSON(data []byte) err // MarshalJSON implements the json.Marshaller interface for type CassandraKeyspaceCreateUpdateProperties. func (c CassandraKeyspaceCreateUpdateProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "options", c.Options) populate(objectMap, "resource", c.Resource) return json.Marshal(objectMap) @@ -761,7 +566,7 @@ func (c *CassandraKeyspaceCreateUpdateProperties) UnmarshalJSON(data []byte) err // MarshalJSON implements the json.Marshaller interface for type CassandraKeyspaceGetProperties. func (c CassandraKeyspaceGetProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "options", c.Options) populate(objectMap, "resource", c.Resource) return json.Marshal(objectMap) @@ -792,7 +597,7 @@ func (c *CassandraKeyspaceGetProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CassandraKeyspaceGetPropertiesOptions. func (c CassandraKeyspaceGetPropertiesOptions) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "autoscaleSettings", c.AutoscaleSettings) populate(objectMap, "throughput", c.Throughput) return json.Marshal(objectMap) @@ -823,7 +628,7 @@ func (c *CassandraKeyspaceGetPropertiesOptions) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type CassandraKeyspaceGetPropertiesResource. func (c CassandraKeyspaceGetPropertiesResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "_etag", c.Etag) populate(objectMap, "id", c.ID) populate(objectMap, "_rid", c.Rid) @@ -862,9 +667,8 @@ func (c *CassandraKeyspaceGetPropertiesResource) UnmarshalJSON(data []byte) erro // MarshalJSON implements the json.Marshaller interface for type CassandraKeyspaceGetResults. func (c CassandraKeyspaceGetResults) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", c.ID) - populate(objectMap, "identity", c.Identity) populate(objectMap, "location", c.Location) populate(objectMap, "name", c.Name) populate(objectMap, "properties", c.Properties) @@ -885,9 +689,6 @@ func (c *CassandraKeyspaceGetResults) UnmarshalJSON(data []byte) error { case "id": err = unpopulate(val, "ID", &c.ID) delete(rawMsg, key) - case "identity": - err = unpopulate(val, "Identity", &c.Identity) - delete(rawMsg, key) case "location": err = unpopulate(val, "Location", &c.Location) delete(rawMsg, key) @@ -913,7 +714,7 @@ func (c *CassandraKeyspaceGetResults) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CassandraKeyspaceListResult. func (c CassandraKeyspaceListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "value", c.Value) return json.Marshal(objectMap) } @@ -940,7 +741,7 @@ func (c *CassandraKeyspaceListResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CassandraKeyspaceResource. func (c CassandraKeyspaceResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", c.ID) return json.Marshal(objectMap) } @@ -967,7 +768,7 @@ func (c *CassandraKeyspaceResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CassandraPartitionKey. func (c CassandraPartitionKey) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "name", c.Name) return json.Marshal(objectMap) } @@ -994,7 +795,7 @@ func (c *CassandraPartitionKey) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CassandraSchema. func (c CassandraSchema) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "clusterKeys", c.ClusterKeys) populate(objectMap, "columns", c.Columns) populate(objectMap, "partitionKeys", c.PartitionKeys) @@ -1029,9 +830,8 @@ func (c *CassandraSchema) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CassandraTableCreateUpdateParameters. func (c CassandraTableCreateUpdateParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", c.ID) - populate(objectMap, "identity", c.Identity) populate(objectMap, "location", c.Location) populate(objectMap, "name", c.Name) populate(objectMap, "properties", c.Properties) @@ -1052,9 +852,6 @@ func (c *CassandraTableCreateUpdateParameters) UnmarshalJSON(data []byte) error case "id": err = unpopulate(val, "ID", &c.ID) delete(rawMsg, key) - case "identity": - err = unpopulate(val, "Identity", &c.Identity) - delete(rawMsg, key) case "location": err = unpopulate(val, "Location", &c.Location) delete(rawMsg, key) @@ -1080,7 +877,7 @@ func (c *CassandraTableCreateUpdateParameters) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type CassandraTableCreateUpdateProperties. func (c CassandraTableCreateUpdateProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "options", c.Options) populate(objectMap, "resource", c.Resource) return json.Marshal(objectMap) @@ -1111,7 +908,7 @@ func (c *CassandraTableCreateUpdateProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type CassandraTableGetProperties. func (c CassandraTableGetProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "options", c.Options) populate(objectMap, "resource", c.Resource) return json.Marshal(objectMap) @@ -1142,7 +939,7 @@ func (c *CassandraTableGetProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CassandraTableGetPropertiesOptions. func (c CassandraTableGetPropertiesOptions) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "autoscaleSettings", c.AutoscaleSettings) populate(objectMap, "throughput", c.Throughput) return json.Marshal(objectMap) @@ -1173,7 +970,7 @@ func (c *CassandraTableGetPropertiesOptions) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CassandraTableGetPropertiesResource. func (c CassandraTableGetPropertiesResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "analyticalStorageTtl", c.AnalyticalStorageTTL) populate(objectMap, "defaultTtl", c.DefaultTTL) populate(objectMap, "_etag", c.Etag) @@ -1224,9 +1021,8 @@ func (c *CassandraTableGetPropertiesResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CassandraTableGetResults. func (c CassandraTableGetResults) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", c.ID) - populate(objectMap, "identity", c.Identity) populate(objectMap, "location", c.Location) populate(objectMap, "name", c.Name) populate(objectMap, "properties", c.Properties) @@ -1247,9 +1043,6 @@ func (c *CassandraTableGetResults) UnmarshalJSON(data []byte) error { case "id": err = unpopulate(val, "ID", &c.ID) delete(rawMsg, key) - case "identity": - err = unpopulate(val, "Identity", &c.Identity) - delete(rawMsg, key) case "location": err = unpopulate(val, "Location", &c.Location) delete(rawMsg, key) @@ -1275,7 +1068,7 @@ func (c *CassandraTableGetResults) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CassandraTableListResult. func (c CassandraTableListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "value", c.Value) return json.Marshal(objectMap) } @@ -1302,7 +1095,7 @@ func (c *CassandraTableListResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type CassandraTableResource. func (c CassandraTableResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "analyticalStorageTtl", c.AnalyticalStorageTTL) populate(objectMap, "defaultTtl", c.DefaultTTL) populate(objectMap, "id", c.ID) @@ -1339,21 +1132,15 @@ func (c *CassandraTableResource) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type CassandraViewCreateUpdateParameters. -func (c CassandraViewCreateUpdateParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", c.ID) - populate(objectMap, "identity", c.Identity) - populate(objectMap, "location", c.Location) - populate(objectMap, "name", c.Name) - populate(objectMap, "properties", c.Properties) - populate(objectMap, "tags", c.Tags) - populate(objectMap, "type", c.Type) +// MarshalJSON implements the json.Marshaller interface for type Certificate. +func (c Certificate) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "pem", c.Pem) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type CassandraViewCreateUpdateParameters. -func (c *CassandraViewCreateUpdateParameters) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type Certificate. +func (c *Certificate) 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) @@ -1361,26 +1148,47 @@ func (c *CassandraViewCreateUpdateParameters) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "id": - err = unpopulate(val, "ID", &c.ID) - delete(rawMsg, key) - case "identity": - err = unpopulate(val, "Identity", &c.Identity) - delete(rawMsg, key) - case "location": - err = unpopulate(val, "Location", &c.Location) + case "pem": + err = unpopulate(val, "Pem", &c.Pem) delete(rawMsg, key) - case "name": - err = unpopulate(val, "Name", &c.Name) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", c, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ClientEncryptionIncludedPath. +func (c ClientEncryptionIncludedPath) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "clientEncryptionKeyId", c.ClientEncryptionKeyID) + populate(objectMap, "encryptionAlgorithm", c.EncryptionAlgorithm) + populate(objectMap, "encryptionType", c.EncryptionType) + populate(objectMap, "path", c.Path) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ClientEncryptionIncludedPath. +func (c *ClientEncryptionIncludedPath) 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 "clientEncryptionKeyId": + err = unpopulate(val, "ClientEncryptionKeyID", &c.ClientEncryptionKeyID) delete(rawMsg, key) - case "properties": - err = unpopulate(val, "Properties", &c.Properties) + case "encryptionAlgorithm": + err = unpopulate(val, "EncryptionAlgorithm", &c.EncryptionAlgorithm) delete(rawMsg, key) - case "tags": - err = unpopulate(val, "Tags", &c.Tags) + case "encryptionType": + err = unpopulate(val, "EncryptionType", &c.EncryptionType) delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &c.Type) + case "path": + err = unpopulate(val, "Path", &c.Path) delete(rawMsg, key) } if err != nil { @@ -1390,16 +1198,15 @@ func (c *CassandraViewCreateUpdateParameters) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type CassandraViewCreateUpdateProperties. -func (c CassandraViewCreateUpdateProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "options", c.Options) - populate(objectMap, "resource", c.Resource) +// MarshalJSON implements the json.Marshaller interface for type ClientEncryptionKeyCreateUpdateParameters. +func (c ClientEncryptionKeyCreateUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "properties", c.Properties) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type CassandraViewCreateUpdateProperties. -func (c *CassandraViewCreateUpdateProperties) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type ClientEncryptionKeyCreateUpdateParameters. +func (c *ClientEncryptionKeyCreateUpdateParameters) 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) @@ -1407,11 +1214,8 @@ func (c *CassandraViewCreateUpdateProperties) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "options": - err = unpopulate(val, "Options", &c.Options) - delete(rawMsg, key) - case "resource": - err = unpopulate(val, "Resource", &c.Resource) + case "properties": + err = unpopulate(val, "Properties", &c.Properties) delete(rawMsg, key) } if err != nil { @@ -1421,16 +1225,15 @@ func (c *CassandraViewCreateUpdateProperties) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type CassandraViewGetProperties. -func (c CassandraViewGetProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "options", c.Options) +// MarshalJSON implements the json.Marshaller interface for type ClientEncryptionKeyCreateUpdateProperties. +func (c ClientEncryptionKeyCreateUpdateProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) populate(objectMap, "resource", c.Resource) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type CassandraViewGetProperties. -func (c *CassandraViewGetProperties) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type ClientEncryptionKeyCreateUpdateProperties. +func (c *ClientEncryptionKeyCreateUpdateProperties) 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) @@ -1438,9 +1241,6 @@ func (c *CassandraViewGetProperties) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "options": - err = unpopulate(val, "Options", &c.Options) - delete(rawMsg, key) case "resource": err = unpopulate(val, "Resource", &c.Resource) delete(rawMsg, key) @@ -1452,16 +1252,15 @@ func (c *CassandraViewGetProperties) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type CassandraViewGetPropertiesOptions. -func (c CassandraViewGetPropertiesOptions) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "autoscaleSettings", c.AutoscaleSettings) - populate(objectMap, "throughput", c.Throughput) +// MarshalJSON implements the json.Marshaller interface for type ClientEncryptionKeyGetProperties. +func (c ClientEncryptionKeyGetProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "resource", c.Resource) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type CassandraViewGetPropertiesOptions. -func (c *CassandraViewGetPropertiesOptions) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type ClientEncryptionKeyGetProperties. +func (c *ClientEncryptionKeyGetProperties) 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) @@ -1469,11 +1268,8 @@ func (c *CassandraViewGetPropertiesOptions) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "autoscaleSettings": - err = unpopulate(val, "AutoscaleSettings", &c.AutoscaleSettings) - delete(rawMsg, key) - case "throughput": - err = unpopulate(val, "Throughput", &c.Throughput) + case "resource": + err = unpopulate(val, "Resource", &c.Resource) delete(rawMsg, key) } if err != nil { @@ -1483,19 +1279,21 @@ func (c *CassandraViewGetPropertiesOptions) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type CassandraViewGetPropertiesResource. -func (c CassandraViewGetPropertiesResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) +// MarshalJSON implements the json.Marshaller interface for type ClientEncryptionKeyGetPropertiesResource. +func (c ClientEncryptionKeyGetPropertiesResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "encryptionAlgorithm", c.EncryptionAlgorithm) populate(objectMap, "_etag", c.Etag) populate(objectMap, "id", c.ID) + populate(objectMap, "keyWrapMetadata", c.KeyWrapMetadata) populate(objectMap, "_rid", c.Rid) populate(objectMap, "_ts", c.Ts) - populate(objectMap, "viewDefinition", c.ViewDefinition) + populateByteArray(objectMap, "wrappedDataEncryptionKey", c.WrappedDataEncryptionKey, runtime.Base64StdFormat) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type CassandraViewGetPropertiesResource. -func (c *CassandraViewGetPropertiesResource) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type ClientEncryptionKeyGetPropertiesResource. +func (c *ClientEncryptionKeyGetPropertiesResource) 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) @@ -1503,20 +1301,26 @@ func (c *CassandraViewGetPropertiesResource) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { + case "encryptionAlgorithm": + err = unpopulate(val, "EncryptionAlgorithm", &c.EncryptionAlgorithm) + delete(rawMsg, key) case "_etag": err = unpopulate(val, "Etag", &c.Etag) delete(rawMsg, key) case "id": err = unpopulate(val, "ID", &c.ID) delete(rawMsg, key) + case "keyWrapMetadata": + err = unpopulate(val, "KeyWrapMetadata", &c.KeyWrapMetadata) + delete(rawMsg, key) case "_rid": err = unpopulate(val, "Rid", &c.Rid) delete(rawMsg, key) case "_ts": err = unpopulate(val, "Ts", &c.Ts) delete(rawMsg, key) - case "viewDefinition": - err = unpopulate(val, "ViewDefinition", &c.ViewDefinition) + case "wrappedDataEncryptionKey": + err = runtime.DecodeByteArray(string(val), &c.WrappedDataEncryptionKey, runtime.Base64StdFormat) delete(rawMsg, key) } if err != nil { @@ -1526,21 +1330,18 @@ func (c *CassandraViewGetPropertiesResource) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type CassandraViewGetResults. -func (c CassandraViewGetResults) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) +// MarshalJSON implements the json.Marshaller interface for type ClientEncryptionKeyGetResults. +func (c ClientEncryptionKeyGetResults) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) populate(objectMap, "id", c.ID) - populate(objectMap, "identity", c.Identity) - populate(objectMap, "location", c.Location) populate(objectMap, "name", c.Name) populate(objectMap, "properties", c.Properties) - populate(objectMap, "tags", c.Tags) populate(objectMap, "type", c.Type) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type CassandraViewGetResults. -func (c *CassandraViewGetResults) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type ClientEncryptionKeyGetResults. +func (c *ClientEncryptionKeyGetResults) 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) @@ -1551,21 +1352,12 @@ func (c *CassandraViewGetResults) UnmarshalJSON(data []byte) error { case "id": err = unpopulate(val, "ID", &c.ID) delete(rawMsg, key) - case "identity": - err = unpopulate(val, "Identity", &c.Identity) - delete(rawMsg, key) - case "location": - err = unpopulate(val, "Location", &c.Location) - delete(rawMsg, key) case "name": err = unpopulate(val, "Name", &c.Name) delete(rawMsg, key) case "properties": err = unpopulate(val, "Properties", &c.Properties) delete(rawMsg, key) - case "tags": - err = unpopulate(val, "Tags", &c.Tags) - delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &c.Type) delete(rawMsg, key) @@ -1577,15 +1369,18 @@ func (c *CassandraViewGetResults) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type CassandraViewListResult. -func (c CassandraViewListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "value", c.Value) +// MarshalJSON implements the json.Marshaller interface for type ClientEncryptionKeyResource. +func (c ClientEncryptionKeyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "encryptionAlgorithm", c.EncryptionAlgorithm) + populate(objectMap, "id", c.ID) + populate(objectMap, "keyWrapMetadata", c.KeyWrapMetadata) + populateByteArray(objectMap, "wrappedDataEncryptionKey", c.WrappedDataEncryptionKey, runtime.Base64StdFormat) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type CassandraViewListResult. -func (c *CassandraViewListResult) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type ClientEncryptionKeyResource. +func (c *ClientEncryptionKeyResource) 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) @@ -1593,8 +1388,17 @@ func (c *CassandraViewListResult) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "value": - err = unpopulate(val, "Value", &c.Value) + case "encryptionAlgorithm": + err = unpopulate(val, "EncryptionAlgorithm", &c.EncryptionAlgorithm) + delete(rawMsg, key) + case "id": + err = unpopulate(val, "ID", &c.ID) + delete(rawMsg, key) + case "keyWrapMetadata": + err = unpopulate(val, "KeyWrapMetadata", &c.KeyWrapMetadata) + delete(rawMsg, key) + case "wrappedDataEncryptionKey": + err = runtime.DecodeByteArray(string(val), &c.WrappedDataEncryptionKey, runtime.Base64StdFormat) delete(rawMsg, key) } if err != nil { @@ -1604,16 +1408,15 @@ func (c *CassandraViewListResult) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type CassandraViewResource. -func (c CassandraViewResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", c.ID) - populate(objectMap, "viewDefinition", c.ViewDefinition) +// MarshalJSON implements the json.Marshaller interface for type ClientEncryptionKeysListResult. +func (c ClientEncryptionKeysListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "value", c.Value) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type CassandraViewResource. -func (c *CassandraViewResource) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type ClientEncryptionKeysListResult. +func (c *ClientEncryptionKeysListResult) 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) @@ -1621,11 +1424,8 @@ func (c *CassandraViewResource) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "id": - err = unpopulate(val, "ID", &c.ID) - delete(rawMsg, key) - case "viewDefinition": - err = unpopulate(val, "ViewDefinition", &c.ViewDefinition) + case "value": + err = unpopulate(val, "Value", &c.Value) delete(rawMsg, key) } if err != nil { @@ -1635,15 +1435,16 @@ func (c *CassandraViewResource) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type Certificate. -func (c Certificate) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "pem", c.Pem) +// MarshalJSON implements the json.Marshaller interface for type ClientEncryptionPolicy. +func (c ClientEncryptionPolicy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "includedPaths", c.IncludedPaths) + populate(objectMap, "policyFormatVersion", c.PolicyFormatVersion) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type Certificate. -func (c *Certificate) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type ClientEncryptionPolicy. +func (c *ClientEncryptionPolicy) 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) @@ -1651,8 +1452,11 @@ func (c *Certificate) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "pem": - err = unpopulate(val, "Pem", &c.Pem) + case "includedPaths": + err = unpopulate(val, "IncludedPaths", &c.IncludedPaths) + delete(rawMsg, key) + case "policyFormatVersion": + err = unpopulate(val, "PolicyFormatVersion", &c.PolicyFormatVersion) delete(rawMsg, key) } if err != nil { @@ -1662,18 +1466,16 @@ func (c *Certificate) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type ClientEncryptionIncludedPath. -func (c ClientEncryptionIncludedPath) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "clientEncryptionKeyId", c.ClientEncryptionKeyID) - populate(objectMap, "encryptionAlgorithm", c.EncryptionAlgorithm) - populate(objectMap, "encryptionType", c.EncryptionType) - populate(objectMap, "path", c.Path) +// MarshalJSON implements the json.Marshaller interface for type ClusterKey. +func (c ClusterKey) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "name", c.Name) + populate(objectMap, "orderBy", c.OrderBy) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type ClientEncryptionIncludedPath. -func (c *ClientEncryptionIncludedPath) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type ClusterKey. +func (c *ClusterKey) 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) @@ -1681,17 +1483,11 @@ func (c *ClientEncryptionIncludedPath) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "clientEncryptionKeyId": - err = unpopulate(val, "ClientEncryptionKeyID", &c.ClientEncryptionKeyID) - delete(rawMsg, key) - case "encryptionAlgorithm": - err = unpopulate(val, "EncryptionAlgorithm", &c.EncryptionAlgorithm) - delete(rawMsg, key) - case "encryptionType": - err = unpopulate(val, "EncryptionType", &c.EncryptionType) + case "name": + err = unpopulate(val, "Name", &c.Name) delete(rawMsg, key) - case "path": - err = unpopulate(val, "Path", &c.Path) + case "orderBy": + err = unpopulate(val, "OrderBy", &c.OrderBy) delete(rawMsg, key) } if err != nil { @@ -1701,15 +1497,21 @@ func (c *ClientEncryptionIncludedPath) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type ClientEncryptionKeyCreateUpdateParameters. -func (c ClientEncryptionKeyCreateUpdateParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) +// MarshalJSON implements the json.Marshaller interface for type ClusterResource. +func (c ClusterResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", c.ID) + populate(objectMap, "identity", c.Identity) + populate(objectMap, "location", c.Location) + populate(objectMap, "name", c.Name) populate(objectMap, "properties", c.Properties) + populate(objectMap, "tags", c.Tags) + populate(objectMap, "type", c.Type) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type ClientEncryptionKeyCreateUpdateParameters. -func (c *ClientEncryptionKeyCreateUpdateParameters) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type ClusterResource. +func (c *ClusterResource) 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) @@ -1717,9 +1519,27 @@ func (c *ClientEncryptionKeyCreateUpdateParameters) UnmarshalJSON(data []byte) e for key, val := range rawMsg { var err error switch key { + case "id": + err = unpopulate(val, "ID", &c.ID) + delete(rawMsg, key) + case "identity": + err = unpopulate(val, "Identity", &c.Identity) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &c.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &c.Name) + delete(rawMsg, key) case "properties": err = unpopulate(val, "Properties", &c.Properties) delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &c.Tags) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &c.Type) + delete(rawMsg, key) } if err != nil { return fmt.Errorf("unmarshalling type %T: %v", c, err) @@ -1728,15 +1548,31 @@ func (c *ClientEncryptionKeyCreateUpdateParameters) UnmarshalJSON(data []byte) e return nil } -// MarshalJSON implements the json.Marshaller interface for type ClientEncryptionKeyCreateUpdateProperties. -func (c ClientEncryptionKeyCreateUpdateProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "resource", c.Resource) +// MarshalJSON implements the json.Marshaller interface for type ClusterResourceProperties. +func (c ClusterResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "authenticationMethod", c.AuthenticationMethod) + populate(objectMap, "cassandraAuditLoggingEnabled", c.CassandraAuditLoggingEnabled) + populate(objectMap, "cassandraVersion", c.CassandraVersion) + populate(objectMap, "clientCertificates", c.ClientCertificates) + populate(objectMap, "clusterNameOverride", c.ClusterNameOverride) + populate(objectMap, "deallocated", c.Deallocated) + populate(objectMap, "delegatedManagementSubnetId", c.DelegatedManagementSubnetID) + populate(objectMap, "externalGossipCertificates", c.ExternalGossipCertificates) + populate(objectMap, "externalSeedNodes", c.ExternalSeedNodes) + populate(objectMap, "gossipCertificates", c.GossipCertificates) + populate(objectMap, "hoursBetweenBackups", c.HoursBetweenBackups) + populate(objectMap, "initialCassandraAdminPassword", c.InitialCassandraAdminPassword) + populate(objectMap, "prometheusEndpoint", c.PrometheusEndpoint) + populate(objectMap, "provisioningState", c.ProvisioningState) + populate(objectMap, "repairEnabled", c.RepairEnabled) + populate(objectMap, "restoreFromBackupId", c.RestoreFromBackupID) + populate(objectMap, "seedNodes", c.SeedNodes) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type ClientEncryptionKeyCreateUpdateProperties. -func (c *ClientEncryptionKeyCreateUpdateProperties) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type ClusterResourceProperties. +func (c *ClusterResourceProperties) 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) @@ -1744,8 +1580,56 @@ func (c *ClientEncryptionKeyCreateUpdateProperties) UnmarshalJSON(data []byte) e for key, val := range rawMsg { var err error switch key { - case "resource": - err = unpopulate(val, "Resource", &c.Resource) + case "authenticationMethod": + err = unpopulate(val, "AuthenticationMethod", &c.AuthenticationMethod) + delete(rawMsg, key) + case "cassandraAuditLoggingEnabled": + err = unpopulate(val, "CassandraAuditLoggingEnabled", &c.CassandraAuditLoggingEnabled) + delete(rawMsg, key) + case "cassandraVersion": + err = unpopulate(val, "CassandraVersion", &c.CassandraVersion) + delete(rawMsg, key) + case "clientCertificates": + err = unpopulate(val, "ClientCertificates", &c.ClientCertificates) + delete(rawMsg, key) + case "clusterNameOverride": + err = unpopulate(val, "ClusterNameOverride", &c.ClusterNameOverride) + delete(rawMsg, key) + case "deallocated": + err = unpopulate(val, "Deallocated", &c.Deallocated) + delete(rawMsg, key) + case "delegatedManagementSubnetId": + err = unpopulate(val, "DelegatedManagementSubnetID", &c.DelegatedManagementSubnetID) + delete(rawMsg, key) + case "externalGossipCertificates": + err = unpopulate(val, "ExternalGossipCertificates", &c.ExternalGossipCertificates) + delete(rawMsg, key) + case "externalSeedNodes": + err = unpopulate(val, "ExternalSeedNodes", &c.ExternalSeedNodes) + delete(rawMsg, key) + case "gossipCertificates": + err = unpopulate(val, "GossipCertificates", &c.GossipCertificates) + delete(rawMsg, key) + case "hoursBetweenBackups": + err = unpopulate(val, "HoursBetweenBackups", &c.HoursBetweenBackups) + delete(rawMsg, key) + case "initialCassandraAdminPassword": + err = unpopulate(val, "InitialCassandraAdminPassword", &c.InitialCassandraAdminPassword) + delete(rawMsg, key) + case "prometheusEndpoint": + err = unpopulate(val, "PrometheusEndpoint", &c.PrometheusEndpoint) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &c.ProvisioningState) + delete(rawMsg, key) + case "repairEnabled": + err = unpopulate(val, "RepairEnabled", &c.RepairEnabled) + delete(rawMsg, key) + case "restoreFromBackupId": + err = unpopulate(val, "RestoreFromBackupID", &c.RestoreFromBackupID) + delete(rawMsg, key) + case "seedNodes": + err = unpopulate(val, "SeedNodes", &c.SeedNodes) delete(rawMsg, key) } if err != nil { @@ -1755,15 +1639,16 @@ func (c *ClientEncryptionKeyCreateUpdateProperties) UnmarshalJSON(data []byte) e return nil } -// MarshalJSON implements the json.Marshaller interface for type ClientEncryptionKeyGetProperties. -func (c ClientEncryptionKeyGetProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "resource", c.Resource) +// MarshalJSON implements the json.Marshaller interface for type Column. +func (c Column) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "name", c.Name) + populate(objectMap, "type", c.Type) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type ClientEncryptionKeyGetProperties. -func (c *ClientEncryptionKeyGetProperties) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type Column. +func (c *Column) 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) @@ -1771,8 +1656,11 @@ func (c *ClientEncryptionKeyGetProperties) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "resource": - err = unpopulate(val, "Resource", &c.Resource) + case "name": + err = unpopulate(val, "Name", &c.Name) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &c.Type) delete(rawMsg, key) } if err != nil { @@ -1782,21 +1670,15 @@ func (c *ClientEncryptionKeyGetProperties) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type ClientEncryptionKeyGetPropertiesResource. -func (c ClientEncryptionKeyGetPropertiesResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "encryptionAlgorithm", c.EncryptionAlgorithm) - populate(objectMap, "_etag", c.Etag) - populate(objectMap, "id", c.ID) - populate(objectMap, "keyWrapMetadata", c.KeyWrapMetadata) - populate(objectMap, "_rid", c.Rid) - populate(objectMap, "_ts", c.Ts) - populateByteArray(objectMap, "wrappedDataEncryptionKey", c.WrappedDataEncryptionKey, runtime.Base64StdFormat) +// MarshalJSON implements the json.Marshaller interface for type CommandOutput. +func (c CommandOutput) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "commandOutput", c.CommandOutput) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type ClientEncryptionKeyGetPropertiesResource. -func (c *ClientEncryptionKeyGetPropertiesResource) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type CommandOutput. +func (c *CommandOutput) 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) @@ -1804,26 +1686,8 @@ func (c *ClientEncryptionKeyGetPropertiesResource) UnmarshalJSON(data []byte) er for key, val := range rawMsg { var err error switch key { - case "encryptionAlgorithm": - err = unpopulate(val, "EncryptionAlgorithm", &c.EncryptionAlgorithm) - delete(rawMsg, key) - case "_etag": - err = unpopulate(val, "Etag", &c.Etag) - delete(rawMsg, key) - case "id": - err = unpopulate(val, "ID", &c.ID) - delete(rawMsg, key) - case "keyWrapMetadata": - err = unpopulate(val, "KeyWrapMetadata", &c.KeyWrapMetadata) - delete(rawMsg, key) - case "_rid": - err = unpopulate(val, "Rid", &c.Rid) - delete(rawMsg, key) - case "_ts": - err = unpopulate(val, "Ts", &c.Ts) - delete(rawMsg, key) - case "wrappedDataEncryptionKey": - err = runtime.DecodeByteArray(string(val), &c.WrappedDataEncryptionKey, runtime.Base64StdFormat) + case "commandOutput": + err = unpopulate(val, "CommandOutput", &c.CommandOutput) delete(rawMsg, key) } if err != nil { @@ -1833,18 +1697,19 @@ func (c *ClientEncryptionKeyGetPropertiesResource) UnmarshalJSON(data []byte) er return nil } -// MarshalJSON implements the json.Marshaller interface for type ClientEncryptionKeyGetResults. -func (c ClientEncryptionKeyGetResults) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", c.ID) - populate(objectMap, "name", c.Name) - populate(objectMap, "properties", c.Properties) - populate(objectMap, "type", c.Type) +// MarshalJSON implements the json.Marshaller interface for type CommandPostBody. +func (c CommandPostBody) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "arguments", c.Arguments) + populate(objectMap, "cassandra-stop-start", c.CassandraStopStart) + populate(objectMap, "command", c.Command) + populate(objectMap, "host", c.Host) + populate(objectMap, "readwrite", c.Readwrite) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type ClientEncryptionKeyGetResults. -func (c *ClientEncryptionKeyGetResults) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type CommandPostBody. +func (c *CommandPostBody) 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) @@ -1852,17 +1717,20 @@ func (c *ClientEncryptionKeyGetResults) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "id": - err = unpopulate(val, "ID", &c.ID) + case "arguments": + err = unpopulate(val, "Arguments", &c.Arguments) delete(rawMsg, key) - case "name": - err = unpopulate(val, "Name", &c.Name) + case "cassandra-stop-start": + err = unpopulate(val, "CassandraStopStart", &c.CassandraStopStart) delete(rawMsg, key) - case "properties": - err = unpopulate(val, "Properties", &c.Properties) + case "command": + err = unpopulate(val, "Command", &c.Command) delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &c.Type) + case "host": + err = unpopulate(val, "Host", &c.Host) + delete(rawMsg, key) + case "readwrite": + err = unpopulate(val, "Readwrite", &c.Readwrite) delete(rawMsg, key) } if err != nil { @@ -1872,18 +1740,16 @@ func (c *ClientEncryptionKeyGetResults) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type ClientEncryptionKeyResource. -func (c ClientEncryptionKeyResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "encryptionAlgorithm", c.EncryptionAlgorithm) - populate(objectMap, "id", c.ID) - populate(objectMap, "keyWrapMetadata", c.KeyWrapMetadata) - populateByteArray(objectMap, "wrappedDataEncryptionKey", c.WrappedDataEncryptionKey, runtime.Base64StdFormat) +// MarshalJSON implements the json.Marshaller interface for type Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserassignedidentitiesAdditionalproperties. +func (c Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserassignedidentitiesAdditionalproperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "clientId", c.ClientID) + populate(objectMap, "principalId", c.PrincipalID) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type ClientEncryptionKeyResource. -func (c *ClientEncryptionKeyResource) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserassignedidentitiesAdditionalproperties. +func (c *Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserassignedidentitiesAdditionalproperties) 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) @@ -1891,17 +1757,11 @@ func (c *ClientEncryptionKeyResource) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "encryptionAlgorithm": - err = unpopulate(val, "EncryptionAlgorithm", &c.EncryptionAlgorithm) - delete(rawMsg, key) - case "id": - err = unpopulate(val, "ID", &c.ID) - delete(rawMsg, key) - case "keyWrapMetadata": - err = unpopulate(val, "KeyWrapMetadata", &c.KeyWrapMetadata) + case "clientId": + err = unpopulate(val, "ClientID", &c.ClientID) delete(rawMsg, key) - case "wrappedDataEncryptionKey": - err = runtime.DecodeByteArray(string(val), &c.WrappedDataEncryptionKey, runtime.Base64StdFormat) + case "principalId": + err = unpopulate(val, "PrincipalID", &c.PrincipalID) delete(rawMsg, key) } if err != nil { @@ -1911,15 +1771,30 @@ func (c *ClientEncryptionKeyResource) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type ClientEncryptionKeysListResult. -func (c ClientEncryptionKeysListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "value", c.Value) +// MarshalJSON implements the json.Marshaller interface for type ComponentsM9L909SchemasCassandraclusterpublicstatusPropertiesDatacentersItemsPropertiesNodesItems. +func (c ComponentsM9L909SchemasCassandraclusterpublicstatusPropertiesDatacentersItemsPropertiesNodesItems) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "address", c.Address) + populate(objectMap, "cpuUsage", c.CPUUsage) + populate(objectMap, "diskFreeKB", c.DiskFreeKB) + populate(objectMap, "diskUsedKB", c.DiskUsedKB) + populate(objectMap, "hostID", c.HostID) + populate(objectMap, "load", c.Load) + populate(objectMap, "memoryBuffersAndCachedKB", c.MemoryBuffersAndCachedKB) + populate(objectMap, "memoryFreeKB", c.MemoryFreeKB) + populate(objectMap, "memoryTotalKB", c.MemoryTotalKB) + populate(objectMap, "memoryUsedKB", c.MemoryUsedKB) + populate(objectMap, "rack", c.Rack) + populate(objectMap, "size", c.Size) + populate(objectMap, "state", c.State) + populate(objectMap, "status", c.Status) + populate(objectMap, "timestamp", c.Timestamp) + populate(objectMap, "tokens", c.Tokens) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type ClientEncryptionKeysListResult. -func (c *ClientEncryptionKeysListResult) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type ComponentsM9L909SchemasCassandraclusterpublicstatusPropertiesDatacentersItemsPropertiesNodesItems. +func (c *ComponentsM9L909SchemasCassandraclusterpublicstatusPropertiesDatacentersItemsPropertiesNodesItems) 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) @@ -1927,8 +1802,53 @@ func (c *ClientEncryptionKeysListResult) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "value": - err = unpopulate(val, "Value", &c.Value) + case "address": + err = unpopulate(val, "Address", &c.Address) + delete(rawMsg, key) + case "cpuUsage": + err = unpopulate(val, "CPUUsage", &c.CPUUsage) + delete(rawMsg, key) + case "diskFreeKB": + err = unpopulate(val, "DiskFreeKB", &c.DiskFreeKB) + delete(rawMsg, key) + case "diskUsedKB": + err = unpopulate(val, "DiskUsedKB", &c.DiskUsedKB) + delete(rawMsg, key) + case "hostID": + err = unpopulate(val, "HostID", &c.HostID) + delete(rawMsg, key) + case "load": + err = unpopulate(val, "Load", &c.Load) + delete(rawMsg, key) + case "memoryBuffersAndCachedKB": + err = unpopulate(val, "MemoryBuffersAndCachedKB", &c.MemoryBuffersAndCachedKB) + delete(rawMsg, key) + case "memoryFreeKB": + err = unpopulate(val, "MemoryFreeKB", &c.MemoryFreeKB) + delete(rawMsg, key) + case "memoryTotalKB": + err = unpopulate(val, "MemoryTotalKB", &c.MemoryTotalKB) + delete(rawMsg, key) + case "memoryUsedKB": + err = unpopulate(val, "MemoryUsedKB", &c.MemoryUsedKB) + delete(rawMsg, key) + case "rack": + err = unpopulate(val, "Rack", &c.Rack) + delete(rawMsg, key) + case "size": + err = unpopulate(val, "Size", &c.Size) + delete(rawMsg, key) + case "state": + err = unpopulate(val, "State", &c.State) + delete(rawMsg, key) + case "status": + err = unpopulate(val, "Status", &c.Status) + delete(rawMsg, key) + case "timestamp": + err = unpopulate(val, "Timestamp", &c.Timestamp) + delete(rawMsg, key) + case "tokens": + err = unpopulate(val, "Tokens", &c.Tokens) delete(rawMsg, key) } if err != nil { @@ -1938,16 +1858,16 @@ func (c *ClientEncryptionKeysListResult) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type ClientEncryptionPolicy. -func (c ClientEncryptionPolicy) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "includedPaths", c.IncludedPaths) - populate(objectMap, "policyFormatVersion", c.PolicyFormatVersion) +// MarshalJSON implements the json.Marshaller interface for type CompositePath. +func (c CompositePath) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "order", c.Order) + populate(objectMap, "path", c.Path) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type ClientEncryptionPolicy. -func (c *ClientEncryptionPolicy) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type CompositePath. +func (c *CompositePath) 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) @@ -1955,11 +1875,11 @@ func (c *ClientEncryptionPolicy) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "includedPaths": - err = unpopulate(val, "IncludedPaths", &c.IncludedPaths) + case "order": + err = unpopulate(val, "Order", &c.Order) delete(rawMsg, key) - case "policyFormatVersion": - err = unpopulate(val, "PolicyFormatVersion", &c.PolicyFormatVersion) + case "path": + err = unpopulate(val, "Path", &c.Path) delete(rawMsg, key) } if err != nil { @@ -1969,16 +1889,17 @@ func (c *ClientEncryptionPolicy) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type ClusterKey. -func (c ClusterKey) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "name", c.Name) - populate(objectMap, "orderBy", c.OrderBy) +// MarshalJSON implements the json.Marshaller interface for type ConflictResolutionPolicy. +func (c ConflictResolutionPolicy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "conflictResolutionPath", c.ConflictResolutionPath) + populate(objectMap, "conflictResolutionProcedure", c.ConflictResolutionProcedure) + populate(objectMap, "mode", c.Mode) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type ClusterKey. -func (c *ClusterKey) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type ConflictResolutionPolicy. +func (c *ConflictResolutionPolicy) 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) @@ -1986,11 +1907,14 @@ func (c *ClusterKey) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "name": - err = unpopulate(val, "Name", &c.Name) + case "conflictResolutionPath": + err = unpopulate(val, "ConflictResolutionPath", &c.ConflictResolutionPath) delete(rawMsg, key) - case "orderBy": - err = unpopulate(val, "OrderBy", &c.OrderBy) + case "conflictResolutionProcedure": + err = unpopulate(val, "ConflictResolutionProcedure", &c.ConflictResolutionProcedure) + delete(rawMsg, key) + case "mode": + err = unpopulate(val, "Mode", &c.Mode) delete(rawMsg, key) } if err != nil { @@ -2000,21 +1924,19 @@ func (c *ClusterKey) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type ClusterResource. -func (c ClusterResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", c.ID) - populate(objectMap, "identity", c.Identity) - populate(objectMap, "location", c.Location) - populate(objectMap, "name", c.Name) - populate(objectMap, "properties", c.Properties) - populate(objectMap, "tags", c.Tags) - populate(objectMap, "type", c.Type) +// MarshalJSON implements the json.Marshaller interface for type ConnectionError. +func (c ConnectionError) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "connectionState", c.ConnectionState) + populate(objectMap, "exception", c.Exception) + populate(objectMap, "iPFrom", c.IPFrom) + populate(objectMap, "iPTo", c.IPTo) + populate(objectMap, "port", c.Port) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type ClusterResource. -func (c *ClusterResource) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type ConnectionError. +func (c *ConnectionError) 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) @@ -2022,26 +1944,20 @@ func (c *ClusterResource) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "id": - err = unpopulate(val, "ID", &c.ID) - delete(rawMsg, key) - case "identity": - err = unpopulate(val, "Identity", &c.Identity) - delete(rawMsg, key) - case "location": - err = unpopulate(val, "Location", &c.Location) + case "connectionState": + err = unpopulate(val, "ConnectionState", &c.ConnectionState) delete(rawMsg, key) - case "name": - err = unpopulate(val, "Name", &c.Name) + case "exception": + err = unpopulate(val, "Exception", &c.Exception) delete(rawMsg, key) - case "properties": - err = unpopulate(val, "Properties", &c.Properties) + case "iPFrom": + err = unpopulate(val, "IPFrom", &c.IPFrom) delete(rawMsg, key) - case "tags": - err = unpopulate(val, "Tags", &c.Tags) + case "iPTo": + err = unpopulate(val, "IPTo", &c.IPTo) delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &c.Type) + case "port": + err = unpopulate(val, "Port", &c.Port) delete(rawMsg, key) } if err != nil { @@ -2051,31 +1967,17 @@ func (c *ClusterResource) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type ClusterResourceProperties. -func (c ClusterResourceProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "authenticationMethod", c.AuthenticationMethod) - populate(objectMap, "cassandraAuditLoggingEnabled", c.CassandraAuditLoggingEnabled) - populate(objectMap, "cassandraVersion", c.CassandraVersion) - populate(objectMap, "clientCertificates", c.ClientCertificates) - populate(objectMap, "clusterNameOverride", c.ClusterNameOverride) - populate(objectMap, "deallocated", c.Deallocated) - populate(objectMap, "delegatedManagementSubnetId", c.DelegatedManagementSubnetID) - populate(objectMap, "externalGossipCertificates", c.ExternalGossipCertificates) - populate(objectMap, "externalSeedNodes", c.ExternalSeedNodes) - populate(objectMap, "gossipCertificates", c.GossipCertificates) - populate(objectMap, "hoursBetweenBackups", c.HoursBetweenBackups) - populate(objectMap, "initialCassandraAdminPassword", c.InitialCassandraAdminPassword) - populate(objectMap, "prometheusEndpoint", c.PrometheusEndpoint) - populate(objectMap, "provisioningState", c.ProvisioningState) - populate(objectMap, "repairEnabled", c.RepairEnabled) - populate(objectMap, "restoreFromBackupId", c.RestoreFromBackupID) - populate(objectMap, "seedNodes", c.SeedNodes) +// MarshalJSON implements the json.Marshaller interface for type ConsistencyPolicy. +func (c ConsistencyPolicy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "defaultConsistencyLevel", c.DefaultConsistencyLevel) + populate(objectMap, "maxIntervalInSeconds", c.MaxIntervalInSeconds) + populate(objectMap, "maxStalenessPrefix", c.MaxStalenessPrefix) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type ClusterResourceProperties. -func (c *ClusterResourceProperties) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type ConsistencyPolicy. +func (c *ConsistencyPolicy) 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) @@ -2083,56 +1985,14 @@ func (c *ClusterResourceProperties) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "authenticationMethod": - err = unpopulate(val, "AuthenticationMethod", &c.AuthenticationMethod) + case "defaultConsistencyLevel": + err = unpopulate(val, "DefaultConsistencyLevel", &c.DefaultConsistencyLevel) delete(rawMsg, key) - case "cassandraAuditLoggingEnabled": - err = unpopulate(val, "CassandraAuditLoggingEnabled", &c.CassandraAuditLoggingEnabled) - delete(rawMsg, key) - case "cassandraVersion": - err = unpopulate(val, "CassandraVersion", &c.CassandraVersion) - delete(rawMsg, key) - case "clientCertificates": - err = unpopulate(val, "ClientCertificates", &c.ClientCertificates) - delete(rawMsg, key) - case "clusterNameOverride": - err = unpopulate(val, "ClusterNameOverride", &c.ClusterNameOverride) - delete(rawMsg, key) - case "deallocated": - err = unpopulate(val, "Deallocated", &c.Deallocated) - delete(rawMsg, key) - case "delegatedManagementSubnetId": - err = unpopulate(val, "DelegatedManagementSubnetID", &c.DelegatedManagementSubnetID) - delete(rawMsg, key) - case "externalGossipCertificates": - err = unpopulate(val, "ExternalGossipCertificates", &c.ExternalGossipCertificates) - delete(rawMsg, key) - case "externalSeedNodes": - err = unpopulate(val, "ExternalSeedNodes", &c.ExternalSeedNodes) - delete(rawMsg, key) - case "gossipCertificates": - err = unpopulate(val, "GossipCertificates", &c.GossipCertificates) - delete(rawMsg, key) - case "hoursBetweenBackups": - err = unpopulate(val, "HoursBetweenBackups", &c.HoursBetweenBackups) - delete(rawMsg, key) - case "initialCassandraAdminPassword": - err = unpopulate(val, "InitialCassandraAdminPassword", &c.InitialCassandraAdminPassword) - delete(rawMsg, key) - case "prometheusEndpoint": - err = unpopulate(val, "PrometheusEndpoint", &c.PrometheusEndpoint) - delete(rawMsg, key) - case "provisioningState": - err = unpopulate(val, "ProvisioningState", &c.ProvisioningState) - delete(rawMsg, key) - case "repairEnabled": - err = unpopulate(val, "RepairEnabled", &c.RepairEnabled) - delete(rawMsg, key) - case "restoreFromBackupId": - err = unpopulate(val, "RestoreFromBackupID", &c.RestoreFromBackupID) + case "maxIntervalInSeconds": + err = unpopulate(val, "MaxIntervalInSeconds", &c.MaxIntervalInSeconds) delete(rawMsg, key) - case "seedNodes": - err = unpopulate(val, "SeedNodes", &c.SeedNodes) + case "maxStalenessPrefix": + err = unpopulate(val, "MaxStalenessPrefix", &c.MaxStalenessPrefix) delete(rawMsg, key) } if err != nil { @@ -2142,16 +2002,18 @@ func (c *ClusterResourceProperties) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type Column. -func (c Column) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "name", c.Name) - populate(objectMap, "type", c.Type) +// MarshalJSON implements the json.Marshaller interface for type ContainerPartitionKey. +func (c ContainerPartitionKey) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "kind", c.Kind) + populate(objectMap, "paths", c.Paths) + populate(objectMap, "systemKey", c.SystemKey) + populate(objectMap, "version", c.Version) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type Column. -func (c *Column) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type ContainerPartitionKey. +func (c *ContainerPartitionKey) 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) @@ -2159,11 +2021,17 @@ func (c *Column) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "name": - err = unpopulate(val, "Name", &c.Name) + case "kind": + err = unpopulate(val, "Kind", &c.Kind) delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &c.Type) + case "paths": + err = unpopulate(val, "Paths", &c.Paths) + delete(rawMsg, key) + case "systemKey": + err = unpopulate(val, "SystemKey", &c.SystemKey) + delete(rawMsg, key) + case "version": + err = unpopulate(val, "Version", &c.Version) delete(rawMsg, key) } if err != nil { @@ -2173,15 +2041,15 @@ func (c *Column) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type CommandOutput. -func (c CommandOutput) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "commandOutput", c.CommandOutput) +// MarshalJSON implements the json.Marshaller interface for type ContinuousBackupInformation. +func (c ContinuousBackupInformation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "latestRestorableTimestamp", c.LatestRestorableTimestamp) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type CommandOutput. -func (c *CommandOutput) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type ContinuousBackupInformation. +func (c *ContinuousBackupInformation) 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) @@ -2189,8 +2057,8 @@ func (c *CommandOutput) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "commandOutput": - err = unpopulate(val, "CommandOutput", &c.CommandOutput) + case "latestRestorableTimestamp": + err = unpopulate(val, "LatestRestorableTimestamp", &c.LatestRestorableTimestamp) delete(rawMsg, key) } if err != nil { @@ -2200,19 +2068,15 @@ func (c *CommandOutput) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type CommandPostBody. -func (c CommandPostBody) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "arguments", c.Arguments) - populate(objectMap, "cassandra-stop-start", c.CassandraStopStart) - populate(objectMap, "command", c.Command) - populate(objectMap, "host", c.Host) - populate(objectMap, "readwrite", c.Readwrite) +// MarshalJSON implements the json.Marshaller interface for type ContinuousBackupRestoreLocation. +func (c ContinuousBackupRestoreLocation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "location", c.Location) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type CommandPostBody. -func (c *CommandPostBody) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type ContinuousBackupRestoreLocation. +func (c *ContinuousBackupRestoreLocation) 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) @@ -2220,20 +2084,8 @@ func (c *CommandPostBody) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "arguments": - err = unpopulate(val, "Arguments", &c.Arguments) - delete(rawMsg, key) - case "cassandra-stop-start": - err = unpopulate(val, "CassandraStopStart", &c.CassandraStopStart) - delete(rawMsg, key) - case "command": - err = unpopulate(val, "Command", &c.Command) - delete(rawMsg, key) - case "host": - err = unpopulate(val, "Host", &c.Host) - delete(rawMsg, key) - case "readwrite": - err = unpopulate(val, "Readwrite", &c.Readwrite) + case "location": + err = unpopulate(val, "Location", &c.Location) delete(rawMsg, key) } if err != nil { @@ -2243,16 +2095,16 @@ func (c *CommandPostBody) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserassignedidentitiesAdditionalproperties. -func (c Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserassignedidentitiesAdditionalproperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "clientId", c.ClientID) - populate(objectMap, "principalId", c.PrincipalID) +// MarshalJSON implements the json.Marshaller interface for type ContinuousModeBackupPolicy. +func (c ContinuousModeBackupPolicy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "migrationState", c.MigrationState) + objectMap["type"] = BackupPolicyTypeContinuous return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserassignedidentitiesAdditionalproperties. -func (c *Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserassignedidentitiesAdditionalproperties) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type ContinuousModeBackupPolicy. +func (c *ContinuousModeBackupPolicy) 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) @@ -2260,11 +2112,11 @@ func (c *Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserassignedide for key, val := range rawMsg { var err error switch key { - case "clientId": - err = unpopulate(val, "ClientID", &c.ClientID) + case "migrationState": + err = unpopulate(val, "MigrationState", &c.MigrationState) delete(rawMsg, key) - case "principalId": - err = unpopulate(val, "PrincipalID", &c.PrincipalID) + case "type": + err = unpopulate(val, "Type", &c.Type) delete(rawMsg, key) } if err != nil { @@ -2274,30 +2126,19 @@ func (c *Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserassignedide return nil } -// MarshalJSON implements the json.Marshaller interface for type ComponentsM9L909SchemasCassandraclusterpublicstatusPropertiesDatacentersItemsPropertiesNodesItems. -func (c ComponentsM9L909SchemasCassandraclusterpublicstatusPropertiesDatacentersItemsPropertiesNodesItems) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "address", c.Address) - populate(objectMap, "cpuUsage", c.CPUUsage) - populate(objectMap, "diskFreeKB", c.DiskFreeKB) - populate(objectMap, "diskUsedKB", c.DiskUsedKB) - populate(objectMap, "hostID", c.HostID) - populate(objectMap, "load", c.Load) - populate(objectMap, "memoryBuffersAndCachedKB", c.MemoryBuffersAndCachedKB) - populate(objectMap, "memoryFreeKB", c.MemoryFreeKB) - populate(objectMap, "memoryTotalKB", c.MemoryTotalKB) - populate(objectMap, "memoryUsedKB", c.MemoryUsedKB) - populate(objectMap, "rack", c.Rack) - populate(objectMap, "size", c.Size) - populate(objectMap, "state", c.State) - populate(objectMap, "status", c.Status) - populate(objectMap, "timestamp", c.Timestamp) - populate(objectMap, "tokens", c.Tokens) +// MarshalJSON implements the json.Marshaller interface for type CorsPolicy. +func (c CorsPolicy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "allowedHeaders", c.AllowedHeaders) + populate(objectMap, "allowedMethods", c.AllowedMethods) + populate(objectMap, "allowedOrigins", c.AllowedOrigins) + populate(objectMap, "exposedHeaders", c.ExposedHeaders) + populate(objectMap, "maxAgeInSeconds", c.MaxAgeInSeconds) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type ComponentsM9L909SchemasCassandraclusterpublicstatusPropertiesDatacentersItemsPropertiesNodesItems. -func (c *ComponentsM9L909SchemasCassandraclusterpublicstatusPropertiesDatacentersItemsPropertiesNodesItems) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type CorsPolicy. +func (c *CorsPolicy) 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) @@ -2305,53 +2146,20 @@ func (c *ComponentsM9L909SchemasCassandraclusterpublicstatusPropertiesDatacenter for key, val := range rawMsg { var err error switch key { - case "address": - err = unpopulate(val, "Address", &c.Address) - delete(rawMsg, key) - case "cpuUsage": - err = unpopulate(val, "CPUUsage", &c.CPUUsage) - delete(rawMsg, key) - case "diskFreeKB": - err = unpopulate(val, "DiskFreeKB", &c.DiskFreeKB) - delete(rawMsg, key) - case "diskUsedKB": - err = unpopulate(val, "DiskUsedKB", &c.DiskUsedKB) - delete(rawMsg, key) - case "hostID": - err = unpopulate(val, "HostID", &c.HostID) - delete(rawMsg, key) - case "load": - err = unpopulate(val, "Load", &c.Load) - delete(rawMsg, key) - case "memoryBuffersAndCachedKB": - err = unpopulate(val, "MemoryBuffersAndCachedKB", &c.MemoryBuffersAndCachedKB) - delete(rawMsg, key) - case "memoryFreeKB": - err = unpopulate(val, "MemoryFreeKB", &c.MemoryFreeKB) - delete(rawMsg, key) - case "memoryTotalKB": - err = unpopulate(val, "MemoryTotalKB", &c.MemoryTotalKB) - delete(rawMsg, key) - case "memoryUsedKB": - err = unpopulate(val, "MemoryUsedKB", &c.MemoryUsedKB) - delete(rawMsg, key) - case "rack": - err = unpopulate(val, "Rack", &c.Rack) - delete(rawMsg, key) - case "size": - err = unpopulate(val, "Size", &c.Size) + case "allowedHeaders": + err = unpopulate(val, "AllowedHeaders", &c.AllowedHeaders) delete(rawMsg, key) - case "state": - err = unpopulate(val, "State", &c.State) + case "allowedMethods": + err = unpopulate(val, "AllowedMethods", &c.AllowedMethods) delete(rawMsg, key) - case "status": - err = unpopulate(val, "Status", &c.Status) + case "allowedOrigins": + err = unpopulate(val, "AllowedOrigins", &c.AllowedOrigins) delete(rawMsg, key) - case "timestamp": - err = unpopulate(val, "Timestamp", &c.Timestamp) + case "exposedHeaders": + err = unpopulate(val, "ExposedHeaders", &c.ExposedHeaders) delete(rawMsg, key) - case "tokens": - err = unpopulate(val, "Tokens", &c.Tokens) + case "maxAgeInSeconds": + err = unpopulate(val, "MaxAgeInSeconds", &c.MaxAgeInSeconds) delete(rawMsg, key) } if err != nil { @@ -2361,16 +2169,16 @@ func (c *ComponentsM9L909SchemasCassandraclusterpublicstatusPropertiesDatacenter return nil } -// MarshalJSON implements the json.Marshaller interface for type CompositePath. -func (c CompositePath) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "order", c.Order) - populate(objectMap, "path", c.Path) +// MarshalJSON implements the json.Marshaller interface for type CreateUpdateOptions. +func (c CreateUpdateOptions) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "autoscaleSettings", c.AutoscaleSettings) + populate(objectMap, "throughput", c.Throughput) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type CompositePath. -func (c *CompositePath) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type CreateUpdateOptions. +func (c *CreateUpdateOptions) 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) @@ -2378,11 +2186,11 @@ func (c *CompositePath) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "order": - err = unpopulate(val, "Order", &c.Order) + case "autoscaleSettings": + err = unpopulate(val, "AutoscaleSettings", &c.AutoscaleSettings) delete(rawMsg, key) - case "path": - err = unpopulate(val, "Path", &c.Path) + case "throughput": + err = unpopulate(val, "Throughput", &c.Throughput) delete(rawMsg, key) } if err != nil { @@ -2392,1221 +2200,302 @@ func (c *CompositePath) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type ConflictResolutionPolicy. -func (c ConflictResolutionPolicy) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "conflictResolutionPath", c.ConflictResolutionPath) - populate(objectMap, "conflictResolutionProcedure", c.ConflictResolutionProcedure) - populate(objectMap, "mode", c.Mode) +// MarshalJSON implements the json.Marshaller interface for type DataCenterResource. +func (d DataCenterResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", d.ID) + populate(objectMap, "name", d.Name) + populate(objectMap, "properties", d.Properties) + populate(objectMap, "type", d.Type) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type ConflictResolutionPolicy. -func (c *ConflictResolutionPolicy) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type DataCenterResource. +func (d *DataCenterResource) 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) + return fmt.Errorf("unmarshalling type %T: %v", d, err) } for key, val := range rawMsg { var err error switch key { - case "conflictResolutionPath": - err = unpopulate(val, "ConflictResolutionPath", &c.ConflictResolutionPath) + case "id": + err = unpopulate(val, "ID", &d.ID) delete(rawMsg, key) - case "conflictResolutionProcedure": - err = unpopulate(val, "ConflictResolutionProcedure", &c.ConflictResolutionProcedure) + case "name": + err = unpopulate(val, "Name", &d.Name) delete(rawMsg, key) - case "mode": - err = unpopulate(val, "Mode", &c.Mode) + case "properties": + err = unpopulate(val, "Properties", &d.Properties) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &d.Type) delete(rawMsg, key) } if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", c, err) + return fmt.Errorf("unmarshalling type %T: %v", d, err) } } return nil } -// MarshalJSON implements the json.Marshaller interface for type ConnectionError. -func (c ConnectionError) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "connectionState", c.ConnectionState) - populate(objectMap, "exception", c.Exception) - populate(objectMap, "iPFrom", c.IPFrom) - populate(objectMap, "iPTo", c.IPTo) - populate(objectMap, "port", c.Port) +// MarshalJSON implements the json.Marshaller interface for type DataCenterResourceProperties. +func (d DataCenterResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "availabilityZone", d.AvailabilityZone) + populate(objectMap, "backupStorageCustomerKeyUri", d.BackupStorageCustomerKeyURI) + populate(objectMap, "base64EncodedCassandraYamlFragment", d.Base64EncodedCassandraYamlFragment) + populate(objectMap, "dataCenterLocation", d.DataCenterLocation) + populate(objectMap, "delegatedSubnetId", d.DelegatedSubnetID) + populate(objectMap, "diskCapacity", d.DiskCapacity) + populate(objectMap, "diskSku", d.DiskSKU) + populate(objectMap, "managedDiskCustomerKeyUri", d.ManagedDiskCustomerKeyURI) + populate(objectMap, "nodeCount", d.NodeCount) + populate(objectMap, "provisioningState", d.ProvisioningState) + populate(objectMap, "sku", d.SKU) + populate(objectMap, "seedNodes", d.SeedNodes) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type ConnectionError. -func (c *ConnectionError) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type DataCenterResourceProperties. +func (d *DataCenterResourceProperties) 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) + return fmt.Errorf("unmarshalling type %T: %v", d, err) } for key, val := range rawMsg { var err error switch key { - case "connectionState": - err = unpopulate(val, "ConnectionState", &c.ConnectionState) + case "availabilityZone": + err = unpopulate(val, "AvailabilityZone", &d.AvailabilityZone) delete(rawMsg, key) - case "exception": - err = unpopulate(val, "Exception", &c.Exception) + case "backupStorageCustomerKeyUri": + err = unpopulate(val, "BackupStorageCustomerKeyURI", &d.BackupStorageCustomerKeyURI) delete(rawMsg, key) - case "iPFrom": - err = unpopulate(val, "IPFrom", &c.IPFrom) + case "base64EncodedCassandraYamlFragment": + err = unpopulate(val, "Base64EncodedCassandraYamlFragment", &d.Base64EncodedCassandraYamlFragment) delete(rawMsg, key) - case "iPTo": - err = unpopulate(val, "IPTo", &c.IPTo) + case "dataCenterLocation": + err = unpopulate(val, "DataCenterLocation", &d.DataCenterLocation) delete(rawMsg, key) - case "port": - err = unpopulate(val, "Port", &c.Port) + case "delegatedSubnetId": + err = unpopulate(val, "DelegatedSubnetID", &d.DelegatedSubnetID) + delete(rawMsg, key) + case "diskCapacity": + err = unpopulate(val, "DiskCapacity", &d.DiskCapacity) + delete(rawMsg, key) + case "diskSku": + err = unpopulate(val, "DiskSKU", &d.DiskSKU) + delete(rawMsg, key) + case "managedDiskCustomerKeyUri": + err = unpopulate(val, "ManagedDiskCustomerKeyURI", &d.ManagedDiskCustomerKeyURI) + delete(rawMsg, key) + case "nodeCount": + err = unpopulate(val, "NodeCount", &d.NodeCount) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &d.ProvisioningState) + delete(rawMsg, key) + case "sku": + err = unpopulate(val, "SKU", &d.SKU) + delete(rawMsg, key) + case "seedNodes": + err = unpopulate(val, "SeedNodes", &d.SeedNodes) delete(rawMsg, key) } if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", c, err) + return fmt.Errorf("unmarshalling type %T: %v", d, err) } } return nil } -// MarshalJSON implements the json.Marshaller interface for type ConsistencyPolicy. -func (c ConsistencyPolicy) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "defaultConsistencyLevel", c.DefaultConsistencyLevel) - populate(objectMap, "maxIntervalInSeconds", c.MaxIntervalInSeconds) - populate(objectMap, "maxStalenessPrefix", c.MaxStalenessPrefix) +// MarshalJSON implements the json.Marshaller interface for type DataTransferRegionalServiceResource. +func (d DataTransferRegionalServiceResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "location", d.Location) + populate(objectMap, "name", d.Name) + populate(objectMap, "status", d.Status) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type ConsistencyPolicy. -func (c *ConsistencyPolicy) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type DataTransferRegionalServiceResource. +func (d *DataTransferRegionalServiceResource) 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) + return fmt.Errorf("unmarshalling type %T: %v", d, err) } for key, val := range rawMsg { var err error switch key { - case "defaultConsistencyLevel": - err = unpopulate(val, "DefaultConsistencyLevel", &c.DefaultConsistencyLevel) + case "location": + err = unpopulate(val, "Location", &d.Location) delete(rawMsg, key) - case "maxIntervalInSeconds": - err = unpopulate(val, "MaxIntervalInSeconds", &c.MaxIntervalInSeconds) + case "name": + err = unpopulate(val, "Name", &d.Name) delete(rawMsg, key) - case "maxStalenessPrefix": - err = unpopulate(val, "MaxStalenessPrefix", &c.MaxStalenessPrefix) + case "status": + err = unpopulate(val, "Status", &d.Status) delete(rawMsg, key) } if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", c, err) + return fmt.Errorf("unmarshalling type %T: %v", d, err) } } return nil } -// MarshalJSON implements the json.Marshaller interface for type ContainerPartitionKey. -func (c ContainerPartitionKey) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "kind", c.Kind) - populate(objectMap, "paths", c.Paths) - populate(objectMap, "systemKey", c.SystemKey) - populate(objectMap, "version", c.Version) +// MarshalJSON implements the json.Marshaller interface for type DataTransferServiceResource. +func (d DataTransferServiceResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "properties", d.Properties) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type ContainerPartitionKey. -func (c *ContainerPartitionKey) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type DataTransferServiceResource. +func (d *DataTransferServiceResource) 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) + return fmt.Errorf("unmarshalling type %T: %v", d, err) } for key, val := range rawMsg { var err error switch key { - case "kind": - err = unpopulate(val, "Kind", &c.Kind) - delete(rawMsg, key) - case "paths": - err = unpopulate(val, "Paths", &c.Paths) - delete(rawMsg, key) - case "systemKey": - err = unpopulate(val, "SystemKey", &c.SystemKey) - delete(rawMsg, key) - case "version": - err = unpopulate(val, "Version", &c.Version) + case "properties": + err = unpopulate(val, "Properties", &d.Properties) delete(rawMsg, key) } if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", c, err) + return fmt.Errorf("unmarshalling type %T: %v", d, err) } } return nil } -// MarshalJSON implements the json.Marshaller interface for type ContinuousBackupInformation. -func (c ContinuousBackupInformation) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "latestRestorableTimestamp", c.LatestRestorableTimestamp) +// MarshalJSON implements the json.Marshaller interface for type DataTransferServiceResourceProperties. +func (d DataTransferServiceResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateTimeRFC3339(objectMap, "creationTime", d.CreationTime) + populate(objectMap, "instanceCount", d.InstanceCount) + populate(objectMap, "instanceSize", d.InstanceSize) + populate(objectMap, "locations", d.Locations) + objectMap["serviceType"] = ServiceTypeDataTransfer + populate(objectMap, "status", d.Status) + if d.AdditionalProperties != nil { + for key, val := range d.AdditionalProperties { + objectMap[key] = val + } + } return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type ContinuousBackupInformation. -func (c *ContinuousBackupInformation) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type DataTransferServiceResourceProperties. +func (d *DataTransferServiceResourceProperties) 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) + return fmt.Errorf("unmarshalling type %T: %v", d, err) } for key, val := range rawMsg { var err error switch key { - case "latestRestorableTimestamp": - err = unpopulate(val, "LatestRestorableTimestamp", &c.LatestRestorableTimestamp) + case "creationTime": + err = unpopulateTimeRFC3339(val, "CreationTime", &d.CreationTime) + delete(rawMsg, key) + case "instanceCount": + err = unpopulate(val, "InstanceCount", &d.InstanceCount) + delete(rawMsg, key) + case "instanceSize": + err = unpopulate(val, "InstanceSize", &d.InstanceSize) + delete(rawMsg, key) + case "locations": + err = unpopulate(val, "Locations", &d.Locations) + delete(rawMsg, key) + case "serviceType": + err = unpopulate(val, "ServiceType", &d.ServiceType) + delete(rawMsg, key) + case "status": + err = unpopulate(val, "Status", &d.Status) + delete(rawMsg, key) + default: + if d.AdditionalProperties == nil { + d.AdditionalProperties = map[string]any{} + } + if val != nil { + var aux any + err = json.Unmarshal(val, &aux) + d.AdditionalProperties[key] = aux + } delete(rawMsg, key) } if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", c, err) + return fmt.Errorf("unmarshalling type %T: %v", d, err) } } return nil } -// MarshalJSON implements the json.Marshaller interface for type ContinuousBackupRestoreLocation. -func (c ContinuousBackupRestoreLocation) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "location", c.Location) +// MarshalJSON implements the json.Marshaller interface for type DatabaseAccountConnectionString. +func (d DatabaseAccountConnectionString) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "connectionString", d.ConnectionString) + populate(objectMap, "description", d.Description) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type ContinuousBackupRestoreLocation. -func (c *ContinuousBackupRestoreLocation) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type DatabaseAccountConnectionString. +func (d *DatabaseAccountConnectionString) 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) + return fmt.Errorf("unmarshalling type %T: %v", d, err) } for key, val := range rawMsg { var err error switch key { - case "location": - err = unpopulate(val, "Location", &c.Location) + case "connectionString": + err = unpopulate(val, "ConnectionString", &d.ConnectionString) + delete(rawMsg, key) + case "description": + err = unpopulate(val, "Description", &d.Description) delete(rawMsg, key) } if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", c, err) + return fmt.Errorf("unmarshalling type %T: %v", d, err) } } return nil } -// MarshalJSON implements the json.Marshaller interface for type ContinuousModeBackupPolicy. -func (c ContinuousModeBackupPolicy) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "continuousModeProperties", c.ContinuousModeProperties) - populate(objectMap, "migrationState", c.MigrationState) - objectMap["type"] = BackupPolicyTypeContinuous +// MarshalJSON implements the json.Marshaller interface for type DatabaseAccountCreateUpdateParameters. +func (d DatabaseAccountCreateUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", d.ID) + populate(objectMap, "identity", d.Identity) + populate(objectMap, "kind", d.Kind) + populate(objectMap, "location", d.Location) + populate(objectMap, "name", d.Name) + populate(objectMap, "properties", d.Properties) + populate(objectMap, "tags", d.Tags) + populate(objectMap, "type", d.Type) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type ContinuousModeBackupPolicy. -func (c *ContinuousModeBackupPolicy) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type DatabaseAccountCreateUpdateParameters. +func (d *DatabaseAccountCreateUpdateParameters) 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) + return fmt.Errorf("unmarshalling type %T: %v", d, err) } for key, val := range rawMsg { var err error switch key { - case "continuousModeProperties": - err = unpopulate(val, "ContinuousModeProperties", &c.ContinuousModeProperties) + case "id": + err = unpopulate(val, "ID", &d.ID) delete(rawMsg, key) - case "migrationState": - err = unpopulate(val, "MigrationState", &c.MigrationState) + case "identity": + err = unpopulate(val, "Identity", &d.Identity) delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &c.Type) - 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 ContinuousModeProperties. -func (c ContinuousModeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "tier", c.Tier) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type ContinuousModeProperties. -func (c *ContinuousModeProperties) 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 "tier": - err = unpopulate(val, "Tier", &c.Tier) - 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 CorsPolicy. -func (c CorsPolicy) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "allowedHeaders", c.AllowedHeaders) - populate(objectMap, "allowedMethods", c.AllowedMethods) - populate(objectMap, "allowedOrigins", c.AllowedOrigins) - populate(objectMap, "exposedHeaders", c.ExposedHeaders) - populate(objectMap, "maxAgeInSeconds", c.MaxAgeInSeconds) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type CorsPolicy. -func (c *CorsPolicy) 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 "allowedHeaders": - err = unpopulate(val, "AllowedHeaders", &c.AllowedHeaders) - delete(rawMsg, key) - case "allowedMethods": - err = unpopulate(val, "AllowedMethods", &c.AllowedMethods) - delete(rawMsg, key) - case "allowedOrigins": - err = unpopulate(val, "AllowedOrigins", &c.AllowedOrigins) - delete(rawMsg, key) - case "exposedHeaders": - err = unpopulate(val, "ExposedHeaders", &c.ExposedHeaders) - delete(rawMsg, key) - case "maxAgeInSeconds": - err = unpopulate(val, "MaxAgeInSeconds", &c.MaxAgeInSeconds) - 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 CreateJobRequest. -func (c CreateJobRequest) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", c.ID) - populate(objectMap, "name", c.Name) - populate(objectMap, "properties", c.Properties) - populate(objectMap, "type", c.Type) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type CreateJobRequest. -func (c *CreateJobRequest) 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 "id": - err = unpopulate(val, "ID", &c.ID) - delete(rawMsg, key) - case "name": - err = unpopulate(val, "Name", &c.Name) - delete(rawMsg, key) - case "properties": - err = unpopulate(val, "Properties", &c.Properties) - delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &c.Type) - 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 CreateUpdateOptions. -func (c CreateUpdateOptions) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "autoscaleSettings", c.AutoscaleSettings) - populate(objectMap, "throughput", c.Throughput) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type CreateUpdateOptions. -func (c *CreateUpdateOptions) 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 "autoscaleSettings": - err = unpopulate(val, "AutoscaleSettings", &c.AutoscaleSettings) - delete(rawMsg, key) - case "throughput": - err = unpopulate(val, "Throughput", &c.Throughput) - 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 DataCenterResource. -func (d DataCenterResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", d.ID) - populate(objectMap, "name", d.Name) - populate(objectMap, "properties", d.Properties) - populate(objectMap, "type", d.Type) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type DataCenterResource. -func (d *DataCenterResource) 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", d, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "id": - err = unpopulate(val, "ID", &d.ID) - delete(rawMsg, key) - case "name": - err = unpopulate(val, "Name", &d.Name) - delete(rawMsg, key) - case "properties": - err = unpopulate(val, "Properties", &d.Properties) - delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &d.Type) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", d, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type DataCenterResourceProperties. -func (d DataCenterResourceProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "authenticationMethodLdapProperties", d.AuthenticationMethodLdapProperties) - populate(objectMap, "availabilityZone", d.AvailabilityZone) - populate(objectMap, "backupStorageCustomerKeyUri", d.BackupStorageCustomerKeyURI) - populate(objectMap, "base64EncodedCassandraYamlFragment", d.Base64EncodedCassandraYamlFragment) - populate(objectMap, "dataCenterLocation", d.DataCenterLocation) - populate(objectMap, "delegatedSubnetId", d.DelegatedSubnetID) - populate(objectMap, "diskCapacity", d.DiskCapacity) - populate(objectMap, "diskSku", d.DiskSKU) - populate(objectMap, "managedDiskCustomerKeyUri", d.ManagedDiskCustomerKeyURI) - populate(objectMap, "nodeCount", d.NodeCount) - populate(objectMap, "provisioningState", d.ProvisioningState) - populate(objectMap, "sku", d.SKU) - populate(objectMap, "seedNodes", d.SeedNodes) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type DataCenterResourceProperties. -func (d *DataCenterResourceProperties) 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", d, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "authenticationMethodLdapProperties": - err = unpopulate(val, "AuthenticationMethodLdapProperties", &d.AuthenticationMethodLdapProperties) - delete(rawMsg, key) - case "availabilityZone": - err = unpopulate(val, "AvailabilityZone", &d.AvailabilityZone) - delete(rawMsg, key) - case "backupStorageCustomerKeyUri": - err = unpopulate(val, "BackupStorageCustomerKeyURI", &d.BackupStorageCustomerKeyURI) - delete(rawMsg, key) - case "base64EncodedCassandraYamlFragment": - err = unpopulate(val, "Base64EncodedCassandraYamlFragment", &d.Base64EncodedCassandraYamlFragment) - delete(rawMsg, key) - case "dataCenterLocation": - err = unpopulate(val, "DataCenterLocation", &d.DataCenterLocation) - delete(rawMsg, key) - case "delegatedSubnetId": - err = unpopulate(val, "DelegatedSubnetID", &d.DelegatedSubnetID) - delete(rawMsg, key) - case "diskCapacity": - err = unpopulate(val, "DiskCapacity", &d.DiskCapacity) - delete(rawMsg, key) - case "diskSku": - err = unpopulate(val, "DiskSKU", &d.DiskSKU) - delete(rawMsg, key) - case "managedDiskCustomerKeyUri": - err = unpopulate(val, "ManagedDiskCustomerKeyURI", &d.ManagedDiskCustomerKeyURI) - delete(rawMsg, key) - case "nodeCount": - err = unpopulate(val, "NodeCount", &d.NodeCount) - delete(rawMsg, key) - case "provisioningState": - err = unpopulate(val, "ProvisioningState", &d.ProvisioningState) - delete(rawMsg, key) - case "sku": - err = unpopulate(val, "SKU", &d.SKU) - delete(rawMsg, key) - case "seedNodes": - err = unpopulate(val, "SeedNodes", &d.SeedNodes) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", d, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type DataTransferDataSourceSink. -func (d DataTransferDataSourceSink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - objectMap["component"] = d.Component - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type DataTransferDataSourceSink. -func (d *DataTransferDataSourceSink) 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", d, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "component": - err = unpopulate(val, "Component", &d.Component) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", d, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type DataTransferJobFeedResults. -func (d DataTransferJobFeedResults) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "nextLink", d.NextLink) - populate(objectMap, "value", d.Value) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type DataTransferJobFeedResults. -func (d *DataTransferJobFeedResults) 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", d, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "nextLink": - err = unpopulate(val, "NextLink", &d.NextLink) - delete(rawMsg, key) - case "value": - err = unpopulate(val, "Value", &d.Value) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", d, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type DataTransferJobGetResults. -func (d DataTransferJobGetResults) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", d.ID) - populate(objectMap, "name", d.Name) - populate(objectMap, "properties", d.Properties) - populate(objectMap, "type", d.Type) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type DataTransferJobGetResults. -func (d *DataTransferJobGetResults) 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", d, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "id": - err = unpopulate(val, "ID", &d.ID) - delete(rawMsg, key) - case "name": - err = unpopulate(val, "Name", &d.Name) - delete(rawMsg, key) - case "properties": - err = unpopulate(val, "Properties", &d.Properties) - delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &d.Type) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", d, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type DataTransferJobProperties. -func (d DataTransferJobProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "destination", d.Destination) - populate(objectMap, "error", d.Error) - populate(objectMap, "jobName", d.JobName) - populateTimeRFC3339(objectMap, "lastUpdatedUtcTime", d.LastUpdatedUTCTime) - populate(objectMap, "processedCount", d.ProcessedCount) - populate(objectMap, "source", d.Source) - populate(objectMap, "status", d.Status) - populate(objectMap, "totalCount", d.TotalCount) - populate(objectMap, "workerCount", d.WorkerCount) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type DataTransferJobProperties. -func (d *DataTransferJobProperties) 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", d, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "destination": - d.Destination, err = unmarshalDataTransferDataSourceSinkClassification(val) - delete(rawMsg, key) - case "error": - err = unpopulate(val, "Error", &d.Error) - delete(rawMsg, key) - case "jobName": - err = unpopulate(val, "JobName", &d.JobName) - delete(rawMsg, key) - case "lastUpdatedUtcTime": - err = unpopulateTimeRFC3339(val, "LastUpdatedUTCTime", &d.LastUpdatedUTCTime) - delete(rawMsg, key) - case "processedCount": - err = unpopulate(val, "ProcessedCount", &d.ProcessedCount) - delete(rawMsg, key) - case "source": - d.Source, err = unmarshalDataTransferDataSourceSinkClassification(val) - delete(rawMsg, key) - case "status": - err = unpopulate(val, "Status", &d.Status) - delete(rawMsg, key) - case "totalCount": - err = unpopulate(val, "TotalCount", &d.TotalCount) - delete(rawMsg, key) - case "workerCount": - err = unpopulate(val, "WorkerCount", &d.WorkerCount) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", d, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type DataTransferRegionalServiceResource. -func (d DataTransferRegionalServiceResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "location", d.Location) - populate(objectMap, "name", d.Name) - populate(objectMap, "status", d.Status) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type DataTransferRegionalServiceResource. -func (d *DataTransferRegionalServiceResource) 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", d, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "location": - err = unpopulate(val, "Location", &d.Location) - delete(rawMsg, key) - case "name": - err = unpopulate(val, "Name", &d.Name) - delete(rawMsg, key) - case "status": - err = unpopulate(val, "Status", &d.Status) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", d, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type DataTransferServiceResource. -func (d DataTransferServiceResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "properties", d.Properties) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type DataTransferServiceResource. -func (d *DataTransferServiceResource) 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", d, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "properties": - err = unpopulate(val, "Properties", &d.Properties) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", d, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type DataTransferServiceResourceProperties. -func (d DataTransferServiceResourceProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populateTimeRFC3339(objectMap, "creationTime", d.CreationTime) - populate(objectMap, "instanceCount", d.InstanceCount) - populate(objectMap, "instanceSize", d.InstanceSize) - populate(objectMap, "locations", d.Locations) - objectMap["serviceType"] = ServiceTypeDataTransfer - populate(objectMap, "status", d.Status) - if d.AdditionalProperties != nil { - for key, val := range d.AdditionalProperties { - objectMap[key] = val - } - } - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type DataTransferServiceResourceProperties. -func (d *DataTransferServiceResourceProperties) 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", d, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "creationTime": - err = unpopulateTimeRFC3339(val, "CreationTime", &d.CreationTime) - delete(rawMsg, key) - case "instanceCount": - err = unpopulate(val, "InstanceCount", &d.InstanceCount) - delete(rawMsg, key) - case "instanceSize": - err = unpopulate(val, "InstanceSize", &d.InstanceSize) - delete(rawMsg, key) - case "locations": - err = unpopulate(val, "Locations", &d.Locations) - delete(rawMsg, key) - case "serviceType": - err = unpopulate(val, "ServiceType", &d.ServiceType) - delete(rawMsg, key) - case "status": - err = unpopulate(val, "Status", &d.Status) - delete(rawMsg, key) - default: - if d.AdditionalProperties == nil { - d.AdditionalProperties = map[string]interface{}{} - } - if val != nil { - var aux interface{} - err = json.Unmarshal(val, &aux) - d.AdditionalProperties[key] = aux - } - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", d, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type DatabaseAccountConnectionString. -func (d DatabaseAccountConnectionString) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "connectionString", d.ConnectionString) - populate(objectMap, "description", d.Description) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type DatabaseAccountConnectionString. -func (d *DatabaseAccountConnectionString) 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", d, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "connectionString": - err = unpopulate(val, "ConnectionString", &d.ConnectionString) - delete(rawMsg, key) - case "description": - err = unpopulate(val, "Description", &d.Description) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", d, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type DatabaseAccountCreateUpdateParameters. -func (d DatabaseAccountCreateUpdateParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", d.ID) - populate(objectMap, "identity", d.Identity) - populate(objectMap, "kind", d.Kind) - populate(objectMap, "location", d.Location) - populate(objectMap, "name", d.Name) - populate(objectMap, "properties", d.Properties) - populate(objectMap, "tags", d.Tags) - populate(objectMap, "type", d.Type) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type DatabaseAccountCreateUpdateParameters. -func (d *DatabaseAccountCreateUpdateParameters) 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", d, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "id": - err = unpopulate(val, "ID", &d.ID) - delete(rawMsg, key) - case "identity": - err = unpopulate(val, "Identity", &d.Identity) - delete(rawMsg, key) - case "kind": - err = unpopulate(val, "Kind", &d.Kind) - delete(rawMsg, key) - case "location": - err = unpopulate(val, "Location", &d.Location) - delete(rawMsg, key) - case "name": - err = unpopulate(val, "Name", &d.Name) - delete(rawMsg, key) - case "properties": - err = unpopulate(val, "Properties", &d.Properties) - delete(rawMsg, key) - case "tags": - err = unpopulate(val, "Tags", &d.Tags) - delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &d.Type) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", d, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type DatabaseAccountCreateUpdateProperties. -func (d DatabaseAccountCreateUpdateProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "apiProperties", d.APIProperties) - populate(objectMap, "analyticalStorageConfiguration", d.AnalyticalStorageConfiguration) - populate(objectMap, "backupPolicy", d.BackupPolicy) - populate(objectMap, "capabilities", d.Capabilities) - populate(objectMap, "capacity", d.Capacity) - populate(objectMap, "connectorOffer", d.ConnectorOffer) - populate(objectMap, "consistencyPolicy", d.ConsistencyPolicy) - populate(objectMap, "cors", d.Cors) - populate(objectMap, "createMode", d.CreateMode) - objectMap["databaseAccountOfferType"] = "Standard" - populate(objectMap, "defaultIdentity", d.DefaultIdentity) - populate(objectMap, "diagnosticLogSettings", d.DiagnosticLogSettings) - populate(objectMap, "disableKeyBasedMetadataWriteAccess", d.DisableKeyBasedMetadataWriteAccess) - populate(objectMap, "disableLocalAuth", d.DisableLocalAuth) - populate(objectMap, "enableAnalyticalStorage", d.EnableAnalyticalStorage) - populate(objectMap, "enableAutomaticFailover", d.EnableAutomaticFailover) - populate(objectMap, "enableCassandraConnector", d.EnableCassandraConnector) - populate(objectMap, "enableFreeTier", d.EnableFreeTier) - populate(objectMap, "enableMaterializedViews", d.EnableMaterializedViews) - populate(objectMap, "enableMultipleWriteLocations", d.EnableMultipleWriteLocations) - populate(objectMap, "enablePartitionMerge", d.EnablePartitionMerge) - populate(objectMap, "ipRules", d.IPRules) - populate(objectMap, "isVirtualNetworkFilterEnabled", d.IsVirtualNetworkFilterEnabled) - populate(objectMap, "keyVaultKeyUri", d.KeyVaultKeyURI) - populate(objectMap, "keysMetadata", d.KeysMetadata) - populate(objectMap, "locations", d.Locations) - populate(objectMap, "networkAclBypass", d.NetworkACLBypass) - populate(objectMap, "networkAclBypassResourceIds", d.NetworkACLBypassResourceIDs) - populate(objectMap, "publicNetworkAccess", d.PublicNetworkAccess) - populate(objectMap, "restoreParameters", d.RestoreParameters) - populate(objectMap, "virtualNetworkRules", d.VirtualNetworkRules) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type DatabaseAccountCreateUpdateProperties. -func (d *DatabaseAccountCreateUpdateProperties) 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", d, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "apiProperties": - err = unpopulate(val, "APIProperties", &d.APIProperties) - delete(rawMsg, key) - case "analyticalStorageConfiguration": - err = unpopulate(val, "AnalyticalStorageConfiguration", &d.AnalyticalStorageConfiguration) - delete(rawMsg, key) - case "backupPolicy": - d.BackupPolicy, err = unmarshalBackupPolicyClassification(val) - delete(rawMsg, key) - case "capabilities": - err = unpopulate(val, "Capabilities", &d.Capabilities) - delete(rawMsg, key) - case "capacity": - err = unpopulate(val, "Capacity", &d.Capacity) - delete(rawMsg, key) - case "connectorOffer": - err = unpopulate(val, "ConnectorOffer", &d.ConnectorOffer) - delete(rawMsg, key) - case "consistencyPolicy": - err = unpopulate(val, "ConsistencyPolicy", &d.ConsistencyPolicy) - delete(rawMsg, key) - case "cors": - err = unpopulate(val, "Cors", &d.Cors) - delete(rawMsg, key) - case "createMode": - err = unpopulate(val, "CreateMode", &d.CreateMode) - delete(rawMsg, key) - case "databaseAccountOfferType": - err = unpopulate(val, "DatabaseAccountOfferType", &d.DatabaseAccountOfferType) - delete(rawMsg, key) - case "defaultIdentity": - err = unpopulate(val, "DefaultIdentity", &d.DefaultIdentity) - delete(rawMsg, key) - case "diagnosticLogSettings": - err = unpopulate(val, "DiagnosticLogSettings", &d.DiagnosticLogSettings) - delete(rawMsg, key) - case "disableKeyBasedMetadataWriteAccess": - err = unpopulate(val, "DisableKeyBasedMetadataWriteAccess", &d.DisableKeyBasedMetadataWriteAccess) - delete(rawMsg, key) - case "disableLocalAuth": - err = unpopulate(val, "DisableLocalAuth", &d.DisableLocalAuth) - delete(rawMsg, key) - case "enableAnalyticalStorage": - err = unpopulate(val, "EnableAnalyticalStorage", &d.EnableAnalyticalStorage) - delete(rawMsg, key) - case "enableAutomaticFailover": - err = unpopulate(val, "EnableAutomaticFailover", &d.EnableAutomaticFailover) - delete(rawMsg, key) - case "enableCassandraConnector": - err = unpopulate(val, "EnableCassandraConnector", &d.EnableCassandraConnector) - delete(rawMsg, key) - case "enableFreeTier": - err = unpopulate(val, "EnableFreeTier", &d.EnableFreeTier) - delete(rawMsg, key) - case "enableMaterializedViews": - err = unpopulate(val, "EnableMaterializedViews", &d.EnableMaterializedViews) - delete(rawMsg, key) - case "enableMultipleWriteLocations": - err = unpopulate(val, "EnableMultipleWriteLocations", &d.EnableMultipleWriteLocations) - delete(rawMsg, key) - case "enablePartitionMerge": - err = unpopulate(val, "EnablePartitionMerge", &d.EnablePartitionMerge) - delete(rawMsg, key) - case "ipRules": - err = unpopulate(val, "IPRules", &d.IPRules) - delete(rawMsg, key) - case "isVirtualNetworkFilterEnabled": - err = unpopulate(val, "IsVirtualNetworkFilterEnabled", &d.IsVirtualNetworkFilterEnabled) - delete(rawMsg, key) - case "keyVaultKeyUri": - err = unpopulate(val, "KeyVaultKeyURI", &d.KeyVaultKeyURI) - delete(rawMsg, key) - case "keysMetadata": - err = unpopulate(val, "KeysMetadata", &d.KeysMetadata) - delete(rawMsg, key) - case "locations": - err = unpopulate(val, "Locations", &d.Locations) - delete(rawMsg, key) - case "networkAclBypass": - err = unpopulate(val, "NetworkACLBypass", &d.NetworkACLBypass) - delete(rawMsg, key) - case "networkAclBypassResourceIds": - err = unpopulate(val, "NetworkACLBypassResourceIDs", &d.NetworkACLBypassResourceIDs) - delete(rawMsg, key) - case "publicNetworkAccess": - err = unpopulate(val, "PublicNetworkAccess", &d.PublicNetworkAccess) - delete(rawMsg, key) - case "restoreParameters": - err = unpopulate(val, "RestoreParameters", &d.RestoreParameters) - delete(rawMsg, key) - case "virtualNetworkRules": - err = unpopulate(val, "VirtualNetworkRules", &d.VirtualNetworkRules) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", d, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type DatabaseAccountGetProperties. -func (d DatabaseAccountGetProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "apiProperties", d.APIProperties) - populate(objectMap, "analyticalStorageConfiguration", d.AnalyticalStorageConfiguration) - populate(objectMap, "backupPolicy", d.BackupPolicy) - populate(objectMap, "capabilities", d.Capabilities) - populate(objectMap, "capacity", d.Capacity) - populate(objectMap, "connectorOffer", d.ConnectorOffer) - populate(objectMap, "consistencyPolicy", d.ConsistencyPolicy) - populate(objectMap, "cors", d.Cors) - populate(objectMap, "createMode", d.CreateMode) - objectMap["databaseAccountOfferType"] = "Standard" - populate(objectMap, "defaultIdentity", d.DefaultIdentity) - populate(objectMap, "diagnosticLogSettings", d.DiagnosticLogSettings) - populate(objectMap, "disableKeyBasedMetadataWriteAccess", d.DisableKeyBasedMetadataWriteAccess) - populate(objectMap, "disableLocalAuth", d.DisableLocalAuth) - populate(objectMap, "documentEndpoint", d.DocumentEndpoint) - populate(objectMap, "enableAnalyticalStorage", d.EnableAnalyticalStorage) - populate(objectMap, "enableAutomaticFailover", d.EnableAutomaticFailover) - populate(objectMap, "enableCassandraConnector", d.EnableCassandraConnector) - populate(objectMap, "enableFreeTier", d.EnableFreeTier) - populate(objectMap, "enableMaterializedViews", d.EnableMaterializedViews) - populate(objectMap, "enableMultipleWriteLocations", d.EnableMultipleWriteLocations) - populate(objectMap, "enablePartitionMerge", d.EnablePartitionMerge) - populate(objectMap, "failoverPolicies", d.FailoverPolicies) - populate(objectMap, "ipRules", d.IPRules) - populate(objectMap, "instanceId", d.InstanceID) - populate(objectMap, "isVirtualNetworkFilterEnabled", d.IsVirtualNetworkFilterEnabled) - populate(objectMap, "keyVaultKeyUri", d.KeyVaultKeyURI) - populate(objectMap, "keysMetadata", d.KeysMetadata) - populate(objectMap, "locations", d.Locations) - populate(objectMap, "networkAclBypass", d.NetworkACLBypass) - populate(objectMap, "networkAclBypassResourceIds", d.NetworkACLBypassResourceIDs) - populate(objectMap, "privateEndpointConnections", d.PrivateEndpointConnections) - populate(objectMap, "provisioningState", d.ProvisioningState) - populate(objectMap, "publicNetworkAccess", d.PublicNetworkAccess) - populate(objectMap, "readLocations", d.ReadLocations) - populate(objectMap, "restoreParameters", d.RestoreParameters) - populate(objectMap, "virtualNetworkRules", d.VirtualNetworkRules) - populate(objectMap, "writeLocations", d.WriteLocations) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type DatabaseAccountGetProperties. -func (d *DatabaseAccountGetProperties) 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", d, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "apiProperties": - err = unpopulate(val, "APIProperties", &d.APIProperties) - delete(rawMsg, key) - case "analyticalStorageConfiguration": - err = unpopulate(val, "AnalyticalStorageConfiguration", &d.AnalyticalStorageConfiguration) - delete(rawMsg, key) - case "backupPolicy": - d.BackupPolicy, err = unmarshalBackupPolicyClassification(val) - delete(rawMsg, key) - case "capabilities": - err = unpopulate(val, "Capabilities", &d.Capabilities) - delete(rawMsg, key) - case "capacity": - err = unpopulate(val, "Capacity", &d.Capacity) - delete(rawMsg, key) - case "connectorOffer": - err = unpopulate(val, "ConnectorOffer", &d.ConnectorOffer) - delete(rawMsg, key) - case "consistencyPolicy": - err = unpopulate(val, "ConsistencyPolicy", &d.ConsistencyPolicy) - delete(rawMsg, key) - case "cors": - err = unpopulate(val, "Cors", &d.Cors) - delete(rawMsg, key) - case "createMode": - err = unpopulate(val, "CreateMode", &d.CreateMode) - delete(rawMsg, key) - case "databaseAccountOfferType": - err = unpopulate(val, "DatabaseAccountOfferType", &d.DatabaseAccountOfferType) - delete(rawMsg, key) - case "defaultIdentity": - err = unpopulate(val, "DefaultIdentity", &d.DefaultIdentity) - delete(rawMsg, key) - case "diagnosticLogSettings": - err = unpopulate(val, "DiagnosticLogSettings", &d.DiagnosticLogSettings) - delete(rawMsg, key) - case "disableKeyBasedMetadataWriteAccess": - err = unpopulate(val, "DisableKeyBasedMetadataWriteAccess", &d.DisableKeyBasedMetadataWriteAccess) - delete(rawMsg, key) - case "disableLocalAuth": - err = unpopulate(val, "DisableLocalAuth", &d.DisableLocalAuth) - delete(rawMsg, key) - case "documentEndpoint": - err = unpopulate(val, "DocumentEndpoint", &d.DocumentEndpoint) - delete(rawMsg, key) - case "enableAnalyticalStorage": - err = unpopulate(val, "EnableAnalyticalStorage", &d.EnableAnalyticalStorage) - delete(rawMsg, key) - case "enableAutomaticFailover": - err = unpopulate(val, "EnableAutomaticFailover", &d.EnableAutomaticFailover) - delete(rawMsg, key) - case "enableCassandraConnector": - err = unpopulate(val, "EnableCassandraConnector", &d.EnableCassandraConnector) - delete(rawMsg, key) - case "enableFreeTier": - err = unpopulate(val, "EnableFreeTier", &d.EnableFreeTier) - delete(rawMsg, key) - case "enableMaterializedViews": - err = unpopulate(val, "EnableMaterializedViews", &d.EnableMaterializedViews) - delete(rawMsg, key) - case "enableMultipleWriteLocations": - err = unpopulate(val, "EnableMultipleWriteLocations", &d.EnableMultipleWriteLocations) - delete(rawMsg, key) - case "enablePartitionMerge": - err = unpopulate(val, "EnablePartitionMerge", &d.EnablePartitionMerge) - delete(rawMsg, key) - case "failoverPolicies": - err = unpopulate(val, "FailoverPolicies", &d.FailoverPolicies) - delete(rawMsg, key) - case "ipRules": - err = unpopulate(val, "IPRules", &d.IPRules) - delete(rawMsg, key) - case "instanceId": - err = unpopulate(val, "InstanceID", &d.InstanceID) - delete(rawMsg, key) - case "isVirtualNetworkFilterEnabled": - err = unpopulate(val, "IsVirtualNetworkFilterEnabled", &d.IsVirtualNetworkFilterEnabled) - delete(rawMsg, key) - case "keyVaultKeyUri": - err = unpopulate(val, "KeyVaultKeyURI", &d.KeyVaultKeyURI) - delete(rawMsg, key) - case "keysMetadata": - err = unpopulate(val, "KeysMetadata", &d.KeysMetadata) - delete(rawMsg, key) - case "locations": - err = unpopulate(val, "Locations", &d.Locations) - delete(rawMsg, key) - case "networkAclBypass": - err = unpopulate(val, "NetworkACLBypass", &d.NetworkACLBypass) - delete(rawMsg, key) - case "networkAclBypassResourceIds": - err = unpopulate(val, "NetworkACLBypassResourceIDs", &d.NetworkACLBypassResourceIDs) - delete(rawMsg, key) - case "privateEndpointConnections": - err = unpopulate(val, "PrivateEndpointConnections", &d.PrivateEndpointConnections) - delete(rawMsg, key) - case "provisioningState": - err = unpopulate(val, "ProvisioningState", &d.ProvisioningState) - delete(rawMsg, key) - case "publicNetworkAccess": - err = unpopulate(val, "PublicNetworkAccess", &d.PublicNetworkAccess) - delete(rawMsg, key) - case "readLocations": - err = unpopulate(val, "ReadLocations", &d.ReadLocations) - delete(rawMsg, key) - case "restoreParameters": - err = unpopulate(val, "RestoreParameters", &d.RestoreParameters) - delete(rawMsg, key) - case "virtualNetworkRules": - err = unpopulate(val, "VirtualNetworkRules", &d.VirtualNetworkRules) - delete(rawMsg, key) - case "writeLocations": - err = unpopulate(val, "WriteLocations", &d.WriteLocations) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", d, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type DatabaseAccountGetResults. -func (d DatabaseAccountGetResults) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", d.ID) - populate(objectMap, "identity", d.Identity) - populate(objectMap, "kind", d.Kind) - populate(objectMap, "location", d.Location) - populate(objectMap, "name", d.Name) - populate(objectMap, "properties", d.Properties) - populate(objectMap, "systemData", d.SystemData) - populate(objectMap, "tags", d.Tags) - populate(objectMap, "type", d.Type) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type DatabaseAccountGetResults. -func (d *DatabaseAccountGetResults) 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", d, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "id": - err = unpopulate(val, "ID", &d.ID) - delete(rawMsg, key) - case "identity": - err = unpopulate(val, "Identity", &d.Identity) - delete(rawMsg, key) - case "kind": - err = unpopulate(val, "Kind", &d.Kind) + case "kind": + err = unpopulate(val, "Kind", &d.Kind) delete(rawMsg, key) case "location": err = unpopulate(val, "Location", &d.Location) @@ -3617,80 +2506,11 @@ func (d *DatabaseAccountGetResults) UnmarshalJSON(data []byte) error { case "properties": err = unpopulate(val, "Properties", &d.Properties) delete(rawMsg, key) - case "systemData": - err = unpopulate(val, "SystemData", &d.SystemData) - delete(rawMsg, key) - case "tags": - err = unpopulate(val, "Tags", &d.Tags) - delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &d.Type) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", d, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type DatabaseAccountKeysMetadata. -func (d DatabaseAccountKeysMetadata) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "primaryMasterKey", d.PrimaryMasterKey) - populate(objectMap, "primaryReadonlyMasterKey", d.PrimaryReadonlyMasterKey) - populate(objectMap, "secondaryMasterKey", d.SecondaryMasterKey) - populate(objectMap, "secondaryReadonlyMasterKey", d.SecondaryReadonlyMasterKey) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type DatabaseAccountKeysMetadata. -func (d *DatabaseAccountKeysMetadata) 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", d, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "primaryMasterKey": - err = unpopulate(val, "PrimaryMasterKey", &d.PrimaryMasterKey) - delete(rawMsg, key) - case "primaryReadonlyMasterKey": - err = unpopulate(val, "PrimaryReadonlyMasterKey", &d.PrimaryReadonlyMasterKey) - delete(rawMsg, key) - case "secondaryMasterKey": - err = unpopulate(val, "SecondaryMasterKey", &d.SecondaryMasterKey) - delete(rawMsg, key) - case "secondaryReadonlyMasterKey": - err = unpopulate(val, "SecondaryReadonlyMasterKey", &d.SecondaryReadonlyMasterKey) + case "tags": + err = unpopulate(val, "Tags", &d.Tags) delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", d, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type DatabaseAccountListConnectionStringsResult. -func (d DatabaseAccountListConnectionStringsResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "connectionStrings", d.ConnectionStrings) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type DatabaseAccountListConnectionStringsResult. -func (d *DatabaseAccountListConnectionStringsResult) 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", d, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "connectionStrings": - err = unpopulate(val, "ConnectionStrings", &d.ConnectionStrings) + case "type": + err = unpopulate(val, "Type", &d.Type) delete(rawMsg, key) } if err != nil { @@ -3700,18 +2520,44 @@ func (d *DatabaseAccountListConnectionStringsResult) UnmarshalJSON(data []byte) return nil } -// MarshalJSON implements the json.Marshaller interface for type DatabaseAccountListKeysResult. -func (d DatabaseAccountListKeysResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "primaryMasterKey", d.PrimaryMasterKey) - populate(objectMap, "primaryReadonlyMasterKey", d.PrimaryReadonlyMasterKey) - populate(objectMap, "secondaryMasterKey", d.SecondaryMasterKey) - populate(objectMap, "secondaryReadonlyMasterKey", d.SecondaryReadonlyMasterKey) +// MarshalJSON implements the json.Marshaller interface for type DatabaseAccountCreateUpdateProperties. +func (d DatabaseAccountCreateUpdateProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "apiProperties", d.APIProperties) + populate(objectMap, "analyticalStorageConfiguration", d.AnalyticalStorageConfiguration) + populate(objectMap, "backupPolicy", d.BackupPolicy) + populate(objectMap, "capabilities", d.Capabilities) + populate(objectMap, "capacity", d.Capacity) + populate(objectMap, "connectorOffer", d.ConnectorOffer) + populate(objectMap, "consistencyPolicy", d.ConsistencyPolicy) + populate(objectMap, "cors", d.Cors) + populate(objectMap, "createMode", d.CreateMode) + objectMap["databaseAccountOfferType"] = "Standard" + populate(objectMap, "defaultIdentity", d.DefaultIdentity) + populate(objectMap, "disableKeyBasedMetadataWriteAccess", d.DisableKeyBasedMetadataWriteAccess) + populate(objectMap, "disableLocalAuth", d.DisableLocalAuth) + populate(objectMap, "enableAnalyticalStorage", d.EnableAnalyticalStorage) + populate(objectMap, "enableAutomaticFailover", d.EnableAutomaticFailover) + populate(objectMap, "enableCassandraConnector", d.EnableCassandraConnector) + populate(objectMap, "enableFreeTier", d.EnableFreeTier) + populate(objectMap, "enableMultipleWriteLocations", d.EnableMultipleWriteLocations) + populate(objectMap, "enablePartitionMerge", d.EnablePartitionMerge) + populate(objectMap, "ipRules", d.IPRules) + populate(objectMap, "isVirtualNetworkFilterEnabled", d.IsVirtualNetworkFilterEnabled) + populate(objectMap, "keyVaultKeyUri", d.KeyVaultKeyURI) + populate(objectMap, "keysMetadata", d.KeysMetadata) + populate(objectMap, "locations", d.Locations) + populate(objectMap, "minimalTlsVersion", d.MinimalTLSVersion) + populate(objectMap, "networkAclBypass", d.NetworkACLBypass) + populate(objectMap, "networkAclBypassResourceIds", d.NetworkACLBypassResourceIDs) + populate(objectMap, "publicNetworkAccess", d.PublicNetworkAccess) + populate(objectMap, "restoreParameters", d.RestoreParameters) + populate(objectMap, "virtualNetworkRules", d.VirtualNetworkRules) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type DatabaseAccountListKeysResult. -func (d *DatabaseAccountListKeysResult) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type DatabaseAccountCreateUpdateProperties. +func (d *DatabaseAccountCreateUpdateProperties) 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", d, err) @@ -3719,114 +2565,95 @@ func (d *DatabaseAccountListKeysResult) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "primaryMasterKey": - err = unpopulate(val, "PrimaryMasterKey", &d.PrimaryMasterKey) + case "apiProperties": + err = unpopulate(val, "APIProperties", &d.APIProperties) delete(rawMsg, key) - case "primaryReadonlyMasterKey": - err = unpopulate(val, "PrimaryReadonlyMasterKey", &d.PrimaryReadonlyMasterKey) + case "analyticalStorageConfiguration": + err = unpopulate(val, "AnalyticalStorageConfiguration", &d.AnalyticalStorageConfiguration) delete(rawMsg, key) - case "secondaryMasterKey": - err = unpopulate(val, "SecondaryMasterKey", &d.SecondaryMasterKey) + case "backupPolicy": + d.BackupPolicy, err = unmarshalBackupPolicyClassification(val) delete(rawMsg, key) - case "secondaryReadonlyMasterKey": - err = unpopulate(val, "SecondaryReadonlyMasterKey", &d.SecondaryReadonlyMasterKey) + case "capabilities": + err = unpopulate(val, "Capabilities", &d.Capabilities) delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", d, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type DatabaseAccountListReadOnlyKeysResult. -func (d DatabaseAccountListReadOnlyKeysResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "primaryReadonlyMasterKey", d.PrimaryReadonlyMasterKey) - populate(objectMap, "secondaryReadonlyMasterKey", d.SecondaryReadonlyMasterKey) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type DatabaseAccountListReadOnlyKeysResult. -func (d *DatabaseAccountListReadOnlyKeysResult) 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", d, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "primaryReadonlyMasterKey": - err = unpopulate(val, "PrimaryReadonlyMasterKey", &d.PrimaryReadonlyMasterKey) + case "capacity": + err = unpopulate(val, "Capacity", &d.Capacity) delete(rawMsg, key) - case "secondaryReadonlyMasterKey": - err = unpopulate(val, "SecondaryReadonlyMasterKey", &d.SecondaryReadonlyMasterKey) + case "connectorOffer": + err = unpopulate(val, "ConnectorOffer", &d.ConnectorOffer) delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", d, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type DatabaseAccountRegenerateKeyParameters. -func (d DatabaseAccountRegenerateKeyParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "keyKind", d.KeyKind) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type DatabaseAccountRegenerateKeyParameters. -func (d *DatabaseAccountRegenerateKeyParameters) 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", d, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "keyKind": - err = unpopulate(val, "KeyKind", &d.KeyKind) + case "consistencyPolicy": + err = unpopulate(val, "ConsistencyPolicy", &d.ConsistencyPolicy) delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", d, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type DatabaseAccountUpdateParameters. -func (d DatabaseAccountUpdateParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "identity", d.Identity) - populate(objectMap, "location", d.Location) - populate(objectMap, "properties", d.Properties) - populate(objectMap, "tags", d.Tags) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type DatabaseAccountUpdateParameters. -func (d *DatabaseAccountUpdateParameters) 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", d, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "identity": - err = unpopulate(val, "Identity", &d.Identity) + case "cors": + err = unpopulate(val, "Cors", &d.Cors) delete(rawMsg, key) - case "location": - err = unpopulate(val, "Location", &d.Location) + case "createMode": + err = unpopulate(val, "CreateMode", &d.CreateMode) delete(rawMsg, key) - case "properties": - err = unpopulate(val, "Properties", &d.Properties) + case "databaseAccountOfferType": + err = unpopulate(val, "DatabaseAccountOfferType", &d.DatabaseAccountOfferType) delete(rawMsg, key) - case "tags": - err = unpopulate(val, "Tags", &d.Tags) + case "defaultIdentity": + err = unpopulate(val, "DefaultIdentity", &d.DefaultIdentity) + delete(rawMsg, key) + case "disableKeyBasedMetadataWriteAccess": + err = unpopulate(val, "DisableKeyBasedMetadataWriteAccess", &d.DisableKeyBasedMetadataWriteAccess) + delete(rawMsg, key) + case "disableLocalAuth": + err = unpopulate(val, "DisableLocalAuth", &d.DisableLocalAuth) + delete(rawMsg, key) + case "enableAnalyticalStorage": + err = unpopulate(val, "EnableAnalyticalStorage", &d.EnableAnalyticalStorage) + delete(rawMsg, key) + case "enableAutomaticFailover": + err = unpopulate(val, "EnableAutomaticFailover", &d.EnableAutomaticFailover) + delete(rawMsg, key) + case "enableCassandraConnector": + err = unpopulate(val, "EnableCassandraConnector", &d.EnableCassandraConnector) + delete(rawMsg, key) + case "enableFreeTier": + err = unpopulate(val, "EnableFreeTier", &d.EnableFreeTier) + delete(rawMsg, key) + case "enableMultipleWriteLocations": + err = unpopulate(val, "EnableMultipleWriteLocations", &d.EnableMultipleWriteLocations) + delete(rawMsg, key) + case "enablePartitionMerge": + err = unpopulate(val, "EnablePartitionMerge", &d.EnablePartitionMerge) + delete(rawMsg, key) + case "ipRules": + err = unpopulate(val, "IPRules", &d.IPRules) + delete(rawMsg, key) + case "isVirtualNetworkFilterEnabled": + err = unpopulate(val, "IsVirtualNetworkFilterEnabled", &d.IsVirtualNetworkFilterEnabled) + delete(rawMsg, key) + case "keyVaultKeyUri": + err = unpopulate(val, "KeyVaultKeyURI", &d.KeyVaultKeyURI) + delete(rawMsg, key) + case "keysMetadata": + err = unpopulate(val, "KeysMetadata", &d.KeysMetadata) + delete(rawMsg, key) + case "locations": + err = unpopulate(val, "Locations", &d.Locations) + delete(rawMsg, key) + case "minimalTlsVersion": + err = unpopulate(val, "MinimalTLSVersion", &d.MinimalTLSVersion) + delete(rawMsg, key) + case "networkAclBypass": + err = unpopulate(val, "NetworkACLBypass", &d.NetworkACLBypass) + delete(rawMsg, key) + case "networkAclBypassResourceIds": + err = unpopulate(val, "NetworkACLBypassResourceIDs", &d.NetworkACLBypassResourceIDs) + delete(rawMsg, key) + case "publicNetworkAccess": + err = unpopulate(val, "PublicNetworkAccess", &d.PublicNetworkAccess) + delete(rawMsg, key) + case "restoreParameters": + err = unpopulate(val, "RestoreParameters", &d.RestoreParameters) + delete(rawMsg, key) + case "virtualNetworkRules": + err = unpopulate(val, "VirtualNetworkRules", &d.VirtualNetworkRules) delete(rawMsg, key) } if err != nil { @@ -3836,9 +2663,9 @@ func (d *DatabaseAccountUpdateParameters) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type DatabaseAccountUpdateProperties. -func (d DatabaseAccountUpdateProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) +// MarshalJSON implements the json.Marshaller interface for type DatabaseAccountGetProperties. +func (d DatabaseAccountGetProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) populate(objectMap, "apiProperties", d.APIProperties) populate(objectMap, "analyticalStorageConfiguration", d.AnalyticalStorageConfiguration) populate(objectMap, "backupPolicy", d.BackupPolicy) @@ -3847,31 +2674,40 @@ func (d DatabaseAccountUpdateProperties) MarshalJSON() ([]byte, error) { populate(objectMap, "connectorOffer", d.ConnectorOffer) populate(objectMap, "consistencyPolicy", d.ConsistencyPolicy) populate(objectMap, "cors", d.Cors) + populate(objectMap, "createMode", d.CreateMode) + objectMap["databaseAccountOfferType"] = "Standard" populate(objectMap, "defaultIdentity", d.DefaultIdentity) - populate(objectMap, "diagnosticLogSettings", d.DiagnosticLogSettings) populate(objectMap, "disableKeyBasedMetadataWriteAccess", d.DisableKeyBasedMetadataWriteAccess) populate(objectMap, "disableLocalAuth", d.DisableLocalAuth) + populate(objectMap, "documentEndpoint", d.DocumentEndpoint) populate(objectMap, "enableAnalyticalStorage", d.EnableAnalyticalStorage) populate(objectMap, "enableAutomaticFailover", d.EnableAutomaticFailover) populate(objectMap, "enableCassandraConnector", d.EnableCassandraConnector) populate(objectMap, "enableFreeTier", d.EnableFreeTier) - populate(objectMap, "enableMaterializedViews", d.EnableMaterializedViews) populate(objectMap, "enableMultipleWriteLocations", d.EnableMultipleWriteLocations) populate(objectMap, "enablePartitionMerge", d.EnablePartitionMerge) + populate(objectMap, "failoverPolicies", d.FailoverPolicies) populate(objectMap, "ipRules", d.IPRules) + populate(objectMap, "instanceId", d.InstanceID) populate(objectMap, "isVirtualNetworkFilterEnabled", d.IsVirtualNetworkFilterEnabled) populate(objectMap, "keyVaultKeyUri", d.KeyVaultKeyURI) populate(objectMap, "keysMetadata", d.KeysMetadata) populate(objectMap, "locations", d.Locations) + populate(objectMap, "minimalTlsVersion", d.MinimalTLSVersion) populate(objectMap, "networkAclBypass", d.NetworkACLBypass) populate(objectMap, "networkAclBypassResourceIds", d.NetworkACLBypassResourceIDs) + populate(objectMap, "privateEndpointConnections", d.PrivateEndpointConnections) + populate(objectMap, "provisioningState", d.ProvisioningState) populate(objectMap, "publicNetworkAccess", d.PublicNetworkAccess) + populate(objectMap, "readLocations", d.ReadLocations) + populate(objectMap, "restoreParameters", d.RestoreParameters) populate(objectMap, "virtualNetworkRules", d.VirtualNetworkRules) + populate(objectMap, "writeLocations", d.WriteLocations) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type DatabaseAccountUpdateProperties. -func (d *DatabaseAccountUpdateProperties) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type DatabaseAccountGetProperties. +func (d *DatabaseAccountGetProperties) 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", d, err) @@ -3903,18 +2739,24 @@ func (d *DatabaseAccountUpdateProperties) UnmarshalJSON(data []byte) error { case "cors": err = unpopulate(val, "Cors", &d.Cors) delete(rawMsg, key) + case "createMode": + err = unpopulate(val, "CreateMode", &d.CreateMode) + delete(rawMsg, key) + case "databaseAccountOfferType": + err = unpopulate(val, "DatabaseAccountOfferType", &d.DatabaseAccountOfferType) + delete(rawMsg, key) case "defaultIdentity": err = unpopulate(val, "DefaultIdentity", &d.DefaultIdentity) delete(rawMsg, key) - case "diagnosticLogSettings": - err = unpopulate(val, "DiagnosticLogSettings", &d.DiagnosticLogSettings) - delete(rawMsg, key) case "disableKeyBasedMetadataWriteAccess": err = unpopulate(val, "DisableKeyBasedMetadataWriteAccess", &d.DisableKeyBasedMetadataWriteAccess) delete(rawMsg, key) case "disableLocalAuth": err = unpopulate(val, "DisableLocalAuth", &d.DisableLocalAuth) delete(rawMsg, key) + case "documentEndpoint": + err = unpopulate(val, "DocumentEndpoint", &d.DocumentEndpoint) + delete(rawMsg, key) case "enableAnalyticalStorage": err = unpopulate(val, "EnableAnalyticalStorage", &d.EnableAnalyticalStorage) delete(rawMsg, key) @@ -3927,18 +2769,21 @@ func (d *DatabaseAccountUpdateProperties) UnmarshalJSON(data []byte) error { case "enableFreeTier": err = unpopulate(val, "EnableFreeTier", &d.EnableFreeTier) delete(rawMsg, key) - case "enableMaterializedViews": - err = unpopulate(val, "EnableMaterializedViews", &d.EnableMaterializedViews) - delete(rawMsg, key) case "enableMultipleWriteLocations": err = unpopulate(val, "EnableMultipleWriteLocations", &d.EnableMultipleWriteLocations) delete(rawMsg, key) case "enablePartitionMerge": err = unpopulate(val, "EnablePartitionMerge", &d.EnablePartitionMerge) delete(rawMsg, key) + case "failoverPolicies": + err = unpopulate(val, "FailoverPolicies", &d.FailoverPolicies) + delete(rawMsg, key) case "ipRules": err = unpopulate(val, "IPRules", &d.IPRules) delete(rawMsg, key) + case "instanceId": + err = unpopulate(val, "InstanceID", &d.InstanceID) + delete(rawMsg, key) case "isVirtualNetworkFilterEnabled": err = unpopulate(val, "IsVirtualNetworkFilterEnabled", &d.IsVirtualNetworkFilterEnabled) delete(rawMsg, key) @@ -3951,872 +2796,661 @@ func (d *DatabaseAccountUpdateProperties) UnmarshalJSON(data []byte) error { case "locations": err = unpopulate(val, "Locations", &d.Locations) delete(rawMsg, key) + case "minimalTlsVersion": + err = unpopulate(val, "MinimalTLSVersion", &d.MinimalTLSVersion) + delete(rawMsg, key) case "networkAclBypass": err = unpopulate(val, "NetworkACLBypass", &d.NetworkACLBypass) delete(rawMsg, key) case "networkAclBypassResourceIds": err = unpopulate(val, "NetworkACLBypassResourceIDs", &d.NetworkACLBypassResourceIDs) delete(rawMsg, key) - case "publicNetworkAccess": - err = unpopulate(val, "PublicNetworkAccess", &d.PublicNetworkAccess) - delete(rawMsg, key) - case "virtualNetworkRules": - err = unpopulate(val, "VirtualNetworkRules", &d.VirtualNetworkRules) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", d, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type DatabaseAccountsListResult. -func (d DatabaseAccountsListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "value", d.Value) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type DatabaseAccountsListResult. -func (d *DatabaseAccountsListResult) 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", d, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "value": - err = unpopulate(val, "Value", &d.Value) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", d, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type DatabaseRestoreResource. -func (d DatabaseRestoreResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "collectionNames", d.CollectionNames) - populate(objectMap, "databaseName", d.DatabaseName) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type DatabaseRestoreResource. -func (d *DatabaseRestoreResource) 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", d, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "collectionNames": - err = unpopulate(val, "CollectionNames", &d.CollectionNames) - delete(rawMsg, key) - case "databaseName": - err = unpopulate(val, "DatabaseName", &d.DatabaseName) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", d, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type DiagnosticLogSettings. -func (d DiagnosticLogSettings) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "enableFullTextQuery", d.EnableFullTextQuery) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type DiagnosticLogSettings. -func (d *DiagnosticLogSettings) 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", d, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "enableFullTextQuery": - err = unpopulate(val, "EnableFullTextQuery", &d.EnableFullTextQuery) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", d, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type ErrorResponse. -func (e ErrorResponse) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "code", e.Code) - populate(objectMap, "message", e.Message) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type ErrorResponse. -func (e *ErrorResponse) 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 "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 ExcludedPath. -func (e ExcludedPath) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "path", e.Path) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type ExcludedPath. -func (e *ExcludedPath) 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 "path": - err = unpopulate(val, "Path", &e.Path) - 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 ExtendedResourceProperties. -func (e ExtendedResourceProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "_etag", e.Etag) - populate(objectMap, "_rid", e.Rid) - populate(objectMap, "_ts", e.Ts) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type ExtendedResourceProperties. -func (e *ExtendedResourceProperties) 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 "_etag": - err = unpopulate(val, "Etag", &e.Etag) + case "privateEndpointConnections": + err = unpopulate(val, "PrivateEndpointConnections", &d.PrivateEndpointConnections) delete(rawMsg, key) - case "_rid": - err = unpopulate(val, "Rid", &e.Rid) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &d.ProvisioningState) delete(rawMsg, key) - case "_ts": - err = unpopulate(val, "Ts", &e.Ts) + case "publicNetworkAccess": + err = unpopulate(val, "PublicNetworkAccess", &d.PublicNetworkAccess) 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 FailoverPolicies. -func (f FailoverPolicies) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "failoverPolicies", f.FailoverPolicies) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type FailoverPolicies. -func (f *FailoverPolicies) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", f, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "failoverPolicies": - err = unpopulate(val, "FailoverPolicies", &f.FailoverPolicies) + case "readLocations": + err = unpopulate(val, "ReadLocations", &d.ReadLocations) delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", f, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type FailoverPolicy. -func (f FailoverPolicy) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "failoverPriority", f.FailoverPriority) - populate(objectMap, "id", f.ID) - populate(objectMap, "locationName", f.LocationName) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type FailoverPolicy. -func (f *FailoverPolicy) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", f, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "failoverPriority": - err = unpopulate(val, "FailoverPriority", &f.FailoverPriority) + case "restoreParameters": + err = unpopulate(val, "RestoreParameters", &d.RestoreParameters) delete(rawMsg, key) - case "id": - err = unpopulate(val, "ID", &f.ID) + case "virtualNetworkRules": + err = unpopulate(val, "VirtualNetworkRules", &d.VirtualNetworkRules) delete(rawMsg, key) - case "locationName": - err = unpopulate(val, "LocationName", &f.LocationName) + case "writeLocations": + err = unpopulate(val, "WriteLocations", &d.WriteLocations) delete(rawMsg, key) } if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", f, err) + return fmt.Errorf("unmarshalling type %T: %v", d, err) } } return nil } -// MarshalJSON implements the json.Marshaller interface for type GraphAPIComputeRegionalServiceResource. -func (g GraphAPIComputeRegionalServiceResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "graphApiComputeEndpoint", g.GraphAPIComputeEndpoint) - populate(objectMap, "location", g.Location) - populate(objectMap, "name", g.Name) - populate(objectMap, "status", g.Status) +// MarshalJSON implements the json.Marshaller interface for type DatabaseAccountGetResults. +func (d DatabaseAccountGetResults) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", d.ID) + populate(objectMap, "identity", d.Identity) + populate(objectMap, "kind", d.Kind) + populate(objectMap, "location", d.Location) + populate(objectMap, "name", d.Name) + populate(objectMap, "properties", d.Properties) + populate(objectMap, "systemData", d.SystemData) + populate(objectMap, "tags", d.Tags) + populate(objectMap, "type", d.Type) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type GraphAPIComputeRegionalServiceResource. -func (g *GraphAPIComputeRegionalServiceResource) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type DatabaseAccountGetResults. +func (d *DatabaseAccountGetResults) 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", g, err) + return fmt.Errorf("unmarshalling type %T: %v", d, err) } for key, val := range rawMsg { var err error switch key { - case "graphApiComputeEndpoint": - err = unpopulate(val, "GraphAPIComputeEndpoint", &g.GraphAPIComputeEndpoint) + case "id": + err = unpopulate(val, "ID", &d.ID) + delete(rawMsg, key) + case "identity": + err = unpopulate(val, "Identity", &d.Identity) + delete(rawMsg, key) + case "kind": + err = unpopulate(val, "Kind", &d.Kind) delete(rawMsg, key) case "location": - err = unpopulate(val, "Location", &g.Location) + err = unpopulate(val, "Location", &d.Location) delete(rawMsg, key) case "name": - err = unpopulate(val, "Name", &g.Name) - delete(rawMsg, key) - case "status": - err = unpopulate(val, "Status", &g.Status) + err = unpopulate(val, "Name", &d.Name) delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", g, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type GraphAPIComputeServiceResource. -func (g GraphAPIComputeServiceResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "properties", g.Properties) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type GraphAPIComputeServiceResource. -func (g *GraphAPIComputeServiceResource) 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", g, err) - } - for key, val := range rawMsg { - var err error - switch key { case "properties": - err = unpopulate(val, "Properties", &g.Properties) + err = unpopulate(val, "Properties", &d.Properties) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &d.SystemData) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &d.Tags) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &d.Type) delete(rawMsg, key) } if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", g, err) + return fmt.Errorf("unmarshalling type %T: %v", d, err) } } return nil } -// MarshalJSON implements the json.Marshaller interface for type GraphAPIComputeServiceResourceProperties. -func (g GraphAPIComputeServiceResourceProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populateTimeRFC3339(objectMap, "creationTime", g.CreationTime) - populate(objectMap, "graphApiComputeEndpoint", g.GraphAPIComputeEndpoint) - populate(objectMap, "instanceCount", g.InstanceCount) - populate(objectMap, "instanceSize", g.InstanceSize) - populate(objectMap, "locations", g.Locations) - objectMap["serviceType"] = ServiceTypeGraphAPICompute - populate(objectMap, "status", g.Status) - if g.AdditionalProperties != nil { - for key, val := range g.AdditionalProperties { - objectMap[key] = val - } - } +// MarshalJSON implements the json.Marshaller interface for type DatabaseAccountKeysMetadata. +func (d DatabaseAccountKeysMetadata) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "primaryMasterKey", d.PrimaryMasterKey) + populate(objectMap, "primaryReadonlyMasterKey", d.PrimaryReadonlyMasterKey) + populate(objectMap, "secondaryMasterKey", d.SecondaryMasterKey) + populate(objectMap, "secondaryReadonlyMasterKey", d.SecondaryReadonlyMasterKey) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type GraphAPIComputeServiceResourceProperties. -func (g *GraphAPIComputeServiceResourceProperties) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type DatabaseAccountKeysMetadata. +func (d *DatabaseAccountKeysMetadata) 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", g, err) + return fmt.Errorf("unmarshalling type %T: %v", d, err) } for key, val := range rawMsg { var err error switch key { - case "creationTime": - err = unpopulateTimeRFC3339(val, "CreationTime", &g.CreationTime) - delete(rawMsg, key) - case "graphApiComputeEndpoint": - err = unpopulate(val, "GraphAPIComputeEndpoint", &g.GraphAPIComputeEndpoint) - delete(rawMsg, key) - case "instanceCount": - err = unpopulate(val, "InstanceCount", &g.InstanceCount) - delete(rawMsg, key) - case "instanceSize": - err = unpopulate(val, "InstanceSize", &g.InstanceSize) - delete(rawMsg, key) - case "locations": - err = unpopulate(val, "Locations", &g.Locations) + case "primaryMasterKey": + err = unpopulate(val, "PrimaryMasterKey", &d.PrimaryMasterKey) delete(rawMsg, key) - case "serviceType": - err = unpopulate(val, "ServiceType", &g.ServiceType) + case "primaryReadonlyMasterKey": + err = unpopulate(val, "PrimaryReadonlyMasterKey", &d.PrimaryReadonlyMasterKey) delete(rawMsg, key) - case "status": - err = unpopulate(val, "Status", &g.Status) + case "secondaryMasterKey": + err = unpopulate(val, "SecondaryMasterKey", &d.SecondaryMasterKey) delete(rawMsg, key) - default: - if g.AdditionalProperties == nil { - g.AdditionalProperties = map[string]interface{}{} - } - if val != nil { - var aux interface{} - err = json.Unmarshal(val, &aux) - g.AdditionalProperties[key] = aux - } + case "secondaryReadonlyMasterKey": + err = unpopulate(val, "SecondaryReadonlyMasterKey", &d.SecondaryReadonlyMasterKey) delete(rawMsg, key) } if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", g, err) + return fmt.Errorf("unmarshalling type %T: %v", d, err) } } return nil } -// MarshalJSON implements the json.Marshaller interface for type GraphResource. -func (g GraphResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", g.ID) +// MarshalJSON implements the json.Marshaller interface for type DatabaseAccountListConnectionStringsResult. +func (d DatabaseAccountListConnectionStringsResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "connectionStrings", d.ConnectionStrings) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type GraphResource. -func (g *GraphResource) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type DatabaseAccountListConnectionStringsResult. +func (d *DatabaseAccountListConnectionStringsResult) 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", g, err) + return fmt.Errorf("unmarshalling type %T: %v", d, err) } for key, val := range rawMsg { var err error switch key { - case "id": - err = unpopulate(val, "ID", &g.ID) + case "connectionStrings": + err = unpopulate(val, "ConnectionStrings", &d.ConnectionStrings) delete(rawMsg, key) } if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", g, err) + return fmt.Errorf("unmarshalling type %T: %v", d, err) } } return nil } -// MarshalJSON implements the json.Marshaller interface for type GraphResourceCreateUpdateParameters. -func (g GraphResourceCreateUpdateParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", g.ID) - populate(objectMap, "identity", g.Identity) - populate(objectMap, "location", g.Location) - populate(objectMap, "name", g.Name) - populate(objectMap, "properties", g.Properties) - populate(objectMap, "tags", g.Tags) - populate(objectMap, "type", g.Type) +// MarshalJSON implements the json.Marshaller interface for type DatabaseAccountListKeysResult. +func (d DatabaseAccountListKeysResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "primaryMasterKey", d.PrimaryMasterKey) + populate(objectMap, "primaryReadonlyMasterKey", d.PrimaryReadonlyMasterKey) + populate(objectMap, "secondaryMasterKey", d.SecondaryMasterKey) + populate(objectMap, "secondaryReadonlyMasterKey", d.SecondaryReadonlyMasterKey) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type GraphResourceCreateUpdateParameters. -func (g *GraphResourceCreateUpdateParameters) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type DatabaseAccountListKeysResult. +func (d *DatabaseAccountListKeysResult) 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", g, err) + return fmt.Errorf("unmarshalling type %T: %v", d, err) } for key, val := range rawMsg { var err error switch key { - case "id": - err = unpopulate(val, "ID", &g.ID) - delete(rawMsg, key) - case "identity": - err = unpopulate(val, "Identity", &g.Identity) - delete(rawMsg, key) - case "location": - err = unpopulate(val, "Location", &g.Location) - delete(rawMsg, key) - case "name": - err = unpopulate(val, "Name", &g.Name) - delete(rawMsg, key) - case "properties": - err = unpopulate(val, "Properties", &g.Properties) - delete(rawMsg, key) - case "tags": - err = unpopulate(val, "Tags", &g.Tags) + case "primaryMasterKey": + err = unpopulate(val, "PrimaryMasterKey", &d.PrimaryMasterKey) delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &g.Type) + case "primaryReadonlyMasterKey": + err = unpopulate(val, "PrimaryReadonlyMasterKey", &d.PrimaryReadonlyMasterKey) delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", g, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type GraphResourceCreateUpdateProperties. -func (g GraphResourceCreateUpdateProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "options", g.Options) - populate(objectMap, "resource", g.Resource) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type GraphResourceCreateUpdateProperties. -func (g *GraphResourceCreateUpdateProperties) 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", g, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "options": - err = unpopulate(val, "Options", &g.Options) + case "secondaryMasterKey": + err = unpopulate(val, "SecondaryMasterKey", &d.SecondaryMasterKey) delete(rawMsg, key) - case "resource": - err = unpopulate(val, "Resource", &g.Resource) + case "secondaryReadonlyMasterKey": + err = unpopulate(val, "SecondaryReadonlyMasterKey", &d.SecondaryReadonlyMasterKey) delete(rawMsg, key) } if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", g, err) + return fmt.Errorf("unmarshalling type %T: %v", d, err) } } return nil } -// MarshalJSON implements the json.Marshaller interface for type GraphResourceGetProperties. -func (g GraphResourceGetProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "options", g.Options) - populate(objectMap, "resource", g.Resource) +// MarshalJSON implements the json.Marshaller interface for type DatabaseAccountListReadOnlyKeysResult. +func (d DatabaseAccountListReadOnlyKeysResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "primaryReadonlyMasterKey", d.PrimaryReadonlyMasterKey) + populate(objectMap, "secondaryReadonlyMasterKey", d.SecondaryReadonlyMasterKey) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type GraphResourceGetProperties. -func (g *GraphResourceGetProperties) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type DatabaseAccountListReadOnlyKeysResult. +func (d *DatabaseAccountListReadOnlyKeysResult) 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", g, err) + return fmt.Errorf("unmarshalling type %T: %v", d, err) } for key, val := range rawMsg { var err error switch key { - case "options": - err = unpopulate(val, "Options", &g.Options) + case "primaryReadonlyMasterKey": + err = unpopulate(val, "PrimaryReadonlyMasterKey", &d.PrimaryReadonlyMasterKey) delete(rawMsg, key) - case "resource": - err = unpopulate(val, "Resource", &g.Resource) + case "secondaryReadonlyMasterKey": + err = unpopulate(val, "SecondaryReadonlyMasterKey", &d.SecondaryReadonlyMasterKey) delete(rawMsg, key) } if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", g, err) + return fmt.Errorf("unmarshalling type %T: %v", d, err) } } return nil } -// MarshalJSON implements the json.Marshaller interface for type GraphResourceGetPropertiesOptions. -func (g GraphResourceGetPropertiesOptions) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "autoscaleSettings", g.AutoscaleSettings) - populate(objectMap, "throughput", g.Throughput) +// MarshalJSON implements the json.Marshaller interface for type DatabaseAccountRegenerateKeyParameters. +func (d DatabaseAccountRegenerateKeyParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "keyKind", d.KeyKind) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type GraphResourceGetPropertiesOptions. -func (g *GraphResourceGetPropertiesOptions) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type DatabaseAccountRegenerateKeyParameters. +func (d *DatabaseAccountRegenerateKeyParameters) 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", g, err) + return fmt.Errorf("unmarshalling type %T: %v", d, err) } for key, val := range rawMsg { var err error switch key { - case "autoscaleSettings": - err = unpopulate(val, "AutoscaleSettings", &g.AutoscaleSettings) - delete(rawMsg, key) - case "throughput": - err = unpopulate(val, "Throughput", &g.Throughput) + case "keyKind": + err = unpopulate(val, "KeyKind", &d.KeyKind) delete(rawMsg, key) } if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", g, err) + return fmt.Errorf("unmarshalling type %T: %v", d, err) } } return nil } -// MarshalJSON implements the json.Marshaller interface for type GraphResourceGetPropertiesResource. -func (g GraphResourceGetPropertiesResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", g.ID) +// MarshalJSON implements the json.Marshaller interface for type DatabaseAccountUpdateParameters. +func (d DatabaseAccountUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "identity", d.Identity) + populate(objectMap, "location", d.Location) + populate(objectMap, "properties", d.Properties) + populate(objectMap, "tags", d.Tags) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type GraphResourceGetPropertiesResource. -func (g *GraphResourceGetPropertiesResource) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type DatabaseAccountUpdateParameters. +func (d *DatabaseAccountUpdateParameters) 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", g, err) + return fmt.Errorf("unmarshalling type %T: %v", d, err) } for key, val := range rawMsg { var err error switch key { - case "id": - err = unpopulate(val, "ID", &g.ID) + case "identity": + err = unpopulate(val, "Identity", &d.Identity) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &d.Location) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &d.Properties) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &d.Tags) delete(rawMsg, key) } if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", g, err) + return fmt.Errorf("unmarshalling type %T: %v", d, err) } } return nil } -// MarshalJSON implements the json.Marshaller interface for type GraphResourceGetResults. -func (g GraphResourceGetResults) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", g.ID) - populate(objectMap, "identity", g.Identity) - populate(objectMap, "location", g.Location) - populate(objectMap, "name", g.Name) - populate(objectMap, "properties", g.Properties) - populate(objectMap, "tags", g.Tags) - populate(objectMap, "type", g.Type) +// MarshalJSON implements the json.Marshaller interface for type DatabaseAccountUpdateProperties. +func (d DatabaseAccountUpdateProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "apiProperties", d.APIProperties) + populate(objectMap, "analyticalStorageConfiguration", d.AnalyticalStorageConfiguration) + populate(objectMap, "backupPolicy", d.BackupPolicy) + populate(objectMap, "capabilities", d.Capabilities) + populate(objectMap, "capacity", d.Capacity) + populate(objectMap, "connectorOffer", d.ConnectorOffer) + populate(objectMap, "consistencyPolicy", d.ConsistencyPolicy) + populate(objectMap, "cors", d.Cors) + populate(objectMap, "defaultIdentity", d.DefaultIdentity) + populate(objectMap, "disableKeyBasedMetadataWriteAccess", d.DisableKeyBasedMetadataWriteAccess) + populate(objectMap, "disableLocalAuth", d.DisableLocalAuth) + populate(objectMap, "enableAnalyticalStorage", d.EnableAnalyticalStorage) + populate(objectMap, "enableAutomaticFailover", d.EnableAutomaticFailover) + populate(objectMap, "enableCassandraConnector", d.EnableCassandraConnector) + populate(objectMap, "enableFreeTier", d.EnableFreeTier) + populate(objectMap, "enableMultipleWriteLocations", d.EnableMultipleWriteLocations) + populate(objectMap, "enablePartitionMerge", d.EnablePartitionMerge) + populate(objectMap, "ipRules", d.IPRules) + populate(objectMap, "isVirtualNetworkFilterEnabled", d.IsVirtualNetworkFilterEnabled) + populate(objectMap, "keyVaultKeyUri", d.KeyVaultKeyURI) + populate(objectMap, "keysMetadata", d.KeysMetadata) + populate(objectMap, "locations", d.Locations) + populate(objectMap, "minimalTlsVersion", d.MinimalTLSVersion) + populate(objectMap, "networkAclBypass", d.NetworkACLBypass) + populate(objectMap, "networkAclBypassResourceIds", d.NetworkACLBypassResourceIDs) + populate(objectMap, "publicNetworkAccess", d.PublicNetworkAccess) + populate(objectMap, "virtualNetworkRules", d.VirtualNetworkRules) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type GraphResourceGetResults. -func (g *GraphResourceGetResults) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type DatabaseAccountUpdateProperties. +func (d *DatabaseAccountUpdateProperties) 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", g, err) + return fmt.Errorf("unmarshalling type %T: %v", d, err) } for key, val := range rawMsg { var err error switch key { - case "id": - err = unpopulate(val, "ID", &g.ID) + case "apiProperties": + err = unpopulate(val, "APIProperties", &d.APIProperties) delete(rawMsg, key) - case "identity": - err = unpopulate(val, "Identity", &g.Identity) + case "analyticalStorageConfiguration": + err = unpopulate(val, "AnalyticalStorageConfiguration", &d.AnalyticalStorageConfiguration) delete(rawMsg, key) - case "location": - err = unpopulate(val, "Location", &g.Location) + case "backupPolicy": + d.BackupPolicy, err = unmarshalBackupPolicyClassification(val) delete(rawMsg, key) - case "name": - err = unpopulate(val, "Name", &g.Name) + case "capabilities": + err = unpopulate(val, "Capabilities", &d.Capabilities) delete(rawMsg, key) - case "properties": - err = unpopulate(val, "Properties", &g.Properties) + case "capacity": + err = unpopulate(val, "Capacity", &d.Capacity) delete(rawMsg, key) - case "tags": - err = unpopulate(val, "Tags", &g.Tags) + case "connectorOffer": + err = unpopulate(val, "ConnectorOffer", &d.ConnectorOffer) delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &g.Type) + case "consistencyPolicy": + err = unpopulate(val, "ConsistencyPolicy", &d.ConsistencyPolicy) + delete(rawMsg, key) + case "cors": + err = unpopulate(val, "Cors", &d.Cors) + delete(rawMsg, key) + case "defaultIdentity": + err = unpopulate(val, "DefaultIdentity", &d.DefaultIdentity) + delete(rawMsg, key) + case "disableKeyBasedMetadataWriteAccess": + err = unpopulate(val, "DisableKeyBasedMetadataWriteAccess", &d.DisableKeyBasedMetadataWriteAccess) + delete(rawMsg, key) + case "disableLocalAuth": + err = unpopulate(val, "DisableLocalAuth", &d.DisableLocalAuth) + delete(rawMsg, key) + case "enableAnalyticalStorage": + err = unpopulate(val, "EnableAnalyticalStorage", &d.EnableAnalyticalStorage) + delete(rawMsg, key) + case "enableAutomaticFailover": + err = unpopulate(val, "EnableAutomaticFailover", &d.EnableAutomaticFailover) + delete(rawMsg, key) + case "enableCassandraConnector": + err = unpopulate(val, "EnableCassandraConnector", &d.EnableCassandraConnector) + delete(rawMsg, key) + case "enableFreeTier": + err = unpopulate(val, "EnableFreeTier", &d.EnableFreeTier) + delete(rawMsg, key) + case "enableMultipleWriteLocations": + err = unpopulate(val, "EnableMultipleWriteLocations", &d.EnableMultipleWriteLocations) + delete(rawMsg, key) + case "enablePartitionMerge": + err = unpopulate(val, "EnablePartitionMerge", &d.EnablePartitionMerge) + delete(rawMsg, key) + case "ipRules": + err = unpopulate(val, "IPRules", &d.IPRules) + delete(rawMsg, key) + case "isVirtualNetworkFilterEnabled": + err = unpopulate(val, "IsVirtualNetworkFilterEnabled", &d.IsVirtualNetworkFilterEnabled) + delete(rawMsg, key) + case "keyVaultKeyUri": + err = unpopulate(val, "KeyVaultKeyURI", &d.KeyVaultKeyURI) + delete(rawMsg, key) + case "keysMetadata": + err = unpopulate(val, "KeysMetadata", &d.KeysMetadata) + delete(rawMsg, key) + case "locations": + err = unpopulate(val, "Locations", &d.Locations) + delete(rawMsg, key) + case "minimalTlsVersion": + err = unpopulate(val, "MinimalTLSVersion", &d.MinimalTLSVersion) + delete(rawMsg, key) + case "networkAclBypass": + err = unpopulate(val, "NetworkACLBypass", &d.NetworkACLBypass) + delete(rawMsg, key) + case "networkAclBypassResourceIds": + err = unpopulate(val, "NetworkACLBypassResourceIDs", &d.NetworkACLBypassResourceIDs) + delete(rawMsg, key) + case "publicNetworkAccess": + err = unpopulate(val, "PublicNetworkAccess", &d.PublicNetworkAccess) + delete(rawMsg, key) + case "virtualNetworkRules": + err = unpopulate(val, "VirtualNetworkRules", &d.VirtualNetworkRules) delete(rawMsg, key) } if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", g, err) + return fmt.Errorf("unmarshalling type %T: %v", d, err) } } return nil } -// MarshalJSON implements the json.Marshaller interface for type GraphResourcesListResult. -func (g GraphResourcesListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "value", g.Value) +// MarshalJSON implements the json.Marshaller interface for type DatabaseAccountsListResult. +func (d DatabaseAccountsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "value", d.Value) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type GraphResourcesListResult. -func (g *GraphResourcesListResult) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type DatabaseAccountsListResult. +func (d *DatabaseAccountsListResult) 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", g, err) + return fmt.Errorf("unmarshalling type %T: %v", d, err) } for key, val := range rawMsg { var err error switch key { case "value": - err = unpopulate(val, "Value", &g.Value) + err = unpopulate(val, "Value", &d.Value) delete(rawMsg, key) } if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", g, err) + return fmt.Errorf("unmarshalling type %T: %v", d, err) } } return nil } -// MarshalJSON implements the json.Marshaller interface for type GremlinDatabaseCreateUpdateParameters. -func (g GremlinDatabaseCreateUpdateParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", g.ID) - populate(objectMap, "identity", g.Identity) - populate(objectMap, "location", g.Location) - populate(objectMap, "name", g.Name) - populate(objectMap, "properties", g.Properties) - populate(objectMap, "tags", g.Tags) - populate(objectMap, "type", g.Type) +// MarshalJSON implements the json.Marshaller interface for type DatabaseRestoreResource. +func (d DatabaseRestoreResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "collectionNames", d.CollectionNames) + populate(objectMap, "databaseName", d.DatabaseName) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type GremlinDatabaseCreateUpdateParameters. -func (g *GremlinDatabaseCreateUpdateParameters) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type DatabaseRestoreResource. +func (d *DatabaseRestoreResource) 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", g, err) + return fmt.Errorf("unmarshalling type %T: %v", d, err) } for key, val := range rawMsg { var err error switch key { - case "id": - err = unpopulate(val, "ID", &g.ID) - delete(rawMsg, key) - case "identity": - err = unpopulate(val, "Identity", &g.Identity) - delete(rawMsg, key) - case "location": - err = unpopulate(val, "Location", &g.Location) - delete(rawMsg, key) - case "name": - err = unpopulate(val, "Name", &g.Name) - delete(rawMsg, key) - case "properties": - err = unpopulate(val, "Properties", &g.Properties) - delete(rawMsg, key) - case "tags": - err = unpopulate(val, "Tags", &g.Tags) + case "collectionNames": + err = unpopulate(val, "CollectionNames", &d.CollectionNames) delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &g.Type) + case "databaseName": + err = unpopulate(val, "DatabaseName", &d.DatabaseName) delete(rawMsg, key) } if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", g, err) + return fmt.Errorf("unmarshalling type %T: %v", d, err) } } return nil } -// MarshalJSON implements the json.Marshaller interface for type GremlinDatabaseCreateUpdateProperties. -func (g GremlinDatabaseCreateUpdateProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "options", g.Options) - populate(objectMap, "resource", g.Resource) +// MarshalJSON implements the json.Marshaller interface for type ErrorResponse. +func (e ErrorResponse) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "code", e.Code) + populate(objectMap, "message", e.Message) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type GremlinDatabaseCreateUpdateProperties. -func (g *GremlinDatabaseCreateUpdateProperties) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type ErrorResponse. +func (e *ErrorResponse) 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", g, err) + return fmt.Errorf("unmarshalling type %T: %v", e, err) } for key, val := range rawMsg { var err error switch key { - case "options": - err = unpopulate(val, "Options", &g.Options) + case "code": + err = unpopulate(val, "Code", &e.Code) delete(rawMsg, key) - case "resource": - err = unpopulate(val, "Resource", &g.Resource) + 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 ExcludedPath. +func (e ExcludedPath) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "path", e.Path) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ExcludedPath. +func (e *ExcludedPath) 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 "path": + err = unpopulate(val, "Path", &e.Path) delete(rawMsg, key) } if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", g, err) + return fmt.Errorf("unmarshalling type %T: %v", e, err) } } return nil } -// MarshalJSON implements the json.Marshaller interface for type GremlinDatabaseGetProperties. -func (g GremlinDatabaseGetProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "options", g.Options) - populate(objectMap, "resource", g.Resource) +// MarshalJSON implements the json.Marshaller interface for type ExtendedResourceProperties. +func (e ExtendedResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "_etag", e.Etag) + populate(objectMap, "_rid", e.Rid) + populate(objectMap, "_ts", e.Ts) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type GremlinDatabaseGetProperties. -func (g *GremlinDatabaseGetProperties) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type ExtendedResourceProperties. +func (e *ExtendedResourceProperties) 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", g, err) + return fmt.Errorf("unmarshalling type %T: %v", e, err) } for key, val := range rawMsg { var err error switch key { - case "options": - err = unpopulate(val, "Options", &g.Options) + case "_etag": + err = unpopulate(val, "Etag", &e.Etag) delete(rawMsg, key) - case "resource": - err = unpopulate(val, "Resource", &g.Resource) + case "_rid": + err = unpopulate(val, "Rid", &e.Rid) + delete(rawMsg, key) + case "_ts": + err = unpopulate(val, "Ts", &e.Ts) delete(rawMsg, key) } if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", g, err) + return fmt.Errorf("unmarshalling type %T: %v", e, err) } } return nil } -// MarshalJSON implements the json.Marshaller interface for type GremlinDatabaseGetPropertiesOptions. -func (g GremlinDatabaseGetPropertiesOptions) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "autoscaleSettings", g.AutoscaleSettings) - populate(objectMap, "throughput", g.Throughput) +// MarshalJSON implements the json.Marshaller interface for type FailoverPolicies. +func (f FailoverPolicies) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "failoverPolicies", f.FailoverPolicies) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type GremlinDatabaseGetPropertiesOptions. -func (g *GremlinDatabaseGetPropertiesOptions) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type FailoverPolicies. +func (f *FailoverPolicies) 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", g, err) + return fmt.Errorf("unmarshalling type %T: %v", f, err) } for key, val := range rawMsg { var err error switch key { - case "autoscaleSettings": - err = unpopulate(val, "AutoscaleSettings", &g.AutoscaleSettings) - delete(rawMsg, key) - case "throughput": - err = unpopulate(val, "Throughput", &g.Throughput) + case "failoverPolicies": + err = unpopulate(val, "FailoverPolicies", &f.FailoverPolicies) delete(rawMsg, key) } if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", g, err) + return fmt.Errorf("unmarshalling type %T: %v", f, err) } } return nil } -// MarshalJSON implements the json.Marshaller interface for type GremlinDatabaseGetPropertiesResource. -func (g GremlinDatabaseGetPropertiesResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "_etag", g.Etag) - populate(objectMap, "id", g.ID) - populate(objectMap, "_rid", g.Rid) - populate(objectMap, "_ts", g.Ts) +// MarshalJSON implements the json.Marshaller interface for type FailoverPolicy. +func (f FailoverPolicy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "failoverPriority", f.FailoverPriority) + populate(objectMap, "id", f.ID) + populate(objectMap, "locationName", f.LocationName) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type GremlinDatabaseGetPropertiesResource. -func (g *GremlinDatabaseGetPropertiesResource) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type FailoverPolicy. +func (f *FailoverPolicy) 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", g, err) + return fmt.Errorf("unmarshalling type %T: %v", f, err) } for key, val := range rawMsg { var err error switch key { - case "_etag": - err = unpopulate(val, "Etag", &g.Etag) + case "failoverPriority": + err = unpopulate(val, "FailoverPriority", &f.FailoverPriority) delete(rawMsg, key) case "id": - err = unpopulate(val, "ID", &g.ID) - delete(rawMsg, key) - case "_rid": - err = unpopulate(val, "Rid", &g.Rid) + err = unpopulate(val, "ID", &f.ID) delete(rawMsg, key) - case "_ts": - err = unpopulate(val, "Ts", &g.Ts) + case "locationName": + err = unpopulate(val, "LocationName", &f.LocationName) delete(rawMsg, key) } if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", g, err) + return fmt.Errorf("unmarshalling type %T: %v", f, err) } } return nil } -// MarshalJSON implements the json.Marshaller interface for type GremlinDatabaseGetResults. -func (g GremlinDatabaseGetResults) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", g.ID) - populate(objectMap, "identity", g.Identity) +// MarshalJSON implements the json.Marshaller interface for type GraphAPIComputeRegionalServiceResource. +func (g GraphAPIComputeRegionalServiceResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "graphApiComputeEndpoint", g.GraphAPIComputeEndpoint) populate(objectMap, "location", g.Location) populate(objectMap, "name", g.Name) - populate(objectMap, "properties", g.Properties) - populate(objectMap, "tags", g.Tags) - populate(objectMap, "type", g.Type) + populate(objectMap, "status", g.Status) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type GremlinDatabaseGetResults. -func (g *GremlinDatabaseGetResults) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type GraphAPIComputeRegionalServiceResource. +func (g *GraphAPIComputeRegionalServiceResource) 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", g, err) @@ -4824,11 +3458,8 @@ func (g *GremlinDatabaseGetResults) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "id": - err = unpopulate(val, "ID", &g.ID) - delete(rawMsg, key) - case "identity": - err = unpopulate(val, "Identity", &g.Identity) + case "graphApiComputeEndpoint": + err = unpopulate(val, "GraphAPIComputeEndpoint", &g.GraphAPIComputeEndpoint) delete(rawMsg, key) case "location": err = unpopulate(val, "Location", &g.Location) @@ -4836,14 +3467,8 @@ func (g *GremlinDatabaseGetResults) UnmarshalJSON(data []byte) error { case "name": err = unpopulate(val, "Name", &g.Name) delete(rawMsg, key) - case "properties": - err = unpopulate(val, "Properties", &g.Properties) - delete(rawMsg, key) - case "tags": - err = unpopulate(val, "Tags", &g.Tags) - delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &g.Type) + case "status": + err = unpopulate(val, "Status", &g.Status) delete(rawMsg, key) } if err != nil { @@ -4853,15 +3478,15 @@ func (g *GremlinDatabaseGetResults) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type GremlinDatabaseListResult. -func (g GremlinDatabaseListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "value", g.Value) +// MarshalJSON implements the json.Marshaller interface for type GraphAPIComputeServiceResource. +func (g GraphAPIComputeServiceResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "properties", g.Properties) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type GremlinDatabaseListResult. -func (g *GremlinDatabaseListResult) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type GraphAPIComputeServiceResource. +func (g *GraphAPIComputeServiceResource) 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", g, err) @@ -4869,8 +3494,8 @@ func (g *GremlinDatabaseListResult) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "value": - err = unpopulate(val, "Value", &g.Value) + case "properties": + err = unpopulate(val, "Properties", &g.Properties) delete(rawMsg, key) } if err != nil { @@ -4880,43 +3505,26 @@ func (g *GremlinDatabaseListResult) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type GremlinDatabaseResource. -func (g GremlinDatabaseResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", g.ID) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type GremlinDatabaseResource. -func (g *GremlinDatabaseResource) 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", g, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "id": - err = unpopulate(val, "ID", &g.ID) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", g, err) +// MarshalJSON implements the json.Marshaller interface for type GraphAPIComputeServiceResourceProperties. +func (g GraphAPIComputeServiceResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateTimeRFC3339(objectMap, "creationTime", g.CreationTime) + populate(objectMap, "graphApiComputeEndpoint", g.GraphAPIComputeEndpoint) + populate(objectMap, "instanceCount", g.InstanceCount) + populate(objectMap, "instanceSize", g.InstanceSize) + populate(objectMap, "locations", g.Locations) + objectMap["serviceType"] = ServiceTypeGraphAPICompute + populate(objectMap, "status", g.Status) + if g.AdditionalProperties != nil { + for key, val := range g.AdditionalProperties { + objectMap[key] = val } } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type GremlinDatabaseRestoreResource. -func (g GremlinDatabaseRestoreResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "databaseName", g.DatabaseName) - populate(objectMap, "graphNames", g.GraphNames) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type GremlinDatabaseRestoreResource. -func (g *GremlinDatabaseRestoreResource) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type GraphAPIComputeServiceResourceProperties. +func (g *GraphAPIComputeServiceResourceProperties) 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", g, err) @@ -4924,11 +3532,36 @@ func (g *GremlinDatabaseRestoreResource) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "databaseName": - err = unpopulate(val, "DatabaseName", &g.DatabaseName) + case "creationTime": + err = unpopulateTimeRFC3339(val, "CreationTime", &g.CreationTime) delete(rawMsg, key) - case "graphNames": - err = unpopulate(val, "GraphNames", &g.GraphNames) + case "graphApiComputeEndpoint": + err = unpopulate(val, "GraphAPIComputeEndpoint", &g.GraphAPIComputeEndpoint) + delete(rawMsg, key) + case "instanceCount": + err = unpopulate(val, "InstanceCount", &g.InstanceCount) + delete(rawMsg, key) + case "instanceSize": + err = unpopulate(val, "InstanceSize", &g.InstanceSize) + delete(rawMsg, key) + case "locations": + err = unpopulate(val, "Locations", &g.Locations) + delete(rawMsg, key) + case "serviceType": + err = unpopulate(val, "ServiceType", &g.ServiceType) + delete(rawMsg, key) + case "status": + err = unpopulate(val, "Status", &g.Status) + delete(rawMsg, key) + default: + if g.AdditionalProperties == nil { + g.AdditionalProperties = map[string]any{} + } + if val != nil { + var aux any + err = json.Unmarshal(val, &aux) + g.AdditionalProperties[key] = aux + } delete(rawMsg, key) } if err != nil { @@ -4938,11 +3571,10 @@ func (g *GremlinDatabaseRestoreResource) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type GremlinGraphCreateUpdateParameters. -func (g GremlinGraphCreateUpdateParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) +// MarshalJSON implements the json.Marshaller interface for type GremlinDatabaseCreateUpdateParameters. +func (g GremlinDatabaseCreateUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) populate(objectMap, "id", g.ID) - populate(objectMap, "identity", g.Identity) populate(objectMap, "location", g.Location) populate(objectMap, "name", g.Name) populate(objectMap, "properties", g.Properties) @@ -4951,8 +3583,8 @@ func (g GremlinGraphCreateUpdateParameters) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type GremlinGraphCreateUpdateParameters. -func (g *GremlinGraphCreateUpdateParameters) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type GremlinDatabaseCreateUpdateParameters. +func (g *GremlinDatabaseCreateUpdateParameters) 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", g, err) @@ -4963,9 +3595,6 @@ func (g *GremlinGraphCreateUpdateParameters) UnmarshalJSON(data []byte) error { case "id": err = unpopulate(val, "ID", &g.ID) delete(rawMsg, key) - case "identity": - err = unpopulate(val, "Identity", &g.Identity) - delete(rawMsg, key) case "location": err = unpopulate(val, "Location", &g.Location) delete(rawMsg, key) @@ -4989,16 +3618,16 @@ func (g *GremlinGraphCreateUpdateParameters) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type GremlinGraphCreateUpdateProperties. -func (g GremlinGraphCreateUpdateProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) +// MarshalJSON implements the json.Marshaller interface for type GremlinDatabaseCreateUpdateProperties. +func (g GremlinDatabaseCreateUpdateProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) populate(objectMap, "options", g.Options) populate(objectMap, "resource", g.Resource) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type GremlinGraphCreateUpdateProperties. -func (g *GremlinGraphCreateUpdateProperties) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type GremlinDatabaseCreateUpdateProperties. +func (g *GremlinDatabaseCreateUpdateProperties) 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", g, err) @@ -5020,16 +3649,16 @@ func (g *GremlinGraphCreateUpdateProperties) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type GremlinGraphGetProperties. -func (g GremlinGraphGetProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) +// MarshalJSON implements the json.Marshaller interface for type GremlinDatabaseGetProperties. +func (g GremlinDatabaseGetProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) populate(objectMap, "options", g.Options) populate(objectMap, "resource", g.Resource) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type GremlinGraphGetProperties. -func (g *GremlinGraphGetProperties) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type GremlinDatabaseGetProperties. +func (g *GremlinDatabaseGetProperties) 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", g, err) @@ -5051,16 +3680,16 @@ func (g *GremlinGraphGetProperties) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type GremlinGraphGetPropertiesOptions. -func (g GremlinGraphGetPropertiesOptions) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) +// MarshalJSON implements the json.Marshaller interface for type GremlinDatabaseGetPropertiesOptions. +func (g GremlinDatabaseGetPropertiesOptions) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) populate(objectMap, "autoscaleSettings", g.AutoscaleSettings) populate(objectMap, "throughput", g.Throughput) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type GremlinGraphGetPropertiesOptions. -func (g *GremlinGraphGetPropertiesOptions) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type GremlinDatabaseGetPropertiesOptions. +func (g *GremlinDatabaseGetPropertiesOptions) 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", g, err) @@ -5082,24 +3711,18 @@ func (g *GremlinGraphGetPropertiesOptions) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type GremlinGraphGetPropertiesResource. -func (g GremlinGraphGetPropertiesResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "analyticalStorageTtl", g.AnalyticalStorageTTL) - populate(objectMap, "conflictResolutionPolicy", g.ConflictResolutionPolicy) - populate(objectMap, "defaultTtl", g.DefaultTTL) +// MarshalJSON implements the json.Marshaller interface for type GremlinDatabaseGetPropertiesResource. +func (g GremlinDatabaseGetPropertiesResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) populate(objectMap, "_etag", g.Etag) populate(objectMap, "id", g.ID) - populate(objectMap, "indexingPolicy", g.IndexingPolicy) - populate(objectMap, "partitionKey", g.PartitionKey) populate(objectMap, "_rid", g.Rid) populate(objectMap, "_ts", g.Ts) - populate(objectMap, "uniqueKeyPolicy", g.UniqueKeyPolicy) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type GremlinGraphGetPropertiesResource. -func (g *GremlinGraphGetPropertiesResource) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type GremlinDatabaseGetPropertiesResource. +func (g *GremlinDatabaseGetPropertiesResource) 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", g, err) @@ -5107,36 +3730,18 @@ func (g *GremlinGraphGetPropertiesResource) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "analyticalStorageTtl": - err = unpopulate(val, "AnalyticalStorageTTL", &g.AnalyticalStorageTTL) - delete(rawMsg, key) - case "conflictResolutionPolicy": - err = unpopulate(val, "ConflictResolutionPolicy", &g.ConflictResolutionPolicy) - delete(rawMsg, key) - case "defaultTtl": - err = unpopulate(val, "DefaultTTL", &g.DefaultTTL) - delete(rawMsg, key) case "_etag": err = unpopulate(val, "Etag", &g.Etag) delete(rawMsg, key) case "id": err = unpopulate(val, "ID", &g.ID) delete(rawMsg, key) - case "indexingPolicy": - err = unpopulate(val, "IndexingPolicy", &g.IndexingPolicy) - delete(rawMsg, key) - case "partitionKey": - err = unpopulate(val, "PartitionKey", &g.PartitionKey) - delete(rawMsg, key) case "_rid": err = unpopulate(val, "Rid", &g.Rid) delete(rawMsg, key) case "_ts": err = unpopulate(val, "Ts", &g.Ts) delete(rawMsg, key) - case "uniqueKeyPolicy": - err = unpopulate(val, "UniqueKeyPolicy", &g.UniqueKeyPolicy) - delete(rawMsg, key) } if err != nil { return fmt.Errorf("unmarshalling type %T: %v", g, err) @@ -5145,11 +3750,10 @@ func (g *GremlinGraphGetPropertiesResource) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type GremlinGraphGetResults. -func (g GremlinGraphGetResults) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) +// MarshalJSON implements the json.Marshaller interface for type GremlinDatabaseGetResults. +func (g GremlinDatabaseGetResults) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) populate(objectMap, "id", g.ID) - populate(objectMap, "identity", g.Identity) populate(objectMap, "location", g.Location) populate(objectMap, "name", g.Name) populate(objectMap, "properties", g.Properties) @@ -5158,8 +3762,8 @@ func (g GremlinGraphGetResults) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type GremlinGraphGetResults. -func (g *GremlinGraphGetResults) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type GremlinDatabaseGetResults. +func (g *GremlinDatabaseGetResults) 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", g, err) @@ -5170,9 +3774,6 @@ func (g *GremlinGraphGetResults) UnmarshalJSON(data []byte) error { case "id": err = unpopulate(val, "ID", &g.ID) delete(rawMsg, key) - case "identity": - err = unpopulate(val, "Identity", &g.Identity) - delete(rawMsg, key) case "location": err = unpopulate(val, "Location", &g.Location) delete(rawMsg, key) @@ -5196,15 +3797,15 @@ func (g *GremlinGraphGetResults) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type GremlinGraphListResult. -func (g GremlinGraphListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) +// MarshalJSON implements the json.Marshaller interface for type GremlinDatabaseListResult. +func (g GremlinDatabaseListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) populate(objectMap, "value", g.Value) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type GremlinGraphListResult. -func (g *GremlinGraphListResult) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type GremlinDatabaseListResult. +func (g *GremlinDatabaseListResult) 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", g, err) @@ -5223,21 +3824,15 @@ func (g *GremlinGraphListResult) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type GremlinGraphResource. -func (g GremlinGraphResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "analyticalStorageTtl", g.AnalyticalStorageTTL) - populate(objectMap, "conflictResolutionPolicy", g.ConflictResolutionPolicy) - populate(objectMap, "defaultTtl", g.DefaultTTL) +// MarshalJSON implements the json.Marshaller interface for type GremlinDatabaseResource. +func (g GremlinDatabaseResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) populate(objectMap, "id", g.ID) - populate(objectMap, "indexingPolicy", g.IndexingPolicy) - populate(objectMap, "partitionKey", g.PartitionKey) - populate(objectMap, "uniqueKeyPolicy", g.UniqueKeyPolicy) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type GremlinGraphResource. -func (g *GremlinGraphResource) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type GremlinDatabaseResource. +func (g *GremlinDatabaseResource) 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", g, err) @@ -5245,27 +3840,9 @@ func (g *GremlinGraphResource) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "analyticalStorageTtl": - err = unpopulate(val, "AnalyticalStorageTTL", &g.AnalyticalStorageTTL) - delete(rawMsg, key) - case "conflictResolutionPolicy": - err = unpopulate(val, "ConflictResolutionPolicy", &g.ConflictResolutionPolicy) - delete(rawMsg, key) - case "defaultTtl": - err = unpopulate(val, "DefaultTTL", &g.DefaultTTL) - delete(rawMsg, key) case "id": err = unpopulate(val, "ID", &g.ID) delete(rawMsg, key) - case "indexingPolicy": - err = unpopulate(val, "IndexingPolicy", &g.IndexingPolicy) - delete(rawMsg, key) - case "partitionKey": - err = unpopulate(val, "PartitionKey", &g.PartitionKey) - delete(rawMsg, key) - case "uniqueKeyPolicy": - err = unpopulate(val, "UniqueKeyPolicy", &g.UniqueKeyPolicy) - delete(rawMsg, key) } if err != nil { return fmt.Errorf("unmarshalling type %T: %v", g, err) @@ -5274,782 +3851,760 @@ func (g *GremlinGraphResource) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type IPAddressOrRange. -func (i IPAddressOrRange) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "ipAddressOrRange", i.IPAddressOrRange) +// MarshalJSON implements the json.Marshaller interface for type GremlinDatabaseRestoreResource. +func (g GremlinDatabaseRestoreResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "databaseName", g.DatabaseName) + populate(objectMap, "graphNames", g.GraphNames) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type IPAddressOrRange. -func (i *IPAddressOrRange) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type GremlinDatabaseRestoreResource. +func (g *GremlinDatabaseRestoreResource) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", i, err) + return fmt.Errorf("unmarshalling type %T: %v", g, err) } for key, val := range rawMsg { var err error switch key { - case "ipAddressOrRange": - err = unpopulate(val, "IPAddressOrRange", &i.IPAddressOrRange) + case "databaseName": + err = unpopulate(val, "DatabaseName", &g.DatabaseName) + delete(rawMsg, key) + case "graphNames": + err = unpopulate(val, "GraphNames", &g.GraphNames) delete(rawMsg, key) } if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", i, err) + return fmt.Errorf("unmarshalling type %T: %v", g, err) } } return nil } -// MarshalJSON implements the json.Marshaller interface for type IncludedPath. -func (i IncludedPath) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "indexes", i.Indexes) - populate(objectMap, "path", i.Path) +// MarshalJSON implements the json.Marshaller interface for type GremlinGraphCreateUpdateParameters. +func (g GremlinGraphCreateUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", g.ID) + populate(objectMap, "location", g.Location) + populate(objectMap, "name", g.Name) + populate(objectMap, "properties", g.Properties) + populate(objectMap, "tags", g.Tags) + populate(objectMap, "type", g.Type) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type IncludedPath. -func (i *IncludedPath) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type GremlinGraphCreateUpdateParameters. +func (g *GremlinGraphCreateUpdateParameters) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", i, err) + return fmt.Errorf("unmarshalling type %T: %v", g, err) } for key, val := range rawMsg { var err error switch key { - case "indexes": - err = unpopulate(val, "Indexes", &i.Indexes) + case "id": + err = unpopulate(val, "ID", &g.ID) delete(rawMsg, key) - case "path": - err = unpopulate(val, "Path", &i.Path) + case "location": + err = unpopulate(val, "Location", &g.Location) delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", i, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type Indexes. -func (i Indexes) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "dataType", i.DataType) - populate(objectMap, "kind", i.Kind) - populate(objectMap, "precision", i.Precision) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type Indexes. -func (i *Indexes) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", i, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "dataType": - err = unpopulate(val, "DataType", &i.DataType) + case "name": + err = unpopulate(val, "Name", &g.Name) delete(rawMsg, key) - case "kind": - err = unpopulate(val, "Kind", &i.Kind) + case "properties": + err = unpopulate(val, "Properties", &g.Properties) delete(rawMsg, key) - case "precision": - err = unpopulate(val, "Precision", &i.Precision) + case "tags": + err = unpopulate(val, "Tags", &g.Tags) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &g.Type) delete(rawMsg, key) } if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", i, err) + return fmt.Errorf("unmarshalling type %T: %v", g, err) } } return nil } -// MarshalJSON implements the json.Marshaller interface for type IndexingPolicy. -func (i IndexingPolicy) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "automatic", i.Automatic) - populate(objectMap, "compositeIndexes", i.CompositeIndexes) - populate(objectMap, "excludedPaths", i.ExcludedPaths) - populate(objectMap, "includedPaths", i.IncludedPaths) - populate(objectMap, "indexingMode", i.IndexingMode) - populate(objectMap, "spatialIndexes", i.SpatialIndexes) +// MarshalJSON implements the json.Marshaller interface for type GremlinGraphCreateUpdateProperties. +func (g GremlinGraphCreateUpdateProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "options", g.Options) + populate(objectMap, "resource", g.Resource) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type IndexingPolicy. -func (i *IndexingPolicy) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type GremlinGraphCreateUpdateProperties. +func (g *GremlinGraphCreateUpdateProperties) UnmarshalJSON(data []byte) error { var rawMsg map[string]json.RawMessage if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", i, err) + return fmt.Errorf("unmarshalling type %T: %v", g, err) } for key, val := range rawMsg { var err error switch key { - case "automatic": - err = unpopulate(val, "Automatic", &i.Automatic) - delete(rawMsg, key) - case "compositeIndexes": - err = unpopulate(val, "CompositeIndexes", &i.CompositeIndexes) - delete(rawMsg, key) - case "excludedPaths": - err = unpopulate(val, "ExcludedPaths", &i.ExcludedPaths) - delete(rawMsg, key) - case "includedPaths": - err = unpopulate(val, "IncludedPaths", &i.IncludedPaths) - delete(rawMsg, key) - case "indexingMode": - err = unpopulate(val, "IndexingMode", &i.IndexingMode) + case "options": + err = unpopulate(val, "Options", &g.Options) delete(rawMsg, key) - case "spatialIndexes": - err = unpopulate(val, "SpatialIndexes", &i.SpatialIndexes) + case "resource": + err = unpopulate(val, "Resource", &g.Resource) delete(rawMsg, key) } if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", i, err) + return fmt.Errorf("unmarshalling type %T: %v", g, err) } } return nil } -// MarshalJSON implements the json.Marshaller interface for type KeyWrapMetadata. -func (k KeyWrapMetadata) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "algorithm", k.Algorithm) - populate(objectMap, "name", k.Name) - populate(objectMap, "type", k.Type) - populate(objectMap, "value", k.Value) +// MarshalJSON implements the json.Marshaller interface for type GremlinGraphGetProperties. +func (g GremlinGraphGetProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "options", g.Options) + populate(objectMap, "resource", g.Resource) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type KeyWrapMetadata. -func (k *KeyWrapMetadata) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type GremlinGraphGetProperties. +func (g *GremlinGraphGetProperties) 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", k, err) + return fmt.Errorf("unmarshalling type %T: %v", g, err) } for key, val := range rawMsg { var err error switch key { - case "algorithm": - err = unpopulate(val, "Algorithm", &k.Algorithm) - delete(rawMsg, key) - case "name": - err = unpopulate(val, "Name", &k.Name) - delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &k.Type) + case "options": + err = unpopulate(val, "Options", &g.Options) delete(rawMsg, key) - case "value": - err = unpopulate(val, "Value", &k.Value) + case "resource": + err = unpopulate(val, "Resource", &g.Resource) delete(rawMsg, key) } if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", k, err) + return fmt.Errorf("unmarshalling type %T: %v", g, err) } } return nil } -// MarshalJSON implements the json.Marshaller interface for type ListBackups. -func (l ListBackups) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "value", l.Value) +// MarshalJSON implements the json.Marshaller interface for type GremlinGraphGetPropertiesOptions. +func (g GremlinGraphGetPropertiesOptions) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "autoscaleSettings", g.AutoscaleSettings) + populate(objectMap, "throughput", g.Throughput) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type ListBackups. -func (l *ListBackups) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type GremlinGraphGetPropertiesOptions. +func (g *GremlinGraphGetPropertiesOptions) 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", l, err) + return fmt.Errorf("unmarshalling type %T: %v", g, err) } for key, val := range rawMsg { var err error switch key { - case "value": - err = unpopulate(val, "Value", &l.Value) + case "autoscaleSettings": + err = unpopulate(val, "AutoscaleSettings", &g.AutoscaleSettings) + delete(rawMsg, key) + case "throughput": + err = unpopulate(val, "Throughput", &g.Throughput) delete(rawMsg, key) } if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", l, err) + return fmt.Errorf("unmarshalling type %T: %v", g, err) } } return nil } -// MarshalJSON implements the json.Marshaller interface for type ListClusters. -func (l ListClusters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "value", l.Value) +// MarshalJSON implements the json.Marshaller interface for type GremlinGraphGetPropertiesResource. +func (g GremlinGraphGetPropertiesResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "analyticalStorageTtl", g.AnalyticalStorageTTL) + populate(objectMap, "conflictResolutionPolicy", g.ConflictResolutionPolicy) + populate(objectMap, "defaultTtl", g.DefaultTTL) + populate(objectMap, "_etag", g.Etag) + populate(objectMap, "id", g.ID) + populate(objectMap, "indexingPolicy", g.IndexingPolicy) + populate(objectMap, "partitionKey", g.PartitionKey) + populate(objectMap, "_rid", g.Rid) + populate(objectMap, "_ts", g.Ts) + populate(objectMap, "uniqueKeyPolicy", g.UniqueKeyPolicy) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type ListClusters. -func (l *ListClusters) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type GremlinGraphGetPropertiesResource. +func (g *GremlinGraphGetPropertiesResource) 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", l, err) + return fmt.Errorf("unmarshalling type %T: %v", g, err) } for key, val := range rawMsg { var err error switch key { - case "value": - err = unpopulate(val, "Value", &l.Value) + case "analyticalStorageTtl": + err = unpopulate(val, "AnalyticalStorageTTL", &g.AnalyticalStorageTTL) + delete(rawMsg, key) + case "conflictResolutionPolicy": + err = unpopulate(val, "ConflictResolutionPolicy", &g.ConflictResolutionPolicy) + delete(rawMsg, key) + case "defaultTtl": + err = unpopulate(val, "DefaultTTL", &g.DefaultTTL) + delete(rawMsg, key) + case "_etag": + err = unpopulate(val, "Etag", &g.Etag) + delete(rawMsg, key) + case "id": + err = unpopulate(val, "ID", &g.ID) + delete(rawMsg, key) + case "indexingPolicy": + err = unpopulate(val, "IndexingPolicy", &g.IndexingPolicy) + delete(rawMsg, key) + case "partitionKey": + err = unpopulate(val, "PartitionKey", &g.PartitionKey) + delete(rawMsg, key) + case "_rid": + err = unpopulate(val, "Rid", &g.Rid) + delete(rawMsg, key) + case "_ts": + err = unpopulate(val, "Ts", &g.Ts) + delete(rawMsg, key) + case "uniqueKeyPolicy": + err = unpopulate(val, "UniqueKeyPolicy", &g.UniqueKeyPolicy) delete(rawMsg, key) } if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", l, err) + return fmt.Errorf("unmarshalling type %T: %v", g, err) } } return nil } -// MarshalJSON implements the json.Marshaller interface for type ListDataCenters. -func (l ListDataCenters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "value", l.Value) +// MarshalJSON implements the json.Marshaller interface for type GremlinGraphGetResults. +func (g GremlinGraphGetResults) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", g.ID) + populate(objectMap, "location", g.Location) + populate(objectMap, "name", g.Name) + populate(objectMap, "properties", g.Properties) + populate(objectMap, "tags", g.Tags) + populate(objectMap, "type", g.Type) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type ListDataCenters. -func (l *ListDataCenters) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type GremlinGraphGetResults. +func (g *GremlinGraphGetResults) 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", l, err) + return fmt.Errorf("unmarshalling type %T: %v", g, err) } for key, val := range rawMsg { var err error switch key { - case "value": - err = unpopulate(val, "Value", &l.Value) + case "id": + err = unpopulate(val, "ID", &g.ID) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &g.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &g.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &g.Properties) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &g.Tags) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &g.Type) delete(rawMsg, key) } if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", l, err) + return fmt.Errorf("unmarshalling type %T: %v", g, err) } } return nil } -// MarshalJSON implements the json.Marshaller interface for type Location. -func (l Location) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "documentEndpoint", l.DocumentEndpoint) - populate(objectMap, "failoverPriority", l.FailoverPriority) - populate(objectMap, "id", l.ID) - populate(objectMap, "isZoneRedundant", l.IsZoneRedundant) - populate(objectMap, "locationName", l.LocationName) - populate(objectMap, "provisioningState", l.ProvisioningState) +// MarshalJSON implements the json.Marshaller interface for type GremlinGraphListResult. +func (g GremlinGraphListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "value", g.Value) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type Location. -func (l *Location) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type GremlinGraphListResult. +func (g *GremlinGraphListResult) 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", l, err) + return fmt.Errorf("unmarshalling type %T: %v", g, err) } for key, val := range rawMsg { var err error switch key { - case "documentEndpoint": - err = unpopulate(val, "DocumentEndpoint", &l.DocumentEndpoint) - delete(rawMsg, key) - case "failoverPriority": - err = unpopulate(val, "FailoverPriority", &l.FailoverPriority) - delete(rawMsg, key) - case "id": - err = unpopulate(val, "ID", &l.ID) - delete(rawMsg, key) - case "isZoneRedundant": - err = unpopulate(val, "IsZoneRedundant", &l.IsZoneRedundant) - delete(rawMsg, key) - case "locationName": - err = unpopulate(val, "LocationName", &l.LocationName) - delete(rawMsg, key) - case "provisioningState": - err = unpopulate(val, "ProvisioningState", &l.ProvisioningState) + case "value": + err = unpopulate(val, "Value", &g.Value) delete(rawMsg, key) } if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", l, err) + return fmt.Errorf("unmarshalling type %T: %v", g, err) } } return nil } -// MarshalJSON implements the json.Marshaller interface for type LocationGetResult. -func (l LocationGetResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", l.ID) - populate(objectMap, "name", l.Name) - populate(objectMap, "properties", l.Properties) - populate(objectMap, "type", l.Type) +// MarshalJSON implements the json.Marshaller interface for type GremlinGraphResource. +func (g GremlinGraphResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "analyticalStorageTtl", g.AnalyticalStorageTTL) + populate(objectMap, "conflictResolutionPolicy", g.ConflictResolutionPolicy) + populate(objectMap, "defaultTtl", g.DefaultTTL) + populate(objectMap, "id", g.ID) + populate(objectMap, "indexingPolicy", g.IndexingPolicy) + populate(objectMap, "partitionKey", g.PartitionKey) + populate(objectMap, "uniqueKeyPolicy", g.UniqueKeyPolicy) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type LocationGetResult. -func (l *LocationGetResult) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type GremlinGraphResource. +func (g *GremlinGraphResource) 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", l, err) + return fmt.Errorf("unmarshalling type %T: %v", g, err) } for key, val := range rawMsg { var err error switch key { + case "analyticalStorageTtl": + err = unpopulate(val, "AnalyticalStorageTTL", &g.AnalyticalStorageTTL) + delete(rawMsg, key) + case "conflictResolutionPolicy": + err = unpopulate(val, "ConflictResolutionPolicy", &g.ConflictResolutionPolicy) + delete(rawMsg, key) + case "defaultTtl": + err = unpopulate(val, "DefaultTTL", &g.DefaultTTL) + delete(rawMsg, key) case "id": - err = unpopulate(val, "ID", &l.ID) + err = unpopulate(val, "ID", &g.ID) delete(rawMsg, key) - case "name": - err = unpopulate(val, "Name", &l.Name) + case "indexingPolicy": + err = unpopulate(val, "IndexingPolicy", &g.IndexingPolicy) delete(rawMsg, key) - case "properties": - err = unpopulate(val, "Properties", &l.Properties) + case "partitionKey": + err = unpopulate(val, "PartitionKey", &g.PartitionKey) delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &l.Type) + case "uniqueKeyPolicy": + err = unpopulate(val, "UniqueKeyPolicy", &g.UniqueKeyPolicy) delete(rawMsg, key) } if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", l, err) + return fmt.Errorf("unmarshalling type %T: %v", g, err) } } return nil } -// MarshalJSON implements the json.Marshaller interface for type LocationListResult. -func (l LocationListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "value", l.Value) +// MarshalJSON implements the json.Marshaller interface for type IPAddressOrRange. +func (i IPAddressOrRange) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "ipAddressOrRange", i.IPAddressOrRange) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type LocationListResult. -func (l *LocationListResult) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type IPAddressOrRange. +func (i *IPAddressOrRange) 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", l, err) + return fmt.Errorf("unmarshalling type %T: %v", i, err) } for key, val := range rawMsg { var err error switch key { - case "value": - err = unpopulate(val, "Value", &l.Value) + case "ipAddressOrRange": + err = unpopulate(val, "IPAddressOrRange", &i.IPAddressOrRange) delete(rawMsg, key) } if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", l, err) + return fmt.Errorf("unmarshalling type %T: %v", i, err) } } return nil } -// MarshalJSON implements the json.Marshaller interface for type LocationProperties. -func (l LocationProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "backupStorageRedundancies", l.BackupStorageRedundancies) - populate(objectMap, "isResidencyRestricted", l.IsResidencyRestricted) - populate(objectMap, "status", l.Status) - populate(objectMap, "supportsAvailabilityZone", l.SupportsAvailabilityZone) +// MarshalJSON implements the json.Marshaller interface for type IncludedPath. +func (i IncludedPath) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "indexes", i.Indexes) + populate(objectMap, "path", i.Path) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type LocationProperties. -func (l *LocationProperties) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type IncludedPath. +func (i *IncludedPath) 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", l, err) + return fmt.Errorf("unmarshalling type %T: %v", i, err) } for key, val := range rawMsg { var err error switch key { - case "backupStorageRedundancies": - err = unpopulate(val, "BackupStorageRedundancies", &l.BackupStorageRedundancies) - delete(rawMsg, key) - case "isResidencyRestricted": - err = unpopulate(val, "IsResidencyRestricted", &l.IsResidencyRestricted) - delete(rawMsg, key) - case "status": - err = unpopulate(val, "Status", &l.Status) + case "indexes": + err = unpopulate(val, "Indexes", &i.Indexes) delete(rawMsg, key) - case "supportsAvailabilityZone": - err = unpopulate(val, "SupportsAvailabilityZone", &l.SupportsAvailabilityZone) + case "path": + err = unpopulate(val, "Path", &i.Path) delete(rawMsg, key) } if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", l, err) + return fmt.Errorf("unmarshalling type %T: %v", i, err) } } return nil } -// MarshalJSON implements the json.Marshaller interface for type ManagedCassandraARMResourceProperties. -func (m ManagedCassandraARMResourceProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", m.ID) - populate(objectMap, "identity", m.Identity) - populate(objectMap, "location", m.Location) - populate(objectMap, "name", m.Name) - populate(objectMap, "tags", m.Tags) - populate(objectMap, "type", m.Type) +// MarshalJSON implements the json.Marshaller interface for type Indexes. +func (i Indexes) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "dataType", i.DataType) + populate(objectMap, "kind", i.Kind) + populate(objectMap, "precision", i.Precision) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type ManagedCassandraARMResourceProperties. -func (m *ManagedCassandraARMResourceProperties) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type Indexes. +func (i *Indexes) 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) + return fmt.Errorf("unmarshalling type %T: %v", i, err) } for key, val := range rawMsg { var err error switch key { - case "id": - err = unpopulate(val, "ID", &m.ID) - delete(rawMsg, key) - case "identity": - err = unpopulate(val, "Identity", &m.Identity) - delete(rawMsg, key) - case "location": - err = unpopulate(val, "Location", &m.Location) - delete(rawMsg, key) - case "name": - err = unpopulate(val, "Name", &m.Name) + case "dataType": + err = unpopulate(val, "DataType", &i.DataType) delete(rawMsg, key) - case "tags": - err = unpopulate(val, "Tags", &m.Tags) + case "kind": + err = unpopulate(val, "Kind", &i.Kind) delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &m.Type) + case "precision": + err = unpopulate(val, "Precision", &i.Precision) delete(rawMsg, key) } if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", m, err) + return fmt.Errorf("unmarshalling type %T: %v", i, err) } } return nil } -// MarshalJSON implements the json.Marshaller interface for type ManagedCassandraManagedServiceIdentity. -func (m ManagedCassandraManagedServiceIdentity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "principalId", m.PrincipalID) - populate(objectMap, "tenantId", m.TenantID) - populate(objectMap, "type", m.Type) +// MarshalJSON implements the json.Marshaller interface for type IndexingPolicy. +func (i IndexingPolicy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "automatic", i.Automatic) + populate(objectMap, "compositeIndexes", i.CompositeIndexes) + populate(objectMap, "excludedPaths", i.ExcludedPaths) + populate(objectMap, "includedPaths", i.IncludedPaths) + populate(objectMap, "indexingMode", i.IndexingMode) + populate(objectMap, "spatialIndexes", i.SpatialIndexes) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type ManagedCassandraManagedServiceIdentity. -func (m *ManagedCassandraManagedServiceIdentity) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type IndexingPolicy. +func (i *IndexingPolicy) 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) + return fmt.Errorf("unmarshalling type %T: %v", i, err) } for key, val := range rawMsg { var err error switch key { - case "principalId": - err = unpopulate(val, "PrincipalID", &m.PrincipalID) + case "automatic": + err = unpopulate(val, "Automatic", &i.Automatic) delete(rawMsg, key) - case "tenantId": - err = unpopulate(val, "TenantID", &m.TenantID) + case "compositeIndexes": + err = unpopulate(val, "CompositeIndexes", &i.CompositeIndexes) delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &m.Type) + case "excludedPaths": + err = unpopulate(val, "ExcludedPaths", &i.ExcludedPaths) + delete(rawMsg, key) + case "includedPaths": + err = unpopulate(val, "IncludedPaths", &i.IncludedPaths) + delete(rawMsg, key) + case "indexingMode": + err = unpopulate(val, "IndexingMode", &i.IndexingMode) + delete(rawMsg, key) + case "spatialIndexes": + err = unpopulate(val, "SpatialIndexes", &i.SpatialIndexes) delete(rawMsg, key) } if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", m, err) + return fmt.Errorf("unmarshalling type %T: %v", i, err) } } return nil } -// MarshalJSON implements the json.Marshaller interface for type ManagedCassandraReaperStatus. -func (m ManagedCassandraReaperStatus) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "healthy", m.Healthy) - populate(objectMap, "repairRunIds", m.RepairRunIDs) - populate(objectMap, "repairSchedules", m.RepairSchedules) +// MarshalJSON implements the json.Marshaller interface for type KeyWrapMetadata. +func (k KeyWrapMetadata) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "algorithm", k.Algorithm) + populate(objectMap, "name", k.Name) + populate(objectMap, "type", k.Type) + populate(objectMap, "value", k.Value) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type ManagedCassandraReaperStatus. -func (m *ManagedCassandraReaperStatus) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type KeyWrapMetadata. +func (k *KeyWrapMetadata) 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) + return fmt.Errorf("unmarshalling type %T: %v", k, err) } for key, val := range rawMsg { var err error switch key { - case "healthy": - err = unpopulate(val, "Healthy", &m.Healthy) + case "algorithm": + err = unpopulate(val, "Algorithm", &k.Algorithm) delete(rawMsg, key) - case "repairRunIds": - err = unpopulate(val, "RepairRunIDs", &m.RepairRunIDs) + case "name": + err = unpopulate(val, "Name", &k.Name) delete(rawMsg, key) - case "repairSchedules": - err = unpopulate(val, "RepairSchedules", &m.RepairSchedules) + case "type": + err = unpopulate(val, "Type", &k.Type) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &k.Value) delete(rawMsg, key) } if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", m, err) + return fmt.Errorf("unmarshalling type %T: %v", k, err) } } return nil } -// MarshalJSON implements the json.Marshaller interface for type ManagedServiceIdentity. -func (m ManagedServiceIdentity) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "principalId", m.PrincipalID) - populate(objectMap, "tenantId", m.TenantID) - populate(objectMap, "type", m.Type) - populate(objectMap, "userAssignedIdentities", m.UserAssignedIdentities) +// MarshalJSON implements the json.Marshaller interface for type ListClusters. +func (l ListClusters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "value", l.Value) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type ManagedServiceIdentity. -func (m *ManagedServiceIdentity) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type ListClusters. +func (l *ListClusters) 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) + return fmt.Errorf("unmarshalling type %T: %v", l, 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) + case "value": + err = unpopulate(val, "Value", &l.Value) delete(rawMsg, key) } if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", m, err) + return fmt.Errorf("unmarshalling type %T: %v", l, err) } } return nil } -// MarshalJSON implements the json.Marshaller interface for type MaterializedViewsBuilderRegionalServiceResource. -func (m MaterializedViewsBuilderRegionalServiceResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "location", m.Location) - populate(objectMap, "name", m.Name) - populate(objectMap, "status", m.Status) +// MarshalJSON implements the json.Marshaller interface for type ListDataCenters. +func (l ListDataCenters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "value", l.Value) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type MaterializedViewsBuilderRegionalServiceResource. -func (m *MaterializedViewsBuilderRegionalServiceResource) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type ListDataCenters. +func (l *ListDataCenters) 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) + return fmt.Errorf("unmarshalling type %T: %v", l, err) } for key, val := range rawMsg { var err error switch key { - case "location": - err = unpopulate(val, "Location", &m.Location) - delete(rawMsg, key) - case "name": - err = unpopulate(val, "Name", &m.Name) - delete(rawMsg, key) - case "status": - err = unpopulate(val, "Status", &m.Status) + case "value": + err = unpopulate(val, "Value", &l.Value) delete(rawMsg, key) } if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", m, err) + return fmt.Errorf("unmarshalling type %T: %v", l, err) } } return nil } -// MarshalJSON implements the json.Marshaller interface for type MaterializedViewsBuilderServiceResource. -func (m MaterializedViewsBuilderServiceResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "properties", m.Properties) +// MarshalJSON implements the json.Marshaller interface for type Location. +func (l Location) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "documentEndpoint", l.DocumentEndpoint) + populate(objectMap, "failoverPriority", l.FailoverPriority) + populate(objectMap, "id", l.ID) + populate(objectMap, "isZoneRedundant", l.IsZoneRedundant) + populate(objectMap, "locationName", l.LocationName) + populate(objectMap, "provisioningState", l.ProvisioningState) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type MaterializedViewsBuilderServiceResource. -func (m *MaterializedViewsBuilderServiceResource) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type Location. +func (l *Location) 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) + return fmt.Errorf("unmarshalling type %T: %v", l, err) } for key, val := range rawMsg { var err error switch key { - case "properties": - err = unpopulate(val, "Properties", &m.Properties) + case "documentEndpoint": + err = unpopulate(val, "DocumentEndpoint", &l.DocumentEndpoint) + delete(rawMsg, key) + case "failoverPriority": + err = unpopulate(val, "FailoverPriority", &l.FailoverPriority) + delete(rawMsg, key) + case "id": + err = unpopulate(val, "ID", &l.ID) + delete(rawMsg, key) + case "isZoneRedundant": + err = unpopulate(val, "IsZoneRedundant", &l.IsZoneRedundant) + delete(rawMsg, key) + case "locationName": + err = unpopulate(val, "LocationName", &l.LocationName) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &l.ProvisioningState) delete(rawMsg, key) } if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", m, err) + return fmt.Errorf("unmarshalling type %T: %v", l, err) } } return nil } -// MarshalJSON implements the json.Marshaller interface for type MaterializedViewsBuilderServiceResourceProperties. -func (m MaterializedViewsBuilderServiceResourceProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populateTimeRFC3339(objectMap, "creationTime", m.CreationTime) - populate(objectMap, "instanceCount", m.InstanceCount) - populate(objectMap, "instanceSize", m.InstanceSize) - populate(objectMap, "locations", m.Locations) - objectMap["serviceType"] = ServiceTypeMaterializedViewsBuilder - populate(objectMap, "status", m.Status) - if m.AdditionalProperties != nil { - for key, val := range m.AdditionalProperties { - objectMap[key] = val - } - } +// MarshalJSON implements the json.Marshaller interface for type LocationGetResult. +func (l LocationGetResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", l.ID) + populate(objectMap, "name", l.Name) + populate(objectMap, "properties", l.Properties) + populate(objectMap, "type", l.Type) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type MaterializedViewsBuilderServiceResourceProperties. -func (m *MaterializedViewsBuilderServiceResourceProperties) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type LocationGetResult. +func (l *LocationGetResult) 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) + return fmt.Errorf("unmarshalling type %T: %v", l, err) } for key, val := range rawMsg { var err error switch key { - case "creationTime": - err = unpopulateTimeRFC3339(val, "CreationTime", &m.CreationTime) - delete(rawMsg, key) - case "instanceCount": - err = unpopulate(val, "InstanceCount", &m.InstanceCount) - delete(rawMsg, key) - case "instanceSize": - err = unpopulate(val, "InstanceSize", &m.InstanceSize) - delete(rawMsg, key) - case "locations": - err = unpopulate(val, "Locations", &m.Locations) + case "id": + err = unpopulate(val, "ID", &l.ID) delete(rawMsg, key) - case "serviceType": - err = unpopulate(val, "ServiceType", &m.ServiceType) + case "name": + err = unpopulate(val, "Name", &l.Name) delete(rawMsg, key) - case "status": - err = unpopulate(val, "Status", &m.Status) + case "properties": + err = unpopulate(val, "Properties", &l.Properties) delete(rawMsg, key) - default: - if m.AdditionalProperties == nil { - m.AdditionalProperties = map[string]interface{}{} - } - if val != nil { - var aux interface{} - err = json.Unmarshal(val, &aux) - m.AdditionalProperties[key] = aux - } + case "type": + err = unpopulate(val, "Type", &l.Type) delete(rawMsg, key) } if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", m, err) + return fmt.Errorf("unmarshalling type %T: %v", l, err) } } return nil } -// MarshalJSON implements the json.Marshaller interface for type MergeParameters. -func (m MergeParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "isDryRun", m.IsDryRun) +// MarshalJSON implements the json.Marshaller interface for type LocationListResult. +func (l LocationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "value", l.Value) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type MergeParameters. -func (m *MergeParameters) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type LocationListResult. +func (l *LocationListResult) 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) + return fmt.Errorf("unmarshalling type %T: %v", l, err) } for key, val := range rawMsg { var err error switch key { - case "isDryRun": - err = unpopulate(val, "IsDryRun", &m.IsDryRun) + case "value": + err = unpopulate(val, "Value", &l.Value) delete(rawMsg, key) } if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", m, err) + return fmt.Errorf("unmarshalling type %T: %v", l, err) } } return nil } -// MarshalJSON implements the json.Marshaller interface for type Metric. -func (m Metric) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populateTimeRFC3339(objectMap, "endTime", m.EndTime) - populate(objectMap, "metricValues", m.MetricValues) - populate(objectMap, "name", m.Name) - populateTimeRFC3339(objectMap, "startTime", m.StartTime) - populate(objectMap, "timeGrain", m.TimeGrain) - populate(objectMap, "unit", m.Unit) +// MarshalJSON implements the json.Marshaller interface for type LocationProperties. +func (l LocationProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "backupStorageRedundancies", l.BackupStorageRedundancies) + populate(objectMap, "isResidencyRestricted", l.IsResidencyRestricted) + populate(objectMap, "supportsAvailabilityZone", l.SupportsAvailabilityZone) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type Metric. -func (m *Metric) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type LocationProperties. +func (l *LocationProperties) 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) + return fmt.Errorf("unmarshalling type %T: %v", l, err) } for key, val := range rawMsg { var err error switch key { - case "endTime": - err = unpopulateTimeRFC3339(val, "EndTime", &m.EndTime) - delete(rawMsg, key) - case "metricValues": - err = unpopulate(val, "MetricValues", &m.MetricValues) - delete(rawMsg, key) - case "name": - err = unpopulate(val, "Name", &m.Name) - delete(rawMsg, key) - case "startTime": - err = unpopulateTimeRFC3339(val, "StartTime", &m.StartTime) + case "backupStorageRedundancies": + err = unpopulate(val, "BackupStorageRedundancies", &l.BackupStorageRedundancies) delete(rawMsg, key) - case "timeGrain": - err = unpopulate(val, "TimeGrain", &m.TimeGrain) + case "isResidencyRestricted": + err = unpopulate(val, "IsResidencyRestricted", &l.IsResidencyRestricted) delete(rawMsg, key) - case "unit": - err = unpopulate(val, "Unit", &m.Unit) + case "supportsAvailabilityZone": + err = unpopulate(val, "SupportsAvailabilityZone", &l.SupportsAvailabilityZone) delete(rawMsg, key) } if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", m, err) + return fmt.Errorf("unmarshalling type %T: %v", l, err) } } return nil } -// MarshalJSON implements the json.Marshaller interface for type MetricAvailability. -func (m MetricAvailability) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "retention", m.Retention) - populate(objectMap, "timeGrain", m.TimeGrain) +// MarshalJSON implements the json.Marshaller interface for type ManagedCassandraARMResourceProperties. +func (m ManagedCassandraARMResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", m.ID) + populate(objectMap, "identity", m.Identity) + populate(objectMap, "location", m.Location) + populate(objectMap, "name", m.Name) + populate(objectMap, "tags", m.Tags) + populate(objectMap, "type", m.Type) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type MetricAvailability. -func (m *MetricAvailability) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type ManagedCassandraARMResourceProperties. +func (m *ManagedCassandraARMResourceProperties) 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) @@ -6057,11 +4612,23 @@ func (m *MetricAvailability) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "retention": - err = unpopulate(val, "Retention", &m.Retention) + case "id": + err = unpopulate(val, "ID", &m.ID) delete(rawMsg, key) - case "timeGrain": - err = unpopulate(val, "TimeGrain", &m.TimeGrain) + case "identity": + err = unpopulate(val, "Identity", &m.Identity) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &m.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &m.Name) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &m.Tags) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &m.Type) delete(rawMsg, key) } if err != nil { @@ -6071,19 +4638,17 @@ func (m *MetricAvailability) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type MetricDefinition. -func (m MetricDefinition) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "metricAvailabilities", m.MetricAvailabilities) - populate(objectMap, "name", m.Name) - populate(objectMap, "primaryAggregationType", m.PrimaryAggregationType) - populate(objectMap, "resourceUri", m.ResourceURI) - populate(objectMap, "unit", m.Unit) +// MarshalJSON implements the json.Marshaller interface for type ManagedCassandraManagedServiceIdentity. +func (m ManagedCassandraManagedServiceIdentity) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "principalId", m.PrincipalID) + populate(objectMap, "tenantId", m.TenantID) + populate(objectMap, "type", m.Type) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type MetricDefinition. -func (m *MetricDefinition) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type ManagedCassandraManagedServiceIdentity. +func (m *ManagedCassandraManagedServiceIdentity) 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) @@ -6091,20 +4656,14 @@ func (m *MetricDefinition) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "metricAvailabilities": - err = unpopulate(val, "MetricAvailabilities", &m.MetricAvailabilities) - delete(rawMsg, key) - case "name": - err = unpopulate(val, "Name", &m.Name) - delete(rawMsg, key) - case "primaryAggregationType": - err = unpopulate(val, "PrimaryAggregationType", &m.PrimaryAggregationType) + case "principalId": + err = unpopulate(val, "PrincipalID", &m.PrincipalID) delete(rawMsg, key) - case "resourceUri": - err = unpopulate(val, "ResourceURI", &m.ResourceURI) + case "tenantId": + err = unpopulate(val, "TenantID", &m.TenantID) delete(rawMsg, key) - case "unit": - err = unpopulate(val, "Unit", &m.Unit) + case "type": + err = unpopulate(val, "Type", &m.Type) delete(rawMsg, key) } if err != nil { @@ -6114,15 +4673,17 @@ func (m *MetricDefinition) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type MetricDefinitionsListResult. -func (m MetricDefinitionsListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "value", m.Value) +// MarshalJSON implements the json.Marshaller interface for type ManagedCassandraReaperStatus. +func (m ManagedCassandraReaperStatus) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "healthy", m.Healthy) + populate(objectMap, "repairRunIds", m.RepairRunIDs) + populate(objectMap, "repairSchedules", m.RepairSchedules) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type MetricDefinitionsListResult. -func (m *MetricDefinitionsListResult) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type ManagedCassandraReaperStatus. +func (m *ManagedCassandraReaperStatus) 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) @@ -6130,8 +4691,14 @@ func (m *MetricDefinitionsListResult) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "value": - err = unpopulate(val, "Value", &m.Value) + case "healthy": + err = unpopulate(val, "Healthy", &m.Healthy) + delete(rawMsg, key) + case "repairRunIds": + err = unpopulate(val, "RepairRunIDs", &m.RepairRunIDs) + delete(rawMsg, key) + case "repairSchedules": + err = unpopulate(val, "RepairSchedules", &m.RepairSchedules) delete(rawMsg, key) } if err != nil { @@ -6141,15 +4708,18 @@ func (m *MetricDefinitionsListResult) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type MetricListResult. -func (m MetricListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "value", m.Value) +// 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 MetricListResult. -func (m *MetricListResult) UnmarshalJSON(data []byte) error { +// 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) @@ -6157,8 +4727,17 @@ func (m *MetricListResult) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "value": - err = unpopulate(val, "Value", &m.Value) + 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 { @@ -6168,16 +4747,17 @@ func (m *MetricListResult) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type MetricName. -func (m MetricName) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "localizedValue", m.LocalizedValue) - populate(objectMap, "value", m.Value) +// MarshalJSON implements the json.Marshaller interface for type MaterializedViewsBuilderRegionalServiceResource. +func (m MaterializedViewsBuilderRegionalServiceResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "location", m.Location) + populate(objectMap, "name", m.Name) + populate(objectMap, "status", m.Status) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type MetricName. -func (m *MetricName) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type MaterializedViewsBuilderRegionalServiceResource. +func (m *MaterializedViewsBuilderRegionalServiceResource) 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) @@ -6185,11 +4765,14 @@ func (m *MetricName) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "localizedValue": - err = unpopulate(val, "LocalizedValue", &m.LocalizedValue) + case "location": + err = unpopulate(val, "Location", &m.Location) delete(rawMsg, key) - case "value": - err = unpopulate(val, "Value", &m.Value) + case "name": + err = unpopulate(val, "Name", &m.Name) + delete(rawMsg, key) + case "status": + err = unpopulate(val, "Status", &m.Status) delete(rawMsg, key) } if err != nil { @@ -6199,20 +4782,15 @@ func (m *MetricName) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type MetricValue. -func (m MetricValue) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "average", m.Average) - populate(objectMap, "_count", m.Count) - populate(objectMap, "maximum", m.Maximum) - populate(objectMap, "minimum", m.Minimum) - populateTimeRFC3339(objectMap, "timestamp", m.Timestamp) - populate(objectMap, "total", m.Total) +// MarshalJSON implements the json.Marshaller interface for type MaterializedViewsBuilderServiceResource. +func (m MaterializedViewsBuilderServiceResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "properties", m.Properties) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type MetricValue. -func (m *MetricValue) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type MaterializedViewsBuilderServiceResource. +func (m *MaterializedViewsBuilderServiceResource) 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) @@ -6220,23 +4798,8 @@ func (m *MetricValue) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "average": - err = unpopulate(val, "Average", &m.Average) - delete(rawMsg, key) - case "_count": - err = unpopulate(val, "Count", &m.Count) - delete(rawMsg, key) - case "maximum": - err = unpopulate(val, "Maximum", &m.Maximum) - delete(rawMsg, key) - case "minimum": - err = unpopulate(val, "Minimum", &m.Minimum) - delete(rawMsg, key) - case "timestamp": - err = unpopulateTimeRFC3339(val, "Timestamp", &m.Timestamp) - delete(rawMsg, key) - case "total": - err = unpopulate(val, "Total", &m.Total) + case "properties": + err = unpopulate(val, "Properties", &m.Properties) delete(rawMsg, key) } if err != nil { @@ -6246,21 +4809,25 @@ func (m *MetricValue) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type MongoDBCollectionCreateUpdateParameters. -func (m MongoDBCollectionCreateUpdateParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", m.ID) - populate(objectMap, "identity", m.Identity) - populate(objectMap, "location", m.Location) - populate(objectMap, "name", m.Name) - populate(objectMap, "properties", m.Properties) - populate(objectMap, "tags", m.Tags) - populate(objectMap, "type", m.Type) +// MarshalJSON implements the json.Marshaller interface for type MaterializedViewsBuilderServiceResourceProperties. +func (m MaterializedViewsBuilderServiceResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateTimeRFC3339(objectMap, "creationTime", m.CreationTime) + populate(objectMap, "instanceCount", m.InstanceCount) + populate(objectMap, "instanceSize", m.InstanceSize) + populate(objectMap, "locations", m.Locations) + objectMap["serviceType"] = ServiceTypeMaterializedViewsBuilder + populate(objectMap, "status", m.Status) + if m.AdditionalProperties != nil { + for key, val := range m.AdditionalProperties { + objectMap[key] = val + } + } return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type MongoDBCollectionCreateUpdateParameters. -func (m *MongoDBCollectionCreateUpdateParameters) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type MaterializedViewsBuilderServiceResourceProperties. +func (m *MaterializedViewsBuilderServiceResourceProperties) 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) @@ -6268,26 +4835,33 @@ func (m *MongoDBCollectionCreateUpdateParameters) UnmarshalJSON(data []byte) err for key, val := range rawMsg { var err error switch key { - case "id": - err = unpopulate(val, "ID", &m.ID) - delete(rawMsg, key) - case "identity": - err = unpopulate(val, "Identity", &m.Identity) + case "creationTime": + err = unpopulateTimeRFC3339(val, "CreationTime", &m.CreationTime) delete(rawMsg, key) - case "location": - err = unpopulate(val, "Location", &m.Location) + case "instanceCount": + err = unpopulate(val, "InstanceCount", &m.InstanceCount) delete(rawMsg, key) - case "name": - err = unpopulate(val, "Name", &m.Name) + case "instanceSize": + err = unpopulate(val, "InstanceSize", &m.InstanceSize) delete(rawMsg, key) - case "properties": - err = unpopulate(val, "Properties", &m.Properties) + case "locations": + err = unpopulate(val, "Locations", &m.Locations) delete(rawMsg, key) - case "tags": - err = unpopulate(val, "Tags", &m.Tags) + case "serviceType": + err = unpopulate(val, "ServiceType", &m.ServiceType) delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &m.Type) + case "status": + err = unpopulate(val, "Status", &m.Status) + delete(rawMsg, key) + default: + if m.AdditionalProperties == nil { + m.AdditionalProperties = map[string]any{} + } + if val != nil { + var aux any + err = json.Unmarshal(val, &aux) + m.AdditionalProperties[key] = aux + } delete(rawMsg, key) } if err != nil { @@ -6297,16 +4871,20 @@ func (m *MongoDBCollectionCreateUpdateParameters) UnmarshalJSON(data []byte) err return nil } -// MarshalJSON implements the json.Marshaller interface for type MongoDBCollectionCreateUpdateProperties. -func (m MongoDBCollectionCreateUpdateProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "options", m.Options) - populate(objectMap, "resource", m.Resource) +// MarshalJSON implements the json.Marshaller interface for type Metric. +func (m Metric) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateTimeRFC3339(objectMap, "endTime", m.EndTime) + populate(objectMap, "metricValues", m.MetricValues) + populate(objectMap, "name", m.Name) + populateTimeRFC3339(objectMap, "startTime", m.StartTime) + populate(objectMap, "timeGrain", m.TimeGrain) + populate(objectMap, "unit", m.Unit) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type MongoDBCollectionCreateUpdateProperties. -func (m *MongoDBCollectionCreateUpdateProperties) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type Metric. +func (m *Metric) 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) @@ -6314,11 +4892,23 @@ func (m *MongoDBCollectionCreateUpdateProperties) UnmarshalJSON(data []byte) err for key, val := range rawMsg { var err error switch key { - case "options": - err = unpopulate(val, "Options", &m.Options) + case "endTime": + err = unpopulateTimeRFC3339(val, "EndTime", &m.EndTime) delete(rawMsg, key) - case "resource": - err = unpopulate(val, "Resource", &m.Resource) + case "metricValues": + err = unpopulate(val, "MetricValues", &m.MetricValues) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &m.Name) + delete(rawMsg, key) + case "startTime": + err = unpopulateTimeRFC3339(val, "StartTime", &m.StartTime) + delete(rawMsg, key) + case "timeGrain": + err = unpopulate(val, "TimeGrain", &m.TimeGrain) + delete(rawMsg, key) + case "unit": + err = unpopulate(val, "Unit", &m.Unit) delete(rawMsg, key) } if err != nil { @@ -6328,16 +4918,16 @@ func (m *MongoDBCollectionCreateUpdateProperties) UnmarshalJSON(data []byte) err return nil } -// MarshalJSON implements the json.Marshaller interface for type MongoDBCollectionGetProperties. -func (m MongoDBCollectionGetProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "options", m.Options) - populate(objectMap, "resource", m.Resource) +// MarshalJSON implements the json.Marshaller interface for type MetricAvailability. +func (m MetricAvailability) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "retention", m.Retention) + populate(objectMap, "timeGrain", m.TimeGrain) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type MongoDBCollectionGetProperties. -func (m *MongoDBCollectionGetProperties) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type MetricAvailability. +func (m *MetricAvailability) 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) @@ -6345,11 +4935,11 @@ func (m *MongoDBCollectionGetProperties) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "options": - err = unpopulate(val, "Options", &m.Options) + case "retention": + err = unpopulate(val, "Retention", &m.Retention) delete(rawMsg, key) - case "resource": - err = unpopulate(val, "Resource", &m.Resource) + case "timeGrain": + err = unpopulate(val, "TimeGrain", &m.TimeGrain) delete(rawMsg, key) } if err != nil { @@ -6359,16 +4949,19 @@ func (m *MongoDBCollectionGetProperties) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type MongoDBCollectionGetPropertiesOptions. -func (m MongoDBCollectionGetPropertiesOptions) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "autoscaleSettings", m.AutoscaleSettings) - populate(objectMap, "throughput", m.Throughput) +// MarshalJSON implements the json.Marshaller interface for type MetricDefinition. +func (m MetricDefinition) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "metricAvailabilities", m.MetricAvailabilities) + populate(objectMap, "name", m.Name) + populate(objectMap, "primaryAggregationType", m.PrimaryAggregationType) + populate(objectMap, "resourceUri", m.ResourceURI) + populate(objectMap, "unit", m.Unit) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type MongoDBCollectionGetPropertiesOptions. -func (m *MongoDBCollectionGetPropertiesOptions) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type MetricDefinition. +func (m *MetricDefinition) 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) @@ -6376,11 +4969,20 @@ func (m *MongoDBCollectionGetPropertiesOptions) UnmarshalJSON(data []byte) error for key, val := range rawMsg { var err error switch key { - case "autoscaleSettings": - err = unpopulate(val, "AutoscaleSettings", &m.AutoscaleSettings) + case "metricAvailabilities": + err = unpopulate(val, "MetricAvailabilities", &m.MetricAvailabilities) delete(rawMsg, key) - case "throughput": - err = unpopulate(val, "Throughput", &m.Throughput) + case "name": + err = unpopulate(val, "Name", &m.Name) + delete(rawMsg, key) + case "primaryAggregationType": + err = unpopulate(val, "PrimaryAggregationType", &m.PrimaryAggregationType) + delete(rawMsg, key) + case "resourceUri": + err = unpopulate(val, "ResourceURI", &m.ResourceURI) + delete(rawMsg, key) + case "unit": + err = unpopulate(val, "Unit", &m.Unit) delete(rawMsg, key) } if err != nil { @@ -6390,23 +4992,15 @@ func (m *MongoDBCollectionGetPropertiesOptions) UnmarshalJSON(data []byte) error return nil } -// MarshalJSON implements the json.Marshaller interface for type MongoDBCollectionGetPropertiesResource. -func (m MongoDBCollectionGetPropertiesResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "analyticalStorageTtl", m.AnalyticalStorageTTL) - populate(objectMap, "createMode", m.CreateMode) - populate(objectMap, "_etag", m.Etag) - populate(objectMap, "id", m.ID) - populate(objectMap, "indexes", m.Indexes) - populate(objectMap, "restoreParameters", m.RestoreParameters) - populate(objectMap, "_rid", m.Rid) - populate(objectMap, "shardKey", m.ShardKey) - populate(objectMap, "_ts", m.Ts) +// MarshalJSON implements the json.Marshaller interface for type MetricDefinitionsListResult. +func (m MetricDefinitionsListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "value", m.Value) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type MongoDBCollectionGetPropertiesResource. -func (m *MongoDBCollectionGetPropertiesResource) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type MetricDefinitionsListResult. +func (m *MetricDefinitionsListResult) 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) @@ -6414,32 +5008,8 @@ func (m *MongoDBCollectionGetPropertiesResource) UnmarshalJSON(data []byte) erro for key, val := range rawMsg { var err error switch key { - case "analyticalStorageTtl": - err = unpopulate(val, "AnalyticalStorageTTL", &m.AnalyticalStorageTTL) - delete(rawMsg, key) - case "createMode": - err = unpopulate(val, "CreateMode", &m.CreateMode) - delete(rawMsg, key) - case "_etag": - err = unpopulate(val, "Etag", &m.Etag) - delete(rawMsg, key) - case "id": - err = unpopulate(val, "ID", &m.ID) - delete(rawMsg, key) - case "indexes": - err = unpopulate(val, "Indexes", &m.Indexes) - delete(rawMsg, key) - case "restoreParameters": - err = unpopulate(val, "RestoreParameters", &m.RestoreParameters) - delete(rawMsg, key) - case "_rid": - err = unpopulate(val, "Rid", &m.Rid) - delete(rawMsg, key) - case "shardKey": - err = unpopulate(val, "ShardKey", &m.ShardKey) - delete(rawMsg, key) - case "_ts": - err = unpopulate(val, "Ts", &m.Ts) + case "value": + err = unpopulate(val, "Value", &m.Value) delete(rawMsg, key) } if err != nil { @@ -6449,21 +5019,15 @@ func (m *MongoDBCollectionGetPropertiesResource) UnmarshalJSON(data []byte) erro return nil } -// MarshalJSON implements the json.Marshaller interface for type MongoDBCollectionGetResults. -func (m MongoDBCollectionGetResults) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", m.ID) - populate(objectMap, "identity", m.Identity) - populate(objectMap, "location", m.Location) - populate(objectMap, "name", m.Name) - populate(objectMap, "properties", m.Properties) - populate(objectMap, "tags", m.Tags) - populate(objectMap, "type", m.Type) +// MarshalJSON implements the json.Marshaller interface for type MetricListResult. +func (m MetricListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "value", m.Value) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type MongoDBCollectionGetResults. -func (m *MongoDBCollectionGetResults) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type MetricListResult. +func (m *MetricListResult) 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) @@ -6471,26 +5035,8 @@ func (m *MongoDBCollectionGetResults) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "id": - err = unpopulate(val, "ID", &m.ID) - delete(rawMsg, key) - case "identity": - err = unpopulate(val, "Identity", &m.Identity) - delete(rawMsg, key) - case "location": - err = unpopulate(val, "Location", &m.Location) - delete(rawMsg, key) - case "name": - err = unpopulate(val, "Name", &m.Name) - delete(rawMsg, key) - case "properties": - err = unpopulate(val, "Properties", &m.Properties) - delete(rawMsg, key) - case "tags": - err = unpopulate(val, "Tags", &m.Tags) - delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &m.Type) + case "value": + err = unpopulate(val, "Value", &m.Value) delete(rawMsg, key) } if err != nil { @@ -6500,15 +5046,16 @@ func (m *MongoDBCollectionGetResults) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type MongoDBCollectionListResult. -func (m MongoDBCollectionListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) +// MarshalJSON implements the json.Marshaller interface for type MetricName. +func (m MetricName) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "localizedValue", m.LocalizedValue) populate(objectMap, "value", m.Value) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type MongoDBCollectionListResult. -func (m *MongoDBCollectionListResult) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type MetricName. +func (m *MetricName) 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) @@ -6516,6 +5063,9 @@ func (m *MongoDBCollectionListResult) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { + case "localizedValue": + err = unpopulate(val, "LocalizedValue", &m.LocalizedValue) + delete(rawMsg, key) case "value": err = unpopulate(val, "Value", &m.Value) delete(rawMsg, key) @@ -6527,20 +5077,20 @@ func (m *MongoDBCollectionListResult) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type MongoDBCollectionResource. -func (m MongoDBCollectionResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "analyticalStorageTtl", m.AnalyticalStorageTTL) - populate(objectMap, "createMode", m.CreateMode) - populate(objectMap, "id", m.ID) - populate(objectMap, "indexes", m.Indexes) - populate(objectMap, "restoreParameters", m.RestoreParameters) - populate(objectMap, "shardKey", m.ShardKey) +// MarshalJSON implements the json.Marshaller interface for type MetricValue. +func (m MetricValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "average", m.Average) + populate(objectMap, "_count", m.Count) + populate(objectMap, "maximum", m.Maximum) + populate(objectMap, "minimum", m.Minimum) + populateTimeRFC3339(objectMap, "timestamp", m.Timestamp) + populate(objectMap, "total", m.Total) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type MongoDBCollectionResource. -func (m *MongoDBCollectionResource) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type MetricValue. +func (m *MetricValue) 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) @@ -6548,23 +5098,23 @@ func (m *MongoDBCollectionResource) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "analyticalStorageTtl": - err = unpopulate(val, "AnalyticalStorageTTL", &m.AnalyticalStorageTTL) + case "average": + err = unpopulate(val, "Average", &m.Average) delete(rawMsg, key) - case "createMode": - err = unpopulate(val, "CreateMode", &m.CreateMode) + case "_count": + err = unpopulate(val, "Count", &m.Count) delete(rawMsg, key) - case "id": - err = unpopulate(val, "ID", &m.ID) + case "maximum": + err = unpopulate(val, "Maximum", &m.Maximum) delete(rawMsg, key) - case "indexes": - err = unpopulate(val, "Indexes", &m.Indexes) + case "minimum": + err = unpopulate(val, "Minimum", &m.Minimum) delete(rawMsg, key) - case "restoreParameters": - err = unpopulate(val, "RestoreParameters", &m.RestoreParameters) + case "timestamp": + err = unpopulateTimeRFC3339(val, "Timestamp", &m.Timestamp) delete(rawMsg, key) - case "shardKey": - err = unpopulate(val, "ShardKey", &m.ShardKey) + case "total": + err = unpopulate(val, "Total", &m.Total) delete(rawMsg, key) } if err != nil { @@ -6574,11 +5124,10 @@ func (m *MongoDBCollectionResource) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type MongoDBDatabaseCreateUpdateParameters. -func (m MongoDBDatabaseCreateUpdateParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) +// MarshalJSON implements the json.Marshaller interface for type MongoDBCollectionCreateUpdateParameters. +func (m MongoDBCollectionCreateUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) populate(objectMap, "id", m.ID) - populate(objectMap, "identity", m.Identity) populate(objectMap, "location", m.Location) populate(objectMap, "name", m.Name) populate(objectMap, "properties", m.Properties) @@ -6587,8 +5136,8 @@ func (m MongoDBDatabaseCreateUpdateParameters) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type MongoDBDatabaseCreateUpdateParameters. -func (m *MongoDBDatabaseCreateUpdateParameters) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type MongoDBCollectionCreateUpdateParameters. +func (m *MongoDBCollectionCreateUpdateParameters) 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) @@ -6599,9 +5148,6 @@ func (m *MongoDBDatabaseCreateUpdateParameters) UnmarshalJSON(data []byte) error case "id": err = unpopulate(val, "ID", &m.ID) delete(rawMsg, key) - case "identity": - err = unpopulate(val, "Identity", &m.Identity) - delete(rawMsg, key) case "location": err = unpopulate(val, "Location", &m.Location) delete(rawMsg, key) @@ -6625,16 +5171,16 @@ func (m *MongoDBDatabaseCreateUpdateParameters) UnmarshalJSON(data []byte) error return nil } -// MarshalJSON implements the json.Marshaller interface for type MongoDBDatabaseCreateUpdateProperties. -func (m MongoDBDatabaseCreateUpdateProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) +// MarshalJSON implements the json.Marshaller interface for type MongoDBCollectionCreateUpdateProperties. +func (m MongoDBCollectionCreateUpdateProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) populate(objectMap, "options", m.Options) populate(objectMap, "resource", m.Resource) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type MongoDBDatabaseCreateUpdateProperties. -func (m *MongoDBDatabaseCreateUpdateProperties) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type MongoDBCollectionCreateUpdateProperties. +func (m *MongoDBCollectionCreateUpdateProperties) 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) @@ -6656,16 +5202,16 @@ func (m *MongoDBDatabaseCreateUpdateProperties) UnmarshalJSON(data []byte) error return nil } -// MarshalJSON implements the json.Marshaller interface for type MongoDBDatabaseGetProperties. -func (m MongoDBDatabaseGetProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) +// MarshalJSON implements the json.Marshaller interface for type MongoDBCollectionGetProperties. +func (m MongoDBCollectionGetProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) populate(objectMap, "options", m.Options) populate(objectMap, "resource", m.Resource) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type MongoDBDatabaseGetProperties. -func (m *MongoDBDatabaseGetProperties) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type MongoDBCollectionGetProperties. +func (m *MongoDBCollectionGetProperties) 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) @@ -6687,16 +5233,16 @@ func (m *MongoDBDatabaseGetProperties) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type MongoDBDatabaseGetPropertiesOptions. -func (m MongoDBDatabaseGetPropertiesOptions) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) +// MarshalJSON implements the json.Marshaller interface for type MongoDBCollectionGetPropertiesOptions. +func (m MongoDBCollectionGetPropertiesOptions) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) populate(objectMap, "autoscaleSettings", m.AutoscaleSettings) populate(objectMap, "throughput", m.Throughput) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type MongoDBDatabaseGetPropertiesOptions. -func (m *MongoDBDatabaseGetPropertiesOptions) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type MongoDBCollectionGetPropertiesOptions. +func (m *MongoDBCollectionGetPropertiesOptions) 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) @@ -6718,20 +5264,21 @@ func (m *MongoDBDatabaseGetPropertiesOptions) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type MongoDBDatabaseGetPropertiesResource. -func (m MongoDBDatabaseGetPropertiesResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "createMode", m.CreateMode) +// MarshalJSON implements the json.Marshaller interface for type MongoDBCollectionGetPropertiesResource. +func (m MongoDBCollectionGetPropertiesResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "analyticalStorageTtl", m.AnalyticalStorageTTL) populate(objectMap, "_etag", m.Etag) populate(objectMap, "id", m.ID) - populate(objectMap, "restoreParameters", m.RestoreParameters) + populate(objectMap, "indexes", m.Indexes) populate(objectMap, "_rid", m.Rid) + populate(objectMap, "shardKey", m.ShardKey) populate(objectMap, "_ts", m.Ts) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type MongoDBDatabaseGetPropertiesResource. -func (m *MongoDBDatabaseGetPropertiesResource) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type MongoDBCollectionGetPropertiesResource. +func (m *MongoDBCollectionGetPropertiesResource) 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) @@ -6739,8 +5286,8 @@ func (m *MongoDBDatabaseGetPropertiesResource) UnmarshalJSON(data []byte) error for key, val := range rawMsg { var err error switch key { - case "createMode": - err = unpopulate(val, "CreateMode", &m.CreateMode) + case "analyticalStorageTtl": + err = unpopulate(val, "AnalyticalStorageTTL", &m.AnalyticalStorageTTL) delete(rawMsg, key) case "_etag": err = unpopulate(val, "Etag", &m.Etag) @@ -6748,12 +5295,15 @@ func (m *MongoDBDatabaseGetPropertiesResource) UnmarshalJSON(data []byte) error case "id": err = unpopulate(val, "ID", &m.ID) delete(rawMsg, key) - case "restoreParameters": - err = unpopulate(val, "RestoreParameters", &m.RestoreParameters) + case "indexes": + err = unpopulate(val, "Indexes", &m.Indexes) delete(rawMsg, key) case "_rid": err = unpopulate(val, "Rid", &m.Rid) delete(rawMsg, key) + case "shardKey": + err = unpopulate(val, "ShardKey", &m.ShardKey) + delete(rawMsg, key) case "_ts": err = unpopulate(val, "Ts", &m.Ts) delete(rawMsg, key) @@ -6765,11 +5315,10 @@ func (m *MongoDBDatabaseGetPropertiesResource) UnmarshalJSON(data []byte) error return nil } -// MarshalJSON implements the json.Marshaller interface for type MongoDBDatabaseGetResults. -func (m MongoDBDatabaseGetResults) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) +// MarshalJSON implements the json.Marshaller interface for type MongoDBCollectionGetResults. +func (m MongoDBCollectionGetResults) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) populate(objectMap, "id", m.ID) - populate(objectMap, "identity", m.Identity) populate(objectMap, "location", m.Location) populate(objectMap, "name", m.Name) populate(objectMap, "properties", m.Properties) @@ -6778,8 +5327,8 @@ func (m MongoDBDatabaseGetResults) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type MongoDBDatabaseGetResults. -func (m *MongoDBDatabaseGetResults) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type MongoDBCollectionGetResults. +func (m *MongoDBCollectionGetResults) 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) @@ -6790,9 +5339,6 @@ func (m *MongoDBDatabaseGetResults) UnmarshalJSON(data []byte) error { case "id": err = unpopulate(val, "ID", &m.ID) delete(rawMsg, key) - case "identity": - err = unpopulate(val, "Identity", &m.Identity) - delete(rawMsg, key) case "location": err = unpopulate(val, "Location", &m.Location) delete(rawMsg, key) @@ -6816,15 +5362,15 @@ func (m *MongoDBDatabaseGetResults) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type MongoDBDatabaseListResult. -func (m MongoDBDatabaseListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) +// MarshalJSON implements the json.Marshaller interface for type MongoDBCollectionListResult. +func (m MongoDBCollectionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) populate(objectMap, "value", m.Value) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type MongoDBDatabaseListResult. -func (m *MongoDBDatabaseListResult) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type MongoDBCollectionListResult. +func (m *MongoDBCollectionListResult) 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) @@ -6843,17 +5389,18 @@ func (m *MongoDBDatabaseListResult) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type MongoDBDatabaseResource. -func (m MongoDBDatabaseResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "createMode", m.CreateMode) +// MarshalJSON implements the json.Marshaller interface for type MongoDBCollectionResource. +func (m MongoDBCollectionResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "analyticalStorageTtl", m.AnalyticalStorageTTL) populate(objectMap, "id", m.ID) - populate(objectMap, "restoreParameters", m.RestoreParameters) + populate(objectMap, "indexes", m.Indexes) + populate(objectMap, "shardKey", m.ShardKey) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type MongoDBDatabaseResource. -func (m *MongoDBDatabaseResource) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type MongoDBCollectionResource. +func (m *MongoDBCollectionResource) 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) @@ -6861,14 +5408,17 @@ func (m *MongoDBDatabaseResource) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "createMode": - err = unpopulate(val, "CreateMode", &m.CreateMode) + case "analyticalStorageTtl": + err = unpopulate(val, "AnalyticalStorageTTL", &m.AnalyticalStorageTTL) delete(rawMsg, key) case "id": err = unpopulate(val, "ID", &m.ID) delete(rawMsg, key) - case "restoreParameters": - err = unpopulate(val, "RestoreParameters", &m.RestoreParameters) + case "indexes": + err = unpopulate(val, "Indexes", &m.Indexes) + delete(rawMsg, key) + case "shardKey": + err = unpopulate(val, "ShardKey", &m.ShardKey) delete(rawMsg, key) } if err != nil { @@ -6878,16 +5428,20 @@ func (m *MongoDBDatabaseResource) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type MongoIndex. -func (m MongoIndex) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "key", m.Key) - populate(objectMap, "options", m.Options) +// MarshalJSON implements the json.Marshaller interface for type MongoDBDatabaseCreateUpdateParameters. +func (m MongoDBDatabaseCreateUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", m.ID) + populate(objectMap, "location", m.Location) + populate(objectMap, "name", m.Name) + populate(objectMap, "properties", m.Properties) + populate(objectMap, "tags", m.Tags) + populate(objectMap, "type", m.Type) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type MongoIndex. -func (m *MongoIndex) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type MongoDBDatabaseCreateUpdateParameters. +func (m *MongoDBDatabaseCreateUpdateParameters) 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) @@ -6895,11 +5449,23 @@ func (m *MongoIndex) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "key": - err = unpopulate(val, "Key", &m.Key) + case "id": + err = unpopulate(val, "ID", &m.ID) delete(rawMsg, key) - case "options": - err = unpopulate(val, "Options", &m.Options) + case "location": + err = unpopulate(val, "Location", &m.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &m.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &m.Properties) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &m.Tags) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &m.Type) delete(rawMsg, key) } if err != nil { @@ -6909,15 +5475,16 @@ func (m *MongoIndex) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type MongoIndexKeys. -func (m MongoIndexKeys) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "keys", m.Keys) +// MarshalJSON implements the json.Marshaller interface for type MongoDBDatabaseCreateUpdateProperties. +func (m MongoDBDatabaseCreateUpdateProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "options", m.Options) + populate(objectMap, "resource", m.Resource) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type MongoIndexKeys. -func (m *MongoIndexKeys) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type MongoDBDatabaseCreateUpdateProperties. +func (m *MongoDBDatabaseCreateUpdateProperties) 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) @@ -6925,8 +5492,11 @@ func (m *MongoIndexKeys) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "keys": - err = unpopulate(val, "Keys", &m.Keys) + case "options": + err = unpopulate(val, "Options", &m.Options) + delete(rawMsg, key) + case "resource": + err = unpopulate(val, "Resource", &m.Resource) delete(rawMsg, key) } if err != nil { @@ -6936,16 +5506,16 @@ func (m *MongoIndexKeys) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type MongoIndexOptions. -func (m MongoIndexOptions) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "expireAfterSeconds", m.ExpireAfterSeconds) - populate(objectMap, "unique", m.Unique) +// MarshalJSON implements the json.Marshaller interface for type MongoDBDatabaseGetProperties. +func (m MongoDBDatabaseGetProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "options", m.Options) + populate(objectMap, "resource", m.Resource) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type MongoIndexOptions. -func (m *MongoIndexOptions) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type MongoDBDatabaseGetProperties. +func (m *MongoDBDatabaseGetProperties) 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) @@ -6953,11 +5523,11 @@ func (m *MongoIndexOptions) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "expireAfterSeconds": - err = unpopulate(val, "ExpireAfterSeconds", &m.ExpireAfterSeconds) + case "options": + err = unpopulate(val, "Options", &m.Options) delete(rawMsg, key) - case "unique": - err = unpopulate(val, "Unique", &m.Unique) + case "resource": + err = unpopulate(val, "Resource", &m.Resource) delete(rawMsg, key) } if err != nil { @@ -6967,15 +5537,16 @@ func (m *MongoIndexOptions) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type MongoRoleDefinitionCreateUpdateParameters. -func (m MongoRoleDefinitionCreateUpdateParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "properties", m.Properties) +// MarshalJSON implements the json.Marshaller interface for type MongoDBDatabaseGetPropertiesOptions. +func (m MongoDBDatabaseGetPropertiesOptions) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "autoscaleSettings", m.AutoscaleSettings) + populate(objectMap, "throughput", m.Throughput) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type MongoRoleDefinitionCreateUpdateParameters. -func (m *MongoRoleDefinitionCreateUpdateParameters) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type MongoDBDatabaseGetPropertiesOptions. +func (m *MongoDBDatabaseGetPropertiesOptions) 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) @@ -6983,8 +5554,11 @@ func (m *MongoRoleDefinitionCreateUpdateParameters) UnmarshalJSON(data []byte) e for key, val := range rawMsg { var err error switch key { - case "properties": - err = unpopulate(val, "Properties", &m.Properties) + case "autoscaleSettings": + err = unpopulate(val, "AutoscaleSettings", &m.AutoscaleSettings) + delete(rawMsg, key) + case "throughput": + err = unpopulate(val, "Throughput", &m.Throughput) delete(rawMsg, key) } if err != nil { @@ -6994,18 +5568,18 @@ func (m *MongoRoleDefinitionCreateUpdateParameters) UnmarshalJSON(data []byte) e return nil } -// MarshalJSON implements the json.Marshaller interface for type MongoRoleDefinitionGetResults. -func (m MongoRoleDefinitionGetResults) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) +// MarshalJSON implements the json.Marshaller interface for type MongoDBDatabaseGetPropertiesResource. +func (m MongoDBDatabaseGetPropertiesResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "_etag", m.Etag) populate(objectMap, "id", m.ID) - populate(objectMap, "name", m.Name) - populate(objectMap, "properties", m.Properties) - populate(objectMap, "type", m.Type) + populate(objectMap, "_rid", m.Rid) + populate(objectMap, "_ts", m.Ts) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type MongoRoleDefinitionGetResults. -func (m *MongoRoleDefinitionGetResults) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type MongoDBDatabaseGetPropertiesResource. +func (m *MongoDBDatabaseGetPropertiesResource) 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) @@ -7013,44 +5587,17 @@ func (m *MongoRoleDefinitionGetResults) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { + case "_etag": + err = unpopulate(val, "Etag", &m.Etag) + delete(rawMsg, key) case "id": err = unpopulate(val, "ID", &m.ID) delete(rawMsg, key) - case "name": - err = unpopulate(val, "Name", &m.Name) - delete(rawMsg, key) - case "properties": - err = unpopulate(val, "Properties", &m.Properties) - delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &m.Type) + case "_rid": + err = unpopulate(val, "Rid", &m.Rid) 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 MongoRoleDefinitionListResult. -func (m MongoRoleDefinitionListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "value", m.Value) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type MongoRoleDefinitionListResult. -func (m *MongoRoleDefinitionListResult) 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 "value": - err = unpopulate(val, "Value", &m.Value) + case "_ts": + err = unpopulate(val, "Ts", &m.Ts) delete(rawMsg, key) } if err != nil { @@ -7060,19 +5607,20 @@ func (m *MongoRoleDefinitionListResult) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type MongoRoleDefinitionResource. -func (m MongoRoleDefinitionResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "databaseName", m.DatabaseName) - populate(objectMap, "privileges", m.Privileges) - populate(objectMap, "roleName", m.RoleName) - populate(objectMap, "roles", m.Roles) +// MarshalJSON implements the json.Marshaller interface for type MongoDBDatabaseGetResults. +func (m MongoDBDatabaseGetResults) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", m.ID) + populate(objectMap, "location", m.Location) + populate(objectMap, "name", m.Name) + populate(objectMap, "properties", m.Properties) + populate(objectMap, "tags", m.Tags) populate(objectMap, "type", m.Type) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type MongoRoleDefinitionResource. -func (m *MongoRoleDefinitionResource) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type MongoDBDatabaseGetResults. +func (m *MongoDBDatabaseGetResults) 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) @@ -7080,17 +5628,20 @@ func (m *MongoRoleDefinitionResource) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "databaseName": - err = unpopulate(val, "DatabaseName", &m.DatabaseName) + case "id": + err = unpopulate(val, "ID", &m.ID) delete(rawMsg, key) - case "privileges": - err = unpopulate(val, "Privileges", &m.Privileges) + case "location": + err = unpopulate(val, "Location", &m.Location) delete(rawMsg, key) - case "roleName": - err = unpopulate(val, "RoleName", &m.RoleName) + case "name": + err = unpopulate(val, "Name", &m.Name) delete(rawMsg, key) - case "roles": - err = unpopulate(val, "Roles", &m.Roles) + case "properties": + err = unpopulate(val, "Properties", &m.Properties) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &m.Tags) delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &m.Type) @@ -7103,15 +5654,15 @@ func (m *MongoRoleDefinitionResource) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type MongoUserDefinitionCreateUpdateParameters. -func (m MongoUserDefinitionCreateUpdateParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "properties", m.Properties) +// MarshalJSON implements the json.Marshaller interface for type MongoDBDatabaseListResult. +func (m MongoDBDatabaseListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "value", m.Value) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type MongoUserDefinitionCreateUpdateParameters. -func (m *MongoUserDefinitionCreateUpdateParameters) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type MongoDBDatabaseListResult. +func (m *MongoDBDatabaseListResult) 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) @@ -7119,8 +5670,8 @@ func (m *MongoUserDefinitionCreateUpdateParameters) UnmarshalJSON(data []byte) e for key, val := range rawMsg { var err error switch key { - case "properties": - err = unpopulate(val, "Properties", &m.Properties) + case "value": + err = unpopulate(val, "Value", &m.Value) delete(rawMsg, key) } if err != nil { @@ -7130,18 +5681,15 @@ func (m *MongoUserDefinitionCreateUpdateParameters) UnmarshalJSON(data []byte) e return nil } -// MarshalJSON implements the json.Marshaller interface for type MongoUserDefinitionGetResults. -func (m MongoUserDefinitionGetResults) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) +// MarshalJSON implements the json.Marshaller interface for type MongoDBDatabaseResource. +func (m MongoDBDatabaseResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) populate(objectMap, "id", m.ID) - populate(objectMap, "name", m.Name) - populate(objectMap, "properties", m.Properties) - populate(objectMap, "type", m.Type) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type MongoUserDefinitionGetResults. -func (m *MongoUserDefinitionGetResults) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type MongoDBDatabaseResource. +func (m *MongoDBDatabaseResource) 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) @@ -7152,15 +5700,6 @@ func (m *MongoUserDefinitionGetResults) UnmarshalJSON(data []byte) error { case "id": err = unpopulate(val, "ID", &m.ID) delete(rawMsg, key) - case "name": - err = unpopulate(val, "Name", &m.Name) - delete(rawMsg, key) - case "properties": - err = unpopulate(val, "Properties", &m.Properties) - delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &m.Type) - delete(rawMsg, key) } if err != nil { return fmt.Errorf("unmarshalling type %T: %v", m, err) @@ -7169,15 +5708,16 @@ func (m *MongoUserDefinitionGetResults) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type MongoUserDefinitionListResult. -func (m MongoUserDefinitionListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "value", m.Value) +// MarshalJSON implements the json.Marshaller interface for type MongoIndex. +func (m MongoIndex) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "key", m.Key) + populate(objectMap, "options", m.Options) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type MongoUserDefinitionListResult. -func (m *MongoUserDefinitionListResult) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type MongoIndex. +func (m *MongoIndex) 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) @@ -7185,8 +5725,11 @@ func (m *MongoUserDefinitionListResult) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "value": - err = unpopulate(val, "Value", &m.Value) + case "key": + err = unpopulate(val, "Key", &m.Key) + delete(rawMsg, key) + case "options": + err = unpopulate(val, "Options", &m.Options) delete(rawMsg, key) } if err != nil { @@ -7196,20 +5739,15 @@ func (m *MongoUserDefinitionListResult) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type MongoUserDefinitionResource. -func (m MongoUserDefinitionResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "customData", m.CustomData) - populate(objectMap, "databaseName", m.DatabaseName) - populate(objectMap, "mechanisms", m.Mechanisms) - populate(objectMap, "password", m.Password) - populate(objectMap, "roles", m.Roles) - populate(objectMap, "userName", m.UserName) +// MarshalJSON implements the json.Marshaller interface for type MongoIndexKeys. +func (m MongoIndexKeys) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "keys", m.Keys) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type MongoUserDefinitionResource. -func (m *MongoUserDefinitionResource) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type MongoIndexKeys. +func (m *MongoIndexKeys) 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) @@ -7217,23 +5755,8 @@ func (m *MongoUserDefinitionResource) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "customData": - err = unpopulate(val, "CustomData", &m.CustomData) - delete(rawMsg, key) - case "databaseName": - err = unpopulate(val, "DatabaseName", &m.DatabaseName) - delete(rawMsg, key) - case "mechanisms": - err = unpopulate(val, "Mechanisms", &m.Mechanisms) - delete(rawMsg, key) - case "password": - err = unpopulate(val, "Password", &m.Password) - delete(rawMsg, key) - case "roles": - err = unpopulate(val, "Roles", &m.Roles) - delete(rawMsg, key) - case "userName": - err = unpopulate(val, "UserName", &m.UserName) + case "keys": + err = unpopulate(val, "Keys", &m.Keys) delete(rawMsg, key) } if err != nil { @@ -7243,656 +5766,624 @@ func (m *MongoUserDefinitionResource) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type NotebookWorkspace. -func (n NotebookWorkspace) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", n.ID) - populate(objectMap, "name", n.Name) - populate(objectMap, "properties", n.Properties) - populate(objectMap, "type", n.Type) +// MarshalJSON implements the json.Marshaller interface for type MongoIndexOptions. +func (m MongoIndexOptions) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "expireAfterSeconds", m.ExpireAfterSeconds) + populate(objectMap, "unique", m.Unique) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type NotebookWorkspace. -func (n *NotebookWorkspace) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type MongoIndexOptions. +func (m *MongoIndexOptions) 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", n, err) + return fmt.Errorf("unmarshalling type %T: %v", m, err) } for key, val := range rawMsg { var err error switch key { - case "id": - err = unpopulate(val, "ID", &n.ID) - delete(rawMsg, key) - case "name": - err = unpopulate(val, "Name", &n.Name) - delete(rawMsg, key) - case "properties": - err = unpopulate(val, "Properties", &n.Properties) + case "expireAfterSeconds": + err = unpopulate(val, "ExpireAfterSeconds", &m.ExpireAfterSeconds) delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &n.Type) + case "unique": + err = unpopulate(val, "Unique", &m.Unique) delete(rawMsg, key) } if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", n, err) + return fmt.Errorf("unmarshalling type %T: %v", m, err) } } return nil } -// MarshalJSON implements the json.Marshaller interface for type NotebookWorkspaceConnectionInfoResult. -func (n NotebookWorkspaceConnectionInfoResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "authToken", n.AuthToken) - populate(objectMap, "notebookServerEndpoint", n.NotebookServerEndpoint) +// MarshalJSON implements the json.Marshaller interface for type MongoRoleDefinitionCreateUpdateParameters. +func (m MongoRoleDefinitionCreateUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "properties", m.Properties) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type NotebookWorkspaceConnectionInfoResult. -func (n *NotebookWorkspaceConnectionInfoResult) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type MongoRoleDefinitionCreateUpdateParameters. +func (m *MongoRoleDefinitionCreateUpdateParameters) 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", n, err) + return fmt.Errorf("unmarshalling type %T: %v", m, err) } for key, val := range rawMsg { var err error switch key { - case "authToken": - err = unpopulate(val, "AuthToken", &n.AuthToken) - delete(rawMsg, key) - case "notebookServerEndpoint": - err = unpopulate(val, "NotebookServerEndpoint", &n.NotebookServerEndpoint) + case "properties": + err = unpopulate(val, "Properties", &m.Properties) delete(rawMsg, key) } if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", n, err) + return fmt.Errorf("unmarshalling type %T: %v", m, err) } } return nil } -// MarshalJSON implements the json.Marshaller interface for type NotebookWorkspaceCreateUpdateParameters. -func (n NotebookWorkspaceCreateUpdateParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", n.ID) - populate(objectMap, "name", n.Name) - populate(objectMap, "type", n.Type) +// MarshalJSON implements the json.Marshaller interface for type MongoRoleDefinitionGetResults. +func (m MongoRoleDefinitionGetResults) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", m.ID) + populate(objectMap, "name", m.Name) + populate(objectMap, "properties", m.Properties) + populate(objectMap, "type", m.Type) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type NotebookWorkspaceCreateUpdateParameters. -func (n *NotebookWorkspaceCreateUpdateParameters) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type MongoRoleDefinitionGetResults. +func (m *MongoRoleDefinitionGetResults) 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", n, err) + return fmt.Errorf("unmarshalling type %T: %v", m, err) } for key, val := range rawMsg { var err error switch key { case "id": - err = unpopulate(val, "ID", &n.ID) + err = unpopulate(val, "ID", &m.ID) delete(rawMsg, key) case "name": - err = unpopulate(val, "Name", &n.Name) + err = unpopulate(val, "Name", &m.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &m.Properties) delete(rawMsg, key) case "type": - err = unpopulate(val, "Type", &n.Type) + err = unpopulate(val, "Type", &m.Type) delete(rawMsg, key) } if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", n, err) + return fmt.Errorf("unmarshalling type %T: %v", m, err) } } return nil } -// MarshalJSON implements the json.Marshaller interface for type NotebookWorkspaceListResult. -func (n NotebookWorkspaceListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "value", n.Value) +// MarshalJSON implements the json.Marshaller interface for type MongoRoleDefinitionListResult. +func (m MongoRoleDefinitionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "value", m.Value) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type NotebookWorkspaceListResult. -func (n *NotebookWorkspaceListResult) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type MongoRoleDefinitionListResult. +func (m *MongoRoleDefinitionListResult) 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", n, err) + return fmt.Errorf("unmarshalling type %T: %v", m, err) } for key, val := range rawMsg { var err error switch key { case "value": - err = unpopulate(val, "Value", &n.Value) + err = unpopulate(val, "Value", &m.Value) delete(rawMsg, key) } if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", n, err) + return fmt.Errorf("unmarshalling type %T: %v", m, err) } } return nil } -// MarshalJSON implements the json.Marshaller interface for type NotebookWorkspaceProperties. -func (n NotebookWorkspaceProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "notebookServerEndpoint", n.NotebookServerEndpoint) - populate(objectMap, "status", n.Status) +// MarshalJSON implements the json.Marshaller interface for type MongoRoleDefinitionResource. +func (m MongoRoleDefinitionResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "databaseName", m.DatabaseName) + populate(objectMap, "privileges", m.Privileges) + populate(objectMap, "roleName", m.RoleName) + populate(objectMap, "roles", m.Roles) + populate(objectMap, "type", m.Type) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type NotebookWorkspaceProperties. -func (n *NotebookWorkspaceProperties) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type MongoRoleDefinitionResource. +func (m *MongoRoleDefinitionResource) 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", n, err) + return fmt.Errorf("unmarshalling type %T: %v", m, err) } for key, val := range rawMsg { var err error switch key { - case "notebookServerEndpoint": - err = unpopulate(val, "NotebookServerEndpoint", &n.NotebookServerEndpoint) + case "databaseName": + err = unpopulate(val, "DatabaseName", &m.DatabaseName) delete(rawMsg, key) - case "status": - err = unpopulate(val, "Status", &n.Status) + case "privileges": + err = unpopulate(val, "Privileges", &m.Privileges) + delete(rawMsg, key) + case "roleName": + err = unpopulate(val, "RoleName", &m.RoleName) + delete(rawMsg, key) + case "roles": + err = unpopulate(val, "Roles", &m.Roles) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &m.Type) delete(rawMsg, key) } if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", n, err) + return fmt.Errorf("unmarshalling type %T: %v", m, err) } } return nil } -// MarshalJSON implements the json.Marshaller interface for type Operation. -func (o Operation) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "display", o.Display) - populate(objectMap, "name", o.Name) +// MarshalJSON implements the json.Marshaller interface for type MongoUserDefinitionCreateUpdateParameters. +func (m MongoUserDefinitionCreateUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "properties", m.Properties) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type Operation. -func (o *Operation) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type MongoUserDefinitionCreateUpdateParameters. +func (m *MongoUserDefinitionCreateUpdateParameters) 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", o, err) + return fmt.Errorf("unmarshalling type %T: %v", m, err) } for key, val := range rawMsg { var err error switch key { - case "display": - err = unpopulate(val, "Display", &o.Display) - delete(rawMsg, key) - case "name": - err = unpopulate(val, "Name", &o.Name) + case "properties": + err = unpopulate(val, "Properties", &m.Properties) delete(rawMsg, key) } if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", o, err) + return fmt.Errorf("unmarshalling type %T: %v", m, err) } } return nil } -// MarshalJSON implements the json.Marshaller interface for type OperationDisplay. -func (o OperationDisplay) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "Description", o.Description) - populate(objectMap, "Operation", o.Operation) - populate(objectMap, "Provider", o.Provider) - populate(objectMap, "Resource", o.Resource) +// MarshalJSON implements the json.Marshaller interface for type MongoUserDefinitionGetResults. +func (m MongoUserDefinitionGetResults) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", m.ID) + populate(objectMap, "name", m.Name) + populate(objectMap, "properties", m.Properties) + populate(objectMap, "type", m.Type) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type OperationDisplay. -func (o *OperationDisplay) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type MongoUserDefinitionGetResults. +func (m *MongoUserDefinitionGetResults) 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", o, err) + return fmt.Errorf("unmarshalling type %T: %v", m, err) } for key, val := range rawMsg { var err error switch key { - case "Description": - err = unpopulate(val, "Description", &o.Description) + case "id": + err = unpopulate(val, "ID", &m.ID) delete(rawMsg, key) - case "Operation": - err = unpopulate(val, "Operation", &o.Operation) + case "name": + err = unpopulate(val, "Name", &m.Name) delete(rawMsg, key) - case "Provider": - err = unpopulate(val, "Provider", &o.Provider) + case "properties": + err = unpopulate(val, "Properties", &m.Properties) delete(rawMsg, key) - case "Resource": - err = unpopulate(val, "Resource", &o.Resource) + case "type": + err = unpopulate(val, "Type", &m.Type) delete(rawMsg, key) } if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", o, err) + return fmt.Errorf("unmarshalling type %T: %v", m, err) } } return nil } -// MarshalJSON implements the json.Marshaller interface for type OperationListResult. -func (o OperationListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "nextLink", o.NextLink) - populate(objectMap, "value", o.Value) +// MarshalJSON implements the json.Marshaller interface for type MongoUserDefinitionListResult. +func (m MongoUserDefinitionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "value", m.Value) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type OperationListResult. -func (o *OperationListResult) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type MongoUserDefinitionListResult. +func (m *MongoUserDefinitionListResult) 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", o, err) + return fmt.Errorf("unmarshalling type %T: %v", m, err) } for key, val := range rawMsg { var err error switch key { - case "nextLink": - err = unpopulate(val, "NextLink", &o.NextLink) - delete(rawMsg, key) case "value": - err = unpopulate(val, "Value", &o.Value) + err = unpopulate(val, "Value", &m.Value) delete(rawMsg, key) } if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", o, err) + return fmt.Errorf("unmarshalling type %T: %v", m, err) } } return nil } -// MarshalJSON implements the json.Marshaller interface for type OptionsResource. -func (o OptionsResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "autoscaleSettings", o.AutoscaleSettings) - populate(objectMap, "throughput", o.Throughput) +// MarshalJSON implements the json.Marshaller interface for type MongoUserDefinitionResource. +func (m MongoUserDefinitionResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "customData", m.CustomData) + populate(objectMap, "databaseName", m.DatabaseName) + populate(objectMap, "mechanisms", m.Mechanisms) + populate(objectMap, "password", m.Password) + populate(objectMap, "roles", m.Roles) + populate(objectMap, "userName", m.UserName) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type OptionsResource. -func (o *OptionsResource) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type MongoUserDefinitionResource. +func (m *MongoUserDefinitionResource) 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", o, err) + return fmt.Errorf("unmarshalling type %T: %v", m, err) } for key, val := range rawMsg { var err error switch key { - case "autoscaleSettings": - err = unpopulate(val, "AutoscaleSettings", &o.AutoscaleSettings) + case "customData": + err = unpopulate(val, "CustomData", &m.CustomData) delete(rawMsg, key) - case "throughput": - err = unpopulate(val, "Throughput", &o.Throughput) + case "databaseName": + err = unpopulate(val, "DatabaseName", &m.DatabaseName) + delete(rawMsg, key) + case "mechanisms": + err = unpopulate(val, "Mechanisms", &m.Mechanisms) + delete(rawMsg, key) + case "password": + err = unpopulate(val, "Password", &m.Password) + delete(rawMsg, key) + case "roles": + err = unpopulate(val, "Roles", &m.Roles) + delete(rawMsg, key) + case "userName": + err = unpopulate(val, "UserName", &m.UserName) delete(rawMsg, key) } if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", o, err) + return fmt.Errorf("unmarshalling type %T: %v", m, err) } } return nil } -// MarshalJSON implements the json.Marshaller interface for type PartitionMetric. -func (p PartitionMetric) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populateTimeRFC3339(objectMap, "endTime", p.EndTime) - populate(objectMap, "metricValues", p.MetricValues) - populate(objectMap, "name", p.Name) - populate(objectMap, "partitionId", p.PartitionID) - populate(objectMap, "partitionKeyRangeId", p.PartitionKeyRangeID) - populateTimeRFC3339(objectMap, "startTime", p.StartTime) - populate(objectMap, "timeGrain", p.TimeGrain) - populate(objectMap, "unit", p.Unit) +// MarshalJSON implements the json.Marshaller interface for type NotebookWorkspace. +func (n NotebookWorkspace) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", n.ID) + populate(objectMap, "name", n.Name) + populate(objectMap, "properties", n.Properties) + populate(objectMap, "type", n.Type) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type PartitionMetric. -func (p *PartitionMetric) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type NotebookWorkspace. +func (n *NotebookWorkspace) 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", p, err) + return fmt.Errorf("unmarshalling type %T: %v", n, err) } for key, val := range rawMsg { var err error switch key { - case "endTime": - err = unpopulateTimeRFC3339(val, "EndTime", &p.EndTime) - delete(rawMsg, key) - case "metricValues": - err = unpopulate(val, "MetricValues", &p.MetricValues) + case "id": + err = unpopulate(val, "ID", &n.ID) delete(rawMsg, key) case "name": - err = unpopulate(val, "Name", &p.Name) - delete(rawMsg, key) - case "partitionId": - err = unpopulate(val, "PartitionID", &p.PartitionID) - delete(rawMsg, key) - case "partitionKeyRangeId": - err = unpopulate(val, "PartitionKeyRangeID", &p.PartitionKeyRangeID) - delete(rawMsg, key) - case "startTime": - err = unpopulateTimeRFC3339(val, "StartTime", &p.StartTime) + err = unpopulate(val, "Name", &n.Name) delete(rawMsg, key) - case "timeGrain": - err = unpopulate(val, "TimeGrain", &p.TimeGrain) + case "properties": + err = unpopulate(val, "Properties", &n.Properties) delete(rawMsg, key) - case "unit": - err = unpopulate(val, "Unit", &p.Unit) + case "type": + err = unpopulate(val, "Type", &n.Type) delete(rawMsg, key) } if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", p, err) + return fmt.Errorf("unmarshalling type %T: %v", n, err) } } return nil } -// MarshalJSON implements the json.Marshaller interface for type PartitionMetricListResult. -func (p PartitionMetricListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "value", p.Value) +// MarshalJSON implements the json.Marshaller interface for type NotebookWorkspaceConnectionInfoResult. +func (n NotebookWorkspaceConnectionInfoResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "authToken", n.AuthToken) + populate(objectMap, "notebookServerEndpoint", n.NotebookServerEndpoint) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type PartitionMetricListResult. -func (p *PartitionMetricListResult) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type NotebookWorkspaceConnectionInfoResult. +func (n *NotebookWorkspaceConnectionInfoResult) 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", p, err) + return fmt.Errorf("unmarshalling type %T: %v", n, err) } for key, val := range rawMsg { var err error switch key { - case "value": - err = unpopulate(val, "Value", &p.Value) + case "authToken": + err = unpopulate(val, "AuthToken", &n.AuthToken) + delete(rawMsg, key) + case "notebookServerEndpoint": + err = unpopulate(val, "NotebookServerEndpoint", &n.NotebookServerEndpoint) delete(rawMsg, key) } if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", p, err) + return fmt.Errorf("unmarshalling type %T: %v", n, err) } } return nil } -// MarshalJSON implements the json.Marshaller interface for type PartitionUsage. -func (p PartitionUsage) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "currentValue", p.CurrentValue) - populate(objectMap, "limit", p.Limit) - populate(objectMap, "name", p.Name) - populate(objectMap, "partitionId", p.PartitionID) - populate(objectMap, "partitionKeyRangeId", p.PartitionKeyRangeID) - populate(objectMap, "quotaPeriod", p.QuotaPeriod) - populate(objectMap, "unit", p.Unit) +// MarshalJSON implements the json.Marshaller interface for type NotebookWorkspaceCreateUpdateParameters. +func (n NotebookWorkspaceCreateUpdateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", n.ID) + populate(objectMap, "name", n.Name) + populate(objectMap, "type", n.Type) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type PartitionUsage. -func (p *PartitionUsage) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type NotebookWorkspaceCreateUpdateParameters. +func (n *NotebookWorkspaceCreateUpdateParameters) 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", p, err) + return fmt.Errorf("unmarshalling type %T: %v", n, err) } for key, val := range rawMsg { var err error switch key { - case "currentValue": - err = unpopulate(val, "CurrentValue", &p.CurrentValue) - delete(rawMsg, key) - case "limit": - err = unpopulate(val, "Limit", &p.Limit) + case "id": + err = unpopulate(val, "ID", &n.ID) delete(rawMsg, key) case "name": - err = unpopulate(val, "Name", &p.Name) - delete(rawMsg, key) - case "partitionId": - err = unpopulate(val, "PartitionID", &p.PartitionID) - delete(rawMsg, key) - case "partitionKeyRangeId": - err = unpopulate(val, "PartitionKeyRangeID", &p.PartitionKeyRangeID) - delete(rawMsg, key) - case "quotaPeriod": - err = unpopulate(val, "QuotaPeriod", &p.QuotaPeriod) + err = unpopulate(val, "Name", &n.Name) delete(rawMsg, key) - case "unit": - err = unpopulate(val, "Unit", &p.Unit) + case "type": + err = unpopulate(val, "Type", &n.Type) delete(rawMsg, key) } if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", p, err) + return fmt.Errorf("unmarshalling type %T: %v", n, err) } } return nil } -// MarshalJSON implements the json.Marshaller interface for type PartitionUsagesResult. -func (p PartitionUsagesResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "value", p.Value) +// MarshalJSON implements the json.Marshaller interface for type NotebookWorkspaceListResult. +func (n NotebookWorkspaceListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "value", n.Value) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type PartitionUsagesResult. -func (p *PartitionUsagesResult) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type NotebookWorkspaceListResult. +func (n *NotebookWorkspaceListResult) 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", p, err) + return fmt.Errorf("unmarshalling type %T: %v", n, err) } for key, val := range rawMsg { var err error switch key { case "value": - err = unpopulate(val, "Value", &p.Value) + err = unpopulate(val, "Value", &n.Value) delete(rawMsg, key) } if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", p, err) + return fmt.Errorf("unmarshalling type %T: %v", n, err) } } return nil } -// MarshalJSON implements the json.Marshaller interface for type PercentileMetric. -func (p PercentileMetric) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populateTimeRFC3339(objectMap, "endTime", p.EndTime) - populate(objectMap, "metricValues", p.MetricValues) - populate(objectMap, "name", p.Name) - populateTimeRFC3339(objectMap, "startTime", p.StartTime) - populate(objectMap, "timeGrain", p.TimeGrain) - populate(objectMap, "unit", p.Unit) +// MarshalJSON implements the json.Marshaller interface for type NotebookWorkspaceProperties. +func (n NotebookWorkspaceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "notebookServerEndpoint", n.NotebookServerEndpoint) + populate(objectMap, "status", n.Status) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type PercentileMetric. -func (p *PercentileMetric) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type NotebookWorkspaceProperties. +func (n *NotebookWorkspaceProperties) 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", p, err) + return fmt.Errorf("unmarshalling type %T: %v", n, err) } for key, val := range rawMsg { var err error switch key { - case "endTime": - err = unpopulateTimeRFC3339(val, "EndTime", &p.EndTime) + case "notebookServerEndpoint": + err = unpopulate(val, "NotebookServerEndpoint", &n.NotebookServerEndpoint) delete(rawMsg, key) - case "metricValues": - err = unpopulate(val, "MetricValues", &p.MetricValues) + case "status": + err = unpopulate(val, "Status", &n.Status) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", n, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type Operation. +func (o Operation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "display", o.Display) + populate(objectMap, "name", o.Name) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Operation. +func (o *Operation) 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", o, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "display": + err = unpopulate(val, "Display", &o.Display) delete(rawMsg, key) case "name": - err = unpopulate(val, "Name", &p.Name) - delete(rawMsg, key) - case "startTime": - err = unpopulateTimeRFC3339(val, "StartTime", &p.StartTime) - delete(rawMsg, key) - case "timeGrain": - err = unpopulate(val, "TimeGrain", &p.TimeGrain) - delete(rawMsg, key) - case "unit": - err = unpopulate(val, "Unit", &p.Unit) + err = unpopulate(val, "Name", &o.Name) delete(rawMsg, key) } if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", p, err) + return fmt.Errorf("unmarshalling type %T: %v", o, err) } } return nil } -// MarshalJSON implements the json.Marshaller interface for type PercentileMetricListResult. -func (p PercentileMetricListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "value", p.Value) +// MarshalJSON implements the json.Marshaller interface for type OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "Description", o.Description) + populate(objectMap, "Operation", o.Operation) + populate(objectMap, "Provider", o.Provider) + populate(objectMap, "Resource", o.Resource) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type PercentileMetricListResult. -func (p *PercentileMetricListResult) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type OperationDisplay. +func (o *OperationDisplay) 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", p, err) + return fmt.Errorf("unmarshalling type %T: %v", o, err) } for key, val := range rawMsg { var err error switch key { - case "value": - err = unpopulate(val, "Value", &p.Value) + case "Description": + err = unpopulate(val, "Description", &o.Description) + delete(rawMsg, key) + case "Operation": + err = unpopulate(val, "Operation", &o.Operation) + delete(rawMsg, key) + case "Provider": + err = unpopulate(val, "Provider", &o.Provider) + delete(rawMsg, key) + case "Resource": + err = unpopulate(val, "Resource", &o.Resource) delete(rawMsg, key) } if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", p, err) + return fmt.Errorf("unmarshalling type %T: %v", o, err) } } return nil } -// MarshalJSON implements the json.Marshaller interface for type PercentileMetricValue. -func (p PercentileMetricValue) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "average", p.Average) - populate(objectMap, "_count", p.Count) - populate(objectMap, "maximum", p.Maximum) - populate(objectMap, "minimum", p.Minimum) - populate(objectMap, "P10", p.P10) - populate(objectMap, "P25", p.P25) - populate(objectMap, "P50", p.P50) - populate(objectMap, "P75", p.P75) - populate(objectMap, "P90", p.P90) - populate(objectMap, "P95", p.P95) - populate(objectMap, "P99", p.P99) - populateTimeRFC3339(objectMap, "timestamp", p.Timestamp) - populate(objectMap, "total", p.Total) +// MarshalJSON implements the json.Marshaller interface for type OperationListResult. +func (o OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", o.NextLink) + populate(objectMap, "value", o.Value) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type PercentileMetricValue. -func (p *PercentileMetricValue) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type OperationListResult. +func (o *OperationListResult) 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", p, err) + return fmt.Errorf("unmarshalling type %T: %v", o, err) } for key, val := range rawMsg { var err error switch key { - case "average": - err = unpopulate(val, "Average", &p.Average) - delete(rawMsg, key) - case "_count": - err = unpopulate(val, "Count", &p.Count) - delete(rawMsg, key) - case "maximum": - err = unpopulate(val, "Maximum", &p.Maximum) - delete(rawMsg, key) - case "minimum": - err = unpopulate(val, "Minimum", &p.Minimum) - delete(rawMsg, key) - case "P10": - err = unpopulate(val, "P10", &p.P10) - delete(rawMsg, key) - case "P25": - err = unpopulate(val, "P25", &p.P25) - delete(rawMsg, key) - case "P50": - err = unpopulate(val, "P50", &p.P50) - delete(rawMsg, key) - case "P75": - err = unpopulate(val, "P75", &p.P75) - delete(rawMsg, key) - case "P90": - err = unpopulate(val, "P90", &p.P90) - delete(rawMsg, key) - case "P95": - err = unpopulate(val, "P95", &p.P95) - delete(rawMsg, key) - case "P99": - err = unpopulate(val, "P99", &p.P99) - delete(rawMsg, key) - case "timestamp": - err = unpopulateTimeRFC3339(val, "Timestamp", &p.Timestamp) + case "nextLink": + err = unpopulate(val, "NextLink", &o.NextLink) delete(rawMsg, key) - case "total": - err = unpopulate(val, "Total", &p.Total) + case "value": + err = unpopulate(val, "Value", &o.Value) delete(rawMsg, key) } if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", p, err) + return fmt.Errorf("unmarshalling type %T: %v", o, err) } } return nil } -// MarshalJSON implements the json.Marshaller interface for type PeriodicModeBackupPolicy. -func (p PeriodicModeBackupPolicy) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "migrationState", p.MigrationState) - populate(objectMap, "periodicModeProperties", p.PeriodicModeProperties) - objectMap["type"] = BackupPolicyTypePeriodic +// MarshalJSON implements the json.Marshaller interface for type OptionsResource. +func (o OptionsResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "autoscaleSettings", o.AutoscaleSettings) + populate(objectMap, "throughput", o.Throughput) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type PeriodicModeBackupPolicy. -func (p *PeriodicModeBackupPolicy) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type OptionsResource. +func (o *OptionsResource) 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", p, err) + return fmt.Errorf("unmarshalling type %T: %v", o, err) } for key, val := range rawMsg { var err error switch key { - case "migrationState": - err = unpopulate(val, "MigrationState", &p.MigrationState) - delete(rawMsg, key) - case "periodicModeProperties": - err = unpopulate(val, "PeriodicModeProperties", &p.PeriodicModeProperties) + case "autoscaleSettings": + err = unpopulate(val, "AutoscaleSettings", &o.AutoscaleSettings) delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &p.Type) + case "throughput": + err = unpopulate(val, "Throughput", &o.Throughput) delete(rawMsg, key) } if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", p, err) + return fmt.Errorf("unmarshalling type %T: %v", o, err) } } return nil } -// MarshalJSON implements the json.Marshaller interface for type PeriodicModeProperties. -func (p PeriodicModeProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "backupIntervalInMinutes", p.BackupIntervalInMinutes) - populate(objectMap, "backupRetentionIntervalInHours", p.BackupRetentionIntervalInHours) - populate(objectMap, "backupStorageRedundancy", p.BackupStorageRedundancy) +// MarshalJSON implements the json.Marshaller interface for type PartitionMetric. +func (p PartitionMetric) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateTimeRFC3339(objectMap, "endTime", p.EndTime) + populate(objectMap, "metricValues", p.MetricValues) + populate(objectMap, "name", p.Name) + populate(objectMap, "partitionId", p.PartitionID) + populate(objectMap, "partitionKeyRangeId", p.PartitionKeyRangeID) + populateTimeRFC3339(objectMap, "startTime", p.StartTime) + populate(objectMap, "timeGrain", p.TimeGrain) + populate(objectMap, "unit", p.Unit) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type PeriodicModeProperties. -func (p *PeriodicModeProperties) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type PartitionMetric. +func (p *PartitionMetric) 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", p, err) @@ -7900,14 +6391,29 @@ func (p *PeriodicModeProperties) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "backupIntervalInMinutes": - err = unpopulate(val, "BackupIntervalInMinutes", &p.BackupIntervalInMinutes) + case "endTime": + err = unpopulateTimeRFC3339(val, "EndTime", &p.EndTime) delete(rawMsg, key) - case "backupRetentionIntervalInHours": - err = unpopulate(val, "BackupRetentionIntervalInHours", &p.BackupRetentionIntervalInHours) + case "metricValues": + err = unpopulate(val, "MetricValues", &p.MetricValues) delete(rawMsg, key) - case "backupStorageRedundancy": - err = unpopulate(val, "BackupStorageRedundancy", &p.BackupStorageRedundancy) + case "name": + err = unpopulate(val, "Name", &p.Name) + delete(rawMsg, key) + case "partitionId": + err = unpopulate(val, "PartitionID", &p.PartitionID) + delete(rawMsg, key) + case "partitionKeyRangeId": + err = unpopulate(val, "PartitionKeyRangeID", &p.PartitionKeyRangeID) + delete(rawMsg, key) + case "startTime": + err = unpopulateTimeRFC3339(val, "StartTime", &p.StartTime) + delete(rawMsg, key) + case "timeGrain": + err = unpopulate(val, "TimeGrain", &p.TimeGrain) + delete(rawMsg, key) + case "unit": + err = unpopulate(val, "Unit", &p.Unit) delete(rawMsg, key) } if err != nil { @@ -7917,16 +6423,15 @@ func (p *PeriodicModeProperties) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type Permission. -func (p Permission) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "dataActions", p.DataActions) - populate(objectMap, "notDataActions", p.NotDataActions) +// MarshalJSON implements the json.Marshaller interface for type PartitionMetricListResult. +func (p PartitionMetricListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "value", p.Value) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type Permission. -func (p *Permission) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type PartitionMetricListResult. +func (p *PartitionMetricListResult) 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", p, err) @@ -7934,11 +6439,8 @@ func (p *Permission) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "dataActions": - err = unpopulate(val, "DataActions", &p.DataActions) - delete(rawMsg, key) - case "notDataActions": - err = unpopulate(val, "NotDataActions", &p.NotDataActions) + case "value": + err = unpopulate(val, "Value", &p.Value) delete(rawMsg, key) } if err != nil { @@ -7948,15 +6450,21 @@ func (p *Permission) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type PhysicalPartitionID. -func (p PhysicalPartitionID) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", p.ID) +// MarshalJSON implements the json.Marshaller interface for type PartitionUsage. +func (p PartitionUsage) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "currentValue", p.CurrentValue) + populate(objectMap, "limit", p.Limit) + populate(objectMap, "name", p.Name) + populate(objectMap, "partitionId", p.PartitionID) + populate(objectMap, "partitionKeyRangeId", p.PartitionKeyRangeID) + populate(objectMap, "quotaPeriod", p.QuotaPeriod) + populate(objectMap, "unit", p.Unit) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type PhysicalPartitionID. -func (p *PhysicalPartitionID) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type PartitionUsage. +func (p *PartitionUsage) 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", p, err) @@ -7964,8 +6472,26 @@ func (p *PhysicalPartitionID) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "id": - err = unpopulate(val, "ID", &p.ID) + case "currentValue": + err = unpopulate(val, "CurrentValue", &p.CurrentValue) + delete(rawMsg, key) + case "limit": + err = unpopulate(val, "Limit", &p.Limit) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &p.Name) + delete(rawMsg, key) + case "partitionId": + err = unpopulate(val, "PartitionID", &p.PartitionID) + delete(rawMsg, key) + case "partitionKeyRangeId": + err = unpopulate(val, "PartitionKeyRangeID", &p.PartitionKeyRangeID) + delete(rawMsg, key) + case "quotaPeriod": + err = unpopulate(val, "QuotaPeriod", &p.QuotaPeriod) + delete(rawMsg, key) + case "unit": + err = unpopulate(val, "Unit", &p.Unit) delete(rawMsg, key) } if err != nil { @@ -7975,16 +6501,15 @@ func (p *PhysicalPartitionID) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type PhysicalPartitionStorageInfo. -func (p PhysicalPartitionStorageInfo) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", p.ID) - populate(objectMap, "storageInKB", p.StorageInKB) +// MarshalJSON implements the json.Marshaller interface for type PartitionUsagesResult. +func (p PartitionUsagesResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "value", p.Value) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type PhysicalPartitionStorageInfo. -func (p *PhysicalPartitionStorageInfo) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type PartitionUsagesResult. +func (p *PartitionUsagesResult) 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", p, err) @@ -7992,11 +6517,8 @@ func (p *PhysicalPartitionStorageInfo) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "id": - err = unpopulate(val, "ID", &p.ID) - delete(rawMsg, key) - case "storageInKB": - err = unpopulate(val, "StorageInKB", &p.StorageInKB) + case "value": + err = unpopulate(val, "Value", &p.Value) delete(rawMsg, key) } if err != nil { @@ -8006,15 +6528,20 @@ func (p *PhysicalPartitionStorageInfo) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type PhysicalPartitionStorageInfoCollection. -func (p PhysicalPartitionStorageInfoCollection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "physicalPartitionStorageInfoCollection", p.PhysicalPartitionStorageInfoCollection) +// MarshalJSON implements the json.Marshaller interface for type PercentileMetric. +func (p PercentileMetric) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateTimeRFC3339(objectMap, "endTime", p.EndTime) + populate(objectMap, "metricValues", p.MetricValues) + populate(objectMap, "name", p.Name) + populateTimeRFC3339(objectMap, "startTime", p.StartTime) + populate(objectMap, "timeGrain", p.TimeGrain) + populate(objectMap, "unit", p.Unit) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type PhysicalPartitionStorageInfoCollection. -func (p *PhysicalPartitionStorageInfoCollection) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type PercentileMetric. +func (p *PercentileMetric) 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", p, err) @@ -8022,8 +6549,23 @@ func (p *PhysicalPartitionStorageInfoCollection) UnmarshalJSON(data []byte) erro for key, val := range rawMsg { var err error switch key { - case "physicalPartitionStorageInfoCollection": - err = unpopulate(val, "PhysicalPartitionStorageInfoCollection", &p.PhysicalPartitionStorageInfoCollection) + case "endTime": + err = unpopulateTimeRFC3339(val, "EndTime", &p.EndTime) + delete(rawMsg, key) + case "metricValues": + err = unpopulate(val, "MetricValues", &p.MetricValues) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &p.Name) + delete(rawMsg, key) + case "startTime": + err = unpopulateTimeRFC3339(val, "StartTime", &p.StartTime) + delete(rawMsg, key) + case "timeGrain": + err = unpopulate(val, "TimeGrain", &p.TimeGrain) + delete(rawMsg, key) + case "unit": + err = unpopulate(val, "Unit", &p.Unit) delete(rawMsg, key) } if err != nil { @@ -8033,15 +6575,15 @@ func (p *PhysicalPartitionStorageInfoCollection) UnmarshalJSON(data []byte) erro return nil } -// MarshalJSON implements the json.Marshaller interface for type PhysicalPartitionThroughputInfoProperties. -func (p PhysicalPartitionThroughputInfoProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "physicalPartitionThroughputInfo", p.PhysicalPartitionThroughputInfo) +// MarshalJSON implements the json.Marshaller interface for type PercentileMetricListResult. +func (p PercentileMetricListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "value", p.Value) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type PhysicalPartitionThroughputInfoProperties. -func (p *PhysicalPartitionThroughputInfoProperties) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type PercentileMetricListResult. +func (p *PercentileMetricListResult) 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", p, err) @@ -8049,8 +6591,8 @@ func (p *PhysicalPartitionThroughputInfoProperties) UnmarshalJSON(data []byte) e for key, val := range rawMsg { var err error switch key { - case "physicalPartitionThroughputInfo": - err = unpopulate(val, "PhysicalPartitionThroughputInfo", &p.PhysicalPartitionThroughputInfo) + case "value": + err = unpopulate(val, "Value", &p.Value) delete(rawMsg, key) } if err != nil { @@ -8060,16 +6602,27 @@ func (p *PhysicalPartitionThroughputInfoProperties) UnmarshalJSON(data []byte) e return nil } -// MarshalJSON implements the json.Marshaller interface for type PhysicalPartitionThroughputInfoResource. -func (p PhysicalPartitionThroughputInfoResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", p.ID) - populate(objectMap, "throughput", p.Throughput) +// MarshalJSON implements the json.Marshaller interface for type PercentileMetricValue. +func (p PercentileMetricValue) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "average", p.Average) + populate(objectMap, "_count", p.Count) + populate(objectMap, "maximum", p.Maximum) + populate(objectMap, "minimum", p.Minimum) + populate(objectMap, "P10", p.P10) + populate(objectMap, "P25", p.P25) + populate(objectMap, "P50", p.P50) + populate(objectMap, "P75", p.P75) + populate(objectMap, "P90", p.P90) + populate(objectMap, "P95", p.P95) + populate(objectMap, "P99", p.P99) + populateTimeRFC3339(objectMap, "timestamp", p.Timestamp) + populate(objectMap, "total", p.Total) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type PhysicalPartitionThroughputInfoResource. -func (p *PhysicalPartitionThroughputInfoResource) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type PercentileMetricValue. +func (p *PercentileMetricValue) 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", p, err) @@ -8077,11 +6630,44 @@ func (p *PhysicalPartitionThroughputInfoResource) UnmarshalJSON(data []byte) err for key, val := range rawMsg { var err error switch key { - case "id": - err = unpopulate(val, "ID", &p.ID) + case "average": + err = unpopulate(val, "Average", &p.Average) delete(rawMsg, key) - case "throughput": - err = unpopulate(val, "Throughput", &p.Throughput) + case "_count": + err = unpopulate(val, "Count", &p.Count) + delete(rawMsg, key) + case "maximum": + err = unpopulate(val, "Maximum", &p.Maximum) + delete(rawMsg, key) + case "minimum": + err = unpopulate(val, "Minimum", &p.Minimum) + delete(rawMsg, key) + case "P10": + err = unpopulate(val, "P10", &p.P10) + delete(rawMsg, key) + case "P25": + err = unpopulate(val, "P25", &p.P25) + delete(rawMsg, key) + case "P50": + err = unpopulate(val, "P50", &p.P50) + delete(rawMsg, key) + case "P75": + err = unpopulate(val, "P75", &p.P75) + delete(rawMsg, key) + case "P90": + err = unpopulate(val, "P90", &p.P90) + delete(rawMsg, key) + case "P95": + err = unpopulate(val, "P95", &p.P95) + delete(rawMsg, key) + case "P99": + err = unpopulate(val, "P99", &p.P99) + delete(rawMsg, key) + case "timestamp": + err = unpopulateTimeRFC3339(val, "Timestamp", &p.Timestamp) + delete(rawMsg, key) + case "total": + err = unpopulate(val, "Total", &p.Total) delete(rawMsg, key) } if err != nil { @@ -8091,21 +6677,17 @@ func (p *PhysicalPartitionThroughputInfoResource) UnmarshalJSON(data []byte) err return nil } -// MarshalJSON implements the json.Marshaller interface for type PhysicalPartitionThroughputInfoResult. -func (p PhysicalPartitionThroughputInfoResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - 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, "tags", p.Tags) - populate(objectMap, "type", p.Type) +// MarshalJSON implements the json.Marshaller interface for type PeriodicModeBackupPolicy. +func (p PeriodicModeBackupPolicy) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "migrationState", p.MigrationState) + populate(objectMap, "periodicModeProperties", p.PeriodicModeProperties) + objectMap["type"] = BackupPolicyTypePeriodic return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type PhysicalPartitionThroughputInfoResult. -func (p *PhysicalPartitionThroughputInfoResult) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type PeriodicModeBackupPolicy. +func (p *PeriodicModeBackupPolicy) 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", p, err) @@ -8113,23 +6695,11 @@ func (p *PhysicalPartitionThroughputInfoResult) UnmarshalJSON(data []byte) error for key, val := range rawMsg { var err error switch key { - 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) - case "name": - err = unpopulate(val, "Name", &p.Name) - delete(rawMsg, key) - case "properties": - err = unpopulate(val, "Properties", &p.Properties) + case "migrationState": + err = unpopulate(val, "MigrationState", &p.MigrationState) delete(rawMsg, key) - case "tags": - err = unpopulate(val, "Tags", &p.Tags) + case "periodicModeProperties": + err = unpopulate(val, "PeriodicModeProperties", &p.PeriodicModeProperties) delete(rawMsg, key) case "type": err = unpopulate(val, "Type", &p.Type) @@ -8142,15 +6712,17 @@ func (p *PhysicalPartitionThroughputInfoResult) UnmarshalJSON(data []byte) error return nil } -// MarshalJSON implements the json.Marshaller interface for type PhysicalPartitionThroughputInfoResultProperties. -func (p PhysicalPartitionThroughputInfoResultProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "resource", p.Resource) +// MarshalJSON implements the json.Marshaller interface for type PeriodicModeProperties. +func (p PeriodicModeProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "backupIntervalInMinutes", p.BackupIntervalInMinutes) + populate(objectMap, "backupRetentionIntervalInHours", p.BackupRetentionIntervalInHours) + populate(objectMap, "backupStorageRedundancy", p.BackupStorageRedundancy) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type PhysicalPartitionThroughputInfoResultProperties. -func (p *PhysicalPartitionThroughputInfoResultProperties) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type PeriodicModeProperties. +func (p *PeriodicModeProperties) 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", p, err) @@ -8158,8 +6730,14 @@ func (p *PhysicalPartitionThroughputInfoResultProperties) UnmarshalJSON(data []b for key, val := range rawMsg { var err error switch key { - case "resource": - err = unpopulate(val, "Resource", &p.Resource) + case "backupIntervalInMinutes": + err = unpopulate(val, "BackupIntervalInMinutes", &p.BackupIntervalInMinutes) + delete(rawMsg, key) + case "backupRetentionIntervalInHours": + err = unpopulate(val, "BackupRetentionIntervalInHours", &p.BackupRetentionIntervalInHours) + delete(rawMsg, key) + case "backupStorageRedundancy": + err = unpopulate(val, "BackupStorageRedundancy", &p.BackupStorageRedundancy) delete(rawMsg, key) } if err != nil { @@ -8169,15 +6747,16 @@ func (p *PhysicalPartitionThroughputInfoResultProperties) UnmarshalJSON(data []b return nil } -// MarshalJSON implements the json.Marshaller interface for type PhysicalPartitionThroughputInfoResultPropertiesResource. -func (p PhysicalPartitionThroughputInfoResultPropertiesResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "physicalPartitionThroughputInfo", p.PhysicalPartitionThroughputInfo) +// MarshalJSON implements the json.Marshaller interface for type Permission. +func (p Permission) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "dataActions", p.DataActions) + populate(objectMap, "notDataActions", p.NotDataActions) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type PhysicalPartitionThroughputInfoResultPropertiesResource. -func (p *PhysicalPartitionThroughputInfoResultPropertiesResource) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type Permission. +func (p *Permission) 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", p, err) @@ -8185,8 +6764,11 @@ func (p *PhysicalPartitionThroughputInfoResultPropertiesResource) UnmarshalJSON( for key, val := range rawMsg { var err error switch key { - case "physicalPartitionThroughputInfo": - err = unpopulate(val, "PhysicalPartitionThroughputInfo", &p.PhysicalPartitionThroughputInfo) + case "dataActions": + err = unpopulate(val, "DataActions", &p.DataActions) + delete(rawMsg, key) + case "notDataActions": + err = unpopulate(val, "NotDataActions", &p.NotDataActions) delete(rawMsg, key) } if err != nil { @@ -8198,7 +6780,7 @@ func (p *PhysicalPartitionThroughputInfoResultPropertiesResource) UnmarshalJSON( // MarshalJSON implements the json.Marshaller interface for type PrivateEndpointConnection. func (p PrivateEndpointConnection) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", p.ID) populate(objectMap, "name", p.Name) populate(objectMap, "properties", p.Properties) @@ -8237,7 +6819,7 @@ func (p *PrivateEndpointConnection) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PrivateEndpointConnectionListResult. func (p PrivateEndpointConnectionListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "value", p.Value) return json.Marshal(objectMap) } @@ -8264,7 +6846,7 @@ func (p *PrivateEndpointConnectionListResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PrivateEndpointConnectionProperties. func (p PrivateEndpointConnectionProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "groupId", p.GroupID) populate(objectMap, "privateEndpoint", p.PrivateEndpoint) populate(objectMap, "privateLinkServiceConnectionState", p.PrivateLinkServiceConnectionState) @@ -8303,7 +6885,7 @@ func (p *PrivateEndpointConnectionProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PrivateEndpointProperty. func (p PrivateEndpointProperty) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", p.ID) return json.Marshal(objectMap) } @@ -8330,7 +6912,7 @@ func (p *PrivateEndpointProperty) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PrivateLinkResource. func (p PrivateLinkResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", p.ID) populate(objectMap, "name", p.Name) populate(objectMap, "properties", p.Properties) @@ -8369,7 +6951,7 @@ func (p *PrivateLinkResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PrivateLinkResourceListResult. func (p PrivateLinkResourceListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "value", p.Value) return json.Marshal(objectMap) } @@ -8396,7 +6978,7 @@ func (p *PrivateLinkResourceListResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PrivateLinkResourceProperties. func (p PrivateLinkResourceProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "groupId", p.GroupID) populate(objectMap, "requiredMembers", p.RequiredMembers) populate(objectMap, "requiredZoneNames", p.RequiredZoneNames) @@ -8431,7 +7013,7 @@ func (p *PrivateLinkResourceProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type PrivateLinkServiceConnectionStateProperty. func (p PrivateLinkServiceConnectionStateProperty) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "actionsRequired", p.ActionsRequired) populate(objectMap, "description", p.Description) populate(objectMap, "status", p.Status) @@ -8466,7 +7048,7 @@ func (p *PrivateLinkServiceConnectionStateProperty) UnmarshalJSON(data []byte) e // MarshalJSON implements the json.Marshaller interface for type Privilege. func (p Privilege) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "actions", p.Actions) populate(objectMap, "resource", p.Resource) return json.Marshal(objectMap) @@ -8479,196 +7061,83 @@ func (p *Privilege) UnmarshalJSON(data []byte) error { return fmt.Errorf("unmarshalling type %T: %v", p, err) } for key, val := range rawMsg { - var err error - switch key { - case "actions": - err = unpopulate(val, "Actions", &p.Actions) - delete(rawMsg, key) - case "resource": - err = unpopulate(val, "Resource", &p.Resource) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", p, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type PrivilegeResource. -func (p PrivilegeResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "collection", p.Collection) - populate(objectMap, "db", p.Db) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type PrivilegeResource. -func (p *PrivilegeResource) 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", p, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "collection": - err = unpopulate(val, "Collection", &p.Collection) - delete(rawMsg, key) - case "db": - err = unpopulate(val, "Db", &p.Db) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", p, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type ProxyResource. -func (p ProxyResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", p.ID) - populate(objectMap, "name", p.Name) - populate(objectMap, "type", p.Type) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type ProxyResource. -func (p *ProxyResource) 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", p, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "id": - err = unpopulate(val, "ID", &p.ID) - delete(rawMsg, key) - case "name": - err = unpopulate(val, "Name", &p.Name) - delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &p.Type) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", p, err) - } - } - return nil -} - -// MarshalJSON implements the json.Marshaller interface for type RedistributeThroughputParameters. -func (r RedistributeThroughputParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", r.ID) - populate(objectMap, "identity", r.Identity) - populate(objectMap, "location", r.Location) - populate(objectMap, "name", r.Name) - populate(objectMap, "properties", r.Properties) - populate(objectMap, "tags", r.Tags) - populate(objectMap, "type", r.Type) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type RedistributeThroughputParameters. -func (r *RedistributeThroughputParameters) 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 "identity": - err = unpopulate(val, "Identity", &r.Identity) - 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 "properties": - err = unpopulate(val, "Properties", &r.Properties) - delete(rawMsg, key) - case "tags": - err = unpopulate(val, "Tags", &r.Tags) + var err error + switch key { + case "actions": + err = unpopulate(val, "Actions", &p.Actions) delete(rawMsg, key) - case "type": - err = unpopulate(val, "Type", &r.Type) + case "resource": + err = unpopulate(val, "Resource", &p.Resource) delete(rawMsg, key) } if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", r, err) + return fmt.Errorf("unmarshalling type %T: %v", p, err) } } return nil } -// MarshalJSON implements the json.Marshaller interface for type RedistributeThroughputProperties. -func (r RedistributeThroughputProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "resource", r.Resource) +// MarshalJSON implements the json.Marshaller interface for type PrivilegeResource. +func (p PrivilegeResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "collection", p.Collection) + populate(objectMap, "db", p.Db) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type RedistributeThroughputProperties. -func (r *RedistributeThroughputProperties) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type PrivilegeResource. +func (p *PrivilegeResource) 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) + return fmt.Errorf("unmarshalling type %T: %v", p, err) } for key, val := range rawMsg { var err error switch key { - case "resource": - err = unpopulate(val, "Resource", &r.Resource) + case "collection": + err = unpopulate(val, "Collection", &p.Collection) + delete(rawMsg, key) + case "db": + err = unpopulate(val, "Db", &p.Db) delete(rawMsg, key) } if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", r, err) + return fmt.Errorf("unmarshalling type %T: %v", p, err) } } return nil } -// MarshalJSON implements the json.Marshaller interface for type RedistributeThroughputPropertiesResource. -func (r RedistributeThroughputPropertiesResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "sourcePhysicalPartitionThroughputInfo", r.SourcePhysicalPartitionThroughputInfo) - populate(objectMap, "targetPhysicalPartitionThroughputInfo", r.TargetPhysicalPartitionThroughputInfo) - populate(objectMap, "throughputPolicy", r.ThroughputPolicy) +// MarshalJSON implements the json.Marshaller interface for type ProxyResource. +func (p ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", p.ID) + populate(objectMap, "name", p.Name) + populate(objectMap, "type", p.Type) return json.Marshal(objectMap) } -// UnmarshalJSON implements the json.Unmarshaller interface for type RedistributeThroughputPropertiesResource. -func (r *RedistributeThroughputPropertiesResource) UnmarshalJSON(data []byte) error { +// UnmarshalJSON implements the json.Unmarshaller interface for type ProxyResource. +func (p *ProxyResource) 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) + return fmt.Errorf("unmarshalling type %T: %v", p, err) } for key, val := range rawMsg { var err error switch key { - case "sourcePhysicalPartitionThroughputInfo": - err = unpopulate(val, "SourcePhysicalPartitionThroughputInfo", &r.SourcePhysicalPartitionThroughputInfo) + case "id": + err = unpopulate(val, "ID", &p.ID) delete(rawMsg, key) - case "targetPhysicalPartitionThroughputInfo": - err = unpopulate(val, "TargetPhysicalPartitionThroughputInfo", &r.TargetPhysicalPartitionThroughputInfo) + case "name": + err = unpopulate(val, "Name", &p.Name) delete(rawMsg, key) - case "throughputPolicy": - err = unpopulate(val, "ThroughputPolicy", &r.ThroughputPolicy) + case "type": + err = unpopulate(val, "Type", &p.Type) delete(rawMsg, key) } if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", r, err) + return fmt.Errorf("unmarshalling type %T: %v", p, err) } } return nil @@ -8676,7 +7145,7 @@ func (r *RedistributeThroughputPropertiesResource) UnmarshalJSON(data []byte) er // MarshalJSON implements the json.Marshaller interface for type RegionForOnlineOffline. func (r RegionForOnlineOffline) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "region", r.Region) return json.Marshal(objectMap) } @@ -8703,7 +7172,7 @@ func (r *RegionForOnlineOffline) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RegionalServiceResource. func (r RegionalServiceResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "location", r.Location) populate(objectMap, "name", r.Name) populate(objectMap, "status", r.Status) @@ -8738,7 +7207,7 @@ func (r *RegionalServiceResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Resource. func (r Resource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", r.ID) populate(objectMap, "name", r.Name) populate(objectMap, "type", r.Type) @@ -8771,40 +7240,9 @@ func (r *Resource) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type ResourceRestoreParameters. -func (r ResourceRestoreParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "restoreSource", r.RestoreSource) - populateTimeRFC3339(objectMap, "restoreTimestampInUtc", r.RestoreTimestampInUTC) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type ResourceRestoreParameters. -func (r *ResourceRestoreParameters) 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 "restoreSource": - err = unpopulate(val, "RestoreSource", &r.RestoreSource) - delete(rawMsg, key) - case "restoreTimestampInUtc": - err = unpopulateTimeRFC3339(val, "RestoreTimestampInUTC", &r.RestoreTimestampInUTC) - 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 RestorableDatabaseAccountGetResult. func (r RestorableDatabaseAccountGetResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", r.ID) populate(objectMap, "location", r.Location) populate(objectMap, "name", r.Name) @@ -8847,12 +7285,11 @@ func (r *RestorableDatabaseAccountGetResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RestorableDatabaseAccountProperties. func (r RestorableDatabaseAccountProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "apiType", r.APIType) populate(objectMap, "accountName", r.AccountName) populateTimeRFC3339(objectMap, "creationTime", r.CreationTime) populateTimeRFC3339(objectMap, "deletionTime", r.DeletionTime) - populateTimeRFC3339(objectMap, "oldestRestorableTime", r.OldestRestorableTime) populate(objectMap, "restorableLocations", r.RestorableLocations) return json.Marshal(objectMap) } @@ -8878,9 +7315,6 @@ func (r *RestorableDatabaseAccountProperties) UnmarshalJSON(data []byte) error { case "deletionTime": err = unpopulateTimeRFC3339(val, "DeletionTime", &r.DeletionTime) delete(rawMsg, key) - case "oldestRestorableTime": - err = unpopulateTimeRFC3339(val, "OldestRestorableTime", &r.OldestRestorableTime) - delete(rawMsg, key) case "restorableLocations": err = unpopulate(val, "RestorableLocations", &r.RestorableLocations) delete(rawMsg, key) @@ -8894,7 +7328,7 @@ func (r *RestorableDatabaseAccountProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RestorableDatabaseAccountsListResult. func (r RestorableDatabaseAccountsListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "value", r.Value) return json.Marshal(objectMap) } @@ -8921,7 +7355,7 @@ func (r *RestorableDatabaseAccountsListResult) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type RestorableGremlinDatabaseGetResult. func (r RestorableGremlinDatabaseGetResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", r.ID) populate(objectMap, "name", r.Name) populate(objectMap, "properties", r.Properties) @@ -8960,7 +7394,7 @@ func (r *RestorableGremlinDatabaseGetResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RestorableGremlinDatabaseProperties. func (r RestorableGremlinDatabaseProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "resource", r.Resource) return json.Marshal(objectMap) } @@ -8987,7 +7421,7 @@ func (r *RestorableGremlinDatabaseProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RestorableGremlinDatabasePropertiesResource. func (r RestorableGremlinDatabasePropertiesResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "eventTimestamp", r.EventTimestamp) populate(objectMap, "operationType", r.OperationType) populate(objectMap, "ownerId", r.OwnerID) @@ -9030,7 +7464,7 @@ func (r *RestorableGremlinDatabasePropertiesResource) UnmarshalJSON(data []byte) // MarshalJSON implements the json.Marshaller interface for type RestorableGremlinDatabasesListResult. func (r RestorableGremlinDatabasesListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "value", r.Value) return json.Marshal(objectMap) } @@ -9057,7 +7491,7 @@ func (r *RestorableGremlinDatabasesListResult) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type RestorableGremlinGraphGetResult. func (r RestorableGremlinGraphGetResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", r.ID) populate(objectMap, "name", r.Name) populate(objectMap, "properties", r.Properties) @@ -9096,7 +7530,7 @@ func (r *RestorableGremlinGraphGetResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RestorableGremlinGraphProperties. func (r RestorableGremlinGraphProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "resource", r.Resource) return json.Marshal(objectMap) } @@ -9123,7 +7557,7 @@ func (r *RestorableGremlinGraphProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RestorableGremlinGraphPropertiesResource. func (r RestorableGremlinGraphPropertiesResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "eventTimestamp", r.EventTimestamp) populate(objectMap, "operationType", r.OperationType) populate(objectMap, "ownerId", r.OwnerID) @@ -9166,7 +7600,7 @@ func (r *RestorableGremlinGraphPropertiesResource) UnmarshalJSON(data []byte) er // MarshalJSON implements the json.Marshaller interface for type RestorableGremlinGraphsListResult. func (r RestorableGremlinGraphsListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "value", r.Value) return json.Marshal(objectMap) } @@ -9193,7 +7627,7 @@ func (r *RestorableGremlinGraphsListResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RestorableGremlinResourcesGetResult. func (r RestorableGremlinResourcesGetResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "databaseName", r.DatabaseName) populate(objectMap, "graphNames", r.GraphNames) populate(objectMap, "id", r.ID) @@ -9236,7 +7670,7 @@ func (r *RestorableGremlinResourcesGetResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RestorableGremlinResourcesListResult. func (r RestorableGremlinResourcesListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "value", r.Value) return json.Marshal(objectMap) } @@ -9263,7 +7697,7 @@ func (r *RestorableGremlinResourcesListResult) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type RestorableLocationResource. func (r RestorableLocationResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populateTimeRFC3339(objectMap, "creationTime", r.CreationTime) populateTimeRFC3339(objectMap, "deletionTime", r.DeletionTime) populate(objectMap, "locationName", r.LocationName) @@ -9302,7 +7736,7 @@ func (r *RestorableLocationResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RestorableMongodbCollectionGetResult. func (r RestorableMongodbCollectionGetResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", r.ID) populate(objectMap, "name", r.Name) populate(objectMap, "properties", r.Properties) @@ -9341,7 +7775,7 @@ func (r *RestorableMongodbCollectionGetResult) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type RestorableMongodbCollectionProperties. func (r RestorableMongodbCollectionProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "resource", r.Resource) return json.Marshal(objectMap) } @@ -9368,7 +7802,7 @@ func (r *RestorableMongodbCollectionProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type RestorableMongodbCollectionPropertiesResource. func (r RestorableMongodbCollectionPropertiesResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "eventTimestamp", r.EventTimestamp) populate(objectMap, "operationType", r.OperationType) populate(objectMap, "ownerId", r.OwnerID) @@ -9411,7 +7845,7 @@ func (r *RestorableMongodbCollectionPropertiesResource) UnmarshalJSON(data []byt // MarshalJSON implements the json.Marshaller interface for type RestorableMongodbCollectionsListResult. func (r RestorableMongodbCollectionsListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "value", r.Value) return json.Marshal(objectMap) } @@ -9438,7 +7872,7 @@ func (r *RestorableMongodbCollectionsListResult) UnmarshalJSON(data []byte) erro // MarshalJSON implements the json.Marshaller interface for type RestorableMongodbDatabaseGetResult. func (r RestorableMongodbDatabaseGetResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", r.ID) populate(objectMap, "name", r.Name) populate(objectMap, "properties", r.Properties) @@ -9477,7 +7911,7 @@ func (r *RestorableMongodbDatabaseGetResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RestorableMongodbDatabaseProperties. func (r RestorableMongodbDatabaseProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "resource", r.Resource) return json.Marshal(objectMap) } @@ -9504,7 +7938,7 @@ func (r *RestorableMongodbDatabaseProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RestorableMongodbDatabasePropertiesResource. func (r RestorableMongodbDatabasePropertiesResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "eventTimestamp", r.EventTimestamp) populate(objectMap, "operationType", r.OperationType) populate(objectMap, "ownerId", r.OwnerID) @@ -9547,7 +7981,7 @@ func (r *RestorableMongodbDatabasePropertiesResource) UnmarshalJSON(data []byte) // MarshalJSON implements the json.Marshaller interface for type RestorableMongodbDatabasesListResult. func (r RestorableMongodbDatabasesListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "value", r.Value) return json.Marshal(objectMap) } @@ -9574,7 +8008,7 @@ func (r *RestorableMongodbDatabasesListResult) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type RestorableMongodbResourcesGetResult. func (r RestorableMongodbResourcesGetResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "collectionNames", r.CollectionNames) populate(objectMap, "databaseName", r.DatabaseName) populate(objectMap, "id", r.ID) @@ -9617,7 +8051,7 @@ func (r *RestorableMongodbResourcesGetResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RestorableMongodbResourcesListResult. func (r RestorableMongodbResourcesListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "value", r.Value) return json.Marshal(objectMap) } @@ -9644,7 +8078,7 @@ func (r *RestorableMongodbResourcesListResult) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type RestorableSQLContainerGetResult. func (r RestorableSQLContainerGetResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", r.ID) populate(objectMap, "name", r.Name) populate(objectMap, "properties", r.Properties) @@ -9683,7 +8117,7 @@ func (r *RestorableSQLContainerGetResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RestorableSQLContainerProperties. func (r RestorableSQLContainerProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "resource", r.Resource) return json.Marshal(objectMap) } @@ -9710,7 +8144,7 @@ func (r *RestorableSQLContainerProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RestorableSQLContainerPropertiesResource. func (r RestorableSQLContainerPropertiesResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "container", r.Container) populate(objectMap, "eventTimestamp", r.EventTimestamp) populate(objectMap, "operationType", r.OperationType) @@ -9757,17 +8191,15 @@ func (r *RestorableSQLContainerPropertiesResource) UnmarshalJSON(data []byte) er // MarshalJSON implements the json.Marshaller interface for type RestorableSQLContainerPropertiesResourceContainer. func (r RestorableSQLContainerPropertiesResourceContainer) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "analyticalStorageTtl", r.AnalyticalStorageTTL) populate(objectMap, "clientEncryptionPolicy", r.ClientEncryptionPolicy) populate(objectMap, "conflictResolutionPolicy", r.ConflictResolutionPolicy) - populate(objectMap, "createMode", r.CreateMode) populate(objectMap, "defaultTtl", r.DefaultTTL) populate(objectMap, "_etag", r.Etag) populate(objectMap, "id", r.ID) populate(objectMap, "indexingPolicy", r.IndexingPolicy) populate(objectMap, "partitionKey", r.PartitionKey) - populate(objectMap, "restoreParameters", r.RestoreParameters) populate(objectMap, "_rid", r.Rid) populate(objectMap, "_self", r.Self) populate(objectMap, "_ts", r.Ts) @@ -9793,9 +8225,6 @@ func (r *RestorableSQLContainerPropertiesResourceContainer) UnmarshalJSON(data [ case "conflictResolutionPolicy": err = unpopulate(val, "ConflictResolutionPolicy", &r.ConflictResolutionPolicy) delete(rawMsg, key) - case "createMode": - err = unpopulate(val, "CreateMode", &r.CreateMode) - delete(rawMsg, key) case "defaultTtl": err = unpopulate(val, "DefaultTTL", &r.DefaultTTL) delete(rawMsg, key) @@ -9811,9 +8240,6 @@ func (r *RestorableSQLContainerPropertiesResourceContainer) UnmarshalJSON(data [ case "partitionKey": err = unpopulate(val, "PartitionKey", &r.PartitionKey) delete(rawMsg, key) - case "restoreParameters": - err = unpopulate(val, "RestoreParameters", &r.RestoreParameters) - delete(rawMsg, key) case "_rid": err = unpopulate(val, "Rid", &r.Rid) delete(rawMsg, key) @@ -9836,7 +8262,7 @@ func (r *RestorableSQLContainerPropertiesResourceContainer) UnmarshalJSON(data [ // MarshalJSON implements the json.Marshaller interface for type RestorableSQLContainersListResult. func (r RestorableSQLContainersListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "value", r.Value) return json.Marshal(objectMap) } @@ -9863,7 +8289,7 @@ func (r *RestorableSQLContainersListResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RestorableSQLDatabaseGetResult. func (r RestorableSQLDatabaseGetResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", r.ID) populate(objectMap, "name", r.Name) populate(objectMap, "properties", r.Properties) @@ -9902,7 +8328,7 @@ func (r *RestorableSQLDatabaseGetResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RestorableSQLDatabaseProperties. func (r RestorableSQLDatabaseProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "resource", r.Resource) return json.Marshal(objectMap) } @@ -9929,7 +8355,7 @@ func (r *RestorableSQLDatabaseProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RestorableSQLDatabasePropertiesResource. func (r RestorableSQLDatabasePropertiesResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "database", r.Database) populate(objectMap, "eventTimestamp", r.EventTimestamp) populate(objectMap, "operationType", r.OperationType) @@ -9976,12 +8402,10 @@ func (r *RestorableSQLDatabasePropertiesResource) UnmarshalJSON(data []byte) err // MarshalJSON implements the json.Marshaller interface for type RestorableSQLDatabasePropertiesResourceDatabase. func (r RestorableSQLDatabasePropertiesResourceDatabase) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "_colls", r.Colls) - populate(objectMap, "createMode", r.CreateMode) populate(objectMap, "_etag", r.Etag) populate(objectMap, "id", r.ID) - populate(objectMap, "restoreParameters", r.RestoreParameters) populate(objectMap, "_rid", r.Rid) populate(objectMap, "_self", r.Self) populate(objectMap, "_ts", r.Ts) @@ -10001,18 +8425,12 @@ func (r *RestorableSQLDatabasePropertiesResourceDatabase) UnmarshalJSON(data []b case "_colls": err = unpopulate(val, "Colls", &r.Colls) delete(rawMsg, key) - case "createMode": - err = unpopulate(val, "CreateMode", &r.CreateMode) - delete(rawMsg, key) case "_etag": err = unpopulate(val, "Etag", &r.Etag) delete(rawMsg, key) case "id": err = unpopulate(val, "ID", &r.ID) delete(rawMsg, key) - case "restoreParameters": - err = unpopulate(val, "RestoreParameters", &r.RestoreParameters) - delete(rawMsg, key) case "_rid": err = unpopulate(val, "Rid", &r.Rid) delete(rawMsg, key) @@ -10035,7 +8453,7 @@ func (r *RestorableSQLDatabasePropertiesResourceDatabase) UnmarshalJSON(data []b // MarshalJSON implements the json.Marshaller interface for type RestorableSQLDatabasesListResult. func (r RestorableSQLDatabasesListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "value", r.Value) return json.Marshal(objectMap) } @@ -10062,7 +8480,7 @@ func (r *RestorableSQLDatabasesListResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RestorableSQLResourcesGetResult. func (r RestorableSQLResourcesGetResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "collectionNames", r.CollectionNames) populate(objectMap, "databaseName", r.DatabaseName) populate(objectMap, "id", r.ID) @@ -10105,7 +8523,7 @@ func (r *RestorableSQLResourcesGetResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RestorableSQLResourcesListResult. func (r RestorableSQLResourcesListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "value", r.Value) return json.Marshal(objectMap) } @@ -10132,7 +8550,7 @@ func (r *RestorableSQLResourcesListResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RestorableTableGetResult. func (r RestorableTableGetResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", r.ID) populate(objectMap, "name", r.Name) populate(objectMap, "properties", r.Properties) @@ -10171,7 +8589,7 @@ func (r *RestorableTableGetResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RestorableTableProperties. func (r RestorableTableProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "resource", r.Resource) return json.Marshal(objectMap) } @@ -10198,7 +8616,7 @@ func (r *RestorableTableProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RestorableTablePropertiesResource. func (r RestorableTablePropertiesResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "eventTimestamp", r.EventTimestamp) populate(objectMap, "operationType", r.OperationType) populate(objectMap, "ownerId", r.OwnerID) @@ -10241,7 +8659,7 @@ func (r *RestorableTablePropertiesResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RestorableTableResourcesGetResult. func (r RestorableTableResourcesGetResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", r.ID) populate(objectMap, "name", r.Name) populate(objectMap, "type", r.Type) @@ -10276,7 +8694,7 @@ func (r *RestorableTableResourcesGetResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RestorableTableResourcesListResult. func (r RestorableTableResourcesListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "value", r.Value) return json.Marshal(objectMap) } @@ -10303,7 +8721,7 @@ func (r *RestorableTableResourcesListResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RestorableTablesListResult. func (r RestorableTablesListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "value", r.Value) return json.Marshal(objectMap) } @@ -10330,7 +8748,7 @@ func (r *RestorableTablesListResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type RestoreParameters. func (r RestoreParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "databasesToRestore", r.DatabasesToRestore) populate(objectMap, "gremlinDatabasesToRestore", r.GremlinDatabasesToRestore) populate(objectMap, "restoreMode", r.RestoreMode) @@ -10375,145 +8793,9 @@ func (r *RestoreParameters) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type RestoreParametersBase. -func (r RestoreParametersBase) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "restoreSource", r.RestoreSource) - populateTimeRFC3339(objectMap, "restoreTimestampInUtc", r.RestoreTimestampInUTC) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type RestoreParametersBase. -func (r *RestoreParametersBase) 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 "restoreSource": - err = unpopulate(val, "RestoreSource", &r.RestoreSource) - delete(rawMsg, key) - case "restoreTimestampInUtc": - err = unpopulateTimeRFC3339(val, "RestoreTimestampInUTC", &r.RestoreTimestampInUTC) - 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 RetrieveThroughputParameters. -func (r RetrieveThroughputParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "id", r.ID) - populate(objectMap, "identity", r.Identity) - populate(objectMap, "location", r.Location) - populate(objectMap, "name", r.Name) - populate(objectMap, "properties", r.Properties) - populate(objectMap, "tags", r.Tags) - populate(objectMap, "type", r.Type) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type RetrieveThroughputParameters. -func (r *RetrieveThroughputParameters) 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 "identity": - err = unpopulate(val, "Identity", &r.Identity) - 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 "properties": - err = unpopulate(val, "Properties", &r.Properties) - 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 RetrieveThroughputProperties. -func (r RetrieveThroughputProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "resource", r.Resource) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type RetrieveThroughputProperties. -func (r *RetrieveThroughputProperties) 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 "resource": - err = unpopulate(val, "Resource", &r.Resource) - 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 RetrieveThroughputPropertiesResource. -func (r RetrieveThroughputPropertiesResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "physicalPartitionIds", r.PhysicalPartitionIDs) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type RetrieveThroughputPropertiesResource. -func (r *RetrieveThroughputPropertiesResource) 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 "physicalPartitionIds": - err = unpopulate(val, "PhysicalPartitionIDs", &r.PhysicalPartitionIDs) - 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 Role. func (r Role) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "db", r.Db) populate(objectMap, "role", r.Role) return json.Marshal(objectMap) @@ -10544,9 +8826,8 @@ func (r *Role) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SQLContainerCreateUpdateParameters. func (s SQLContainerCreateUpdateParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", s.ID) - populate(objectMap, "identity", s.Identity) populate(objectMap, "location", s.Location) populate(objectMap, "name", s.Name) populate(objectMap, "properties", s.Properties) @@ -10567,9 +8848,6 @@ func (s *SQLContainerCreateUpdateParameters) UnmarshalJSON(data []byte) error { case "id": err = unpopulate(val, "ID", &s.ID) delete(rawMsg, key) - case "identity": - err = unpopulate(val, "Identity", &s.Identity) - delete(rawMsg, key) case "location": err = unpopulate(val, "Location", &s.Location) delete(rawMsg, key) @@ -10595,7 +8873,7 @@ func (s *SQLContainerCreateUpdateParameters) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SQLContainerCreateUpdateProperties. func (s SQLContainerCreateUpdateProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "options", s.Options) populate(objectMap, "resource", s.Resource) return json.Marshal(objectMap) @@ -10626,7 +8904,7 @@ func (s *SQLContainerCreateUpdateProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SQLContainerGetProperties. func (s SQLContainerGetProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "options", s.Options) populate(objectMap, "resource", s.Resource) return json.Marshal(objectMap) @@ -10657,7 +8935,7 @@ func (s *SQLContainerGetProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SQLContainerGetPropertiesOptions. func (s SQLContainerGetPropertiesOptions) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "autoscaleSettings", s.AutoscaleSettings) populate(objectMap, "throughput", s.Throughput) return json.Marshal(objectMap) @@ -10688,17 +8966,15 @@ func (s *SQLContainerGetPropertiesOptions) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SQLContainerGetPropertiesResource. func (s SQLContainerGetPropertiesResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "analyticalStorageTtl", s.AnalyticalStorageTTL) populate(objectMap, "clientEncryptionPolicy", s.ClientEncryptionPolicy) populate(objectMap, "conflictResolutionPolicy", s.ConflictResolutionPolicy) - populate(objectMap, "createMode", s.CreateMode) populate(objectMap, "defaultTtl", s.DefaultTTL) populate(objectMap, "_etag", s.Etag) populate(objectMap, "id", s.ID) populate(objectMap, "indexingPolicy", s.IndexingPolicy) populate(objectMap, "partitionKey", s.PartitionKey) - populate(objectMap, "restoreParameters", s.RestoreParameters) populate(objectMap, "_rid", s.Rid) populate(objectMap, "_ts", s.Ts) populate(objectMap, "uniqueKeyPolicy", s.UniqueKeyPolicy) @@ -10723,9 +8999,6 @@ func (s *SQLContainerGetPropertiesResource) UnmarshalJSON(data []byte) error { case "conflictResolutionPolicy": err = unpopulate(val, "ConflictResolutionPolicy", &s.ConflictResolutionPolicy) delete(rawMsg, key) - case "createMode": - err = unpopulate(val, "CreateMode", &s.CreateMode) - delete(rawMsg, key) case "defaultTtl": err = unpopulate(val, "DefaultTTL", &s.DefaultTTL) delete(rawMsg, key) @@ -10741,9 +9014,6 @@ func (s *SQLContainerGetPropertiesResource) UnmarshalJSON(data []byte) error { case "partitionKey": err = unpopulate(val, "PartitionKey", &s.PartitionKey) delete(rawMsg, key) - case "restoreParameters": - err = unpopulate(val, "RestoreParameters", &s.RestoreParameters) - delete(rawMsg, key) case "_rid": err = unpopulate(val, "Rid", &s.Rid) delete(rawMsg, key) @@ -10763,9 +9033,8 @@ func (s *SQLContainerGetPropertiesResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SQLContainerGetResults. func (s SQLContainerGetResults) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", s.ID) - populate(objectMap, "identity", s.Identity) populate(objectMap, "location", s.Location) populate(objectMap, "name", s.Name) populate(objectMap, "properties", s.Properties) @@ -10786,9 +9055,6 @@ func (s *SQLContainerGetResults) UnmarshalJSON(data []byte) error { case "id": err = unpopulate(val, "ID", &s.ID) delete(rawMsg, key) - case "identity": - err = unpopulate(val, "Identity", &s.Identity) - delete(rawMsg, key) case "location": err = unpopulate(val, "Location", &s.Location) delete(rawMsg, key) @@ -10814,7 +9080,7 @@ func (s *SQLContainerGetResults) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SQLContainerListResult. func (s SQLContainerListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "value", s.Value) return json.Marshal(objectMap) } @@ -10841,16 +9107,14 @@ func (s *SQLContainerListResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SQLContainerResource. func (s SQLContainerResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "analyticalStorageTtl", s.AnalyticalStorageTTL) populate(objectMap, "clientEncryptionPolicy", s.ClientEncryptionPolicy) populate(objectMap, "conflictResolutionPolicy", s.ConflictResolutionPolicy) - populate(objectMap, "createMode", s.CreateMode) populate(objectMap, "defaultTtl", s.DefaultTTL) populate(objectMap, "id", s.ID) populate(objectMap, "indexingPolicy", s.IndexingPolicy) populate(objectMap, "partitionKey", s.PartitionKey) - populate(objectMap, "restoreParameters", s.RestoreParameters) populate(objectMap, "uniqueKeyPolicy", s.UniqueKeyPolicy) return json.Marshal(objectMap) } @@ -10873,9 +9137,6 @@ func (s *SQLContainerResource) UnmarshalJSON(data []byte) error { case "conflictResolutionPolicy": err = unpopulate(val, "ConflictResolutionPolicy", &s.ConflictResolutionPolicy) delete(rawMsg, key) - case "createMode": - err = unpopulate(val, "CreateMode", &s.CreateMode) - delete(rawMsg, key) case "defaultTtl": err = unpopulate(val, "DefaultTTL", &s.DefaultTTL) delete(rawMsg, key) @@ -10888,9 +9149,6 @@ func (s *SQLContainerResource) UnmarshalJSON(data []byte) error { case "partitionKey": err = unpopulate(val, "PartitionKey", &s.PartitionKey) delete(rawMsg, key) - case "restoreParameters": - err = unpopulate(val, "RestoreParameters", &s.RestoreParameters) - delete(rawMsg, key) case "uniqueKeyPolicy": err = unpopulate(val, "UniqueKeyPolicy", &s.UniqueKeyPolicy) delete(rawMsg, key) @@ -10902,46 +9160,10 @@ func (s *SQLContainerResource) UnmarshalJSON(data []byte) error { return nil } -// MarshalJSON implements the json.Marshaller interface for type SQLDataTransferDataSourceSink. -func (s SQLDataTransferDataSourceSink) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - objectMap["component"] = DataTransferComponentCosmosDBSQL - populate(objectMap, "containerName", s.ContainerName) - populate(objectMap, "databaseName", s.DatabaseName) - return json.Marshal(objectMap) -} - -// UnmarshalJSON implements the json.Unmarshaller interface for type SQLDataTransferDataSourceSink. -func (s *SQLDataTransferDataSourceSink) UnmarshalJSON(data []byte) error { - var rawMsg map[string]json.RawMessage - if err := json.Unmarshal(data, &rawMsg); err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - for key, val := range rawMsg { - var err error - switch key { - case "component": - err = unpopulate(val, "Component", &s.Component) - delete(rawMsg, key) - case "containerName": - err = unpopulate(val, "ContainerName", &s.ContainerName) - delete(rawMsg, key) - case "databaseName": - err = unpopulate(val, "DatabaseName", &s.DatabaseName) - delete(rawMsg, key) - } - if err != nil { - return fmt.Errorf("unmarshalling type %T: %v", s, err) - } - } - return nil -} - // MarshalJSON implements the json.Marshaller interface for type SQLDatabaseCreateUpdateParameters. func (s SQLDatabaseCreateUpdateParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", s.ID) - populate(objectMap, "identity", s.Identity) populate(objectMap, "location", s.Location) populate(objectMap, "name", s.Name) populate(objectMap, "properties", s.Properties) @@ -10962,9 +9184,6 @@ func (s *SQLDatabaseCreateUpdateParameters) UnmarshalJSON(data []byte) error { case "id": err = unpopulate(val, "ID", &s.ID) delete(rawMsg, key) - case "identity": - err = unpopulate(val, "Identity", &s.Identity) - delete(rawMsg, key) case "location": err = unpopulate(val, "Location", &s.Location) delete(rawMsg, key) @@ -10990,7 +9209,7 @@ func (s *SQLDatabaseCreateUpdateParameters) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SQLDatabaseCreateUpdateProperties. func (s SQLDatabaseCreateUpdateProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "options", s.Options) populate(objectMap, "resource", s.Resource) return json.Marshal(objectMap) @@ -11021,7 +9240,7 @@ func (s *SQLDatabaseCreateUpdateProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SQLDatabaseGetProperties. func (s SQLDatabaseGetProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "options", s.Options) populate(objectMap, "resource", s.Resource) return json.Marshal(objectMap) @@ -11052,7 +9271,7 @@ func (s *SQLDatabaseGetProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SQLDatabaseGetPropertiesOptions. func (s SQLDatabaseGetPropertiesOptions) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "autoscaleSettings", s.AutoscaleSettings) populate(objectMap, "throughput", s.Throughput) return json.Marshal(objectMap) @@ -11083,12 +9302,10 @@ func (s *SQLDatabaseGetPropertiesOptions) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SQLDatabaseGetPropertiesResource. func (s SQLDatabaseGetPropertiesResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "_colls", s.Colls) - populate(objectMap, "createMode", s.CreateMode) populate(objectMap, "_etag", s.Etag) populate(objectMap, "id", s.ID) - populate(objectMap, "restoreParameters", s.RestoreParameters) populate(objectMap, "_rid", s.Rid) populate(objectMap, "_ts", s.Ts) populate(objectMap, "_users", s.Users) @@ -11107,18 +9324,12 @@ func (s *SQLDatabaseGetPropertiesResource) UnmarshalJSON(data []byte) error { case "_colls": err = unpopulate(val, "Colls", &s.Colls) delete(rawMsg, key) - case "createMode": - err = unpopulate(val, "CreateMode", &s.CreateMode) - delete(rawMsg, key) case "_etag": err = unpopulate(val, "Etag", &s.Etag) delete(rawMsg, key) case "id": err = unpopulate(val, "ID", &s.ID) delete(rawMsg, key) - case "restoreParameters": - err = unpopulate(val, "RestoreParameters", &s.RestoreParameters) - delete(rawMsg, key) case "_rid": err = unpopulate(val, "Rid", &s.Rid) delete(rawMsg, key) @@ -11138,9 +9349,8 @@ func (s *SQLDatabaseGetPropertiesResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SQLDatabaseGetResults. func (s SQLDatabaseGetResults) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", s.ID) - populate(objectMap, "identity", s.Identity) populate(objectMap, "location", s.Location) populate(objectMap, "name", s.Name) populate(objectMap, "properties", s.Properties) @@ -11161,9 +9371,6 @@ func (s *SQLDatabaseGetResults) UnmarshalJSON(data []byte) error { case "id": err = unpopulate(val, "ID", &s.ID) delete(rawMsg, key) - case "identity": - err = unpopulate(val, "Identity", &s.Identity) - delete(rawMsg, key) case "location": err = unpopulate(val, "Location", &s.Location) delete(rawMsg, key) @@ -11189,7 +9396,7 @@ func (s *SQLDatabaseGetResults) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SQLDatabaseListResult. func (s SQLDatabaseListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "value", s.Value) return json.Marshal(objectMap) } @@ -11216,10 +9423,8 @@ func (s *SQLDatabaseListResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SQLDatabaseResource. func (s SQLDatabaseResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) - populate(objectMap, "createMode", s.CreateMode) + objectMap := make(map[string]any) populate(objectMap, "id", s.ID) - populate(objectMap, "restoreParameters", s.RestoreParameters) return json.Marshal(objectMap) } @@ -11232,15 +9437,9 @@ func (s *SQLDatabaseResource) UnmarshalJSON(data []byte) error { for key, val := range rawMsg { var err error switch key { - case "createMode": - err = unpopulate(val, "CreateMode", &s.CreateMode) - delete(rawMsg, key) case "id": err = unpopulate(val, "ID", &s.ID) delete(rawMsg, key) - case "restoreParameters": - err = unpopulate(val, "RestoreParameters", &s.RestoreParameters) - delete(rawMsg, key) } if err != nil { return fmt.Errorf("unmarshalling type %T: %v", s, err) @@ -11251,7 +9450,7 @@ func (s *SQLDatabaseResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SQLDedicatedGatewayRegionalServiceResource. func (s SQLDedicatedGatewayRegionalServiceResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "location", s.Location) populate(objectMap, "name", s.Name) populate(objectMap, "sqlDedicatedGatewayEndpoint", s.SQLDedicatedGatewayEndpoint) @@ -11290,7 +9489,7 @@ func (s *SQLDedicatedGatewayRegionalServiceResource) UnmarshalJSON(data []byte) // MarshalJSON implements the json.Marshaller interface for type SQLDedicatedGatewayServiceResource. func (s SQLDedicatedGatewayServiceResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "properties", s.Properties) return json.Marshal(objectMap) } @@ -11317,7 +9516,7 @@ func (s *SQLDedicatedGatewayServiceResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SQLDedicatedGatewayServiceResourceProperties. func (s SQLDedicatedGatewayServiceResourceProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populateTimeRFC3339(objectMap, "creationTime", s.CreationTime) populate(objectMap, "instanceCount", s.InstanceCount) populate(objectMap, "instanceSize", s.InstanceSize) @@ -11365,10 +9564,10 @@ func (s *SQLDedicatedGatewayServiceResourceProperties) UnmarshalJSON(data []byte delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -11383,7 +9582,7 @@ func (s *SQLDedicatedGatewayServiceResourceProperties) UnmarshalJSON(data []byte // MarshalJSON implements the json.Marshaller interface for type SQLRoleAssignmentCreateUpdateParameters. func (s SQLRoleAssignmentCreateUpdateParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "properties", s.Properties) return json.Marshal(objectMap) } @@ -11410,7 +9609,7 @@ func (s *SQLRoleAssignmentCreateUpdateParameters) UnmarshalJSON(data []byte) err // MarshalJSON implements the json.Marshaller interface for type SQLRoleAssignmentGetResults. func (s SQLRoleAssignmentGetResults) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", s.ID) populate(objectMap, "name", s.Name) populate(objectMap, "properties", s.Properties) @@ -11449,7 +9648,7 @@ func (s *SQLRoleAssignmentGetResults) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SQLRoleAssignmentListResult. func (s SQLRoleAssignmentListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "value", s.Value) return json.Marshal(objectMap) } @@ -11476,7 +9675,7 @@ func (s *SQLRoleAssignmentListResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SQLRoleAssignmentResource. func (s SQLRoleAssignmentResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "principalId", s.PrincipalID) populate(objectMap, "roleDefinitionId", s.RoleDefinitionID) populate(objectMap, "scope", s.Scope) @@ -11511,7 +9710,7 @@ func (s *SQLRoleAssignmentResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SQLRoleDefinitionCreateUpdateParameters. func (s SQLRoleDefinitionCreateUpdateParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "properties", s.Properties) return json.Marshal(objectMap) } @@ -11538,7 +9737,7 @@ func (s *SQLRoleDefinitionCreateUpdateParameters) UnmarshalJSON(data []byte) err // MarshalJSON implements the json.Marshaller interface for type SQLRoleDefinitionGetResults. func (s SQLRoleDefinitionGetResults) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", s.ID) populate(objectMap, "name", s.Name) populate(objectMap, "properties", s.Properties) @@ -11577,7 +9776,7 @@ func (s *SQLRoleDefinitionGetResults) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SQLRoleDefinitionListResult. func (s SQLRoleDefinitionListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "value", s.Value) return json.Marshal(objectMap) } @@ -11604,7 +9803,7 @@ func (s *SQLRoleDefinitionListResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SQLRoleDefinitionResource. func (s SQLRoleDefinitionResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "assignableScopes", s.AssignableScopes) populate(objectMap, "permissions", s.Permissions) populate(objectMap, "roleName", s.RoleName) @@ -11643,9 +9842,8 @@ func (s *SQLRoleDefinitionResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SQLStoredProcedureCreateUpdateParameters. func (s SQLStoredProcedureCreateUpdateParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", s.ID) - populate(objectMap, "identity", s.Identity) populate(objectMap, "location", s.Location) populate(objectMap, "name", s.Name) populate(objectMap, "properties", s.Properties) @@ -11666,9 +9864,6 @@ func (s *SQLStoredProcedureCreateUpdateParameters) UnmarshalJSON(data []byte) er case "id": err = unpopulate(val, "ID", &s.ID) delete(rawMsg, key) - case "identity": - err = unpopulate(val, "Identity", &s.Identity) - delete(rawMsg, key) case "location": err = unpopulate(val, "Location", &s.Location) delete(rawMsg, key) @@ -11694,7 +9889,7 @@ func (s *SQLStoredProcedureCreateUpdateParameters) UnmarshalJSON(data []byte) er // MarshalJSON implements the json.Marshaller interface for type SQLStoredProcedureCreateUpdateProperties. func (s SQLStoredProcedureCreateUpdateProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "options", s.Options) populate(objectMap, "resource", s.Resource) return json.Marshal(objectMap) @@ -11725,7 +9920,7 @@ func (s *SQLStoredProcedureCreateUpdateProperties) UnmarshalJSON(data []byte) er // MarshalJSON implements the json.Marshaller interface for type SQLStoredProcedureGetProperties. func (s SQLStoredProcedureGetProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "resource", s.Resource) return json.Marshal(objectMap) } @@ -11752,7 +9947,7 @@ func (s *SQLStoredProcedureGetProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SQLStoredProcedureGetPropertiesResource. func (s SQLStoredProcedureGetPropertiesResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "body", s.Body) populate(objectMap, "_etag", s.Etag) populate(objectMap, "id", s.ID) @@ -11795,9 +9990,8 @@ func (s *SQLStoredProcedureGetPropertiesResource) UnmarshalJSON(data []byte) err // MarshalJSON implements the json.Marshaller interface for type SQLStoredProcedureGetResults. func (s SQLStoredProcedureGetResults) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", s.ID) - populate(objectMap, "identity", s.Identity) populate(objectMap, "location", s.Location) populate(objectMap, "name", s.Name) populate(objectMap, "properties", s.Properties) @@ -11818,9 +10012,6 @@ func (s *SQLStoredProcedureGetResults) UnmarshalJSON(data []byte) error { case "id": err = unpopulate(val, "ID", &s.ID) delete(rawMsg, key) - case "identity": - err = unpopulate(val, "Identity", &s.Identity) - delete(rawMsg, key) case "location": err = unpopulate(val, "Location", &s.Location) delete(rawMsg, key) @@ -11846,7 +10037,7 @@ func (s *SQLStoredProcedureGetResults) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SQLStoredProcedureListResult. func (s SQLStoredProcedureListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "value", s.Value) return json.Marshal(objectMap) } @@ -11873,7 +10064,7 @@ func (s *SQLStoredProcedureListResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SQLStoredProcedureResource. func (s SQLStoredProcedureResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "body", s.Body) populate(objectMap, "id", s.ID) return json.Marshal(objectMap) @@ -11904,9 +10095,8 @@ func (s *SQLStoredProcedureResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SQLTriggerCreateUpdateParameters. func (s SQLTriggerCreateUpdateParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", s.ID) - populate(objectMap, "identity", s.Identity) populate(objectMap, "location", s.Location) populate(objectMap, "name", s.Name) populate(objectMap, "properties", s.Properties) @@ -11927,9 +10117,6 @@ func (s *SQLTriggerCreateUpdateParameters) UnmarshalJSON(data []byte) error { case "id": err = unpopulate(val, "ID", &s.ID) delete(rawMsg, key) - case "identity": - err = unpopulate(val, "Identity", &s.Identity) - delete(rawMsg, key) case "location": err = unpopulate(val, "Location", &s.Location) delete(rawMsg, key) @@ -11955,7 +10142,7 @@ func (s *SQLTriggerCreateUpdateParameters) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SQLTriggerCreateUpdateProperties. func (s SQLTriggerCreateUpdateProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "options", s.Options) populate(objectMap, "resource", s.Resource) return json.Marshal(objectMap) @@ -11986,7 +10173,7 @@ func (s *SQLTriggerCreateUpdateProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SQLTriggerGetProperties. func (s SQLTriggerGetProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "resource", s.Resource) return json.Marshal(objectMap) } @@ -12013,7 +10200,7 @@ func (s *SQLTriggerGetProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SQLTriggerGetPropertiesResource. func (s SQLTriggerGetPropertiesResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "body", s.Body) populate(objectMap, "_etag", s.Etag) populate(objectMap, "id", s.ID) @@ -12064,9 +10251,8 @@ func (s *SQLTriggerGetPropertiesResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SQLTriggerGetResults. func (s SQLTriggerGetResults) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", s.ID) - populate(objectMap, "identity", s.Identity) populate(objectMap, "location", s.Location) populate(objectMap, "name", s.Name) populate(objectMap, "properties", s.Properties) @@ -12087,9 +10273,6 @@ func (s *SQLTriggerGetResults) UnmarshalJSON(data []byte) error { case "id": err = unpopulate(val, "ID", &s.ID) delete(rawMsg, key) - case "identity": - err = unpopulate(val, "Identity", &s.Identity) - delete(rawMsg, key) case "location": err = unpopulate(val, "Location", &s.Location) delete(rawMsg, key) @@ -12115,7 +10298,7 @@ func (s *SQLTriggerGetResults) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SQLTriggerListResult. func (s SQLTriggerListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "value", s.Value) return json.Marshal(objectMap) } @@ -12142,7 +10325,7 @@ func (s *SQLTriggerListResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SQLTriggerResource. func (s SQLTriggerResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "body", s.Body) populate(objectMap, "id", s.ID) populate(objectMap, "triggerOperation", s.TriggerOperation) @@ -12181,9 +10364,8 @@ func (s *SQLTriggerResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SQLUserDefinedFunctionCreateUpdateParameters. func (s SQLUserDefinedFunctionCreateUpdateParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", s.ID) - populate(objectMap, "identity", s.Identity) populate(objectMap, "location", s.Location) populate(objectMap, "name", s.Name) populate(objectMap, "properties", s.Properties) @@ -12204,9 +10386,6 @@ func (s *SQLUserDefinedFunctionCreateUpdateParameters) UnmarshalJSON(data []byte case "id": err = unpopulate(val, "ID", &s.ID) delete(rawMsg, key) - case "identity": - err = unpopulate(val, "Identity", &s.Identity) - delete(rawMsg, key) case "location": err = unpopulate(val, "Location", &s.Location) delete(rawMsg, key) @@ -12232,7 +10411,7 @@ func (s *SQLUserDefinedFunctionCreateUpdateParameters) UnmarshalJSON(data []byte // MarshalJSON implements the json.Marshaller interface for type SQLUserDefinedFunctionCreateUpdateProperties. func (s SQLUserDefinedFunctionCreateUpdateProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "options", s.Options) populate(objectMap, "resource", s.Resource) return json.Marshal(objectMap) @@ -12263,7 +10442,7 @@ func (s *SQLUserDefinedFunctionCreateUpdateProperties) UnmarshalJSON(data []byte // MarshalJSON implements the json.Marshaller interface for type SQLUserDefinedFunctionGetProperties. func (s SQLUserDefinedFunctionGetProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "resource", s.Resource) return json.Marshal(objectMap) } @@ -12290,7 +10469,7 @@ func (s *SQLUserDefinedFunctionGetProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SQLUserDefinedFunctionGetPropertiesResource. func (s SQLUserDefinedFunctionGetPropertiesResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "body", s.Body) populate(objectMap, "_etag", s.Etag) populate(objectMap, "id", s.ID) @@ -12333,9 +10512,8 @@ func (s *SQLUserDefinedFunctionGetPropertiesResource) UnmarshalJSON(data []byte) // MarshalJSON implements the json.Marshaller interface for type SQLUserDefinedFunctionGetResults. func (s SQLUserDefinedFunctionGetResults) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", s.ID) - populate(objectMap, "identity", s.Identity) populate(objectMap, "location", s.Location) populate(objectMap, "name", s.Name) populate(objectMap, "properties", s.Properties) @@ -12356,9 +10534,6 @@ func (s *SQLUserDefinedFunctionGetResults) UnmarshalJSON(data []byte) error { case "id": err = unpopulate(val, "ID", &s.ID) delete(rawMsg, key) - case "identity": - err = unpopulate(val, "Identity", &s.Identity) - delete(rawMsg, key) case "location": err = unpopulate(val, "Location", &s.Location) delete(rawMsg, key) @@ -12384,7 +10559,7 @@ func (s *SQLUserDefinedFunctionGetResults) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SQLUserDefinedFunctionListResult. func (s SQLUserDefinedFunctionListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "value", s.Value) return json.Marshal(objectMap) } @@ -12411,7 +10586,7 @@ func (s *SQLUserDefinedFunctionListResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SQLUserDefinedFunctionResource. func (s SQLUserDefinedFunctionResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "body", s.Body) populate(objectMap, "id", s.ID) return json.Marshal(objectMap) @@ -12442,7 +10617,7 @@ func (s *SQLUserDefinedFunctionResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SeedNode. func (s SeedNode) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "ipAddress", s.IPAddress) return json.Marshal(objectMap) } @@ -12469,7 +10644,7 @@ func (s *SeedNode) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ServiceResource. func (s ServiceResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", s.ID) populate(objectMap, "name", s.Name) populate(objectMap, "properties", s.Properties) @@ -12508,7 +10683,7 @@ func (s *ServiceResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ServiceResourceCreateUpdateParameters. func (s ServiceResourceCreateUpdateParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "properties", s.Properties) return json.Marshal(objectMap) } @@ -12535,7 +10710,7 @@ func (s *ServiceResourceCreateUpdateParameters) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type ServiceResourceCreateUpdateProperties. func (s ServiceResourceCreateUpdateProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "instanceCount", s.InstanceCount) populate(objectMap, "instanceSize", s.InstanceSize) populate(objectMap, "serviceType", s.ServiceType) @@ -12570,7 +10745,7 @@ func (s *ServiceResourceCreateUpdateProperties) UnmarshalJSON(data []byte) error // MarshalJSON implements the json.Marshaller interface for type ServiceResourceListResult. func (s ServiceResourceListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "value", s.Value) return json.Marshal(objectMap) } @@ -12597,7 +10772,7 @@ func (s *ServiceResourceListResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ServiceResourceProperties. func (s ServiceResourceProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populateTimeRFC3339(objectMap, "creationTime", s.CreationTime) populate(objectMap, "instanceCount", s.InstanceCount) populate(objectMap, "instanceSize", s.InstanceSize) @@ -12637,10 +10812,10 @@ func (s *ServiceResourceProperties) UnmarshalJSON(data []byte) error { delete(rawMsg, key) default: if s.AdditionalProperties == nil { - s.AdditionalProperties = map[string]interface{}{} + s.AdditionalProperties = map[string]any{} } if val != nil { - var aux interface{} + var aux any err = json.Unmarshal(val, &aux) s.AdditionalProperties[key] = aux } @@ -12655,7 +10830,7 @@ func (s *ServiceResourceProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SpatialSpec. func (s SpatialSpec) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "path", s.Path) populate(objectMap, "types", s.Types) return json.Marshal(objectMap) @@ -12686,7 +10861,7 @@ func (s *SpatialSpec) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type SystemData. func (s SystemData) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populateTimeRFC3339(objectMap, "createdAt", s.CreatedAt) populate(objectMap, "createdBy", s.CreatedBy) populate(objectMap, "createdByType", s.CreatedByType) @@ -12733,9 +10908,8 @@ func (s *SystemData) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TableCreateUpdateParameters. func (t TableCreateUpdateParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", t.ID) - populate(objectMap, "identity", t.Identity) populate(objectMap, "location", t.Location) populate(objectMap, "name", t.Name) populate(objectMap, "properties", t.Properties) @@ -12756,9 +10930,6 @@ func (t *TableCreateUpdateParameters) UnmarshalJSON(data []byte) error { case "id": err = unpopulate(val, "ID", &t.ID) delete(rawMsg, key) - case "identity": - err = unpopulate(val, "Identity", &t.Identity) - delete(rawMsg, key) case "location": err = unpopulate(val, "Location", &t.Location) delete(rawMsg, key) @@ -12784,7 +10955,7 @@ func (t *TableCreateUpdateParameters) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TableCreateUpdateProperties. func (t TableCreateUpdateProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "options", t.Options) populate(objectMap, "resource", t.Resource) return json.Marshal(objectMap) @@ -12815,7 +10986,7 @@ func (t *TableCreateUpdateProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TableGetProperties. func (t TableGetProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "options", t.Options) populate(objectMap, "resource", t.Resource) return json.Marshal(objectMap) @@ -12846,7 +11017,7 @@ func (t *TableGetProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TableGetPropertiesOptions. func (t TableGetPropertiesOptions) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "autoscaleSettings", t.AutoscaleSettings) populate(objectMap, "throughput", t.Throughput) return json.Marshal(objectMap) @@ -12877,7 +11048,7 @@ func (t *TableGetPropertiesOptions) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TableGetPropertiesResource. func (t TableGetPropertiesResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "_etag", t.Etag) populate(objectMap, "id", t.ID) populate(objectMap, "_rid", t.Rid) @@ -12916,9 +11087,8 @@ func (t *TableGetPropertiesResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TableGetResults. func (t TableGetResults) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", t.ID) - populate(objectMap, "identity", t.Identity) populate(objectMap, "location", t.Location) populate(objectMap, "name", t.Name) populate(objectMap, "properties", t.Properties) @@ -12939,9 +11109,6 @@ func (t *TableGetResults) UnmarshalJSON(data []byte) error { case "id": err = unpopulate(val, "ID", &t.ID) delete(rawMsg, key) - case "identity": - err = unpopulate(val, "Identity", &t.Identity) - delete(rawMsg, key) case "location": err = unpopulate(val, "Location", &t.Location) delete(rawMsg, key) @@ -12967,7 +11134,7 @@ func (t *TableGetResults) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TableListResult. func (t TableListResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "value", t.Value) return json.Marshal(objectMap) } @@ -12994,7 +11161,7 @@ func (t *TableListResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type TableResource. func (t TableResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", t.ID) return json.Marshal(objectMap) } @@ -13021,7 +11188,7 @@ func (t *TableResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ThroughputPolicyResource. func (t ThroughputPolicyResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "incrementPercent", t.IncrementPercent) populate(objectMap, "isEnabled", t.IsEnabled) return json.Marshal(objectMap) @@ -13052,7 +11219,7 @@ func (t *ThroughputPolicyResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ThroughputSettingsGetProperties. func (t ThroughputSettingsGetProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "resource", t.Resource) return json.Marshal(objectMap) } @@ -13079,7 +11246,7 @@ func (t *ThroughputSettingsGetProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ThroughputSettingsGetPropertiesResource. func (t ThroughputSettingsGetPropertiesResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "autoscaleSettings", t.AutoscaleSettings) populate(objectMap, "_etag", t.Etag) populate(objectMap, "minimumThroughput", t.MinimumThroughput) @@ -13130,9 +11297,8 @@ func (t *ThroughputSettingsGetPropertiesResource) UnmarshalJSON(data []byte) err // MarshalJSON implements the json.Marshaller interface for type ThroughputSettingsGetResults. func (t ThroughputSettingsGetResults) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", t.ID) - populate(objectMap, "identity", t.Identity) populate(objectMap, "location", t.Location) populate(objectMap, "name", t.Name) populate(objectMap, "properties", t.Properties) @@ -13153,9 +11319,6 @@ func (t *ThroughputSettingsGetResults) UnmarshalJSON(data []byte) error { case "id": err = unpopulate(val, "ID", &t.ID) delete(rawMsg, key) - case "identity": - err = unpopulate(val, "Identity", &t.Identity) - delete(rawMsg, key) case "location": err = unpopulate(val, "Location", &t.Location) delete(rawMsg, key) @@ -13181,7 +11344,7 @@ func (t *ThroughputSettingsGetResults) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ThroughputSettingsResource. func (t ThroughputSettingsResource) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "autoscaleSettings", t.AutoscaleSettings) populate(objectMap, "minimumThroughput", t.MinimumThroughput) populate(objectMap, "offerReplacePending", t.OfferReplacePending) @@ -13220,9 +11383,8 @@ func (t *ThroughputSettingsResource) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ThroughputSettingsUpdateParameters. func (t ThroughputSettingsUpdateParameters) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", t.ID) - populate(objectMap, "identity", t.Identity) populate(objectMap, "location", t.Location) populate(objectMap, "name", t.Name) populate(objectMap, "properties", t.Properties) @@ -13243,9 +11405,6 @@ func (t *ThroughputSettingsUpdateParameters) UnmarshalJSON(data []byte) error { case "id": err = unpopulate(val, "ID", &t.ID) delete(rawMsg, key) - case "identity": - err = unpopulate(val, "Identity", &t.Identity) - delete(rawMsg, key) case "location": err = unpopulate(val, "Location", &t.Location) delete(rawMsg, key) @@ -13271,7 +11430,7 @@ func (t *ThroughputSettingsUpdateParameters) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type ThroughputSettingsUpdateProperties. func (t ThroughputSettingsUpdateProperties) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "resource", t.Resource) return json.Marshal(objectMap) } @@ -13298,7 +11457,7 @@ func (t *ThroughputSettingsUpdateProperties) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type UniqueKey. func (u UniqueKey) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "paths", u.Paths) return json.Marshal(objectMap) } @@ -13325,7 +11484,7 @@ func (u *UniqueKey) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type UniqueKeyPolicy. func (u UniqueKeyPolicy) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "uniqueKeys", u.UniqueKeys) return json.Marshal(objectMap) } @@ -13352,7 +11511,7 @@ func (u *UniqueKeyPolicy) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type Usage. func (u Usage) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "currentValue", u.CurrentValue) populate(objectMap, "limit", u.Limit) populate(objectMap, "name", u.Name) @@ -13395,7 +11554,7 @@ func (u *Usage) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type UsagesResult. func (u UsagesResult) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "value", u.Value) return json.Marshal(objectMap) } @@ -13422,7 +11581,7 @@ func (u *UsagesResult) UnmarshalJSON(data []byte) error { // MarshalJSON implements the json.Marshaller interface for type VirtualNetworkRule. func (v VirtualNetworkRule) MarshalJSON() ([]byte, error) { - objectMap := make(map[string]interface{}) + objectMap := make(map[string]any) populate(objectMap, "id", v.ID) populate(objectMap, "ignoreMissingVNetServiceEndpoint", v.IgnoreMissingVNetServiceEndpoint) return json.Marshal(objectMap) @@ -13451,7 +11610,7 @@ func (v *VirtualNetworkRule) UnmarshalJSON(data []byte) error { return nil } -func populate(m map[string]interface{}, k string, v interface{}) { +func populate(m map[string]any, k string, v any) { if v == nil { return } else if azcore.IsNullValue(v) { @@ -13461,7 +11620,7 @@ func populate(m map[string]interface{}, k string, v interface{}) { } } -func populateByteArray(m map[string]interface{}, k string, b []byte, f runtime.Base64Encoding) { +func populateByteArray(m map[string]any, k string, b []byte, f runtime.Base64Encoding) { if azcore.IsNullValue(b) { m[k] = nil } else if len(b) == 0 { @@ -13471,7 +11630,7 @@ func populateByteArray(m map[string]interface{}, k string, b []byte, f runtime.B } } -func unpopulate(data json.RawMessage, fn string, v interface{}) error { +func unpopulate(data json.RawMessage, fn string, v any) error { if data == nil { return nil } diff --git a/sdk/resourcemanager/cosmos/armcosmos/mongodbresources_client.go b/sdk/resourcemanager/cosmos/armcosmos/mongodbresources_client.go index 91023c2c3d50..1561288458df 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/mongodbresources_client.go +++ b/sdk/resourcemanager/cosmos/armcosmos/mongodbresources_client.go @@ -32,9 +32,9 @@ type MongoDBResourcesClient struct { } // NewMongoDBResourcesClient creates a new instance of MongoDBResourcesClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewMongoDBResourcesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*MongoDBResourcesClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,14 +57,15 @@ func NewMongoDBResourcesClient(subscriptionID string, credential azcore.TokenCre // BeginCreateUpdateMongoDBCollection - Create or update an Azure Cosmos DB MongoDB Collection // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseName - Cosmos DB database name. -// collectionName - Cosmos DB collection name. -// createUpdateMongoDBCollectionParameters - The parameters to provide for the current MongoDB Collection. -// options - MongoDBResourcesClientBeginCreateUpdateMongoDBCollectionOptions contains the optional parameters for the MongoDBResourcesClient.BeginCreateUpdateMongoDBCollection -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - databaseName - Cosmos DB database name. +// - collectionName - Cosmos DB collection name. +// - createUpdateMongoDBCollectionParameters - The parameters to provide for the current MongoDB Collection. +// - options - MongoDBResourcesClientBeginCreateUpdateMongoDBCollectionOptions contains the optional parameters for the MongoDBResourcesClient.BeginCreateUpdateMongoDBCollection +// method. func (client *MongoDBResourcesClient) BeginCreateUpdateMongoDBCollection(ctx context.Context, resourceGroupName string, accountName string, databaseName string, collectionName string, createUpdateMongoDBCollectionParameters MongoDBCollectionCreateUpdateParameters, options *MongoDBResourcesClientBeginCreateUpdateMongoDBCollectionOptions) (*runtime.Poller[MongoDBResourcesClientCreateUpdateMongoDBCollectionResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createUpdateMongoDBCollection(ctx, resourceGroupName, accountName, databaseName, collectionName, createUpdateMongoDBCollectionParameters, options) @@ -79,7 +80,8 @@ func (client *MongoDBResourcesClient) BeginCreateUpdateMongoDBCollection(ctx con // CreateUpdateMongoDBCollection - Create or update an Azure Cosmos DB MongoDB Collection // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *MongoDBResourcesClient) createUpdateMongoDBCollection(ctx context.Context, resourceGroupName string, accountName string, databaseName string, collectionName string, createUpdateMongoDBCollectionParameters MongoDBCollectionCreateUpdateParameters, options *MongoDBResourcesClientBeginCreateUpdateMongoDBCollectionOptions) (*http.Response, error) { req, err := client.createUpdateMongoDBCollectionCreateRequest(ctx, resourceGroupName, accountName, databaseName, collectionName, createUpdateMongoDBCollectionParameters, options) if err != nil { @@ -123,7 +125,7 @@ func (client *MongoDBResourcesClient) createUpdateMongoDBCollectionCreateRequest return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, createUpdateMongoDBCollectionParameters) @@ -131,13 +133,14 @@ func (client *MongoDBResourcesClient) createUpdateMongoDBCollectionCreateRequest // BeginCreateUpdateMongoDBDatabase - Create or updates Azure Cosmos DB MongoDB database // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseName - Cosmos DB database name. -// createUpdateMongoDBDatabaseParameters - The parameters to provide for the current MongoDB database. -// options - MongoDBResourcesClientBeginCreateUpdateMongoDBDatabaseOptions contains the optional parameters for the MongoDBResourcesClient.BeginCreateUpdateMongoDBDatabase -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - databaseName - Cosmos DB database name. +// - createUpdateMongoDBDatabaseParameters - The parameters to provide for the current MongoDB database. +// - options - MongoDBResourcesClientBeginCreateUpdateMongoDBDatabaseOptions contains the optional parameters for the MongoDBResourcesClient.BeginCreateUpdateMongoDBDatabase +// method. func (client *MongoDBResourcesClient) BeginCreateUpdateMongoDBDatabase(ctx context.Context, resourceGroupName string, accountName string, databaseName string, createUpdateMongoDBDatabaseParameters MongoDBDatabaseCreateUpdateParameters, options *MongoDBResourcesClientBeginCreateUpdateMongoDBDatabaseOptions) (*runtime.Poller[MongoDBResourcesClientCreateUpdateMongoDBDatabaseResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createUpdateMongoDBDatabase(ctx, resourceGroupName, accountName, databaseName, createUpdateMongoDBDatabaseParameters, options) @@ -152,7 +155,8 @@ func (client *MongoDBResourcesClient) BeginCreateUpdateMongoDBDatabase(ctx conte // CreateUpdateMongoDBDatabase - Create or updates Azure Cosmos DB MongoDB database // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *MongoDBResourcesClient) createUpdateMongoDBDatabase(ctx context.Context, resourceGroupName string, accountName string, databaseName string, createUpdateMongoDBDatabaseParameters MongoDBDatabaseCreateUpdateParameters, options *MongoDBResourcesClientBeginCreateUpdateMongoDBDatabaseOptions) (*http.Response, error) { req, err := client.createUpdateMongoDBDatabaseCreateRequest(ctx, resourceGroupName, accountName, databaseName, createUpdateMongoDBDatabaseParameters, options) if err != nil { @@ -192,7 +196,7 @@ func (client *MongoDBResourcesClient) createUpdateMongoDBDatabaseCreateRequest(c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, createUpdateMongoDBDatabaseParameters) @@ -200,13 +204,14 @@ func (client *MongoDBResourcesClient) createUpdateMongoDBDatabaseCreateRequest(c // BeginCreateUpdateMongoRoleDefinition - Creates or updates an Azure Cosmos DB Mongo Role Definition. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// mongoRoleDefinitionID - The ID for the Role Definition {dbName.roleName}. -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// createUpdateMongoRoleDefinitionParameters - The properties required to create or update a Role Definition. -// options - MongoDBResourcesClientBeginCreateUpdateMongoRoleDefinitionOptions contains the optional parameters for the MongoDBResourcesClient.BeginCreateUpdateMongoRoleDefinition -// method. +// +// Generated from API version 2022-11-15 +// - mongoRoleDefinitionID - The ID for the Role Definition {dbName.roleName}. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - createUpdateMongoRoleDefinitionParameters - The properties required to create or update a Role Definition. +// - options - MongoDBResourcesClientBeginCreateUpdateMongoRoleDefinitionOptions contains the optional parameters for the MongoDBResourcesClient.BeginCreateUpdateMongoRoleDefinition +// method. func (client *MongoDBResourcesClient) BeginCreateUpdateMongoRoleDefinition(ctx context.Context, mongoRoleDefinitionID string, resourceGroupName string, accountName string, createUpdateMongoRoleDefinitionParameters MongoRoleDefinitionCreateUpdateParameters, options *MongoDBResourcesClientBeginCreateUpdateMongoRoleDefinitionOptions) (*runtime.Poller[MongoDBResourcesClientCreateUpdateMongoRoleDefinitionResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createUpdateMongoRoleDefinition(ctx, mongoRoleDefinitionID, resourceGroupName, accountName, createUpdateMongoRoleDefinitionParameters, options) @@ -221,7 +226,8 @@ func (client *MongoDBResourcesClient) BeginCreateUpdateMongoRoleDefinition(ctx c // CreateUpdateMongoRoleDefinition - Creates or updates an Azure Cosmos DB Mongo Role Definition. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *MongoDBResourcesClient) createUpdateMongoRoleDefinition(ctx context.Context, mongoRoleDefinitionID string, resourceGroupName string, accountName string, createUpdateMongoRoleDefinitionParameters MongoRoleDefinitionCreateUpdateParameters, options *MongoDBResourcesClientBeginCreateUpdateMongoRoleDefinitionOptions) (*http.Response, error) { req, err := client.createUpdateMongoRoleDefinitionCreateRequest(ctx, mongoRoleDefinitionID, resourceGroupName, accountName, createUpdateMongoRoleDefinitionParameters, options) if err != nil { @@ -261,7 +267,7 @@ func (client *MongoDBResourcesClient) createUpdateMongoRoleDefinitionCreateReque return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, createUpdateMongoRoleDefinitionParameters) @@ -269,13 +275,14 @@ func (client *MongoDBResourcesClient) createUpdateMongoRoleDefinitionCreateReque // BeginCreateUpdateMongoUserDefinition - Creates or updates an Azure Cosmos DB Mongo User Definition. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// mongoUserDefinitionID - The ID for the User Definition {dbName.userName}. -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// createUpdateMongoUserDefinitionParameters - The properties required to create or update a User Definition. -// options - MongoDBResourcesClientBeginCreateUpdateMongoUserDefinitionOptions contains the optional parameters for the MongoDBResourcesClient.BeginCreateUpdateMongoUserDefinition -// method. +// +// Generated from API version 2022-11-15 +// - mongoUserDefinitionID - The ID for the User Definition {dbName.userName}. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - createUpdateMongoUserDefinitionParameters - The properties required to create or update a User Definition. +// - options - MongoDBResourcesClientBeginCreateUpdateMongoUserDefinitionOptions contains the optional parameters for the MongoDBResourcesClient.BeginCreateUpdateMongoUserDefinition +// method. func (client *MongoDBResourcesClient) BeginCreateUpdateMongoUserDefinition(ctx context.Context, mongoUserDefinitionID string, resourceGroupName string, accountName string, createUpdateMongoUserDefinitionParameters MongoUserDefinitionCreateUpdateParameters, options *MongoDBResourcesClientBeginCreateUpdateMongoUserDefinitionOptions) (*runtime.Poller[MongoDBResourcesClientCreateUpdateMongoUserDefinitionResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createUpdateMongoUserDefinition(ctx, mongoUserDefinitionID, resourceGroupName, accountName, createUpdateMongoUserDefinitionParameters, options) @@ -290,7 +297,8 @@ func (client *MongoDBResourcesClient) BeginCreateUpdateMongoUserDefinition(ctx c // CreateUpdateMongoUserDefinition - Creates or updates an Azure Cosmos DB Mongo User Definition. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *MongoDBResourcesClient) createUpdateMongoUserDefinition(ctx context.Context, mongoUserDefinitionID string, resourceGroupName string, accountName string, createUpdateMongoUserDefinitionParameters MongoUserDefinitionCreateUpdateParameters, options *MongoDBResourcesClientBeginCreateUpdateMongoUserDefinitionOptions) (*http.Response, error) { req, err := client.createUpdateMongoUserDefinitionCreateRequest(ctx, mongoUserDefinitionID, resourceGroupName, accountName, createUpdateMongoUserDefinitionParameters, options) if err != nil { @@ -330,7 +338,7 @@ func (client *MongoDBResourcesClient) createUpdateMongoUserDefinitionCreateReque return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, createUpdateMongoUserDefinitionParameters) @@ -338,13 +346,14 @@ func (client *MongoDBResourcesClient) createUpdateMongoUserDefinitionCreateReque // BeginDeleteMongoDBCollection - Deletes an existing Azure Cosmos DB MongoDB Collection. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseName - Cosmos DB database name. -// collectionName - Cosmos DB collection name. -// options - MongoDBResourcesClientBeginDeleteMongoDBCollectionOptions contains the optional parameters for the MongoDBResourcesClient.BeginDeleteMongoDBCollection -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - databaseName - Cosmos DB database name. +// - collectionName - Cosmos DB collection name. +// - options - MongoDBResourcesClientBeginDeleteMongoDBCollectionOptions contains the optional parameters for the MongoDBResourcesClient.BeginDeleteMongoDBCollection +// method. func (client *MongoDBResourcesClient) BeginDeleteMongoDBCollection(ctx context.Context, resourceGroupName string, accountName string, databaseName string, collectionName string, options *MongoDBResourcesClientBeginDeleteMongoDBCollectionOptions) (*runtime.Poller[MongoDBResourcesClientDeleteMongoDBCollectionResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteMongoDBCollection(ctx, resourceGroupName, accountName, databaseName, collectionName, options) @@ -359,7 +368,8 @@ func (client *MongoDBResourcesClient) BeginDeleteMongoDBCollection(ctx context.C // DeleteMongoDBCollection - Deletes an existing Azure Cosmos DB MongoDB Collection. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *MongoDBResourcesClient) deleteMongoDBCollection(ctx context.Context, resourceGroupName string, accountName string, databaseName string, collectionName string, options *MongoDBResourcesClientBeginDeleteMongoDBCollectionOptions) (*http.Response, error) { req, err := client.deleteMongoDBCollectionCreateRequest(ctx, resourceGroupName, accountName, databaseName, collectionName, options) if err != nil { @@ -403,19 +413,20 @@ func (client *MongoDBResourcesClient) deleteMongoDBCollectionCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() return req, nil } // BeginDeleteMongoDBDatabase - Deletes an existing Azure Cosmos DB MongoDB database. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseName - Cosmos DB database name. -// options - MongoDBResourcesClientBeginDeleteMongoDBDatabaseOptions contains the optional parameters for the MongoDBResourcesClient.BeginDeleteMongoDBDatabase -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - databaseName - Cosmos DB database name. +// - options - MongoDBResourcesClientBeginDeleteMongoDBDatabaseOptions contains the optional parameters for the MongoDBResourcesClient.BeginDeleteMongoDBDatabase +// method. func (client *MongoDBResourcesClient) BeginDeleteMongoDBDatabase(ctx context.Context, resourceGroupName string, accountName string, databaseName string, options *MongoDBResourcesClientBeginDeleteMongoDBDatabaseOptions) (*runtime.Poller[MongoDBResourcesClientDeleteMongoDBDatabaseResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteMongoDBDatabase(ctx, resourceGroupName, accountName, databaseName, options) @@ -430,7 +441,8 @@ func (client *MongoDBResourcesClient) BeginDeleteMongoDBDatabase(ctx context.Con // DeleteMongoDBDatabase - Deletes an existing Azure Cosmos DB MongoDB database. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *MongoDBResourcesClient) deleteMongoDBDatabase(ctx context.Context, resourceGroupName string, accountName string, databaseName string, options *MongoDBResourcesClientBeginDeleteMongoDBDatabaseOptions) (*http.Response, error) { req, err := client.deleteMongoDBDatabaseCreateRequest(ctx, resourceGroupName, accountName, databaseName, options) if err != nil { @@ -470,19 +482,20 @@ func (client *MongoDBResourcesClient) deleteMongoDBDatabaseCreateRequest(ctx con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() return req, nil } // BeginDeleteMongoRoleDefinition - Deletes an existing Azure Cosmos DB Mongo Role Definition. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// mongoRoleDefinitionID - The ID for the Role Definition {dbName.roleName}. -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// options - MongoDBResourcesClientBeginDeleteMongoRoleDefinitionOptions contains the optional parameters for the MongoDBResourcesClient.BeginDeleteMongoRoleDefinition -// method. +// +// Generated from API version 2022-11-15 +// - mongoRoleDefinitionID - The ID for the Role Definition {dbName.roleName}. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - options - MongoDBResourcesClientBeginDeleteMongoRoleDefinitionOptions contains the optional parameters for the MongoDBResourcesClient.BeginDeleteMongoRoleDefinition +// method. func (client *MongoDBResourcesClient) BeginDeleteMongoRoleDefinition(ctx context.Context, mongoRoleDefinitionID string, resourceGroupName string, accountName string, options *MongoDBResourcesClientBeginDeleteMongoRoleDefinitionOptions) (*runtime.Poller[MongoDBResourcesClientDeleteMongoRoleDefinitionResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteMongoRoleDefinition(ctx, mongoRoleDefinitionID, resourceGroupName, accountName, options) @@ -497,7 +510,8 @@ func (client *MongoDBResourcesClient) BeginDeleteMongoRoleDefinition(ctx context // DeleteMongoRoleDefinition - Deletes an existing Azure Cosmos DB Mongo Role Definition. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *MongoDBResourcesClient) deleteMongoRoleDefinition(ctx context.Context, mongoRoleDefinitionID string, resourceGroupName string, accountName string, options *MongoDBResourcesClientBeginDeleteMongoRoleDefinitionOptions) (*http.Response, error) { req, err := client.deleteMongoRoleDefinitionCreateRequest(ctx, mongoRoleDefinitionID, resourceGroupName, accountName, options) if err != nil { @@ -537,7 +551,7 @@ func (client *MongoDBResourcesClient) deleteMongoRoleDefinitionCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -545,12 +559,13 @@ func (client *MongoDBResourcesClient) deleteMongoRoleDefinitionCreateRequest(ctx // BeginDeleteMongoUserDefinition - Deletes an existing Azure Cosmos DB Mongo User Definition. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// mongoUserDefinitionID - The ID for the User Definition {dbName.userName}. -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// options - MongoDBResourcesClientBeginDeleteMongoUserDefinitionOptions contains the optional parameters for the MongoDBResourcesClient.BeginDeleteMongoUserDefinition -// method. +// +// Generated from API version 2022-11-15 +// - mongoUserDefinitionID - The ID for the User Definition {dbName.userName}. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - options - MongoDBResourcesClientBeginDeleteMongoUserDefinitionOptions contains the optional parameters for the MongoDBResourcesClient.BeginDeleteMongoUserDefinition +// method. func (client *MongoDBResourcesClient) BeginDeleteMongoUserDefinition(ctx context.Context, mongoUserDefinitionID string, resourceGroupName string, accountName string, options *MongoDBResourcesClientBeginDeleteMongoUserDefinitionOptions) (*runtime.Poller[MongoDBResourcesClientDeleteMongoUserDefinitionResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteMongoUserDefinition(ctx, mongoUserDefinitionID, resourceGroupName, accountName, options) @@ -565,7 +580,8 @@ func (client *MongoDBResourcesClient) BeginDeleteMongoUserDefinition(ctx context // DeleteMongoUserDefinition - Deletes an existing Azure Cosmos DB Mongo User Definition. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *MongoDBResourcesClient) deleteMongoUserDefinition(ctx context.Context, mongoUserDefinitionID string, resourceGroupName string, accountName string, options *MongoDBResourcesClientBeginDeleteMongoUserDefinitionOptions) (*http.Response, error) { req, err := client.deleteMongoUserDefinitionCreateRequest(ctx, mongoUserDefinitionID, resourceGroupName, accountName, options) if err != nil { @@ -605,7 +621,7 @@ func (client *MongoDBResourcesClient) deleteMongoUserDefinitionCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -613,13 +629,14 @@ func (client *MongoDBResourcesClient) deleteMongoUserDefinitionCreateRequest(ctx // GetMongoDBCollection - Gets the MongoDB collection under an existing Azure Cosmos DB database account. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseName - Cosmos DB database name. -// collectionName - Cosmos DB collection name. -// options - MongoDBResourcesClientGetMongoDBCollectionOptions contains the optional parameters for the MongoDBResourcesClient.GetMongoDBCollection -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - databaseName - Cosmos DB database name. +// - collectionName - Cosmos DB collection name. +// - options - MongoDBResourcesClientGetMongoDBCollectionOptions contains the optional parameters for the MongoDBResourcesClient.GetMongoDBCollection +// method. func (client *MongoDBResourcesClient) GetMongoDBCollection(ctx context.Context, resourceGroupName string, accountName string, databaseName string, collectionName string, options *MongoDBResourcesClientGetMongoDBCollectionOptions) (MongoDBResourcesClientGetMongoDBCollectionResponse, error) { req, err := client.getMongoDBCollectionCreateRequest(ctx, resourceGroupName, accountName, databaseName, collectionName, options) if err != nil { @@ -663,7 +680,7 @@ func (client *MongoDBResourcesClient) getMongoDBCollectionCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -681,13 +698,14 @@ func (client *MongoDBResourcesClient) getMongoDBCollectionHandleResponse(resp *h // GetMongoDBCollectionThroughput - Gets the RUs per second of the MongoDB collection under an existing Azure Cosmos DB database // account with the provided name. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseName - Cosmos DB database name. -// collectionName - Cosmos DB collection name. -// options - MongoDBResourcesClientGetMongoDBCollectionThroughputOptions contains the optional parameters for the MongoDBResourcesClient.GetMongoDBCollectionThroughput -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - databaseName - Cosmos DB database name. +// - collectionName - Cosmos DB collection name. +// - options - MongoDBResourcesClientGetMongoDBCollectionThroughputOptions contains the optional parameters for the MongoDBResourcesClient.GetMongoDBCollectionThroughput +// method. func (client *MongoDBResourcesClient) GetMongoDBCollectionThroughput(ctx context.Context, resourceGroupName string, accountName string, databaseName string, collectionName string, options *MongoDBResourcesClientGetMongoDBCollectionThroughputOptions) (MongoDBResourcesClientGetMongoDBCollectionThroughputResponse, error) { req, err := client.getMongoDBCollectionThroughputCreateRequest(ctx, resourceGroupName, accountName, databaseName, collectionName, options) if err != nil { @@ -731,7 +749,7 @@ func (client *MongoDBResourcesClient) getMongoDBCollectionThroughputCreateReques return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -748,12 +766,13 @@ func (client *MongoDBResourcesClient) getMongoDBCollectionThroughputHandleRespon // GetMongoDBDatabase - Gets the MongoDB databases under an existing Azure Cosmos DB database account with the provided name. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseName - Cosmos DB database name. -// options - MongoDBResourcesClientGetMongoDBDatabaseOptions contains the optional parameters for the MongoDBResourcesClient.GetMongoDBDatabase -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - databaseName - Cosmos DB database name. +// - options - MongoDBResourcesClientGetMongoDBDatabaseOptions contains the optional parameters for the MongoDBResourcesClient.GetMongoDBDatabase +// method. func (client *MongoDBResourcesClient) GetMongoDBDatabase(ctx context.Context, resourceGroupName string, accountName string, databaseName string, options *MongoDBResourcesClientGetMongoDBDatabaseOptions) (MongoDBResourcesClientGetMongoDBDatabaseResponse, error) { req, err := client.getMongoDBDatabaseCreateRequest(ctx, resourceGroupName, accountName, databaseName, options) if err != nil { @@ -793,7 +812,7 @@ func (client *MongoDBResourcesClient) getMongoDBDatabaseCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -811,12 +830,13 @@ func (client *MongoDBResourcesClient) getMongoDBDatabaseHandleResponse(resp *htt // GetMongoDBDatabaseThroughput - Gets the RUs per second of the MongoDB database under an existing Azure Cosmos DB database // account with the provided name. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseName - Cosmos DB database name. -// options - MongoDBResourcesClientGetMongoDBDatabaseThroughputOptions contains the optional parameters for the MongoDBResourcesClient.GetMongoDBDatabaseThroughput -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - databaseName - Cosmos DB database name. +// - options - MongoDBResourcesClientGetMongoDBDatabaseThroughputOptions contains the optional parameters for the MongoDBResourcesClient.GetMongoDBDatabaseThroughput +// method. func (client *MongoDBResourcesClient) GetMongoDBDatabaseThroughput(ctx context.Context, resourceGroupName string, accountName string, databaseName string, options *MongoDBResourcesClientGetMongoDBDatabaseThroughputOptions) (MongoDBResourcesClientGetMongoDBDatabaseThroughputResponse, error) { req, err := client.getMongoDBDatabaseThroughputCreateRequest(ctx, resourceGroupName, accountName, databaseName, options) if err != nil { @@ -856,7 +876,7 @@ func (client *MongoDBResourcesClient) getMongoDBDatabaseThroughputCreateRequest( return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -873,12 +893,13 @@ func (client *MongoDBResourcesClient) getMongoDBDatabaseThroughputHandleResponse // GetMongoRoleDefinition - Retrieves the properties of an existing Azure Cosmos DB Mongo Role Definition with the given Id. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// mongoRoleDefinitionID - The ID for the Role Definition {dbName.roleName}. -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// options - MongoDBResourcesClientGetMongoRoleDefinitionOptions contains the optional parameters for the MongoDBResourcesClient.GetMongoRoleDefinition -// method. +// +// Generated from API version 2022-11-15 +// - mongoRoleDefinitionID - The ID for the Role Definition {dbName.roleName}. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - options - MongoDBResourcesClientGetMongoRoleDefinitionOptions contains the optional parameters for the MongoDBResourcesClient.GetMongoRoleDefinition +// method. func (client *MongoDBResourcesClient) GetMongoRoleDefinition(ctx context.Context, mongoRoleDefinitionID string, resourceGroupName string, accountName string, options *MongoDBResourcesClientGetMongoRoleDefinitionOptions) (MongoDBResourcesClientGetMongoRoleDefinitionResponse, error) { req, err := client.getMongoRoleDefinitionCreateRequest(ctx, mongoRoleDefinitionID, resourceGroupName, accountName, options) if err != nil { @@ -918,7 +939,7 @@ func (client *MongoDBResourcesClient) getMongoRoleDefinitionCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -935,12 +956,13 @@ func (client *MongoDBResourcesClient) getMongoRoleDefinitionHandleResponse(resp // GetMongoUserDefinition - Retrieves the properties of an existing Azure Cosmos DB Mongo User Definition with the given Id. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// mongoUserDefinitionID - The ID for the User Definition {dbName.userName}. -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// options - MongoDBResourcesClientGetMongoUserDefinitionOptions contains the optional parameters for the MongoDBResourcesClient.GetMongoUserDefinition -// method. +// +// Generated from API version 2022-11-15 +// - mongoUserDefinitionID - The ID for the User Definition {dbName.userName}. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - options - MongoDBResourcesClientGetMongoUserDefinitionOptions contains the optional parameters for the MongoDBResourcesClient.GetMongoUserDefinition +// method. func (client *MongoDBResourcesClient) GetMongoUserDefinition(ctx context.Context, mongoUserDefinitionID string, resourceGroupName string, accountName string, options *MongoDBResourcesClientGetMongoUserDefinitionOptions) (MongoDBResourcesClientGetMongoUserDefinitionResponse, error) { req, err := client.getMongoUserDefinitionCreateRequest(ctx, mongoUserDefinitionID, resourceGroupName, accountName, options) if err != nil { @@ -980,7 +1002,7 @@ func (client *MongoDBResourcesClient) getMongoUserDefinitionCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -995,89 +1017,14 @@ func (client *MongoDBResourcesClient) getMongoUserDefinitionHandleResponse(resp return result, nil } -// BeginListMongoDBCollectionPartitionMerge - Merges the partitions of a MongoDB Collection -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseName - Cosmos DB database name. -// collectionName - Cosmos DB collection name. -// mergeParameters - The parameters for the merge operation. -// options - MongoDBResourcesClientBeginListMongoDBCollectionPartitionMergeOptions contains the optional parameters for the -// MongoDBResourcesClient.BeginListMongoDBCollectionPartitionMerge method. -func (client *MongoDBResourcesClient) BeginListMongoDBCollectionPartitionMerge(ctx context.Context, resourceGroupName string, accountName string, databaseName string, collectionName string, mergeParameters MergeParameters, options *MongoDBResourcesClientBeginListMongoDBCollectionPartitionMergeOptions) (*runtime.Poller[MongoDBResourcesClientListMongoDBCollectionPartitionMergeResponse], error) { - if options == nil || options.ResumeToken == "" { - resp, err := client.listMongoDBCollectionPartitionMerge(ctx, resourceGroupName, accountName, databaseName, collectionName, mergeParameters, options) - if err != nil { - return nil, err - } - return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[MongoDBResourcesClientListMongoDBCollectionPartitionMergeResponse]{ - FinalStateVia: runtime.FinalStateViaLocation, - }) - } else { - return runtime.NewPollerFromResumeToken[MongoDBResourcesClientListMongoDBCollectionPartitionMergeResponse](options.ResumeToken, client.pl, nil) - } -} - -// ListMongoDBCollectionPartitionMerge - Merges the partitions of a MongoDB Collection -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -func (client *MongoDBResourcesClient) listMongoDBCollectionPartitionMerge(ctx context.Context, resourceGroupName string, accountName string, databaseName string, collectionName string, mergeParameters MergeParameters, options *MongoDBResourcesClientBeginListMongoDBCollectionPartitionMergeOptions) (*http.Response, error) { - req, err := client.listMongoDBCollectionPartitionMergeCreateRequest(ctx, resourceGroupName, accountName, databaseName, collectionName, mergeParameters, options) - if err != nil { - return nil, err - } - resp, err := client.pl.Do(req) - if err != nil { - return nil, err - } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) - } - return resp, nil -} - -// listMongoDBCollectionPartitionMergeCreateRequest creates the ListMongoDBCollectionPartitionMerge request. -func (client *MongoDBResourcesClient) listMongoDBCollectionPartitionMergeCreateRequest(ctx context.Context, resourceGroupName string, accountName string, databaseName string, collectionName string, mergeParameters MergeParameters, options *MongoDBResourcesClientBeginListMongoDBCollectionPartitionMergeOptions) (*policy.Request, error) { - urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/collections/{collectionName}/partitionMerge" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - if resourceGroupName == "" { - return nil, errors.New("parameter resourceGroupName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) - if accountName == "" { - return nil, errors.New("parameter accountName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{accountName}", url.PathEscape(accountName)) - if databaseName == "" { - return nil, errors.New("parameter databaseName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{databaseName}", url.PathEscape(databaseName)) - if collectionName == "" { - return nil, errors.New("parameter collectionName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{collectionName}", url.PathEscape(collectionName)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) - if err != nil { - return nil, err - } - reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") - req.Raw().URL.RawQuery = reqQP.Encode() - req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, mergeParameters) -} - // NewListMongoDBCollectionsPager - Lists the MongoDB collection under an existing Azure Cosmos DB database account. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseName - Cosmos DB database name. -// options - MongoDBResourcesClientListMongoDBCollectionsOptions contains the optional parameters for the MongoDBResourcesClient.ListMongoDBCollections -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - databaseName - Cosmos DB database name. +// - options - MongoDBResourcesClientListMongoDBCollectionsOptions contains the optional parameters for the MongoDBResourcesClient.NewListMongoDBCollectionsPager +// method. func (client *MongoDBResourcesClient) NewListMongoDBCollectionsPager(resourceGroupName string, accountName string, databaseName string, options *MongoDBResourcesClientListMongoDBCollectionsOptions) *runtime.Pager[MongoDBResourcesClientListMongoDBCollectionsResponse] { return runtime.NewPager(runtime.PagingHandler[MongoDBResourcesClientListMongoDBCollectionsResponse]{ More: func(page MongoDBResourcesClientListMongoDBCollectionsResponse) bool { @@ -1124,7 +1071,7 @@ func (client *MongoDBResourcesClient) listMongoDBCollectionsCreateRequest(ctx co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1140,11 +1087,12 @@ func (client *MongoDBResourcesClient) listMongoDBCollectionsHandleResponse(resp } // NewListMongoDBDatabasesPager - Lists the MongoDB databases under an existing Azure Cosmos DB database account. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// options - MongoDBResourcesClientListMongoDBDatabasesOptions contains the optional parameters for the MongoDBResourcesClient.ListMongoDBDatabases -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - options - MongoDBResourcesClientListMongoDBDatabasesOptions contains the optional parameters for the MongoDBResourcesClient.NewListMongoDBDatabasesPager +// method. func (client *MongoDBResourcesClient) NewListMongoDBDatabasesPager(resourceGroupName string, accountName string, options *MongoDBResourcesClientListMongoDBDatabasesOptions) *runtime.Pager[MongoDBResourcesClientListMongoDBDatabasesResponse] { return runtime.NewPager(runtime.PagingHandler[MongoDBResourcesClientListMongoDBDatabasesResponse]{ More: func(page MongoDBResourcesClientListMongoDBDatabasesResponse) bool { @@ -1187,7 +1135,7 @@ func (client *MongoDBResourcesClient) listMongoDBDatabasesCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1203,11 +1151,12 @@ func (client *MongoDBResourcesClient) listMongoDBDatabasesHandleResponse(resp *h } // NewListMongoRoleDefinitionsPager - Retrieves the list of all Azure Cosmos DB Mongo Role Definitions. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// options - MongoDBResourcesClientListMongoRoleDefinitionsOptions contains the optional parameters for the MongoDBResourcesClient.ListMongoRoleDefinitions -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - options - MongoDBResourcesClientListMongoRoleDefinitionsOptions contains the optional parameters for the MongoDBResourcesClient.NewListMongoRoleDefinitionsPager +// method. func (client *MongoDBResourcesClient) NewListMongoRoleDefinitionsPager(resourceGroupName string, accountName string, options *MongoDBResourcesClientListMongoRoleDefinitionsOptions) *runtime.Pager[MongoDBResourcesClientListMongoRoleDefinitionsResponse] { return runtime.NewPager(runtime.PagingHandler[MongoDBResourcesClientListMongoRoleDefinitionsResponse]{ More: func(page MongoDBResourcesClientListMongoRoleDefinitionsResponse) bool { @@ -1250,7 +1199,7 @@ func (client *MongoDBResourcesClient) listMongoRoleDefinitionsCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1266,11 +1215,12 @@ func (client *MongoDBResourcesClient) listMongoRoleDefinitionsHandleResponse(res } // NewListMongoUserDefinitionsPager - Retrieves the list of all Azure Cosmos DB Mongo User Definition. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// options - MongoDBResourcesClientListMongoUserDefinitionsOptions contains the optional parameters for the MongoDBResourcesClient.ListMongoUserDefinitions -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - options - MongoDBResourcesClientListMongoUserDefinitionsOptions contains the optional parameters for the MongoDBResourcesClient.NewListMongoUserDefinitionsPager +// method. func (client *MongoDBResourcesClient) NewListMongoUserDefinitionsPager(resourceGroupName string, accountName string, options *MongoDBResourcesClientListMongoUserDefinitionsOptions) *runtime.Pager[MongoDBResourcesClientListMongoUserDefinitionsResponse] { return runtime.NewPager(runtime.PagingHandler[MongoDBResourcesClientListMongoUserDefinitionsResponse]{ More: func(page MongoDBResourcesClientListMongoUserDefinitionsResponse) bool { @@ -1313,7 +1263,7 @@ func (client *MongoDBResourcesClient) listMongoUserDefinitionsCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1330,13 +1280,14 @@ func (client *MongoDBResourcesClient) listMongoUserDefinitionsHandleResponse(res // BeginMigrateMongoDBCollectionToAutoscale - Migrate an Azure Cosmos DB MongoDB collection from manual throughput to autoscale // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseName - Cosmos DB database name. -// collectionName - Cosmos DB collection name. -// options - MongoDBResourcesClientBeginMigrateMongoDBCollectionToAutoscaleOptions contains the optional parameters for the -// MongoDBResourcesClient.BeginMigrateMongoDBCollectionToAutoscale method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - databaseName - Cosmos DB database name. +// - collectionName - Cosmos DB collection name. +// - options - MongoDBResourcesClientBeginMigrateMongoDBCollectionToAutoscaleOptions contains the optional parameters for the +// MongoDBResourcesClient.BeginMigrateMongoDBCollectionToAutoscale method. func (client *MongoDBResourcesClient) BeginMigrateMongoDBCollectionToAutoscale(ctx context.Context, resourceGroupName string, accountName string, databaseName string, collectionName string, options *MongoDBResourcesClientBeginMigrateMongoDBCollectionToAutoscaleOptions) (*runtime.Poller[MongoDBResourcesClientMigrateMongoDBCollectionToAutoscaleResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.migrateMongoDBCollectionToAutoscale(ctx, resourceGroupName, accountName, databaseName, collectionName, options) @@ -1351,7 +1302,8 @@ func (client *MongoDBResourcesClient) BeginMigrateMongoDBCollectionToAutoscale(c // MigrateMongoDBCollectionToAutoscale - Migrate an Azure Cosmos DB MongoDB collection from manual throughput to autoscale // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *MongoDBResourcesClient) migrateMongoDBCollectionToAutoscale(ctx context.Context, resourceGroupName string, accountName string, databaseName string, collectionName string, options *MongoDBResourcesClientBeginMigrateMongoDBCollectionToAutoscaleOptions) (*http.Response, error) { req, err := client.migrateMongoDBCollectionToAutoscaleCreateRequest(ctx, resourceGroupName, accountName, databaseName, collectionName, options) if err != nil { @@ -1395,7 +1347,7 @@ func (client *MongoDBResourcesClient) migrateMongoDBCollectionToAutoscaleCreateR return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1404,13 +1356,14 @@ func (client *MongoDBResourcesClient) migrateMongoDBCollectionToAutoscaleCreateR // BeginMigrateMongoDBCollectionToManualThroughput - Migrate an Azure Cosmos DB MongoDB collection from autoscale to manual // throughput // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseName - Cosmos DB database name. -// collectionName - Cosmos DB collection name. -// options - MongoDBResourcesClientBeginMigrateMongoDBCollectionToManualThroughputOptions contains the optional parameters -// for the MongoDBResourcesClient.BeginMigrateMongoDBCollectionToManualThroughput method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - databaseName - Cosmos DB database name. +// - collectionName - Cosmos DB collection name. +// - options - MongoDBResourcesClientBeginMigrateMongoDBCollectionToManualThroughputOptions contains the optional parameters +// for the MongoDBResourcesClient.BeginMigrateMongoDBCollectionToManualThroughput method. func (client *MongoDBResourcesClient) BeginMigrateMongoDBCollectionToManualThroughput(ctx context.Context, resourceGroupName string, accountName string, databaseName string, collectionName string, options *MongoDBResourcesClientBeginMigrateMongoDBCollectionToManualThroughputOptions) (*runtime.Poller[MongoDBResourcesClientMigrateMongoDBCollectionToManualThroughputResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.migrateMongoDBCollectionToManualThroughput(ctx, resourceGroupName, accountName, databaseName, collectionName, options) @@ -1425,7 +1378,8 @@ func (client *MongoDBResourcesClient) BeginMigrateMongoDBCollectionToManualThrou // MigrateMongoDBCollectionToManualThroughput - Migrate an Azure Cosmos DB MongoDB collection from autoscale to manual throughput // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *MongoDBResourcesClient) migrateMongoDBCollectionToManualThroughput(ctx context.Context, resourceGroupName string, accountName string, databaseName string, collectionName string, options *MongoDBResourcesClientBeginMigrateMongoDBCollectionToManualThroughputOptions) (*http.Response, error) { req, err := client.migrateMongoDBCollectionToManualThroughputCreateRequest(ctx, resourceGroupName, accountName, databaseName, collectionName, options) if err != nil { @@ -1469,7 +1423,7 @@ func (client *MongoDBResourcesClient) migrateMongoDBCollectionToManualThroughput return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1477,12 +1431,13 @@ func (client *MongoDBResourcesClient) migrateMongoDBCollectionToManualThroughput // BeginMigrateMongoDBDatabaseToAutoscale - Migrate an Azure Cosmos DB MongoDB database from manual throughput to autoscale // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseName - Cosmos DB database name. -// options - MongoDBResourcesClientBeginMigrateMongoDBDatabaseToAutoscaleOptions contains the optional parameters for the -// MongoDBResourcesClient.BeginMigrateMongoDBDatabaseToAutoscale method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - databaseName - Cosmos DB database name. +// - options - MongoDBResourcesClientBeginMigrateMongoDBDatabaseToAutoscaleOptions contains the optional parameters for the +// MongoDBResourcesClient.BeginMigrateMongoDBDatabaseToAutoscale method. func (client *MongoDBResourcesClient) BeginMigrateMongoDBDatabaseToAutoscale(ctx context.Context, resourceGroupName string, accountName string, databaseName string, options *MongoDBResourcesClientBeginMigrateMongoDBDatabaseToAutoscaleOptions) (*runtime.Poller[MongoDBResourcesClientMigrateMongoDBDatabaseToAutoscaleResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.migrateMongoDBDatabaseToAutoscale(ctx, resourceGroupName, accountName, databaseName, options) @@ -1497,7 +1452,8 @@ func (client *MongoDBResourcesClient) BeginMigrateMongoDBDatabaseToAutoscale(ctx // MigrateMongoDBDatabaseToAutoscale - Migrate an Azure Cosmos DB MongoDB database from manual throughput to autoscale // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *MongoDBResourcesClient) migrateMongoDBDatabaseToAutoscale(ctx context.Context, resourceGroupName string, accountName string, databaseName string, options *MongoDBResourcesClientBeginMigrateMongoDBDatabaseToAutoscaleOptions) (*http.Response, error) { req, err := client.migrateMongoDBDatabaseToAutoscaleCreateRequest(ctx, resourceGroupName, accountName, databaseName, options) if err != nil { @@ -1537,7 +1493,7 @@ func (client *MongoDBResourcesClient) migrateMongoDBDatabaseToAutoscaleCreateReq return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1545,12 +1501,13 @@ func (client *MongoDBResourcesClient) migrateMongoDBDatabaseToAutoscaleCreateReq // BeginMigrateMongoDBDatabaseToManualThroughput - Migrate an Azure Cosmos DB MongoDB database from autoscale to manual throughput // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseName - Cosmos DB database name. -// options - MongoDBResourcesClientBeginMigrateMongoDBDatabaseToManualThroughputOptions contains the optional parameters for -// the MongoDBResourcesClient.BeginMigrateMongoDBDatabaseToManualThroughput method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - databaseName - Cosmos DB database name. +// - options - MongoDBResourcesClientBeginMigrateMongoDBDatabaseToManualThroughputOptions contains the optional parameters for +// the MongoDBResourcesClient.BeginMigrateMongoDBDatabaseToManualThroughput method. func (client *MongoDBResourcesClient) BeginMigrateMongoDBDatabaseToManualThroughput(ctx context.Context, resourceGroupName string, accountName string, databaseName string, options *MongoDBResourcesClientBeginMigrateMongoDBDatabaseToManualThroughputOptions) (*runtime.Poller[MongoDBResourcesClientMigrateMongoDBDatabaseToManualThroughputResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.migrateMongoDBDatabaseToManualThroughput(ctx, resourceGroupName, accountName, databaseName, options) @@ -1565,7 +1522,8 @@ func (client *MongoDBResourcesClient) BeginMigrateMongoDBDatabaseToManualThrough // MigrateMongoDBDatabaseToManualThroughput - Migrate an Azure Cosmos DB MongoDB database from autoscale to manual throughput // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *MongoDBResourcesClient) migrateMongoDBDatabaseToManualThroughput(ctx context.Context, resourceGroupName string, accountName string, databaseName string, options *MongoDBResourcesClientBeginMigrateMongoDBDatabaseToManualThroughputOptions) (*http.Response, error) { req, err := client.migrateMongoDBDatabaseToManualThroughputCreateRequest(ctx, resourceGroupName, accountName, databaseName, options) if err != nil { @@ -1605,318 +1563,23 @@ func (client *MongoDBResourcesClient) migrateMongoDBDatabaseToManualThroughputCr return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil } -// BeginMongoDBContainerRedistributeThroughput - Redistribute throughput for an Azure Cosmos DB MongoDB container -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseName - Cosmos DB database name. -// collectionName - Cosmos DB collection name. -// redistributeThroughputParameters - The parameters to provide for redistributing throughput for the current MongoDB container. -// options - MongoDBResourcesClientBeginMongoDBContainerRedistributeThroughputOptions contains the optional parameters for -// the MongoDBResourcesClient.BeginMongoDBContainerRedistributeThroughput method. -func (client *MongoDBResourcesClient) BeginMongoDBContainerRedistributeThroughput(ctx context.Context, resourceGroupName string, accountName string, databaseName string, collectionName string, redistributeThroughputParameters RedistributeThroughputParameters, options *MongoDBResourcesClientBeginMongoDBContainerRedistributeThroughputOptions) (*runtime.Poller[MongoDBResourcesClientMongoDBContainerRedistributeThroughputResponse], error) { - if options == nil || options.ResumeToken == "" { - resp, err := client.mongoDBContainerRedistributeThroughput(ctx, resourceGroupName, accountName, databaseName, collectionName, redistributeThroughputParameters, options) - if err != nil { - return nil, err - } - return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[MongoDBResourcesClientMongoDBContainerRedistributeThroughputResponse]{ - FinalStateVia: runtime.FinalStateViaLocation, - }) - } else { - return runtime.NewPollerFromResumeToken[MongoDBResourcesClientMongoDBContainerRedistributeThroughputResponse](options.ResumeToken, client.pl, nil) - } -} - -// MongoDBContainerRedistributeThroughput - Redistribute throughput for an Azure Cosmos DB MongoDB container -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -func (client *MongoDBResourcesClient) mongoDBContainerRedistributeThroughput(ctx context.Context, resourceGroupName string, accountName string, databaseName string, collectionName string, redistributeThroughputParameters RedistributeThroughputParameters, options *MongoDBResourcesClientBeginMongoDBContainerRedistributeThroughputOptions) (*http.Response, error) { - req, err := client.mongoDBContainerRedistributeThroughputCreateRequest(ctx, resourceGroupName, accountName, databaseName, collectionName, redistributeThroughputParameters, options) - if err != nil { - return nil, err - } - resp, err := client.pl.Do(req) - if err != nil { - return nil, err - } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) - } - return resp, nil -} - -// mongoDBContainerRedistributeThroughputCreateRequest creates the MongoDBContainerRedistributeThroughput request. -func (client *MongoDBResourcesClient) mongoDBContainerRedistributeThroughputCreateRequest(ctx context.Context, resourceGroupName string, accountName string, databaseName string, collectionName string, redistributeThroughputParameters RedistributeThroughputParameters, options *MongoDBResourcesClientBeginMongoDBContainerRedistributeThroughputOptions) (*policy.Request, error) { - urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/collections/{collectionName}/throughputSettings/default/redistributeThroughput" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - if resourceGroupName == "" { - return nil, errors.New("parameter resourceGroupName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) - if accountName == "" { - return nil, errors.New("parameter accountName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{accountName}", url.PathEscape(accountName)) - if databaseName == "" { - return nil, errors.New("parameter databaseName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{databaseName}", url.PathEscape(databaseName)) - if collectionName == "" { - return nil, errors.New("parameter collectionName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{collectionName}", url.PathEscape(collectionName)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) - if err != nil { - return nil, err - } - reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") - req.Raw().URL.RawQuery = reqQP.Encode() - req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, redistributeThroughputParameters) -} - -// BeginMongoDBContainerRetrieveThroughputDistribution - Retrieve throughput distribution for an Azure Cosmos DB MongoDB container -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseName - Cosmos DB database name. -// collectionName - Cosmos DB collection name. -// retrieveThroughputParameters - The parameters to provide for retrieving throughput distribution for the current MongoDB -// container. -// options - MongoDBResourcesClientBeginMongoDBContainerRetrieveThroughputDistributionOptions contains the optional parameters -// for the MongoDBResourcesClient.BeginMongoDBContainerRetrieveThroughputDistribution method. -func (client *MongoDBResourcesClient) BeginMongoDBContainerRetrieveThroughputDistribution(ctx context.Context, resourceGroupName string, accountName string, databaseName string, collectionName string, retrieveThroughputParameters RetrieveThroughputParameters, options *MongoDBResourcesClientBeginMongoDBContainerRetrieveThroughputDistributionOptions) (*runtime.Poller[MongoDBResourcesClientMongoDBContainerRetrieveThroughputDistributionResponse], error) { - if options == nil || options.ResumeToken == "" { - resp, err := client.mongoDBContainerRetrieveThroughputDistribution(ctx, resourceGroupName, accountName, databaseName, collectionName, retrieveThroughputParameters, options) - if err != nil { - return nil, err - } - return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[MongoDBResourcesClientMongoDBContainerRetrieveThroughputDistributionResponse]{ - FinalStateVia: runtime.FinalStateViaLocation, - }) - } else { - return runtime.NewPollerFromResumeToken[MongoDBResourcesClientMongoDBContainerRetrieveThroughputDistributionResponse](options.ResumeToken, client.pl, nil) - } -} - -// MongoDBContainerRetrieveThroughputDistribution - Retrieve throughput distribution for an Azure Cosmos DB MongoDB container -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -func (client *MongoDBResourcesClient) mongoDBContainerRetrieveThroughputDistribution(ctx context.Context, resourceGroupName string, accountName string, databaseName string, collectionName string, retrieveThroughputParameters RetrieveThroughputParameters, options *MongoDBResourcesClientBeginMongoDBContainerRetrieveThroughputDistributionOptions) (*http.Response, error) { - req, err := client.mongoDBContainerRetrieveThroughputDistributionCreateRequest(ctx, resourceGroupName, accountName, databaseName, collectionName, retrieveThroughputParameters, options) - if err != nil { - return nil, err - } - resp, err := client.pl.Do(req) - if err != nil { - return nil, err - } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) - } - return resp, nil -} - -// mongoDBContainerRetrieveThroughputDistributionCreateRequest creates the MongoDBContainerRetrieveThroughputDistribution request. -func (client *MongoDBResourcesClient) mongoDBContainerRetrieveThroughputDistributionCreateRequest(ctx context.Context, resourceGroupName string, accountName string, databaseName string, collectionName string, retrieveThroughputParameters RetrieveThroughputParameters, options *MongoDBResourcesClientBeginMongoDBContainerRetrieveThroughputDistributionOptions) (*policy.Request, error) { - urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/collections/{collectionName}/throughputSettings/default/retrieveThroughputDistribution" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - if resourceGroupName == "" { - return nil, errors.New("parameter resourceGroupName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) - if accountName == "" { - return nil, errors.New("parameter accountName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{accountName}", url.PathEscape(accountName)) - if databaseName == "" { - return nil, errors.New("parameter databaseName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{databaseName}", url.PathEscape(databaseName)) - if collectionName == "" { - return nil, errors.New("parameter collectionName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{collectionName}", url.PathEscape(collectionName)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) - if err != nil { - return nil, err - } - reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") - req.Raw().URL.RawQuery = reqQP.Encode() - req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, retrieveThroughputParameters) -} - -// BeginMongoDBDatabaseRedistributeThroughput - Redistribute throughput for an Azure Cosmos DB MongoDB database -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseName - Cosmos DB database name. -// redistributeThroughputParameters - The parameters to provide for redistributing throughput for the current MongoDB database. -// options - MongoDBResourcesClientBeginMongoDBDatabaseRedistributeThroughputOptions contains the optional parameters for -// the MongoDBResourcesClient.BeginMongoDBDatabaseRedistributeThroughput method. -func (client *MongoDBResourcesClient) BeginMongoDBDatabaseRedistributeThroughput(ctx context.Context, resourceGroupName string, accountName string, databaseName string, redistributeThroughputParameters RedistributeThroughputParameters, options *MongoDBResourcesClientBeginMongoDBDatabaseRedistributeThroughputOptions) (*runtime.Poller[MongoDBResourcesClientMongoDBDatabaseRedistributeThroughputResponse], error) { - if options == nil || options.ResumeToken == "" { - resp, err := client.mongoDBDatabaseRedistributeThroughput(ctx, resourceGroupName, accountName, databaseName, redistributeThroughputParameters, options) - if err != nil { - return nil, err - } - return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[MongoDBResourcesClientMongoDBDatabaseRedistributeThroughputResponse]{ - FinalStateVia: runtime.FinalStateViaLocation, - }) - } else { - return runtime.NewPollerFromResumeToken[MongoDBResourcesClientMongoDBDatabaseRedistributeThroughputResponse](options.ResumeToken, client.pl, nil) - } -} - -// MongoDBDatabaseRedistributeThroughput - Redistribute throughput for an Azure Cosmos DB MongoDB database -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -func (client *MongoDBResourcesClient) mongoDBDatabaseRedistributeThroughput(ctx context.Context, resourceGroupName string, accountName string, databaseName string, redistributeThroughputParameters RedistributeThroughputParameters, options *MongoDBResourcesClientBeginMongoDBDatabaseRedistributeThroughputOptions) (*http.Response, error) { - req, err := client.mongoDBDatabaseRedistributeThroughputCreateRequest(ctx, resourceGroupName, accountName, databaseName, redistributeThroughputParameters, options) - if err != nil { - return nil, err - } - resp, err := client.pl.Do(req) - if err != nil { - return nil, err - } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) - } - return resp, nil -} - -// mongoDBDatabaseRedistributeThroughputCreateRequest creates the MongoDBDatabaseRedistributeThroughput request. -func (client *MongoDBResourcesClient) mongoDBDatabaseRedistributeThroughputCreateRequest(ctx context.Context, resourceGroupName string, accountName string, databaseName string, redistributeThroughputParameters RedistributeThroughputParameters, options *MongoDBResourcesClientBeginMongoDBDatabaseRedistributeThroughputOptions) (*policy.Request, error) { - urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/throughputSettings/default/redistributeThroughput" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - if resourceGroupName == "" { - return nil, errors.New("parameter resourceGroupName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) - if accountName == "" { - return nil, errors.New("parameter accountName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{accountName}", url.PathEscape(accountName)) - if databaseName == "" { - return nil, errors.New("parameter databaseName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{databaseName}", url.PathEscape(databaseName)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) - if err != nil { - return nil, err - } - reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") - req.Raw().URL.RawQuery = reqQP.Encode() - req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, redistributeThroughputParameters) -} - -// BeginMongoDBDatabaseRetrieveThroughputDistribution - Retrieve throughput distribution for an Azure Cosmos DB MongoDB database -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseName - Cosmos DB database name. -// retrieveThroughputParameters - The parameters to provide for retrieving throughput distribution for the current MongoDB -// database. -// options - MongoDBResourcesClientBeginMongoDBDatabaseRetrieveThroughputDistributionOptions contains the optional parameters -// for the MongoDBResourcesClient.BeginMongoDBDatabaseRetrieveThroughputDistribution method. -func (client *MongoDBResourcesClient) BeginMongoDBDatabaseRetrieveThroughputDistribution(ctx context.Context, resourceGroupName string, accountName string, databaseName string, retrieveThroughputParameters RetrieveThroughputParameters, options *MongoDBResourcesClientBeginMongoDBDatabaseRetrieveThroughputDistributionOptions) (*runtime.Poller[MongoDBResourcesClientMongoDBDatabaseRetrieveThroughputDistributionResponse], error) { - if options == nil || options.ResumeToken == "" { - resp, err := client.mongoDBDatabaseRetrieveThroughputDistribution(ctx, resourceGroupName, accountName, databaseName, retrieveThroughputParameters, options) - if err != nil { - return nil, err - } - return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[MongoDBResourcesClientMongoDBDatabaseRetrieveThroughputDistributionResponse]{ - FinalStateVia: runtime.FinalStateViaLocation, - }) - } else { - return runtime.NewPollerFromResumeToken[MongoDBResourcesClientMongoDBDatabaseRetrieveThroughputDistributionResponse](options.ResumeToken, client.pl, nil) - } -} - -// MongoDBDatabaseRetrieveThroughputDistribution - Retrieve throughput distribution for an Azure Cosmos DB MongoDB database -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -func (client *MongoDBResourcesClient) mongoDBDatabaseRetrieveThroughputDistribution(ctx context.Context, resourceGroupName string, accountName string, databaseName string, retrieveThroughputParameters RetrieveThroughputParameters, options *MongoDBResourcesClientBeginMongoDBDatabaseRetrieveThroughputDistributionOptions) (*http.Response, error) { - req, err := client.mongoDBDatabaseRetrieveThroughputDistributionCreateRequest(ctx, resourceGroupName, accountName, databaseName, retrieveThroughputParameters, options) - if err != nil { - return nil, err - } - resp, err := client.pl.Do(req) - if err != nil { - return nil, err - } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) - } - return resp, nil -} - -// mongoDBDatabaseRetrieveThroughputDistributionCreateRequest creates the MongoDBDatabaseRetrieveThroughputDistribution request. -func (client *MongoDBResourcesClient) mongoDBDatabaseRetrieveThroughputDistributionCreateRequest(ctx context.Context, resourceGroupName string, accountName string, databaseName string, retrieveThroughputParameters RetrieveThroughputParameters, options *MongoDBResourcesClientBeginMongoDBDatabaseRetrieveThroughputDistributionOptions) (*policy.Request, error) { - urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/throughputSettings/default/retrieveThroughputDistribution" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - if resourceGroupName == "" { - return nil, errors.New("parameter resourceGroupName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) - if accountName == "" { - return nil, errors.New("parameter accountName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{accountName}", url.PathEscape(accountName)) - if databaseName == "" { - return nil, errors.New("parameter databaseName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{databaseName}", url.PathEscape(databaseName)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) - if err != nil { - return nil, err - } - reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") - req.Raw().URL.RawQuery = reqQP.Encode() - req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, retrieveThroughputParameters) -} - // BeginRetrieveContinuousBackupInformation - Retrieves continuous backup information for a Mongodb collection. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseName - Cosmos DB database name. -// collectionName - Cosmos DB collection name. -// location - The name of the continuous backup restore location. -// options - MongoDBResourcesClientBeginRetrieveContinuousBackupInformationOptions contains the optional parameters for the -// MongoDBResourcesClient.BeginRetrieveContinuousBackupInformation method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - databaseName - Cosmos DB database name. +// - collectionName - Cosmos DB collection name. +// - location - The name of the continuous backup restore location. +// - options - MongoDBResourcesClientBeginRetrieveContinuousBackupInformationOptions contains the optional parameters for the +// MongoDBResourcesClient.BeginRetrieveContinuousBackupInformation method. func (client *MongoDBResourcesClient) BeginRetrieveContinuousBackupInformation(ctx context.Context, resourceGroupName string, accountName string, databaseName string, collectionName string, location ContinuousBackupRestoreLocation, options *MongoDBResourcesClientBeginRetrieveContinuousBackupInformationOptions) (*runtime.Poller[MongoDBResourcesClientRetrieveContinuousBackupInformationResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.retrieveContinuousBackupInformation(ctx, resourceGroupName, accountName, databaseName, collectionName, location, options) @@ -1933,7 +1596,8 @@ func (client *MongoDBResourcesClient) BeginRetrieveContinuousBackupInformation(c // RetrieveContinuousBackupInformation - Retrieves continuous backup information for a Mongodb collection. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *MongoDBResourcesClient) retrieveContinuousBackupInformation(ctx context.Context, resourceGroupName string, accountName string, databaseName string, collectionName string, location ContinuousBackupRestoreLocation, options *MongoDBResourcesClientBeginRetrieveContinuousBackupInformationOptions) (*http.Response, error) { req, err := client.retrieveContinuousBackupInformationCreateRequest(ctx, resourceGroupName, accountName, databaseName, collectionName, location, options) if err != nil { @@ -1977,7 +1641,7 @@ func (client *MongoDBResourcesClient) retrieveContinuousBackupInformationCreateR return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, location) @@ -1985,14 +1649,15 @@ func (client *MongoDBResourcesClient) retrieveContinuousBackupInformationCreateR // BeginUpdateMongoDBCollectionThroughput - Update the RUs per second of an Azure Cosmos DB MongoDB collection // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseName - Cosmos DB database name. -// collectionName - Cosmos DB collection name. -// updateThroughputParameters - The RUs per second of the parameters to provide for the current MongoDB collection. -// options - MongoDBResourcesClientBeginUpdateMongoDBCollectionThroughputOptions contains the optional parameters for the -// MongoDBResourcesClient.BeginUpdateMongoDBCollectionThroughput method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - databaseName - Cosmos DB database name. +// - collectionName - Cosmos DB collection name. +// - updateThroughputParameters - The RUs per second of the parameters to provide for the current MongoDB collection. +// - options - MongoDBResourcesClientBeginUpdateMongoDBCollectionThroughputOptions contains the optional parameters for the +// MongoDBResourcesClient.BeginUpdateMongoDBCollectionThroughput method. func (client *MongoDBResourcesClient) BeginUpdateMongoDBCollectionThroughput(ctx context.Context, resourceGroupName string, accountName string, databaseName string, collectionName string, updateThroughputParameters ThroughputSettingsUpdateParameters, options *MongoDBResourcesClientBeginUpdateMongoDBCollectionThroughputOptions) (*runtime.Poller[MongoDBResourcesClientUpdateMongoDBCollectionThroughputResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.updateMongoDBCollectionThroughput(ctx, resourceGroupName, accountName, databaseName, collectionName, updateThroughputParameters, options) @@ -2007,7 +1672,8 @@ func (client *MongoDBResourcesClient) BeginUpdateMongoDBCollectionThroughput(ctx // UpdateMongoDBCollectionThroughput - Update the RUs per second of an Azure Cosmos DB MongoDB collection // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *MongoDBResourcesClient) updateMongoDBCollectionThroughput(ctx context.Context, resourceGroupName string, accountName string, databaseName string, collectionName string, updateThroughputParameters ThroughputSettingsUpdateParameters, options *MongoDBResourcesClientBeginUpdateMongoDBCollectionThroughputOptions) (*http.Response, error) { req, err := client.updateMongoDBCollectionThroughputCreateRequest(ctx, resourceGroupName, accountName, databaseName, collectionName, updateThroughputParameters, options) if err != nil { @@ -2051,7 +1717,7 @@ func (client *MongoDBResourcesClient) updateMongoDBCollectionThroughputCreateReq return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, updateThroughputParameters) @@ -2059,13 +1725,14 @@ func (client *MongoDBResourcesClient) updateMongoDBCollectionThroughputCreateReq // BeginUpdateMongoDBDatabaseThroughput - Update RUs per second of the an Azure Cosmos DB MongoDB database // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseName - Cosmos DB database name. -// updateThroughputParameters - The RUs per second of the parameters to provide for the current MongoDB database. -// options - MongoDBResourcesClientBeginUpdateMongoDBDatabaseThroughputOptions contains the optional parameters for the MongoDBResourcesClient.BeginUpdateMongoDBDatabaseThroughput -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - databaseName - Cosmos DB database name. +// - updateThroughputParameters - The RUs per second of the parameters to provide for the current MongoDB database. +// - options - MongoDBResourcesClientBeginUpdateMongoDBDatabaseThroughputOptions contains the optional parameters for the MongoDBResourcesClient.BeginUpdateMongoDBDatabaseThroughput +// method. func (client *MongoDBResourcesClient) BeginUpdateMongoDBDatabaseThroughput(ctx context.Context, resourceGroupName string, accountName string, databaseName string, updateThroughputParameters ThroughputSettingsUpdateParameters, options *MongoDBResourcesClientBeginUpdateMongoDBDatabaseThroughputOptions) (*runtime.Poller[MongoDBResourcesClientUpdateMongoDBDatabaseThroughputResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.updateMongoDBDatabaseThroughput(ctx, resourceGroupName, accountName, databaseName, updateThroughputParameters, options) @@ -2080,7 +1747,8 @@ func (client *MongoDBResourcesClient) BeginUpdateMongoDBDatabaseThroughput(ctx c // UpdateMongoDBDatabaseThroughput - Update RUs per second of the an Azure Cosmos DB MongoDB database // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *MongoDBResourcesClient) updateMongoDBDatabaseThroughput(ctx context.Context, resourceGroupName string, accountName string, databaseName string, updateThroughputParameters ThroughputSettingsUpdateParameters, options *MongoDBResourcesClientBeginUpdateMongoDBDatabaseThroughputOptions) (*http.Response, error) { req, err := client.updateMongoDBDatabaseThroughputCreateRequest(ctx, resourceGroupName, accountName, databaseName, updateThroughputParameters, options) if err != nil { @@ -2120,7 +1788,7 @@ func (client *MongoDBResourcesClient) updateMongoDBDatabaseThroughputCreateReque return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, updateThroughputParameters) diff --git a/sdk/resourcemanager/cosmos/armcosmos/mongodbresources_client_example_test.go b/sdk/resourcemanager/cosmos/armcosmos/mongodbresources_client_example_test.go index 4b0ed2413dd2..e8411a0ccf41 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/mongodbresources_client_example_test.go +++ b/sdk/resourcemanager/cosmos/armcosmos/mongodbresources_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armcosmos_test @@ -12,14 +13,12 @@ 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/cosmos/armcosmos/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBMongoDBDatabaseList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBMongoDBDatabaseList.json func ExampleMongoDBResourcesClient_NewListMongoDBDatabasesPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -32,18 +31,35 @@ func ExampleMongoDBResourcesClient_NewListMongoDBDatabasesPager() { } pager := client.NewListMongoDBDatabasesPager("rgName", "ddb1", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.MongoDBDatabaseListResult = armcosmos.MongoDBDatabaseListResult{ + // Value: []*armcosmos.MongoDBDatabaseGetResults{ + // { + // Name: to.Ptr("databaseName"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/mongodbDatabases"), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/mongodbDatabases/databaseName"), + // Location: to.Ptr("West US"), + // Tags: map[string]*string{ + // }, + // Properties: &armcosmos.MongoDBDatabaseGetProperties{ + // Resource: &armcosmos.MongoDBDatabaseGetPropertiesResource{ + // ID: to.Ptr("databaseName"), + // }, + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBMongoDBDatabaseGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBMongoDBDatabaseGet.json func ExampleMongoDBResourcesClient_GetMongoDBDatabase() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -58,12 +74,29 @@ func ExampleMongoDBResourcesClient_GetMongoDBDatabase() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.MongoDBDatabaseGetResults = armcosmos.MongoDBDatabaseGetResults{ + // Name: to.Ptr("databaseName"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/mongodbDatabases"), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/mongodbDatabases/databaseName"), + // Location: to.Ptr("West US"), + // Tags: map[string]*string{ + // }, + // Properties: &armcosmos.MongoDBDatabaseGetProperties{ + // Resource: &armcosmos.MongoDBDatabaseGetPropertiesResource{ + // Etag: to.Ptr("\"00005900-0000-0000-0000-56f9a2630000\""), + // Rid: to.Ptr("PD5DALigDgw="), + // Ts: to.Ptr[float32](1459200611), + // ID: to.Ptr("databaseName"), + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBMongoDBDatabaseCreateUpdate.json -func ExampleMongoDBResourcesClient_BeginCreateUpdateMongoDBDatabase_cosmosDbMongoDbDatabaseCreateUpdate() { +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBMongoDBDatabaseCreateUpdate.json +func ExampleMongoDBResourcesClient_BeginCreateUpdateMongoDBDatabase() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -90,48 +123,25 @@ func ExampleMongoDBResourcesClient_BeginCreateUpdateMongoDBDatabase_cosmosDbMong if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBMongoDBDatabaseRestore.json -func ExampleMongoDBResourcesClient_BeginCreateUpdateMongoDBDatabase_cosmosDbMongoDbDatabaseRestore() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcosmos.NewMongoDBResourcesClient("subid", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginCreateUpdateMongoDBDatabase(ctx, "rg1", "ddb1", "databaseName", armcosmos.MongoDBDatabaseCreateUpdateParameters{ - Location: to.Ptr("West US"), - Tags: map[string]*string{}, - Properties: &armcosmos.MongoDBDatabaseCreateUpdateProperties{ - Options: &armcosmos.CreateUpdateOptions{}, - Resource: &armcosmos.MongoDBDatabaseResource{ - CreateMode: to.Ptr(armcosmos.CreateModeRestore), - ID: to.Ptr("databaseName"), - RestoreParameters: &armcosmos.ResourceRestoreParameters{ - RestoreSource: to.Ptr("/subscriptions/subid/providers/Microsoft.DocumentDB/locations/WestUS/restorableDatabaseAccounts/restorableDatabaseAccountId"), - RestoreTimestampInUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-07-20T18:28:00Z"); return t }()), - }, - }, - }, - }, 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) - } - // TODO: use response item + // 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.MongoDBDatabaseGetResults = armcosmos.MongoDBDatabaseGetResults{ + // Name: to.Ptr("databaseName"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/mongodbDatabases"), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/mongodbDatabases/databaseName"), + // Location: to.Ptr("West US"), + // Tags: map[string]*string{ + // }, + // Properties: &armcosmos.MongoDBDatabaseGetProperties{ + // Resource: &armcosmos.MongoDBDatabaseGetPropertiesResource{ + // ID: to.Ptr("updatedDatabaseName"), + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBMongoDBDatabaseDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBMongoDBDatabaseDelete.json func ExampleMongoDBResourcesClient_BeginDeleteMongoDBDatabase() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -152,7 +162,7 @@ func ExampleMongoDBResourcesClient_BeginDeleteMongoDBDatabase() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBMongoDBDatabaseThroughputGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBMongoDBDatabaseThroughputGet.json func ExampleMongoDBResourcesClient_GetMongoDBDatabaseThroughput() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -167,11 +177,30 @@ func ExampleMongoDBResourcesClient_GetMongoDBDatabaseThroughput() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.ThroughputSettingsGetResults = armcosmos.ThroughputSettingsGetResults{ + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/throughputSettings"), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/mongodbDatabases/databaseName/throughputSettings/default"), + // Location: to.Ptr("West US"), + // Tags: map[string]*string{ + // }, + // Properties: &armcosmos.ThroughputSettingsGetProperties{ + // Resource: &armcosmos.ThroughputSettingsGetPropertiesResource{ + // Etag: to.Ptr("\"00005900-0000-0000-0000-56f9a2630000\""), + // Rid: to.Ptr("PD5DALigDgw="), + // Ts: to.Ptr[float32](1459200611), + // MinimumThroughput: to.Ptr("400"), + // OfferReplacePending: to.Ptr("true"), + // Throughput: to.Ptr[int32](400), + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBMongoDBDatabaseThroughputUpdate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBMongoDBDatabaseThroughputUpdate.json func ExampleMongoDBResourcesClient_BeginUpdateMongoDBDatabaseThroughput() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -198,11 +227,30 @@ func ExampleMongoDBResourcesClient_BeginUpdateMongoDBDatabaseThroughput() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.ThroughputSettingsGetResults = armcosmos.ThroughputSettingsGetResults{ + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/throughputSettings"), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/mongodbDatabases/databaseName/throughputSettings/default"), + // Location: to.Ptr("West US"), + // Tags: map[string]*string{ + // }, + // Properties: &armcosmos.ThroughputSettingsGetProperties{ + // Resource: &armcosmos.ThroughputSettingsGetPropertiesResource{ + // Etag: to.Ptr("\"00005900-0000-0000-0000-56f9a2630000\""), + // Rid: to.Ptr("PD5DALigDgw="), + // Ts: to.Ptr[float32](1459200611), + // MinimumThroughput: to.Ptr("400"), + // OfferReplacePending: to.Ptr("true"), + // Throughput: to.Ptr[int32](400), + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBMongoDBDatabaseMigrateToAutoscale.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBMongoDBDatabaseMigrateToAutoscale.json func ExampleMongoDBResourcesClient_BeginMigrateMongoDBDatabaseToAutoscale() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -221,11 +269,27 @@ func ExampleMongoDBResourcesClient_BeginMigrateMongoDBDatabaseToAutoscale() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.ThroughputSettingsGetResults = armcosmos.ThroughputSettingsGetResults{ + // Properties: &armcosmos.ThroughputSettingsGetProperties{ + // Resource: &armcosmos.ThroughputSettingsGetPropertiesResource{ + // Etag: to.Ptr("\"00005900-0000-0000-0000-56f9a2630000\""), + // Rid: to.Ptr("PD5DALigDgw="), + // Ts: to.Ptr[float32](1459200611), + // AutoscaleSettings: &armcosmos.AutoscaleSettingsResource{ + // MaxThroughput: to.Ptr[int32](4000), + // }, + // MinimumThroughput: to.Ptr("4000"), + // OfferReplacePending: to.Ptr("false"), + // Throughput: to.Ptr[int32](400), + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBMongoDBDatabaseMigrateToManualThroughput.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBMongoDBDatabaseMigrateToManualThroughput.json func ExampleMongoDBResourcesClient_BeginMigrateMongoDBDatabaseToManualThroughput() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -244,173 +308,24 @@ func ExampleMongoDBResourcesClient_BeginMigrateMongoDBDatabaseToManualThroughput if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBMongoDBDatabaseRetrieveThroughputDistribution.json -func ExampleMongoDBResourcesClient_BeginMongoDBDatabaseRetrieveThroughputDistribution() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcosmos.NewMongoDBResourcesClient("subid", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginMongoDBDatabaseRetrieveThroughputDistribution(ctx, "rg1", "ddb1", "databaseName", armcosmos.RetrieveThroughputParameters{ - Properties: &armcosmos.RetrieveThroughputProperties{ - Resource: &armcosmos.RetrieveThroughputPropertiesResource{ - PhysicalPartitionIDs: []*armcosmos.PhysicalPartitionID{ - { - ID: to.Ptr("0"), - }, - { - ID: to.Ptr("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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBMongoDBDatabaseRedistributeThroughput.json -func ExampleMongoDBResourcesClient_BeginMongoDBDatabaseRedistributeThroughput() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcosmos.NewMongoDBResourcesClient("subid", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginMongoDBDatabaseRedistributeThroughput(ctx, "rg1", "ddb1", "databaseName", armcosmos.RedistributeThroughputParameters{ - Properties: &armcosmos.RedistributeThroughputProperties{ - Resource: &armcosmos.RedistributeThroughputPropertiesResource{ - SourcePhysicalPartitionThroughputInfo: []*armcosmos.PhysicalPartitionThroughputInfoResource{ - { - ID: to.Ptr("2"), - Throughput: to.Ptr[float64](5000), - }, - { - ID: to.Ptr("3"), - }}, - TargetPhysicalPartitionThroughputInfo: []*armcosmos.PhysicalPartitionThroughputInfoResource{ - { - ID: to.Ptr("0"), - Throughput: to.Ptr[float64](5000), - }, - { - ID: to.Ptr("1"), - Throughput: to.Ptr[float64](5000), - }}, - ThroughputPolicy: to.Ptr(armcosmos.ThroughputPolicyTypeCustom), - }, - }, - }, 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) - } - // TODO: use response item + // 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.ThroughputSettingsGetResults = armcosmos.ThroughputSettingsGetResults{ + // Properties: &armcosmos.ThroughputSettingsGetProperties{ + // Resource: &armcosmos.ThroughputSettingsGetPropertiesResource{ + // Etag: to.Ptr("\"00005900-0000-0000-0000-56f9a2630000\""), + // Rid: to.Ptr("PD5DALigDgw="), + // Ts: to.Ptr[float32](1459200611), + // MinimumThroughput: to.Ptr("400"), + // OfferReplacePending: to.Ptr("true"), + // Throughput: to.Ptr[int32](400), + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBMongoDBCollectionRetrieveThroughputDistribution.json -func ExampleMongoDBResourcesClient_BeginMongoDBContainerRetrieveThroughputDistribution() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcosmos.NewMongoDBResourcesClient("subid", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginMongoDBContainerRetrieveThroughputDistribution(ctx, "rg1", "ddb1", "databaseName", "collectionName", armcosmos.RetrieveThroughputParameters{ - Properties: &armcosmos.RetrieveThroughputProperties{ - Resource: &armcosmos.RetrieveThroughputPropertiesResource{ - PhysicalPartitionIDs: []*armcosmos.PhysicalPartitionID{ - { - ID: to.Ptr("0"), - }, - { - ID: to.Ptr("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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBMongoDBCollectionRedistributeThroughput.json -func ExampleMongoDBResourcesClient_BeginMongoDBContainerRedistributeThroughput() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcosmos.NewMongoDBResourcesClient("subid", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginMongoDBContainerRedistributeThroughput(ctx, "rg1", "ddb1", "databaseName", "collectionName", armcosmos.RedistributeThroughputParameters{ - Properties: &armcosmos.RedistributeThroughputProperties{ - Resource: &armcosmos.RedistributeThroughputPropertiesResource{ - SourcePhysicalPartitionThroughputInfo: []*armcosmos.PhysicalPartitionThroughputInfoResource{ - { - ID: to.Ptr("2"), - Throughput: to.Ptr[float64](5000), - }, - { - ID: to.Ptr("3"), - }}, - TargetPhysicalPartitionThroughputInfo: []*armcosmos.PhysicalPartitionThroughputInfoResource{ - { - ID: to.Ptr("0"), - Throughput: to.Ptr[float64](5000), - }, - { - ID: to.Ptr("1"), - Throughput: to.Ptr[float64](5000), - }}, - ThroughputPolicy: to.Ptr(armcosmos.ThroughputPolicyTypeCustom), - }, - }, - }, 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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBMongoDBCollectionList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBMongoDBCollectionList.json func ExampleMongoDBResourcesClient_NewListMongoDBCollectionsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -423,18 +338,49 @@ func ExampleMongoDBResourcesClient_NewListMongoDBCollectionsPager() { } pager := client.NewListMongoDBCollectionsPager("rgName", "ddb1", "databaseName", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.MongoDBCollectionListResult = armcosmos.MongoDBCollectionListResult{ + // Value: []*armcosmos.MongoDBCollectionGetResults{ + // { + // Name: to.Ptr("collectionName"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/mongodbCollections"), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/mongodbDatabases/databaseName/mongodbCollections/collectionName"), + // Location: to.Ptr("West US"), + // Tags: map[string]*string{ + // }, + // Properties: &armcosmos.MongoDBCollectionGetProperties{ + // Resource: &armcosmos.MongoDBCollectionGetPropertiesResource{ + // ID: to.Ptr("testcoll"), + // Indexes: []*armcosmos.MongoIndex{ + // { + // Key: &armcosmos.MongoIndexKeys{ + // Keys: []*string{ + // to.Ptr("testKey")}, + // }, + // Options: &armcosmos.MongoIndexOptions{ + // ExpireAfterSeconds: to.Ptr[int32](100), + // Unique: to.Ptr(true), + // }, + // }}, + // ShardKey: map[string]*string{ + // "testKey": to.Ptr("Hash"), + // }, + // }, + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBMongoDBCollectionGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBMongoDBCollectionGet.json func ExampleMongoDBResourcesClient_GetMongoDBCollection() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -449,12 +395,43 @@ func ExampleMongoDBResourcesClient_GetMongoDBCollection() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.MongoDBCollectionGetResults = armcosmos.MongoDBCollectionGetResults{ + // Name: to.Ptr("collectionName"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/mongodbCollections"), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/mongodbDatabases/databaseName/mongodbCollections/collectionName"), + // Location: to.Ptr("West US"), + // Tags: map[string]*string{ + // }, + // Properties: &armcosmos.MongoDBCollectionGetProperties{ + // Resource: &armcosmos.MongoDBCollectionGetPropertiesResource{ + // Etag: to.Ptr("\"00005900-0000-0000-0000-56f9a2630000\""), + // Rid: to.Ptr("PD5DALigDgw="), + // Ts: to.Ptr[float32](1459200611), + // ID: to.Ptr("testcoll"), + // Indexes: []*armcosmos.MongoIndex{ + // { + // Key: &armcosmos.MongoIndexKeys{ + // Keys: []*string{ + // to.Ptr("testKey")}, + // }, + // Options: &armcosmos.MongoIndexOptions{ + // ExpireAfterSeconds: to.Ptr[int32](100), + // Unique: to.Ptr(true), + // }, + // }}, + // ShardKey: map[string]*string{ + // "testKey": to.Ptr("Hash"), + // }, + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBMongoDBCollectionCreateUpdate.json -func ExampleMongoDBResourcesClient_BeginCreateUpdateMongoDBCollection_cosmosDbMongoDbCollectionCreateUpdate() { +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBMongoDBCollectionCreateUpdate.json +func ExampleMongoDBResourcesClient_BeginCreateUpdateMongoDBCollection() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -470,8 +447,7 @@ func ExampleMongoDBResourcesClient_BeginCreateUpdateMongoDBCollection_cosmosDbMo Properties: &armcosmos.MongoDBCollectionCreateUpdateProperties{ Options: &armcosmos.CreateUpdateOptions{}, Resource: &armcosmos.MongoDBCollectionResource{ - AnalyticalStorageTTL: to.Ptr[int32](500), - ID: to.Ptr("collectionName"), + ID: to.Ptr("collectionName"), Indexes: []*armcosmos.MongoIndex{ { Key: &armcosmos.MongoIndexKeys{ @@ -502,48 +478,45 @@ func ExampleMongoDBResourcesClient_BeginCreateUpdateMongoDBCollection_cosmosDbMo if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.MongoDBCollectionGetResults = armcosmos.MongoDBCollectionGetResults{ + // Name: to.Ptr("collectionName"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/mongodbCollections"), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/mongodbDatabases/databaseName/mongodbCollections/collectionName"), + // Location: to.Ptr("West US"), + // Tags: map[string]*string{ + // }, + // Properties: &armcosmos.MongoDBCollectionGetProperties{ + // Resource: &armcosmos.MongoDBCollectionGetPropertiesResource{ + // ID: to.Ptr("collectionName"), + // Indexes: []*armcosmos.MongoIndex{ + // { + // Key: &armcosmos.MongoIndexKeys{ + // Keys: []*string{ + // to.Ptr("_ts")}, + // }, + // Options: &armcosmos.MongoIndexOptions{ + // ExpireAfterSeconds: to.Ptr[int32](100), + // Unique: to.Ptr(true), + // }, + // }, + // { + // Key: &armcosmos.MongoIndexKeys{ + // Keys: []*string{ + // to.Ptr("_id")}, + // }, + // }}, + // ShardKey: map[string]*string{ + // "testKey": to.Ptr("Hash"), + // }, + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBMongoDBCollectionRestore.json -func ExampleMongoDBResourcesClient_BeginCreateUpdateMongoDBCollection_cosmosDbMongoDbCollectionRestore() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcosmos.NewMongoDBResourcesClient("subid", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginCreateUpdateMongoDBCollection(ctx, "rg1", "ddb1", "databaseName", "collectionName", armcosmos.MongoDBCollectionCreateUpdateParameters{ - Location: to.Ptr("West US"), - Tags: map[string]*string{}, - Properties: &armcosmos.MongoDBCollectionCreateUpdateProperties{ - Options: &armcosmos.CreateUpdateOptions{}, - Resource: &armcosmos.MongoDBCollectionResource{ - CreateMode: to.Ptr(armcosmos.CreateModeRestore), - ID: to.Ptr("collectionName"), - RestoreParameters: &armcosmos.ResourceRestoreParameters{ - RestoreSource: to.Ptr("/subscriptions/subid/providers/Microsoft.DocumentDB/locations/WestUS/restorableDatabaseAccounts/restorableDatabaseAccountId"), - RestoreTimestampInUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-07-20T18:28:00Z"); return t }()), - }, - }, - }, - }, 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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBMongoDBCollectionDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBMongoDBCollectionDelete.json func ExampleMongoDBResourcesClient_BeginDeleteMongoDBCollection() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -564,32 +537,7 @@ func ExampleMongoDBResourcesClient_BeginDeleteMongoDBCollection() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBMongoDBCollectionPartitionMerge.json -func ExampleMongoDBResourcesClient_BeginListMongoDBCollectionPartitionMerge() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcosmos.NewMongoDBResourcesClient("subid", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginListMongoDBCollectionPartitionMerge(ctx, "rgName", "ddb1", "databaseName", "collectionName", armcosmos.MergeParameters{ - IsDryRun: to.Ptr(false), - }, 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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBMongoDBCollectionThroughputGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBMongoDBCollectionThroughputGet.json func ExampleMongoDBResourcesClient_GetMongoDBCollectionThroughput() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -604,11 +552,30 @@ func ExampleMongoDBResourcesClient_GetMongoDBCollectionThroughput() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.ThroughputSettingsGetResults = armcosmos.ThroughputSettingsGetResults{ + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/mongodbCollections/throughputSettings"), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/mongodbDatabases/databaseName/mongodbCollections/collectionName/throughputSettings/default"), + // Location: to.Ptr("West US"), + // Tags: map[string]*string{ + // }, + // Properties: &armcosmos.ThroughputSettingsGetProperties{ + // Resource: &armcosmos.ThroughputSettingsGetPropertiesResource{ + // Etag: to.Ptr("\"00005900-0000-0000-0000-56f9a2630000\""), + // Rid: to.Ptr("PD5DALigDgw="), + // Ts: to.Ptr[float32](1459200611), + // MinimumThroughput: to.Ptr("400"), + // OfferReplacePending: to.Ptr("true"), + // Throughput: to.Ptr[int32](400), + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBMongoDBCollectionThroughputUpdate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBMongoDBCollectionThroughputUpdate.json func ExampleMongoDBResourcesClient_BeginUpdateMongoDBCollectionThroughput() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -635,11 +602,30 @@ func ExampleMongoDBResourcesClient_BeginUpdateMongoDBCollectionThroughput() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.ThroughputSettingsGetResults = armcosmos.ThroughputSettingsGetResults{ + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/mongodbCollections/throughputSettings"), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/mongodbDatabases/databaseName/mongodbCollections/collectionName/throughputSettings/default"), + // Location: to.Ptr("West US"), + // Tags: map[string]*string{ + // }, + // Properties: &armcosmos.ThroughputSettingsGetProperties{ + // Resource: &armcosmos.ThroughputSettingsGetPropertiesResource{ + // Etag: to.Ptr("\"00005900-0000-0000-0000-56f9a2630000\""), + // Rid: to.Ptr("PD5DALigDgw="), + // Ts: to.Ptr[float32](1459200611), + // MinimumThroughput: to.Ptr("400"), + // OfferReplacePending: to.Ptr("true"), + // Throughput: to.Ptr[int32](400), + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBMongoDBCollectionMigrateToAutoscale.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBMongoDBCollectionMigrateToAutoscale.json func ExampleMongoDBResourcesClient_BeginMigrateMongoDBCollectionToAutoscale() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -658,11 +644,27 @@ func ExampleMongoDBResourcesClient_BeginMigrateMongoDBCollectionToAutoscale() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.ThroughputSettingsGetResults = armcosmos.ThroughputSettingsGetResults{ + // Properties: &armcosmos.ThroughputSettingsGetProperties{ + // Resource: &armcosmos.ThroughputSettingsGetPropertiesResource{ + // Etag: to.Ptr("\"00005900-0000-0000-0000-56f9a2630000\""), + // Rid: to.Ptr("PD5DALigDgw="), + // Ts: to.Ptr[float32](1459200611), + // AutoscaleSettings: &armcosmos.AutoscaleSettingsResource{ + // MaxThroughput: to.Ptr[int32](4000), + // }, + // MinimumThroughput: to.Ptr("4000"), + // OfferReplacePending: to.Ptr("false"), + // Throughput: to.Ptr[int32](400), + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBMongoDBCollectionMigrateToManualThroughput.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBMongoDBCollectionMigrateToManualThroughput.json func ExampleMongoDBResourcesClient_BeginMigrateMongoDBCollectionToManualThroughput() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -681,11 +683,24 @@ func ExampleMongoDBResourcesClient_BeginMigrateMongoDBCollectionToManualThroughp if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.ThroughputSettingsGetResults = armcosmos.ThroughputSettingsGetResults{ + // Properties: &armcosmos.ThroughputSettingsGetProperties{ + // Resource: &armcosmos.ThroughputSettingsGetPropertiesResource{ + // Etag: to.Ptr("\"00005900-0000-0000-0000-56f9a2630000\""), + // Rid: to.Ptr("PD5DALigDgw="), + // Ts: to.Ptr[float32](1459200611), + // MinimumThroughput: to.Ptr("400"), + // OfferReplacePending: to.Ptr("true"), + // Throughput: to.Ptr[int32](400), + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBMongoDBRoleDefinitionGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBMongoDBRoleDefinitionGet.json func ExampleMongoDBResourcesClient_GetMongoRoleDefinition() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -700,11 +715,37 @@ func ExampleMongoDBResourcesClient_GetMongoRoleDefinition() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.MongoRoleDefinitionGetResults = armcosmos.MongoRoleDefinitionGetResults{ + // Name: to.Ptr("myMongoRoleDefinitionId"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/mongodbRoleDefinitions"), + // ID: to.Ptr("/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/mongodbRoleDefinitions/myMongoDbRoleDefinitionId"), + // Properties: &armcosmos.MongoRoleDefinitionResource{ + // Type: to.Ptr(armcosmos.MongoRoleDefinitionTypeCustomRole), + // DatabaseName: to.Ptr("sales"), + // Privileges: []*armcosmos.Privilege{ + // { + // Actions: []*string{ + // to.Ptr("find"), + // to.Ptr("insert")}, + // Resource: &armcosmos.PrivilegeResource{ + // Collection: to.Ptr("coll"), + // Db: to.Ptr("sales"), + // }, + // }}, + // RoleName: to.Ptr("myRoleName"), + // Roles: []*armcosmos.Role{ + // { + // Db: to.Ptr("sales"), + // Role: to.Ptr("myReadRole"), + // }}, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBMongoDBRoleDefinitionCreateUpdate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBMongoDBRoleDefinitionCreateUpdate.json func ExampleMongoDBResourcesClient_BeginCreateUpdateMongoRoleDefinition() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -743,11 +784,37 @@ func ExampleMongoDBResourcesClient_BeginCreateUpdateMongoRoleDefinition() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.MongoRoleDefinitionGetResults = armcosmos.MongoRoleDefinitionGetResults{ + // Name: to.Ptr("myMongoDbRoleDefinitionId"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/mongoDbRoleDefinitionId"), + // ID: to.Ptr("/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/mongodbRoleDefinitions/myMongoDbRoleDefinitionId"), + // Properties: &armcosmos.MongoRoleDefinitionResource{ + // Type: to.Ptr(armcosmos.MongoRoleDefinitionTypeCustomRole), + // DatabaseName: to.Ptr("sales"), + // Privileges: []*armcosmos.Privilege{ + // { + // Actions: []*string{ + // to.Ptr("find"), + // to.Ptr("insert")}, + // Resource: &armcosmos.PrivilegeResource{ + // Collection: to.Ptr("coll"), + // Db: to.Ptr("sales"), + // }, + // }}, + // RoleName: to.Ptr("myRoleName"), + // Roles: []*armcosmos.Role{ + // { + // Db: to.Ptr("sales"), + // Role: to.Ptr("myReadRole"), + // }}, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBMongoDBRoleDefinitionDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBMongoDBRoleDefinitionDelete.json func ExampleMongoDBResourcesClient_BeginDeleteMongoRoleDefinition() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -768,7 +835,7 @@ func ExampleMongoDBResourcesClient_BeginDeleteMongoRoleDefinition() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBMongoDBRoleDefinitionList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBMongoDBRoleDefinitionList.json func ExampleMongoDBResourcesClient_NewListMongoRoleDefinitionsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -781,18 +848,47 @@ func ExampleMongoDBResourcesClient_NewListMongoRoleDefinitionsPager() { } pager := client.NewListMongoRoleDefinitionsPager("myResourceGroupName", "myAccountName", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.MongoRoleDefinitionListResult = armcosmos.MongoRoleDefinitionListResult{ + // Value: []*armcosmos.MongoRoleDefinitionGetResults{ + // { + // Name: to.Ptr("myRoleDefinitionId"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/mongodbRoleDefinitions"), + // ID: to.Ptr("/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/mongodbRoleDefinitions/myRoleDefinitionId"), + // Properties: &armcosmos.MongoRoleDefinitionResource{ + // Type: to.Ptr(armcosmos.MongoRoleDefinitionTypeCustomRole), + // DatabaseName: to.Ptr("sales"), + // Privileges: []*armcosmos.Privilege{ + // { + // Actions: []*string{ + // to.Ptr("find"), + // to.Ptr("insert")}, + // Resource: &armcosmos.PrivilegeResource{ + // Collection: to.Ptr("coll"), + // Db: to.Ptr("sales"), + // }, + // }}, + // RoleName: to.Ptr("myRoleName"), + // Roles: []*armcosmos.Role{ + // { + // Db: to.Ptr("sales"), + // Role: to.Ptr("myReadRole"), + // }}, + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBMongoDBUserDefinitionGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBMongoDBUserDefinitionGet.json func ExampleMongoDBResourcesClient_GetMongoUserDefinition() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -807,11 +903,28 @@ func ExampleMongoDBResourcesClient_GetMongoUserDefinition() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.MongoUserDefinitionGetResults = armcosmos.MongoUserDefinitionGetResults{ + // Name: to.Ptr("myUserId"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/mongodbUserDefinitions"), + // ID: to.Ptr("/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/mongodbUserDefinitions/myUserId"), + // Properties: &armcosmos.MongoUserDefinitionResource{ + // CustomData: to.Ptr("My custom data"), + // DatabaseName: to.Ptr("sales"), + // Mechanisms: to.Ptr("SCRAM-SHA-256"), + // Roles: []*armcosmos.Role{ + // { + // Db: to.Ptr("sales"), + // Role: to.Ptr("myReadRole"), + // }}, + // UserName: to.Ptr("myUserName"), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBMongoDBUserDefinitionCreateUpdate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBMongoDBUserDefinitionCreateUpdate.json func ExampleMongoDBResourcesClient_BeginCreateUpdateMongoUserDefinition() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -843,11 +956,28 @@ func ExampleMongoDBResourcesClient_BeginCreateUpdateMongoUserDefinition() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.MongoUserDefinitionGetResults = armcosmos.MongoUserDefinitionGetResults{ + // Name: to.Ptr("myUserName"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/mongodbUserDefinitions"), + // ID: to.Ptr("/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/mongodbUserDefinitions/myUserId"), + // Properties: &armcosmos.MongoUserDefinitionResource{ + // CustomData: to.Ptr("My custom data"), + // DatabaseName: to.Ptr("sales"), + // Mechanisms: to.Ptr("SCRAM-SHA-256"), + // Roles: []*armcosmos.Role{ + // { + // Db: to.Ptr("sales"), + // Role: to.Ptr("myReadRole"), + // }}, + // UserName: to.Ptr("myUserName"), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBMongoDBUserDefinitionDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBMongoDBUserDefinitionDelete.json func ExampleMongoDBResourcesClient_BeginDeleteMongoUserDefinition() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -868,7 +998,7 @@ func ExampleMongoDBResourcesClient_BeginDeleteMongoUserDefinition() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBMongoDBUserDefinitionList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBMongoDBUserDefinitionList.json func ExampleMongoDBResourcesClient_NewListMongoUserDefinitionsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -881,18 +1011,38 @@ func ExampleMongoDBResourcesClient_NewListMongoUserDefinitionsPager() { } pager := client.NewListMongoUserDefinitionsPager("myResourceGroupName", "myAccountName", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.MongoUserDefinitionListResult = armcosmos.MongoUserDefinitionListResult{ + // Value: []*armcosmos.MongoUserDefinitionGetResults{ + // { + // Name: to.Ptr("myUserId"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/mongodbUserDefinitions"), + // ID: to.Ptr("/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/mongodbUserDefinitions/myUserId"), + // Properties: &armcosmos.MongoUserDefinitionResource{ + // CustomData: to.Ptr("My custom data"), + // DatabaseName: to.Ptr("sales"), + // Mechanisms: to.Ptr("SCRAM-SHA-256"), + // Roles: []*armcosmos.Role{ + // { + // Db: to.Ptr("sales"), + // Role: to.Ptr("myReadRole"), + // }}, + // UserName: to.Ptr("myUserName"), + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBMongoDBCollectionBackupInformation.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBMongoDBCollectionBackupInformation.json func ExampleMongoDBResourcesClient_BeginRetrieveContinuousBackupInformation() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -913,6 +1063,12 @@ func ExampleMongoDBResourcesClient_BeginRetrieveContinuousBackupInformation() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.BackupInformation = armcosmos.BackupInformation{ + // ContinuousBackupInformation: &armcosmos.ContinuousBackupInformation{ + // LatestRestorableTimestamp: to.Ptr("2021-02-05T02:40:50Z"), + // }, + // } } diff --git a/sdk/resourcemanager/cosmos/armcosmos/notebookworkspaces_client.go b/sdk/resourcemanager/cosmos/armcosmos/notebookworkspaces_client.go index cbaa0c1382d6..39e2620338a5 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/notebookworkspaces_client.go +++ b/sdk/resourcemanager/cosmos/armcosmos/notebookworkspaces_client.go @@ -32,9 +32,9 @@ type NotebookWorkspacesClient struct { } // NewNotebookWorkspacesClient creates a new instance of NotebookWorkspacesClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewNotebookWorkspacesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*NotebookWorkspacesClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,13 +57,14 @@ func NewNotebookWorkspacesClient(subscriptionID string, credential azcore.TokenC // BeginCreateOrUpdate - Creates the notebook workspace for a Cosmos DB account. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// notebookWorkspaceName - The name of the notebook workspace resource. -// notebookCreateUpdateParameters - The notebook workspace to create for the current database account. -// options - NotebookWorkspacesClientBeginCreateOrUpdateOptions contains the optional parameters for the NotebookWorkspacesClient.BeginCreateOrUpdate -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - notebookWorkspaceName - The name of the notebook workspace resource. +// - notebookCreateUpdateParameters - The notebook workspace to create for the current database account. +// - options - NotebookWorkspacesClientBeginCreateOrUpdateOptions contains the optional parameters for the NotebookWorkspacesClient.BeginCreateOrUpdate +// method. func (client *NotebookWorkspacesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, accountName string, notebookWorkspaceName NotebookWorkspaceName, notebookCreateUpdateParameters NotebookWorkspaceCreateUpdateParameters, options *NotebookWorkspacesClientBeginCreateOrUpdateOptions) (*runtime.Poller[NotebookWorkspacesClientCreateOrUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createOrUpdate(ctx, resourceGroupName, accountName, notebookWorkspaceName, notebookCreateUpdateParameters, options) @@ -78,7 +79,8 @@ func (client *NotebookWorkspacesClient) BeginCreateOrUpdate(ctx context.Context, // CreateOrUpdate - Creates the notebook workspace for a Cosmos DB account. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *NotebookWorkspacesClient) createOrUpdate(ctx context.Context, resourceGroupName string, accountName string, notebookWorkspaceName NotebookWorkspaceName, notebookCreateUpdateParameters NotebookWorkspaceCreateUpdateParameters, options *NotebookWorkspacesClientBeginCreateOrUpdateOptions) (*http.Response, error) { req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, accountName, notebookWorkspaceName, notebookCreateUpdateParameters, options) if err != nil { @@ -118,7 +120,7 @@ func (client *NotebookWorkspacesClient) createOrUpdateCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, notebookCreateUpdateParameters) @@ -126,12 +128,13 @@ func (client *NotebookWorkspacesClient) createOrUpdateCreateRequest(ctx context. // BeginDelete - Deletes the notebook workspace for a Cosmos DB account. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// notebookWorkspaceName - The name of the notebook workspace resource. -// options - NotebookWorkspacesClientBeginDeleteOptions contains the optional parameters for the NotebookWorkspacesClient.BeginDelete -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - notebookWorkspaceName - The name of the notebook workspace resource. +// - options - NotebookWorkspacesClientBeginDeleteOptions contains the optional parameters for the NotebookWorkspacesClient.BeginDelete +// method. func (client *NotebookWorkspacesClient) BeginDelete(ctx context.Context, resourceGroupName string, accountName string, notebookWorkspaceName NotebookWorkspaceName, options *NotebookWorkspacesClientBeginDeleteOptions) (*runtime.Poller[NotebookWorkspacesClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, accountName, notebookWorkspaceName, options) @@ -146,7 +149,8 @@ func (client *NotebookWorkspacesClient) BeginDelete(ctx context.Context, resourc // Delete - Deletes the notebook workspace for a Cosmos DB account. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *NotebookWorkspacesClient) deleteOperation(ctx context.Context, resourceGroupName string, accountName string, notebookWorkspaceName NotebookWorkspaceName, options *NotebookWorkspacesClientBeginDeleteOptions) (*http.Response, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, accountName, notebookWorkspaceName, options) if err != nil { @@ -186,7 +190,7 @@ func (client *NotebookWorkspacesClient) deleteCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -194,11 +198,12 @@ func (client *NotebookWorkspacesClient) deleteCreateRequest(ctx context.Context, // Get - Gets the notebook workspace for a Cosmos DB account. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// notebookWorkspaceName - The name of the notebook workspace resource. -// options - NotebookWorkspacesClientGetOptions contains the optional parameters for the NotebookWorkspacesClient.Get method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - notebookWorkspaceName - The name of the notebook workspace resource. +// - options - NotebookWorkspacesClientGetOptions contains the optional parameters for the NotebookWorkspacesClient.Get method. func (client *NotebookWorkspacesClient) Get(ctx context.Context, resourceGroupName string, accountName string, notebookWorkspaceName NotebookWorkspaceName, options *NotebookWorkspacesClientGetOptions) (NotebookWorkspacesClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, accountName, notebookWorkspaceName, options) if err != nil { @@ -238,7 +243,7 @@ func (client *NotebookWorkspacesClient) getCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -254,11 +259,12 @@ func (client *NotebookWorkspacesClient) getHandleResponse(resp *http.Response) ( } // NewListByDatabaseAccountPager - Gets the notebook workspace resources of an existing Cosmos DB account. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// options - NotebookWorkspacesClientListByDatabaseAccountOptions contains the optional parameters for the NotebookWorkspacesClient.ListByDatabaseAccount -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - options - NotebookWorkspacesClientListByDatabaseAccountOptions contains the optional parameters for the NotebookWorkspacesClient.NewListByDatabaseAccountPager +// method. func (client *NotebookWorkspacesClient) NewListByDatabaseAccountPager(resourceGroupName string, accountName string, options *NotebookWorkspacesClientListByDatabaseAccountOptions) *runtime.Pager[NotebookWorkspacesClientListByDatabaseAccountResponse] { return runtime.NewPager(runtime.PagingHandler[NotebookWorkspacesClientListByDatabaseAccountResponse]{ More: func(page NotebookWorkspacesClientListByDatabaseAccountResponse) bool { @@ -301,7 +307,7 @@ func (client *NotebookWorkspacesClient) listByDatabaseAccountCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -318,12 +324,13 @@ func (client *NotebookWorkspacesClient) listByDatabaseAccountHandleResponse(resp // ListConnectionInfo - Retrieves the connection info for the notebook workspace // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// notebookWorkspaceName - The name of the notebook workspace resource. -// options - NotebookWorkspacesClientListConnectionInfoOptions contains the optional parameters for the NotebookWorkspacesClient.ListConnectionInfo -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - notebookWorkspaceName - The name of the notebook workspace resource. +// - options - NotebookWorkspacesClientListConnectionInfoOptions contains the optional parameters for the NotebookWorkspacesClient.ListConnectionInfo +// method. func (client *NotebookWorkspacesClient) ListConnectionInfo(ctx context.Context, resourceGroupName string, accountName string, notebookWorkspaceName NotebookWorkspaceName, options *NotebookWorkspacesClientListConnectionInfoOptions) (NotebookWorkspacesClientListConnectionInfoResponse, error) { req, err := client.listConnectionInfoCreateRequest(ctx, resourceGroupName, accountName, notebookWorkspaceName, options) if err != nil { @@ -363,7 +370,7 @@ func (client *NotebookWorkspacesClient) listConnectionInfoCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -380,12 +387,13 @@ func (client *NotebookWorkspacesClient) listConnectionInfoHandleResponse(resp *h // BeginRegenerateAuthToken - Regenerates the auth token for the notebook workspace // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// notebookWorkspaceName - The name of the notebook workspace resource. -// options - NotebookWorkspacesClientBeginRegenerateAuthTokenOptions contains the optional parameters for the NotebookWorkspacesClient.BeginRegenerateAuthToken -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - notebookWorkspaceName - The name of the notebook workspace resource. +// - options - NotebookWorkspacesClientBeginRegenerateAuthTokenOptions contains the optional parameters for the NotebookWorkspacesClient.BeginRegenerateAuthToken +// method. func (client *NotebookWorkspacesClient) BeginRegenerateAuthToken(ctx context.Context, resourceGroupName string, accountName string, notebookWorkspaceName NotebookWorkspaceName, options *NotebookWorkspacesClientBeginRegenerateAuthTokenOptions) (*runtime.Poller[NotebookWorkspacesClientRegenerateAuthTokenResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.regenerateAuthToken(ctx, resourceGroupName, accountName, notebookWorkspaceName, options) @@ -400,7 +408,8 @@ func (client *NotebookWorkspacesClient) BeginRegenerateAuthToken(ctx context.Con // RegenerateAuthToken - Regenerates the auth token for the notebook workspace // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *NotebookWorkspacesClient) regenerateAuthToken(ctx context.Context, resourceGroupName string, accountName string, notebookWorkspaceName NotebookWorkspaceName, options *NotebookWorkspacesClientBeginRegenerateAuthTokenOptions) (*http.Response, error) { req, err := client.regenerateAuthTokenCreateRequest(ctx, resourceGroupName, accountName, notebookWorkspaceName, options) if err != nil { @@ -440,7 +449,7 @@ func (client *NotebookWorkspacesClient) regenerateAuthTokenCreateRequest(ctx con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -448,12 +457,13 @@ func (client *NotebookWorkspacesClient) regenerateAuthTokenCreateRequest(ctx con // BeginStart - Starts the notebook workspace // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// notebookWorkspaceName - The name of the notebook workspace resource. -// options - NotebookWorkspacesClientBeginStartOptions contains the optional parameters for the NotebookWorkspacesClient.BeginStart -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - notebookWorkspaceName - The name of the notebook workspace resource. +// - options - NotebookWorkspacesClientBeginStartOptions contains the optional parameters for the NotebookWorkspacesClient.BeginStart +// method. func (client *NotebookWorkspacesClient) BeginStart(ctx context.Context, resourceGroupName string, accountName string, notebookWorkspaceName NotebookWorkspaceName, options *NotebookWorkspacesClientBeginStartOptions) (*runtime.Poller[NotebookWorkspacesClientStartResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.start(ctx, resourceGroupName, accountName, notebookWorkspaceName, options) @@ -468,7 +478,8 @@ func (client *NotebookWorkspacesClient) BeginStart(ctx context.Context, resource // Start - Starts the notebook workspace // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *NotebookWorkspacesClient) start(ctx context.Context, resourceGroupName string, accountName string, notebookWorkspaceName NotebookWorkspaceName, options *NotebookWorkspacesClientBeginStartOptions) (*http.Response, error) { req, err := client.startCreateRequest(ctx, resourceGroupName, accountName, notebookWorkspaceName, options) if err != nil { @@ -508,7 +519,7 @@ func (client *NotebookWorkspacesClient) startCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/cosmos/armcosmos/notebookworkspaces_client_example_test.go b/sdk/resourcemanager/cosmos/armcosmos/notebookworkspaces_client_example_test.go index 29c30cf1ab12..c24e987bce96 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/notebookworkspaces_client_example_test.go +++ b/sdk/resourcemanager/cosmos/armcosmos/notebookworkspaces_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armcosmos_test @@ -16,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cosmos/armcosmos/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBNotebookWorkspaceList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBNotebookWorkspaceList.json func ExampleNotebookWorkspacesClient_NewListByDatabaseAccountPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -29,18 +30,31 @@ func ExampleNotebookWorkspacesClient_NewListByDatabaseAccountPager() { } pager := client.NewListByDatabaseAccountPager("rg1", "ddb1", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.NotebookWorkspaceListResult = armcosmos.NotebookWorkspaceListResult{ + // Value: []*armcosmos.NotebookWorkspace{ + // { + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/notebookWorkspaces"), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/notebookWorkspaces/default"), + // Properties: &armcosmos.NotebookWorkspaceProperties{ + // NotebookServerEndpoint: to.Ptr("endpoint"), + // Status: to.Ptr("Online"), + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBNotebookWorkspaceGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBNotebookWorkspaceGet.json func ExampleNotebookWorkspacesClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -55,11 +69,21 @@ func ExampleNotebookWorkspacesClient_Get() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.NotebookWorkspace = armcosmos.NotebookWorkspace{ + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/notebookWorkspaces"), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/notebookWorkspaces/default"), + // Properties: &armcosmos.NotebookWorkspaceProperties{ + // NotebookServerEndpoint: to.Ptr("endpoint"), + // Status: to.Ptr("Online"), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBNotebookWorkspaceCreate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBNotebookWorkspaceCreate.json func ExampleNotebookWorkspacesClient_BeginCreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -78,11 +102,21 @@ func ExampleNotebookWorkspacesClient_BeginCreateOrUpdate() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.NotebookWorkspace = armcosmos.NotebookWorkspace{ + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/notebookWorkspaces"), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/notebookWorkspaces/default"), + // Properties: &armcosmos.NotebookWorkspaceProperties{ + // NotebookServerEndpoint: to.Ptr("endpoint"), + // Status: to.Ptr("Online"), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBNotebookWorkspaceDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBNotebookWorkspaceDelete.json func ExampleNotebookWorkspacesClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -103,7 +137,7 @@ func ExampleNotebookWorkspacesClient_BeginDelete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBNotebookWorkspaceListConnectionInfo.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBNotebookWorkspaceListConnectionInfo.json func ExampleNotebookWorkspacesClient_ListConnectionInfo() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -118,11 +152,16 @@ func ExampleNotebookWorkspacesClient_ListConnectionInfo() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.NotebookWorkspaceConnectionInfoResult = armcosmos.NotebookWorkspaceConnectionInfoResult{ + // AuthToken: to.Ptr("auth-token"), + // NotebookServerEndpoint: to.Ptr("notebook endpoint"), + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBNotebookWorkspaceRegenerateAuthToken.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBNotebookWorkspaceRegenerateAuthToken.json func ExampleNotebookWorkspacesClient_BeginRegenerateAuthToken() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -143,7 +182,7 @@ func ExampleNotebookWorkspacesClient_BeginRegenerateAuthToken() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBNotebookWorkspaceStart.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBNotebookWorkspaceStart.json func ExampleNotebookWorkspacesClient_BeginStart() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/cosmos/armcosmos/operations_client.go b/sdk/resourcemanager/cosmos/armcosmos/operations_client.go index 4a03cefbc046..25e16f20f454 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/operations_client.go +++ b/sdk/resourcemanager/cosmos/armcosmos/operations_client.go @@ -28,8 +28,8 @@ type OperationsClient struct { } // NewOperationsClient creates a new instance of OperationsClient with the specified values. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*OperationsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -50,8 +50,9 @@ func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientO } // NewListPager - Lists all of the available Cosmos DB Resource Provider operations. -// Generated from API version 2022-08-15-preview -// options - OperationsClientListOptions contains the optional parameters for the OperationsClient.List method. +// +// Generated from API version 2022-11-15 +// - 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]{ More: func(page OperationsClientListResponse) bool { @@ -88,7 +89,7 @@ func (client *OperationsClient) listCreateRequest(ctx context.Context, options * return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/cosmos/armcosmos/operations_client_example_test.go b/sdk/resourcemanager/cosmos/armcosmos/operations_client_example_test.go index 477c7c80743b..56cdc494c0c4 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/operations_client_example_test.go +++ b/sdk/resourcemanager/cosmos/armcosmos/operations_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armcosmos_test @@ -16,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cosmos/armcosmos/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBOperationsList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBOperationsList.json func ExampleOperationsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -29,13 +30,26 @@ func ExampleOperationsClient_NewListPager() { } pager := client.NewListPager(nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.OperationListResult = armcosmos.OperationListResult{ + // Value: []*armcosmos.Operation{ + // { + // Name: to.Ptr("operationName"), + // Display: &armcosmos.OperationDisplay{ + // Description: to.Ptr("description"), + // Operation: to.Ptr("operationName"), + // Provider: to.Ptr("providerName"), + // Resource: to.Ptr("resourceName"), + // }, + // }}, + // } } } diff --git a/sdk/resourcemanager/cosmos/armcosmos/partitionkeyrangeid_client.go b/sdk/resourcemanager/cosmos/armcosmos/partitionkeyrangeid_client.go index 585be3681e92..0ee7f6c10c27 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/partitionkeyrangeid_client.go +++ b/sdk/resourcemanager/cosmos/armcosmos/partitionkeyrangeid_client.go @@ -32,9 +32,9 @@ type PartitionKeyRangeIDClient struct { } // NewPartitionKeyRangeIDClient creates a new instance of PartitionKeyRangeIDClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewPartitionKeyRangeIDClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PartitionKeyRangeIDClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,17 +56,18 @@ func NewPartitionKeyRangeIDClient(subscriptionID string, credential azcore.Token } // NewListMetricsPager - Retrieves the metrics determined by the given filter for the given partition key range id. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseRid - Cosmos DB database rid. -// collectionRid - Cosmos DB collection rid. -// partitionKeyRangeID - Partition Key Range Id for which to get data. -// filter - An OData filter expression that describes a subset of metrics to return. The parameters that can be filtered are -// name.value (name of the metric, can have an or of multiple names), startTime, endTime, -// and timeGrain. The supported operator is eq. -// options - PartitionKeyRangeIDClientListMetricsOptions contains the optional parameters for the PartitionKeyRangeIDClient.ListMetrics -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - databaseRid - Cosmos DB database rid. +// - collectionRid - Cosmos DB collection rid. +// - partitionKeyRangeID - Partition Key Range Id for which to get data. +// - filter - An OData filter expression that describes a subset of metrics to return. The parameters that can be filtered are +// name.value (name of the metric, can have an or of multiple names), startTime, endTime, +// and timeGrain. The supported operator is eq. +// - options - PartitionKeyRangeIDClientListMetricsOptions contains the optional parameters for the PartitionKeyRangeIDClient.NewListMetricsPager +// method. func (client *PartitionKeyRangeIDClient) NewListMetricsPager(resourceGroupName string, accountName string, databaseRid string, collectionRid string, partitionKeyRangeID string, filter string, options *PartitionKeyRangeIDClientListMetricsOptions) *runtime.Pager[PartitionKeyRangeIDClientListMetricsResponse] { return runtime.NewPager(runtime.PagingHandler[PartitionKeyRangeIDClientListMetricsResponse]{ More: func(page PartitionKeyRangeIDClientListMetricsResponse) bool { @@ -121,7 +122,7 @@ func (client *PartitionKeyRangeIDClient) listMetricsCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") reqQP.Set("$filter", filter) req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} diff --git a/sdk/resourcemanager/cosmos/armcosmos/partitionkeyrangeid_client_example_test.go b/sdk/resourcemanager/cosmos/armcosmos/partitionkeyrangeid_client_example_test.go index d8d14863c9c7..7ecc36236466 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/partitionkeyrangeid_client_example_test.go +++ b/sdk/resourcemanager/cosmos/armcosmos/partitionkeyrangeid_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armcosmos_test @@ -16,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cosmos/armcosmos/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBPKeyRangeIdGetMetrics.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBPKeyRangeIdGetMetrics.json func ExamplePartitionKeyRangeIDClient_NewListMetricsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -29,13 +30,54 @@ func ExamplePartitionKeyRangeIDClient_NewListMetricsPager() { } pager := client.NewListMetricsPager("rg1", "ddb1", "databaseRid", "collectionRid", "0", "$filter=(name.value eq 'Max RUs Per Second') and timeGrain eq duration'PT1M' and startTime eq '2017-11-19T23:53:55.2780000Z' and endTime eq '2017-11-20T23:58:55.2780000Z", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.PartitionMetricListResult = armcosmos.PartitionMetricListResult{ + // Value: []*armcosmos.PartitionMetric{ + // { + // Name: &armcosmos.MetricName{ + // LocalizedValue: to.Ptr("Max RUs Per Second"), + // Value: to.Ptr("Max RUs Per Second"), + // }, + // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-20T23:58:55.2780000Z"); return t}()), + // MetricValues: []*armcosmos.MetricValue{ + // { + // Maximum: to.Ptr[float64](5), + // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-19T23:53:55.2780000Z"); return t}()), + // }, + // { + // Maximum: to.Ptr[float64](5), + // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-19T23:54:55.2780000Z"); return t}()), + // }, + // { + // Maximum: to.Ptr[float64](5), + // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-19T23:55:55.2780000Z"); return t}()), + // }, + // { + // Maximum: to.Ptr[float64](5), + // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-19T23:56:55.2780000Z"); return t}()), + // }, + // { + // Maximum: to.Ptr[float64](5), + // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-19T23:57:55.2780000Z"); return t}()), + // }, + // { + // Maximum: to.Ptr[float64](5), + // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-19T23:58:55.2780000Z"); return t}()), + // }}, + // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-19T23:53:55.2780000Z"); return t}()), + // TimeGrain: to.Ptr("PT1M"), + // Unit: to.Ptr(armcosmos.UnitTypeCount), + // PartitionID: to.Ptr("00000000-0000-0000-0000-000000000000"), + // PartitionKeyRangeID: to.Ptr("0"), + // }}, + // } } } diff --git a/sdk/resourcemanager/cosmos/armcosmos/partitionkeyrangeidregion_client.go b/sdk/resourcemanager/cosmos/armcosmos/partitionkeyrangeidregion_client.go index a5076f5cc3fe..2619b9161969 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/partitionkeyrangeidregion_client.go +++ b/sdk/resourcemanager/cosmos/armcosmos/partitionkeyrangeidregion_client.go @@ -32,9 +32,9 @@ type PartitionKeyRangeIDRegionClient struct { } // NewPartitionKeyRangeIDRegionClient creates a new instance of PartitionKeyRangeIDRegionClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewPartitionKeyRangeIDRegionClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PartitionKeyRangeIDRegionClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -56,18 +56,19 @@ func NewPartitionKeyRangeIDRegionClient(subscriptionID string, credential azcore } // NewListMetricsPager - Retrieves the metrics determined by the given filter for the given partition key range id and region. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// region - Cosmos DB region, with spaces between words and each word capitalized. -// databaseRid - Cosmos DB database rid. -// collectionRid - Cosmos DB collection rid. -// partitionKeyRangeID - Partition Key Range Id for which to get data. -// filter - An OData filter expression that describes a subset of metrics to return. The parameters that can be filtered are -// name.value (name of the metric, can have an or of multiple names), startTime, endTime, -// and timeGrain. The supported operator is eq. -// options - PartitionKeyRangeIDRegionClientListMetricsOptions contains the optional parameters for the PartitionKeyRangeIDRegionClient.ListMetrics -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - region - Cosmos DB region, with spaces between words and each word capitalized. +// - databaseRid - Cosmos DB database rid. +// - collectionRid - Cosmos DB collection rid. +// - partitionKeyRangeID - Partition Key Range Id for which to get data. +// - filter - An OData filter expression that describes a subset of metrics to return. The parameters that can be filtered are +// name.value (name of the metric, can have an or of multiple names), startTime, endTime, +// and timeGrain. The supported operator is eq. +// - options - PartitionKeyRangeIDRegionClientListMetricsOptions contains the optional parameters for the PartitionKeyRangeIDRegionClient.NewListMetricsPager +// method. func (client *PartitionKeyRangeIDRegionClient) NewListMetricsPager(resourceGroupName string, accountName string, region string, databaseRid string, collectionRid string, partitionKeyRangeID string, filter string, options *PartitionKeyRangeIDRegionClientListMetricsOptions) *runtime.Pager[PartitionKeyRangeIDRegionClientListMetricsResponse] { return runtime.NewPager(runtime.PagingHandler[PartitionKeyRangeIDRegionClientListMetricsResponse]{ More: func(page PartitionKeyRangeIDRegionClientListMetricsResponse) bool { @@ -126,7 +127,7 @@ func (client *PartitionKeyRangeIDRegionClient) listMetricsCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") reqQP.Set("$filter", filter) req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} diff --git a/sdk/resourcemanager/cosmos/armcosmos/partitionkeyrangeidregion_client_example_test.go b/sdk/resourcemanager/cosmos/armcosmos/partitionkeyrangeidregion_client_example_test.go index dd14bede5f77..60628313d9f4 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/partitionkeyrangeidregion_client_example_test.go +++ b/sdk/resourcemanager/cosmos/armcosmos/partitionkeyrangeidregion_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armcosmos_test @@ -16,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cosmos/armcosmos/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBPKeyRangeIdRegionGetMetrics.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBPKeyRangeIdRegionGetMetrics.json func ExamplePartitionKeyRangeIDRegionClient_NewListMetricsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -29,13 +30,54 @@ func ExamplePartitionKeyRangeIDRegionClient_NewListMetricsPager() { } pager := client.NewListMetricsPager("rg1", "ddb1", "West US", "databaseRid", "collectionRid", "0", "$filter=(name.value eq 'Max RUs Per Second') and timeGrain eq duration'PT1M' and startTime eq '2017-11-19T23:53:55.2780000Z' and endTime eq '2017-11-20T23:58:55.2780000Z", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.PartitionMetricListResult = armcosmos.PartitionMetricListResult{ + // Value: []*armcosmos.PartitionMetric{ + // { + // Name: &armcosmos.MetricName{ + // LocalizedValue: to.Ptr("Max RUs Per Second"), + // Value: to.Ptr("Max RUs Per Second"), + // }, + // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-20T23:58:55.2780000Z"); return t}()), + // MetricValues: []*armcosmos.MetricValue{ + // { + // Maximum: to.Ptr[float64](5), + // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-19T23:53:55.2780000Z"); return t}()), + // }, + // { + // Maximum: to.Ptr[float64](5), + // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-19T23:54:55.2780000Z"); return t}()), + // }, + // { + // Maximum: to.Ptr[float64](5), + // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-19T23:55:55.2780000Z"); return t}()), + // }, + // { + // Maximum: to.Ptr[float64](5), + // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-19T23:56:55.2780000Z"); return t}()), + // }, + // { + // Maximum: to.Ptr[float64](5), + // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-19T23:57:55.2780000Z"); return t}()), + // }, + // { + // Maximum: to.Ptr[float64](5), + // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-19T23:58:55.2780000Z"); return t}()), + // }}, + // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-19T23:53:55.2780000Z"); return t}()), + // TimeGrain: to.Ptr("PT1M"), + // Unit: to.Ptr(armcosmos.UnitTypeCount), + // PartitionID: to.Ptr("00000000-0000-0000-0000-000000000000"), + // PartitionKeyRangeID: to.Ptr("0"), + // }}, + // } } } diff --git a/sdk/resourcemanager/cosmos/armcosmos/percentile_client.go b/sdk/resourcemanager/cosmos/armcosmos/percentile_client.go index 31fd80bd8e10..017fd8854b9f 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/percentile_client.go +++ b/sdk/resourcemanager/cosmos/armcosmos/percentile_client.go @@ -32,9 +32,9 @@ type PercentileClient struct { } // NewPercentileClient creates a new instance of PercentileClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewPercentileClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PercentileClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,13 +57,15 @@ func NewPercentileClient(subscriptionID string, credential azcore.TokenCredentia // NewListMetricsPager - Retrieves the metrics determined by the given filter for the given database account. This url is // only for PBS and Replication Latency data -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// filter - An OData filter expression that describes a subset of metrics to return. The parameters that can be filtered are -// name.value (name of the metric, can have an or of multiple names), startTime, endTime, -// and timeGrain. The supported operator is eq. -// options - PercentileClientListMetricsOptions contains the optional parameters for the PercentileClient.ListMetrics method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - filter - An OData filter expression that describes a subset of metrics to return. The parameters that can be filtered are +// name.value (name of the metric, can have an or of multiple names), startTime, endTime, +// and timeGrain. The supported operator is eq. +// - options - PercentileClientListMetricsOptions contains the optional parameters for the PercentileClient.NewListMetricsPager +// method. func (client *PercentileClient) NewListMetricsPager(resourceGroupName string, accountName string, filter string, options *PercentileClientListMetricsOptions) *runtime.Pager[PercentileClientListMetricsResponse] { return runtime.NewPager(runtime.PagingHandler[PercentileClientListMetricsResponse]{ More: func(page PercentileClientListMetricsResponse) bool { @@ -106,7 +108,7 @@ func (client *PercentileClient) listMetricsCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") reqQP.Set("$filter", filter) req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} diff --git a/sdk/resourcemanager/cosmos/armcosmos/percentile_client_example_test.go b/sdk/resourcemanager/cosmos/armcosmos/percentile_client_example_test.go index b3460151ff53..0f7407103fbc 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/percentile_client_example_test.go +++ b/sdk/resourcemanager/cosmos/armcosmos/percentile_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armcosmos_test @@ -16,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cosmos/armcosmos/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBPercentileGetMetrics.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBPercentileGetMetrics.json func ExamplePercentileClient_NewListMetricsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -29,13 +30,59 @@ func ExamplePercentileClient_NewListMetricsPager() { } pager := client.NewListMetricsPager("rg1", "ddb1", "$filter=(name.value eq 'Probabilistic Bounded Staleness') and timeGrain eq duration'PT5M' and startTime eq '2017-11-19T23:53:55.2780000Z' and endTime eq '2017-11-20T00:13:55.2780000Z", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.PercentileMetricListResult = armcosmos.PercentileMetricListResult{ + // Value: []*armcosmos.PercentileMetric{ + // { + // Name: &armcosmos.MetricName{ + // LocalizedValue: to.Ptr("Probabilistic Bounded Staleness-S-West Central US-T-East US"), + // Value: to.Ptr("Probabilistic Bounded Staleness-S-West Central US-T-East US"), + // }, + // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-20T00:13:55.2780000Z"); return t}()), + // MetricValues: []*armcosmos.PercentileMetricValue{ + // { + // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-19T23:53:55.2780000Z"); return t}()), + // P10: to.Ptr[float64](1.11), + // P25: to.Ptr[float64](2.5), + // P50: to.Ptr[float64](4.34), + // P75: to.Ptr[float64](5.2), + // P90: to.Ptr[float64](6.77), + // P95: to.Ptr[float64](7.1), + // P99: to.Ptr[float64](8.3), + // }}, + // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-19T23:53:55.2780000Z"); return t}()), + // TimeGrain: to.Ptr("PT5M"), + // Unit: to.Ptr(armcosmos.UnitTypeMilliseconds), + // }, + // { + // Name: &armcosmos.MetricName{ + // LocalizedValue: to.Ptr("Probabilistic Bounded Staleness-S-West Central US-T-West US"), + // Value: to.Ptr("Probabilistic Bounded Staleness-S-West Central US-T-West US"), + // }, + // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-20T00:13:55.2780000Z"); return t}()), + // MetricValues: []*armcosmos.PercentileMetricValue{ + // { + // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-19T23:53:55.2780000Z"); return t}()), + // P10: to.Ptr[float64](1.11), + // P25: to.Ptr[float64](2.5), + // P50: to.Ptr[float64](4.34), + // P75: to.Ptr[float64](5.2), + // P90: to.Ptr[float64](6.77), + // P95: to.Ptr[float64](7.1), + // P99: to.Ptr[float64](8.3), + // }}, + // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-19T23:53:55.2780000Z"); return t}()), + // TimeGrain: to.Ptr("PT5M"), + // Unit: to.Ptr(armcosmos.UnitTypeMilliseconds), + // }}, + // } } } diff --git a/sdk/resourcemanager/cosmos/armcosmos/percentilesourcetarget_client.go b/sdk/resourcemanager/cosmos/armcosmos/percentilesourcetarget_client.go index 40bc47991c89..ac847ddb02dc 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/percentilesourcetarget_client.go +++ b/sdk/resourcemanager/cosmos/armcosmos/percentilesourcetarget_client.go @@ -32,9 +32,9 @@ type PercentileSourceTargetClient struct { } // NewPercentileSourceTargetClient creates a new instance of PercentileSourceTargetClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewPercentileSourceTargetClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PercentileSourceTargetClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,16 +57,17 @@ func NewPercentileSourceTargetClient(subscriptionID string, credential azcore.To // NewListMetricsPager - Retrieves the metrics determined by the given filter for the given account, source and target region. // This url is only for PBS and Replication Latency data -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// sourceRegion - Source region from which data is written. Cosmos DB region, with spaces between words and each word capitalized. -// targetRegion - Target region to which data is written. Cosmos DB region, with spaces between words and each word capitalized. -// filter - An OData filter expression that describes a subset of metrics to return. The parameters that can be filtered are -// name.value (name of the metric, can have an or of multiple names), startTime, endTime, -// and timeGrain. The supported operator is eq. -// options - PercentileSourceTargetClientListMetricsOptions contains the optional parameters for the PercentileSourceTargetClient.ListMetrics -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - sourceRegion - Source region from which data is written. Cosmos DB region, with spaces between words and each word capitalized. +// - targetRegion - Target region to which data is written. Cosmos DB region, with spaces between words and each word capitalized. +// - filter - An OData filter expression that describes a subset of metrics to return. The parameters that can be filtered are +// name.value (name of the metric, can have an or of multiple names), startTime, endTime, +// and timeGrain. The supported operator is eq. +// - options - PercentileSourceTargetClientListMetricsOptions contains the optional parameters for the PercentileSourceTargetClient.NewListMetricsPager +// method. func (client *PercentileSourceTargetClient) NewListMetricsPager(resourceGroupName string, accountName string, sourceRegion string, targetRegion string, filter string, options *PercentileSourceTargetClientListMetricsOptions) *runtime.Pager[PercentileSourceTargetClientListMetricsResponse] { return runtime.NewPager(runtime.PagingHandler[PercentileSourceTargetClientListMetricsResponse]{ More: func(page PercentileSourceTargetClientListMetricsResponse) bool { @@ -117,7 +118,7 @@ func (client *PercentileSourceTargetClient) listMetricsCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") reqQP.Set("$filter", filter) req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} diff --git a/sdk/resourcemanager/cosmos/armcosmos/percentilesourcetarget_client_example_test.go b/sdk/resourcemanager/cosmos/armcosmos/percentilesourcetarget_client_example_test.go index 7fba25cea33c..d1a76ad7d085 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/percentilesourcetarget_client_example_test.go +++ b/sdk/resourcemanager/cosmos/armcosmos/percentilesourcetarget_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armcosmos_test @@ -16,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cosmos/armcosmos/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBPercentileSourceTargetGetMetrics.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBPercentileSourceTargetGetMetrics.json func ExamplePercentileSourceTargetClient_NewListMetricsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -29,13 +30,38 @@ func ExamplePercentileSourceTargetClient_NewListMetricsPager() { } pager := client.NewListMetricsPager("rg1", "ddb1", "West Central US", "East US", "$filter=(name.value eq 'Probabilistic Bounded Staleness') and timeGrain eq duration'PT5M' and startTime eq '2017-11-19T23:53:55.2780000Z' and endTime eq '2017-11-20T00:13:55.2780000Z", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.PercentileMetricListResult = armcosmos.PercentileMetricListResult{ + // Value: []*armcosmos.PercentileMetric{ + // { + // Name: &armcosmos.MetricName{ + // LocalizedValue: to.Ptr("Probabilistic Bounded Staleness-S-West Central US-T-East US"), + // Value: to.Ptr("Probabilistic Bounded Staleness-S-West Central US-T-East US"), + // }, + // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-20T00:13:55.2780000Z"); return t}()), + // MetricValues: []*armcosmos.PercentileMetricValue{ + // { + // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-19T23:53:55.2780000Z"); return t}()), + // P10: to.Ptr[float64](1.11), + // P25: to.Ptr[float64](2.5), + // P50: to.Ptr[float64](4.34), + // P75: to.Ptr[float64](5.2), + // P90: to.Ptr[float64](6.77), + // P95: to.Ptr[float64](7.1), + // P99: to.Ptr[float64](8.3), + // }}, + // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-19T23:53:55.2780000Z"); return t}()), + // TimeGrain: to.Ptr("PT5M"), + // Unit: to.Ptr(armcosmos.UnitTypeMilliseconds), + // }}, + // } } } diff --git a/sdk/resourcemanager/cosmos/armcosmos/percentiletarget_client.go b/sdk/resourcemanager/cosmos/armcosmos/percentiletarget_client.go index 1e57d41a48e8..093bd165e3c3 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/percentiletarget_client.go +++ b/sdk/resourcemanager/cosmos/armcosmos/percentiletarget_client.go @@ -32,9 +32,9 @@ type PercentileTargetClient struct { } // NewPercentileTargetClient creates a new instance of PercentileTargetClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewPercentileTargetClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PercentileTargetClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,15 +57,16 @@ func NewPercentileTargetClient(subscriptionID string, credential azcore.TokenCre // NewListMetricsPager - Retrieves the metrics determined by the given filter for the given account target region. This url // is only for PBS and Replication Latency data -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// targetRegion - Target region to which data is written. Cosmos DB region, with spaces between words and each word capitalized. -// filter - An OData filter expression that describes a subset of metrics to return. The parameters that can be filtered are -// name.value (name of the metric, can have an or of multiple names), startTime, endTime, -// and timeGrain. The supported operator is eq. -// options - PercentileTargetClientListMetricsOptions contains the optional parameters for the PercentileTargetClient.ListMetrics -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - targetRegion - Target region to which data is written. Cosmos DB region, with spaces between words and each word capitalized. +// - filter - An OData filter expression that describes a subset of metrics to return. The parameters that can be filtered are +// name.value (name of the metric, can have an or of multiple names), startTime, endTime, +// and timeGrain. The supported operator is eq. +// - options - PercentileTargetClientListMetricsOptions contains the optional parameters for the PercentileTargetClient.NewListMetricsPager +// method. func (client *PercentileTargetClient) NewListMetricsPager(resourceGroupName string, accountName string, targetRegion string, filter string, options *PercentileTargetClientListMetricsOptions) *runtime.Pager[PercentileTargetClientListMetricsResponse] { return runtime.NewPager(runtime.PagingHandler[PercentileTargetClientListMetricsResponse]{ More: func(page PercentileTargetClientListMetricsResponse) bool { @@ -112,7 +113,7 @@ func (client *PercentileTargetClient) listMetricsCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") reqQP.Set("$filter", filter) req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} diff --git a/sdk/resourcemanager/cosmos/armcosmos/percentiletarget_client_example_test.go b/sdk/resourcemanager/cosmos/armcosmos/percentiletarget_client_example_test.go index aa28f5f5dc13..25b011d48798 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/percentiletarget_client_example_test.go +++ b/sdk/resourcemanager/cosmos/armcosmos/percentiletarget_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armcosmos_test @@ -16,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cosmos/armcosmos/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBPercentileTargetGetMetrics.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBPercentileTargetGetMetrics.json func ExamplePercentileTargetClient_NewListMetricsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -29,13 +30,59 @@ func ExamplePercentileTargetClient_NewListMetricsPager() { } pager := client.NewListMetricsPager("rg1", "ddb1", "East US", "$filter=(name.value eq 'Probabilistic Bounded Staleness') and timeGrain eq duration'PT5M' and startTime eq '2017-11-19T23:53:55.2780000Z' and endTime eq '2017-11-20T00:13:55.2780000Z", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.PercentileMetricListResult = armcosmos.PercentileMetricListResult{ + // Value: []*armcosmos.PercentileMetric{ + // { + // Name: &armcosmos.MetricName{ + // LocalizedValue: to.Ptr("Probabilistic Bounded Staleness-S-West Central US-T-East US"), + // Value: to.Ptr("Probabilistic Bounded Staleness-S-West Central US-T-East US"), + // }, + // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-20T00:13:55.2780000Z"); return t}()), + // MetricValues: []*armcosmos.PercentileMetricValue{ + // { + // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-19T23:53:55.2780000Z"); return t}()), + // P10: to.Ptr[float64](1.11), + // P25: to.Ptr[float64](2.5), + // P50: to.Ptr[float64](4.34), + // P75: to.Ptr[float64](5.2), + // P90: to.Ptr[float64](6.77), + // P95: to.Ptr[float64](7.1), + // P99: to.Ptr[float64](8.3), + // }}, + // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-19T23:53:55.2780000Z"); return t}()), + // TimeGrain: to.Ptr("PT5M"), + // Unit: to.Ptr(armcosmos.UnitTypeMilliseconds), + // }, + // { + // Name: &armcosmos.MetricName{ + // LocalizedValue: to.Ptr("Probabilistic Bounded Staleness-S-West Central US-T-West US"), + // Value: to.Ptr("Probabilistic Bounded Staleness-S-West US-T-East US"), + // }, + // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-20T00:13:55.2780000Z"); return t}()), + // MetricValues: []*armcosmos.PercentileMetricValue{ + // { + // Timestamp: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-19T23:53:55.2780000Z"); return t}()), + // P10: to.Ptr[float64](1.11), + // P25: to.Ptr[float64](2.5), + // P50: to.Ptr[float64](4.34), + // P75: to.Ptr[float64](5.2), + // P90: to.Ptr[float64](6.77), + // P95: to.Ptr[float64](7.1), + // P99: to.Ptr[float64](8.3), + // }}, + // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2017-11-19T23:53:55.2780000Z"); return t}()), + // TimeGrain: to.Ptr("PT5M"), + // Unit: to.Ptr(armcosmos.UnitTypeMilliseconds), + // }}, + // } } } diff --git a/sdk/resourcemanager/cosmos/armcosmos/polymorphic_helpers.go b/sdk/resourcemanager/cosmos/armcosmos/polymorphic_helpers.go index 6094920bf513..5088459d488f 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/polymorphic_helpers.go +++ b/sdk/resourcemanager/cosmos/armcosmos/polymorphic_helpers.go @@ -15,7 +15,7 @@ func unmarshalBackupPolicyClassification(rawMsg json.RawMessage) (BackupPolicyCl if rawMsg == nil { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } @@ -31,33 +31,11 @@ func unmarshalBackupPolicyClassification(rawMsg json.RawMessage) (BackupPolicyCl return b, json.Unmarshal(rawMsg, b) } -func unmarshalDataTransferDataSourceSinkClassification(rawMsg json.RawMessage) (DataTransferDataSourceSinkClassification, error) { - if rawMsg == nil { - return nil, nil - } - var m map[string]interface{} - if err := json.Unmarshal(rawMsg, &m); err != nil { - return nil, err - } - var b DataTransferDataSourceSinkClassification - switch m["component"] { - case string(DataTransferComponentAzureBlobStorage): - b = &AzureBlobDataTransferDataSourceSink{} - case string(DataTransferComponentCosmosDBCassandra): - b = &CassandraDataTransferDataSourceSink{} - case string(DataTransferComponentCosmosDBSQL): - b = &SQLDataTransferDataSourceSink{} - default: - b = &DataTransferDataSourceSink{} - } - return b, json.Unmarshal(rawMsg, b) -} - func unmarshalServiceResourcePropertiesClassification(rawMsg json.RawMessage) (ServiceResourcePropertiesClassification, error) { if rawMsg == nil { return nil, nil } - var m map[string]interface{} + var m map[string]any if err := json.Unmarshal(rawMsg, &m); err != nil { return nil, err } diff --git a/sdk/resourcemanager/cosmos/armcosmos/privateendpointconnections_client.go b/sdk/resourcemanager/cosmos/armcosmos/privateendpointconnections_client.go index 214cd5045e88..8e618382f679 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/privateendpointconnections_client.go +++ b/sdk/resourcemanager/cosmos/armcosmos/privateendpointconnections_client.go @@ -32,9 +32,9 @@ type PrivateEndpointConnectionsClient struct { } // NewPrivateEndpointConnectionsClient creates a new instance of PrivateEndpointConnectionsClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewPrivateEndpointConnectionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PrivateEndpointConnectionsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,12 +57,13 @@ func NewPrivateEndpointConnectionsClient(subscriptionID string, credential azcor // BeginCreateOrUpdate - Approve or reject a private endpoint connection with a given name. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// privateEndpointConnectionName - The name of the private endpoint connection. -// options - PrivateEndpointConnectionsClientBeginCreateOrUpdateOptions contains the optional parameters for the PrivateEndpointConnectionsClient.BeginCreateOrUpdate -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - privateEndpointConnectionName - The name of the private endpoint connection. +// - options - PrivateEndpointConnectionsClientBeginCreateOrUpdateOptions contains the optional parameters for the PrivateEndpointConnectionsClient.BeginCreateOrUpdate +// method. func (client *PrivateEndpointConnectionsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, accountName string, privateEndpointConnectionName string, parameters PrivateEndpointConnection, options *PrivateEndpointConnectionsClientBeginCreateOrUpdateOptions) (*runtime.Poller[PrivateEndpointConnectionsClientCreateOrUpdateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createOrUpdate(ctx, resourceGroupName, accountName, privateEndpointConnectionName, parameters, options) @@ -77,7 +78,8 @@ func (client *PrivateEndpointConnectionsClient) BeginCreateOrUpdate(ctx context. // CreateOrUpdate - Approve or reject a private endpoint connection with a given name. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *PrivateEndpointConnectionsClient) createOrUpdate(ctx context.Context, resourceGroupName string, accountName string, privateEndpointConnectionName string, parameters PrivateEndpointConnection, options *PrivateEndpointConnectionsClientBeginCreateOrUpdateOptions) (*http.Response, error) { req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, accountName, privateEndpointConnectionName, parameters, options) if err != nil { @@ -117,7 +119,7 @@ func (client *PrivateEndpointConnectionsClient) createOrUpdateCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, parameters) @@ -125,12 +127,13 @@ func (client *PrivateEndpointConnectionsClient) createOrUpdateCreateRequest(ctx // BeginDelete - Deletes a private endpoint connection with a given name. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// privateEndpointConnectionName - The name of the private endpoint connection. -// options - PrivateEndpointConnectionsClientBeginDeleteOptions contains the optional parameters for the PrivateEndpointConnectionsClient.BeginDelete -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - privateEndpointConnectionName - The name of the private endpoint connection. +// - options - PrivateEndpointConnectionsClientBeginDeleteOptions contains the optional parameters for the PrivateEndpointConnectionsClient.BeginDelete +// method. func (client *PrivateEndpointConnectionsClient) BeginDelete(ctx context.Context, resourceGroupName string, accountName string, privateEndpointConnectionName string, options *PrivateEndpointConnectionsClientBeginDeleteOptions) (*runtime.Poller[PrivateEndpointConnectionsClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, accountName, privateEndpointConnectionName, options) @@ -145,7 +148,8 @@ func (client *PrivateEndpointConnectionsClient) BeginDelete(ctx context.Context, // Delete - Deletes a private endpoint connection with a given name. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *PrivateEndpointConnectionsClient) deleteOperation(ctx context.Context, resourceGroupName string, accountName string, privateEndpointConnectionName string, options *PrivateEndpointConnectionsClientBeginDeleteOptions) (*http.Response, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, accountName, privateEndpointConnectionName, options) if err != nil { @@ -185,7 +189,7 @@ func (client *PrivateEndpointConnectionsClient) deleteCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -193,12 +197,13 @@ func (client *PrivateEndpointConnectionsClient) deleteCreateRequest(ctx context. // Get - Gets a private endpoint connection. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// privateEndpointConnectionName - The name of the private endpoint connection. -// options - PrivateEndpointConnectionsClientGetOptions contains the optional parameters for the PrivateEndpointConnectionsClient.Get -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - privateEndpointConnectionName - The name of the private endpoint connection. +// - options - PrivateEndpointConnectionsClientGetOptions contains the optional parameters for the PrivateEndpointConnectionsClient.Get +// method. func (client *PrivateEndpointConnectionsClient) Get(ctx context.Context, resourceGroupName string, accountName string, privateEndpointConnectionName string, options *PrivateEndpointConnectionsClientGetOptions) (PrivateEndpointConnectionsClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, accountName, privateEndpointConnectionName, options) if err != nil { @@ -238,7 +243,7 @@ func (client *PrivateEndpointConnectionsClient) getCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -254,11 +259,12 @@ func (client *PrivateEndpointConnectionsClient) getHandleResponse(resp *http.Res } // NewListByDatabaseAccountPager - List all private endpoint connections on a Cosmos DB account. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// options - PrivateEndpointConnectionsClientListByDatabaseAccountOptions contains the optional parameters for the PrivateEndpointConnectionsClient.ListByDatabaseAccount -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - options - PrivateEndpointConnectionsClientListByDatabaseAccountOptions contains the optional parameters for the PrivateEndpointConnectionsClient.NewListByDatabaseAccountPager +// method. func (client *PrivateEndpointConnectionsClient) NewListByDatabaseAccountPager(resourceGroupName string, accountName string, options *PrivateEndpointConnectionsClientListByDatabaseAccountOptions) *runtime.Pager[PrivateEndpointConnectionsClientListByDatabaseAccountResponse] { return runtime.NewPager(runtime.PagingHandler[PrivateEndpointConnectionsClientListByDatabaseAccountResponse]{ More: func(page PrivateEndpointConnectionsClientListByDatabaseAccountResponse) bool { @@ -301,7 +307,7 @@ func (client *PrivateEndpointConnectionsClient) listByDatabaseAccountCreateReque return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/cosmos/armcosmos/privateendpointconnections_client_example_test.go b/sdk/resourcemanager/cosmos/armcosmos/privateendpointconnections_client_example_test.go index 2a506dcc0b5e..9bcaf02121bc 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/privateendpointconnections_client_example_test.go +++ b/sdk/resourcemanager/cosmos/armcosmos/privateendpointconnections_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armcosmos_test @@ -17,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cosmos/armcosmos/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBPrivateEndpointConnectionListGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBPrivateEndpointConnectionListGet.json func ExamplePrivateEndpointConnectionsClient_NewListByDatabaseAccountPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -30,18 +31,56 @@ func ExamplePrivateEndpointConnectionsClient_NewListByDatabaseAccountPager() { } pager := client.NewListByDatabaseAccountPager("rg1", "ddb1", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.PrivateEndpointConnectionListResult = armcosmos.PrivateEndpointConnectionListResult{ + // Value: []*armcosmos.PrivateEndpointConnection{ + // { + // Name: to.Ptr("privateEndpointConnectionName"), + // Type: to.Ptr("Microsoft.DocumentDb/databaseAccounts/privateEndpointConnections"), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDb/databaseAccounts/ddb1/privateEndpointConnections/privateEndpointConnectionName"), + // Properties: &armcosmos.PrivateEndpointConnectionProperties{ + // GroupID: to.Ptr("Sql"), + // PrivateEndpoint: &armcosmos.PrivateEndpointProperty{ + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/rg1Network/providers/Microsoft.Network/privateEndpoints/privateEndpointName"), + // }, + // PrivateLinkServiceConnectionState: &armcosmos.PrivateLinkServiceConnectionStateProperty{ + // Description: to.Ptr("Auto-approved"), + // ActionsRequired: to.Ptr("None"), + // Status: to.Ptr("Approved"), + // }, + // ProvisioningState: to.Ptr("Succeeded"), + // }, + // }, + // { + // Name: to.Ptr("privateEndpointConnectionName"), + // Type: to.Ptr("Microsoft.DocumentDb/databaseAccounts/privateEndpointConnections"), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDb/databaseAccounts/ddb1/privateEndpointConnections/privateEndpointConnectionName2"), + // Properties: &armcosmos.PrivateEndpointConnectionProperties{ + // GroupID: to.Ptr("Sql"), + // PrivateEndpoint: &armcosmos.PrivateEndpointProperty{ + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/rg1Network/providers/Microsoft.Network/privateEndpoints/privateEndpointName2"), + // }, + // PrivateLinkServiceConnectionState: &armcosmos.PrivateLinkServiceConnectionStateProperty{ + // Description: to.Ptr("Auto-approved"), + // ActionsRequired: to.Ptr("None"), + // Status: to.Ptr("Approved"), + // }, + // ProvisioningState: to.Ptr("Succeeded"), + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBPrivateEndpointConnectionGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBPrivateEndpointConnectionGet.json func ExamplePrivateEndpointConnectionsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -56,11 +95,29 @@ func ExamplePrivateEndpointConnectionsClient_Get() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.PrivateEndpointConnection = armcosmos.PrivateEndpointConnection{ + // Name: to.Ptr("privateEndpointConnectionName"), + // Type: to.Ptr("Microsoft.DocumentDb/databaseAccounts/privateEndpointConnections"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/rg1/providers/Microsoft.DocumentDb/databaseAccounts/ddb1/privateEndpointConnections/privateEndpointConnectionName"), + // Properties: &armcosmos.PrivateEndpointConnectionProperties{ + // GroupID: to.Ptr("Sql"), + // PrivateEndpoint: &armcosmos.PrivateEndpointProperty{ + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/rg1Network/providers/Microsoft.Network/privateEndpoints/privateEndpointName"), + // }, + // PrivateLinkServiceConnectionState: &armcosmos.PrivateLinkServiceConnectionStateProperty{ + // Description: to.Ptr("Auto-approved"), + // ActionsRequired: to.Ptr("None"), + // Status: to.Ptr("Approved"), + // }, + // ProvisioningState: to.Ptr("Succeeded"), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBPrivateEndpointConnectionUpdate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBPrivateEndpointConnectionUpdate.json func ExamplePrivateEndpointConnectionsClient_BeginCreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -86,11 +143,29 @@ func ExamplePrivateEndpointConnectionsClient_BeginCreateOrUpdate() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.PrivateEndpointConnection = armcosmos.PrivateEndpointConnection{ + // Name: to.Ptr("privateEndpointConnectionName"), + // Type: to.Ptr("Microsoft.DocumentDb/databaseAccounts/privateEndpointConnections"), + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/rg1/providers/Microsoft.DocumentDb/databaseAccounts/ddb1/privateEndpointConnections/privateEndpointConnectionName"), + // Properties: &armcosmos.PrivateEndpointConnectionProperties{ + // GroupID: to.Ptr("Sql"), + // PrivateEndpoint: &armcosmos.PrivateEndpointProperty{ + // ID: to.Ptr("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/rg1Network/providers/Microsoft.Network/privateEndpoints/privateEndpointName"), + // }, + // PrivateLinkServiceConnectionState: &armcosmos.PrivateLinkServiceConnectionStateProperty{ + // Description: to.Ptr("Auto-approved"), + // ActionsRequired: to.Ptr("None"), + // Status: to.Ptr("Approved"), + // }, + // ProvisioningState: to.Ptr("Succeeded"), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBPrivateEndpointConnectionDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBPrivateEndpointConnectionDelete.json func ExamplePrivateEndpointConnectionsClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/cosmos/armcosmos/privatelinkresources_client.go b/sdk/resourcemanager/cosmos/armcosmos/privatelinkresources_client.go index 51cc32b53d16..cbe771b53ac7 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/privatelinkresources_client.go +++ b/sdk/resourcemanager/cosmos/armcosmos/privatelinkresources_client.go @@ -32,9 +32,9 @@ type PrivateLinkResourcesClient struct { } // NewPrivateLinkResourcesClient creates a new instance of PrivateLinkResourcesClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewPrivateLinkResourcesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PrivateLinkResourcesClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,12 +57,13 @@ func NewPrivateLinkResourcesClient(subscriptionID string, credential azcore.Toke // Get - Gets the private link resources that need to be created for a Cosmos DB account. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// groupName - The name of the private link resource. -// options - PrivateLinkResourcesClientGetOptions contains the optional parameters for the PrivateLinkResourcesClient.Get -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - groupName - The name of the private link resource. +// - options - PrivateLinkResourcesClientGetOptions contains the optional parameters for the PrivateLinkResourcesClient.Get +// method. func (client *PrivateLinkResourcesClient) Get(ctx context.Context, resourceGroupName string, accountName string, groupName string, options *PrivateLinkResourcesClientGetOptions) (PrivateLinkResourcesClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, accountName, groupName, options) if err != nil { @@ -102,7 +103,7 @@ func (client *PrivateLinkResourcesClient) getCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -118,11 +119,12 @@ func (client *PrivateLinkResourcesClient) getHandleResponse(resp *http.Response) } // NewListByDatabaseAccountPager - Gets the private link resources that need to be created for a Cosmos DB account. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// options - PrivateLinkResourcesClientListByDatabaseAccountOptions contains the optional parameters for the PrivateLinkResourcesClient.ListByDatabaseAccount -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - options - PrivateLinkResourcesClientListByDatabaseAccountOptions contains the optional parameters for the PrivateLinkResourcesClient.NewListByDatabaseAccountPager +// method. func (client *PrivateLinkResourcesClient) NewListByDatabaseAccountPager(resourceGroupName string, accountName string, options *PrivateLinkResourcesClientListByDatabaseAccountOptions) *runtime.Pager[PrivateLinkResourcesClientListByDatabaseAccountResponse] { return runtime.NewPager(runtime.PagingHandler[PrivateLinkResourcesClientListByDatabaseAccountResponse]{ More: func(page PrivateLinkResourcesClientListByDatabaseAccountResponse) bool { @@ -165,7 +167,7 @@ func (client *PrivateLinkResourcesClient) listByDatabaseAccountCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/cosmos/armcosmos/privatelinkresources_client_example_test.go b/sdk/resourcemanager/cosmos/armcosmos/privatelinkresources_client_example_test.go index f865b4a9b437..9561fb5c4671 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/privatelinkresources_client_example_test.go +++ b/sdk/resourcemanager/cosmos/armcosmos/privatelinkresources_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armcosmos_test @@ -16,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cosmos/armcosmos/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBPrivateLinkResourceListGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBPrivateLinkResourceListGet.json func ExamplePrivateLinkResourcesClient_NewListByDatabaseAccountPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -29,18 +30,35 @@ func ExamplePrivateLinkResourcesClient_NewListByDatabaseAccountPager() { } pager := client.NewListByDatabaseAccountPager("rg1", "ddb1", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.PrivateLinkResourceListResult = armcosmos.PrivateLinkResourceListResult{ + // Value: []*armcosmos.PrivateLinkResource{ + // { + // Name: to.Ptr("sql"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/privateLinkResources"), + // ID: to.Ptr("subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.DocumentDb/databaseAccounts/ddb1/privateLinkResources/sql"), + // Properties: &armcosmos.PrivateLinkResourceProperties{ + // GroupID: to.Ptr("sql"), + // RequiredMembers: []*string{ + // to.Ptr("ddb1"), + // to.Ptr("ddb1-westus")}, + // RequiredZoneNames: []*string{ + // to.Ptr("privatelink.documents.azure.net")}, + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBPrivateLinkResourceGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBPrivateLinkResourceGet.json func ExamplePrivateLinkResourcesClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -55,6 +73,20 @@ func ExamplePrivateLinkResourcesClient_Get() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.PrivateLinkResource = armcosmos.PrivateLinkResource{ + // Name: to.Ptr("sql"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/privateLinkResources"), + // ID: to.Ptr("subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/Default/providers/Microsoft.DocumentDb/databaseAccounts/ddb1/privateLinkResources/sql"), + // Properties: &armcosmos.PrivateLinkResourceProperties{ + // GroupID: to.Ptr("sql"), + // RequiredMembers: []*string{ + // to.Ptr("ddb1"), + // to.Ptr("ddb1-westus")}, + // RequiredZoneNames: []*string{ + // to.Ptr("privatelink.documents.azure.net")}, + // }, + // } } diff --git a/sdk/resourcemanager/cosmos/armcosmos/response_types.go b/sdk/resourcemanager/cosmos/armcosmos/response_types.go index cec7b12a0548..3872bf50aff7 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/response_types.go +++ b/sdk/resourcemanager/cosmos/armcosmos/response_types.go @@ -9,52 +9,42 @@ package armcosmos -// CassandraClustersClientCreateUpdateResponse contains the response from method CassandraClustersClient.CreateUpdate. +// CassandraClustersClientCreateUpdateResponse contains the response from method CassandraClustersClient.BeginCreateUpdate. type CassandraClustersClientCreateUpdateResponse struct { ClusterResource } -// CassandraClustersClientDeallocateResponse contains the response from method CassandraClustersClient.Deallocate. +// CassandraClustersClientDeallocateResponse contains the response from method CassandraClustersClient.BeginDeallocate. type CassandraClustersClientDeallocateResponse struct { // placeholder for future response values } -// CassandraClustersClientDeleteResponse contains the response from method CassandraClustersClient.Delete. +// CassandraClustersClientDeleteResponse contains the response from method CassandraClustersClient.BeginDelete. type CassandraClustersClientDeleteResponse struct { // placeholder for future response values } -// CassandraClustersClientGetBackupResponse contains the response from method CassandraClustersClient.GetBackup. -type CassandraClustersClientGetBackupResponse struct { - BackupResource -} - // CassandraClustersClientGetResponse contains the response from method CassandraClustersClient.Get. type CassandraClustersClientGetResponse struct { ClusterResource } -// CassandraClustersClientInvokeCommandResponse contains the response from method CassandraClustersClient.InvokeCommand. +// CassandraClustersClientInvokeCommandResponse contains the response from method CassandraClustersClient.BeginInvokeCommand. type CassandraClustersClientInvokeCommandResponse struct { CommandOutput } -// CassandraClustersClientListBackupsResponse contains the response from method CassandraClustersClient.ListBackups. -type CassandraClustersClientListBackupsResponse struct { - ListBackups -} - -// CassandraClustersClientListByResourceGroupResponse contains the response from method CassandraClustersClient.ListByResourceGroup. +// CassandraClustersClientListByResourceGroupResponse contains the response from method CassandraClustersClient.NewListByResourceGroupPager. type CassandraClustersClientListByResourceGroupResponse struct { ListClusters } -// CassandraClustersClientListBySubscriptionResponse contains the response from method CassandraClustersClient.ListBySubscription. +// CassandraClustersClientListBySubscriptionResponse contains the response from method CassandraClustersClient.NewListBySubscriptionPager. type CassandraClustersClientListBySubscriptionResponse struct { ListClusters } -// CassandraClustersClientStartResponse contains the response from method CassandraClustersClient.Start. +// CassandraClustersClientStartResponse contains the response from method CassandraClustersClient.BeginStart. type CassandraClustersClientStartResponse struct { // placeholder for future response values } @@ -64,17 +54,17 @@ type CassandraClustersClientStatusResponse struct { CassandraClusterPublicStatus } -// CassandraClustersClientUpdateResponse contains the response from method CassandraClustersClient.Update. +// CassandraClustersClientUpdateResponse contains the response from method CassandraClustersClient.BeginUpdate. type CassandraClustersClientUpdateResponse struct { ClusterResource } -// CassandraDataCentersClientCreateUpdateResponse contains the response from method CassandraDataCentersClient.CreateUpdate. +// CassandraDataCentersClientCreateUpdateResponse contains the response from method CassandraDataCentersClient.BeginCreateUpdate. type CassandraDataCentersClientCreateUpdateResponse struct { DataCenterResource } -// CassandraDataCentersClientDeleteResponse contains the response from method CassandraDataCentersClient.Delete. +// CassandraDataCentersClientDeleteResponse contains the response from method CassandraDataCentersClient.BeginDelete. type CassandraDataCentersClientDeleteResponse struct { // placeholder for future response values } @@ -84,46 +74,36 @@ type CassandraDataCentersClientGetResponse struct { DataCenterResource } -// CassandraDataCentersClientListResponse contains the response from method CassandraDataCentersClient.List. +// CassandraDataCentersClientListResponse contains the response from method CassandraDataCentersClient.NewListPager. type CassandraDataCentersClientListResponse struct { ListDataCenters } -// CassandraDataCentersClientUpdateResponse contains the response from method CassandraDataCentersClient.Update. +// CassandraDataCentersClientUpdateResponse contains the response from method CassandraDataCentersClient.BeginUpdate. type CassandraDataCentersClientUpdateResponse struct { DataCenterResource } -// CassandraResourcesClientCreateUpdateCassandraKeyspaceResponse contains the response from method CassandraResourcesClient.CreateUpdateCassandraKeyspace. +// CassandraResourcesClientCreateUpdateCassandraKeyspaceResponse contains the response from method CassandraResourcesClient.BeginCreateUpdateCassandraKeyspace. type CassandraResourcesClientCreateUpdateCassandraKeyspaceResponse struct { CassandraKeyspaceGetResults } -// CassandraResourcesClientCreateUpdateCassandraTableResponse contains the response from method CassandraResourcesClient.CreateUpdateCassandraTable. +// CassandraResourcesClientCreateUpdateCassandraTableResponse contains the response from method CassandraResourcesClient.BeginCreateUpdateCassandraTable. type CassandraResourcesClientCreateUpdateCassandraTableResponse struct { CassandraTableGetResults } -// CassandraResourcesClientCreateUpdateCassandraViewResponse contains the response from method CassandraResourcesClient.CreateUpdateCassandraView. -type CassandraResourcesClientCreateUpdateCassandraViewResponse struct { - CassandraViewGetResults -} - -// CassandraResourcesClientDeleteCassandraKeyspaceResponse contains the response from method CassandraResourcesClient.DeleteCassandraKeyspace. +// CassandraResourcesClientDeleteCassandraKeyspaceResponse contains the response from method CassandraResourcesClient.BeginDeleteCassandraKeyspace. type CassandraResourcesClientDeleteCassandraKeyspaceResponse struct { // placeholder for future response values } -// CassandraResourcesClientDeleteCassandraTableResponse contains the response from method CassandraResourcesClient.DeleteCassandraTable. +// CassandraResourcesClientDeleteCassandraTableResponse contains the response from method CassandraResourcesClient.BeginDeleteCassandraTable. type CassandraResourcesClientDeleteCassandraTableResponse struct { // placeholder for future response values } -// CassandraResourcesClientDeleteCassandraViewResponse contains the response from method CassandraResourcesClient.DeleteCassandraView. -type CassandraResourcesClientDeleteCassandraViewResponse struct { - // placeholder for future response values -} - // CassandraResourcesClientGetCassandraKeyspaceResponse contains the response from method CassandraResourcesClient.GetCassandraKeyspace. type CassandraResourcesClientGetCassandraKeyspaceResponse struct { CassandraKeyspaceGetResults @@ -144,142 +124,82 @@ type CassandraResourcesClientGetCassandraTableThroughputResponse struct { ThroughputSettingsGetResults } -// CassandraResourcesClientGetCassandraViewResponse contains the response from method CassandraResourcesClient.GetCassandraView. -type CassandraResourcesClientGetCassandraViewResponse struct { - CassandraViewGetResults -} - -// CassandraResourcesClientGetCassandraViewThroughputResponse contains the response from method CassandraResourcesClient.GetCassandraViewThroughput. -type CassandraResourcesClientGetCassandraViewThroughputResponse struct { - ThroughputSettingsGetResults -} - -// CassandraResourcesClientListCassandraKeyspacesResponse contains the response from method CassandraResourcesClient.ListCassandraKeyspaces. +// CassandraResourcesClientListCassandraKeyspacesResponse contains the response from method CassandraResourcesClient.NewListCassandraKeyspacesPager. type CassandraResourcesClientListCassandraKeyspacesResponse struct { CassandraKeyspaceListResult } -// CassandraResourcesClientListCassandraTablesResponse contains the response from method CassandraResourcesClient.ListCassandraTables. +// CassandraResourcesClientListCassandraTablesResponse contains the response from method CassandraResourcesClient.NewListCassandraTablesPager. type CassandraResourcesClientListCassandraTablesResponse struct { CassandraTableListResult } -// CassandraResourcesClientListCassandraViewsResponse contains the response from method CassandraResourcesClient.ListCassandraViews. -type CassandraResourcesClientListCassandraViewsResponse struct { - CassandraViewListResult -} - -// CassandraResourcesClientMigrateCassandraKeyspaceToAutoscaleResponse contains the response from method CassandraResourcesClient.MigrateCassandraKeyspaceToAutoscale. +// CassandraResourcesClientMigrateCassandraKeyspaceToAutoscaleResponse contains the response from method CassandraResourcesClient.BeginMigrateCassandraKeyspaceToAutoscale. type CassandraResourcesClientMigrateCassandraKeyspaceToAutoscaleResponse struct { ThroughputSettingsGetResults } -// CassandraResourcesClientMigrateCassandraKeyspaceToManualThroughputResponse contains the response from method CassandraResourcesClient.MigrateCassandraKeyspaceToManualThroughput. +// CassandraResourcesClientMigrateCassandraKeyspaceToManualThroughputResponse contains the response from method CassandraResourcesClient.BeginMigrateCassandraKeyspaceToManualThroughput. type CassandraResourcesClientMigrateCassandraKeyspaceToManualThroughputResponse struct { ThroughputSettingsGetResults } -// CassandraResourcesClientMigrateCassandraTableToAutoscaleResponse contains the response from method CassandraResourcesClient.MigrateCassandraTableToAutoscale. +// CassandraResourcesClientMigrateCassandraTableToAutoscaleResponse contains the response from method CassandraResourcesClient.BeginMigrateCassandraTableToAutoscale. type CassandraResourcesClientMigrateCassandraTableToAutoscaleResponse struct { ThroughputSettingsGetResults } -// CassandraResourcesClientMigrateCassandraTableToManualThroughputResponse contains the response from method CassandraResourcesClient.MigrateCassandraTableToManualThroughput. +// CassandraResourcesClientMigrateCassandraTableToManualThroughputResponse contains the response from method CassandraResourcesClient.BeginMigrateCassandraTableToManualThroughput. type CassandraResourcesClientMigrateCassandraTableToManualThroughputResponse struct { ThroughputSettingsGetResults } -// CassandraResourcesClientMigrateCassandraViewToAutoscaleResponse contains the response from method CassandraResourcesClient.MigrateCassandraViewToAutoscale. -type CassandraResourcesClientMigrateCassandraViewToAutoscaleResponse struct { - ThroughputSettingsGetResults -} - -// CassandraResourcesClientMigrateCassandraViewToManualThroughputResponse contains the response from method CassandraResourcesClient.MigrateCassandraViewToManualThroughput. -type CassandraResourcesClientMigrateCassandraViewToManualThroughputResponse struct { - ThroughputSettingsGetResults -} - -// CassandraResourcesClientUpdateCassandraKeyspaceThroughputResponse contains the response from method CassandraResourcesClient.UpdateCassandraKeyspaceThroughput. +// CassandraResourcesClientUpdateCassandraKeyspaceThroughputResponse contains the response from method CassandraResourcesClient.BeginUpdateCassandraKeyspaceThroughput. type CassandraResourcesClientUpdateCassandraKeyspaceThroughputResponse struct { ThroughputSettingsGetResults } -// CassandraResourcesClientUpdateCassandraTableThroughputResponse contains the response from method CassandraResourcesClient.UpdateCassandraTableThroughput. +// CassandraResourcesClientUpdateCassandraTableThroughputResponse contains the response from method CassandraResourcesClient.BeginUpdateCassandraTableThroughput. type CassandraResourcesClientUpdateCassandraTableThroughputResponse struct { ThroughputSettingsGetResults } -// CassandraResourcesClientUpdateCassandraViewThroughputResponse contains the response from method CassandraResourcesClient.UpdateCassandraViewThroughput. -type CassandraResourcesClientUpdateCassandraViewThroughputResponse struct { - ThroughputSettingsGetResults -} - -// CollectionClientListMetricDefinitionsResponse contains the response from method CollectionClient.ListMetricDefinitions. +// CollectionClientListMetricDefinitionsResponse contains the response from method CollectionClient.NewListMetricDefinitionsPager. type CollectionClientListMetricDefinitionsResponse struct { MetricDefinitionsListResult } -// CollectionClientListMetricsResponse contains the response from method CollectionClient.ListMetrics. +// CollectionClientListMetricsResponse contains the response from method CollectionClient.NewListMetricsPager. type CollectionClientListMetricsResponse struct { MetricListResult } -// CollectionClientListUsagesResponse contains the response from method CollectionClient.ListUsages. +// CollectionClientListUsagesResponse contains the response from method CollectionClient.NewListUsagesPager. type CollectionClientListUsagesResponse struct { UsagesResult } -// CollectionPartitionClientListMetricsResponse contains the response from method CollectionPartitionClient.ListMetrics. +// CollectionPartitionClientListMetricsResponse contains the response from method CollectionPartitionClient.NewListMetricsPager. type CollectionPartitionClientListMetricsResponse struct { PartitionMetricListResult } -// CollectionPartitionClientListUsagesResponse contains the response from method CollectionPartitionClient.ListUsages. +// CollectionPartitionClientListUsagesResponse contains the response from method CollectionPartitionClient.NewListUsagesPager. type CollectionPartitionClientListUsagesResponse struct { PartitionUsagesResult } -// CollectionPartitionRegionClientListMetricsResponse contains the response from method CollectionPartitionRegionClient.ListMetrics. +// CollectionPartitionRegionClientListMetricsResponse contains the response from method CollectionPartitionRegionClient.NewListMetricsPager. type CollectionPartitionRegionClientListMetricsResponse struct { PartitionMetricListResult } -// CollectionRegionClientListMetricsResponse contains the response from method CollectionRegionClient.ListMetrics. +// CollectionRegionClientListMetricsResponse contains the response from method CollectionRegionClient.NewListMetricsPager. type CollectionRegionClientListMetricsResponse struct { MetricListResult } -// DataTransferJobsClientCancelResponse contains the response from method DataTransferJobsClient.Cancel. -type DataTransferJobsClientCancelResponse struct { - DataTransferJobGetResults -} - -// DataTransferJobsClientCreateResponse contains the response from method DataTransferJobsClient.Create. -type DataTransferJobsClientCreateResponse struct { - DataTransferJobGetResults -} - -// DataTransferJobsClientGetResponse contains the response from method DataTransferJobsClient.Get. -type DataTransferJobsClientGetResponse struct { - DataTransferJobGetResults -} - -// DataTransferJobsClientListByDatabaseAccountResponse contains the response from method DataTransferJobsClient.ListByDatabaseAccount. -type DataTransferJobsClientListByDatabaseAccountResponse struct { - DataTransferJobFeedResults -} - -// DataTransferJobsClientPauseResponse contains the response from method DataTransferJobsClient.Pause. -type DataTransferJobsClientPauseResponse struct { - DataTransferJobGetResults -} - -// DataTransferJobsClientResumeResponse contains the response from method DataTransferJobsClient.Resume. -type DataTransferJobsClientResumeResponse struct { - DataTransferJobGetResults -} - -// DatabaseAccountRegionClientListMetricsResponse contains the response from method DatabaseAccountRegionClient.ListMetrics. +// DatabaseAccountRegionClientListMetricsResponse contains the response from method DatabaseAccountRegionClient.NewListMetricsPager. type DatabaseAccountRegionClientListMetricsResponse struct { MetricListResult } @@ -290,17 +210,17 @@ type DatabaseAccountsClientCheckNameExistsResponse struct { Success bool } -// DatabaseAccountsClientCreateOrUpdateResponse contains the response from method DatabaseAccountsClient.CreateOrUpdate. +// DatabaseAccountsClientCreateOrUpdateResponse contains the response from method DatabaseAccountsClient.BeginCreateOrUpdate. type DatabaseAccountsClientCreateOrUpdateResponse struct { DatabaseAccountGetResults } -// DatabaseAccountsClientDeleteResponse contains the response from method DatabaseAccountsClient.Delete. +// DatabaseAccountsClientDeleteResponse contains the response from method DatabaseAccountsClient.BeginDelete. type DatabaseAccountsClientDeleteResponse struct { // placeholder for future response values } -// DatabaseAccountsClientFailoverPriorityChangeResponse contains the response from method DatabaseAccountsClient.FailoverPriorityChange. +// DatabaseAccountsClientFailoverPriorityChangeResponse contains the response from method DatabaseAccountsClient.BeginFailoverPriorityChange. type DatabaseAccountsClientFailoverPriorityChangeResponse struct { // placeholder for future response values } @@ -315,7 +235,7 @@ type DatabaseAccountsClientGetResponse struct { DatabaseAccountGetResults } -// DatabaseAccountsClientListByResourceGroupResponse contains the response from method DatabaseAccountsClient.ListByResourceGroup. +// DatabaseAccountsClientListByResourceGroupResponse contains the response from method DatabaseAccountsClient.NewListByResourceGroupPager. type DatabaseAccountsClientListByResourceGroupResponse struct { DatabaseAccountsListResult } @@ -330,12 +250,12 @@ type DatabaseAccountsClientListKeysResponse struct { DatabaseAccountListKeysResult } -// DatabaseAccountsClientListMetricDefinitionsResponse contains the response from method DatabaseAccountsClient.ListMetricDefinitions. +// DatabaseAccountsClientListMetricDefinitionsResponse contains the response from method DatabaseAccountsClient.NewListMetricDefinitionsPager. type DatabaseAccountsClientListMetricDefinitionsResponse struct { MetricDefinitionsListResult } -// DatabaseAccountsClientListMetricsResponse contains the response from method DatabaseAccountsClient.ListMetrics. +// DatabaseAccountsClientListMetricsResponse contains the response from method DatabaseAccountsClient.NewListMetricsPager. type DatabaseAccountsClientListMetricsResponse struct { MetricListResult } @@ -345,87 +265,67 @@ type DatabaseAccountsClientListReadOnlyKeysResponse struct { DatabaseAccountListReadOnlyKeysResult } -// DatabaseAccountsClientListResponse contains the response from method DatabaseAccountsClient.List. +// DatabaseAccountsClientListResponse contains the response from method DatabaseAccountsClient.NewListPager. type DatabaseAccountsClientListResponse struct { DatabaseAccountsListResult } -// DatabaseAccountsClientListUsagesResponse contains the response from method DatabaseAccountsClient.ListUsages. +// DatabaseAccountsClientListUsagesResponse contains the response from method DatabaseAccountsClient.NewListUsagesPager. type DatabaseAccountsClientListUsagesResponse struct { UsagesResult } -// DatabaseAccountsClientOfflineRegionResponse contains the response from method DatabaseAccountsClient.OfflineRegion. +// DatabaseAccountsClientOfflineRegionResponse contains the response from method DatabaseAccountsClient.BeginOfflineRegion. type DatabaseAccountsClientOfflineRegionResponse struct { // placeholder for future response values } -// DatabaseAccountsClientOnlineRegionResponse contains the response from method DatabaseAccountsClient.OnlineRegion. +// DatabaseAccountsClientOnlineRegionResponse contains the response from method DatabaseAccountsClient.BeginOnlineRegion. type DatabaseAccountsClientOnlineRegionResponse struct { // placeholder for future response values } -// DatabaseAccountsClientRegenerateKeyResponse contains the response from method DatabaseAccountsClient.RegenerateKey. +// DatabaseAccountsClientRegenerateKeyResponse contains the response from method DatabaseAccountsClient.BeginRegenerateKey. type DatabaseAccountsClientRegenerateKeyResponse struct { // placeholder for future response values } -// DatabaseAccountsClientUpdateResponse contains the response from method DatabaseAccountsClient.Update. +// DatabaseAccountsClientUpdateResponse contains the response from method DatabaseAccountsClient.BeginUpdate. type DatabaseAccountsClientUpdateResponse struct { DatabaseAccountGetResults } -// DatabaseClientListMetricDefinitionsResponse contains the response from method DatabaseClient.ListMetricDefinitions. +// DatabaseClientListMetricDefinitionsResponse contains the response from method DatabaseClient.NewListMetricDefinitionsPager. type DatabaseClientListMetricDefinitionsResponse struct { MetricDefinitionsListResult } -// DatabaseClientListMetricsResponse contains the response from method DatabaseClient.ListMetrics. +// DatabaseClientListMetricsResponse contains the response from method DatabaseClient.NewListMetricsPager. type DatabaseClientListMetricsResponse struct { MetricListResult } -// DatabaseClientListUsagesResponse contains the response from method DatabaseClient.ListUsages. +// DatabaseClientListUsagesResponse contains the response from method DatabaseClient.NewListUsagesPager. type DatabaseClientListUsagesResponse struct { UsagesResult } -// GraphResourcesClientCreateUpdateGraphResponse contains the response from method GraphResourcesClient.CreateUpdateGraph. -type GraphResourcesClientCreateUpdateGraphResponse struct { - GraphResourceGetResults -} - -// GraphResourcesClientDeleteGraphResourceResponse contains the response from method GraphResourcesClient.DeleteGraphResource. -type GraphResourcesClientDeleteGraphResourceResponse struct { - // placeholder for future response values -} - -// GraphResourcesClientGetGraphResponse contains the response from method GraphResourcesClient.GetGraph. -type GraphResourcesClientGetGraphResponse struct { - GraphResourceGetResults -} - -// GraphResourcesClientListGraphsResponse contains the response from method GraphResourcesClient.ListGraphs. -type GraphResourcesClientListGraphsResponse struct { - GraphResourcesListResult -} - -// GremlinResourcesClientCreateUpdateGremlinDatabaseResponse contains the response from method GremlinResourcesClient.CreateUpdateGremlinDatabase. +// GremlinResourcesClientCreateUpdateGremlinDatabaseResponse contains the response from method GremlinResourcesClient.BeginCreateUpdateGremlinDatabase. type GremlinResourcesClientCreateUpdateGremlinDatabaseResponse struct { GremlinDatabaseGetResults } -// GremlinResourcesClientCreateUpdateGremlinGraphResponse contains the response from method GremlinResourcesClient.CreateUpdateGremlinGraph. +// GremlinResourcesClientCreateUpdateGremlinGraphResponse contains the response from method GremlinResourcesClient.BeginCreateUpdateGremlinGraph. type GremlinResourcesClientCreateUpdateGremlinGraphResponse struct { GremlinGraphGetResults } -// GremlinResourcesClientDeleteGremlinDatabaseResponse contains the response from method GremlinResourcesClient.DeleteGremlinDatabase. +// GremlinResourcesClientDeleteGremlinDatabaseResponse contains the response from method GremlinResourcesClient.BeginDeleteGremlinDatabase. type GremlinResourcesClientDeleteGremlinDatabaseResponse struct { // placeholder for future response values } -// GremlinResourcesClientDeleteGremlinGraphResponse contains the response from method GremlinResourcesClient.DeleteGremlinGraph. +// GremlinResourcesClientDeleteGremlinGraphResponse contains the response from method GremlinResourcesClient.BeginDeleteGremlinGraph. type GremlinResourcesClientDeleteGremlinGraphResponse struct { // placeholder for future response values } @@ -450,47 +350,47 @@ type GremlinResourcesClientGetGremlinGraphThroughputResponse struct { ThroughputSettingsGetResults } -// GremlinResourcesClientListGremlinDatabasesResponse contains the response from method GremlinResourcesClient.ListGremlinDatabases. +// GremlinResourcesClientListGremlinDatabasesResponse contains the response from method GremlinResourcesClient.NewListGremlinDatabasesPager. type GremlinResourcesClientListGremlinDatabasesResponse struct { GremlinDatabaseListResult } -// GremlinResourcesClientListGremlinGraphsResponse contains the response from method GremlinResourcesClient.ListGremlinGraphs. +// GremlinResourcesClientListGremlinGraphsResponse contains the response from method GremlinResourcesClient.NewListGremlinGraphsPager. type GremlinResourcesClientListGremlinGraphsResponse struct { GremlinGraphListResult } -// GremlinResourcesClientMigrateGremlinDatabaseToAutoscaleResponse contains the response from method GremlinResourcesClient.MigrateGremlinDatabaseToAutoscale. +// GremlinResourcesClientMigrateGremlinDatabaseToAutoscaleResponse contains the response from method GremlinResourcesClient.BeginMigrateGremlinDatabaseToAutoscale. type GremlinResourcesClientMigrateGremlinDatabaseToAutoscaleResponse struct { ThroughputSettingsGetResults } -// GremlinResourcesClientMigrateGremlinDatabaseToManualThroughputResponse contains the response from method GremlinResourcesClient.MigrateGremlinDatabaseToManualThroughput. +// GremlinResourcesClientMigrateGremlinDatabaseToManualThroughputResponse contains the response from method GremlinResourcesClient.BeginMigrateGremlinDatabaseToManualThroughput. type GremlinResourcesClientMigrateGremlinDatabaseToManualThroughputResponse struct { ThroughputSettingsGetResults } -// GremlinResourcesClientMigrateGremlinGraphToAutoscaleResponse contains the response from method GremlinResourcesClient.MigrateGremlinGraphToAutoscale. +// GremlinResourcesClientMigrateGremlinGraphToAutoscaleResponse contains the response from method GremlinResourcesClient.BeginMigrateGremlinGraphToAutoscale. type GremlinResourcesClientMigrateGremlinGraphToAutoscaleResponse struct { ThroughputSettingsGetResults } -// GremlinResourcesClientMigrateGremlinGraphToManualThroughputResponse contains the response from method GremlinResourcesClient.MigrateGremlinGraphToManualThroughput. +// GremlinResourcesClientMigrateGremlinGraphToManualThroughputResponse contains the response from method GremlinResourcesClient.BeginMigrateGremlinGraphToManualThroughput. type GremlinResourcesClientMigrateGremlinGraphToManualThroughputResponse struct { ThroughputSettingsGetResults } -// GremlinResourcesClientRetrieveContinuousBackupInformationResponse contains the response from method GremlinResourcesClient.RetrieveContinuousBackupInformation. +// GremlinResourcesClientRetrieveContinuousBackupInformationResponse contains the response from method GremlinResourcesClient.BeginRetrieveContinuousBackupInformation. type GremlinResourcesClientRetrieveContinuousBackupInformationResponse struct { BackupInformation } -// GremlinResourcesClientUpdateGremlinDatabaseThroughputResponse contains the response from method GremlinResourcesClient.UpdateGremlinDatabaseThroughput. +// GremlinResourcesClientUpdateGremlinDatabaseThroughputResponse contains the response from method GremlinResourcesClient.BeginUpdateGremlinDatabaseThroughput. type GremlinResourcesClientUpdateGremlinDatabaseThroughputResponse struct { ThroughputSettingsGetResults } -// GremlinResourcesClientUpdateGremlinGraphThroughputResponse contains the response from method GremlinResourcesClient.UpdateGremlinGraphThroughput. +// GremlinResourcesClientUpdateGremlinGraphThroughputResponse contains the response from method GremlinResourcesClient.BeginUpdateGremlinGraphThroughput. type GremlinResourcesClientUpdateGremlinGraphThroughputResponse struct { ThroughputSettingsGetResults } @@ -500,47 +400,47 @@ type LocationsClientGetResponse struct { LocationGetResult } -// LocationsClientListResponse contains the response from method LocationsClient.List. +// LocationsClientListResponse contains the response from method LocationsClient.NewListPager. type LocationsClientListResponse struct { LocationListResult } -// MongoDBResourcesClientCreateUpdateMongoDBCollectionResponse contains the response from method MongoDBResourcesClient.CreateUpdateMongoDBCollection. +// MongoDBResourcesClientCreateUpdateMongoDBCollectionResponse contains the response from method MongoDBResourcesClient.BeginCreateUpdateMongoDBCollection. type MongoDBResourcesClientCreateUpdateMongoDBCollectionResponse struct { MongoDBCollectionGetResults } -// MongoDBResourcesClientCreateUpdateMongoDBDatabaseResponse contains the response from method MongoDBResourcesClient.CreateUpdateMongoDBDatabase. +// MongoDBResourcesClientCreateUpdateMongoDBDatabaseResponse contains the response from method MongoDBResourcesClient.BeginCreateUpdateMongoDBDatabase. type MongoDBResourcesClientCreateUpdateMongoDBDatabaseResponse struct { MongoDBDatabaseGetResults } -// MongoDBResourcesClientCreateUpdateMongoRoleDefinitionResponse contains the response from method MongoDBResourcesClient.CreateUpdateMongoRoleDefinition. +// MongoDBResourcesClientCreateUpdateMongoRoleDefinitionResponse contains the response from method MongoDBResourcesClient.BeginCreateUpdateMongoRoleDefinition. type MongoDBResourcesClientCreateUpdateMongoRoleDefinitionResponse struct { MongoRoleDefinitionGetResults } -// MongoDBResourcesClientCreateUpdateMongoUserDefinitionResponse contains the response from method MongoDBResourcesClient.CreateUpdateMongoUserDefinition. +// MongoDBResourcesClientCreateUpdateMongoUserDefinitionResponse contains the response from method MongoDBResourcesClient.BeginCreateUpdateMongoUserDefinition. type MongoDBResourcesClientCreateUpdateMongoUserDefinitionResponse struct { MongoUserDefinitionGetResults } -// MongoDBResourcesClientDeleteMongoDBCollectionResponse contains the response from method MongoDBResourcesClient.DeleteMongoDBCollection. +// MongoDBResourcesClientDeleteMongoDBCollectionResponse contains the response from method MongoDBResourcesClient.BeginDeleteMongoDBCollection. type MongoDBResourcesClientDeleteMongoDBCollectionResponse struct { // placeholder for future response values } -// MongoDBResourcesClientDeleteMongoDBDatabaseResponse contains the response from method MongoDBResourcesClient.DeleteMongoDBDatabase. +// MongoDBResourcesClientDeleteMongoDBDatabaseResponse contains the response from method MongoDBResourcesClient.BeginDeleteMongoDBDatabase. type MongoDBResourcesClientDeleteMongoDBDatabaseResponse struct { // placeholder for future response values } -// MongoDBResourcesClientDeleteMongoRoleDefinitionResponse contains the response from method MongoDBResourcesClient.DeleteMongoRoleDefinition. +// MongoDBResourcesClientDeleteMongoRoleDefinitionResponse contains the response from method MongoDBResourcesClient.BeginDeleteMongoRoleDefinition. type MongoDBResourcesClientDeleteMongoRoleDefinitionResponse struct { // placeholder for future response values } -// MongoDBResourcesClientDeleteMongoUserDefinitionResponse contains the response from method MongoDBResourcesClient.DeleteMongoUserDefinition. +// MongoDBResourcesClientDeleteMongoUserDefinitionResponse contains the response from method MongoDBResourcesClient.BeginDeleteMongoUserDefinition. type MongoDBResourcesClientDeleteMongoUserDefinitionResponse struct { // placeholder for future response values } @@ -575,92 +475,67 @@ type MongoDBResourcesClientGetMongoUserDefinitionResponse struct { MongoUserDefinitionGetResults } -// MongoDBResourcesClientListMongoDBCollectionPartitionMergeResponse contains the response from method MongoDBResourcesClient.ListMongoDBCollectionPartitionMerge. -type MongoDBResourcesClientListMongoDBCollectionPartitionMergeResponse struct { - PhysicalPartitionStorageInfoCollection -} - -// MongoDBResourcesClientListMongoDBCollectionsResponse contains the response from method MongoDBResourcesClient.ListMongoDBCollections. +// MongoDBResourcesClientListMongoDBCollectionsResponse contains the response from method MongoDBResourcesClient.NewListMongoDBCollectionsPager. type MongoDBResourcesClientListMongoDBCollectionsResponse struct { MongoDBCollectionListResult } -// MongoDBResourcesClientListMongoDBDatabasesResponse contains the response from method MongoDBResourcesClient.ListMongoDBDatabases. +// MongoDBResourcesClientListMongoDBDatabasesResponse contains the response from method MongoDBResourcesClient.NewListMongoDBDatabasesPager. type MongoDBResourcesClientListMongoDBDatabasesResponse struct { MongoDBDatabaseListResult } -// MongoDBResourcesClientListMongoRoleDefinitionsResponse contains the response from method MongoDBResourcesClient.ListMongoRoleDefinitions. +// MongoDBResourcesClientListMongoRoleDefinitionsResponse contains the response from method MongoDBResourcesClient.NewListMongoRoleDefinitionsPager. type MongoDBResourcesClientListMongoRoleDefinitionsResponse struct { MongoRoleDefinitionListResult } -// MongoDBResourcesClientListMongoUserDefinitionsResponse contains the response from method MongoDBResourcesClient.ListMongoUserDefinitions. +// MongoDBResourcesClientListMongoUserDefinitionsResponse contains the response from method MongoDBResourcesClient.NewListMongoUserDefinitionsPager. type MongoDBResourcesClientListMongoUserDefinitionsResponse struct { MongoUserDefinitionListResult } -// MongoDBResourcesClientMigrateMongoDBCollectionToAutoscaleResponse contains the response from method MongoDBResourcesClient.MigrateMongoDBCollectionToAutoscale. +// MongoDBResourcesClientMigrateMongoDBCollectionToAutoscaleResponse contains the response from method MongoDBResourcesClient.BeginMigrateMongoDBCollectionToAutoscale. type MongoDBResourcesClientMigrateMongoDBCollectionToAutoscaleResponse struct { ThroughputSettingsGetResults } -// MongoDBResourcesClientMigrateMongoDBCollectionToManualThroughputResponse contains the response from method MongoDBResourcesClient.MigrateMongoDBCollectionToManualThroughput. +// MongoDBResourcesClientMigrateMongoDBCollectionToManualThroughputResponse contains the response from method MongoDBResourcesClient.BeginMigrateMongoDBCollectionToManualThroughput. type MongoDBResourcesClientMigrateMongoDBCollectionToManualThroughputResponse struct { ThroughputSettingsGetResults } -// MongoDBResourcesClientMigrateMongoDBDatabaseToAutoscaleResponse contains the response from method MongoDBResourcesClient.MigrateMongoDBDatabaseToAutoscale. +// MongoDBResourcesClientMigrateMongoDBDatabaseToAutoscaleResponse contains the response from method MongoDBResourcesClient.BeginMigrateMongoDBDatabaseToAutoscale. type MongoDBResourcesClientMigrateMongoDBDatabaseToAutoscaleResponse struct { ThroughputSettingsGetResults } -// MongoDBResourcesClientMigrateMongoDBDatabaseToManualThroughputResponse contains the response from method MongoDBResourcesClient.MigrateMongoDBDatabaseToManualThroughput. +// MongoDBResourcesClientMigrateMongoDBDatabaseToManualThroughputResponse contains the response from method MongoDBResourcesClient.BeginMigrateMongoDBDatabaseToManualThroughput. type MongoDBResourcesClientMigrateMongoDBDatabaseToManualThroughputResponse struct { ThroughputSettingsGetResults } -// MongoDBResourcesClientMongoDBContainerRedistributeThroughputResponse contains the response from method MongoDBResourcesClient.MongoDBContainerRedistributeThroughput. -type MongoDBResourcesClientMongoDBContainerRedistributeThroughputResponse struct { - PhysicalPartitionThroughputInfoResult -} - -// MongoDBResourcesClientMongoDBContainerRetrieveThroughputDistributionResponse contains the response from method MongoDBResourcesClient.MongoDBContainerRetrieveThroughputDistribution. -type MongoDBResourcesClientMongoDBContainerRetrieveThroughputDistributionResponse struct { - PhysicalPartitionThroughputInfoResult -} - -// MongoDBResourcesClientMongoDBDatabaseRedistributeThroughputResponse contains the response from method MongoDBResourcesClient.MongoDBDatabaseRedistributeThroughput. -type MongoDBResourcesClientMongoDBDatabaseRedistributeThroughputResponse struct { - PhysicalPartitionThroughputInfoResult -} - -// MongoDBResourcesClientMongoDBDatabaseRetrieveThroughputDistributionResponse contains the response from method MongoDBResourcesClient.MongoDBDatabaseRetrieveThroughputDistribution. -type MongoDBResourcesClientMongoDBDatabaseRetrieveThroughputDistributionResponse struct { - PhysicalPartitionThroughputInfoResult -} - -// MongoDBResourcesClientRetrieveContinuousBackupInformationResponse contains the response from method MongoDBResourcesClient.RetrieveContinuousBackupInformation. +// MongoDBResourcesClientRetrieveContinuousBackupInformationResponse contains the response from method MongoDBResourcesClient.BeginRetrieveContinuousBackupInformation. type MongoDBResourcesClientRetrieveContinuousBackupInformationResponse struct { BackupInformation } -// MongoDBResourcesClientUpdateMongoDBCollectionThroughputResponse contains the response from method MongoDBResourcesClient.UpdateMongoDBCollectionThroughput. +// MongoDBResourcesClientUpdateMongoDBCollectionThroughputResponse contains the response from method MongoDBResourcesClient.BeginUpdateMongoDBCollectionThroughput. type MongoDBResourcesClientUpdateMongoDBCollectionThroughputResponse struct { ThroughputSettingsGetResults } -// MongoDBResourcesClientUpdateMongoDBDatabaseThroughputResponse contains the response from method MongoDBResourcesClient.UpdateMongoDBDatabaseThroughput. +// MongoDBResourcesClientUpdateMongoDBDatabaseThroughputResponse contains the response from method MongoDBResourcesClient.BeginUpdateMongoDBDatabaseThroughput. type MongoDBResourcesClientUpdateMongoDBDatabaseThroughputResponse struct { ThroughputSettingsGetResults } -// NotebookWorkspacesClientCreateOrUpdateResponse contains the response from method NotebookWorkspacesClient.CreateOrUpdate. +// NotebookWorkspacesClientCreateOrUpdateResponse contains the response from method NotebookWorkspacesClient.BeginCreateOrUpdate. type NotebookWorkspacesClientCreateOrUpdateResponse struct { NotebookWorkspace } -// NotebookWorkspacesClientDeleteResponse contains the response from method NotebookWorkspacesClient.Delete. +// NotebookWorkspacesClientDeleteResponse contains the response from method NotebookWorkspacesClient.BeginDelete. type NotebookWorkspacesClientDeleteResponse struct { // placeholder for future response values } @@ -670,7 +545,7 @@ type NotebookWorkspacesClientGetResponse struct { NotebookWorkspace } -// NotebookWorkspacesClientListByDatabaseAccountResponse contains the response from method NotebookWorkspacesClient.ListByDatabaseAccount. +// NotebookWorkspacesClientListByDatabaseAccountResponse contains the response from method NotebookWorkspacesClient.NewListByDatabaseAccountPager. type NotebookWorkspacesClientListByDatabaseAccountResponse struct { NotebookWorkspaceListResult } @@ -680,52 +555,52 @@ type NotebookWorkspacesClientListConnectionInfoResponse struct { NotebookWorkspaceConnectionInfoResult } -// NotebookWorkspacesClientRegenerateAuthTokenResponse contains the response from method NotebookWorkspacesClient.RegenerateAuthToken. +// NotebookWorkspacesClientRegenerateAuthTokenResponse contains the response from method NotebookWorkspacesClient.BeginRegenerateAuthToken. type NotebookWorkspacesClientRegenerateAuthTokenResponse struct { // placeholder for future response values } -// NotebookWorkspacesClientStartResponse contains the response from method NotebookWorkspacesClient.Start. +// NotebookWorkspacesClientStartResponse contains the response from method NotebookWorkspacesClient.BeginStart. type NotebookWorkspacesClientStartResponse struct { // placeholder for future response values } -// OperationsClientListResponse contains the response from method OperationsClient.List. +// OperationsClientListResponse contains the response from method OperationsClient.NewListPager. type OperationsClientListResponse struct { OperationListResult } -// PartitionKeyRangeIDClientListMetricsResponse contains the response from method PartitionKeyRangeIDClient.ListMetrics. +// PartitionKeyRangeIDClientListMetricsResponse contains the response from method PartitionKeyRangeIDClient.NewListMetricsPager. type PartitionKeyRangeIDClientListMetricsResponse struct { PartitionMetricListResult } -// PartitionKeyRangeIDRegionClientListMetricsResponse contains the response from method PartitionKeyRangeIDRegionClient.ListMetrics. +// PartitionKeyRangeIDRegionClientListMetricsResponse contains the response from method PartitionKeyRangeIDRegionClient.NewListMetricsPager. type PartitionKeyRangeIDRegionClientListMetricsResponse struct { PartitionMetricListResult } -// PercentileClientListMetricsResponse contains the response from method PercentileClient.ListMetrics. +// PercentileClientListMetricsResponse contains the response from method PercentileClient.NewListMetricsPager. type PercentileClientListMetricsResponse struct { PercentileMetricListResult } -// PercentileSourceTargetClientListMetricsResponse contains the response from method PercentileSourceTargetClient.ListMetrics. +// PercentileSourceTargetClientListMetricsResponse contains the response from method PercentileSourceTargetClient.NewListMetricsPager. type PercentileSourceTargetClientListMetricsResponse struct { PercentileMetricListResult } -// PercentileTargetClientListMetricsResponse contains the response from method PercentileTargetClient.ListMetrics. +// PercentileTargetClientListMetricsResponse contains the response from method PercentileTargetClient.NewListMetricsPager. type PercentileTargetClientListMetricsResponse struct { PercentileMetricListResult } -// PrivateEndpointConnectionsClientCreateOrUpdateResponse contains the response from method PrivateEndpointConnectionsClient.CreateOrUpdate. +// PrivateEndpointConnectionsClientCreateOrUpdateResponse contains the response from method PrivateEndpointConnectionsClient.BeginCreateOrUpdate. type PrivateEndpointConnectionsClientCreateOrUpdateResponse struct { PrivateEndpointConnection } -// PrivateEndpointConnectionsClientDeleteResponse contains the response from method PrivateEndpointConnectionsClient.Delete. +// PrivateEndpointConnectionsClientDeleteResponse contains the response from method PrivateEndpointConnectionsClient.BeginDelete. type PrivateEndpointConnectionsClientDeleteResponse struct { // placeholder for future response values } @@ -735,7 +610,7 @@ type PrivateEndpointConnectionsClientGetResponse struct { PrivateEndpointConnection } -// PrivateEndpointConnectionsClientListByDatabaseAccountResponse contains the response from method PrivateEndpointConnectionsClient.ListByDatabaseAccount. +// PrivateEndpointConnectionsClientListByDatabaseAccountResponse contains the response from method PrivateEndpointConnectionsClient.NewListByDatabaseAccountPager. type PrivateEndpointConnectionsClientListByDatabaseAccountResponse struct { PrivateEndpointConnectionListResult } @@ -745,7 +620,7 @@ type PrivateLinkResourcesClientGetResponse struct { PrivateLinkResource } -// PrivateLinkResourcesClientListByDatabaseAccountResponse contains the response from method PrivateLinkResourcesClient.ListByDatabaseAccount. +// PrivateLinkResourcesClientListByDatabaseAccountResponse contains the response from method PrivateLinkResourcesClient.NewListByDatabaseAccountPager. type PrivateLinkResourcesClientListByDatabaseAccountResponse struct { PrivateLinkResourceListResult } @@ -755,142 +630,142 @@ type RestorableDatabaseAccountsClientGetByLocationResponse struct { RestorableDatabaseAccountGetResult } -// RestorableDatabaseAccountsClientListByLocationResponse contains the response from method RestorableDatabaseAccountsClient.ListByLocation. +// RestorableDatabaseAccountsClientListByLocationResponse contains the response from method RestorableDatabaseAccountsClient.NewListByLocationPager. type RestorableDatabaseAccountsClientListByLocationResponse struct { RestorableDatabaseAccountsListResult } -// RestorableDatabaseAccountsClientListResponse contains the response from method RestorableDatabaseAccountsClient.List. +// RestorableDatabaseAccountsClientListResponse contains the response from method RestorableDatabaseAccountsClient.NewListPager. type RestorableDatabaseAccountsClientListResponse struct { RestorableDatabaseAccountsListResult } -// RestorableGremlinDatabasesClientListResponse contains the response from method RestorableGremlinDatabasesClient.List. +// RestorableGremlinDatabasesClientListResponse contains the response from method RestorableGremlinDatabasesClient.NewListPager. type RestorableGremlinDatabasesClientListResponse struct { RestorableGremlinDatabasesListResult } -// RestorableGremlinGraphsClientListResponse contains the response from method RestorableGremlinGraphsClient.List. +// RestorableGremlinGraphsClientListResponse contains the response from method RestorableGremlinGraphsClient.NewListPager. type RestorableGremlinGraphsClientListResponse struct { RestorableGremlinGraphsListResult } -// RestorableGremlinResourcesClientListResponse contains the response from method RestorableGremlinResourcesClient.List. +// RestorableGremlinResourcesClientListResponse contains the response from method RestorableGremlinResourcesClient.NewListPager. type RestorableGremlinResourcesClientListResponse struct { RestorableGremlinResourcesListResult } -// RestorableMongodbCollectionsClientListResponse contains the response from method RestorableMongodbCollectionsClient.List. +// RestorableMongodbCollectionsClientListResponse contains the response from method RestorableMongodbCollectionsClient.NewListPager. type RestorableMongodbCollectionsClientListResponse struct { RestorableMongodbCollectionsListResult } -// RestorableMongodbDatabasesClientListResponse contains the response from method RestorableMongodbDatabasesClient.List. +// RestorableMongodbDatabasesClientListResponse contains the response from method RestorableMongodbDatabasesClient.NewListPager. type RestorableMongodbDatabasesClientListResponse struct { RestorableMongodbDatabasesListResult } -// RestorableMongodbResourcesClientListResponse contains the response from method RestorableMongodbResourcesClient.List. +// RestorableMongodbResourcesClientListResponse contains the response from method RestorableMongodbResourcesClient.NewListPager. type RestorableMongodbResourcesClientListResponse struct { RestorableMongodbResourcesListResult } -// RestorableSQLContainersClientListResponse contains the response from method RestorableSQLContainersClient.List. +// RestorableSQLContainersClientListResponse contains the response from method RestorableSQLContainersClient.NewListPager. type RestorableSQLContainersClientListResponse struct { RestorableSQLContainersListResult } -// RestorableSQLDatabasesClientListResponse contains the response from method RestorableSQLDatabasesClient.List. +// RestorableSQLDatabasesClientListResponse contains the response from method RestorableSQLDatabasesClient.NewListPager. type RestorableSQLDatabasesClientListResponse struct { RestorableSQLDatabasesListResult } -// RestorableSQLResourcesClientListResponse contains the response from method RestorableSQLResourcesClient.List. +// RestorableSQLResourcesClientListResponse contains the response from method RestorableSQLResourcesClient.NewListPager. type RestorableSQLResourcesClientListResponse struct { RestorableSQLResourcesListResult } -// RestorableTableResourcesClientListResponse contains the response from method RestorableTableResourcesClient.List. +// RestorableTableResourcesClientListResponse contains the response from method RestorableTableResourcesClient.NewListPager. type RestorableTableResourcesClientListResponse struct { RestorableTableResourcesListResult } -// RestorableTablesClientListResponse contains the response from method RestorableTablesClient.List. +// RestorableTablesClientListResponse contains the response from method RestorableTablesClient.NewListPager. type RestorableTablesClientListResponse struct { RestorableTablesListResult } -// SQLResourcesClientCreateUpdateClientEncryptionKeyResponse contains the response from method SQLResourcesClient.CreateUpdateClientEncryptionKey. +// SQLResourcesClientCreateUpdateClientEncryptionKeyResponse contains the response from method SQLResourcesClient.BeginCreateUpdateClientEncryptionKey. type SQLResourcesClientCreateUpdateClientEncryptionKeyResponse struct { ClientEncryptionKeyGetResults } -// SQLResourcesClientCreateUpdateSQLContainerResponse contains the response from method SQLResourcesClient.CreateUpdateSQLContainer. +// SQLResourcesClientCreateUpdateSQLContainerResponse contains the response from method SQLResourcesClient.BeginCreateUpdateSQLContainer. type SQLResourcesClientCreateUpdateSQLContainerResponse struct { SQLContainerGetResults } -// SQLResourcesClientCreateUpdateSQLDatabaseResponse contains the response from method SQLResourcesClient.CreateUpdateSQLDatabase. +// SQLResourcesClientCreateUpdateSQLDatabaseResponse contains the response from method SQLResourcesClient.BeginCreateUpdateSQLDatabase. type SQLResourcesClientCreateUpdateSQLDatabaseResponse struct { SQLDatabaseGetResults } -// SQLResourcesClientCreateUpdateSQLRoleAssignmentResponse contains the response from method SQLResourcesClient.CreateUpdateSQLRoleAssignment. +// SQLResourcesClientCreateUpdateSQLRoleAssignmentResponse contains the response from method SQLResourcesClient.BeginCreateUpdateSQLRoleAssignment. type SQLResourcesClientCreateUpdateSQLRoleAssignmentResponse struct { SQLRoleAssignmentGetResults } -// SQLResourcesClientCreateUpdateSQLRoleDefinitionResponse contains the response from method SQLResourcesClient.CreateUpdateSQLRoleDefinition. +// SQLResourcesClientCreateUpdateSQLRoleDefinitionResponse contains the response from method SQLResourcesClient.BeginCreateUpdateSQLRoleDefinition. type SQLResourcesClientCreateUpdateSQLRoleDefinitionResponse struct { SQLRoleDefinitionGetResults } -// SQLResourcesClientCreateUpdateSQLStoredProcedureResponse contains the response from method SQLResourcesClient.CreateUpdateSQLStoredProcedure. +// SQLResourcesClientCreateUpdateSQLStoredProcedureResponse contains the response from method SQLResourcesClient.BeginCreateUpdateSQLStoredProcedure. type SQLResourcesClientCreateUpdateSQLStoredProcedureResponse struct { SQLStoredProcedureGetResults } -// SQLResourcesClientCreateUpdateSQLTriggerResponse contains the response from method SQLResourcesClient.CreateUpdateSQLTrigger. +// SQLResourcesClientCreateUpdateSQLTriggerResponse contains the response from method SQLResourcesClient.BeginCreateUpdateSQLTrigger. type SQLResourcesClientCreateUpdateSQLTriggerResponse struct { SQLTriggerGetResults } -// SQLResourcesClientCreateUpdateSQLUserDefinedFunctionResponse contains the response from method SQLResourcesClient.CreateUpdateSQLUserDefinedFunction. +// SQLResourcesClientCreateUpdateSQLUserDefinedFunctionResponse contains the response from method SQLResourcesClient.BeginCreateUpdateSQLUserDefinedFunction. type SQLResourcesClientCreateUpdateSQLUserDefinedFunctionResponse struct { SQLUserDefinedFunctionGetResults } -// SQLResourcesClientDeleteSQLContainerResponse contains the response from method SQLResourcesClient.DeleteSQLContainer. +// SQLResourcesClientDeleteSQLContainerResponse contains the response from method SQLResourcesClient.BeginDeleteSQLContainer. type SQLResourcesClientDeleteSQLContainerResponse struct { // placeholder for future response values } -// SQLResourcesClientDeleteSQLDatabaseResponse contains the response from method SQLResourcesClient.DeleteSQLDatabase. +// SQLResourcesClientDeleteSQLDatabaseResponse contains the response from method SQLResourcesClient.BeginDeleteSQLDatabase. type SQLResourcesClientDeleteSQLDatabaseResponse struct { // placeholder for future response values } -// SQLResourcesClientDeleteSQLRoleAssignmentResponse contains the response from method SQLResourcesClient.DeleteSQLRoleAssignment. +// SQLResourcesClientDeleteSQLRoleAssignmentResponse contains the response from method SQLResourcesClient.BeginDeleteSQLRoleAssignment. type SQLResourcesClientDeleteSQLRoleAssignmentResponse struct { // placeholder for future response values } -// SQLResourcesClientDeleteSQLRoleDefinitionResponse contains the response from method SQLResourcesClient.DeleteSQLRoleDefinition. +// SQLResourcesClientDeleteSQLRoleDefinitionResponse contains the response from method SQLResourcesClient.BeginDeleteSQLRoleDefinition. type SQLResourcesClientDeleteSQLRoleDefinitionResponse struct { // placeholder for future response values } -// SQLResourcesClientDeleteSQLStoredProcedureResponse contains the response from method SQLResourcesClient.DeleteSQLStoredProcedure. +// SQLResourcesClientDeleteSQLStoredProcedureResponse contains the response from method SQLResourcesClient.BeginDeleteSQLStoredProcedure. type SQLResourcesClientDeleteSQLStoredProcedureResponse struct { // placeholder for future response values } -// SQLResourcesClientDeleteSQLTriggerResponse contains the response from method SQLResourcesClient.DeleteSQLTrigger. +// SQLResourcesClientDeleteSQLTriggerResponse contains the response from method SQLResourcesClient.BeginDeleteSQLTrigger. type SQLResourcesClientDeleteSQLTriggerResponse struct { // placeholder for future response values } -// SQLResourcesClientDeleteSQLUserDefinedFunctionResponse contains the response from method SQLResourcesClient.DeleteSQLUserDefinedFunction. +// SQLResourcesClientDeleteSQLUserDefinedFunctionResponse contains the response from method SQLResourcesClient.BeginDeleteSQLUserDefinedFunction. type SQLResourcesClientDeleteSQLUserDefinedFunctionResponse struct { // placeholder for future response values } @@ -945,112 +820,87 @@ type SQLResourcesClientGetSQLUserDefinedFunctionResponse struct { SQLUserDefinedFunctionGetResults } -// SQLResourcesClientListClientEncryptionKeysResponse contains the response from method SQLResourcesClient.ListClientEncryptionKeys. +// SQLResourcesClientListClientEncryptionKeysResponse contains the response from method SQLResourcesClient.NewListClientEncryptionKeysPager. type SQLResourcesClientListClientEncryptionKeysResponse struct { ClientEncryptionKeysListResult } -// SQLResourcesClientListSQLContainerPartitionMergeResponse contains the response from method SQLResourcesClient.ListSQLContainerPartitionMerge. -type SQLResourcesClientListSQLContainerPartitionMergeResponse struct { - PhysicalPartitionStorageInfoCollection -} - -// SQLResourcesClientListSQLContainersResponse contains the response from method SQLResourcesClient.ListSQLContainers. +// SQLResourcesClientListSQLContainersResponse contains the response from method SQLResourcesClient.NewListSQLContainersPager. type SQLResourcesClientListSQLContainersResponse struct { SQLContainerListResult } -// SQLResourcesClientListSQLDatabasesResponse contains the response from method SQLResourcesClient.ListSQLDatabases. +// SQLResourcesClientListSQLDatabasesResponse contains the response from method SQLResourcesClient.NewListSQLDatabasesPager. type SQLResourcesClientListSQLDatabasesResponse struct { SQLDatabaseListResult } -// SQLResourcesClientListSQLRoleAssignmentsResponse contains the response from method SQLResourcesClient.ListSQLRoleAssignments. +// SQLResourcesClientListSQLRoleAssignmentsResponse contains the response from method SQLResourcesClient.NewListSQLRoleAssignmentsPager. type SQLResourcesClientListSQLRoleAssignmentsResponse struct { SQLRoleAssignmentListResult } -// SQLResourcesClientListSQLRoleDefinitionsResponse contains the response from method SQLResourcesClient.ListSQLRoleDefinitions. +// SQLResourcesClientListSQLRoleDefinitionsResponse contains the response from method SQLResourcesClient.NewListSQLRoleDefinitionsPager. type SQLResourcesClientListSQLRoleDefinitionsResponse struct { SQLRoleDefinitionListResult } -// SQLResourcesClientListSQLStoredProceduresResponse contains the response from method SQLResourcesClient.ListSQLStoredProcedures. +// SQLResourcesClientListSQLStoredProceduresResponse contains the response from method SQLResourcesClient.NewListSQLStoredProceduresPager. type SQLResourcesClientListSQLStoredProceduresResponse struct { SQLStoredProcedureListResult } -// SQLResourcesClientListSQLTriggersResponse contains the response from method SQLResourcesClient.ListSQLTriggers. +// SQLResourcesClientListSQLTriggersResponse contains the response from method SQLResourcesClient.NewListSQLTriggersPager. type SQLResourcesClientListSQLTriggersResponse struct { SQLTriggerListResult } -// SQLResourcesClientListSQLUserDefinedFunctionsResponse contains the response from method SQLResourcesClient.ListSQLUserDefinedFunctions. +// SQLResourcesClientListSQLUserDefinedFunctionsResponse contains the response from method SQLResourcesClient.NewListSQLUserDefinedFunctionsPager. type SQLResourcesClientListSQLUserDefinedFunctionsResponse struct { SQLUserDefinedFunctionListResult } -// SQLResourcesClientMigrateSQLContainerToAutoscaleResponse contains the response from method SQLResourcesClient.MigrateSQLContainerToAutoscale. +// SQLResourcesClientMigrateSQLContainerToAutoscaleResponse contains the response from method SQLResourcesClient.BeginMigrateSQLContainerToAutoscale. type SQLResourcesClientMigrateSQLContainerToAutoscaleResponse struct { ThroughputSettingsGetResults } -// SQLResourcesClientMigrateSQLContainerToManualThroughputResponse contains the response from method SQLResourcesClient.MigrateSQLContainerToManualThroughput. +// SQLResourcesClientMigrateSQLContainerToManualThroughputResponse contains the response from method SQLResourcesClient.BeginMigrateSQLContainerToManualThroughput. type SQLResourcesClientMigrateSQLContainerToManualThroughputResponse struct { ThroughputSettingsGetResults } -// SQLResourcesClientMigrateSQLDatabaseToAutoscaleResponse contains the response from method SQLResourcesClient.MigrateSQLDatabaseToAutoscale. +// SQLResourcesClientMigrateSQLDatabaseToAutoscaleResponse contains the response from method SQLResourcesClient.BeginMigrateSQLDatabaseToAutoscale. type SQLResourcesClientMigrateSQLDatabaseToAutoscaleResponse struct { ThroughputSettingsGetResults } -// SQLResourcesClientMigrateSQLDatabaseToManualThroughputResponse contains the response from method SQLResourcesClient.MigrateSQLDatabaseToManualThroughput. +// SQLResourcesClientMigrateSQLDatabaseToManualThroughputResponse contains the response from method SQLResourcesClient.BeginMigrateSQLDatabaseToManualThroughput. type SQLResourcesClientMigrateSQLDatabaseToManualThroughputResponse struct { ThroughputSettingsGetResults } -// SQLResourcesClientRetrieveContinuousBackupInformationResponse contains the response from method SQLResourcesClient.RetrieveContinuousBackupInformation. +// SQLResourcesClientRetrieveContinuousBackupInformationResponse contains the response from method SQLResourcesClient.BeginRetrieveContinuousBackupInformation. type SQLResourcesClientRetrieveContinuousBackupInformationResponse struct { BackupInformation } -// SQLResourcesClientSQLContainerRedistributeThroughputResponse contains the response from method SQLResourcesClient.SQLContainerRedistributeThroughput. -type SQLResourcesClientSQLContainerRedistributeThroughputResponse struct { - PhysicalPartitionThroughputInfoResult -} - -// SQLResourcesClientSQLContainerRetrieveThroughputDistributionResponse contains the response from method SQLResourcesClient.SQLContainerRetrieveThroughputDistribution. -type SQLResourcesClientSQLContainerRetrieveThroughputDistributionResponse struct { - PhysicalPartitionThroughputInfoResult -} - -// SQLResourcesClientSQLDatabaseRedistributeThroughputResponse contains the response from method SQLResourcesClient.SQLDatabaseRedistributeThroughput. -type SQLResourcesClientSQLDatabaseRedistributeThroughputResponse struct { - PhysicalPartitionThroughputInfoResult -} - -// SQLResourcesClientSQLDatabaseRetrieveThroughputDistributionResponse contains the response from method SQLResourcesClient.SQLDatabaseRetrieveThroughputDistribution. -type SQLResourcesClientSQLDatabaseRetrieveThroughputDistributionResponse struct { - PhysicalPartitionThroughputInfoResult -} - -// SQLResourcesClientUpdateSQLContainerThroughputResponse contains the response from method SQLResourcesClient.UpdateSQLContainerThroughput. +// SQLResourcesClientUpdateSQLContainerThroughputResponse contains the response from method SQLResourcesClient.BeginUpdateSQLContainerThroughput. type SQLResourcesClientUpdateSQLContainerThroughputResponse struct { ThroughputSettingsGetResults } -// SQLResourcesClientUpdateSQLDatabaseThroughputResponse contains the response from method SQLResourcesClient.UpdateSQLDatabaseThroughput. +// SQLResourcesClientUpdateSQLDatabaseThroughputResponse contains the response from method SQLResourcesClient.BeginUpdateSQLDatabaseThroughput. type SQLResourcesClientUpdateSQLDatabaseThroughputResponse struct { ThroughputSettingsGetResults } -// ServiceClientCreateResponse contains the response from method ServiceClient.Create. +// ServiceClientCreateResponse contains the response from method ServiceClient.BeginCreate. type ServiceClientCreateResponse struct { ServiceResource } -// ServiceClientDeleteResponse contains the response from method ServiceClient.Delete. +// ServiceClientDeleteResponse contains the response from method ServiceClient.BeginDelete. type ServiceClientDeleteResponse struct { // placeholder for future response values } @@ -1060,17 +910,17 @@ type ServiceClientGetResponse struct { ServiceResource } -// ServiceClientListResponse contains the response from method ServiceClient.List. +// ServiceClientListResponse contains the response from method ServiceClient.NewListPager. type ServiceClientListResponse struct { ServiceResourceListResult } -// TableResourcesClientCreateUpdateTableResponse contains the response from method TableResourcesClient.CreateUpdateTable. +// TableResourcesClientCreateUpdateTableResponse contains the response from method TableResourcesClient.BeginCreateUpdateTable. type TableResourcesClientCreateUpdateTableResponse struct { TableGetResults } -// TableResourcesClientDeleteTableResponse contains the response from method TableResourcesClient.DeleteTable. +// TableResourcesClientDeleteTableResponse contains the response from method TableResourcesClient.BeginDeleteTable. type TableResourcesClientDeleteTableResponse struct { // placeholder for future response values } @@ -1085,27 +935,27 @@ type TableResourcesClientGetTableThroughputResponse struct { ThroughputSettingsGetResults } -// TableResourcesClientListTablesResponse contains the response from method TableResourcesClient.ListTables. +// TableResourcesClientListTablesResponse contains the response from method TableResourcesClient.NewListTablesPager. type TableResourcesClientListTablesResponse struct { TableListResult } -// TableResourcesClientMigrateTableToAutoscaleResponse contains the response from method TableResourcesClient.MigrateTableToAutoscale. +// TableResourcesClientMigrateTableToAutoscaleResponse contains the response from method TableResourcesClient.BeginMigrateTableToAutoscale. type TableResourcesClientMigrateTableToAutoscaleResponse struct { ThroughputSettingsGetResults } -// TableResourcesClientMigrateTableToManualThroughputResponse contains the response from method TableResourcesClient.MigrateTableToManualThroughput. +// TableResourcesClientMigrateTableToManualThroughputResponse contains the response from method TableResourcesClient.BeginMigrateTableToManualThroughput. type TableResourcesClientMigrateTableToManualThroughputResponse struct { ThroughputSettingsGetResults } -// TableResourcesClientRetrieveContinuousBackupInformationResponse contains the response from method TableResourcesClient.RetrieveContinuousBackupInformation. +// TableResourcesClientRetrieveContinuousBackupInformationResponse contains the response from method TableResourcesClient.BeginRetrieveContinuousBackupInformation. type TableResourcesClientRetrieveContinuousBackupInformationResponse struct { BackupInformation } -// TableResourcesClientUpdateTableThroughputResponse contains the response from method TableResourcesClient.UpdateTableThroughput. +// TableResourcesClientUpdateTableThroughputResponse contains the response from method TableResourcesClient.BeginUpdateTableThroughput. type TableResourcesClientUpdateTableThroughputResponse struct { ThroughputSettingsGetResults } diff --git a/sdk/resourcemanager/cosmos/armcosmos/restorabledatabaseaccounts_client.go b/sdk/resourcemanager/cosmos/armcosmos/restorabledatabaseaccounts_client.go index 2e80e8f1f126..db0a0ff2898c 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/restorabledatabaseaccounts_client.go +++ b/sdk/resourcemanager/cosmos/armcosmos/restorabledatabaseaccounts_client.go @@ -32,9 +32,9 @@ type RestorableDatabaseAccountsClient struct { } // NewRestorableDatabaseAccountsClient creates a new instance of RestorableDatabaseAccountsClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewRestorableDatabaseAccountsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*RestorableDatabaseAccountsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -58,11 +58,12 @@ func NewRestorableDatabaseAccountsClient(subscriptionID string, credential azcor // GetByLocation - Retrieves the properties of an existing Azure Cosmos DB restorable database account. This call requires // 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read/*' permission. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// location - Cosmos DB region, with spaces between words and each word capitalized. -// instanceID - The instanceId GUID of a restorable database account. -// options - RestorableDatabaseAccountsClientGetByLocationOptions contains the optional parameters for the RestorableDatabaseAccountsClient.GetByLocation -// method. +// +// Generated from API version 2022-11-15 +// - location - Cosmos DB region, with spaces between words and each word capitalized. +// - instanceID - The instanceId GUID of a restorable database account. +// - options - RestorableDatabaseAccountsClientGetByLocationOptions contains the optional parameters for the RestorableDatabaseAccountsClient.GetByLocation +// method. func (client *RestorableDatabaseAccountsClient) GetByLocation(ctx context.Context, location string, instanceID string, options *RestorableDatabaseAccountsClientGetByLocationOptions) (RestorableDatabaseAccountsClientGetByLocationResponse, error) { req, err := client.getByLocationCreateRequest(ctx, location, instanceID, options) if err != nil { @@ -98,7 +99,7 @@ func (client *RestorableDatabaseAccountsClient) getByLocationCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -115,9 +116,10 @@ func (client *RestorableDatabaseAccountsClient) getByLocationHandleResponse(resp // NewListPager - Lists all the restorable Azure Cosmos DB database accounts available under the subscription. This call requires // 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read' permission. -// Generated from API version 2022-08-15-preview -// options - RestorableDatabaseAccountsClientListOptions contains the optional parameters for the RestorableDatabaseAccountsClient.List -// method. +// +// Generated from API version 2022-11-15 +// - options - RestorableDatabaseAccountsClientListOptions contains the optional parameters for the RestorableDatabaseAccountsClient.NewListPager +// method. func (client *RestorableDatabaseAccountsClient) NewListPager(options *RestorableDatabaseAccountsClientListOptions) *runtime.Pager[RestorableDatabaseAccountsClientListResponse] { return runtime.NewPager(runtime.PagingHandler[RestorableDatabaseAccountsClientListResponse]{ More: func(page RestorableDatabaseAccountsClientListResponse) bool { @@ -152,7 +154,7 @@ func (client *RestorableDatabaseAccountsClient) listCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -170,10 +172,11 @@ func (client *RestorableDatabaseAccountsClient) listHandleResponse(resp *http.Re // NewListByLocationPager - Lists all the restorable Azure Cosmos DB database accounts available under the subscription and // in a region. This call requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/read' // permission. -// Generated from API version 2022-08-15-preview -// location - Cosmos DB region, with spaces between words and each word capitalized. -// options - RestorableDatabaseAccountsClientListByLocationOptions contains the optional parameters for the RestorableDatabaseAccountsClient.ListByLocation -// method. +// +// Generated from API version 2022-11-15 +// - location - Cosmos DB region, with spaces between words and each word capitalized. +// - options - RestorableDatabaseAccountsClientListByLocationOptions contains the optional parameters for the RestorableDatabaseAccountsClient.NewListByLocationPager +// method. func (client *RestorableDatabaseAccountsClient) NewListByLocationPager(location string, options *RestorableDatabaseAccountsClientListByLocationOptions) *runtime.Pager[RestorableDatabaseAccountsClientListByLocationResponse] { return runtime.NewPager(runtime.PagingHandler[RestorableDatabaseAccountsClientListByLocationResponse]{ More: func(page RestorableDatabaseAccountsClientListByLocationResponse) bool { @@ -212,7 +215,7 @@ func (client *RestorableDatabaseAccountsClient) listByLocationCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/cosmos/armcosmos/restorabledatabaseaccounts_client_example_test.go b/sdk/resourcemanager/cosmos/armcosmos/restorabledatabaseaccounts_client_example_test.go index c943545b1992..0c22622d859a 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/restorabledatabaseaccounts_client_example_test.go +++ b/sdk/resourcemanager/cosmos/armcosmos/restorabledatabaseaccounts_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armcosmos_test @@ -16,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cosmos/armcosmos/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBRestorableDatabaseAccountList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBRestorableDatabaseAccountList.json func ExampleRestorableDatabaseAccountsClient_NewListByLocationPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -29,18 +30,69 @@ func ExampleRestorableDatabaseAccountsClient_NewListByLocationPager() { } pager := client.NewListByLocationPager("West US", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.RestorableDatabaseAccountsListResult = armcosmos.RestorableDatabaseAccountsListResult{ + // Value: []*armcosmos.RestorableDatabaseAccountGetResult{ + // { + // Name: to.Ptr("d9b26648-2f53-4541-b3d8-3044f4f9810d"), + // Type: to.Ptr("Microsoft.DocumentDB/locations/restorableDatabaseAccounts"), + // ID: to.Ptr("/subscriptions/subid/providers/Microsoft.DocumentDB/locations/West US/restorableDatabaseAccounts/d9b26648-2f53-4541-b3d8-3044f4f9810d"), + // Location: to.Ptr("West US"), + // Properties: &armcosmos.RestorableDatabaseAccountProperties{ + // AccountName: to.Ptr("ddb1"), + // APIType: to.Ptr(armcosmos.APITypeSQL), + // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-04-11T21:56:15Z"); return t}()), + // DeletionTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-12T22:05:09Z"); return t}()), + // RestorableLocations: []*armcosmos.RestorableLocationResource{ + // { + // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-10-30T21:13:10Z"); return t}()), + // DeletionTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-10-30T21:13:35Z"); return t}()), + // LocationName: to.Ptr("South Central US"), + // RegionalDatabaseAccountInstanceID: to.Ptr("d7a01f78-606f-45c6-9dac-0df32f433bb5"), + // }, + // { + // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-10-30T21:13:10Z"); return t}()), + // LocationName: to.Ptr("West US"), + // RegionalDatabaseAccountInstanceID: to.Ptr("fdb43d84-1572-4697-b6e7-2bcda0c51b2c"), + // }}, + // }, + // }, + // { + // Name: to.Ptr("4f9e6ace-ac7a-446c-98bc-194c502a06b4"), + // Type: to.Ptr("Microsoft.DocumentDB/locations/restorableDatabaseAccounts"), + // ID: to.Ptr("/subscriptions/subid/providers/Microsoft.DocumentDB/locations/West US/restorableDatabaseAccounts/4f9e6ace-ac7a-446c-98bc-194c502a06b4"), + // Location: to.Ptr("West US"), + // Properties: &armcosmos.RestorableDatabaseAccountProperties{ + // AccountName: to.Ptr("ddb2"), + // APIType: to.Ptr(armcosmos.APITypeSQL), + // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-05-01T08:05:18Z"); return t}()), + // RestorableLocations: []*armcosmos.RestorableLocationResource{ + // { + // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-10-30T21:13:10Z"); return t}()), + // DeletionTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-10-30T21:13:35Z"); return t}()), + // LocationName: to.Ptr("South Central US"), + // RegionalDatabaseAccountInstanceID: to.Ptr("d7a01f78-606f-45c6-9dac-0df32f433bb5"), + // }, + // { + // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-10-30T21:13:10Z"); return t}()), + // LocationName: to.Ptr("West US"), + // RegionalDatabaseAccountInstanceID: to.Ptr("fdb43d84-1572-4697-b6e7-2bcda0c51b2c"), + // }}, + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBRestorableDatabaseAccountNoLocationList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBRestorableDatabaseAccountNoLocationList.json func ExampleRestorableDatabaseAccountsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -53,18 +105,69 @@ func ExampleRestorableDatabaseAccountsClient_NewListPager() { } pager := client.NewListPager(nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.RestorableDatabaseAccountsListResult = armcosmos.RestorableDatabaseAccountsListResult{ + // Value: []*armcosmos.RestorableDatabaseAccountGetResult{ + // { + // Name: to.Ptr("d9b26648-2f53-4541-b3d8-3044f4f9810d"), + // Type: to.Ptr("Microsoft.DocumentDB/locations/restorableDatabaseAccounts"), + // ID: to.Ptr("/subscriptions/subid/providers/Microsoft.DocumentDB/locations/West US/restorableDatabaseAccounts/d9b26648-2f53-4541-b3d8-3044f4f9810d"), + // Location: to.Ptr("West US"), + // Properties: &armcosmos.RestorableDatabaseAccountProperties{ + // AccountName: to.Ptr("ddb1"), + // APIType: to.Ptr(armcosmos.APITypeSQL), + // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-04-11T21:56:15Z"); return t}()), + // DeletionTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-12T22:05:09Z"); return t}()), + // RestorableLocations: []*armcosmos.RestorableLocationResource{ + // { + // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-10-30T21:13:10Z"); return t}()), + // DeletionTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-10-30T21:13:35Z"); return t}()), + // LocationName: to.Ptr("South Central US"), + // RegionalDatabaseAccountInstanceID: to.Ptr("d7a01f78-606f-45c6-9dac-0df32f433bb5"), + // }, + // { + // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-10-30T21:13:10Z"); return t}()), + // LocationName: to.Ptr("West US"), + // RegionalDatabaseAccountInstanceID: to.Ptr("fdb43d84-1572-4697-b6e7-2bcda0c51b2c"), + // }}, + // }, + // }, + // { + // Name: to.Ptr("4f9e6ace-ac7a-446c-98bc-194c502a06b4"), + // Type: to.Ptr("Microsoft.DocumentDB/locations/restorableDatabaseAccounts"), + // ID: to.Ptr("/subscriptions/subid/providers/Microsoft.DocumentDB/locations/West US/restorableDatabaseAccounts/4f9e6ace-ac7a-446c-98bc-194c502a06b4"), + // Location: to.Ptr("East US"), + // Properties: &armcosmos.RestorableDatabaseAccountProperties{ + // AccountName: to.Ptr("ddb2"), + // APIType: to.Ptr(armcosmos.APITypeSQL), + // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-05-01T08:05:18Z"); return t}()), + // RestorableLocations: []*armcosmos.RestorableLocationResource{ + // { + // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-10-30T21:13:10Z"); return t}()), + // DeletionTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-10-30T21:13:35Z"); return t}()), + // LocationName: to.Ptr("South Central US"), + // RegionalDatabaseAccountInstanceID: to.Ptr("d7a01f78-606f-45c6-9dac-0df32f433bb5"), + // }, + // { + // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-10-30T21:13:10Z"); return t}()), + // LocationName: to.Ptr("West US"), + // RegionalDatabaseAccountInstanceID: to.Ptr("fdb43d84-1572-4697-b6e7-2bcda0c51b2c"), + // }}, + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBRestorableDatabaseAccountGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBRestorableDatabaseAccountGet.json func ExampleRestorableDatabaseAccountsClient_GetByLocation() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -79,6 +182,31 @@ func ExampleRestorableDatabaseAccountsClient_GetByLocation() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.RestorableDatabaseAccountGetResult = armcosmos.RestorableDatabaseAccountGetResult{ + // Name: to.Ptr("d9b26648-2f53-4541-b3d8-3044f4f9810d"), + // Type: to.Ptr("Microsoft.DocumentDB/locations/restorableDatabaseAccounts"), + // ID: to.Ptr("/subscriptions/subid/providers/Microsoft.DocumentDB/locations/West US/restorableDatabaseAccounts/d9b26648-2f53-4541-b3d8-3044f4f9810d"), + // Location: to.Ptr("West US"), + // Properties: &armcosmos.RestorableDatabaseAccountProperties{ + // AccountName: to.Ptr("ddb1"), + // APIType: to.Ptr(armcosmos.APITypeSQL), + // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-04-11T21:56:15Z"); return t}()), + // DeletionTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-03-12T22:05:09Z"); return t}()), + // RestorableLocations: []*armcosmos.RestorableLocationResource{ + // { + // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-10-30T21:13:10Z"); return t}()), + // DeletionTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-10-30T21:13:35Z"); return t}()), + // LocationName: to.Ptr("South Central US"), + // RegionalDatabaseAccountInstanceID: to.Ptr("d7a01f78-606f-45c6-9dac-0df32f433bb5"), + // }, + // { + // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-10-30T21:13:10Z"); return t}()), + // LocationName: to.Ptr("West US"), + // RegionalDatabaseAccountInstanceID: to.Ptr("fdb43d84-1572-4697-b6e7-2bcda0c51b2c"), + // }}, + // }, + // } } diff --git a/sdk/resourcemanager/cosmos/armcosmos/restorablegremlindatabases_client.go b/sdk/resourcemanager/cosmos/armcosmos/restorablegremlindatabases_client.go index e616af9bf61b..0dda262eaaba 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/restorablegremlindatabases_client.go +++ b/sdk/resourcemanager/cosmos/armcosmos/restorablegremlindatabases_client.go @@ -32,9 +32,9 @@ type RestorableGremlinDatabasesClient struct { } // NewRestorableGremlinDatabasesClient creates a new instance of RestorableGremlinDatabasesClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewRestorableGremlinDatabasesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*RestorableGremlinDatabasesClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -58,11 +58,12 @@ func NewRestorableGremlinDatabasesClient(subscriptionID string, credential azcor // NewListPager - Show the event feed of all mutations done on all the Azure Cosmos DB Gremlin databases under the restorable // account. This helps in scenario where database was accidentally deleted to get the deletion // time. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/…/read' permission -// Generated from API version 2022-08-15-preview -// location - Cosmos DB region, with spaces between words and each word capitalized. -// instanceID - The instanceId GUID of a restorable database account. -// options - RestorableGremlinDatabasesClientListOptions contains the optional parameters for the RestorableGremlinDatabasesClient.List -// method. +// +// Generated from API version 2022-11-15 +// - location - Cosmos DB region, with spaces between words and each word capitalized. +// - instanceID - The instanceId GUID of a restorable database account. +// - options - RestorableGremlinDatabasesClientListOptions contains the optional parameters for the RestorableGremlinDatabasesClient.NewListPager +// method. func (client *RestorableGremlinDatabasesClient) NewListPager(location string, instanceID string, options *RestorableGremlinDatabasesClientListOptions) *runtime.Pager[RestorableGremlinDatabasesClientListResponse] { return runtime.NewPager(runtime.PagingHandler[RestorableGremlinDatabasesClientListResponse]{ More: func(page RestorableGremlinDatabasesClientListResponse) bool { @@ -105,7 +106,7 @@ func (client *RestorableGremlinDatabasesClient) listCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/cosmos/armcosmos/restorablegremlindatabases_client_example_test.go b/sdk/resourcemanager/cosmos/armcosmos/restorablegremlindatabases_client_example_test.go index fac6f868ab8f..438eda2b7d7b 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/restorablegremlindatabases_client_example_test.go +++ b/sdk/resourcemanager/cosmos/armcosmos/restorablegremlindatabases_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armcosmos_test @@ -16,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cosmos/armcosmos/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBRestorableGremlinDatabaseList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBRestorableGremlinDatabaseList.json func ExampleRestorableGremlinDatabasesClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -29,13 +30,45 @@ func ExampleRestorableGremlinDatabasesClient_NewListPager() { } pager := client.NewListPager("WestUS", "d9b26648-2f53-4541-b3d8-3044f4f9810d", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.RestorableGremlinDatabasesListResult = armcosmos.RestorableGremlinDatabasesListResult{ + // Value: []*armcosmos.RestorableGremlinDatabaseGetResult{ + // { + // Name: to.Ptr("59c21367-b98b-4a8e-abb7-b6f46600decc"), + // Type: to.Ptr("Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableGremlinDatabases"), + // ID: to.Ptr("/subscriptions/2296c272-5d55-40d9-bc05-4d56dc2d7588/providers/Microsoft.DocumentDb/locations/westus/restorableDatabaseAccounts/36f09704-6be3-4f33-aa05-17b73e504c75/restorableGremlinDatabases/59c21367-b98b-4a8e-abb7-b6f46600decc"), + // Properties: &armcosmos.RestorableGremlinDatabaseProperties{ + // Resource: &armcosmos.RestorableGremlinDatabasePropertiesResource{ + // Rid: to.Ptr("DLB14gAAAA=="), + // EventTimestamp: to.Ptr("2020-09-02T19:45:03Z"), + // OperationType: to.Ptr(armcosmos.OperationTypeCreate), + // OwnerID: to.Ptr("Database1"), + // OwnerResourceID: to.Ptr("PD5DALigDgw="), + // }, + // }, + // }, + // { + // Name: to.Ptr("8456cb17-cdb0-4c6a-8db8-d0ff3f886257"), + // Type: to.Ptr("Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableGremlinDatabases"), + // ID: to.Ptr("/subscriptions/2296c272-5d55-40d9-bc05-4d56dc2d7588/providers/Microsoft.DocumentDb/locations/westus/restorableDatabaseAccounts/d9b26648-2f53-4541-b3d8-3044f4f9810d/restorableGremlinDatabases/8456cb17-cdb0-4c6a-8db8-d0ff3f886257"), + // Properties: &armcosmos.RestorableGremlinDatabaseProperties{ + // Resource: &armcosmos.RestorableGremlinDatabasePropertiesResource{ + // Rid: to.Ptr("ESXNLAAAAA=="), + // EventTimestamp: to.Ptr("2020-09-02T19:53:42Z"), + // OperationType: to.Ptr(armcosmos.OperationTypeDelete), + // OwnerID: to.Ptr("Database1"), + // OwnerResourceID: to.Ptr("PD5DALigDgw="), + // }, + // }, + // }}, + // } } } diff --git a/sdk/resourcemanager/cosmos/armcosmos/restorablegremlingraphs_client.go b/sdk/resourcemanager/cosmos/armcosmos/restorablegremlingraphs_client.go index 98e9c9fdd2c4..bf38e632789d 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/restorablegremlingraphs_client.go +++ b/sdk/resourcemanager/cosmos/armcosmos/restorablegremlingraphs_client.go @@ -32,9 +32,9 @@ type RestorableGremlinGraphsClient struct { } // NewRestorableGremlinGraphsClient creates a new instance of RestorableGremlinGraphsClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewRestorableGremlinGraphsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*RestorableGremlinGraphsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -58,11 +58,12 @@ func NewRestorableGremlinGraphsClient(subscriptionID string, credential azcore.T // NewListPager - Show the event feed of all mutations done on all the Azure Cosmos DB Gremlin graphs under a specific database. // This helps in scenario where container was accidentally deleted. This API requires // 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/…/read' permission -// Generated from API version 2022-08-15-preview -// location - Cosmos DB region, with spaces between words and each word capitalized. -// instanceID - The instanceId GUID of a restorable database account. -// options - RestorableGremlinGraphsClientListOptions contains the optional parameters for the RestorableGremlinGraphsClient.List -// method. +// +// Generated from API version 2022-11-15 +// - location - Cosmos DB region, with spaces between words and each word capitalized. +// - instanceID - The instanceId GUID of a restorable database account. +// - options - RestorableGremlinGraphsClientListOptions contains the optional parameters for the RestorableGremlinGraphsClient.NewListPager +// method. func (client *RestorableGremlinGraphsClient) NewListPager(location string, instanceID string, options *RestorableGremlinGraphsClientListOptions) *runtime.Pager[RestorableGremlinGraphsClientListResponse] { return runtime.NewPager(runtime.PagingHandler[RestorableGremlinGraphsClientListResponse]{ More: func(page RestorableGremlinGraphsClientListResponse) bool { @@ -105,7 +106,7 @@ func (client *RestorableGremlinGraphsClient) listCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") if options != nil && options.RestorableGremlinDatabaseRid != nil { reqQP.Set("restorableGremlinDatabaseRid", *options.RestorableGremlinDatabaseRid) } diff --git a/sdk/resourcemanager/cosmos/armcosmos/restorablegremlingraphs_client_example_test.go b/sdk/resourcemanager/cosmos/armcosmos/restorablegremlingraphs_client_example_test.go index 2d5cdb40362d..c5a620d09062 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/restorablegremlingraphs_client_example_test.go +++ b/sdk/resourcemanager/cosmos/armcosmos/restorablegremlingraphs_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armcosmos_test @@ -17,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cosmos/armcosmos/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBRestorableGremlinGraphList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBRestorableGremlinGraphList.json func ExampleRestorableGremlinGraphsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -33,13 +34,31 @@ func ExampleRestorableGremlinGraphsClient_NewListPager() { EndTime: nil, }) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.RestorableGremlinGraphsListResult = armcosmos.RestorableGremlinGraphsListResult{ + // Value: []*armcosmos.RestorableGremlinGraphGetResult{ + // { + // Name: to.Ptr("79609a98-3394-41f8-911f-cfab0c075c86"), + // Type: to.Ptr("Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableGraphs"), + // ID: to.Ptr("/subscriptions/subid/providers/Microsoft.DocumentDb/locations/westus/restorableDatabaseAccounts/98a570f2-63db-4117-91f0-366327b7b353/restorableGraphs/79609a98-3394-41f8-911f-cfab0c075c86"), + // Properties: &armcosmos.RestorableGremlinGraphProperties{ + // Resource: &armcosmos.RestorableGremlinGraphPropertiesResource{ + // Rid: to.Ptr("zAyAPQAAAA=="), + // EventTimestamp: to.Ptr("2020-10-13T04:56:42Z"), + // OperationType: to.Ptr(armcosmos.OperationTypeCreate), + // OwnerID: to.Ptr("Graph1"), + // OwnerResourceID: to.Ptr("V18LoLrv-qA="), + // }, + // }, + // }}, + // } } } diff --git a/sdk/resourcemanager/cosmos/armcosmos/restorablegremlinresources_client.go b/sdk/resourcemanager/cosmos/armcosmos/restorablegremlinresources_client.go index 27db621ef971..4e9f2c021b9c 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/restorablegremlinresources_client.go +++ b/sdk/resourcemanager/cosmos/armcosmos/restorablegremlinresources_client.go @@ -32,9 +32,9 @@ type RestorableGremlinResourcesClient struct { } // NewRestorableGremlinResourcesClient creates a new instance of RestorableGremlinResourcesClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewRestorableGremlinResourcesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*RestorableGremlinResourcesClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -58,11 +58,12 @@ func NewRestorableGremlinResourcesClient(subscriptionID string, credential azcor // NewListPager - Return a list of gremlin database and graphs combo that exist on the account at the given timestamp and // location. This helps in scenarios to validate what resources exist at given timestamp and // location. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/…/read' permission. -// Generated from API version 2022-08-15-preview -// location - Cosmos DB region, with spaces between words and each word capitalized. -// instanceID - The instanceId GUID of a restorable database account. -// options - RestorableGremlinResourcesClientListOptions contains the optional parameters for the RestorableGremlinResourcesClient.List -// method. +// +// Generated from API version 2022-11-15 +// - location - Cosmos DB region, with spaces between words and each word capitalized. +// - instanceID - The instanceId GUID of a restorable database account. +// - options - RestorableGremlinResourcesClientListOptions contains the optional parameters for the RestorableGremlinResourcesClient.NewListPager +// method. func (client *RestorableGremlinResourcesClient) NewListPager(location string, instanceID string, options *RestorableGremlinResourcesClientListOptions) *runtime.Pager[RestorableGremlinResourcesClientListResponse] { return runtime.NewPager(runtime.PagingHandler[RestorableGremlinResourcesClientListResponse]{ More: func(page RestorableGremlinResourcesClientListResponse) bool { @@ -105,7 +106,7 @@ func (client *RestorableGremlinResourcesClient) listCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") if options != nil && options.RestoreLocation != nil { reqQP.Set("restoreLocation", *options.RestoreLocation) } diff --git a/sdk/resourcemanager/cosmos/armcosmos/restorablegremlinresources_client_example_test.go b/sdk/resourcemanager/cosmos/armcosmos/restorablegremlinresources_client_example_test.go index 2ab22aa7cb26..5607cb4e9447 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/restorablegremlinresources_client_example_test.go +++ b/sdk/resourcemanager/cosmos/armcosmos/restorablegremlinresources_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armcosmos_test @@ -17,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cosmos/armcosmos/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBRestorableGremlinResourceList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBRestorableGremlinResourceList.json func ExampleRestorableGremlinResourcesClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -32,13 +33,42 @@ func ExampleRestorableGremlinResourcesClient_NewListPager() { RestoreTimestampInUTC: to.Ptr("06/01/2022 4:56"), }) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.RestorableGremlinResourcesListResult = armcosmos.RestorableGremlinResourcesListResult{ + // Value: []*armcosmos.RestorableGremlinResourcesGetResult{ + // { + // Name: to.Ptr("Database1"), + // Type: to.Ptr("Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableGremlinResources"), + // DatabaseName: to.Ptr("Database1"), + // GraphNames: []*string{ + // to.Ptr("Graph1")}, + // ID: to.Ptr("/subscriptions/2296c272-5d55-40d9-bc05-4d56dc2d7588/providers/Microsoft.DocumentDB/locations/westus/restorableDatabaseAccounts/d9b26648-2f53-4541-b3d8-3044f4f9810d/restorableGremlinResources/Database1"), + // }, + // { + // Name: to.Ptr("Database2"), + // Type: to.Ptr("Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableGremlinResources"), + // DatabaseName: to.Ptr("Database2"), + // GraphNames: []*string{ + // to.Ptr("Graph1"), + // to.Ptr("Graph2")}, + // ID: to.Ptr("/subscriptions/2296c272-5d55-40d9-bc05-4d56dc2d7588/providers/Microsoft.DocumentDB/locations/westus/restorableDatabaseAccounts/d9b26648-2f53-4541-b3d8-3044f4f9810d/restorableGremlinResources/Database2"), + // }, + // { + // Name: to.Ptr("Database3"), + // Type: to.Ptr("Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableGremlinResources"), + // DatabaseName: to.Ptr("Database3"), + // GraphNames: []*string{ + // }, + // ID: to.Ptr("/subscriptions/2296c272-5d55-40d9-bc05-4d56dc2d7588/providers/Microsoft.DocumentDB/locations/westus/restorableDatabaseAccounts/d9b26648-2f53-4541-b3d8-3044f4f9810d/restorableGremlinResources/Database3"), + // }}, + // } } } diff --git a/sdk/resourcemanager/cosmos/armcosmos/restorablemongodbcollections_client.go b/sdk/resourcemanager/cosmos/armcosmos/restorablemongodbcollections_client.go index f50f7b89d436..6835f5862ae3 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/restorablemongodbcollections_client.go +++ b/sdk/resourcemanager/cosmos/armcosmos/restorablemongodbcollections_client.go @@ -32,9 +32,9 @@ type RestorableMongodbCollectionsClient struct { } // NewRestorableMongodbCollectionsClient creates a new instance of RestorableMongodbCollectionsClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewRestorableMongodbCollectionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*RestorableMongodbCollectionsClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -58,11 +58,12 @@ func NewRestorableMongodbCollectionsClient(subscriptionID string, credential azc // NewListPager - Show the event feed of all mutations done on all the Azure Cosmos DB MongoDB collections under a specific // database. This helps in scenario where container was accidentally deleted. This API requires // 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/…/read' permission -// Generated from API version 2022-08-15-preview -// location - Cosmos DB region, with spaces between words and each word capitalized. -// instanceID - The instanceId GUID of a restorable database account. -// options - RestorableMongodbCollectionsClientListOptions contains the optional parameters for the RestorableMongodbCollectionsClient.List -// method. +// +// Generated from API version 2022-11-15 +// - location - Cosmos DB region, with spaces between words and each word capitalized. +// - instanceID - The instanceId GUID of a restorable database account. +// - options - RestorableMongodbCollectionsClientListOptions contains the optional parameters for the RestorableMongodbCollectionsClient.NewListPager +// method. func (client *RestorableMongodbCollectionsClient) NewListPager(location string, instanceID string, options *RestorableMongodbCollectionsClientListOptions) *runtime.Pager[RestorableMongodbCollectionsClientListResponse] { return runtime.NewPager(runtime.PagingHandler[RestorableMongodbCollectionsClientListResponse]{ More: func(page RestorableMongodbCollectionsClientListResponse) bool { @@ -105,7 +106,7 @@ func (client *RestorableMongodbCollectionsClient) listCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") if options != nil && options.RestorableMongodbDatabaseRid != nil { reqQP.Set("restorableMongodbDatabaseRid", *options.RestorableMongodbDatabaseRid) } diff --git a/sdk/resourcemanager/cosmos/armcosmos/restorablemongodbcollections_client_example_test.go b/sdk/resourcemanager/cosmos/armcosmos/restorablemongodbcollections_client_example_test.go index c3b59a029a77..0605d44aeca9 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/restorablemongodbcollections_client_example_test.go +++ b/sdk/resourcemanager/cosmos/armcosmos/restorablemongodbcollections_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armcosmos_test @@ -17,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cosmos/armcosmos/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBRestorableMongodbCollectionList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBRestorableMongodbCollectionList.json func ExampleRestorableMongodbCollectionsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -33,13 +34,31 @@ func ExampleRestorableMongodbCollectionsClient_NewListPager() { EndTime: nil, }) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.RestorableMongodbCollectionsListResult = armcosmos.RestorableMongodbCollectionsListResult{ + // Value: []*armcosmos.RestorableMongodbCollectionGetResult{ + // { + // Name: to.Ptr("79609a98-3394-41f8-911f-cfab0c075c86"), + // Type: to.Ptr("Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableMongodbCollections"), + // ID: to.Ptr("/subscriptions/subid/providers/Microsoft.DocumentDb/locations/westus/restorableDatabaseAccounts/98a570f2-63db-4117-91f0-366327b7b353/restorableMongodbCollections/79609a98-3394-41f8-911f-cfab0c075c86"), + // Properties: &armcosmos.RestorableMongodbCollectionProperties{ + // Resource: &armcosmos.RestorableMongodbCollectionPropertiesResource{ + // Rid: to.Ptr("zAyAPQAAAA=="), + // EventTimestamp: to.Ptr("2020-10-13T04:56:42Z"), + // OperationType: to.Ptr(armcosmos.OperationTypeCreate), + // OwnerID: to.Ptr("Collection1"), + // OwnerResourceID: to.Ptr("V18LoLrv-qA="), + // }, + // }, + // }}, + // } } } diff --git a/sdk/resourcemanager/cosmos/armcosmos/restorablemongodbdatabases_client.go b/sdk/resourcemanager/cosmos/armcosmos/restorablemongodbdatabases_client.go index a71a5df8ca7a..17209cb36f7d 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/restorablemongodbdatabases_client.go +++ b/sdk/resourcemanager/cosmos/armcosmos/restorablemongodbdatabases_client.go @@ -32,9 +32,9 @@ type RestorableMongodbDatabasesClient struct { } // NewRestorableMongodbDatabasesClient creates a new instance of RestorableMongodbDatabasesClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewRestorableMongodbDatabasesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*RestorableMongodbDatabasesClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -58,11 +58,12 @@ func NewRestorableMongodbDatabasesClient(subscriptionID string, credential azcor // NewListPager - Show the event feed of all mutations done on all the Azure Cosmos DB MongoDB databases under the restorable // account. This helps in scenario where database was accidentally deleted to get the deletion // time. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/…/read' permission -// Generated from API version 2022-08-15-preview -// location - Cosmos DB region, with spaces between words and each word capitalized. -// instanceID - The instanceId GUID of a restorable database account. -// options - RestorableMongodbDatabasesClientListOptions contains the optional parameters for the RestorableMongodbDatabasesClient.List -// method. +// +// Generated from API version 2022-11-15 +// - location - Cosmos DB region, with spaces between words and each word capitalized. +// - instanceID - The instanceId GUID of a restorable database account. +// - options - RestorableMongodbDatabasesClientListOptions contains the optional parameters for the RestorableMongodbDatabasesClient.NewListPager +// method. func (client *RestorableMongodbDatabasesClient) NewListPager(location string, instanceID string, options *RestorableMongodbDatabasesClientListOptions) *runtime.Pager[RestorableMongodbDatabasesClientListResponse] { return runtime.NewPager(runtime.PagingHandler[RestorableMongodbDatabasesClientListResponse]{ More: func(page RestorableMongodbDatabasesClientListResponse) bool { @@ -105,7 +106,7 @@ func (client *RestorableMongodbDatabasesClient) listCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/cosmos/armcosmos/restorablemongodbdatabases_client_example_test.go b/sdk/resourcemanager/cosmos/armcosmos/restorablemongodbdatabases_client_example_test.go index 7b637fc0e1b1..d79bed33b0ab 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/restorablemongodbdatabases_client_example_test.go +++ b/sdk/resourcemanager/cosmos/armcosmos/restorablemongodbdatabases_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armcosmos_test @@ -16,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cosmos/armcosmos/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBRestorableMongodbDatabaseList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBRestorableMongodbDatabaseList.json func ExampleRestorableMongodbDatabasesClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -29,13 +30,45 @@ func ExampleRestorableMongodbDatabasesClient_NewListPager() { } pager := client.NewListPager("WestUS", "d9b26648-2f53-4541-b3d8-3044f4f9810d", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.RestorableMongodbDatabasesListResult = armcosmos.RestorableMongodbDatabasesListResult{ + // Value: []*armcosmos.RestorableMongodbDatabaseGetResult{ + // { + // Name: to.Ptr("59c21367-b98b-4a8e-abb7-b6f46600decc"), + // Type: to.Ptr("Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableMongodbDatabases"), + // ID: to.Ptr("/subscriptions/2296c272-5d55-40d9-bc05-4d56dc2d7588/providers/Microsoft.DocumentDb/locations/westus/restorableDatabaseAccounts/36f09704-6be3-4f33-aa05-17b73e504c75/restorableMongodbDatabases/59c21367-b98b-4a8e-abb7-b6f46600decc"), + // Properties: &armcosmos.RestorableMongodbDatabaseProperties{ + // Resource: &armcosmos.RestorableMongodbDatabasePropertiesResource{ + // Rid: to.Ptr("DLB14gAAAA=="), + // EventTimestamp: to.Ptr("2020-09-02T19:45:03Z"), + // OperationType: to.Ptr(armcosmos.OperationTypeCreate), + // OwnerID: to.Ptr("Database1"), + // OwnerResourceID: to.Ptr("PD5DALigDgw="), + // }, + // }, + // }, + // { + // Name: to.Ptr("8456cb17-cdb0-4c6a-8db8-d0ff3f886257"), + // Type: to.Ptr("Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableMongodbDatabases"), + // ID: to.Ptr("/subscriptions/2296c272-5d55-40d9-bc05-4d56dc2d7588/providers/Microsoft.DocumentDb/locations/westus/restorableDatabaseAccounts/d9b26648-2f53-4541-b3d8-3044f4f9810d/restorableMongodbDatabases/8456cb17-cdb0-4c6a-8db8-d0ff3f886257"), + // Properties: &armcosmos.RestorableMongodbDatabaseProperties{ + // Resource: &armcosmos.RestorableMongodbDatabasePropertiesResource{ + // Rid: to.Ptr("ESXNLAAAAA=="), + // EventTimestamp: to.Ptr("2020-09-02T19:53:42Z"), + // OperationType: to.Ptr(armcosmos.OperationTypeDelete), + // OwnerID: to.Ptr("Database1"), + // OwnerResourceID: to.Ptr("PD5DALigDgw="), + // }, + // }, + // }}, + // } } } diff --git a/sdk/resourcemanager/cosmos/armcosmos/restorablemongodbresources_client.go b/sdk/resourcemanager/cosmos/armcosmos/restorablemongodbresources_client.go index c7c5f5bc1740..108e60cf6cad 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/restorablemongodbresources_client.go +++ b/sdk/resourcemanager/cosmos/armcosmos/restorablemongodbresources_client.go @@ -32,9 +32,9 @@ type RestorableMongodbResourcesClient struct { } // NewRestorableMongodbResourcesClient creates a new instance of RestorableMongodbResourcesClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewRestorableMongodbResourcesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*RestorableMongodbResourcesClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -58,11 +58,12 @@ func NewRestorableMongodbResourcesClient(subscriptionID string, credential azcor // NewListPager - Return a list of database and collection combo that exist on the account at the given timestamp and location. // This helps in scenarios to validate what resources exist at given timestamp and location. // This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/…/read' permission. -// Generated from API version 2022-08-15-preview -// location - Cosmos DB region, with spaces between words and each word capitalized. -// instanceID - The instanceId GUID of a restorable database account. -// options - RestorableMongodbResourcesClientListOptions contains the optional parameters for the RestorableMongodbResourcesClient.List -// method. +// +// Generated from API version 2022-11-15 +// - location - Cosmos DB region, with spaces between words and each word capitalized. +// - instanceID - The instanceId GUID of a restorable database account. +// - options - RestorableMongodbResourcesClientListOptions contains the optional parameters for the RestorableMongodbResourcesClient.NewListPager +// method. func (client *RestorableMongodbResourcesClient) NewListPager(location string, instanceID string, options *RestorableMongodbResourcesClientListOptions) *runtime.Pager[RestorableMongodbResourcesClientListResponse] { return runtime.NewPager(runtime.PagingHandler[RestorableMongodbResourcesClientListResponse]{ More: func(page RestorableMongodbResourcesClientListResponse) bool { @@ -105,7 +106,7 @@ func (client *RestorableMongodbResourcesClient) listCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") if options != nil && options.RestoreLocation != nil { reqQP.Set("restoreLocation", *options.RestoreLocation) } diff --git a/sdk/resourcemanager/cosmos/armcosmos/restorablemongodbresources_client_example_test.go b/sdk/resourcemanager/cosmos/armcosmos/restorablemongodbresources_client_example_test.go index 6ac0a93eabe1..2dba34f8f2a8 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/restorablemongodbresources_client_example_test.go +++ b/sdk/resourcemanager/cosmos/armcosmos/restorablemongodbresources_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armcosmos_test @@ -17,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cosmos/armcosmos/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBRestorableMongodbResourceList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBRestorableMongodbResourceList.json func ExampleRestorableMongodbResourcesClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -32,13 +33,42 @@ func ExampleRestorableMongodbResourcesClient_NewListPager() { RestoreTimestampInUTC: to.Ptr("06/01/2022 4:56"), }) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.RestorableMongodbResourcesListResult = armcosmos.RestorableMongodbResourcesListResult{ + // Value: []*armcosmos.RestorableMongodbResourcesGetResult{ + // { + // Name: to.Ptr("Database1"), + // Type: to.Ptr("Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorablemongodbresources"), + // CollectionNames: []*string{ + // to.Ptr("Collection1")}, + // DatabaseName: to.Ptr("Database1"), + // ID: to.Ptr("/subscriptions/2296c272-5d55-40d9-bc05-4d56dc2d7588/providers/Microsoft.DocumentDB/locations/westus/restorableDatabaseAccounts/d9b26648-2f53-4541-b3d8-3044f4f9810d/restorablemongodbresources/Database1"), + // }, + // { + // Name: to.Ptr("Database2"), + // Type: to.Ptr("Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorablemongodbresources"), + // CollectionNames: []*string{ + // to.Ptr("Collection1"), + // to.Ptr("Collection2")}, + // DatabaseName: to.Ptr("Database2"), + // ID: to.Ptr("/subscriptions/2296c272-5d55-40d9-bc05-4d56dc2d7588/providers/Microsoft.DocumentDB/locations/westus/restorableDatabaseAccounts/d9b26648-2f53-4541-b3d8-3044f4f9810d/restorablemongodbresources/Database2"), + // }, + // { + // Name: to.Ptr("Database3"), + // Type: to.Ptr("Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorablemongodbresources"), + // CollectionNames: []*string{ + // }, + // DatabaseName: to.Ptr("Database3"), + // ID: to.Ptr("/subscriptions/2296c272-5d55-40d9-bc05-4d56dc2d7588/providers/Microsoft.DocumentDB/locations/westus/restorableDatabaseAccounts/d9b26648-2f53-4541-b3d8-3044f4f9810d/restorablemongodbresources/Database3"), + // }}, + // } } } diff --git a/sdk/resourcemanager/cosmos/armcosmos/restorablesqlcontainers_client.go b/sdk/resourcemanager/cosmos/armcosmos/restorablesqlcontainers_client.go index 1b1eae1c6188..7b5d7fdf397a 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/restorablesqlcontainers_client.go +++ b/sdk/resourcemanager/cosmos/armcosmos/restorablesqlcontainers_client.go @@ -32,9 +32,9 @@ type RestorableSQLContainersClient struct { } // NewRestorableSQLContainersClient creates a new instance of RestorableSQLContainersClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewRestorableSQLContainersClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*RestorableSQLContainersClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -58,11 +58,12 @@ func NewRestorableSQLContainersClient(subscriptionID string, credential azcore.T // NewListPager - Show the event feed of all mutations done on all the Azure Cosmos DB SQL containers under a specific database. // This helps in scenario where container was accidentally deleted. This API requires // 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/…/read' permission -// Generated from API version 2022-08-15-preview -// location - Cosmos DB region, with spaces between words and each word capitalized. -// instanceID - The instanceId GUID of a restorable database account. -// options - RestorableSQLContainersClientListOptions contains the optional parameters for the RestorableSQLContainersClient.List -// method. +// +// Generated from API version 2022-11-15 +// - location - Cosmos DB region, with spaces between words and each word capitalized. +// - instanceID - The instanceId GUID of a restorable database account. +// - options - RestorableSQLContainersClientListOptions contains the optional parameters for the RestorableSQLContainersClient.NewListPager +// method. func (client *RestorableSQLContainersClient) NewListPager(location string, instanceID string, options *RestorableSQLContainersClientListOptions) *runtime.Pager[RestorableSQLContainersClientListResponse] { return runtime.NewPager(runtime.PagingHandler[RestorableSQLContainersClientListResponse]{ More: func(page RestorableSQLContainersClientListResponse) bool { @@ -105,7 +106,7 @@ func (client *RestorableSQLContainersClient) listCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") if options != nil && options.RestorableSQLDatabaseRid != nil { reqQP.Set("restorableSqlDatabaseRid", *options.RestorableSQLDatabaseRid) } diff --git a/sdk/resourcemanager/cosmos/armcosmos/restorablesqlcontainers_client_example_test.go b/sdk/resourcemanager/cosmos/armcosmos/restorablesqlcontainers_client_example_test.go index 8dd5f573c9c4..b765578cf380 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/restorablesqlcontainers_client_example_test.go +++ b/sdk/resourcemanager/cosmos/armcosmos/restorablesqlcontainers_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armcosmos_test @@ -17,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cosmos/armcosmos/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBRestorableSqlContainerList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBRestorableSqlContainerList.json func ExampleRestorableSQLContainersClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -33,13 +34,98 @@ func ExampleRestorableSQLContainersClient_NewListPager() { EndTime: nil, }) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.RestorableSQLContainersListResult = armcosmos.RestorableSQLContainersListResult{ + // Value: []*armcosmos.RestorableSQLContainerGetResult{ + // { + // Name: to.Ptr("79609a98-3394-41f8-911f-cfab0c075c86"), + // Type: to.Ptr("Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableSqlContainers"), + // ID: to.Ptr("/subscriptions/subid/providers/Microsoft.DocumentDb/locations/westus/restorableDatabaseAccounts/98a570f2-63db-4117-91f0-366327b7b353/restorableSqlContainers/79609a98-3394-41f8-911f-cfab0c075c86"), + // Properties: &armcosmos.RestorableSQLContainerProperties{ + // Resource: &armcosmos.RestorableSQLContainerPropertiesResource{ + // Rid: to.Ptr("zAyAPQAAAA=="), + // Container: &armcosmos.RestorableSQLContainerPropertiesResourceContainer{ + // Etag: to.Ptr("\"00003e00-0000-0700-0000-5f85338a0000\""), + // Rid: to.Ptr("V18LoLrv-qA="), + // ConflictResolutionPolicy: &armcosmos.ConflictResolutionPolicy{ + // ConflictResolutionPath: to.Ptr("/_ts"), + // ConflictResolutionProcedure: to.Ptr(""), + // Mode: to.Ptr(armcosmos.ConflictResolutionModeLastWriterWins), + // }, + // ID: to.Ptr("Container1"), + // IndexingPolicy: &armcosmos.IndexingPolicy{ + // Automatic: to.Ptr(true), + // ExcludedPaths: []*armcosmos.ExcludedPath{ + // { + // Path: to.Ptr("/\"_etag\"/?"), + // }}, + // IncludedPaths: []*armcosmos.IncludedPath{ + // { + // Path: to.Ptr("/*"), + // }, + // { + // Path: to.Ptr("/\"_ts\"/?"), + // }}, + // IndexingMode: to.Ptr(armcosmos.IndexingModeConsistent), + // }, + // Self: to.Ptr("dbs/V18LoA==/colls/V18LoLrv-qA=/"), + // }, + // EventTimestamp: to.Ptr("2020-10-13T04:56:42Z"), + // OperationType: to.Ptr(armcosmos.OperationTypeCreate), + // OwnerID: to.Ptr("Container1"), + // OwnerResourceID: to.Ptr("V18LoLrv-qA="), + // }, + // }, + // }, + // { + // Name: to.Ptr("e85298a1-c631-4726-825e-a7ca092e9098"), + // Type: to.Ptr("Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableSqlContainers"), + // ID: to.Ptr("/subscriptions/subid/providers/Microsoft.DocumentDb/locations/westus/restorableDatabaseAccounts/98a570f2-63db-4117-91f0-366327b7b353/restorableSqlContainers/e85298a1-c631-4726-825e-a7ca092e9098"), + // Properties: &armcosmos.RestorableSQLContainerProperties{ + // Resource: &armcosmos.RestorableSQLContainerPropertiesResource{ + // Rid: to.Ptr("PrArcgAAAA=="), + // Container: &armcosmos.RestorableSQLContainerPropertiesResourceContainer{ + // Etag: to.Ptr("\"00004400-0000-0700-0000-5f85351f0000\""), + // Rid: to.Ptr("V18LoLrv-qA="), + // ConflictResolutionPolicy: &armcosmos.ConflictResolutionPolicy{ + // ConflictResolutionPath: to.Ptr("/_ts"), + // ConflictResolutionProcedure: to.Ptr(""), + // Mode: to.Ptr(armcosmos.ConflictResolutionModeLastWriterWins), + // }, + // DefaultTTL: to.Ptr[int32](12345), + // ID: to.Ptr("Container1"), + // IndexingPolicy: &armcosmos.IndexingPolicy{ + // Automatic: to.Ptr(true), + // ExcludedPaths: []*armcosmos.ExcludedPath{ + // { + // Path: to.Ptr("/\"_etag\"/?"), + // }}, + // IncludedPaths: []*armcosmos.IncludedPath{ + // { + // Path: to.Ptr("/*"), + // }, + // { + // Path: to.Ptr("/\"_ts\"/?"), + // }}, + // IndexingMode: to.Ptr(armcosmos.IndexingModeConsistent), + // }, + // Self: to.Ptr("dbs/V18LoA==/colls/V18LoLrv-qA=/"), + // }, + // EventTimestamp: to.Ptr("2020-10-13T05:03:27Z"), + // OperationType: to.Ptr(armcosmos.OperationTypeReplace), + // OwnerID: to.Ptr("Container1"), + // OwnerResourceID: to.Ptr("V18LoLrv-qA="), + // }, + // }, + // }}, + // } } } diff --git a/sdk/resourcemanager/cosmos/armcosmos/restorablesqldatabases_client.go b/sdk/resourcemanager/cosmos/armcosmos/restorablesqldatabases_client.go index 2f7361a5fd74..259e12f9692a 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/restorablesqldatabases_client.go +++ b/sdk/resourcemanager/cosmos/armcosmos/restorablesqldatabases_client.go @@ -32,9 +32,9 @@ type RestorableSQLDatabasesClient struct { } // NewRestorableSQLDatabasesClient creates a new instance of RestorableSQLDatabasesClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewRestorableSQLDatabasesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*RestorableSQLDatabasesClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -58,11 +58,12 @@ func NewRestorableSQLDatabasesClient(subscriptionID string, credential azcore.To // NewListPager - Show the event feed of all mutations done on all the Azure Cosmos DB SQL databases under the restorable // account. This helps in scenario where database was accidentally deleted to get the deletion // time. This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/…/read' permission -// Generated from API version 2022-08-15-preview -// location - Cosmos DB region, with spaces between words and each word capitalized. -// instanceID - The instanceId GUID of a restorable database account. -// options - RestorableSQLDatabasesClientListOptions contains the optional parameters for the RestorableSQLDatabasesClient.List -// method. +// +// Generated from API version 2022-11-15 +// - location - Cosmos DB region, with spaces between words and each word capitalized. +// - instanceID - The instanceId GUID of a restorable database account. +// - options - RestorableSQLDatabasesClientListOptions contains the optional parameters for the RestorableSQLDatabasesClient.NewListPager +// method. func (client *RestorableSQLDatabasesClient) NewListPager(location string, instanceID string, options *RestorableSQLDatabasesClientListOptions) *runtime.Pager[RestorableSQLDatabasesClientListResponse] { return runtime.NewPager(runtime.PagingHandler[RestorableSQLDatabasesClientListResponse]{ More: func(page RestorableSQLDatabasesClientListResponse) bool { @@ -105,7 +106,7 @@ func (client *RestorableSQLDatabasesClient) listCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/cosmos/armcosmos/restorablesqldatabases_client_example_test.go b/sdk/resourcemanager/cosmos/armcosmos/restorablesqldatabases_client_example_test.go index 0e777590628f..111a1b410a4c 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/restorablesqldatabases_client_example_test.go +++ b/sdk/resourcemanager/cosmos/armcosmos/restorablesqldatabases_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armcosmos_test @@ -16,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cosmos/armcosmos/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBRestorableSqlDatabaseList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBRestorableSqlDatabaseList.json func ExampleRestorableSQLDatabasesClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -29,13 +30,84 @@ func ExampleRestorableSQLDatabasesClient_NewListPager() { } pager := client.NewListPager("WestUS", "d9b26648-2f53-4541-b3d8-3044f4f9810d", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.RestorableSQLDatabasesListResult = armcosmos.RestorableSQLDatabasesListResult{ + // Value: []*armcosmos.RestorableSQLDatabaseGetResult{ + // { + // Name: to.Ptr("59c21367-b98b-4a8e-abb7-b6f46600decc"), + // Type: to.Ptr("Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableSqlDatabases"), + // ID: to.Ptr("/subscriptions/2296c272-5d55-40d9-bc05-4d56dc2d7588/providers/Microsoft.DocumentDb/locations/westus/restorableDatabaseAccounts/36f09704-6be3-4f33-aa05-17b73e504c75/restorableSqlDatabases/59c21367-b98b-4a8e-abb7-b6f46600decc"), + // Properties: &armcosmos.RestorableSQLDatabaseProperties{ + // Resource: &armcosmos.RestorableSQLDatabasePropertiesResource{ + // Rid: to.Ptr("DLB14gAAAA=="), + // Database: &armcosmos.RestorableSQLDatabasePropertiesResourceDatabase{ + // Etag: to.Ptr("\"0000c20a-0000-0700-0000-5f4ff63f0000\""), + // Rid: to.Ptr("3fu-hg=="), + // ID: to.Ptr("Database1"), + // Colls: to.Ptr("colls/"), + // Self: to.Ptr("dbs/3fu-hg==/"), + // Users: to.Ptr("users/"), + // }, + // EventTimestamp: to.Ptr("2020-09-02T19:45:03Z"), + // OperationType: to.Ptr(armcosmos.OperationTypeCreate), + // OwnerID: to.Ptr("Database1"), + // OwnerResourceID: to.Ptr("3fu-hg=="), + // }, + // }, + // }, + // { + // Name: to.Ptr("8456cb17-cdb0-4c6a-8db8-d0ff3f886257"), + // Type: to.Ptr("Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableSqlDatabases"), + // ID: to.Ptr("/subscriptions/2296c272-5d55-40d9-bc05-4d56dc2d7588/providers/Microsoft.DocumentDb/locations/westus/restorableDatabaseAccounts/d9b26648-2f53-4541-b3d8-3044f4f9810d/restorableSqlDatabases/8456cb17-cdb0-4c6a-8db8-d0ff3f886257"), + // Properties: &armcosmos.RestorableSQLDatabaseProperties{ + // Resource: &armcosmos.RestorableSQLDatabasePropertiesResource{ + // Rid: to.Ptr("ESXNLAAAAA=="), + // Database: &armcosmos.RestorableSQLDatabasePropertiesResourceDatabase{ + // Etag: to.Ptr("\"0000c20a-0000-0700-0000-5f4ff63f0000\""), + // Rid: to.Ptr("3fu-hg=="), + // Ts: to.Ptr[float32](1599075903), + // ID: to.Ptr("Database1"), + // Colls: to.Ptr("colls/"), + // Self: to.Ptr("dbs/3fu-hg==/"), + // Users: to.Ptr("users/"), + // }, + // EventTimestamp: to.Ptr("2020-09-02T19:53:42Z"), + // OperationType: to.Ptr(armcosmos.OperationTypeDelete), + // OwnerID: to.Ptr("Database1"), + // OwnerResourceID: to.Ptr("3fu-hg=="), + // }, + // }, + // }, + // { + // Name: to.Ptr("2c07991b-9c7c-4e85-be68-b18c1f2ff326"), + // Type: to.Ptr("Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableSqlDatabases"), + // ID: to.Ptr("/subscriptions/2296c272-5d55-40d9-bc05-4d56dc2d7588/providers/Microsoft.DocumentDb/locations/westus/restorableDatabaseAccounts/d9b26648-2f53-4541-b3d8-3044f4f9810d/restorableSqlDatabases/2c07991b-9c7c-4e85-be68-b18c1f2ff326"), + // Properties: &armcosmos.RestorableSQLDatabaseProperties{ + // Resource: &armcosmos.RestorableSQLDatabasePropertiesResource{ + // Rid: to.Ptr("aXFqUQAAAA=="), + // Database: &armcosmos.RestorableSQLDatabasePropertiesResourceDatabase{ + // Etag: to.Ptr("\"0000ca0a-0000-0700-0000-5f4ff82b0000\""), + // Rid: to.Ptr("0SziSg=="), + // ID: to.Ptr("Database2"), + // Colls: to.Ptr("colls/"), + // Self: to.Ptr("dbs/0SziSg==/"), + // Users: to.Ptr("users/"), + // }, + // EventTimestamp: to.Ptr("2020-09-02T19:53:15Z"), + // OperationType: to.Ptr(armcosmos.OperationTypeCreate), + // OwnerID: to.Ptr("Database2"), + // OwnerResourceID: to.Ptr("0SziSg=="), + // }, + // }, + // }}, + // } } } diff --git a/sdk/resourcemanager/cosmos/armcosmos/restorablesqlresources_client.go b/sdk/resourcemanager/cosmos/armcosmos/restorablesqlresources_client.go index 733e20f24617..5d4fabe337c5 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/restorablesqlresources_client.go +++ b/sdk/resourcemanager/cosmos/armcosmos/restorablesqlresources_client.go @@ -32,9 +32,9 @@ type RestorableSQLResourcesClient struct { } // NewRestorableSQLResourcesClient creates a new instance of RestorableSQLResourcesClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewRestorableSQLResourcesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*RestorableSQLResourcesClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -58,11 +58,12 @@ func NewRestorableSQLResourcesClient(subscriptionID string, credential azcore.To // NewListPager - Return a list of database and container combo that exist on the account at the given timestamp and location. // This helps in scenarios to validate what resources exist at given timestamp and location. // This API requires 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/…/read' permission. -// Generated from API version 2022-08-15-preview -// location - Cosmos DB region, with spaces between words and each word capitalized. -// instanceID - The instanceId GUID of a restorable database account. -// options - RestorableSQLResourcesClientListOptions contains the optional parameters for the RestorableSQLResourcesClient.List -// method. +// +// Generated from API version 2022-11-15 +// - location - Cosmos DB region, with spaces between words and each word capitalized. +// - instanceID - The instanceId GUID of a restorable database account. +// - options - RestorableSQLResourcesClientListOptions contains the optional parameters for the RestorableSQLResourcesClient.NewListPager +// method. func (client *RestorableSQLResourcesClient) NewListPager(location string, instanceID string, options *RestorableSQLResourcesClientListOptions) *runtime.Pager[RestorableSQLResourcesClientListResponse] { return runtime.NewPager(runtime.PagingHandler[RestorableSQLResourcesClientListResponse]{ More: func(page RestorableSQLResourcesClientListResponse) bool { @@ -105,7 +106,7 @@ func (client *RestorableSQLResourcesClient) listCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") if options != nil && options.RestoreLocation != nil { reqQP.Set("restoreLocation", *options.RestoreLocation) } diff --git a/sdk/resourcemanager/cosmos/armcosmos/restorablesqlresources_client_example_test.go b/sdk/resourcemanager/cosmos/armcosmos/restorablesqlresources_client_example_test.go index ec02c223ee5a..cec69ee08cce 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/restorablesqlresources_client_example_test.go +++ b/sdk/resourcemanager/cosmos/armcosmos/restorablesqlresources_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armcosmos_test @@ -17,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cosmos/armcosmos/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBRestorableSqlResourceList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBRestorableSqlResourceList.json func ExampleRestorableSQLResourcesClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -32,13 +33,42 @@ func ExampleRestorableSQLResourcesClient_NewListPager() { RestoreTimestampInUTC: to.Ptr("06/01/2022 4:56"), }) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.RestorableSQLResourcesListResult = armcosmos.RestorableSQLResourcesListResult{ + // Value: []*armcosmos.RestorableSQLResourcesGetResult{ + // { + // Name: to.Ptr("Database1"), + // Type: to.Ptr("Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorablesqlresources"), + // CollectionNames: []*string{ + // to.Ptr("Container1")}, + // DatabaseName: to.Ptr("Database1"), + // ID: to.Ptr("/subscriptions/2296c272-5d55-40d9-bc05-4d56dc2d7588/providers/Microsoft.DocumentDB/locations/westus/restorableDatabaseAccounts/d9b26648-2f53-4541-b3d8-3044f4f9810d/restorablesqlresources/Database1"), + // }, + // { + // Name: to.Ptr("Database2"), + // Type: to.Ptr("Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorablesqlresources"), + // CollectionNames: []*string{ + // to.Ptr("Container1"), + // to.Ptr("Container2")}, + // DatabaseName: to.Ptr("Database2"), + // ID: to.Ptr("/subscriptions/2296c272-5d55-40d9-bc05-4d56dc2d7588/providers/Microsoft.DocumentDB/locations/westus/restorableDatabaseAccounts/d9b26648-2f53-4541-b3d8-3044f4f9810d/restorablesqlresources/Database2"), + // }, + // { + // Name: to.Ptr("Database3"), + // Type: to.Ptr("Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorablesqlresources"), + // CollectionNames: []*string{ + // }, + // DatabaseName: to.Ptr("Database3"), + // ID: to.Ptr("/subscriptions/2296c272-5d55-40d9-bc05-4d56dc2d7588/providers/Microsoft.DocumentDB/locations/westus/restorableDatabaseAccounts/d9b26648-2f53-4541-b3d8-3044f4f9810d/restorablesqlresources/Database3"), + // }}, + // } } } diff --git a/sdk/resourcemanager/cosmos/armcosmos/restorabletableresources_client.go b/sdk/resourcemanager/cosmos/armcosmos/restorabletableresources_client.go index 590aa5ff27e6..22df1cefa42d 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/restorabletableresources_client.go +++ b/sdk/resourcemanager/cosmos/armcosmos/restorabletableresources_client.go @@ -32,9 +32,9 @@ type RestorableTableResourcesClient struct { } // NewRestorableTableResourcesClient creates a new instance of RestorableTableResourcesClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewRestorableTableResourcesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*RestorableTableResourcesClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -58,11 +58,12 @@ func NewRestorableTableResourcesClient(subscriptionID string, credential azcore. // NewListPager - Return a list of tables that exist on the account at the given timestamp and location. This helps in scenarios // to validate what resources exist at given timestamp and location. This API requires // 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/…/read' permission. -// Generated from API version 2022-08-15-preview -// location - Cosmos DB region, with spaces between words and each word capitalized. -// instanceID - The instanceId GUID of a restorable database account. -// options - RestorableTableResourcesClientListOptions contains the optional parameters for the RestorableTableResourcesClient.List -// method. +// +// Generated from API version 2022-11-15 +// - location - Cosmos DB region, with spaces between words and each word capitalized. +// - instanceID - The instanceId GUID of a restorable database account. +// - options - RestorableTableResourcesClientListOptions contains the optional parameters for the RestorableTableResourcesClient.NewListPager +// method. func (client *RestorableTableResourcesClient) NewListPager(location string, instanceID string, options *RestorableTableResourcesClientListOptions) *runtime.Pager[RestorableTableResourcesClientListResponse] { return runtime.NewPager(runtime.PagingHandler[RestorableTableResourcesClientListResponse]{ More: func(page RestorableTableResourcesClientListResponse) bool { @@ -105,7 +106,7 @@ func (client *RestorableTableResourcesClient) listCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") if options != nil && options.RestoreLocation != nil { reqQP.Set("restoreLocation", *options.RestoreLocation) } diff --git a/sdk/resourcemanager/cosmos/armcosmos/restorabletableresources_client_example_test.go b/sdk/resourcemanager/cosmos/armcosmos/restorabletableresources_client_example_test.go index be0c51db8649..6629f9924c60 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/restorabletableresources_client_example_test.go +++ b/sdk/resourcemanager/cosmos/armcosmos/restorabletableresources_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armcosmos_test @@ -17,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cosmos/armcosmos/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBRestorableTableResourceList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBRestorableTableResourceList.json func ExampleRestorableTableResourcesClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -32,13 +33,27 @@ func ExampleRestorableTableResourcesClient_NewListPager() { RestoreTimestampInUTC: to.Ptr("06/01/2022 4:56"), }) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.RestorableTableResourcesListResult = armcosmos.RestorableTableResourcesListResult{ + // Value: []*armcosmos.RestorableTableResourcesGetResult{ + // { + // Name: to.Ptr("table1"), + // Type: to.Ptr("Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorablesqlresources"), + // ID: to.Ptr("/subscriptions/2296c272-5d55-40d9-bc05-4d56dc2d7588/providers/Microsoft.DocumentDB/locations/westus/restorableDatabaseAccounts/d9b26648-2f53-4541-b3d8-3044f4f9810d/restorabletableresources/table1"), + // }, + // { + // Name: to.Ptr("table2"), + // Type: to.Ptr("Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorablesqlresources"), + // ID: to.Ptr("/subscriptions/2296c272-5d55-40d9-bc05-4d56dc2d7588/providers/Microsoft.DocumentDB/locations/westus/restorableDatabaseAccounts/d9b26648-2f53-4541-b3d8-3044f4f9810d/restorabletableresources/table2"), + // }}, + // } } } diff --git a/sdk/resourcemanager/cosmos/armcosmos/restorabletables_client.go b/sdk/resourcemanager/cosmos/armcosmos/restorabletables_client.go index 3a865f783b2e..f3f69d418d04 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/restorabletables_client.go +++ b/sdk/resourcemanager/cosmos/armcosmos/restorabletables_client.go @@ -32,9 +32,9 @@ type RestorableTablesClient struct { } // NewRestorableTablesClient creates a new instance of RestorableTablesClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewRestorableTablesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*RestorableTablesClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -58,10 +58,12 @@ func NewRestorableTablesClient(subscriptionID string, credential azcore.TokenCre // NewListPager - Show the event feed of all mutations done on all the Azure Cosmos DB Tables. This helps in scenario where // table was accidentally deleted. This API requires // 'Microsoft.DocumentDB/locations/restorableDatabaseAccounts/…/read' permission -// Generated from API version 2022-08-15-preview -// location - Cosmos DB region, with spaces between words and each word capitalized. -// instanceID - The instanceId GUID of a restorable database account. -// options - RestorableTablesClientListOptions contains the optional parameters for the RestorableTablesClient.List method. +// +// Generated from API version 2022-11-15 +// - location - Cosmos DB region, with spaces between words and each word capitalized. +// - instanceID - The instanceId GUID of a restorable database account. +// - options - RestorableTablesClientListOptions contains the optional parameters for the RestorableTablesClient.NewListPager +// method. func (client *RestorableTablesClient) NewListPager(location string, instanceID string, options *RestorableTablesClientListOptions) *runtime.Pager[RestorableTablesClientListResponse] { return runtime.NewPager(runtime.PagingHandler[RestorableTablesClientListResponse]{ More: func(page RestorableTablesClientListResponse) bool { @@ -104,7 +106,7 @@ func (client *RestorableTablesClient) listCreateRequest(ctx context.Context, loc return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") if options != nil && options.StartTime != nil { reqQP.Set("startTime", *options.StartTime) } diff --git a/sdk/resourcemanager/cosmos/armcosmos/restorabletables_client_example_test.go b/sdk/resourcemanager/cosmos/armcosmos/restorabletables_client_example_test.go index d1ab15d8bed5..4051f548edd8 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/restorabletables_client_example_test.go +++ b/sdk/resourcemanager/cosmos/armcosmos/restorabletables_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armcosmos_test @@ -16,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cosmos/armcosmos/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBRestorableTableList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBRestorableTableList.json func ExampleRestorableTablesClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -31,13 +32,31 @@ func ExampleRestorableTablesClient_NewListPager() { EndTime: nil, }) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.RestorableTablesListResult = armcosmos.RestorableTablesListResult{ + // Value: []*armcosmos.RestorableTableGetResult{ + // { + // Name: to.Ptr("79609a98-3394-41f8-911f-cfab0c075c86"), + // Type: to.Ptr("Microsoft.DocumentDB/locations/restorableDatabaseAccounts/restorableTables"), + // ID: to.Ptr("/subscriptions/subid/providers/Microsoft.DocumentDb/locations/westus/restorableDatabaseAccounts/98a570f2-63db-4117-91f0-366327b7b353/restorableTables/79609a98-3394-41f8-911f-cfab0c075c86"), + // Properties: &armcosmos.RestorableTableProperties{ + // Resource: &armcosmos.RestorableTablePropertiesResource{ + // Rid: to.Ptr("zAyAPQAAAA=="), + // EventTimestamp: to.Ptr("2020-10-13T04:56:42Z"), + // OperationType: to.Ptr(armcosmos.OperationTypeCreate), + // OwnerID: to.Ptr("Table1"), + // OwnerResourceID: to.Ptr("V18LoLrv-qA="), + // }, + // }, + // }}, + // } } } diff --git a/sdk/resourcemanager/cosmos/armcosmos/service_client.go b/sdk/resourcemanager/cosmos/armcosmos/service_client.go index 88892859519f..1844f55ba77a 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/service_client.go +++ b/sdk/resourcemanager/cosmos/armcosmos/service_client.go @@ -32,9 +32,9 @@ type ServiceClient struct { } // NewServiceClient creates a new instance of ServiceClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewServiceClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ServiceClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,12 +57,13 @@ func NewServiceClient(subscriptionID string, credential azcore.TokenCredential, // BeginCreate - Creates a service. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// serviceName - Cosmos DB service name. -// createUpdateParameters - The Service resource parameters. -// options - ServiceClientBeginCreateOptions contains the optional parameters for the ServiceClient.BeginCreate method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - serviceName - Cosmos DB service name. +// - createUpdateParameters - The Service resource parameters. +// - options - ServiceClientBeginCreateOptions contains the optional parameters for the ServiceClient.BeginCreate method. func (client *ServiceClient) BeginCreate(ctx context.Context, resourceGroupName string, accountName string, serviceName string, createUpdateParameters ServiceResourceCreateUpdateParameters, options *ServiceClientBeginCreateOptions) (*runtime.Poller[ServiceClientCreateResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.create(ctx, resourceGroupName, accountName, serviceName, createUpdateParameters, options) @@ -77,7 +78,8 @@ func (client *ServiceClient) BeginCreate(ctx context.Context, resourceGroupName // Create - Creates a service. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *ServiceClient) create(ctx context.Context, resourceGroupName string, accountName string, serviceName string, createUpdateParameters ServiceResourceCreateUpdateParameters, options *ServiceClientBeginCreateOptions) (*http.Response, error) { req, err := client.createCreateRequest(ctx, resourceGroupName, accountName, serviceName, createUpdateParameters, options) if err != nil { @@ -117,7 +119,7 @@ func (client *ServiceClient) createCreateRequest(ctx context.Context, resourceGr return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, createUpdateParameters) @@ -125,11 +127,12 @@ func (client *ServiceClient) createCreateRequest(ctx context.Context, resourceGr // BeginDelete - Deletes service with the given serviceName. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// serviceName - Cosmos DB service name. -// options - ServiceClientBeginDeleteOptions contains the optional parameters for the ServiceClient.BeginDelete method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - serviceName - Cosmos DB service name. +// - options - ServiceClientBeginDeleteOptions contains the optional parameters for the ServiceClient.BeginDelete method. func (client *ServiceClient) BeginDelete(ctx context.Context, resourceGroupName string, accountName string, serviceName string, options *ServiceClientBeginDeleteOptions) (*runtime.Poller[ServiceClientDeleteResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteOperation(ctx, resourceGroupName, accountName, serviceName, options) @@ -144,7 +147,8 @@ func (client *ServiceClient) BeginDelete(ctx context.Context, resourceGroupName // Delete - Deletes service with the given serviceName. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *ServiceClient) deleteOperation(ctx context.Context, resourceGroupName string, accountName string, serviceName string, options *ServiceClientBeginDeleteOptions) (*http.Response, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, accountName, serviceName, options) if err != nil { @@ -184,7 +188,7 @@ func (client *ServiceClient) deleteCreateRequest(ctx context.Context, resourceGr return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -192,11 +196,12 @@ func (client *ServiceClient) deleteCreateRequest(ctx context.Context, resourceGr // Get - Gets the status of service. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// serviceName - Cosmos DB service name. -// options - ServiceClientGetOptions contains the optional parameters for the ServiceClient.Get method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - serviceName - Cosmos DB service name. +// - options - ServiceClientGetOptions contains the optional parameters for the ServiceClient.Get method. func (client *ServiceClient) Get(ctx context.Context, resourceGroupName string, accountName string, serviceName string, options *ServiceClientGetOptions) (ServiceClientGetResponse, error) { req, err := client.getCreateRequest(ctx, resourceGroupName, accountName, serviceName, options) if err != nil { @@ -236,7 +241,7 @@ func (client *ServiceClient) getCreateRequest(ctx context.Context, resourceGroup return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -252,10 +257,11 @@ func (client *ServiceClient) getHandleResponse(resp *http.Response) (ServiceClie } // NewListPager - Gets the status of service. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// options - ServiceClientListOptions contains the optional parameters for the ServiceClient.List method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - options - ServiceClientListOptions contains the optional parameters for the ServiceClient.NewListPager method. func (client *ServiceClient) NewListPager(resourceGroupName string, accountName string, options *ServiceClientListOptions) *runtime.Pager[ServiceClientListResponse] { return runtime.NewPager(runtime.PagingHandler[ServiceClientListResponse]{ More: func(page ServiceClientListResponse) bool { @@ -298,7 +304,7 @@ func (client *ServiceClient) listCreateRequest(ctx context.Context, resourceGrou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/cosmos/armcosmos/service_client_example_test.go b/sdk/resourcemanager/cosmos/armcosmos/service_client_example_test.go index 7e45b1a963bc..eed77a2de4a9 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/service_client_example_test.go +++ b/sdk/resourcemanager/cosmos/armcosmos/service_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armcosmos_test @@ -17,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cosmos/armcosmos/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBServicesList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBServicesList.json func ExampleServiceClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -30,18 +31,42 @@ func ExampleServiceClient_NewListPager() { } pager := client.NewListPager("rg1", "ddb1", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.ServiceResourceListResult = armcosmos.ServiceResourceListResult{ + // Value: []*armcosmos.ServiceResource{ + // { + // Name: to.Ptr("sqlDedicatedGateway"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/services"), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/services/sqlDedicatedGateway"), + // Properties: &armcosmos.SQLDedicatedGatewayServiceResourceProperties{ + // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-01-25T12:56:05.4622517Z"); return t}()), + // InstanceCount: to.Ptr[int32](1), + // InstanceSize: to.Ptr(armcosmos.ServiceSizeCosmosD4S), + // ServiceType: to.Ptr(armcosmos.ServiceTypeSQLDedicatedGateway), + // Status: to.Ptr(armcosmos.ServiceStatusRunning), + // Locations: []*armcosmos.SQLDedicatedGatewayRegionalServiceResource{ + // { + // Name: to.Ptr("sqlDedicatedGateway-westus2"), + // Location: to.Ptr("West US 2"), + // Status: to.Ptr(armcosmos.ServiceStatusRunning), + // SQLDedicatedGatewayEndpoint: to.Ptr("https://sqlDedicatedGateway-westus.sqlx.cosmos.windows-int.net/"), + // }}, + // SQLDedicatedGatewayEndpoint: to.Ptr("https://sqlDedicatedGateway.sqlx.cosmos.windows-int.net/"), + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBDataTransferServiceCreate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBDataTransferServiceCreate.json func ExampleServiceClient_BeginCreate_dataTransferServiceCreate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -66,11 +91,30 @@ func ExampleServiceClient_BeginCreate_dataTransferServiceCreate() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.ServiceResource = armcosmos.ServiceResource{ + // Name: to.Ptr("DataTransfer"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/services"), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/services/DataTransfer"), + // Properties: &armcosmos.DataTransferServiceResourceProperties{ + // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-01-25T12:56:05.4622517Z"); return t}()), + // InstanceCount: to.Ptr[int32](1), + // InstanceSize: to.Ptr(armcosmos.ServiceSizeCosmosD4S), + // ServiceType: to.Ptr(armcosmos.ServiceTypeDataTransfer), + // Status: to.Ptr(armcosmos.ServiceStatusRunning), + // Locations: []*armcosmos.DataTransferRegionalServiceResource{ + // { + // Name: to.Ptr("DataTransfer-westus2"), + // Location: to.Ptr("West US 2"), + // Status: to.Ptr(armcosmos.ServiceStatusRunning), + // }}, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBGraphAPIComputeServiceCreate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBGraphAPIComputeServiceCreate.json func ExampleServiceClient_BeginCreate_graphApiComputeServiceCreate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -95,11 +139,32 @@ func ExampleServiceClient_BeginCreate_graphApiComputeServiceCreate() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.ServiceResource = armcosmos.ServiceResource{ + // Name: to.Ptr("GraphAPICompute"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/services"), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/services/GraphAPICompute"), + // Properties: &armcosmos.GraphAPIComputeServiceResourceProperties{ + // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-01-25T12:56:05.4622517Z"); return t}()), + // InstanceCount: to.Ptr[int32](1), + // InstanceSize: to.Ptr(armcosmos.ServiceSizeCosmosD4S), + // ServiceType: to.Ptr(armcosmos.ServiceTypeGraphAPICompute), + // Status: to.Ptr(armcosmos.ServiceStatusRunning), + // GraphAPIComputeEndpoint: to.Ptr("https://graphAPICompute.gremlin.cosmos.windows-int.net/"), + // Locations: []*armcosmos.GraphAPIComputeRegionalServiceResource{ + // { + // Name: to.Ptr("GraphAPICompute-westus2"), + // Location: to.Ptr("West US 2"), + // Status: to.Ptr(armcosmos.ServiceStatusRunning), + // GraphAPIComputeEndpoint: to.Ptr("https://graphAPICompute-westus.gremlin.cosmos.windows-int.net/"), + // }}, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBMaterializedViewsBuilderServiceCreate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBMaterializedViewsBuilderServiceCreate.json func ExampleServiceClient_BeginCreate_materializedViewsBuilderServiceCreate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -124,11 +189,30 @@ func ExampleServiceClient_BeginCreate_materializedViewsBuilderServiceCreate() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.ServiceResource = armcosmos.ServiceResource{ + // Name: to.Ptr("MaterializedViewsBuilder"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/services"), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/services/MaterializedViewsBuilder"), + // Properties: &armcosmos.MaterializedViewsBuilderServiceResourceProperties{ + // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-01-25T12:56:05.4622517Z"); return t}()), + // InstanceCount: to.Ptr[int32](1), + // InstanceSize: to.Ptr(armcosmos.ServiceSizeCosmosD4S), + // ServiceType: to.Ptr(armcosmos.ServiceTypeMaterializedViewsBuilder), + // Status: to.Ptr(armcosmos.ServiceStatusRunning), + // Locations: []*armcosmos.MaterializedViewsBuilderRegionalServiceResource{ + // { + // Name: to.Ptr("MaterializedViewsBuilder-westus2"), + // Location: to.Ptr("West US 2"), + // Status: to.Ptr(armcosmos.ServiceStatusRunning), + // }}, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBSqlDedicatedGatewayServiceCreate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBSqlDedicatedGatewayServiceCreate.json func ExampleServiceClient_BeginCreate_sqlDedicatedGatewayServiceCreate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -153,11 +237,32 @@ func ExampleServiceClient_BeginCreate_sqlDedicatedGatewayServiceCreate() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.ServiceResource = armcosmos.ServiceResource{ + // Name: to.Ptr("SqlDedicatedGateway"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/services"), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/services/SqlDedicatedGateway"), + // Properties: &armcosmos.SQLDedicatedGatewayServiceResourceProperties{ + // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-01-25T12:56:05.4622517Z"); return t}()), + // InstanceCount: to.Ptr[int32](1), + // InstanceSize: to.Ptr(armcosmos.ServiceSizeCosmosD4S), + // ServiceType: to.Ptr(armcosmos.ServiceTypeSQLDedicatedGateway), + // Status: to.Ptr(armcosmos.ServiceStatusRunning), + // Locations: []*armcosmos.SQLDedicatedGatewayRegionalServiceResource{ + // { + // Name: to.Ptr("SqlDedicatedGateway-westus2"), + // Location: to.Ptr("West US 2"), + // Status: to.Ptr(armcosmos.ServiceStatusRunning), + // SQLDedicatedGatewayEndpoint: to.Ptr("https://sqlDedicatedGateway-westus.sqlx.cosmos.windows-int.net/"), + // }}, + // SQLDedicatedGatewayEndpoint: to.Ptr("https://sqlDedicatedGateway.sqlx.cosmos.windows-int.net/"), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBDataTransferServiceGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBDataTransferServiceGet.json func ExampleServiceClient_Get_dataTransferServiceGet() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -172,11 +277,30 @@ func ExampleServiceClient_Get_dataTransferServiceGet() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.ServiceResource = armcosmos.ServiceResource{ + // Name: to.Ptr("DataTransfer"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/services"), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/services/DataTransfer"), + // Properties: &armcosmos.DataTransferServiceResourceProperties{ + // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-01-25T12:56:05.4622517Z"); return t}()), + // InstanceCount: to.Ptr[int32](1), + // InstanceSize: to.Ptr(armcosmos.ServiceSizeCosmosD4S), + // ServiceType: to.Ptr(armcosmos.ServiceTypeDataTransfer), + // Status: to.Ptr(armcosmos.ServiceStatusRunning), + // Locations: []*armcosmos.DataTransferRegionalServiceResource{ + // { + // Name: to.Ptr("DataTransfer-westus2"), + // Location: to.Ptr("West US 2"), + // Status: to.Ptr(armcosmos.ServiceStatusRunning), + // }}, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBGraphAPIComputeServiceGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBGraphAPIComputeServiceGet.json func ExampleServiceClient_Get_graphApiComputeServiceGet() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -191,11 +315,32 @@ func ExampleServiceClient_Get_graphApiComputeServiceGet() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.ServiceResource = armcosmos.ServiceResource{ + // Name: to.Ptr("GraphAPICompute"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/services"), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/services/GraphAPICompute"), + // Properties: &armcosmos.GraphAPIComputeServiceResourceProperties{ + // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-01-25T12:56:05.4622517Z"); return t}()), + // InstanceCount: to.Ptr[int32](1), + // InstanceSize: to.Ptr(armcosmos.ServiceSizeCosmosD4S), + // ServiceType: to.Ptr(armcosmos.ServiceTypeGraphAPICompute), + // Status: to.Ptr(armcosmos.ServiceStatusRunning), + // GraphAPIComputeEndpoint: to.Ptr("https://graphAPICompute.gremlin.cosmos.windows-int.net/"), + // Locations: []*armcosmos.GraphAPIComputeRegionalServiceResource{ + // { + // Name: to.Ptr("GraphAPICompute-westus2"), + // Location: to.Ptr("West US 2"), + // Status: to.Ptr(armcosmos.ServiceStatusRunning), + // GraphAPIComputeEndpoint: to.Ptr("https://graphAPICompute-westus.gremlin.cosmos.windows-int.net/"), + // }}, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBMaterializedViewsBuilderServiceGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBMaterializedViewsBuilderServiceGet.json func ExampleServiceClient_Get_materializedViewsBuilderServiceGet() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -210,11 +355,30 @@ func ExampleServiceClient_Get_materializedViewsBuilderServiceGet() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.ServiceResource = armcosmos.ServiceResource{ + // Name: to.Ptr("MaterializedViewsBuilder"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/services"), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/services/MaterializedViewsBuilder"), + // Properties: &armcosmos.MaterializedViewsBuilderServiceResourceProperties{ + // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-01-25T12:56:05.4622517Z"); return t}()), + // InstanceCount: to.Ptr[int32](1), + // InstanceSize: to.Ptr(armcosmos.ServiceSizeCosmosD4S), + // ServiceType: to.Ptr(armcosmos.ServiceTypeMaterializedViewsBuilder), + // Status: to.Ptr(armcosmos.ServiceStatusRunning), + // Locations: []*armcosmos.MaterializedViewsBuilderRegionalServiceResource{ + // { + // Name: to.Ptr("MaterializedViewsBuilder-westus2"), + // Location: to.Ptr("West US 2"), + // Status: to.Ptr(armcosmos.ServiceStatusRunning), + // }}, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBSqlDedicatedGatewayServiceGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBSqlDedicatedGatewayServiceGet.json func ExampleServiceClient_Get_sqlDedicatedGatewayServiceGet() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -229,11 +393,32 @@ func ExampleServiceClient_Get_sqlDedicatedGatewayServiceGet() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.ServiceResource = armcosmos.ServiceResource{ + // Name: to.Ptr("SqlDedicatedGateway"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/services"), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/services/SqlDedicatedGateway"), + // Properties: &armcosmos.SQLDedicatedGatewayServiceResourceProperties{ + // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-01-25T12:56:05.4622517Z"); return t}()), + // InstanceCount: to.Ptr[int32](1), + // InstanceSize: to.Ptr(armcosmos.ServiceSizeCosmosD4S), + // ServiceType: to.Ptr(armcosmos.ServiceTypeSQLDedicatedGateway), + // Status: to.Ptr(armcosmos.ServiceStatusRunning), + // Locations: []*armcosmos.SQLDedicatedGatewayRegionalServiceResource{ + // { + // Name: to.Ptr("SqlDedicatedGateway-westus2"), + // Location: to.Ptr("West US 2"), + // Status: to.Ptr(armcosmos.ServiceStatusRunning), + // SQLDedicatedGatewayEndpoint: to.Ptr("https://sqlDedicatedGateway-westus.sqlx.cosmos.windows-int.net/"), + // }}, + // SQLDedicatedGatewayEndpoint: to.Ptr("https://sqlDedicatedGateway.sqlx.cosmos.windows-int.net/"), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBDataTransferServiceDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBDataTransferServiceDelete.json func ExampleServiceClient_BeginDelete_dataTransferServiceDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -254,7 +439,7 @@ func ExampleServiceClient_BeginDelete_dataTransferServiceDelete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBGraphAPIComputeServiceDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBGraphAPIComputeServiceDelete.json func ExampleServiceClient_BeginDelete_graphApiComputeServiceDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -275,7 +460,7 @@ func ExampleServiceClient_BeginDelete_graphApiComputeServiceDelete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBMaterializedViewsBuilderServiceDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBMaterializedViewsBuilderServiceDelete.json func ExampleServiceClient_BeginDelete_materializedViewsBuilderServiceDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -296,7 +481,7 @@ func ExampleServiceClient_BeginDelete_materializedViewsBuilderServiceDelete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBSqlDedicatedGatewayServiceDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBSqlDedicatedGatewayServiceDelete.json func ExampleServiceClient_BeginDelete_sqlDedicatedGatewayServiceDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/cosmos/armcosmos/sqlresources_client.go b/sdk/resourcemanager/cosmos/armcosmos/sqlresources_client.go index 6a26705e4cc3..b2793a783356 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/sqlresources_client.go +++ b/sdk/resourcemanager/cosmos/armcosmos/sqlresources_client.go @@ -32,9 +32,9 @@ type SQLResourcesClient struct { } // NewSQLResourcesClient creates a new instance of SQLResourcesClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewSQLResourcesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*SQLResourcesClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -58,14 +58,15 @@ func NewSQLResourcesClient(subscriptionID string, credential azcore.TokenCredent // BeginCreateUpdateClientEncryptionKey - Create or update a ClientEncryptionKey. This API is meant to be invoked via tools // such as the Azure Powershell (instead of directly). // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseName - Cosmos DB database name. -// clientEncryptionKeyName - Cosmos DB ClientEncryptionKey name. -// createUpdateClientEncryptionKeyParameters - The parameters to provide for the client encryption key. -// options - SQLResourcesClientBeginCreateUpdateClientEncryptionKeyOptions contains the optional parameters for the SQLResourcesClient.BeginCreateUpdateClientEncryptionKey -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - databaseName - Cosmos DB database name. +// - clientEncryptionKeyName - Cosmos DB ClientEncryptionKey name. +// - createUpdateClientEncryptionKeyParameters - The parameters to provide for the client encryption key. +// - options - SQLResourcesClientBeginCreateUpdateClientEncryptionKeyOptions contains the optional parameters for the SQLResourcesClient.BeginCreateUpdateClientEncryptionKey +// method. func (client *SQLResourcesClient) BeginCreateUpdateClientEncryptionKey(ctx context.Context, resourceGroupName string, accountName string, databaseName string, clientEncryptionKeyName string, createUpdateClientEncryptionKeyParameters ClientEncryptionKeyCreateUpdateParameters, options *SQLResourcesClientBeginCreateUpdateClientEncryptionKeyOptions) (*runtime.Poller[SQLResourcesClientCreateUpdateClientEncryptionKeyResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createUpdateClientEncryptionKey(ctx, resourceGroupName, accountName, databaseName, clientEncryptionKeyName, createUpdateClientEncryptionKeyParameters, options) @@ -81,7 +82,8 @@ func (client *SQLResourcesClient) BeginCreateUpdateClientEncryptionKey(ctx conte // CreateUpdateClientEncryptionKey - Create or update a ClientEncryptionKey. This API is meant to be invoked via tools such // as the Azure Powershell (instead of directly). // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *SQLResourcesClient) createUpdateClientEncryptionKey(ctx context.Context, resourceGroupName string, accountName string, databaseName string, clientEncryptionKeyName string, createUpdateClientEncryptionKeyParameters ClientEncryptionKeyCreateUpdateParameters, options *SQLResourcesClientBeginCreateUpdateClientEncryptionKeyOptions) (*http.Response, error) { req, err := client.createUpdateClientEncryptionKeyCreateRequest(ctx, resourceGroupName, accountName, databaseName, clientEncryptionKeyName, createUpdateClientEncryptionKeyParameters, options) if err != nil { @@ -125,7 +127,7 @@ func (client *SQLResourcesClient) createUpdateClientEncryptionKeyCreateRequest(c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, createUpdateClientEncryptionKeyParameters) @@ -133,14 +135,15 @@ func (client *SQLResourcesClient) createUpdateClientEncryptionKeyCreateRequest(c // BeginCreateUpdateSQLContainer - Create or update an Azure Cosmos DB SQL container // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseName - Cosmos DB database name. -// containerName - Cosmos DB container name. -// createUpdateSQLContainerParameters - The parameters to provide for the current SQL container. -// options - SQLResourcesClientBeginCreateUpdateSQLContainerOptions contains the optional parameters for the SQLResourcesClient.BeginCreateUpdateSQLContainer -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - databaseName - Cosmos DB database name. +// - containerName - Cosmos DB container name. +// - createUpdateSQLContainerParameters - The parameters to provide for the current SQL container. +// - options - SQLResourcesClientBeginCreateUpdateSQLContainerOptions contains the optional parameters for the SQLResourcesClient.BeginCreateUpdateSQLContainer +// method. func (client *SQLResourcesClient) BeginCreateUpdateSQLContainer(ctx context.Context, resourceGroupName string, accountName string, databaseName string, containerName string, createUpdateSQLContainerParameters SQLContainerCreateUpdateParameters, options *SQLResourcesClientBeginCreateUpdateSQLContainerOptions) (*runtime.Poller[SQLResourcesClientCreateUpdateSQLContainerResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createUpdateSQLContainer(ctx, resourceGroupName, accountName, databaseName, containerName, createUpdateSQLContainerParameters, options) @@ -155,7 +158,8 @@ func (client *SQLResourcesClient) BeginCreateUpdateSQLContainer(ctx context.Cont // CreateUpdateSQLContainer - Create or update an Azure Cosmos DB SQL container // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *SQLResourcesClient) createUpdateSQLContainer(ctx context.Context, resourceGroupName string, accountName string, databaseName string, containerName string, createUpdateSQLContainerParameters SQLContainerCreateUpdateParameters, options *SQLResourcesClientBeginCreateUpdateSQLContainerOptions) (*http.Response, error) { req, err := client.createUpdateSQLContainerCreateRequest(ctx, resourceGroupName, accountName, databaseName, containerName, createUpdateSQLContainerParameters, options) if err != nil { @@ -199,7 +203,7 @@ func (client *SQLResourcesClient) createUpdateSQLContainerCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, createUpdateSQLContainerParameters) @@ -207,13 +211,14 @@ func (client *SQLResourcesClient) createUpdateSQLContainerCreateRequest(ctx cont // BeginCreateUpdateSQLDatabase - Create or update an Azure Cosmos DB SQL database // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseName - Cosmos DB database name. -// createUpdateSQLDatabaseParameters - The parameters to provide for the current SQL database. -// options - SQLResourcesClientBeginCreateUpdateSQLDatabaseOptions contains the optional parameters for the SQLResourcesClient.BeginCreateUpdateSQLDatabase -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - databaseName - Cosmos DB database name. +// - createUpdateSQLDatabaseParameters - The parameters to provide for the current SQL database. +// - options - SQLResourcesClientBeginCreateUpdateSQLDatabaseOptions contains the optional parameters for the SQLResourcesClient.BeginCreateUpdateSQLDatabase +// method. func (client *SQLResourcesClient) BeginCreateUpdateSQLDatabase(ctx context.Context, resourceGroupName string, accountName string, databaseName string, createUpdateSQLDatabaseParameters SQLDatabaseCreateUpdateParameters, options *SQLResourcesClientBeginCreateUpdateSQLDatabaseOptions) (*runtime.Poller[SQLResourcesClientCreateUpdateSQLDatabaseResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createUpdateSQLDatabase(ctx, resourceGroupName, accountName, databaseName, createUpdateSQLDatabaseParameters, options) @@ -228,7 +233,8 @@ func (client *SQLResourcesClient) BeginCreateUpdateSQLDatabase(ctx context.Conte // CreateUpdateSQLDatabase - Create or update an Azure Cosmos DB SQL database // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *SQLResourcesClient) createUpdateSQLDatabase(ctx context.Context, resourceGroupName string, accountName string, databaseName string, createUpdateSQLDatabaseParameters SQLDatabaseCreateUpdateParameters, options *SQLResourcesClientBeginCreateUpdateSQLDatabaseOptions) (*http.Response, error) { req, err := client.createUpdateSQLDatabaseCreateRequest(ctx, resourceGroupName, accountName, databaseName, createUpdateSQLDatabaseParameters, options) if err != nil { @@ -268,7 +274,7 @@ func (client *SQLResourcesClient) createUpdateSQLDatabaseCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, createUpdateSQLDatabaseParameters) @@ -276,13 +282,14 @@ func (client *SQLResourcesClient) createUpdateSQLDatabaseCreateRequest(ctx conte // BeginCreateUpdateSQLRoleAssignment - Creates or updates an Azure Cosmos DB SQL Role Assignment. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// roleAssignmentID - The GUID for the Role Assignment. -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// createUpdateSQLRoleAssignmentParameters - The properties required to create or update a Role Assignment. -// options - SQLResourcesClientBeginCreateUpdateSQLRoleAssignmentOptions contains the optional parameters for the SQLResourcesClient.BeginCreateUpdateSQLRoleAssignment -// method. +// +// Generated from API version 2022-11-15 +// - roleAssignmentID - The GUID for the Role Assignment. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - createUpdateSQLRoleAssignmentParameters - The properties required to create or update a Role Assignment. +// - options - SQLResourcesClientBeginCreateUpdateSQLRoleAssignmentOptions contains the optional parameters for the SQLResourcesClient.BeginCreateUpdateSQLRoleAssignment +// method. func (client *SQLResourcesClient) BeginCreateUpdateSQLRoleAssignment(ctx context.Context, roleAssignmentID string, resourceGroupName string, accountName string, createUpdateSQLRoleAssignmentParameters SQLRoleAssignmentCreateUpdateParameters, options *SQLResourcesClientBeginCreateUpdateSQLRoleAssignmentOptions) (*runtime.Poller[SQLResourcesClientCreateUpdateSQLRoleAssignmentResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createUpdateSQLRoleAssignment(ctx, roleAssignmentID, resourceGroupName, accountName, createUpdateSQLRoleAssignmentParameters, options) @@ -297,7 +304,8 @@ func (client *SQLResourcesClient) BeginCreateUpdateSQLRoleAssignment(ctx context // CreateUpdateSQLRoleAssignment - Creates or updates an Azure Cosmos DB SQL Role Assignment. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *SQLResourcesClient) createUpdateSQLRoleAssignment(ctx context.Context, roleAssignmentID string, resourceGroupName string, accountName string, createUpdateSQLRoleAssignmentParameters SQLRoleAssignmentCreateUpdateParameters, options *SQLResourcesClientBeginCreateUpdateSQLRoleAssignmentOptions) (*http.Response, error) { req, err := client.createUpdateSQLRoleAssignmentCreateRequest(ctx, roleAssignmentID, resourceGroupName, accountName, createUpdateSQLRoleAssignmentParameters, options) if err != nil { @@ -337,7 +345,7 @@ func (client *SQLResourcesClient) createUpdateSQLRoleAssignmentCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, createUpdateSQLRoleAssignmentParameters) @@ -345,13 +353,14 @@ func (client *SQLResourcesClient) createUpdateSQLRoleAssignmentCreateRequest(ctx // BeginCreateUpdateSQLRoleDefinition - Creates or updates an Azure Cosmos DB SQL Role Definition. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// roleDefinitionID - The GUID for the Role Definition. -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// createUpdateSQLRoleDefinitionParameters - The properties required to create or update a Role Definition. -// options - SQLResourcesClientBeginCreateUpdateSQLRoleDefinitionOptions contains the optional parameters for the SQLResourcesClient.BeginCreateUpdateSQLRoleDefinition -// method. +// +// Generated from API version 2022-11-15 +// - roleDefinitionID - The GUID for the Role Definition. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - createUpdateSQLRoleDefinitionParameters - The properties required to create or update a Role Definition. +// - options - SQLResourcesClientBeginCreateUpdateSQLRoleDefinitionOptions contains the optional parameters for the SQLResourcesClient.BeginCreateUpdateSQLRoleDefinition +// method. func (client *SQLResourcesClient) BeginCreateUpdateSQLRoleDefinition(ctx context.Context, roleDefinitionID string, resourceGroupName string, accountName string, createUpdateSQLRoleDefinitionParameters SQLRoleDefinitionCreateUpdateParameters, options *SQLResourcesClientBeginCreateUpdateSQLRoleDefinitionOptions) (*runtime.Poller[SQLResourcesClientCreateUpdateSQLRoleDefinitionResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createUpdateSQLRoleDefinition(ctx, roleDefinitionID, resourceGroupName, accountName, createUpdateSQLRoleDefinitionParameters, options) @@ -366,7 +375,8 @@ func (client *SQLResourcesClient) BeginCreateUpdateSQLRoleDefinition(ctx context // CreateUpdateSQLRoleDefinition - Creates or updates an Azure Cosmos DB SQL Role Definition. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *SQLResourcesClient) createUpdateSQLRoleDefinition(ctx context.Context, roleDefinitionID string, resourceGroupName string, accountName string, createUpdateSQLRoleDefinitionParameters SQLRoleDefinitionCreateUpdateParameters, options *SQLResourcesClientBeginCreateUpdateSQLRoleDefinitionOptions) (*http.Response, error) { req, err := client.createUpdateSQLRoleDefinitionCreateRequest(ctx, roleDefinitionID, resourceGroupName, accountName, createUpdateSQLRoleDefinitionParameters, options) if err != nil { @@ -406,7 +416,7 @@ func (client *SQLResourcesClient) createUpdateSQLRoleDefinitionCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, createUpdateSQLRoleDefinitionParameters) @@ -414,15 +424,16 @@ func (client *SQLResourcesClient) createUpdateSQLRoleDefinitionCreateRequest(ctx // BeginCreateUpdateSQLStoredProcedure - Create or update an Azure Cosmos DB SQL storedProcedure // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseName - Cosmos DB database name. -// containerName - Cosmos DB container name. -// storedProcedureName - Cosmos DB storedProcedure name. -// createUpdateSQLStoredProcedureParameters - The parameters to provide for the current SQL storedProcedure. -// options - SQLResourcesClientBeginCreateUpdateSQLStoredProcedureOptions contains the optional parameters for the SQLResourcesClient.BeginCreateUpdateSQLStoredProcedure -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - databaseName - Cosmos DB database name. +// - containerName - Cosmos DB container name. +// - storedProcedureName - Cosmos DB storedProcedure name. +// - createUpdateSQLStoredProcedureParameters - The parameters to provide for the current SQL storedProcedure. +// - options - SQLResourcesClientBeginCreateUpdateSQLStoredProcedureOptions contains the optional parameters for the SQLResourcesClient.BeginCreateUpdateSQLStoredProcedure +// method. func (client *SQLResourcesClient) BeginCreateUpdateSQLStoredProcedure(ctx context.Context, resourceGroupName string, accountName string, databaseName string, containerName string, storedProcedureName string, createUpdateSQLStoredProcedureParameters SQLStoredProcedureCreateUpdateParameters, options *SQLResourcesClientBeginCreateUpdateSQLStoredProcedureOptions) (*runtime.Poller[SQLResourcesClientCreateUpdateSQLStoredProcedureResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createUpdateSQLStoredProcedure(ctx, resourceGroupName, accountName, databaseName, containerName, storedProcedureName, createUpdateSQLStoredProcedureParameters, options) @@ -437,7 +448,8 @@ func (client *SQLResourcesClient) BeginCreateUpdateSQLStoredProcedure(ctx contex // CreateUpdateSQLStoredProcedure - Create or update an Azure Cosmos DB SQL storedProcedure // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *SQLResourcesClient) createUpdateSQLStoredProcedure(ctx context.Context, resourceGroupName string, accountName string, databaseName string, containerName string, storedProcedureName string, createUpdateSQLStoredProcedureParameters SQLStoredProcedureCreateUpdateParameters, options *SQLResourcesClientBeginCreateUpdateSQLStoredProcedureOptions) (*http.Response, error) { req, err := client.createUpdateSQLStoredProcedureCreateRequest(ctx, resourceGroupName, accountName, databaseName, containerName, storedProcedureName, createUpdateSQLStoredProcedureParameters, options) if err != nil { @@ -485,7 +497,7 @@ func (client *SQLResourcesClient) createUpdateSQLStoredProcedureCreateRequest(ct return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, createUpdateSQLStoredProcedureParameters) @@ -493,15 +505,16 @@ func (client *SQLResourcesClient) createUpdateSQLStoredProcedureCreateRequest(ct // BeginCreateUpdateSQLTrigger - Create or update an Azure Cosmos DB SQL trigger // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseName - Cosmos DB database name. -// containerName - Cosmos DB container name. -// triggerName - Cosmos DB trigger name. -// createUpdateSQLTriggerParameters - The parameters to provide for the current SQL trigger. -// options - SQLResourcesClientBeginCreateUpdateSQLTriggerOptions contains the optional parameters for the SQLResourcesClient.BeginCreateUpdateSQLTrigger -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - databaseName - Cosmos DB database name. +// - containerName - Cosmos DB container name. +// - triggerName - Cosmos DB trigger name. +// - createUpdateSQLTriggerParameters - The parameters to provide for the current SQL trigger. +// - options - SQLResourcesClientBeginCreateUpdateSQLTriggerOptions contains the optional parameters for the SQLResourcesClient.BeginCreateUpdateSQLTrigger +// method. func (client *SQLResourcesClient) BeginCreateUpdateSQLTrigger(ctx context.Context, resourceGroupName string, accountName string, databaseName string, containerName string, triggerName string, createUpdateSQLTriggerParameters SQLTriggerCreateUpdateParameters, options *SQLResourcesClientBeginCreateUpdateSQLTriggerOptions) (*runtime.Poller[SQLResourcesClientCreateUpdateSQLTriggerResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createUpdateSQLTrigger(ctx, resourceGroupName, accountName, databaseName, containerName, triggerName, createUpdateSQLTriggerParameters, options) @@ -516,7 +529,8 @@ func (client *SQLResourcesClient) BeginCreateUpdateSQLTrigger(ctx context.Contex // CreateUpdateSQLTrigger - Create or update an Azure Cosmos DB SQL trigger // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *SQLResourcesClient) createUpdateSQLTrigger(ctx context.Context, resourceGroupName string, accountName string, databaseName string, containerName string, triggerName string, createUpdateSQLTriggerParameters SQLTriggerCreateUpdateParameters, options *SQLResourcesClientBeginCreateUpdateSQLTriggerOptions) (*http.Response, error) { req, err := client.createUpdateSQLTriggerCreateRequest(ctx, resourceGroupName, accountName, databaseName, containerName, triggerName, createUpdateSQLTriggerParameters, options) if err != nil { @@ -564,7 +578,7 @@ func (client *SQLResourcesClient) createUpdateSQLTriggerCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, createUpdateSQLTriggerParameters) @@ -572,15 +586,16 @@ func (client *SQLResourcesClient) createUpdateSQLTriggerCreateRequest(ctx contex // BeginCreateUpdateSQLUserDefinedFunction - Create or update an Azure Cosmos DB SQL userDefinedFunction // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseName - Cosmos DB database name. -// containerName - Cosmos DB container name. -// userDefinedFunctionName - Cosmos DB userDefinedFunction name. -// createUpdateSQLUserDefinedFunctionParameters - The parameters to provide for the current SQL userDefinedFunction. -// options - SQLResourcesClientBeginCreateUpdateSQLUserDefinedFunctionOptions contains the optional parameters for the SQLResourcesClient.BeginCreateUpdateSQLUserDefinedFunction -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - databaseName - Cosmos DB database name. +// - containerName - Cosmos DB container name. +// - userDefinedFunctionName - Cosmos DB userDefinedFunction name. +// - createUpdateSQLUserDefinedFunctionParameters - The parameters to provide for the current SQL userDefinedFunction. +// - options - SQLResourcesClientBeginCreateUpdateSQLUserDefinedFunctionOptions contains the optional parameters for the SQLResourcesClient.BeginCreateUpdateSQLUserDefinedFunction +// method. func (client *SQLResourcesClient) BeginCreateUpdateSQLUserDefinedFunction(ctx context.Context, resourceGroupName string, accountName string, databaseName string, containerName string, userDefinedFunctionName string, createUpdateSQLUserDefinedFunctionParameters SQLUserDefinedFunctionCreateUpdateParameters, options *SQLResourcesClientBeginCreateUpdateSQLUserDefinedFunctionOptions) (*runtime.Poller[SQLResourcesClientCreateUpdateSQLUserDefinedFunctionResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createUpdateSQLUserDefinedFunction(ctx, resourceGroupName, accountName, databaseName, containerName, userDefinedFunctionName, createUpdateSQLUserDefinedFunctionParameters, options) @@ -595,7 +610,8 @@ func (client *SQLResourcesClient) BeginCreateUpdateSQLUserDefinedFunction(ctx co // CreateUpdateSQLUserDefinedFunction - Create or update an Azure Cosmos DB SQL userDefinedFunction // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *SQLResourcesClient) createUpdateSQLUserDefinedFunction(ctx context.Context, resourceGroupName string, accountName string, databaseName string, containerName string, userDefinedFunctionName string, createUpdateSQLUserDefinedFunctionParameters SQLUserDefinedFunctionCreateUpdateParameters, options *SQLResourcesClientBeginCreateUpdateSQLUserDefinedFunctionOptions) (*http.Response, error) { req, err := client.createUpdateSQLUserDefinedFunctionCreateRequest(ctx, resourceGroupName, accountName, databaseName, containerName, userDefinedFunctionName, createUpdateSQLUserDefinedFunctionParameters, options) if err != nil { @@ -643,7 +659,7 @@ func (client *SQLResourcesClient) createUpdateSQLUserDefinedFunctionCreateReques return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, createUpdateSQLUserDefinedFunctionParameters) @@ -651,13 +667,14 @@ func (client *SQLResourcesClient) createUpdateSQLUserDefinedFunctionCreateReques // BeginDeleteSQLContainer - Deletes an existing Azure Cosmos DB SQL container. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseName - Cosmos DB database name. -// containerName - Cosmos DB container name. -// options - SQLResourcesClientBeginDeleteSQLContainerOptions contains the optional parameters for the SQLResourcesClient.BeginDeleteSQLContainer -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - databaseName - Cosmos DB database name. +// - containerName - Cosmos DB container name. +// - options - SQLResourcesClientBeginDeleteSQLContainerOptions contains the optional parameters for the SQLResourcesClient.BeginDeleteSQLContainer +// method. func (client *SQLResourcesClient) BeginDeleteSQLContainer(ctx context.Context, resourceGroupName string, accountName string, databaseName string, containerName string, options *SQLResourcesClientBeginDeleteSQLContainerOptions) (*runtime.Poller[SQLResourcesClientDeleteSQLContainerResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteSQLContainer(ctx, resourceGroupName, accountName, databaseName, containerName, options) @@ -672,7 +689,8 @@ func (client *SQLResourcesClient) BeginDeleteSQLContainer(ctx context.Context, r // DeleteSQLContainer - Deletes an existing Azure Cosmos DB SQL container. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *SQLResourcesClient) deleteSQLContainer(ctx context.Context, resourceGroupName string, accountName string, databaseName string, containerName string, options *SQLResourcesClientBeginDeleteSQLContainerOptions) (*http.Response, error) { req, err := client.deleteSQLContainerCreateRequest(ctx, resourceGroupName, accountName, databaseName, containerName, options) if err != nil { @@ -716,19 +734,20 @@ func (client *SQLResourcesClient) deleteSQLContainerCreateRequest(ctx context.Co return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() return req, nil } // BeginDeleteSQLDatabase - Deletes an existing Azure Cosmos DB SQL database. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseName - Cosmos DB database name. -// options - SQLResourcesClientBeginDeleteSQLDatabaseOptions contains the optional parameters for the SQLResourcesClient.BeginDeleteSQLDatabase -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - databaseName - Cosmos DB database name. +// - options - SQLResourcesClientBeginDeleteSQLDatabaseOptions contains the optional parameters for the SQLResourcesClient.BeginDeleteSQLDatabase +// method. func (client *SQLResourcesClient) BeginDeleteSQLDatabase(ctx context.Context, resourceGroupName string, accountName string, databaseName string, options *SQLResourcesClientBeginDeleteSQLDatabaseOptions) (*runtime.Poller[SQLResourcesClientDeleteSQLDatabaseResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteSQLDatabase(ctx, resourceGroupName, accountName, databaseName, options) @@ -743,7 +762,8 @@ func (client *SQLResourcesClient) BeginDeleteSQLDatabase(ctx context.Context, re // DeleteSQLDatabase - Deletes an existing Azure Cosmos DB SQL database. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *SQLResourcesClient) deleteSQLDatabase(ctx context.Context, resourceGroupName string, accountName string, databaseName string, options *SQLResourcesClientBeginDeleteSQLDatabaseOptions) (*http.Response, error) { req, err := client.deleteSQLDatabaseCreateRequest(ctx, resourceGroupName, accountName, databaseName, options) if err != nil { @@ -783,19 +803,20 @@ func (client *SQLResourcesClient) deleteSQLDatabaseCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() return req, nil } // BeginDeleteSQLRoleAssignment - Deletes an existing Azure Cosmos DB SQL Role Assignment. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// roleAssignmentID - The GUID for the Role Assignment. -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// options - SQLResourcesClientBeginDeleteSQLRoleAssignmentOptions contains the optional parameters for the SQLResourcesClient.BeginDeleteSQLRoleAssignment -// method. +// +// Generated from API version 2022-11-15 +// - roleAssignmentID - The GUID for the Role Assignment. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - options - SQLResourcesClientBeginDeleteSQLRoleAssignmentOptions contains the optional parameters for the SQLResourcesClient.BeginDeleteSQLRoleAssignment +// method. func (client *SQLResourcesClient) BeginDeleteSQLRoleAssignment(ctx context.Context, roleAssignmentID string, resourceGroupName string, accountName string, options *SQLResourcesClientBeginDeleteSQLRoleAssignmentOptions) (*runtime.Poller[SQLResourcesClientDeleteSQLRoleAssignmentResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteSQLRoleAssignment(ctx, roleAssignmentID, resourceGroupName, accountName, options) @@ -810,7 +831,8 @@ func (client *SQLResourcesClient) BeginDeleteSQLRoleAssignment(ctx context.Conte // DeleteSQLRoleAssignment - Deletes an existing Azure Cosmos DB SQL Role Assignment. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *SQLResourcesClient) deleteSQLRoleAssignment(ctx context.Context, roleAssignmentID string, resourceGroupName string, accountName string, options *SQLResourcesClientBeginDeleteSQLRoleAssignmentOptions) (*http.Response, error) { req, err := client.deleteSQLRoleAssignmentCreateRequest(ctx, roleAssignmentID, resourceGroupName, accountName, options) if err != nil { @@ -850,7 +872,7 @@ func (client *SQLResourcesClient) deleteSQLRoleAssignmentCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -858,12 +880,13 @@ func (client *SQLResourcesClient) deleteSQLRoleAssignmentCreateRequest(ctx conte // BeginDeleteSQLRoleDefinition - Deletes an existing Azure Cosmos DB SQL Role Definition. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// roleDefinitionID - The GUID for the Role Definition. -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// options - SQLResourcesClientBeginDeleteSQLRoleDefinitionOptions contains the optional parameters for the SQLResourcesClient.BeginDeleteSQLRoleDefinition -// method. +// +// Generated from API version 2022-11-15 +// - roleDefinitionID - The GUID for the Role Definition. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - options - SQLResourcesClientBeginDeleteSQLRoleDefinitionOptions contains the optional parameters for the SQLResourcesClient.BeginDeleteSQLRoleDefinition +// method. func (client *SQLResourcesClient) BeginDeleteSQLRoleDefinition(ctx context.Context, roleDefinitionID string, resourceGroupName string, accountName string, options *SQLResourcesClientBeginDeleteSQLRoleDefinitionOptions) (*runtime.Poller[SQLResourcesClientDeleteSQLRoleDefinitionResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteSQLRoleDefinition(ctx, roleDefinitionID, resourceGroupName, accountName, options) @@ -878,7 +901,8 @@ func (client *SQLResourcesClient) BeginDeleteSQLRoleDefinition(ctx context.Conte // DeleteSQLRoleDefinition - Deletes an existing Azure Cosmos DB SQL Role Definition. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *SQLResourcesClient) deleteSQLRoleDefinition(ctx context.Context, roleDefinitionID string, resourceGroupName string, accountName string, options *SQLResourcesClientBeginDeleteSQLRoleDefinitionOptions) (*http.Response, error) { req, err := client.deleteSQLRoleDefinitionCreateRequest(ctx, roleDefinitionID, resourceGroupName, accountName, options) if err != nil { @@ -918,7 +942,7 @@ func (client *SQLResourcesClient) deleteSQLRoleDefinitionCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -926,14 +950,15 @@ func (client *SQLResourcesClient) deleteSQLRoleDefinitionCreateRequest(ctx conte // BeginDeleteSQLStoredProcedure - Deletes an existing Azure Cosmos DB SQL storedProcedure. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseName - Cosmos DB database name. -// containerName - Cosmos DB container name. -// storedProcedureName - Cosmos DB storedProcedure name. -// options - SQLResourcesClientBeginDeleteSQLStoredProcedureOptions contains the optional parameters for the SQLResourcesClient.BeginDeleteSQLStoredProcedure -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - databaseName - Cosmos DB database name. +// - containerName - Cosmos DB container name. +// - storedProcedureName - Cosmos DB storedProcedure name. +// - options - SQLResourcesClientBeginDeleteSQLStoredProcedureOptions contains the optional parameters for the SQLResourcesClient.BeginDeleteSQLStoredProcedure +// method. func (client *SQLResourcesClient) BeginDeleteSQLStoredProcedure(ctx context.Context, resourceGroupName string, accountName string, databaseName string, containerName string, storedProcedureName string, options *SQLResourcesClientBeginDeleteSQLStoredProcedureOptions) (*runtime.Poller[SQLResourcesClientDeleteSQLStoredProcedureResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteSQLStoredProcedure(ctx, resourceGroupName, accountName, databaseName, containerName, storedProcedureName, options) @@ -948,7 +973,8 @@ func (client *SQLResourcesClient) BeginDeleteSQLStoredProcedure(ctx context.Cont // DeleteSQLStoredProcedure - Deletes an existing Azure Cosmos DB SQL storedProcedure. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *SQLResourcesClient) deleteSQLStoredProcedure(ctx context.Context, resourceGroupName string, accountName string, databaseName string, containerName string, storedProcedureName string, options *SQLResourcesClientBeginDeleteSQLStoredProcedureOptions) (*http.Response, error) { req, err := client.deleteSQLStoredProcedureCreateRequest(ctx, resourceGroupName, accountName, databaseName, containerName, storedProcedureName, options) if err != nil { @@ -996,21 +1022,22 @@ func (client *SQLResourcesClient) deleteSQLStoredProcedureCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() return req, nil } // BeginDeleteSQLTrigger - Deletes an existing Azure Cosmos DB SQL trigger. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseName - Cosmos DB database name. -// containerName - Cosmos DB container name. -// triggerName - Cosmos DB trigger name. -// options - SQLResourcesClientBeginDeleteSQLTriggerOptions contains the optional parameters for the SQLResourcesClient.BeginDeleteSQLTrigger -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - databaseName - Cosmos DB database name. +// - containerName - Cosmos DB container name. +// - triggerName - Cosmos DB trigger name. +// - options - SQLResourcesClientBeginDeleteSQLTriggerOptions contains the optional parameters for the SQLResourcesClient.BeginDeleteSQLTrigger +// method. func (client *SQLResourcesClient) BeginDeleteSQLTrigger(ctx context.Context, resourceGroupName string, accountName string, databaseName string, containerName string, triggerName string, options *SQLResourcesClientBeginDeleteSQLTriggerOptions) (*runtime.Poller[SQLResourcesClientDeleteSQLTriggerResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteSQLTrigger(ctx, resourceGroupName, accountName, databaseName, containerName, triggerName, options) @@ -1025,7 +1052,8 @@ func (client *SQLResourcesClient) BeginDeleteSQLTrigger(ctx context.Context, res // DeleteSQLTrigger - Deletes an existing Azure Cosmos DB SQL trigger. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *SQLResourcesClient) deleteSQLTrigger(ctx context.Context, resourceGroupName string, accountName string, databaseName string, containerName string, triggerName string, options *SQLResourcesClientBeginDeleteSQLTriggerOptions) (*http.Response, error) { req, err := client.deleteSQLTriggerCreateRequest(ctx, resourceGroupName, accountName, databaseName, containerName, triggerName, options) if err != nil { @@ -1073,21 +1101,22 @@ func (client *SQLResourcesClient) deleteSQLTriggerCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() return req, nil } // BeginDeleteSQLUserDefinedFunction - Deletes an existing Azure Cosmos DB SQL userDefinedFunction. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseName - Cosmos DB database name. -// containerName - Cosmos DB container name. -// userDefinedFunctionName - Cosmos DB userDefinedFunction name. -// options - SQLResourcesClientBeginDeleteSQLUserDefinedFunctionOptions contains the optional parameters for the SQLResourcesClient.BeginDeleteSQLUserDefinedFunction -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - databaseName - Cosmos DB database name. +// - containerName - Cosmos DB container name. +// - userDefinedFunctionName - Cosmos DB userDefinedFunction name. +// - options - SQLResourcesClientBeginDeleteSQLUserDefinedFunctionOptions contains the optional parameters for the SQLResourcesClient.BeginDeleteSQLUserDefinedFunction +// method. func (client *SQLResourcesClient) BeginDeleteSQLUserDefinedFunction(ctx context.Context, resourceGroupName string, accountName string, databaseName string, containerName string, userDefinedFunctionName string, options *SQLResourcesClientBeginDeleteSQLUserDefinedFunctionOptions) (*runtime.Poller[SQLResourcesClientDeleteSQLUserDefinedFunctionResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteSQLUserDefinedFunction(ctx, resourceGroupName, accountName, databaseName, containerName, userDefinedFunctionName, options) @@ -1102,7 +1131,8 @@ func (client *SQLResourcesClient) BeginDeleteSQLUserDefinedFunction(ctx context. // DeleteSQLUserDefinedFunction - Deletes an existing Azure Cosmos DB SQL userDefinedFunction. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *SQLResourcesClient) deleteSQLUserDefinedFunction(ctx context.Context, resourceGroupName string, accountName string, databaseName string, containerName string, userDefinedFunctionName string, options *SQLResourcesClientBeginDeleteSQLUserDefinedFunctionOptions) (*http.Response, error) { req, err := client.deleteSQLUserDefinedFunctionCreateRequest(ctx, resourceGroupName, accountName, databaseName, containerName, userDefinedFunctionName, options) if err != nil { @@ -1150,20 +1180,21 @@ func (client *SQLResourcesClient) deleteSQLUserDefinedFunctionCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() return req, nil } // GetClientEncryptionKey - Gets the ClientEncryptionKey under an existing Azure Cosmos DB SQL database. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseName - Cosmos DB database name. -// clientEncryptionKeyName - Cosmos DB ClientEncryptionKey name. -// options - SQLResourcesClientGetClientEncryptionKeyOptions contains the optional parameters for the SQLResourcesClient.GetClientEncryptionKey -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - databaseName - Cosmos DB database name. +// - clientEncryptionKeyName - Cosmos DB ClientEncryptionKey name. +// - options - SQLResourcesClientGetClientEncryptionKeyOptions contains the optional parameters for the SQLResourcesClient.GetClientEncryptionKey +// method. func (client *SQLResourcesClient) GetClientEncryptionKey(ctx context.Context, resourceGroupName string, accountName string, databaseName string, clientEncryptionKeyName string, options *SQLResourcesClientGetClientEncryptionKeyOptions) (SQLResourcesClientGetClientEncryptionKeyResponse, error) { req, err := client.getClientEncryptionKeyCreateRequest(ctx, resourceGroupName, accountName, databaseName, clientEncryptionKeyName, options) if err != nil { @@ -1207,7 +1238,7 @@ func (client *SQLResourcesClient) getClientEncryptionKeyCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1224,13 +1255,14 @@ func (client *SQLResourcesClient) getClientEncryptionKeyHandleResponse(resp *htt // GetSQLContainer - Gets the SQL container under an existing Azure Cosmos DB database account. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseName - Cosmos DB database name. -// containerName - Cosmos DB container name. -// options - SQLResourcesClientGetSQLContainerOptions contains the optional parameters for the SQLResourcesClient.GetSQLContainer -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - databaseName - Cosmos DB database name. +// - containerName - Cosmos DB container name. +// - options - SQLResourcesClientGetSQLContainerOptions contains the optional parameters for the SQLResourcesClient.GetSQLContainer +// method. func (client *SQLResourcesClient) GetSQLContainer(ctx context.Context, resourceGroupName string, accountName string, databaseName string, containerName string, options *SQLResourcesClientGetSQLContainerOptions) (SQLResourcesClientGetSQLContainerResponse, error) { req, err := client.getSQLContainerCreateRequest(ctx, resourceGroupName, accountName, databaseName, containerName, options) if err != nil { @@ -1274,7 +1306,7 @@ func (client *SQLResourcesClient) getSQLContainerCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1291,13 +1323,14 @@ func (client *SQLResourcesClient) getSQLContainerHandleResponse(resp *http.Respo // GetSQLContainerThroughput - Gets the RUs per second of the SQL container under an existing Azure Cosmos DB database account. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseName - Cosmos DB database name. -// containerName - Cosmos DB container name. -// options - SQLResourcesClientGetSQLContainerThroughputOptions contains the optional parameters for the SQLResourcesClient.GetSQLContainerThroughput -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - databaseName - Cosmos DB database name. +// - containerName - Cosmos DB container name. +// - options - SQLResourcesClientGetSQLContainerThroughputOptions contains the optional parameters for the SQLResourcesClient.GetSQLContainerThroughput +// method. func (client *SQLResourcesClient) GetSQLContainerThroughput(ctx context.Context, resourceGroupName string, accountName string, databaseName string, containerName string, options *SQLResourcesClientGetSQLContainerThroughputOptions) (SQLResourcesClientGetSQLContainerThroughputResponse, error) { req, err := client.getSQLContainerThroughputCreateRequest(ctx, resourceGroupName, accountName, databaseName, containerName, options) if err != nil { @@ -1341,7 +1374,7 @@ func (client *SQLResourcesClient) getSQLContainerThroughputCreateRequest(ctx con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1358,12 +1391,13 @@ func (client *SQLResourcesClient) getSQLContainerThroughputHandleResponse(resp * // GetSQLDatabase - Gets the SQL database under an existing Azure Cosmos DB database account with the provided name. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseName - Cosmos DB database name. -// options - SQLResourcesClientGetSQLDatabaseOptions contains the optional parameters for the SQLResourcesClient.GetSQLDatabase -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - databaseName - Cosmos DB database name. +// - options - SQLResourcesClientGetSQLDatabaseOptions contains the optional parameters for the SQLResourcesClient.GetSQLDatabase +// method. func (client *SQLResourcesClient) GetSQLDatabase(ctx context.Context, resourceGroupName string, accountName string, databaseName string, options *SQLResourcesClientGetSQLDatabaseOptions) (SQLResourcesClientGetSQLDatabaseResponse, error) { req, err := client.getSQLDatabaseCreateRequest(ctx, resourceGroupName, accountName, databaseName, options) if err != nil { @@ -1403,7 +1437,7 @@ func (client *SQLResourcesClient) getSQLDatabaseCreateRequest(ctx context.Contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1421,12 +1455,13 @@ func (client *SQLResourcesClient) getSQLDatabaseHandleResponse(resp *http.Respon // GetSQLDatabaseThroughput - Gets the RUs per second of the SQL database under an existing Azure Cosmos DB database account // with the provided name. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseName - Cosmos DB database name. -// options - SQLResourcesClientGetSQLDatabaseThroughputOptions contains the optional parameters for the SQLResourcesClient.GetSQLDatabaseThroughput -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - databaseName - Cosmos DB database name. +// - options - SQLResourcesClientGetSQLDatabaseThroughputOptions contains the optional parameters for the SQLResourcesClient.GetSQLDatabaseThroughput +// method. func (client *SQLResourcesClient) GetSQLDatabaseThroughput(ctx context.Context, resourceGroupName string, accountName string, databaseName string, options *SQLResourcesClientGetSQLDatabaseThroughputOptions) (SQLResourcesClientGetSQLDatabaseThroughputResponse, error) { req, err := client.getSQLDatabaseThroughputCreateRequest(ctx, resourceGroupName, accountName, databaseName, options) if err != nil { @@ -1466,7 +1501,7 @@ func (client *SQLResourcesClient) getSQLDatabaseThroughputCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1483,12 +1518,13 @@ func (client *SQLResourcesClient) getSQLDatabaseThroughputHandleResponse(resp *h // GetSQLRoleAssignment - Retrieves the properties of an existing Azure Cosmos DB SQL Role Assignment with the given Id. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// roleAssignmentID - The GUID for the Role Assignment. -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// options - SQLResourcesClientGetSQLRoleAssignmentOptions contains the optional parameters for the SQLResourcesClient.GetSQLRoleAssignment -// method. +// +// Generated from API version 2022-11-15 +// - roleAssignmentID - The GUID for the Role Assignment. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - options - SQLResourcesClientGetSQLRoleAssignmentOptions contains the optional parameters for the SQLResourcesClient.GetSQLRoleAssignment +// method. func (client *SQLResourcesClient) GetSQLRoleAssignment(ctx context.Context, roleAssignmentID string, resourceGroupName string, accountName string, options *SQLResourcesClientGetSQLRoleAssignmentOptions) (SQLResourcesClientGetSQLRoleAssignmentResponse, error) { req, err := client.getSQLRoleAssignmentCreateRequest(ctx, roleAssignmentID, resourceGroupName, accountName, options) if err != nil { @@ -1528,7 +1564,7 @@ func (client *SQLResourcesClient) getSQLRoleAssignmentCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1545,12 +1581,13 @@ func (client *SQLResourcesClient) getSQLRoleAssignmentHandleResponse(resp *http. // GetSQLRoleDefinition - Retrieves the properties of an existing Azure Cosmos DB SQL Role Definition with the given Id. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// roleDefinitionID - The GUID for the Role Definition. -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// options - SQLResourcesClientGetSQLRoleDefinitionOptions contains the optional parameters for the SQLResourcesClient.GetSQLRoleDefinition -// method. +// +// Generated from API version 2022-11-15 +// - roleDefinitionID - The GUID for the Role Definition. +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - options - SQLResourcesClientGetSQLRoleDefinitionOptions contains the optional parameters for the SQLResourcesClient.GetSQLRoleDefinition +// method. func (client *SQLResourcesClient) GetSQLRoleDefinition(ctx context.Context, roleDefinitionID string, resourceGroupName string, accountName string, options *SQLResourcesClientGetSQLRoleDefinitionOptions) (SQLResourcesClientGetSQLRoleDefinitionResponse, error) { req, err := client.getSQLRoleDefinitionCreateRequest(ctx, roleDefinitionID, resourceGroupName, accountName, options) if err != nil { @@ -1590,7 +1627,7 @@ func (client *SQLResourcesClient) getSQLRoleDefinitionCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1607,14 +1644,15 @@ func (client *SQLResourcesClient) getSQLRoleDefinitionHandleResponse(resp *http. // GetSQLStoredProcedure - Gets the SQL storedProcedure under an existing Azure Cosmos DB database account. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseName - Cosmos DB database name. -// containerName - Cosmos DB container name. -// storedProcedureName - Cosmos DB storedProcedure name. -// options - SQLResourcesClientGetSQLStoredProcedureOptions contains the optional parameters for the SQLResourcesClient.GetSQLStoredProcedure -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - databaseName - Cosmos DB database name. +// - containerName - Cosmos DB container name. +// - storedProcedureName - Cosmos DB storedProcedure name. +// - options - SQLResourcesClientGetSQLStoredProcedureOptions contains the optional parameters for the SQLResourcesClient.GetSQLStoredProcedure +// method. func (client *SQLResourcesClient) GetSQLStoredProcedure(ctx context.Context, resourceGroupName string, accountName string, databaseName string, containerName string, storedProcedureName string, options *SQLResourcesClientGetSQLStoredProcedureOptions) (SQLResourcesClientGetSQLStoredProcedureResponse, error) { req, err := client.getSQLStoredProcedureCreateRequest(ctx, resourceGroupName, accountName, databaseName, containerName, storedProcedureName, options) if err != nil { @@ -1662,7 +1700,7 @@ func (client *SQLResourcesClient) getSQLStoredProcedureCreateRequest(ctx context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1679,14 +1717,15 @@ func (client *SQLResourcesClient) getSQLStoredProcedureHandleResponse(resp *http // GetSQLTrigger - Gets the SQL trigger under an existing Azure Cosmos DB database account. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseName - Cosmos DB database name. -// containerName - Cosmos DB container name. -// triggerName - Cosmos DB trigger name. -// options - SQLResourcesClientGetSQLTriggerOptions contains the optional parameters for the SQLResourcesClient.GetSQLTrigger -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - databaseName - Cosmos DB database name. +// - containerName - Cosmos DB container name. +// - triggerName - Cosmos DB trigger name. +// - options - SQLResourcesClientGetSQLTriggerOptions contains the optional parameters for the SQLResourcesClient.GetSQLTrigger +// method. func (client *SQLResourcesClient) GetSQLTrigger(ctx context.Context, resourceGroupName string, accountName string, databaseName string, containerName string, triggerName string, options *SQLResourcesClientGetSQLTriggerOptions) (SQLResourcesClientGetSQLTriggerResponse, error) { req, err := client.getSQLTriggerCreateRequest(ctx, resourceGroupName, accountName, databaseName, containerName, triggerName, options) if err != nil { @@ -1734,7 +1773,7 @@ func (client *SQLResourcesClient) getSQLTriggerCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1751,14 +1790,15 @@ func (client *SQLResourcesClient) getSQLTriggerHandleResponse(resp *http.Respons // GetSQLUserDefinedFunction - Gets the SQL userDefinedFunction under an existing Azure Cosmos DB database account. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseName - Cosmos DB database name. -// containerName - Cosmos DB container name. -// userDefinedFunctionName - Cosmos DB userDefinedFunction name. -// options - SQLResourcesClientGetSQLUserDefinedFunctionOptions contains the optional parameters for the SQLResourcesClient.GetSQLUserDefinedFunction -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - databaseName - Cosmos DB database name. +// - containerName - Cosmos DB container name. +// - userDefinedFunctionName - Cosmos DB userDefinedFunction name. +// - options - SQLResourcesClientGetSQLUserDefinedFunctionOptions contains the optional parameters for the SQLResourcesClient.GetSQLUserDefinedFunction +// method. func (client *SQLResourcesClient) GetSQLUserDefinedFunction(ctx context.Context, resourceGroupName string, accountName string, databaseName string, containerName string, userDefinedFunctionName string, options *SQLResourcesClientGetSQLUserDefinedFunctionOptions) (SQLResourcesClientGetSQLUserDefinedFunctionResponse, error) { req, err := client.getSQLUserDefinedFunctionCreateRequest(ctx, resourceGroupName, accountName, databaseName, containerName, userDefinedFunctionName, options) if err != nil { @@ -1806,7 +1846,7 @@ func (client *SQLResourcesClient) getSQLUserDefinedFunctionCreateRequest(ctx con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1822,12 +1862,13 @@ func (client *SQLResourcesClient) getSQLUserDefinedFunctionHandleResponse(resp * } // NewListClientEncryptionKeysPager - Lists the ClientEncryptionKeys under an existing Azure Cosmos DB SQL database. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseName - Cosmos DB database name. -// options - SQLResourcesClientListClientEncryptionKeysOptions contains the optional parameters for the SQLResourcesClient.ListClientEncryptionKeys -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - databaseName - Cosmos DB database name. +// - options - SQLResourcesClientListClientEncryptionKeysOptions contains the optional parameters for the SQLResourcesClient.NewListClientEncryptionKeysPager +// method. func (client *SQLResourcesClient) NewListClientEncryptionKeysPager(resourceGroupName string, accountName string, databaseName string, options *SQLResourcesClientListClientEncryptionKeysOptions) *runtime.Pager[SQLResourcesClientListClientEncryptionKeysResponse] { return runtime.NewPager(runtime.PagingHandler[SQLResourcesClientListClientEncryptionKeysResponse]{ More: func(page SQLResourcesClientListClientEncryptionKeysResponse) bool { @@ -1874,7 +1915,7 @@ func (client *SQLResourcesClient) listClientEncryptionKeysCreateRequest(ctx cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -1889,89 +1930,14 @@ func (client *SQLResourcesClient) listClientEncryptionKeysHandleResponse(resp *h return result, nil } -// BeginListSQLContainerPartitionMerge - Merges the partitions of a SQL Container -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseName - Cosmos DB database name. -// containerName - Cosmos DB container name. -// mergeParameters - The parameters for the merge operation. -// options - SQLResourcesClientBeginListSQLContainerPartitionMergeOptions contains the optional parameters for the SQLResourcesClient.BeginListSQLContainerPartitionMerge -// method. -func (client *SQLResourcesClient) BeginListSQLContainerPartitionMerge(ctx context.Context, resourceGroupName string, accountName string, databaseName string, containerName string, mergeParameters MergeParameters, options *SQLResourcesClientBeginListSQLContainerPartitionMergeOptions) (*runtime.Poller[SQLResourcesClientListSQLContainerPartitionMergeResponse], error) { - if options == nil || options.ResumeToken == "" { - resp, err := client.listSQLContainerPartitionMerge(ctx, resourceGroupName, accountName, databaseName, containerName, mergeParameters, options) - if err != nil { - return nil, err - } - return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[SQLResourcesClientListSQLContainerPartitionMergeResponse]{ - FinalStateVia: runtime.FinalStateViaLocation, - }) - } else { - return runtime.NewPollerFromResumeToken[SQLResourcesClientListSQLContainerPartitionMergeResponse](options.ResumeToken, client.pl, nil) - } -} - -// ListSQLContainerPartitionMerge - Merges the partitions of a SQL Container -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -func (client *SQLResourcesClient) listSQLContainerPartitionMerge(ctx context.Context, resourceGroupName string, accountName string, databaseName string, containerName string, mergeParameters MergeParameters, options *SQLResourcesClientBeginListSQLContainerPartitionMergeOptions) (*http.Response, error) { - req, err := client.listSQLContainerPartitionMergeCreateRequest(ctx, resourceGroupName, accountName, databaseName, containerName, mergeParameters, options) - if err != nil { - return nil, err - } - resp, err := client.pl.Do(req) - if err != nil { - return nil, err - } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) - } - return resp, nil -} - -// listSQLContainerPartitionMergeCreateRequest creates the ListSQLContainerPartitionMerge request. -func (client *SQLResourcesClient) listSQLContainerPartitionMergeCreateRequest(ctx context.Context, resourceGroupName string, accountName string, databaseName string, containerName string, mergeParameters MergeParameters, options *SQLResourcesClientBeginListSQLContainerPartitionMergeOptions) (*policy.Request, error) { - urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/partitionMerge" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - if resourceGroupName == "" { - return nil, errors.New("parameter resourceGroupName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) - if accountName == "" { - return nil, errors.New("parameter accountName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{accountName}", url.PathEscape(accountName)) - if databaseName == "" { - return nil, errors.New("parameter databaseName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{databaseName}", url.PathEscape(databaseName)) - if containerName == "" { - return nil, errors.New("parameter containerName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{containerName}", url.PathEscape(containerName)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) - if err != nil { - return nil, err - } - reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") - req.Raw().URL.RawQuery = reqQP.Encode() - req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, mergeParameters) -} - // NewListSQLContainersPager - Lists the SQL container under an existing Azure Cosmos DB database account. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseName - Cosmos DB database name. -// options - SQLResourcesClientListSQLContainersOptions contains the optional parameters for the SQLResourcesClient.ListSQLContainers -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - databaseName - Cosmos DB database name. +// - options - SQLResourcesClientListSQLContainersOptions contains the optional parameters for the SQLResourcesClient.NewListSQLContainersPager +// method. func (client *SQLResourcesClient) NewListSQLContainersPager(resourceGroupName string, accountName string, databaseName string, options *SQLResourcesClientListSQLContainersOptions) *runtime.Pager[SQLResourcesClientListSQLContainersResponse] { return runtime.NewPager(runtime.PagingHandler[SQLResourcesClientListSQLContainersResponse]{ More: func(page SQLResourcesClientListSQLContainersResponse) bool { @@ -2018,7 +1984,7 @@ func (client *SQLResourcesClient) listSQLContainersCreateRequest(ctx context.Con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2034,11 +2000,12 @@ func (client *SQLResourcesClient) listSQLContainersHandleResponse(resp *http.Res } // NewListSQLDatabasesPager - Lists the SQL databases under an existing Azure Cosmos DB database account. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// options - SQLResourcesClientListSQLDatabasesOptions contains the optional parameters for the SQLResourcesClient.ListSQLDatabases -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - options - SQLResourcesClientListSQLDatabasesOptions contains the optional parameters for the SQLResourcesClient.NewListSQLDatabasesPager +// method. func (client *SQLResourcesClient) NewListSQLDatabasesPager(resourceGroupName string, accountName string, options *SQLResourcesClientListSQLDatabasesOptions) *runtime.Pager[SQLResourcesClientListSQLDatabasesResponse] { return runtime.NewPager(runtime.PagingHandler[SQLResourcesClientListSQLDatabasesResponse]{ More: func(page SQLResourcesClientListSQLDatabasesResponse) bool { @@ -2081,7 +2048,7 @@ func (client *SQLResourcesClient) listSQLDatabasesCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2097,11 +2064,12 @@ func (client *SQLResourcesClient) listSQLDatabasesHandleResponse(resp *http.Resp } // NewListSQLRoleAssignmentsPager - Retrieves the list of all Azure Cosmos DB SQL Role Assignments. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// options - SQLResourcesClientListSQLRoleAssignmentsOptions contains the optional parameters for the SQLResourcesClient.ListSQLRoleAssignments -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - options - SQLResourcesClientListSQLRoleAssignmentsOptions contains the optional parameters for the SQLResourcesClient.NewListSQLRoleAssignmentsPager +// method. func (client *SQLResourcesClient) NewListSQLRoleAssignmentsPager(resourceGroupName string, accountName string, options *SQLResourcesClientListSQLRoleAssignmentsOptions) *runtime.Pager[SQLResourcesClientListSQLRoleAssignmentsResponse] { return runtime.NewPager(runtime.PagingHandler[SQLResourcesClientListSQLRoleAssignmentsResponse]{ More: func(page SQLResourcesClientListSQLRoleAssignmentsResponse) bool { @@ -2144,7 +2112,7 @@ func (client *SQLResourcesClient) listSQLRoleAssignmentsCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2160,11 +2128,12 @@ func (client *SQLResourcesClient) listSQLRoleAssignmentsHandleResponse(resp *htt } // NewListSQLRoleDefinitionsPager - Retrieves the list of all Azure Cosmos DB SQL Role Definitions. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// options - SQLResourcesClientListSQLRoleDefinitionsOptions contains the optional parameters for the SQLResourcesClient.ListSQLRoleDefinitions -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - options - SQLResourcesClientListSQLRoleDefinitionsOptions contains the optional parameters for the SQLResourcesClient.NewListSQLRoleDefinitionsPager +// method. func (client *SQLResourcesClient) NewListSQLRoleDefinitionsPager(resourceGroupName string, accountName string, options *SQLResourcesClientListSQLRoleDefinitionsOptions) *runtime.Pager[SQLResourcesClientListSQLRoleDefinitionsResponse] { return runtime.NewPager(runtime.PagingHandler[SQLResourcesClientListSQLRoleDefinitionsResponse]{ More: func(page SQLResourcesClientListSQLRoleDefinitionsResponse) bool { @@ -2207,7 +2176,7 @@ func (client *SQLResourcesClient) listSQLRoleDefinitionsCreateRequest(ctx contex return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2223,13 +2192,14 @@ func (client *SQLResourcesClient) listSQLRoleDefinitionsHandleResponse(resp *htt } // NewListSQLStoredProceduresPager - Lists the SQL storedProcedure under an existing Azure Cosmos DB database account. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseName - Cosmos DB database name. -// containerName - Cosmos DB container name. -// options - SQLResourcesClientListSQLStoredProceduresOptions contains the optional parameters for the SQLResourcesClient.ListSQLStoredProcedures -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - databaseName - Cosmos DB database name. +// - containerName - Cosmos DB container name. +// - options - SQLResourcesClientListSQLStoredProceduresOptions contains the optional parameters for the SQLResourcesClient.NewListSQLStoredProceduresPager +// method. func (client *SQLResourcesClient) NewListSQLStoredProceduresPager(resourceGroupName string, accountName string, databaseName string, containerName string, options *SQLResourcesClientListSQLStoredProceduresOptions) *runtime.Pager[SQLResourcesClientListSQLStoredProceduresResponse] { return runtime.NewPager(runtime.PagingHandler[SQLResourcesClientListSQLStoredProceduresResponse]{ More: func(page SQLResourcesClientListSQLStoredProceduresResponse) bool { @@ -2280,7 +2250,7 @@ func (client *SQLResourcesClient) listSQLStoredProceduresCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2296,13 +2266,14 @@ func (client *SQLResourcesClient) listSQLStoredProceduresHandleResponse(resp *ht } // NewListSQLTriggersPager - Lists the SQL trigger under an existing Azure Cosmos DB database account. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseName - Cosmos DB database name. -// containerName - Cosmos DB container name. -// options - SQLResourcesClientListSQLTriggersOptions contains the optional parameters for the SQLResourcesClient.ListSQLTriggers -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - databaseName - Cosmos DB database name. +// - containerName - Cosmos DB container name. +// - options - SQLResourcesClientListSQLTriggersOptions contains the optional parameters for the SQLResourcesClient.NewListSQLTriggersPager +// method. func (client *SQLResourcesClient) NewListSQLTriggersPager(resourceGroupName string, accountName string, databaseName string, containerName string, options *SQLResourcesClientListSQLTriggersOptions) *runtime.Pager[SQLResourcesClientListSQLTriggersResponse] { return runtime.NewPager(runtime.PagingHandler[SQLResourcesClientListSQLTriggersResponse]{ More: func(page SQLResourcesClientListSQLTriggersResponse) bool { @@ -2353,7 +2324,7 @@ func (client *SQLResourcesClient) listSQLTriggersCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2369,13 +2340,14 @@ func (client *SQLResourcesClient) listSQLTriggersHandleResponse(resp *http.Respo } // NewListSQLUserDefinedFunctionsPager - Lists the SQL userDefinedFunction under an existing Azure Cosmos DB database account. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseName - Cosmos DB database name. -// containerName - Cosmos DB container name. -// options - SQLResourcesClientListSQLUserDefinedFunctionsOptions contains the optional parameters for the SQLResourcesClient.ListSQLUserDefinedFunctions -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - databaseName - Cosmos DB database name. +// - containerName - Cosmos DB container name. +// - options - SQLResourcesClientListSQLUserDefinedFunctionsOptions contains the optional parameters for the SQLResourcesClient.NewListSQLUserDefinedFunctionsPager +// method. func (client *SQLResourcesClient) NewListSQLUserDefinedFunctionsPager(resourceGroupName string, accountName string, databaseName string, containerName string, options *SQLResourcesClientListSQLUserDefinedFunctionsOptions) *runtime.Pager[SQLResourcesClientListSQLUserDefinedFunctionsResponse] { return runtime.NewPager(runtime.PagingHandler[SQLResourcesClientListSQLUserDefinedFunctionsResponse]{ More: func(page SQLResourcesClientListSQLUserDefinedFunctionsResponse) bool { @@ -2426,7 +2398,7 @@ func (client *SQLResourcesClient) listSQLUserDefinedFunctionsCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2443,13 +2415,14 @@ func (client *SQLResourcesClient) listSQLUserDefinedFunctionsHandleResponse(resp // BeginMigrateSQLContainerToAutoscale - Migrate an Azure Cosmos DB SQL container from manual throughput to autoscale // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseName - Cosmos DB database name. -// containerName - Cosmos DB container name. -// options - SQLResourcesClientBeginMigrateSQLContainerToAutoscaleOptions contains the optional parameters for the SQLResourcesClient.BeginMigrateSQLContainerToAutoscale -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - databaseName - Cosmos DB database name. +// - containerName - Cosmos DB container name. +// - options - SQLResourcesClientBeginMigrateSQLContainerToAutoscaleOptions contains the optional parameters for the SQLResourcesClient.BeginMigrateSQLContainerToAutoscale +// method. func (client *SQLResourcesClient) BeginMigrateSQLContainerToAutoscale(ctx context.Context, resourceGroupName string, accountName string, databaseName string, containerName string, options *SQLResourcesClientBeginMigrateSQLContainerToAutoscaleOptions) (*runtime.Poller[SQLResourcesClientMigrateSQLContainerToAutoscaleResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.migrateSQLContainerToAutoscale(ctx, resourceGroupName, accountName, databaseName, containerName, options) @@ -2464,7 +2437,8 @@ func (client *SQLResourcesClient) BeginMigrateSQLContainerToAutoscale(ctx contex // MigrateSQLContainerToAutoscale - Migrate an Azure Cosmos DB SQL container from manual throughput to autoscale // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *SQLResourcesClient) migrateSQLContainerToAutoscale(ctx context.Context, resourceGroupName string, accountName string, databaseName string, containerName string, options *SQLResourcesClientBeginMigrateSQLContainerToAutoscaleOptions) (*http.Response, error) { req, err := client.migrateSQLContainerToAutoscaleCreateRequest(ctx, resourceGroupName, accountName, databaseName, containerName, options) if err != nil { @@ -2508,7 +2482,7 @@ func (client *SQLResourcesClient) migrateSQLContainerToAutoscaleCreateRequest(ct return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2516,13 +2490,14 @@ func (client *SQLResourcesClient) migrateSQLContainerToAutoscaleCreateRequest(ct // BeginMigrateSQLContainerToManualThroughput - Migrate an Azure Cosmos DB SQL container from autoscale to manual throughput // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseName - Cosmos DB database name. -// containerName - Cosmos DB container name. -// options - SQLResourcesClientBeginMigrateSQLContainerToManualThroughputOptions contains the optional parameters for the -// SQLResourcesClient.BeginMigrateSQLContainerToManualThroughput method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - databaseName - Cosmos DB database name. +// - containerName - Cosmos DB container name. +// - options - SQLResourcesClientBeginMigrateSQLContainerToManualThroughputOptions contains the optional parameters for the +// SQLResourcesClient.BeginMigrateSQLContainerToManualThroughput method. func (client *SQLResourcesClient) BeginMigrateSQLContainerToManualThroughput(ctx context.Context, resourceGroupName string, accountName string, databaseName string, containerName string, options *SQLResourcesClientBeginMigrateSQLContainerToManualThroughputOptions) (*runtime.Poller[SQLResourcesClientMigrateSQLContainerToManualThroughputResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.migrateSQLContainerToManualThroughput(ctx, resourceGroupName, accountName, databaseName, containerName, options) @@ -2537,7 +2512,8 @@ func (client *SQLResourcesClient) BeginMigrateSQLContainerToManualThroughput(ctx // MigrateSQLContainerToManualThroughput - Migrate an Azure Cosmos DB SQL container from autoscale to manual throughput // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *SQLResourcesClient) migrateSQLContainerToManualThroughput(ctx context.Context, resourceGroupName string, accountName string, databaseName string, containerName string, options *SQLResourcesClientBeginMigrateSQLContainerToManualThroughputOptions) (*http.Response, error) { req, err := client.migrateSQLContainerToManualThroughputCreateRequest(ctx, resourceGroupName, accountName, databaseName, containerName, options) if err != nil { @@ -2581,7 +2557,7 @@ func (client *SQLResourcesClient) migrateSQLContainerToManualThroughputCreateReq return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2589,12 +2565,13 @@ func (client *SQLResourcesClient) migrateSQLContainerToManualThroughputCreateReq // BeginMigrateSQLDatabaseToAutoscale - Migrate an Azure Cosmos DB SQL database from manual throughput to autoscale // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseName - Cosmos DB database name. -// options - SQLResourcesClientBeginMigrateSQLDatabaseToAutoscaleOptions contains the optional parameters for the SQLResourcesClient.BeginMigrateSQLDatabaseToAutoscale -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - databaseName - Cosmos DB database name. +// - options - SQLResourcesClientBeginMigrateSQLDatabaseToAutoscaleOptions contains the optional parameters for the SQLResourcesClient.BeginMigrateSQLDatabaseToAutoscale +// method. func (client *SQLResourcesClient) BeginMigrateSQLDatabaseToAutoscale(ctx context.Context, resourceGroupName string, accountName string, databaseName string, options *SQLResourcesClientBeginMigrateSQLDatabaseToAutoscaleOptions) (*runtime.Poller[SQLResourcesClientMigrateSQLDatabaseToAutoscaleResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.migrateSQLDatabaseToAutoscale(ctx, resourceGroupName, accountName, databaseName, options) @@ -2609,7 +2586,8 @@ func (client *SQLResourcesClient) BeginMigrateSQLDatabaseToAutoscale(ctx context // MigrateSQLDatabaseToAutoscale - Migrate an Azure Cosmos DB SQL database from manual throughput to autoscale // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *SQLResourcesClient) migrateSQLDatabaseToAutoscale(ctx context.Context, resourceGroupName string, accountName string, databaseName string, options *SQLResourcesClientBeginMigrateSQLDatabaseToAutoscaleOptions) (*http.Response, error) { req, err := client.migrateSQLDatabaseToAutoscaleCreateRequest(ctx, resourceGroupName, accountName, databaseName, options) if err != nil { @@ -2649,7 +2627,7 @@ func (client *SQLResourcesClient) migrateSQLDatabaseToAutoscaleCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2657,12 +2635,13 @@ func (client *SQLResourcesClient) migrateSQLDatabaseToAutoscaleCreateRequest(ctx // BeginMigrateSQLDatabaseToManualThroughput - Migrate an Azure Cosmos DB SQL database from autoscale to manual throughput // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseName - Cosmos DB database name. -// options - SQLResourcesClientBeginMigrateSQLDatabaseToManualThroughputOptions contains the optional parameters for the SQLResourcesClient.BeginMigrateSQLDatabaseToManualThroughput -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - databaseName - Cosmos DB database name. +// - options - SQLResourcesClientBeginMigrateSQLDatabaseToManualThroughputOptions contains the optional parameters for the SQLResourcesClient.BeginMigrateSQLDatabaseToManualThroughput +// method. func (client *SQLResourcesClient) BeginMigrateSQLDatabaseToManualThroughput(ctx context.Context, resourceGroupName string, accountName string, databaseName string, options *SQLResourcesClientBeginMigrateSQLDatabaseToManualThroughputOptions) (*runtime.Poller[SQLResourcesClientMigrateSQLDatabaseToManualThroughputResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.migrateSQLDatabaseToManualThroughput(ctx, resourceGroupName, accountName, databaseName, options) @@ -2677,7 +2656,8 @@ func (client *SQLResourcesClient) BeginMigrateSQLDatabaseToManualThroughput(ctx // MigrateSQLDatabaseToManualThroughput - Migrate an Azure Cosmos DB SQL database from autoscale to manual throughput // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *SQLResourcesClient) migrateSQLDatabaseToManualThroughput(ctx context.Context, resourceGroupName string, accountName string, databaseName string, options *SQLResourcesClientBeginMigrateSQLDatabaseToManualThroughputOptions) (*http.Response, error) { req, err := client.migrateSQLDatabaseToManualThroughputCreateRequest(ctx, resourceGroupName, accountName, databaseName, options) if err != nil { @@ -2717,7 +2697,7 @@ func (client *SQLResourcesClient) migrateSQLDatabaseToManualThroughputCreateRequ return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -2725,14 +2705,15 @@ func (client *SQLResourcesClient) migrateSQLDatabaseToManualThroughputCreateRequ // BeginRetrieveContinuousBackupInformation - Retrieves continuous backup information for a container resource. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseName - Cosmos DB database name. -// containerName - Cosmos DB container name. -// location - The name of the continuous backup restore location. -// options - SQLResourcesClientBeginRetrieveContinuousBackupInformationOptions contains the optional parameters for the SQLResourcesClient.BeginRetrieveContinuousBackupInformation -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - databaseName - Cosmos DB database name. +// - containerName - Cosmos DB container name. +// - location - The name of the continuous backup restore location. +// - options - SQLResourcesClientBeginRetrieveContinuousBackupInformationOptions contains the optional parameters for the SQLResourcesClient.BeginRetrieveContinuousBackupInformation +// method. func (client *SQLResourcesClient) BeginRetrieveContinuousBackupInformation(ctx context.Context, resourceGroupName string, accountName string, databaseName string, containerName string, location ContinuousBackupRestoreLocation, options *SQLResourcesClientBeginRetrieveContinuousBackupInformationOptions) (*runtime.Poller[SQLResourcesClientRetrieveContinuousBackupInformationResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.retrieveContinuousBackupInformation(ctx, resourceGroupName, accountName, databaseName, containerName, location, options) @@ -2749,7 +2730,8 @@ func (client *SQLResourcesClient) BeginRetrieveContinuousBackupInformation(ctx c // RetrieveContinuousBackupInformation - Retrieves continuous backup information for a container resource. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *SQLResourcesClient) retrieveContinuousBackupInformation(ctx context.Context, resourceGroupName string, accountName string, databaseName string, containerName string, location ContinuousBackupRestoreLocation, options *SQLResourcesClientBeginRetrieveContinuousBackupInformationOptions) (*http.Response, error) { req, err := client.retrieveContinuousBackupInformationCreateRequest(ctx, resourceGroupName, accountName, databaseName, containerName, location, options) if err != nil { @@ -2793,316 +2775,23 @@ func (client *SQLResourcesClient) retrieveContinuousBackupInformationCreateReque return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, location) } -// BeginSQLContainerRedistributeThroughput - Redistribute throughput for an Azure Cosmos DB SQL container -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseName - Cosmos DB database name. -// containerName - Cosmos DB container name. -// redistributeThroughputParameters - The parameters to provide for redistributing throughput for the current SQL container. -// options - SQLResourcesClientBeginSQLContainerRedistributeThroughputOptions contains the optional parameters for the SQLResourcesClient.BeginSQLContainerRedistributeThroughput -// method. -func (client *SQLResourcesClient) BeginSQLContainerRedistributeThroughput(ctx context.Context, resourceGroupName string, accountName string, databaseName string, containerName string, redistributeThroughputParameters RedistributeThroughputParameters, options *SQLResourcesClientBeginSQLContainerRedistributeThroughputOptions) (*runtime.Poller[SQLResourcesClientSQLContainerRedistributeThroughputResponse], error) { - if options == nil || options.ResumeToken == "" { - resp, err := client.sQLContainerRedistributeThroughput(ctx, resourceGroupName, accountName, databaseName, containerName, redistributeThroughputParameters, options) - if err != nil { - return nil, err - } - return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[SQLResourcesClientSQLContainerRedistributeThroughputResponse]{ - FinalStateVia: runtime.FinalStateViaLocation, - }) - } else { - return runtime.NewPollerFromResumeToken[SQLResourcesClientSQLContainerRedistributeThroughputResponse](options.ResumeToken, client.pl, nil) - } -} - -// SQLContainerRedistributeThroughput - Redistribute throughput for an Azure Cosmos DB SQL container -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -func (client *SQLResourcesClient) sQLContainerRedistributeThroughput(ctx context.Context, resourceGroupName string, accountName string, databaseName string, containerName string, redistributeThroughputParameters RedistributeThroughputParameters, options *SQLResourcesClientBeginSQLContainerRedistributeThroughputOptions) (*http.Response, error) { - req, err := client.sqlContainerRedistributeThroughputCreateRequest(ctx, resourceGroupName, accountName, databaseName, containerName, redistributeThroughputParameters, options) - if err != nil { - return nil, err - } - resp, err := client.pl.Do(req) - if err != nil { - return nil, err - } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) - } - return resp, nil -} - -// sqlContainerRedistributeThroughputCreateRequest creates the SQLContainerRedistributeThroughput request. -func (client *SQLResourcesClient) sqlContainerRedistributeThroughputCreateRequest(ctx context.Context, resourceGroupName string, accountName string, databaseName string, containerName string, redistributeThroughputParameters RedistributeThroughputParameters, options *SQLResourcesClientBeginSQLContainerRedistributeThroughputOptions) (*policy.Request, error) { - urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/throughputSettings/default/redistributeThroughput" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - if resourceGroupName == "" { - return nil, errors.New("parameter resourceGroupName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) - if accountName == "" { - return nil, errors.New("parameter accountName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{accountName}", url.PathEscape(accountName)) - if databaseName == "" { - return nil, errors.New("parameter databaseName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{databaseName}", url.PathEscape(databaseName)) - if containerName == "" { - return nil, errors.New("parameter containerName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{containerName}", url.PathEscape(containerName)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) - if err != nil { - return nil, err - } - reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") - req.Raw().URL.RawQuery = reqQP.Encode() - req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, redistributeThroughputParameters) -} - -// BeginSQLContainerRetrieveThroughputDistribution - Retrieve throughput distribution for an Azure Cosmos DB SQL container -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseName - Cosmos DB database name. -// containerName - Cosmos DB container name. -// retrieveThroughputParameters - The parameters to provide for retrieving throughput distribution for the current SQL container. -// options - SQLResourcesClientBeginSQLContainerRetrieveThroughputDistributionOptions contains the optional parameters for -// the SQLResourcesClient.BeginSQLContainerRetrieveThroughputDistribution method. -func (client *SQLResourcesClient) BeginSQLContainerRetrieveThroughputDistribution(ctx context.Context, resourceGroupName string, accountName string, databaseName string, containerName string, retrieveThroughputParameters RetrieveThroughputParameters, options *SQLResourcesClientBeginSQLContainerRetrieveThroughputDistributionOptions) (*runtime.Poller[SQLResourcesClientSQLContainerRetrieveThroughputDistributionResponse], error) { - if options == nil || options.ResumeToken == "" { - resp, err := client.sQLContainerRetrieveThroughputDistribution(ctx, resourceGroupName, accountName, databaseName, containerName, retrieveThroughputParameters, options) - if err != nil { - return nil, err - } - return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[SQLResourcesClientSQLContainerRetrieveThroughputDistributionResponse]{ - FinalStateVia: runtime.FinalStateViaLocation, - }) - } else { - return runtime.NewPollerFromResumeToken[SQLResourcesClientSQLContainerRetrieveThroughputDistributionResponse](options.ResumeToken, client.pl, nil) - } -} - -// SQLContainerRetrieveThroughputDistribution - Retrieve throughput distribution for an Azure Cosmos DB SQL container -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -func (client *SQLResourcesClient) sQLContainerRetrieveThroughputDistribution(ctx context.Context, resourceGroupName string, accountName string, databaseName string, containerName string, retrieveThroughputParameters RetrieveThroughputParameters, options *SQLResourcesClientBeginSQLContainerRetrieveThroughputDistributionOptions) (*http.Response, error) { - req, err := client.sqlContainerRetrieveThroughputDistributionCreateRequest(ctx, resourceGroupName, accountName, databaseName, containerName, retrieveThroughputParameters, options) - if err != nil { - return nil, err - } - resp, err := client.pl.Do(req) - if err != nil { - return nil, err - } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) - } - return resp, nil -} - -// sqlContainerRetrieveThroughputDistributionCreateRequest creates the SQLContainerRetrieveThroughputDistribution request. -func (client *SQLResourcesClient) sqlContainerRetrieveThroughputDistributionCreateRequest(ctx context.Context, resourceGroupName string, accountName string, databaseName string, containerName string, retrieveThroughputParameters RetrieveThroughputParameters, options *SQLResourcesClientBeginSQLContainerRetrieveThroughputDistributionOptions) (*policy.Request, error) { - urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/throughputSettings/default/retrieveThroughputDistribution" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - if resourceGroupName == "" { - return nil, errors.New("parameter resourceGroupName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) - if accountName == "" { - return nil, errors.New("parameter accountName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{accountName}", url.PathEscape(accountName)) - if databaseName == "" { - return nil, errors.New("parameter databaseName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{databaseName}", url.PathEscape(databaseName)) - if containerName == "" { - return nil, errors.New("parameter containerName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{containerName}", url.PathEscape(containerName)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) - if err != nil { - return nil, err - } - reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") - req.Raw().URL.RawQuery = reqQP.Encode() - req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, retrieveThroughputParameters) -} - -// BeginSQLDatabaseRedistributeThroughput - Redistribute throughput for an Azure Cosmos DB SQL database -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseName - Cosmos DB database name. -// redistributeThroughputParameters - The parameters to provide for redistributing throughput for the current SQL database. -// options - SQLResourcesClientBeginSQLDatabaseRedistributeThroughputOptions contains the optional parameters for the SQLResourcesClient.BeginSQLDatabaseRedistributeThroughput -// method. -func (client *SQLResourcesClient) BeginSQLDatabaseRedistributeThroughput(ctx context.Context, resourceGroupName string, accountName string, databaseName string, redistributeThroughputParameters RedistributeThroughputParameters, options *SQLResourcesClientBeginSQLDatabaseRedistributeThroughputOptions) (*runtime.Poller[SQLResourcesClientSQLDatabaseRedistributeThroughputResponse], error) { - if options == nil || options.ResumeToken == "" { - resp, err := client.sQLDatabaseRedistributeThroughput(ctx, resourceGroupName, accountName, databaseName, redistributeThroughputParameters, options) - if err != nil { - return nil, err - } - return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[SQLResourcesClientSQLDatabaseRedistributeThroughputResponse]{ - FinalStateVia: runtime.FinalStateViaLocation, - }) - } else { - return runtime.NewPollerFromResumeToken[SQLResourcesClientSQLDatabaseRedistributeThroughputResponse](options.ResumeToken, client.pl, nil) - } -} - -// SQLDatabaseRedistributeThroughput - Redistribute throughput for an Azure Cosmos DB SQL database -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -func (client *SQLResourcesClient) sQLDatabaseRedistributeThroughput(ctx context.Context, resourceGroupName string, accountName string, databaseName string, redistributeThroughputParameters RedistributeThroughputParameters, options *SQLResourcesClientBeginSQLDatabaseRedistributeThroughputOptions) (*http.Response, error) { - req, err := client.sqlDatabaseRedistributeThroughputCreateRequest(ctx, resourceGroupName, accountName, databaseName, redistributeThroughputParameters, options) - if err != nil { - return nil, err - } - resp, err := client.pl.Do(req) - if err != nil { - return nil, err - } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) - } - return resp, nil -} - -// sqlDatabaseRedistributeThroughputCreateRequest creates the SQLDatabaseRedistributeThroughput request. -func (client *SQLResourcesClient) sqlDatabaseRedistributeThroughputCreateRequest(ctx context.Context, resourceGroupName string, accountName string, databaseName string, redistributeThroughputParameters RedistributeThroughputParameters, options *SQLResourcesClientBeginSQLDatabaseRedistributeThroughputOptions) (*policy.Request, error) { - urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/throughputSettings/default/redistributeThroughput" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - if resourceGroupName == "" { - return nil, errors.New("parameter resourceGroupName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) - if accountName == "" { - return nil, errors.New("parameter accountName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{accountName}", url.PathEscape(accountName)) - if databaseName == "" { - return nil, errors.New("parameter databaseName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{databaseName}", url.PathEscape(databaseName)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) - if err != nil { - return nil, err - } - reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") - req.Raw().URL.RawQuery = reqQP.Encode() - req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, redistributeThroughputParameters) -} - -// BeginSQLDatabaseRetrieveThroughputDistribution - Retrieve throughput distribution for an Azure Cosmos DB SQL database -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseName - Cosmos DB database name. -// retrieveThroughputParameters - The parameters to provide for retrieving throughput distribution for the current SQL database. -// options - SQLResourcesClientBeginSQLDatabaseRetrieveThroughputDistributionOptions contains the optional parameters for -// the SQLResourcesClient.BeginSQLDatabaseRetrieveThroughputDistribution method. -func (client *SQLResourcesClient) BeginSQLDatabaseRetrieveThroughputDistribution(ctx context.Context, resourceGroupName string, accountName string, databaseName string, retrieveThroughputParameters RetrieveThroughputParameters, options *SQLResourcesClientBeginSQLDatabaseRetrieveThroughputDistributionOptions) (*runtime.Poller[SQLResourcesClientSQLDatabaseRetrieveThroughputDistributionResponse], error) { - if options == nil || options.ResumeToken == "" { - resp, err := client.sQLDatabaseRetrieveThroughputDistribution(ctx, resourceGroupName, accountName, databaseName, retrieveThroughputParameters, options) - if err != nil { - return nil, err - } - return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[SQLResourcesClientSQLDatabaseRetrieveThroughputDistributionResponse]{ - FinalStateVia: runtime.FinalStateViaLocation, - }) - } else { - return runtime.NewPollerFromResumeToken[SQLResourcesClientSQLDatabaseRetrieveThroughputDistributionResponse](options.ResumeToken, client.pl, nil) - } -} - -// SQLDatabaseRetrieveThroughputDistribution - Retrieve throughput distribution for an Azure Cosmos DB SQL database -// If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -func (client *SQLResourcesClient) sQLDatabaseRetrieveThroughputDistribution(ctx context.Context, resourceGroupName string, accountName string, databaseName string, retrieveThroughputParameters RetrieveThroughputParameters, options *SQLResourcesClientBeginSQLDatabaseRetrieveThroughputDistributionOptions) (*http.Response, error) { - req, err := client.sqlDatabaseRetrieveThroughputDistributionCreateRequest(ctx, resourceGroupName, accountName, databaseName, retrieveThroughputParameters, options) - if err != nil { - return nil, err - } - resp, err := client.pl.Do(req) - if err != nil { - return nil, err - } - if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted) { - return nil, runtime.NewResponseError(resp) - } - return resp, nil -} - -// sqlDatabaseRetrieveThroughputDistributionCreateRequest creates the SQLDatabaseRetrieveThroughputDistribution request. -func (client *SQLResourcesClient) sqlDatabaseRetrieveThroughputDistributionCreateRequest(ctx context.Context, resourceGroupName string, accountName string, databaseName string, retrieveThroughputParameters RetrieveThroughputParameters, options *SQLResourcesClientBeginSQLDatabaseRetrieveThroughputDistributionOptions) (*policy.Request, error) { - urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/throughputSettings/default/retrieveThroughputDistribution" - if client.subscriptionID == "" { - return nil, errors.New("parameter client.subscriptionID cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) - if resourceGroupName == "" { - return nil, errors.New("parameter resourceGroupName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) - if accountName == "" { - return nil, errors.New("parameter accountName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{accountName}", url.PathEscape(accountName)) - if databaseName == "" { - return nil, errors.New("parameter databaseName cannot be empty") - } - urlPath = strings.ReplaceAll(urlPath, "{databaseName}", url.PathEscape(databaseName)) - req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.host, urlPath)) - if err != nil { - return nil, err - } - reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") - req.Raw().URL.RawQuery = reqQP.Encode() - req.Raw().Header["Accept"] = []string{"application/json"} - return req, runtime.MarshalAsJSON(req, retrieveThroughputParameters) -} - // BeginUpdateSQLContainerThroughput - Update RUs per second of an Azure Cosmos DB SQL container // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseName - Cosmos DB database name. -// containerName - Cosmos DB container name. -// updateThroughputParameters - The parameters to provide for the RUs per second of the current SQL container. -// options - SQLResourcesClientBeginUpdateSQLContainerThroughputOptions contains the optional parameters for the SQLResourcesClient.BeginUpdateSQLContainerThroughput -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - databaseName - Cosmos DB database name. +// - containerName - Cosmos DB container name. +// - updateThroughputParameters - The parameters to provide for the RUs per second of the current SQL container. +// - options - SQLResourcesClientBeginUpdateSQLContainerThroughputOptions contains the optional parameters for the SQLResourcesClient.BeginUpdateSQLContainerThroughput +// method. func (client *SQLResourcesClient) BeginUpdateSQLContainerThroughput(ctx context.Context, resourceGroupName string, accountName string, databaseName string, containerName string, updateThroughputParameters ThroughputSettingsUpdateParameters, options *SQLResourcesClientBeginUpdateSQLContainerThroughputOptions) (*runtime.Poller[SQLResourcesClientUpdateSQLContainerThroughputResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.updateSQLContainerThroughput(ctx, resourceGroupName, accountName, databaseName, containerName, updateThroughputParameters, options) @@ -3117,7 +2806,8 @@ func (client *SQLResourcesClient) BeginUpdateSQLContainerThroughput(ctx context. // UpdateSQLContainerThroughput - Update RUs per second of an Azure Cosmos DB SQL container // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *SQLResourcesClient) updateSQLContainerThroughput(ctx context.Context, resourceGroupName string, accountName string, databaseName string, containerName string, updateThroughputParameters ThroughputSettingsUpdateParameters, options *SQLResourcesClientBeginUpdateSQLContainerThroughputOptions) (*http.Response, error) { req, err := client.updateSQLContainerThroughputCreateRequest(ctx, resourceGroupName, accountName, databaseName, containerName, updateThroughputParameters, options) if err != nil { @@ -3161,7 +2851,7 @@ func (client *SQLResourcesClient) updateSQLContainerThroughputCreateRequest(ctx return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, updateThroughputParameters) @@ -3169,13 +2859,14 @@ func (client *SQLResourcesClient) updateSQLContainerThroughputCreateRequest(ctx // BeginUpdateSQLDatabaseThroughput - Update RUs per second of an Azure Cosmos DB SQL database // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// databaseName - Cosmos DB database name. -// updateThroughputParameters - The parameters to provide for the RUs per second of the current SQL database. -// options - SQLResourcesClientBeginUpdateSQLDatabaseThroughputOptions contains the optional parameters for the SQLResourcesClient.BeginUpdateSQLDatabaseThroughput -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - databaseName - Cosmos DB database name. +// - updateThroughputParameters - The parameters to provide for the RUs per second of the current SQL database. +// - options - SQLResourcesClientBeginUpdateSQLDatabaseThroughputOptions contains the optional parameters for the SQLResourcesClient.BeginUpdateSQLDatabaseThroughput +// method. func (client *SQLResourcesClient) BeginUpdateSQLDatabaseThroughput(ctx context.Context, resourceGroupName string, accountName string, databaseName string, updateThroughputParameters ThroughputSettingsUpdateParameters, options *SQLResourcesClientBeginUpdateSQLDatabaseThroughputOptions) (*runtime.Poller[SQLResourcesClientUpdateSQLDatabaseThroughputResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.updateSQLDatabaseThroughput(ctx, resourceGroupName, accountName, databaseName, updateThroughputParameters, options) @@ -3190,7 +2881,8 @@ func (client *SQLResourcesClient) BeginUpdateSQLDatabaseThroughput(ctx context.C // UpdateSQLDatabaseThroughput - Update RUs per second of an Azure Cosmos DB SQL database // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *SQLResourcesClient) updateSQLDatabaseThroughput(ctx context.Context, resourceGroupName string, accountName string, databaseName string, updateThroughputParameters ThroughputSettingsUpdateParameters, options *SQLResourcesClientBeginUpdateSQLDatabaseThroughputOptions) (*http.Response, error) { req, err := client.updateSQLDatabaseThroughputCreateRequest(ctx, resourceGroupName, accountName, databaseName, updateThroughputParameters, options) if err != nil { @@ -3230,7 +2922,7 @@ func (client *SQLResourcesClient) updateSQLDatabaseThroughputCreateRequest(ctx c return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, updateThroughputParameters) diff --git a/sdk/resourcemanager/cosmos/armcosmos/sqlresources_client_example_test.go b/sdk/resourcemanager/cosmos/armcosmos/sqlresources_client_example_test.go index 58076826513b..bfd9a4f31366 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/sqlresources_client_example_test.go +++ b/sdk/resourcemanager/cosmos/armcosmos/sqlresources_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armcosmos_test @@ -12,14 +13,12 @@ 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/cosmos/armcosmos/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBSqlDatabaseList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBSqlDatabaseList.json func ExampleSQLResourcesClient_NewListSQLDatabasesPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -32,18 +31,40 @@ func ExampleSQLResourcesClient_NewListSQLDatabasesPager() { } pager := client.NewListSQLDatabasesPager("rgName", "ddb1", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.SQLDatabaseListResult = armcosmos.SQLDatabaseListResult{ + // Value: []*armcosmos.SQLDatabaseGetResults{ + // { + // Name: to.Ptr("databaseName"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/sqlDatabases"), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName"), + // Location: to.Ptr("West US"), + // Tags: map[string]*string{ + // }, + // Properties: &armcosmos.SQLDatabaseGetProperties{ + // Resource: &armcosmos.SQLDatabaseGetPropertiesResource{ + // Etag: to.Ptr("\"00000a00-0000-0000-0000-56672f920000\""), + // Rid: to.Ptr("CqNBAA=="), + // Ts: to.Ptr[float32](1449602962), + // ID: to.Ptr("databaseName"), + // Colls: to.Ptr("colls/"), + // Users: to.Ptr("users/"), + // }, + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBSqlDatabaseGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBSqlDatabaseGet.json func ExampleSQLResourcesClient_GetSQLDatabase() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -58,12 +79,31 @@ func ExampleSQLResourcesClient_GetSQLDatabase() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.SQLDatabaseGetResults = armcosmos.SQLDatabaseGetResults{ + // Name: to.Ptr("databaseName"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/sqlDatabases"), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName"), + // Location: to.Ptr("West US"), + // Tags: map[string]*string{ + // }, + // Properties: &armcosmos.SQLDatabaseGetProperties{ + // Resource: &armcosmos.SQLDatabaseGetPropertiesResource{ + // Etag: to.Ptr("\"00000a00-0000-0000-0000-56672f920000\""), + // Rid: to.Ptr("CqNBAA=="), + // Ts: to.Ptr[float32](1449602962), + // ID: to.Ptr("databaseName"), + // Colls: to.Ptr("colls/"), + // Users: to.Ptr("users/"), + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBSqlDatabaseCreateUpdate.json -func ExampleSQLResourcesClient_BeginCreateUpdateSQLDatabase_cosmosDbSqlDatabaseCreateUpdate() { +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBSqlDatabaseCreateUpdate.json +func ExampleSQLResourcesClient_BeginCreateUpdateSQLDatabase() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -90,48 +130,28 @@ func ExampleSQLResourcesClient_BeginCreateUpdateSQLDatabase_cosmosDbSqlDatabaseC if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.SQLDatabaseGetResults = armcosmos.SQLDatabaseGetResults{ + // Name: to.Ptr("databaseName"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/sqlDatabases"), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName"), + // Location: to.Ptr("West US"), + // Tags: map[string]*string{ + // }, + // Properties: &armcosmos.SQLDatabaseGetProperties{ + // Resource: &armcosmos.SQLDatabaseGetPropertiesResource{ + // Etag: to.Ptr("\"00000a00-0000-0000-0000-56672f920000\""), + // Rid: to.Ptr("CqNBAA=="), + // Ts: to.Ptr[float32](1449602962), + // ID: to.Ptr("databaseName"), + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBSqlDatabaseRestore.json -func ExampleSQLResourcesClient_BeginCreateUpdateSQLDatabase_cosmosDbSqlDatabaseRestore() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcosmos.NewSQLResourcesClient("subid", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginCreateUpdateSQLDatabase(ctx, "rg1", "ddb1", "databaseName", armcosmos.SQLDatabaseCreateUpdateParameters{ - Location: to.Ptr("West US"), - Tags: map[string]*string{}, - Properties: &armcosmos.SQLDatabaseCreateUpdateProperties{ - Options: &armcosmos.CreateUpdateOptions{}, - Resource: &armcosmos.SQLDatabaseResource{ - CreateMode: to.Ptr(armcosmos.CreateModeRestore), - ID: to.Ptr("databaseName"), - RestoreParameters: &armcosmos.ResourceRestoreParameters{ - RestoreSource: to.Ptr("/subscriptions/subid/providers/Microsoft.DocumentDB/locations/WestUS/restorableDatabaseAccounts/restorableDatabaseAccountId"), - RestoreTimestampInUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-07-20T18:28:00Z"); return t }()), - }, - }, - }, - }, 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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBSqlDatabaseDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBSqlDatabaseDelete.json func ExampleSQLResourcesClient_BeginDeleteSQLDatabase() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -152,7 +172,7 @@ func ExampleSQLResourcesClient_BeginDeleteSQLDatabase() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBSqlDatabaseThroughputGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBSqlDatabaseThroughputGet.json func ExampleSQLResourcesClient_GetSQLDatabaseThroughput() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -167,11 +187,30 @@ func ExampleSQLResourcesClient_GetSQLDatabaseThroughput() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.ThroughputSettingsGetResults = armcosmos.ThroughputSettingsGetResults{ + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/sqlDatabases/throughputSettings"), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/throughputSettings/default"), + // Location: to.Ptr("West US"), + // Tags: map[string]*string{ + // }, + // Properties: &armcosmos.ThroughputSettingsGetProperties{ + // Resource: &armcosmos.ThroughputSettingsGetPropertiesResource{ + // Etag: to.Ptr("\"00005900-0000-0000-0000-56f9a2630000\""), + // Rid: to.Ptr("PD5DALigDgw="), + // Ts: to.Ptr[float32](1459200611), + // MinimumThroughput: to.Ptr("400"), + // OfferReplacePending: to.Ptr("true"), + // Throughput: to.Ptr[int32](400), + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBSqlDatabaseThroughputUpdate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBSqlDatabaseThroughputUpdate.json func ExampleSQLResourcesClient_BeginUpdateSQLDatabaseThroughput() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -198,11 +237,30 @@ func ExampleSQLResourcesClient_BeginUpdateSQLDatabaseThroughput() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.ThroughputSettingsGetResults = armcosmos.ThroughputSettingsGetResults{ + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/sqlDatabases/throughputSettings"), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/throughputSettings/default"), + // Location: to.Ptr("West US"), + // Tags: map[string]*string{ + // }, + // Properties: &armcosmos.ThroughputSettingsGetProperties{ + // Resource: &armcosmos.ThroughputSettingsGetPropertiesResource{ + // Etag: to.Ptr("\"00005900-0000-0000-0000-56f9a2630000\""), + // Rid: to.Ptr("PD5DALigDgw="), + // Ts: to.Ptr[float32](1459200611), + // MinimumThroughput: to.Ptr("400"), + // OfferReplacePending: to.Ptr("true"), + // Throughput: to.Ptr[int32](400), + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBSqlDatabaseMigrateToAutoscale.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBSqlDatabaseMigrateToAutoscale.json func ExampleSQLResourcesClient_BeginMigrateSQLDatabaseToAutoscale() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -221,11 +279,27 @@ func ExampleSQLResourcesClient_BeginMigrateSQLDatabaseToAutoscale() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.ThroughputSettingsGetResults = armcosmos.ThroughputSettingsGetResults{ + // Properties: &armcosmos.ThroughputSettingsGetProperties{ + // Resource: &armcosmos.ThroughputSettingsGetPropertiesResource{ + // Etag: to.Ptr("\"00005900-0000-0000-0000-56f9a2630000\""), + // Rid: to.Ptr("PD5DALigDgw="), + // Ts: to.Ptr[float32](1459200611), + // AutoscaleSettings: &armcosmos.AutoscaleSettingsResource{ + // MaxThroughput: to.Ptr[int32](4000), + // }, + // MinimumThroughput: to.Ptr("4000"), + // OfferReplacePending: to.Ptr("false"), + // Throughput: to.Ptr[int32](400), + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBSqlDatabaseMigrateToManualThroughput.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBSqlDatabaseMigrateToManualThroughput.json func ExampleSQLResourcesClient_BeginMigrateSQLDatabaseToManualThroughput() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -244,91 +318,24 @@ func ExampleSQLResourcesClient_BeginMigrateSQLDatabaseToManualThroughput() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.ThroughputSettingsGetResults = armcosmos.ThroughputSettingsGetResults{ + // Properties: &armcosmos.ThroughputSettingsGetProperties{ + // Resource: &armcosmos.ThroughputSettingsGetPropertiesResource{ + // Etag: to.Ptr("\"00005900-0000-0000-0000-56f9a2630000\""), + // Rid: to.Ptr("PD5DALigDgw="), + // Ts: to.Ptr[float32](1459200611), + // MinimumThroughput: to.Ptr("400"), + // OfferReplacePending: to.Ptr("true"), + // Throughput: to.Ptr[int32](400), + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBSqlClientEncryptionKeysList.json -func ExampleSQLResourcesClient_NewListClientEncryptionKeysPager() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcosmos.NewSQLResourcesClient("subId", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - pager := client.NewListClientEncryptionKeysPager("rgName", "accountName", "databaseName", nil) - for pager.More() { - nextResult, err := pager.NextPage(ctx) - if err != nil { - log.Fatalf("failed to advance page: %v", err) - } - for _, v := range nextResult.Value { - // TODO: use page item - _ = v - } - } -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBSqlClientEncryptionKeyGet.json -func ExampleSQLResourcesClient_GetClientEncryptionKey() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcosmos.NewSQLResourcesClient("subId", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - res, err := client.GetClientEncryptionKey(ctx, "rgName", "accountName", "databaseName", "cekName", nil) - if err != nil { - log.Fatalf("failed to finish the request: %v", err) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBSqlClientEncryptionKeyCreateUpdate.json -func ExampleSQLResourcesClient_BeginCreateUpdateClientEncryptionKey() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcosmos.NewSQLResourcesClient("subId", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginCreateUpdateClientEncryptionKey(ctx, "rgName", "accountName", "databaseName", "cekName", armcosmos.ClientEncryptionKeyCreateUpdateParameters{ - Properties: &armcosmos.ClientEncryptionKeyCreateUpdateProperties{ - Resource: &armcosmos.ClientEncryptionKeyResource{ - EncryptionAlgorithm: to.Ptr("AEAD_AES_256_CBC_HMAC_SHA256"), - ID: to.Ptr("cekName"), - KeyWrapMetadata: &armcosmos.KeyWrapMetadata{ - Name: to.Ptr("customerManagedKey"), - Type: to.Ptr("AzureKeyVault"), - Algorithm: to.Ptr("RSA-OAEP"), - Value: to.Ptr("AzureKeyVault Key URL"), - }, - WrappedDataEncryptionKey: []byte("This is actually an array of bytes. This request/response is being presented as a string for readability in the example"), - }, - }, - }, 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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBSqlContainerList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBSqlContainerList.json func ExampleSQLResourcesClient_NewListSQLContainersPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -341,18 +348,218 @@ func ExampleSQLResourcesClient_NewListSQLContainersPager() { } pager := client.NewListSQLContainersPager("rgName", "ddb1", "databaseName", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.SQLContainerListResult = armcosmos.SQLContainerListResult{ + // Value: []*armcosmos.SQLContainerGetResults{ + // { + // Name: to.Ptr("containerName"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/sqlDatabases/sqlContainers"), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/containers/containerName"), + // Location: to.Ptr("West US"), + // Tags: map[string]*string{ + // }, + // Properties: &armcosmos.SQLContainerGetProperties{ + // Resource: &armcosmos.SQLContainerGetPropertiesResource{ + // Etag: to.Ptr("\"00005900-0000-0000-0000-56f9a2630000\""), + // Rid: to.Ptr("PD5DALigDgw="), + // Ts: to.Ptr[float32](1459200611), + // ClientEncryptionPolicy: &armcosmos.ClientEncryptionPolicy{ + // IncludedPaths: []*armcosmos.ClientEncryptionIncludedPath{ + // { + // Path: to.Ptr("/path"), + // ClientEncryptionKeyID: to.Ptr("keyId"), + // EncryptionAlgorithm: to.Ptr("AEAD_AES_256_CBC_HMAC_SHA256"), + // EncryptionType: to.Ptr("Deterministic"), + // }}, + // PolicyFormatVersion: to.Ptr[int32](1), + // }, + // ConflictResolutionPolicy: &armcosmos.ConflictResolutionPolicy{ + // ConflictResolutionPath: to.Ptr("/path"), + // Mode: to.Ptr(armcosmos.ConflictResolutionModeLastWriterWins), + // }, + // DefaultTTL: to.Ptr[int32](100), + // ID: to.Ptr("testctn"), + // IndexingPolicy: &armcosmos.IndexingPolicy{ + // Automatic: to.Ptr(true), + // ExcludedPaths: []*armcosmos.ExcludedPath{ + // }, + // IncludedPaths: []*armcosmos.IncludedPath{ + // { + // Path: to.Ptr("/*"), + // Indexes: []*armcosmos.Indexes{ + // { + // DataType: to.Ptr(armcosmos.DataTypeString), + // Kind: to.Ptr(armcosmos.IndexKindRange), + // Precision: to.Ptr[int32](-1), + // }, + // { + // DataType: to.Ptr(armcosmos.DataTypeNumber), + // Kind: to.Ptr(armcosmos.IndexKindRange), + // Precision: to.Ptr[int32](-1), + // }}, + // }}, + // IndexingMode: to.Ptr(armcosmos.IndexingModeConsistent), + // }, + // PartitionKey: &armcosmos.ContainerPartitionKey{ + // Kind: to.Ptr(armcosmos.PartitionKindHash), + // Paths: []*string{ + // to.Ptr("/AccountNumber")}, + // }, + // UniqueKeyPolicy: &armcosmos.UniqueKeyPolicy{ + // UniqueKeys: []*armcosmos.UniqueKey{ + // { + // Paths: []*string{ + // to.Ptr("/testPath")}, + // }}, + // }, + // }, + // }, + // }, + // { + // Name: to.Ptr("containerName1"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/sqlDatabases/sqlContainers"), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/sqlContainers/containerName1"), + // Location: to.Ptr("West US"), + // Tags: map[string]*string{ + // }, + // Properties: &armcosmos.SQLContainerGetProperties{ + // Resource: &armcosmos.SQLContainerGetPropertiesResource{ + // Etag: to.Ptr("\"00005900-0000-0000-0000-56f9a2630000\""), + // Rid: to.Ptr("PD5DALigDiw="), + // Ts: to.Ptr[float32](1459200611), + // ClientEncryptionPolicy: &armcosmos.ClientEncryptionPolicy{ + // IncludedPaths: []*armcosmos.ClientEncryptionIncludedPath{ + // { + // Path: to.Ptr("/path"), + // ClientEncryptionKeyID: to.Ptr("keyId"), + // EncryptionAlgorithm: to.Ptr("AEAD_AES_256_CBC_HMAC_SHA256"), + // EncryptionType: to.Ptr("Deterministic"), + // }}, + // PolicyFormatVersion: to.Ptr[int32](1), + // }, + // ConflictResolutionPolicy: &armcosmos.ConflictResolutionPolicy{ + // ConflictResolutionPath: to.Ptr("/path"), + // Mode: to.Ptr(armcosmos.ConflictResolutionModeLastWriterWins), + // }, + // DefaultTTL: to.Ptr[int32](100), + // ID: to.Ptr("testctn1"), + // IndexingPolicy: &armcosmos.IndexingPolicy{ + // Automatic: to.Ptr(true), + // ExcludedPaths: []*armcosmos.ExcludedPath{ + // }, + // IncludedPaths: []*armcosmos.IncludedPath{ + // { + // Path: to.Ptr("/*"), + // Indexes: []*armcosmos.Indexes{ + // { + // DataType: to.Ptr(armcosmos.DataTypeString), + // Kind: to.Ptr(armcosmos.IndexKindRange), + // Precision: to.Ptr[int32](-1), + // }, + // { + // DataType: to.Ptr(armcosmos.DataTypeNumber), + // Kind: to.Ptr(armcosmos.IndexKindRange), + // Precision: to.Ptr[int32](-1), + // }}, + // }}, + // IndexingMode: to.Ptr(armcosmos.IndexingModeConsistent), + // }, + // PartitionKey: &armcosmos.ContainerPartitionKey{ + // Kind: to.Ptr(armcosmos.PartitionKindMultiHash), + // Paths: []*string{ + // to.Ptr("/AccountNumber"), + // to.Ptr("/AccountLocation")}, + // Version: to.Ptr[int32](2), + // }, + // UniqueKeyPolicy: &armcosmos.UniqueKeyPolicy{ + // UniqueKeys: []*armcosmos.UniqueKey{ + // { + // Paths: []*string{ + // to.Ptr("/testPath")}, + // }}, + // }, + // }, + // }, + // }, + // { + // Name: to.Ptr("containerName2"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/sqlDatabases/sqlContainers"), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/sqlContainers/containerName2"), + // Location: to.Ptr("West US"), + // Tags: map[string]*string{ + // }, + // Properties: &armcosmos.SQLContainerGetProperties{ + // Resource: &armcosmos.SQLContainerGetPropertiesResource{ + // Etag: to.Ptr("\"00005900-0000-0000-0000-56f9a2630000\""), + // Rid: to.Ptr("PD5DALigDhw="), + // Ts: to.Ptr[float32](1459200611), + // ClientEncryptionPolicy: &armcosmos.ClientEncryptionPolicy{ + // IncludedPaths: []*armcosmos.ClientEncryptionIncludedPath{ + // { + // Path: to.Ptr("/path"), + // ClientEncryptionKeyID: to.Ptr("keyId"), + // EncryptionAlgorithm: to.Ptr("AEAD_AES_256_CBC_HMAC_SHA256"), + // EncryptionType: to.Ptr("Deterministic"), + // }}, + // PolicyFormatVersion: to.Ptr[int32](1), + // }, + // ConflictResolutionPolicy: &armcosmos.ConflictResolutionPolicy{ + // ConflictResolutionPath: to.Ptr("/path"), + // Mode: to.Ptr(armcosmos.ConflictResolutionModeLastWriterWins), + // }, + // DefaultTTL: to.Ptr[int32](100), + // ID: to.Ptr("testctn2"), + // IndexingPolicy: &armcosmos.IndexingPolicy{ + // Automatic: to.Ptr(true), + // ExcludedPaths: []*armcosmos.ExcludedPath{ + // }, + // IncludedPaths: []*armcosmos.IncludedPath{ + // { + // Path: to.Ptr("/*"), + // Indexes: []*armcosmos.Indexes{ + // { + // DataType: to.Ptr(armcosmos.DataTypeString), + // Kind: to.Ptr(armcosmos.IndexKindRange), + // Precision: to.Ptr[int32](-1), + // }, + // { + // DataType: to.Ptr(armcosmos.DataTypeNumber), + // Kind: to.Ptr(armcosmos.IndexKindRange), + // Precision: to.Ptr[int32](-1), + // }}, + // }}, + // IndexingMode: to.Ptr(armcosmos.IndexingModeConsistent), + // }, + // PartitionKey: &armcosmos.ContainerPartitionKey{ + // Kind: to.Ptr(armcosmos.PartitionKindHash), + // Paths: []*string{ + // to.Ptr("/_partitionKey")}, + // SystemKey: to.Ptr(true), + // Version: to.Ptr[int32](2), + // }, + // UniqueKeyPolicy: &armcosmos.UniqueKeyPolicy{ + // UniqueKeys: []*armcosmos.UniqueKey{ + // { + // Paths: []*string{ + // to.Ptr("/testPath")}, + // }}, + // }, + // }, + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBSqlContainerGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBSqlContainerGet.json func ExampleSQLResourcesClient_GetSQLContainer() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -367,12 +574,80 @@ func ExampleSQLResourcesClient_GetSQLContainer() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.SQLContainerGetResults = armcosmos.SQLContainerGetResults{ + // Name: to.Ptr("containerName"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/sqlDatabases/sqlContainers"), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/containers/containerName"), + // Location: to.Ptr("West US"), + // Tags: map[string]*string{ + // }, + // Properties: &armcosmos.SQLContainerGetProperties{ + // Options: &armcosmos.SQLContainerGetPropertiesOptions{ + // Throughput: to.Ptr[int32](400), + // }, + // Resource: &armcosmos.SQLContainerGetPropertiesResource{ + // Etag: to.Ptr("\"00005900-0000-0000-0000-56f9a2630000\""), + // Rid: to.Ptr("PD5DALigDgw="), + // Ts: to.Ptr[float32](1459200611), + // ClientEncryptionPolicy: &armcosmos.ClientEncryptionPolicy{ + // IncludedPaths: []*armcosmos.ClientEncryptionIncludedPath{ + // { + // Path: to.Ptr("/path"), + // ClientEncryptionKeyID: to.Ptr("keyId"), + // EncryptionAlgorithm: to.Ptr("AEAD_AES_256_CBC_HMAC_SHA256"), + // EncryptionType: to.Ptr("Deterministic"), + // }}, + // PolicyFormatVersion: to.Ptr[int32](1), + // }, + // ConflictResolutionPolicy: &armcosmos.ConflictResolutionPolicy{ + // ConflictResolutionPath: to.Ptr("/path"), + // Mode: to.Ptr(armcosmos.ConflictResolutionModeLastWriterWins), + // }, + // DefaultTTL: to.Ptr[int32](100), + // ID: to.Ptr("containerName"), + // IndexingPolicy: &armcosmos.IndexingPolicy{ + // Automatic: to.Ptr(true), + // ExcludedPaths: []*armcosmos.ExcludedPath{ + // }, + // IncludedPaths: []*armcosmos.IncludedPath{ + // { + // Path: to.Ptr("/*"), + // Indexes: []*armcosmos.Indexes{ + // { + // DataType: to.Ptr(armcosmos.DataTypeString), + // Kind: to.Ptr(armcosmos.IndexKindRange), + // Precision: to.Ptr[int32](-1), + // }, + // { + // DataType: to.Ptr(armcosmos.DataTypeNumber), + // Kind: to.Ptr(armcosmos.IndexKindRange), + // Precision: to.Ptr[int32](-1), + // }}, + // }}, + // IndexingMode: to.Ptr(armcosmos.IndexingModeConsistent), + // }, + // PartitionKey: &armcosmos.ContainerPartitionKey{ + // Kind: to.Ptr(armcosmos.PartitionKindHash), + // Paths: []*string{ + // to.Ptr("/AccountNumber")}, + // }, + // UniqueKeyPolicy: &armcosmos.UniqueKeyPolicy{ + // UniqueKeys: []*armcosmos.UniqueKey{ + // { + // Paths: []*string{ + // to.Ptr("/testPath")}, + // }}, + // }, + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBSqlContainerCreateUpdate.json -func ExampleSQLResourcesClient_BeginCreateUpdateSQLContainer_cosmosDbSqlContainerCreateUpdate() { +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBSqlContainerCreateUpdate.json +func ExampleSQLResourcesClient_BeginCreateUpdateSQLContainer() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) @@ -396,6 +671,7 @@ func ExampleSQLResourcesClient_BeginCreateUpdateSQLContainer_cosmosDbSqlContaine EncryptionAlgorithm: to.Ptr("AEAD_AES_256_CBC_HMAC_SHA256"), EncryptionType: to.Ptr("Deterministic"), }}, + PolicyFormatVersion: to.Ptr[int32](2), }, ConflictResolutionPolicy: &armcosmos.ConflictResolutionPolicy{ ConflictResolutionPath: to.Ptr("/path"), @@ -445,48 +721,76 @@ func ExampleSQLResourcesClient_BeginCreateUpdateSQLContainer_cosmosDbSqlContaine if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBSqlContainerRestore.json -func ExampleSQLResourcesClient_BeginCreateUpdateSQLContainer_cosmosDbSqlContainerRestore() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcosmos.NewSQLResourcesClient("subid", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginCreateUpdateSQLContainer(ctx, "rg1", "ddb1", "databaseName", "containerName", armcosmos.SQLContainerCreateUpdateParameters{ - Location: to.Ptr("West US"), - Tags: map[string]*string{}, - Properties: &armcosmos.SQLContainerCreateUpdateProperties{ - Options: &armcosmos.CreateUpdateOptions{}, - Resource: &armcosmos.SQLContainerResource{ - CreateMode: to.Ptr(armcosmos.CreateModeRestore), - ID: to.Ptr("containerName"), - RestoreParameters: &armcosmos.ResourceRestoreParameters{ - RestoreSource: to.Ptr("/subscriptions/subid/providers/Microsoft.DocumentDB/locations/WestUS/restorableDatabaseAccounts/restorableDatabaseAccountId"), - RestoreTimestampInUTC: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2022-07-20T18:28:00Z"); return t }()), - }, - }, - }, - }, 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) - } - // TODO: use response item + // 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.SQLContainerGetResults = armcosmos.SQLContainerGetResults{ + // Name: to.Ptr("containerName"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/sqlDatabases/sqlContainers"), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/containers/containerName"), + // Location: to.Ptr("West US"), + // Tags: map[string]*string{ + // }, + // Properties: &armcosmos.SQLContainerGetProperties{ + // Resource: &armcosmos.SQLContainerGetPropertiesResource{ + // Etag: to.Ptr("\"00005900-0000-0000-0000-56f9a2630000\""), + // Rid: to.Ptr("PD5DALigDgw="), + // Ts: to.Ptr[float32](1459200611), + // ClientEncryptionPolicy: &armcosmos.ClientEncryptionPolicy{ + // IncludedPaths: []*armcosmos.ClientEncryptionIncludedPath{ + // { + // Path: to.Ptr("/path"), + // ClientEncryptionKeyID: to.Ptr("keyId"), + // EncryptionAlgorithm: to.Ptr("AEAD_AES_256_CBC_HMAC_SHA256"), + // EncryptionType: to.Ptr("Deterministic"), + // }}, + // PolicyFormatVersion: to.Ptr[int32](1), + // }, + // ConflictResolutionPolicy: &armcosmos.ConflictResolutionPolicy{ + // ConflictResolutionPath: to.Ptr("/path"), + // Mode: to.Ptr(armcosmos.ConflictResolutionModeLastWriterWins), + // }, + // DefaultTTL: to.Ptr[int32](100), + // ID: to.Ptr("containerName"), + // IndexingPolicy: &armcosmos.IndexingPolicy{ + // Automatic: to.Ptr(true), + // ExcludedPaths: []*armcosmos.ExcludedPath{ + // }, + // IncludedPaths: []*armcosmos.IncludedPath{ + // { + // Path: to.Ptr("/*"), + // Indexes: []*armcosmos.Indexes{ + // { + // DataType: to.Ptr(armcosmos.DataTypeString), + // Kind: to.Ptr(armcosmos.IndexKindRange), + // Precision: to.Ptr[int32](-1), + // }, + // { + // DataType: to.Ptr(armcosmos.DataTypeNumber), + // Kind: to.Ptr(armcosmos.IndexKindRange), + // Precision: to.Ptr[int32](-1), + // }}, + // }}, + // IndexingMode: to.Ptr(armcosmos.IndexingModeConsistent), + // }, + // PartitionKey: &armcosmos.ContainerPartitionKey{ + // Kind: to.Ptr(armcosmos.PartitionKindHash), + // Paths: []*string{ + // to.Ptr("/AccountNumber")}, + // }, + // UniqueKeyPolicy: &armcosmos.UniqueKeyPolicy{ + // UniqueKeys: []*armcosmos.UniqueKey{ + // { + // Paths: []*string{ + // to.Ptr("/testPath")}, + // }}, + // }, + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBSqlContainerDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBSqlContainerDelete.json func ExampleSQLResourcesClient_BeginDeleteSQLContainer() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -507,32 +811,7 @@ func ExampleSQLResourcesClient_BeginDeleteSQLContainer() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBSqlContainerPartitionMerge.json -func ExampleSQLResourcesClient_BeginListSQLContainerPartitionMerge() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcosmos.NewSQLResourcesClient("subid", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginListSQLContainerPartitionMerge(ctx, "rgName", "ddb1", "databaseName", "containerName", armcosmos.MergeParameters{ - IsDryRun: to.Ptr(false), - }, 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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBSqlContainerThroughputGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBSqlContainerThroughputGet.json func ExampleSQLResourcesClient_GetSQLContainerThroughput() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -547,11 +826,30 @@ func ExampleSQLResourcesClient_GetSQLContainerThroughput() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.ThroughputSettingsGetResults = armcosmos.ThroughputSettingsGetResults{ + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/sqlDatabases/sqlContainers/throughputSettings"), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/sqlContainers/containerName/throughputSettings/default"), + // Location: to.Ptr("West US"), + // Tags: map[string]*string{ + // }, + // Properties: &armcosmos.ThroughputSettingsGetProperties{ + // Resource: &armcosmos.ThroughputSettingsGetPropertiesResource{ + // Etag: to.Ptr("\"00005900-0000-0000-0000-56f9a2630000\""), + // Rid: to.Ptr("PD5DALigDgw="), + // Ts: to.Ptr[float32](1459200611), + // MinimumThroughput: to.Ptr("400"), + // OfferReplacePending: to.Ptr("true"), + // Throughput: to.Ptr[int32](400), + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBSqlContainerThroughputUpdate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBSqlContainerThroughputUpdate.json func ExampleSQLResourcesClient_BeginUpdateSQLContainerThroughput() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -578,11 +876,30 @@ func ExampleSQLResourcesClient_BeginUpdateSQLContainerThroughput() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.ThroughputSettingsGetResults = armcosmos.ThroughputSettingsGetResults{ + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/sqlDatabases/sqlContainers/throughputSettings"), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/sqlContainers/containerName/throughputSettings/default"), + // Location: to.Ptr("West US"), + // Tags: map[string]*string{ + // }, + // Properties: &armcosmos.ThroughputSettingsGetProperties{ + // Resource: &armcosmos.ThroughputSettingsGetPropertiesResource{ + // Etag: to.Ptr("\"00005900-0000-0000-0000-56f9a2630000\""), + // Rid: to.Ptr("PD5DALigDgw="), + // Ts: to.Ptr[float32](1459200611), + // MinimumThroughput: to.Ptr("400"), + // OfferReplacePending: to.Ptr("true"), + // Throughput: to.Ptr[int32](400), + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBSqlContainerMigrateToAutoscale.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBSqlContainerMigrateToAutoscale.json func ExampleSQLResourcesClient_BeginMigrateSQLContainerToAutoscale() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -601,11 +918,27 @@ func ExampleSQLResourcesClient_BeginMigrateSQLContainerToAutoscale() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.ThroughputSettingsGetResults = armcosmos.ThroughputSettingsGetResults{ + // Properties: &armcosmos.ThroughputSettingsGetProperties{ + // Resource: &armcosmos.ThroughputSettingsGetPropertiesResource{ + // Etag: to.Ptr("\"00005900-0000-0000-0000-56f9a2630000\""), + // Rid: to.Ptr("PD5DALigDgw="), + // Ts: to.Ptr[float32](1459200611), + // AutoscaleSettings: &armcosmos.AutoscaleSettingsResource{ + // MaxThroughput: to.Ptr[int32](4000), + // }, + // MinimumThroughput: to.Ptr("4000"), + // OfferReplacePending: to.Ptr("false"), + // Throughput: to.Ptr[int32](400), + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBSqlContainerMigrateToManualThroughput.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBSqlContainerMigrateToManualThroughput.json func ExampleSQLResourcesClient_BeginMigrateSQLContainerToManualThroughput() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -624,158 +957,157 @@ func ExampleSQLResourcesClient_BeginMigrateSQLContainerToManualThroughput() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.ThroughputSettingsGetResults = armcosmos.ThroughputSettingsGetResults{ + // Properties: &armcosmos.ThroughputSettingsGetProperties{ + // Resource: &armcosmos.ThroughputSettingsGetPropertiesResource{ + // Etag: to.Ptr("\"00005900-0000-0000-0000-56f9a2630000\""), + // Rid: to.Ptr("PD5DALigDgw="), + // Ts: to.Ptr[float32](1459200611), + // MinimumThroughput: to.Ptr("400"), + // OfferReplacePending: to.Ptr("true"), + // Throughput: to.Ptr[int32](400), + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBSqlDatabaseRetrieveThroughputDistribution.json -func ExampleSQLResourcesClient_BeginSQLDatabaseRetrieveThroughputDistribution() { - cred, err := azidentity.NewDefaultAzureCredential(nil) - if err != nil { - log.Fatalf("failed to obtain a credential: %v", err) - } - ctx := context.Background() - client, err := armcosmos.NewSQLResourcesClient("subid", cred, nil) - if err != nil { - log.Fatalf("failed to create client: %v", err) - } - poller, err := client.BeginSQLDatabaseRetrieveThroughputDistribution(ctx, "rg1", "ddb1", "databaseName", armcosmos.RetrieveThroughputParameters{ - Properties: &armcosmos.RetrieveThroughputProperties{ - Resource: &armcosmos.RetrieveThroughputPropertiesResource{ - PhysicalPartitionIDs: []*armcosmos.PhysicalPartitionID{ - { - ID: to.Ptr("0"), - }, - { - ID: to.Ptr("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) - } - // TODO: use response item - _ = res -} - -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBSqlDatabaseRedistributeThroughput.json -func ExampleSQLResourcesClient_BeginSQLDatabaseRedistributeThroughput() { +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBSqlClientEncryptionKeysList.json +func ExampleSQLResourcesClient_NewListClientEncryptionKeysPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armcosmos.NewSQLResourcesClient("subid", cred, nil) + client, err := armcosmos.NewSQLResourcesClient("subId", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } - poller, err := client.BeginSQLDatabaseRedistributeThroughput(ctx, "rg1", "ddb1", "databaseName", armcosmos.RedistributeThroughputParameters{ - Properties: &armcosmos.RedistributeThroughputProperties{ - Resource: &armcosmos.RedistributeThroughputPropertiesResource{ - SourcePhysicalPartitionThroughputInfo: []*armcosmos.PhysicalPartitionThroughputInfoResource{ - { - ID: to.Ptr("2"), - Throughput: to.Ptr[float64](5000), - }, - { - ID: to.Ptr("3"), - }}, - TargetPhysicalPartitionThroughputInfo: []*armcosmos.PhysicalPartitionThroughputInfoResource{ - { - ID: to.Ptr("0"), - Throughput: to.Ptr[float64](5000), - }, - { - ID: to.Ptr("1"), - Throughput: to.Ptr[float64](5000), - }}, - ThroughputPolicy: to.Ptr(armcosmos.ThroughputPolicyTypeCustom), - }, - }, - }, 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) + pager := client.NewListClientEncryptionKeysPager("rgName", "accountName", "databaseName", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.ClientEncryptionKeysListResult = armcosmos.ClientEncryptionKeysListResult{ + // Value: []*armcosmos.ClientEncryptionKeyGetResults{ + // { + // Name: to.Ptr("cekName1"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/sqlDatabases/clientEncryptionKey"), + // ID: to.Ptr("/subscriptions/subId/resourceGroups/rgName/providers/Microsoft.DocumentDB/databaseAccounts/accountName/sqlDatabases/databaseName/clientEncryptionKeys/cekName1"), + // Properties: &armcosmos.ClientEncryptionKeyGetProperties{ + // Resource: &armcosmos.ClientEncryptionKeyGetPropertiesResource{ + // EncryptionAlgorithm: to.Ptr("AEAD_AES_256_CBC_HMAC_SHA256"), + // ID: to.Ptr("cekName1"), + // KeyWrapMetadata: &armcosmos.KeyWrapMetadata{ + // Name: to.Ptr("customerManagedKey1"), + // Type: to.Ptr("AzureKeyVault"), + // Algorithm: to.Ptr("RSA-OAEP"), + // Value: to.Ptr("AzureKeyVault Key URL for customerManagedKey1"), + // }, + // WrappedDataEncryptionKey: []byte("U3dhZ2dlciByb2Nrcw=="), + // Etag: to.Ptr("00000000-0000-0000-7a1f-bc0828e801d7"), + // Rid: to.Ptr("nAMyAAAAAADPw1kKAgAAAA=="), + // Ts: to.Ptr[float32](1626425552), + // }, + // }, + // }, + // { + // Name: to.Ptr("cekName2"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/sqlDatabases/clientEncryptionKey"), + // ID: to.Ptr("/subscriptions/subId/resourceGroups/rgName/providers/Microsoft.DocumentDB/databaseAccounts/accountName/sqlDatabases/databaseName/clientEncryptionKeys/cekName2"), + // Properties: &armcosmos.ClientEncryptionKeyGetProperties{ + // Resource: &armcosmos.ClientEncryptionKeyGetPropertiesResource{ + // EncryptionAlgorithm: to.Ptr("AEAD_AES_256_CBC_HMAC_SHA256"), + // ID: to.Ptr("cekName2"), + // KeyWrapMetadata: &armcosmos.KeyWrapMetadata{ + // Name: to.Ptr("customerManagedKey2"), + // Type: to.Ptr("AzureKeyVault"), + // Algorithm: to.Ptr("RSA-OAEP"), + // Value: to.Ptr("AzureKeyVault Key URL for customerManagedKey2"), + // }, + // WrappedDataEncryptionKey: []byte("U3dhZ2dlciByb2Nrcw=="), + // Etag: to.Ptr("00000000-0000-0000-7a21-7788a38c01d7"), + // Rid: to.Ptr("nAMyAAAAAAAWWfxHAgAAAA=="), + // Ts: to.Ptr[float32](1626425631), + // }, + // }, + // }}, + // } } - // TODO: use response item - _ = res } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBSqlContainerRetrieveThroughputDistribution.json -func ExampleSQLResourcesClient_BeginSQLContainerRetrieveThroughputDistribution() { +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBSqlClientEncryptionKeyGet.json +func ExampleSQLResourcesClient_GetClientEncryptionKey() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armcosmos.NewSQLResourcesClient("subid", cred, nil) + client, err := armcosmos.NewSQLResourcesClient("subId", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } - poller, err := client.BeginSQLContainerRetrieveThroughputDistribution(ctx, "rg1", "ddb1", "databaseName", "containerName", armcosmos.RetrieveThroughputParameters{ - Properties: &armcosmos.RetrieveThroughputProperties{ - Resource: &armcosmos.RetrieveThroughputPropertiesResource{ - PhysicalPartitionIDs: []*armcosmos.PhysicalPartitionID{ - { - ID: to.Ptr("0"), - }, - { - ID: to.Ptr("1"), - }}, - }, - }, - }, nil) + res, err := client.GetClientEncryptionKey(ctx, "rgName", "accountName", "databaseName", "cekName", 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) - } - // TODO: use response item + // 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.ClientEncryptionKeyGetResults = armcosmos.ClientEncryptionKeyGetResults{ + // Name: to.Ptr("cekName"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/sqlDatabases/clientEncryptionKey"), + // ID: to.Ptr("/subscriptions/subId/resourceGroups/rgName/providers/Microsoft.DocumentDB/databaseAccounts/accountName/sqlDatabases/databaseName/clientEncryptionKeys/cekName"), + // Properties: &armcosmos.ClientEncryptionKeyGetProperties{ + // Resource: &armcosmos.ClientEncryptionKeyGetPropertiesResource{ + // EncryptionAlgorithm: to.Ptr("AEAD_AES_256_CBC_HMAC_SHA256"), + // ID: to.Ptr("cekName"), + // KeyWrapMetadata: &armcosmos.KeyWrapMetadata{ + // Name: to.Ptr("customerManagedKey"), + // Type: to.Ptr("AzureKeyVault"), + // Algorithm: to.Ptr("RSA-OAEP"), + // Value: to.Ptr("AzureKeyVault Key URL"), + // }, + // WrappedDataEncryptionKey: []byte("U3dhZ2dlciByb2Nrcw=="), + // Etag: to.Ptr("00000000-0000-0000-7a1f-bc0828e801d7"), + // Rid: to.Ptr("tNc4AAAAAAAQkjzWAgAAAA=="), + // Ts: to.Ptr[float32](1626425552), + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBSqlContainerRedistributeThroughput.json -func ExampleSQLResourcesClient_BeginSQLContainerRedistributeThroughput() { +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBSqlClientEncryptionKeyCreateUpdate.json +func ExampleSQLResourcesClient_BeginCreateUpdateClientEncryptionKey() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() - client, err := armcosmos.NewSQLResourcesClient("subid", cred, nil) + client, err := armcosmos.NewSQLResourcesClient("subId", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } - poller, err := client.BeginSQLContainerRedistributeThroughput(ctx, "rg1", "ddb1", "databaseName", "containerName", armcosmos.RedistributeThroughputParameters{ - Properties: &armcosmos.RedistributeThroughputProperties{ - Resource: &armcosmos.RedistributeThroughputPropertiesResource{ - SourcePhysicalPartitionThroughputInfo: []*armcosmos.PhysicalPartitionThroughputInfoResource{ - { - ID: to.Ptr("2"), - Throughput: to.Ptr[float64](5000), - }, - { - ID: to.Ptr("3"), - }}, - TargetPhysicalPartitionThroughputInfo: []*armcosmos.PhysicalPartitionThroughputInfoResource{ - { - ID: to.Ptr("0"), - Throughput: to.Ptr[float64](5000), - }, - { - ID: to.Ptr("1"), - Throughput: to.Ptr[float64](5000), - }}, - ThroughputPolicy: to.Ptr(armcosmos.ThroughputPolicyTypeCustom), + poller, err := client.BeginCreateUpdateClientEncryptionKey(ctx, "rgName", "accountName", "databaseName", "cekName", armcosmos.ClientEncryptionKeyCreateUpdateParameters{ + Properties: &armcosmos.ClientEncryptionKeyCreateUpdateProperties{ + Resource: &armcosmos.ClientEncryptionKeyResource{ + EncryptionAlgorithm: to.Ptr("AEAD_AES_256_CBC_HMAC_SHA256"), + ID: to.Ptr("cekName"), + KeyWrapMetadata: &armcosmos.KeyWrapMetadata{ + Name: to.Ptr("customerManagedKey"), + Type: to.Ptr("AzureKeyVault"), + Algorithm: to.Ptr("RSA-OAEP"), + Value: to.Ptr("AzureKeyVault Key URL"), + }, + WrappedDataEncryptionKey: []byte("U3dhZ2dlciByb2Nrcw=="), }, }, }, nil) @@ -786,11 +1118,33 @@ func ExampleSQLResourcesClient_BeginSQLContainerRedistributeThroughput() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.ClientEncryptionKeyGetResults = armcosmos.ClientEncryptionKeyGetResults{ + // Name: to.Ptr("cekName"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/sqlDatabases/clientEncryptionKey"), + // ID: to.Ptr("/subscriptions/subId/resourceGroups/rgName/providers/Microsoft.DocumentDB/databaseAccounts/accountName/sqlDatabases/databaseName/clientEncryptionKeys/cekName"), + // Properties: &armcosmos.ClientEncryptionKeyGetProperties{ + // Resource: &armcosmos.ClientEncryptionKeyGetPropertiesResource{ + // EncryptionAlgorithm: to.Ptr("AEAD_AES_256_CBC_HMAC_SHA256"), + // ID: to.Ptr("cekName"), + // KeyWrapMetadata: &armcosmos.KeyWrapMetadata{ + // Name: to.Ptr("customerManagedKey"), + // Type: to.Ptr("AzureKeyVault"), + // Algorithm: to.Ptr("RSA-OAEP"), + // Value: to.Ptr("AzureKeyVault Key URL"), + // }, + // WrappedDataEncryptionKey: []byte("U3dhZ2dlciByb2Nrcw=="), + // Etag: to.Ptr("00000000-0000-0000-7a1f-bc0828e801d7"), + // Rid: to.Ptr("tNc4AAAAAAAQkjzWAgAAAA=="), + // Ts: to.Ptr[float32](1626425552), + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBSqlStoredProcedureList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBSqlStoredProcedureList.json func ExampleSQLResourcesClient_NewListSQLStoredProceduresPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -803,18 +1157,36 @@ func ExampleSQLResourcesClient_NewListSQLStoredProceduresPager() { } pager := client.NewListSQLStoredProceduresPager("rgName", "ddb1", "databaseName", "containerName", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.SQLStoredProcedureListResult = armcosmos.SQLStoredProcedureListResult{ + // Value: []*armcosmos.SQLStoredProcedureGetResults{ + // { + // Name: to.Ptr("testctn"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/sqlDatabases/sqlContainers/sqlStoredProcedures"), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/sqlContainers/containerName/sqlStoredProcedures/storedProcedureName"), + // Properties: &armcosmos.SQLStoredProcedureGetProperties{ + // Resource: &armcosmos.SQLStoredProcedureGetPropertiesResource{ + // Etag: to.Ptr("\"00005900-0000-0000-0000-56f9a2630000\""), + // Rid: to.Ptr("PD5DALigDgw="), + // Ts: to.Ptr[float32](1459200611), + // Body: to.Ptr("body"), + // ID: to.Ptr("testctn"), + // }, + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBSqlStoredProcedureGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBSqlStoredProcedureGet.json func ExampleSQLResourcesClient_GetSQLStoredProcedure() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -829,11 +1201,26 @@ func ExampleSQLResourcesClient_GetSQLStoredProcedure() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.SQLStoredProcedureGetResults = armcosmos.SQLStoredProcedureGetResults{ + // Name: to.Ptr("storedProcedureName"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/sqlDatabases/sqlContainers/sqlStoredProcedures"), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/sqlContainers/containerName/sqlStoredProcedures/storedProcedureName"), + // Properties: &armcosmos.SQLStoredProcedureGetProperties{ + // Resource: &armcosmos.SQLStoredProcedureGetPropertiesResource{ + // Etag: to.Ptr("\"00005900-0000-0000-0000-56f9a2630000\""), + // Rid: to.Ptr("PD5DALigDgw="), + // Ts: to.Ptr[float32](1459200611), + // Body: to.Ptr("body"), + // ID: to.Ptr("storedProcedureName"), + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBSqlStoredProcedureCreateUpdate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBSqlStoredProcedureCreateUpdate.json func ExampleSQLResourcesClient_BeginCreateUpdateSQLStoredProcedure() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -860,11 +1247,26 @@ func ExampleSQLResourcesClient_BeginCreateUpdateSQLStoredProcedure() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.SQLStoredProcedureGetResults = armcosmos.SQLStoredProcedureGetResults{ + // Name: to.Ptr("storedProcedureName"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/sqlDatabases/sqlContainers/sqlStoredProcedures"), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/sqlContainers/containerName/sqlStoredProcedures/storedProcedureName"), + // Properties: &armcosmos.SQLStoredProcedureGetProperties{ + // Resource: &armcosmos.SQLStoredProcedureGetPropertiesResource{ + // Etag: to.Ptr("\"00005900-0000-0000-0000-56f9a2630000\""), + // Rid: to.Ptr("PD5DALigDgw="), + // Ts: to.Ptr[float32](1459200611), + // Body: to.Ptr("body"), + // ID: to.Ptr("storedProcedureName"), + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBSqlStoredProcedureDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBSqlStoredProcedureDelete.json func ExampleSQLResourcesClient_BeginDeleteSQLStoredProcedure() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -885,7 +1287,7 @@ func ExampleSQLResourcesClient_BeginDeleteSQLStoredProcedure() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBSqlUserDefinedFunctionList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBSqlUserDefinedFunctionList.json func ExampleSQLResourcesClient_NewListSQLUserDefinedFunctionsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -898,18 +1300,36 @@ func ExampleSQLResourcesClient_NewListSQLUserDefinedFunctionsPager() { } pager := client.NewListSQLUserDefinedFunctionsPager("rgName", "ddb1", "databaseName", "containerName", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.SQLUserDefinedFunctionListResult = armcosmos.SQLUserDefinedFunctionListResult{ + // Value: []*armcosmos.SQLUserDefinedFunctionGetResults{ + // { + // Name: to.Ptr("testctn"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/sqlDatabases/sqlContainers/sqlUserDefinedFunctions"), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/sqlContainers/containerName/sqlUserDefinedFunctions/userDefinedFunctionName"), + // Properties: &armcosmos.SQLUserDefinedFunctionGetProperties{ + // Resource: &armcosmos.SQLUserDefinedFunctionGetPropertiesResource{ + // Etag: to.Ptr("\"00005900-0000-0000-0000-56f9a2630000\""), + // Rid: to.Ptr("PD5DALigDgw="), + // Ts: to.Ptr[float32](1459200611), + // Body: to.Ptr("body"), + // ID: to.Ptr("testctn"), + // }, + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBSqlUserDefinedFunctionGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBSqlUserDefinedFunctionGet.json func ExampleSQLResourcesClient_GetSQLUserDefinedFunction() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -924,11 +1344,26 @@ func ExampleSQLResourcesClient_GetSQLUserDefinedFunction() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.SQLUserDefinedFunctionGetResults = armcosmos.SQLUserDefinedFunctionGetResults{ + // Name: to.Ptr("userDefinedFunctionName"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/sqlDatabases/sqlContainers/sqlUserDefinedFunctions"), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/sqlContainers/containerName/sqlUserDefinedFunctions/userDefinedFunctionName"), + // Properties: &armcosmos.SQLUserDefinedFunctionGetProperties{ + // Resource: &armcosmos.SQLUserDefinedFunctionGetPropertiesResource{ + // Etag: to.Ptr("\"00005900-0000-0000-0000-56f9a2630000\""), + // Rid: to.Ptr("PD5DALigDgw="), + // Ts: to.Ptr[float32](1459200611), + // Body: to.Ptr("body"), + // ID: to.Ptr("userDefinedFunctionName"), + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBSqlUserDefinedFunctionCreateUpdate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBSqlUserDefinedFunctionCreateUpdate.json func ExampleSQLResourcesClient_BeginCreateUpdateSQLUserDefinedFunction() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -955,11 +1390,26 @@ func ExampleSQLResourcesClient_BeginCreateUpdateSQLUserDefinedFunction() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.SQLUserDefinedFunctionGetResults = armcosmos.SQLUserDefinedFunctionGetResults{ + // Name: to.Ptr("userDefinedFunctionName"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/sqlDatabases/sqlContainers/sqlUserDefinedFunctions"), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/sqlContainers/containerName/sqlUserDefinedFunctions/userDefinedFunctionName"), + // Properties: &armcosmos.SQLUserDefinedFunctionGetProperties{ + // Resource: &armcosmos.SQLUserDefinedFunctionGetPropertiesResource{ + // Etag: to.Ptr("\"00005900-0000-0000-0000-56f9a2630000\""), + // Rid: to.Ptr("PD5DALigDgw="), + // Ts: to.Ptr[float32](1459200611), + // Body: to.Ptr("body"), + // ID: to.Ptr("userDefinedFunctionName"), + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBSqlUserDefinedFunctionDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBSqlUserDefinedFunctionDelete.json func ExampleSQLResourcesClient_BeginDeleteSQLUserDefinedFunction() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -980,7 +1430,7 @@ func ExampleSQLResourcesClient_BeginDeleteSQLUserDefinedFunction() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBSqlTriggerList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBSqlTriggerList.json func ExampleSQLResourcesClient_NewListSQLTriggersPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -993,18 +1443,38 @@ func ExampleSQLResourcesClient_NewListSQLTriggersPager() { } pager := client.NewListSQLTriggersPager("rgName", "ddb1", "databaseName", "containerName", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.SQLTriggerListResult = armcosmos.SQLTriggerListResult{ + // Value: []*armcosmos.SQLTriggerGetResults{ + // { + // Name: to.Ptr("testctn"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/sqlDatabases/sqlContainers/sqlTriggers"), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/sqlContainers/containerName/sqlTriggers/triggerName"), + // Properties: &armcosmos.SQLTriggerGetProperties{ + // Resource: &armcosmos.SQLTriggerGetPropertiesResource{ + // Etag: to.Ptr("\"00005900-0000-0000-0000-56f9a2630000\""), + // Rid: to.Ptr("PD5DALigDgw="), + // Ts: to.Ptr[float32](1459200611), + // Body: to.Ptr("body"), + // ID: to.Ptr("testctn"), + // TriggerOperation: to.Ptr(armcosmos.TriggerOperation("triggerOperation")), + // TriggerType: to.Ptr(armcosmos.TriggerType("triggerType")), + // }, + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBSqlTriggerGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBSqlTriggerGet.json func ExampleSQLResourcesClient_GetSQLTrigger() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1019,11 +1489,28 @@ func ExampleSQLResourcesClient_GetSQLTrigger() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.SQLTriggerGetResults = armcosmos.SQLTriggerGetResults{ + // Name: to.Ptr("triggerName"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/sqlDatabases/sqlContainers/sqlTriggers"), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/sqlContainers/containerName/sqlTriggers/triggerName"), + // Properties: &armcosmos.SQLTriggerGetProperties{ + // Resource: &armcosmos.SQLTriggerGetPropertiesResource{ + // Etag: to.Ptr("\"00005900-0000-0000-0000-56f9a2630000\""), + // Rid: to.Ptr("PD5DALigDgw="), + // Ts: to.Ptr[float32](1459200611), + // Body: to.Ptr("body"), + // ID: to.Ptr("triggerName"), + // TriggerOperation: to.Ptr(armcosmos.TriggerOperation("triggerOperation")), + // TriggerType: to.Ptr(armcosmos.TriggerType("triggerType")), + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBSqlTriggerCreateUpdate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBSqlTriggerCreateUpdate.json func ExampleSQLResourcesClient_BeginCreateUpdateSQLTrigger() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1052,11 +1539,28 @@ func ExampleSQLResourcesClient_BeginCreateUpdateSQLTrigger() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.SQLTriggerGetResults = armcosmos.SQLTriggerGetResults{ + // Name: to.Ptr("triggerName"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/sqlDatabases/sqlContainers/sqlTriggers"), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/sqlDatabases/databaseName/sqlContainers/containerName/sqlTriggers/triggerName"), + // Properties: &armcosmos.SQLTriggerGetProperties{ + // Resource: &armcosmos.SQLTriggerGetPropertiesResource{ + // Etag: to.Ptr("\"00005900-0000-0000-0000-56f9a2630000\""), + // Rid: to.Ptr("PD5DALigDgw="), + // Ts: to.Ptr[float32](1459200611), + // Body: to.Ptr("body"), + // ID: to.Ptr("triggerName"), + // TriggerOperation: to.Ptr(armcosmos.TriggerOperation("triggerOperation")), + // TriggerType: to.Ptr(armcosmos.TriggerType("triggerType")), + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBSqlTriggerDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBSqlTriggerDelete.json func ExampleSQLResourcesClient_BeginDeleteSQLTrigger() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1077,7 +1581,7 @@ func ExampleSQLResourcesClient_BeginDeleteSQLTrigger() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBSqlRoleDefinitionGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBSqlRoleDefinitionGet.json func ExampleSQLResourcesClient_GetSQLRoleDefinition() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1092,11 +1596,32 @@ func ExampleSQLResourcesClient_GetSQLRoleDefinition() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.SQLRoleDefinitionGetResults = armcosmos.SQLRoleDefinitionGetResults{ + // Name: to.Ptr("myRoleDefinitionId"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/sqlRoleDefinitions"), + // ID: to.Ptr("/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/sqlRoleDefinitions/myRoleDefinitionId"), + // Properties: &armcosmos.SQLRoleDefinitionResource{ + // Type: to.Ptr(armcosmos.RoleDefinitionTypeCustomRole), + // AssignableScopes: []*string{ + // to.Ptr("/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/dbs/sales"), + // to.Ptr("/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/dbs/purchases")}, + // Permissions: []*armcosmos.Permission{ + // { + // DataActions: []*string{ + // to.Ptr("Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/create"), + // to.Ptr("Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/read")}, + // NotDataActions: []*string{ + // }, + // }}, + // RoleName: to.Ptr("myRoleName"), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBSqlRoleDefinitionCreateUpdate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBSqlRoleDefinitionCreateUpdate.json func ExampleSQLResourcesClient_BeginCreateUpdateSQLRoleDefinition() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1130,11 +1655,30 @@ func ExampleSQLResourcesClient_BeginCreateUpdateSQLRoleDefinition() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.SQLRoleDefinitionGetResults = armcosmos.SQLRoleDefinitionGetResults{ + // Name: to.Ptr("myRoleDefinitionId"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/sqlRoleDefinitions"), + // ID: to.Ptr("/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/sqlRoleDefinitions/myRoleDefinitionId"), + // Properties: &armcosmos.SQLRoleDefinitionResource{ + // Type: to.Ptr(armcosmos.RoleDefinitionTypeCustomRole), + // AssignableScopes: []*string{ + // to.Ptr("/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/dbs/sales"), + // to.Ptr("/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/dbs/purchases")}, + // Permissions: []*armcosmos.Permission{ + // { + // DataActions: []*string{ + // to.Ptr("Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/create"), + // to.Ptr("Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/read")}, + // }}, + // RoleName: to.Ptr("myRoleName"), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBSqlRoleDefinitionDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBSqlRoleDefinitionDelete.json func ExampleSQLResourcesClient_BeginDeleteSQLRoleDefinition() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1155,7 +1699,7 @@ func ExampleSQLResourcesClient_BeginDeleteSQLRoleDefinition() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBSqlRoleDefinitionList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBSqlRoleDefinitionList.json func ExampleSQLResourcesClient_NewListSQLRoleDefinitionsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1168,18 +1712,42 @@ func ExampleSQLResourcesClient_NewListSQLRoleDefinitionsPager() { } pager := client.NewListSQLRoleDefinitionsPager("myResourceGroupName", "myAccountName", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.SQLRoleDefinitionListResult = armcosmos.SQLRoleDefinitionListResult{ + // Value: []*armcosmos.SQLRoleDefinitionGetResults{ + // { + // Name: to.Ptr("myRoleDefinitionId"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/sqlRoleDefinitions"), + // ID: to.Ptr("/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/sqlRoleDefinitions/myRoleDefinitionId"), + // Properties: &armcosmos.SQLRoleDefinitionResource{ + // Type: to.Ptr(armcosmos.RoleDefinitionTypeCustomRole), + // AssignableScopes: []*string{ + // to.Ptr("/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/dbs/sales"), + // to.Ptr("/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/dbs/purchases")}, + // Permissions: []*armcosmos.Permission{ + // { + // DataActions: []*string{ + // to.Ptr("Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/create"), + // to.Ptr("Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/items/read")}, + // NotDataActions: []*string{ + // }, + // }}, + // RoleName: to.Ptr("myRoleName"), + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBSqlRoleAssignmentGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBSqlRoleAssignmentGet.json func ExampleSQLResourcesClient_GetSQLRoleAssignment() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1194,11 +1762,22 @@ func ExampleSQLResourcesClient_GetSQLRoleAssignment() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.SQLRoleAssignmentGetResults = armcosmos.SQLRoleAssignmentGetResults{ + // Name: to.Ptr("myRoleAssignmentId"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/sqlRoleAssignments"), + // ID: to.Ptr("/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/sqlRoleAssignments/myRoleAssignmentId"), + // Properties: &armcosmos.SQLRoleAssignmentResource{ + // PrincipalID: to.Ptr("myPrincipalId"), + // RoleDefinitionID: to.Ptr("/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/sqlRoleDefinitions/myRoleDefinitionId"), + // Scope: to.Ptr("/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/dbs/purchases/colls/redmond-purchases"), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBSqlRoleAssignmentCreateUpdate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBSqlRoleAssignmentCreateUpdate.json func ExampleSQLResourcesClient_BeginCreateUpdateSQLRoleAssignment() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1223,11 +1802,22 @@ func ExampleSQLResourcesClient_BeginCreateUpdateSQLRoleAssignment() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.SQLRoleAssignmentGetResults = armcosmos.SQLRoleAssignmentGetResults{ + // Name: to.Ptr("myRoleAssignmentId"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/sqlRoleAssignments"), + // ID: to.Ptr("/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/sqlRoleAssignments/myRoleAssignmentId"), + // Properties: &armcosmos.SQLRoleAssignmentResource{ + // PrincipalID: to.Ptr("myPrincipalId"), + // RoleDefinitionID: to.Ptr("/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/sqlRoleDefinitions/myRoleDefinitionId"), + // Scope: to.Ptr("/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/dbs/purchases/colls/redmond-purchases"), + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBSqlRoleAssignmentDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBSqlRoleAssignmentDelete.json func ExampleSQLResourcesClient_BeginDeleteSQLRoleAssignment() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1248,7 +1838,7 @@ func ExampleSQLResourcesClient_BeginDeleteSQLRoleAssignment() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBSqlRoleAssignmentList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBSqlRoleAssignmentList.json func ExampleSQLResourcesClient_NewListSQLRoleAssignmentsPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1261,18 +1851,32 @@ func ExampleSQLResourcesClient_NewListSQLRoleAssignmentsPager() { } pager := client.NewListSQLRoleAssignmentsPager("myResourceGroupName", "myAccountName", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.SQLRoleAssignmentListResult = armcosmos.SQLRoleAssignmentListResult{ + // Value: []*armcosmos.SQLRoleAssignmentGetResults{ + // { + // Name: to.Ptr("myRoleAssignmentId"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/sqlRoleAssignments"), + // ID: to.Ptr("/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/sqlRoleAssignments/myRoleAssignmentId"), + // Properties: &armcosmos.SQLRoleAssignmentResource{ + // PrincipalID: to.Ptr("myPrincipalId"), + // RoleDefinitionID: to.Ptr("/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/sqlRoleDefinitions/myRoleDefinitionId"), + // Scope: to.Ptr("/subscriptions/mySubscriptionId/resourceGroups/myResourceGroupName/providers/Microsoft.DocumentDB/databaseAccounts/myAccountName/dbs/purchases/colls/redmond-purchases"), + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBSqlContainerBackupInformation.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBSqlContainerBackupInformation.json func ExampleSQLResourcesClient_BeginRetrieveContinuousBackupInformation() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -1293,6 +1897,12 @@ func ExampleSQLResourcesClient_BeginRetrieveContinuousBackupInformation() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.BackupInformation = armcosmos.BackupInformation{ + // ContinuousBackupInformation: &armcosmos.ContinuousBackupInformation{ + // LatestRestorableTimestamp: to.Ptr("2021-02-05T02:40:50Z"), + // }, + // } } diff --git a/sdk/resourcemanager/cosmos/armcosmos/tableresources_client.go b/sdk/resourcemanager/cosmos/armcosmos/tableresources_client.go index 357567138698..5a18a0419196 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/tableresources_client.go +++ b/sdk/resourcemanager/cosmos/armcosmos/tableresources_client.go @@ -32,9 +32,9 @@ type TableResourcesClient struct { } // NewTableResourcesClient creates a new instance of TableResourcesClient with the specified values. -// subscriptionID - The ID of the target subscription. -// credential - used to authorize requests. Usually a credential from azidentity. -// options - pass nil to accept the default values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. func NewTableResourcesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*TableResourcesClient, error) { if options == nil { options = &arm.ClientOptions{} @@ -57,13 +57,14 @@ func NewTableResourcesClient(subscriptionID string, credential azcore.TokenCrede // BeginCreateUpdateTable - Create or update an Azure Cosmos DB Table // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// tableName - Cosmos DB table name. -// createUpdateTableParameters - The parameters to provide for the current Table. -// options - TableResourcesClientBeginCreateUpdateTableOptions contains the optional parameters for the TableResourcesClient.BeginCreateUpdateTable -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - tableName - Cosmos DB table name. +// - createUpdateTableParameters - The parameters to provide for the current Table. +// - options - TableResourcesClientBeginCreateUpdateTableOptions contains the optional parameters for the TableResourcesClient.BeginCreateUpdateTable +// method. func (client *TableResourcesClient) BeginCreateUpdateTable(ctx context.Context, resourceGroupName string, accountName string, tableName string, createUpdateTableParameters TableCreateUpdateParameters, options *TableResourcesClientBeginCreateUpdateTableOptions) (*runtime.Poller[TableResourcesClientCreateUpdateTableResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.createUpdateTable(ctx, resourceGroupName, accountName, tableName, createUpdateTableParameters, options) @@ -78,7 +79,8 @@ func (client *TableResourcesClient) BeginCreateUpdateTable(ctx context.Context, // CreateUpdateTable - Create or update an Azure Cosmos DB Table // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *TableResourcesClient) createUpdateTable(ctx context.Context, resourceGroupName string, accountName string, tableName string, createUpdateTableParameters TableCreateUpdateParameters, options *TableResourcesClientBeginCreateUpdateTableOptions) (*http.Response, error) { req, err := client.createUpdateTableCreateRequest(ctx, resourceGroupName, accountName, tableName, createUpdateTableParameters, options) if err != nil { @@ -118,7 +120,7 @@ func (client *TableResourcesClient) createUpdateTableCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, createUpdateTableParameters) @@ -126,12 +128,13 @@ func (client *TableResourcesClient) createUpdateTableCreateRequest(ctx context.C // BeginDeleteTable - Deletes an existing Azure Cosmos DB Table. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// tableName - Cosmos DB table name. -// options - TableResourcesClientBeginDeleteTableOptions contains the optional parameters for the TableResourcesClient.BeginDeleteTable -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - tableName - Cosmos DB table name. +// - options - TableResourcesClientBeginDeleteTableOptions contains the optional parameters for the TableResourcesClient.BeginDeleteTable +// method. func (client *TableResourcesClient) BeginDeleteTable(ctx context.Context, resourceGroupName string, accountName string, tableName string, options *TableResourcesClientBeginDeleteTableOptions) (*runtime.Poller[TableResourcesClientDeleteTableResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.deleteTable(ctx, resourceGroupName, accountName, tableName, options) @@ -146,7 +149,8 @@ func (client *TableResourcesClient) BeginDeleteTable(ctx context.Context, resour // DeleteTable - Deletes an existing Azure Cosmos DB Table. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *TableResourcesClient) deleteTable(ctx context.Context, resourceGroupName string, accountName string, tableName string, options *TableResourcesClientBeginDeleteTableOptions) (*http.Response, error) { req, err := client.deleteTableCreateRequest(ctx, resourceGroupName, accountName, tableName, options) if err != nil { @@ -186,18 +190,19 @@ func (client *TableResourcesClient) deleteTableCreateRequest(ctx context.Context return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() return req, nil } // GetTable - Gets the Tables under an existing Azure Cosmos DB database account with the provided name. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// tableName - Cosmos DB table name. -// options - TableResourcesClientGetTableOptions contains the optional parameters for the TableResourcesClient.GetTable method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - tableName - Cosmos DB table name. +// - options - TableResourcesClientGetTableOptions contains the optional parameters for the TableResourcesClient.GetTable method. func (client *TableResourcesClient) GetTable(ctx context.Context, resourceGroupName string, accountName string, tableName string, options *TableResourcesClientGetTableOptions) (TableResourcesClientGetTableResponse, error) { req, err := client.getTableCreateRequest(ctx, resourceGroupName, accountName, tableName, options) if err != nil { @@ -237,7 +242,7 @@ func (client *TableResourcesClient) getTableCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -255,12 +260,13 @@ func (client *TableResourcesClient) getTableHandleResponse(resp *http.Response) // GetTableThroughput - Gets the RUs per second of the Table under an existing Azure Cosmos DB database account with the provided // name. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// tableName - Cosmos DB table name. -// options - TableResourcesClientGetTableThroughputOptions contains the optional parameters for the TableResourcesClient.GetTableThroughput -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - tableName - Cosmos DB table name. +// - options - TableResourcesClientGetTableThroughputOptions contains the optional parameters for the TableResourcesClient.GetTableThroughput +// method. func (client *TableResourcesClient) GetTableThroughput(ctx context.Context, resourceGroupName string, accountName string, tableName string, options *TableResourcesClientGetTableThroughputOptions) (TableResourcesClientGetTableThroughputResponse, error) { req, err := client.getTableThroughputCreateRequest(ctx, resourceGroupName, accountName, tableName, options) if err != nil { @@ -300,7 +306,7 @@ func (client *TableResourcesClient) getTableThroughputCreateRequest(ctx context. return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -316,11 +322,12 @@ func (client *TableResourcesClient) getTableThroughputHandleResponse(resp *http. } // NewListTablesPager - Lists the Tables under an existing Azure Cosmos DB database account. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// options - TableResourcesClientListTablesOptions contains the optional parameters for the TableResourcesClient.ListTables -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - options - TableResourcesClientListTablesOptions contains the optional parameters for the TableResourcesClient.NewListTablesPager +// method. func (client *TableResourcesClient) NewListTablesPager(resourceGroupName string, accountName string, options *TableResourcesClientListTablesOptions) *runtime.Pager[TableResourcesClientListTablesResponse] { return runtime.NewPager(runtime.PagingHandler[TableResourcesClientListTablesResponse]{ More: func(page TableResourcesClientListTablesResponse) bool { @@ -363,7 +370,7 @@ func (client *TableResourcesClient) listTablesCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -380,12 +387,13 @@ func (client *TableResourcesClient) listTablesHandleResponse(resp *http.Response // BeginMigrateTableToAutoscale - Migrate an Azure Cosmos DB Table from manual throughput to autoscale // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// tableName - Cosmos DB table name. -// options - TableResourcesClientBeginMigrateTableToAutoscaleOptions contains the optional parameters for the TableResourcesClient.BeginMigrateTableToAutoscale -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - tableName - Cosmos DB table name. +// - options - TableResourcesClientBeginMigrateTableToAutoscaleOptions contains the optional parameters for the TableResourcesClient.BeginMigrateTableToAutoscale +// method. func (client *TableResourcesClient) BeginMigrateTableToAutoscale(ctx context.Context, resourceGroupName string, accountName string, tableName string, options *TableResourcesClientBeginMigrateTableToAutoscaleOptions) (*runtime.Poller[TableResourcesClientMigrateTableToAutoscaleResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.migrateTableToAutoscale(ctx, resourceGroupName, accountName, tableName, options) @@ -400,7 +408,8 @@ func (client *TableResourcesClient) BeginMigrateTableToAutoscale(ctx context.Con // MigrateTableToAutoscale - Migrate an Azure Cosmos DB Table from manual throughput to autoscale // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *TableResourcesClient) migrateTableToAutoscale(ctx context.Context, resourceGroupName string, accountName string, tableName string, options *TableResourcesClientBeginMigrateTableToAutoscaleOptions) (*http.Response, error) { req, err := client.migrateTableToAutoscaleCreateRequest(ctx, resourceGroupName, accountName, tableName, options) if err != nil { @@ -440,7 +449,7 @@ func (client *TableResourcesClient) migrateTableToAutoscaleCreateRequest(ctx con return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -448,12 +457,13 @@ func (client *TableResourcesClient) migrateTableToAutoscaleCreateRequest(ctx con // BeginMigrateTableToManualThroughput - Migrate an Azure Cosmos DB Table from autoscale to manual throughput // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// tableName - Cosmos DB table name. -// options - TableResourcesClientBeginMigrateTableToManualThroughputOptions contains the optional parameters for the TableResourcesClient.BeginMigrateTableToManualThroughput -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - tableName - Cosmos DB table name. +// - options - TableResourcesClientBeginMigrateTableToManualThroughputOptions contains the optional parameters for the TableResourcesClient.BeginMigrateTableToManualThroughput +// method. func (client *TableResourcesClient) BeginMigrateTableToManualThroughput(ctx context.Context, resourceGroupName string, accountName string, tableName string, options *TableResourcesClientBeginMigrateTableToManualThroughputOptions) (*runtime.Poller[TableResourcesClientMigrateTableToManualThroughputResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.migrateTableToManualThroughput(ctx, resourceGroupName, accountName, tableName, options) @@ -468,7 +478,8 @@ func (client *TableResourcesClient) BeginMigrateTableToManualThroughput(ctx cont // MigrateTableToManualThroughput - Migrate an Azure Cosmos DB Table from autoscale to manual throughput // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *TableResourcesClient) migrateTableToManualThroughput(ctx context.Context, resourceGroupName string, accountName string, tableName string, options *TableResourcesClientBeginMigrateTableToManualThroughputOptions) (*http.Response, error) { req, err := client.migrateTableToManualThroughputCreateRequest(ctx, resourceGroupName, accountName, tableName, options) if err != nil { @@ -508,7 +519,7 @@ func (client *TableResourcesClient) migrateTableToManualThroughputCreateRequest( return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -516,13 +527,14 @@ func (client *TableResourcesClient) migrateTableToManualThroughputCreateRequest( // BeginRetrieveContinuousBackupInformation - Retrieves continuous backup information for a table. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// tableName - Cosmos DB table name. -// location - The name of the continuous backup restore location. -// options - TableResourcesClientBeginRetrieveContinuousBackupInformationOptions contains the optional parameters for the -// TableResourcesClient.BeginRetrieveContinuousBackupInformation method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - tableName - Cosmos DB table name. +// - location - The name of the continuous backup restore location. +// - options - TableResourcesClientBeginRetrieveContinuousBackupInformationOptions contains the optional parameters for the +// TableResourcesClient.BeginRetrieveContinuousBackupInformation method. func (client *TableResourcesClient) BeginRetrieveContinuousBackupInformation(ctx context.Context, resourceGroupName string, accountName string, tableName string, location ContinuousBackupRestoreLocation, options *TableResourcesClientBeginRetrieveContinuousBackupInformationOptions) (*runtime.Poller[TableResourcesClientRetrieveContinuousBackupInformationResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.retrieveContinuousBackupInformation(ctx, resourceGroupName, accountName, tableName, location, options) @@ -539,7 +551,8 @@ func (client *TableResourcesClient) BeginRetrieveContinuousBackupInformation(ctx // RetrieveContinuousBackupInformation - Retrieves continuous backup information for a table. // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *TableResourcesClient) retrieveContinuousBackupInformation(ctx context.Context, resourceGroupName string, accountName string, tableName string, location ContinuousBackupRestoreLocation, options *TableResourcesClientBeginRetrieveContinuousBackupInformationOptions) (*http.Response, error) { req, err := client.retrieveContinuousBackupInformationCreateRequest(ctx, resourceGroupName, accountName, tableName, location, options) if err != nil { @@ -579,7 +592,7 @@ func (client *TableResourcesClient) retrieveContinuousBackupInformationCreateReq return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, location) @@ -587,13 +600,14 @@ func (client *TableResourcesClient) retrieveContinuousBackupInformationCreateReq // BeginUpdateTableThroughput - Update RUs per second of an Azure Cosmos DB Table // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview -// resourceGroupName - The name of the resource group. The name is case insensitive. -// accountName - Cosmos DB database account name. -// tableName - Cosmos DB table name. -// updateThroughputParameters - The parameters to provide for the RUs per second of the current Table. -// options - TableResourcesClientBeginUpdateTableThroughputOptions contains the optional parameters for the TableResourcesClient.BeginUpdateTableThroughput -// method. +// +// Generated from API version 2022-11-15 +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - accountName - Cosmos DB database account name. +// - tableName - Cosmos DB table name. +// - updateThroughputParameters - The parameters to provide for the RUs per second of the current Table. +// - options - TableResourcesClientBeginUpdateTableThroughputOptions contains the optional parameters for the TableResourcesClient.BeginUpdateTableThroughput +// method. func (client *TableResourcesClient) BeginUpdateTableThroughput(ctx context.Context, resourceGroupName string, accountName string, tableName string, updateThroughputParameters ThroughputSettingsUpdateParameters, options *TableResourcesClientBeginUpdateTableThroughputOptions) (*runtime.Poller[TableResourcesClientUpdateTableThroughputResponse], error) { if options == nil || options.ResumeToken == "" { resp, err := client.updateTableThroughput(ctx, resourceGroupName, accountName, tableName, updateThroughputParameters, options) @@ -608,7 +622,8 @@ func (client *TableResourcesClient) BeginUpdateTableThroughput(ctx context.Conte // UpdateTableThroughput - Update RUs per second of an Azure Cosmos DB Table // If the operation fails it returns an *azcore.ResponseError type. -// Generated from API version 2022-08-15-preview +// +// Generated from API version 2022-11-15 func (client *TableResourcesClient) updateTableThroughput(ctx context.Context, resourceGroupName string, accountName string, tableName string, updateThroughputParameters ThroughputSettingsUpdateParameters, options *TableResourcesClientBeginUpdateTableThroughputOptions) (*http.Response, error) { req, err := client.updateTableThroughputCreateRequest(ctx, resourceGroupName, accountName, tableName, updateThroughputParameters, options) if err != nil { @@ -648,7 +663,7 @@ func (client *TableResourcesClient) updateTableThroughputCreateRequest(ctx conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-08-15-preview") + reqQP.Set("api-version", "2022-11-15") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, updateThroughputParameters) diff --git a/sdk/resourcemanager/cosmos/armcosmos/tableresources_client_example_test.go b/sdk/resourcemanager/cosmos/armcosmos/tableresources_client_example_test.go index 9714d60160bd..546648b6d908 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/tableresources_client_example_test.go +++ b/sdk/resourcemanager/cosmos/armcosmos/tableresources_client_example_test.go @@ -5,6 +5,7 @@ // Licensed under the MIT License. See License.txt in the project root for license information. // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. package armcosmos_test @@ -17,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cosmos/armcosmos/v2" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBTableList.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBTableList.json func ExampleTableResourcesClient_NewListTablesPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -30,18 +31,35 @@ func ExampleTableResourcesClient_NewListTablesPager() { } pager := client.NewListTablesPager("rgName", "ddb1", nil) for pager.More() { - nextResult, err := pager.NextPage(ctx) + page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } - for _, v := range nextResult.Value { - // TODO: use page item + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. _ = v } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.TableListResult = armcosmos.TableListResult{ + // Value: []*armcosmos.TableGetResults{ + // { + // Name: to.Ptr("tableName"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/tables"), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/tables/tableName"), + // Location: to.Ptr("West US"), + // Tags: map[string]*string{ + // }, + // Properties: &armcosmos.TableGetProperties{ + // Resource: &armcosmos.TableGetPropertiesResource{ + // ID: to.Ptr("tableName"), + // }, + // }, + // }}, + // } } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBTableGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBTableGet.json func ExampleTableResourcesClient_GetTable() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -56,11 +74,28 @@ func ExampleTableResourcesClient_GetTable() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.TableGetResults = armcosmos.TableGetResults{ + // Name: to.Ptr("tableName"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/tables"), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/tables/tableName"), + // Location: to.Ptr("West US"), + // Tags: map[string]*string{ + // }, + // Properties: &armcosmos.TableGetProperties{ + // Resource: &armcosmos.TableGetPropertiesResource{ + // Etag: to.Ptr("\"00005900-0000-0000-0000-56f9a2630000\""), + // Rid: to.Ptr("PD5DALigDgw="), + // Ts: to.Ptr[float32](1459200611), + // ID: to.Ptr("tableName"), + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBTableCreateUpdate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBTableCreateUpdate.json func ExampleTableResourcesClient_BeginCreateUpdateTable() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -88,11 +123,23 @@ func ExampleTableResourcesClient_BeginCreateUpdateTable() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.TableGetResults = armcosmos.TableGetResults{ + // Name: to.Ptr("tableName"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/tables"), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/tables/tableName"), + // Location: to.Ptr("West US"), + // Properties: &armcosmos.TableGetProperties{ + // Resource: &armcosmos.TableGetPropertiesResource{ + // ID: to.Ptr("tableName"), + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBTableDelete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBTableDelete.json func ExampleTableResourcesClient_BeginDeleteTable() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -113,7 +160,7 @@ func ExampleTableResourcesClient_BeginDeleteTable() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBTableThroughputGet.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBTableThroughputGet.json func ExampleTableResourcesClient_GetTableThroughput() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -128,11 +175,30 @@ func ExampleTableResourcesClient_GetTableThroughput() { if err != nil { log.Fatalf("failed to finish the request: %v", err) } - // TODO: use response item + // 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.ThroughputSettingsGetResults = armcosmos.ThroughputSettingsGetResults{ + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/tables/throughputSettings"), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/tables/tableName/throughputSettings/default"), + // Location: to.Ptr("West US"), + // Tags: map[string]*string{ + // }, + // Properties: &armcosmos.ThroughputSettingsGetProperties{ + // Resource: &armcosmos.ThroughputSettingsGetPropertiesResource{ + // Etag: to.Ptr("\"00005900-0000-0000-0000-56f9a2630000\""), + // Rid: to.Ptr("PD5DALigDgw="), + // Ts: to.Ptr[float32](1459200611), + // MinimumThroughput: to.Ptr("400"), + // OfferReplacePending: to.Ptr("true"), + // Throughput: to.Ptr[int32](400), + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBTableThroughputUpdate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBTableThroughputUpdate.json func ExampleTableResourcesClient_BeginUpdateTableThroughput() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -159,11 +225,30 @@ func ExampleTableResourcesClient_BeginUpdateTableThroughput() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.ThroughputSettingsGetResults = armcosmos.ThroughputSettingsGetResults{ + // Name: to.Ptr("default"), + // Type: to.Ptr("Microsoft.DocumentDB/databaseAccounts/tables/throughputSettings"), + // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/tables/tableName/throughputSettings/default"), + // Location: to.Ptr("West US"), + // Tags: map[string]*string{ + // }, + // Properties: &armcosmos.ThroughputSettingsGetProperties{ + // Resource: &armcosmos.ThroughputSettingsGetPropertiesResource{ + // Etag: to.Ptr("\"00005900-0000-0000-0000-56f9a2630000\""), + // Rid: to.Ptr("PD5DALigDgw="), + // Ts: to.Ptr[float32](1459200611), + // MinimumThroughput: to.Ptr("400"), + // OfferReplacePending: to.Ptr("true"), + // Throughput: to.Ptr[int32](400), + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBTableMigrateToAutoscale.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBTableMigrateToAutoscale.json func ExampleTableResourcesClient_BeginMigrateTableToAutoscale() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -182,11 +267,27 @@ func ExampleTableResourcesClient_BeginMigrateTableToAutoscale() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.ThroughputSettingsGetResults = armcosmos.ThroughputSettingsGetResults{ + // Properties: &armcosmos.ThroughputSettingsGetProperties{ + // Resource: &armcosmos.ThroughputSettingsGetPropertiesResource{ + // Etag: to.Ptr("\"00005900-0000-0000-0000-56f9a2630000\""), + // Rid: to.Ptr("PD5DALigDgw="), + // Ts: to.Ptr[float32](1459200611), + // AutoscaleSettings: &armcosmos.AutoscaleSettingsResource{ + // MaxThroughput: to.Ptr[int32](4000), + // }, + // MinimumThroughput: to.Ptr("4000"), + // OfferReplacePending: to.Ptr("false"), + // Throughput: to.Ptr[int32](400), + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBTableMigrateToManualThroughput.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBTableMigrateToManualThroughput.json func ExampleTableResourcesClient_BeginMigrateTableToManualThroughput() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -205,11 +306,24 @@ func ExampleTableResourcesClient_BeginMigrateTableToManualThroughput() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.ThroughputSettingsGetResults = armcosmos.ThroughputSettingsGetResults{ + // Properties: &armcosmos.ThroughputSettingsGetProperties{ + // Resource: &armcosmos.ThroughputSettingsGetPropertiesResource{ + // Etag: to.Ptr("\"00005900-0000-0000-0000-56f9a2630000\""), + // Rid: to.Ptr("PD5DALigDgw="), + // Ts: to.Ptr[float32](1459200611), + // MinimumThroughput: to.Ptr("400"), + // OfferReplacePending: to.Ptr("true"), + // Throughput: to.Ptr[int32](400), + // }, + // }, + // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/tree/main/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2022-08-15-preview/examples/CosmosDBTableBackupInformation.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/402006d2796cdd3894d013d83e77b46a5c844005/specification/cosmos-db/resource-manager/Microsoft.DocumentDB/stable/2022-11-15/examples/CosmosDBTableBackupInformation.json func ExampleTableResourcesClient_BeginRetrieveContinuousBackupInformation() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -230,6 +344,12 @@ func ExampleTableResourcesClient_BeginRetrieveContinuousBackupInformation() { if err != nil { log.Fatalf("failed to pull the result: %v", err) } - // TODO: use response item + // 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.BackupInformation = armcosmos.BackupInformation{ + // ContinuousBackupInformation: &armcosmos.ContinuousBackupInformation{ + // LatestRestorableTimestamp: to.Ptr("2021-02-05T02:40:50Z"), + // }, + // } } diff --git a/sdk/resourcemanager/cosmos/armcosmos/testdata/recordings/TestCassandraresourcesTestSuite.json b/sdk/resourcemanager/cosmos/armcosmos/testdata/recordings/TestCassandraresourcesTestSuite.json index d3e06fea2abb..7af0e56dcb8a 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/testdata/recordings/TestCassandraresourcesTestSuite.json +++ b/sdk/resourcemanager/cosmos/armcosmos/testdata/recordings/TestCassandraresourcesTestSuite.json @@ -40,7 +40,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra?api-version=2022-11-15", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -71,12 +71,12 @@ }, "StatusCode": 200, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Cache-Control": "no-store, no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json", "Date": "Mon, 29 Aug 2022 06:07:14 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -182,7 +182,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -213,7 +213,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -244,7 +244,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -275,7 +275,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -306,7 +306,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -337,7 +337,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -368,7 +368,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -399,7 +399,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -430,7 +430,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -554,7 +554,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM?api-version=2022-11-15", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -578,12 +578,12 @@ }, "StatusCode": 202, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Cache-Control": "no-store, no-cache", "Content-Length": "21", "Content-Type": "application/json", "Date": "Mon, 29 Aug 2022 06:10:52 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -599,7 +599,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -630,7 +630,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -661,7 +661,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -702,7 +702,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -744,7 +744,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -790,7 +790,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/throughputSettings/default?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/throughputSettings/default?api-version=2022-11-15", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -811,12 +811,12 @@ }, "StatusCode": 202, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Cache-Control": "no-store, no-cache", "Content-Length": "21", "Content-Type": "application/json", "Date": "Mon, 29 Aug 2022 06:11:27 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/throughputSettings/default/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/throughputSettings/default/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -832,7 +832,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -863,7 +863,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -894,7 +894,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/throughputSettings/default?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/throughputSettings/default?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -933,7 +933,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/throughputSettings/default?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/throughputSettings/default?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -973,7 +973,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/throughputSettings/default/migrateToAutoscale?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/throughputSettings/default/migrateToAutoscale?api-version=2022-11-15", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -985,12 +985,12 @@ "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Cache-Control": "no-store, no-cache", "Content-Length": "21", "Content-Type": "application/json", "Date": "Mon, 29 Aug 2022 06:12:02 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/throughputSettings/default/migrateToAutoscale/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/throughputSettings/default/migrateToAutoscale/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -1006,7 +1006,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1037,7 +1037,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1068,7 +1068,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/throughputSettings/default/migrateToAutoscale/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/throughputSettings/default/migrateToAutoscale/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1110,7 +1110,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/throughputSettings/default/migrateToManualThroughput?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/throughputSettings/default/migrateToManualThroughput?api-version=2022-11-15", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -1122,12 +1122,12 @@ "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Cache-Control": "no-store, no-cache", "Content-Length": "21", "Content-Type": "application/json", "Date": "Mon, 29 Aug 2022 06:12:36 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/throughputSettings/default/migrateToManualThroughput/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/throughputSettings/default/migrateToManualThroughput/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -1143,7 +1143,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1174,7 +1174,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1205,7 +1205,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/throughputSettings/default/migrateToManualThroughput/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/throughputSettings/default/migrateToManualThroughput/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1244,7 +1244,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/tables/tableName?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/tables/tableName?api-version=2022-11-15", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -1282,12 +1282,12 @@ }, "StatusCode": 202, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Cache-Control": "no-store, no-cache", "Content-Length": "21", "Content-Type": "application/json", "Date": "Mon, 29 Aug 2022 06:13:09 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/tables/tableName/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/tables/tableName/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -1303,7 +1303,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1334,7 +1334,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1365,7 +1365,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/tables/tableName?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/tables/tableName?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1420,7 +1420,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/tables/tableName?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/tables/tableName?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -1476,7 +1476,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/tables?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/tables?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -1536,7 +1536,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/tables/tableName/throughputSettings/default?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/tables/tableName/throughputSettings/default?api-version=2022-11-15", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -1557,12 +1557,12 @@ }, "StatusCode": 202, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Cache-Control": "no-store, no-cache", "Content-Length": "21", "Content-Type": "application/json", "Date": "Mon, 29 Aug 2022 06:13:45 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/tables/tableName/throughputSettings/default/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/tables/tableName/throughputSettings/default/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -1578,7 +1578,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1609,7 +1609,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1640,7 +1640,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/tables/tableName/throughputSettings/default?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/tables/tableName/throughputSettings/default?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1679,7 +1679,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/tables/tableName/throughputSettings/default?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/tables/tableName/throughputSettings/default?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -1719,7 +1719,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/tables/tableName/throughputSettings/default/migrateToAutoscale?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/tables/tableName/throughputSettings/default/migrateToAutoscale?api-version=2022-11-15", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -1731,12 +1731,12 @@ "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Cache-Control": "no-store, no-cache", "Content-Length": "21", "Content-Type": "application/json", "Date": "Mon, 29 Aug 2022 06:14:20 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/tables/tableName/throughputSettings/default/migrateToAutoscale/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/tables/tableName/throughputSettings/default/migrateToAutoscale/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -1752,7 +1752,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1783,7 +1783,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1814,7 +1814,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/tables/tableName/throughputSettings/default/migrateToAutoscale/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/tables/tableName/throughputSettings/default/migrateToAutoscale/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1856,7 +1856,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/tables/tableName/throughputSettings/default/migrateToManualThroughput?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/tables/tableName/throughputSettings/default/migrateToManualThroughput?api-version=2022-11-15", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -1868,12 +1868,12 @@ "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Cache-Control": "no-store, no-cache", "Content-Length": "21", "Content-Type": "application/json", "Date": "Mon, 29 Aug 2022 06:14:54 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/tables/tableName/throughputSettings/default/migrateToManualThroughput/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/tables/tableName/throughputSettings/default/migrateToManualThroughput/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -1889,7 +1889,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1920,7 +1920,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1951,7 +1951,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/tables/tableName/throughputSettings/default/migrateToManualThroughput/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/tables/tableName/throughputSettings/default/migrateToManualThroughput/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1990,7 +1990,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/tables/tableName?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/tables/tableName?api-version=2022-11-15", "RequestMethod": "DELETE", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -2000,12 +2000,12 @@ "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Cache-Control": "no-store, no-cache", "Content-Length": "21", "Content-Type": "application/json", "Date": "Mon, 29 Aug 2022 06:15:27 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/tables/tableName/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/tables/tableName/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -2021,7 +2021,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -2052,7 +2052,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", diff --git a/sdk/resourcemanager/cosmos/armcosmos/testdata/recordings/TestDatabaseaccountsTestSuite.json b/sdk/resourcemanager/cosmos/armcosmos/testdata/recordings/TestDatabaseaccountsTestSuite.json index 88bc77882758..490e197d3b0f 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/testdata/recordings/TestDatabaseaccountsTestSuite.json +++ b/sdk/resourcemanager/cosmos/armcosmos/testdata/recordings/TestDatabaseaccountsTestSuite.json @@ -40,7 +40,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos?api-version=2022-11-15", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -73,12 +73,12 @@ }, "StatusCode": 200, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Cache-Control": "no-store, no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json", "Date": "Mon, 29 Aug 2022 06:16:28 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -180,7 +180,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -211,7 +211,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -242,7 +242,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -273,7 +273,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -304,7 +304,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -335,7 +335,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -366,7 +366,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -397,7 +397,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -428,7 +428,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -459,7 +459,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -490,7 +490,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -521,7 +521,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -682,7 +682,7 @@ } }, { - "RequestUri": "https://management.azure.com/providers/Microsoft.DocumentDB/databaseAccountNames/databaseaccountcosmos?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/providers/Microsoft.DocumentDB/databaseAccountNames/databaseaccountcosmos?api-version=2022-11-15", "RequestMethod": "HEAD", "RequestHeaders": { "Authorization": "Sanitized", @@ -707,7 +707,7 @@ "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -869,7 +869,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/databaseAccounts?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/databaseAccounts?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -1228,7 +1228,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -1394,7 +1394,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos/listKeys?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos/listKeys?api-version=2022-11-15", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -1430,7 +1430,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos/listConnectionStrings?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos/listConnectionStrings?api-version=2022-11-15", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -1480,7 +1480,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos/readonlykeys?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos/readonlykeys?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -1513,7 +1513,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos/readonlykeys?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos/readonlykeys?api-version=2022-11-15", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -1547,7 +1547,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos/metricDefinitions?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos/metricDefinitions?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -2589,7 +2589,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos/failoverPriorityChange?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos/failoverPriorityChange?api-version=2022-11-15", "RequestMethod": "POST", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -2616,12 +2616,12 @@ }, "StatusCode": 202, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Cache-Control": "no-store, no-cache", "Content-Length": "21", "Content-Type": "application/json", "Date": "Mon, 29 Aug 2022 06:21:51 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos/failoverPriorityChange/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos/failoverPriorityChange/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -2637,7 +2637,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -2668,7 +2668,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -2699,7 +2699,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -2730,7 +2730,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos/failoverPriorityChange/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos/failoverPriorityChange/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -2761,7 +2761,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos/regenerateKey?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos/regenerateKey?api-version=2022-11-15", "RequestMethod": "POST", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -2775,12 +2775,12 @@ }, "StatusCode": 202, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Cache-Control": "no-store, no-cache", "Content-Length": "21", "Content-Type": "application/json", "Date": "Mon, 29 Aug 2022 06:22:57 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos/regenerateKey/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos/regenerateKey/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -2796,7 +2796,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -2827,7 +2827,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -2858,7 +2858,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -2889,7 +2889,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos/regenerateKey/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos/regenerateKey/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -2920,7 +2920,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos?api-version=2022-11-15", "RequestMethod": "PATCH", "RequestHeaders": { "Accept": "application/json", @@ -2937,12 +2937,12 @@ }, "StatusCode": 200, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Cache-Control": "no-store, no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json", "Date": "Mon, 29 Aug 2022 06:24:03 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -3090,7 +3090,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -3121,7 +3121,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -3152,7 +3152,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -3183,7 +3183,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -3214,7 +3214,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -3377,7 +3377,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos?api-version=2022-11-15", "RequestMethod": "DELETE", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -3387,12 +3387,12 @@ "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Cache-Control": "no-store, no-cache", "Content-Length": "21", "Content-Type": "application/json", "Date": "Mon, 29 Aug 2022 06:25:40 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -3408,7 +3408,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -3439,7 +3439,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -3470,7 +3470,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -3501,7 +3501,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -3532,7 +3532,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -3563,7 +3563,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -3594,7 +3594,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -3625,7 +3625,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -3656,7 +3656,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -3687,7 +3687,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -3718,7 +3718,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -3749,7 +3749,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -3780,7 +3780,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -3811,7 +3811,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -3842,7 +3842,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -3873,7 +3873,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -3904,7 +3904,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -3935,7 +3935,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -3966,7 +3966,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -3997,7 +3997,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -4028,7 +4028,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -4059,7 +4059,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -4090,7 +4090,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -4121,7 +4121,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -4152,7 +4152,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -4183,7 +4183,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -4214,7 +4214,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -4245,7 +4245,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -4276,7 +4276,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -4307,7 +4307,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -4338,7 +4338,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -4369,7 +4369,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -4400,7 +4400,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -4431,7 +4431,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -4462,7 +4462,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -4493,7 +4493,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -4524,7 +4524,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -4555,7 +4555,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -4586,7 +4586,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -4617,7 +4617,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -4648,7 +4648,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -4679,7 +4679,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", diff --git a/sdk/resourcemanager/cosmos/armcosmos/testdata/recordings/TestGremlinresourcesTestSuite.json b/sdk/resourcemanager/cosmos/armcosmos/testdata/recordings/TestGremlinresourcesTestSuite.json index 9931e112c2a1..7bd1c2fb328c 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/testdata/recordings/TestGremlinresourcesTestSuite.json +++ b/sdk/resourcemanager/cosmos/armcosmos/testdata/recordings/TestGremlinresourcesTestSuite.json @@ -40,7 +40,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin?api-version=2022-11-15", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -71,12 +71,12 @@ }, "StatusCode": 200, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Cache-Control": "no-store, no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json", "Date": "Mon, 29 Aug 2022 06:46:58 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -182,7 +182,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -213,7 +213,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -244,7 +244,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -275,7 +275,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -306,7 +306,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -337,7 +337,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -368,7 +368,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -399,7 +399,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -430,7 +430,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -554,7 +554,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb?api-version=2022-11-15", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -578,12 +578,12 @@ }, "StatusCode": 202, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Cache-Control": "no-store, no-cache", "Content-Length": "21", "Content-Type": "application/json", "Date": "Mon, 29 Aug 2022 06:50:35 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -599,7 +599,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -630,7 +630,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -661,7 +661,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -705,7 +705,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -750,7 +750,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -799,7 +799,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/throughputSettings/default?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/throughputSettings/default?api-version=2022-11-15", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -820,12 +820,12 @@ }, "StatusCode": 202, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Cache-Control": "no-store, no-cache", "Content-Length": "21", "Content-Type": "application/json", "Date": "Mon, 29 Aug 2022 06:51:09 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/throughputSettings/default/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/throughputSettings/default/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -841,7 +841,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -872,7 +872,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -903,7 +903,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/throughputSettings/default?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/throughputSettings/default?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -942,7 +942,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/throughputSettings/default?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/throughputSettings/default?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -982,7 +982,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/throughputSettings/default/migrateToAutoscale?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/throughputSettings/default/migrateToAutoscale?api-version=2022-11-15", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -994,12 +994,12 @@ "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Cache-Control": "no-store, no-cache", "Content-Length": "21", "Content-Type": "application/json", "Date": "Mon, 29 Aug 2022 06:51:44 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/throughputSettings/default/migrateToAutoscale/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/throughputSettings/default/migrateToAutoscale/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -1015,7 +1015,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1046,7 +1046,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1077,7 +1077,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/throughputSettings/default/migrateToAutoscale/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/throughputSettings/default/migrateToAutoscale/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1119,7 +1119,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/throughputSettings/default/migrateToManualThroughput?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/throughputSettings/default/migrateToManualThroughput?api-version=2022-11-15", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -1131,12 +1131,12 @@ "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Cache-Control": "no-store, no-cache", "Content-Length": "21", "Content-Type": "application/json", "Date": "Mon, 29 Aug 2022 06:52:17 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/throughputSettings/default/migrateToManualThroughput/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/throughputSettings/default/migrateToManualThroughput/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -1152,7 +1152,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1183,7 +1183,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1214,7 +1214,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/throughputSettings/default/migrateToManualThroughput/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/throughputSettings/default/migrateToManualThroughput/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1253,7 +1253,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/graphs/graphName?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/graphs/graphName?api-version=2022-11-15", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -1319,12 +1319,12 @@ }, "StatusCode": 202, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Cache-Control": "no-store, no-cache", "Content-Length": "21", "Content-Type": "application/json", "Date": "Mon, 29 Aug 2022 06:52:50 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/graphs/graphName/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/graphs/graphName/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -1340,7 +1340,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1371,7 +1371,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1402,7 +1402,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/graphs/graphName?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/graphs/graphName?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1496,7 +1496,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/graphs/graphName?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/graphs/graphName?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -1591,7 +1591,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/graphs?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/graphs?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -1681,7 +1681,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/graphs/graphName/throughputSettings/default?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/graphs/graphName/throughputSettings/default?api-version=2022-11-15", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -1702,12 +1702,12 @@ }, "StatusCode": 202, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Cache-Control": "no-store, no-cache", "Content-Length": "21", "Content-Type": "application/json", "Date": "Mon, 29 Aug 2022 06:53:25 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/graphs/graphName/throughputSettings/default/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/graphs/graphName/throughputSettings/default/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -1723,7 +1723,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1754,7 +1754,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1785,7 +1785,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/graphs/graphName/throughputSettings/default?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/graphs/graphName/throughputSettings/default?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1824,7 +1824,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/graphs/graphName/throughputSettings/default?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/graphs/graphName/throughputSettings/default?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -1864,7 +1864,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/graphs/graphName/throughputSettings/default/migrateToAutoscale?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/graphs/graphName/throughputSettings/default/migrateToAutoscale?api-version=2022-11-15", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -1876,12 +1876,12 @@ "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Cache-Control": "no-store, no-cache", "Content-Length": "21", "Content-Type": "application/json", "Date": "Mon, 29 Aug 2022 06:54:01 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/graphs/graphName/throughputSettings/default/migrateToAutoscale/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/graphs/graphName/throughputSettings/default/migrateToAutoscale/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -1897,7 +1897,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1928,7 +1928,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1959,7 +1959,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/graphs/graphName/throughputSettings/default/migrateToAutoscale/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/graphs/graphName/throughputSettings/default/migrateToAutoscale/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -2001,7 +2001,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/graphs/graphName/throughputSettings/default/migrateToManualThroughput?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/graphs/graphName/throughputSettings/default/migrateToManualThroughput?api-version=2022-11-15", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -2013,12 +2013,12 @@ "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Cache-Control": "no-store, no-cache", "Content-Length": "21", "Content-Type": "application/json", "Date": "Mon, 29 Aug 2022 06:54:34 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/graphs/graphName/throughputSettings/default/migrateToManualThroughput/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/graphs/graphName/throughputSettings/default/migrateToManualThroughput/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -2034,7 +2034,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -2065,7 +2065,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -2096,7 +2096,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/graphs/graphName/throughputSettings/default/migrateToManualThroughput/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/graphs/graphName/throughputSettings/default/migrateToManualThroughput/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -2135,7 +2135,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/graphs/graphName?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/graphs/graphName?api-version=2022-11-15", "RequestMethod": "DELETE", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -2145,12 +2145,12 @@ "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Cache-Control": "no-store, no-cache", "Content-Length": "21", "Content-Type": "application/json", "Date": "Mon, 29 Aug 2022 06:55:07 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/graphs/graphName/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/graphs/graphName/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -2166,7 +2166,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -2197,7 +2197,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -2228,7 +2228,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb?api-version=2022-11-15", "RequestMethod": "DELETE", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -2238,12 +2238,12 @@ "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Cache-Control": "no-store, no-cache", "Content-Length": "21", "Content-Type": "application/json", "Date": "Mon, 29 Aug 2022 06:55:39 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -2259,7 +2259,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -2290,7 +2290,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", diff --git a/sdk/resourcemanager/cosmos/armcosmos/testdata/recordings/TestMongodbresourcesTestSuite.json b/sdk/resourcemanager/cosmos/armcosmos/testdata/recordings/TestMongodbresourcesTestSuite.json index cbc1e253c6fd..481ab60b8768 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/testdata/recordings/TestMongodbresourcesTestSuite.json +++ b/sdk/resourcemanager/cosmos/armcosmos/testdata/recordings/TestMongodbresourcesTestSuite.json @@ -40,7 +40,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb?api-version=2022-11-15", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -67,12 +67,12 @@ }, "StatusCode": 200, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Cache-Control": "no-store, no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json", "Date": "Mon, 29 Aug 2022 06:56:26 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -181,7 +181,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -212,7 +212,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -243,7 +243,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -274,7 +274,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -305,7 +305,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -336,7 +336,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -367,7 +367,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -398,7 +398,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -527,7 +527,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb?api-version=2022-11-15", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -551,12 +551,12 @@ }, "StatusCode": 202, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Cache-Control": "no-store, no-cache", "Content-Length": "21", "Content-Type": "application/json", "Date": "Mon, 29 Aug 2022 06:59:32 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -572,7 +572,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -603,7 +603,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -634,7 +634,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -672,7 +672,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -711,7 +711,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -754,7 +754,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/throughputSettings/default?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/throughputSettings/default?api-version=2022-11-15", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -775,12 +775,12 @@ }, "StatusCode": 202, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Cache-Control": "no-store, no-cache", "Content-Length": "21", "Content-Type": "application/json", "Date": "Mon, 29 Aug 2022 07:00:10 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/throughputSettings/default/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/throughputSettings/default/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -796,7 +796,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -827,7 +827,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -858,7 +858,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/throughputSettings/default?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/throughputSettings/default?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -897,7 +897,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/throughputSettings/default?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/throughputSettings/default?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -937,7 +937,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/throughputSettings/default/migrateToAutoscale?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/throughputSettings/default/migrateToAutoscale?api-version=2022-11-15", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -949,12 +949,12 @@ "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Cache-Control": "no-store, no-cache", "Content-Length": "21", "Content-Type": "application/json", "Date": "Mon, 29 Aug 2022 07:00:44 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/throughputSettings/default/migrateToAutoscale/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/throughputSettings/default/migrateToAutoscale/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -970,7 +970,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1001,7 +1001,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1032,7 +1032,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/throughputSettings/default/migrateToAutoscale/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/throughputSettings/default/migrateToAutoscale/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1074,7 +1074,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/throughputSettings/default/migrateToManualThroughput?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/throughputSettings/default/migrateToManualThroughput?api-version=2022-11-15", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -1086,12 +1086,12 @@ "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Cache-Control": "no-store, no-cache", "Content-Length": "21", "Content-Type": "application/json", "Date": "Mon, 29 Aug 2022 07:01:17 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/throughputSettings/default/migrateToManualThroughput/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/throughputSettings/default/migrateToManualThroughput/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -1107,7 +1107,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1138,7 +1138,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1169,7 +1169,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/throughputSettings/default/migrateToManualThroughput/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/throughputSettings/default/migrateToManualThroughput/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1208,7 +1208,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/collections/mongodb_collection?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/collections/mongodb_collection?api-version=2022-11-15", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -1235,12 +1235,12 @@ }, "StatusCode": 202, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Cache-Control": "no-store, no-cache", "Content-Length": "21", "Content-Type": "application/json", "Date": "Mon, 29 Aug 2022 07:01:51 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/collections/mongodb_collection/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/collections/mongodb_collection/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -1256,7 +1256,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1287,7 +1287,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1318,7 +1318,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/collections/mongodb_collection?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/collections/mongodb_collection?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1368,7 +1368,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/collections/mongodb_collection?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/collections/mongodb_collection?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -1419,7 +1419,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/collections?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/collections?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -1474,7 +1474,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/collections/mongodb_collection/throughputSettings/default?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/collections/mongodb_collection/throughputSettings/default?api-version=2022-11-15", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -1495,12 +1495,12 @@ }, "StatusCode": 202, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Cache-Control": "no-store, no-cache", "Content-Length": "21", "Content-Type": "application/json", "Date": "Mon, 29 Aug 2022 07:02:27 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/collections/mongodb_collection/throughputSettings/default/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/collections/mongodb_collection/throughputSettings/default/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -1516,7 +1516,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1547,7 +1547,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1578,7 +1578,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/collections/mongodb_collection/throughputSettings/default?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/collections/mongodb_collection/throughputSettings/default?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1617,7 +1617,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/collections/mongodb_collection/throughputSettings/default?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/collections/mongodb_collection/throughputSettings/default?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -1657,7 +1657,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/collections/mongodb_collection/throughputSettings/default/migrateToAutoscale?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/collections/mongodb_collection/throughputSettings/default/migrateToAutoscale?api-version=2022-11-15", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -1669,12 +1669,12 @@ "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Cache-Control": "no-store, no-cache", "Content-Length": "21", "Content-Type": "application/json", "Date": "Mon, 29 Aug 2022 07:03:02 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/collections/mongodb_collection/throughputSettings/default/migrateToAutoscale/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/collections/mongodb_collection/throughputSettings/default/migrateToAutoscale/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -1690,7 +1690,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1721,7 +1721,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1752,7 +1752,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/collections/mongodb_collection/throughputSettings/default/migrateToAutoscale/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/collections/mongodb_collection/throughputSettings/default/migrateToAutoscale/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1794,7 +1794,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/collections/mongodb_collection/throughputSettings/default/migrateToManualThroughput?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/collections/mongodb_collection/throughputSettings/default/migrateToManualThroughput?api-version=2022-11-15", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -1806,12 +1806,12 @@ "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Cache-Control": "no-store, no-cache", "Content-Length": "21", "Content-Type": "application/json", "Date": "Mon, 29 Aug 2022 07:03:36 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/collections/mongodb_collection/throughputSettings/default/migrateToManualThroughput/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/collections/mongodb_collection/throughputSettings/default/migrateToManualThroughput/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -1827,7 +1827,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1858,7 +1858,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1889,7 +1889,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/collections/mongodb_collection/throughputSettings/default/migrateToManualThroughput/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/collections/mongodb_collection/throughputSettings/default/migrateToManualThroughput/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1928,7 +1928,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/collections/mongodb_collection?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/collections/mongodb_collection?api-version=2022-11-15", "RequestMethod": "DELETE", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1938,12 +1938,12 @@ "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Cache-Control": "no-store, no-cache", "Content-Length": "21", "Content-Type": "application/json", "Date": "Mon, 29 Aug 2022 07:04:09 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/collections/mongodb_collection/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/collections/mongodb_collection/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -1959,7 +1959,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1990,7 +1990,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -2021,7 +2021,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb?api-version=2022-11-15", "RequestMethod": "DELETE", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -2031,12 +2031,12 @@ "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Cache-Control": "no-store, no-cache", "Content-Length": "21", "Content-Type": "application/json", "Date": "Mon, 29 Aug 2022 07:04:41 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -2052,7 +2052,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -2083,7 +2083,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", diff --git a/sdk/resourcemanager/cosmos/armcosmos/testdata/recordings/TestPrivateendpointconnectionsTestSuite.json b/sdk/resourcemanager/cosmos/armcosmos/testdata/recordings/TestPrivateendpointconnectionsTestSuite.json index 9de9b77aaae6..d586597a9bb4 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/testdata/recordings/TestPrivateendpointconnectionsTestSuite.json +++ b/sdk/resourcemanager/cosmos/armcosmos/testdata/recordings/TestPrivateendpointconnectionsTestSuite.json @@ -40,7 +40,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountpec2?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountpec2?api-version=2022-11-15", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -66,12 +66,12 @@ }, "StatusCode": 200, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Cache-Control": "no-store, no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json", "Date": "Mon, 29 Aug 2022 07:33:54 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountpec2/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountpec2/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -173,7 +173,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -204,7 +204,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -235,7 +235,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -266,7 +266,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -297,7 +297,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -328,7 +328,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -359,7 +359,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountpec2?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountpec2?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1443,7 +1443,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountpec2/privateEndpointConnections/endpointk8s1?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountpec2/privateEndpointConnections/endpointk8s1?api-version=2022-11-15", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -1468,12 +1468,12 @@ }, "StatusCode": 202, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Cache-Control": "no-store, no-cache", "Content-Length": "21", "Content-Type": "application/json", "Date": "Mon, 29 Aug 2022 07:45:15 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountpec2/privateEndpointConnections/endpointk8s1/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountpec2/privateEndpointConnections/endpointk8s1/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -1489,7 +1489,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1520,7 +1520,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1551,7 +1551,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountpec2/privateEndpointConnections/endpointk8s1?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountpec2/privateEndpointConnections/endpointk8s1?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1596,7 +1596,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountpec2/privateEndpointConnections/endpointk8s1?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountpec2/privateEndpointConnections/endpointk8s1?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -1642,7 +1642,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountpec2/privateEndpointConnections?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountpec2/privateEndpointConnections?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -1692,7 +1692,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountpec2/privateEndpointConnections/endpointk8s1?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountpec2/privateEndpointConnections/endpointk8s1?api-version=2022-11-15", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -1703,12 +1703,12 @@ "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Cache-Control": "no-store, no-cache", "Content-Length": "21", "Content-Type": "application/json", "Date": "Mon, 29 Aug 2022 07:45:47 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountpec2/privateEndpointConnections/endpointk8s1/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountpec2/privateEndpointConnections/endpointk8s1/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -1724,7 +1724,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1755,7 +1755,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1786,7 +1786,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1817,7 +1817,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1848,7 +1848,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountpec2/privateLinkResources/sql?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountpec2/privateLinkResources/sql?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -1892,7 +1892,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountpec2/privateLinkResources?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountpec2/privateLinkResources?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", diff --git a/sdk/resourcemanager/cosmos/armcosmos/testdata/recordings/TestServiceTestSuite.json b/sdk/resourcemanager/cosmos/armcosmos/testdata/recordings/TestServiceTestSuite.json index bc5994e2fef6..ffacebc061db 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/testdata/recordings/TestServiceTestSuite.json +++ b/sdk/resourcemanager/cosmos/armcosmos/testdata/recordings/TestServiceTestSuite.json @@ -40,7 +40,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountservice2?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountservice2?api-version=2022-11-15", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -66,12 +66,12 @@ }, "StatusCode": 200, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Cache-Control": "no-store, no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json", "Date": "Mon, 29 Aug 2022 08:14:09 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountservice2/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountservice2/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -173,7 +173,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -204,7 +204,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -235,7 +235,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -266,7 +266,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -297,7 +297,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -328,7 +328,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountservice2?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountservice2?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -447,7 +447,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountservice2/services/SqlDedicatedGateway?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountservice2/services/SqlDedicatedGateway?api-version=2022-11-15", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -466,12 +466,12 @@ }, "StatusCode": 202, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Cache-Control": "no-store, no-cache", "Content-Length": "21", "Content-Type": "application/json", "Date": "Mon, 29 Aug 2022 08:16:15 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountservice2/services/SqlDedicatedGateway/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountservice2/services/SqlDedicatedGateway/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -487,7 +487,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -518,7 +518,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -549,7 +549,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -580,7 +580,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -611,7 +611,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -642,7 +642,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -673,7 +673,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -704,7 +704,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -735,7 +735,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -766,7 +766,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -797,7 +797,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -828,7 +828,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -859,7 +859,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -890,7 +890,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountservice2/services/SqlDedicatedGateway?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountservice2/services/SqlDedicatedGateway?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -939,7 +939,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountservice2/services/SqlDedicatedGateway?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountservice2/services/SqlDedicatedGateway?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -989,7 +989,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountservice2/services?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountservice2/services?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -1043,7 +1043,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountservice2/services/SqlDedicatedGateway?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountservice2/services/SqlDedicatedGateway?api-version=2022-11-15", "RequestMethod": "DELETE", "RequestHeaders": { "Accept": "application/json", @@ -1054,12 +1054,12 @@ "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Cache-Control": "no-store, no-cache", "Content-Length": "21", "Content-Type": "application/json", "Date": "Mon, 29 Aug 2022 08:22:27 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountservice2/services/SqlDedicatedGateway/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountservice2/services/SqlDedicatedGateway/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -1075,7 +1075,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1106,7 +1106,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1137,7 +1137,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1168,7 +1168,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1199,7 +1199,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1230,7 +1230,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1261,7 +1261,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", diff --git a/sdk/resourcemanager/cosmos/armcosmos/testdata/recordings/TestSqlresourcesTestSuite.json b/sdk/resourcemanager/cosmos/armcosmos/testdata/recordings/TestSqlresourcesTestSuite.json index 1ba50df07e2e..85597796dca0 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/testdata/recordings/TestSqlresourcesTestSuite.json +++ b/sdk/resourcemanager/cosmos/armcosmos/testdata/recordings/TestSqlresourcesTestSuite.json @@ -40,7 +40,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2?api-version=2022-11-15", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -66,12 +66,12 @@ }, "StatusCode": 200, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Cache-Control": "no-store, no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json", "Date": "Mon, 29 Aug 2022 08:25:45 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -173,7 +173,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -204,7 +204,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -235,7 +235,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -266,7 +266,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -297,7 +297,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -328,7 +328,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -447,7 +447,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql?api-version=2022-11-15", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -471,12 +471,12 @@ }, "StatusCode": 202, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Cache-Control": "no-store, no-cache", "Content-Length": "21", "Content-Type": "application/json", "Date": "Mon, 29 Aug 2022 08:27:49 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -492,7 +492,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -523,7 +523,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -554,7 +554,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -598,7 +598,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -643,7 +643,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -692,7 +692,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/throughputSettings/default?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/throughputSettings/default?api-version=2022-11-15", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -713,12 +713,12 @@ }, "StatusCode": 202, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Cache-Control": "no-store, no-cache", "Content-Length": "21", "Content-Type": "application/json", "Date": "Mon, 29 Aug 2022 08:28:23 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/throughputSettings/default/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/throughputSettings/default/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -734,7 +734,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -765,7 +765,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -796,7 +796,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/throughputSettings/default?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/throughputSettings/default?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -835,7 +835,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/throughputSettings/default?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/throughputSettings/default?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -875,7 +875,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/throughputSettings/default/migrateToAutoscale?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/throughputSettings/default/migrateToAutoscale?api-version=2022-11-15", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -887,12 +887,12 @@ "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Cache-Control": "no-store, no-cache", "Content-Length": "21", "Content-Type": "application/json", "Date": "Mon, 29 Aug 2022 08:28:57 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/throughputSettings/default/migrateToAutoscale/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/throughputSettings/default/migrateToAutoscale/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -908,7 +908,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -939,7 +939,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -970,7 +970,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/throughputSettings/default/migrateToAutoscale/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/throughputSettings/default/migrateToAutoscale/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1012,7 +1012,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/throughputSettings/default/migrateToManualThroughput?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/throughputSettings/default/migrateToManualThroughput?api-version=2022-11-15", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -1024,12 +1024,12 @@ "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Cache-Control": "no-store, no-cache", "Content-Length": "21", "Content-Type": "application/json", "Date": "Mon, 29 Aug 2022 08:29:31 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/throughputSettings/default/migrateToManualThroughput/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/throughputSettings/default/migrateToManualThroughput/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -1045,7 +1045,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1076,7 +1076,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1107,7 +1107,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/throughputSettings/default/migrateToManualThroughput/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/throughputSettings/default/migrateToManualThroughput/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1146,7 +1146,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer?api-version=2022-11-15", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -1211,12 +1211,12 @@ }, "StatusCode": 202, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Cache-Control": "no-store, no-cache", "Content-Length": "21", "Content-Type": "application/json", "Date": "Mon, 29 Aug 2022 08:30:03 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -1232,7 +1232,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1263,7 +1263,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1294,7 +1294,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1387,7 +1387,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -1481,7 +1481,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -1570,7 +1570,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/throughputSettings/default?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/throughputSettings/default?api-version=2022-11-15", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -1591,12 +1591,12 @@ }, "StatusCode": 202, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Cache-Control": "no-store, no-cache", "Content-Length": "21", "Content-Type": "application/json", "Date": "Mon, 29 Aug 2022 08:30:39 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/throughputSettings/default/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/throughputSettings/default/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -1612,7 +1612,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1643,7 +1643,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1674,7 +1674,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/throughputSettings/default?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/throughputSettings/default?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1713,7 +1713,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/throughputSettings/default?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/throughputSettings/default?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -1753,7 +1753,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/throughputSettings/default/migrateToAutoscale?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/throughputSettings/default/migrateToAutoscale?api-version=2022-11-15", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -1765,12 +1765,12 @@ "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Cache-Control": "no-store, no-cache", "Content-Length": "21", "Content-Type": "application/json", "Date": "Mon, 29 Aug 2022 08:31:14 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/throughputSettings/default/migrateToAutoscale/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/throughputSettings/default/migrateToAutoscale/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -1786,7 +1786,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1817,7 +1817,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1848,7 +1848,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/throughputSettings/default/migrateToAutoscale/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/throughputSettings/default/migrateToAutoscale/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1890,7 +1890,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/throughputSettings/default/migrateToManualThroughput?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/throughputSettings/default/migrateToManualThroughput?api-version=2022-11-15", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -1902,12 +1902,12 @@ "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Cache-Control": "no-store, no-cache", "Content-Length": "21", "Content-Type": "application/json", "Date": "Mon, 29 Aug 2022 08:31:46 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/throughputSettings/default/migrateToManualThroughput/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/throughputSettings/default/migrateToManualThroughput/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -1923,7 +1923,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1954,7 +1954,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1985,7 +1985,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/throughputSettings/default/migrateToManualThroughput/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/throughputSettings/default/migrateToManualThroughput/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -2024,7 +2024,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/storedProcedures/storedProcedureName?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/storedProcedures/storedProcedureName?api-version=2022-11-15", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -2045,12 +2045,12 @@ }, "StatusCode": 202, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Cache-Control": "no-store, no-cache", "Content-Length": "21", "Content-Type": "application/json", "Date": "Mon, 29 Aug 2022 08:32:19 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/storedProcedures/storedProcedureName/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/storedProcedures/storedProcedureName/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -2066,7 +2066,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -2097,7 +2097,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -2128,7 +2128,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/storedProcedures/storedProcedureName?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/storedProcedures/storedProcedureName?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -2171,7 +2171,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/storedProcedures/storedProcedureName?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/storedProcedures/storedProcedureName?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -2215,7 +2215,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/storedProcedures?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/storedProcedures?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -2263,7 +2263,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/storedProcedures/storedProcedureName?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/storedProcedures/storedProcedureName?api-version=2022-11-15", "RequestMethod": "DELETE", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -2273,12 +2273,12 @@ "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Cache-Control": "no-store, no-cache", "Content-Length": "21", "Content-Type": "application/json", "Date": "Mon, 29 Aug 2022 08:32:52 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/storedProcedures/storedProcedureName/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/storedProcedures/storedProcedureName/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -2294,7 +2294,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -2325,7 +2325,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -2356,7 +2356,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/userDefinedFunctions/userDefinedFunctionName?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/userDefinedFunctions/userDefinedFunctionName?api-version=2022-11-15", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -2377,12 +2377,12 @@ }, "StatusCode": 202, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Cache-Control": "no-store, no-cache", "Content-Length": "21", "Content-Type": "application/json", "Date": "Mon, 29 Aug 2022 08:33:25 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/userDefinedFunctions/userDefinedFunctionName/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/userDefinedFunctions/userDefinedFunctionName/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -2398,7 +2398,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -2429,7 +2429,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -2460,7 +2460,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/userDefinedFunctions/userDefinedFunctionName?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/userDefinedFunctions/userDefinedFunctionName?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -2503,7 +2503,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/userDefinedFunctions/userDefinedFunctionName?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/userDefinedFunctions/userDefinedFunctionName?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -2547,7 +2547,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/userDefinedFunctions?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/userDefinedFunctions?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -2595,7 +2595,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/userDefinedFunctions/userDefinedFunctionName?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/userDefinedFunctions/userDefinedFunctionName?api-version=2022-11-15", "RequestMethod": "DELETE", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -2605,12 +2605,12 @@ "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Cache-Control": "no-store, no-cache", "Content-Length": "21", "Content-Type": "application/json", "Date": "Mon, 29 Aug 2022 08:33:59 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/userDefinedFunctions/userDefinedFunctionName/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/userDefinedFunctions/userDefinedFunctionName/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -2626,7 +2626,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -2657,7 +2657,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -2688,7 +2688,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/triggers/triggerName?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/triggers/triggerName?api-version=2022-11-15", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -2711,12 +2711,12 @@ }, "StatusCode": 202, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Cache-Control": "no-store, no-cache", "Content-Length": "21", "Content-Type": "application/json", "Date": "Mon, 29 Aug 2022 08:34:30 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/triggers/triggerName/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/triggers/triggerName/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -2732,7 +2732,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -2763,7 +2763,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -2794,7 +2794,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/triggers/triggerName?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/triggers/triggerName?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -2839,7 +2839,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/triggers/triggerName?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/triggers/triggerName?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -2885,7 +2885,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/triggers?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/triggers?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -2935,7 +2935,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/triggers/triggerName?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/triggers/triggerName?api-version=2022-11-15", "RequestMethod": "DELETE", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -2945,12 +2945,12 @@ "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Cache-Control": "no-store, no-cache", "Content-Length": "21", "Content-Type": "application/json", "Date": "Mon, 29 Aug 2022 08:35:03 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/triggers/triggerName/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/triggers/triggerName/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -2966,7 +2966,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -2997,7 +2997,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -3028,7 +3028,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer?api-version=2022-11-15", "RequestMethod": "DELETE", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -3038,12 +3038,12 @@ "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Cache-Control": "no-store, no-cache", "Content-Length": "21", "Content-Type": "application/json", "Date": "Mon, 29 Aug 2022 08:35:36 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -3059,7 +3059,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -3090,7 +3090,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -3121,7 +3121,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql?api-version=2022-11-15", "RequestMethod": "DELETE", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -3131,12 +3131,12 @@ "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Cache-Control": "no-store, no-cache", "Content-Length": "21", "Content-Type": "application/json", "Date": "Mon, 29 Aug 2022 08:36:07 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -3152,7 +3152,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -3183,7 +3183,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", diff --git a/sdk/resourcemanager/cosmos/armcosmos/testdata/recordings/TestTableresourcesTestSuite.json b/sdk/resourcemanager/cosmos/armcosmos/testdata/recordings/TestTableresourcesTestSuite.json index ca29a5a74582..d24b3a8eb2e1 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/testdata/recordings/TestTableresourcesTestSuite.json +++ b/sdk/resourcemanager/cosmos/armcosmos/testdata/recordings/TestTableresourcesTestSuite.json @@ -40,7 +40,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccounttable?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccounttable?api-version=2022-11-15", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -72,12 +72,12 @@ }, "StatusCode": 200, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Cache-Control": "no-store, no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json", "Date": "Mon, 29 Aug 2022 07:58:08 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccounttable/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccounttable/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -183,7 +183,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -214,7 +214,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -245,7 +245,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -276,7 +276,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -307,7 +307,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -338,7 +338,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -369,7 +369,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -400,7 +400,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -431,7 +431,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccounttable?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccounttable?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -555,7 +555,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccounttable/tables/cosmos_table?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccounttable/tables/cosmos_table?api-version=2022-11-15", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -577,12 +577,12 @@ }, "StatusCode": 202, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Cache-Control": "no-store, no-cache", "Content-Length": "21", "Content-Type": "application/json", "Date": "Mon, 29 Aug 2022 08:01:43 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccounttable/tables/cosmos_table/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccounttable/tables/cosmos_table/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -598,7 +598,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -629,7 +629,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -660,7 +660,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccounttable/tables/cosmos_table?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccounttable/tables/cosmos_table?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -701,7 +701,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccounttable/tables/cosmos_table?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccounttable/tables/cosmos_table?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -743,7 +743,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccounttable/tables?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccounttable/tables?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -789,7 +789,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccounttable/tables/cosmos_table/throughputSettings/default?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccounttable/tables/cosmos_table/throughputSettings/default?api-version=2022-11-15", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -810,12 +810,12 @@ }, "StatusCode": 202, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Cache-Control": "no-store, no-cache", "Content-Length": "21", "Content-Type": "application/json", "Date": "Mon, 29 Aug 2022 08:02:16 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccounttable/tables/cosmos_table/throughputSettings/default/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccounttable/tables/cosmos_table/throughputSettings/default/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -831,7 +831,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -862,7 +862,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -893,7 +893,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccounttable/tables/cosmos_table/throughputSettings/default?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccounttable/tables/cosmos_table/throughputSettings/default?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -932,7 +932,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccounttable/tables/cosmos_table/throughputSettings/default?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccounttable/tables/cosmos_table/throughputSettings/default?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept": "application/json", @@ -972,7 +972,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccounttable/tables/cosmos_table/throughputSettings/default/migrateToAutoscale?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccounttable/tables/cosmos_table/throughputSettings/default/migrateToAutoscale?api-version=2022-11-15", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -984,12 +984,12 @@ "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Cache-Control": "no-store, no-cache", "Content-Length": "21", "Content-Type": "application/json", "Date": "Mon, 29 Aug 2022 08:02:51 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccounttable/tables/cosmos_table/throughputSettings/default/migrateToAutoscale/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccounttable/tables/cosmos_table/throughputSettings/default/migrateToAutoscale/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -1005,7 +1005,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1036,7 +1036,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1067,7 +1067,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccounttable/tables/cosmos_table/throughputSettings/default/migrateToAutoscale/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccounttable/tables/cosmos_table/throughputSettings/default/migrateToAutoscale/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1109,7 +1109,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccounttable/tables/cosmos_table/throughputSettings/default/migrateToManualThroughput?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccounttable/tables/cosmos_table/throughputSettings/default/migrateToManualThroughput?api-version=2022-11-15", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -1121,12 +1121,12 @@ "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Cache-Control": "no-store, no-cache", "Content-Length": "21", "Content-Type": "application/json", "Date": "Mon, 29 Aug 2022 08:03:22 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccounttable/tables/cosmos_table/throughputSettings/default/migrateToManualThroughput/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccounttable/tables/cosmos_table/throughputSettings/default/migrateToManualThroughput/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -1142,7 +1142,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1173,7 +1173,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1204,7 +1204,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccounttable/tables/cosmos_table/throughputSettings/default/migrateToManualThroughput/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccounttable/tables/cosmos_table/throughputSettings/default/migrateToManualThroughput/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1243,7 +1243,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccounttable/tables/cosmos_table?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccounttable/tables/cosmos_table?api-version=2022-11-15", "RequestMethod": "DELETE", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1253,12 +1253,12 @@ "RequestBody": null, "StatusCode": 202, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Cache-Control": "no-store, no-cache", "Content-Length": "21", "Content-Type": "application/json", "Date": "Mon, 29 Aug 2022 08:03:54 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccounttable/tables/cosmos_table/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccounttable/tables/cosmos_table/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "Pragma": "no-cache", "Server": "Microsoft-HTTPAPI/2.0", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", @@ -1274,7 +1274,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", @@ -1305,7 +1305,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-08-15-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", "RequestMethod": "GET", "RequestHeaders": { "Accept-Encoding": "gzip", diff --git a/sdk/resourcemanager/cosmos/armcosmos/time_rfc3339.go b/sdk/resourcemanager/cosmos/armcosmos/time_rfc3339.go index e7663a3ae0cc..8aba08e64030 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/time_rfc3339.go +++ b/sdk/resourcemanager/cosmos/armcosmos/time_rfc3339.go @@ -62,7 +62,7 @@ func (t *timeRFC3339) Parse(layout, value string) error { return err } -func populateTimeRFC3339(m map[string]interface{}, k string, t *time.Time) { +func populateTimeRFC3339(m map[string]any, k string, t *time.Time) { if t == nil { return } else if azcore.IsNullValue(t) { From 15aa35de7c8d4fa8d272eb9ac4e91c7db8fd60ba Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Fri, 24 Feb 2023 16:36:41 -0500 Subject: [PATCH 057/107] Sync eng/common directory with azure-sdk-tools for PR 5568 (#20290) * we encourage folks to place their assets.jsons at the package level * update generate-assets-json.ps1 to only include src/**/session-records so as to avoid picking up the duplicated 'target' sessionrecords --------- Co-authored-by: scbedd <45376673+scbedd@users.noreply.github.com> --- eng/common/testproxy/transition-scripts/README.md | 8 ++++---- .../testproxy/transition-scripts/generate-assets-json.ps1 | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/eng/common/testproxy/transition-scripts/README.md b/eng/common/testproxy/transition-scripts/README.md index 862d22ed6de8..06290bd0c784 100644 --- a/eng/common/testproxy/transition-scripts/README.md +++ b/eng/common/testproxy/transition-scripts/README.md @@ -60,12 +60,12 @@ You will not be able to clean them up however. There exists [planned work](https - `language` repo - An individual language repository eg. azure-sdk-for-python or azure-sdk-for-net etc. - `assets` repo - The repository where assets are being moved to. -The `test-proxy` tool is integrated with the ability to automatically restore these assets. This process is kick-started by the presence of an `assets.json` alongside a dev's actual code. This means that while assets will be cloned down externally, the _map_ to those assets will be stored alongside the tests. Normally, it is recommended to create an `assets.json` under the path `sdk/`. However, more granular storage is also possible. +The `test-proxy` tool is integrated with the ability to automatically restore these assets. This process is kick-started by the presence of an `assets.json` alongside a dev's actual code. This means that while assets will be cloned down externally, the _map_ to those assets will be stored alongside the tests. Normally, it is recommended to create an `assets.json` under the path `sdk//`. More granular storage than on an individual package level is possible, but each language's test framework would need to support that on a case-by-case basis. -Service/Package-Level examples: +Examples of current assets.json locations: -- `sdk/storage/assets.json` -- `sdk/storage/azure-storage-file-datalake/assets.json` +- [`sdk/data/aztables/assets.json`](https://github.com/Azure/azure-sdk-for-go/blob/main/sdk/data/aztables/assets.json) +- [`sdk/keyvault/azure-keyvault-keys/assets.json`](https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/keyvault/azure-keyvault-keys/assets.json) The location of the actual test code is referred to as the `language repo`. diff --git a/eng/common/testproxy/transition-scripts/generate-assets-json.ps1 b/eng/common/testproxy/transition-scripts/generate-assets-json.ps1 index 2b24bdcb1ab8..3f43c7d3adff 100644 --- a/eng/common/testproxy/transition-scripts/generate-assets-json.ps1 +++ b/eng/common/testproxy/transition-scripts/generate-assets-json.ps1 @@ -72,7 +72,7 @@ if ($UseTestRepo) { # 3. ios $LangRecordingDirs = @{"cpp" = "recordings"; "go" = "recordings"; - "java" = "session-records"; + "java" = "src.*?session-records"; "js" = "recordings"; "net" = "SessionRecords"; "python" = "recordings"; @@ -321,8 +321,8 @@ Function Move-AssetsFromLangRepo { ) $filter = $LangRecordingDirs[$language] Write-Host "Language recording directory name=$filter" - Write-Host "Get-ChildItem -Recurse -Filter ""*.json"" | Where-Object { `$_.DirectoryName.Split([IO.Path]::DirectorySeparatorChar) -contains ""$filter"" }" - $filesToMove = Get-ChildItem -Recurse -Filter "*.json" | Where-Object { $_.DirectoryName.Split([IO.Path]::DirectorySeparatorChar) -contains "$filter" } + Write-Host "Get-ChildItem -Recurse -Filter ""*.json"" | Where-Object { if ($filter.Contains(""*"")) { $_.DirectoryName -match $filter } else { $_.DirectoryName.Split([IO.Path]::DirectorySeparatorChar) -contains ""$filter"" }" + $filesToMove = Get-ChildItem -Recurse -Filter "*.json" | Where-Object { if ($filter.Contains("*")) { $_.DirectoryName -match $filter } else { $_.DirectoryName.Split([IO.Path]::DirectorySeparatorChar) -contains "$filter" } } [string] $currentDir = Get-Location foreach ($fromFile in $filesToMove) { From 29ba2147d093a47b1e0f50d4675c3494f013d3e4 Mon Sep 17 00:00:00 2001 From: Chenjie Shi Date: Mon, 27 Feb 2023 10:56:39 +0800 Subject: [PATCH 058/107] Add `Clone()` method for `arm/policy.ClientOptions` (#20288) * fix empty policy copy problem for arm/runtime.NewPipeline * add Copy() method for arm/policy.ClientOptions * rename Copy() to Clone() and fix ci failure --- sdk/azcore/CHANGELOG.md | 2 ++ sdk/azcore/arm/policy/policy.go | 37 ++++++++++++++++++++++ sdk/azcore/arm/policy/policy_test.go | 47 ++++++++++++++++++++++++++++ sdk/azcore/arm/runtime/pipeline.go | 4 +-- 4 files changed, 88 insertions(+), 2 deletions(-) create mode 100644 sdk/azcore/arm/policy/policy_test.go diff --git a/sdk/azcore/CHANGELOG.md b/sdk/azcore/CHANGELOG.md index 999b2cdda712..df3c7b9338d8 100644 --- a/sdk/azcore/CHANGELOG.md +++ b/sdk/azcore/CHANGELOG.md @@ -3,12 +3,14 @@ ## 1.3.2 (Unreleased) ### Features Added +* Add `Clone()` method for `arm/policy.ClientOptions`. ### Breaking Changes ### Bugs Fixed * ARM's RP registration policy will no longer swallow unrecognized errors. * Fixed an issue in `runtime.NewPollerFromResumeToken()` when resuming a `Poller` with a custom `PollingHandler`. +* Fixed wrong policy copy in `arm/runtime.NewPipeline()`. ### Other Changes diff --git a/sdk/azcore/arm/policy/policy.go b/sdk/azcore/arm/policy/policy.go index 098aa6993467..7a700d661e9e 100644 --- a/sdk/azcore/arm/policy/policy.go +++ b/sdk/azcore/arm/policy/policy.go @@ -47,3 +47,40 @@ type ClientOptions struct { // DisableRPRegistration disables the auto-RP registration policy. Defaults to false. DisableRPRegistration bool } + +// Clone return a deep copy of the current options. +func (o *ClientOptions) Clone() *ClientOptions { + if o == nil { + return nil + } + copiedOptions := *o + copiedOptions.Cloud.Services = copyMap(copiedOptions.Cloud.Services) + copiedOptions.Logging.AllowedHeaders = copyArray(copiedOptions.Logging.AllowedHeaders) + copiedOptions.Logging.AllowedQueryParams = copyArray(copiedOptions.Logging.AllowedQueryParams) + copiedOptions.Retry.StatusCodes = copyArray(copiedOptions.Retry.StatusCodes) + copiedOptions.PerRetryPolicies = copyArray(copiedOptions.PerRetryPolicies) + copiedOptions.PerCallPolicies = copyArray(copiedOptions.PerCallPolicies) + return &copiedOptions +} + +// copyMap return a new map with all the key value pair in the src map +func copyMap[K comparable, V any](src map[K]V) map[K]V { + if src == nil { + return nil + } + copiedMap := make(map[K]V) + for k, v := range src { + copiedMap[k] = v + } + return copiedMap +} + +// copyMap return a new array with all the elements in the src array +func copyArray[T any](src []T) []T { + if src == nil { + return nil + } + copiedArray := make([]T, len(src)) + copy(copiedArray, src) + return copiedArray +} diff --git a/sdk/azcore/arm/policy/policy_test.go b/sdk/azcore/arm/policy/policy_test.go new file mode 100644 index 000000000000..7c171daeb7d4 --- /dev/null +++ b/sdk/azcore/arm/policy/policy_test.go @@ -0,0 +1,47 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package policy + +import ( + "fmt" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "github.com/stretchr/testify/require" + "testing" +) + +func TestClientOptions_Copy(t *testing.T) { + var option *ClientOptions + require.Nil(t, option.Clone()) + + option = &ClientOptions{ClientOptions: policy.ClientOptions{ + Cloud: cloud.AzurePublic, + Logging: policy.LogOptions{ + AllowedHeaders: []string{"test1", "test2"}, + AllowedQueryParams: []string{"test1", "test2"}, + }, + Retry: policy.RetryOptions{StatusCodes: []int{1, 2}}, + PerRetryPolicies: []policy.Policy{runtime.NewLogPolicy(nil)}, + PerCallPolicies: []policy.Policy{runtime.NewLogPolicy(nil)}, + }} + copiedOption := option.Clone() + require.Equal(t, option.APIVersion, copiedOption.APIVersion) + require.NotEqual(t, fmt.Sprintf("%p", &option.APIVersion), fmt.Sprintf("%p", &copiedOption.APIVersion)) + require.Equal(t, option.Cloud.Services, copiedOption.Cloud.Services) + require.NotEqual(t, fmt.Sprintf("%p", option.Cloud.Services), fmt.Sprintf("%p", copiedOption.Cloud.Services)) + require.Equal(t, option.Logging.AllowedHeaders, copiedOption.Logging.AllowedHeaders) + require.NotEqual(t, fmt.Sprintf("%p", option.Logging.AllowedHeaders), fmt.Sprintf("%p", copiedOption.Logging.AllowedHeaders)) + require.Equal(t, option.Logging.AllowedQueryParams, copiedOption.Logging.AllowedQueryParams) + require.NotEqual(t, fmt.Sprintf("%p", option.Logging.AllowedQueryParams), fmt.Sprintf("%p", copiedOption.Logging.AllowedQueryParams)) + require.Equal(t, option.Retry.StatusCodes, copiedOption.Retry.StatusCodes) + require.NotEqual(t, fmt.Sprintf("%p", option.Retry.StatusCodes), fmt.Sprintf("%p", copiedOption.Retry.StatusCodes)) + require.Equal(t, option.PerRetryPolicies, copiedOption.PerRetryPolicies) + require.NotEqual(t, fmt.Sprintf("%p", option.PerRetryPolicies), fmt.Sprintf("%p", copiedOption.PerRetryPolicies)) + require.Equal(t, option.PerCallPolicies, copiedOption.PerCallPolicies) + require.NotEqual(t, fmt.Sprintf("%p", option.PerCallPolicies), fmt.Sprintf("%p", copiedOption.PerCallPolicies)) +} diff --git a/sdk/azcore/arm/runtime/pipeline.go b/sdk/azcore/arm/runtime/pipeline.go index a2e897765d98..8da2153307b2 100644 --- a/sdk/azcore/arm/runtime/pipeline.go +++ b/sdk/azcore/arm/runtime/pipeline.go @@ -29,7 +29,7 @@ func NewPipeline(module, version string, cred azcore.TokenCredential, plOpts azr return azruntime.Pipeline{}, err } authPolicy := NewBearerTokenPolicy(cred, &armpolicy.BearerTokenOptions{Scopes: []string{conf.Audience + "/.default"}}) - perRetry := make([]azpolicy.Policy, 0, len(plOpts.PerRetry)+1) + perRetry := make([]azpolicy.Policy, len(plOpts.PerRetry), len(plOpts.PerRetry)+1) copy(perRetry, plOpts.PerRetry) plOpts.PerRetry = append(perRetry, authPolicy) if !options.DisableRPRegistration { @@ -38,7 +38,7 @@ func NewPipeline(module, version string, cred azcore.TokenCredential, plOpts azr if err != nil { return azruntime.Pipeline{}, err } - perCall := make([]azpolicy.Policy, 0, len(plOpts.PerCall)+1) + perCall := make([]azpolicy.Policy, len(plOpts.PerCall), len(plOpts.PerCall)+1) copy(perCall, plOpts.PerCall) plOpts.PerCall = append(perCall, regPolicy) } From dae8ab43ac9042ab4297455dc0a3f1e8f38b4144 Mon Sep 17 00:00:00 2001 From: Chenjie Shi Date: Mon, 27 Feb 2023 22:58:48 +0800 Subject: [PATCH 059/107] add changelog for https://github.com/Azure/azure-sdk-for-go/pull/20009 (#20049) --- sdk/internal/CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sdk/internal/CHANGELOG.md b/sdk/internal/CHANGELOG.md index 9cb6854f7d13..d813248afc40 100644 --- a/sdk/internal/CHANGELOG.md +++ b/sdk/internal/CHANGELOG.md @@ -4,6 +4,8 @@ ### Features Added +- Add random alphanumeric string generation support for test-proxy recording framework. + ### Breaking Changes ### Bugs Fixed From 28771743d1a87b2362aadce96177fce406b502fd Mon Sep 17 00:00:00 2001 From: Joel Hendrix Date: Mon, 27 Feb 2023 09:50:36 -0800 Subject: [PATCH 060/107] Some minor refactoring of azcore (#20291) Moved ARM resource ID types and helpers to an internal package so they can be leveraged elsewhere. The public versions are type-aliased to the matching internal implementations. policyFunc has moved to the shared package so it can be used elsewhere. Sanitizing of URLs has been split into its own function. Moved a func-local constant to the shared package. --- .../internal/resource/resource_identifier.go | 224 ++++++++++++++++++ .../resource}/resource_identifier_test.go | 2 +- .../arm/internal/resource/resource_type.go | 114 +++++++++ .../resource}/resource_type_test.go | 2 +- sdk/azcore/arm/resource_identifier.go | 209 +--------------- sdk/azcore/arm/resource_type.go | 90 +------ sdk/azcore/internal/exported/request.go | 11 + sdk/azcore/internal/shared/constants.go | 1 + sdk/azcore/runtime/pipeline.go | 15 +- sdk/azcore/runtime/policy_logging.go | 40 ++-- sdk/azcore/runtime/policy_request_id.go | 6 +- sdk/azcore/runtime/policy_retry_test.go | 6 +- 12 files changed, 398 insertions(+), 322 deletions(-) create mode 100644 sdk/azcore/arm/internal/resource/resource_identifier.go rename sdk/azcore/arm/{ => internal/resource}/resource_identifier_test.go (99%) create mode 100644 sdk/azcore/arm/internal/resource/resource_type.go rename sdk/azcore/arm/{ => internal/resource}/resource_type_test.go (99%) diff --git a/sdk/azcore/arm/internal/resource/resource_identifier.go b/sdk/azcore/arm/internal/resource/resource_identifier.go new file mode 100644 index 000000000000..187fe82b97c4 --- /dev/null +++ b/sdk/azcore/arm/internal/resource/resource_identifier.go @@ -0,0 +1,224 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package resource + +import ( + "fmt" + "strings" +) + +const ( + providersKey = "providers" + subscriptionsKey = "subscriptions" + resourceGroupsLowerKey = "resourcegroups" + locationsKey = "locations" + builtInResourceNamespace = "Microsoft.Resources" +) + +// RootResourceID defines the tenant as the root parent of all other ResourceID. +var RootResourceID = &ResourceID{ + Parent: nil, + ResourceType: TenantResourceType, + Name: "", +} + +// ResourceID represents a resource ID such as `/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRg`. +// Don't create this type directly, use ParseResourceID instead. +type ResourceID struct { + // Parent is the parent ResourceID of this instance. + // Can be nil if there is no parent. + Parent *ResourceID + + // SubscriptionID is the subscription ID in this resource ID. + // The value can be empty if the resource ID does not contain a subscription ID. + SubscriptionID string + + // ResourceGroupName is the resource group name in this resource ID. + // The value can be empty if the resource ID does not contain a resource group name. + ResourceGroupName string + + // Provider represents the provider name in this resource ID. + // This is only valid when the resource ID represents a resource provider. + // Example: `/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Insights` + Provider string + + // Location is the location in this resource ID. + // The value can be empty if the resource ID does not contain a location name. + Location string + + // ResourceType represents the type of this resource ID. + ResourceType ResourceType + + // Name is the resource name of this resource ID. + Name string + + isChild bool + stringValue string +} + +// ParseResourceID parses a string to an instance of ResourceID +func ParseResourceID(id string) (*ResourceID, error) { + if len(id) == 0 { + return nil, fmt.Errorf("invalid resource ID: id cannot be empty") + } + + if !strings.HasPrefix(id, "/") { + return nil, fmt.Errorf("invalid resource ID: resource id '%s' must start with '/'", id) + } + + parts := splitStringAndOmitEmpty(id, "/") + + if len(parts) < 2 { + return nil, fmt.Errorf("invalid resource ID: %s", id) + } + + if !strings.EqualFold(parts[0], subscriptionsKey) && !strings.EqualFold(parts[0], providersKey) { + return nil, fmt.Errorf("invalid resource ID: %s", id) + } + + return appendNext(RootResourceID, parts, id) +} + +// String returns the string of the ResourceID +func (id *ResourceID) String() string { + if len(id.stringValue) > 0 { + return id.stringValue + } + + if id.Parent == nil { + return "" + } + + builder := strings.Builder{} + builder.WriteString(id.Parent.String()) + + if id.isChild { + builder.WriteString(fmt.Sprintf("/%s", id.ResourceType.lastType())) + if len(id.Name) > 0 { + builder.WriteString(fmt.Sprintf("/%s", id.Name)) + } + } else { + builder.WriteString(fmt.Sprintf("/providers/%s/%s/%s", id.ResourceType.Namespace, id.ResourceType.Type, id.Name)) + } + + id.stringValue = builder.String() + + return id.stringValue +} + +func newResourceID(parent *ResourceID, resourceTypeName string, resourceName string) *ResourceID { + id := &ResourceID{} + id.init(parent, chooseResourceType(resourceTypeName, parent), resourceName, true) + return id +} + +func newResourceIDWithResourceType(parent *ResourceID, resourceType ResourceType, resourceName string) *ResourceID { + id := &ResourceID{} + id.init(parent, resourceType, resourceName, true) + return id +} + +func newResourceIDWithProvider(parent *ResourceID, providerNamespace, resourceTypeName, resourceName string) *ResourceID { + id := &ResourceID{} + id.init(parent, NewResourceType(providerNamespace, resourceTypeName), resourceName, false) + return id +} + +func chooseResourceType(resourceTypeName string, parent *ResourceID) ResourceType { + if strings.EqualFold(resourceTypeName, resourceGroupsLowerKey) { + return ResourceGroupResourceType + } else if strings.EqualFold(resourceTypeName, subscriptionsKey) && parent != nil && parent.ResourceType.String() == TenantResourceType.String() { + return SubscriptionResourceType + } + + return parent.ResourceType.AppendChild(resourceTypeName) +} + +func (id *ResourceID) init(parent *ResourceID, resourceType ResourceType, name string, isChild bool) { + if parent != nil { + id.Provider = parent.Provider + id.SubscriptionID = parent.SubscriptionID + id.ResourceGroupName = parent.ResourceGroupName + id.Location = parent.Location + } + + if resourceType.String() == SubscriptionResourceType.String() { + id.SubscriptionID = name + } + + if resourceType.lastType() == locationsKey { + id.Location = name + } + + if resourceType.String() == ResourceGroupResourceType.String() { + id.ResourceGroupName = name + } + + if resourceType.String() == ProviderResourceType.String() { + id.Provider = name + } + + if parent == nil { + id.Parent = RootResourceID + } else { + id.Parent = parent + } + id.isChild = isChild + id.ResourceType = resourceType + id.Name = name +} + +func appendNext(parent *ResourceID, parts []string, id string) (*ResourceID, error) { + if len(parts) == 0 { + return parent, nil + } + + if len(parts) == 1 { + // subscriptions and resourceGroups are not valid ids without their names + if strings.EqualFold(parts[0], subscriptionsKey) || strings.EqualFold(parts[0], resourceGroupsLowerKey) { + return nil, fmt.Errorf("invalid resource ID: %s", id) + } + + // resourceGroup must contain either child or provider resource type + if parent.ResourceType.String() == ResourceGroupResourceType.String() { + return nil, fmt.Errorf("invalid resource ID: %s", id) + } + + return newResourceID(parent, parts[0], ""), nil + } + + if strings.EqualFold(parts[0], providersKey) && (len(parts) == 2 || strings.EqualFold(parts[2], providersKey)) { + //provider resource can only be on a tenant or a subscription parent + if parent.ResourceType.String() != SubscriptionResourceType.String() && parent.ResourceType.String() != TenantResourceType.String() { + return nil, fmt.Errorf("invalid resource ID: %s", id) + } + + return appendNext(newResourceIDWithResourceType(parent, ProviderResourceType, parts[1]), parts[2:], id) + } + + if len(parts) > 3 && strings.EqualFold(parts[0], providersKey) { + return appendNext(newResourceIDWithProvider(parent, parts[1], parts[2], parts[3]), parts[4:], id) + } + + if len(parts) > 1 && !strings.EqualFold(parts[0], providersKey) { + return appendNext(newResourceID(parent, parts[0], parts[1]), parts[2:], id) + } + + return nil, fmt.Errorf("invalid resource ID: %s", id) +} + +func splitStringAndOmitEmpty(v, sep string) []string { + r := make([]string, 0) + for _, s := range strings.Split(v, sep) { + if len(s) == 0 { + continue + } + r = append(r, s) + } + + return r +} diff --git a/sdk/azcore/arm/resource_identifier_test.go b/sdk/azcore/arm/internal/resource/resource_identifier_test.go similarity index 99% rename from sdk/azcore/arm/resource_identifier_test.go rename to sdk/azcore/arm/internal/resource/resource_identifier_test.go index 0cca039b1501..aab7c66f3a78 100644 --- a/sdk/azcore/arm/resource_identifier_test.go +++ b/sdk/azcore/arm/internal/resource/resource_identifier_test.go @@ -4,7 +4,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -package arm +package resource import "testing" diff --git a/sdk/azcore/arm/internal/resource/resource_type.go b/sdk/azcore/arm/internal/resource/resource_type.go new file mode 100644 index 000000000000..ca03ac9713d5 --- /dev/null +++ b/sdk/azcore/arm/internal/resource/resource_type.go @@ -0,0 +1,114 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package resource + +import ( + "fmt" + "strings" +) + +// SubscriptionResourceType is the ResourceType of a subscription +var SubscriptionResourceType = NewResourceType(builtInResourceNamespace, "subscriptions") + +// ResourceGroupResourceType is the ResourceType of a resource group +var ResourceGroupResourceType = NewResourceType(builtInResourceNamespace, "resourceGroups") + +// TenantResourceType is the ResourceType of a tenant +var TenantResourceType = NewResourceType(builtInResourceNamespace, "tenants") + +// ProviderResourceType is the ResourceType of a provider +var ProviderResourceType = NewResourceType(builtInResourceNamespace, "providers") + +// ResourceType represents an Azure resource type, e.g. "Microsoft.Network/virtualNetworks/subnets". +// Don't create this type directly, use ParseResourceType or NewResourceType instead. +type ResourceType struct { + // Namespace is the namespace of the resource type. + // e.g. "Microsoft.Network" in resource type "Microsoft.Network/virtualNetworks/subnets" + Namespace string + + // Type is the full type name of the resource type. + // e.g. "virtualNetworks/subnets" in resource type "Microsoft.Network/virtualNetworks/subnets" + Type string + + // Types is the slice of all the sub-types of this resource type. + // e.g. ["virtualNetworks", "subnets"] in resource type "Microsoft.Network/virtualNetworks/subnets" + Types []string + + stringValue string +} + +// String returns the string of the ResourceType +func (t ResourceType) String() string { + return t.stringValue +} + +// IsParentOf returns true when the receiver is the parent resource type of the child. +func (t ResourceType) IsParentOf(child ResourceType) bool { + if !strings.EqualFold(t.Namespace, child.Namespace) { + return false + } + if len(t.Types) >= len(child.Types) { + return false + } + for i := range t.Types { + if !strings.EqualFold(t.Types[i], child.Types[i]) { + return false + } + } + + return true +} + +// AppendChild creates an instance of ResourceType using the receiver as the parent with childType appended to it. +func (t ResourceType) AppendChild(childType string) ResourceType { + return NewResourceType(t.Namespace, fmt.Sprintf("%s/%s", t.Type, childType)) +} + +// NewResourceType creates an instance of ResourceType using a provider namespace +// such as "Microsoft.Network" and type such as "virtualNetworks/subnets". +func NewResourceType(providerNamespace, typeName string) ResourceType { + return ResourceType{ + Namespace: providerNamespace, + Type: typeName, + Types: splitStringAndOmitEmpty(typeName, "/"), + stringValue: fmt.Sprintf("%s/%s", providerNamespace, typeName), + } +} + +// ParseResourceType parses the ResourceType from a resource type string (e.g. Microsoft.Network/virtualNetworks/subsets) +// or a resource identifier string. +// e.g. /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRg/providers/Microsoft.Network/virtualNetworks/vnet/subnets/mySubnet) +func ParseResourceType(resourceIDOrType string) (ResourceType, error) { + // split the path into segments + parts := splitStringAndOmitEmpty(resourceIDOrType, "/") + + // There must be at least a namespace and type name + if len(parts) < 1 { + return ResourceType{}, fmt.Errorf("invalid resource ID or type: %s", resourceIDOrType) + } + + // if the type is just subscriptions, it is a built-in type in the Microsoft.Resources namespace + if len(parts) == 1 { + // Simple resource type + return NewResourceType(builtInResourceNamespace, parts[0]), nil + } else if strings.Contains(parts[0], ".") { + // Handle resource types (Microsoft.Compute/virtualMachines, Microsoft.Network/virtualNetworks/subnets) + // it is a full type name + return NewResourceType(parts[0], strings.Join(parts[1:], "/")), nil + } else { + // Check if ResourceID + id, err := ParseResourceID(resourceIDOrType) + if err != nil { + return ResourceType{}, err + } + return NewResourceType(id.ResourceType.Namespace, id.ResourceType.Type), nil + } +} + +func (t ResourceType) lastType() string { + return t.Types[len(t.Types)-1] +} diff --git a/sdk/azcore/arm/resource_type_test.go b/sdk/azcore/arm/internal/resource/resource_type_test.go similarity index 99% rename from sdk/azcore/arm/resource_type_test.go rename to sdk/azcore/arm/internal/resource/resource_type_test.go index a941a22c42a0..1c6f03814b92 100644 --- a/sdk/azcore/arm/resource_type_test.go +++ b/sdk/azcore/arm/internal/resource/resource_type_test.go @@ -4,7 +4,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -package arm +package resource import ( "testing" diff --git a/sdk/azcore/arm/resource_identifier.go b/sdk/azcore/arm/resource_identifier.go index 6e2efed8b8db..d35d6374fdc7 100644 --- a/sdk/azcore/arm/resource_identifier.go +++ b/sdk/azcore/arm/resource_identifier.go @@ -7,218 +7,17 @@ package arm import ( - "fmt" - "strings" -) - -const ( - providersKey = "providers" - subscriptionsKey = "subscriptions" - resourceGroupsLowerKey = "resourcegroups" - locationsKey = "locations" - builtInResourceNamespace = "Microsoft.Resources" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/internal/resource" ) // RootResourceID defines the tenant as the root parent of all other ResourceID. -var RootResourceID = &ResourceID{ - Parent: nil, - ResourceType: TenantResourceType, - Name: "", -} +var RootResourceID = resource.RootResourceID // ResourceID represents a resource ID such as `/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRg`. // Don't create this type directly, use ParseResourceID instead. -type ResourceID struct { - // Parent is the parent ResourceID of this instance. - // Can be nil if there is no parent. - Parent *ResourceID - - // SubscriptionID is the subscription ID in this resource ID. - // The value can be empty if the resource ID does not contain a subscription ID. - SubscriptionID string - - // ResourceGroupName is the resource group name in this resource ID. - // The value can be empty if the resource ID does not contain a resource group name. - ResourceGroupName string - - // Provider represents the provider name in this resource ID. - // This is only valid when the resource ID represents a resource provider. - // Example: `/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Insights` - Provider string - - // Location is the location in this resource ID. - // The value can be empty if the resource ID does not contain a location name. - Location string - - // ResourceType represents the type of this resource ID. - ResourceType ResourceType - - // Name is the resource name of this resource ID. - Name string - - isChild bool - stringValue string -} +type ResourceID = resource.ResourceID // ParseResourceID parses a string to an instance of ResourceID func ParseResourceID(id string) (*ResourceID, error) { - if len(id) == 0 { - return nil, fmt.Errorf("invalid resource ID: id cannot be empty") - } - - if !strings.HasPrefix(id, "/") { - return nil, fmt.Errorf("invalid resource ID: resource id '%s' must start with '/'", id) - } - - parts := splitStringAndOmitEmpty(id, "/") - - if len(parts) < 2 { - return nil, fmt.Errorf("invalid resource ID: %s", id) - } - - if !strings.EqualFold(parts[0], subscriptionsKey) && !strings.EqualFold(parts[0], providersKey) { - return nil, fmt.Errorf("invalid resource ID: %s", id) - } - - return appendNext(RootResourceID, parts, id) -} - -// String returns the string of the ResourceID -func (id *ResourceID) String() string { - if len(id.stringValue) > 0 { - return id.stringValue - } - - if id.Parent == nil { - return "" - } - - builder := strings.Builder{} - builder.WriteString(id.Parent.String()) - - if id.isChild { - builder.WriteString(fmt.Sprintf("/%s", id.ResourceType.lastType())) - if len(id.Name) > 0 { - builder.WriteString(fmt.Sprintf("/%s", id.Name)) - } - } else { - builder.WriteString(fmt.Sprintf("/providers/%s/%s/%s", id.ResourceType.Namespace, id.ResourceType.Type, id.Name)) - } - - id.stringValue = builder.String() - - return id.stringValue -} - -func newResourceID(parent *ResourceID, resourceTypeName string, resourceName string) *ResourceID { - id := &ResourceID{} - id.init(parent, chooseResourceType(resourceTypeName, parent), resourceName, true) - return id -} - -func newResourceIDWithResourceType(parent *ResourceID, resourceType ResourceType, resourceName string) *ResourceID { - id := &ResourceID{} - id.init(parent, resourceType, resourceName, true) - return id -} - -func newResourceIDWithProvider(parent *ResourceID, providerNamespace, resourceTypeName, resourceName string) *ResourceID { - id := &ResourceID{} - id.init(parent, NewResourceType(providerNamespace, resourceTypeName), resourceName, false) - return id -} - -func chooseResourceType(resourceTypeName string, parent *ResourceID) ResourceType { - if strings.EqualFold(resourceTypeName, resourceGroupsLowerKey) { - return ResourceGroupResourceType - } else if strings.EqualFold(resourceTypeName, subscriptionsKey) && parent != nil && parent.ResourceType.String() == TenantResourceType.String() { - return SubscriptionResourceType - } - - return parent.ResourceType.AppendChild(resourceTypeName) -} - -func (id *ResourceID) init(parent *ResourceID, resourceType ResourceType, name string, isChild bool) { - if parent != nil { - id.Provider = parent.Provider - id.SubscriptionID = parent.SubscriptionID - id.ResourceGroupName = parent.ResourceGroupName - id.Location = parent.Location - } - - if resourceType.String() == SubscriptionResourceType.String() { - id.SubscriptionID = name - } - - if resourceType.lastType() == locationsKey { - id.Location = name - } - - if resourceType.String() == ResourceGroupResourceType.String() { - id.ResourceGroupName = name - } - - if resourceType.String() == ProviderResourceType.String() { - id.Provider = name - } - - if parent == nil { - id.Parent = RootResourceID - } else { - id.Parent = parent - } - id.isChild = isChild - id.ResourceType = resourceType - id.Name = name -} - -func appendNext(parent *ResourceID, parts []string, id string) (*ResourceID, error) { - if len(parts) == 0 { - return parent, nil - } - - if len(parts) == 1 { - // subscriptions and resourceGroups are not valid ids without their names - if strings.EqualFold(parts[0], subscriptionsKey) || strings.EqualFold(parts[0], resourceGroupsLowerKey) { - return nil, fmt.Errorf("invalid resource ID: %s", id) - } - - // resourceGroup must contain either child or provider resource type - if parent.ResourceType.String() == ResourceGroupResourceType.String() { - return nil, fmt.Errorf("invalid resource ID: %s", id) - } - - return newResourceID(parent, parts[0], ""), nil - } - - if strings.EqualFold(parts[0], providersKey) && (len(parts) == 2 || strings.EqualFold(parts[2], providersKey)) { - //provider resource can only be on a tenant or a subscription parent - if parent.ResourceType.String() != SubscriptionResourceType.String() && parent.ResourceType.String() != TenantResourceType.String() { - return nil, fmt.Errorf("invalid resource ID: %s", id) - } - - return appendNext(newResourceIDWithResourceType(parent, ProviderResourceType, parts[1]), parts[2:], id) - } - - if len(parts) > 3 && strings.EqualFold(parts[0], providersKey) { - return appendNext(newResourceIDWithProvider(parent, parts[1], parts[2], parts[3]), parts[4:], id) - } - - if len(parts) > 1 && !strings.EqualFold(parts[0], providersKey) { - return appendNext(newResourceID(parent, parts[0], parts[1]), parts[2:], id) - } - - return nil, fmt.Errorf("invalid resource ID: %s", id) -} - -func splitStringAndOmitEmpty(v, sep string) []string { - r := make([]string, 0) - for _, s := range strings.Split(v, sep) { - if len(s) == 0 { - continue - } - r = append(r, s) - } - - return r + return resource.ParseResourceID(id) } diff --git a/sdk/azcore/arm/resource_type.go b/sdk/azcore/arm/resource_type.go index 6e9dbec8db54..fc7fbffd2603 100644 --- a/sdk/azcore/arm/resource_type.go +++ b/sdk/azcore/arm/resource_type.go @@ -7,108 +7,34 @@ package arm import ( - "fmt" - "strings" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/internal/resource" ) // SubscriptionResourceType is the ResourceType of a subscription -var SubscriptionResourceType = NewResourceType(builtInResourceNamespace, "subscriptions") +var SubscriptionResourceType = resource.SubscriptionResourceType // ResourceGroupResourceType is the ResourceType of a resource group -var ResourceGroupResourceType = NewResourceType(builtInResourceNamespace, "resourceGroups") +var ResourceGroupResourceType = resource.ResourceGroupResourceType // TenantResourceType is the ResourceType of a tenant -var TenantResourceType = NewResourceType(builtInResourceNamespace, "tenants") +var TenantResourceType = resource.TenantResourceType // ProviderResourceType is the ResourceType of a provider -var ProviderResourceType = NewResourceType(builtInResourceNamespace, "providers") +var ProviderResourceType = resource.ProviderResourceType // ResourceType represents an Azure resource type, e.g. "Microsoft.Network/virtualNetworks/subnets". // Don't create this type directly, use ParseResourceType or NewResourceType instead. -type ResourceType struct { - // Namespace is the namespace of the resource type. - // e.g. "Microsoft.Network" in resource type "Microsoft.Network/virtualNetworks/subnets" - Namespace string - - // Type is the full type name of the resource type. - // e.g. "virtualNetworks/subnets" in resource type "Microsoft.Network/virtualNetworks/subnets" - Type string - - // Types is the slice of all the sub-types of this resource type. - // e.g. ["virtualNetworks", "subnets"] in resource type "Microsoft.Network/virtualNetworks/subnets" - Types []string - - stringValue string -} - -// String returns the string of the ResourceType -func (t ResourceType) String() string { - return t.stringValue -} - -// IsParentOf returns true when the receiver is the parent resource type of the child. -func (t ResourceType) IsParentOf(child ResourceType) bool { - if !strings.EqualFold(t.Namespace, child.Namespace) { - return false - } - if len(t.Types) >= len(child.Types) { - return false - } - for i := range t.Types { - if !strings.EqualFold(t.Types[i], child.Types[i]) { - return false - } - } - - return true -} - -// AppendChild creates an instance of ResourceType using the receiver as the parent with childType appended to it. -func (t ResourceType) AppendChild(childType string) ResourceType { - return NewResourceType(t.Namespace, fmt.Sprintf("%s/%s", t.Type, childType)) -} +type ResourceType = resource.ResourceType // NewResourceType creates an instance of ResourceType using a provider namespace // such as "Microsoft.Network" and type such as "virtualNetworks/subnets". func NewResourceType(providerNamespace, typeName string) ResourceType { - return ResourceType{ - Namespace: providerNamespace, - Type: typeName, - Types: splitStringAndOmitEmpty(typeName, "/"), - stringValue: fmt.Sprintf("%s/%s", providerNamespace, typeName), - } + return resource.NewResourceType(providerNamespace, typeName) } // ParseResourceType parses the ResourceType from a resource type string (e.g. Microsoft.Network/virtualNetworks/subsets) // or a resource identifier string. // e.g. /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRg/providers/Microsoft.Network/virtualNetworks/vnet/subnets/mySubnet) func ParseResourceType(resourceIDOrType string) (ResourceType, error) { - // split the path into segments - parts := splitStringAndOmitEmpty(resourceIDOrType, "/") - - // There must be at least a namespace and type name - if len(parts) < 1 { - return ResourceType{}, fmt.Errorf("invalid resource ID or type: %s", resourceIDOrType) - } - - // if the type is just subscriptions, it is a built-in type in the Microsoft.Resources namespace - if len(parts) == 1 { - // Simple resource type - return NewResourceType(builtInResourceNamespace, parts[0]), nil - } else if strings.Contains(parts[0], ".") { - // Handle resource types (Microsoft.Compute/virtualMachines, Microsoft.Network/virtualNetworks/subnets) - // it is a full type name - return NewResourceType(parts[0], strings.Join(parts[1:], "/")), nil - } else { - // Check if ResourceID - id, err := ParseResourceID(resourceIDOrType) - if err != nil { - return ResourceType{}, err - } - return NewResourceType(id.ResourceType.Namespace, id.ResourceType.Type), nil - } -} - -func (t ResourceType) lastType() string { - return t.Types[len(t.Types)-1] + return resource.ParseResourceType(resourceIDOrType) } diff --git a/sdk/azcore/internal/exported/request.go b/sdk/azcore/internal/exported/request.go index 388675741780..fa99d1b7ed1f 100644 --- a/sdk/azcore/internal/exported/request.go +++ b/sdk/azcore/internal/exported/request.go @@ -169,3 +169,14 @@ func (req *Request) Clone(ctx context.Context) *Request { r2.req = req.req.Clone(ctx) return &r2 } + +// not exported but dependent on Request + +// PolicyFunc is a type that implements the Policy interface. +// Use this type when implementing a stateless policy as a first-class function. +type PolicyFunc func(*Request) (*http.Response, error) + +// Do implements the Policy interface on policyFunc. +func (pf PolicyFunc) Do(req *Request) (*http.Response, error) { + return pf(req) +} diff --git a/sdk/azcore/internal/shared/constants.go b/sdk/azcore/internal/shared/constants.go index 7eb0574bb112..91bcd8f7a875 100644 --- a/sdk/azcore/internal/shared/constants.go +++ b/sdk/azcore/internal/shared/constants.go @@ -21,6 +21,7 @@ const ( HeaderOperationLocation = "Operation-Location" HeaderRetryAfter = "Retry-After" HeaderUserAgent = "User-Agent" + HeaderXMSClientRequestID = "x-ms-client-request-id" ) const BearerTokenPrefix = "Bearer " diff --git a/sdk/azcore/runtime/pipeline.go b/sdk/azcore/runtime/pipeline.go index a2906f51bca9..9d9288f53d3d 100644 --- a/sdk/azcore/runtime/pipeline.go +++ b/sdk/azcore/runtime/pipeline.go @@ -7,8 +7,6 @@ package runtime import ( - "net/http" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/internal/exported" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" ) @@ -46,7 +44,7 @@ func NewPipeline(module, version string, plOpts PipelineOptions, options *policy } // we put the includeResponsePolicy at the very beginning so that the raw response // is populated with the final response (some policies might mutate the response) - policies := []policy.Policy{policyFunc(includeResponsePolicy)} + policies := []policy.Policy{exported.PolicyFunc(includeResponsePolicy)} if cp.APIVersion != "" { policies = append(policies, newAPIVersionPolicy(cp.APIVersion, &plOpts.APIVersion)) } @@ -59,19 +57,10 @@ func NewPipeline(module, version string, plOpts PipelineOptions, options *policy policies = append(policies, plOpts.PerRetry...) policies = append(policies, cp.PerRetryPolicies...) policies = append(policies, NewLogPolicy(&cp.Logging)) - policies = append(policies, policyFunc(httpHeaderPolicy), policyFunc(bodyDownloadPolicy)) + policies = append(policies, exported.PolicyFunc(httpHeaderPolicy), exported.PolicyFunc(bodyDownloadPolicy)) transport := cp.Transport if transport == nil { transport = defaultHTTPClient } return exported.NewPipeline(transport, policies...) } - -// policyFunc is a type that implements the Policy interface. -// Use this type when implementing a stateless policy as a first-class function. -type policyFunc func(*policy.Request) (*http.Response, error) - -// Do implements the Policy interface on policyFunc. -func (pf policyFunc) Do(req *policy.Request) (*http.Response, error) { - return pf(req) -} diff --git a/sdk/azcore/runtime/policy_logging.go b/sdk/azcore/runtime/policy_logging.go index 30a02a7a41b7..8514f57d5c2f 100644 --- a/sdk/azcore/runtime/policy_logging.go +++ b/sdk/azcore/runtime/policy_logging.go @@ -11,6 +11,7 @@ import ( "fmt" "io" "net/http" + "net/url" "sort" "strings" "time" @@ -66,12 +67,7 @@ func NewLogPolicy(o *policy.LogOptions) policy.Policy { allowedHeaders[strings.ToLower(ah)] = struct{}{} } // now do the same thing for query params - allowedQP := map[string]struct{}{ - "api-version": {}, - } - for _, qp := range o.AllowedQueryParams { - allowedQP[strings.ToLower(qp)] = struct{}{} - } + allowedQP := getAllowedQueryParams(o.AllowedQueryParams) return &logPolicy{ includeBody: o.IncludeBody, allowedHeaders: allowedHeaders, @@ -79,6 +75,18 @@ func NewLogPolicy(o *policy.LogOptions) policy.Policy { } } +// getAllowedQueryParams merges the default set of allowed query parameters +// with a custom set (usually comes from client options). +func getAllowedQueryParams(customAllowedQP []string) map[string]struct{} { + allowedQP := map[string]struct{}{ + "api-version": {}, + } + for _, qp := range customAllowedQP { + allowedQP[strings.ToLower(qp)] = struct{}{} + } + return allowedQP +} + // logPolicyOpValues is the struct containing the per-operation values type logPolicyOpValues struct { try int32 @@ -140,20 +148,24 @@ func (p *logPolicy) Do(req *policy.Request) (*http.Response, error) { const redactedValue = "REDACTED" -// writeRequestWithResponse appends a formatted HTTP request into a Buffer. If request and/or err are -// not nil, then these are also written into the Buffer. -func (p *logPolicy) writeRequestWithResponse(b *bytes.Buffer, req *policy.Request, resp *http.Response, err error) { +// getSanitizedURL returns a sanitized string for the provided url.URL +func getSanitizedURL(u url.URL, allowedQueryParams map[string]struct{}) string { // redact applicable query params - cpURL := *req.Raw().URL - qp := cpURL.Query() + qp := u.Query() for k := range qp { - if _, ok := p.allowedQP[strings.ToLower(k)]; !ok { + if _, ok := allowedQueryParams[strings.ToLower(k)]; !ok { qp.Set(k, redactedValue) } } - cpURL.RawQuery = qp.Encode() + u.RawQuery = qp.Encode() + return u.String() +} + +// writeRequestWithResponse appends a formatted HTTP request into a Buffer. If request and/or err are +// not nil, then these are also written into the Buffer. +func (p *logPolicy) writeRequestWithResponse(b *bytes.Buffer, req *policy.Request, resp *http.Response, err error) { // Write the request into the buffer. - fmt.Fprint(b, " "+req.Raw().Method+" "+cpURL.String()+"\n") + fmt.Fprint(b, " "+req.Raw().Method+" "+getSanitizedURL(*req.Raw().URL, p.allowedQP)+"\n") p.writeHeader(b, req.Raw().Header) if resp != nil { fmt.Fprintln(b, " --------------------------------------------------------------------------------") diff --git a/sdk/azcore/runtime/policy_request_id.go b/sdk/azcore/runtime/policy_request_id.go index db70955b28bc..360a7f2118a3 100644 --- a/sdk/azcore/runtime/policy_request_id.go +++ b/sdk/azcore/runtime/policy_request_id.go @@ -9,6 +9,7 @@ package runtime import ( "net/http" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/internal/shared" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/internal/uuid" ) @@ -21,13 +22,12 @@ func NewRequestIDPolicy() policy.Policy { } func (r *requestIDPolicy) Do(req *policy.Request) (*http.Response, error) { - const requestIdHeader = "x-ms-client-request-id" - if req.Raw().Header.Get(requestIdHeader) == "" { + if req.Raw().Header.Get(shared.HeaderXMSClientRequestID) == "" { id, err := uuid.New() if err != nil { return nil, err } - req.Raw().Header.Set(requestIdHeader, id.String()) + req.Raw().Header.Set(shared.HeaderXMSClientRequestID, id.String()) } return req.Next() diff --git a/sdk/azcore/runtime/policy_retry_test.go b/sdk/azcore/runtime/policy_retry_test.go index 0eba52594608..65c48231a7ec 100644 --- a/sdk/azcore/runtime/policy_retry_test.go +++ b/sdk/azcore/runtime/policy_retry_test.go @@ -97,7 +97,7 @@ func TestRetryPolicyFailOnStatusCodeRespBodyPreserved(t *testing.T) { srv.SetResponse(mock.WithStatusCode(http.StatusInternalServerError), mock.WithBody([]byte(respBody))) // add a per-request policy that reads and restores the request body. // this is to simulate how something like httputil.DumpRequest works. - pl := exported.NewPipeline(srv, policyFunc(func(r *policy.Request) (*http.Response, error) { + pl := exported.NewPipeline(srv, exported.PolicyFunc(func(r *policy.Request) (*http.Response, error) { b, err := io.ReadAll(r.Raw().Body) if err != nil { t.Fatal(err) @@ -296,7 +296,7 @@ func TestRetryPolicySuccessWithRetryComplex(t *testing.T) { srv.AppendError(errors.New("bogus error")) srv.AppendResponse(mock.WithStatusCode(http.StatusInternalServerError)) srv.AppendResponse(mock.WithStatusCode(http.StatusAccepted)) - pl := exported.NewPipeline(srv, policyFunc(includeResponsePolicy), NewRetryPolicy(testRetryOptions())) + pl := exported.NewPipeline(srv, exported.PolicyFunc(includeResponsePolicy), NewRetryPolicy(testRetryOptions())) var respFromCtx *http.Response ctxWithResp := WithCaptureResponse(context.Background(), &respFromCtx) req, err := NewRequest(ctxWithResp, http.MethodGet, srv.URL()) @@ -652,7 +652,7 @@ func TestRetryPolicySuccessWithPerTryTimeoutNoRetryWithBodyDownload(t *testing.T srv.AppendResponse(mock.WithStatusCode(http.StatusOK), mock.WithBody(largeBody)) opt := testRetryOptions() opt.TryTimeout = 10 * time.Second - pl := exported.NewPipeline(srv, NewRetryPolicy(opt), policyFunc(bodyDownloadPolicy)) + pl := exported.NewPipeline(srv, NewRetryPolicy(opt), exported.PolicyFunc(bodyDownloadPolicy)) req, err := NewRequest(context.Background(), http.MethodGet, srv.URL()) if err != nil { t.Fatalf("unexpected error: %v", err) From 80187b33b0df9299998c6aaf0579306a5c4d1229 Mon Sep 17 00:00:00 2001 From: Richard Park <51494936+richardpark-msft@users.noreply.github.com> Date: Mon, 27 Feb 2023 18:38:15 -0800 Subject: [PATCH 061/107] [azeventhubs] Client identifier support (#20045) Event Hubs has an optional parameter you can pass that lets you identify a consumer link. This name will come back in error messages like when link ownership is contested. Given the distributed nature of consumers this identifier can help diagnose issues where consumers are battling over links. Fixes #15074 --- sdk/messaging/azeventhubs/CHANGELOG.md | 8 +- sdk/messaging/azeventhubs/consumer_client.go | 53 +++++-- .../azeventhubs/consumer_client_test.go | 118 ++++++++++++--- .../azeventhubs/internal/constants.go | 2 +- .../stress/tests/processor_stress_tester.go | 2 +- sdk/messaging/azeventhubs/partition_client.go | 55 ++++--- sdk/messaging/azeventhubs/producer_client.go | 17 ++- .../azeventhubs/producer_client_test.go | 141 +++++++++++------- 8 files changed, 275 insertions(+), 121 deletions(-) diff --git a/sdk/messaging/azeventhubs/CHANGELOG.md b/sdk/messaging/azeventhubs/CHANGELOG.md index 1540c9dc3109..1563ff9d6774 100644 --- a/sdk/messaging/azeventhubs/CHANGELOG.md +++ b/sdk/messaging/azeventhubs/CHANGELOG.md @@ -1,11 +1,17 @@ # Release History -## 0.5.1 (Unreleased) +## 0.6.0 (Unreleased) ### Features Added +- Added the `ConsumerClientOptions.InstanceID` field. This optional field can enhance error messages from + Event Hubs. For example, error messages related to ownership changes for a partition will contain the + name of the link that has taken ownership, which can help with traceability. + ### Breaking Changes +- `ConsumerClient.ID()` renamed to `ConsumerClient.InstanceID()`. + ### Bugs Fixed ### Other Changes diff --git a/sdk/messaging/azeventhubs/consumer_client.go b/sdk/messaging/azeventhubs/consumer_client.go index ae3dec0de40a..d8026e295997 100644 --- a/sdk/messaging/azeventhubs/consumer_client.go +++ b/sdk/messaging/azeventhubs/consumer_client.go @@ -39,12 +39,14 @@ const ( // ConsumerClientOptions configures optional parameters for a ConsumerClient. type ConsumerClientOptions struct { - // TLSConfig configures a client with a custom *tls.Config. - TLSConfig *tls.Config - - // Application ID that will be passed to the namespace. + // ApplicationID is used as the identifier when setting the User-Agent property. ApplicationID string + // InstanceID is a unique name used to identify the consumer. This can help with + // diagnostics as this name will be returned in error messages. By default, + // an identifier will be automatically generated. + InstanceID string + // NewWebSocketConn is a function that can create a net.Conn for use with websockets. // For an example, see ExampleNewClient_usingWebsockets() function in example_client_test.go. NewWebSocketConn func(ctx context.Context, args WebSocketConnParams) (net.Conn, error) @@ -52,6 +54,9 @@ type ConsumerClientOptions struct { // RetryOptions controls how often operations are retried from this client and any // Receivers and Senders created from this client. RetryOptions RetryOptions + + // TLSConfig configures a client with a custom *tls.Config. + TLSConfig *tls.Config } // ConsumerClient can create PartitionClient instances, which can read events from @@ -59,11 +64,15 @@ type ConsumerClientOptions struct { type ConsumerClient struct { consumerGroup string eventHub string - retryOptions RetryOptions - namespace *internal.Namespace - links *internal.Links[amqpwrap.AMQPReceiverCloser] - clientID string + // instanceID is a customer supplied instanceID that can be passed to Event Hubs. + // It'll be returned in error messages and can be useful for customers when + // troubleshooting. + instanceID string + + links *internal.Links[amqpwrap.AMQPReceiverCloser] + namespace *internal.Namespace + retryOptions RetryOptions } // NewConsumerClient creates a ConsumerClient which uses an azcore.TokenCredential for authentication. You @@ -141,6 +150,7 @@ func (cc *ConsumerClient) NewPartitionClient(partitionID string, options *Partit namespace: cc.namespace, eventHub: cc.eventHub, partitionID: partitionID, + instanceID: cc.instanceID, consumerGroup: cc.consumerGroup, retryOptions: cc.retryOptions, }, options) @@ -170,9 +180,9 @@ func (cc *ConsumerClient) GetPartitionProperties(ctx context.Context, partitionI return getPartitionProperties(ctx, cc.namespace, rpcLink.Link, cc.eventHub, partitionID, options) } -// ID is the identifier for this ConsumerClient. -func (cc *ConsumerClient) ID() string { - return cc.clientID +// InstanceID is the identifier for this ConsumerClient. +func (cc *ConsumerClient) InstanceID() string { + return cc.instanceID } type consumerClientDetails struct { @@ -187,7 +197,7 @@ func (cc *ConsumerClient) getDetails() consumerClientDetails { FullyQualifiedNamespace: cc.namespace.FQDN, ConsumerGroup: cc.consumerGroup, EventHubName: cc.eventHub, - ClientID: cc.clientID, + ClientID: cc.InstanceID(), } } @@ -212,7 +222,7 @@ func newConsumerClient(args consumerClientArgs, options *ConsumerClientOptions) options = &ConsumerClientOptions{} } - clientUUID, err := uuid.New() + instanceID, err := getInstanceID(options.InstanceID) if err != nil { return nil, err @@ -221,7 +231,7 @@ func newConsumerClient(args consumerClientArgs, options *ConsumerClientOptions) client := &ConsumerClient{ consumerGroup: args.consumerGroup, eventHub: args.eventHub, - clientID: clientUUID.String(), + instanceID: instanceID, } var nsOptions []internal.NamespaceOption @@ -263,3 +273,18 @@ func newConsumerClient(args consumerClientArgs, options *ConsumerClientOptions) return client, nil } + +func getInstanceID(optionalID string) (string, error) { + if optionalID != "" { + return optionalID, nil + } + + // generate a new one + id, err := uuid.New() + + if err != nil { + return "", err + } + + return id.String(), nil +} diff --git a/sdk/messaging/azeventhubs/consumer_client_test.go b/sdk/messaging/azeventhubs/consumer_client_test.go index 9845677c88bd..60646eab7304 100644 --- a/sdk/messaging/azeventhubs/consumer_client_test.go +++ b/sdk/messaging/azeventhubs/consumer_client_test.go @@ -4,6 +4,7 @@ package azeventhubs_test import ( "context" + "fmt" "strings" "sync" "testing" @@ -11,6 +12,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/internal/uuid" "github.com/Azure/azure-sdk-for-go/sdk/messaging/azeventhubs" "github.com/Azure/azure-sdk-for-go/sdk/messaging/azeventhubs/internal/test" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/eventhub/armeventhub" @@ -710,6 +712,66 @@ func TestConsumerClient_StartPosition_Latest(t *testing.T) { } } +func TestConsumerClient_InstanceID(t *testing.T) { + testParams := test.GetConnectionParamsForTest(t) + + var instanceID string + + // create a partition client with owner level 1 that's fully initialized. + { + producerClient, err := azeventhubs.NewProducerClientFromConnectionString(testParams.ConnectionString, testParams.EventHubName, nil) + require.NoError(t, err) + defer test.RequireClose(t, producerClient) + + props := sendEventToPartition(t, producerClient, "0", []*azeventhubs.EventData{ + {Body: []byte("hello")}, + }) + + consumerClient, err := azeventhubs.NewConsumerClientFromConnectionString(testParams.ConnectionString, testParams.EventHubName, azeventhubs.DefaultConsumerGroup, &azeventhubs.ConsumerClientOptions{ + // We'll just let this one be auto-generated. + //InstanceID: "", + }) + require.NoError(t, err) + defer test.RequireClose(t, consumerClient) + + parsedUUID, err := uuid.Parse(consumerClient.InstanceID()) + require.NotZero(t, parsedUUID) + require.NoError(t, err) + + instanceID = consumerClient.InstanceID() + + partitionClient, err := consumerClient.NewPartitionClient("0", &azeventhubs.PartitionClientOptions{ + OwnerLevel: to.Ptr(int64(1)), + StartPosition: getStartPosition(props), + }) + require.NoError(t, err) + + // receive an event so we know the link is alive. + events, err := partitionClient.ReceiveEvents(context.Background(), 1, nil) + require.NotEmpty(t, events) + require.NoError(t, err) + } + + failedConsumerClient, err := azeventhubs.NewConsumerClientFromConnectionString(testParams.ConnectionString, testParams.EventHubName, azeventhubs.DefaultConsumerGroup, &azeventhubs.ConsumerClientOptions{ + InstanceID: "LosesBecauseOfLowOwnerLevel", + RetryOptions: azeventhubs.RetryOptions{ + MaxRetries: -1, // just fail immediately, don't retry. + }, + }) + require.NoError(t, err) + defer test.RequireClose(t, failedConsumerClient) + + failedPartitionClient, err := failedConsumerClient.NewPartitionClient("0", &azeventhubs.PartitionClientOptions{ + // the other partition client already has the partition open with owner level 1. So our attempt to connect will fail. + OwnerLevel: to.Ptr(int64(0)), + }) + require.NoError(t, err) + + _, err = failedPartitionClient.ReceiveEvents(context.Background(), 1, nil) + + require.Contains(t, err.Error(), fmt.Sprintf("Description: Receiver '%s' with a higher epoch '1' already exists. Receiver 'LosesBecauseOfLowOwnerLevel' with epoch 0 cannot be created. Make sure you are creating receiver with increasing epoch value to ensure connectivity, or ensure all old epoch receivers are closed or disconnected", instanceID)) +} + // mustSendEventsToAllPartitions sends the event given in evt to each partition in the // eventHub, returning the sequence number just before the new message. // @@ -741,29 +803,8 @@ func mustSendEventsToAllPartitions(t *testing.T, events []*azeventhubs.EventData go func(partitionID string) { defer wg.Done() - partProps, err := producer.GetPartitionProperties(context.Background(), partitionID, nil) - require.NoError(t, err) + partProps := sendEventToPartition(t, producer, partitionID, events) partitionsCh <- partProps - - // send the message to the partition. - batch, err := producer.NewEventDataBatch(context.Background(), &azeventhubs.EventDataBatchOptions{ - PartitionID: &partitionID, - }) - require.NoError(t, err) - - for _, event := range events { - if event.Properties == nil { - event.Properties = map[string]any{} - } - - event.Properties["DestPartitionID"] = partitionID - - err = batch.AddEventData(event, nil) - require.NoError(t, err) - } - - err = producer.SendEventDataBatch(context.Background(), batch, nil) - require.NoError(t, err) }(partitionID) } @@ -802,3 +843,36 @@ func getSortedBodies(events []*azeventhubs.ReceivedEventData) []string { return bodies } + +func sendEventToPartition(t *testing.T, producer *azeventhubs.ProducerClient, partitionID string, events []*azeventhubs.EventData) azeventhubs.PartitionProperties { + partProps, err := producer.GetPartitionProperties(context.Background(), partitionID, nil) + require.NoError(t, err) + + // send the message to the partition. + batch, err := producer.NewEventDataBatch(context.Background(), &azeventhubs.EventDataBatchOptions{ + PartitionID: &partitionID, + }) + require.NoError(t, err) + + for _, event := range events { + eventToSend := *event + + props := map[string]any{ + "DestPartitionID": partitionID, + } + + for k, v := range event.Properties { + props[k] = v + } + + eventToSend.Properties = props + + err = batch.AddEventData(event, nil) + require.NoError(t, err) + } + + err = producer.SendEventDataBatch(context.Background(), batch, nil) + require.NoError(t, err) + + return partProps +} diff --git a/sdk/messaging/azeventhubs/internal/constants.go b/sdk/messaging/azeventhubs/internal/constants.go index 0f77688c7ee7..81732fb64bce 100644 --- a/sdk/messaging/azeventhubs/internal/constants.go +++ b/sdk/messaging/azeventhubs/internal/constants.go @@ -4,4 +4,4 @@ package internal // Version is the semantic version number -const Version = "v0.5.1" +const Version = "v0.6.0" diff --git a/sdk/messaging/azeventhubs/internal/eh/stress/tests/processor_stress_tester.go b/sdk/messaging/azeventhubs/internal/eh/stress/tests/processor_stress_tester.go index d1946716b3fd..a6d2398cb66a 100644 --- a/sdk/messaging/azeventhubs/internal/eh/stress/tests/processor_stress_tester.go +++ b/sdk/messaging/azeventhubs/internal/eh/stress/tests/processor_stress_tester.go @@ -124,7 +124,7 @@ func (inf *processorStressTest) Run(ctx context.Context) error { return err } - shortConsumerID := string(cc.ID()[0:5]) + shortConsumerID := string(cc.InstanceID()[0:5]) go func() { for { diff --git a/sdk/messaging/azeventhubs/partition_client.go b/sdk/messaging/azeventhubs/partition_client.go index 8640a2a781be..175f6395adcf 100644 --- a/sdk/messaging/azeventhubs/partition_client.go +++ b/sdk/messaging/azeventhubs/partition_client.go @@ -61,16 +61,15 @@ type StartPosition struct { // // This type is instantiated from the [ConsumerClient] type, using [ConsumerClient.NewPartitionClient]. type PartitionClient struct { - retryOptions RetryOptions - eventHub string - consumerGroup string - partitionID string - ownerLevel *int64 - prefetch int32 - + consumerGroup string + eventHub string + instanceID string + links internal.LinksForPartitionClient[amqpwrap.AMQPReceiverCloser] offsetExpression string - - links internal.LinksForPartitionClient[amqpwrap.AMQPReceiverCloser] + ownerLevel *int64 + partitionID string + prefetch int32 + retryOptions RetryOptions } // ReceiveEventsOptions contains optional parameters for the ReceiveEvents function @@ -204,12 +203,15 @@ func (pc *PartitionClient) getEntityPath(partitionID string) string { } func (pc *PartitionClient) newEventHubConsumerLink(ctx context.Context, session amqpwrap.AMQPSession, entityPath string) (internal.AMQPReceiverCloser, error) { - var props map[string]interface{} + props := map[string]any{ + // this lets Event Hubs return error messages that identify which Receiver stole ownership (and other things) within + // error messages. + // Ex: (ownershiplost): link detached, reason: *Error{Condition: amqp:link:stolen, Description: New receiver 'EventHubConsumerClientTestID-Interloper' with higher epoch of '1' is created hence current receiver 'EventHubConsumerClientTestID' with epoch '0' is getting disconnected. If you are recreating the receiver, make sure a higher epoch is used. TrackingId:8031553f0000a5060009a59b63f517a0_G4_B22, SystemTracker:riparkdev:eventhub:tests~10922|$default, Timestamp:2023-02-21T19:12:41, Info: map[]} + "com.microsoft:receiver-name": pc.instanceID, + } if pc.ownerLevel != nil { - props = map[string]interface{}{ - "com.microsoft:epoch": *pc.ownerLevel, - } + props["com.microsoft:epoch"] = *pc.ownerLevel } receiverOptions := &amqp.ReceiverOptions{ @@ -217,7 +219,8 @@ func (pc *PartitionClient) newEventHubConsumerLink(ctx context.Context, session Filters: []amqp.LinkFilter{ amqp.LinkFilterSelector(pc.offsetExpression), }, - Properties: props, + Properties: props, + TargetAddress: pc.instanceID, } if pc.prefetch > 0 { @@ -234,6 +237,14 @@ func (pc *PartitionClient) newEventHubConsumerLink(ctx context.Context, session receiverOptions.Credit = defaultMaxCreditSize } + log.Writef(EventConsumer, "Creating receiver:\n source:%s\n instanceID: %s\n owner level: %d\n offset: %s\n manual: %v\n prefetch: %d", + entityPath, + pc.instanceID, + pc.ownerLevel, + pc.offsetExpression, + receiverOptions.ManualCredits, + pc.prefetch) + receiver, err := session.NewReceiver(ctx, entityPath, receiverOptions) if err != nil { @@ -252,12 +263,11 @@ func (pc *PartitionClient) init(ctx context.Context) error { type partitionClientArgs struct { namespace internal.NamespaceForAMQPLinks - eventHub string - partitionID string - consumerGroup string - - retryOptions RetryOptions + eventHub string + instanceID string + partitionID string + retryOptions RetryOptions } func newPartitionClient(args partitionClientArgs, options *PartitionClientOptions) (*PartitionClient, error) { @@ -277,13 +287,14 @@ func newPartitionClient(args partitionClientArgs, options *PartitionClientOption } client := &PartitionClient{ - eventHub: args.eventHub, - partitionID: args.partitionID, - ownerLevel: options.OwnerLevel, consumerGroup: args.consumerGroup, + eventHub: args.eventHub, offsetExpression: offsetExpr, + ownerLevel: options.OwnerLevel, + partitionID: args.partitionID, prefetch: options.Prefetch, retryOptions: args.retryOptions, + instanceID: args.instanceID, } client.links = internal.NewLinks(args.namespace, fmt.Sprintf("%s/$management", client.eventHub), client.getEntityPath, client.newEventHubConsumerLink) diff --git a/sdk/messaging/azeventhubs/producer_client.go b/sdk/messaging/azeventhubs/producer_client.go index ed040885b118..309d996b7e7f 100644 --- a/sdk/messaging/azeventhubs/producer_client.go +++ b/sdk/messaging/azeventhubs/producer_client.go @@ -28,9 +28,6 @@ type RetryOptions = exported.RetryOptions // ProducerClientOptions contains options for the `NewProducerClient` and `NewProducerClientFromConnectionString` // functions. type ProducerClientOptions struct { - // TLSConfig configures a client with a custom *tls.Config. - TLSConfig *tls.Config - // Application ID that will be passed to the namespace. ApplicationID string @@ -41,15 +38,17 @@ type ProducerClientOptions struct { // RetryOptions controls how often operations are retried from this client and any // Receivers and Senders created from this client. RetryOptions RetryOptions + + // TLSConfig configures a client with a custom *tls.Config. + TLSConfig *tls.Config } // ProducerClient can be used to send events to an Event Hub. type ProducerClient struct { - retryOptions RetryOptions - namespace internal.NamespaceForProducerOrConsumer eventHub string - - links *internal.Links[amqpwrap.AMQPSenderCloser] + links *internal.Links[amqpwrap.AMQPSenderCloser] + namespace internal.NamespaceForProducerOrConsumer + retryOptions RetryOptions } // anyPartitionID is what we target if we want to send a message and let Event Hubs pick a partition @@ -264,6 +263,10 @@ func newProducerClientImpl(creds producerClientCreds, options *ProducerClientOpt nsOptions = append(nsOptions, internal.NamespaceWithRetryOptions(options.RetryOptions)) } + if err != nil { + return nil, err + } + tmpNS, err := internal.NewNamespace(nsOptions...) if err != nil { diff --git a/sdk/messaging/azeventhubs/producer_client_test.go b/sdk/messaging/azeventhubs/producer_client_test.go index 9fced8177520..ddbf61a91713 100644 --- a/sdk/messaging/azeventhubs/producer_client_test.go +++ b/sdk/messaging/azeventhubs/producer_client_test.go @@ -130,73 +130,105 @@ func TestProducerClient_SendToAny(t *testing.T) { // be placed into the same partition but let the overall distribution of the partition keys // happen through Event Hubs. - fn := func(t *testing.T, partitionKey *string) { - testParams := test.GetConnectionParamsForTest(t) - - producer, err := azeventhubs.NewProducerClientFromConnectionString(testParams.ConnectionString, testParams.EventHubName, nil) - require.NoError(t, err) + t.Run("no partition key, no client instanceID", func(t *testing.T) { + testSendAny(t, struct { + instanceID string + partitionKey *string + }{}) + }) - defer test.RequireClose(t, producer) + t.Run("no partition key, with client instanceID", func(t *testing.T) { + testSendAny(t, struct { + instanceID string + partitionKey *string + }{ + instanceID: "client ID", + }) + }) - batch, err := producer.NewEventDataBatch(context.Background(), &azeventhubs.EventDataBatchOptions{ - PartitionKey: partitionKey, + t.Run("actual partition key, no client instanceID", func(t *testing.T) { + testSendAny(t, struct { + instanceID string + partitionKey *string + }{ + partitionKey: to.Ptr("my special partition key"), }) - require.NoError(t, err) + }) - err = batch.AddEventData(&azeventhubs.EventData{ - Body: []byte("hello world"), - ContentType: to.Ptr("content type"), - CorrelationID: "correlation id", - MessageID: to.Ptr("message id"), - Properties: map[string]any{ - "hello": "world", - }, - }, nil) - require.NoError(t, err) + t.Run("actual partition key, with client instanceID", func(t *testing.T) { + testSendAny(t, struct { + instanceID string + partitionKey *string + }{ + instanceID: "client ID", + partitionKey: to.Ptr("my special partition key"), + }) + }) +} - partitionsBeforeSend := getAllPartitionProperties(t, producer) +func testSendAny(t *testing.T, args struct { + instanceID string + partitionKey *string +}) { + testParams := test.GetConnectionParamsForTest(t) - err = producer.SendEventDataBatch(context.Background(), batch, nil) - require.NoError(t, err) + producer, err := azeventhubs.NewProducerClientFromConnectionString(testParams.ConnectionString, testParams.EventHubName, nil) + require.NoError(t, err) - consumer, err := azeventhubs.NewConsumerClientFromConnectionString(testParams.ConnectionString, testParams.EventHubName, azeventhubs.DefaultConsumerGroup, nil) - require.NoError(t, err) + defer test.RequireClose(t, producer) - defer test.RequireClose(t, consumer) + batch, err := producer.NewEventDataBatch(context.Background(), &azeventhubs.EventDataBatchOptions{ + PartitionKey: args.partitionKey, + }) + require.NoError(t, err) - ctx, cancel := context.WithTimeout(context.Background(), 2*time.Minute) - defer cancel() + err = batch.AddEventData(&azeventhubs.EventData{ + Body: []byte("hello world"), + ContentType: to.Ptr("content type"), + CorrelationID: "correlation id", + MessageID: to.Ptr("message id"), + Properties: map[string]any{ + "hello": "world", + }, + }, nil) + require.NoError(t, err) - receivedEvent := receiveEventFromAnyPartition(ctx, t, consumer, partitionsBeforeSend) + partitionsBeforeSend := getAllPartitionProperties(t, producer) - require.Equal(t, azeventhubs.EventData{ - Body: []byte("hello world"), - ContentType: to.Ptr("content type"), - CorrelationID: "correlation id", - MessageID: to.Ptr("message id"), - Properties: map[string]any{ - "hello": "world", - }}, receivedEvent.EventData) - - require.GreaterOrEqual(t, receivedEvent.SequenceNumber, int64(0)) - require.NotNil(t, receivedEvent.Offset) - require.NotZero(t, receivedEvent.EnqueuedTime) - - if partitionKey == nil { - require.Nil(t, receivedEvent.PartitionKey) - } else { - require.NotNil(t, receivedEvent.PartitionKey) - require.Equal(t, *partitionKey, *receivedEvent.PartitionKey) - } - } + err = producer.SendEventDataBatch(context.Background(), batch, nil) + require.NoError(t, err) - t.Run("nil", func(t *testing.T) { - fn(t, nil) + consumer, err := azeventhubs.NewConsumerClientFromConnectionString(testParams.ConnectionString, testParams.EventHubName, azeventhubs.DefaultConsumerGroup, &azeventhubs.ConsumerClientOptions{ + InstanceID: args.instanceID, }) + require.NoError(t, err) - t.Run("actual partition key", func(t *testing.T) { - fn(t, to.Ptr("my special partition key")) - }) + defer test.RequireClose(t, consumer) + + ctx, cancel := context.WithTimeout(context.Background(), 2*time.Minute) + defer cancel() + + receivedEvent := receiveEventFromAnyPartition(ctx, t, consumer, partitionsBeforeSend) + + require.Equal(t, azeventhubs.EventData{ + Body: []byte("hello world"), + ContentType: to.Ptr("content type"), + CorrelationID: "correlation id", + MessageID: to.Ptr("message id"), + Properties: map[string]any{ + "hello": "world", + }}, receivedEvent.EventData) + + require.GreaterOrEqual(t, receivedEvent.SequenceNumber, int64(0)) + require.NotNil(t, receivedEvent.Offset) + require.NotZero(t, receivedEvent.EnqueuedTime) + + if args.partitionKey == nil { + require.Nil(t, receivedEvent.PartitionKey) + } else { + require.NotNil(t, receivedEvent.PartitionKey) + require.Equal(t, *args.partitionKey, *receivedEvent.PartitionKey) + } } func TestProducerClient_AMQPAnnotatedMessages(t *testing.T) { @@ -498,6 +530,9 @@ func receiveEventFromAnyPartition(ctx context.Context, t *testing.T, consumer *a eventCh <- events[0] cancelPartitionReceiving() } + + t.Logf("No error returned and no events received") + eventCh <- nil }(partitionClientContext, partProps) } From 330be6702a817297e28c7259ecf07227df703b6c Mon Sep 17 00:00:00 2001 From: Peng Jiahui <46921893+Alancere@users.noreply.github.com> Date: Tue, 28 Feb 2023 10:45:42 +0800 Subject: [PATCH 062/107] [Release] sdk/resourcemanager/voiceservices/armvoiceservices/0.1.0 generation from spec commit: 7a7b696c2c73218fbca91c7c3bb625ee0f0bbea0 (#20294) --- .../armvoiceservices/CHANGELOG.md | 7 + .../armvoiceservices/LICENSE.txt | 21 + .../voiceservices/armvoiceservices/README.md | 77 ++ .../armvoiceservices/autorest.md | 13 + .../voiceservices/armvoiceservices/build.go | 7 + .../voiceservices/armvoiceservices/ci.yml | 28 + .../communicationsgateways_client.go | 433 +++++++++++ ...municationsgateways_client_example_test.go | 335 ++++++++ .../armvoiceservices/constants.go | 195 +++++ .../armvoiceservices/contacts_client.go | 395 ++++++++++ .../contacts_client_example_test.go | 188 +++++ .../voiceservices/armvoiceservices/go.mod | 21 + .../voiceservices/armvoiceservices/go.sum | 30 + .../voiceservices/armvoiceservices/models.go | 373 +++++++++ .../armvoiceservices/models_serde.go | 719 ++++++++++++++++++ .../armvoiceservices/operations_client.go | 105 +++ .../operations_client_example_test.go | 55 ++ .../armvoiceservices/response_types.go | 95 +++ .../armvoiceservices/testlines_client.go | 395 ++++++++++ .../testlines_client_example_test.go | 178 +++++ .../armvoiceservices/time_rfc3339.go | 87 +++ 21 files changed, 3757 insertions(+) create mode 100644 sdk/resourcemanager/voiceservices/armvoiceservices/CHANGELOG.md create mode 100644 sdk/resourcemanager/voiceservices/armvoiceservices/LICENSE.txt create mode 100644 sdk/resourcemanager/voiceservices/armvoiceservices/README.md create mode 100644 sdk/resourcemanager/voiceservices/armvoiceservices/autorest.md create mode 100644 sdk/resourcemanager/voiceservices/armvoiceservices/build.go create mode 100644 sdk/resourcemanager/voiceservices/armvoiceservices/ci.yml create mode 100644 sdk/resourcemanager/voiceservices/armvoiceservices/communicationsgateways_client.go create mode 100644 sdk/resourcemanager/voiceservices/armvoiceservices/communicationsgateways_client_example_test.go create mode 100644 sdk/resourcemanager/voiceservices/armvoiceservices/constants.go create mode 100644 sdk/resourcemanager/voiceservices/armvoiceservices/contacts_client.go create mode 100644 sdk/resourcemanager/voiceservices/armvoiceservices/contacts_client_example_test.go create mode 100644 sdk/resourcemanager/voiceservices/armvoiceservices/go.mod create mode 100644 sdk/resourcemanager/voiceservices/armvoiceservices/go.sum create mode 100644 sdk/resourcemanager/voiceservices/armvoiceservices/models.go create mode 100644 sdk/resourcemanager/voiceservices/armvoiceservices/models_serde.go create mode 100644 sdk/resourcemanager/voiceservices/armvoiceservices/operations_client.go create mode 100644 sdk/resourcemanager/voiceservices/armvoiceservices/operations_client_example_test.go create mode 100644 sdk/resourcemanager/voiceservices/armvoiceservices/response_types.go create mode 100644 sdk/resourcemanager/voiceservices/armvoiceservices/testlines_client.go create mode 100644 sdk/resourcemanager/voiceservices/armvoiceservices/testlines_client_example_test.go create mode 100644 sdk/resourcemanager/voiceservices/armvoiceservices/time_rfc3339.go diff --git a/sdk/resourcemanager/voiceservices/armvoiceservices/CHANGELOG.md b/sdk/resourcemanager/voiceservices/armvoiceservices/CHANGELOG.md new file mode 100644 index 000000000000..e52665c72716 --- /dev/null +++ b/sdk/resourcemanager/voiceservices/armvoiceservices/CHANGELOG.md @@ -0,0 +1,7 @@ +# Release History + +## 0.1.0 (2023-02-27) + +The package of `github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/voiceservices/armvoiceservices` is using our [next generation design principles](https://azure.github.io/azure-sdk/general_introduction.html). + +To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/go/mgmt). \ No newline at end of file diff --git a/sdk/resourcemanager/voiceservices/armvoiceservices/LICENSE.txt b/sdk/resourcemanager/voiceservices/armvoiceservices/LICENSE.txt new file mode 100644 index 000000000000..dc0c2ffb3dc1 --- /dev/null +++ b/sdk/resourcemanager/voiceservices/armvoiceservices/LICENSE.txt @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Microsoft Corporation. All rights reserved. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/sdk/resourcemanager/voiceservices/armvoiceservices/README.md b/sdk/resourcemanager/voiceservices/armvoiceservices/README.md new file mode 100644 index 000000000000..d52770fd1d93 --- /dev/null +++ b/sdk/resourcemanager/voiceservices/armvoiceservices/README.md @@ -0,0 +1,77 @@ +# Azure VoiceServices Module for Go + +[![PkgGoDev](https://pkg.go.dev/badge/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/voiceservices/armvoiceservices)](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/voiceservices/armvoiceservices) + +The `armvoiceservices` module provides operations for working with Azure VoiceServices. + +[Source code](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/resourcemanager/voiceservices/armvoiceservices) + +# Getting started + +## Prerequisites + +- an [Azure subscription](https://azure.microsoft.com/free/) +- Go 1.18 or above (You could download and install the latest version of Go from [here](https://go.dev/doc/install). It will replace the existing Go on your machine. If you want to install multiple Go versions on the same machine, you could refer this [doc](https://go.dev/doc/manage-install).) + +## Install the package + +This project uses [Go modules](https://github.com/golang/go/wiki/Modules) for versioning and dependency management. + +Install the Azure VoiceServices module: + +```sh +go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/voiceservices/armvoiceservices +``` + +## Authorization + +When creating a client, you will need to provide a credential for authenticating with Azure VoiceServices. The `azidentity` module provides facilities for various ways of authenticating with Azure including client/secret, certificate, managed identity, and more. + +```go +cred, err := azidentity.NewDefaultAzureCredential(nil) +``` + +For more information on authentication, please see the documentation for `azidentity` at [pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azidentity](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azidentity). + +## Clients + +Azure VoiceServices modules consist of one or more clients. A client groups a set of related APIs, providing access to its functionality within the specified subscription. Create one or more clients to access the APIs you require using your credential. + +```go +client, err := armvoiceservices.NewTestLinesClient(, cred, nil) +``` + +You can use `ClientOptions` in package `github.com/Azure/azure-sdk-for-go/sdk/azcore/arm` to set endpoint to connect with public and sovereign clouds as well as Azure Stack. For more information, please see the documentation for `azcore` at [pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azcore](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azcore). + +```go +options := arm.ClientOptions{ + ClientOptions: azcore.ClientOptions { + Cloud: cloud.AzureChina, + }, +} +client, err := armvoiceservices.NewTestLinesClient(, cred, &options) +``` + +## Provide Feedback + +If you encounter bugs or have suggestions, please +[open an issue](https://github.com/Azure/azure-sdk-for-go/issues) and assign the `VoiceServices` label. + +# Contributing + +This project welcomes contributions and suggestions. Most contributions require +you to agree to a Contributor License Agreement (CLA) declaring that you have +the right to, and actually do, grant us the rights to use your contribution. +For details, visit [https://cla.microsoft.com](https://cla.microsoft.com). + +When you submit a pull request, a CLA-bot will automatically determine whether +you need to provide a CLA and decorate the PR appropriately (e.g., label, +comment). Simply follow the instructions provided by the bot. You will only +need to do this once across all repos using our CLA. + +This project has adopted the +[Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). +For more information, see the +[Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) +or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any +additional questions or comments. \ No newline at end of file diff --git a/sdk/resourcemanager/voiceservices/armvoiceservices/autorest.md b/sdk/resourcemanager/voiceservices/armvoiceservices/autorest.md new file mode 100644 index 000000000000..34d37ae2f07f --- /dev/null +++ b/sdk/resourcemanager/voiceservices/armvoiceservices/autorest.md @@ -0,0 +1,13 @@ +### AutoRest Configuration + +> see https://aka.ms/autorest + +``` yaml +azure-arm: true +require: +- https://github.com/Azure/azure-rest-api-specs/blob/7a7b696c2c73218fbca91c7c3bb625ee0f0bbea0/specification/voiceservices/resource-manager/readme.md +- https://github.com/Azure/azure-rest-api-specs/blob/7a7b696c2c73218fbca91c7c3bb625ee0f0bbea0/specification/voiceservices/resource-manager/readme.go.md +license-header: MICROSOFT_MIT_NO_VERSION +module-version: 0.1.0 +tag: package-2022-12-01-preview +``` \ No newline at end of file diff --git a/sdk/resourcemanager/voiceservices/armvoiceservices/build.go b/sdk/resourcemanager/voiceservices/armvoiceservices/build.go new file mode 100644 index 000000000000..a7d37ada2b55 --- /dev/null +++ b/sdk/resourcemanager/voiceservices/armvoiceservices/build.go @@ -0,0 +1,7 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// 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 -alwaysSetBodyParamRequired -removeUnreferencedTypes resourcemanager/voiceservices/armvoiceservices + +package armvoiceservices diff --git a/sdk/resourcemanager/voiceservices/armvoiceservices/ci.yml b/sdk/resourcemanager/voiceservices/armvoiceservices/ci.yml new file mode 100644 index 000000000000..66666b955640 --- /dev/null +++ b/sdk/resourcemanager/voiceservices/armvoiceservices/ci.yml @@ -0,0 +1,28 @@ +# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. +trigger: + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/resourcemanager/voiceservices/armvoiceservices/ + +pr: + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/resourcemanager/voiceservices/armvoiceservices/ + +stages: +- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml + parameters: + IncludeRelease: true + ServiceDirectory: 'resourcemanager/voiceservices/armvoiceservices' diff --git a/sdk/resourcemanager/voiceservices/armvoiceservices/communicationsgateways_client.go b/sdk/resourcemanager/voiceservices/armvoiceservices/communicationsgateways_client.go new file mode 100644 index 000000000000..e6545e63be22 --- /dev/null +++ b/sdk/resourcemanager/voiceservices/armvoiceservices/communicationsgateways_client.go @@ -0,0 +1,433 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armvoiceservices + +import ( + "context" + "errors" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "net/http" + "net/url" + "strings" +) + +// CommunicationsGatewaysClient contains the methods for the CommunicationsGateways group. +// Don't use this type directly, use NewCommunicationsGatewaysClient() instead. +type CommunicationsGatewaysClient struct { + host string + subscriptionID string + pl runtime.Pipeline +} + +// NewCommunicationsGatewaysClient creates a new instance of CommunicationsGatewaysClient with the specified values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. +func NewCommunicationsGatewaysClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*CommunicationsGatewaysClient, error) { + if options == nil { + options = &arm.ClientOptions{} + } + ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err + } + client := &CommunicationsGatewaysClient{ + subscriptionID: subscriptionID, + host: ep, + pl: pl, + } + return client, nil +} + +// BeginCreateOrUpdate - Create a CommunicationsGateway +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-12-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - communicationsGatewayName - Unique identifier for this deployment +// - resource - Resource create parameters. +// - options - CommunicationsGatewaysClientBeginCreateOrUpdateOptions contains the optional parameters for the CommunicationsGatewaysClient.BeginCreateOrUpdate +// method. +func (client *CommunicationsGatewaysClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, communicationsGatewayName string, resource CommunicationsGateway, options *CommunicationsGatewaysClientBeginCreateOrUpdateOptions) (*runtime.Poller[CommunicationsGatewaysClientCreateOrUpdateResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.createOrUpdate(ctx, resourceGroupName, communicationsGatewayName, resource, options) + if err != nil { + return nil, err + } + return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[CommunicationsGatewaysClientCreateOrUpdateResponse]{ + FinalStateVia: runtime.FinalStateViaAzureAsyncOp, + }) + } else { + return runtime.NewPollerFromResumeToken[CommunicationsGatewaysClientCreateOrUpdateResponse](options.ResumeToken, client.pl, nil) + } +} + +// CreateOrUpdate - Create a CommunicationsGateway +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-12-01-preview +func (client *CommunicationsGatewaysClient) createOrUpdate(ctx context.Context, resourceGroupName string, communicationsGatewayName string, resource CommunicationsGateway, options *CommunicationsGatewaysClientBeginCreateOrUpdateOptions) (*http.Response, error) { + req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, communicationsGatewayName, resource, options) + if err != nil { + return nil, err + } + resp, err := client.pl.Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusCreated) { + return nil, runtime.NewResponseError(resp) + } + return resp, nil +} + +// createOrUpdateCreateRequest creates the CreateOrUpdate request. +func (client *CommunicationsGatewaysClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, communicationsGatewayName string, resource CommunicationsGateway, options *CommunicationsGatewaysClientBeginCreateOrUpdateOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if communicationsGatewayName == "" { + return nil, errors.New("parameter communicationsGatewayName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{communicationsGatewayName}", url.PathEscape(communicationsGatewayName)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-12-01-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, runtime.MarshalAsJSON(req, resource) +} + +// BeginDelete - Delete a CommunicationsGateway +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-12-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - communicationsGatewayName - Unique identifier for this deployment +// - options - CommunicationsGatewaysClientBeginDeleteOptions contains the optional parameters for the CommunicationsGatewaysClient.BeginDelete +// method. +func (client *CommunicationsGatewaysClient) BeginDelete(ctx context.Context, resourceGroupName string, communicationsGatewayName string, options *CommunicationsGatewaysClientBeginDeleteOptions) (*runtime.Poller[CommunicationsGatewaysClientDeleteResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.deleteOperation(ctx, resourceGroupName, communicationsGatewayName, options) + if err != nil { + return nil, err + } + return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[CommunicationsGatewaysClientDeleteResponse]{ + FinalStateVia: runtime.FinalStateViaAzureAsyncOp, + }) + } else { + return runtime.NewPollerFromResumeToken[CommunicationsGatewaysClientDeleteResponse](options.ResumeToken, client.pl, nil) + } +} + +// Delete - Delete a CommunicationsGateway +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-12-01-preview +func (client *CommunicationsGatewaysClient) deleteOperation(ctx context.Context, resourceGroupName string, communicationsGatewayName string, options *CommunicationsGatewaysClientBeginDeleteOptions) (*http.Response, error) { + req, err := client.deleteCreateRequest(ctx, resourceGroupName, communicationsGatewayName, options) + if err != nil { + return nil, err + } + resp, err := client.pl.Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { + return nil, runtime.NewResponseError(resp) + } + return resp, nil +} + +// deleteCreateRequest creates the Delete request. +func (client *CommunicationsGatewaysClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, communicationsGatewayName string, options *CommunicationsGatewaysClientBeginDeleteOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if communicationsGatewayName == "" { + return nil, errors.New("parameter communicationsGatewayName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{communicationsGatewayName}", url.PathEscape(communicationsGatewayName)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-12-01-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// Get - Get a CommunicationsGateway +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-12-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - communicationsGatewayName - Unique identifier for this deployment +// - options - CommunicationsGatewaysClientGetOptions contains the optional parameters for the CommunicationsGatewaysClient.Get +// method. +func (client *CommunicationsGatewaysClient) Get(ctx context.Context, resourceGroupName string, communicationsGatewayName string, options *CommunicationsGatewaysClientGetOptions) (CommunicationsGatewaysClientGetResponse, error) { + req, err := client.getCreateRequest(ctx, resourceGroupName, communicationsGatewayName, options) + if err != nil { + return CommunicationsGatewaysClientGetResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return CommunicationsGatewaysClientGetResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return CommunicationsGatewaysClientGetResponse{}, runtime.NewResponseError(resp) + } + return client.getHandleResponse(resp) +} + +// getCreateRequest creates the Get request. +func (client *CommunicationsGatewaysClient) getCreateRequest(ctx context.Context, resourceGroupName string, communicationsGatewayName string, options *CommunicationsGatewaysClientGetOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if communicationsGatewayName == "" { + return nil, errors.New("parameter communicationsGatewayName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{communicationsGatewayName}", url.PathEscape(communicationsGatewayName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-12-01-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// getHandleResponse handles the Get response. +func (client *CommunicationsGatewaysClient) getHandleResponse(resp *http.Response) (CommunicationsGatewaysClientGetResponse, error) { + result := CommunicationsGatewaysClientGetResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.CommunicationsGateway); err != nil { + return CommunicationsGatewaysClientGetResponse{}, err + } + return result, nil +} + +// NewListByResourceGroupPager - List CommunicationsGateway resources by resource group +// +// Generated from API version 2022-12-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - options - CommunicationsGatewaysClientListByResourceGroupOptions contains the optional parameters for the CommunicationsGatewaysClient.NewListByResourceGroupPager +// method. +func (client *CommunicationsGatewaysClient) NewListByResourceGroupPager(resourceGroupName string, options *CommunicationsGatewaysClientListByResourceGroupOptions) *runtime.Pager[CommunicationsGatewaysClientListByResourceGroupResponse] { + return runtime.NewPager(runtime.PagingHandler[CommunicationsGatewaysClientListByResourceGroupResponse]{ + More: func(page CommunicationsGatewaysClientListByResourceGroupResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 + }, + Fetcher: func(ctx context.Context, page *CommunicationsGatewaysClientListByResourceGroupResponse) (CommunicationsGatewaysClientListByResourceGroupResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listByResourceGroupCreateRequest(ctx, resourceGroupName, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return CommunicationsGatewaysClientListByResourceGroupResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return CommunicationsGatewaysClientListByResourceGroupResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return CommunicationsGatewaysClientListByResourceGroupResponse{}, runtime.NewResponseError(resp) + } + return client.listByResourceGroupHandleResponse(resp) + }, + }) +} + +// listByResourceGroupCreateRequest creates the ListByResourceGroup request. +func (client *CommunicationsGatewaysClient) listByResourceGroupCreateRequest(ctx context.Context, resourceGroupName string, options *CommunicationsGatewaysClientListByResourceGroupOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-12-01-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listByResourceGroupHandleResponse handles the ListByResourceGroup response. +func (client *CommunicationsGatewaysClient) listByResourceGroupHandleResponse(resp *http.Response) (CommunicationsGatewaysClientListByResourceGroupResponse, error) { + result := CommunicationsGatewaysClientListByResourceGroupResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.CommunicationsGatewayListResult); err != nil { + return CommunicationsGatewaysClientListByResourceGroupResponse{}, err + } + return result, nil +} + +// NewListBySubscriptionPager - List CommunicationsGateway resources by subscription ID +// +// Generated from API version 2022-12-01-preview +// - options - CommunicationsGatewaysClientListBySubscriptionOptions contains the optional parameters for the CommunicationsGatewaysClient.NewListBySubscriptionPager +// method. +func (client *CommunicationsGatewaysClient) NewListBySubscriptionPager(options *CommunicationsGatewaysClientListBySubscriptionOptions) *runtime.Pager[CommunicationsGatewaysClientListBySubscriptionResponse] { + return runtime.NewPager(runtime.PagingHandler[CommunicationsGatewaysClientListBySubscriptionResponse]{ + More: func(page CommunicationsGatewaysClientListBySubscriptionResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 + }, + Fetcher: func(ctx context.Context, page *CommunicationsGatewaysClientListBySubscriptionResponse) (CommunicationsGatewaysClientListBySubscriptionResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listBySubscriptionCreateRequest(ctx, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return CommunicationsGatewaysClientListBySubscriptionResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return CommunicationsGatewaysClientListBySubscriptionResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return CommunicationsGatewaysClientListBySubscriptionResponse{}, runtime.NewResponseError(resp) + } + return client.listBySubscriptionHandleResponse(resp) + }, + }) +} + +// listBySubscriptionCreateRequest creates the ListBySubscription request. +func (client *CommunicationsGatewaysClient) listBySubscriptionCreateRequest(ctx context.Context, options *CommunicationsGatewaysClientListBySubscriptionOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/providers/Microsoft.VoiceServices/communicationsGateways" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-12-01-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listBySubscriptionHandleResponse handles the ListBySubscription response. +func (client *CommunicationsGatewaysClient) listBySubscriptionHandleResponse(resp *http.Response) (CommunicationsGatewaysClientListBySubscriptionResponse, error) { + result := CommunicationsGatewaysClientListBySubscriptionResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.CommunicationsGatewayListResult); err != nil { + return CommunicationsGatewaysClientListBySubscriptionResponse{}, err + } + return result, nil +} + +// Update - Update a CommunicationsGateway +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-12-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - communicationsGatewayName - Unique identifier for this deployment +// - properties - The resource properties to be updated. +// - options - CommunicationsGatewaysClientUpdateOptions contains the optional parameters for the CommunicationsGatewaysClient.Update +// method. +func (client *CommunicationsGatewaysClient) Update(ctx context.Context, resourceGroupName string, communicationsGatewayName string, properties CommunicationsGatewayUpdate, options *CommunicationsGatewaysClientUpdateOptions) (CommunicationsGatewaysClientUpdateResponse, error) { + req, err := client.updateCreateRequest(ctx, resourceGroupName, communicationsGatewayName, properties, options) + if err != nil { + return CommunicationsGatewaysClientUpdateResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return CommunicationsGatewaysClientUpdateResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return CommunicationsGatewaysClientUpdateResponse{}, runtime.NewResponseError(resp) + } + return client.updateHandleResponse(resp) +} + +// updateCreateRequest creates the Update request. +func (client *CommunicationsGatewaysClient) updateCreateRequest(ctx context.Context, resourceGroupName string, communicationsGatewayName string, properties CommunicationsGatewayUpdate, options *CommunicationsGatewaysClientUpdateOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if communicationsGatewayName == "" { + return nil, errors.New("parameter communicationsGatewayName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{communicationsGatewayName}", url.PathEscape(communicationsGatewayName)) + req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-12-01-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, runtime.MarshalAsJSON(req, properties) +} + +// updateHandleResponse handles the Update response. +func (client *CommunicationsGatewaysClient) updateHandleResponse(resp *http.Response) (CommunicationsGatewaysClientUpdateResponse, error) { + result := CommunicationsGatewaysClientUpdateResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.CommunicationsGateway); err != nil { + return CommunicationsGatewaysClientUpdateResponse{}, err + } + return result, nil +} diff --git a/sdk/resourcemanager/voiceservices/armvoiceservices/communicationsgateways_client_example_test.go b/sdk/resourcemanager/voiceservices/armvoiceservices/communicationsgateways_client_example_test.go new file mode 100644 index 000000000000..3adcca69dbfe --- /dev/null +++ b/sdk/resourcemanager/voiceservices/armvoiceservices/communicationsgateways_client_example_test.go @@ -0,0 +1,335 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armvoiceservices_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/voiceservices/armvoiceservices" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7a7b696c2c73218fbca91c7c3bb625ee0f0bbea0/specification/voiceservices/resource-manager/Microsoft.VoiceServices/preview/2022-12-01-preview/examples/CommunicationsGateways_ListBySubscription.json +func ExampleCommunicationsGatewaysClient_NewListBySubscriptionPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armvoiceservices.NewCommunicationsGatewaysClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListBySubscriptionPager(nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.CommunicationsGatewayListResult = armvoiceservices.CommunicationsGatewayListResult{ + // Value: []*armvoiceservices.CommunicationsGateway{ + // { + // Name: to.Ptr("myname"), + // Type: to.Ptr("Microsoft.VoiceService/communicationsGateways"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.VoiceService/communicationsGateways/myname"), + // Location: to.Ptr("useast"), + // Properties: &armvoiceservices.CommunicationsGatewayProperties{ + // Codecs: []*armvoiceservices.TeamsCodecs{ + // to.Ptr(armvoiceservices.TeamsCodecsPCMA)}, + // Connectivity: to.Ptr(armvoiceservices.ConnectivityPublicAddress), + // E911Type: to.Ptr(armvoiceservices.E911TypeStandard), + // Platforms: []*armvoiceservices.CommunicationsPlatform{ + // to.Ptr(armvoiceservices.CommunicationsPlatformOperatorConnect)}, + // ServiceLocations: []*armvoiceservices.ServiceRegionProperties{ + // { + // Name: to.Ptr("useast"), + // PrimaryRegionProperties: &armvoiceservices.PrimaryRegionProperties{ + // OperatorAddresses: []*string{ + // to.Ptr("198.51.100.1")}, + // }, + // }, + // { + // Name: to.Ptr("useast2"), + // PrimaryRegionProperties: &armvoiceservices.PrimaryRegionProperties{ + // OperatorAddresses: []*string{ + // to.Ptr("198.51.100.2")}, + // }, + // }}, + // Status: to.Ptr(armvoiceservices.StatusChangePending), + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7a7b696c2c73218fbca91c7c3bb625ee0f0bbea0/specification/voiceservices/resource-manager/Microsoft.VoiceServices/preview/2022-12-01-preview/examples/CommunicationsGateways_ListByResourceGroup.json +func ExampleCommunicationsGatewaysClient_NewListByResourceGroupPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armvoiceservices.NewCommunicationsGatewaysClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListByResourceGroupPager("testrg", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.CommunicationsGatewayListResult = armvoiceservices.CommunicationsGatewayListResult{ + // Value: []*armvoiceservices.CommunicationsGateway{ + // { + // Name: to.Ptr("myname"), + // Type: to.Ptr("Microsoft.VoiceService/communicationsGateways"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.VoiceService/communicationsGateways/myname"), + // Location: to.Ptr("useast"), + // Properties: &armvoiceservices.CommunicationsGatewayProperties{ + // Codecs: []*armvoiceservices.TeamsCodecs{ + // to.Ptr(armvoiceservices.TeamsCodecsPCMA)}, + // Connectivity: to.Ptr(armvoiceservices.ConnectivityPublicAddress), + // E911Type: to.Ptr(armvoiceservices.E911TypeStandard), + // Platforms: []*armvoiceservices.CommunicationsPlatform{ + // to.Ptr(armvoiceservices.CommunicationsPlatformOperatorConnect)}, + // ServiceLocations: []*armvoiceservices.ServiceRegionProperties{ + // { + // Name: to.Ptr("useast"), + // PrimaryRegionProperties: &armvoiceservices.PrimaryRegionProperties{ + // OperatorAddresses: []*string{ + // to.Ptr("198.51.100.1")}, + // }, + // }, + // { + // Name: to.Ptr("useast2"), + // PrimaryRegionProperties: &armvoiceservices.PrimaryRegionProperties{ + // OperatorAddresses: []*string{ + // to.Ptr("198.51.100.2")}, + // }, + // }}, + // Status: to.Ptr(armvoiceservices.StatusChangePending), + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7a7b696c2c73218fbca91c7c3bb625ee0f0bbea0/specification/voiceservices/resource-manager/Microsoft.VoiceServices/preview/2022-12-01-preview/examples/CommunicationsGateways_Get.json +func ExampleCommunicationsGatewaysClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armvoiceservices.NewCommunicationsGatewaysClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "testrg", "myname", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.CommunicationsGateway = armvoiceservices.CommunicationsGateway{ + // Name: to.Ptr("myname"), + // Type: to.Ptr("Microsoft.VoiceService/communicationsGateways"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.VoiceService/communicationsGateways/myname"), + // Location: to.Ptr("useast"), + // Properties: &armvoiceservices.CommunicationsGatewayProperties{ + // Codecs: []*armvoiceservices.TeamsCodecs{ + // to.Ptr(armvoiceservices.TeamsCodecsPCMA)}, + // Connectivity: to.Ptr(armvoiceservices.ConnectivityPublicAddress), + // E911Type: to.Ptr(armvoiceservices.E911TypeStandard), + // Platforms: []*armvoiceservices.CommunicationsPlatform{ + // to.Ptr(armvoiceservices.CommunicationsPlatformOperatorConnect)}, + // ServiceLocations: []*armvoiceservices.ServiceRegionProperties{ + // { + // Name: to.Ptr("useast"), + // PrimaryRegionProperties: &armvoiceservices.PrimaryRegionProperties{ + // OperatorAddresses: []*string{ + // to.Ptr("198.51.100.1")}, + // }, + // }, + // { + // Name: to.Ptr("useast2"), + // PrimaryRegionProperties: &armvoiceservices.PrimaryRegionProperties{ + // OperatorAddresses: []*string{ + // to.Ptr("198.51.100.2")}, + // }, + // }}, + // Status: to.Ptr(armvoiceservices.StatusChangePending), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7a7b696c2c73218fbca91c7c3bb625ee0f0bbea0/specification/voiceservices/resource-manager/Microsoft.VoiceServices/preview/2022-12-01-preview/examples/CommunicationsGateways_CreateOrUpdate.json +func ExampleCommunicationsGatewaysClient_BeginCreateOrUpdate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armvoiceservices.NewCommunicationsGatewaysClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreateOrUpdate(ctx, "testrg", "myname", armvoiceservices.CommunicationsGateway{ + Location: to.Ptr("useast"), + Properties: &armvoiceservices.CommunicationsGatewayProperties{ + Codecs: []*armvoiceservices.TeamsCodecs{ + to.Ptr(armvoiceservices.TeamsCodecsPCMA)}, + Connectivity: to.Ptr(armvoiceservices.ConnectivityPublicAddress), + E911Type: to.Ptr(armvoiceservices.E911TypeStandard), + Platforms: []*armvoiceservices.CommunicationsPlatform{ + to.Ptr(armvoiceservices.CommunicationsPlatformOperatorConnect)}, + ServiceLocations: []*armvoiceservices.ServiceRegionProperties{ + { + Name: to.Ptr("useast"), + PrimaryRegionProperties: &armvoiceservices.PrimaryRegionProperties{ + OperatorAddresses: []*string{ + to.Ptr("198.51.100.1")}, + }, + }, + { + Name: to.Ptr("useast2"), + PrimaryRegionProperties: &armvoiceservices.PrimaryRegionProperties{ + OperatorAddresses: []*string{ + to.Ptr("198.51.100.2")}, + }, + }}, + }, + }, 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.CommunicationsGateway = armvoiceservices.CommunicationsGateway{ + // Name: to.Ptr("myname"), + // Type: to.Ptr("Microsoft.Voiceservice/communicationsGateways"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.VoiceService/communicationsGateway/myname"), + // Location: to.Ptr("useast"), + // Properties: &armvoiceservices.CommunicationsGatewayProperties{ + // Codecs: []*armvoiceservices.TeamsCodecs{ + // to.Ptr(armvoiceservices.TeamsCodecsPCMA)}, + // Connectivity: to.Ptr(armvoiceservices.ConnectivityPublicAddress), + // E911Type: to.Ptr(armvoiceservices.E911TypeStandard), + // Platforms: []*armvoiceservices.CommunicationsPlatform{ + // to.Ptr(armvoiceservices.CommunicationsPlatformOperatorConnect)}, + // ServiceLocations: []*armvoiceservices.ServiceRegionProperties{ + // { + // Name: to.Ptr("useast"), + // PrimaryRegionProperties: &armvoiceservices.PrimaryRegionProperties{ + // OperatorAddresses: []*string{ + // to.Ptr("198.51.100.1")}, + // }, + // }, + // { + // Name: to.Ptr("useast2"), + // PrimaryRegionProperties: &armvoiceservices.PrimaryRegionProperties{ + // OperatorAddresses: []*string{ + // to.Ptr("198.51.100.2")}, + // }, + // }}, + // Status: to.Ptr(armvoiceservices.StatusChangePending), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7a7b696c2c73218fbca91c7c3bb625ee0f0bbea0/specification/voiceservices/resource-manager/Microsoft.VoiceServices/preview/2022-12-01-preview/examples/CommunicationsGateways_Delete.json +func ExampleCommunicationsGatewaysClient_BeginDelete() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armvoiceservices.NewCommunicationsGatewaysClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginDelete(ctx, "testrg", "myname", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + _, err = poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7a7b696c2c73218fbca91c7c3bb625ee0f0bbea0/specification/voiceservices/resource-manager/Microsoft.VoiceServices/preview/2022-12-01-preview/examples/CommunicationsGateways_Update.json +func ExampleCommunicationsGatewaysClient_Update() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armvoiceservices.NewCommunicationsGatewaysClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Update(ctx, "testrg", "myname", armvoiceservices.CommunicationsGatewayUpdate{}, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.CommunicationsGateway = armvoiceservices.CommunicationsGateway{ + // Name: to.Ptr("myname"), + // Type: to.Ptr("Microsoft.Voiceservice/communicationsGateways"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.VoiceService/communicationsGateway/myname"), + // Location: to.Ptr("useast"), + // Properties: &armvoiceservices.CommunicationsGatewayProperties{ + // Codecs: []*armvoiceservices.TeamsCodecs{ + // to.Ptr(armvoiceservices.TeamsCodecsPCMA)}, + // Connectivity: to.Ptr(armvoiceservices.ConnectivityPublicAddress), + // E911Type: to.Ptr(armvoiceservices.E911TypeStandard), + // Platforms: []*armvoiceservices.CommunicationsPlatform{ + // to.Ptr(armvoiceservices.CommunicationsPlatformOperatorConnect)}, + // ServiceLocations: []*armvoiceservices.ServiceRegionProperties{ + // { + // Name: to.Ptr("useast"), + // PrimaryRegionProperties: &armvoiceservices.PrimaryRegionProperties{ + // OperatorAddresses: []*string{ + // to.Ptr("198.51.100.1")}, + // }, + // }, + // { + // Name: to.Ptr("useast2"), + // PrimaryRegionProperties: &armvoiceservices.PrimaryRegionProperties{ + // OperatorAddresses: []*string{ + // to.Ptr("198.51.100.2")}, + // }, + // }}, + // Status: to.Ptr(armvoiceservices.StatusChangePending), + // }, + // } +} diff --git a/sdk/resourcemanager/voiceservices/armvoiceservices/constants.go b/sdk/resourcemanager/voiceservices/armvoiceservices/constants.go new file mode 100644 index 000000000000..54cd81d3100c --- /dev/null +++ b/sdk/resourcemanager/voiceservices/armvoiceservices/constants.go @@ -0,0 +1,195 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armvoiceservices + +const ( + moduleName = "armvoiceservices" + moduleVersion = "v0.1.0" +) + +// ActionType - Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. +type ActionType string + +const ( + ActionTypeInternal ActionType = "Internal" +) + +// PossibleActionTypeValues returns the possible values for the ActionType const type. +func PossibleActionTypeValues() []ActionType { + return []ActionType{ + ActionTypeInternal, + } +} + +// CommunicationsPlatform - Available platform types. +type CommunicationsPlatform string + +const ( + CommunicationsPlatformOperatorConnect CommunicationsPlatform = "OperatorConnect" + CommunicationsPlatformTeamsPhoneMobile CommunicationsPlatform = "TeamsPhoneMobile" +) + +// PossibleCommunicationsPlatformValues returns the possible values for the CommunicationsPlatform const type. +func PossibleCommunicationsPlatformValues() []CommunicationsPlatform { + return []CommunicationsPlatform{ + CommunicationsPlatformOperatorConnect, + CommunicationsPlatformTeamsPhoneMobile, + } +} + +// Connectivity - How this deployment connects back to the operator network +type Connectivity string + +const ( + // ConnectivityPublicAddress - This deployment connects to the operator network using a Public IP address, e.g. when using + // MAPS + ConnectivityPublicAddress Connectivity = "PublicAddress" +) + +// PossibleConnectivityValues returns the possible values for the Connectivity const type. +func PossibleConnectivityValues() []Connectivity { + return []Connectivity{ + ConnectivityPublicAddress, + } +} + +// CreatedByType - The type of identity that created the resource. +type CreatedByType string + +const ( + CreatedByTypeApplication CreatedByType = "Application" + CreatedByTypeKey CreatedByType = "Key" + CreatedByTypeManagedIdentity CreatedByType = "ManagedIdentity" + CreatedByTypeUser CreatedByType = "User" +) + +// PossibleCreatedByTypeValues returns the possible values for the CreatedByType const type. +func PossibleCreatedByTypeValues() []CreatedByType { + return []CreatedByType{ + CreatedByTypeApplication, + CreatedByTypeKey, + CreatedByTypeManagedIdentity, + CreatedByTypeUser, + } +} + +// E911Type - The method for terminating emergency calls to the PSTN. +type E911Type string + +const ( + // E911TypeDirectToEsrp - Emergency calls are routed directly to the ESRP + E911TypeDirectToEsrp E911Type = "DirectToEsrp" + // E911TypeStandard - Emergency calls are not handled different from other calls + E911TypeStandard E911Type = "Standard" +) + +// PossibleE911TypeValues returns the possible values for the E911Type const type. +func PossibleE911TypeValues() []E911Type { + return []E911Type{ + E911TypeDirectToEsrp, + E911TypeStandard, + } +} + +// Origin - The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default +// value is "user,system" +type Origin string + +const ( + OriginSystem Origin = "system" + OriginUser Origin = "user" + OriginUserSystem Origin = "user,system" +) + +// PossibleOriginValues returns the possible values for the Origin const type. +func PossibleOriginValues() []Origin { + return []Origin{ + OriginSystem, + OriginUser, + OriginUserSystem, + } +} + +// ProvisioningState - Provisioning state of the resource. +type ProvisioningState string + +const ( + ProvisioningStateCanceled ProvisioningState = "Canceled" + ProvisioningStateFailed ProvisioningState = "Failed" + ProvisioningStateSucceeded ProvisioningState = "Succeeded" +) + +// PossibleProvisioningStateValues returns the possible values for the ProvisioningState const type. +func PossibleProvisioningStateValues() []ProvisioningState { + return []ProvisioningState{ + ProvisioningStateCanceled, + ProvisioningStateFailed, + ProvisioningStateSucceeded, + } +} + +// Status - The status of the current CommunicationsGateway resource. +type Status string + +const ( + // StatusChangePending - The resource has been created or updated, but the CommunicationsGateway service has not yet been + // updated to reflect the changes. + StatusChangePending Status = "ChangePending" + // StatusComplete - The CommunicationsGateway service is up and running with the parameters specified in the resource. + StatusComplete Status = "Complete" +) + +// PossibleStatusValues returns the possible values for the Status const type. +func PossibleStatusValues() []Status { + return []Status{ + StatusChangePending, + StatusComplete, + } +} + +// TeamsCodecs - The voice codecs expected for communication with Teams. +type TeamsCodecs string + +const ( + TeamsCodecsG722 TeamsCodecs = "G722" + TeamsCodecsG7222 TeamsCodecs = "G722_2" + TeamsCodecsPCMA TeamsCodecs = "PCMA" + TeamsCodecsPCMU TeamsCodecs = "PCMU" + TeamsCodecsSILK16 TeamsCodecs = "SILK_16" + TeamsCodecsSILK8 TeamsCodecs = "SILK_8" +) + +// PossibleTeamsCodecsValues returns the possible values for the TeamsCodecs const type. +func PossibleTeamsCodecsValues() []TeamsCodecs { + return []TeamsCodecs{ + TeamsCodecsG722, + TeamsCodecsG7222, + TeamsCodecsPCMA, + TeamsCodecsPCMU, + TeamsCodecsSILK16, + TeamsCodecsSILK8, + } +} + +// TestLinePurpose - The purpose of the TestLine resource. +type TestLinePurpose string + +const ( + TestLinePurposeManual TestLinePurpose = "Manual" + TestLinePurposeAutomated TestLinePurpose = "Automated" +) + +// PossibleTestLinePurposeValues returns the possible values for the TestLinePurpose const type. +func PossibleTestLinePurposeValues() []TestLinePurpose { + return []TestLinePurpose{ + TestLinePurposeManual, + TestLinePurposeAutomated, + } +} diff --git a/sdk/resourcemanager/voiceservices/armvoiceservices/contacts_client.go b/sdk/resourcemanager/voiceservices/armvoiceservices/contacts_client.go new file mode 100644 index 000000000000..451a824af9e1 --- /dev/null +++ b/sdk/resourcemanager/voiceservices/armvoiceservices/contacts_client.go @@ -0,0 +1,395 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armvoiceservices + +import ( + "context" + "errors" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "net/http" + "net/url" + "strings" +) + +// ContactsClient contains the methods for the Contacts group. +// Don't use this type directly, use NewContactsClient() instead. +type ContactsClient struct { + host string + subscriptionID string + pl runtime.Pipeline +} + +// NewContactsClient creates a new instance of ContactsClient with the specified values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. +func NewContactsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ContactsClient, error) { + if options == nil { + options = &arm.ClientOptions{} + } + ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err + } + client := &ContactsClient{ + subscriptionID: subscriptionID, + host: ep, + pl: pl, + } + return client, nil +} + +// BeginCreateOrUpdate - Create a Contact +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-12-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - communicationsGatewayName - Unique identifier for this deployment +// - contactName - Unique identifier for this contact +// - resource - Resource create parameters. +// - options - ContactsClientBeginCreateOrUpdateOptions contains the optional parameters for the ContactsClient.BeginCreateOrUpdate +// method. +func (client *ContactsClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, communicationsGatewayName string, contactName string, resource Contact, options *ContactsClientBeginCreateOrUpdateOptions) (*runtime.Poller[ContactsClientCreateOrUpdateResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.createOrUpdate(ctx, resourceGroupName, communicationsGatewayName, contactName, resource, options) + if err != nil { + return nil, err + } + return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[ContactsClientCreateOrUpdateResponse]{ + FinalStateVia: runtime.FinalStateViaAzureAsyncOp, + }) + } else { + return runtime.NewPollerFromResumeToken[ContactsClientCreateOrUpdateResponse](options.ResumeToken, client.pl, nil) + } +} + +// CreateOrUpdate - Create a Contact +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-12-01-preview +func (client *ContactsClient) createOrUpdate(ctx context.Context, resourceGroupName string, communicationsGatewayName string, contactName string, resource Contact, options *ContactsClientBeginCreateOrUpdateOptions) (*http.Response, error) { + req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, communicationsGatewayName, contactName, resource, options) + if err != nil { + return nil, err + } + resp, err := client.pl.Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusCreated) { + return nil, runtime.NewResponseError(resp) + } + return resp, nil +} + +// createOrUpdateCreateRequest creates the CreateOrUpdate request. +func (client *ContactsClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, communicationsGatewayName string, contactName string, resource Contact, options *ContactsClientBeginCreateOrUpdateOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName}/contacts/{contactName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if communicationsGatewayName == "" { + return nil, errors.New("parameter communicationsGatewayName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{communicationsGatewayName}", url.PathEscape(communicationsGatewayName)) + if contactName == "" { + return nil, errors.New("parameter contactName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{contactName}", url.PathEscape(contactName)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-12-01-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, runtime.MarshalAsJSON(req, resource) +} + +// BeginDelete - Delete a Contact +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-12-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - communicationsGatewayName - Unique identifier for this deployment +// - contactName - Unique identifier for this contact +// - options - ContactsClientBeginDeleteOptions contains the optional parameters for the ContactsClient.BeginDelete method. +func (client *ContactsClient) BeginDelete(ctx context.Context, resourceGroupName string, communicationsGatewayName string, contactName string, options *ContactsClientBeginDeleteOptions) (*runtime.Poller[ContactsClientDeleteResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.deleteOperation(ctx, resourceGroupName, communicationsGatewayName, contactName, options) + if err != nil { + return nil, err + } + return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[ContactsClientDeleteResponse]{ + FinalStateVia: runtime.FinalStateViaAzureAsyncOp, + }) + } else { + return runtime.NewPollerFromResumeToken[ContactsClientDeleteResponse](options.ResumeToken, client.pl, nil) + } +} + +// Delete - Delete a Contact +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-12-01-preview +func (client *ContactsClient) deleteOperation(ctx context.Context, resourceGroupName string, communicationsGatewayName string, contactName string, options *ContactsClientBeginDeleteOptions) (*http.Response, error) { + req, err := client.deleteCreateRequest(ctx, resourceGroupName, communicationsGatewayName, contactName, options) + if err != nil { + return nil, err + } + resp, err := client.pl.Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { + return nil, runtime.NewResponseError(resp) + } + return resp, nil +} + +// deleteCreateRequest creates the Delete request. +func (client *ContactsClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, communicationsGatewayName string, contactName string, options *ContactsClientBeginDeleteOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName}/contacts/{contactName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if communicationsGatewayName == "" { + return nil, errors.New("parameter communicationsGatewayName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{communicationsGatewayName}", url.PathEscape(communicationsGatewayName)) + if contactName == "" { + return nil, errors.New("parameter contactName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{contactName}", url.PathEscape(contactName)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-12-01-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// Get - Get a Contact +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-12-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - communicationsGatewayName - Unique identifier for this deployment +// - contactName - Unique identifier for this contact +// - options - ContactsClientGetOptions contains the optional parameters for the ContactsClient.Get method. +func (client *ContactsClient) Get(ctx context.Context, resourceGroupName string, communicationsGatewayName string, contactName string, options *ContactsClientGetOptions) (ContactsClientGetResponse, error) { + req, err := client.getCreateRequest(ctx, resourceGroupName, communicationsGatewayName, contactName, options) + if err != nil { + return ContactsClientGetResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return ContactsClientGetResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return ContactsClientGetResponse{}, runtime.NewResponseError(resp) + } + return client.getHandleResponse(resp) +} + +// getCreateRequest creates the Get request. +func (client *ContactsClient) getCreateRequest(ctx context.Context, resourceGroupName string, communicationsGatewayName string, contactName string, options *ContactsClientGetOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName}/contacts/{contactName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if communicationsGatewayName == "" { + return nil, errors.New("parameter communicationsGatewayName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{communicationsGatewayName}", url.PathEscape(communicationsGatewayName)) + if contactName == "" { + return nil, errors.New("parameter contactName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{contactName}", url.PathEscape(contactName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-12-01-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// getHandleResponse handles the Get response. +func (client *ContactsClient) getHandleResponse(resp *http.Response) (ContactsClientGetResponse, error) { + result := ContactsClientGetResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.Contact); err != nil { + return ContactsClientGetResponse{}, err + } + return result, nil +} + +// NewListByCommunicationsGatewayPager - List Contact resources by CommunicationsGateway +// +// Generated from API version 2022-12-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - communicationsGatewayName - Unique identifier for this deployment +// - options - ContactsClientListByCommunicationsGatewayOptions contains the optional parameters for the ContactsClient.NewListByCommunicationsGatewayPager +// method. +func (client *ContactsClient) NewListByCommunicationsGatewayPager(resourceGroupName string, communicationsGatewayName string, options *ContactsClientListByCommunicationsGatewayOptions) *runtime.Pager[ContactsClientListByCommunicationsGatewayResponse] { + return runtime.NewPager(runtime.PagingHandler[ContactsClientListByCommunicationsGatewayResponse]{ + More: func(page ContactsClientListByCommunicationsGatewayResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 + }, + Fetcher: func(ctx context.Context, page *ContactsClientListByCommunicationsGatewayResponse) (ContactsClientListByCommunicationsGatewayResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listByCommunicationsGatewayCreateRequest(ctx, resourceGroupName, communicationsGatewayName, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return ContactsClientListByCommunicationsGatewayResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return ContactsClientListByCommunicationsGatewayResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return ContactsClientListByCommunicationsGatewayResponse{}, runtime.NewResponseError(resp) + } + return client.listByCommunicationsGatewayHandleResponse(resp) + }, + }) +} + +// listByCommunicationsGatewayCreateRequest creates the ListByCommunicationsGateway request. +func (client *ContactsClient) listByCommunicationsGatewayCreateRequest(ctx context.Context, resourceGroupName string, communicationsGatewayName string, options *ContactsClientListByCommunicationsGatewayOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName}/contacts" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if communicationsGatewayName == "" { + return nil, errors.New("parameter communicationsGatewayName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{communicationsGatewayName}", url.PathEscape(communicationsGatewayName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-12-01-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listByCommunicationsGatewayHandleResponse handles the ListByCommunicationsGateway response. +func (client *ContactsClient) listByCommunicationsGatewayHandleResponse(resp *http.Response) (ContactsClientListByCommunicationsGatewayResponse, error) { + result := ContactsClientListByCommunicationsGatewayResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.ContactListResult); err != nil { + return ContactsClientListByCommunicationsGatewayResponse{}, err + } + return result, nil +} + +// Update - Update a Contact +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-12-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - communicationsGatewayName - Unique identifier for this deployment +// - contactName - Unique identifier for this contact +// - properties - The resource properties to be updated. +// - options - ContactsClientUpdateOptions contains the optional parameters for the ContactsClient.Update method. +func (client *ContactsClient) Update(ctx context.Context, resourceGroupName string, communicationsGatewayName string, contactName string, properties ContactUpdate, options *ContactsClientUpdateOptions) (ContactsClientUpdateResponse, error) { + req, err := client.updateCreateRequest(ctx, resourceGroupName, communicationsGatewayName, contactName, properties, options) + if err != nil { + return ContactsClientUpdateResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return ContactsClientUpdateResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return ContactsClientUpdateResponse{}, runtime.NewResponseError(resp) + } + return client.updateHandleResponse(resp) +} + +// updateCreateRequest creates the Update request. +func (client *ContactsClient) updateCreateRequest(ctx context.Context, resourceGroupName string, communicationsGatewayName string, contactName string, properties ContactUpdate, options *ContactsClientUpdateOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName}/contacts/{contactName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if communicationsGatewayName == "" { + return nil, errors.New("parameter communicationsGatewayName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{communicationsGatewayName}", url.PathEscape(communicationsGatewayName)) + if contactName == "" { + return nil, errors.New("parameter contactName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{contactName}", url.PathEscape(contactName)) + req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-12-01-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, runtime.MarshalAsJSON(req, properties) +} + +// updateHandleResponse handles the Update response. +func (client *ContactsClient) updateHandleResponse(resp *http.Response) (ContactsClientUpdateResponse, error) { + result := ContactsClientUpdateResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.Contact); err != nil { + return ContactsClientUpdateResponse{}, err + } + return result, nil +} diff --git a/sdk/resourcemanager/voiceservices/armvoiceservices/contacts_client_example_test.go b/sdk/resourcemanager/voiceservices/armvoiceservices/contacts_client_example_test.go new file mode 100644 index 000000000000..5a24aa4d0622 --- /dev/null +++ b/sdk/resourcemanager/voiceservices/armvoiceservices/contacts_client_example_test.go @@ -0,0 +1,188 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armvoiceservices_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/voiceservices/armvoiceservices" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7a7b696c2c73218fbca91c7c3bb625ee0f0bbea0/specification/voiceservices/resource-manager/Microsoft.VoiceServices/preview/2022-12-01-preview/examples/Contacts_ListByCommunicationsGateway.json +func ExampleContactsClient_NewListByCommunicationsGatewayPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armvoiceservices.NewContactsClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListByCommunicationsGatewayPager("testrg", "myname", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.ContactListResult = armvoiceservices.ContactListResult{ + // Value: []*armvoiceservices.Contact{ + // { + // Name: to.Ptr("myline"), + // Type: to.Ptr("Microsoft.Voiceservice/communicationsGateways/Contacts"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.VoiceService/communicationsGateway/myname/Contacts/name2"), + // Location: to.Ptr("useast"), + // Properties: &armvoiceservices.ContactProperties{ + // ContactName: to.Ptr("John Smith"), + // Email: to.Ptr("johnsmith@example.com"), + // PhoneNumber: to.Ptr("+1-555-1234"), + // Role: to.Ptr("Network Manager"), + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7a7b696c2c73218fbca91c7c3bb625ee0f0bbea0/specification/voiceservices/resource-manager/Microsoft.VoiceServices/preview/2022-12-01-preview/examples/Contacts_Get.json +func ExampleContactsClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armvoiceservices.NewContactsClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "testrg", "myname", "name2", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.Contact = armvoiceservices.Contact{ + // Name: to.Ptr("name2"), + // Type: to.Ptr("Microsoft.Voiceservice/communicationsGateways/contacts"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.VoiceService/communicationsGateway/myname/Contacts/name2"), + // Location: to.Ptr("useast"), + // Properties: &armvoiceservices.ContactProperties{ + // ContactName: to.Ptr("John Smith"), + // Email: to.Ptr("johnsmith@example.com"), + // PhoneNumber: to.Ptr("+1-555-1234"), + // Role: to.Ptr("Network Manager"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7a7b696c2c73218fbca91c7c3bb625ee0f0bbea0/specification/voiceservices/resource-manager/Microsoft.VoiceServices/preview/2022-12-01-preview/examples/Contacts_CreateOrUpdate.json +func ExampleContactsClient_BeginCreateOrUpdate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armvoiceservices.NewContactsClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreateOrUpdate(ctx, "testrg", "myname", "name2", armvoiceservices.Contact{ + Location: to.Ptr("useast"), + Properties: &armvoiceservices.ContactProperties{ + ContactName: to.Ptr("John Smith"), + Email: to.Ptr("johnsmith@example.com"), + PhoneNumber: to.Ptr("+1-555-1234"), + Role: to.Ptr("Network Manager"), + }, + }, 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.Contact = armvoiceservices.Contact{ + // Name: to.Ptr("name2"), + // Type: to.Ptr("Microsoft.Voiceservice/communicationsGateways/contacts"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.VoiceService/communicationsGateway/myname/contacts/name2"), + // Location: to.Ptr("useast"), + // Properties: &armvoiceservices.ContactProperties{ + // ContactName: to.Ptr("John Smith"), + // Email: to.Ptr("johnsmith@example.com"), + // PhoneNumber: to.Ptr("+1-555-1234"), + // Role: to.Ptr("Network Manager"), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7a7b696c2c73218fbca91c7c3bb625ee0f0bbea0/specification/voiceservices/resource-manager/Microsoft.VoiceServices/preview/2022-12-01-preview/examples/Contacts_Delete.json +func ExampleContactsClient_BeginDelete() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armvoiceservices.NewContactsClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginDelete(ctx, "testrg", "myname", "myline", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + _, err = poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7a7b696c2c73218fbca91c7c3bb625ee0f0bbea0/specification/voiceservices/resource-manager/Microsoft.VoiceServices/preview/2022-12-01-preview/examples/Contacts_Update.json +func ExampleContactsClient_Update() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armvoiceservices.NewContactsClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Update(ctx, "testrg", "myname", "name2", armvoiceservices.ContactUpdate{}, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.Contact = armvoiceservices.Contact{ + // Name: to.Ptr("name2"), + // Type: to.Ptr("Microsoft.Voiceservice/communicationsGateways/contacts"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.VoiceService/communicationsGateway/myname/Contacts/name2"), + // Location: to.Ptr("useast"), + // Properties: &armvoiceservices.ContactProperties{ + // ContactName: to.Ptr("John Smith"), + // Email: to.Ptr("johnsmith@example.com"), + // PhoneNumber: to.Ptr("+1-555-1234"), + // Role: to.Ptr("Network Manager"), + // }, + // } +} diff --git a/sdk/resourcemanager/voiceservices/armvoiceservices/go.mod b/sdk/resourcemanager/voiceservices/armvoiceservices/go.mod new file mode 100644 index 000000000000..d0a48e7e22e8 --- /dev/null +++ b/sdk/resourcemanager/voiceservices/armvoiceservices/go.mod @@ -0,0 +1,21 @@ +module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/voiceservices/armvoiceservices + +go 1.18 + +require ( + github.com/Azure/azure-sdk-for-go/sdk/azcore v1.0.0 + github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.1 +) + +require ( + github.com/Azure/azure-sdk-for-go/sdk/internal v1.0.0 // indirect + github.com/AzureAD/microsoft-authentication-library-for-go v0.8.1 // indirect + github.com/golang-jwt/jwt/v4 v4.4.2 // 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-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/voiceservices/armvoiceservices/go.sum b/sdk/resourcemanager/voiceservices/armvoiceservices/go.sum new file mode 100644 index 000000000000..67cfef6bdf6e --- /dev/null +++ b/sdk/resourcemanager/voiceservices/armvoiceservices/go.sum @@ -0,0 +1,30 @@ +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.2.1 h1:T8quHYlUGyb/oqtSTwqlCr1ilJHrDv+ZtpSfo+hm1BU= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.1/go.mod h1:gLa1CL2RNE4s7M3yopJ/p0iq5DdY6Yv5ZUt9MTRZOQM= +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.8.1 h1:oPdPEZFSbl7oSPEAIPMPBMUmiL+mqgzBJwM/9qYcwNg= +github.com/AzureAD/microsoft-authentication-library-for-go v0.8.1/go.mod h1:4qFor3D/HDsvBME35Xy9rwW9DecL+M2sNw1ybjPtwA0= +github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= +github.com/dnaeon/go-vcr v1.1.0 h1:ReYa/UBrRyQdant9B4fNHGoCNKw6qh6P0fsdGmZpR7c= +github.com/golang-jwt/jwt/v4 v4.4.2 h1:rcc4lwaZgFMCZ5jxF9ABolDcIHdBytAFgqFPbSJQAYs= +github.com/golang-jwt/jwt/v4 v4.4.2/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= +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/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/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= +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-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= +gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= +gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo= diff --git a/sdk/resourcemanager/voiceservices/armvoiceservices/models.go b/sdk/resourcemanager/voiceservices/armvoiceservices/models.go new file mode 100644 index 000000000000..db75522fad06 --- /dev/null +++ b/sdk/resourcemanager/voiceservices/armvoiceservices/models.go @@ -0,0 +1,373 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armvoiceservices + +import "time" + +// CommunicationsGateway - A CommunicationsGateway resource +type CommunicationsGateway struct { + // REQUIRED; The geo-location where the resource lives + Location *string `json:"location,omitempty"` + + // The resource-specific properties for this resource. + Properties *CommunicationsGatewayProperties `json:"properties,omitempty"` + + // Resource tags. + Tags map[string]*string `json:"tags,omitempty"` + + // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string `json:"id,omitempty" azure:"ro"` + + // READ-ONLY; The name of the resource + Name *string `json:"name,omitempty" azure:"ro"` + + // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. + SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + + // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string `json:"type,omitempty" azure:"ro"` +} + +// CommunicationsGatewayListResult - The response of a CommunicationsGateway list operation. +type CommunicationsGatewayListResult struct { + // REQUIRED; The CommunicationsGateway items on this page + Value []*CommunicationsGateway `json:"value,omitempty"` + + // The link to the next page of items + NextLink *string `json:"nextLink,omitempty"` +} + +// CommunicationsGatewayProperties - Details of the CommunicationsGateway resource. +type CommunicationsGatewayProperties struct { + // REQUIRED; Voice codecs to support + Codecs []*TeamsCodecs `json:"codecs,omitempty"` + + // REQUIRED; How to connect back to the operator network, e.g. MAPS + Connectivity *Connectivity `json:"connectivity,omitempty"` + + // REQUIRED; How to handle 911 calls + E911Type *E911Type `json:"e911Type,omitempty"` + + // REQUIRED; What platforms to support + Platforms []*CommunicationsPlatform `json:"platforms,omitempty"` + + // REQUIRED; The regions in which to deploy the resources needed for Teams Calling + ServiceLocations []*ServiceRegionProperties `json:"serviceLocations,omitempty"` + + // Details of API bridge functionality, if required + APIBridge any `json:"apiBridge,omitempty"` + + // READ-ONLY; Resource provisioning state. + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` + + // READ-ONLY; The current status of the deployment. + Status *Status `json:"status,omitempty" azure:"ro"` +} + +// CommunicationsGatewayUpdate - The type used for update operations of the CommunicationsGateway. +type CommunicationsGatewayUpdate struct { + // Resource tags. + Tags map[string]*string `json:"tags,omitempty"` +} + +// CommunicationsGatewaysClientBeginCreateOrUpdateOptions contains the optional parameters for the CommunicationsGatewaysClient.BeginCreateOrUpdate +// method. +type CommunicationsGatewaysClientBeginCreateOrUpdateOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// CommunicationsGatewaysClientBeginDeleteOptions contains the optional parameters for the CommunicationsGatewaysClient.BeginDelete +// method. +type CommunicationsGatewaysClientBeginDeleteOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// CommunicationsGatewaysClientGetOptions contains the optional parameters for the CommunicationsGatewaysClient.Get method. +type CommunicationsGatewaysClientGetOptions struct { + // placeholder for future optional parameters +} + +// CommunicationsGatewaysClientListByResourceGroupOptions contains the optional parameters for the CommunicationsGatewaysClient.NewListByResourceGroupPager +// method. +type CommunicationsGatewaysClientListByResourceGroupOptions struct { + // placeholder for future optional parameters +} + +// CommunicationsGatewaysClientListBySubscriptionOptions contains the optional parameters for the CommunicationsGatewaysClient.NewListBySubscriptionPager +// method. +type CommunicationsGatewaysClientListBySubscriptionOptions struct { + // placeholder for future optional parameters +} + +// CommunicationsGatewaysClientUpdateOptions contains the optional parameters for the CommunicationsGatewaysClient.Update +// method. +type CommunicationsGatewaysClientUpdateOptions struct { + // placeholder for future optional parameters +} + +// Contact - A Contact resource +type Contact struct { + // REQUIRED; The geo-location where the resource lives + Location *string `json:"location,omitempty"` + + // The resource-specific properties for this resource. + Properties *ContactProperties `json:"properties,omitempty"` + + // Resource tags. + Tags map[string]*string `json:"tags,omitempty"` + + // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string `json:"id,omitempty" azure:"ro"` + + // READ-ONLY; The name of the resource + Name *string `json:"name,omitempty" azure:"ro"` + + // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. + SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + + // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string `json:"type,omitempty" azure:"ro"` +} + +// ContactListResult - The response of a Contact list operation. +type ContactListResult struct { + // REQUIRED; The Contact items on this page + Value []*Contact `json:"value,omitempty"` + + // The link to the next page of items + NextLink *string `json:"nextLink,omitempty"` +} + +// ContactProperties - Details of the Contact resource. +type ContactProperties struct { + // REQUIRED; Full name of contact + ContactName *string `json:"contactName,omitempty"` + + // REQUIRED; Email address of contact + Email *string `json:"email,omitempty"` + + // REQUIRED; Telephone number of contact + PhoneNumber *string `json:"phoneNumber,omitempty"` + + // REQUIRED; Job title of contact + Role *string `json:"role,omitempty"` + + // READ-ONLY; Resource provisioning state. + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` +} + +// ContactUpdate - The type used for update operations of the Contact. +type ContactUpdate struct { + // Resource tags. + Tags map[string]*string `json:"tags,omitempty"` +} + +// ContactsClientBeginCreateOrUpdateOptions contains the optional parameters for the ContactsClient.BeginCreateOrUpdate method. +type ContactsClientBeginCreateOrUpdateOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// ContactsClientBeginDeleteOptions contains the optional parameters for the ContactsClient.BeginDelete method. +type ContactsClientBeginDeleteOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// ContactsClientGetOptions contains the optional parameters for the ContactsClient.Get method. +type ContactsClientGetOptions struct { + // placeholder for future optional parameters +} + +// ContactsClientListByCommunicationsGatewayOptions contains the optional parameters for the ContactsClient.NewListByCommunicationsGatewayPager +// method. +type ContactsClientListByCommunicationsGatewayOptions struct { + // placeholder for future optional parameters +} + +// ContactsClientUpdateOptions contains the optional parameters for the ContactsClient.Update method. +type ContactsClientUpdateOptions struct { + // placeholder for future optional parameters +} + +// Operation - Details of a REST API operation, returned from the Resource Provider Operations API +type Operation struct { + // Localized display information for this particular operation. + Display *OperationDisplay `json:"display,omitempty"` + + // READ-ONLY; Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. + ActionType *ActionType `json:"actionType,omitempty" azure:"ro"` + + // READ-ONLY; Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for ARM/control-plane + // operations. + IsDataAction *bool `json:"isDataAction,omitempty" azure:"ro"` + + // READ-ONLY; The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", + // "Microsoft.Compute/virtualMachines/capture/action" + Name *string `json:"name,omitempty" azure:"ro"` + + // READ-ONLY; The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default + // value is "user,system" + Origin *Origin `json:"origin,omitempty" azure:"ro"` +} + +// OperationDisplay - Localized display information for this particular operation. +type OperationDisplay struct { + // READ-ONLY; The short, localized friendly description of the operation; suitable for tool tips and detailed views. + Description *string `json:"description,omitempty" azure:"ro"` + + // READ-ONLY; The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual + // Machine", "Restart Virtual Machine". + Operation *string `json:"operation,omitempty" azure:"ro"` + + // READ-ONLY; The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft + // Compute". + Provider *string `json:"provider,omitempty" azure:"ro"` + + // READ-ONLY; The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job + // Schedule Collections". + Resource *string `json:"resource,omitempty" azure:"ro"` +} + +// OperationListResult - A list of REST API operations supported by an Azure Resource Provider. It contains an 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"` + + // READ-ONLY; List of operations supported by the resource provider + Value []*Operation `json:"value,omitempty" azure:"ro"` +} + +// OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method. +type OperationsClientListOptions struct { + // placeholder for future optional parameters +} + +// PrimaryRegionProperties - The configuration used in this region as primary, and other regions as backup. +type PrimaryRegionProperties struct { + // REQUIRED; IP address to use to contact the operator network from this region + OperatorAddresses []*string `json:"operatorAddresses,omitempty"` + + // IP address to use to contact the ESRP from this region + EsrpAddresses []*string `json:"esrpAddresses,omitempty"` +} + +// ServiceRegionProperties - The service region configuration needed for Teams Callings. +type ServiceRegionProperties struct { + // REQUIRED; The name of the region in which the resources needed for Teams Calling will be deployed. + Name *string `json:"name,omitempty"` + + // REQUIRED; The configuration used in this region as primary, and other regions as backup. + PrimaryRegionProperties *PrimaryRegionProperties `json:"primaryRegionProperties,omitempty"` +} + +// 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"` + + // The identity that created the resource. + CreatedBy *string `json:"createdBy,omitempty"` + + // The type of identity that created the resource. + CreatedByType *CreatedByType `json:"createdByType,omitempty"` + + // The timestamp of resource last modification (UTC) + LastModifiedAt *time.Time `json:"lastModifiedAt,omitempty"` + + // The identity that last modified the resource. + LastModifiedBy *string `json:"lastModifiedBy,omitempty"` + + // The type of identity that last modified the resource. + LastModifiedByType *CreatedByType `json:"lastModifiedByType,omitempty"` +} + +// TestLine - A TestLine resource +type TestLine struct { + // REQUIRED; The geo-location where the resource lives + Location *string `json:"location,omitempty"` + + // The resource-specific properties for this resource. + Properties *TestLineProperties `json:"properties,omitempty"` + + // Resource tags. + Tags map[string]*string `json:"tags,omitempty"` + + // READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + ID *string `json:"id,omitempty" azure:"ro"` + + // READ-ONLY; The name of the resource + Name *string `json:"name,omitempty" azure:"ro"` + + // READ-ONLY; Azure Resource Manager metadata containing createdBy and modifiedBy information. + SystemData *SystemData `json:"systemData,omitempty" azure:"ro"` + + // READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + Type *string `json:"type,omitempty" azure:"ro"` +} + +// TestLineListResult - The response of a TestLine list operation. +type TestLineListResult struct { + // REQUIRED; The TestLine items on this page + Value []*TestLine `json:"value,omitempty"` + + // The link to the next page of items + NextLink *string `json:"nextLink,omitempty"` +} + +// TestLineProperties - Details of the TestLine resource. +type TestLineProperties struct { + // REQUIRED; The phone number + PhoneNumber *string `json:"phoneNumber,omitempty"` + + // REQUIRED; Purpose of this test line, e.g. automated or manual testing + Purpose *TestLinePurpose `json:"purpose,omitempty"` + + // READ-ONLY; Resource provisioning state. + ProvisioningState *ProvisioningState `json:"provisioningState,omitempty" azure:"ro"` +} + +// TestLineUpdate - The type used for update operations of the TestLine. +type TestLineUpdate struct { + // Resource tags. + Tags map[string]*string `json:"tags,omitempty"` +} + +// TestLinesClientBeginCreateOrUpdateOptions contains the optional parameters for the TestLinesClient.BeginCreateOrUpdate +// method. +type TestLinesClientBeginCreateOrUpdateOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// TestLinesClientBeginDeleteOptions contains the optional parameters for the TestLinesClient.BeginDelete method. +type TestLinesClientBeginDeleteOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// TestLinesClientGetOptions contains the optional parameters for the TestLinesClient.Get method. +type TestLinesClientGetOptions struct { + // placeholder for future optional parameters +} + +// TestLinesClientListByCommunicationsGatewayOptions contains the optional parameters for the TestLinesClient.NewListByCommunicationsGatewayPager +// method. +type TestLinesClientListByCommunicationsGatewayOptions struct { + // placeholder for future optional parameters +} + +// TestLinesClientUpdateOptions contains the optional parameters for the TestLinesClient.Update method. +type TestLinesClientUpdateOptions struct { + // placeholder for future optional parameters +} diff --git a/sdk/resourcemanager/voiceservices/armvoiceservices/models_serde.go b/sdk/resourcemanager/voiceservices/armvoiceservices/models_serde.go new file mode 100644 index 000000000000..10a20b32b7e2 --- /dev/null +++ b/sdk/resourcemanager/voiceservices/armvoiceservices/models_serde.go @@ -0,0 +1,719 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armvoiceservices + +import ( + "encoding/json" + "fmt" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "reflect" +) + +// MarshalJSON implements the json.Marshaller interface for type CommunicationsGateway. +func (c CommunicationsGateway) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", c.ID) + populate(objectMap, "location", c.Location) + populate(objectMap, "name", c.Name) + populate(objectMap, "properties", c.Properties) + populate(objectMap, "systemData", c.SystemData) + populate(objectMap, "tags", c.Tags) + populate(objectMap, "type", c.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CommunicationsGateway. +func (c *CommunicationsGateway) 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 "id": + err = unpopulate(val, "ID", &c.ID) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &c.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &c.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &c.Properties) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &c.SystemData) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &c.Tags) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &c.Type) + 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 CommunicationsGatewayListResult. +func (c CommunicationsGatewayListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", c.NextLink) + populate(objectMap, "value", c.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CommunicationsGatewayListResult. +func (c *CommunicationsGatewayListResult) 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 "nextLink": + err = unpopulate(val, "NextLink", &c.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &c.Value) + 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 CommunicationsGatewayProperties. +func (c CommunicationsGatewayProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "apiBridge", &c.APIBridge) + populate(objectMap, "codecs", c.Codecs) + populate(objectMap, "connectivity", c.Connectivity) + populate(objectMap, "e911Type", c.E911Type) + populate(objectMap, "platforms", c.Platforms) + populate(objectMap, "provisioningState", c.ProvisioningState) + populate(objectMap, "serviceLocations", c.ServiceLocations) + populate(objectMap, "status", c.Status) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CommunicationsGatewayProperties. +func (c *CommunicationsGatewayProperties) 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 "apiBridge": + err = unpopulate(val, "APIBridge", &c.APIBridge) + delete(rawMsg, key) + case "codecs": + err = unpopulate(val, "Codecs", &c.Codecs) + delete(rawMsg, key) + case "connectivity": + err = unpopulate(val, "Connectivity", &c.Connectivity) + delete(rawMsg, key) + case "e911Type": + err = unpopulate(val, "E911Type", &c.E911Type) + delete(rawMsg, key) + case "platforms": + err = unpopulate(val, "Platforms", &c.Platforms) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &c.ProvisioningState) + delete(rawMsg, key) + case "serviceLocations": + err = unpopulate(val, "ServiceLocations", &c.ServiceLocations) + delete(rawMsg, key) + case "status": + err = unpopulate(val, "Status", &c.Status) + 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 CommunicationsGatewayUpdate. +func (c CommunicationsGatewayUpdate) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "tags", c.Tags) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type CommunicationsGatewayUpdate. +func (c *CommunicationsGatewayUpdate) 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 "tags": + err = unpopulate(val, "Tags", &c.Tags) + 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 Contact. +func (c Contact) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", c.ID) + populate(objectMap, "location", c.Location) + populate(objectMap, "name", c.Name) + populate(objectMap, "properties", c.Properties) + populate(objectMap, "systemData", c.SystemData) + populate(objectMap, "tags", c.Tags) + populate(objectMap, "type", c.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Contact. +func (c *Contact) 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 "id": + err = unpopulate(val, "ID", &c.ID) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &c.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &c.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &c.Properties) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &c.SystemData) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &c.Tags) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &c.Type) + 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 ContactListResult. +func (c ContactListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", c.NextLink) + populate(objectMap, "value", c.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ContactListResult. +func (c *ContactListResult) 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 "nextLink": + err = unpopulate(val, "NextLink", &c.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &c.Value) + 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 ContactProperties. +func (c ContactProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "contactName", c.ContactName) + populate(objectMap, "email", c.Email) + populate(objectMap, "phoneNumber", c.PhoneNumber) + populate(objectMap, "provisioningState", c.ProvisioningState) + populate(objectMap, "role", c.Role) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ContactProperties. +func (c *ContactProperties) 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 "contactName": + err = unpopulate(val, "ContactName", &c.ContactName) + delete(rawMsg, key) + case "email": + err = unpopulate(val, "Email", &c.Email) + delete(rawMsg, key) + case "phoneNumber": + err = unpopulate(val, "PhoneNumber", &c.PhoneNumber) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &c.ProvisioningState) + delete(rawMsg, key) + case "role": + err = unpopulate(val, "Role", &c.Role) + 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 ContactUpdate. +func (c ContactUpdate) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "tags", c.Tags) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ContactUpdate. +func (c *ContactUpdate) 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 "tags": + err = unpopulate(val, "Tags", &c.Tags) + 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 Operation. +func (o Operation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "actionType", o.ActionType) + populate(objectMap, "display", o.Display) + populate(objectMap, "isDataAction", o.IsDataAction) + populate(objectMap, "name", o.Name) + populate(objectMap, "origin", o.Origin) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Operation. +func (o *Operation) 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", o, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "actionType": + err = unpopulate(val, "ActionType", &o.ActionType) + delete(rawMsg, key) + case "display": + err = unpopulate(val, "Display", &o.Display) + delete(rawMsg, key) + case "isDataAction": + err = unpopulate(val, "IsDataAction", &o.IsDataAction) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &o.Name) + delete(rawMsg, key) + case "origin": + err = unpopulate(val, "Origin", &o.Origin) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", o, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type OperationDisplay. +func (o OperationDisplay) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "description", o.Description) + populate(objectMap, "operation", o.Operation) + populate(objectMap, "provider", o.Provider) + populate(objectMap, "resource", o.Resource) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type OperationDisplay. +func (o *OperationDisplay) 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", o, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "description": + err = unpopulate(val, "Description", &o.Description) + delete(rawMsg, key) + case "operation": + err = unpopulate(val, "Operation", &o.Operation) + delete(rawMsg, key) + case "provider": + err = unpopulate(val, "Provider", &o.Provider) + delete(rawMsg, key) + case "resource": + err = unpopulate(val, "Resource", &o.Resource) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", o, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type OperationListResult. +func (o OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", o.NextLink) + populate(objectMap, "value", o.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type OperationListResult. +func (o *OperationListResult) 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", o, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &o.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &o.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", o, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type PrimaryRegionProperties. +func (p PrimaryRegionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "esrpAddresses", p.EsrpAddresses) + populate(objectMap, "operatorAddresses", p.OperatorAddresses) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type PrimaryRegionProperties. +func (p *PrimaryRegionProperties) 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", p, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "esrpAddresses": + err = unpopulate(val, "EsrpAddresses", &p.EsrpAddresses) + delete(rawMsg, key) + case "operatorAddresses": + err = unpopulate(val, "OperatorAddresses", &p.OperatorAddresses) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", p, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type ServiceRegionProperties. +func (s ServiceRegionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "name", s.Name) + populate(objectMap, "primaryRegionProperties", s.PrimaryRegionProperties) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ServiceRegionProperties. +func (s *ServiceRegionProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "name": + err = unpopulate(val, "Name", &s.Name) + delete(rawMsg, key) + case "primaryRegionProperties": + err = unpopulate(val, "PrimaryRegionProperties", &s.PrimaryRegionProperties) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SystemData. +func (s SystemData) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateTimeRFC3339(objectMap, "createdAt", s.CreatedAt) + populate(objectMap, "createdBy", s.CreatedBy) + populate(objectMap, "createdByType", s.CreatedByType) + populateTimeRFC3339(objectMap, "lastModifiedAt", s.LastModifiedAt) + populate(objectMap, "lastModifiedBy", s.LastModifiedBy) + populate(objectMap, "lastModifiedByType", s.LastModifiedByType) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SystemData. +func (s *SystemData) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "createdAt": + err = unpopulateTimeRFC3339(val, "CreatedAt", &s.CreatedAt) + delete(rawMsg, key) + case "createdBy": + err = unpopulate(val, "CreatedBy", &s.CreatedBy) + delete(rawMsg, key) + case "createdByType": + err = unpopulate(val, "CreatedByType", &s.CreatedByType) + delete(rawMsg, key) + case "lastModifiedAt": + err = unpopulateTimeRFC3339(val, "LastModifiedAt", &s.LastModifiedAt) + delete(rawMsg, key) + case "lastModifiedBy": + err = unpopulate(val, "LastModifiedBy", &s.LastModifiedBy) + delete(rawMsg, key) + case "lastModifiedByType": + err = unpopulate(val, "LastModifiedByType", &s.LastModifiedByType) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type TestLine. +func (t TestLine) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", t.ID) + populate(objectMap, "location", t.Location) + populate(objectMap, "name", t.Name) + populate(objectMap, "properties", t.Properties) + populate(objectMap, "systemData", t.SystemData) + populate(objectMap, "tags", t.Tags) + populate(objectMap, "type", t.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type TestLine. +func (t *TestLine) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &t.ID) + delete(rawMsg, key) + case "location": + err = unpopulate(val, "Location", &t.Location) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &t.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &t.Properties) + delete(rawMsg, key) + case "systemData": + err = unpopulate(val, "SystemData", &t.SystemData) + delete(rawMsg, key) + case "tags": + err = unpopulate(val, "Tags", &t.Tags) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &t.Type) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type TestLineListResult. +func (t TestLineListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", t.NextLink) + populate(objectMap, "value", t.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type TestLineListResult. +func (t *TestLineListResult) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "nextLink": + err = unpopulate(val, "NextLink", &t.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &t.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type TestLineProperties. +func (t TestLineProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "phoneNumber", t.PhoneNumber) + populate(objectMap, "provisioningState", t.ProvisioningState) + populate(objectMap, "purpose", t.Purpose) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type TestLineProperties. +func (t *TestLineProperties) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "phoneNumber": + err = unpopulate(val, "PhoneNumber", &t.PhoneNumber) + delete(rawMsg, key) + case "provisioningState": + err = unpopulate(val, "ProvisioningState", &t.ProvisioningState) + delete(rawMsg, key) + case "purpose": + err = unpopulate(val, "Purpose", &t.Purpose) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type TestLineUpdate. +func (t TestLineUpdate) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "tags", t.Tags) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type TestLineUpdate. +func (t *TestLineUpdate) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "tags": + err = unpopulate(val, "Tags", &t.Tags) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", t, err) + } + } + return nil +} + +func populate(m map[string]any, k string, v any) { + if v == nil { + return + } else if azcore.IsNullValue(v) { + m[k] = nil + } else if !reflect.ValueOf(v).IsNil() { + m[k] = v + } +} + +func unpopulate(data json.RawMessage, fn string, v any) error { + if data == nil { + return nil + } + if err := json.Unmarshal(data, v); err != nil { + return fmt.Errorf("struct field %s: %v", fn, err) + } + return nil +} diff --git a/sdk/resourcemanager/voiceservices/armvoiceservices/operations_client.go b/sdk/resourcemanager/voiceservices/armvoiceservices/operations_client.go new file mode 100644 index 000000000000..16dd45f59077 --- /dev/null +++ b/sdk/resourcemanager/voiceservices/armvoiceservices/operations_client.go @@ -0,0 +1,105 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armvoiceservices + +import ( + "context" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "net/http" +) + +// OperationsClient contains the methods for the Operations group. +// Don't use this type directly, use NewOperationsClient() instead. +type OperationsClient struct { + host string + pl runtime.Pipeline +} + +// NewOperationsClient creates a new instance of OperationsClient with the specified values. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. +func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*OperationsClient, error) { + if options == nil { + options = &arm.ClientOptions{} + } + ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err + } + client := &OperationsClient{ + host: ep, + pl: pl, + } + return client, nil +} + +// NewListPager - List the operations for the provider +// +// Generated from API version 2022-12-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]{ + More: func(page OperationsClientListResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 + }, + Fetcher: func(ctx context.Context, page *OperationsClientListResponse) (OperationsClientListResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listCreateRequest(ctx, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return OperationsClientListResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return OperationsClientListResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return OperationsClientListResponse{}, runtime.NewResponseError(resp) + } + return client.listHandleResponse(resp) + }, + }) +} + +// listCreateRequest creates the List request. +func (client *OperationsClient) listCreateRequest(ctx context.Context, options *OperationsClientListOptions) (*policy.Request, error) { + urlPath := "/providers/Microsoft.VoiceServices/operations" + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-12-01-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listHandleResponse handles the List response. +func (client *OperationsClient) listHandleResponse(resp *http.Response) (OperationsClientListResponse, error) { + result := OperationsClientListResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.OperationListResult); err != nil { + return OperationsClientListResponse{}, err + } + return result, nil +} diff --git a/sdk/resourcemanager/voiceservices/armvoiceservices/operations_client_example_test.go b/sdk/resourcemanager/voiceservices/armvoiceservices/operations_client_example_test.go new file mode 100644 index 000000000000..8e2792493ed8 --- /dev/null +++ b/sdk/resourcemanager/voiceservices/armvoiceservices/operations_client_example_test.go @@ -0,0 +1,55 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armvoiceservices_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/voiceservices/armvoiceservices" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7a7b696c2c73218fbca91c7c3bb625ee0f0bbea0/specification/voiceservices/resource-manager/Microsoft.VoiceServices/preview/2022-12-01-preview/examples/Operations_List.json +func ExampleOperationsClient_NewListPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armvoiceservices.NewOperationsClient(cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListPager(nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.OperationListResult = armvoiceservices.OperationListResult{ + // Value: []*armvoiceservices.Operation{ + // { + // Name: to.Ptr("Microsoft.VoiceService/communicationsGateways/write"), + // Display: &armvoiceservices.OperationDisplay{ + // Description: to.Ptr("Write communicationsGateways resource"), + // Operation: to.Ptr("write"), + // Provider: to.Ptr("Microsoft.VoiceService"), + // Resource: to.Ptr("communicationsGateways"), + // }, + // }}, + // } + } +} diff --git a/sdk/resourcemanager/voiceservices/armvoiceservices/response_types.go b/sdk/resourcemanager/voiceservices/armvoiceservices/response_types.go new file mode 100644 index 000000000000..d81e547fac7c --- /dev/null +++ b/sdk/resourcemanager/voiceservices/armvoiceservices/response_types.go @@ -0,0 +1,95 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armvoiceservices + +// CommunicationsGatewaysClientCreateOrUpdateResponse contains the response from method CommunicationsGatewaysClient.BeginCreateOrUpdate. +type CommunicationsGatewaysClientCreateOrUpdateResponse struct { + CommunicationsGateway +} + +// CommunicationsGatewaysClientDeleteResponse contains the response from method CommunicationsGatewaysClient.BeginDelete. +type CommunicationsGatewaysClientDeleteResponse struct { + // placeholder for future response values +} + +// CommunicationsGatewaysClientGetResponse contains the response from method CommunicationsGatewaysClient.Get. +type CommunicationsGatewaysClientGetResponse struct { + CommunicationsGateway +} + +// CommunicationsGatewaysClientListByResourceGroupResponse contains the response from method CommunicationsGatewaysClient.NewListByResourceGroupPager. +type CommunicationsGatewaysClientListByResourceGroupResponse struct { + CommunicationsGatewayListResult +} + +// CommunicationsGatewaysClientListBySubscriptionResponse contains the response from method CommunicationsGatewaysClient.NewListBySubscriptionPager. +type CommunicationsGatewaysClientListBySubscriptionResponse struct { + CommunicationsGatewayListResult +} + +// CommunicationsGatewaysClientUpdateResponse contains the response from method CommunicationsGatewaysClient.Update. +type CommunicationsGatewaysClientUpdateResponse struct { + CommunicationsGateway +} + +// ContactsClientCreateOrUpdateResponse contains the response from method ContactsClient.BeginCreateOrUpdate. +type ContactsClientCreateOrUpdateResponse struct { + Contact +} + +// ContactsClientDeleteResponse contains the response from method ContactsClient.BeginDelete. +type ContactsClientDeleteResponse struct { + // placeholder for future response values +} + +// ContactsClientGetResponse contains the response from method ContactsClient.Get. +type ContactsClientGetResponse struct { + Contact +} + +// ContactsClientListByCommunicationsGatewayResponse contains the response from method ContactsClient.NewListByCommunicationsGatewayPager. +type ContactsClientListByCommunicationsGatewayResponse struct { + ContactListResult +} + +// ContactsClientUpdateResponse contains the response from method ContactsClient.Update. +type ContactsClientUpdateResponse struct { + Contact +} + +// OperationsClientListResponse contains the response from method OperationsClient.NewListPager. +type OperationsClientListResponse struct { + OperationListResult +} + +// TestLinesClientCreateOrUpdateResponse contains the response from method TestLinesClient.BeginCreateOrUpdate. +type TestLinesClientCreateOrUpdateResponse struct { + TestLine +} + +// TestLinesClientDeleteResponse contains the response from method TestLinesClient.BeginDelete. +type TestLinesClientDeleteResponse struct { + // placeholder for future response values +} + +// TestLinesClientGetResponse contains the response from method TestLinesClient.Get. +type TestLinesClientGetResponse struct { + TestLine +} + +// TestLinesClientListByCommunicationsGatewayResponse contains the response from method TestLinesClient.NewListByCommunicationsGatewayPager. +type TestLinesClientListByCommunicationsGatewayResponse struct { + TestLineListResult +} + +// TestLinesClientUpdateResponse contains the response from method TestLinesClient.Update. +type TestLinesClientUpdateResponse struct { + TestLine +} diff --git a/sdk/resourcemanager/voiceservices/armvoiceservices/testlines_client.go b/sdk/resourcemanager/voiceservices/armvoiceservices/testlines_client.go new file mode 100644 index 000000000000..2691bb2104e1 --- /dev/null +++ b/sdk/resourcemanager/voiceservices/armvoiceservices/testlines_client.go @@ -0,0 +1,395 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armvoiceservices + +import ( + "context" + "errors" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + armruntime "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "net/http" + "net/url" + "strings" +) + +// TestLinesClient contains the methods for the TestLines group. +// Don't use this type directly, use NewTestLinesClient() instead. +type TestLinesClient struct { + host string + subscriptionID string + pl runtime.Pipeline +} + +// NewTestLinesClient creates a new instance of TestLinesClient with the specified values. +// - subscriptionID - The ID of the target subscription. +// - credential - used to authorize requests. Usually a credential from azidentity. +// - options - pass nil to accept the default values. +func NewTestLinesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*TestLinesClient, error) { + if options == nil { + options = &arm.ClientOptions{} + } + ep := cloud.AzurePublic.Services[cloud.ResourceManager].Endpoint + if c, ok := options.Cloud.Services[cloud.ResourceManager]; ok { + ep = c.Endpoint + } + pl, err := armruntime.NewPipeline(moduleName, moduleVersion, credential, runtime.PipelineOptions{}, options) + if err != nil { + return nil, err + } + client := &TestLinesClient{ + subscriptionID: subscriptionID, + host: ep, + pl: pl, + } + return client, nil +} + +// BeginCreateOrUpdate - Create a TestLine +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-12-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - communicationsGatewayName - Unique identifier for this deployment +// - testLineName - Unique identifier for this test line +// - resource - Resource create parameters. +// - options - TestLinesClientBeginCreateOrUpdateOptions contains the optional parameters for the TestLinesClient.BeginCreateOrUpdate +// method. +func (client *TestLinesClient) BeginCreateOrUpdate(ctx context.Context, resourceGroupName string, communicationsGatewayName string, testLineName string, resource TestLine, options *TestLinesClientBeginCreateOrUpdateOptions) (*runtime.Poller[TestLinesClientCreateOrUpdateResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.createOrUpdate(ctx, resourceGroupName, communicationsGatewayName, testLineName, resource, options) + if err != nil { + return nil, err + } + return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[TestLinesClientCreateOrUpdateResponse]{ + FinalStateVia: runtime.FinalStateViaAzureAsyncOp, + }) + } else { + return runtime.NewPollerFromResumeToken[TestLinesClientCreateOrUpdateResponse](options.ResumeToken, client.pl, nil) + } +} + +// CreateOrUpdate - Create a TestLine +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-12-01-preview +func (client *TestLinesClient) createOrUpdate(ctx context.Context, resourceGroupName string, communicationsGatewayName string, testLineName string, resource TestLine, options *TestLinesClientBeginCreateOrUpdateOptions) (*http.Response, error) { + req, err := client.createOrUpdateCreateRequest(ctx, resourceGroupName, communicationsGatewayName, testLineName, resource, options) + if err != nil { + return nil, err + } + resp, err := client.pl.Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusCreated) { + return nil, runtime.NewResponseError(resp) + } + return resp, nil +} + +// createOrUpdateCreateRequest creates the CreateOrUpdate request. +func (client *TestLinesClient) createOrUpdateCreateRequest(ctx context.Context, resourceGroupName string, communicationsGatewayName string, testLineName string, resource TestLine, options *TestLinesClientBeginCreateOrUpdateOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName}/testLines/{testLineName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if communicationsGatewayName == "" { + return nil, errors.New("parameter communicationsGatewayName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{communicationsGatewayName}", url.PathEscape(communicationsGatewayName)) + if testLineName == "" { + return nil, errors.New("parameter testLineName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{testLineName}", url.PathEscape(testLineName)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-12-01-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, runtime.MarshalAsJSON(req, resource) +} + +// BeginDelete - Delete a TestLine +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-12-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - communicationsGatewayName - Unique identifier for this deployment +// - testLineName - Unique identifier for this test line +// - options - TestLinesClientBeginDeleteOptions contains the optional parameters for the TestLinesClient.BeginDelete method. +func (client *TestLinesClient) BeginDelete(ctx context.Context, resourceGroupName string, communicationsGatewayName string, testLineName string, options *TestLinesClientBeginDeleteOptions) (*runtime.Poller[TestLinesClientDeleteResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.deleteOperation(ctx, resourceGroupName, communicationsGatewayName, testLineName, options) + if err != nil { + return nil, err + } + return runtime.NewPoller(resp, client.pl, &runtime.NewPollerOptions[TestLinesClientDeleteResponse]{ + FinalStateVia: runtime.FinalStateViaAzureAsyncOp, + }) + } else { + return runtime.NewPollerFromResumeToken[TestLinesClientDeleteResponse](options.ResumeToken, client.pl, nil) + } +} + +// Delete - Delete a TestLine +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-12-01-preview +func (client *TestLinesClient) deleteOperation(ctx context.Context, resourceGroupName string, communicationsGatewayName string, testLineName string, options *TestLinesClientBeginDeleteOptions) (*http.Response, error) { + req, err := client.deleteCreateRequest(ctx, resourceGroupName, communicationsGatewayName, testLineName, options) + if err != nil { + return nil, err + } + resp, err := client.pl.Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(resp, http.StatusOK, http.StatusAccepted, http.StatusNoContent) { + return nil, runtime.NewResponseError(resp) + } + return resp, nil +} + +// deleteCreateRequest creates the Delete request. +func (client *TestLinesClient) deleteCreateRequest(ctx context.Context, resourceGroupName string, communicationsGatewayName string, testLineName string, options *TestLinesClientBeginDeleteOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName}/testLines/{testLineName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if communicationsGatewayName == "" { + return nil, errors.New("parameter communicationsGatewayName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{communicationsGatewayName}", url.PathEscape(communicationsGatewayName)) + if testLineName == "" { + return nil, errors.New("parameter testLineName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{testLineName}", url.PathEscape(testLineName)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-12-01-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// Get - Get a TestLine +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-12-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - communicationsGatewayName - Unique identifier for this deployment +// - testLineName - Unique identifier for this test line +// - options - TestLinesClientGetOptions contains the optional parameters for the TestLinesClient.Get method. +func (client *TestLinesClient) Get(ctx context.Context, resourceGroupName string, communicationsGatewayName string, testLineName string, options *TestLinesClientGetOptions) (TestLinesClientGetResponse, error) { + req, err := client.getCreateRequest(ctx, resourceGroupName, communicationsGatewayName, testLineName, options) + if err != nil { + return TestLinesClientGetResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return TestLinesClientGetResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return TestLinesClientGetResponse{}, runtime.NewResponseError(resp) + } + return client.getHandleResponse(resp) +} + +// getCreateRequest creates the Get request. +func (client *TestLinesClient) getCreateRequest(ctx context.Context, resourceGroupName string, communicationsGatewayName string, testLineName string, options *TestLinesClientGetOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName}/testLines/{testLineName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if communicationsGatewayName == "" { + return nil, errors.New("parameter communicationsGatewayName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{communicationsGatewayName}", url.PathEscape(communicationsGatewayName)) + if testLineName == "" { + return nil, errors.New("parameter testLineName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{testLineName}", url.PathEscape(testLineName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-12-01-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// getHandleResponse handles the Get response. +func (client *TestLinesClient) getHandleResponse(resp *http.Response) (TestLinesClientGetResponse, error) { + result := TestLinesClientGetResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.TestLine); err != nil { + return TestLinesClientGetResponse{}, err + } + return result, nil +} + +// NewListByCommunicationsGatewayPager - List TestLine resources by CommunicationsGateway +// +// Generated from API version 2022-12-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - communicationsGatewayName - Unique identifier for this deployment +// - options - TestLinesClientListByCommunicationsGatewayOptions contains the optional parameters for the TestLinesClient.NewListByCommunicationsGatewayPager +// method. +func (client *TestLinesClient) NewListByCommunicationsGatewayPager(resourceGroupName string, communicationsGatewayName string, options *TestLinesClientListByCommunicationsGatewayOptions) *runtime.Pager[TestLinesClientListByCommunicationsGatewayResponse] { + return runtime.NewPager(runtime.PagingHandler[TestLinesClientListByCommunicationsGatewayResponse]{ + More: func(page TestLinesClientListByCommunicationsGatewayResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 + }, + Fetcher: func(ctx context.Context, page *TestLinesClientListByCommunicationsGatewayResponse) (TestLinesClientListByCommunicationsGatewayResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listByCommunicationsGatewayCreateRequest(ctx, resourceGroupName, communicationsGatewayName, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return TestLinesClientListByCommunicationsGatewayResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return TestLinesClientListByCommunicationsGatewayResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return TestLinesClientListByCommunicationsGatewayResponse{}, runtime.NewResponseError(resp) + } + return client.listByCommunicationsGatewayHandleResponse(resp) + }, + }) +} + +// listByCommunicationsGatewayCreateRequest creates the ListByCommunicationsGateway request. +func (client *TestLinesClient) listByCommunicationsGatewayCreateRequest(ctx context.Context, resourceGroupName string, communicationsGatewayName string, options *TestLinesClientListByCommunicationsGatewayOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName}/testLines" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if communicationsGatewayName == "" { + return nil, errors.New("parameter communicationsGatewayName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{communicationsGatewayName}", url.PathEscape(communicationsGatewayName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-12-01-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listByCommunicationsGatewayHandleResponse handles the ListByCommunicationsGateway response. +func (client *TestLinesClient) listByCommunicationsGatewayHandleResponse(resp *http.Response) (TestLinesClientListByCommunicationsGatewayResponse, error) { + result := TestLinesClientListByCommunicationsGatewayResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.TestLineListResult); err != nil { + return TestLinesClientListByCommunicationsGatewayResponse{}, err + } + return result, nil +} + +// Update - Update a TestLine +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 2022-12-01-preview +// - resourceGroupName - The name of the resource group. The name is case insensitive. +// - communicationsGatewayName - Unique identifier for this deployment +// - testLineName - Unique identifier for this test line +// - properties - The resource properties to be updated. +// - options - TestLinesClientUpdateOptions contains the optional parameters for the TestLinesClient.Update method. +func (client *TestLinesClient) Update(ctx context.Context, resourceGroupName string, communicationsGatewayName string, testLineName string, properties TestLineUpdate, options *TestLinesClientUpdateOptions) (TestLinesClientUpdateResponse, error) { + req, err := client.updateCreateRequest(ctx, resourceGroupName, communicationsGatewayName, testLineName, properties, options) + if err != nil { + return TestLinesClientUpdateResponse{}, err + } + resp, err := client.pl.Do(req) + if err != nil { + return TestLinesClientUpdateResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return TestLinesClientUpdateResponse{}, runtime.NewResponseError(resp) + } + return client.updateHandleResponse(resp) +} + +// updateCreateRequest creates the Update request. +func (client *TestLinesClient) updateCreateRequest(ctx context.Context, resourceGroupName string, communicationsGatewayName string, testLineName string, properties TestLineUpdate, options *TestLinesClientUpdateOptions) (*policy.Request, error) { + urlPath := "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VoiceServices/communicationsGateways/{communicationsGatewayName}/testLines/{testLineName}" + if client.subscriptionID == "" { + return nil, errors.New("parameter client.subscriptionID cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{subscriptionId}", url.PathEscape(client.subscriptionID)) + if resourceGroupName == "" { + return nil, errors.New("parameter resourceGroupName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{resourceGroupName}", url.PathEscape(resourceGroupName)) + if communicationsGatewayName == "" { + return nil, errors.New("parameter communicationsGatewayName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{communicationsGatewayName}", url.PathEscape(communicationsGatewayName)) + if testLineName == "" { + return nil, errors.New("parameter testLineName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{testLineName}", url.PathEscape(testLineName)) + req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.host, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "2022-12-01-preview") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, runtime.MarshalAsJSON(req, properties) +} + +// updateHandleResponse handles the Update response. +func (client *TestLinesClient) updateHandleResponse(resp *http.Response) (TestLinesClientUpdateResponse, error) { + result := TestLinesClientUpdateResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.TestLine); err != nil { + return TestLinesClientUpdateResponse{}, err + } + return result, nil +} diff --git a/sdk/resourcemanager/voiceservices/armvoiceservices/testlines_client_example_test.go b/sdk/resourcemanager/voiceservices/armvoiceservices/testlines_client_example_test.go new file mode 100644 index 000000000000..4d9bded6f9af --- /dev/null +++ b/sdk/resourcemanager/voiceservices/armvoiceservices/testlines_client_example_test.go @@ -0,0 +1,178 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armvoiceservices_test + +import ( + "context" + "log" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/voiceservices/armvoiceservices" +) + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7a7b696c2c73218fbca91c7c3bb625ee0f0bbea0/specification/voiceservices/resource-manager/Microsoft.VoiceServices/preview/2022-12-01-preview/examples/TestLines_ListByCommunicationsGateway.json +func ExampleTestLinesClient_NewListByCommunicationsGatewayPager() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armvoiceservices.NewTestLinesClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + pager := client.NewListByCommunicationsGatewayPager("testrg", "myname", nil) + for pager.More() { + page, err := pager.NextPage(ctx) + if err != nil { + log.Fatalf("failed to advance page: %v", err) + } + for _, v := range page.Value { + // You could use page here. We use blank identifier for just demo purposes. + _ = v + } + // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // page.TestLineListResult = armvoiceservices.TestLineListResult{ + // Value: []*armvoiceservices.TestLine{ + // { + // Name: to.Ptr("myline"), + // Type: to.Ptr("Microsoft.Voiceservice/communicationsGateways/testLines"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.VoiceService/communicationsGateway/myname/TestLines/myline"), + // Location: to.Ptr("useast"), + // Properties: &armvoiceservices.TestLineProperties{ + // PhoneNumber: to.Ptr("+1-555-1234"), + // Purpose: to.Ptr(armvoiceservices.TestLinePurposeAutomated), + // }, + // }}, + // } + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7a7b696c2c73218fbca91c7c3bb625ee0f0bbea0/specification/voiceservices/resource-manager/Microsoft.VoiceServices/preview/2022-12-01-preview/examples/TestLines_Get.json +func ExampleTestLinesClient_Get() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armvoiceservices.NewTestLinesClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Get(ctx, "testrg", "myname", "myline", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.TestLine = armvoiceservices.TestLine{ + // Name: to.Ptr("myline"), + // Type: to.Ptr("Microsoft.Voiceservice/communicationsGateways/testLines"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.VoiceService/communicationsGateway/myname/TestLines/myline"), + // Location: to.Ptr("useast"), + // Properties: &armvoiceservices.TestLineProperties{ + // PhoneNumber: to.Ptr("+1-555-1234"), + // Purpose: to.Ptr(armvoiceservices.TestLinePurposeAutomated), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7a7b696c2c73218fbca91c7c3bb625ee0f0bbea0/specification/voiceservices/resource-manager/Microsoft.VoiceServices/preview/2022-12-01-preview/examples/TestLines_CreateOrUpdate.json +func ExampleTestLinesClient_BeginCreateOrUpdate() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armvoiceservices.NewTestLinesClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginCreateOrUpdate(ctx, "testrg", "myname", "myline", armvoiceservices.TestLine{ + Location: to.Ptr("useast"), + Properties: &armvoiceservices.TestLineProperties{ + PhoneNumber: to.Ptr("+1-555-1234"), + Purpose: to.Ptr(armvoiceservices.TestLinePurposeAutomated), + }, + }, 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.TestLine = armvoiceservices.TestLine{ + // Name: to.Ptr("myline"), + // Type: to.Ptr("Microsoft.Voiceservice/communicationsGateways/testLines"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.VoiceService/communicationsGateway/myname/TestLines/myline"), + // Location: to.Ptr("useast"), + // Properties: &armvoiceservices.TestLineProperties{ + // PhoneNumber: to.Ptr("+1-555-1234"), + // Purpose: to.Ptr(armvoiceservices.TestLinePurposeAutomated), + // }, + // } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7a7b696c2c73218fbca91c7c3bb625ee0f0bbea0/specification/voiceservices/resource-manager/Microsoft.VoiceServices/preview/2022-12-01-preview/examples/TestLines_Delete.json +func ExampleTestLinesClient_BeginDelete() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armvoiceservices.NewTestLinesClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + poller, err := client.BeginDelete(ctx, "testrg", "myname", "myline", nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + _, err = poller.PollUntilDone(ctx, nil) + if err != nil { + log.Fatalf("failed to pull the result: %v", err) + } +} + +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/7a7b696c2c73218fbca91c7c3bb625ee0f0bbea0/specification/voiceservices/resource-manager/Microsoft.VoiceServices/preview/2022-12-01-preview/examples/TestLines_Update.json +func ExampleTestLinesClient_Update() { + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + log.Fatalf("failed to obtain a credential: %v", err) + } + ctx := context.Background() + client, err := armvoiceservices.NewTestLinesClient("00000000-0000-0000-0000-000000000000", cred, nil) + if err != nil { + log.Fatalf("failed to create client: %v", err) + } + res, err := client.Update(ctx, "testrg", "myname", "myline", armvoiceservices.TestLineUpdate{}, nil) + if err != nil { + log.Fatalf("failed to finish the request: %v", err) + } + // You could use response here. We use blank identifier for just demo purposes. + _ = res + // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. + // res.TestLine = armvoiceservices.TestLine{ + // Name: to.Ptr("myline"), + // Type: to.Ptr("Microsoft.Voiceservice/communicationsGateways/testLines"), + // ID: to.Ptr("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.VoiceService/communicationsGateway/myname/TestLines/myline"), + // Location: to.Ptr("useast"), + // Properties: &armvoiceservices.TestLineProperties{ + // PhoneNumber: to.Ptr("+1-555-1234"), + // Purpose: to.Ptr(armvoiceservices.TestLinePurposeAutomated), + // }, + // } +} diff --git a/sdk/resourcemanager/voiceservices/armvoiceservices/time_rfc3339.go b/sdk/resourcemanager/voiceservices/armvoiceservices/time_rfc3339.go new file mode 100644 index 000000000000..e30ba2185bc9 --- /dev/null +++ b/sdk/resourcemanager/voiceservices/armvoiceservices/time_rfc3339.go @@ -0,0 +1,87 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package armvoiceservices + +import ( + "encoding/json" + "fmt" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "reflect" + "regexp" + "strings" + "time" +) + +const ( + utcLayoutJSON = `"2006-01-02T15:04:05.999999999"` + utcLayout = "2006-01-02T15:04:05.999999999" + rfc3339JSON = `"` + time.RFC3339Nano + `"` +) + +// Azure reports time in UTC but it doesn't include the 'Z' time zone suffix in some cases. +var tzOffsetRegex = regexp.MustCompile(`(Z|z|\+|-)(\d+:\d+)*"*$`) + +type timeRFC3339 time.Time + +func (t timeRFC3339) MarshalJSON() (json []byte, err error) { + tt := time.Time(t) + return tt.MarshalJSON() +} + +func (t timeRFC3339) MarshalText() (text []byte, err error) { + tt := time.Time(t) + return tt.MarshalText() +} + +func (t *timeRFC3339) UnmarshalJSON(data []byte) error { + layout := utcLayoutJSON + if tzOffsetRegex.Match(data) { + layout = rfc3339JSON + } + return t.Parse(layout, string(data)) +} + +func (t *timeRFC3339) UnmarshalText(data []byte) (err error) { + layout := utcLayout + if tzOffsetRegex.Match(data) { + layout = time.RFC3339Nano + } + return t.Parse(layout, string(data)) +} + +func (t *timeRFC3339) Parse(layout, value string) error { + p, err := time.Parse(layout, strings.ToUpper(value)) + *t = timeRFC3339(p) + return err +} + +func populateTimeRFC3339(m map[string]any, k string, t *time.Time) { + if t == nil { + return + } else if azcore.IsNullValue(t) { + m[k] = nil + return + } else if reflect.ValueOf(t).IsNil() { + return + } + m[k] = (*timeRFC3339)(t) +} + +func unpopulateTimeRFC3339(data json.RawMessage, fn string, t **time.Time) error { + if data == nil || strings.EqualFold(string(data), "null") { + return nil + } + var aux timeRFC3339 + if err := json.Unmarshal(data, &aux); err != nil { + return fmt.Errorf("struct field %s: %v", fn, err) + } + *t = (*time.Time)(&aux) + return nil +} From 834001a56031037ee817e2244531ed5c22e585c0 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Tue, 28 Feb 2023 16:28:46 -0800 Subject: [PATCH 063/107] update proxy version to include Info/Active against individual sessions + allow delayed response (#20302) Co-authored-by: scbedd <45376673+scbedd@users.noreply.github.com> --- eng/common/testproxy/target_version.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/common/testproxy/target_version.txt b/eng/common/testproxy/target_version.txt index cbd1d1b89a59..e25bd79aa549 100644 --- a/eng/common/testproxy/target_version.txt +++ b/eng/common/testproxy/target_version.txt @@ -1 +1 @@ -1.0.0-dev.20230201.10 +1.0.0-dev.20230224.5 From a698b9bdec695674aabd7ddf61e4cb49c12c3f5f Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Tue, 28 Feb 2023 19:55:36 -0800 Subject: [PATCH 064/107] Sync eng/common directory with azure-sdk-tools for PR 5540 (#20309) * add parameter to set cadl emitter options * remove emitter name in the additional parameter --------- Co-authored-by: chunyu3 --- eng/common/scripts/Cadl-Project-Generate.ps1 | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/eng/common/scripts/Cadl-Project-Generate.ps1 b/eng/common/scripts/Cadl-Project-Generate.ps1 index d6adc59cefe8..3e7ee781b053 100644 --- a/eng/common/scripts/Cadl-Project-Generate.ps1 +++ b/eng/common/scripts/Cadl-Project-Generate.ps1 @@ -4,7 +4,9 @@ param ( [Parameter(Position=0)] [ValidateNotNullOrEmpty()] - [string] $ProjectDirectory + [string] $ProjectDirectory, + [Parameter(Position=1)] + [string] $CadlAdditionalOptions ## addtional cadl emitter options, separated by semicolon if more than one, e.g. option1=value1;option2=value2 ) $ErrorActionPreference = "Stop" @@ -78,6 +80,12 @@ try { } } $cadlCompileCommand = "npx cadl compile $mainCadlFile --emit $emitterName$emitterAdditionalOptions" + if ($CadlAdditionalOptions) { + $options = $CadlAdditionalOptions.Split(";"); + foreach ($option in $options) { + $cadlCompileCommand += " --option $emitterName.$option" + } + } Write-Host($cadlCompileCommand) Invoke-Expression $cadlCompileCommand From 988beb5e7b638420819920db946f49f1c9169da6 Mon Sep 17 00:00:00 2001 From: Charles Lowell <10964656+chlowell@users.noreply.github.com> Date: Wed, 1 Mar 2023 10:02:23 -0800 Subject: [PATCH 065/107] Prepare azcore v1.4.0 for release (#20310) --- sdk/azcore/CHANGELOG.md | 12 ++++++++---- sdk/azcore/internal/shared/constants.go | 2 +- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/sdk/azcore/CHANGELOG.md b/sdk/azcore/CHANGELOG.md index df3c7b9338d8..5ad5318d2bb6 100644 --- a/sdk/azcore/CHANGELOG.md +++ b/sdk/azcore/CHANGELOG.md @@ -1,18 +1,22 @@ # Release History -## 1.3.2 (Unreleased) +## 1.4.0 (2023-03-02) +> This release doesn't include features added in v1.4.0-beta.1. They will return in v1.5.0-beta.1. ### Features Added * Add `Clone()` method for `arm/policy.ClientOptions`. -### Breaking Changes - ### Bugs Fixed * ARM's RP registration policy will no longer swallow unrecognized errors. * Fixed an issue in `runtime.NewPollerFromResumeToken()` when resuming a `Poller` with a custom `PollingHandler`. * Fixed wrong policy copy in `arm/runtime.NewPipeline()`. -### Other Changes +## 1.4.0-beta.1 (2023-02-02) + +### Features Added +* Added support for ARM cross-tenant authentication. Set the `AuxiliaryTenants` field of `arm.ClientOptions` to enable. +* Added `Claims` and `TenantID` fields to `policy.TokenRequestOptions`. +* ARM bearer token policy handles CAE challenges. ## 1.3.1 (2023-02-02) diff --git a/sdk/azcore/internal/shared/constants.go b/sdk/azcore/internal/shared/constants.go index 91bcd8f7a875..b3b477f900bc 100644 --- a/sdk/azcore/internal/shared/constants.go +++ b/sdk/azcore/internal/shared/constants.go @@ -31,5 +31,5 @@ const ( Module = "azcore" // Version is the semantic version (see http://semver.org) of this module. - Version = "v1.3.2" + Version = "v1.4.0" ) From adb14ead0a875518b05d89ec7354f4e04c20c153 Mon Sep 17 00:00:00 2001 From: Richard Park <51494936+richardpark-msft@users.noreply.github.com> Date: Wed, 1 Mar 2023 11:36:26 -0800 Subject: [PATCH 066/107] [azeventhubs] Adding a section to the migration guide that shows how to migrate from older checkpoints to a newer checkpoint store #20297 Adding in a migration guide section that shows how to migrate We want to make it easy for customers using the previous `azure-event-hubs-go` package to use this package (`github.com/Azure/azure-sdk-for-go/sdk/messaging/azeventhubs`). Fixes #19849 --- .../example_checkpoint_migration_test.go | 151 ++++++++++++++++++ .../example_consuming_events_test.go | 3 +- .../azeventhubs/example_processor_test.go | 2 +- sdk/messaging/azeventhubs/migrationguide.md | 3 + 4 files changed, 156 insertions(+), 3 deletions(-) create mode 100644 sdk/messaging/azeventhubs/example_checkpoint_migration_test.go diff --git a/sdk/messaging/azeventhubs/example_checkpoint_migration_test.go b/sdk/messaging/azeventhubs/example_checkpoint_migration_test.go new file mode 100644 index 000000000000..2692d47c1fe4 --- /dev/null +++ b/sdk/messaging/azeventhubs/example_checkpoint_migration_test.go @@ -0,0 +1,151 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package azeventhubs_test + +import ( + "context" + "encoding/json" + "fmt" + "os" + "strconv" + + "github.com/Azure/azure-sdk-for-go/sdk/messaging/azeventhubs" + "github.com/Azure/azure-sdk-for-go/sdk/messaging/azeventhubs/checkpoints" + "github.com/Azure/azure-sdk-for-go/sdk/storage/azblob" + "github.com/Azure/azure-sdk-for-go/sdk/storage/azblob/container" +) + +type LegacyCheckpoint struct { + PartitionID string `json:"partitionID"` + Epoch int `json:"epoch"` + Owner string `json:"owner"` + Checkpoint struct { + Offset string `json:"offset"` + SequenceNumber int64 `json:"sequenceNumber"` + EnqueueTime string `json:"enqueueTime"` // ": "0001-01-01T00:00:00Z" + } `json:"checkpoint"` +} + +// Shows how to migrate from the older `github.com/Azure/azure-event-hubs-go` checkpointer to to +// the format used by this package, `github.com/Azure/azure-sdk-for-go/sdk/messaging/azeventhubs/checkpoints/BlobStore` +// +// NOTE: This example is not safe to run while either the old or new checkpoint store is in-use as it doesn't +// respect locking or ownership. +func Example_migrateCheckpoints() { + // Azure Event Hubs connection string. You can get this from the Azure Portal. + // For example: youreventhub.servicebus.windows.net + var EventHubNamespace = os.Getenv("EVENTHUB_NAMESPACE") + + // Name of your Event Hub that these checkpoints reference. + var EventHubName = os.Getenv("EVENTHUB_NAME") + + // Name of your Event Hub consumer group + // Example: $Default + var EventHubConsumerGroup = os.Getenv("EVENTHUB_CONSUMER_GROUP") + + // Azure Storage account connection string. You can get this from the Azure Portal. + // For example: DefaultEndpointsProtocol=https;AccountName=accountname;AccountKey=account-key;EndpointSuffix=core.windows.net + var StorageConnectionString = os.Getenv("STORAGE_CONNECTION_STRING") + + // Optional: If you used `eventhub.WithPrefixInBlobPath()` configuration option for your Event Processor Host + // then you'll need to set this value. + // + // NOTE: This is no longer needed with the new checkpoint store as it automatically makes the path unique + // for each combination of eventhub + hubname + consumergroup + partition. + var BlobPrefix = os.Getenv("OLD_STORAGE_BLOB_PREFIX") + + // Name of the checkpoint store's Azure Storage container. + var OldStorageContainerName = os.Getenv("OLD_STORAGE_CONTAINER_NAME") + + // Name of the Azure Storage container to place new checkpoints in. + var NewStorageContainerName = os.Getenv("NEW_STORAGE_CONTAINER_NAME") + + if EventHubNamespace == "" || EventHubName == "" || EventHubConsumerGroup == "" || + StorageConnectionString == "" || OldStorageContainerName == "" || NewStorageContainerName == "" { + fmt.Printf("Skipping migration, missing parameters\n") + return + } + + blobClient, err := azblob.NewClientFromConnectionString(StorageConnectionString, nil) + + if err != nil { + panic(err) + } + + oldCheckpoints, err := loadOldCheckpoints(blobClient, OldStorageContainerName, BlobPrefix) + + if err != nil { + panic(err) + } + + newCheckpointStore, err := checkpoints.NewBlobStore(blobClient.ServiceClient().NewContainerClient(NewStorageContainerName), nil) + + if err != nil { + panic(err) + } + + for _, oldCheckpoint := range oldCheckpoints { + newCheckpoint := azeventhubs.Checkpoint{ + ConsumerGroup: EventHubConsumerGroup, + EventHubName: EventHubName, + FullyQualifiedNamespace: EventHubNamespace, + PartitionID: oldCheckpoint.PartitionID, + } + + offset, err := strconv.ParseInt(oldCheckpoint.Checkpoint.Offset, 10, 64) + + if err != nil { + panic(err) + } + + newCheckpoint.Offset = &offset + newCheckpoint.SequenceNumber = &oldCheckpoint.Checkpoint.SequenceNumber + + if err := newCheckpointStore.UpdateCheckpoint(context.Background(), newCheckpoint, nil); err != nil { + panic(err) + } + } +} + +func loadOldCheckpoints(blobClient *azblob.Client, containerName string, customBlobPrefix string) ([]*LegacyCheckpoint, error) { + blobPrefix := &customBlobPrefix + + if customBlobPrefix == "" { + blobPrefix = nil + } + + pager := blobClient.NewListBlobsFlatPager(containerName, &container.ListBlobsFlatOptions{ + Prefix: blobPrefix, + }) + + var checkpoints []*LegacyCheckpoint + + for pager.More() { + page, err := pager.NextPage(context.Background()) + + if err != nil { + return nil, err + } + + for _, item := range page.Segment.BlobItems { + buff := [4000]byte{} + + len, err := blobClient.DownloadBuffer(context.Background(), containerName, *item.Name, buff[:], nil) + + if err != nil { + return nil, err + } + + var legacyCheckpoint *LegacyCheckpoint + + if err := json.Unmarshal(buff[0:len], &legacyCheckpoint); err != nil { + return nil, err + } + + checkpoints = append(checkpoints, legacyCheckpoint) + } + } + + return checkpoints, nil +} diff --git a/sdk/messaging/azeventhubs/example_consuming_events_test.go b/sdk/messaging/azeventhubs/example_consuming_events_test.go index 050d3c9414c0..cd468f00fd75 100644 --- a/sdk/messaging/azeventhubs/example_consuming_events_test.go +++ b/sdk/messaging/azeventhubs/example_consuming_events_test.go @@ -16,8 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/messaging/azeventhubs" ) -// Example_consumingEventsUsingConsumerClient shows how to start consuming events in partitions -// in an Event Hub. +// Shows how to start consuming events in partitions in an Event Hub. // // If you have an Azure Storage account you can use the [Processor] type instead, which will handle // distributing partitions between multiple consumers. See example_processor_test.go for usage of diff --git a/sdk/messaging/azeventhubs/example_processor_test.go b/sdk/messaging/azeventhubs/example_processor_test.go index 7653b5a458ad..ec1bb4ecc871 100644 --- a/sdk/messaging/azeventhubs/example_processor_test.go +++ b/sdk/messaging/azeventhubs/example_processor_test.go @@ -16,7 +16,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/storage/azblob/container" ) -// Example_consumingEventsUsingProcessor shows how to use the [Processor] type. +// Shows how to use the [Processor] type. // // The Processor type acts as a load balancer, ensuring that partitions are divided up amongst // active Processor instances. You provide it with a [ConsumerClient] as well as a [CheckpointStore]. diff --git a/sdk/messaging/azeventhubs/migrationguide.md b/sdk/messaging/azeventhubs/migrationguide.md index df2dc63f95a7..5bcfcb1e79b3 100644 --- a/sdk/messaging/azeventhubs/migrationguide.md +++ b/sdk/messaging/azeventhubs/migrationguide.md @@ -101,3 +101,6 @@ producerClient.GetEventHubProperties(context.TODO(), nil) producerClient.GetPartitionProperties(context.TODO(), "partition-id", nil) ``` +## Migrating from a previous checkpoint store + +See here for an example: [link](https://github.com/Azure/azure-sdk-for-go/blob/main/sdk/messaging/azeventhubs/example_checkpoint_migration_test.go) From 841cc37e397a6506f9133474dd299fb93459484e Mon Sep 17 00:00:00 2001 From: Joel Hendrix Date: Thu, 2 Mar 2023 09:29:17 -0800 Subject: [PATCH 067/107] Prepare sdk/internal for release (#20321) --- sdk/internal/CHANGELOG.md | 8 +++----- sdk/internal/version.go | 2 +- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/sdk/internal/CHANGELOG.md b/sdk/internal/CHANGELOG.md index d813248afc40..b0e276dac7c5 100644 --- a/sdk/internal/CHANGELOG.md +++ b/sdk/internal/CHANGELOG.md @@ -1,16 +1,14 @@ # Release History -## 1.1.3 (Unreleased) +## 1.2.0 (2023-03-02) ### Features Added -- Add random alphanumeric string generation support for test-proxy recording framework. - -### Breaking Changes +* Add random alphanumeric string generation support for test-proxy recording framework. ### Bugs Fixed -### Other Changes +* Store RNG seed in recordings. ## 1.1.2 (2022-12-12) diff --git a/sdk/internal/version.go b/sdk/internal/version.go index f99015e75afa..f069d84a67db 100644 --- a/sdk/internal/version.go +++ b/sdk/internal/version.go @@ -11,5 +11,5 @@ const ( Module = "internal" // Version is the semantic version (see http://semver.org) of this module. - Version = "v1.1.3" + Version = "v1.2.0" ) From a94007541faf056d7c750d47ceb201a57f59bdc7 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Thu, 2 Mar 2023 11:29:52 -0800 Subject: [PATCH 068/107] Increment version for azcore releases (#20326) Increment package version after release of azcore --- sdk/azcore/CHANGELOG.md | 10 ++++++++++ sdk/azcore/internal/shared/constants.go | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/sdk/azcore/CHANGELOG.md b/sdk/azcore/CHANGELOG.md index 5ad5318d2bb6..46345b4e73ae 100644 --- a/sdk/azcore/CHANGELOG.md +++ b/sdk/azcore/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.4.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.4.0 (2023-03-02) > This release doesn't include features added in v1.4.0-beta.1. They will return in v1.5.0-beta.1. diff --git a/sdk/azcore/internal/shared/constants.go b/sdk/azcore/internal/shared/constants.go index b3b477f900bc..07879a30158b 100644 --- a/sdk/azcore/internal/shared/constants.go +++ b/sdk/azcore/internal/shared/constants.go @@ -31,5 +31,5 @@ const ( Module = "azcore" // Version is the semantic version (see http://semver.org) of this module. - Version = "v1.4.0" + Version = "v1.4.1" ) From a9a59f105c2c64b5527848e259949f656c6a933b Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Thu, 2 Mar 2023 11:44:47 -0800 Subject: [PATCH 069/107] Increment version for internal releases (#20324) Increment package version after release of internal --- sdk/internal/CHANGELOG.md | 10 ++++++++++ sdk/internal/version.go | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/sdk/internal/CHANGELOG.md b/sdk/internal/CHANGELOG.md index b0e276dac7c5..58f1e9e5d687 100644 --- a/sdk/internal/CHANGELOG.md +++ b/sdk/internal/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.2.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.2.0 (2023-03-02) ### Features Added diff --git a/sdk/internal/version.go b/sdk/internal/version.go index f069d84a67db..ebeacaa650de 100644 --- a/sdk/internal/version.go +++ b/sdk/internal/version.go @@ -11,5 +11,5 @@ const ( Module = "internal" // Version is the semantic version (see http://semver.org) of this module. - Version = "v1.2.0" + Version = "v1.2.1" ) From d85e5c3e91daa45c1a7553fe61ce1c380c31885b Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Thu, 2 Mar 2023 14:23:18 -0800 Subject: [PATCH 070/107] logging api post request body (#20327) Co-authored-by: Albert Cheng --- eng/common/scripts/artifact-metadata-parsing.ps1 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/eng/common/scripts/artifact-metadata-parsing.ps1 b/eng/common/scripts/artifact-metadata-parsing.ps1 index 1fc388d1d80a..bfdf6edfd12a 100644 --- a/eng/common/scripts/artifact-metadata-parsing.ps1 +++ b/eng/common/scripts/artifact-metadata-parsing.ps1 @@ -34,6 +34,9 @@ function CreateReleases($pkgList, $releaseApiUrl, $releaseSha) { body = $releaseNotes } + Write-Host "Post Request Body:" + Write-Host $body + $headers = @{ "Content-Type" = "application/json" "Authorization" = "token $($env:GH_TOKEN)" From d772b7c167a2afc419b148810fa5765adc29983e Mon Sep 17 00:00:00 2001 From: Chenjie Shi Date: Fri, 3 Mar 2023 07:49:47 +0800 Subject: [PATCH 071/107] Fix test failure because of "CONTENT_LEN_INVALID" (#20034) * fix test failure because of "CONTENT_LEN_INVALID" * fix lint * no need to redo challenge request when do retry request * rewrite auth policy to reduce auth requests time for each request * add changelog item * set test run time to 30m as ACR service is too slow sometimes * refine with code review * fix lint * prepare release * add synchronization --- .../azcontainerregistry/CHANGELOG.md | 8 +- .../azcontainerregistry/assets.json | 2 +- .../authentication_policy.go | 152 +++++++++--------- .../authentication_policy_test.go | 42 +++-- sdk/containers/azcontainerregistry/ci.yml | 1 + 5 files changed, 110 insertions(+), 95 deletions(-) diff --git a/sdk/containers/azcontainerregistry/CHANGELOG.md b/sdk/containers/azcontainerregistry/CHANGELOG.md index 509ad1a5f7c9..04f24ab427f8 100644 --- a/sdk/containers/azcontainerregistry/CHANGELOG.md +++ b/sdk/containers/azcontainerregistry/CHANGELOG.md @@ -1,14 +1,12 @@ # Release History -## 0.1.1 (Unreleased) - -### Features Added - -### Breaking Changes +## 0.1.1 (2023-03-07) ### Bugs Fixed +* Fix possible failure when request retry ### Other Changes +* Rewrite auth policy to promote efficiency of auth process ## 0.1.0 (2023-02-07) diff --git a/sdk/containers/azcontainerregistry/assets.json b/sdk/containers/azcontainerregistry/assets.json index 3c11a2eea3ca..2a0751ee598f 100644 --- a/sdk/containers/azcontainerregistry/assets.json +++ b/sdk/containers/azcontainerregistry/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/containers/azcontainerregistry", - "Tag": "go/containers/azcontainerregistry_36bdeb68b8" + "Tag": "go/containers/azcontainerregistry_4e940b1981" } diff --git a/sdk/containers/azcontainerregistry/authentication_policy.go b/sdk/containers/azcontainerregistry/authentication_policy.go index 7b139f83a2bd..5cf2c3570430 100644 --- a/sdk/containers/azcontainerregistry/authentication_policy.go +++ b/sdk/containers/azcontainerregistry/authentication_policy.go @@ -7,16 +7,14 @@ package azcontainerregistry import ( - "bytes" "encoding/base64" "encoding/json" "errors" "fmt" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/streaming" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "net/http" "strings" + "sync/atomic" "time" "github.com/Azure/azure-sdk-for-go/sdk/azcore" @@ -32,63 +30,91 @@ const ( type authenticationPolicyOptions struct { } +// authenticationPolicy is a policy to do the challenge-based authentication for container registry service. The authorization flow is as follows: +// Step 1: GET /api/v1/acr/repositories +// Return Header: 401: www-authenticate header - Bearer realm="{url}",service="{serviceName}",scope="{scope}",error="invalid_token" +// Step 2: Retrieve the serviceName, scope from the WWW-Authenticate header. +// Step 3: POST /api/oauth2/exchange +// Request Body : { service, scope, grant-type, aadToken with ARM scope } +// Response Body: { refreshToken } +// Step 4: POST /api/oauth2/token +// Request Body: { refreshToken, scope, grant-type } +// Response Body: { accessToken } +// Step 5: GET /api/v1/acr/repositories +// Request Header: { Bearer acrTokenAccess } +// Each registry service shares one refresh token, it will be cached in refreshTokenCache until expire time. +// Since the scope will be different for different API/repository/artifact, accessTokenCache will only work when continuously calling same API. type authenticationPolicy struct { - mainResource *temporal.Resource[azcore.AccessToken, acquiringResourceState] - cred azcore.TokenCredential - aadScopes []string - acrScope string - acrService string - authClient *authenticationClient + refreshTokenCache *temporal.Resource[azcore.AccessToken, acquiringResourceState] + accessTokenCache atomic.Value + cred azcore.TokenCredential + aadScopes []string + authClient *authenticationClient } func newAuthenticationPolicy(cred azcore.TokenCredential, scopes []string, authClient *authenticationClient, opts *authenticationPolicyOptions) *authenticationPolicy { return &authenticationPolicy{ - cred: cred, - aadScopes: scopes, - authClient: authClient, - mainResource: temporal.NewResource(acquire), + cred: cred, + aadScopes: scopes, + authClient: authClient, + refreshTokenCache: temporal.NewResource(acquireRefreshToken), } } func (p *authenticationPolicy) Do(req *policy.Request) (*http.Response, error) { - // send a copy of the original request without body content - challengeReq, err := p.getChallengeRequest(*req) - if err != nil { - return nil, err + var resp *http.Response + var err error + if req.Raw().Header.Get(headerAuthorization) != "" { + // retry request could do the request with existed token directly + resp, err = req.Next() + } else if accessToken := p.accessTokenCache.Load(); accessToken != nil && accessToken != "" { + // if there is a previous access token, then we try to use this token to do the request + req.Raw().Header.Set( + headerAuthorization, + fmt.Sprintf("%s%s", bearerHeader, accessToken), + ) + resp, err = req.Next() + } else { + // do challenge process for the initial request + var challengeReq *policy.Request + challengeReq, err = p.getChallengeRequest(*req) + if err != nil { + return nil, err + } + resp, err = challengeReq.Next() } - resp, err := challengeReq.Next() if err != nil { return nil, err } - // do challenge process - if resp.StatusCode == 401 { - err := p.findServiceAndScope(resp) - if err != nil { + // if 401 response, then try to get access token + if resp.StatusCode == http.StatusUnauthorized { + var service, scope, accessToken string + if service, scope, err = findServiceAndScope(resp); err != nil { return nil, err } - - accessToken, err := p.getAccessToken(req) - if err != nil { + if accessToken, err = p.getAccessToken(req, service, scope); err != nil { return nil, err } - + p.accessTokenCache.Store(accessToken) req.Raw().Header.Set( headerAuthorization, fmt.Sprintf("%s%s", bearerHeader, accessToken), ) - - // send the original request with auth + // since the request may already been used once, body should be rewound + if err = req.RewindBody(); err != nil { + return nil, err + } return req.Next() } return resp, nil } -func (p *authenticationPolicy) getAccessToken(req *policy.Request) (string, error) { +func (p *authenticationPolicy) getAccessToken(req *policy.Request, service, scope string) (string, error) { // anonymous access if p.cred == nil { - resp, err := p.authClient.ExchangeACRRefreshTokenForACRAccessToken(req.Raw().Context(), p.acrService, p.acrScope, "", &authenticationClientExchangeACRRefreshTokenForACRAccessTokenOptions{GrantType: to.Ptr(tokenGrantTypePassword)}) + resp, err := p.authClient.ExchangeACRRefreshTokenForACRAccessToken(req.Raw().Context(), service, scope, "", &authenticationClientExchangeACRRefreshTokenForACRAccessTokenOptions{GrantType: to.Ptr(tokenGrantTypePassword)}) if err != nil { return "", err } @@ -96,29 +122,28 @@ func (p *authenticationPolicy) getAccessToken(req *policy.Request) (string, erro } // access with token - as := acquiringResourceState{ - policy: p, - req: req, - } - // get refresh token from cache/request - refreshToken, err := p.mainResource.Get(as) + refreshToken, err := p.refreshTokenCache.Get(acquiringResourceState{ + policy: p, + req: req, + service: service, + }) if err != nil { return "", err } // get access token from request - resp, err := p.authClient.ExchangeACRRefreshTokenForACRAccessToken(req.Raw().Context(), p.acrService, p.acrScope, refreshToken.Token, &authenticationClientExchangeACRRefreshTokenForACRAccessTokenOptions{GrantType: to.Ptr(tokenGrantTypeRefreshToken)}) + resp, err := p.authClient.ExchangeACRRefreshTokenForACRAccessToken(req.Raw().Context(), service, scope, refreshToken.Token, &authenticationClientExchangeACRRefreshTokenForACRAccessTokenOptions{GrantType: to.Ptr(tokenGrantTypeRefreshToken)}) if err != nil { return "", err } return *resp.acrAccessToken.AccessToken, nil } -func (p *authenticationPolicy) findServiceAndScope(resp *http.Response) error { +func findServiceAndScope(resp *http.Response) (string, string, error) { authHeader := resp.Header.Get("WWW-Authenticate") if authHeader == "" { - return errors.New("response has no WWW-Authenticate header for challenge authentication") + return "", "", errors.New("response has no WWW-Authenticate header for challenge authentication") } authHeader = strings.ReplaceAll(authHeader, "Bearer ", "") @@ -131,54 +156,35 @@ func (p *authenticationPolicy) findServiceAndScope(resp *http.Response) error { } } - if v, ok := valuesMap["scope"]; ok { - p.acrScope = v - } - if p.acrScope == "" { - return errors.New("could not find a valid scope in the WWW-Authenticate header") + if _, ok := valuesMap["service"]; !ok { + return "", "", errors.New("could not find a valid service in the WWW-Authenticate header") } - if v, ok := valuesMap["service"]; ok { - p.acrService = v - } - if p.acrService == "" { - return errors.New("could not find a valid service in the WWW-Authenticate header") + if _, ok := valuesMap["scope"]; !ok { + return "", "", errors.New("could not find a valid scope in the WWW-Authenticate header") } - return nil + return valuesMap["service"], valuesMap["scope"], nil } -func (p authenticationPolicy) getChallengeRequest(orig policy.Request) (*policy.Request, error) { - req, err := runtime.NewRequest(orig.Raw().Context(), orig.Raw().Method, orig.Raw().URL.String()) - if err != nil { - return nil, err - } - - req.Raw().Header = orig.Raw().Header - req.Raw().Header.Set("Content-Length", "0") - req.Raw().ContentLength = 0 - - copied := orig.Clone(orig.Raw().Context()) - copied.Raw().Body = req.Body() - copied.Raw().ContentLength = 0 - copied.Raw().Header.Set("Content-Length", "0") - err = copied.SetBody(streaming.NopCloser(bytes.NewReader([]byte{})), "application/json") +func (p authenticationPolicy) getChallengeRequest(oriReq policy.Request) (*policy.Request, error) { + copied := oriReq.Clone(oriReq.Raw().Context()) + err := copied.SetBody(nil, "") if err != nil { return nil, err } copied.Raw().Header.Del("Content-Type") - - return copied, err + return copied, nil } type acquiringResourceState struct { - req *policy.Request - policy *authenticationPolicy + req *policy.Request + policy *authenticationPolicy + service string } -// acquire acquires or updates the resource; only one -// thread/goroutine at a time ever calls this function -func acquire(state acquiringResourceState) (newResource azcore.AccessToken, newExpiration time.Time, err error) { +// acquireRefreshToken acquires or updates the refresh token of ACR service; only one thread/goroutine at a time ever calls this function +func acquireRefreshToken(state acquiringResourceState) (newResource azcore.AccessToken, newExpiration time.Time, err error) { // get AAD token from credential aadToken, err := state.policy.cred.GetToken( state.req.Raw().Context(), @@ -191,7 +197,7 @@ func acquire(state acquiringResourceState) (newResource azcore.AccessToken, newE } // exchange refresh token with AAD token - refreshResp, err := state.policy.authClient.ExchangeAADAccessTokenForACRRefreshToken(state.req.Raw().Context(), postContentSchemaGrantTypeAccessToken, state.policy.acrService, &authenticationClientExchangeAADAccessTokenForACRRefreshTokenOptions{ + refreshResp, err := state.policy.authClient.ExchangeAADAccessTokenForACRRefreshToken(state.req.Raw().Context(), postContentSchemaGrantTypeAccessToken, state.service, &authenticationClientExchangeAADAccessTokenForACRRefreshTokenOptions{ AccessToken: &aadToken.Token, }) if err != nil { diff --git a/sdk/containers/azcontainerregistry/authentication_policy_test.go b/sdk/containers/azcontainerregistry/authentication_policy_test.go index 6f8829d92c2c..5894136dd930 100644 --- a/sdk/containers/azcontainerregistry/authentication_policy_test.go +++ b/sdk/containers/azcontainerregistry/authentication_policy_test.go @@ -7,16 +7,19 @@ package azcontainerregistry import ( + "bytes" "context" "fmt" "github.com/Azure/azure-sdk-for-go/sdk/azcore/cloud" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/streaming" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/internal/temporal" "github.com/stretchr/testify/require" "net/http" "reflect" "strings" + "sync/atomic" "testing" "time" ) @@ -77,7 +80,7 @@ func Test_getJWTExpireTime(t *testing.T) { } } -func Test_authenticationPolicy_findServiceAndScope(t *testing.T) { +func Test_findServiceAndScope(t *testing.T) { resp1 := http.Response{} resp1.Header = http.Header{} resp1.Header.Set("WWW-Authenticate", "Bearer realm=\"https://contosoregistry.azurecr.io/oauth2/token\",service=\"contosoregistry.azurecr.io\",scope=\"registry:catalog:*\"") @@ -97,14 +100,13 @@ func Test_authenticationPolicy_findServiceAndScope(t *testing.T) { {"error", "error", &http.Response{}, true}, } { t.Run(fmt.Sprintf("%s-%s", test.acrService, test.acrScope), func(t *testing.T) { - p := &authenticationPolicy{} - err := p.findServiceAndScope(test.resp) + service, scope, err := findServiceAndScope(test.resp) if test.err { require.Error(t, err) } else { require.NoError(t, err) - require.Equal(t, test.acrScope, p.acrScope) - require.Equal(t, test.acrService, p.acrService) + require.Equal(t, test.acrService, service) + require.Equal(t, test.acrScope, scope) } }) } @@ -118,16 +120,15 @@ func Test_authenticationPolicy_getAccessToken_live(t *testing.T) { } authClient := newAuthenticationClient(endpoint, &authenticationClientOptions{options}) p := &authenticationPolicy{ - temporal.NewResource(acquire), + temporal.NewResource(acquireRefreshToken), + atomic.Value{}, cred, []string{options.Cloud.Services[ServiceName].Audience + "/.default"}, - "registry:catalog:*", - strings.TrimPrefix(endpoint, "https://"), authClient, } request, err := runtime.NewRequest(context.Background(), http.MethodGet, "https://test.com") require.NoError(t, err) - token, err := p.getAccessToken(request) + token, err := p.getAccessToken(request, strings.TrimPrefix(endpoint, "https://"), "registry:catalog:*") require.NoError(t, err) require.NotEmpty(t, token) } @@ -137,16 +138,12 @@ func Test_authenticationPolicy_getAccessToken_live_anonymous(t *testing.T) { endpoint, _, options := getEndpointCredAndClientOptions(t) authClient := newAuthenticationClient(endpoint, &authenticationClientOptions{options}) p := &authenticationPolicy{ - temporal.NewResource(acquire), - nil, - nil, - "registry:catalog:*", - strings.TrimPrefix(endpoint, "https://"), - authClient, + refreshTokenCache: temporal.NewResource(acquireRefreshToken), + authClient: authClient, } request, err := runtime.NewRequest(context.Background(), http.MethodGet, "https://test.com") require.NoError(t, err) - token, err := p.getAccessToken(request) + token, err := p.getAccessToken(request, strings.TrimPrefix(endpoint, "https://"), "registry:catalog:*") require.NoError(t, err) require.NotEmpty(t, token) } @@ -171,3 +168,16 @@ func Test_authenticationPolicy_anonymousAccess(t *testing.T) { _, err = client.UpdateRepositoryProperties(ctx, repositoryName, &ClientUpdateRepositoryPropertiesOptions{Value: &RepositoryWriteableProperties{CanDelete: to.Ptr(true)}}) require.Error(t, err) } + +func Test_authenticationPolicy_getChallengeRequest(t *testing.T) { + oriReq, err := runtime.NewRequest(context.Background(), http.MethodPost, "https://test.com") + require.NoError(t, err) + testBody := []byte("test") + err = oriReq.SetBody(streaming.NopCloser(bytes.NewReader(testBody)), "text/plain") + require.NoError(t, err) + p := &authenticationPolicy{} + challengeReq, err := p.getChallengeRequest(*oriReq) + require.NoError(t, err) + require.Equal(t, fmt.Sprintf("%d", len(testBody)), oriReq.Raw().Header.Get("Content-Length")) + require.Equal(t, "", challengeReq.Raw().Header.Get("Content-Length")) +} diff --git a/sdk/containers/azcontainerregistry/ci.yml b/sdk/containers/azcontainerregistry/ci.yml index f3bb8489e721..98614f4fc142 100644 --- a/sdk/containers/azcontainerregistry/ci.yml +++ b/sdk/containers/azcontainerregistry/ci.yml @@ -26,6 +26,7 @@ stages: parameters: ServiceDirectory: 'containers/azcontainerregistry' RunLiveTests: true + TestRunTime: '30m' SupportedClouds: 'Public,UsGov,China' EnvVars: AZURE_CLIENT_ID: $(AZCONTAINERREGISTRY_CLIENT_ID) From 3faac1cfef250c7d313b30ab782e747ec1fe48bc Mon Sep 17 00:00:00 2001 From: Chenjie Shi Date: Fri, 3 Mar 2023 17:45:05 +0800 Subject: [PATCH 072/107] =?UTF-8?q?deprecate=20two=20function,=20the=20rep?= =?UTF-8?q?lacement=20could=20be=20found=20in=20github.com/=E2=80=A6=20(#2?= =?UTF-8?q?0330)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deprecate two function, the replacement could be found in github.com/Azure/azure-sdk-for-go/sdk/internal/recording and migrating recording files * goimports --- sdk/resourcemanager/internal/CHANGELOG.md | 11 +- sdk/resourcemanager/internal/assets.json | 6 + sdk/resourcemanager/internal/go.mod | 16 +- sdk/resourcemanager/internal/go.sum | 35 ++- .../TestCreateDeleteResourceGroup.json | 72 ------ .../recordings/TestCreateDeployment.json | 222 ------------------ .../recordings/TestExampleTestSuite.json | 72 ------ .../TestGenerateAlphaNumericID.json | 6 - .../recordings/TestStartStopRecording.json | 4 - .../internal/testutil/helper.go | 1 + .../internal/testutil/helper_test.go | 6 +- .../internal/testutil/recording.go | 25 +- .../internal/testutil/testsuite_test.go | 6 +- 13 files changed, 48 insertions(+), 434 deletions(-) create mode 100644 sdk/resourcemanager/internal/assets.json delete mode 100644 sdk/resourcemanager/internal/testdata/recordings/TestCreateDeleteResourceGroup.json delete mode 100644 sdk/resourcemanager/internal/testdata/recordings/TestCreateDeployment.json delete mode 100644 sdk/resourcemanager/internal/testdata/recordings/TestExampleTestSuite.json delete mode 100644 sdk/resourcemanager/internal/testdata/recordings/TestGenerateAlphaNumericID.json delete mode 100644 sdk/resourcemanager/internal/testdata/recordings/TestStartStopRecording.json diff --git a/sdk/resourcemanager/internal/CHANGELOG.md b/sdk/resourcemanager/internal/CHANGELOG.md index 8c86fb07b6ac..ce435c8caa52 100644 --- a/sdk/resourcemanager/internal/CHANGELOG.md +++ b/sdk/resourcemanager/internal/CHANGELOG.md @@ -1,14 +1,11 @@ # Release History -## 1.1.2 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed +## 1.1.2 (2023-03-03) ### Other Changes +* Deprecate `testutil.GetEnv`, use `github.com/Azure/azure-sdk-for-go/sdk/internal/recording.GetEnvVariable` instead +* Deprecate `testutil.GenerateAlphaNumericID`, use `github.com/Azure/azure-sdk-for-go/sdk/internal/recording.GenerateAlphaNumericID` instead +* Migrating all test recording files to assets repo.= ## 1.1.1 (2022-08-30) diff --git a/sdk/resourcemanager/internal/assets.json b/sdk/resourcemanager/internal/assets.json new file mode 100644 index 000000000000..c7db3b8221ae --- /dev/null +++ b/sdk/resourcemanager/internal/assets.json @@ -0,0 +1,6 @@ +{ + "AssetsRepo": "Azure/azure-sdk-assets", + "AssetsRepoPrefixPath": "go", + "TagPrefix": "go/resourcemanager/internal", + "Tag": "go/resourcemanager/internal_d113cb5a4c" +} diff --git a/sdk/resourcemanager/internal/go.mod b/sdk/resourcemanager/internal/go.mod index cc6d02a5dc22..9b01b8e8d95e 100644 --- a/sdk/resourcemanager/internal/go.mod +++ b/sdk/resourcemanager/internal/go.mod @@ -3,26 +3,26 @@ module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal go 1.18 require ( - github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.0 - github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.0.0 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.1.2 + github.com/Azure/azure-sdk-for-go/sdk/azcore v1.4.0 + github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.2.0 github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0 github.com/stretchr/testify v1.7.0 ) require ( - github.com/AzureAD/microsoft-authentication-library-for-go v0.4.0 // indirect + github.com/AzureAD/microsoft-authentication-library-for-go v0.7.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/dnaeon/go-vcr v1.1.0 // indirect - github.com/golang-jwt/jwt v3.2.1+incompatible // indirect + github.com/golang-jwt/jwt/v4 v4.4.2 // 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 github.com/pmezard/go-difflib v1.0.0 // 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 + golang.org/x/net v0.7.0 // indirect + golang.org/x/sys v0.5.0 // indirect + golang.org/x/text v0.7.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect ) diff --git a/sdk/resourcemanager/internal/go.sum b/sdk/resourcemanager/internal/go.sum index 87790b562164..fc1c4a2f3b03 100644 --- a/sdk/resourcemanager/internal/go.sum +++ b/sdk/resourcemanager/internal/go.sum @@ -1,27 +1,25 @@ -github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.0 h1:Ut0ZGdOwJDw0npYEg+TLlPls3Pq6JiZaP2/aGKir7Zw= -github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.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.1.2 h1:+5VZ72z0Qan5Bog5C+ZkgSqUbeVUd9wgtHOrIKuc5b8= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.1.2/go.mod h1:eWRD7oawr1Mu1sLCawqVc0CUiF43ia3qQMxLscsKQ9w= +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.0 h1:t/W5MYAuQy81cvM8VUNfRLzhtKpXhVUAN7Cd7KVbTyc= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.0/go.mod h1:NBanQUfSWiWn3QEpWDTCU0IjBECKOYvl2R8xdRtMtiM= +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/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0 h1:ECsQtyERDVz3NP3kvDOTLvbQhqWp/x9EsGKtb4ogUr8= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0/go.mod h1:s1tW/At+xHqjNFvWU4G0c0Qv33KOhvbGNj0RCTQDV8s= -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/AzureAD/microsoft-authentication-library-for-go v0.7.0 h1:VgSJlZH5u0k2qxSpqyghcFQKmvYckj46uymKK5XzkBM= +github.com/AzureAD/microsoft-authentication-library-for-go v0.7.0/go.mod h1:BDJ5qMFKx9DugEg3+uQSDCdbYPr5s9vBTrL9P8TpqOU= 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/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 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= +github.com/golang-jwt/jwt/v4 v4.4.2 h1:rcc4lwaZgFMCZ5jxF9ABolDcIHdBytAFgqFPbSJQAYs= +github.com/golang-jwt/jwt/v4 v4.4.2/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= 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= @@ -31,13 +29,12 @@ github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5Cc github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= 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-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/net v0.7.0 h1:rJrUqqhjsgNp7KqAIc25s9pZnjU7TUcSY7HcVZjdn1g= +golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= +golang.org/x/sys v0.5.0 h1:MUK/U/4lj1t1oPg0HfuXDN/Z1wv31ZJ/YcPiGccS4DU= +golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/text v0.7.0 h1:4BRB4x83lYWy72KwLD/qYDuTu7q9PjSagHvijDw7cLo= +golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= 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= diff --git a/sdk/resourcemanager/internal/testdata/recordings/TestCreateDeleteResourceGroup.json b/sdk/resourcemanager/internal/testdata/recordings/TestCreateDeleteResourceGroup.json deleted file mode 100644 index 1c3f4704c84b..000000000000 --- a/sdk/resourcemanager/internal/testdata/recordings/TestCreateDeleteResourceGroup.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.18; Windows_NT)" - }, - "RequestBody": { - "location": "eastus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 16 Mar 2022 03:26:56 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220316T032656Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "eastus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Wed, 16 Mar 2022 03:26:59 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ0MDEtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14999", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220316T032659Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/resourcemanager/internal/testdata/recordings/TestCreateDeployment.json b/sdk/resourcemanager/internal/testdata/recordings/TestCreateDeployment.json deleted file mode 100644 index 744e2c0e81a5..000000000000 --- a/sdk/resourcemanager/internal/testdata/recordings/TestCreateDeployment.json +++ /dev/null @@ -1,222 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.18; Windows_NT)" - }, - "RequestBody": { - "location": "eastus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 16 Mar 2022 07:08:15 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220316T070815Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "eastus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/Generate_Unique_Name?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "420", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.18; Windows_NT)" - }, - "RequestBody": { - "properties": { - "mode": "Incremental", - "parameters" : {}, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "outputs": { - "resourceName": { - "type": "string", - "value": "[variables(\u0027name\u0027).value]" - } - }, - "resources": [], - "variables": { - "name": { - "metadata": { - "description": "Name of the SignalR service." - }, - "type": "string", - "value": "[concat(\u0027sw\u0027,uniqueString(resourceGroup().id))]" - } - } - } - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/Generate_Unique_Name/operationStatuses/08585541923890396023?api-version=2021-04-01", - "Cache-Control": "no-cache", - "Content-Length": "485", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 16 Mar 2022 07:08:19 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220316T070819Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/Generate_Unique_Name", - "name": "Generate_Unique_Name", - "type": "Microsoft.Resources/deployments", - "properties": { - "templateHash": "5364899239189189664", - "mode": "Incremental", - "provisioningState": "Accepted", - "timestamp": "2022-03-16T07:08:17.8498806Z", - "duration": "PT0.0003591S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [], - "dependencies": [] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/Generate_Unique_Name/operationStatuses/08585541923890396023?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "22", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 16 Mar 2022 07:08:20 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11999", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220316T070820Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/Generate_Unique_Name?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "578", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 16 Mar 2022 07:08:20 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11998", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220316T070820Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/Generate_Unique_Name", - "name": "Generate_Unique_Name", - "type": "Microsoft.Resources/deployments", - "properties": { - "templateHash": "5364899239189189664", - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2022-03-16T07:08:19.7730979Z", - "duration": "PT1.9235764S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [], - "dependencies": [], - "outputs": { - "resourceName": { - "type": "String", - "value": "swzkq536n523a3e" - } - }, - "outputResources": [] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Wed, 16 Mar 2022 07:08:22 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ2MTAtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14999", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220316T070822Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/resourcemanager/internal/testdata/recordings/TestExampleTestSuite.json b/sdk/resourcemanager/internal/testdata/recordings/TestExampleTestSuite.json deleted file mode 100644 index 203cd4c83795..000000000000 --- a/sdk/resourcemanager/internal/testdata/recordings/TestExampleTestSuite.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.18; Windows_NT)" - }, - "RequestBody": { - "location": "eastus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 16 Mar 2022 03:27:08 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1196", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220316T032708Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "eastus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Wed, 16 Mar 2022 03:27:09 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ1NjItRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14998", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220316T032710Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/resourcemanager/internal/testdata/recordings/TestGenerateAlphaNumericID.json b/sdk/resourcemanager/internal/testdata/recordings/TestGenerateAlphaNumericID.json deleted file mode 100644 index 9038d39b535b..000000000000 --- a/sdk/resourcemanager/internal/testdata/recordings/TestGenerateAlphaNumericID.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "Entries": [], - "Variables": { - "recordingRandomSeed": "1661246628" - } -} diff --git a/sdk/resourcemanager/internal/testdata/recordings/TestStartStopRecording.json b/sdk/resourcemanager/internal/testdata/recordings/TestStartStopRecording.json deleted file mode 100644 index f721723386d8..000000000000 --- a/sdk/resourcemanager/internal/testdata/recordings/TestStartStopRecording.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Entries": [], - "Variables": {} -} diff --git a/sdk/resourcemanager/internal/testutil/helper.go b/sdk/resourcemanager/internal/testutil/helper.go index 35b8f188cd29..6512eb95ce3e 100644 --- a/sdk/resourcemanager/internal/testutil/helper.go +++ b/sdk/resourcemanager/internal/testutil/helper.go @@ -22,6 +22,7 @@ import ( ) // GetEnv will return the os env variable and fallback to the given string if env variable not exist. +// Deprecated: use github.com/Azure/azure-sdk-for-go/sdk/internal/recording.GetEnvVariable instead. func GetEnv(key, fallback string) string { if value, ok := os.LookupEnv(key); ok { return value diff --git a/sdk/resourcemanager/internal/testutil/helper_test.go b/sdk/resourcemanager/internal/testutil/helper_test.go index 1e07a3c7385c..d76f122a1b5a 100644 --- a/sdk/resourcemanager/internal/testutil/helper_test.go +++ b/sdk/resourcemanager/internal/testutil/helper_test.go @@ -12,6 +12,8 @@ import ( "strings" "testing" + "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" "github.com/stretchr/testify/require" @@ -31,7 +33,7 @@ func TestGetEnv(t *testing.T) { func TestCreateDeleteResourceGroup(t *testing.T) { ctx := context.Background() cred, options := GetCredAndClientOptions(t) - subscriptionID := GetEnv("AZURE_SUBSCRIPTION_ID", "00000000-0000-0000-0000-000000000000") + subscriptionID := recording.GetEnvVariable("AZURE_SUBSCRIPTION_ID", "00000000-0000-0000-0000-000000000000") stop := StartRecording(t, pathToPackage) defer stop() resourceGroup, _, err := CreateResourceGroup(ctx, subscriptionID, cred, options, "eastus") @@ -44,7 +46,7 @@ func TestCreateDeleteResourceGroup(t *testing.T) { func TestCreateDeployment(t *testing.T) { ctx := context.Background() cred, options := GetCredAndClientOptions(t) - subscriptionID := GetEnv("AZURE_SUBSCRIPTION_ID", "00000000-0000-0000-0000-000000000000") + subscriptionID := recording.GetEnvVariable("AZURE_SUBSCRIPTION_ID", "00000000-0000-0000-0000-000000000000") stop := StartRecording(t, pathToPackage) defer stop() resourceGroup, _, err := CreateResourceGroup(ctx, subscriptionID, cred, options, "eastus") diff --git a/sdk/resourcemanager/internal/testutil/recording.go b/sdk/resourcemanager/internal/testutil/recording.go index 0b49b309ba9e..804c081cb06e 100644 --- a/sdk/resourcemanager/internal/testutil/recording.go +++ b/sdk/resourcemanager/internal/testutil/recording.go @@ -27,12 +27,7 @@ var ( ) const ( - alphanumericBytes = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890" - alphanumericLowercaseBytes = "abcdefghijklmnopqrstuvwxyz1234567890" - randomSeedVariableName = "randomSeed" - nowVariableName = "now" - ModeEnvironmentVariableName = "AZURE_TEST_MODE" - recordingAssetConfigName = "assets.json" + alphanumericBytes = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890" ) // Inspired by https://stackoverflow.com/questions/22892120/how-to-generate-a-random-string-of-a-fixed-length-in-go @@ -131,7 +126,6 @@ func StopRecording(t *testing.T) { } func initRandomSource(t *testing.T) { - if recordingRandomSource != nil { return } @@ -161,10 +155,8 @@ func initRandomSource(t *testing.T) { // When handling live request, the random seed is generated. // Otherwise, the random seed is stable and will be stored in recording file. // The length parameter is the random part length, not include the prefix part. +// Deprecated: use github.com/Azure/azure-sdk-for-go/sdk/internal/recording.GenerateAlphaNumericID instead. func GenerateAlphaNumericID(t *testing.T, prefix string, length int) string { - - var lowercaseOnly bool = false - initRandomSource(t) sb := strings.Builder{} sb.Grow(length) @@ -175,16 +167,9 @@ func GenerateAlphaNumericID(t *testing.T, prefix string, length int) string { if remain == 0 { cache, remain = recordingRandomSource.Int63(), letterIdxMax } - if lowercaseOnly { - if idx := int(cache & letterIdxMask); idx < len(alphanumericLowercaseBytes) { - sb.WriteByte(alphanumericLowercaseBytes[idx]) - i-- - } - } else { - if idx := int(cache & letterIdxMask); idx < len(alphanumericBytes) { - sb.WriteByte(alphanumericBytes[idx]) - i-- - } + if idx := int(cache & letterIdxMask); idx < len(alphanumericBytes) { + sb.WriteByte(alphanumericBytes[idx]) + i-- } cache >>= letterIdxBits remain-- diff --git a/sdk/resourcemanager/internal/testutil/testsuite_test.go b/sdk/resourcemanager/internal/testutil/testsuite_test.go index 457a4b539850..be48f3065e0f 100644 --- a/sdk/resourcemanager/internal/testutil/testsuite_test.go +++ b/sdk/resourcemanager/internal/testutil/testsuite_test.go @@ -10,6 +10,8 @@ import ( "context" "testing" + "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/stretchr/testify/suite" @@ -29,8 +31,8 @@ type ExampleTestSuite struct { func (testsuite *ExampleTestSuite) SetupSuite() { testsuite.ctx = context.Background() testsuite.cred, testsuite.options = GetCredAndClientOptions(testsuite.T()) - testsuite.location = GetEnv("LOCATION", "eastus") - testsuite.subscriptionID = GetEnv("AZURE_SUBSCRIPTION_ID", "00000000-0000-0000-0000-000000000000") + testsuite.location = recording.GetEnvVariable("LOCATION", "eastus") + testsuite.subscriptionID = recording.GetEnvVariable("AZURE_SUBSCRIPTION_ID", "00000000-0000-0000-0000-000000000000") StartRecording(testsuite.T(), pathToPackage) resourceGroup, _, err := CreateResourceGroup(testsuite.ctx, testsuite.subscriptionID, testsuite.cred, testsuite.options, testsuite.location) testsuite.Require().NoError(err) From 1296440964ab7d9868c6d840dfe6a28e59b6954a Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Fri, 3 Mar 2023 03:22:09 -0800 Subject: [PATCH 073/107] Increment version for resourcemanager/internal releases (#20332) Increment package version after release of resourcemanager/internal --- sdk/resourcemanager/internal/CHANGELOG.md | 10 ++++++++++ sdk/resourcemanager/internal/version.go | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/sdk/resourcemanager/internal/CHANGELOG.md b/sdk/resourcemanager/internal/CHANGELOG.md index ce435c8caa52..666781ea55af 100644 --- a/sdk/resourcemanager/internal/CHANGELOG.md +++ b/sdk/resourcemanager/internal/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.1.3 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.1.2 (2023-03-03) ### Other Changes diff --git a/sdk/resourcemanager/internal/version.go b/sdk/resourcemanager/internal/version.go index 23d543404ec7..f99015e75afa 100644 --- a/sdk/resourcemanager/internal/version.go +++ b/sdk/resourcemanager/internal/version.go @@ -11,5 +11,5 @@ const ( Module = "internal" // Version is the semantic version (see http://semver.org) of this module. - Version = "v1.1.2" + Version = "v1.1.3" ) From 4ba48a3ef868bd34b5424041e56b2d187f34a3a1 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Fri, 3 Mar 2023 07:28:59 -0800 Subject: [PATCH 074/107] Sync eng/common directory with azure-sdk-tools for PR 5595 (#20322) * Use "npm ci" to install cspell and respect package-lock.json * Review feedback * Pipe npm ci output to Write-Host --------- Co-authored-by: Daniel Jurek --- eng/common/spelling/Invoke-Cspell.ps1 | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/eng/common/spelling/Invoke-Cspell.ps1 b/eng/common/spelling/Invoke-Cspell.ps1 index 79205ed90643..9fc5dec9b991 100644 --- a/eng/common/spelling/Invoke-Cspell.ps1 +++ b/eng/common/spelling/Invoke-Cspell.ps1 @@ -25,7 +25,7 @@ created in the temp folder, package*.json files will be placed in that folder. .PARAMETER LeavePackageInstallCache If set the PackageInstallCache will not be deleted. Use if there are multiple calls to Invoke-Cspell.ps1 to prevent creating multiple working directories and -redundant calls `npm install`. +redundant calls `npm ci`. .PARAMETER Test Run test functions against the script logic @@ -167,9 +167,7 @@ $originalLocation = Get-Location try { Set-Location $PackageInstallCache - npm install npx | Out-Null - npm install cspell | Out-Null - npm install | Out-Null + npm ci | Write-Host # Use the mutated configuration file when calling cspell $command = "npx cspell $JobType --config $CSpellConfigPath --no-must-find-files --root $SpellCheckRoot --relative" From 9926a2df8422c8969cea8b3d7dca60d1bc7c3ea0 Mon Sep 17 00:00:00 2001 From: Peng Jiahui <46921893+Alancere@users.noreply.github.com> Date: Mon, 6 Mar 2023 17:53:26 +0800 Subject: [PATCH 075/107] Migrate all test recording file to assets repo (#20000) * Migrate all test recording file to assets repo * fix containerservice * update assets.json * fix default value * update dep --- .../armapimanagement/assets.json | 6 + .../apimanagement/armapimanagement/go.mod | 18 +- .../apimanagement/armapimanagement/go.sum | 39 +- .../recordings/TestApimapisTestSuite.json | 3664 - .../TestApimapiversionsetsTestSuite.json | 1662 - ...TestApimauthorizationserversTestSuite.json | 1923 - .../recordings/TestApimcachesTestSuite.json | 1713 - .../TestApimdeploymentTestSuite.json | 7618 -- .../recordings/TestApimgatewaysTestSuite.json | 2566 - .../recordings/TestApimgroupsTestSuite.json | 1806 - .../TestApimidentityproviderTestSuite.json | 1815 - .../TestApimnamedvaluesTestSuite.json | 1877 - .../TestApimnotificationsTestSuite.json | 1789 - ...stApimopenidconnectprovidersTestSuite.json | 1665 - .../recordings/TestApimpoliciesTestSuite.json | 2179 - .../TestApimportalrevisionsTestSuite.json | 1717 - .../TestApimportalsettingsTestSuite.json | 1881 - .../TestApimprivatelinkTestSuite.json | 1371 - .../recordings/TestApimproductsTestSuite.json | 2653 - .../recordings/TestApimreportsTestSuite.json | 2049 - .../recordings/TestApimschemaTestSuite.json | 1704 - .../TestApimsubscriptionsTestSuite.json | 6306 - .../recordings/TestApimtagsTestSuite.json | 1586 - .../recordings/TestApimtenantTestSuite.json | 2158 - .../recordings/TestApimusersTestSuite.json | 1927 - sdk/resourcemanager/cdn/armcdn/assets.json | 6 + sdk/resourcemanager/cdn/armcdn/go.mod | 18 +- sdk/resourcemanager/cdn/armcdn/go.sum | 39 +- .../recordings/TestAfdxTestSuite.json | 5182 - .../testdata/recordings/TestCdnTestSuite.json | 7328 -- .../compute/armcompute/assets.json | 6 + .../availabilitysets_client_live_test.go | 2 +- sdk/resourcemanager/compute/armcompute/go.mod | 19 +- sdk/resourcemanager/compute/armcompute/go.sum | 41 +- .../TestAvailabilitySetsClient.json | 262 - .../TestVirtualMachineScaleSetsClient.json | 1365 - .../recordings/TestVirtualMachinesClient.json | 1979 - .../virtualmachines_client_live_test.go | 2 +- ...irtualmachinescalesets_client_live_test.go | 2 +- .../armcontainerregistry/assets.json | 6 + .../containerregistry_build_live_test.go | 384 + .../containerregistry_live_test.go | 574 + .../armcontainerregistry/go.mod | 18 +- .../armcontainerregistry/go.sum | 37 +- .../TestContainerregistryBuildTestSuite.json | 3243 - .../TestContainerregistryTestSuite.json | 4553 - .../armcontainerservice/assets.json | 6 + .../armcontainerservice/go.mod | 18 +- .../armcontainerservice/go.sum | 37 +- .../managedclusters_live_test.go | 407 + .../TestManagedclustersTestSuite.json | 4757 - .../cosmos/armcosmos/assets.json | 6 + sdk/resourcemanager/cosmos/armcosmos/go.mod | 12 +- sdk/resourcemanager/cosmos/armcosmos/go.sum | 24 +- .../TestCassandraresourcesTestSuite.json | 2117 - .../TestDatabaseaccountsTestSuite.json | 4744 - .../TestGremlinresourcesTestSuite.json | 2355 - .../TestMongodbresourcesTestSuite.json | 2148 - ...stPrivateendpointconnectionsTestSuite.json | 1974 - .../recordings/TestServiceTestSuite.json | 1326 - .../recordings/TestSqlresourcesTestSuite.json | 3248 - .../TestTableresourcesTestSuite.json | 1370 - .../eventgrid/armeventgrid/assets.json | 6 + .../eventgrid/armeventgrid/go.mod | 18 +- .../eventgrid/armeventgrid/go.sum | 39 +- .../recordings/TestEventGridTestSuite.json | 12008 -- .../eventhub/armeventhub/assets.json | 6 + .../eventhub/armeventhub/go.mod | 18 +- .../eventhub/armeventhub/go.sum | 39 +- .../TestDisasterrecoveryconfigsTestSuite.json | 981 - .../recordings/TestEventhubTestSuite.json | 4862 - .../keyvault/armkeyvault/assets.json | 6 + .../keyvault/armkeyvault/go.mod | 18 +- .../keyvault/armkeyvault/go.sum | 39 +- .../testdata/recordings/TestKeysClient.json | 471 - .../recordings/TestSecretsClient.json | 514 - .../testdata/recordings/TestVaultsClient.json | 1034 - .../armmonitor/actiongroups_live_test.go | 122 + .../armmonitor/activitylogalerts_live_test.go | 127 + .../monitor/armmonitor/assets.json | 6 + .../monitor/armmonitor/autoscale_live_test.go | 413 + .../datacollectionendpoints_live_test.go | 130 + .../datacollectionrules_live_test.go | 417 + sdk/resourcemanager/monitor/armmonitor/go.mod | 24 +- sdk/resourcemanager/monitor/armmonitor/go.sum | 52 +- .../armmonitor/logprofiles_live_test.go | 182 + .../armmonitor/metricalerts_live_test.go | 387 + .../armmonitor/privatelinkscopes_live_test.go | 117 + .../recordings/TestActiongroupsTestSuite.json | 524 - .../TestActivitylogalertsTestSuite.json | 509 - .../recordings/TestAutoscaleTestSuite.json | 8898 -- .../TestDatacollectionendpointsTestSuite.json | 505 - .../TestDatacollectionrulesTestSuite.json | 2216 - .../recordings/TestLogprofilesTestSuite.json | 469 - .../recordings/TestMetricalertsTestSuite.json | 1564 - .../TestPrivatelinkscopesTestSuite.json | 434 - .../TestScheduledqueryrulesTestSuite.json | 718 - .../network/armnetwork/assets.json | 6 + sdk/resourcemanager/network/armnetwork/go.mod | 18 +- sdk/resourcemanager/network/armnetwork/go.sum | 39 +- .../recordings/TestIPGroupsClient.json | 347 - .../recordings/TestSubnetsClient.json | 474 - .../recordings/TestVirtualNetworksClient.json | 414 - .../armoperationalinsights/assets.json | 6 + .../armoperationalinsights/go.mod | 18 +- .../armoperationalinsights/go.sum | 39 +- .../recordings/TestClustersTestSuite.json | 2546 - .../recordings/TestDataExportsTestSuite.json | 717 - .../recordings/TestDataSourcesTestSuite.json | 729 - .../TestIntelligencePacksTestSuite.json | 305 - .../TestLinkedServicesTestSuite.json | 45067 ------- .../TestLinkedStorageAccountsTestSuite.json | 727 - .../TestSavedSearchesTestSuite.json | 844 - .../TestStorageInsightConfigsTestSuite.json | 787 - .../recordings/TestWorkspacesTestSuite.json | 9590 -- .../workspaces_live_test.go | 2 +- .../postgresql/armpostgresql/assets.json | 6 + .../postgresql/armpostgresql/go.mod | 18 +- .../postgresql/armpostgresql/go.sum | 39 +- .../recordings/TestPostgresqlTestSuite.json | 8306 -- .../privatedns/armprivatedns/assets.json | 6 + .../privatedns/armprivatedns/go.mod | 18 +- .../privatedns/armprivatedns/go.sum | 39 +- .../recordings/TestPrivatednsTestSuite.json | 1466 - .../redis/armredis/assets.json | 6 + sdk/resourcemanager/redis/armredis/go.mod | 18 +- sdk/resourcemanager/redis/armredis/go.sum | 39 +- .../recordings/TestRedisTestSuite.json | 9441 -- .../armdeploymentscripts/assets.json | 6 + .../resources/armdeploymentscripts/go.mod | 18 +- .../resources/armdeploymentscripts/go.sum | 39 +- .../TestDeploymentScriptsClient.json | 741 - .../resources/armfeatures/assets.json | 6 + .../resources/armfeatures/go.mod | 18 +- .../resources/armfeatures/go.sum | 39 +- .../recordings/TestFeaturesClient.json | 210 - ...ubscriptionFeatureRegistrationsClient.json | 245 - .../resources/armpolicy/assets.json | 6 + .../resources/armpolicy/go.mod | 18 +- .../resources/armpolicy/go.sum | 39 +- .../TestPolicyDefinitionsClient.json | 97806 ---------------- .../resources/armresources/assets.json | 6 + .../resources/armresources/go.mod | 18 +- .../resources/armresources/go.sum | 39 +- .../recordings/TestDeploymentsClient.json | 2680 - .../recordings/TestResourceGroupsClient.json | 430 - .../recordings/TestResourcesClient.json | 496 - .../testdata/recordings/TestTagsClient.json | 357 - .../resources/armsubscriptions/assets.json | 6 + .../resources/armsubscriptions/go.mod | 18 +- .../resources/armsubscriptions/go.sum | 39 +- .../recordings/TestSubscriptionsClient.json | 158 - .../recordings/TestTenantsClient.json | 72 - .../resources/armtemplatespecs/assets.json | 6 + .../resources/armtemplatespecs/go.mod | 18 +- .../resources/armtemplatespecs/go.sum | 39 +- .../TestTemplateSpecVersionsClient.json | 360 - .../recordings/TestTemplateSpecsClient.json | 267 - .../servicebus/armservicebus/assets.json | 6 + .../servicebus/armservicebus/go.mod | 18 +- .../servicebus/armservicebus/go.sum | 37 +- .../armservicebus/namespaces_live_test.go | 198 + .../TestDisasterrecoveryconfigsTestSuite.json | 1163 - .../TestMigrationconfigsTestSuite.json | 997 - .../recordings/TestNamespacesTestSuite.json | 3656 - .../recordings/TestQueuesTestSuite.json | 877 - .../recordings/TestTopicsTestSuite.json | 1255 - .../storage/armstorage/assets.json | 6 + sdk/resourcemanager/storage/armstorage/go.mod | 18 +- sdk/resourcemanager/storage/armstorage/go.sum | 39 +- .../recordings/TestBlobContainersClient.json | 506 - .../TestEncryptionScopesClient.json | 352 - .../TestManagementPoliciesClient.json | 464 - .../recordings/TestOperationsClient.json | 72 - .../testdata/recordings/TestSKUsClient.json | 72 - .../recordings/TestStorageAccountsClient.json | 608 - .../testdata/recordings/TestUsagesClient.json | 72 - 177 files changed, 4273 insertions(+), 333600 deletions(-) create mode 100644 sdk/resourcemanager/apimanagement/armapimanagement/assets.json delete mode 100644 sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimapisTestSuite.json delete mode 100644 sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimapiversionsetsTestSuite.json delete mode 100644 sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimauthorizationserversTestSuite.json delete mode 100644 sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimcachesTestSuite.json delete mode 100644 sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimdeploymentTestSuite.json delete mode 100644 sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimgatewaysTestSuite.json delete mode 100644 sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimgroupsTestSuite.json delete mode 100644 sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimidentityproviderTestSuite.json delete mode 100644 sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimnamedvaluesTestSuite.json delete mode 100644 sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimnotificationsTestSuite.json delete mode 100644 sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimopenidconnectprovidersTestSuite.json delete mode 100644 sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimpoliciesTestSuite.json delete mode 100644 sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimportalrevisionsTestSuite.json delete mode 100644 sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimportalsettingsTestSuite.json delete mode 100644 sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimprivatelinkTestSuite.json delete mode 100644 sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimproductsTestSuite.json delete mode 100644 sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimreportsTestSuite.json delete mode 100644 sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimschemaTestSuite.json delete mode 100644 sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimsubscriptionsTestSuite.json delete mode 100644 sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimtagsTestSuite.json delete mode 100644 sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimtenantTestSuite.json delete mode 100644 sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimusersTestSuite.json create mode 100644 sdk/resourcemanager/cdn/armcdn/assets.json delete mode 100644 sdk/resourcemanager/cdn/armcdn/testdata/recordings/TestAfdxTestSuite.json delete mode 100644 sdk/resourcemanager/cdn/armcdn/testdata/recordings/TestCdnTestSuite.json create mode 100644 sdk/resourcemanager/compute/armcompute/assets.json delete mode 100644 sdk/resourcemanager/compute/armcompute/testdata/recordings/TestAvailabilitySetsClient.json delete mode 100644 sdk/resourcemanager/compute/armcompute/testdata/recordings/TestVirtualMachineScaleSetsClient.json delete mode 100644 sdk/resourcemanager/compute/armcompute/testdata/recordings/TestVirtualMachinesClient.json create mode 100644 sdk/resourcemanager/containerregistry/armcontainerregistry/assets.json create mode 100644 sdk/resourcemanager/containerregistry/armcontainerregistry/containerregistry_build_live_test.go create mode 100644 sdk/resourcemanager/containerregistry/armcontainerregistry/containerregistry_live_test.go delete mode 100644 sdk/resourcemanager/containerregistry/armcontainerregistry/testdata/recordings/TestContainerregistryBuildTestSuite.json delete mode 100644 sdk/resourcemanager/containerregistry/armcontainerregistry/testdata/recordings/TestContainerregistryTestSuite.json create mode 100644 sdk/resourcemanager/containerservice/armcontainerservice/assets.json create mode 100644 sdk/resourcemanager/containerservice/armcontainerservice/managedclusters_live_test.go delete mode 100644 sdk/resourcemanager/containerservice/armcontainerservice/testdata/recordings/TestManagedclustersTestSuite.json create mode 100644 sdk/resourcemanager/cosmos/armcosmos/assets.json delete mode 100644 sdk/resourcemanager/cosmos/armcosmos/testdata/recordings/TestCassandraresourcesTestSuite.json delete mode 100644 sdk/resourcemanager/cosmos/armcosmos/testdata/recordings/TestDatabaseaccountsTestSuite.json delete mode 100644 sdk/resourcemanager/cosmos/armcosmos/testdata/recordings/TestGremlinresourcesTestSuite.json delete mode 100644 sdk/resourcemanager/cosmos/armcosmos/testdata/recordings/TestMongodbresourcesTestSuite.json delete mode 100644 sdk/resourcemanager/cosmos/armcosmos/testdata/recordings/TestPrivateendpointconnectionsTestSuite.json delete mode 100644 sdk/resourcemanager/cosmos/armcosmos/testdata/recordings/TestServiceTestSuite.json delete mode 100644 sdk/resourcemanager/cosmos/armcosmos/testdata/recordings/TestSqlresourcesTestSuite.json delete mode 100644 sdk/resourcemanager/cosmos/armcosmos/testdata/recordings/TestTableresourcesTestSuite.json create mode 100644 sdk/resourcemanager/eventgrid/armeventgrid/assets.json delete mode 100644 sdk/resourcemanager/eventgrid/armeventgrid/testdata/recordings/TestEventGridTestSuite.json create mode 100644 sdk/resourcemanager/eventhub/armeventhub/assets.json delete mode 100644 sdk/resourcemanager/eventhub/armeventhub/testdata/recordings/TestDisasterrecoveryconfigsTestSuite.json delete mode 100644 sdk/resourcemanager/eventhub/armeventhub/testdata/recordings/TestEventhubTestSuite.json create mode 100644 sdk/resourcemanager/keyvault/armkeyvault/assets.json delete mode 100644 sdk/resourcemanager/keyvault/armkeyvault/testdata/recordings/TestKeysClient.json delete mode 100644 sdk/resourcemanager/keyvault/armkeyvault/testdata/recordings/TestSecretsClient.json delete mode 100644 sdk/resourcemanager/keyvault/armkeyvault/testdata/recordings/TestVaultsClient.json create mode 100644 sdk/resourcemanager/monitor/armmonitor/actiongroups_live_test.go create mode 100644 sdk/resourcemanager/monitor/armmonitor/activitylogalerts_live_test.go create mode 100644 sdk/resourcemanager/monitor/armmonitor/assets.json create mode 100644 sdk/resourcemanager/monitor/armmonitor/autoscale_live_test.go create mode 100644 sdk/resourcemanager/monitor/armmonitor/datacollectionendpoints_live_test.go create mode 100644 sdk/resourcemanager/monitor/armmonitor/datacollectionrules_live_test.go create mode 100644 sdk/resourcemanager/monitor/armmonitor/logprofiles_live_test.go create mode 100644 sdk/resourcemanager/monitor/armmonitor/metricalerts_live_test.go create mode 100644 sdk/resourcemanager/monitor/armmonitor/privatelinkscopes_live_test.go delete mode 100644 sdk/resourcemanager/monitor/armmonitor/testdata/recordings/TestActiongroupsTestSuite.json delete mode 100644 sdk/resourcemanager/monitor/armmonitor/testdata/recordings/TestActivitylogalertsTestSuite.json delete mode 100644 sdk/resourcemanager/monitor/armmonitor/testdata/recordings/TestAutoscaleTestSuite.json delete mode 100644 sdk/resourcemanager/monitor/armmonitor/testdata/recordings/TestDatacollectionendpointsTestSuite.json delete mode 100644 sdk/resourcemanager/monitor/armmonitor/testdata/recordings/TestDatacollectionrulesTestSuite.json delete mode 100644 sdk/resourcemanager/monitor/armmonitor/testdata/recordings/TestLogprofilesTestSuite.json delete mode 100644 sdk/resourcemanager/monitor/armmonitor/testdata/recordings/TestMetricalertsTestSuite.json delete mode 100644 sdk/resourcemanager/monitor/armmonitor/testdata/recordings/TestPrivatelinkscopesTestSuite.json delete mode 100644 sdk/resourcemanager/monitor/armmonitor/testdata/recordings/TestScheduledqueryrulesTestSuite.json create mode 100644 sdk/resourcemanager/network/armnetwork/assets.json delete mode 100644 sdk/resourcemanager/network/armnetwork/testdata/recordings/TestIPGroupsClient.json delete mode 100644 sdk/resourcemanager/network/armnetwork/testdata/recordings/TestSubnetsClient.json delete mode 100644 sdk/resourcemanager/network/armnetwork/testdata/recordings/TestVirtualNetworksClient.json create mode 100644 sdk/resourcemanager/operationalinsights/armoperationalinsights/assets.json delete mode 100644 sdk/resourcemanager/operationalinsights/armoperationalinsights/testdata/recordings/TestClustersTestSuite.json delete mode 100644 sdk/resourcemanager/operationalinsights/armoperationalinsights/testdata/recordings/TestDataExportsTestSuite.json delete mode 100644 sdk/resourcemanager/operationalinsights/armoperationalinsights/testdata/recordings/TestDataSourcesTestSuite.json delete mode 100644 sdk/resourcemanager/operationalinsights/armoperationalinsights/testdata/recordings/TestIntelligencePacksTestSuite.json delete mode 100644 sdk/resourcemanager/operationalinsights/armoperationalinsights/testdata/recordings/TestLinkedServicesTestSuite.json delete mode 100644 sdk/resourcemanager/operationalinsights/armoperationalinsights/testdata/recordings/TestLinkedStorageAccountsTestSuite.json delete mode 100644 sdk/resourcemanager/operationalinsights/armoperationalinsights/testdata/recordings/TestSavedSearchesTestSuite.json delete mode 100644 sdk/resourcemanager/operationalinsights/armoperationalinsights/testdata/recordings/TestStorageInsightConfigsTestSuite.json delete mode 100644 sdk/resourcemanager/operationalinsights/armoperationalinsights/testdata/recordings/TestWorkspacesTestSuite.json create mode 100644 sdk/resourcemanager/postgresql/armpostgresql/assets.json delete mode 100644 sdk/resourcemanager/postgresql/armpostgresql/testdata/recordings/TestPostgresqlTestSuite.json create mode 100644 sdk/resourcemanager/privatedns/armprivatedns/assets.json delete mode 100644 sdk/resourcemanager/privatedns/armprivatedns/testdata/recordings/TestPrivatednsTestSuite.json create mode 100644 sdk/resourcemanager/redis/armredis/assets.json delete mode 100644 sdk/resourcemanager/redis/armredis/testdata/recordings/TestRedisTestSuite.json create mode 100644 sdk/resourcemanager/resources/armdeploymentscripts/assets.json delete mode 100644 sdk/resourcemanager/resources/armdeploymentscripts/testdata/recordings/TestDeploymentScriptsClient.json create mode 100644 sdk/resourcemanager/resources/armfeatures/assets.json delete mode 100644 sdk/resourcemanager/resources/armfeatures/testdata/recordings/TestFeaturesClient.json delete mode 100644 sdk/resourcemanager/resources/armfeatures/testdata/recordings/TestSubscriptionFeatureRegistrationsClient.json create mode 100644 sdk/resourcemanager/resources/armpolicy/assets.json delete mode 100644 sdk/resourcemanager/resources/armpolicy/testdata/recordings/TestPolicyDefinitionsClient.json create mode 100644 sdk/resourcemanager/resources/armresources/assets.json delete mode 100644 sdk/resourcemanager/resources/armresources/testdata/recordings/TestDeploymentsClient.json delete mode 100644 sdk/resourcemanager/resources/armresources/testdata/recordings/TestResourceGroupsClient.json delete mode 100644 sdk/resourcemanager/resources/armresources/testdata/recordings/TestResourcesClient.json delete mode 100644 sdk/resourcemanager/resources/armresources/testdata/recordings/TestTagsClient.json create mode 100644 sdk/resourcemanager/resources/armsubscriptions/assets.json delete mode 100644 sdk/resourcemanager/resources/armsubscriptions/testdata/recordings/TestSubscriptionsClient.json delete mode 100644 sdk/resourcemanager/resources/armsubscriptions/testdata/recordings/TestTenantsClient.json create mode 100644 sdk/resourcemanager/resources/armtemplatespecs/assets.json delete mode 100644 sdk/resourcemanager/resources/armtemplatespecs/testdata/recordings/TestTemplateSpecVersionsClient.json delete mode 100644 sdk/resourcemanager/resources/armtemplatespecs/testdata/recordings/TestTemplateSpecsClient.json create mode 100644 sdk/resourcemanager/servicebus/armservicebus/assets.json create mode 100644 sdk/resourcemanager/servicebus/armservicebus/namespaces_live_test.go delete mode 100644 sdk/resourcemanager/servicebus/armservicebus/testdata/recordings/TestDisasterrecoveryconfigsTestSuite.json delete mode 100644 sdk/resourcemanager/servicebus/armservicebus/testdata/recordings/TestMigrationconfigsTestSuite.json delete mode 100644 sdk/resourcemanager/servicebus/armservicebus/testdata/recordings/TestNamespacesTestSuite.json delete mode 100644 sdk/resourcemanager/servicebus/armservicebus/testdata/recordings/TestQueuesTestSuite.json delete mode 100644 sdk/resourcemanager/servicebus/armservicebus/testdata/recordings/TestTopicsTestSuite.json create mode 100644 sdk/resourcemanager/storage/armstorage/assets.json delete mode 100644 sdk/resourcemanager/storage/armstorage/testdata/recordings/TestBlobContainersClient.json delete mode 100644 sdk/resourcemanager/storage/armstorage/testdata/recordings/TestEncryptionScopesClient.json delete mode 100644 sdk/resourcemanager/storage/armstorage/testdata/recordings/TestManagementPoliciesClient.json delete mode 100644 sdk/resourcemanager/storage/armstorage/testdata/recordings/TestOperationsClient.json delete mode 100644 sdk/resourcemanager/storage/armstorage/testdata/recordings/TestSKUsClient.json delete mode 100644 sdk/resourcemanager/storage/armstorage/testdata/recordings/TestStorageAccountsClient.json delete mode 100644 sdk/resourcemanager/storage/armstorage/testdata/recordings/TestUsagesClient.json diff --git a/sdk/resourcemanager/apimanagement/armapimanagement/assets.json b/sdk/resourcemanager/apimanagement/armapimanagement/assets.json new file mode 100644 index 000000000000..f762d815f502 --- /dev/null +++ b/sdk/resourcemanager/apimanagement/armapimanagement/assets.json @@ -0,0 +1,6 @@ +{ + "AssetsRepo": "Azure/azure-sdk-assets", + "AssetsRepoPrefixPath": "go", + "TagPrefix": "go/resourcemanager/apimanagement/armapimanagement", + "Tag": "go/resourcemanager/apimanagement/armapimanagement_6cd1d7f3f3" +} diff --git a/sdk/resourcemanager/apimanagement/armapimanagement/go.mod b/sdk/resourcemanager/apimanagement/armapimanagement/go.mod index 96a984102d6e..4042f1aea87e 100644 --- a/sdk/resourcemanager/apimanagement/armapimanagement/go.mod +++ b/sdk/resourcemanager/apimanagement/armapimanagement/go.mod @@ -3,27 +3,27 @@ module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/apimanagement/armap go 1.18 require ( - github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.0 - github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.0.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.1 + github.com/Azure/azure-sdk-for-go/sdk/azcore v1.4.0 + github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.2 github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0 github.com/stretchr/testify v1.7.0 ) require ( - 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/Azure/azure-sdk-for-go/sdk/internal v1.2.0 // indirect + github.com/AzureAD/microsoft-authentication-library-for-go v0.7.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/dnaeon/go-vcr v1.1.0 // indirect - github.com/golang-jwt/jwt v3.2.1+incompatible // indirect + github.com/golang-jwt/jwt/v4 v4.4.2 // 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 github.com/pmezard/go-difflib v1.0.0 // 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 + golang.org/x/net v0.7.0 // indirect + golang.org/x/sys v0.5.0 // indirect + golang.org/x/text v0.7.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect ) diff --git a/sdk/resourcemanager/apimanagement/armapimanagement/go.sum b/sdk/resourcemanager/apimanagement/armapimanagement/go.sum index 07096d31831b..b0f97586a165 100644 --- a/sdk/resourcemanager/apimanagement/armapimanagement/go.sum +++ b/sdk/resourcemanager/apimanagement/armapimanagement/go.sum @@ -1,29 +1,27 @@ -github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.0 h1:Ut0ZGdOwJDw0npYEg+TLlPls3Pq6JiZaP2/aGKir7Zw= -github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.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/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.1 h1:BZOe7ExNYNGmapT91ZUrxtMYsqVljMxTHEnwjOdG7pk= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.1/go.mod h1:TSPEzbGHEgqFa3kUn09SpCrfKNbj7+mMulU/72Vg84E= +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.0 h1:t/W5MYAuQy81cvM8VUNfRLzhtKpXhVUAN7Cd7KVbTyc= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.0/go.mod h1:NBanQUfSWiWn3QEpWDTCU0IjBECKOYvl2R8xdRtMtiM= +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/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.2 h1:mLY+pNLjCUeKhgnAJWAKhEUQM+RJQo2H1fuGSw1Ky1E= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.2/go.mod h1:FbdwsQ2EzwvXxOPcMFYO8ogEc9uMMIj3YkmCdXdAFmk= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0 h1:ECsQtyERDVz3NP3kvDOTLvbQhqWp/x9EsGKtb4ogUr8= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0/go.mod h1:s1tW/At+xHqjNFvWU4G0c0Qv33KOhvbGNj0RCTQDV8s= -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/AzureAD/microsoft-authentication-library-for-go v0.7.0 h1:VgSJlZH5u0k2qxSpqyghcFQKmvYckj46uymKK5XzkBM= +github.com/AzureAD/microsoft-authentication-library-for-go v0.7.0/go.mod h1:BDJ5qMFKx9DugEg3+uQSDCdbYPr5s9vBTrL9P8TpqOU= 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/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 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= +github.com/golang-jwt/jwt/v4 v4.4.2 h1:rcc4lwaZgFMCZ5jxF9ABolDcIHdBytAFgqFPbSJQAYs= +github.com/golang-jwt/jwt/v4 v4.4.2/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= 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= @@ -33,13 +31,12 @@ github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5Cc github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= 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-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/net v0.7.0 h1:rJrUqqhjsgNp7KqAIc25s9pZnjU7TUcSY7HcVZjdn1g= +golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= +golang.org/x/sys v0.5.0 h1:MUK/U/4lj1t1oPg0HfuXDN/Z1wv31ZJ/YcPiGccS4DU= +golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/text v0.7.0 h1:4BRB4x83lYWy72KwLD/qYDuTu7q9PjSagHvijDw7cLo= +golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= 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= diff --git a/sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimapisTestSuite.json b/sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimapisTestSuite.json deleted file mode 100644 index a5b4b22e6dbf..000000000000 --- a/sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimapisTestSuite.json +++ /dev/null @@ -1,3664 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 08:53:39 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T085339Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "westus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN?api-version=2021-08-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "172", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus", - "properties": { - "publisherEmail": "foo@contoso.com", - "publisherName": "foo" - }, - "sku": { - "capacity": 1, - "name": "Standard" - }, - "tags": { - "Name": "Contoso", - "Test": "User" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "1752", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 08:53:48 GMT", - "ETag": "\u0022AAAAAAA90G4=\u0022", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-request-id": [ - "00000000-0000-0000-0000-000000000000", - "28753cb2-10c5-4c6c-a1b2-8a348b0a6eb1" - ], - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T085348Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN", - "name": "servicenamsdGYeN", - "type": "Microsoft.ApiManagement/service", - "tags": { - "Name": "Contoso", - "Test": "User" - }, - "location": "West US", - "etag": "AAAAAAA90G4=", - "properties": { - "publisherEmail": "foo@contoso.com", - "publisherName": "foo", - "notificationSenderEmail": "apimgmt-noreply@mail.windowsazure.com", - "provisioningState": "Created", - "targetProvisioningState": "Activating", - "createdAtUtc": "2022-10-21T08:53:43.6265935Z", - "gatewayUrl": "https://servicenamsdgyen.azure-api.net", - "gatewayRegionalUrl": null, - "portalUrl": null, - "developerPortalUrl": null, - "managementApiUrl": null, - "scmUrl": null, - "hostnameConfigurations": [ - { - "type": "Proxy", - "hostName": "servicenamsdgyen.azure-api.net", - "encodedCertificate": null, - "keyVaultId": null, - "certificatePassword": null, - "negotiateClientCertificate": false, - "certificate": null, - "defaultSslBinding": true, - "identityClientId": null, - "certificateSource": "BuiltIn", - "certificateStatus": null - } - ], - "publicIPAddresses": null, - "privateIPAddresses": null, - "additionalLocations": null, - "virtualNetworkConfiguration": null, - "customProperties": null, - "virtualNetworkType": "None", - "certificates": null, - "disableGateway": false, - "apiVersionConstraint": { - "minApiVersion": null - }, - "publicIpAddressId": null, - "publicNetworkAccess": "Enabled", - "privateEndpointConnections": null, - "platformVersion": "undetermined" - }, - "sku": { - "name": "Standard", - "capacity": 1 - }, - "identity": null, - "zones": null, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-21T08:53:42.861642Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-21T08:53:42.861642Z" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 08:54:49 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11999", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T085449Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 08:55:50 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11998", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T085551Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 08:57:04 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11999", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T085705Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 08:58:05 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11998", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T085806Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 08:59:06 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11997", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T085906Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 09:00:07 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11996", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T090007Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 09:01:08 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11995", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T090108Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 09:02:09 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11994", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T090209Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 09:03:09 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11993", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T090310Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 09:04:11 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11992", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T090411Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 09:05:11 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11991", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T090512Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 09:06:13 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11990", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T090613Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 09:07:14 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11989", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T090714Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 09:08:15 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11988", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T090815Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 09:09:15 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11987", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T090916Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 09:10:16 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11986", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T091017Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 09:11:17 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11985", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T091118Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 09:12:18 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11984", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T091218Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 09:13:19 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11983", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T091319Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 09:14:20 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11982", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T091420Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 09:15:22 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11981", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T091522Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 09:16:22 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11980", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T091623Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 09:17:23 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11979", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T091724Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 09:18:24 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11978", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T091825Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 09:19:25 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11977", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T091926Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 09:20:27 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11976", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T092027Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 09:21:27 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11975", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T092128Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 09:22:28 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11974", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T092229Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 09:23:29 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11973", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T092330Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 09:24:30 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11972", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T092431Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 09:25:31 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11971", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T092532Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 09:26:32 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11970", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T092633Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 09:27:34 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11969", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T092734Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 09:28:35 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11968", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T092835Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 09:29:36 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11967", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T092936Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 09:30:37 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11966", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T093037Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 09:31:37 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11965", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T093138Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 09:32:38 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11964", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T093239Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 09:33:39 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11963", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T093340Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 09:34:41 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11962", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T093441Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 09:35:42 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11961", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T093542Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 09:36:43 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11960", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T093643Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN", - "name": "servicenamsdGYeN", - "type": "Microsoft.ApiManagement/service", - "tags": { - "Name": "Contoso", - "Test": "User" - }, - "location": "West US", - "etag": "AAAAAAA90OY=", - "properties": { - "publisherEmail": "foo@contoso.com", - "publisherName": "foo", - "notificationSenderEmail": "apimgmt-noreply@mail.windowsazure.com", - "provisioningState": "Succeeded", - "targetProvisioningState": "", - "createdAtUtc": "2022-10-21T08:53:43.6265935Z", - "gatewayUrl": "https://servicenamsdgyen.azure-api.net", - "gatewayRegionalUrl": "https://servicenamsdgyen-westus-01.regional.azure-api.net", - "portalUrl": "https://servicenamsdgyen.portal.azure-api.net", - "developerPortalUrl": "https://servicenamsdgyen.developer.azure-api.net", - "managementApiUrl": "https://servicenamsdgyen.management.azure-api.net", - "scmUrl": "https://servicenamsdgyen.scm.azure-api.net", - "hostnameConfigurations": [ - { - "type": "Proxy", - "hostName": "servicenamsdgyen.azure-api.net", - "encodedCertificate": null, - "keyVaultId": null, - "certificatePassword": null, - "negotiateClientCertificate": false, - "certificate": null, - "defaultSslBinding": true, - "identityClientId": null, - "certificateSource": "BuiltIn", - "certificateStatus": null - } - ], - "publicIPAddresses": [ - "20.237.229.170" - ], - "privateIPAddresses": null, - "additionalLocations": null, - "virtualNetworkConfiguration": null, - "customProperties": { - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Ssl30": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TripleDes168": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls10": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls11": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Ssl30": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Protocols.Server.Http2": "False" - }, - "virtualNetworkType": "None", - "certificates": null, - "disableGateway": false, - "apiVersionConstraint": { - "minApiVersion": null - }, - "publicIpAddressId": null, - "publicNetworkAccess": "Enabled", - "privateEndpointConnections": null, - "platformVersion": "stv2" - }, - "sku": { - "name": "Standard", - "capacity": 1 - }, - "identity": null, - "zones": null, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-21T08:53:42.861642Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-21T08:53:42.861642Z" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apis/apiidsdGYeN?api-version=2021-08-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "163", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "format": "openapi-link", - "path": "petstore", - "value": "https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/examples/v3.0/petstore.yaml" - } - }, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 09:36:50 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apis/apiidsdGYeN?api-version=2021-08-01\u0026asyncId=6352682f01234e1ad8b90db0\u0026asyncCode=201", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T093650Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apis/apiidsdGYeN?api-version=2021-08-01\u0026asyncId=6352682f01234e1ad8b90db0\u0026asyncCode=201", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 09:36:51 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apis/apiidsdGYeN?api-version=2021-08-01\u0026asyncId=6352682f01234e1ad8b90db0\u0026asyncCode=201", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11959", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T093651Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apis/apiidsdGYeN?api-version=2021-08-01\u0026asyncId=6352682f01234e1ad8b90db0\u0026asyncCode=201", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "826", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 09:37:21 GMT", - "ETag": "\u0022AAAAAAAACSM=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11958", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T093722Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apis/apiidsdGYeN", - "type": "Microsoft.ApiManagement/service/apis", - "name": "apiidsdGYeN", - "properties": { - "displayName": "Swagger Petstore", - "apiRevision": "1", - "description": null, - "subscriptionRequired": true, - "serviceUrl": "http://petstore.swagger.io/v1", - "path": "petstore", - "protocols": [ - "https" - ], - "authenticationSettings": { - "oAuth2": null, - "openid": null - }, - "subscriptionKeyParameterNames": { - "header": "Ocp-Apim-Subscription-Key", - "query": "subscription-key" - }, - "license": { - "name": "MIT", - "url": null - }, - "isCurrent": true - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apis/apiidsdGYeN/operations/operationisdGYeN?api-version=2021-08-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "186", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "displayName": "example operation", - "method": "GET", - "templateParameters": [ - { - "description": "user id", - "name": "uid", - "type": "string" - } - ], - "urlTemplate": "/operation/customers/{uid}" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "772", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 09:37:23 GMT", - "ETag": "\u0022AAAAAAAACTo=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T093724Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apis/apiidsdGYeN/operations/operationisdGYeN", - "type": "Microsoft.ApiManagement/service/apis/operations", - "name": "operationisdGYeN", - "properties": { - "displayName": "example operation", - "method": "GET", - "urlTemplate": "/operation/customers/{uid}", - "templateParameters": [ - { - "name": "uid", - "description": "user id", - "type": "string", - "values": [] - } - ], - "description": null, - "request": { - "queryParameters": [], - "headers": [], - "representations": [] - }, - "responses": [], - "policies": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apis/apiidsdGYeN?api-version=2021-08-01", - "RequestMethod": "HEAD", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 09:37:24 GMT", - "ETag": "\u0022AAAAAAAACSM=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11957", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T093724Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apis?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 09:37:24 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11956", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T093725Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apis/echo-api", - "type": "Microsoft.ApiManagement/service/apis", - "name": "echo-api", - "properties": { - "displayName": "Echo API", - "apiRevision": "1", - "description": null, - "subscriptionRequired": true, - "serviceUrl": "http://echoapi.cloudapp.net/api", - "path": "echo", - "protocols": [ - "https" - ], - "authenticationSettings": { - "oAuth2": null, - "openid": null - }, - "subscriptionKeyParameterNames": { - "header": "Ocp-Apim-Subscription-Key", - "query": "subscription-key" - }, - "isCurrent": true - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apis/apiidsdGYeN", - "type": "Microsoft.ApiManagement/service/apis", - "name": "apiidsdGYeN", - "properties": { - "displayName": "Swagger Petstore", - "apiRevision": "1", - "description": null, - "subscriptionRequired": true, - "serviceUrl": "http://petstore.swagger.io/v1", - "path": "petstore", - "protocols": [ - "https" - ], - "authenticationSettings": { - "oAuth2": null, - "openid": null - }, - "subscriptionKeyParameterNames": { - "header": "Ocp-Apim-Subscription-Key", - "query": "subscription-key" - }, - "license": { - "name": "MIT", - "url": null - }, - "isCurrent": true - } - } - ], - "count": 2 - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apisByTags?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 09:37:25 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11955", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T093726Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [], - "count": 0, - "nextLink": null - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apis/apiidsdGYeN?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 09:37:26 GMT", - "ETag": "\u0022AAAAAAAACSM=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11954", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T093726Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apis/apiidsdGYeN", - "type": "Microsoft.ApiManagement/service/apis", - "name": "apiidsdGYeN", - "properties": { - "displayName": "Swagger Petstore", - "apiRevision": "1", - "description": null, - "subscriptionRequired": true, - "serviceUrl": "http://petstore.swagger.io/v1", - "path": "petstore", - "protocols": [ - "https" - ], - "authenticationSettings": { - "oAuth2": null, - "openid": null - }, - "subscriptionKeyParameterNames": { - "header": "Ocp-Apim-Subscription-Key", - "query": "subscription-key" - }, - "license": { - "name": "MIT", - "url": null - }, - "isCurrent": true - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apis/apiidsdGYeN?api-version=2021-08-01", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "110", - "Content-Type": "application/json", - "If-Match": "*", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "displayName": "Echo API New", - "path": "newecho", - "serviceUrl": "http://echoapi.cloudapp.net/api2" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 09:37:27 GMT", - "ETag": "\u0022AAAAAAAACT0=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1197", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T093728Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apis/apiidsdGYeN", - "type": "Microsoft.ApiManagement/service/apis", - "name": "apiidsdGYeN", - "properties": { - "displayName": "Echo API New", - "apiRevision": "1", - "description": null, - "subscriptionRequired": true, - "serviceUrl": "http://echoapi.cloudapp.net/api2", - "path": "newecho", - "protocols": [ - "https" - ], - "authenticationSettings": { - "oAuth2": null, - "openid": null - }, - "subscriptionKeyParameterNames": { - "header": "Ocp-Apim-Subscription-Key", - "query": "subscription-key" - }, - "license": { - "name": "MIT", - "url": null - }, - "isCurrent": true - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apis/apiidsdGYeN/operations/operationisdGYeN?api-version=2021-08-01", - "RequestMethod": "HEAD", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 09:37:28 GMT", - "ETag": "\u0022AAAAAAAACTo=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11953", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T093729Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apis/apiidsdGYeN/operations?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 09:37:29 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11952", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T093730Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apis/apiidsdGYeN/operations/createPets", - "type": "Microsoft.ApiManagement/service/apis/operations", - "name": "createPets", - "properties": { - "displayName": "Create a pet", - "method": "POST", - "urlTemplate": "/pets", - "templateParameters": [], - "description": "Create a pet", - "responses": [ - { - "statusCode": 201, - "description": "Null response", - "representations": [], - "headers": [] - }, - { - "statusCode": 400, - "description": "unexpected error", - "representations": [ - { - "contentType": "application/json", - "examples": { - "default": { - "value": { - "code": 0, - "message": "string" - } - } - }, - "schemaId": "6352682e01234e1ad8b90daf", - "typeName": "Error", - "generatedSample": "{\r\n \u0022code\u0022: 0,\r\n \u0022message\u0022: \u0022string\u0022\r\n}", - "sample": "{\r\n \u0022code\u0022: 0,\r\n \u0022message\u0022: \u0022string\u0022\r\n}" - } - ], - "headers": [] - }, - { - "statusCode": 500, - "description": "unexpected error", - "representations": [ - { - "contentType": "application/json", - "examples": { - "default": { - "value": { - "code": 0, - "message": "string" - } - } - }, - "schemaId": "6352682e01234e1ad8b90daf", - "typeName": "Error", - "generatedSample": "{\r\n \u0022code\u0022: 0,\r\n \u0022message\u0022: \u0022string\u0022\r\n}", - "sample": "{\r\n \u0022code\u0022: 0,\r\n \u0022message\u0022: \u0022string\u0022\r\n}" - } - ], - "headers": [] - } - ], - "policies": null - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apis/apiidsdGYeN/operations/operationisdGYeN", - "type": "Microsoft.ApiManagement/service/apis/operations", - "name": "operationisdGYeN", - "properties": { - "displayName": "example operation", - "method": "GET", - "urlTemplate": "/operation/customers/{uid}", - "templateParameters": [ - { - "name": "uid", - "description": "user id", - "type": "string", - "values": [] - } - ], - "description": null, - "responses": [], - "policies": null - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apis/apiidsdGYeN/operations/showPetById", - "type": "Microsoft.ApiManagement/service/apis/operations", - "name": "showPetById", - "properties": { - "displayName": "Info for a specific pet", - "method": "GET", - "urlTemplate": "/pets/{petId}", - "templateParameters": [ - { - "name": "petId", - "description": "The id of the pet to retrieve", - "type": "string", - "required": true, - "values": [], - "schemaId": "6352682e01234e1ad8b90daf", - "typeName": "Pets-petId-GetRequest" - } - ], - "description": "Info for a specific pet", - "responses": [ - { - "statusCode": 200, - "description": "Expected response to a valid request", - "representations": [ - { - "contentType": "application/json", - "examples": { - "default": { - "value": { - "id": 0, - "name": "string", - "tag": "string" - } - } - }, - "schemaId": "6352682e01234e1ad8b90daf", - "typeName": "Pet", - "generatedSample": "{\r\n \u0022id\u0022: 0,\r\n \u0022name\u0022: \u0022string\u0022,\r\n \u0022tag\u0022: \u0022string\u0022\r\n}", - "sample": "{\r\n \u0022id\u0022: 0,\r\n \u0022name\u0022: \u0022string\u0022,\r\n \u0022tag\u0022: \u0022string\u0022\r\n}" - } - ], - "headers": [] - }, - { - "statusCode": 400, - "description": "unexpected error", - "representations": [ - { - "contentType": "application/json", - "examples": { - "default": { - "value": { - "code": 0, - "message": "string" - } - } - }, - "schemaId": "6352682e01234e1ad8b90daf", - "typeName": "Error", - "generatedSample": "{\r\n \u0022code\u0022: 0,\r\n \u0022message\u0022: \u0022string\u0022\r\n}", - "sample": "{\r\n \u0022code\u0022: 0,\r\n \u0022message\u0022: \u0022string\u0022\r\n}" - } - ], - "headers": [] - }, - { - "statusCode": 500, - "description": "unexpected error", - "representations": [ - { - "contentType": "application/json", - "examples": { - "default": { - "value": { - "code": 0, - "message": "string" - } - } - }, - "schemaId": "6352682e01234e1ad8b90daf", - "typeName": "Error", - "generatedSample": "{\r\n \u0022code\u0022: 0,\r\n \u0022message\u0022: \u0022string\u0022\r\n}", - "sample": "{\r\n \u0022code\u0022: 0,\r\n \u0022message\u0022: \u0022string\u0022\r\n}" - } - ], - "headers": [] - } - ], - "policies": null - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apis/apiidsdGYeN/operations/listPets", - "type": "Microsoft.ApiManagement/service/apis/operations", - "name": "listPets", - "properties": { - "displayName": "List all pets", - "method": "GET", - "urlTemplate": "/pets", - "templateParameters": [], - "description": "List all pets", - "request": { - "queryParameters": [ - { - "name": "limit", - "description": "Format - int32. How many items to return at one time (max 100)", - "type": "integer", - "values": [], - "schemaId": "6352682e01234e1ad8b90daf", - "typeName": "PetsGetRequest" - } - ], - "headers": [], - "representations": [] - }, - "responses": [ - { - "statusCode": 200, - "description": "A paged array of pets", - "representations": [ - { - "contentType": "application/json", - "examples": { - "default": { - "value": [ - { - "id": 0, - "name": "string", - "tag": "string" - } - ] - } - }, - "schemaId": "6352682e01234e1ad8b90daf", - "typeName": "Pets", - "generatedSample": "[\r\n {\r\n \u0022id\u0022: 0,\r\n \u0022name\u0022: \u0022string\u0022,\r\n \u0022tag\u0022: \u0022string\u0022\r\n }\r\n]", - "sample": "[\r\n {\r\n \u0022id\u0022: 0,\r\n \u0022name\u0022: \u0022string\u0022,\r\n \u0022tag\u0022: \u0022string\u0022\r\n }\r\n]" - } - ], - "headers": [ - { - "name": "x-next", - "description": "A link to the next page of responses", - "type": "string", - "values": [], - "schemaId": "6352682e01234e1ad8b90daf", - "typeName": "PetsGet200x-nextResponseHeader" - } - ] - }, - { - "statusCode": 400, - "description": "unexpected error", - "representations": [ - { - "contentType": "application/json", - "examples": { - "default": { - "value": { - "code": 0, - "message": "string" - } - } - }, - "schemaId": "6352682e01234e1ad8b90daf", - "typeName": "Error", - "generatedSample": "{\r\n \u0022code\u0022: 0,\r\n \u0022message\u0022: \u0022string\u0022\r\n}", - "sample": "{\r\n \u0022code\u0022: 0,\r\n \u0022message\u0022: \u0022string\u0022\r\n}" - } - ], - "headers": [] - }, - { - "statusCode": 500, - "description": "unexpected error", - "representations": [ - { - "contentType": "application/json", - "examples": { - "default": { - "value": { - "code": 0, - "message": "string" - } - } - }, - "schemaId": "6352682e01234e1ad8b90daf", - "typeName": "Error", - "generatedSample": "{\r\n \u0022code\u0022: 0,\r\n \u0022message\u0022: \u0022string\u0022\r\n}", - "sample": "{\r\n \u0022code\u0022: 0,\r\n \u0022message\u0022: \u0022string\u0022\r\n}" - } - ], - "headers": [] - } - ], - "policies": null - } - } - ], - "count": 4 - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apis/apiidsdGYeN/operations/operationisdGYeN?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 09:37:30 GMT", - "ETag": "\u0022AAAAAAAACTo=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11951", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T093731Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apis/apiidsdGYeN/operations/operationisdGYeN", - "type": "Microsoft.ApiManagement/service/apis/operations", - "name": "operationisdGYeN", - "properties": { - "displayName": "example operation", - "method": "GET", - "urlTemplate": "/operation/customers/{uid}", - "templateParameters": [ - { - "name": "uid", - "description": "user id", - "type": "string", - "required": true, - "values": [] - } - ], - "description": null, - "request": { - "queryParameters": [], - "headers": [], - "representations": [] - }, - "responses": [], - "policies": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apis/apiidsdGYeN/operations/operationisdGYeN?api-version=2021-08-01", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "51", - "Content-Type": "application/json", - "If-Match": "*", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "description": "update description" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 09:37:32 GMT", - "ETag": "\u0022AAAAAAAACUI=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1196", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T093732Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apis/apiidsdGYeN/operations/operationisdGYeN", - "type": "Microsoft.ApiManagement/service/apis/operations", - "name": "operationisdGYeN", - "properties": { - "displayName": "example operation", - "method": "GET", - "urlTemplate": "/operation/customers/{uid}", - "templateParameters": [ - { - "name": "uid", - "description": "user id", - "type": "string", - "required": true, - "values": [] - } - ], - "description": "update description", - "request": { - "queryParameters": [], - "headers": [], - "representations": [] - }, - "responses": [], - "policies": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apis/apiidsdGYeN/operations/operationisdGYeN/policies/policy?api-version=2021-08-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "204", - "Content-Type": "application/json", - "If-Match": "*", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "value": "\u003Cpolicies\u003E \u003Cinbound /\u003E \u003Cbackend\u003E \u003Cforward-request /\u003E \u003C/backend\u003E \u003Coutbound /\u003E\u003C/policies\u003E", - "format": "xml" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "491", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 09:37:33 GMT", - "ETag": "\u0022AAAAAAAACUc=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1195", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T093733Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apis/apiidsdGYeN/operations/operationisdGYeN/policies/policy", - "type": "Microsoft.ApiManagement/service/apis/operations/policies", - "name": "policy", - "properties": { - "value": "\u003Cpolicies\u003E\r\n\t\u003Cinbound /\u003E\r\n\t\u003Cbackend\u003E\r\n\t\t\u003Cforward-request /\u003E\r\n\t\u003C/backend\u003E\r\n\t\u003Coutbound /\u003E\r\n\u003C/policies\u003E", - "format": "xml" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apis/apiidsdGYeN/operations/operationisdGYeN/policies/policy?api-version=2021-08-01", - "RequestMethod": "HEAD", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 09:37:34 GMT", - "ETag": "\u0022AAAAAAAACUc=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11950", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T093734Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apis/apiidsdGYeN/operations/operationisdGYeN/policies?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 09:37:34 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11949", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T093734Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apis/apiidsdGYeN/operations/operationisdGYeN/policies/policy", - "type": "Microsoft.ApiManagement/service/apis/operations/policies", - "name": "policy", - "properties": { - "value": "\u003Cpolicies\u003E\r\n \u003Cinbound /\u003E\r\n \u003Cbackend\u003E\r\n \u003Cforward-request /\u003E\r\n \u003C/backend\u003E\r\n \u003Coutbound /\u003E\r\n\u003C/policies\u003E", - "format": "xml" - } - } - ], - "count": 1 - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apis/apiidsdGYeN/operations/operationisdGYeN/policies/policy?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 09:37:35 GMT", - "ETag": "\u0022AAAAAAAACUc=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11948", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T093735Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apis/apiidsdGYeN/operations/operationisdGYeN/policies/policy", - "type": "Microsoft.ApiManagement/service/apis/operations/policies", - "name": "policy", - "properties": { - "value": "\u003Cpolicies\u003E\r\n\t\u003Cinbound /\u003E\r\n\t\u003Cbackend\u003E\r\n\t\t\u003Cforward-request /\u003E\r\n\t\u003C/backend\u003E\r\n\t\u003Coutbound /\u003E\r\n\u003C/policies\u003E", - "format": "xml" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apis/apiidsdGYeN/operations/operationisdGYeN/policies/policy?api-version=2021-08-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "If-Match": "*", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 09:37:36 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14999", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T093736Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apis/apiidsdGYeN/policies/policy?api-version=2021-08-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "204", - "Content-Type": "application/json", - "If-Match": "*", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "value": "\u003Cpolicies\u003E \u003Cinbound /\u003E \u003Cbackend\u003E \u003Cforward-request /\u003E \u003C/backend\u003E \u003Coutbound /\u003E\u003C/policies\u003E", - "format": "xml" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "452", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 09:37:36 GMT", - "ETag": "\u0022AAAAAAAACVA=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1194", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T093737Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apis/apiidsdGYeN/policies/policy", - "type": "Microsoft.ApiManagement/service/apis/policies", - "name": "policy", - "properties": { - "value": "\u003Cpolicies\u003E\r\n\t\u003Cinbound /\u003E\r\n\t\u003Cbackend\u003E\r\n\t\t\u003Cforward-request /\u003E\r\n\t\u003C/backend\u003E\r\n\t\u003Coutbound /\u003E\r\n\u003C/policies\u003E", - "format": "xml" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apis/apiidsdGYeN/policies/policy?api-version=2021-08-01", - "RequestMethod": "HEAD", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 09:37:37 GMT", - "ETag": "\u0022AAAAAAAACVA=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11947", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T093737Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apis/apiidsdGYeN/policies?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 09:37:37 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11946", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T093738Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apis/apiidsdGYeN/policies/policy", - "type": "Microsoft.ApiManagement/service/apis/policies", - "name": "policy", - "properties": { - "value": "\u003Cpolicies\u003E\r\n \u003Cinbound /\u003E\r\n \u003Cbackend\u003E\r\n \u003Cforward-request /\u003E\r\n \u003C/backend\u003E\r\n \u003Coutbound /\u003E\r\n\u003C/policies\u003E", - "format": "xml" - } - } - ], - "count": 1 - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apis/apiidsdGYeN/policies/policy?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json, application/vnd.ms-azure-apim.policy\u002Bxml, application/vnd.ms-azure-apim.policy.raw\u002Bxml", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 09:37:38 GMT", - "ETag": "\u0022AAAAAAAACVA=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11945", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T093738Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apis/apiidsdGYeN/policies/policy", - "type": "Microsoft.ApiManagement/service/apis/policies", - "name": "policy", - "properties": { - "value": "\u003Cpolicies\u003E\r\n\t\u003Cinbound /\u003E\r\n\t\u003Cbackend\u003E\r\n\t\t\u003Cforward-request /\u003E\r\n\t\u003C/backend\u003E\r\n\t\u003Coutbound /\u003E\r\n\u003C/policies\u003E", - "format": "xml" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apis/apiidsdGYeN/policies/policy?api-version=2021-08-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "If-Match": "*", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 09:37:38 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14998", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T093739Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apis/apiidsdGYeN/releases/releaseidsdGYeN?api-version=2021-08-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "205", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "apiId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apis/apiidsdGYeN", - "notes": "yahooagain" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "625", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 09:37:39 GMT", - "ETag": "\u0022AAAAAAAACVk=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1193", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T093740Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apis/apiidsdGYeN/releases/releaseidsdGYeN", - "type": "Microsoft.ApiManagement/service/apis/releases", - "name": "releaseidsdGYeN", - "properties": { - "apiId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apis/apiidsdGYeN", - "createdDateTime": "2022-10-21T09:37:40.3557798Z", - "updatedDateTime": "2022-10-21T09:37:40.38656Z", - "notes": "yahooagain" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apis/apiidsdGYeN/releases/releaseidsdGYeN?api-version=2021-08-01", - "RequestMethod": "HEAD", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 09:37:40 GMT", - "ETag": "\u0022AAAAAAAACVk=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11944", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T093741Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apis/apiidsdGYeN/releases?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 09:37:40 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11943", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T093741Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apis/apiidsdGYeN/releases/releaseidsdGYeN", - "type": "Microsoft.ApiManagement/service/apis/releases", - "name": "releaseidsdGYeN", - "properties": { - "createdDateTime": "2022-10-21T09:37:40.357Z", - "updatedDateTime": "2022-10-21T09:37:40.387Z", - "notes": "yahooagain" - } - } - ], - "count": 1 - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apis/apiidsdGYeN/releases/releaseidsdGYeN?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 09:37:42 GMT", - "ETag": "\u0022AAAAAAAACVk=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11942", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T093742Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apis/apiidsdGYeN/releases/releaseidsdGYeN", - "type": "Microsoft.ApiManagement/service/apis/releases", - "name": "releaseidsdGYeN", - "properties": { - "apiId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apis/apiidsdGYeN", - "createdDateTime": "2022-10-21T09:37:40.357Z", - "updatedDateTime": "2022-10-21T09:37:40.387Z", - "notes": "yahooagain" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apis/apiidsdGYeN/releases/releaseidsdGYeN?api-version=2021-08-01", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "205", - "Content-Type": "application/json", - "If-Match": "*", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "apiId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apis/apiidsdGYeN", - "notes": "yahooagain" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 09:37:42 GMT", - "ETag": "\u0022AAAAAAAACVk=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1192", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T093743Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apis/apiidsdGYeN/releases/releaseidsdGYeN", - "type": "Microsoft.ApiManagement/service/apis/releases", - "name": "releaseidsdGYeN", - "properties": { - "apiId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apis/apiidsdGYeN", - "createdDateTime": "2022-10-21T09:37:40.357Z", - "updatedDateTime": "2022-10-21T09:37:40.387Z", - "notes": "yahooagain" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apis/apiidsdGYeN/releases/releaseidsdGYeN?api-version=2021-08-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "If-Match": "*", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 09:37:43 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14997", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T093743Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apis/apiidsdGYeN/schemas/schemaidsdGYeN?api-version=2021-08-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "7654", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "contentType": "application/vnd.ms-azure-apim.xsd\u002Bxml", - "document": { - "value": "\u003Cs:schema elementFormDefault=\u0022qualified\u0022 targetNamespace=\u0022http://ws.cdyne.com/WeatherWS/\u0022 xmlns:tns=\u0022http://ws.cdyne.com/WeatherWS/\u0022 xmlns:s=\u0022http://www.w3.org/2001/XMLSchema\u0022 xmlns:soap12=\u0022http://schemas.xmlsoap.org/wsdl/soap12/\u0022 xmlns:mime=\u0022http://schemas.xmlsoap.org/wsdl/mime/\u0022 xmlns:soap=\u0022http://schemas.xmlsoap.org/wsdl/soap/\u0022 xmlns:tm=\u0022http://microsoft.com/wsdl/mime/textMatching/\u0022 xmlns:http=\u0022http://schemas.xmlsoap.org/wsdl/http/\u0022 xmlns:soapenc=\u0022http://schemas.xmlsoap.org/soap/encoding/\u0022 xmlns:wsdl=\u0022http://schemas.xmlsoap.org/wsdl/\u0022 xmlns:apim-wsdltns=\u0022http://ws.cdyne.com/WeatherWS/\u0022\u003E\r\n \u003Cs:element name=\u0022GetWeatherInformation\u0022\u003E\r\n \u003Cs:complexType /\u003E\r\n \u003C/s:element\u003E\r\n \u003Cs:element name=\u0022GetWeatherInformationResponse\u0022\u003E\r\n \u003Cs:complexType\u003E\r\n \u003Cs:sequence\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022GetWeatherInformationResult\u0022 type=\u0022tns:ArrayOfWeatherDescription\u0022 /\u003E\r\n \u003C/s:sequence\u003E\r\n \u003C/s:complexType\u003E\r\n \u003C/s:element\u003E\r\n \u003Cs:complexType name=\u0022ArrayOfWeatherDescription\u0022\u003E\r\n \u003Cs:sequence\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u0022unbounded\u0022 name=\u0022WeatherDescription\u0022 type=\u0022tns:WeatherDescription\u0022 /\u003E\r\n \u003C/s:sequence\u003E\r\n \u003C/s:complexType\u003E\r\n \u003Cs:complexType name=\u0022WeatherDescription\u0022\u003E\r\n \u003Cs:sequence\u003E\r\n \u003Cs:element minOccurs=\u00221\u0022 maxOccurs=\u00221\u0022 name=\u0022WeatherID\u0022 type=\u0022s:short\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022Description\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022PictureURL\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003C/s:sequence\u003E\r\n \u003C/s:complexType\u003E\r\n \u003Cs:element name=\u0022GetCityForecastByZIP\u0022\u003E\r\n \u003Cs:complexType\u003E\r\n \u003Cs:sequence\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022ZIP\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003C/s:sequence\u003E\r\n \u003C/s:complexType\u003E\r\n \u003C/s:element\u003E\r\n \u003Cs:element name=\u0022GetCityForecastByZIPResponse\u0022\u003E\r\n \u003Cs:complexType\u003E\r\n \u003Cs:sequence\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022GetCityForecastByZIPResult\u0022 type=\u0022tns:ForecastReturn\u0022 /\u003E\r\n \u003C/s:sequence\u003E\r\n \u003C/s:complexType\u003E\r\n \u003C/s:element\u003E\r\n \u003Cs:complexType name=\u0022ForecastReturn\u0022\u003E\r\n \u003Cs:sequence\u003E\r\n \u003Cs:element minOccurs=\u00221\u0022 maxOccurs=\u00221\u0022 name=\u0022Success\u0022 type=\u0022s:boolean\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022ResponseText\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022State\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022City\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022WeatherStationCity\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022ForecastResult\u0022 type=\u0022tns:ArrayOfForecast\u0022 /\u003E\r\n \u003C/s:sequence\u003E\r\n \u003C/s:complexType\u003E\r\n \u003Cs:complexType name=\u0022ArrayOfForecast\u0022\u003E\r\n \u003Cs:sequence\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u0022unbounded\u0022 name=\u0022Forecast\u0022 nillable=\u0022true\u0022 type=\u0022tns:Forecast\u0022 /\u003E\r\n \u003C/s:sequence\u003E\r\n \u003C/s:complexType\u003E\r\n \u003Cs:complexType name=\u0022Forecast\u0022\u003E\r\n \u003Cs:sequence\u003E\r\n \u003Cs:element minOccurs=\u00221\u0022 maxOccurs=\u00221\u0022 name=\u0022Date\u0022 type=\u0022s:dateTime\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00221\u0022 maxOccurs=\u00221\u0022 name=\u0022WeatherID\u0022 type=\u0022s:short\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022Desciption\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00221\u0022 maxOccurs=\u00221\u0022 name=\u0022Temperatures\u0022 type=\u0022tns:temp\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00221\u0022 maxOccurs=\u00221\u0022 name=\u0022ProbabilityOfPrecipiation\u0022 type=\u0022tns:POP\u0022 /\u003E\r\n \u003C/s:sequence\u003E\r\n \u003C/s:complexType\u003E\r\n \u003Cs:complexType name=\u0022temp\u0022\u003E\r\n \u003Cs:sequence\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022MorningLow\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022DaytimeHigh\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003C/s:sequence\u003E\r\n \u003C/s:complexType\u003E\r\n \u003Cs:complexType name=\u0022POP\u0022\u003E\r\n \u003Cs:sequence\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022Nighttime\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022Daytime\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003C/s:sequence\u003E\r\n \u003C/s:complexType\u003E\r\n \u003Cs:element name=\u0022GetCityWeatherByZIP\u0022\u003E\r\n \u003Cs:complexType\u003E\r\n \u003Cs:sequence\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022ZIP\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003C/s:sequence\u003E\r\n \u003C/s:complexType\u003E\r\n \u003C/s:element\u003E\r\n \u003Cs:element name=\u0022GetCityWeatherByZIPResponse\u0022\u003E\r\n \u003Cs:complexType\u003E\r\n \u003Cs:sequence\u003E\r\n \u003Cs:element minOccurs=\u00221\u0022 maxOccurs=\u00221\u0022 name=\u0022GetCityWeatherByZIPResult\u0022 type=\u0022tns:WeatherReturn\u0022 /\u003E\r\n \u003C/s:sequence\u003E\r\n \u003C/s:complexType\u003E\r\n \u003C/s:element\u003E\r\n \u003Cs:complexType name=\u0022WeatherReturn\u0022\u003E\r\n \u003Cs:sequence\u003E\r\n \u003Cs:element minOccurs=\u00221\u0022 maxOccurs=\u00221\u0022 name=\u0022Success\u0022 type=\u0022s:boolean\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022ResponseText\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022State\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022City\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022WeatherStationCity\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00221\u0022 maxOccurs=\u00221\u0022 name=\u0022WeatherID\u0022 type=\u0022s:short\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022Description\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022Temperature\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022RelativeHumidity\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022Wind\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022Pressure\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022Visibility\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022WindChill\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022Remarks\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003C/s:sequence\u003E\r\n \u003C/s:complexType\u003E\r\n \u003Cs:element name=\u0022ArrayOfWeatherDescription\u0022 nillable=\u0022true\u0022 type=\u0022tns:ArrayOfWeatherDescription\u0022 /\u003E\r\n \u003Cs:element name=\u0022ForecastReturn\u0022 nillable=\u0022true\u0022 type=\u0022tns:ForecastReturn\u0022 /\u003E\r\n \u003Cs:element name=\u0022WeatherReturn\u0022 type=\u0022tns:WeatherReturn\u0022 /\u003E\r\n\u003C/s:schema\u003E" - } - } - }, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 09:37:44 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apis/apiidsdGYeN/schemas/schemaidsdGYeN?api-version=2021-08-01\u0026asyncId=6352686801234e1ad8b90dbe\u0026asyncCode=201", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1191", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T093744Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apis/apiidsdGYeN/schemas/schemaidsdGYeN?api-version=2021-08-01\u0026asyncId=6352686801234e1ad8b90dbe\u0026asyncCode=201", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "6903", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 09:37:44 GMT", - "ETag": "\u0022AAAAAAAACWc=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11941", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T093745Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apis/apiidsdGYeN/schemas/schemaidsdGYeN", - "type": "Microsoft.ApiManagement/service/apis/schemas", - "name": "schemaidsdGYeN", - "properties": { - "contentType": "application/vnd.ms-azure-apim.xsd\u002Bxml", - "document": { - "value": "\u003Cs:schema elementFormDefault=\u0022qualified\u0022 targetNamespace=\u0022http://ws.cdyne.com/WeatherWS/\u0022 xmlns:tns=\u0022http://ws.cdyne.com/WeatherWS/\u0022 xmlns:s=\u0022http://www.w3.org/2001/XMLSchema\u0022 xmlns:soap12=\u0022http://schemas.xmlsoap.org/wsdl/soap12/\u0022 xmlns:mime=\u0022http://schemas.xmlsoap.org/wsdl/mime/\u0022 xmlns:soap=\u0022http://schemas.xmlsoap.org/wsdl/soap/\u0022 xmlns:tm=\u0022http://microsoft.com/wsdl/mime/textMatching/\u0022 xmlns:http=\u0022http://schemas.xmlsoap.org/wsdl/http/\u0022 xmlns:soapenc=\u0022http://schemas.xmlsoap.org/soap/encoding/\u0022 xmlns:wsdl=\u0022http://schemas.xmlsoap.org/wsdl/\u0022 xmlns:apim-wsdltns=\u0022http://ws.cdyne.com/WeatherWS/\u0022\u003E\r\n \u003Cs:element name=\u0022GetWeatherInformation\u0022\u003E\r\n \u003Cs:complexType /\u003E\r\n \u003C/s:element\u003E\r\n \u003Cs:element name=\u0022GetWeatherInformationResponse\u0022\u003E\r\n \u003Cs:complexType\u003E\r\n \u003Cs:sequence\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022GetWeatherInformationResult\u0022 type=\u0022tns:ArrayOfWeatherDescription\u0022 /\u003E\r\n \u003C/s:sequence\u003E\r\n \u003C/s:complexType\u003E\r\n \u003C/s:element\u003E\r\n \u003Cs:complexType name=\u0022ArrayOfWeatherDescription\u0022\u003E\r\n \u003Cs:sequence\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u0022unbounded\u0022 name=\u0022WeatherDescription\u0022 type=\u0022tns:WeatherDescription\u0022 /\u003E\r\n \u003C/s:sequence\u003E\r\n \u003C/s:complexType\u003E\r\n \u003Cs:complexType name=\u0022WeatherDescription\u0022\u003E\r\n \u003Cs:sequence\u003E\r\n \u003Cs:element minOccurs=\u00221\u0022 maxOccurs=\u00221\u0022 name=\u0022WeatherID\u0022 type=\u0022s:short\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022Description\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022PictureURL\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003C/s:sequence\u003E\r\n \u003C/s:complexType\u003E\r\n \u003Cs:element name=\u0022GetCityForecastByZIP\u0022\u003E\r\n \u003Cs:complexType\u003E\r\n \u003Cs:sequence\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022ZIP\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003C/s:sequence\u003E\r\n \u003C/s:complexType\u003E\r\n \u003C/s:element\u003E\r\n \u003Cs:element name=\u0022GetCityForecastByZIPResponse\u0022\u003E\r\n \u003Cs:complexType\u003E\r\n \u003Cs:sequence\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022GetCityForecastByZIPResult\u0022 type=\u0022tns:ForecastReturn\u0022 /\u003E\r\n \u003C/s:sequence\u003E\r\n \u003C/s:complexType\u003E\r\n \u003C/s:element\u003E\r\n \u003Cs:complexType name=\u0022ForecastReturn\u0022\u003E\r\n \u003Cs:sequence\u003E\r\n \u003Cs:element minOccurs=\u00221\u0022 maxOccurs=\u00221\u0022 name=\u0022Success\u0022 type=\u0022s:boolean\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022ResponseText\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022State\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022City\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022WeatherStationCity\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022ForecastResult\u0022 type=\u0022tns:ArrayOfForecast\u0022 /\u003E\r\n \u003C/s:sequence\u003E\r\n \u003C/s:complexType\u003E\r\n \u003Cs:complexType name=\u0022ArrayOfForecast\u0022\u003E\r\n \u003Cs:sequence\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u0022unbounded\u0022 name=\u0022Forecast\u0022 nillable=\u0022true\u0022 type=\u0022tns:Forecast\u0022 /\u003E\r\n \u003C/s:sequence\u003E\r\n \u003C/s:complexType\u003E\r\n \u003Cs:complexType name=\u0022Forecast\u0022\u003E\r\n \u003Cs:sequence\u003E\r\n \u003Cs:element minOccurs=\u00221\u0022 maxOccurs=\u00221\u0022 name=\u0022Date\u0022 type=\u0022s:dateTime\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00221\u0022 maxOccurs=\u00221\u0022 name=\u0022WeatherID\u0022 type=\u0022s:short\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022Desciption\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00221\u0022 maxOccurs=\u00221\u0022 name=\u0022Temperatures\u0022 type=\u0022tns:temp\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00221\u0022 maxOccurs=\u00221\u0022 name=\u0022ProbabilityOfPrecipiation\u0022 type=\u0022tns:POP\u0022 /\u003E\r\n \u003C/s:sequence\u003E\r\n \u003C/s:complexType\u003E\r\n \u003Cs:complexType name=\u0022temp\u0022\u003E\r\n \u003Cs:sequence\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022MorningLow\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022DaytimeHigh\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003C/s:sequence\u003E\r\n \u003C/s:complexType\u003E\r\n \u003Cs:complexType name=\u0022POP\u0022\u003E\r\n \u003Cs:sequence\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022Nighttime\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022Daytime\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003C/s:sequence\u003E\r\n \u003C/s:complexType\u003E\r\n \u003Cs:element name=\u0022GetCityWeatherByZIP\u0022\u003E\r\n \u003Cs:complexType\u003E\r\n \u003Cs:sequence\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022ZIP\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003C/s:sequence\u003E\r\n \u003C/s:complexType\u003E\r\n \u003C/s:element\u003E\r\n \u003Cs:element name=\u0022GetCityWeatherByZIPResponse\u0022\u003E\r\n \u003Cs:complexType\u003E\r\n \u003Cs:sequence\u003E\r\n \u003Cs:element minOccurs=\u00221\u0022 maxOccurs=\u00221\u0022 name=\u0022GetCityWeatherByZIPResult\u0022 type=\u0022tns:WeatherReturn\u0022 /\u003E\r\n \u003C/s:sequence\u003E\r\n \u003C/s:complexType\u003E\r\n \u003C/s:element\u003E\r\n \u003Cs:complexType name=\u0022WeatherReturn\u0022\u003E\r\n \u003Cs:sequence\u003E\r\n \u003Cs:element minOccurs=\u00221\u0022 maxOccurs=\u00221\u0022 name=\u0022Success\u0022 type=\u0022s:boolean\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022ResponseText\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022State\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022City\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022WeatherStationCity\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00221\u0022 maxOccurs=\u00221\u0022 name=\u0022WeatherID\u0022 type=\u0022s:short\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022Description\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022Temperature\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022RelativeHumidity\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022Wind\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022Pressure\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022Visibility\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022WindChill\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022Remarks\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003C/s:sequence\u003E\r\n \u003C/s:complexType\u003E\r\n \u003Cs:element name=\u0022ArrayOfWeatherDescription\u0022 nillable=\u0022true\u0022 type=\u0022tns:ArrayOfWeatherDescription\u0022 /\u003E\r\n \u003Cs:element name=\u0022ForecastReturn\u0022 nillable=\u0022true\u0022 type=\u0022tns:ForecastReturn\u0022 /\u003E\r\n \u003Cs:element name=\u0022WeatherReturn\u0022 type=\u0022tns:WeatherReturn\u0022 /\u003E\r\n\u003C/s:schema\u003E" - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apis/apiidsdGYeN/schemas/schemaidsdGYeN?api-version=2021-08-01", - "RequestMethod": "HEAD", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 09:37:45 GMT", - "ETag": "\u0022AAAAAAAACWc=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11940", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T093745Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apis/apiidsdGYeN/schemas?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 09:37:45 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11939", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T093746Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apis/apiidsdGYeN/schemas/6352682e01234e1ad8b90daf", - "type": "Microsoft.ApiManagement/service/apis/schemas", - "name": "6352682e01234e1ad8b90daf", - "properties": { - "contentType": "application/vnd.oai.openapi.components\u002Bjson", - "document": { - "components": { - "schemas": { - "Pet": { - "required": [ - "id", - "name" - ], - "type": "object", - "properties": { - "id": { - "type": "integer", - "format": "int64" - }, - "name": { - "type": "string" - }, - "tag": { - "type": "string" - } - } - }, - "Pets": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Pet" - } - }, - "Error": { - "required": [ - "code", - "message" - ], - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32" - }, - "message": { - "type": "string" - } - } - }, - "PetsGetRequest": { - "type": "integer", - "format": "int32", - "x-apim-inline": true - }, - "PetsGet200x-nextResponseHeader": { - "type": "string", - "x-apim-inline": true - }, - "Pets-petId-GetRequest": { - "type": "string", - "x-apim-inline": true - } - } - } - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apis/apiidsdGYeN/schemas/schemaidsdGYeN", - "type": "Microsoft.ApiManagement/service/apis/schemas", - "name": "schemaidsdGYeN", - "properties": { - "contentType": "application/vnd.ms-azure-apim.xsd\u002Bxml", - "document": { - "value": "\u003Cs:schema elementFormDefault=\u0022qualified\u0022 targetNamespace=\u0022http://ws.cdyne.com/WeatherWS/\u0022 xmlns:tns=\u0022http://ws.cdyne.com/WeatherWS/\u0022 xmlns:s=\u0022http://www.w3.org/2001/XMLSchema\u0022 xmlns:soap12=\u0022http://schemas.xmlsoap.org/wsdl/soap12/\u0022 xmlns:mime=\u0022http://schemas.xmlsoap.org/wsdl/mime/\u0022 xmlns:soap=\u0022http://schemas.xmlsoap.org/wsdl/soap/\u0022 xmlns:tm=\u0022http://microsoft.com/wsdl/mime/textMatching/\u0022 xmlns:http=\u0022http://schemas.xmlsoap.org/wsdl/http/\u0022 xmlns:soapenc=\u0022http://schemas.xmlsoap.org/soap/encoding/\u0022 xmlns:wsdl=\u0022http://schemas.xmlsoap.org/wsdl/\u0022 xmlns:apim-wsdltns=\u0022http://ws.cdyne.com/WeatherWS/\u0022\u003E\r\n \u003Cs:element name=\u0022GetWeatherInformation\u0022\u003E\r\n \u003Cs:complexType /\u003E\r\n \u003C/s:element\u003E\r\n \u003Cs:element name=\u0022GetWeatherInformationResponse\u0022\u003E\r\n \u003Cs:complexType\u003E\r\n \u003Cs:sequence\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022GetWeatherInformationResult\u0022 type=\u0022tns:ArrayOfWeatherDescription\u0022 /\u003E\r\n \u003C/s:sequence\u003E\r\n \u003C/s:complexType\u003E\r\n \u003C/s:element\u003E\r\n \u003Cs:complexType name=\u0022ArrayOfWeatherDescription\u0022\u003E\r\n \u003Cs:sequence\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u0022unbounded\u0022 name=\u0022WeatherDescription\u0022 type=\u0022tns:WeatherDescription\u0022 /\u003E\r\n \u003C/s:sequence\u003E\r\n \u003C/s:complexType\u003E\r\n \u003Cs:complexType name=\u0022WeatherDescription\u0022\u003E\r\n \u003Cs:sequence\u003E\r\n \u003Cs:element minOccurs=\u00221\u0022 maxOccurs=\u00221\u0022 name=\u0022WeatherID\u0022 type=\u0022s:short\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022Description\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022PictureURL\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003C/s:sequence\u003E\r\n \u003C/s:complexType\u003E\r\n \u003Cs:element name=\u0022GetCityForecastByZIP\u0022\u003E\r\n \u003Cs:complexType\u003E\r\n \u003Cs:sequence\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022ZIP\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003C/s:sequence\u003E\r\n \u003C/s:complexType\u003E\r\n \u003C/s:element\u003E\r\n \u003Cs:element name=\u0022GetCityForecastByZIPResponse\u0022\u003E\r\n \u003Cs:complexType\u003E\r\n \u003Cs:sequence\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022GetCityForecastByZIPResult\u0022 type=\u0022tns:ForecastReturn\u0022 /\u003E\r\n \u003C/s:sequence\u003E\r\n \u003C/s:complexType\u003E\r\n \u003C/s:element\u003E\r\n \u003Cs:complexType name=\u0022ForecastReturn\u0022\u003E\r\n \u003Cs:sequence\u003E\r\n \u003Cs:element minOccurs=\u00221\u0022 maxOccurs=\u00221\u0022 name=\u0022Success\u0022 type=\u0022s:boolean\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022ResponseText\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022State\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022City\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022WeatherStationCity\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022ForecastResult\u0022 type=\u0022tns:ArrayOfForecast\u0022 /\u003E\r\n \u003C/s:sequence\u003E\r\n \u003C/s:complexType\u003E\r\n \u003Cs:complexType name=\u0022ArrayOfForecast\u0022\u003E\r\n \u003Cs:sequence\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u0022unbounded\u0022 name=\u0022Forecast\u0022 nillable=\u0022true\u0022 type=\u0022tns:Forecast\u0022 /\u003E\r\n \u003C/s:sequence\u003E\r\n \u003C/s:complexType\u003E\r\n \u003Cs:complexType name=\u0022Forecast\u0022\u003E\r\n \u003Cs:sequence\u003E\r\n \u003Cs:element minOccurs=\u00221\u0022 maxOccurs=\u00221\u0022 name=\u0022Date\u0022 type=\u0022s:dateTime\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00221\u0022 maxOccurs=\u00221\u0022 name=\u0022WeatherID\u0022 type=\u0022s:short\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022Desciption\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00221\u0022 maxOccurs=\u00221\u0022 name=\u0022Temperatures\u0022 type=\u0022tns:temp\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00221\u0022 maxOccurs=\u00221\u0022 name=\u0022ProbabilityOfPrecipiation\u0022 type=\u0022tns:POP\u0022 /\u003E\r\n \u003C/s:sequence\u003E\r\n \u003C/s:complexType\u003E\r\n \u003Cs:complexType name=\u0022temp\u0022\u003E\r\n \u003Cs:sequence\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022MorningLow\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022DaytimeHigh\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003C/s:sequence\u003E\r\n \u003C/s:complexType\u003E\r\n \u003Cs:complexType name=\u0022POP\u0022\u003E\r\n \u003Cs:sequence\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022Nighttime\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022Daytime\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003C/s:sequence\u003E\r\n \u003C/s:complexType\u003E\r\n \u003Cs:element name=\u0022GetCityWeatherByZIP\u0022\u003E\r\n \u003Cs:complexType\u003E\r\n \u003Cs:sequence\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022ZIP\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003C/s:sequence\u003E\r\n \u003C/s:complexType\u003E\r\n \u003C/s:element\u003E\r\n \u003Cs:element name=\u0022GetCityWeatherByZIPResponse\u0022\u003E\r\n \u003Cs:complexType\u003E\r\n \u003Cs:sequence\u003E\r\n \u003Cs:element minOccurs=\u00221\u0022 maxOccurs=\u00221\u0022 name=\u0022GetCityWeatherByZIPResult\u0022 type=\u0022tns:WeatherReturn\u0022 /\u003E\r\n \u003C/s:sequence\u003E\r\n \u003C/s:complexType\u003E\r\n \u003C/s:element\u003E\r\n \u003Cs:complexType name=\u0022WeatherReturn\u0022\u003E\r\n \u003Cs:sequence\u003E\r\n \u003Cs:element minOccurs=\u00221\u0022 maxOccurs=\u00221\u0022 name=\u0022Success\u0022 type=\u0022s:boolean\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022ResponseText\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022State\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022City\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022WeatherStationCity\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00221\u0022 maxOccurs=\u00221\u0022 name=\u0022WeatherID\u0022 type=\u0022s:short\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022Description\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022Temperature\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022RelativeHumidity\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022Wind\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022Pressure\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022Visibility\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022WindChill\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022Remarks\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003C/s:sequence\u003E\r\n \u003C/s:complexType\u003E\r\n \u003Cs:element name=\u0022ArrayOfWeatherDescription\u0022 nillable=\u0022true\u0022 type=\u0022tns:ArrayOfWeatherDescription\u0022 /\u003E\r\n \u003Cs:element name=\u0022ForecastReturn\u0022 nillable=\u0022true\u0022 type=\u0022tns:ForecastReturn\u0022 /\u003E\r\n \u003Cs:element name=\u0022WeatherReturn\u0022 type=\u0022tns:WeatherReturn\u0022 /\u003E\r\n\u003C/s:schema\u003E" - } - } - } - ], - "count": 2 - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apis/apiidsdGYeN/schemas/schemaidsdGYeN?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 09:37:46 GMT", - "ETag": "\u0022AAAAAAAACWc=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11938", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T093747Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apis/apiidsdGYeN/schemas/schemaidsdGYeN", - "type": "Microsoft.ApiManagement/service/apis/schemas", - "name": "schemaidsdGYeN", - "properties": { - "contentType": "application/vnd.ms-azure-apim.xsd\u002Bxml", - "document": { - "value": "\u003Cs:schema elementFormDefault=\u0022qualified\u0022 targetNamespace=\u0022http://ws.cdyne.com/WeatherWS/\u0022 xmlns:tns=\u0022http://ws.cdyne.com/WeatherWS/\u0022 xmlns:s=\u0022http://www.w3.org/2001/XMLSchema\u0022 xmlns:soap12=\u0022http://schemas.xmlsoap.org/wsdl/soap12/\u0022 xmlns:mime=\u0022http://schemas.xmlsoap.org/wsdl/mime/\u0022 xmlns:soap=\u0022http://schemas.xmlsoap.org/wsdl/soap/\u0022 xmlns:tm=\u0022http://microsoft.com/wsdl/mime/textMatching/\u0022 xmlns:http=\u0022http://schemas.xmlsoap.org/wsdl/http/\u0022 xmlns:soapenc=\u0022http://schemas.xmlsoap.org/soap/encoding/\u0022 xmlns:wsdl=\u0022http://schemas.xmlsoap.org/wsdl/\u0022 xmlns:apim-wsdltns=\u0022http://ws.cdyne.com/WeatherWS/\u0022\u003E\r\n \u003Cs:element name=\u0022GetWeatherInformation\u0022\u003E\r\n \u003Cs:complexType /\u003E\r\n \u003C/s:element\u003E\r\n \u003Cs:element name=\u0022GetWeatherInformationResponse\u0022\u003E\r\n \u003Cs:complexType\u003E\r\n \u003Cs:sequence\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022GetWeatherInformationResult\u0022 type=\u0022tns:ArrayOfWeatherDescription\u0022 /\u003E\r\n \u003C/s:sequence\u003E\r\n \u003C/s:complexType\u003E\r\n \u003C/s:element\u003E\r\n \u003Cs:complexType name=\u0022ArrayOfWeatherDescription\u0022\u003E\r\n \u003Cs:sequence\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u0022unbounded\u0022 name=\u0022WeatherDescription\u0022 type=\u0022tns:WeatherDescription\u0022 /\u003E\r\n \u003C/s:sequence\u003E\r\n \u003C/s:complexType\u003E\r\n \u003Cs:complexType name=\u0022WeatherDescription\u0022\u003E\r\n \u003Cs:sequence\u003E\r\n \u003Cs:element minOccurs=\u00221\u0022 maxOccurs=\u00221\u0022 name=\u0022WeatherID\u0022 type=\u0022s:short\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022Description\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022PictureURL\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003C/s:sequence\u003E\r\n \u003C/s:complexType\u003E\r\n \u003Cs:element name=\u0022GetCityForecastByZIP\u0022\u003E\r\n \u003Cs:complexType\u003E\r\n \u003Cs:sequence\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022ZIP\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003C/s:sequence\u003E\r\n \u003C/s:complexType\u003E\r\n \u003C/s:element\u003E\r\n \u003Cs:element name=\u0022GetCityForecastByZIPResponse\u0022\u003E\r\n \u003Cs:complexType\u003E\r\n \u003Cs:sequence\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022GetCityForecastByZIPResult\u0022 type=\u0022tns:ForecastReturn\u0022 /\u003E\r\n \u003C/s:sequence\u003E\r\n \u003C/s:complexType\u003E\r\n \u003C/s:element\u003E\r\n \u003Cs:complexType name=\u0022ForecastReturn\u0022\u003E\r\n \u003Cs:sequence\u003E\r\n \u003Cs:element minOccurs=\u00221\u0022 maxOccurs=\u00221\u0022 name=\u0022Success\u0022 type=\u0022s:boolean\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022ResponseText\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022State\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022City\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022WeatherStationCity\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022ForecastResult\u0022 type=\u0022tns:ArrayOfForecast\u0022 /\u003E\r\n \u003C/s:sequence\u003E\r\n \u003C/s:complexType\u003E\r\n \u003Cs:complexType name=\u0022ArrayOfForecast\u0022\u003E\r\n \u003Cs:sequence\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u0022unbounded\u0022 name=\u0022Forecast\u0022 nillable=\u0022true\u0022 type=\u0022tns:Forecast\u0022 /\u003E\r\n \u003C/s:sequence\u003E\r\n \u003C/s:complexType\u003E\r\n \u003Cs:complexType name=\u0022Forecast\u0022\u003E\r\n \u003Cs:sequence\u003E\r\n \u003Cs:element minOccurs=\u00221\u0022 maxOccurs=\u00221\u0022 name=\u0022Date\u0022 type=\u0022s:dateTime\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00221\u0022 maxOccurs=\u00221\u0022 name=\u0022WeatherID\u0022 type=\u0022s:short\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022Desciption\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00221\u0022 maxOccurs=\u00221\u0022 name=\u0022Temperatures\u0022 type=\u0022tns:temp\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00221\u0022 maxOccurs=\u00221\u0022 name=\u0022ProbabilityOfPrecipiation\u0022 type=\u0022tns:POP\u0022 /\u003E\r\n \u003C/s:sequence\u003E\r\n \u003C/s:complexType\u003E\r\n \u003Cs:complexType name=\u0022temp\u0022\u003E\r\n \u003Cs:sequence\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022MorningLow\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022DaytimeHigh\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003C/s:sequence\u003E\r\n \u003C/s:complexType\u003E\r\n \u003Cs:complexType name=\u0022POP\u0022\u003E\r\n \u003Cs:sequence\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022Nighttime\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022Daytime\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003C/s:sequence\u003E\r\n \u003C/s:complexType\u003E\r\n \u003Cs:element name=\u0022GetCityWeatherByZIP\u0022\u003E\r\n \u003Cs:complexType\u003E\r\n \u003Cs:sequence\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022ZIP\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003C/s:sequence\u003E\r\n \u003C/s:complexType\u003E\r\n \u003C/s:element\u003E\r\n \u003Cs:element name=\u0022GetCityWeatherByZIPResponse\u0022\u003E\r\n \u003Cs:complexType\u003E\r\n \u003Cs:sequence\u003E\r\n \u003Cs:element minOccurs=\u00221\u0022 maxOccurs=\u00221\u0022 name=\u0022GetCityWeatherByZIPResult\u0022 type=\u0022tns:WeatherReturn\u0022 /\u003E\r\n \u003C/s:sequence\u003E\r\n \u003C/s:complexType\u003E\r\n \u003C/s:element\u003E\r\n \u003Cs:complexType name=\u0022WeatherReturn\u0022\u003E\r\n \u003Cs:sequence\u003E\r\n \u003Cs:element minOccurs=\u00221\u0022 maxOccurs=\u00221\u0022 name=\u0022Success\u0022 type=\u0022s:boolean\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022ResponseText\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022State\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022City\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022WeatherStationCity\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00221\u0022 maxOccurs=\u00221\u0022 name=\u0022WeatherID\u0022 type=\u0022s:short\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022Description\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022Temperature\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022RelativeHumidity\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022Wind\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022Pressure\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022Visibility\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022WindChill\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003Cs:element minOccurs=\u00220\u0022 maxOccurs=\u00221\u0022 name=\u0022Remarks\u0022 type=\u0022s:string\u0022 /\u003E\r\n \u003C/s:sequence\u003E\r\n \u003C/s:complexType\u003E\r\n \u003Cs:element name=\u0022ArrayOfWeatherDescription\u0022 nillable=\u0022true\u0022 type=\u0022tns:ArrayOfWeatherDescription\u0022 /\u003E\r\n \u003Cs:element name=\u0022ForecastReturn\u0022 nillable=\u0022true\u0022 type=\u0022tns:ForecastReturn\u0022 /\u003E\r\n \u003Cs:element name=\u0022WeatherReturn\u0022 type=\u0022tns:WeatherReturn\u0022 /\u003E\r\n\u003C/s:schema\u003E" - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apis/apiidsdGYeN/schemas/schemaidsdGYeN?api-version=2021-08-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "If-Match": "*", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 09:37:47 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14996", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T093747Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/tags/tagoperationsdGYeN?api-version=2021-08-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "46", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "displayName": "tagoperation1" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "325", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 09:37:49 GMT", - "ETag": "\u0022AAAAAAAACW0=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1188", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T093750Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/tags/tagoperationsdGYeN", - "type": "Microsoft.ApiManagement/service/tags", - "name": "tagoperationsdGYeN", - "properties": { - "displayName": "tagoperation1" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apis/apiidsdGYeN/operations/operationisdGYeN/tags/tagoperationsdGYeN?api-version=2021-08-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "386", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 09:37:49 GMT", - "ETag": "\u0022AAAAAAAACW0=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1187", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T093750Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apis/apiidsdGYeN/operations/operationisdGYeN/tags/tagoperationsdGYeN", - "type": "Microsoft.ApiManagement/service/apis/operations/tags", - "name": "tagoperationsdGYeN", - "properties": { - "displayName": "tagoperation1" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apis/apiidsdGYeN/operations/operationisdGYeN/tags/tagoperationsdGYeN?api-version=2021-08-01", - "RequestMethod": "HEAD", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 09:37:50 GMT", - "ETag": "\u0022AAAAAAAACW0=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11937", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T093751Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apis/apiidsdGYeN/operations/operationisdGYeN/tags/tagoperationsdGYeN?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 09:37:50 GMT", - "ETag": "\u0022AAAAAAAACW0=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11936", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T093751Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apis/apiidsdGYeN/operations/operationisdGYeN/tags/tagoperationsdGYeN", - "type": "Microsoft.ApiManagement/service/apis/operations/tags", - "name": "tagoperationsdGYeN", - "properties": { - "displayName": "tagoperation1" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/tags/tagoperationsdGYeN?api-version=2021-08-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "If-Match": "*", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 09:37:51 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14995", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T093752Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/tags/tagidsdGYeN?api-version=2021-08-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "37", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "displayName": "tag2" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 09:37:53 GMT", - "ETag": "\u0022AAAAAAAACW4=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1186", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T093753Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/tags/tagidsdGYeN", - "type": "Microsoft.ApiManagement/service/tags", - "name": "tagidsdGYeN", - "properties": { - "displayName": "tag2" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apis/apiidsdGYeN/tags/tagidsdGYeN?api-version=2021-08-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "324", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 09:37:53 GMT", - "ETag": "\u0022AAAAAAAACW4=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1185", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T093753Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apis/apiidsdGYeN/tags/tagidsdGYeN", - "type": "Microsoft.ApiManagement/service/apis/tags", - "name": "tagidsdGYeN", - "properties": { - "displayName": "tag2" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apis/apiidsdGYeN/tags/tagidsdGYeN?api-version=2021-08-01", - "RequestMethod": "HEAD", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 09:37:54 GMT", - "ETag": "\u0022AAAAAAAACW4=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T093754Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apis/apiidsdGYeN/tags/tagidsdGYeN?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 09:37:54 GMT", - "ETag": "\u0022AAAAAAAACW4=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T093754Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apis/apiidsdGYeN/tags/tagidsdGYeN", - "type": "Microsoft.ApiManagement/service/apis/tags", - "name": "tagidsdGYeN", - "properties": { - "displayName": "tag2" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/tags/tagidsdGYeN?api-version=2021-08-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "If-Match": "*", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 09:37:55 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14994", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T093755Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apis/apiidsdGYeN/operations/operationisdGYeN?api-version=2021-08-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "If-Match": "*", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 09:37:55 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14993", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T093756Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN/apis/apiidsdGYeN?api-version=2021-08-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "If-Match": "*", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 09:37:57 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14992", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T093757Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 09:38:02 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQxOTUtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14991", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T093802Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": { - "recordingRandomSeed": "1666342412" - } -} diff --git a/sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimapiversionsetsTestSuite.json b/sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimapiversionsetsTestSuite.json deleted file mode 100644 index 94d8e1562a3d..000000000000 --- a/sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimapiversionsetsTestSuite.json +++ /dev/null @@ -1,1662 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 09:38:08 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1184", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T093808Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "westus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN?api-version=2021-08-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "172", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus", - "properties": { - "publisherEmail": "foo@contoso.com", - "publisherName": "foo" - }, - "sku": { - "capacity": 1, - "name": "Standard" - }, - "tags": { - "Name": "Contoso", - "Test": "User" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "1798", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 09:38:18 GMT", - "ETag": "\u0022AAAAAAA90Ow=\u0022", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1183", - "x-ms-request-id": [ - "00000000-0000-0000-0000-000000000000", - "e0e691a5-ce4b-460a-882e-f8d656480038" - ], - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T093818Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN", - "name": "serviceapiversionsetssdGYeN", - "type": "Microsoft.ApiManagement/service", - "tags": { - "Name": "Contoso", - "Test": "User" - }, - "location": "West US", - "etag": "AAAAAAA90Ow=", - "properties": { - "publisherEmail": "foo@contoso.com", - "publisherName": "foo", - "notificationSenderEmail": "apimgmt-noreply@mail.windowsazure.com", - "provisioningState": "Created", - "targetProvisioningState": "Activating", - "createdAtUtc": "2022-10-21T09:38:12.1982513Z", - "gatewayUrl": "https://serviceapiversionsetssdgyen.azure-api.net", - "gatewayRegionalUrl": null, - "portalUrl": null, - "developerPortalUrl": null, - "managementApiUrl": null, - "scmUrl": null, - "hostnameConfigurations": [ - { - "type": "Proxy", - "hostName": "serviceapiversionsetssdgyen.azure-api.net", - "encodedCertificate": null, - "keyVaultId": null, - "certificatePassword": null, - "negotiateClientCertificate": false, - "certificate": null, - "defaultSslBinding": true, - "identityClientId": null, - "certificateSource": "BuiltIn", - "certificateStatus": null - } - ], - "publicIPAddresses": null, - "privateIPAddresses": null, - "additionalLocations": null, - "virtualNetworkConfiguration": null, - "customProperties": null, - "virtualNetworkType": "None", - "certificates": null, - "disableGateway": false, - "apiVersionConstraint": { - "minApiVersion": null - }, - "publicIpAddressId": null, - "publicNetworkAccess": "Enabled", - "privateEndpointConnections": null, - "platformVersion": "undetermined" - }, - "sku": { - "name": "Standard", - "capacity": 1 - }, - "identity": null, - "zones": null, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-21T09:38:12.0740062Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-21T09:38:12.0740062Z" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 09:39:19 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T093919Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 09:40:20 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T094020Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 09:41:20 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T094121Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 09:42:21 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11930", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T094222Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 09:43:22 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11929", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T094323Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 09:44:23 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11928", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T094424Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 09:45:24 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11927", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T094525Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 09:46:25 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11926", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T094626Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 09:47:27 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11925", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T094727Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 09:48:27 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11924", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T094827Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 09:49:29 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11923", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T094929Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 09:50:29 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11922", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T095029Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 09:51:30 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11921", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T095131Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 09:52:31 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11920", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T095231Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 09:53:31 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11919", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T095332Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 09:54:33 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11918", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T095433Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 09:55:34 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11917", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T095534Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 09:56:35 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11916", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T095635Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 09:57:36 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11915", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T095736Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 09:58:36 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11914", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T095837Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 09:59:37 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11913", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T095938Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 10:00:39 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11915", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T100039Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 10:01:39 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11914", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T100140Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 10:02:41 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11913", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T100241Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 10:03:42 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11912", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T100342Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 10:04:43 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11911", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T100443Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 10:05:43 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11915", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T100544Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 10:06:44 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11914", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T100645Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 10:07:45 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11913", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T100746Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 10:08:46 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11912", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T100846Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 10:09:47 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11911", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T100947Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 10:10:48 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11915", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T101048Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 10:11:49 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11914", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T101149Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 10:12:50 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11913", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T101250Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 10:13:51 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11912", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T101351Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 10:14:51 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11911", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T101452Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 10:15:52 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11915", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T101553Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 10:16:54 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11914", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T101654Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 10:17:54 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11913", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T101755Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 10:18:56 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11912", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T101856Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhcGl2ZXJzaW9uc2V0c3NkR1llTl9BY3RfY2QzNTYyZDk=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 10:19:56 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11911", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T101957Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN", - "name": "serviceapiversionsetssdGYeN", - "type": "Microsoft.ApiManagement/service", - "tags": { - "Name": "Contoso", - "Test": "User" - }, - "location": "West US", - "etag": "AAAAAAA90UY=", - "properties": { - "publisherEmail": "foo@contoso.com", - "publisherName": "foo", - "notificationSenderEmail": "apimgmt-noreply@mail.windowsazure.com", - "provisioningState": "Succeeded", - "targetProvisioningState": "", - "createdAtUtc": "2022-10-21T09:38:12.1982513Z", - "gatewayUrl": "https://serviceapiversionsetssdgyen.azure-api.net", - "gatewayRegionalUrl": "https://serviceapiversionsetssdgyen-westus-01.regional.azure-api.net", - "portalUrl": "https://serviceapiversionsetssdgyen.portal.azure-api.net", - "developerPortalUrl": "https://serviceapiversionsetssdgyen.developer.azure-api.net", - "managementApiUrl": "https://serviceapiversionsetssdgyen.management.azure-api.net", - "scmUrl": "https://serviceapiversionsetssdgyen.scm.azure-api.net", - "hostnameConfigurations": [ - { - "type": "Proxy", - "hostName": "serviceapiversionsetssdgyen.azure-api.net", - "encodedCertificate": null, - "keyVaultId": null, - "certificatePassword": null, - "negotiateClientCertificate": false, - "certificate": null, - "defaultSslBinding": true, - "identityClientId": null, - "certificateSource": "BuiltIn", - "certificateStatus": null - } - ], - "publicIPAddresses": [ - "20.245.62.13" - ], - "privateIPAddresses": null, - "additionalLocations": null, - "virtualNetworkConfiguration": null, - "customProperties": { - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Ssl30": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TripleDes168": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls10": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls11": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Ssl30": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Protocols.Server.Http2": "False" - }, - "virtualNetworkType": "None", - "certificates": null, - "disableGateway": false, - "apiVersionConstraint": { - "minApiVersion": null - }, - "publicIpAddressId": null, - "publicNetworkAccess": "Enabled", - "privateEndpointConnections": null, - "platformVersion": "stv2" - }, - "sku": { - "name": "Standard", - "capacity": 1 - }, - "identity": null, - "zones": null, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-21T09:38:12.0740062Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-21T09:38:12.0740062Z" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/apiVersionSets/versionsetsdGYeN?api-version=2021-08-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "109", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "displayName": "api set 1", - "versioningScheme": "Segment", - "description": "Version configuration" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "492", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 10:20:02 GMT", - "ETag": "\u0022AAAAAAAACSE=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1182", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T102002Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/apiVersionSets/versionsetsdGYeN", - "type": "Microsoft.ApiManagement/service/apiVersionSets", - "name": "versionsetsdGYeN", - "properties": { - "displayName": "api set 1", - "description": "Version configuration", - "versioningScheme": "Segment", - "versionQueryName": null, - "versionHeaderName": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/apiVersionSets/versionsetsdGYeN?api-version=2021-08-01", - "RequestMethod": "HEAD", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 10:20:03 GMT", - "ETag": "\u0022AAAAAAAACSE=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11915", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T102003Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/apiVersionSets?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 10:20:04 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11914", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T102005Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/apiVersionSets/versionsetsdGYeN", - "type": "Microsoft.ApiManagement/service/apiVersionSets", - "name": "versionsetsdGYeN", - "properties": { - "displayName": "api set 1", - "description": "Version configuration", - "versioningScheme": "Segment", - "versionQueryName": null, - "versionHeaderName": null - } - } - ], - "count": 1 - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/apiVersionSets/versionsetsdGYeN?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 10:20:05 GMT", - "ETag": "\u0022AAAAAAAACSE=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11913", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T102005Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/apiVersionSets/versionsetsdGYeN", - "type": "Microsoft.ApiManagement/service/apiVersionSets", - "name": "versionsetsdGYeN", - "properties": { - "displayName": "api set 1", - "description": "Version configuration", - "versioningScheme": "Segment", - "versionQueryName": null, - "versionHeaderName": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/apiVersionSets/versionsetsdGYeN?api-version=2021-08-01", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "109", - "Content-Type": "application/json", - "If-Match": "*", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "description": "Version configuration", - "displayName": "api set 1", - "versioningScheme": "Segment" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 10:20:06 GMT", - "ETag": "\u0022AAAAAAAACSE=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1181", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T102006Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/apiVersionSets/versionsetsdGYeN", - "type": "Microsoft.ApiManagement/service/apiVersionSets", - "name": "versionsetsdGYeN", - "properties": { - "displayName": "api set 1", - "description": "Version configuration", - "versioningScheme": "Segment", - "versionQueryName": null, - "versionHeaderName": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN/apiVersionSets/versionsetsdGYeN?api-version=2021-08-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "If-Match": "*", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 10:20:06 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14990", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T102007Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 10:20:10 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ5NDItV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14989", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T102011Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": { - "recordingRandomSeed": "1666342412" - } -} diff --git a/sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimauthorizationserversTestSuite.json b/sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimauthorizationserversTestSuite.json deleted file mode 100644 index d5c0a24a13d5..000000000000 --- a/sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimauthorizationserversTestSuite.json +++ /dev/null @@ -1,1923 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 10:20:13 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1180", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T102014Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "westus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN?api-version=2021-08-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "172", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus", - "properties": { - "publisherEmail": "foo@contoso.com", - "publisherName": "foo" - }, - "sku": { - "capacity": 1, - "name": "Standard" - }, - "tags": { - "Name": "Contoso", - "Test": "User" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "1758", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 10:20:22 GMT", - "ETag": "\u0022AAAAAAA90U0=\u0022", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1179", - "x-ms-request-id": [ - "00000000-0000-0000-0000-000000000000", - "b98fa83c-575c-4e6e-9505-ff4afaae21eb" - ], - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T102023Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN", - "name": "serviceauthsdGYeN", - "type": "Microsoft.ApiManagement/service", - "tags": { - "Name": "Contoso", - "Test": "User" - }, - "location": "West US", - "etag": "AAAAAAA90U0=", - "properties": { - "publisherEmail": "foo@contoso.com", - "publisherName": "foo", - "notificationSenderEmail": "apimgmt-noreply@mail.windowsazure.com", - "provisioningState": "Created", - "targetProvisioningState": "Activating", - "createdAtUtc": "2022-10-21T10:20:18.1322071Z", - "gatewayUrl": "https://serviceauthsdgyen.azure-api.net", - "gatewayRegionalUrl": null, - "portalUrl": null, - "developerPortalUrl": null, - "managementApiUrl": null, - "scmUrl": null, - "hostnameConfigurations": [ - { - "type": "Proxy", - "hostName": "serviceauthsdgyen.azure-api.net", - "encodedCertificate": null, - "keyVaultId": null, - "certificatePassword": null, - "negotiateClientCertificate": false, - "certificate": null, - "defaultSslBinding": true, - "identityClientId": null, - "certificateSource": "BuiltIn", - "certificateStatus": null - } - ], - "publicIPAddresses": null, - "privateIPAddresses": null, - "additionalLocations": null, - "virtualNetworkConfiguration": null, - "customProperties": null, - "virtualNetworkType": "None", - "certificates": null, - "disableGateway": false, - "apiVersionConstraint": { - "minApiVersion": null - }, - "publicIpAddressId": null, - "publicNetworkAccess": "Enabled", - "privateEndpointConnections": null, - "platformVersion": "undetermined" - }, - "sku": { - "name": "Standard", - "capacity": 1 - }, - "identity": null, - "zones": null, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-21T10:20:18.0218272Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-21T10:20:18.0218272Z" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 10:21:24 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11912", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T102124Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 10:22:25 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11911", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T102225Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 10:23:26 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11910", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T102326Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 10:24:26 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11909", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T102427Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 10:25:27 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11913", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T102528Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 10:26:28 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11912", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T102629Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 10:27:30 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11911", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T102730Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 10:28:30 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11910", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T102830Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 10:29:31 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11909", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T102931Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 10:30:32 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11913", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T103032Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 10:31:33 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11912", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T103133Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 10:32:34 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11911", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T103234Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 10:33:35 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11910", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T103335Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 10:34:35 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11909", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T103436Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 10:35:36 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11913", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T103537Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 10:36:37 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11912", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T103638Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 10:37:38 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11911", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T103738Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 10:38:38 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11910", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T103839Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 10:39:40 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11909", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T103940Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 10:40:41 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11937", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T104041Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 10:41:42 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11936", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T104142Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 10:42:43 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T104243Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 10:43:43 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T104344Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 10:44:44 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T104445Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 10:45:45 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11937", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T104545Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 10:46:46 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11936", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T104646Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 10:47:47 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T104747Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 10:48:47 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T104848Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 10:49:48 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T104949Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 10:50:50 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11937", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T105050Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 10:51:50 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11936", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T105151Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 10:52:52 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T105252Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 10:53:53 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T105353Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 10:54:54 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T105454Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 10:55:55 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11937", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T105555Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 10:56:56 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11936", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T105656Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 10:57:56 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T105757Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 10:58:57 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T105857Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 10:59:58 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T105958Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 11:00:59 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11937", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T110059Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 11:01:59 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11936", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T110200Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 11:03:01 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T110301Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 11:04:01 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T110402Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 11:05:02 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11938", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T110503Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 11:06:03 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11937", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T110604Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VhdXRoc2RHWWVOX0FjdF80YjNhNTQ5Zg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 11:07:04 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11936", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T110705Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN", - "name": "serviceauthsdGYeN", - "type": "Microsoft.ApiManagement/service", - "tags": { - "Name": "Contoso", - "Test": "User" - }, - "location": "West US", - "etag": "AAAAAAA90b0=", - "properties": { - "publisherEmail": "foo@contoso.com", - "publisherName": "foo", - "notificationSenderEmail": "apimgmt-noreply@mail.windowsazure.com", - "provisioningState": "Succeeded", - "targetProvisioningState": "", - "createdAtUtc": "2022-10-21T10:20:18.1322071Z", - "gatewayUrl": "https://serviceauthsdgyen.azure-api.net", - "gatewayRegionalUrl": "https://serviceauthsdgyen-westus-01.regional.azure-api.net", - "portalUrl": "https://serviceauthsdgyen.portal.azure-api.net", - "developerPortalUrl": "https://serviceauthsdgyen.developer.azure-api.net", - "managementApiUrl": "https://serviceauthsdgyen.management.azure-api.net", - "scmUrl": "https://serviceauthsdgyen.scm.azure-api.net", - "hostnameConfigurations": [ - { - "type": "Proxy", - "hostName": "serviceauthsdgyen.azure-api.net", - "encodedCertificate": null, - "keyVaultId": null, - "certificatePassword": null, - "negotiateClientCertificate": false, - "certificate": null, - "defaultSslBinding": true, - "identityClientId": null, - "certificateSource": "BuiltIn", - "certificateStatus": null - } - ], - "publicIPAddresses": [ - "20.66.16.4" - ], - "privateIPAddresses": null, - "additionalLocations": null, - "virtualNetworkConfiguration": null, - "customProperties": { - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Ssl30": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TripleDes168": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls10": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls11": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Ssl30": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Protocols.Server.Http2": "False" - }, - "virtualNetworkType": "None", - "certificates": null, - "disableGateway": false, - "apiVersionConstraint": { - "minApiVersion": null - }, - "publicIpAddressId": null, - "publicNetworkAccess": "Enabled", - "privateEndpointConnections": null, - "platformVersion": "stv2" - }, - "sku": { - "name": "Standard", - "capacity": 1 - }, - "identity": null, - "zones": null, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-21T10:20:18.0218272Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-21T10:20:18.0218272Z" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/authorizationServers/authsidsdGYeN?api-version=2021-08-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "513", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "authorizationEndpoint": "https://www.contoso.com/oauth2/auth", - "authorizationMethods": [ - "GET" - ], - "bearerTokenSendingMethods": [ - "authorizationHeader" - ], - "clientId": "1", - "clientRegistrationEndpoint": "https://www.contoso.com/apps", - "clientSecret": "2", - "defaultScope": "read write", - "description": "test server", - "displayName": "test2", - "grantTypes": [ - "authorizationCode", - "implicit" - ], - "resourceOwnerPassword": "pwd", - "resourceOwnerUsername": "un", - "supportState": true, - "tokenEndpoint": "https://www.contoso.com/oauth2/token" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "1031", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 11:07:07 GMT", - "ETag": "\u0022AAAAAAAACSU=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1195", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T110707Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/authorizationServers/authsidsdGYeN", - "type": "Microsoft.ApiManagement/service/authorizationServers", - "name": "authsidsdGYeN", - "properties": { - "displayName": "test2", - "description": "test server", - "clientRegistrationEndpoint": "https://www.contoso.com/apps", - "authorizationEndpoint": "https://www.contoso.com/oauth2/auth", - "authorizationMethods": [ - "GET" - ], - "clientAuthenticationMethod": null, - "tokenBodyParameters": null, - "tokenEndpoint": "https://www.contoso.com/oauth2/token", - "supportState": true, - "defaultScope": "read write", - "grantTypes": [ - "authorizationCode", - "implicit" - ], - "bearerTokenSendingMethods": [ - "authorizationHeader" - ], - "clientId": "1", - "clientSecret": "2", - "resourceOwnerUsername": "un", - "resourceOwnerPassword": "pwd" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/authorizationServers/authsidsdGYeN?api-version=2021-08-01", - "RequestMethod": "HEAD", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 11:07:08 GMT", - "ETag": "\u0022AAAAAAAACSU=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T110708Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/authorizationServers?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 11:07:09 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T110709Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/authorizationServers/authsidsdGYeN", - "type": "Microsoft.ApiManagement/service/authorizationServers", - "name": "authsidsdGYeN", - "properties": { - "displayName": "test2", - "description": "test server", - "clientRegistrationEndpoint": "https://www.contoso.com/apps", - "authorizationEndpoint": "https://www.contoso.com/oauth2/auth", - "authorizationMethods": [ - "GET" - ], - "clientAuthenticationMethod": null, - "tokenBodyParameters": null, - "tokenEndpoint": "https://www.contoso.com/oauth2/token", - "useInTestConsole": true, - "useInApiDocumentation": false, - "supportState": true, - "defaultScope": "read write", - "grantTypes": [ - "authorizationCode", - "implicit" - ], - "bearerTokenSendingMethods": [ - "authorizationHeader" - ], - "clientId": "1" - } - } - ], - "count": 1 - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/authorizationServers/authsidsdGYeN?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 11:07:09 GMT", - "ETag": "\u0022AAAAAAAACSU=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T110710Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/authorizationServers/authsidsdGYeN", - "type": "Microsoft.ApiManagement/service/authorizationServers", - "name": "authsidsdGYeN", - "properties": { - "displayName": "test2", - "description": "test server", - "clientRegistrationEndpoint": "https://www.contoso.com/apps", - "authorizationEndpoint": "https://www.contoso.com/oauth2/auth", - "authorizationMethods": [ - "GET" - ], - "clientAuthenticationMethod": null, - "tokenBodyParameters": null, - "tokenEndpoint": "https://www.contoso.com/oauth2/token", - "supportState": true, - "defaultScope": "read write", - "grantTypes": [ - "authorizationCode", - "implicit" - ], - "bearerTokenSendingMethods": [ - "authorizationHeader" - ], - "clientId": "1" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/authorizationServers/authsidsdGYeN?api-version=2021-08-01", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "61", - "Content-Type": "application/json", - "If-Match": "*", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "clientId": "update", - "clientSecret": "updated" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 11:07:10 GMT", - "ETag": "\u0022AAAAAAAACSY=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1194", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T110710Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/authorizationServers/authsidsdGYeN", - "type": "Microsoft.ApiManagement/service/authorizationServers", - "name": "authsidsdGYeN", - "properties": { - "displayName": "test2", - "description": "test server", - "clientRegistrationEndpoint": "https://www.contoso.com/apps", - "authorizationEndpoint": "https://www.contoso.com/oauth2/auth", - "authorizationMethods": [ - "GET" - ], - "clientAuthenticationMethod": null, - "tokenBodyParameters": null, - "tokenEndpoint": "https://www.contoso.com/oauth2/token", - "supportState": true, - "defaultScope": "read write", - "grantTypes": [ - "authorizationCode", - "implicit" - ], - "bearerTokenSendingMethods": [ - "authorizationHeader" - ], - "clientId": "update", - "clientSecret": "updated", - "resourceOwnerUsername": "un", - "resourceOwnerPassword": "pwd" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/authorizationServers/authsidsdGYeN/listSecrets?api-version=2021-08-01", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 11:07:10 GMT", - "ETag": "\u0022AAAAAAAACSY=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T110711Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "clientSecret": "updated", - "resourceOwnerUsername": "un", - "resourceOwnerPassword": "pwd" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN/authorizationServers/authsidsdGYeN?api-version=2021-08-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "If-Match": "*", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 11:07:12 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14997", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T110712Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 11:07:16 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQyODgtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14996", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T110716Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": { - "recordingRandomSeed": "1666342412" - } -} diff --git a/sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimcachesTestSuite.json b/sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimcachesTestSuite.json deleted file mode 100644 index b098d116830f..000000000000 --- a/sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimcachesTestSuite.json +++ /dev/null @@ -1,1713 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 11:07:29 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1191", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T110729Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "westus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN?api-version=2021-08-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "172", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus", - "properties": { - "publisherEmail": "foo@contoso.com", - "publisherName": "foo" - }, - "sku": { - "capacity": 1, - "name": "Standard" - }, - "tags": { - "Name": "Contoso", - "Test": "User" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "1762", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 11:07:36 GMT", - "ETag": "\u0022AAAAAAA90cY=\u0022", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1190", - "x-ms-request-id": [ - "00000000-0000-0000-0000-000000000000", - "74d701ec-62bd-42f7-9cd5-c964259c33f9" - ], - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T110736Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN", - "name": "servicecachesdGYeN", - "type": "Microsoft.ApiManagement/service", - "tags": { - "Name": "Contoso", - "Test": "User" - }, - "location": "West US", - "etag": "AAAAAAA90cY=", - "properties": { - "publisherEmail": "foo@contoso.com", - "publisherName": "foo", - "notificationSenderEmail": "apimgmt-noreply@mail.windowsazure.com", - "provisioningState": "Created", - "targetProvisioningState": "Activating", - "createdAtUtc": "2022-10-21T11:07:31.2311387Z", - "gatewayUrl": "https://servicecachesdgyen.azure-api.net", - "gatewayRegionalUrl": null, - "portalUrl": null, - "developerPortalUrl": null, - "managementApiUrl": null, - "scmUrl": null, - "hostnameConfigurations": [ - { - "type": "Proxy", - "hostName": "servicecachesdgyen.azure-api.net", - "encodedCertificate": null, - "keyVaultId": null, - "certificatePassword": null, - "negotiateClientCertificate": false, - "certificate": null, - "defaultSslBinding": true, - "identityClientId": null, - "certificateSource": "BuiltIn", - "certificateStatus": null - } - ], - "publicIPAddresses": null, - "privateIPAddresses": null, - "additionalLocations": null, - "virtualNetworkConfiguration": null, - "customProperties": null, - "virtualNetworkType": "None", - "certificates": null, - "disableGateway": false, - "apiVersionConstraint": { - "minApiVersion": null - }, - "publicIpAddressId": null, - "publicNetworkAccess": "Enabled", - "privateEndpointConnections": null, - "platformVersion": "undetermined" - }, - "sku": { - "name": "Standard", - "capacity": 1 - }, - "identity": null, - "zones": null, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-21T11:07:31.1194643Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-21T11:07:31.1194643Z" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 11:08:39 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11999", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T110839Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 11:09:39 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11998", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T110940Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 11:10:40 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11997", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T111041Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 11:11:42 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11996", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T111142Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 11:12:42 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11995", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T111243Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 11:13:43 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11994", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T111344Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 11:14:45 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11993", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T111445Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 11:15:45 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11992", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T111546Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 11:16:47 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11991", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T111647Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 11:17:48 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11990", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T111748Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 11:18:49 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11989", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T111849Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 11:19:49 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11988", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T111950Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 11:20:51 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11987", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T112052Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 11:21:53 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11999", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T112154Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 11:22:55 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11998", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T112255Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 11:23:55 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11997", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T112356Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 11:24:56 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11996", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T112457Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 11:25:57 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11995", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T112558Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 11:26:59 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11994", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T112659Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 11:28:00 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11993", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T112800Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 11:29:01 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11992", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T112902Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 11:30:02 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11991", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T113002Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 11:31:03 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11990", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T113103Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 11:32:04 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11989", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T113204Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 11:33:05 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11988", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T113305Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 11:34:06 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11987", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T113407Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 11:35:07 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11986", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T113508Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 11:36:08 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11985", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T113609Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 11:37:09 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11984", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T113710Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 11:38:10 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11983", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T113811Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 11:39:11 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11982", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T113912Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 11:40:12 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11981", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T114013Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 11:41:14 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11980", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T114114Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 11:42:15 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11979", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T114215Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 11:43:16 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11978", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T114316Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 11:44:17 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11977", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T114417Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 11:45:18 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11976", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T114518Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 11:46:19 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11975", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T114620Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 11:47:20 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11974", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T114721Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 11:48:21 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11973", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T114822Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 11:49:22 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11972", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T114923Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 11:50:23 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11971", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T115024Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VjYWNoZXNkR1llTl9BY3RfM2RjMGFjYTQ=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 11:51:24 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11970", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T115125Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN", - "name": "servicecachesdGYeN", - "type": "Microsoft.ApiManagement/service", - "tags": { - "Name": "Contoso", - "Test": "User" - }, - "location": "West US", - "etag": "AAAAAAA90jk=", - "properties": { - "publisherEmail": "foo@contoso.com", - "publisherName": "foo", - "notificationSenderEmail": "apimgmt-noreply@mail.windowsazure.com", - "provisioningState": "Succeeded", - "targetProvisioningState": "", - "createdAtUtc": "2022-10-21T11:07:31.2311387Z", - "gatewayUrl": "https://servicecachesdgyen.azure-api.net", - "gatewayRegionalUrl": "https://servicecachesdgyen-westus-01.regional.azure-api.net", - "portalUrl": "https://servicecachesdgyen.portal.azure-api.net", - "developerPortalUrl": "https://servicecachesdgyen.developer.azure-api.net", - "managementApiUrl": "https://servicecachesdgyen.management.azure-api.net", - "scmUrl": "https://servicecachesdgyen.scm.azure-api.net", - "hostnameConfigurations": [ - { - "type": "Proxy", - "hostName": "servicecachesdgyen.azure-api.net", - "encodedCertificate": null, - "keyVaultId": null, - "certificatePassword": null, - "negotiateClientCertificate": false, - "certificate": null, - "defaultSslBinding": true, - "identityClientId": null, - "certificateSource": "BuiltIn", - "certificateStatus": null - } - ], - "publicIPAddresses": [ - "20.253.140.97" - ], - "privateIPAddresses": null, - "additionalLocations": null, - "virtualNetworkConfiguration": null, - "customProperties": { - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Ssl30": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TripleDes168": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls10": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls11": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Ssl30": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Protocols.Server.Http2": "False" - }, - "virtualNetworkType": "None", - "certificates": null, - "disableGateway": false, - "apiVersionConstraint": { - "minApiVersion": null - }, - "publicIpAddressId": null, - "publicNetworkAccess": "Enabled", - "privateEndpointConnections": null, - "platformVersion": "stv2" - }, - "sku": { - "name": "Standard", - "capacity": 1 - }, - "identity": null, - "zones": null, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-21T11:07:31.1194643Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-21T11:07:31.1194643Z" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/caches/cacheidsdGYeN?api-version=2021-08-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "367", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "connectionString": "apim.redis.cache.windows.net:6380,password=xc,ssl=True,abortConnect=False", - "useFromLocation": "default", - "description": "Redis cache instances in West India", - "resourceId": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cache/redis/servicecachesdGYeN" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "618", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 11:51:30 GMT", - "ETag": "\u0022AAAAAAAACSU=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T115131Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/caches/cacheidsdGYeN", - "type": "Microsoft.ApiManagement/service/caches", - "name": "cacheidsdGYeN", - "properties": { - "useFromLocation": "default", - "description": "Redis cache instances in West India", - "connectionString": "{{635287c0217d2006b8a9fe62}}", - "resourceId": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cache/redis/servicecachesdGYeN" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/caches/cacheidsdGYeN?api-version=2021-08-01", - "RequestMethod": "HEAD", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 11:51:31 GMT", - "ETag": "\u0022AAAAAAAACSU=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11969", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T115131Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/caches/cacheidsdGYeN?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 11:51:31 GMT", - "ETag": "\u0022AAAAAAAACSU=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11968", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T115132Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/caches/cacheidsdGYeN", - "type": "Microsoft.ApiManagement/service/caches", - "name": "cacheidsdGYeN", - "properties": { - "useFromLocation": "default", - "description": "Redis cache instances in West India", - "connectionString": "{{635287c0217d2006b8a9fe62}}", - "resourceId": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cache/redis/servicecachesdGYeN" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/caches?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 11:51:33 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11967", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T115134Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/caches/cacheidsdGYeN", - "type": "Microsoft.ApiManagement/service/caches", - "name": "cacheidsdGYeN", - "properties": { - "useFromLocation": "default", - "description": "Redis cache instances in West India", - "connectionString": "{{635287c0217d2006b8a9fe62}}", - "resourceId": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cache/redis/servicecachesdGYeN" - } - } - ], - "count": 1 - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/caches/cacheidsdGYeN?api-version=2021-08-01", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "57", - "Content-Type": "application/json", - "If-Match": "*", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "description": "update cache description" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 11:51:35 GMT", - "ETag": "\u0022AAAAAAAACSk=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T115135Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/caches/cacheidsdGYeN", - "type": "Microsoft.ApiManagement/service/caches", - "name": "cacheidsdGYeN", - "properties": { - "useFromLocation": "default", - "description": "update cache description", - "connectionString": "{{635287c0217d2006b8a9fe62}}", - "resourceId": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cache/redis/servicecachesdGYeN" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN/caches/cacheidsdGYeN?api-version=2021-08-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "If-Match": "*", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 11:51:36 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14999", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T115136Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 11:51:40 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ4MzUtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14998", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T115140Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": { - "recordingRandomSeed": "1666342412" - } -} diff --git a/sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimdeploymentTestSuite.json b/sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimdeploymentTestSuite.json deleted file mode 100644 index 4b5ba3120871..000000000000 --- a/sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimdeploymentTestSuite.json +++ /dev/null @@ -1,7618 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 11:52:00 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1193", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T115201Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "westus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.ApiManagement/operations?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 11:52:02 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-tenant-reads": "11999", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T115202Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "origin": null, - "name": "Microsoft.ApiManagement/service/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Service", - "operation": "Create or Update API Management Service instance", - "description": "Create or Update API Management Service instance" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Service", - "operation": "Read metadata for an API Management Service instance", - "description": "Read metadata for an API Management Service instance" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Service", - "operation": "Delete API Management Service instance", - "description": "Delete API Management Service instance" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/updatehostname/action", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Service", - "operation": "Update domain names", - "description": "Setup, update or remove custom domain names for an API Management Service" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/updatecertificate/action", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Service", - "operation": "Upload SSL certificate", - "description": "Upload SSL certificate for an API Management Service" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/backup/action", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Service", - "operation": "Backup API Management Service", - "description": "Backup API Management Service to the specified container in a user provided storage account" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/restore/action", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Service", - "operation": "Restore API Management Service", - "description": "Restore API Management Service from the specified container in a user provided storage account" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/managedeployments/action", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Service", - "operation": "Manage Service Deployments", - "description": "Change SKU/units, add/remove regional deployments of API Management Service" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/operationresults/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Operation Result", - "operation": "Get long running operation result", - "description": "Gets current status of long running operation" - }, - "properties": null - }, - { - "origin": "system", - "name": "Microsoft.ApiManagement/service/providers/Microsoft.Insights/diagnosticSettings/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Service", - "operation": "Read diagnostic setting", - "description": "Gets the diagnostic setting for ApiManagement service" - }, - "properties": null - }, - { - "origin": "system", - "name": "Microsoft.ApiManagement/service/providers/Microsoft.Insights/diagnosticSettings/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Service", - "operation": "Write diagnostic setting", - "description": "Creates or updates the diagnostic setting for ApiManagement service" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/getssotoken/action", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "SSO Token", - "operation": "Get SSO token", - "description": "Gets SSO token that can be used to login into API Management Service Legacy portal as an administrator" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/applynetworkconfigurationupdates/action", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Service", - "operation": "Apply Network Configuration Updates", - "description": "Updates the Microsoft.ApiManagement resources running in Virtual Network to pick updated Network Settings." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/register/action", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Microsoft.ApiManagement resource provider", - "operation": "Register Microsoft.ApiManagement resource provider", - "description": "Register subscription for Microsoft.ApiManagement resource provider" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/unregister/action", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Microsoft.ApiManagement resource provider", - "operation": "Un-register Microsoft.ApiManagement resource provider", - "description": "Un-register subscription for Microsoft.ApiManagement resource provider" - }, - "properties": null - }, - { - "origin": "system", - "name": "Microsoft.ApiManagement/service/providers/Microsoft.Insights/metricDefinitions/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "The metric definition of API Management service", - "operation": "Read API Management service metric definitions", - "description": "Gets the available metrics for API Management service" - }, - "properties": { - "serviceSpecification": { - "metricSpecifications": [ - { - "fillGapWithZero": true, - "name": "TotalRequests", - "displayName": "Total Gateway Requests (Deprecated)", - "displayDescription": "Number of gateway requests - Use multi-dimension request metric with GatewayResponseCodeCategory dimension instead", - "sourceMdmAccount": "ApiManagementProd", - "sourceMdmNamespace": "Proxy", - "unit": "Count", - "aggregationType": "Total", - "supportedAggregationTypes": [ - "Total" - ], - "category": "Gateway Requests", - "dimensions": [ - { - "name": "Location", - "displayName": "Location", - "internalName": "Location", - "toBeExportedForShoebox": true - }, - { - "name": "Hostname", - "displayName": "Hostname", - "internalName": "Hostname", - "toBeExportedForShoebox": true - } - ] - }, - { - "fillGapWithZero": true, - "name": "SuccessfulRequests", - "displayName": "Successful Gateway Requests (Deprecated)", - "displayDescription": "Number of successful gateway requests - Use multi-dimension request metric with GatewayResponseCodeCategory dimension instead", - "sourceMdmAccount": "ApiManagementProd", - "sourceMdmNamespace": "Proxy", - "unit": "Count", - "aggregationType": "Total", - "supportedAggregationTypes": [ - "Total" - ], - "category": "Gateway Requests", - "dimensions": [ - { - "name": "Location", - "displayName": "Location", - "internalName": "Location", - "toBeExportedForShoebox": true - }, - { - "name": "Hostname", - "displayName": "Hostname", - "internalName": "Hostname", - "toBeExportedForShoebox": true - } - ] - }, - { - "fillGapWithZero": true, - "name": "UnauthorizedRequests", - "displayName": "Unauthorized Gateway Requests (Deprecated)", - "displayDescription": "Number of unauthorized gateway requests - Use multi-dimension request metric with GatewayResponseCodeCategory dimension instead", - "sourceMdmAccount": "ApiManagementProd", - "sourceMdmNamespace": "Proxy", - "unit": "Count", - "aggregationType": "Total", - "supportedAggregationTypes": [ - "Total" - ], - "category": "Gateway Requests", - "dimensions": [ - { - "name": "Location", - "displayName": "Location", - "internalName": "Location", - "toBeExportedForShoebox": true - }, - { - "name": "Hostname", - "displayName": "Hostname", - "internalName": "Hostname", - "toBeExportedForShoebox": true - } - ] - }, - { - "fillGapWithZero": true, - "name": "FailedRequests", - "displayName": "Failed Gateway Requests (Deprecated)", - "displayDescription": "Number of failures in gateway requests - Use multi-dimension request metric with GatewayResponseCodeCategory dimension instead", - "sourceMdmAccount": "ApiManagementProd", - "sourceMdmNamespace": "Proxy", - "unit": "Count", - "aggregationType": "Total", - "supportedAggregationTypes": [ - "Total" - ], - "category": "Gateway Requests", - "dimensions": [ - { - "name": "Location", - "displayName": "Location", - "internalName": "Location", - "toBeExportedForShoebox": true - }, - { - "name": "Hostname", - "displayName": "Hostname", - "internalName": "Hostname", - "toBeExportedForShoebox": true - } - ] - }, - { - "fillGapWithZero": true, - "name": "OtherRequests", - "displayName": "Other Gateway Requests (Deprecated)", - "displayDescription": "Number of other gateway requests - Use multi-dimension request metric with GatewayResponseCodeCategory dimension instead", - "sourceMdmAccount": "ApiManagementProd", - "sourceMdmNamespace": "Proxy", - "unit": "Count", - "aggregationType": "Total", - "supportedAggregationTypes": [ - "Total" - ], - "category": "Gateway Requests", - "dimensions": [ - { - "name": "Location", - "displayName": "Location", - "internalName": "Location", - "toBeExportedForShoebox": true - }, - { - "name": "Hostname", - "displayName": "Hostname", - "internalName": "Hostname", - "toBeExportedForShoebox": true - } - ] - }, - { - "fillGapWithZero": true, - "name": "Duration", - "displayName": "Overall Duration of Gateway Requests", - "displayDescription": "Overall Duration of Gateway Requests in milliseconds", - "sourceMdmAccount": "ApiManagementProd", - "sourceMdmNamespace": "Proxy", - "unit": "Milliseconds", - "aggregationType": "Average", - "supportedAggregationTypes": [ - "Average", - "Maximum", - "Minimum" - ], - "category": "Gateway Requests", - "dimensions": [ - { - "name": "Location", - "displayName": "Location", - "internalName": "Location", - "toBeExportedForShoebox": true - }, - { - "name": "Hostname", - "displayName": "Hostname", - "internalName": "Hostname", - "toBeExportedForShoebox": true - } - ] - }, - { - "fillGapWithZero": true, - "name": "BackendDuration", - "displayName": "Duration of Backend Requests", - "displayDescription": "Duration of Backend Requests in milliseconds", - "sourceMdmAccount": "ApiManagementProd", - "sourceMdmNamespace": "Proxy", - "unit": "Milliseconds", - "aggregationType": "Average", - "supportedAggregationTypes": [ - "Average", - "Maximum", - "Minimum" - ], - "category": "Gateway Requests", - "dimensions": [ - { - "name": "Location", - "displayName": "Location", - "internalName": "Location", - "toBeExportedForShoebox": true - }, - { - "name": "Hostname", - "displayName": "Hostname", - "internalName": "Hostname", - "toBeExportedForShoebox": true - } - ] - }, - { - "fillGapWithZero": false, - "name": "Capacity", - "displayName": "Capacity", - "displayDescription": "Utilization metric for ApiManagement service", - "sourceMdmAccount": "ApiManagementProd", - "sourceMdmNamespace": "Proxy", - "unit": "Percent", - "aggregationType": "Average", - "supportedAggregationTypes": [ - "Average", - "Maximum" - ], - "category": "Capacity", - "dimensions": [ - { - "name": "Location", - "displayName": "Location", - "internalName": "Location", - "toBeExportedForShoebox": true - } - ] - }, - { - "fillGapWithZero": true, - "name": "EventHubTotalEvents", - "displayName": "Total EventHub Events", - "displayDescription": "Number of events sent to EventHub", - "sourceMdmAccount": "ApiManagementShoeboxProd2", - "sourceMdmNamespace": "EventHubClient", - "unit": "Count", - "aggregationType": "Total", - "supportedAggregationTypes": [ - "Total" - ], - "category": "EventHub Events", - "dimensions": [ - { - "name": "Location", - "displayName": "Location", - "internalName": "Location", - "toBeExportedForShoebox": true - } - ] - }, - { - "fillGapWithZero": true, - "name": "EventHubSuccessfulEvents", - "displayName": "Successful EventHub Events", - "displayDescription": "Number of successful EventHub events", - "sourceMdmAccount": "ApiManagementShoeboxProd2", - "sourceMdmNamespace": "EventHubClient", - "unit": "Count", - "aggregationType": "Total", - "supportedAggregationTypes": [ - "Total" - ], - "category": "EventHub Events", - "dimensions": [ - { - "name": "Location", - "displayName": "Location", - "internalName": "Location", - "toBeExportedForShoebox": true - } - ] - }, - { - "fillGapWithZero": true, - "name": "EventHubTotalFailedEvents", - "displayName": "Failed EventHub Events", - "displayDescription": "Number of failed EventHub events", - "sourceMdmAccount": "ApiManagementShoeboxProd2", - "sourceMdmNamespace": "EventHubClient", - "unit": "Count", - "aggregationType": "Total", - "supportedAggregationTypes": [ - "Total" - ], - "category": "EventHub Events", - "dimensions": [ - { - "name": "Location", - "displayName": "Location", - "internalName": "Location", - "toBeExportedForShoebox": true - } - ] - }, - { - "fillGapWithZero": true, - "name": "EventHubRejectedEvents", - "displayName": "Rejected EventHub Events", - "displayDescription": "Number of rejected EventHub events (wrong configuration or unauthorized)", - "sourceMdmAccount": "ApiManagementShoeboxProd2", - "sourceMdmNamespace": "EventHubClient", - "unit": "Count", - "aggregationType": "Total", - "supportedAggregationTypes": [ - "Total" - ], - "category": "EventHub Events", - "dimensions": [ - { - "name": "Location", - "displayName": "Location", - "internalName": "Location", - "toBeExportedForShoebox": true - } - ] - }, - { - "fillGapWithZero": true, - "name": "EventHubThrottledEvents", - "displayName": "Throttled EventHub Events", - "displayDescription": "Number of throttled EventHub events", - "sourceMdmAccount": "ApiManagementShoeboxProd2", - "sourceMdmNamespace": "EventHubClient", - "unit": "Count", - "aggregationType": "Total", - "supportedAggregationTypes": [ - "Total" - ], - "category": "EventHub Events", - "dimensions": [ - { - "name": "Location", - "displayName": "Location", - "internalName": "Location", - "toBeExportedForShoebox": true - } - ] - }, - { - "fillGapWithZero": true, - "name": "EventHubTimedoutEvents", - "displayName": "Timed Out EventHub Events", - "displayDescription": "Number of timed out EventHub events", - "sourceMdmAccount": "ApiManagementShoeboxProd2", - "sourceMdmNamespace": "EventHubClient", - "unit": "Count", - "aggregationType": "Total", - "supportedAggregationTypes": [ - "Total" - ], - "category": "EventHub Events", - "dimensions": [ - { - "name": "Location", - "displayName": "Location", - "internalName": "Location", - "toBeExportedForShoebox": true - } - ] - }, - { - "fillGapWithZero": true, - "name": "EventHubDroppedEvents", - "displayName": "Dropped EventHub Events", - "displayDescription": "Number of events skipped because of queue size limit reached", - "sourceMdmAccount": "ApiManagementShoeboxProd2", - "sourceMdmNamespace": "EventHubClient", - "unit": "Count", - "aggregationType": "Total", - "supportedAggregationTypes": [ - "Total" - ], - "category": "EventHub Events", - "dimensions": [ - { - "name": "Location", - "displayName": "Location", - "internalName": "Location", - "toBeExportedForShoebox": true - } - ] - }, - { - "fillGapWithZero": true, - "name": "EventHubTotalBytesSent", - "displayName": "Size of EventHub Events", - "displayDescription": "Total size of EventHub events in bytes", - "sourceMdmAccount": "ApiManagementShoeboxProd2", - "sourceMdmNamespace": "EventHubClient", - "unit": "Bytes", - "aggregationType": "Total", - "supportedAggregationTypes": [ - "Total" - ], - "category": "EventHub Events", - "dimensions": [ - { - "name": "Location", - "displayName": "Location", - "internalName": "Location", - "toBeExportedForShoebox": true - } - ] - }, - { - "fillGapWithZero": true, - "name": "Requests", - "displayName": "Requests", - "displayDescription": "Gateway request metrics with multiple dimensions", - "sourceMdmAccount": "ApiManagementProd", - "sourceMdmNamespace": "Proxy", - "unit": "Count", - "aggregationType": "Total", - "supportedAggregationTypes": [ - "Total", - "Maximum", - "Minimum" - ], - "category": "Gateway Requests", - "dimensions": [ - { - "name": "Location", - "displayName": "Location", - "internalName": "Location", - "toBeExportedForShoebox": true - }, - { - "name": "Hostname", - "displayName": "Hostname", - "internalName": "Hostname", - "toBeExportedForShoebox": true - }, - { - "name": "LastErrorReason", - "displayName": "Last Error Reason", - "internalName": "LastErrorReason", - "toBeExportedForShoebox": true - }, - { - "name": "BackendResponseCode", - "displayName": "Backend Response Code", - "internalName": "BackendResponseCode", - "toBeExportedForShoebox": true - }, - { - "name": "GatewayResponseCode", - "displayName": "Gateway Response Code", - "internalName": "ResponseCode", - "toBeExportedForShoebox": true - }, - { - "name": "BackendResponseCodeCategory", - "displayName": "Backend Response Code Category", - "internalName": "BackendResponseCodeCategory", - "toBeExportedForShoebox": true - }, - { - "name": "GatewayResponseCodeCategory", - "displayName": "Gateway Response Code Category", - "internalName": "ResponseCodeCategory", - "toBeExportedForShoebox": true - } - ] - }, - { - "fillGapWithZero": true, - "name": "NetworkConnectivity", - "displayName": "Network Connectivity Status of Resources (Preview)", - "displayDescription": "Network Connectivity status of dependent resource types from API Management service", - "sourceMdmAccount": "ApiManagementShoeboxProd2", - "sourceMdmNamespace": "TenantHealth", - "unit": "Count", - "aggregationType": "Average", - "supportedAggregationTypes": [ - "Total", - "Average" - ], - "category": "Network Status", - "dimensions": [ - { - "name": "Location", - "displayName": "Location", - "internalName": "Region", - "toBeExportedForShoebox": true - }, - { - "name": "ResourceType", - "displayName": "ResourceType", - "internalName": "ResourceType", - "toBeExportedForShoebox": true - } - ] - } - ], - "logSpecifications": null - } - } - }, - { - "origin": "system", - "name": "Microsoft.ApiManagement/service/providers/Microsoft.Insights/logDefinitions/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "The log definition of API Management service", - "operation": "Read API Management service log definitions", - "description": "Gets the available logs for API Management service" - }, - "properties": { - "serviceSpecification": { - "metricSpecifications": null, - "logSpecifications": [ - { - "name": "GatewayLogs", - "displayName": "Logs related to ApiManagement Gateway", - "blobDuration": "PT1H" - } - ] - } - } - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/operations/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "API Management Operations", - "operation": "Read all API operations available for API Management", - "description": "Read all API operations available for Microsoft.ApiManagement resource" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/checkNameAvailability/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Check Name Availability", - "operation": "Check Name Availability", - "description": "Checks if provided service name is available" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/networkstatus/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Network Status", - "operation": "Gets the network status of the service", - "description": "Gets the network access status of resources on which the service depends on." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/outboundNetworkDependenciesEndpoints/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Outbound Network Dependencies Endpoints", - "operation": "Gets the outbound network dependencies endpoints of the service", - "description": "Gets the outbound network dependency status of resources on which the service depends on." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/locations/networkstatus/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Network Status By Location", - "operation": "Gets the network status of the service in the location", - "description": "Gets the network access status of resources on which the service depends on in the location." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/reports/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "API Management reports", - "operation": "Get reports", - "description": "Get reports aggregated by time periods, geographical region, developers, products, APIs, operations, subscription and byRequest." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/users/keys/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "User Keys", - "operation": "Get user keys", - "description": "Get keys associated with user" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/policy/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Tenant policies configuration", - "operation": "Get Tenant policy configuration", - "description": "Get the policy configuration at Tenant level" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/policy/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Tenant policies configuration", - "operation": "Create Tenant policy", - "description": "Create policy configuration at Tenant level" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/policy/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Tenant policies configuration", - "operation": "Delete Tenant policy configuration", - "description": "Delete the policy configuration at Tenant level" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/apis/policy/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "API policies configuration", - "operation": "Get API policy configuration", - "description": "Get the policy configuration at API level" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/apis/policy/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "API policies configuration", - "operation": "Create API policy", - "description": "Create policy configuration at API level" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/apis/policy/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "API policies configuration", - "operation": "Delete API policy configuration", - "description": "Delete the policy configuration at API level" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/apis/operations/policy/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "API Operation policies configuration", - "operation": "Get API Operation policy configuration", - "description": "Get the policy configuration at Operation level" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/apis/operations/policy/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "API Operation policies configuration", - "operation": "Create API Operation policy", - "description": "Create policy configuration at Operation level" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/apis/operations/policy/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "API Operation policies configuration", - "operation": "Delete API Operation policy configuration", - "description": "Delete the policy configuration at Operation level" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/products/policy/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Product policies configuration", - "operation": "Get Product policy configuration", - "description": "Get the policy configuration at Product level" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/products/policy/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Product policies configuration", - "operation": "Create Product policy", - "description": "Create policy configuration at Product level" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/products/policy/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Product policies configuration", - "operation": "Delete Product policy configuration", - "description": "Delete the policy configuration at Product level" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/deletedservices/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Deleted API Management Service", - "operation": "Get deleted API Management Services", - "description": "Get deleted API Management Services which can be restored within the soft-delete period" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/locations/deletedservices/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Deleted API Management Service", - "operation": "Purge API Management Service", - "description": "Delete API Management Service without the option to restore it" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/privateLinkResources/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "API Management Private Link Group Resource", - "operation": "Get Private Link Group Resources", - "description": "Get Private Link Group resources" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/privateEndpointConnections/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "API Management Private Endpoint Connections", - "operation": "Get Private Endpoint Connections by Name", - "description": "Get Private Endpoint Connections" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/privateEndpointConnections/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "API Management Private Endpoint Connections", - "operation": "Approve Or Reject Private Endpoint Connections by Name", - "description": "Approve Or Reject Private Endpoint Connections" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/privateEndpointConnections/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "API Management Private Endpoint Connections", - "operation": "Delete Private Endpoint Connections by Name", - "description": "Delete Private Endpoint Connections" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/privateEndpointConnectionProxies/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "API Management Private Endpoint Connection Proxy", - "operation": "Get Private Endpoint Connection Proxy", - "description": "Get Private Endpoint Connection Proxy" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/privateEndpointConnectionProxies/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "API Management Private Endpoint Connection Proxy", - "operation": "Create private endpoint connection proxy", - "description": "Create the private endpoint connection proxy" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/privateEndpointConnectionProxies/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "API Management Private Endpoint Connection Proxy", - "operation": "Delete private endpoint connection proxy", - "description": "Delete the private endpoint connection proxy" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/privateEndpointConnectionProxies/validate/action", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "API Management Private Endpoint Connection Proxy", - "operation": "Validate private endpoint connection proxy", - "description": "Validate the private endpoint connection proxy" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/privateEndpointConnectionProxies/operationresults/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "API Management Private Endpoint Connection Proxy", - "operation": "Api Management private endpoint operation results (read)", - "description": "View the result of private endpoint connection operations in the management portal" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/eventGridFilters/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "API Management Event Grid Filters", - "operation": "Set Event Grid Filters", - "description": "Set Event Grid Filters" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/eventGridFilters/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "API Management Event Grid Filters", - "operation": "Delete Event Grid Filters", - "description": "Delete Event Grid Filters" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/eventGridFilters/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "API Management Event Grid Filters", - "operation": "Get Event Grid Filter", - "description": "Get Event Grid Filter" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/authorizationProviders/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "AuthorizationProvider", - "operation": "Get TokenTrovider list or Get AuthorizationProvider details", - "description": "Lists AuthorizationProvider within a service instance or Gets a AuthorizationProvider" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/authorizationProviders/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "AuthorizationProvider", - "operation": "Create a AuthorizationProvider", - "description": "Creates a AuthorizationProvider" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/authorizationProviders/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "AuthorizationProvider", - "operation": "Deletes AuthorizationProvider", - "description": "Deletes a AuthorizationProvider" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/authorizationProviders/authorizations/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Authorization", - "operation": "Get Authorization list or Get Authorization details", - "description": "Lists Authorization or Get Authorization" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/authorizationProviders/authorizations/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Authorization", - "operation": "Create Authorization", - "description": "Creates a Authorization" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/authorizationProviders/authorizations/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Authorization", - "operation": "Deletes a Authorization", - "description": "Deletes a Authorization" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/authorizationProviders/authorizations/permission/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Authorization Permission", - "operation": "Get Authorization Permission list or Get Authorization Permission details", - "description": "Lists Authorization Permissions or Get Authorization Permission" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/authorizationProviders/authorizations/permission/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Authorization Permission", - "operation": "Create Authorization Permission", - "description": "Creates a Authorization Permission" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/authorizationProviders/authorizations/permission/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Authorization Permission", - "operation": "Deletes a Authorization Permission", - "description": "Deletes a Authorization Permission" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/tenant/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Resource representing current tenant metadata", - "operation": "Get tenant access settings or Get tenant policy configuration or Get tenant access information", - "description": "Lists a collection of tenant access settings. or Get the Global policy definition of the Api Management service. or Get tenant access information details" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/tenant/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Resource representing current tenant metadata", - "operation": "Set tenant policy configuration or Update tenant access information or Update tenant access information", - "description": "Set policy configuration for the tenant or Update tenant access information details or Update tenant access information details" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/tenant/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Resource representing current tenant metadata", - "operation": "Remove tenant policy configuration", - "description": "Remove policy configuration for the tenant" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/tenant/listSecrets/action", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Resource representing current tenant metadata", - "operation": "Get tenant access information", - "description": "Get tenant access information details" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/tenant/regeneratePrimaryKey/action", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Resource representing current tenant metadata", - "operation": "Regenerate primary key", - "description": "Regenerate primary access key" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/tenant/regenerateSecondaryKey/action", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Resource representing current tenant metadata", - "operation": "Regenerate secondary key", - "description": "Regenerate secondary access key" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/tenant/deploy/action", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Resource representing current tenant metadata", - "operation": "Runs a deployment task to apply changes from the specified git branch", - "description": "Runs a deployment task to apply changes from the specified git branch to the configuration in database." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/tenant/save/action", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Resource representing current tenant metadata", - "operation": "Creates commit with configuration snapshot", - "description": "Creates commit with configuration snapshot to the specified branch in the repository" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/tenant/validate/action", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Resource representing current tenant metadata", - "operation": "Validates changes from the specified branch", - "description": "Validates changes from the specified git branch" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/tenant/syncState/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Get status of last synchronization", - "operation": "Get status of last synchronization", - "description": "Get status of last git synchronization" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/tenant/operationResults/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Results of async operations", - "operation": "Get operation results or Get operation result", - "description": "Get list of operation results or Get result of a specific operation" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/settings/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Resource representing current tenant settings", - "operation": "Get portal settings", - "description": "Lists a collection of tenant settings. Always empty. Use /settings/public instead" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/groups/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Groups", - "operation": "Get groups list or Get group details", - "description": "Lists a collection of groups defined within a service instance. or Gets the details of the group specified by its identifier." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/groups/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Groups", - "operation": "Create group or Update group", - "description": "Creates or Updates a group. or Updates the details of the group specified by its identifier." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/groups/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Groups", - "operation": "Remove group", - "description": "Deletes specific group of the API Management service instance." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/groups/users/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Group users", - "operation": "Get group users list", - "description": "Lists a collection of user entities associated with the group." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/groups/users/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Group users", - "operation": "Add user to group", - "description": "Add existing user to existing group" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/groups/users/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Group users", - "operation": "Remove user from group", - "description": "Remove existing user from existing group." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/users/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "User accounts", - "operation": "Get users list or Get user details", - "description": "Lists a collection of registered users in the specified service instance. or Gets the details of the user specified by its identifier." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/users/action", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "User accounts", - "operation": "Register new user", - "description": "Register a new user" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/users/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "User accounts", - "operation": "Register new user or Update user", - "description": "Creates or Updates a user. or Updates the details of the user specified by its identifier." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/users/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "User accounts", - "operation": "Remove user", - "description": "Deletes specific user." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/users/generateSsoUrl/action", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "User accounts", - "operation": "Generage SSO URL", - "description": "Retrieves a redirection URL containing an authentication token for signing a given user into the developer portal." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/users/groups/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Developer groups assigned to user", - "operation": "Get user groups list", - "description": "Lists all user groups." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/users/subscriptions/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "User subscriptions", - "operation": "Get user subscriptions list", - "description": "Lists the collection of subscriptions of the specified user." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/users/identities/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Get user identities list", - "operation": "List of user Identities.", - "description": "List of all user identities." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/users/token/action", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "User accounts", - "operation": "Get token", - "description": "Gets the Shared Access Authorization Token for the User." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/users/confirmations/send/action", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Send password reset confirmation", - "operation": "Send", - "description": "Sends confirmation" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/regions/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Service Regions", - "operation": "List of all azure regions in which the service exists.", - "description": "Lists all azure regions in which the service exists." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/products/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Products", - "operation": "Get product list or Get product details", - "description": "Lists a collection of products in the specified service instance. or Gets the details of the product specified by its identifier." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/products/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Products", - "operation": "Create product or Update product", - "description": "Creates or Updates a product. or Update existing product details." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/products/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Products", - "operation": "Remove product", - "description": "Delete product." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/products/apis/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "APIs added to product", - "operation": "Get product APIs list", - "description": "Lists a collection of the APIs associated with a product." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/products/apis/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "APIs added to product", - "operation": "Add API to product", - "description": "Adds an API to the specified product." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/products/apis/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "APIs added to product", - "operation": "Remove API from product", - "description": "Deletes the specified API from the specified product." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/products/groups/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Developer groups associated with product", - "operation": "Get product groups list", - "description": "Lists the collection of developer groups associated with the specified product." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/products/groups/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Developer groups associated with product", - "operation": "Associate group with product", - "description": "Adds the association between the specified developer group with the specified product." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/products/groups/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Developer groups associated with product", - "operation": "Delete group with product association", - "description": "Deletes the association between the specified group and product." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/products/subscriptions/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Product subscriptions", - "operation": "Get product subscriptions list", - "description": "Lists the collection of subscriptions to the specified product." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/products/policies/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Product policies configuration", - "operation": "Get Product policies or Get Product policy configuration", - "description": "Get the policy configuration at the Product level. or Get the policy configuration at the Product level." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/products/policies/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Product policies configuration", - "operation": "Set Product policy configuration", - "description": "Creates or updates policy configuration for the Product." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/products/policies/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Product policies configuration", - "operation": "Remove Product policy configuration from policies", - "description": "Deletes the policy configuration at the Product." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/products/tags/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Tags associated with the Product", - "operation": "Get product tags or Tag details", - "description": "Lists all Tags associated with the Product. or Get tag associated with the Product." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/products/tags/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Tags associated with the Product", - "operation": "Associate Tag with Product", - "description": "Assign tag to the Product." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/products/tags/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Tags associated with the Product", - "operation": "Delete Tag with Product association", - "description": "Detach the tag from the Product." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/subscriptions/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Product subscriptions", - "operation": "Get subscriptions list or Get subscripiton details", - "description": "Lists all subscriptions of the API Management service instance. or Gets the specified Subscription entity (without keys)." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/subscriptions/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Product subscriptions", - "operation": "Subscribe to product or Update subscription", - "description": "Creates or updates the subscription of specified user to the specified product. or Updates the details of a subscription specified by its identifier." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/subscriptions/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Product subscriptions", - "operation": "Delete subscription", - "description": "Deletes the specified subscription." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/subscriptions/regeneratePrimaryKey/action", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Product subscriptions", - "operation": "Regenerate subscription PK", - "description": "Regenerates primary key of existing subscription of the API Management service instance." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/subscriptions/regenerateSecondaryKey/action", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Product subscriptions", - "operation": "Regenerate subscription SK", - "description": "Regenerates secondary key of existing subscription of the API Management service instance." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/subscriptions/listSecrets/action", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Product subscriptions", - "operation": "Get subscripiton keys", - "description": "Gets the specified Subscription keys." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/apis/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "APIs", - "operation": "Get API list or Get API details", - "description": "Lists all APIs of the API Management service instance. or Gets the details of the API specified by its identifier." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/apis/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "APIs", - "operation": "Create API or Update API", - "description": "Creates new or updates existing specified API of the API Management service instance. or Updates the specified API of the API Management service instance." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/apis/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "APIs", - "operation": "Remove API", - "description": "Deletes the specified API of the API Management service instance." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/apis/revisions/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "API revisions", - "operation": "Get revisions for an API", - "description": "Lists all revisions of an API." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/apis/revisions/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "API revisions", - "operation": "Delete revisions of an API", - "description": "Removes all revisions of an API" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/apis/releases/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "API releases", - "operation": "Get revisions for an API or Get API release details", - "description": "Lists all releases of an API. An API release is created when making an API Revision current. Releases are also used to rollback to previous revisions. Results will be paged and can be constrained by the $top and $skip parameters. or Returns the details of an API release." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/apis/releases/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "API releases", - "operation": "Removes all releases of the API or Delete API release", - "description": "Removes all releases of the API or Deletes the specified release in the API." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/apis/releases/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "API releases", - "operation": "Create API release or Update API release", - "description": "Creates a new Release for the API. or Updates the details of the release of the API specified by its identifier." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/apis/operations/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "API operations", - "operation": "Get API operations or Get API operation details", - "description": "Lists a collection of the operations for the specified API. or Gets the details of the API Operation specified by its identifier." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/apis/operations/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "API operations", - "operation": "Create API operation or Update API operation", - "description": "Creates a new operation in the API or updates an existing one. or Updates the details of the operation in the API specified by its identifier." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/apis/operations/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "API operations", - "operation": "Remove API operation", - "description": "Deletes the specified operation in the API." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/apis/operations/policies/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "API Operation policies configuration", - "operation": "Get API Operation policies or Get API operation policy configuration", - "description": "Get the list of policy configuration at the API Operation level. or Get the policy configuration at the API Operation level." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/apis/operations/policies/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "API Operation policies configuration", - "operation": "Set API operation policy configuration", - "description": "Creates or updates policy configuration for the API Operation level." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/apis/operations/policies/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "API Operation policies configuration", - "operation": "Remove API Operation policy configuration from policies", - "description": "Deletes the policy configuration at the Api Operation." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/apis/operations/tags/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Tags associated with the Operation", - "operation": "Get tags associated with the Operation or Tag details", - "description": "Lists all Tags associated with the Operation. or Get tag associated with the Operation." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/apis/operations/tags/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Tags associated with the Operation", - "operation": "Associate Tag with Operation", - "description": "Assign tag to the Operation." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/apis/operations/tags/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Tags associated with the Operation", - "operation": "Delete Tag with Operation association", - "description": "Detach the tag from the Operation." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/apis/products/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "API associated products", - "operation": "Get products associated with the API", - "description": "Lists all Products, which the API is part of." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/apis/policies/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "API policies configuration", - "operation": "Get API policies or Get API policy configuration", - "description": "Get the policy configuration at the API level. or Get the policy configuration at the API level." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/apis/policies/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "API policies configuration", - "operation": "Set API policy configuration", - "description": "Creates or updates policy configuration for the API." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/apis/policies/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "API policies configuration", - "operation": "Remove API policy configuration from policies", - "description": "Deletes the policy configuration at the Api." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/apis/schemas/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Schemas associated with the API", - "operation": "Gets the schemas stored for a given API or Gets schemas for the API", - "description": "Get the schema configuration at the API level. or Get the schema configuration at the API level." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/apis/schemas/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Schemas associated with the API", - "operation": "Sets schema used by the API", - "description": "Creates or updates schema configuration for the API." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/apis/schemas/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Schemas associated with the API", - "operation": "Removes schema for the API", - "description": "Deletes the schema configuration at the Api." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/apis/diagnostics/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "API diagnostics", - "operation": "Get diagnostics list or Get diagnostic details", - "description": "Lists all diagnostics of an API. or Gets the details of the Diagnostic for an API specified by its identifier." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/apis/diagnostics/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "API diagnostics", - "operation": "Add diagnostic or Update diagnostic", - "description": "Creates a new Diagnostic for an API or updates an existing one. or Updates the details of the Diagnostic for an API specified by its identifier." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/apis/diagnostics/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "API diagnostics", - "operation": "Remove diagnostic", - "description": "Deletes the specified Diagnostic from an API." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/apis/issues/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "API issues", - "operation": "Get API Issues or API Management issue details", - "description": "Lists all issues associated with the specified API. or Gets the details of the Issue for an API specified by its identifier." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/apis/issues/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "API issues", - "operation": "Adds issue or Updates issue", - "description": "Creates a new Issue for an API or updates an existing one. or Updates an existing issue for an API." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/apis/issues/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "API issues", - "operation": "Removes issue", - "description": "Deletes the specified Issue from an API." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/apis/issues/comments/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Issue Comments", - "operation": "Get comments or Get comment details", - "description": "Lists all comments for the Issue associated with the specified API. or Gets the details of the issue Comment for an API specified by its identifier." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/apis/issues/comments/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Issue Comments", - "operation": "Add api comment", - "description": "Creates a new Comment for the Issue in an API or updates an existing one." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/apis/issues/comments/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Issue Comments", - "operation": "Removes comment", - "description": "Deletes the specified comment from an Issue." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/apis/issues/attachments/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Issue Attachments", - "operation": "Get attachments or Get attachments details", - "description": "Lists all attachments for the Issue associated with the specified API. or Gets the details of the issue Attachment for an API specified by its identifier." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/apis/issues/attachments/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Issue Attachments", - "operation": "Add issue attachment", - "description": "Creates a new Attachment for the Issue in an API or updates an existing one." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/apis/issues/attachments/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Issue Attachments", - "operation": "Remove attachments", - "description": "Deletes the specified comment from an Issue." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/apis/tagDescriptions/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Tags descriptions", - "operation": "Tags descriptions in scope of API or Get Tag metadata", - "description": "Lists all Tags descriptions in scope of API. Model similar to swagger - tagDescription is defined on API level but tag may be assigned to the Operations or Get Tag description in scope of API" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/apis/tagDescriptions/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Tags descriptions", - "operation": "Create/Change Tag metadata", - "description": "Create/Update tag description in scope of the Api." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/apis/tagDescriptions/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Tags descriptions", - "operation": "Remove Tag", - "description": "Delete tag description for the Api." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/apis/tags/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "API/Tag associations", - "operation": "Get tags associated with the API or Get Tag associated with API", - "description": "Lists all Tags associated with the API. or Get tag associated with the API." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/apis/tags/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "API/Tag associations", - "operation": "Add Tag", - "description": "Assign tag to the Api." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/apis/tags/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "API/Tag associations", - "operation": "Remove Tag", - "description": "Detach the tag from the Api." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/apis/operationsByTags/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Tags - Operation associations", - "operation": "Get Operation-Tag associations list", - "description": "Lists a collection of operations associated with tags." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/policies/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Tenant policies configuration", - "operation": "Get Tenant policies or Get Tenant policy configuration", - "description": "Lists all the Global Policy definitions of the Api Management service. or Get the Global policy definition of the Api Management service." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/policies/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Tenant policies configuration", - "operation": "Set Tenant policy configuration", - "description": "Creates or updates the global policy configuration of the Api Management service." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/policies/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Tenant policies configuration", - "operation": "Remove Tenant policy configuration from policies", - "description": "Deletes the global policy configuration of the Api Management Service." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/reports/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "By time report", - "operation": "Get by time report or Get by region report or Get by developer repoer or Get by product report or Get by API report or Get by operation report or Get by subscription report or Get requests data report", - "description": "Get report aggregated by time periods or Get report aggregated by geographical region or Get report aggregated by developers. or Get report aggregated by products. or Get report aggregated by APIs or Get report aggregated by operations or Get report aggregated by subscription. or Get requests reporting data" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/policySnippets/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Collection of policy snippets", - "operation": "Get policy snippets", - "description": "Lists all policy snippets." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/policyDescriptions/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Collection of policy descriptions", - "operation": "Get policy descriptions", - "description": "Lists all policy descriptions." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/certificates/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Certificates", - "operation": "Get certificates list or Get cerificate details", - "description": "Lists a collection of all certificates in the specified service instance. or Gets the details of the certificate specified by its identifier." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/certificates/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Certificates", - "operation": "Add certificate", - "description": "Creates or updates the certificate being used for authentication with the backend." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/certificates/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Certificates", - "operation": "Remove certificate", - "description": "Deletes specific certificate." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/certificates/refreshSecret/action", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Certificates", - "operation": "Refresh certificate from KeyVault", - "description": "Refreshes certificate by fetching it from Key Vault." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/loggers/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Loggers", - "operation": "Get loggers list or Get logger details", - "description": "Lists a collection of loggers in the specified service instance. or Gets the details of the logger specified by its identifier." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/loggers/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Loggers", - "operation": "Add logger or Update logger", - "description": "Creates or Updates a logger. or Updates an existing logger." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/loggers/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Loggers", - "operation": "Remove logger", - "description": "Deletes the specified logger." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/authorizationServers/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "OAuth Authorization servers", - "operation": "Get authorization service list or Get authorization server details without secrets", - "description": "Lists a collection of authorization servers defined within a service instance. or Gets the details of the authorization server without secrets." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/authorizationServers/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "OAuth Authorization servers", - "operation": "Create new authorization server or Update existing authorization server", - "description": "Creates new authorization server or updates an existing authorization server. or Updates the details of the authorization server specified by its identifier." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/authorizationServers/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "OAuth Authorization servers", - "operation": "Remove authorization server", - "description": "Deletes specific authorization server instance." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/authorizationServers/listSecrets/action", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "OAuth Authorization servers", - "operation": "Get authorization server secrets", - "description": "Gets secrets for the authorization server." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/backends/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Backends", - "operation": "Get backends list or Get backend details", - "description": "Lists a collection of backends in the specified service instance. or Gets the details of the backend specified by its identifier." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/backends/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Backends", - "operation": "Add backend or Update backend", - "description": "Creates or Updates a backend. or Updates an existing backend." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/backends/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Backends", - "operation": "Remove backend", - "description": "Deletes the specified backend." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/backends/reconnect/action", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Backends", - "operation": "Create Request", - "description": "Notifies the APIM proxy to create a new connection to the backend after the specified timeout. If no timeout was specified, timeout of 2 minutes is used." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/issues/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Collection of all API Management issues", - "operation": "Lists a collection of issues in the specified service instance. or Get the issue details", - "description": "Lists a collection of issues in the specified service instance. or Gets API Management issue details" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/templates/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Collection of all email templates", - "operation": "Get email templates or Get email template details", - "description": "Gets all email templates or Gets API Management email template details" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/templates/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Collection of all email templates", - "operation": "Create or update email template or Update email template", - "description": "Create or update API Management email template or Updates API Management email template" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/templates/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Collection of all email templates", - "operation": "Reset default email template", - "description": "Reset default API Management email template" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/properties/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Collection of properties. Properties are used to manage constant string values across all API configurations or policies.", - "operation": "Get all properties or Get property details", - "description": "Lists a collection of properties defined within a service instance. or Gets the details of the property specified by its identifier." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/properties/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Collection of properties. Properties are used to manage constant string values across all API configurations or policies.", - "operation": "Create property or Update property value", - "description": "Creates or updates a property. or Updates the specific property." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/properties/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Collection of properties. Properties are used to manage constant string values across all API configurations or policies.", - "operation": "Remove property", - "description": "Deletes specific property from the API Management service instance." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/properties/listSecrets/action", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Collection of properties. Properties are used to manage constant string values across all API configurations or policies.", - "operation": "Get property secrets", - "description": "Gets the secrets of the property specified by its identifier." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/namedValues/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Collection of named values. Named values are used to manage constant string values across all API configurations or policies.", - "operation": "Get all named values or Get named value details", - "description": "Lists a collection of named values defined within a service instance. or Gets the details of the named value specified by its identifier." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/namedValues/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Collection of named values. Named values are used to manage constant string values across all API configurations or policies.", - "operation": "Create named value or Update named value", - "description": "Creates or updates named value. or Updates the specific named value." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/namedValues/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Collection of named values. Named values are used to manage constant string values across all API configurations or policies.", - "operation": "Remove named value", - "description": "Deletes specific named value from the API Management service instance." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/namedValues/listValue/action", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Collection of named values. Named values are used to manage constant string values across all API configurations or policies.", - "operation": "Get the value", - "description": "Gets the secret of the named value specified by its identifier." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/namedValues/refreshSecret/action", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Collection of named values. Named values are used to manage constant string values across all API configurations or policies.", - "operation": "Refresh certificate from KeyVault", - "description": "Refreshes named value by fetching it from Key Vault." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/notifications/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Collection of all ApiManagement Publisher Notifications", - "operation": "Get all publisher notifications or Get publisher notification details", - "description": "Lists a collection of properties defined within a service instance. or Gets the details of the Notification specified by its identifier." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/notifications/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Collection of all ApiManagement Publisher Notifications", - "operation": "Create publisher notification", - "description": "Create or Update API Management publisher notification." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/notifications/action", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "User accounts", - "operation": "Send notification", - "description": "Sends notification to a specified user" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/notifications/recipientUsers/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Recipient Users associated with a notification", - "operation": "Get recipient users for the Notification", - "description": "Gets the list of the Notification Recipient User subscribed to the notification." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/notifications/recipientUsers/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Recipient Users associated with a notification", - "operation": "Add user to notification", - "description": "Adds the API Management User to the list of Recipients for the Notification." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/notifications/recipientUsers/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Recipient Users associated with a notification", - "operation": "Removes user from notification recipients", - "description": "Removes the API Management user from the list of Notification." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/notifications/recipientEmails/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Recipient Emails associated with a notification", - "operation": "Get Email Recipients associated with Publisher Notification", - "description": "Gets the list of the Notification Recipient Emails subscribed to a notification." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/notifications/recipientEmails/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Recipient Emails associated with a notification", - "operation": "Create new email recipient", - "description": "Adds the Email address to the list of Recipients for the Notification." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/notifications/recipientEmails/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Recipient Emails associated with a notification", - "operation": "Removes email associated with notification", - "description": "Removes the email from the list of Notification." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/openidConnectProviders/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "OpenID Connect Providers", - "operation": "Get OpenID providers list or Get OpenID Connect Provider details without secrets", - "description": "Lists of all the OpenId Connect Providers. or Gets specific OpenID Connect Provider without secrets." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/openidConnectProviders/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "OpenID Connect Providers", - "operation": "Create new OpenID Connect Provider or Update existing OpenID Connect Provider", - "description": "Creates or updates the OpenID Connect Provider. or Updates the specific OpenID Connect Provider." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/openidConnectProviders/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "OpenID Connect Providers", - "operation": "Remove OpenID Connect Provider", - "description": "Deletes specific OpenID Connect Provider of the API Management service instance." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/openidConnectProviders/listSecrets/action", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "OpenID Connect Providers", - "operation": "Get OpenID Connect Provider secrets", - "description": "Gets specific OpenID Connect Provider secrets." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/quotas/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Quotas", - "operation": "Get quota values", - "description": "Get values for quota" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/quotas/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Quotas", - "operation": "Set quota counter", - "description": "Set quota counter current value" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/quotas/periods/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Quotas", - "operation": "Get quota values", - "description": "Get quota counter value for period" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/quotas/periods/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Quotas", - "operation": "Set quota counter", - "description": "Set quota counter current value" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/identityProviders/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Identity Providers", - "operation": "Get Identity providers list or Get Identity Provider details", - "description": "Lists a collection of Identity Provider configured in the specified service instance. or Gets the configuration details of the identity Provider without secrets." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/identityProviders/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Identity Providers", - "operation": "Create new Identity Provider or Update existing Identity Provider", - "description": "Creates or Updates the IdentityProvider configuration. or Updates an existing IdentityProvider configuration." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/identityProviders/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Identity Providers", - "operation": "Remove Identity Provider", - "description": "Deletes the specified identity provider configuration." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/identityProviders/listSecrets/action", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Identity Providers", - "operation": "Get Identity Provider secrets", - "description": "Gets Identity Provider secrets." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/apiVersionSets/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "ApiVersionSets", - "operation": "Get version set list or Get versionSet details", - "description": "Lists a collection of API Version Sets in the specified service instance. or Gets the details of the Api Version Set specified by its identifier." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/apiVersionSets/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "ApiVersionSets", - "operation": "Create VersionSet or Update VersionSet", - "description": "Creates or Updates a Api Version Set. or Updates the details of the Api VersionSet specified by its identifier." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/apiVersionSets/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "ApiVersionSets", - "operation": "Remove VersionSet", - "description": "Deletes specific Api Version Set." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/apiVersionSets/versions/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Version entities associated with VersionSet", - "operation": "Get VersionSet version entity list", - "description": "Get list of version entities" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/portalSettings/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Portal Settings", - "operation": "Get portal settings or Get Sign In Settings or Get Sign Up Settings or Get Delegation Settings", - "description": "Lists a collection of portal settings. or Get Sign In Settings for the Portal or Get Sign Up Settings for the Portal or Get Delegation Settings for the Portal." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/portalSettings/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Portal Settings", - "operation": "Update Settings or Update Settings or Update Settings or Update Settings or Update Settings or Update Settings", - "description": "Update Sign-In settings. or Create or Update Sign-In settings. or Update Sign Up settings or Update Sign Up settings or Update Delegation settings. or Create or Update Delegation settings." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/portalSettings/listSecrets/action", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Portal Settings", - "operation": "Get property secrets or Get media content blob container uri", - "description": "Gets validation key of portal delegation settings. or Get media content blob container uri." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/portalConfigs/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "portalConfigs", - "operation": "Get developer portal config list or Get developer portal config details", - "description": "Lists a collection of developer portal config entities. or Gets developer portal config specified by its identifier." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/portalConfigs/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "portalConfigs", - "operation": "Create developer portal config or Update developer portal config", - "description": "Creates a new developer portal config. or Updates the description of specified portal config or makes it current." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/portalConfigs/listDelegationSecrets/action", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "portalConfigs", - "operation": "Get property secrets", - "description": "Gets validation key of portal delegation settings." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/diagnostics/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Diagnostics", - "operation": "Get diagnostics list or Get diagnostic details", - "description": "Lists all diagnostics of the API Management service instance. or Gets the details of the Diagnostic specified by its identifier." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/diagnostics/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Diagnostics", - "operation": "Add diagnostic or Update diagnostic", - "description": "Creates a new Diagnostic or updates an existing one. or Updates the details of the Diagnostic specified by its identifier." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/diagnostics/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Diagnostics", - "operation": "Remove diagnostic", - "description": "Deletes the specified Diagnostic." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/tags/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Tags", - "operation": "Get Tags list or Tag details", - "description": "Lists a collection of tags defined within a service instance. or Gets the details of the tag specified by its identifier." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/tags/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Tags", - "operation": "Add Tag or Update Tag", - "description": "Creates a tag. or Updates the details of the tag specified by its identifier." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/tags/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Tags", - "operation": "Remove Tag", - "description": "Deletes specific tag of the API Management service instance." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/tagResources/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "TagResources", - "operation": "Get Tags Resources", - "description": "Lists a collection of resources associated with tags." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/apisByTags/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Tags - Apis associations", - "operation": "Get Api-Tag associations list", - "description": "Lists a collection of apis associated with tags." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/productsByTags/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Tags - Products associations", - "operation": "Get Product-Tag associations list", - "description": "Lists a collection of products associated with tags." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/caches/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "External caches", - "operation": "Lists a collection of all external Caches in the specified service instance. or Get cache details", - "description": "Lists a collection of all external Caches in the specified service instance. or Gets the details of the Cache specified by its identifier." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/caches/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "External caches", - "operation": "Create cache or Update cache", - "description": "Creates or updates an External Cache to be used in Api Management instance. or Updates the details of the cache specified by its identifier." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/caches/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "External caches", - "operation": "Remove cache", - "description": "Deletes specific Cache." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/contentTypes/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Content types", - "operation": "Get content types or Get all", - "description": "Returns list of content types or Returns content type" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/contentTypes/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Content types", - "operation": "Delete content item", - "description": "Removes content type." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/contentTypes/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Content types", - "operation": "Create content item", - "description": "Creates new content type" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/contentTypes/contentItems/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Content items", - "operation": "Get all or Get content item details", - "description": "Returns list of content items or Returns content item details" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/contentTypes/contentItems/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Content items", - "operation": "Create content item or Update content item", - "description": "Creates new content item or Updates specified content item" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/contentTypes/contentItems/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Content items", - "operation": "Delete content item", - "description": "Removes specified content item." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/gateways/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Gateways", - "operation": "Get gateways list or Get gateway details", - "description": "Lists a collection of gateways registered with service instance. or Gets the details of the Gateway specified by its identifier." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/gateways/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Gateways", - "operation": "Create gateway or Update gateway", - "description": "Creates or updates an Gateway to be used in Api Management instance. or Updates the details of the gateway specified by its identifier." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/gateways/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Gateways", - "operation": "Remove gateway", - "description": "Deletes specific Gateway." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/gateways/listKeys/action", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Gateways", - "operation": "Get gateway keys", - "description": "Retrieves gateway keys." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/gateways/regenerateKey/action", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Gateways", - "operation": "Regenerate key", - "description": "Regenerates specified gateway key invalidationg any tokens created with it." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/gateways/generateToken/action", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Gateways", - "operation": "Get token", - "description": "Gets the Shared Access Authorization Token for the gateway." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/gateways/hostnameConfigurations/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Gateway hostname configurations", - "operation": "Get hostname configuration list or Get hostname configuration details", - "description": "Lists the collection of hostname configurations for the specified gateway. or Get details of a hostname configuration" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/gateways/hostnameConfigurations/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Gateway hostname configurations", - "operation": "Request product subscription", - "description": "Request subscription for a new product" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/gateways/hostnameConfigurations/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Gateway hostname configurations", - "operation": "Remove hostname configuration", - "description": "Deletes the specified hostname configuration." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/gateways/apis/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "APIs added to Gateway", - "operation": "Get Gateway APIs list", - "description": "Lists a collection of the APIs associated with a gateway." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/gateways/apis/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "APIs added to Gateway", - "operation": "Add API to Gateway", - "description": "Adds an API to the specified Gateway." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/gateways/apis/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "APIs added to Gateway", - "operation": "Remove API from Gateway", - "description": "Deletes the specified API from the specified Gateway." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/gateways/certificateAuthorities/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Certificates assigned to Gateway as Certificate Authorities", - "operation": "Get Gateway Certificate Authority list or Get assigned Certificate Authority details", - "description": "Get Gateway CAs list. or Get assigned Certificate Authority details." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/gateways/certificateAuthorities/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Certificates assigned to Gateway as Certificate Authorities", - "operation": "Assign Certificate to Gateway as Certificate Authority", - "description": "Adds an API to the specified Gateway." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/gateways/certificateAuthorities/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Certificates assigned to Gateway as Certificate Authorities", - "operation": "Unassign Certificate Authority from Gateway", - "description": "Unassign Certificate Authority from Gateway." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/portalRevisions/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "PortalRevisions", - "operation": "Get developer portal revision list or Get developer portal revision details", - "description": "Lists a collection of developer portal revision entities. or Gets developer portal revision specified by its identifier." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/portalRevisions/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "PortalRevisions", - "operation": "Create developer portal revision or Update developer portal revision", - "description": "Creates a new developer portal revision. or Updates the description of specified portal revision or makes it current." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/schemas/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Schemas", - "operation": "Get schemas list or Get schema details", - "description": "Lists a collection of schemas registered. or Gets the details of the Schema specified by its identifier." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/schemas/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Schemas", - "operation": "Create schema", - "description": "Creates or updates an Schema to be used in Api Management instance." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/schemas/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Schemas", - "operation": "Remove schema", - "description": "Deletes specific Schema." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/workspaces/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Workspaces", - "operation": "Get list of Workspaces or Workspace details", - "description": "Lists a collection of Workspaces defined within a service instance. or Gets the details of the Workspace specified by its identifier." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/workspaces/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Workspaces", - "operation": "Add Workspace or Update Workspace", - "description": "Creates Workspace. or Updates the details of the Workspace specified by its identifier." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/workspaces/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Workspaces", - "operation": "Remove Workspace", - "description": "Deletes specific Workspace of the API Management service instance." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/workspaces/namedValues/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Workspace NamedValues", - "operation": "Get all named values or Get named value details", - "description": "Lists a collection of named values defined within a service instance. or Gets the details of the named value specified by its identifier." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/workspaces/namedValues/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Workspace NamedValues", - "operation": "Create named value or Update named value", - "description": "Creates or updates named value. or Updates the specific named value." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/workspaces/namedValues/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Workspace NamedValues", - "operation": "Remove named value", - "description": "Deletes specific named value from the API Management service instance." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/workspaces/namedValues/listValue/action", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Workspace NamedValues", - "operation": "Get the value", - "description": "Gets the secret of the named value specified by its identifier." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/workspaces/namedValues/refreshSecret/action", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Workspace NamedValues", - "operation": "Refresh certificate from KeyVault", - "description": "Refreshes named value by fetching it from Key Vault." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/workspaces/apis/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Workspace APIs", - "operation": "Get API list or Get API details", - "description": "Lists all APIs of the API Management service instance. or Gets the details of the API specified by its identifier." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/workspaces/apis/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Workspace APIs", - "operation": "Create API or Update API", - "description": "Creates new or updates existing specified API of the API Management service instance. or Updates the specified API of the API Management service instance." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/workspaces/apis/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Workspace APIs", - "operation": "Remove API", - "description": "Deletes the specified API of the API Management service instance." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/workspaces/apis/operations/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "API operations", - "operation": "Get API operations or Get API operation details", - "description": "Lists a collection of the operations for the specified API. or Gets the details of the API Operation specified by its identifier." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/workspaces/apis/operations/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "API operations", - "operation": "Create API operation or Update API operation", - "description": "Creates a new operation in the API or updates an existing one. or Updates the details of the operation in the API specified by its identifier." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/workspaces/apis/operations/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "API operations", - "operation": "Remove API operation", - "description": "Deletes the specified operation in the API." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/workspaces/apis/operations/policies/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "API Operation policies configuration", - "operation": "Get API Operation policies or Get API operation policy configuration", - "description": "Get the list of policy configuration at the API Operation level. or Get the policy configuration at the API Operation level." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/workspaces/apis/operations/policies/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "API Operation policies configuration", - "operation": "Set API operation policy configuration", - "description": "Creates or updates policy configuration for the API Operation level." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/workspaces/apis/operations/policies/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "API Operation policies configuration", - "operation": "Remove API Operation policy configuration from policies", - "description": "Deletes the policy configuration at the Api Operation." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/workspaces/apis/operations/tags/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Tags associated with the Operation", - "operation": "Get tags associated with the Operation or Tag details", - "description": "Lists all Tags associated with the Operation. or Get tag associated with the Operation." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/workspaces/apis/operations/tags/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Tags associated with the Operation", - "operation": "Associate Tag with Operation", - "description": "Assign tag to the Operation." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/workspaces/apis/operations/tags/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Tags associated with the Operation", - "operation": "Delete Tag with Operation association", - "description": "Detach the tag from the Operation." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/workspaces/apis/products/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "API associated products", - "operation": "Get products associated with the API", - "description": "Lists all Products, which the API is part of." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/workspaces/apis/policies/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "API policies configuration", - "operation": "Get API policies or Get API policy configuration", - "description": "Get the policy configuration at the API level. or Get the policy configuration at the API level." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/workspaces/apis/policies/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "API policies configuration", - "operation": "Set API policy configuration", - "description": "Creates or updates policy configuration for the API." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/workspaces/apis/policies/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "API policies configuration", - "operation": "Remove API policy configuration from policies", - "description": "Deletes the policy configuration at the Api." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/workspaces/apis/tagDescriptions/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Tags descriptions", - "operation": "Tags descriptions in scope of API or Get Tag metadata", - "description": "Lists all Tags descriptions in scope of API. Model similar to swagger - tagDescription is defined on API level but tag may be assigned to the Operations or Get Tag description in scope of API" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/workspaces/apis/tagDescriptions/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Tags descriptions", - "operation": "Create/Change Tag metadata", - "description": "Create/Update tag description in scope of the Api." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/workspaces/apis/tagDescriptions/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Tags descriptions", - "operation": "Remove Tag", - "description": "Delete tag description for the Api." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/workspaces/apis/tags/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "API/Tag associations", - "operation": "Get tags associated with the API or Get Tag associated with API", - "description": "Lists all Tags associated with the API. or Get tag associated with the API." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/workspaces/apis/tags/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "API/Tag associations", - "operation": "Add Tag", - "description": "Assign tag to the Api." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/workspaces/apis/tags/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "API/Tag associations", - "operation": "Remove Tag", - "description": "Detach the tag from the Api." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/workspaces/apis/operationsByTags/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Tags - Operation associations", - "operation": "Get Operation-Tag associations list", - "description": "Lists a collection of operations associated with tags." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/workspaces/apis/schemas/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Schemas associated with the API", - "operation": "Gets the schemas stored for a given API or Gets schemas for the API", - "description": "Get the schema configuration at the API level. or Get the schema configuration at the API level." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/workspaces/apis/schemas/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Schemas associated with the API", - "operation": "Sets schema used by the API", - "description": "Creates or updates schema configuration for the API." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/workspaces/apis/schemas/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Schemas associated with the API", - "operation": "Removes schema for the API", - "description": "Deletes the schema configuration at the Api." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/workspaces/apis/schemas/document/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Document describing the API schema", - "operation": "Get the document for the schema", - "description": "Get the document describing the Schema" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/workspaces/apis/schemas/document/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Document describing the API schema", - "operation": "Update the document for the schema", - "description": "Update the document describing the Schema" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/workspaces/apiVersionSets/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Workspace ApiVersionSets", - "operation": "Get version set list or Get versionSet details", - "description": "Lists a collection of API Version Sets in the specified service instance. or Gets the details of the Api Version Set specified by its identifier." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/workspaces/apiVersionSets/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Workspace ApiVersionSets", - "operation": "Create VersionSet or Update VersionSet", - "description": "Creates or Updates a Api Version Set. or Updates the details of the Api VersionSet specified by its identifier." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/workspaces/apiVersionSets/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Workspace ApiVersionSets", - "operation": "Remove VersionSet", - "description": "Deletes specific Api Version Set." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/workspaces/apiVersionSets/versions/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Version entities associated with VersionSet", - "operation": "Get VersionSet version entity list", - "description": "Get list of version entities" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/workspaces/subscriptions/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Product subscriptions", - "operation": "Get subscriptions list or Get subscripiton details", - "description": "Lists all subscriptions of the API Management service instance. or Gets the specified Subscription entity (without keys)." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/workspaces/subscriptions/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Product subscriptions", - "operation": "Subscribe to product or Update subscription", - "description": "Creates or updates the subscription of specified user to the specified product. or Updates the details of a subscription specified by its identifier." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/workspaces/subscriptions/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Product subscriptions", - "operation": "Delete subscription", - "description": "Deletes the specified subscription." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/workspaces/subscriptions/regeneratePrimaryKey/action", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Product subscriptions", - "operation": "Regenerate subscription PK", - "description": "Regenerates primary key of existing subscription of the API Management service instance." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/workspaces/subscriptions/regenerateSecondaryKey/action", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Product subscriptions", - "operation": "Regenerate subscription SK", - "description": "Regenerates secondary key of existing subscription of the API Management service instance." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/workspaces/subscriptions/listSecrets/action", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Product subscriptions", - "operation": "Get subscripiton keys", - "description": "Gets the specified Subscription keys." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/workspaces/products/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Products", - "operation": "Get product list or Get product details", - "description": "Lists a collection of products in the specified service instance. or Gets the details of the product specified by its identifier." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/workspaces/products/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Products", - "operation": "Create product or Update product", - "description": "Creates or Updates a product. or Update existing product details." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/workspaces/products/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Products", - "operation": "Remove product", - "description": "Delete product." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/workspaces/products/apis/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "APIs added to product", - "operation": "Get product APIs list", - "description": "Lists a collection of the APIs associated with a product." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/workspaces/products/apis/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "APIs added to product", - "operation": "Add API to product", - "description": "Adds an API to the specified product." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/workspaces/products/apis/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "APIs added to product", - "operation": "Remove API from product", - "description": "Deletes the specified API from the specified product." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/workspaces/products/groups/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Developer groups associated with product", - "operation": "Get product groups list", - "description": "Lists the collection of developer groups associated with the specified product." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/workspaces/products/groups/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Developer groups associated with product", - "operation": "Associate group with product", - "description": "Adds the association between the specified developer group with the specified product." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/workspaces/products/groups/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Developer groups associated with product", - "operation": "Delete group with product association", - "description": "Deletes the association between the specified group and product." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/workspaces/products/subscriptions/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Product subscriptions", - "operation": "Get product subscriptions list", - "description": "Lists the collection of subscriptions to the specified product." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/workspaces/products/policies/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Product policies configuration", - "operation": "Get Product policies or Get Product policy configuration", - "description": "Get the policy configuration at the Product level. or Get the policy configuration at the Product level." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/workspaces/products/policies/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Product policies configuration", - "operation": "Set Product policy configuration", - "description": "Creates or updates policy configuration for the Product." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/workspaces/products/policies/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Product policies configuration", - "operation": "Remove Product policy configuration from policies", - "description": "Deletes the policy configuration at the Product." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/workspaces/products/tags/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Tags associated with the Product", - "operation": "Get product tags or Tag details", - "description": "Lists all Tags associated with the Product. or Get tag associated with the Product." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/workspaces/products/tags/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Tags associated with the Product", - "operation": "Associate Tag with Product", - "description": "Assign tag to the Product." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/workspaces/products/tags/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Tags associated with the Product", - "operation": "Delete Tag with Product association", - "description": "Detach the tag from the Product." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/policyFragments/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Policy fragments", - "operation": "Get policy fragments or Get policy fragment", - "description": "Gets all policy fragments. or Gets a policy fragment." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/policyFragments/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Policy fragments", - "operation": "Set policy fragment", - "description": "Creates or updates a policy fragment." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/policyFragments/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Policy fragments", - "operation": "Delete policy fragment", - "description": "Deletes a policy fragment." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/policyFragments/listReferences/action", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Policy fragments", - "operation": "List policy fragment references", - "description": "Lists policy resources that reference the policy fragment." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/tenants/apis/revisions/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "API revisions", - "operation": "Get revisions for an API", - "description": "Lists all revisions of an API." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/tenants/apis/revisions/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "API revisions", - "operation": "Delete revisions of an API", - "description": "Removes all revisions of an API" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/tenants/apis/releases/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "API releases", - "operation": "Get revisions for an API or Get API release details", - "description": "Lists all releases of an API. An API release is created when making an API Revision current. Releases are also used to rollback to previous revisions. Results will be paged and can be constrained by the $top and $skip parameters. or Returns the details of an API release." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/tenants/apis/releases/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "API releases", - "operation": "Removes all releases of the API or Delete API release", - "description": "Removes all releases of the API or Deletes the specified release in the API." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/tenants/apis/releases/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "API releases", - "operation": "Create API release or Update API release", - "description": "Creates a new Release for the API. or Updates the details of the release of the API specified by its identifier." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/tenants/apis/operations/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "API operations", - "operation": "Get API operations or Get API operation details", - "description": "Lists a collection of the operations for the specified API. or Gets the details of the API Operation specified by its identifier." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/tenants/apis/operations/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "API operations", - "operation": "Create API operation or Update API operation", - "description": "Creates a new operation in the API or updates an existing one. or Updates the details of the operation in the API specified by its identifier." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/tenants/apis/operations/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "API operations", - "operation": "Remove API operation", - "description": "Deletes the specified operation in the API." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/tenants/apis/operations/policies/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "API Operation policies configuration", - "operation": "Get API Operation policies or Get API operation policy configuration", - "description": "Get the list of policy configuration at the API Operation level. or Get the policy configuration at the API Operation level." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/tenants/apis/operations/policies/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "API Operation policies configuration", - "operation": "Set API operation policy configuration", - "description": "Creates or updates policy configuration for the API Operation level." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/tenants/apis/operations/policies/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "API Operation policies configuration", - "operation": "Remove API Operation policy configuration from policies", - "description": "Deletes the policy configuration at the Api Operation." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/tenants/apis/operations/tags/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Tags associated with the Operation", - "operation": "Get tags associated with the Operation or Tag details", - "description": "Lists all Tags associated with the Operation. or Get tag associated with the Operation." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/tenants/apis/operations/tags/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Tags associated with the Operation", - "operation": "Associate Tag with Operation", - "description": "Assign tag to the Operation." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/tenants/apis/operations/tags/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Tags associated with the Operation", - "operation": "Delete Tag with Operation association", - "description": "Detach the tag from the Operation." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/tenants/apis/products/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "API associated products", - "operation": "Get products associated with the API", - "description": "Lists all Products, which the API is part of." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/tenants/apis/policies/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "API policies configuration", - "operation": "Get API policies or Get API policy configuration", - "description": "Get the policy configuration at the API level. or Get the policy configuration at the API level." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/tenants/apis/policies/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "API policies configuration", - "operation": "Set API policy configuration", - "description": "Creates or updates policy configuration for the API." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/tenants/apis/policies/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "API policies configuration", - "operation": "Remove API policy configuration from policies", - "description": "Deletes the policy configuration at the Api." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/tenants/apis/schemas/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Schemas associated with the API", - "operation": "Gets the schemas stored for a given API or Gets schemas for the API", - "description": "Get the schema configuration at the API level. or Get the schema configuration at the API level." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/tenants/apis/schemas/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Schemas associated with the API", - "operation": "Sets schema used by the API", - "description": "Creates or updates schema configuration for the API." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/tenants/apis/schemas/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Schemas associated with the API", - "operation": "Removes schema for the API", - "description": "Deletes the schema configuration at the Api." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/tenants/apis/diagnostics/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "API diagnostics", - "operation": "Get diagnostics list or Get diagnostic details", - "description": "Lists all diagnostics of an API. or Gets the details of the Diagnostic for an API specified by its identifier." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/tenants/apis/diagnostics/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "API diagnostics", - "operation": "Add diagnostic or Update diagnostic", - "description": "Creates a new Diagnostic for an API or updates an existing one. or Updates the details of the Diagnostic for an API specified by its identifier." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/tenants/apis/diagnostics/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "API diagnostics", - "operation": "Remove diagnostic", - "description": "Deletes the specified Diagnostic from an API." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/tenants/apis/tagDescriptions/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Tags descriptions", - "operation": "Tags descriptions in scope of API or Get Tag metadata", - "description": "Lists all Tags descriptions in scope of API. Model similar to swagger - tagDescription is defined on API level but tag may be assigned to the Operations or Get Tag description in scope of API" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/tenants/apis/tagDescriptions/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Tags descriptions", - "operation": "Create/Change Tag metadata", - "description": "Create/Update tag description in scope of the Api." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/tenants/apis/tagDescriptions/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Tags descriptions", - "operation": "Remove Tag", - "description": "Delete tag description for the Api." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/tenants/apis/tags/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "API/Tag associations", - "operation": "Get tags associated with the API or Get Tag associated with API", - "description": "Lists all Tags associated with the API. or Get tag associated with the API." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/tenants/apis/tags/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "API/Tag associations", - "operation": "Add Tag", - "description": "Assign tag to the Api." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/tenants/apis/tags/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "API/Tag associations", - "operation": "Remove Tag", - "description": "Detach the tag from the Api." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/tenants/apis/operationsByTags/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Tags - Operation associations", - "operation": "Get Operation-Tag associations list", - "description": "Lists a collection of operations associated with tags." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/tenants/keys/read", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Keys", - "operation": "Get keys list or Get key details", - "description": "Get a list of keys or Get details of key" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/tenants/keys/write", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Keys", - "operation": "Create a Key or Update Key", - "description": "Create a Key to an existing Existing Entity or Update existing key details. This operation can be used to renew key." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/tenants/keys/delete", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Keys", - "operation": "Delete key", - "description": "Delete key. This operation can be used to delete key." - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/tenants/keys/regeneratePrimaryKey/action", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Keys", - "operation": "Regenerate PK", - "description": "Regenerate primary key" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/tenants/keys/regenerateSecondaryKey/action", - "isDataAction": false, - "display": { - "provider": "Microsoft API Management", - "resource": "Keys", - "operation": "Regenerate SK", - "description": "Regenerate secondary key" - }, - "properties": null - }, - { - "origin": null, - "name": "Microsoft.ApiManagement/service/gateways/getConfiguration/action", - "isDataAction": true, - "display": { - "provider": "Microsoft API Management", - "resource": "Gateways", - "operation": "Get self-hosted gateway configuration", - "description": "Fetches configuration for specified self-hosted gateway" - }, - "properties": null - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ApiManagement/checkNameAvailability?api-version=2021-08-01", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "23", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "name": "apimService1" - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 11:52:03 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11966", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T115203Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "nameAvailable": false, - "reason": "AlreadyExists", - "message": "apimService1 is already in use. Please select a different name." - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN?api-version=2021-08-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "172", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus", - "properties": { - "publisherEmail": "foo@contoso.com", - "publisherName": "foo" - }, - "sku": { - "capacity": 1, - "name": "Standard" - }, - "tags": { - "Name": "Contoso", - "Test": "User" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "1766", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 11:52:10 GMT", - "ETag": "\u0022AAAAAAA90jw=\u0022", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1192", - "x-ms-request-id": [ - "00000000-0000-0000-0000-000000000000", - "f707a5e3-8d53-4acb-9566-c408c3bec02d" - ], - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T115210Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN", - "name": "servicedeploysdGYeN", - "type": "Microsoft.ApiManagement/service", - "tags": { - "Name": "Contoso", - "Test": "User" - }, - "location": "West US", - "etag": "AAAAAAA90jw=", - "properties": { - "publisherEmail": "foo@contoso.com", - "publisherName": "foo", - "notificationSenderEmail": "apimgmt-noreply@mail.windowsazure.com", - "provisioningState": "Created", - "targetProvisioningState": "Activating", - "createdAtUtc": "2022-10-21T11:52:05.2388663Z", - "gatewayUrl": "https://servicedeploysdgyen.azure-api.net", - "gatewayRegionalUrl": null, - "portalUrl": null, - "developerPortalUrl": null, - "managementApiUrl": null, - "scmUrl": null, - "hostnameConfigurations": [ - { - "type": "Proxy", - "hostName": "servicedeploysdgyen.azure-api.net", - "encodedCertificate": null, - "keyVaultId": null, - "certificatePassword": null, - "negotiateClientCertificate": false, - "certificate": null, - "defaultSslBinding": true, - "identityClientId": null, - "certificateSource": "BuiltIn", - "certificateStatus": null - } - ], - "publicIPAddresses": null, - "privateIPAddresses": null, - "additionalLocations": null, - "virtualNetworkConfiguration": null, - "customProperties": null, - "virtualNetworkType": "None", - "certificates": null, - "disableGateway": false, - "apiVersionConstraint": { - "minApiVersion": null - }, - "publicIpAddressId": null, - "publicNetworkAccess": "Enabled", - "privateEndpointConnections": null, - "platformVersion": "undetermined" - }, - "sku": { - "name": "Standard", - "capacity": 1 - }, - "identity": null, - "zones": null, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-21T11:52:05.1439277Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-21T11:52:05.1439277Z" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 11:53:11 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11965", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T115311Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 11:54:12 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11964", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T115412Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 11:55:13 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11963", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T115514Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 11:56:15 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11962", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T115615Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 11:57:15 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11961", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T115716Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 11:58:16 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11960", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T115817Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 11:59:17 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11959", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T115918Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 12:00:18 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11958", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T120019Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 12:01:20 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11957", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T120120Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 12:02:21 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11956", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T120221Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 12:03:22 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11955", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T120323Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 12:04:22 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11954", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T120423Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 12:05:24 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11953", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T120525Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 12:06:25 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11952", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T120626Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 12:07:26 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11951", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T120726Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 12:08:27 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11950", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T120827Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 12:09:28 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11949", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T120928Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 12:10:29 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11948", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T121029Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 12:11:30 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11947", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T121130Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 12:12:31 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11946", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T121231Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 12:13:32 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11945", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T121333Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 12:14:33 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11944", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T121434Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 12:15:34 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11943", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T121535Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 12:16:35 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11942", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T121636Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 12:17:37 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11941", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T121737Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 12:18:38 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11940", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T121838Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 12:19:38 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11939", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T121939Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 12:20:40 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11938", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T122040Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 12:21:40 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11937", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T122141Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 12:22:40 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11936", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T122241Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 12:23:41 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T122342Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 12:24:42 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T122443Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 12:25:43 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11937", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T122544Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 12:26:45 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11936", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T122645Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 12:27:46 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T122746Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 12:28:47 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T122848Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 12:29:48 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T122949Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 12:30:49 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11936", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T123050Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 12:31:50 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T123151Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 12:32:51 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T123252Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 12:33:52 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T123353Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 12:34:53 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T123454Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 12:35:54 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11936", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T123555Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 12:36:56 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T123656Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fQWN0X2UyZjk3ZWY1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 12:37:57 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T123757Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN", - "name": "servicedeploysdGYeN", - "type": "Microsoft.ApiManagement/service", - "tags": { - "Name": "Contoso", - "Test": "User" - }, - "location": "West US", - "etag": "AAAAAAA90qo=", - "properties": { - "publisherEmail": "foo@contoso.com", - "publisherName": "foo", - "notificationSenderEmail": "apimgmt-noreply@mail.windowsazure.com", - "provisioningState": "Succeeded", - "targetProvisioningState": "", - "createdAtUtc": "2022-10-21T11:52:05.2388663Z", - "gatewayUrl": "https://servicedeploysdgyen.azure-api.net", - "gatewayRegionalUrl": "https://servicedeploysdgyen-westus-01.regional.azure-api.net", - "portalUrl": "https://servicedeploysdgyen.portal.azure-api.net", - "developerPortalUrl": "https://servicedeploysdgyen.developer.azure-api.net", - "managementApiUrl": "https://servicedeploysdgyen.management.azure-api.net", - "scmUrl": "https://servicedeploysdgyen.scm.azure-api.net", - "hostnameConfigurations": [ - { - "type": "Proxy", - "hostName": "servicedeploysdgyen.azure-api.net", - "encodedCertificate": null, - "keyVaultId": null, - "certificatePassword": null, - "negotiateClientCertificate": false, - "certificate": null, - "defaultSslBinding": true, - "identityClientId": null, - "certificateSource": "BuiltIn", - "certificateStatus": null - } - ], - "publicIPAddresses": [ - "20.59.110.209" - ], - "privateIPAddresses": null, - "additionalLocations": null, - "virtualNetworkConfiguration": null, - "customProperties": { - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Ssl30": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TripleDes168": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls10": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls11": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Ssl30": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Protocols.Server.Http2": "False" - }, - "virtualNetworkType": "None", - "certificates": null, - "disableGateway": false, - "apiVersionConstraint": { - "minApiVersion": null - }, - "publicIpAddressId": null, - "publicNetworkAccess": "Enabled", - "privateEndpointConnections": null, - "platformVersion": "stv2" - }, - "sku": { - "name": "Standard", - "capacity": 1 - }, - "identity": null, - "zones": null, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-21T11:52:05.1439277Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-21T11:52:05.1439277Z" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ApiManagement/service?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 12:37:57 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T123758Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN", - "name": "servicedeploysdGYeN", - "type": "Microsoft.ApiManagement/service", - "tags": { - "Name": "Contoso", - "Test": "User" - }, - "location": "West US", - "etag": "AAAAAAA90qo=", - "properties": { - "publisherEmail": "foo@contoso.com", - "publisherName": "foo", - "notificationSenderEmail": "apimgmt-noreply@mail.windowsazure.com", - "provisioningState": "Succeeded", - "targetProvisioningState": "", - "createdAtUtc": "2022-10-21T11:52:05.2388663Z", - "gatewayUrl": "https://servicedeploysdgyen.azure-api.net", - "gatewayRegionalUrl": "https://servicedeploysdgyen-westus-01.regional.azure-api.net", - "portalUrl": "https://servicedeploysdgyen.portal.azure-api.net", - "developerPortalUrl": "https://servicedeploysdgyen.developer.azure-api.net", - "managementApiUrl": "https://servicedeploysdgyen.management.azure-api.net", - "scmUrl": "https://servicedeploysdgyen.scm.azure-api.net", - "hostnameConfigurations": [ - { - "type": "Proxy", - "hostName": "servicedeploysdgyen.azure-api.net", - "encodedCertificate": null, - "keyVaultId": null, - "certificatePassword": null, - "negotiateClientCertificate": false, - "certificate": null, - "defaultSslBinding": true, - "identityClientId": null, - "certificateSource": "BuiltIn", - "certificateStatus": null - } - ], - "publicIPAddresses": [ - "20.59.110.209" - ], - "privateIPAddresses": null, - "additionalLocations": null, - "virtualNetworkConfiguration": null, - "customProperties": { - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Ssl30": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TripleDes168": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls10": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls11": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Ssl30": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Protocols.Server.Http2": "False" - }, - "virtualNetworkType": "None", - "certificates": null, - "disableGateway": false, - "apiVersionConstraint": { - "minApiVersion": null - }, - "publicIpAddressId": null, - "publicNetworkAccess": "Enabled", - "privateEndpointConnections": null, - "platformVersion": "stv2" - }, - "sku": { - "name": "Standard", - "capacity": 1 - }, - "identity": null, - "zones": null, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-21T11:52:05.1439277Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-21T11:52:05.1439277Z" - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-test2/providers/Microsoft.ApiManagement/service/gotestapim2", - "name": "gotestapim2", - "type": "Microsoft.ApiManagement/service", - "tags": {}, - "location": "West US", - "etag": "AAAAAAA9vf0=", - "properties": { - "publisherEmail": "gotest2@email.com", - "publisherName": "gotest2", - "notificationSenderEmail": "apimgmt-noreply@mail.windowsazure.com", - "provisioningState": "Succeeded", - "targetProvisioningState": "", - "createdAtUtc": "2022-10-20T02:08:05.8114182Z", - "gatewayUrl": "https://gotestapim2.azure-api.net", - "gatewayRegionalUrl": "https://gotestapim2-westus-01.regional.azure-api.net", - "portalUrl": "https://gotestapim2.portal.azure-api.net", - "developerPortalUrl": "https://gotestapim2.developer.azure-api.net", - "managementApiUrl": "https://gotestapim2.management.azure-api.net", - "scmUrl": "https://gotestapim2.scm.azure-api.net", - "hostnameConfigurations": [ - { - "type": "Proxy", - "hostName": "gotestapim2.azure-api.net", - "encodedCertificate": null, - "keyVaultId": null, - "certificatePassword": null, - "negotiateClientCertificate": false, - "certificate": null, - "defaultSslBinding": true, - "identityClientId": null, - "certificateSource": "BuiltIn", - "certificateStatus": null - } - ], - "publicIPAddresses": [ - "20.66.13.121" - ], - "privateIPAddresses": null, - "additionalLocations": null, - "virtualNetworkConfiguration": null, - "customProperties": { - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11": "false", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10": "false", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls11": "false", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls10": "false", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Ssl30": "false", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Protocols.Server.Http2": "false", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TripleDes168": "false", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Ssl30": "false" - }, - "virtualNetworkType": "None", - "certificates": null, - "disableGateway": false, - "apiVersionConstraint": { - "minApiVersion": null - }, - "publicIpAddressId": null, - "publicNetworkAccess": "Enabled", - "privateEndpointConnections": null, - "platformVersion": "stv2" - }, - "sku": { - "name": "Premium", - "capacity": 1 - }, - "identity": null, - "zones": null, - "systemData": { - "createdBy": "v-jiahuipeng@microsoft.com", - "createdByType": "User", - "createdAt": "2022-10-20T02:08:05.7615288Z", - "lastModifiedBy": "v-jiahuipeng@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2022-10-20T02:08:05.7615288Z" - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-test2/providers/Microsoft.ApiManagement/service/gotestapim", - "name": "gotestapim", - "type": "Microsoft.ApiManagement/service", - "tags": {}, - "location": "West US", - "etag": "AAAAAAA9z9E=", - "properties": { - "publisherEmail": "gotest@apim.com", - "publisherName": "gotest", - "notificationSenderEmail": "apimgmt-noreply@mail.windowsazure.com", - "provisioningState": "Succeeded", - "targetProvisioningState": "", - "createdAtUtc": "2022-10-19T07:12:41.9477133Z", - "gatewayUrl": "https://gotestapim.azure-api.net", - "gatewayRegionalUrl": "https://gotestapim-westus-01.regional.azure-api.net", - "portalUrl": "https://gotestapim.portal.azure-api.net", - "developerPortalUrl": "https://gotestapim.developer.azure-api.net", - "managementApiUrl": "https://gotestapim.management.azure-api.net", - "scmUrl": "https://gotestapim.scm.azure-api.net", - "hostnameConfigurations": [ - { - "type": "Proxy", - "hostName": "gotestapim.azure-api.net", - "encodedCertificate": null, - "keyVaultId": null, - "certificatePassword": null, - "negotiateClientCertificate": false, - "certificate": null, - "defaultSslBinding": true, - "identityClientId": null, - "certificateSource": "BuiltIn", - "certificateStatus": null - } - ], - "publicIPAddresses": [ - "20.237.162.75" - ], - "privateIPAddresses": null, - "additionalLocations": null, - "virtualNetworkConfiguration": null, - "customProperties": { - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11": "false", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10": "false", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls11": "false", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls10": "false", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Ssl30": "false", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Protocols.Server.Http2": "false", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TripleDes168": "false", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Ssl30": "false" - }, - "virtualNetworkType": "None", - "certificates": null, - "disableGateway": false, - "apiVersionConstraint": { - "minApiVersion": null - }, - "publicIpAddressId": null, - "publicNetworkAccess": "Enabled", - "privateEndpointConnections": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-test2/providers/Microsoft.ApiManagement/service/gotestapim/privateEndpointConnections/apimprivateendpoint30PBsE", - "name": "apimprivateendpoint30PBsE", - "type": "Microsoft.ApiManagement/service/privateEndpointConnections", - "properties": { - "provisioningState": "Succeeded", - "privateEndpoint": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-test2/providers/Microsoft.Network/privateEndpoints/apimprivateendpoint30PBsE" - }, - "groupIds": [ - "Gateway" - ], - "privateLinkServiceConnectionState": { - "status": "Approved", - "description": "", - "actionsRequired": null - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-test2/providers/Microsoft.ApiManagement/service/gotestapim/privateEndpointConnections/apimprivateendpointuBs5SJ", - "name": "apimprivateendpointuBs5SJ", - "type": "Microsoft.ApiManagement/service/privateEndpointConnections", - "properties": { - "provisioningState": "Succeeded", - "privateEndpoint": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-test2/providers/Microsoft.Network/privateEndpoints/apimprivateendpointuBs5SJ" - }, - "groupIds": [ - "Gateway" - ], - "privateLinkServiceConnectionState": { - "status": "Approved", - "description": "", - "actionsRequired": null - } - } - } - ], - "platformVersion": "stv2" - }, - "sku": { - "name": "Standard", - "capacity": 1 - }, - "identity": null, - "zones": null, - "systemData": { - "createdBy": "v-jiahuipeng@microsoft.com", - "createdByType": "User", - "createdAt": "2022-10-19T07:12:41.9024791Z", - "lastModifiedBy": "v-jiahuipeng@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2022-10-19T07:12:41.9024791Z" - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 12:37:57 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T123758Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN", - "name": "servicedeploysdGYeN", - "type": "Microsoft.ApiManagement/service", - "tags": { - "Name": "Contoso", - "Test": "User" - }, - "location": "West US", - "etag": "AAAAAAA90qo=", - "properties": { - "publisherEmail": "foo@contoso.com", - "publisherName": "foo", - "notificationSenderEmail": "apimgmt-noreply@mail.windowsazure.com", - "provisioningState": "Succeeded", - "targetProvisioningState": "", - "createdAtUtc": "2022-10-21T11:52:05.2388663Z", - "gatewayUrl": "https://servicedeploysdgyen.azure-api.net", - "gatewayRegionalUrl": "https://servicedeploysdgyen-westus-01.regional.azure-api.net", - "portalUrl": "https://servicedeploysdgyen.portal.azure-api.net", - "developerPortalUrl": "https://servicedeploysdgyen.developer.azure-api.net", - "managementApiUrl": "https://servicedeploysdgyen.management.azure-api.net", - "scmUrl": "https://servicedeploysdgyen.scm.azure-api.net", - "hostnameConfigurations": [ - { - "type": "Proxy", - "hostName": "servicedeploysdgyen.azure-api.net", - "encodedCertificate": null, - "keyVaultId": null, - "certificatePassword": null, - "negotiateClientCertificate": false, - "certificate": null, - "defaultSslBinding": true, - "identityClientId": null, - "certificateSource": "BuiltIn", - "certificateStatus": null - } - ], - "publicIPAddresses": [ - "20.59.110.209" - ], - "privateIPAddresses": null, - "additionalLocations": null, - "virtualNetworkConfiguration": null, - "customProperties": { - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Ssl30": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TripleDes168": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls10": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls11": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Ssl30": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Protocols.Server.Http2": "False" - }, - "virtualNetworkType": "None", - "certificates": null, - "disableGateway": false, - "apiVersionConstraint": { - "minApiVersion": null - }, - "publicIpAddressId": null, - "publicNetworkAccess": "Enabled", - "privateEndpointConnections": null, - "platformVersion": "stv2" - }, - "sku": { - "name": "Standard", - "capacity": 1 - }, - "identity": null, - "zones": null, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-21T11:52:05.1439277Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-21T11:52:05.1439277Z" - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 12:37:58 GMT", - "ETag": "\u0022AAAAAAA90qo=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T123759Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN", - "name": "servicedeploysdGYeN", - "type": "Microsoft.ApiManagement/service", - "tags": { - "Name": "Contoso", - "Test": "User" - }, - "location": "West US", - "etag": "AAAAAAA90qo=", - "properties": { - "publisherEmail": "foo@contoso.com", - "publisherName": "foo", - "notificationSenderEmail": "apimgmt-noreply@mail.windowsazure.com", - "provisioningState": "Succeeded", - "targetProvisioningState": "", - "createdAtUtc": "2022-10-21T11:52:05.2388663Z", - "gatewayUrl": "https://servicedeploysdgyen.azure-api.net", - "gatewayRegionalUrl": "https://servicedeploysdgyen-westus-01.regional.azure-api.net", - "portalUrl": "https://servicedeploysdgyen.portal.azure-api.net", - "developerPortalUrl": "https://servicedeploysdgyen.developer.azure-api.net", - "managementApiUrl": "https://servicedeploysdgyen.management.azure-api.net", - "scmUrl": "https://servicedeploysdgyen.scm.azure-api.net", - "hostnameConfigurations": [ - { - "type": "Proxy", - "hostName": "servicedeploysdgyen.azure-api.net", - "encodedCertificate": null, - "keyVaultId": null, - "certificatePassword": null, - "negotiateClientCertificate": false, - "certificate": null, - "defaultSslBinding": true, - "identityClientId": null, - "certificateSource": "BuiltIn", - "certificateStatus": null - } - ], - "publicIPAddresses": [ - "20.59.110.209" - ], - "privateIPAddresses": null, - "additionalLocations": null, - "virtualNetworkConfiguration": null, - "customProperties": { - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Ssl30": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TripleDes168": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls10": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls11": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Ssl30": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Protocols.Server.Http2": "False" - }, - "virtualNetworkType": "None", - "certificates": null, - "disableGateway": false, - "apiVersionConstraint": { - "minApiVersion": null - }, - "publicIpAddressId": null, - "publicNetworkAccess": "Enabled", - "privateEndpointConnections": null, - "platformVersion": "stv2" - }, - "sku": { - "name": "Standard", - "capacity": 1 - }, - "identity": null, - "zones": null, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-21T11:52:05.1439277Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-21T11:52:05.1439277Z" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN?api-version=2021-08-01", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "117", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "customProperties": { - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10": "false" - } - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 12:38:00 GMT", - "ETag": "\u0022AAAAAAA90qo=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1191", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T123801Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN", - "name": "servicedeploysdGYeN", - "type": "Microsoft.ApiManagement/service", - "tags": { - "Name": "Contoso", - "Test": "User" - }, - "location": "West US", - "etag": "AAAAAAA90qo=", - "properties": { - "publisherEmail": "foo@contoso.com", - "publisherName": "foo", - "notificationSenderEmail": "apimgmt-noreply@mail.windowsazure.com", - "provisioningState": "Succeeded", - "targetProvisioningState": "", - "createdAtUtc": "2022-10-21T11:52:05.2388663Z", - "gatewayUrl": "https://servicedeploysdgyen.azure-api.net", - "gatewayRegionalUrl": "https://servicedeploysdgyen-westus-01.regional.azure-api.net", - "portalUrl": "https://servicedeploysdgyen.portal.azure-api.net", - "developerPortalUrl": "https://servicedeploysdgyen.developer.azure-api.net", - "managementApiUrl": "https://servicedeploysdgyen.management.azure-api.net", - "scmUrl": "https://servicedeploysdgyen.scm.azure-api.net", - "hostnameConfigurations": [ - { - "type": "Proxy", - "hostName": "servicedeploysdgyen.azure-api.net", - "encodedCertificate": null, - "keyVaultId": null, - "certificatePassword": null, - "negotiateClientCertificate": false, - "certificate": null, - "defaultSslBinding": true, - "identityClientId": null, - "certificateSource": "BuiltIn", - "certificateStatus": null - } - ], - "publicIPAddresses": [ - "20.59.110.209" - ], - "privateIPAddresses": null, - "additionalLocations": null, - "virtualNetworkConfiguration": null, - "customProperties": { - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Ssl30": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TripleDes168": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls10": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls11": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Ssl30": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Protocols.Server.Http2": "False" - }, - "virtualNetworkType": "None", - "certificates": null, - "disableGateway": false, - "apiVersionConstraint": { - "minApiVersion": null - }, - "publicIpAddressId": null, - "publicNetworkAccess": "Enabled", - "privateEndpointConnections": null, - "platformVersion": "stv2" - }, - "sku": { - "name": "Standard", - "capacity": 1 - }, - "identity": null, - "zones": null, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-21T11:52:05.1439277Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-21T11:52:05.1439277Z" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ApiManagement/getDomainOwnershipIdentifier?api-version=2021-08-01", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 12:38:00 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11930", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T123801Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "domainOwnershipIdentifier": "/tN5JzqZL6a4z2rRq5IejqASoFz1P4BFDK91gGjXOo8=" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/getssotoken?api-version=2021-08-01", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 12:38:01 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T123801Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "redirectUri": "https://servicedeploysdgyen.portal.azure-api.net:443/signin-sso?token=1%26202210211243%26xXpY7ClrjqrKUsPmU6fqvREc5BubrPekFI7JzQ1F4wEMnqWf7DCC%2bernrE7uTtTx2IckgZdJFlPH%2fGSAYoK30Q%3d%3d" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/skus?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 12:38:01 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11929", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T123802Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "resourceType": "Microsoft.ApiManagement/service", - "sku": { - "name": "Developer" - }, - "capacity": { - "minimum": 1, - "maximum": 1, - "default": 1, - "scaleType": "none" - } - }, - { - "resourceType": "Microsoft.ApiManagement/service", - "sku": { - "name": "Basic" - }, - "capacity": { - "minimum": 1, - "maximum": 2, - "default": 1, - "scaleType": "manual" - } - }, - { - "resourceType": "Microsoft.ApiManagement/service", - "sku": { - "name": "Standard" - }, - "capacity": { - "minimum": 1, - "maximum": 4, - "default": 1, - "scaleType": "automatic" - } - }, - { - "resourceType": "Microsoft.ApiManagement/service", - "sku": { - "name": "Premium" - }, - "capacity": { - "minimum": 1, - "maximum": 12, - "default": 1, - "scaleType": "automatic" - } - } - ], - "nextLink": null - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN?api-version=2021-08-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "2681", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 12:38:02 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fVGVybV82MTEwM2UyNw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14997", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T123803Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN", - "name": "servicedeploysdGYeN", - "type": "Microsoft.ApiManagement/service", - "tags": { - "Name": "Contoso", - "Test": "User" - }, - "location": "West US", - "etag": "AAAAAAA90rM=", - "properties": { - "publisherEmail": "foo@contoso.com", - "publisherName": "foo", - "notificationSenderEmail": "apimgmt-noreply@mail.windowsazure.com", - "provisioningState": "Succeeded", - "targetProvisioningState": "Deleting", - "createdAtUtc": "2022-10-21T11:52:05.2388663Z", - "gatewayUrl": "https://servicedeploysdgyen.azure-api.net", - "gatewayRegionalUrl": "https://servicedeploysdgyen-westus-01.regional.azure-api.net", - "portalUrl": "https://servicedeploysdgyen.portal.azure-api.net", - "developerPortalUrl": "https://servicedeploysdgyen.developer.azure-api.net", - "managementApiUrl": "https://servicedeploysdgyen.management.azure-api.net", - "scmUrl": "https://servicedeploysdgyen.scm.azure-api.net", - "hostnameConfigurations": [ - { - "type": "Proxy", - "hostName": "servicedeploysdgyen.azure-api.net", - "encodedCertificate": null, - "keyVaultId": null, - "certificatePassword": null, - "negotiateClientCertificate": false, - "certificate": null, - "defaultSslBinding": true, - "identityClientId": null, - "certificateSource": "BuiltIn", - "certificateStatus": null - } - ], - "publicIPAddresses": [ - "20.59.110.209" - ], - "privateIPAddresses": null, - "additionalLocations": null, - "virtualNetworkConfiguration": null, - "customProperties": { - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Ssl30": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TripleDes168": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls10": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls11": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Ssl30": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Protocols.Server.Http2": "False" - }, - "virtualNetworkType": "None", - "certificates": null, - "disableGateway": false, - "apiVersionConstraint": { - "minApiVersion": null - }, - "publicIpAddressId": null, - "publicNetworkAccess": "Enabled", - "privateEndpointConnections": null, - "platformVersion": "stv2" - }, - "sku": { - "name": "Standard", - "capacity": 1 - }, - "identity": null, - "zones": null, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-21T11:52:05.1439277Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-21T11:52:05.1439277Z" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fVGVybV82MTEwM2UyNw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 12:39:03 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fVGVybV82MTEwM2UyNw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11928", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T123904Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fVGVybV82MTEwM2UyNw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 12:40:04 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T124005Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ApiManagement/deletedservices?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "3116", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 12:40:07 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-original-request-ids": [ - "00000000-0000-0000-0000-000000000000", - "b7ddc8fc-eed6-4f5b-8ba3-47157e347605", - "b7ddc8fc-eed6-4f5b-8ba3-47157e347605", - "b7ddc8fc-eed6-4f5b-8ba3-47157e347605", - "b7ddc8fc-eed6-4f5b-8ba3-47157e347605", - "b7ddc8fc-eed6-4f5b-8ba3-47157e347605", - "b7ddc8fc-eed6-4f5b-8ba3-47157e347605", - "b7ddc8fc-eed6-4f5b-8ba3-47157e347605", - "b7ddc8fc-eed6-4f5b-8ba3-47157e347605", - "b7ddc8fc-eed6-4f5b-8ba3-47157e347605", - "b7ddc8fc-eed6-4f5b-8ba3-47157e347605", - "b7ddc8fc-eed6-4f5b-8ba3-47157e347605", - "b7ddc8fc-eed6-4f5b-8ba3-47157e347605", - "b7ddc8fc-eed6-4f5b-8ba3-47157e347605", - "b7ddc8fc-eed6-4f5b-8ba3-47157e347605", - "b7ddc8fc-eed6-4f5b-8ba3-47157e347605", - "b7ddc8fc-eed6-4f5b-8ba3-47157e347605", - "b7ddc8fc-eed6-4f5b-8ba3-47157e347605", - "b7ddc8fc-eed6-4f5b-8ba3-47157e347605", - "b7ddc8fc-eed6-4f5b-8ba3-47157e347605", - "b7ddc8fc-eed6-4f5b-8ba3-47157e347605", - "b7ddc8fc-eed6-4f5b-8ba3-47157e347605", - "b7ddc8fc-eed6-4f5b-8ba3-47157e347605", - "b7ddc8fc-eed6-4f5b-8ba3-47157e347605", - "b7ddc8fc-eed6-4f5b-8ba3-47157e347605", - "b7ddc8fc-eed6-4f5b-8ba3-47157e347605", - "b7ddc8fc-eed6-4f5b-8ba3-47157e347605", - "b7ddc8fc-eed6-4f5b-8ba3-47157e347605", - "b7ddc8fc-eed6-4f5b-8ba3-47157e347605", - "b7ddc8fc-eed6-4f5b-8ba3-47157e347605", - "b7ddc8fc-eed6-4f5b-8ba3-47157e347605", - "b7ddc8fc-eed6-4f5b-8ba3-47157e347605", - "b7ddc8fc-eed6-4f5b-8ba3-47157e347605", - "b7ddc8fc-eed6-4f5b-8ba3-47157e347605", - "b7ddc8fc-eed6-4f5b-8ba3-47157e347605", - "b7ddc8fc-eed6-4f5b-8ba3-47157e347605", - "b7ddc8fc-eed6-4f5b-8ba3-47157e347605", - "b7ddc8fc-eed6-4f5b-8ba3-47157e347605" - ], - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T124007Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ApiManagement/locations/westus/deletedservices/servicenamhPbUwl", - "name": "servicenamhPbUwl", - "type": "Microsoft.ApiManagement/deletedservices", - "location": "West US", - "properties": { - "serviceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamhPbUwl", - "scheduledPurgeDate": "2022-10-22T10:26:31.0988638Z", - "deletionDate": "2022-10-20T10:27:39.8580022Z" - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ApiManagement/locations/westus/deletedservices/servicedeploysdGYeN", - "name": "servicedeploysdGYeN", - "type": "Microsoft.ApiManagement/deletedservices", - "location": "West US", - "properties": { - "serviceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN", - "scheduledPurgeDate": "2022-10-23T12:38:03.3300877Z", - "deletionDate": "2022-10-21T12:39:12.3897946Z" - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ApiManagement/locations/westus/deletedservices/servicecachesdGYeN", - "name": "servicecachesdGYeN", - "type": "Microsoft.ApiManagement/deletedservices", - "location": "West US", - "properties": { - "serviceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicecachesdGYeN", - "scheduledPurgeDate": "2022-10-23T11:52:58.1236026Z", - "deletionDate": "2022-10-21T11:54:06.6563228Z" - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ApiManagement/locations/westus/deletedservices/serviceapiversionsetssdGYeN", - "name": "serviceapiversionsetssdGYeN", - "type": "Microsoft.ApiManagement/deletedservices", - "location": "West US", - "properties": { - "serviceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceapiversionsetssdGYeN", - "scheduledPurgeDate": "2022-10-23T10:21:16.6263702Z", - "deletionDate": "2022-10-21T10:22:26.8953729Z" - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ApiManagement/locations/westus/deletedservices/serviceauthsdGYeN", - "name": "serviceauthsdGYeN", - "type": "Microsoft.ApiManagement/deletedservices", - "location": "West US", - "properties": { - "serviceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceauthsdGYeN", - "scheduledPurgeDate": "2022-10-23T11:08:21.7435432Z", - "deletionDate": "2022-10-21T11:09:32.0307984Z" - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ApiManagement/locations/westus/deletedservices/servicenamsdGYeN", - "name": "servicenamsdGYeN", - "type": "Microsoft.ApiManagement/deletedservices", - "location": "West US", - "properties": { - "serviceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamsdGYeN", - "scheduledPurgeDate": "2022-10-23T09:39:08.2256882Z", - "deletionDate": "2022-10-21T09:40:17.3275881Z" - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ApiManagement/locations/westus/deletedservices/servicedeploysdGYeN?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 12:40:07 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11930", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T124007Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ApiManagement/locations/westus/deletedservices/servicedeploysdGYeN", - "name": "servicedeploysdGYeN", - "type": "Microsoft.ApiManagement/deletedservices", - "location": "West US", - "properties": { - "serviceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN", - "scheduledPurgeDate": "2022-10-23T12:38:03.3300877Z", - "deletionDate": "2022-10-21T12:39:12.3897946Z" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ApiManagement/locations/westus/deletedservices/servicedeploysdGYeN?api-version=2021-08-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "517", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 12:40:07 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ApiManagement/locations/westus/deletedservices/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fVGVybV9jYWExYmU4Nw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14996", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T124007Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ApiManagement/locations/westus/deletedservices/servicedeploysdGYeN", - "name": "servicedeploysdGYeN", - "type": "Microsoft.ApiManagement/deletedservices", - "location": "West US", - "properties": { - "serviceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicedeploysdGYeN", - "scheduledPurgeDate": "2022-10-21T12:40:07.6162046Z", - "deletionDate": "2022-10-21T12:39:12.3897946Z" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ApiManagement/locations/westus/deletedservices/servicedeploysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VkZXBsb3lzZEdZZU5fVGVybV9jYWExYmU4Nw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 12:41:08 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11929", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T124108Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 12:41:12 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ1MzktV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14995", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T124113Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": { - "recordingRandomSeed": "1666342412" - } -} diff --git a/sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimgatewaysTestSuite.json b/sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimgatewaysTestSuite.json deleted file mode 100644 index 1b482b0e62d7..000000000000 --- a/sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimgatewaysTestSuite.json +++ /dev/null @@ -1,2566 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 12:41:29 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1186", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T124130Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "westus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN?api-version=2021-08-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "171", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus", - "properties": { - "publisherEmail": "foo@contoso.com", - "publisherName": "foo" - }, - "sku": { - "capacity": 1, - "name": "Premium" - }, - "tags": { - "Name": "Contoso", - "Test": "User" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "1769", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 12:41:34 GMT", - "ETag": "\u0022AAAAAAA90sY=\u0022", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1185", - "x-ms-request-id": [ - "00000000-0000-0000-0000-000000000000", - "0fd375d6-b38e-442d-8e19-fd97db57d87b" - ], - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T124135Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN", - "name": "servicegatewaysdGYeN", - "type": "Microsoft.ApiManagement/service", - "tags": { - "Name": "Contoso", - "Test": "User" - }, - "location": "West US", - "etag": "AAAAAAA90sY=", - "properties": { - "publisherEmail": "foo@contoso.com", - "publisherName": "foo", - "notificationSenderEmail": "apimgmt-noreply@mail.windowsazure.com", - "provisioningState": "Created", - "targetProvisioningState": "Activating", - "createdAtUtc": "2022-10-21T12:41:31.6023253Z", - "gatewayUrl": "https://servicegatewaysdgyen.azure-api.net", - "gatewayRegionalUrl": null, - "portalUrl": null, - "developerPortalUrl": null, - "managementApiUrl": null, - "scmUrl": null, - "hostnameConfigurations": [ - { - "type": "Proxy", - "hostName": "servicegatewaysdgyen.azure-api.net", - "encodedCertificate": null, - "keyVaultId": null, - "certificatePassword": null, - "negotiateClientCertificate": false, - "certificate": null, - "defaultSslBinding": true, - "identityClientId": null, - "certificateSource": "BuiltIn", - "certificateStatus": null - } - ], - "publicIPAddresses": null, - "privateIPAddresses": null, - "additionalLocations": null, - "virtualNetworkConfiguration": null, - "customProperties": null, - "virtualNetworkType": "None", - "certificates": null, - "disableGateway": false, - "apiVersionConstraint": { - "minApiVersion": null - }, - "publicIpAddressId": null, - "publicNetworkAccess": "Enabled", - "privateEndpointConnections": null, - "platformVersion": "undetermined" - }, - "sku": { - "name": "Premium", - "capacity": 1 - }, - "identity": null, - "zones": null, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-21T12:41:31.4969265Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-21T12:41:31.4969265Z" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 12:42:36 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11928", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T124236Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 12:43:37 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11927", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T124337Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 12:44:38 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11926", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T124438Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 12:45:40 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11930", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T124540Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 12:46:40 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11929", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T124641Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 12:47:41 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11928", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T124742Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 12:48:42 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11927", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T124843Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 12:49:43 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11926", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T124944Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 12:50:44 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11930", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T125045Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 12:51:46 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11929", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T125146Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 12:52:46 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11928", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T125246Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 12:53:47 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11927", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T125348Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 12:54:49 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11926", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T125449Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 12:55:50 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T125550Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 12:56:51 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T125651Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 12:57:52 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T125752Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 12:58:53 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11930", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T125853Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 12:59:54 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11929", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T125954Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 13:00:55 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T130055Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 13:01:56 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T130157Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 13:02:57 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T130257Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 13:03:58 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11930", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T130358Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 13:04:59 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11929", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T130459Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 13:06:00 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T130600Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 13:07:01 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T130701Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 13:08:01 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T130802Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 13:09:03 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11930", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T130903Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 13:10:04 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T131004Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 13:11:05 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T131105Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 13:12:06 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T131206Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 13:13:07 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T131308Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 13:14:08 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11930", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T131409Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 13:15:10 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T131510Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 13:16:11 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T131611Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 13:17:12 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T131712Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 13:18:13 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T131813Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 13:19:14 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11930", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T131914Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 13:20:15 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T132015Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 13:21:16 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T132117Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 13:22:17 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T132218Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 13:23:18 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T132319Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 13:24:19 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11930", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T132420Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VnYXRld2F5c2RHWWVOX0FjdF85YzgwNWNjNw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 13:25:20 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T132521Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN", - "name": "servicegatewaysdGYeN", - "type": "Microsoft.ApiManagement/service", - "tags": { - "Name": "Contoso", - "Test": "User" - }, - "location": "West US", - "etag": "AAAAAAA90yU=", - "properties": { - "publisherEmail": "foo@contoso.com", - "publisherName": "foo", - "notificationSenderEmail": "apimgmt-noreply@mail.windowsazure.com", - "provisioningState": "Succeeded", - "targetProvisioningState": "", - "createdAtUtc": "2022-10-21T12:41:31.6023253Z", - "gatewayUrl": "https://servicegatewaysdgyen.azure-api.net", - "gatewayRegionalUrl": "https://servicegatewaysdgyen-westus-01.regional.azure-api.net", - "portalUrl": "https://servicegatewaysdgyen.portal.azure-api.net", - "developerPortalUrl": "https://servicegatewaysdgyen.developer.azure-api.net", - "managementApiUrl": "https://servicegatewaysdgyen.management.azure-api.net", - "scmUrl": "https://servicegatewaysdgyen.scm.azure-api.net", - "hostnameConfigurations": [ - { - "type": "Proxy", - "hostName": "servicegatewaysdgyen.azure-api.net", - "encodedCertificate": null, - "keyVaultId": null, - "certificatePassword": null, - "negotiateClientCertificate": false, - "certificate": null, - "defaultSslBinding": true, - "identityClientId": null, - "certificateSource": "BuiltIn", - "certificateStatus": null - } - ], - "publicIPAddresses": [ - "23.100.32.51" - ], - "privateIPAddresses": null, - "additionalLocations": null, - "virtualNetworkConfiguration": null, - "customProperties": { - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Ssl30": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TripleDes168": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls10": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls11": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Ssl30": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Protocols.Server.Http2": "False" - }, - "virtualNetworkType": "None", - "certificates": null, - "disableGateway": false, - "apiVersionConstraint": { - "minApiVersion": null - }, - "publicIpAddressId": null, - "publicNetworkAccess": "Enabled", - "privateEndpointConnections": null, - "platformVersion": "stv2" - }, - "sku": { - "name": "Premium", - "capacity": 1 - }, - "identity": null, - "zones": null, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-21T12:41:31.4969265Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-21T12:41:31.4969265Z" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/gateways/gatewayidsdGYeN?api-version=2021-08-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "83", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "description": "my gateway 1", - "locationData": { - "name": "my location" - } - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "492", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 13:25:23 GMT", - "ETag": "\u0022JgkAAAAAAAA=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1192", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T132524Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/gateways/gatewayidsdGYeN", - "type": "Microsoft.ApiManagement/service/gateways", - "name": "gatewayidsdGYeN", - "properties": { - "locationData": { - "name": "my location", - "city": null, - "district": null, - "countryOrRegion": null - }, - "description": "my gateway 1", - "heartbeat": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/gateways/gatewayidsdGYeN?api-version=2021-08-01", - "RequestMethod": "HEAD", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 13:25:24 GMT", - "ETag": "\u0022JgkAAAAAAAA=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T132525Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/gateways?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 13:25:25 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T132526Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/gateways/gatewayidsdGYeN", - "type": "Microsoft.ApiManagement/service/gateways", - "name": "gatewayidsdGYeN", - "properties": { - "locationData": { - "name": "my location", - "city": null, - "district": null, - "countryOrRegion": null - }, - "description": "my gateway 1", - "heartbeat": [] - } - } - ], - "count": 1 - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/gateways/gatewayidsdGYeN?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 13:25:26 GMT", - "ETag": "\u0022JgkAAAAAAAA=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T132526Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/gateways/gatewayidsdGYeN", - "type": "Microsoft.ApiManagement/service/gateways", - "name": "gatewayidsdGYeN", - "properties": { - "locationData": { - "name": "my location", - "city": null, - "district": null, - "countryOrRegion": null - }, - "description": "my gateway 1", - "heartbeat": [] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/gateways/gatewayidsdGYeN?api-version=2021-08-01", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "83", - "Content-Type": "application/json", - "If-Match": "*", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "description": "my gateway 1", - "locationData": { - "name": "my location" - } - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 13:25:26 GMT", - "ETag": "\u0022JgkAAAAAAAA=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1191", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T132527Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/gateways/gatewayidsdGYeN", - "type": "Microsoft.ApiManagement/service/gateways", - "name": "gatewayidsdGYeN", - "properties": { - "locationData": { - "name": "my location", - "city": null, - "district": null, - "countryOrRegion": null - }, - "description": "my gateway 1", - "heartbeat": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/gateways/gatewayidsdGYeN/listKeys?api-version=2021-08-01", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 13:25:27 GMT", - "ETag": "\u0022JgkAAAAAAAA=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1197", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T132528Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "primary": "7me8ezb97JnsNXkIBGh3fdDfuhNl23q3MojV8A6lheRqEH8HcanBFC372zifOTVgw5Z1ST7Hg\u002Bi\u002BMEf5ecn/CQ==", - "secondary": "\u002B1kFkBNLUYMHSaULlzlZqbHoFFqTbdPrLHEzVQ/OuiFamgmPYU\u002BdFlPzhFBfoFUXfJBbhLBO1sxzW1ImIEczvw==" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/gateways/gatewayidsdGYeN/regenerateKey?api-version=2021-08-01", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "keyType": "primary" - }, - "StatusCode": 204, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Date": "Fri, 21 Oct 2022 13:25:27 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1196", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T132528Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/gateways/gatewayidsdGYeN/generateToken?api-version=2021-08-01", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "61", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "expiry": "2020-04-21T00:44:24.2845269Z", - "keyType": "primary" - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 13:25:28 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1195", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T132529Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": "gatewayidsdGYeN\u0026202004210044\u0026Bdb7AZ2s6BcmnhhzQ0cN4oD6Pbtgemp1XEZrClw07ciAWwsrMUibrHXnkiVat03NNJvqU6vZJm13F4OnvccaGg==" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/gateways/gatewayidsdGYeN?api-version=2021-08-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "If-Match": "*", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 13:25:29 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14996", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T132530Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/locations/westus/networkstatus?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 13:25:29 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11930", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T132530Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "dnsServers": [ - "168.63.129.16" - ], - "connectivityStatus": [ - { - "name": "apimrpstavcr9vtfnmuksqof.queue.core.windows.net", - "status": "success", - "error": "", - "lastUpdated": "2022-10-21T13:23:55.7675038Z", - "lastStatusChange": "2022-10-21T13:08:55.6115891Z", - "resourceType": "SmtpQueue", - "isOptional": true - }, - { - "name": "apimstq8lzamqazil7p6gdbh.blob.core.windows.net", - "status": "success", - "error": "", - "lastUpdated": "2022-10-21T13:23:56.0150233Z", - "lastStatusChange": "2022-10-21T13:08:55.9709631Z", - "resourceType": "BlobStorage", - "isOptional": false - }, - { - "name": "apimstq8lzamqazil7p6gdbh.file.core.windows.net", - "status": "success", - "error": "", - "lastUpdated": "2022-10-21T13:23:55.8118255Z", - "lastStatusChange": "2022-10-21T13:08:55.6482368Z", - "resourceType": "FileStorage", - "isOptional": true - }, - { - "name": "apimstq8lzamqazil7p6gdbh.queue.core.windows.net", - "status": "success", - "error": "", - "lastUpdated": "2022-10-21T13:23:55.7493233Z", - "lastStatusChange": "2022-10-21T13:08:55.5980104Z", - "resourceType": "Queue", - "isOptional": true - }, - { - "name": "apimstq8lzamqazil7p6gdbh.table.core.windows.net", - "status": "success", - "error": "", - "lastUpdated": "2022-10-21T13:23:56.0930804Z", - "lastStatusChange": "2022-10-21T13:08:55.9709631Z", - "resourceType": "TableStorage", - "isOptional": false - }, - { - "name": "apirpsqlgdeh4dtmsoxiuhmu.database.windows.net", - "status": "success", - "error": "", - "lastUpdated": "2022-10-21T13:23:56.0354154Z", - "lastStatusChange": "2022-10-21T13:08:55.8615887Z", - "resourceType": "SQLDatabase", - "isOptional": false - }, - { - "name": "gcs.prod.monitoring.core.windows.net", - "status": "success", - "error": "", - "lastUpdated": "2022-10-21T13:23:55.8743315Z", - "lastStatusChange": "2022-10-21T13:08:55.7522144Z", - "resourceType": "Monitoring", - "isOptional": false - }, - { - "name": "https://apikv-rqdaiel1dpx6ycqo60.vault.azure.net", - "status": "success", - "error": "", - "lastUpdated": "2022-10-21T13:23:55.8430732Z", - "lastStatusChange": "2022-10-21T13:08:55.7387045Z", - "resourceType": "AzureKeyVault", - "isOptional": false - }, - { - "name": "https://gcs.prod.warm.ingestion.monitoring.azure.com", - "status": "success", - "error": "", - "lastUpdated": "2022-10-21T13:23:59.2181922Z", - "lastStatusChange": "2022-10-21T13:08:59.0521983Z", - "resourceType": "Monitoring", - "isOptional": true - }, - { - "name": "https://global.prod.microsoftmetrics.com/", - "status": "success", - "error": "", - "lastUpdated": "2022-10-21T13:23:56.2024559Z", - "lastStatusChange": "2022-10-21T13:08:55.9709631Z", - "resourceType": "Monitoring", - "isOptional": true - }, - { - "name": "https://login.windows.net", - "status": "success", - "error": "", - "lastUpdated": "2022-10-21T13:23:56.1596495Z", - "lastStatusChange": "2022-10-21T13:08:55.9397179Z", - "resourceType": "AzureActiveDirectory", - "isOptional": true - }, - { - "name": "https://partner.prod.repmap.microsoft.com", - "status": "success", - "error": "", - "lastUpdated": "2022-10-21T13:23:56.0150233Z", - "lastStatusChange": "2022-10-21T13:08:55.8303382Z", - "resourceType": "CaptchaEndpoint", - "isOptional": true - }, - { - "name": "https://prod3.prod.microsoftmetrics.com:1886/RecoveryService", - "status": "success", - "error": "", - "lastUpdated": "2022-10-21T13:23:56.0930804Z", - "lastStatusChange": "2022-10-21T13:08:55.9092888Z", - "resourceType": "Metrics", - "isOptional": true - }, - { - "name": "LocalGatewayRedis", - "status": "success", - "error": "", - "lastUpdated": "2022-10-21T13:23:55.8606883Z", - "lastStatusChange": "2022-10-21T13:08:55.7990864Z", - "resourceType": "InternalCache", - "isOptional": true - }, - { - "name": "Scm", - "status": "success", - "error": "", - "lastUpdated": "2022-10-21T13:23:56.9055916Z", - "lastStatusChange": "2022-10-21T13:08:55.8615887Z", - "resourceType": "SourceControl", - "isOptional": true - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/networkstatus?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 13:25:30 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11929", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T132531Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": "[{\u0022location\u0022:\u0022West US\u0022,\u0022networkStatus\u0022:{\u0022dnsServers\u0022:[\u0022168.63.129.16\u0022],\u0022connectivityStatus\u0022:[{\u0022name\u0022:\u0022apimrpstavcr9vtfnmuksqof.queue.core.windows.net\u0022,\u0022status\u0022:\u0022success\u0022,\u0022error\u0022:\u0022\u0022,\u0022lastUpdated\u0022:\u00222022-10-21T13:23:55.7675038Z\u0022,\u0022lastStatusChange\u0022:\u00222022-10-21T13:08:55.6115891Z\u0022,\u0022resourceType\u0022:\u0022SmtpQueue\u0022,\u0022isOptional\u0022:true},{\u0022name\u0022:\u0022apimstq8lzamqazil7p6gdbh.blob.core.windows.net\u0022,\u0022status\u0022:\u0022success\u0022,\u0022error\u0022:\u0022\u0022,\u0022lastUpdated\u0022:\u00222022-10-21T13:23:56.0150233Z\u0022,\u0022lastStatusChange\u0022:\u00222022-10-21T13:08:55.9709631Z\u0022,\u0022resourceType\u0022:\u0022BlobStorage\u0022,\u0022isOptional\u0022:false},{\u0022name\u0022:\u0022apimstq8lzamqazil7p6gdbh.file.core.windows.net\u0022,\u0022status\u0022:\u0022success\u0022,\u0022error\u0022:\u0022\u0022,\u0022lastUpdated\u0022:\u00222022-10-21T13:23:55.8118255Z\u0022,\u0022lastStatusChange\u0022:\u00222022-10-21T13:08:55.6482368Z\u0022,\u0022resourceType\u0022:\u0022FileStorage\u0022,\u0022isOptional\u0022:true},{\u0022name\u0022:\u0022apimstq8lzamqazil7p6gdbh.queue.core.windows.net\u0022,\u0022status\u0022:\u0022success\u0022,\u0022error\u0022:\u0022\u0022,\u0022lastUpdated\u0022:\u00222022-10-21T13:23:55.7493233Z\u0022,\u0022lastStatusChange\u0022:\u00222022-10-21T13:08:55.5980104Z\u0022,\u0022resourceType\u0022:\u0022Queue\u0022,\u0022isOptional\u0022:true},{\u0022name\u0022:\u0022apimstq8lzamqazil7p6gdbh.table.core.windows.net\u0022,\u0022status\u0022:\u0022success\u0022,\u0022error\u0022:\u0022\u0022,\u0022lastUpdated\u0022:\u00222022-10-21T13:23:56.0930804Z\u0022,\u0022lastStatusChange\u0022:\u00222022-10-21T13:08:55.9709631Z\u0022,\u0022resourceType\u0022:\u0022TableStorage\u0022,\u0022isOptional\u0022:false},{\u0022name\u0022:\u0022apirpsqlgdeh4dtmsoxiuhmu.database.windows.net\u0022,\u0022status\u0022:\u0022success\u0022,\u0022error\u0022:\u0022\u0022,\u0022lastUpdated\u0022:\u00222022-10-21T13:23:56.0354154Z\u0022,\u0022lastStatusChange\u0022:\u00222022-10-21T13:08:55.8615887Z\u0022,\u0022resourceType\u0022:\u0022SQLDatabase\u0022,\u0022isOptional\u0022:false},{\u0022name\u0022:\u0022gcs.prod.monitoring.core.windows.net\u0022,\u0022status\u0022:\u0022success\u0022,\u0022error\u0022:\u0022\u0022,\u0022lastUpdated\u0022:\u00222022-10-21T13:23:55.8743315Z\u0022,\u0022lastStatusChange\u0022:\u00222022-10-21T13:08:55.7522144Z\u0022,\u0022resourceType\u0022:\u0022Monitoring\u0022,\u0022isOptional\u0022:false},{\u0022name\u0022:\u0022https://apikv-rqdaiel1dpx6ycqo60.vault.azure.net\u0022,\u0022status\u0022:\u0022success\u0022,\u0022error\u0022:\u0022\u0022,\u0022lastUpdated\u0022:\u00222022-10-21T13:23:55.8430732Z\u0022,\u0022lastStatusChange\u0022:\u00222022-10-21T13:08:55.7387045Z\u0022,\u0022resourceType\u0022:\u0022AzureKeyVault\u0022,\u0022isOptional\u0022:false},{\u0022name\u0022:\u0022https://gcs.prod.warm.ingestion.monitoring.azure.com\u0022,\u0022status\u0022:\u0022success\u0022,\u0022error\u0022:\u0022\u0022,\u0022lastUpdated\u0022:\u00222022-10-21T13:23:59.2181922Z\u0022,\u0022lastStatusChange\u0022:\u00222022-10-21T13:08:59.0521983Z\u0022,\u0022resourceType\u0022:\u0022Monitoring\u0022,\u0022isOptional\u0022:true},{\u0022name\u0022:\u0022https://global.prod.microsoftmetrics.com/\u0022,\u0022status\u0022:\u0022success\u0022,\u0022error\u0022:\u0022\u0022,\u0022lastUpdated\u0022:\u00222022-10-21T13:23:56.2024559Z\u0022,\u0022lastStatusChange\u0022:\u00222022-10-21T13:08:55.9709631Z\u0022,\u0022resourceType\u0022:\u0022Monitoring\u0022,\u0022isOptional\u0022:true},{\u0022name\u0022:\u0022https://login.windows.net\u0022,\u0022status\u0022:\u0022success\u0022,\u0022error\u0022:\u0022\u0022,\u0022lastUpdated\u0022:\u00222022-10-21T13:23:56.1596495Z\u0022,\u0022lastStatusChange\u0022:\u00222022-10-21T13:08:55.9397179Z\u0022,\u0022resourceType\u0022:\u0022AzureActiveDirectory\u0022,\u0022isOptional\u0022:true},{\u0022name\u0022:\u0022https://partner.prod.repmap.microsoft.com\u0022,\u0022status\u0022:\u0022success\u0022,\u0022error\u0022:\u0022\u0022,\u0022lastUpdated\u0022:\u00222022-10-21T13:23:56.0150233Z\u0022,\u0022lastStatusChange\u0022:\u00222022-10-21T13:08:55.8303382Z\u0022,\u0022resourceType\u0022:\u0022CaptchaEndpoint\u0022,\u0022isOptional\u0022:true},{\u0022name\u0022:\u0022https://prod3.prod.microsoftmetrics.com:1886/RecoveryService\u0022,\u0022status\u0022:\u0022success\u0022,\u0022error\u0022:\u0022\u0022,\u0022lastUpdated\u0022:\u00222022-10-21T13:23:56.0930804Z\u0022,\u0022lastStatusChange\u0022:\u00222022-10-21T13:08:55.9092888Z\u0022,\u0022resourceType\u0022:\u0022Metrics\u0022,\u0022isOptional\u0022:true},{\u0022name\u0022:\u0022LocalGatewayRedis\u0022,\u0022status\u0022:\u0022success\u0022,\u0022error\u0022:\u0022\u0022,\u0022lastUpdated\u0022:\u00222022-10-21T13:23:55.8606883Z\u0022,\u0022lastStatusChange\u0022:\u00222022-10-21T13:08:55.7990864Z\u0022,\u0022resourceType\u0022:\u0022InternalCache\u0022,\u0022isOptional\u0022:true},{\u0022name\u0022:\u0022Scm\u0022,\u0022status\u0022:\u0022success\u0022,\u0022error\u0022:\u0022\u0022,\u0022lastUpdated\u0022:\u00222022-10-21T13:23:56.9055916Z\u0022,\u0022lastStatusChange\u0022:\u00222022-10-21T13:08:55.8615887Z\u0022,\u0022resourceType\u0022:\u0022SourceControl\u0022,\u0022isOptional\u0022:true}]}}]" - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegatewaysdGYeN/outboundNetworkDependenciesEndpoints?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 13:25:39 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11928", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T132539Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "category": "Azure SMTP", - "endpoints": [ - { - "domainName": "smtpi-ch1.msn.com", - "endpointDetails": [ - { - "port": 25028, - "region": "West US" - } - ] - } - ] - }, - { - "category": "Azure SQL", - "endpoints": [ - { - "domainName": "apirpsqlgdeh4dtmsoxiuhmu.database.windows.net", - "endpointDetails": [ - { - "port": 1433, - "region": "West US" - } - ] - } - ] - }, - { - "category": "Azure Storage", - "endpoints": [ - { - "domainName": "apigblstorageprdbay.blob.core.windows.net", - "endpointDetails": [ - { - "port": 443, - "region": "West US" - } - ] - }, - { - "domainName": "gsm1357448871xt.blob.core.windows.net", - "endpointDetails": [ - { - "port": 443, - "region": "West US" - } - ] - }, - { - "domainName": "gsm1357448871xt.table.core.windows.net", - "endpointDetails": [ - { - "port": 443, - "region": "West US" - } - ] - }, - { - "domainName": "gsm587983848xt.blob.core.windows.net", - "endpointDetails": [ - { - "port": 443, - "region": "West US" - } - ] - }, - { - "domainName": "gsm587983848xt.table.core.windows.net", - "endpointDetails": [ - { - "port": 443, - "region": "West US" - } - ] - }, - { - "domainName": "gsm979451743xt.blob.core.windows.net", - "endpointDetails": [ - { - "port": 443, - "region": "West US" - } - ] - }, - { - "domainName": "gsm979451743xt.table.core.windows.net", - "endpointDetails": [ - { - "port": 443, - "region": "West US" - } - ] - }, - { - "domainName": "gsm825309993xt.blob.core.windows.net", - "endpointDetails": [ - { - "port": 443, - "region": "West US" - } - ] - }, - { - "domainName": "gsm825309993xt.table.core.windows.net", - "endpointDetails": [ - { - "port": 443, - "region": "West US" - } - ] - }, - { - "domainName": "apimstq8lzamqazil7p6gdbh.blob.core.windows.net", - "endpointDetails": [ - { - "port": 443, - "region": "West US" - } - ] - }, - { - "domainName": "apimstq8lzamqazil7p6gdbh.file.core.windows.net", - "endpointDetails": [ - { - "port": 445, - "region": "West US" - } - ] - }, - { - "domainName": "apimstq8lzamqazil7p6gdbh.queue.core.windows.net", - "endpointDetails": [ - { - "port": 443, - "region": "West US" - } - ] - }, - { - "domainName": "apimstq8lzamqazil7p6gdbh.table.core.windows.net", - "endpointDetails": [ - { - "port": 443, - "region": "West US" - } - ] - } - ] - }, - { - "category": "Azure Key Vault", - "endpoints": [ - { - "domainName": "apikv-rqdaiel1dpx6ycqo60.vault.azure.net", - "endpointDetails": [ - { - "port": 443, - "region": "West US" - } - ] - } - ] - }, - { - "category": "Azure Event Hub", - "endpoints": [ - { - "domainName": "gsm587983848eh.servicebus.windows.net", - "endpointDetails": [ - { - "port": 443, - "region": "West US" - }, - { - "port": 5671, - "region": "West US" - }, - { - "port": 5672, - "region": "West US" - } - ] - }, - { - "domainName": "gsm979451743eh.servicebus.windows.net", - "endpointDetails": [ - { - "port": 443, - "region": "West US" - }, - { - "port": 5671, - "region": "West US" - }, - { - "port": 5672, - "region": "West US" - } - ] - }, - { - "domainName": "gsm1357448871eh.servicebus.windows.net", - "endpointDetails": [ - { - "port": 443, - "region": "West US" - }, - { - "port": 5671, - "region": "West US" - }, - { - "port": 5672, - "region": "West US" - } - ] - }, - { - "domainName": "gsm825309993eh.servicebus.windows.net", - "endpointDetails": [ - { - "port": 443, - "region": "West US" - }, - { - "port": 5671, - "region": "West US" - }, - { - "port": 5672, - "region": "West US" - } - ] - } - ] - }, - { - "category": "SSL Certificate Verification", - "endpoints": [ - { - "domainName": "ocsp.msocsp.com", - "endpointDetails": [ - { - "port": 80, - "region": "Global" - }, - { - "port": 443, - "region": "Global" - } - ] - }, - { - "domainName": "mscrl.microsoft.com", - "endpointDetails": [ - { - "port": 80, - "region": "Global" - }, - { - "port": 443, - "region": "Global" - } - ] - }, - { - "domainName": "crl.microsoft.com", - "endpointDetails": [ - { - "port": 80, - "region": "Global" - }, - { - "port": 443, - "region": "Global" - } - ] - }, - { - "domainName": "crl3.digicert.com", - "endpointDetails": [ - { - "port": 80, - "region": "Global" - }, - { - "port": 443, - "region": "Global" - } - ] - }, - { - "domainName": "ocsp.digicert.com", - "endpointDetails": [ - { - "port": 80, - "region": "Global" - }, - { - "port": 443, - "region": "Global" - } - ] - }, - { - "domainName": "cacerts.digicert.com", - "endpointDetails": [ - { - "port": 80, - "region": "Global" - }, - { - "port": 443, - "region": "Global" - } - ] - } - ] - }, - { - "category": "Windows Activation", - "endpoints": [ - { - "domainName": "kms.core.windows.net", - "endpointDetails": [ - { - "port": 443, - "region": "Global" - } - ] - } - ] - }, - { - "category": "Azure Monitor", - "endpoints": [ - { - "domainName": "gcs.prod.monitoring.core.windows.net", - "endpointDetails": [ - { - "port": 443, - "region": "Global" - } - ] - }, - { - "domainName": "global.prod.microsoftmetrics.com", - "endpointDetails": [ - { - "port": 443, - "region": "Global" - } - ] - }, - { - "domainName": "prod3.prod.microsoftmetrics.com", - "endpointDetails": [ - { - "port": 1886, - "region": "Global" - } - ] - }, - { - "domainName": "prod3-red.prod.microsoftmetrics.com", - "endpointDetails": [ - { - "port": 1886, - "region": "Global" - } - ] - }, - { - "domainName": "prod3-black.prod.microsoftmetrics.com", - "endpointDetails": [ - { - "port": 1886, - "region": "Global" - } - ] - }, - { - "domainName": "gcs.prod.warm.ingestion.monitoring.azure.com", - "endpointDetails": [ - { - "port": 443, - "region": "Global" - } - ] - }, - { - "domainName": "*.prod.warm.ingest.monitor.core.windows.net", - "endpointDetails": [ - { - "port": 443, - "region": "Global" - } - ] - }, - { - "domainName": "shoebox2.prod.microsoftmetrics.com", - "endpointDetails": [ - { - "port": 443, - "region": "Global" - } - ] - }, - { - "domainName": "shoebox2-red.prod.microsoftmetrics.com", - "endpointDetails": [ - { - "port": 443, - "region": "Global" - } - ] - }, - { - "domainName": "shoebox2-black.prod.microsoftmetrics.com", - "endpointDetails": [ - { - "port": 443, - "region": "Global" - } - ] - } - ] - }, - { - "category": "Portal Captcha", - "endpoints": [ - { - "domainName": "partner.prod.repmap.microsoft.com", - "endpointDetails": [ - { - "port": 443, - "region": "Global" - } - ] - } - ] - }, - { - "category": "Deprecated Portal Captcha", - "endpoints": [ - { - "domainName": "client.hip.live.com", - "endpointDetails": [ - { - "port": 443, - "region": "Global" - } - ] - }, - { - "domainName": "partner.hip.live.com", - "endpointDetails": [ - { - "port": 443, - "region": "Global" - } - ] - } - ] - }, - { - "category": "Azure Active Directory", - "endpoints": [ - { - "domainName": "login.windows.net", - "endpointDetails": [ - { - "port": 443, - "region": "Global" - } - ] - }, - { - "domainName": "graph.windows.net", - "endpointDetails": [ - { - "port": 443, - "region": "Global" - } - ] - }, - { - "domainName": "login.microsoftonline.com", - "endpointDetails": [ - { - "port": 443, - "region": "Global" - } - ] - } - ] - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 13:25:45 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ0NjYtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14995", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T132545Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": { - "recordingRandomSeed": "1666342412" - } -} diff --git a/sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimgroupsTestSuite.json b/sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimgroupsTestSuite.json deleted file mode 100644 index 07ed11efad6b..000000000000 --- a/sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimgroupsTestSuite.json +++ /dev/null @@ -1,1806 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 13:25:49 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1190", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T132549Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "westus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN?api-version=2021-08-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "172", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus", - "properties": { - "publisherEmail": "foo@contoso.com", - "publisherName": "foo" - }, - "sku": { - "capacity": 1, - "name": "Standard" - }, - "tags": { - "Name": "Contoso", - "Test": "User" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "1762", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 13:25:56 GMT", - "ETag": "\u0022AAAAAAA90yY=\u0022", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1189", - "x-ms-request-id": [ - "00000000-0000-0000-0000-000000000000", - "477f90a3-4765-47a9-b01a-06cae98502a1" - ], - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T132557Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN", - "name": "servicegroupsdGYeN", - "type": "Microsoft.ApiManagement/service", - "tags": { - "Name": "Contoso", - "Test": "User" - }, - "location": "West US", - "etag": "AAAAAAA90yY=", - "properties": { - "publisherEmail": "foo@contoso.com", - "publisherName": "foo", - "notificationSenderEmail": "apimgmt-noreply@mail.windowsazure.com", - "provisioningState": "Created", - "targetProvisioningState": "Activating", - "createdAtUtc": "2022-10-21T13:25:52.0703041Z", - "gatewayUrl": "https://servicegroupsdgyen.azure-api.net", - "gatewayRegionalUrl": null, - "portalUrl": null, - "developerPortalUrl": null, - "managementApiUrl": null, - "scmUrl": null, - "hostnameConfigurations": [ - { - "type": "Proxy", - "hostName": "servicegroupsdgyen.azure-api.net", - "encodedCertificate": null, - "keyVaultId": null, - "certificatePassword": null, - "negotiateClientCertificate": false, - "certificate": null, - "defaultSslBinding": true, - "identityClientId": null, - "certificateSource": "BuiltIn", - "certificateStatus": null - } - ], - "publicIPAddresses": null, - "privateIPAddresses": null, - "additionalLocations": null, - "virtualNetworkConfiguration": null, - "customProperties": null, - "virtualNetworkType": "None", - "certificates": null, - "disableGateway": false, - "apiVersionConstraint": { - "minApiVersion": null - }, - "publicIpAddressId": null, - "publicNetworkAccess": "Enabled", - "privateEndpointConnections": null, - "platformVersion": "undetermined" - }, - "sku": { - "name": "Standard", - "capacity": 1 - }, - "identity": null, - "zones": null, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-21T13:25:51.9771616Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-21T13:25:51.9771616Z" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 13:26:57 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11927", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T132657Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 13:27:58 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11926", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T132759Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 13:28:59 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11925", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T132900Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 13:30:00 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11929", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T133001Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 13:31:01 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11928", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T133102Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 13:32:03 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11927", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T133203Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 13:33:04 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11926", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T133304Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 13:34:05 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11925", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T133405Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 13:35:06 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11929", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T133507Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 13:36:08 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11928", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T133608Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 13:37:08 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11927", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T133708Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 13:38:09 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11926", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T133810Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 13:39:10 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11925", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T133911Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 13:40:11 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T134012Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 13:41:13 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T134113Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 13:42:14 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T134214Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 13:43:15 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11930", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T134315Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 13:44:16 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11929", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T134417Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 13:45:18 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T134518Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 13:46:19 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T134619Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 13:47:20 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T134720Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 13:48:20 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T134821Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 13:49:21 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T134922Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 13:50:22 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T135023Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 13:51:23 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T135124Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 13:52:24 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T135225Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 13:53:25 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T135326Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 13:54:27 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T135427Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 13:55:27 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T135527Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 13:56:28 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T135629Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 13:57:29 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T135730Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 13:58:31 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T135831Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 13:59:32 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T135932Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 14:00:32 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T140033Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 14:01:33 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T140134Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 14:02:34 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T140235Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 14:03:35 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T140336Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 14:04:36 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T140437Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 14:05:38 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T140538Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 14:06:39 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T140639Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 14:07:40 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T140740Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 14:08:41 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T140841Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 14:09:42 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T140943Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 14:10:43 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T141044Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vncm91cHNkR1llTl9BY3RfYTg3M2Y3MGE=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 14:11:44 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T141145Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN", - "name": "servicegroupsdGYeN", - "type": "Microsoft.ApiManagement/service", - "tags": { - "Name": "Contoso", - "Test": "User" - }, - "location": "West US", - "etag": "AAAAAAA904Q=", - "properties": { - "publisherEmail": "foo@contoso.com", - "publisherName": "foo", - "notificationSenderEmail": "apimgmt-noreply@mail.windowsazure.com", - "provisioningState": "Succeeded", - "targetProvisioningState": "", - "createdAtUtc": "2022-10-21T13:25:52.0703041Z", - "gatewayUrl": "https://servicegroupsdgyen.azure-api.net", - "gatewayRegionalUrl": "https://servicegroupsdgyen-westus-01.regional.azure-api.net", - "portalUrl": "https://servicegroupsdgyen.portal.azure-api.net", - "developerPortalUrl": "https://servicegroupsdgyen.developer.azure-api.net", - "managementApiUrl": "https://servicegroupsdgyen.management.azure-api.net", - "scmUrl": "https://servicegroupsdgyen.scm.azure-api.net", - "hostnameConfigurations": [ - { - "type": "Proxy", - "hostName": "servicegroupsdgyen.azure-api.net", - "encodedCertificate": null, - "keyVaultId": null, - "certificatePassword": null, - "negotiateClientCertificate": false, - "certificate": null, - "defaultSslBinding": true, - "identityClientId": null, - "certificateSource": "BuiltIn", - "certificateStatus": null - } - ], - "publicIPAddresses": [ - "40.85.150.226" - ], - "privateIPAddresses": null, - "additionalLocations": null, - "virtualNetworkConfiguration": null, - "customProperties": { - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Ssl30": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TripleDes168": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls10": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls11": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Ssl30": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Protocols.Server.Http2": "False" - }, - "virtualNetworkType": "None", - "certificates": null, - "disableGateway": false, - "apiVersionConstraint": { - "minApiVersion": null - }, - "publicIpAddressId": null, - "publicNetworkAccess": "Enabled", - "privateEndpointConnections": null, - "platformVersion": "stv2" - }, - "sku": { - "name": "Standard", - "capacity": 1 - }, - "identity": null, - "zones": null, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-21T13:25:51.9771616Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-21T13:25:51.9771616Z" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/groups/groupidsdGYeN?api-version=2021-08-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "43", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "displayName": "temp group" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "415", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 14:11:49 GMT", - "ETag": "\u0022AAAAAAAACSM=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1195", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T141150Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/groups/groupidsdGYeN", - "type": "Microsoft.ApiManagement/service/groups", - "name": "groupidsdGYeN", - "properties": { - "displayName": "temp group", - "description": null, - "builtIn": false, - "type": "custom", - "externalId": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/groups/groupidsdGYeN?api-version=2021-08-01", - "RequestMethod": "HEAD", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 14:11:50 GMT", - "ETag": "\u0022AAAAAAAACSM=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T141150Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/groups?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 14:11:51 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T141151Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/groups/administrators", - "type": "Microsoft.ApiManagement/service/groups", - "name": "administrators", - "properties": { - "displayName": "Administrators", - "description": "Administrators is a built-in group containing the admin email account provided at the time of service creation. Its membership is managed by the system.", - "builtIn": true, - "type": "system", - "externalId": null - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/groups/developers", - "type": "Microsoft.ApiManagement/service/groups", - "name": "developers", - "properties": { - "displayName": "Developers", - "description": "Developers is a built-in group. Its membership is managed by the system. Signed-in users fall into this group.", - "builtIn": true, - "type": "system", - "externalId": null - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/groups/guests", - "type": "Microsoft.ApiManagement/service/groups", - "name": "guests", - "properties": { - "displayName": "Guests", - "description": "Guests is a built-in group. Its membership is managed by the system. Unauthenticated users visiting the developer portal fall into this group.", - "builtIn": true, - "type": "system", - "externalId": null - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/groups/groupidsdGYeN", - "type": "Microsoft.ApiManagement/service/groups", - "name": "groupidsdGYeN", - "properties": { - "displayName": "temp group", - "description": null, - "builtIn": false, - "type": "custom", - "externalId": null - } - } - ], - "count": 4 - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/groups/groupidsdGYeN?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 14:11:51 GMT", - "ETag": "\u0022AAAAAAAACSM=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11930", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T141152Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/groups/groupidsdGYeN", - "type": "Microsoft.ApiManagement/service/groups", - "name": "groupidsdGYeN", - "properties": { - "displayName": "temp group", - "description": null, - "builtIn": false, - "type": "custom", - "externalId": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/groups/groupidsdGYeN?api-version=2021-08-01", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "43", - "Content-Type": "application/json", - "If-Match": "*", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "displayName": "temp group" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 14:11:52 GMT", - "ETag": "\u0022AAAAAAAACSM=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1194", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T141153Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/groups/groupidsdGYeN", - "type": "Microsoft.ApiManagement/service/groups", - "name": "groupidsdGYeN", - "properties": { - "displayName": "temp group", - "description": null, - "builtIn": false, - "type": "custom", - "externalId": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicegroupsdGYeN/groups/groupidsdGYeN?api-version=2021-08-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "If-Match": "*", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 14:11:53 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14997", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T141154Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 14:11:57 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQyLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14996", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T141158Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": { - "recordingRandomSeed": "1666342412" - } -} diff --git a/sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimidentityproviderTestSuite.json b/sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimidentityproviderTestSuite.json deleted file mode 100644 index a4f7fad3612d..000000000000 --- a/sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimidentityproviderTestSuite.json +++ /dev/null @@ -1,1815 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 14:12:02 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1193", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T141202Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "westus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN?api-version=2021-08-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "172", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus", - "properties": { - "publisherEmail": "foo@contoso.com", - "publisherName": "foo" - }, - "sku": { - "capacity": 1, - "name": "Standard" - }, - "tags": { - "Name": "Contoso", - "Test": "User" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "1774", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 14:12:08 GMT", - "ETag": "\u0022AAAAAAA904U=\u0022", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1192", - "x-ms-request-id": [ - "00000000-0000-0000-0000-000000000000", - "c7758cd8-0421-4fa4-b002-2ea04b61deef" - ], - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T141209Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN", - "name": "serviceidentitysdGYeN", - "type": "Microsoft.ApiManagement/service", - "tags": { - "Name": "Contoso", - "Test": "User" - }, - "location": "West US", - "etag": "AAAAAAA904U=", - "properties": { - "publisherEmail": "foo@contoso.com", - "publisherName": "foo", - "notificationSenderEmail": "apimgmt-noreply@mail.windowsazure.com", - "provisioningState": "Created", - "targetProvisioningState": "Activating", - "createdAtUtc": "2022-10-21T14:12:04.8671365Z", - "gatewayUrl": "https://serviceidentitysdgyen.azure-api.net", - "gatewayRegionalUrl": null, - "portalUrl": null, - "developerPortalUrl": null, - "managementApiUrl": null, - "scmUrl": null, - "hostnameConfigurations": [ - { - "type": "Proxy", - "hostName": "serviceidentitysdgyen.azure-api.net", - "encodedCertificate": null, - "keyVaultId": null, - "certificatePassword": null, - "negotiateClientCertificate": false, - "certificate": null, - "defaultSslBinding": true, - "identityClientId": null, - "certificateSource": "BuiltIn", - "certificateStatus": null - } - ], - "publicIPAddresses": null, - "privateIPAddresses": null, - "additionalLocations": null, - "virtualNetworkConfiguration": null, - "customProperties": null, - "virtualNetworkType": "None", - "certificates": null, - "disableGateway": false, - "apiVersionConstraint": { - "minApiVersion": null - }, - "publicIpAddressId": null, - "publicNetworkAccess": "Enabled", - "privateEndpointConnections": null, - "platformVersion": "undetermined" - }, - "sku": { - "name": "Standard", - "capacity": 1 - }, - "identity": null, - "zones": null, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-21T14:12:04.7660113Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-21T14:12:04.7660113Z" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 14:13:10 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11929", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T141310Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 14:14:10 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11928", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T141411Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 14:15:12 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T141512Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 14:16:12 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T141613Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 14:17:13 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11930", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T141714Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 14:18:15 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11929", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T141815Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 14:19:16 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11928", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T141916Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 14:20:17 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T142017Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 14:21:18 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T142118Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 14:22:18 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11930", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T142219Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 14:23:20 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11929", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T142320Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 14:24:21 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11928", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T142421Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 14:25:21 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T142522Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 14:26:22 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T142623Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 14:27:23 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11930", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T142724Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 14:28:25 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11929", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T142825Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 14:29:26 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11928", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T142926Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 14:30:27 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11937", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T143028Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 14:31:28 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11936", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T143129Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 14:32:29 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T143230Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 14:33:31 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T143331Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 14:34:31 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T143432Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 14:35:32 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11937", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T143533Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 14:36:33 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11936", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T143634Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 14:37:34 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T143735Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 14:38:36 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T143836Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 14:39:37 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T143937Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 14:40:38 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11937", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T144038Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 14:41:39 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11936", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T144140Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 14:42:40 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T144241Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 14:43:41 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T144342Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 14:44:42 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T144442Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 14:45:43 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11937", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T144543Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 14:46:44 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11936", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T144644Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 14:47:45 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T144746Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 14:48:46 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T144847Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 14:49:48 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T144948Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 14:50:47 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11937", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T145048Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 14:51:49 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11936", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T145149Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 14:52:50 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T145250Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 14:53:51 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T145351Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 14:54:52 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T145453Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 14:55:53 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11937", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T145553Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 14:56:54 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11936", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T145654Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VpZGVudGl0eXNkR1llTl9BY3RfY2U2Yzc4Yg==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 14:57:55 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T145755Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN", - "name": "serviceidentitysdGYeN", - "type": "Microsoft.ApiManagement/service", - "tags": { - "Name": "Contoso", - "Test": "User" - }, - "location": "West US", - "etag": "AAAAAAA91AM=", - "properties": { - "publisherEmail": "foo@contoso.com", - "publisherName": "foo", - "notificationSenderEmail": "apimgmt-noreply@mail.windowsazure.com", - "provisioningState": "Succeeded", - "targetProvisioningState": "", - "createdAtUtc": "2022-10-21T14:12:04.8671365Z", - "gatewayUrl": "https://serviceidentitysdgyen.azure-api.net", - "gatewayRegionalUrl": "https://serviceidentitysdgyen-westus-01.regional.azure-api.net", - "portalUrl": "https://serviceidentitysdgyen.portal.azure-api.net", - "developerPortalUrl": "https://serviceidentitysdgyen.developer.azure-api.net", - "managementApiUrl": "https://serviceidentitysdgyen.management.azure-api.net", - "scmUrl": "https://serviceidentitysdgyen.scm.azure-api.net", - "hostnameConfigurations": [ - { - "type": "Proxy", - "hostName": "serviceidentitysdgyen.azure-api.net", - "encodedCertificate": null, - "keyVaultId": null, - "certificatePassword": null, - "negotiateClientCertificate": false, - "certificate": null, - "defaultSslBinding": true, - "identityClientId": null, - "certificateSource": "BuiltIn", - "certificateStatus": null - } - ], - "publicIPAddresses": [ - "20.253.243.131" - ], - "privateIPAddresses": null, - "additionalLocations": null, - "virtualNetworkConfiguration": null, - "customProperties": { - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Ssl30": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TripleDes168": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls10": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls11": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Ssl30": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Protocols.Server.Http2": "False" - }, - "virtualNetworkType": "None", - "certificates": null, - "disableGateway": false, - "apiVersionConstraint": { - "minApiVersion": null - }, - "publicIpAddressId": null, - "publicNetworkAccess": "Enabled", - "privateEndpointConnections": null, - "platformVersion": "stv2" - }, - "sku": { - "name": "Standard", - "capacity": 1 - }, - "identity": null, - "zones": null, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-21T14:12:04.7660113Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-21T14:12:04.7660113Z" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/identityProviders/aad?api-version=2021-08-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "182", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "allowedTenants": [ - "00000000-0000-0000-0000-000000000000" - ], - "clientId": "00000000-0000-0000-0000-000000000000", - "clientSecret": "000000000000" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "549", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 14:57:57 GMT", - "ETag": "\u0022AAAAAAAACSQ=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1195", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T145757Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/identityProviders/aad", - "type": "Microsoft.ApiManagement/service/identityProviders", - "name": "aad", - "properties": { - "clientId": "00000000-0000-0000-0000-000000000000", - "clientSecret": "000000000000", - "type": "aad", - "authority": "login.windows.net", - "allowedTenants": [ - "00000000-0000-0000-0000-000000000000" - ] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/identityProviders/aad?api-version=2021-08-01", - "RequestMethod": "HEAD", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 14:57:57 GMT", - "ETag": "\u0022AAAAAAAACSQ=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T145758Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/identityProviders?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 14:57:58 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T145758Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/identityProviders/aad", - "type": "Microsoft.ApiManagement/service/identityProviders", - "name": "aad", - "properties": { - "clientId": "00000000-0000-0000-0000-000000000000", - "type": "aad", - "authority": "login.windows.net", - "allowedTenants": [ - "00000000-0000-0000-0000-000000000000" - ] - } - } - ], - "count": 1 - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/identityProviders/aad?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 14:57:58 GMT", - "ETag": "\u0022AAAAAAAACSQ=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T145759Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/identityProviders/aad", - "type": "Microsoft.ApiManagement/service/identityProviders", - "name": "aad", - "properties": { - "clientId": "00000000-0000-0000-0000-000000000000", - "type": "aad", - "authority": "login.windows.net", - "allowedTenants": [ - "00000000-0000-0000-0000-000000000000" - ] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/identityProviders/aad?api-version=2021-08-01", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "124", - "Content-Type": "application/json", - "If-Match": "*", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "clientId": "00000000-0000-0000-0000-000000000000", - "clientSecret": "000000000000" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 14:57:59 GMT", - "ETag": "\u0022AAAAAAAACSQ=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1194", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T145800Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/identityProviders/aad", - "type": "Microsoft.ApiManagement/service/identityProviders", - "name": "aad", - "properties": { - "clientId": "00000000-0000-0000-0000-000000000000", - "clientSecret": "000000000000", - "type": "aad", - "authority": "login.windows.net", - "allowedTenants": [ - "00000000-0000-0000-0000-000000000000" - ] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/identityProviders/aad/listSecrets?api-version=2021-08-01", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 14:58:00 GMT", - "ETag": "\u0022AAAAAAAACSQ=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T145801Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "clientSecret": "000000000000" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceidentitysdGYeN/identityProviders/aad?api-version=2021-08-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "If-Match": "*", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 14:58:01 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14997", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T145801Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 14:58:04 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ1ODktV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14996", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T145805Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": { - "recordingRandomSeed": "1666342412" - } -} diff --git a/sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimnamedvaluesTestSuite.json b/sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimnamedvaluesTestSuite.json deleted file mode 100644 index a8782b5016eb..000000000000 --- a/sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimnamedvaluesTestSuite.json +++ /dev/null @@ -1,1877 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 14:58:17 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1191", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T145818Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "westus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN?api-version=2021-08-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "172", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus", - "properties": { - "publisherEmail": "foo@contoso.com", - "publisherName": "foo" - }, - "sku": { - "capacity": 1, - "name": "Standard" - }, - "tags": { - "Name": "Contoso", - "Test": "User" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "1762", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 14:58:23 GMT", - "ETag": "\u0022AAAAAAA91AY=\u0022", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1190", - "x-ms-request-id": [ - "00000000-0000-0000-0000-000000000000", - "00863ded-c532-44b2-b337-6de8bf4ffef2" - ], - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T145824Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN", - "name": "servicenamedsdGYeN", - "type": "Microsoft.ApiManagement/service", - "tags": { - "Name": "Contoso", - "Test": "User" - }, - "location": "West US", - "etag": "AAAAAAA91AY=", - "properties": { - "publisherEmail": "foo@contoso.com", - "publisherName": "foo", - "notificationSenderEmail": "apimgmt-noreply@mail.windowsazure.com", - "provisioningState": "Created", - "targetProvisioningState": "Activating", - "createdAtUtc": "2022-10-21T14:58:19.9129711Z", - "gatewayUrl": "https://servicenamedsdgyen.azure-api.net", - "gatewayRegionalUrl": null, - "portalUrl": null, - "developerPortalUrl": null, - "managementApiUrl": null, - "scmUrl": null, - "hostnameConfigurations": [ - { - "type": "Proxy", - "hostName": "servicenamedsdgyen.azure-api.net", - "encodedCertificate": null, - "keyVaultId": null, - "certificatePassword": null, - "negotiateClientCertificate": false, - "certificate": null, - "defaultSslBinding": true, - "identityClientId": null, - "certificateSource": "BuiltIn", - "certificateStatus": null - } - ], - "publicIPAddresses": null, - "privateIPAddresses": null, - "additionalLocations": null, - "virtualNetworkConfiguration": null, - "customProperties": null, - "virtualNetworkType": "None", - "certificates": null, - "disableGateway": false, - "apiVersionConstraint": { - "minApiVersion": null - }, - "publicIpAddressId": null, - "publicNetworkAccess": "Enabled", - "privateEndpointConnections": null, - "platformVersion": "undetermined" - }, - "sku": { - "name": "Standard", - "capacity": 1 - }, - "identity": null, - "zones": null, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-21T14:58:19.8077538Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-21T14:58:19.8077538Z" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 14:59:24 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T145925Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 15:00:25 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T150026Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 15:01:27 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T150127Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 15:02:28 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T150228Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 15:03:29 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T150329Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 15:04:30 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T150430Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 15:05:31 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T150532Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 15:06:31 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T150632Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 15:07:32 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T150733Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 15:08:34 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T150835Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 15:09:35 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T150935Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 15:10:36 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T151036Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 15:11:37 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T151137Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 15:12:38 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T151238Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 15:13:39 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T151339Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 15:14:40 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T151440Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 15:15:41 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11937", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T151541Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 15:16:42 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11936", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T151642Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 15:17:43 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T151743Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 15:18:44 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T151844Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 15:19:45 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T151946Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 15:20:46 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11937", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T152047Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 15:21:47 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11936", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T152148Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 15:22:48 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T152249Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 15:23:50 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T152350Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 15:24:51 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T152451Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 15:25:51 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11937", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T152552Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 15:26:52 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11936", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T152653Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 15:27:54 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T152754Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 15:28:55 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T152855Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 15:29:56 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T152956Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 15:30:57 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11937", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T153058Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 15:31:58 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11936", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T153159Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 15:32:59 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T153300Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 15:34:00 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T153401Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 15:35:01 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11938", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T153502Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 15:36:02 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11937", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T153603Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 15:37:03 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11936", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T153704Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 15:38:04 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T153805Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 15:39:05 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T153906Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 15:40:06 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11938", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T154007Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 15:41:08 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11937", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T154108Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 15:42:09 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11936", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T154209Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1lZHNkR1llTl9BY3RfMWI2NjNjYWY=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 15:43:10 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T154310Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN", - "name": "servicenamedsdGYeN", - "type": "Microsoft.ApiManagement/service", - "tags": { - "Name": "Contoso", - "Test": "User" - }, - "location": "West US", - "etag": "AAAAAAA91Oo=", - "properties": { - "publisherEmail": "foo@contoso.com", - "publisherName": "foo", - "notificationSenderEmail": "apimgmt-noreply@mail.windowsazure.com", - "provisioningState": "Succeeded", - "targetProvisioningState": "", - "createdAtUtc": "2022-10-21T14:58:19.9129711Z", - "gatewayUrl": "https://servicenamedsdgyen.azure-api.net", - "gatewayRegionalUrl": "https://servicenamedsdgyen-westus-01.regional.azure-api.net", - "portalUrl": "https://servicenamedsdgyen.portal.azure-api.net", - "developerPortalUrl": "https://servicenamedsdgyen.developer.azure-api.net", - "managementApiUrl": "https://servicenamedsdgyen.management.azure-api.net", - "scmUrl": "https://servicenamedsdgyen.scm.azure-api.net", - "hostnameConfigurations": [ - { - "type": "Proxy", - "hostName": "servicenamedsdgyen.azure-api.net", - "encodedCertificate": null, - "keyVaultId": null, - "certificatePassword": null, - "negotiateClientCertificate": false, - "certificate": null, - "defaultSslBinding": true, - "identityClientId": null, - "certificateSource": "BuiltIn", - "certificateStatus": null - } - ], - "publicIPAddresses": [ - "20.66.27.201" - ], - "privateIPAddresses": null, - "additionalLocations": null, - "virtualNetworkConfiguration": null, - "customProperties": { - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Ssl30": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TripleDes168": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls10": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls11": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Ssl30": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Protocols.Server.Http2": "False" - }, - "virtualNetworkType": "None", - "certificates": null, - "disableGateway": false, - "apiVersionConstraint": { - "minApiVersion": null - }, - "publicIpAddressId": null, - "publicNetworkAccess": "Enabled", - "privateEndpointConnections": null, - "platformVersion": "stv2" - }, - "sku": { - "name": "Standard", - "capacity": 1 - }, - "identity": null, - "zones": null, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-21T14:58:19.8077538Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-21T14:58:19.8077538Z" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/namedValues/namedvaluesdGYeN?api-version=2021-08-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "98", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "displayName": "prop3name", - "secret": false, - "tags": [ - "foo", - "bar" - ], - "value": "propValue" - } - }, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 15:43:14 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/namedValues/namedvaluesdGYeN?api-version=2021-08-01\u0026asyncId=6352be1067ce4219902172c1\u0026asyncCode=201", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1193", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T154314Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/namedValues/namedvaluesdGYeN?api-version=2021-08-01\u0026asyncId=6352be1067ce4219902172c1\u0026asyncCode=201", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "432", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 15:43:15 GMT", - "ETag": "\u0022AAAAAAAACSM=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T154315Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/namedValues/namedvaluesdGYeN", - "type": "Microsoft.ApiManagement/service/namedValues", - "name": "namedvaluesdGYeN", - "properties": { - "displayName": "prop3name", - "value": "propValue", - "tags": [ - "foo", - "bar" - ], - "secret": false - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/namedValues/namedvaluesdGYeN?api-version=2021-08-01", - "RequestMethod": "HEAD", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 15:43:16 GMT", - "ETag": "\u0022AAAAAAAACSM=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T154316Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/namedValues?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 15:43:16 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T154316Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/namedValues/namedvaluesdGYeN", - "type": "Microsoft.ApiManagement/service/namedValues", - "name": "namedvaluesdGYeN", - "properties": { - "displayName": "prop3name", - "value": "propValue", - "tags": [ - "foo", - "bar" - ], - "secret": false - } - } - ], - "count": 1 - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/namedValues/namedvaluesdGYeN?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 15:43:17 GMT", - "ETag": "\u0022AAAAAAAACSM=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T154317Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/namedValues/namedvaluesdGYeN", - "type": "Microsoft.ApiManagement/service/namedValues", - "name": "namedvaluesdGYeN", - "properties": { - "displayName": "prop3name", - "value": "propValue", - "tags": [ - "foo", - "bar" - ], - "secret": false - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/namedValues/namedvaluesdGYeN?api-version=2021-08-01", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "99", - "Content-Type": "application/json", - "If-Match": "*", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "displayName": "prop3name", - "secret": false, - "tags": [ - "foo", - "bar2" - ], - "value": "propValue" - } - }, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 15:43:18 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/namedValues/namedvaluesdGYeN?api-version=2021-08-01\u0026asyncId=6352be1567ce4219902172c5\u0026asyncCode=200", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1192", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T154318Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/namedValues/namedvaluesdGYeN?api-version=2021-08-01\u0026asyncId=6352be1567ce4219902172c5\u0026asyncCode=200", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 15:43:18 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/namedValues/namedvaluesdGYeN?api-version=2021-08-01\u0026asyncId=6352be1567ce4219902172c5\u0026asyncCode=200", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11930", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T154318Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/namedValues/namedvaluesdGYeN?api-version=2021-08-01\u0026asyncId=6352be1567ce4219902172c5\u0026asyncCode=200", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 15:43:48 GMT", - "ETag": "\u0022AAAAAAAACSU=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11929", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T154349Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/namedValues/namedvaluesdGYeN", - "type": "Microsoft.ApiManagement/service/namedValues", - "name": "namedvaluesdGYeN", - "properties": { - "displayName": "prop3name", - "value": "propValue", - "tags": [ - "foo", - "bar2" - ], - "secret": false - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/namedValues/namedvaluesdGYeN/listValue?api-version=2021-08-01", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 15:43:49 GMT", - "ETag": "\u0022AAAAAAAACSU=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T154350Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": "propValue" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenamedsdGYeN/namedValues/namedvaluesdGYeN?api-version=2021-08-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "If-Match": "*", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 15:43:52 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14997", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T154353Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 15:43:56 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQzLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14996", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T154357Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": { - "recordingRandomSeed": "1666342412" - } -} diff --git a/sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimnotificationsTestSuite.json b/sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimnotificationsTestSuite.json deleted file mode 100644 index d777f5cadf49..000000000000 --- a/sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimnotificationsTestSuite.json +++ /dev/null @@ -1,1789 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 15:44:00 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1191", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T154401Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "westus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN?api-version=2021-08-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "172", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus", - "properties": { - "publisherEmail": "foo@contoso.com", - "publisherName": "foo" - }, - "sku": { - "capacity": 1, - "name": "Standard" - }, - "tags": { - "Name": "Contoso", - "Test": "User" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "1765", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 15:44:08 GMT", - "ETag": "\u0022AAAAAAA91Po=\u0022", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1190", - "x-ms-request-id": [ - "00000000-0000-0000-0000-000000000000", - "d0fb3431-199e-4027-a886-42d3531a918a" - ], - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T154409Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN", - "name": "servicenotifisdGYeN", - "type": "Microsoft.ApiManagement/service", - "tags": { - "Name": "Contoso", - "Test": "User" - }, - "location": "West US", - "etag": "AAAAAAA91Po=", - "properties": { - "publisherEmail": "foo@contoso.com", - "publisherName": "foo", - "notificationSenderEmail": "apimgmt-noreply@mail.windowsazure.com", - "provisioningState": "Created", - "targetProvisioningState": "Activating", - "createdAtUtc": "2022-10-21T15:44:04.756748Z", - "gatewayUrl": "https://servicenotifisdgyen.azure-api.net", - "gatewayRegionalUrl": null, - "portalUrl": null, - "developerPortalUrl": null, - "managementApiUrl": null, - "scmUrl": null, - "hostnameConfigurations": [ - { - "type": "Proxy", - "hostName": "servicenotifisdgyen.azure-api.net", - "encodedCertificate": null, - "keyVaultId": null, - "certificatePassword": null, - "negotiateClientCertificate": false, - "certificate": null, - "defaultSslBinding": true, - "identityClientId": null, - "certificateSource": "BuiltIn", - "certificateStatus": null - } - ], - "publicIPAddresses": null, - "privateIPAddresses": null, - "additionalLocations": null, - "virtualNetworkConfiguration": null, - "customProperties": null, - "virtualNetworkType": "None", - "certificates": null, - "disableGateway": false, - "apiVersionConstraint": { - "minApiVersion": null - }, - "publicIpAddressId": null, - "publicNetworkAccess": "Enabled", - "privateEndpointConnections": null, - "platformVersion": "undetermined" - }, - "sku": { - "name": "Standard", - "capacity": 1 - }, - "identity": null, - "zones": null, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-21T15:44:04.6454362Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-21T15:44:04.6454362Z" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 15:45:09 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T154510Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 15:46:10 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T154611Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 15:47:12 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T154712Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 15:48:12 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11930", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T154813Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 15:49:13 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11929", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T154914Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 15:50:14 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T155015Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 15:51:16 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T155116Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 15:52:17 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T155217Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 15:53:18 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11930", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T155318Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 15:54:18 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11929", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T155419Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 15:55:19 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T155520Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 15:56:20 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T155620Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 15:57:21 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T155721Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 15:58:22 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11930", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T155822Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 15:59:23 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11929", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T155923Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 16:00:24 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T160024Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 16:01:26 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T160126Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 16:02:27 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T160227Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 16:03:28 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T160328Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 16:04:29 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T160429Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 16:05:29 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T160530Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 16:06:31 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T160631Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 16:07:34 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T160734Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 16:08:34 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T160835Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 16:09:35 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T160936Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 16:10:36 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T161037Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 16:11:37 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T161138Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 16:12:39 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T161239Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 16:13:40 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T161340Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 16:14:41 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T161441Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 16:15:41 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T161542Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 16:16:43 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T161643Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 16:17:44 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T161744Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 16:18:45 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T161846Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 16:19:46 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T161947Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 16:20:47 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T162048Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 16:21:48 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T162149Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 16:22:49 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T162250Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 16:23:51 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T162351Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 16:24:52 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T162452Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 16:25:53 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T162553Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vub3RpZmlzZEdZZU5fQWN0X2I3MzQzNThl?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 16:26:54 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T162654Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN", - "name": "servicenotifisdGYeN", - "type": "Microsoft.ApiManagement/service", - "tags": { - "Name": "Contoso", - "Test": "User" - }, - "location": "West US", - "etag": "AAAAAAA91hE=", - "properties": { - "publisherEmail": "foo@contoso.com", - "publisherName": "foo", - "notificationSenderEmail": "apimgmt-noreply@mail.windowsazure.com", - "provisioningState": "Succeeded", - "targetProvisioningState": "", - "createdAtUtc": "2022-10-21T15:44:04.756748Z", - "gatewayUrl": "https://servicenotifisdgyen.azure-api.net", - "gatewayRegionalUrl": "https://servicenotifisdgyen-westus-01.regional.azure-api.net", - "portalUrl": "https://servicenotifisdgyen.portal.azure-api.net", - "developerPortalUrl": "https://servicenotifisdgyen.developer.azure-api.net", - "managementApiUrl": "https://servicenotifisdgyen.management.azure-api.net", - "scmUrl": "https://servicenotifisdgyen.scm.azure-api.net", - "hostnameConfigurations": [ - { - "type": "Proxy", - "hostName": "servicenotifisdgyen.azure-api.net", - "encodedCertificate": null, - "keyVaultId": null, - "certificatePassword": null, - "negotiateClientCertificate": false, - "certificate": null, - "defaultSslBinding": true, - "identityClientId": null, - "certificateSource": "BuiltIn", - "certificateStatus": null - } - ], - "publicIPAddresses": [ - "20.253.189.77" - ], - "privateIPAddresses": null, - "additionalLocations": null, - "virtualNetworkConfiguration": null, - "customProperties": { - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Ssl30": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TripleDes168": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls10": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls11": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Ssl30": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Protocols.Server.Http2": "False" - }, - "virtualNetworkType": "None", - "certificates": null, - "disableGateway": false, - "apiVersionConstraint": { - "minApiVersion": null - }, - "publicIpAddressId": null, - "publicNetworkAccess": "Enabled", - "privateEndpointConnections": null, - "platformVersion": "stv2" - }, - "sku": { - "name": "Standard", - "capacity": 1 - }, - "identity": null, - "zones": null, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-21T15:44:04.6454362Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-21T15:44:04.6454362Z" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/notifications/RequestPublisherNotificationMessage?api-version=2021-08-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 16:26:56 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1195", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T162656Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/notifications/RequestPublisherNotificationMessage", - "type": "Microsoft.ApiManagement/service/notifications", - "name": "RequestPublisherNotificationMessage", - "properties": { - "title": "Subscription requests (requiring approval)", - "description": "The following email recipients and users will receive email notifications about subscription requests for API products requiring approval.", - "recipients": { - "emails": [], - "users": [] - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/notifications?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 16:26:56 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T162657Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/notifications/RequestPublisherNotificationMessage", - "type": "Microsoft.ApiManagement/service/notifications", - "name": "RequestPublisherNotificationMessage", - "properties": { - "title": "Subscription requests (requiring approval)", - "description": "The following email recipients and users will receive email notifications about subscription requests for API products requiring approval.", - "recipients": { - "emails": [], - "users": [] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/notifications/PurchasePublisherNotificationMessage", - "type": "Microsoft.ApiManagement/service/notifications", - "name": "PurchasePublisherNotificationMessage", - "properties": { - "title": "New subscriptions", - "description": "The following email recipients and users will receive email notifications about new API product subscriptions.", - "recipients": { - "emails": [], - "users": [] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/notifications/NewApplicationNotificationMessage", - "type": "Microsoft.ApiManagement/service/notifications", - "name": "NewApplicationNotificationMessage", - "properties": { - "title": "Application gallery requests", - "description": "The following email recipients and users will receive email notifications when new applications are submitted to the application gallery.", - "recipients": { - "emails": [], - "users": [] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/notifications/BCC", - "type": "Microsoft.ApiManagement/service/notifications", - "name": "BCC", - "properties": { - "title": "BCC", - "description": "The following recipients will receive blind carbon copies of all emails sent to developers.", - "recipients": { - "emails": [], - "users": [] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/notifications/NewIssuePublisherNotificationMessage", - "type": "Microsoft.ApiManagement/service/notifications", - "name": "NewIssuePublisherNotificationMessage", - "properties": { - "title": "New issue or comment", - "description": "The following email recipients and users will receive email notifications when a new issue or comment is submitted on the developer portal.", - "recipients": { - "emails": [], - "users": [] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/notifications/AccountClosedPublisher", - "type": "Microsoft.ApiManagement/service/notifications", - "name": "AccountClosedPublisher", - "properties": { - "title": "Close account message", - "description": "The following email recipients and users will receive email notifications when developer closes his account", - "recipients": { - "emails": [], - "users": [] - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/notifications/QuotaLimitApproachingPublisherNotificationMessage", - "type": "Microsoft.ApiManagement/service/notifications", - "name": "QuotaLimitApproachingPublisherNotificationMessage", - "properties": { - "title": "Approaching subscription quota limit", - "description": "The following email recipients and users will receive email notifications when subscription usage gets close to usage quota.", - "recipients": { - "emails": [], - "users": [] - } - } - } - ], - "count": 7 - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/notifications/RequestPublisherNotificationMessage?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 16:26:57 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T162657Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/notifications/RequestPublisherNotificationMessage", - "type": "Microsoft.ApiManagement/service/notifications", - "name": "RequestPublisherNotificationMessage", - "properties": { - "title": "Subscription requests (requiring approval)", - "description": "The following email recipients and users will receive email notifications about subscription requests for API products requiring approval.", - "recipients": { - "emails": [], - "users": [] - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/notifications/RequestPublisherNotificationMessage/recipientEmails/emailsdGYeN?api-version=2021-08-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "392", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 16:26:59 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1194", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T162659Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/notifications/RequestPublisherNotificationMessage/recipientEmails/emailsdGYeN", - "type": "Microsoft.ApiManagement/service/notifications/recipientEmails", - "name": "emailsdGYeN", - "properties": { - "email": "emailsdGYeN" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/notifications/RequestPublisherNotificationMessage/recipientEmails/emailsdGYeN?api-version=2021-08-01", - "RequestMethod": "HEAD", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 16:27:00 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T162700Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/notifications/RequestPublisherNotificationMessage/recipientEmails?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 16:27:00 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11930", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T162700Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/notifications/RequestPublisherNotificationMessage/recipientEmails/emailsdGYeN", - "type": "Microsoft.ApiManagement/service/notifications/recipientEmails", - "name": "emailsdGYeN", - "properties": { - "email": "emailsdGYeN" - } - } - ], - "count": 1 - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicenotifisdGYeN/notifications/RequestPublisherNotificationMessage/recipientEmails/emailsdGYeN?api-version=2021-08-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 16:27:01 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14997", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T162701Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 16:27:04 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ1NTQtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14996", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T162705Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": { - "recordingRandomSeed": "1666342412" - } -} diff --git a/sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimopenidconnectprovidersTestSuite.json b/sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimopenidconnectprovidersTestSuite.json deleted file mode 100644 index f8bf41e89f3a..000000000000 --- a/sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimopenidconnectprovidersTestSuite.json +++ /dev/null @@ -1,1665 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 16:27:08 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1193", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T162709Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "westus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN?api-version=2021-08-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "172", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus", - "properties": { - "publisherEmail": "foo@contoso.com", - "publisherName": "foo" - }, - "sku": { - "capacity": 1, - "name": "Standard" - }, - "tags": { - "Name": "Contoso", - "Test": "User" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "1766", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 16:27:16 GMT", - "ETag": "\u0022AAAAAAA91hI=\u0022", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VvcGVuaWRzZEdZZU5fQWN0Xzg3MjU5NTZj?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1192", - "x-ms-request-id": [ - "00000000-0000-0000-0000-000000000000", - "fcd18558-b521-443e-9b7d-35c7d6735b8f" - ], - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T162716Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN", - "name": "serviceopenidsdGYeN", - "type": "Microsoft.ApiManagement/service", - "tags": { - "Name": "Contoso", - "Test": "User" - }, - "location": "West US", - "etag": "AAAAAAA91hI=", - "properties": { - "publisherEmail": "foo@contoso.com", - "publisherName": "foo", - "notificationSenderEmail": "apimgmt-noreply@mail.windowsazure.com", - "provisioningState": "Created", - "targetProvisioningState": "Activating", - "createdAtUtc": "2022-10-21T16:27:12.0780533Z", - "gatewayUrl": "https://serviceopenidsdgyen.azure-api.net", - "gatewayRegionalUrl": null, - "portalUrl": null, - "developerPortalUrl": null, - "managementApiUrl": null, - "scmUrl": null, - "hostnameConfigurations": [ - { - "type": "Proxy", - "hostName": "serviceopenidsdgyen.azure-api.net", - "encodedCertificate": null, - "keyVaultId": null, - "certificatePassword": null, - "negotiateClientCertificate": false, - "certificate": null, - "defaultSslBinding": true, - "identityClientId": null, - "certificateSource": "BuiltIn", - "certificateStatus": null - } - ], - "publicIPAddresses": null, - "privateIPAddresses": null, - "additionalLocations": null, - "virtualNetworkConfiguration": null, - "customProperties": null, - "virtualNetworkType": "None", - "certificates": null, - "disableGateway": false, - "apiVersionConstraint": { - "minApiVersion": null - }, - "publicIpAddressId": null, - "publicNetworkAccess": "Enabled", - "privateEndpointConnections": null, - "platformVersion": "undetermined" - }, - "sku": { - "name": "Standard", - "capacity": 1 - }, - "identity": null, - "zones": null, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-21T16:27:11.9828784Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-21T16:27:11.9828784Z" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VvcGVuaWRzZEdZZU5fQWN0Xzg3MjU5NTZj?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 16:28:17 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VvcGVuaWRzZEdZZU5fQWN0Xzg3MjU5NTZj?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11929", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T162817Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VvcGVuaWRzZEdZZU5fQWN0Xzg3MjU5NTZj?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 16:29:18 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VvcGVuaWRzZEdZZU5fQWN0Xzg3MjU5NTZj?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11928", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T162919Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VvcGVuaWRzZEdZZU5fQWN0Xzg3MjU5NTZj?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 16:30:20 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VvcGVuaWRzZEdZZU5fQWN0Xzg3MjU5NTZj?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T163020Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VvcGVuaWRzZEdZZU5fQWN0Xzg3MjU5NTZj?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 16:31:21 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VvcGVuaWRzZEdZZU5fQWN0Xzg3MjU5NTZj?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T163121Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VvcGVuaWRzZEdZZU5fQWN0Xzg3MjU5NTZj?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 16:32:22 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VvcGVuaWRzZEdZZU5fQWN0Xzg3MjU5NTZj?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11930", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T163222Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VvcGVuaWRzZEdZZU5fQWN0Xzg3MjU5NTZj?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 16:33:23 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VvcGVuaWRzZEdZZU5fQWN0Xzg3MjU5NTZj?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11929", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T163323Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VvcGVuaWRzZEdZZU5fQWN0Xzg3MjU5NTZj?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 16:34:24 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VvcGVuaWRzZEdZZU5fQWN0Xzg3MjU5NTZj?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11928", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T163424Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VvcGVuaWRzZEdZZU5fQWN0Xzg3MjU5NTZj?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 16:35:25 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VvcGVuaWRzZEdZZU5fQWN0Xzg3MjU5NTZj?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T163526Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VvcGVuaWRzZEdZZU5fQWN0Xzg3MjU5NTZj?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 16:36:26 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VvcGVuaWRzZEdZZU5fQWN0Xzg3MjU5NTZj?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11930", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T163627Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VvcGVuaWRzZEdZZU5fQWN0Xzg3MjU5NTZj?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 16:37:27 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VvcGVuaWRzZEdZZU5fQWN0Xzg3MjU5NTZj?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11929", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T163728Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VvcGVuaWRzZEdZZU5fQWN0Xzg3MjU5NTZj?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 16:38:28 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VvcGVuaWRzZEdZZU5fQWN0Xzg3MjU5NTZj?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11928", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T163829Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VvcGVuaWRzZEdZZU5fQWN0Xzg3MjU5NTZj?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 16:39:29 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VvcGVuaWRzZEdZZU5fQWN0Xzg3MjU5NTZj?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11927", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T163930Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VvcGVuaWRzZEdZZU5fQWN0Xzg3MjU5NTZj?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 16:40:31 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VvcGVuaWRzZEdZZU5fQWN0Xzg3MjU5NTZj?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T164031Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VvcGVuaWRzZEdZZU5fQWN0Xzg3MjU5NTZj?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 16:41:32 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VvcGVuaWRzZEdZZU5fQWN0Xzg3MjU5NTZj?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11930", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T164132Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VvcGVuaWRzZEdZZU5fQWN0Xzg3MjU5NTZj?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 16:42:33 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VvcGVuaWRzZEdZZU5fQWN0Xzg3MjU5NTZj?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11929", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T164233Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VvcGVuaWRzZEdZZU5fQWN0Xzg3MjU5NTZj?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 16:43:34 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VvcGVuaWRzZEdZZU5fQWN0Xzg3MjU5NTZj?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11928", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T164334Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VvcGVuaWRzZEdZZU5fQWN0Xzg3MjU5NTZj?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 16:44:35 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VvcGVuaWRzZEdZZU5fQWN0Xzg3MjU5NTZj?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11927", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T164435Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VvcGVuaWRzZEdZZU5fQWN0Xzg3MjU5NTZj?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 16:45:35 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VvcGVuaWRzZEdZZU5fQWN0Xzg3MjU5NTZj?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11936", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T164536Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VvcGVuaWRzZEdZZU5fQWN0Xzg3MjU5NTZj?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 16:46:36 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VvcGVuaWRzZEdZZU5fQWN0Xzg3MjU5NTZj?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T164637Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VvcGVuaWRzZEdZZU5fQWN0Xzg3MjU5NTZj?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 16:47:37 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VvcGVuaWRzZEdZZU5fQWN0Xzg3MjU5NTZj?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T164738Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VvcGVuaWRzZEdZZU5fQWN0Xzg3MjU5NTZj?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 16:48:38 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VvcGVuaWRzZEdZZU5fQWN0Xzg3MjU5NTZj?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T164839Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VvcGVuaWRzZEdZZU5fQWN0Xzg3MjU5NTZj?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 16:49:39 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VvcGVuaWRzZEdZZU5fQWN0Xzg3MjU5NTZj?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T164940Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VvcGVuaWRzZEdZZU5fQWN0Xzg3MjU5NTZj?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 16:50:41 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VvcGVuaWRzZEdZZU5fQWN0Xzg3MjU5NTZj?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11936", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T165041Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VvcGVuaWRzZEdZZU5fQWN0Xzg3MjU5NTZj?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 16:51:42 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VvcGVuaWRzZEdZZU5fQWN0Xzg3MjU5NTZj?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T165142Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VvcGVuaWRzZEdZZU5fQWN0Xzg3MjU5NTZj?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 16:52:42 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VvcGVuaWRzZEdZZU5fQWN0Xzg3MjU5NTZj?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T165243Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VvcGVuaWRzZEdZZU5fQWN0Xzg3MjU5NTZj?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 16:53:43 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VvcGVuaWRzZEdZZU5fQWN0Xzg3MjU5NTZj?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T165344Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VvcGVuaWRzZEdZZU5fQWN0Xzg3MjU5NTZj?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 16:54:44 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VvcGVuaWRzZEdZZU5fQWN0Xzg3MjU5NTZj?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T165445Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VvcGVuaWRzZEdZZU5fQWN0Xzg3MjU5NTZj?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 16:55:46 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VvcGVuaWRzZEdZZU5fQWN0Xzg3MjU5NTZj?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11936", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T165546Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VvcGVuaWRzZEdZZU5fQWN0Xzg3MjU5NTZj?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 16:56:46 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VvcGVuaWRzZEdZZU5fQWN0Xzg3MjU5NTZj?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T165647Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VvcGVuaWRzZEdZZU5fQWN0Xzg3MjU5NTZj?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 16:57:47 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VvcGVuaWRzZEdZZU5fQWN0Xzg3MjU5NTZj?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T165748Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VvcGVuaWRzZEdZZU5fQWN0Xzg3MjU5NTZj?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 16:58:49 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VvcGVuaWRzZEdZZU5fQWN0Xzg3MjU5NTZj?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T165849Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VvcGVuaWRzZEdZZU5fQWN0Xzg3MjU5NTZj?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 16:59:50 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VvcGVuaWRzZEdZZU5fQWN0Xzg3MjU5NTZj?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T165950Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VvcGVuaWRzZEdZZU5fQWN0Xzg3MjU5NTZj?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 17:00:51 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VvcGVuaWRzZEdZZU5fQWN0Xzg3MjU5NTZj?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11936", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T170051Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VvcGVuaWRzZEdZZU5fQWN0Xzg3MjU5NTZj?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 17:01:52 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VvcGVuaWRzZEdZZU5fQWN0Xzg3MjU5NTZj?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T170152Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VvcGVuaWRzZEdZZU5fQWN0Xzg3MjU5NTZj?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 17:02:53 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VvcGVuaWRzZEdZZU5fQWN0Xzg3MjU5NTZj?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T170254Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VvcGVuaWRzZEdZZU5fQWN0Xzg3MjU5NTZj?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 17:03:54 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VvcGVuaWRzZEdZZU5fQWN0Xzg3MjU5NTZj?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T170354Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VvcGVuaWRzZEdZZU5fQWN0Xzg3MjU5NTZj?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 17:04:55 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VvcGVuaWRzZEdZZU5fQWN0Xzg3MjU5NTZj?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T170455Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VvcGVuaWRzZEdZZU5fQWN0Xzg3MjU5NTZj?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 17:05:56 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VvcGVuaWRzZEdZZU5fQWN0Xzg3MjU5NTZj?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11936", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T170557Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VvcGVuaWRzZEdZZU5fQWN0Xzg3MjU5NTZj?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 17:06:57 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VvcGVuaWRzZEdZZU5fQWN0Xzg3MjU5NTZj?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T170658Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VvcGVuaWRzZEdZZU5fQWN0Xzg3MjU5NTZj?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 17:07:58 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T170759Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN", - "name": "serviceopenidsdGYeN", - "type": "Microsoft.ApiManagement/service", - "tags": { - "Name": "Contoso", - "Test": "User" - }, - "location": "West US", - "etag": "AAAAAAA91sE=", - "properties": { - "publisherEmail": "foo@contoso.com", - "publisherName": "foo", - "notificationSenderEmail": "apimgmt-noreply@mail.windowsazure.com", - "provisioningState": "Succeeded", - "targetProvisioningState": "", - "createdAtUtc": "2022-10-21T16:27:12.0780533Z", - "gatewayUrl": "https://serviceopenidsdgyen.azure-api.net", - "gatewayRegionalUrl": "https://serviceopenidsdgyen-westus-01.regional.azure-api.net", - "portalUrl": "https://serviceopenidsdgyen.portal.azure-api.net", - "developerPortalUrl": "https://serviceopenidsdgyen.developer.azure-api.net", - "managementApiUrl": "https://serviceopenidsdgyen.management.azure-api.net", - "scmUrl": "https://serviceopenidsdgyen.scm.azure-api.net", - "hostnameConfigurations": [ - { - "type": "Proxy", - "hostName": "serviceopenidsdgyen.azure-api.net", - "encodedCertificate": null, - "keyVaultId": null, - "certificatePassword": null, - "negotiateClientCertificate": false, - "certificate": null, - "defaultSslBinding": true, - "identityClientId": null, - "certificateSource": "BuiltIn", - "certificateStatus": null - } - ], - "publicIPAddresses": [ - "20.245.31.134" - ], - "privateIPAddresses": null, - "additionalLocations": null, - "virtualNetworkConfiguration": null, - "customProperties": { - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Ssl30": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TripleDes168": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls10": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls11": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Ssl30": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Protocols.Server.Http2": "False" - }, - "virtualNetworkType": "None", - "certificates": null, - "disableGateway": false, - "apiVersionConstraint": { - "minApiVersion": null - }, - "publicIpAddressId": null, - "publicNetworkAccess": "Enabled", - "privateEndpointConnections": null, - "platformVersion": "stv2" - }, - "sku": { - "name": "Standard", - "capacity": 1 - }, - "identity": null, - "zones": null, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-21T16:27:11.9828784Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-21T16:27:11.9828784Z" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/openidConnectProviders/opidsdGYeN?api-version=2021-08-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "161", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "clientId": "oidprovidertemplate3", - "displayName": "templateoidprovider3", - "metadataEndpoint": "https://oidprovider-template3.net", - "clientSecret": "x" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "510", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 17:08:02 GMT", - "ETag": "\u0022AAAAAAAACSM=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1195", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T170802Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/openidConnectProviders/opidsdGYeN", - "type": "Microsoft.ApiManagement/service/openidConnectProviders", - "name": "opidsdGYeN", - "properties": { - "displayName": "templateoidprovider3", - "description": null, - "metadataEndpoint": "https://oidprovider-template3.net", - "clientId": "oidprovidertemplate3", - "clientSecret": "x" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/openidConnectProviders/opidsdGYeN?api-version=2021-08-01", - "RequestMethod": "HEAD", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 17:08:03 GMT", - "ETag": "\u0022AAAAAAAACSM=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T170803Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/openidConnectProviders?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 17:08:04 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T170804Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/openidConnectProviders/opidsdGYeN", - "type": "Microsoft.ApiManagement/service/openidConnectProviders", - "name": "opidsdGYeN", - "properties": { - "displayName": "templateoidprovider3", - "description": null, - "metadataEndpoint": "https://oidprovider-template3.net", - "clientId": "oidprovidertemplate3" - } - } - ], - "count": 1 - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/openidConnectProviders/opidsdGYeN?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 17:08:04 GMT", - "ETag": "\u0022AAAAAAAACSM=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T170804Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/openidConnectProviders/opidsdGYeN", - "type": "Microsoft.ApiManagement/service/openidConnectProviders", - "name": "opidsdGYeN", - "properties": { - "displayName": "templateoidprovider3", - "description": null, - "metadataEndpoint": "https://oidprovider-template3.net", - "clientId": "oidprovidertemplate3" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/openidConnectProviders/opidsdGYeN?api-version=2021-08-01", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "47", - "Content-Type": "application/json", - "If-Match": "*", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "clientSecret": "updatedsecret" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 17:08:05 GMT", - "ETag": "\u0022AAAAAAAACSQ=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1194", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T170805Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/openidConnectProviders/opidsdGYeN", - "type": "Microsoft.ApiManagement/service/openidConnectProviders", - "name": "opidsdGYeN", - "properties": { - "displayName": "templateoidprovider3", - "description": null, - "metadataEndpoint": "https://oidprovider-template3.net", - "clientId": "oidprovidertemplate3", - "clientSecret": "updatedsecret" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/openidConnectProviders/opidsdGYeN/listSecrets?api-version=2021-08-01", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 17:08:06 GMT", - "ETag": "\u0022AAAAAAAACSQ=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T170806Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "clientSecret": "updatedsecret" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceopenidsdGYeN/openidConnectProviders/opidsdGYeN?api-version=2021-08-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "If-Match": "*", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 17:08:06 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14997", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T170807Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 17:08:11 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ4MTQtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14996", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T170811Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": { - "recordingRandomSeed": "1666342412" - } -} diff --git a/sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimpoliciesTestSuite.json b/sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimpoliciesTestSuite.json deleted file mode 100644 index 3d5739f999af..000000000000 --- a/sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimpoliciesTestSuite.json +++ /dev/null @@ -1,2179 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 17:08:15 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1193", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T170815Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "westus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN?api-version=2021-08-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "172", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus", - "properties": { - "publisherEmail": "foo@contoso.com", - "publisherName": "foo" - }, - "sku": { - "capacity": 1, - "name": "Standard" - }, - "tags": { - "Name": "Contoso", - "Test": "User" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "1764", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 17:08:23 GMT", - "ETag": "\u0022AAAAAAA91sQ=\u0022", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1192", - "x-ms-request-id": [ - "00000000-0000-0000-0000-000000000000", - "b1af61ce-aca7-4f51-a50e-be6f7bb27e6d" - ], - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T170823Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN", - "name": "servicepolicysdGYeN", - "type": "Microsoft.ApiManagement/service", - "tags": { - "Name": "Contoso", - "Test": "User" - }, - "location": "West US", - "etag": "AAAAAAA91sQ=", - "properties": { - "publisherEmail": "foo@contoso.com", - "publisherName": "foo", - "notificationSenderEmail": "apimgmt-noreply@mail.windowsazure.com", - "provisioningState": "Created", - "targetProvisioningState": "Activating", - "createdAtUtc": "2022-10-21T17:08:18.7997456Z", - "gatewayUrl": "https://servicepolicysdgyen.azure-api.net", - "gatewayRegionalUrl": null, - "portalUrl": null, - "developerPortalUrl": null, - "managementApiUrl": null, - "scmUrl": null, - "hostnameConfigurations": [ - { - "type": "Proxy", - "hostName": "servicepolicysdgyen.azure-api.net", - "encodedCertificate": null, - "keyVaultId": null, - "certificatePassword": null, - "negotiateClientCertificate": false, - "certificate": null, - "defaultSslBinding": true, - "identityClientId": null, - "certificateSource": "BuiltIn", - "certificateStatus": null - } - ], - "publicIPAddresses": null, - "privateIPAddresses": null, - "additionalLocations": null, - "virtualNetworkConfiguration": null, - "customProperties": null, - "virtualNetworkType": "None", - "certificates": null, - "disableGateway": false, - "apiVersionConstraint": { - "minApiVersion": null - }, - "publicIpAddressId": null, - "publicNetworkAccess": "Enabled", - "privateEndpointConnections": null, - "platformVersion": "undetermined" - }, - "sku": { - "name": "Standard", - "capacity": 1 - }, - "identity": null, - "zones": null, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-21T17:08:18.695856Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-21T17:08:18.695856Z" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 17:09:24 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11930", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T170925Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 17:10:24 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T171025Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 17:11:25 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T171126Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 17:12:26 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T171227Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 17:13:28 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T171328Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 17:14:29 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11930", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T171429Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 17:15:30 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T171530Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 17:16:31 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T171631Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 17:17:32 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T171733Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 17:18:33 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T171834Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 17:19:35 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11930", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T171935Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 17:20:36 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T172036Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 17:21:37 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T172137Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 17:22:38 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T172238Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 17:23:38 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T172339Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 17:24:39 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11930", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T172440Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 17:25:40 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T172541Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 17:26:41 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T172642Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 17:27:42 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T172743Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 17:28:44 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T172844Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 17:29:45 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11930", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T172946Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 17:30:46 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11937", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T173047Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 17:31:47 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11936", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T173148Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 17:32:48 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T173249Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 17:33:49 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T173350Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 17:34:51 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T173451Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 17:35:52 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11937", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T173552Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 17:36:53 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11936", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T173653Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 17:37:54 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T173754Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 17:38:54 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T173855Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 17:39:55 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T173956Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 17:40:56 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11937", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T174057Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 17:41:57 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11936", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T174158Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 17:42:59 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T174259Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 17:44:00 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T174400Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 17:45:01 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11938", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T174501Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 17:46:02 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11937", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T174602Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 17:47:03 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11936", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T174703Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 17:48:04 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T174805Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 17:49:05 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T174905Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 17:50:06 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11938", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T175007Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 17:51:07 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11937", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T175108Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwb2xpY3lzZEdZZU5fQWN0X2E2MzYwMmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 17:52:09 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11936", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T175209Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN", - "name": "servicepolicysdGYeN", - "type": "Microsoft.ApiManagement/service", - "tags": { - "Name": "Contoso", - "Test": "User" - }, - "location": "West US", - "etag": "AAAAAAA911U=", - "properties": { - "publisherEmail": "foo@contoso.com", - "publisherName": "foo", - "notificationSenderEmail": "apimgmt-noreply@mail.windowsazure.com", - "provisioningState": "Succeeded", - "targetProvisioningState": "", - "createdAtUtc": "2022-10-21T17:08:18.7997456Z", - "gatewayUrl": "https://servicepolicysdgyen.azure-api.net", - "gatewayRegionalUrl": "https://servicepolicysdgyen-westus-01.regional.azure-api.net", - "portalUrl": "https://servicepolicysdgyen.portal.azure-api.net", - "developerPortalUrl": "https://servicepolicysdgyen.developer.azure-api.net", - "managementApiUrl": "https://servicepolicysdgyen.management.azure-api.net", - "scmUrl": "https://servicepolicysdgyen.scm.azure-api.net", - "hostnameConfigurations": [ - { - "type": "Proxy", - "hostName": "servicepolicysdgyen.azure-api.net", - "encodedCertificate": null, - "keyVaultId": null, - "certificatePassword": null, - "negotiateClientCertificate": false, - "certificate": null, - "defaultSslBinding": true, - "identityClientId": null, - "certificateSource": "BuiltIn", - "certificateStatus": null - } - ], - "publicIPAddresses": [ - "20.245.226.122" - ], - "privateIPAddresses": null, - "additionalLocations": null, - "virtualNetworkConfiguration": null, - "customProperties": { - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Ssl30": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TripleDes168": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls10": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls11": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Ssl30": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Protocols.Server.Http2": "False" - }, - "virtualNetworkType": "None", - "certificates": null, - "disableGateway": false, - "apiVersionConstraint": { - "minApiVersion": null - }, - "publicIpAddressId": null, - "publicNetworkAccess": "Enabled", - "privateEndpointConnections": null, - "platformVersion": "stv2" - }, - "sku": { - "name": "Standard", - "capacity": 1 - }, - "identity": null, - "zones": null, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-21T17:08:18.695856Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-21T17:08:18.695856Z" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/policies/policy?api-version=2021-08-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "230", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "value": "\u003Cpolicies\u003E\r\n \u003Cinbound /\u003E\r\n \u003Cbackend\u003E\r\n \u003Cforward-request /\u003E\r\n \u003C/backend\u003E\r\n \u003Coutbound /\u003E\r\n\u003C/policies\u003E", - "format": "xml" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 17:52:14 GMT", - "ETag": "\u0022AAAAAAAACSQ=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1195", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T175214Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/policies/policy", - "type": "Microsoft.ApiManagement/service/policies", - "name": "policy", - "properties": { - "format": "xml", - "value": "\u003Cpolicies\u003E\r\n\t\u003Cinbound /\u003E\r\n\t\u003Cbackend\u003E\r\n\t\t\u003Cforward-request /\u003E\r\n\t\u003C/backend\u003E\r\n\t\u003Coutbound /\u003E\r\n\u003C/policies\u003E" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/policies/policy?api-version=2021-08-01", - "RequestMethod": "HEAD", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 17:52:15 GMT", - "ETag": "\u0022AAAAAAAACSQ=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T175215Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/policies/policy?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 17:52:16 GMT", - "ETag": "\u0022AAAAAAAACSQ=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T175216Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/policies/policy", - "type": "Microsoft.ApiManagement/service/policies", - "name": "policy", - "properties": { - "format": "xml", - "value": "\u003Cpolicies\u003E\r\n\t\u003Cinbound /\u003E\r\n\t\u003Cbackend\u003E\r\n\t\t\u003Cforward-request /\u003E\r\n\t\u003C/backend\u003E\r\n\t\u003Coutbound /\u003E\r\n\u003C/policies\u003E" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/policies?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 17:52:16 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T175217Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/policies/policy", - "type": "Microsoft.ApiManagement/service/policies", - "name": "policy", - "properties": { - "value": "\u003Cpolicies\u003E\r\n \u003Cinbound /\u003E\r\n \u003Cbackend\u003E\r\n \u003Cforward-request /\u003E\r\n \u003C/backend\u003E\r\n \u003Coutbound /\u003E\r\n\u003C/policies\u003E", - "format": "xml" - } - } - ], - "count": 1 - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/policies/policy?api-version=2021-08-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "If-Match": "*", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 17:52:18 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14997", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T175218Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/policyDescriptions?api-version=2021-08-01\u0026scope=Api", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 17:52:19 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T175219Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/policyDescriptions/authentication-basic", - "type": "Microsoft.ApiManagement/service/policyDescriptions", - "name": "authentication-basic", - "properties": { - "description": "Authenticate with the backend service using Basic authentication. Use in the inbound section at API scope.", - "scope": 268435519 - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/policyDescriptions/authentication-certificate", - "type": "Microsoft.ApiManagement/service/policyDescriptions", - "name": "authentication-certificate", - "properties": { - "description": "Authenticate with the backend service using a client certificate. Use in the inbound section at API scope.", - "scope": 268435519 - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/policyDescriptions/authentication-managed-identity", - "type": "Microsoft.ApiManagement/service/policyDescriptions", - "name": "authentication-managed-identity", - "properties": { - "description": "Authenticate backend with managed identity OAuth2 token. This can be used to access OAuth protected services.", - "scope": 268435519 - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/policyDescriptions/cache-lookup", - "type": "Microsoft.ApiManagement/service/policyDescriptions", - "name": "cache-lookup", - "properties": { - "description": "Perform cache lookup and return a valid cached response when available. Appropriately respond to cache validation requests from callers. Use anywhere in the inbound section at Product, API, or Operation scopes.", - "scope": 268435519 - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/policyDescriptions/cache-lookup-value", - "type": "Microsoft.ApiManagement/service/policyDescriptions", - "name": "cache-lookup-value", - "properties": { - "description": "Perform cache lookup and returned value under the key, if available, or default. If value is not present and no default is specified, variable will not be set. Use at any scope in any section except \u003Cbackend\u003E.", - "scope": 268435519 - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/policyDescriptions/cache-remove-value", - "type": "Microsoft.ApiManagement/service/policyDescriptions", - "name": "cache-remove-value", - "properties": { - "description": "Remove value from cache under the key. Use at any scope in any section except \u003Cbackend\u003E.", - "scope": 268435519 - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/policyDescriptions/cache-store", - "type": "Microsoft.ApiManagement/service/policyDescriptions", - "name": "cache-store", - "properties": { - "description": "Cache responses according to the specified cache configuration. Use anywhere in the outbound section at Product, API, or Operation scopes.", - "scope": 268435519 - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/policyDescriptions/cache-store-value", - "type": "Microsoft.ApiManagement/service/policyDescriptions", - "name": "cache-store-value", - "properties": { - "description": "Store value in cache under a key for duration. Use at any scope in any section except \u003Cbackend\u003E.", - "scope": 268435519 - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/policyDescriptions/check-header", - "type": "Microsoft.ApiManagement/service/policyDescriptions", - "name": "check-header", - "properties": { - "description": "Check header and return specified HTTP status code if it doesn\u0027t exist or match expected value. Works for both response and request headers \u2013 policy can be applied in inbound or outbound sections at any scope.", - "scope": 268435519 - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/policyDescriptions/choose", - "type": "Microsoft.ApiManagement/service/policyDescriptions", - "name": "choose", - "properties": { - "description": "Conditionally apply policy statements based on the results of the evaluation of Boolean expressions. Use at any scope in the inbound and outbound sections.", - "scope": 268435519 - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/policyDescriptions/cors", - "type": "Microsoft.ApiManagement/service/policyDescriptions", - "name": "cors", - "properties": { - "description": "CORS stands for cross-origin resource sharing. Add CORS support to an operation or an API to allow cross-domain calls from browser-based clients. Use in the inbound section only.", - "scope": 268435519 - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/policyDescriptions/emit-metric", - "type": "Microsoft.ApiManagement/service/policyDescriptions", - "name": "emit-metric", - "properties": { - "description": "Emits custom metric to Application Insights", - "scope": 268435519 - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/policyDescriptions/find-and-replace", - "type": "Microsoft.ApiManagement/service/policyDescriptions", - "name": "find-and-replace", - "properties": { - "description": "Find a request or response substring and replace it with a different substring. Use in the inbound and outbound sections at any scope.", - "scope": 268435519 - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/policyDescriptions/forward-request", - "type": "Microsoft.ApiManagement/service/policyDescriptions", - "name": "forward-request", - "properties": { - "description": "Forward request to the backend service using information in the context and receive a response, waiting no longer then specified timeout value. Use at any scope in the backend section.", - "scope": 268435519 - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/policyDescriptions/invoke-dapr-binding", - "type": "Microsoft.ApiManagement/service/policyDescriptions", - "name": "invoke-dapr-binding", - "properties": { - "description": "Use API Management as a dapr output binding app", - "scope": 268435519 - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/policyDescriptions/invoke-request", - "type": "Microsoft.ApiManagement/service/policyDescriptions", - "name": "invoke-request", - "properties": { - "description": "Redirect incoming request to a different gateway URI restarting request processing.", - "scope": 268435519 - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/policyDescriptions/ip-filter", - "type": "Microsoft.ApiManagement/service/policyDescriptions", - "name": "ip-filter", - "properties": { - "description": "Allow calls only from specific IP addresses and/or address ranges. Forbid calls from specific IP addresses and/or address ranges. Use in the inbound section at any scope.", - "scope": 268435519 - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/policyDescriptions/jsonp", - "type": "Microsoft.ApiManagement/service/policyDescriptions", - "name": "jsonp", - "properties": { - "description": "Add support for JSONP to an operation or an API to allow cross-domain calls from JavaScript browser-based clients. Use in the outbound section only.", - "scope": 268435519 - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/policyDescriptions/json-to-xml", - "type": "Microsoft.ApiManagement/service/policyDescriptions", - "name": "json-to-xml", - "properties": { - "description": "Convert request or response body from JSON to XML. Use in the inbound or outbound sections at API or Operation scopes.", - "scope": 268435519 - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/policyDescriptions/limit-concurrency", - "type": "Microsoft.ApiManagement/service/policyDescriptions", - "name": "limit-concurrency", - "properties": { - "description": "Limit how many calls may be processed in parallel for the duration of this policy\u0027s body.", - "scope": 268435519 - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/policyDescriptions/log-to-eventhub", - "type": "Microsoft.ApiManagement/service/policyDescriptions", - "name": "log-to-eventhub", - "properties": { - "description": "Send custom messages to Event Hub. Use at any scope in the inbound or outbound sections.", - "scope": 268435519 - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/policyDescriptions/mock-response", - "type": "Microsoft.ApiManagement/service/policyDescriptions", - "name": "mock-response", - "properties": { - "description": "Mock response based on operation responses samples/schemas. Use at any scope in the inbound or outbound sections.", - "scope": 268435519 - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/policyDescriptions/proxy", - "type": "Microsoft.ApiManagement/service/policyDescriptions", - "name": "proxy", - "properties": { - "description": "Specify http proxy location and credentials.", - "scope": 268435519 - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/policyDescriptions/publish-to-dapr", - "type": "Microsoft.ApiManagement/service/policyDescriptions", - "name": "publish-to-dapr", - "properties": { - "description": "Publish messages through dapr\u0027s pub-sub feature. Other apps on dapr runtime can consume these messages if they are subscribed to the specific topic.", - "scope": 268435519 - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/policyDescriptions/quota-by-key", - "type": "Microsoft.ApiManagement/service/policyDescriptions", - "name": "quota-by-key", - "properties": { - "description": "Enforce a renewable or lifetime call volume and/or bandwidth quota per calculated key. Use in the inbound section at any scope.", - "scope": 268435519 - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/policyDescriptions/rate-limit", - "type": "Microsoft.ApiManagement/service/policyDescriptions", - "name": "rate-limit", - "properties": { - "description": "Arrest usage spikes by limiting calls and/or bandwidth consumption rate per subscription. Use in the inbound section at Product scope.", - "scope": 14 - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/policyDescriptions/rate-limit-by-key", - "type": "Microsoft.ApiManagement/service/policyDescriptions", - "name": "rate-limit-by-key", - "properties": { - "description": "Arrest usage spikes by limiting calls and/or bandwidth consumption rate per calculated key. Use in the inbound section at any scope.", - "scope": 268435519 - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/policyDescriptions/redirect-content-urls", - "type": "Microsoft.ApiManagement/service/policyDescriptions", - "name": "redirect-content-urls", - "properties": { - "description": "Use in the outbound section to re-write response body links and Location header values making them point to the proxy. Use in the inbound section for an opposite effect. Apply at API or Operation scopes.", - "scope": 268435519 - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/policyDescriptions/retry", - "type": "Microsoft.ApiManagement/service/policyDescriptions", - "name": "retry", - "properties": { - "description": "Retry execution of the enclosed policy statements, if and until the condition is met. Execution will repeat at the specified time interval, up to the specified count.", - "scope": 268435519 - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/policyDescriptions/return-response", - "type": "Microsoft.ApiManagement/service/policyDescriptions", - "name": "return-response", - "properties": { - "description": "Abort pipeline execution and return the specified response directly to the caller. Use at any scope in the inbound and outbound sections.", - "scope": 268435519 - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/policyDescriptions/rewrite-uri", - "type": "Microsoft.ApiManagement/service/policyDescriptions", - "name": "rewrite-uri", - "properties": { - "description": "Convert request URL from its public form to the form expected by the web service. Use anywhere in the inbound section at Operation scope only.", - "scope": 268435519 - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/policyDescriptions/send-one-way-request", - "type": "Microsoft.ApiManagement/service/policyDescriptions", - "name": "send-one-way-request", - "properties": { - "description": "Send provided request to the specified URL, without waiting for response. Use at any scope in the inbound and outbound sections.", - "scope": 268435519 - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/policyDescriptions/send-request", - "type": "Microsoft.ApiManagement/service/policyDescriptions", - "name": "send-request", - "properties": { - "description": "Send provided request to the specified URL, waiting no longer then set timeout value. Use at any scope in the inbound and outbound sections.", - "scope": 268435519 - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/policyDescriptions/set-backend-service", - "type": "Microsoft.ApiManagement/service/policyDescriptions", - "name": "set-backend-service", - "properties": { - "description": "Change backend service where the incoming calls will be directed. Use in the inbound section only at any scope.", - "scope": 268435519 - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/policyDescriptions/set-body", - "type": "Microsoft.ApiManagement/service/policyDescriptions", - "name": "set-body", - "properties": { - "description": "Set message body to a specific string value. The policy has no effect on the Content-Type header value. Use at any scope in the inbound or outbound sections.", - "scope": 268435519 - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/policyDescriptions/set-graphql-resolver", - "type": "Microsoft.ApiManagement/service/policyDescriptions", - "name": "set-graphql-resolver", - "properties": { - "description": "Set GraphQL resolver", - "scope": 268435519 - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/policyDescriptions/set-header", - "type": "Microsoft.ApiManagement/service/policyDescriptions", - "name": "set-header", - "properties": { - "description": "Add a new header, change the value of an existing header or remove a header. Works for both response and request headers \u2013 policy can be applied in inbound or outbound sections at any scope.", - "scope": 268435519 - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/policyDescriptions/set-method", - "type": "Microsoft.ApiManagement/service/policyDescriptions", - "name": "set-method", - "properties": { - "description": "Change HTTP method to the specified value", - "scope": 268435519 - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/policyDescriptions/set-query-parameter", - "type": "Microsoft.ApiManagement/service/policyDescriptions", - "name": "set-query-parameter", - "properties": { - "description": "Add a new query string parameter, change the value of an existing parameter or remove a parameter. Can be applied in the inbound section at any scope.", - "scope": 268435519 - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/policyDescriptions/set-request-metric-dimension-value", - "type": "Microsoft.ApiManagement/service/policyDescriptions", - "name": "set-request-metric-dimension-value", - "properties": { - "description": "Set custom dimension value for first party request mdm metric", - "scope": 268435519 - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/policyDescriptions/set-status", - "type": "Microsoft.ApiManagement/service/policyDescriptions", - "name": "set-status", - "properties": { - "description": "Change HTTP status code to the specified value. Use at any scope in the outbound sections.", - "scope": 268435519 - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/policyDescriptions/set-variable", - "type": "Microsoft.ApiManagement/service/policyDescriptions", - "name": "set-variable", - "properties": { - "description": "Persist a value in a named context variable for later access from expressions. Use at any scope in the inbound and outbound sections.", - "scope": 268435519 - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/policyDescriptions/trace", - "type": "Microsoft.ApiManagement/service/policyDescriptions", - "name": "trace", - "properties": { - "description": "Output information into trace logs (if request is executed with tracing enabled) or diagnsotic logs (if diagnostic is enabled).", - "scope": 268435519 - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/policyDescriptions/validate-azure-ad-token", - "type": "Microsoft.ApiManagement/service/policyDescriptions", - "name": "validate-azure-ad-token", - "properties": { - "description": "Check and validate a JWT issued by Azure AD in a header or query parameter. Use in the inbound section at any scope.", - "scope": 268435519 - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/policyDescriptions/validate-client-certificate", - "type": "Microsoft.ApiManagement/service/policyDescriptions", - "name": "validate-client-certificate", - "properties": { - "description": "Validate client certificate.", - "scope": 268435519 - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/policyDescriptions/validate-content", - "type": "Microsoft.ApiManagement/service/policyDescriptions", - "name": "validate-content", - "properties": { - "description": "Validate content against OpenApi schema", - "scope": 268435519 - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/policyDescriptions/validate-graphql-request", - "type": "Microsoft.ApiManagement/service/policyDescriptions", - "name": "validate-graphql-request", - "properties": { - "description": "Validate GraphQL request", - "scope": 268435519 - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/policyDescriptions/validate-headers", - "type": "Microsoft.ApiManagement/service/policyDescriptions", - "name": "validate-headers", - "properties": { - "description": "Validate response headers against OpenApi schema", - "scope": 268435519 - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/policyDescriptions/validate-jwt", - "type": "Microsoft.ApiManagement/service/policyDescriptions", - "name": "validate-jwt", - "properties": { - "description": "Check and validate a JWT in a header or query parameter. Use in the inbound section at any scope.", - "scope": 268435519 - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/policyDescriptions/validate-parameters", - "type": "Microsoft.ApiManagement/service/policyDescriptions", - "name": "validate-parameters", - "properties": { - "description": "Validate parameters against OpenApi schema", - "scope": 268435519 - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/policyDescriptions/validate-status-code", - "type": "Microsoft.ApiManagement/service/policyDescriptions", - "name": "validate-status-code", - "properties": { - "description": "Validate response status code against OpenApi schema", - "scope": 268435519 - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/policyDescriptions/wait", - "type": "Microsoft.ApiManagement/service/policyDescriptions", - "name": "wait", - "properties": { - "description": "Wait for all or any of the send request policies to complete before proceeding. Use at any scope in the inbound and outbound sections.", - "scope": 268435519 - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/policyDescriptions/xml-to-json", - "type": "Microsoft.ApiManagement/service/policyDescriptions", - "name": "xml-to-json", - "properties": { - "description": "Convert request or response body from XML to either \u0022JSON friendly\u0022 or \u0022XML faithful\u0022 form of JSON. Use in the inbound or outbound sections at API or Operation scopes.", - "scope": 268435519 - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicepolicysdGYeN/policyDescriptions/xsl-transform", - "type": "Microsoft.ApiManagement/service/policyDescriptions", - "name": "xsl-transform", - "properties": { - "description": "Transform request or response body using XSLTransform. Use in the inbound, outbound and on-error sections at any scope.", - "scope": 268435519 - } - } - ], - "count": 54 - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 17:52:23 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQxMDktV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14996", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T175223Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": { - "recordingRandomSeed": "1666342412" - } -} diff --git a/sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimportalrevisionsTestSuite.json b/sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimportalrevisionsTestSuite.json deleted file mode 100644 index 8d2ff7801ce0..000000000000 --- a/sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimportalrevisionsTestSuite.json +++ /dev/null @@ -1,1717 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 17:52:27 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1194", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T175227Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "westus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN?api-version=2021-08-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "172", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus", - "properties": { - "publisherEmail": "foo@contoso.com", - "publisherName": "foo" - }, - "sku": { - "capacity": 1, - "name": "Standard" - }, - "tags": { - "Name": "Contoso", - "Test": "User" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "1774", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 17:52:35 GMT", - "ETag": "\u0022AAAAAAA911Y=\u0022", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1193", - "x-ms-request-id": [ - "00000000-0000-0000-0000-000000000000", - "d89cc400-f1ff-46f5-88fd-e566e9aaf9ca" - ], - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T175235Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN", - "name": "servicerevisionsdGYeN", - "type": "Microsoft.ApiManagement/service", - "tags": { - "Name": "Contoso", - "Test": "User" - }, - "location": "West US", - "etag": "AAAAAAA911Y=", - "properties": { - "publisherEmail": "foo@contoso.com", - "publisherName": "foo", - "notificationSenderEmail": "apimgmt-noreply@mail.windowsazure.com", - "provisioningState": "Created", - "targetProvisioningState": "Activating", - "createdAtUtc": "2022-10-21T17:52:30.4830017Z", - "gatewayUrl": "https://servicerevisionsdgyen.azure-api.net", - "gatewayRegionalUrl": null, - "portalUrl": null, - "developerPortalUrl": null, - "managementApiUrl": null, - "scmUrl": null, - "hostnameConfigurations": [ - { - "type": "Proxy", - "hostName": "servicerevisionsdgyen.azure-api.net", - "encodedCertificate": null, - "keyVaultId": null, - "certificatePassword": null, - "negotiateClientCertificate": false, - "certificate": null, - "defaultSslBinding": true, - "identityClientId": null, - "certificateSource": "BuiltIn", - "certificateStatus": null - } - ], - "publicIPAddresses": null, - "privateIPAddresses": null, - "additionalLocations": null, - "virtualNetworkConfiguration": null, - "customProperties": null, - "virtualNetworkType": "None", - "certificates": null, - "disableGateway": false, - "apiVersionConstraint": { - "minApiVersion": null - }, - "publicIpAddressId": null, - "publicNetworkAccess": "Enabled", - "privateEndpointConnections": null, - "platformVersion": "undetermined" - }, - "sku": { - "name": "Standard", - "capacity": 1 - }, - "identity": null, - "zones": null, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-21T17:52:30.3752705Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-21T17:52:30.3752705Z" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 17:53:36 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T175336Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 17:54:37 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11930", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T175437Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 17:55:38 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T175538Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 17:56:39 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T175639Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 17:57:39 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T175740Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 17:58:40 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T175841Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 17:59:41 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11930", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T175942Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 18:00:43 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T180043Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 18:01:44 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T180144Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 18:02:45 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T180245Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 18:03:46 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T180346Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 18:04:47 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11930", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T180447Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 18:05:47 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T180548Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 18:06:49 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T180649Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 18:07:50 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T180750Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 18:08:51 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T180851Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 18:09:51 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11930", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T180952Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 18:10:53 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11936", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T181053Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 18:11:54 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T181154Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 18:12:55 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T181255Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 18:13:56 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T181357Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 18:14:57 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T181457Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 18:15:58 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11936", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T181558Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 18:16:59 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T181659Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 18:18:00 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T181801Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 18:19:01 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T181902Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 18:20:02 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11937", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T182003Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 18:21:03 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11936", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T182104Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 18:22:04 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T182205Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 18:23:05 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T182306Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 18:24:06 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T182407Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 18:25:07 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11937", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T182508Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 18:26:09 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11936", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T182609Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 18:27:10 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T182710Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 18:28:11 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T182811Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 18:29:12 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T182913Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 18:30:13 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11937", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T183014Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 18:31:14 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11936", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T183115Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 18:32:15 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T183216Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 18:33:16 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T183317Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 18:34:18 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T183418Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXZpc2lvbnNkR1llTl9BY3RfZTRiNWE4MmI=?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 18:35:19 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11937", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T183520Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN", - "name": "servicerevisionsdGYeN", - "type": "Microsoft.ApiManagement/service", - "tags": { - "Name": "Contoso", - "Test": "User" - }, - "location": "West US", - "etag": "AAAAAAA92Ac=", - "properties": { - "publisherEmail": "foo@contoso.com", - "publisherName": "foo", - "notificationSenderEmail": "apimgmt-noreply@mail.windowsazure.com", - "provisioningState": "Succeeded", - "targetProvisioningState": "", - "createdAtUtc": "2022-10-21T17:52:30.4830017Z", - "gatewayUrl": "https://servicerevisionsdgyen.azure-api.net", - "gatewayRegionalUrl": "https://servicerevisionsdgyen-westus-01.regional.azure-api.net", - "portalUrl": "https://servicerevisionsdgyen.portal.azure-api.net", - "developerPortalUrl": "https://servicerevisionsdgyen.developer.azure-api.net", - "managementApiUrl": "https://servicerevisionsdgyen.management.azure-api.net", - "scmUrl": "https://servicerevisionsdgyen.scm.azure-api.net", - "hostnameConfigurations": [ - { - "type": "Proxy", - "hostName": "servicerevisionsdgyen.azure-api.net", - "encodedCertificate": null, - "keyVaultId": null, - "certificatePassword": null, - "negotiateClientCertificate": false, - "certificate": null, - "defaultSslBinding": true, - "identityClientId": null, - "certificateSource": "BuiltIn", - "certificateStatus": null - } - ], - "publicIPAddresses": [ - "20.245.239.111" - ], - "privateIPAddresses": null, - "additionalLocations": null, - "virtualNetworkConfiguration": null, - "customProperties": { - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Ssl30": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TripleDes168": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls10": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls11": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Ssl30": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Protocols.Server.Http2": "False" - }, - "virtualNetworkType": "None", - "certificates": null, - "disableGateway": false, - "apiVersionConstraint": { - "minApiVersion": null - }, - "publicIpAddressId": null, - "publicNetworkAccess": "Enabled", - "privateEndpointConnections": null, - "platformVersion": "stv2" - }, - "sku": { - "name": "Standard", - "capacity": 1 - }, - "identity": null, - "zones": null, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-21T17:52:30.3752705Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-21T17:52:30.3752705Z" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/portalRevisions/portalrevisdGYeN?api-version=2021-08-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "67", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "description": "portal revision 1", - "isCurrent": true - } - }, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 18:35:24 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/portalRevisions/portalrevisdGYeN?api-version=2021-08-01\u0026asyncId=6352e66c217d2018445e298e\u0026asyncCode=201", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1196", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T183525Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/portalRevisions/portalrevisdGYeN?api-version=2021-08-01\u0026asyncId=6352e66c217d2018445e298e\u0026asyncCode=201", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 18:35:24 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/portalRevisions/portalrevisdGYeN?api-version=2021-08-01\u0026asyncId=6352e66c217d2018445e298e\u0026asyncCode=201", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11936", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T183525Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/portalRevisions/portalrevisdGYeN?api-version=2021-08-01\u0026asyncId=6352e66c217d2018445e298e\u0026asyncCode=201", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "534", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 18:35:56 GMT", - "ETag": "\u0022AAAAAAAACSU=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T183556Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/portalRevisions/portalrevisdGYeN", - "type": "Microsoft.ApiManagement/service/portalRevisions", - "name": "portalrevisdGYeN", - "properties": { - "description": "portal revision 1", - "statusDetails": null, - "status": "failed", - "isCurrent": false, - "createdDateTime": "2022-10-21T18:35:21.947Z", - "updatedDateTime": "2022-10-21T18:35:50.973Z" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/portalRevisions/portalrevisdGYeN?api-version=2021-08-01", - "RequestMethod": "HEAD", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 18:35:56 GMT", - "ETag": "\u0022AAAAAAAACSU=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T183557Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/portalRevisions?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 18:35:58 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T183558Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/portalRevisions/portalrevisdGYeN", - "type": "Microsoft.ApiManagement/service/portalRevisions", - "name": "portalrevisdGYeN", - "properties": { - "description": "portal revision 1", - "statusDetails": null, - "status": "failed", - "isCurrent": false, - "createdDateTime": "2022-10-21T18:35:21.947Z", - "updatedDateTime": "2022-10-21T18:35:50.973Z" - } - } - ], - "count": 1 - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/portalRevisions/portalrevisdGYeN?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 18:35:58 GMT", - "ETag": "\u0022AAAAAAAACSU=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T183559Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/portalRevisions/portalrevisdGYeN", - "type": "Microsoft.ApiManagement/service/portalRevisions", - "name": "portalrevisdGYeN", - "properties": { - "description": "portal revision 1", - "statusDetails": null, - "status": "failed", - "isCurrent": false, - "createdDateTime": "2022-10-21T18:35:21.947Z", - "updatedDateTime": "2022-10-21T18:35:50.973Z" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/portalRevisions/portalrevisdGYeN?api-version=2021-08-01", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "55", - "Content-Type": "application/json", - "If-Match": "*", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "description": "portal revision update" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 18:35:59 GMT", - "ETag": "\u0022AAAAAAAACSY=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1195", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T183600Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicerevisionsdGYeN/portalRevisions/portalrevisdGYeN", - "type": "Microsoft.ApiManagement/service/portalRevisions", - "name": "portalrevisdGYeN", - "properties": { - "description": "portal revision update", - "statusDetails": null, - "status": "failed", - "isCurrent": false, - "createdDateTime": "2022-10-21T18:35:21.947Z", - "updatedDateTime": "2022-10-21T18:35:50.973Z" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 18:36:03 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ0ODYtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14997", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T183603Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": { - "recordingRandomSeed": "1666342412" - } -} diff --git a/sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimportalsettingsTestSuite.json b/sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimportalsettingsTestSuite.json deleted file mode 100644 index 43758af70831..000000000000 --- a/sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimportalsettingsTestSuite.json +++ /dev/null @@ -1,1881 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 18:36:06 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1194", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T183606Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "westus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN?api-version=2021-08-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "172", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus", - "properties": { - "publisherEmail": "foo@contoso.com", - "publisherName": "foo" - }, - "sku": { - "capacity": 1, - "name": "Standard" - }, - "tags": { - "Name": "Contoso", - "Test": "User" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "1770", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 18:36:13 GMT", - "ETag": "\u0022AAAAAAA92BA=\u0022", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1193", - "x-ms-request-id": [ - "00000000-0000-0000-0000-000000000000", - "623eb4fb-bf86-4e47-8fe0-6da58fead999" - ], - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T183614Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN", - "name": "servicesettingsdGYeN", - "type": "Microsoft.ApiManagement/service", - "tags": { - "Name": "Contoso", - "Test": "User" - }, - "location": "West US", - "etag": "AAAAAAA92BA=", - "properties": { - "publisherEmail": "foo@contoso.com", - "publisherName": "foo", - "notificationSenderEmail": "apimgmt-noreply@mail.windowsazure.com", - "provisioningState": "Created", - "targetProvisioningState": "Activating", - "createdAtUtc": "2022-10-21T18:36:09.8168842Z", - "gatewayUrl": "https://servicesettingsdgyen.azure-api.net", - "gatewayRegionalUrl": null, - "portalUrl": null, - "developerPortalUrl": null, - "managementApiUrl": null, - "scmUrl": null, - "hostnameConfigurations": [ - { - "type": "Proxy", - "hostName": "servicesettingsdgyen.azure-api.net", - "encodedCertificate": null, - "keyVaultId": null, - "certificatePassword": null, - "negotiateClientCertificate": false, - "certificate": null, - "defaultSslBinding": true, - "identityClientId": null, - "certificateSource": "BuiltIn", - "certificateStatus": null - } - ], - "publicIPAddresses": null, - "privateIPAddresses": null, - "additionalLocations": null, - "virtualNetworkConfiguration": null, - "customProperties": null, - "virtualNetworkType": "None", - "certificates": null, - "disableGateway": false, - "apiVersionConstraint": { - "minApiVersion": null - }, - "publicIpAddressId": null, - "publicNetworkAccess": "Enabled", - "privateEndpointConnections": null, - "platformVersion": "undetermined" - }, - "sku": { - "name": "Standard", - "capacity": 1 - }, - "identity": null, - "zones": null, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-21T18:36:09.6988919Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-21T18:36:09.6988919Z" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 18:37:14 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T183715Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 18:38:15 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11930", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T183816Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 18:39:16 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11929", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T183917Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 18:40:17 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T184017Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 18:41:18 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T184118Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 18:42:19 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T184220Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 18:43:20 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11930", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T184321Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 18:44:21 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11929", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T184421Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 18:45:21 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T184522Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 18:46:22 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T184623Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 18:47:24 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11930", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T184724Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 18:48:24 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11929", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T184825Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 18:49:25 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11928", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T184926Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 18:50:26 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T185027Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 18:51:28 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T185128Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 18:52:29 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11930", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T185229Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 18:53:30 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11929", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T185330Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 18:54:31 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11928", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T185431Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 18:55:32 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11936", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T185533Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 18:56:33 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T185634Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 18:57:34 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T185735Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 18:58:35 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T185836Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 18:59:36 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T185937Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 19:00:37 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11936", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T190038Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 19:01:39 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T190139Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 19:02:39 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T190240Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 19:03:40 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T190341Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 19:04:41 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T190442Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 19:05:43 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11936", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T190543Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 19:06:43 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T190644Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 19:07:45 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T190745Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 19:08:45 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T190846Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 19:09:46 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T190947Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 19:10:47 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11936", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T191048Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 19:11:48 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T191149Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 19:12:49 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T191250Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 19:13:51 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T191351Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 19:14:52 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T191452Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 19:15:53 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11936", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T191554Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 19:16:54 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T191655Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 19:17:55 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T191756Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 19:18:56 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T191857Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzZXR0aW5nc2RHWWVOX0FjdF85OTYyYTY3YQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 19:19:57 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T191958Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN", - "name": "servicesettingsdGYeN", - "type": "Microsoft.ApiManagement/service", - "tags": { - "Name": "Contoso", - "Test": "User" - }, - "location": "West US", - "etag": "AAAAAAA92JI=", - "properties": { - "publisherEmail": "foo@contoso.com", - "publisherName": "foo", - "notificationSenderEmail": "apimgmt-noreply@mail.windowsazure.com", - "provisioningState": "Succeeded", - "targetProvisioningState": "", - "createdAtUtc": "2022-10-21T18:36:09.8168842Z", - "gatewayUrl": "https://servicesettingsdgyen.azure-api.net", - "gatewayRegionalUrl": "https://servicesettingsdgyen-westus-01.regional.azure-api.net", - "portalUrl": "https://servicesettingsdgyen.portal.azure-api.net", - "developerPortalUrl": "https://servicesettingsdgyen.developer.azure-api.net", - "managementApiUrl": "https://servicesettingsdgyen.management.azure-api.net", - "scmUrl": "https://servicesettingsdgyen.scm.azure-api.net", - "hostnameConfigurations": [ - { - "type": "Proxy", - "hostName": "servicesettingsdgyen.azure-api.net", - "encodedCertificate": null, - "keyVaultId": null, - "certificatePassword": null, - "negotiateClientCertificate": false, - "certificate": null, - "defaultSslBinding": true, - "identityClientId": null, - "certificateSource": "BuiltIn", - "certificateStatus": null - } - ], - "publicIPAddresses": [ - "20.245.217.94" - ], - "privateIPAddresses": null, - "additionalLocations": null, - "virtualNetworkConfiguration": null, - "customProperties": { - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Ssl30": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TripleDes168": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls10": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls11": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Ssl30": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Protocols.Server.Http2": "False" - }, - "virtualNetworkType": "None", - "certificates": null, - "disableGateway": false, - "apiVersionConstraint": { - "minApiVersion": null - }, - "publicIpAddressId": null, - "publicNetworkAccess": "Enabled", - "privateEndpointConnections": null, - "platformVersion": "stv2" - }, - "sku": { - "name": "Standard", - "capacity": 1 - }, - "identity": null, - "zones": null, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-21T18:36:09.6988919Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-21T18:36:09.6988919Z" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/portalsettings?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 19:20:00 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T192000Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/portalsettings/delegation", - "type": "Microsoft.ApiManagement/service/portalsettings", - "name": "delegation", - "properties": { - "url": "", - "validationKey": null, - "subscriptions": { - "enabled": false - }, - "userRegistration": { - "enabled": false - }, - "enabled": false, - "termsOfService": null - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/portalsettings/signin", - "type": "Microsoft.ApiManagement/service/portalsettings", - "name": "signin", - "properties": { - "url": null, - "validationKey": null, - "subscriptions": null, - "userRegistration": null, - "enabled": false, - "termsOfService": null - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/portalsettings/signup", - "type": "Microsoft.ApiManagement/service/portalsettings", - "name": "signup", - "properties": { - "url": null, - "validationKey": null, - "subscriptions": null, - "userRegistration": null, - "enabled": true, - "termsOfService": { - "text": null, - "enabled": false, - "consentRequired": false - } - } - } - ], - "count": 3 - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/portalsettings/signin?api-version=2021-08-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "31", - "Content-Type": "application/json", - "If-Match": "*", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "enabled": true - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 19:20:02 GMT", - "ETag": "\u0022AAAAAAAACSU=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1194", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T192003Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/portalsettings/signin", - "type": "Microsoft.ApiManagement/service/portalsettings", - "name": "signin", - "properties": { - "url": null, - "validationKey": null, - "subscriptions": null, - "userRegistration": null, - "enabled": true, - "termsOfService": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/portalsettings/signin?api-version=2021-08-01", - "RequestMethod": "HEAD", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 19:20:03 GMT", - "ETag": "\u0022AAAAAAAACSUAAAAAAAAAAA==\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T192003Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/portalsettings/signin?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 19:20:03 GMT", - "ETag": "\u0022AAAAAAAACSU=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T192004Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/portalsettings/signin", - "type": "Microsoft.ApiManagement/service/portalsettings", - "name": "signin", - "properties": { - "url": null, - "validationKey": null, - "subscriptions": null, - "userRegistration": null, - "enabled": true, - "termsOfService": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/portalsettings/signin?api-version=2021-08-01", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "31", - "Content-Type": "application/json", - "If-Match": "*", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "enabled": true - } - }, - "StatusCode": 204, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Date": "Fri, 21 Oct 2022 19:20:04 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1193", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T192005Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/portalsettings/signup?api-version=2021-08-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "120", - "Content-Type": "application/json", - "If-Match": "*", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "enabled": true, - "termsOfService": { - "consentRequired": true, - "enabled": true, - "text": "Terms of service text." - } - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 19:20:05 GMT", - "ETag": "\u0022AAAAAAAAISP9PAAAAAAAAA==\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1192", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T192005Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/portalsettings/signup", - "type": "Microsoft.ApiManagement/service/portalsettings", - "name": "signup", - "properties": { - "url": null, - "validationKey": null, - "subscriptions": null, - "userRegistration": null, - "enabled": true, - "termsOfService": { - "text": "Terms of service text.", - "enabled": true, - "consentRequired": true - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/portalsettings/signup?api-version=2021-08-01", - "RequestMethod": "HEAD", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 19:20:05 GMT", - "ETag": "\u0022AAAAAAAAISP9PAAAAAAAAA==\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T192006Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/portalsettings/signup?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 19:20:06 GMT", - "ETag": "\u0022AAAAAAAAISP9PAAAAAAAAA==\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T192006Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/portalsettings/signup", - "type": "Microsoft.ApiManagement/service/portalsettings", - "name": "signup", - "properties": { - "url": null, - "validationKey": null, - "subscriptions": null, - "userRegistration": null, - "enabled": true, - "termsOfService": { - "text": "Terms of service text.", - "enabled": true, - "consentRequired": true - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesettingsdGYeN/portalsettings/signup?api-version=2021-08-01", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "120", - "Content-Type": "application/json", - "If-Match": "*", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "enabled": true, - "termsOfService": { - "consentRequired": true, - "enabled": true, - "text": "Terms of service text." - } - } - }, - "StatusCode": 204, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Date": "Fri, 21 Oct 2022 19:20:06 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1191", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T192007Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 19:20:10 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQxNi1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14998", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T192011Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": { - "recordingRandomSeed": "1666342412" - } -} diff --git a/sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimprivatelinkTestSuite.json b/sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimprivatelinkTestSuite.json deleted file mode 100644 index ca4344a70339..000000000000 --- a/sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimprivatelinkTestSuite.json +++ /dev/null @@ -1,1371 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 18:36:06 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1194", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T183606Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "westus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceprivatesdGYeN?api-version=2021-08-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "172", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus", - "properties": { - "publisherEmail": "foo@contoso.com", - "publisherName": "foo" - }, - "sku": { - "capacity": 1, - "name": "Standard" - }, - "tags": { - "Name": "Contoso", - "Test": "User" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "1752", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 08:53:48 GMT", - "ETag": "\u0022AAAAAAA90G4=\u0022", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceprivatesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-request-id": [ - "00000000-0000-0000-0000-000000000000", - "28753cb2-10c5-4c6c-a1b2-8a348b0a6eb1" - ], - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T085348Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceprivatesdGYeN", - "name": "serviceprivatesdGYeN", - "type": "Microsoft.ApiManagement/service", - "tags": { - "Name": "Contoso", - "Test": "User" - }, - "location": "West US", - "etag": "AAAAAAA90G4=", - "properties": { - "publisherEmail": "foo@contoso.com", - "publisherName": "foo", - "notificationSenderEmail": "apimgmt-noreply@mail.windowsazure.com", - "provisioningState": "Created", - "targetProvisioningState": "Activating", - "createdAtUtc": "2022-10-21T08:53:43.6265935Z", - "gatewayUrl": "https://serviceprivatesdGYeN.azure-api.net", - "gatewayRegionalUrl": null, - "portalUrl": null, - "developerPortalUrl": null, - "managementApiUrl": null, - "scmUrl": null, - "hostnameConfigurations": [ - { - "type": "Proxy", - "hostName": "serviceprivatesdGYeN.azure-api.net", - "encodedCertificate": null, - "keyVaultId": null, - "certificatePassword": null, - "negotiateClientCertificate": false, - "certificate": null, - "defaultSslBinding": true, - "identityClientId": null, - "certificateSource": "BuiltIn", - "certificateStatus": null - } - ], - "publicIPAddresses": null, - "privateIPAddresses": null, - "additionalLocations": null, - "virtualNetworkConfiguration": null, - "customProperties": null, - "virtualNetworkType": "None", - "certificates": null, - "disableGateway": false, - "apiVersionConstraint": { - "minApiVersion": null - }, - "publicIpAddressId": null, - "publicNetworkAccess": "Enabled", - "privateEndpointConnections": null, - "platformVersion": "undetermined" - }, - "sku": { - "name": "Standard", - "capacity": 1 - }, - "identity": null, - "zones": null, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-21T08:53:42.861642Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-21T08:53:42.861642Z" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceprivatesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 09:34:41 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceprivatesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11962", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T093441Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceprivatesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 09:35:42 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceprivatesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11961", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T093542Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceprivatesdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VuYW1zZEdZZU5fQWN0X2ZmOGQzN2U3?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 09:36:43 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11960", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T093643Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceprivatesdGYeN", - "name": "serviceprivatesdGYeN", - "type": "Microsoft.ApiManagement/service", - "tags": { - "Name": "Contoso", - "Test": "User" - }, - "location": "West US", - "etag": "AAAAAAA90OY=", - "properties": { - "publisherEmail": "foo@contoso.com", - "publisherName": "foo", - "notificationSenderEmail": "apimgmt-noreply@mail.windowsazure.com", - "provisioningState": "Succeeded", - "targetProvisioningState": "", - "createdAtUtc": "2022-10-21T08:53:43.6265935Z", - "gatewayUrl": "https://serviceprivatesdGYeN.azure-api.net", - "gatewayRegionalUrl": "https://serviceprivatesdGYeN-westus-01.regional.azure-api.net", - "portalUrl": "https://serviceprivatesdGYeN.portal.azure-api.net", - "developerPortalUrl": "https://serviceprivatesdGYeN.developer.azure-api.net", - "managementApiUrl": "https://serviceprivatesdGYeN.management.azure-api.net", - "scmUrl": "https://serviceprivatesdGYeN.scm.azure-api.net", - "hostnameConfigurations": [ - { - "type": "Proxy", - "hostName": "serviceprivatesdGYeN.azure-api.net", - "encodedCertificate": null, - "keyVaultId": null, - "certificatePassword": null, - "negotiateClientCertificate": false, - "certificate": null, - "defaultSslBinding": true, - "identityClientId": null, - "certificateSource": "BuiltIn", - "certificateStatus": null - } - ], - "publicIPAddresses": [ - "20.237.229.170" - ], - "privateIPAddresses": null, - "additionalLocations": null, - "virtualNetworkConfiguration": null, - "customProperties": { - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Ssl30": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TripleDes168": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls10": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls11": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Ssl30": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Protocols.Server.Http2": "False" - }, - "virtualNetworkType": "None", - "certificates": null, - "disableGateway": false, - "apiVersionConstraint": { - "minApiVersion": null - }, - "publicIpAddressId": null, - "publicNetworkAccess": "Enabled", - "privateEndpointConnections": null, - "platformVersion": "stv2" - }, - "sku": { - "name": "Standard", - "capacity": 1 - }, - "identity": null, - "zones": null, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-21T08:53:42.861642Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-21T08:53:42.861642Z" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/PrivateEndpoint_Create?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "3136", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "mode": "Incremental", - "parameters": { - "apimId": { - "value": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceprivatesdGYeN" - }, - "location": { - "value": "westus" - }, - "privateEndpointConnectionName": { - "value": "apimprivateendpointsdGYeN" - }, - "virtualNetworksName": { - "value": "apimvnetsdGYeN" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "apimId": { - "defaultValue": "$(apimId)", - "type": "string" - }, - "location": { - "defaultValue": "$(location)", - "type": "string" - }, - "privateEndpointConnectionName": { - "defaultValue": "$(privateEndpointConnectionName)", - "type": "string" - }, - "virtualNetworksName": { - "defaultValue": "$(virtualNetworksName)", - "type": "string" - } - }, - "resources": [ - { - "apiVersion": "2020-11-01", - "location": "[parameters(\u0027location\u0027)]", - "name": "[parameters(\u0027virtualNetworksName\u0027)]", - "properties": { - "addressSpace": { - "addressPrefixes": [ - "10.0.0.0/16" - ] - }, - "enableDdosProtection": false, - "subnets": [ - { - "name": "default", - "properties": { - "addressPrefix": "10.0.0.0/24", - "delegations": [], - "privateEndpointNetworkPolicies": "Disabled", - "privateLinkServiceNetworkPolicies": "Enabled" - } - } - ], - "virtualNetworkPeerings": [] - }, - "type": "Microsoft.Network/virtualNetworks" - }, - { - "apiVersion": "2020-11-01", - "dependsOn": [ - "[resourceId(\u0027Microsoft.Network/virtualNetworks/subnets\u0027, parameters(\u0027virtualNetworksName\u0027), \u0027default\u0027)]" - ], - "location": "[parameters(\u0027location\u0027)]", - "name": "[concat(parameters(\u0027privateEndpointConnectionName\u0027), \u0027-nic\u0027)]", - "properties": { - "dnsSettings": { - "dnsServers": [] - }, - "enableIPForwarding": false, - "ipConfigurations": [ - { - "name": "privateEndpointIpConfig", - "properties": { - "primary": true, - "privateIPAddress": "10.0.0.4", - "privateIPAddressVersion": "IPv4", - "privateIPAllocationMethod": "Dynamic", - "subnet": { - "id": "[resourceId(\u0027Microsoft.Network/virtualNetworks/subnets\u0027, parameters(\u0027virtualNetworksName\u0027), \u0027default\u0027)]" - } - } - } - ] - }, - "type": "Microsoft.Network/networkInterfaces" - }, - { - "apiVersion": "2020-11-01", - "dependsOn": [ - "[resourceId(\u0027Microsoft.Network/virtualNetworks/subnets\u0027, parameters(\u0027virtualNetworksName\u0027), \u0027default\u0027)]" - ], - "location": "[parameters(\u0027location\u0027)]", - "name": "[parameters(\u0027privateEndpointConnectionName\u0027)]", - "properties": { - "customDnsConfigs": [], - "manualPrivateLinkServiceConnections": [], - "privateLinkServiceConnections": [ - { - "name": "[parameters(\u0027privateEndpointConnectionName\u0027)]", - "properties": { - "groupIds": [ - "Gateway" - ], - "privateLinkServiceConnectionState": { - "actionsRequired": "None", - "description": "Auto-Approved", - "status": "Approved" - }, - "privateLinkServiceId": "[parameters(\u0027apimId\u0027)]" - } - } - ], - "subnet": { - "id": "[resourceId(\u0027Microsoft.Network/virtualNetworks/subnets\u0027, parameters(\u0027virtualNetworksName\u0027), \u0027default\u0027)]" - } - }, - "type": "Microsoft.Network/privateEndpoints" - }, - { - "apiVersion": "2020-11-01", - "dependsOn": [ - "[resourceId(\u0027Microsoft.Network/virtualNetworks\u0027, parameters(\u0027virtualNetworksName\u0027))]" - ], - "name": "[concat(parameters(\u0027virtualNetworksName\u0027), \u0027/default\u0027)]", - "properties": { - "addressPrefix": "10.0.0.0/24", - "delegations": [], - "privateEndpointNetworkPolicies": "Disabled", - "privateLinkServiceNetworkPolicies": "Enabled" - }, - "type": "Microsoft.Network/virtualNetworks/subnets" - } - ], - "variables": {} - } - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/PrivateEndpoint_Create/operationStatuses/08585352688242151315?api-version=2021-04-01", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 07:41:05 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T074106Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/PrivateEndpoint_Create", - "name": "PrivateEndpoint_Create", - "type": "Microsoft.Resources/deployments", - "properties": { - "templateHash": "9355547911654902090", - "parameters": { - "apimId": { - "type": "String", - "value": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceprivatesdGYeN" - }, - "location": { - "type": "String", - "value": "westus" - }, - "privateEndpointConnectionName": { - "type": "String", - "value": "apimprivateendpointsdGYeN" - }, - "virtualNetworksName": { - "type": "String", - "value": "apimvnetsdGYeN" - } - }, - "mode": "Incremental", - "provisioningState": "Accepted", - "timestamp": "2022-10-21T07:41:05.474184Z", - "duration": "PT0.0009843S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Network", - "resourceTypes": [ - { - "resourceType": "virtualNetworks", - "locations": [ - "westus" - ] - }, - { - "resourceType": "networkInterfaces", - "locations": [ - "westus" - ] - }, - { - "resourceType": "privateEndpoints", - "locations": [ - "westus" - ] - }, - { - "resourceType": "virtualNetworks/subnets", - "locations": [ - null - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/apimvnetsdGYeN/subnets/default", - "resourceType": "Microsoft.Network/virtualNetworks/subnets", - "resourceName": "apimvnetsdGYeN/default" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/networkInterfaces/apimprivateendpointsdGYeN-nic", - "resourceType": "Microsoft.Network/networkInterfaces", - "resourceName": "apimprivateendpointsdGYeN-nic" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/apimvnetsdGYeN/subnets/default", - "resourceType": "Microsoft.Network/virtualNetworks/subnets", - "resourceName": "apimvnetsdGYeN/default" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateEndpoints/apimprivateendpointsdGYeN", - "resourceType": "Microsoft.Network/privateEndpoints", - "resourceName": "apimprivateendpointsdGYeN" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/apimvnetsdGYeN", - "resourceType": "Microsoft.Network/virtualNetworks", - "resourceName": "apimvnetsdGYeN" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/apimvnetsdGYeN/subnets/default", - "resourceType": "Microsoft.Network/virtualNetworks/subnets", - "resourceName": "apimvnetsdGYeN/default" - } - ] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/PrivateEndpoint_Create/operationStatuses/08585352688242151315?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "20", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 07:41:06 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11999", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T074107Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/PrivateEndpoint_Create/operationStatuses/08585352688242151315?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "20", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 07:41:36 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11998", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T074137Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/PrivateEndpoint_Create/operationStatuses/08585352688242151315?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "20", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 07:42:08 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11997", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T074208Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/PrivateEndpoint_Create/operationStatuses/08585352688242151315?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "20", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 07:42:38 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11996", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T074238Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/PrivateEndpoint_Create/operationStatuses/08585352688242151315?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "22", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 07:43:08 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11995", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T074309Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/PrivateEndpoint_Create?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "3353", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 07:43:09 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11994", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T074309Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/PrivateEndpoint_Create", - "name": "PrivateEndpoint_Create", - "type": "Microsoft.Resources/deployments", - "properties": { - "templateHash": "9355547911654902090", - "parameters": { - "apimId": { - "type": "String", - "value": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceprivatesdGYeN" - }, - "location": { - "type": "String", - "value": "westus" - }, - "privateEndpointConnectionName": { - "type": "String", - "value": "apimprivateendpointsdGYeN" - }, - "virtualNetworksName": { - "type": "String", - "value": "apimvnetsdGYeN" - } - }, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2022-10-21T07:42:46.3930241Z", - "duration": "PT1M40.9198244S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Network", - "resourceTypes": [ - { - "resourceType": "virtualNetworks", - "locations": [ - "westus" - ] - }, - { - "resourceType": "networkInterfaces", - "locations": [ - "westus" - ] - }, - { - "resourceType": "privateEndpoints", - "locations": [ - "westus" - ] - }, - { - "resourceType": "virtualNetworks/subnets", - "locations": [ - null - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/apimvnetsdGYeN/subnets/default", - "resourceType": "Microsoft.Network/virtualNetworks/subnets", - "resourceName": "apimvnetsdGYeN/default" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/networkInterfaces/apimprivateendpointsdGYeN-nic", - "resourceType": "Microsoft.Network/networkInterfaces", - "resourceName": "apimprivateendpointsdGYeN-nic" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/apimvnetsdGYeN/subnets/default", - "resourceType": "Microsoft.Network/virtualNetworks/subnets", - "resourceName": "apimvnetsdGYeN/default" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateEndpoints/apimprivateendpointsdGYeN", - "resourceType": "Microsoft.Network/privateEndpoints", - "resourceName": "apimprivateendpointsdGYeN" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/apimvnetsdGYeN", - "resourceType": "Microsoft.Network/virtualNetworks", - "resourceName": "apimvnetsdGYeN" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/apimvnetsdGYeN/subnets/default", - "resourceType": "Microsoft.Network/virtualNetworks/subnets", - "resourceName": "apimvnetsdGYeN/default" - } - ], - "outputResources": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/networkInterfaces/apimprivateendpointsdGYeN-nic" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateEndpoints/apimprivateendpointsdGYeN" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/apimvnetsdGYeN" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/apimvnetsdGYeN/subnets/default" - } - ] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceprivatesdGYeN/privateEndpointConnections/apimprivateendpointsdGYeN?api-version=2021-08-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "324", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceprivatesdGYeN/privateEndpointConnections/apimprivateendpointsdGYeN", - "properties": { - "privateLinkServiceConnectionState": { - "description": "The Private Endpoint Connection is approved.", - "status": "Rejected" - } - } - }, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "347", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 07:43:10 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceprivatesdGYeN/privateEndpointConnections/apimprivateendpointsdGYeN/operationresults/d2VzdHVzOmdvdGVzdGFwaW1fVXBkYXRlXzhiYmY5MzZi?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T074310Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceprivatesdGYeN/privateEndpointConnections/apimprivateendpointsdGYeN", - "properties": { - "privateLinkServiceConnectionState": { - "status": "Rejected", - "description": "The Private Endpoint Connection is approved.", - "actionsRequired": null - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceprivatesdGYeN/privateEndpointConnections/apimprivateendpointsdGYeN/operationresults/d2VzdHVzOmdvdGVzdGFwaW1fVXBkYXRlXzhiYmY5MzZi?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 07:44:11 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceprivatesdGYeN/privateEndpointConnections/apimprivateendpointsdGYeN/operationresults/d2VzdHVzOmdvdGVzdGFwaW1fVXBkYXRlXzhiYmY5MzZi?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11993", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T074411Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceprivatesdGYeN/privateEndpointConnections/apimprivateendpointsdGYeN/operationresults/d2VzdHVzOmdvdGVzdGFwaW1fVXBkYXRlXzhiYmY5MzZi?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 07:45:12 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceprivatesdGYeN/privateEndpointConnections/apimprivateendpointsdGYeN/operationresults/d2VzdHVzOmdvdGVzdGFwaW1fVXBkYXRlXzhiYmY5MzZi?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11992", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T074512Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceprivatesdGYeN/privateEndpointConnections/apimprivateendpointsdGYeN/operationresults/d2VzdHVzOmdvdGVzdGFwaW1fVXBkYXRlXzhiYmY5MzZi?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 07:46:14 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11991", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T074614Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceprivatesdGYeN/privateEndpointConnections/apimprivateendpointsdGYeN", - "name": "apimprivateendpointsdGYeN", - "type": "Microsoft.ApiManagement/service/privateEndpointConnections", - "properties": { - "provisioningState": "Succeeded", - "privateEndpoint": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateEndpoints/apimprivateendpointsdGYeN" - }, - "groupIds": [ - "Gateway" - ], - "privateLinkServiceConnectionState": { - "status": "Rejected", - "description": "The Private Endpoint Connection is approved.", - "actionsRequired": null - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceprivatesdGYeN/privateEndpointConnections?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 07:46:14 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11990", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T074614Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceprivatesdGYeN/privateEndpointConnections/apimprivateendpoint30PBsE", - "name": "apimprivateendpoint30PBsE", - "type": "Microsoft.ApiManagement/service/privateEndpointConnections", - "properties": { - "provisioningState": "Succeeded", - "privateEndpoint": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateEndpoints/apimprivateendpoint30PBsE" - }, - "groupIds": [ - "Gateway" - ], - "privateLinkServiceConnectionState": { - "status": "Approved", - "description": "", - "actionsRequired": null - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceprivatesdGYeN/privateEndpointConnections/apimprivateendpointsdGYeN", - "name": "apimprivateendpointsdGYeN", - "type": "Microsoft.ApiManagement/service/privateEndpointConnections", - "properties": { - "provisioningState": "Succeeded", - "privateEndpoint": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateEndpoints/apimprivateendpointsdGYeN" - }, - "groupIds": [ - "Gateway" - ], - "privateLinkServiceConnectionState": { - "status": "Rejected", - "description": "The Private Endpoint Connection is approved.", - "actionsRequired": null - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceprivatesdGYeN/privateEndpointConnections/apimprivateendpointuBs5SJ", - "name": "apimprivateendpointuBs5SJ", - "type": "Microsoft.ApiManagement/service/privateEndpointConnections", - "properties": { - "provisioningState": "Succeeded", - "privateEndpoint": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateEndpoints/apimprivateendpointuBs5SJ" - }, - "groupIds": [ - "Gateway" - ], - "privateLinkServiceConnectionState": { - "status": "Approved", - "description": "", - "actionsRequired": null - } - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceprivatesdGYeN/privateLinkResources?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 07:46:15 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11989", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T074615Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceprivatesdGYeN/privateLinkResources/Gateway", - "name": "Gateway", - "type": "Microsoft.ApiManagement/service/privateLinkResources", - "properties": { - "groupId": "Gateway", - "requiredMembers": [ - "Gateway" - ], - "requiredZoneNames": [ - "privateLink.azure-api.net" - ] - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceprivatesdGYeN/privateEndpointConnections/apimprivateendpointsdGYeN?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 07:46:15 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11988", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T074615Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceprivatesdGYeN/privateEndpointConnections/apimprivateendpointsdGYeN", - "name": "apimprivateendpointsdGYeN", - "type": "Microsoft.ApiManagement/service/privateEndpointConnections", - "properties": { - "provisioningState": "Succeeded", - "privateEndpoint": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateEndpoints/apimprivateendpointsdGYeN" - }, - "groupIds": [ - "Gateway" - ], - "privateLinkServiceConnectionState": { - "status": "Rejected", - "description": "The Private Endpoint Connection is approved.", - "actionsRequired": null - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceprivatesdGYeN/privateEndpointConnections/apimprivateendpointsdGYeN?api-version=2021-08-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "2", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 07:46:16 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceprivatesdGYeN/privateEndpointConnections/apimprivateendpointsdGYeN/operationresults/d2VzdHVzOmdvdGVzdGFwaW1fVXBkYXRlXzk0NDMxYzRj?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14999", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T074616Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": {} - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceprivatesdGYeN/privateEndpointConnections/apimprivateendpointsdGYeN/operationresults/d2VzdHVzOmdvdGVzdGFwaW1fVXBkYXRlXzk0NDMxYzRj?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 07:47:17 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceprivatesdGYeN/privateEndpointConnections/apimprivateendpointsdGYeN/operationresults/d2VzdHVzOmdvdGVzdGFwaW1fVXBkYXRlXzk0NDMxYzRj?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11987", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T074717Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceprivatesdGYeN/privateEndpointConnections/apimprivateendpointsdGYeN/operationresults/d2VzdHVzOmdvdGVzdGFwaW1fVXBkYXRlXzk0NDMxYzRj?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 07:48:17 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceprivatesdGYeN/privateEndpointConnections/apimprivateendpointsdGYeN/operationresults/d2VzdHVzOmdvdGVzdGFwaW1fVXBkYXRlXzk0NDMxYzRj?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11986", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T074818Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceprivatesdGYeN/privateEndpointConnections/apimprivateendpointsdGYeN/operationresults/d2VzdHVzOmdvdGVzdGFwaW1fVXBkYXRlXzk0NDMxYzRj?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 07:49:19 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11985", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T074919Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 09:38:02 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQxOTUtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14991", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T093802Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": { - "recordingRandomSeed": "1666342412" - } -} diff --git a/sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimproductsTestSuite.json b/sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimproductsTestSuite.json deleted file mode 100644 index e028b3747f59..000000000000 --- a/sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimproductsTestSuite.json +++ /dev/null @@ -1,2653 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 20:16:01 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1191", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T201602Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "westus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN?api-version=2021-08-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "172", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus", - "properties": { - "publisherEmail": "foo@contoso.com", - "publisherName": "foo" - }, - "sku": { - "capacity": 1, - "name": "Standard" - }, - "tags": { - "Name": "Contoso", - "Test": "User" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "1770", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 20:16:10 GMT", - "ETag": "\u0022AAAAAAA92Vc=\u0022", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1190", - "x-ms-request-id": [ - "00000000-0000-0000-0000-000000000000", - "3338c4d4-11c5-4088-90c8-9f9bf337bad9" - ], - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T201611Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN", - "name": "serviceproductsdGYeN", - "type": "Microsoft.ApiManagement/service", - "tags": { - "Name": "Contoso", - "Test": "User" - }, - "location": "West US", - "etag": "AAAAAAA92Vc=", - "properties": { - "publisherEmail": "foo@contoso.com", - "publisherName": "foo", - "notificationSenderEmail": "apimgmt-noreply@mail.windowsazure.com", - "provisioningState": "Created", - "targetProvisioningState": "Activating", - "createdAtUtc": "2022-10-21T20:16:05.5237039Z", - "gatewayUrl": "https://serviceproductsdgyen.azure-api.net", - "gatewayRegionalUrl": null, - "portalUrl": null, - "developerPortalUrl": null, - "managementApiUrl": null, - "scmUrl": null, - "hostnameConfigurations": [ - { - "type": "Proxy", - "hostName": "serviceproductsdgyen.azure-api.net", - "encodedCertificate": null, - "keyVaultId": null, - "certificatePassword": null, - "negotiateClientCertificate": false, - "certificate": null, - "defaultSslBinding": true, - "identityClientId": null, - "certificateSource": "BuiltIn", - "certificateStatus": null - } - ], - "publicIPAddresses": null, - "privateIPAddresses": null, - "additionalLocations": null, - "virtualNetworkConfiguration": null, - "customProperties": null, - "virtualNetworkType": "None", - "certificates": null, - "disableGateway": false, - "apiVersionConstraint": { - "minApiVersion": null - }, - "publicIpAddressId": null, - "publicNetworkAccess": "Enabled", - "privateEndpointConnections": null, - "platformVersion": "undetermined" - }, - "sku": { - "name": "Standard", - "capacity": 1 - }, - "identity": null, - "zones": null, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-21T20:16:04.7485508Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-21T20:16:04.7485508Z" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 20:17:12 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11922", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T201713Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 20:18:13 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11921", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T201814Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 20:19:14 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11920", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T201915Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 20:20:15 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11924", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T202016Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 20:21:16 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11923", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T202117Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 20:22:17 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11922", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T202218Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 20:23:18 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11921", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T202319Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 20:24:19 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11920", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T202420Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 20:25:21 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11928", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T202521Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 20:26:22 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11927", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T202622Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 20:27:23 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11926", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T202723Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 20:28:24 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11925", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T202824Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 20:29:24 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11924", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T202925Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 20:30:25 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11928", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T203026Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 20:31:26 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11927", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T203127Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 20:32:28 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11926", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T203228Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 20:33:29 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11925", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T203329Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 20:34:30 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11924", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T203431Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 20:35:31 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11928", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T203532Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 20:36:32 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11927", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T203632Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 20:37:33 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11926", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T203733Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 20:38:34 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11925", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T203834Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 20:39:37 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11924", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T203937Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 20:40:37 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11928", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T204038Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 20:41:38 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11927", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T204139Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 20:42:39 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11926", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T204240Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 20:43:40 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11925", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T204341Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 20:44:41 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11924", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T204442Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 20:45:43 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11928", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T204543Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 20:46:44 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11927", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T204644Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 20:47:45 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11926", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T204745Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 20:48:45 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11925", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T204846Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 20:49:46 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11924", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T204947Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 20:50:48 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11928", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T205048Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 20:51:49 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11927", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T205149Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 20:52:50 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11926", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T205251Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 20:53:51 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11925", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T205352Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 20:54:53 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11924", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T205453Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 20:55:53 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11928", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T205554Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 20:56:54 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11927", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T205655Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2Vwcm9kdWN0c2RHWWVOX0FjdF9kNGU5YmU4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 20:57:55 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11926", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T205756Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN", - "name": "serviceproductsdGYeN", - "type": "Microsoft.ApiManagement/service", - "tags": { - "Name": "Contoso", - "Test": "User" - }, - "location": "West US", - "etag": "AAAAAAA92cE=", - "properties": { - "publisherEmail": "foo@contoso.com", - "publisherName": "foo", - "notificationSenderEmail": "apimgmt-noreply@mail.windowsazure.com", - "provisioningState": "Succeeded", - "targetProvisioningState": "", - "createdAtUtc": "2022-10-21T20:16:05.5237039Z", - "gatewayUrl": "https://serviceproductsdgyen.azure-api.net", - "gatewayRegionalUrl": "https://serviceproductsdgyen-westus-01.regional.azure-api.net", - "portalUrl": "https://serviceproductsdgyen.portal.azure-api.net", - "developerPortalUrl": "https://serviceproductsdgyen.developer.azure-api.net", - "managementApiUrl": "https://serviceproductsdgyen.management.azure-api.net", - "scmUrl": "https://serviceproductsdgyen.scm.azure-api.net", - "hostnameConfigurations": [ - { - "type": "Proxy", - "hostName": "serviceproductsdgyen.azure-api.net", - "encodedCertificate": null, - "keyVaultId": null, - "certificatePassword": null, - "negotiateClientCertificate": false, - "certificate": null, - "defaultSslBinding": true, - "identityClientId": null, - "certificateSource": "BuiltIn", - "certificateStatus": null - } - ], - "publicIPAddresses": [ - "20.66.106.239" - ], - "privateIPAddresses": null, - "additionalLocations": null, - "virtualNetworkConfiguration": null, - "customProperties": { - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Ssl30": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TripleDes168": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls10": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls11": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Ssl30": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Protocols.Server.Http2": "False" - }, - "virtualNetworkType": "None", - "certificates": null, - "disableGateway": false, - "apiVersionConstraint": { - "minApiVersion": null - }, - "publicIpAddressId": null, - "publicNetworkAccess": "Enabled", - "privateEndpointConnections": null, - "platformVersion": "stv2" - }, - "sku": { - "name": "Standard", - "capacity": 1 - }, - "identity": null, - "zones": null, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-21T20:16:04.7485508Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-21T20:16:04.7485508Z" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/products/productidsdGYeN?api-version=2021-08-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "60", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "displayName": "Test Template ProductName 4" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "1045", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 20:57:58 GMT", - "ETag": "\u0022AAAAAAAACSY=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1196", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T205759Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/products/productidsdGYeN", - "type": "Microsoft.ApiManagement/service/products", - "name": "productidsdGYeN", - "properties": { - "displayName": "Test Template ProductName 4", - "description": null, - "terms": null, - "subscriptionRequired": true, - "approvalRequired": false, - "subscriptionsLimit": null, - "state": "notPublished", - "groups": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/groups/administrators", - "name": "Administrators", - "description": "Administrators is a built-in group containing the admin email account provided at the time of service creation. Its membership is managed by the system.", - "builtIn": true, - "type": "system", - "externalId": null - } - ] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/products/productidsdGYeN?api-version=2021-08-01", - "RequestMethod": "HEAD", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 20:57:58 GMT", - "ETag": "\u0022AAAAAAAACSY=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11925", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T205759Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/products?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 20:58:00 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11924", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T205800Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/products/starter", - "type": "Microsoft.ApiManagement/service/products", - "name": "starter", - "properties": { - "displayName": "Starter", - "description": "Subscribers will be able to run 5 calls/minute up to a maximum of 100 calls/week.", - "terms": "", - "subscriptionRequired": true, - "approvalRequired": false, - "subscriptionsLimit": 1, - "state": "published" - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/products/productidsdGYeN", - "type": "Microsoft.ApiManagement/service/products", - "name": "productidsdGYeN", - "properties": { - "displayName": "Test Template ProductName 4", - "description": null, - "terms": null, - "subscriptionRequired": true, - "approvalRequired": false, - "subscriptionsLimit": null, - "state": "notPublished" - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/products/unlimited", - "type": "Microsoft.ApiManagement/service/products", - "name": "unlimited", - "properties": { - "displayName": "Unlimited", - "description": "Subscribers have completely unlimited access to the API. Administrator approval is required.", - "terms": null, - "subscriptionRequired": true, - "approvalRequired": true, - "subscriptionsLimit": 1, - "state": "published" - } - } - ], - "count": 3 - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/products/productidsdGYeN?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 20:58:00 GMT", - "ETag": "\u0022AAAAAAAACSY=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11923", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T205800Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/products/productidsdGYeN", - "type": "Microsoft.ApiManagement/service/products", - "name": "productidsdGYeN", - "properties": { - "displayName": "Test Template ProductName 4", - "description": null, - "terms": null, - "subscriptionRequired": true, - "approvalRequired": false, - "subscriptionsLimit": null, - "state": "notPublished" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/productsByTags?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 20:58:01 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11922", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T205801Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [], - "count": 0, - "nextLink": null - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/products/productidsdGYeN?api-version=2021-08-01", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "60", - "Content-Type": "application/json", - "If-Match": "*", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "displayName": "Test Template ProductName 4" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 20:58:02 GMT", - "ETag": "\u0022AAAAAAAACSY=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1195", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T205802Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/products/productidsdGYeN", - "type": "Microsoft.ApiManagement/service/products", - "name": "productidsdGYeN", - "properties": { - "displayName": "Test Template ProductName 4", - "description": null, - "terms": null, - "subscriptionRequired": true, - "approvalRequired": false, - "subscriptionsLimit": null, - "state": "notPublished", - "groups": [] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/apis/productapiidsdGYeN?api-version=2021-08-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "163", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "format": "openapi-link", - "path": "petstore", - "value": "https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/examples/v3.0/petstore.yaml" - } - }, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 20:58:06 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/apis/productapiidsdGYeN?api-version=2021-08-01\u0026asyncId=635307dd463461024444c8ae\u0026asyncCode=201", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1194", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T205806Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/apis/productapiidsdGYeN?api-version=2021-08-01\u0026asyncId=635307dd463461024444c8ae\u0026asyncCode=201", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 20:58:07 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/apis/productapiidsdGYeN?api-version=2021-08-01\u0026asyncId=635307dd463461024444c8ae\u0026asyncCode=201", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11921", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T205807Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/apis/productapiidsdGYeN?api-version=2021-08-01\u0026asyncId=635307dd463461024444c8ae\u0026asyncCode=201", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "844", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 20:58:37 GMT", - "ETag": "\u0022AAAAAAAACS4=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11920", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T205838Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/apis/productapiidsdGYeN", - "type": "Microsoft.ApiManagement/service/apis", - "name": "productapiidsdGYeN", - "properties": { - "displayName": "Swagger Petstore", - "apiRevision": "1", - "description": null, - "subscriptionRequired": true, - "serviceUrl": "http://petstore.swagger.io/v1", - "path": "petstore", - "protocols": [ - "https" - ], - "authenticationSettings": { - "oAuth2": null, - "openid": null - }, - "subscriptionKeyParameterNames": { - "header": "Ocp-Apim-Subscription-Key", - "query": "subscription-key" - }, - "license": { - "name": "MIT", - "url": null - }, - "isCurrent": true - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/products/productidsdGYeN/apis/productapiidsdGYeN?api-version=2021-08-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "658", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 20:58:38 GMT", - "ETag": "\u0022AAAAAAAACS4=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1193", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T205839Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/products/productidsdGYeN/apis/productapiidsdGYeN", - "type": "Microsoft.ApiManagement/service/products/apis", - "name": "productapiidsdGYeN", - "properties": { - "displayName": "Swagger Petstore", - "apiRevision": "1", - "description": null, - "subscriptionRequired": true, - "serviceUrl": "http://petstore.swagger.io/v1", - "path": "petstore", - "protocols": null, - "authenticationSettings": null, - "subscriptionKeyParameterNames": null, - "isCurrent": true - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/products/productidsdGYeN/apis/productapiidsdGYeN?api-version=2021-08-01", - "RequestMethod": "HEAD", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 20:58:39 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11919", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T205839Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/products/productidsdGYeN/apis?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 20:58:40 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11918", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T205841Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/products/productidsdGYeN/apis/productapiidsdGYeN", - "type": "Microsoft.ApiManagement/service/products/apis", - "name": "productapiidsdGYeN", - "properties": { - "displayName": "Swagger Petstore", - "apiRevision": "1", - "description": null, - "subscriptionRequired": true, - "serviceUrl": "http://petstore.swagger.io/v1", - "path": "petstore", - "protocols": [ - "https" - ], - "authenticationSettings": null, - "subscriptionKeyParameterNames": null, - "isCurrent": true - } - } - ], - "count": 1 - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/products/productidsdGYeN/apis/productapiidsdGYeN?api-version=2021-08-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 20:58:41 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14999", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T205842Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/groups/productgroupidsdGYeN?api-version=2021-08-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "53", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "displayName": "productgroupidsdGYeN" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "441", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 20:58:42 GMT", - "ETag": "\u0022AAAAAAAACU0=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1192", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T205843Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/groups/productgroupidsdGYeN", - "type": "Microsoft.ApiManagement/service/groups", - "name": "productgroupidsdGYeN", - "properties": { - "displayName": "productgroupidsdGYeN", - "description": null, - "builtIn": false, - "type": "custom", - "externalId": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/products/productidsdGYeN/groups/productgroupidsdGYeN?api-version=2021-08-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "475", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 20:58:43 GMT", - "ETag": "\u0022AAAAAAAACU0=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1191", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T205843Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/products/productidsdGYeN/groups/productgroupidsdGYeN", - "type": "Microsoft.ApiManagement/service/products/groups", - "name": "productgroupidsdGYeN", - "properties": { - "displayName": "productgroupidsdGYeN", - "description": null, - "builtIn": false, - "type": "custom", - "externalId": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/products/productidsdGYeN/groups/productgroupidsdGYeN?api-version=2021-08-01", - "RequestMethod": "HEAD", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 20:58:43 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11917", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T205844Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/products/productidsdGYeN/groups?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 20:58:44 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11916", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T205845Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/products/productidsdGYeN/groups/administrators", - "type": "Microsoft.ApiManagement/service/products/groups", - "name": "administrators", - "properties": { - "displayName": "Administrators", - "description": "Administrators is a built-in group containing the admin email account provided at the time of service creation. Its membership is managed by the system.", - "builtIn": true, - "type": "system", - "externalId": null - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/products/productidsdGYeN/groups/productgroupidsdGYeN", - "type": "Microsoft.ApiManagement/service/products/groups", - "name": "productgroupidsdGYeN", - "properties": { - "displayName": "productgroupidsdGYeN", - "description": null, - "builtIn": false, - "type": "custom", - "externalId": null - } - } - ], - "count": 2 - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/products/productidsdGYeN/groups/productgroupidsdGYeN?api-version=2021-08-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 20:58:45 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14998", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T205845Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/products/productidsdGYeN/policies/policy?api-version=2021-08-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "31", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "format": "xml" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "370", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 20:58:46 GMT", - "ETag": "\u0022AAAAAAAACVk=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1190", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T205847Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/products/productidsdGYeN/policies/policy", - "type": "Microsoft.ApiManagement/service/products/policies", - "name": "policy", - "properties": { - "format": "xml", - "value": "\u003Cformat\u003Exml\u003C/format\u003E" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/products/productidsdGYeN/policies/policy?api-version=2021-08-01", - "RequestMethod": "HEAD", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 20:58:46 GMT", - "ETag": "\u0022AAAAAAAACVk=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11915", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T205847Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/products/productidsdGYeN/policies?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 20:58:47 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11914", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T205848Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/products/productidsdGYeN/policies/policy", - "type": "Microsoft.ApiManagement/service/products/policies", - "name": "policy", - "properties": { - "value": "\u003Cformat\u003Exml\u003C/format\u003E", - "format": "xml" - } - } - ], - "count": 1 - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/products/productidsdGYeN/policies/policy?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 20:58:48 GMT", - "ETag": "\u0022AAAAAAAACVk=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11913", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T205849Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/products/productidsdGYeN/policies/policy", - "type": "Microsoft.ApiManagement/service/products/policies", - "name": "policy", - "properties": { - "format": "xml", - "value": "\u003Cformat\u003Exml\u003C/format\u003E" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/products/productidsdGYeN/policies/policy?api-version=2021-08-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "If-Match": "*", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 20:58:49 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14997", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T205850Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/products/productidsdGYeN/subscriptions?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 20:58:50 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11912", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T205850Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/products/productidsdGYeN/subscriptions/635307d6463461024444c8ab", - "type": "Microsoft.ApiManagement/service/products/subscriptions", - "name": "635307d6463461024444c8ab", - "properties": { - "ownerId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/users/1", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/products/productidsdGYeN", - "displayName": null, - "state": "active", - "createdDate": "2022-10-21T20:57:58.62Z", - "startDate": "2022-10-21T00:00:00Z", - "expirationDate": null, - "endDate": null, - "notificationDate": null, - "stateComment": null, - "allowTracing": false - } - } - ], - "count": 1 - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/tags/producttagidsdGYeN?api-version=2021-08-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "51", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "displayName": "producttagidsdGYeN" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "334", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 20:58:50 GMT", - "ETag": "\u0022AAAAAAAACWE=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1189", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T205851Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/tags/producttagidsdGYeN", - "type": "Microsoft.ApiManagement/service/tags", - "name": "producttagidsdGYeN", - "properties": { - "displayName": "producttagidsdGYeN" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/products/productidsdGYeN/tags/producttagidsdGYeN?api-version=2021-08-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "368", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 20:58:51 GMT", - "ETag": "\u0022AAAAAAAACWE=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1188", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T205852Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/products/productidsdGYeN/tags/producttagidsdGYeN", - "type": "Microsoft.ApiManagement/service/products/tags", - "name": "producttagidsdGYeN", - "properties": { - "displayName": "producttagidsdGYeN" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/products/productidsdGYeN/tags/producttagidsdGYeN?api-version=2021-08-01", - "RequestMethod": "HEAD", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 20:58:52 GMT", - "ETag": "\u0022AAAAAAAACWE=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11911", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T205852Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/products/productidsdGYeN/tags/producttagidsdGYeN?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 20:58:52 GMT", - "ETag": "\u0022AAAAAAAACWE=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11910", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T205853Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/products/productidsdGYeN/tags/producttagidsdGYeN", - "type": "Microsoft.ApiManagement/service/products/tags", - "name": "producttagidsdGYeN", - "properties": { - "displayName": "producttagidsdGYeN" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/products/productidsdGYeN/tags?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 20:58:53 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11909", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T205854Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/products/productidsdGYeN/tags/producttagidsdGYeN", - "type": "Microsoft.ApiManagement/service/products/tags", - "name": "producttagidsdGYeN", - "properties": { - "displayName": "producttagidsdGYeN" - } - } - ], - "count": 1 - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/products/productidsdGYeN/tags/producttagidsdGYeN?api-version=2021-08-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 20:58:54 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14996", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T205855Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceproductsdGYeN/products/productidsdGYeN?api-version=2021-08-01\u0026deleteSubscriptions=true", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "If-Match": "*", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 20:58:55 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14995", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T205855Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 20:58:58 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQzMjMtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14994", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T205859Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": { - "recordingRandomSeed": "1666342412" - } -} diff --git a/sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimreportsTestSuite.json b/sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimreportsTestSuite.json deleted file mode 100644 index 76eccc2a865d..000000000000 --- a/sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimreportsTestSuite.json +++ /dev/null @@ -1,2049 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 20:59:11 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1185", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T205911Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "westus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN?api-version=2021-08-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "172", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus", - "properties": { - "publisherEmail": "foo@contoso.com", - "publisherName": "foo" - }, - "sku": { - "capacity": 1, - "name": "Standard" - }, - "tags": { - "Name": "Contoso", - "Test": "User" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "1765", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 20:59:18 GMT", - "ETag": "\u0022AAAAAAA92cI=\u0022", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1184", - "x-ms-request-id": [ - "00000000-0000-0000-0000-000000000000", - "54dc7627-f2e9-4c08-ad87-665a8414f8a2" - ], - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T205918Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN", - "name": "servicereportssdGYeN", - "type": "Microsoft.ApiManagement/service", - "tags": { - "Name": "Contoso", - "Test": "User" - }, - "location": "West US", - "etag": "AAAAAAA92cI=", - "properties": { - "publisherEmail": "foo@contoso.com", - "publisherName": "foo", - "notificationSenderEmail": "apimgmt-noreply@mail.windowsazure.com", - "provisioningState": "Created", - "targetProvisioningState": "Activating", - "createdAtUtc": "2022-10-21T20:59:12.954637Z", - "gatewayUrl": "https://servicereportssdgyen.azure-api.net", - "gatewayRegionalUrl": null, - "portalUrl": null, - "developerPortalUrl": null, - "managementApiUrl": null, - "scmUrl": null, - "hostnameConfigurations": [ - { - "type": "Proxy", - "hostName": "servicereportssdgyen.azure-api.net", - "encodedCertificate": null, - "keyVaultId": null, - "certificatePassword": null, - "negotiateClientCertificate": false, - "certificate": null, - "defaultSslBinding": true, - "identityClientId": null, - "certificateSource": "BuiltIn", - "certificateStatus": null - } - ], - "publicIPAddresses": null, - "privateIPAddresses": null, - "additionalLocations": null, - "virtualNetworkConfiguration": null, - "customProperties": null, - "virtualNetworkType": "None", - "certificates": null, - "disableGateway": false, - "apiVersionConstraint": { - "minApiVersion": null - }, - "publicIpAddressId": null, - "publicNetworkAccess": "Enabled", - "privateEndpointConnections": null, - "platformVersion": "undetermined" - }, - "sku": { - "name": "Standard", - "capacity": 1 - }, - "identity": null, - "zones": null, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-21T20:59:12.83496Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-21T20:59:12.83496Z" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 21:00:18 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11912", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T210019Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 21:01:19 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11911", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T210120Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 21:02:20 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11910", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T210221Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 21:03:22 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11909", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T210322Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 21:04:23 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11908", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T210423Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 21:05:23 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11914", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T210524Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 21:06:24 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11913", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T210625Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 21:07:25 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11912", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T210726Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 21:08:27 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11911", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T210827Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 21:09:28 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11910", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T210928Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 21:10:29 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11919", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T211029Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 21:11:30 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11918", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T211130Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 21:12:31 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11917", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T211231Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 21:13:32 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11916", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T211333Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 21:14:33 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11915", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T211434Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 21:15:34 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11924", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T211535Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 21:16:35 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11923", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T211636Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 21:17:37 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11922", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T211737Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 21:18:38 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11921", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T211838Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 21:19:38 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11920", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T211939Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 21:20:40 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11924", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T212040Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 21:21:41 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11923", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T212142Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 21:22:42 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11922", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T212243Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 21:23:43 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11921", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T212344Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 21:24:44 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11920", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T212445Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 21:25:45 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11924", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T212546Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 21:26:46 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11923", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T212647Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 21:27:47 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11922", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T212748Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 21:28:49 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11921", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T212849Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 21:29:50 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11920", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T212950Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 21:30:51 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11924", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T213051Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 21:31:52 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11923", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T213152Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 21:32:53 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11922", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T213254Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 21:33:54 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11921", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T213355Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 21:34:56 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11920", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T213456Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 21:35:57 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11924", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T213557Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 21:36:57 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11923", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T213658Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 21:37:59 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11922", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T213759Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 21:39:00 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11921", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T213900Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 21:40:01 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11925", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T214001Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 21:41:02 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11924", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T214102Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 21:42:04 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11923", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T214204Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VyZXBvcnRzc2RHWWVOX0FjdF9hMWRhNWQ5Mw==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 21:43:05 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11922", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T214305Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN", - "name": "servicereportssdGYeN", - "type": "Microsoft.ApiManagement/service", - "tags": { - "Name": "Contoso", - "Test": "User" - }, - "location": "West US", - "etag": "AAAAAAA92j4=", - "properties": { - "publisherEmail": "foo@contoso.com", - "publisherName": "foo", - "notificationSenderEmail": "apimgmt-noreply@mail.windowsazure.com", - "provisioningState": "Succeeded", - "targetProvisioningState": "", - "createdAtUtc": "2022-10-21T20:59:12.954637Z", - "gatewayUrl": "https://servicereportssdgyen.azure-api.net", - "gatewayRegionalUrl": "https://servicereportssdgyen-westus-01.regional.azure-api.net", - "portalUrl": "https://servicereportssdgyen.portal.azure-api.net", - "developerPortalUrl": "https://servicereportssdgyen.developer.azure-api.net", - "managementApiUrl": "https://servicereportssdgyen.management.azure-api.net", - "scmUrl": "https://servicereportssdgyen.scm.azure-api.net", - "hostnameConfigurations": [ - { - "type": "Proxy", - "hostName": "servicereportssdgyen.azure-api.net", - "encodedCertificate": null, - "keyVaultId": null, - "certificatePassword": null, - "negotiateClientCertificate": false, - "certificate": null, - "defaultSslBinding": true, - "identityClientId": null, - "certificateSource": "BuiltIn", - "certificateStatus": null - } - ], - "publicIPAddresses": [ - "20.66.29.134" - ], - "privateIPAddresses": null, - "additionalLocations": null, - "virtualNetworkConfiguration": null, - "customProperties": { - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Ssl30": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TripleDes168": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls10": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls11": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Ssl30": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Protocols.Server.Http2": "False" - }, - "virtualNetworkType": "None", - "certificates": null, - "disableGateway": false, - "apiVersionConstraint": { - "minApiVersion": null - }, - "publicIpAddressId": null, - "publicNetworkAccess": "Enabled", - "privateEndpointConnections": null, - "platformVersion": "stv2" - }, - "sku": { - "name": "Standard", - "capacity": 1 - }, - "identity": null, - "zones": null, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-21T20:59:12.83496Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-21T20:59:12.83496Z" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/regions?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 21:43:05 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11921", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T214306Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "name": "West US", - "isMasterRegion": true, - "isDeleted": false - } - ], - "count": 1, - "nextLink": null - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/reports/byApi?%24filter=timestamp\u002Bge\u002Bdatetime%272017-06-01T00%3A00%3A00%27\u002Band\u002Btimestamp\u002Ble\u002Bdatetime%272017-06-04T00%3A00%3A00%27\u0026api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 21:43:09 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11920", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T214309Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "name": "Echo API", - "apiId": "/apis/echo-api", - "callCountSuccess": 0, - "callCountBlocked": 0, - "callCountFailed": 0, - "callCountOther": 0, - "callCountTotal": 0, - "bandwidth": 0, - "cacheHitCount": 0, - "cacheMissCount": 0, - "valueCacheHitCount": 0, - "valueCacheMissCount": 0, - "apiTimeAvg": 0.0, - "apiTimeMin": 0.0, - "apiTimeMax": 0.0, - "serviceTimeAvg": 0.0, - "serviceTimeMin": 0.0, - "serviceTimeMax": 0.0 - } - ], - "count": 1, - "nextLink": null - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/reports/byGeo?%24filter=timestamp\u002Bge\u002Bdatetime%272017-06-01T00%3A00%3A00%27\u002Band\u002Btimestamp\u002Ble\u002Bdatetime%272017-06-04T00%3A00%3A00%27\u0026api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 21:43:10 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11919", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T214310Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [], - "count": 0, - "nextLink": null - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/reports/byOperation?%24filter=timestamp\u002Bge\u002Bdatetime%272017-06-01T00%3A00%3A00%27\u002Band\u002Btimestamp\u002Ble\u002Bdatetime%272017-06-04T00%3A00%3A00%27\u0026api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 21:43:11 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11918", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T214312Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "name": "Create resource", - "apiId": "/apis/echo-api", - "operationId": "/apis/echo-api/operations/create-resource", - "callCountSuccess": 0, - "callCountBlocked": 0, - "callCountFailed": 0, - "callCountOther": 0, - "callCountTotal": 0, - "bandwidth": 0, - "cacheHitCount": 0, - "cacheMissCount": 0, - "valueCacheHitCount": 0, - "valueCacheMissCount": 0, - "apiTimeAvg": 0.0, - "apiTimeMin": 0.0, - "apiTimeMax": 0.0, - "serviceTimeAvg": 0.0, - "serviceTimeMin": 0.0, - "serviceTimeMax": 0.0 - }, - { - "name": "Modify Resource", - "apiId": "/apis/echo-api", - "operationId": "/apis/echo-api/operations/modify-resource", - "callCountSuccess": 0, - "callCountBlocked": 0, - "callCountFailed": 0, - "callCountOther": 0, - "callCountTotal": 0, - "bandwidth": 0, - "cacheHitCount": 0, - "cacheMissCount": 0, - "valueCacheHitCount": 0, - "valueCacheMissCount": 0, - "apiTimeAvg": 0.0, - "apiTimeMin": 0.0, - "apiTimeMax": 0.0, - "serviceTimeAvg": 0.0, - "serviceTimeMin": 0.0, - "serviceTimeMax": 0.0 - }, - { - "name": "Remove resource", - "apiId": "/apis/echo-api", - "operationId": "/apis/echo-api/operations/remove-resource", - "callCountSuccess": 0, - "callCountBlocked": 0, - "callCountFailed": 0, - "callCountOther": 0, - "callCountTotal": 0, - "bandwidth": 0, - "cacheHitCount": 0, - "cacheMissCount": 0, - "valueCacheHitCount": 0, - "valueCacheMissCount": 0, - "apiTimeAvg": 0.0, - "apiTimeMin": 0.0, - "apiTimeMax": 0.0, - "serviceTimeAvg": 0.0, - "serviceTimeMin": 0.0, - "serviceTimeMax": 0.0 - }, - { - "name": "Retrieve header only", - "apiId": "/apis/echo-api", - "operationId": "/apis/echo-api/operations/retrieve-header-only", - "callCountSuccess": 0, - "callCountBlocked": 0, - "callCountFailed": 0, - "callCountOther": 0, - "callCountTotal": 0, - "bandwidth": 0, - "cacheHitCount": 0, - "cacheMissCount": 0, - "valueCacheHitCount": 0, - "valueCacheMissCount": 0, - "apiTimeAvg": 0.0, - "apiTimeMin": 0.0, - "apiTimeMax": 0.0, - "serviceTimeAvg": 0.0, - "serviceTimeMin": 0.0, - "serviceTimeMax": 0.0 - }, - { - "name": "Retrieve resource", - "apiId": "/apis/echo-api", - "operationId": "/apis/echo-api/operations/retrieve-resource", - "callCountSuccess": 0, - "callCountBlocked": 0, - "callCountFailed": 0, - "callCountOther": 0, - "callCountTotal": 0, - "bandwidth": 0, - "cacheHitCount": 0, - "cacheMissCount": 0, - "valueCacheHitCount": 0, - "valueCacheMissCount": 0, - "apiTimeAvg": 0.0, - "apiTimeMin": 0.0, - "apiTimeMax": 0.0, - "serviceTimeAvg": 0.0, - "serviceTimeMin": 0.0, - "serviceTimeMax": 0.0 - }, - { - "name": "Retrieve resource (cached)", - "apiId": "/apis/echo-api", - "operationId": "/apis/echo-api/operations/retrieve-resource-cached", - "callCountSuccess": 0, - "callCountBlocked": 0, - "callCountFailed": 0, - "callCountOther": 0, - "callCountTotal": 0, - "bandwidth": 0, - "cacheHitCount": 0, - "cacheMissCount": 0, - "valueCacheHitCount": 0, - "valueCacheMissCount": 0, - "apiTimeAvg": 0.0, - "apiTimeMin": 0.0, - "apiTimeMax": 0.0, - "serviceTimeAvg": 0.0, - "serviceTimeMin": 0.0, - "serviceTimeMax": 0.0 - } - ], - "count": 6, - "nextLink": null - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/reports/byProduct?%24filter=timestamp\u002Bge\u002Bdatetime%272017-06-01T00%3A00%3A00%27\u002Band\u002Btimestamp\u002Ble\u002Bdatetime%272017-06-04T00%3A00%3A00%27\u0026api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 21:43:12 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11917", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T214313Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "name": "Starter", - "productId": "/products/starter", - "callCountSuccess": 0, - "callCountBlocked": 0, - "callCountFailed": 0, - "callCountOther": 0, - "callCountTotal": 0, - "bandwidth": 0, - "cacheHitCount": 0, - "cacheMissCount": 0, - "valueCacheHitCount": 0, - "valueCacheMissCount": 0, - "apiTimeAvg": 0.0, - "apiTimeMin": 0.0, - "apiTimeMax": 0.0, - "serviceTimeAvg": 0.0, - "serviceTimeMin": 0.0, - "serviceTimeMax": 0.0 - }, - { - "name": "Unlimited", - "productId": "/products/unlimited", - "callCountSuccess": 0, - "callCountBlocked": 0, - "callCountFailed": 0, - "callCountOther": 0, - "callCountTotal": 0, - "bandwidth": 0, - "cacheHitCount": 0, - "cacheMissCount": 0, - "valueCacheHitCount": 0, - "valueCacheMissCount": 0, - "apiTimeAvg": 0.0, - "apiTimeMin": 0.0, - "apiTimeMax": 0.0, - "serviceTimeAvg": 0.0, - "serviceTimeMin": 0.0, - "serviceTimeMax": 0.0 - } - ], - "count": 2, - "nextLink": null - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/reports/bySubscription?%24filter=timestamp\u002Bge\u002Bdatetime%272017-06-01T00%3A00%3A00%27\u002Band\u002Btimestamp\u002Ble\u002Bdatetime%272017-06-04T00%3A00%3A00%27\u0026api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 21:43:13 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11916", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T214314Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "name": "", - "userId": "/users/1", - "productId": "/products/starter", - "subscriptionId": "/subscriptions/635308e8c12204005d070001", - "callCountSuccess": 0, - "callCountBlocked": 0, - "callCountFailed": 0, - "callCountOther": 0, - "callCountTotal": 0, - "bandwidth": 0, - "cacheHitCount": 0, - "cacheMissCount": 0, - "valueCacheHitCount": 0, - "valueCacheMissCount": 0, - "apiTimeAvg": 0.0, - "apiTimeMin": 0.0, - "apiTimeMax": 0.0, - "serviceTimeAvg": 0.0, - "serviceTimeMin": 0.0, - "serviceTimeMax": 0.0 - }, - { - "name": "", - "userId": "/users/1", - "productId": "/products/unlimited", - "subscriptionId": "/subscriptions/635308e8c12204005d070002", - "callCountSuccess": 0, - "callCountBlocked": 0, - "callCountFailed": 0, - "callCountOther": 0, - "callCountTotal": 0, - "bandwidth": 0, - "cacheHitCount": 0, - "cacheMissCount": 0, - "valueCacheHitCount": 0, - "valueCacheMissCount": 0, - "apiTimeAvg": 0.0, - "apiTimeMin": 0.0, - "apiTimeMax": 0.0, - "serviceTimeAvg": 0.0, - "serviceTimeMin": 0.0, - "serviceTimeMax": 0.0 - }, - { - "name": "Built-in all-access subscription", - "subscriptionId": "/subscriptions/master", - "callCountSuccess": 0, - "callCountBlocked": 0, - "callCountFailed": 0, - "callCountOther": 0, - "callCountTotal": 0, - "bandwidth": 0, - "cacheHitCount": 0, - "cacheMissCount": 0, - "valueCacheHitCount": 0, - "valueCacheMissCount": 0, - "apiTimeAvg": 0.0, - "apiTimeMin": 0.0, - "apiTimeMax": 0.0, - "serviceTimeAvg": 0.0, - "serviceTimeMin": 0.0, - "serviceTimeMax": 0.0 - } - ], - "count": 3, - "nextLink": null - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/reports/byTime?%24filter=timestamp\u002Bge\u002Bdatetime%272017-06-01T00%3A00%3A00%27\u002Band\u002Btimestamp\u002Ble\u002Bdatetime%272017-06-04T00%3A00%3A00%27\u0026api-version=2021-08-01\u0026interval=PT15M", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 21:43:15 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11915", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T214315Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [], - "count": 0, - "nextLink": null - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicereportssdGYeN/reports/byUser?%24filter=timestamp\u002Bge\u002Bdatetime%272017-06-01T00%3A00%3A00%27\u002Band\u002Btimestamp\u002Ble\u002Bdatetime%272017-06-04T00%3A00%3A00%27\u0026api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 21:43:16 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11914", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T214316Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "name": "Administrator", - "userId": "/users/1", - "callCountSuccess": 0, - "callCountBlocked": 0, - "callCountFailed": 0, - "callCountOther": 0, - "callCountTotal": 0, - "bandwidth": 0, - "cacheHitCount": 0, - "cacheMissCount": 0, - "valueCacheHitCount": 0, - "valueCacheMissCount": 0, - "apiTimeAvg": 0.0, - "apiTimeMin": 0.0, - "apiTimeMax": 0.0, - "serviceTimeAvg": 0.0, - "serviceTimeMin": 0.0, - "serviceTimeMax": 0.0 - }, - { - "name": "Anonymous", - "userId": "/users/54c800b332965a0035030000", - "callCountSuccess": 0, - "callCountBlocked": 0, - "callCountFailed": 0, - "callCountOther": 0, - "callCountTotal": 0, - "bandwidth": 0, - "cacheHitCount": 0, - "cacheMissCount": 0, - "valueCacheHitCount": 0, - "valueCacheMissCount": 0, - "apiTimeAvg": 0.0, - "apiTimeMin": 0.0, - "apiTimeMax": 0.0, - "serviceTimeAvg": 0.0, - "serviceTimeMin": 0.0, - "serviceTimeMax": 0.0 - } - ], - "count": 1, - "nextLink": null - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 21:43:20 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ1MDMtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14993", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T214321Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": { - "recordingRandomSeed": "1666342412" - } -} diff --git a/sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimschemaTestSuite.json b/sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimschemaTestSuite.json deleted file mode 100644 index 5054c36e129d..000000000000 --- a/sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimschemaTestSuite.json +++ /dev/null @@ -1,1704 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 21:43:24 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1186", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T214325Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "westus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN?api-version=2021-08-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "172", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus", - "properties": { - "publisherEmail": "foo@contoso.com", - "publisherName": "foo" - }, - "sku": { - "capacity": 1, - "name": "Standard" - }, - "tags": { - "Name": "Contoso", - "Test": "User" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "1766", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 21:43:32 GMT", - "ETag": "\u0022AAAAAAA92kQ=\u0022", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1185", - "x-ms-request-id": [ - "00000000-0000-0000-0000-000000000000", - "05ea62a9-1e2b-4a73-871b-fb793d11946b" - ], - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T214333Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN", - "name": "serviceschemasdGYeN", - "type": "Microsoft.ApiManagement/service", - "tags": { - "Name": "Contoso", - "Test": "User" - }, - "location": "West US", - "etag": "AAAAAAA92kQ=", - "properties": { - "publisherEmail": "foo@contoso.com", - "publisherName": "foo", - "notificationSenderEmail": "apimgmt-noreply@mail.windowsazure.com", - "provisioningState": "Created", - "targetProvisioningState": "Activating", - "createdAtUtc": "2022-10-21T21:43:28.0692287Z", - "gatewayUrl": "https://serviceschemasdgyen.azure-api.net", - "gatewayRegionalUrl": null, - "portalUrl": null, - "developerPortalUrl": null, - "managementApiUrl": null, - "scmUrl": null, - "hostnameConfigurations": [ - { - "type": "Proxy", - "hostName": "serviceschemasdgyen.azure-api.net", - "encodedCertificate": null, - "keyVaultId": null, - "certificatePassword": null, - "negotiateClientCertificate": false, - "certificate": null, - "defaultSslBinding": true, - "identityClientId": null, - "certificateSource": "BuiltIn", - "certificateStatus": null - } - ], - "publicIPAddresses": null, - "privateIPAddresses": null, - "additionalLocations": null, - "virtualNetworkConfiguration": null, - "customProperties": null, - "virtualNetworkType": "None", - "certificates": null, - "disableGateway": false, - "apiVersionConstraint": { - "minApiVersion": null - }, - "publicIpAddressId": null, - "publicNetworkAccess": "Enabled", - "privateEndpointConnections": null, - "platformVersion": "undetermined" - }, - "sku": { - "name": "Standard", - "capacity": 1 - }, - "identity": null, - "zones": null, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-21T21:43:27.9540637Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-21T21:43:27.9540637Z" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 21:44:33 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11913", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T214434Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 21:45:34 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11917", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T214535Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 21:46:35 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11916", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T214636Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 21:47:36 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11915", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T214737Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 21:48:37 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11914", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T214838Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 21:49:38 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11913", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T214939Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 21:50:40 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11917", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T215040Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 21:51:41 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11916", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T215141Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 21:52:42 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11915", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T215242Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 21:53:43 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11914", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T215343Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 21:54:44 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11913", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T215444Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 21:55:45 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11917", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T215545Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 21:56:46 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11916", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T215647Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 21:57:47 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11915", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T215748Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 21:58:48 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11914", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T215849Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 21:59:49 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11913", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T215950Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 22:00:50 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T220051Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 22:01:51 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T220152Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 22:02:53 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11930", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T220253Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 22:03:54 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11929", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T220354Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 22:04:55 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11928", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T220455Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 22:05:55 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T220556Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 22:06:56 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T220657Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 22:07:57 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11930", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T220758Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 22:08:58 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11929", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T220859Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 22:10:00 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T221001Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 22:11:01 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T221102Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 22:12:03 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T221203Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 22:13:03 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11930", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T221304Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 22:14:04 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11929", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T221405Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 22:15:05 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T221506Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 22:16:07 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T221607Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 22:17:08 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T221708Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 22:18:09 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11930", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T221809Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 22:19:10 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11929", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T221911Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 22:20:11 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T222012Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 22:21:12 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T222113Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 22:22:13 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T222214Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 22:23:14 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11930", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T222315Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 22:24:15 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11929", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T222416Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 22:25:16 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T222517Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 22:26:18 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T222618Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzY2hlbWFzZEdZZU5fQWN0XzdlMDM5OGEz?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 22:27:19 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T222719Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN", - "name": "serviceschemasdGYeN", - "type": "Microsoft.ApiManagement/service", - "tags": { - "Name": "Contoso", - "Test": "User" - }, - "location": "West US", - "etag": "AAAAAAA92p0=", - "properties": { - "publisherEmail": "foo@contoso.com", - "publisherName": "foo", - "notificationSenderEmail": "apimgmt-noreply@mail.windowsazure.com", - "provisioningState": "Succeeded", - "targetProvisioningState": "", - "createdAtUtc": "2022-10-21T21:43:28.0692287Z", - "gatewayUrl": "https://serviceschemasdgyen.azure-api.net", - "gatewayRegionalUrl": "https://serviceschemasdgyen-westus-01.regional.azure-api.net", - "portalUrl": "https://serviceschemasdgyen.portal.azure-api.net", - "developerPortalUrl": "https://serviceschemasdgyen.developer.azure-api.net", - "managementApiUrl": "https://serviceschemasdgyen.management.azure-api.net", - "scmUrl": "https://serviceschemasdgyen.scm.azure-api.net", - "hostnameConfigurations": [ - { - "type": "Proxy", - "hostName": "serviceschemasdgyen.azure-api.net", - "encodedCertificate": null, - "keyVaultId": null, - "certificatePassword": null, - "negotiateClientCertificate": false, - "certificate": null, - "defaultSslBinding": true, - "identityClientId": null, - "certificateSource": "BuiltIn", - "certificateStatus": null - } - ], - "publicIPAddresses": [ - "20.237.227.23" - ], - "privateIPAddresses": null, - "additionalLocations": null, - "virtualNetworkConfiguration": null, - "customProperties": { - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Ssl30": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TripleDes168": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls10": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls11": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Ssl30": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Protocols.Server.Http2": "False" - }, - "virtualNetworkType": "None", - "certificates": null, - "disableGateway": false, - "apiVersionConstraint": { - "minApiVersion": null - }, - "publicIpAddressId": null, - "publicNetworkAccess": "Enabled", - "privateEndpointConnections": null, - "platformVersion": "stv2" - }, - "sku": { - "name": "Standard", - "capacity": 1 - }, - "identity": null, - "zones": null, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-21T21:43:27.9540637Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-21T21:43:27.9540637Z" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/schemas/globalschemaidsdGYeN?api-version=2021-08-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "1424", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "schemaType": "xml", - "description": "sample schema description", - "value": "\u003Cxsd:schema xmlns:xsd=\u0022http://www.w3.org/2001/XMLSchema\u0022\r\n xmlns:tns=\u0022http://tempuri.org/PurchaseOrderSchema.xsd\u0022\r\n targetNamespace=\u0022http://tempuri.org/PurchaseOrderSchema.xsd\u0022\r\n elementFormDefault=\u0022qualified\u0022\u003E\r\n \u003Cxsd:element name=\u0022PurchaseOrder\u0022 type=\u0022tns:PurchaseOrderType\u0022/\u003E\r\n \u003Cxsd:complexType name=\u0022PurchaseOrderType\u0022\u003E\r\n \u003Cxsd:sequence\u003E\r\n \u003Cxsd:element name=\u0022ShipTo\u0022 type=\u0022tns:USAddress\u0022 maxOccurs=\u00222\u0022/\u003E\r\n \u003Cxsd:element name=\u0022BillTo\u0022 type=\u0022tns:USAddress\u0022/\u003E\r\n \u003C/xsd:sequence\u003E\r\n \u003Cxsd:attribute name=\u0022OrderDate\u0022 type=\u0022xsd:date\u0022/\u003E\r\n \u003C/xsd:complexType\u003E\r\n\r\n \u003Cxsd:complexType name=\u0022USAddress\u0022\u003E\r\n \u003Cxsd:sequence\u003E\r\n \u003Cxsd:element name=\u0022name\u0022 type=\u0022xsd:string\u0022/\u003E\r\n \u003Cxsd:element name=\u0022street\u0022 type=\u0022xsd:string\u0022/\u003E\r\n \u003Cxsd:element name=\u0022city\u0022 type=\u0022xsd:string\u0022/\u003E\r\n \u003Cxsd:element name=\u0022state\u0022 type=\u0022xsd:string\u0022/\u003E\r\n \u003Cxsd:element name=\u0022zip\u0022 type=\u0022xsd:integer\u0022/\u003E\r\n \u003C/xsd:sequence\u003E\r\n \u003Cxsd:attribute name=\u0022country\u0022 type=\u0022xsd:NMTOKEN\u0022 fixed=\u0022US\u0022/\u003E\r\n \u003C/xsd:complexType\u003E\r\n\u003C/xsd:schema\u003E" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "1537", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 22:27:24 GMT", - "ETag": "\u0022IwkAAAAAAAA=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1197", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T222724Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/schemas/globalschemaidsdGYeN", - "type": "Microsoft.ApiManagement/service/schemas", - "name": "globalschemaidsdGYeN", - "properties": { - "description": "sample schema description", - "schemaType": "xml", - "value": "\u003Cxsd:schema xmlns:xsd=\u0022http://www.w3.org/2001/XMLSchema\u0022\r\n xmlns:tns=\u0022http://tempuri.org/PurchaseOrderSchema.xsd\u0022\r\n targetNamespace=\u0022http://tempuri.org/PurchaseOrderSchema.xsd\u0022\r\n elementFormDefault=\u0022qualified\u0022\u003E\r\n \u003Cxsd:element name=\u0022PurchaseOrder\u0022 type=\u0022tns:PurchaseOrderType\u0022/\u003E\r\n \u003Cxsd:complexType name=\u0022PurchaseOrderType\u0022\u003E\r\n \u003Cxsd:sequence\u003E\r\n \u003Cxsd:element name=\u0022ShipTo\u0022 type=\u0022tns:USAddress\u0022 maxOccurs=\u00222\u0022/\u003E\r\n \u003Cxsd:element name=\u0022BillTo\u0022 type=\u0022tns:USAddress\u0022/\u003E\r\n \u003C/xsd:sequence\u003E\r\n \u003Cxsd:attribute name=\u0022OrderDate\u0022 type=\u0022xsd:date\u0022/\u003E\r\n \u003C/xsd:complexType\u003E\r\n\r\n \u003Cxsd:complexType name=\u0022USAddress\u0022\u003E\r\n \u003Cxsd:sequence\u003E\r\n \u003Cxsd:element name=\u0022name\u0022 type=\u0022xsd:string\u0022/\u003E\r\n \u003Cxsd:element name=\u0022street\u0022 type=\u0022xsd:string\u0022/\u003E\r\n \u003Cxsd:element name=\u0022city\u0022 type=\u0022xsd:string\u0022/\u003E\r\n \u003Cxsd:element name=\u0022state\u0022 type=\u0022xsd:string\u0022/\u003E\r\n \u003Cxsd:element name=\u0022zip\u0022 type=\u0022xsd:integer\u0022/\u003E\r\n \u003C/xsd:sequence\u003E\r\n \u003Cxsd:attribute name=\u0022country\u0022 type=\u0022xsd:NMTOKEN\u0022 fixed=\u0022US\u0022/\u003E\r\n \u003C/xsd:complexType\u003E\r\n\u003C/xsd:schema\u003E", - "document": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/schemas/globalschemaidsdGYeN?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 22:27:25 GMT", - "ETag": "\u0022IwkAAAAAAAA=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11930", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T222726Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/schemas/globalschemaidsdGYeN", - "type": "Microsoft.ApiManagement/service/schemas", - "name": "globalschemaidsdGYeN", - "properties": { - "description": "sample schema description", - "schemaType": "xml", - "value": "\u003Cxsd:schema xmlns:xsd=\u0022http://www.w3.org/2001/XMLSchema\u0022\r\n xmlns:tns=\u0022http://tempuri.org/PurchaseOrderSchema.xsd\u0022\r\n targetNamespace=\u0022http://tempuri.org/PurchaseOrderSchema.xsd\u0022\r\n elementFormDefault=\u0022qualified\u0022\u003E\r\n \u003Cxsd:element name=\u0022PurchaseOrder\u0022 type=\u0022tns:PurchaseOrderType\u0022/\u003E\r\n \u003Cxsd:complexType name=\u0022PurchaseOrderType\u0022\u003E\r\n \u003Cxsd:sequence\u003E\r\n \u003Cxsd:element name=\u0022ShipTo\u0022 type=\u0022tns:USAddress\u0022 maxOccurs=\u00222\u0022/\u003E\r\n \u003Cxsd:element name=\u0022BillTo\u0022 type=\u0022tns:USAddress\u0022/\u003E\r\n \u003C/xsd:sequence\u003E\r\n \u003Cxsd:attribute name=\u0022OrderDate\u0022 type=\u0022xsd:date\u0022/\u003E\r\n \u003C/xsd:complexType\u003E\r\n\r\n \u003Cxsd:complexType name=\u0022USAddress\u0022\u003E\r\n \u003Cxsd:sequence\u003E\r\n \u003Cxsd:element name=\u0022name\u0022 type=\u0022xsd:string\u0022/\u003E\r\n \u003Cxsd:element name=\u0022street\u0022 type=\u0022xsd:string\u0022/\u003E\r\n \u003Cxsd:element name=\u0022city\u0022 type=\u0022xsd:string\u0022/\u003E\r\n \u003Cxsd:element name=\u0022state\u0022 type=\u0022xsd:string\u0022/\u003E\r\n \u003Cxsd:element name=\u0022zip\u0022 type=\u0022xsd:integer\u0022/\u003E\r\n \u003C/xsd:sequence\u003E\r\n \u003Cxsd:attribute name=\u0022country\u0022 type=\u0022xsd:NMTOKEN\u0022 fixed=\u0022US\u0022/\u003E\r\n \u003C/xsd:complexType\u003E\r\n\u003C/xsd:schema\u003E", - "document": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/schemas/globalschemaidsdGYeN?api-version=2021-08-01", - "RequestMethod": "HEAD", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 22:27:26 GMT", - "ETag": "\u0022IwkAAAAAAAA=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11929", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T222726Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/schemas?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 22:27:27 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11928", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T222728Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/schemas/globalschemaidsdGYeN", - "type": "Microsoft.ApiManagement/service/schemas", - "name": "globalschemaidsdGYeN", - "properties": { - "description": "sample schema description", - "schemaType": "xml", - "value": "\u003Cxsd:schema xmlns:xsd=\u0022http://www.w3.org/2001/XMLSchema\u0022\r\n xmlns:tns=\u0022http://tempuri.org/PurchaseOrderSchema.xsd\u0022\r\n targetNamespace=\u0022http://tempuri.org/PurchaseOrderSchema.xsd\u0022\r\n elementFormDefault=\u0022qualified\u0022\u003E\r\n \u003Cxsd:element name=\u0022PurchaseOrder\u0022 type=\u0022tns:PurchaseOrderType\u0022/\u003E\r\n \u003Cxsd:complexType name=\u0022PurchaseOrderType\u0022\u003E\r\n \u003Cxsd:sequence\u003E\r\n \u003Cxsd:element name=\u0022ShipTo\u0022 type=\u0022tns:USAddress\u0022 maxOccurs=\u00222\u0022/\u003E\r\n \u003Cxsd:element name=\u0022BillTo\u0022 type=\u0022tns:USAddress\u0022/\u003E\r\n \u003C/xsd:sequence\u003E\r\n \u003Cxsd:attribute name=\u0022OrderDate\u0022 type=\u0022xsd:date\u0022/\u003E\r\n \u003C/xsd:complexType\u003E\r\n\r\n \u003Cxsd:complexType name=\u0022USAddress\u0022\u003E\r\n \u003Cxsd:sequence\u003E\r\n \u003Cxsd:element name=\u0022name\u0022 type=\u0022xsd:string\u0022/\u003E\r\n \u003Cxsd:element name=\u0022street\u0022 type=\u0022xsd:string\u0022/\u003E\r\n \u003Cxsd:element name=\u0022city\u0022 type=\u0022xsd:string\u0022/\u003E\r\n \u003Cxsd:element name=\u0022state\u0022 type=\u0022xsd:string\u0022/\u003E\r\n \u003Cxsd:element name=\u0022zip\u0022 type=\u0022xsd:integer\u0022/\u003E\r\n \u003C/xsd:sequence\u003E\r\n \u003Cxsd:attribute name=\u0022country\u0022 type=\u0022xsd:NMTOKEN\u0022 fixed=\u0022US\u0022/\u003E\r\n \u003C/xsd:complexType\u003E\r\n\u003C/xsd:schema\u003E", - "document": null - } - } - ], - "count": 1 - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/schemas/globalschemaidsdGYeN?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 22:27:28 GMT", - "ETag": "\u0022IwkAAAAAAAA=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11927", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T222728Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/schemas/globalschemaidsdGYeN", - "type": "Microsoft.ApiManagement/service/schemas", - "name": "globalschemaidsdGYeN", - "properties": { - "description": "sample schema description", - "schemaType": "xml", - "value": "\u003Cxsd:schema xmlns:xsd=\u0022http://www.w3.org/2001/XMLSchema\u0022\r\n xmlns:tns=\u0022http://tempuri.org/PurchaseOrderSchema.xsd\u0022\r\n targetNamespace=\u0022http://tempuri.org/PurchaseOrderSchema.xsd\u0022\r\n elementFormDefault=\u0022qualified\u0022\u003E\r\n \u003Cxsd:element name=\u0022PurchaseOrder\u0022 type=\u0022tns:PurchaseOrderType\u0022/\u003E\r\n \u003Cxsd:complexType name=\u0022PurchaseOrderType\u0022\u003E\r\n \u003Cxsd:sequence\u003E\r\n \u003Cxsd:element name=\u0022ShipTo\u0022 type=\u0022tns:USAddress\u0022 maxOccurs=\u00222\u0022/\u003E\r\n \u003Cxsd:element name=\u0022BillTo\u0022 type=\u0022tns:USAddress\u0022/\u003E\r\n \u003C/xsd:sequence\u003E\r\n \u003Cxsd:attribute name=\u0022OrderDate\u0022 type=\u0022xsd:date\u0022/\u003E\r\n \u003C/xsd:complexType\u003E\r\n\r\n \u003Cxsd:complexType name=\u0022USAddress\u0022\u003E\r\n \u003Cxsd:sequence\u003E\r\n \u003Cxsd:element name=\u0022name\u0022 type=\u0022xsd:string\u0022/\u003E\r\n \u003Cxsd:element name=\u0022street\u0022 type=\u0022xsd:string\u0022/\u003E\r\n \u003Cxsd:element name=\u0022city\u0022 type=\u0022xsd:string\u0022/\u003E\r\n \u003Cxsd:element name=\u0022state\u0022 type=\u0022xsd:string\u0022/\u003E\r\n \u003Cxsd:element name=\u0022zip\u0022 type=\u0022xsd:integer\u0022/\u003E\r\n \u003C/xsd:sequence\u003E\r\n \u003Cxsd:attribute name=\u0022country\u0022 type=\u0022xsd:NMTOKEN\u0022 fixed=\u0022US\u0022/\u003E\r\n \u003C/xsd:complexType\u003E\r\n\u003C/xsd:schema\u003E", - "document": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceschemasdGYeN/schemas/globalschemaidsdGYeN?api-version=2021-08-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "If-Match": "*", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 22:27:30 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14998", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T222731Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 22:27:33 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ3NDAtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14997", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T222733Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": { - "recordingRandomSeed": "1666342412" - } -} diff --git a/sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimsubscriptionsTestSuite.json b/sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimsubscriptionsTestSuite.json deleted file mode 100644 index 4bc2c634fdf6..000000000000 --- a/sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimsubscriptionsTestSuite.json +++ /dev/null @@ -1,6306 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 22:27:36 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1196", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T222736Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "westus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN?api-version=2021-08-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "172", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus", - "properties": { - "publisherEmail": "foo@contoso.com", - "publisherName": "foo" - }, - "sku": { - "capacity": 1, - "name": "Standard" - }, - "tags": { - "Name": "Contoso", - "Test": "User" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "1754", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 22:27:43 GMT", - "ETag": "\u0022AAAAAAA92p4=\u0022", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1195", - "x-ms-request-id": [ - "00000000-0000-0000-0000-000000000000", - "523dfed2-a199-41ab-9460-41a016fd5bf9" - ], - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T222743Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN", - "name": "servicesubsdGYeN", - "type": "Microsoft.ApiManagement/service", - "tags": { - "Name": "Contoso", - "Test": "User" - }, - "location": "West US", - "etag": "AAAAAAA92p4=", - "properties": { - "publisherEmail": "foo@contoso.com", - "publisherName": "foo", - "notificationSenderEmail": "apimgmt-noreply@mail.windowsazure.com", - "provisioningState": "Created", - "targetProvisioningState": "Activating", - "createdAtUtc": "2022-10-21T22:27:38.9855281Z", - "gatewayUrl": "https://servicesubsdgyen.azure-api.net", - "gatewayRegionalUrl": null, - "portalUrl": null, - "developerPortalUrl": null, - "managementApiUrl": null, - "scmUrl": null, - "hostnameConfigurations": [ - { - "type": "Proxy", - "hostName": "servicesubsdgyen.azure-api.net", - "encodedCertificate": null, - "keyVaultId": null, - "certificatePassword": null, - "negotiateClientCertificate": false, - "certificate": null, - "defaultSslBinding": true, - "identityClientId": null, - "certificateSource": "BuiltIn", - "certificateStatus": null - } - ], - "publicIPAddresses": null, - "privateIPAddresses": null, - "additionalLocations": null, - "virtualNetworkConfiguration": null, - "customProperties": null, - "virtualNetworkType": "None", - "certificates": null, - "disableGateway": false, - "apiVersionConstraint": { - "minApiVersion": null - }, - "publicIpAddressId": null, - "publicNetworkAccess": "Enabled", - "privateEndpointConnections": null, - "platformVersion": "undetermined" - }, - "sku": { - "name": "Standard", - "capacity": 1 - }, - "identity": null, - "zones": null, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-21T22:27:38.8851888Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-21T22:27:38.8851888Z" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 22:28:44 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11926", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T222845Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 22:29:45 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11925", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T222946Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 22:30:47 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11929", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T223047Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 22:31:47 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11928", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T223148Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 22:32:48 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11927", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T223249Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 22:33:49 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11926", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T223350Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 22:34:50 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11925", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T223451Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 22:35:52 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11929", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T223552Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 22:36:53 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11928", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T223653Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 22:37:54 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11927", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T223754Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 22:38:55 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11926", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T223855Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 22:39:56 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11925", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T223956Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 22:40:57 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11928", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T224057Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 22:41:58 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11927", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T224158Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 22:42:59 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11926", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T224259Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 22:44:00 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11925", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T224401Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 22:45:01 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11937", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T224502Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 22:46:02 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11936", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T224603Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 22:47:03 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T224704Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 22:48:04 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T224805Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 22:49:05 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T224906Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 22:50:06 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11937", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T225007Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 22:51:07 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11936", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T225108Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 22:52:09 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T225209Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 22:53:10 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T225310Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 22:54:11 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T225411Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 22:55:12 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11937", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T225513Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 22:56:13 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11936", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T225614Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 22:57:15 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T225715Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 22:58:16 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T225816Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 22:59:16 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T225917Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 23:00:17 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11937", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T230018Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 23:01:19 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11936", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T230119Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 23:02:20 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T230220Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 23:03:21 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T230321Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 23:04:21 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T230422Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 23:05:23 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11937", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T230523Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 23:06:24 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11936", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T230624Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 23:07:25 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T230726Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 23:08:26 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T230827Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2VzdWJzZEdZZU5fQWN0XzZlMjU4OGE1?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 23:09:28 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T230928Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN", - "name": "servicesubsdGYeN", - "type": "Microsoft.ApiManagement/service", - "tags": { - "Name": "Contoso", - "Test": "User" - }, - "location": "West US", - "etag": "AAAAAAA92vs=", - "properties": { - "publisherEmail": "foo@contoso.com", - "publisherName": "foo", - "notificationSenderEmail": "apimgmt-noreply@mail.windowsazure.com", - "provisioningState": "Succeeded", - "targetProvisioningState": "", - "createdAtUtc": "2022-10-21T22:27:38.9855281Z", - "gatewayUrl": "https://servicesubsdgyen.azure-api.net", - "gatewayRegionalUrl": "https://servicesubsdgyen-westus-01.regional.azure-api.net", - "portalUrl": "https://servicesubsdgyen.portal.azure-api.net", - "developerPortalUrl": "https://servicesubsdgyen.developer.azure-api.net", - "managementApiUrl": "https://servicesubsdgyen.management.azure-api.net", - "scmUrl": "https://servicesubsdgyen.scm.azure-api.net", - "hostnameConfigurations": [ - { - "type": "Proxy", - "hostName": "servicesubsdgyen.azure-api.net", - "encodedCertificate": null, - "keyVaultId": null, - "certificatePassword": null, - "negotiateClientCertificate": false, - "certificate": null, - "defaultSslBinding": true, - "identityClientId": null, - "certificateSource": "BuiltIn", - "certificateStatus": null - } - ], - "publicIPAddresses": [ - "20.245.25.140" - ], - "privateIPAddresses": null, - "additionalLocations": null, - "virtualNetworkConfiguration": null, - "customProperties": { - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Ssl30": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TripleDes168": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls10": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls11": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Ssl30": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Protocols.Server.Http2": "False" - }, - "virtualNetworkType": "None", - "certificates": null, - "disableGateway": false, - "apiVersionConstraint": { - "minApiVersion": null - }, - "publicIpAddressId": null, - "publicNetworkAccess": "Enabled", - "privateEndpointConnections": null, - "platformVersion": "stv2" - }, - "sku": { - "name": "Standard", - "capacity": 1 - }, - "identity": null, - "zones": null, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-21T22:27:38.8851888Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-21T22:27:38.8851888Z" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/products/subproductidsdGYeN?api-version=2021-08-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "60", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "displayName": "Test Template ProductName 4" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "1043", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 23:09:31 GMT", - "ETag": "\u0022AAAAAAAACSY=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1196", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T230931Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/products/subproductidsdGYeN", - "type": "Microsoft.ApiManagement/service/products", - "name": "subproductidsdGYeN", - "properties": { - "displayName": "Test Template ProductName 4", - "description": null, - "terms": null, - "subscriptionRequired": true, - "approvalRequired": false, - "subscriptionsLimit": null, - "state": "notPublished", - "groups": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/groups/administrators", - "name": "Administrators", - "description": "Administrators is a built-in group containing the admin email account provided at the time of service creation. Its membership is managed by the system.", - "builtIn": true, - "type": "system", - "externalId": null - } - ] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ApiManagement/skus?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "48043", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 23:09:31 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T230931Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "resourceType": "service", - "name": "Basic", - "locations": [ - "australiacentral" - ], - "locationInfo": [ - { - "location": "australiacentral", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 2, - "default": 1, - "scaleType": "Manual" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Basic", - "locations": [ - "australiacentral2" - ], - "locationInfo": [ - { - "location": "australiacentral2", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 2, - "default": 1, - "scaleType": "Manual" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Basic", - "locations": [ - "australiaeast" - ], - "locationInfo": [ - { - "location": "australiaeast", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 2, - "default": 1, - "scaleType": "Manual" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Basic", - "locations": [ - "australiasoutheast" - ], - "locationInfo": [ - { - "location": "australiasoutheast", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 2, - "default": 1, - "scaleType": "Manual" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Basic", - "locations": [ - "brazilsouth" - ], - "locationInfo": [ - { - "location": "brazilsouth", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 2, - "default": 1, - "scaleType": "Manual" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Basic", - "locations": [ - "brazilsoutheast" - ], - "locationInfo": [ - { - "location": "brazilsoutheast", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 2, - "default": 1, - "scaleType": "Manual" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Basic", - "locations": [ - "canadacentral" - ], - "locationInfo": [ - { - "location": "canadacentral", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 2, - "default": 1, - "scaleType": "Manual" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Basic", - "locations": [ - "canadaeast" - ], - "locationInfo": [ - { - "location": "canadaeast", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 2, - "default": 1, - "scaleType": "Manual" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Basic", - "locations": [ - "centralindia" - ], - "locationInfo": [ - { - "location": "centralindia", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 2, - "default": 1, - "scaleType": "Manual" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Basic", - "locations": [ - "centralus" - ], - "locationInfo": [ - { - "location": "centralus", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 2, - "default": 1, - "scaleType": "Manual" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Basic", - "locations": [ - "centraluseuap" - ], - "locationInfo": [ - { - "location": "centraluseuap", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 2, - "default": 1, - "scaleType": "Manual" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Basic", - "locations": [ - "eastasia" - ], - "locationInfo": [ - { - "location": "eastasia", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 2, - "default": 1, - "scaleType": "Manual" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Basic", - "locations": [ - "eastus" - ], - "locationInfo": [ - { - "location": "eastus", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 2, - "default": 1, - "scaleType": "Manual" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Basic", - "locations": [ - "eastus2" - ], - "locationInfo": [ - { - "location": "eastus2", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 2, - "default": 1, - "scaleType": "Manual" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Basic", - "locations": [ - "francecentral" - ], - "locationInfo": [ - { - "location": "francecentral", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 2, - "default": 1, - "scaleType": "Manual" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Basic", - "locations": [ - "francesouth", - "southafricawest", - "eastus2euap" - ], - "locationInfo": [ - { - "location": "francesouth", - "zones": [], - "zoneDetails": [] - }, - { - "location": "southafricawest", - "zones": [], - "zoneDetails": [] - }, - { - "location": "eastus2euap", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 2, - "default": 1, - "scaleType": "Manual" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Basic", - "locations": [ - "germanynorth" - ], - "locationInfo": [ - { - "location": "germanynorth", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 2, - "default": 1, - "scaleType": "Manual" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Basic", - "locations": [ - "germanywestcentral" - ], - "locationInfo": [ - { - "location": "germanywestcentral", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 2, - "default": 1, - "scaleType": "Manual" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Basic", - "locations": [ - "japaneast" - ], - "locationInfo": [ - { - "location": "japaneast", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 2, - "default": 1, - "scaleType": "Manual" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Basic", - "locations": [ - "japanwest" - ], - "locationInfo": [ - { - "location": "japanwest", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 2, - "default": 1, - "scaleType": "Manual" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Basic", - "locations": [ - "koreacentral" - ], - "locationInfo": [ - { - "location": "koreacentral", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 2, - "default": 1, - "scaleType": "Manual" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Basic", - "locations": [ - "koreasouth" - ], - "locationInfo": [ - { - "location": "koreasouth", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 2, - "default": 1, - "scaleType": "Manual" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Basic", - "locations": [ - "northcentralus" - ], - "locationInfo": [ - { - "location": "northcentralus", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 2, - "default": 1, - "scaleType": "Manual" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Basic", - "locations": [ - "northeurope" - ], - "locationInfo": [ - { - "location": "northeurope", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 2, - "default": 1, - "scaleType": "Manual" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Basic", - "locations": [ - "norwayeast" - ], - "locationInfo": [ - { - "location": "norwayeast", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 2, - "default": 1, - "scaleType": "Manual" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Basic", - "locations": [ - "norwaywest" - ], - "locationInfo": [ - { - "location": "norwaywest", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 2, - "default": 1, - "scaleType": "Manual" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Basic", - "locations": [ - "southafricanorth" - ], - "locationInfo": [ - { - "location": "southafricanorth", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 2, - "default": 1, - "scaleType": "Manual" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Basic", - "locations": [ - "southcentralus" - ], - "locationInfo": [ - { - "location": "southcentralus", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 2, - "default": 1, - "scaleType": "Manual" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Basic", - "locations": [ - "southeastasia" - ], - "locationInfo": [ - { - "location": "southeastasia", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 2, - "default": 1, - "scaleType": "Manual" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Basic", - "locations": [ - "southindia" - ], - "locationInfo": [ - { - "location": "southindia", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 2, - "default": 1, - "scaleType": "Manual" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Basic", - "locations": [ - "switzerlandnorth" - ], - "locationInfo": [ - { - "location": "switzerlandnorth", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 2, - "default": 1, - "scaleType": "Manual" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Basic", - "locations": [ - "switzerlandwest" - ], - "locationInfo": [ - { - "location": "switzerlandwest", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 2, - "default": 1, - "scaleType": "Manual" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Basic", - "locations": [ - "uaecentral" - ], - "locationInfo": [ - { - "location": "uaecentral", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 2, - "default": 1, - "scaleType": "Manual" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Basic", - "locations": [ - "uaenorth" - ], - "locationInfo": [ - { - "location": "uaenorth", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 2, - "default": 1, - "scaleType": "Manual" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Basic", - "locations": [ - "uksouth" - ], - "locationInfo": [ - { - "location": "uksouth", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 2, - "default": 1, - "scaleType": "Manual" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Basic", - "locations": [ - "ukwest" - ], - "locationInfo": [ - { - "location": "ukwest", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 2, - "default": 1, - "scaleType": "Manual" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Basic", - "locations": [ - "westcentralus" - ], - "locationInfo": [ - { - "location": "westcentralus", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 2, - "default": 1, - "scaleType": "Manual" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Basic", - "locations": [ - "westeurope" - ], - "locationInfo": [ - { - "location": "westeurope", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 2, - "default": 1, - "scaleType": "Manual" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Basic", - "locations": [ - "westindia" - ], - "locationInfo": [ - { - "location": "westindia", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 2, - "default": 1, - "scaleType": "Manual" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Basic", - "locations": [ - "westus" - ], - "locationInfo": [ - { - "location": "westus", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 2, - "default": 1, - "scaleType": "Manual" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Basic", - "locations": [ - "westus2" - ], - "locationInfo": [ - { - "location": "westus2", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 2, - "default": 1, - "scaleType": "Manual" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Basic", - "locations": [ - "westus3" - ], - "locationInfo": [ - { - "location": "westus3", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 2, - "default": 1, - "scaleType": "Manual" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Consumption", - "locations": [ - "australiacentral" - ], - "locationInfo": [ - { - "location": "australiacentral", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 0, - "maximum": 0, - "default": 0, - "scaleType": "None" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Consumption", - "locations": [ - "australiacentral2" - ], - "locationInfo": [ - { - "location": "australiacentral2", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 0, - "maximum": 0, - "default": 0, - "scaleType": "None" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Consumption", - "locations": [ - "australiaeast" - ], - "locationInfo": [ - { - "location": "australiaeast", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 0, - "maximum": 0, - "default": 0, - "scaleType": "None" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Consumption", - "locations": [ - "australiasoutheast" - ], - "locationInfo": [ - { - "location": "australiasoutheast", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 0, - "maximum": 0, - "default": 0, - "scaleType": "None" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Consumption", - "locations": [ - "brazilsouth" - ], - "locationInfo": [ - { - "location": "brazilsouth", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 0, - "maximum": 0, - "default": 0, - "scaleType": "None" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Consumption", - "locations": [ - "canadacentral" - ], - "locationInfo": [ - { - "location": "canadacentral", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 0, - "maximum": 0, - "default": 0, - "scaleType": "None" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Consumption", - "locations": [ - "canadaeast" - ], - "locationInfo": [ - { - "location": "canadaeast", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 0, - "maximum": 0, - "default": 0, - "scaleType": "None" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Consumption", - "locations": [ - "centralindia" - ], - "locationInfo": [ - { - "location": "centralindia", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 0, - "maximum": 0, - "default": 0, - "scaleType": "None" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Consumption", - "locations": [ - "centralus" - ], - "locationInfo": [ - { - "location": "centralus", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 0, - "maximum": 0, - "default": 0, - "scaleType": "None" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Consumption", - "locations": [ - "centraluseuap" - ], - "locationInfo": [ - { - "location": "centraluseuap", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 0, - "maximum": 0, - "default": 0, - "scaleType": "None" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Consumption", - "locations": [ - "eastasia" - ], - "locationInfo": [ - { - "location": "eastasia", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 0, - "maximum": 0, - "default": 0, - "scaleType": "None" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Consumption", - "locations": [ - "eastus" - ], - "locationInfo": [ - { - "location": "eastus", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 0, - "maximum": 0, - "default": 0, - "scaleType": "None" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Consumption", - "locations": [ - "eastus2" - ], - "locationInfo": [ - { - "location": "eastus2", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 0, - "maximum": 0, - "default": 0, - "scaleType": "None" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Consumption", - "locations": [ - "francecentral" - ], - "locationInfo": [ - { - "location": "francecentral", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 0, - "maximum": 0, - "default": 0, - "scaleType": "None" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Consumption", - "locations": [ - "francesouth", - "southafricawest", - "eastus2euap" - ], - "locationInfo": [ - { - "location": "francesouth", - "zones": [], - "zoneDetails": [] - }, - { - "location": "southafricawest", - "zones": [], - "zoneDetails": [] - }, - { - "location": "eastus2euap", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 1, - "default": 1, - "scaleType": "None" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Consumption", - "locations": [ - "germanywestcentral" - ], - "locationInfo": [ - { - "location": "germanywestcentral", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 0, - "maximum": 0, - "default": 0, - "scaleType": "None" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Consumption", - "locations": [ - "japaneast" - ], - "locationInfo": [ - { - "location": "japaneast", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 0, - "maximum": 0, - "default": 0, - "scaleType": "None" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Consumption", - "locations": [ - "japanwest" - ], - "locationInfo": [ - { - "location": "japanwest", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 0, - "maximum": 0, - "default": 0, - "scaleType": "None" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Consumption", - "locations": [ - "koreacentral" - ], - "locationInfo": [ - { - "location": "koreacentral", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 0, - "maximum": 0, - "default": 0, - "scaleType": "None" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Consumption", - "locations": [ - "northcentralus" - ], - "locationInfo": [ - { - "location": "northcentralus", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 0, - "maximum": 0, - "default": 0, - "scaleType": "None" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Consumption", - "locations": [ - "northeurope" - ], - "locationInfo": [ - { - "location": "northeurope", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 0, - "maximum": 0, - "default": 0, - "scaleType": "None" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Consumption", - "locations": [ - "southafricanorth" - ], - "locationInfo": [ - { - "location": "southafricanorth", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 0, - "maximum": 0, - "default": 0, - "scaleType": "None" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Consumption", - "locations": [ - "southcentralus" - ], - "locationInfo": [ - { - "location": "southcentralus", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 0, - "maximum": 0, - "default": 0, - "scaleType": "None" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Consumption", - "locations": [ - "southeastasia" - ], - "locationInfo": [ - { - "location": "southeastasia", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 0, - "maximum": 0, - "default": 0, - "scaleType": "None" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Consumption", - "locations": [ - "southindia" - ], - "locationInfo": [ - { - "location": "southindia", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 0, - "maximum": 0, - "default": 0, - "scaleType": "None" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Consumption", - "locations": [ - "switzerlandnorth" - ], - "locationInfo": [ - { - "location": "switzerlandnorth", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 0, - "maximum": 0, - "default": 0, - "scaleType": "None" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Consumption", - "locations": [ - "uksouth" - ], - "locationInfo": [ - { - "location": "uksouth", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 0, - "maximum": 0, - "default": 0, - "scaleType": "None" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Consumption", - "locations": [ - "ukwest" - ], - "locationInfo": [ - { - "location": "ukwest", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 0, - "maximum": 0, - "default": 0, - "scaleType": "None" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Consumption", - "locations": [ - "westcentralus" - ], - "locationInfo": [ - { - "location": "westcentralus", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 0, - "maximum": 0, - "default": 0, - "scaleType": "None" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Consumption", - "locations": [ - "westeurope" - ], - "locationInfo": [ - { - "location": "westeurope", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 0, - "maximum": 0, - "default": 0, - "scaleType": "None" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Consumption", - "locations": [ - "westindia" - ], - "locationInfo": [ - { - "location": "westindia", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 0, - "maximum": 0, - "default": 0, - "scaleType": "None" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Consumption", - "locations": [ - "westus" - ], - "locationInfo": [ - { - "location": "westus", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 0, - "maximum": 0, - "default": 0, - "scaleType": "None" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Consumption", - "locations": [ - "westus2" - ], - "locationInfo": [ - { - "location": "westus2", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 0, - "maximum": 0, - "default": 0, - "scaleType": "None" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Consumption", - "locations": [ - "westus3" - ], - "locationInfo": [ - { - "location": "westus3", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 0, - "maximum": 0, - "default": 0, - "scaleType": "None" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Developer", - "locations": [ - "australiacentral" - ], - "locationInfo": [ - { - "location": "australiacentral", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 1, - "default": 1, - "scaleType": "None" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Developer", - "locations": [ - "australiacentral2" - ], - "locationInfo": [ - { - "location": "australiacentral2", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 1, - "default": 1, - "scaleType": "None" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Developer", - "locations": [ - "australiaeast" - ], - "locationInfo": [ - { - "location": "australiaeast", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 1, - "default": 1, - "scaleType": "None" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Developer", - "locations": [ - "australiasoutheast" - ], - "locationInfo": [ - { - "location": "australiasoutheast", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 1, - "default": 1, - "scaleType": "None" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Developer", - "locations": [ - "brazilsouth" - ], - "locationInfo": [ - { - "location": "brazilsouth", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 1, - "default": 1, - "scaleType": "None" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Developer", - "locations": [ - "brazilsoutheast" - ], - "locationInfo": [ - { - "location": "brazilsoutheast", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 1, - "default": 1, - "scaleType": "None" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Developer", - "locations": [ - "canadacentral" - ], - "locationInfo": [ - { - "location": "canadacentral", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 1, - "default": 1, - "scaleType": "None" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Developer", - "locations": [ - "canadaeast" - ], - "locationInfo": [ - { - "location": "canadaeast", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 1, - "default": 1, - "scaleType": "None" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Developer", - "locations": [ - "centralindia" - ], - "locationInfo": [ - { - "location": "centralindia", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 1, - "default": 1, - "scaleType": "None" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Developer", - "locations": [ - "centralus" - ], - "locationInfo": [ - { - "location": "centralus", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 1, - "default": 1, - "scaleType": "None" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Developer", - "locations": [ - "centraluseuap" - ], - "locationInfo": [ - { - "location": "centraluseuap", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 1, - "default": 1, - "scaleType": "None" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Developer", - "locations": [ - "eastasia" - ], - "locationInfo": [ - { - "location": "eastasia", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 1, - "default": 1, - "scaleType": "None" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Developer", - "locations": [ - "eastus" - ], - "locationInfo": [ - { - "location": "eastus", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 1, - "default": 1, - "scaleType": "None" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Developer", - "locations": [ - "eastus2" - ], - "locationInfo": [ - { - "location": "eastus2", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 1, - "default": 1, - "scaleType": "None" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Developer", - "locations": [ - "francecentral" - ], - "locationInfo": [ - { - "location": "francecentral", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 1, - "default": 1, - "scaleType": "None" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Developer", - "locations": [ - "francesouth", - "southafricawest", - "eastus2euap" - ], - "locationInfo": [ - { - "location": "francesouth", - "zones": [], - "zoneDetails": [] - }, - { - "location": "southafricawest", - "zones": [], - "zoneDetails": [] - }, - { - "location": "eastus2euap", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 1, - "default": 1, - "scaleType": "None" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Developer", - "locations": [ - "germanynorth" - ], - "locationInfo": [ - { - "location": "germanynorth", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 1, - "default": 1, - "scaleType": "None" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Developer", - "locations": [ - "germanywestcentral" - ], - "locationInfo": [ - { - "location": "germanywestcentral", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 1, - "default": 1, - "scaleType": "None" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Developer", - "locations": [ - "japaneast" - ], - "locationInfo": [ - { - "location": "japaneast", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 1, - "default": 1, - "scaleType": "None" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Developer", - "locations": [ - "japanwest" - ], - "locationInfo": [ - { - "location": "japanwest", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 1, - "default": 1, - "scaleType": "None" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Developer", - "locations": [ - "koreacentral" - ], - "locationInfo": [ - { - "location": "koreacentral", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 1, - "default": 1, - "scaleType": "None" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Developer", - "locations": [ - "koreasouth" - ], - "locationInfo": [ - { - "location": "koreasouth", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 1, - "default": 1, - "scaleType": "None" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Developer", - "locations": [ - "northcentralus" - ], - "locationInfo": [ - { - "location": "northcentralus", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 1, - "default": 1, - "scaleType": "None" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Developer", - "locations": [ - "northeurope" - ], - "locationInfo": [ - { - "location": "northeurope", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 1, - "default": 1, - "scaleType": "None" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Developer", - "locations": [ - "norwayeast" - ], - "locationInfo": [ - { - "location": "norwayeast", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 1, - "default": 1, - "scaleType": "None" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Developer", - "locations": [ - "norwaywest" - ], - "locationInfo": [ - { - "location": "norwaywest", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 1, - "default": 1, - "scaleType": "None" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Developer", - "locations": [ - "southafricanorth" - ], - "locationInfo": [ - { - "location": "southafricanorth", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 1, - "default": 1, - "scaleType": "None" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Developer", - "locations": [ - "southcentralus" - ], - "locationInfo": [ - { - "location": "southcentralus", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 1, - "default": 1, - "scaleType": "None" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Developer", - "locations": [ - "southeastasia" - ], - "locationInfo": [ - { - "location": "southeastasia", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 1, - "default": 1, - "scaleType": "None" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Developer", - "locations": [ - "southindia" - ], - "locationInfo": [ - { - "location": "southindia", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 1, - "default": 1, - "scaleType": "None" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Developer", - "locations": [ - "switzerlandnorth" - ], - "locationInfo": [ - { - "location": "switzerlandnorth", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 1, - "default": 1, - "scaleType": "None" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Developer", - "locations": [ - "switzerlandwest" - ], - "locationInfo": [ - { - "location": "switzerlandwest", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 1, - "default": 1, - "scaleType": "None" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Developer", - "locations": [ - "uaecentral" - ], - "locationInfo": [ - { - "location": "uaecentral", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 1, - "default": 1, - "scaleType": "None" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Developer", - "locations": [ - "uaenorth" - ], - "locationInfo": [ - { - "location": "uaenorth", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 1, - "default": 1, - "scaleType": "None" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Developer", - "locations": [ - "uksouth" - ], - "locationInfo": [ - { - "location": "uksouth", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 1, - "default": 1, - "scaleType": "None" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Developer", - "locations": [ - "ukwest" - ], - "locationInfo": [ - { - "location": "ukwest", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 1, - "default": 1, - "scaleType": "None" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Developer", - "locations": [ - "westcentralus" - ], - "locationInfo": [ - { - "location": "westcentralus", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 1, - "default": 1, - "scaleType": "None" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Developer", - "locations": [ - "westeurope" - ], - "locationInfo": [ - { - "location": "westeurope", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 1, - "default": 1, - "scaleType": "None" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Developer", - "locations": [ - "westindia" - ], - "locationInfo": [ - { - "location": "westindia", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 1, - "default": 1, - "scaleType": "None" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Developer", - "locations": [ - "westus" - ], - "locationInfo": [ - { - "location": "westus", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 1, - "default": 1, - "scaleType": "None" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Developer", - "locations": [ - "westus2" - ], - "locationInfo": [ - { - "location": "westus2", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 1, - "default": 1, - "scaleType": "None" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Developer", - "locations": [ - "westus3" - ], - "locationInfo": [ - { - "location": "westus3", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 1, - "default": 1, - "scaleType": "None" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Isolated", - "locations": [ - "southcentralus" - ], - "locationInfo": [ - { - "location": "southcentralus", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 1, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Premium", - "locations": [ - "australiacentral" - ], - "locationInfo": [ - { - "location": "australiacentral", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 12, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Premium", - "locations": [ - "australiacentral2" - ], - "locationInfo": [ - { - "location": "australiacentral2", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 12, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Premium", - "locations": [ - "australiaeast" - ], - "locationInfo": [ - { - "location": "australiaeast", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 12, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Premium", - "locations": [ - "australiasoutheast" - ], - "locationInfo": [ - { - "location": "australiasoutheast", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 12, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Premium", - "locations": [ - "brazilsouth" - ], - "locationInfo": [ - { - "location": "brazilsouth", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 12, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Premium", - "locations": [ - "brazilsoutheast" - ], - "locationInfo": [ - { - "location": "brazilsoutheast", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 12, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Premium", - "locations": [ - "canadacentral" - ], - "locationInfo": [ - { - "location": "canadacentral", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 12, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Premium", - "locations": [ - "canadaeast" - ], - "locationInfo": [ - { - "location": "canadaeast", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 12, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Premium", - "locations": [ - "centralindia" - ], - "locationInfo": [ - { - "location": "centralindia", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 12, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Premium", - "locations": [ - "centralus" - ], - "locationInfo": [ - { - "location": "centralus", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 12, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Premium", - "locations": [ - "eastasia" - ], - "locationInfo": [ - { - "location": "eastasia", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 12, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Premium", - "locations": [ - "eastus" - ], - "locationInfo": [ - { - "location": "eastus", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 12, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Premium", - "locations": [ - "eastus2" - ], - "locationInfo": [ - { - "location": "eastus2", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 12, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Premium", - "locations": [ - "francecentral" - ], - "locationInfo": [ - { - "location": "francecentral", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 12, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Premium", - "locations": [ - "francesouth", - "southafricawest", - "eastus2euap" - ], - "locationInfo": [ - { - "location": "francesouth", - "zones": [], - "zoneDetails": [] - }, - { - "location": "southafricawest", - "zones": [], - "zoneDetails": [] - }, - { - "location": "eastus2euap", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 12, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Premium", - "locations": [ - "germanynorth" - ], - "locationInfo": [ - { - "location": "germanynorth", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 12, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Premium", - "locations": [ - "germanywestcentral" - ], - "locationInfo": [ - { - "location": "germanywestcentral", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 12, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Premium", - "locations": [ - "japaneast" - ], - "locationInfo": [ - { - "location": "japaneast", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 12, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Premium", - "locations": [ - "japanwest" - ], - "locationInfo": [ - { - "location": "japanwest", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 12, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Premium", - "locations": [ - "koreacentral" - ], - "locationInfo": [ - { - "location": "koreacentral", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 12, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Premium", - "locations": [ - "koreasouth" - ], - "locationInfo": [ - { - "location": "koreasouth", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 12, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Premium", - "locations": [ - "northcentralus" - ], - "locationInfo": [ - { - "location": "northcentralus", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 12, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Premium", - "locations": [ - "northeurope" - ], - "locationInfo": [ - { - "location": "northeurope", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 12, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Premium", - "locations": [ - "norwayeast" - ], - "locationInfo": [ - { - "location": "norwayeast", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 12, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Premium", - "locations": [ - "norwaywest" - ], - "locationInfo": [ - { - "location": "norwaywest", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 12, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Premium", - "locations": [ - "southafricanorth" - ], - "locationInfo": [ - { - "location": "southafricanorth", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 12, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Premium", - "locations": [ - "southcentralus" - ], - "locationInfo": [ - { - "location": "southcentralus", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 12, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Premium", - "locations": [ - "southeastasia" - ], - "locationInfo": [ - { - "location": "southeastasia", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 12, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Premium", - "locations": [ - "southindia" - ], - "locationInfo": [ - { - "location": "southindia", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 12, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Premium", - "locations": [ - "switzerlandnorth" - ], - "locationInfo": [ - { - "location": "switzerlandnorth", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 12, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Premium", - "locations": [ - "switzerlandwest" - ], - "locationInfo": [ - { - "location": "switzerlandwest", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 12, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Premium", - "locations": [ - "uaecentral" - ], - "locationInfo": [ - { - "location": "uaecentral", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 12, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Premium", - "locations": [ - "uaenorth" - ], - "locationInfo": [ - { - "location": "uaenorth", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 12, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Premium", - "locations": [ - "uksouth" - ], - "locationInfo": [ - { - "location": "uksouth", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 12, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Premium", - "locations": [ - "ukwest" - ], - "locationInfo": [ - { - "location": "ukwest", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 12, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Premium", - "locations": [ - "westcentralus" - ], - "locationInfo": [ - { - "location": "westcentralus", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 12, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Premium", - "locations": [ - "westeurope" - ], - "locationInfo": [ - { - "location": "westeurope", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 12, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Premium", - "locations": [ - "westindia" - ], - "locationInfo": [ - { - "location": "westindia", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 12, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Premium", - "locations": [ - "westus" - ], - "locationInfo": [ - { - "location": "westus", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 12, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Premium", - "locations": [ - "westus2" - ], - "locationInfo": [ - { - "location": "westus2", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 12, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Premium", - "locations": [ - "westus3" - ], - "locationInfo": [ - { - "location": "westus3", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 12, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Standard", - "locations": [ - "australiacentral" - ], - "locationInfo": [ - { - "location": "australiacentral", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 4, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Standard", - "locations": [ - "australiacentral2" - ], - "locationInfo": [ - { - "location": "australiacentral2", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 4, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Standard", - "locations": [ - "australiaeast" - ], - "locationInfo": [ - { - "location": "australiaeast", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 4, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Standard", - "locations": [ - "australiasoutheast" - ], - "locationInfo": [ - { - "location": "australiasoutheast", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 4, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Standard", - "locations": [ - "brazilsouth" - ], - "locationInfo": [ - { - "location": "brazilsouth", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 4, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Standard", - "locations": [ - "brazilsoutheast" - ], - "locationInfo": [ - { - "location": "brazilsoutheast", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 4, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Standard", - "locations": [ - "canadacentral" - ], - "locationInfo": [ - { - "location": "canadacentral", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 4, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Standard", - "locations": [ - "canadaeast" - ], - "locationInfo": [ - { - "location": "canadaeast", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 4, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Standard", - "locations": [ - "centralindia" - ], - "locationInfo": [ - { - "location": "centralindia", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 4, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Standard", - "locations": [ - "centralus" - ], - "locationInfo": [ - { - "location": "centralus", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 4, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Standard", - "locations": [ - "centraluseuap" - ], - "locationInfo": [ - { - "location": "centraluseuap", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 4, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Standard", - "locations": [ - "eastasia" - ], - "locationInfo": [ - { - "location": "eastasia", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 4, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Standard", - "locations": [ - "eastus" - ], - "locationInfo": [ - { - "location": "eastus", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 4, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Standard", - "locations": [ - "eastus2" - ], - "locationInfo": [ - { - "location": "eastus2", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 4, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Standard", - "locations": [ - "francecentral" - ], - "locationInfo": [ - { - "location": "francecentral", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 4, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Standard", - "locations": [ - "francesouth", - "southafricawest", - "eastus2euap" - ], - "locationInfo": [ - { - "location": "francesouth", - "zones": [], - "zoneDetails": [] - }, - { - "location": "southafricawest", - "zones": [], - "zoneDetails": [] - }, - { - "location": "eastus2euap", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 4, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Standard", - "locations": [ - "germanynorth" - ], - "locationInfo": [ - { - "location": "germanynorth", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 4, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Standard", - "locations": [ - "germanywestcentral" - ], - "locationInfo": [ - { - "location": "germanywestcentral", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 4, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Standard", - "locations": [ - "japaneast" - ], - "locationInfo": [ - { - "location": "japaneast", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 4, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Standard", - "locations": [ - "japanwest" - ], - "locationInfo": [ - { - "location": "japanwest", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 4, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Standard", - "locations": [ - "koreacentral" - ], - "locationInfo": [ - { - "location": "koreacentral", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 4, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Standard", - "locations": [ - "koreasouth" - ], - "locationInfo": [ - { - "location": "koreasouth", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 4, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Standard", - "locations": [ - "northcentralus" - ], - "locationInfo": [ - { - "location": "northcentralus", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 4, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Standard", - "locations": [ - "northeurope" - ], - "locationInfo": [ - { - "location": "northeurope", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 4, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Standard", - "locations": [ - "norwayeast" - ], - "locationInfo": [ - { - "location": "norwayeast", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 4, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Standard", - "locations": [ - "norwaywest" - ], - "locationInfo": [ - { - "location": "norwaywest", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 4, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Standard", - "locations": [ - "southafricanorth" - ], - "locationInfo": [ - { - "location": "southafricanorth", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 4, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Standard", - "locations": [ - "southcentralus" - ], - "locationInfo": [ - { - "location": "southcentralus", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 4, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Standard", - "locations": [ - "southeastasia" - ], - "locationInfo": [ - { - "location": "southeastasia", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 4, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Standard", - "locations": [ - "southindia" - ], - "locationInfo": [ - { - "location": "southindia", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 4, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Standard", - "locations": [ - "switzerlandnorth" - ], - "locationInfo": [ - { - "location": "switzerlandnorth", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 4, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Standard", - "locations": [ - "switzerlandwest" - ], - "locationInfo": [ - { - "location": "switzerlandwest", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 4, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Standard", - "locations": [ - "uaecentral" - ], - "locationInfo": [ - { - "location": "uaecentral", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 4, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Standard", - "locations": [ - "uaenorth" - ], - "locationInfo": [ - { - "location": "uaenorth", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 4, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Standard", - "locations": [ - "uksouth" - ], - "locationInfo": [ - { - "location": "uksouth", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 4, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Standard", - "locations": [ - "ukwest" - ], - "locationInfo": [ - { - "location": "ukwest", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 4, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Standard", - "locations": [ - "westcentralus" - ], - "locationInfo": [ - { - "location": "westcentralus", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 4, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Standard", - "locations": [ - "westeurope" - ], - "locationInfo": [ - { - "location": "westeurope", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 4, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Standard", - "locations": [ - "westindia" - ], - "locationInfo": [ - { - "location": "westindia", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 4, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Standard", - "locations": [ - "westus" - ], - "locationInfo": [ - { - "location": "westus", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 4, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Standard", - "locations": [ - "westus2" - ], - "locationInfo": [ - { - "location": "westus2", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 4, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - }, - { - "resourceType": "service", - "name": "Standard", - "locations": [ - "westus3" - ], - "locationInfo": [ - { - "location": "westus3", - "zones": [], - "zoneDetails": [] - } - ], - "capacity": { - "minimum": 1, - "maximum": 4, - "default": 1, - "scaleType": "Automatic" - }, - "restrictions": [] - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/subscriptions/sidsdGYeN?api-version=2021-08-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "221", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "displayName": "sidsdGYeN", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/products/subproductidsdGYeN" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "828", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 23:09:32 GMT", - "ETag": "\u0022AAAAAAAACS8=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1195", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T230933Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/subscriptions/sidsdGYeN", - "type": "Microsoft.ApiManagement/service/subscriptions", - "name": "sidsdGYeN", - "properties": { - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/products/subproductidsdGYeN", - "displayName": "sidsdGYeN", - "state": "active", - "createdDate": "2022-10-21T23:09:33.0714968Z", - "startDate": null, - "expirationDate": null, - "endDate": null, - "notificationDate": null, - "primaryKey": "000000000000", - "secondaryKey": "000000000000", - "stateComment": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/subscriptions/sidsdGYeN?api-version=2021-08-01", - "RequestMethod": "HEAD", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 23:09:33 GMT", - "ETag": "\u0022AAAAAAAACS8=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T230933Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/subscriptions?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 23:09:34 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11930", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T230934Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/subscriptions/63531dacde804a0058070001", - "type": "Microsoft.ApiManagement/service/subscriptions", - "name": "63531dacde804a0058070001", - "properties": { - "ownerId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/users/1", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/products/starter", - "displayName": null, - "state": "active", - "createdDate": "2022-10-21T22:31:08.003Z", - "startDate": null, - "expirationDate": null, - "endDate": null, - "notificationDate": null, - "stateComment": null - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/subscriptions/63531dacde804a0058070002", - "type": "Microsoft.ApiManagement/service/subscriptions", - "name": "63531dacde804a0058070002", - "properties": { - "ownerId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/users/1", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/products/unlimited", - "displayName": null, - "state": "active", - "createdDate": "2022-10-21T22:31:08.087Z", - "startDate": null, - "expirationDate": null, - "endDate": null, - "notificationDate": null, - "stateComment": null - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/subscriptions/master", - "type": "Microsoft.ApiManagement/service/subscriptions", - "name": "master", - "properties": { - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/", - "displayName": "Built-in all-access subscription", - "state": "active", - "createdDate": "2022-10-21T22:56:47.73Z", - "startDate": null, - "expirationDate": null, - "endDate": null, - "notificationDate": null, - "stateComment": null, - "allowTracing": false - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/subscriptions/635326aa217d201b28fe386a", - "type": "Microsoft.ApiManagement/service/subscriptions", - "name": "635326aa217d201b28fe386a", - "properties": { - "ownerId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/users/1", - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/products/subproductidsdGYeN", - "displayName": null, - "state": "active", - "createdDate": "2022-10-21T23:09:30.71Z", - "startDate": "2022-10-21T00:00:00Z", - "expirationDate": null, - "endDate": null, - "notificationDate": null, - "stateComment": null, - "allowTracing": false - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/subscriptions/sidsdGYeN", - "type": "Microsoft.ApiManagement/service/subscriptions", - "name": "sidsdGYeN", - "properties": { - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/products/subproductidsdGYeN", - "displayName": "sidsdGYeN", - "state": "active", - "createdDate": "2022-10-21T23:09:33.07Z", - "startDate": null, - "expirationDate": null, - "endDate": null, - "notificationDate": null, - "stateComment": null - } - } - ], - "count": 5 - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/subscriptions/sidsdGYeN?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 23:09:34 GMT", - "ETag": "\u0022AAAAAAAACS8=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11929", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T230935Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/subscriptions/sidsdGYeN", - "type": "Microsoft.ApiManagement/service/subscriptions", - "name": "sidsdGYeN", - "properties": { - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/products/subproductidsdGYeN", - "displayName": "sidsdGYeN", - "state": "active", - "createdDate": "2022-10-21T23:09:33.07Z", - "startDate": null, - "expirationDate": null, - "endDate": null, - "notificationDate": null, - "stateComment": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/subscriptions/sidsdGYeN?api-version=2021-08-01", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "42", - "Content-Type": "application/json", - "If-Match": "*", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "displayName": "sidsdGYeN" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 23:09:36 GMT", - "ETag": "\u0022AAAAAAAACS8=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1194", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T230936Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/subscriptions/sidsdGYeN", - "type": "Microsoft.ApiManagement/service/subscriptions", - "name": "sidsdGYeN", - "properties": { - "scope": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/products/subproductidsdGYeN", - "displayName": "sidsdGYeN", - "state": "active", - "createdDate": "2022-10-21T23:09:33.07Z", - "startDate": null, - "expirationDate": null, - "endDate": null, - "notificationDate": null, - "primaryKey": "000000000000", - "secondaryKey": "000000000000", - "stateComment": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/subscriptions/sidsdGYeN/regeneratePrimaryKey?api-version=2021-08-01", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Date": "Fri, 21 Oct 2022 23:09:37 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T230937Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/subscriptions/sidsdGYeN/regenerateSecondaryKey?api-version=2021-08-01", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Date": "Fri, 21 Oct 2022 23:09:37 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T230938Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/subscriptions/sidsdGYeN/listSecrets?api-version=2021-08-01", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 23:09:38 GMT", - "ETag": "\u0022AAAAAAAACTY=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1197", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T230938Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "primaryKey": "000000000000", - "secondaryKey": "000000000000" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/subscriptions/sidsdGYeN?api-version=2021-08-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "If-Match": "*", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 23:09:39 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14997", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T230939Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/settings?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 23:09:39 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11928", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T230940Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [], - "count": 0 - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/settings/public?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 23:09:40 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11927", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T230940Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicesubsdGYeN/settings/public", - "type": "Microsoft.ApiManagement/service/settings", - "name": "public", - "properties": { - "settings": { - "CustomPortalSettings.UserRegistrationTerms": null, - "CustomPortalSettings.UserRegistrationTermsEnabled": "False", - "CustomPortalSettings.UserRegistrationTermsConsentRequired": "False", - "CustomPortalSettings.DelegationEnabled": "False", - "CustomPortalSettings.DelegationUrl": "", - "CustomPortalSettings.DelegatedSubscriptionEnabled": "False" - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 23:09:42 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ2NDEtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14996", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T230943Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": { - "recordingRandomSeed": "1666342412" - } -} diff --git a/sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimtagsTestSuite.json b/sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimtagsTestSuite.json deleted file mode 100644 index 722be86eaca2..000000000000 --- a/sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimtagsTestSuite.json +++ /dev/null @@ -1,1586 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 23:09:48 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1193", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T230948Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "westus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN?api-version=2021-08-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "172", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus", - "properties": { - "publisherEmail": "foo@contoso.com", - "publisherName": "foo" - }, - "sku": { - "capacity": 1, - "name": "Standard" - }, - "tags": { - "Name": "Contoso", - "Test": "User" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "1756", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 23:09:55 GMT", - "ETag": "\u0022AAAAAAA92vw=\u0022", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0YWdzc2RHWWVOX0FjdF85MTI3NWU3NQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1192", - "x-ms-request-id": [ - "00000000-0000-0000-0000-000000000000", - "74e07e8c-faf4-4d2e-94ef-3845dee74dad" - ], - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T230956Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN", - "name": "servicetagssdGYeN", - "type": "Microsoft.ApiManagement/service", - "tags": { - "Name": "Contoso", - "Test": "User" - }, - "location": "West US", - "etag": "AAAAAAA92vw=", - "properties": { - "publisherEmail": "foo@contoso.com", - "publisherName": "foo", - "notificationSenderEmail": "apimgmt-noreply@mail.windowsazure.com", - "provisioningState": "Created", - "targetProvisioningState": "Activating", - "createdAtUtc": "2022-10-21T23:09:50.9018631Z", - "gatewayUrl": "https://servicetagssdgyen.azure-api.net", - "gatewayRegionalUrl": null, - "portalUrl": null, - "developerPortalUrl": null, - "managementApiUrl": null, - "scmUrl": null, - "hostnameConfigurations": [ - { - "type": "Proxy", - "hostName": "servicetagssdgyen.azure-api.net", - "encodedCertificate": null, - "keyVaultId": null, - "certificatePassword": null, - "negotiateClientCertificate": false, - "certificate": null, - "defaultSslBinding": true, - "identityClientId": null, - "certificateSource": "BuiltIn", - "certificateStatus": null - } - ], - "publicIPAddresses": null, - "privateIPAddresses": null, - "additionalLocations": null, - "virtualNetworkConfiguration": null, - "customProperties": null, - "virtualNetworkType": "None", - "certificates": null, - "disableGateway": false, - "apiVersionConstraint": { - "minApiVersion": null - }, - "publicIpAddressId": null, - "publicNetworkAccess": "Enabled", - "privateEndpointConnections": null, - "platformVersion": "undetermined" - }, - "sku": { - "name": "Standard", - "capacity": 1 - }, - "identity": null, - "zones": null, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-21T23:09:50.801326Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-21T23:09:50.801326Z" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0YWdzc2RHWWVOX0FjdF85MTI3NWU3NQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 23:10:56 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0YWdzc2RHWWVOX0FjdF85MTI3NWU3NQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T231057Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0YWdzc2RHWWVOX0FjdF85MTI3NWU3NQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 23:11:58 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0YWdzc2RHWWVOX0FjdF85MTI3NWU3NQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11930", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T231158Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0YWdzc2RHWWVOX0FjdF85MTI3NWU3NQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 23:12:58 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0YWdzc2RHWWVOX0FjdF85MTI3NWU3NQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11929", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T231258Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0YWdzc2RHWWVOX0FjdF85MTI3NWU3NQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 23:13:58 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0YWdzc2RHWWVOX0FjdF85MTI3NWU3NQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11928", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T231359Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0YWdzc2RHWWVOX0FjdF85MTI3NWU3NQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 23:14:59 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0YWdzc2RHWWVOX0FjdF85MTI3NWU3NQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T231500Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0YWdzc2RHWWVOX0FjdF85MTI3NWU3NQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 23:16:00 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0YWdzc2RHWWVOX0FjdF85MTI3NWU3NQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11930", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T231601Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0YWdzc2RHWWVOX0FjdF85MTI3NWU3NQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 23:17:02 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0YWdzc2RHWWVOX0FjdF85MTI3NWU3NQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11929", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T231702Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0YWdzc2RHWWVOX0FjdF85MTI3NWU3NQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 23:18:03 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0YWdzc2RHWWVOX0FjdF85MTI3NWU3NQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11928", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T231803Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0YWdzc2RHWWVOX0FjdF85MTI3NWU3NQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 23:19:04 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0YWdzc2RHWWVOX0FjdF85MTI3NWU3NQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11927", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T231905Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0YWdzc2RHWWVOX0FjdF85MTI3NWU3NQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 23:20:05 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0YWdzc2RHWWVOX0FjdF85MTI3NWU3NQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T232006Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0YWdzc2RHWWVOX0FjdF85MTI3NWU3NQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 23:21:07 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0YWdzc2RHWWVOX0FjdF85MTI3NWU3NQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11930", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T232107Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0YWdzc2RHWWVOX0FjdF85MTI3NWU3NQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 23:22:07 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0YWdzc2RHWWVOX0FjdF85MTI3NWU3NQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11929", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T232208Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0YWdzc2RHWWVOX0FjdF85MTI3NWU3NQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 23:23:08 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0YWdzc2RHWWVOX0FjdF85MTI3NWU3NQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11928", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T232308Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0YWdzc2RHWWVOX0FjdF85MTI3NWU3NQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 23:24:09 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0YWdzc2RHWWVOX0FjdF85MTI3NWU3NQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11927", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T232409Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0YWdzc2RHWWVOX0FjdF85MTI3NWU3NQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 23:25:10 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0YWdzc2RHWWVOX0FjdF85MTI3NWU3NQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T232511Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0YWdzc2RHWWVOX0FjdF85MTI3NWU3NQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 23:26:11 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0YWdzc2RHWWVOX0FjdF85MTI3NWU3NQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11930", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T232612Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0YWdzc2RHWWVOX0FjdF85MTI3NWU3NQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 23:27:12 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0YWdzc2RHWWVOX0FjdF85MTI3NWU3NQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11929", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T232713Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0YWdzc2RHWWVOX0FjdF85MTI3NWU3NQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 23:28:13 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0YWdzc2RHWWVOX0FjdF85MTI3NWU3NQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11928", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T232814Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0YWdzc2RHWWVOX0FjdF85MTI3NWU3NQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 23:29:14 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0YWdzc2RHWWVOX0FjdF85MTI3NWU3NQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11927", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T232915Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0YWdzc2RHWWVOX0FjdF85MTI3NWU3NQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 23:30:16 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0YWdzc2RHWWVOX0FjdF85MTI3NWU3NQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T233017Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0YWdzc2RHWWVOX0FjdF85MTI3NWU3NQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 23:31:18 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0YWdzc2RHWWVOX0FjdF85MTI3NWU3NQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T233118Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0YWdzc2RHWWVOX0FjdF85MTI3NWU3NQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 23:32:19 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0YWdzc2RHWWVOX0FjdF85MTI3NWU3NQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T233219Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0YWdzc2RHWWVOX0FjdF85MTI3NWU3NQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 23:33:19 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0YWdzc2RHWWVOX0FjdF85MTI3NWU3NQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T233320Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0YWdzc2RHWWVOX0FjdF85MTI3NWU3NQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 23:34:21 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0YWdzc2RHWWVOX0FjdF85MTI3NWU3NQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T233421Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0YWdzc2RHWWVOX0FjdF85MTI3NWU3NQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 23:35:22 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0YWdzc2RHWWVOX0FjdF85MTI3NWU3NQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T233522Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0YWdzc2RHWWVOX0FjdF85MTI3NWU3NQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 23:36:22 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0YWdzc2RHWWVOX0FjdF85MTI3NWU3NQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T233622Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0YWdzc2RHWWVOX0FjdF85MTI3NWU3NQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 23:37:23 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0YWdzc2RHWWVOX0FjdF85MTI3NWU3NQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T233724Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0YWdzc2RHWWVOX0FjdF85MTI3NWU3NQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 23:38:24 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0YWdzc2RHWWVOX0FjdF85MTI3NWU3NQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T233825Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0YWdzc2RHWWVOX0FjdF85MTI3NWU3NQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 23:39:26 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0YWdzc2RHWWVOX0FjdF85MTI3NWU3NQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T233926Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0YWdzc2RHWWVOX0FjdF85MTI3NWU3NQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 23:40:27 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0YWdzc2RHWWVOX0FjdF85MTI3NWU3NQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T234027Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0YWdzc2RHWWVOX0FjdF85MTI3NWU3NQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 23:41:28 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0YWdzc2RHWWVOX0FjdF85MTI3NWU3NQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T234128Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0YWdzc2RHWWVOX0FjdF85MTI3NWU3NQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 23:42:29 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0YWdzc2RHWWVOX0FjdF85MTI3NWU3NQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T234230Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0YWdzc2RHWWVOX0FjdF85MTI3NWU3NQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 23:43:30 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0YWdzc2RHWWVOX0FjdF85MTI3NWU3NQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T234331Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0YWdzc2RHWWVOX0FjdF85MTI3NWU3NQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 23:44:31 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0YWdzc2RHWWVOX0FjdF85MTI3NWU3NQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T234432Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0YWdzc2RHWWVOX0FjdF85MTI3NWU3NQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 23:45:32 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0YWdzc2RHWWVOX0FjdF85MTI3NWU3NQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T234533Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0YWdzc2RHWWVOX0FjdF85MTI3NWU3NQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 23:46:33 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0YWdzc2RHWWVOX0FjdF85MTI3NWU3NQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T234634Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0YWdzc2RHWWVOX0FjdF85MTI3NWU3NQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 23:47:34 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0YWdzc2RHWWVOX0FjdF85MTI3NWU3NQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T234735Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0YWdzc2RHWWVOX0FjdF85MTI3NWU3NQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 23:48:35 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0YWdzc2RHWWVOX0FjdF85MTI3NWU3NQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T234836Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0YWdzc2RHWWVOX0FjdF85MTI3NWU3NQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 23:49:37 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11930", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T234937Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN", - "name": "servicetagssdGYeN", - "type": "Microsoft.ApiManagement/service", - "tags": { - "Name": "Contoso", - "Test": "User" - }, - "location": "West US", - "etag": "AAAAAAA920I=", - "properties": { - "publisherEmail": "foo@contoso.com", - "publisherName": "foo", - "notificationSenderEmail": "apimgmt-noreply@mail.windowsazure.com", - "provisioningState": "Succeeded", - "targetProvisioningState": "", - "createdAtUtc": "2022-10-21T23:09:50.9018631Z", - "gatewayUrl": "https://servicetagssdgyen.azure-api.net", - "gatewayRegionalUrl": "https://servicetagssdgyen-westus-01.regional.azure-api.net", - "portalUrl": "https://servicetagssdgyen.portal.azure-api.net", - "developerPortalUrl": "https://servicetagssdgyen.developer.azure-api.net", - "managementApiUrl": "https://servicetagssdgyen.management.azure-api.net", - "scmUrl": "https://servicetagssdgyen.scm.azure-api.net", - "hostnameConfigurations": [ - { - "type": "Proxy", - "hostName": "servicetagssdgyen.azure-api.net", - "encodedCertificate": null, - "keyVaultId": null, - "certificatePassword": null, - "negotiateClientCertificate": false, - "certificate": null, - "defaultSslBinding": true, - "identityClientId": null, - "certificateSource": "BuiltIn", - "certificateStatus": null - } - ], - "publicIPAddresses": [ - "20.237.139.103" - ], - "privateIPAddresses": null, - "additionalLocations": null, - "virtualNetworkConfiguration": null, - "customProperties": { - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Ssl30": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TripleDes168": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls10": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls11": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Ssl30": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Protocols.Server.Http2": "False" - }, - "virtualNetworkType": "None", - "certificates": null, - "disableGateway": false, - "apiVersionConstraint": { - "minApiVersion": null - }, - "publicIpAddressId": null, - "publicNetworkAccess": "Enabled", - "privateEndpointConnections": null, - "platformVersion": "stv2" - }, - "sku": { - "name": "Standard", - "capacity": 1 - }, - "identity": null, - "zones": null, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-21T23:09:50.801326Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-21T23:09:50.801326Z" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/tags/tagsidsdGYeN?api-version=2021-08-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "45", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "displayName": "tagsidsdGYeN" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "313", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 23:49:39 GMT", - "ETag": "\u0022AAAAAAAACSM=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1194", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T234939Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/tags/tagsidsdGYeN", - "type": "Microsoft.ApiManagement/service/tags", - "name": "tagsidsdGYeN", - "properties": { - "displayName": "tagsidsdGYeN" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/tags?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 23:49:40 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11929", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T234940Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/tags/tagsidsdGYeN", - "type": "Microsoft.ApiManagement/service/tags", - "name": "tagsidsdGYeN", - "properties": { - "displayName": "tagsidsdGYeN" - } - } - ], - "count": 1 - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/tags/tagsidsdGYeN?api-version=2021-08-01", - "RequestMethod": "HEAD", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 23:49:40 GMT", - "ETag": "\u0022AAAAAAAACSM=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11928", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T234941Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/tags/tagsidsdGYeN?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 23:49:41 GMT", - "ETag": "\u0022AAAAAAAACSM=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11927", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T234941Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/tags/tagsidsdGYeN", - "type": "Microsoft.ApiManagement/service/tags", - "name": "tagsidsdGYeN", - "properties": { - "displayName": "tagsidsdGYeN" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/tags/tagsidsdGYeN?api-version=2021-08-01", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "52", - "Content-Type": "application/json", - "If-Match": "*", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "displayName": "update_tagsidsdGYeN" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 23:49:41 GMT", - "ETag": "\u0022AAAAAAAACSQ=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1193", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T234942Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/tags/tagsidsdGYeN", - "type": "Microsoft.ApiManagement/service/tags", - "name": "tagsidsdGYeN", - "properties": { - "displayName": "update_tagsidsdGYeN" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetagssdGYeN/tags/tagsidsdGYeN?api-version=2021-08-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "If-Match": "*", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 23:49:42 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14997", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T234943Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 23:49:46 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ3NDctV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14996", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T234946Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": { - "recordingRandomSeed": "1666342412" - } -} diff --git a/sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimtenantTestSuite.json b/sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimtenantTestSuite.json deleted file mode 100644 index 4c160d92bd01..000000000000 --- a/sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimtenantTestSuite.json +++ /dev/null @@ -1,2158 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 23:49:50 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1192", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T234951Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "westus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN?api-version=2021-08-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "172", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus", - "properties": { - "publisherEmail": "foo@contoso.com", - "publisherName": "foo" - }, - "sku": { - "capacity": 1, - "name": "Standard" - }, - "tags": { - "Name": "Contoso", - "Test": "User" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "1766", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 21 Oct 2022 23:49:57 GMT", - "ETag": "\u0022AAAAAAA920U=\u0022", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1191", - "x-ms-request-id": [ - "00000000-0000-0000-0000-000000000000", - "a3d22943-b81e-4c89-b05b-b6b6926eaf51" - ], - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T234957Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN", - "name": "servicetenantsdGYeN", - "type": "Microsoft.ApiManagement/service", - "tags": { - "Name": "Contoso", - "Test": "User" - }, - "location": "West US", - "etag": "AAAAAAA920U=", - "properties": { - "publisherEmail": "foo@contoso.com", - "publisherName": "foo", - "notificationSenderEmail": "apimgmt-noreply@mail.windowsazure.com", - "provisioningState": "Created", - "targetProvisioningState": "Activating", - "createdAtUtc": "2022-10-21T23:49:54.3154081Z", - "gatewayUrl": "https://servicetenantsdgyen.azure-api.net", - "gatewayRegionalUrl": null, - "portalUrl": null, - "developerPortalUrl": null, - "managementApiUrl": null, - "scmUrl": null, - "hostnameConfigurations": [ - { - "type": "Proxy", - "hostName": "servicetenantsdgyen.azure-api.net", - "encodedCertificate": null, - "keyVaultId": null, - "certificatePassword": null, - "negotiateClientCertificate": false, - "certificate": null, - "defaultSslBinding": true, - "identityClientId": null, - "certificateSource": "BuiltIn", - "certificateStatus": null - } - ], - "publicIPAddresses": null, - "privateIPAddresses": null, - "additionalLocations": null, - "virtualNetworkConfiguration": null, - "customProperties": null, - "virtualNetworkType": "None", - "certificates": null, - "disableGateway": false, - "apiVersionConstraint": { - "minApiVersion": null - }, - "publicIpAddressId": null, - "publicNetworkAccess": "Enabled", - "privateEndpointConnections": null, - "platformVersion": "undetermined" - }, - "sku": { - "name": "Standard", - "capacity": 1 - }, - "identity": null, - "zones": null, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-21T23:49:54.2013737Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-21T23:49:54.2013737Z" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 23:50:58 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T235059Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 23:51:59 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11930", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T235200Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 23:53:01 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11929", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T235301Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 23:54:01 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11928", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T235402Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 23:55:03 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T235504Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 23:56:04 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T235605Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 23:57:06 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11930", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T235706Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 23:58:07 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11929", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T235807Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 21 Oct 2022 23:59:07 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11928", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221021T235908Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Sat, 22 Oct 2022 00:00:09 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T000009Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Sat, 22 Oct 2022 00:01:10 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T000110Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Sat, 22 Oct 2022 00:02:11 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11930", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T000211Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Sat, 22 Oct 2022 00:03:12 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11929", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T000312Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Sat, 22 Oct 2022 00:04:13 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11928", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T000413Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Sat, 22 Oct 2022 00:05:14 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T000514Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Sat, 22 Oct 2022 00:06:15 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T000616Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Sat, 22 Oct 2022 00:07:16 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11930", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T000717Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Sat, 22 Oct 2022 00:08:17 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11929", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T000818Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Sat, 22 Oct 2022 00:09:18 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11928", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T000919Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Sat, 22 Oct 2022 00:10:19 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11938", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T001020Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Sat, 22 Oct 2022 00:11:20 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11937", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T001120Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Sat, 22 Oct 2022 00:12:21 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11936", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T001221Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Sat, 22 Oct 2022 00:13:22 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T001322Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Sat, 22 Oct 2022 00:14:23 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T001424Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Sat, 22 Oct 2022 00:15:24 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11938", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T001524Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Sat, 22 Oct 2022 00:16:25 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11937", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T001625Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Sat, 22 Oct 2022 00:17:26 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11936", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T001726Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Sat, 22 Oct 2022 00:18:27 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T001827Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Sat, 22 Oct 2022 00:19:28 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T001928Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Sat, 22 Oct 2022 00:20:29 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11937", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T002029Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Sat, 22 Oct 2022 00:21:30 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11936", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T002131Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Sat, 22 Oct 2022 00:22:31 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T002232Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Sat, 22 Oct 2022 00:23:32 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T002332Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Sat, 22 Oct 2022 00:24:33 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T002433Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Sat, 22 Oct 2022 00:25:34 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11937", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T002534Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Sat, 22 Oct 2022 00:26:35 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11936", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T002636Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Sat, 22 Oct 2022 00:27:36 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T002737Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Sat, 22 Oct 2022 00:28:38 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T002838Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Sat, 22 Oct 2022 00:29:38 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T002939Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Sat, 22 Oct 2022 00:30:39 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11937", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T003040Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V0ZW5hbnRzZEdZZU5fQWN0X2MxOTBlMjQ4?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 22 Oct 2022 00:31:40 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11936", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T003141Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN", - "name": "servicetenantsdGYeN", - "type": "Microsoft.ApiManagement/service", - "tags": { - "Name": "Contoso", - "Test": "User" - }, - "location": "West US", - "etag": "AAAAAAA928Y=", - "properties": { - "publisherEmail": "foo@contoso.com", - "publisherName": "foo", - "notificationSenderEmail": "apimgmt-noreply@mail.windowsazure.com", - "provisioningState": "Succeeded", - "targetProvisioningState": "", - "createdAtUtc": "2022-10-21T23:49:54.3154081Z", - "gatewayUrl": "https://servicetenantsdgyen.azure-api.net", - "gatewayRegionalUrl": "https://servicetenantsdgyen-westus-01.regional.azure-api.net", - "portalUrl": "https://servicetenantsdgyen.portal.azure-api.net", - "developerPortalUrl": "https://servicetenantsdgyen.developer.azure-api.net", - "managementApiUrl": "https://servicetenantsdgyen.management.azure-api.net", - "scmUrl": "https://servicetenantsdgyen.scm.azure-api.net", - "hostnameConfigurations": [ - { - "type": "Proxy", - "hostName": "servicetenantsdgyen.azure-api.net", - "encodedCertificate": null, - "keyVaultId": null, - "certificatePassword": null, - "negotiateClientCertificate": false, - "certificate": null, - "defaultSslBinding": true, - "identityClientId": null, - "certificateSource": "BuiltIn", - "certificateStatus": null - } - ], - "publicIPAddresses": [ - "20.253.181.238" - ], - "privateIPAddresses": null, - "additionalLocations": null, - "virtualNetworkConfiguration": null, - "customProperties": { - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Ssl30": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TripleDes168": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls10": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls11": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Ssl30": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Protocols.Server.Http2": "False" - }, - "virtualNetworkType": "None", - "certificates": null, - "disableGateway": false, - "apiVersionConstraint": { - "minApiVersion": null - }, - "publicIpAddressId": null, - "publicNetworkAccess": "Enabled", - "privateEndpointConnections": null, - "platformVersion": "stv2" - }, - "sku": { - "name": "Standard", - "capacity": 1 - }, - "identity": null, - "zones": null, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-21T23:49:54.2013737Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-21T23:49:54.2013737Z" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/tenant/access?api-version=2021-08-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "31", - "Content-Type": "application/json", - "If-Match": "*", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "enabled": true - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 22 Oct 2022 00:31:44 GMT", - "ETag": "\u0022AAAAAAAACSAAAAAAAAAAAA==\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1195", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T003145Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/tenant/access", - "type": "Microsoft.ApiManagement/service/tenant", - "name": "access", - "properties": { - "principalId": "integration", - "primaryKey": null, - "secondaryKey": null, - "enabled": true - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/tenant/access?api-version=2021-08-01", - "RequestMethod": "HEAD", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Sat, 22 Oct 2022 00:31:45 GMT", - "ETag": "\u0022AAAAAAAACSAAAAAAAAAAAA==\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T003146Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/tenant?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 22 Oct 2022 00:31:45 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T003146Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [], - "count": 0 - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/tenant/access?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 22 Oct 2022 00:31:46 GMT", - "ETag": "\u0022AAAAAAAACSAAAAAAAAAAAA==\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T003147Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/tenant/access", - "type": "Microsoft.ApiManagement/service/tenant", - "name": "access", - "properties": { - "principalId": "integration", - "primaryKey": null, - "secondaryKey": null, - "enabled": true - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/tenant/access?api-version=2021-08-01", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "31", - "Content-Type": "application/json", - "If-Match": "*", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "enabled": true - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 22 Oct 2022 00:31:47 GMT", - "ETag": "\u0022AAAAAAAACSAAAAAAAAAAAA==\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1194", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T003147Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/tenant/access", - "type": "Microsoft.ApiManagement/service/tenant", - "name": "access", - "properties": { - "principalId": "integration", - "primaryKey": null, - "secondaryKey": null, - "enabled": true - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/tenant/access/regenerateSecondaryKey?api-version=2021-08-01", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Date": "Sat, 22 Oct 2022 00:31:48 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T003148Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/tenant/access/listSecrets?api-version=2021-08-01", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 22 Oct 2022 00:31:48 GMT", - "ETag": "\u0022AAAAAAAACSEAAAAAAAAAAA==\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T003149Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/tenant/access", - "principalId": "integration", - "primaryKey": null, - "secondaryKey": null, - "enabled": true - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/tenant/access/regeneratePrimaryKey?api-version=2021-08-01", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Date": "Sat, 22 Oct 2022 00:31:49 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1197", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T003150Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/tenant/access/git/regeneratePrimaryKey?api-version=2021-08-01", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Date": "Sat, 22 Oct 2022 00:31:50 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1196", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T003150Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/tenant/access/git/regenerateSecondaryKey?api-version=2021-08-01", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Date": "Sat, 22 Oct 2022 00:31:50 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1195", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T003151Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/tenant/configuration/save?api-version=2021-08-01", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "34", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "branch": "master" - } - }, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "33", - "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 22 Oct 2022 00:31:52 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/tenant/configuration/operationResults/635339f84634611ba0d45b07?api-version=2021-08-01", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1194", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T003153Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "635339f84634611ba0d45b07" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/tenant/configuration/operationResults/635339f84634611ba0d45b07?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "333", - "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 22 Oct 2022 00:31:53 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/tenant/configuration/operationResults/635339f84634611ba0d45b07?api-version=2021-08-01", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T003153Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "635339f84634611ba0d45b07", - "type": "Microsoft.ApiManagement/service/tenant/operationResults", - "name": "635339f84634611ba0d45b07", - "properties": { - "status": "InProgress", - "started": "2022-10-22T00:31:52.29Z", - "updated": "2022-10-22T00:31:52.29Z", - "resultInfo": null, - "error": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/tenant/configuration/operationResults/635339f84634611ba0d45b07?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 22 Oct 2022 00:32:24 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T003224Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "635339f84634611ba0d45b07", - "type": "Microsoft.ApiManagement/service/tenant/operationResults", - "name": "635339f84634611ba0d45b07", - "properties": { - "status": "Succeeded", - "started": "2022-10-22T00:31:52.29Z", - "updated": "2022-10-22T00:32:19.307Z", - "resultInfo": "The configuration was successfully saved to master as commit 63fff92cc8fc10886ef2148a3635f0ca2e006fa3.", - "error": null, - "actionLog": [] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/tenant/configuration/syncState?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 22 Oct 2022 00:32:24 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11930", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T003224Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/tenant/configuration/syncState", - "type": "Microsoft.ApiManagement/service/tenant/syncState", - "name": "syncState", - "properties": { - "branch": "master", - "commitId": "63fff92cc8fc10886ef2148a3635f0ca2e006fa3", - "isExport": true, - "isSynced": true, - "isGitEnabled": true, - "syncDate": "2022-10-22T00:32:19.3459397Z", - "configurationChangeDate": null, - "lastOperationId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/tenant/configuration/operationResults/635339f84634611ba0d45b07" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/tenant/configuration/validate?api-version=2021-08-01", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "34", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "branch": "master" - } - }, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "33", - "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 22 Oct 2022 00:32:25 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/tenant/configuration/operationResults/63533a194634611ba0d45b09?api-version=2021-08-01", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1193", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T003225Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "63533a194634611ba0d45b09" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/tenant/configuration/operationResults/63533a194634611ba0d45b09?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "335", - "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 22 Oct 2022 00:32:25 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/tenant/configuration/operationResults/63533a194634611ba0d45b09?api-version=2021-08-01", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11929", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T003226Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "63533a194634611ba0d45b09", - "type": "Microsoft.ApiManagement/service/tenant/operationResults", - "name": "63533a194634611ba0d45b09", - "properties": { - "status": "InProgress", - "started": "2022-10-22T00:32:25.357Z", - "updated": "2022-10-22T00:32:25.357Z", - "resultInfo": null, - "error": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/tenant/configuration/operationResults/63533a194634611ba0d45b09?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 22 Oct 2022 00:32:56 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11928", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T003256Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "63533a194634611ba0d45b09", - "type": "Microsoft.ApiManagement/service/tenant/operationResults", - "name": "63533a194634611ba0d45b09", - "properties": { - "status": "Succeeded", - "started": "2022-10-22T00:32:25.357Z", - "updated": "2022-10-22T00:32:34.5Z", - "resultInfo": "Validation is successfull", - "error": null, - "actionLog": [] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/tenant/configuration/deploy?api-version=2021-08-01", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "34", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "branch": "master" - } - }, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "33", - "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 22 Oct 2022 00:32:56 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/tenant/configuration/operationResults/63533a384634611ba0d45b0b?api-version=2021-08-01", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1192", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T003257Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "63533a384634611ba0d45b0b" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/tenant/configuration/operationResults/63533a384634611ba0d45b0b?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "335", - "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 22 Oct 2022 00:32:57 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/tenant/configuration/operationResults/63533a384634611ba0d45b0b?api-version=2021-08-01", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11927", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T003257Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "63533a384634611ba0d45b0b", - "type": "Microsoft.ApiManagement/service/tenant/operationResults", - "name": "63533a384634611ba0d45b0b", - "properties": { - "status": "InProgress", - "started": "2022-10-22T00:32:56.943Z", - "updated": "2022-10-22T00:32:56.943Z", - "resultInfo": null, - "error": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/servicetenantsdGYeN/tenant/configuration/operationResults/63533a384634611ba0d45b0b?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 22 Oct 2022 00:33:27 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11926", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T003328Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "63533a384634611ba0d45b0b", - "type": "Microsoft.ApiManagement/service/tenant/operationResults", - "name": "63533a384634611ba0d45b0b", - "properties": { - "status": "Succeeded", - "started": "2022-10-22T00:32:56.943Z", - "updated": "2022-10-22T00:33:18.447Z", - "resultInfo": "Latest commit 63fff92cc8fc10886ef2148a3635f0ca2e006fa3 was successfully deployed from master. Objects created: 0, updated: 0, deleted: 0. Previous configuration was saved to the \u0027ConfigurationBackup\u0027 branch.", - "error": null, - "actionLog": [] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Sat, 22 Oct 2022 00:33:30 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ4NzItV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14997", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T003331Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": { - "recordingRandomSeed": "1666342412" - } -} diff --git a/sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimusersTestSuite.json b/sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimusersTestSuite.json deleted file mode 100644 index f016db650a1c..000000000000 --- a/sdk/resourcemanager/apimanagement/armapimanagement/testdata/recordings/TestApimusersTestSuite.json +++ /dev/null @@ -1,1927 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 22 Oct 2022 00:33:35 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1193", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T003336Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "westus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN?api-version=2021-08-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "172", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus", - "properties": { - "publisherEmail": "foo@contoso.com", - "publisherName": "foo" - }, - "sku": { - "capacity": 1, - "name": "Standard" - }, - "tags": { - "Name": "Contoso", - "Test": "User" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "1758", - "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 22 Oct 2022 00:33:43 GMT", - "ETag": "\u0022AAAAAAA9288=\u0022", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1192", - "x-ms-request-id": [ - "00000000-0000-0000-0000-000000000000", - "f6d6cfaf-30b4-4c52-9064-a072f31765f2" - ], - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T003344Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN", - "name": "serviceusersdGYeN", - "type": "Microsoft.ApiManagement/service", - "tags": { - "Name": "Contoso", - "Test": "User" - }, - "location": "West US", - "etag": "AAAAAAA9288=", - "properties": { - "publisherEmail": "foo@contoso.com", - "publisherName": "foo", - "notificationSenderEmail": "apimgmt-noreply@mail.windowsazure.com", - "provisioningState": "Created", - "targetProvisioningState": "Activating", - "createdAtUtc": "2022-10-22T00:33:39.6318247Z", - "gatewayUrl": "https://serviceusersdgyen.azure-api.net", - "gatewayRegionalUrl": null, - "portalUrl": null, - "developerPortalUrl": null, - "managementApiUrl": null, - "scmUrl": null, - "hostnameConfigurations": [ - { - "type": "Proxy", - "hostName": "serviceusersdgyen.azure-api.net", - "encodedCertificate": null, - "keyVaultId": null, - "certificatePassword": null, - "negotiateClientCertificate": false, - "certificate": null, - "defaultSslBinding": true, - "identityClientId": null, - "certificateSource": "BuiltIn", - "certificateStatus": null - } - ], - "publicIPAddresses": null, - "privateIPAddresses": null, - "additionalLocations": null, - "virtualNetworkConfiguration": null, - "customProperties": null, - "virtualNetworkType": "None", - "certificates": null, - "disableGateway": false, - "apiVersionConstraint": { - "minApiVersion": null - }, - "publicIpAddressId": null, - "publicNetworkAccess": "Enabled", - "privateEndpointConnections": null, - "platformVersion": "undetermined" - }, - "sku": { - "name": "Standard", - "capacity": 1 - }, - "identity": null, - "zones": null, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-22T00:33:39.5394568Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-22T00:33:39.5394568Z" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Sat, 22 Oct 2022 00:34:44 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11925", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T003445Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Sat, 22 Oct 2022 00:35:46 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11929", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T003546Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Sat, 22 Oct 2022 00:36:45 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11928", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T003646Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Sat, 22 Oct 2022 00:37:46 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11927", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T003747Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Sat, 22 Oct 2022 00:38:48 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11926", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T003848Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Sat, 22 Oct 2022 00:39:49 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11925", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T003949Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Sat, 22 Oct 2022 00:40:50 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11929", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T004051Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Sat, 22 Oct 2022 00:41:51 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11928", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T004152Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Sat, 22 Oct 2022 00:42:53 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11927", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T004253Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Sat, 22 Oct 2022 00:43:54 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11926", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T004354Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Sat, 22 Oct 2022 00:44:55 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11925", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T004455Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Sat, 22 Oct 2022 00:45:55 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11929", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T004556Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Sat, 22 Oct 2022 00:46:56 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11928", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T004657Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Sat, 22 Oct 2022 00:47:58 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11927", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T004758Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Sat, 22 Oct 2022 00:48:58 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11926", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T004859Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Sat, 22 Oct 2022 00:50:00 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T005000Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Sat, 22 Oct 2022 00:51:01 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T005101Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Sat, 22 Oct 2022 00:52:02 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T005202Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Sat, 22 Oct 2022 00:53:03 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11930", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T005303Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Sat, 22 Oct 2022 00:54:04 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11929", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T005404Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Sat, 22 Oct 2022 00:55:05 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T005505Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Sat, 22 Oct 2022 00:56:06 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T005606Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Sat, 22 Oct 2022 00:57:07 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11930", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T005707Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Sat, 22 Oct 2022 00:58:07 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11929", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T005808Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Sat, 22 Oct 2022 00:59:09 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11928", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T005909Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Sat, 22 Oct 2022 01:00:10 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T010010Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Sat, 22 Oct 2022 01:01:11 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T010112Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Sat, 22 Oct 2022 01:02:12 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11930", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T010213Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Sat, 22 Oct 2022 01:03:13 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11929", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T010314Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Sat, 22 Oct 2022 01:04:15 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11928", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T010415Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Sat, 22 Oct 2022 01:05:16 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T010516Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Sat, 22 Oct 2022 01:06:17 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T010617Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Sat, 22 Oct 2022 01:07:18 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11930", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T010719Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Sat, 22 Oct 2022 01:08:19 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11929", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T010819Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Sat, 22 Oct 2022 01:09:19 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11928", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T010920Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Sat, 22 Oct 2022 01:10:21 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T011021Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Sat, 22 Oct 2022 01:11:22 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T011122Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Sat, 22 Oct 2022 01:12:23 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11930", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T011223Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Sat, 22 Oct 2022 01:13:24 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11929", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T011324Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Sat, 22 Oct 2022 01:14:25 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11928", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T011426Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Sat, 22 Oct 2022 01:15:26 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T011526Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/operationresults/d2VzdHVzOnNlcnZpY2V1c2Vyc2RHWWVOX0FjdF9mZmI5MGY2MQ==?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 22 Oct 2022 01:16:27 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T011627Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN", - "name": "serviceusersdGYeN", - "type": "Microsoft.ApiManagement/service", - "tags": { - "Name": "Contoso", - "Test": "User" - }, - "location": "West US", - "etag": "AAAAAAA93EM=", - "properties": { - "publisherEmail": "foo@contoso.com", - "publisherName": "foo", - "notificationSenderEmail": "apimgmt-noreply@mail.windowsazure.com", - "provisioningState": "Succeeded", - "targetProvisioningState": "", - "createdAtUtc": "2022-10-22T00:33:39.6318247Z", - "gatewayUrl": "https://serviceusersdgyen.azure-api.net", - "gatewayRegionalUrl": "https://serviceusersdgyen-westus-01.regional.azure-api.net", - "portalUrl": "https://serviceusersdgyen.portal.azure-api.net", - "developerPortalUrl": "https://serviceusersdgyen.developer.azure-api.net", - "managementApiUrl": "https://serviceusersdgyen.management.azure-api.net", - "scmUrl": "https://serviceusersdgyen.scm.azure-api.net", - "hostnameConfigurations": [ - { - "type": "Proxy", - "hostName": "serviceusersdgyen.azure-api.net", - "encodedCertificate": null, - "keyVaultId": null, - "certificatePassword": null, - "negotiateClientCertificate": false, - "certificate": null, - "defaultSslBinding": true, - "identityClientId": null, - "certificateSource": "BuiltIn", - "certificateStatus": null - } - ], - "publicIPAddresses": [ - "23.100.41.106" - ], - "privateIPAddresses": null, - "additionalLocations": null, - "virtualNetworkConfiguration": null, - "customProperties": { - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Ssl30": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TripleDes168": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls10": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls11": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Ssl30": "False", - "Microsoft.WindowsAzure.ApiManagement.Gateway.Protocols.Server.Http2": "False" - }, - "virtualNetworkType": "None", - "certificates": null, - "disableGateway": false, - "apiVersionConstraint": { - "minApiVersion": null - }, - "publicIpAddressId": null, - "publicNetworkAccess": "Enabled", - "privateEndpointConnections": null, - "platformVersion": "stv2" - }, - "sku": { - "name": "Standard", - "capacity": 1 - }, - "identity": null, - "zones": null, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-22T00:33:39.5394568Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-22T00:33:39.5394568Z" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/users/useridsdGYeN?api-version=2021-08-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "104", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "confirmation": "signup", - "email": "foobar@outlook.com", - "firstName": "foo", - "lastName": "bar" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "1044", - "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 22 Oct 2022 01:16:37 GMT", - "ETag": "\u0022AAAAAAAACSQAAAAAAAAJJg==\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1195", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T011638Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/users/useridsdGYeN", - "type": "Microsoft.ApiManagement/service/users", - "name": "useridsdGYeN", - "properties": { - "firstName": "foo", - "lastName": "bar", - "email": "foobar@outlook.com", - "state": "active", - "registrationDate": "2022-10-22T01:16:32.867Z", - "note": null, - "groups": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/groups/developers", - "name": "Developers", - "description": "Developers is a built-in group. Its membership is managed by the system. Signed-in users fall into this group.", - "builtIn": true, - "type": "system", - "externalId": null - } - ], - "identities": [ - { - "provider": "Basic", - "id": "foobar@outlook.com" - } - ] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/users/useridsdGYeN?api-version=2021-08-01", - "RequestMethod": "HEAD", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Sat, 22 Oct 2022 01:16:38 GMT", - "ETag": "\u0022AAAAAAAACSQAAAAAAAAJJg==\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11930", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T011639Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/users?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 22 Oct 2022 01:16:39 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11929", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T011639Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/users/1", - "type": "Microsoft.ApiManagement/service/users", - "name": "1", - "properties": { - "firstName": "Administrator", - "lastName": "", - "email": "foo@contoso.com", - "state": "active", - "registrationDate": "2022-10-22T00:37:08.317Z", - "note": null, - "identities": [ - { - "provider": "Azure", - "id": "foo@contoso.com" - } - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/users/useridsdGYeN", - "type": "Microsoft.ApiManagement/service/users", - "name": "useridsdGYeN", - "properties": { - "firstName": "foo", - "lastName": "bar", - "email": "foobar@outlook.com", - "state": "active", - "registrationDate": "2022-10-22T01:16:32.867Z", - "note": null, - "identities": [ - { - "provider": "Basic", - "id": "foobar@outlook.com" - } - ] - } - } - ], - "count": 2 - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/users/useridsdGYeN?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 22 Oct 2022 01:16:40 GMT", - "ETag": "\u0022AAAAAAAACSQAAAAAAAAJJg==\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11928", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T011640Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/users/useridsdGYeN", - "type": "Microsoft.ApiManagement/service/users", - "name": "useridsdGYeN", - "properties": { - "firstName": "foo", - "lastName": "bar", - "email": "foobar@outlook.com", - "state": "active", - "registrationDate": "2022-10-22T01:16:32.867Z", - "note": null, - "identities": [ - { - "provider": "Basic", - "id": "foobar@outlook.com" - } - ] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/users/useridsdGYeN?api-version=2021-08-01", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "80", - "Content-Type": "application/json", - "If-Match": "*", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "email": "foobar@outlook.com", - "firstName": "foo", - "lastName": "bar" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 22 Oct 2022 01:16:41 GMT", - "ETag": "\u0022AAAAAAAACSQ=\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1194", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T011642Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/users/useridsdGYeN", - "type": "Microsoft.ApiManagement/service/users", - "name": "useridsdGYeN", - "properties": { - "firstName": "foo", - "lastName": "bar", - "email": "foobar@outlook.com", - "state": "active", - "registrationDate": "2022-10-22T01:16:32.867Z", - "note": null, - "groups": [], - "identities": [ - { - "provider": "Basic", - "id": "foobar@outlook.com" - } - ] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/users/useridsdGYeN/generateSsoUrl?api-version=2021-08-01", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 22 Oct 2022 01:16:42 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1191", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T011643Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": "https://serviceusersdgyen.portal.azure-api.net/signin-sso?token=useridsdGYeN%26202210220121%26eYDxN%2btFEYCR9DIDvzG7fcvqEFadpEgqtsKNaVbqwf2v1q9wLUdhpYxjs3qsIqUfINm99iBn2kGN97%2flO%2bE%2fZw%3d%3d" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/users/useridsdGYeN/groups?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 22 Oct 2022 01:16:43 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11927", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T011643Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/users/useridsdGYeN/groups/developers", - "type": "Microsoft.ApiManagement/service/users/groups", - "name": "developers", - "properties": { - "displayName": "Developers", - "description": "Developers is a built-in group. Its membership is managed by the system. Signed-in users fall into this group.", - "builtIn": true, - "type": "system", - "externalId": null - } - } - ], - "count": 1 - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/users/useridsdGYeN/subscriptions?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 22 Oct 2022 01:16:43 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11926", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T011644Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [], - "count": 0 - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/users/useridsdGYeN/identities?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Sat, 22 Oct 2022 01:16:44 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11925", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T011645Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "provider": "Basic", - "id": "foobar@outlook.com" - } - ], - "count": 1, - "nextLink": null - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/users/useridsdGYeN/confirmations/password/send?api-version=2021-08-01", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Date": "Sat, 22 Oct 2022 01:16:45 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1190", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T011646Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ApiManagement/service/serviceusersdGYeN/users/useridsdGYeN?api-version=2021-08-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "If-Match": "*", - "User-Agent": "azsdk-go-armapimanagement/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Sat, 22 Oct 2022 01:16:46 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14998", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T011647Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Sat, 22 Oct 2022 01:16:50 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ5MjYtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14997", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221022T011651Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": { - "recordingRandomSeed": "1666342412" - } -} diff --git a/sdk/resourcemanager/cdn/armcdn/assets.json b/sdk/resourcemanager/cdn/armcdn/assets.json new file mode 100644 index 000000000000..b10f3fdd2824 --- /dev/null +++ b/sdk/resourcemanager/cdn/armcdn/assets.json @@ -0,0 +1,6 @@ +{ + "AssetsRepo": "Azure/azure-sdk-assets", + "AssetsRepoPrefixPath": "go", + "TagPrefix": "go/resourcemanager/cdn/armcdn", + "Tag": "go/resourcemanager/cdn/armcdn_12e228cbed" +} diff --git a/sdk/resourcemanager/cdn/armcdn/go.mod b/sdk/resourcemanager/cdn/armcdn/go.mod index ed22fbd4da40..0b7b145f57aa 100644 --- a/sdk/resourcemanager/cdn/armcdn/go.mod +++ b/sdk/resourcemanager/cdn/armcdn/go.mod @@ -3,27 +3,27 @@ module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cdn/armcdn go 1.18 require ( - github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.0 - github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.0.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.1 + github.com/Azure/azure-sdk-for-go/sdk/azcore v1.4.0 + github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.2 github.com/stretchr/testify v1.7.0 ) require ( - github.com/Azure/azure-sdk-for-go/sdk/internal v1.0.0 // indirect + github.com/Azure/azure-sdk-for-go/sdk/internal v1.2.0 // indirect github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0 // indirect - github.com/AzureAD/microsoft-authentication-library-for-go v0.4.0 // indirect + github.com/AzureAD/microsoft-authentication-library-for-go v0.7.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/dnaeon/go-vcr v1.1.0 // indirect - github.com/golang-jwt/jwt v3.2.1+incompatible // indirect + github.com/golang-jwt/jwt/v4 v4.4.2 // 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 github.com/pmezard/go-difflib v1.0.0 // 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 + golang.org/x/net v0.7.0 // indirect + golang.org/x/sys v0.5.0 // indirect + golang.org/x/text v0.7.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect ) diff --git a/sdk/resourcemanager/cdn/armcdn/go.sum b/sdk/resourcemanager/cdn/armcdn/go.sum index 07096d31831b..b0f97586a165 100644 --- a/sdk/resourcemanager/cdn/armcdn/go.sum +++ b/sdk/resourcemanager/cdn/armcdn/go.sum @@ -1,29 +1,27 @@ -github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.0 h1:Ut0ZGdOwJDw0npYEg+TLlPls3Pq6JiZaP2/aGKir7Zw= -github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.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/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.1 h1:BZOe7ExNYNGmapT91ZUrxtMYsqVljMxTHEnwjOdG7pk= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.1/go.mod h1:TSPEzbGHEgqFa3kUn09SpCrfKNbj7+mMulU/72Vg84E= +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.0 h1:t/W5MYAuQy81cvM8VUNfRLzhtKpXhVUAN7Cd7KVbTyc= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.0/go.mod h1:NBanQUfSWiWn3QEpWDTCU0IjBECKOYvl2R8xdRtMtiM= +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/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.2 h1:mLY+pNLjCUeKhgnAJWAKhEUQM+RJQo2H1fuGSw1Ky1E= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.2/go.mod h1:FbdwsQ2EzwvXxOPcMFYO8ogEc9uMMIj3YkmCdXdAFmk= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0 h1:ECsQtyERDVz3NP3kvDOTLvbQhqWp/x9EsGKtb4ogUr8= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0/go.mod h1:s1tW/At+xHqjNFvWU4G0c0Qv33KOhvbGNj0RCTQDV8s= -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/AzureAD/microsoft-authentication-library-for-go v0.7.0 h1:VgSJlZH5u0k2qxSpqyghcFQKmvYckj46uymKK5XzkBM= +github.com/AzureAD/microsoft-authentication-library-for-go v0.7.0/go.mod h1:BDJ5qMFKx9DugEg3+uQSDCdbYPr5s9vBTrL9P8TpqOU= 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/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 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= +github.com/golang-jwt/jwt/v4 v4.4.2 h1:rcc4lwaZgFMCZ5jxF9ABolDcIHdBytAFgqFPbSJQAYs= +github.com/golang-jwt/jwt/v4 v4.4.2/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= 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= @@ -33,13 +31,12 @@ github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5Cc github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= 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-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/net v0.7.0 h1:rJrUqqhjsgNp7KqAIc25s9pZnjU7TUcSY7HcVZjdn1g= +golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= +golang.org/x/sys v0.5.0 h1:MUK/U/4lj1t1oPg0HfuXDN/Z1wv31ZJ/YcPiGccS4DU= +golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/text v0.7.0 h1:4BRB4x83lYWy72KwLD/qYDuTu7q9PjSagHvijDw7cLo= +golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= 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= diff --git a/sdk/resourcemanager/cdn/armcdn/testdata/recordings/TestAfdxTestSuite.json b/sdk/resourcemanager/cdn/armcdn/testdata/recordings/TestAfdxTestSuite.json deleted file mode 100644 index 4cc6ee6833ab..000000000000 --- a/sdk/resourcemanager/cdn/armcdn/testdata/recordings/TestAfdxTestSuite.json +++ /dev/null @@ -1,5182 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:05:02 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T020502Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "westus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk?api-version=2021-06-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "61", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "global", - "sku": { - "name": "Premium_AzureFrontDoor" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "Cache-Control": "no-cache", - "Content-Length": "453", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:05:08 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "10", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "24", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T020509Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk", - "type": "Microsoft.Cdn/profiles", - "name": "afdprofilenamEaKxHk", - "location": "Global", - "kind": "frontdoor", - "tags": {}, - "sku": { - "name": "Premium_AzureFrontDoor" - }, - "properties": { - "originResponseTimeoutSeconds": 30, - "frontDoorId": "00000000-0000-0000-0000-000000000000", - "resourceState": "Creating", - "provisioningState": "Creating" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:05:19 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11999", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T020519Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "InProgress", - "error": { - "code": "None", - "message": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:05:49 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11998", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T020550Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded", - "error": { - "code": "None", - "message": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:05:50 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "49", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T020551Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk", - "type": "Microsoft.Cdn/profiles", - "name": "afdprofilenamEaKxHk", - "location": "Global", - "kind": "frontdoor", - "tags": {}, - "sku": { - "name": "Premium_AzureFrontDoor" - }, - "properties": { - "originResponseTimeoutSeconds": 30, - "frontDoorId": "00000000-0000-0000-0000-000000000000", - "resourceState": "Active", - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/customDomains/afdcustomdomaEaKxHk?api-version=2021-06-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "131", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "hostName": "www.someDomain.net", - "tlsSettings": { - "certificateType": "ManagedCertificate", - "minimumTlsVersion": "TLS12" - } - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "Cache-Control": "no-cache", - "Content-Length": "586", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:05:55 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "10", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "99", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T020555Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/customdomains/afdcustomdomaEaKxHk", - "type": "Microsoft.Cdn/profiles/customdomains", - "name": "afdcustomdomaEaKxHk", - "properties": { - "hostName": "www.somedomain.net", - "tlsSettings": { - "certificateType": "ManagedCertificate", - "minimumTlsVersion": "TLS12", - "secret": null - }, - "validationProperties": null, - "azureDnsZone": null, - "domainValidationState": "Submitting", - "preValidatedCustomDomainResourceId": null, - "provisioningState": "Creating", - "deploymentStatus": "NotStarted" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:06:05 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11997", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T020606Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "InProgress", - "error": { - "code": "None", - "message": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:06:35 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11996", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T020636Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "InProgress", - "error": { - "code": "None", - "message": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:07:06 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11995", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T020706Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "InProgress", - "error": { - "code": "None", - "message": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:07:36 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11994", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T020737Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "InProgress", - "error": { - "code": "None", - "message": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:08:07 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11993", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T020807Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "InProgress", - "error": { - "code": "None", - "message": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:08:37 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11992", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T020837Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded", - "error": { - "code": "None", - "message": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/customDomains/afdcustomdomaEaKxHk?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:08:38 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11991", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T020839Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/customdomains/afdcustomdomaEaKxHk", - "type": "Microsoft.Cdn/profiles/customdomains", - "name": "afdcustomdomaEaKxHk", - "properties": { - "hostName": "www.somedomain.net", - "tlsSettings": { - "certificateType": "ManagedCertificate", - "minimumTlsVersion": "TLS12", - "secret": null - }, - "validationProperties": { - "validationToken": "000000000000", - "expirationDate": "2022-11-15T02:08:07.2481472\u002B00:00" - }, - "azureDnsZone": null, - "domainValidationState": "Pending", - "preValidatedCustomDomainResourceId": null, - "provisioningState": "Succeeded", - "deploymentStatus": "NotStarted" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/afdEndpoints/afdendpointnaEaKxHk?api-version=2021-06-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "121", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus", - "properties": { - "autoGeneratedDomainNameLabelScope": "TenantReuse", - "enabledState": "Enabled" - }, - "tags": {} - }, - "StatusCode": 201, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "Cache-Control": "no-cache", - "Content-Length": "499", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:08:46 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "10", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "99", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T020847Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/afdendpoints/afdendpointnaEaKxHk", - "type": "Microsoft.Cdn/profiles/afdendpoints", - "name": "afdendpointnaEaKxHk", - "location": "WestUs", - "tags": {}, - "properties": { - "hostName": "afdendpointnaEaKxHk-hhdjcjerdhardaa0.z01.azurefd.net", - "autoGeneratedDomainNameLabelScope": "TenantReuse", - "enabledState": "Enabled", - "provisioningState": "Creating", - "deploymentStatus": "NotStarted" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:08:57 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11990", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T020857Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded", - "error": { - "code": "None", - "message": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/afdEndpoints/afdendpointnaEaKxHk?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:08:58 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "49", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T020858Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/afdendpoints/afdendpointnaEaKxHk", - "type": "Microsoft.Cdn/profiles/afdendpoints", - "name": "afdendpointnaEaKxHk", - "location": "WestUs", - "tags": {}, - "properties": { - "hostName": "afdendpointnaEaKxHk-hhdjcjerdhardaa0.z01.azurefd.net", - "autoGeneratedDomainNameLabelScope": "TenantReuse", - "enabledState": "Enabled", - "provisioningState": "Succeeded", - "deploymentStatus": "NotStarted" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/originGroups/afdorigingrouEaKxHk?api-version=2021-06-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "310", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "healthProbeSettings": { - "probeIntervalInSeconds": 10, - "probePath": "/path2", - "probeProtocol": "NotSet", - "probeRequestType": "NotSet" - }, - "loadBalancingSettings": { - "additionalLatencyInMilliseconds": 1000, - "sampleSize": 3, - "successfulSamplesRequired": 3 - }, - "trafficRestorationTimeToHealedOrNewEndpointsInMinutes": 5 - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "653", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:09:01 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "99", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T020901Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/origingroups/afdorigingrouEaKxHk", - "type": "Microsoft.Cdn/profiles/origingroups", - "name": "afdorigingrouEaKxHk", - "properties": { - "loadBalancingSettings": { - "sampleSize": 3, - "successfulSamplesRequired": 3, - "additionalLatencyInMilliseconds": 1000 - }, - "healthProbeSettings": { - "probePath": "/path2", - "probeRequestType": "HEAD", - "probeProtocol": "Http", - "probeIntervalInSeconds": 10 - }, - "trafficRestorationTimeToHealedOrNewEndpointsInMinutes": 5, - "sessionAffinityState": "Disabled", - "provisioningState": "Succeeded", - "deploymentStatus": "NotStarted" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/originGroups/afdorigingrouEaKxHk/origins/afdoriginnameEaKxHk?api-version=2021-06-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "147", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "enabledState": "Enabled", - "httpPort": 80, - "httpsPort": 443, - "hostName": "host1.blob.core.windows.net", - "originHostHeader": "host1.foo.com" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "Cache-Control": "no-cache", - "Content-Length": "633", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:09:04 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "10", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "99", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T020904Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/origingroups/afdorigingrouEaKxHk/origins/afdoriginnameEaKxHk", - "type": "Microsoft.Cdn/profiles/origingroups/origins", - "name": "afdoriginnameEaKxHk", - "properties": { - "originGroupName": "afdorigingrouEaKxHk", - "hostName": "host1.blob.core.windows.net", - "httpPort": 80, - "httpsPort": 443, - "originHostHeader": "host1.foo.com", - "priority": null, - "weight": null, - "enabledState": "Enabled", - "sharedPrivateLinkResource": null, - "enforceCertificateNameCheck": true, - "provisioningState": "Creating", - "deploymentStatus": "NotStarted" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:09:14 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11989", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T020914Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "InProgress", - "error": { - "code": "None", - "message": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:09:45 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11988", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T020945Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded", - "error": { - "code": "None", - "message": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/originGroups/afdorigingrouEaKxHk/origins/afdoriginnameEaKxHk?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:09:46 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11987", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T020946Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/origingroups/afdorigingrouEaKxHk/origins/afdoriginnameEaKxHk", - "type": "Microsoft.Cdn/profiles/origingroups/origins", - "name": "afdoriginnameEaKxHk", - "properties": { - "originGroupName": "afdorigingrouEaKxHk", - "hostName": "host1.blob.core.windows.net", - "httpPort": 80, - "httpsPort": 443, - "originHostHeader": "host1.foo.com", - "priority": null, - "weight": null, - "enabledState": "Enabled", - "sharedPrivateLinkResource": null, - "enforceCertificateNameCheck": true, - "provisioningState": "Succeeded", - "deploymentStatus": "NotStarted" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/ruleSets/rulesetnamEaKxHk?api-version=2021-06-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "315", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:09:48 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "99", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T020948Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/rulesets/rulesetnamEaKxHk", - "type": "Microsoft.Cdn/profiles/rulesets", - "name": "rulesetnamEaKxHk", - "properties": { - "provisioningState": "Succeeded", - "deploymentStatus": "NotStarted" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/customDomains?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:09:49 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11986", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T020949Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/customdomains/afdcustomdomaEaKxHk", - "type": "Microsoft.Cdn/profiles/customdomains", - "name": "afdcustomdomaEaKxHk", - "properties": { - "hostName": "www.somedomain.net", - "tlsSettings": { - "certificateType": "ManagedCertificate", - "minimumTlsVersion": "TLS12", - "secret": null - }, - "validationProperties": { - "validationToken": "000000000000", - "expirationDate": "2022-11-15T02:08:07.2481472\u002B00:00" - }, - "azureDnsZone": null, - "domainValidationState": "Pending", - "preValidatedCustomDomainResourceId": null, - "provisioningState": "Succeeded", - "deploymentStatus": "NotStarted" - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/customDomains/afdcustomdomaEaKxHk?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:09:50 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11985", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T020950Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/customdomains/afdcustomdomaEaKxHk", - "type": "Microsoft.Cdn/profiles/customdomains", - "name": "afdcustomdomaEaKxHk", - "properties": { - "hostName": "www.somedomain.net", - "tlsSettings": { - "certificateType": "ManagedCertificate", - "minimumTlsVersion": "TLS12", - "secret": null - }, - "validationProperties": { - "validationToken": "000000000000", - "expirationDate": "2022-11-15T02:08:07.2481472\u002B00:00" - }, - "azureDnsZone": null, - "domainValidationState": "Pending", - "preValidatedCustomDomainResourceId": null, - "provisioningState": "Succeeded", - "deploymentStatus": "NotStarted" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/customDomains/afdcustomdomaEaKxHk?api-version=2021-06-01", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "99", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "tlsSettings": { - "certificateType": "ManagedCertificate", - "minimumTlsVersion": "TLS12" - } - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:09:51 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "98", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T020952Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/customdomains/afdcustomdomaEaKxHk", - "type": "Microsoft.Cdn/profiles/customdomains", - "name": "afdcustomdomaEaKxHk", - "properties": { - "hostName": "www.somedomain.net", - "tlsSettings": { - "certificateType": "ManagedCertificate", - "minimumTlsVersion": "TLS12", - "secret": null - }, - "validationProperties": { - "validationToken": "000000000000", - "expirationDate": "2022-11-15T02:08:07.2481472\u002B00:00" - }, - "azureDnsZone": null, - "domainValidationState": "Pending", - "preValidatedCustomDomainResourceId": null, - "provisioningState": "Succeeded", - "deploymentStatus": "NotStarted" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/afdEndpoints?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:09:52 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "48", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T020952Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/afdendpoints/afdendpointnaEaKxHk", - "type": "Microsoft.Cdn/profiles/afdendpoints", - "name": "afdendpointnaEaKxHk", - "location": "WestUs", - "tags": {}, - "properties": { - "hostName": "afdendpointnaEaKxHk-hhdjcjerdhardaa0.z01.azurefd.net", - "autoGeneratedDomainNameLabelScope": "TenantReuse", - "enabledState": "Enabled", - "provisioningState": "Succeeded", - "deploymentStatus": "NotStarted" - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/afdEndpoints/afdendpointnaEaKxHk?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:09:53 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "47", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T020953Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/afdendpoints/afdendpointnaEaKxHk", - "type": "Microsoft.Cdn/profiles/afdendpoints", - "name": "afdendpointnaEaKxHk", - "location": "WestUs", - "tags": {}, - "properties": { - "hostName": "afdendpointnaEaKxHk-hhdjcjerdhardaa0.z01.azurefd.net", - "autoGeneratedDomainNameLabelScope": "TenantReuse", - "enabledState": "Enabled", - "provisioningState": "Succeeded", - "deploymentStatus": "NotStarted" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/afdEndpoints/afdendpointnaEaKxHk?api-version=2021-06-01", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "51", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "enabledState": "Enabled" - }, - "tags": {} - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:09:57 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "98", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T020957Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/afdendpoints/afdendpointnaEaKxHk", - "type": "Microsoft.Cdn/profiles/afdendpoints", - "name": "afdendpointnaEaKxHk", - "location": "WestUs", - "tags": {}, - "properties": { - "hostName": "afdendpointnaEaKxHk-hhdjcjerdhardaa0.z01.azurefd.net", - "autoGeneratedDomainNameLabelScope": "TenantReuse", - "enabledState": "Enabled", - "provisioningState": "Succeeded", - "deploymentStatus": "NotStarted" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/afdEndpoints/afdendpointnaEaKxHk/purge?api-version=2021-06-01", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "29", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "contentPaths": [ - "/folder1" - ] - }, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Tue, 08 Nov 2022 02:09:59 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000/profileresults/afdprofilenamEaKxHk/afdendpointresults/afdendpointnaEaKxHk?api-version=2021-06-01", - "Pragma": "no-cache", - "Retry-After": "10", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "499", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T021000Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:10:09 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11984", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T021010Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded", - "error": { - "code": "None", - "message": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/afdEndpoints/afdendpointnaEaKxHk/usages?api-version=2021-06-01", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:10:11 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "499", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T021012Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/afdendpoints/afdendpointnaEaKxHk", - "unit": "count", - "currentValue": 0, - "limit": 200, - "name": { - "value": "route", - "localizedValue": "route" - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/afdEndpoints/afdendpointnaEaKxHk/validateCustomDomain?api-version=2021-06-01", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "33", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "hostName": "www.someDomain.com" - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:10:13 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "499", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T021014Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "customDomainValidated": false, - "reason": "NotExist", - "message": "Custom domain dose not exist in the profile. Please make sure the domain exsits in the profile." - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/originGroups?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:10:13 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11983", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T021014Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/origingroups/afdorigingrouEaKxHk", - "type": "Microsoft.Cdn/profiles/origingroups", - "name": "afdorigingrouEaKxHk", - "properties": { - "loadBalancingSettings": { - "sampleSize": 3, - "successfulSamplesRequired": 3, - "additionalLatencyInMilliseconds": 1000 - }, - "healthProbeSettings": { - "probePath": "/path2", - "probeRequestType": "HEAD", - "probeProtocol": "Http", - "probeIntervalInSeconds": 10 - }, - "trafficRestorationTimeToHealedOrNewEndpointsInMinutes": 5, - "sessionAffinityState": "Disabled", - "provisioningState": "Succeeded", - "deploymentStatus": "NotStarted" - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/originGroups/afdorigingrouEaKxHk?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:10:14 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11982", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T021015Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/origingroups/afdorigingrouEaKxHk", - "type": "Microsoft.Cdn/profiles/origingroups", - "name": "afdorigingrouEaKxHk", - "properties": { - "loadBalancingSettings": { - "sampleSize": 3, - "successfulSamplesRequired": 3, - "additionalLatencyInMilliseconds": 1000 - }, - "healthProbeSettings": { - "probePath": "/path2", - "probeRequestType": "HEAD", - "probeProtocol": "Http", - "probeIntervalInSeconds": 10 - }, - "trafficRestorationTimeToHealedOrNewEndpointsInMinutes": 5, - "sessionAffinityState": "Disabled", - "provisioningState": "Succeeded", - "deploymentStatus": "NotStarted" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/originGroups/afdorigingrouEaKxHk?api-version=2021-06-01", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "310", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "healthProbeSettings": { - "probeIntervalInSeconds": 10, - "probePath": "/path2", - "probeProtocol": "NotSet", - "probeRequestType": "NotSet" - }, - "loadBalancingSettings": { - "additionalLatencyInMilliseconds": 1000, - "sampleSize": 3, - "successfulSamplesRequired": 3 - }, - "trafficRestorationTimeToHealedOrNewEndpointsInMinutes": 5 - } - }, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "Cache-Control": "no-cache", - "Content-Length": "652", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:10:17 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000/profileresults/afdprofilenamEaKxHk/origingroupresults/afdorigingrouEaKxHk?api-version=2021-06-01", - "Pragma": "no-cache", - "Retry-After": "10", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "98", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T021018Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/origingroups/afdorigingrouEaKxHk", - "type": "Microsoft.Cdn/profiles/origingroups", - "name": "afdorigingrouEaKxHk", - "properties": { - "loadBalancingSettings": { - "sampleSize": 3, - "successfulSamplesRequired": 3, - "additionalLatencyInMilliseconds": 1000 - }, - "healthProbeSettings": { - "probePath": "/path2", - "probeRequestType": "HEAD", - "probeProtocol": "Http", - "probeIntervalInSeconds": 10 - }, - "trafficRestorationTimeToHealedOrNewEndpointsInMinutes": 5, - "sessionAffinityState": "Disabled", - "provisioningState": "Updating", - "deploymentStatus": "NotStarted" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:10:28 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11981", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T021028Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded", - "error": { - "code": "None", - "message": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/originGroups/afdorigingrouEaKxHk?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:10:29 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11980", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T021029Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/origingroups/afdorigingrouEaKxHk", - "type": "Microsoft.Cdn/profiles/origingroups", - "name": "afdorigingrouEaKxHk", - "properties": { - "loadBalancingSettings": { - "sampleSize": 3, - "successfulSamplesRequired": 3, - "additionalLatencyInMilliseconds": 1000 - }, - "healthProbeSettings": { - "probePath": "/path2", - "probeRequestType": "HEAD", - "probeProtocol": "Http", - "probeIntervalInSeconds": 10 - }, - "trafficRestorationTimeToHealedOrNewEndpointsInMinutes": 5, - "sessionAffinityState": "Disabled", - "provisioningState": "Succeeded", - "deploymentStatus": "NotStarted" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/originGroups/afdorigingrouEaKxHk/usages?api-version=2021-06-01", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:10:30 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "99", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T021031Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/origingroups/afdorigingrouEaKxHk", - "unit": "count", - "currentValue": 1, - "limit": 50, - "name": { - "value": "origin", - "localizedValue": "origin" - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/originGroups/afdorigingrouEaKxHk/origins?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:10:31 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11979", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T021032Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/origingroups/afdorigingrouEaKxHk/origins/afdoriginnameEaKxHk", - "type": "Microsoft.Cdn/profiles/origingroups/origins", - "name": "afdoriginnameEaKxHk", - "properties": { - "originGroupName": "afdorigingrouEaKxHk", - "hostName": "host1.blob.core.windows.net", - "httpPort": 80, - "httpsPort": 443, - "originHostHeader": "host1.foo.com", - "priority": null, - "weight": null, - "enabledState": "Enabled", - "sharedPrivateLinkResource": null, - "enforceCertificateNameCheck": true, - "provisioningState": "Succeeded", - "deploymentStatus": "NotStarted" - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/originGroups/afdorigingrouEaKxHk/origins/afdoriginnameEaKxHk?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:10:32 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11978", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T021032Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/origingroups/afdorigingrouEaKxHk/origins/afdoriginnameEaKxHk", - "type": "Microsoft.Cdn/profiles/origingroups/origins", - "name": "afdoriginnameEaKxHk", - "properties": { - "originGroupName": "afdorigingrouEaKxHk", - "hostName": "host1.blob.core.windows.net", - "httpPort": 80, - "httpsPort": 443, - "originHostHeader": "host1.foo.com", - "priority": null, - "weight": null, - "enabledState": "Enabled", - "sharedPrivateLinkResource": null, - "enforceCertificateNameCheck": true, - "provisioningState": "Succeeded", - "deploymentStatus": "NotStarted" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/originGroups/afdorigingrouEaKxHk/origins/afdoriginnameEaKxHk?api-version=2021-06-01", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "112", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "enabledState": "Enabled", - "httpPort": 80, - "httpsPort": 443, - "hostName": "host1.blob.core.windows.net" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:10:34 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "98", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T021035Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/origingroups/afdorigingrouEaKxHk/origins/afdoriginnameEaKxHk", - "type": "Microsoft.Cdn/profiles/origingroups/origins", - "name": "afdoriginnameEaKxHk", - "properties": { - "originGroupName": "afdorigingrouEaKxHk", - "hostName": "host1.blob.core.windows.net", - "httpPort": 80, - "httpsPort": 443, - "originHostHeader": "host1.foo.com", - "priority": null, - "weight": null, - "enabledState": "Enabled", - "sharedPrivateLinkResource": null, - "enforceCertificateNameCheck": true, - "provisioningState": "Succeeded", - "deploymentStatus": "NotStarted" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/checkEndpointNameAvailability?api-version=2021-06-01", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "116", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "name": "sampleName", - "type": "Microsoft.Cdn/Profiles/AfdEndpoints", - "autoGeneratedDomainNameLabelScope": "TenantReuse" - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:10:35 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T021035Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "availableHostname": "sampleName-caeufvdagzancpap.z01.azurefd.net", - "nameAvailable": true, - "reason": null, - "message": null - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/checkHostNameAvailability?api-version=2021-06-01", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "33", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "hostName": "www.someDomain.net" - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:10:36 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T021036Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "nameAvailable": false, - "reason": "Conflict", - "message": "The hostname \u0027www.someDomain.net\u0027 is already owned by another profile." - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/usages?api-version=2021-06-01", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:10:39 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1197", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T021039Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk", - "unit": "count", - "currentValue": 1, - "limit": 25, - "name": { - "value": "afdendpoint", - "localizedValue": "afdendpoint" - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk", - "unit": "count", - "currentValue": 1, - "limit": 500, - "name": { - "value": "customdomain", - "localizedValue": "customdomain" - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk", - "unit": "count", - "currentValue": 1, - "limit": 200, - "name": { - "value": "origingroup", - "localizedValue": "origingroup" - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk", - "unit": "count", - "currentValue": 0, - "limit": 200, - "name": { - "value": "secret", - "localizedValue": "secret" - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk", - "unit": "count", - "currentValue": 1, - "limit": 200, - "name": { - "value": "ruleset", - "localizedValue": "ruleset" - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk", - "unit": "count", - "currentValue": 0, - "limit": 200, - "name": { - "value": "securitypolicy", - "localizedValue": "securitypolicy" - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/getLogAnalyticsLocations?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:10:40 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11977", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T021040Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "continents": [ - { - "id": "africa" - }, - { - "id": "antarctica" - }, - { - "id": "asia" - }, - { - "id": "europe" - }, - { - "id": "northAmerica" - }, - { - "id": "oceania" - }, - { - "id": "southAmerica" - } - ], - "countryOrRegions": [ - { - "id": "dz", - "continentId": "africa" - }, - { - "id": "ao", - "continentId": "africa" - }, - { - "id": "bw", - "continentId": "africa" - }, - { - "id": "bi", - "continentId": "africa" - }, - { - "id": "cm", - "continentId": "africa" - }, - { - "id": "cv", - "continentId": "africa" - }, - { - "id": "cf", - "continentId": "africa" - }, - { - "id": "td", - "continentId": "africa" - }, - { - "id": "km", - "continentId": "africa" - }, - { - "id": "yt", - "continentId": "africa" - }, - { - "id": "cg", - "continentId": "africa" - }, - { - "id": "cd", - "continentId": "africa" - }, - { - "id": "bj", - "continentId": "africa" - }, - { - "id": "gq", - "continentId": "africa" - }, - { - "id": "et", - "continentId": "africa" - }, - { - "id": "er", - "continentId": "africa" - }, - { - "id": "dj", - "continentId": "africa" - }, - { - "id": "ga", - "continentId": "africa" - }, - { - "id": "gm", - "continentId": "africa" - }, - { - "id": "gh", - "continentId": "africa" - }, - { - "id": "gn", - "continentId": "africa" - }, - { - "id": "ci", - "continentId": "africa" - }, - { - "id": "ke", - "continentId": "africa" - }, - { - "id": "ls", - "continentId": "africa" - }, - { - "id": "lr", - "continentId": "africa" - }, - { - "id": "ly", - "continentId": "africa" - }, - { - "id": "mg", - "continentId": "africa" - }, - { - "id": "mw", - "continentId": "africa" - }, - { - "id": "ml", - "continentId": "africa" - }, - { - "id": "mr", - "continentId": "africa" - }, - { - "id": "mu", - "continentId": "africa" - }, - { - "id": "ma", - "continentId": "africa" - }, - { - "id": "mz", - "continentId": "africa" - }, - { - "id": "na", - "continentId": "africa" - }, - { - "id": "ne", - "continentId": "africa" - }, - { - "id": "ng", - "continentId": "africa" - }, - { - "id": "gw", - "continentId": "africa" - }, - { - "id": "re", - "continentId": "africa" - }, - { - "id": "rw", - "continentId": "africa" - }, - { - "id": "sh", - "continentId": "africa" - }, - { - "id": "st", - "continentId": "africa" - }, - { - "id": "sn", - "continentId": "africa" - }, - { - "id": "sc", - "continentId": "africa" - }, - { - "id": "sl", - "continentId": "africa" - }, - { - "id": "so", - "continentId": "africa" - }, - { - "id": "za", - "continentId": "africa" - }, - { - "id": "zw", - "continentId": "africa" - }, - { - "id": "ss", - "continentId": "africa" - }, - { - "id": "eh", - "continentId": "africa" - }, - { - "id": "sd", - "continentId": "africa" - }, - { - "id": "sz", - "continentId": "africa" - }, - { - "id": "tg", - "continentId": "africa" - }, - { - "id": "tn", - "continentId": "africa" - }, - { - "id": "ug", - "continentId": "africa" - }, - { - "id": "eg", - "continentId": "africa" - }, - { - "id": "tz", - "continentId": "africa" - }, - { - "id": "bf", - "continentId": "africa" - }, - { - "id": "zm", - "continentId": "africa" - }, - { - "id": "aq", - "continentId": "antarctica" - }, - { - "id": "bv", - "continentId": "antarctica" - }, - { - "id": "gs", - "continentId": "antarctica" - }, - { - "id": "tf", - "continentId": "antarctica" - }, - { - "id": "hm", - "continentId": "antarctica" - }, - { - "id": "af", - "continentId": "asia" - }, - { - "id": "bh", - "continentId": "asia" - }, - { - "id": "bd", - "continentId": "asia" - }, - { - "id": "bt", - "continentId": "asia" - }, - { - "id": "io", - "continentId": "asia" - }, - { - "id": "bn", - "continentId": "asia" - }, - { - "id": "mm", - "continentId": "asia" - }, - { - "id": "kh", - "continentId": "asia" - }, - { - "id": "lk", - "continentId": "asia" - }, - { - "id": "cn", - "continentId": "asia" - }, - { - "id": "tw", - "continentId": "asia" - }, - { - "id": "cx", - "continentId": "asia" - }, - { - "id": "cc", - "continentId": "asia" - }, - { - "id": "cy", - "continentId": "asia" - }, - { - "id": "ps", - "continentId": "asia" - }, - { - "id": "hk", - "continentId": "asia" - }, - { - "id": "in", - "continentId": "asia" - }, - { - "id": "id", - "continentId": "asia" - }, - { - "id": "ir", - "continentId": "asia" - }, - { - "id": "iq", - "continentId": "asia" - }, - { - "id": "il", - "continentId": "asia" - }, - { - "id": "jp", - "continentId": "asia" - }, - { - "id": "kz", - "continentId": "asia" - }, - { - "id": "jo", - "continentId": "asia" - }, - { - "id": "kp", - "continentId": "asia" - }, - { - "id": "kr", - "continentId": "asia" - }, - { - "id": "kw", - "continentId": "asia" - }, - { - "id": "kg", - "continentId": "asia" - }, - { - "id": "la", - "continentId": "asia" - }, - { - "id": "lb", - "continentId": "asia" - }, - { - "id": "mo", - "continentId": "asia" - }, - { - "id": "my", - "continentId": "asia" - }, - { - "id": "mv", - "continentId": "asia" - }, - { - "id": "mn", - "continentId": "asia" - }, - { - "id": "om", - "continentId": "asia" - }, - { - "id": "np", - "continentId": "asia" - }, - { - "id": "pk", - "continentId": "asia" - }, - { - "id": "ph", - "continentId": "asia" - }, - { - "id": "tl", - "continentId": "asia" - }, - { - "id": "qa", - "continentId": "asia" - }, - { - "id": "sa", - "continentId": "asia" - }, - { - "id": "sg", - "continentId": "asia" - }, - { - "id": "vn", - "continentId": "asia" - }, - { - "id": "sy", - "continentId": "asia" - }, - { - "id": "tj", - "continentId": "asia" - }, - { - "id": "th", - "continentId": "asia" - }, - { - "id": "ae", - "continentId": "asia" - }, - { - "id": "tr", - "continentId": "asia" - }, - { - "id": "tm", - "continentId": "asia" - }, - { - "id": "uz", - "continentId": "asia" - }, - { - "id": "ye", - "continentId": "asia" - }, - { - "id": "xe", - "continentId": "asia" - }, - { - "id": "xd", - "continentId": "asia" - }, - { - "id": "xs", - "continentId": "asia" - }, - { - "id": "al", - "continentId": "europe" - }, - { - "id": "ad", - "continentId": "europe" - }, - { - "id": "az", - "continentId": "europe" - }, - { - "id": "at", - "continentId": "europe" - }, - { - "id": "am", - "continentId": "europe" - }, - { - "id": "be", - "continentId": "europe" - }, - { - "id": "ba", - "continentId": "europe" - }, - { - "id": "bg", - "continentId": "europe" - }, - { - "id": "by", - "continentId": "europe" - }, - { - "id": "hr", - "continentId": "europe" - }, - { - "id": "cz", - "continentId": "europe" - }, - { - "id": "dk", - "continentId": "europe" - }, - { - "id": "ee", - "continentId": "europe" - }, - { - "id": "fo", - "continentId": "europe" - }, - { - "id": "fi", - "continentId": "europe" - }, - { - "id": "ax", - "continentId": "europe" - }, - { - "id": "fr", - "continentId": "europe" - }, - { - "id": "ge", - "continentId": "europe" - }, - { - "id": "de", - "continentId": "europe" - }, - { - "id": "gi", - "continentId": "europe" - }, - { - "id": "gr", - "continentId": "europe" - }, - { - "id": "va", - "continentId": "europe" - }, - { - "id": "hu", - "continentId": "europe" - }, - { - "id": "is", - "continentId": "europe" - }, - { - "id": "ie", - "continentId": "europe" - }, - { - "id": "it", - "continentId": "europe" - }, - { - "id": "lv", - "continentId": "europe" - }, - { - "id": "li", - "continentId": "europe" - }, - { - "id": "lt", - "continentId": "europe" - }, - { - "id": "lu", - "continentId": "europe" - }, - { - "id": "mt", - "continentId": "europe" - }, - { - "id": "mc", - "continentId": "europe" - }, - { - "id": "md", - "continentId": "europe" - }, - { - "id": "me", - "continentId": "europe" - }, - { - "id": "nl", - "continentId": "europe" - }, - { - "id": "no", - "continentId": "europe" - }, - { - "id": "pl", - "continentId": "europe" - }, - { - "id": "pt", - "continentId": "europe" - }, - { - "id": "ro", - "continentId": "europe" - }, - { - "id": "ru", - "continentId": "europe" - }, - { - "id": "sm", - "continentId": "europe" - }, - { - "id": "rs", - "continentId": "europe" - }, - { - "id": "sk", - "continentId": "europe" - }, - { - "id": "si", - "continentId": "europe" - }, - { - "id": "es", - "continentId": "europe" - }, - { - "id": "sj", - "continentId": "europe" - }, - { - "id": "se", - "continentId": "europe" - }, - { - "id": "ch", - "continentId": "europe" - }, - { - "id": "ua", - "continentId": "europe" - }, - { - "id": "mk", - "continentId": "europe" - }, - { - "id": "gb", - "continentId": "europe" - }, - { - "id": "gg", - "continentId": "europe" - }, - { - "id": "je", - "continentId": "europe" - }, - { - "id": "im", - "continentId": "europe" - }, - { - "id": "ag", - "continentId": "northAmerica" - }, - { - "id": "bs", - "continentId": "northAmerica" - }, - { - "id": "bb", - "continentId": "northAmerica" - }, - { - "id": "bm", - "continentId": "northAmerica" - }, - { - "id": "bz", - "continentId": "northAmerica" - }, - { - "id": "vg", - "continentId": "northAmerica" - }, - { - "id": "ca", - "continentId": "northAmerica" - }, - { - "id": "ky", - "continentId": "northAmerica" - }, - { - "id": "cr", - "continentId": "northAmerica" - }, - { - "id": "cu", - "continentId": "northAmerica" - }, - { - "id": "dm", - "continentId": "northAmerica" - }, - { - "id": "do", - "continentId": "northAmerica" - }, - { - "id": "sv", - "continentId": "northAmerica" - }, - { - "id": "gl", - "continentId": "northAmerica" - }, - { - "id": "gd", - "continentId": "northAmerica" - }, - { - "id": "gp", - "continentId": "northAmerica" - }, - { - "id": "gt", - "continentId": "northAmerica" - }, - { - "id": "ht", - "continentId": "northAmerica" - }, - { - "id": "hn", - "continentId": "northAmerica" - }, - { - "id": "jm", - "continentId": "northAmerica" - }, - { - "id": "mq", - "continentId": "northAmerica" - }, - { - "id": "mx", - "continentId": "northAmerica" - }, - { - "id": "ms", - "continentId": "northAmerica" - }, - { - "id": "an", - "continentId": "northAmerica" - }, - { - "id": "cw", - "continentId": "northAmerica" - }, - { - "id": "aw", - "continentId": "northAmerica" - }, - { - "id": "sx", - "continentId": "northAmerica" - }, - { - "id": "bq", - "continentId": "northAmerica" - }, - { - "id": "ni", - "continentId": "northAmerica" - }, - { - "id": "um", - "continentId": "northAmerica" - }, - { - "id": "pa", - "continentId": "northAmerica" - }, - { - "id": "pr", - "continentId": "northAmerica" - }, - { - "id": "bl", - "continentId": "northAmerica" - }, - { - "id": "kn", - "continentId": "northAmerica" - }, - { - "id": "ai", - "continentId": "northAmerica" - }, - { - "id": "lc", - "continentId": "northAmerica" - }, - { - "id": "mf", - "continentId": "northAmerica" - }, - { - "id": "pm", - "continentId": "northAmerica" - }, - { - "id": "vc", - "continentId": "northAmerica" - }, - { - "id": "tt", - "continentId": "northAmerica" - }, - { - "id": "tc", - "continentId": "northAmerica" - }, - { - "id": "us", - "continentId": "northAmerica" - }, - { - "id": "vi", - "continentId": "northAmerica" - }, - { - "id": "as", - "continentId": "oceania" - }, - { - "id": "au", - "continentId": "oceania" - }, - { - "id": "sb", - "continentId": "oceania" - }, - { - "id": "ck", - "continentId": "oceania" - }, - { - "id": "fj", - "continentId": "oceania" - }, - { - "id": "pf", - "continentId": "oceania" - }, - { - "id": "ki", - "continentId": "oceania" - }, - { - "id": "gu", - "continentId": "oceania" - }, - { - "id": "nr", - "continentId": "oceania" - }, - { - "id": "nc", - "continentId": "oceania" - }, - { - "id": "vu", - "continentId": "oceania" - }, - { - "id": "nz", - "continentId": "oceania" - }, - { - "id": "nu", - "continentId": "oceania" - }, - { - "id": "nf", - "continentId": "oceania" - }, - { - "id": "mp", - "continentId": "oceania" - }, - { - "id": "fm", - "continentId": "oceania" - }, - { - "id": "mh", - "continentId": "oceania" - }, - { - "id": "pw", - "continentId": "oceania" - }, - { - "id": "pg", - "continentId": "oceania" - }, - { - "id": "pn", - "continentId": "oceania" - }, - { - "id": "tk", - "continentId": "oceania" - }, - { - "id": "to", - "continentId": "oceania" - }, - { - "id": "tv", - "continentId": "oceania" - }, - { - "id": "wf", - "continentId": "oceania" - }, - { - "id": "ws", - "continentId": "oceania" - }, - { - "id": "xx", - "continentId": "oceania" - }, - { - "id": "ar", - "continentId": "southAmerica" - }, - { - "id": "bo", - "continentId": "southAmerica" - }, - { - "id": "br", - "continentId": "southAmerica" - }, - { - "id": "cl", - "continentId": "southAmerica" - }, - { - "id": "co", - "continentId": "southAmerica" - }, - { - "id": "ec", - "continentId": "southAmerica" - }, - { - "id": "fk", - "continentId": "southAmerica" - }, - { - "id": "gf", - "continentId": "southAmerica" - }, - { - "id": "gy", - "continentId": "southAmerica" - }, - { - "id": "py", - "continentId": "southAmerica" - }, - { - "id": "pe", - "continentId": "southAmerica" - }, - { - "id": "sr", - "continentId": "southAmerica" - }, - { - "id": "uy", - "continentId": "southAmerica" - }, - { - "id": "ve", - "continentId": "southAmerica" - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/getLogAnalyticsRankings?api-version=2021-06-01\u0026dateTimeBegin=2020-11-04T06%3A49%3A27.554Z\u0026dateTimeEnd=2020-11-04T09%3A49%3A27.554Z\u0026maxRanking=5\u0026metrics=clientRequestCount\u0026rankings=url", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:10:43 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11976", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T021044Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "dateTimeBegin": "2020-11-04T06:49:27.554\u002B00:00", - "dateTimeEnd": "2020-11-04T09:49:27.554\u002B00:00", - "tables": [ - { - "ranking": "url", - "data": [] - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/getLogAnalyticsResources?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:10:45 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11975", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T021046Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "endpoints": [ - { - "id": "afdendpointnaEaKxHk", - "name": "afdendpointnaEaKxHk-hhdjcjerdhardaa0.z01.azurefd.net", - "history": false, - "customDomains": [] - } - ], - "customDomains": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/customdomains/afdcustomdomaEaKxHk", - "name": "www.somedomain.net", - "endpointId": "", - "history": false - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/getWafLogAnalyticsMetrics?actions=block\u0026actions=log\u0026api-version=2021-06-01\u0026dateTimeBegin=2020-11-04T06%3A49%3A27.554Z\u0026dateTimeEnd=2020-11-04T09%3A49%3A27.554Z\u0026granularity=PT5M\u0026metrics=clientRequestCount", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:10:47 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11974", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T021048Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "dateTimeBegin": "2020-11-04T06:49:27.554\u002B00:00", - "dateTimeEnd": "2020-11-04T09:49:27.554\u002B00:00", - "granularity": "PT5M", - "series": [ - { - "metric": "clientRequestCount", - "unit": "count", - "groups": null, - "data": [] - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/getWafLogAnalyticsRankings?api-version=2021-06-01\u0026dateTimeBegin=2020-11-04T06%3A49%3A27.554Z\u0026dateTimeEnd=2020-11-04T09%3A49%3A27.554Z\u0026maxRanking=5\u0026metrics=clientRequestCount\u0026rankings=ruleId", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:10:49 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11973", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T021050Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "dateTimeBegin": "2020-11-04T06:49:27.554\u002B00:00", - "dateTimeEnd": "2020-11-04T09:49:27.554\u002B00:00", - "groups": [ - "ruleId" - ], - "data": [] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/afdEndpoints/afdendpointnaEaKxHk/routes/routenameEaKxHk?api-version=2021-06-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "1005", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "cacheConfiguration": { - "compressionSettings": { - "contentTypesToCompress": [ - "text/html", - "application/octet-stream" - ], - "isCompressionEnabled": true - }, - "queryParameters": "querystring=test", - "queryStringCachingBehavior": "IgnoreSpecifiedQueryStrings" - }, - "customDomains": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/customDomains/afdcustomdomaEaKxHk" - } - ], - "enabledState": "Enabled", - "forwardingProtocol": "MatchRequest", - "httpsRedirect": "Enabled", - "linkToDefaultDomain": "Enabled", - "originGroup": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/originGroups/afdorigingrouEaKxHk" - }, - "patternsToMatch": [ - "/*" - ], - "ruleSets": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/ruleSets/rulesetnamEaKxHk" - } - ], - "supportedProtocols": [ - "Https", - "Http" - ] - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "Cache-Control": "no-cache", - "Content-Length": "1378", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:10:54 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "10", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "99", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T021055Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/afdendpoints/afdendpointnaEaKxHk/routes/routenameEaKxHk", - "type": "Microsoft.Cdn/profiles/afdendpoints/routes", - "name": "routenameEaKxHk", - "properties": { - "cacheConfiguration": { - "compressionSettings": { - "isCompressionEnabled": true, - "contentTypesToCompress": [ - "text/html", - "application/octet-stream" - ] - }, - "queryStringCachingBehavior": "IgnoreSpecifiedQueryStrings", - "queryParameters": "querystring=test" - }, - "customDomains": [ - { - "isActive": false, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/customDomains/afdcustomdomaEaKxHk" - } - ], - "originGroup": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/originGroups/afdorigingrouEaKxHk" - }, - "originPath": null, - "ruleSets": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/ruleSets/rulesetnamEaKxHk" - } - ], - "supportedProtocols": [ - "Https", - "Http" - ], - "patternsToMatch": [ - "/*" - ], - "forwardingProtocol": "MatchRequest", - "linkToDefaultDomain": "Enabled", - "httpsRedirect": "Enabled", - "enabledState": "Enabled", - "provisioningState": "Creating", - "deploymentStatus": "NotStarted" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:11:04 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11972", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T021105Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "InProgress", - "error": { - "code": "None", - "message": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:11:35 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11971", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T021135Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded", - "error": { - "code": "None", - "message": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/afdEndpoints/afdendpointnaEaKxHk/routes/routenameEaKxHk?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:11:36 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11970", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T021136Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/afdendpoints/afdendpointnaEaKxHk/routes/routenameEaKxHk", - "type": "Microsoft.Cdn/profiles/afdendpoints/routes", - "name": "routenameEaKxHk", - "properties": { - "cacheConfiguration": { - "compressionSettings": { - "isCompressionEnabled": true, - "contentTypesToCompress": [ - "text/html", - "application/octet-stream" - ] - }, - "queryStringCachingBehavior": "IgnoreSpecifiedQueryStrings", - "queryParameters": "querystring=test" - }, - "customDomains": [ - { - "isActive": false, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/customDomains/afdcustomdomaEaKxHk" - } - ], - "originGroup": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/originGroups/afdorigingrouEaKxHk" - }, - "originPath": null, - "ruleSets": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/ruleSets/rulesetnamEaKxHk" - } - ], - "supportedProtocols": [ - "Https", - "Http" - ], - "patternsToMatch": [ - "/*" - ], - "forwardingProtocol": "MatchRequest", - "linkToDefaultDomain": "Enabled", - "httpsRedirect": "Enabled", - "enabledState": "Enabled", - "provisioningState": "Succeeded", - "deploymentStatus": "NotStarted" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/afdEndpoints/afdendpointnaEaKxHk/routes?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:11:37 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11969", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T021137Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/afdendpoints/afdendpointnaEaKxHk/routes/routenameEaKxHk", - "type": "Microsoft.Cdn/profiles/afdendpoints/routes", - "name": "routenameEaKxHk", - "properties": { - "cacheConfiguration": { - "compressionSettings": { - "isCompressionEnabled": true, - "contentTypesToCompress": [ - "text/html", - "application/octet-stream" - ] - }, - "queryStringCachingBehavior": "IgnoreSpecifiedQueryStrings", - "queryParameters": "querystring=test" - }, - "customDomains": [ - { - "isActive": false, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/customDomains/afdcustomdomaEaKxHk" - } - ], - "originGroup": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/originGroups/afdorigingrouEaKxHk" - }, - "originPath": null, - "ruleSets": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/ruleSets/rulesetnamEaKxHk" - } - ], - "supportedProtocols": [ - "Https", - "Http" - ], - "patternsToMatch": [ - "/*" - ], - "forwardingProtocol": "MatchRequest", - "linkToDefaultDomain": "Enabled", - "httpsRedirect": "Enabled", - "enabledState": "Enabled", - "provisioningState": "Succeeded", - "deploymentStatus": "NotStarted" - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/afdEndpoints/afdendpointnaEaKxHk/routes/routenameEaKxHk?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:11:38 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11968", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T021138Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/afdendpoints/afdendpointnaEaKxHk/routes/routenameEaKxHk", - "type": "Microsoft.Cdn/profiles/afdendpoints/routes", - "name": "routenameEaKxHk", - "properties": { - "cacheConfiguration": { - "compressionSettings": { - "isCompressionEnabled": true, - "contentTypesToCompress": [ - "text/html", - "application/octet-stream" - ] - }, - "queryStringCachingBehavior": "IgnoreSpecifiedQueryStrings", - "queryParameters": "querystring=test" - }, - "customDomains": [ - { - "isActive": false, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/customDomains/afdcustomdomaEaKxHk" - } - ], - "originGroup": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/originGroups/afdorigingrouEaKxHk" - }, - "originPath": null, - "ruleSets": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/ruleSets/rulesetnamEaKxHk" - } - ], - "supportedProtocols": [ - "Https", - "Http" - ], - "patternsToMatch": [ - "/*" - ], - "forwardingProtocol": "MatchRequest", - "linkToDefaultDomain": "Enabled", - "httpsRedirect": "Enabled", - "enabledState": "Enabled", - "provisioningState": "Succeeded", - "deploymentStatus": "NotStarted" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/afdEndpoints/afdendpointnaEaKxHk/routes/routenameEaKxHk?api-version=2021-06-01", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "958", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "cacheConfiguration": { - "compressionSettings": { - "contentTypesToCompress": [ - "text/html", - "application/octet-stream" - ], - "isCompressionEnabled": true - }, - "queryStringCachingBehavior": "IgnoreQueryString" - }, - "customDomains": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/customDomains/afdcustomdomaEaKxHk" - } - ], - "enabledState": "Enabled", - "forwardingProtocol": "MatchRequest", - "httpsRedirect": "Enabled", - "linkToDefaultDomain": "Enabled", - "originGroup": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/originGroups/afdorigingrouEaKxHk" - }, - "patternsToMatch": [ - "/*" - ], - "ruleSets": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/ruleSets/rulesetnamEaKxHk" - } - ], - "supportedProtocols": [ - "Https", - "Http" - ] - } - }, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "Cache-Control": "no-cache", - "Content-Length": "1354", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:11:42 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000/profileresults/afdprofilenamEaKxHk/afdendpointresults/afdendpointnaEaKxHk/routeresults/routenameEaKxHk?api-version=2021-06-01", - "Pragma": "no-cache", - "Retry-After": "10", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "98", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T021142Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/afdendpoints/afdendpointnaEaKxHk/routes/routenameEaKxHk", - "type": "Microsoft.Cdn/profiles/afdendpoints/routes", - "name": "routenameEaKxHk", - "properties": { - "cacheConfiguration": { - "compressionSettings": { - "isCompressionEnabled": true, - "contentTypesToCompress": [ - "text/html", - "application/octet-stream" - ] - }, - "queryStringCachingBehavior": "IgnoreQueryString", - "queryParameters": null - }, - "customDomains": [ - { - "isActive": false, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/customDomains/afdcustomdomaEaKxHk" - } - ], - "originGroup": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/originGroups/afdorigingrouEaKxHk" - }, - "originPath": null, - "ruleSets": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/ruleSets/rulesetnamEaKxHk" - } - ], - "supportedProtocols": [ - "Https", - "Http" - ], - "patternsToMatch": [ - "/*" - ], - "forwardingProtocol": "MatchRequest", - "linkToDefaultDomain": "Enabled", - "httpsRedirect": "Enabled", - "enabledState": "Enabled", - "provisioningState": "Updating", - "deploymentStatus": "NotStarted" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:11:53 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11967", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T021153Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "InProgress", - "error": { - "code": "None", - "message": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:12:22 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11966", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T021223Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded", - "error": { - "code": "None", - "message": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/afdEndpoints/afdendpointnaEaKxHk/routes/routenameEaKxHk?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:12:23 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11965", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T021224Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/afdendpoints/afdendpointnaEaKxHk/routes/routenameEaKxHk", - "type": "Microsoft.Cdn/profiles/afdendpoints/routes", - "name": "routenameEaKxHk", - "properties": { - "cacheConfiguration": { - "compressionSettings": { - "isCompressionEnabled": true, - "contentTypesToCompress": [ - "text/html", - "application/octet-stream" - ] - }, - "queryStringCachingBehavior": "IgnoreQueryString", - "queryParameters": null - }, - "customDomains": [ - { - "isActive": false, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/customDomains/afdcustomdomaEaKxHk" - } - ], - "originGroup": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/originGroups/afdorigingrouEaKxHk" - }, - "originPath": null, - "ruleSets": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/ruleSets/rulesetnamEaKxHk" - } - ], - "supportedProtocols": [ - "Https", - "Http" - ], - "patternsToMatch": [ - "/*" - ], - "forwardingProtocol": "MatchRequest", - "linkToDefaultDomain": "Enabled", - "httpsRedirect": "Enabled", - "enabledState": "Enabled", - "provisioningState": "Succeeded", - "deploymentStatus": "NotStarted" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/afdEndpoints/afdendpointnaEaKxHk/routes/routenameEaKxHk?api-version=2021-06-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Tue, 08 Nov 2022 02:12:26 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000/profileresults/afdprofilenamEaKxHk/afdendpointresults/afdendpointnaEaKxHk/routeresults/routenameEaKxHk?api-version=2021-06-01", - "Pragma": "no-cache", - "Retry-After": "10", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14999", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T021226Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:12:36 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11964", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T021237Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "InProgress", - "error": { - "code": "None", - "message": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:13:06 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11963", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T021307Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded", - "error": { - "code": "None", - "message": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/ruleSets?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:13:08 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11962", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T021308Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/rulesets/rulesetnamEaKxHk", - "type": "Microsoft.Cdn/profiles/rulesets", - "name": "rulesetnamEaKxHk", - "properties": { - "provisioningState": "Succeeded", - "deploymentStatus": "NotStarted" - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/ruleSets/rulesetnamEaKxHk?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:13:09 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11961", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T021309Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/rulesets/rulesetnamEaKxHk", - "type": "Microsoft.Cdn/profiles/rulesets", - "name": "rulesetnamEaKxHk", - "properties": { - "provisioningState": "Succeeded", - "deploymentStatus": "NotStarted" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/ruleSets/rulesetnamEaKxHk/usages?api-version=2021-06-01", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:13:10 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "99", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T021310Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/rulesets/rulesetnamEaKxHk", - "unit": "count", - "currentValue": 0, - "limit": 100, - "name": { - "value": "rule", - "localizedValue": "rule" - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/ruleSets/rulesetnamEaKxHk/rules/rulenameEaKxHk?api-version=2021-06-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "374", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "actions": [ - { - "name": "ModifyResponseHeader", - "parameters": { - "headerAction": "Overwrite", - "headerName": "X-CDN", - "typeName": "DeliveryRuleHeaderActionParameters", - "value": "MSFT" - } - } - ], - "conditions": [ - { - "name": "RequestMethod", - "parameters": { - "matchValues": [ - "GET" - ], - "negateCondition": false, - "operator": "Equal", - "typeName": "DeliveryRuleRequestMethodConditionParameters" - } - } - ], - "order": 1 - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "751", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:13:13 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "99", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T021313Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/rulesets/rulesetnamEaKxHk/rules/rulenameEaKxHk", - "type": "Microsoft.Cdn/profiles/rulesets/rules", - "name": "rulenameEaKxHk", - "properties": { - "order": 1, - "conditions": [ - { - "name": "RequestMethod", - "parameters": { - "typeName": "DeliveryRuleRequestMethodConditionParameters", - "matchValues": [ - "GET" - ], - "operator": "Equal", - "negateCondition": false, - "transforms": [] - } - } - ], - "actions": [ - { - "name": "ModifyResponseHeader", - "parameters": { - "typeName": "DeliveryRuleHeaderActionParameters", - "headerAction": "Overwrite", - "headerName": "X-CDN", - "value": "MSFT" - } - } - ], - "matchProcessingBehavior": "Continue", - "provisioningState": "Succeeded", - "deploymentStatus": "NotStarted" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/ruleSets/rulesetnamEaKxHk/rules?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:13:14 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11960", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T021314Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/rulesets/rulesetnamEaKxHk/rules/rulenameEaKxHk", - "type": "Microsoft.Cdn/profiles/rulesets/rules", - "name": "rulenameEaKxHk", - "properties": { - "order": 1, - "conditions": [ - { - "name": "RequestMethod", - "parameters": { - "typeName": "DeliveryRuleRequestMethodConditionParameters", - "matchValues": [ - "GET" - ], - "operator": "Equal", - "negateCondition": false, - "transforms": [] - } - } - ], - "actions": [ - { - "name": "ModifyResponseHeader", - "parameters": { - "typeName": "DeliveryRuleHeaderActionParameters", - "headerAction": "Overwrite", - "headerName": "X-CDN", - "value": "MSFT" - } - } - ], - "matchProcessingBehavior": "Continue", - "provisioningState": "Succeeded", - "deploymentStatus": "NotStarted" - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/ruleSets/rulesetnamEaKxHk/rules/rulenameEaKxHk?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:13:15 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11959", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T021315Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/rulesets/rulesetnamEaKxHk/rules/rulenameEaKxHk", - "type": "Microsoft.Cdn/profiles/rulesets/rules", - "name": "rulenameEaKxHk", - "properties": { - "order": 1, - "conditions": [ - { - "name": "RequestMethod", - "parameters": { - "typeName": "DeliveryRuleRequestMethodConditionParameters", - "matchValues": [ - "GET" - ], - "operator": "Equal", - "negateCondition": false, - "transforms": [] - } - } - ], - "actions": [ - { - "name": "ModifyResponseHeader", - "parameters": { - "typeName": "DeliveryRuleHeaderActionParameters", - "headerAction": "Overwrite", - "headerName": "X-CDN", - "value": "MSFT" - } - } - ], - "matchProcessingBehavior": "Continue", - "provisioningState": "Succeeded", - "deploymentStatus": "NotStarted" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/ruleSets/rulesetnamEaKxHk/rules/rulenameEaKxHk?api-version=2021-06-01", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "196", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "actions": [ - { - "name": "ModifyResponseHeader", - "parameters": { - "headerAction": "Overwrite", - "headerName": "X-CDN", - "typeName": "DeliveryRuleHeaderActionParameters", - "value": "MSFT" - } - } - ], - "order": 1 - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:13:18 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "98", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T021318Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/rulesets/rulesetnamEaKxHk/rules/rulenameEaKxHk", - "type": "Microsoft.Cdn/profiles/rulesets/rules", - "name": "rulenameEaKxHk", - "properties": { - "order": 1, - "conditions": [ - { - "name": "RequestMethod", - "parameters": { - "typeName": "DeliveryRuleRequestMethodConditionParameters", - "matchValues": [ - "GET" - ], - "operator": "Equal", - "negateCondition": false, - "transforms": [] - } - } - ], - "actions": [ - { - "name": "ModifyResponseHeader", - "parameters": { - "typeName": "DeliveryRuleHeaderActionParameters", - "headerAction": "Overwrite", - "headerName": "X-CDN", - "value": "MSFT" - } - } - ], - "matchProcessingBehavior": "Continue", - "provisioningState": "Succeeded", - "deploymentStatus": "NotStarted" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/ruleSets/rulesetnamEaKxHk/rules/rulenameEaKxHk?api-version=2021-06-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Tue, 08 Nov 2022 02:13:20 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14998", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T021321Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/ruleSets/rulesetnamEaKxHk?api-version=2021-06-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Tue, 08 Nov 2022 02:13:22 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14997", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T021323Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/originGroups/afdorigingrouEaKxHk/origins/afdoriginnameEaKxHk?api-version=2021-06-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Tue, 08 Nov 2022 02:13:25 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000/profileresults/afdprofilenamEaKxHk/origingroupresults/afdorigingrouEaKxHk/originresults/afdoriginnameEaKxHk?api-version=2021-06-01", - "Pragma": "no-cache", - "Retry-After": "10", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14996", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T021326Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:13:35 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11958", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T021336Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "InProgress", - "error": { - "code": "None", - "message": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:14:06 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11957", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T021407Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded", - "error": { - "code": "None", - "message": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/originGroups/afdorigingrouEaKxHk?api-version=2021-06-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Tue, 08 Nov 2022 02:14:10 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000/profileresults/afdprofilenamEaKxHk/origingroupresults/afdorigingrouEaKxHk?api-version=2021-06-01", - "Pragma": "no-cache", - "Retry-After": "10", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14995", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T021410Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:14:20 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11956", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T021420Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded", - "error": { - "code": "None", - "message": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/afdEndpoints/afdendpointnaEaKxHk?api-version=2021-06-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Tue, 08 Nov 2022 02:14:23 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000/profileresults/afdprofilenamEaKxHk/afdendpointresults/afdendpointnaEaKxHk?api-version=2021-06-01", - "Pragma": "no-cache", - "Retry-After": "10", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14994", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T021424Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:14:34 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11955", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T021434Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded", - "error": { - "code": "None", - "message": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamEaKxHk/customDomains/afdcustomdomaEaKxHk?api-version=2021-06-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Tue, 08 Nov 2022 02:14:37 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000/profileresults/afdprofilenamEaKxHk/customdomainresults/afdcustomdomaEaKxHk?api-version=2021-06-01", - "Pragma": "no-cache", - "Retry-After": "10", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14993", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T021437Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:14:47 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11954", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T021447Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "InProgress", - "error": { - "code": "None", - "message": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:15:17 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11953", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T021517Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "InProgress", - "error": { - "code": "None", - "message": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:15:47 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11952", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T021548Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "InProgress", - "error": { - "code": "None", - "message": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:16:18 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11951", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T021618Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "InProgress", - "error": { - "code": "None", - "message": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:16:48 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11950", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T021648Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "InProgress", - "error": { - "code": "None", - "message": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:17:18 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11949", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T021719Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "InProgress", - "error": { - "code": "None", - "message": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:17:49 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11948", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T021749Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "InProgress", - "error": { - "code": "None", - "message": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:18:19 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11947", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T021819Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded", - "error": { - "code": "None", - "message": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Tue, 08 Nov 2022 02:18:22 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQzMjQtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14992", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T021823Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": { - "recordingRandomSeed": "1667873096" - } -} diff --git a/sdk/resourcemanager/cdn/armcdn/testdata/recordings/TestCdnTestSuite.json b/sdk/resourcemanager/cdn/armcdn/testdata/recordings/TestCdnTestSuite.json deleted file mode 100644 index dc4750186528..000000000000 --- a/sdk/resourcemanager/cdn/armcdn/testdata/recordings/TestCdnTestSuite.json +++ /dev/null @@ -1,7328 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:18:25 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T021826Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "westus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk?api-version=2021-06-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "57", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "global", - "sku": { - "name": "Standard_Microsoft" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "Cache-Control": "no-cache", - "Content-Length": "350", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:18:31 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "10", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "23", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T021831Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk", - "type": "Microsoft.Cdn/profiles", - "name": "profilenamEaKxHk", - "location": "Global", - "kind": "cdn", - "tags": {}, - "sku": { - "name": "Standard_Microsoft" - }, - "properties": { - "resourceState": "Creating", - "provisioningState": "Creating" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:18:41 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11946", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T021841Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "InProgress", - "error": { - "code": "None", - "message": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:19:11 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11945", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T021912Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded", - "error": { - "code": "None", - "message": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:19:12 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "49", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T021912Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk", - "type": "Microsoft.Cdn/profiles", - "name": "profilenamEaKxHk", - "location": "Global", - "kind": "cdn", - "tags": {}, - "sku": { - "name": "Standard_Microsoft" - }, - "properties": { - "resourceState": "Active", - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk/endpoints/endpointnaEaKxHk?api-version=2021-06-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "399", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus", - "properties": { - "contentTypesToCompress": [ - "text/html", - "application/octet-stream" - ], - "isCompressionEnabled": true, - "isHttpAllowed": true, - "isHttpsAllowed": true, - "originHostHeader": "www.bing.com", - "originPath": "/photos", - "origins": [ - { - "name": "origin1", - "properties": { - "hostName": "www.someDomain1.net", - "enabled": true, - "httpPort": 80, - "httpsPort": 443 - } - } - ], - "queryStringCachingBehavior": "BypassCaching" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "Cache-Control": "no-cache", - "Content-Length": "1153", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:19:22 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "10", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "99", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T021922Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk/endpoints/endpointnaEaKxHk", - "type": "Microsoft.Cdn/profiles/endpoints", - "name": "endpointnaEaKxHk", - "location": "WestUs", - "tags": {}, - "properties": { - "hostName": "endpointnaEaKxHk.azureedge.net", - "originHostHeader": "www.bing.com", - "originPath": "/photos", - "contentTypesToCompress": [ - "text/html", - "application/octet-stream" - ], - "isCompressionEnabled": true, - "isHttpAllowed": true, - "isHttpsAllowed": true, - "queryStringCachingBehavior": "BypassCaching", - "optimizationType": null, - "probePath": null, - "origins": [ - { - "name": "origin1", - "properties": { - "hostName": "www.someDomain1.net", - "httpPort": 80, - "httpsPort": 443, - "originHostHeader": "www.bing.com", - "priority": 1, - "weight": 1000, - "enabled": true, - "privateLinkAlias": null, - "privateLinkResourceId": null, - "privateLinkLocation": null, - "privateEndpointStatus": null, - "privateLinkApprovalMessage": null - } - } - ], - "originGroups": [], - "defaultOriginGroup": null, - "customDomains": [], - "geoFilters": [], - "deliveryPolicy": null, - "urlSigningKeys": null, - "webApplicationFirewallPolicyLink": null, - "resourceState": "Creating", - "provisioningState": "Creating" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:19:32 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11944", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T021933Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "InProgress", - "error": { - "code": "None", - "message": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:20:02 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11943", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T022003Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded", - "error": { - "code": "None", - "message": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk/endpoints/endpointnaEaKxHk?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:20:03 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "49", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T022004Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk/endpoints/endpointnaEaKxHk", - "type": "Microsoft.Cdn/profiles/endpoints", - "name": "endpointnaEaKxHk", - "location": "WestUs", - "tags": {}, - "properties": { - "hostName": "endpointnaEaKxHk.azureedge.net", - "originHostHeader": "www.bing.com", - "originPath": "/photos", - "contentTypesToCompress": [ - "text/html", - "application/octet-stream" - ], - "isCompressionEnabled": true, - "isHttpAllowed": true, - "isHttpsAllowed": true, - "queryStringCachingBehavior": "BypassCaching", - "optimizationType": null, - "probePath": null, - "origins": [ - { - "name": "origin1", - "properties": { - "hostName": "www.someDomain1.net", - "httpPort": 80, - "httpsPort": 443, - "originHostHeader": "www.bing.com", - "priority": 1, - "weight": 1000, - "enabled": true, - "privateLinkAlias": null, - "privateLinkResourceId": null, - "privateLinkLocation": null, - "privateEndpointStatus": null, - "privateLinkApprovalMessage": null - } - } - ], - "originGroups": [], - "defaultOriginGroup": null, - "customDomains": [], - "geoFilters": [], - "deliveryPolicy": null, - "urlSigningKeys": null, - "webApplicationFirewallPolicyLink": null, - "resourceState": "Running", - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk/endpoints/endpointnaEaKxHk/originGroups/origingrouEaKxHk?api-version=2021-06-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "340", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "healthProbeSettings": { - "probeIntervalInSeconds": 120, - "probePath": "/health.aspx", - "probeProtocol": "Http", - "probeRequestType": "GET" - }, - "origins": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk/endpoints/endpointnaEaKxHk/origins/origin1" - } - ] - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "Cache-Control": "no-cache", - "Content-Length": "785", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:20:06 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "10", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1197", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T022007Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk/endpoints/endpointnaEaKxHk/origingroups/origingrouEaKxHk", - "type": "Microsoft.Cdn/profiles/endpoints/origingroups", - "name": "origingroueakxhk", - "properties": { - "healthProbeSettings": { - "probePath": "/health.aspx", - "probeRequestType": "GET", - "probeProtocol": "Http", - "probeIntervalInSeconds": 120 - }, - "responseBasedOriginErrorDetectionSettings": null, - "trafficRestorationTimeToHealedOrNewEndpointsInMinutes": null, - "origins": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk/endpoints/endpointnaEaKxHk/origins/origin1" - } - ], - "resourceState": "Creating", - "provisioningState": "Creating" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:20:16 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11942", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T022017Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded", - "error": { - "code": "None", - "message": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk/endpoints/endpointnaEaKxHk/originGroups/origingrouEaKxHk?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:20:18 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11941", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T022018Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk/endpoints/endpointnaEaKxHk/origingroups/origingrouEaKxHk", - "type": "Microsoft.Cdn/profiles/endpoints/origingroups", - "name": "origingroueakxhk", - "properties": { - "healthProbeSettings": { - "probePath": "/health.aspx", - "probeRequestType": "GET", - "probeProtocol": "Http", - "probeIntervalInSeconds": 120 - }, - "responseBasedOriginErrorDetectionSettings": null, - "trafficRestorationTimeToHealedOrNewEndpointsInMinutes": null, - "origins": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk/endpoints/endpointnaEaKxHk/origins/origin1" - } - ], - "resourceState": "Active", - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk/endpoints/endpointnaEaKxHk?api-version=2021-06-01", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "235", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "defaultOriginGroup": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk/endpoints/endpointnaEaKxHk/originGroups/origingrouEaKxHk" - } - } - }, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "Cache-Control": "no-cache", - "Content-Length": "1822", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:20:24 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000/profileresults/profilenamEaKxHk/endpointresults/endpointnaEaKxHk?api-version=2021-06-01", - "Pragma": "no-cache", - "Retry-After": "10", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "98", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T022025Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk/endpoints/endpointnaEaKxHk", - "type": "Microsoft.Cdn/profiles/endpoints", - "name": "endpointnaEaKxHk", - "location": "WestUs", - "tags": {}, - "properties": { - "hostName": "endpointnaEaKxHk.azureedge.net", - "originHostHeader": "www.bing.com", - "originPath": "/photos", - "contentTypesToCompress": [ - "text/html", - "application/octet-stream" - ], - "isCompressionEnabled": true, - "isHttpAllowed": true, - "isHttpsAllowed": true, - "queryStringCachingBehavior": "BypassCaching", - "optimizationType": null, - "probePath": null, - "origins": [ - { - "name": "origin1", - "properties": { - "hostName": "www.someDomain1.net", - "httpPort": 80, - "httpsPort": 443, - "originHostHeader": "www.bing.com", - "priority": 1, - "weight": 1000, - "enabled": true, - "privateLinkAlias": null, - "privateLinkResourceId": null, - "privateLinkLocation": null, - "privateEndpointStatus": null, - "privateLinkApprovalMessage": null - } - } - ], - "originGroups": [ - { - "name": "origingroueakxhk", - "properties": { - "healthProbeSettings": { - "probePath": "/health.aspx", - "probeRequestType": "GET", - "probeProtocol": "Http", - "probeIntervalInSeconds": 120 - }, - "responseBasedOriginErrorDetectionSettings": null, - "trafficRestorationTimeToHealedOrNewEndpointsInMinutes": null, - "origins": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk/endpoints/endpointnaEaKxHk/origins/origin1" - } - ] - } - } - ], - "defaultOriginGroup": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk/endpoints/endpointnaEaKxHk/originGroups/origingrouEaKxHk" - }, - "customDomains": [], - "geoFilters": [], - "deliveryPolicy": null, - "urlSigningKeys": null, - "webApplicationFirewallPolicyLink": null, - "resourceState": "Running", - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:20:35 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11940", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T022035Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded", - "error": { - "code": "None", - "message": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk/endpoints/endpointnaEaKxHk?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:20:35 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "48", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T022036Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk/endpoints/endpointnaEaKxHk", - "type": "Microsoft.Cdn/profiles/endpoints", - "name": "endpointnaEaKxHk", - "location": "WestUs", - "tags": {}, - "properties": { - "hostName": "endpointnaEaKxHk.azureedge.net", - "originHostHeader": "www.bing.com", - "originPath": "/photos", - "contentTypesToCompress": [ - "text/html", - "application/octet-stream" - ], - "isCompressionEnabled": true, - "isHttpAllowed": true, - "isHttpsAllowed": true, - "queryStringCachingBehavior": "BypassCaching", - "optimizationType": null, - "probePath": null, - "origins": [ - { - "name": "origin1", - "properties": { - "hostName": "www.someDomain1.net", - "httpPort": 80, - "httpsPort": 443, - "originHostHeader": "www.bing.com", - "priority": 1, - "weight": 1000, - "enabled": true, - "privateLinkAlias": null, - "privateLinkResourceId": null, - "privateLinkLocation": null, - "privateEndpointStatus": null, - "privateLinkApprovalMessage": null - } - } - ], - "originGroups": [ - { - "name": "origingroueakxhk", - "properties": { - "healthProbeSettings": { - "probePath": "/health.aspx", - "probeRequestType": "GET", - "probeProtocol": "Http", - "probeIntervalInSeconds": 120 - }, - "responseBasedOriginErrorDetectionSettings": null, - "trafficRestorationTimeToHealedOrNewEndpointsInMinutes": null, - "origins": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk/endpoints/endpointnaEaKxHk/origins/origin1" - } - ] - } - } - ], - "defaultOriginGroup": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk/endpoints/endpointnaEaKxHk/originGroups/origingrouEaKxHk" - }, - "customDomains": [], - "geoFilters": [], - "deliveryPolicy": null, - "urlSigningKeys": null, - "webApplicationFirewallPolicyLink": null, - "resourceState": "Running", - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk/endpoints/endpointnaEaKxHk/origins/originnameEaKxHk?api-version=2021-06-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "93", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "enabled": true, - "httpPort": 80, - "httpsPort": 443, - "hostName": "www.someDomain.net" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "Cache-Control": "no-cache", - "Content-Length": "612", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:20:38 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "10", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1196", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T022039Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk/endpoints/endpointnaEaKxHk/origins/originnameEaKxHk", - "type": "Microsoft.Cdn/profiles/endpoints/origins", - "name": "originnameeakxhk", - "properties": { - "hostName": "www.somedomain.net", - "httpPort": 80, - "httpsPort": 443, - "resourceState": "Creating", - "originHostHeader": null, - "priority": 1, - "weight": 1000, - "enabled": true, - "privateLinkAlias": null, - "privateLinkResourceId": null, - "privateLinkLocation": null, - "privateEndpointStatus": null, - "privateLinkApprovalMessage": null, - "provisioningState": "Creating" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:20:49 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11939", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T022049Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "InProgress", - "error": { - "code": "None", - "message": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:21:19 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11938", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T022120Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded", - "error": { - "code": "None", - "message": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk/endpoints/endpointnaEaKxHk/origins/originnameEaKxHk?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:21:20 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11937", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T022121Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk/endpoints/endpointnaEaKxHk/origins/originnameEaKxHk", - "type": "Microsoft.Cdn/profiles/endpoints/origins", - "name": "originnameeakxhk", - "properties": { - "hostName": "www.somedomain.net", - "httpPort": 80, - "httpsPort": 443, - "resourceState": "Active", - "originHostHeader": null, - "priority": 1, - "weight": 1000, - "enabled": true, - "privateLinkAlias": null, - "privateLinkResourceId": null, - "privateLinkLocation": null, - "privateEndpointStatus": null, - "privateLinkApprovalMessage": null, - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.Cdn/checkNameAvailability?api-version=2021-06-01", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "63", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "name": "sampleName", - "type": "Microsoft.Cdn/Profiles/Endpoints" - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:21:21 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-tenant-writes": "1199", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T022122Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "nameAvailable": true, - "reason": null, - "message": null - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cdn/checkNameAvailability?api-version=2021-06-01", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "63", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "name": "sampleName", - "type": "Microsoft.Cdn/Profiles/Endpoints" - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:21:22 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1196", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T022123Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "nameAvailable": true, - "reason": null, - "message": null - } - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.Cdn/edgenodes?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:21:23 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-tenant-reads": "11999", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T022124Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/providers/Microsoft.Cdn/edgenodes/Standard_Verizon", - "type": "Microsoft.Cdn/edgenodes", - "name": "Standard_Verizon", - "properties": { - "ipAddressGroups": [ - { - "deliveryRegion": "All", - "ipv4Addresses": [ - { - "baseIpAddress": "5.104.64.0", - "prefixLength": 21 - }, - { - "baseIpAddress": "46.22.64.0", - "prefixLength": 20 - }, - { - "baseIpAddress": "61.221.181.64", - "prefixLength": 26 - }, - { - "baseIpAddress": "68.232.32.0", - "prefixLength": 20 - }, - { - "baseIpAddress": "72.21.80.0", - "prefixLength": 20 - }, - { - "baseIpAddress": "88.194.45.128", - "prefixLength": 26 - }, - { - "baseIpAddress": "93.184.208.0", - "prefixLength": 20 - }, - { - "baseIpAddress": "101.226.203.0", - "prefixLength": 24 - }, - { - "baseIpAddress": "108.161.240.0", - "prefixLength": 20 - }, - { - "baseIpAddress": "110.232.176.0", - "prefixLength": 22 - }, - { - "baseIpAddress": "117.18.232.0", - "prefixLength": 21 - }, - { - "baseIpAddress": "117.103.183.0", - "prefixLength": 24 - }, - { - "baseIpAddress": "120.132.137.0", - "prefixLength": 25 - }, - { - "baseIpAddress": "121.156.59.224", - "prefixLength": 27 - }, - { - "baseIpAddress": "121.189.46.0", - "prefixLength": 23 - }, - { - "baseIpAddress": "152.195.0.0", - "prefixLength": 16 - }, - { - "baseIpAddress": "180.240.184.0", - "prefixLength": 24 - }, - { - "baseIpAddress": "192.16.0.0", - "prefixLength": 18 - }, - { - "baseIpAddress": "192.30.0.0", - "prefixLength": 19 - }, - { - "baseIpAddress": "192.229.128.0", - "prefixLength": 17 - }, - { - "baseIpAddress": "194.255.210.64", - "prefixLength": 26 - }, - { - "baseIpAddress": "198.7.16.0", - "prefixLength": 20 - }, - { - "baseIpAddress": "203.74.4.64", - "prefixLength": 26 - }, - { - "baseIpAddress": "213.64.234.0", - "prefixLength": 26 - }, - { - "baseIpAddress": "213.65.58.0", - "prefixLength": 24 - }, - { - "baseIpAddress": "68.140.206.0", - "prefixLength": 23 - }, - { - "baseIpAddress": "68.130.0.0", - "prefixLength": 17 - }, - { - "baseIpAddress": "152.190.247.0", - "prefixLength": 24 - }, - { - "baseIpAddress": "65.222.137.0", - "prefixLength": 26 - }, - { - "baseIpAddress": "65.222.145.128", - "prefixLength": 26 - }, - { - "baseIpAddress": "65.198.79.64", - "prefixLength": 26 - }, - { - "baseIpAddress": "65.199.146.192", - "prefixLength": 26 - }, - { - "baseIpAddress": "65.200.151.160", - "prefixLength": 27 - }, - { - "baseIpAddress": "65.200.157.192", - "prefixLength": 27 - }, - { - "baseIpAddress": "68.130.128.0", - "prefixLength": 24 - }, - { - "baseIpAddress": "68.130.136.0", - "prefixLength": 21 - }, - { - "baseIpAddress": "65.200.46.128", - "prefixLength": 26 - }, - { - "baseIpAddress": "213.175.80.0", - "prefixLength": 24 - }, - { - "baseIpAddress": "152.199.0.0", - "prefixLength": 16 - }, - { - "baseIpAddress": "36.67.255.152", - "prefixLength": 29 - }, - { - "baseIpAddress": "194.255.242.160", - "prefixLength": 27 - }, - { - "baseIpAddress": "195.67.219.64", - "prefixLength": 27 - }, - { - "baseIpAddress": "88.194.47.224", - "prefixLength": 27 - }, - { - "baseIpAddress": "203.66.205.0", - "prefixLength": 24 - }, - { - "baseIpAddress": "110.164.36.0", - "prefixLength": 24 - }, - { - "baseIpAddress": "119.46.85.0", - "prefixLength": 24 - }, - { - "baseIpAddress": "49.231.126.0", - "prefixLength": 24 - }, - { - "baseIpAddress": "136.228.144.0", - "prefixLength": 24 - }, - { - "baseIpAddress": "64.12.0.0", - "prefixLength": 16 - } - ], - "ipv6Addresses": [ - { - "baseIpAddress": "2001:2011:c002::", - "prefixLength": 48 - }, - { - "baseIpAddress": "2001:2040:c006::", - "prefixLength": 48 - }, - { - "baseIpAddress": "2001:2060:bffb::", - "prefixLength": 48 - }, - { - "baseIpAddress": "2001:b032:c101::", - "prefixLength": 48 - }, - { - "baseIpAddress": "2405:8f00:edca::", - "prefixLength": 48 - }, - { - "baseIpAddress": "2405:8f00:edcb::", - "prefixLength": 48 - }, - { - "baseIpAddress": "2606:2800::", - "prefixLength": 32 - }, - { - "baseIpAddress": "2600:40ff:fffb::", - "prefixLength": 56 - }, - { - "baseIpAddress": "2a02:16d8:103::", - "prefixLength": 48 - }, - { - "baseIpAddress": "2600:40fc::", - "prefixLength": 32 - }, - { - "baseIpAddress": "2403:6200:ffff:ffa1::", - "prefixLength": 64 - }, - { - "baseIpAddress": "2001:fb0:109f:8005::", - "prefixLength": 64 - }, - { - "baseIpAddress": "2405:9800:61:1::", - "prefixLength": 64 - }, - { - "baseIpAddress": "2404:b300:33:1::", - "prefixLength": 64 - } - ] - } - ] - } - }, - { - "id": "/providers/Microsoft.Cdn/edgenodes/Premium_Verizon", - "type": "Microsoft.Cdn/edgenodes", - "name": "Premium_Verizon", - "properties": { - "ipAddressGroups": [ - { - "deliveryRegion": "All", - "ipv4Addresses": [ - { - "baseIpAddress": "5.104.64.0", - "prefixLength": 21 - }, - { - "baseIpAddress": "46.22.64.0", - "prefixLength": 20 - }, - { - "baseIpAddress": "61.221.181.64", - "prefixLength": 26 - }, - { - "baseIpAddress": "68.232.32.0", - "prefixLength": 20 - }, - { - "baseIpAddress": "72.21.80.0", - "prefixLength": 20 - }, - { - "baseIpAddress": "88.194.45.128", - "prefixLength": 26 - }, - { - "baseIpAddress": "93.184.208.0", - "prefixLength": 20 - }, - { - "baseIpAddress": "101.226.203.0", - "prefixLength": 24 - }, - { - "baseIpAddress": "108.161.240.0", - "prefixLength": 20 - }, - { - "baseIpAddress": "110.232.176.0", - "prefixLength": 22 - }, - { - "baseIpAddress": "117.18.232.0", - "prefixLength": 21 - }, - { - "baseIpAddress": "117.103.183.0", - "prefixLength": 24 - }, - { - "baseIpAddress": "120.132.137.0", - "prefixLength": 25 - }, - { - "baseIpAddress": "121.156.59.224", - "prefixLength": 27 - }, - { - "baseIpAddress": "121.189.46.0", - "prefixLength": 23 - }, - { - "baseIpAddress": "152.195.0.0", - "prefixLength": 16 - }, - { - "baseIpAddress": "180.240.184.0", - "prefixLength": 24 - }, - { - "baseIpAddress": "192.16.0.0", - "prefixLength": 18 - }, - { - "baseIpAddress": "192.30.0.0", - "prefixLength": 19 - }, - { - "baseIpAddress": "192.229.128.0", - "prefixLength": 17 - }, - { - "baseIpAddress": "194.255.210.64", - "prefixLength": 26 - }, - { - "baseIpAddress": "198.7.16.0", - "prefixLength": 20 - }, - { - "baseIpAddress": "203.74.4.64", - "prefixLength": 26 - }, - { - "baseIpAddress": "213.64.234.0", - "prefixLength": 26 - }, - { - "baseIpAddress": "213.65.58.0", - "prefixLength": 24 - }, - { - "baseIpAddress": "68.140.206.0", - "prefixLength": 23 - }, - { - "baseIpAddress": "68.130.0.0", - "prefixLength": 17 - }, - { - "baseIpAddress": "152.190.247.0", - "prefixLength": 24 - }, - { - "baseIpAddress": "65.222.137.0", - "prefixLength": 26 - }, - { - "baseIpAddress": "65.222.145.128", - "prefixLength": 26 - }, - { - "baseIpAddress": "65.198.79.64", - "prefixLength": 26 - }, - { - "baseIpAddress": "65.199.146.192", - "prefixLength": 26 - }, - { - "baseIpAddress": "65.200.151.160", - "prefixLength": 27 - }, - { - "baseIpAddress": "65.200.157.192", - "prefixLength": 27 - }, - { - "baseIpAddress": "68.130.128.0", - "prefixLength": 24 - }, - { - "baseIpAddress": "68.130.136.0", - "prefixLength": 21 - }, - { - "baseIpAddress": "65.200.46.128", - "prefixLength": 26 - }, - { - "baseIpAddress": "213.175.80.0", - "prefixLength": 24 - }, - { - "baseIpAddress": "152.199.0.0", - "prefixLength": 16 - }, - { - "baseIpAddress": "36.67.255.152", - "prefixLength": 29 - }, - { - "baseIpAddress": "194.255.242.160", - "prefixLength": 27 - }, - { - "baseIpAddress": "195.67.219.64", - "prefixLength": 27 - }, - { - "baseIpAddress": "88.194.47.224", - "prefixLength": 27 - }, - { - "baseIpAddress": "203.66.205.0", - "prefixLength": 24 - }, - { - "baseIpAddress": "110.164.36.0", - "prefixLength": 24 - }, - { - "baseIpAddress": "119.46.85.0", - "prefixLength": 24 - }, - { - "baseIpAddress": "49.231.126.0", - "prefixLength": 24 - }, - { - "baseIpAddress": "136.228.144.0", - "prefixLength": 24 - }, - { - "baseIpAddress": "64.12.0.0", - "prefixLength": 16 - } - ], - "ipv6Addresses": [ - { - "baseIpAddress": "2001:2011:c002::", - "prefixLength": 48 - }, - { - "baseIpAddress": "2001:2040:c006::", - "prefixLength": 48 - }, - { - "baseIpAddress": "2001:2060:bffb::", - "prefixLength": 48 - }, - { - "baseIpAddress": "2001:b032:c101::", - "prefixLength": 48 - }, - { - "baseIpAddress": "2405:8f00:edca::", - "prefixLength": 48 - }, - { - "baseIpAddress": "2405:8f00:edcb::", - "prefixLength": 48 - }, - { - "baseIpAddress": "2606:2800::", - "prefixLength": 32 - }, - { - "baseIpAddress": "2600:40ff:fffb::", - "prefixLength": 56 - }, - { - "baseIpAddress": "2a02:16d8:103::", - "prefixLength": 48 - }, - { - "baseIpAddress": "2600:40fc::", - "prefixLength": 32 - }, - { - "baseIpAddress": "2403:6200:ffff:ffa1::", - "prefixLength": 64 - }, - { - "baseIpAddress": "2001:fb0:109f:8005::", - "prefixLength": 64 - }, - { - "baseIpAddress": "2405:9800:61:1::", - "prefixLength": 64 - }, - { - "baseIpAddress": "2404:b300:33:1::", - "prefixLength": 64 - } - ] - } - ] - } - }, - { - "id": "/providers/Microsoft.Cdn/edgenodes/Custom_Verizon", - "type": "Microsoft.Cdn/edgenodes", - "name": "Custom_Verizon", - "properties": { - "ipAddressGroups": [ - { - "deliveryRegion": "All", - "ipv4Addresses": [ - { - "baseIpAddress": "5.104.64.0", - "prefixLength": 21 - }, - { - "baseIpAddress": "46.22.64.0", - "prefixLength": 20 - }, - { - "baseIpAddress": "61.221.181.64", - "prefixLength": 26 - }, - { - "baseIpAddress": "68.232.32.0", - "prefixLength": 20 - }, - { - "baseIpAddress": "72.21.80.0", - "prefixLength": 20 - }, - { - "baseIpAddress": "88.194.45.128", - "prefixLength": 26 - }, - { - "baseIpAddress": "93.184.208.0", - "prefixLength": 20 - }, - { - "baseIpAddress": "101.226.203.0", - "prefixLength": 24 - }, - { - "baseIpAddress": "108.161.240.0", - "prefixLength": 20 - }, - { - "baseIpAddress": "110.232.176.0", - "prefixLength": 22 - }, - { - "baseIpAddress": "117.18.232.0", - "prefixLength": 21 - }, - { - "baseIpAddress": "117.103.183.0", - "prefixLength": 24 - }, - { - "baseIpAddress": "120.132.137.0", - "prefixLength": 25 - }, - { - "baseIpAddress": "121.156.59.224", - "prefixLength": 27 - }, - { - "baseIpAddress": "121.189.46.0", - "prefixLength": 23 - }, - { - "baseIpAddress": "152.195.0.0", - "prefixLength": 16 - }, - { - "baseIpAddress": "180.240.184.0", - "prefixLength": 24 - }, - { - "baseIpAddress": "192.16.0.0", - "prefixLength": 18 - }, - { - "baseIpAddress": "192.30.0.0", - "prefixLength": 19 - }, - { - "baseIpAddress": "192.229.128.0", - "prefixLength": 17 - }, - { - "baseIpAddress": "194.255.210.64", - "prefixLength": 26 - }, - { - "baseIpAddress": "198.7.16.0", - "prefixLength": 20 - }, - { - "baseIpAddress": "203.74.4.64", - "prefixLength": 26 - }, - { - "baseIpAddress": "213.64.234.0", - "prefixLength": 26 - }, - { - "baseIpAddress": "213.65.58.0", - "prefixLength": 24 - }, - { - "baseIpAddress": "68.140.206.0", - "prefixLength": 23 - }, - { - "baseIpAddress": "68.130.0.0", - "prefixLength": 17 - }, - { - "baseIpAddress": "152.190.247.0", - "prefixLength": 24 - }, - { - "baseIpAddress": "65.222.137.0", - "prefixLength": 26 - }, - { - "baseIpAddress": "65.222.145.128", - "prefixLength": 26 - }, - { - "baseIpAddress": "65.198.79.64", - "prefixLength": 26 - }, - { - "baseIpAddress": "65.199.146.192", - "prefixLength": 26 - }, - { - "baseIpAddress": "65.200.151.160", - "prefixLength": 27 - }, - { - "baseIpAddress": "65.200.157.192", - "prefixLength": 27 - }, - { - "baseIpAddress": "68.130.128.0", - "prefixLength": 24 - }, - { - "baseIpAddress": "68.130.136.0", - "prefixLength": 21 - }, - { - "baseIpAddress": "65.200.46.128", - "prefixLength": 26 - }, - { - "baseIpAddress": "213.175.80.0", - "prefixLength": 24 - }, - { - "baseIpAddress": "152.199.0.0", - "prefixLength": 16 - }, - { - "baseIpAddress": "36.67.255.152", - "prefixLength": 29 - }, - { - "baseIpAddress": "194.255.242.160", - "prefixLength": 27 - }, - { - "baseIpAddress": "195.67.219.64", - "prefixLength": 27 - }, - { - "baseIpAddress": "88.194.47.224", - "prefixLength": 27 - }, - { - "baseIpAddress": "203.66.205.0", - "prefixLength": 24 - }, - { - "baseIpAddress": "110.164.36.0", - "prefixLength": 24 - }, - { - "baseIpAddress": "119.46.85.0", - "prefixLength": 24 - }, - { - "baseIpAddress": "49.231.126.0", - "prefixLength": 24 - }, - { - "baseIpAddress": "136.228.144.0", - "prefixLength": 24 - }, - { - "baseIpAddress": "64.12.0.0", - "prefixLength": 16 - } - ], - "ipv6Addresses": [ - { - "baseIpAddress": "2001:2011:c002::", - "prefixLength": 48 - }, - { - "baseIpAddress": "2001:2040:c006::", - "prefixLength": 48 - }, - { - "baseIpAddress": "2001:2060:bffb::", - "prefixLength": 48 - }, - { - "baseIpAddress": "2001:b032:c101::", - "prefixLength": 48 - }, - { - "baseIpAddress": "2405:8f00:edca::", - "prefixLength": 48 - }, - { - "baseIpAddress": "2405:8f00:edcb::", - "prefixLength": 48 - }, - { - "baseIpAddress": "2606:2800::", - "prefixLength": 32 - }, - { - "baseIpAddress": "2600:40ff:fffb::", - "prefixLength": 56 - }, - { - "baseIpAddress": "2a02:16d8:103::", - "prefixLength": 48 - }, - { - "baseIpAddress": "2600:40fc::", - "prefixLength": 32 - }, - { - "baseIpAddress": "2403:6200:ffff:ffa1::", - "prefixLength": 64 - }, - { - "baseIpAddress": "2001:fb0:109f:8005::", - "prefixLength": 64 - }, - { - "baseIpAddress": "2405:9800:61:1::", - "prefixLength": 64 - }, - { - "baseIpAddress": "2404:b300:33:1::", - "prefixLength": 64 - } - ] - } - ] - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk/endpoints?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:21:24 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "47", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T022125Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk/endpoints/endpointnaEaKxHk", - "type": "Microsoft.Cdn/profiles/endpoints", - "name": "endpointnaEaKxHk", - "location": "WestUs", - "tags": {}, - "properties": { - "hostName": "endpointnaEaKxHk.azureedge.net", - "originHostHeader": "www.bing.com", - "originPath": "/photos", - "contentTypesToCompress": [ - "text/html", - "application/octet-stream" - ], - "isCompressionEnabled": true, - "isHttpAllowed": true, - "isHttpsAllowed": true, - "queryStringCachingBehavior": "BypassCaching", - "optimizationType": null, - "probePath": null, - "origins": [ - { - "name": "origin1", - "properties": { - "hostName": "www.someDomain1.net", - "httpPort": 80, - "httpsPort": 443, - "originHostHeader": "www.bing.com", - "priority": 1, - "weight": 1000, - "enabled": true, - "privateLinkAlias": null, - "privateLinkResourceId": null, - "privateLinkLocation": null, - "privateEndpointStatus": null, - "privateLinkApprovalMessage": null - } - }, - { - "name": "originnameeakxhk", - "properties": { - "hostName": "www.somedomain.net", - "httpPort": 80, - "httpsPort": 443, - "originHostHeader": null, - "priority": 1, - "weight": 1000, - "enabled": true, - "privateLinkAlias": null, - "privateLinkResourceId": null, - "privateLinkLocation": null, - "privateEndpointStatus": null, - "privateLinkApprovalMessage": null - } - } - ], - "originGroups": [ - { - "name": "origingroueakxhk", - "properties": { - "healthProbeSettings": { - "probePath": "/health.aspx", - "probeRequestType": "GET", - "probeProtocol": "Http", - "probeIntervalInSeconds": 120 - }, - "responseBasedOriginErrorDetectionSettings": null, - "trafficRestorationTimeToHealedOrNewEndpointsInMinutes": null, - "origins": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk/endpoints/endpointnaEaKxHk/origins/origin1" - } - ] - } - } - ], - "defaultOriginGroup": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk/endpoints/endpointnaEaKxHk/originGroups/origingrouEaKxHk" - }, - "customDomains": [], - "geoFilters": [], - "deliveryPolicy": null, - "urlSigningKeys": null, - "webApplicationFirewallPolicyLink": null, - "resourceState": "Running", - "provisioningState": "Succeeded" - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk/endpoints/endpointnaEaKxHk?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:21:25 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "46", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T022125Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk/endpoints/endpointnaEaKxHk", - "type": "Microsoft.Cdn/profiles/endpoints", - "name": "endpointnaEaKxHk", - "location": "WestUs", - "tags": {}, - "properties": { - "hostName": "endpointnaEaKxHk.azureedge.net", - "originHostHeader": "www.bing.com", - "originPath": "/photos", - "contentTypesToCompress": [ - "text/html", - "application/octet-stream" - ], - "isCompressionEnabled": true, - "isHttpAllowed": true, - "isHttpsAllowed": true, - "queryStringCachingBehavior": "BypassCaching", - "optimizationType": null, - "probePath": null, - "origins": [ - { - "name": "origin1", - "properties": { - "hostName": "www.someDomain1.net", - "httpPort": 80, - "httpsPort": 443, - "originHostHeader": "www.bing.com", - "priority": 1, - "weight": 1000, - "enabled": true, - "privateLinkAlias": null, - "privateLinkResourceId": null, - "privateLinkLocation": null, - "privateEndpointStatus": null, - "privateLinkApprovalMessage": null - } - }, - { - "name": "originnameeakxhk", - "properties": { - "hostName": "www.somedomain.net", - "httpPort": 80, - "httpsPort": 443, - "originHostHeader": null, - "priority": 1, - "weight": 1000, - "enabled": true, - "privateLinkAlias": null, - "privateLinkResourceId": null, - "privateLinkLocation": null, - "privateEndpointStatus": null, - "privateLinkApprovalMessage": null - } - } - ], - "originGroups": [ - { - "name": "origingroueakxhk", - "properties": { - "healthProbeSettings": { - "probePath": "/health.aspx", - "probeRequestType": "GET", - "probeProtocol": "Http", - "probeIntervalInSeconds": 120 - }, - "responseBasedOriginErrorDetectionSettings": null, - "trafficRestorationTimeToHealedOrNewEndpointsInMinutes": null, - "origins": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk/endpoints/endpointnaEaKxHk/origins/origin1" - } - ] - } - } - ], - "defaultOriginGroup": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk/endpoints/endpointnaEaKxHk/originGroups/origingrouEaKxHk" - }, - "customDomains": [], - "geoFilters": [], - "deliveryPolicy": null, - "urlSigningKeys": null, - "webApplicationFirewallPolicyLink": null, - "resourceState": "Running", - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk/endpoints/endpointnaEaKxHk/checkResourceUsage?api-version=2021-06-01", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:21:26 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1195", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T022127Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "resourceType": "customdomain", - "unit": "count", - "currentValue": 0, - "limit": 25 - }, - { - "resourceType": "geofilter", - "unit": "count", - "currentValue": 0, - "limit": 25 - }, - { - "resourceType": "deliveryrule", - "unit": "count", - "currentValue": 0, - "limit": 25 - }, - { - "resourceType": "deliveryrulecondition", - "unit": "count", - "currentValue": 0, - "limit": 10 - }, - { - "resourceType": "deliveryruleaction", - "unit": "count", - "currentValue": 0, - "limit": 5 - }, - { - "resourceType": "origin", - "unit": "count", - "currentValue": 2, - "limit": 10 - }, - { - "resourceType": "origingroup", - "unit": "count", - "currentValue": 2, - "limit": 10 - }, - { - "resourceType": "originsPerOriginGroup", - "unit": "count", - "currentValue": 2, - "limit": 10 - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk/endpoints/endpointnaEaKxHk/validateCustomDomain?api-version=2021-06-01", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "33", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "hostName": "www.someDomain.com" - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:21:29 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1194", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T022130Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "customDomainValidated": false, - "reason": "IncorrectMapping", - "message": "We couldn\u0027t find a DNS record for custom domain that points to endpoint. To map a domain to this endpoint, create a CNAME record with your DNS provider for custom domain that points to endpoint." - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk/endpoints/endpointnaEaKxHk/purge?api-version=2021-06-01", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "29", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "contentPaths": [ - "/folder1" - ] - }, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Tue, 08 Nov 2022 02:21:33 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000/profileresults/profilenamEaKxHk/endpointresults/endpointnaEaKxHk?api-version=2021-06-01", - "Pragma": "no-cache", - "Retry-After": "10", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "499", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T022133Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:21:43 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11936", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T022143Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "InProgress", - "error": { - "code": "None", - "message": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:22:14 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T022214Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "InProgress", - "error": { - "code": "None", - "message": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:22:43 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T022244Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "InProgress", - "error": { - "code": "None", - "message": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:23:14 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T022314Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded", - "error": { - "code": "None", - "message": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000/profileresults/profilenamEaKxHk/endpointresults/endpointnaEaKxHk?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:23:15 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T022315Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000/profileresults/profilenamEaKxHk/endpointresults/endpointnaEaKxHk", - "type": "Microsoft.Cdn/operationresults/profileresults/endpointresults", - "name": "endpointnaEaKxHk", - "location": "WestUs", - "tags": {}, - "properties": { - "hostName": "endpointnaEaKxHk.azureedge.net", - "originHostHeader": "www.bing.com", - "originPath": "/photos", - "contentTypesToCompress": [ - "text/html", - "application/octet-stream" - ], - "isCompressionEnabled": true, - "isHttpAllowed": true, - "isHttpsAllowed": true, - "queryStringCachingBehavior": "BypassCaching", - "optimizationType": null, - "probePath": null, - "origins": [ - { - "name": "origin1", - "properties": { - "hostName": "www.someDomain1.net", - "httpPort": 80, - "httpsPort": 443, - "originHostHeader": "www.bing.com", - "priority": 1, - "weight": 1000, - "enabled": true, - "privateLinkAlias": null, - "privateLinkResourceId": null, - "privateLinkLocation": null, - "privateEndpointStatus": null, - "privateLinkApprovalMessage": null - } - }, - { - "name": "originnameeakxhk", - "properties": { - "hostName": "www.somedomain.net", - "httpPort": 80, - "httpsPort": 443, - "originHostHeader": null, - "priority": 1, - "weight": 1000, - "enabled": true, - "privateLinkAlias": null, - "privateLinkResourceId": null, - "privateLinkLocation": null, - "privateEndpointStatus": null, - "privateLinkApprovalMessage": null - } - } - ], - "originGroups": [ - { - "name": "origingroueakxhk", - "properties": { - "healthProbeSettings": { - "probePath": "/health.aspx", - "probeRequestType": "GET", - "probeProtocol": "Http", - "probeIntervalInSeconds": 120 - }, - "responseBasedOriginErrorDetectionSettings": null, - "trafficRestorationTimeToHealedOrNewEndpointsInMinutes": null, - "origins": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk/endpoints/endpointnaEaKxHk/origins/origin1" - } - ] - } - } - ], - "defaultOriginGroup": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk/endpoints/endpointnaEaKxHk/originGroups/origingrouEaKxHk" - }, - "customDomains": [], - "geoFilters": [], - "deliveryPolicy": null, - "urlSigningKeys": null, - "webApplicationFirewallPolicyLink": null, - "resourceState": "Running", - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk/endpoints/endpointnaEaKxHk/stop?api-version=2021-06-01", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "Cache-Control": "no-cache", - "Content-Length": "2137", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:23:19 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000/profileresults/profilenamEaKxHk/endpointresults/endpointnaEaKxHk?api-version=2021-06-01", - "Pragma": "no-cache", - "Retry-After": "10", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "49", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T022320Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk/endpoints/endpointnaEaKxHk", - "type": "Microsoft.Cdn/profiles/endpoints", - "name": "endpointnaEaKxHk", - "location": "WestUs", - "tags": {}, - "properties": { - "hostName": "endpointnaEaKxHk.azureedge.net", - "originHostHeader": "www.bing.com", - "originPath": "/photos", - "contentTypesToCompress": [ - "text/html", - "application/octet-stream" - ], - "isCompressionEnabled": true, - "isHttpAllowed": true, - "isHttpsAllowed": true, - "queryStringCachingBehavior": "BypassCaching", - "optimizationType": null, - "probePath": null, - "origins": [ - { - "name": "origin1", - "properties": { - "hostName": "www.someDomain1.net", - "httpPort": 80, - "httpsPort": 443, - "originHostHeader": "www.bing.com", - "priority": 1, - "weight": 1000, - "enabled": true, - "privateLinkAlias": null, - "privateLinkResourceId": null, - "privateLinkLocation": null, - "privateEndpointStatus": null, - "privateLinkApprovalMessage": null - } - }, - { - "name": "originnameeakxhk", - "properties": { - "hostName": "www.somedomain.net", - "httpPort": 80, - "httpsPort": 443, - "originHostHeader": null, - "priority": 1, - "weight": 1000, - "enabled": true, - "privateLinkAlias": null, - "privateLinkResourceId": null, - "privateLinkLocation": null, - "privateEndpointStatus": null, - "privateLinkApprovalMessage": null - } - } - ], - "originGroups": [ - { - "name": "origingroueakxhk", - "properties": { - "healthProbeSettings": { - "probePath": "/health.aspx", - "probeRequestType": "GET", - "probeProtocol": "Http", - "probeIntervalInSeconds": 120 - }, - "responseBasedOriginErrorDetectionSettings": null, - "trafficRestorationTimeToHealedOrNewEndpointsInMinutes": null, - "origins": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk/endpoints/endpointnaEaKxHk/origins/origin1" - } - ] - } - } - ], - "defaultOriginGroup": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk/endpoints/endpointnaEaKxHk/originGroups/origingrouEaKxHk" - }, - "customDomains": [], - "geoFilters": [], - "deliveryPolicy": null, - "urlSigningKeys": null, - "webApplicationFirewallPolicyLink": null, - "resourceState": "Stopping", - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:23:29 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T022330Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "InProgress", - "error": { - "code": "None", - "message": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:24:00 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11930", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T022400Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "InProgress", - "error": { - "code": "None", - "message": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:24:30 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11929", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T022430Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded", - "error": { - "code": "None", - "message": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000/profileresults/profilenamEaKxHk/endpointresults/endpointnaEaKxHk?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:24:31 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11928", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T022431Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000/profileresults/profilenamEaKxHk/endpointresults/endpointnaEaKxHk", - "type": "Microsoft.Cdn/operationresults/profileresults/endpointresults", - "name": "endpointnaEaKxHk", - "location": "WestUs", - "tags": {}, - "properties": { - "hostName": "endpointnaEaKxHk.azureedge.net", - "originHostHeader": "www.bing.com", - "originPath": "/photos", - "contentTypesToCompress": [ - "text/html", - "application/octet-stream" - ], - "isCompressionEnabled": true, - "isHttpAllowed": true, - "isHttpsAllowed": true, - "queryStringCachingBehavior": "BypassCaching", - "optimizationType": null, - "probePath": null, - "origins": [ - { - "name": "origin1", - "properties": { - "hostName": "www.someDomain1.net", - "httpPort": 80, - "httpsPort": 443, - "originHostHeader": "www.bing.com", - "priority": 1, - "weight": 1000, - "enabled": true, - "privateLinkAlias": null, - "privateLinkResourceId": null, - "privateLinkLocation": null, - "privateEndpointStatus": null, - "privateLinkApprovalMessage": null - } - }, - { - "name": "originnameeakxhk", - "properties": { - "hostName": "www.somedomain.net", - "httpPort": 80, - "httpsPort": 443, - "originHostHeader": null, - "priority": 1, - "weight": 1000, - "enabled": true, - "privateLinkAlias": null, - "privateLinkResourceId": null, - "privateLinkLocation": null, - "privateEndpointStatus": null, - "privateLinkApprovalMessage": null - } - } - ], - "originGroups": [ - { - "name": "origingroueakxhk", - "properties": { - "healthProbeSettings": { - "probePath": "/health.aspx", - "probeRequestType": "GET", - "probeProtocol": "Http", - "probeIntervalInSeconds": 120 - }, - "responseBasedOriginErrorDetectionSettings": null, - "trafficRestorationTimeToHealedOrNewEndpointsInMinutes": null, - "origins": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk/endpoints/endpointnaEaKxHk/origins/origin1" - } - ] - } - } - ], - "defaultOriginGroup": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk/endpoints/endpointnaEaKxHk/originGroups/origingrouEaKxHk" - }, - "customDomains": [], - "geoFilters": [], - "deliveryPolicy": null, - "urlSigningKeys": null, - "webApplicationFirewallPolicyLink": null, - "resourceState": "Stopped", - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk/endpoints/endpointnaEaKxHk/start?api-version=2021-06-01", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "Cache-Control": "no-cache", - "Content-Length": "2137", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:24:34 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000/profileresults/profilenamEaKxHk/endpointresults/endpointnaEaKxHk?api-version=2021-06-01", - "Pragma": "no-cache", - "Retry-After": "10", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "49", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T022434Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk/endpoints/endpointnaEaKxHk", - "type": "Microsoft.Cdn/profiles/endpoints", - "name": "endpointnaEaKxHk", - "location": "WestUs", - "tags": {}, - "properties": { - "hostName": "endpointnaEaKxHk.azureedge.net", - "originHostHeader": "www.bing.com", - "originPath": "/photos", - "contentTypesToCompress": [ - "text/html", - "application/octet-stream" - ], - "isCompressionEnabled": true, - "isHttpAllowed": true, - "isHttpsAllowed": true, - "queryStringCachingBehavior": "BypassCaching", - "optimizationType": null, - "probePath": null, - "origins": [ - { - "name": "origin1", - "properties": { - "hostName": "www.someDomain1.net", - "httpPort": 80, - "httpsPort": 443, - "originHostHeader": "www.bing.com", - "priority": 1, - "weight": 1000, - "enabled": true, - "privateLinkAlias": null, - "privateLinkResourceId": null, - "privateLinkLocation": null, - "privateEndpointStatus": null, - "privateLinkApprovalMessage": null - } - }, - { - "name": "originnameeakxhk", - "properties": { - "hostName": "www.somedomain.net", - "httpPort": 80, - "httpsPort": 443, - "originHostHeader": null, - "priority": 1, - "weight": 1000, - "enabled": true, - "privateLinkAlias": null, - "privateLinkResourceId": null, - "privateLinkLocation": null, - "privateEndpointStatus": null, - "privateLinkApprovalMessage": null - } - } - ], - "originGroups": [ - { - "name": "origingroueakxhk", - "properties": { - "healthProbeSettings": { - "probePath": "/health.aspx", - "probeRequestType": "GET", - "probeProtocol": "Http", - "probeIntervalInSeconds": 120 - }, - "responseBasedOriginErrorDetectionSettings": null, - "trafficRestorationTimeToHealedOrNewEndpointsInMinutes": null, - "origins": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk/endpoints/endpointnaEaKxHk/origins/origin1" - } - ] - } - } - ], - "defaultOriginGroup": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk/endpoints/endpointnaEaKxHk/originGroups/origingrouEaKxHk" - }, - "customDomains": [], - "geoFilters": [], - "deliveryPolicy": null, - "urlSigningKeys": null, - "webApplicationFirewallPolicyLink": null, - "resourceState": "Starting", - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:24:44 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11927", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T022444Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "InProgress", - "error": { - "code": "None", - "message": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:25:14 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11926", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T022514Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded", - "error": { - "code": "None", - "message": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000/profileresults/profilenamEaKxHk/endpointresults/endpointnaEaKxHk?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:25:15 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11925", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T022515Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000/profileresults/profilenamEaKxHk/endpointresults/endpointnaEaKxHk", - "type": "Microsoft.Cdn/operationresults/profileresults/endpointresults", - "name": "endpointnaEaKxHk", - "location": "WestUs", - "tags": {}, - "properties": { - "hostName": "endpointnaEaKxHk.azureedge.net", - "originHostHeader": "www.bing.com", - "originPath": "/photos", - "contentTypesToCompress": [ - "text/html", - "application/octet-stream" - ], - "isCompressionEnabled": true, - "isHttpAllowed": true, - "isHttpsAllowed": true, - "queryStringCachingBehavior": "BypassCaching", - "optimizationType": null, - "probePath": null, - "origins": [ - { - "name": "origin1", - "properties": { - "hostName": "www.someDomain1.net", - "httpPort": 80, - "httpsPort": 443, - "originHostHeader": "www.bing.com", - "priority": 1, - "weight": 1000, - "enabled": true, - "privateLinkAlias": null, - "privateLinkResourceId": null, - "privateLinkLocation": null, - "privateEndpointStatus": null, - "privateLinkApprovalMessage": null - } - }, - { - "name": "originnameeakxhk", - "properties": { - "hostName": "www.somedomain.net", - "httpPort": 80, - "httpsPort": 443, - "originHostHeader": null, - "priority": 1, - "weight": 1000, - "enabled": true, - "privateLinkAlias": null, - "privateLinkResourceId": null, - "privateLinkLocation": null, - "privateEndpointStatus": null, - "privateLinkApprovalMessage": null - } - } - ], - "originGroups": [ - { - "name": "origingroueakxhk", - "properties": { - "healthProbeSettings": { - "probePath": "/health.aspx", - "probeRequestType": "GET", - "probeProtocol": "Http", - "probeIntervalInSeconds": 120 - }, - "responseBasedOriginErrorDetectionSettings": null, - "trafficRestorationTimeToHealedOrNewEndpointsInMinutes": null, - "origins": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk/endpoints/endpointnaEaKxHk/origins/origin1" - } - ] - } - } - ], - "defaultOriginGroup": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk/endpoints/endpointnaEaKxHk/originGroups/origingrouEaKxHk" - }, - "customDomains": [], - "geoFilters": [], - "deliveryPolicy": null, - "urlSigningKeys": null, - "webApplicationFirewallPolicyLink": null, - "resourceState": "Running", - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cdn/cdnWebApplicationFirewallManagedRuleSets?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:25:15 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11924", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T022515Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/providers/Microsoft.Cdn/cdnwebapplicationfirewallmanagedrulesets/DefaultRuleSet_1.0", - "type": "Microsoft.Cdn/cdnwebapplicationfirewallmanagedrulesets", - "name": "DefaultRuleSet_1.0", - "properties": { - "ruleSetType": "DefaultRuleSet", - "ruleSetVersion": "1.0", - "ruleGroups": [ - { - "ruleGroupName": "MS-ThreatIntel-WebShells", - "description": "Web shell attacks", - "rules": [ - { - "ruleId": "99005006", - "description": "Spring4Shell Interaction Attempt" - } - ] - }, - { - "ruleGroupName": "MS-ThreatIntel-CVEs", - "description": "Rest API exploitation", - "rules": [ - { - "ruleId": "99001014", - "description": "Attempted Spring Cloud routing-expression injection (CVE-2022-22963)" - }, - { - "ruleId": "99001015", - "description": "Attempted Spring Framework unsafe class object exploitation (CVE-2022-22965)" - }, - { - "ruleId": "99001016", - "description": "Attempted Spring Cloud Gateway Actuator injection (CVE-2022-22947)" - } - ] - }, - { - "ruleGroupName": "PROTOCOL-ATTACK", - "description": "Protocol attack", - "rules": [ - { - "ruleId": "921110", - "description": "HTTP Request Smuggling Attack" - }, - { - "ruleId": "921120", - "description": "HTTP Response Splitting Attack" - }, - { - "ruleId": "921130", - "description": "HTTP Response Splitting Attack" - }, - { - "ruleId": "921140", - "description": "HTTP Header Injection Attack via headers" - }, - { - "ruleId": "921150", - "description": "HTTP Header Injection Attack via payload (CR/LF detected)" - }, - { - "ruleId": "921160", - "description": "HTTP Header Injection Attack via payload (CR/LF and header-name detected)" - }, - { - "ruleId": "921151", - "description": "HTTP Header Injection Attack via payload (CR/LF detected)" - } - ] - }, - { - "ruleGroupName": "LFI", - "description": "Local file inclusion", - "rules": [ - { - "ruleId": "930100", - "description": "Path Traversal Attack (/../)" - }, - { - "ruleId": "930110", - "description": "Path Traversal Attack (/../)" - }, - { - "ruleId": "930120", - "description": "OS File Access Attempt" - }, - { - "ruleId": "930130", - "description": "Restricted File Access Attempt" - } - ] - }, - { - "ruleGroupName": "RFI", - "description": "Remote file inclusion", - "rules": [ - { - "ruleId": "931100", - "description": "Possible Remote File Inclusion (RFI) Attack: URL Parameter using IP Address" - }, - { - "ruleId": "931110", - "description": "Possible Remote File Inclusion (RFI) Attack: Common RFI Vulnerable Parameter Name used w/URL Payload" - }, - { - "ruleId": "931120", - "description": "Possible Remote File Inclusion (RFI) Attack: URL Payload Used w/Trailing Question Mark Character (?)" - }, - { - "ruleId": "931130", - "description": "Possible Remote File Inclusion (RFI) Attack: Off-Domain Reference/Link" - } - ] - }, - { - "ruleGroupName": "RCE", - "description": "Remote Command Execution attacks", - "rules": [ - { - "ruleId": "932100", - "description": "Remote Command Execution: Unix Command Injection" - }, - { - "ruleId": "932105", - "description": "Remote Command Execution: Unix Command Injection" - }, - { - "ruleId": "932110", - "description": "Remote Command Execution: Windows Command Injection" - }, - { - "ruleId": "932115", - "description": "Remote Command Execution: Windows Command Injection" - }, - { - "ruleId": "932120", - "description": "Remote Command Execution: Windows PowerShell Command Found" - }, - { - "ruleId": "932130", - "description": "Remote Command Execution: Unix Shell Expression or Confluence Vulnerability (CVE-2022-26134) Found" - }, - { - "ruleId": "932140", - "description": "Remote Command Execution: Windows FOR/IF Command Found" - }, - { - "ruleId": "932150", - "description": "Remote Command Execution: Direct Unix Command Execution" - }, - { - "ruleId": "932160", - "description": "Remote Command Execution: Unix Shell Code Found" - }, - { - "ruleId": "932170", - "description": "Remote Command Execution: Shellshock (CVE-2014-6271)" - }, - { - "ruleId": "932171", - "description": "Remote Command Execution: Shellshock (CVE-2014-6271)" - }, - { - "ruleId": "932180", - "description": "Restricted File Upload Attempt" - } - ] - }, - { - "ruleGroupName": "PHP", - "description": "PHP attacks", - "rules": [ - { - "ruleId": "933100", - "description": "PHP Injection Attack: PHP Open Tag Found" - }, - { - "ruleId": "933110", - "description": "PHP Injection Attack: PHP Script File Upload Found" - }, - { - "ruleId": "933120", - "description": "PHP Injection Attack: Configuration Directive Found" - }, - { - "ruleId": "933130", - "description": "PHP Injection Attack: Variables Found" - }, - { - "ruleId": "933140", - "description": "PHP Injection Attack: I/O Stream Found" - }, - { - "ruleId": "933150", - "description": "PHP Injection Attack: High-Risk PHP Function Name Found" - }, - { - "ruleId": "933151", - "description": "PHP Injection Attack: Medium-Risk PHP Function Name Found" - }, - { - "ruleId": "933160", - "description": "PHP Injection Attack: High-Risk PHP Function Call Found" - }, - { - "ruleId": "933170", - "description": "PHP Injection Attack: Serialized Object Injection" - }, - { - "ruleId": "933180", - "description": "PHP Injection Attack: Variable Function Call Found" - } - ] - }, - { - "ruleGroupName": "XSS", - "description": "Cross-site scripting", - "rules": [ - { - "ruleId": "941100", - "description": "XSS Attack Detected via libinjection" - }, - { - "ruleId": "941101", - "description": "XSS Attack Detected via libinjection" - }, - { - "ruleId": "941110", - "description": "XSS Filter - Category 1: Script Tag Vector" - }, - { - "ruleId": "941120", - "description": "XSS Filter - Category 2: Event Handler Vector" - }, - { - "ruleId": "941130", - "description": "XSS Filter - Category 3: Attribute Vector" - }, - { - "ruleId": "941140", - "description": "XSS Filter - Category 4: Javascript URI Vector" - }, - { - "ruleId": "941150", - "description": "XSS Filter - Category 5: Disallowed HTML Attributes" - }, - { - "ruleId": "941160", - "description": "NoScript XSS InjectionChecker: HTML Injection" - }, - { - "ruleId": "941170", - "description": "NoScript XSS InjectionChecker: Attribute Injection" - }, - { - "ruleId": "941180", - "description": "Node-Validator Blacklist Keywords" - }, - { - "ruleId": "941190", - "description": "IE XSS Filters - Attack Detected." - }, - { - "ruleId": "941200", - "description": "IE XSS Filters - Attack Detected." - }, - { - "ruleId": "941210", - "description": "IE XSS Filters - Attack Detected." - }, - { - "ruleId": "941220", - "description": "IE XSS Filters - Attack Detected." - }, - { - "ruleId": "941230", - "description": "IE XSS Filters - Attack Detected." - }, - { - "ruleId": "941240", - "description": "IE XSS Filters - Attack Detected." - }, - { - "ruleId": "941250", - "description": "IE XSS Filters - Attack Detected." - }, - { - "ruleId": "941260", - "description": "IE XSS Filters - Attack Detected." - }, - { - "ruleId": "941270", - "description": "IE XSS Filters - Attack Detected." - }, - { - "ruleId": "941280", - "description": "IE XSS Filters - Attack Detected." - }, - { - "ruleId": "941290", - "description": "IE XSS Filters - Attack Detected." - }, - { - "ruleId": "941300", - "description": "IE XSS Filters - Attack Detected." - }, - { - "ruleId": "941310", - "description": "US-ASCII Malformed Encoding XSS Filter - Attack Detected." - }, - { - "ruleId": "941320", - "description": "Possible XSS Attack Detected - HTML Tag Handler" - }, - { - "ruleId": "941330", - "description": "IE XSS Filters - Attack Detected." - }, - { - "ruleId": "941340", - "description": "IE XSS Filters - Attack Detected." - }, - { - "ruleId": "941350", - "description": "UTF-7 Encoding IE XSS - Attack Detected." - } - ] - }, - { - "ruleGroupName": "SQLI", - "description": "SQL injection", - "rules": [ - { - "ruleId": "942100", - "description": "SQL Injection Attack Detected via libinjection" - }, - { - "ruleId": "942110", - "description": "SQL Injection Attack: Common Injection Testing Detected" - }, - { - "ruleId": "942120", - "description": "SQL Injection Attack: SQL Operator Detected" - }, - { - "ruleId": "942140", - "description": "SQL Injection Attack: Common DB Names Detected" - }, - { - "ruleId": "942150", - "description": "SQL Injection Attack" - }, - { - "ruleId": "942160", - "description": "Detects blind sqli tests using sleep() or benchmark()." - }, - { - "ruleId": "942170", - "description": "Detects SQL benchmark and sleep injection attempts including conditional queries" - }, - { - "ruleId": "942180", - "description": "Detects basic SQL authentication bypass attempts 1/3" - }, - { - "ruleId": "942190", - "description": "Detects MSSQL code execution and information gathering attempts" - }, - { - "ruleId": "942200", - "description": "Detects MySQL comment-/space-obfuscated injections and backtick termination" - }, - { - "ruleId": "942210", - "description": "Detects chained SQL injection attempts 1/2" - }, - { - "ruleId": "942220", - "description": "Looking for integer overflow attacks, these are taken from skipfish, except 3.0.00738585072007e-308 is the \u0022magic number\u0022 crash" - }, - { - "ruleId": "942230", - "description": "Detects conditional SQL injection attempts" - }, - { - "ruleId": "942240", - "description": "Detects MySQL charset switch and MSSQL DoS attempts" - }, - { - "ruleId": "942250", - "description": "Detects MATCH AGAINST, MERGE and EXECUTE IMMEDIATE injections" - }, - { - "ruleId": "942260", - "description": "Detects basic SQL authentication bypass attempts 2/3" - }, - { - "ruleId": "942270", - "description": "Looking for basic sql injection. Common attack string for mysql, oracle and others." - }, - { - "ruleId": "942280", - "description": "Detects Postgres pg_sleep injection, waitfor delay attacks and database shutdown attempts" - }, - { - "ruleId": "942290", - "description": "Finds basic MongoDB SQL injection attempts" - }, - { - "ruleId": "942300", - "description": "Detects MySQL comments, conditions and ch(a)r injections" - }, - { - "ruleId": "942310", - "description": "Detects chained SQL injection attempts 2/2" - }, - { - "ruleId": "942320", - "description": "Detects MySQL and PostgreSQL stored procedure/function injections" - }, - { - "ruleId": "942330", - "description": "Detects classic SQL injection probings 1/3" - }, - { - "ruleId": "942340", - "description": "Detects basic SQL authentication bypass attempts 3/3" - }, - { - "ruleId": "942350", - "description": "Detects MySQL UDF injection and other data/structure manipulation attempts" - }, - { - "ruleId": "942360", - "description": "Detects concatenated basic SQL injection and SQLLFI attempts" - }, - { - "ruleId": "942361", - "description": "Detects basic SQL injection based on keyword alter or union" - }, - { - "ruleId": "942370", - "description": "Detects classic SQL injection probings 2/3" - }, - { - "ruleId": "942380", - "description": "SQL Injection Attack" - }, - { - "ruleId": "942390", - "description": "SQL Injection Attack" - }, - { - "ruleId": "942400", - "description": "SQL Injection Attack" - }, - { - "ruleId": "942410", - "description": "SQL Injection Attack" - }, - { - "ruleId": "942430", - "description": "Restricted SQL Character Anomaly Detection (args): # of special characters exceeded (12)" - }, - { - "ruleId": "942440", - "description": "SQL Comment Sequence Detected." - }, - { - "ruleId": "942450", - "description": "SQL Hex Encoding Identified" - }, - { - "ruleId": "942470", - "description": "SQL Injection Attack" - }, - { - "ruleId": "942480", - "description": "SQL Injection Attack" - } - ] - }, - { - "ruleGroupName": "FIX", - "description": "Session Fixation attacks", - "rules": [ - { - "ruleId": "943100", - "description": "Possible Session Fixation Attack: Setting Cookie Values in HTML" - }, - { - "ruleId": "943110", - "description": "Possible Session Fixation Attack: SessionID Parameter Name with Off-Domain Referer" - }, - { - "ruleId": "943120", - "description": "Possible Session Fixation Attack: SessionID Parameter Name with No Referer" - } - ] - }, - { - "ruleGroupName": "JAVA", - "description": "Java attacks", - "rules": [ - { - "ruleId": "944100", - "description": "Remote Command Execution: Suspicious Java class detected" - }, - { - "ruleId": "944110", - "description": "Remote Command Execution: Java process spawn (CVE-2017-9805)" - }, - { - "ruleId": "944120", - "description": "Remote Command Execution: Java serialization (CVE-2015-5842)" - }, - { - "ruleId": "944130", - "description": "Suspicious Java class detected" - }, - { - "ruleId": "944200", - "description": "Magic bytes Detected, probable java serialization in use" - }, - { - "ruleId": "944210", - "description": "Magic bytes Detected Base64 Encoded, probable java serialization in use" - }, - { - "ruleId": "944240", - "description": "Remote Command Execution: Java serialization and Log4j vulnerability (CVE-2021-44228, CVE-2021-45046)" - }, - { - "ruleId": "944250", - "description": "Remote Command Execution: Suspicious Java method detected" - } - ] - } - ], - "provisioningState": "Succeeded", - "provisioningStateAsEnum": "Succeeded" - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.Cdn/operations?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:25:16 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-tenant-reads": "11998", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T022516Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "name": "Microsoft.Cdn/register/action", - "display": { - "provider": "Microsoft.Cdn", - "resource": "Microsoft.Cdn Resource Provider", - "operation": "Registers the Microsoft.Cdn Resource Provider", - "description": "Registers the subscription for the CDN resource provider and enables the creation of CDN profiles." - } - }, - { - "name": "Microsoft.Cdn/unregister/action", - "display": { - "provider": "Microsoft.Cdn", - "resource": "Microsoft.Cdn Resource Provider", - "operation": "UnRegisters the Microsoft.Cdn Resource Provider", - "description": "UnRegisters the subscription for the CDN resource provider." - } - }, - { - "name": "Microsoft.Cdn/operations/read", - "display": { - "provider": "Microsoft.Cdn", - "resource": "Microsoft.Cdn Operations", - "operation": "read" - } - }, - { - "name": "Microsoft.Cdn/edgenodes/read", - "display": { - "provider": "Microsoft.Cdn", - "resource": "EdgeNode", - "operation": "read" - } - }, - { - "name": "Microsoft.Cdn/edgenodes/write", - "display": { - "provider": "Microsoft.Cdn", - "resource": "EdgeNode", - "operation": "write" - } - }, - { - "name": "Microsoft.Cdn/edgenodes/delete", - "display": { - "provider": "Microsoft.Cdn", - "resource": "EdgeNode", - "operation": "delete" - } - }, - { - "name": "Microsoft.Cdn/profiles/read", - "display": { - "provider": "Microsoft.Cdn", - "resource": "Profile", - "operation": "read" - } - }, - { - "name": "Microsoft.Cdn/profiles/write", - "display": { - "provider": "Microsoft.Cdn", - "resource": "Profile", - "operation": "write" - } - }, - { - "name": "Microsoft.Cdn/profiles/delete", - "display": { - "provider": "Microsoft.Cdn", - "resource": "Profile", - "operation": "delete" - } - }, - { - "name": "Microsoft.Cdn/profiles/CheckResourceUsage/action", - "display": { - "provider": "Microsoft.Cdn", - "resource": "Profile", - "operation": "CheckResourceUsage" - } - }, - { - "name": "Microsoft.Cdn/profiles/GenerateSsoUri/action", - "display": { - "provider": "Microsoft.Cdn", - "resource": "Profile", - "operation": "GenerateSsoUri" - } - }, - { - "name": "Microsoft.Cdn/profiles/GetSupportedOptimizationTypes/action", - "display": { - "provider": "Microsoft.Cdn", - "resource": "Profile", - "operation": "GetSupportedOptimizationTypes" - } - }, - { - "name": "Microsoft.Cdn/profiles/CheckHostNameAvailability/action", - "display": { - "provider": "Microsoft.Cdn", - "resource": "Profile", - "operation": "CheckHostNameAvailability" - } - }, - { - "name": "Microsoft.Cdn/profiles/Usages/action", - "display": { - "provider": "Microsoft.Cdn", - "resource": "Profile", - "operation": "Usages" - } - }, - { - "name": "Microsoft.Cdn/profiles/endpoints/read", - "display": { - "provider": "Microsoft.Cdn", - "resource": "Endpoint", - "operation": "read" - } - }, - { - "name": "Microsoft.Cdn/profiles/endpoints/write", - "display": { - "provider": "Microsoft.Cdn", - "resource": "Endpoint", - "operation": "write" - } - }, - { - "name": "Microsoft.Cdn/profiles/endpoints/delete", - "display": { - "provider": "Microsoft.Cdn", - "resource": "Endpoint", - "operation": "delete" - } - }, - { - "name": "Microsoft.Cdn/profiles/endpoints/CheckResourceUsage/action", - "display": { - "provider": "Microsoft.Cdn", - "resource": "Endpoint", - "operation": "CheckResourceUsage" - } - }, - { - "name": "Microsoft.Cdn/profiles/endpoints/Start/action", - "display": { - "provider": "Microsoft.Cdn", - "resource": "Endpoint", - "operation": "Start" - } - }, - { - "name": "Microsoft.Cdn/profiles/endpoints/Stop/action", - "display": { - "provider": "Microsoft.Cdn", - "resource": "Endpoint", - "operation": "Stop" - } - }, - { - "name": "Microsoft.Cdn/profiles/endpoints/Purge/action", - "display": { - "provider": "Microsoft.Cdn", - "resource": "Endpoint", - "operation": "Purge" - } - }, - { - "name": "Microsoft.Cdn/profiles/endpoints/Load/action", - "display": { - "provider": "Microsoft.Cdn", - "resource": "Endpoint", - "operation": "Load" - } - }, - { - "name": "Microsoft.Cdn/profiles/endpoints/ValidateCustomDomain/action", - "display": { - "provider": "Microsoft.Cdn", - "resource": "Endpoint", - "operation": "ValidateCustomDomain" - } - }, - { - "name": "Microsoft.Cdn/profiles/endpoints/customdomains/read", - "display": { - "provider": "Microsoft.Cdn", - "resource": "CustomDomain", - "operation": "read" - } - }, - { - "name": "Microsoft.Cdn/profiles/endpoints/customdomains/write", - "display": { - "provider": "Microsoft.Cdn", - "resource": "CustomDomain", - "operation": "write" - } - }, - { - "name": "Microsoft.Cdn/profiles/endpoints/customdomains/delete", - "display": { - "provider": "Microsoft.Cdn", - "resource": "CustomDomain", - "operation": "delete" - } - }, - { - "name": "Microsoft.Cdn/profiles/endpoints/customdomains/DisableCustomHttps/action", - "display": { - "provider": "Microsoft.Cdn", - "resource": "CustomDomain", - "operation": "DisableCustomHttps" - } - }, - { - "name": "Microsoft.Cdn/profiles/endpoints/customdomains/EnableCustomHttps/action", - "display": { - "provider": "Microsoft.Cdn", - "resource": "CustomDomain", - "operation": "EnableCustomHttps" - } - }, - { - "name": "Microsoft.Cdn/profiles/endpoints/origins/read", - "display": { - "provider": "Microsoft.Cdn", - "resource": "Origin", - "operation": "read" - } - }, - { - "name": "Microsoft.Cdn/profiles/endpoints/origins/write", - "display": { - "provider": "Microsoft.Cdn", - "resource": "Origin", - "operation": "write" - } - }, - { - "name": "Microsoft.Cdn/profiles/endpoints/origins/delete", - "display": { - "provider": "Microsoft.Cdn", - "resource": "Origin", - "operation": "delete" - } - }, - { - "name": "Microsoft.Cdn/cdnwebapplicationfirewallmanagedrulesets/read", - "display": { - "provider": "Microsoft.Cdn", - "resource": "WebApplicationFirewallManagedRuleSetDefinition", - "operation": "read" - } - }, - { - "name": "Microsoft.Cdn/cdnwebapplicationfirewallmanagedrulesets/write", - "display": { - "provider": "Microsoft.Cdn", - "resource": "WebApplicationFirewallManagedRuleSetDefinition", - "operation": "write" - } - }, - { - "name": "Microsoft.Cdn/cdnwebapplicationfirewallmanagedrulesets/delete", - "display": { - "provider": "Microsoft.Cdn", - "resource": "WebApplicationFirewallManagedRuleSetDefinition", - "operation": "delete" - } - }, - { - "name": "Microsoft.Cdn/cdnwebapplicationfirewallpolicies/read", - "display": { - "provider": "Microsoft.Cdn", - "resource": "WebApplicationFirewallPolicy", - "operation": "read" - } - }, - { - "name": "Microsoft.Cdn/cdnwebapplicationfirewallpolicies/write", - "display": { - "provider": "Microsoft.Cdn", - "resource": "WebApplicationFirewallPolicy", - "operation": "write" - } - }, - { - "name": "Microsoft.Cdn/cdnwebapplicationfirewallpolicies/delete", - "display": { - "provider": "Microsoft.Cdn", - "resource": "WebApplicationFirewallPolicy", - "operation": "delete" - } - }, - { - "name": "Microsoft.Cdn/profiles/endpoints/origingroups/read", - "display": { - "provider": "Microsoft.Cdn", - "resource": "OriginGroup", - "operation": "read" - } - }, - { - "name": "Microsoft.Cdn/profiles/endpoints/origingroups/write", - "display": { - "provider": "Microsoft.Cdn", - "resource": "OriginGroup", - "operation": "write" - } - }, - { - "name": "Microsoft.Cdn/profiles/endpoints/origingroups/delete", - "display": { - "provider": "Microsoft.Cdn", - "resource": "OriginGroup", - "operation": "delete" - } - }, - { - "name": "Microsoft.Cdn/operationresults/read", - "display": { - "provider": "Microsoft.Cdn", - "resource": "OperationResult", - "operation": "read" - } - }, - { - "name": "Microsoft.Cdn/operationresults/write", - "display": { - "provider": "Microsoft.Cdn", - "resource": "OperationResult", - "operation": "write" - } - }, - { - "name": "Microsoft.Cdn/operationresults/delete", - "display": { - "provider": "Microsoft.Cdn", - "resource": "OperationResult", - "operation": "delete" - } - }, - { - "name": "Microsoft.Cdn/operationresults/profileresults/read", - "display": { - "provider": "Microsoft.Cdn", - "resource": "Profile", - "operation": "read" - } - }, - { - "name": "Microsoft.Cdn/operationresults/profileresults/write", - "display": { - "provider": "Microsoft.Cdn", - "resource": "Profile", - "operation": "write" - } - }, - { - "name": "Microsoft.Cdn/operationresults/profileresults/delete", - "display": { - "provider": "Microsoft.Cdn", - "resource": "Profile", - "operation": "delete" - } - }, - { - "name": "Microsoft.Cdn/operationresults/profileresults/CheckResourceUsage/action", - "display": { - "provider": "Microsoft.Cdn", - "resource": "Profile", - "operation": "CheckResourceUsage" - } - }, - { - "name": "Microsoft.Cdn/operationresults/profileresults/GenerateSsoUri/action", - "display": { - "provider": "Microsoft.Cdn", - "resource": "Profile", - "operation": "GenerateSsoUri" - } - }, - { - "name": "Microsoft.Cdn/operationresults/profileresults/GetSupportedOptimizationTypes/action", - "display": { - "provider": "Microsoft.Cdn", - "resource": "Profile", - "operation": "GetSupportedOptimizationTypes" - } - }, - { - "name": "Microsoft.Cdn/operationresults/profileresults/CheckHostNameAvailability/action", - "display": { - "provider": "Microsoft.Cdn", - "resource": "Profile", - "operation": "CheckHostNameAvailability" - } - }, - { - "name": "Microsoft.Cdn/operationresults/profileresults/Usages/action", - "display": { - "provider": "Microsoft.Cdn", - "resource": "Profile", - "operation": "Usages" - } - }, - { - "name": "Microsoft.Cdn/operationresults/profileresults/endpointresults/read", - "display": { - "provider": "Microsoft.Cdn", - "resource": "Endpoint", - "operation": "read" - } - }, - { - "name": "Microsoft.Cdn/operationresults/profileresults/endpointresults/write", - "display": { - "provider": "Microsoft.Cdn", - "resource": "Endpoint", - "operation": "write" - } - }, - { - "name": "Microsoft.Cdn/operationresults/profileresults/endpointresults/delete", - "display": { - "provider": "Microsoft.Cdn", - "resource": "Endpoint", - "operation": "delete" - } - }, - { - "name": "Microsoft.Cdn/operationresults/profileresults/endpointresults/CheckResourceUsage/action", - "display": { - "provider": "Microsoft.Cdn", - "resource": "Endpoint", - "operation": "CheckResourceUsage" - } - }, - { - "name": "Microsoft.Cdn/operationresults/profileresults/endpointresults/Start/action", - "display": { - "provider": "Microsoft.Cdn", - "resource": "Endpoint", - "operation": "Start" - } - }, - { - "name": "Microsoft.Cdn/operationresults/profileresults/endpointresults/Stop/action", - "display": { - "provider": "Microsoft.Cdn", - "resource": "Endpoint", - "operation": "Stop" - } - }, - { - "name": "Microsoft.Cdn/operationresults/profileresults/endpointresults/Purge/action", - "display": { - "provider": "Microsoft.Cdn", - "resource": "Endpoint", - "operation": "Purge" - } - }, - { - "name": "Microsoft.Cdn/operationresults/profileresults/endpointresults/Load/action", - "display": { - "provider": "Microsoft.Cdn", - "resource": "Endpoint", - "operation": "Load" - } - }, - { - "name": "Microsoft.Cdn/operationresults/profileresults/endpointresults/ValidateCustomDomain/action", - "display": { - "provider": "Microsoft.Cdn", - "resource": "Endpoint", - "operation": "ValidateCustomDomain" - } - }, - { - "name": "Microsoft.Cdn/operationresults/profileresults/endpointresults/originresults/read", - "display": { - "provider": "Microsoft.Cdn", - "resource": "Origin", - "operation": "read" - } - }, - { - "name": "Microsoft.Cdn/operationresults/profileresults/endpointresults/originresults/write", - "display": { - "provider": "Microsoft.Cdn", - "resource": "Origin", - "operation": "write" - } - }, - { - "name": "Microsoft.Cdn/operationresults/profileresults/endpointresults/originresults/delete", - "display": { - "provider": "Microsoft.Cdn", - "resource": "Origin", - "operation": "delete" - } - }, - { - "name": "Microsoft.Cdn/operationresults/profileresults/endpointresults/customdomainresults/read", - "display": { - "provider": "Microsoft.Cdn", - "resource": "CustomDomain", - "operation": "read" - } - }, - { - "name": "Microsoft.Cdn/operationresults/profileresults/endpointresults/customdomainresults/write", - "display": { - "provider": "Microsoft.Cdn", - "resource": "CustomDomain", - "operation": "write" - } - }, - { - "name": "Microsoft.Cdn/operationresults/profileresults/endpointresults/customdomainresults/delete", - "display": { - "provider": "Microsoft.Cdn", - "resource": "CustomDomain", - "operation": "delete" - } - }, - { - "name": "Microsoft.Cdn/operationresults/profileresults/endpointresults/customdomainresults/DisableCustomHttps/action", - "display": { - "provider": "Microsoft.Cdn", - "resource": "CustomDomain", - "operation": "DisableCustomHttps" - } - }, - { - "name": "Microsoft.Cdn/operationresults/profileresults/endpointresults/customdomainresults/EnableCustomHttps/action", - "display": { - "provider": "Microsoft.Cdn", - "resource": "CustomDomain", - "operation": "EnableCustomHttps" - } - }, - { - "name": "Microsoft.Cdn/operationresults/profileresults/endpointresults/origingroupresults/read", - "display": { - "provider": "Microsoft.Cdn", - "resource": "OriginGroup", - "operation": "read" - } - }, - { - "name": "Microsoft.Cdn/operationresults/profileresults/endpointresults/origingroupresults/write", - "display": { - "provider": "Microsoft.Cdn", - "resource": "OriginGroup", - "operation": "write" - } - }, - { - "name": "Microsoft.Cdn/operationresults/profileresults/endpointresults/origingroupresults/delete", - "display": { - "provider": "Microsoft.Cdn", - "resource": "OriginGroup", - "operation": "delete" - } - }, - { - "name": "Microsoft.Cdn/operationresults/cdnwebapplicationfirewallpolicyresults/read", - "display": { - "provider": "Microsoft.Cdn", - "resource": "WebApplicationFirewallPolicy", - "operation": "read" - } - }, - { - "name": "Microsoft.Cdn/operationresults/cdnwebapplicationfirewallpolicyresults/write", - "display": { - "provider": "Microsoft.Cdn", - "resource": "WebApplicationFirewallPolicy", - "operation": "write" - } - }, - { - "name": "Microsoft.Cdn/operationresults/cdnwebapplicationfirewallpolicyresults/delete", - "display": { - "provider": "Microsoft.Cdn", - "resource": "WebApplicationFirewallPolicy", - "operation": "delete" - } - }, - { - "name": "Microsoft.Cdn/CheckNameAvailability/action", - "display": { - "provider": "Microsoft.Cdn", - "resource": "Microsoft.Cdn/", - "operation": "CheckNameAvailability" - } - }, - { - "name": "Microsoft.Cdn/ValidateProbe/action", - "display": { - "provider": "Microsoft.Cdn", - "resource": "Microsoft.Cdn/", - "operation": "ValidateProbe" - } - }, - { - "name": "Microsoft.Cdn/CheckResourceUsage/action", - "display": { - "provider": "Microsoft.Cdn", - "resource": "Microsoft.Cdn/", - "operation": "CheckResourceUsage" - } - }, - { - "name": "Microsoft.Cdn/ValidateSecret/action", - "display": { - "provider": "Microsoft.Cdn", - "resource": "Microsoft.Cdn/", - "operation": "ValidateSecret" - } - }, - { - "name": "Microsoft.Cdn/profiles/afdendpoints/read", - "display": { - "provider": "Microsoft.Cdn", - "resource": "AfdEndpoint", - "operation": "read" - } - }, - { - "name": "Microsoft.Cdn/profiles/afdendpoints/write", - "display": { - "provider": "Microsoft.Cdn", - "resource": "AfdEndpoint", - "operation": "write" - } - }, - { - "name": "Microsoft.Cdn/profiles/afdendpoints/delete", - "display": { - "provider": "Microsoft.Cdn", - "resource": "AfdEndpoint", - "operation": "delete" - } - }, - { - "name": "Microsoft.Cdn/profiles/afdendpoints/Purge/action", - "display": { - "provider": "Microsoft.Cdn", - "resource": "AfdEndpoint", - "operation": "Purge" - } - }, - { - "name": "Microsoft.Cdn/profiles/afdendpoints/Usages/action", - "display": { - "provider": "Microsoft.Cdn", - "resource": "AfdEndpoint", - "operation": "Usages" - } - }, - { - "name": "Microsoft.Cdn/profiles/afdendpoints/ValidateCustomDomain/action", - "display": { - "provider": "Microsoft.Cdn", - "resource": "AfdEndpoint", - "operation": "ValidateCustomDomain" - } - }, - { - "name": "Microsoft.Cdn/profiles/afdendpoints/CheckEndpointNameAvailability/action", - "display": { - "provider": "Microsoft.Cdn", - "resource": "AfdEndpoint", - "operation": "CheckEndpointNameAvailability" - } - }, - { - "name": "Microsoft.Cdn/profiles/afdendpoints/routes/read", - "display": { - "provider": "Microsoft.Cdn", - "resource": "Route", - "operation": "read" - } - }, - { - "name": "Microsoft.Cdn/profiles/afdendpoints/routes/write", - "display": { - "provider": "Microsoft.Cdn", - "resource": "Route", - "operation": "write" - } - }, - { - "name": "Microsoft.Cdn/profiles/afdendpoints/routes/delete", - "display": { - "provider": "Microsoft.Cdn", - "resource": "Route", - "operation": "delete" - } - }, - { - "name": "Microsoft.Cdn/profiles/customdomains/read", - "display": { - "provider": "Microsoft.Cdn", - "resource": "AfdCustomDomain", - "operation": "read" - } - }, - { - "name": "Microsoft.Cdn/profiles/customdomains/write", - "display": { - "provider": "Microsoft.Cdn", - "resource": "AfdCustomDomain", - "operation": "write" - } - }, - { - "name": "Microsoft.Cdn/profiles/customdomains/delete", - "display": { - "provider": "Microsoft.Cdn", - "resource": "AfdCustomDomain", - "operation": "delete" - } - }, - { - "name": "Microsoft.Cdn/profiles/customdomains/RefreshValidationToken/action", - "display": { - "provider": "Microsoft.Cdn", - "resource": "AfdCustomDomain", - "operation": "RefreshValidationToken" - } - }, - { - "name": "Microsoft.Cdn/profiles/origingroups/read", - "display": { - "provider": "Microsoft.Cdn", - "resource": "AfdOriginGroup", - "operation": "read" - } - }, - { - "name": "Microsoft.Cdn/profiles/origingroups/write", - "display": { - "provider": "Microsoft.Cdn", - "resource": "AfdOriginGroup", - "operation": "write" - } - }, - { - "name": "Microsoft.Cdn/profiles/origingroups/delete", - "display": { - "provider": "Microsoft.Cdn", - "resource": "AfdOriginGroup", - "operation": "delete" - } - }, - { - "name": "Microsoft.Cdn/profiles/origingroups/Usages/action", - "display": { - "provider": "Microsoft.Cdn", - "resource": "AfdOriginGroup", - "operation": "Usages" - } - }, - { - "name": "Microsoft.Cdn/profiles/origingroups/origins/read", - "display": { - "provider": "Microsoft.Cdn", - "resource": "AfdOrigin", - "operation": "read" - } - }, - { - "name": "Microsoft.Cdn/profiles/origingroups/origins/write", - "display": { - "provider": "Microsoft.Cdn", - "resource": "AfdOrigin", - "operation": "write" - } - }, - { - "name": "Microsoft.Cdn/profiles/origingroups/origins/delete", - "display": { - "provider": "Microsoft.Cdn", - "resource": "AfdOrigin", - "operation": "delete" - } - }, - { - "name": "Microsoft.Cdn/profiles/rulesets/read", - "display": { - "provider": "Microsoft.Cdn", - "resource": "RuleSet", - "operation": "read" - } - }, - { - "name": "Microsoft.Cdn/profiles/rulesets/write", - "display": { - "provider": "Microsoft.Cdn", - "resource": "RuleSet", - "operation": "write" - } - }, - { - "name": "Microsoft.Cdn/profiles/rulesets/delete", - "display": { - "provider": "Microsoft.Cdn", - "resource": "RuleSet", - "operation": "delete" - } - }, - { - "name": "Microsoft.Cdn/profiles/rulesets/Usages/action", - "display": { - "provider": "Microsoft.Cdn", - "resource": "RuleSet", - "operation": "Usages" - } - }, - { - "name": "Microsoft.Cdn/profiles/rulesets/rules/read", - "display": { - "provider": "Microsoft.Cdn", - "resource": "Rule", - "operation": "read" - } - }, - { - "name": "Microsoft.Cdn/profiles/rulesets/rules/write", - "display": { - "provider": "Microsoft.Cdn", - "resource": "Rule", - "operation": "write" - } - }, - { - "name": "Microsoft.Cdn/profiles/rulesets/rules/delete", - "display": { - "provider": "Microsoft.Cdn", - "resource": "Rule", - "operation": "delete" - } - }, - { - "name": "Microsoft.Cdn/profiles/secrets/read", - "display": { - "provider": "Microsoft.Cdn", - "resource": "Secret", - "operation": "read" - } - }, - { - "name": "Microsoft.Cdn/profiles/secrets/write", - "display": { - "provider": "Microsoft.Cdn", - "resource": "Secret", - "operation": "write" - } - }, - { - "name": "Microsoft.Cdn/profiles/secrets/delete", - "display": { - "provider": "Microsoft.Cdn", - "resource": "Secret", - "operation": "delete" - } - }, - { - "name": "Microsoft.Cdn/profiles/securitypolicies/read", - "display": { - "provider": "Microsoft.Cdn", - "resource": "SecurityPolicy", - "operation": "read" - } - }, - { - "name": "Microsoft.Cdn/profiles/securitypolicies/write", - "display": { - "provider": "Microsoft.Cdn", - "resource": "SecurityPolicy", - "operation": "write" - } - }, - { - "name": "Microsoft.Cdn/profiles/securitypolicies/delete", - "display": { - "provider": "Microsoft.Cdn", - "resource": "SecurityPolicy", - "operation": "delete" - } - }, - { - "name": "Microsoft.Cdn/operationresults/profileresults/afdendpointresults/read", - "display": { - "provider": "Microsoft.Cdn", - "resource": "AfdEndpoint", - "operation": "read" - } - }, - { - "name": "Microsoft.Cdn/operationresults/profileresults/afdendpointresults/write", - "display": { - "provider": "Microsoft.Cdn", - "resource": "AfdEndpoint", - "operation": "write" - } - }, - { - "name": "Microsoft.Cdn/operationresults/profileresults/afdendpointresults/delete", - "display": { - "provider": "Microsoft.Cdn", - "resource": "AfdEndpoint", - "operation": "delete" - } - }, - { - "name": "Microsoft.Cdn/operationresults/profileresults/afdendpointresults/Purge/action", - "display": { - "provider": "Microsoft.Cdn", - "resource": "AfdEndpoint", - "operation": "Purge" - } - }, - { - "name": "Microsoft.Cdn/operationresults/profileresults/afdendpointresults/Usages/action", - "display": { - "provider": "Microsoft.Cdn", - "resource": "AfdEndpoint", - "operation": "Usages" - } - }, - { - "name": "Microsoft.Cdn/operationresults/profileresults/afdendpointresults/ValidateCustomDomain/action", - "display": { - "provider": "Microsoft.Cdn", - "resource": "AfdEndpoint", - "operation": "ValidateCustomDomain" - } - }, - { - "name": "Microsoft.Cdn/operationresults/profileresults/afdendpointresults/CheckEndpointNameAvailability/action", - "display": { - "provider": "Microsoft.Cdn", - "resource": "AfdEndpoint", - "operation": "CheckEndpointNameAvailability" - } - }, - { - "name": "Microsoft.Cdn/operationresults/profileresults/afdendpointresults/routeresults/read", - "display": { - "provider": "Microsoft.Cdn", - "resource": "Route", - "operation": "read" - } - }, - { - "name": "Microsoft.Cdn/operationresults/profileresults/afdendpointresults/routeresults/write", - "display": { - "provider": "Microsoft.Cdn", - "resource": "Route", - "operation": "write" - } - }, - { - "name": "Microsoft.Cdn/operationresults/profileresults/afdendpointresults/routeresults/delete", - "display": { - "provider": "Microsoft.Cdn", - "resource": "Route", - "operation": "delete" - } - }, - { - "name": "Microsoft.Cdn/operationresults/profileresults/customdomainresults/read", - "display": { - "provider": "Microsoft.Cdn", - "resource": "AfdCustomDomain", - "operation": "read" - } - }, - { - "name": "Microsoft.Cdn/operationresults/profileresults/customdomainresults/write", - "display": { - "provider": "Microsoft.Cdn", - "resource": "AfdCustomDomain", - "operation": "write" - } - }, - { - "name": "Microsoft.Cdn/operationresults/profileresults/customdomainresults/delete", - "display": { - "provider": "Microsoft.Cdn", - "resource": "AfdCustomDomain", - "operation": "delete" - } - }, - { - "name": "Microsoft.Cdn/operationresults/profileresults/customdomainresults/RefreshValidationToken/action", - "display": { - "provider": "Microsoft.Cdn", - "resource": "AfdCustomDomain", - "operation": "RefreshValidationToken" - } - }, - { - "name": "Microsoft.Cdn/operationresults/profileresults/origingroupresults/read", - "display": { - "provider": "Microsoft.Cdn", - "resource": "AfdOriginGroup", - "operation": "read" - } - }, - { - "name": "Microsoft.Cdn/operationresults/profileresults/origingroupresults/write", - "display": { - "provider": "Microsoft.Cdn", - "resource": "AfdOriginGroup", - "operation": "write" - } - }, - { - "name": "Microsoft.Cdn/operationresults/profileresults/origingroupresults/delete", - "display": { - "provider": "Microsoft.Cdn", - "resource": "AfdOriginGroup", - "operation": "delete" - } - }, - { - "name": "Microsoft.Cdn/operationresults/profileresults/origingroupresults/Usages/action", - "display": { - "provider": "Microsoft.Cdn", - "resource": "AfdOriginGroup", - "operation": "Usages" - } - }, - { - "name": "Microsoft.Cdn/operationresults/profileresults/origingroupresults/originresults/read", - "display": { - "provider": "Microsoft.Cdn", - "resource": "AfdOrigin", - "operation": "read" - } - }, - { - "name": "Microsoft.Cdn/operationresults/profileresults/origingroupresults/originresults/write", - "display": { - "provider": "Microsoft.Cdn", - "resource": "AfdOrigin", - "operation": "write" - } - }, - { - "name": "Microsoft.Cdn/operationresults/profileresults/origingroupresults/originresults/delete", - "display": { - "provider": "Microsoft.Cdn", - "resource": "AfdOrigin", - "operation": "delete" - } - }, - { - "name": "Microsoft.Cdn/operationresults/profileresults/rulesetresults/read", - "display": { - "provider": "Microsoft.Cdn", - "resource": "RuleSet", - "operation": "read" - } - }, - { - "name": "Microsoft.Cdn/operationresults/profileresults/rulesetresults/write", - "display": { - "provider": "Microsoft.Cdn", - "resource": "RuleSet", - "operation": "write" - } - }, - { - "name": "Microsoft.Cdn/operationresults/profileresults/rulesetresults/delete", - "display": { - "provider": "Microsoft.Cdn", - "resource": "RuleSet", - "operation": "delete" - } - }, - { - "name": "Microsoft.Cdn/operationresults/profileresults/rulesetresults/Usages/action", - "display": { - "provider": "Microsoft.Cdn", - "resource": "RuleSet", - "operation": "Usages" - } - }, - { - "name": "Microsoft.Cdn/operationresults/profileresults/rulesetresults/ruleresults/read", - "display": { - "provider": "Microsoft.Cdn", - "resource": "Rule", - "operation": "read" - } - }, - { - "name": "Microsoft.Cdn/operationresults/profileresults/rulesetresults/ruleresults/write", - "display": { - "provider": "Microsoft.Cdn", - "resource": "Rule", - "operation": "write" - } - }, - { - "name": "Microsoft.Cdn/operationresults/profileresults/rulesetresults/ruleresults/delete", - "display": { - "provider": "Microsoft.Cdn", - "resource": "Rule", - "operation": "delete" - } - }, - { - "name": "Microsoft.Cdn/operationresults/profileresults/secretresults/read", - "display": { - "provider": "Microsoft.Cdn", - "resource": "Secret", - "operation": "read" - } - }, - { - "name": "Microsoft.Cdn/operationresults/profileresults/secretresults/write", - "display": { - "provider": "Microsoft.Cdn", - "resource": "Secret", - "operation": "write" - } - }, - { - "name": "Microsoft.Cdn/operationresults/profileresults/secretresults/delete", - "display": { - "provider": "Microsoft.Cdn", - "resource": "Secret", - "operation": "delete" - } - }, - { - "name": "Microsoft.Cdn/operationresults/profileresults/securitypolicyresults/read", - "display": { - "provider": "Microsoft.Cdn", - "resource": "SecurityPolicy", - "operation": "read" - } - }, - { - "name": "Microsoft.Cdn/operationresults/profileresults/securitypolicyresults/write", - "display": { - "provider": "Microsoft.Cdn", - "resource": "SecurityPolicy", - "operation": "write" - } - }, - { - "name": "Microsoft.Cdn/operationresults/profileresults/securitypolicyresults/delete", - "display": { - "provider": "Microsoft.Cdn", - "resource": "SecurityPolicy", - "operation": "delete" - } - }, - { - "name": "Microsoft.Cdn/profiles/getloganalyticslocations/read", - "display": { - "provider": "Microsoft.Cdn", - "resource": "LoganalyticsLocations", - "operation": "read" - } - }, - { - "name": "Microsoft.Cdn/profiles/getloganalyticsmetrics/read", - "display": { - "provider": "Microsoft.Cdn", - "resource": "LoganalyticsMetrics", - "operation": "read" - } - }, - { - "name": "Microsoft.Cdn/profiles/getloganalyticsrankings/read", - "display": { - "provider": "Microsoft.Cdn", - "resource": "LoganalyticsRankings", - "operation": "read" - } - }, - { - "name": "Microsoft.Cdn/profiles/getloganalyticsresources/read", - "display": { - "provider": "Microsoft.Cdn", - "resource": "LoganalyticsResources", - "operation": "read" - } - }, - { - "name": "Microsoft.Cdn/profiles/getwafloganalyticsmetrics/read", - "display": { - "provider": "Microsoft.Cdn", - "resource": "WafLoganalyticsMetrics", - "operation": "read" - } - }, - { - "name": "Microsoft.Cdn/profiles/getwafloganalyticsrankings/read", - "display": { - "provider": "Microsoft.Cdn", - "resource": "WafLoganalyticsRankings", - "operation": "read" - } - }, - { - "origin": "system", - "name": "Microsoft.Cdn/profiles/endpoints/providers/Microsoft.Insights/logDefinitions/read", - "display": { - "provider": "Microsoft.Cdn", - "resource": "The log definition of profiles/endpoints", - "operation": "Read profiles/endpoints log definitions", - "description": "Gets the available logs for Microsoft.Cdn/profiles/endpoints" - }, - "properties": { - "serviceSpecification": { - "logSpecifications": [ - { - "name": "CoreAnalytics", - "displayName": "Gets the metrics of the endpoint, e.g., bandwidth, egress, etc.", - "blobDuration": "PT1H" - } - ] - } - } - }, - { - "origin": "system", - "name": "Microsoft.Cdn/cdnwebapplicationfirewallpolicies/providers/Microsoft.Insights/logDefinitions/read", - "display": { - "provider": "Microsoft.Cdn", - "resource": "The log definition of cdnwebapplicationfirewallpolicies", - "operation": "Read cdnwebapplicationfirewallpolicies log definitions", - "description": "Gets the available logs for Microsoft.Cdn/cdnwebapplicationfirewallpolicies" - }, - "properties": { - "serviceSpecification": { - "logSpecifications": [ - { - "name": "WebApplicationFirewallLogs", - "displayName": "Web Appliation Firewall Logs", - "blobDuration": "PT1M" - } - ] - } - } - }, - { - "origin": "system", - "name": "Microsoft.Cdn/profiles/providers/Microsoft.Insights/logDefinitions/read", - "display": { - "provider": "Microsoft.Cdn", - "resource": "The log definition of profiles", - "operation": "Read profiles log definitions", - "description": "Gets the available logs for Microsoft.Cdn/profiles" - }, - "properties": { - "serviceSpecification": { - "logSpecifications": [ - { - "name": "AzureCdnAccessLog", - "displayName": "Azure Cdn Access Log", - "blobDuration": "PT1H", - "logFilterPattern": "Standard_Microsoft" - }, - { - "name": "FrontDoorAccessLog", - "displayName": "FrontDoor Access Log", - "blobDuration": "PT1H", - "logFilterPattern": "Standard_AzureFrontDoor|Premium_AzureFrontDoor" - }, - { - "name": "FrontDoorHealthProbeLog", - "displayName": "FrontDoor Health Probe Log", - "blobDuration": "PT1H", - "logFilterPattern": "Standard_AzureFrontDoor|Premium_AzureFrontDoor" - }, - { - "name": "FrontDoorWebApplicationFirewallLog", - "displayName": "FrontDoor WebApplicationFirewall Log", - "blobDuration": "PT1H", - "logFilterPattern": "Standard_AzureFrontDoor|Premium_AzureFrontDoor" - } - ] - } - } - }, - { - "origin": "system", - "name": "Microsoft.Cdn/cdnwebapplicationfirewallpolicies/providers/Microsoft.Insights/metricDefinitions/read", - "display": { - "provider": "Microsoft.Cdn", - "resource": "The metric definition of cdnwebapplicationfirewallpolicies", - "operation": "Read cdnwebapplicationfirewallpolicies metrics definitions", - "description": "Gets the available metrics for Microsoft.Cdn" - }, - "properties": { - "serviceSpecification": { - "metricSpecifications": [ - { - "name": "WebApplicationFirewallRequestCount", - "displayName": "Web Application Firewall Request Count", - "displayDescription": "The number of client requests processed by the Web Application Firewall", - "unit": "Count", - "aggregationType": "Total", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1M" - } - ], - "supportedTimeGrainTypes": [ - "PT1M", - "PT5M", - "PT15M", - "PT30M", - "PT1H", - "PT6H", - "PT12H", - "P1D" - ], - "dimensions": [ - { - "name": "PolicyName", - "displayName": "Policy Name", - "internalName": "WebApplicationFirewallPolicyName" - }, - { - "name": "RuleName", - "displayName": "Rule Name", - "internalName": "WebApplicationFirewallRuleName" - }, - { - "name": "Action", - "displayName": "Action", - "internalName": "WebApplicationFirewallAction" - } - ], - "fillGapWithZero": true, - "isInternal": false - } - ] - } - } - }, - { - "origin": "system", - "name": "Microsoft.Cdn/profiles/providers/Microsoft.Insights/metricDefinitions/read", - "display": { - "provider": "Microsoft.Cdn", - "resource": "The metric definition of profiles", - "operation": "Read profiles metrics definitions", - "description": "Gets the available metrics for Microsoft.Cdn" - }, - "properties": { - "serviceSpecification": { - "metricSpecifications": [ - { - "name": "RequestCount", - "displayName": "Request Count", - "displayDescription": "The number of client requests served by the HTTP/S proxy", - "unit": "Count", - "aggregationType": "Total", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1M" - } - ], - "supportedTimeGrainTypes": [ - "PT1M", - "PT5M", - "PT15M", - "PT30M", - "PT1H", - "PT6H", - "PT12H", - "P1D" - ], - "dimensions": [ - { - "name": "HttpStatus", - "displayName": "Http Status", - "internalName": "HttpStatusCode" - }, - { - "name": "HttpStatusGroup", - "displayName": "Http Status Group", - "internalName": "HttpStatusCodeClass" - }, - { - "name": "ClientRegion", - "displayName": "Client Region" - }, - { - "name": "ClientCountry", - "displayName": "Client Country" - }, - { - "name": "Endpoint", - "displayName": "Endpoint", - "internalName": "EndpointName" - } - ], - "fillGapWithZero": true, - "isInternal": false - }, - { - "name": "ResponseSize", - "displayName": "Response Size", - "displayDescription": "The number of bytes sent as responses from HTTP/S proxy to clients", - "unit": "Bytes", - "aggregationType": "Total", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1M" - } - ], - "supportedTimeGrainTypes": [ - "PT1M", - "PT5M", - "PT15M", - "PT30M", - "PT1H", - "PT6H", - "PT12H", - "P1D" - ], - "dimensions": [ - { - "name": "HttpStatus", - "displayName": "Http Status", - "internalName": "HttpStatusCode" - }, - { - "name": "HttpStatusGroup", - "displayName": "Http Status Group", - "internalName": "HttpStatusCodeClass" - }, - { - "name": "ClientRegion", - "displayName": "Client Region" - }, - { - "name": "ClientCountry", - "displayName": "Client Country" - }, - { - "name": "Endpoint", - "displayName": "Endpoint", - "internalName": "EndpointName" - } - ], - "fillGapWithZero": true, - "isInternal": false - }, - { - "name": "TotalLatency", - "displayName": "Total Latency", - "displayDescription": "The time calculated from when the client request was received by the HTTP/S proxy until the client acknowledged the last response byte from the HTTP/S proxy", - "unit": "MilliSeconds", - "aggregationType": "Average", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1M" - } - ], - "supportedTimeGrainTypes": [ - "PT1M", - "PT5M", - "PT15M", - "PT30M", - "PT1H", - "PT6H", - "PT12H", - "P1D" - ], - "dimensions": [ - { - "name": "HttpStatus", - "displayName": "Http Status", - "internalName": "HttpStatusCode" - }, - { - "name": "HttpStatusGroup", - "displayName": "Http Status Group", - "internalName": "HttpStatusCodeClass" - }, - { - "name": "ClientRegion", - "displayName": "Client Region" - }, - { - "name": "ClientCountry", - "displayName": "Client Country" - }, - { - "name": "Endpoint", - "displayName": "Endpoint", - "internalName": "EndpointName" - } - ], - "fillGapWithZero": true, - "isInternal": false - }, - { - "name": "ByteHitRatio", - "displayName": "Byte Hit Ratio", - "displayDescription": "This is the ratio of the total bytes served from the cache compared to the total response bytes", - "unit": "Percent", - "aggregationType": "Average", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1M" - } - ], - "supportedTimeGrainTypes": [ - "PT1M", - "PT5M", - "PT15M", - "PT30M", - "PT1H", - "PT6H", - "PT12H", - "P1D" - ], - "dimensions": [ - { - "name": "Endpoint", - "displayName": "Endpoint", - "internalName": "EndpointName" - } - ], - "fillGapWithZero": true, - "isInternal": false - }, - { - "name": "Percentage4XX", - "displayName": "Percentage of 4XX", - "displayDescription": "The percentage of all the client requests for which the response status code is 4XX", - "unit": "Percent", - "aggregationType": "Average", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1M" - } - ], - "supportedTimeGrainTypes": [ - "PT1M", - "PT5M", - "PT15M", - "PT30M", - "PT1H", - "PT6H", - "PT12H", - "P1D" - ], - "dimensions": [ - { - "name": "Endpoint", - "displayName": "Endpoint", - "internalName": "EndpointName" - }, - { - "name": "ClientRegion", - "displayName": "Client Region" - }, - { - "name": "ClientCountry", - "displayName": "Client Country" - } - ], - "metricFilterPattern": "Standard_AzureFrontDoor|Premium_AzureFrontDoor", - "fillGapWithZero": true, - "isInternal": false - }, - { - "name": "Percentage5XX", - "displayName": "Percentage of 5XX", - "displayDescription": "The percentage of all the client requests for which the response status code is 5XX", - "unit": "Percent", - "aggregationType": "Average", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1M" - } - ], - "supportedTimeGrainTypes": [ - "PT1M", - "PT5M", - "PT15M", - "PT30M", - "PT1H", - "PT6H", - "PT12H", - "P1D" - ], - "dimensions": [ - { - "name": "Endpoint", - "displayName": "Endpoint", - "internalName": "EndpointName" - }, - { - "name": "ClientRegion", - "displayName": "Client Region" - }, - { - "name": "ClientCountry", - "displayName": "Client Country" - } - ], - "metricFilterPattern": "Standard_AzureFrontDoor|Premium_AzureFrontDoor", - "fillGapWithZero": true, - "isInternal": false - }, - { - "name": "RequestSize", - "displayName": "Request Size", - "displayDescription": "The number of bytes sent as requests from clients to AFDX.", - "unit": "Bytes", - "aggregationType": "Total", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1M" - } - ], - "supportedTimeGrainTypes": [ - "PT1M", - "PT5M", - "PT15M", - "PT30M", - "PT1H", - "PT6H", - "PT12H", - "P1D" - ], - "dimensions": [ - { - "name": "HttpStatus", - "displayName": "Http Status", - "internalName": "HttpStatusCode" - }, - { - "name": "HttpStatusGroup", - "displayName": "Http Status Group", - "internalName": "HttpStatusCodeClass" - }, - { - "name": "ClientRegion", - "displayName": "Client Region" - }, - { - "name": "ClientCountry", - "displayName": "Client Country" - }, - { - "name": "Endpoint", - "displayName": "Endpoint", - "internalName": "EndpointName" - } - ], - "metricFilterPattern": "Standard_AzureFrontDoor|Premium_AzureFrontDoor", - "fillGapWithZero": true, - "isInternal": false - }, - { - "name": "OriginLatency", - "displayName": "Origin Latency", - "displayDescription": "The time calculated from when the request was sent by AFDX edge to the backend until AFDX received the last response byte from the backend.", - "unit": "MilliSeconds", - "aggregationType": "Average", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1M" - } - ], - "supportedTimeGrainTypes": [ - "PT1M", - "PT5M", - "PT15M", - "PT30M", - "PT1H", - "PT6H", - "PT12H", - "P1D" - ], - "dimensions": [ - { - "name": "Origin", - "displayName": "Origin", - "internalName": "ApplicationEndpoint" - }, - { - "name": "Endpoint", - "displayName": "Endpoint", - "internalName": "EndpointName" - } - ], - "metricFilterPattern": "Standard_AzureFrontDoor|Premium_AzureFrontDoor", - "fillGapWithZero": true, - "isInternal": false - }, - { - "name": "OriginRequestCount", - "displayName": "Origin Request Count", - "displayDescription": "The number of requests sent from AFDX to origin.", - "unit": "Count", - "aggregationType": "Total", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1M" - } - ], - "supportedTimeGrainTypes": [ - "PT1M", - "PT5M", - "PT15M", - "PT30M", - "PT1H", - "PT6H", - "PT12H", - "P1D" - ], - "dimensions": [ - { - "name": "HttpStatus", - "displayName": "Http Status", - "internalName": "HttpStatusCode" - }, - { - "name": "HttpStatusGroup", - "displayName": "Http Status Group", - "internalName": "HttpStatusCodeClass" - }, - { - "name": "Origin", - "displayName": "Origin", - "internalName": "ApplicationEndpoint" - }, - { - "name": "Endpoint", - "displayName": "Endpoint", - "internalName": "EndpointName" - } - ], - "metricFilterPattern": "Standard_AzureFrontDoor|Premium_AzureFrontDoor", - "fillGapWithZero": true, - "isInternal": false - }, - { - "name": "OriginHealthPercentage", - "displayName": "Origin Health Percentage", - "displayDescription": "The percentage of successful health probes from AFDX to backends.", - "unit": "Percent", - "aggregationType": "Average", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1M" - } - ], - "supportedTimeGrainTypes": [ - "PT1M", - "PT5M", - "PT15M", - "PT30M", - "PT1H", - "PT6H", - "PT12H", - "P1D" - ], - "dimensions": [ - { - "name": "Origin", - "displayName": "Origin", - "internalName": "ApplicationEndpoint" - }, - { - "name": "OriginGroup", - "displayName": "Origin Group", - "internalName": "ApplicationEndpointPool" - } - ], - "metricFilterPattern": "Standard_AzureFrontDoor|Premium_AzureFrontDoor", - "fillGapWithZero": true, - "isInternal": false - }, - { - "name": "WebApplicationFirewallRequestCount", - "displayName": "Web Application Firewall Request Count", - "displayDescription": "The number of client requests processed by the Web Application Firewall", - "unit": "Count", - "aggregationType": "Total", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "PT1M" - } - ], - "supportedTimeGrainTypes": [ - "PT1M", - "PT5M", - "PT15M", - "PT30M", - "PT1H", - "PT6H", - "PT12H", - "P1D" - ], - "dimensions": [ - { - "name": "PolicyName", - "displayName": "Policy Name", - "internalName": "WebApplicationFirewallPolicyName" - }, - { - "name": "RuleName", - "displayName": "Rule Name", - "internalName": "WebApplicationFirewallRuleName" - }, - { - "name": "Action", - "displayName": "Action", - "internalName": "WebApplicationFirewallAction" - } - ], - "metricFilterPattern": "Standard_AzureFrontDoor|Premium_AzureFrontDoor", - "fillGapWithZero": true, - "isInternal": false - } - ] - } - } - }, - { - "origin": "system", - "name": "Microsoft.Cdn/profiles/endpoints/providers/Microsoft.Insights/diagnosticSettings/read", - "display": { - "provider": "Microsoft.Cdn", - "resource": "profiles/endpoints", - "operation": "Read diagnostic settings", - "description": "Gets the diagnostic settings for the resource" - } - }, - { - "origin": "system", - "name": "Microsoft.Cdn/cdnwebapplicationfirewallpolicies/providers/Microsoft.Insights/diagnosticSettings/read", - "display": { - "provider": "Microsoft.Cdn", - "resource": "cdnwebapplicationfirewallpolicies", - "operation": "Read diagnostic settings", - "description": "Gets the diagnostic settings for the resource" - } - }, - { - "origin": "system", - "name": "Microsoft.Cdn/profiles/providers/Microsoft.Insights/diagnosticSettings/read", - "display": { - "provider": "Microsoft.Cdn", - "resource": "profiles", - "operation": "Read diagnostic settings", - "description": "Gets the diagnostic settings for the resource" - } - }, - { - "origin": "system", - "name": "Microsoft.Cdn/profiles/endpoints/providers/Microsoft.Insights/diagnosticSettings/write", - "display": { - "provider": "Microsoft.Cdn", - "resource": "profiles/endpoints", - "operation": "Write diagnostic settings", - "description": "Creates or updates the diagnostic settings for the resource" - } - }, - { - "origin": "system", - "name": "Microsoft.Cdn/cdnwebapplicationfirewallpolicies/providers/Microsoft.Insights/diagnosticSettings/write", - "display": { - "provider": "Microsoft.Cdn", - "resource": "cdnwebapplicationfirewallpolicies", - "operation": "Write diagnostic settings", - "description": "Creates or updates the diagnostic settings for the resource" - } - }, - { - "origin": "system", - "name": "Microsoft.Cdn/profiles/providers/Microsoft.Insights/diagnosticSettings/write", - "display": { - "provider": "Microsoft.Cdn", - "resource": "profiles", - "operation": "Write diagnostic settings", - "description": "Creates or updates the diagnostic settings for the resource" - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk/endpoints/endpointnaEaKxHk/originGroups?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:25:17 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11923", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T022517Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk/endpoints/endpointnaEaKxHk/origingroups/origingroueakxhk", - "type": "Microsoft.Cdn/profiles/endpoints/origingroups", - "name": "origingroueakxhk", - "properties": { - "healthProbeSettings": { - "probePath": "/health.aspx", - "probeRequestType": "GET", - "probeProtocol": "Http", - "probeIntervalInSeconds": 120 - }, - "responseBasedOriginErrorDetectionSettings": null, - "trafficRestorationTimeToHealedOrNewEndpointsInMinutes": null, - "origins": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk/endpoints/endpointnaEaKxHk/origins/origin1" - } - ], - "resourceState": "Active", - "provisioningState": "Succeeded" - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk/endpoints/endpointnaEaKxHk/originGroups/origingrouEaKxHk?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:25:17 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11922", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T022518Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk/endpoints/endpointnaEaKxHk/origingroups/origingrouEaKxHk", - "type": "Microsoft.Cdn/profiles/endpoints/origingroups", - "name": "origingroueakxhk", - "properties": { - "healthProbeSettings": { - "probePath": "/health.aspx", - "probeRequestType": "GET", - "probeProtocol": "Http", - "probeIntervalInSeconds": 120 - }, - "responseBasedOriginErrorDetectionSettings": null, - "trafficRestorationTimeToHealedOrNewEndpointsInMinutes": null, - "origins": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk/endpoints/endpointnaEaKxHk/origins/origin1" - } - ], - "resourceState": "Active", - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk/endpoints/endpointnaEaKxHk/originGroups/origingrouEaKxHk?api-version=2021-06-01", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "144", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "healthProbeSettings": { - "probeIntervalInSeconds": 120, - "probePath": "/health.aspx", - "probeProtocol": "Http", - "probeRequestType": "GET" - } - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:25:21 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1195", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T022521Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk/endpoints/endpointnaEaKxHk/origingroups/origingrouEaKxHk", - "type": "Microsoft.Cdn/profiles/endpoints/origingroups", - "name": "origingroueakxhk", - "properties": { - "healthProbeSettings": { - "probePath": "/health.aspx", - "probeRequestType": "GET", - "probeProtocol": "Http", - "probeIntervalInSeconds": 120 - }, - "responseBasedOriginErrorDetectionSettings": null, - "trafficRestorationTimeToHealedOrNewEndpointsInMinutes": null, - "origins": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk/endpoints/endpointnaEaKxHk/origins/origin1" - } - ], - "resourceState": "Active", - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk/endpoints/endpointnaEaKxHk/origins?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:25:21 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11921", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T022522Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk/endpoints/endpointnaEaKxHk/origins/origin1", - "type": "Microsoft.Cdn/profiles/endpoints/origins", - "name": "origin1", - "properties": { - "hostName": "www.someDomain1.net", - "httpPort": 80, - "httpsPort": 443, - "resourceState": "Active", - "originHostHeader": "www.bing.com", - "priority": 1, - "weight": 1000, - "enabled": true, - "privateLinkAlias": null, - "privateLinkResourceId": null, - "privateLinkLocation": null, - "privateEndpointStatus": null, - "privateLinkApprovalMessage": null, - "provisioningState": "Succeeded" - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk/endpoints/endpointnaEaKxHk/origins/originnameeakxhk", - "type": "Microsoft.Cdn/profiles/endpoints/origins", - "name": "originnameeakxhk", - "properties": { - "hostName": "www.somedomain.net", - "httpPort": 80, - "httpsPort": 443, - "resourceState": "Active", - "originHostHeader": null, - "priority": 1, - "weight": 1000, - "enabled": true, - "privateLinkAlias": null, - "privateLinkResourceId": null, - "privateLinkLocation": null, - "privateEndpointStatus": null, - "privateLinkApprovalMessage": null, - "provisioningState": "Succeeded" - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk/endpoints/endpointnaEaKxHk/origins/originnameEaKxHk?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:25:22 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11920", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T022523Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk/endpoints/endpointnaEaKxHk/origins/originnameEaKxHk", - "type": "Microsoft.Cdn/profiles/endpoints/origins", - "name": "originnameeakxhk", - "properties": { - "hostName": "www.somedomain.net", - "httpPort": 80, - "httpsPort": 443, - "resourceState": "Active", - "originHostHeader": null, - "priority": 1, - "weight": 1000, - "enabled": true, - "privateLinkAlias": null, - "privateLinkResourceId": null, - "privateLinkLocation": null, - "privateEndpointStatus": null, - "privateLinkApprovalMessage": null, - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk/endpoints/endpointnaEaKxHk/origins/originnameEaKxHk?api-version=2021-06-01", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "126", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "enabled": true, - "httpPort": 42, - "httpsPort": 43, - "originHostHeader": "www.someDomain2.net", - "priority": 1, - "weight": 50 - } - }, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "Cache-Control": "no-cache", - "Content-Length": "625", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:25:26 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000/profileresults/profilenamEaKxHk/endpointresults/endpointnaEaKxHk/originresults/originnameEaKxHk?api-version=2021-06-01", - "Pragma": "no-cache", - "Retry-After": "10", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1194", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T022527Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk/endpoints/endpointnaEaKxHk/origins/originnameEaKxHk", - "type": "Microsoft.Cdn/profiles/endpoints/origins", - "name": "originnameeakxhk", - "properties": { - "hostName": "www.somedomain.net", - "httpPort": 42, - "httpsPort": 43, - "resourceState": "Active", - "originHostHeader": "www.someDomain2.net", - "priority": 1, - "weight": 50, - "enabled": true, - "privateLinkAlias": null, - "privateLinkResourceId": null, - "privateLinkLocation": null, - "privateEndpointStatus": null, - "privateLinkApprovalMessage": null, - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:25:37 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11919", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T022537Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "InProgress", - "error": { - "code": "None", - "message": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:26:07 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11918", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T022607Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded", - "error": { - "code": "None", - "message": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk/endpoints/endpointnaEaKxHk/origins/originnameEaKxHk?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:26:08 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11917", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T022609Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk/endpoints/endpointnaEaKxHk/origins/originnameEaKxHk", - "type": "Microsoft.Cdn/profiles/endpoints/origins", - "name": "originnameeakxhk", - "properties": { - "hostName": "www.somedomain.net", - "httpPort": 42, - "httpsPort": 43, - "resourceState": "Active", - "originHostHeader": "www.someDomain2.net", - "priority": 1, - "weight": 50, - "enabled": true, - "privateLinkAlias": null, - "privateLinkResourceId": null, - "privateLinkLocation": null, - "privateEndpointStatus": null, - "privateLinkApprovalMessage": null, - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk/endpoints/endpointnaEaKxHk/origins/originnameEaKxHk?api-version=2021-06-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Tue, 08 Nov 2022 02:26:10 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000/profileresults/profilenamEaKxHk/endpointresults/endpointnaEaKxHk/originresults/originnameEaKxHk?api-version=2021-06-01", - "Pragma": "no-cache", - "Retry-After": "10", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14991", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T022611Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:26:21 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11916", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T022621Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded", - "error": { - "code": "None", - "message": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cdn/profiles?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:26:22 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "49", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T022622Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamlt94sp", - "type": "Microsoft.Cdn/profiles", - "name": "profilenamlt94sp", - "location": "Global", - "kind": "frontdoor", - "tags": {}, - "sku": { - "name": "Premium_AzureFrontDoor" - }, - "properties": { - "originResponseTimeoutSeconds": 30, - "frontDoorId": "00000000-0000-0000-0000-000000000000", - "resourceState": "Active", - "provisioningState": "Succeeded" - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamyf05tr", - "type": "Microsoft.Cdn/profiles", - "name": "profilenamyf05tr", - "location": "WestUs", - "kind": "cdn", - "tags": {}, - "sku": { - "name": "Standard_Verizon" - }, - "properties": { - "resourceState": "Active", - "provisioningState": "Succeeded" - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamwVCz6S", - "type": "Microsoft.Cdn/profiles", - "name": "profilenamwVCz6S", - "location": "WestUs", - "kind": "cdn", - "tags": {}, - "sku": { - "name": "Standard_Verizon" - }, - "properties": { - "resourceState": "Active", - "provisioningState": "Succeeded" - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamPRAnjI", - "type": "Microsoft.Cdn/profiles", - "name": "profilenamPRAnjI", - "location": "WestUs", - "kind": "cdn", - "tags": {}, - "sku": { - "name": "Standard_Verizon" - }, - "properties": { - "resourceState": "Active", - "provisioningState": "Succeeded" - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamPJn1Ab", - "type": "Microsoft.Cdn/profiles", - "name": "profilenamPJn1Ab", - "location": "WestUs", - "kind": "cdn", - "tags": {}, - "sku": { - "name": "Standard_Verizon" - }, - "properties": { - "resourceState": "Active", - "provisioningState": "Succeeded" - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-test/providers/Microsoft.Cdn/profiles/gocdn", - "type": "Microsoft.Cdn/profiles", - "name": "gocdn", - "location": "Global", - "kind": "cdn", - "tags": {}, - "sku": { - "name": "Standard_Verizon" - }, - "properties": { - "resourceState": "Active", - "provisioningState": "Succeeded" - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenam0v3BCw", - "type": "Microsoft.Cdn/profiles", - "name": "profilenam0v3BCw", - "location": "WestUs", - "kind": "cdn", - "tags": {}, - "sku": { - "name": "Standard_Verizon" - }, - "properties": { - "resourceState": "Active", - "provisioningState": "Succeeded" - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenam2G0EAE", - "type": "Microsoft.Cdn/profiles", - "name": "profilenam2G0EAE", - "location": "WestUs", - "kind": "cdn", - "tags": {}, - "sku": { - "name": "Premium_Verizon" - }, - "properties": { - "resourceState": "Active", - "provisioningState": "Succeeded" - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-test/providers/Microsoft.Cdn/profiles/gotestcdn", - "type": "Microsoft.Cdn/profiles", - "name": "gotestcdn", - "location": "Global", - "kind": "cdn", - "tags": {}, - "sku": { - "name": "Standard_Microsoft" - }, - "properties": { - "resourceState": "Active", - "provisioningState": "Succeeded" - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamdBaIs5", - "type": "Microsoft.Cdn/profiles", - "name": "profilenamdBaIs5", - "location": "WestUs", - "kind": "cdn", - "tags": {}, - "sku": { - "name": "Standard_Microsoft" - }, - "properties": { - "resourceState": "Active", - "provisioningState": "Succeeded" - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamaoL397", - "type": "Microsoft.Cdn/profiles", - "name": "profilenamaoL397", - "location": "WestUs", - "kind": "cdn", - "tags": {}, - "sku": { - "name": "Standard_Microsoft" - }, - "properties": { - "resourceState": "Active", - "provisioningState": "Succeeded" - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamlUI7uM", - "type": "Microsoft.Cdn/profiles", - "name": "profilenamlUI7uM", - "location": "WestUs", - "kind": "cdn", - "tags": {}, - "sku": { - "name": "Standard_Microsoft" - }, - "properties": { - "resourceState": "Active", - "provisioningState": "Succeeded" - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamIH7TF2", - "type": "Microsoft.Cdn/profiles", - "name": "afdprofilenamIH7TF2", - "location": "Global", - "kind": "frontdoor", - "tags": {}, - "sku": { - "name": "Premium_AzureFrontDoor" - }, - "properties": { - "originResponseTimeoutSeconds": 30, - "frontDoorId": "00000000-0000-0000-0000-000000000000", - "resourceState": "Active", - "provisioningState": "Succeeded" - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/afdprofilenamqlGA3p", - "type": "Microsoft.Cdn/profiles", - "name": "afdprofilenamqlGA3p", - "location": "Global", - "kind": "frontdoor", - "tags": {}, - "sku": { - "name": "Premium_AzureFrontDoor" - }, - "properties": { - "originResponseTimeoutSeconds": 30, - "frontDoorId": "00000000-0000-0000-0000-000000000000", - "resourceState": "Active", - "provisioningState": "Succeeded" - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk", - "type": "Microsoft.Cdn/profiles", - "name": "profilenamEaKxHk", - "location": "Global", - "kind": "cdn", - "tags": {}, - "sku": { - "name": "Standard_Microsoft" - }, - "properties": { - "resourceState": "Active", - "provisioningState": "Succeeded" - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:26:22 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "48", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T022622Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk", - "type": "Microsoft.Cdn/profiles", - "name": "profilenamEaKxHk", - "location": "Global", - "kind": "cdn", - "tags": {}, - "sku": { - "name": "Standard_Microsoft" - }, - "properties": { - "resourceState": "Active", - "provisioningState": "Succeeded" - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:26:23 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "47", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T022623Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk", - "type": "Microsoft.Cdn/profiles", - "name": "profilenamEaKxHk", - "location": "Global", - "kind": "cdn", - "tags": {}, - "sku": { - "name": "Standard_Microsoft" - }, - "properties": { - "resourceState": "Active", - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk?api-version=2021-06-01", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "40", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "tags": { - "additionalProperties": "Tag1" - } - }, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "Cache-Control": "no-cache", - "Content-Length": "378", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:26:25 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000/profileresults/profilenamEaKxHk?api-version=2021-06-01", - "Pragma": "no-cache", - "Retry-After": "10", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "22", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T022625Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk", - "type": "Microsoft.Cdn/profiles", - "name": "profilenamEaKxHk", - "location": "Global", - "kind": "cdn", - "tags": { - "additionalProperties": "Tag1" - }, - "sku": { - "name": "Standard_Microsoft" - }, - "properties": { - "resourceState": "Active", - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:26:35 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11915", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T022636Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded", - "error": { - "code": "None", - "message": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:26:36 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "46", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T022636Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk", - "type": "Microsoft.Cdn/profiles", - "name": "profilenamEaKxHk", - "location": "Global", - "kind": "cdn", - "tags": { - "additionalProperties": "Tag1" - }, - "sku": { - "name": "Standard_Microsoft" - }, - "properties": { - "resourceState": "Active", - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk/checkResourceUsage?api-version=2021-06-01", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:26:37 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1193", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T022638Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "resourceType": "endpoint", - "unit": "count", - "currentValue": 1, - "limit": 25 - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk/getSupportedOptimizationTypes?api-version=2021-06-01", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:26:38 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1192", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T022639Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "supportedOptimizationTypes": [ - "GeneralWebDelivery" - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cdn/checkResourceUsage?api-version=2021-06-01", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:26:39 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1191", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T022639Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "resourceType": "profile", - "unit": "count", - "currentValue": 12, - "limit": 25 - }, - { - "resourceType": "afdprofile", - "unit": "count", - "currentValue": 3, - "limit": 500 - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cdn/validateProbe?api-version=2021-06-01", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "41", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "probeURL": "https://www.bing.com/image" - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:26:39 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1190", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T022640Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "isValid": true, - "errorCode": "None", - "message": null - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk/endpoints/endpointnaEaKxHk?api-version=2021-06-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Tue, 08 Nov 2022 02:26:42 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000/profileresults/profilenamEaKxHk/endpointresults/endpointnaEaKxHk?api-version=2021-06-01", - "Pragma": "no-cache", - "Retry-After": "10", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14990", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T022643Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:26:52 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11914", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T022653Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "InProgress", - "error": { - "code": "None", - "message": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:27:23 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11913", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T022724Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "InProgress", - "error": { - "code": "None", - "message": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:27:53 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11912", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T022754Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "InProgress", - "error": { - "code": "None", - "message": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:28:24 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11911", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T022824Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded", - "error": { - "code": "None", - "message": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cdn/profiles/profilenamEaKxHk?api-version=2021-06-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Tue, 08 Nov 2022 02:28:27 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000/profileresults/profilenamEaKxHk?api-version=2021-06-01", - "Pragma": "no-cache", - "Retry-After": "10", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14989", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T022827Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:28:37 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11910", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T022838Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "InProgress", - "error": { - "code": "None", - "message": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Cdn/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcdn/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 08 Nov 2022 02:29:08 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11909", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T022908Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded", - "error": { - "code": "None", - "message": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Tue, 08 Nov 2022 02:29:10 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ3NjctV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14988", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221108T022911Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": { - "recordingRandomSeed": "1667873096" - } -} diff --git a/sdk/resourcemanager/compute/armcompute/assets.json b/sdk/resourcemanager/compute/armcompute/assets.json new file mode 100644 index 000000000000..740c95e53803 --- /dev/null +++ b/sdk/resourcemanager/compute/armcompute/assets.json @@ -0,0 +1,6 @@ +{ + "AssetsRepo": "Azure/azure-sdk-assets", + "AssetsRepoPrefixPath": "go", + "TagPrefix": "go/resourcemanager/compute/armcompute", + "Tag": "go/resourcemanager/compute/armcompute_7dca156240" +} diff --git a/sdk/resourcemanager/compute/armcompute/availabilitysets_client_live_test.go b/sdk/resourcemanager/compute/armcompute/availabilitysets_client_live_test.go index e7c5c72438d8..014e6b7e340c 100644 --- a/sdk/resourcemanager/compute/armcompute/availabilitysets_client_live_test.go +++ b/sdk/resourcemanager/compute/armcompute/availabilitysets_client_live_test.go @@ -14,7 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v3" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v4" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/testutil" "github.com/stretchr/testify/suite" ) diff --git a/sdk/resourcemanager/compute/armcompute/go.mod b/sdk/resourcemanager/compute/armcompute/go.mod index 5f5224d85d78..911c7d63ec64 100644 --- a/sdk/resourcemanager/compute/armcompute/go.mod +++ b/sdk/resourcemanager/compute/armcompute/go.mod @@ -3,29 +3,28 @@ module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/ go 1.18 require ( - github.com/Azure/azure-sdk-for-go/sdk/azcore v1.0.0 - github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.0.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v3 v3.0.1 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.0.0 + github.com/Azure/azure-sdk-for-go/sdk/azcore v1.4.0 + github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.2 github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork v1.0.0 github.com/stretchr/testify v1.7.0 ) require ( - github.com/Azure/azure-sdk-for-go/sdk/internal v1.0.0 // indirect + github.com/Azure/azure-sdk-for-go/sdk/internal v1.2.0 // indirect github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0 // indirect - github.com/AzureAD/microsoft-authentication-library-for-go v0.4.0 // indirect + github.com/AzureAD/microsoft-authentication-library-for-go v0.7.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/dnaeon/go-vcr v1.1.0 // indirect - github.com/golang-jwt/jwt v3.2.1+incompatible // indirect + github.com/golang-jwt/jwt/v4 v4.4.2 // 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 github.com/pmezard/go-difflib v1.0.0 // 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 + golang.org/x/net v0.7.0 // indirect + golang.org/x/sys v0.5.0 // indirect + golang.org/x/text v0.7.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect ) diff --git a/sdk/resourcemanager/compute/armcompute/go.sum b/sdk/resourcemanager/compute/armcompute/go.sum index 2838055b76ef..bf1cdbf4fff0 100644 --- a/sdk/resourcemanager/compute/armcompute/go.sum +++ b/sdk/resourcemanager/compute/armcompute/go.sum @@ -1,33 +1,29 @@ -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/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v3 v3.0.1 h1:H3g2mkmu105ON0c/Gqx3Bm+bzoIijLom8LmV9Gjn7X0= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v3 v3.0.1/go.mod h1:EAc3kjhZf9soch7yLID8PeKcE6VfKvQTllSBHYVdXd8= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.0.0 h1:lMW1lD/17LUA5z1XTURo7LcVG2ICBPlyMHjIUrcFZNQ= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.0.0/go.mod h1:ceIuwmxDWptoW3eCqSXlnPsZFKh4X+R38dWPv7GS9Vs= +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.0 h1:t/W5MYAuQy81cvM8VUNfRLzhtKpXhVUAN7Cd7KVbTyc= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.0/go.mod h1:NBanQUfSWiWn3QEpWDTCU0IjBECKOYvl2R8xdRtMtiM= +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/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.2 h1:mLY+pNLjCUeKhgnAJWAKhEUQM+RJQo2H1fuGSw1Ky1E= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.2/go.mod h1:FbdwsQ2EzwvXxOPcMFYO8ogEc9uMMIj3YkmCdXdAFmk= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork v1.0.0 h1:nBy98uKOIfun5z6wx6jwWLrULcM0+cjBalBFZlEZ7CA= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork v1.0.0/go.mod h1:243D9iHbcQXoFUtgHJwL7gl2zx1aDuDMjvBZVGr2uW0= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0 h1:ECsQtyERDVz3NP3kvDOTLvbQhqWp/x9EsGKtb4ogUr8= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0/go.mod h1:s1tW/At+xHqjNFvWU4G0c0Qv33KOhvbGNj0RCTQDV8s= -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/AzureAD/microsoft-authentication-library-for-go v0.7.0 h1:VgSJlZH5u0k2qxSpqyghcFQKmvYckj46uymKK5XzkBM= +github.com/AzureAD/microsoft-authentication-library-for-go v0.7.0/go.mod h1:BDJ5qMFKx9DugEg3+uQSDCdbYPr5s9vBTrL9P8TpqOU= 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/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 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= +github.com/golang-jwt/jwt/v4 v4.4.2 h1:rcc4lwaZgFMCZ5jxF9ABolDcIHdBytAFgqFPbSJQAYs= +github.com/golang-jwt/jwt/v4 v4.4.2/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= 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= @@ -37,13 +33,12 @@ github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5Cc github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= 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-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/net v0.7.0 h1:rJrUqqhjsgNp7KqAIc25s9pZnjU7TUcSY7HcVZjdn1g= +golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= +golang.org/x/sys v0.5.0 h1:MUK/U/4lj1t1oPg0HfuXDN/Z1wv31ZJ/YcPiGccS4DU= +golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/text v0.7.0 h1:4BRB4x83lYWy72KwLD/qYDuTu7q9PjSagHvijDw7cLo= +golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= 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= diff --git a/sdk/resourcemanager/compute/armcompute/testdata/recordings/TestAvailabilitySetsClient.json b/sdk/resourcemanager/compute/armcompute/testdata/recordings/TestAvailabilitySetsClient.json deleted file mode 100644 index a35e39e0e44b..000000000000 --- a/sdk/resourcemanager/compute/armcompute/testdata/recordings/TestAvailabilitySetsClient.json +++ /dev/null @@ -1,262 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.18; Windows_NT)" - }, - "RequestBody": { - "location": "eastus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 01 Aug 2022 03:23:01 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220801T032302Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "eastus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/availabilitySets/go-test-availability?api-version=2022-03-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "120", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcompute/v3.0.1 (go1.18; Windows_NT)" - }, - "RequestBody": { - "location": "westus", - "properties": { - "platformFaultDomainCount": 1, - "platformUpdateDomainCount": 1 - }, - "sku": { - "name": "Aligned" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 01 Aug 2022 03:23:06 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/PutVM3Min;239,Microsoft.Compute/PutVM30Min;1197", - "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220801T032307Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "go-test-availability", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/availabilitySets/go-test-availability", - "type": "Microsoft.Compute/availabilitySets", - "location": "westus", - "properties": { - "platformUpdateDomainCount": 1, - "platformFaultDomainCount": 1 - }, - "sku": { - "name": "Aligned" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/availabilitySets/go-test-availability?api-version=2022-03-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcompute/v3.0.1 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 01 Aug 2022 03:23:07 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/LowCostGet3Min;3999,Microsoft.Compute/LowCostGet30Min;31997", - "x-ms-ratelimit-remaining-subscription-reads": "11999", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220801T032308Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "go-test-availability", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/availabilitySets/go-test-availability", - "type": "Microsoft.Compute/availabilitySets", - "location": "westus", - "properties": { - "platformUpdateDomainCount": 1, - "platformFaultDomainCount": 1, - "virtualMachines": [] - }, - "sku": { - "name": "Aligned" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/availabilitySets/go-test-availability?api-version=2022-03-01", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "24", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcompute/v3.0.1 (go1.18; Windows_NT)" - }, - "RequestBody": { - "tags": { - "tag": "value" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 01 Aug 2022 03:23:09 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/PutVM3Min;238,Microsoft.Compute/PutVM30Min;1196", - "x-ms-ratelimit-remaining-subscription-writes": "1197", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220801T032310Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "go-test-availability", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/availabilitySets/go-test-availability", - "type": "Microsoft.Compute/availabilitySets", - "location": "westus", - "tags": { - "tag": "value" - }, - "properties": { - "platformUpdateDomainCount": 1, - "platformFaultDomainCount": 1 - }, - "sku": { - "name": "Aligned" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/availabilitySets/go-test-availability?api-version=2022-03-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcompute/v3.0.1 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 01 Aug 2022 03:23:16 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/DeleteVM3Min;239,Microsoft.Compute/DeleteVM30Min;1198", - "x-ms-ratelimit-remaining-subscription-deletes": "14999", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220801T032317Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 01 Aug 2022 03:23:19 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQzMzctRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14998", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220801T032320Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/resourcemanager/compute/armcompute/testdata/recordings/TestVirtualMachineScaleSetsClient.json b/sdk/resourcemanager/compute/armcompute/testdata/recordings/TestVirtualMachineScaleSetsClient.json deleted file mode 100644 index abf8856875b2..000000000000 --- a/sdk/resourcemanager/compute/armcompute/testdata/recordings/TestVirtualMachineScaleSetsClient.json +++ /dev/null @@ -1,1365 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.18; Windows_NT)" - }, - "RequestBody": { - "location": "eastus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 01 Aug 2022 03:26:22 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1188", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220801T032623Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "eastus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/go-test-network?api-version=2021-08-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "170", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armnetwork/v1.0.0 (go1.18; Windows_NT)" - }, - "RequestBody": { - "location": "eastus", - "properties": { - "addressSpace": { - "addressPrefixes": [ - "10.1.0.0/16" - ] - }, - "subnets": [ - { - "name": "go-test-subnet", - "properties": { - "addressPrefix": "10.1.0.0/24" - } - } - ] - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2021-08-01", - "Cache-Control": "no-cache", - "Content-Length": "1257", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 01 Aug 2022 03:26:25 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "3", - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1187", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220801T032626Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "go-test-network", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/go-test-network", - "etag": "W/\u002200000000-0000-0000-0000-000000000000\u0022", - "type": "Microsoft.Network/virtualNetworks", - "location": "eastus", - "properties": { - "provisioningState": "Updating", - "resourceGuid": "00000000-0000-0000-0000-000000000000", - "addressSpace": { - "addressPrefixes": [ - "10.1.0.0/16" - ] - }, - "subnets": [ - { - "name": "go-test-subnet", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/go-test-network/subnets/go-test-subnet", - "etag": "W/\u002200000000-0000-0000-0000-000000000000\u0022", - "properties": { - "provisioningState": "Updating", - "addressPrefix": "10.1.0.0/24", - "delegations": [], - "privateEndpointNetworkPolicies": "Disabled", - "privateLinkServiceNetworkPolicies": "Enabled" - }, - "type": "Microsoft.Network/virtualNetworks/subnets" - } - ], - "virtualNetworkPeerings": [], - "enableDdosProtection": false - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armnetwork/v1.0.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 01 Aug 2022 03:26:29 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11980", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220801T032629Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/go-test-network?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armnetwork/v1.0.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 01 Aug 2022 03:26:30 GMT", - "ETag": "W/\u002200000000-0000-0000-0000-000000000000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11979", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220801T032631Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "go-test-network", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/go-test-network", - "etag": "W/\u002200000000-0000-0000-0000-000000000000\u0022", - "type": "Microsoft.Network/virtualNetworks", - "location": "eastus", - "properties": { - "provisioningState": "Succeeded", - "resourceGuid": "00000000-0000-0000-0000-000000000000", - "addressSpace": { - "addressPrefixes": [ - "10.1.0.0/16" - ] - }, - "subnets": [ - { - "name": "go-test-subnet", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/go-test-network/subnets/go-test-subnet", - "etag": "W/\u002200000000-0000-0000-0000-000000000000\u0022", - "properties": { - "provisioningState": "Succeeded", - "addressPrefix": "10.1.0.0/24", - "delegations": [], - "privateEndpointNetworkPolicies": "Disabled", - "privateLinkServiceNetworkPolicies": "Enabled" - }, - "type": "Microsoft.Network/virtualNetworks/subnets" - } - ], - "virtualNetworkPeerings": [], - "enableDdosProtection": false - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/virtualMachineScaleSets/go-test-vmss?api-version=2022-03-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "878", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcompute/v3.0.1 (go1.18; Windows_NT)" - }, - "RequestBody": { - "location": "eastus", - "properties": { - "overprovision": false, - "upgradePolicy": { - "automaticOSUpgradePolicy": { - "disableAutomaticRollback": false, - "enableAutomaticOSUpgrade": false - }, - "mode": "Manual" - }, - "virtualMachineProfile": { - "networkProfile": { - "networkInterfaceConfigurations": [ - { - "name": "go-test-vmss", - "properties": { - "enableIPForwarding": true, - "ipConfigurations": [ - { - "name": "go-test-vmss", - "properties": { - "subnet": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/go-test-network/subnets/go-test-subnet" - } - } - } - ], - "primary": true - } - } - ] - }, - "osProfile": { - "adminPassword": "Password01!@#", - "adminUsername": "sample-user", - "computerNamePrefix": "vmss" - }, - "storageProfile": { - "imageReference": { - "offer": "WindowsServer", - "publisher": "MicrosoftWindowsServer", - "sku": "2019-Datacenter", - "version": "latest" - } - } - } - }, - "sku": { - "capacity": 1, - "name": "Standard_A0" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/00000000-0000-0000-0000-000000000000?p=00000000-0000-0000-0000-000000000000\u0026api-version=2022-03-01", - "Cache-Control": "no-cache", - "Content-Length": "2301", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 01 Aug 2022 03:26:34 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "10", - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/CreateVMScaleSet3Min;59,Microsoft.Compute/CreateVMScaleSet30Min;298,Microsoft.Compute/VMScaleSetBatchedVMRequests5Min;1199,Microsoft.Compute/VmssQueuedVMOperations;0", - "x-ms-ratelimit-remaining-subscription-writes": "1186", - "x-ms-request-charge": "1", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220801T032634Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "go-test-vmss", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/virtualMachineScaleSets/go-test-vmss", - "type": "Microsoft.Compute/virtualMachineScaleSets", - "location": "eastus", - "sku": { - "name": "Standard_A0", - "tier": "Standard", - "capacity": 1 - }, - "properties": { - "singlePlacementGroup": true, - "upgradePolicy": { - "mode": "Manual", - "automaticOSUpgradePolicy": { - "enableAutomaticOSUpgrade": false, - "useRollingUpgradePolicy": false, - "disableAutomaticRollback": false - } - }, - "virtualMachineProfile": { - "osProfile": { - "computerNamePrefix": "vmss", - "adminUsername": "sample-user", - "windowsConfiguration": { - "provisionVMAgent": true, - "enableAutomaticUpdates": true, - "enableVMAgentPlatformUpdates": false - }, - "secrets": [], - "allowExtensionOperations": true, - "requireGuestProvisionSignal": true - }, - "storageProfile": { - "osDisk": { - "osType": "Windows", - "createOption": "FromImage", - "caching": "None", - "managedDisk": { - "storageAccountType": "Standard_LRS" - }, - "diskSizeGB": 127 - }, - "imageReference": { - "publisher": "MicrosoftWindowsServer", - "offer": "WindowsServer", - "sku": "2019-Datacenter", - "version": "latest" - } - }, - "networkProfile": { - "networkInterfaceConfigurations": [ - { - "name": "go-test-vmss", - "properties": { - "primary": true, - "enableAcceleratedNetworking": false, - "dnsSettings": { - "dnsServers": [] - }, - "enableIPForwarding": true, - "ipConfigurations": [ - { - "name": "go-test-vmss", - "properties": { - "subnet": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/go-test-network/subnets/go-test-subnet" - }, - "privateIPAddressVersion": "IPv4" - } - } - ] - } - } - ] - } - }, - "provisioningState": "Creating", - "overprovision": false, - "doNotRunExtensionsOnOverprovisionedVMs": false, - "uniqueId": "00000000-0000-0000-0000-000000000000", - "timeCreated": "2022-08-01T03:26:33.0404068\u002B00:00" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/00000000-0000-0000-0000-000000000000?p=00000000-0000-0000-0000-000000000000\u0026api-version=2022-03-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcompute/v3.0.1 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 01 Aug 2022 03:26:44 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "97", - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/GetOperation3Min;14993,Microsoft.Compute/GetOperation30Min;29971", - "x-ms-ratelimit-remaining-subscription-reads": "11978", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220801T032644Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "startTime": "2022-08-01T03:26:33.0404068\u002B00:00", - "status": "InProgress", - "name": "00000000-0000-0000-0000-000000000000" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/00000000-0000-0000-0000-000000000000?p=00000000-0000-0000-0000-000000000000\u0026api-version=2022-03-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcompute/v3.0.1 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 01 Aug 2022 03:28:21 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/GetOperation3Min;14993,Microsoft.Compute/GetOperation30Min;29969", - "x-ms-ratelimit-remaining-subscription-reads": "11999", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220801T032822Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "startTime": "2022-08-01T03:26:33.0404068\u002B00:00", - "status": "InProgress", - "name": "00000000-0000-0000-0000-000000000000" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/00000000-0000-0000-0000-000000000000?p=00000000-0000-0000-0000-000000000000\u0026api-version=2022-03-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcompute/v3.0.1 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 01 Aug 2022 03:28:52 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/GetOperation3Min;14994,Microsoft.Compute/GetOperation30Min;29967", - "x-ms-ratelimit-remaining-subscription-reads": "11998", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220801T032852Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "startTime": "2022-08-01T03:26:33.0404068\u002B00:00", - "status": "InProgress", - "name": "00000000-0000-0000-0000-000000000000" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/00000000-0000-0000-0000-000000000000?p=00000000-0000-0000-0000-000000000000\u0026api-version=2022-03-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcompute/v3.0.1 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 01 Aug 2022 03:29:22 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/GetOperation3Min;14994,Microsoft.Compute/GetOperation30Min;29966", - "x-ms-ratelimit-remaining-subscription-reads": "11997", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220801T032923Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "startTime": "2022-08-01T03:26:33.0404068\u002B00:00", - "status": "InProgress", - "name": "00000000-0000-0000-0000-000000000000" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/00000000-0000-0000-0000-000000000000?p=00000000-0000-0000-0000-000000000000\u0026api-version=2022-03-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcompute/v3.0.1 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 01 Aug 2022 03:29:52 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/GetOperation3Min;14994,Microsoft.Compute/GetOperation30Min;29965", - "x-ms-ratelimit-remaining-subscription-reads": "11996", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220801T032953Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "startTime": "2022-08-01T03:26:33.0404068\u002B00:00", - "status": "InProgress", - "name": "00000000-0000-0000-0000-000000000000" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/00000000-0000-0000-0000-000000000000?p=00000000-0000-0000-0000-000000000000\u0026api-version=2022-03-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcompute/v3.0.1 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 01 Aug 2022 03:30:23 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/GetOperation3Min;14993,Microsoft.Compute/GetOperation30Min;29964", - "x-ms-ratelimit-remaining-subscription-reads": "11995", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220801T033023Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "startTime": "2022-08-01T03:26:33.0404068\u002B00:00", - "status": "InProgress", - "name": "00000000-0000-0000-0000-000000000000" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/00000000-0000-0000-0000-000000000000?p=00000000-0000-0000-0000-000000000000\u0026api-version=2022-03-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcompute/v3.0.1 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 01 Aug 2022 03:30:53 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/GetOperation3Min;14992,Microsoft.Compute/GetOperation30Min;29962", - "x-ms-ratelimit-remaining-subscription-reads": "11994", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220801T033053Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "startTime": "2022-08-01T03:26:33.0404068\u002B00:00", - "endTime": "2022-08-01T03:30:35.6682755\u002B00:00", - "status": "Succeeded", - "name": "00000000-0000-0000-0000-000000000000" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/virtualMachineScaleSets/go-test-vmss?api-version=2022-03-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcompute/v3.0.1 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 01 Aug 2022 03:30:53 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/GetVMScaleSet3Min;398,Microsoft.Compute/GetVMScaleSet30Min;2589", - "x-ms-ratelimit-remaining-subscription-reads": "11993", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220801T033054Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "go-test-vmss", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/virtualMachineScaleSets/go-test-vmss", - "type": "Microsoft.Compute/virtualMachineScaleSets", - "location": "eastus", - "sku": { - "name": "Standard_A0", - "tier": "Standard", - "capacity": 1 - }, - "properties": { - "singlePlacementGroup": true, - "upgradePolicy": { - "mode": "Manual", - "automaticOSUpgradePolicy": { - "enableAutomaticOSUpgrade": false, - "useRollingUpgradePolicy": false, - "disableAutomaticRollback": false - } - }, - "virtualMachineProfile": { - "osProfile": { - "computerNamePrefix": "vmss", - "adminUsername": "sample-user", - "windowsConfiguration": { - "provisionVMAgent": true, - "enableAutomaticUpdates": true, - "enableVMAgentPlatformUpdates": false - }, - "secrets": [], - "allowExtensionOperations": true, - "requireGuestProvisionSignal": true - }, - "storageProfile": { - "osDisk": { - "osType": "Windows", - "createOption": "FromImage", - "caching": "None", - "managedDisk": { - "storageAccountType": "Standard_LRS" - }, - "diskSizeGB": 127 - }, - "imageReference": { - "publisher": "MicrosoftWindowsServer", - "offer": "WindowsServer", - "sku": "2019-Datacenter", - "version": "latest" - } - }, - "networkProfile": { - "networkInterfaceConfigurations": [ - { - "name": "go-test-vmss", - "properties": { - "primary": true, - "enableAcceleratedNetworking": false, - "dnsSettings": { - "dnsServers": [] - }, - "enableIPForwarding": true, - "ipConfigurations": [ - { - "name": "go-test-vmss", - "properties": { - "subnet": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/go-test-network/subnets/go-test-subnet" - }, - "privateIPAddressVersion": "IPv4" - } - } - ] - } - } - ] - } - }, - "provisioningState": "Succeeded", - "overprovision": false, - "doNotRunExtensionsOnOverprovisionedVMs": false, - "uniqueId": "00000000-0000-0000-0000-000000000000", - "timeCreated": "2022-08-01T03:26:33.0404068\u002B00:00" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/virtualMachineScaleSets/go-test-vmss?api-version=2022-03-01", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "24", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcompute/v3.0.1 (go1.18; Windows_NT)" - }, - "RequestBody": { - "tags": { - "test": "live" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/00000000-0000-0000-0000-000000000000?p=00000000-0000-0000-0000-000000000000\u0026api-version=2022-03-01", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 01 Aug 2022 03:31:02 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "10", - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/VMScaleSetActions3Min;239,Microsoft.Compute/VMScaleSetActions30Min;1198,Microsoft.Compute/VmssQueuedVMOperations;0", - "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-charge": "0", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220801T033103Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "go-test-vmss", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/virtualMachineScaleSets/go-test-vmss", - "type": "Microsoft.Compute/virtualMachineScaleSets", - "location": "eastus", - "tags": { - "test": "live" - }, - "sku": { - "name": "Standard_A0", - "tier": "Standard", - "capacity": 1 - }, - "properties": { - "singlePlacementGroup": true, - "upgradePolicy": { - "mode": "Manual", - "automaticOSUpgradePolicy": { - "enableAutomaticOSUpgrade": false, - "useRollingUpgradePolicy": false, - "disableAutomaticRollback": false - } - }, - "virtualMachineProfile": { - "osProfile": { - "computerNamePrefix": "vmss", - "adminUsername": "sample-user", - "windowsConfiguration": { - "provisionVMAgent": true, - "enableAutomaticUpdates": true, - "enableVMAgentPlatformUpdates": false - }, - "secrets": [], - "allowExtensionOperations": true, - "requireGuestProvisionSignal": true - }, - "storageProfile": { - "osDisk": { - "osType": "Windows", - "createOption": "FromImage", - "caching": "None", - "managedDisk": { - "storageAccountType": "Standard_LRS" - }, - "diskSizeGB": 127 - }, - "imageReference": { - "publisher": "MicrosoftWindowsServer", - "offer": "WindowsServer", - "sku": "2019-Datacenter", - "version": "latest" - } - }, - "networkProfile": { - "networkInterfaceConfigurations": [ - { - "name": "go-test-vmss", - "properties": { - "primary": true, - "enableAcceleratedNetworking": false, - "dnsSettings": { - "dnsServers": [] - }, - "enableIPForwarding": true, - "ipConfigurations": [ - { - "name": "go-test-vmss", - "properties": { - "subnet": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/go-test-network/subnets/go-test-subnet" - }, - "privateIPAddressVersion": "IPv4" - } - } - ] - } - } - ] - } - }, - "provisioningState": "Updating", - "overprovision": false, - "doNotRunExtensionsOnOverprovisionedVMs": false, - "uniqueId": "00000000-0000-0000-0000-000000000000", - "timeCreated": "2022-08-01T03:26:33.0404068\u002B00:00" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/00000000-0000-0000-0000-000000000000?p=00000000-0000-0000-0000-000000000000\u0026api-version=2022-03-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcompute/v3.0.1 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 01 Aug 2022 03:31:13 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/GetOperation3Min;14992,Microsoft.Compute/GetOperation30Min;29961", - "x-ms-ratelimit-remaining-subscription-reads": "11992", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220801T033114Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "startTime": "2022-08-01T03:31:00.8091919\u002B00:00", - "endTime": "2022-08-01T03:31:01.0435701\u002B00:00", - "status": "Succeeded", - "name": "00000000-0000-0000-0000-000000000000" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/virtualMachineScaleSets/go-test-vmss?api-version=2022-03-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcompute/v3.0.1 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 01 Aug 2022 03:31:13 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/GetVMScaleSet3Min;395,Microsoft.Compute/GetVMScaleSet30Min;2586", - "x-ms-ratelimit-remaining-subscription-reads": "11991", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220801T033114Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "go-test-vmss", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/virtualMachineScaleSets/go-test-vmss", - "type": "Microsoft.Compute/virtualMachineScaleSets", - "location": "eastus", - "tags": { - "test": "live" - }, - "sku": { - "name": "Standard_A0", - "tier": "Standard", - "capacity": 1 - }, - "properties": { - "singlePlacementGroup": true, - "upgradePolicy": { - "mode": "Manual", - "automaticOSUpgradePolicy": { - "enableAutomaticOSUpgrade": false, - "useRollingUpgradePolicy": false, - "disableAutomaticRollback": false - } - }, - "virtualMachineProfile": { - "osProfile": { - "computerNamePrefix": "vmss", - "adminUsername": "sample-user", - "windowsConfiguration": { - "provisionVMAgent": true, - "enableAutomaticUpdates": true, - "enableVMAgentPlatformUpdates": false - }, - "secrets": [], - "allowExtensionOperations": true, - "requireGuestProvisionSignal": true - }, - "storageProfile": { - "osDisk": { - "osType": "Windows", - "createOption": "FromImage", - "caching": "None", - "managedDisk": { - "storageAccountType": "Standard_LRS" - }, - "diskSizeGB": 127 - }, - "imageReference": { - "publisher": "MicrosoftWindowsServer", - "offer": "WindowsServer", - "sku": "2019-Datacenter", - "version": "latest" - } - }, - "networkProfile": { - "networkInterfaceConfigurations": [ - { - "name": "go-test-vmss", - "properties": { - "primary": true, - "enableAcceleratedNetworking": false, - "dnsSettings": { - "dnsServers": [] - }, - "enableIPForwarding": true, - "ipConfigurations": [ - { - "name": "go-test-vmss", - "properties": { - "subnet": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/go-test-network/subnets/go-test-subnet" - }, - "privateIPAddressVersion": "IPv4" - } - } - ] - } - } - ] - } - }, - "provisioningState": "Succeeded", - "overprovision": false, - "doNotRunExtensionsOnOverprovisionedVMs": false, - "uniqueId": "00000000-0000-0000-0000-000000000000", - "timeCreated": "2022-08-01T03:26:33.0404068\u002B00:00" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/virtualMachineScaleSets/go-test-vmss?api-version=2022-03-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcompute/v3.0.1 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 01 Aug 2022 03:31:14 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/GetVMScaleSet3Min;394,Microsoft.Compute/GetVMScaleSet30Min;2585", - "x-ms-ratelimit-remaining-subscription-reads": "11990", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220801T033115Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "go-test-vmss", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/virtualMachineScaleSets/go-test-vmss", - "type": "Microsoft.Compute/virtualMachineScaleSets", - "location": "eastus", - "tags": { - "test": "live" - }, - "sku": { - "name": "Standard_A0", - "tier": "Standard", - "capacity": 1 - }, - "properties": { - "singlePlacementGroup": true, - "upgradePolicy": { - "mode": "Manual", - "automaticOSUpgradePolicy": { - "enableAutomaticOSUpgrade": false, - "useRollingUpgradePolicy": false, - "disableAutomaticRollback": false - } - }, - "virtualMachineProfile": { - "osProfile": { - "computerNamePrefix": "vmss", - "adminUsername": "sample-user", - "windowsConfiguration": { - "provisionVMAgent": true, - "enableAutomaticUpdates": true, - "enableVMAgentPlatformUpdates": false - }, - "secrets": [], - "allowExtensionOperations": true, - "requireGuestProvisionSignal": true - }, - "storageProfile": { - "osDisk": { - "osType": "Windows", - "createOption": "FromImage", - "caching": "None", - "managedDisk": { - "storageAccountType": "Standard_LRS" - }, - "diskSizeGB": 127 - }, - "imageReference": { - "publisher": "MicrosoftWindowsServer", - "offer": "WindowsServer", - "sku": "2019-Datacenter", - "version": "latest" - } - }, - "networkProfile": { - "networkInterfaceConfigurations": [ - { - "name": "go-test-vmss", - "properties": { - "primary": true, - "enableAcceleratedNetworking": false, - "dnsSettings": { - "dnsServers": [] - }, - "enableIPForwarding": true, - "ipConfigurations": [ - { - "name": "go-test-vmss", - "properties": { - "subnet": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/go-test-network/subnets/go-test-subnet" - }, - "privateIPAddressVersion": "IPv4" - } - } - ] - } - } - ] - } - }, - "provisioningState": "Succeeded", - "overprovision": false, - "doNotRunExtensionsOnOverprovisionedVMs": false, - "uniqueId": "00000000-0000-0000-0000-000000000000", - "timeCreated": "2022-08-01T03:26:33.0404068\u002B00:00" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/virtualMachineScaleSets/go-test-vmss?api-version=2022-03-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcompute/v3.0.1 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/00000000-0000-0000-0000-000000000000?p=00000000-0000-0000-0000-000000000000\u0026api-version=2022-03-01", - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 01 Aug 2022 03:31:15 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/00000000-0000-0000-0000-000000000000?p=00000000-0000-0000-0000-000000000000\u0026monitor=true\u0026api-version=2022-03-01", - "Pragma": "no-cache", - "Retry-After": "10", - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/DeleteVMScaleSet3Min;79,Microsoft.Compute/DeleteVMScaleSet30Min;399,Microsoft.Compute/VMScaleSetBatchedVMRequests5Min;1199,Microsoft.Compute/VmssQueuedVMOperations;0", - "x-ms-ratelimit-remaining-subscription-deletes": "14999", - "x-ms-request-charge": "1", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220801T033116Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/00000000-0000-0000-0000-000000000000?p=00000000-0000-0000-0000-000000000000\u0026api-version=2022-03-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcompute/v3.0.1 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 01 Aug 2022 03:31:26 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "11", - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/GetOperation3Min;14991,Microsoft.Compute/GetOperation30Min;29960", - "x-ms-ratelimit-remaining-subscription-reads": "11989", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220801T033126Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "startTime": "2022-08-01T03:31:16.3249572\u002B00:00", - "status": "InProgress", - "name": "00000000-0000-0000-0000-000000000000" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/00000000-0000-0000-0000-000000000000?p=00000000-0000-0000-0000-000000000000\u0026api-version=2022-03-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcompute/v3.0.1 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 01 Aug 2022 03:31:37 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/GetOperation3Min;14992,Microsoft.Compute/GetOperation30Min;29959", - "x-ms-ratelimit-remaining-subscription-reads": "11988", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220801T033138Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "startTime": "2022-08-01T03:31:16.3249572\u002B00:00", - "status": "InProgress", - "name": "00000000-0000-0000-0000-000000000000" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/00000000-0000-0000-0000-000000000000?p=00000000-0000-0000-0000-000000000000\u0026api-version=2022-03-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcompute/v3.0.1 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 01 Aug 2022 03:32:07 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/GetOperation3Min;14992,Microsoft.Compute/GetOperation30Min;29958", - "x-ms-ratelimit-remaining-subscription-reads": "11987", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220801T033208Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "startTime": "2022-08-01T03:31:16.3249572\u002B00:00", - "endTime": "2022-08-01T03:32:04.0755319\u002B00:00", - "status": "Succeeded", - "name": "00000000-0000-0000-0000-000000000000" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 01 Aug 2022 03:32:13 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQxMDMtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14998", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220801T033213Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/resourcemanager/compute/armcompute/testdata/recordings/TestVirtualMachinesClient.json b/sdk/resourcemanager/compute/armcompute/testdata/recordings/TestVirtualMachinesClient.json deleted file mode 100644 index 094080c3b50d..000000000000 --- a/sdk/resourcemanager/compute/armcompute/testdata/recordings/TestVirtualMachinesClient.json +++ /dev/null @@ -1,1979 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.18; Windows_NT)" - }, - "RequestBody": { - "location": "eastus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 01 Aug 2022 03:23:21 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1196", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220801T032322Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "eastus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/go-test-network?api-version=2021-08-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "87", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armnetwork/v1.0.0 (go1.18; Windows_NT)" - }, - "RequestBody": { - "location": "eastus", - "properties": { - "addressSpace": { - "addressPrefixes": [ - "10.1.0.0/16" - ] - } - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2021-08-01", - "Cache-Control": "no-cache", - "Content-Length": "622", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 01 Aug 2022 03:23:24 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "3", - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1195", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220801T032325Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "go-test-network", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/go-test-network", - "etag": "W/\u002200000000-0000-0000-0000-000000000000\u0022", - "type": "Microsoft.Network/virtualNetworks", - "location": "eastus", - "properties": { - "provisioningState": "Updating", - "resourceGuid": "00000000-0000-0000-0000-000000000000", - "addressSpace": { - "addressPrefixes": [ - "10.1.0.0/16" - ] - }, - "subnets": [], - "virtualNetworkPeerings": [], - "enableDdosProtection": false - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armnetwork/v1.0.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 01 Aug 2022 03:23:29 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11998", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220801T032329Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/go-test-network?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armnetwork/v1.0.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 01 Aug 2022 03:23:29 GMT", - "ETag": "W/\u002200000000-0000-0000-0000-000000000000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11997", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220801T032329Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "go-test-network", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/go-test-network", - "etag": "W/\u002200000000-0000-0000-0000-000000000000\u0022", - "type": "Microsoft.Network/virtualNetworks", - "location": "eastus", - "properties": { - "provisioningState": "Succeeded", - "resourceGuid": "00000000-0000-0000-0000-000000000000", - "addressSpace": { - "addressPrefixes": [ - "10.1.0.0/16" - ] - }, - "subnets": [], - "virtualNetworkPeerings": [], - "enableDdosProtection": false - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/go-test-network/subnets/go-test-subnet?api-version=2021-08-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "47", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armnetwork/v1.0.0 (go1.18; Windows_NT)" - }, - "RequestBody": { - "properties": { - "addressPrefix": "10.1.10.0/24" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2021-08-01", - "Cache-Control": "no-cache", - "Content-Length": "550", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 01 Aug 2022 03:23:30 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "3", - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1194", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220801T032330Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "go-test-subnet", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/go-test-network/subnets/go-test-subnet", - "etag": "W/\u002200000000-0000-0000-0000-000000000000\u0022", - "properties": { - "provisioningState": "Updating", - "addressPrefix": "10.1.10.0/24", - "delegations": [], - "privateEndpointNetworkPolicies": "Disabled", - "privateLinkServiceNetworkPolicies": "Enabled" - }, - "type": "Microsoft.Network/virtualNetworks/subnets" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armnetwork/v1.0.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 01 Aug 2022 03:23:33 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11996", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220801T032333Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/go-test-network/subnets/go-test-subnet?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armnetwork/v1.0.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 01 Aug 2022 03:23:34 GMT", - "ETag": "W/\u002200000000-0000-0000-0000-000000000000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11995", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220801T032334Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "go-test-subnet", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/go-test-network/subnets/go-test-subnet", - "etag": "W/\u002200000000-0000-0000-0000-000000000000\u0022", - "properties": { - "provisioningState": "Succeeded", - "addressPrefix": "10.1.10.0/24", - "delegations": [], - "privateEndpointNetworkPolicies": "Disabled", - "privateLinkServiceNetworkPolicies": "Enabled" - }, - "type": "Microsoft.Network/virtualNetworks/subnets" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/publicIPAddresses/go-test-ip?api-version=2021-08-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "72", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armnetwork/v1.0.0 (go1.18; Windows_NT)" - }, - "RequestBody": { - "location": "eastus", - "properties": { - "publicIPAllocationMethod": "Static" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2021-08-01", - "Cache-Control": "no-cache", - "Content-Length": "631", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 01 Aug 2022 03:23:39 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "1", - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1193", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220801T032339Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "go-test-ip", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/publicIPAddresses/go-test-ip", - "etag": "W/\u002200000000-0000-0000-0000-000000000000\u0022", - "location": "eastus", - "properties": { - "provisioningState": "Updating", - "resourceGuid": "00000000-0000-0000-0000-000000000000", - "publicIPAddressVersion": "IPv4", - "publicIPAllocationMethod": "Static", - "idleTimeoutInMinutes": 4, - "ipTags": [] - }, - "type": "Microsoft.Network/publicIPAddresses", - "sku": { - "name": "Basic", - "tier": "Regional" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armnetwork/v1.0.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 01 Aug 2022 03:23:40 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11994", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220801T032340Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/publicIPAddresses/go-test-ip?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armnetwork/v1.0.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 01 Aug 2022 03:23:41 GMT", - "ETag": "W/\u002200000000-0000-0000-0000-000000000000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11993", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220801T032341Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "go-test-ip", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/publicIPAddresses/go-test-ip", - "etag": "W/\u002200000000-0000-0000-0000-000000000000\u0022", - "location": "eastus", - "properties": { - "provisioningState": "Succeeded", - "resourceGuid": "00000000-0000-0000-0000-000000000000", - "ipAddress": "20.121.2.208", - "publicIPAddressVersion": "IPv4", - "publicIPAllocationMethod": "Static", - "idleTimeoutInMinutes": 4, - "ipTags": [] - }, - "type": "Microsoft.Network/publicIPAddresses", - "sku": { - "name": "Basic", - "tier": "Regional" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/networkSecurityGroups/go-test-nsg?api-version=2021-08-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "657", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armnetwork/v1.0.0 (go1.18; Windows_NT)" - }, - "RequestBody": { - "location": "eastus", - "properties": { - "securityRules": [ - { - "name": "sample_inbound_22", - "properties": { - "access": "Allow", - "description": "sample network security group inbound port 22", - "destinationAddressPrefix": "0.0.0.0/0", - "destinationPortRange": "22", - "direction": "Inbound", - "priority": 100, - "protocol": "Tcp", - "sourceAddressPrefix": "0.0.0.0/0", - "sourcePortRange": "*" - } - }, - { - "name": "sample_outbound_22", - "properties": { - "access": "Allow", - "description": "sample network security group outbound port 22", - "destinationAddressPrefix": "0.0.0.0/0", - "destinationPortRange": "22", - "direction": "Outbound", - "priority": 100, - "protocol": "Tcp", - "sourceAddressPrefix": "0.0.0.0/0", - "sourcePortRange": "*" - } - } - ] - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2021-08-01", - "Cache-Control": "no-cache", - "Content-Length": "8563", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 01 Aug 2022 03:23:44 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "3", - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1192", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220801T032344Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "go-test-nsg", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/networkSecurityGroups/go-test-nsg", - "etag": "W/\u002200000000-0000-0000-0000-000000000000\u0022", - "type": "Microsoft.Network/networkSecurityGroups", - "location": "eastus", - "properties": { - "provisioningState": "Updating", - "resourceGuid": "00000000-0000-0000-0000-000000000000", - "securityRules": [ - { - "name": "sample_inbound_22", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/networkSecurityGroups/go-test-nsg/securityRules/sample_inbound_22", - "etag": "W/\u002200000000-0000-0000-0000-000000000000\u0022", - "type": "Microsoft.Network/networkSecurityGroups/securityRules", - "properties": { - "provisioningState": "Updating", - "description": "sample network security group inbound port 22", - "protocol": "Tcp", - "sourcePortRange": "*", - "destinationPortRange": "22", - "sourceAddressPrefix": "0.0.0.0/0", - "destinationAddressPrefix": "0.0.0.0/0", - "access": "Allow", - "priority": 100, - "direction": "Inbound", - "sourcePortRanges": [], - "destinationPortRanges": [], - "sourceAddressPrefixes": [], - "destinationAddressPrefixes": [] - } - }, - { - "name": "sample_outbound_22", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/networkSecurityGroups/go-test-nsg/securityRules/sample_outbound_22", - "etag": "W/\u002200000000-0000-0000-0000-000000000000\u0022", - "type": "Microsoft.Network/networkSecurityGroups/securityRules", - "properties": { - "provisioningState": "Updating", - "description": "sample network security group outbound port 22", - "protocol": "Tcp", - "sourcePortRange": "*", - "destinationPortRange": "22", - "sourceAddressPrefix": "0.0.0.0/0", - "destinationAddressPrefix": "0.0.0.0/0", - "access": "Allow", - "priority": 100, - "direction": "Outbound", - "sourcePortRanges": [], - "destinationPortRanges": [], - "sourceAddressPrefixes": [], - "destinationAddressPrefixes": [] - } - } - ], - "defaultSecurityRules": [ - { - "name": "AllowVnetInBound", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/networkSecurityGroups/go-test-nsg/defaultSecurityRules/AllowVnetInBound", - "etag": "W/\u002200000000-0000-0000-0000-000000000000\u0022", - "type": "Microsoft.Network/networkSecurityGroups/defaultSecurityRules", - "properties": { - "provisioningState": "Updating", - "description": "Allow inbound traffic from all VMs in VNET", - "protocol": "*", - "sourcePortRange": "*", - "destinationPortRange": "*", - "sourceAddressPrefix": "VirtualNetwork", - "destinationAddressPrefix": "VirtualNetwork", - "access": "Allow", - "priority": 65000, - "direction": "Inbound", - "sourcePortRanges": [], - "destinationPortRanges": [], - "sourceAddressPrefixes": [], - "destinationAddressPrefixes": [] - } - }, - { - "name": "AllowAzureLoadBalancerInBound", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/networkSecurityGroups/go-test-nsg/defaultSecurityRules/AllowAzureLoadBalancerInBound", - "etag": "W/\u002200000000-0000-0000-0000-000000000000\u0022", - "type": "Microsoft.Network/networkSecurityGroups/defaultSecurityRules", - "properties": { - "provisioningState": "Updating", - "description": "Allow inbound traffic from azure load balancer", - "protocol": "*", - "sourcePortRange": "*", - "destinationPortRange": "*", - "sourceAddressPrefix": "AzureLoadBalancer", - "destinationAddressPrefix": "*", - "access": "Allow", - "priority": 65001, - "direction": "Inbound", - "sourcePortRanges": [], - "destinationPortRanges": [], - "sourceAddressPrefixes": [], - "destinationAddressPrefixes": [] - } - }, - { - "name": "DenyAllInBound", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/networkSecurityGroups/go-test-nsg/defaultSecurityRules/DenyAllInBound", - "etag": "W/\u002200000000-0000-0000-0000-000000000000\u0022", - "type": "Microsoft.Network/networkSecurityGroups/defaultSecurityRules", - "properties": { - "provisioningState": "Updating", - "description": "Deny all inbound traffic", - "protocol": "*", - "sourcePortRange": "*", - "destinationPortRange": "*", - "sourceAddressPrefix": "*", - "destinationAddressPrefix": "*", - "access": "Deny", - "priority": 65500, - "direction": "Inbound", - "sourcePortRanges": [], - "destinationPortRanges": [], - "sourceAddressPrefixes": [], - "destinationAddressPrefixes": [] - } - }, - { - "name": "AllowVnetOutBound", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/networkSecurityGroups/go-test-nsg/defaultSecurityRules/AllowVnetOutBound", - "etag": "W/\u002200000000-0000-0000-0000-000000000000\u0022", - "type": "Microsoft.Network/networkSecurityGroups/defaultSecurityRules", - "properties": { - "provisioningState": "Updating", - "description": "Allow outbound traffic from all VMs to all VMs in VNET", - "protocol": "*", - "sourcePortRange": "*", - "destinationPortRange": "*", - "sourceAddressPrefix": "VirtualNetwork", - "destinationAddressPrefix": "VirtualNetwork", - "access": "Allow", - "priority": 65000, - "direction": "Outbound", - "sourcePortRanges": [], - "destinationPortRanges": [], - "sourceAddressPrefixes": [], - "destinationAddressPrefixes": [] - } - }, - { - "name": "AllowInternetOutBound", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/networkSecurityGroups/go-test-nsg/defaultSecurityRules/AllowInternetOutBound", - "etag": "W/\u002200000000-0000-0000-0000-000000000000\u0022", - "type": "Microsoft.Network/networkSecurityGroups/defaultSecurityRules", - "properties": { - "provisioningState": "Updating", - "description": "Allow outbound traffic from all VMs to Internet", - "protocol": "*", - "sourcePortRange": "*", - "destinationPortRange": "*", - "sourceAddressPrefix": "*", - "destinationAddressPrefix": "Internet", - "access": "Allow", - "priority": 65001, - "direction": "Outbound", - "sourcePortRanges": [], - "destinationPortRanges": [], - "sourceAddressPrefixes": [], - "destinationAddressPrefixes": [] - } - }, - { - "name": "DenyAllOutBound", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/networkSecurityGroups/go-test-nsg/defaultSecurityRules/DenyAllOutBound", - "etag": "W/\u002200000000-0000-0000-0000-000000000000\u0022", - "type": "Microsoft.Network/networkSecurityGroups/defaultSecurityRules", - "properties": { - "provisioningState": "Updating", - "description": "Deny all outbound traffic", - "protocol": "*", - "sourcePortRange": "*", - "destinationPortRange": "*", - "sourceAddressPrefix": "*", - "destinationAddressPrefix": "*", - "access": "Deny", - "priority": 65500, - "direction": "Outbound", - "sourcePortRanges": [], - "destinationPortRanges": [], - "sourceAddressPrefixes": [], - "destinationAddressPrefixes": [] - } - } - ] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armnetwork/v1.0.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 01 Aug 2022 03:23:47 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11992", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220801T032348Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/networkSecurityGroups/go-test-nsg?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armnetwork/v1.0.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 01 Aug 2022 03:23:48 GMT", - "ETag": "W/\u002200000000-0000-0000-0000-000000000000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11991", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220801T032348Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "go-test-nsg", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/networkSecurityGroups/go-test-nsg", - "etag": "W/\u002200000000-0000-0000-0000-000000000000\u0022", - "type": "Microsoft.Network/networkSecurityGroups", - "location": "eastus", - "properties": { - "provisioningState": "Succeeded", - "resourceGuid": "00000000-0000-0000-0000-000000000000", - "securityRules": [ - { - "name": "sample_inbound_22", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/networkSecurityGroups/go-test-nsg/securityRules/sample_inbound_22", - "etag": "W/\u002200000000-0000-0000-0000-000000000000\u0022", - "type": "Microsoft.Network/networkSecurityGroups/securityRules", - "properties": { - "provisioningState": "Succeeded", - "description": "sample network security group inbound port 22", - "protocol": "Tcp", - "sourcePortRange": "*", - "destinationPortRange": "22", - "sourceAddressPrefix": "0.0.0.0/0", - "destinationAddressPrefix": "0.0.0.0/0", - "access": "Allow", - "priority": 100, - "direction": "Inbound", - "sourcePortRanges": [], - "destinationPortRanges": [], - "sourceAddressPrefixes": [], - "destinationAddressPrefixes": [] - } - }, - { - "name": "sample_outbound_22", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/networkSecurityGroups/go-test-nsg/securityRules/sample_outbound_22", - "etag": "W/\u002200000000-0000-0000-0000-000000000000\u0022", - "type": "Microsoft.Network/networkSecurityGroups/securityRules", - "properties": { - "provisioningState": "Succeeded", - "description": "sample network security group outbound port 22", - "protocol": "Tcp", - "sourcePortRange": "*", - "destinationPortRange": "22", - "sourceAddressPrefix": "0.0.0.0/0", - "destinationAddressPrefix": "0.0.0.0/0", - "access": "Allow", - "priority": 100, - "direction": "Outbound", - "sourcePortRanges": [], - "destinationPortRanges": [], - "sourceAddressPrefixes": [], - "destinationAddressPrefixes": [] - } - } - ], - "defaultSecurityRules": [ - { - "name": "AllowVnetInBound", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/networkSecurityGroups/go-test-nsg/defaultSecurityRules/AllowVnetInBound", - "etag": "W/\u002200000000-0000-0000-0000-000000000000\u0022", - "type": "Microsoft.Network/networkSecurityGroups/defaultSecurityRules", - "properties": { - "provisioningState": "Succeeded", - "description": "Allow inbound traffic from all VMs in VNET", - "protocol": "*", - "sourcePortRange": "*", - "destinationPortRange": "*", - "sourceAddressPrefix": "VirtualNetwork", - "destinationAddressPrefix": "VirtualNetwork", - "access": "Allow", - "priority": 65000, - "direction": "Inbound", - "sourcePortRanges": [], - "destinationPortRanges": [], - "sourceAddressPrefixes": [], - "destinationAddressPrefixes": [] - } - }, - { - "name": "AllowAzureLoadBalancerInBound", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/networkSecurityGroups/go-test-nsg/defaultSecurityRules/AllowAzureLoadBalancerInBound", - "etag": "W/\u002200000000-0000-0000-0000-000000000000\u0022", - "type": "Microsoft.Network/networkSecurityGroups/defaultSecurityRules", - "properties": { - "provisioningState": "Succeeded", - "description": "Allow inbound traffic from azure load balancer", - "protocol": "*", - "sourcePortRange": "*", - "destinationPortRange": "*", - "sourceAddressPrefix": "AzureLoadBalancer", - "destinationAddressPrefix": "*", - "access": "Allow", - "priority": 65001, - "direction": "Inbound", - "sourcePortRanges": [], - "destinationPortRanges": [], - "sourceAddressPrefixes": [], - "destinationAddressPrefixes": [] - } - }, - { - "name": "DenyAllInBound", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/networkSecurityGroups/go-test-nsg/defaultSecurityRules/DenyAllInBound", - "etag": "W/\u002200000000-0000-0000-0000-000000000000\u0022", - "type": "Microsoft.Network/networkSecurityGroups/defaultSecurityRules", - "properties": { - "provisioningState": "Succeeded", - "description": "Deny all inbound traffic", - "protocol": "*", - "sourcePortRange": "*", - "destinationPortRange": "*", - "sourceAddressPrefix": "*", - "destinationAddressPrefix": "*", - "access": "Deny", - "priority": 65500, - "direction": "Inbound", - "sourcePortRanges": [], - "destinationPortRanges": [], - "sourceAddressPrefixes": [], - "destinationAddressPrefixes": [] - } - }, - { - "name": "AllowVnetOutBound", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/networkSecurityGroups/go-test-nsg/defaultSecurityRules/AllowVnetOutBound", - "etag": "W/\u002200000000-0000-0000-0000-000000000000\u0022", - "type": "Microsoft.Network/networkSecurityGroups/defaultSecurityRules", - "properties": { - "provisioningState": "Succeeded", - "description": "Allow outbound traffic from all VMs to all VMs in VNET", - "protocol": "*", - "sourcePortRange": "*", - "destinationPortRange": "*", - "sourceAddressPrefix": "VirtualNetwork", - "destinationAddressPrefix": "VirtualNetwork", - "access": "Allow", - "priority": 65000, - "direction": "Outbound", - "sourcePortRanges": [], - "destinationPortRanges": [], - "sourceAddressPrefixes": [], - "destinationAddressPrefixes": [] - } - }, - { - "name": "AllowInternetOutBound", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/networkSecurityGroups/go-test-nsg/defaultSecurityRules/AllowInternetOutBound", - "etag": "W/\u002200000000-0000-0000-0000-000000000000\u0022", - "type": "Microsoft.Network/networkSecurityGroups/defaultSecurityRules", - "properties": { - "provisioningState": "Succeeded", - "description": "Allow outbound traffic from all VMs to Internet", - "protocol": "*", - "sourcePortRange": "*", - "destinationPortRange": "*", - "sourceAddressPrefix": "*", - "destinationAddressPrefix": "Internet", - "access": "Allow", - "priority": 65001, - "direction": "Outbound", - "sourcePortRanges": [], - "destinationPortRanges": [], - "sourceAddressPrefixes": [], - "destinationAddressPrefixes": [] - } - }, - { - "name": "DenyAllOutBound", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/networkSecurityGroups/go-test-nsg/defaultSecurityRules/DenyAllOutBound", - "etag": "W/\u002200000000-0000-0000-0000-000000000000\u0022", - "type": "Microsoft.Network/networkSecurityGroups/defaultSecurityRules", - "properties": { - "provisioningState": "Succeeded", - "description": "Deny all outbound traffic", - "protocol": "*", - "sourcePortRange": "*", - "destinationPortRange": "*", - "sourceAddressPrefix": "*", - "destinationAddressPrefix": "*", - "access": "Deny", - "priority": 65500, - "direction": "Outbound", - "sourcePortRanges": [], - "destinationPortRanges": [], - "sourceAddressPrefixes": [], - "destinationAddressPrefixes": [] - } - } - ] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/networkInterfaces/go-test-nic?api-version=2021-08-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "655", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armnetwork/v1.0.0 (go1.18; Windows_NT)" - }, - "RequestBody": { - "location": "eastus", - "properties": { - "ipConfigurations": [ - { - "name": "ipConfig", - "properties": { - "privateIPAllocationMethod": "Dynamic", - "publicIPAddress": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/publicIPAddresses/go-test-ip" - }, - "subnet": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/go-test-network/subnets/go-test-subnet" - } - } - } - ], - "networkSecurityGroup": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/networkSecurityGroups/go-test-nsg" - } - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2021-08-01", - "Cache-Control": "no-cache", - "Content-Length": "2115", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 01 Aug 2022 03:23:52 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1191", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220801T032352Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "go-test-nic", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/networkInterfaces/go-test-nic", - "etag": "W/\u002200000000-0000-0000-0000-000000000000\u0022", - "properties": { - "provisioningState": "Succeeded", - "resourceGuid": "00000000-0000-0000-0000-000000000000", - "ipConfigurations": [ - { - "name": "ipConfig", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/networkInterfaces/go-test-nic/ipConfigurations/ipConfig", - "etag": "W/\u002200000000-0000-0000-0000-000000000000\u0022", - "type": "Microsoft.Network/networkInterfaces/ipConfigurations", - "properties": { - "provisioningState": "Succeeded", - "privateIPAddress": "10.1.10.4", - "privateIPAllocationMethod": "Dynamic", - "publicIPAddress": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/publicIPAddresses/go-test-ip" - }, - "subnet": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/go-test-network/subnets/go-test-subnet" - }, - "primary": true, - "privateIPAddressVersion": "IPv4" - } - } - ], - "dnsSettings": { - "dnsServers": [], - "appliedDnsServers": [], - "internalDomainNameSuffix": "znumdouz5aue3orly2huwn21dh.bx.internal.cloudapp.net" - }, - "enableAcceleratedNetworking": false, - "vnetEncryptionSupported": false, - "enableIPForwarding": false, - "networkSecurityGroup": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/networkSecurityGroups/go-test-nsg" - }, - "hostedWorkloads": [], - "tapConfigurations": [], - "nicType": "Standard" - }, - "type": "Microsoft.Network/networkInterfaces", - "location": "eastus", - "kind": "Regular" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armnetwork/v1.0.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 01 Aug 2022 03:23:52 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11990", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220801T032353Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/networkInterfaces/go-test-nic?api-version=2021-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armnetwork/v1.0.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 01 Aug 2022 03:23:53 GMT", - "ETag": "W/\u002200000000-0000-0000-0000-000000000000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11989", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220801T032353Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "go-test-nic", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/networkInterfaces/go-test-nic", - "etag": "W/\u002200000000-0000-0000-0000-000000000000\u0022", - "properties": { - "provisioningState": "Succeeded", - "resourceGuid": "00000000-0000-0000-0000-000000000000", - "ipConfigurations": [ - { - "name": "ipConfig", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/networkInterfaces/go-test-nic/ipConfigurations/ipConfig", - "etag": "W/\u002200000000-0000-0000-0000-000000000000\u0022", - "type": "Microsoft.Network/networkInterfaces/ipConfigurations", - "properties": { - "provisioningState": "Succeeded", - "privateIPAddress": "10.1.10.4", - "privateIPAllocationMethod": "Dynamic", - "publicIPAddress": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/publicIPAddresses/go-test-ip" - }, - "subnet": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/go-test-network/subnets/go-test-subnet" - }, - "primary": true, - "privateIPAddressVersion": "IPv4" - } - } - ], - "dnsSettings": { - "dnsServers": [], - "appliedDnsServers": [], - "internalDomainNameSuffix": "znumdouz5aue3orly2huwn21dh.bx.internal.cloudapp.net" - }, - "enableAcceleratedNetworking": false, - "vnetEncryptionSupported": false, - "enableIPForwarding": false, - "networkSecurityGroup": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/networkSecurityGroups/go-test-nsg" - }, - "hostedWorkloads": [], - "tapConfigurations": [], - "nicType": "Standard" - }, - "type": "Microsoft.Network/networkInterfaces", - "location": "eastus", - "kind": "Regular" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/virtualMachines/go-test-vm?api-version=2022-03-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "681", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcompute/v3.0.1 (go1.18; Windows_NT)" - }, - "RequestBody": { - "identity": { - "type": "None" - }, - "location": "eastus", - "properties": { - "hardwareProfile": { - "vmSize": "Standard_F2s" - }, - "networkProfile": { - "networkInterfaces": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/networkInterfaces/go-test-nic" - } - ] - }, - "osProfile": { - "adminPassword": "Password01!@#", - "adminUsername": "sample-user", - "computerName": "sample-compute" - }, - "storageProfile": { - "imageReference": { - "offer": "WindowsServer", - "publisher": "MicrosoftWindowsServer", - "sku": "2019-Datacenter", - "version": "latest" - }, - "osDisk": { - "caching": "ReadWrite", - "createOption": "FromImage", - "managedDisk": { - "storageAccountType": "Standard_LRS" - }, - "name": "go-test-disk" - } - } - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/00000000-0000-0000-0000-000000000000?p=00000000-0000-0000-0000-000000000000\u0026api-version=2022-03-01", - "Cache-Control": "no-cache", - "Content-Length": "1787", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 01 Aug 2022 03:23:59 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "10", - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/PutVM3Min;239,Microsoft.Compute/PutVM30Min;1197", - "x-ms-ratelimit-remaining-subscription-writes": "1190", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220801T032359Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "go-test-vm", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/virtualMachines/go-test-vm", - "type": "Microsoft.Compute/virtualMachines", - "location": "eastus", - "properties": { - "vmId": "00000000-0000-0000-0000-000000000000", - "hardwareProfile": { - "vmSize": "Standard_F2s" - }, - "storageProfile": { - "imageReference": { - "publisher": "MicrosoftWindowsServer", - "offer": "WindowsServer", - "sku": "2019-Datacenter", - "version": "latest", - "exactVersion": "17763.3165.220706" - }, - "osDisk": { - "osType": "Windows", - "name": "go-test-disk", - "createOption": "FromImage", - "caching": "ReadWrite", - "managedDisk": { - "storageAccountType": "Standard_LRS" - }, - "deleteOption": "Detach", - "diskSizeGB": 127 - }, - "dataDisks": [] - }, - "osProfile": { - "computerName": "sample-compute", - "adminUsername": "sample-user", - "windowsConfiguration": { - "provisionVMAgent": true, - "enableAutomaticUpdates": true, - "patchSettings": { - "patchMode": "AutomaticByOS", - "assessmentMode": "ImageDefault" - }, - "enableVMAgentPlatformUpdates": false - }, - "secrets": [], - "allowExtensionOperations": true, - "requireGuestProvisionSignal": true - }, - "networkProfile": { - "networkInterfaces": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/networkInterfaces/go-test-nic" - } - ] - }, - "provisioningState": "Creating", - "timeCreated": "2022-08-01T03:23:58.0698436\u002B00:00" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/00000000-0000-0000-0000-000000000000?p=00000000-0000-0000-0000-000000000000\u0026api-version=2022-03-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcompute/v3.0.1 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 01 Aug 2022 03:24:09 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "50", - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/GetOperation3Min;14999,Microsoft.Compute/GetOperation30Min;29977", - "x-ms-ratelimit-remaining-subscription-reads": "11988", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220801T032410Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "startTime": "2022-08-01T03:23:55.4604335\u002B00:00", - "status": "InProgress", - "name": "00000000-0000-0000-0000-000000000000" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/00000000-0000-0000-0000-000000000000?p=00000000-0000-0000-0000-000000000000\u0026api-version=2022-03-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcompute/v3.0.1 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 01 Aug 2022 03:25:00 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/GetOperation3Min;14998,Microsoft.Compute/GetOperation30Min;29976", - "x-ms-ratelimit-remaining-subscription-reads": "11987", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220801T032500Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "startTime": "2022-08-01T03:23:55.4604335\u002B00:00", - "status": "InProgress", - "name": "00000000-0000-0000-0000-000000000000" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/00000000-0000-0000-0000-000000000000?p=00000000-0000-0000-0000-000000000000\u0026api-version=2022-03-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcompute/v3.0.1 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 01 Aug 2022 03:25:29 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/GetOperation3Min;14997,Microsoft.Compute/GetOperation30Min;29975", - "x-ms-ratelimit-remaining-subscription-reads": "11986", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220801T032530Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "startTime": "2022-08-01T03:23:55.4604335\u002B00:00", - "endTime": "2022-08-01T03:25:28.727196\u002B00:00", - "status": "Succeeded", - "name": "00000000-0000-0000-0000-000000000000" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/virtualMachines/go-test-vm?api-version=2022-03-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcompute/v3.0.1 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 01 Aug 2022 03:25:30 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/LowCostGet3Min;3999,Microsoft.Compute/LowCostGet30Min;31990", - "x-ms-ratelimit-remaining-subscription-reads": "11985", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220801T032531Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "go-test-vm", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/virtualMachines/go-test-vm", - "type": "Microsoft.Compute/virtualMachines", - "location": "eastus", - "properties": { - "vmId": "00000000-0000-0000-0000-000000000000", - "hardwareProfile": { - "vmSize": "Standard_F2s" - }, - "storageProfile": { - "imageReference": { - "publisher": "MicrosoftWindowsServer", - "offer": "WindowsServer", - "sku": "2019-Datacenter", - "version": "latest", - "exactVersion": "17763.3165.220706" - }, - "osDisk": { - "osType": "Windows", - "name": "go-test-disk", - "createOption": "FromImage", - "caching": "ReadWrite", - "managedDisk": { - "storageAccountType": "Standard_LRS", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/disks/go-test-disk" - }, - "deleteOption": "Detach", - "diskSizeGB": 127 - }, - "dataDisks": [] - }, - "osProfile": { - "computerName": "sample-compute", - "adminUsername": "sample-user", - "windowsConfiguration": { - "provisionVMAgent": true, - "enableAutomaticUpdates": true, - "patchSettings": { - "patchMode": "AutomaticByOS", - "assessmentMode": "ImageDefault" - }, - "enableVMAgentPlatformUpdates": false - }, - "secrets": [], - "allowExtensionOperations": true, - "requireGuestProvisionSignal": true - }, - "networkProfile": { - "networkInterfaces": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/networkInterfaces/go-test-nic" - } - ] - }, - "provisioningState": "Succeeded", - "timeCreated": "2022-08-01T03:23:58.0698436\u002B00:00" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/virtualMachines/go-test-vm?api-version=2022-03-01", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "24", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcompute/v3.0.1 (go1.18; Windows_NT)" - }, - "RequestBody": { - "tags": { - "tag": "value" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 01 Aug 2022 03:25:33 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/PutVM3Min;238,Microsoft.Compute/PutVM30Min;1196", - "x-ms-ratelimit-remaining-subscription-writes": "1189", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220801T032534Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "go-test-vm", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/virtualMachines/go-test-vm", - "type": "Microsoft.Compute/virtualMachines", - "location": "eastus", - "tags": { - "tag": "value" - }, - "properties": { - "vmId": "00000000-0000-0000-0000-000000000000", - "hardwareProfile": { - "vmSize": "Standard_F2s" - }, - "storageProfile": { - "imageReference": { - "publisher": "MicrosoftWindowsServer", - "offer": "WindowsServer", - "sku": "2019-Datacenter", - "version": "latest", - "exactVersion": "17763.3165.220706" - }, - "osDisk": { - "osType": "Windows", - "name": "go-test-disk", - "createOption": "FromImage", - "caching": "ReadWrite", - "managedDisk": { - "storageAccountType": "Standard_LRS", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/disks/go-test-disk" - }, - "deleteOption": "Detach", - "diskSizeGB": 127 - }, - "dataDisks": [] - }, - "osProfile": { - "computerName": "sample-compute", - "adminUsername": "sample-user", - "windowsConfiguration": { - "provisionVMAgent": true, - "enableAutomaticUpdates": true, - "patchSettings": { - "patchMode": "AutomaticByOS", - "assessmentMode": "ImageDefault" - }, - "enableVMAgentPlatformUpdates": false - }, - "secrets": [], - "allowExtensionOperations": true, - "requireGuestProvisionSignal": true - }, - "networkProfile": { - "networkInterfaces": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/networkInterfaces/go-test-nic" - } - ] - }, - "provisioningState": "Updating", - "timeCreated": "2022-08-01T03:23:58.0698436\u002B00:00" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/virtualMachines/go-test-vm?api-version=2022-03-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcompute/v3.0.1 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 01 Aug 2022 03:25:34 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/LowCostGet3Min;3997,Microsoft.Compute/LowCostGet30Min;31988", - "x-ms-ratelimit-remaining-subscription-reads": "11984", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220801T032535Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "go-test-vm", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/virtualMachines/go-test-vm", - "type": "Microsoft.Compute/virtualMachines", - "location": "eastus", - "tags": { - "tag": "value" - }, - "properties": { - "vmId": "00000000-0000-0000-0000-000000000000", - "hardwareProfile": { - "vmSize": "Standard_F2s" - }, - "storageProfile": { - "imageReference": { - "publisher": "MicrosoftWindowsServer", - "offer": "WindowsServer", - "sku": "2019-Datacenter", - "version": "latest", - "exactVersion": "17763.3165.220706" - }, - "osDisk": { - "osType": "Windows", - "name": "go-test-disk", - "createOption": "FromImage", - "caching": "ReadWrite", - "managedDisk": { - "storageAccountType": "Standard_LRS", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/disks/go-test-disk" - }, - "deleteOption": "Detach", - "diskSizeGB": 127 - }, - "dataDisks": [] - }, - "osProfile": { - "computerName": "sample-compute", - "adminUsername": "sample-user", - "windowsConfiguration": { - "provisionVMAgent": true, - "enableAutomaticUpdates": true, - "patchSettings": { - "patchMode": "AutomaticByOS", - "assessmentMode": "ImageDefault" - }, - "enableVMAgentPlatformUpdates": false - }, - "secrets": [], - "allowExtensionOperations": true, - "requireGuestProvisionSignal": true - }, - "networkProfile": { - "networkInterfaces": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/networkInterfaces/go-test-nic" - } - ] - }, - "provisioningState": "Succeeded", - "timeCreated": "2022-08-01T03:23:58.0698436\u002B00:00" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/virtualMachines/go-test-vm?api-version=2022-03-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcompute/v3.0.1 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 01 Aug 2022 03:25:34 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/LowCostGet3Min;3996,Microsoft.Compute/LowCostGet30Min;31987", - "x-ms-ratelimit-remaining-subscription-reads": "11983", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220801T032535Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "go-test-vm", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/virtualMachines/go-test-vm", - "type": "Microsoft.Compute/virtualMachines", - "location": "eastus", - "tags": { - "tag": "value" - }, - "properties": { - "vmId": "00000000-0000-0000-0000-000000000000", - "hardwareProfile": { - "vmSize": "Standard_F2s" - }, - "storageProfile": { - "imageReference": { - "publisher": "MicrosoftWindowsServer", - "offer": "WindowsServer", - "sku": "2019-Datacenter", - "version": "latest", - "exactVersion": "17763.3165.220706" - }, - "osDisk": { - "osType": "Windows", - "name": "go-test-disk", - "createOption": "FromImage", - "caching": "ReadWrite", - "managedDisk": { - "storageAccountType": "Standard_LRS", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/disks/go-test-disk" - }, - "deleteOption": "Detach", - "diskSizeGB": 127 - }, - "dataDisks": [] - }, - "osProfile": { - "computerName": "sample-compute", - "adminUsername": "sample-user", - "windowsConfiguration": { - "provisionVMAgent": true, - "enableAutomaticUpdates": true, - "patchSettings": { - "patchMode": "AutomaticByOS", - "assessmentMode": "ImageDefault" - }, - "enableVMAgentPlatformUpdates": false - }, - "secrets": [], - "allowExtensionOperations": true, - "requireGuestProvisionSignal": true - }, - "networkProfile": { - "networkInterfaces": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/networkInterfaces/go-test-nic" - } - ] - }, - "provisioningState": "Succeeded", - "timeCreated": "2022-08-01T03:23:58.0698436\u002B00:00" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/virtualMachines/go-test-vm?api-version=2022-03-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcompute/v3.0.1 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/00000000-0000-0000-0000-000000000000?p=00000000-0000-0000-0000-000000000000\u0026api-version=2022-03-01", - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 01 Aug 2022 03:25:36 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/00000000-0000-0000-0000-000000000000?p=00000000-0000-0000-0000-000000000000\u0026monitor=true\u0026api-version=2022-03-01", - "Pragma": "no-cache", - "Retry-After": "10", - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/DeleteVM3Min;239,Microsoft.Compute/DeleteVM30Min;1198", - "x-ms-ratelimit-remaining-subscription-deletes": "14997", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220801T032537Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/00000000-0000-0000-0000-000000000000?p=00000000-0000-0000-0000-000000000000\u0026api-version=2022-03-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcompute/v3.0.1 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 01 Aug 2022 03:25:47 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "30", - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/GetOperation3Min;14996,Microsoft.Compute/GetOperation30Min;29974", - "x-ms-ratelimit-remaining-subscription-reads": "11982", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220801T032547Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "startTime": "2022-08-01T03:25:36.8210679\u002B00:00", - "status": "InProgress", - "name": "00000000-0000-0000-0000-000000000000" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/eastus/operations/00000000-0000-0000-0000-000000000000?p=00000000-0000-0000-0000-000000000000\u0026api-version=2022-03-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcompute/v3.0.1 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 01 Aug 2022 03:26:16 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/GetOperation3Min;14994,Microsoft.Compute/GetOperation30Min;29972", - "x-ms-ratelimit-remaining-subscription-reads": "11981", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220801T032617Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "startTime": "2022-08-01T03:25:36.8210679\u002B00:00", - "endTime": "2022-08-01T03:26:11.9933329\u002B00:00", - "status": "Succeeded", - "name": "00000000-0000-0000-0000-000000000000" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 01 Aug 2022 03:26:20 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ2MjAtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14996", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220801T032620Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/resourcemanager/compute/armcompute/virtualmachines_client_live_test.go b/sdk/resourcemanager/compute/armcompute/virtualmachines_client_live_test.go index aa15d43da824..01d54b7ab595 100644 --- a/sdk/resourcemanager/compute/armcompute/virtualmachines_client_live_test.go +++ b/sdk/resourcemanager/compute/armcompute/virtualmachines_client_live_test.go @@ -14,7 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v3" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v4" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" "github.com/stretchr/testify/suite" diff --git a/sdk/resourcemanager/compute/armcompute/virtualmachinescalesets_client_live_test.go b/sdk/resourcemanager/compute/armcompute/virtualmachinescalesets_client_live_test.go index 1bcdfc99202e..e791fbfeef4e 100644 --- a/sdk/resourcemanager/compute/armcompute/virtualmachinescalesets_client_live_test.go +++ b/sdk/resourcemanager/compute/armcompute/virtualmachinescalesets_client_live_test.go @@ -14,7 +14,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" - "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v3" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v4" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/testutil" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork" "github.com/stretchr/testify/suite" diff --git a/sdk/resourcemanager/containerregistry/armcontainerregistry/assets.json b/sdk/resourcemanager/containerregistry/armcontainerregistry/assets.json new file mode 100644 index 000000000000..3f02091feaaa --- /dev/null +++ b/sdk/resourcemanager/containerregistry/armcontainerregistry/assets.json @@ -0,0 +1,6 @@ +{ + "AssetsRepo": "Azure/azure-sdk-assets", + "AssetsRepoPrefixPath": "go", + "TagPrefix": "go/resourcemanager/containerregistry/armcontainerregistry", + "Tag": "go/resourcemanager/containerregistry/armcontainerregistry_0f96d18b30" +} diff --git a/sdk/resourcemanager/containerregistry/armcontainerregistry/containerregistry_build_live_test.go b/sdk/resourcemanager/containerregistry/armcontainerregistry/containerregistry_build_live_test.go new file mode 100644 index 000000000000..a25ec4047297 --- /dev/null +++ b/sdk/resourcemanager/containerregistry/armcontainerregistry/containerregistry_build_live_test.go @@ -0,0 +1,384 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armcontainerregistry_test + +import ( + "context" + "fmt" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/testutil" + "github.com/stretchr/testify/suite" +) + +type ContainerregistryBuildTestSuite struct { + suite.Suite + + ctx context.Context + cred azcore.TokenCredential + options *arm.ClientOptions + agentPoolName string + registryName string + taskName string + taskRunName string + location string + resourceGroupName string + subscriptionId string +} + +func (testsuite *ContainerregistryBuildTestSuite) SetupSuite() { + testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/containerregistry/armcontainerregistry/testdata") + testsuite.ctx = context.Background() + testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) + testsuite.agentPoolName = testutil.GenerateAlphaNumericID(testsuite.T(), "agentpooln", 6) + testsuite.registryName = testutil.GenerateAlphaNumericID(testsuite.T(), "registryna2", 6) + testsuite.taskName = testutil.GenerateAlphaNumericID(testsuite.T(), "taskname", 6) + testsuite.taskRunName = testutil.GenerateAlphaNumericID(testsuite.T(), "taskrunnam", 6) + testsuite.location = testutil.GetEnv("LOCATION", "eastus") + testsuite.resourceGroupName = testutil.GetEnv("RESOURCE_GROUP_NAME", "scenarioTestTempGroup") + testsuite.subscriptionId = testutil.GetEnv("AZURE_SUBSCRIPTION_ID", "00000000-0000-0000-0000-000000000000") + + resourceGroup, _, err := testutil.CreateResourceGroup(testsuite.ctx, testsuite.subscriptionId, testsuite.cred, testsuite.options, testsuite.location) + testsuite.Require().NoError(err) + testsuite.resourceGroupName = *resourceGroup.Name + testsuite.Prepare() +} + +func (testsuite *ContainerregistryBuildTestSuite) TearDownSuite() { + _, err := testutil.DeleteResourceGroup(testsuite.ctx, testsuite.subscriptionId, testsuite.cred, testsuite.options, testsuite.resourceGroupName) + testsuite.Require().NoError(err) + testutil.StopRecording(testsuite.T()) +} + +func TestContainerregistryBuildTestSuite(t *testing.T) { + suite.Run(t, new(ContainerregistryBuildTestSuite)) +} + +func (testsuite *ContainerregistryBuildTestSuite) Prepare() { + var err error + // From step Registries_Create2 + fmt.Println("Call operation: Registries_Create") + registriesClient, err := armcontainerregistry.NewRegistriesClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) + testsuite.Require().NoError(err) + registriesClientCreateResponsePoller, err := registriesClient.BeginCreate(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, armcontainerregistry.Registry{ + Location: to.Ptr(testsuite.location), + Properties: &armcontainerregistry.RegistryProperties{ + AdminUserEnabled: to.Ptr(true), + }, + SKU: &armcontainerregistry.SKU{ + Name: to.Ptr(armcontainerregistry.SKUNamePremium), + }, + }, nil) + testsuite.Require().NoError(err) + _, err = testutil.PollForTest(testsuite.ctx, registriesClientCreateResponsePoller) + testsuite.Require().NoError(err) +} + +// Microsoft.ContainerRegistry/registries/agentPools +func (testsuite *ContainerregistryBuildTestSuite) TestAgentpools() { + var err error + // From step AgentPools_Create + fmt.Println("Call operation: AgentPools_Create") + agentPoolsClient, err := armcontainerregistry.NewAgentPoolsClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) + testsuite.Require().NoError(err) + agentPoolsClientCreateResponsePoller, err := agentPoolsClient.BeginCreate(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, testsuite.agentPoolName, armcontainerregistry.AgentPool{ + Location: to.Ptr(testsuite.location), + Tags: map[string]*string{ + "key": to.Ptr("value"), + }, + Properties: &armcontainerregistry.AgentPoolProperties{ + Count: to.Ptr[int32](1), + OS: to.Ptr(armcontainerregistry.OSLinux), + Tier: to.Ptr("S1"), + }, + }, nil) + testsuite.Require().NoError(err) + _, err = testutil.PollForTest(testsuite.ctx, agentPoolsClientCreateResponsePoller) + testsuite.Require().NoError(err) + + // From step AgentPools_List + fmt.Println("Call operation: AgentPools_List") + agentPoolsClientNewListPager := agentPoolsClient.NewListPager(testsuite.resourceGroupName, testsuite.registryName, nil) + for agentPoolsClientNewListPager.More() { + _, err := agentPoolsClientNewListPager.NextPage(testsuite.ctx) + testsuite.Require().NoError(err) + break + } + + // From step AgentPools_Get + fmt.Println("Call operation: AgentPools_Get") + _, err = agentPoolsClient.Get(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, testsuite.agentPoolName, nil) + testsuite.Require().NoError(err) + + // From step AgentPools_Update + fmt.Println("Call operation: AgentPools_Update") + agentPoolsClientUpdateResponsePoller, err := agentPoolsClient.BeginUpdate(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, testsuite.agentPoolName, armcontainerregistry.AgentPoolUpdateParameters{ + Properties: &armcontainerregistry.AgentPoolPropertiesUpdateParameters{ + Count: to.Ptr[int32](1), + }, + }, nil) + testsuite.Require().NoError(err) + _, err = testutil.PollForTest(testsuite.ctx, agentPoolsClientUpdateResponsePoller) + testsuite.Require().NoError(err) + + // From step AgentPools_GetQueueStatus + fmt.Println("Call operation: AgentPools_GetQueueStatus") + _, err = agentPoolsClient.GetQueueStatus(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, testsuite.agentPoolName, nil) + testsuite.Require().NoError(err) + + // From step AgentPools_Delete + fmt.Println("Call operation: AgentPools_Delete") + agentPoolsClientDeleteResponsePoller, err := agentPoolsClient.BeginDelete(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, testsuite.agentPoolName, nil) + testsuite.Require().NoError(err) + _, err = testutil.PollForTest(testsuite.ctx, agentPoolsClientDeleteResponsePoller) + testsuite.Require().NoError(err) +} + +// Microsoft.ContainerRegistry/registries/tasks +func (testsuite *ContainerregistryBuildTestSuite) TestTasks() { + var runId string + var err error + // From step Tasks_Create + fmt.Println("Call operation: Tasks_Create") + tasksClient, err := armcontainerregistry.NewTasksClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) + testsuite.Require().NoError(err) + tasksClientCreateResponsePoller, err := tasksClient.BeginCreate(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, testsuite.taskName, armcontainerregistry.Task{ + Location: to.Ptr(testsuite.location), + Tags: map[string]*string{ + "testkey": to.Ptr("value"), + }, + Properties: &armcontainerregistry.TaskProperties{ + AgentConfiguration: &armcontainerregistry.AgentProperties{ + CPU: to.Ptr[int32](2), + }, + IsSystemTask: to.Ptr(false), + Platform: &armcontainerregistry.PlatformProperties{ + Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), + OS: to.Ptr(armcontainerregistry.OSLinux), + }, + Status: to.Ptr(armcontainerregistry.TaskStatusEnabled), + Step: &armcontainerregistry.DockerBuildStep{ + Type: to.Ptr(armcontainerregistry.StepTypeDocker), + ContextPath: to.Ptr("https://github.com/SteveLasker/node-helloworld"), + DockerFilePath: to.Ptr("DockerFile"), + ImageNames: []*string{ + to.Ptr("testtask:v1")}, + IsPushEnabled: to.Ptr(true), + NoCache: to.Ptr(false), + }, + Trigger: &armcontainerregistry.TriggerProperties{ + BaseImageTrigger: &armcontainerregistry.BaseImageTrigger{ + Name: to.Ptr("myBaseImageTrigger"), + BaseImageTriggerType: to.Ptr(armcontainerregistry.BaseImageTriggerTypeRuntime), + Status: to.Ptr(armcontainerregistry.TriggerStatusEnabled), + UpdateTriggerPayloadType: to.Ptr(armcontainerregistry.UpdateTriggerPayloadTypeDefault), + }, + }, + }, + }, nil) + testsuite.Require().NoError(err) + _, err = testutil.PollForTest(testsuite.ctx, tasksClientCreateResponsePoller) + testsuite.Require().NoError(err) + + // From step Tasks_List + fmt.Println("Call operation: Tasks_List") + tasksClientNewListPager := tasksClient.NewListPager(testsuite.resourceGroupName, testsuite.registryName, nil) + for tasksClientNewListPager.More() { + _, err := tasksClientNewListPager.NextPage(testsuite.ctx) + testsuite.Require().NoError(err) + break + } + + // From step Tasks_Get + fmt.Println("Call operation: Tasks_Get") + _, err = tasksClient.Get(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, testsuite.taskName, nil) + testsuite.Require().NoError(err) + + // From step Tasks_Update + fmt.Println("Call operation: Tasks_Update") + tasksClientUpdateResponsePoller, err := tasksClient.BeginUpdate(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, testsuite.taskName, armcontainerregistry.TaskUpdateParameters{ + Tags: map[string]*string{ + "testkey": to.Ptr("value"), + }, + }, nil) + testsuite.Require().NoError(err) + _, err = testutil.PollForTest(testsuite.ctx, tasksClientUpdateResponsePoller) + testsuite.Require().NoError(err) + + // From step Tasks_GetDetails + fmt.Println("Call operation: Tasks_GetDetails") + _, err = tasksClient.GetDetails(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, testsuite.taskName, nil) + testsuite.Require().NoError(err) + + // From step TaskRuns_Create + fmt.Println("Call operation: TaskRuns_Create") + taskRunsClient, err := armcontainerregistry.NewTaskRunsClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) + testsuite.Require().NoError(err) + taskRunsClientCreateResponsePoller, err := taskRunsClient.BeginCreate(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, testsuite.taskRunName, armcontainerregistry.TaskRun{ + Properties: &armcontainerregistry.TaskRunProperties{ + ForceUpdateTag: to.Ptr("test"), + RunRequest: &armcontainerregistry.EncodedTaskRunRequest{ + Type: to.Ptr("EncodedTaskRunRequest"), + Credentials: &armcontainerregistry.Credentials{}, + EncodedTaskContent: to.Ptr("c3RlcHM6IAogIC0gY21kOiB7eyAuVmFsdWVzLmNvbW1hbmQgfX0K"), + EncodedValuesContent: to.Ptr("Y29tbWFuZDogYmFzaCBlY2hvIHt7LlJ1bi5SZWdpc3RyeX19Cg=="), + Platform: &armcontainerregistry.PlatformProperties{ + Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), + OS: to.Ptr(armcontainerregistry.OSLinux), + }, + Values: []*armcontainerregistry.SetValue{}, + }, + }, + }, nil) + testsuite.Require().NoError(err) + var taskRunsClientCreateResponse *armcontainerregistry.TaskRunsClientCreateResponse + taskRunsClientCreateResponse, err = testutil.PollForTest(testsuite.ctx, taskRunsClientCreateResponsePoller) + testsuite.Require().NoError(err) + runId = *taskRunsClientCreateResponse.Properties.RunResult.Properties.RunID + + // From step TaskRuns_List + fmt.Println("Call operation: TaskRuns_List") + taskRunsClientNewListPager := taskRunsClient.NewListPager(testsuite.resourceGroupName, testsuite.registryName, nil) + for taskRunsClientNewListPager.More() { + _, err := taskRunsClientNewListPager.NextPage(testsuite.ctx) + testsuite.Require().NoError(err) + break + } + + // From step TaskRuns_Get + fmt.Println("Call operation: TaskRuns_Get") + _, err = taskRunsClient.Get(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, testsuite.taskRunName, nil) + testsuite.Require().NoError(err) + + // From step TaskRuns_Update + fmt.Println("Call operation: TaskRuns_Update") + taskRunsClientUpdateResponsePoller, err := taskRunsClient.BeginUpdate(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, testsuite.taskRunName, armcontainerregistry.TaskRunUpdateParameters{ + Properties: &armcontainerregistry.TaskRunPropertiesUpdateParameters{ + ForceUpdateTag: to.Ptr("test"), + RunRequest: &armcontainerregistry.EncodedTaskRunRequest{ + Type: to.Ptr("EncodedTaskRunRequest"), + IsArchiveEnabled: to.Ptr(true), + Credentials: &armcontainerregistry.Credentials{}, + EncodedTaskContent: to.Ptr("c3RlcHM6IAogIC0gY21kOiB7eyAuVmFsdWVzLmNvbW1hbmQgfX0K"), + EncodedValuesContent: to.Ptr("Y29tbWFuZDogYmFzaCBlY2hvIHt7LlJ1bi5SZWdpc3RyeX19Cg=="), + Platform: &armcontainerregistry.PlatformProperties{ + Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), + OS: to.Ptr(armcontainerregistry.OSLinux), + }, + Values: []*armcontainerregistry.SetValue{}, + }, + }, + }, nil) + testsuite.Require().NoError(err) + _, err = testutil.PollForTest(testsuite.ctx, taskRunsClientUpdateResponsePoller) + testsuite.Require().NoError(err) + + // From step TaskRuns_GetDetails + fmt.Println("Call operation: TaskRuns_GetDetails") + _, err = taskRunsClient.GetDetails(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, testsuite.taskRunName, nil) + testsuite.Require().NoError(err) + + // From step Registries_GetBuildSourceUploadUrl + fmt.Println("Call operation: Registries_GetBuildSourceUploadUrl") + registriesClient, err := armcontainerregistry.NewRegistriesClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) + testsuite.Require().NoError(err) + _, err = registriesClient.GetBuildSourceUploadURL(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, nil) + testsuite.Require().NoError(err) + + // From step Runs_List + fmt.Println("Call operation: Runs_List") + runsClient, err := armcontainerregistry.NewRunsClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) + testsuite.Require().NoError(err) + runsClientNewListPager := runsClient.NewListPager(testsuite.resourceGroupName, testsuite.registryName, &armcontainerregistry.RunsClientListOptions{Filter: nil, + Top: to.Ptr[int32](10), + }) + for runsClientNewListPager.More() { + _, err := runsClientNewListPager.NextPage(testsuite.ctx) + testsuite.Require().NoError(err) + break + } + + // From step Runs_Get + fmt.Println("Call operation: Runs_Get") + _, err = runsClient.Get(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, runId, nil) + testsuite.Require().NoError(err) + + // From step Runs_Cancel + fmt.Println("Call operation: Runs_Cancel") + runsClientCancelResponsePoller, err := runsClient.BeginCancel(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, runId, nil) + testsuite.Require().NoError(err) + _, err = testutil.PollForTest(testsuite.ctx, runsClientCancelResponsePoller) + testsuite.Require().NoError(err) + + // From step Runs_GetLogSasUrl + fmt.Println("Call operation: Runs_GetLogSasUrl") + _, err = runsClient.GetLogSasURL(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, runId, nil) + testsuite.Require().NoError(err) + + // From step Registries_ScheduleRun + fmt.Println("Call operation: Registries_ScheduleRun") + registriesClientScheduleRunResponsePoller, err := registriesClient.BeginScheduleRun(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, &armcontainerregistry.DockerBuildRequest{ + Type: to.Ptr("DockerBuildRequest"), + IsArchiveEnabled: to.Ptr(true), + AgentConfiguration: &armcontainerregistry.AgentProperties{ + CPU: to.Ptr[int32](2), + }, + Arguments: []*armcontainerregistry.Argument{ + { + Name: to.Ptr("mytestargument"), + IsSecret: to.Ptr(false), + Value: to.Ptr("mytestvalue"), + }, + { + Name: to.Ptr("mysecrettestargument"), + IsSecret: to.Ptr(true), + Value: to.Ptr("mysecrettestvalue"), + }}, + DockerFilePath: to.Ptr("DockerFile"), + ImageNames: []*string{ + to.Ptr("azurerest:testtag")}, + IsPushEnabled: to.Ptr(true), + NoCache: to.Ptr(true), + Platform: &armcontainerregistry.PlatformProperties{ + Architecture: to.Ptr(armcontainerregistry.ArchitectureAmd64), + OS: to.Ptr(armcontainerregistry.OSLinux), + }, + SourceLocation: to.Ptr("https://myaccount.blob.core.windows.net/sascontainer/source.zip?sv=2015-04-05&st=2015-04-29T22%3A18%3A26Z&se=2015-04-30T02%3A23%3A26Z&sr=b&sp=rw&sip=168.1.5.60-168.1.5.70&spr=https&sig=Z%2FRHIX5Xcg0Mq2rqI3OlWTjEg2tYkboXr1P9ZUXDtkk%3D"), + }, nil) + testsuite.Require().NoError(err) + _, err = testutil.PollForTest(testsuite.ctx, registriesClientScheduleRunResponsePoller) + testsuite.Require().NoError(err) + + // From step TaskRuns_Delete + fmt.Println("Call operation: TaskRuns_Delete") + taskRunsClientDeleteResponsePoller, err := taskRunsClient.BeginDelete(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, testsuite.taskRunName, nil) + testsuite.Require().NoError(err) + _, err = testutil.PollForTest(testsuite.ctx, taskRunsClientDeleteResponsePoller) + testsuite.Require().NoError(err) + + // From step Runs_Update + fmt.Println("Call operation: Runs_Update") + runsClientUpdateResponsePoller, err := runsClient.BeginUpdate(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, runId, armcontainerregistry.RunUpdateParameters{ + IsArchiveEnabled: to.Ptr(true), + }, nil) + testsuite.Require().NoError(err) + _, err = testutil.PollForTest(testsuite.ctx, runsClientUpdateResponsePoller) + testsuite.Require().NoError(err) + + // From step Tasks_Delete + fmt.Println("Call operation: Tasks_Delete") + tasksClientDeleteResponsePoller, err := tasksClient.BeginDelete(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, testsuite.taskName, nil) + testsuite.Require().NoError(err) + _, err = testutil.PollForTest(testsuite.ctx, tasksClientDeleteResponsePoller) + testsuite.Require().NoError(err) +} diff --git a/sdk/resourcemanager/containerregistry/armcontainerregistry/containerregistry_live_test.go b/sdk/resourcemanager/containerregistry/armcontainerregistry/containerregistry_live_test.go new file mode 100644 index 000000000000..e7a821b1bc1c --- /dev/null +++ b/sdk/resourcemanager/containerregistry/armcontainerregistry/containerregistry_live_test.go @@ -0,0 +1,574 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armcontainerregistry_test + +import ( + "context" + "fmt" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/testutil" + "github.com/stretchr/testify/suite" +) + +type ContainerregistryTestSuite struct { + suite.Suite + + ctx context.Context + cred azcore.TokenCredential + options *arm.ClientOptions + exportPipelineName string + importPipelineName string + registryName string + replicationName string + scopeMapId string + scopeMapName string + tokenId string + tokenName string + webhookName string + location string + resourceGroupName string + subscriptionId string +} + +func (testsuite *ContainerregistryTestSuite) SetupSuite() { + testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/containerregistry/armcontainerregistry/testdata") + testsuite.ctx = context.Background() + testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) + testsuite.exportPipelineName = testutil.GenerateAlphaNumericID(testsuite.T(), "exportpipe", 6) + testsuite.importPipelineName = testutil.GenerateAlphaNumericID(testsuite.T(), "importpipe", 6) + testsuite.registryName = testutil.GenerateAlphaNumericID(testsuite.T(), "registryna", 6) + testsuite.replicationName = testutil.GenerateAlphaNumericID(testsuite.T(), "replicatio", 6) + testsuite.scopeMapName = testutil.GenerateAlphaNumericID(testsuite.T(), "scopemapna", 6) + testsuite.tokenName = testutil.GenerateAlphaNumericID(testsuite.T(), "tokenname", 6) + testsuite.webhookName = testutil.GenerateAlphaNumericID(testsuite.T(), "webhooknam", 6) + testsuite.location = testutil.GetEnv("LOCATION", "eastus") + testsuite.resourceGroupName = testutil.GetEnv("RESOURCE_GROUP_NAME", "scenarioTestTempGroup") + testsuite.subscriptionId = testutil.GetEnv("AZURE_SUBSCRIPTION_ID", "00000000-0000-0000-0000-000000000000") + + resourceGroup, _, err := testutil.CreateResourceGroup(testsuite.ctx, testsuite.subscriptionId, testsuite.cred, testsuite.options, testsuite.location) + testsuite.Require().NoError(err) + testsuite.resourceGroupName = *resourceGroup.Name + testsuite.Prepare() +} + +func (testsuite *ContainerregistryTestSuite) TearDownSuite() { + testsuite.Cleanup() + _, err := testutil.DeleteResourceGroup(testsuite.ctx, testsuite.subscriptionId, testsuite.cred, testsuite.options, testsuite.resourceGroupName) + testsuite.Require().NoError(err) + testutil.StopRecording(testsuite.T()) +} + +func TestContainerregistryTestSuite(t *testing.T) { + suite.Run(t, new(ContainerregistryTestSuite)) +} + +func (testsuite *ContainerregistryTestSuite) Prepare() { + var err error + // From step Registries_Create + fmt.Println("Call operation: Registries_Create") + registriesClient, err := armcontainerregistry.NewRegistriesClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) + testsuite.Require().NoError(err) + registriesClientCreateResponsePoller, err := registriesClient.BeginCreate(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, armcontainerregistry.Registry{ + Location: to.Ptr(testsuite.location), + Tags: map[string]*string{ + "key": to.Ptr("value"), + }, + Properties: &armcontainerregistry.RegistryProperties{ + AdminUserEnabled: to.Ptr(true), + }, + SKU: &armcontainerregistry.SKU{ + Name: to.Ptr(armcontainerregistry.SKUNamePremium), + }, + }, nil) + testsuite.Require().NoError(err) + _, err = testutil.PollForTest(testsuite.ctx, registriesClientCreateResponsePoller) + testsuite.Require().NoError(err) + + // From step ScopeMaps_Create + fmt.Println("Call operation: ScopeMaps_Create") + scopeMapsClient, err := armcontainerregistry.NewScopeMapsClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) + testsuite.Require().NoError(err) + scopeMapsClientCreateResponsePoller, err := scopeMapsClient.BeginCreate(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, testsuite.scopeMapName, armcontainerregistry.ScopeMap{ + Properties: &armcontainerregistry.ScopeMapProperties{ + Description: to.Ptr("Developer Scopes"), + Actions: []*string{ + to.Ptr("repositories/myrepository/content/write"), + to.Ptr("repositories/myrepository/content/delete")}, + }, + }, nil) + testsuite.Require().NoError(err) + var scopeMapsClientCreateResponse *armcontainerregistry.ScopeMapsClientCreateResponse + scopeMapsClientCreateResponse, err = testutil.PollForTest(testsuite.ctx, scopeMapsClientCreateResponsePoller) + testsuite.Require().NoError(err) + testsuite.scopeMapId = *scopeMapsClientCreateResponse.ID + + // From step Tokens_Create + fmt.Println("Call operation: Tokens_Create") + tokensClient, err := armcontainerregistry.NewTokensClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) + testsuite.Require().NoError(err) + tokensClientCreateResponsePoller, err := tokensClient.BeginCreate(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, testsuite.tokenName, armcontainerregistry.Token{ + Properties: &armcontainerregistry.TokenProperties{ + ScopeMapID: to.Ptr(testsuite.scopeMapId), + Status: to.Ptr(armcontainerregistry.TokenStatusDisabled), + }, + }, nil) + testsuite.Require().NoError(err) + var tokensClientCreateResponse *armcontainerregistry.TokensClientCreateResponse + tokensClientCreateResponse, err = testutil.PollForTest(testsuite.ctx, tokensClientCreateResponsePoller) + testsuite.Require().NoError(err) + testsuite.tokenId = *tokensClientCreateResponse.ID +} + +// Microsoft.ContainerRegistry/registries +func (testsuite *ContainerregistryTestSuite) TestContainerregister() { + var err error + // From step Registries_CheckNameAvailability + fmt.Println("Call operation: Registries_CheckNameAvailability") + registriesClient, err := armcontainerregistry.NewRegistriesClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) + testsuite.Require().NoError(err) + _, err = registriesClient.CheckNameAvailability(testsuite.ctx, armcontainerregistry.RegistryNameCheckRequest{ + Name: to.Ptr("myRegistry"), + Type: to.Ptr("Microsoft.ContainerRegistry/registries"), + }, nil) + testsuite.Require().NoError(err) + + // From step Registries_List + fmt.Println("Call operation: Registries_List") + registriesClientNewListPager := registriesClient.NewListPager(nil) + for registriesClientNewListPager.More() { + _, err := registriesClientNewListPager.NextPage(testsuite.ctx) + testsuite.Require().NoError(err) + break + } + + // From step Registries_Get + fmt.Println("Call operation: Registries_Get") + _, err = registriesClient.Get(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, nil) + testsuite.Require().NoError(err) + + // From step Registries_ListByResourceGroup + fmt.Println("Call operation: Registries_ListByResourceGroup") + registriesClientNewListByResourceGroupPager := registriesClient.NewListByResourceGroupPager(testsuite.resourceGroupName, nil) + for registriesClientNewListByResourceGroupPager.More() { + _, err := registriesClientNewListByResourceGroupPager.NextPage(testsuite.ctx) + testsuite.Require().NoError(err) + break + } + + // From step Registries_ListUsages + fmt.Println("Call operation: Registries_ListUsages") + _, err = registriesClient.ListUsages(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, nil) + testsuite.Require().NoError(err) + + // From step Registries_Update + fmt.Println("Call operation: Registries_Update") + registriesClientUpdateResponsePoller, err := registriesClient.BeginUpdate(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, armcontainerregistry.RegistryUpdateParameters{ + Properties: &armcontainerregistry.RegistryPropertiesUpdateParameters{ + AdminUserEnabled: to.Ptr(true), + }, + SKU: &armcontainerregistry.SKU{ + Name: to.Ptr(armcontainerregistry.SKUNamePremium), + }, + Tags: map[string]*string{ + "key": to.Ptr("value"), + }, + }, nil) + testsuite.Require().NoError(err) + _, err = testutil.PollForTest(testsuite.ctx, registriesClientUpdateResponsePoller) + testsuite.Require().NoError(err) + + // From step Registries_ListPrivateLinkResources + fmt.Println("Call operation: Registries_ListPrivateLinkResources") + registriesClientNewListPrivateLinkResourcesPager := registriesClient.NewListPrivateLinkResourcesPager(testsuite.resourceGroupName, testsuite.registryName, nil) + for registriesClientNewListPrivateLinkResourcesPager.More() { + _, err := registriesClientNewListPrivateLinkResourcesPager.NextPage(testsuite.ctx) + testsuite.Require().NoError(err) + break + } + + // From step Registries_GetPrivateLinkResource + fmt.Println("Call operation: Registries_GetPrivateLinkResource") + _, err = registriesClient.GetPrivateLinkResource(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, "registry", nil) + testsuite.Require().NoError(err) +} + +// Microsoft.ContainerRegistry/registries/webhooks +func (testsuite *ContainerregistryTestSuite) TestWebhooks() { + var err error + // From step Webhooks_Create + fmt.Println("Call operation: Webhooks_Create") + webhooksClient, err := armcontainerregistry.NewWebhooksClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) + testsuite.Require().NoError(err) + webhooksClientCreateResponsePoller, err := webhooksClient.BeginCreate(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, testsuite.webhookName, armcontainerregistry.WebhookCreateParameters{ + Location: to.Ptr(testsuite.location), + Properties: &armcontainerregistry.WebhookPropertiesCreateParameters{ + Actions: []*armcontainerregistry.WebhookAction{ + to.Ptr(armcontainerregistry.WebhookActionPush)}, + CustomHeaders: map[string]*string{ + "Authorization": to.Ptr("Basic 000000000000000000000000000000000000000000000000000"), + }, + ServiceURI: to.Ptr("http://myservice.com"), + Status: to.Ptr(armcontainerregistry.WebhookStatusEnabled), + }, + Tags: map[string]*string{ + "key": to.Ptr("value"), + }, + }, nil) + testsuite.Require().NoError(err) + _, err = testutil.PollForTest(testsuite.ctx, webhooksClientCreateResponsePoller) + testsuite.Require().NoError(err) + + // From step Webhooks_List + fmt.Println("Call operation: Webhooks_List") + webhooksClientNewListPager := webhooksClient.NewListPager(testsuite.resourceGroupName, testsuite.registryName, nil) + for webhooksClientNewListPager.More() { + _, err := webhooksClientNewListPager.NextPage(testsuite.ctx) + testsuite.Require().NoError(err) + break + } + + // From step Webhooks_Get + fmt.Println("Call operation: Webhooks_Get") + _, err = webhooksClient.Get(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, testsuite.webhookName, nil) + testsuite.Require().NoError(err) + + // From step Webhooks_Update + fmt.Println("Call operation: Webhooks_Update") + webhooksClientUpdateResponsePoller, err := webhooksClient.BeginUpdate(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, testsuite.webhookName, armcontainerregistry.WebhookUpdateParameters{ + Properties: &armcontainerregistry.WebhookPropertiesUpdateParameters{ + Actions: []*armcontainerregistry.WebhookAction{ + to.Ptr(armcontainerregistry.WebhookActionPush)}, + CustomHeaders: map[string]*string{ + "Authorization": to.Ptr("Basic 000000000000000000000000000000000000000000000000000"), + }, + Scope: to.Ptr("repository"), + ServiceURI: to.Ptr("http://myservice.com"), + Status: to.Ptr(armcontainerregistry.WebhookStatusEnabled), + }, + Tags: map[string]*string{ + "key": to.Ptr("value"), + }, + }, nil) + testsuite.Require().NoError(err) + _, err = testutil.PollForTest(testsuite.ctx, webhooksClientUpdateResponsePoller) + testsuite.Require().NoError(err) + + // From step Webhooks_GetCallbackConfig + fmt.Println("Call operation: Webhooks_GetCallbackConfig") + _, err = webhooksClient.GetCallbackConfig(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, testsuite.webhookName, nil) + testsuite.Require().NoError(err) + + // From step Webhooks_Ping + fmt.Println("Call operation: Webhooks_Ping") + _, err = webhooksClient.Ping(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, testsuite.webhookName, nil) + testsuite.Require().NoError(err) + + // From step Webhooks_ListEvents + fmt.Println("Call operation: Webhooks_ListEvents") + webhooksClientNewListEventsPager := webhooksClient.NewListEventsPager(testsuite.resourceGroupName, testsuite.registryName, testsuite.webhookName, nil) + for webhooksClientNewListEventsPager.More() { + _, err := webhooksClientNewListEventsPager.NextPage(testsuite.ctx) + testsuite.Require().NoError(err) + break + } + + // From step Webhooks_Delete + fmt.Println("Call operation: Webhooks_Delete") + webhooksClientDeleteResponsePoller, err := webhooksClient.BeginDelete(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, testsuite.webhookName, nil) + testsuite.Require().NoError(err) + _, err = testutil.PollForTest(testsuite.ctx, webhooksClientDeleteResponsePoller) + testsuite.Require().NoError(err) +} + +// Microsoft.ContainerRegistry/registries/replications +func (testsuite *ContainerregistryTestSuite) TestReplications() { + var err error + // From step Replications_Create + fmt.Println("Call operation: Replications_Create") + replicationsClient, err := armcontainerregistry.NewReplicationsClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) + testsuite.Require().NoError(err) + replicationsClientCreateResponsePoller, err := replicationsClient.BeginCreate(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, testsuite.replicationName, armcontainerregistry.Replication{ + Location: to.Ptr("westus2"), + }, nil) + testsuite.Require().NoError(err) + _, err = testutil.PollForTest(testsuite.ctx, replicationsClientCreateResponsePoller) + testsuite.Require().NoError(err) + + // From step Replications_List + fmt.Println("Call operation: Replications_List") + replicationsClientNewListPager := replicationsClient.NewListPager(testsuite.resourceGroupName, testsuite.registryName, nil) + for replicationsClientNewListPager.More() { + _, err := replicationsClientNewListPager.NextPage(testsuite.ctx) + testsuite.Require().NoError(err) + break + } + + // From step Replications_Get + fmt.Println("Call operation: Replications_Get") + _, err = replicationsClient.Get(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, testsuite.replicationName, nil) + testsuite.Require().NoError(err) + + // From step Replications_Update + fmt.Println("Call operation: Replications_Update") + replicationsClientUpdateResponsePoller, err := replicationsClient.BeginUpdate(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, testsuite.replicationName, armcontainerregistry.ReplicationUpdateParameters{ + Tags: map[string]*string{ + "key": to.Ptr("value"), + }, + }, nil) + testsuite.Require().NoError(err) + _, err = testutil.PollForTest(testsuite.ctx, replicationsClientUpdateResponsePoller) + testsuite.Require().NoError(err) + + // From step Replications_Delete + fmt.Println("Call operation: Replications_Delete") + replicationsClientDeleteResponsePoller, err := replicationsClient.BeginDelete(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, testsuite.replicationName, nil) + testsuite.Require().NoError(err) + _, err = testutil.PollForTest(testsuite.ctx, replicationsClientDeleteResponsePoller) + testsuite.Require().NoError(err) +} + +// Microsoft.ContainerRegistry/registries/scopeMaps +func (testsuite *ContainerregistryTestSuite) TestScopemaps() { + var err error + // From step ScopeMaps_List + fmt.Println("Call operation: ScopeMaps_List") + scopeMapsClient, err := armcontainerregistry.NewScopeMapsClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) + testsuite.Require().NoError(err) + scopeMapsClientNewListPager := scopeMapsClient.NewListPager(testsuite.resourceGroupName, testsuite.registryName, nil) + for scopeMapsClientNewListPager.More() { + _, err := scopeMapsClientNewListPager.NextPage(testsuite.ctx) + testsuite.Require().NoError(err) + break + } + + // From step ScopeMaps_Get + fmt.Println("Call operation: ScopeMaps_Get") + _, err = scopeMapsClient.Get(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, testsuite.scopeMapName, nil) + testsuite.Require().NoError(err) + + // From step ScopeMaps_Update + fmt.Println("Call operation: ScopeMaps_Update") + scopeMapsClientUpdateResponsePoller, err := scopeMapsClient.BeginUpdate(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, testsuite.scopeMapName, armcontainerregistry.ScopeMapUpdateParameters{ + Properties: &armcontainerregistry.ScopeMapPropertiesUpdateParameters{ + Description: to.Ptr("Developer Scopes"), + Actions: []*string{ + to.Ptr("repositories/myrepository/content/write"), + to.Ptr("repositories/myrepository/content/read")}, + }, + }, nil) + testsuite.Require().NoError(err) + _, err = testutil.PollForTest(testsuite.ctx, scopeMapsClientUpdateResponsePoller) + testsuite.Require().NoError(err) +} + +// Microsoft.ContainerRegistry/registries/tokens +func (testsuite *ContainerregistryTestSuite) TestTokens() { + var err error + // From step Tokens_List + fmt.Println("Call operation: Tokens_List") + tokensClient, err := armcontainerregistry.NewTokensClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) + testsuite.Require().NoError(err) + tokensClientNewListPager := tokensClient.NewListPager(testsuite.resourceGroupName, testsuite.registryName, nil) + for tokensClientNewListPager.More() { + _, err := tokensClientNewListPager.NextPage(testsuite.ctx) + testsuite.Require().NoError(err) + break + } + + // From step Tokens_Get + fmt.Println("Call operation: Tokens_Get") + _, err = tokensClient.Get(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, testsuite.tokenName, nil) + testsuite.Require().NoError(err) + + // From step Tokens_Update + fmt.Println("Call operation: Tokens_Update") + tokensClientUpdateResponsePoller, err := tokensClient.BeginUpdate(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, testsuite.tokenName, armcontainerregistry.TokenUpdateParameters{ + Properties: &armcontainerregistry.TokenUpdateProperties{ + ScopeMapID: to.Ptr(testsuite.scopeMapId), + }, + }, nil) + testsuite.Require().NoError(err) + _, err = testutil.PollForTest(testsuite.ctx, tokensClientUpdateResponsePoller) + testsuite.Require().NoError(err) +} + +// Microsoft.ContainerRegistry/registries/generateCredentials +func (testsuite *ContainerregistryTestSuite) TestRegistrycredentials() { + var err error + // From step Registries_GenerateCredentials + fmt.Println("Call operation: Registries_GenerateCredentials") + registriesClient, err := armcontainerregistry.NewRegistriesClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) + testsuite.Require().NoError(err) + registriesClientGenerateCredentialsResponsePoller, err := registriesClient.BeginGenerateCredentials(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, armcontainerregistry.GenerateCredentialsParameters{ + TokenID: to.Ptr(testsuite.tokenId), + }, nil) + testsuite.Require().NoError(err) + _, err = testutil.PollForTest(testsuite.ctx, registriesClientGenerateCredentialsResponsePoller) + testsuite.Require().NoError(err) + + // From step Registries_RegenerateCredential + fmt.Println("Call operation: Registries_RegenerateCredential") + _, err = registriesClient.RegenerateCredential(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, armcontainerregistry.RegenerateCredentialParameters{ + Name: to.Ptr(armcontainerregistry.PasswordNamePassword), + }, nil) + testsuite.Require().NoError(err) + + // From step Registries_ListCredentials + fmt.Println("Call operation: Registries_ListCredentials") + _, err = registriesClient.ListCredentials(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, nil) + testsuite.Require().NoError(err) +} + +// Microsoft.ContainerRegistry/registries/exportPipelines +func (testsuite *ContainerregistryTestSuite) TestExportpipelines() { + var err error + // From step ExportPipelines_Create + fmt.Println("Call operation: ExportPipelines_Create") + exportPipelinesClient, err := armcontainerregistry.NewExportPipelinesClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) + testsuite.Require().NoError(err) + exportPipelinesClientCreateResponsePoller, err := exportPipelinesClient.BeginCreate(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, testsuite.exportPipelineName, armcontainerregistry.ExportPipeline{ + Identity: &armcontainerregistry.IdentityProperties{ + Type: to.Ptr(armcontainerregistry.ResourceIdentityTypeSystemAssigned), + }, + Location: to.Ptr(testsuite.location), + Properties: &armcontainerregistry.ExportPipelineProperties{ + Options: []*armcontainerregistry.PipelineOptions{ + to.Ptr(armcontainerregistry.PipelineOptionsOverwriteBlobs)}, + Target: &armcontainerregistry.ExportPipelineTargetProperties{ + Type: to.Ptr("AzureStorageBlobContainer"), + KeyVaultURI: to.Ptr("https://myvault.vault.azure.net/secrets/acrexportsas"), + URI: to.Ptr("https://accountname.blob.core.windows.net/containername"), + }, + }, + }, nil) + testsuite.Require().NoError(err) + _, err = testutil.PollForTest(testsuite.ctx, exportPipelinesClientCreateResponsePoller) + testsuite.Require().NoError(err) + + // From step ExportPipelines_List + fmt.Println("Call operation: ExportPipelines_List") + exportPipelinesClientNewListPager := exportPipelinesClient.NewListPager(testsuite.resourceGroupName, testsuite.registryName, nil) + for exportPipelinesClientNewListPager.More() { + _, err := exportPipelinesClientNewListPager.NextPage(testsuite.ctx) + testsuite.Require().NoError(err) + break + } + + // From step ExportPipelines_Get + fmt.Println("Call operation: ExportPipelines_Get") + _, err = exportPipelinesClient.Get(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, testsuite.exportPipelineName, nil) + testsuite.Require().NoError(err) + + // From step ExportPipelines_Delete + fmt.Println("Call operation: ExportPipelines_Delete") + exportPipelinesClientDeleteResponsePoller, err := exportPipelinesClient.BeginDelete(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, testsuite.exportPipelineName, nil) + testsuite.Require().NoError(err) + _, err = testutil.PollForTest(testsuite.ctx, exportPipelinesClientDeleteResponsePoller) + testsuite.Require().NoError(err) +} + +// Microsoft.ContainerRegistry/registries/importPipelines +func (testsuite *ContainerregistryTestSuite) TestImportpipelines() { + var err error + // From step ImportPipelines_Create + fmt.Println("Call operation: ImportPipelines_Create") + importPipelinesClient, err := armcontainerregistry.NewImportPipelinesClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) + testsuite.Require().NoError(err) + importPipelinesClientCreateResponsePoller, err := importPipelinesClient.BeginCreate(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, testsuite.importPipelineName, armcontainerregistry.ImportPipeline{ + Identity: &armcontainerregistry.IdentityProperties{ + Type: to.Ptr(armcontainerregistry.ResourceIdentityTypeSystemAssigned), + }, + Location: to.Ptr(testsuite.location), + Properties: &armcontainerregistry.ImportPipelineProperties{ + Options: []*armcontainerregistry.PipelineOptions{ + to.Ptr(armcontainerregistry.PipelineOptionsOverwriteTags), + to.Ptr(armcontainerregistry.PipelineOptionsDeleteSourceBlobOnSuccess), + to.Ptr(armcontainerregistry.PipelineOptionsContinueOnErrors)}, + Source: &armcontainerregistry.ImportPipelineSourceProperties{ + Type: to.Ptr(armcontainerregistry.PipelineSourceTypeAzureStorageBlobContainer), + KeyVaultURI: to.Ptr("https://myvault.vault.azure.net/secrets/acrimportsas"), + URI: to.Ptr("https://accountname.blob.core.windows.net/containername"), + }, + }, + }, nil) + testsuite.Require().NoError(err) + _, err = testutil.PollForTest(testsuite.ctx, importPipelinesClientCreateResponsePoller) + testsuite.Require().NoError(err) + + // From step ImportPipelines_List + fmt.Println("Call operation: ImportPipelines_List") + importPipelinesClientNewListPager := importPipelinesClient.NewListPager(testsuite.resourceGroupName, testsuite.registryName, nil) + for importPipelinesClientNewListPager.More() { + _, err := importPipelinesClientNewListPager.NextPage(testsuite.ctx) + testsuite.Require().NoError(err) + break + } + + // From step ImportPipelines_Get + fmt.Println("Call operation: ImportPipelines_Get") + _, err = importPipelinesClient.Get(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, testsuite.importPipelineName, nil) + testsuite.Require().NoError(err) + + // From step ImportPipelines_Delete + fmt.Println("Call operation: ImportPipelines_Delete") + importPipelinesClientDeleteResponsePoller, err := importPipelinesClient.BeginDelete(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, testsuite.importPipelineName, nil) + testsuite.Require().NoError(err) + _, err = testutil.PollForTest(testsuite.ctx, importPipelinesClientDeleteResponsePoller) + testsuite.Require().NoError(err) +} + +// Microsoft.ContainerRegistry/operations +func (testsuite *ContainerregistryTestSuite) TestOperations() { + var err error + // From step Operations_List + fmt.Println("Call operation: Operations_List") + operationsClient, err := armcontainerregistry.NewOperationsClient(testsuite.cred, testsuite.options) + testsuite.Require().NoError(err) + operationsClientNewListPager := operationsClient.NewListPager(nil) + for operationsClientNewListPager.More() { + _, err := operationsClientNewListPager.NextPage(testsuite.ctx) + testsuite.Require().NoError(err) + break + } +} + +func (testsuite *ContainerregistryTestSuite) Cleanup() { + var err error + // From step Tokens_Delete + fmt.Println("Call operation: Tokens_Delete") + tokensClient, err := armcontainerregistry.NewTokensClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) + testsuite.Require().NoError(err) + tokensClientDeleteResponsePoller, err := tokensClient.BeginDelete(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, testsuite.tokenName, nil) + testsuite.Require().NoError(err) + _, err = testutil.PollForTest(testsuite.ctx, tokensClientDeleteResponsePoller) + testsuite.Require().NoError(err) + + // From step ScopeMaps_Delete + fmt.Println("Call operation: ScopeMaps_Delete") + scopeMapsClient, err := armcontainerregistry.NewScopeMapsClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) + testsuite.Require().NoError(err) + scopeMapsClientDeleteResponsePoller, err := scopeMapsClient.BeginDelete(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, testsuite.scopeMapName, nil) + testsuite.Require().NoError(err) + _, err = testutil.PollForTest(testsuite.ctx, scopeMapsClientDeleteResponsePoller) + testsuite.Require().NoError(err) + + // From step Registries_Delete + fmt.Println("Call operation: Registries_Delete") + registriesClient, err := armcontainerregistry.NewRegistriesClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) + testsuite.Require().NoError(err) + registriesClientDeleteResponsePoller, err := registriesClient.BeginDelete(testsuite.ctx, testsuite.resourceGroupName, testsuite.registryName, nil) + testsuite.Require().NoError(err) + _, err = testutil.PollForTest(testsuite.ctx, registriesClientDeleteResponsePoller) + testsuite.Require().NoError(err) +} diff --git a/sdk/resourcemanager/containerregistry/armcontainerregistry/go.mod b/sdk/resourcemanager/containerregistry/armcontainerregistry/go.mod index 2ce1582f9bfd..5bce5a54156b 100644 --- a/sdk/resourcemanager/containerregistry/armcontainerregistry/go.mod +++ b/sdk/resourcemanager/containerregistry/armcontainerregistry/go.mod @@ -3,19 +3,27 @@ module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/a go 1.18 require ( - github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.0 + github.com/Azure/azure-sdk-for-go/sdk/azcore v1.4.0 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.1 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.2 + github.com/stretchr/testify v1.7.0 ) require ( - github.com/Azure/azure-sdk-for-go/sdk/internal v1.0.0 // indirect + github.com/Azure/azure-sdk-for-go/sdk/internal v1.2.0 // indirect + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0 // indirect github.com/AzureAD/microsoft-authentication-library-for-go v0.8.1 // indirect + github.com/davecgh/go-spew v1.1.1 // indirect + github.com/dnaeon/go-vcr v1.1.0 // indirect github.com/golang-jwt/jwt/v4 v4.4.2 // 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 + github.com/pmezard/go-difflib v1.0.0 // 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 + golang.org/x/net v0.7.0 // indirect + golang.org/x/sys v0.5.0 // indirect + golang.org/x/text v0.7.0 // indirect + gopkg.in/yaml.v2 v2.4.0 // indirect + gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect ) diff --git a/sdk/resourcemanager/containerregistry/armcontainerregistry/go.sum b/sdk/resourcemanager/containerregistry/armcontainerregistry/go.sum index f62f42f1f55c..05c50ce40fb1 100644 --- a/sdk/resourcemanager/containerregistry/armcontainerregistry/go.sum +++ b/sdk/resourcemanager/containerregistry/armcontainerregistry/go.sum @@ -1,30 +1,47 @@ -github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.0 h1:Ut0ZGdOwJDw0npYEg+TLlPls3Pq6JiZaP2/aGKir7Zw= -github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.0/go.mod h1:uGG2W01BaETf0Ozp+QxxKJdMBNRWPdstHG0Fmdwn1/U= +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.1 h1:T8quHYlUGyb/oqtSTwqlCr1ilJHrDv+ZtpSfo+hm1BU= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.1/go.mod h1:gLa1CL2RNE4s7M3yopJ/p0iq5DdY6Yv5ZUt9MTRZOQM= -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/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/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.2 h1:mLY+pNLjCUeKhgnAJWAKhEUQM+RJQo2H1fuGSw1Ky1E= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.2/go.mod h1:FbdwsQ2EzwvXxOPcMFYO8ogEc9uMMIj3YkmCdXdAFmk= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0 h1:ECsQtyERDVz3NP3kvDOTLvbQhqWp/x9EsGKtb4ogUr8= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0/go.mod h1:s1tW/At+xHqjNFvWU4G0c0Qv33KOhvbGNj0RCTQDV8s= github.com/AzureAD/microsoft-authentication-library-for-go v0.8.1 h1:oPdPEZFSbl7oSPEAIPMPBMUmiL+mqgzBJwM/9qYcwNg= github.com/AzureAD/microsoft-authentication-library-for-go v0.8.1/go.mod h1:4qFor3D/HDsvBME35Xy9rwW9DecL+M2sNw1ybjPtwA0= +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/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 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/v4 v4.4.2 h1:rcc4lwaZgFMCZ5jxF9ABolDcIHdBytAFgqFPbSJQAYs= github.com/golang-jwt/jwt/v4 v4.4.2/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= 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/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-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-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/net v0.7.0 h1:rJrUqqhjsgNp7KqAIc25s9pZnjU7TUcSY7HcVZjdn1g= +golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= +golang.org/x/sys v0.5.0 h1:MUK/U/4lj1t1oPg0HfuXDN/Z1wv31ZJ/YcPiGccS4DU= +golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/text v0.7.0 h1:4BRB4x83lYWy72KwLD/qYDuTu7q9PjSagHvijDw7cLo= +golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= +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= +gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/sdk/resourcemanager/containerregistry/armcontainerregistry/testdata/recordings/TestContainerregistryBuildTestSuite.json b/sdk/resourcemanager/containerregistry/armcontainerregistry/testdata/recordings/TestContainerregistryBuildTestSuite.json deleted file mode 100644 index 363cfbdf8274..000000000000 --- a/sdk/resourcemanager/containerregistry/armcontainerregistry/testdata/recordings/TestContainerregistryBuildTestSuite.json +++ /dev/null @@ -1,3243 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "eastus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:21:55 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T082156Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "eastus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg?api-version=2022-02-01-preview", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "85", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "eastus", - "properties": { - "adminUserEnabled": true - }, - "sku": { - "name": "Premium" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "2022-02-01-preview", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:22:09 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T082210Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "sku": { - "name": "Premium", - "tier": "Premium" - }, - "type": "Microsoft.ContainerRegistry/registries", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg", - "name": "registryna2nvl0bg", - "location": "eastus", - "tags": {}, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-12T08:22:00.1826216\u002B00:00", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-12T08:22:00.1826216\u002B00:00" - }, - "properties": { - "loginServer": "registryna2nvl0bg.azurecr.io", - "creationDate": "2022-10-12T08:22:00.1826216Z", - "provisioningState": "Succeeded", - "adminUserEnabled": true, - "networkRuleSet": { - "defaultAction": "Allow", - "ipRules": [] - }, - "policies": { - "quarantinePolicy": { - "status": "disabled" - }, - "trustPolicy": { - "type": "Notary", - "status": "disabled" - }, - "retentionPolicy": { - "days": 7, - "lastUpdatedTime": "2022-10-12T08:22:08.936237\u002B00:00", - "status": "disabled" - }, - "exportPolicy": { - "status": "enabled" - }, - "azureADAuthenticationAsArmPolicy": { - "status": "enabled" - }, - "softDeletePolicy": { - "retentionDays": 7, - "lastUpdatedTime": "2022-10-12T08:22:08.936237\u002B00:00", - "status": "disabled" - } - }, - "encryption": { - "status": "disabled" - }, - "dataEndpointEnabled": false, - "dataEndpointHostNames": [], - "privateEndpointConnections": [], - "publicNetworkAccess": "Enabled", - "networkRuleBypassOptions": "AzureServices", - "zoneRedundancy": "Disabled", - "anonymousPullEnabled": false - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPools/agentpoolnnvl0bg?api-version=2019-06-01-preview", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "94", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "eastus", - "properties": { - "count": 1, - "os": "Linux", - "tier": "S1" - }, - "tags": { - "key": "value" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPools/agentpoolnnvl0bg/operationStatuses/00000000-0000-0000-0000-000000000000?api-version=2019-06-01-preview", - "Cache-Control": "no-cache", - "Content-Length": "659", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:22:14 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "10", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1197", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T082214Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "type": "Microsoft.ContainerRegistry/registries/agentPools", - "properties": { - "count": 1, - "tier": "S1", - "os": "Linux", - "provisioningState": "Creating" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPools/agentpoolnnvl0bg", - "name": "agentpoolnnvl0bg", - "location": "eastus", - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-12T08:22:12.7296171\u002B00:00", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-12T08:22:12.7296171\u002B00:00" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPools/agentpoolnnvl0bg/operationStatuses/00000000-0000-0000-0000-000000000000?api-version=2019-06-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:22:24 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11999", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T082225Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Creating" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPools/agentpoolnnvl0bg/operationStatuses/00000000-0000-0000-0000-000000000000?api-version=2019-06-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:22:55 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11998", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T082256Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Creating" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPools/agentpoolnnvl0bg/operationStatuses/00000000-0000-0000-0000-000000000000?api-version=2019-06-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:23:26 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11997", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T082326Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Creating" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPools/agentpoolnnvl0bg/operationStatuses/00000000-0000-0000-0000-000000000000?api-version=2019-06-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:23:57 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11996", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T082357Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Creating" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPools/agentpoolnnvl0bg/operationStatuses/00000000-0000-0000-0000-000000000000?api-version=2019-06-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:24:27 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11995", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T082428Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Creating" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPools/agentpoolnnvl0bg/operationStatuses/00000000-0000-0000-0000-000000000000?api-version=2019-06-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:24:58 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11994", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T082458Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Creating" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPools/agentpoolnnvl0bg/operationStatuses/00000000-0000-0000-0000-000000000000?api-version=2019-06-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:25:28 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11993", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T082529Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Creating" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPools/agentpoolnnvl0bg/operationStatuses/00000000-0000-0000-0000-000000000000?api-version=2019-06-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:25:59 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11992", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T082600Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Creating" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPools/agentpoolnnvl0bg/operationStatuses/00000000-0000-0000-0000-000000000000?api-version=2019-06-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:26:30 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11991", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T082630Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Creating" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPools/agentpoolnnvl0bg/operationStatuses/00000000-0000-0000-0000-000000000000?api-version=2019-06-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:27:00 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11990", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T082701Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Creating" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPools/agentpoolnnvl0bg/operationStatuses/00000000-0000-0000-0000-000000000000?api-version=2019-06-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:27:31 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11989", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T082732Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Creating" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPools/agentpoolnnvl0bg/operationStatuses/00000000-0000-0000-0000-000000000000?api-version=2019-06-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:28:03 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11988", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T082803Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Creating" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPools/agentpoolnnvl0bg/operationStatuses/00000000-0000-0000-0000-000000000000?api-version=2019-06-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:28:33 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11987", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T082833Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Creating" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPools/agentpoolnnvl0bg/operationStatuses/00000000-0000-0000-0000-000000000000?api-version=2019-06-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:29:04 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11986", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T082904Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Creating" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPools/agentpoolnnvl0bg/operationStatuses/00000000-0000-0000-0000-000000000000?api-version=2019-06-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:29:34 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11985", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T082935Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Creating" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPools/agentpoolnnvl0bg/operationStatuses/00000000-0000-0000-0000-000000000000?api-version=2019-06-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:30:05 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11984", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T083006Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Creating" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPools/agentpoolnnvl0bg/operationStatuses/00000000-0000-0000-0000-000000000000?api-version=2019-06-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:30:36 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11983", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T083036Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Creating" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPools/agentpoolnnvl0bg/operationStatuses/00000000-0000-0000-0000-000000000000?api-version=2019-06-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:31:07 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11982", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T083107Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Creating" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPools/agentpoolnnvl0bg/operationStatuses/00000000-0000-0000-0000-000000000000?api-version=2019-06-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:31:37 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11981", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T083138Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Creating" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPools/agentpoolnnvl0bg/operationStatuses/00000000-0000-0000-0000-000000000000?api-version=2019-06-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:32:08 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11980", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T083208Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPools/agentpoolnnvl0bg?api-version=2019-06-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:32:09 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11979", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T083210Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "type": "Microsoft.ContainerRegistry/registries/agentPools", - "properties": { - "count": 1, - "tier": "S1", - "os": "Linux", - "provisioningState": "Succeeded" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPools/agentpoolnnvl0bg", - "name": "agentpoolnnvl0bg", - "location": "eastus", - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-12T08:22:12.7296171\u002B00:00", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-12T08:22:12.7296171\u002B00:00" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPools?api-version=2019-06-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:32:10 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11978", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T083210Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "type": "Microsoft.ContainerRegistry/registries/agentPools", - "properties": { - "count": 1, - "tier": "S1", - "os": "Linux", - "provisioningState": "Succeeded" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPools/agentpoolnnvl0bg", - "name": "agentpoolnnvl0bg", - "location": "eastus", - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-12T08:22:12.7296171\u002B00:00", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-12T08:22:12.7296171\u002B00:00" - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPools/agentpoolnnvl0bg?api-version=2019-06-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:32:10 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11977", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T083211Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "type": "Microsoft.ContainerRegistry/registries/agentPools", - "properties": { - "count": 1, - "tier": "S1", - "os": "Linux", - "provisioningState": "Succeeded" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPools/agentpoolnnvl0bg", - "name": "agentpoolnnvl0bg", - "location": "eastus", - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-12T08:22:12.7296171\u002B00:00", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-12T08:22:12.7296171\u002B00:00" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPools/agentpoolnnvl0bg?api-version=2019-06-01-preview", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "26", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "count": 1 - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPools/agentpoolnnvl0bg/operationStatuses/00000000-0000-0000-0000-000000000000?api-version=2019-06-01-preview", - "Cache-Control": "no-cache", - "Content-Length": "659", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:32:11 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "10", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1196", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T083212Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "type": "Microsoft.ContainerRegistry/registries/agentPools", - "properties": { - "count": 1, - "tier": "S1", - "os": "Linux", - "provisioningState": "Updating" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPools/agentpoolnnvl0bg", - "name": "agentpoolnnvl0bg", - "location": "eastus", - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-12T08:22:12.7296171\u002B00:00", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-12T08:32:12.0322107\u002B00:00" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPools/agentpoolnnvl0bg/operationStatuses/00000000-0000-0000-0000-000000000000?api-version=2019-06-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:32:22 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11976", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T083223Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPools/agentpoolnnvl0bg?api-version=2019-06-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:32:22 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11975", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T083223Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "type": "Microsoft.ContainerRegistry/registries/agentPools", - "properties": { - "count": 1, - "tier": "S1", - "os": "Linux", - "provisioningState": "Succeeded" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPools/agentpoolnnvl0bg", - "name": "agentpoolnnvl0bg", - "location": "eastus", - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-12T08:22:12.7296171\u002B00:00", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-12T08:32:12.0322107\u002B00:00" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPools/agentpoolnnvl0bg/listQueueStatus?api-version=2019-06-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:32:24 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T083224Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "count": 0 - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPools/agentpoolnnvl0bg?api-version=2019-06-01-preview", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "659", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:32:25 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPoolsOperationResults/00000000-0000-0000-0000-000000000000/status?api-version=2019-06-01-preview", - "Pragma": "no-cache", - "Retry-After": "10", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14999", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T083226Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "type": "Microsoft.ContainerRegistry/registries/agentPools", - "properties": { - "count": 1, - "tier": "S1", - "os": "Linux", - "provisioningState": "Deleting" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPools/agentpoolnnvl0bg", - "name": "agentpoolnnvl0bg", - "location": "eastus", - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-12T08:22:12.7296171\u002B00:00", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-12T08:32:12.0322107\u002B00:00" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPoolsOperationResults/00000000-0000-0000-0000-000000000000/status?api-version=2019-06-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "4", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:32:36 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPoolsOperationResults/00000000-0000-0000-0000-000000000000/status?api-version=2019-06-01-preview", - "Pragma": "no-cache", - "Retry-After": "10", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11974", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T083236Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": "null" - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPoolsOperationResults/00000000-0000-0000-0000-000000000000/status?api-version=2019-06-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "4", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:32:46 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPoolsOperationResults/00000000-0000-0000-0000-000000000000/status?api-version=2019-06-01-preview", - "Pragma": "no-cache", - "Retry-After": "10", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11973", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T083247Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": "null" - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPoolsOperationResults/00000000-0000-0000-0000-000000000000/status?api-version=2019-06-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "4", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:32:57 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPoolsOperationResults/00000000-0000-0000-0000-000000000000/status?api-version=2019-06-01-preview", - "Pragma": "no-cache", - "Retry-After": "10", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11972", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T083258Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": "null" - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPoolsOperationResults/00000000-0000-0000-0000-000000000000/status?api-version=2019-06-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "4", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:33:08 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPoolsOperationResults/00000000-0000-0000-0000-000000000000/status?api-version=2019-06-01-preview", - "Pragma": "no-cache", - "Retry-After": "10", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11971", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T083308Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": "null" - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPoolsOperationResults/00000000-0000-0000-0000-000000000000/status?api-version=2019-06-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "4", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:33:19 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPoolsOperationResults/00000000-0000-0000-0000-000000000000/status?api-version=2019-06-01-preview", - "Pragma": "no-cache", - "Retry-After": "10", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11970", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T083319Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": "null" - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPoolsOperationResults/00000000-0000-0000-0000-000000000000/status?api-version=2019-06-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "4", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:33:30 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPoolsOperationResults/00000000-0000-0000-0000-000000000000/status?api-version=2019-06-01-preview", - "Pragma": "no-cache", - "Retry-After": "10", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11969", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T083330Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": "null" - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPoolsOperationResults/00000000-0000-0000-0000-000000000000/status?api-version=2019-06-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "4", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:33:40 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPoolsOperationResults/00000000-0000-0000-0000-000000000000/status?api-version=2019-06-01-preview", - "Pragma": "no-cache", - "Retry-After": "10", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11968", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T083340Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": "null" - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPoolsOperationResults/00000000-0000-0000-0000-000000000000/status?api-version=2019-06-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "4", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:33:51 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPoolsOperationResults/00000000-0000-0000-0000-000000000000/status?api-version=2019-06-01-preview", - "Pragma": "no-cache", - "Retry-After": "10", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11967", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T083351Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": "null" - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPoolsOperationResults/00000000-0000-0000-0000-000000000000/status?api-version=2019-06-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "4", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:34:01 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPoolsOperationResults/00000000-0000-0000-0000-000000000000/status?api-version=2019-06-01-preview", - "Pragma": "no-cache", - "Retry-After": "10", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11966", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T083402Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": "null" - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPoolsOperationResults/00000000-0000-0000-0000-000000000000/status?api-version=2019-06-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "4", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:34:12 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPoolsOperationResults/00000000-0000-0000-0000-000000000000/status?api-version=2019-06-01-preview", - "Pragma": "no-cache", - "Retry-After": "10", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11965", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T083413Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": "null" - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPoolsOperationResults/00000000-0000-0000-0000-000000000000/status?api-version=2019-06-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "4", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:34:23 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPoolsOperationResults/00000000-0000-0000-0000-000000000000/status?api-version=2019-06-01-preview", - "Pragma": "no-cache", - "Retry-After": "10", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11964", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T083424Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": "null" - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPoolsOperationResults/00000000-0000-0000-0000-000000000000/status?api-version=2019-06-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "4", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:34:33 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPoolsOperationResults/00000000-0000-0000-0000-000000000000/status?api-version=2019-06-01-preview", - "Pragma": "no-cache", - "Retry-After": "10", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11963", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T083434Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": "null" - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPoolsOperationResults/00000000-0000-0000-0000-000000000000/status?api-version=2019-06-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "4", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:34:45 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPoolsOperationResults/00000000-0000-0000-0000-000000000000/status?api-version=2019-06-01-preview", - "Pragma": "no-cache", - "Retry-After": "10", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11962", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T083445Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": "null" - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPoolsOperationResults/00000000-0000-0000-0000-000000000000/status?api-version=2019-06-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "4", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:34:56 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPoolsOperationResults/00000000-0000-0000-0000-000000000000/status?api-version=2019-06-01-preview", - "Pragma": "no-cache", - "Retry-After": "10", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11961", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T083456Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": "null" - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPoolsOperationResults/00000000-0000-0000-0000-000000000000/status?api-version=2019-06-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "4", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:35:07 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPoolsOperationResults/00000000-0000-0000-0000-000000000000/status?api-version=2019-06-01-preview", - "Pragma": "no-cache", - "Retry-After": "10", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11960", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T083507Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": "null" - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPoolsOperationResults/00000000-0000-0000-0000-000000000000/status?api-version=2019-06-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "4", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:35:17 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPoolsOperationResults/00000000-0000-0000-0000-000000000000/status?api-version=2019-06-01-preview", - "Pragma": "no-cache", - "Retry-After": "10", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11959", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T083518Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": "null" - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPoolsOperationResults/00000000-0000-0000-0000-000000000000/status?api-version=2019-06-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "4", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:35:28 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPoolsOperationResults/00000000-0000-0000-0000-000000000000/status?api-version=2019-06-01-preview", - "Pragma": "no-cache", - "Retry-After": "10", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11958", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T083528Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": "null" - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPoolsOperationResults/00000000-0000-0000-0000-000000000000/status?api-version=2019-06-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "4", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:35:39 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPoolsOperationResults/00000000-0000-0000-0000-000000000000/status?api-version=2019-06-01-preview", - "Pragma": "no-cache", - "Retry-After": "10", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11957", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T083539Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": "null" - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPoolsOperationResults/00000000-0000-0000-0000-000000000000/status?api-version=2019-06-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "4", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:35:49 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPoolsOperationResults/00000000-0000-0000-0000-000000000000/status?api-version=2019-06-01-preview", - "Pragma": "no-cache", - "Retry-After": "10", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11956", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T083550Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": "null" - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPoolsOperationResults/00000000-0000-0000-0000-000000000000/status?api-version=2019-06-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "4", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:36:00 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPoolsOperationResults/00000000-0000-0000-0000-000000000000/status?api-version=2019-06-01-preview", - "Pragma": "no-cache", - "Retry-After": "10", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11955", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T083601Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": "null" - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPoolsOperationResults/00000000-0000-0000-0000-000000000000/status?api-version=2019-06-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "4", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:36:11 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPoolsOperationResults/00000000-0000-0000-0000-000000000000/status?api-version=2019-06-01-preview", - "Pragma": "no-cache", - "Retry-After": "10", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11954", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T083611Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": "null" - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPoolsOperationResults/00000000-0000-0000-0000-000000000000/status?api-version=2019-06-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "4", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:36:21 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPoolsOperationResults/00000000-0000-0000-0000-000000000000/status?api-version=2019-06-01-preview", - "Pragma": "no-cache", - "Retry-After": "10", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11953", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T083622Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": "null" - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPoolsOperationResults/00000000-0000-0000-0000-000000000000/status?api-version=2019-06-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "4", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:36:32 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPoolsOperationResults/00000000-0000-0000-0000-000000000000/status?api-version=2019-06-01-preview", - "Pragma": "no-cache", - "Retry-After": "10", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11952", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T083633Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": "null" - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPoolsOperationResults/00000000-0000-0000-0000-000000000000/status?api-version=2019-06-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "4", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:36:43 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPoolsOperationResults/00000000-0000-0000-0000-000000000000/status?api-version=2019-06-01-preview", - "Pragma": "no-cache", - "Retry-After": "10", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11951", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T083644Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": "null" - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/agentPoolsOperationResults/00000000-0000-0000-0000-000000000000/status?api-version=2019-06-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Date": "Wed, 12 Oct 2022 08:36:54 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11950", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T083655Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/tasks/tasknamenvl0bg?api-version=2019-06-01-preview", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "517", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "eastus", - "properties": { - "agentConfiguration": { - "cpu": 2 - }, - "isSystemTask": false, - "platform": { - "os": "Linux", - "architecture": "amd64" - }, - "status": "Enabled", - "step": { - "contextPath": "https://github.com/SteveLasker/node-helloworld", - "dockerFilePath": "DockerFile", - "imageNames": [ - "testtask:v1" - ], - "isPushEnabled": true, - "noCache": false, - "type": "Docker" - }, - "trigger": { - "baseImageTrigger": { - "baseImageTriggerType": "Runtime", - "name": "myBaseImageTrigger", - "status": "Enabled", - "updateTriggerPayloadType": "Default" - } - } - }, - "tags": { - "testkey": "value" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:36:58 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1195", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T083659Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "type": "Microsoft.ContainerRegistry/registries/tasks", - "properties": { - "provisioningState": "Succeeded", - "creationDate": "2022-10-12T08:36:57.7713201\u002B00:00", - "status": "Enabled", - "platform": { - "os": "Linux", - "architecture": "amd64" - }, - "agentConfiguration": { - "cpu": 2 - }, - "timeout": 3600, - "step": { - "type": "Docker", - "imageNames": [ - "testtask:v1" - ], - "isPushEnabled": true, - "noCache": false, - "dockerFilePath": "DockerFile", - "contextPath": "https://github.com/SteveLasker/node-helloworld" - }, - "trigger": { - "baseImageTrigger": { - "baseImageTriggerType": "Runtime", - "updateTriggerPayloadType": "Default", - "status": "Enabled", - "name": "myBaseImageTrigger" - } - }, - "isSystemTask": false - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/tasks/tasknamenvl0bg", - "name": "tasknamenvl0bg", - "tags": { - "testkey": "value" - }, - "location": "eastus", - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-12T08:36:57.6283216\u002B00:00", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-12T08:36:57.6283216\u002B00:00" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/tasks?api-version=2019-06-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:36:59 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11949", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T083700Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "type": "Microsoft.ContainerRegistry/registries/tasks", - "properties": { - "provisioningState": "Succeeded", - "creationDate": "2022-10-12T08:36:57.7713201\u002B00:00", - "status": "Enabled", - "platform": { - "os": "Linux", - "architecture": "amd64" - }, - "agentConfiguration": { - "cpu": 2 - }, - "timeout": 3600, - "step": { - "type": "Docker", - "imageNames": [ - "testtask:v1" - ], - "isPushEnabled": true, - "noCache": false, - "dockerFilePath": "DockerFile", - "contextPath": "https://github.com/SteveLasker/node-helloworld" - }, - "trigger": { - "baseImageTrigger": { - "baseImageTriggerType": "Runtime", - "updateTriggerPayloadType": "Default", - "status": "Enabled", - "name": "myBaseImageTrigger" - } - }, - "isSystemTask": false - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/tasks/tasknamenvl0bg", - "name": "tasknamenvl0bg", - "tags": { - "testkey": "value" - }, - "location": "eastus", - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-12T08:36:57.6283216\u002B00:00", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-12T08:36:57.6283216\u002B00:00" - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/tasks/tasknamenvl0bg?api-version=2019-06-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:36:59 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11948", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T083700Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "type": "Microsoft.ContainerRegistry/registries/tasks", - "properties": { - "provisioningState": "Succeeded", - "creationDate": "2022-10-12T08:36:57.7713201\u002B00:00", - "status": "Enabled", - "platform": { - "os": "Linux", - "architecture": "amd64" - }, - "agentConfiguration": { - "cpu": 2 - }, - "timeout": 3600, - "step": { - "type": "Docker", - "imageNames": [ - "testtask:v1" - ], - "isPushEnabled": true, - "noCache": false, - "dockerFilePath": "DockerFile", - "contextPath": "https://github.com/SteveLasker/node-helloworld" - }, - "trigger": { - "baseImageTrigger": { - "baseImageTriggerType": "Runtime", - "updateTriggerPayloadType": "Default", - "status": "Enabled", - "name": "myBaseImageTrigger" - } - }, - "isSystemTask": false - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/tasks/tasknamenvl0bg", - "name": "tasknamenvl0bg", - "tags": { - "testkey": "value" - }, - "location": "eastus", - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-12T08:36:57.6283216\u002B00:00", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-12T08:36:57.6283216\u002B00:00" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/tasks/tasknamenvl0bg?api-version=2019-06-01-preview", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "28", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "tags": { - "testkey": "value" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:37:02 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1194", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T083702Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "type": "Microsoft.ContainerRegistry/registries/tasks", - "properties": { - "provisioningState": "Succeeded", - "creationDate": "2022-10-12T08:36:57.7713201\u002B00:00", - "status": "Enabled", - "platform": { - "os": "Linux", - "architecture": "amd64" - }, - "agentConfiguration": { - "cpu": 2 - }, - "timeout": 3600, - "step": { - "type": "Docker", - "imageNames": [ - "testtask:v1" - ], - "isPushEnabled": true, - "noCache": false, - "dockerFilePath": "DockerFile", - "contextPath": "https://github.com/SteveLasker/node-helloworld" - }, - "trigger": { - "baseImageTrigger": { - "baseImageTriggerType": "Runtime", - "updateTriggerPayloadType": "Default", - "status": "Enabled", - "name": "myBaseImageTrigger" - } - }, - "isSystemTask": false - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/tasks/tasknamenvl0bg", - "name": "tasknamenvl0bg", - "tags": { - "testkey": "value" - }, - "location": "eastus", - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-12T08:36:57.6283216\u002B00:00", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-12T08:37:01.3783526\u002B00:00" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/tasks/tasknamenvl0bg/listDetails?api-version=2019-06-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:37:02 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T083703Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "type": "Microsoft.ContainerRegistry/registries/tasks", - "properties": { - "provisioningState": "Succeeded", - "creationDate": "2022-10-12T08:36:57.7713201\u002B00:00", - "status": "Enabled", - "platform": { - "os": "Linux", - "architecture": "amd64" - }, - "agentConfiguration": { - "cpu": 2 - }, - "timeout": 3600, - "step": { - "type": "Docker", - "imageNames": [ - "testtask:v1" - ], - "isPushEnabled": true, - "noCache": false, - "dockerFilePath": "DockerFile", - "contextPath": "https://github.com/SteveLasker/node-helloworld" - }, - "trigger": { - "baseImageTrigger": { - "baseImageTriggerType": "Runtime", - "updateTriggerPayloadType": "Default", - "status": "Enabled", - "name": "myBaseImageTrigger" - } - }, - "isSystemTask": false - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/tasks/tasknamenvl0bg", - "name": "tasknamenvl0bg", - "tags": { - "testkey": "value" - }, - "location": "eastus", - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-12T08:36:57.6283216\u002B00:00", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-12T08:37:01.3783526\u002B00:00" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/taskRuns/taskrunnamnvl0bg?api-version=2019-06-01-preview", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "318", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "forceUpdateTag": "test", - "runRequest": { - "credentials": {}, - "encodedTaskContent": "c3RlcHM6IAogIC0gY21kOiB7eyAuVmFsdWVzLmNvbW1hbmQgfX0K", - "encodedValuesContent": "Y29tbWFuZDogYmFzaCBlY2hvIHt7LlJ1bi5SZWdpc3RyeX19Cg==", - "platform": { - "os": "Linux", - "architecture": "amd64" - }, - "type": "EncodedTaskRunRequest", - "values": [] - } - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/taskRuns/taskrunnamnvl0bg/operationStatuses/ca1?api-version=2019-06-01-preview", - "Cache-Control": "no-cache", - "Content-Length": "1404", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:37:03 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "30", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1193", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T083704Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "type": "Microsoft.ContainerRegistry/registries/taskRuns", - "properties": { - "provisioningState": "Creating", - "runRequest": { - "type": "EncodedTaskRunRequest", - "encodedTaskContent": "c3RlcHM6IAogIC0gY21kOiB7eyAuVmFsdWVzLmNvbW1hbmQgfX0K", - "encodedValuesContent": "Y29tbWFuZDogYmFzaCBlY2hvIHt7LlJ1bi5SZWdpc3RyeX19Cg==", - "values": [], - "platform": { - "os": "Linux", - "architecture": "amd64" - } - }, - "runResult": { - "type": "Microsoft.ContainerRegistry/registries/runs", - "properties": { - "runId": "ca1", - "status": "Queued", - "lastUpdatedTime": "2022-10-12T08:37:04\u002B00:00", - "runType": "QuickRun", - "createTime": "2022-10-12T08:37:04.4078443\u002B00:00", - "platform": { - "os": "Linux", - "architecture": "amd64" - }, - "agentConfiguration": { - "cpu": 2 - }, - "provisioningState": "Succeeded", - "isArchiveEnabled": false - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/runs/ca1", - "name": "ca1" - } - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/taskRuns/taskrunnamnvl0bg", - "name": "taskrunnamnvl0bg", - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-12T08:37:04.003373\u002B00:00", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-12T08:37:04.003373\u002B00:00" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/taskRuns/taskrunnamnvl0bg/operationStatuses/ca1?api-version=2019-06-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/taskRuns/taskrunnamnvl0bg/operationStatuses/ca1/operationStatuses/ca1?api-version=2019-06-01-preview", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:37:35 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "30", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11947", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T083735Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/taskRuns/taskrunnamnvl0bg?api-version=2019-06-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:37:36 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11946", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T083736Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "type": "Microsoft.ContainerRegistry/registries/taskRuns", - "properties": { - "provisioningState": "Succeeded", - "runRequest": { - "type": "EncodedTaskRunRequest", - "encodedTaskContent": "c3RlcHM6IAogIC0gY21kOiB7eyAuVmFsdWVzLmNvbW1hbmQgfX0K", - "encodedValuesContent": "Y29tbWFuZDogYmFzaCBlY2hvIHt7LlJ1bi5SZWdpc3RyeX19Cg==", - "values": [], - "platform": { - "os": "Linux", - "architecture": "amd64" - } - }, - "runResult": { - "type": "Microsoft.ContainerRegistry/registries/runs", - "properties": { - "runId": "ca1", - "status": "Succeeded", - "lastUpdatedTime": "2022-10-12T08:37:11\u002B00:00", - "runType": "QuickRun", - "createTime": "2022-10-12T08:37:04.4078443\u002B00:00", - "startTime": "2022-10-12T08:37:04.8476801\u002B00:00", - "finishTime": "2022-10-12T08:37:11.6591648\u002B00:00", - "platform": { - "os": "Linux", - "architecture": "amd64" - }, - "agentConfiguration": { - "cpu": 2 - }, - "provisioningState": "Succeeded", - "isArchiveEnabled": false - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/runs/ca1", - "name": "ca1" - } - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/taskRuns/taskrunnamnvl0bg", - "name": "taskrunnamnvl0bg", - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-12T08:37:04.003373\u002B00:00", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-12T08:37:04.003373\u002B00:00" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/taskRuns?api-version=2019-06-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:37:36 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11945", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T083737Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "type": "Microsoft.ContainerRegistry/registries/taskRuns", - "properties": { - "provisioningState": "Succeeded", - "runRequest": { - "type": "EncodedTaskRunRequest", - "encodedTaskContent": "c3RlcHM6IAogIC0gY21kOiB7eyAuVmFsdWVzLmNvbW1hbmQgfX0K", - "encodedValuesContent": "Y29tbWFuZDogYmFzaCBlY2hvIHt7LlJ1bi5SZWdpc3RyeX19Cg==", - "values": [], - "platform": { - "os": "Linux", - "architecture": "amd64" - } - }, - "runResult": { - "type": "Microsoft.ContainerRegistry/registries/runs", - "properties": { - "runId": "ca1", - "status": "Succeeded", - "lastUpdatedTime": "2022-10-12T08:37:11\u002B00:00", - "runType": "QuickRun", - "createTime": "2022-10-12T08:37:04.4078443\u002B00:00", - "startTime": "2022-10-12T08:37:04.8476801\u002B00:00", - "finishTime": "2022-10-12T08:37:11.6591648\u002B00:00", - "platform": { - "os": "Linux", - "architecture": "amd64" - }, - "agentConfiguration": { - "cpu": 2 - }, - "provisioningState": "Succeeded", - "isArchiveEnabled": false - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/runs/ca1", - "name": "ca1" - } - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/taskRuns/taskrunnamnvl0bg", - "name": "taskrunnamnvl0bg", - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-12T08:37:04.003373\u002B00:00", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-12T08:37:04.003373\u002B00:00" - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/taskRuns/taskrunnamnvl0bg?api-version=2019-06-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:37:37 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11944", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T083737Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "type": "Microsoft.ContainerRegistry/registries/taskRuns", - "properties": { - "provisioningState": "Succeeded", - "runRequest": { - "type": "EncodedTaskRunRequest", - "encodedTaskContent": "c3RlcHM6IAogIC0gY21kOiB7eyAuVmFsdWVzLmNvbW1hbmQgfX0K", - "encodedValuesContent": "Y29tbWFuZDogYmFzaCBlY2hvIHt7LlJ1bi5SZWdpc3RyeX19Cg==", - "values": [], - "platform": { - "os": "Linux", - "architecture": "amd64" - } - }, - "runResult": { - "type": "Microsoft.ContainerRegistry/registries/runs", - "properties": { - "runId": "ca1", - "status": "Succeeded", - "lastUpdatedTime": "2022-10-12T08:37:11\u002B00:00", - "runType": "QuickRun", - "createTime": "2022-10-12T08:37:04.4078443\u002B00:00", - "startTime": "2022-10-12T08:37:04.8476801\u002B00:00", - "finishTime": "2022-10-12T08:37:11.6591648\u002B00:00", - "platform": { - "os": "Linux", - "architecture": "amd64" - }, - "agentConfiguration": { - "cpu": 2 - }, - "provisioningState": "Succeeded", - "isArchiveEnabled": false - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/runs/ca1", - "name": "ca1" - } - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/taskRuns/taskrunnamnvl0bg", - "name": "taskrunnamnvl0bg", - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-12T08:37:04.003373\u002B00:00", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-12T08:37:04.003373\u002B00:00" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/taskRuns/taskrunnamnvl0bg?api-version=2019-06-01-preview", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "342", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "forceUpdateTag": "test", - "runRequest": { - "credentials": {}, - "encodedTaskContent": "c3RlcHM6IAogIC0gY21kOiB7eyAuVmFsdWVzLmNvbW1hbmQgfX0K", - "encodedValuesContent": "Y29tbWFuZDogYmFzaCBlY2hvIHt7LlJ1bi5SZWdpc3RyeX19Cg==", - "isArchiveEnabled": true, - "platform": { - "os": "Linux", - "architecture": "amd64" - }, - "type": "EncodedTaskRunRequest", - "values": [] - } - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "1505", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:37:38 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1192", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T083738Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "type": "Microsoft.ContainerRegistry/registries/taskRuns", - "properties": { - "provisioningState": "Succeeded", - "runRequest": { - "type": "EncodedTaskRunRequest", - "encodedTaskContent": "c3RlcHM6IAogIC0gY21kOiB7eyAuVmFsdWVzLmNvbW1hbmQgfX0K", - "encodedValuesContent": "Y29tbWFuZDogYmFzaCBlY2hvIHt7LlJ1bi5SZWdpc3RyeX19Cg==", - "values": [], - "platform": { - "os": "Linux", - "architecture": "amd64" - } - }, - "runResult": { - "type": "Microsoft.ContainerRegistry/registries/runs", - "properties": { - "runId": "ca1", - "status": "Succeeded", - "lastUpdatedTime": "2022-10-12T08:37:11\u002B00:00", - "runType": "QuickRun", - "createTime": "2022-10-12T08:37:04.4078443\u002B00:00", - "startTime": "2022-10-12T08:37:04.8476801\u002B00:00", - "finishTime": "2022-10-12T08:37:11.6591648\u002B00:00", - "platform": { - "os": "Linux", - "architecture": "amd64" - }, - "agentConfiguration": { - "cpu": 2 - }, - "provisioningState": "Succeeded", - "isArchiveEnabled": false - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/runs/ca1", - "name": "ca1" - } - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/taskRuns/taskrunnamnvl0bg", - "name": "taskrunnamnvl0bg", - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-12T08:37:04.003373\u002B00:00", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-12T08:37:04.003373\u002B00:00" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/taskRuns/taskrunnamnvl0bg/listDetails?api-version=2019-06-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:37:39 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1197", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T083739Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "type": "Microsoft.ContainerRegistry/registries/taskRuns", - "properties": { - "provisioningState": "Succeeded", - "runRequest": { - "type": "EncodedTaskRunRequest", - "encodedTaskContent": "c3RlcHM6IAogIC0gY21kOiB7eyAuVmFsdWVzLmNvbW1hbmQgfX0K", - "encodedValuesContent": "Y29tbWFuZDogYmFzaCBlY2hvIHt7LlJ1bi5SZWdpc3RyeX19Cg==", - "values": [], - "platform": { - "os": "Linux", - "architecture": "amd64" - }, - "credentials": {} - }, - "runResult": { - "type": "Microsoft.ContainerRegistry/registries/runs", - "properties": { - "runId": "ca1", - "status": "Succeeded", - "lastUpdatedTime": "2022-10-12T08:37:11\u002B00:00", - "runType": "QuickRun", - "createTime": "2022-10-12T08:37:04.4078443\u002B00:00", - "startTime": "2022-10-12T08:37:04.8476801\u002B00:00", - "finishTime": "2022-10-12T08:37:11.6591648\u002B00:00", - "platform": { - "os": "Linux", - "architecture": "amd64" - }, - "agentConfiguration": { - "cpu": 2 - }, - "provisioningState": "Succeeded", - "isArchiveEnabled": false - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/runs/ca1", - "name": "ca1" - } - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/taskRuns/taskrunnamnvl0bg", - "name": "taskrunnamnvl0bg", - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-12T08:37:04.003373\u002B00:00", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-12T08:37:04.003373\u002B00:00" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/listBuildSourceUploadUrl?api-version=2019-06-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:37:39 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1196", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T083740Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "uploadUrl": "https://eusmanaged8.blob.core.windows.net/4b152b64b11b4fbc99337644b7a7feb5-ymz4fcc3pf/source/202210120000/00000000-0000-0000-0000-000000000000.tar.gz?sv=2018-03-28\u0026sr=b\u0026sig=H0js71IE1XUqP3PRUyChQrKVAOMHFSVGMu4qPxA55DE%3D\u0026se=2022-10-12T09%3A37%3A39Z\u0026sp=cw", - "relativePath": "source/202210120000/00000000-0000-0000-0000-000000000000.tar.gz" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/runs?%24top=10\u0026api-version=2019-06-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:37:40 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11943", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T083740Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "type": "Microsoft.ContainerRegistry/registries/runs", - "properties": { - "runId": "ca1", - "status": "Succeeded", - "lastUpdatedTime": "2022-10-12T08:37:11\u002B00:00", - "runType": "QuickRun", - "createTime": "2022-10-12T08:37:04.4078443\u002B00:00", - "startTime": "2022-10-12T08:37:04.8476801\u002B00:00", - "finishTime": "2022-10-12T08:37:11.6591648\u002B00:00", - "platform": { - "os": "Linux", - "architecture": "amd64" - }, - "agentConfiguration": { - "cpu": 2 - }, - "provisioningState": "Succeeded", - "isArchiveEnabled": false - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/runs/ca1", - "name": "ca1" - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/runs/ca1?api-version=2019-06-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:37:41 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11942", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T083741Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "type": "Microsoft.ContainerRegistry/registries/runs", - "properties": { - "runId": "ca1", - "status": "Succeeded", - "lastUpdatedTime": "2022-10-12T08:37:11\u002B00:00", - "runType": "QuickRun", - "createTime": "2022-10-12T08:37:04.4078443\u002B00:00", - "startTime": "2022-10-12T08:37:04.8476801\u002B00:00", - "finishTime": "2022-10-12T08:37:11.6591648\u002B00:00", - "platform": { - "os": "Linux", - "architecture": "amd64" - }, - "agentConfiguration": { - "cpu": 2 - }, - "provisioningState": "Succeeded", - "isArchiveEnabled": false - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/runs/ca1", - "name": "ca1" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/runs/ca1/cancel?api-version=2019-06-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Wed, 12 Oct 2022 08:37:42 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1195", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T083742Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/runs/ca1/listLogSasUrl?api-version=2019-06-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:37:43 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1194", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T083743Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "logLink": "https://eusmanaged8.blob.core.windows.net/4b152b64b11b4fbc99337644b7a7feb5-ymz4fcc3pf/logs/ca1/rawtext.log?sv=2018-03-28\u0026sr=b\u0026sig=pALMC5RVW1w74I5aegzp5Lfy0KONxPDeVATJ3Pwnsp0%3D\u0026se=2022-10-12T08%3A52%3A43Z\u0026sp=r" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/scheduleRun?api-version=2019-06-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "677", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "agentConfiguration": { - "cpu": 2 - }, - "arguments": [ - { - "name": "mytestargument", - "value": "mytestvalue", - "isSecret": false - }, - { - "name": "mysecrettestargument", - "value": "mysecrettestvalue", - "isSecret": true - } - ], - "dockerFilePath": "DockerFile", - "imageNames": [ - "azurerest:testtag" - ], - "isArchiveEnabled": true, - "isPushEnabled": true, - "noCache": true, - "platform": { - "os": "Linux", - "architecture": "amd64" - }, - "sourceLocation": "https://myaccount.blob.core.windows.net/sascontainer/source.zip?sv=2015-04-05\u0026st=2015-04-29T22%3A18%3A26Z\u0026se=2015-04-30T02%3A23%3A26Z\u0026sr=b\u0026sp=rw\u0026sip=168.1.5.60-168.1.5.70\u0026spr=https\u0026sig=Z%2FRHIX5Xcg0Mq2rqI3OlWTjEg2tYkboXr1P9ZUXDtkk%3D", - "type": "DockerBuildRequest" - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:37:44 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1193", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T083744Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "type": "Microsoft.ContainerRegistry/registries/runs", - "properties": { - "runId": "ca2", - "status": "Queued", - "lastUpdatedTime": "2022-10-12T08:37:44\u002B00:00", - "provisioningState": "Succeeded", - "isArchiveEnabled": true - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/runs/ca2", - "name": "ca2", - "systemData": { - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-12T08:37:43.7068209\u002B00:00" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/taskRuns/taskrunnamnvl0bg?api-version=2019-06-01-preview", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Wed, 12 Oct 2022 08:37:45 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14998", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T083745Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/runs/ca1?api-version=2019-06-01-preview", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "25", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "isArchiveEnabled": true - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:37:45 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1191", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T083745Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "type": "Microsoft.ContainerRegistry/registries/runs", - "properties": { - "runId": "ca1", - "status": "Succeeded", - "lastUpdatedTime": "2022-10-12T08:37:45\u002B00:00", - "runType": "QuickRun", - "createTime": "2022-10-12T08:37:04.4078443\u002B00:00", - "startTime": "2022-10-12T08:37:04.8476801\u002B00:00", - "finishTime": "2022-10-12T08:37:11.6591648\u002B00:00", - "platform": { - "os": "Linux", - "architecture": "amd64" - }, - "agentConfiguration": { - "cpu": 2 - }, - "provisioningState": "Succeeded", - "isArchiveEnabled": true - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/runs/ca1", - "name": "ca1", - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-12T08:37:45.3943351\u002B00:00", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-12T08:37:45.3943351\u002B00:00" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registryna2nvl0bg/tasks/tasknamenvl0bg?api-version=2019-06-01-preview", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Wed, 12 Oct 2022 08:37:48 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14997", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T083749Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Wed, 12 Oct 2022 08:38:02 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ1NzItRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14999", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T083803Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": { - "recordingRandomSeed": "1665562909" - } -} diff --git a/sdk/resourcemanager/containerregistry/armcontainerregistry/testdata/recordings/TestContainerregistryTestSuite.json b/sdk/resourcemanager/containerregistry/armcontainerregistry/testdata/recordings/TestContainerregistryTestSuite.json deleted file mode 100644 index d83021ee2ffa..000000000000 --- a/sdk/resourcemanager/containerregistry/armcontainerregistry/testdata/recordings/TestContainerregistryTestSuite.json +++ /dev/null @@ -1,4553 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "eastus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:38:08 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T083809Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "eastus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg?api-version=2022-02-01-preview", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "108", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "eastus", - "properties": { - "adminUserEnabled": true - }, - "sku": { - "name": "Premium" - }, - "tags": { - "key": "value" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "2022-02-01-preview", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:38:27 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T083827Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "sku": { - "name": "Premium", - "tier": "Premium" - }, - "type": "Microsoft.ContainerRegistry/registries", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg", - "name": "registrynanvl0bg", - "location": "eastus", - "tags": { - "key": "value" - }, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-12T08:38:12.7965718\u002B00:00", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-12T08:38:12.7965718\u002B00:00" - }, - "properties": { - "loginServer": "registrynanvl0bg.azurecr.io", - "creationDate": "2022-10-12T08:38:12.7965718Z", - "provisioningState": "Succeeded", - "adminUserEnabled": true, - "networkRuleSet": { - "defaultAction": "Allow", - "ipRules": [] - }, - "policies": { - "quarantinePolicy": { - "status": "disabled" - }, - "trustPolicy": { - "type": "Notary", - "status": "disabled" - }, - "retentionPolicy": { - "days": 7, - "lastUpdatedTime": "2022-10-12T08:38:26.1518374\u002B00:00", - "status": "disabled" - }, - "exportPolicy": { - "status": "enabled" - }, - "azureADAuthenticationAsArmPolicy": { - "status": "enabled" - }, - "softDeletePolicy": { - "retentionDays": 7, - "lastUpdatedTime": "2022-10-12T08:38:26.1518374\u002B00:00", - "status": "disabled" - } - }, - "encryption": { - "status": "disabled" - }, - "dataEndpointEnabled": false, - "dataEndpointHostNames": [], - "privateEndpointConnections": [], - "publicNetworkAccess": "Enabled", - "networkRuleBypassOptions": "AzureServices", - "zoneRedundancy": "Disabled", - "anonymousPullEnabled": false - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/scopeMaps/scopemapnanvl0bg?api-version=2022-02-01-preview", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "146", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "actions": [ - "repositories/myrepository/content/write", - "repositories/myrepository/content/delete" - ], - "description": "Developer Scopes" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "2019-05-01-preview, 2020-11-01-preview, 2021-06-01-preview, 2021-08-01-preview, 2021-12-01-preview, 2022-02-01-preview", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:38:28 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1197", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T083828Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "type": "Microsoft.ContainerRegistry/registries/scopeMaps", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/scopeMaps/scopemapnanvl0bg", - "name": "scopemapnanvl0bg", - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-12T08:38:27.9649922\u002B00:00", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-12T08:38:27.9649922\u002B00:00" - }, - "properties": { - "description": "Developer Scopes", - "type": "UserDefined", - "creationDate": "2022-10-12T08:38:28.2303787\u002B00:00", - "provisioningState": "Succeeded", - "actions": [ - "repositories/myrepository/content/write", - "repositories/myrepository/content/delete" - ] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/tokens/tokennamenvl0bg?api-version=2022-02-01-preview", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "226", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "scopeMapId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/scopeMaps/scopemapnanvl0bg", - "status": "disabled" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "api-supported-versions": "2019-05-01-preview, 2020-11-01-preview, 2021-06-01-preview, 2021-08-01-preview, 2021-12-01-preview, 2022-02-01-preview", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/tokens/tokennamenvl0bg/operationStatuses/token-00000000-0000-0000-0000-000000000000?api-version=2022-02-01-preview", - "Cache-Control": "no-cache", - "Content-Length": "885", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:38:28 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "10", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1196", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T083829Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "type": "Microsoft.ContainerRegistry/registries/tokens", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/tokens/tokennamenvl0bg", - "name": "tokennamenvl0bg", - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-12T08:38:28.5899971\u002B00:00", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-12T08:38:28.5899971\u002B00:00" - }, - "properties": { - "creationDate": "2022-10-12T08:38:28.9492744\u002B00:00", - "provisioningState": "Creating", - "scopeMapId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/scopeMaps/scopemapnanvl0bg", - "credentials": { - "passwords": [] - }, - "status": "disabled" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/tokens/tokennamenvl0bg/operationStatuses/token-00000000-0000-0000-0000-000000000000?api-version=2022-02-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "2019-05-01-preview, 2020-11-01-preview, 2021-06-01-preview, 2021-08-01-preview, 2021-12-01-preview, 2022-02-01-preview", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/tokens/tokennamenvl0bg/operationStatuses/token-00000000-0000-0000-0000-000000000000?api-version=2022-02-01-preview", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:38:39 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "10", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11999", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T083839Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/tokens/tokennamenvl0bg?api-version=2022-02-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "2019-05-01-preview, 2020-11-01-preview, 2021-06-01-preview, 2021-08-01-preview, 2021-12-01-preview, 2022-02-01-preview", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:38:40 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11998", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T083840Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "type": "Microsoft.ContainerRegistry/registries/tokens", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/tokens/tokennamenvl0bg", - "name": "tokennamenvl0bg", - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-12T08:38:28.5899971\u002B00:00", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-12T08:38:28.5899971\u002B00:00" - }, - "properties": { - "creationDate": "2022-10-12T08:38:28.9492744\u002B00:00", - "provisioningState": "Succeeded", - "scopeMapId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/scopeMaps/scopemapnanvl0bg", - "credentials": { - "passwords": [] - }, - "status": "disabled" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerRegistry/checkNameAvailability?api-version=2022-02-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "69", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "name": "myRegistry", - "type": "Microsoft.ContainerRegistry/registries" - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:38:41 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11997", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T083841Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "nameAvailable": false, - "reason": "AlreadyExists", - "message": "The registry myRegistry is already in use." - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerRegistry/registries?api-version=2022-02-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "2892", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:38:41 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-original-request-ids": [ - "", - "" - ], - "x-ms-ratelimit-remaining-subscription-reads": "11996", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T083841Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "sku": { - "name": "Premium", - "tier": "Premium" - }, - "type": "Microsoft.ContainerRegistry/registries", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg", - "name": "registrynanvl0bg", - "location": "eastus", - "tags": { - "key": "value" - }, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-12T08:38:12.7965718\u002B00:00", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-12T08:38:12.7965718\u002B00:00" - }, - "properties": { - "loginServer": "registrynanvl0bg.azurecr.io", - "creationDate": "2022-10-12T08:38:12.7965718Z", - "provisioningState": "Succeeded", - "adminUserEnabled": true, - "networkRuleSet": { - "defaultAction": "Allow", - "ipRules": [] - }, - "policies": { - "quarantinePolicy": { - "status": "disabled" - }, - "trustPolicy": { - "type": "Notary", - "status": "disabled" - }, - "retentionPolicy": { - "days": 7, - "lastUpdatedTime": "2022-10-12T08:38:26.1518374\u002B00:00", - "status": "disabled" - }, - "exportPolicy": { - "status": "enabled" - }, - "azureADAuthenticationAsArmPolicy": { - "status": "enabled" - }, - "softDeletePolicy": { - "retentionDays": 7, - "lastUpdatedTime": "2022-10-12T08:38:26.1518374\u002B00:00", - "status": "disabled" - } - }, - "encryption": { - "status": "disabled" - }, - "dataEndpointEnabled": false, - "dataEndpointHostNames": [], - "privateEndpointConnections": [], - "publicNetworkAccess": "Enabled", - "networkRuleBypassOptions": "AzureServices", - "zoneRedundancy": "Disabled", - "anonymousPullEnabled": false - } - }, - { - "sku": { - "name": "Standard", - "tier": "Standard" - }, - "type": "Microsoft.ContainerRegistry/registries", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/chenjieshitest/providers/Microsoft.ContainerRegistry/registries/chenjieshiregistry", - "name": "chenjieshiregistry", - "location": "eastasia", - "tags": {}, - "systemData": { - "createdBy": "chenjieshi@microsoft.com", - "createdByType": "User", - "createdAt": "2022-10-11T06:31:43.0424829\u002B00:00", - "lastModifiedBy": "chenjieshi@microsoft.com", - "lastModifiedByType": "User", - "lastModifiedAt": "2022-10-11T06:35:24.5424266\u002B00:00" - }, - "properties": { - "loginServer": "chenjieshiregistry.azurecr.io", - "creationDate": "2022-10-11T06:31:43.0424829Z", - "provisioningState": "Succeeded", - "adminUserEnabled": true, - "policies": { - "quarantinePolicy": { - "status": "disabled" - }, - "trustPolicy": { - "type": "Notary", - "status": "disabled" - }, - "retentionPolicy": { - "days": 7, - "lastUpdatedTime": "2022-10-11T06:31:46.4963426\u002B00:00", - "status": "disabled" - }, - "exportPolicy": { - "status": "enabled" - }, - "azureADAuthenticationAsArmPolicy": { - "status": "enabled" - }, - "softDeletePolicy": { - "retentionDays": 7, - "lastUpdatedTime": "2022-10-11T06:31:46.4963426\u002B00:00", - "status": "disabled" - } - }, - "encryption": { - "status": "disabled" - }, - "dataEndpointEnabled": false, - "dataEndpointHostNames": [], - "privateEndpointConnections": [], - "publicNetworkAccess": "Enabled", - "networkRuleBypassOptions": "AzureServices", - "zoneRedundancy": "Disabled", - "anonymousPullEnabled": false - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg?api-version=2022-02-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "2022-02-01-preview", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:38:42 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11995", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T083842Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "sku": { - "name": "Premium", - "tier": "Premium" - }, - "type": "Microsoft.ContainerRegistry/registries", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg", - "name": "registrynanvl0bg", - "location": "eastus", - "tags": { - "key": "value" - }, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-12T08:38:12.7965718\u002B00:00", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-12T08:38:12.7965718\u002B00:00" - }, - "properties": { - "loginServer": "registrynanvl0bg.azurecr.io", - "creationDate": "2022-10-12T08:38:12.7965718Z", - "provisioningState": "Succeeded", - "adminUserEnabled": true, - "networkRuleSet": { - "defaultAction": "Allow", - "ipRules": [] - }, - "policies": { - "quarantinePolicy": { - "status": "disabled" - }, - "trustPolicy": { - "type": "Notary", - "status": "disabled" - }, - "retentionPolicy": { - "days": 7, - "lastUpdatedTime": "2022-10-12T08:38:26.1518374\u002B00:00", - "status": "disabled" - }, - "exportPolicy": { - "status": "enabled" - }, - "azureADAuthenticationAsArmPolicy": { - "status": "enabled" - }, - "softDeletePolicy": { - "retentionDays": 7, - "lastUpdatedTime": "2022-10-12T08:38:26.1518374\u002B00:00", - "status": "disabled" - } - }, - "encryption": { - "status": "disabled" - }, - "dataEndpointEnabled": false, - "dataEndpointHostNames": [], - "privateEndpointConnections": [], - "publicNetworkAccess": "Enabled", - "networkRuleBypassOptions": "AzureServices", - "zoneRedundancy": "Disabled", - "anonymousPullEnabled": false - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries?api-version=2022-02-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "2022-02-01-preview", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:38:42 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11994", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T083842Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "sku": { - "name": "Premium", - "tier": "Premium" - }, - "type": "Microsoft.ContainerRegistry/registries", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg", - "name": "registrynanvl0bg", - "location": "eastus", - "tags": { - "key": "value" - }, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-12T08:38:12.7965718\u002B00:00", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-12T08:38:12.7965718\u002B00:00" - }, - "properties": { - "loginServer": "registrynanvl0bg.azurecr.io", - "creationDate": "2022-10-12T08:38:12.7965718Z", - "provisioningState": "Succeeded", - "adminUserEnabled": true, - "networkRuleSet": { - "defaultAction": "Allow", - "ipRules": [] - }, - "policies": { - "quarantinePolicy": { - "status": "disabled" - }, - "trustPolicy": { - "type": "Notary", - "status": "disabled" - }, - "retentionPolicy": { - "days": 7, - "lastUpdatedTime": "2022-10-12T08:38:26.1518374\u002B00:00", - "status": "disabled" - }, - "exportPolicy": { - "status": "enabled" - }, - "azureADAuthenticationAsArmPolicy": { - "status": "enabled" - }, - "softDeletePolicy": { - "retentionDays": 7, - "lastUpdatedTime": "2022-10-12T08:38:26.1518374\u002B00:00", - "status": "disabled" - } - }, - "encryption": { - "status": "disabled" - }, - "dataEndpointEnabled": false, - "dataEndpointHostNames": [], - "privateEndpointConnections": [], - "publicNetworkAccess": "Enabled", - "networkRuleBypassOptions": "AzureServices", - "zoneRedundancy": "Disabled", - "anonymousPullEnabled": false - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/listUsages?api-version=2022-02-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "2022-02-01-preview", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:38:43 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11993", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T083843Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "name": "Size", - "limit": 536870912000, - "currentValue": 0, - "unit": "Bytes" - }, - { - "name": "Webhooks", - "limit": 500, - "currentValue": 0, - "unit": "Count" - }, - { - "name": "Geo-replications", - "limit": -1, - "currentValue": 0, - "unit": "Count" - }, - { - "name": "IPRules", - "limit": 100, - "currentValue": 0, - "unit": "Count" - }, - { - "name": "VNetRules", - "limit": 100, - "currentValue": 0, - "unit": "Count" - }, - { - "name": "PrivateEndpointConnections", - "limit": 200, - "currentValue": 0, - "unit": "Count" - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg?api-version=2022-02-01-preview", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "88", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "adminUserEnabled": true - }, - "sku": { - "name": "Premium" - }, - "tags": { - "key": "value" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "2022-02-01-preview", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:38:45 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1195", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T083846Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "sku": { - "name": "Premium", - "tier": "Premium" - }, - "type": "Microsoft.ContainerRegistry/registries", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg", - "name": "registrynanvl0bg", - "location": "eastus", - "tags": { - "key": "value" - }, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-12T08:38:12.7965718\u002B00:00", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-12T08:38:44.5255718\u002B00:00" - }, - "properties": { - "loginServer": "registrynanvl0bg.azurecr.io", - "creationDate": "2022-10-12T08:38:12.7965718Z", - "provisioningState": "Succeeded", - "adminUserEnabled": true, - "networkRuleSet": { - "defaultAction": "Allow", - "ipRules": [] - }, - "policies": { - "quarantinePolicy": { - "status": "disabled" - }, - "trustPolicy": { - "type": "Notary", - "status": "disabled" - }, - "retentionPolicy": { - "days": 7, - "lastUpdatedTime": "2022-10-12T08:38:26.1518374\u002B00:00", - "status": "disabled" - }, - "exportPolicy": { - "status": "enabled" - }, - "azureADAuthenticationAsArmPolicy": { - "status": "enabled" - }, - "softDeletePolicy": { - "retentionDays": 7, - "lastUpdatedTime": "2022-10-12T08:38:26.1518374\u002B00:00", - "status": "disabled" - } - }, - "encryption": { - "status": "disabled" - }, - "dataEndpointEnabled": false, - "dataEndpointHostNames": [], - "privateEndpointConnections": [], - "publicNetworkAccess": "Enabled", - "networkRuleBypassOptions": "AzureServices", - "zoneRedundancy": "Disabled", - "anonymousPullEnabled": false - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/privateLinkResources?api-version=2022-02-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "2022-02-01-preview", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:38:46 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11992", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T083846Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "type": "Microsoft.ContainerRegistry/registries/privateLinkResources", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/privateLinkResources/registry", - "name": "registry", - "properties": { - "groupId": "registry", - "requiredMembers": [ - "registry_data_eastus", - "registry" - ], - "requiredZoneNames": [ - "privatelink.azurecr.io" - ] - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/privateLinkResources/registry?api-version=2022-02-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "2022-02-01-preview", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:38:46 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11991", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T083847Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "type": "Microsoft.ContainerRegistry/registries/privateLinkResources", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/privateLinkResources/registry", - "name": "registry", - "properties": { - "groupId": "registry", - "requiredMembers": [ - "registry_data_eastus", - "registry" - ], - "requiredZoneNames": [ - "privatelink.azurecr.io" - ] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/exportPipelines/exportpipenvl0bg?api-version=2022-02-01-preview", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "281", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "identity": { - "type": "SystemAssigned" - }, - "location": "eastus", - "properties": { - "options": [ - "OverwriteBlobs" - ], - "target": { - "keyVaultUri": "https://myvault.vault.azure.net/secrets/acrexportsas", - "type": "AzureStorageBlobContainer", - "uri": "https://accountname.blob.core.windows.net/containername" - } - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "2019-12-01-preview, 2020-11-01-preview, 2021-06-01-preview, 2021-08-01-preview, 2021-12-01-preview, 2022-02-01-preview", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:38:50 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1194", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T083850Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "type": "Microsoft.ContainerRegistry/registries/exportPipelines", - "location": "EASTUS", - "identity": { - "principalId": "00000000-0000-0000-0000-000000000000", - "tenantId": "00000000-0000-0000-0000-000000000000", - "type": "systemAssigned" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/exportPipelines/exportpipenvl0bg", - "name": "exportpipenvl0bg", - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-12T08:38:47.5599313\u002B00:00", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-12T08:38:47.5599313\u002B00:00" - }, - "properties": { - "target": { - "type": "AzureStorageBlobContainer", - "uri": "https://accountname.blob.core.windows.net/containername", - "keyVaultUri": "https://myvault.vault.azure.net/secrets/acrexportsas" - }, - "options": [ - "OverwriteBlobs" - ], - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/exportPipelines?api-version=2022-02-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "2019-12-01-preview, 2020-11-01-preview, 2021-06-01-preview, 2021-08-01-preview, 2021-12-01-preview, 2022-02-01-preview", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:38:50 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11990", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T083851Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "type": "Microsoft.ContainerRegistry/registries/exportPipelines", - "location": "EASTUS", - "identity": { - "principalId": "00000000-0000-0000-0000-000000000000", - "tenantId": "00000000-0000-0000-0000-000000000000", - "type": "systemAssigned" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/exportPipelines/exportpipenvl0bg", - "name": "exportpipenvl0bg", - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-12T08:38:47.5599313\u002B00:00", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-12T08:38:47.5599313\u002B00:00" - }, - "properties": { - "target": { - "type": "AzureStorageBlobContainer", - "uri": "https://accountname.blob.core.windows.net/containername", - "keyVaultUri": "https://myvault.vault.azure.net/secrets/acrexportsas" - }, - "options": [ - "OverwriteBlobs" - ], - "provisioningState": "Succeeded" - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/exportPipelines/exportpipenvl0bg?api-version=2022-02-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "2019-12-01-preview, 2020-11-01-preview, 2021-06-01-preview, 2021-08-01-preview, 2021-12-01-preview, 2022-02-01-preview", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:38:51 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11989", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T083851Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "type": "Microsoft.ContainerRegistry/registries/exportPipelines", - "location": "EASTUS", - "identity": { - "principalId": "00000000-0000-0000-0000-000000000000", - "tenantId": "00000000-0000-0000-0000-000000000000", - "type": "systemAssigned" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/exportPipelines/exportpipenvl0bg", - "name": "exportpipenvl0bg", - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-12T08:38:47.5599313\u002B00:00", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-12T08:38:47.5599313\u002B00:00" - }, - "properties": { - "target": { - "type": "AzureStorageBlobContainer", - "uri": "https://accountname.blob.core.windows.net/containername", - "keyVaultUri": "https://myvault.vault.azure.net/secrets/acrexportsas" - }, - "options": [ - "OverwriteBlobs" - ], - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/exportPipelines/exportpipenvl0bg?api-version=2022-02-01-preview", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "2019-12-01-preview, 2020-11-01-preview, 2021-06-01-preview, 2021-08-01-preview, 2021-12-01-preview, 2022-02-01-preview", - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Wed, 12 Oct 2022 08:38:52 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14998", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T083852Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/importPipelines/importpipenvl0bg?api-version=2022-02-01-preview", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "327", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "identity": { - "type": "SystemAssigned" - }, - "location": "eastus", - "properties": { - "options": [ - "OverwriteTags", - "DeleteSourceBlobOnSuccess", - "ContinueOnErrors" - ], - "source": { - "keyVaultUri": "https://myvault.vault.azure.net/secrets/acrimportsas", - "type": "AzureStorageBlobContainer", - "uri": "https://accountname.blob.core.windows.net/containername" - } - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "2019-12-01-preview, 2020-11-01-preview, 2021-06-01-preview, 2021-08-01-preview, 2021-12-01-preview, 2022-02-01-preview", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:38:53 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1193", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T083854Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "type": "Microsoft.ContainerRegistry/registries/importPipelines", - "location": "EASTUS", - "identity": { - "principalId": "00000000-0000-0000-0000-000000000000", - "tenantId": "00000000-0000-0000-0000-000000000000", - "type": "systemAssigned" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/importPipelines/importpipenvl0bg", - "name": "importpipenvl0bg", - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-12T08:38:53.0786397\u002B00:00", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-12T08:38:53.0786397\u002B00:00" - }, - "properties": { - "source": { - "type": "AzureStorageBlobContainer", - "uri": "https://accountname.blob.core.windows.net/containername", - "keyVaultUri": "https://myvault.vault.azure.net/secrets/acrimportsas" - }, - "trigger": { - "sourceTrigger": { - "status": "Enabled" - } - }, - "options": [ - "OverwriteTags", - "DeleteSourceBlobOnSuccess", - "ContinueOnErrors" - ], - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/importPipelines?api-version=2022-02-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "2019-12-01-preview, 2020-11-01-preview, 2021-06-01-preview, 2021-08-01-preview, 2021-12-01-preview, 2022-02-01-preview", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:38:54 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11988", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T083854Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "type": "Microsoft.ContainerRegistry/registries/importPipelines", - "location": "EASTUS", - "identity": { - "principalId": "00000000-0000-0000-0000-000000000000", - "tenantId": "00000000-0000-0000-0000-000000000000", - "type": "systemAssigned" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/importPipelines/importpipenvl0bg", - "name": "importpipenvl0bg", - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-12T08:38:53.0786397\u002B00:00", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-12T08:38:53.0786397\u002B00:00" - }, - "properties": { - "source": { - "type": "AzureStorageBlobContainer", - "uri": "https://accountname.blob.core.windows.net/containername", - "keyVaultUri": "https://myvault.vault.azure.net/secrets/acrimportsas" - }, - "trigger": { - "sourceTrigger": { - "status": "Enabled" - } - }, - "options": [ - "OverwriteTags", - "DeleteSourceBlobOnSuccess", - "ContinueOnErrors" - ], - "provisioningState": "Succeeded" - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/importPipelines/importpipenvl0bg?api-version=2022-02-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "2019-12-01-preview, 2020-11-01-preview, 2021-06-01-preview, 2021-08-01-preview, 2021-12-01-preview, 2022-02-01-preview", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:38:54 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11987", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T083855Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "type": "Microsoft.ContainerRegistry/registries/importPipelines", - "location": "EASTUS", - "identity": { - "principalId": "00000000-0000-0000-0000-000000000000", - "tenantId": "00000000-0000-0000-0000-000000000000", - "type": "systemAssigned" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/importPipelines/importpipenvl0bg", - "name": "importpipenvl0bg", - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-12T08:38:53.0786397\u002B00:00", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-12T08:38:53.0786397\u002B00:00" - }, - "properties": { - "source": { - "type": "AzureStorageBlobContainer", - "uri": "https://accountname.blob.core.windows.net/containername", - "keyVaultUri": "https://myvault.vault.azure.net/secrets/acrimportsas" - }, - "trigger": { - "sourceTrigger": { - "status": "Enabled" - } - }, - "options": [ - "OverwriteTags", - "DeleteSourceBlobOnSuccess", - "ContinueOnErrors" - ], - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/importPipelines/importpipenvl0bg?api-version=2022-02-01-preview", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "2019-12-01-preview, 2020-11-01-preview, 2021-06-01-preview, 2021-08-01-preview, 2021-12-01-preview, 2022-02-01-preview", - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Wed, 12 Oct 2022 08:38:55 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14997", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T083856Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.ContainerRegistry/operations?api-version=2022-02-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:38:55 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-tenant-reads": "11999", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T083856Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "name": "Microsoft.ContainerRegistry/locations/deleteVirtualNetworkOrSubnets/action", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "", - "operation": "Delete virtual network or subnets notifications", - "description": "Notifies Microsoft.ContainerRegistry that virtual network or subnet is being deleted" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/register/action", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "", - "operation": "Register the Container Registry Resource Provider", - "description": "Registers the subscription for the container registry resource provider and enables the creation of container registries." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/locations/operationResults/read", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "", - "operation": "Get Async Operation Result", - "description": "Gets an async operation result" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/checkNameAvailability/read", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "", - "operation": "Check Name Availability", - "description": "Checks whether the container registry name is available for use." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/operations/read", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "", - "operation": "Container Registry Resource Provider Operations", - "description": "Lists all of the available Azure Container Registry REST API operations" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/read", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries", - "operation": "Get Container Registry or List Container Registries", - "description": "Gets the properties of the specified container registry or lists all the container registries under the specified resource group or subscription." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/write", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries", - "operation": "Create or Update Container Registry", - "description": "Creates or updates a container registry with the specified parameters." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/delete", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries", - "operation": "Delete Container Registry", - "description": "Deletes a container registry." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/pull/read", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries", - "operation": "Pull images from container registry.", - "description": "Pull or Get images from a container registry." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/push/write", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries", - "operation": "Push images to container registry.", - "description": "Push or Write images to a container registry." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/artifacts/delete", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries", - "operation": "Delete artifact in a container registry.", - "description": "Delete artifact in a container registry." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/quarantine/read", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries", - "operation": "Pull quarantined images", - "description": "Pull or Get quarantined images from container registry" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/quarantine/write", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries", - "operation": "Modify quarantined images", - "description": "Write/Modify quarantine state of quarantined images" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/sign/write", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries", - "operation": "Manage content trust metadata for a container registry.", - "description": "Push/Pull content trust metadata for a container registry." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/metadata/read", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries", - "operation": "Get metadata of a repository for a container registry", - "description": "Gets the metadata of a specific repository for a container registry" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/metadata/write", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries", - "operation": "Update metadata of a repository for a container registry", - "description": "Updates the metadata of a repository for a container registry" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/deleted/read", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries", - "operation": "Get deleted artifacts in a container registry", - "description": "Gets the deleted artifacts in a container registry" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/deleted/restore/action", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries", - "operation": "Restore deleted artifacts in a container registry", - "description": "Restores deleted artifacts in a container registry" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/listCredentials/action", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries", - "operation": "List Container Registry Login Credentials", - "description": "Lists the login credentials for the specified container registry." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/listUsages/read", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries", - "operation": "List Container Registry Quota Usages", - "description": "Lists the quota usages for the specified container registry." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/regenerateCredential/action", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries", - "operation": "Regenerate Container Registry Login Credentials", - "description": "Regenerates one of the login credentials for the specified container registry." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/generateCredentials/action", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries", - "operation": "Generate keys for a token", - "description": "Generate keys for a token of a specified container registry." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/operationStatuses/read", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries", - "operation": "Get Registry Async Operation Status", - "description": "Gets a registry async operation status" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/importImage/action", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "", - "operation": "Import Image", - "description": "Import Image to container registry with the specified parameters." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/listPolicies/read", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries", - "operation": "List registry policies", - "description": "Lists the policies for the specified container registry" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/updatePolicies/write", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries", - "operation": "Update registry policies", - "description": "Updates the policies for the specified container registry" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/getBuildSourceUploadUrl/action", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries", - "operation": "Get build source upload url location.", - "description": "Gets the upload location for the user to be able to upload the source." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/queueBuild/action", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries", - "operation": "Queue a new build.", - "description": "Creates a new build based on the request parameters and add it to the build queue." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/listBuildSourceUploadUrl/action", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries", - "operation": "Get source upload url location for a container registry.", - "description": "Get source upload url location for a container registry." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/scheduleRun/action", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries", - "operation": "Schedule a run against a container registry.", - "description": "Schedule a run against a container registry." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/builds/read", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries", - "operation": "Get Build or List Builds.", - "description": "Gets the properties of the specified build or lists all the builds for the specified container registry." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/builds/write", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries", - "operation": "Update a build.", - "description": "Updates a build for a container registry with the specified parameters." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/builds/getLogLink/action", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries", - "operation": "Get log link for a build.", - "description": "Gets a link to download the build logs." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/builds/cancel/action", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries", - "operation": "Cancel an existing build.", - "description": "Cancels an existing build." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/buildTasks/read", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries", - "operation": "Get build task or List build tasks.", - "description": "Gets the properties of the specified build task or lists all the build tasks for the specified container registry." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/buildTasks/write", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries", - "operation": "Create or Update build task.", - "description": "Creates or updates a build task for a container registry with the specified parameters." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/buildTasks/delete", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries", - "operation": "Delete build task.", - "description": "Deletes a build task from a container registry." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/buildTasks/listSourceRepositoryProperties/action", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries", - "operation": "List source control repository properties.", - "description": "Lists the source control properties for a build task." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/runs/read", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries", - "operation": "Get the run or List runs.", - "description": "Gets the properties of a run against a container registry or list runs." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/runs/write", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries", - "operation": "Update a run.", - "description": "Updates a run." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/runs/listLogSasUrl/action", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries", - "operation": "Get the log SAS URL for a run.", - "description": "Gets the log SAS URL for a run." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/runs/cancel/action", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries", - "operation": "Cancel an existing run.", - "description": "Cancel an existing run." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/tasks/read", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries", - "operation": "Get a task for a container registry or list all tasks.", - "description": "Gets a task for a container registry or list all tasks." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/tasks/write", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries", - "operation": "Create or Update a task for a container registry.", - "description": "Creates or Updates a task for a container registry." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/tasks/delete", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries", - "operation": "Delete a task for a container registry.", - "description": "Deletes a task for a container registry." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/tasks/listDetails/action", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries", - "operation": "List all details of a task for a container registry.", - "description": "List all details of a task for a container registry." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/taskruns/read", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries", - "operation": "Get a taskrun for a container registry or list all taskruns.", - "description": "Get a taskrun for a container registry or list all taskruns." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/taskruns/write", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries", - "operation": "Create or Update a taskrun for a container registry.", - "description": "Create or Update a taskrun for a container registry." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/taskruns/delete", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries", - "operation": "Delete a taskrun for a container registry.", - "description": "Delete a taskrun for a container registry." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/taskruns/listDetails/action", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries", - "operation": "List all details of a taskrun for a container registry.", - "description": "List all details of a taskrun for a container registry." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/agentpools/read", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries", - "operation": "Get a agentpool for a container registry or list all agentpools.", - "description": "Get a agentpool for a container registry or list all agentpools." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/agentpools/write", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries", - "operation": "Create or Update an agentpool for a container registry.", - "description": "Create or Update an agentpool for a container registry." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/agentpools/delete", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries", - "operation": "Delete an agentpool for a container registry.", - "description": "Delete an agentpool for a container registry." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/agentpools/listQueueStatus/action", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries", - "operation": "List all queue status of an agentpool for a container registry.", - "description": "List all queue status of an agentpool for a container registry." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/buildTasks/steps/read", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries", - "operation": "Get build step or List build steps.", - "description": "Gets the properties of the specified build step or lists all the build steps for the specified build task." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/buildTasks/steps/write", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries", - "operation": "Create or Update build step", - "description": "Creates or updates a build step for a build task with the specified parameters." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/buildTasks/steps/delete", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries", - "operation": "Delete build step.", - "description": "Deletes a build step from a build task." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/buildTasks/steps/listBuildArguments/action", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries", - "operation": "List build arguments for a build step.", - "description": "Lists the build arguments for a build step including the secret arguments." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/webhooks/read", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries/Webhooks", - "operation": "Get Webhook or List Webhooks", - "description": "Gets the properties of the specified webhook or lists all the webhooks for the specified container registry." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/webhooks/write", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries/Webhooks", - "operation": "Create or Update Webhook", - "description": "Creates or updates a webhook for a container registry with the specified parameters." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/webhooks/delete", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries/Webhooks", - "operation": "Delete Webhook", - "description": "Deletes a webhook from a container registry." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/webhooks/getCallbackConfig/action", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries/Webhooks", - "operation": "Get Webhook Callback Config", - "description": "Gets the configuration of service URI and custom headers for the webhook." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/webhooks/ping/action", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries/Webhooks", - "operation": "Ping Webhook", - "description": "Triggers a ping event to be sent to the webhook." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/webhooks/listEvents/action", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries/Webhooks", - "operation": "List Webhook Events", - "description": "Lists recent events for the specified webhook." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/webhooks/operationStatuses/read", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries/Webhooks", - "operation": "Get Webhook Async Operation Status", - "description": "Gets a webhook async operation status" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/replications/read", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries/Replications", - "operation": "Get Replication or List Replications", - "description": "Gets the properties of the specified replication or lists all the replications for the specified container registry." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/replications/write", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries/Replications", - "operation": "Create or Update Replication", - "description": "Creates or updates a replication for a container registry with the specified parameters." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/replications/delete", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries/Replications", - "operation": "Delete Replication", - "description": "Deletes a replication from a container registry." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/replications/operationStatuses/read", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries/Replications", - "operation": "Get Replication Async Operation Status", - "description": "Gets a replication async operation status" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/scopeMaps/read", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries/ScopeMaps", - "operation": "Get scope map or List scope maps", - "description": "Gets the properties of the specified scope map or lists all the scope maps for the specified container registry." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/scopeMaps/write", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries/ScopeMaps", - "operation": "Create or Update scope map", - "description": "Creates or updates a scope map for a container registry with the specified parameters." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/scopeMaps/delete", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries/ScopeMaps", - "operation": "Delete scope map", - "description": "Deletes a scope map from a container registry." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/scopeMaps/operationStatuses/read", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries/ScopeMaps", - "operation": "Get scope map async operation status", - "description": "Gets a scope map async operation status." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/tokens/read", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries/Tokens", - "operation": "Get token or List tokens", - "description": "Gets the properties of the specified token or lists all the tokens for the specified container registry." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/tokens/write", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries/Tokens", - "operation": "Create or Update token", - "description": "Creates or updates a token for a container registry with the specified parameters." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/tokens/delete", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries/Tokens", - "operation": "Delete token", - "description": "Deletes a token from a container registry." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/tokens/operationStatuses/read", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries/Tokens", - "operation": "Get token async operation status", - "description": "Gets a token async operation status." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/eventGridFilters/read", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries/EventGridFilters", - "operation": "Get Event Grid Filter or List Event Grid Filters", - "description": "Gets the properties of the specified event grid filter or lists all the event grid filters for the specified container registry." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/eventGridFilters/write", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries/EventGridFilters", - "operation": "Create or Update Event Grid Filter", - "description": "Creates or updates an event grid filter for a container registry with the specified parameters." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/eventGridFilters/delete", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries/EventGridFilters", - "operation": "Delete Event Grid Filter", - "description": "Deletes an event grid filter from a container registry." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/privateEndpointConnectionProxies/validate/action", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Azure Container Registry Private Endpoint Connection Proxy", - "operation": "Validate Private Endpoint Connection Proxy", - "description": "Validate the Private Endpoint Connection Proxy (NRP only)" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/privateEndpointConnectionProxies/read", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Azure Container Registry Private Endpoint Connection Proxy", - "operation": "Get Private Endpoint Connection Proxy", - "description": "Get the Private Endpoint Connection Proxy (NRP only)" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/privateEndpointConnectionProxies/write", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Azure Container Registry Private Endpoint Connection Proxy", - "operation": "Create Private Endpoint Connection Proxy", - "description": "Create the Private Endpoint Connection Proxy (NRP only)" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/privateEndpointConnectionProxies/delete", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Azure Container Registry Private Endpoint Connection Proxy", - "operation": "Delete Private Endpoint Connection Proxy", - "description": "Delete the Private Endpoint Connection Proxy (NRP only)" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/privateEndpointConnectionProxies/operationStatuses/read", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Azure Container Registry Private Endpoint Connection Proxy", - "operation": "Get PrivateEndpointConnectionProxyAsyncOperationStatus", - "description": "Get Private Endpoint Connection Proxy Async Operation Status" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/privateEndpointConnections/read", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Azure Container Registry Private Endpoint Connection", - "operation": "Get Private Endpoint Connection or List Private Endpoint Connections", - "description": "Gets the properties of private endpoint connection or list all the private endpoint connections for the specified container registry" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/privateEndpointConnections/write", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Azure Container Registry Private Endpoint Connection", - "operation": "Approve/Reject Private Endpoint Connection", - "description": "Approves/Rejects the private endpoint connection" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/privateEndpointConnections/delete", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Azure Container Registry Private Endpoint Connection", - "operation": "Delete Private Endpoint Connection", - "description": "Deletes the private endpoint connection" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/privateEndpointConnectionsApproval/action", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Azure Container Registry Private Endpoint Connection Approval", - "operation": "Auto Approves a Private Endpoint Connection", - "description": "Auto Approves a Private Endpoint Connection" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/exportPipelines/read", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries/ExportPipelines", - "operation": "Get export pipeline or List export pipelines", - "description": "Gets the properties of the specified export pipeline or lists all the export pipelines for the specified container registry." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/exportPipelines/write", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries/ExportPipelines", - "operation": "Create or Update export pipeline", - "description": "Creates or updates an export pipeline for a container registry with the specified parameters." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/exportPipelines/delete", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries/ExportPipelines", - "operation": "Delete export pipeline", - "description": "Deletes an export pipeline from a container registry." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/importPipelines/read", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries/ImportPipelines", - "operation": "Get import pipeline or List import pipelines", - "description": "Gets the properties of the specified import pipeline or lists all the import pipelines for the specified container registry." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/importPipelines/write", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries/ImportPipelines", - "operation": "Create or Update import pipeline", - "description": "Creates or updates an import pipeline for a container registry with the specified parameters." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/importPipelines/delete", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries/ImportPipelines", - "operation": "Delete import pipeline", - "description": "Deletes an import pipeline from a container registry." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/pipelineRuns/read", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries/PipelineRuns", - "operation": "Get scope map or List pipeline runs", - "description": "Gets the properties of the specified pipeline run or lists all the pipeline runs for the specified container registry." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/pipelineRuns/write", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries/PipelineRuns", - "operation": "Create or Update pipeline run", - "description": "Creates or updates a pipeline run for a container registry with the specified parameters." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/pipelineRuns/delete", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries/PipelineRuns", - "operation": "Delete pipeline run", - "description": "Deletes a pipeline run from a container registry." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/pipelineRuns/operationStatuses/read", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries/PipelineRuns", - "operation": "Get pipeline run async operation status", - "description": "Gets a pipeline run async operation status." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/connectedRegistries/read", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries/ConnectedRegistries", - "operation": "Get connected registry or List connected registries", - "description": "Gets the properties of the specified connected registry or lists all the connected registries for the specified container registry." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/connectedRegistries/write", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries/ConnectedRegistries", - "operation": "Create or Update connected registry", - "description": "Creates or updates a connected registry for a container registry with the specified parameters." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/connectedRegistries/delete", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries/ConnectedRegistries", - "operation": "Delete connected registry", - "description": "Deletes a connected registry from a container registry." - }, - "isDataAction": false - }, - { - "origin": "system", - "name": "Microsoft.ContainerRegistry/registries/providers/Microsoft.Insights/metricDefinitions/read", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "The metric definition of Microsoft ContainerRegistry", - "operation": "Read Microsoft ContainerRegistry metric definitions", - "description": "Gets the available metrics for Microsoft ContainerRegistry" - }, - "properties": { - "serviceSpecification": { - "metricSpecifications": [ - { - "name": "TotalPullCount", - "displayName": "Total Pull Count", - "displayDescription": "Number of image pulls in total", - "unit": "Count", - "aggregationType": "Average", - "internalMetricName": "TotalPullCount" - }, - { - "name": "SuccessfulPullCount", - "displayName": "Successful Pull Count", - "displayDescription": "Number of successful image pulls", - "unit": "Count", - "aggregationType": "Average", - "internalMetricName": "SuccessfulPullCount" - }, - { - "name": "TotalPushCount", - "displayName": "Total Push Count", - "displayDescription": "Number of image pushes in total", - "unit": "Count", - "aggregationType": "Average", - "internalMetricName": "TotalPushCount" - }, - { - "name": "SuccessfulPushCount", - "displayName": "Successful Push Count", - "displayDescription": "Number of successful image pushes", - "unit": "Count", - "aggregationType": "Average", - "internalMetricName": "SuccessfulPushCount" - }, - { - "name": "RunDuration", - "displayName": "Run Duration", - "displayDescription": "Run Duration in milliseconds", - "unit": "Milliseconds", - "aggregationType": "Total", - "internalMetricName": "RunDuration" - }, - { - "name": "AgentPoolCPUTime", - "displayName": "AgentPool CPU Time", - "displayDescription": "AgentPool CPU Time in seconds", - "unit": "Seconds", - "aggregationType": "Total", - "internalMetricName": "AgentPoolCPUTime" - } - ] - } - }, - "isDataAction": false - }, - { - "origin": "system", - "name": "Microsoft.ContainerRegistry/registries/providers/Microsoft.Insights/logDefinitions/read", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "The logs definition of Microsoft ContainerRegistry", - "operation": "Read Microsoft ContainerRegistry log definitions", - "description": "Gets the available logs for Microsoft ContainerRegistry" - }, - "properties": { - "serviceSpecification": { - "logSpecifications": [ - { - "name": "ContainerRegistryRepositoryEvents", - "displayName": "RepositoryEvent logs", - "blobDuration": "PT1H" - }, - { - "name": "ContainerRegistryLoginEvents", - "displayName": "Login Events", - "blobDuration": "PT1H" - } - ] - } - }, - "isDataAction": false - }, - { - "origin": "system", - "name": "Microsoft.ContainerRegistry/registries/providers/Microsoft.Insights/diagnosticSettings/read", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries", - "operation": "Read diagnostic setting", - "description": "Gets the diagnostic setting for the resource" - }, - "isDataAction": false - }, - { - "origin": "system", - "name": "Microsoft.ContainerRegistry/registries/providers/Microsoft.Insights/diagnosticSettings/write", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries", - "operation": "Write diagnostic setting", - "description": "Creates or updates the diagnostic setting for the resource" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ContainerRegistry/registries/trustedCollections/write", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries", - "operation": "Manage content trust metadata for a container registry", - "description": "Allows push or publish of trusted collections of container registry content. This is similar to Microsoft.ContainerRegistry/registries/sign/write action except that this is a data action" - }, - "isDataAction": true - }, - { - "name": "Microsoft.ContainerRegistry/registries/quarantinedArtifacts/read", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries", - "operation": "Pull/Read of the quarantined artifacts", - "description": "Allows pull or get of the quarantined artifacts from container registry. This is similar to Microsoft.ContainerRegistry/registries/quarantine/read except that it is a data action" - }, - "isDataAction": true - }, - { - "name": "Microsoft.ContainerRegistry/registries/quarantinedArtifacts/write", - "display": { - "provider": "Microsoft ContainerRegistry", - "resource": "Registries", - "operation": "Modify/Update the state of quarantined artifacts", - "description": "Allows write or update of the quarantine state of quarantined artifacts. This is similar to Microsoft.ContainerRegistry/registries/quarantine/write action except that it is a data action" - }, - "isDataAction": true - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/generateCredentials?api-version=2022-02-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "184", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "tokenId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/tokens/tokennamenvl0bg" - }, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "2019-05-01-preview, 2020-11-01-preview, 2021-06-01-preview, 2021-08-01-preview, 2021-12-01-preview, 2022-02-01-preview", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:38:56 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T083857Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "username": "tokennamenvl0bg", - "passwords": [ - { - "creationTime": "2022-10-12T08:38:57.0320744\u002B00:00", - "name": "password1", - "value": "ri/YyvqWZsuN2qT6aMInNZSRan2DfQLK" - }, - { - "creationTime": "2022-10-12T08:38:57.0320744\u002B00:00", - "name": "password2", - "value": "aX4QDWgaF7rqjtdukFXRGw8t0gfVbF=c" - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/regenerateCredential?api-version=2022-02-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "19", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "name": "password" - }, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "2022-02-01-preview", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:38:57 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T083857Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "username": "registrynanvl0bg", - "passwords": [ - { - "name": "password", - "value": "2MhzUGOs7NKBkUgW1j4TXUgHfYwFe8=i" - }, - { - "name": "password2", - "value": "k4i2=jP7Hb3k4hlAFJBlAFaWEDZS3gTT" - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/listCredentials?api-version=2022-02-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "2022-02-01-preview", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:38:57 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1197", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T083858Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "username": "registrynanvl0bg", - "passwords": [ - { - "name": "password", - "value": "2MhzUGOs7NKBkUgW1j4TXUgHfYwFe8=i" - }, - { - "name": "password2", - "value": "k4i2=jP7Hb3k4hlAFJBlAFaWEDZS3gTT" - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/replications/replicationvl0bg?api-version=2022-02-01-preview", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "22", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus2" - }, - "StatusCode": 201, - "ResponseHeaders": { - "api-supported-versions": "2020-11-01-preview, 2021-06-01-preview, 2021-08-01-preview, 2021-09-01, 2021-12-01-preview, 2022-02-01-preview", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/replications/replicationvl0bg/operationStatuses/replications-00000000-0000-0000-0000-000000000000?api-version=2022-02-01-preview", - "Cache-Control": "no-cache", - "Content-Length": "749", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:39:01 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "10", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1192", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T083902Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "type": "Microsoft.ContainerRegistry/registries/replications", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/replications/replicationvl0bg", - "name": "replicationvl0bg", - "location": "westus2", - "tags": {}, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-12T08:38:59.8954965\u002B00:00", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-12T08:38:59.8954965\u002B00:00" - }, - "properties": { - "provisioningState": "Creating", - "status": { - "timestamp": "2022-10-12T08:39:01.2121414Z" - }, - "regionEndpointEnabled": true, - "zoneRedundancy": "Disabled" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/replications/replicationvl0bg/operationStatuses/replications-00000000-0000-0000-0000-000000000000?api-version=2022-02-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "2020-11-01-preview, 2021-06-01-preview, 2021-08-01-preview, 2021-09-01, 2021-12-01-preview, 2022-02-01-preview", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/replications/replicationvl0bg/operationStatuses/replications-00000000-0000-0000-0000-000000000000?api-version=2022-02-01-preview", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:39:12 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "10", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11986", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T083913Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Creating" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/replications/replicationvl0bg/operationStatuses/replications-00000000-0000-0000-0000-000000000000?api-version=2022-02-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "2020-11-01-preview, 2021-06-01-preview, 2021-08-01-preview, 2021-09-01, 2021-12-01-preview, 2022-02-01-preview", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/replications/replicationvl0bg/operationStatuses/replications-00000000-0000-0000-0000-000000000000?api-version=2022-02-01-preview", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:39:23 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "10", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11985", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T083923Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/replications/replicationvl0bg?api-version=2022-02-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "2020-11-01-preview, 2021-06-01-preview, 2021-08-01-preview, 2021-09-01, 2021-12-01-preview, 2022-02-01-preview", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:39:23 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11984", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T083924Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "type": "Microsoft.ContainerRegistry/registries/replications", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/replications/replicationvl0bg", - "name": "replicationvl0bg", - "location": "westus2", - "tags": {}, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-12T08:38:59.8954965\u002B00:00", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-12T08:38:59.8954965\u002B00:00" - }, - "properties": { - "provisioningState": "Succeeded", - "status": { - "displayStatus": "Ready", - "timestamp": "2022-10-12T08:39:15.8066812Z" - }, - "regionEndpointEnabled": true, - "zoneRedundancy": "Disabled" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/replications?api-version=2022-02-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "2020-11-01-preview, 2021-06-01-preview, 2021-08-01-preview, 2021-09-01, 2021-12-01-preview, 2022-02-01-preview", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:39:25 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11983", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T083925Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "type": "Microsoft.ContainerRegistry/registries/replications", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/replications/replicationvl0bg", - "name": "replicationvl0bg", - "location": "westus2", - "tags": {}, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-12T08:38:59.8954965\u002B00:00", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-12T08:38:59.8954965\u002B00:00" - }, - "properties": { - "provisioningState": "Succeeded", - "status": { - "displayStatus": "Ready", - "timestamp": "2022-10-12T08:39:15.8066812Z" - }, - "regionEndpointEnabled": true, - "zoneRedundancy": "Disabled" - } - }, - { - "type": "Microsoft.ContainerRegistry/registries/replications", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/replications/eastus", - "name": "eastus", - "location": "eastus", - "tags": { - "key": "value" - }, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-12T08:39:04.9491934\u002B00:00", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-12T08:39:04.9491934\u002B00:00" - }, - "properties": { - "provisioningState": "Succeeded", - "status": { - "displayStatus": "Ready", - "timestamp": "2022-10-12T08:39:04.1078441Z" - }, - "regionEndpointEnabled": true, - "zoneRedundancy": "Disabled" - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/replications/replicationvl0bg?api-version=2022-02-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "2020-11-01-preview, 2021-06-01-preview, 2021-08-01-preview, 2021-09-01, 2021-12-01-preview, 2022-02-01-preview", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:39:25 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11982", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T083925Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "type": "Microsoft.ContainerRegistry/registries/replications", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/replications/replicationvl0bg", - "name": "replicationvl0bg", - "location": "westus2", - "tags": {}, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-12T08:38:59.8954965\u002B00:00", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-12T08:38:59.8954965\u002B00:00" - }, - "properties": { - "provisioningState": "Succeeded", - "status": { - "displayStatus": "Ready", - "timestamp": "2022-10-12T08:39:15.8066812Z" - }, - "regionEndpointEnabled": true, - "zoneRedundancy": "Disabled" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/replications/replicationvl0bg?api-version=2022-02-01-preview", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "24", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "tags": { - "key": "value" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "2020-11-01-preview, 2021-06-01-preview, 2021-08-01-preview, 2021-09-01, 2021-12-01-preview, 2022-02-01-preview", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:39:26 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1191", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T083927Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "type": "Microsoft.ContainerRegistry/registries/replications", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/replications/replicationvl0bg", - "name": "replicationvl0bg", - "location": "westus2", - "tags": { - "key": "value" - }, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-12T08:38:59.8954965\u002B00:00", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-12T08:39:26.0677133\u002B00:00" - }, - "properties": { - "provisioningState": "Succeeded", - "status": { - "displayStatus": "Ready", - "timestamp": "2022-10-12T08:39:15.8066812Z" - }, - "regionEndpointEnabled": true, - "zoneRedundancy": "Disabled" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/replications/replicationvl0bg?api-version=2022-02-01-preview", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "api-supported-versions": "2020-11-01-preview, 2021-06-01-preview, 2021-08-01-preview, 2021-09-01, 2021-12-01-preview, 2022-02-01-preview", - "Cache-Control": "no-cache", - "Content-Length": "4", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:39:28 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerRegistry/locations/westus2/operationResults/replications-00000000-0000-0000-0000-000000000000?api-version=2022-02-01-preview", - "Pragma": "no-cache", - "Retry-After": "10", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14996", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T083928Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": "null" - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerRegistry/locations/westus2/operationResults/replications-00000000-0000-0000-0000-000000000000?api-version=2022-02-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Wed, 12 Oct 2022 08:39:38 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11981", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T083938Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/scopeMaps?api-version=2022-02-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "2019-05-01-preview, 2020-11-01-preview, 2021-06-01-preview, 2021-08-01-preview, 2021-12-01-preview, 2022-02-01-preview", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:39:38 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11980", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T083939Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "type": "Microsoft.ContainerRegistry/registries/scopeMaps", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/scopeMaps/_repositories_admin", - "name": "_repositories_admin", - "properties": { - "description": "Can perform all read, write and delete operations on the registry", - "type": "SystemDefined", - "creationDate": "2022-09-21T16:49:15.8323078\u002B00:00", - "provisioningState": "Succeeded", - "actions": [ - "repositories/*/metadata/read", - "repositories/*/metadata/write", - "repositories/*/content/read", - "repositories/*/content/write", - "repositories/*/content/delete" - ] - } - }, - { - "type": "Microsoft.ContainerRegistry/registries/scopeMaps", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/scopeMaps/_repositories_pull", - "name": "_repositories_pull", - "properties": { - "description": "Can pull any repository of the registry", - "type": "SystemDefined", - "creationDate": "2022-09-21T16:49:15.8323078\u002B00:00", - "provisioningState": "Succeeded", - "actions": [ - "repositories/*/content/read" - ] - } - }, - { - "type": "Microsoft.ContainerRegistry/registries/scopeMaps", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/scopeMaps/_repositories_push", - "name": "_repositories_push", - "properties": { - "description": "Can push to any repository of the registry", - "type": "SystemDefined", - "creationDate": "2022-09-21T16:49:15.8323078\u002B00:00", - "provisioningState": "Succeeded", - "actions": [ - "repositories/*/content/read", - "repositories/*/content/write" - ] - } - }, - { - "type": "Microsoft.ContainerRegistry/registries/scopeMaps", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/scopeMaps/scopemapnanvl0bg", - "name": "scopemapnanvl0bg", - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-12T08:38:27.9649922\u002B00:00", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-12T08:38:27.9649922\u002B00:00" - }, - "properties": { - "description": "Developer Scopes", - "type": "UserDefined", - "creationDate": "2022-10-12T08:38:28.2303787\u002B00:00", - "provisioningState": "Succeeded", - "actions": [ - "repositories/myrepository/content/write", - "repositories/myrepository/content/delete" - ] - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/scopeMaps/scopemapnanvl0bg?api-version=2022-02-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "2019-05-01-preview, 2020-11-01-preview, 2021-06-01-preview, 2021-08-01-preview, 2021-12-01-preview, 2022-02-01-preview", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:39:39 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11979", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T083939Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "type": "Microsoft.ContainerRegistry/registries/scopeMaps", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/scopeMaps/scopemapnanvl0bg", - "name": "scopemapnanvl0bg", - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-12T08:38:27.9649922\u002B00:00", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-12T08:38:27.9649922\u002B00:00" - }, - "properties": { - "description": "Developer Scopes", - "type": "UserDefined", - "creationDate": "2022-10-12T08:38:28.2303787\u002B00:00", - "provisioningState": "Succeeded", - "actions": [ - "repositories/myrepository/content/write", - "repositories/myrepository/content/delete" - ] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/scopeMaps/scopemapnanvl0bg?api-version=2022-02-01-preview", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "144", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "actions": [ - "repositories/myrepository/content/write", - "repositories/myrepository/content/read" - ], - "description": "Developer Scopes" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "api-supported-versions": "2019-05-01-preview, 2020-11-01-preview, 2021-06-01-preview, 2021-08-01-preview, 2021-12-01-preview, 2022-02-01-preview", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/scopeMaps/scopemapnanvl0bg/operationStatuses/token-00000000-0000-0000-0000-000000000000?api-version=2022-02-01-preview", - "Cache-Control": "no-cache", - "Content-Length": "801", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:39:40 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "10", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1190", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T083940Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "type": "Microsoft.ContainerRegistry/registries/scopeMaps", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/scopeMaps/scopemapnanvl0bg", - "name": "scopemapnanvl0bg", - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-12T08:39:40.1070032\u002B00:00", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-12T08:39:40.1070032\u002B00:00" - }, - "properties": { - "description": "Developer Scopes", - "type": "UserDefined", - "creationDate": "2022-10-12T08:38:28.2303787\u002B00:00", - "provisioningState": "Updating", - "actions": [ - "repositories/myrepository/content/write", - "repositories/myrepository/content/read" - ] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/scopeMaps/scopemapnanvl0bg/operationStatuses/token-00000000-0000-0000-0000-000000000000?api-version=2022-02-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "2019-05-01-preview, 2020-11-01-preview, 2021-06-01-preview, 2021-08-01-preview, 2021-12-01-preview, 2022-02-01-preview", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/scopeMaps/scopemapnanvl0bg/operationStatuses/token-00000000-0000-0000-0000-000000000000?api-version=2022-02-01-preview", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:39:50 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "10", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11978", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T083951Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/scopeMaps/scopemapnanvl0bg?api-version=2022-02-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "2019-05-01-preview, 2020-11-01-preview, 2021-06-01-preview, 2021-08-01-preview, 2021-12-01-preview, 2022-02-01-preview", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:39:51 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11977", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T083951Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "type": "Microsoft.ContainerRegistry/registries/scopeMaps", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/scopeMaps/scopemapnanvl0bg", - "name": "scopemapnanvl0bg", - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-12T08:39:40.1070032\u002B00:00", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-12T08:39:40.1070032\u002B00:00" - }, - "properties": { - "description": "Developer Scopes", - "type": "UserDefined", - "creationDate": "2022-10-12T08:38:28.2303787\u002B00:00", - "provisioningState": "Succeeded", - "actions": [ - "repositories/myrepository/content/write", - "repositories/myrepository/content/read" - ] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/tokens?api-version=2022-02-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "2019-05-01-preview, 2020-11-01-preview, 2021-06-01-preview, 2021-08-01-preview, 2021-12-01-preview, 2022-02-01-preview", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:39:51 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11976", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T083952Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "type": "Microsoft.ContainerRegistry/registries/tokens", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/tokens/tokennamenvl0bg", - "name": "tokennamenvl0bg", - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-12T08:38:28.5899971\u002B00:00", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-12T08:38:28.5899971\u002B00:00" - }, - "properties": { - "creationDate": "2022-10-12T08:38:28.9492744\u002B00:00", - "provisioningState": "Succeeded", - "scopeMapId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/scopeMaps/scopemapnanvl0bg", - "credentials": { - "passwords": [ - { - "creationTime": "2022-10-12T08:38:57.0320744\u002B00:00", - "name": "password1" - }, - { - "creationTime": "2022-10-12T08:38:57.0320744\u002B00:00", - "name": "password2" - } - ] - }, - "status": "disabled" - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/tokens/tokennamenvl0bg?api-version=2022-02-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "2019-05-01-preview, 2020-11-01-preview, 2021-06-01-preview, 2021-08-01-preview, 2021-12-01-preview, 2022-02-01-preview", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:39:52 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11975", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T083952Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "type": "Microsoft.ContainerRegistry/registries/tokens", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/tokens/tokennamenvl0bg", - "name": "tokennamenvl0bg", - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-12T08:38:28.5899971\u002B00:00", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-12T08:38:28.5899971\u002B00:00" - }, - "properties": { - "creationDate": "2022-10-12T08:38:28.9492744\u002B00:00", - "provisioningState": "Succeeded", - "scopeMapId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/scopeMaps/scopemapnanvl0bg", - "credentials": { - "passwords": [ - { - "creationTime": "2022-10-12T08:38:57.0320744\u002B00:00", - "name": "password1" - }, - { - "creationTime": "2022-10-12T08:38:57.0320744\u002B00:00", - "name": "password2" - } - ] - }, - "status": "disabled" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/tokens/tokennamenvl0bg?api-version=2022-02-01-preview", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "206", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "scopeMapId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/scopeMaps/scopemapnanvl0bg" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "api-supported-versions": "2019-05-01-preview, 2020-11-01-preview, 2021-06-01-preview, 2021-08-01-preview, 2021-12-01-preview, 2022-02-01-preview", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/tokens/tokennamenvl0bg/operationStatuses/token-00000000-0000-0000-0000-000000000000?api-version=2022-02-01-preview", - "Cache-Control": "no-cache", - "Content-Length": "1028", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:39:52 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "10", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1189", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T083953Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "type": "Microsoft.ContainerRegistry/registries/tokens", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/tokens/tokennamenvl0bg", - "name": "tokennamenvl0bg", - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-12T08:39:52.9736671\u002B00:00", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-12T08:39:52.9736671\u002B00:00" - }, - "properties": { - "creationDate": "2022-10-12T08:38:28.9492744\u002B00:00", - "provisioningState": "Updating", - "scopeMapId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/scopeMaps/scopemapnanvl0bg", - "credentials": { - "passwords": [ - { - "creationTime": "2022-10-12T08:38:57.0320744\u002B00:00", - "name": "password1" - }, - { - "creationTime": "2022-10-12T08:38:57.0320744\u002B00:00", - "name": "password2" - } - ] - }, - "status": "disabled" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/tokens/tokennamenvl0bg/operationStatuses/token-00000000-0000-0000-0000-000000000000?api-version=2022-02-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "2019-05-01-preview, 2020-11-01-preview, 2021-06-01-preview, 2021-08-01-preview, 2021-12-01-preview, 2022-02-01-preview", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/tokens/tokennamenvl0bg/operationStatuses/token-00000000-0000-0000-0000-000000000000?api-version=2022-02-01-preview", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:40:03 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "10", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11974", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T084004Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/tokens/tokennamenvl0bg?api-version=2022-02-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "2019-05-01-preview, 2020-11-01-preview, 2021-06-01-preview, 2021-08-01-preview, 2021-12-01-preview, 2022-02-01-preview", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:40:03 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11973", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T084004Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "type": "Microsoft.ContainerRegistry/registries/tokens", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/tokens/tokennamenvl0bg", - "name": "tokennamenvl0bg", - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-12T08:39:52.9736671\u002B00:00", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-12T08:39:52.9736671\u002B00:00" - }, - "properties": { - "creationDate": "2022-10-12T08:38:28.9492744\u002B00:00", - "provisioningState": "Succeeded", - "scopeMapId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/scopeMaps/scopemapnanvl0bg", - "credentials": { - "passwords": [ - { - "creationTime": "2022-10-12T08:38:57.0320744\u002B00:00", - "name": "password1" - }, - { - "creationTime": "2022-10-12T08:38:57.0320744\u002B00:00", - "name": "password2" - } - ] - }, - "status": "disabled" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/webhooks/webhooknamnvl0bg?api-version=2022-02-01-preview", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "227", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "eastus", - "properties": { - "actions": [ - "push" - ], - "customHeaders": { - "Authorization": "Basic 000000000000000000000000000000000000000000000000000" - }, - "serviceUri": "http://myservice.com", - "status": "enabled" - }, - "tags": { - "key": "value" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "2019-12-01-preview, 2020-11-01-preview, 2021-06-01-preview, 2021-08-01-preview, 2021-09-01, 2021-12-01-preview, 2022-02-01-preview", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:40:07 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1188", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T084007Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "type": "Microsoft.ContainerRegistry/registries/webhooks", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/webhooks/webhooknamnvl0bg", - "name": "webhooknamnvl0bg", - "location": "eastus", - "tags": { - "key": "value" - }, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-12T08:40:06.2783511\u002B00:00", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-12T08:40:06.2783511\u002B00:00" - }, - "properties": { - "status": "enabled", - "scope": "", - "actions": [ - "push" - ], - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/webhooks?api-version=2022-02-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "2019-12-01-preview, 2020-11-01-preview, 2021-06-01-preview, 2021-08-01-preview, 2021-09-01, 2021-12-01-preview, 2022-02-01-preview", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:40:07 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11972", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T084008Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "type": "Microsoft.ContainerRegistry/registries/webhooks", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/webhooks/webhooknamnvl0bg", - "name": "webhooknamnvl0bg", - "location": "eastus", - "tags": { - "key": "value" - }, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-12T08:40:06.2783511\u002B00:00", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-12T08:40:06.2783511\u002B00:00" - }, - "properties": { - "status": "enabled", - "scope": "", - "actions": [ - "push" - ], - "provisioningState": "Succeeded" - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/webhooks/webhooknamnvl0bg?api-version=2022-02-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "2019-12-01-preview, 2020-11-01-preview, 2021-06-01-preview, 2021-08-01-preview, 2021-09-01, 2021-12-01-preview, 2022-02-01-preview", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:40:08 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11971", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T084009Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "type": "Microsoft.ContainerRegistry/registries/webhooks", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/webhooks/webhooknamnvl0bg", - "name": "webhooknamnvl0bg", - "location": "eastus", - "tags": { - "key": "value" - }, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-12T08:40:06.2783511\u002B00:00", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-12T08:40:06.2783511\u002B00:00" - }, - "properties": { - "status": "enabled", - "scope": "", - "actions": [ - "push" - ], - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/webhooks/webhooknamnvl0bg?api-version=2022-02-01-preview", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "228", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "actions": [ - "push" - ], - "customHeaders": { - "Authorization": "Basic 000000000000000000000000000000000000000000000000000" - }, - "scope": "repository", - "serviceUri": "http://myservice.com", - "status": "enabled" - }, - "tags": { - "key": "value" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "2019-12-01-preview, 2020-11-01-preview, 2021-06-01-preview, 2021-08-01-preview, 2021-09-01, 2021-12-01-preview, 2022-02-01-preview", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:40:09 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1187", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T084010Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "type": "Microsoft.ContainerRegistry/registries/webhooks", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/webhooks/webhooknamnvl0bg", - "name": "webhooknamnvl0bg", - "location": "eastus", - "tags": { - "key": "value" - }, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-12T08:40:06.2783511\u002B00:00", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-12T08:40:09.6079735\u002B00:00" - }, - "properties": { - "status": "enabled", - "scope": "repository", - "actions": [ - "push" - ], - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/webhooks/webhooknamnvl0bg/getCallbackConfig?api-version=2022-02-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "2019-12-01-preview, 2020-11-01-preview, 2021-06-01-preview, 2021-08-01-preview, 2021-09-01, 2021-12-01-preview, 2022-02-01-preview", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:40:10 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1196", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T084011Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "serviceUri": "http://myservice.com", - "customHeaders": { - "Authorization": "Basic 000000000000000000000000000000000000000000000000000" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/webhooks/webhooknamnvl0bg/ping?api-version=2022-02-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "2019-12-01-preview, 2020-11-01-preview, 2021-06-01-preview, 2021-08-01-preview, 2021-09-01, 2021-12-01-preview, 2022-02-01-preview", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:40:16 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1195", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T084017Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "00000000-0000-0000-0000-000000000000" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/webhooks/webhooknamnvl0bg/listEvents?api-version=2022-02-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "2019-12-01-preview, 2020-11-01-preview, 2021-06-01-preview, 2021-08-01-preview, 2021-09-01, 2021-12-01-preview, 2022-02-01-preview", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:40:16 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1194", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T084017Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "eventRequestMessage": { - "content": { - "id": "00000000-0000-0000-0000-000000000000", - "timestamp": "2022-10-12T08:40:11.7701817Z", - "action": "ping" - }, - "headers": { - "Authorization": "*****************", - "Content-Type": "application/json; charset=utf-8", - "Content-Length": "104" - }, - "method": "POST", - "requestUri": "http://myservice.com/", - "version": "1.1" - }, - "eventResponseMessage": { - "content": "Operation timed out.", - "reasonPhrase": "GatewayTimeout", - "statusCode": "504" - }, - "id": "00000000-0000-0000-0000-000000000000" - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/webhooks/webhooknamnvl0bg?api-version=2022-02-01-preview", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "2019-12-01-preview, 2020-11-01-preview, 2021-06-01-preview, 2021-08-01-preview, 2021-09-01, 2021-12-01-preview, 2022-02-01-preview", - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Wed, 12 Oct 2022 08:40:20 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14995", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T084020Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/tokens/tokennamenvl0bg?api-version=2022-02-01-preview", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "api-supported-versions": "2019-05-01-preview, 2020-11-01-preview, 2021-06-01-preview, 2021-08-01-preview, 2021-12-01-preview, 2022-02-01-preview", - "Cache-Control": "no-cache", - "Content-Length": "4", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:40:21 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerRegistry/locations/EASTUS/operationResults/token-00000000-0000-0000-0000-000000000000?api-version=2022-02-01-preview", - "Pragma": "no-cache", - "Retry-After": "10", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14994", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T084021Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": "null" - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerRegistry/locations/EASTUS/operationResults/token-00000000-0000-0000-0000-000000000000?api-version=2022-02-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Wed, 12 Oct 2022 08:40:31 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11970", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T084031Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg/scopeMaps/scopemapnanvl0bg?api-version=2022-02-01-preview", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "api-supported-versions": "2019-05-01-preview, 2020-11-01-preview, 2021-06-01-preview, 2021-08-01-preview, 2021-12-01-preview, 2022-02-01-preview", - "Cache-Control": "no-cache", - "Content-Length": "4", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:40:32 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerRegistry/locations/EASTUS/operationResults/token-00000000-0000-0000-0000-000000000000?api-version=2022-02-01-preview", - "Pragma": "no-cache", - "Retry-After": "10", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14993", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T084032Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": "null" - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerRegistry/locations/EASTUS/operationResults/token-00000000-0000-0000-0000-000000000000?api-version=2022-02-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Wed, 12 Oct 2022 08:40:42 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11969", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T084043Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg?api-version=2022-02-01-preview", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "api-supported-versions": "2022-02-01-preview", - "Cache-Control": "no-cache", - "Content-Length": "1487", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 08:40:47 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerRegistry/locations/eastus/operationResults/registries-00000000-0000-0000-0000-000000000000?api-version=2022-02-01-preview", - "Pragma": "no-cache", - "Retry-After": "10", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14992", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T084048Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "sku": { - "name": "Premium", - "tier": "Premium" - }, - "type": "Microsoft.ContainerRegistry/registries", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerRegistry/registries/registrynanvl0bg", - "name": "registrynanvl0bg", - "location": "eastus", - "tags": { - "key": "value" - }, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-12T08:38:12.7965718\u002B00:00", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-12T08:38:44.5255718\u002B00:00" - }, - "properties": { - "loginServer": "registrynanvl0bg.azurecr.io", - "creationDate": "2022-10-12T08:38:12.7965718Z", - "provisioningState": "Deleting", - "adminUserEnabled": true, - "networkRuleSet": { - "defaultAction": "Allow", - "ipRules": [] - }, - "policies": { - "quarantinePolicy": { - "status": "disabled" - }, - "trustPolicy": { - "type": "Notary", - "status": "disabled" - }, - "retentionPolicy": { - "days": 7, - "lastUpdatedTime": "2022-10-12T08:38:26.1518374\u002B00:00", - "status": "disabled" - }, - "exportPolicy": { - "status": "enabled" - }, - "azureADAuthenticationAsArmPolicy": { - "status": "enabled" - }, - "softDeletePolicy": { - "retentionDays": 7, - "lastUpdatedTime": "2022-10-12T08:38:26.1518374\u002B00:00", - "status": "disabled" - } - }, - "encryption": { - "status": "disabled" - }, - "dataEndpointEnabled": false, - "dataEndpointHostNames": [], - "privateEndpointConnections": [], - "publicNetworkAccess": "Enabled", - "networkRuleBypassOptions": "AzureServices", - "zoneRedundancy": "Disabled", - "anonymousPullEnabled": false - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerRegistry/locations/eastus/operationResults/registries-00000000-0000-0000-0000-000000000000?api-version=2022-02-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerregistry/v0.6.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Wed, 12 Oct 2022 08:40:57 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11968", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T084058Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Wed, 12 Oct 2022 08:41:00 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ4ODQtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14991", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T084101Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": { - "recordingRandomSeed": "1665562909" - } -} diff --git a/sdk/resourcemanager/containerservice/armcontainerservice/assets.json b/sdk/resourcemanager/containerservice/armcontainerservice/assets.json new file mode 100644 index 000000000000..167c0692ca50 --- /dev/null +++ b/sdk/resourcemanager/containerservice/armcontainerservice/assets.json @@ -0,0 +1,6 @@ +{ + "AssetsRepo": "Azure/azure-sdk-assets", + "AssetsRepoPrefixPath": "go", + "TagPrefix": "go/resourcemanager/containerservice/armcontainerservice", + "Tag": "go/resourcemanager/containerservice/armcontainerservice_fc1df54cd7" +} diff --git a/sdk/resourcemanager/containerservice/armcontainerservice/go.mod b/sdk/resourcemanager/containerservice/armcontainerservice/go.mod index 5a14409fbe5c..fd048ac5a32a 100644 --- a/sdk/resourcemanager/containerservice/armcontainerservice/go.mod +++ b/sdk/resourcemanager/containerservice/armcontainerservice/go.mod @@ -3,19 +3,27 @@ module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerservice/ar go 1.18 require ( - github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.0 + github.com/Azure/azure-sdk-for-go/sdk/azcore v1.4.0 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.2 + github.com/stretchr/testify v1.7.0 ) require ( - github.com/Azure/azure-sdk-for-go/sdk/internal v1.0.0 // indirect + github.com/Azure/azure-sdk-for-go/sdk/internal v1.2.0 // indirect + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0 // indirect github.com/AzureAD/microsoft-authentication-library-for-go v0.7.0 // indirect + github.com/davecgh/go-spew v1.1.1 // indirect + github.com/dnaeon/go-vcr v1.1.0 // indirect github.com/golang-jwt/jwt/v4 v4.4.2 // 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 + github.com/pmezard/go-difflib v1.0.0 // 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 + golang.org/x/net v0.7.0 // indirect + golang.org/x/sys v0.5.0 // indirect + golang.org/x/text v0.7.0 // indirect + gopkg.in/yaml.v2 v2.4.0 // indirect + gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect ) diff --git a/sdk/resourcemanager/containerservice/armcontainerservice/go.sum b/sdk/resourcemanager/containerservice/armcontainerservice/go.sum index 08075ffb8181..b0f97586a165 100644 --- a/sdk/resourcemanager/containerservice/armcontainerservice/go.sum +++ b/sdk/resourcemanager/containerservice/armcontainerservice/go.sum @@ -1,30 +1,47 @@ -github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.0 h1:Ut0ZGdOwJDw0npYEg+TLlPls3Pq6JiZaP2/aGKir7Zw= -github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.0/go.mod h1:uGG2W01BaETf0Ozp+QxxKJdMBNRWPdstHG0Fmdwn1/U= +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.0 h1:t/W5MYAuQy81cvM8VUNfRLzhtKpXhVUAN7Cd7KVbTyc= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.0/go.mod h1:NBanQUfSWiWn3QEpWDTCU0IjBECKOYvl2R8xdRtMtiM= -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/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/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.2 h1:mLY+pNLjCUeKhgnAJWAKhEUQM+RJQo2H1fuGSw1Ky1E= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.2/go.mod h1:FbdwsQ2EzwvXxOPcMFYO8ogEc9uMMIj3YkmCdXdAFmk= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0 h1:ECsQtyERDVz3NP3kvDOTLvbQhqWp/x9EsGKtb4ogUr8= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0/go.mod h1:s1tW/At+xHqjNFvWU4G0c0Qv33KOhvbGNj0RCTQDV8s= github.com/AzureAD/microsoft-authentication-library-for-go v0.7.0 h1:VgSJlZH5u0k2qxSpqyghcFQKmvYckj46uymKK5XzkBM= github.com/AzureAD/microsoft-authentication-library-for-go v0.7.0/go.mod h1:BDJ5qMFKx9DugEg3+uQSDCdbYPr5s9vBTrL9P8TpqOU= +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/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 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/v4 v4.4.2 h1:rcc4lwaZgFMCZ5jxF9ABolDcIHdBytAFgqFPbSJQAYs= github.com/golang-jwt/jwt/v4 v4.4.2/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= 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/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-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-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/net v0.7.0 h1:rJrUqqhjsgNp7KqAIc25s9pZnjU7TUcSY7HcVZjdn1g= +golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= +golang.org/x/sys v0.5.0 h1:MUK/U/4lj1t1oPg0HfuXDN/Z1wv31ZJ/YcPiGccS4DU= +golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/text v0.7.0 h1:4BRB4x83lYWy72KwLD/qYDuTu7q9PjSagHvijDw7cLo= +golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= +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= +gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/sdk/resourcemanager/containerservice/armcontainerservice/managedclusters_live_test.go b/sdk/resourcemanager/containerservice/armcontainerservice/managedclusters_live_test.go new file mode 100644 index 000000000000..1c521b88d5ec --- /dev/null +++ b/sdk/resourcemanager/containerservice/armcontainerservice/managedclusters_live_test.go @@ -0,0 +1,407 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armcontainerservice_test + +import ( + "context" + "fmt" + "testing" + + "time" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerservice/armcontainerservice/v2" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/testutil" + "github.com/stretchr/testify/suite" +) + +type ManagedclustersTestSuite struct { + suite.Suite + + ctx context.Context + cred azcore.TokenCredential + options *arm.ClientOptions + agentPoolName string + agentpoolId string + configName string + resourceName string + azureClientId string + azureClientSecret string + location string + resourceGroupName string + subscriptionId string +} + +func (testsuite *ManagedclustersTestSuite) SetupSuite() { + testsuite.ctx = context.Background() + testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) + testsuite.agentPoolName = "agentpoolna" + testsuite.configName = "configna" + testsuite.resourceName = "containerservicena" + testsuite.azureClientId = testutil.GetEnv("AZURE_CLIENT_ID", "000000000000") + testsuite.azureClientSecret = testutil.GetEnv("AZURE_CLIENT_SECRET", "000000000000") + testsuite.location = testutil.GetEnv("LOCATION", "eastus") + testsuite.resourceGroupName = testutil.GetEnv("RESOURCE_GROUP_NAME", "scenarioTestTempGroup") + testsuite.subscriptionId = testutil.GetEnv("AZURE_SUBSCRIPTION_ID", "00000000-0000-0000-0000-000000000000") + + testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/containerservice/armcontainerservice/testdata") + resourceGroup, _, err := testutil.CreateResourceGroup(testsuite.ctx, testsuite.subscriptionId, testsuite.cred, testsuite.options, testsuite.location) + testsuite.Require().NoError(err) + testsuite.resourceGroupName = *resourceGroup.Name + testsuite.Prepare() +} + +func (testsuite *ManagedclustersTestSuite) TearDownSuite() { + testsuite.Cleanup() + _, err := testutil.DeleteResourceGroup(testsuite.ctx, testsuite.subscriptionId, testsuite.cred, testsuite.options, testsuite.resourceGroupName) + testsuite.Require().NoError(err) + testutil.StopRecording(testsuite.T()) +} + +func TestManagedclustersTestSuite(t *testing.T) { + suite.Run(t, new(ManagedclustersTestSuite)) +} + +func (testsuite *ManagedclustersTestSuite) Prepare() { + var err error + // From step ManagedClusters_CreateOrUpdate + fmt.Println("Call operation: ManagedClusters_CreateOrUpdate") + managedClustersClient, err := armcontainerservice.NewManagedClustersClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) + testsuite.Require().NoError(err) + managedClustersClientCreateOrUpdateResponsePoller, err := managedClustersClient.BeginCreateOrUpdate(testsuite.ctx, testsuite.resourceGroupName, testsuite.resourceName, armcontainerservice.ManagedCluster{ + Location: to.Ptr(testsuite.location), + Properties: &armcontainerservice.ManagedClusterProperties{ + AgentPoolProfiles: []*armcontainerservice.ManagedClusterAgentPoolProfile{ + { + Type: to.Ptr(armcontainerservice.AgentPoolTypeVirtualMachineScaleSets), + Count: to.Ptr[int32](3), + EnableAutoScaling: to.Ptr(true), + EnableNodePublicIP: to.Ptr(true), + MaxCount: to.Ptr[int32](10), + MaxPods: to.Ptr[int32](110), + MinCount: to.Ptr[int32](1), + Mode: to.Ptr(armcontainerservice.AgentPoolModeSystem), + OSType: to.Ptr(armcontainerservice.OSTypeLinux), + VMSize: to.Ptr("Standard_DS2_v2"), + Name: to.Ptr("nodepool1"), + }}, + DNSPrefix: to.Ptr("dnsprefix1"), + ServicePrincipalProfile: &armcontainerservice.ManagedClusterServicePrincipalProfile{ + ClientID: to.Ptr(testsuite.azureClientId), + Secret: to.Ptr(testsuite.azureClientSecret), + }, + }, + }, nil) + testsuite.Require().NoError(err) + _, err = testutil.PollForTest(testsuite.ctx, managedClustersClientCreateOrUpdateResponsePoller) + testsuite.Require().NoError(err) + + // From step AgentPools_CreateOrUpdate + fmt.Println("Call operation: AgentPools_CreateOrUpdate") + agentPoolsClient, err := armcontainerservice.NewAgentPoolsClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) + testsuite.Require().NoError(err) + agentPoolsClientCreateOrUpdateResponsePoller, err := agentPoolsClient.BeginCreateOrUpdate(testsuite.ctx, testsuite.resourceGroupName, testsuite.resourceName, testsuite.agentPoolName, armcontainerservice.AgentPool{ + Properties: &armcontainerservice.ManagedClusterAgentPoolProfileProperties{ + Count: to.Ptr[int32](1), + Mode: to.Ptr(armcontainerservice.AgentPoolModeUser), + NodeLabels: map[string]*string{ + "key1": to.Ptr("val1"), + }, + NodeTaints: []*string{ + to.Ptr("Key1=Value1:NoSchedule")}, + OrchestratorVersion: to.Ptr(""), + OSType: to.Ptr(armcontainerservice.OSTypeLinux), + ScaleSetEvictionPolicy: to.Ptr(armcontainerservice.ScaleSetEvictionPolicyDelete), + ScaleSetPriority: to.Ptr(armcontainerservice.ScaleSetPrioritySpot), + Tags: map[string]*string{ + "name1": to.Ptr("val1"), + }, + VMSize: to.Ptr("Standard_DS2_v2"), + }, + }, nil) + testsuite.Require().NoError(err) + var agentPoolsClientCreateOrUpdateResponse *armcontainerservice.AgentPoolsClientCreateOrUpdateResponse + agentPoolsClientCreateOrUpdateResponse, err = testutil.PollForTest(testsuite.ctx, agentPoolsClientCreateOrUpdateResponsePoller) + testsuite.Require().NoError(err) + testsuite.agentpoolId = *agentPoolsClientCreateOrUpdateResponse.ID + + // From step Snapshots_CreateOrUpdate + fmt.Println("Call operation: Snapshots_CreateOrUpdate") + snapshotsClient, err := armcontainerservice.NewSnapshotsClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) + testsuite.Require().NoError(err) + _, err = snapshotsClient.CreateOrUpdate(testsuite.ctx, testsuite.resourceGroupName, testsuite.resourceName, armcontainerservice.Snapshot{ + Location: to.Ptr(testsuite.location), + Tags: map[string]*string{ + "key1": to.Ptr("val1"), + "key2": to.Ptr("val2"), + }, + Properties: &armcontainerservice.SnapshotProperties{ + CreationData: &armcontainerservice.CreationData{ + SourceResourceID: to.Ptr(testsuite.agentpoolId), + }, + }, + }, nil) + testsuite.Require().NoError(err) +} + +// Microsoft.ContainerService/managedClusters +func (testsuite *ManagedclustersTestSuite) TestContainserservice() { + var commandId string + var err error + // From step ManagedClusters_GetOSOptions + fmt.Println("Call operation: ManagedClusters_GetOSOptions") + managedClustersClient, err := armcontainerservice.NewManagedClustersClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) + testsuite.Require().NoError(err) + _, err = managedClustersClient.GetOSOptions(testsuite.ctx, testsuite.location, &armcontainerservice.ManagedClustersClientGetOSOptionsOptions{ResourceType: nil}) + testsuite.Require().NoError(err) + + // From step ManagedClusters_List + fmt.Println("Call operation: ManagedClusters_List") + managedClustersClientNewListPager := managedClustersClient.NewListPager(nil) + for managedClustersClientNewListPager.More() { + _, err := managedClustersClientNewListPager.NextPage(testsuite.ctx) + testsuite.Require().NoError(err) + break + } + + // From step ManagedClusters_ListByResourceGroup + fmt.Println("Call operation: ManagedClusters_ListByResourceGroup") + managedClustersClientNewListByResourceGroupPager := managedClustersClient.NewListByResourceGroupPager(testsuite.resourceGroupName, nil) + for managedClustersClientNewListByResourceGroupPager.More() { + _, err := managedClustersClientNewListByResourceGroupPager.NextPage(testsuite.ctx) + testsuite.Require().NoError(err) + break + } + + // From step ManagedClusters_ListOutboundNetworkDependenciesEndpoints + fmt.Println("Call operation: ManagedClusters_ListOutboundNetworkDependenciesEndpoints") + managedClustersClientNewListOutboundNetworkDependenciesEndpointsPager := managedClustersClient.NewListOutboundNetworkDependenciesEndpointsPager(testsuite.resourceGroupName, testsuite.resourceName, nil) + for managedClustersClientNewListOutboundNetworkDependenciesEndpointsPager.More() { + _, err := managedClustersClientNewListOutboundNetworkDependenciesEndpointsPager.NextPage(testsuite.ctx) + testsuite.Require().NoError(err) + break + } + + // From step ManagedClusters_Get + fmt.Println("Call operation: ManagedClusters_Get") + _, err = managedClustersClient.Get(testsuite.ctx, testsuite.resourceGroupName, testsuite.resourceName, nil) + testsuite.Require().NoError(err) + + // From step ManagedClusters_GetUpgradeProfile + fmt.Println("Call operation: ManagedClusters_GetUpgradeProfile") + _, err = managedClustersClient.GetUpgradeProfile(testsuite.ctx, testsuite.resourceGroupName, testsuite.resourceName, nil) + testsuite.Require().NoError(err) + + // From step ManagedClusters_UpdateTags + fmt.Println("Call operation: ManagedClusters_UpdateTags") + managedClustersClientUpdateTagsResponsePoller, err := managedClustersClient.BeginUpdateTags(testsuite.ctx, testsuite.resourceGroupName, testsuite.resourceName, armcontainerservice.TagsObject{ + Tags: map[string]*string{ + "archv3": to.Ptr(""), + "tier": to.Ptr("testing"), + }, + }, nil) + testsuite.Require().NoError(err) + _, err = testutil.PollForTest(testsuite.ctx, managedClustersClientUpdateTagsResponsePoller) + testsuite.Require().NoError(err) + + // From step ManagedClusters_GetAccessProfile + fmt.Println("Call operation: ManagedClusters_GetAccessProfile") + _, err = managedClustersClient.GetAccessProfile(testsuite.ctx, testsuite.resourceGroupName, testsuite.resourceName, "clusterUser", nil) + testsuite.Require().NoError(err) + + // From step ManagedClusters_ListClusterUserCredentials + fmt.Println("Call operation: ManagedClusters_ListClusterUserCredentials") + _, err = managedClustersClient.ListClusterUserCredentials(testsuite.ctx, testsuite.resourceGroupName, testsuite.resourceName, &armcontainerservice.ManagedClustersClientListClusterUserCredentialsOptions{ServerFqdn: nil, + Format: nil, + }) + testsuite.Require().NoError(err) + + // From step ManagedClusters_ListClusterAdminCredentials + fmt.Println("Call operation: ManagedClusters_ListClusterAdminCredentials") + _, err = managedClustersClient.ListClusterAdminCredentials(testsuite.ctx, testsuite.resourceGroupName, testsuite.resourceName, &armcontainerservice.ManagedClustersClientListClusterAdminCredentialsOptions{ServerFqdn: nil}) + testsuite.Require().NoError(err) + + // From step ManagedClusters_ListClusterMonitoringUserCredentials + fmt.Println("Call operation: ManagedClusters_ListClusterMonitoringUserCredentials") + _, err = managedClustersClient.ListClusterMonitoringUserCredentials(testsuite.ctx, testsuite.resourceGroupName, testsuite.resourceName, &armcontainerservice.ManagedClustersClientListClusterMonitoringUserCredentialsOptions{ServerFqdn: nil}) + testsuite.Require().NoError(err) + + // From step ManagedClusters_RunCommand + fmt.Println("Call operation: ManagedClusters_RunCommand") + managedClustersClientRunCommandResponsePoller, err := managedClustersClient.BeginRunCommand(testsuite.ctx, testsuite.resourceGroupName, testsuite.resourceName, armcontainerservice.RunCommandRequest{ + ClusterToken: to.Ptr(""), + Command: to.Ptr("kubectl version"), + Context: to.Ptr(""), + }, nil) + testsuite.Require().NoError(err) + var managedClustersClientRunCommandResponse *armcontainerservice.ManagedClustersClientRunCommandResponse + managedClustersClientRunCommandResponse, err = testutil.PollForTest(testsuite.ctx, managedClustersClientRunCommandResponsePoller) + testsuite.Require().NoError(err) + commandId = *managedClustersClientRunCommandResponse.ID + + // From step ManagedClusters_GetCommandResult + fmt.Println("Call operation: ManagedClusters_GetCommandResult") + _, err = managedClustersClient.GetCommandResult(testsuite.ctx, testsuite.resourceGroupName, testsuite.resourceName, commandId, nil) + testsuite.Require().NoError(err) + + // From step ManagedClusters_Start + fmt.Println("Call operation: ManagedClusters_Start") + managedClustersClientStartResponsePoller, err := managedClustersClient.BeginStart(testsuite.ctx, testsuite.resourceGroupName, testsuite.resourceName, nil) + testsuite.Require().NoError(err) + _, err = testutil.PollForTest(testsuite.ctx, managedClustersClientStartResponsePoller) + testsuite.Require().NoError(err) +} + +// Microsoft.ContainerService/managedClusters/agentPools +func (testsuite *ManagedclustersTestSuite) TestAgentpools() { + var err error + // From step AgentPools_List + fmt.Println("Call operation: AgentPools_List") + agentPoolsClient, err := armcontainerservice.NewAgentPoolsClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) + testsuite.Require().NoError(err) + agentPoolsClientNewListPager := agentPoolsClient.NewListPager(testsuite.resourceGroupName, testsuite.resourceName, nil) + for agentPoolsClientNewListPager.More() { + _, err := agentPoolsClientNewListPager.NextPage(testsuite.ctx) + testsuite.Require().NoError(err) + break + } + + // From step AgentPools_GetUpgradeProfile + fmt.Println("Call operation: AgentPools_GetUpgradeProfile") + _, err = agentPoolsClient.GetUpgradeProfile(testsuite.ctx, testsuite.resourceGroupName, testsuite.resourceName, testsuite.agentPoolName, nil) + testsuite.Require().NoError(err) + + // From step AgentPools_Get + fmt.Println("Call operation: AgentPools_Get") + _, err = agentPoolsClient.Get(testsuite.ctx, testsuite.resourceGroupName, testsuite.resourceName, testsuite.agentPoolName, nil) + testsuite.Require().NoError(err) + + // From step AgentPools_GetAvailableAgentPoolVersions + fmt.Println("Call operation: AgentPools_GetAvailableAgentPoolVersions") + _, err = agentPoolsClient.GetAvailableAgentPoolVersions(testsuite.ctx, testsuite.resourceGroupName, testsuite.resourceName, nil) + testsuite.Require().NoError(err) + + // From step AgentPools_UpgradeNodeImageVersion + fmt.Println("Call operation: AgentPools_UpgradeNodeImageVersion") + agentPoolsClientUpgradeNodeImageVersionResponsePoller, err := agentPoolsClient.BeginUpgradeNodeImageVersion(testsuite.ctx, testsuite.resourceGroupName, testsuite.resourceName, testsuite.agentPoolName, nil) + testsuite.Require().NoError(err) + _, err = testutil.PollForTest(testsuite.ctx, agentPoolsClientUpgradeNodeImageVersionResponsePoller) + testsuite.Require().NoError(err) +} + +// Microsoft.ContainerService/snapshots +func (testsuite *ManagedclustersTestSuite) TestSnapshots() { + var err error + // From step Snapshots_List + fmt.Println("Call operation: Snapshots_List") + snapshotsClient, err := armcontainerservice.NewSnapshotsClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) + testsuite.Require().NoError(err) + snapshotsClientNewListPager := snapshotsClient.NewListPager(nil) + for snapshotsClientNewListPager.More() { + _, err := snapshotsClientNewListPager.NextPage(testsuite.ctx) + testsuite.Require().NoError(err) + break + } + + // From step Snapshots_ListByResourceGroup + fmt.Println("Call operation: Snapshots_ListByResourceGroup") + snapshotsClientNewListByResourceGroupPager := snapshotsClient.NewListByResourceGroupPager(testsuite.resourceGroupName, nil) + for snapshotsClientNewListByResourceGroupPager.More() { + _, err := snapshotsClientNewListByResourceGroupPager.NextPage(testsuite.ctx) + testsuite.Require().NoError(err) + break + } + + // From step Snapshots_Get + fmt.Println("Call operation: Snapshots_Get") + _, err = snapshotsClient.Get(testsuite.ctx, testsuite.resourceGroupName, testsuite.resourceName, nil) + testsuite.Require().NoError(err) +} + +// Microsoft.ContainerService/managedClusters/maintenanceConfigurations +func (testsuite *ManagedclustersTestSuite) TestMaintenanceconfigurations() { + var err error + // From step MaintenanceConfigurations_CreateOrUpdate + fmt.Println("Call operation: MaintenanceConfigurations_CreateOrUpdate") + maintenanceConfigurationsClient, err := armcontainerservice.NewMaintenanceConfigurationsClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) + testsuite.Require().NoError(err) + _, err = maintenanceConfigurationsClient.CreateOrUpdate(testsuite.ctx, testsuite.resourceGroupName, testsuite.resourceName, testsuite.configName, armcontainerservice.MaintenanceConfiguration{ + Properties: &armcontainerservice.MaintenanceConfigurationProperties{ + NotAllowedTime: []*armcontainerservice.TimeSpan{ + { + End: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-11-30T12:00:00Z"); return t }()), + Start: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-11-26T03:00:00Z"); return t }()), + }}, + TimeInWeek: []*armcontainerservice.TimeInWeek{ + { + Day: to.Ptr(armcontainerservice.WeekDayMonday), + HourSlots: []*int32{ + to.Ptr[int32](1), + to.Ptr[int32](2)}, + }}, + }, + }, nil) + testsuite.Require().NoError(err) + + // From step MaintenanceConfigurations_ListByManagedCluster + fmt.Println("Call operation: MaintenanceConfigurations_ListByManagedCluster") + maintenanceConfigurationsClientNewListByManagedClusterPager := maintenanceConfigurationsClient.NewListByManagedClusterPager(testsuite.resourceGroupName, testsuite.resourceName, nil) + for maintenanceConfigurationsClientNewListByManagedClusterPager.More() { + _, err := maintenanceConfigurationsClientNewListByManagedClusterPager.NextPage(testsuite.ctx) + testsuite.Require().NoError(err) + break + } + + // From step MaintenanceConfigurations_Get + fmt.Println("Call operation: MaintenanceConfigurations_Get") + _, err = maintenanceConfigurationsClient.Get(testsuite.ctx, testsuite.resourceGroupName, testsuite.resourceName, testsuite.configName, nil) + testsuite.Require().NoError(err) + + // From step MaintenanceConfigurations_Delete + fmt.Println("Call operation: MaintenanceConfigurations_Delete") + _, err = maintenanceConfigurationsClient.Delete(testsuite.ctx, testsuite.resourceGroupName, testsuite.resourceName, testsuite.configName, nil) + testsuite.Require().NoError(err) +} + +func (testsuite *ManagedclustersTestSuite) Cleanup() { + var err error + // From step Snapshots_Delete + fmt.Println("Call operation: Snapshots_Delete") + snapshotsClient, err := armcontainerservice.NewSnapshotsClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) + testsuite.Require().NoError(err) + _, err = snapshotsClient.Delete(testsuite.ctx, testsuite.resourceGroupName, testsuite.resourceName, nil) + testsuite.Require().NoError(err) + + // From step AgentPools_Delete + fmt.Println("Call operation: AgentPools_Delete") + agentPoolsClient, err := armcontainerservice.NewAgentPoolsClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) + testsuite.Require().NoError(err) + agentPoolsClientDeleteResponsePoller, err := agentPoolsClient.BeginDelete(testsuite.ctx, testsuite.resourceGroupName, testsuite.resourceName, testsuite.agentPoolName, nil) + testsuite.Require().NoError(err) + _, err = testutil.PollForTest(testsuite.ctx, agentPoolsClientDeleteResponsePoller) + testsuite.Require().NoError(err) + + // From step ManagedClusters_Stop + fmt.Println("Call operation: ManagedClusters_Stop") + managedClustersClient, err := armcontainerservice.NewManagedClustersClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) + testsuite.Require().NoError(err) + managedClustersClientStopResponsePoller, err := managedClustersClient.BeginStop(testsuite.ctx, testsuite.resourceGroupName, testsuite.resourceName, nil) + testsuite.Require().NoError(err) + _, err = testutil.PollForTest(testsuite.ctx, managedClustersClientStopResponsePoller) + testsuite.Require().NoError(err) + + // From step ManagedClusters_Delete + fmt.Println("Call operation: ManagedClusters_Delete") + managedClustersClientDeleteResponsePoller, err := managedClustersClient.BeginDelete(testsuite.ctx, testsuite.resourceGroupName, testsuite.resourceName, nil) + testsuite.Require().NoError(err) + _, err = testutil.PollForTest(testsuite.ctx, managedClustersClientDeleteResponsePoller) + testsuite.Require().NoError(err) +} diff --git a/sdk/resourcemanager/containerservice/armcontainerservice/testdata/recordings/TestManagedclustersTestSuite.json b/sdk/resourcemanager/containerservice/armcontainerservice/testdata/recordings/TestManagedclustersTestSuite.json deleted file mode 100644 index 8a1ed79d76c8..000000000000 --- a/sdk/resourcemanager/containerservice/armcontainerservice/testdata/recordings/TestManagedclustersTestSuite.json +++ /dev/null @@ -1,4757 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "eastus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 13 Oct 2022 06:28:07 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T062807Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "eastus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerService/managedClusters/containerservicena?api-version=2022-08-03-preview", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "429", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "eastus", - "properties": { - "agentPoolProfiles": [ - { - "count": 3, - "enableAutoScaling": true, - "enableNodePublicIP": true, - "maxCount": 10, - "maxPods": 110, - "minCount": 1, - "mode": "System", - "name": "nodepool1", - "osType": "Linux", - "type": "VirtualMachineScaleSets", - "vmSize": "Standard_DS2_v2" - } - ], - "dnsPrefix": "dnsprefix1", - "servicePrincipalProfile": { - "clientId": "000000000000", - "secret": "000000000000" - } - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2017-08-31", - "Cache-Control": "no-cache", - "Content-Length": "2305", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:28:21 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T062822Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.ContainerService/managedClusters/containerservicena", - "location": "eastus", - "name": "containerservicena", - "type": "Microsoft.ContainerService/ManagedClusters", - "properties": { - "provisioningState": "Creating", - "powerState": { - "code": "Running" - }, - "kubernetesVersion": "1.23.12", - "currentKubernetesVersion": "1.23.12", - "dnsPrefix": "dnsprefix1", - "fqdn": "dnsprefix1-205bafb7.hcp.eastus.azmk8s.io", - "azurePortalFQDN": "dnsprefix1-205bafb7.portal.hcp.eastus.azmk8s.io", - "agentPoolProfiles": [ - { - "name": "nodepool1", - "count": 3, - "vmSize": "Standard_DS2_v2", - "osDiskSizeGB": 128, - "osDiskType": "Managed", - "kubeletDiskType": "OS", - "maxPods": 110, - "type": "VirtualMachineScaleSets", - "maxCount": 10, - "minCount": 1, - "enableAutoScaling": true, - "provisioningState": "Creating", - "powerState": { - "code": "Running" - }, - "orchestratorVersion": "1.23.12", - "currentOrchestratorVersion": "1.23.12", - "enableNodePublicIP": true, - "mode": "System", - "osType": "Linux", - "osSKU": "Ubuntu", - "nodeImageVersion": "AKSUbuntu-1804gen2containerd-2022.09.22", - "enableFIPS": false - } - ], - "servicePrincipalProfile": { - "clientId": "000000000000" - }, - "nodeResourceGroup": "MC_go-sdk-test-rg_containerservicena_eastus", - "enableRBAC": true, - "networkProfile": { - "networkPlugin": "kubenet", - "loadBalancerSku": "standard", - "loadBalancerProfile": { - "managedOutboundIPs": { - "count": 1 - } - }, - "podCidr": "10.244.0.0/16", - "serviceCidr": "10.0.0.0/16", - "dnsServiceIP": "10.0.0.10", - "dockerBridgeCidr": "172.17.0.1/16", - "outboundType": "loadBalancer", - "podCidrs": [ - "10.244.0.0/16" - ], - "serviceCidrs": [ - "10.0.0.0/16" - ], - "ipFamilies": [ - "IPv4" - ] - }, - "maxAgentPools": 100, - "securityProfile": {}, - "storageProfile": { - "diskCSIDriver": { - "enabled": true - }, - "fileCSIDriver": { - "enabled": true - }, - "snapshotController": { - "enabled": true - } - } - }, - "sku": { - "name": "Basic", - "tier": "Free" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:28:22 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11999", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T062822Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-10-13T06:28:21.1994701Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:28:52 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11998", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T062853Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-10-13T06:28:21.1994701Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:29:22 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11997", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T062923Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-10-13T06:28:21.1994701Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:29:54 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11996", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T062954Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-10-13T06:28:21.1994701Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:30:24 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11995", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T063024Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-10-13T06:28:21.1994701Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:30:54 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11994", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T063054Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-10-13T06:28:21.1994701Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:31:25 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11993", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T063125Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-10-13T06:28:21.1994701Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:31:55 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11992", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T063155Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-10-13T06:28:21.1994701Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:32:25 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11991", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T063226Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-10-13T06:28:21.1994701Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:32:56 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11990", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T063257Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-10-13T06:28:21.1994701Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:33:27 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11989", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T063327Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-10-13T06:28:21.1994701Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:33:57 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11988", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T063358Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-10-13T06:28:21.1994701Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:34:28 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11987", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T063428Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-10-13T06:28:21.1994701Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:34:58 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11986", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T063458Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-10-13T06:28:21.1994701Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:35:28 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11985", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T063529Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-10-13T06:28:21.1994701Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:35:59 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11984", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T063559Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-10-13T06:28:21.1994701Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:36:29 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11983", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T063629Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-10-13T06:28:21.1994701Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:36:59 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11982", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T063700Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-10-13T06:28:21.1994701Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:37:31 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11981", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T063731Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-10-13T06:28:21.1994701Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:38:01 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11980", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T063801Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-10-13T06:28:21.1994701Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:38:31 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11979", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T063832Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-10-13T06:28:21.1994701Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:39:02 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11978", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T063902Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-10-13T06:28:21.1994701Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:39:32 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11977", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T063932Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-10-13T06:28:21.1994701Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:40:03 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11976", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T064003Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-10-13T06:28:21.1994701Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:40:33 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11975", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T064033Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-10-13T06:28:21.1994701Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:41:04 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11974", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T064104Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-10-13T06:28:21.1994701Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:41:34 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11973", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T064134Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-10-13T06:28:21.1994701Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:42:04 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11972", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T064205Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-10-13T06:28:21.1994701Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:42:35 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11971", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T064236Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "Succeeded", - "startTime": "2022-10-13T06:28:21.1994701Z", - "endTime": "2022-10-13T06:42:20.6685611Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerService/managedClusters/containerservicena?api-version=2022-08-03-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:42:36 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11970", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T064237Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.ContainerService/managedClusters/containerservicena", - "location": "eastus", - "name": "containerservicena", - "type": "Microsoft.ContainerService/ManagedClusters", - "properties": { - "provisioningState": "Succeeded", - "powerState": { - "code": "Running" - }, - "kubernetesVersion": "1.23.12", - "currentKubernetesVersion": "1.23.12", - "dnsPrefix": "dnsprefix1", - "fqdn": "dnsprefix1-205bafb7.hcp.eastus.azmk8s.io", - "azurePortalFQDN": "dnsprefix1-205bafb7.portal.hcp.eastus.azmk8s.io", - "agentPoolProfiles": [ - { - "name": "nodepool1", - "count": 3, - "vmSize": "Standard_DS2_v2", - "osDiskSizeGB": 128, - "osDiskType": "Managed", - "kubeletDiskType": "OS", - "maxPods": 110, - "type": "VirtualMachineScaleSets", - "maxCount": 10, - "minCount": 1, - "enableAutoScaling": true, - "provisioningState": "Succeeded", - "powerState": { - "code": "Running" - }, - "orchestratorVersion": "1.23.12", - "currentOrchestratorVersion": "1.23.12", - "enableNodePublicIP": true, - "mode": "System", - "osType": "Linux", - "osSKU": "Ubuntu", - "nodeImageVersion": "AKSUbuntu-1804gen2containerd-2022.09.22", - "enableFIPS": false - } - ], - "servicePrincipalProfile": { - "clientId": "000000000000" - }, - "nodeResourceGroup": "MC_go-sdk-test-rg_containerservicena_eastus", - "enableRBAC": true, - "networkProfile": { - "networkPlugin": "kubenet", - "loadBalancerSku": "Standard", - "loadBalancerProfile": { - "managedOutboundIPs": { - "count": 1 - }, - "effectiveOutboundIPs": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_go-sdk-test-rg_containerservicena_eastus/providers/Microsoft.Network/publicIPAddresses/00000000-0000-0000-0000-000000000000" - } - ] - }, - "podCidr": "10.244.0.0/16", - "serviceCidr": "10.0.0.0/16", - "dnsServiceIP": "10.0.0.10", - "dockerBridgeCidr": "172.17.0.1/16", - "outboundType": "loadBalancer", - "podCidrs": [ - "10.244.0.0/16" - ], - "serviceCidrs": [ - "10.0.0.0/16" - ], - "ipFamilies": [ - "IPv4" - ] - }, - "maxAgentPools": 100, - "autoScalerProfile": { - "balance-similar-node-groups": "false", - "expander": "random", - "max-empty-bulk-delete": "10", - "max-graceful-termination-sec": "600", - "max-node-provision-time": "15m", - "max-total-unready-percentage": "45", - "new-pod-scale-up-delay": "0s", - "ok-total-unready-count": "3", - "scale-down-delay-after-add": "10m", - "scale-down-delay-after-delete": "10s", - "scale-down-delay-after-failure": "3m", - "scale-down-unneeded-time": "10m", - "scale-down-unready-time": "20m", - "scale-down-utilization-threshold": "0.5", - "scan-interval": "10s", - "skip-nodes-with-local-storage": "false", - "skip-nodes-with-system-pods": "true" - }, - "securityProfile": {}, - "storageProfile": { - "diskCSIDriver": { - "enabled": true - }, - "fileCSIDriver": { - "enabled": true - }, - "snapshotController": { - "enabled": true - } - } - }, - "sku": { - "name": "Basic", - "tier": "Free" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerService/managedClusters/containerservicena/agentPools/agentpoolna?api-version=2022-08-03-preview", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "262", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "count": 1, - "mode": "User", - "nodeLabels": { - "key1": "val1" - }, - "nodeTaints": [ - "Key1=Value1:NoSchedule" - ], - "orchestratorVersion": "", - "osType": "Linux", - "scaleSetEvictionPolicy": "Delete", - "scaleSetPriority": "Spot", - "tags": { - "name1": "val1" - }, - "vmSize": "Standard_DS2_v2" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2017-08-31", - "Cache-Control": "no-cache", - "Content-Length": "1180", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:42:40 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1197", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T064240Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.ContainerService/managedClusters/containerservicena/agentPools/agentpoolna", - "name": "agentpoolna", - "type": "Microsoft.ContainerService/managedClusters/agentPools", - "properties": { - "count": 1, - "vmSize": "Standard_DS2_v2", - "osDiskSizeGB": 128, - "osDiskType": "Managed", - "kubeletDiskType": "OS", - "maxPods": 110, - "type": "VirtualMachineScaleSets", - "scaleDownMode": "Delete", - "provisioningState": "Creating", - "powerState": { - "code": "Running" - }, - "orchestratorVersion": "1.23.12", - "currentOrchestratorVersion": "1.23.12", - "scaleSetPriority": "Spot", - "scaleSetEvictionPolicy": "Delete", - "spotMaxPrice": -1, - "tags": { - "name1": "val1" - }, - "nodeLabels": { - "key1": "val1", - "kubernetes.azure.com/scalesetpriority": "spot" - }, - "nodeTaints": [ - "Key1=Value1:NoSchedule", - "kubernetes.azure.com/scalesetpriority=spot:NoSchedule" - ], - "mode": "User", - "osType": "Linux", - "osSKU": "Ubuntu", - "nodeImageVersion": "AKSUbuntu-1804gen2containerd-2022.09.22", - "enableFIPS": false - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:42:40 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11969", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T064241Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-10-13T06:42:40.6375889Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:43:10 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11968", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T064311Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-10-13T06:42:40.6375889Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:43:41 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11967", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T064342Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-10-13T06:42:40.6375889Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:44:11 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11966", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T064412Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-10-13T06:42:40.6375889Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:44:42 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11965", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T064442Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-10-13T06:42:40.6375889Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:45:12 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11964", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T064513Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-10-13T06:42:40.6375889Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:45:42 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11963", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T064543Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-10-13T06:42:40.6375889Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:46:13 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11962", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T064614Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-10-13T06:42:40.6375889Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:46:44 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11961", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T064645Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "Succeeded", - "startTime": "2022-10-13T06:42:40.6375889Z", - "endTime": "2022-10-13T06:46:18.6046947Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerService/managedClusters/containerservicena/agentPools/agentpoolna?api-version=2022-08-03-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:46:45 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11960", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T064646Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.ContainerService/managedClusters/containerservicena/agentPools/agentpoolna", - "name": "agentpoolna", - "type": "Microsoft.ContainerService/managedClusters/agentPools", - "properties": { - "count": 1, - "vmSize": "Standard_DS2_v2", - "osDiskSizeGB": 128, - "osDiskType": "Managed", - "kubeletDiskType": "OS", - "maxPods": 110, - "type": "VirtualMachineScaleSets", - "scaleDownMode": "Delete", - "provisioningState": "Succeeded", - "powerState": { - "code": "Running" - }, - "orchestratorVersion": "1.23.12", - "currentOrchestratorVersion": "1.23.12", - "scaleSetPriority": "Spot", - "scaleSetEvictionPolicy": "Delete", - "spotMaxPrice": -1, - "tags": { - "name1": "val1" - }, - "nodeLabels": { - "key1": "val1", - "kubernetes.azure.com/scalesetpriority": "spot" - }, - "nodeTaints": [ - "Key1=Value1:NoSchedule", - "kubernetes.azure.com/scalesetpriority=spot:NoSchedule" - ], - "mode": "User", - "osType": "Linux", - "osSKU": "Ubuntu", - "nodeImageVersion": "AKSUbuntu-1804gen2containerd-2022.09.22", - "enableFIPS": false - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerService/snapshots/containerservicena?api-version=2022-08-03-preview", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "288", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "eastus", - "properties": { - "creationData": { - "sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.ContainerService/managedClusters/containerservicena/agentPools/agentpoolna" - } - }, - "tags": { - "key1": "val1", - "key2": "val2" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:46:50 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1196", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T064650Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "containerservicena", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerService/snapshots/containerservicena", - "type": "Microsoft.ContainerService/Snapshots", - "location": "eastus", - "tags": { - "key1": "val1", - "key2": "val2" - }, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-13T06:46:48.8873514Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-13T06:46:48.8873514Z" - }, - "properties": { - "creationData": { - "sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.ContainerService/managedClusters/containerservicena/agentPools/agentpoolna" - }, - "snapshotType": "NodePool", - "kubernetesVersion": "1.23.12", - "nodeImageVersion": "AKSUbuntu-1804gen2containerd-2022.09.22", - "osType": "Linux", - "osSku": "Ubuntu", - "vmSize": "Standard_DS2_v2" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerService/managedClusters/containerservicena/agentPools?api-version=2022-08-03-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:46:51 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11959", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T064651Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.ContainerService/managedClusters/containerservicena/agentPools/agentpoolna", - "name": "agentpoolna", - "type": "Microsoft.ContainerService/managedClusters/agentPools", - "properties": { - "count": 1, - "vmSize": "Standard_DS2_v2", - "osDiskSizeGB": 128, - "osDiskType": "Managed", - "kubeletDiskType": "OS", - "maxPods": 110, - "type": "VirtualMachineScaleSets", - "scaleDownMode": "Delete", - "provisioningState": "Succeeded", - "powerState": { - "code": "Running" - }, - "orchestratorVersion": "1.23.12", - "currentOrchestratorVersion": "1.23.12", - "scaleSetPriority": "Spot", - "scaleSetEvictionPolicy": "Delete", - "spotMaxPrice": -1, - "tags": { - "name1": "val1" - }, - "nodeLabels": { - "key1": "val1", - "kubernetes.azure.com/scalesetpriority": "spot" - }, - "nodeTaints": [ - "Key1=Value1:NoSchedule", - "kubernetes.azure.com/scalesetpriority=spot:NoSchedule" - ], - "mode": "User", - "osType": "Linux", - "osSKU": "Ubuntu", - "nodeImageVersion": "AKSUbuntu-1804gen2containerd-2022.09.22", - "enableFIPS": false - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.ContainerService/managedClusters/containerservicena/agentPools/nodepool1", - "name": "nodepool1", - "type": "Microsoft.ContainerService/managedClusters/agentPools", - "properties": { - "count": 3, - "vmSize": "Standard_DS2_v2", - "osDiskSizeGB": 128, - "osDiskType": "Managed", - "kubeletDiskType": "OS", - "maxPods": 110, - "type": "VirtualMachineScaleSets", - "maxCount": 10, - "minCount": 1, - "enableAutoScaling": true, - "provisioningState": "Succeeded", - "powerState": { - "code": "Running" - }, - "orchestratorVersion": "1.23.12", - "currentOrchestratorVersion": "1.23.12", - "enableNodePublicIP": true, - "mode": "System", - "osType": "Linux", - "osSKU": "Ubuntu", - "nodeImageVersion": "AKSUbuntu-1804gen2containerd-2022.09.22", - "enableFIPS": false - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerService/managedClusters/containerservicena/agentPools/agentpoolna/upgradeProfiles/default?api-version=2022-08-03-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:46:51 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11958", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T064652Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.ContainerService/managedClusters/containerservicena/agentPools/agentpoolna/upgradeProfiles/default", - "name": "default", - "type": "Microsoft.ContainerService/managedClusters/agentPools/upgradeProfiles", - "properties": { - "kubernetesVersion": "1.23.12", - "osType": "Linux", - "latestNodeImageVersion": "AKSUbuntu-1804gen2containerd-2022.09.22" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerService/managedClusters/containerservicena/agentPools/agentpoolna?api-version=2022-08-03-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:46:52 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11957", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T064653Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.ContainerService/managedClusters/containerservicena/agentPools/agentpoolna", - "name": "agentpoolna", - "type": "Microsoft.ContainerService/managedClusters/agentPools", - "properties": { - "count": 1, - "vmSize": "Standard_DS2_v2", - "osDiskSizeGB": 128, - "osDiskType": "Managed", - "kubeletDiskType": "OS", - "maxPods": 110, - "type": "VirtualMachineScaleSets", - "scaleDownMode": "Delete", - "provisioningState": "Succeeded", - "powerState": { - "code": "Running" - }, - "orchestratorVersion": "1.23.12", - "currentOrchestratorVersion": "1.23.12", - "scaleSetPriority": "Spot", - "scaleSetEvictionPolicy": "Delete", - "spotMaxPrice": -1, - "tags": { - "name1": "val1" - }, - "nodeLabels": { - "key1": "val1", - "kubernetes.azure.com/scalesetpriority": "spot" - }, - "nodeTaints": [ - "Key1=Value1:NoSchedule", - "kubernetes.azure.com/scalesetpriority=spot:NoSchedule" - ], - "mode": "User", - "osType": "Linux", - "osSKU": "Ubuntu", - "nodeImageVersion": "AKSUbuntu-1804gen2containerd-2022.09.22", - "enableFIPS": false - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerService/managedClusters/containerservicena/availableAgentPoolVersions?api-version=2022-08-03-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:46:53 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11956", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T064654Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.ContainerService/managedClusters/containerservicena/availableagentpoolversions", - "name": "default", - "type": "Microsoft.ContainerService/managedClusters/availableAgentpoolVersions", - "properties": { - "agentPoolVersions": [ - { - "kubernetesVersion": "1.22.11" - }, - { - "kubernetesVersion": "1.22.15" - }, - { - "kubernetesVersion": "1.23.8" - }, - { - "default": true, - "kubernetesVersion": "1.23.12" - } - ] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerService/managedClusters/containerservicena/agentPools/agentpoolna/upgradeNodeImageVersion?api-version=2022-08-03-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2017-08-31", - "Cache-Control": "no-cache", - "Content-Length": "1197", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:46:54 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operationresults/00000000-0000-0000-0000-000000000000?api-version=2017-08-31", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T064655Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.ContainerService/managedClusters/containerservicena/agentPools/agentpoolna", - "name": "agentpoolna", - "type": "Microsoft.ContainerService/managedClusters/agentPools", - "properties": { - "count": 1, - "vmSize": "Standard_DS2_v2", - "osDiskSizeGB": 128, - "osDiskType": "Managed", - "kubeletDiskType": "OS", - "maxPods": 110, - "type": "VirtualMachineScaleSets", - "scaleDownMode": "Delete", - "provisioningState": "UpgradingNodeImageVersion", - "powerState": { - "code": "Running" - }, - "orchestratorVersion": "1.23.12", - "currentOrchestratorVersion": "1.23.12", - "scaleSetPriority": "Spot", - "scaleSetEvictionPolicy": "Delete", - "spotMaxPrice": -1, - "tags": { - "name1": "val1" - }, - "nodeLabels": { - "key1": "val1", - "kubernetes.azure.com/scalesetpriority": "spot" - }, - "nodeTaints": [ - "Key1=Value1:NoSchedule", - "kubernetes.azure.com/scalesetpriority=spot:NoSchedule" - ], - "mode": "User", - "osType": "Linux", - "osSKU": "Ubuntu", - "nodeImageVersion": "AKSUbuntu-1804gen2containerd-2022.09.22", - "enableFIPS": false - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:46:55 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11955", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T064655Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-10-13T06:46:55.3408504Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:47:26 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11954", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T064726Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "Succeeded", - "startTime": "2022-10-13T06:46:55.3408504Z", - "endTime": "2022-10-13T06:47:04.3568127Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operationresults/00000000-0000-0000-0000-000000000000?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:47:26 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operationresults/00000000-0000-0000-0000-000000000000?api-version=2017-08-31", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11953", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T064726Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/osOptions/default?api-version=2022-08-03-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:47:26 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11952", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T064727Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/osOptions/default", - "name": "default", - "type": "Microsoft.ContainerService/locations/osOptions", - "properties": { - "osOptionPropertyList": [ - { - "os-type": "Linux", - "os-sku": "Ubuntu", - "enable-fips-image": false - }, - { - "os-type": "Linux", - "os-sku": "Ubuntu", - "enable-fips-image": true - }, - { - "os-type": "Windows", - "os-sku": "", - "enable-fips-image": false - }, - { - "os-type": "Windows", - "os-sku": "", - "enable-fips-image": true - }, - { - "os-type": "Linux", - "os-sku": "CBLMariner", - "enable-fips-image": false - } - ] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/managedClusters?api-version=2022-08-03-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:47:27 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11951", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T064727Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.ContainerService/managedClusters/containerservicena", - "location": "eastus", - "name": "containerservicena", - "type": "Microsoft.ContainerService/ManagedClusters", - "properties": { - "provisioningState": "Succeeded", - "powerState": { - "code": "Running" - }, - "kubernetesVersion": "1.23.12", - "currentKubernetesVersion": "1.23.12", - "dnsPrefix": "dnsprefix1", - "fqdn": "dnsprefix1-205bafb7.hcp.eastus.azmk8s.io", - "azurePortalFQDN": "dnsprefix1-205bafb7.portal.hcp.eastus.azmk8s.io", - "agentPoolProfiles": [ - { - "name": "agentpoolna", - "count": 1, - "vmSize": "Standard_DS2_v2", - "osDiskSizeGB": 128, - "osDiskType": "Managed", - "kubeletDiskType": "OS", - "maxPods": 110, - "type": "VirtualMachineScaleSets", - "scaleDownMode": "Delete", - "provisioningState": "Succeeded", - "powerState": { - "code": "Running" - }, - "orchestratorVersion": "1.23.12", - "currentOrchestratorVersion": "1.23.12", - "scaleSetPriority": "Spot", - "scaleSetEvictionPolicy": "Delete", - "spotMaxPrice": -1, - "tags": { - "name1": "val1" - }, - "nodeLabels": { - "key1": "val1", - "kubernetes.azure.com/scalesetpriority": "spot" - }, - "nodeTaints": [ - "Key1=Value1:NoSchedule", - "kubernetes.azure.com/scalesetpriority=spot:NoSchedule" - ], - "mode": "User", - "osType": "Linux", - "osSKU": "Ubuntu", - "nodeImageVersion": "AKSUbuntu-1804gen2containerd-2022.09.22", - "enableFIPS": false - }, - { - "name": "nodepool1", - "count": 3, - "vmSize": "Standard_DS2_v2", - "osDiskSizeGB": 128, - "osDiskType": "Managed", - "kubeletDiskType": "OS", - "maxPods": 110, - "type": "VirtualMachineScaleSets", - "maxCount": 10, - "minCount": 1, - "enableAutoScaling": true, - "provisioningState": "Succeeded", - "powerState": { - "code": "Running" - }, - "orchestratorVersion": "1.23.12", - "currentOrchestratorVersion": "1.23.12", - "enableNodePublicIP": true, - "mode": "System", - "osType": "Linux", - "osSKU": "Ubuntu", - "nodeImageVersion": "AKSUbuntu-1804gen2containerd-2022.09.22", - "enableFIPS": false - } - ], - "servicePrincipalProfile": { - "clientId": "000000000000" - }, - "nodeResourceGroup": "MC_go-sdk-test-rg_containerservicena_eastus", - "enableRBAC": true, - "networkProfile": { - "networkPlugin": "kubenet", - "loadBalancerSku": "Standard", - "loadBalancerProfile": { - "managedOutboundIPs": { - "count": 1 - }, - "effectiveOutboundIPs": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_go-sdk-test-rg_containerservicena_eastus/providers/Microsoft.Network/publicIPAddresses/00000000-0000-0000-0000-000000000000" - } - ] - }, - "podCidr": "10.244.0.0/16", - "serviceCidr": "10.0.0.0/16", - "dnsServiceIP": "10.0.0.10", - "dockerBridgeCidr": "172.17.0.1/16", - "outboundType": "loadBalancer", - "podCidrs": [ - "10.244.0.0/16" - ], - "serviceCidrs": [ - "10.0.0.0/16" - ], - "ipFamilies": [ - "IPv4" - ] - }, - "maxAgentPools": 100, - "securityProfile": {}, - "storageProfile": { - "diskCSIDriver": { - "enabled": true - }, - "fileCSIDriver": { - "enabled": true - }, - "snapshotController": { - "enabled": true - } - } - }, - "sku": { - "name": "Basic", - "tier": "Free" - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerService/managedClusters?api-version=2022-08-03-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:47:28 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11950", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T064728Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.ContainerService/managedClusters/containerservicena", - "location": "eastus", - "name": "containerservicena", - "type": "Microsoft.ContainerService/ManagedClusters", - "properties": { - "provisioningState": "Succeeded", - "powerState": { - "code": "Running" - }, - "kubernetesVersion": "1.23.12", - "currentKubernetesVersion": "1.23.12", - "dnsPrefix": "dnsprefix1", - "fqdn": "dnsprefix1-205bafb7.hcp.eastus.azmk8s.io", - "azurePortalFQDN": "dnsprefix1-205bafb7.portal.hcp.eastus.azmk8s.io", - "agentPoolProfiles": [ - { - "name": "agentpoolna", - "count": 1, - "vmSize": "Standard_DS2_v2", - "osDiskSizeGB": 128, - "osDiskType": "Managed", - "kubeletDiskType": "OS", - "maxPods": 110, - "type": "VirtualMachineScaleSets", - "scaleDownMode": "Delete", - "provisioningState": "Succeeded", - "powerState": { - "code": "Running" - }, - "orchestratorVersion": "1.23.12", - "currentOrchestratorVersion": "1.23.12", - "scaleSetPriority": "Spot", - "scaleSetEvictionPolicy": "Delete", - "spotMaxPrice": -1, - "tags": { - "name1": "val1" - }, - "nodeLabels": { - "key1": "val1", - "kubernetes.azure.com/scalesetpriority": "spot" - }, - "nodeTaints": [ - "Key1=Value1:NoSchedule", - "kubernetes.azure.com/scalesetpriority=spot:NoSchedule" - ], - "mode": "User", - "osType": "Linux", - "osSKU": "Ubuntu", - "nodeImageVersion": "AKSUbuntu-1804gen2containerd-2022.09.22", - "enableFIPS": false - }, - { - "name": "nodepool1", - "count": 3, - "vmSize": "Standard_DS2_v2", - "osDiskSizeGB": 128, - "osDiskType": "Managed", - "kubeletDiskType": "OS", - "maxPods": 110, - "type": "VirtualMachineScaleSets", - "maxCount": 10, - "minCount": 1, - "enableAutoScaling": true, - "provisioningState": "Succeeded", - "powerState": { - "code": "Running" - }, - "orchestratorVersion": "1.23.12", - "currentOrchestratorVersion": "1.23.12", - "enableNodePublicIP": true, - "mode": "System", - "osType": "Linux", - "osSKU": "Ubuntu", - "nodeImageVersion": "AKSUbuntu-1804gen2containerd-2022.09.22", - "enableFIPS": false - } - ], - "servicePrincipalProfile": { - "clientId": "000000000000" - }, - "nodeResourceGroup": "MC_go-sdk-test-rg_containerservicena_eastus", - "enableRBAC": true, - "networkProfile": { - "networkPlugin": "kubenet", - "loadBalancerSku": "Standard", - "loadBalancerProfile": { - "managedOutboundIPs": { - "count": 1 - }, - "effectiveOutboundIPs": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_go-sdk-test-rg_containerservicena_eastus/providers/Microsoft.Network/publicIPAddresses/00000000-0000-0000-0000-000000000000" - } - ] - }, - "podCidr": "10.244.0.0/16", - "serviceCidr": "10.0.0.0/16", - "dnsServiceIP": "10.0.0.10", - "dockerBridgeCidr": "172.17.0.1/16", - "outboundType": "loadBalancer", - "podCidrs": [ - "10.244.0.0/16" - ], - "serviceCidrs": [ - "10.0.0.0/16" - ], - "ipFamilies": [ - "IPv4" - ] - }, - "maxAgentPools": 100, - "securityProfile": {}, - "storageProfile": { - "diskCSIDriver": { - "enabled": true - }, - "fileCSIDriver": { - "enabled": true - }, - "snapshotController": { - "enabled": true - } - } - }, - "sku": { - "name": "Basic", - "tier": "Free" - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerService/managedClusters/containerservicena/outboundNetworkDependenciesEndpoints?api-version=2022-08-03-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:47:28 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11949", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T064729Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "category": "azure-resource-management", - "endpoints": [ - { - "domainName": "management.azure.com", - "endpointDetails": [ - { - "port": 443, - "protocol": "Https" - } - ] - }, - { - "domainName": "login.microsoftonline.com", - "endpointDetails": [ - { - "port": 443, - "protocol": "Https" - } - ] - } - ] - }, - { - "category": "images", - "endpoints": [ - { - "domainName": "mcr.microsoft.com", - "endpointDetails": [ - { - "port": 443, - "protocol": "Https" - } - ] - }, - { - "domainName": "*.data.mcr.microsoft.com", - "endpointDetails": [ - { - "port": 443, - "protocol": "Https", - "description": "mcr cdn" - } - ] - } - ] - }, - { - "category": "artifacts", - "endpoints": [ - { - "domainName": "packages.microsoft.com", - "endpointDetails": [ - { - "port": 443, - "protocol": "Https" - } - ] - }, - { - "domainName": "acs-mirror.azureedge.net", - "endpointDetails": [ - { - "port": 443, - "protocol": "Https" - } - ] - } - ] - }, - { - "category": "time-sync", - "endpoints": [ - { - "domainName": "ntp.ubuntu.com", - "endpointDetails": [ - { - "port": 123, - "protocol": "UDP" - } - ] - } - ] - }, - { - "category": "ubuntu-optional", - "endpoints": [ - { - "domainName": "security.ubuntu.com", - "endpointDetails": [ - { - "port": 80, - "protocol": "Http" - } - ] - }, - { - "domainName": "azure.archive.ubuntu.com", - "endpointDetails": [ - { - "port": 80, - "protocol": "Http" - } - ] - }, - { - "domainName": "changelogs.ubuntu.com", - "endpointDetails": [ - { - "port": 80, - "protocol": "Http" - } - ] - } - ] - }, - { - "category": "apiserver", - "endpoints": [ - { - "domainName": "dnsprefix1-205bafb7.hcp.eastus.azmk8s.io", - "endpointDetails": [ - { - "port": 443, - "protocol": "Https" - } - ] - } - ] - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerService/managedClusters/containerservicena?api-version=2022-08-03-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:47:29 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11948", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T064730Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.ContainerService/managedClusters/containerservicena", - "location": "eastus", - "name": "containerservicena", - "type": "Microsoft.ContainerService/ManagedClusters", - "properties": { - "provisioningState": "Succeeded", - "powerState": { - "code": "Running" - }, - "kubernetesVersion": "1.23.12", - "currentKubernetesVersion": "1.23.12", - "dnsPrefix": "dnsprefix1", - "fqdn": "dnsprefix1-205bafb7.hcp.eastus.azmk8s.io", - "azurePortalFQDN": "dnsprefix1-205bafb7.portal.hcp.eastus.azmk8s.io", - "agentPoolProfiles": [ - { - "name": "agentpoolna", - "count": 1, - "vmSize": "Standard_DS2_v2", - "osDiskSizeGB": 128, - "osDiskType": "Managed", - "kubeletDiskType": "OS", - "maxPods": 110, - "type": "VirtualMachineScaleSets", - "scaleDownMode": "Delete", - "provisioningState": "Succeeded", - "powerState": { - "code": "Running" - }, - "orchestratorVersion": "1.23.12", - "currentOrchestratorVersion": "1.23.12", - "scaleSetPriority": "Spot", - "scaleSetEvictionPolicy": "Delete", - "spotMaxPrice": -1, - "tags": { - "name1": "val1" - }, - "nodeLabels": { - "key1": "val1", - "kubernetes.azure.com/scalesetpriority": "spot" - }, - "nodeTaints": [ - "Key1=Value1:NoSchedule", - "kubernetes.azure.com/scalesetpriority=spot:NoSchedule" - ], - "mode": "User", - "osType": "Linux", - "osSKU": "Ubuntu", - "nodeImageVersion": "AKSUbuntu-1804gen2containerd-2022.09.22", - "enableFIPS": false - }, - { - "name": "nodepool1", - "count": 3, - "vmSize": "Standard_DS2_v2", - "osDiskSizeGB": 128, - "osDiskType": "Managed", - "kubeletDiskType": "OS", - "maxPods": 110, - "type": "VirtualMachineScaleSets", - "maxCount": 10, - "minCount": 1, - "enableAutoScaling": true, - "provisioningState": "Succeeded", - "powerState": { - "code": "Running" - }, - "orchestratorVersion": "1.23.12", - "currentOrchestratorVersion": "1.23.12", - "enableNodePublicIP": true, - "mode": "System", - "osType": "Linux", - "osSKU": "Ubuntu", - "nodeImageVersion": "AKSUbuntu-1804gen2containerd-2022.09.22", - "enableFIPS": false - } - ], - "servicePrincipalProfile": { - "clientId": "000000000000" - }, - "nodeResourceGroup": "MC_go-sdk-test-rg_containerservicena_eastus", - "enableRBAC": true, - "networkProfile": { - "networkPlugin": "kubenet", - "loadBalancerSku": "Standard", - "loadBalancerProfile": { - "managedOutboundIPs": { - "count": 1 - }, - "effectiveOutboundIPs": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_go-sdk-test-rg_containerservicena_eastus/providers/Microsoft.Network/publicIPAddresses/00000000-0000-0000-0000-000000000000" - } - ] - }, - "podCidr": "10.244.0.0/16", - "serviceCidr": "10.0.0.0/16", - "dnsServiceIP": "10.0.0.10", - "dockerBridgeCidr": "172.17.0.1/16", - "outboundType": "loadBalancer", - "podCidrs": [ - "10.244.0.0/16" - ], - "serviceCidrs": [ - "10.0.0.0/16" - ], - "ipFamilies": [ - "IPv4" - ] - }, - "maxAgentPools": 100, - "autoScalerProfile": { - "balance-similar-node-groups": "false", - "expander": "random", - "max-empty-bulk-delete": "10", - "max-graceful-termination-sec": "600", - "max-node-provision-time": "15m", - "max-total-unready-percentage": "45", - "new-pod-scale-up-delay": "0s", - "ok-total-unready-count": "3", - "scale-down-delay-after-add": "10m", - "scale-down-delay-after-delete": "10s", - "scale-down-delay-after-failure": "3m", - "scale-down-unneeded-time": "10m", - "scale-down-unready-time": "20m", - "scale-down-utilization-threshold": "0.5", - "scan-interval": "10s", - "skip-nodes-with-local-storage": "false", - "skip-nodes-with-system-pods": "true" - }, - "securityProfile": {}, - "storageProfile": { - "diskCSIDriver": { - "enabled": true - }, - "fileCSIDriver": { - "enabled": true - }, - "snapshotController": { - "enabled": true - } - } - }, - "sku": { - "name": "Basic", - "tier": "Free" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerService/managedClusters/containerservicena/upgradeProfiles/default?api-version=2022-08-03-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:47:30 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11947", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T064731Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.ContainerService/managedClusters/containerservicena/upgradeprofiles/default", - "name": "default", - "type": "Microsoft.ContainerService/managedClusters/upgradeprofiles", - "properties": { - "controlPlaneProfile": { - "kubernetesVersion": "1.23.12", - "osType": "Linux", - "upgrades": [ - { - "kubernetesVersion": "1.24.3" - }, - { - "kubernetesVersion": "1.24.6" - } - ] - }, - "agentPoolProfiles": null - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerService/managedClusters/containerservicena?api-version=2022-08-03-preview", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "39", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "tags": { - "archv3": "", - "tier": "testing" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:47:40 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1195", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T064740Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.ContainerService/managedClusters/containerservicena", - "location": "eastus", - "name": "containerservicena", - "tags": { - "archv3": "", - "tier": "testing" - }, - "type": "Microsoft.ContainerService/ManagedClusters", - "properties": { - "provisioningState": "Succeeded", - "powerState": { - "code": "Running" - }, - "kubernetesVersion": "1.23.12", - "currentKubernetesVersion": "1.23.12", - "dnsPrefix": "dnsprefix1", - "fqdn": "dnsprefix1-205bafb7.hcp.eastus.azmk8s.io", - "azurePortalFQDN": "dnsprefix1-205bafb7.portal.hcp.eastus.azmk8s.io", - "agentPoolProfiles": [ - { - "name": "agentpoolna", - "count": 1, - "vmSize": "Standard_DS2_v2", - "osDiskSizeGB": 128, - "osDiskType": "Managed", - "kubeletDiskType": "OS", - "maxPods": 110, - "type": "VirtualMachineScaleSets", - "scaleDownMode": "Delete", - "provisioningState": "Succeeded", - "powerState": { - "code": "Running" - }, - "orchestratorVersion": "1.23.12", - "currentOrchestratorVersion": "1.23.12", - "scaleSetPriority": "Spot", - "scaleSetEvictionPolicy": "Delete", - "spotMaxPrice": -1, - "tags": { - "name1": "val1" - }, - "nodeLabels": { - "key1": "val1", - "kubernetes.azure.com/scalesetpriority": "spot" - }, - "nodeTaints": [ - "Key1=Value1:NoSchedule", - "kubernetes.azure.com/scalesetpriority=spot:NoSchedule" - ], - "mode": "User", - "osType": "Linux", - "osSKU": "Ubuntu", - "nodeImageVersion": "AKSUbuntu-1804gen2containerd-2022.09.22", - "enableFIPS": false - }, - { - "name": "nodepool1", - "count": 3, - "vmSize": "Standard_DS2_v2", - "osDiskSizeGB": 128, - "osDiskType": "Managed", - "kubeletDiskType": "OS", - "maxPods": 110, - "type": "VirtualMachineScaleSets", - "maxCount": 10, - "minCount": 1, - "enableAutoScaling": true, - "provisioningState": "Succeeded", - "powerState": { - "code": "Running" - }, - "orchestratorVersion": "1.23.12", - "currentOrchestratorVersion": "1.23.12", - "enableNodePublicIP": true, - "mode": "System", - "osType": "Linux", - "osSKU": "Ubuntu", - "nodeImageVersion": "AKSUbuntu-1804gen2containerd-2022.09.22", - "enableFIPS": false - } - ], - "servicePrincipalProfile": { - "clientId": "000000000000" - }, - "nodeResourceGroup": "MC_go-sdk-test-rg_containerservicena_eastus", - "enableRBAC": true, - "networkProfile": { - "networkPlugin": "kubenet", - "loadBalancerSku": "Standard", - "loadBalancerProfile": { - "managedOutboundIPs": { - "count": 1 - }, - "effectiveOutboundIPs": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_go-sdk-test-rg_containerservicena_eastus/providers/Microsoft.Network/publicIPAddresses/00000000-0000-0000-0000-000000000000" - } - ] - }, - "podCidr": "10.244.0.0/16", - "serviceCidr": "10.0.0.0/16", - "dnsServiceIP": "10.0.0.10", - "dockerBridgeCidr": "172.17.0.1/16", - "outboundType": "loadBalancer", - "podCidrs": [ - "10.244.0.0/16" - ], - "serviceCidrs": [ - "10.0.0.0/16" - ], - "ipFamilies": [ - "IPv4" - ] - }, - "maxAgentPools": 100, - "securityProfile": {}, - "storageProfile": { - "diskCSIDriver": { - "enabled": true - }, - "fileCSIDriver": { - "enabled": true - }, - "snapshotController": { - "enabled": true - } - } - }, - "sku": { - "name": "Basic", - "tier": "Free" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerService/managedClusters/containerservicena/accessProfiles/clusterUser/listCredential?api-version=2022-08-03-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:47:41 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T064741Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.ContainerService/managedClusters/containerservicena/accessProfiles/clusterUser", - "location": "eastus", - "name": "clusterUser", - "type": "Microsoft.ContainerService/ManagedClusters/AccessProfiles", - "properties": { - "kubeConfig": "YXBpVmVyc2lvbjogdjEKY2x1c3RlcnM6Ci0gY2x1c3RlcjoKICAgIGNlcnRpZmljYXRlLWF1dGhvcml0eS1kYXRhOiBMUzB0TFMxQ1JVZEpUaUJEUlZKVVNVWkpRMEZVUlMwdExTMHRDazFKU1VVMlZFTkRRWFJIWjBGM1NVSkJaMGxTUVVwcVJqUlZNRWMzY21OUU0zWkdlbGQ2VEhnd1FtTjNSRkZaU2t0dldrbG9kbU5PUVZGRlRFSlJRWGNLUkZSRlRFMUJhMGRCTVZWRlFYaE5RMWt5UlhkSlFtTk9UV3BKZUUxRVJYcE5SRmw0VDBSUk5WZG9aMUJOYWtFeFRXcEZkMDFVVFhkT2FrazBUa1JzWVFwTlFUQjRRM3BCU2tKblRsWkNRVTFVUVcxT2FFMUpTVU5KYWtGT1FtZHJjV2hyYVVjNWR6QkNRVkZGUmtGQlQwTkJaemhCVFVsSlEwTm5TME5CWjBWQkNuRnVhU3RwVlVsbVMyRkpNWFF3VlhaWldERk1TRXd5ZG04M1VtbEtaVmd5WWtoQ1ZtTnBaa1ZvTkUwdlZrNUpOVk5RV0hoU1NWWkJVRmRVT1V4d2VFY0tZbk5MWlVSNkwwOWpiVEl6VkZZeVRESktTVUpyUzA1aFUyaHNiMDFHWm1ORlRqVklVbWg1YURkMlUxZHZlRkoyYXpKNVVITkRObGQzY2k5M1IyUnBkQXA2Um1WUGQwZ3hTMGN3UzI0MVpYaHlTbk5TWW5ONlMxVndiSFpHWlZOV05teFNaV3h6TkU1cU5YSjNabVpwYkhsMWNXTkdhbUpPY2paeGNXbFNZVkJMQ2t0SmRWTjFSaXRzV0dveGNUQjNhVTUwTm5ObWVsSnBOM0ZtWVZKTldEaEtVbEY2TldKcE1YVjZNMGRSU2l0MGVESTNNRVEyVHpFNGFXdGtSSFkwVFhRS1pUQk9ORTF2TjFBelZsUlhWV1ZhY2taek1GbHVXWGhLZHpsWllYaDFPWFFyUm5sMlZUWndTbVZNTUhGVVJrTXlTbVJITUhsNVNraHRlbHBJWXpSQlpBcDRaVnBoYm1aRk4zWXZRM3BvU0ZjeFJrOTVkRkZ0U1dKSVEwRnJaelJTV0VGRmRWY3hUVFZyWkdkQlRWZFNaRkJRU1ZOSWVFOHlMemgwVHpKNmJYbHdDbWRTYm5ORlNsSjNiVzlGU2pRM1lsZGtaM0pGVkdWeEwzbDVTMlptU1ZoUFltVm1RVXBNTmt0bVYzQXhhM2xMYlZCVFNrVmFWVXhKV1djME5VTTFjVzhLYUVOb2R6WmxTbVpPUkhoTVYxQnZhamd4VWxBeU9XeGhWV2x2VUdseE5EWm1VR3hhU1RsR1JXSlJaRFU0ZDJKSlRYQXJiVWxKVVdkdGJtbDRUbmxqU2dwNlNESkNUV2RWWTJWbldVeFdaa2h3UWpNMWFWZFhjMjVUTkN0T2VUZFlTRWxEZVRKVmRWUlNjMXBoUXpaNGVFVnZRV2RSTXpRdlpHMDVUV2RETWpsT0NuSXhlbXRHT1VSTVJsSnRkRnB3ZUZKb2NFZHZkRVJJYjJSMWNVMHZPV2RMWVRsblZETk1NRXRIYkRoT1dGaHNXRUZNTlVORE5IbDFNMXBOSzNOSU9VOEtXSEZwZVVWaGRrcEtUMGRVVEhoWEwwSnFRV3RpTVdWWlRFZ3plVzVMWkRsT2JXdEZhMmxLWkZCQ1ZVTkJkMFZCUVdGT1EwMUZRWGRFWjFsRVZsSXdVQXBCVVVndlFrRlJSRUZuUzJ0TlFUaEhRVEZWWkVWM1JVSXZkMUZHVFVGTlFrRm1PSGRJVVZsRVZsSXdUMEpDV1VWR1JrSnljMDVQWml0RlUwOUdjek5uQ20wNFUwaEJkbkZQT1V0c1JVMUJNRWREVTNGSFUwbGlNMFJSUlVKRGQxVkJRVFJKUTBGUlEwNVhNREJVUVZsa1kyTmtlRkl4ZFd3elVWZEJUMmswVlhRS2JGSkJOR3RxVG5rMGNrcHVka2RSY1hOWVlWZEVWVU5MT0RCSmJ6WkZjVkZaVUdadFlsWlJOblI0UnpCTE1qTndTRzAyYTJwYU1FbGlkSEZRTmpKUFVBcEtTR0phV1ZFMmVETTBjVkJHUTFORmJFSTBXRThyTTBGVVVsUXhXVFZhVGtSME1XWXZTbVo0U1cwMFZuWjRaM3BVVVZCcFJIUTFlRWRZVDJwbGJFTlhDamxWVjA1TGVIVTBaRVJTTTB4VVkyMXdibXQ1Tm5KbFNWQnRRbm81VGxCbGVXd3Jaek5XTDFkdVQyWlBSMFIxZURCR1FYbGtTMU52ZW1sRlV6aHNSbWdLV25CWlRFaFVlbXBKUlZWck1EQXJNVEoxYWxGcFVtazViRk5qZERkMmVIUnZWVEF2UmxObWVtWlhiVWswTWxSelYyTldjRlpTY2xsSVFVcENjMlkyV0FwR2JrVjRSbFJOTTBkTVlrUTVkMG8yTUV0TFZUZ3hjak50TUV4emRIYzJXSFJrYUhoTE1YSmFhVkZSWkhNdlNYRllWMU5NVVN0elVuZGhaV1ZDZEdOdkNuZGtkSEJ1WVZKNE9YTnlVMXBSVWxwVk5rWlhORGxpU0hkTlRHcHlMMlZzUTJwb1ozRlBRMDkxVjJvemFqZFFkRXBXUlVSemNuUjFaVGQ2VkhBeU5FSUtlVlJSYXpKbk5VOUVlWGRPYXpkSFJHbzFPRU00ZFZONmVEQktOMFpZVFVOVGFUUm5jRzFHVURkT1NGUjJNRkoxY3psV09YWm9Ubk50Y0hOdmR5OWhhUXB5UzBGbFlta3ZjbGRsZG5KelEyVk9kMDVCYm05RldGVnlhMVJqV1VSQlNVRklWbU5CWTBnNFV5dDFORWRJWm5jdlZuY3dRaXQzVUZZNFdVbG1NMjFJQ21JNGRscGFUVmRZVUVRd05IRTRiM1pJTjFoV1YyZDBRVzVaZVVsNlMyc3JNbGRzUzFGalprRjNPVGhzYjNSNFNuUTFXV3h5WlNzMGJrSmpWbGR5U25VS1YzcEhkV0pFU0hsSFlqSlRWa2RFWm1Nd2RFdzVibmN3TVZkeFQzcHFNemx5ZGxWcmEzZFdZaXRWVTJoalRFNURjVkl2UWpGd0wyTmtkWGx4YURoamVBbzNjMEYyYkd3NVVXd3hhWEpQWVhaR2RVRTlQUW90TFMwdExVVk9SQ0JEUlZKVVNVWkpRMEZVUlMwdExTMHRDZz09CiAgICBzZXJ2ZXI6IGh0dHBzOi8vZG5zcHJlZml4MS0yMDViYWZiNy5oY3AuZWFzdHVzLmF6bWs4cy5pbzo0NDMKICBuYW1lOiBjb250YWluZXJzZXJ2aWNlbmEKY29udGV4dHM6Ci0gY29udGV4dDoKICAgIGNsdXN0ZXI6IGNvbnRhaW5lcnNlcnZpY2VuYQogICAgdXNlcjogY2x1c3RlclVzZXJfZ28tc2RrLXRlc3QtNTYxX2NvbnRhaW5lcnNlcnZpY2VuYQogIG5hbWU6IGNvbnRhaW5lcnNlcnZpY2VuYQpjdXJyZW50LWNvbnRleHQ6IGNvbnRhaW5lcnNlcnZpY2VuYQpraW5kOiBDb25maWcKcHJlZmVyZW5jZXM6IHt9CnVzZXJzOgotIG5hbWU6IGNsdXN0ZXJVc2VyX2dvLXNkay10ZXN0LTU2MV9jb250YWluZXJzZXJ2aWNlbmEKICB1c2VyOgogICAgY2xpZW50LWNlcnRpZmljYXRlLWRhdGE6IExTMHRMUzFDUlVkSlRpQkRSVkpVU1VaSlEwRlVSUzB0TFMwdENrMUpTVVpJYWtORFFYZGhaMEYzU1VKQlowbFNRVW95VGxoa05WVTBZVnBLYW14VmFIUnpRMjlJYkUxM1JGRlpTa3R2V2tsb2RtTk9RVkZGVEVKUlFYY0tSRlJGVEUxQmEwZEJNVlZGUVhoTlExa3lSWGRJYUdOT1RXcEplRTFFUlhwTlJGbDRUMFJSTlZkb1kwNU5hbEY0VFVSRmVrMUVXWGxQUkZFMVYycEJkd3BOVW1OM1JsRlpSRlpSVVV0RmR6VjZaVmhPTUZwWE1EWmlWMFo2WkVkV2VXTjZSVlpOUWsxSFFURlZSVUY0VFUxaVYwWjZaRWRXZVZreWVIQmFWelV3Q2sxSlNVTkpha0ZPUW1kcmNXaHJhVWM1ZHpCQ1FWRkZSa0ZCVDBOQlp6aEJUVWxKUTBOblMwTkJaMFZCTkVneGVFaHRUa2xUYTB0S1VtMVJVWFkxTUhZS2JpOUZaM05UYzNCMWFHOHpRa3BpYlZOVk5YaG1hbTVQZDI5NFpGaEtNemxQVkVsR09EVlZVVUZITWl0YWFVUlVXVW92VEcxTlUyTm5UMGhKZG5CeFpnbzFablJhU3pOblF6ZFJMMU5SZG1JMk4wWXJWMDgyYzNKVVdWVlhjU3RyYkVWVVptOHZhVkpJVjBKblpscGFWMlpYYmpaU05IQTBWa0p6UXk4MVVIaDRDalZuTlRWSVEwcE5RekZUVVVrcmNtdHFkemxaZFZKT1JGUlVWMDQyYmxWeGJrUlhkelJDTlVGVloxcDZZVzVoYTBOd1VXZHZjRkZSV1dSemRYSkRiRGdLUXl0NWNFbHRVSGhWUm1kSmJtdFNUVVZRYVRSV2FsVnZaV2g1ZFRFM2VsTmhLMFpSVW5keWMxQkRlRTl6ZDBoTlluUndRVGxxUnpGa2VsSmthamhGYndwUlREZzVVRTFYYTJoaVQwWXdVV3BXWlVGaldHcDBMMVJuZFU1WWR5OVVTMWMxUjNScE4xbDFlakExWVVkUVdIbEljR1UyUzBzeFZ6RjBSM0YxVEcxR0NrZFZOMHhUWlRKamNqQlZNSEJpVUVoTmRuWjFNVXBIYXpSVFRtRjNabmRxY1hOV2JqUkZOVTlqTWtKelJUTjBSUzlKY21sQ1RFRlBUV3RNV2pSUGRYSUtlVXhYZWxOd2JuVmlaV2xqZEdoRVl6RlhjMHhRVldSM00wWnlkMVpJWVVaTE5GQk9SR013UlRkbmNUbFZZMWRqYmxSUVIwSkpaMng0TUc5d2FVRkhaZ3BPUVRGSWVIZzRaMUpEYlZCUWMzTjBXakp4T1VFelpWbE1kU3RpY214eGEzWXhZMmN5TjJkVWFDOXlOM3BEU0UxbmFXUnhXVmRwU2xSVWFqVktWRVZhQ2pCTmEweExkazVYYTNBNFFreDBMekZDVVROd1MyNXphREJzY2pSWFZIQnJhRTRyUTJSS0syUkRhelZrWTI1d05XUndUSGtyUkhoUmFGUk1Ua1F3VTBZS1VsSnpXblV4Y1V4WVdXbDZLMkk0ZUdwd2ExQjRVbEZ5ZG5oeFdsTlVWRU5xYVRoYWJXODJLMDlvWXl0NWExRjZhbnB0VkZaWVZuRTFZVnBsYW1SSlNncHhka1U0SzJabVowRkdTRkF5VVU5Mk5rbGtkR3h6UlVOQmQwVkJRV0ZPVjAxR1VYZEVaMWxFVmxJd1VFRlJTQzlDUVZGRVFXZFhaMDFDVFVkQk1WVmtDa3BSVVUxTlFXOUhRME56UjBGUlZVWkNkMDFEVFVGM1IwRXhWV1JGZDBWQ0wzZFJRMDFCUVhkSWQxbEVWbEl3YWtKQ1ozZEdiMEZWVlVkMWR6QTFMelFLVWtrMFYzcGxRMko0U1dOREsyODNNSEZWVVhkRVVWbEtTMjlhU1doMlkwNUJVVVZNUWxGQlJHZG5TVUpCUVhncldUWlFNM1JSWVRCa2VsRkphRzFOV0Fwak9WUmtlVTAzWkZWTFZ5dG5aMFoxZGsxdVkyOUNTMEU1YTJGUmVsTlZaa05qY2l0VmRESkhUMmhSZDJSQlRWQmxjbTlOUmtwelNTdDFWR01yVVZKbUNuRnRkelpDTVdGaGRGcHRNRFZuZDBGelJFTnZOVWRaTURkMlpXZ3dVV2xQVjJsbldUbEpRVEpIT1ROc09Gb3dhMWh6S3paWmEyZEpUMWs0WVVwdVFsQUtVeTk0UzJWM2FubHJZWEpwYzFoQlFtTk9SVVJCT1dWallrRkliR1JOU3pOUmN6SnlVMjlLZVRWRlkzUkdabGhMUVhkUlFtMXdSREJzUWpCcmIxQkVVQXBPUzJwbEszZFhjMWQyUkU5eEswWlFaVGc0VW1OUlVUbGthMVJFV2taNU9FbHdka1JLVUU1a2JXdEdOSEZaZFZwUVprdHhOVGw0VWt4M1pHOTFjeTlMQ2pCc1FXMVVaWEpGUTJwV04yVmhkSEYzTTB3eFRHSlJlRU5rTmt0MldHOU5ZbVZ5TVRkSVUxVlhjbmMwUTFOcllXdElTMUpzTUVoMlduZG5hRTVoVUdvS2NtcG9ibUp0WTFSU1lsZEtSVzl4YUhWeVV5czBhVEZ4TDJ4eFVFOVBhVTh2VkdkMVMwaENOMXBoV1hCT2FuWTRibE5pVjBnMGR6QTRTMnBhU2xoeGN3b3JUa2RDTUhONlYyZzJVRmRoYlhSSWRsbE9jblpWUVc4ek0wMUVTVTVxY1hKS1dEQmpOMWx1UWtaRGREVnNhbTFwT0RCWkszWXJNbGM1YkV0aVptdFpDbnBEUTNGMGJXdzRTblkwT1U5Tk5XTjNRa0ZvVjA4d1JVTkNURzk1UzA5WGRscHBVVFJuYnpKdFoyaDBWV2syYXpWVVVteHpkR3hwTkdOUFJ6VTBVVkVLSzNabFVrRkxNRFZOWnpWa09VY3pUekI2TVdWVlRHeG9hRWxvYldkRU1YZ3habGd2TDBSemJ6azJPV1Z4VlhGRWJVNUtUVU5ZWXprelpYbHpLMGMyWkFwTFRETXphMlpqUVdWbldFRkdVM0EyU2prMGNsWkpkQzg1U1VneFlYWklXWEpoZEZwVFdEUkdhRFJVU1d4Q2JqTjJZM2swVUdZeU9UVkVSbU5yWVhaRUNrbHlSWE5TY1VoMk5GQXpUa05GV1cxSE5FSnNZVVpEVWdvdExTMHRMVVZPUkNCRFJWSlVTVVpKUTBGVVJTMHRMUzB0Q2c9PQogICAgY2xpZW50LWtleS1kYXRhOiBMUzB0TFMxQ1JVZEpUaUJTVTBFZ1VGSkpWa0ZVUlNCTFJWa3RMUzB0TFFwTlNVbEtTMmRKUWtGQlMwTkJaMFZCTkVneGVFaHRUa2xUYTB0S1VtMVJVWFkxTUhadUwwVm5jMU56Y0hWb2J6TkNTbUp0VTFVMWVHWnFiazkzYjNoa0NsaEtNemxQVkVsR09EVlZVVUZITWl0YWFVUlVXVW92VEcxTlUyTm5UMGhKZG5CeFpqVm1kRnBMTTJkRE4xRXZVMUYyWWpZM1JpdFhUelp6Y2xSWlZWY0tjU3RyYkVWVVptOHZhVkpJVjBKblpscGFWMlpYYmpaU05IQTBWa0p6UXk4MVVIaDROV2MxTlVoRFNrMURNVk5SU1N0eWEycDNPVmwxVWs1RVZGUlhUZ28yYmxWeGJrUlhkelJDTlVGVloxcDZZVzVoYTBOd1VXZHZjRkZSV1dSemRYSkRiRGhESzNsd1NXMVFlRlZHWjBsdWExSk5SVkJwTkZacVZXOWxhSGwxQ2pFM2VsTmhLMFpSVW5keWMxQkRlRTl6ZDBoTlluUndRVGxxUnpGa2VsSmthamhGYjFGTU9EbFFUVmRyYUdKUFJqQlJhbFpsUVdOWWFuUXZWR2QxVGxnS2R5OVVTMWMxUjNScE4xbDFlakExWVVkUVdIbEljR1UyUzBzeFZ6RjBSM0YxVEcxR1IxVTNURk5sTW1OeU1GVXdjR0pRU0UxMmRuVXhTa2RyTkZOT1lRcDNabmRxY1hOV2JqUkZOVTlqTWtKelJUTjBSUzlKY21sQ1RFRlBUV3RNV2pSUGRYSjVURmQ2VTNCdWRXSmxhV04wYUVSak1WZHpURkJWWkhjelJuSjNDbFpJWVVaTE5GQk9SR013UlRkbmNUbFZZMWRqYmxSUVIwSkpaMng0TUc5d2FVRkhaazVCTVVoNGVEaG5Va050VUZCemMzUmFNbkU1UVRObFdVeDFLMklLY214eGEzWXhZMmN5TjJkVWFDOXlOM3BEU0UxbmFXUnhXVmRwU2xSVWFqVktWRVZhTUUxclRFdDJUbGRyY0RoQ1RIUXZNVUpSTTNCTGJuTm9NR3h5TkFwWFZIQnJhRTRyUTJSS0syUkRhelZrWTI1d05XUndUSGtyUkhoUmFGUk1Ua1F3VTBaU1VuTmFkVEZ4VEZoWmFYb3JZamg0YW5CclVIaFNVWEoyZUhGYUNsTlVWRU5xYVRoYWJXODJLMDlvWXl0NWExRjZhbnB0VkZaWVZuRTFZVnBsYW1SSlNuRjJSVGdyWm1ablFVWklVREpSVDNZMlNXUjBiSE5GUTBGM1JVRUtRVkZMUTBGblJVRjRjVTQwTkhCRGNrOU1jR3BUV25ac2FtZGxRMU53TlUxa1ZHaHBUbU5DV1dsdlJWUjVRek5ZUlhkQlNIbG1TREU0Y1hkQ2EzZHBSd3BhTmtOM2FHaERWbVI2ZWpScVVHdFpZVVpqWjNaS1NVMHhWWFIzZWxWc05DODFUM293ZUhjMmVYWktUREppYUVNNFVURnRlR0pPVEN0c1dGVmlUVmg1Q2t4c04yWnRhak5QUjJzNGIzTkRVbkUxWjBaSVZHSkNhMjVFVVdObVNuRXhORFJWWkd0TVJVVXdhVTVaYkhCWVdIaG1kMkpuTUdkMVExSlpaak5DVms4S1MzbElXbVpFYzJ4RFZVWjBjV05oYTJ0bVl6a3ZOMmswVG1KTFNHaDFNbXRSZWk4MFIxVlhjMkZ2TmpSWFFsRmpNa2h6TVVVNFozQnNaRUZKZVZacFdBcGthVlpsU0RKb09WRnlkMGR5ZEdkRmRqRlJRVFZFWlRkNWFWZzJabXRCTlRaWWNHaE9PRlpCVmxaVWFIWjBSbGh6VWpaM2R6VktlVFpJZGtWVGRqUXJDbVFyT1N0M1FWUjFhVVZQYjA5Q1Z6bHlXbmxxZVVoWVEwRkxOVE0ySzBwNFJIb3dkVXAxWTJKSUwxZE9RMHhRTDJ3eVluQkVaM2xTVVdKWU56UnlVVGtLVm5sb1FVMDFhRlpKYmxGaVJGaGFhRFpSWlhCc2VYQlJZVGRxYTJ4S1ltUmxRM1U1VFZWU1YzVkdaMXBpTUVrM1pVOURSVTV5WlZKYVFUSm1OVFpVYkFwTVRIcFhNMnA1T0U5bFRtbDFXWFJOTWxWM09VTldlREpYZFU0clRtSk5ialZ1TldRcmNWZFpSbHBQV0d0RldHUjZkekI1UjJsTk1rdDNUbk5wY1dJNUNuRlBVWEJvYUZNd05XRXhkR05rYzBNeVRuaElaRE56WmtKbVlVZGxlVTlVV0dOdVQwRk5jamhKVG1oclNGcGlUSFJPYjAxMFQyWjZSVmxZVldrMFpVd0thQ3RyWW14VWFWSXlVbk51VnpkNFJVNWlNWGhTS3pOS1lrZ3JialF6V2pWcWFuZE5iWFZaTjJSQk4zSnRSMHhrV25KMGFESkpNakE1VkVGdlVXUm5jQW92WkhCRFJWbG9ZbTg0WlhaV1UyOWhkMkUyYUVwalpVVkZhMkY2UkRCS1MyWlRPSFJJU0ZweFdUQXpWbFpuZERoaFNtdERaMmRGUWtGUGFWUnFXazVpQ2tGQmFWUklWblJJSzNoMldtMU5UQ3RUVTJkdk1YZHliWEZKZEhsdFQxY3llbmxCU0NzMWFsRmFWSGRoZFRkRk0yazFZa0o1U21vMWFUY3JNRkZvUlZRS1NUUjVXak5HYld4TVRVVnFRV1JhVjNSMFRYQmpiRUpyWmpsT1ZsYzNiUzh3UlZOR0wwSmlTamhRWm1ZMFJqRTRRMDFqVldsSFVWSlRNM1l2YUhsUk13cGtZbmc0YldZMVQyNUlWbkppZFZsMmVWcHVSRWxVSzBSRE9FVXlkamx5VERsYVZFOHlZbnBHTTNoaVpUY3ljSEpSY25FelNFWlVLMmQxU1RSQlZ5dFFDbEJSVW1vemVHOTBjRWhOTVc1a2FIbHBMM0UwVlZJdlYwaEZUa0ZxVkdreFRVSkRjbGhGZUd0WGJDOUliRkJ3U2pkNldqSlFNWGMwY3l0cU9URnBRVzRLTjFOVVkwUTJlbTlYWVVreWNtdGtkRXRsVUdkSVpsaGhWMVJMU0dkSFVFVTBWbTlVZDB4VEwyTlJjR1ZwUVc5eGFEQmpiamcxVGpWTlRXZExiMGh5TXdwNmRERmFZbTF6T0U0eE5saDVjR05EWjJkRlFrRlFZMXBhYmpCS1oxTnJNMDVVUTNWdWRVWkhRMDlXTkRGQlRWTXlUVEZJWkZwYVJVdFRNM3A0YVdOdUNtVkNkVXB5VldKeldISmxTMkZ5YTFod01GUjVjbmdyZEc1YVZWQnlXVFUwVGtSWVprOUlTamQ2YTNab09DdFVhbGxIYWxoTWFUUldiMlFyZUVzNFpITUtaSGw0YkdsdWFYSkJjRmQ1V21kTWFXUnhjakV2VmxCYU0zSldjREZLYkRSdU5sVXZkMVJKWmpFMGFFbFJTVTFqYUVWVlZYRlNkVWRLVnpGV1dIVllaQW96VDB0MmFVUnpaakpJVFZFNU1WUlpOR3QyVjFObFUySlNTbEpxUjI5NmRra3ZjRmd4U25ObGF6ZzFTVFZoTURkTmFGVktja3hXTmxCeE9FbGhMMEY1Q25Cb1MwbHRXWGhxVTNsdmVFRjZVekF2WWtNcmIwSXZTWFZPY2xCUk9GaFpWRE5TVm5OaU5UTllTV1JVTVVwVlQxRkZabFJ6UTJwa0swZzBXR05wZURRS2RFNWlXRkZhWkhweWVYaFRibVJ0YzJSd1UwcFVTaXRPVkhwSVZUaEZSVXAyTjNaUVVuVlBSVVJIWTBOblowVkNRVXRQZEZKQ1QxTkdWMGg2WkhSUFNRcDNkRmxGZFhoa2RuTmlhVXhzVm5SamJsQXdWMlI2WjJwQldERXZXVXhrV1RSbldEaHZiRGRFZDI0NGEyWmlTRFl6VkdwaEsxTjJaa1pyVDJFdlNrbDVDbEpzTjJRM2FYTlVPVGRMUVVaeE1IaE1VM2hxYUVKM2FrODRWV1J5YURKNmJrNTNNVTlGWkZOU1ZFMXNOV2czVjJSU1RXTTNPVk42UjNrMk9WZG1jVFVLUWtNNE1tNXRUbk1yYVc4eVVYa3pXbGxsY0cxU00zTktNSGhyV1hkbEszbExZVU5GTkVkVk5tVXdia0ZIUkZwUmNqTm1Xa0pzYlcxeGMwSjFUVTVNVWdwclJYaHpWRloyU1hOWE5sQlVUR2hzUkVweVpqQlJUVFZ6UlhaeE4xSm1kVUZDVVhJNU1Vb3hkV1F6VVU1cFRVY3pUVm8xTjJKdVVHNHpjM3BUSzNwYUNqQkZjbmw0U2tGTU5sWkZkbkJ4V1doT2JXcDZTalEwVUZCeVJWQXJZWGsyYkdsc1FVRmxiREZ4UzB0U1NWVkRSMG8yYVVGdmFGRnZWbVpOT1ZCNFNrVUtNMGx4TjNSS01FTm5aMFZDUVVsblVYWktZblIyVDI1MFRrdFVlVUY0YzFwaVdubDFlRVpDVFN0SlZsSmlSR0Z4YjJWS2FqaHBSblJaYmpSSVpXaHpjZ296V25oRU5VUkRORVJoZFhneGVUQnBaRlIxTTNadFNrNVlja3R5YTBoSE5rdDNZM1ZFVW1SckwxcHRPVzh2YUUxblV6WnJZVTg0VUd0NlFXNVhaa1JKQ21WcmRtdFRUR2RrTjBOeFNDdHJPVXRGV2tSclJHVllWWFpzVWtsdWVVaDVNWE5TT0hoTmJIUXdiMmRZYzBkamRtNTZlSFJZYVhoR01UTlJZMHBJUVhFS1VWRTFZbk5XV2xCa05EQTNSM05XTDIxdGRqZG9iM1JGZUVKTUsyVnNlRkZ2YVU1a2EwNTFjbFpTUTNkdGVVaDZhSE5FY21GclUwTklNa1JzVWpKbkt3bzFVWG9yYjBReFRucE5VMlZ6TlROTk9HSXpUR3hCTlVZMWNuRjNNVmxsUlZGeVpHbFBhRlUyUnpkMGVHNW1aR3BCTkhGeVltNTBLMjVHV1ZKbmJGUmlDbkIzU2twSVFreGFTRkpNT1RVcmRWUTNTMEZOUjJGQk1uUm9WemxPWkZCcGVYUkZRMmRuUlVGSU9GVTVSMUpoUTFaYWFFMWhPWEJNVldsT1pqaFRVVVFLY3pSa1NuWkhRblJtTTNwc00yeG1UakJ1TUZsT1FqTnZUVVJEY0VKaFVUWXZiblpzU1haeVkwZzRaekpZVm1relRIUlRiVGRqUTBOdVdreEdaWFl5TUFwSWVuQlJMMHA2YjFweVZ5OXNlalp1VWt0SldFeEhkMEZCY1hwSk5tZzBMMFZxTVRac1YyVmxjQzgzTTBseVQzTjJXbGQxTm5aRmFXRmFUVWhSTnpoeENuWlVVMjkwZUVweVJIaHRiVTgyU2tsNVRIbHZOM1JWVDFCQkwzbEdXRlZuYWxFM2MyYzFUV1Z5Vm5sb2QwbzJjeTlEVnpsRGExbHhNRTl6YjAxUU1YUUtLMXBtTVRWaU0wOTFUM3BGUVV4UlFsVlZSbkJDVEZZNVJtOXZkbFpxY0haemNtNHlhbEZCVDBaTk1rVlJOREJ4VldSd1RFSkVWSEZuTlhoRU1tYzRad3BaWWtVeGR6aHhVbVoyTlZrd2JXZHdOSFZRVXpSTllWRlBNM014ZDBabVNFWktORVJMZUVWemFESlRNbFk0Y1hvMldXRkZaMjVvYzNONlZrUlRaejA5Q2kwdExTMHRSVTVFSUZKVFFTQlFVa2xXUVZSRklFdEZXUzB0TFMwdENnPT0KICAgIHRva2VuOiBjYzBmMGYzY2FhYWZiMTc0ZjEzODI2MGYxZmVhODRkYWU3Yzk5MTY1ZDNmMzQ0M2UyYjBlNDM5Y2M1MzAzMDQyYWVhYjU3MzY2MjBhYTRkMzQ4NzFlMTgzMzNjMjEyZTRjOWIyNmE2ZmI2MDc0ZWU5NTcyZGQ1NDllYmVmMTAyZQo=" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerService/managedClusters/containerservicena/listClusterUserCredential?api-version=2022-08-03-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:47:42 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1197", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T064742Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "kubeconfigs": [ - { - "name": "clusterUser", - "value": "YXBpVmVyc2lvbjogdjEKY2x1c3RlcnM6Ci0gY2x1c3RlcjoKICAgIGNlcnRpZmljYXRlLWF1dGhvcml0eS1kYXRhOiBMUzB0TFMxQ1JVZEpUaUJEUlZKVVNVWkpRMEZVUlMwdExTMHRDazFKU1VVMlZFTkRRWFJIWjBGM1NVSkJaMGxTUVVwcVJqUlZNRWMzY21OUU0zWkdlbGQ2VEhnd1FtTjNSRkZaU2t0dldrbG9kbU5PUVZGRlRFSlJRWGNLUkZSRlRFMUJhMGRCTVZWRlFYaE5RMWt5UlhkSlFtTk9UV3BKZUUxRVJYcE5SRmw0VDBSUk5WZG9aMUJOYWtFeFRXcEZkMDFVVFhkT2FrazBUa1JzWVFwTlFUQjRRM3BCU2tKblRsWkNRVTFVUVcxT2FFMUpTVU5KYWtGT1FtZHJjV2hyYVVjNWR6QkNRVkZGUmtGQlQwTkJaemhCVFVsSlEwTm5TME5CWjBWQkNuRnVhU3RwVlVsbVMyRkpNWFF3VlhaWldERk1TRXd5ZG04M1VtbEtaVmd5WWtoQ1ZtTnBaa1ZvTkUwdlZrNUpOVk5RV0hoU1NWWkJVRmRVT1V4d2VFY0tZbk5MWlVSNkwwOWpiVEl6VkZZeVRESktTVUpyUzA1aFUyaHNiMDFHWm1ORlRqVklVbWg1YURkMlUxZHZlRkoyYXpKNVVITkRObGQzY2k5M1IyUnBkQXA2Um1WUGQwZ3hTMGN3UzI0MVpYaHlTbk5TWW5ONlMxVndiSFpHWlZOV05teFNaV3h6TkU1cU5YSjNabVpwYkhsMWNXTkdhbUpPY2paeGNXbFNZVkJMQ2t0SmRWTjFSaXRzV0dveGNUQjNhVTUwTm5ObWVsSnBOM0ZtWVZKTldEaEtVbEY2TldKcE1YVjZNMGRSU2l0MGVESTNNRVEyVHpFNGFXdGtSSFkwVFhRS1pUQk9ORTF2TjFBelZsUlhWV1ZhY2taek1GbHVXWGhLZHpsWllYaDFPWFFyUm5sMlZUWndTbVZNTUhGVVJrTXlTbVJITUhsNVNraHRlbHBJWXpSQlpBcDRaVnBoYm1aRk4zWXZRM3BvU0ZjeFJrOTVkRkZ0U1dKSVEwRnJaelJTV0VGRmRWY3hUVFZyWkdkQlRWZFNaRkJRU1ZOSWVFOHlMemgwVHpKNmJYbHdDbWRTYm5ORlNsSjNiVzlGU2pRM1lsZGtaM0pGVkdWeEwzbDVTMlptU1ZoUFltVm1RVXBNTmt0bVYzQXhhM2xMYlZCVFNrVmFWVXhKV1djME5VTTFjVzhLYUVOb2R6WmxTbVpPUkhoTVYxQnZhamd4VWxBeU9XeGhWV2x2VUdseE5EWm1VR3hhU1RsR1JXSlJaRFU0ZDJKSlRYQXJiVWxKVVdkdGJtbDRUbmxqU2dwNlNESkNUV2RWWTJWbldVeFdaa2h3UWpNMWFWZFhjMjVUTkN0T2VUZFlTRWxEZVRKVmRWUlNjMXBoUXpaNGVFVnZRV2RSTXpRdlpHMDVUV2RETWpsT0NuSXhlbXRHT1VSTVJsSnRkRnB3ZUZKb2NFZHZkRVJJYjJSMWNVMHZPV2RMWVRsblZETk1NRXRIYkRoT1dGaHNXRUZNTlVORE5IbDFNMXBOSzNOSU9VOEtXSEZwZVVWaGRrcEtUMGRVVEhoWEwwSnFRV3RpTVdWWlRFZ3plVzVMWkRsT2JXdEZhMmxLWkZCQ1ZVTkJkMFZCUVdGT1EwMUZRWGRFWjFsRVZsSXdVQXBCVVVndlFrRlJSRUZuUzJ0TlFUaEhRVEZWWkVWM1JVSXZkMUZHVFVGTlFrRm1PSGRJVVZsRVZsSXdUMEpDV1VWR1JrSnljMDVQWml0RlUwOUdjek5uQ20wNFUwaEJkbkZQT1V0c1JVMUJNRWREVTNGSFUwbGlNMFJSUlVKRGQxVkJRVFJKUTBGUlEwNVhNREJVUVZsa1kyTmtlRkl4ZFd3elVWZEJUMmswVlhRS2JGSkJOR3RxVG5rMGNrcHVka2RSY1hOWVlWZEVWVU5MT0RCSmJ6WkZjVkZaVUdadFlsWlJOblI0UnpCTE1qTndTRzAyYTJwYU1FbGlkSEZRTmpKUFVBcEtTR0phV1ZFMmVETTBjVkJHUTFORmJFSTBXRThyTTBGVVVsUXhXVFZhVGtSME1XWXZTbVo0U1cwMFZuWjRaM3BVVVZCcFJIUTFlRWRZVDJwbGJFTlhDamxWVjA1TGVIVTBaRVJTTTB4VVkyMXdibXQ1Tm5KbFNWQnRRbm81VGxCbGVXd3Jaek5XTDFkdVQyWlBSMFIxZURCR1FYbGtTMU52ZW1sRlV6aHNSbWdLV25CWlRFaFVlbXBKUlZWck1EQXJNVEoxYWxGcFVtazViRk5qZERkMmVIUnZWVEF2UmxObWVtWlhiVWswTWxSelYyTldjRlpTY2xsSVFVcENjMlkyV0FwR2JrVjRSbFJOTTBkTVlrUTVkMG8yTUV0TFZUZ3hjak50TUV4emRIYzJXSFJrYUhoTE1YSmFhVkZSWkhNdlNYRllWMU5NVVN0elVuZGhaV1ZDZEdOdkNuZGtkSEJ1WVZKNE9YTnlVMXBSVWxwVk5rWlhORGxpU0hkTlRHcHlMMlZzUTJwb1ozRlBRMDkxVjJvemFqZFFkRXBXUlVSemNuUjFaVGQ2VkhBeU5FSUtlVlJSYXpKbk5VOUVlWGRPYXpkSFJHbzFPRU00ZFZONmVEQktOMFpZVFVOVGFUUm5jRzFHVURkT1NGUjJNRkoxY3psV09YWm9Ubk50Y0hOdmR5OWhhUXB5UzBGbFlta3ZjbGRsZG5KelEyVk9kMDVCYm05RldGVnlhMVJqV1VSQlNVRklWbU5CWTBnNFV5dDFORWRJWm5jdlZuY3dRaXQzVUZZNFdVbG1NMjFJQ21JNGRscGFUVmRZVUVRd05IRTRiM1pJTjFoV1YyZDBRVzVaZVVsNlMyc3JNbGRzUzFGalprRjNPVGhzYjNSNFNuUTFXV3h5WlNzMGJrSmpWbGR5U25VS1YzcEhkV0pFU0hsSFlqSlRWa2RFWm1Nd2RFdzVibmN3TVZkeFQzcHFNemx5ZGxWcmEzZFdZaXRWVTJoalRFNURjVkl2UWpGd0wyTmtkWGx4YURoamVBbzNjMEYyYkd3NVVXd3hhWEpQWVhaR2RVRTlQUW90TFMwdExVVk9SQ0JEUlZKVVNVWkpRMEZVUlMwdExTMHRDZz09CiAgICBzZXJ2ZXI6IGh0dHBzOi8vZG5zcHJlZml4MS0yMDViYWZiNy5oY3AuZWFzdHVzLmF6bWs4cy5pbzo0NDMKICBuYW1lOiBjb250YWluZXJzZXJ2aWNlbmEKY29udGV4dHM6Ci0gY29udGV4dDoKICAgIGNsdXN0ZXI6IGNvbnRhaW5lcnNlcnZpY2VuYQogICAgdXNlcjogY2x1c3RlclVzZXJfZ28tc2RrLXRlc3QtNTYxX2NvbnRhaW5lcnNlcnZpY2VuYQogIG5hbWU6IGNvbnRhaW5lcnNlcnZpY2VuYQpjdXJyZW50LWNvbnRleHQ6IGNvbnRhaW5lcnNlcnZpY2VuYQpraW5kOiBDb25maWcKcHJlZmVyZW5jZXM6IHt9CnVzZXJzOgotIG5hbWU6IGNsdXN0ZXJVc2VyX2dvLXNkay10ZXN0LTU2MV9jb250YWluZXJzZXJ2aWNlbmEKICB1c2VyOgogICAgY2xpZW50LWNlcnRpZmljYXRlLWRhdGE6IExTMHRMUzFDUlVkSlRpQkRSVkpVU1VaSlEwRlVSUzB0TFMwdENrMUpTVVpJYWtORFFYZGhaMEYzU1VKQlowbFNRVW95VGxoa05WVTBZVnBLYW14VmFIUnpRMjlJYkUxM1JGRlpTa3R2V2tsb2RtTk9RVkZGVEVKUlFYY0tSRlJGVEUxQmEwZEJNVlZGUVhoTlExa3lSWGRJYUdOT1RXcEplRTFFUlhwTlJGbDRUMFJSTlZkb1kwNU5hbEY0VFVSRmVrMUVXWGxQUkZFMVYycEJkd3BOVW1OM1JsRlpSRlpSVVV0RmR6VjZaVmhPTUZwWE1EWmlWMFo2WkVkV2VXTjZSVlpOUWsxSFFURlZSVUY0VFUxaVYwWjZaRWRXZVZreWVIQmFWelV3Q2sxSlNVTkpha0ZPUW1kcmNXaHJhVWM1ZHpCQ1FWRkZSa0ZCVDBOQlp6aEJUVWxKUTBOblMwTkJaMFZCTkVneGVFaHRUa2xUYTB0S1VtMVJVWFkxTUhZS2JpOUZaM05UYzNCMWFHOHpRa3BpYlZOVk5YaG1hbTVQZDI5NFpGaEtNemxQVkVsR09EVlZVVUZITWl0YWFVUlVXVW92VEcxTlUyTm5UMGhKZG5CeFpnbzFablJhU3pOblF6ZFJMMU5SZG1JMk4wWXJWMDgyYzNKVVdWVlhjU3RyYkVWVVptOHZhVkpJVjBKblpscGFWMlpYYmpaU05IQTBWa0p6UXk4MVVIaDRDalZuTlRWSVEwcE5RekZUVVVrcmNtdHFkemxaZFZKT1JGUlVWMDQyYmxWeGJrUlhkelJDTlVGVloxcDZZVzVoYTBOd1VXZHZjRkZSV1dSemRYSkRiRGdLUXl0NWNFbHRVSGhWUm1kSmJtdFNUVVZRYVRSV2FsVnZaV2g1ZFRFM2VsTmhLMFpSVW5keWMxQkRlRTl6ZDBoTlluUndRVGxxUnpGa2VsSmthamhGYndwUlREZzVVRTFYYTJoaVQwWXdVV3BXWlVGaldHcDBMMVJuZFU1WWR5OVVTMWMxUjNScE4xbDFlakExWVVkUVdIbEljR1UyUzBzeFZ6RjBSM0YxVEcxR0NrZFZOMHhUWlRKamNqQlZNSEJpVUVoTmRuWjFNVXBIYXpSVFRtRjNabmRxY1hOV2JqUkZOVTlqTWtKelJUTjBSUzlKY21sQ1RFRlBUV3RNV2pSUGRYSUtlVXhYZWxOd2JuVmlaV2xqZEdoRVl6RlhjMHhRVldSM00wWnlkMVpJWVVaTE5GQk9SR013UlRkbmNUbFZZMWRqYmxSUVIwSkpaMng0TUc5d2FVRkhaZ3BPUVRGSWVIZzRaMUpEYlZCUWMzTjBXakp4T1VFelpWbE1kU3RpY214eGEzWXhZMmN5TjJkVWFDOXlOM3BEU0UxbmFXUnhXVmRwU2xSVWFqVktWRVZhQ2pCTmEweExkazVYYTNBNFFreDBMekZDVVROd1MyNXphREJzY2pSWFZIQnJhRTRyUTJSS0syUkRhelZrWTI1d05XUndUSGtyUkhoUmFGUk1Ua1F3VTBZS1VsSnpXblV4Y1V4WVdXbDZLMkk0ZUdwd2ExQjRVbEZ5ZG5oeFdsTlVWRU5xYVRoYWJXODJLMDlvWXl0NWExRjZhbnB0VkZaWVZuRTFZVnBsYW1SSlNncHhka1U0SzJabVowRkdTRkF5VVU5Mk5rbGtkR3h6UlVOQmQwVkJRV0ZPVjAxR1VYZEVaMWxFVmxJd1VFRlJTQzlDUVZGRVFXZFhaMDFDVFVkQk1WVmtDa3BSVVUxTlFXOUhRME56UjBGUlZVWkNkMDFEVFVGM1IwRXhWV1JGZDBWQ0wzZFJRMDFCUVhkSWQxbEVWbEl3YWtKQ1ozZEdiMEZWVlVkMWR6QTFMelFLVWtrMFYzcGxRMko0U1dOREsyODNNSEZWVVhkRVVWbEtTMjlhU1doMlkwNUJVVVZNUWxGQlJHZG5TVUpCUVhncldUWlFNM1JSWVRCa2VsRkphRzFOV0Fwak9WUmtlVTAzWkZWTFZ5dG5aMFoxZGsxdVkyOUNTMEU1YTJGUmVsTlZaa05qY2l0VmRESkhUMmhSZDJSQlRWQmxjbTlOUmtwelNTdDFWR01yVVZKbUNuRnRkelpDTVdGaGRGcHRNRFZuZDBGelJFTnZOVWRaTURkMlpXZ3dVV2xQVjJsbldUbEpRVEpIT1ROc09Gb3dhMWh6S3paWmEyZEpUMWs0WVVwdVFsQUtVeTk0UzJWM2FubHJZWEpwYzFoQlFtTk9SVVJCT1dWallrRkliR1JOU3pOUmN6SnlVMjlLZVRWRlkzUkdabGhMUVhkUlFtMXdSREJzUWpCcmIxQkVVQXBPUzJwbEszZFhjMWQyUkU5eEswWlFaVGc0VW1OUlVUbGthMVJFV2taNU9FbHdka1JLVUU1a2JXdEdOSEZaZFZwUVprdHhOVGw0VWt4M1pHOTFjeTlMQ2pCc1FXMVVaWEpGUTJwV04yVmhkSEYzTTB3eFRHSlJlRU5rTmt0MldHOU5ZbVZ5TVRkSVUxVlhjbmMwUTFOcllXdElTMUpzTUVoMlduZG5hRTVoVUdvS2NtcG9ibUp0WTFSU1lsZEtSVzl4YUhWeVV5czBhVEZ4TDJ4eFVFOVBhVTh2VkdkMVMwaENOMXBoV1hCT2FuWTRibE5pVjBnMGR6QTRTMnBhU2xoeGN3b3JUa2RDTUhONlYyZzJVRmRoYlhSSWRsbE9jblpWUVc4ek0wMUVTVTVxY1hKS1dEQmpOMWx1UWtaRGREVnNhbTFwT0RCWkszWXJNbGM1YkV0aVptdFpDbnBEUTNGMGJXdzRTblkwT1U5Tk5XTjNRa0ZvVjA4d1JVTkNURzk1UzA5WGRscHBVVFJuYnpKdFoyaDBWV2syYXpWVVVteHpkR3hwTkdOUFJ6VTBVVkVLSzNabFVrRkxNRFZOWnpWa09VY3pUekI2TVdWVlRHeG9hRWxvYldkRU1YZ3habGd2TDBSemJ6azJPV1Z4VlhGRWJVNUtUVU5ZWXprelpYbHpLMGMyWkFwTFRETXphMlpqUVdWbldFRkdVM0EyU2prMGNsWkpkQzg1U1VneFlYWklXWEpoZEZwVFdEUkdhRFJVU1d4Q2JqTjJZM2swVUdZeU9UVkVSbU5yWVhaRUNrbHlSWE5TY1VoMk5GQXpUa05GV1cxSE5FSnNZVVpEVWdvdExTMHRMVVZPUkNCRFJWSlVTVVpKUTBGVVJTMHRMUzB0Q2c9PQogICAgY2xpZW50LWtleS1kYXRhOiBMUzB0TFMxQ1JVZEpUaUJTVTBFZ1VGSkpWa0ZVUlNCTFJWa3RMUzB0TFFwTlNVbEtTMmRKUWtGQlMwTkJaMFZCTkVneGVFaHRUa2xUYTB0S1VtMVJVWFkxTUhadUwwVm5jMU56Y0hWb2J6TkNTbUp0VTFVMWVHWnFiazkzYjNoa0NsaEtNemxQVkVsR09EVlZVVUZITWl0YWFVUlVXVW92VEcxTlUyTm5UMGhKZG5CeFpqVm1kRnBMTTJkRE4xRXZVMUYyWWpZM1JpdFhUelp6Y2xSWlZWY0tjU3RyYkVWVVptOHZhVkpJVjBKblpscGFWMlpYYmpaU05IQTBWa0p6UXk4MVVIaDROV2MxTlVoRFNrMURNVk5SU1N0eWEycDNPVmwxVWs1RVZGUlhUZ28yYmxWeGJrUlhkelJDTlVGVloxcDZZVzVoYTBOd1VXZHZjRkZSV1dSemRYSkRiRGhESzNsd1NXMVFlRlZHWjBsdWExSk5SVkJwTkZacVZXOWxhSGwxQ2pFM2VsTmhLMFpSVW5keWMxQkRlRTl6ZDBoTlluUndRVGxxUnpGa2VsSmthamhGYjFGTU9EbFFUVmRyYUdKUFJqQlJhbFpsUVdOWWFuUXZWR2QxVGxnS2R5OVVTMWMxUjNScE4xbDFlakExWVVkUVdIbEljR1UyUzBzeFZ6RjBSM0YxVEcxR1IxVTNURk5sTW1OeU1GVXdjR0pRU0UxMmRuVXhTa2RyTkZOT1lRcDNabmRxY1hOV2JqUkZOVTlqTWtKelJUTjBSUzlKY21sQ1RFRlBUV3RNV2pSUGRYSjVURmQ2VTNCdWRXSmxhV04wYUVSak1WZHpURkJWWkhjelJuSjNDbFpJWVVaTE5GQk9SR013UlRkbmNUbFZZMWRqYmxSUVIwSkpaMng0TUc5d2FVRkhaazVCTVVoNGVEaG5Va050VUZCemMzUmFNbkU1UVRObFdVeDFLMklLY214eGEzWXhZMmN5TjJkVWFDOXlOM3BEU0UxbmFXUnhXVmRwU2xSVWFqVktWRVZhTUUxclRFdDJUbGRyY0RoQ1RIUXZNVUpSTTNCTGJuTm9NR3h5TkFwWFZIQnJhRTRyUTJSS0syUkRhelZrWTI1d05XUndUSGtyUkhoUmFGUk1Ua1F3VTBaU1VuTmFkVEZ4VEZoWmFYb3JZamg0YW5CclVIaFNVWEoyZUhGYUNsTlVWRU5xYVRoYWJXODJLMDlvWXl0NWExRjZhbnB0VkZaWVZuRTFZVnBsYW1SSlNuRjJSVGdyWm1ablFVWklVREpSVDNZMlNXUjBiSE5GUTBGM1JVRUtRVkZMUTBGblJVRjRjVTQwTkhCRGNrOU1jR3BUV25ac2FtZGxRMU53TlUxa1ZHaHBUbU5DV1dsdlJWUjVRek5ZUlhkQlNIbG1TREU0Y1hkQ2EzZHBSd3BhTmtOM2FHaERWbVI2ZWpScVVHdFpZVVpqWjNaS1NVMHhWWFIzZWxWc05DODFUM293ZUhjMmVYWktUREppYUVNNFVURnRlR0pPVEN0c1dGVmlUVmg1Q2t4c04yWnRhak5QUjJzNGIzTkRVbkUxWjBaSVZHSkNhMjVFVVdObVNuRXhORFJWWkd0TVJVVXdhVTVaYkhCWVdIaG1kMkpuTUdkMVExSlpaak5DVms4S1MzbElXbVpFYzJ4RFZVWjBjV05oYTJ0bVl6a3ZOMmswVG1KTFNHaDFNbXRSZWk4MFIxVlhjMkZ2TmpSWFFsRmpNa2h6TVVVNFozQnNaRUZKZVZacFdBcGthVlpsU0RKb09WRnlkMGR5ZEdkRmRqRlJRVFZFWlRkNWFWZzJabXRCTlRaWWNHaE9PRlpCVmxaVWFIWjBSbGh6VWpaM2R6VktlVFpJZGtWVGRqUXJDbVFyT1N0M1FWUjFhVVZQYjA5Q1Z6bHlXbmxxZVVoWVEwRkxOVE0ySzBwNFJIb3dkVXAxWTJKSUwxZE9RMHhRTDJ3eVluQkVaM2xTVVdKWU56UnlVVGtLVm5sb1FVMDFhRlpKYmxGaVJGaGFhRFpSWlhCc2VYQlJZVGRxYTJ4S1ltUmxRM1U1VFZWU1YzVkdaMXBpTUVrM1pVOURSVTV5WlZKYVFUSm1OVFpVYkFwTVRIcFhNMnA1T0U5bFRtbDFXWFJOTWxWM09VTldlREpYZFU0clRtSk5ialZ1TldRcmNWZFpSbHBQV0d0RldHUjZkekI1UjJsTk1rdDNUbk5wY1dJNUNuRlBVWEJvYUZNd05XRXhkR05rYzBNeVRuaElaRE56WmtKbVlVZGxlVTlVV0dOdVQwRk5jamhKVG1oclNGcGlUSFJPYjAxMFQyWjZSVmxZVldrMFpVd0thQ3RyWW14VWFWSXlVbk51VnpkNFJVNWlNWGhTS3pOS1lrZ3JialF6V2pWcWFuZE5iWFZaTjJSQk4zSnRSMHhrV25KMGFESkpNakE1VkVGdlVXUm5jQW92WkhCRFJWbG9ZbTg0WlhaV1UyOWhkMkUyYUVwalpVVkZhMkY2UkRCS1MyWlRPSFJJU0ZweFdUQXpWbFpuZERoaFNtdERaMmRGUWtGUGFWUnFXazVpQ2tGQmFWUklWblJJSzNoMldtMU5UQ3RUVTJkdk1YZHliWEZKZEhsdFQxY3llbmxCU0NzMWFsRmFWSGRoZFRkRk0yazFZa0o1U21vMWFUY3JNRkZvUlZRS1NUUjVXak5HYld4TVRVVnFRV1JhVjNSMFRYQmpiRUpyWmpsT1ZsYzNiUzh3UlZOR0wwSmlTamhRWm1ZMFJqRTRRMDFqVldsSFVWSlRNM1l2YUhsUk13cGtZbmc0YldZMVQyNUlWbkppZFZsMmVWcHVSRWxVSzBSRE9FVXlkamx5VERsYVZFOHlZbnBHTTNoaVpUY3ljSEpSY25FelNFWlVLMmQxU1RSQlZ5dFFDbEJSVW1vemVHOTBjRWhOTVc1a2FIbHBMM0UwVlZJdlYwaEZUa0ZxVkdreFRVSkRjbGhGZUd0WGJDOUliRkJ3U2pkNldqSlFNWGMwY3l0cU9URnBRVzRLTjFOVVkwUTJlbTlYWVVreWNtdGtkRXRsVUdkSVpsaGhWMVJMU0dkSFVFVTBWbTlVZDB4VEwyTlJjR1ZwUVc5eGFEQmpiamcxVGpWTlRXZExiMGh5TXdwNmRERmFZbTF6T0U0eE5saDVjR05EWjJkRlFrRlFZMXBhYmpCS1oxTnJNMDVVUTNWdWRVWkhRMDlXTkRGQlRWTXlUVEZJWkZwYVJVdFRNM3A0YVdOdUNtVkNkVXB5VldKeldISmxTMkZ5YTFod01GUjVjbmdyZEc1YVZWQnlXVFUwVGtSWVprOUlTamQ2YTNab09DdFVhbGxIYWxoTWFUUldiMlFyZUVzNFpITUtaSGw0YkdsdWFYSkJjRmQ1V21kTWFXUnhjakV2VmxCYU0zSldjREZLYkRSdU5sVXZkMVJKWmpFMGFFbFJTVTFqYUVWVlZYRlNkVWRLVnpGV1dIVllaQW96VDB0MmFVUnpaakpJVFZFNU1WUlpOR3QyVjFObFUySlNTbEpxUjI5NmRra3ZjRmd4U25ObGF6ZzFTVFZoTURkTmFGVktja3hXTmxCeE9FbGhMMEY1Q25Cb1MwbHRXWGhxVTNsdmVFRjZVekF2WWtNcmIwSXZTWFZPY2xCUk9GaFpWRE5TVm5OaU5UTllTV1JVTVVwVlQxRkZabFJ6UTJwa0swZzBXR05wZURRS2RFNWlXRkZhWkhweWVYaFRibVJ0YzJSd1UwcFVTaXRPVkhwSVZUaEZSVXAyTjNaUVVuVlBSVVJIWTBOblowVkNRVXRQZEZKQ1QxTkdWMGg2WkhSUFNRcDNkRmxGZFhoa2RuTmlhVXhzVm5SamJsQXdWMlI2WjJwQldERXZXVXhrV1RSbldEaHZiRGRFZDI0NGEyWmlTRFl6VkdwaEsxTjJaa1pyVDJFdlNrbDVDbEpzTjJRM2FYTlVPVGRMUVVaeE1IaE1VM2hxYUVKM2FrODRWV1J5YURKNmJrNTNNVTlGWkZOU1ZFMXNOV2czVjJSU1RXTTNPVk42UjNrMk9WZG1jVFVLUWtNNE1tNXRUbk1yYVc4eVVYa3pXbGxsY0cxU00zTktNSGhyV1hkbEszbExZVU5GTkVkVk5tVXdia0ZIUkZwUmNqTm1Xa0pzYlcxeGMwSjFUVTVNVWdwclJYaHpWRloyU1hOWE5sQlVUR2hzUkVweVpqQlJUVFZ6UlhaeE4xSm1kVUZDVVhJNU1Vb3hkV1F6VVU1cFRVY3pUVm8xTjJKdVVHNHpjM3BUSzNwYUNqQkZjbmw0U2tGTU5sWkZkbkJ4V1doT2JXcDZTalEwVUZCeVJWQXJZWGsyYkdsc1FVRmxiREZ4UzB0U1NWVkRSMG8yYVVGdmFGRnZWbVpOT1ZCNFNrVUtNMGx4TjNSS01FTm5aMFZDUVVsblVYWktZblIyVDI1MFRrdFVlVUY0YzFwaVdubDFlRVpDVFN0SlZsSmlSR0Z4YjJWS2FqaHBSblJaYmpSSVpXaHpjZ296V25oRU5VUkRORVJoZFhneGVUQnBaRlIxTTNadFNrNVlja3R5YTBoSE5rdDNZM1ZFVW1SckwxcHRPVzh2YUUxblV6WnJZVTg0VUd0NlFXNVhaa1JKQ21WcmRtdFRUR2RrTjBOeFNDdHJPVXRGV2tSclJHVllWWFpzVWtsdWVVaDVNWE5TT0hoTmJIUXdiMmRZYzBkamRtNTZlSFJZYVhoR01UTlJZMHBJUVhFS1VWRTFZbk5XV2xCa05EQTNSM05XTDIxdGRqZG9iM1JGZUVKTUsyVnNlRkZ2YVU1a2EwNTFjbFpTUTNkdGVVaDZhSE5FY21GclUwTklNa1JzVWpKbkt3bzFVWG9yYjBReFRucE5VMlZ6TlROTk9HSXpUR3hCTlVZMWNuRjNNVmxsUlZGeVpHbFBhRlUyUnpkMGVHNW1aR3BCTkhGeVltNTBLMjVHV1ZKbmJGUmlDbkIzU2twSVFreGFTRkpNT1RVcmRWUTNTMEZOUjJGQk1uUm9WemxPWkZCcGVYUkZRMmRuUlVGSU9GVTVSMUpoUTFaYWFFMWhPWEJNVldsT1pqaFRVVVFLY3pSa1NuWkhRblJtTTNwc00yeG1UakJ1TUZsT1FqTnZUVVJEY0VKaFVUWXZiblpzU1haeVkwZzRaekpZVm1relRIUlRiVGRqUTBOdVdreEdaWFl5TUFwSWVuQlJMMHA2YjFweVZ5OXNlalp1VWt0SldFeEhkMEZCY1hwSk5tZzBMMFZxTVRac1YyVmxjQzgzTTBseVQzTjJXbGQxTm5aRmFXRmFUVWhSTnpoeENuWlVVMjkwZUVweVJIaHRiVTgyU2tsNVRIbHZOM1JWVDFCQkwzbEdXRlZuYWxFM2MyYzFUV1Z5Vm5sb2QwbzJjeTlEVnpsRGExbHhNRTl6YjAxUU1YUUtLMXBtTVRWaU0wOTFUM3BGUVV4UlFsVlZSbkJDVEZZNVJtOXZkbFpxY0haemNtNHlhbEZCVDBaTk1rVlJOREJ4VldSd1RFSkVWSEZuTlhoRU1tYzRad3BaWWtVeGR6aHhVbVoyTlZrd2JXZHdOSFZRVXpSTllWRlBNM014ZDBabVNFWktORVJMZUVWemFESlRNbFk0Y1hvMldXRkZaMjVvYzNONlZrUlRaejA5Q2kwdExTMHRSVTVFSUZKVFFTQlFVa2xXUVZSRklFdEZXUzB0TFMwdENnPT0KICAgIHRva2VuOiBjYzBmMGYzY2FhYWZiMTc0ZjEzODI2MGYxZmVhODRkYWU3Yzk5MTY1ZDNmMzQ0M2UyYjBlNDM5Y2M1MzAzMDQyYWVhYjU3MzY2MjBhYTRkMzQ4NzFlMTgzMzNjMjEyZTRjOWIyNmE2ZmI2MDc0ZWU5NTcyZGQ1NDllYmVmMTAyZQo=" - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerService/managedClusters/containerservicena/listClusterAdminCredential?api-version=2022-08-03-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:47:42 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1196", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T064743Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "kubeconfigs": [ - { - "name": "clusterAdmin", - "value": "YXBpVmVyc2lvbjogdjEKY2x1c3RlcnM6Ci0gY2x1c3RlcjoKICAgIGNlcnRpZmljYXRlLWF1dGhvcml0eS1kYXRhOiBMUzB0TFMxQ1JVZEpUaUJEUlZKVVNVWkpRMEZVUlMwdExTMHRDazFKU1VVMlZFTkRRWFJIWjBGM1NVSkJaMGxTUVVwcVJqUlZNRWMzY21OUU0zWkdlbGQ2VEhnd1FtTjNSRkZaU2t0dldrbG9kbU5PUVZGRlRFSlJRWGNLUkZSRlRFMUJhMGRCTVZWRlFYaE5RMWt5UlhkSlFtTk9UV3BKZUUxRVJYcE5SRmw0VDBSUk5WZG9aMUJOYWtFeFRXcEZkMDFVVFhkT2FrazBUa1JzWVFwTlFUQjRRM3BCU2tKblRsWkNRVTFVUVcxT2FFMUpTVU5KYWtGT1FtZHJjV2hyYVVjNWR6QkNRVkZGUmtGQlQwTkJaemhCVFVsSlEwTm5TME5CWjBWQkNuRnVhU3RwVlVsbVMyRkpNWFF3VlhaWldERk1TRXd5ZG04M1VtbEtaVmd5WWtoQ1ZtTnBaa1ZvTkUwdlZrNUpOVk5RV0hoU1NWWkJVRmRVT1V4d2VFY0tZbk5MWlVSNkwwOWpiVEl6VkZZeVRESktTVUpyUzA1aFUyaHNiMDFHWm1ORlRqVklVbWg1YURkMlUxZHZlRkoyYXpKNVVITkRObGQzY2k5M1IyUnBkQXA2Um1WUGQwZ3hTMGN3UzI0MVpYaHlTbk5TWW5ONlMxVndiSFpHWlZOV05teFNaV3h6TkU1cU5YSjNabVpwYkhsMWNXTkdhbUpPY2paeGNXbFNZVkJMQ2t0SmRWTjFSaXRzV0dveGNUQjNhVTUwTm5ObWVsSnBOM0ZtWVZKTldEaEtVbEY2TldKcE1YVjZNMGRSU2l0MGVESTNNRVEyVHpFNGFXdGtSSFkwVFhRS1pUQk9ORTF2TjFBelZsUlhWV1ZhY2taek1GbHVXWGhLZHpsWllYaDFPWFFyUm5sMlZUWndTbVZNTUhGVVJrTXlTbVJITUhsNVNraHRlbHBJWXpSQlpBcDRaVnBoYm1aRk4zWXZRM3BvU0ZjeFJrOTVkRkZ0U1dKSVEwRnJaelJTV0VGRmRWY3hUVFZyWkdkQlRWZFNaRkJRU1ZOSWVFOHlMemgwVHpKNmJYbHdDbWRTYm5ORlNsSjNiVzlGU2pRM1lsZGtaM0pGVkdWeEwzbDVTMlptU1ZoUFltVm1RVXBNTmt0bVYzQXhhM2xMYlZCVFNrVmFWVXhKV1djME5VTTFjVzhLYUVOb2R6WmxTbVpPUkhoTVYxQnZhamd4VWxBeU9XeGhWV2x2VUdseE5EWm1VR3hhU1RsR1JXSlJaRFU0ZDJKSlRYQXJiVWxKVVdkdGJtbDRUbmxqU2dwNlNESkNUV2RWWTJWbldVeFdaa2h3UWpNMWFWZFhjMjVUTkN0T2VUZFlTRWxEZVRKVmRWUlNjMXBoUXpaNGVFVnZRV2RSTXpRdlpHMDVUV2RETWpsT0NuSXhlbXRHT1VSTVJsSnRkRnB3ZUZKb2NFZHZkRVJJYjJSMWNVMHZPV2RMWVRsblZETk1NRXRIYkRoT1dGaHNXRUZNTlVORE5IbDFNMXBOSzNOSU9VOEtXSEZwZVVWaGRrcEtUMGRVVEhoWEwwSnFRV3RpTVdWWlRFZ3plVzVMWkRsT2JXdEZhMmxLWkZCQ1ZVTkJkMFZCUVdGT1EwMUZRWGRFWjFsRVZsSXdVQXBCVVVndlFrRlJSRUZuUzJ0TlFUaEhRVEZWWkVWM1JVSXZkMUZHVFVGTlFrRm1PSGRJVVZsRVZsSXdUMEpDV1VWR1JrSnljMDVQWml0RlUwOUdjek5uQ20wNFUwaEJkbkZQT1V0c1JVMUJNRWREVTNGSFUwbGlNMFJSUlVKRGQxVkJRVFJKUTBGUlEwNVhNREJVUVZsa1kyTmtlRkl4ZFd3elVWZEJUMmswVlhRS2JGSkJOR3RxVG5rMGNrcHVka2RSY1hOWVlWZEVWVU5MT0RCSmJ6WkZjVkZaVUdadFlsWlJOblI0UnpCTE1qTndTRzAyYTJwYU1FbGlkSEZRTmpKUFVBcEtTR0phV1ZFMmVETTBjVkJHUTFORmJFSTBXRThyTTBGVVVsUXhXVFZhVGtSME1XWXZTbVo0U1cwMFZuWjRaM3BVVVZCcFJIUTFlRWRZVDJwbGJFTlhDamxWVjA1TGVIVTBaRVJTTTB4VVkyMXdibXQ1Tm5KbFNWQnRRbm81VGxCbGVXd3Jaek5XTDFkdVQyWlBSMFIxZURCR1FYbGtTMU52ZW1sRlV6aHNSbWdLV25CWlRFaFVlbXBKUlZWck1EQXJNVEoxYWxGcFVtazViRk5qZERkMmVIUnZWVEF2UmxObWVtWlhiVWswTWxSelYyTldjRlpTY2xsSVFVcENjMlkyV0FwR2JrVjRSbFJOTTBkTVlrUTVkMG8yTUV0TFZUZ3hjak50TUV4emRIYzJXSFJrYUhoTE1YSmFhVkZSWkhNdlNYRllWMU5NVVN0elVuZGhaV1ZDZEdOdkNuZGtkSEJ1WVZKNE9YTnlVMXBSVWxwVk5rWlhORGxpU0hkTlRHcHlMMlZzUTJwb1ozRlBRMDkxVjJvemFqZFFkRXBXUlVSemNuUjFaVGQ2VkhBeU5FSUtlVlJSYXpKbk5VOUVlWGRPYXpkSFJHbzFPRU00ZFZONmVEQktOMFpZVFVOVGFUUm5jRzFHVURkT1NGUjJNRkoxY3psV09YWm9Ubk50Y0hOdmR5OWhhUXB5UzBGbFlta3ZjbGRsZG5KelEyVk9kMDVCYm05RldGVnlhMVJqV1VSQlNVRklWbU5CWTBnNFV5dDFORWRJWm5jdlZuY3dRaXQzVUZZNFdVbG1NMjFJQ21JNGRscGFUVmRZVUVRd05IRTRiM1pJTjFoV1YyZDBRVzVaZVVsNlMyc3JNbGRzUzFGalprRjNPVGhzYjNSNFNuUTFXV3h5WlNzMGJrSmpWbGR5U25VS1YzcEhkV0pFU0hsSFlqSlRWa2RFWm1Nd2RFdzVibmN3TVZkeFQzcHFNemx5ZGxWcmEzZFdZaXRWVTJoalRFNURjVkl2UWpGd0wyTmtkWGx4YURoamVBbzNjMEYyYkd3NVVXd3hhWEpQWVhaR2RVRTlQUW90TFMwdExVVk9SQ0JEUlZKVVNVWkpRMEZVUlMwdExTMHRDZz09CiAgICBzZXJ2ZXI6IGh0dHBzOi8vZG5zcHJlZml4MS0yMDViYWZiNy5oY3AuZWFzdHVzLmF6bWs4cy5pbzo0NDMKICBuYW1lOiBjb250YWluZXJzZXJ2aWNlbmEKY29udGV4dHM6Ci0gY29udGV4dDoKICAgIGNsdXN0ZXI6IGNvbnRhaW5lcnNlcnZpY2VuYQogICAgdXNlcjogY2x1c3RlckFkbWluX2dvLXNkay10ZXN0LTU2MV9jb250YWluZXJzZXJ2aWNlbmEKICBuYW1lOiBjb250YWluZXJzZXJ2aWNlbmEKY3VycmVudC1jb250ZXh0OiBjb250YWluZXJzZXJ2aWNlbmEKa2luZDogQ29uZmlnCnByZWZlcmVuY2VzOiB7fQp1c2VyczoKLSBuYW1lOiBjbHVzdGVyQWRtaW5fZ28tc2RrLXRlc3QtNTYxX2NvbnRhaW5lcnNlcnZpY2VuYQogIHVzZXI6CiAgICBjbGllbnQtY2VydGlmaWNhdGUtZGF0YTogTFMwdExTMUNSVWRKVGlCRFJWSlVTVVpKUTBGVVJTMHRMUzB0Q2sxSlNVWklha05EUVhkaFowRjNTVUpCWjBsU1FVb3lUbGhrTlZVMFlWcEthbXhWYUhSelEyOUliRTEzUkZGWlNrdHZXa2xvZG1OT1FWRkZURUpSUVhjS1JGUkZURTFCYTBkQk1WVkZRWGhOUTFreVJYZElhR05PVFdwSmVFMUVSWHBOUkZsNFQwUlJOVmRvWTA1TmFsRjRUVVJGZWsxRVdYbFBSRkUxVjJwQmR3cE5VbU4zUmxGWlJGWlJVVXRGZHpWNlpWaE9NRnBYTURaaVYwWjZaRWRXZVdONlJWWk5RazFIUVRGVlJVRjRUVTFpVjBaNlpFZFdlVmt5ZUhCYVZ6VXdDazFKU1VOSmFrRk9RbWRyY1docmFVYzVkekJDUVZGRlJrRkJUME5CWnpoQlRVbEpRME5uUzBOQlowVkJORWd4ZUVodFRrbFRhMHRLVW0xUlVYWTFNSFlLYmk5RlozTlRjM0IxYUc4elFrcGliVk5WTlhobWFtNVBkMjk0WkZoS016bFBWRWxHT0RWVlVVRkhNaXRhYVVSVVdVb3ZURzFOVTJOblQwaEpkbkJ4WmdvMVpuUmFTek5uUXpkUkwxTlJkbUkyTjBZclYwODJjM0pVV1ZWWGNTdHJiRVZVWm04dmFWSklWMEpuWmxwYVYyWlhialpTTkhBMFZrSnpReTgxVUhoNENqVm5OVFZJUTBwTlF6RlRVVWtyY210cWR6bFpkVkpPUkZSVVYwNDJibFZ4YmtSWGR6UkNOVUZWWjFwNllXNWhhME53VVdkdmNGRlJXV1J6ZFhKRGJEZ0tReXQ1Y0VsdFVIaFZSbWRKYm10U1RVVlFhVFJXYWxWdlpXaDVkVEUzZWxOaEswWlJVbmR5YzFCRGVFOXpkMGhOWW5Sd1FUbHFSekZrZWxKa2FqaEZid3BSVERnNVVFMVhhMmhpVDBZd1VXcFdaVUZqV0dwMEwxUm5kVTVZZHk5VVMxYzFSM1JwTjFsMWVqQTFZVWRRV0hsSWNHVTJTMHN4VnpGMFIzRjFURzFHQ2tkVk4weFRaVEpqY2pCVk1IQmlVRWhOZG5aMU1VcEhhelJUVG1GM1puZHFjWE5XYmpSRk5VOWpNa0p6UlROMFJTOUpjbWxDVEVGUFRXdE1XalJQZFhJS2VVeFhlbE53Ym5WaVpXbGpkR2hFWXpGWGMweFFWV1IzTTBaeWQxWklZVVpMTkZCT1JHTXdSVGRuY1RsVlkxZGpibFJRUjBKSloyeDRNRzl3YVVGSFpncE9RVEZJZUhnNFoxSkRiVkJRYzNOMFdqSnhPVUV6WlZsTWRTdGljbXh4YTNZeFkyY3lOMmRVYUM5eU4zcERTRTFuYVdSeFdWZHBTbFJVYWpWS1ZFVmFDakJOYTB4TGRrNVhhM0E0UWt4MEx6RkNVVE53UzI1emFEQnNjalJYVkhCcmFFNHJRMlJLSzJSRGF6VmtZMjV3TldSd1RIa3JSSGhSYUZSTVRrUXdVMFlLVWxKelduVXhjVXhZV1dsNksySTRlR3B3YTFCNFVsRnlkbmh4V2xOVVZFTnFhVGhhYlc4MkswOW9ZeXQ1YTFGNmFucHRWRlpZVm5FMVlWcGxhbVJKU2dweGRrVTRLMlptWjBGR1NGQXlVVTkyTmtsa2RHeHpSVU5CZDBWQlFXRk9WMDFHVVhkRVoxbEVWbEl3VUVGUlNDOUNRVkZFUVdkWFowMUNUVWRCTVZWa0NrcFJVVTFOUVc5SFEwTnpSMEZSVlVaQ2QwMURUVUYzUjBFeFZXUkZkMFZDTDNkUlEwMUJRWGRJZDFsRVZsSXdha0pDWjNkR2IwRlZWVWQxZHpBMUx6UUtVa2swVjNwbFEySjRTV05ESzI4M01IRlZVWGRFVVZsS1MyOWFTV2gyWTA1QlVVVk1RbEZCUkdkblNVSkJRWGdyV1RaUU0zUlJZVEJrZWxGSmFHMU5XQXBqT1ZSa2VVMDNaRlZMVnl0blowWjFkazF1WTI5Q1MwRTVhMkZSZWxOVlprTmpjaXRWZERKSFQyaFJkMlJCVFZCbGNtOU5Sa3B6U1N0MVZHTXJVVkptQ25GdGR6WkNNV0ZoZEZwdE1EVm5kMEZ6UkVOdk5VZFpNRGQyWldnd1VXbFBWMmxuV1RsSlFUSkhPVE5zT0Zvd2ExaHpLelpaYTJkSlQxazRZVXB1UWxBS1V5OTRTMlYzYW5scllYSnBjMWhCUW1OT1JVUkJPV1ZqWWtGSWJHUk5Tek5SY3pKeVUyOUtlVFZGWTNSR1psaExRWGRSUW0xd1JEQnNRakJyYjFCRVVBcE9TMnBsSzNkWGMxZDJSRTl4SzBaUVpUZzRVbU5SVVRsa2ExUkVXa1o1T0Vsd2RrUktVRTVrYld0R05IRlpkVnBRWmt0eE5UbDRVa3gzWkc5MWN5OUxDakJzUVcxVVpYSkZRMnBXTjJWaGRIRjNNMHd4VEdKUmVFTmtOa3QyV0c5TlltVnlNVGRJVTFWWGNuYzBRMU5yWVd0SVMxSnNNRWgyV25kbmFFNWhVR29LY21wb2JtSnRZMVJTWWxkS1JXOXhhSFZ5VXlzMGFURnhMMnh4VUU5UGFVOHZWR2QxUzBoQ04xcGhXWEJPYW5ZNGJsTmlWMGcwZHpBNFMycGFTbGh4Y3dvclRrZENNSE42VjJnMlVGZGhiWFJJZGxsT2NuWlZRVzh6TTAxRVNVNXFjWEpLV0RCak4xbHVRa1pEZERWc2FtMXBPREJaSzNZck1sYzViRXRpWm10WkNucERRM0YwYld3NFNuWTBPVTlOTldOM1FrRm9WMDh3UlVOQ1RHOTVTMDlYZGxwcFVUUm5iekp0WjJoMFZXazJhelZVVW14emRHeHBOR05QUnpVMFVWRUtLM1psVWtGTE1EVk5aelZrT1VjelR6QjZNV1ZWVEd4b2FFbG9iV2RFTVhneFpsZ3ZMMFJ6YnprMk9XVnhWWEZFYlU1S1RVTllZemt6WlhsekswYzJaQXBMVERNemEyWmpRV1ZuV0VGR1UzQTJTamswY2xaSmRDODVTVWd4WVhaSVdYSmhkRnBUV0RSR2FEUlVTV3hDYmpOMlkzazBVR1l5T1RWRVJtTnJZWFpFQ2tseVJYTlNjVWgyTkZBelRrTkZXVzFITkVKc1lVWkRVZ290TFMwdExVVk9SQ0JEUlZKVVNVWkpRMEZVUlMwdExTMHRDZz09CiAgICBjbGllbnQta2V5LWRhdGE6IExTMHRMUzFDUlVkSlRpQlNVMEVnVUZKSlZrRlVSU0JMUlZrdExTMHRMUXBOU1VsS1MyZEpRa0ZCUzBOQlowVkJORWd4ZUVodFRrbFRhMHRLVW0xUlVYWTFNSFp1TDBWbmMxTnpjSFZvYnpOQ1NtSnRVMVUxZUdacWJrOTNiM2hrQ2xoS016bFBWRWxHT0RWVlVVRkhNaXRhYVVSVVdVb3ZURzFOVTJOblQwaEpkbkJ4WmpWbWRGcExNMmRETjFFdlUxRjJZalkzUml0WFR6WnpjbFJaVlZjS2NTdHJiRVZVWm04dmFWSklWMEpuWmxwYVYyWlhialpTTkhBMFZrSnpReTgxVUhoNE5XYzFOVWhEU2sxRE1WTlJTU3R5YTJwM09WbDFVazVFVkZSWFRnbzJibFZ4YmtSWGR6UkNOVUZWWjFwNllXNWhhME53VVdkdmNGRlJXV1J6ZFhKRGJEaERLM2x3U1cxUWVGVkdaMGx1YTFKTlJWQnBORlpxVlc5bGFIbDFDakUzZWxOaEswWlJVbmR5YzFCRGVFOXpkMGhOWW5Sd1FUbHFSekZrZWxKa2FqaEZiMUZNT0RsUVRWZHJhR0pQUmpCUmFsWmxRV05ZYW5RdlZHZDFUbGdLZHk5VVMxYzFSM1JwTjFsMWVqQTFZVWRRV0hsSWNHVTJTMHN4VnpGMFIzRjFURzFHUjFVM1RGTmxNbU55TUZVd2NHSlFTRTEyZG5VeFNrZHJORk5PWVFwM1puZHFjWE5XYmpSRk5VOWpNa0p6UlROMFJTOUpjbWxDVEVGUFRXdE1XalJQZFhKNVRGZDZVM0J1ZFdKbGFXTjBhRVJqTVZkelRGQlZaSGN6Um5KM0NsWklZVVpMTkZCT1JHTXdSVGRuY1RsVlkxZGpibFJRUjBKSloyeDRNRzl3YVVGSFprNUJNVWg0ZURoblVrTnRVRkJ6YzNSYU1uRTVRVE5sV1V4MUsySUtjbXh4YTNZeFkyY3lOMmRVYUM5eU4zcERTRTFuYVdSeFdWZHBTbFJVYWpWS1ZFVmFNRTFyVEV0MlRsZHJjRGhDVEhRdk1VSlJNM0JMYm5Ob01HeHlOQXBYVkhCcmFFNHJRMlJLSzJSRGF6VmtZMjV3TldSd1RIa3JSSGhSYUZSTVRrUXdVMFpTVW5OYWRURnhURmhaYVhvcllqaDRhbkJyVUhoU1VYSjJlSEZhQ2xOVVZFTnFhVGhhYlc4MkswOW9ZeXQ1YTFGNmFucHRWRlpZVm5FMVlWcGxhbVJKU25GMlJUZ3JabVpuUVVaSVVESlJUM1kyU1dSMGJITkZRMEYzUlVFS1FWRkxRMEZuUlVGNGNVNDBOSEJEY2s5TWNHcFRXblpzYW1kbFExTndOVTFrVkdocFRtTkNXV2x2UlZSNVF6TllSWGRCU0hsbVNERTRjWGRDYTNkcFJ3cGFOa04zYUdoRFZtUjZlalJxVUd0WllVWmpaM1pLU1UweFZYUjNlbFZzTkM4MVQzb3dlSGMyZVhaS1RESmlhRU00VVRGdGVHSk9UQ3RzV0ZWaVRWaDVDa3hzTjJadGFqTlBSMnM0YjNORFVuRTFaMFpJVkdKQ2EyNUVVV05tU25FeE5EUlZaR3RNUlVVd2FVNVpiSEJZV0hobWQySm5NR2QxUTFKWlpqTkNWazhLUzNsSVdtWkVjMnhEVlVaMGNXTmhhMnRtWXprdk4yazBUbUpMU0doMU1tdFJlaTgwUjFWWGMyRnZOalJYUWxGak1raHpNVVU0WjNCc1pFRkplVlpwV0Fwa2FWWmxTREpvT1ZGeWQwZHlkR2RGZGpGUlFUVkVaVGQ1YVZnMlptdEJOVFpZY0doT09GWkJWbFpVYUhaMFJsaHpValozZHpWS2VUWklka1ZUZGpRckNtUXJPU3QzUVZSMWFVVlBiMDlDVnpseVdubHFlVWhZUTBGTE5UTTJLMHA0Ukhvd2RVcDFZMkpJTDFkT1EweFFMMnd5WW5CRVozbFNVV0pZTnpSeVVUa0tWbmxvUVUwMWFGWkpibEZpUkZoYWFEWlJaWEJzZVhCUllUZHFhMnhLWW1SbFEzVTVUVlZTVjNWR1oxcGlNRWszWlU5RFJVNXlaVkphUVRKbU5UWlViQXBNVEhwWE0ycDVPRTlsVG1sMVdYUk5NbFYzT1VOV2VESlhkVTRyVG1KTmJqVnVOV1FyY1ZkWlJscFBXR3RGV0dSNmR6QjVSMmxOTWt0M1RuTnBjV0k1Q25GUFVYQm9hRk13TldFeGRHTmtjME15VG5oSVpETnpaa0ptWVVkbGVVOVVXR051VDBGTmNqaEpUbWhyU0ZwaVRIUk9iMDEwVDJaNlJWbFlWV2swWlV3S2FDdHJZbXhVYVZJeVVuTnVWemQ0UlU1aU1YaFNLek5LWWtncmJqUXpXalZxYW5kTmJYVlpOMlJCTjNKdFIweGtXbkowYURKSk1qQTVWRUZ2VVdSbmNBb3ZaSEJEUlZsb1ltODRaWFpXVTI5aGQyRTJhRXBqWlVWRmEyRjZSREJLUzJaVE9IUklTRnB4V1RBelZsWm5kRGhoU210RFoyZEZRa0ZQYVZScVdrNWlDa0ZCYVZSSVZuUklLM2gyV20xTlRDdFRVMmR2TVhkeWJYRkpkSGx0VDFjeWVubEJTQ3MxYWxGYVZIZGhkVGRGTTJrMVlrSjVTbW8xYVRjck1GRm9SVlFLU1RSNVdqTkdiV3hNVFVWcVFXUmFWM1IwVFhCamJFSnJaamxPVmxjM2JTOHdSVk5HTDBKaVNqaFFabVkwUmpFNFEwMWpWV2xIVVZKVE0zWXZhSGxSTXdwa1luZzRiV1kxVDI1SVZuSmlkVmwyZVZwdVJFbFVLMFJET0VVeWRqbHlURGxhVkU4eVlucEdNM2hpWlRjeWNISlJjbkV6U0VaVUsyZDFTVFJCVnl0UUNsQlJVbW96ZUc5MGNFaE5NVzVrYUhscEwzRTBWVkl2VjBoRlRrRnFWR2t4VFVKRGNsaEZlR3RYYkM5SWJGQndTamQ2V2pKUU1YYzBjeXRxT1RGcFFXNEtOMU5VWTBRMmVtOVhZVWt5Y210a2RFdGxVR2RJWmxoaFYxUkxTR2RIVUVVMFZtOVVkMHhUTDJOUmNHVnBRVzl4YURCamJqZzFUalZOVFdkTGIwaHlNd3A2ZERGYVltMXpPRTR4TmxoNWNHTkRaMmRGUWtGUVkxcGFiakJLWjFOck0wNVVRM1Z1ZFVaSFEwOVdOREZCVFZNeVRURklaRnBhUlV0VE0zcDRhV051Q21WQ2RVcHlWV0p6V0hKbFMyRnlhMWh3TUZSNWNuZ3JkRzVhVlZCeVdUVTBUa1JZWms5SVNqZDZhM1pvT0N0VWFsbEhhbGhNYVRSV2IyUXJlRXM0WkhNS1pIbDRiR2x1YVhKQmNGZDVXbWRNYVdSeGNqRXZWbEJhTTNKV2NERktiRFJ1TmxVdmQxUkpaakUwYUVsUlNVMWphRVZWVlhGU2RVZEtWekZXV0hWWVpBb3pUMHQyYVVSelpqSklUVkU1TVZSWk5HdDJWMU5sVTJKU1NsSnFSMjk2ZGtrdmNGZ3hTbk5sYXpnMVNUVmhNRGROYUZWS2NreFdObEJ4T0VsaEwwRjVDbkJvUzBsdFdYaHFVM2x2ZUVGNlV6QXZZa01yYjBJdlNYVk9jbEJST0ZoWlZETlNWbk5pTlROWVNXUlVNVXBWVDFGRlpsUnpRMnBrSzBnMFdHTnBlRFFLZEU1aVdGRmFaSHB5ZVhoVGJtUnRjMlJ3VTBwVVNpdE9WSHBJVlRoRlJVcDJOM1pRVW5WUFJVUkhZME5uWjBWQ1FVdFBkRkpDVDFOR1YwaDZaSFJQU1FwM2RGbEZkWGhrZG5OaWFVeHNWblJqYmxBd1YyUjZaMnBCV0RFdldVeGtXVFJuV0RodmJEZEVkMjQ0YTJaaVNEWXpWR3BoSzFOMlprWnJUMkV2U2tsNUNsSnNOMlEzYVhOVU9UZExRVVp4TUhoTVUzaHFhRUozYWs4NFZXUnlhREo2Yms1M01VOUZaRk5TVkUxc05XZzNWMlJTVFdNM09WTjZSM2syT1ZkbWNUVUtRa000TW01dFRuTXJhVzh5VVhreldsbGxjRzFTTTNOS01IaHJXWGRsSzNsTFlVTkZORWRWTm1Vd2JrRkhSRnBSY2pObVdrSnNiVzF4YzBKMVRVNU1VZ3ByUlhoelZGWjJTWE5YTmxCVVRHaHNSRXB5WmpCUlRUVnpSWFp4TjFKbWRVRkNVWEk1TVVveGRXUXpVVTVwVFVjelRWbzFOMkp1VUc0emMzcFRLM3BhQ2pCRmNubDRTa0ZNTmxaRmRuQnhXV2hPYldwNlNqUTBVRkJ5UlZBcllYazJiR2xzUVVGbGJERnhTMHRTU1ZWRFIwbzJhVUZ2YUZGdlZtWk5PVkI0U2tVS00wbHhOM1JLTUVOblowVkNRVWxuVVhaS1luUjJUMjUwVGt0VWVVRjRjMXBpV25sMWVFWkNUU3RKVmxKaVJHRnhiMlZLYWpocFJuUlpialJJWldoemNnb3pXbmhFTlVSRE5FUmhkWGd4ZVRCcFpGUjFNM1p0U2s1WWNrdHlhMGhITmt0M1kzVkVVbVJyTDFwdE9XOHZhRTFuVXpacllVODRVR3Q2UVc1WFprUkpDbVZyZG10VFRHZGtOME54U0N0ck9VdEZXa1JyUkdWWVZYWnNVa2x1ZVVoNU1YTlNPSGhOYkhRd2IyZFljMGRqZG01NmVIUllhWGhHTVROUlkwcElRWEVLVVZFMVluTldXbEJrTkRBM1IzTldMMjF0ZGpkb2IzUkZlRUpNSzJWc2VGRnZhVTVrYTA1MWNsWlNRM2R0ZVVoNmFITkVjbUZyVTBOSU1rUnNVakpuS3dvMVVYb3JiMFF4VG5wTlUyVnpOVE5OT0dJelRHeEJOVVkxY25GM01WbGxSVkZ5WkdsUGFGVTJSemQwZUc1bVpHcEJOSEZ5WW01MEsyNUdXVkpuYkZSaUNuQjNTa3BJUWt4YVNGSk1PVFVyZFZRM1MwRk5SMkZCTW5Sb1Z6bE9aRkJwZVhSRlEyZG5SVUZJT0ZVNVIxSmhRMVphYUUxaE9YQk1WV2xPWmpoVFVVUUtjelJrU25aSFFuUm1NM3BzTTJ4bVRqQnVNRmxPUWpOdlRVUkRjRUpoVVRZdmJuWnNTWFp5WTBnNFp6SllWbWt6VEhSVGJUZGpRME51V2t4R1pYWXlNQXBJZW5CUkwwcDZiMXB5Vnk5c2VqWnVVa3RKV0V4SGQwRkJjWHBKTm1nMEwwVnFNVFpzVjJWbGNDODNNMGx5VDNOMldsZDFOblpGYVdGYVRVaFJOemh4Q25aVVUyOTBlRXB5UkhodGJVODJTa2w1VEhsdk4zUlZUMUJCTDNsR1dGVm5hbEUzYzJjMVRXVnlWbmxvZDBvMmN5OURWemxEYTFseE1FOXpiMDFRTVhRS0sxcG1NVFZpTTA5MVQzcEZRVXhSUWxWVlJuQkNURlk1Um05dmRsWnFjSFp6Y200eWFsRkJUMFpOTWtWUk5EQnhWV1J3VEVKRVZIRm5OWGhFTW1jNFp3cFpZa1V4ZHpoeFVtWjJOVmt3Yldkd05IVlFVelJOWVZGUE0zTXhkMFptU0VaS05FUkxlRVZ6YURKVE1sWTRjWG8yV1dGRloyNW9jM042VmtSVFp6MDlDaTB0TFMwdFJVNUVJRkpUUVNCUVVrbFdRVlJGSUV0RldTMHRMUzB0Q2c9PQogICAgdG9rZW46IDg5MjlhMmFlNjRhY2JhMTY3MzNkZTNiMjZiYmY4YzA5MTFjNzMwM2VlNjE4YzNiM2E5Y2YwYzBkODU5MDhiOGZlOTk0Y2RjNWExYzU4MzBmNGM4Y2UyYTc1MmEwYTdiNjlmYzQzMGYxZTQxOGI0YjU1MWM3MDI2NTg2NTFhNDA3Cg==" - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerService/managedClusters/containerservicena/listClusterMonitoringUserCredential?api-version=2022-08-03-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:47:43 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1195", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T064743Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "kubeconfigs": [ - { - "name": "clusterMonitoringUser", - "value": "YXBpVmVyc2lvbjogdjEKY2x1c3RlcnM6Ci0gY2x1c3RlcjoKICAgIGNlcnRpZmljYXRlLWF1dGhvcml0eS1kYXRhOiBMUzB0TFMxQ1JVZEpUaUJEUlZKVVNVWkpRMEZVUlMwdExTMHRDazFKU1VVMlZFTkRRWFJIWjBGM1NVSkJaMGxTUVVwcVJqUlZNRWMzY21OUU0zWkdlbGQ2VEhnd1FtTjNSRkZaU2t0dldrbG9kbU5PUVZGRlRFSlJRWGNLUkZSRlRFMUJhMGRCTVZWRlFYaE5RMWt5UlhkSlFtTk9UV3BKZUUxRVJYcE5SRmw0VDBSUk5WZG9aMUJOYWtFeFRXcEZkMDFVVFhkT2FrazBUa1JzWVFwTlFUQjRRM3BCU2tKblRsWkNRVTFVUVcxT2FFMUpTVU5KYWtGT1FtZHJjV2hyYVVjNWR6QkNRVkZGUmtGQlQwTkJaemhCVFVsSlEwTm5TME5CWjBWQkNuRnVhU3RwVlVsbVMyRkpNWFF3VlhaWldERk1TRXd5ZG04M1VtbEtaVmd5WWtoQ1ZtTnBaa1ZvTkUwdlZrNUpOVk5RV0hoU1NWWkJVRmRVT1V4d2VFY0tZbk5MWlVSNkwwOWpiVEl6VkZZeVRESktTVUpyUzA1aFUyaHNiMDFHWm1ORlRqVklVbWg1YURkMlUxZHZlRkoyYXpKNVVITkRObGQzY2k5M1IyUnBkQXA2Um1WUGQwZ3hTMGN3UzI0MVpYaHlTbk5TWW5ONlMxVndiSFpHWlZOV05teFNaV3h6TkU1cU5YSjNabVpwYkhsMWNXTkdhbUpPY2paeGNXbFNZVkJMQ2t0SmRWTjFSaXRzV0dveGNUQjNhVTUwTm5ObWVsSnBOM0ZtWVZKTldEaEtVbEY2TldKcE1YVjZNMGRSU2l0MGVESTNNRVEyVHpFNGFXdGtSSFkwVFhRS1pUQk9ORTF2TjFBelZsUlhWV1ZhY2taek1GbHVXWGhLZHpsWllYaDFPWFFyUm5sMlZUWndTbVZNTUhGVVJrTXlTbVJITUhsNVNraHRlbHBJWXpSQlpBcDRaVnBoYm1aRk4zWXZRM3BvU0ZjeFJrOTVkRkZ0U1dKSVEwRnJaelJTV0VGRmRWY3hUVFZyWkdkQlRWZFNaRkJRU1ZOSWVFOHlMemgwVHpKNmJYbHdDbWRTYm5ORlNsSjNiVzlGU2pRM1lsZGtaM0pGVkdWeEwzbDVTMlptU1ZoUFltVm1RVXBNTmt0bVYzQXhhM2xMYlZCVFNrVmFWVXhKV1djME5VTTFjVzhLYUVOb2R6WmxTbVpPUkhoTVYxQnZhamd4VWxBeU9XeGhWV2x2VUdseE5EWm1VR3hhU1RsR1JXSlJaRFU0ZDJKSlRYQXJiVWxKVVdkdGJtbDRUbmxqU2dwNlNESkNUV2RWWTJWbldVeFdaa2h3UWpNMWFWZFhjMjVUTkN0T2VUZFlTRWxEZVRKVmRWUlNjMXBoUXpaNGVFVnZRV2RSTXpRdlpHMDVUV2RETWpsT0NuSXhlbXRHT1VSTVJsSnRkRnB3ZUZKb2NFZHZkRVJJYjJSMWNVMHZPV2RMWVRsblZETk1NRXRIYkRoT1dGaHNXRUZNTlVORE5IbDFNMXBOSzNOSU9VOEtXSEZwZVVWaGRrcEtUMGRVVEhoWEwwSnFRV3RpTVdWWlRFZ3plVzVMWkRsT2JXdEZhMmxLWkZCQ1ZVTkJkMFZCUVdGT1EwMUZRWGRFWjFsRVZsSXdVQXBCVVVndlFrRlJSRUZuUzJ0TlFUaEhRVEZWWkVWM1JVSXZkMUZHVFVGTlFrRm1PSGRJVVZsRVZsSXdUMEpDV1VWR1JrSnljMDVQWml0RlUwOUdjek5uQ20wNFUwaEJkbkZQT1V0c1JVMUJNRWREVTNGSFUwbGlNMFJSUlVKRGQxVkJRVFJKUTBGUlEwNVhNREJVUVZsa1kyTmtlRkl4ZFd3elVWZEJUMmswVlhRS2JGSkJOR3RxVG5rMGNrcHVka2RSY1hOWVlWZEVWVU5MT0RCSmJ6WkZjVkZaVUdadFlsWlJOblI0UnpCTE1qTndTRzAyYTJwYU1FbGlkSEZRTmpKUFVBcEtTR0phV1ZFMmVETTBjVkJHUTFORmJFSTBXRThyTTBGVVVsUXhXVFZhVGtSME1XWXZTbVo0U1cwMFZuWjRaM3BVVVZCcFJIUTFlRWRZVDJwbGJFTlhDamxWVjA1TGVIVTBaRVJTTTB4VVkyMXdibXQ1Tm5KbFNWQnRRbm81VGxCbGVXd3Jaek5XTDFkdVQyWlBSMFIxZURCR1FYbGtTMU52ZW1sRlV6aHNSbWdLV25CWlRFaFVlbXBKUlZWck1EQXJNVEoxYWxGcFVtazViRk5qZERkMmVIUnZWVEF2UmxObWVtWlhiVWswTWxSelYyTldjRlpTY2xsSVFVcENjMlkyV0FwR2JrVjRSbFJOTTBkTVlrUTVkMG8yTUV0TFZUZ3hjak50TUV4emRIYzJXSFJrYUhoTE1YSmFhVkZSWkhNdlNYRllWMU5NVVN0elVuZGhaV1ZDZEdOdkNuZGtkSEJ1WVZKNE9YTnlVMXBSVWxwVk5rWlhORGxpU0hkTlRHcHlMMlZzUTJwb1ozRlBRMDkxVjJvemFqZFFkRXBXUlVSemNuUjFaVGQ2VkhBeU5FSUtlVlJSYXpKbk5VOUVlWGRPYXpkSFJHbzFPRU00ZFZONmVEQktOMFpZVFVOVGFUUm5jRzFHVURkT1NGUjJNRkoxY3psV09YWm9Ubk50Y0hOdmR5OWhhUXB5UzBGbFlta3ZjbGRsZG5KelEyVk9kMDVCYm05RldGVnlhMVJqV1VSQlNVRklWbU5CWTBnNFV5dDFORWRJWm5jdlZuY3dRaXQzVUZZNFdVbG1NMjFJQ21JNGRscGFUVmRZVUVRd05IRTRiM1pJTjFoV1YyZDBRVzVaZVVsNlMyc3JNbGRzUzFGalprRjNPVGhzYjNSNFNuUTFXV3h5WlNzMGJrSmpWbGR5U25VS1YzcEhkV0pFU0hsSFlqSlRWa2RFWm1Nd2RFdzVibmN3TVZkeFQzcHFNemx5ZGxWcmEzZFdZaXRWVTJoalRFNURjVkl2UWpGd0wyTmtkWGx4YURoamVBbzNjMEYyYkd3NVVXd3hhWEpQWVhaR2RVRTlQUW90TFMwdExVVk9SQ0JEUlZKVVNVWkpRMEZVUlMwdExTMHRDZz09CiAgICBzZXJ2ZXI6IGh0dHBzOi8vZG5zcHJlZml4MS0yMDViYWZiNy5oY3AuZWFzdHVzLmF6bWs4cy5pbzo0NDMKICBuYW1lOiBjb250YWluZXJzZXJ2aWNlbmEKY29udGV4dHM6Ci0gY29udGV4dDoKICAgIGNsdXN0ZXI6IGNvbnRhaW5lcnNlcnZpY2VuYQogICAgdXNlcjogY2x1c3Rlck1vbml0b3JpbmdVc2VyX2dvLXNkay10ZXN0LTU2MV9jb250YWluZXJzZXJ2aWNlbmEKICBuYW1lOiBjb250YWluZXJzZXJ2aWNlbmEKY3VycmVudC1jb250ZXh0OiBjb250YWluZXJzZXJ2aWNlbmEKa2luZDogQ29uZmlnCnByZWZlcmVuY2VzOiB7fQp1c2VyczoKLSBuYW1lOiBjbHVzdGVyTW9uaXRvcmluZ1VzZXJfZ28tc2RrLXRlc3QtNTYxX2NvbnRhaW5lcnNlcnZpY2VuYQogIHVzZXI6CiAgICB0b2tlbjogYTNmODhmNWYyYjBlYTM1ZTIwNjJmYzQ0NTA5OTc0YWNkYzgzMGQxYTY0NzYzMDc2ODZkZWYxNjJlNzI2OTY0YjgxM2U0ZmU5YWYwMjE0MjhmNDkwZTk2MDFmZjE5NGY2MWYxZGZhMzczYjY4ODQ1Y2Y3ZDMxY2U0MjlhZWQ4OWUK" - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerService/managedClusters/containerservicena/runCommand?api-version=2022-08-03-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "60", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "clusterToken": "", - "command": "kubectl version", - "context": "" - }, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Thu, 13 Oct 2022 06:47:44 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerService/managedclusters/containerservicena/commandResults/320f51b79f104ba5af63ac861811fdd1?api-version=2022-08-03-preview", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1194", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T064745Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerService/managedclusters/containerservicena/commandResults/320f51b79f104ba5af63ac861811fdd1?api-version=2022-08-03-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "104", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:47:45 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerService/managedclusters/containerservicena/commandResults/320f51b79f104ba5af63ac861811fdd1?api-version=2022-08-03-preview", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11946", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T064745Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "320f51b79f104ba5af63ac861811fdd1", - "properties": { - "provisioningState": "Running" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerService/managedclusters/containerservicena/commandResults/320f51b79f104ba5af63ac861811fdd1?api-version=2022-08-03-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:48:15 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11945", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T064816Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "320f51b79f104ba5af63ac861811fdd1", - "properties": { - "provisioningState": "Succeeded", - "exitCode": 0, - "startedAt": "2022-10-13T06:47:48Z", - "finishedAt": "2022-10-13T06:47:49Z", - "logs": "Client Version: version.Info{Major:\u00221\u0022, Minor:\u002222\u0022, GitVersion:\u0022v1.22.12\u0022, GitCommit:\u0022b058e1760c79f46a834ba59bd7a3486ecf28237d\u0022, GitTreeState:\u0022clean\u0022, BuildDate:\u00222022-07-13T14:59:18Z\u0022, GoVersion:\u0022go1.16.15\u0022, Compiler:\u0022gc\u0022, Platform:\u0022linux/amd64\u0022}\nServer Version: version.Info{Major:\u00221\u0022, Minor:\u002223\u0022, GitVersion:\u0022v1.23.12\u0022, GitCommit:\u0022c6939792865ef0f70f92006081690d77411c8ed5\u0022, GitTreeState:\u0022clean\u0022, BuildDate:\u00222022-09-21T21:46:35Z\u0022, GoVersion:\u0022go1.17.13\u0022, Compiler:\u0022gc\u0022, Platform:\u0022linux/amd64\u0022}\n" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerService/managedClusters/containerservicena/commandResults/320f51b79f104ba5af63ac861811fdd1?api-version=2022-08-03-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:48:16 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11944", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T064817Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "320f51b79f104ba5af63ac861811fdd1", - "properties": { - "provisioningState": "Succeeded", - "exitCode": 0, - "startedAt": "2022-10-13T06:47:48Z", - "finishedAt": "2022-10-13T06:47:49Z", - "logs": "Client Version: version.Info{Major:\u00221\u0022, Minor:\u002222\u0022, GitVersion:\u0022v1.22.12\u0022, GitCommit:\u0022b058e1760c79f46a834ba59bd7a3486ecf28237d\u0022, GitTreeState:\u0022clean\u0022, BuildDate:\u00222022-07-13T14:59:18Z\u0022, GoVersion:\u0022go1.16.15\u0022, Compiler:\u0022gc\u0022, Platform:\u0022linux/amd64\u0022}\nServer Version: version.Info{Major:\u00221\u0022, Minor:\u002223\u0022, GitVersion:\u0022v1.23.12\u0022, GitCommit:\u0022c6939792865ef0f70f92006081690d77411c8ed5\u0022, GitTreeState:\u0022clean\u0022, BuildDate:\u00222022-09-21T21:46:35Z\u0022, GoVersion:\u0022go1.17.13\u0022, Compiler:\u0022gc\u0022, Platform:\u0022linux/amd64\u0022}\n" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerService/managedClusters/containerservicena/start?api-version=2022-08-03-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2017-08-31", - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Thu, 13 Oct 2022 06:48:17 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operationresults/00000000-0000-0000-0000-000000000000?api-version=2017-08-31", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1193", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T064818Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:48:17 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11943", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T064818Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-10-13T06:48:17.8721466Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:48:48 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11942", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T064848Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-10-13T06:48:17.8721466Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:49:18 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11941", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T064919Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-10-13T06:48:17.8721466Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:49:48 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11940", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T064949Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-10-13T06:48:17.8721466Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:50:19 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11939", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T065020Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "Succeeded", - "startTime": "2022-10-13T06:48:17.8721466Z", - "endTime": "2022-10-13T06:49:58.2575445Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operationresults/00000000-0000-0000-0000-000000000000?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:50:20 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operationresults/00000000-0000-0000-0000-000000000000?api-version=2017-08-31", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11938", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T065020Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerService/managedClusters/containerservicena/maintenanceConfigurations/configna?api-version=2022-08-03-preview", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "147", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "notAllowedTime": [ - { - "end": "2020-11-30T12:00:00Z", - "start": "2020-11-26T03:00:00Z" - } - ], - "timeInWeek": [ - { - "day": "Monday", - "hourSlots": [ - 1, - 2 - ] - } - ] - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:50:21 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1194", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T065021Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerService/managedClusters/containerservicena/maintenanceConfigurations/configna", - "name": "configna", - "properties": { - "timeInWeek": [ - { - "day": "Monday", - "hourSlots": [ - 1, - 2 - ] - } - ], - "notAllowedTime": [ - { - "start": "2020-11-26T03:00:00Z", - "end": "2020-11-30T12:00:00Z" - } - ] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerService/managedClusters/containerservicena/maintenanceConfigurations?api-version=2022-08-03-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:50:22 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11937", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T065022Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerService/managedClusters/containerservicena/maintenanceConfigurations/configna", - "name": "configna", - "properties": { - "timeInWeek": [ - { - "day": "Monday", - "hourSlots": [ - 1, - 2 - ] - } - ], - "notAllowedTime": [ - { - "start": "2020-11-26T03:00:00Z", - "end": "2020-11-30T12:00:00Z" - } - ] - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerService/managedClusters/containerservicena/maintenanceConfigurations/configna?api-version=2022-08-03-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:50:22 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11936", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T065023Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerService/managedClusters/containerservicena/maintenanceConfigurations/configna", - "name": "configna", - "properties": { - "timeInWeek": [ - { - "day": "Monday", - "hourSlots": [ - 1, - 2 - ] - } - ], - "notAllowedTime": [ - { - "start": "2020-11-26T03:00:00Z", - "end": "2020-11-30T12:00:00Z" - } - ] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerService/managedClusters/containerservicena/maintenanceConfigurations/configna?api-version=2022-08-03-preview", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Thu, 13 Oct 2022 06:50:23 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14999", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T065023Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/snapshots?api-version=2022-08-03-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:50:24 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T065024Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "name": "containerservicena", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerService/snapshots/containerservicena", - "type": "Microsoft.ContainerService/Snapshots", - "location": "eastus", - "tags": { - "key1": "val1", - "key2": "val2" - }, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-13T06:46:48.8873514Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-13T06:46:48.8873514Z" - }, - "properties": { - "creationData": { - "sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.ContainerService/managedClusters/containerservicena/agentPools/agentpoolna" - }, - "snapshotType": "NodePool", - "kubernetesVersion": "1.23.12", - "nodeImageVersion": "AKSUbuntu-1804gen2containerd-2022.09.22", - "osType": "Linux", - "osSku": "Ubuntu", - "vmSize": "Standard_DS2_v2" - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerService/snapshots?api-version=2022-08-03-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:50:24 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T065024Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "name": "containerservicena", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerService/snapshots/containerservicena", - "type": "Microsoft.ContainerService/Snapshots", - "location": "eastus", - "tags": { - "key1": "val1", - "key2": "val2" - }, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-13T06:46:48.8873514Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-13T06:46:48.8873514Z" - }, - "properties": { - "creationData": { - "sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.ContainerService/managedClusters/containerservicena/agentPools/agentpoolna" - }, - "snapshotType": "NodePool", - "kubernetesVersion": "1.23.12", - "nodeImageVersion": "AKSUbuntu-1804gen2containerd-2022.09.22", - "osType": "Linux", - "osSku": "Ubuntu", - "vmSize": "Standard_DS2_v2" - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerService/snapshots/containerservicena?api-version=2022-08-03-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:50:25 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T065025Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "containerservicena", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerService/snapshots/containerservicena", - "type": "Microsoft.ContainerService/Snapshots", - "location": "eastus", - "tags": { - "key1": "val1", - "key2": "val2" - }, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-13T06:46:48.8873514Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-13T06:46:48.8873514Z" - }, - "properties": { - "creationData": { - "sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.ContainerService/managedClusters/containerservicena/agentPools/agentpoolna" - }, - "snapshotType": "NodePool", - "kubernetesVersion": "1.23.12", - "nodeImageVersion": "AKSUbuntu-1804gen2containerd-2022.09.22", - "osType": "Linux", - "osSku": "Ubuntu", - "vmSize": "Standard_DS2_v2" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerService/snapshots/containerservicena?api-version=2022-08-03-preview", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Thu, 13 Oct 2022 06:50:29 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14998", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T065029Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerService/managedClusters/containerservicena/agentPools/agentpoolna?api-version=2022-08-03-preview", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2017-08-31", - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Thu, 13 Oct 2022 06:50:29 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operationresults/00000000-0000-0000-0000-000000000000?api-version=2017-08-31", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14997", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T065030Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:50:30 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T065030Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-10-13T06:50:30.1378541Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:51:00 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T065101Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-10-13T06:50:30.1378541Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:51:32 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11930", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T065132Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "Succeeded", - "startTime": "2022-10-13T06:50:30.1378541Z", - "endTime": "2022-10-13T06:51:26.0101055Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerService/managedClusters/containerservicena/stop?api-version=2022-08-03-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2017-08-31", - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Thu, 13 Oct 2022 06:51:33 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operationresults/00000000-0000-0000-0000-000000000000?api-version=2017-08-31", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1192", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T065133Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:51:33 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11929", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T065134Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-10-13T06:51:33.3253834Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:52:03 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11928", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T065204Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-10-13T06:51:33.3253834Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:52:33 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11927", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T065234Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-10-13T06:51:33.3253834Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:53:05 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11926", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T065305Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-10-13T06:51:33.3253834Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:53:35 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11925", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T065335Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-10-13T06:51:33.3253834Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:54:05 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11924", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T065405Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "Succeeded", - "startTime": "2022-10-13T06:51:33.3253834Z", - "endTime": "2022-10-13T06:54:02.434889Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operationresults/00000000-0000-0000-0000-000000000000?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:54:05 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operationresults/00000000-0000-0000-0000-000000000000?api-version=2017-08-31", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11923", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T065406Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerService/managedClusters/containerservicena?api-version=2022-08-03-preview", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "azure-asyncoperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2017-08-31", - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Thu, 13 Oct 2022 06:54:06 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operationresults/00000000-0000-0000-0000-000000000000?api-version=2017-08-31", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14996", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T065407Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:54:07 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11922", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T065407Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-10-13T06:54:07.450482Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:54:37 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11921", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T065438Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-10-13T06:54:07.450482Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:55:07 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11920", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T065508Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-10-13T06:54:07.450482Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:55:38 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11919", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T065539Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-10-13T06:54:07.450482Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:56:09 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11918", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T065610Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-10-13T06:54:07.450482Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ContainerService/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2017-08-31", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcontainerservice/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Thu, 13 Oct 2022 06:56:39 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "nginx", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11917", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T065640Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "Succeeded", - "startTime": "2022-10-13T06:54:07.450482Z", - "endTime": "2022-10-13T06:56:30.5874651Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Thu, 13 Oct 2022 06:56:45 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ1NjEtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14995", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221013T065646Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/resourcemanager/cosmos/armcosmos/assets.json b/sdk/resourcemanager/cosmos/armcosmos/assets.json new file mode 100644 index 000000000000..583d0157f601 --- /dev/null +++ b/sdk/resourcemanager/cosmos/armcosmos/assets.json @@ -0,0 +1,6 @@ +{ + "AssetsRepo": "Azure/azure-sdk-assets", + "AssetsRepoPrefixPath": "go", + "TagPrefix": "go/resourcemanager/cosmos/armcosmos", + "Tag": "go/resourcemanager/cosmos/armcosmos_f300ab67c7" +} diff --git a/sdk/resourcemanager/cosmos/armcosmos/go.mod b/sdk/resourcemanager/cosmos/armcosmos/go.mod index 5a1314710fe7..3a8dbfe5532d 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/go.mod +++ b/sdk/resourcemanager/cosmos/armcosmos/go.mod @@ -3,15 +3,15 @@ module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/cosmos/armcosmos/v2 go 1.18 require ( - github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.0 + github.com/Azure/azure-sdk-for-go/sdk/azcore v1.4.0 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.1 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.1 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.2 github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0 github.com/stretchr/testify v1.7.0 ) require ( - github.com/Azure/azure-sdk-for-go/sdk/internal v1.0.0 // indirect + github.com/Azure/azure-sdk-for-go/sdk/internal v1.2.0 // indirect github.com/AzureAD/microsoft-authentication-library-for-go v0.8.1 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/dnaeon/go-vcr v1.1.0 // indirect @@ -21,9 +21,9 @@ require ( github.com/pkg/browser v0.0.0-20210115035449-ce105d075bb4 // indirect github.com/pmezard/go-difflib v1.0.0 // 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 + golang.org/x/net v0.7.0 // indirect + golang.org/x/sys v0.5.0 // indirect + golang.org/x/text v0.7.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect ) diff --git a/sdk/resourcemanager/cosmos/armcosmos/go.sum b/sdk/resourcemanager/cosmos/armcosmos/go.sum index fb080565c360..05c50ce40fb1 100644 --- a/sdk/resourcemanager/cosmos/armcosmos/go.sum +++ b/sdk/resourcemanager/cosmos/armcosmos/go.sum @@ -1,11 +1,11 @@ -github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.0 h1:Ut0ZGdOwJDw0npYEg+TLlPls3Pq6JiZaP2/aGKir7Zw= -github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.0/go.mod h1:uGG2W01BaETf0Ozp+QxxKJdMBNRWPdstHG0Fmdwn1/U= +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.1 h1:T8quHYlUGyb/oqtSTwqlCr1ilJHrDv+ZtpSfo+hm1BU= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.1/go.mod h1:gLa1CL2RNE4s7M3yopJ/p0iq5DdY6Yv5ZUt9MTRZOQM= -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/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.1 h1:BZOe7ExNYNGmapT91ZUrxtMYsqVljMxTHEnwjOdG7pk= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.1/go.mod h1:TSPEzbGHEgqFa3kUn09SpCrfKNbj7+mMulU/72Vg84E= +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/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.2 h1:mLY+pNLjCUeKhgnAJWAKhEUQM+RJQo2H1fuGSw1Ky1E= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.2/go.mod h1:FbdwsQ2EzwvXxOPcMFYO8ogEc9uMMIj3YkmCdXdAFmk= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0 h1:ECsQtyERDVz3NP3kvDOTLvbQhqWp/x9EsGKtb4ogUr8= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0/go.mod h1:s1tW/At+xHqjNFvWU4G0c0Qv33KOhvbGNj0RCTQDV8s= github.com/AzureAD/microsoft-authentication-library-for-go v0.8.1 h1:oPdPEZFSbl7oSPEAIPMPBMUmiL+mqgzBJwM/9qYcwNg= @@ -31,12 +31,12 @@ github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5Cc github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= 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-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/net v0.7.0 h1:rJrUqqhjsgNp7KqAIc25s9pZnjU7TUcSY7HcVZjdn1g= +golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= +golang.org/x/sys v0.5.0 h1:MUK/U/4lj1t1oPg0HfuXDN/Z1wv31ZJ/YcPiGccS4DU= +golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/text v0.7.0 h1:4BRB4x83lYWy72KwLD/qYDuTu7q9PjSagHvijDw7cLo= +golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= 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= diff --git a/sdk/resourcemanager/cosmos/armcosmos/testdata/recordings/TestCassandraresourcesTestSuite.json b/sdk/resourcemanager/cosmos/armcosmos/testdata/recordings/TestCassandraresourcesTestSuite.json deleted file mode 100644 index 7af0e56dcb8a..000000000000 --- a/sdk/resourcemanager/cosmos/armcosmos/testdata/recordings/TestCassandraresourcesTestSuite.json +++ /dev/null @@ -1,2117 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": { - "location": "westus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 29 Aug 2022 06:07:01 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T060701Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "westus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra?api-version=2022-11-15", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "226", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": { - "location": "westus", - "properties": { - "capabilities": [ - { - "name": "EnableCassandra" - } - ], - "createMode": "Default", - "databaseAccountOfferType": "Standard", - "locations": [ - { - "failoverPriority": 0, - "isZoneRedundant": false, - "locationName": "eastus" - } - ] - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:07:14 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T060715Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra", - "name": "databaseaccountcassandra", - "location": "West US", - "type": "Microsoft.DocumentDB/databaseAccounts", - "kind": "GlobalDocumentDB", - "tags": {}, - "systemData": { - "createdAt": "2022-08-29T06:07:11.3921417Z" - }, - "properties": { - "provisioningState": "Creating", - "publicNetworkAccess": "Enabled", - "enableAutomaticFailover": false, - "enableMultipleWriteLocations": false, - "enablePartitionKeyMonitor": false, - "isVirtualNetworkFilterEnabled": false, - "virtualNetworkRules": [], - "EnabledApiTypes": "Cassandra", - "disableKeyBasedMetadataWriteAccess": false, - "enableFreeTier": false, - "enableAnalyticalStorage": false, - "analyticalStorageConfiguration": { - "schemaType": "WellDefined" - }, - "instanceId": "00000000-0000-0000-0000-000000000000", - "databaseAccountOfferType": "Standard", - "defaultIdentity": "", - "networkAclBypass": "None", - "disableLocalAuth": false, - "consistencyPolicy": { - "defaultConsistencyLevel": "Session", - "maxIntervalInSeconds": 5, - "maxStalenessPrefix": 100 - }, - "configurationOverrides": {}, - "writeLocations": [ - { - "id": "databaseaccountcassandra-eastus", - "locationName": "East US", - "provisioningState": "Creating", - "failoverPriority": 0, - "isZoneRedundant": false - } - ], - "readLocations": [ - { - "id": "databaseaccountcassandra-eastus", - "locationName": "East US", - "provisioningState": "Creating", - "failoverPriority": 0, - "isZoneRedundant": false - } - ], - "locations": [ - { - "id": "databaseaccountcassandra-eastus", - "locationName": "East US", - "provisioningState": "Creating", - "failoverPriority": 0, - "isZoneRedundant": false - } - ], - "failoverPolicies": [ - { - "id": "databaseaccountcassandra-eastus", - "locationName": "East US", - "failoverPriority": 0 - } - ], - "cors": [], - "capabilities": [ - { - "name": "EnableCassandra" - } - ], - "ipRules": [], - "backupPolicy": { - "type": "Periodic", - "periodicModeProperties": { - "backupIntervalInMinutes": 240, - "backupRetentionIntervalInHours": 8, - "backupStorageRedundancy": "Invalid" - } - }, - "networkAclBypassResourceIds": [] - }, - "identity": { - "type": "None" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:07:15 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11995", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T060715Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:07:45 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11994", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T060746Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:08:16 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11993", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T060817Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:08:47 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11992", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T060847Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:09:17 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11991", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T060918Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:09:49 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11990", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T060949Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:10:20 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11993", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T061020Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:10:50 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11992", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T061051Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:10:51 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11991", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T061052Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra", - "name": "databaseaccountcassandra", - "location": "West US", - "type": "Microsoft.DocumentDB/databaseAccounts", - "kind": "GlobalDocumentDB", - "tags": {}, - "systemData": { - "createdAt": "2022-08-29T06:10:29.0423143Z" - }, - "properties": { - "provisioningState": "Succeeded", - "documentEndpoint": "https://databaseaccountcassandra.documents.azure.com:443/", - "cassandraEndpoint": "https://databaseaccountcassandra.cassandra.cosmos.azure.com:443/", - "publicNetworkAccess": "Enabled", - "enableAutomaticFailover": false, - "enableMultipleWriteLocations": false, - "enablePartitionKeyMonitor": false, - "isVirtualNetworkFilterEnabled": false, - "virtualNetworkRules": [], - "EnabledApiTypes": "Cassandra", - "disableKeyBasedMetadataWriteAccess": false, - "enableFreeTier": false, - "enableAnalyticalStorage": false, - "analyticalStorageConfiguration": { - "schemaType": "WellDefined" - }, - "instanceId": "00000000-0000-0000-0000-000000000000", - "databaseAccountOfferType": "Standard", - "defaultIdentity": "FirstPartyIdentity", - "networkAclBypass": "None", - "disableLocalAuth": false, - "consistencyPolicy": { - "defaultConsistencyLevel": "Session", - "maxIntervalInSeconds": 5, - "maxStalenessPrefix": 100 - }, - "configurationOverrides": {}, - "writeLocations": [ - { - "id": "databaseaccountcassandra-eastus", - "locationName": "East US", - "documentEndpoint": "https://databaseaccountcassandra-eastus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 0, - "isZoneRedundant": false - } - ], - "readLocations": [ - { - "id": "databaseaccountcassandra-eastus", - "locationName": "East US", - "documentEndpoint": "https://databaseaccountcassandra-eastus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 0, - "isZoneRedundant": false - } - ], - "locations": [ - { - "id": "databaseaccountcassandra-eastus", - "locationName": "East US", - "documentEndpoint": "https://databaseaccountcassandra-eastus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 0, - "isZoneRedundant": false - } - ], - "failoverPolicies": [ - { - "id": "databaseaccountcassandra-eastus", - "locationName": "East US", - "failoverPriority": 0 - } - ], - "cors": [], - "capabilities": [ - { - "name": "EnableCassandra" - } - ], - "ipRules": [], - "backupPolicy": { - "type": "Periodic", - "periodicModeProperties": { - "backupIntervalInMinutes": 240, - "backupRetentionIntervalInHours": 8, - "backupStorageRedundancy": "Geo" - } - }, - "networkAclBypassResourceIds": [] - }, - "identity": { - "type": "None" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM?api-version=2022-11-15", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "120", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": { - "location": "westus", - "properties": { - "options": { - "throughput": 2000 - }, - "resource": { - "id": "cassandrakeyspaceEggYDM" - } - }, - "tags": {} - }, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Cache-Control": "no-store, no-cache", - "Content-Length": "21", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:10:52 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-writes": "1197", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T061053Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:10:52 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11990", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T061053Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:11:23 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11989", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T061124Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:11:25 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11988", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T061125Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM", - "type": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces", - "name": "cassandrakeyspaceEggYDM", - "properties": { - "resource": { - "id": "cassandrakeyspaceEggYDM", - "_rid": "1MdWAA==", - "_etag": "\u002200000000-0000-0000-0000-000000000000\u0022", - "_ts": 1661753461 - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:11:25 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11987", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T061126Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM", - "type": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces", - "name": "cassandrakeyspaceEggYDM", - "properties": { - "resource": { - "id": "cassandrakeyspaceEggYDM", - "_rid": "1MdWAA==", - "_etag": "\u002200000000-0000-0000-0000-000000000000\u0022", - "_ts": 1661753461 - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:11:26 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11986", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T061126Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM", - "type": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces", - "name": "cassandrakeyspaceEggYDM", - "properties": { - "resource": { - "id": "cassandrakeyspaceEggYDM", - "_rid": "1MdWAA==", - "_etag": "\u002200000000-0000-0000-0000-000000000000\u0022", - "_ts": 1661753461 - } - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/throughputSettings/default?api-version=2022-11-15", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "76", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": { - "location": "westus", - "properties": { - "resource": { - "throughput": 400 - } - }, - "tags": {} - }, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Cache-Control": "no-store, no-cache", - "Content-Length": "21", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:11:27 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/throughputSettings/default/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-writes": "1196", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T061128Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:11:27 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11985", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T061128Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:11:58 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11984", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T061159Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/throughputSettings/default?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:11:59 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11983", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T061200Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/throughputSettings/default", - "type": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/throughputSettings", - "name": "Gfy9", - "properties": { - "resource": { - "throughput": 400, - "minimumThroughput": "400" - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/throughputSettings/default?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:12:00 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11982", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T061201Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/throughputSettings/default", - "type": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/throughputSettings", - "name": "Gfy9", - "properties": { - "resource": { - "throughput": 400, - "minimumThroughput": "400" - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/throughputSettings/default/migrateToAutoscale?api-version=2022-11-15", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Cache-Control": "no-store, no-cache", - "Content-Length": "21", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:12:02 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/throughputSettings/default/migrateToAutoscale/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T061203Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:12:02 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11981", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T061203Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:12:34 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11980", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T061234Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/throughputSettings/default/migrateToAutoscale/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:12:35 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11979", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T061235Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/throughputSettings/default/migrateToAutoscale", - "type": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/throughputSettings/migrateToAutoscale", - "name": "Gfy9", - "properties": { - "resource": { - "throughput": 100, - "autoscaleSettings": { - "maxThroughput": 1000 - }, - "minimumThroughput": "1000" - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/throughputSettings/default/migrateToManualThroughput?api-version=2022-11-15", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Cache-Control": "no-store, no-cache", - "Content-Length": "21", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:12:36 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/throughputSettings/default/migrateToManualThroughput/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T061236Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:12:37 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11978", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T061237Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:13:07 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11977", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T061308Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/throughputSettings/default/migrateToManualThroughput/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:13:08 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11976", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T061309Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/throughputSettings/default/migrateToManualThroughput", - "type": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/throughputSettings/migrateToManualThroughput", - "name": "Gfy9", - "properties": { - "resource": { - "throughput": 1000, - "minimumThroughput": "400" - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/tables/tableName?api-version=2022-11-15", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "217", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": { - "location": "westus", - "properties": { - "options": { - "throughput": 2000 - }, - "resource": { - "defaultTtl": 100, - "id": "tableName", - "schema": { - "columns": [ - { - "name": "columnA", - "type": "Ascii" - } - ], - "partitionKeys": [ - { - "name": "columnA" - } - ] - } - } - }, - "tags": {} - }, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Cache-Control": "no-store, no-cache", - "Content-Length": "21", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:13:09 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/tables/tableName/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-writes": "1195", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T061310Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:13:10 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11975", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T061310Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:13:40 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11974", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T061341Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/tables/tableName?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:13:41 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11973", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T061342Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/tables/tableName", - "type": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/tables", - "name": "tableName", - "properties": { - "resource": { - "id": "tableName", - "_rid": "1MdWAJNKsTc=", - "_etag": "\u002200000000-0000-0000-0000-000000000000\u0022", - "_ts": 1661753597, - "defaultTtl": 100, - "schema": { - "columns": [ - { - "name": "columnA", - "type": "ascii" - } - ], - "partitionKeys": [ - { - "name": "columnA" - } - ] - } - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/tables/tableName?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:13:42 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11972", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T061343Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/tables/tableName", - "type": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/tables", - "name": "tableName", - "properties": { - "resource": { - "id": "tableName", - "_rid": "1MdWAJNKsTc=", - "_etag": "\u002200000000-0000-0000-0000-000000000000\u0022", - "_ts": 1661753597, - "defaultTtl": 100, - "schema": { - "columns": [ - { - "name": "columnA", - "type": "ascii" - } - ], - "partitionKeys": [ - { - "name": "columnA" - } - ] - } - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/tables?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:13:42 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11971", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T061343Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/tables/tableName", - "type": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/tables", - "name": "tableName", - "properties": { - "resource": { - "id": "tableName", - "_rid": "1MdWAJNKsTc=", - "_etag": "\u002200000000-0000-0000-0000-000000000000\u0022", - "_ts": 1661753597, - "defaultTtl": 100, - "schema": { - "columns": [ - { - "name": "columnA", - "type": "ascii" - } - ], - "partitionKeys": [ - { - "name": "columnA" - } - ] - } - } - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/tables/tableName/throughputSettings/default?api-version=2022-11-15", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "76", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": { - "location": "westus", - "properties": { - "resource": { - "throughput": 400 - } - }, - "tags": {} - }, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Cache-Control": "no-store, no-cache", - "Content-Length": "21", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:13:45 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/tables/tableName/throughputSettings/default/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-writes": "1194", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T061346Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:13:45 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11970", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T061346Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:14:16 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11969", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T061417Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/tables/tableName/throughputSettings/default?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:14:17 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11968", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T061418Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/tables/tableName/throughputSettings/default", - "type": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/tables/throughputSettings", - "name": "DA6H", - "properties": { - "resource": { - "throughput": 400, - "minimumThroughput": "400" - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/tables/tableName/throughputSettings/default?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:14:19 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11967", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T061420Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/tables/tableName/throughputSettings/default", - "type": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/tables/throughputSettings", - "name": "DA6H", - "properties": { - "resource": { - "throughput": 400, - "minimumThroughput": "400" - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/tables/tableName/throughputSettings/default/migrateToAutoscale?api-version=2022-11-15", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Cache-Control": "no-store, no-cache", - "Content-Length": "21", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:14:20 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/tables/tableName/throughputSettings/default/migrateToAutoscale/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-writes": "1197", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T061421Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:14:20 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11966", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T061421Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:14:52 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11965", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T061452Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/tables/tableName/throughputSettings/default/migrateToAutoscale/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:14:53 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11964", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T061453Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/tables/tableName/throughputSettings/default/migrateToAutoscale", - "type": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/tables/throughputSettings/migrateToAutoscale", - "name": "DA6H", - "properties": { - "resource": { - "throughput": 100, - "autoscaleSettings": { - "maxThroughput": 1000 - }, - "minimumThroughput": "1000" - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/tables/tableName/throughputSettings/default/migrateToManualThroughput?api-version=2022-11-15", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Cache-Control": "no-store, no-cache", - "Content-Length": "21", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:14:54 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/tables/tableName/throughputSettings/default/migrateToManualThroughput/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-writes": "1196", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T061454Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:14:54 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11963", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T061454Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:15:26 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11962", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T061526Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/tables/tableName/throughputSettings/default/migrateToManualThroughput/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:15:26 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11961", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T061526Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/tables/tableName/throughputSettings/default/migrateToManualThroughput", - "type": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/tables/throughputSettings/migrateToManualThroughput", - "name": "DA6H", - "properties": { - "resource": { - "throughput": 1000, - "minimumThroughput": "400" - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/tables/tableName?api-version=2022-11-15", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Cache-Control": "no-store, no-cache", - "Content-Length": "21", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:15:27 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcassandra/cassandraKeyspaces/cassandrakeyspaceEggYDM/tables/tableName/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-deletes": "14999", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T061527Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:15:28 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11960", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T061528Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:15:58 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11959", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T061558Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 29 Aug 2022 06:16:00 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQyMS1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14998", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T061600Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": { - "recordingRandomSeed": "1661753214" - } -} diff --git a/sdk/resourcemanager/cosmos/armcosmos/testdata/recordings/TestDatabaseaccountsTestSuite.json b/sdk/resourcemanager/cosmos/armcosmos/testdata/recordings/TestDatabaseaccountsTestSuite.json deleted file mode 100644 index 490e197d3b0f..000000000000 --- a/sdk/resourcemanager/cosmos/armcosmos/testdata/recordings/TestDatabaseaccountsTestSuite.json +++ /dev/null @@ -1,4744 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": { - "location": "westus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 29 Aug 2022 06:16:12 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1193", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T061612Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "westus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos?api-version=2022-11-15", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "260", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": { - "location": "westus", - "properties": { - "createMode": "Default", - "databaseAccountOfferType": "Standard", - "locations": [ - { - "failoverPriority": 2, - "locationName": "southcentralus" - }, - { - "failoverPriority": 1, - "locationName": "eastus" - }, - { - "failoverPriority": 0, - "locationName": "westus" - } - ] - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:16:28 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-writes": "1192", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T061628Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos", - "name": "databaseaccountcosmos", - "location": "West US", - "type": "Microsoft.DocumentDB/databaseAccounts", - "kind": "GlobalDocumentDB", - "tags": {}, - "systemData": { - "createdAt": "2022-08-29T06:16:18.757821Z" - }, - "properties": { - "provisioningState": "Creating", - "publicNetworkAccess": "Enabled", - "enableAutomaticFailover": false, - "enableMultipleWriteLocations": false, - "enablePartitionKeyMonitor": false, - "isVirtualNetworkFilterEnabled": false, - "virtualNetworkRules": [], - "EnabledApiTypes": "Sql", - "disableKeyBasedMetadataWriteAccess": false, - "enableFreeTier": false, - "enableAnalyticalStorage": false, - "analyticalStorageConfiguration": { - "schemaType": "WellDefined" - }, - "instanceId": "00000000-0000-0000-0000-000000000000", - "databaseAccountOfferType": "Standard", - "defaultIdentity": "", - "networkAclBypass": "None", - "disableLocalAuth": false, - "consistencyPolicy": { - "defaultConsistencyLevel": "Session", - "maxIntervalInSeconds": 5, - "maxStalenessPrefix": 100 - }, - "configurationOverrides": {}, - "writeLocations": [ - { - "id": "databaseaccountcosmos-westus", - "locationName": "West US", - "provisioningState": "Creating", - "failoverPriority": 0, - "isZoneRedundant": false - } - ], - "readLocations": [ - { - "id": "databaseaccountcosmos-westus", - "locationName": "West US", - "provisioningState": "Creating", - "failoverPriority": 0, - "isZoneRedundant": false - } - ], - "locations": [ - { - "id": "databaseaccountcosmos-westus", - "locationName": "West US", - "provisioningState": "Creating", - "failoverPriority": 0, - "isZoneRedundant": false - } - ], - "failoverPolicies": [ - { - "id": "databaseaccountcosmos-westus", - "locationName": "West US", - "failoverPriority": 0 - } - ], - "cors": [], - "capabilities": [], - "ipRules": [], - "backupPolicy": { - "type": "Periodic", - "periodicModeProperties": { - "backupIntervalInMinutes": 240, - "backupRetentionIntervalInHours": 8, - "backupStorageRedundancy": "Invalid" - } - }, - "networkAclBypassResourceIds": [] - }, - "identity": { - "type": "None" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:16:29 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11958", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T061629Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:17:00 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11957", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T061700Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:17:31 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11956", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T061731Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:18:02 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11955", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T061802Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:18:33 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11954", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T061833Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:19:03 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11953", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T061904Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:19:34 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11952", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T061935Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:20:05 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11951", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T062005Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:20:35 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11950", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T062036Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:21:07 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11949", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T062107Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:21:37 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11948", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T062138Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:21:38 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11947", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T062139Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos", - "name": "databaseaccountcosmos", - "location": "West US", - "type": "Microsoft.DocumentDB/databaseAccounts", - "kind": "GlobalDocumentDB", - "tags": {}, - "systemData": { - "createdAt": "2022-08-29T06:17:51.8506122Z" - }, - "properties": { - "provisioningState": "Succeeded", - "documentEndpoint": "https://databaseaccountcosmos.documents.azure.com:443/", - "publicNetworkAccess": "Enabled", - "enableAutomaticFailover": false, - "enableMultipleWriteLocations": false, - "enablePartitionKeyMonitor": false, - "isVirtualNetworkFilterEnabled": false, - "virtualNetworkRules": [], - "EnabledApiTypes": "Sql", - "disableKeyBasedMetadataWriteAccess": false, - "enableFreeTier": false, - "enableAnalyticalStorage": false, - "analyticalStorageConfiguration": { - "schemaType": "WellDefined" - }, - "instanceId": "00000000-0000-0000-0000-000000000000", - "databaseAccountOfferType": "Standard", - "defaultIdentity": "FirstPartyIdentity", - "networkAclBypass": "None", - "disableLocalAuth": false, - "consistencyPolicy": { - "defaultConsistencyLevel": "Session", - "maxIntervalInSeconds": 5, - "maxStalenessPrefix": 100 - }, - "configurationOverrides": {}, - "writeLocations": [ - { - "id": "databaseaccountcosmos-westus", - "locationName": "West US", - "documentEndpoint": "https://databaseaccountcosmos-westus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 0, - "isZoneRedundant": false - } - ], - "readLocations": [ - { - "id": "databaseaccountcosmos-westus", - "locationName": "West US", - "documentEndpoint": "https://databaseaccountcosmos-westus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 0, - "isZoneRedundant": false - }, - { - "id": "databaseaccountcosmos-southcentralus", - "locationName": "South Central US", - "documentEndpoint": "https://databaseaccountcosmos-southcentralus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 2, - "isZoneRedundant": false - }, - { - "id": "databaseaccountcosmos-eastus", - "locationName": "East US", - "documentEndpoint": "https://databaseaccountcosmos-eastus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 1, - "isZoneRedundant": false - } - ], - "locations": [ - { - "id": "databaseaccountcosmos-westus", - "locationName": "West US", - "documentEndpoint": "https://databaseaccountcosmos-westus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 0, - "isZoneRedundant": false - }, - { - "id": "databaseaccountcosmos-southcentralus", - "locationName": "South Central US", - "documentEndpoint": "https://databaseaccountcosmos-southcentralus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 2, - "isZoneRedundant": false - }, - { - "id": "databaseaccountcosmos-eastus", - "locationName": "East US", - "documentEndpoint": "https://databaseaccountcosmos-eastus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 1, - "isZoneRedundant": false - } - ], - "failoverPolicies": [ - { - "id": "databaseaccountcosmos-westus", - "locationName": "West US", - "failoverPriority": 0 - }, - { - "id": "databaseaccountcosmos-southcentralus", - "locationName": "South Central US", - "failoverPriority": 2 - }, - { - "id": "databaseaccountcosmos-eastus", - "locationName": "East US", - "failoverPriority": 1 - } - ], - "cors": [], - "capabilities": [], - "ipRules": [], - "backupPolicy": { - "type": "Periodic", - "periodicModeProperties": { - "backupIntervalInMinutes": 240, - "backupRetentionIntervalInHours": 8, - "backupStorageRedundancy": "Geo" - } - }, - "networkAclBypassResourceIds": [] - }, - "identity": { - "type": "None" - } - } - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.DocumentDB/databaseAccountNames/databaseaccountcosmos?api-version=2022-11-15", - "RequestMethod": "HEAD", - "RequestHeaders": { - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Length": "0", - "Date": "Mon, 29 Aug 2022 06:21:39 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-activity-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-tenant-reads": "11999", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T062140Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:21:41 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11946", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T062141Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos", - "name": "databaseaccountcosmos", - "location": "West US", - "type": "Microsoft.DocumentDB/databaseAccounts", - "kind": "GlobalDocumentDB", - "tags": {}, - "systemData": { - "createdAt": "2022-08-29T06:17:51.8506122Z" - }, - "properties": { - "provisioningState": "Succeeded", - "documentEndpoint": "https://databaseaccountcosmos.documents.azure.com:443/", - "publicNetworkAccess": "Enabled", - "enableAutomaticFailover": false, - "enableMultipleWriteLocations": false, - "enablePartitionKeyMonitor": false, - "isVirtualNetworkFilterEnabled": false, - "virtualNetworkRules": [], - "EnabledApiTypes": "Sql", - "disableKeyBasedMetadataWriteAccess": false, - "enableFreeTier": false, - "enableAnalyticalStorage": false, - "analyticalStorageConfiguration": { - "schemaType": "WellDefined" - }, - "instanceId": "00000000-0000-0000-0000-000000000000", - "databaseAccountOfferType": "Standard", - "defaultIdentity": "FirstPartyIdentity", - "networkAclBypass": "None", - "disableLocalAuth": false, - "consistencyPolicy": { - "defaultConsistencyLevel": "Session", - "maxIntervalInSeconds": 5, - "maxStalenessPrefix": 100 - }, - "configurationOverrides": {}, - "writeLocations": [ - { - "id": "databaseaccountcosmos-westus", - "locationName": "West US", - "documentEndpoint": "https://databaseaccountcosmos-westus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 0, - "isZoneRedundant": false - } - ], - "readLocations": [ - { - "id": "databaseaccountcosmos-westus", - "locationName": "West US", - "documentEndpoint": "https://databaseaccountcosmos-westus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 0, - "isZoneRedundant": false - }, - { - "id": "databaseaccountcosmos-southcentralus", - "locationName": "South Central US", - "documentEndpoint": "https://databaseaccountcosmos-southcentralus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 2, - "isZoneRedundant": false - }, - { - "id": "databaseaccountcosmos-eastus", - "locationName": "East US", - "documentEndpoint": "https://databaseaccountcosmos-eastus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 1, - "isZoneRedundant": false - } - ], - "locations": [ - { - "id": "databaseaccountcosmos-westus", - "locationName": "West US", - "documentEndpoint": "https://databaseaccountcosmos-westus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 0, - "isZoneRedundant": false - }, - { - "id": "databaseaccountcosmos-southcentralus", - "locationName": "South Central US", - "documentEndpoint": "https://databaseaccountcosmos-southcentralus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 2, - "isZoneRedundant": false - }, - { - "id": "databaseaccountcosmos-eastus", - "locationName": "East US", - "documentEndpoint": "https://databaseaccountcosmos-eastus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 1, - "isZoneRedundant": false - } - ], - "failoverPolicies": [ - { - "id": "databaseaccountcosmos-westus", - "locationName": "West US", - "failoverPriority": 0 - }, - { - "id": "databaseaccountcosmos-southcentralus", - "locationName": "South Central US", - "failoverPriority": 2 - }, - { - "id": "databaseaccountcosmos-eastus", - "locationName": "East US", - "failoverPriority": 1 - } - ], - "cors": [], - "capabilities": [], - "ipRules": [], - "backupPolicy": { - "type": "Periodic", - "periodicModeProperties": { - "backupIntervalInMinutes": 240, - "backupRetentionIntervalInHours": 8, - "backupStorageRedundancy": "Geo" - } - }, - "networkAclBypassResourceIds": [] - }, - "identity": { - "type": "None" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/databaseAccounts?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "7887", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 29 Aug 2022 06:21:42 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-original-request-ids": [ - "", - "" - ], - "x-ms-ratelimit-remaining-subscription-reads": "11945", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T062142Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-test/providers/Microsoft.DocumentDB/databaseAccounts/cosmossql", - "name": "cosmossql", - "location": "West US", - "type": "Microsoft.DocumentDB/databaseAccounts", - "kind": "GlobalDocumentDB", - "tags": { - "defaultExperience": "Core (SQL)", - "hidden-cosmos-mmspecial": "" - }, - "systemData": { - "createdAt": "2022-08-25T07:12:33.4260601Z" - }, - "properties": { - "provisioningState": "Succeeded", - "documentEndpoint": "https://cosmossql.documents.azure.com:443/", - "publicNetworkAccess": "Enabled", - "enableAutomaticFailover": false, - "enableMultipleWriteLocations": false, - "enablePartitionKeyMonitor": false, - "isVirtualNetworkFilterEnabled": false, - "virtualNetworkRules": [], - "EnabledApiTypes": "Sql", - "disableKeyBasedMetadataWriteAccess": false, - "enableFreeTier": false, - "enableAnalyticalStorage": false, - "analyticalStorageConfiguration": { - "schemaType": "WellDefined" - }, - "instanceId": "00000000-0000-0000-0000-000000000000", - "databaseAccountOfferType": "Standard", - "defaultIdentity": "FirstPartyIdentity", - "networkAclBypass": "None", - "disableLocalAuth": false, - "consistencyPolicy": { - "defaultConsistencyLevel": "Session", - "maxIntervalInSeconds": 5, - "maxStalenessPrefix": 100 - }, - "configurationOverrides": {}, - "writeLocations": [ - { - "id": "cosmossql-westus", - "locationName": "West US", - "documentEndpoint": "https://cosmossql-westus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 0, - "isZoneRedundant": false - } - ], - "readLocations": [ - { - "id": "cosmossql-westus", - "locationName": "West US", - "documentEndpoint": "https://cosmossql-westus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 0, - "isZoneRedundant": false - } - ], - "locations": [ - { - "id": "cosmossql-westus", - "locationName": "West US", - "documentEndpoint": "https://cosmossql-westus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 0, - "isZoneRedundant": false - } - ], - "failoverPolicies": [ - { - "id": "cosmossql-westus", - "locationName": "West US", - "failoverPriority": 0 - } - ], - "cors": [], - "capabilities": [], - "ipRules": [], - "backupPolicy": { - "type": "Periodic", - "periodicModeProperties": { - "backupIntervalInMinutes": 240, - "backupRetentionIntervalInHours": 8, - "backupStorageRedundancy": "Local" - } - }, - "networkAclBypassResourceIds": [] - }, - "identity": { - "type": "None" - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos", - "name": "databaseaccountcosmos", - "location": "West US", - "type": "Microsoft.DocumentDB/databaseAccounts", - "kind": "GlobalDocumentDB", - "tags": {}, - "systemData": { - "createdAt": "2022-08-29T06:17:51.8506122Z" - }, - "properties": { - "provisioningState": "Succeeded", - "documentEndpoint": "https://databaseaccountcosmos.documents.azure.com:443/", - "publicNetworkAccess": "Enabled", - "enableAutomaticFailover": false, - "enableMultipleWriteLocations": false, - "enablePartitionKeyMonitor": false, - "isVirtualNetworkFilterEnabled": false, - "virtualNetworkRules": [], - "EnabledApiTypes": "Sql", - "disableKeyBasedMetadataWriteAccess": false, - "enableFreeTier": false, - "enableAnalyticalStorage": false, - "analyticalStorageConfiguration": { - "schemaType": "WellDefined" - }, - "instanceId": "00000000-0000-0000-0000-000000000000", - "databaseAccountOfferType": "Standard", - "defaultIdentity": "FirstPartyIdentity", - "networkAclBypass": "None", - "disableLocalAuth": false, - "consistencyPolicy": { - "defaultConsistencyLevel": "Session", - "maxIntervalInSeconds": 5, - "maxStalenessPrefix": 100 - }, - "configurationOverrides": {}, - "writeLocations": [ - { - "id": "databaseaccountcosmos-westus", - "locationName": "West US", - "documentEndpoint": "https://databaseaccountcosmos-westus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 0, - "isZoneRedundant": false - } - ], - "readLocations": [ - { - "id": "databaseaccountcosmos-westus", - "locationName": "West US", - "documentEndpoint": "https://databaseaccountcosmos-westus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 0, - "isZoneRedundant": false - }, - { - "id": "databaseaccountcosmos-southcentralus", - "locationName": "South Central US", - "documentEndpoint": "https://databaseaccountcosmos-southcentralus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 2, - "isZoneRedundant": false - }, - { - "id": "databaseaccountcosmos-eastus", - "locationName": "East US", - "documentEndpoint": "https://databaseaccountcosmos-eastus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 1, - "isZoneRedundant": false - } - ], - "locations": [ - { - "id": "databaseaccountcosmos-westus", - "locationName": "West US", - "documentEndpoint": "https://databaseaccountcosmos-westus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 0, - "isZoneRedundant": false - }, - { - "id": "databaseaccountcosmos-southcentralus", - "locationName": "South Central US", - "documentEndpoint": "https://databaseaccountcosmos-southcentralus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 2, - "isZoneRedundant": false - }, - { - "id": "databaseaccountcosmos-eastus", - "locationName": "East US", - "documentEndpoint": "https://databaseaccountcosmos-eastus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 1, - "isZoneRedundant": false - } - ], - "failoverPolicies": [ - { - "id": "databaseaccountcosmos-westus", - "locationName": "West US", - "failoverPriority": 0 - }, - { - "id": "databaseaccountcosmos-southcentralus", - "locationName": "South Central US", - "failoverPriority": 2 - }, - { - "id": "databaseaccountcosmos-eastus", - "locationName": "East US", - "failoverPriority": 1 - } - ], - "cors": [], - "capabilities": [], - "ipRules": [], - "backupPolicy": { - "type": "Periodic", - "periodicModeProperties": { - "backupIntervalInMinutes": 240, - "backupRetentionIntervalInHours": 8, - "backupStorageRedundancy": "Geo" - } - }, - "networkAclBypassResourceIds": [] - }, - "identity": { - "type": "None" - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myjstest/providers/Microsoft.DocumentDB/databaseAccounts/myaccountxxyy1", - "name": "myaccountxxyy1", - "location": "East US", - "type": "Microsoft.DocumentDB/databaseAccounts", - "kind": "GlobalDocumentDB", - "tags": {}, - "systemData": { - "createdAt": "2022-07-22T06:23:20.4227447Z" - }, - "properties": { - "provisioningState": "Succeeded", - "documentEndpoint": "https://myaccountxxyy1.documents.azure.com:443/", - "cassandraEndpoint": "https://myaccountxxyy1.cassandra.cosmos.azure.com:443/", - "publicNetworkAccess": "Enabled", - "enableAutomaticFailover": false, - "enableMultipleWriteLocations": false, - "enablePartitionKeyMonitor": false, - "isVirtualNetworkFilterEnabled": false, - "virtualNetworkRules": [], - "EnabledApiTypes": "Cassandra", - "disableKeyBasedMetadataWriteAccess": false, - "enableFreeTier": false, - "enableAnalyticalStorage": false, - "analyticalStorageConfiguration": { - "schemaType": "WellDefined" - }, - "instanceId": "00000000-0000-0000-0000-000000000000", - "databaseAccountOfferType": "Standard", - "defaultIdentity": "FirstPartyIdentity", - "networkAclBypass": "None", - "disableLocalAuth": false, - "consistencyPolicy": { - "defaultConsistencyLevel": "Session", - "maxIntervalInSeconds": 5, - "maxStalenessPrefix": 100 - }, - "configurationOverrides": {}, - "writeLocations": [ - { - "id": "myaccountxxyy1-eastus", - "locationName": "East US", - "documentEndpoint": "https://myaccountxxyy1-eastus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 0, - "isZoneRedundant": false - } - ], - "readLocations": [ - { - "id": "myaccountxxyy1-eastus", - "locationName": "East US", - "documentEndpoint": "https://myaccountxxyy1-eastus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 0, - "isZoneRedundant": false - } - ], - "locations": [ - { - "id": "myaccountxxyy1-eastus", - "locationName": "East US", - "documentEndpoint": "https://myaccountxxyy1-eastus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 0, - "isZoneRedundant": false - } - ], - "failoverPolicies": [ - { - "id": "myaccountxxyy1-eastus", - "locationName": "East US", - "failoverPriority": 0 - } - ], - "cors": [], - "capabilities": [ - { - "name": "EnableCassandra" - } - ], - "ipRules": [], - "backupPolicy": { - "type": "Periodic", - "periodicModeProperties": { - "backupIntervalInMinutes": 240, - "backupRetentionIntervalInHours": 8, - "backupStorageRedundancy": "Geo" - } - }, - "networkAclBypassResourceIds": [] - }, - "identity": { - "type": "None" - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:21:43 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11944", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T062143Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos", - "name": "databaseaccountcosmos", - "location": "West US", - "type": "Microsoft.DocumentDB/databaseAccounts", - "kind": "GlobalDocumentDB", - "tags": {}, - "systemData": { - "createdAt": "2022-08-29T06:17:51.8506122Z" - }, - "properties": { - "provisioningState": "Succeeded", - "documentEndpoint": "https://databaseaccountcosmos.documents.azure.com:443/", - "publicNetworkAccess": "Enabled", - "enableAutomaticFailover": false, - "enableMultipleWriteLocations": false, - "enablePartitionKeyMonitor": false, - "isVirtualNetworkFilterEnabled": false, - "virtualNetworkRules": [], - "EnabledApiTypes": "Sql", - "disableKeyBasedMetadataWriteAccess": false, - "enableFreeTier": false, - "enableAnalyticalStorage": false, - "analyticalStorageConfiguration": { - "schemaType": "WellDefined" - }, - "instanceId": "00000000-0000-0000-0000-000000000000", - "databaseAccountOfferType": "Standard", - "defaultIdentity": "FirstPartyIdentity", - "networkAclBypass": "None", - "disableLocalAuth": false, - "consistencyPolicy": { - "defaultConsistencyLevel": "Session", - "maxIntervalInSeconds": 5, - "maxStalenessPrefix": 100 - }, - "configurationOverrides": {}, - "writeLocations": [ - { - "id": "databaseaccountcosmos-westus", - "locationName": "West US", - "documentEndpoint": "https://databaseaccountcosmos-westus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 0, - "isZoneRedundant": false - } - ], - "readLocations": [ - { - "id": "databaseaccountcosmos-westus", - "locationName": "West US", - "documentEndpoint": "https://databaseaccountcosmos-westus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 0, - "isZoneRedundant": false - }, - { - "id": "databaseaccountcosmos-southcentralus", - "locationName": "South Central US", - "documentEndpoint": "https://databaseaccountcosmos-southcentralus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 2, - "isZoneRedundant": false - }, - { - "id": "databaseaccountcosmos-eastus", - "locationName": "East US", - "documentEndpoint": "https://databaseaccountcosmos-eastus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 1, - "isZoneRedundant": false - } - ], - "locations": [ - { - "id": "databaseaccountcosmos-westus", - "locationName": "West US", - "documentEndpoint": "https://databaseaccountcosmos-westus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 0, - "isZoneRedundant": false - }, - { - "id": "databaseaccountcosmos-southcentralus", - "locationName": "South Central US", - "documentEndpoint": "https://databaseaccountcosmos-southcentralus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 2, - "isZoneRedundant": false - }, - { - "id": "databaseaccountcosmos-eastus", - "locationName": "East US", - "documentEndpoint": "https://databaseaccountcosmos-eastus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 1, - "isZoneRedundant": false - } - ], - "failoverPolicies": [ - { - "id": "databaseaccountcosmos-westus", - "locationName": "West US", - "failoverPriority": 0 - }, - { - "id": "databaseaccountcosmos-southcentralus", - "locationName": "South Central US", - "failoverPriority": 2 - }, - { - "id": "databaseaccountcosmos-eastus", - "locationName": "East US", - "failoverPriority": 1 - } - ], - "cors": [], - "capabilities": [], - "ipRules": [], - "backupPolicy": { - "type": "Periodic", - "periodicModeProperties": { - "backupIntervalInMinutes": 240, - "backupRetentionIntervalInHours": 8, - "backupStorageRedundancy": "Geo" - } - }, - "networkAclBypassResourceIds": [] - }, - "identity": { - "type": "None" - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos/listKeys?api-version=2022-11-15", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:21:44 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-writes": "1195", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T062144Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "primaryMasterKey": "secret", - "secondaryMasterKey": "secret", - "primaryReadonlyMasterKey": "secret", - "secondaryReadonlyMasterKey": "secret" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos/listConnectionStrings?api-version=2022-11-15", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:21:45 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-writes": "1194", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T062145Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "connectionStrings": [ - { - "connectionString": "AccountEndpoint=https://databaseaccountcosmos.documents.azure.com:443/;AccountKey=secret;", - "description": "Primary SQL Connection String" - }, - { - "connectionString": "AccountEndpoint=https://databaseaccountcosmos.documents.azure.com:443/;AccountKey=secret;", - "description": "Secondary SQL Connection String" - }, - { - "connectionString": "AccountEndpoint=https://databaseaccountcosmos.documents.azure.com:443/;AccountKey=secret;", - "description": "Primary Read-Only SQL Connection String" - }, - { - "connectionString": "AccountEndpoint=https://databaseaccountcosmos.documents.azure.com:443/;AccountKey=secret;", - "description": "Secondary Read-Only SQL Connection String" - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos/readonlykeys?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:21:46 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-writes": "1193", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T062146Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "primaryReadonlyMasterKey": "secret", - "secondaryReadonlyMasterKey": "secret" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos/readonlykeys?api-version=2022-11-15", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:21:48 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-writes": "1192", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T062148Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "primaryReadonlyMasterKey": "secret", - "secondaryReadonlyMasterKey": "secret" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos/metricDefinitions?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:21:48 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11943", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T062149Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "metricAvailabilities": [ - { - "timeGrain": "PT5M", - "retention": "P2D" - }, - { - "timeGrain": "PT1H", - "retention": "P14D" - }, - { - "timeGrain": "P1D", - "retention": "P60D" - } - ], - "primaryAggregationType": "Last", - "unit": "Bytes", - "resourceUri": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos", - "name": { - "value": "Data Size", - "localizedValue": "Data Size" - } - }, - { - "metricAvailabilities": [ - { - "timeGrain": "PT5M", - "retention": "P2D" - }, - { - "timeGrain": "PT1H", - "retention": "P14D" - }, - { - "timeGrain": "P1D", - "retention": "P60D" - } - ], - "primaryAggregationType": "Last", - "unit": "Bytes", - "resourceUri": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos", - "name": { - "value": "Index Size", - "localizedValue": "Index Size" - } - }, - { - "metricAvailabilities": [ - { - "timeGrain": "PT5M", - "retention": "P2D" - }, - { - "timeGrain": "PT1H", - "retention": "P14D" - }, - { - "timeGrain": "P1D", - "retention": "P60D" - } - ], - "primaryAggregationType": "Last", - "unit": "Bytes", - "resourceUri": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos", - "name": { - "value": "Storage Capacity", - "localizedValue": "Storage Capacity" - } - }, - { - "metricAvailabilities": [ - { - "timeGrain": "PT5M", - "retention": "P2D" - }, - { - "timeGrain": "PT1H", - "retention": "P14D" - }, - { - "timeGrain": "P1D", - "retention": "P60D" - } - ], - "primaryAggregationType": "Last", - "unit": "Bytes", - "resourceUri": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos", - "name": { - "value": "Available Storage", - "localizedValue": "Available Storage" - } - }, - { - "metricAvailabilities": [ - { - "timeGrain": "PT5M", - "retention": "P2D" - }, - { - "timeGrain": "PT1H", - "retention": "P14D" - }, - { - "timeGrain": "P1D", - "retention": "P60D" - } - ], - "primaryAggregationType": "Last", - "unit": "Count", - "resourceUri": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos", - "name": { - "value": "Document Count", - "localizedValue": "Document Count" - } - }, - { - "metricAvailabilities": [ - { - "timeGrain": "PT5M", - "retention": "P2D" - }, - { - "timeGrain": "PT1H", - "retention": "P14D" - }, - { - "timeGrain": "P1D", - "retention": "P60D" - } - ], - "primaryAggregationType": "Average", - "unit": "Milliseconds", - "resourceUri": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos", - "name": { - "value": "Observed Read Latency", - "localizedValue": "Observed Read Latency" - } - }, - { - "metricAvailabilities": [ - { - "timeGrain": "PT5M", - "retention": "P2D" - }, - { - "timeGrain": "PT1H", - "retention": "P14D" - }, - { - "timeGrain": "P1D", - "retention": "P60D" - } - ], - "primaryAggregationType": "Average", - "unit": "Milliseconds", - "resourceUri": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos", - "name": { - "value": "Observed Write Latency", - "localizedValue": "Observed Write Latency" - } - }, - { - "metricAvailabilities": [ - { - "timeGrain": "PT1M", - "retention": "P2D" - }, - { - "timeGrain": "PT5M", - "retention": "P2D" - }, - { - "timeGrain": "PT1H", - "retention": "P14D" - }, - { - "timeGrain": "P1D", - "retention": "P60D" - } - ], - "primaryAggregationType": "Total", - "unit": "Count", - "resourceUri": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos", - "name": { - "value": "Total Requests", - "localizedValue": "Total Requests" - } - }, - { - "metricAvailabilities": [ - { - "timeGrain": "PT1M", - "retention": "P2D" - }, - { - "timeGrain": "PT5M", - "retention": "P2D" - }, - { - "timeGrain": "PT1H", - "retention": "P14D" - }, - { - "timeGrain": "P1D", - "retention": "P60D" - } - ], - "primaryAggregationType": "Total", - "unit": "Count", - "resourceUri": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos", - "name": { - "value": "Http 2xx", - "localizedValue": "Http 2xx" - } - }, - { - "metricAvailabilities": [ - { - "timeGrain": "PT1M", - "retention": "P2D" - }, - { - "timeGrain": "PT5M", - "retention": "P2D" - }, - { - "timeGrain": "PT1H", - "retention": "P14D" - }, - { - "timeGrain": "P1D", - "retention": "P60D" - } - ], - "primaryAggregationType": "Total", - "unit": "Count", - "resourceUri": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos", - "name": { - "value": "Http 3xx", - "localizedValue": "Http 3xx" - } - }, - { - "metricAvailabilities": [ - { - "timeGrain": "PT1M", - "retention": "P2D" - }, - { - "timeGrain": "PT5M", - "retention": "P2D" - }, - { - "timeGrain": "PT1H", - "retention": "P14D" - }, - { - "timeGrain": "P1D", - "retention": "P60D" - } - ], - "primaryAggregationType": "Total", - "unit": "Count", - "resourceUri": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos", - "name": { - "value": "Http 400", - "localizedValue": "Http 400" - } - }, - { - "metricAvailabilities": [ - { - "timeGrain": "PT1M", - "retention": "P2D" - }, - { - "timeGrain": "PT5M", - "retention": "P2D" - }, - { - "timeGrain": "PT1H", - "retention": "P14D" - }, - { - "timeGrain": "P1D", - "retention": "P60D" - } - ], - "primaryAggregationType": "Total", - "unit": "Count", - "resourceUri": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos", - "name": { - "value": "Http 401", - "localizedValue": "Http 401" - } - }, - { - "metricAvailabilities": [ - { - "timeGrain": "PT1M", - "retention": "P2D" - }, - { - "timeGrain": "PT5M", - "retention": "P2D" - }, - { - "timeGrain": "PT1H", - "retention": "P14D" - }, - { - "timeGrain": "P1D", - "retention": "P60D" - } - ], - "primaryAggregationType": "Total", - "unit": "Count", - "resourceUri": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos", - "name": { - "value": "Throttled Requests", - "localizedValue": "Throttled Requests" - } - }, - { - "metricAvailabilities": [ - { - "timeGrain": "PT1M", - "retention": "P2D" - }, - { - "timeGrain": "PT5M", - "retention": "P2D" - }, - { - "timeGrain": "PT1H", - "retention": "P14D" - }, - { - "timeGrain": "P1D", - "retention": "P60D" - } - ], - "primaryAggregationType": "Total", - "unit": "Count", - "resourceUri": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos", - "name": { - "value": "Internal Server Error", - "localizedValue": "Internal Server Error" - } - }, - { - "metricAvailabilities": [ - { - "timeGrain": "PT1M", - "retention": "P2D" - }, - { - "timeGrain": "PT5M", - "retention": "P2D" - }, - { - "timeGrain": "PT1H", - "retention": "P14D" - }, - { - "timeGrain": "P1D", - "retention": "P60D" - } - ], - "primaryAggregationType": "Total", - "unit": "Count", - "resourceUri": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos", - "name": { - "value": "Service Unavailable", - "localizedValue": "Service Unavailable" - } - }, - { - "metricAvailabilities": [ - { - "timeGrain": "PT1M", - "retention": "P2D" - }, - { - "timeGrain": "PT5M", - "retention": "P2D" - }, - { - "timeGrain": "PT1H", - "retention": "P14D" - }, - { - "timeGrain": "P1D", - "retention": "P60D" - } - ], - "primaryAggregationType": "Total", - "unit": "Count", - "resourceUri": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos", - "name": { - "value": "Total Request Units", - "localizedValue": "Total Request Units" - } - }, - { - "metricAvailabilities": [ - { - "timeGrain": "PT1M", - "retention": "P2D" - }, - { - "timeGrain": "PT5M", - "retention": "P2D" - }, - { - "timeGrain": "PT1H", - "retention": "P14D" - }, - { - "timeGrain": "P1D", - "retention": "P60D" - } - ], - "primaryAggregationType": "Average", - "unit": "CountPerSecond", - "resourceUri": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos", - "name": { - "value": "Average Requests per Second", - "localizedValue": "Average Requests per Second" - } - }, - { - "metricAvailabilities": [ - { - "timeGrain": "PT1M", - "retention": "P2D" - }, - { - "timeGrain": "PT5M", - "retention": "P2D" - }, - { - "timeGrain": "PT1H", - "retention": "P14D" - }, - { - "timeGrain": "P1D", - "retention": "P60D" - } - ], - "primaryAggregationType": "Maximum", - "unit": "Count", - "resourceUri": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos", - "name": { - "value": "Max RUs Per Second", - "localizedValue": "Max RUs Per Second" - } - }, - { - "metricAvailabilities": [ - { - "timeGrain": "PT1M", - "retention": "P2D" - }, - { - "timeGrain": "PT5M", - "retention": "P2D" - }, - { - "timeGrain": "PT1H", - "retention": "P14D" - }, - { - "timeGrain": "P1D", - "retention": "P60D" - } - ], - "primaryAggregationType": "Maximum", - "unit": "Count", - "resourceUri": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos", - "name": { - "value": "Max RUPM Consumed Per Minute", - "localizedValue": "Max RUPM Consumed Per Minute" - } - }, - { - "metricAvailabilities": [ - { - "timeGrain": "PT1M", - "retention": "P2D" - }, - { - "timeGrain": "PT5M", - "retention": "P2D" - }, - { - "timeGrain": "PT1H", - "retention": "P14D" - }, - { - "timeGrain": "P1D", - "retention": "P60D" - } - ], - "primaryAggregationType": "Total", - "unit": "Count", - "resourceUri": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos", - "name": { - "value": "Mongo Query Request Charge", - "localizedValue": "Mongo Query Request Charge" - } - }, - { - "metricAvailabilities": [ - { - "timeGrain": "PT1M", - "retention": "P2D" - }, - { - "timeGrain": "PT5M", - "retention": "P2D" - }, - { - "timeGrain": "PT1H", - "retention": "P14D" - }, - { - "timeGrain": "P1D", - "retention": "P60D" - } - ], - "primaryAggregationType": "Total", - "unit": "Count", - "resourceUri": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos", - "name": { - "value": "Mongo Update Request Charge", - "localizedValue": "Mongo Update Request Charge" - } - }, - { - "metricAvailabilities": [ - { - "timeGrain": "PT1M", - "retention": "P2D" - }, - { - "timeGrain": "PT5M", - "retention": "P2D" - }, - { - "timeGrain": "PT1H", - "retention": "P14D" - }, - { - "timeGrain": "P1D", - "retention": "P60D" - } - ], - "primaryAggregationType": "Total", - "unit": "Count", - "resourceUri": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos", - "name": { - "value": "Mongo Delete Request Charge", - "localizedValue": "Mongo Delete Request Charge" - } - }, - { - "metricAvailabilities": [ - { - "timeGrain": "PT1M", - "retention": "P2D" - }, - { - "timeGrain": "PT5M", - "retention": "P2D" - }, - { - "timeGrain": "PT1H", - "retention": "P14D" - }, - { - "timeGrain": "P1D", - "retention": "P60D" - } - ], - "primaryAggregationType": "Total", - "unit": "Count", - "resourceUri": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos", - "name": { - "value": "Mongo Insert Request Charge", - "localizedValue": "Mongo Insert Request Charge" - } - }, - { - "metricAvailabilities": [ - { - "timeGrain": "PT1M", - "retention": "P2D" - }, - { - "timeGrain": "PT5M", - "retention": "P2D" - }, - { - "timeGrain": "PT1H", - "retention": "P14D" - }, - { - "timeGrain": "P1D", - "retention": "P60D" - } - ], - "primaryAggregationType": "Total", - "unit": "Count", - "resourceUri": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos", - "name": { - "value": "Mongo Count Request Charge", - "localizedValue": "Mongo Count Request Charge" - } - }, - { - "metricAvailabilities": [ - { - "timeGrain": "PT1M", - "retention": "P2D" - }, - { - "timeGrain": "PT5M", - "retention": "P2D" - }, - { - "timeGrain": "PT1H", - "retention": "P14D" - }, - { - "timeGrain": "P1D", - "retention": "P60D" - } - ], - "primaryAggregationType": "Total", - "unit": "Count", - "resourceUri": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos", - "name": { - "value": "Mongo Other Request Charge", - "localizedValue": "Mongo Other Request Charge" - } - }, - { - "metricAvailabilities": [ - { - "timeGrain": "PT1M", - "retention": "P2D" - }, - { - "timeGrain": "PT5M", - "retention": "P2D" - }, - { - "timeGrain": "PT1H", - "retention": "P14D" - }, - { - "timeGrain": "P1D", - "retention": "P60D" - } - ], - "primaryAggregationType": "Total", - "unit": "Count", - "resourceUri": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos", - "name": { - "value": "Mongo Query Request Rate", - "localizedValue": "Mongo Query Request Rate" - } - }, - { - "metricAvailabilities": [ - { - "timeGrain": "PT1M", - "retention": "P2D" - }, - { - "timeGrain": "PT5M", - "retention": "P2D" - }, - { - "timeGrain": "PT1H", - "retention": "P14D" - }, - { - "timeGrain": "P1D", - "retention": "P60D" - } - ], - "primaryAggregationType": "Total", - "unit": "Count", - "resourceUri": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos", - "name": { - "value": "Mongo Update Request Rate", - "localizedValue": "Mongo Update Request Rate" - } - }, - { - "metricAvailabilities": [ - { - "timeGrain": "PT1M", - "retention": "P2D" - }, - { - "timeGrain": "PT5M", - "retention": "P2D" - }, - { - "timeGrain": "PT1H", - "retention": "P14D" - }, - { - "timeGrain": "P1D", - "retention": "P60D" - } - ], - "primaryAggregationType": "Total", - "unit": "Count", - "resourceUri": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos", - "name": { - "value": "Mongo Delete Request Rate", - "localizedValue": "Mongo Delete Request Rate" - } - }, - { - "metricAvailabilities": [ - { - "timeGrain": "PT1M", - "retention": "P2D" - }, - { - "timeGrain": "PT5M", - "retention": "P2D" - }, - { - "timeGrain": "PT1H", - "retention": "P14D" - }, - { - "timeGrain": "P1D", - "retention": "P60D" - } - ], - "primaryAggregationType": "Total", - "unit": "Count", - "resourceUri": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos", - "name": { - "value": "Mongo Insert Request Rate", - "localizedValue": "Mongo Insert Request Rate" - } - }, - { - "metricAvailabilities": [ - { - "timeGrain": "PT1M", - "retention": "P2D" - }, - { - "timeGrain": "PT5M", - "retention": "P2D" - }, - { - "timeGrain": "PT1H", - "retention": "P14D" - }, - { - "timeGrain": "P1D", - "retention": "P60D" - } - ], - "primaryAggregationType": "Total", - "unit": "Count", - "resourceUri": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos", - "name": { - "value": "Mongo Count Request Rate", - "localizedValue": "Mongo Count Request Rate" - } - }, - { - "metricAvailabilities": [ - { - "timeGrain": "PT1M", - "retention": "P2D" - }, - { - "timeGrain": "PT5M", - "retention": "P2D" - }, - { - "timeGrain": "PT1H", - "retention": "P14D" - }, - { - "timeGrain": "P1D", - "retention": "P60D" - } - ], - "primaryAggregationType": "Total", - "unit": "Count", - "resourceUri": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos", - "name": { - "value": "Mongo Other Request Rate", - "localizedValue": "Mongo Other Request Rate" - } - }, - { - "metricAvailabilities": [ - { - "timeGrain": "PT1M", - "retention": "P2D" - }, - { - "timeGrain": "PT5M", - "retention": "P2D" - }, - { - "timeGrain": "PT1H", - "retention": "P14D" - }, - { - "timeGrain": "P1D", - "retention": "P60D" - } - ], - "primaryAggregationType": "Total", - "unit": "Count", - "resourceUri": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos", - "name": { - "value": "Mongo Query Failed Requests", - "localizedValue": "Mongo Query Failed Requests" - } - }, - { - "metricAvailabilities": [ - { - "timeGrain": "PT1M", - "retention": "P2D" - }, - { - "timeGrain": "PT5M", - "retention": "P2D" - }, - { - "timeGrain": "PT1H", - "retention": "P14D" - }, - { - "timeGrain": "P1D", - "retention": "P60D" - } - ], - "primaryAggregationType": "Total", - "unit": "Count", - "resourceUri": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos", - "name": { - "value": "Mongo Update Failed Requests", - "localizedValue": "Mongo Update Failed Requests" - } - }, - { - "metricAvailabilities": [ - { - "timeGrain": "PT1M", - "retention": "P2D" - }, - { - "timeGrain": "PT5M", - "retention": "P2D" - }, - { - "timeGrain": "PT1H", - "retention": "P14D" - }, - { - "timeGrain": "P1D", - "retention": "P60D" - } - ], - "primaryAggregationType": "Total", - "unit": "Count", - "resourceUri": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos", - "name": { - "value": "Mongo Delete Failed Requests", - "localizedValue": "Mongo Delete Failed Requests" - } - }, - { - "metricAvailabilities": [ - { - "timeGrain": "PT1M", - "retention": "P2D" - }, - { - "timeGrain": "PT5M", - "retention": "P2D" - }, - { - "timeGrain": "PT1H", - "retention": "P14D" - }, - { - "timeGrain": "P1D", - "retention": "P60D" - } - ], - "primaryAggregationType": "Total", - "unit": "Count", - "resourceUri": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos", - "name": { - "value": "Mongo Insert Failed Requests", - "localizedValue": "Mongo Insert Failed Requests" - } - }, - { - "metricAvailabilities": [ - { - "timeGrain": "PT1M", - "retention": "P2D" - }, - { - "timeGrain": "PT5M", - "retention": "P2D" - }, - { - "timeGrain": "PT1H", - "retention": "P14D" - }, - { - "timeGrain": "P1D", - "retention": "P60D" - } - ], - "primaryAggregationType": "Total", - "unit": "Count", - "resourceUri": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos", - "name": { - "value": "Mongo Count Failed Requests", - "localizedValue": "Mongo Count Failed Requests" - } - }, - { - "metricAvailabilities": [ - { - "timeGrain": "PT1M", - "retention": "P2D" - }, - { - "timeGrain": "PT5M", - "retention": "P2D" - }, - { - "timeGrain": "PT1H", - "retention": "P14D" - }, - { - "timeGrain": "P1D", - "retention": "P60D" - } - ], - "primaryAggregationType": "Total", - "unit": "Count", - "resourceUri": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos", - "name": { - "value": "Mongo Other Failed Requests", - "localizedValue": "Mongo Other Failed Requests" - } - }, - { - "metricAvailabilities": [ - { - "timeGrain": "PT1H", - "retention": "P14D" - }, - { - "timeGrain": "P1D", - "retention": "P60D" - } - ], - "primaryAggregationType": "Average", - "unit": "Percent", - "resourceUri": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos", - "name": { - "value": "Service Availability", - "localizedValue": "Service Availability" - } - }, - { - "metricAvailabilities": [ - { - "timeGrain": "PT1H", - "retention": "P14D" - }, - { - "timeGrain": "P1D", - "retention": "P60D" - } - ], - "primaryAggregationType": "Average", - "unit": "Percent", - "resourceUri": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos", - "name": { - "value": "Consistency Level", - "localizedValue": "Consistency Level" - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos/failoverPriorityChange?api-version=2022-11-15", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "171", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": { - "failoverPolicies": [ - { - "failoverPriority": 0, - "locationName": "eastus" - }, - { - "failoverPriority": 2, - "locationName": "southcentralus" - }, - { - "failoverPriority": 1, - "locationName": "westus" - } - ] - }, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Cache-Control": "no-store, no-cache", - "Content-Length": "21", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:21:51 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos/failoverPriorityChange/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-writes": "1191", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T062152Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:21:51 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11942", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T062152Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:22:23 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11941", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T062223Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:22:53 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11940", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T062254Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos/failoverPriorityChange/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:22:54 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11939", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T062255Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos/regenerateKey?api-version=2022-11-15", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": { - "keyKind": "primary" - }, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Cache-Control": "no-store, no-cache", - "Content-Length": "21", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:22:57 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos/regenerateKey/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-writes": "1190", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T062257Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:22:57 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11938", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T062258Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:23:28 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11937", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T062329Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:23:59 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11936", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T062359Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos/regenerateKey/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:23:59 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T062400Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos?api-version=2022-11-15", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "27", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": { - "tags": { - "dept": "finance" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:24:03 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-writes": "1191", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T062404Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos", - "name": "databaseaccountcosmos", - "location": "West US", - "type": "Microsoft.DocumentDB/databaseAccounts", - "kind": "GlobalDocumentDB", - "tags": {}, - "systemData": { - "createdAt": "2022-08-29T06:17:51.8506122Z" - }, - "properties": { - "provisioningState": "Updating", - "documentEndpoint": "https://databaseaccountcosmos.documents.azure.com:443/", - "publicNetworkAccess": "Enabled", - "enableAutomaticFailover": false, - "enableMultipleWriteLocations": false, - "enablePartitionKeyMonitor": false, - "isVirtualNetworkFilterEnabled": false, - "virtualNetworkRules": [], - "EnabledApiTypes": "Sql", - "disableKeyBasedMetadataWriteAccess": false, - "enableFreeTier": false, - "enableAnalyticalStorage": false, - "analyticalStorageConfiguration": { - "schemaType": "WellDefined" - }, - "instanceId": "00000000-0000-0000-0000-000000000000", - "databaseAccountOfferType": "Standard", - "defaultIdentity": "FirstPartyIdentity", - "networkAclBypass": "None", - "disableLocalAuth": false, - "consistencyPolicy": { - "defaultConsistencyLevel": "Session", - "maxIntervalInSeconds": 5, - "maxStalenessPrefix": 100 - }, - "configurationOverrides": {}, - "writeLocations": [ - { - "id": "databaseaccountcosmos-eastus", - "locationName": "East US", - "documentEndpoint": "https://databaseaccountcosmos-eastus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 0, - "isZoneRedundant": false - } - ], - "readLocations": [ - { - "id": "databaseaccountcosmos-eastus", - "locationName": "East US", - "documentEndpoint": "https://databaseaccountcosmos-eastus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 0, - "isZoneRedundant": false - }, - { - "id": "databaseaccountcosmos-southcentralus", - "locationName": "South Central US", - "documentEndpoint": "https://databaseaccountcosmos-southcentralus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 2, - "isZoneRedundant": false - }, - { - "id": "databaseaccountcosmos-westus", - "locationName": "West US", - "documentEndpoint": "https://databaseaccountcosmos-westus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 1, - "isZoneRedundant": false - } - ], - "locations": [ - { - "id": "databaseaccountcosmos-eastus", - "locationName": "East US", - "documentEndpoint": "https://databaseaccountcosmos-eastus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 0, - "isZoneRedundant": false - }, - { - "id": "databaseaccountcosmos-southcentralus", - "locationName": "South Central US", - "documentEndpoint": "https://databaseaccountcosmos-southcentralus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 2, - "isZoneRedundant": false - }, - { - "id": "databaseaccountcosmos-westus", - "locationName": "West US", - "documentEndpoint": "https://databaseaccountcosmos-westus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 1, - "isZoneRedundant": false - } - ], - "failoverPolicies": [ - { - "id": "databaseaccountcosmos-eastus", - "locationName": "East US", - "failoverPriority": 0 - }, - { - "id": "databaseaccountcosmos-southcentralus", - "locationName": "South Central US", - "failoverPriority": 2 - }, - { - "id": "databaseaccountcosmos-westus", - "locationName": "West US", - "failoverPriority": 1 - } - ], - "cors": [], - "capabilities": [], - "ipRules": [], - "backupPolicy": { - "type": "Periodic", - "periodicModeProperties": { - "backupIntervalInMinutes": 240, - "backupRetentionIntervalInHours": 8, - "backupStorageRedundancy": "Geo" - } - }, - "networkAclBypassResourceIds": [] - }, - "identity": { - "type": "None" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:24:04 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T062405Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:24:35 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T062435Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:25:05 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T062506Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:25:37 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T062537Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:25:37 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11930", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T062538Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos", - "name": "databaseaccountcosmos", - "location": "West US", - "type": "Microsoft.DocumentDB/databaseAccounts", - "kind": "GlobalDocumentDB", - "tags": { - "dept": "finance" - }, - "systemData": { - "createdAt": "2022-08-29T06:17:51.8506122Z" - }, - "properties": { - "provisioningState": "Succeeded", - "documentEndpoint": "https://databaseaccountcosmos.documents.azure.com:443/", - "publicNetworkAccess": "Enabled", - "enableAutomaticFailover": false, - "enableMultipleWriteLocations": false, - "enablePartitionKeyMonitor": false, - "isVirtualNetworkFilterEnabled": false, - "virtualNetworkRules": [], - "EnabledApiTypes": "Sql", - "disableKeyBasedMetadataWriteAccess": false, - "enableFreeTier": false, - "enableAnalyticalStorage": false, - "analyticalStorageConfiguration": { - "schemaType": "WellDefined" - }, - "instanceId": "00000000-0000-0000-0000-000000000000", - "databaseAccountOfferType": "Standard", - "defaultIdentity": "FirstPartyIdentity", - "networkAclBypass": "None", - "disableLocalAuth": false, - "consistencyPolicy": { - "defaultConsistencyLevel": "Session", - "maxIntervalInSeconds": 5, - "maxStalenessPrefix": 100 - }, - "configurationOverrides": {}, - "writeLocations": [ - { - "id": "databaseaccountcosmos-eastus", - "locationName": "East US", - "documentEndpoint": "https://databaseaccountcosmos-eastus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 0, - "isZoneRedundant": false - } - ], - "readLocations": [ - { - "id": "databaseaccountcosmos-eastus", - "locationName": "East US", - "documentEndpoint": "https://databaseaccountcosmos-eastus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 0, - "isZoneRedundant": false - }, - { - "id": "databaseaccountcosmos-southcentralus", - "locationName": "South Central US", - "documentEndpoint": "https://databaseaccountcosmos-southcentralus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 2, - "isZoneRedundant": false - }, - { - "id": "databaseaccountcosmos-westus", - "locationName": "West US", - "documentEndpoint": "https://databaseaccountcosmos-westus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 1, - "isZoneRedundant": false - } - ], - "locations": [ - { - "id": "databaseaccountcosmos-eastus", - "locationName": "East US", - "documentEndpoint": "https://databaseaccountcosmos-eastus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 0, - "isZoneRedundant": false - }, - { - "id": "databaseaccountcosmos-southcentralus", - "locationName": "South Central US", - "documentEndpoint": "https://databaseaccountcosmos-southcentralus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 2, - "isZoneRedundant": false - }, - { - "id": "databaseaccountcosmos-westus", - "locationName": "West US", - "documentEndpoint": "https://databaseaccountcosmos-westus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 1, - "isZoneRedundant": false - } - ], - "failoverPolicies": [ - { - "id": "databaseaccountcosmos-eastus", - "locationName": "East US", - "failoverPriority": 0 - }, - { - "id": "databaseaccountcosmos-southcentralus", - "locationName": "South Central US", - "failoverPriority": 2 - }, - { - "id": "databaseaccountcosmos-westus", - "locationName": "West US", - "failoverPriority": 1 - } - ], - "cors": [], - "capabilities": [], - "ipRules": [], - "backupPolicy": { - "type": "Periodic", - "periodicModeProperties": { - "backupIntervalInMinutes": 240, - "backupRetentionIntervalInHours": 8, - "backupStorageRedundancy": "Geo" - } - }, - "networkAclBypassResourceIds": [] - }, - "identity": { - "type": "None" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountcosmos?api-version=2022-11-15", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Cache-Control": "no-store, no-cache", - "Content-Length": "21", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:25:40 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-deletes": "14997", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T062540Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:25:41 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11929", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T062541Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:26:11 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11928", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T062612Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:26:42 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11927", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T062642Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:27:12 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11926", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T062713Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:27:43 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11925", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T062744Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:28:14 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11924", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T062814Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:28:45 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11923", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T062845Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:29:16 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11922", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T062916Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:29:46 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11921", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T062947Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:30:17 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11920", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T063018Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:30:48 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11919", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T063049Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:31:19 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11918", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T063119Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:31:50 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11917", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T063150Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:32:20 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11916", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T063221Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:32:52 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11915", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T063252Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:33:23 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11914", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T063323Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:33:53 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11913", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T063354Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:34:24 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11912", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T063425Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:34:55 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11911", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T063455Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:35:26 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11910", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T063526Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:35:56 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11909", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T063557Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:36:27 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11908", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T063627Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:36:57 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11907", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T063658Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:37:28 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11906", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T063729Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:37:58 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11905", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T063759Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:38:29 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11904", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T063830Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:39:00 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11903", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T063900Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:39:31 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11902", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T063931Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:40:01 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11901", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T064002Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:40:32 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11900", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T064032Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:41:02 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11899", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T064103Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:41:34 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11898", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T064134Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:42:04 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11897", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T064204Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:42:34 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11896", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T064235Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:43:04 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11895", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T064305Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:43:36 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11894", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T064336Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:44:06 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11893", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T064406Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:44:36 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11892", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T064437Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:45:07 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11891", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T064507Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:45:37 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11890", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T064538Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:46:08 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11889", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T064608Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:46:39 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11887", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T064639Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 29 Aug 2022 06:46:44 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ2MC1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14996", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T064644Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": { - "recordingRandomSeed": "1661753214" - } -} diff --git a/sdk/resourcemanager/cosmos/armcosmos/testdata/recordings/TestGremlinresourcesTestSuite.json b/sdk/resourcemanager/cosmos/armcosmos/testdata/recordings/TestGremlinresourcesTestSuite.json deleted file mode 100644 index 7bd1c2fb328c..000000000000 --- a/sdk/resourcemanager/cosmos/armcosmos/testdata/recordings/TestGremlinresourcesTestSuite.json +++ /dev/null @@ -1,2355 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": { - "location": "westus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 29 Aug 2022 06:46:48 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1190", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T064648Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "westus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin?api-version=2022-11-15", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "224", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": { - "location": "westus", - "properties": { - "capabilities": [ - { - "name": "EnableGremlin" - } - ], - "createMode": "Default", - "databaseAccountOfferType": "Standard", - "locations": [ - { - "failoverPriority": 0, - "isZoneRedundant": false, - "locationName": "eastus" - } - ] - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:46:58 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-writes": "1189", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T064659Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin", - "name": "databaseaccountgremlin", - "location": "West US", - "type": "Microsoft.DocumentDB/databaseAccounts", - "kind": "GlobalDocumentDB", - "tags": {}, - "systemData": { - "createdAt": "2022-08-29T06:46:55.2673363Z" - }, - "properties": { - "provisioningState": "Creating", - "publicNetworkAccess": "Enabled", - "enableAutomaticFailover": false, - "enableMultipleWriteLocations": false, - "enablePartitionKeyMonitor": false, - "isVirtualNetworkFilterEnabled": false, - "virtualNetworkRules": [], - "EnabledApiTypes": "Gremlin, Sql", - "disableKeyBasedMetadataWriteAccess": false, - "enableFreeTier": false, - "enableAnalyticalStorage": false, - "analyticalStorageConfiguration": { - "schemaType": "WellDefined" - }, - "instanceId": "00000000-0000-0000-0000-000000000000", - "databaseAccountOfferType": "Standard", - "defaultIdentity": "", - "networkAclBypass": "None", - "disableLocalAuth": false, - "consistencyPolicy": { - "defaultConsistencyLevel": "Session", - "maxIntervalInSeconds": 5, - "maxStalenessPrefix": 100 - }, - "configurationOverrides": {}, - "writeLocations": [ - { - "id": "databaseaccountgremlin-eastus", - "locationName": "East US", - "provisioningState": "Creating", - "failoverPriority": 0, - "isZoneRedundant": false - } - ], - "readLocations": [ - { - "id": "databaseaccountgremlin-eastus", - "locationName": "East US", - "provisioningState": "Creating", - "failoverPriority": 0, - "isZoneRedundant": false - } - ], - "locations": [ - { - "id": "databaseaccountgremlin-eastus", - "locationName": "East US", - "provisioningState": "Creating", - "failoverPriority": 0, - "isZoneRedundant": false - } - ], - "failoverPolicies": [ - { - "id": "databaseaccountgremlin-eastus", - "locationName": "East US", - "failoverPriority": 0 - } - ], - "cors": [], - "capabilities": [ - { - "name": "EnableGremlin" - } - ], - "ipRules": [], - "backupPolicy": { - "type": "Periodic", - "periodicModeProperties": { - "backupIntervalInMinutes": 240, - "backupRetentionIntervalInHours": 8, - "backupStorageRedundancy": "Invalid" - } - }, - "networkAclBypassResourceIds": [] - }, - "identity": { - "type": "None" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:46:59 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11886", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T064659Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:47:29 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11885", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T064730Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:47:59 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11884", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T064800Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:48:30 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11883", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T064831Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:49:01 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11882", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T064901Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:49:32 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11881", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T064932Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:50:03 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11880", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T065003Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:50:33 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11879", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T065034Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:50:34 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11878", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T065034Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin", - "name": "databaseaccountgremlin", - "location": "West US", - "type": "Microsoft.DocumentDB/databaseAccounts", - "kind": "GlobalDocumentDB", - "tags": {}, - "systemData": { - "createdAt": "2022-08-29T06:50:06.6471215Z" - }, - "properties": { - "provisioningState": "Succeeded", - "documentEndpoint": "https://databaseaccountgremlin.documents.azure.com:443/", - "gremlinEndpoint": "https://databaseaccountgremlin.gremlin.cosmos.azure.com:443/", - "publicNetworkAccess": "Enabled", - "enableAutomaticFailover": false, - "enableMultipleWriteLocations": false, - "enablePartitionKeyMonitor": false, - "isVirtualNetworkFilterEnabled": false, - "virtualNetworkRules": [], - "EnabledApiTypes": "Gremlin, Sql", - "disableKeyBasedMetadataWriteAccess": false, - "enableFreeTier": false, - "enableAnalyticalStorage": false, - "analyticalStorageConfiguration": { - "schemaType": "WellDefined" - }, - "instanceId": "00000000-0000-0000-0000-000000000000", - "databaseAccountOfferType": "Standard", - "defaultIdentity": "FirstPartyIdentity", - "networkAclBypass": "None", - "disableLocalAuth": false, - "consistencyPolicy": { - "defaultConsistencyLevel": "Session", - "maxIntervalInSeconds": 5, - "maxStalenessPrefix": 100 - }, - "configurationOverrides": {}, - "writeLocations": [ - { - "id": "databaseaccountgremlin-eastus", - "locationName": "East US", - "documentEndpoint": "https://databaseaccountgremlin-eastus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 0, - "isZoneRedundant": false - } - ], - "readLocations": [ - { - "id": "databaseaccountgremlin-eastus", - "locationName": "East US", - "documentEndpoint": "https://databaseaccountgremlin-eastus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 0, - "isZoneRedundant": false - } - ], - "locations": [ - { - "id": "databaseaccountgremlin-eastus", - "locationName": "East US", - "documentEndpoint": "https://databaseaccountgremlin-eastus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 0, - "isZoneRedundant": false - } - ], - "failoverPolicies": [ - { - "id": "databaseaccountgremlin-eastus", - "locationName": "East US", - "failoverPriority": 0 - } - ], - "cors": [], - "capabilities": [ - { - "name": "EnableGremlin" - } - ], - "ipRules": [], - "backupPolicy": { - "type": "Periodic", - "periodicModeProperties": { - "backupIntervalInMinutes": 240, - "backupRetentionIntervalInHours": 8, - "backupStorageRedundancy": "Geo" - } - }, - "networkAclBypassResourceIds": [] - }, - "identity": { - "type": "None" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb?api-version=2022-11-15", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "115", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": { - "location": "westus", - "properties": { - "options": { - "throughput": 2000 - }, - "resource": { - "id": "scenario_gremlindb" - } - }, - "tags": {} - }, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Cache-Control": "no-store, no-cache", - "Content-Length": "21", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:50:35 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-writes": "1188", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T065036Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:50:35 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11877", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T065036Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:51:06 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11876", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T065107Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:51:07 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11875", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T065108Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb", - "type": "Microsoft.DocumentDB/databaseAccounts/gremlinDatabases", - "name": "scenario_gremlindb", - "properties": { - "resource": { - "id": "scenario_gremlindb", - "_rid": "KYVtAA==", - "_self": "dbs/KYVtAA==/", - "_etag": "\u002200000000-0000-0000-0000-000000000000\u0022", - "_colls": "colls/", - "_users": "users/", - "_ts": 1661755843 - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:51:08 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11874", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T065108Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb", - "type": "Microsoft.DocumentDB/databaseAccounts/gremlinDatabases", - "name": "scenario_gremlindb", - "properties": { - "resource": { - "id": "scenario_gremlindb", - "_rid": "KYVtAA==", - "_self": "dbs/KYVtAA==/", - "_etag": "\u002200000000-0000-0000-0000-000000000000\u0022", - "_colls": "colls/", - "_users": "users/", - "_ts": 1661755843 - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:51:08 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11873", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T065109Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb", - "type": "Microsoft.DocumentDB/databaseAccounts/gremlinDatabases", - "name": "scenario_gremlindb", - "properties": { - "resource": { - "id": "scenario_gremlindb", - "_rid": "KYVtAA==", - "_self": "dbs/KYVtAA==/", - "_etag": "\u002200000000-0000-0000-0000-000000000000\u0022", - "_colls": "colls/", - "_users": "users/", - "_ts": 1661755843 - } - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/throughputSettings/default?api-version=2022-11-15", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "76", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": { - "location": "westus", - "properties": { - "resource": { - "throughput": 400 - } - }, - "tags": {} - }, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Cache-Control": "no-store, no-cache", - "Content-Length": "21", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:51:09 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/throughputSettings/default/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-writes": "1187", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T065110Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:51:10 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11872", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T065110Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:51:41 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11871", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T065141Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/throughputSettings/default?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:51:42 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11870", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T065142Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/throughputSettings/default", - "type": "Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/throughputSettings", - "name": "Vviy", - "properties": { - "resource": { - "throughput": 400, - "minimumThroughput": "400" - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/throughputSettings/default?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:51:43 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11869", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T065143Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/throughputSettings/default", - "type": "Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/throughputSettings", - "name": "Vviy", - "properties": { - "resource": { - "throughput": 400, - "minimumThroughput": "400" - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/throughputSettings/default/migrateToAutoscale?api-version=2022-11-15", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Cache-Control": "no-store, no-cache", - "Content-Length": "21", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:51:44 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/throughputSettings/default/migrateToAutoscale/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-writes": "1189", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T065144Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:51:44 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11868", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T065144Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:52:15 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11867", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T065215Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/throughputSettings/default/migrateToAutoscale/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:52:16 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11866", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T065216Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/throughputSettings/default/migrateToAutoscale", - "type": "Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/throughputSettings/migrateToAutoscale", - "name": "Vviy", - "properties": { - "resource": { - "throughput": 100, - "autoscaleSettings": { - "maxThroughput": 1000 - }, - "minimumThroughput": "1000" - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/throughputSettings/default/migrateToManualThroughput?api-version=2022-11-15", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Cache-Control": "no-store, no-cache", - "Content-Length": "21", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:52:17 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/throughputSettings/default/migrateToManualThroughput/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-writes": "1188", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T065218Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:52:18 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11865", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T065218Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:52:48 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11864", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T065249Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/throughputSettings/default/migrateToManualThroughput/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:52:49 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11863", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T065250Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/throughputSettings/default/migrateToManualThroughput", - "type": "Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/throughputSettings/migrateToManualThroughput", - "name": "Vviy", - "properties": { - "resource": { - "throughput": 1000, - "minimumThroughput": "400" - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/graphs/graphName?api-version=2022-11-15", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "557", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": { - "location": "westus", - "properties": { - "options": { - "throughput": 2000 - }, - "resource": { - "conflictResolutionPolicy": { - "conflictResolutionPath": "/path", - "mode": "LastWriterWins" - }, - "defaultTtl": 100, - "id": "graphName", - "indexingPolicy": { - "automatic": true, - "excludedPaths": [], - "includedPaths": [ - { - "indexes": [ - { - "dataType": "String", - "kind": "Range", - "precision": -1 - }, - { - "dataType": "Number", - "kind": "Range", - "precision": -1 - } - ], - "path": "/*" - } - ], - "indexingMode": "consistent" - }, - "partitionKey": { - "kind": "Hash", - "paths": [ - "/AccountNumber" - ] - }, - "uniqueKeyPolicy": { - "uniqueKeys": [ - { - "paths": [ - "/testPath" - ] - } - ] - } - } - }, - "tags": {} - }, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Cache-Control": "no-store, no-cache", - "Content-Length": "21", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:52:50 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/graphs/graphName/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-writes": "1186", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T065251Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:52:50 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11862", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T065251Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:53:21 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11861", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T065322Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/graphs/graphName?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:53:22 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11860", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T065323Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/graphs/graphName", - "type": "Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/graphs", - "name": "graphName", - "properties": { - "resource": { - "id": "graphName", - "indexingPolicy": { - "indexingMode": "consistent", - "automatic": true, - "includedPaths": [ - { - "path": "/*" - } - ], - "excludedPaths": [ - { - "path": "/\u0022_etag\u0022/?" - } - ] - }, - "partitionKey": { - "paths": [ - "/AccountNumber" - ], - "kind": "Hash" - }, - "defaultTtl": 100, - "uniqueKeyPolicy": { - "uniqueKeys": [ - { - "paths": [ - "/testPath" - ] - } - ] - }, - "conflictResolutionPolicy": { - "mode": "LastWriterWins", - "conflictResolutionPath": "/path", - "conflictResolutionProcedure": "" - }, - "geospatialConfig": { - "type": "Geography" - }, - "_rid": "KYVtAN3zTZU=", - "_ts": 1661755978, - "_self": "dbs/KYVtAA==/colls/KYVtAN3zTZU=/", - "_etag": "\u002200000000-0000-0000-0000-000000000000\u0022", - "_docs": "docs/", - "_sprocs": "sprocs/", - "_triggers": "triggers/", - "_udfs": "udfs/", - "_conflicts": "conflicts/", - "statistics": [ - { - "id": "0", - "sizeInKB": 0, - "documentCount": 0, - "sampledDistinctPartitionKeyCount": 0, - "partitionKeys": [] - } - ] - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/graphs/graphName?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:53:22 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11859", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T065323Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/graphs/graphName", - "type": "Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/graphs", - "name": "graphName", - "properties": { - "resource": { - "id": "graphName", - "indexingPolicy": { - "indexingMode": "consistent", - "automatic": true, - "includedPaths": [ - { - "path": "/*" - } - ], - "excludedPaths": [ - { - "path": "/\u0022_etag\u0022/?" - } - ] - }, - "partitionKey": { - "paths": [ - "/AccountNumber" - ], - "kind": "Hash" - }, - "defaultTtl": 100, - "uniqueKeyPolicy": { - "uniqueKeys": [ - { - "paths": [ - "/testPath" - ] - } - ] - }, - "conflictResolutionPolicy": { - "mode": "LastWriterWins", - "conflictResolutionPath": "/path", - "conflictResolutionProcedure": "" - }, - "geospatialConfig": { - "type": "Geography" - }, - "_rid": "KYVtAN3zTZU=", - "_ts": 1661755978, - "_self": "dbs/KYVtAA==/colls/KYVtAN3zTZU=/", - "_etag": "\u002200000000-0000-0000-0000-000000000000\u0022", - "_docs": "docs/", - "_sprocs": "sprocs/", - "_triggers": "triggers/", - "_udfs": "udfs/", - "_conflicts": "conflicts/", - "statistics": [ - { - "id": "0", - "sizeInKB": 0, - "documentCount": 0, - "sampledDistinctPartitionKeyCount": 0, - "partitionKeys": [] - } - ] - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/graphs?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:53:23 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11858", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T065324Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/graphs/graphName", - "type": "Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/graphs", - "name": "graphName", - "properties": { - "resource": { - "id": "graphName", - "indexingPolicy": { - "indexingMode": "consistent", - "automatic": true, - "includedPaths": [ - { - "path": "/*" - } - ], - "excludedPaths": [ - { - "path": "/\u0022_etag\u0022/?" - } - ] - }, - "partitionKey": { - "paths": [ - "/AccountNumber" - ], - "kind": "Hash" - }, - "defaultTtl": 100, - "uniqueKeyPolicy": { - "uniqueKeys": [ - { - "paths": [ - "/testPath" - ] - } - ] - }, - "conflictResolutionPolicy": { - "mode": "LastWriterWins", - "conflictResolutionPath": "/path", - "conflictResolutionProcedure": "" - }, - "geospatialConfig": { - "type": "Geography" - }, - "_rid": "KYVtAN3zTZU=", - "_ts": 1661755978, - "_self": "dbs/KYVtAA==/colls/KYVtAN3zTZU=/", - "_etag": "\u002200000000-0000-0000-0000-000000000000\u0022", - "_docs": "docs/", - "_sprocs": "sprocs/", - "_triggers": "triggers/", - "_udfs": "udfs/", - "_conflicts": "conflicts/" - } - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/graphs/graphName/throughputSettings/default?api-version=2022-11-15", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "76", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": { - "location": "westus", - "properties": { - "resource": { - "throughput": 400 - } - }, - "tags": {} - }, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Cache-Control": "no-store, no-cache", - "Content-Length": "21", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:53:25 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/graphs/graphName/throughputSettings/default/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-writes": "1185", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T065326Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:53:25 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11857", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T065326Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:53:57 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11856", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T065357Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/graphs/graphName/throughputSettings/default?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:53:58 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11855", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T065358Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/graphs/graphName/throughputSettings/default", - "type": "Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/graphs/throughputSettings", - "name": "W8cv", - "properties": { - "resource": { - "throughput": 400, - "minimumThroughput": "400" - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/graphs/graphName/throughputSettings/default?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:53:59 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11854", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T065359Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/graphs/graphName/throughputSettings/default", - "type": "Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/graphs/throughputSettings", - "name": "W8cv", - "properties": { - "resource": { - "throughput": 400, - "minimumThroughput": "400" - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/graphs/graphName/throughputSettings/default/migrateToAutoscale?api-version=2022-11-15", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Cache-Control": "no-store, no-cache", - "Content-Length": "21", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:54:01 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/graphs/graphName/throughputSettings/default/migrateToAutoscale/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-writes": "1187", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T065401Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:54:01 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11853", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T065401Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:54:32 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11852", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T065432Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/graphs/graphName/throughputSettings/default/migrateToAutoscale/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:54:33 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11851", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T065433Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/graphs/graphName/throughputSettings/default/migrateToAutoscale", - "type": "Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/graphs/throughputSettings/migrateToAutoscale", - "name": "W8cv", - "properties": { - "resource": { - "throughput": 100, - "autoscaleSettings": { - "maxThroughput": 1000 - }, - "minimumThroughput": "1000" - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/graphs/graphName/throughputSettings/default/migrateToManualThroughput?api-version=2022-11-15", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Cache-Control": "no-store, no-cache", - "Content-Length": "21", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:54:34 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/graphs/graphName/throughputSettings/default/migrateToManualThroughput/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-writes": "1186", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T065434Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:54:34 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11850", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T065435Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:55:05 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11849", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T065505Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/graphs/graphName/throughputSettings/default/migrateToManualThroughput/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:55:06 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11848", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T065506Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/graphs/graphName/throughputSettings/default/migrateToManualThroughput", - "type": "Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/graphs/throughputSettings/migrateToManualThroughput", - "name": "W8cv", - "properties": { - "resource": { - "throughput": 1000, - "minimumThroughput": "400" - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/graphs/graphName?api-version=2022-11-15", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Cache-Control": "no-store, no-cache", - "Content-Length": "21", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:55:07 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/graphs/graphName/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-deletes": "14995", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T065507Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:55:07 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11847", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T065507Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:55:39 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11846", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T065539Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb?api-version=2022-11-15", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Cache-Control": "no-store, no-cache", - "Content-Length": "21", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:55:39 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountgremlin/gremlinDatabases/scenario_gremlindb/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-deletes": "14994", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T065540Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:55:40 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11845", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T065540Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:56:10 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11844", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T065611Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 29 Aug 2022 06:56:13 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ5MDgtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14993", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T065614Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": { - "recordingRandomSeed": "1661753214" - } -} diff --git a/sdk/resourcemanager/cosmos/armcosmos/testdata/recordings/TestMongodbresourcesTestSuite.json b/sdk/resourcemanager/cosmos/armcosmos/testdata/recordings/TestMongodbresourcesTestSuite.json deleted file mode 100644 index 481ab60b8768..000000000000 --- a/sdk/resourcemanager/cosmos/armcosmos/testdata/recordings/TestMongodbresourcesTestSuite.json +++ /dev/null @@ -1,2148 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": { - "location": "westus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 29 Aug 2022 06:56:16 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1184", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T065617Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "westus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb?api-version=2022-11-15", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "199", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": { - "kind": "MongoDB", - "location": "westus", - "properties": { - "createMode": "Default", - "databaseAccountOfferType": "Standard", - "locations": [ - { - "failoverPriority": 0, - "isZoneRedundant": false, - "locationName": "eastus" - } - ] - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:56:26 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-writes": "1183", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T065627Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb", - "name": "databaseaccountmongodb", - "location": "West US", - "type": "Microsoft.DocumentDB/databaseAccounts", - "kind": "MongoDB", - "tags": {}, - "systemData": { - "createdAt": "2022-08-29T06:56:23.1270691Z" - }, - "properties": { - "provisioningState": "Creating", - "publicNetworkAccess": "Enabled", - "enableAutomaticFailover": false, - "enableMultipleWriteLocations": false, - "enablePartitionKeyMonitor": false, - "isVirtualNetworkFilterEnabled": false, - "virtualNetworkRules": [], - "EnabledApiTypes": "MongoDB", - "disableKeyBasedMetadataWriteAccess": false, - "enableFreeTier": false, - "enableAnalyticalStorage": false, - "analyticalStorageConfiguration": { - "schemaType": "FullFidelity" - }, - "instanceId": "00000000-0000-0000-0000-000000000000", - "databaseAccountOfferType": "Standard", - "defaultIdentity": "", - "networkAclBypass": "None", - "disableLocalAuth": false, - "consistencyPolicy": { - "defaultConsistencyLevel": "Session", - "maxIntervalInSeconds": 5, - "maxStalenessPrefix": 100 - }, - "apiProperties": { - "serverVersion": "3.6" - }, - "configurationOverrides": {}, - "writeLocations": [ - { - "id": "databaseaccountmongodb-eastus", - "locationName": "East US", - "provisioningState": "Creating", - "failoverPriority": 0, - "isZoneRedundant": false - } - ], - "readLocations": [ - { - "id": "databaseaccountmongodb-eastus", - "locationName": "East US", - "provisioningState": "Creating", - "failoverPriority": 0, - "isZoneRedundant": false - } - ], - "locations": [ - { - "id": "databaseaccountmongodb-eastus", - "locationName": "East US", - "provisioningState": "Creating", - "failoverPriority": 0, - "isZoneRedundant": false - } - ], - "failoverPolicies": [ - { - "id": "databaseaccountmongodb-eastus", - "locationName": "East US", - "failoverPriority": 0 - } - ], - "cors": [], - "capabilities": [ - { - "name": "EnableMongo" - } - ], - "ipRules": [], - "backupPolicy": { - "type": "Periodic", - "periodicModeProperties": { - "backupIntervalInMinutes": 240, - "backupRetentionIntervalInHours": 8, - "backupStorageRedundancy": "Invalid" - } - }, - "networkAclBypassResourceIds": [] - }, - "identity": { - "type": "None" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:56:26 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11843", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T065627Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:56:57 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11842", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T065658Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:57:28 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11841", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T065728Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:57:59 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11840", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T065759Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:58:30 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11839", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T065830Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:59:00 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11838", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T065901Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:59:31 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11837", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T065932Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:59:31 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11836", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T065932Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb", - "name": "databaseaccountmongodb", - "location": "West US", - "type": "Microsoft.DocumentDB/databaseAccounts", - "kind": "MongoDB", - "tags": {}, - "systemData": { - "createdAt": "2022-08-29T06:59:22.8750796Z" - }, - "properties": { - "provisioningState": "Succeeded", - "documentEndpoint": "https://databaseaccountmongodb.documents.azure.com:443/", - "mongoEndpoint": "https://databaseaccountmongodb.mongo.cosmos.azure.com:443/", - "publicNetworkAccess": "Enabled", - "enableAutomaticFailover": false, - "enableMultipleWriteLocations": false, - "enablePartitionKeyMonitor": false, - "isVirtualNetworkFilterEnabled": false, - "virtualNetworkRules": [], - "EnabledApiTypes": "MongoDB", - "disableKeyBasedMetadataWriteAccess": false, - "enableFreeTier": false, - "enableAnalyticalStorage": false, - "analyticalStorageConfiguration": { - "schemaType": "FullFidelity" - }, - "instanceId": "00000000-0000-0000-0000-000000000000", - "databaseAccountOfferType": "Standard", - "defaultIdentity": "FirstPartyIdentity", - "networkAclBypass": "None", - "disableLocalAuth": false, - "consistencyPolicy": { - "defaultConsistencyLevel": "Session", - "maxIntervalInSeconds": 5, - "maxStalenessPrefix": 100 - }, - "apiProperties": { - "serverVersion": "3.6" - }, - "configurationOverrides": { - "EnableBsonSchema": "True" - }, - "writeLocations": [ - { - "id": "databaseaccountmongodb-eastus", - "locationName": "East US", - "documentEndpoint": "https://databaseaccountmongodb-eastus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 0, - "isZoneRedundant": false - } - ], - "readLocations": [ - { - "id": "databaseaccountmongodb-eastus", - "locationName": "East US", - "documentEndpoint": "https://databaseaccountmongodb-eastus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 0, - "isZoneRedundant": false - } - ], - "locations": [ - { - "id": "databaseaccountmongodb-eastus", - "locationName": "East US", - "documentEndpoint": "https://databaseaccountmongodb-eastus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 0, - "isZoneRedundant": false - } - ], - "failoverPolicies": [ - { - "id": "databaseaccountmongodb-eastus", - "locationName": "East US", - "failoverPriority": 0 - } - ], - "cors": [], - "capabilities": [ - { - "name": "EnableMongo" - } - ], - "ipRules": [], - "backupPolicy": { - "type": "Periodic", - "periodicModeProperties": { - "backupIntervalInMinutes": 240, - "backupRetentionIntervalInHours": 8, - "backupStorageRedundancy": "Geo" - } - }, - "networkAclBypassResourceIds": [] - }, - "identity": { - "type": "None" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb?api-version=2022-11-15", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "113", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": { - "location": "westus", - "properties": { - "options": { - "throughput": 2000 - }, - "resource": { - "id": "scenario_mongodb" - } - }, - "tags": {} - }, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Cache-Control": "no-store, no-cache", - "Content-Length": "21", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:59:32 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-writes": "1182", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T065933Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 06:59:33 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11835", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T065934Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 07:00:04 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11834", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T070004Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 07:00:06 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11833", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T070006Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb", - "type": "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases", - "name": "scenario_mongodb", - "properties": { - "resource": { - "id": "scenario_mongodb" - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 07:00:07 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11832", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T070007Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb", - "type": "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases", - "name": "scenario_mongodb", - "properties": { - "resource": { - "id": "scenario_mongodb" - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 07:00:09 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11831", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T070009Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb", - "type": "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases", - "name": "scenario_mongodb", - "properties": { - "resource": { - "id": "scenario_mongodb" - } - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/throughputSettings/default?api-version=2022-11-15", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "76", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": { - "location": "westus", - "properties": { - "resource": { - "throughput": 400 - } - }, - "tags": {} - }, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Cache-Control": "no-store, no-cache", - "Content-Length": "21", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 07:00:10 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/throughputSettings/default/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-writes": "1181", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T070010Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 07:00:11 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11830", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T070011Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 07:00:41 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11829", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T070041Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/throughputSettings/default?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 07:00:42 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11828", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T070042Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/throughputSettings/default", - "type": "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/throughputSettings", - "name": "THl5", - "properties": { - "resource": { - "throughput": 400, - "minimumThroughput": "400" - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/throughputSettings/default?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 07:00:43 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11827", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T070043Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/throughputSettings/default", - "type": "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/throughputSettings", - "name": "THl5", - "properties": { - "resource": { - "throughput": 400, - "minimumThroughput": "400" - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/throughputSettings/default/migrateToAutoscale?api-version=2022-11-15", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Cache-Control": "no-store, no-cache", - "Content-Length": "21", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 07:00:44 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/throughputSettings/default/migrateToAutoscale/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-writes": "1185", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T070044Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 07:00:44 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11826", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T070044Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 07:01:15 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11825", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T070115Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/throughputSettings/default/migrateToAutoscale/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 07:01:16 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11824", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T070116Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/throughputSettings/default/migrateToAutoscale", - "type": "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/throughputSettings/migrateToAutoscale", - "name": "THl5", - "properties": { - "resource": { - "throughput": 100, - "autoscaleSettings": { - "maxThroughput": 1000 - }, - "minimumThroughput": "1000" - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/throughputSettings/default/migrateToManualThroughput?api-version=2022-11-15", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Cache-Control": "no-store, no-cache", - "Content-Length": "21", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 07:01:17 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/throughputSettings/default/migrateToManualThroughput/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-writes": "1184", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T070117Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 07:01:17 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11823", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T070118Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 07:01:48 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11822", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T070148Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/throughputSettings/default/migrateToManualThroughput/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 07:01:49 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11821", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T070149Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/throughputSettings/default/migrateToManualThroughput", - "type": "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/throughputSettings/migrateToManualThroughput", - "name": "THl5", - "properties": { - "resource": { - "throughput": 1000, - "minimumThroughput": "400" - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/collections/mongodb_collection?api-version=2022-11-15", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "145", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": { - "location": "westus", - "properties": { - "options": { - "throughput": 2000 - }, - "resource": { - "id": "mongodb_collection", - "shardKey": { - "testKey": "Hash" - } - } - }, - "tags": {} - }, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Cache-Control": "no-store, no-cache", - "Content-Length": "21", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 07:01:51 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/collections/mongodb_collection/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-writes": "1180", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T070151Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 07:01:51 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11820", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T070152Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 07:02:21 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11819", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T070222Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/collections/mongodb_collection?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 07:02:23 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11818", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T070224Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/collections/mongodb_collection", - "type": "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/collections", - "name": "mongodb_collection", - "properties": { - "resource": { - "id": "mongodb_collection", - "shardKey": { - "testKey": "Hash" - }, - "indexes": [ - { - "key": { - "keys": [ - "_id" - ] - } - } - ] - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/collections/mongodb_collection?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 07:02:24 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11817", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T070225Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/collections/mongodb_collection", - "type": "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/collections", - "name": "mongodb_collection", - "properties": { - "resource": { - "id": "mongodb_collection", - "shardKey": { - "testKey": "Hash" - }, - "indexes": [ - { - "key": { - "keys": [ - "_id" - ] - } - } - ] - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/collections?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 07:02:25 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11816", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T070226Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/collections/mongodb_collection", - "type": "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/collections", - "name": "mongodb_collection", - "properties": { - "resource": { - "id": "mongodb_collection", - "shardKey": { - "testKey": "Hash" - }, - "indexes": [ - { - "key": { - "keys": [ - "_id" - ] - } - } - ] - } - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/collections/mongodb_collection/throughputSettings/default?api-version=2022-11-15", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "76", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": { - "location": "westus", - "properties": { - "resource": { - "throughput": 400 - } - }, - "tags": {} - }, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Cache-Control": "no-store, no-cache", - "Content-Length": "21", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 07:02:27 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/collections/mongodb_collection/throughputSettings/default/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-writes": "1179", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T070228Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 07:02:27 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11815", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T070228Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 07:02:59 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11814", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T070259Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/collections/mongodb_collection/throughputSettings/default?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 07:03:00 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11813", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T070300Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/collections/mongodb_collection/throughputSettings/default", - "type": "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/collections/throughputSettings", - "name": "LLcp", - "properties": { - "resource": { - "throughput": 400, - "minimumThroughput": "400" - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/collections/mongodb_collection/throughputSettings/default?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 07:03:01 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11812", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T070301Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/collections/mongodb_collection/throughputSettings/default", - "type": "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/collections/throughputSettings", - "name": "LLcp", - "properties": { - "resource": { - "throughput": 400, - "minimumThroughput": "400" - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/collections/mongodb_collection/throughputSettings/default/migrateToAutoscale?api-version=2022-11-15", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Cache-Control": "no-store, no-cache", - "Content-Length": "21", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 07:03:02 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/collections/mongodb_collection/throughputSettings/default/migrateToAutoscale/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-writes": "1183", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T070302Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 07:03:02 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11811", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T070302Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 07:03:33 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11810", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T070333Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/collections/mongodb_collection/throughputSettings/default/migrateToAutoscale/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 07:03:34 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11809", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T070334Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/collections/mongodb_collection/throughputSettings/default/migrateToAutoscale", - "type": "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/collections/throughputSettings/migrateToAutoscale", - "name": "LLcp", - "properties": { - "resource": { - "throughput": 100, - "autoscaleSettings": { - "maxThroughput": 1000 - }, - "minimumThroughput": "1000" - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/collections/mongodb_collection/throughputSettings/default/migrateToManualThroughput?api-version=2022-11-15", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Cache-Control": "no-store, no-cache", - "Content-Length": "21", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 07:03:36 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/collections/mongodb_collection/throughputSettings/default/migrateToManualThroughput/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-writes": "1182", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T070337Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 07:03:37 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11808", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T070337Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 07:04:07 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11807", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T070408Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/collections/mongodb_collection/throughputSettings/default/migrateToManualThroughput/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 07:04:08 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11806", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T070408Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/collections/mongodb_collection/throughputSettings/default/migrateToManualThroughput", - "type": "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/collections/throughputSettings/migrateToManualThroughput", - "name": "LLcp", - "properties": { - "resource": { - "throughput": 1000, - "minimumThroughput": "400" - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/collections/mongodb_collection?api-version=2022-11-15", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Cache-Control": "no-store, no-cache", - "Content-Length": "21", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 07:04:09 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/collections/mongodb_collection/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-deletes": "14992", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T070410Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 07:04:10 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11805", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T070410Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 07:04:40 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11804", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T070441Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb?api-version=2022-11-15", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Cache-Control": "no-store, no-cache", - "Content-Length": "21", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 07:04:41 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountmongodb/mongodbDatabases/scenario_mongodb/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-deletes": "14991", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T070442Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 07:04:41 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11803", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T070442Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 07:05:12 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11802", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T070512Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 29 Aug 2022 07:05:14 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQyNjQtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14990", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T070515Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": { - "recordingRandomSeed": "1661753214" - } -} diff --git a/sdk/resourcemanager/cosmos/armcosmos/testdata/recordings/TestPrivateendpointconnectionsTestSuite.json b/sdk/resourcemanager/cosmos/armcosmos/testdata/recordings/TestPrivateendpointconnectionsTestSuite.json deleted file mode 100644 index d586597a9bb4..000000000000 --- a/sdk/resourcemanager/cosmos/armcosmos/testdata/recordings/TestPrivateendpointconnectionsTestSuite.json +++ /dev/null @@ -1,1974 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": { - "location": "westus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 29 Aug 2022 07:33:45 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1196", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T073346Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "westus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountpec2?api-version=2022-11-15", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "182", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": { - "location": "westus", - "properties": { - "createMode": "Default", - "databaseAccountOfferType": "Standard", - "locations": [ - { - "failoverPriority": 0, - "isZoneRedundant": false, - "locationName": "eastus" - } - ] - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 07:33:54 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountpec2/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-writes": "1195", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T073354Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountpec2", - "name": "databaseaccountpec2", - "location": "West US", - "type": "Microsoft.DocumentDB/databaseAccounts", - "kind": "GlobalDocumentDB", - "tags": {}, - "systemData": { - "createdAt": "2022-08-29T07:33:51.75881Z" - }, - "properties": { - "provisioningState": "Creating", - "publicNetworkAccess": "Enabled", - "enableAutomaticFailover": false, - "enableMultipleWriteLocations": false, - "enablePartitionKeyMonitor": false, - "isVirtualNetworkFilterEnabled": false, - "virtualNetworkRules": [], - "EnabledApiTypes": "Sql", - "disableKeyBasedMetadataWriteAccess": false, - "enableFreeTier": false, - "enableAnalyticalStorage": false, - "analyticalStorageConfiguration": { - "schemaType": "WellDefined" - }, - "instanceId": "00000000-0000-0000-0000-000000000000", - "databaseAccountOfferType": "Standard", - "defaultIdentity": "", - "networkAclBypass": "None", - "disableLocalAuth": false, - "consistencyPolicy": { - "defaultConsistencyLevel": "Session", - "maxIntervalInSeconds": 5, - "maxStalenessPrefix": 100 - }, - "configurationOverrides": {}, - "writeLocations": [ - { - "id": "databaseaccountpec2-eastus", - "locationName": "East US", - "provisioningState": "Creating", - "failoverPriority": 0, - "isZoneRedundant": false - } - ], - "readLocations": [ - { - "id": "databaseaccountpec2-eastus", - "locationName": "East US", - "provisioningState": "Creating", - "failoverPriority": 0, - "isZoneRedundant": false - } - ], - "locations": [ - { - "id": "databaseaccountpec2-eastus", - "locationName": "East US", - "provisioningState": "Creating", - "failoverPriority": 0, - "isZoneRedundant": false - } - ], - "failoverPolicies": [ - { - "id": "databaseaccountpec2-eastus", - "locationName": "East US", - "failoverPriority": 0 - } - ], - "cors": [], - "capabilities": [], - "ipRules": [], - "backupPolicy": { - "type": "Periodic", - "periodicModeProperties": { - "backupIntervalInMinutes": 240, - "backupRetentionIntervalInHours": 8, - "backupStorageRedundancy": "Invalid" - } - }, - "networkAclBypassResourceIds": [] - }, - "identity": { - "type": "None" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 07:33:54 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11992", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T073355Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 07:34:25 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11991", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T073425Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 07:34:55 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11990", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T073455Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 07:35:25 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11989", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T073526Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 07:35:56 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11988", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T073557Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 07:36:26 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11987", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T073627Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountpec2?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 07:36:27 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11986", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T073627Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountpec2", - "name": "databaseaccountpec2", - "location": "West US", - "type": "Microsoft.DocumentDB/databaseAccounts", - "kind": "GlobalDocumentDB", - "tags": {}, - "systemData": { - "createdAt": "2022-08-29T07:35:40.4421005Z" - }, - "properties": { - "provisioningState": "Succeeded", - "documentEndpoint": "https://databaseaccountpec2.documents.azure.com:443/", - "publicNetworkAccess": "Enabled", - "enableAutomaticFailover": false, - "enableMultipleWriteLocations": false, - "enablePartitionKeyMonitor": false, - "isVirtualNetworkFilterEnabled": false, - "virtualNetworkRules": [], - "EnabledApiTypes": "Sql", - "disableKeyBasedMetadataWriteAccess": false, - "enableFreeTier": false, - "enableAnalyticalStorage": false, - "analyticalStorageConfiguration": { - "schemaType": "WellDefined" - }, - "instanceId": "00000000-0000-0000-0000-000000000000", - "databaseAccountOfferType": "Standard", - "defaultIdentity": "FirstPartyIdentity", - "networkAclBypass": "None", - "disableLocalAuth": false, - "consistencyPolicy": { - "defaultConsistencyLevel": "Session", - "maxIntervalInSeconds": 5, - "maxStalenessPrefix": 100 - }, - "configurationOverrides": {}, - "writeLocations": [ - { - "id": "databaseaccountpec2-eastus", - "locationName": "East US", - "documentEndpoint": "https://databaseaccountpec2-eastus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 0, - "isZoneRedundant": false - } - ], - "readLocations": [ - { - "id": "databaseaccountpec2-eastus", - "locationName": "East US", - "documentEndpoint": "https://databaseaccountpec2-eastus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 0, - "isZoneRedundant": false - } - ], - "locations": [ - { - "id": "databaseaccountpec2-eastus", - "locationName": "East US", - "documentEndpoint": "https://databaseaccountpec2-eastus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 0, - "isZoneRedundant": false - } - ], - "failoverPolicies": [ - { - "id": "databaseaccountpec2-eastus", - "locationName": "East US", - "failoverPriority": 0 - } - ], - "cors": [], - "capabilities": [], - "ipRules": [], - "backupPolicy": { - "type": "Periodic", - "periodicModeProperties": { - "backupIntervalInMinutes": 240, - "backupRetentionIntervalInHours": 8, - "backupStorageRedundancy": "Geo" - } - }, - "networkAclBypassResourceIds": [] - }, - "identity": { - "type": "None" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/PrivateEndpoint_Create?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "3193", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": { - "properties": { - "mode": "Incremental", - "parameters": { - "cosmosAccountId": { - "value": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountpec2" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "outputs": { - "privateEndpointConnectionName": { - "type": "string", - "value": "[parameters(\u0027privateEndpointName\u0027)]" - }, - "privateEndpointId": { - "type": "string", - "value": "[resourceId(\u0027Microsoft.Network/privateEndpoints\u0027, parameters(\u0027privateEndpointName\u0027))]" - } - }, - "parameters": { - "cosmosAccountId": { - "defaultValue": "$(cosmosAccountId)", - "type": "string" - }, - "networkInterfaceName": { - "defaultValue": "endpointk8s1-nic", - "type": "string" - }, - "privateEndpointName": { - "defaultValue": "endpointk8s1", - "type": "string" - }, - "virtualNetworksName": { - "defaultValue": "k8svnet1", - "type": "string" - } - }, - "resources": [ - { - "apiVersion": "2020-11-01", - "location": "eastus", - "name": "[parameters(\u0027virtualNetworksName\u0027)]", - "properties": { - "addressSpace": { - "addressPrefixes": [ - "10.0.0.0/16" - ] - }, - "enableDdosProtection": false, - "subnets": [ - { - "name": "default", - "properties": { - "addressPrefix": "10.0.0.0/24", - "delegations": [], - "privateEndpointNetworkPolicies": "Disabled", - "privateLinkServiceNetworkPolicies": "Enabled" - } - } - ], - "virtualNetworkPeerings": [] - }, - "type": "Microsoft.Network/virtualNetworks" - }, - { - "apiVersion": "2020-11-01", - "dependsOn": [ - "[resourceId(\u0027Microsoft.Network/virtualNetworks/subnets\u0027, parameters(\u0027virtualNetworksName\u0027), \u0027default\u0027)]" - ], - "location": "eastus", - "name": "[parameters(\u0027networkInterfaceName\u0027)]", - "properties": { - "dnsSettings": { - "dnsServers": [] - }, - "enableIPForwarding": false, - "ipConfigurations": [ - { - "name": "privateEndpointIpConfig.00000000-0000-0000-0000-000000000000", - "properties": { - "primary": true, - "privateIPAddress": "10.0.0.4", - "privateIPAddressVersion": "IPv4", - "privateIPAllocationMethod": "Dynamic", - "subnet": { - "id": "[resourceId(\u0027Microsoft.Network/virtualNetworks/subnets\u0027, parameters(\u0027virtualNetworksName\u0027), \u0027default\u0027)]" - } - } - } - ] - }, - "type": "Microsoft.Network/networkInterfaces" - }, - { - "apiVersion": "2020-11-01", - "dependsOn": [ - "[resourceId(\u0027Microsoft.Network/virtualNetworks/subnets\u0027, parameters(\u0027virtualNetworksName\u0027), \u0027default\u0027)]" - ], - "location": "eastus", - "name": "[parameters(\u0027privateEndpointName\u0027)]", - "properties": { - "customDnsConfigs": [], - "manualPrivateLinkServiceConnections": [], - "privateLinkServiceConnections": [ - { - "name": "[parameters(\u0027privateEndpointName\u0027)]", - "properties": { - "groupIds": [ - "Sql" - ], - "privateLinkServiceConnectionState": { - "actionsRequired": "None", - "description": "Auto-Approved", - "status": "Approved" - }, - "privateLinkServiceId": "[parameters(\u0027cosmosAccountId\u0027)]" - } - } - ], - "subnet": { - "id": "[resourceId(\u0027Microsoft.Network/virtualNetworks/subnets\u0027, parameters(\u0027virtualNetworksName\u0027), \u0027default\u0027)]" - } - }, - "type": "Microsoft.Network/privateEndpoints" - }, - { - "apiVersion": "2020-11-01", - "dependsOn": [ - "[resourceId(\u0027Microsoft.Network/virtualNetworks\u0027, parameters(\u0027virtualNetworksName\u0027))]" - ], - "name": "[concat(parameters(\u0027virtualNetworksName\u0027), \u0027/default\u0027)]", - "properties": { - "addressPrefix": "10.0.0.0/24", - "delegations": [], - "privateEndpointNetworkPolicies": "Disabled", - "privateLinkServiceNetworkPolicies": "Enabled" - }, - "type": "Microsoft.Network/virtualNetworks/subnets" - } - ], - "variables": {} - } - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/PrivateEndpoint_Create/operationStatuses/08585398482961582799?api-version=2021-04-01", - "Cache-Control": "no-cache", - "Content-Length": "2673", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 29 Aug 2022 07:36:32 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1194", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T073633Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/PrivateEndpoint_Create", - "name": "PrivateEndpoint_Create", - "type": "Microsoft.Resources/deployments", - "properties": { - "templateHash": "3082805703586576772", - "parameters": { - "cosmosAccountId": { - "type": "String", - "value": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountpec2" - }, - "networkInterfaceName": { - "type": "String", - "value": "endpointk8s1-nic" - }, - "privateEndpointName": { - "type": "String", - "value": "endpointk8s1" - }, - "virtualNetworksName": { - "type": "String", - "value": "k8svnet1" - } - }, - "mode": "Incremental", - "provisioningState": "Accepted", - "timestamp": "2022-08-29T07:36:32.1137417Z", - "duration": "PT0.0006968S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Network", - "resourceTypes": [ - { - "resourceType": "virtualNetworks", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "networkInterfaces", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "privateEndpoints", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "virtualNetworks/subnets", - "locations": [ - null - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/k8svnet1/subnets/default", - "resourceType": "Microsoft.Network/virtualNetworks/subnets", - "resourceName": "k8svnet1/default" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/networkInterfaces/endpointk8s1-nic", - "resourceType": "Microsoft.Network/networkInterfaces", - "resourceName": "endpointk8s1-nic" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/k8svnet1/subnets/default", - "resourceType": "Microsoft.Network/virtualNetworks/subnets", - "resourceName": "k8svnet1/default" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateEndpoints/endpointk8s1", - "resourceType": "Microsoft.Network/privateEndpoints", - "resourceName": "endpointk8s1" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/k8svnet1", - "resourceType": "Microsoft.Network/virtualNetworks", - "resourceName": "k8svnet1" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/k8svnet1/subnets/default", - "resourceType": "Microsoft.Network/virtualNetworks/subnets", - "resourceName": "k8svnet1/default" - } - ] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/PrivateEndpoint_Create/operationStatuses/08585398482961582799?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "20", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 29 Aug 2022 07:36:33 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11985", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T073633Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/PrivateEndpoint_Create/operationStatuses/08585398482961582799?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "20", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 29 Aug 2022 07:37:04 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11984", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T073704Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/PrivateEndpoint_Create/operationStatuses/08585398482961582799?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "20", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 29 Aug 2022 07:37:34 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11983", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T073734Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/PrivateEndpoint_Create/operationStatuses/08585398482961582799?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "20", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 29 Aug 2022 07:38:05 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11982", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T073805Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/PrivateEndpoint_Create/operationStatuses/08585398482961582799?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "20", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 29 Aug 2022 07:38:35 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11981", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T073835Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/PrivateEndpoint_Create/operationStatuses/08585398482961582799?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "20", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 29 Aug 2022 07:39:05 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11980", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T073906Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/PrivateEndpoint_Create/operationStatuses/08585398482961582799?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "20", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 29 Aug 2022 07:39:36 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11979", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T073936Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/PrivateEndpoint_Create/operationStatuses/08585398482961582799?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "20", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 29 Aug 2022 07:40:06 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11978", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T074007Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/PrivateEndpoint_Create/operationStatuses/08585398482961582799?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "20", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 29 Aug 2022 07:40:37 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11977", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T074037Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/PrivateEndpoint_Create/operationStatuses/08585398482961582799?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "20", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 29 Aug 2022 07:41:07 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11976", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T074108Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/PrivateEndpoint_Create/operationStatuses/08585398482961582799?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "20", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 29 Aug 2022 07:41:38 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11975", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T074139Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/PrivateEndpoint_Create/operationStatuses/08585398482961582799?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "20", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 29 Aug 2022 07:42:09 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11974", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T074209Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/PrivateEndpoint_Create/operationStatuses/08585398482961582799?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "20", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 29 Aug 2022 07:42:39 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11973", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T074240Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/PrivateEndpoint_Create/operationStatuses/08585398482961582799?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "20", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 29 Aug 2022 07:43:09 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11972", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T074310Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/PrivateEndpoint_Create/operationStatuses/08585398482961582799?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "20", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 29 Aug 2022 07:43:40 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11971", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T074340Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/PrivateEndpoint_Create/operationStatuses/08585398482961582799?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "20", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 29 Aug 2022 07:44:11 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11970", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T074411Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/PrivateEndpoint_Create/operationStatuses/08585398482961582799?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "20", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 29 Aug 2022 07:44:42 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11969", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T074442Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/PrivateEndpoint_Create/operationStatuses/08585398482961582799?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "22", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 29 Aug 2022 07:45:12 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11968", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T074512Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/PrivateEndpoint_Create?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "3577", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 29 Aug 2022 07:45:12 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11967", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T074513Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/PrivateEndpoint_Create", - "name": "PrivateEndpoint_Create", - "type": "Microsoft.Resources/deployments", - "properties": { - "templateHash": "3082805703586576772", - "parameters": { - "cosmosAccountId": { - "type": "String", - "value": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountpec2" - }, - "networkInterfaceName": { - "type": "String", - "value": "endpointk8s1-nic" - }, - "privateEndpointName": { - "type": "String", - "value": "endpointk8s1" - }, - "virtualNetworksName": { - "type": "String", - "value": "k8svnet1" - } - }, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2022-08-29T07:45:03.8736848Z", - "duration": "PT8M31.7606399S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Network", - "resourceTypes": [ - { - "resourceType": "virtualNetworks", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "networkInterfaces", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "privateEndpoints", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "virtualNetworks/subnets", - "locations": [ - null - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/k8svnet1/subnets/default", - "resourceType": "Microsoft.Network/virtualNetworks/subnets", - "resourceName": "k8svnet1/default" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/networkInterfaces/endpointk8s1-nic", - "resourceType": "Microsoft.Network/networkInterfaces", - "resourceName": "endpointk8s1-nic" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/k8svnet1/subnets/default", - "resourceType": "Microsoft.Network/virtualNetworks/subnets", - "resourceName": "k8svnet1/default" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateEndpoints/endpointk8s1", - "resourceType": "Microsoft.Network/privateEndpoints", - "resourceName": "endpointk8s1" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/k8svnet1", - "resourceType": "Microsoft.Network/virtualNetworks", - "resourceName": "k8svnet1" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/k8svnet1/subnets/default", - "resourceType": "Microsoft.Network/virtualNetworks/subnets", - "resourceName": "k8svnet1/default" - } - ], - "outputs": { - "privateEndpointConnectionName": { - "type": "String", - "value": "endpointk8s1" - }, - "privateEndpointId": { - "type": "String", - "value": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateEndpoints/endpointk8s1" - } - }, - "outputResources": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/networkInterfaces/endpointk8s1-nic" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateEndpoints/endpointk8s1" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/k8svnet1" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/k8svnet1/subnets/default" - } - ] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountpec2/privateEndpointConnections/endpointk8s1?api-version=2022-11-15", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "337", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": { - "properties": { - "groupId": "Sql", - "privateEndpoint": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateEndpoints/endpointk8s1" - }, - "privateLinkServiceConnectionState": { - "description": "Approved by johndoe@contoso.com", - "status": "Approved" - }, - "provisioningState": "Succeeded" - } - }, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Cache-Control": "no-store, no-cache", - "Content-Length": "21", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 07:45:15 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountpec2/privateEndpointConnections/endpointk8s1/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-writes": "1193", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T074515Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 07:45:15 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11966", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T074515Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 07:45:45 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11965", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T074546Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountpec2/privateEndpointConnections/endpointk8s1?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 07:45:46 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11964", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T074546Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "endpointk8s1", - "type": "Microsoft.DocumentDB/databaseAccounts/privateEndpointConnections", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountpec2/privateEndpointConnections/endpointk8s1", - "properties": { - "provisioningState": "Succeeded", - "groupId": "Sql", - "privateEndpoint": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateEndpoints/endpointk8s1" - }, - "privateLinkServiceConnectionState": { - "status": "Approved", - "description": "Approved by johndoe@contoso.com", - "actionsRequired": "None" - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountpec2/privateEndpointConnections/endpointk8s1?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 07:45:46 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11963", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T074547Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "endpointk8s1", - "type": "Microsoft.DocumentDB/databaseAccounts/privateEndpointConnections", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountpec2/privateEndpointConnections/endpointk8s1", - "properties": { - "provisioningState": "Succeeded", - "groupId": "Sql", - "privateEndpoint": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateEndpoints/endpointk8s1" - }, - "privateLinkServiceConnectionState": { - "status": "Approved", - "description": "Approved by johndoe@contoso.com", - "actionsRequired": "None" - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountpec2/privateEndpointConnections?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 07:45:46 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11962", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T074547Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "name": "endpointk8s1", - "type": "Microsoft.DocumentDB/databaseAccounts/privateEndpointConnections", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountpec2/privateEndpointConnections/endpointk8s1", - "properties": { - "provisioningState": "Succeeded", - "groupId": "Sql", - "privateEndpoint": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateEndpoints/endpointk8s1" - }, - "privateLinkServiceConnectionState": { - "status": "Approved", - "description": "Approved by johndoe@contoso.com", - "actionsRequired": "None" - } - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountpec2/privateEndpointConnections/endpointk8s1?api-version=2022-11-15", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Cache-Control": "no-store, no-cache", - "Content-Length": "21", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 07:45:47 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountpec2/privateEndpointConnections/endpointk8s1/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-deletes": "14998", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T074548Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 07:45:48 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11961", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T074548Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 07:46:19 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11960", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T074619Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 07:46:49 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11959", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T074649Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 07:47:19 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11958", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T074719Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountpec2/privateLinkResources/sql?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 07:47:19 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11957", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T074720Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountpec2/privateLinkResources/Sql", - "name": "Sql", - "type": "Microsoft.DocumentDB/databaseAccounts/privateLinkResources", - "properties": { - "groupId": "Sql", - "requiredMembers": [ - "databaseaccountpec2-eastus", - "databaseaccountpec2" - ], - "requiredZoneNames": [ - "privatelink.documents.azure.com" - ] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountpec2/privateLinkResources?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 07:47:20 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11956", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T074720Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountpec2/privateLinkResources/Sql", - "name": "Sql", - "type": "Microsoft.DocumentDB/databaseAccounts/privateLinkResources", - "properties": { - "groupId": "Sql", - "requiredMembers": [ - "databaseaccountpec2-eastus", - "databaseaccountpec2" - ], - "requiredZoneNames": [ - "privatelink.documents.azure.com" - ] - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 29 Aug 2022 07:47:22 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ4OTMtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14997", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T074723Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": { - "recordingRandomSeed": "0" - } -} diff --git a/sdk/resourcemanager/cosmos/armcosmos/testdata/recordings/TestServiceTestSuite.json b/sdk/resourcemanager/cosmos/armcosmos/testdata/recordings/TestServiceTestSuite.json deleted file mode 100644 index ffacebc061db..000000000000 --- a/sdk/resourcemanager/cosmos/armcosmos/testdata/recordings/TestServiceTestSuite.json +++ /dev/null @@ -1,1326 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": { - "location": "westus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 29 Aug 2022 08:14:01 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1196", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T081401Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "westus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountservice2?api-version=2022-11-15", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "182", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": { - "location": "westus", - "properties": { - "createMode": "Default", - "databaseAccountOfferType": "Standard", - "locations": [ - { - "failoverPriority": 0, - "isZoneRedundant": false, - "locationName": "eastus" - } - ] - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:14:09 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountservice2/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-writes": "1195", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T081410Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountservice2", - "name": "databaseaccountservice2", - "location": "West US", - "type": "Microsoft.DocumentDB/databaseAccounts", - "kind": "GlobalDocumentDB", - "tags": {}, - "systemData": { - "createdAt": "2022-08-29T08:14:06.8374442Z" - }, - "properties": { - "provisioningState": "Creating", - "publicNetworkAccess": "Enabled", - "enableAutomaticFailover": false, - "enableMultipleWriteLocations": false, - "enablePartitionKeyMonitor": false, - "isVirtualNetworkFilterEnabled": false, - "virtualNetworkRules": [], - "EnabledApiTypes": "Sql", - "disableKeyBasedMetadataWriteAccess": false, - "enableFreeTier": false, - "enableAnalyticalStorage": false, - "analyticalStorageConfiguration": { - "schemaType": "WellDefined" - }, - "instanceId": "00000000-0000-0000-0000-000000000000", - "databaseAccountOfferType": "Standard", - "defaultIdentity": "", - "networkAclBypass": "None", - "disableLocalAuth": false, - "consistencyPolicy": { - "defaultConsistencyLevel": "Session", - "maxIntervalInSeconds": 5, - "maxStalenessPrefix": 100 - }, - "configurationOverrides": {}, - "writeLocations": [ - { - "id": "databaseaccountservice2-eastus", - "locationName": "East US", - "provisioningState": "Creating", - "failoverPriority": 0, - "isZoneRedundant": false - } - ], - "readLocations": [ - { - "id": "databaseaccountservice2-eastus", - "locationName": "East US", - "provisioningState": "Creating", - "failoverPriority": 0, - "isZoneRedundant": false - } - ], - "locations": [ - { - "id": "databaseaccountservice2-eastus", - "locationName": "East US", - "provisioningState": "Creating", - "failoverPriority": 0, - "isZoneRedundant": false - } - ], - "failoverPolicies": [ - { - "id": "databaseaccountservice2-eastus", - "locationName": "East US", - "failoverPriority": 0 - } - ], - "cors": [], - "capabilities": [], - "ipRules": [], - "backupPolicy": { - "type": "Periodic", - "periodicModeProperties": { - "backupIntervalInMinutes": 240, - "backupRetentionIntervalInHours": 8, - "backupStorageRedundancy": "Invalid" - } - }, - "networkAclBypassResourceIds": [] - }, - "identity": { - "type": "None" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:14:10 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11993", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T081410Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:14:40 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11992", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T081441Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:15:12 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11991", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T081512Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:15:42 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11990", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T081542Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:16:13 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11989", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T081613Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountservice2?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:16:14 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11988", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T081614Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountservice2", - "name": "databaseaccountservice2", - "location": "West US", - "type": "Microsoft.DocumentDB/databaseAccounts", - "kind": "GlobalDocumentDB", - "tags": {}, - "systemData": { - "createdAt": "2022-08-29T08:15:52.5465374Z" - }, - "properties": { - "provisioningState": "Succeeded", - "documentEndpoint": "https://databaseaccountservice2.documents.azure.com:443/", - "publicNetworkAccess": "Enabled", - "enableAutomaticFailover": false, - "enableMultipleWriteLocations": false, - "enablePartitionKeyMonitor": false, - "isVirtualNetworkFilterEnabled": false, - "virtualNetworkRules": [], - "EnabledApiTypes": "Sql", - "disableKeyBasedMetadataWriteAccess": false, - "enableFreeTier": false, - "enableAnalyticalStorage": false, - "analyticalStorageConfiguration": { - "schemaType": "WellDefined" - }, - "instanceId": "00000000-0000-0000-0000-000000000000", - "databaseAccountOfferType": "Standard", - "defaultIdentity": "FirstPartyIdentity", - "networkAclBypass": "None", - "disableLocalAuth": false, - "consistencyPolicy": { - "defaultConsistencyLevel": "Session", - "maxIntervalInSeconds": 5, - "maxStalenessPrefix": 100 - }, - "configurationOverrides": {}, - "writeLocations": [ - { - "id": "databaseaccountservice2-eastus", - "locationName": "East US", - "documentEndpoint": "https://databaseaccountservice2-eastus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 0, - "isZoneRedundant": false - } - ], - "readLocations": [ - { - "id": "databaseaccountservice2-eastus", - "locationName": "East US", - "documentEndpoint": "https://databaseaccountservice2-eastus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 0, - "isZoneRedundant": false - } - ], - "locations": [ - { - "id": "databaseaccountservice2-eastus", - "locationName": "East US", - "documentEndpoint": "https://databaseaccountservice2-eastus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 0, - "isZoneRedundant": false - } - ], - "failoverPolicies": [ - { - "id": "databaseaccountservice2-eastus", - "locationName": "East US", - "failoverPriority": 0 - } - ], - "cors": [], - "capabilities": [], - "ipRules": [], - "backupPolicy": { - "type": "Periodic", - "periodicModeProperties": { - "backupIntervalInMinutes": 240, - "backupRetentionIntervalInHours": 8, - "backupStorageRedundancy": "Geo" - } - }, - "networkAclBypassResourceIds": [] - }, - "identity": { - "type": "None" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountservice2/services/SqlDedicatedGateway?api-version=2022-11-15", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "98", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": { - "properties": { - "instanceCount": 1, - "instanceSize": "Cosmos.D4s", - "serviceType": "SqlDedicatedGateway" - } - }, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Cache-Control": "no-store, no-cache", - "Content-Length": "21", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:16:15 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountservice2/services/SqlDedicatedGateway/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-writes": "1194", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T081616Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:16:16 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11987", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T081616Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:16:46 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11986", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T081647Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:17:17 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11985", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T081717Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:17:47 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11984", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T081748Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:18:18 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11983", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T081819Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:18:49 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11982", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T081850Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:19:20 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11981", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T081920Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:19:51 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11980", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T081951Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:20:21 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11979", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T082022Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:20:52 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11978", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T082052Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:21:23 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11977", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T082123Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:21:53 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11976", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T082153Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:22:24 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11975", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T082224Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountservice2/services/SqlDedicatedGateway?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:22:24 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11974", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T082225Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountservice2/services/SqlDedicatedGateway", - "type": "Microsoft.DocumentDB/databaseAccounts/services", - "name": "SqlDedicatedGateway", - "properties": { - "status": "Running", - "creationTime": "2022-08-29T08:16:15.6139095Z", - "instanceSize": "Cosmos.D4s", - "instanceCount": 1, - "sqlDedicatedGatewayEndpoint": "https://databaseaccountservice2.sqlx.cosmos.azure.com/", - "serviceType": "SqlDedicatedGateway", - "locations": [ - { - "name": "SqlDedicatedGateway-eastus", - "location": "East US", - "status": "Running", - "sqlDedicatedGatewayEndpoint": "https://databaseaccountservice2-eastus.sqlx.cosmos.azure.com/" - } - ] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountservice2/services/SqlDedicatedGateway?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:22:25 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11973", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T082225Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountservice2/services/SqlDedicatedGateway", - "type": "Microsoft.DocumentDB/databaseAccounts/services", - "name": "SqlDedicatedGateway", - "properties": { - "status": "Running", - "creationTime": "2022-08-29T08:16:15.6139095Z", - "instanceSize": "Cosmos.D4s", - "instanceCount": 1, - "sqlDedicatedGatewayEndpoint": "https://databaseaccountservice2.sqlx.cosmos.azure.com/", - "serviceType": "SqlDedicatedGateway", - "locations": [ - { - "name": "SqlDedicatedGateway-eastus", - "location": "East US", - "status": "Running", - "sqlDedicatedGatewayEndpoint": "https://databaseaccountservice2-eastus.sqlx.cosmos.azure.com/" - } - ] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountservice2/services?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:22:26 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11972", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T082226Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountservice2/services/SqlDedicatedGateway", - "type": "Microsoft.DocumentDB/databaseAccounts/services", - "name": "SqlDedicatedGateway", - "properties": { - "status": "Running", - "creationTime": "2022-08-29T08:16:15.6139095Z", - "instanceSize": "Cosmos.D4s", - "instanceCount": 1, - "sqlDedicatedGatewayEndpoint": "https://databaseaccountservice2.sqlx.cosmos.azure.com/", - "serviceType": "SqlDedicatedGateway", - "locations": [ - { - "name": "SqlDedicatedGateway-eastus", - "location": "East US", - "status": "Running", - "sqlDedicatedGatewayEndpoint": "https://databaseaccountservice2-eastus.sqlx.cosmos.azure.com/" - } - ] - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountservice2/services/SqlDedicatedGateway?api-version=2022-11-15", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Cache-Control": "no-store, no-cache", - "Content-Length": "21", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:22:27 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountservice2/services/SqlDedicatedGateway/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-deletes": "14998", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T082227Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:22:27 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11971", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T082227Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:22:57 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11970", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T082258Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:23:28 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11969", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T082328Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:23:58 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11968", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T082358Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:24:29 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11967", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T082429Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:24:59 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11966", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T082459Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:25:30 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11965", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T082530Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 29 Aug 2022 08:25:33 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ1NTQtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14997", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T082533Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": { - "recordingRandomSeed": "0" - } -} diff --git a/sdk/resourcemanager/cosmos/armcosmos/testdata/recordings/TestSqlresourcesTestSuite.json b/sdk/resourcemanager/cosmos/armcosmos/testdata/recordings/TestSqlresourcesTestSuite.json deleted file mode 100644 index 85597796dca0..000000000000 --- a/sdk/resourcemanager/cosmos/armcosmos/testdata/recordings/TestSqlresourcesTestSuite.json +++ /dev/null @@ -1,3248 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": { - "location": "westus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 29 Aug 2022 08:25:36 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1193", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T082536Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "westus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2?api-version=2022-11-15", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "182", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": { - "location": "westus", - "properties": { - "createMode": "Default", - "databaseAccountOfferType": "Standard", - "locations": [ - { - "failoverPriority": 0, - "isZoneRedundant": false, - "locationName": "eastus" - } - ] - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:25:45 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-writes": "1192", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T082545Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2", - "name": "databaseaccountsql2", - "location": "West US", - "type": "Microsoft.DocumentDB/databaseAccounts", - "kind": "GlobalDocumentDB", - "tags": {}, - "systemData": { - "createdAt": "2022-08-29T08:25:42.3610073Z" - }, - "properties": { - "provisioningState": "Creating", - "publicNetworkAccess": "Enabled", - "enableAutomaticFailover": false, - "enableMultipleWriteLocations": false, - "enablePartitionKeyMonitor": false, - "isVirtualNetworkFilterEnabled": false, - "virtualNetworkRules": [], - "EnabledApiTypes": "Sql", - "disableKeyBasedMetadataWriteAccess": false, - "enableFreeTier": false, - "enableAnalyticalStorage": false, - "analyticalStorageConfiguration": { - "schemaType": "WellDefined" - }, - "instanceId": "00000000-0000-0000-0000-000000000000", - "databaseAccountOfferType": "Standard", - "defaultIdentity": "", - "networkAclBypass": "None", - "disableLocalAuth": false, - "consistencyPolicy": { - "defaultConsistencyLevel": "Session", - "maxIntervalInSeconds": 5, - "maxStalenessPrefix": 100 - }, - "configurationOverrides": {}, - "writeLocations": [ - { - "id": "databaseaccountsql2-eastus", - "locationName": "East US", - "provisioningState": "Creating", - "failoverPriority": 0, - "isZoneRedundant": false - } - ], - "readLocations": [ - { - "id": "databaseaccountsql2-eastus", - "locationName": "East US", - "provisioningState": "Creating", - "failoverPriority": 0, - "isZoneRedundant": false - } - ], - "locations": [ - { - "id": "databaseaccountsql2-eastus", - "locationName": "East US", - "provisioningState": "Creating", - "failoverPriority": 0, - "isZoneRedundant": false - } - ], - "failoverPolicies": [ - { - "id": "databaseaccountsql2-eastus", - "locationName": "East US", - "failoverPriority": 0 - } - ], - "cors": [], - "capabilities": [], - "ipRules": [], - "backupPolicy": { - "type": "Periodic", - "periodicModeProperties": { - "backupIntervalInMinutes": 240, - "backupRetentionIntervalInHours": 8, - "backupStorageRedundancy": "Invalid" - } - }, - "networkAclBypassResourceIds": [] - }, - "identity": { - "type": "None" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:25:45 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11964", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T082546Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:26:16 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11963", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T082616Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:26:46 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11962", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T082647Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:27:16 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11961", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T082717Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:27:47 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11960", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T082748Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:27:48 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11959", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T082748Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2", - "name": "databaseaccountsql2", - "location": "West US", - "type": "Microsoft.DocumentDB/databaseAccounts", - "kind": "GlobalDocumentDB", - "tags": {}, - "systemData": { - "createdAt": "2022-08-29T08:27:27.6369242Z" - }, - "properties": { - "provisioningState": "Succeeded", - "documentEndpoint": "https://databaseaccountsql2.documents.azure.com:443/", - "publicNetworkAccess": "Enabled", - "enableAutomaticFailover": false, - "enableMultipleWriteLocations": false, - "enablePartitionKeyMonitor": false, - "isVirtualNetworkFilterEnabled": false, - "virtualNetworkRules": [], - "EnabledApiTypes": "Sql", - "disableKeyBasedMetadataWriteAccess": false, - "enableFreeTier": false, - "enableAnalyticalStorage": false, - "analyticalStorageConfiguration": { - "schemaType": "WellDefined" - }, - "instanceId": "00000000-0000-0000-0000-000000000000", - "databaseAccountOfferType": "Standard", - "defaultIdentity": "FirstPartyIdentity", - "networkAclBypass": "None", - "disableLocalAuth": false, - "consistencyPolicy": { - "defaultConsistencyLevel": "Session", - "maxIntervalInSeconds": 5, - "maxStalenessPrefix": 100 - }, - "configurationOverrides": {}, - "writeLocations": [ - { - "id": "databaseaccountsql2-eastus", - "locationName": "East US", - "documentEndpoint": "https://databaseaccountsql2-eastus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 0, - "isZoneRedundant": false - } - ], - "readLocations": [ - { - "id": "databaseaccountsql2-eastus", - "locationName": "East US", - "documentEndpoint": "https://databaseaccountsql2-eastus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 0, - "isZoneRedundant": false - } - ], - "locations": [ - { - "id": "databaseaccountsql2-eastus", - "locationName": "East US", - "documentEndpoint": "https://databaseaccountsql2-eastus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 0, - "isZoneRedundant": false - } - ], - "failoverPolicies": [ - { - "id": "databaseaccountsql2-eastus", - "locationName": "East US", - "failoverPriority": 0 - } - ], - "cors": [], - "capabilities": [], - "ipRules": [], - "backupPolicy": { - "type": "Periodic", - "periodicModeProperties": { - "backupIntervalInMinutes": 240, - "backupRetentionIntervalInHours": 8, - "backupStorageRedundancy": "Geo" - } - }, - "networkAclBypassResourceIds": [] - }, - "identity": { - "type": "None" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql?api-version=2022-11-15", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "107", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": { - "location": "westus", - "properties": { - "options": { - "throughput": 2000 - }, - "resource": { - "id": "cosmos_sql" - } - }, - "tags": {} - }, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Cache-Control": "no-store, no-cache", - "Content-Length": "21", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:27:49 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-writes": "1191", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T082749Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:27:49 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11958", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T082750Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:28:20 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11957", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T082820Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:28:21 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11956", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T082821Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql", - "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases", - "name": "cosmos_sql", - "properties": { - "resource": { - "id": "cosmos_sql", - "_rid": "0xRvAA==", - "_self": "dbs/0xRvAA==/", - "_etag": "\u002200000000-0000-0000-0000-000000000000\u0022", - "_colls": "colls/", - "_users": "users/", - "_ts": 1661761679 - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:28:21 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11955", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T082822Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql", - "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases", - "name": "cosmos_sql", - "properties": { - "resource": { - "id": "cosmos_sql", - "_rid": "0xRvAA==", - "_self": "dbs/0xRvAA==/", - "_etag": "\u002200000000-0000-0000-0000-000000000000\u0022", - "_colls": "colls/", - "_users": "users/", - "_ts": 1661761679 - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:28:22 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11954", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T082822Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql", - "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases", - "name": "cosmos_sql", - "properties": { - "resource": { - "id": "cosmos_sql", - "_rid": "0xRvAA==", - "_self": "dbs/0xRvAA==/", - "_etag": "\u002200000000-0000-0000-0000-000000000000\u0022", - "_colls": "colls/", - "_users": "users/", - "_ts": 1661761679 - } - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/throughputSettings/default?api-version=2022-11-15", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "76", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": { - "location": "westus", - "properties": { - "resource": { - "throughput": 400 - } - }, - "tags": {} - }, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Cache-Control": "no-store, no-cache", - "Content-Length": "21", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:28:23 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/throughputSettings/default/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-writes": "1190", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T082824Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:28:24 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11953", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T082824Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:28:54 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11952", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T082855Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/throughputSettings/default?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:28:55 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11951", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T082856Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/throughputSettings/default", - "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/throughputSettings", - "name": "ZsXC", - "properties": { - "resource": { - "throughput": 400, - "minimumThroughput": "400" - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/throughputSettings/default?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:28:56 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11950", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T082857Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/throughputSettings/default", - "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/throughputSettings", - "name": "ZsXC", - "properties": { - "resource": { - "throughput": 400, - "minimumThroughput": "400" - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/throughputSettings/default/migrateToAutoscale?api-version=2022-11-15", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Cache-Control": "no-store, no-cache", - "Content-Length": "21", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:28:57 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/throughputSettings/default/migrateToAutoscale/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T082858Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:28:57 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11949", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T082858Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:29:29 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11948", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T082929Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/throughputSettings/default/migrateToAutoscale/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:29:30 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11947", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T082930Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/throughputSettings/default/migrateToAutoscale", - "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/throughputSettings/migrateToAutoscale", - "name": "ZsXC", - "properties": { - "resource": { - "throughput": 100, - "autoscaleSettings": { - "maxThroughput": 1000 - }, - "minimumThroughput": "1000" - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/throughputSettings/default/migrateToManualThroughput?api-version=2022-11-15", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Cache-Control": "no-store, no-cache", - "Content-Length": "21", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:29:31 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/throughputSettings/default/migrateToManualThroughput/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T082931Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:29:31 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11946", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T082931Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:30:01 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11945", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T083002Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/throughputSettings/default/migrateToManualThroughput/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:30:02 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11944", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T083003Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/throughputSettings/default/migrateToManualThroughput", - "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/throughputSettings/migrateToManualThroughput", - "name": "ZsXC", - "properties": { - "resource": { - "throughput": 1000, - "minimumThroughput": "400" - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer?api-version=2022-11-15", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "550", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": { - "location": "westus", - "properties": { - "options": { - "throughput": 2000 - }, - "resource": { - "conflictResolutionPolicy": { - "conflictResolutionPath": "/path", - "mode": "LastWriterWins" - }, - "id": "cosmos_sqlcontainer", - "indexingPolicy": { - "automatic": true, - "excludedPaths": [], - "includedPaths": [ - { - "indexes": [ - { - "dataType": "String", - "kind": "Range", - "precision": -1 - }, - { - "dataType": "Number", - "kind": "Range", - "precision": -1 - } - ], - "path": "/*" - } - ], - "indexingMode": "consistent" - }, - "partitionKey": { - "kind": "Hash", - "paths": [ - "/AccountNumber" - ] - }, - "uniqueKeyPolicy": { - "uniqueKeys": [ - { - "paths": [ - "/testPath" - ] - } - ] - } - } - }, - "tags": {} - }, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Cache-Control": "no-store, no-cache", - "Content-Length": "21", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:30:03 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-writes": "1189", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T083004Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:30:05 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11943", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T083005Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:30:35 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11942", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T083035Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:30:36 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11941", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T083036Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer", - "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers", - "name": "cosmos_sqlcontainer", - "properties": { - "resource": { - "id": "cosmos_sqlcontainer", - "indexingPolicy": { - "indexingMode": "consistent", - "automatic": true, - "includedPaths": [ - { - "path": "/*" - } - ], - "excludedPaths": [ - { - "path": "/\u0022_etag\u0022/?" - } - ] - }, - "partitionKey": { - "paths": [ - "/AccountNumber" - ], - "kind": "Hash" - }, - "uniqueKeyPolicy": { - "uniqueKeys": [ - { - "paths": [ - "/testPath" - ] - } - ] - }, - "conflictResolutionPolicy": { - "mode": "LastWriterWins", - "conflictResolutionPath": "/path", - "conflictResolutionProcedure": "" - }, - "geospatialConfig": { - "type": "Geography" - }, - "_rid": "0xRvAIxLkJA=", - "_ts": 1661761812, - "_self": "dbs/0xRvAA==/colls/0xRvAIxLkJA=/", - "_etag": "\u002200000000-0000-0000-0000-000000000000\u0022", - "_docs": "docs/", - "_sprocs": "sprocs/", - "_triggers": "triggers/", - "_udfs": "udfs/", - "_conflicts": "conflicts/", - "statistics": [ - { - "id": "0", - "sizeInKB": 0, - "documentCount": 0, - "sampledDistinctPartitionKeyCount": 0, - "partitionKeys": [] - } - ] - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:30:36 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11940", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T083037Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer", - "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers", - "name": "cosmos_sqlcontainer", - "properties": { - "resource": { - "id": "cosmos_sqlcontainer", - "indexingPolicy": { - "indexingMode": "consistent", - "automatic": true, - "includedPaths": [ - { - "path": "/*" - } - ], - "excludedPaths": [ - { - "path": "/\u0022_etag\u0022/?" - } - ] - }, - "partitionKey": { - "paths": [ - "/AccountNumber" - ], - "kind": "Hash" - }, - "uniqueKeyPolicy": { - "uniqueKeys": [ - { - "paths": [ - "/testPath" - ] - } - ] - }, - "conflictResolutionPolicy": { - "mode": "LastWriterWins", - "conflictResolutionPath": "/path", - "conflictResolutionProcedure": "" - }, - "geospatialConfig": { - "type": "Geography" - }, - "_rid": "0xRvAIxLkJA=", - "_ts": 1661761812, - "_self": "dbs/0xRvAA==/colls/0xRvAIxLkJA=/", - "_etag": "\u002200000000-0000-0000-0000-000000000000\u0022", - "_docs": "docs/", - "_sprocs": "sprocs/", - "_triggers": "triggers/", - "_udfs": "udfs/", - "_conflicts": "conflicts/", - "statistics": [ - { - "id": "0", - "sizeInKB": 0, - "documentCount": 0, - "sampledDistinctPartitionKeyCount": 0, - "partitionKeys": [] - } - ] - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:30:37 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11939", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T083038Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer", - "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers", - "name": "cosmos_sqlcontainer", - "properties": { - "resource": { - "id": "cosmos_sqlcontainer", - "indexingPolicy": { - "indexingMode": "consistent", - "automatic": true, - "includedPaths": [ - { - "path": "/*" - } - ], - "excludedPaths": [ - { - "path": "/\u0022_etag\u0022/?" - } - ] - }, - "partitionKey": { - "paths": [ - "/AccountNumber" - ], - "kind": "Hash" - }, - "uniqueKeyPolicy": { - "uniqueKeys": [ - { - "paths": [ - "/testPath" - ] - } - ] - }, - "conflictResolutionPolicy": { - "mode": "LastWriterWins", - "conflictResolutionPath": "/path", - "conflictResolutionProcedure": "" - }, - "geospatialConfig": { - "type": "Geography" - }, - "_rid": "0xRvAIxLkJA=", - "_ts": 1661761812, - "_self": "dbs/0xRvAA==/colls/0xRvAIxLkJA=/", - "_etag": "\u002200000000-0000-0000-0000-000000000000\u0022", - "_docs": "docs/", - "_sprocs": "sprocs/", - "_triggers": "triggers/", - "_udfs": "udfs/", - "_conflicts": "conflicts/" - } - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/throughputSettings/default?api-version=2022-11-15", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "76", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": { - "location": "westus", - "properties": { - "resource": { - "throughput": 400 - } - }, - "tags": {} - }, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Cache-Control": "no-store, no-cache", - "Content-Length": "21", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:30:39 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/throughputSettings/default/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-writes": "1188", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T083039Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:30:39 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11938", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T083040Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:31:10 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11937", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T083111Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/throughputSettings/default?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:31:11 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11936", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T083112Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/throughputSettings/default", - "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/throughputSettings", - "name": "ilQn", - "properties": { - "resource": { - "throughput": 400, - "minimumThroughput": "400" - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/throughputSettings/default?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:31:13 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T083113Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/throughputSettings/default", - "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/throughputSettings", - "name": "ilQn", - "properties": { - "resource": { - "throughput": 400, - "minimumThroughput": "400" - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/throughputSettings/default/migrateToAutoscale?api-version=2022-11-15", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Cache-Control": "no-store, no-cache", - "Content-Length": "21", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:31:14 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/throughputSettings/default/migrateToAutoscale/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-writes": "1197", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T083114Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:31:14 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T083114Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:31:44 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T083144Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/throughputSettings/default/migrateToAutoscale/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:31:45 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T083145Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/throughputSettings/default/migrateToAutoscale", - "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/throughputSettings/migrateToAutoscale", - "name": "ilQn", - "properties": { - "resource": { - "throughput": 100, - "autoscaleSettings": { - "maxThroughput": 1000 - }, - "minimumThroughput": "1000" - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/throughputSettings/default/migrateToManualThroughput?api-version=2022-11-15", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Cache-Control": "no-store, no-cache", - "Content-Length": "21", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:31:46 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/throughputSettings/default/migrateToManualThroughput/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-writes": "1196", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T083147Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:31:46 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T083147Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:32:18 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11930", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T083218Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/throughputSettings/default/migrateToManualThroughput/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:32:18 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11929", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T083218Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/throughputSettings/default/migrateToManualThroughput", - "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/throughputSettings/migrateToManualThroughput", - "name": "ilQn", - "properties": { - "resource": { - "throughput": 1000, - "minimumThroughput": "400" - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/storedProcedures/storedProcedureName?api-version=2022-11-15", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "83", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": { - "properties": { - "options": {}, - "resource": { - "body": "body", - "id": "storedProcedureName" - } - } - }, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Cache-Control": "no-store, no-cache", - "Content-Length": "21", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:32:19 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/storedProcedures/storedProcedureName/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-writes": "1187", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T083219Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:32:20 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11928", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T083220Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:32:49 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11927", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T083250Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/storedProcedures/storedProcedureName?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:32:50 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11926", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T083251Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/storedProcedures/storedProcedureName", - "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/storedProcedures", - "name": "storedProcedureName", - "properties": { - "resource": { - "body": "body", - "id": "storedProcedureName", - "_rid": "0xRvAIxLkJABAAAAAAAAgA==", - "_self": "dbs/0xRvAA==/colls/0xRvAIxLkJA=/sprocs/0xRvAIxLkJABAAAAAAAAgA==/", - "_etag": "\u002200000000-0000-0000-0000-000000000000\u0022", - "_ts": 1661761945 - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/storedProcedures/storedProcedureName?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:32:51 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11925", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T083251Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/storedProcedures/storedProcedureName", - "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/storedProcedures", - "name": "storedProcedureName", - "properties": { - "resource": { - "body": "body", - "id": "storedProcedureName", - "_rid": "0xRvAIxLkJABAAAAAAAAgA==", - "_self": "dbs/0xRvAA==/colls/0xRvAIxLkJA=/sprocs/0xRvAIxLkJABAAAAAAAAgA==/", - "_etag": "\u002200000000-0000-0000-0000-000000000000\u0022", - "_ts": 1661761945 - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/storedProcedures?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:32:51 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11924", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T083252Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/storedProcedures/storedProcedureName", - "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/storedProcedures", - "name": "storedProcedureName", - "properties": { - "resource": { - "body": "body", - "id": "storedProcedureName", - "_rid": "0xRvAIxLkJABAAAAAAAAgA==", - "_self": "dbs/0xRvAA==/colls/0xRvAIxLkJA=/sprocs/0xRvAIxLkJABAAAAAAAAgA==/", - "_etag": "\u002200000000-0000-0000-0000-000000000000\u0022", - "_ts": 1661761945 - } - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/storedProcedures/storedProcedureName?api-version=2022-11-15", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Cache-Control": "no-store, no-cache", - "Content-Length": "21", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:32:52 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/storedProcedures/storedProcedureName/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-deletes": "14996", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T083253Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:32:53 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11923", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T083253Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:33:23 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11922", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T083324Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/userDefinedFunctions/userDefinedFunctionName?api-version=2022-11-15", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "87", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": { - "properties": { - "options": {}, - "resource": { - "body": "body", - "id": "userDefinedFunctionName" - } - } - }, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Cache-Control": "no-store, no-cache", - "Content-Length": "21", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:33:25 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/userDefinedFunctions/userDefinedFunctionName/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-writes": "1186", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T083325Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:33:25 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11921", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T083326Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:33:56 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11920", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T083356Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/userDefinedFunctions/userDefinedFunctionName?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:33:57 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11919", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T083357Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/userDefinedFunctions/userDefinedFunctionName", - "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/userDefinedFunctions", - "name": "userDefinedFunctionName", - "properties": { - "resource": { - "body": "body", - "id": "userDefinedFunctionName", - "_rid": "0xRvAIxLkJABAAAAAAAAYA==", - "_self": "dbs/0xRvAA==/colls/0xRvAIxLkJA=/udfs/0xRvAIxLkJABAAAAAAAAYA==/", - "_etag": "\u002200000000-0000-0000-0000-000000000000\u0022", - "_ts": 1661762013 - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/userDefinedFunctions/userDefinedFunctionName?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:33:57 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11918", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T083357Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/userDefinedFunctions/userDefinedFunctionName", - "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/userDefinedFunctions", - "name": "userDefinedFunctionName", - "properties": { - "resource": { - "body": "body", - "id": "userDefinedFunctionName", - "_rid": "0xRvAIxLkJABAAAAAAAAYA==", - "_self": "dbs/0xRvAA==/colls/0xRvAIxLkJA=/udfs/0xRvAIxLkJABAAAAAAAAYA==/", - "_etag": "\u002200000000-0000-0000-0000-000000000000\u0022", - "_ts": 1661762013 - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/userDefinedFunctions?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:33:58 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11917", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T083358Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/userDefinedFunctions/userDefinedFunctionName", - "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/userDefinedFunctions", - "name": "userDefinedFunctionName", - "properties": { - "resource": { - "body": "body", - "id": "userDefinedFunctionName", - "_rid": "0xRvAIxLkJABAAAAAAAAYA==", - "_self": "dbs/0xRvAA==/colls/0xRvAIxLkJA=/udfs/0xRvAIxLkJABAAAAAAAAYA==/", - "_etag": "\u002200000000-0000-0000-0000-000000000000\u0022", - "_ts": 1661762013 - } - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/userDefinedFunctions/userDefinedFunctionName?api-version=2022-11-15", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Cache-Control": "no-store, no-cache", - "Content-Length": "21", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:33:59 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/userDefinedFunctions/userDefinedFunctionName/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-deletes": "14995", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T083359Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:33:59 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11916", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T083359Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:34:30 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11915", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T083430Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/triggers/triggerName?api-version=2022-11-15", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "120", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": { - "properties": { - "options": {}, - "resource": { - "body": "body", - "id": "triggerName", - "triggerOperation": "All", - "triggerType": "Pre" - } - } - }, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Cache-Control": "no-store, no-cache", - "Content-Length": "21", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:34:30 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/triggers/triggerName/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-writes": "1185", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T083431Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:34:31 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11914", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T083431Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:35:01 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11913", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T083502Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/triggers/triggerName?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:35:01 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11912", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T083502Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/triggers/triggerName", - "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/triggers", - "name": "triggerName", - "properties": { - "resource": { - "body": "body", - "id": "triggerName", - "triggerOperation": "All", - "triggerType": "Pre", - "_rid": "0xRvAIxLkJABAAAAAAAAcA==", - "_self": "dbs/0xRvAA==/colls/0xRvAIxLkJA=/triggers/0xRvAIxLkJABAAAAAAAAcA==/", - "_etag": "\u002200000000-0000-0000-0000-000000000000\u0022", - "_ts": 1661762078 - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/triggers/triggerName?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:35:02 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11911", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T083503Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/triggers/triggerName", - "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/triggers", - "name": "triggerName", - "properties": { - "resource": { - "body": "body", - "id": "triggerName", - "triggerOperation": "All", - "triggerType": "Pre", - "_rid": "0xRvAIxLkJABAAAAAAAAcA==", - "_self": "dbs/0xRvAA==/colls/0xRvAIxLkJA=/triggers/0xRvAIxLkJABAAAAAAAAcA==/", - "_etag": "\u002200000000-0000-0000-0000-000000000000\u0022", - "_ts": 1661762078 - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/triggers?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:35:02 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11910", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T083503Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/triggers/triggerName", - "type": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/triggers", - "name": "triggerName", - "properties": { - "resource": { - "body": "body", - "id": "triggerName", - "triggerOperation": "All", - "triggerType": "Pre", - "_rid": "0xRvAIxLkJABAAAAAAAAcA==", - "_self": "dbs/0xRvAA==/colls/0xRvAIxLkJA=/triggers/0xRvAIxLkJABAAAAAAAAcA==/", - "_etag": "\u002200000000-0000-0000-0000-000000000000\u0022", - "_ts": 1661762078 - } - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/triggers/triggerName?api-version=2022-11-15", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Cache-Control": "no-store, no-cache", - "Content-Length": "21", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:35:03 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/triggers/triggerName/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-deletes": "14994", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T083504Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:35:04 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11909", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T083504Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:35:35 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11908", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T083535Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer?api-version=2022-11-15", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Cache-Control": "no-store, no-cache", - "Content-Length": "21", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:35:36 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/containers/cosmos_sqlcontainer/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-deletes": "14993", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T083536Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:35:36 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11907", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T083536Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:36:06 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11906", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T083607Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql?api-version=2022-11-15", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Cache-Control": "no-store, no-cache", - "Content-Length": "21", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:36:07 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccountsql2/sqlDatabases/cosmos_sql/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-deletes": "14992", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T083608Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:36:07 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11905", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T083608Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:36:39 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11904", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T083639Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 29 Aug 2022 08:36:41 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ0MTEtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14991", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T083641Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": { - "recordingRandomSeed": "0" - } -} diff --git a/sdk/resourcemanager/cosmos/armcosmos/testdata/recordings/TestTableresourcesTestSuite.json b/sdk/resourcemanager/cosmos/armcosmos/testdata/recordings/TestTableresourcesTestSuite.json deleted file mode 100644 index d24b3a8eb2e1..000000000000 --- a/sdk/resourcemanager/cosmos/armcosmos/testdata/recordings/TestTableresourcesTestSuite.json +++ /dev/null @@ -1,1370 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": { - "location": "westus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 29 Aug 2022 07:57:59 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1181", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T075759Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "westus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccounttable?api-version=2022-11-15", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "248", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": { - "kind": "GlobalDocumentDB", - "location": "westus", - "properties": { - "capabilities": [ - { - "name": "EnableTable" - } - ], - "createMode": "Default", - "databaseAccountOfferType": "Standard", - "locations": [ - { - "failoverPriority": 0, - "isZoneRedundant": false, - "locationName": "eastus" - } - ] - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 07:58:08 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccounttable/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-writes": "1180", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T075808Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccounttable", - "name": "databaseaccounttable", - "location": "West US", - "type": "Microsoft.DocumentDB/databaseAccounts", - "kind": "GlobalDocumentDB", - "tags": {}, - "systemData": { - "createdAt": "2022-08-29T07:58:05.4236513Z" - }, - "properties": { - "provisioningState": "Creating", - "publicNetworkAccess": "Enabled", - "enableAutomaticFailover": false, - "enableMultipleWriteLocations": false, - "enablePartitionKeyMonitor": false, - "isVirtualNetworkFilterEnabled": false, - "virtualNetworkRules": [], - "EnabledApiTypes": "Table, Sql", - "disableKeyBasedMetadataWriteAccess": false, - "enableFreeTier": false, - "enableAnalyticalStorage": false, - "analyticalStorageConfiguration": { - "schemaType": "WellDefined" - }, - "instanceId": "00000000-0000-0000-0000-000000000000", - "databaseAccountOfferType": "Standard", - "defaultIdentity": "", - "networkAclBypass": "None", - "disableLocalAuth": false, - "consistencyPolicy": { - "defaultConsistencyLevel": "BoundedStaleness", - "maxIntervalInSeconds": 86400, - "maxStalenessPrefix": 1000000 - }, - "configurationOverrides": {}, - "writeLocations": [ - { - "id": "databaseaccounttable-eastus", - "locationName": "East US", - "provisioningState": "Creating", - "failoverPriority": 0, - "isZoneRedundant": false - } - ], - "readLocations": [ - { - "id": "databaseaccounttable-eastus", - "locationName": "East US", - "provisioningState": "Creating", - "failoverPriority": 0, - "isZoneRedundant": false - } - ], - "locations": [ - { - "id": "databaseaccounttable-eastus", - "locationName": "East US", - "provisioningState": "Creating", - "failoverPriority": 0, - "isZoneRedundant": false - } - ], - "failoverPolicies": [ - { - "id": "databaseaccounttable-eastus", - "locationName": "East US", - "failoverPriority": 0 - } - ], - "cors": [], - "capabilities": [ - { - "name": "EnableTable" - } - ], - "ipRules": [], - "backupPolicy": { - "type": "Periodic", - "periodicModeProperties": { - "backupIntervalInMinutes": 240, - "backupRetentionIntervalInHours": 8, - "backupStorageRedundancy": "Invalid" - } - }, - "networkAclBypassResourceIds": [] - }, - "identity": { - "type": "None" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 07:58:08 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11897", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T075808Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 07:58:38 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11896", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T075839Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 07:59:08 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11895", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T075909Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 07:59:38 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11894", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T075939Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:00:09 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11893", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T080009Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:00:39 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11892", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T080040Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:01:09 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11891", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T080110Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Dequeued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:01:41 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11890", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T080141Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccounttable?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:01:41 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11889", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T080141Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccounttable", - "name": "databaseaccounttable", - "location": "West US", - "type": "Microsoft.DocumentDB/databaseAccounts", - "kind": "GlobalDocumentDB", - "tags": {}, - "systemData": { - "createdAt": "2022-08-29T08:01:29.0072778Z" - }, - "properties": { - "provisioningState": "Succeeded", - "documentEndpoint": "https://databaseaccounttable.documents.azure.com:443/", - "tableEndpoint": "https://databaseaccounttable.table.cosmos.azure.com:443/", - "publicNetworkAccess": "Enabled", - "enableAutomaticFailover": false, - "enableMultipleWriteLocations": false, - "enablePartitionKeyMonitor": false, - "isVirtualNetworkFilterEnabled": false, - "virtualNetworkRules": [], - "EnabledApiTypes": "Table, Sql", - "disableKeyBasedMetadataWriteAccess": false, - "enableFreeTier": false, - "enableAnalyticalStorage": false, - "analyticalStorageConfiguration": { - "schemaType": "WellDefined" - }, - "instanceId": "00000000-0000-0000-0000-000000000000", - "databaseAccountOfferType": "Standard", - "defaultIdentity": "FirstPartyIdentity", - "networkAclBypass": "None", - "disableLocalAuth": false, - "consistencyPolicy": { - "defaultConsistencyLevel": "BoundedStaleness", - "maxIntervalInSeconds": 86400, - "maxStalenessPrefix": 1000000 - }, - "configurationOverrides": {}, - "writeLocations": [ - { - "id": "databaseaccounttable-eastus", - "locationName": "East US", - "documentEndpoint": "https://databaseaccounttable-eastus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 0, - "isZoneRedundant": false - } - ], - "readLocations": [ - { - "id": "databaseaccounttable-eastus", - "locationName": "East US", - "documentEndpoint": "https://databaseaccounttable-eastus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 0, - "isZoneRedundant": false - } - ], - "locations": [ - { - "id": "databaseaccounttable-eastus", - "locationName": "East US", - "documentEndpoint": "https://databaseaccounttable-eastus.documents.azure.com:443/", - "provisioningState": "Succeeded", - "failoverPriority": 0, - "isZoneRedundant": false - } - ], - "failoverPolicies": [ - { - "id": "databaseaccounttable-eastus", - "locationName": "East US", - "failoverPriority": 0 - } - ], - "cors": [], - "capabilities": [ - { - "name": "EnableTable" - } - ], - "ipRules": [], - "backupPolicy": { - "type": "Periodic", - "periodicModeProperties": { - "backupIntervalInMinutes": 240, - "backupRetentionIntervalInHours": 8, - "backupStorageRedundancy": "Geo" - } - }, - "networkAclBypassResourceIds": [] - }, - "identity": { - "type": "None" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccounttable/tables/cosmos_table?api-version=2022-11-15", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "92", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": { - "location": "westus", - "properties": { - "options": {}, - "resource": { - "id": "cosmos_table" - } - }, - "tags": {} - }, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Cache-Control": "no-store, no-cache", - "Content-Length": "21", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:01:43 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccounttable/tables/cosmos_table/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-writes": "1179", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T080143Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:01:43 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11888", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T080143Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:02:13 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11887", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T080214Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccounttable/tables/cosmos_table?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:02:14 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11886", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T080214Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccounttable/tables/cosmos_table", - "type": "Microsoft.DocumentDB/databaseAccounts/tables", - "name": "cosmos_table", - "properties": { - "resource": { - "id": "cosmos_table", - "_rid": "Ra82AKmpE0o=", - "_etag": "\u002200000000-0000-0000-0000-000000000000\u0022", - "_ts": 1661760112 - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccounttable/tables/cosmos_table?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:02:14 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11885", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T080215Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccounttable/tables/cosmos_table", - "type": "Microsoft.DocumentDB/databaseAccounts/tables", - "name": "cosmos_table", - "properties": { - "resource": { - "id": "cosmos_table", - "_rid": "Ra82AKmpE0o=", - "_etag": "\u002200000000-0000-0000-0000-000000000000\u0022", - "_ts": 1661760112 - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccounttable/tables?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:02:15 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11884", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T080216Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccounttable/tables/cosmos_table", - "type": "Microsoft.DocumentDB/databaseAccounts/tables", - "name": "cosmos_table", - "properties": { - "resource": { - "id": "cosmos_table", - "_rid": "Ra82AKmpE0o=", - "_etag": "\u002200000000-0000-0000-0000-000000000000\u0022", - "_ts": 1661760112 - } - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccounttable/tables/cosmos_table/throughputSettings/default?api-version=2022-11-15", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "76", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": { - "location": "westus", - "properties": { - "resource": { - "throughput": 400 - } - }, - "tags": {} - }, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Cache-Control": "no-store, no-cache", - "Content-Length": "21", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:02:16 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccounttable/tables/cosmos_table/throughputSettings/default/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-writes": "1178", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T080217Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:02:16 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11883", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T080217Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:02:47 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11882", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T080247Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccounttable/tables/cosmos_table/throughputSettings/default?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:02:48 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11881", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T080248Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccounttable/tables/cosmos_table/throughputSettings/default", - "type": "Microsoft.DocumentDB/databaseAccounts/tables/throughputSettings", - "name": "IG-d", - "properties": { - "resource": { - "throughput": 400, - "minimumThroughput": "400" - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccounttable/tables/cosmos_table/throughputSettings/default?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:02:49 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11880", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T080249Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccounttable/tables/cosmos_table/throughputSettings/default", - "type": "Microsoft.DocumentDB/databaseAccounts/tables/throughputSettings", - "name": "IG-d", - "properties": { - "resource": { - "throughput": 400, - "minimumThroughput": "400" - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccounttable/tables/cosmos_table/throughputSettings/default/migrateToAutoscale?api-version=2022-11-15", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Cache-Control": "no-store, no-cache", - "Content-Length": "21", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:02:51 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccounttable/tables/cosmos_table/throughputSettings/default/migrateToAutoscale/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-writes": "1194", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T080251Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:02:51 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11879", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T080251Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:03:21 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11878", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T080321Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccounttable/tables/cosmos_table/throughputSettings/default/migrateToAutoscale/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:03:21 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11877", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T080322Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccounttable/tables/cosmos_table/throughputSettings/default/migrateToAutoscale", - "type": "Microsoft.DocumentDB/databaseAccounts/tables/throughputSettings/migrateToAutoscale", - "name": "IG-d", - "properties": { - "resource": { - "throughput": 100, - "autoscaleSettings": { - "maxThroughput": 1000 - }, - "minimumThroughput": "1000" - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccounttable/tables/cosmos_table/throughputSettings/default/migrateToManualThroughput?api-version=2022-11-15", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Cache-Control": "no-store, no-cache", - "Content-Length": "21", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:03:22 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccounttable/tables/cosmos_table/throughputSettings/default/migrateToManualThroughput/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-writes": "1193", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T080323Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:03:23 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11876", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T080323Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:03:53 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11875", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T080354Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccounttable/tables/cosmos_table/throughputSettings/default/migrateToManualThroughput/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:03:53 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11874", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T080354Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccounttable/tables/cosmos_table/throughputSettings/default/migrateToManualThroughput", - "type": "Microsoft.DocumentDB/databaseAccounts/tables/throughputSettings/migrateToManualThroughput", - "name": "IG-d", - "properties": { - "resource": { - "throughput": 1000, - "minimumThroughput": "400" - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccounttable/tables/cosmos_table?api-version=2022-11-15", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Cache-Control": "no-store, no-cache", - "Content-Length": "21", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:03:54 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DocumentDB/databaseAccounts/databaseaccounttable/tables/cosmos_table/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-deletes": "14992", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T080355Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:03:55 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11873", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T080355Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Enqueued" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DocumentDB/locations/westus/operationsStatus/00000000-0000-0000-0000-000000000000?api-version=2022-11-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armcosmos/v2.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 29 Aug 2022 08:04:25 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-gatewayversion": "version=2.14.0", - "x-ms-ratelimit-remaining-subscription-reads": "11872", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T080426Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 29 Aug 2022 08:04:28 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ5NzgtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14991", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220829T080428Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": { - "recordingRandomSeed": "0" - } -} diff --git a/sdk/resourcemanager/eventgrid/armeventgrid/assets.json b/sdk/resourcemanager/eventgrid/armeventgrid/assets.json new file mode 100644 index 000000000000..ff9d33641a09 --- /dev/null +++ b/sdk/resourcemanager/eventgrid/armeventgrid/assets.json @@ -0,0 +1,6 @@ +{ + "AssetsRepo": "Azure/azure-sdk-assets", + "AssetsRepoPrefixPath": "go", + "TagPrefix": "go/resourcemanager/eventgrid/armeventgrid", + "Tag": "go/resourcemanager/eventgrid/armeventgrid_c1b6ed5bca" +} diff --git a/sdk/resourcemanager/eventgrid/armeventgrid/go.mod b/sdk/resourcemanager/eventgrid/armeventgrid/go.mod index 2c2938b94ea8..98822a339e6f 100644 --- a/sdk/resourcemanager/eventgrid/armeventgrid/go.mod +++ b/sdk/resourcemanager/eventgrid/armeventgrid/go.mod @@ -3,27 +3,27 @@ module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/eventgrid/armeventg go 1.18 require ( - github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.0 - github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.1.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.1 + github.com/Azure/azure-sdk-for-go/sdk/azcore v1.4.0 + github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.2 github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0 github.com/stretchr/testify v1.7.0 ) require ( - github.com/Azure/azure-sdk-for-go/sdk/internal v1.0.0 // indirect - github.com/AzureAD/microsoft-authentication-library-for-go v0.5.1 // indirect + github.com/Azure/azure-sdk-for-go/sdk/internal v1.2.0 // indirect + github.com/AzureAD/microsoft-authentication-library-for-go v0.7.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/dnaeon/go-vcr v1.1.0 // indirect - github.com/golang-jwt/jwt v3.2.1+incompatible // indirect + github.com/golang-jwt/jwt/v4 v4.4.2 // 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 github.com/pmezard/go-difflib v1.0.0 // 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 + golang.org/x/net v0.7.0 // indirect + golang.org/x/sys v0.5.0 // indirect + golang.org/x/text v0.7.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect ) diff --git a/sdk/resourcemanager/eventgrid/armeventgrid/go.sum b/sdk/resourcemanager/eventgrid/armeventgrid/go.sum index 1b67d30343d7..b0f97586a165 100644 --- a/sdk/resourcemanager/eventgrid/armeventgrid/go.sum +++ b/sdk/resourcemanager/eventgrid/armeventgrid/go.sum @@ -1,29 +1,27 @@ -github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.0 h1:Ut0ZGdOwJDw0npYEg+TLlPls3Pq6JiZaP2/aGKir7Zw= -github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.0/go.mod h1:uGG2W01BaETf0Ozp+QxxKJdMBNRWPdstHG0Fmdwn1/U= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.1.0 h1:QkAcEIAKbNL4KoFr4SathZPhDhF4mVwpBMFlYjyAqy8= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.1.0/go.mod h1:bhXu1AjYL+wutSL/kpSq6s7733q2Rb0yuot9Zgfqa/0= -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/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.1 h1:BZOe7ExNYNGmapT91ZUrxtMYsqVljMxTHEnwjOdG7pk= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.1/go.mod h1:TSPEzbGHEgqFa3kUn09SpCrfKNbj7+mMulU/72Vg84E= +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.0 h1:t/W5MYAuQy81cvM8VUNfRLzhtKpXhVUAN7Cd7KVbTyc= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.0/go.mod h1:NBanQUfSWiWn3QEpWDTCU0IjBECKOYvl2R8xdRtMtiM= +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/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.2 h1:mLY+pNLjCUeKhgnAJWAKhEUQM+RJQo2H1fuGSw1Ky1E= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.2/go.mod h1:FbdwsQ2EzwvXxOPcMFYO8ogEc9uMMIj3YkmCdXdAFmk= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0 h1:ECsQtyERDVz3NP3kvDOTLvbQhqWp/x9EsGKtb4ogUr8= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0/go.mod h1:s1tW/At+xHqjNFvWU4G0c0Qv33KOhvbGNj0RCTQDV8s= -github.com/AzureAD/microsoft-authentication-library-for-go v0.5.1 h1:BWe8a+f/t+7KY7zH2mqygeUD0t8hNFXe08p1Pb3/jKE= -github.com/AzureAD/microsoft-authentication-library-for-go v0.5.1/go.mod h1:Vt9sXTKwMyGcOxSmLDMnGPgqsUg7m8pe215qMLrDXw4= +github.com/AzureAD/microsoft-authentication-library-for-go v0.7.0 h1:VgSJlZH5u0k2qxSpqyghcFQKmvYckj46uymKK5XzkBM= +github.com/AzureAD/microsoft-authentication-library-for-go v0.7.0/go.mod h1:BDJ5qMFKx9DugEg3+uQSDCdbYPr5s9vBTrL9P8TpqOU= 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/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 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= +github.com/golang-jwt/jwt/v4 v4.4.2 h1:rcc4lwaZgFMCZ5jxF9ABolDcIHdBytAFgqFPbSJQAYs= +github.com/golang-jwt/jwt/v4 v4.4.2/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= 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= @@ -33,13 +31,12 @@ github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5Cc github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= 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-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/net v0.7.0 h1:rJrUqqhjsgNp7KqAIc25s9pZnjU7TUcSY7HcVZjdn1g= +golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= +golang.org/x/sys v0.5.0 h1:MUK/U/4lj1t1oPg0HfuXDN/Z1wv31ZJ/YcPiGccS4DU= +golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/text v0.7.0 h1:4BRB4x83lYWy72KwLD/qYDuTu7q9PjSagHvijDw7cLo= +golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= 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= diff --git a/sdk/resourcemanager/eventgrid/armeventgrid/testdata/recordings/TestEventGridTestSuite.json b/sdk/resourcemanager/eventgrid/armeventgrid/testdata/recordings/TestEventGridTestSuite.json deleted file mode 100644 index 9126a4af17bc..000000000000 --- a/sdk/resourcemanager/eventgrid/armeventgrid/testdata/recordings/TestEventGridTestSuite.json +++ /dev/null @@ -1,12008 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "eastus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:25:39 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T062539Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "eastus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/domains/domainnameWkloZ9?api-version=2022-06-15", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "212", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "eastus", - "properties": { - "inboundIpRules": [ - { - "action": "Allow", - "ipMask": "12.18.30.15" - }, - { - "action": "Allow", - "ipMask": "12.18.176.1" - } - ], - "publicNetworkAccess": "Enabled" - }, - "tags": { - "tag1": "value1", - "tag2": "value2" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus/operationsStatus/77C5D458-81C7-4FF7-A962-84EFB8ADD8EB?api-version=2022-06-15", - "Cache-Control": "no-cache", - "Content-Length": "484", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:25:45 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "10", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T062545Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "provisioningState": "Creating", - "endpoint": null, - "publicNetworkAccess": "Enabled", - "inboundIpRules": [ - { - "ipMask": "12.18.30.15", - "action": "Allow" - }, - { - "ipMask": "12.18.176.1", - "action": "Allow" - } - ] - }, - "systemData": null, - "location": "eastus", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/domains/domainnameWkloZ9", - "name": "domainnameWkloZ9", - "type": "Microsoft.EventGrid/domains" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus/operationsStatus/77C5D458-81C7-4FF7-A962-84EFB8ADD8EB?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:25:55 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11998", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T062555Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus/operationsStatus/77C5D458-81C7-4FF7-A962-84EFB8ADD8EB?api-version=2022-06-15", - "name": "00000000-0000-0000-0000-000000000000", - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/domains/domainnameWkloZ9?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:25:56 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11997", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T062556Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "provisioningState": "Succeeded", - "endpoint": "https://domainnamewkloz9.eastus-1.eventgrid.azure.net/api/events", - "inputSchema": "EventGridSchema", - "metricResourceId": "00000000-0000-0000-0000-000000000000", - "publicNetworkAccess": "Enabled", - "inboundIpRules": [ - { - "ipMask": "12.18.30.15", - "action": "Allow" - }, - { - "ipMask": "12.18.176.1", - "action": "Allow" - } - ], - "dataResidencyBoundary": "WithinGeopair" - }, - "systemData": null, - "location": "eastus", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/domains/domainnameWkloZ9", - "name": "domainnameWkloZ9", - "type": "Microsoft.EventGrid/domains" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/topics/topicnameWkloZ9?api-version=2022-06-15", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "212", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "eastus", - "properties": { - "inboundIpRules": [ - { - "action": "Allow", - "ipMask": "12.18.30.15" - }, - { - "action": "Allow", - "ipMask": "12.18.176.1" - } - ], - "publicNetworkAccess": "Enabled" - }, - "tags": { - "tag1": "value1", - "tag2": "value2" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus/operationsStatus/C4346402-D317-44B5-B434-623AC19F5F95?api-version=2022-06-15", - "Cache-Control": "no-cache", - "Content-Length": "480", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:26:00 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "10", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1197", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T062601Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "provisioningState": "Creating", - "endpoint": null, - "publicNetworkAccess": "Enabled", - "inboundIpRules": [ - { - "ipMask": "12.18.30.15", - "action": "Allow" - }, - { - "ipMask": "12.18.176.1", - "action": "Allow" - } - ] - }, - "systemData": null, - "location": "eastus", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/topics/topicnameWkloZ9", - "name": "topicnameWkloZ9", - "type": "Microsoft.EventGrid/topics" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus/operationsStatus/C4346402-D317-44B5-B434-623AC19F5F95?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:26:11 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11996", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T062611Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus/operationsStatus/C4346402-D317-44B5-B434-623AC19F5F95?api-version=2022-06-15", - "name": "00000000-0000-0000-0000-000000000000", - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/topics/topicnameWkloZ9?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:26:11 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11995", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T062612Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "provisioningState": "Succeeded", - "endpoint": "https://topicnamewkloz9.eastus-1.eventgrid.azure.net/api/events", - "inputSchema": "EventGridSchema", - "metricResourceId": "00000000-0000-0000-0000-000000000000", - "publicNetworkAccess": "Enabled", - "inboundIpRules": [ - { - "ipMask": "12.18.30.15", - "action": "Allow" - }, - { - "ipMask": "12.18.176.1", - "action": "Allow" - } - ], - "dataResidencyBoundary": "WithinGeopair" - }, - "systemData": null, - "location": "eastus", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/topics/topicnameWkloZ9", - "name": "topicnameWkloZ9", - "type": "Microsoft.EventGrid/topics" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/partnerRegistrations/partnerregWkloZ9?api-version=2022-06-15", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "global" - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:26:14 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1196", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T062615Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "provisioningState": "Succeeded", - "partnerRegistrationImmutableId": "00000000-0000-0000-0000-000000000000", - "visibilityState": "Hidden" - }, - "systemData": null, - "location": "global", - "tags": null, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/partnerRegistrations/partnerregWkloZ9", - "name": "partnerregWkloZ9", - "type": "Microsoft.EventGrid/partnerRegistrations" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/systemTopics/systemtopiWkloZ9?api-version=2022-06-15", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "147", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "global", - "properties": { - "source": "/subscriptions/00000000-0000-0000-0000-000000000000", - "topicType": "Microsoft.Resources.Subscriptions" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:26:18 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1195", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T062619Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "provisioningState": "Succeeded", - "source": "/subscriptions/00000000-0000-0000-0000-000000000000", - "topicType": "Microsoft.Resources.Subscriptions", - "metricResourceId": "00000000-0000-0000-0000-000000000000" - }, - "systemData": null, - "location": "global", - "tags": null, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/systemTopics/systemtopiWkloZ9", - "name": "systemtopiWkloZ9", - "type": "Microsoft.EventGrid/systemTopics" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/Eventhub_Create?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "1244", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "mode": "Incremental", - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "outputs": { - "eventhubId": { - "type": "string", - "value": "[resourceId(\u0027Microsoft.EventHub/namespaces/eventhubs\u0027, parameters(\u0027namespaceName\u0027), \u0027eventhubs\u0027)]" - } - }, - "parameters": { - "location": { - "defaultValue": "eastus", - "type": "string" - }, - "namespaceName": { - "defaultValue": "eventhubnaWkloZ9", - "type": "string" - } - }, - "resources": [ - { - "apiVersion": "2022-01-01-preview", - "location": "[parameters(\u0027location\u0027)]", - "name": "[parameters(\u0027namespaceName\u0027)]", - "properties": { - "disableLocalAuth": false, - "isAutoInflateEnabled": false, - "kafkaEnabled": true, - "maximumThroughputUnits": 0, - "minimumTlsVersion": "1.0", - "publicNetworkAccess": "Enabled", - "zoneRedundant": false - }, - "sku": { - "capacity": 1, - "name": "Standard", - "tier": "Standard" - }, - "type": "Microsoft.EventHub/namespaces" - }, - { - "apiVersion": "2022-01-01-preview", - "dependsOn": [ - "[resourceId(\u0027Microsoft.EventHub/namespaces\u0027, parameters(\u0027namespaceName\u0027))]" - ], - "location": "[parameters(\u0027location\u0027)]", - "name": "[concat(parameters(\u0027namespaceName\u0027), \u0027/eventhubs\u0027)]", - "properties": { - "messageRetentionInDays": 1, - "partitionCount": 1, - "status": "Active" - }, - "type": "Microsoft.EventHub/namespaces/eventhubs" - } - ], - "variables": {} - } - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/Eventhub_Create/operationStatuses/08585344093038279100?api-version=2021-04-01", - "Cache-Control": "no-cache", - "Content-Length": "1276", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:26:23 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1194", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T062623Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/Eventhub_Create", - "name": "Eventhub_Create", - "type": "Microsoft.Resources/deployments", - "properties": { - "templateHash": "4946837728391987508", - "parameters": { - "location": { - "type": "String", - "value": "eastus" - }, - "namespaceName": { - "type": "String", - "value": "eventhubnaWkloZ9" - } - }, - "mode": "Incremental", - "provisioningState": "Accepted", - "timestamp": "2022-10-31T06:26:22.5195644Z", - "duration": "PT0.0002098S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.EventHub", - "resourceTypes": [ - { - "resourceType": "namespaces", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "namespaces/eventhubs", - "locations": [ - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/eventhubnaWkloZ9", - "resourceType": "Microsoft.EventHub/namespaces", - "resourceName": "eventhubnaWkloZ9" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/eventhubnaWkloZ9/eventhubs/eventhubs", - "resourceType": "Microsoft.EventHub/namespaces/eventhubs", - "resourceName": "eventhubnaWkloZ9/eventhubs" - } - ] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/Eventhub_Create/operationStatuses/08585344093038279100?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "20", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:26:24 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11994", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T062624Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/Eventhub_Create/operationStatuses/08585344093038279100?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "20", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:26:54 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11993", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T062654Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/Eventhub_Create/operationStatuses/08585344093038279100?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "20", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:27:24 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11992", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T062725Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/Eventhub_Create/operationStatuses/08585344093038279100?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "22", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:27:55 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11991", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T062756Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/Eventhub_Create?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "1825", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:27:56 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11990", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T062756Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/Eventhub_Create", - "name": "Eventhub_Create", - "type": "Microsoft.Resources/deployments", - "properties": { - "templateHash": "4946837728391987508", - "parameters": { - "location": { - "type": "String", - "value": "eastus" - }, - "namespaceName": { - "type": "String", - "value": "eventhubnaWkloZ9" - } - }, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2022-10-31T06:27:27.38593Z", - "duration": "PT1M4.8665754S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.EventHub", - "resourceTypes": [ - { - "resourceType": "namespaces", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "namespaces/eventhubs", - "locations": [ - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/eventhubnaWkloZ9", - "resourceType": "Microsoft.EventHub/namespaces", - "resourceName": "eventhubnaWkloZ9" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/eventhubnaWkloZ9/eventhubs/eventhubs", - "resourceType": "Microsoft.EventHub/namespaces/eventhubs", - "resourceName": "eventhubnaWkloZ9/eventhubs" - } - ], - "outputs": { - "eventhubId": { - "type": "String", - "value": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/eventhubnaWkloZ9/eventhubs/eventhubs" - } - }, - "outputResources": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/eventhubnaWkloZ9" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/eventhubnaWkloZ9/eventhubs/eventhubs" - } - ] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/domains/domainnameWkloZ9/eventSubscriptions/eventsubscWkloZ9?api-version=2022-06-15", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "247", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "destination": { - "endpointType": "EventHub", - "properties": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/eventhubnaWkloZ9/eventhubs/eventhubs" - } - } - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus/operationsStatus/403E2B46-C88D-488E-A981-324E68E62BB4?api-version=2022-06-15", - "Cache-Control": "no-cache", - "Content-Length": "847", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:28:00 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "10", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1193", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T062801Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "topic": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/microsoft.eventgrid/domains/domainnamewkloz9", - "provisioningState": "Creating", - "destination": { - "properties": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/eventhubnaWkloZ9/eventhubs/eventhubs" - }, - "endpointType": "EventHub" - }, - "filter": { - "subjectBeginsWith": "", - "subjectEndsWith": "" - }, - "labels": null, - "retryPolicy": { - "maxDeliveryAttempts": 30, - "eventTimeToLiveInMinutes": 1440 - } - }, - "systemData": null, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/domains/domainnameWkloZ9/eventSubscriptions/eventsubscWkloZ9", - "name": "eventsubscWkloZ9", - "type": "Microsoft.EventGrid/domains/eventSubscriptions" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus/operationsStatus/403E2B46-C88D-488E-A981-324E68E62BB4?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:28:10 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11989", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T062811Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus/operationsStatus/403E2B46-C88D-488E-A981-324E68E62BB4?api-version=2022-06-15", - "name": "00000000-0000-0000-0000-000000000000", - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/domains/domainnameWkloZ9/eventSubscriptions/eventsubscWkloZ9?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:28:11 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11988", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T062812Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "topic": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/microsoft.eventgrid/domains/domainnamewkloz9", - "provisioningState": "Succeeded", - "destination": { - "properties": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/eventhubnaWkloZ9/eventhubs/eventhubs" - }, - "endpointType": "EventHub" - }, - "filter": { - "subjectBeginsWith": "", - "subjectEndsWith": "" - }, - "labels": null, - "eventDeliverySchema": "EventGridSchema", - "retryPolicy": { - "maxDeliveryAttempts": 30, - "eventTimeToLiveInMinutes": 1440 - } - }, - "systemData": null, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/domains/domainnameWkloZ9/eventSubscriptions/eventsubscWkloZ9", - "name": "eventsubscWkloZ9", - "type": "Microsoft.EventGrid/domains/eventSubscriptions" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/domains/domainnameWkloZ9/eventSubscriptions?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:28:12 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11987", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T062812Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "properties": { - "topic": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/microsoft.eventgrid/domains/domainnamewkloz9", - "provisioningState": "Succeeded", - "destination": { - "properties": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/eventhubnaWkloZ9/eventhubs/eventhubs" - }, - "endpointType": "EventHub" - }, - "filter": { - "subjectBeginsWith": "", - "subjectEndsWith": "" - }, - "labels": null, - "eventDeliverySchema": "EventGridSchema", - "retryPolicy": { - "maxDeliveryAttempts": 30, - "eventTimeToLiveInMinutes": 1440 - } - }, - "systemData": null, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/domains/domainnameWkloZ9/eventSubscriptions/eventsubscWkloZ9", - "name": "eventsubscWkloZ9", - "type": "Microsoft.EventGrid/domains/eventSubscriptions" - } - ], - "nextLink": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/domains/domainnameWkloZ9/eventSubscriptions?api-version=2022-06-15\u0026$skiptoken=%5b%7b%22token%22%3anull%2c%22range%22%3a%7b%22min%22%3a%2205C1DF6B5557E0%22%2c%22max%22%3a%22FF%22%7d%7d%5d\u0026$top=20" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/domains/domainnameWkloZ9/eventSubscriptions/eventsubscWkloZ9?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:28:12 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11986", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T062813Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "topic": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/microsoft.eventgrid/domains/domainnamewkloz9", - "provisioningState": "Succeeded", - "destination": { - "properties": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/eventhubnaWkloZ9/eventhubs/eventhubs" - }, - "endpointType": "EventHub" - }, - "filter": { - "subjectBeginsWith": "", - "subjectEndsWith": "" - }, - "labels": null, - "eventDeliverySchema": "EventGridSchema", - "retryPolicy": { - "maxDeliveryAttempts": 30, - "eventTimeToLiveInMinutes": 1440 - } - }, - "systemData": null, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/domains/domainnameWkloZ9/eventSubscriptions/eventsubscWkloZ9", - "name": "eventsubscWkloZ9", - "type": "Microsoft.EventGrid/domains/eventSubscriptions" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/domains/domainnameWkloZ9/eventSubscriptions/eventsubscWkloZ9?api-version=2022-06-15", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "labels": [ - "label1" - ] - }, - "StatusCode": 201, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus/operationsStatus/1FCED470-9C1D-4DEC-BAF4-BC91F2C14DDB?api-version=2022-06-15", - "Cache-Control": "no-cache", - "Content-Length": "893", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:28:14 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "10", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1192", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T062814Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "topic": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/microsoft.eventgrid/domains/domainnamewkloz9", - "provisioningState": "Updating", - "destination": { - "properties": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/eventhubnaWkloZ9/eventhubs/eventhubs" - }, - "endpointType": "EventHub" - }, - "filter": { - "subjectBeginsWith": "", - "subjectEndsWith": "" - }, - "labels": [ - "label1" - ], - "eventDeliverySchema": "EventGridSchema", - "retryPolicy": { - "maxDeliveryAttempts": 30, - "eventTimeToLiveInMinutes": 1440 - } - }, - "systemData": null, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/domains/domainnameWkloZ9/eventSubscriptions/eventsubscWkloZ9", - "name": "eventsubscWkloZ9", - "type": "Microsoft.EventGrid/domains/eventSubscriptions" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus/operationsStatus/1FCED470-9C1D-4DEC-BAF4-BC91F2C14DDB?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:28:24 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11985", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T062825Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus/operationsStatus/1FCED470-9C1D-4DEC-BAF4-BC91F2C14DDB?api-version=2022-06-15", - "name": "00000000-0000-0000-0000-000000000000", - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/domains/domainnameWkloZ9/eventSubscriptions/eventsubscWkloZ9?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:28:25 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11984", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T062826Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "topic": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/microsoft.eventgrid/domains/domainnamewkloz9", - "provisioningState": "Succeeded", - "destination": { - "properties": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/eventhubnaWkloZ9/eventhubs/eventhubs" - }, - "endpointType": "EventHub" - }, - "filter": { - "subjectBeginsWith": "", - "subjectEndsWith": "" - }, - "labels": [ - "label1" - ], - "eventDeliverySchema": "EventGridSchema", - "retryPolicy": { - "maxDeliveryAttempts": 30, - "eventTimeToLiveInMinutes": 1440 - } - }, - "systemData": null, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/domains/domainnameWkloZ9/eventSubscriptions/eventsubscWkloZ9", - "name": "eventsubscWkloZ9", - "type": "Microsoft.EventGrid/domains/eventSubscriptions" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/domains/domainnameWkloZ9/eventSubscriptions/eventsubscWkloZ9/getDeliveryAttributes?api-version=2022-06-15", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:28:26 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T062826Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": null - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/domains/domainnameWkloZ9/eventSubscriptions/eventsubscWkloZ9?api-version=2022-06-15", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus/operationsStatus/D7894936-01C9-4F59-BDD4-A2E41679B547?api-version=2022-06-15", - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 31 Oct 2022 06:28:27 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus/operationResults/D7894936-01C9-4F59-BDD4-A2E41679B547?api-version=2022-06-15", - "Pragma": "no-cache", - "Retry-After": "10", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14999", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T062828Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus/operationsStatus/D7894936-01C9-4F59-BDD4-A2E41679B547?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:28:37 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11983", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T062838Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus/operationsStatus/D7894936-01C9-4F59-BDD4-A2E41679B547?api-version=2022-06-15", - "name": "00000000-0000-0000-0000-000000000000", - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/domains/domainnameWkloZ9/topics/domaintopiWkloZ9?api-version=2022-06-15", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 201, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus/operationsStatus/F294AA42-D109-4AEB-B158-829A4D927C07?api-version=2022-06-15", - "Cache-Control": "no-cache", - "Content-Length": "303", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:28:39 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "10", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1191", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T062840Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "provisioningState": "Creating" - }, - "systemData": null, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/domains/domainnameWkloZ9/topics/domaintopiWkloZ9", - "name": "domaintopiWkloZ9", - "type": "Microsoft.EventGrid/domains/topics" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus/operationsStatus/F294AA42-D109-4AEB-B158-829A4D927C07?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:28:51 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11982", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T062851Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus/operationsStatus/F294AA42-D109-4AEB-B158-829A4D927C07?api-version=2022-06-15", - "name": "00000000-0000-0000-0000-000000000000", - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/domains/domainnameWkloZ9/topics/domaintopiWkloZ9?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:28:51 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "899", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T062851Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "provisioningState": "Succeeded" - }, - "systemData": null, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/domains/domainnameWkloZ9/topics/domaintopiWkloZ9", - "name": "domaintopiWkloZ9", - "type": "Microsoft.EventGrid/domains/topics" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/domains/domainnameWkloZ9/topics?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:28:52 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "898", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T062852Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "properties": { - "provisioningState": "Succeeded" - }, - "systemData": null, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/domains/domainnameWkloZ9/topics/domaintopiWkloZ9", - "name": "domaintopiWkloZ9", - "type": "Microsoft.EventGrid/domains/topics" - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/domains/domainnameWkloZ9/topics/domaintopiWkloZ9?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:28:53 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "897", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T062853Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "provisioningState": "Succeeded" - }, - "systemData": null, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/domains/domainnameWkloZ9/topics/domaintopiWkloZ9", - "name": "domaintopiWkloZ9", - "type": "Microsoft.EventGrid/domains/topics" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/domains/domainnameWkloZ9/topics/topicnameWkloZ9/eventSubscriptions/eventsubscWkloZ9?api-version=2022-06-15", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "247", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "destination": { - "endpointType": "EventHub", - "properties": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/eventhubnaWkloZ9/eventhubs/eventhubs" - } - } - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus/operationsStatus/4B6D3936-E041-48D7-9F1C-DC1BA78CBA8D?api-version=2022-06-15", - "Cache-Control": "no-cache", - "Content-Length": "900", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:28:55 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "10", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1190", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T062855Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "topic": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/microsoft.eventgrid/domains/domainnamewkloz9/topics/topicnamewkloz9", - "provisioningState": "Creating", - "destination": { - "properties": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/eventhubnaWkloZ9/eventhubs/eventhubs" - }, - "endpointType": "EventHub" - }, - "filter": { - "subjectBeginsWith": "", - "subjectEndsWith": "" - }, - "labels": null, - "retryPolicy": { - "maxDeliveryAttempts": 30, - "eventTimeToLiveInMinutes": 1440 - } - }, - "systemData": null, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/domains/domainnameWkloZ9/topics/topicnameWkloZ9/eventSubscriptions/eventsubscWkloZ9", - "name": "eventsubscWkloZ9", - "type": "Microsoft.EventGrid/domains/topics/eventSubscriptions" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus/operationsStatus/4B6D3936-E041-48D7-9F1C-DC1BA78CBA8D?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:29:05 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11981", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T062905Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus/operationsStatus/4B6D3936-E041-48D7-9F1C-DC1BA78CBA8D?api-version=2022-06-15", - "name": "00000000-0000-0000-0000-000000000000", - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/domains/domainnameWkloZ9/topics/topicnameWkloZ9/eventSubscriptions/eventsubscWkloZ9?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:29:06 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11980", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T062906Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "topic": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/microsoft.eventgrid/domains/domainnamewkloz9/topics/topicnamewkloz9", - "provisioningState": "Succeeded", - "destination": { - "properties": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/eventhubnaWkloZ9/eventhubs/eventhubs" - }, - "endpointType": "EventHub" - }, - "filter": { - "subjectBeginsWith": "", - "subjectEndsWith": "" - }, - "labels": null, - "eventDeliverySchema": "EventGridSchema", - "retryPolicy": { - "maxDeliveryAttempts": 30, - "eventTimeToLiveInMinutes": 1440 - } - }, - "systemData": null, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/domains/domainnameWkloZ9/topics/topicnameWkloZ9/eventSubscriptions/eventsubscWkloZ9", - "name": "eventsubscWkloZ9", - "type": "Microsoft.EventGrid/domains/topics/eventSubscriptions" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/domains/domainnameWkloZ9/topics/topicnameWkloZ9/eventSubscriptions?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:29:07 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11979", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T062907Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "properties": { - "topic": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/microsoft.eventgrid/domains/domainnamewkloz9/topics/topicnamewkloz9", - "provisioningState": "Succeeded", - "destination": { - "properties": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/eventhubnaWkloZ9/eventhubs/eventhubs" - }, - "endpointType": "EventHub" - }, - "filter": { - "subjectBeginsWith": "", - "subjectEndsWith": "" - }, - "labels": null, - "eventDeliverySchema": "EventGridSchema", - "retryPolicy": { - "maxDeliveryAttempts": 30, - "eventTimeToLiveInMinutes": 1440 - } - }, - "systemData": null, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/domains/domainnameWkloZ9/topics/topicnameWkloZ9/eventSubscriptions/eventsubscWkloZ9", - "name": "eventsubscWkloZ9", - "type": "Microsoft.EventGrid/domains/topics/eventSubscriptions" - } - ], - "nextLink": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/domains/domainnameWkloZ9/topics/topicnameWkloZ9/eventSubscriptions?api-version=2022-06-15\u0026$skiptoken=%5b%7b%22token%22%3anull%2c%22range%22%3a%7b%22min%22%3a%2205C1DF6B5557E0%22%2c%22max%22%3a%22FF%22%7d%7d%5d\u0026$top=20" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/domains/domainnameWkloZ9/topics/topicnameWkloZ9/eventSubscriptions/eventsubscWkloZ9?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:29:07 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11978", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T062907Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "topic": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/microsoft.eventgrid/domains/domainnamewkloz9/topics/topicnamewkloz9", - "provisioningState": "Succeeded", - "destination": { - "properties": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/eventhubnaWkloZ9/eventhubs/eventhubs" - }, - "endpointType": "EventHub" - }, - "filter": { - "subjectBeginsWith": "", - "subjectEndsWith": "" - }, - "labels": null, - "eventDeliverySchema": "EventGridSchema", - "retryPolicy": { - "maxDeliveryAttempts": 30, - "eventTimeToLiveInMinutes": 1440 - } - }, - "systemData": null, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/domains/domainnameWkloZ9/topics/topicnameWkloZ9/eventSubscriptions/eventsubscWkloZ9", - "name": "eventsubscWkloZ9", - "type": "Microsoft.EventGrid/domains/topics/eventSubscriptions" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/domains/domainnameWkloZ9/topics/topicnameWkloZ9/eventSubscriptions/eventsubscWkloZ9/getDeliveryAttributes?api-version=2022-06-15", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:29:08 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T062908Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": null - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/domains/domainnameWkloZ9/topics/topicnameWkloZ9/eventSubscriptions/eventsubscWkloZ9?api-version=2022-06-15", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus/operationsStatus/B593231E-D334-4CA2-B255-F5CC4B71B8E9?api-version=2022-06-15", - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 31 Oct 2022 06:29:10 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus/operationResults/B593231E-D334-4CA2-B255-F5CC4B71B8E9?api-version=2022-06-15", - "Pragma": "no-cache", - "Retry-After": "10", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14998", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T062910Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus/operationsStatus/B593231E-D334-4CA2-B255-F5CC4B71B8E9?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:29:20 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11977", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T062920Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus/operationsStatus/B593231E-D334-4CA2-B255-F5CC4B71B8E9?api-version=2022-06-15", - "name": "00000000-0000-0000-0000-000000000000", - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/domains/domainnameWkloZ9/topics/domaintopiWkloZ9?api-version=2022-06-15", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus/operationsStatus/2F6DBC2E-E061-48F6-933A-53A7FE2F7B30?api-version=2022-06-15", - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 31 Oct 2022 06:29:21 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus/operationResults/2F6DBC2E-E061-48F6-933A-53A7FE2F7B30?api-version=2022-06-15", - "Pragma": "no-cache", - "Retry-After": "10", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14997", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T062922Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus/operationsStatus/2F6DBC2E-E061-48F6-933A-53A7FE2F7B30?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:29:32 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11976", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T062932Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus/operationsStatus/2F6DBC2E-E061-48F6-933A-53A7FE2F7B30?api-version=2022-06-15", - "name": "00000000-0000-0000-0000-000000000000", - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/domains?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "10735", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:29:33 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-original-request-ids": [ - "00000000-0000-0000-0000-000000000000", - "76eecbff-b030-4f1f-98d2-dd69c07d29a1" - ], - "x-ms-ratelimit-remaining-subscription-reads": "11975", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T062934Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "properties": { - "provisioningState": "Succeeded", - "endpoint": "https://domainnamewp9lef.eastus-1.eventgrid.azure.net/api/events", - "inputSchema": "EventGridSchema", - "metricResourceId": "00000000-0000-0000-0000-000000000000", - "publicNetworkAccess": "Enabled", - "inboundIpRules": [ - { - "ipMask": "12.18.30.15", - "action": "Allow" - }, - { - "ipMask": "12.18.176.1", - "action": "Allow" - } - ], - "dataResidencyBoundary": "WithinGeopair" - }, - "systemData": null, - "location": "eastus", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/domains/domainnamewp9LeF", - "name": "domainnamewp9LeF", - "type": "Microsoft.EventGrid/domains" - }, - { - "properties": { - "privateEndpointConnections": [ - { - "properties": { - "privateEndpoint": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateEndpoints/eventgridprivateendpointI6s62c" - }, - "groupIds": [ - "domain" - ], - "privateLinkServiceConnectionState": { - "status": "Approved", - "description": "approving connection", - "actionsRequired": "None" - }, - "provisioningState": "Succeeded" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/domains/domainnameI6s62c/privateEndpointConnections/eventgridprivateendpointI6s62c.00000000-0000-0000-0000-000000000000", - "name": "eventgridprivateendpointI6s62c.00000000-0000-0000-0000-000000000000", - "type": "Microsoft.EventGrid/domains/privateEndpointConnections" - } - ], - "provisioningState": "Succeeded", - "endpoint": "https://domainnamei6s62c.eastus-1.eventgrid.azure.net/api/events", - "inputSchema": "EventGridSchema", - "metricResourceId": "00000000-0000-0000-0000-000000000000", - "publicNetworkAccess": "Enabled", - "inboundIpRules": [ - { - "ipMask": "12.18.30.15", - "action": "Allow" - }, - { - "ipMask": "12.18.176.1", - "action": "Allow" - } - ], - "dataResidencyBoundary": "WithinGeopair" - }, - "systemData": null, - "location": "eastus", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/domains/domainnameI6s62c", - "name": "domainnameI6s62c", - "type": "Microsoft.EventGrid/domains" - }, - { - "properties": { - "privateEndpointConnections": [ - { - "properties": { - "privateEndpoint": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateEndpoints/eventgridprivateendpointMItg62" - }, - "groupIds": [ - "domain" - ], - "privateLinkServiceConnectionState": { - "status": "Rejected", - "description": "approving connection", - "actionsRequired": "None" - }, - "provisioningState": "Succeeded" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/domains/domainnameMItg62/privateEndpointConnections/eventgridprivateendpointMItg62.00000000-0000-0000-0000-000000000000", - "name": "eventgridprivateendpointMItg62.00000000-0000-0000-0000-000000000000", - "type": "Microsoft.EventGrid/domains/privateEndpointConnections" - } - ], - "provisioningState": "Succeeded", - "endpoint": "https://domainnamemitg62.eastus-1.eventgrid.azure.net/api/events", - "inputSchema": "EventGridSchema", - "metricResourceId": "00000000-0000-0000-0000-000000000000", - "publicNetworkAccess": "Enabled", - "inboundIpRules": [ - { - "ipMask": "12.18.30.15", - "action": "Allow" - }, - { - "ipMask": "12.18.176.1", - "action": "Allow" - } - ], - "dataResidencyBoundary": "WithinGeopair" - }, - "systemData": null, - "location": "eastus", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/domains/domainnameMItg62", - "name": "domainnameMItg62", - "type": "Microsoft.EventGrid/domains" - }, - { - "properties": { - "privateEndpointConnections": [], - "provisioningState": "Succeeded", - "endpoint": "https://domainnamean9x0u.eastus-1.eventgrid.azure.net/api/events", - "inputSchema": "EventGridSchema", - "metricResourceId": "00000000-0000-0000-0000-000000000000", - "publicNetworkAccess": "Enabled", - "inboundIpRules": [ - { - "ipMask": "12.18.30.15", - "action": "Allow" - }, - { - "ipMask": "12.18.176.1", - "action": "Allow" - } - ], - "dataResidencyBoundary": "WithinGeopair" - }, - "systemData": null, - "location": "eastus", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/domains/domainnameAn9x0U", - "name": "domainnameAn9x0U", - "type": "Microsoft.EventGrid/domains" - }, - { - "properties": { - "privateEndpointConnections": [ - { - "properties": { - "privateEndpoint": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateEndpoints/eventgridprivateendpoint2J1nvm" - }, - "groupIds": [ - "domain" - ], - "privateLinkServiceConnectionState": { - "status": "Approved", - "description": "Auto-approved", - "actionsRequired": "None" - }, - "provisioningState": "Succeeded" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/domains/domainname2J1nvm/privateEndpointConnections/eventgridprivateendpoint2J1nvm.00000000-0000-0000-0000-000000000000", - "name": "eventgridprivateendpoint2J1nvm.00000000-0000-0000-0000-000000000000", - "type": "Microsoft.EventGrid/domains/privateEndpointConnections" - } - ], - "provisioningState": "Succeeded", - "endpoint": "https://domainname2j1nvm.eastus-1.eventgrid.azure.net/api/events", - "inputSchema": "EventGridSchema", - "metricResourceId": "00000000-0000-0000-0000-000000000000", - "publicNetworkAccess": "Enabled", - "inboundIpRules": [ - { - "ipMask": "12.18.30.15", - "action": "Allow" - }, - { - "ipMask": "12.18.176.1", - "action": "Allow" - } - ], - "dataResidencyBoundary": "WithinGeopair" - }, - "systemData": null, - "location": "eastus", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/domains/domainname2J1nvm", - "name": "domainname2J1nvm", - "type": "Microsoft.EventGrid/domains" - }, - { - "properties": { - "privateEndpointConnections": [ - { - "properties": { - "privateEndpoint": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateEndpoints/eventgridprivateendpointuRtLFd" - }, - "groupIds": [ - "domain" - ], - "privateLinkServiceConnectionState": { - "status": "Rejected", - "description": "approving connection", - "actionsRequired": "None" - }, - "provisioningState": "Succeeded" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/domains/domainnameuRtLFd/privateEndpointConnections/eventgridprivateendpointuRtLFd.00000000-0000-0000-0000-000000000000", - "name": "eventgridprivateendpointuRtLFd.00000000-0000-0000-0000-000000000000", - "type": "Microsoft.EventGrid/domains/privateEndpointConnections" - } - ], - "provisioningState": "Succeeded", - "endpoint": "https://domainnameurtlfd.eastus-1.eventgrid.azure.net/api/events", - "inputSchema": "EventGridSchema", - "metricResourceId": "00000000-0000-0000-0000-000000000000", - "publicNetworkAccess": "Enabled", - "inboundIpRules": [ - { - "ipMask": "12.18.30.15", - "action": "Allow" - }, - { - "ipMask": "12.18.176.1", - "action": "Allow" - } - ], - "dataResidencyBoundary": "WithinGeopair" - }, - "systemData": null, - "location": "eastus", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/domains/domainnameuRtLFd", - "name": "domainnameuRtLFd", - "type": "Microsoft.EventGrid/domains" - }, - { - "properties": { - "privateEndpointConnections": [ - { - "properties": { - "privateEndpoint": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateEndpoints/eventgridprivateendpointJ7utNb" - }, - "groupIds": [ - "domain" - ], - "privateLinkServiceConnectionState": { - "status": "Rejected", - "description": "approving connection", - "actionsRequired": "None" - }, - "provisioningState": "Succeeded" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/domains/domainnameKZchvQ/privateEndpointConnections/eventgridprivateendpointJ7utNb.00000000-0000-0000-0000-000000000000", - "name": "eventgridprivateendpointJ7utNb.00000000-0000-0000-0000-000000000000", - "type": "Microsoft.EventGrid/domains/privateEndpointConnections" - } - ], - "provisioningState": "Succeeded", - "endpoint": "https://domainnamekzchvq.eastus-1.eventgrid.azure.net/api/events", - "inputSchema": "EventGridSchema", - "metricResourceId": "00000000-0000-0000-0000-000000000000", - "publicNetworkAccess": "Enabled", - "inboundIpRules": [ - { - "ipMask": "12.18.30.15", - "action": "Allow" - }, - { - "ipMask": "12.18.176.1", - "action": "Allow" - } - ], - "dataResidencyBoundary": "WithinGeopair" - }, - "systemData": null, - "location": "eastus", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/domains/domainnameKZchvQ", - "name": "domainnameKZchvQ", - "type": "Microsoft.EventGrid/domains" - }, - { - "properties": { - "provisioningState": "Succeeded", - "endpoint": "https://domainnamero3qkg.eastus-1.eventgrid.azure.net/api/events", - "inputSchema": "EventGridSchema", - "metricResourceId": "00000000-0000-0000-0000-000000000000", - "publicNetworkAccess": "Enabled", - "inboundIpRules": [ - { - "ipMask": "12.18.30.15", - "action": "Allow" - }, - { - "ipMask": "12.18.176.1", - "action": "Allow" - } - ], - "dataResidencyBoundary": "WithinGeopair" - }, - "systemData": null, - "location": "eastus", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/domains/domainnamero3qkG", - "name": "domainnamero3qkG", - "type": "Microsoft.EventGrid/domains" - }, - { - "properties": { - "provisioningState": "Succeeded", - "endpoint": "https://domainnamewkloz9.eastus-1.eventgrid.azure.net/api/events", - "inputSchema": "EventGridSchema", - "metricResourceId": "00000000-0000-0000-0000-000000000000", - "publicNetworkAccess": "Enabled", - "inboundIpRules": [ - { - "ipMask": "12.18.30.15", - "action": "Allow" - }, - { - "ipMask": "12.18.176.1", - "action": "Allow" - } - ], - "dataResidencyBoundary": "WithinGeopair" - }, - "systemData": null, - "location": "eastus", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/domains/domainnameWkloZ9", - "name": "domainnameWkloZ9", - "type": "Microsoft.EventGrid/domains" - }, - { - "properties": { - "provisioningState": "Succeeded", - "endpoint": "https://gotestdomain.westus-1.eventgrid.azure.net/api/events", - "inputSchema": "EventGridSchema", - "metricResourceId": "00000000-0000-0000-0000-000000000000", - "publicNetworkAccess": "Enabled", - "inboundIpRules": [], - "disableLocalAuth": false, - "dataResidencyBoundary": "WithinGeopair" - }, - "identity": { - "type": "None", - "principalId": null, - "tenantId": null, - "userAssignedIdentities": null - }, - "systemData": null, - "location": "westus", - "tags": {}, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-test/providers/Microsoft.EventGrid/domains/gotestdomain", - "name": "gotestdomain", - "type": "Microsoft.EventGrid/domains" - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/domains?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:29:34 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11974", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T062934Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "properties": { - "provisioningState": "Succeeded", - "endpoint": "https://domainnamewkloz9.eastus-1.eventgrid.azure.net/api/events", - "inputSchema": "EventGridSchema", - "metricResourceId": "00000000-0000-0000-0000-000000000000", - "publicNetworkAccess": "Enabled", - "inboundIpRules": [ - { - "ipMask": "12.18.30.15", - "action": "Allow" - }, - { - "ipMask": "12.18.176.1", - "action": "Allow" - } - ], - "dataResidencyBoundary": "WithinGeopair" - }, - "systemData": null, - "location": "eastus", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/domains/domainnameWkloZ9", - "name": "domainnameWkloZ9", - "type": "Microsoft.EventGrid/domains" - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/domains/domainnameWkloZ9?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:29:34 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11973", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T062935Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "provisioningState": "Succeeded", - "endpoint": "https://domainnamewkloz9.eastus-1.eventgrid.azure.net/api/events", - "inputSchema": "EventGridSchema", - "metricResourceId": "00000000-0000-0000-0000-000000000000", - "publicNetworkAccess": "Enabled", - "inboundIpRules": [ - { - "ipMask": "12.18.30.15", - "action": "Allow" - }, - { - "ipMask": "12.18.176.1", - "action": "Allow" - } - ], - "dataResidencyBoundary": "WithinGeopair" - }, - "systemData": null, - "location": "eastus", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/domains/domainnameWkloZ9", - "name": "domainnameWkloZ9", - "type": "Microsoft.EventGrid/domains" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/domains/domainnameWkloZ9?api-version=2022-06-15", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "192", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "inboundIpRules": [ - { - "action": "Allow", - "ipMask": "12.18.30.15" - }, - { - "action": "Allow", - "ipMask": "12.18.176.1" - } - ], - "publicNetworkAccess": "Enabled" - }, - "tags": { - "tag1": "value1", - "tag2": "value2" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus/operationsStatus/D1EF9C1F-3F23-4C1B-ACA8-11F18B01DCB3?api-version=2022-06-15", - "Cache-Control": "no-cache", - "Content-Length": "676", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:29:38 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "10", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1189", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T062939Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "provisioningState": "Updating", - "endpoint": "https://domainnamewkloz9.eastus-1.eventgrid.azure.net/api/events", - "inputSchema": "EventGridSchema", - "metricResourceId": "00000000-0000-0000-0000-000000000000", - "publicNetworkAccess": "Enabled", - "inboundIpRules": [ - { - "ipMask": "12.18.30.15", - "action": "Allow" - }, - { - "ipMask": "12.18.176.1", - "action": "Allow" - } - ], - "dataResidencyBoundary": "WithinGeopair" - }, - "systemData": null, - "location": "eastus", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/domains/domainnameWkloZ9", - "name": "domainnameWkloZ9", - "type": "Microsoft.EventGrid/domains" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus/operationsStatus/D1EF9C1F-3F23-4C1B-ACA8-11F18B01DCB3?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:29:49 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11972", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T062949Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus/operationsStatus/D1EF9C1F-3F23-4C1B-ACA8-11F18B01DCB3?api-version=2022-06-15", - "name": "00000000-0000-0000-0000-000000000000", - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/domains/domainnameWkloZ9?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:29:49 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11971", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T062950Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "provisioningState": "Succeeded", - "endpoint": "https://domainnamewkloz9.eastus-1.eventgrid.azure.net/api/events", - "inputSchema": "EventGridSchema", - "metricResourceId": "00000000-0000-0000-0000-000000000000", - "publicNetworkAccess": "Enabled", - "inboundIpRules": [ - { - "ipMask": "12.18.30.15", - "action": "Allow" - }, - { - "ipMask": "12.18.176.1", - "action": "Allow" - } - ], - "dataResidencyBoundary": "WithinGeopair" - }, - "systemData": null, - "location": "eastus", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/domains/domainnameWkloZ9", - "name": "domainnameWkloZ9", - "type": "Microsoft.EventGrid/domains" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/domains/domainnameWkloZ9/listKeys?api-version=2022-06-15", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:29:50 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1197", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T062951Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "key1": "000000000000", - "key2": "000000000000" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/domains/domainnameWkloZ9/regenerateKey?api-version=2022-06-15", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "18", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "keyName": "key1" - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:29:51 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1196", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T062952Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "key1": "000000000000", - "key2": "000000000000" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscWkloZ9?api-version=2022-06-15", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "247", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "destination": { - "endpointType": "EventHub", - "properties": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/eventhubnaWkloZ9/eventhubs/eventhubs" - } - } - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationsStatus/E6822F44-4F8B-4B14-8593-F7E88894AE59?api-version=2022-06-15", - "Cache-Control": "no-cache", - "Content-Length": "1112", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:29:53 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "10", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "899", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T062954Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "topic": "/subscriptions/00000000-0000-0000-0000-000000000000", - "provisioningState": "Creating", - "destination": { - "properties": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/eventhubnaWkloZ9/eventhubs/eventhubs" - }, - "endpointType": "EventHub" - }, - "filter": { - "subjectBeginsWith": "", - "subjectEndsWith": "", - "includedEventTypes": [ - "Microsoft.Resources.ResourceWriteSuccess", - "Microsoft.Resources.ResourceWriteFailure", - "Microsoft.Resources.ResourceWriteCancel", - "Microsoft.Resources.ResourceDeleteSuccess", - "Microsoft.Resources.ResourceDeleteFailure", - "Microsoft.Resources.ResourceDeleteCancel", - "Microsoft.Resources.ResourceActionSuccess", - "Microsoft.Resources.ResourceActionFailure", - "Microsoft.Resources.ResourceActionCancel" - ] - }, - "labels": null, - "retryPolicy": { - "maxDeliveryAttempts": 30, - "eventTimeToLiveInMinutes": 1440 - } - }, - "systemData": null, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscWkloZ9", - "name": "eventsubscWkloZ9", - "type": "Microsoft.EventGrid/eventSubscriptions" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationsStatus/E6822F44-4F8B-4B14-8593-F7E88894AE59?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:30:03 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11970", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063004Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationsStatus/E6822F44-4F8B-4B14-8593-F7E88894AE59?api-version=2022-06-15", - "name": "00000000-0000-0000-0000-000000000000", - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscWkloZ9?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:30:04 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11969", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063005Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "topic": "/subscriptions/00000000-0000-0000-0000-000000000000", - "provisioningState": "Succeeded", - "destination": { - "properties": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/eventhubnaWkloZ9/eventhubs/eventhubs" - }, - "endpointType": "EventHub" - }, - "filter": { - "subjectBeginsWith": "", - "subjectEndsWith": "", - "includedEventTypes": [ - "Microsoft.Resources.ResourceWriteSuccess", - "Microsoft.Resources.ResourceWriteFailure", - "Microsoft.Resources.ResourceWriteCancel", - "Microsoft.Resources.ResourceDeleteSuccess", - "Microsoft.Resources.ResourceDeleteFailure", - "Microsoft.Resources.ResourceDeleteCancel", - "Microsoft.Resources.ResourceActionSuccess", - "Microsoft.Resources.ResourceActionFailure", - "Microsoft.Resources.ResourceActionCancel" - ] - }, - "labels": null, - "eventDeliverySchema": "EventGridSchema", - "retryPolicy": { - "maxDeliveryAttempts": 30, - "eventTimeToLiveInMinutes": 1440 - } - }, - "systemData": null, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscWkloZ9", - "name": "eventsubscWkloZ9", - "type": "Microsoft.EventGrid/eventSubscriptions" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/eventSubscriptions?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:30:04 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11968", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063005Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "properties": { - "topic": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_eventgrid_test_eventgrid31ec0fa8", - "provisioningState": "Succeeded", - "destination": { - "properties": { - "endpointUrl": null, - "endpointBaseUrl": "https://cjfpython.azurewebsites.net/api/updates", - "maxEventsPerBatch": 1, - "preferredBatchSizeInKilobytes": 64 - }, - "endpointType": "WebHook" - }, - "filter": { - "subjectBeginsWith": "ExamplePrefix", - "subjectEndsWith": "ExampleSuffix", - "includedEventTypes": [ - "Microsoft.Resources.ResourceWriteSuccess", - "Microsoft.Resources.ResourceWriteFailure", - "Microsoft.Resources.ResourceWriteCancel", - "Microsoft.Resources.ResourceDeleteSuccess", - "Microsoft.Resources.ResourceDeleteFailure", - "Microsoft.Resources.ResourceDeleteCancel", - "Microsoft.Resources.ResourceActionSuccess", - "Microsoft.Resources.ResourceActionFailure", - "Microsoft.Resources.ResourceActionCancel" - ] - }, - "labels": null, - "eventDeliverySchema": "EventGridSchema", - "retryPolicy": { - "maxDeliveryAttempts": 30, - "eventTimeToLiveInMinutes": 1440 - } - }, - "systemData": null, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_eventgrid_test_eventgrid31ec0fa8/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription2", - "name": "examplesubscription2", - "type": "Microsoft.EventGrid/eventSubscriptions" - }, - { - "properties": { - "topic": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_eventgrid_test_eventgrid31ec0fa8", - "provisioningState": "Succeeded", - "destination": { - "properties": { - "endpointUrl": null, - "endpointBaseUrl": "https://cjfpython2.azurewebsites.net/api/updates", - "maxEventsPerBatch": 1, - "preferredBatchSizeInKilobytes": 64 - }, - "endpointType": "WebHook" - }, - "filter": { - "subjectBeginsWith": "ExamplePrefix", - "subjectEndsWith": "ExampleSuffix", - "includedEventTypes": [ - "Microsoft.Resources.ResourceWriteSuccess", - "Microsoft.Resources.ResourceWriteFailure", - "Microsoft.Resources.ResourceWriteCancel", - "Microsoft.Resources.ResourceDeleteSuccess", - "Microsoft.Resources.ResourceDeleteFailure", - "Microsoft.Resources.ResourceDeleteCancel", - "Microsoft.Resources.ResourceActionSuccess", - "Microsoft.Resources.ResourceActionFailure", - "Microsoft.Resources.ResourceActionCancel" - ] - }, - "labels": null, - "eventDeliverySchema": "EventGridSchema", - "retryPolicy": { - "maxDeliveryAttempts": 30, - "eventTimeToLiveInMinutes": 1440 - } - }, - "systemData": null, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_eventgrid_test_eventgrid31ec0fa8/providers/Microsoft.EventGrid/eventSubscriptions/examplesubscription3", - "name": "examplesubscription3", - "type": "Microsoft.EventGrid/eventSubscriptions" - }, - { - "properties": { - "topic": "/subscriptions/00000000-0000-0000-0000-000000000000", - "provisioningState": "Succeeded", - "destination": { - "properties": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/eventhubnaWkloZ9/eventhubs/eventhubs" - }, - "endpointType": "EventHub" - }, - "filter": { - "subjectBeginsWith": "", - "subjectEndsWith": "", - "includedEventTypes": [ - "Microsoft.Resources.ResourceWriteSuccess", - "Microsoft.Resources.ResourceWriteFailure", - "Microsoft.Resources.ResourceWriteCancel", - "Microsoft.Resources.ResourceDeleteSuccess", - "Microsoft.Resources.ResourceDeleteFailure", - "Microsoft.Resources.ResourceDeleteCancel", - "Microsoft.Resources.ResourceActionSuccess", - "Microsoft.Resources.ResourceActionFailure", - "Microsoft.Resources.ResourceActionCancel" - ] - }, - "labels": null, - "eventDeliverySchema": "EventGridSchema", - "retryPolicy": { - "maxDeliveryAttempts": 30, - "eventTimeToLiveInMinutes": 1440 - } - }, - "systemData": null, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscWkloZ9", - "name": "eventsubscWkloZ9", - "type": "Microsoft.EventGrid/eventSubscriptions" - } - ], - "nextLink": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/eventSubscriptions?api-version=2022-06-15\u0026$skiptoken=%5b%7b%22token%22%3anull%2c%22range%22%3a%7b%22min%22%3a%2205C1E0%22%2c%22max%22%3a%22FF%22%7d%7d%5d\u0026$top=20" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/topicTypes/Microsoft.Resources.Subscriptions/eventSubscriptions?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:30:04 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11967", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063005Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "properties": { - "topic": "/subscriptions/00000000-0000-0000-0000-000000000000", - "provisioningState": "Succeeded", - "destination": { - "properties": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/eventhubnaWkloZ9/eventhubs/eventhubs" - }, - "endpointType": "EventHub" - }, - "filter": { - "subjectBeginsWith": "", - "subjectEndsWith": "", - "includedEventTypes": [ - "Microsoft.Resources.ResourceWriteSuccess", - "Microsoft.Resources.ResourceWriteFailure", - "Microsoft.Resources.ResourceWriteCancel", - "Microsoft.Resources.ResourceDeleteSuccess", - "Microsoft.Resources.ResourceDeleteFailure", - "Microsoft.Resources.ResourceDeleteCancel", - "Microsoft.Resources.ResourceActionSuccess", - "Microsoft.Resources.ResourceActionFailure", - "Microsoft.Resources.ResourceActionCancel" - ] - }, - "labels": null, - "eventDeliverySchema": "EventGridSchema", - "retryPolicy": { - "maxDeliveryAttempts": 30, - "eventTimeToLiveInMinutes": 1440 - } - }, - "systemData": null, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscWkloZ9", - "name": "eventsubscWkloZ9", - "type": "Microsoft.EventGrid/eventSubscriptions" - } - ], - "nextLink": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/topicTypes/Microsoft.Resources.Subscriptions/eventSubscriptions?api-version=2022-06-15\u0026$skiptoken=%5b%7b%22token%22%3anull%2c%22range%22%3a%7b%22min%22%3a%2205C1E0%22%2c%22max%22%3a%22FF%22%7d%7d%5d\u0026$top=20" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/eventSubscriptions?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:30:05 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11966", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063006Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/locations/eastus/eventSubscriptions?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:30:05 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11965", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063006Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/domains/domainnameWkloZ9/topics/topicnameWkloZ9/providers/Microsoft.EventGrid/eventSubscriptions?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:30:06 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11964", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063007Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscWkloZ9?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:30:06 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11963", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063007Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "topic": "/subscriptions/00000000-0000-0000-0000-000000000000", - "provisioningState": "Succeeded", - "destination": { - "properties": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/eventhubnaWkloZ9/eventhubs/eventhubs" - }, - "endpointType": "EventHub" - }, - "filter": { - "subjectBeginsWith": "", - "subjectEndsWith": "", - "includedEventTypes": [ - "Microsoft.Resources.ResourceWriteSuccess", - "Microsoft.Resources.ResourceWriteFailure", - "Microsoft.Resources.ResourceWriteCancel", - "Microsoft.Resources.ResourceDeleteSuccess", - "Microsoft.Resources.ResourceDeleteFailure", - "Microsoft.Resources.ResourceDeleteCancel", - "Microsoft.Resources.ResourceActionSuccess", - "Microsoft.Resources.ResourceActionFailure", - "Microsoft.Resources.ResourceActionCancel" - ] - }, - "labels": null, - "eventDeliverySchema": "EventGridSchema", - "retryPolicy": { - "maxDeliveryAttempts": 30, - "eventTimeToLiveInMinutes": 1440 - } - }, - "systemData": null, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscWkloZ9", - "name": "eventsubscWkloZ9", - "type": "Microsoft.EventGrid/eventSubscriptions" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus/eventSubscriptions?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:30:07 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11962", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063008Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus/topicTypes/Microsoft.EventHub.namespaces/eventSubscriptions?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:30:07 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11961", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063008Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/locations/eastus/topicTypes/Microsoft.EventHub.namespaces/eventSubscriptions?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:30:08 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11960", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063008Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/topics/topicnameWkloZ9/providers/Microsoft.EventGrid/eventSubscriptions?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:30:08 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11959", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063009Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/topicTypes/Microsoft.Resources.ResourceGroups/eventSubscriptions?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:30:09 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11958", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063010Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscWkloZ9?api-version=2022-06-15", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "labels": [ - "label1" - ] - }, - "StatusCode": 201, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationsStatus/69FA2561-C980-4CC0-8E63-92E61C40232C?api-version=2022-06-15", - "Cache-Control": "no-cache", - "Content-Length": "1158", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:30:09 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "10", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "898", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063010Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "topic": "/subscriptions/00000000-0000-0000-0000-000000000000", - "provisioningState": "Updating", - "destination": { - "properties": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/eventhubnaWkloZ9/eventhubs/eventhubs" - }, - "endpointType": "EventHub" - }, - "filter": { - "subjectBeginsWith": "", - "subjectEndsWith": "", - "includedEventTypes": [ - "Microsoft.Resources.ResourceWriteSuccess", - "Microsoft.Resources.ResourceWriteFailure", - "Microsoft.Resources.ResourceWriteCancel", - "Microsoft.Resources.ResourceDeleteSuccess", - "Microsoft.Resources.ResourceDeleteFailure", - "Microsoft.Resources.ResourceDeleteCancel", - "Microsoft.Resources.ResourceActionSuccess", - "Microsoft.Resources.ResourceActionFailure", - "Microsoft.Resources.ResourceActionCancel" - ] - }, - "labels": [ - "label1" - ], - "eventDeliverySchema": "EventGridSchema", - "retryPolicy": { - "maxDeliveryAttempts": 30, - "eventTimeToLiveInMinutes": 1440 - } - }, - "systemData": null, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscWkloZ9", - "name": "eventsubscWkloZ9", - "type": "Microsoft.EventGrid/eventSubscriptions" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationsStatus/69FA2561-C980-4CC0-8E63-92E61C40232C?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:30:20 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11957", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063021Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationsStatus/69FA2561-C980-4CC0-8E63-92E61C40232C?api-version=2022-06-15", - "name": "00000000-0000-0000-0000-000000000000", - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscWkloZ9?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:30:20 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11956", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063021Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "topic": "/subscriptions/00000000-0000-0000-0000-000000000000", - "provisioningState": "Succeeded", - "destination": { - "properties": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/eventhubnaWkloZ9/eventhubs/eventhubs" - }, - "endpointType": "EventHub" - }, - "filter": { - "subjectBeginsWith": "", - "subjectEndsWith": "", - "includedEventTypes": [ - "Microsoft.Resources.ResourceWriteSuccess", - "Microsoft.Resources.ResourceWriteFailure", - "Microsoft.Resources.ResourceWriteCancel", - "Microsoft.Resources.ResourceDeleteSuccess", - "Microsoft.Resources.ResourceDeleteFailure", - "Microsoft.Resources.ResourceDeleteCancel", - "Microsoft.Resources.ResourceActionSuccess", - "Microsoft.Resources.ResourceActionFailure", - "Microsoft.Resources.ResourceActionCancel" - ] - }, - "labels": [ - "label1" - ], - "eventDeliverySchema": "EventGridSchema", - "retryPolicy": { - "maxDeliveryAttempts": 30, - "eventTimeToLiveInMinutes": 1440 - } - }, - "systemData": null, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscWkloZ9", - "name": "eventsubscWkloZ9", - "type": "Microsoft.EventGrid/eventSubscriptions" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscWkloZ9/getDeliveryAttributes?api-version=2022-06-15", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:30:20 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1195", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063021Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": null - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/eventSubscriptions/eventsubscWkloZ9?api-version=2022-06-15", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationsStatus/310D403A-0F00-43E0-9312-0556A90BEB6B?api-version=2022-06-15", - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 31 Oct 2022 06:30:22 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationResults/310D403A-0F00-43E0-9312-0556A90BEB6B?api-version=2022-06-15", - "Pragma": "no-cache", - "Retry-After": "10", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14996", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063023Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationsStatus/310D403A-0F00-43E0-9312-0556A90BEB6B?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:30:33 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11955", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063034Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationsStatus/310D403A-0F00-43E0-9312-0556A90BEB6B?api-version=2022-06-15", - "name": "00000000-0000-0000-0000-000000000000", - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.EventGrid/operations?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:30:34 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-tenant-reads": "11999", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063034Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "name": "Microsoft.EventGrid/register/action", - "display": { - "provider": "Microsoft Event Grid", - "resource": "EventGrid Resource Provider", - "operation": "Registers EventGrid Resource Provider", - "description": "Registers the subscription for the EventGrid resource provider." - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/unregister/action", - "display": { - "provider": "Microsoft Event Grid", - "resource": "EventGrid Resource Provider", - "operation": "Unregisters EventGrid Resource Provider", - "description": "Unregisters the subscription for the EventGrid resource provider." - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/operations/read", - "display": { - "provider": "Microsoft Event Grid", - "resource": "EventGrid Resource Provider", - "operation": "List EventGrid Operations", - "description": "List EventGrid operations." - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/extensionTopics/read", - "display": { - "provider": "Microsoft Event Grid", - "resource": "extensionTopics", - "operation": "Read ExtensionTopic", - "description": "Read an extensionTopic." - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/topictypes/read", - "display": { - "provider": "Microsoft Event Grid", - "resource": "topictypes", - "operation": "Read TopicType", - "description": "Read a topictype" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/topictypes/eventtypes/read", - "display": { - "provider": "Microsoft Event Grid", - "resource": "eventtypes", - "operation": "Read EventTypes Of TopicType", - "description": "Read eventtypes supported by a topictype" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/operationResults/read", - "display": { - "provider": "Microsoft Event Grid", - "resource": "operationResults", - "operation": "Read Global OperationResult", - "description": "Read the result of an operation" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/locations/operationResults/read", - "display": { - "provider": "Microsoft Event Grid", - "resource": "Regional OperationResults", - "operation": "Read Regional OperationResult", - "description": "Read the result of a regional operation" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/operationsStatus/read", - "display": { - "provider": "Microsoft Event Grid", - "resource": "operationsStatus", - "operation": "Read Global OperationsStatus", - "description": "Read the status of an operation" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/locations/operationsStatus/read", - "display": { - "provider": "Microsoft Event Grid", - "resource": "Regional OperationsStatus", - "operation": "Read Regional OperationsStatus", - "description": "Read the status of a regional operation" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/eventSubscriptions/write", - "display": { - "provider": "Microsoft Event Grid", - "resource": "eventSubscriptions", - "operation": "Write EventSubscription", - "description": "Create or update a eventSubscription" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/eventSubscriptions/read", - "display": { - "provider": "Microsoft Event Grid", - "resource": "eventSubscriptions", - "operation": "Read EventSubscription", - "description": "Read a eventSubscription" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/topictypes/eventSubscriptions/read", - "display": { - "provider": "Microsoft Event Grid", - "resource": "eventSubscriptions", - "operation": "List global event subscriptions by topic type", - "description": "List global event subscriptions by topic type" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/locations/eventSubscriptions/read", - "display": { - "provider": "Microsoft Event Grid", - "resource": "eventSubscriptions", - "operation": "List regional event subscriptions", - "description": "List regional event subscriptions" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/locations/topictypes/eventSubscriptions/read", - "display": { - "provider": "Microsoft Event Grid", - "resource": "eventSubscriptions", - "operation": "List regional event subscriptions by topictype", - "description": "List regional event subscriptions by topictype" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/eventSubscriptions/delete", - "display": { - "provider": "Microsoft Event Grid", - "resource": "eventSubscriptions", - "operation": "Delete EventSubscription", - "description": "Delete a eventSubscription" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/eventSubscriptions/getFullUrl/action", - "display": { - "provider": "Microsoft Event Grid", - "resource": "eventSubscriptions", - "operation": "Get FullUrl of EventSubscription", - "description": "Get full url for the event subscription" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/domains/write", - "display": { - "provider": "Microsoft Event Grid", - "resource": "domains", - "operation": "Write Domain", - "description": "Create or update a domain" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/domains/read", - "display": { - "provider": "Microsoft Event Grid", - "resource": "domains", - "operation": "Read Domain", - "description": "Read a domain" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/domains/delete", - "display": { - "provider": "Microsoft Event Grid", - "resource": "domains", - "operation": "Delete Domain", - "description": "Delete a domain" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/domains/listKeys/action", - "display": { - "provider": "Microsoft Event Grid", - "resource": "domains", - "operation": "List Domain Keys", - "description": "List keys for a domain" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/domains/regenerateKey/action", - "display": { - "provider": "Microsoft Event Grid", - "resource": "domains", - "operation": "Regenerate Domain Key", - "description": "Regenerate key for a domain" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/domains/topics/read", - "display": { - "provider": "Microsoft Event Grid", - "resource": "domaintopics", - "operation": "Read Domain Topic", - "description": "Read a domain topic" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/domains/topics/write", - "display": { - "provider": "Microsoft Event Grid", - "resource": "domaintopics", - "operation": "Write Domain Topic", - "description": "Create or update a domain topic" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/domains/topics/delete", - "display": { - "provider": "Microsoft Event Grid", - "resource": "domaintopics", - "operation": "Delete Domain Topic", - "description": "Delete a domain topic" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/domains/providers/Microsoft.Insights/metricDefinitions/read", - "display": { - "provider": "Microsoft Event Grid", - "resource": "Domains Metrics", - "operation": "Read domains metric definitions", - "description": "Gets the available metrics for domains" - }, - "origin": "System", - "properties": { - "serviceSpecification": { - "metricSpecifications": [ - { - "name": "PublishSuccessCount", - "displayName": "Published Events", - "displayDescription": "Total events published to this topic", - "unit": "Count", - "aggregationType": "Total", - "internalMetricName": "PublishSuccessCount", - "fillGapWithZero": true, - "isDimensionRequired": false, - "resourceIdDimensionNameOverride": null, - "sourceMdmAccount": "AzureEventGrid", - "sourceMdmNamespace": "ResourceMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "Topic", - "internalName": "SubResourceId" - } - ] - }, - { - "name": "PublishFailCount", - "displayName": "Publish Failed Events", - "displayDescription": "Total events failed to publish to this topic", - "unit": "Count", - "aggregationType": "Total", - "internalMetricName": "PublishFailCount", - "fillGapWithZero": true, - "isDimensionRequired": false, - "resourceIdDimensionNameOverride": null, - "sourceMdmAccount": "AzureEventGrid", - "sourceMdmNamespace": "ResourceMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "Topic", - "internalName": "SubResourceId" - }, - { - "name": "ErrorType" - }, - { - "name": "Error" - } - ] - }, - { - "name": "PublishSuccessLatencyInMs", - "displayName": "Publish Success Latency", - "displayDescription": "Publish success latency in milliseconds", - "unit": "Milliseconds", - "aggregationType": "Total", - "internalMetricName": "PublishSuccessLatencyInMs", - "fillGapWithZero": true, - "isDimensionRequired": false, - "resourceIdDimensionNameOverride": null, - "sourceMdmAccount": "AzureEventGrid", - "sourceMdmNamespace": "ResourceMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [] - }, - { - "name": "AdvancedFilterEvaluationCount", - "displayName": "Advanced Filter Evaluations", - "displayDescription": "Total advanced filters evaluated across event subscriptions for this topic.", - "unit": "Count", - "aggregationType": "Total", - "internalMetricName": "AdvancedFilterEvaluationCount", - "fillGapWithZero": true, - "isDimensionRequired": false, - "resourceIdDimensionNameOverride": null, - "sourceMdmAccount": "AzureEventGrid", - "sourceMdmNamespace": "ResourceMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "Topic", - "internalName": "SubResourceId" - }, - { - "name": "EventSubscriptionName" - }, - { - "name": "DomainEventSubscriptionName" - } - ] - }, - { - "name": "MatchedEventCount", - "displayName": "Matched Events", - "displayDescription": "Total events matched to this event subscription", - "unit": "Count", - "aggregationType": "Total", - "internalMetricName": "MatchedEventCount", - "fillGapWithZero": true, - "isDimensionRequired": false, - "resourceIdDimensionNameOverride": null, - "sourceMdmAccount": "AzureEventGrid", - "sourceMdmNamespace": "ResourceMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "Topic", - "internalName": "SubResourceId" - }, - { - "name": "EventSubscriptionName" - }, - { - "name": "DomainEventSubscriptionName" - } - ] - }, - { - "name": "DeliveryAttemptFailCount", - "displayName": "Delivery Failed Events", - "displayDescription": "Total events failed to deliver to this event subscription", - "unit": "Count", - "aggregationType": "Total", - "internalMetricName": "DeliveryFailCount", - "fillGapWithZero": true, - "isDimensionRequired": false, - "resourceIdDimensionNameOverride": null, - "sourceMdmAccount": "AzureEventGrid", - "sourceMdmNamespace": "ResourceMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "Topic", - "internalName": "SubResourceId" - }, - { - "name": "EventSubscriptionName" - }, - { - "name": "DomainEventSubscriptionName" - }, - { - "name": "Error" - }, - { - "name": "ErrorType" - } - ] - }, - { - "name": "DeliverySuccessCount", - "displayName": "Delivered Events", - "displayDescription": "Total events delivered to this event subscription", - "unit": "Count", - "aggregationType": "Total", - "internalMetricName": "DeliverySuccessCount", - "fillGapWithZero": true, - "isDimensionRequired": false, - "resourceIdDimensionNameOverride": null, - "sourceMdmAccount": "AzureEventGrid", - "sourceMdmNamespace": "ResourceMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "Topic", - "internalName": "SubResourceId" - }, - { - "name": "EventSubscriptionName" - }, - { - "name": "DomainEventSubscriptionName" - } - ] - }, - { - "name": "DestinationProcessingDurationInMs", - "displayName": "Destination Processing Duration", - "displayDescription": "Destination processing duration in milliseconds", - "unit": "Milliseconds", - "aggregationType": "Average", - "internalMetricName": "DestinationProcessingDelay", - "fillGapWithZero": true, - "isDimensionRequired": false, - "resourceIdDimensionNameOverride": null, - "sourceMdmAccount": "AzureEventGrid", - "sourceMdmNamespace": "ResourceMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "Topic", - "internalName": "SubResourceId" - }, - { - "name": "EventSubscriptionName" - }, - { - "name": "DomainEventSubscriptionName" - } - ] - }, - { - "name": "DroppedEventCount", - "displayName": "Dropped Events", - "displayDescription": "Total dropped events matching to this event subscription", - "unit": "Count", - "aggregationType": "Total", - "internalMetricName": "DroppedEventCount", - "fillGapWithZero": true, - "isDimensionRequired": false, - "resourceIdDimensionNameOverride": null, - "sourceMdmAccount": "AzureEventGrid", - "sourceMdmNamespace": "ResourceMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "Topic", - "internalName": "SubResourceId" - }, - { - "name": "EventSubscriptionName" - }, - { - "name": "DomainEventSubscriptionName" - }, - { - "name": "DropReason" - } - ] - }, - { - "name": "DeadLetteredCount", - "displayName": "Dead Lettered Events", - "displayDescription": "Total dead lettered events matching to this event subscription", - "unit": "Count", - "aggregationType": "Total", - "internalMetricName": "DeadLetteredCount", - "fillGapWithZero": true, - "isDimensionRequired": false, - "resourceIdDimensionNameOverride": null, - "sourceMdmAccount": "AzureEventGrid", - "sourceMdmNamespace": "ResourceMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "Topic", - "internalName": "SubResourceId" - }, - { - "name": "EventSubscriptionName" - }, - { - "name": "DomainEventSubscriptionName" - }, - { - "name": "DeadLetterReason" - } - ] - } - ], - "logSpecifications": null - } - } - }, - { - "name": "Microsoft.EventGrid/partnerRegistrations/write", - "display": { - "provider": "Microsoft Event Grid", - "resource": "partnerRegistrations", - "operation": "Write PartnerRegistration", - "description": "Create or update a partner registration" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/partnerRegistrations/read", - "display": { - "provider": "Microsoft Event Grid", - "resource": "partnerRegistrations", - "operation": "Read PartnerRegistration", - "description": "Read a partner registration" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/partnerRegistrations/delete", - "display": { - "provider": "Microsoft Event Grid", - "resource": "partnerRegistrations", - "operation": "Delete PartnerRegistration", - "description": "Delete a partner registration" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/partnerNamespaces/write", - "display": { - "provider": "Microsoft Event Grid", - "resource": "partnerNamespaces", - "operation": "Write PartnerNamespace", - "description": "Create or update a partner namespace" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/partnerNamespaces/read", - "display": { - "provider": "Microsoft Event Grid", - "resource": "partnerNamespaces", - "operation": "Read PartnerNamespace", - "description": "Read a partner namespace" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/partnerNamespaces/delete", - "display": { - "provider": "Microsoft Event Grid", - "resource": "partnerNamespaces", - "operation": "Delete PartnerNamespace", - "description": "Delete a partner namespace" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/partnerNamespaces/listKeys/action", - "display": { - "provider": "Microsoft Event Grid", - "resource": "partnerNamespaces", - "operation": "List PartnerNamespace keys", - "description": "List keys for a partner namespace" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/partnerNamespaces/regenerateKey/action", - "display": { - "provider": "Microsoft Event Grid", - "resource": "partnerNamespaces", - "operation": "Regenerate PartnerNamespace key", - "description": "Regenerate key for a partner namespace" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/partnerNamespaces/eventChannels/read", - "display": { - "provider": "Microsoft Event Grid", - "resource": "eventChannels", - "operation": "Read EventChannel", - "description": "Read an event channel" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/partnerNamespaces/eventChannels/write", - "display": { - "provider": "Microsoft Event Grid", - "resource": "eventChannels", - "operation": "Write EventChannel", - "description": "Create or update an event channel" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/partnerNamespaces/eventChannels/delete", - "display": { - "provider": "Microsoft Event Grid", - "resource": "eventChannels", - "operation": "Delete EventChannel", - "description": "Delete an event channel" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/partnerNamespaces/eventChannels/channelReadinessStateChange/action", - "display": { - "provider": "Microsoft Event Grid", - "resource": "eventChannels", - "operation": "Change EventChannel state", - "description": "Change event channel readiness state" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/partnerNamespaces/eventChannels/SetEventChannelToIdle", - "display": { - "provider": "Microsoft Event Grid", - "resource": "eventChannels", - "operation": "Set provisioning status of EventChannel to idle", - "description": "Set provisioning status of event channel to idle" - }, - "origin": "System" - }, - { - "name": "Microsoft.EventGrid/partnerTopics/read", - "display": { - "provider": "Microsoft Event Grid", - "resource": "partnerTopics", - "operation": "Read PartnerTopic", - "description": "Read a partner topic" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/partnerTopics/write", - "display": { - "provider": "Microsoft Event Grid", - "resource": "partnerTopics", - "operation": "Write PartnerTopic", - "description": "Create or update a partner topic" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/partnerTopics/delete", - "display": { - "provider": "Microsoft Event Grid", - "resource": "partnerTopics", - "operation": "Delete PartnerTopic", - "description": "Delete a partner topic" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/partnerTopics/setToIdleState", - "display": { - "provider": "Microsoft Event Grid", - "resource": "partnerTopics", - "operation": "Set provisioning status of PartnerTopic to idle", - "description": "Set provisioning status of partner topic to idle" - }, - "origin": "System" - }, - { - "name": "Microsoft.EventGrid/partnerTopics/reLinkPartnerTopic", - "display": { - "provider": "Microsoft Event Grid", - "resource": "partnerTopics", - "operation": "Re-link a PartnerTopic to a newly created channel", - "description": "Re-link an idle PartnerTopic to a newly created channel" - }, - "origin": "System" - }, - { - "name": "Microsoft.EventGrid/partnerTopics/activate/action", - "display": { - "provider": "Microsoft Event Grid", - "resource": "partnerTopics", - "operation": "Activate PartnerTopic", - "description": "Activate a partner topic" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/partnerTopics/deactivate/action", - "display": { - "provider": "Microsoft Event Grid", - "resource": "partnerTopics", - "operation": "Deactivate PartnerTopic", - "description": "Deactivate a partner topic" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/partnerTopics/eventSubscriptions/write", - "display": { - "provider": "Microsoft Event Grid", - "resource": "eventSubscriptions", - "operation": "Write PartnerTopic EventSubscription", - "description": "Create or update a PartnerTopic eventSubscription" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/partnerTopics/eventSubscriptions/read", - "display": { - "provider": "Microsoft Event Grid", - "resource": "eventSubscriptions", - "operation": "Read PartnerTopic EventSubscription", - "description": "Read a partner topic event subscription" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/partnerTopics/eventSubscriptions/delete", - "display": { - "provider": "Microsoft Event Grid", - "resource": "eventSubscriptions", - "operation": "Delete PartnerTopic EventSubscription", - "description": "Delete a partner topic event subscription" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/partnerTopics/eventSubscriptions/getFullUrl/action", - "display": { - "provider": "Microsoft Event Grid", - "resource": "eventSubscriptions", - "operation": "Get FullUrl of PartnerTopic EventSubscription", - "description": "Get full url for the partner topic event subscription" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/partnerNamespaces/channels/read", - "display": { - "provider": "Microsoft Event Grid", - "resource": "channels", - "operation": "Read Channel", - "description": "Read a channel" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/partnerNamespaces/channels/write", - "display": { - "provider": "Microsoft Event Grid", - "resource": "channels", - "operation": "Write Channel", - "description": "Create or update a channel" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/partnerNamespaces/channels/delete", - "display": { - "provider": "Microsoft Event Grid", - "resource": "channels", - "operation": "Delete Channel", - "description": "Delete a channel" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/partnerNamespaces/channels/channelReadinessStateChange/action", - "display": { - "provider": "Microsoft Event Grid", - "resource": "channels", - "operation": "Change Channel state", - "description": "Change channel readiness state" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/partnerNamespaces/channels/getFullUrl/action", - "display": { - "provider": "Microsoft Event Grid", - "resource": "channels", - "operation": "Get FullUrl of PartnerDestination Channel", - "description": "Get full url for the partner destination channel" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/partnerNamespaces/channels/SetChannelToIdle", - "display": { - "provider": "Microsoft Event Grid", - "resource": "channels", - "operation": "Set provisioning status of Channel to idle", - "description": "Set provisioning status of channel to idle" - }, - "origin": "System" - }, - { - "name": "Microsoft.EventGrid/partnerDestinations/read", - "display": { - "provider": "Microsoft Event Grid", - "resource": "partnerDestinations", - "operation": "Read PartnerDestination", - "description": "Read a partner destination" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/partnerDestinations/write", - "display": { - "provider": "Microsoft Event Grid", - "resource": "partnerDestinations", - "operation": "Write PartnerDestination", - "description": "Create or update a partner destination" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/partnerDestinations/delete", - "display": { - "provider": "Microsoft Event Grid", - "resource": "partnerDestinations", - "operation": "Delete PartnerDestination", - "description": "Delete a partner destination" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/partnerDestinations/activate/action", - "display": { - "provider": "Microsoft Event Grid", - "resource": "partnerDestinations", - "operation": "Activate PartnerDestination", - "description": "Activate a partner destination" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/partnerDestinations/getPartnerDestinationChannelInfo/action", - "display": { - "provider": "Microsoft Event Grid", - "resource": "partnerDestinations", - "operation": "Get Channel details of activated PartnerDestination", - "description": "Get channel details of activated partner destination" - }, - "origin": "System" - }, - { - "name": "Microsoft.EventGrid/partnerConfigurations/read", - "display": { - "provider": "Microsoft Event Grid", - "resource": "partnerConfigurations", - "operation": "Read PartnerConfiguration", - "description": "Read a partner configuration" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/partnerConfigurations/write", - "display": { - "provider": "Microsoft Event Grid", - "resource": "partnerConfigurations", - "operation": "Write PartnerConfiguration", - "description": "Create or update a partner configuration" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/partnerConfigurations/delete", - "display": { - "provider": "Microsoft Event Grid", - "resource": "partnerConfigurations", - "operation": "Delete PartnerConfiguration", - "description": "Delete a partner configuration" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/partnerConfigurations/authorizePartner/action", - "display": { - "provider": "Microsoft Event Grid", - "resource": "partnerConfigurations", - "operation": "Authorize Partner", - "description": "Authorize a partner in the partner configuration" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/partnerConfigurations/unauthorizePartner/action", - "display": { - "provider": "Microsoft Event Grid", - "resource": "partnerConfigurations", - "operation": "Unauthorize Partner", - "description": "Unauthorize a partner in the partner configuration" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/verifiedPartners/read", - "display": { - "provider": "Microsoft Event Grid", - "resource": "verifiedPartners", - "operation": "Read VerifiedPartner", - "description": "Read a verified partner" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/systemTopics/eventSubscriptions/write", - "display": { - "provider": "Microsoft Event Grid", - "resource": "eventSubscriptions", - "operation": "Write SystemTopic EventSubscription", - "description": "Create or update a SystemTopic eventSubscription" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/systemTopics/eventSubscriptions/read", - "display": { - "provider": "Microsoft Event Grid", - "resource": "eventSubscriptions", - "operation": "Read SystemTopic EventSubscription", - "description": "Read a SystemTopic eventSubscription" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/systemTopics/eventSubscriptions/delete", - "display": { - "provider": "Microsoft Event Grid", - "resource": "eventSubscriptions", - "operation": "Delete SystemTopic EventSubscription", - "description": "Delete a SystemTopic eventSubscription" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/systemTopics/eventSubscriptions/getFullUrl/action", - "display": { - "provider": "Microsoft Event Grid", - "resource": "eventSubscriptions", - "operation": "Get FullUrl of SystemTopic EventSubscription", - "description": "Get full url for the SystemTopic event subscription" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/topics/eventSubscriptions/write", - "display": { - "provider": "Microsoft Event Grid", - "resource": "eventSubscriptions", - "operation": "Write Topic EventSubscription", - "description": "Create or update a Topic eventSubscription" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/topics/eventSubscriptions/read", - "display": { - "provider": "Microsoft Event Grid", - "resource": "eventSubscriptions", - "operation": "Read Topic EventSubscription", - "description": "Read a Topic eventSubscription" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/topics/eventSubscriptions/delete", - "display": { - "provider": "Microsoft Event Grid", - "resource": "eventSubscriptions", - "operation": "Delete Topic EventSubscription", - "description": "Delete a Topic eventSubscription" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/topics/eventSubscriptions/getFullUrl/action", - "display": { - "provider": "Microsoft Event Grid", - "resource": "eventSubscriptions", - "operation": "Get FullUrl of Topic EventSubscription", - "description": "Get full url for the Topic event subscription" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/domains/eventSubscriptions/write", - "display": { - "provider": "Microsoft Event Grid", - "resource": "eventSubscriptions", - "operation": "Write Domain EventSubscription", - "description": "Create or update a Domain eventSubscription" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/domains/eventSubscriptions/read", - "display": { - "provider": "Microsoft Event Grid", - "resource": "eventSubscriptions", - "operation": "Read Domain EventSubscription", - "description": "Read a Domain eventSubscription" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/domains/eventSubscriptions/delete", - "display": { - "provider": "Microsoft Event Grid", - "resource": "eventSubscriptions", - "operation": "Delete Domain EventSubscription", - "description": "Delete a Domain eventSubscription" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/domains/eventSubscriptions/getFullUrl/action", - "display": { - "provider": "Microsoft Event Grid", - "resource": "eventSubscriptions", - "operation": "Get FullUrl of Domain EventSubscription", - "description": "Get full url for the Domain event subscription" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/domains/topics/eventSubscriptions/write", - "display": { - "provider": "Microsoft Event Grid", - "resource": "eventSubscriptions", - "operation": "Write DomainTopic EventSubscription", - "description": "Create or update a DomainTopic eventSubscription" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/domains/topics/eventSubscriptions/read", - "display": { - "provider": "Microsoft Event Grid", - "resource": "eventSubscriptions", - "operation": "Read DomainTopic EventSubscription", - "description": "Read a DomainTopic eventSubscription" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/domains/topics/eventSubscriptions/delete", - "display": { - "provider": "Microsoft Event Grid", - "resource": "eventSubscriptions", - "operation": "Delete DomainTopic EventSubscription", - "description": "Delete a DomainTopic eventSubscription" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/domains/topics/eventSubscriptions/getFullUrl/action", - "display": { - "provider": "Microsoft Event Grid", - "resource": "eventSubscriptions", - "operation": "Get FullUrl of DomainTopic EventSubscription", - "description": "Get full url for the DomainTopic event subscription" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/topics/write", - "display": { - "provider": "Microsoft Event Grid", - "resource": "topics", - "operation": "Write Topic", - "description": "Create or update a topic" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/topics/read", - "display": { - "provider": "Microsoft Event Grid", - "resource": "topics", - "operation": "Read Topic", - "description": "Read a topic" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/topics/delete", - "display": { - "provider": "Microsoft Event Grid", - "resource": "topics", - "operation": "Delete Topic", - "description": "Delete a topic" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/topics/listKeys/action", - "display": { - "provider": "Microsoft Event Grid", - "resource": "topics", - "operation": "List Topic Keys", - "description": "List keys for a topic" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/topics/regenerateKey/action", - "display": { - "provider": "Microsoft Event Grid", - "resource": "topics", - "operation": "Regenerate Topic Key", - "description": "Regenerate key for a topic" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/systemTopics/read", - "display": { - "provider": "Microsoft Event Grid", - "resource": "systemTopics", - "operation": "Read System Topic", - "description": "Read a system topic" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/systemTopics/write", - "display": { - "provider": "Microsoft Event Grid", - "resource": "systemTopics", - "operation": "Write System Topic", - "description": "Create or update a system topic" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/systemTopics/delete", - "display": { - "provider": "Microsoft Event Grid", - "resource": "systemTopics", - "operation": "Delete System Topic", - "description": "Delete a system topic" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/topics/providers/Microsoft.Insights/metricDefinitions/read", - "display": { - "provider": "Microsoft Event Grid", - "resource": "Topics Metrics", - "operation": "Read topic metric definitions", - "description": "Gets the available metrics for topics" - }, - "origin": "System", - "properties": { - "serviceSpecification": { - "metricSpecifications": [ - { - "name": "PublishSuccessCount", - "displayName": "Published Events", - "displayDescription": "Total events published to this topic", - "unit": "Count", - "aggregationType": "Total", - "internalMetricName": "PublishSuccessCount", - "fillGapWithZero": true, - "isDimensionRequired": false, - "resourceIdDimensionNameOverride": null, - "sourceMdmAccount": "AzureEventGrid", - "sourceMdmNamespace": "ResourceMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [] - }, - { - "name": "PublishFailCount", - "displayName": "Publish Failed Events", - "displayDescription": "Total events failed to publish to this topic", - "unit": "Count", - "aggregationType": "Total", - "internalMetricName": "PublishFailCount", - "fillGapWithZero": true, - "isDimensionRequired": false, - "resourceIdDimensionNameOverride": null, - "sourceMdmAccount": "AzureEventGrid", - "sourceMdmNamespace": "ResourceMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "ErrorType" - }, - { - "name": "Error" - } - ] - }, - { - "name": "UnmatchedEventCount", - "displayName": "Unmatched Events", - "displayDescription": "Total events not matching any of the event subscriptions for this topic", - "unit": "Count", - "aggregationType": "Total", - "internalMetricName": "UnmatchedEventCount", - "fillGapWithZero": true, - "isDimensionRequired": false, - "resourceIdDimensionNameOverride": null, - "sourceMdmAccount": "AzureEventGrid", - "sourceMdmNamespace": "ResourceMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [] - }, - { - "name": "PublishSuccessLatencyInMs", - "displayName": "Publish Success Latency", - "displayDescription": "Publish success latency in milliseconds", - "unit": "Milliseconds", - "aggregationType": "Total", - "internalMetricName": "PublishSuccessLatencyInMs", - "fillGapWithZero": true, - "isDimensionRequired": false, - "resourceIdDimensionNameOverride": null, - "sourceMdmAccount": "AzureEventGrid", - "sourceMdmNamespace": "ResourceMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [] - }, - { - "name": "AdvancedFilterEvaluationCount", - "displayName": "Advanced Filter Evaluations", - "displayDescription": "Total advanced filters evaluated across event subscriptions for this topic.", - "unit": "Count", - "aggregationType": "Total", - "internalMetricName": "AdvancedFilterEvaluationCount", - "fillGapWithZero": true, - "isDimensionRequired": false, - "resourceIdDimensionNameOverride": null, - "sourceMdmAccount": "AzureEventGrid", - "sourceMdmNamespace": "ResourceMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "EventSubscriptionName" - } - ] - }, - { - "name": "MatchedEventCount", - "displayName": "Matched Events", - "displayDescription": "Total events matched to this event subscription", - "unit": "Count", - "aggregationType": "Total", - "internalMetricName": "MatchedEventCount", - "fillGapWithZero": true, - "isDimensionRequired": false, - "resourceIdDimensionNameOverride": null, - "sourceMdmAccount": "AzureEventGrid", - "sourceMdmNamespace": "ResourceMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "EventSubscriptionName" - } - ] - }, - { - "name": "DeliveryAttemptFailCount", - "displayName": "Delivery Failed Events", - "displayDescription": "Total events failed to deliver to this event subscription", - "unit": "Count", - "aggregationType": "Total", - "internalMetricName": "DeliveryFailCount", - "fillGapWithZero": true, - "isDimensionRequired": false, - "resourceIdDimensionNameOverride": null, - "sourceMdmAccount": "AzureEventGrid", - "sourceMdmNamespace": "ResourceMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "Error" - }, - { - "name": "ErrorType" - }, - { - "name": "EventSubscriptionName" - } - ] - }, - { - "name": "DeliverySuccessCount", - "displayName": "Delivered Events", - "displayDescription": "Total events delivered to this event subscription", - "unit": "Count", - "aggregationType": "Total", - "internalMetricName": "DeliverySuccessCount", - "fillGapWithZero": true, - "isDimensionRequired": false, - "resourceIdDimensionNameOverride": null, - "sourceMdmAccount": "AzureEventGrid", - "sourceMdmNamespace": "ResourceMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "EventSubscriptionName" - } - ] - }, - { - "name": "DestinationProcessingDurationInMs", - "displayName": "Destination Processing Duration", - "displayDescription": "Destination processing duration in milliseconds", - "unit": "Milliseconds", - "aggregationType": "Average", - "internalMetricName": "DestinationProcessingDelay", - "fillGapWithZero": true, - "isDimensionRequired": false, - "resourceIdDimensionNameOverride": null, - "sourceMdmAccount": "AzureEventGrid", - "sourceMdmNamespace": "ResourceMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "EventSubscriptionName" - } - ] - }, - { - "name": "DroppedEventCount", - "displayName": "Dropped Events", - "displayDescription": "Total dropped events matching to this event subscription", - "unit": "Count", - "aggregationType": "Total", - "internalMetricName": "DroppedEventCount", - "fillGapWithZero": true, - "isDimensionRequired": false, - "resourceIdDimensionNameOverride": null, - "sourceMdmAccount": "AzureEventGrid", - "sourceMdmNamespace": "ResourceMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "DropReason" - }, - { - "name": "EventSubscriptionName" - } - ] - }, - { - "name": "DeadLetteredCount", - "displayName": "Dead Lettered Events", - "displayDescription": "Total dead lettered events matching to this event subscription", - "unit": "Count", - "aggregationType": "Total", - "internalMetricName": "DeadLetteredCount", - "fillGapWithZero": true, - "isDimensionRequired": false, - "resourceIdDimensionNameOverride": null, - "sourceMdmAccount": "AzureEventGrid", - "sourceMdmNamespace": "ResourceMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "DeadLetterReason" - }, - { - "name": "EventSubscriptionName" - } - ] - } - ], - "logSpecifications": null - } - } - }, - { - "name": "Microsoft.EventGrid/systemTopics/providers/Microsoft.Insights/metricDefinitions/read", - "display": { - "provider": "Microsoft Event Grid", - "resource": "System Topics Metrics", - "operation": "Read system topic metric definitions", - "description": "Gets the available metrics for system topics" - }, - "origin": "System", - "properties": { - "serviceSpecification": { - "metricSpecifications": [ - { - "name": "PublishSuccessCount", - "displayName": "Published Events", - "displayDescription": "Total events published to this topic", - "unit": "Count", - "aggregationType": "Total", - "internalMetricName": "PublishSuccessCount", - "fillGapWithZero": true, - "isDimensionRequired": false, - "resourceIdDimensionNameOverride": null, - "sourceMdmAccount": "AzureEventGrid", - "sourceMdmNamespace": "ResourceMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [] - }, - { - "name": "PublishFailCount", - "displayName": "Publish Failed Events", - "displayDescription": "Total events failed to publish to this topic", - "unit": "Count", - "aggregationType": "Total", - "internalMetricName": "PublishFailCount", - "fillGapWithZero": true, - "isDimensionRequired": false, - "resourceIdDimensionNameOverride": null, - "sourceMdmAccount": "AzureEventGrid", - "sourceMdmNamespace": "ResourceMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "ErrorType" - }, - { - "name": "Error" - } - ] - }, - { - "name": "UnmatchedEventCount", - "displayName": "Unmatched Events", - "displayDescription": "Total events not matching any of the event subscriptions for this topic", - "unit": "Count", - "aggregationType": "Total", - "internalMetricName": "UnmatchedEventCount", - "fillGapWithZero": true, - "isDimensionRequired": false, - "resourceIdDimensionNameOverride": null, - "sourceMdmAccount": "AzureEventGrid", - "sourceMdmNamespace": "ResourceMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [] - }, - { - "name": "PublishSuccessLatencyInMs", - "displayName": "Publish Success Latency", - "displayDescription": "Publish success latency in milliseconds", - "unit": "Milliseconds", - "aggregationType": "Total", - "internalMetricName": "PublishSuccessLatencyInMs", - "fillGapWithZero": true, - "isDimensionRequired": false, - "resourceIdDimensionNameOverride": null, - "sourceMdmAccount": "AzureEventGrid", - "sourceMdmNamespace": "ResourceMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [] - }, - { - "name": "AdvancedFilterEvaluationCount", - "displayName": "Advanced Filter Evaluations", - "displayDescription": "Total advanced filters evaluated across event subscriptions for this topic.", - "unit": "Count", - "aggregationType": "Total", - "internalMetricName": "AdvancedFilterEvaluationCount", - "fillGapWithZero": true, - "isDimensionRequired": false, - "resourceIdDimensionNameOverride": null, - "sourceMdmAccount": "AzureEventGrid", - "sourceMdmNamespace": "ResourceMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "EventSubscriptionName" - } - ] - }, - { - "name": "MatchedEventCount", - "displayName": "Matched Events", - "displayDescription": "Total events matched to this event subscription", - "unit": "Count", - "aggregationType": "Total", - "internalMetricName": "MatchedEventCount", - "fillGapWithZero": true, - "isDimensionRequired": false, - "resourceIdDimensionNameOverride": null, - "sourceMdmAccount": "AzureEventGrid", - "sourceMdmNamespace": "ResourceMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "EventSubscriptionName" - } - ] - }, - { - "name": "DeliveryAttemptFailCount", - "displayName": "Delivery Failed Events", - "displayDescription": "Total events failed to deliver to this event subscription", - "unit": "Count", - "aggregationType": "Total", - "internalMetricName": "DeliveryFailCount", - "fillGapWithZero": true, - "isDimensionRequired": false, - "resourceIdDimensionNameOverride": null, - "sourceMdmAccount": "AzureEventGrid", - "sourceMdmNamespace": "ResourceMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "Error" - }, - { - "name": "ErrorType" - }, - { - "name": "EventSubscriptionName" - } - ] - }, - { - "name": "DeliverySuccessCount", - "displayName": "Delivered Events", - "displayDescription": "Total events delivered to this event subscription", - "unit": "Count", - "aggregationType": "Total", - "internalMetricName": "DeliverySuccessCount", - "fillGapWithZero": true, - "isDimensionRequired": false, - "resourceIdDimensionNameOverride": null, - "sourceMdmAccount": "AzureEventGrid", - "sourceMdmNamespace": "ResourceMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "EventSubscriptionName" - } - ] - }, - { - "name": "DestinationProcessingDurationInMs", - "displayName": "Destination Processing Duration", - "displayDescription": "Destination processing duration in milliseconds", - "unit": "Milliseconds", - "aggregationType": "Average", - "internalMetricName": "DestinationProcessingDelay", - "fillGapWithZero": true, - "isDimensionRequired": false, - "resourceIdDimensionNameOverride": null, - "sourceMdmAccount": "AzureEventGrid", - "sourceMdmNamespace": "ResourceMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "EventSubscriptionName" - } - ] - }, - { - "name": "DroppedEventCount", - "displayName": "Dropped Events", - "displayDescription": "Total dropped events matching to this event subscription", - "unit": "Count", - "aggregationType": "Total", - "internalMetricName": "DroppedEventCount", - "fillGapWithZero": true, - "isDimensionRequired": false, - "resourceIdDimensionNameOverride": null, - "sourceMdmAccount": "AzureEventGrid", - "sourceMdmNamespace": "ResourceMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "DropReason" - }, - { - "name": "EventSubscriptionName" - } - ] - }, - { - "name": "DeadLetteredCount", - "displayName": "Dead Lettered Events", - "displayDescription": "Total dead lettered events matching to this event subscription", - "unit": "Count", - "aggregationType": "Total", - "internalMetricName": "DeadLetteredCount", - "fillGapWithZero": true, - "isDimensionRequired": false, - "resourceIdDimensionNameOverride": null, - "sourceMdmAccount": "AzureEventGrid", - "sourceMdmNamespace": "ResourceMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "DeadLetterReason" - }, - { - "name": "EventSubscriptionName" - } - ] - } - ], - "logSpecifications": null - } - } - }, - { - "name": "Microsoft.EventGrid/partnerNamespaces/providers/Microsoft.Insights/metricDefinitions/read", - "display": { - "provider": "Microsoft Event Grid", - "resource": "Partner Namespaces Metrics", - "operation": "Read partner namespace metric definitions", - "description": "Gets the available metrics for partner namespaces" - }, - "origin": "System", - "properties": { - "serviceSpecification": { - "metricSpecifications": [ - { - "name": "PublishSuccessCount", - "displayName": "Published Events", - "displayDescription": "Total events published to this topic", - "unit": "Count", - "aggregationType": "Total", - "internalMetricName": "PublishSuccessCount", - "fillGapWithZero": true, - "isDimensionRequired": false, - "resourceIdDimensionNameOverride": null, - "sourceMdmAccount": "AzureEventGrid", - "sourceMdmNamespace": "ResourceMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [] - }, - { - "name": "PublishFailCount", - "displayName": "Publish Failed Events", - "displayDescription": "Total events failed to publish to this topic", - "unit": "Count", - "aggregationType": "Total", - "internalMetricName": "PublishFailCount", - "fillGapWithZero": true, - "isDimensionRequired": false, - "resourceIdDimensionNameOverride": null, - "sourceMdmAccount": "AzureEventGrid", - "sourceMdmNamespace": "ResourceMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "ErrorType" - }, - { - "name": "Error" - } - ] - }, - { - "name": "UnmatchedEventCount", - "displayName": "Unmatched Events", - "displayDescription": "Total events not matching any of the event subscriptions for this topic", - "unit": "Count", - "aggregationType": "Total", - "internalMetricName": "UnmatchedEventCount", - "fillGapWithZero": true, - "isDimensionRequired": false, - "resourceIdDimensionNameOverride": null, - "sourceMdmAccount": "AzureEventGrid", - "sourceMdmNamespace": "ResourceMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [] - }, - { - "name": "PublishSuccessLatencyInMs", - "displayName": "Publish Success Latency", - "displayDescription": "Publish success latency in milliseconds", - "unit": "Milliseconds", - "aggregationType": "Total", - "internalMetricName": "PublishSuccessLatencyInMs", - "fillGapWithZero": true, - "isDimensionRequired": false, - "resourceIdDimensionNameOverride": null, - "sourceMdmAccount": "AzureEventGrid", - "sourceMdmNamespace": "ResourceMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [] - } - ], - "logSpecifications": null - } - } - }, - { - "name": "Microsoft.EventGrid/partnerTopics/providers/Microsoft.Insights/metricDefinitions/read", - "display": { - "provider": "Microsoft Event Grid", - "resource": "Partner Topics Metrics", - "operation": "Read partner topic metric definitions", - "description": "Gets the available metrics for partner topics" - }, - "origin": "System", - "properties": { - "serviceSpecification": { - "metricSpecifications": [ - { - "name": "PublishSuccessCount", - "displayName": "Published Events", - "displayDescription": "Total events published to this topic", - "unit": "Count", - "aggregationType": "Total", - "internalMetricName": "PublishSuccessCount", - "fillGapWithZero": true, - "isDimensionRequired": false, - "resourceIdDimensionNameOverride": null, - "sourceMdmAccount": "AzureEventGrid", - "sourceMdmNamespace": "ResourceMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [] - }, - { - "name": "UnmatchedEventCount", - "displayName": "Unmatched Events", - "displayDescription": "Total events not matching any of the event subscriptions for this topic", - "unit": "Count", - "aggregationType": "Total", - "internalMetricName": "UnmatchedEventCount", - "fillGapWithZero": true, - "isDimensionRequired": false, - "resourceIdDimensionNameOverride": null, - "sourceMdmAccount": "AzureEventGrid", - "sourceMdmNamespace": "ResourceMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [] - }, - { - "name": "AdvancedFilterEvaluationCount", - "displayName": "Advanced Filter Evaluations", - "displayDescription": "Total advanced filters evaluated across event subscriptions for this topic.", - "unit": "Count", - "aggregationType": "Total", - "internalMetricName": "AdvancedFilterEvaluationCount", - "fillGapWithZero": true, - "isDimensionRequired": false, - "resourceIdDimensionNameOverride": null, - "sourceMdmAccount": "AzureEventGrid", - "sourceMdmNamespace": "ResourceMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "EventSubscriptionName" - } - ] - }, - { - "name": "MatchedEventCount", - "displayName": "Matched Events", - "displayDescription": "Total events matched to this event subscription", - "unit": "Count", - "aggregationType": "Total", - "internalMetricName": "MatchedEventCount", - "fillGapWithZero": true, - "isDimensionRequired": false, - "resourceIdDimensionNameOverride": null, - "sourceMdmAccount": "AzureEventGrid", - "sourceMdmNamespace": "ResourceMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "EventSubscriptionName" - } - ] - }, - { - "name": "DeliveryAttemptFailCount", - "displayName": "Delivery Failed Events", - "displayDescription": "Total events failed to deliver to this event subscription", - "unit": "Count", - "aggregationType": "Total", - "internalMetricName": "DeliveryFailCount", - "fillGapWithZero": true, - "isDimensionRequired": false, - "resourceIdDimensionNameOverride": null, - "sourceMdmAccount": "AzureEventGrid", - "sourceMdmNamespace": "ResourceMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "Error" - }, - { - "name": "ErrorType" - }, - { - "name": "EventSubscriptionName" - } - ] - }, - { - "name": "DeliverySuccessCount", - "displayName": "Delivered Events", - "displayDescription": "Total events delivered to this event subscription", - "unit": "Count", - "aggregationType": "Total", - "internalMetricName": "DeliverySuccessCount", - "fillGapWithZero": true, - "isDimensionRequired": false, - "resourceIdDimensionNameOverride": null, - "sourceMdmAccount": "AzureEventGrid", - "sourceMdmNamespace": "ResourceMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "EventSubscriptionName" - } - ] - }, - { - "name": "DestinationProcessingDurationInMs", - "displayName": "Destination Processing Duration", - "displayDescription": "Destination processing duration in milliseconds", - "unit": "Milliseconds", - "aggregationType": "Average", - "internalMetricName": "DestinationProcessingDelay", - "fillGapWithZero": true, - "isDimensionRequired": false, - "resourceIdDimensionNameOverride": null, - "sourceMdmAccount": "AzureEventGrid", - "sourceMdmNamespace": "ResourceMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "EventSubscriptionName" - } - ] - }, - { - "name": "DroppedEventCount", - "displayName": "Dropped Events", - "displayDescription": "Total dropped events matching to this event subscription", - "unit": "Count", - "aggregationType": "Total", - "internalMetricName": "DroppedEventCount", - "fillGapWithZero": true, - "isDimensionRequired": false, - "resourceIdDimensionNameOverride": null, - "sourceMdmAccount": "AzureEventGrid", - "sourceMdmNamespace": "ResourceMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "DropReason" - }, - { - "name": "EventSubscriptionName" - } - ] - }, - { - "name": "DeadLetteredCount", - "displayName": "Dead Lettered Events", - "displayDescription": "Total dead lettered events matching to this event subscription", - "unit": "Count", - "aggregationType": "Total", - "internalMetricName": "DeadLetteredCount", - "fillGapWithZero": true, - "isDimensionRequired": false, - "resourceIdDimensionNameOverride": null, - "sourceMdmAccount": "AzureEventGrid", - "sourceMdmNamespace": "ResourceMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "DeadLetterReason" - }, - { - "name": "EventSubscriptionName" - } - ] - } - ], - "logSpecifications": null - } - } - }, - { - "name": "Microsoft.EventGrid/topics/providers/Microsoft.Insights/diagnosticSettings/read", - "display": { - "provider": "Microsoft Event Grid", - "resource": "Topics Diagnostics", - "operation": "Read diagnostic setting", - "description": "Gets the diagnostic setting for topics" - }, - "origin": "System" - }, - { - "name": "Microsoft.EventGrid/topics/providers/Microsoft.Insights/diagnosticSettings/write", - "display": { - "provider": "Microsoft Event Grid", - "resource": "Topics Diagnostics", - "operation": "Write diagnostic setting", - "description": "Creates or updates the diagnostic setting for topics" - }, - "origin": "System" - }, - { - "name": "Microsoft.EventGrid/eventSubscriptions/providers/Microsoft.Insights/metricDefinitions/read", - "display": { - "provider": "Microsoft Event Grid", - "resource": "EventSubscription Metrics", - "operation": "Read eventSubscription metric definitions", - "description": "Gets the available metrics for eventSubscriptions" - }, - "origin": "System", - "properties": { - "serviceSpecification": { - "metricSpecifications": [ - { - "name": "MatchedEventCount", - "displayName": "Matched Events", - "displayDescription": "Total events matched to this event subscription", - "unit": "Count", - "aggregationType": "Total", - "internalMetricName": "MatchedEventCount", - "fillGapWithZero": true, - "isDimensionRequired": false, - "resourceIdDimensionNameOverride": null, - "sourceMdmAccount": "AzureEventGrid", - "sourceMdmNamespace": "ResourceMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [] - }, - { - "name": "DeliveryAttemptFailCount", - "displayName": "Delivery Failed Events", - "displayDescription": "Total events failed to deliver to this event subscription", - "unit": "Count", - "aggregationType": "Total", - "internalMetricName": "DeliveryFailCount", - "fillGapWithZero": true, - "isDimensionRequired": false, - "resourceIdDimensionNameOverride": null, - "sourceMdmAccount": "AzureEventGrid", - "sourceMdmNamespace": "ResourceMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "Error" - }, - { - "name": "ErrorType" - } - ] - }, - { - "name": "DeliverySuccessCount", - "displayName": "Delivered Events", - "displayDescription": "Total events delivered to this event subscription", - "unit": "Count", - "aggregationType": "Total", - "internalMetricName": "DeliverySuccessCount", - "fillGapWithZero": true, - "isDimensionRequired": false, - "resourceIdDimensionNameOverride": null, - "sourceMdmAccount": "AzureEventGrid", - "sourceMdmNamespace": "ResourceMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [] - }, - { - "name": "DestinationProcessingDurationInMs", - "displayName": "Destination Processing Duration", - "displayDescription": "Destination processing duration in milliseconds", - "unit": "Milliseconds", - "aggregationType": "Average", - "internalMetricName": "DestinationProcessingDelay", - "fillGapWithZero": true, - "isDimensionRequired": false, - "resourceIdDimensionNameOverride": null, - "sourceMdmAccount": "AzureEventGrid", - "sourceMdmNamespace": "ResourceMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [] - }, - { - "name": "DroppedEventCount", - "displayName": "Dropped Events", - "displayDescription": "Total dropped events matching to this event subscription", - "unit": "Count", - "aggregationType": "Total", - "internalMetricName": "DroppedEventCount", - "fillGapWithZero": true, - "isDimensionRequired": false, - "resourceIdDimensionNameOverride": null, - "sourceMdmAccount": "AzureEventGrid", - "sourceMdmNamespace": "ResourceMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "DropReason" - } - ] - }, - { - "name": "DeadLetteredCount", - "displayName": "Dead Lettered Events", - "displayDescription": "Total dead lettered events matching to this event subscription", - "unit": "Count", - "aggregationType": "Total", - "internalMetricName": "DeadLetteredCount", - "fillGapWithZero": true, - "isDimensionRequired": false, - "resourceIdDimensionNameOverride": null, - "sourceMdmAccount": "AzureEventGrid", - "sourceMdmNamespace": "ResourceMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "DeadLetterReason" - } - ] - } - ], - "logSpecifications": null - } - } - }, - { - "name": "Microsoft.EventGrid/eventSubscriptions/providers/Microsoft.Insights/diagnosticSettings/read", - "display": { - "provider": "Microsoft Event Grid", - "resource": "EventSubscription Diagnostics", - "operation": "Read diagnostic setting", - "description": "Gets the diagnostic setting for event subscriptions" - }, - "origin": "System" - }, - { - "name": "Microsoft.EventGrid/eventSubscriptions/providers/Microsoft.Insights/diagnosticSettings/write", - "display": { - "provider": "Microsoft Event Grid", - "resource": "EventSubscription Diagnostics", - "operation": "Write diagnostic setting", - "description": "Creates or updates the diagnostic setting for event subscriptions" - }, - "origin": "System" - }, - { - "name": "Microsoft.EventGrid/extensionTopics/providers/Microsoft.Insights/metricDefinitions/read", - "display": { - "provider": "Microsoft Event Grid", - "resource": "Topics Metrics", - "operation": "Read topic metric definitions", - "description": "Gets the available metrics for topics" - }, - "origin": "User,System", - "properties": { - "serviceSpecification": { - "metricSpecifications": [ - { - "name": "PublishSuccessCount", - "displayName": "Published Events", - "displayDescription": "Total events published to this topic", - "unit": "Count", - "aggregationType": "Total", - "internalMetricName": "PublishSuccessCount", - "fillGapWithZero": true, - "isDimensionRequired": false, - "resourceIdDimensionNameOverride": null, - "sourceMdmAccount": "AzureEventGrid", - "sourceMdmNamespace": "ResourceMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [] - }, - { - "name": "PublishFailCount", - "displayName": "Publish Failed Events", - "displayDescription": "Total events failed to publish to this topic", - "unit": "Count", - "aggregationType": "Total", - "internalMetricName": "PublishFailCount", - "fillGapWithZero": true, - "isDimensionRequired": false, - "resourceIdDimensionNameOverride": null, - "sourceMdmAccount": "AzureEventGrid", - "sourceMdmNamespace": "ResourceMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "ErrorType" - }, - { - "name": "Error" - } - ] - }, - { - "name": "UnmatchedEventCount", - "displayName": "Unmatched Events", - "displayDescription": "Total events not matching any of the event subscriptions for this topic", - "unit": "Count", - "aggregationType": "Total", - "internalMetricName": "UnmatchedEventCount", - "fillGapWithZero": true, - "isDimensionRequired": false, - "resourceIdDimensionNameOverride": null, - "sourceMdmAccount": "AzureEventGrid", - "sourceMdmNamespace": "ResourceMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [] - }, - { - "name": "PublishSuccessLatencyInMs", - "displayName": "Publish Success Latency", - "displayDescription": "Publish success latency in milliseconds", - "unit": "Milliseconds", - "aggregationType": "Total", - "internalMetricName": "PublishSuccessLatencyInMs", - "fillGapWithZero": true, - "isDimensionRequired": false, - "resourceIdDimensionNameOverride": null, - "sourceMdmAccount": "AzureEventGrid", - "sourceMdmNamespace": "ResourceMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [] - } - ], - "logSpecifications": null - } - } - }, - { - "name": "Microsoft.EventGrid/extensionTopics/providers/Microsoft.Insights/diagnosticSettings/read", - "display": { - "provider": "Microsoft Event Grid", - "resource": "Topics Diagnostics", - "operation": "Read diagnostic setting", - "description": "Gets the diagnostic setting for topics" - }, - "origin": "System" - }, - { - "name": "Microsoft.EventGrid/extensionTopics/providers/Microsoft.Insights/diagnosticSettings/write", - "display": { - "provider": "Microsoft Event Grid", - "resource": "Topics Diagnostics", - "operation": "Write diagnostic setting", - "description": "Creates or updates the diagnostic setting for topics" - }, - "origin": "System" - }, - { - "name": "Microsoft.EventGrid/topics/providers/Microsoft.Insights/logDefinitions/read", - "display": { - "provider": "Microsoft Event Grid", - "resource": "Topics Diagnostics", - "operation": "Read diagnostic logs", - "description": "Allows access to diagnostic logs" - }, - "origin": "System", - "properties": { - "serviceSpecification": { - "metricSpecifications": null, - "logSpecifications": [ - { - "name": "DeliveryFailures", - "displayName": "Delivery Failure Logs", - "blobDuration": "PT5M" - }, - { - "name": "PublishFailures", - "displayName": "Publish Failure Logs", - "blobDuration": "PT5M" - } - ] - } - } - }, - { - "name": "Microsoft.EventGrid/domains/providers/Microsoft.Insights/logDefinitions/read", - "display": { - "provider": "Microsoft Event Grid", - "resource": "Microsoft.EventGrid/domains", - "operation": "Read diagnostic logs", - "description": "Allows access to diagnostic logs" - }, - "origin": "System", - "properties": { - "serviceSpecification": { - "metricSpecifications": null, - "logSpecifications": [ - { - "name": "DeliveryFailures", - "displayName": "Delivery Failure Logs", - "blobDuration": "PT5M" - }, - { - "name": "PublishFailures", - "displayName": "Publish Failure Logs", - "blobDuration": "PT5M" - } - ] - } - } - }, - { - "name": "Microsoft.EventGrid/systemTopics/providers/Microsoft.Insights/logDefinitions/read", - "display": { - "provider": "Microsoft Event Grid", - "resource": "systemTopics", - "operation": "Read diagnostic logs", - "description": "Allows access to diagnostic logs" - }, - "origin": "System", - "properties": { - "serviceSpecification": { - "metricSpecifications": null, - "logSpecifications": [ - { - "name": "DeliveryFailures", - "displayName": "Delivery Failure Logs", - "blobDuration": "PT5M" - } - ] - } - } - }, - { - "name": "Microsoft.EventGrid/systemTopics/providers/Microsoft.Insights/diagnosticSettings/read", - "display": { - "provider": "Microsoft Event Grid", - "resource": "System topics Diagnostics", - "operation": "Read diagnostic setting", - "description": "Gets the diagnostic setting for system topics" - }, - "origin": "System" - }, - { - "name": "Microsoft.EventGrid/systemTopics/providers/Microsoft.Insights/diagnosticSettings/write", - "display": { - "provider": "Microsoft Event Grid", - "resource": "System topics Diagnostics", - "operation": "Write diagnostic setting", - "description": "Creates or updates the diagnostic setting for system topics" - }, - "origin": "System" - }, - { - "name": "Microsoft.EventGrid/partnerNamespaces/providers/Microsoft.Insights/logDefinitions/read", - "display": { - "provider": "Microsoft Event Grid", - "resource": "partnerNamespaces", - "operation": "Read diagnostic logs", - "description": "Allows access to diagnostic logs" - }, - "origin": "System", - "properties": { - "serviceSpecification": { - "metricSpecifications": null, - "logSpecifications": [ - { - "name": "DeliveryFailures", - "displayName": "Delivery Failure Logs", - "blobDuration": "PT5M" - }, - { - "name": "PublishFailures", - "displayName": "Publish Failure Logs", - "blobDuration": "PT5M" - } - ] - } - } - }, - { - "name": "Microsoft.EventGrid/partnerNamespaces/providers/Microsoft.Insights/diagnosticSettings/read", - "display": { - "provider": "Microsoft Event Grid", - "resource": "Partner namespaces Diagnostics", - "operation": "Read diagnostic setting", - "description": "Gets the diagnostic setting for partner namespaces" - }, - "origin": "System" - }, - { - "name": "Microsoft.EventGrid/partnerNamespaces/providers/Microsoft.Insights/diagnosticSettings/write", - "display": { - "provider": "Microsoft Event Grid", - "resource": "Partner namespaces Diagnostics", - "operation": "Write diagnostic setting", - "description": "Creates or updates the diagnostic setting for partner namespaces" - }, - "origin": "System" - }, - { - "name": "Microsoft.EventGrid/partnerTopics/providers/Microsoft.Insights/logDefinitions/read", - "display": { - "provider": "Microsoft Event Grid", - "resource": "partnerTopics", - "operation": "Read diagnostic logs", - "description": "Allows access to diagnostic logs" - }, - "origin": "System", - "properties": { - "serviceSpecification": { - "metricSpecifications": null, - "logSpecifications": [ - { - "name": "DeliveryFailures", - "displayName": "Delivery Failure Logs", - "blobDuration": "PT5M" - } - ] - } - } - }, - { - "name": "Microsoft.EventGrid/partnerTopics/providers/Microsoft.Insights/diagnosticSettings/read", - "display": { - "provider": "Microsoft Event Grid", - "resource": "Partner topics Diagnostics", - "operation": "Read diagnostic setting", - "description": "Gets the diagnostic setting for partner topics" - }, - "origin": "System" - }, - { - "name": "Microsoft.EventGrid/partnerTopics/providers/Microsoft.Insights/diagnosticSettings/write", - "display": { - "provider": "Microsoft Event Grid", - "resource": "Partner topics Diagnostics", - "operation": "Write diagnostic setting", - "description": "Creates or updates the diagnostic setting for partner topics" - }, - "origin": "System" - }, - { - "name": "Microsoft.EventGrid/sku/read", - "display": { - "provider": "Microsoft Event Grid", - "resource": "sku", - "operation": "Read available Sku Definitions for event grid resources", - "description": "Read available Sku Definitions for event grid resources" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/eventSubscriptions/getDeliveryAttributes/action", - "display": { - "provider": "Microsoft Event Grid", - "resource": "eventSubscriptions", - "operation": "Get EventSubscription Delivery Attributes", - "description": "Get EventSubscription Delivery Attributes" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/systemTopics/eventSubscriptions/getDeliveryAttributes/action", - "display": { - "provider": "Microsoft Event Grid", - "resource": "eventSubscriptions", - "operation": "Get SystemTopic EventSubscription Delivery Attributes", - "description": "Get SystemTopic EventSubscription Delivery Attributes" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/partnerTopics/eventSubscriptions/getDeliveryAttributes/action", - "display": { - "provider": "Microsoft Event Grid", - "resource": "eventSubscriptions", - "operation": "Get PartnerTopic EventSubscription Delivery Attributes", - "description": "Get PartnerTopic EventSubscription Delivery Attributes" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/topics/eventSubscriptions/getDeliveryAttributes/action", - "display": { - "provider": "Microsoft Event Grid", - "resource": "eventSubscriptions", - "operation": "Get Topic EventSubscription Delivery Attributes", - "description": "Get Topic EventSubscription Delivery Attributes" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/domains/eventSubscriptions/getDeliveryAttributes/action", - "display": { - "provider": "Microsoft Event Grid", - "resource": "eventSubscriptions", - "operation": "Get Domain EventSubscription Delivery Attributes", - "description": "Get Domain EventSubscription Delivery Attributes" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/domains/topics/eventSubscriptions/getDeliveryAttributes/action", - "display": { - "provider": "Microsoft Event Grid", - "resource": "eventSubscriptions", - "operation": "Get DomainTopic EventSubscription Delivery Attributes", - "description": "Get DomainTopic EventSubscription Delivery Attributes" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/topics/privateEndpointConnectionProxies/validate/action", - "display": { - "provider": "Microsoft Event Grid", - "resource": "privateEndpointConnectionProxies", - "operation": "Validate PrivateEndpointConnectionProxies for topics", - "description": "Validate PrivateEndpointConnectionProxies for topics" - }, - "origin": "System" - }, - { - "name": "Microsoft.EventGrid/topics/privateEndpointConnectionProxies/read", - "display": { - "provider": "Microsoft Event Grid", - "resource": "privateEndpointConnectionProxies", - "operation": "Read PrivateEndpointConnectionProxies for topics", - "description": "Read PrivateEndpointConnectionProxies for topics" - }, - "origin": "System" - }, - { - "name": "Microsoft.EventGrid/topics/privateEndpointConnectionProxies/write", - "display": { - "provider": "Microsoft Event Grid", - "resource": "privateEndpointConnectionProxies", - "operation": "Write PrivateEndpointConnectionProxies for topics", - "description": "Write PrivateEndpointConnectionProxies for topics" - }, - "origin": "System" - }, - { - "name": "Microsoft.EventGrid/topics/privateEndpointConnectionProxies/delete", - "display": { - "provider": "Microsoft Event Grid", - "resource": "privateEndpointConnectionProxies", - "operation": "Delete PrivateEndpointConnectionProxies for topics", - "description": "Delete PrivateEndpointConnectionProxies for topics" - }, - "origin": "System" - }, - { - "name": "Microsoft.EventGrid/topics/privateEndpointConnections/read", - "display": { - "provider": "Microsoft Event Grid", - "resource": "privateEndpointConnections", - "operation": "Read PrivateEndpointConnections for topics", - "description": "Read PrivateEndpointConnections for topics" - }, - "origin": "System" - }, - { - "name": "Microsoft.EventGrid/topics/privateEndpointConnections/write", - "display": { - "provider": "Microsoft Event Grid", - "resource": "privateEndpointConnections", - "operation": "Write PrivateEndpointConnections for topics", - "description": "Write PrivateEndpointConnections for topics" - }, - "origin": "System" - }, - { - "name": "Microsoft.EventGrid/topics/privateEndpointConnections/delete", - "display": { - "provider": "Microsoft Event Grid", - "resource": "privateEndpointConnections", - "operation": "Delete PrivateEndpointConnections for topics", - "description": "Delete PrivateEndpointConnections for topics" - }, - "origin": "System" - }, - { - "name": "Microsoft.EventGrid/topics/PrivateEndpointConnectionsApproval/action", - "display": { - "provider": "Microsoft Event Grid", - "resource": "privateEndpointConnections", - "operation": "Approve PrivateEndpointConnections for topics", - "description": "Approve PrivateEndpointConnections for topics" - }, - "origin": "System" - }, - { - "name": "Microsoft.EventGrid/topics/privateLinkResources/read", - "display": { - "provider": "Microsoft Event Grid", - "resource": "privateLinkResources", - "operation": "Read PrivateLinkResources for topics", - "description": "Read PrivateLinkResources for topics" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/domains/privateEndpointConnectionProxies/validate/action", - "display": { - "provider": "Microsoft Event Grid", - "resource": "privateEndpointConnectionProxies", - "operation": "Validate PrivateEndpointConnectionProxies for domains", - "description": "Validate PrivateEndpointConnectionProxies for domains" - }, - "origin": "System" - }, - { - "name": "Microsoft.EventGrid/domains/privateEndpointConnectionProxies/read", - "display": { - "provider": "Microsoft Event Grid", - "resource": "privateEndpointConnectionProxies", - "operation": "Read PrivateEndpointConnectionProxies for domains", - "description": "Read PrivateEndpointConnectionProxies for domains" - }, - "origin": "System" - }, - { - "name": "Microsoft.EventGrid/domains/privateEndpointConnectionProxies/write", - "display": { - "provider": "Microsoft Event Grid", - "resource": "privateEndpointConnectionProxies", - "operation": "Write PrivateEndpointConnectionProxies for domains", - "description": "Write PrivateEndpointConnectionProxies for domains" - }, - "origin": "System" - }, - { - "name": "Microsoft.EventGrid/domains/privateEndpointConnectionProxies/delete", - "display": { - "provider": "Microsoft Event Grid", - "resource": "privateEndpointConnectionProxies", - "operation": "Delete PrivateEndpointConnectionProxies for domains", - "description": "Delete PrivateEndpointConnectionProxies for domains" - }, - "origin": "System" - }, - { - "name": "Microsoft.EventGrid/domains/privateEndpointConnections/read", - "display": { - "provider": "Microsoft Event Grid", - "resource": "privateEndpointConnections", - "operation": "Read PrivateEndpointConnections for domains", - "description": "Read PrivateEndpointConnections for domains" - }, - "origin": "System" - }, - { - "name": "Microsoft.EventGrid/domains/privateEndpointConnections/write", - "display": { - "provider": "Microsoft Event Grid", - "resource": "privateEndpointConnections", - "operation": "Write PrivateEndpointConnections for domains", - "description": "Write PrivateEndpointConnections for domains" - }, - "origin": "System" - }, - { - "name": "Microsoft.EventGrid/domains/privateEndpointConnections/delete", - "display": { - "provider": "Microsoft Event Grid", - "resource": "privateEndpointConnections", - "operation": "Delete PrivateEndpointConnections for domains", - "description": "Delete PrivateEndpointConnections for domains" - }, - "origin": "System" - }, - { - "name": "Microsoft.EventGrid/domains/PrivateEndpointConnectionsApproval/action", - "display": { - "provider": "Microsoft Event Grid", - "resource": "privateEndpointConnections", - "operation": "Approve PrivateEndpointConnections for domains", - "description": "Approve PrivateEndpointConnections for domains" - }, - "origin": "System" - }, - { - "name": "Microsoft.EventGrid/domains/privateLinkResources/read", - "display": { - "provider": "Microsoft Event Grid", - "resource": "privateLinkResources", - "operation": "Get PrivateLinkResources for domains", - "description": "Get or List PrivateLinkResources for domains" - }, - "origin": "User,System" - }, - { - "name": "Microsoft.EventGrid/events/send/action", - "display": { - "provider": "Microsoft Event Grid", - "resource": "events", - "operation": "Send events", - "description": "Send events to topics" - }, - "origin": "User,System", - "isDataAction": true - }, - { - "name": "Microsoft.EventGrid/partnerNamespaces/privateEndpointConnectionProxies/validate/action", - "display": { - "provider": "Microsoft Event Grid", - "resource": "privateEndpointConnectionProxies", - "operation": "Validate PrivateEndpointConnectionProxies for partner namespaces", - "description": "Validate PrivateEndpointConnectionProxies for partner namespaces" - }, - "origin": "System" - }, - { - "name": "Microsoft.EventGrid/partnerNamespaces/privateEndpointConnectionProxies/read", - "display": { - "provider": "Microsoft Event Grid", - "resource": "privateEndpointConnectionProxies", - "operation": "Read PrivateEndpointConnectionProxies for partner namespaces", - "description": "Read PrivateEndpointConnectionProxies for partner namespaces" - }, - "origin": "System" - }, - { - "name": "Microsoft.EventGrid/partnerNamespaces/privateEndpointConnectionProxies/write", - "display": { - "provider": "Microsoft Event Grid", - "resource": "privateEndpointConnectionProxies", - "operation": "Write PrivateEndpointConnectionProxies for partner namespaces", - "description": "Write PrivateEndpointConnectionProxies for partner namespaces" - }, - "origin": "System" - }, - { - "name": "Microsoft.EventGrid/partnerNamespaces/privateEndpointConnectionProxies/delete", - "display": { - "provider": "Microsoft Event Grid", - "resource": "privateEndpointConnectionProxies", - "operation": "Delete PrivateEndpointConnectionProxies for partner namespaces", - "description": "Delete PrivateEndpointConnectionProxies for partner namespaces" - }, - "origin": "System" - }, - { - "name": "Microsoft.EventGrid/partnerNamespaces/privateEndpointConnections/read", - "display": { - "provider": "Microsoft Event Grid", - "resource": "privateEndpointConnections", - "operation": "Read PrivateEndpointConnections for partner namespaces", - "description": "Read PrivateEndpointConnections for partner namespaces" - }, - "origin": "System" - }, - { - "name": "Microsoft.EventGrid/partnerNamespaces/privateEndpointConnections/write", - "display": { - "provider": "Microsoft Event Grid", - "resource": "privateEndpointConnections", - "operation": "Write PrivateEndpointConnections for partner namespaces", - "description": "Write PrivateEndpointConnections for partner namespaces" - }, - "origin": "System" - }, - { - "name": "Microsoft.EventGrid/partnerNamespaces/privateEndpointConnections/delete", - "display": { - "provider": "Microsoft Event Grid", - "resource": "privateEndpointConnections", - "operation": "Delete PrivateEndpointConnections for partner namespaces", - "description": "Delete PrivateEndpointConnections for partner namespaces" - }, - "origin": "System" - }, - { - "name": "Microsoft.EventGrid/partnerNamespaces/PrivateEndpointConnectionsApproval/action", - "display": { - "provider": "Microsoft Event Grid", - "resource": "privateEndpointConnections", - "operation": "Approve PrivateEndpointConnections for partner namespaces", - "description": "Approve PrivateEndpointConnections for partner namespaces" - }, - "origin": "System" - }, - { - "name": "Microsoft.EventGrid/partnerNamespaces/privateLinkResources/read", - "display": { - "provider": "Microsoft Event Grid", - "resource": "privateLinkResources", - "operation": "Read PrivateLinkResources for partner namespaces", - "description": "Read PrivateLinkResources for partner namespaces" - }, - "origin": "User,System" - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/partnerConfigurations/default?api-version=2022-06-15", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "global" - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:30:37 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1188", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063037Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "partnerAuthorization": null, - "provisioningState": "Succeeded" - }, - "systemData": null, - "location": "global", - "tags": null, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/partnerConfigurations/default", - "name": "default", - "type": "Microsoft.EventGrid/partnerConfigurations" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/partnerConfigurations?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:30:37 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11954", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063037Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "properties": { - "partnerAuthorization": { - "defaultMaximumExpirationTimeInDays": 7, - "authorizedPartnersList": [ - { - "partnerRegistrationImmutableId": "00000000-0000-0000-0000-000000000000", - "partnerName": "Auth0", - "authorizationExpirationTimeInUtc": "2022-11-04T09:22:27.214Z" - } - ] - }, - "provisioningState": "Succeeded" - }, - "systemData": null, - "location": "global", - "tags": {}, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-test/providers/Microsoft.EventGrid/partnerConfigurations/default", - "name": "default", - "type": "Microsoft.EventGrid/partnerConfigurations" - }, - { - "properties": { - "partnerAuthorization": null, - "provisioningState": "Succeeded" - }, - "systemData": null, - "location": "global", - "tags": null, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/partnerConfigurations/default", - "name": "default", - "type": "Microsoft.EventGrid/partnerConfigurations" - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/partnerConfigurations/default?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:30:38 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11953", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063038Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "partnerAuthorization": null, - "provisioningState": "Succeeded" - }, - "systemData": null, - "location": "global", - "tags": null, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/partnerConfigurations/default", - "name": "default", - "type": "Microsoft.EventGrid/partnerConfigurations" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/partnerConfigurations?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:30:38 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11952", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063039Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "properties": { - "partnerAuthorization": null, - "provisioningState": "Succeeded" - }, - "systemData": null, - "location": "global", - "tags": null, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/partnerConfigurations/default", - "name": "default", - "type": "Microsoft.EventGrid/partnerConfigurations" - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/partnerConfigurations/default?api-version=2022-06-15", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "100", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "defaultMaximumExpirationTimeInDays": 100 - }, - "tags": { - "tag1": "value11", - "tag2": "value22" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:30:41 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1187", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063042Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "partnerAuthorization": { - "defaultMaximumExpirationTimeInDays": 100, - "authorizedPartnersList": null - }, - "provisioningState": "Succeeded" - }, - "systemData": null, - "location": "global", - "tags": { - "tag1": "value11", - "tag2": "value22" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/partnerConfigurations/default", - "name": "default", - "type": "Microsoft.EventGrid/partnerConfigurations" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/partnerConfigurations/default/authorizePartner?api-version=2022-06-15", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "23", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "partnerName": "Auth0" - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:30:42 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1194", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063042Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "partnerAuthorization": { - "defaultMaximumExpirationTimeInDays": 100, - "authorizedPartnersList": [ - { - "partnerRegistrationImmutableId": "00000000-0000-0000-0000-000000000000", - "partnerName": "Auth0", - "authorizationExpirationTimeInUtc": "2023-02-08T06:30:42.7125443Z" - } - ] - }, - "provisioningState": "Succeeded" - }, - "systemData": null, - "location": "global", - "tags": { - "tag1": "value11", - "tag2": "value22" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/partnerConfigurations/default", - "name": "default", - "type": "Microsoft.EventGrid/partnerConfigurations" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/partnerConfigurations/default/authorizePartner?api-version=2022-06-15", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "23", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "partnerName": "Auth0" - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:30:43 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1193", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063043Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "partnerAuthorization": { - "defaultMaximumExpirationTimeInDays": 100, - "authorizedPartnersList": [ - { - "partnerRegistrationImmutableId": "00000000-0000-0000-0000-000000000000", - "partnerName": "Auth0", - "authorizationExpirationTimeInUtc": "2023-02-08T06:30:43.4802632Z" - } - ] - }, - "provisioningState": "Succeeded" - }, - "systemData": null, - "location": "global", - "tags": { - "tag1": "value11", - "tag2": "value22" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/partnerConfigurations/default", - "name": "default", - "type": "Microsoft.EventGrid/partnerConfigurations" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/partnerConfigurations/default?api-version=2022-06-15", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 31 Oct 2022 06:30:46 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14995", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063047Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/partnerNamespaces/partnernamWkloZ9?api-version=2022-06-15", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "267", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "eastus", - "properties": { - "partnerRegistrationFullyQualifiedId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/partnerRegistrations/partnerregWkloZ9" - }, - "tags": { - "tag1": "value1", - "tag2": "value2" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus/operationsStatus/44B6F57D-164D-4BE2-8001-2D20970718CF?api-version=2022-06-15", - "Cache-Control": "no-cache", - "Content-Length": "608", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:30:51 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "10", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1186", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063052Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "provisioningState": "Creating", - "partnerRegistrationFullyQualifiedId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/partnerRegistrations/partnerregWkloZ9", - "endpoint": null, - "partnerTopicRoutingMode": "SourceEventAttribute" - }, - "systemData": null, - "location": "eastus", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/partnerNamespaces/partnernamWkloZ9", - "name": "partnernamWkloZ9", - "type": "Microsoft.EventGrid/partnerNamespaces" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus/operationsStatus/44B6F57D-164D-4BE2-8001-2D20970718CF?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:31:01 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11951", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063102Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus/operationsStatus/44B6F57D-164D-4BE2-8001-2D20970718CF?api-version=2022-06-15", - "name": "00000000-0000-0000-0000-000000000000", - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/partnerNamespaces/partnernamWkloZ9?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:31:02 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11950", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063103Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "provisioningState": "Succeeded", - "partnerRegistrationFullyQualifiedId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/partnerRegistrations/partnerregWkloZ9", - "endpoint": "https://partnernamwkloz9.eastus-1.eventgrid.azure.net/api/events", - "publicNetworkAccess": "Enabled", - "partnerTopicRoutingMode": "SourceEventAttribute" - }, - "systemData": null, - "location": "eastus", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/partnerNamespaces/partnernamWkloZ9", - "name": "partnernamWkloZ9", - "type": "Microsoft.EventGrid/partnerNamespaces" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/partnerNamespaces?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:31:02 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11949", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063103Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "properties": { - "provisioningState": "Succeeded", - "partnerRegistrationFullyQualifiedId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/partnerRegistrations/partnerregWkloZ9", - "endpoint": "https://partnernamwkloz9.eastus-1.eventgrid.azure.net/api/events", - "publicNetworkAccess": "Enabled", - "partnerTopicRoutingMode": "SourceEventAttribute" - }, - "systemData": null, - "location": "eastus", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/partnerNamespaces/partnernamWkloZ9", - "name": "partnernamWkloZ9", - "type": "Microsoft.EventGrid/partnerNamespaces" - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/partnerNamespaces?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:31:03 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11948", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063104Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "properties": { - "provisioningState": "Succeeded", - "partnerRegistrationFullyQualifiedId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/partnerRegistrations/partnerregWkloZ9", - "endpoint": "https://partnernamwkloz9.eastus-1.eventgrid.azure.net/api/events", - "publicNetworkAccess": "Enabled", - "partnerTopicRoutingMode": "SourceEventAttribute" - }, - "systemData": null, - "location": "eastus", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/partnerNamespaces/partnernamWkloZ9", - "name": "partnernamWkloZ9", - "type": "Microsoft.EventGrid/partnerNamespaces" - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/partnerNamespaces/partnernamWkloZ9?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:31:04 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11947", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063104Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "provisioningState": "Succeeded", - "partnerRegistrationFullyQualifiedId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/partnerRegistrations/partnerregWkloZ9", - "endpoint": "https://partnernamwkloz9.eastus-1.eventgrid.azure.net/api/events", - "publicNetworkAccess": "Enabled", - "partnerTopicRoutingMode": "SourceEventAttribute" - }, - "systemData": null, - "location": "eastus", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/partnerNamespaces/partnernamWkloZ9", - "name": "partnernamWkloZ9", - "type": "Microsoft.EventGrid/partnerNamespaces" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/partnerNamespaces/partnernamWkloZ9?api-version=2022-06-15", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "26", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "tags": { - "tag1": "value1" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus/operationsStatus/16744F15-D90A-49E7-B9CC-7B5ED47E3032?api-version=2022-06-15", - "Cache-Control": "no-cache", - "Content-Length": "686", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:31:07 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "10", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1185", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063108Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "provisioningState": "Updating", - "partnerRegistrationFullyQualifiedId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/partnerRegistrations/partnerregWkloZ9", - "endpoint": "https://partnernamwkloz9.eastus-1.eventgrid.azure.net/api/events", - "publicNetworkAccess": "Enabled", - "partnerTopicRoutingMode": "SourceEventAttribute" - }, - "systemData": null, - "location": "eastus", - "tags": { - "tag1": "value1" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/partnerNamespaces/partnernamWkloZ9", - "name": "partnernamWkloZ9", - "type": "Microsoft.EventGrid/partnerNamespaces" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus/operationsStatus/16744F15-D90A-49E7-B9CC-7B5ED47E3032?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:31:17 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11946", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063118Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus/operationsStatus/16744F15-D90A-49E7-B9CC-7B5ED47E3032?api-version=2022-06-15", - "name": "00000000-0000-0000-0000-000000000000", - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/partnerNamespaces/partnernamWkloZ9?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:31:18 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11945", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063119Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "provisioningState": "Succeeded", - "partnerRegistrationFullyQualifiedId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/partnerRegistrations/partnerregWkloZ9", - "endpoint": "https://partnernamwkloz9.eastus-1.eventgrid.azure.net/api/events", - "publicNetworkAccess": "Enabled", - "partnerTopicRoutingMode": "SourceEventAttribute" - }, - "systemData": null, - "location": "eastus", - "tags": { - "tag1": "value1" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/partnerNamespaces/partnernamWkloZ9", - "name": "partnernamWkloZ9", - "type": "Microsoft.EventGrid/partnerNamespaces" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/partnerNamespaces/partnernamWkloZ9/listKeys?api-version=2022-06-15", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:31:19 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1192", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063119Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "key1": "000000000000", - "key2": "000000000000" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/partnerNamespaces/partnernamWkloZ9/regenerateKey?api-version=2022-06-15", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "18", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "keyName": "key1" - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:31:19 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1191", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063120Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "key1": "000000000000", - "key2": "000000000000" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/partnerNamespaces/partnernamWkloZ9?api-version=2022-06-15", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus/operationsStatus/15EFD439-0DF6-44EB-98A4-5EC093C06B32?api-version=2022-06-15", - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 31 Oct 2022 06:31:21 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus/operationResults/15EFD439-0DF6-44EB-98A4-5EC093C06B32?api-version=2022-06-15", - "Pragma": "no-cache", - "Retry-After": "10", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14994", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063122Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus/operationsStatus/15EFD439-0DF6-44EB-98A4-5EC093C06B32?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:31:32 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11944", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063132Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus/operationsStatus/15EFD439-0DF6-44EB-98A4-5EC093C06B32?api-version=2022-06-15", - "name": "00000000-0000-0000-0000-000000000000", - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/partnerRegistrations?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:31:32 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11943", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063133Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "properties": { - "provisioningState": "Succeeded", - "partnerRegistrationImmutableId": "00000000-0000-0000-0000-000000000000", - "visibilityState": "Hidden" - }, - "systemData": null, - "location": "global", - "tags": {}, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-test/providers/Microsoft.EventGrid/partnerRegistrations/gotestpartnerregistration", - "name": "gotestpartnerregistration", - "type": "Microsoft.EventGrid/partnerRegistrations" - }, - { - "properties": { - "provisioningState": "Succeeded", - "partnerRegistrationImmutableId": "00000000-0000-0000-0000-000000000000", - "visibilityState": "Hidden" - }, - "systemData": null, - "location": "global", - "tags": null, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/partnerRegistrations/partnerregwp9LeF", - "name": "partnerregwp9LeF", - "type": "Microsoft.EventGrid/partnerRegistrations" - }, - { - "properties": { - "provisioningState": "Succeeded", - "partnerRegistrationImmutableId": "00000000-0000-0000-0000-000000000000", - "visibilityState": "Hidden" - }, - "systemData": null, - "location": "global", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/partnerRegistrations/partnerregAn9x0U", - "name": "partnerregAn9x0U", - "type": "Microsoft.EventGrid/partnerRegistrations" - }, - { - "properties": { - "provisioningState": "Succeeded", - "partnerRegistrationImmutableId": "00000000-0000-0000-0000-000000000000", - "visibilityState": "Hidden" - }, - "systemData": null, - "location": "global", - "tags": null, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/partnerRegistrations/partnerregro3qkG", - "name": "partnerregro3qkG", - "type": "Microsoft.EventGrid/partnerRegistrations" - }, - { - "properties": { - "provisioningState": "Succeeded", - "partnerRegistrationImmutableId": "00000000-0000-0000-0000-000000000000", - "visibilityState": "Hidden" - }, - "systemData": null, - "location": "global", - "tags": null, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/partnerRegistrations/partnerregWkloZ9", - "name": "partnerregWkloZ9", - "type": "Microsoft.EventGrid/partnerRegistrations" - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/partnerRegistrations/partnerregWkloZ9?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:31:33 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11942", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063133Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "provisioningState": "Succeeded", - "partnerRegistrationImmutableId": "00000000-0000-0000-0000-000000000000", - "visibilityState": "Hidden" - }, - "systemData": null, - "location": "global", - "tags": null, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/partnerRegistrations/partnerregWkloZ9", - "name": "partnerregWkloZ9", - "type": "Microsoft.EventGrid/partnerRegistrations" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/partnerRegistrations?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:31:33 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11941", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063133Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "properties": { - "provisioningState": "Succeeded", - "partnerRegistrationImmutableId": "00000000-0000-0000-0000-000000000000", - "visibilityState": "Hidden" - }, - "systemData": null, - "location": "global", - "tags": null, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/partnerRegistrations/partnerregWkloZ9", - "name": "partnerregWkloZ9", - "type": "Microsoft.EventGrid/partnerRegistrations" - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/partnerRegistrations/partnerregWkloZ9?api-version=2022-06-15", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "42", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "tags": { - "tag1": "value1", - "tag2": "value2" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:31:35 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1184", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063136Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "provisioningState": "Succeeded", - "partnerRegistrationImmutableId": "00000000-0000-0000-0000-000000000000", - "visibilityState": "Hidden" - }, - "systemData": null, - "location": "global", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/partnerRegistrations/partnerregWkloZ9", - "name": "partnerregWkloZ9", - "type": "Microsoft.EventGrid/partnerRegistrations" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/PrivateEndpoint_Create?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "2832", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "mode": "Incremental", - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "domainId": { - "defaultValue": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/domains/domainnameWkloZ9", - "type": "string" - }, - "privateEndpointName": { - "defaultValue": "eventgridprivateendpointWkloZ9", - "type": "string" - }, - "virtualNetworksName": { - "defaultValue": "eventgridvnetWkloZ9", - "type": "string" - } - }, - "resources": [ - { - "apiVersion": "2020-11-01", - "location": "eastus", - "name": "[parameters(\u0027virtualNetworksName\u0027)]", - "properties": { - "addressSpace": { - "addressPrefixes": [ - "10.0.0.0/16" - ] - }, - "enableDdosProtection": false, - "subnets": [ - { - "name": "default", - "properties": { - "addressPrefix": "10.0.0.0/24", - "delegations": [], - "privateEndpointNetworkPolicies": "Disabled", - "privateLinkServiceNetworkPolicies": "Enabled" - } - } - ], - "virtualNetworkPeerings": [] - }, - "type": "Microsoft.Network/virtualNetworks" - }, - { - "apiVersion": "2020-11-01", - "dependsOn": [ - "[resourceId(\u0027Microsoft.Network/virtualNetworks/subnets\u0027, parameters(\u0027virtualNetworksName\u0027), \u0027default\u0027)]" - ], - "location": "eastus", - "name": "[concat(parameters(\u0027privateEndpointName\u0027), \u0027-nic\u0027)]", - "properties": { - "dnsSettings": { - "dnsServers": [] - }, - "enableIPForwarding": false, - "ipConfigurations": [ - { - "name": "privateEndpointIpConfig.00000000-0000-0000-0000-000000000000", - "properties": { - "primary": true, - "privateIPAddress": "10.0.0.4", - "privateIPAddressVersion": "IPv4", - "privateIPAllocationMethod": "Dynamic", - "subnet": { - "id": "[resourceId(\u0027Microsoft.Network/virtualNetworks/subnets\u0027, parameters(\u0027virtualNetworksName\u0027), \u0027default\u0027)]" - } - } - } - ] - }, - "type": "Microsoft.Network/networkInterfaces" - }, - { - "apiVersion": "2020-11-01", - "dependsOn": [ - "[resourceId(\u0027Microsoft.Network/virtualNetworks\u0027, parameters(\u0027virtualNetworksName\u0027))]" - ], - "name": "[concat(parameters(\u0027virtualNetworksName\u0027), \u0027/default\u0027)]", - "properties": { - "addressPrefix": "10.0.0.0/24", - "delegations": [], - "privateEndpointNetworkPolicies": "Disabled", - "privateLinkServiceNetworkPolicies": "Enabled" - }, - "type": "Microsoft.Network/virtualNetworks/subnets" - }, - { - "apiVersion": "2020-11-01", - "dependsOn": [ - "[resourceId(\u0027Microsoft.Network/virtualNetworks/subnets\u0027, parameters(\u0027virtualNetworksName\u0027), \u0027default\u0027)]" - ], - "location": "eastus", - "name": "[parameters(\u0027privateEndpointName\u0027)]", - "properties": { - "customDnsConfigs": [], - "manualPrivateLinkServiceConnections": [], - "privateLinkServiceConnections": [ - { - "name": "[parameters(\u0027privateEndpointName\u0027)]", - "properties": { - "groupIds": [ - "domain" - ], - "privateLinkServiceConnectionState": { - "actionsRequired": "None", - "description": "Auto-Approved", - "status": "Approved" - }, - "privateLinkServiceId": "[parameters(\u0027domainId\u0027)]" - } - } - ], - "subnet": { - "id": "[resourceId(\u0027Microsoft.Network/virtualNetworks/subnets\u0027, parameters(\u0027virtualNetworksName\u0027), \u0027default\u0027)]" - } - }, - "type": "Microsoft.Network/privateEndpoints" - } - ], - "variables": {} - } - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/PrivateEndpoint_Create/operationStatuses/08585344089882618684?api-version=2021-04-01", - "Cache-Control": "no-cache", - "Content-Length": "2775", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:31:40 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1183", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063141Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/PrivateEndpoint_Create", - "name": "PrivateEndpoint_Create", - "type": "Microsoft.Resources/deployments", - "properties": { - "templateHash": "18379584861319940892", - "parameters": { - "domainId": { - "type": "String", - "value": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/domains/domainnameWkloZ9" - }, - "privateEndpointName": { - "type": "String", - "value": "eventgridprivateendpointWkloZ9" - }, - "virtualNetworksName": { - "type": "String", - "value": "eventgridvnetWkloZ9" - } - }, - "mode": "Incremental", - "provisioningState": "Accepted", - "timestamp": "2022-10-31T06:31:39.9237935Z", - "duration": "PT0.0007881S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Network", - "resourceTypes": [ - { - "resourceType": "virtualNetworks", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "networkInterfaces", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "virtualNetworks/subnets", - "locations": [ - null - ] - }, - { - "resourceType": "privateEndpoints", - "locations": [ - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/eventgridvnetWkloZ9/subnets/default", - "resourceType": "Microsoft.Network/virtualNetworks/subnets", - "resourceName": "eventgridvnetWkloZ9/default" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/networkInterfaces/eventgridprivateendpointWkloZ9-nic", - "resourceType": "Microsoft.Network/networkInterfaces", - "resourceName": "eventgridprivateendpointWkloZ9-nic" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/eventgridvnetWkloZ9", - "resourceType": "Microsoft.Network/virtualNetworks", - "resourceName": "eventgridvnetWkloZ9" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/eventgridvnetWkloZ9/subnets/default", - "resourceType": "Microsoft.Network/virtualNetworks/subnets", - "resourceName": "eventgridvnetWkloZ9/default" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/eventgridvnetWkloZ9/subnets/default", - "resourceType": "Microsoft.Network/virtualNetworks/subnets", - "resourceName": "eventgridvnetWkloZ9/default" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateEndpoints/eventgridprivateendpointWkloZ9", - "resourceType": "Microsoft.Network/privateEndpoints", - "resourceName": "eventgridprivateendpointWkloZ9" - } - ] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/PrivateEndpoint_Create/operationStatuses/08585344089882618684?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "20", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:31:41 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11940", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063141Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/PrivateEndpoint_Create/operationStatuses/08585344089882618684?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "20", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:32:11 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11939", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063212Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/PrivateEndpoint_Create/operationStatuses/08585344089882618684?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "22", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:32:41 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11938", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063242Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/PrivateEndpoint_Create?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "3462", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:32:43 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11937", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063243Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/PrivateEndpoint_Create", - "name": "PrivateEndpoint_Create", - "type": "Microsoft.Resources/deployments", - "properties": { - "templateHash": "18379584861319940892", - "parameters": { - "domainId": { - "type": "String", - "value": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/domains/domainnameWkloZ9" - }, - "privateEndpointName": { - "type": "String", - "value": "eventgridprivateendpointWkloZ9" - }, - "virtualNetworksName": { - "type": "String", - "value": "eventgridvnetWkloZ9" - } - }, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2022-10-31T06:32:32.0769708Z", - "duration": "PT52.1539654S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Network", - "resourceTypes": [ - { - "resourceType": "virtualNetworks", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "networkInterfaces", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "virtualNetworks/subnets", - "locations": [ - null - ] - }, - { - "resourceType": "privateEndpoints", - "locations": [ - "eastus" - ] - } - ] - } - ], - "dependencies": [ - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/eventgridvnetWkloZ9/subnets/default", - "resourceType": "Microsoft.Network/virtualNetworks/subnets", - "resourceName": "eventgridvnetWkloZ9/default" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/networkInterfaces/eventgridprivateendpointWkloZ9-nic", - "resourceType": "Microsoft.Network/networkInterfaces", - "resourceName": "eventgridprivateendpointWkloZ9-nic" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/eventgridvnetWkloZ9", - "resourceType": "Microsoft.Network/virtualNetworks", - "resourceName": "eventgridvnetWkloZ9" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/eventgridvnetWkloZ9/subnets/default", - "resourceType": "Microsoft.Network/virtualNetworks/subnets", - "resourceName": "eventgridvnetWkloZ9/default" - }, - { - "dependsOn": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/eventgridvnetWkloZ9/subnets/default", - "resourceType": "Microsoft.Network/virtualNetworks/subnets", - "resourceName": "eventgridvnetWkloZ9/default" - } - ], - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateEndpoints/eventgridprivateendpointWkloZ9", - "resourceType": "Microsoft.Network/privateEndpoints", - "resourceName": "eventgridprivateendpointWkloZ9" - } - ], - "outputResources": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/networkInterfaces/eventgridprivateendpointWkloZ9-nic" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateEndpoints/eventgridprivateendpointWkloZ9" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/eventgridvnetWkloZ9" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/eventgridvnetWkloZ9/subnets/default" - } - ] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/domains/domainnameWkloZ9/privateEndpointConnections?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:32:45 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11936", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063245Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "properties": { - "privateEndpoint": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateEndpoints/eventgridprivateendpointWkloZ9" - }, - "groupIds": [ - "domain" - ], - "privateLinkServiceConnectionState": { - "status": "Approved", - "description": "Auto-approved", - "actionsRequired": "None" - }, - "provisioningState": "Succeeded" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/domains/domainnameWkloZ9/privateEndpointConnections/eventgridprivateendpointWkloZ9.00000000-0000-0000-0000-000000000000", - "name": "eventgridprivateendpointWkloZ9.00000000-0000-0000-0000-000000000000", - "type": "Microsoft.EventGrid/domains/privateEndpointConnections" - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/domains/domainnameWkloZ9/privateEndpointConnections/eventgridprivateendpointWkloZ9.00000000-0000-0000-0000-000000000000?api-version=2022-06-15", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "136", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "privateLinkServiceConnectionState": { - "actionsRequired": "None", - "description": "approving connection", - "status": "Rejected" - } - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus/operationsStatus/A8262055-C4F9-4230-8ECD-1F7DB02E810F?api-version=2022-06-15", - "Cache-Control": "no-cache", - "Content-Length": "586", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:32:46 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "10", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1182", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063246Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "privateEndpoint": null, - "groupIds": null, - "privateLinkServiceConnectionState": { - "status": "Rejected", - "description": "approving connection", - "actionsRequired": "None" - }, - "provisioningState": "Updating" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/domains/domainnameWkloZ9/privateEndpointConnections/eventgridprivateendpointWkloZ9.00000000-0000-0000-0000-000000000000", - "name": "eventgridprivateendpointWkloZ9.00000000-0000-0000-0000-000000000000", - "type": "Microsoft.EventGrid/domains/privateEndpointConnections" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus/operationsStatus/A8262055-C4F9-4230-8ECD-1F7DB02E810F?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:32:56 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063257Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus/operationsStatus/A8262055-C4F9-4230-8ECD-1F7DB02E810F?api-version=2022-06-15", - "name": "00000000-0000-0000-0000-000000000000", - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/domains/domainnameWkloZ9/privateEndpointConnections/eventgridprivateendpointWkloZ9.00000000-0000-0000-0000-000000000000?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:32:57 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063257Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "privateEndpoint": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateEndpoints/eventgridprivateendpointWkloZ9" - }, - "groupIds": [ - "domain" - ], - "privateLinkServiceConnectionState": { - "status": "Rejected", - "description": "approving connection", - "actionsRequired": "None" - }, - "provisioningState": "Succeeded" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/domains/domainnameWkloZ9/privateEndpointConnections/eventgridprivateendpointWkloZ9.00000000-0000-0000-0000-000000000000", - "name": "eventgridprivateendpointWkloZ9.00000000-0000-0000-0000-000000000000", - "type": "Microsoft.EventGrid/domains/privateEndpointConnections" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/domains/domainnameWkloZ9/privateEndpointConnections/eventgridprivateendpointWkloZ9.00000000-0000-0000-0000-000000000000?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:32:58 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063258Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "privateEndpoint": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateEndpoints/eventgridprivateendpointWkloZ9" - }, - "groupIds": [ - "domain" - ], - "privateLinkServiceConnectionState": { - "status": "Rejected", - "description": "approving connection", - "actionsRequired": "None" - }, - "provisioningState": "Succeeded" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/domains/domainnameWkloZ9/privateEndpointConnections/eventgridprivateendpointWkloZ9.00000000-0000-0000-0000-000000000000", - "name": "eventgridprivateendpointWkloZ9.00000000-0000-0000-0000-000000000000", - "type": "Microsoft.EventGrid/domains/privateEndpointConnections" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/domains/domainnameWkloZ9/privateLinkResources?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:32:58 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063259Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "properties": { - "groupId": "domain", - "displayName": "Event Grid domain", - "requiredMembers": [ - "domain" - ], - "requiredZoneNames": [ - "privatelink.eventgrid.azure.net" - ] - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/domains/domainnameWkloZ9/privateLinkResources/domain", - "name": "domain", - "type": "Microsoft.EventGrid/domains/privateLinkResources" - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/systemTopics/systemtopiWkloZ9/eventSubscriptions/eventsubscWkloZ9?api-version=2022-06-15", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "247", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "destination": { - "endpointType": "EventHub", - "properties": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/eventhubnaWkloZ9/eventhubs/eventhubs" - } - } - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com:443/subscriptions/92F95D8F-3C67-4124-91C7-8CF07CDBF241/providers/Microsoft.EventGrid/operationsStatus/B5452E7E-A119-4604-AC6A-E861C0417F01?api-version=2022-06-15", - "Cache-Control": "no-cache", - "Content-Length": "1275", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:33:00 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "10", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1181", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063301Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "topic": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/systemTopics/systemtopiWkloZ9", - "provisioningState": "Creating", - "destination": { - "properties": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/eventhubnaWkloZ9/eventhubs/eventhubs" - }, - "endpointType": "EventHub" - }, - "filter": { - "subjectBeginsWith": "", - "subjectEndsWith": "", - "includedEventTypes": [ - "Microsoft.Resources.ResourceWriteSuccess", - "Microsoft.Resources.ResourceWriteFailure", - "Microsoft.Resources.ResourceWriteCancel", - "Microsoft.Resources.ResourceDeleteSuccess", - "Microsoft.Resources.ResourceDeleteFailure", - "Microsoft.Resources.ResourceDeleteCancel", - "Microsoft.Resources.ResourceActionSuccess", - "Microsoft.Resources.ResourceActionFailure", - "Microsoft.Resources.ResourceActionCancel" - ] - }, - "labels": null, - "retryPolicy": { - "maxDeliveryAttempts": 30, - "eventTimeToLiveInMinutes": 1440 - } - }, - "systemData": null, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/systemTopics/systemtopiWkloZ9/eventSubscriptions/eventsubscWkloZ9", - "name": "eventsubscWkloZ9", - "type": "Microsoft.EventGrid/systemTopics/eventSubscriptions" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/92F95D8F-3C67-4124-91C7-8CF07CDBF241/providers/Microsoft.EventGrid/operationsStatus/B5452E7E-A119-4604-AC6A-E861C0417F01?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:33:11 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063311Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "https://management.azure.com/subscriptions/92F95D8F-3C67-4124-91C7-8CF07CDBF241/providers/Microsoft.EventGrid/operationsStatus/B5452E7E-A119-4604-AC6A-E861C0417F01?api-version=2022-06-15", - "name": "00000000-0000-0000-0000-000000000000", - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/systemTopics/systemtopiWkloZ9/eventSubscriptions/eventsubscWkloZ9?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:33:11 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11930", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063312Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "topic": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/systemTopics/systemtopiWkloZ9", - "provisioningState": "Succeeded", - "destination": { - "properties": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/eventhubnaWkloZ9/eventhubs/eventhubs" - }, - "endpointType": "EventHub" - }, - "filter": { - "subjectBeginsWith": "", - "subjectEndsWith": "", - "includedEventTypes": [ - "Microsoft.Resources.ResourceWriteSuccess", - "Microsoft.Resources.ResourceWriteFailure", - "Microsoft.Resources.ResourceWriteCancel", - "Microsoft.Resources.ResourceDeleteSuccess", - "Microsoft.Resources.ResourceDeleteFailure", - "Microsoft.Resources.ResourceDeleteCancel", - "Microsoft.Resources.ResourceActionSuccess", - "Microsoft.Resources.ResourceActionFailure", - "Microsoft.Resources.ResourceActionCancel" - ] - }, - "labels": null, - "eventDeliverySchema": "EventGridSchema", - "retryPolicy": { - "maxDeliveryAttempts": 30, - "eventTimeToLiveInMinutes": 1440 - } - }, - "systemData": null, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/systemTopics/systemtopiWkloZ9/eventSubscriptions/eventsubscWkloZ9", - "name": "eventsubscWkloZ9", - "type": "Microsoft.EventGrid/systemTopics/eventSubscriptions" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/systemTopics/systemtopiWkloZ9/eventSubscriptions?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:33:12 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11929", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063312Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "properties": { - "topic": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/systemTopics/systemtopiWkloZ9", - "provisioningState": "Succeeded", - "destination": { - "properties": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/eventhubnaWkloZ9/eventhubs/eventhubs" - }, - "endpointType": "EventHub" - }, - "filter": { - "subjectBeginsWith": "", - "subjectEndsWith": "", - "includedEventTypes": [ - "Microsoft.Resources.ResourceWriteSuccess", - "Microsoft.Resources.ResourceWriteFailure", - "Microsoft.Resources.ResourceWriteCancel", - "Microsoft.Resources.ResourceDeleteSuccess", - "Microsoft.Resources.ResourceDeleteFailure", - "Microsoft.Resources.ResourceDeleteCancel", - "Microsoft.Resources.ResourceActionSuccess", - "Microsoft.Resources.ResourceActionFailure", - "Microsoft.Resources.ResourceActionCancel" - ] - }, - "labels": null, - "eventDeliverySchema": "EventGridSchema", - "retryPolicy": { - "maxDeliveryAttempts": 30, - "eventTimeToLiveInMinutes": 1440 - } - }, - "systemData": null, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/systemTopics/systemtopiWkloZ9/eventSubscriptions/eventsubscWkloZ9", - "name": "eventsubscWkloZ9", - "type": "Microsoft.EventGrid/systemTopics/eventSubscriptions" - } - ], - "nextLink": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/systemTopics/systemtopiWkloZ9/eventSubscriptions?api-version=2022-06-15\u0026$skiptoken=%5b%7b%22token%22%3anull%2c%22range%22%3a%7b%22min%22%3a%2205C1E0%22%2c%22max%22%3a%22FF%22%7d%7d%5d\u0026$top=20" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/systemTopics/systemtopiWkloZ9/eventSubscriptions/eventsubscWkloZ9?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:33:12 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11928", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063313Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "topic": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/systemTopics/systemtopiWkloZ9", - "provisioningState": "Succeeded", - "destination": { - "properties": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/eventhubnaWkloZ9/eventhubs/eventhubs" - }, - "endpointType": "EventHub" - }, - "filter": { - "subjectBeginsWith": "", - "subjectEndsWith": "", - "includedEventTypes": [ - "Microsoft.Resources.ResourceWriteSuccess", - "Microsoft.Resources.ResourceWriteFailure", - "Microsoft.Resources.ResourceWriteCancel", - "Microsoft.Resources.ResourceDeleteSuccess", - "Microsoft.Resources.ResourceDeleteFailure", - "Microsoft.Resources.ResourceDeleteCancel", - "Microsoft.Resources.ResourceActionSuccess", - "Microsoft.Resources.ResourceActionFailure", - "Microsoft.Resources.ResourceActionCancel" - ] - }, - "labels": null, - "eventDeliverySchema": "EventGridSchema", - "retryPolicy": { - "maxDeliveryAttempts": 30, - "eventTimeToLiveInMinutes": 1440 - } - }, - "systemData": null, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/systemTopics/systemtopiWkloZ9/eventSubscriptions/eventsubscWkloZ9", - "name": "eventsubscWkloZ9", - "type": "Microsoft.EventGrid/systemTopics/eventSubscriptions" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/systemTopics/systemtopiWkloZ9/eventSubscriptions/eventsubscWkloZ9?api-version=2022-06-15", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "labels": [ - "label1" - ] - }, - "StatusCode": 201, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com:443/subscriptions/92F95D8F-3C67-4124-91C7-8CF07CDBF241/providers/Microsoft.EventGrid/operationsStatus/B80F76CC-A147-4F07-9D22-0150E9146927?api-version=2022-06-15", - "Cache-Control": "no-cache", - "Content-Length": "1321", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:33:14 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "10", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1180", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063314Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "topic": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/systemTopics/systemtopiWkloZ9", - "provisioningState": "Updating", - "destination": { - "properties": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/eventhubnaWkloZ9/eventhubs/eventhubs" - }, - "endpointType": "EventHub" - }, - "filter": { - "subjectBeginsWith": "", - "subjectEndsWith": "", - "includedEventTypes": [ - "Microsoft.Resources.ResourceWriteSuccess", - "Microsoft.Resources.ResourceWriteFailure", - "Microsoft.Resources.ResourceWriteCancel", - "Microsoft.Resources.ResourceDeleteSuccess", - "Microsoft.Resources.ResourceDeleteFailure", - "Microsoft.Resources.ResourceDeleteCancel", - "Microsoft.Resources.ResourceActionSuccess", - "Microsoft.Resources.ResourceActionFailure", - "Microsoft.Resources.ResourceActionCancel" - ] - }, - "labels": [ - "label1" - ], - "eventDeliverySchema": "EventGridSchema", - "retryPolicy": { - "maxDeliveryAttempts": 30, - "eventTimeToLiveInMinutes": 1440 - } - }, - "systemData": null, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/systemTopics/systemtopiWkloZ9/eventSubscriptions/eventsubscWkloZ9", - "name": "eventsubscWkloZ9", - "type": "Microsoft.EventGrid/systemTopics/eventSubscriptions" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/92F95D8F-3C67-4124-91C7-8CF07CDBF241/providers/Microsoft.EventGrid/operationsStatus/B80F76CC-A147-4F07-9D22-0150E9146927?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:33:24 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11927", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063324Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "https://management.azure.com/subscriptions/92F95D8F-3C67-4124-91C7-8CF07CDBF241/providers/Microsoft.EventGrid/operationsStatus/B80F76CC-A147-4F07-9D22-0150E9146927?api-version=2022-06-15", - "name": "00000000-0000-0000-0000-000000000000", - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/systemTopics/systemtopiWkloZ9/eventSubscriptions/eventsubscWkloZ9?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:33:24 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11926", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063325Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "topic": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/systemTopics/systemtopiWkloZ9", - "provisioningState": "Succeeded", - "destination": { - "properties": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/eventhubnaWkloZ9/eventhubs/eventhubs" - }, - "endpointType": "EventHub" - }, - "filter": { - "subjectBeginsWith": "", - "subjectEndsWith": "", - "includedEventTypes": [ - "Microsoft.Resources.ResourceWriteSuccess", - "Microsoft.Resources.ResourceWriteFailure", - "Microsoft.Resources.ResourceWriteCancel", - "Microsoft.Resources.ResourceDeleteSuccess", - "Microsoft.Resources.ResourceDeleteFailure", - "Microsoft.Resources.ResourceDeleteCancel", - "Microsoft.Resources.ResourceActionSuccess", - "Microsoft.Resources.ResourceActionFailure", - "Microsoft.Resources.ResourceActionCancel" - ] - }, - "labels": [ - "label1" - ], - "eventDeliverySchema": "EventGridSchema", - "retryPolicy": { - "maxDeliveryAttempts": 30, - "eventTimeToLiveInMinutes": 1440 - } - }, - "systemData": null, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/systemTopics/systemtopiWkloZ9/eventSubscriptions/eventsubscWkloZ9", - "name": "eventsubscWkloZ9", - "type": "Microsoft.EventGrid/systemTopics/eventSubscriptions" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/systemTopics/systemtopiWkloZ9/eventSubscriptions/eventsubscWkloZ9/getDeliveryAttributes?api-version=2022-06-15", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:33:25 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1190", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063326Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": null - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/systemTopics/systemtopiWkloZ9/eventSubscriptions/eventsubscWkloZ9?api-version=2022-06-15", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com:443/subscriptions/92F95D8F-3C67-4124-91C7-8CF07CDBF241/providers/Microsoft.EventGrid/operationsStatus/35BC7B80-7E45-42ED-B247-166BC7D01D1F?api-version=2022-06-15", - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 31 Oct 2022 06:33:26 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/92F95D8F-3C67-4124-91C7-8CF07CDBF241/providers/Microsoft.EventGrid/operationResults/35BC7B80-7E45-42ED-B247-166BC7D01D1F?api-version=2022-06-15", - "Pragma": "no-cache", - "Retry-After": "10", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14993", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063327Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/92F95D8F-3C67-4124-91C7-8CF07CDBF241/providers/Microsoft.EventGrid/operationsStatus/35BC7B80-7E45-42ED-B247-166BC7D01D1F?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:33:37 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11925", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063337Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "https://management.azure.com/subscriptions/92F95D8F-3C67-4124-91C7-8CF07CDBF241/providers/Microsoft.EventGrid/operationsStatus/35BC7B80-7E45-42ED-B247-166BC7D01D1F?api-version=2022-06-15", - "name": "00000000-0000-0000-0000-000000000000", - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/systemTopics?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:33:37 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11924", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063338Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "properties": { - "provisioningState": "Succeeded", - "source": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_eventgrid_test_eventgrid31ec0fa8", - "topicType": "microsoft.resources.resourcegroups", - "metricResourceId": "00000000-0000-0000-0000-000000000000" - }, - "systemData": null, - "location": "global", - "tags": null, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_eventgrid_test_eventgrid31ec0fa8/providers/Microsoft.EventGrid/systemTopics/test_cli_mgmt_eventgrid_test_eventgrid31ec0fa8-00000000-0000-0000-0000-000000000000", - "name": "test_cli_mgmt_eventgrid_test_eventgrid31ec0fa8-00000000-0000-0000-0000-000000000000", - "type": "Microsoft.EventGrid/systemTopics" - }, - { - "properties": { - "provisioningState": "Succeeded", - "source": "/subscriptions/00000000-0000-0000-0000-000000000000", - "topicType": "Microsoft.Resources.Subscriptions", - "metricResourceId": "00000000-0000-0000-0000-000000000000" - }, - "systemData": null, - "location": "global", - "tags": null, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/systemTopics/systemtopiWkloZ9", - "name": "systemtopiWkloZ9", - "type": "Microsoft.EventGrid/systemTopics" - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/systemTopics?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:33:37 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11923", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063338Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "properties": { - "provisioningState": "Succeeded", - "source": "/subscriptions/00000000-0000-0000-0000-000000000000", - "topicType": "Microsoft.Resources.Subscriptions", - "metricResourceId": "00000000-0000-0000-0000-000000000000" - }, - "systemData": null, - "location": "global", - "tags": null, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/systemTopics/systemtopiWkloZ9", - "name": "systemtopiWkloZ9", - "type": "Microsoft.EventGrid/systemTopics" - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/systemTopics/systemtopiWkloZ9?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:33:38 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11922", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063339Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "provisioningState": "Succeeded", - "source": "/subscriptions/00000000-0000-0000-0000-000000000000", - "topicType": "Microsoft.Resources.Subscriptions", - "metricResourceId": "00000000-0000-0000-0000-000000000000" - }, - "systemData": null, - "location": "global", - "tags": null, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/systemTopics/systemtopiWkloZ9", - "name": "systemtopiWkloZ9", - "type": "Microsoft.EventGrid/systemTopics" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/systemTopics/systemtopiWkloZ9?api-version=2022-06-15", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "42", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "tags": { - "tag1": "value1", - "tag2": "value2" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:33:40 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1179", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063341Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "provisioningState": "Succeeded", - "source": "/subscriptions/00000000-0000-0000-0000-000000000000", - "topicType": "Microsoft.Resources.Subscriptions", - "metricResourceId": "00000000-0000-0000-0000-000000000000" - }, - "systemData": null, - "location": "global", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/systemTopics/systemtopiWkloZ9", - "name": "systemtopiWkloZ9", - "type": "Microsoft.EventGrid/systemTopics" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/topics/topicnameWkloZ9/eventSubscriptions/eventsubscWkloZ9?api-version=2022-06-15", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "247", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "destination": { - "endpointType": "EventHub", - "properties": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/eventhubnaWkloZ9/eventhubs/eventhubs" - } - } - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus/operationsStatus/07605956-C3BB-4842-8C03-F25E3F1B8FB2?api-version=2022-06-15", - "Cache-Control": "no-cache", - "Content-Length": "842", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:33:43 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "10", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1178", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063344Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "topic": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/microsoft.eventgrid/topics/topicnamewkloz9", - "provisioningState": "Creating", - "destination": { - "properties": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/eventhubnaWkloZ9/eventhubs/eventhubs" - }, - "endpointType": "EventHub" - }, - "filter": { - "subjectBeginsWith": "", - "subjectEndsWith": "" - }, - "labels": null, - "retryPolicy": { - "maxDeliveryAttempts": 30, - "eventTimeToLiveInMinutes": 1440 - } - }, - "systemData": null, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/topics/topicnameWkloZ9/eventSubscriptions/eventsubscWkloZ9", - "name": "eventsubscWkloZ9", - "type": "Microsoft.EventGrid/topics/eventSubscriptions" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus/operationsStatus/07605956-C3BB-4842-8C03-F25E3F1B8FB2?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:33:54 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11921", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063354Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus/operationsStatus/07605956-C3BB-4842-8C03-F25E3F1B8FB2?api-version=2022-06-15", - "name": "00000000-0000-0000-0000-000000000000", - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/topics/topicnameWkloZ9/eventSubscriptions/eventsubscWkloZ9?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:33:55 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11920", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063355Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "topic": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/microsoft.eventgrid/topics/topicnamewkloz9", - "provisioningState": "Succeeded", - "destination": { - "properties": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/eventhubnaWkloZ9/eventhubs/eventhubs" - }, - "endpointType": "EventHub" - }, - "filter": { - "subjectBeginsWith": "", - "subjectEndsWith": "" - }, - "labels": null, - "eventDeliverySchema": "EventGridSchema", - "retryPolicy": { - "maxDeliveryAttempts": 30, - "eventTimeToLiveInMinutes": 1440 - } - }, - "systemData": null, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/topics/topicnameWkloZ9/eventSubscriptions/eventsubscWkloZ9", - "name": "eventsubscWkloZ9", - "type": "Microsoft.EventGrid/topics/eventSubscriptions" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/topics/topicnameWkloZ9/eventSubscriptions?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:33:55 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11919", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063355Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "properties": { - "topic": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/microsoft.eventgrid/topics/topicnamewkloz9", - "provisioningState": "Succeeded", - "destination": { - "properties": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/eventhubnaWkloZ9/eventhubs/eventhubs" - }, - "endpointType": "EventHub" - }, - "filter": { - "subjectBeginsWith": "", - "subjectEndsWith": "" - }, - "labels": null, - "eventDeliverySchema": "EventGridSchema", - "retryPolicy": { - "maxDeliveryAttempts": 30, - "eventTimeToLiveInMinutes": 1440 - } - }, - "systemData": null, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/topics/topicnameWkloZ9/eventSubscriptions/eventsubscWkloZ9", - "name": "eventsubscWkloZ9", - "type": "Microsoft.EventGrid/topics/eventSubscriptions" - } - ], - "nextLink": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/topics/topicnameWkloZ9/eventSubscriptions?api-version=2022-06-15\u0026$skiptoken=%5b%7b%22token%22%3anull%2c%22range%22%3a%7b%22min%22%3a%2205C1DF6B5557E0%22%2c%22max%22%3a%22FF%22%7d%7d%5d\u0026$top=20" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/topics/topicnameWkloZ9/eventSubscriptions/eventsubscWkloZ9?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:33:56 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11918", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063356Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "topic": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/microsoft.eventgrid/topics/topicnamewkloz9", - "provisioningState": "Succeeded", - "destination": { - "properties": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/eventhubnaWkloZ9/eventhubs/eventhubs" - }, - "endpointType": "EventHub" - }, - "filter": { - "subjectBeginsWith": "", - "subjectEndsWith": "" - }, - "labels": null, - "eventDeliverySchema": "EventGridSchema", - "retryPolicy": { - "maxDeliveryAttempts": 30, - "eventTimeToLiveInMinutes": 1440 - } - }, - "systemData": null, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/topics/topicnameWkloZ9/eventSubscriptions/eventsubscWkloZ9", - "name": "eventsubscWkloZ9", - "type": "Microsoft.EventGrid/topics/eventSubscriptions" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/topics/topicnameWkloZ9/eventSubscriptions/eventsubscWkloZ9?api-version=2022-06-15", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "labels": [ - "label1" - ] - }, - "StatusCode": 201, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus/operationsStatus/09C6907C-0AA8-4383-B963-A4142E321144?api-version=2022-06-15", - "Cache-Control": "no-cache", - "Content-Length": "888", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:33:58 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "10", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1177", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063358Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "topic": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/microsoft.eventgrid/topics/topicnamewkloz9", - "provisioningState": "Updating", - "destination": { - "properties": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/eventhubnaWkloZ9/eventhubs/eventhubs" - }, - "endpointType": "EventHub" - }, - "filter": { - "subjectBeginsWith": "", - "subjectEndsWith": "" - }, - "labels": [ - "label1" - ], - "eventDeliverySchema": "EventGridSchema", - "retryPolicy": { - "maxDeliveryAttempts": 30, - "eventTimeToLiveInMinutes": 1440 - } - }, - "systemData": null, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/topics/topicnameWkloZ9/eventSubscriptions/eventsubscWkloZ9", - "name": "eventsubscWkloZ9", - "type": "Microsoft.EventGrid/topics/eventSubscriptions" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus/operationsStatus/09C6907C-0AA8-4383-B963-A4142E321144?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:34:08 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11917", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063408Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus/operationsStatus/09C6907C-0AA8-4383-B963-A4142E321144?api-version=2022-06-15", - "name": "00000000-0000-0000-0000-000000000000", - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/topics/topicnameWkloZ9/eventSubscriptions/eventsubscWkloZ9?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:34:09 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11916", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063409Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "topic": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/microsoft.eventgrid/topics/topicnamewkloz9", - "provisioningState": "Succeeded", - "destination": { - "properties": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/eventhubnaWkloZ9/eventhubs/eventhubs" - }, - "endpointType": "EventHub" - }, - "filter": { - "subjectBeginsWith": "", - "subjectEndsWith": "" - }, - "labels": [ - "label1" - ], - "eventDeliverySchema": "EventGridSchema", - "retryPolicy": { - "maxDeliveryAttempts": 30, - "eventTimeToLiveInMinutes": 1440 - } - }, - "systemData": null, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/topics/topicnameWkloZ9/eventSubscriptions/eventsubscWkloZ9", - "name": "eventsubscWkloZ9", - "type": "Microsoft.EventGrid/topics/eventSubscriptions" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/topics/topicnameWkloZ9/eventSubscriptions/eventsubscWkloZ9/getDeliveryAttributes?api-version=2022-06-15", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:34:09 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1189", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063409Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": null - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/topics/topicnameWkloZ9/eventSubscriptions/eventsubscWkloZ9?api-version=2022-06-15", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus/operationsStatus/334BEA4A-43CE-46B1-8590-6077B0501C5D?api-version=2022-06-15", - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 31 Oct 2022 06:34:11 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus/operationResults/334BEA4A-43CE-46B1-8590-6077B0501C5D?api-version=2022-06-15", - "Pragma": "no-cache", - "Retry-After": "10", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14992", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063411Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus/operationsStatus/334BEA4A-43CE-46B1-8590-6077B0501C5D?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:34:21 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11915", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063422Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus/operationsStatus/334BEA4A-43CE-46B1-8590-6077B0501C5D?api-version=2022-06-15", - "name": "00000000-0000-0000-0000-000000000000", - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.EventGrid/topicTypes?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:34:22 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-tenant-reads": "11998", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063422Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "properties": { - "provider": "Microsoft.Eventhub", - "displayName": "Event Hubs Namespaces", - "description": "Microsoft Event Hubs service events.", - "resourceRegionType": "RegionalResource", - "provisioningState": "Succeeded", - "supportedLocations": [ - "West US 2", - "West Central US", - "East US 2 EUAP", - "Central US EUAP", - "East US", - "West US", - "Central US", - "East US 2", - "West Europe", - "North Europe", - "Southeast Asia", - "East Asia", - "Japan East", - "Japan West", - "Australia East", - "Australia Southeast", - "North Central US", - "South Central US", - "Canada Central", - "Canada East", - "Central India", - "South India", - "France Central", - "UK West", - "Korea Central", - "Korea South", - "Central US EUAP", - "West India", - "Brazil South", - "UK South", - "Australia Central", - "Australia Central 2", - "France South", - "South Africa North", - "South Africa West", - "UAE North", - "UAE Central", - "Switzerland North", - "Switzerland West", - "Germany North", - "Germany West Central" - ], - "sourceResourceFormat": "/subscriptions/\u003CsubscriptionId\u003E/resourceGroups/\u003CresourceGroupName\u003E/providers/Microsoft.EventHub/namespaces/\u003CnamespaceName\u003E" - }, - "id": "providers/Microsoft.EventGrid/topicTypes/Microsoft.Eventhub.Namespaces", - "name": "Microsoft.Eventhub.Namespaces", - "type": "Microsoft.EventGrid/topicTypes" - }, - { - "properties": { - "provider": "Microsoft.Storage", - "displayName": "Storage Accounts (Blob \u0026 GPv2)", - "description": "Microsoft Storage service events.", - "resourceRegionType": "RegionalResource", - "provisioningState": "Succeeded", - "supportedLocations": [ - "West US 2", - "West Central US", - "East US 2 EUAP", - "East US 2 (Stage)", - "East US", - "West US", - "Central US", - "East US 2", - "West Europe", - "North Europe", - "Southeast Asia", - "East Asia", - "Japan East", - "Japan West", - "Australia East", - "Australia Southeast", - "North Central US", - "South Central US", - "Canada Central", - "Canada East", - "Central India", - "South India", - "France Central", - "UK West", - "Korea Central", - "Korea South", - "Central US EUAP", - "West India", - "Brazil South", - "UK South", - "Australia Central", - "Australia Central 2", - "France South", - "South Africa North", - "South Africa West", - "UAE North", - "UAE Central", - "Switzerland North", - "Switzerland West", - "Germany North", - "Germany West Central", - "Norway East", - "Norway West", - "West US 3", - "Jio India Central", - "Jio India West", - "Sweden Central", - "Sweden South" - ], - "sourceResourceFormat": "/subscriptions/\u003CsubscriptionId\u003E/resourceGroups/\u003CresourceGroupName\u003E/providers/Microsoft.Storage/storageAccounts/\u003CstorageAccountName\u003E" - }, - "id": "providers/Microsoft.EventGrid/topicTypes/Microsoft.Storage.StorageAccounts", - "name": "Microsoft.Storage.StorageAccounts", - "type": "Microsoft.EventGrid/topicTypes" - }, - { - "properties": { - "provider": "Microsoft.Resources", - "displayName": "Azure Subscriptions", - "description": "Resource management events under an Azure subscription", - "resourceRegionType": "GlobalResource", - "provisioningState": "Succeeded", - "sourceResourceFormat": "/subscriptions/\u003CsubscriptionId\u003E" - }, - "id": "providers/Microsoft.EventGrid/topicTypes/Microsoft.Resources.Subscriptions", - "name": "Microsoft.Resources.Subscriptions", - "type": "Microsoft.EventGrid/topicTypes" - }, - { - "properties": { - "provider": "Microsoft.Resources", - "displayName": "Resource Groups", - "description": "Resource management events under a resource group.", - "resourceRegionType": "GlobalResource", - "provisioningState": "Succeeded", - "sourceResourceFormat": "/subscriptions/\u003CsubscriptionId\u003E/resourceGroups/\u003CresourceGroupName\u003E" - }, - "id": "providers/Microsoft.EventGrid/topicTypes/Microsoft.Resources.ResourceGroups", - "name": "Microsoft.Resources.ResourceGroups", - "type": "Microsoft.EventGrid/topicTypes" - }, - { - "properties": { - "provider": "Microsoft.Devices", - "displayName": "Azure IoT Hub Accounts", - "description": "Azure IoT Hub service events", - "resourceRegionType": "RegionalResource", - "provisioningState": "Succeeded", - "supportedLocations": [ - "West US 2", - "West Central US", - "East US", - "West US", - "Central US", - "East US 2", - "West Europe", - "North Europe", - "Southeast Asia", - "East Asia", - "Japan East", - "Japan West", - "Australia East", - "Australia Southeast", - "Canada Central", - "Canada East", - "Central India", - "South India", - "UK West", - "Central US EUAP", - "West India", - "Brazil South", - "UK South", - "North Central US", - "South Central US", - "Korea Central", - "Korea South", - "France Central", - "UAE North", - "UAE Central", - "South Africa North", - "South Africa West", - "Germany North", - "Germany West Central", - "Australia Central", - "Australia Central 2", - "East US 2 EUAP", - "France South", - "West US 3" - ], - "sourceResourceFormat": "/subscriptions/\u003CsubscriptionId\u003E/resourceGroups/\u003CresourceGroupName\u003E/providers/Microsoft.Devices/ioTHubs/\u003ChubName\u003E" - }, - "id": "providers/Microsoft.EventGrid/topicTypes/Microsoft.Devices.IoTHubs", - "name": "Microsoft.Devices.IoTHubs", - "type": "Microsoft.EventGrid/topicTypes" - }, - { - "properties": { - "provider": "Microsoft.EventGrid", - "displayName": "Event Grid Topics", - "description": "Custom events via Event Grid Topics", - "resourceRegionType": "RegionalResource", - "provisioningState": "Succeeded", - "supportedLocations": [ - "West US 2", - "West Central US", - "East US 2 EUAP", - "East US", - "West US", - "Central US", - "East US 2", - "West Europe", - "North Europe", - "Southeast Asia", - "East Asia", - "Japan East", - "Japan West", - "Australia East", - "Australia Southeast", - "North Central US", - "South Central US", - "Canada Central", - "Canada East", - "Central India", - "South India", - "France Central", - "UK West", - "Korea Central", - "Korea South", - "Central US EUAP", - "West India", - "Brazil South", - "UK South", - "Australia Central", - "Australia Central 2", - "France South", - "South Africa North", - "South Africa West", - "UAE North", - "UAE Central", - "Switzerland North", - "Switzerland West", - "Germany North", - "Germany West Central", - "Brazil Southeast", - "West US 3", - "Jio India Central", - "Jio India West", - "Sweden Central", - "Sweden South", - "Qatar Central" - ] - }, - "id": "providers/Microsoft.EventGrid/topicTypes/Microsoft.EventGrid.Topics", - "name": "Microsoft.EventGrid.Topics", - "type": "Microsoft.EventGrid/topicTypes" - }, - { - "properties": { - "provider": "Microsoft.ServiceBus", - "displayName": "Service Bus Namespaces", - "description": "Service Bus events", - "resourceRegionType": "RegionalResource", - "provisioningState": "Succeeded", - "supportedLocations": [ - "West US 2", - "West Central US", - "East US 2 EUAP", - "East US", - "West US", - "Central US", - "East US 2", - "West Europe", - "North Europe", - "Southeast Asia", - "East Asia", - "Japan East", - "Japan West", - "Australia East", - "Australia Southeast", - "North Central US", - "South Central US", - "Canada Central", - "Canada East", - "Central India", - "South India", - "France Central", - "UK West", - "Korea Central", - "Korea South", - "Central US EUAP", - "West India", - "Brazil South", - "UK South", - "Australia Central", - "Australia Central 2", - "France South", - "South Africa North", - "South Africa West", - "UAE North", - "UAE Central", - "Switzerland North", - "Switzerland West", - "Germany North", - "Germany West Central" - ], - "sourceResourceFormat": "/subscriptions/\u003CsubscriptionId\u003E/resourceGroups/\u003CresourceGroupName\u003E/providers/Microsoft.ServiceBus/namespaces/\u003CnamespaceName\u003E" - }, - "id": "providers/Microsoft.EventGrid/topicTypes/Microsoft.ServiceBus.Namespaces", - "name": "Microsoft.ServiceBus.Namespaces", - "type": "Microsoft.EventGrid/topicTypes" - }, - { - "properties": { - "provider": "Microsoft.ContainerRegistry", - "displayName": "Azure Container Registry", - "description": "Azure Container Registry service events", - "resourceRegionType": "RegionalResource", - "provisioningState": "Succeeded", - "supportedLocations": [ - "West US 2", - "West Central US", - "East US 2 EUAP", - "East US", - "West US", - "Central US", - "East US 2", - "West Europe", - "North Europe", - "Southeast Asia", - "East Asia", - "South Central US", - "North Central US", - "Central US EUAP", - "Brazil South", - "Canada East", - "Canada Central", - "UK South", - "UK West", - "Australia East", - "Australia Southeast", - "Central India", - "Japan East", - "Japan West", - "South India" - ], - "sourceResourceFormat": "/subscriptions/\u003CsubscriptionId\u003E/resourceGroups/\u003CresourceGroupName\u003E/providers/Microsoft.ContainerRegistry/registries/\u003Cname\u003E" - }, - "id": "providers/Microsoft.EventGrid/topicTypes/Microsoft.ContainerRegistry.Registries", - "name": "Microsoft.ContainerRegistry.Registries", - "type": "Microsoft.EventGrid/topicTypes" - }, - { - "properties": { - "provider": "Microsoft.Media", - "displayName": "Microsoft Azure Media Services", - "description": "Microsoft Azure Media Services events", - "resourceRegionType": "RegionalResource", - "provisioningState": "Succeeded", - "supportedLocations": [ - "Australia East", - "Australia Southeast", - "Brazil South", - "Canada Central", - "Canada East", - "Central India", - "Central US", - "Central US EUAP", - "East Asia", - "East US", - "East US 2", - "East US 2 EUAP", - "France Central", - "France South", - "Japan East", - "Japan West", - "Korea Central", - "Korea South", - "North Central US", - "North Europe", - "South Central US", - "South India", - "Southeast Asia", - "UK South", - "UK West", - "West Central US", - "West Europe", - "West India", - "West US", - "West US 2", - "West US 3", - "South Africa North", - "South Africa West", - "UAE North", - "UAE Central", - "Switzerland North", - "Switzerland West", - "Germany North", - "Germany West Central", - "Norway East", - "Brazil Southeast", - "Sweden Central", - "Jio India West", - "Australia Central", - "Qatar Central" - ], - "sourceResourceFormat": "/subscriptions/\u003CsubscriptionId\u003E/resourceGroups/\u003CresourceGroupName\u003E/providers/Microsoft.Media/MediaServices/\u003Cname\u003E" - }, - "id": "providers/Microsoft.EventGrid/topicTypes/Microsoft.Media.MediaServices", - "name": "Microsoft.Media.MediaServices", - "type": "Microsoft.EventGrid/topicTypes" - }, - { - "properties": { - "provider": "Microsoft.Maps", - "displayName": "Azure Maps Accounts", - "description": "Microsoft Maps service events.", - "resourceRegionType": "GlobalResource", - "provisioningState": "Succeeded", - "sourceResourceFormat": "/subscriptions/\u003CsubscriptionId\u003E/resourceGroups/\u003CresourceGroupName\u003E/providers/Microsoft.Maps/Accounts/\u003Cname\u003E" - }, - "id": "providers/Microsoft.EventGrid/topicTypes/Microsoft.Maps.Accounts", - "name": "Microsoft.Maps.Accounts", - "type": "Microsoft.EventGrid/topicTypes" - }, - { - "properties": { - "provider": "Microsoft.EventGrid", - "displayName": "Event Grid Domains", - "description": "Custom events via Event Grid Domains.", - "resourceRegionType": "RegionalResource", - "provisioningState": "Succeeded", - "supportedLocations": [ - "West US 2", - "West Central US", - "East US 2 EUAP", - "East US", - "West US", - "Central US", - "East US 2", - "West Europe", - "North Europe", - "Southeast Asia", - "East Asia", - "Japan East", - "Japan West", - "Australia East", - "Australia Southeast", - "North Central US", - "South Central US", - "Canada Central", - "Canada East", - "Central India", - "South India", - "France Central", - "UK West", - "Korea Central", - "Korea South", - "Central US EUAP", - "West India", - "Brazil South", - "UK South", - "Australia Central", - "Australia Central 2", - "France South", - "South Africa North", - "South Africa West", - "UAE North", - "UAE Central", - "Switzerland North", - "Switzerland West", - "Germany North", - "Germany West Central", - "Brazil Southeast", - "West US 3", - "Jio India Central", - "Jio India West", - "Sweden Central", - "Sweden South", - "Qatar Central" - ] - }, - "id": "providers/Microsoft.EventGrid/topicTypes/Microsoft.EventGrid.Domains", - "name": "Microsoft.EventGrid.Domains", - "type": "Microsoft.EventGrid/topicTypes" - }, - { - "properties": { - "provider": "Microsoft.AppConfiguration", - "displayName": "Microsoft Azure App Configuration", - "description": "Microsoft Azure App Configuration events", - "resourceRegionType": "RegionalResource", - "provisioningState": "Succeeded", - "supportedLocations": [ - "East US 2 EUAP", - "West Central US", - "East US", - "South East Asia", - "West Europe", - "Australia East", - "North Europe", - "UK South", - "South Central US", - "East US 2", - "West US 2", - "West US", - "Central US", - "Brazil South", - "Canada Central", - "East Asia", - "France Central", - "Japan East", - "Korea Central", - "North Central US", - "Central India" - ], - "sourceResourceFormat": "/subscriptions/\u003CsubscriptionId\u003E/resourceGroups/\u003CresourceGroupName\u003E/providers/Microsoft.AppConfiguration/ConfigurationStores/\u003Cname\u003E" - }, - "id": "providers/Microsoft.EventGrid/topicTypes/Microsoft.AppConfiguration.ConfigurationStores", - "name": "Microsoft.AppConfiguration.ConfigurationStores", - "type": "Microsoft.EventGrid/topicTypes" - }, - { - "properties": { - "provider": "Microsoft.KeyVault", - "displayName": "Microsoft Key Vault", - "description": "Microsoft Key Vault service events", - "resourceRegionType": "RegionalResource", - "provisioningState": "Succeeded", - "supportedLocations": [ - "West US 2", - "West Central US", - "East US 2 EUAP", - "East US", - "West US", - "Central US", - "East US 2", - "West Europe", - "North Europe", - "Southeast Asia", - "East Asia", - "Japan East", - "Japan West", - "Australia East", - "Australia Southeast", - "North Central US", - "South Central US", - "Canada Central", - "Canada East", - "Central India", - "South India", - "France Central", - "UK West", - "Korea Central", - "Korea South", - "Central US EUAP", - "West India", - "Brazil South", - "UK South", - "Australia Central", - "Australia Central 2", - "France South", - "South Africa North", - "South Africa West", - "UAE North", - "UAE Central", - "Switzerland North", - "Switzerland West", - "Germany North", - "Germany West Central", - "Brazil Southeast", - "West US 3", - "Jio India Central", - "Jio India West", - "Sweden Central", - "Sweden South", - "Qatar Central" - ], - "sourceResourceFormat": "/subscriptions/\u003CsubscriptionId\u003E/resourceGroups/\u003CresourceGroupName\u003E/providers/Microsoft.KeyVault/vaults/\u003Cname\u003E" - }, - "id": "providers/Microsoft.EventGrid/topicTypes/Microsoft.KeyVault.vaults", - "name": "Microsoft.KeyVault.vaults", - "type": "Microsoft.EventGrid/topicTypes" - }, - { - "properties": { - "provider": "Microsoft.Web", - "displayName": "App Services", - "description": "App Services events", - "resourceRegionType": "RegionalResource", - "provisioningState": "Succeeded", - "supportedLocations": [ - "West US 2", - "West Central US", - "East US 2 EUAP", - "East US", - "West US", - "Central US", - "East US 2", - "West Europe", - "North Europe", - "Southeast Asia", - "East Asia", - "Japan East", - "Japan West", - "Australia East", - "Australia Southeast", - "North Central US", - "South Central US", - "Canada Central", - "Canada East", - "Central India", - "South India", - "France Central", - "UK West", - "Korea Central", - "Korea South", - "Central US EUAP", - "West India", - "Brazil South", - "UK South", - "Australia Central", - "Australia Central 2", - "France South", - "South Africa North", - "South Africa West", - "UAE North", - "UAE Central", - "Switzerland North", - "Switzerland West", - "Germany North", - "Germany West Central" - ], - "sourceResourceFormat": "/subscriptions/\u003CsubscriptionId\u003E/resourceGroups/\u003CresourceGroupName\u003E/providers/Microsoft.Web/sites/\u003Cname\u003E" - }, - "id": "providers/Microsoft.EventGrid/topicTypes/Microsoft.Web.Sites", - "name": "Microsoft.Web.Sites", - "type": "Microsoft.EventGrid/topicTypes" - }, - { - "properties": { - "provider": "Microsoft.Web", - "displayName": "App Service Plans", - "description": "App Service Plans events", - "resourceRegionType": "RegionalResource", - "provisioningState": "Succeeded", - "supportedLocations": [ - "West US 2", - "West Central US", - "East US 2 EUAP", - "East US", - "West US", - "Central US", - "East US 2", - "West Europe", - "North Europe", - "Southeast Asia", - "East Asia", - "Japan East", - "Japan West", - "Australia East", - "Australia Southeast", - "North Central US", - "South Central US", - "Canada Central", - "Canada East", - "Central India", - "South India", - "France Central", - "UK West", - "Korea Central", - "Korea South", - "Central US EUAP", - "West India", - "Brazil South", - "UK South", - "Australia Central", - "Australia Central 2", - "France South", - "South Africa North", - "South Africa West", - "UAE North", - "UAE Central", - "Switzerland North", - "Switzerland West", - "Germany North", - "Germany West Central" - ], - "sourceResourceFormat": "/subscriptions/\u003CsubscriptionId\u003E/resourceGroups/\u003CresourceGroupName\u003E/providers/Microsoft.Web/ServerFarms/\u003Cname\u003E" - }, - "id": "providers/Microsoft.EventGrid/topicTypes/Microsoft.Web.ServerFarms", - "name": "Microsoft.Web.ServerFarms", - "type": "Microsoft.EventGrid/topicTypes" - }, - { - "properties": { - "provider": "Microsoft.SignalRService", - "displayName": "Azure SignalR Service", - "description": "Azure SignalR service events", - "resourceRegionType": "RegionalResource", - "provisioningState": "Succeeded", - "supportedLocations": [ - "Australia East", - "Canada East", - "Central US", - "Central US EUAP", - "East US 2 EUAP", - "East US", - "East US 2", - "Japan East", - "North Europe", - "South Central US", - "Southeast Asia", - "UK South", - "UK West", - "West Central US", - "West Europe", - "West US", - "West US 2", - "Brazil South", - "Korea Central", - "France Central", - "Switzerland North", - "Switzerland West", - "Central India", - "South Africa North", - "UAE North", - "Germany West Central", - "North Central US", - "Norway East", - "East Asia", - "Canada Central", - "West India", - "South India", - "Japan West", - "West US 3", - "Sweden Central", - "Qatar Central", - "norwayeast" - ], - "sourceResourceFormat": "/subscriptions/\u003CsubscriptionId\u003E/resourceGroups/\u003CresourceGroupName\u003E/providers/Microsoft.SignalRService/SignalR/\u003Cname\u003E" - }, - "id": "providers/Microsoft.EventGrid/topicTypes/Microsoft.SignalRService.SignalR", - "name": "Microsoft.SignalRService.SignalR", - "type": "Microsoft.EventGrid/topicTypes" - }, - { - "properties": { - "provider": "Microsoft.MachineLearningServices", - "displayName": "Machine Learning Workspaces", - "description": "Microsoft Azure Machine Learning Service events", - "resourceRegionType": "RegionalResource", - "provisioningState": "Succeeded", - "supportedLocations": [ - "East US 2 EUAP", - "West Central US", - "East US", - "East US 2", - "Central US EUAP", - "Central US", - "South Central US", - "North Central US", - "West US", - "West US 2", - "Canada Central", - "Brazil South", - "West Europe", - "North Europe", - "UK South", - "France Central", - "Southeast Asia", - "East Asia", - "Japan East", - "Korea South", - "Korea Central", - "Australia East", - "Germany West Central", - "Central India", - "Japan West", - "Jio India West", - "Norway East", - "South Africa North", - "Switzerland North", - "UAE North", - "West US 3" - ], - "sourceResourceFormat": "/subscriptions/\u003CsubscriptionId\u003E/resourceGroups/\u003CresourceGroupName\u003E/providers/Microsoft.MachineLearningServices/Workspaces/\u003Cname\u003E" - }, - "id": "providers/Microsoft.EventGrid/topicTypes/Microsoft.MachineLearningServices.Workspaces", - "name": "Microsoft.MachineLearningServices.Workspaces", - "type": "Microsoft.EventGrid/topicTypes" - }, - { - "properties": { - "provider": "Microsoft.Cache", - "displayName": "Microsoft Azure Cache for Redis", - "description": "Microsoft Azure Cache for Redis service events", - "resourceRegionType": "RegionalResource", - "provisioningState": "Succeeded", - "supportedLocations": [ - "West US 2", - "West Central US", - "East US 2 EUAP", - "East US", - "West US", - "Central US", - "East US 2", - "West Europe", - "North Europe", - "Southeast Asia", - "East Asia", - "Japan East", - "Japan West", - "Australia East", - "Australia Southeast", - "North Central US", - "South Central US", - "Canada Central", - "Canada East", - "Central India", - "South India", - "France Central", - "UK West", - "Korea Central", - "Korea South", - "Central US EUAP", - "West India", - "Brazil South", - "UK South", - "Australia Central", - "Australia Central 2", - "France South", - "South Africa North", - "South Africa West", - "UAE North", - "UAE Central", - "Switzerland North", - "Switzerland West", - "Germany North", - "Germany West Central", - "Brazil Southeast", - "West US 3", - "qatarcentral" - ], - "sourceResourceFormat": "/subscriptions/\u003CsubscriptionId\u003E/resourceGroups/\u003CresourceGroupName\u003E/providers/Microsoft.Cache/Redis/\u003CredisName\u003E" - }, - "id": "providers/Microsoft.EventGrid/topicTypes/Microsoft.Cache.Redis", - "name": "Microsoft.Cache.Redis", - "type": "Microsoft.EventGrid/topicTypes" - }, - { - "properties": { - "provider": "Microsoft.Communication", - "displayName": "Azure Communication Services", - "description": "Azure Communication Service Events", - "resourceRegionType": "GlobalResource", - "provisioningState": "Succeeded", - "sourceResourceFormat": "/subscriptions/\u003CsubscriptionId\u003E/resourceGroups/\u003CresourceGroupName\u003E/providers/Microsoft.Communication/communicationservices/\u003Cname\u003E" - }, - "id": "providers/Microsoft.EventGrid/topicTypes/Microsoft.Communication.CommunicationServices", - "name": "Microsoft.Communication.CommunicationServices", - "type": "Microsoft.EventGrid/topicTypes" - }, - { - "properties": { - "provider": "Microsoft.PolicyInsights", - "displayName": "Microsoft PolicyInsights", - "description": "Microsoft PolicyInsights service events", - "resourceRegionType": "GlobalResource", - "provisioningState": "Succeeded", - "supportedScopesForSource": [ - "AzureSubscription", - "ManagementGroup" - ] - }, - "id": "providers/Microsoft.EventGrid/topicTypes/Microsoft.PolicyInsights.PolicyStates", - "name": "Microsoft.PolicyInsights.PolicyStates", - "type": "Microsoft.EventGrid/topicTypes" - }, - { - "properties": { - "provider": "Microsoft.AgFoodPlatform", - "displayName": "Azure FarmBeats (Preview)", - "description": "Microsoft FarmBeats service events", - "resourceRegionType": "RegionalResource", - "provisioningState": "Succeeded", - "supportedLocations": [ - "West US 2", - "West Central US", - "East US 2 EUAP", - "East US", - "West US", - "Central US", - "East US 2", - "West Europe", - "North Europe", - "Southeast Asia", - "East Asia", - "Japan East", - "Japan West", - "Australia East", - "Australia Southeast", - "North Central US", - "South Central US", - "Canada Central", - "Canada East", - "Central India", - "South India", - "France Central", - "UK West", - "Korea Central", - "Korea South", - "Central US EUAP", - "West India", - "Brazil South", - "UK South", - "Australia Central", - "Australia Central 2", - "France South", - "South Africa North", - "South Africa West", - "UAE North", - "UAE Central", - "Switzerland North", - "Switzerland West", - "Germany North", - "Germany West Central", - "Brazil Southeast", - "West US 3" - ], - "sourceResourceFormat": "/subscriptions/\u003CsubscriptionId\u003E/resourceGroups/\u003CresourceGroupName\u003E/providers/Microsoft.AgFoodPlatform/farmBeats/\u003Cname\u003E" - }, - "id": "providers/Microsoft.EventGrid/topicTypes/Microsoft.AgFoodPlatform.FarmBeats", - "name": "Microsoft.AgFoodPlatform.FarmBeats", - "type": "Microsoft.EventGrid/topicTypes" - }, - { - "properties": { - "provider": "Microsoft.ApiManagement", - "displayName": "Azure API Management Service", - "description": "Microsoft ApiManagement Service events", - "resourceRegionType": "RegionalResource", - "provisioningState": "Succeeded", - "supportedLocations": [ - "West US 2", - "West Central US", - "East US 2 EUAP", - "East US", - "West US", - "Central US", - "East US 2", - "West Europe", - "North Europe", - "Southeast Asia", - "East Asia", - "Japan East", - "Japan West", - "Australia East", - "Australia Southeast", - "North Central US", - "South Central US", - "Canada Central", - "Canada East", - "Central India", - "South India", - "France Central", - "UK West", - "Korea Central", - "Korea South", - "Central US EUAP", - "West India", - "Brazil South", - "UK South", - "Australia Central", - "Australia Central 2", - "France South", - "South Africa North", - "South Africa West", - "UAE North", - "UAE Central", - "Switzerland North", - "Switzerland West", - "Germany North", - "Germany West Central", - "Brazil Southeast", - "West US 3", - "Jio India Central", - "Jio India West", - "Sweden Central", - "Sweden South" - ], - "sourceResourceFormat": "/subscriptions/\u003CsubscriptionId\u003E/resourceGroups/\u003CresourceGroupName\u003E/providers/Microsoft.ApiManagement/service/\u003Cname\u003E" - }, - "id": "providers/Microsoft.EventGrid/topicTypes/Microsoft.ApiManagement.Service", - "name": "Microsoft.ApiManagement.Service", - "type": "Microsoft.EventGrid/topicTypes" - }, - { - "properties": { - "provider": "Microsoft.HealthcareApis", - "displayName": "Azure Health Data Services", - "description": "Azure Health Data Services events", - "resourceRegionType": "RegionalResource", - "provisioningState": "Succeeded", - "supportedLocations": [ - "South Central US", - "West Europe", - "North Europe", - "East US", - "East US 2", - "Australia East", - "UK South", - "West US 2", - "Canada Central", - "Central US", - "Australia Central", - "East US 2 EUAP", - "Central India", - "Korea Central", - "Southeast Asia", - "Sweden Central", - "Switzerland North", - "West US 2", - "West US 3" - ], - "sourceResourceFormat": "/subscriptions/\u003CsubscriptionId\u003E/resourceGroups/\u003CresourceGroupName\u003E/providers/Microsoft.HealthcareApis/workspaces/\u003Cname\u003E" - }, - "id": "providers/Microsoft.EventGrid/topicTypes/Microsoft.HealthcareApis.Workspaces", - "name": "Microsoft.HealthcareApis.Workspaces", - "type": "Microsoft.EventGrid/topicTypes" - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.EventGrid/topicTypes/Microsoft.Storage.StorageAccounts?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:34:22 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-tenant-reads": "11997", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063422Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "provider": "Microsoft.Storage", - "displayName": "Storage Accounts (Blob \u0026 GPv2)", - "description": "Microsoft Storage service events.", - "resourceRegionType": "RegionalResource", - "provisioningState": "Succeeded", - "supportedLocations": [ - "West US 2", - "West Central US", - "East US 2 EUAP", - "East US 2 (Stage)", - "East US", - "West US", - "Central US", - "East US 2", - "West Europe", - "North Europe", - "Southeast Asia", - "East Asia", - "Japan East", - "Japan West", - "Australia East", - "Australia Southeast", - "North Central US", - "South Central US", - "Canada Central", - "Canada East", - "Central India", - "South India", - "France Central", - "UK West", - "Korea Central", - "Korea South", - "Central US EUAP", - "West India", - "Brazil South", - "UK South", - "Australia Central", - "Australia Central 2", - "France South", - "South Africa North", - "South Africa West", - "UAE North", - "UAE Central", - "Switzerland North", - "Switzerland West", - "Germany North", - "Germany West Central", - "Norway East", - "Norway West", - "West US 3", - "Jio India Central", - "Jio India West", - "Sweden Central", - "Sweden South" - ], - "sourceResourceFormat": "/subscriptions/\u003CsubscriptionId\u003E/resourceGroups/\u003CresourceGroupName\u003E/providers/Microsoft.Storage/storageAccounts/\u003CstorageAccountName\u003E" - }, - "id": "providers/Microsoft.EventGrid/topicTypes/Microsoft.Storage.StorageAccounts", - "name": "Microsoft.Storage.StorageAccounts", - "type": "Microsoft.EventGrid/topicTypes" - } - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.EventGrid/topicTypes/Microsoft.Storage.StorageAccounts/eventTypes?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:34:23 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-tenant-reads": "11996", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063423Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "properties": { - "displayName": "Blob Created", - "description": "Raised when a blob is created.", - "schemaUrl": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/eventgrid/data-plane/Microsoft.Storage/stable/2018-01-01/Storage.json", - "isInDefaultSet": true - }, - "id": "providers/Microsoft.EventGrid/topicTypes/Microsoft.Storage.StorageAccounts/eventTypes/Microsoft.Storage.BlobCreated", - "name": "Microsoft.Storage.BlobCreated", - "type": "Microsoft.EventGrid/topicTypes/eventTypes" - }, - { - "properties": { - "displayName": "Blob Deleted", - "description": "Raised when a blob is deleted.", - "schemaUrl": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/eventgrid/data-plane/Microsoft.Storage/stable/2018-01-01/Storage.json", - "isInDefaultSet": true - }, - "id": "providers/Microsoft.EventGrid/topicTypes/Microsoft.Storage.StorageAccounts/eventTypes/Microsoft.Storage.BlobDeleted", - "name": "Microsoft.Storage.BlobDeleted", - "type": "Microsoft.EventGrid/topicTypes/eventTypes" - }, - { - "properties": { - "displayName": "Directory Created", - "description": "Event published when a directory is created", - "schemaUrl": "tbd" - }, - "id": "providers/Microsoft.EventGrid/topicTypes/Microsoft.Storage.StorageAccounts/eventTypes/Microsoft.Storage.DirectoryCreated", - "name": "Microsoft.Storage.DirectoryCreated", - "type": "Microsoft.EventGrid/topicTypes/eventTypes" - }, - { - "properties": { - "displayName": "Directory Deleted", - "description": "Event published when a directory is deleted", - "schemaUrl": "tbd" - }, - "id": "providers/Microsoft.EventGrid/topicTypes/Microsoft.Storage.StorageAccounts/eventTypes/Microsoft.Storage.DirectoryDeleted", - "name": "Microsoft.Storage.DirectoryDeleted", - "type": "Microsoft.EventGrid/topicTypes/eventTypes" - }, - { - "properties": { - "displayName": "Blob Renamed", - "description": "Event published when a blob is renamed", - "schemaUrl": "tbd" - }, - "id": "providers/Microsoft.EventGrid/topicTypes/Microsoft.Storage.StorageAccounts/eventTypes/Microsoft.Storage.BlobRenamed", - "name": "Microsoft.Storage.BlobRenamed", - "type": "Microsoft.EventGrid/topicTypes/eventTypes" - }, - { - "properties": { - "displayName": "Directory Renamed", - "description": "Event published when a directory is renamed", - "schemaUrl": "tbd" - }, - "id": "providers/Microsoft.EventGrid/topicTypes/Microsoft.Storage.StorageAccounts/eventTypes/Microsoft.Storage.DirectoryRenamed", - "name": "Microsoft.Storage.DirectoryRenamed", - "type": "Microsoft.EventGrid/topicTypes/eventTypes" - }, - { - "properties": { - "displayName": "Blob Tier Changed", - "description": "Event published when blob tier is changed.", - "schemaUrl": "tbd" - }, - "id": "providers/Microsoft.EventGrid/topicTypes/Microsoft.Storage.StorageAccounts/eventTypes/Microsoft.Storage.BlobTierChanged", - "name": "Microsoft.Storage.BlobTierChanged", - "type": "Microsoft.EventGrid/topicTypes/eventTypes" - }, - { - "properties": { - "displayName": "Blob Inventory Completed", - "description": "Raised when a blob inventory is completed.", - "schemaUrl": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/eventgrid/data-plane/Microsoft.Storage/stable/2018-01-01/Storage.json" - }, - "id": "providers/Microsoft.EventGrid/topicTypes/Microsoft.Storage.StorageAccounts/eventTypes/Microsoft.Storage.BlobInventoryPolicyCompleted", - "name": "Microsoft.Storage.BlobInventoryPolicyCompleted", - "type": "Microsoft.EventGrid/topicTypes/eventTypes" - }, - { - "properties": { - "displayName": "Async Operation Initiated", - "description": "Event published when blob rehydration is triggered using either the CopyBlob or SetBlobTier APIs.", - "schemaUrl": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/eventgrid/data-plane/Microsoft.Storage/stable/2018-01-01/Storage.json" - }, - "id": "providers/Microsoft.EventGrid/topicTypes/Microsoft.Storage.StorageAccounts/eventTypes/Microsoft.Storage.AsyncOperationInitiated", - "name": "Microsoft.Storage.AsyncOperationInitiated", - "type": "Microsoft.EventGrid/topicTypes/eventTypes" - }, - { - "properties": { - "displayName": "Lifecycle Policy Completed", - "description": "Raised when a lifecycle policy is completed.", - "schemaUrl": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/eventgrid/data-plane/Microsoft.Storage/stable/2018-01-01/Storage.json" - }, - "id": "providers/Microsoft.EventGrid/topicTypes/Microsoft.Storage.StorageAccounts/eventTypes/Microsoft.Storage.LifecyclePolicyCompleted", - "name": "Microsoft.Storage.LifecyclePolicyCompleted", - "type": "Microsoft.EventGrid/topicTypes/eventTypes" - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/topics?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:34:23 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11914", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063423Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "properties": { - "provisioningState": "Succeeded", - "endpoint": "https://gotesttopic.eastus-1.eventgrid.azure.net/api/events", - "inputSchema": "EventGridSchema", - "metricResourceId": "00000000-0000-0000-0000-000000000000", - "publicNetworkAccess": "Enabled", - "inboundIpRules": [], - "disableLocalAuth": false, - "dataResidencyBoundary": "WithinGeopair" - }, - "identity": { - "type": "None", - "principalId": null, - "tenantId": null, - "userAssignedIdentities": null - }, - "systemData": null, - "location": "eastus", - "tags": {}, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-test/providers/Microsoft.EventGrid/topics/gotesttopic", - "name": "gotesttopic", - "type": "Microsoft.EventGrid/topics" - }, - { - "properties": { - "provisioningState": "Succeeded", - "endpoint": "https://topicnamewkloz9.eastus-1.eventgrid.azure.net/api/events", - "inputSchema": "EventGridSchema", - "metricResourceId": "00000000-0000-0000-0000-000000000000", - "publicNetworkAccess": "Enabled", - "inboundIpRules": [ - { - "ipMask": "12.18.30.15", - "action": "Allow" - }, - { - "ipMask": "12.18.176.1", - "action": "Allow" - } - ], - "dataResidencyBoundary": "WithinGeopair" - }, - "systemData": null, - "location": "eastus", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/topics/topicnameWkloZ9", - "name": "topicnameWkloZ9", - "type": "Microsoft.EventGrid/topics" - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/topics?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:34:23 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11913", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063424Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "properties": { - "provisioningState": "Succeeded", - "endpoint": "https://topicnamewkloz9.eastus-1.eventgrid.azure.net/api/events", - "inputSchema": "EventGridSchema", - "metricResourceId": "00000000-0000-0000-0000-000000000000", - "publicNetworkAccess": "Enabled", - "inboundIpRules": [ - { - "ipMask": "12.18.30.15", - "action": "Allow" - }, - { - "ipMask": "12.18.176.1", - "action": "Allow" - } - ], - "dataResidencyBoundary": "WithinGeopair" - }, - "systemData": null, - "location": "eastus", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/topics/topicnameWkloZ9", - "name": "topicnameWkloZ9", - "type": "Microsoft.EventGrid/topics" - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/topics/topicnameWkloZ9?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:34:24 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11912", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063424Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "provisioningState": "Succeeded", - "endpoint": "https://topicnamewkloz9.eastus-1.eventgrid.azure.net/api/events", - "inputSchema": "EventGridSchema", - "metricResourceId": "00000000-0000-0000-0000-000000000000", - "publicNetworkAccess": "Enabled", - "inboundIpRules": [ - { - "ipMask": "12.18.30.15", - "action": "Allow" - }, - { - "ipMask": "12.18.176.1", - "action": "Allow" - } - ], - "dataResidencyBoundary": "WithinGeopair" - }, - "systemData": null, - "location": "eastus", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/topics/topicnameWkloZ9", - "name": "topicnameWkloZ9", - "type": "Microsoft.EventGrid/topics" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/topics/topicnameWkloZ9?api-version=2022-06-15", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "192", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "inboundIpRules": [ - { - "action": "Allow", - "ipMask": "12.18.30.15" - }, - { - "action": "Allow", - "ipMask": "12.18.176.1" - } - ], - "publicNetworkAccess": "Enabled" - }, - "tags": { - "tag1": "value1", - "tag2": "value2" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus/operationsStatus/94729D24-AE78-4FE1-9B48-B73980CDD1E5?api-version=2022-06-15", - "Cache-Control": "no-cache", - "Content-Length": "671", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:34:28 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "10", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1176", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063429Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "provisioningState": "Updating", - "endpoint": "https://topicnamewkloz9.eastus-1.eventgrid.azure.net/api/events", - "inputSchema": "EventGridSchema", - "metricResourceId": "00000000-0000-0000-0000-000000000000", - "publicNetworkAccess": "Enabled", - "inboundIpRules": [ - { - "ipMask": "12.18.30.15", - "action": "Allow" - }, - { - "ipMask": "12.18.176.1", - "action": "Allow" - } - ], - "dataResidencyBoundary": "WithinGeopair" - }, - "systemData": null, - "location": "eastus", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/topics/topicnameWkloZ9", - "name": "topicnameWkloZ9", - "type": "Microsoft.EventGrid/topics" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus/operationsStatus/94729D24-AE78-4FE1-9B48-B73980CDD1E5?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:34:39 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11911", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063439Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus/operationsStatus/94729D24-AE78-4FE1-9B48-B73980CDD1E5?api-version=2022-06-15", - "name": "00000000-0000-0000-0000-000000000000", - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/topics/topicnameWkloZ9?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:34:39 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11910", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063440Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "provisioningState": "Succeeded", - "endpoint": "https://topicnamewkloz9.eastus-1.eventgrid.azure.net/api/events", - "inputSchema": "EventGridSchema", - "metricResourceId": "00000000-0000-0000-0000-000000000000", - "publicNetworkAccess": "Enabled", - "inboundIpRules": [ - { - "ipMask": "12.18.30.15", - "action": "Allow" - }, - { - "ipMask": "12.18.176.1", - "action": "Allow" - } - ], - "dataResidencyBoundary": "WithinGeopair" - }, - "systemData": null, - "location": "eastus", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/topics/topicnameWkloZ9", - "name": "topicnameWkloZ9", - "type": "Microsoft.EventGrid/topics" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/topics/topicnameWkloZ9/listKeys?api-version=2022-06-15", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:34:40 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1188", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063440Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "key1": "000000000000", - "key2": "000000000000" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/topics/topicnameWkloZ9/regenerateKey?api-version=2022-06-15", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "18", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "keyName": "key1" - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:34:41 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1187", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063441Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "key1": "000000000000", - "key2": "000000000000" - } - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.EventGrid/verifiedPartners?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:34:41 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-tenant-reads": "11995", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063442Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "properties": { - "partnerRegistrationImmutableId": "00000000-0000-0000-0000-000000000000", - "organizationName": "Auth0, Inc.", - "partnerDisplayName": "Auth0", - "partnerTopicDetails": { - "description": "Auth0, the identity platform for application builders, provides developers and enterprises with the building blocks they need to secure their applications.", - "longDescription": "Partnering with Event Grid allows our customers to leverage events emitted by Auth0\u2019s system to accomplish a number of use cases, from engaging with users in meaningful and custom ways after the authentication to automating security and infrastructure tasks.\nThe Auth0 Partner Topic integration allows you to stream your Auth0 log events with high reliability into Azure for consumption with any of your favorite Azure resources. This will allow you to react to events, gain insights, monitor for security issues, and interact with other powerful data pipelines. In order to create an Auth0 Partner topic:\n1. Note the Azure Subscription and Resource Group you want the Partner Topic to be created in.\n2.Log in to your Auth0 account dashboard.\n3.Navigate to Logs \u003E Streams, click \u201CCreate Stream\u201D and select the \u201CAzure Event Grid\u201D event stream.\n4. Provide the Azure Subscription ID, Resource Group and other required information and click \u201CSave\u201D.\n5. View your pending Partner Topics in Azure and activate the topic to allow events to flow.", - "setupUri": "https://marketplace.auth0.com/integrations/azure-log-streaming" - }, - "provisioningState": "Succeeded" - }, - "systemData": null, - "id": "/providers/Microsoft.EventGrid/verifiedPartners/Auth0", - "name": "Auth0", - "type": "Microsoft.EventGrid/verifiedPartners" - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.EventGrid/verifiedPartners/Auth0?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:34:42 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-tenant-reads": "11994", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063442Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "partnerRegistrationImmutableId": "00000000-0000-0000-0000-000000000000", - "organizationName": "Auth0, Inc.", - "partnerDisplayName": "Auth0", - "partnerTopicDetails": { - "description": "Auth0, the identity platform for application builders, provides developers and enterprises with the building blocks they need to secure their applications.", - "longDescription": "Partnering with Event Grid allows our customers to leverage events emitted by Auth0\u2019s system to accomplish a number of use cases, from engaging with users in meaningful and custom ways after the authentication to automating security and infrastructure tasks.\nThe Auth0 Partner Topic integration allows you to stream your Auth0 log events with high reliability into Azure for consumption with any of your favorite Azure resources. This will allow you to react to events, gain insights, monitor for security issues, and interact with other powerful data pipelines. In order to create an Auth0 Partner topic:\n1. Note the Azure Subscription and Resource Group you want the Partner Topic to be created in.\n2.Log in to your Auth0 account dashboard.\n3.Navigate to Logs \u003E Streams, click \u201CCreate Stream\u201D and select the \u201CAzure Event Grid\u201D event stream.\n4. Provide the Azure Subscription ID, Resource Group and other required information and click \u201CSave\u201D.\n5. View your pending Partner Topics in Azure and activate the topic to allow events to flow.", - "setupUri": "https://marketplace.auth0.com/integrations/azure-log-streaming" - }, - "provisioningState": "Succeeded" - }, - "systemData": null, - "id": "/providers/Microsoft.EventGrid/verifiedPartners/Auth0", - "name": "Auth0", - "type": "Microsoft.EventGrid/verifiedPartners" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/systemTopics/systemtopiWkloZ9?api-version=2022-06-15", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationsStatus/DE0D1402-42AF-4658-8156-CC6B36BCD2B9?api-version=2022-06-15", - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 31 Oct 2022 06:34:43 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationResults/DE0D1402-42AF-4658-8156-CC6B36BCD2B9?api-version=2022-06-15", - "Pragma": "no-cache", - "Retry-After": "10", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14991", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063443Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationsStatus/DE0D1402-42AF-4658-8156-CC6B36BCD2B9?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:34:53 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11909", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063454Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/operationsStatus/DE0D1402-42AF-4658-8156-CC6B36BCD2B9?api-version=2022-06-15", - "name": "00000000-0000-0000-0000-000000000000", - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/partnerRegistrations/partnerregWkloZ9?api-version=2022-06-15", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 31 Oct 2022 06:34:56 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14990", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063457Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventGrid/topics/topicnameWkloZ9?api-version=2022-06-15", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus/operationsStatus/A2D77AB9-BDEB-42A1-BD1E-34BEEF5995D2?api-version=2022-06-15", - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 31 Oct 2022 06:34:58 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus/operationResults/A2D77AB9-BDEB-42A1-BD1E-34BEEF5995D2?api-version=2022-06-15", - "Pragma": "no-cache", - "Retry-After": "10", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14989", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063458Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus/operationsStatus/A2D77AB9-BDEB-42A1-BD1E-34BEEF5995D2?api-version=2022-06-15", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventgrid/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 31 Oct 2022 06:35:08 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11908", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063509Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventGrid/locations/eastus/operationsStatus/A2D77AB9-BDEB-42A1-BD1E-34BEEF5995D2?api-version=2022-06-15", - "name": "00000000-0000-0000-0000-000000000000", - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 31 Oct 2022 06:35:11 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQzOTktRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14988", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221031T063512Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": { - "recordingRandomSeed": "1667197532" - } -} diff --git a/sdk/resourcemanager/eventhub/armeventhub/assets.json b/sdk/resourcemanager/eventhub/armeventhub/assets.json new file mode 100644 index 000000000000..30ff099453b3 --- /dev/null +++ b/sdk/resourcemanager/eventhub/armeventhub/assets.json @@ -0,0 +1,6 @@ +{ + "AssetsRepo": "Azure/azure-sdk-assets", + "AssetsRepoPrefixPath": "go", + "TagPrefix": "go/resourcemanager/eventhub/armeventhub", + "Tag": "go/resourcemanager/eventhub/armeventhub_7a00df637a" +} diff --git a/sdk/resourcemanager/eventhub/armeventhub/go.mod b/sdk/resourcemanager/eventhub/armeventhub/go.mod index f2b8f3a64300..1c21574464fd 100644 --- a/sdk/resourcemanager/eventhub/armeventhub/go.mod +++ b/sdk/resourcemanager/eventhub/armeventhub/go.mod @@ -3,27 +3,27 @@ module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/eventhub/armeventhu go 1.18 require ( - github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.0 - github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.0.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.1 + github.com/Azure/azure-sdk-for-go/sdk/azcore v1.4.0 + github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.2 github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0 github.com/stretchr/testify v1.7.0 ) require ( - 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/Azure/azure-sdk-for-go/sdk/internal v1.2.0 // indirect + github.com/AzureAD/microsoft-authentication-library-for-go v0.7.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/dnaeon/go-vcr v1.1.0 // indirect - github.com/golang-jwt/jwt v3.2.1+incompatible // indirect + github.com/golang-jwt/jwt/v4 v4.4.2 // 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 github.com/pmezard/go-difflib v1.0.0 // 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 + golang.org/x/net v0.7.0 // indirect + golang.org/x/sys v0.5.0 // indirect + golang.org/x/text v0.7.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect ) diff --git a/sdk/resourcemanager/eventhub/armeventhub/go.sum b/sdk/resourcemanager/eventhub/armeventhub/go.sum index 07096d31831b..b0f97586a165 100644 --- a/sdk/resourcemanager/eventhub/armeventhub/go.sum +++ b/sdk/resourcemanager/eventhub/armeventhub/go.sum @@ -1,29 +1,27 @@ -github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.0 h1:Ut0ZGdOwJDw0npYEg+TLlPls3Pq6JiZaP2/aGKir7Zw= -github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.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/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.1 h1:BZOe7ExNYNGmapT91ZUrxtMYsqVljMxTHEnwjOdG7pk= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.1/go.mod h1:TSPEzbGHEgqFa3kUn09SpCrfKNbj7+mMulU/72Vg84E= +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.0 h1:t/W5MYAuQy81cvM8VUNfRLzhtKpXhVUAN7Cd7KVbTyc= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.0/go.mod h1:NBanQUfSWiWn3QEpWDTCU0IjBECKOYvl2R8xdRtMtiM= +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/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.2 h1:mLY+pNLjCUeKhgnAJWAKhEUQM+RJQo2H1fuGSw1Ky1E= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.2/go.mod h1:FbdwsQ2EzwvXxOPcMFYO8ogEc9uMMIj3YkmCdXdAFmk= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0 h1:ECsQtyERDVz3NP3kvDOTLvbQhqWp/x9EsGKtb4ogUr8= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0/go.mod h1:s1tW/At+xHqjNFvWU4G0c0Qv33KOhvbGNj0RCTQDV8s= -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/AzureAD/microsoft-authentication-library-for-go v0.7.0 h1:VgSJlZH5u0k2qxSpqyghcFQKmvYckj46uymKK5XzkBM= +github.com/AzureAD/microsoft-authentication-library-for-go v0.7.0/go.mod h1:BDJ5qMFKx9DugEg3+uQSDCdbYPr5s9vBTrL9P8TpqOU= 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/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 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= +github.com/golang-jwt/jwt/v4 v4.4.2 h1:rcc4lwaZgFMCZ5jxF9ABolDcIHdBytAFgqFPbSJQAYs= +github.com/golang-jwt/jwt/v4 v4.4.2/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= 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= @@ -33,13 +31,12 @@ github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5Cc github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= 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-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/net v0.7.0 h1:rJrUqqhjsgNp7KqAIc25s9pZnjU7TUcSY7HcVZjdn1g= +golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= +golang.org/x/sys v0.5.0 h1:MUK/U/4lj1t1oPg0HfuXDN/Z1wv31ZJ/YcPiGccS4DU= +golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/text v0.7.0 h1:4BRB4x83lYWy72KwLD/qYDuTu7q9PjSagHvijDw7cLo= +golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= 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= diff --git a/sdk/resourcemanager/eventhub/armeventhub/testdata/recordings/TestDisasterrecoveryconfigsTestSuite.json b/sdk/resourcemanager/eventhub/armeventhub/testdata/recordings/TestDisasterrecoveryconfigsTestSuite.json deleted file mode 100644 index 8314bc64ba4a..000000000000 --- a/sdk/resourcemanager/eventhub/armeventhub/testdata/recordings/TestDisasterrecoveryconfigsTestSuite.json +++ /dev/null @@ -1,981 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Oct 2022 03:34:30 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1197", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221017T033431Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "westus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacen2bpcaTm?api-version=2022-01-01-preview", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "65", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armeventhub/v1.1.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus", - "sku": { - "name": "Standard", - "tier": "Standard" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Oct 2022 03:34:36 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "49", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M4CH3_M4CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221017T033437Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "sku": { - "name": "Standard", - "tier": "Standard", - "capacity": 1 - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacen2bpcaTm", - "name": "namespacen2bpcaTm", - "type": "Microsoft.EventHub/Namespaces", - "location": "West US", - "tags": {}, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "isAutoInflateEnabled": false, - "maximumThroughputUnits": 0, - "kafkaEnabled": true, - "provisioningState": "Created", - "metricId": "00000000-0000-0000-0000-000000000000:namespacen2bpcatm", - "createdAt": "2022-10-17T03:34:35.41Z", - "updatedAt": "2022-10-17T03:34:35.41Z", - "serviceBusEndpoint": "https://namespacen2bpcaTm.servicebus.windows.net:443/", - "status": "Activating" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacen2bpcaTm?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventhub/v1.1.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Oct 2022 03:34:36 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11993", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M7CH3_M7CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221017T033437Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "sku": { - "name": "Standard", - "tier": "Standard", - "capacity": 1 - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacen2bpcaTm", - "name": "namespacen2bpcaTm", - "type": "Microsoft.EventHub/Namespaces", - "location": "West US", - "tags": {}, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "isAutoInflateEnabled": false, - "maximumThroughputUnits": 0, - "kafkaEnabled": true, - "provisioningState": "Created", - "metricId": "00000000-0000-0000-0000-000000000000:namespacen2bpcatm", - "createdAt": "2022-10-17T03:34:35.41Z", - "updatedAt": "2022-10-17T03:34:35.41Z", - "serviceBusEndpoint": "https://namespacen2bpcaTm.servicebus.windows.net:443/", - "status": "Activating" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacen2bpcaTm?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventhub/v1.1.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Oct 2022 03:35:07 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11992", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M7CH3_M7CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221017T033508Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "sku": { - "name": "Standard", - "tier": "Standard", - "capacity": 1 - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacen2bpcaTm", - "name": "namespacen2bpcaTm", - "type": "Microsoft.EventHub/Namespaces", - "location": "West US", - "tags": {}, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "isAutoInflateEnabled": false, - "maximumThroughputUnits": 0, - "kafkaEnabled": true, - "provisioningState": "Created", - "metricId": "00000000-0000-0000-0000-000000000000:namespacen2bpcatm", - "createdAt": "2022-10-17T03:34:35.41Z", - "updatedAt": "2022-10-17T03:34:35.41Z", - "serviceBusEndpoint": "https://namespacen2bpcaTm.servicebus.windows.net:443/", - "status": "Activating" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacen2bpcaTm?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventhub/v1.1.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Oct 2022 03:35:37 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11991", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M9CH3_M9CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221017T033538Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "sku": { - "name": "Standard", - "tier": "Standard", - "capacity": 1 - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacen2bpcaTm", - "name": "namespacen2bpcaTm", - "type": "Microsoft.EventHub/Namespaces", - "location": "West US", - "tags": {}, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "isAutoInflateEnabled": false, - "maximumThroughputUnits": 0, - "kafkaEnabled": true, - "provisioningState": "Succeeded", - "metricId": "00000000-0000-0000-0000-000000000000:namespacen2bpcatm", - "createdAt": "2022-10-17T03:34:35.41Z", - "updatedAt": "2022-10-17T03:35:24.173Z", - "serviceBusEndpoint": "https://namespacen2bpcaTm.servicebus.windows.net:443/", - "status": "Active" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacensecondbpcaTm?api-version=2022-01-01-preview", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "66", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armeventhub/v1.1.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus2", - "sku": { - "name": "Standard", - "tier": "Standard" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Oct 2022 03:35:43 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "48", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M9CH3_M9CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221017T033544Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "sku": { - "name": "Standard", - "tier": "Standard", - "capacity": 1 - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacensecondbpcaTm", - "name": "namespacensecondbpcaTm", - "type": "Microsoft.EventHub/Namespaces", - "location": "West US 2", - "tags": {}, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "isAutoInflateEnabled": false, - "maximumThroughputUnits": 0, - "kafkaEnabled": true, - "provisioningState": "Created", - "metricId": "00000000-0000-0000-0000-000000000000:namespacensecondbpcatm", - "createdAt": "2022-10-17T03:35:42.613Z", - "updatedAt": "2022-10-17T03:35:42.613Z", - "serviceBusEndpoint": "https://namespacensecondbpcaTm.servicebus.windows.net:443/", - "status": "Activating" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacensecondbpcaTm?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventhub/v1.1.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Oct 2022 03:35:43 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11990", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M8CH3_M8CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221017T033544Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "sku": { - "name": "Standard", - "tier": "Standard", - "capacity": 1 - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacensecondbpcaTm", - "name": "namespacensecondbpcaTm", - "type": "Microsoft.EventHub/Namespaces", - "location": "West US 2", - "tags": {}, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "isAutoInflateEnabled": false, - "maximumThroughputUnits": 0, - "kafkaEnabled": true, - "provisioningState": "Created", - "metricId": "00000000-0000-0000-0000-000000000000:namespacensecondbpcatm", - "createdAt": "2022-10-17T03:35:42.613Z", - "updatedAt": "2022-10-17T03:35:42.613Z", - "serviceBusEndpoint": "https://namespacensecondbpcaTm.servicebus.windows.net:443/", - "status": "Activating" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacensecondbpcaTm?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventhub/v1.1.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Oct 2022 03:36:14 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11989", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M9CH3_M9CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221017T033615Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "sku": { - "name": "Standard", - "tier": "Standard", - "capacity": 1 - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacensecondbpcaTm", - "name": "namespacensecondbpcaTm", - "type": "Microsoft.EventHub/Namespaces", - "location": "West US 2", - "tags": {}, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "isAutoInflateEnabled": false, - "maximumThroughputUnits": 0, - "kafkaEnabled": true, - "provisioningState": "Created", - "metricId": "00000000-0000-0000-0000-000000000000:namespacensecondbpcatm", - "createdAt": "2022-10-17T03:35:42.613Z", - "updatedAt": "2022-10-17T03:35:42.613Z", - "serviceBusEndpoint": "https://namespacensecondbpcaTm.servicebus.windows.net:443/", - "status": "Activating" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacensecondbpcaTm?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventhub/v1.1.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Oct 2022 03:36:45 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11988", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M9CH3_M9CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221017T033645Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "sku": { - "name": "Standard", - "tier": "Standard", - "capacity": 1 - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacensecondbpcaTm", - "name": "namespacensecondbpcaTm", - "type": "Microsoft.EventHub/Namespaces", - "location": "West US 2", - "tags": {}, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "isAutoInflateEnabled": false, - "maximumThroughputUnits": 0, - "kafkaEnabled": true, - "provisioningState": "Succeeded", - "metricId": "00000000-0000-0000-0000-000000000000:namespacensecondbpcatm", - "createdAt": "2022-10-17T03:35:42.613Z", - "updatedAt": "2022-10-17T03:36:35.023Z", - "serviceBusEndpoint": "https://namespacensecondbpcaTm.servicebus.windows.net:443/", - "status": "Active" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacen2bpcaTm/authorizationRules/authorizat2bpcaTm?api-version=2022-01-01-preview", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "43", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armeventhub/v1.1.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "rights": [ - "Listen", - "Send" - ] - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Oct 2022 03:36:52 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1196", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M9CH3_M9CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221017T033652Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacen2bpcaTm/authorizationRules/authorizat2bpcaTm", - "name": "authorizat2bpcaTm", - "type": "Microsoft.EventHub/Namespaces/AuthorizationRules", - "location": "West US", - "properties": { - "rights": [ - "Listen", - "Send" - ] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacen2bpcaTm/disasterRecoveryConfigs/checkNameAvailability?api-version=2022-01-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "36", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armeventhub/v1.1.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": { - "name": "sdk-DisasterRecovery-9474" - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Oct 2022 03:36:53 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1197", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M9CH3_M9CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221017T033653Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "nameAvailable": true, - "reason": "None" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacen2bpcaTm/disasterRecoveryConfigs/alias2bpcaTm?api-version=2022-01-01-preview", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "182", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armeventhub/v1.1.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "partnerNamespace": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacensecondbpcaTm" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Oct 2022 03:37:02 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1195", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M9CH3_M9CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221017T033702Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacen2bpcaTm/disasterRecoveryConfigs/alias2bpcaTm", - "name": "alias2bpcaTm", - "type": "Microsoft.EventHub/Namespaces/disasterrecoveryconfigs", - "properties": { - "provisioningState": "Accepted", - "partnerNamespace": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacensecondbpcaTm", - "role": "Primary", - "type": "MetadataReplication" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacen2bpcaTm/disasterRecoveryConfigs?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventhub/v1.1.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Oct 2022 03:37:02 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11987", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M9CH3_M9CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221017T033703Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacen2bpcaTm/disasterRecoveryConfigs/alias2bpcaTm", - "name": "alias2bpcaTm", - "type": "Microsoft.EventHub/Namespaces/disasterrecoveryconfigs", - "properties": { - "provisioningState": "Accepted", - "partnerNamespace": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacensecondbpcaTm", - "role": "Primary", - "type": "MetadataReplication" - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacen2bpcaTm/disasterRecoveryConfigs/alias2bpcaTm/authorizationRules/authorizat2bpcaTm?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventhub/v1.1.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Oct 2022 03:37:03 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11986", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M9CH3_M9CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221017T033704Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacen2bpcaTm/disasterRecoveryConfigs/alias2bpcaTm/authorizationRules/authorizat2bpcaTm", - "name": "authorizat2bpcaTm", - "type": "Microsoft.EventHub/Namespaces/AuthorizationRules", - "location": "West US", - "properties": { - "rights": [ - "Listen", - "Send" - ] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacen2bpcaTm/disasterRecoveryConfigs/alias2bpcaTm?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventhub/v1.1.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Oct 2022 03:37:04 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11985", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M9CH3_M9CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221017T033704Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacen2bpcaTm/disasterRecoveryConfigs/alias2bpcaTm", - "name": "alias2bpcaTm", - "type": "Microsoft.EventHub/Namespaces/disasterrecoveryconfigs", - "properties": { - "provisioningState": "Accepted", - "partnerNamespace": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacensecondbpcaTm", - "role": "Primary", - "type": "MetadataReplication" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacen2bpcaTm/disasterRecoveryConfigs/alias2bpcaTm/authorizationRules?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventhub/v1.1.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Oct 2022 03:37:05 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11984", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M9CH3_M9CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221017T033705Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacen2bpcaTm/disasterRecoveryConfigs/alias2bpcaTm/authorizationRules/RootManageSharedAccessKey", - "name": "RootManageSharedAccessKey", - "type": "Microsoft.EventHub/Namespaces/AuthorizationRules", - "location": "West US", - "properties": { - "rights": [ - "Listen", - "Manage", - "Send" - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacen2bpcaTm/disasterRecoveryConfigs/alias2bpcaTm/authorizationRules/authorizat2bpcaTm", - "name": "authorizat2bpcaTm", - "type": "Microsoft.EventHub/Namespaces/AuthorizationRules", - "location": "West US", - "properties": { - "rights": [ - "Listen", - "Send" - ] - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacen2bpcaTm/disasterRecoveryConfigs/alias2bpcaTm/authorizationRules/authorizat2bpcaTm/listKeys?api-version=2022-01-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armeventhub/v1.1.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Oct 2022 03:37:06 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1196", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M9CH3_M9CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221017T033706Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "aliasPrimaryConnectionString": "Endpoint=sb://alias2bpcatm.servicebus.windows.net/;SharedAccessKeyName=authorizat2bpcaTm;SharedAccessKey=\u002BygJ0RmL47mKEc3qb1U/vL0X0zRuNoWO6J4jXW0lfQM=", - "aliasSecondaryConnectionString": "Endpoint=sb://alias2bpcatm.servicebus.windows.net/;SharedAccessKeyName=authorizat2bpcaTm;SharedAccessKey=HkQuY\u002B1a9Rroyb3r1BYzo/yzxUWmq5VEtTz6e6VVIME=", - "primaryKey": "\u002BygJ0RmL47mKEc3qb1U/vL0X0zRuNoWO6J4jXW0lfQM=", - "secondaryKey": "HkQuY\u002B1a9Rroyb3r1BYzo/yzxUWmq5VEtTz6e6VVIME=", - "keyName": "authorizat2bpcaTm" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacensecondbpcaTm/disasterRecoveryConfigs/alias2bpcaTm/failover?api-version=2022-01-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armeventhub/v1.1.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 17 Oct 2022 03:37:06 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1195", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M9CH3_M9CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221017T033707Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 17 Oct 2022 03:37:09 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ1NTctV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14994", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221017T033710Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": { - "recordingRandomSeed": "1665977667" - } -} diff --git a/sdk/resourcemanager/eventhub/armeventhub/testdata/recordings/TestEventhubTestSuite.json b/sdk/resourcemanager/eventhub/armeventhub/testdata/recordings/TestEventhubTestSuite.json deleted file mode 100644 index 091fb3553c9c..000000000000 --- a/sdk/resourcemanager/eventhub/armeventhub/testdata/recordings/TestEventhubTestSuite.json +++ /dev/null @@ -1,4862 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Oct 2022 03:37:13 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1194", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221017T033713Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "westus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacenbpcaTm?api-version=2022-01-01-preview", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "63", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armeventhub/v1.1.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus", - "sku": { - "name": "Premium", - "tier": "Premium" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Oct 2022 03:37:18 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "47", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M9CH3_M9CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221017T033719Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "sku": { - "name": "Premium", - "tier": "Premium", - "capacity": 1 - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacenbpcaTm", - "name": "namespacenbpcaTm", - "type": "Microsoft.EventHub/Namespaces", - "location": "West US", - "tags": {}, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "isAutoInflateEnabled": false, - "maximumThroughputUnits": 0, - "kafkaEnabled": true, - "provisioningState": "Created", - "metricId": "00000000-0000-0000-0000-000000000000:namespacenbpcatm", - "createdAt": "2022-10-17T03:37:18.16Z", - "updatedAt": "2022-10-17T03:37:18.16Z", - "serviceBusEndpoint": "https://namespacenbpcaTm.servicebus.windows.net:443/", - "status": "Activating" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacenbpcaTm?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventhub/v1.1.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Oct 2022 03:37:19 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11983", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M9CH3_M9CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221017T033719Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "sku": { - "name": "Premium", - "tier": "Premium", - "capacity": 1 - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacenbpcaTm", - "name": "namespacenbpcaTm", - "type": "Microsoft.EventHub/Namespaces", - "location": "West US", - "tags": {}, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "isAutoInflateEnabled": false, - "maximumThroughputUnits": 0, - "kafkaEnabled": true, - "provisioningState": "Created", - "metricId": "00000000-0000-0000-0000-000000000000:namespacenbpcatm", - "createdAt": "2022-10-17T03:37:18.16Z", - "updatedAt": "2022-10-17T03:37:18.16Z", - "serviceBusEndpoint": "https://namespacenbpcaTm.servicebus.windows.net:443/", - "status": "Activating" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacenbpcaTm?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventhub/v1.1.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Oct 2022 03:37:50 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11982", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M9CH3_M9CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221017T033750Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "sku": { - "name": "Premium", - "tier": "Premium", - "capacity": 1 - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacenbpcaTm", - "name": "namespacenbpcaTm", - "type": "Microsoft.EventHub/Namespaces", - "location": "West US", - "tags": {}, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "isAutoInflateEnabled": false, - "maximumThroughputUnits": 0, - "kafkaEnabled": true, - "provisioningState": "Created", - "metricId": "00000000-0000-0000-0000-000000000000:namespacenbpcatm", - "createdAt": "2022-10-17T03:37:18.16Z", - "updatedAt": "2022-10-17T03:37:18.16Z", - "serviceBusEndpoint": "https://namespacenbpcaTm.servicebus.windows.net:443/", - "status": "Activating" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacenbpcaTm?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventhub/v1.1.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Oct 2022 03:38:20 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11981", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M8CH3_M8CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221017T033821Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "sku": { - "name": "Premium", - "tier": "Premium", - "capacity": 1 - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacenbpcaTm", - "name": "namespacenbpcaTm", - "type": "Microsoft.EventHub/Namespaces", - "location": "West US", - "tags": {}, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "isAutoInflateEnabled": false, - "maximumThroughputUnits": 0, - "kafkaEnabled": true, - "provisioningState": "Created", - "metricId": "00000000-0000-0000-0000-000000000000:namespacenbpcatm", - "createdAt": "2022-10-17T03:37:18.16Z", - "updatedAt": "2022-10-17T03:37:18.16Z", - "serviceBusEndpoint": "https://namespacenbpcaTm.servicebus.windows.net:443/", - "status": "Activating" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacenbpcaTm?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventhub/v1.1.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Oct 2022 03:38:50 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11980", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M9CH3_M9CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221017T033851Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "sku": { - "name": "Premium", - "tier": "Premium", - "capacity": 1 - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacenbpcaTm", - "name": "namespacenbpcaTm", - "type": "Microsoft.EventHub/Namespaces", - "location": "West US", - "tags": {}, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "isAutoInflateEnabled": false, - "maximumThroughputUnits": 0, - "kafkaEnabled": true, - "provisioningState": "Succeeded", - "metricId": "00000000-0000-0000-0000-000000000000:namespacenbpcatm", - "createdAt": "2022-10-17T03:37:18.16Z", - "updatedAt": "2022-10-17T03:38:24.477Z", - "serviceBusEndpoint": "https://namespacenbpcaTm.servicebus.windows.net:443/", - "status": "Active" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/StorageAccount_Create?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "1279", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "mode": "Incremental", - "parameters": { - "storageAccountName": { - "value": "storageeventhub2" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "outputs": { - "storageAccountId": { - "type": "string", - "value": "[resourceId(\u0027Microsoft.Storage/storageAccounts\u0027, parameters(\u0027storageAccountName\u0027))]" - } - }, - "parameters": { - "storageAccountName": { - "defaultValue": "$(storageAccountName)", - "type": "string" - } - }, - "resources": [ - { - "apiVersion": "2022-05-01", - "kind": "StorageV2", - "location": "eastus", - "name": "[parameters(\u0027storageAccountName\u0027)]", - "properties": { - "accessTier": "Hot", - "allowBlobPublicAccess": true, - "allowCrossTenantReplication": true, - "allowSharedKeyAccess": true, - "defaultToOAuthAuthentication": false, - "dnsEndpointType": "Standard", - "encryption": { - "keySource": "Microsoft.Storage", - "requireInfrastructureEncryption": false, - "services": { - "blob": { - "enabled": true, - "keyType": "Account" - }, - "file": { - "enabled": true, - "keyType": "Account" - } - } - }, - "minimumTlsVersion": "TLS1_2", - "networkAcls": { - "bypass": "AzureServices", - "defaultAction": "Allow", - "ipRules": [], - "virtualNetworkRules": [] - }, - "publicNetworkAccess": "Enabled", - "supportsHttpsTrafficOnly": true - }, - "sku": { - "name": "Standard_RAGRS", - "tier": "Standard" - }, - "type": "Microsoft.Storage/storageAccounts" - } - ], - "variables": {} - } - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/StorageAccount_Create/operationStatuses/08585356289527128161?api-version=2021-04-01", - "Cache-Control": "no-cache", - "Content-Length": "678", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Oct 2022 03:38:55 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1193", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221017T033855Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/StorageAccount_Create", - "name": "StorageAccount_Create", - "type": "Microsoft.Resources/deployments", - "properties": { - "templateHash": "18010810814539768480", - "parameters": { - "storageAccountName": { - "type": "String", - "value": "storageeventhub2" - } - }, - "mode": "Incremental", - "provisioningState": "Accepted", - "timestamp": "2022-10-17T03:38:54.5758659Z", - "duration": "PT0.0008578S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Storage", - "resourceTypes": [ - { - "resourceType": "storageAccounts", - "locations": [ - "eastus" - ] - } - ] - } - ], - "dependencies": [] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/StorageAccount_Create/operationStatuses/08585356289527128161?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "20", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Oct 2022 03:38:55 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11979", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221017T033856Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/StorageAccount_Create/operationStatuses/08585356289527128161?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "20", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Oct 2022 03:39:26 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11978", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221017T033926Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/StorageAccount_Create/operationStatuses/08585356289527128161?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "22", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Oct 2022 03:39:56 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11977", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221017T033957Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/StorageAccount_Create?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "1054", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Oct 2022 03:39:57 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11976", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221017T033957Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/StorageAccount_Create", - "name": "StorageAccount_Create", - "type": "Microsoft.Resources/deployments", - "properties": { - "templateHash": "18010810814539768480", - "parameters": { - "storageAccountName": { - "type": "String", - "value": "storageeventhub2" - } - }, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2022-10-17T03:39:35.2257254Z", - "duration": "PT40.6507173S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Storage", - "resourceTypes": [ - { - "resourceType": "storageAccounts", - "locations": [ - "eastus" - ] - } - ] - } - ], - "dependencies": [], - "outputs": { - "storageAccountId": { - "type": "String", - "value": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/storageeventhub2" - } - }, - "outputResources": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/storageeventhub2" - } - ] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacenbpcaTm/eventhubs/eventhubnabpcaTm?api-version=2022-01-01-preview", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "564", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armeventhub/v1.1.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "captureDescription": { - "destination": { - "name": "EventHubArchive.AzureBlockBlob", - "properties": { - "archiveNameFormat": "{Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}", - "blobContainer": "container", - "storageAccountResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/storageeventhub2" - } - }, - "enabled": true, - "encoding": "Avro", - "intervalInSeconds": 120, - "sizeLimitInBytes": 10485763 - }, - "messageRetentionInDays": 4, - "partitionCount": 4, - "status": "Active" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Oct 2022 03:40:04 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1192", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221017T034004Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacenbpcaTm/eventhubs/eventhubnabpcaTm", - "name": "eventhubnabpcaTm", - "type": "Microsoft.EventHub/namespaces/eventhubs", - "location": "westus", - "properties": { - "messageRetentionInDays": 4, - "partitionCount": 4, - "status": "Active", - "createdAt": "2022-10-17T03:40:01.95Z", - "updatedAt": "2022-10-17T03:40:03.977Z", - "partitionIds": [ - "0", - "1", - "2", - "3" - ], - "captureDescription": { - "enabled": true, - "encoding": "Avro", - "destination": { - "name": "EventHubArchive.AzureBlockBlob", - "properties": { - "archiveNameFormat": "{Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}", - "blobContainer": "container", - "storageAccountResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/storageeventhub2" - } - }, - "intervalInSeconds": 120, - "sizeLimitInBytes": 10485763 - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacenbpcaTm/applicationGroups/applicatiobpcaTm?api-version=2022-01-01-preview", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "426", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armeventhub/v1.1.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "clientAppGroupIdentifier": "SASKeyName=KeyName", - "isEnabled": true, - "policies": [ - { - "metricId": "IncomingMessages", - "name": "ThrottlingPolicy1", - "rateLimitThreshold": 7912, - "type": "ThrottlingPolicy" - }, - { - "metricId": "IncomingBytes", - "name": "ThrottlingPolicy2", - "rateLimitThreshold": 3951729, - "type": "ThrottlingPolicy" - }, - { - "metricId": "OutgoingBytes", - "name": "ThrottlingPolicy3", - "rateLimitThreshold": 245175, - "type": "ThrottlingPolicy" - } - ] - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Oct 2022 03:40:06 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1191", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M11CH3_M11CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221017T034006Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacenbpcaTm/applicationGroups/applicatiobpcaTm", - "name": "applicatiobpcaTm", - "type": "Microsoft.EventHub/Namespaces/ApplicationGroups", - "location": "West US", - "properties": { - "clientAppGroupIdentifier": "SASKeyName=KeyName", - "policies": [ - { - "type": "ThrottlingPolicy", - "name": "ThrottlingPolicy1", - "metricId": "IncomingMessages", - "rateLimitThreshold": 7912 - }, - { - "type": "ThrottlingPolicy", - "name": "ThrottlingPolicy2", - "metricId": "IncomingBytes", - "rateLimitThreshold": 3951729 - }, - { - "type": "ThrottlingPolicy", - "name": "ThrottlingPolicy3", - "metricId": "OutgoingBytes", - "rateLimitThreshold": 245175 - } - ], - "isEnabled": true - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacenbpcaTm/applicationGroups?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventhub/v1.1.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Oct 2022 03:40:07 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11975", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M9CH3_M9CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221017T034007Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacenbpcaTm/applicationGroups/applicatiobpcaTm", - "name": "applicatiobpcaTm", - "type": "Microsoft.EventHub/Namespaces/ApplicationGroups", - "location": "West US", - "properties": { - "clientAppGroupIdentifier": "SASKeyName=KeyName", - "policies": [ - { - "type": "ThrottlingPolicy", - "name": "ThrottlingPolicy1", - "metricId": "IncomingMessages", - "rateLimitThreshold": 7912 - }, - { - "type": "ThrottlingPolicy", - "name": "ThrottlingPolicy2", - "metricId": "IncomingBytes", - "rateLimitThreshold": 3951729 - }, - { - "type": "ThrottlingPolicy", - "name": "ThrottlingPolicy3", - "metricId": "OutgoingBytes", - "rateLimitThreshold": 245175 - } - ], - "isEnabled": true - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacenbpcaTm/applicationGroups/applicatiobpcaTm?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventhub/v1.1.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Oct 2022 03:40:08 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11974", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M5CH3_M5CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221017T034009Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacenbpcaTm/applicationGroups/applicatiobpcaTm", - "name": "applicatiobpcaTm", - "type": "Microsoft.EventHub/Namespaces/ApplicationGroups", - "location": "West US", - "properties": { - "clientAppGroupIdentifier": "SASKeyName=KeyName", - "policies": [ - { - "type": "ThrottlingPolicy", - "name": "ThrottlingPolicy1", - "metricId": "IncomingMessages", - "rateLimitThreshold": 7912 - }, - { - "type": "ThrottlingPolicy", - "name": "ThrottlingPolicy2", - "metricId": "IncomingBytes", - "rateLimitThreshold": 3951729 - }, - { - "type": "ThrottlingPolicy", - "name": "ThrottlingPolicy3", - "metricId": "OutgoingBytes", - "rateLimitThreshold": 245175 - } - ], - "isEnabled": true - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacenbpcaTm/applicationGroups/applicatiobpcaTm?api-version=2022-01-01-preview", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventhub/v1.1.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 17 Oct 2022 03:40:09 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14993", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M5CH3_M5CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221017T034010Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacenbpcaTm/eventhubs/eventhubnabpcaTm/consumergroups/consumergrbpcaTm?api-version=2022-01-01-preview", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "51", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armeventhub/v1.1.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "userMetadata": "New consumergroup" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Oct 2022 03:40:11 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1190", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221017T034011Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacenbpcaTm/eventhubs/eventhubnabpcaTm/consumergroups/consumergrbpcaTm", - "name": "consumergrbpcaTm", - "type": "Microsoft.EventHub/namespaces/eventhubs/consumergroups", - "location": "westus", - "properties": { - "createdAt": "2022-10-17T03:40:11.6200962Z", - "updatedAt": "2022-10-17T03:40:11.6200962Z", - "userMetadata": "New consumergroup" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacenbpcaTm/eventhubs/eventhubnabpcaTm/consumergroups?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventhub/v1.1.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Oct 2022 03:40:11 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-inline-count": "", - "x-ms-ratelimit-remaining-subscription-reads": "11973", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221017T034012Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacenbpcaTm/eventhubs/eventhubnabpcaTm/consumergroups/$Default", - "name": "$Default", - "type": "Microsoft.EventHub/namespaces/eventhubs/consumergroups", - "location": "westus", - "properties": { - "createdAt": "2022-10-17T03:40:02.272Z", - "updatedAt": "2022-10-17T03:40:02.319Z" - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacenbpcaTm/eventhubs/eventhubnabpcaTm/consumergroups/consumergrbpcatm", - "name": "consumergrbpcatm", - "type": "Microsoft.EventHub/namespaces/eventhubs/consumergroups", - "location": "westus", - "properties": { - "createdAt": "2022-10-17T03:40:11.631Z", - "updatedAt": "2022-10-17T03:40:11.631Z", - "userMetadata": "New consumergroup" - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacenbpcaTm/eventhubs/eventhubnabpcaTm/consumergroups/consumergrbpcaTm?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventhub/v1.1.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Oct 2022 03:40:12 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11972", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221017T034012Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacenbpcaTm/eventhubs/eventhubnabpcaTm/consumergroups/consumergrbpcaTm", - "name": "consumergrbpcaTm", - "type": "Microsoft.EventHub/namespaces/eventhubs/consumergroups", - "location": "westus", - "properties": { - "createdAt": "2022-10-17T03:40:11.631Z", - "updatedAt": "2022-10-17T03:40:11.631Z", - "userMetadata": "New consumergroup" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacenbpcaTm/eventhubs/eventhubnabpcaTm/consumergroups/consumergrbpcaTm?api-version=2022-01-01-preview", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventhub/v1.1.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 17 Oct 2022 03:40:12 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14992", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221017T034013Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacenbpcaTm/eventhubs?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventhub/v1.1.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Oct 2022 03:40:13 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-inline-count": "", - "x-ms-ratelimit-remaining-subscription-reads": "11971", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221017T034014Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacenbpcaTm/eventhubs/eventhubnabpcatm", - "name": "eventhubnabpcatm", - "type": "Microsoft.EventHub/namespaces/eventhubs", - "location": "westus", - "properties": { - "messageRetentionInDays": 4, - "partitionCount": 4, - "status": "Active", - "createdAt": "2022-10-17T03:40:01.95", - "updatedAt": "2022-10-17T03:40:03.977", - "partitionIds": [ - "0", - "1", - "2", - "3" - ], - "captureDescription": { - "enabled": true, - "encoding": "Avro", - "destination": { - "name": "EventHubArchive.AzureBlockBlob", - "properties": { - "archiveNameFormat": "{Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}", - "blobContainer": "container", - "storageAccountResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/storageeventhub2" - } - }, - "intervalInSeconds": 120, - "sizeLimitInBytes": 10485763 - } - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacenbpcaTm/eventhubs/eventhubnabpcaTm/authorizationRules?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventhub/v1.1.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Oct 2022 03:40:14 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11970", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221017T034015Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacenbpcaTm/eventhubs/eventhubnabpcaTm?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventhub/v1.1.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Oct 2022 03:40:14 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11969", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221017T034015Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacenbpcaTm/eventhubs/eventhubnabpcaTm", - "name": "eventhubnabpcaTm", - "type": "Microsoft.EventHub/namespaces/eventhubs", - "location": "westus", - "properties": { - "messageRetentionInDays": 4, - "partitionCount": 4, - "status": "Active", - "createdAt": "2022-10-17T03:40:01.95", - "updatedAt": "2022-10-17T03:40:03.977", - "partitionIds": [ - "0", - "1", - "2", - "3" - ], - "captureDescription": { - "enabled": true, - "encoding": "Avro", - "destination": { - "name": "EventHubArchive.AzureBlockBlob", - "properties": { - "archiveNameFormat": "{Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}", - "blobContainer": "container", - "storageAccountResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/storageeventhub2" - } - }, - "intervalInSeconds": 120, - "sizeLimitInBytes": 10485763 - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacenbpcaTm/eventhubs/eventhubnabpcaTm/authorizationRules/authorizatbpcaTm?api-version=2022-01-01-preview", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "43", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armeventhub/v1.1.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "rights": [ - "Listen", - "Send" - ] - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Oct 2022 03:40:16 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1189", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221017T034016Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacenbpcaTm/eventhubs/eventhubnabpcaTm/authorizationRules/authorizatbpcaTm", - "name": "authorizatbpcaTm", - "type": "Microsoft.EventHub/namespaces/eventhubs/authorizationrules", - "properties": { - "rights": [ - "Listen", - "Send" - ] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacenbpcaTm/eventhubs/eventhubnabpcaTm/authorizationRules/authorizatbpcaTm?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventhub/v1.1.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Oct 2022 03:40:16 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11968", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221017T034017Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacenbpcaTm/eventhubs/eventhubnabpcaTm/authorizationrules/authorizatbpcaTm", - "name": "authorizatbpcaTm", - "type": "Microsoft.EventHub/namespaces/eventhubs/authorizationrules", - "location": "westus", - "properties": { - "rights": [ - "Listen", - "Send" - ] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacenbpcaTm/eventhubs/eventhubnabpcaTm/authorizationRules/authorizatbpcaTm/listKeys?api-version=2022-01-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armeventhub/v1.1.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Oct 2022 03:40:17 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1194", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221017T034018Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "primaryConnectionString": "Endpoint=sb://namespacenbpcatm.servicebus.windows.net/;SharedAccessKeyName=authorizatbpcaTm;SharedAccessKey=MM7k5rrKZ6I9D0JNdaQZK5oiZwklBcaD5EL1hTPrcsc=;EntityPath=eventhubnabpcaTm", - "secondaryConnectionString": "Endpoint=sb://namespacenbpcatm.servicebus.windows.net/;SharedAccessKeyName=authorizatbpcaTm;SharedAccessKey=jutPvL1Ua4xdlJJIJrA2vmyXG3UmKX6l/x1rMJTWazA=;EntityPath=eventhubnabpcaTm", - "primaryKey": "MM7k5rrKZ6I9D0JNdaQZK5oiZwklBcaD5EL1hTPrcsc=", - "secondaryKey": "jutPvL1Ua4xdlJJIJrA2vmyXG3UmKX6l/x1rMJTWazA=", - "keyName": "authorizatbpcaTm" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacenbpcaTm/eventhubs/eventhubnabpcaTm/authorizationRules/authorizatbpcaTm/regenerateKeys?api-version=2022-01-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "24", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armeventhub/v1.1.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": { - "keyType": "PrimaryKey" - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Oct 2022 03:40:18 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1193", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221017T034019Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "primaryConnectionString": "Endpoint=sb://namespacenbpcatm.servicebus.windows.net/;SharedAccessKeyName=authorizatbpcaTm;SharedAccessKey=Aof/NZlxh0P5jjuM9mB5aFw5guup0XJLxoMLHQisW7k=;EntityPath=eventhubnabpcaTm", - "secondaryConnectionString": "Endpoint=sb://namespacenbpcatm.servicebus.windows.net/;SharedAccessKeyName=authorizatbpcaTm;SharedAccessKey=jutPvL1Ua4xdlJJIJrA2vmyXG3UmKX6l/x1rMJTWazA=;EntityPath=eventhubnabpcaTm", - "primaryKey": "Aof/NZlxh0P5jjuM9mB5aFw5guup0XJLxoMLHQisW7k=", - "secondaryKey": "jutPvL1Ua4xdlJJIJrA2vmyXG3UmKX6l/x1rMJTWazA=", - "keyName": "authorizatbpcaTm" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacenbpcaTm/eventhubs/eventhubnabpcaTm/authorizationRules/authorizatbpcaTm?api-version=2022-01-01-preview", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventhub/v1.1.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 17 Oct 2022 03:40:20 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14991", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221017T034020Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventHub/checkNameAvailability?api-version=2022-01-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "29", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armeventhub/v1.1.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": { - "name": "sdk-Namespace-8458" - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Oct 2022 03:40:20 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1192", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M11CH3_M11CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221017T034021Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "nameAvailable": true, - "reason": "None", - "message": null - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventHub/namespaces?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventhub/v1.1.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Oct 2022 03:40:21 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-inline-count": "", - "x-ms-ratelimit-remaining-subscription-reads": "11967", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M11CH3_M11CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221017T034022Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "sku": { - "name": "Standard", - "tier": "Standard", - "capacity": 1 - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_servicebus_namespace_test_migration_configsa9a51771/providers/Microsoft.EventHub/namespaces/myNamespacexxyyzzy", - "name": "myNamespacexxyyzzy", - "type": "Microsoft.EventHub/Namespaces", - "location": "East US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "minimumTlsVersion": "1.0", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "isAutoInflateEnabled": false, - "maximumThroughputUnits": 0, - "kafkaEnabled": true, - "provisioningState": "Succeeded", - "metricId": "00000000-0000-0000-0000-000000000000:mynamespacexxyyzzy", - "createdAt": "2020-08-17T08:07:13.307Z", - "updatedAt": "2020-08-17T08:27:01.143Z", - "serviceBusEndpoint": "https://myNamespacexxyyzzy.servicebus.windows.net:443/", - "status": "Active", - "alternateName": "postmigrationxxy" - } - }, - { - "sku": { - "name": "Standard", - "tier": "Standard", - "capacity": 1 - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/7vx5onejribdkm3bpke5mddlz57worfeu7edc4sdd5xec2dng2m4hhit6yy7d5u6asotq6vmh6a/providers/Microsoft.EventHub/namespaces/myNamespacexxyyzzykk", - "name": "myNamespacexxyyzzykk", - "type": "Microsoft.EventHub/Namespaces", - "location": "East US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "minimumTlsVersion": "1.0", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "isAutoInflateEnabled": false, - "maximumThroughputUnits": 0, - "kafkaEnabled": true, - "provisioningState": "Succeeded", - "metricId": "00000000-0000-0000-0000-000000000000:mynamespacexxyyzzykk", - "createdAt": "2020-08-18T05:04:57.527Z", - "updatedAt": "2020-08-18T05:11:09.503Z", - "serviceBusEndpoint": "https://myNamespacexxyyzzykk.servicebus.windows.net:443/", - "status": "Active", - "alternateName": "postmigrationxxxy" - } - }, - { - "sku": { - "name": "Standard", - "tier": "Standard", - "capacity": 1 - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ynxlgsiviwllnnyxerfno3pvvvlatogfqveyr7qrll47yxqousmcwnhpj36idtz5a4albpa4anq/providers/Microsoft.EventHub/namespaces/myNamespacexxyyzzxyyma", - "name": "myNamespacexxyyzzxyyma", - "type": "Microsoft.EventHub/Namespaces", - "location": "East US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "minimumTlsVersion": "1.0", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "isAutoInflateEnabled": false, - "maximumThroughputUnits": 0, - "kafkaEnabled": true, - "provisioningState": "Succeeded", - "metricId": "00000000-0000-0000-0000-000000000000:mynamespacexxyyzzxyyma", - "createdAt": "2020-11-23T08:53:51.213Z", - "updatedAt": "2020-11-23T08:59:42.087Z", - "serviceBusEndpoint": "https://myNamespacexxyyzzxyyma.servicebus.windows.net:443/", - "status": "Active", - "alternateName": "postmigrationxxxky" - } - }, - { - "sku": { - "name": "Standard", - "tier": "Standard", - "capacity": 1 - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-test/providers/Microsoft.EventHub/namespaces/gotest", - "name": "gotest", - "type": "Microsoft.EventHub/Namespaces", - "location": "East US", - "tags": {}, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": true, - "isAutoInflateEnabled": false, - "maximumThroughputUnits": 0, - "kafkaEnabled": true, - "provisioningState": "Succeeded", - "metricId": "00000000-0000-0000-0000-000000000000:gotest", - "createdAt": "2022-09-23T02:32:04.26Z", - "updatedAt": "2022-09-23T02:32:56.94Z", - "serviceBusEndpoint": "https://gotest.servicebus.windows.net:443/", - "status": "Active" - } - }, - { - "sku": { - "name": "Premium", - "tier": "Premium", - "capacity": 1 - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacenbpcaTm", - "name": "namespacenbpcaTm", - "type": "Microsoft.EventHub/Namespaces", - "location": "West US", - "tags": {}, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "isAutoInflateEnabled": false, - "maximumThroughputUnits": 0, - "kafkaEnabled": true, - "provisioningState": "Succeeded", - "metricId": "00000000-0000-0000-0000-000000000000:namespacenbpcatm", - "createdAt": "2022-10-17T03:37:18.16Z", - "updatedAt": "2022-10-17T03:38:24.477Z", - "serviceBusEndpoint": "https://namespacenbpcaTm.servicebus.windows.net:443/", - "status": "Active" - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacenbpcaTm/authorizationRules?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventhub/v1.1.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Oct 2022 03:40:22 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11966", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M11CH3_M11CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221017T034022Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacenbpcaTm/authorizationRules/RootManageSharedAccessKey", - "name": "RootManageSharedAccessKey", - "type": "Microsoft.EventHub/Namespaces/AuthorizationRules", - "location": "West US", - "properties": { - "rights": [ - "Listen", - "Manage", - "Send" - ] - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacenbpcaTm/networkRuleSets?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventhub/v1.1.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Oct 2022 03:40:23 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11965", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M11CH3_M11CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221017T034023Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacenbpcaTm/networkRuleSets/default", - "name": "default", - "type": "Microsoft.EventHub/Namespaces/NetworkRuleSets", - "location": "West US", - "properties": { - "publicNetworkAccess": "Enabled", - "defaultAction": "Allow", - "virtualNetworkRules": [], - "ipRules": [] - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacenbpcaTm/networkRuleSets/default?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventhub/v1.1.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Oct 2022 03:40:24 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11964", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M11CH3_M11CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221017T034024Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacenbpcaTm/networkRuleSets/default", - "name": "default", - "type": "Microsoft.EventHub/Namespaces/NetworkRuleSets", - "location": "West US", - "properties": { - "publicNetworkAccess": "Enabled", - "defaultAction": "Allow", - "virtualNetworkRules": [], - "ipRules": [] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventhub/v1.1.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Oct 2022 03:40:24 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11963", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M11CH3_M11CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221017T034025Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "sku": { - "name": "Premium", - "tier": "Premium", - "capacity": 1 - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacenbpcaTm", - "name": "namespacenbpcaTm", - "type": "Microsoft.EventHub/Namespaces", - "location": "West US", - "tags": {}, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "isAutoInflateEnabled": false, - "maximumThroughputUnits": 0, - "kafkaEnabled": true, - "provisioningState": "Succeeded", - "metricId": "00000000-0000-0000-0000-000000000000:namespacenbpcatm", - "createdAt": "2022-10-17T03:37:18.16Z", - "updatedAt": "2022-10-17T03:38:24.477Z", - "serviceBusEndpoint": "https://namespacenbpcaTm.servicebus.windows.net:443/", - "status": "Active" - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacenbpcaTm?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventhub/v1.1.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Oct 2022 03:40:24 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11962", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M11CH3_M11CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221017T034025Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "sku": { - "name": "Premium", - "tier": "Premium", - "capacity": 1 - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacenbpcaTm", - "name": "namespacenbpcaTm", - "type": "Microsoft.EventHub/Namespaces", - "location": "West US", - "tags": {}, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "isAutoInflateEnabled": false, - "maximumThroughputUnits": 0, - "kafkaEnabled": true, - "provisioningState": "Succeeded", - "metricId": "00000000-0000-0000-0000-000000000000:namespacenbpcatm", - "createdAt": "2022-10-17T03:37:18.16Z", - "updatedAt": "2022-10-17T03:38:24.477Z", - "serviceBusEndpoint": "https://namespacenbpcaTm.servicebus.windows.net:443/", - "status": "Active" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacenbpcaTm?api-version=2022-01-01-preview", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "62", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armeventhub/v1.1.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus", - "tags": { - "tag1": "value1", - "tag2": "value2" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Oct 2022 03:40:28 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "46", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M5CH3_M5CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221017T034029Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "sku": { - "name": "Premium", - "tier": "Premium", - "capacity": 1 - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacenbpcaTm", - "name": "namespacenbpcaTm", - "type": "Microsoft.EventHub/Namespaces", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "isAutoInflateEnabled": false, - "maximumThroughputUnits": 0, - "kafkaEnabled": true, - "provisioningState": "Updating", - "metricId": "00000000-0000-0000-0000-000000000000:namespacenbpcatm", - "createdAt": "2022-10-17T03:37:18.16Z", - "updatedAt": "2022-10-17T03:40:26.367Z", - "serviceBusEndpoint": "https://namespacenbpcaTm.servicebus.windows.net:443/", - "status": "Activating" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacenbpcaTm/authorizationRules/authorizatbpcaTm?api-version=2022-01-01-preview", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "43", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armeventhub/v1.1.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "rights": [ - "Listen", - "Send" - ] - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Oct 2022 03:40:36 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1188", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M9CH3_M9CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221017T034036Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacenbpcaTm/authorizationRules/authorizatbpcaTm", - "name": "authorizatbpcaTm", - "type": "Microsoft.EventHub/Namespaces/AuthorizationRules", - "location": "West US", - "properties": { - "rights": [ - "Listen", - "Send" - ] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacenbpcaTm/authorizationRules/authorizatbpcaTm?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventhub/v1.1.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Oct 2022 03:40:36 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11961", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M9CH3_M9CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221017T034037Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacenbpcaTm/authorizationRules/authorizatbpcaTm", - "name": "authorizatbpcaTm", - "type": "Microsoft.EventHub/Namespaces/AuthorizationRules", - "location": "West US", - "properties": { - "rights": [ - "Listen", - "Send" - ] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacenbpcaTm/authorizationRules/authorizatbpcaTm/listKeys?api-version=2022-01-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armeventhub/v1.1.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Oct 2022 03:40:37 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1191", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M5CH3_M5CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221017T034037Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "primaryConnectionString": "Endpoint=sb://namespacenbpcatm.servicebus.windows.net/;SharedAccessKeyName=authorizatbpcaTm;SharedAccessKey=slmw5i\u002BsfUTSVivginh0nw4t1V8Q85tZ7Md8KHtPuAs=", - "secondaryConnectionString": "Endpoint=sb://namespacenbpcatm.servicebus.windows.net/;SharedAccessKeyName=authorizatbpcaTm;SharedAccessKey=p\u002B4LLPlDjAS2gMjLHG7krOWVgtj/x6BUAlG7V0dXk5s=", - "primaryKey": "slmw5i\u002BsfUTSVivginh0nw4t1V8Q85tZ7Md8KHtPuAs=", - "secondaryKey": "p\u002B4LLPlDjAS2gMjLHG7krOWVgtj/x6BUAlG7V0dXk5s=", - "keyName": "authorizatbpcaTm" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacenbpcaTm/authorizationRules/authorizatbpcaTm/regenerateKeys?api-version=2022-01-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "24", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armeventhub/v1.1.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": { - "keyType": "PrimaryKey" - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Oct 2022 03:40:44 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1190", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M5CH3_M5CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221017T034044Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "primaryConnectionString": "Endpoint=sb://namespacenbpcatm.servicebus.windows.net/;SharedAccessKeyName=authorizatbpcaTm;SharedAccessKey=8Ww84mFYjdsaiBxdMFCn/7T/E/uELcFFGFckblerClc=", - "secondaryConnectionString": "Endpoint=sb://namespacenbpcatm.servicebus.windows.net/;SharedAccessKeyName=authorizatbpcaTm;SharedAccessKey=p\u002B4LLPlDjAS2gMjLHG7krOWVgtj/x6BUAlG7V0dXk5s=", - "primaryKey": "8Ww84mFYjdsaiBxdMFCn/7T/E/uELcFFGFckblerClc=", - "secondaryKey": "p\u002B4LLPlDjAS2gMjLHG7krOWVgtj/x6BUAlG7V0dXk5s=", - "keyName": "authorizatbpcaTm" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacenbpcaTm/authorizationRules/authorizatbpcaTm?api-version=2022-01-01-preview", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventhub/v1.1.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 17 Oct 2022 03:40:52 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14990", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M5CH3_M5CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221017T034052Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.EventHub/operations?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventhub/v1.1.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Oct 2022 03:40:53 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-tenant-reads": "11998", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M11CH3_M11CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221017T034053Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "name": "Microsoft.EventHub/checkNamespaceAvailability/action", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "Non Resource Operation", - "operation": "Get namespace availability.", - "description": "Checks availability of namespace under given subscription. This API is deprecated please use CheckNameAvailabiltiy instead." - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/checkNameAvailability/action", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "Non Resource Operation", - "operation": "Get namespace availability.", - "description": "Checks availability of namespace under given subscription." - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/register/action", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "EventHub Resource Provider", - "operation": "Registers the EventHub Resource Provider", - "description": "Registers the subscription for the EventHub resource provider and enables the creation of EventHub resources" - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/unregister/action", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "EventHub Resource Provider", - "operation": "Registers the EventHub Resource Provider", - "description": "Registers the EventHub Resource Provider" - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/locations/deleteVirtualNetworkOrSubnets/action", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "EventHub Resource Provider", - "operation": "Deletes the VNet rules in EventHub Resource Provider for the specified VNet", - "description": "Deletes the VNet rules in EventHub Resource Provider for the specified VNet" - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/namespaces/write", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "Namespace", - "operation": "Create Or Update Namespace ", - "description": "Create a Namespace Resource and Update its properties. Tags and Capacity of the Namespace are the properties which can be updated." - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/namespaces/read", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "Namespace", - "operation": "Get Namespace Resource", - "description": "Get the list of Namespace Resource Description" - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/namespaces/operationresults/read", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "Namespace", - "operation": "Get Namespace Resource", - "description": "Get the status of Namespace operation" - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/namespaces/Delete", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "Namespace", - "operation": "Delete Namespace", - "description": "Delete Namespace Resource" - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/namespaces/authorizationRules/read", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "AuthorizationRules", - "operation": "Get Namespace Authorization Rules", - "description": "Get the list of Namespaces Authorization Rules description." - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/namespaces/authorizationRules/write", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "AuthorizationRules", - "operation": "Create or Update Namespace Authorization Rules", - "description": "Create a Namespace level Authorization Rules and update its properties. The Authorization Rules Access Rights, the Primary and Secondary Keys can be updated." - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/namespaces/authorizationRules/delete", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "AuthorizationRules", - "operation": "Delete Namespace Authorization Rule", - "description": "Delete Namespace Authorization Rule. The Default Namespace Authorization Rule cannot be deleted. " - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/namespaces/authorizationRules/listkeys/action", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "AuthorizationRules", - "operation": "Get Namespace Listkeys", - "description": "Get the Connection String to the Namespace" - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/namespaces/authorizationRules/regenerateKeys/action", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "AuthorizationRules", - "operation": "Resource Regeneratekeys", - "description": "Regenerate the Primary or Secondary key to the Resource" - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/namespaces/messagingPlan/read", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "Namespace", - "operation": "Get Messaging Plan (Deprecated)", - "description": "Gets the Messaging Plan for a namespace. This API is deprecated. Properties exposed via the MessagingPlan resource are moved to the (parent) Namespace resource in later API versions.. This operation is not supported on API version 2017-04-01." - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/namespaces/messagingPlan/write", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "Namespace", - "operation": "Create or Update Messaging Plan (Deprecated)", - "description": "Updates the Messaging Plan for a namespace. This API is deprecated. Properties exposed via the MessagingPlan resource are moved to the (parent) Namespace resource in later API versions.. This operation is not supported on API version 2017-04-01." - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/namespaces/authorizationRules/action", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "AuthorizationRules", - "operation": "Updates Namespace Authorization Rule (Deprecated)", - "description": "Updates Namespace Authorization Rule. This API is depricated. Please use a PUT call to update the Namespace Authorization Rule instead.. This operation is not supported on API version 2017-04-01." - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/namespaces/schemagroups/write", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "SchemaGroup", - "operation": "Create or Update SchemaGroup", - "description": "Create or Update SchemaGroup properties." - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/namespaces/schemagroups/read", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "SchemaGroup", - "operation": "Get SchemaGroup", - "description": "Get list of SchemaGroup Resource Descriptions" - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/namespaces/schemagroups/delete", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "SchemaGroup", - "operation": "Delete SchemaGroup", - "description": "Operation to delete SchemaGroup Resource" - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/namespaces/eventhubs/write", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "EventHub", - "operation": "Create or Update EventHub", - "description": "Create or Update EventHub properties." - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/namespaces/eventhubs/read", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "EventHub", - "operation": "Get EventHub", - "description": "Get list of EventHub Resource Descriptions" - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/namespaces/eventhubs/Delete", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "EventHub", - "operation": "Delete EventHub", - "description": "Operation to delete EventHub Resource" - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/namespaces/eventhubs/authorizationRules/read", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "EventHub AuthorizationRules", - "operation": " Get EventHub Authorization Rules", - "description": " Get the list of EventHub Authorization Rules" - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/namespaces/eventhubs/authorizationRules/write", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "EventHub AuthorizationRules", - "operation": "Create or Update EventHub Authorization Rule", - "description": "Create EventHub Authorization Rules and Update its properties. The Authorization Rules Access Rights can be updated." - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/namespaces/eventhubs/authorizationRules/delete", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "EventHub AuthorizationRules", - "operation": "Delete EventHub Authorization Rules", - "description": "Operation to delete EventHub Authorization Rules" - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/namespaces/eventhubs/authorizationRules/listkeys/action", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "EventHub AuthorizationRules", - "operation": "List EventHub keys", - "description": "Get the Connection String to EventHub" - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/namespaces/eventhubs/authorizationRules/regenerateKeys/action", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "EventHub AuthorizationRules", - "operation": "Resource Regeneratekeys", - "description": "Regenerate the Primary or Secondary key to the Resource" - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/namespaces/eventhubs/authorizationRules/action", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "EventHub AuthorizationRules", - "operation": "Update EventHub Authorization Rules (Deprecated)", - "description": "Operation to update EventHub. This operation is not supported on API version 2017-04-01. Authorization Rules. Please use a PUT call to update Authorization Rule." - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/namespaces/eventHubs/consumergroups/write", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "ConsumerGroup", - "operation": "Create or Update ConsumerGroup", - "description": "Create or Update ConsumerGroup properties." - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/namespaces/eventHubs/consumergroups/read", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "ConsumerGroup", - "operation": "Get ConsumerGroup", - "description": "Get list of ConsumerGroup Resource Descriptions" - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/namespaces/eventHubs/consumergroups/Delete", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "ConsumerGroup", - "operation": "Delete ConsumerGroup", - "description": "Operation to delete ConsumerGroup Resource" - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/sku/read", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "Sku", - "operation": "Get Sku", - "description": "Get list of Sku Resource Descriptions" - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/sku/regions/read", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "SkuRegions", - "operation": "Get SkuRegions", - "description": "Get list of SkuRegions Resource Descriptions" - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/operations/read", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "Operations", - "operation": "Get Operations", - "description": "Get Operations" - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/namespaces/providers/Microsoft.Insights/metricDefinitions/read", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "Namespace metrics", - "operation": "Get Namespace metrics", - "description": "Get list of Namespace metrics Resource Descriptions" - }, - "properties": { - "serviceSpecification": { - "metricSpecifications": [ - { - "name": "SuccessfulRequests", - "displayName": "Successful Requests", - "displayDescription": "Successful Requests for Microsoft.EventHub.", - "unit": "Count", - "aggregationType": "Total", - "internalMetricName": "IncomingRequests", - "isDimensionRequired": false, - "sourceMdmAccount": "servicebus", - "sourceMdmNamespace": "OperationQoSMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "EntityName", - "toBeExportedForShoebox": true - }, - { - "name": "OperationResult", - "isHidden": true, - "defaultDimensionValues": [ - { - "value": "Success" - } - ] - } - ], - "fillGapWithZero": true - }, - { - "name": "ServerErrors", - "displayName": "Server Errors.", - "displayDescription": "Server Errors for Microsoft.EventHub.", - "unit": "Count", - "aggregationType": "Total", - "internalMetricName": "IncomingRequests", - "isDimensionRequired": false, - "sourceMdmAccount": "servicebus", - "sourceMdmNamespace": "OperationQoSMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "EntityName", - "toBeExportedForShoebox": true - }, - { - "name": "OperationResult", - "isHidden": true, - "defaultDimensionValues": [ - { - "value": "InternalServerError" - } - ] - } - ], - "fillGapWithZero": true - }, - { - "name": "UserErrors", - "displayName": "User Errors.", - "displayDescription": "User Errors for Microsoft.EventHub.", - "unit": "Count", - "aggregationType": "Total", - "internalMetricName": "IncomingRequests", - "isDimensionRequired": false, - "sourceMdmAccount": "servicebus", - "sourceMdmNamespace": "OperationQoSMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "EntityName", - "toBeExportedForShoebox": true - }, - { - "name": "OperationResult", - "isHidden": true, - "defaultDimensionValues": [ - { - "value": "ClientError" - } - ] - } - ], - "fillGapWithZero": true - }, - { - "name": "QuotaExceededErrors", - "displayName": "Quota Exceeded Errors.", - "displayDescription": "Quota Exceeded Errors for Microsoft.EventHub.", - "unit": "Count", - "aggregationType": "Total", - "internalMetricName": "IncomingRequests", - "isDimensionRequired": false, - "sourceMdmAccount": "servicebus", - "sourceMdmNamespace": "OperationQoSMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "EntityName", - "toBeExportedForShoebox": true - }, - { - "name": "OperationResult", - "isHidden": true, - "defaultDimensionValues": [ - { - "value": "QuotaExceeded" - } - ] - } - ], - "fillGapWithZero": true - }, - { - "name": "ThrottledRequests", - "displayName": "Throttled Requests.", - "displayDescription": "Throttled Requests for Microsoft.EventHub.", - "unit": "Count", - "aggregationType": "Total", - "internalMetricName": "IncomingRequests", - "isDimensionRequired": false, - "sourceMdmAccount": "servicebus", - "sourceMdmNamespace": "OperationQoSMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "EntityName", - "toBeExportedForShoebox": true - }, - { - "name": "OperationResult", - "isHidden": true, - "defaultDimensionValues": [ - { - "value": "ServerBusy" - } - ] - } - ], - "fillGapWithZero": true - }, - { - "name": "IncomingRequests", - "displayName": "Incoming Requests", - "displayDescription": "Incoming Requests for Microsoft.EventHub.", - "unit": "Count", - "aggregationType": "Total", - "internalMetricName": "IncomingRequests", - "isDimensionRequired": false, - "sourceMdmAccount": "servicebus", - "sourceMdmNamespace": "OperationQoSMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "EntityName", - "toBeExportedForShoebox": true - } - ], - "fillGapWithZero": true - }, - { - "name": "IncomingMessages", - "displayName": "Incoming Messages", - "displayDescription": "Incoming Messages for Microsoft.EventHub.", - "unit": "Count", - "aggregationType": "Total", - "internalMetricName": "IncomingMessages", - "isDimensionRequired": false, - "sourceMdmAccount": "servicebus", - "sourceMdmNamespace": "OperationQoSMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "EntityName", - "toBeExportedForShoebox": true - } - ], - "fillGapWithZero": true - }, - { - "name": "OutgoingMessages", - "displayName": "Outgoing Messages", - "displayDescription": "Outgoing Messages for Microsoft.EventHub.", - "unit": "Count", - "aggregationType": "Total", - "internalMetricName": "OutgoingMessages", - "isDimensionRequired": false, - "sourceMdmAccount": "servicebus", - "sourceMdmNamespace": "OperationQoSMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "EntityName", - "toBeExportedForShoebox": true - } - ], - "fillGapWithZero": true - }, - { - "name": "IncomingBytes", - "displayName": "Incoming Bytes.", - "displayDescription": "Incoming Bytes for Microsoft.EventHub.", - "unit": "Bytes", - "aggregationType": "Total", - "internalMetricName": "IncomingBytes", - "isDimensionRequired": false, - "sourceMdmAccount": "servicebus", - "sourceMdmNamespace": "OperationQoSMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "EntityName", - "toBeExportedForShoebox": true - } - ], - "fillGapWithZero": true - }, - { - "name": "OutgoingBytes", - "displayName": "Outgoing Bytes.", - "displayDescription": "Outgoing Bytes for Microsoft.EventHub.", - "unit": "Bytes", - "aggregationType": "Total", - "internalMetricName": "OutgoingBytes", - "isDimensionRequired": false, - "sourceMdmAccount": "servicebus", - "sourceMdmNamespace": "OperationQoSMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "EntityName", - "toBeExportedForShoebox": true - } - ], - "fillGapWithZero": true - }, - { - "name": "ActiveConnections", - "displayName": "ActiveConnections", - "displayDescription": "Total Active Connections for Microsoft.EventHub.", - "unit": "Count", - "aggregationType": "Maximum", - "internalMetricName": "NamespaceActiveConnections", - "isDimensionRequired": false, - "sourceMdmAccount": "servicebus", - "sourceMdmNamespace": "OperationQoSMetrics", - "lockAggregationType": "Total", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "supportedAggregationTypes": [ - "Maximum", - "Minimum", - "Average" - ], - "fillGapWithZero": true - }, - { - "name": "ConnectionsOpened", - "displayName": "Connections Opened.", - "displayDescription": "Connections Opened for Microsoft.EventHub.", - "unit": "Count", - "aggregationType": "Maximum", - "internalMetricName": "ConnectionOpen", - "isDimensionRequired": false, - "sourceMdmAccount": "servicebus", - "sourceMdmNamespace": "OperationQoSMetrics", - "lockAggregationType": "Total", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "EntityName", - "toBeExportedForShoebox": true - } - ], - "fillGapWithZero": true - }, - { - "name": "ConnectionsClosed", - "displayName": "Connections Closed.", - "displayDescription": "Connections Closed for Microsoft.EventHub.", - "unit": "Count", - "aggregationType": "Maximum", - "internalMetricName": "ConnectionClose", - "isDimensionRequired": false, - "sourceMdmAccount": "servicebus", - "sourceMdmNamespace": "OperationQoSMetrics", - "lockAggregationType": "Total", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "EntityName", - "toBeExportedForShoebox": true - } - ], - "fillGapWithZero": true - }, - { - "name": "CaptureBacklog", - "displayName": "Capture Backlog.", - "displayDescription": "Capture Backlog for Microsoft.EventHub.", - "unit": "Count", - "aggregationType": "Total", - "internalMetricName": "ArchiveBacklog", - "isDimensionRequired": false, - "sourceMdmAccount": "servicebus", - "sourceMdmNamespace": "OperationQoSMetrics", - "lockAggregationType": "Total", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "EntityName", - "toBeExportedForShoebox": true - } - ], - "fillGapWithZero": false - }, - { - "name": "CapturedMessages", - "displayName": "Captured Messages.", - "displayDescription": "Captured Messages for Microsoft.EventHub.", - "unit": "Count", - "aggregationType": "Total", - "internalMetricName": "ArchivedMessages", - "isDimensionRequired": false, - "sourceMdmAccount": "servicebus", - "sourceMdmNamespace": "OperationQoSMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "EntityName", - "toBeExportedForShoebox": true - } - ], - "fillGapWithZero": true - }, - { - "name": "CapturedBytes", - "displayName": "Captured Bytes.", - "displayDescription": "Captured Bytes for Microsoft.EventHub.", - "unit": "Bytes", - "aggregationType": "Total", - "internalMetricName": "ArchivedBytes", - "isDimensionRequired": false, - "sourceMdmAccount": "servicebus", - "sourceMdmNamespace": "OperationQoSMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "EntityName", - "toBeExportedForShoebox": true - } - ], - "fillGapWithZero": true - }, - { - "name": "Size", - "displayName": "Size", - "displayDescription": "Size of an EventHub in Bytes.", - "unit": "Bytes", - "aggregationType": "Average", - "internalMetricName": "EntitySize", - "isDimensionRequired": false, - "sourceMdmAccount": "servicebus", - "sourceMdmNamespace": "OperationQoSMetrics", - "lockAggregationType": "Total", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "EntityName", - "toBeExportedForShoebox": true - } - ], - "supportedAggregationTypes": [ - "Average", - "Minimum", - "Maximum" - ], - "fillGapWithZero": true - }, - { - "name": "INREQS", - "displayName": "Incoming Requests (Deprecated)", - "displayDescription": "Total incoming send requests for a namespace (Deprecated)", - "unit": "Count", - "aggregationType": "Total", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "fillGapWithZero": true - }, - { - "name": "SUCCREQ", - "displayName": "Successful Requests (Deprecated)", - "displayDescription": "Total successful requests for a namespace (Deprecated)", - "unit": "Count", - "aggregationType": "Total", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "fillGapWithZero": true - }, - { - "name": "FAILREQ", - "displayName": "Failed Requests (Deprecated)", - "displayDescription": "Total failed requests for a namespace (Deprecated)", - "unit": "Count", - "aggregationType": "Total", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "fillGapWithZero": true - }, - { - "name": "SVRBSY", - "displayName": "Server Busy Errors (Deprecated)", - "displayDescription": "Total server busy errors for a namespace (Deprecated)", - "unit": "Count", - "aggregationType": "Total", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "fillGapWithZero": true - }, - { - "name": "INTERR", - "displayName": "Internal Server Errors (Deprecated)", - "displayDescription": "Total internal server errors for a namespace (Deprecated)", - "unit": "Count", - "aggregationType": "Total", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "fillGapWithZero": true - }, - { - "name": "MISCERR", - "displayName": "Other Errors (Deprecated)", - "displayDescription": "Total failed requests for a namespace (Deprecated)", - "unit": "Count", - "aggregationType": "Total", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "fillGapWithZero": true - }, - { - "name": "INMSGS", - "displayName": "Incoming Messages (obsolete) (Deprecated)", - "displayDescription": "Total incoming messages for a namespace. This metric is deprecated. Please use Incoming Messages metric instead (Deprecated)", - "unit": "Count", - "aggregationType": "Total", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "fillGapWithZero": true - }, - { - "name": "EHINMSGS", - "displayName": "Incoming Messages (Deprecated)", - "displayDescription": "Total incoming messages for a namespace (Deprecated)", - "unit": "Count", - "aggregationType": "Total", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "fillGapWithZero": true - }, - { - "name": "OUTMSGS", - "displayName": "Outgoing Messages (obsolete) (Deprecated)", - "displayDescription": "Total outgoing messages for a namespace. This metric is deprecated. Please use Outgoing Messages metric instead (Deprecated)", - "unit": "Count", - "aggregationType": "Total", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "fillGapWithZero": true - }, - { - "name": "EHOUTMSGS", - "displayName": "Outgoing Messages (Deprecated)", - "displayDescription": "Total outgoing messages for a namespace (Deprecated)", - "unit": "Count", - "aggregationType": "Total", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "fillGapWithZero": true - }, - { - "name": "EHINMBS", - "displayName": "Incoming bytes (obsolete) (Deprecated)", - "displayDescription": "Event Hub incoming message throughput for a namespace. This metric is deprecated. Please use Incoming bytes metric instead (Deprecated)", - "unit": "Bytes", - "aggregationType": "Total", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "fillGapWithZero": true - }, - { - "name": "EHINBYTES", - "displayName": "Incoming bytes (Deprecated)", - "displayDescription": "Event Hub incoming message throughput for a namespace (Deprecated)", - "unit": "Bytes", - "aggregationType": "Total", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "fillGapWithZero": true - }, - { - "name": "EHOUTMBS", - "displayName": "Outgoing bytes (obsolete) (Deprecated)", - "displayDescription": "Event Hub outgoing message throughput for a namespace. This metric is deprecated. Please use Outgoing bytes metric instead (Deprecated)", - "unit": "Bytes", - "aggregationType": "Total", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "fillGapWithZero": true - }, - { - "name": "EHOUTBYTES", - "displayName": "Outgoing bytes (Deprecated)", - "displayDescription": "Event Hub outgoing message throughput for a namespace (Deprecated)", - "unit": "Bytes", - "aggregationType": "Total", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "fillGapWithZero": true - }, - { - "name": "EHABL", - "displayName": "Archive backlog messages (Deprecated)", - "displayDescription": "Event Hub archive messages in backlog for a namespace (Deprecated)", - "unit": "Count", - "aggregationType": "Total", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "fillGapWithZero": true - }, - { - "name": "EHAMSGS", - "displayName": "Archive messages (Deprecated)", - "displayDescription": "Event Hub archived messages in a namespace (Deprecated)", - "unit": "Count", - "aggregationType": "Total", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "fillGapWithZero": true - }, - { - "name": "EHAMBS", - "displayName": "Archive message throughput (Deprecated)", - "displayDescription": "Event Hub archived message throughput in a namespace (Deprecated)", - "unit": "Bytes", - "aggregationType": "Total", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "fillGapWithZero": true - }, - { - "name": "NamespaceCpuUsage", - "displayName": "CPU", - "displayDescription": "CPU usage metric for Premium SKU namespaces.", - "unit": "Percent", - "aggregationType": "Maximum", - "internalMetricName": "NamespaceCpuUsage", - "isDimensionRequired": false, - "sourceMdmAccount": "servicebus", - "sourceMdmNamespace": "OperationQoSMetrics", - "lockAggregationType": "Total", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "Replica", - "isHidden": true, - "defaultDimensionValues": [ - { - "value": "Primary" - } - ] - } - ], - "supportedAggregationTypes": [ - "Maximum", - "Minimum", - "Average" - ], - "metricFilterPattern": "(?i)^premium$", - "fillGapWithZero": false - }, - { - "name": "NamespaceMemoryUsage", - "displayName": "Memory Usage", - "displayDescription": "Memory usage metric for Premium SKU namespaces.", - "unit": "Percent", - "aggregationType": "Maximum", - "internalMetricName": "NamespaceWorkingSet64", - "isDimensionRequired": false, - "sourceMdmAccount": "servicebus", - "sourceMdmNamespace": "OperationQoSMetrics", - "lockAggregationType": "Total", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "Replica", - "isHidden": true, - "defaultDimensionValues": [ - { - "value": "Primary" - } - ] - } - ], - "supportedAggregationTypes": [ - "Maximum", - "Minimum", - "Average" - ], - "metricFilterPattern": "(?i)^premium$", - "fillGapWithZero": false - } - ] - } - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/clusters/providers/Microsoft.Insights/metricDefinitions/read", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "Cluster metrics", - "operation": "Get Cluster metrics", - "description": "Get list of Cluster metrics Resource Descriptions" - }, - "properties": { - "serviceSpecification": { - "metricSpecifications": [ - { - "name": "SuccessfulRequests", - "displayName": "Successful Requests", - "displayDescription": "Successful Requests for Microsoft.EventHub.", - "unit": "Count", - "aggregationType": "Total", - "internalMetricName": "IncomingRequests", - "isDimensionRequired": false, - "resourceIdDimensionNameOverride": "ScaleUnit", - "sourceMdmAccount": "servicebus", - "sourceMdmNamespace": "OperationQoSMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "OperationResult", - "isHidden": true, - "defaultDimensionValues": [ - { - "value": "Success" - } - ] - } - ], - "fillGapWithZero": true - }, - { - "name": "ServerErrors", - "displayName": "Server Errors.", - "displayDescription": "Server Errors for Microsoft.EventHub.", - "unit": "Count", - "aggregationType": "Total", - "internalMetricName": "IncomingRequests", - "isDimensionRequired": false, - "resourceIdDimensionNameOverride": "ScaleUnit", - "sourceMdmAccount": "servicebus", - "sourceMdmNamespace": "OperationQoSMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "OperationResult", - "isHidden": true, - "defaultDimensionValues": [ - { - "value": "InternalServerError" - } - ] - } - ], - "fillGapWithZero": true - }, - { - "name": "UserErrors", - "displayName": "User Errors.", - "displayDescription": "User Errors for Microsoft.EventHub.", - "unit": "Count", - "aggregationType": "Total", - "internalMetricName": "IncomingRequests", - "isDimensionRequired": false, - "resourceIdDimensionNameOverride": "ScaleUnit", - "sourceMdmAccount": "servicebus", - "sourceMdmNamespace": "OperationQoSMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "OperationResult", - "isHidden": true, - "defaultDimensionValues": [ - { - "value": "ClientError" - } - ] - } - ], - "fillGapWithZero": true - }, - { - "name": "QuotaExceededErrors", - "displayName": "Quota Exceeded Errors.", - "displayDescription": "Quota Exceeded Errors for Microsoft.EventHub.", - "unit": "Count", - "aggregationType": "Total", - "internalMetricName": "IncomingRequests", - "isDimensionRequired": false, - "resourceIdDimensionNameOverride": "ScaleUnit", - "sourceMdmAccount": "servicebus", - "sourceMdmNamespace": "OperationQoSMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "OperationResult", - "isHidden": true, - "defaultDimensionValues": [ - { - "value": "QuotaExceeded" - } - ] - } - ], - "fillGapWithZero": true - }, - { - "name": "ThrottledRequests", - "displayName": "Throttled Requests.", - "displayDescription": "Throttled Requests for Microsoft.EventHub.", - "unit": "Count", - "aggregationType": "Total", - "internalMetricName": "IncomingRequests", - "isDimensionRequired": false, - "resourceIdDimensionNameOverride": "ScaleUnit", - "sourceMdmAccount": "servicebus", - "sourceMdmNamespace": "OperationQoSMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "OperationResult", - "isHidden": true, - "defaultDimensionValues": [ - { - "value": "ServerBusy" - } - ] - } - ], - "fillGapWithZero": true - }, - { - "name": "IncomingRequests", - "displayName": "Incoming Requests", - "displayDescription": "Incoming Requests for Microsoft.EventHub.", - "unit": "Count", - "aggregationType": "Total", - "internalMetricName": "IncomingRequests", - "isDimensionRequired": false, - "resourceIdDimensionNameOverride": "ScaleUnit", - "sourceMdmAccount": "servicebus", - "sourceMdmNamespace": "OperationQoSMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "fillGapWithZero": true - }, - { - "name": "IncomingMessages", - "displayName": "Incoming Messages", - "displayDescription": "Incoming Messages for Microsoft.EventHub.", - "unit": "Count", - "aggregationType": "Total", - "internalMetricName": "IncomingMessages", - "isDimensionRequired": false, - "resourceIdDimensionNameOverride": "ScaleUnit", - "sourceMdmAccount": "servicebus", - "sourceMdmNamespace": "OperationQoSMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "fillGapWithZero": true - }, - { - "name": "OutgoingMessages", - "displayName": "Outgoing Messages", - "displayDescription": "Outgoing Messages for Microsoft.EventHub.", - "unit": "Count", - "aggregationType": "Total", - "internalMetricName": "OutgoingMessages", - "isDimensionRequired": false, - "sourceMdmAccount": "servicebus", - "sourceMdmNamespace": "OperationQoSMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "fillGapWithZero": true - }, - { - "name": "IncomingBytes", - "displayName": "Incoming Bytes.", - "displayDescription": "Incoming Bytes for Microsoft.EventHub.", - "unit": "Bytes", - "aggregationType": "Total", - "internalMetricName": "IncomingBytes", - "isDimensionRequired": false, - "resourceIdDimensionNameOverride": "ScaleUnit", - "sourceMdmAccount": "servicebus", - "sourceMdmNamespace": "OperationQoSMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "fillGapWithZero": true - }, - { - "name": "OutgoingBytes", - "displayName": "Outgoing Bytes.", - "displayDescription": "Outgoing Bytes for Microsoft.EventHub.", - "unit": "Bytes", - "aggregationType": "Total", - "internalMetricName": "OutgoingBytes", - "isDimensionRequired": false, - "resourceIdDimensionNameOverride": "ScaleUnit", - "sourceMdmAccount": "servicebus", - "sourceMdmNamespace": "OperationQoSMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "fillGapWithZero": true - }, - { - "name": "ActiveConnections", - "displayName": "ActiveConnections", - "displayDescription": "Total Active Connections for Microsoft.EventHub.", - "unit": "Count", - "aggregationType": "Maximum", - "internalMetricName": "NamespaceActiveConnections", - "isDimensionRequired": false, - "resourceIdDimensionNameOverride": "ScaleUnit", - "sourceMdmAccount": "servicebus", - "sourceMdmNamespace": "OperationQoSMetrics", - "lockAggregationType": "Total", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "supportedAggregationTypes": [ - "Maximum", - "Minimum", - "Average" - ], - "fillGapWithZero": true - }, - { - "name": "ConnectionsOpened", - "displayName": "Connections Opened.", - "displayDescription": "Connections Opened for Microsoft.EventHub.", - "unit": "Count", - "aggregationType": "Maximum", - "internalMetricName": "ConnectionOpen", - "isDimensionRequired": false, - "resourceIdDimensionNameOverride": "ScaleUnit", - "sourceMdmAccount": "servicebus", - "sourceMdmNamespace": "OperationQoSMetrics", - "lockAggregationType": "Total", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "fillGapWithZero": true - }, - { - "name": "ConnectionsClosed", - "displayName": "Connections Closed.", - "displayDescription": "Connections Closed for Microsoft.EventHub.", - "unit": "Count", - "aggregationType": "Maximum", - "internalMetricName": "ConnectionClose", - "isDimensionRequired": false, - "resourceIdDimensionNameOverride": "ScaleUnit", - "sourceMdmAccount": "servicebus", - "sourceMdmNamespace": "OperationQoSMetrics", - "lockAggregationType": "Total", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "fillGapWithZero": true - }, - { - "name": "CaptureBacklog", - "displayName": "Capture Backlog.", - "displayDescription": "Capture Backlog for Microsoft.EventHub.", - "unit": "Count", - "aggregationType": "Total", - "internalMetricName": "ArchiveBacklog", - "isDimensionRequired": false, - "resourceIdDimensionNameOverride": "ScaleUnit", - "sourceMdmAccount": "servicebus", - "sourceMdmNamespace": "OperationQoSMetrics", - "lockAggregationType": "Total", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "fillGapWithZero": false - }, - { - "name": "CapturedMessages", - "displayName": "Captured Messages.", - "displayDescription": "Captured Messages for Microsoft.EventHub.", - "unit": "Count", - "aggregationType": "Total", - "internalMetricName": "ArchivedMessages", - "isDimensionRequired": false, - "resourceIdDimensionNameOverride": "ScaleUnit", - "sourceMdmAccount": "servicebus", - "sourceMdmNamespace": "OperationQoSMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "fillGapWithZero": true - }, - { - "name": "CapturedBytes", - "displayName": "Captured Bytes.", - "displayDescription": "Captured Bytes for Microsoft.EventHub.", - "unit": "Bytes", - "aggregationType": "Total", - "internalMetricName": "ArchivedBytes", - "isDimensionRequired": false, - "resourceIdDimensionNameOverride": "ScaleUnit", - "sourceMdmAccount": "servicebus", - "sourceMdmNamespace": "OperationQoSMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "fillGapWithZero": true - }, - { - "name": "CPU", - "displayName": "CPU", - "displayDescription": "CPU utilization for the Event Hub Cluster as a percentage", - "unit": "Percent", - "aggregationType": "Maximum", - "internalMetricName": "Processor\\% Processor Time", - "resourceIdDimensionNameOverride": "ScaleUnit", - "sourceMdmAccount": "servicebus", - "sourceMdmNamespace": "PerformanceCountersV2", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "Role", - "toBeExportedForShoebox": true - } - ], - "fillGapWithZero": true - }, - { - "name": "AvailableMemory", - "displayName": "Available Memory", - "displayDescription": "Available memory for the Event Hub Cluster as a percentage of total memory.", - "unit": "Percent", - "aggregationType": "Maximum", - "internalMetricName": "NodeMemoryUtilization", - "resourceIdDimensionNameOverride": "ScaleUnit", - "sourceMdmAccount": "servicebus", - "sourceMdmNamespace": "OperationQoSMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "Role", - "toBeExportedForShoebox": true - } - ], - "fillGapWithZero": true - }, - { - "name": "Size", - "displayName": "Size", - "displayDescription": "Size of an EventHub in Bytes.", - "unit": "Bytes", - "aggregationType": "Average", - "internalMetricName": "EntitySize", - "isDimensionRequired": false, - "sourceMdmAccount": "servicebus", - "sourceMdmNamespace": "OperationQoSMetrics", - "lockAggregationType": "Total", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "Role", - "toBeExportedForShoebox": true - } - ], - "supportedAggregationTypes": [ - "Average", - "Minimum", - "Maximum" - ], - "fillGapWithZero": true - } - ] - } - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/namespaces/providers/Microsoft.Insights/diagnosticSettings/read", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "Namespace diagnostic settings", - "operation": "Get Namespace diagnostic settings", - "description": "Get list of Namespace diagnostic settings Resource Descriptions" - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/namespaces/providers/Microsoft.Insights/diagnosticSettings/write", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "Namespace diagnostic settings", - "operation": "Create or Update Namespace diagnostic settings", - "description": "Get list of Namespace diagnostic settings Resource Descriptions" - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/namespaces/providers/Microsoft.Insights/logDefinitions/read", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "Namespace logs", - "operation": "Get Namespace logs", - "description": "Get list of Namespace logs Resource Descriptions" - }, - "properties": { - "serviceSpecification": { - "logSpecifications": [ - { - "name": "ArchiveLogs", - "displayName": "Archive Logs", - "blobDuration": "PT5M" - }, - { - "name": "OperationalLogs", - "displayName": "Operational Logs", - "blobDuration": "PT5M" - }, - { - "name": "AutoScaleLogs", - "displayName": "Auto Scale Logs", - "blobDuration": "PT10M" - }, - { - "name": "KafkaCoordinatorLogs", - "displayName": "Kafka Coordinator Logs", - "blobDuration": "PT5M" - }, - { - "name": "KafkaUserErrorLogs", - "displayName": "Kafka User Error Logs", - "blobDuration": "PT5M" - }, - { - "name": "EventHubVNetConnectionEvent", - "displayName": "VNet/IP Filtering Connection Logs", - "blobDuration": "PT5M" - }, - { - "name": "CustomerManagedKeyUserLogs", - "displayName": "Customer Managed Key Logs", - "blobDuration": "PT5M" - }, - { - "name": "RuntimeAuditLogs", - "displayName": "Runtime Audit Logs", - "blobDuration": "PT5M" - }, - { - "name": "ApplicationMetricsLogs", - "displayName": "Application Metrics Logs", - "blobDuration": "PT5M" - } - ] - } - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/namespaces/disasterrecoveryconfigs/checkNameAvailability/action", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "Non Resource Operation", - "operation": "Get alias availability.", - "description": "Checks availability of namespace alias under given subscription." - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/namespaces/disasterRecoveryConfigs/write", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "DisasterRecoveryConfigurations", - "operation": "Create or Update Disaster Recovery configuration.", - "description": "Creates or Updates the Disaster Recovery configuration associated with the namespace." - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/namespaces/disasterRecoveryConfigs/read", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "DisasterRecoveryConfigurations", - "operation": "Get Disaster Recovery configuration", - "description": "Gets the Disaster Recovery configuration associated with the namespace." - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/namespaces/disasterRecoveryConfigs/delete", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "DisasterRecoveryConfigurations", - "operation": "Delete Disaster Recovery configuration", - "description": "Deletes the Disaster Recovery configuration associated with the namespace. This operation can only be invoked via the primary namespace." - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/namespaces/disasterRecoveryConfigs/breakPairing/action", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "DisasterRecoveryConfigurations", - "operation": "Break Pairing", - "description": "Disables Disaster Recovery and stops replicating changes from primary to secondary namespaces." - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/namespaces/disasterRecoveryConfigs/failover/action", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "DisasterRecoveryConfigurations", - "operation": "Failover", - "description": "Invokes a GEO DR failover and reconfigures the namespace alias to point to the secondary namespace." - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/namespaces/disasterRecoveryConfigs/authorizationRules/read", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "AuthorizationRules", - "operation": "Get Disaster Recovery Primary Namespace\u0027s Authorization Rules", - "description": "Get Disaster Recovery Primary Namespace\u0027s Authorization Rules" - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/namespaces/disasterRecoveryConfigs/authorizationRules/listkeys/action", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "AuthorizationRules", - "operation": "Gets the authorization rules keys for the Disaster Recovery primary namespace", - "description": "Gets the authorization rules keys for the Disaster Recovery primary namespace" - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/namespaces/messages/send/action", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "Messages", - "operation": "Send messages", - "description": "Send messages" - }, - "isDataAction": true - }, - { - "name": "Microsoft.EventHub/namespaces/messages/receive/action", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "Messages", - "operation": "Receive messages", - "description": "Receive messages" - }, - "isDataAction": true - }, - { - "name": "Microsoft.EventHub/namespaces/schemas/read", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "Schemas", - "operation": "Retrieve schemas", - "description": "Retrieve schemas" - }, - "isDataAction": true - }, - { - "name": "Microsoft.EventHub/namespaces/schemas/write", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "Schemas", - "operation": "Write schemas", - "description": "Write schemas" - }, - "isDataAction": true - }, - { - "name": "Microsoft.EventHub/namespaces/schemas/delete", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "Schemas", - "operation": "Delete schemas", - "description": "Delete schemas" - }, - "isDataAction": true - }, - { - "name": "Microsoft.EventHub/namespaces/removeAcsNamepsace/action", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "Remove ACS namespace", - "operation": "Remove ACS namespace", - "description": "Remove ACS namespace" - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/namespaces/ipFilterRules/read", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "IPFilter", - "operation": "Get IP Filter Resource", - "description": "Get IP Filter Resource" - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/namespaces/ipFilterRules/write", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "IPFilter", - "operation": "Create IP Filter Resource", - "description": "Create IP Filter Resource" - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/namespaces/ipFilterRules/delete", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "IPFilter", - "operation": "Delete IP Filter Resource", - "description": "Delete IP Filter Resource" - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/namespaces/virtualNetworkRules/read", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "Virtual Network Rule", - "operation": "Gets VNET Rule Resource", - "description": "Gets VNET Rule Resource" - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/namespaces/virtualNetworkRules/write", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "Virtual Network Rule", - "operation": "Create VNET Rule Resource", - "description": "Create VNET Rule Resource" - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/namespaces/virtualNetworkRules/delete", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "Virtual Network Rule", - "operation": "Delete VNET Rule Resource", - "description": "Delete VNET Rule Resource" - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/namespaces/networkrulesets/read", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "Network Rule Set", - "operation": "Gets NetworkRuleSet Resource", - "description": "Gets NetworkRuleSet Resource" - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/namespaces/networkrulesets/write", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "Network Rule Set", - "operation": "Create VNET Rule Resource", - "description": "Create VNET Rule Resource" - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/namespaces/networkrulesets/delete", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "Network Rule Set", - "operation": "Delete VNET Rule Resource", - "description": "Delete VNET Rule Resource" - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/namespaces/networkruleset/read", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "Network Rule Set", - "operation": "Gets NetworkRuleSet Resource", - "description": "Gets NetworkRuleSet Resource" - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/namespaces/networkruleset/write", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "Network Rule Set", - "operation": "Create VNET Rule Resource", - "description": "Create VNET Rule Resource" - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/namespaces/networkruleset/delete", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "Network Rule Set", - "operation": "Delete VNET Rule Resource", - "description": "Delete VNET Rule Resource" - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/clusters/read", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "Cluster", - "operation": "Get Cluster Resource", - "description": "Gets the Cluster Resource Description" - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/clusters/write", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "Cluster", - "operation": "Write on Cluster Resource", - "description": "Creates or modifies an existing Cluster resource." - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/clusters/delete", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "Cluster", - "operation": "Delete Cluster Resource", - "description": "Deletes an existing Cluster resource." - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/availableClusterRegions/read", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "Non Resource Operation", - "operation": "List available clusters read operation", - "description": "Read operation to list available pre-provisioned clusters by Azure region." - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/clusters/namespaces/read", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "Non Resource Operation", - "operation": "List namespaces within a cluster read operation", - "description": "List namespace ARM IDs for namespaces within a cluster." - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/clusters/operationresults/read", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "Non Resource Operation", - "operation": "Get Cluster Resource", - "description": "Get the status of an asynchronous cluster operation." - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/namespaces/privateEndpointConnectionProxies/validate/action", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "Private Endpoint Connection Proxy", - "operation": "Validate Private Endpoint Connection Proxy", - "description": "Validate Private Endpoint Connection Proxy" - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/namespaces/privateEndpointConnectionProxies/read", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "Private Endpoint Connection Proxy", - "operation": "Get Private Endpoint Connection Proxy", - "description": "Get Private Endpoint Connection Proxy" - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/namespaces/privateEndpointConnectionProxies/write", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "Private Endpoint Connection Proxy", - "operation": "Create Private Endpoint Connection Proxy", - "description": "Create Private Endpoint Connection Proxy" - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/namespaces/privateEndpointConnectionProxies/delete", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "Private Endpoint Connection Proxy", - "operation": "Delete Private Endpoint Connection Proxy", - "description": "Delete Private Endpoint Connection Proxy" - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/namespaces/privateEndpointConnectionProxies/operationstatus/read", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "Non Resource Operation", - "operation": "Private endpoint operation status", - "description": "Get the status of an asynchronous private endpoint operation" - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/namespaces/privateEndpointConnections/read", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "Private Endpoint Connection", - "operation": "Get Private Endpoint Connection", - "description": "Get Private Endpoint Connection" - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/namespaces/privateEndpointConnections/write", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "Private Endpoint Connection", - "operation": "Create or Update Private Endpoint Connection", - "description": "Create or Update Private Endpoint Connection" - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/namespaces/privateEndpointConnections/delete", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "Private Endpoint Connection", - "operation": "Removes Private Endpoint Connection", - "description": "Removes Private Endpoint Connection" - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/namespaces/privateLinkResources/read", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "PrivateLinks", - "operation": "Gets the resource types that support private endpoint connections", - "description": "Gets the resource types that support private endpoint connections" - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/namespaces/privateEndpointConnections/operationstatus/read", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "Non Resource Operation", - "operation": "Private endpoint operation status", - "description": "Get the status of an asynchronous private endpoint operation" - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/namespaces/privateEndpointConnectionsApproval/action", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "Private Endpoint Connection", - "operation": "Approve Private Endpoint Connection", - "description": "Approve Private Endpoint Connection" - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/namespaces/networkSecurityPerimeterAssociationProxies/write", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "Network Security Perimeter Association Proxies", - "operation": "Create NetworkSecurityPerimeterAssociationProxies", - "description": "Create NetworkSecurityPerimeterAssociationProxies" - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/namespaces/networkSecurityPerimeterAssociationProxies/read", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "Network Security Perimeter Association Proxies", - "operation": "Get NetworkSecurityPerimeterAssociationProxies", - "description": "Get NetworkSecurityPerimeterAssociationProxies" - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/namespaces/networkSecurityPerimeterAssociationProxies/delete", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "Network Security Perimeter Association Proxies", - "operation": "Delete NetworkSecurityPerimeterAssociationProxies", - "description": "Delete NetworkSecurityPerimeterAssociationProxies" - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/namespaces/networkSecurityPerimeterAssociationProxies/reconcile/action", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "Network Security Perimeter Association Proxies", - "operation": "Reconcile NetworkSecurityPerimeterAssociationProxies", - "description": "Reconcile NetworkSecurityPerimeterAssociationProxies" - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/namespaces/networkSecurityPerimeterConfigurations/read", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "Network Security Perimeter Configurations", - "operation": "Get Network Security Perimeter Configurations", - "description": "Get Network Security Perimeter Configurations" - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/namespaces/networkSecurityPerimeterConfigurations/reconcile/action", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "Network Security Perimeter Configurations", - "operation": "Reconcile Network Security Perimeter Configurations", - "description": "Reconcile Network Security Perimeter Configurations" - }, - "isDataAction": false - }, - { - "name": "Microsoft.EventHub/namespaces/joinPerimeter/action", - "display": { - "provider": "Microsoft Azure EventHub", - "resource": "Network Security Perimeter Configurations", - "operation": "Action to Join the Network Security Perimeter", - "description": "Action to Join the Network Security Perimeter. This action is used to perform linked access by NSP RP." - }, - "isDataAction": false - } - ], - "nextLink": "" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacenbpcaTm/schemagroups/schemagroubpcaTm?api-version=2022-01-01-preview", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "89", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armeventhub/v1.1.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "groupProperties": {}, - "schemaCompatibility": "Forward", - "schemaType": "Avro" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Oct 2022 03:40:56 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1187", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M11CH3_M11CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221017T034057Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacenbpcaTm/schemagroups/schemagroubpcaTm", - "name": "schemagroubpcaTm", - "type": "Microsoft.EventHub/Namespaces/SchemaGroups", - "location": "West US", - "properties": { - "updatedAtUtc": "2022-10-17T03:40:56.6449005Z", - "createdAtUtc": "2022-10-17T03:40:56.6449005Z", - "eTag": "00000000-0000-0000-0000-000000000000", - "groupProperties": {}, - "schemaCompatibility": "Forward", - "schemaType": "Avro" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacenbpcaTm/schemagroups?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventhub/v1.1.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Oct 2022 03:40:58 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-inline-count": "1", - "x-ms-ratelimit-remaining-subscription-reads": "11960", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M11CH3_M11CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221017T034058Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacenbpcaTm/schemagroups/schemagroubpcaTm", - "name": "schemagroubpcaTm", - "type": "Microsoft.EventHub/Namespaces/SchemaGroups", - "location": "West US", - "properties": { - "updatedAtUtc": "2022-10-17T03:40:56.6449005Z", - "createdAtUtc": "2022-10-17T03:40:56.6449005Z", - "eTag": "00000000-0000-0000-0000-000000000000", - "groupProperties": {}, - "schemaCompatibility": "Forward", - "schemaType": "Avro" - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacenbpcaTm/schemagroups/schemagroubpcaTm?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventhub/v1.1.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Oct 2022 03:40:59 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11959", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M11CH3_M11CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221017T034059Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacenbpcaTm/schemagroups/schemagroubpcaTm", - "name": "schemagroubpcaTm", - "type": "Microsoft.EventHub/Namespaces/SchemaGroups", - "location": "West US", - "properties": { - "updatedAtUtc": "2022-10-17T03:40:56.6449005Z", - "createdAtUtc": "2022-10-17T03:40:56.6449005Z", - "eTag": "00000000-0000-0000-0000-000000000000", - "groupProperties": {}, - "schemaCompatibility": "Forward", - "schemaType": "Avro" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacenbpcaTm/schemagroups/schemagroubpcaTm?api-version=2022-01-01-preview", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventhub/v1.1.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Date": "Mon, 17 Oct 2022 03:41:00 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14989", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M11CH3_M11CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221017T034100Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacenbpcaTm/eventhubs/eventhubnabpcaTm?api-version=2022-01-01-preview", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventhub/v1.1.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 17 Oct 2022 03:41:04 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14988", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221017T034104Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/namespacenbpcaTm?api-version=2022-01-01-preview", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventhub/v1.1.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 17 Oct 2022 03:41:06 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.EventHub/locations/westus/operationStatus/namespacenbpcaTm?api-version=2022-01-01-preview\u0026resourceType=Namespace", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/SN1", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/SN1", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14987", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M4SN1_M4SN1", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221017T034106Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.EventHub/locations/westus/operationStatus/namespacenbpcaTm?api-version=2022-01-01-preview\u0026resourceType=Namespace", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventhub/v1.1.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 17 Oct 2022 03:41:06 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.EventHub/locations/westus/operationStatus/namespacenbpcaTm?api-version=2022-01-01-preview\u0026resourceType=Namespace", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11958", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M5CH3_M5CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221017T034107Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.EventHub/locations/westus/operationStatus/namespacenbpcaTm?api-version=2022-01-01-preview\u0026resourceType=Namespace", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventhub/v1.1.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 17 Oct 2022 03:41:36 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.EventHub/locations/westus/operationStatus/namespacenbpcaTm?api-version=2022-01-01-preview\u0026resourceType=Namespace", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11957", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M11CH3_M11CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221017T034137Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.EventHub/locations/westus/operationStatus/namespacenbpcaTm?api-version=2022-01-01-preview\u0026resourceType=Namespace", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armeventhub/v1.1.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Date": "Mon, 17 Oct 2022 03:42:07 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11956", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M5CH3_M5CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221017T034208Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 17 Oct 2022 03:42:09 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ5NDktV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14986", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221017T034209Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": { - "recordingRandomSeed": "1665977667" - } -} diff --git a/sdk/resourcemanager/keyvault/armkeyvault/assets.json b/sdk/resourcemanager/keyvault/armkeyvault/assets.json new file mode 100644 index 000000000000..28d3ded619d7 --- /dev/null +++ b/sdk/resourcemanager/keyvault/armkeyvault/assets.json @@ -0,0 +1,6 @@ +{ + "AssetsRepo": "Azure/azure-sdk-assets", + "AssetsRepoPrefixPath": "go", + "TagPrefix": "go/resourcemanager/keyvault/armkeyvault", + "Tag": "go/resourcemanager/keyvault/armkeyvault_09f14119e4" +} diff --git a/sdk/resourcemanager/keyvault/armkeyvault/go.mod b/sdk/resourcemanager/keyvault/armkeyvault/go.mod index e114102521c0..10794b172667 100644 --- a/sdk/resourcemanager/keyvault/armkeyvault/go.mod +++ b/sdk/resourcemanager/keyvault/armkeyvault/go.mod @@ -3,27 +3,27 @@ module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/keyvault/armkeyvaul go 1.18 require ( - github.com/Azure/azure-sdk-for-go/sdk/azcore v1.0.0 - github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.0.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.0.0 + github.com/Azure/azure-sdk-for-go/sdk/azcore v1.4.0 + github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.2 github.com/stretchr/testify v1.7.0 ) require ( - github.com/Azure/azure-sdk-for-go/sdk/internal v1.0.0 // indirect + github.com/Azure/azure-sdk-for-go/sdk/internal v1.2.0 // indirect github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0 // indirect - github.com/AzureAD/microsoft-authentication-library-for-go v0.4.0 // indirect + github.com/AzureAD/microsoft-authentication-library-for-go v0.7.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/dnaeon/go-vcr v1.1.0 // indirect - github.com/golang-jwt/jwt v3.2.1+incompatible // indirect + github.com/golang-jwt/jwt/v4 v4.4.2 // 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 github.com/pmezard/go-difflib v1.0.0 // 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 + golang.org/x/net v0.7.0 // indirect + golang.org/x/sys v0.5.0 // indirect + golang.org/x/text v0.7.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect ) diff --git a/sdk/resourcemanager/keyvault/armkeyvault/go.sum b/sdk/resourcemanager/keyvault/armkeyvault/go.sum index 3bb750d4f3e7..b0f97586a165 100644 --- a/sdk/resourcemanager/keyvault/armkeyvault/go.sum +++ b/sdk/resourcemanager/keyvault/armkeyvault/go.sum @@ -1,29 +1,27 @@ -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/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.0.0 h1:lMW1lD/17LUA5z1XTURo7LcVG2ICBPlyMHjIUrcFZNQ= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.0.0/go.mod h1:ceIuwmxDWptoW3eCqSXlnPsZFKh4X+R38dWPv7GS9Vs= +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.0 h1:t/W5MYAuQy81cvM8VUNfRLzhtKpXhVUAN7Cd7KVbTyc= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.0/go.mod h1:NBanQUfSWiWn3QEpWDTCU0IjBECKOYvl2R8xdRtMtiM= +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/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.2 h1:mLY+pNLjCUeKhgnAJWAKhEUQM+RJQo2H1fuGSw1Ky1E= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.2/go.mod h1:FbdwsQ2EzwvXxOPcMFYO8ogEc9uMMIj3YkmCdXdAFmk= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0 h1:ECsQtyERDVz3NP3kvDOTLvbQhqWp/x9EsGKtb4ogUr8= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0/go.mod h1:s1tW/At+xHqjNFvWU4G0c0Qv33KOhvbGNj0RCTQDV8s= -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/AzureAD/microsoft-authentication-library-for-go v0.7.0 h1:VgSJlZH5u0k2qxSpqyghcFQKmvYckj46uymKK5XzkBM= +github.com/AzureAD/microsoft-authentication-library-for-go v0.7.0/go.mod h1:BDJ5qMFKx9DugEg3+uQSDCdbYPr5s9vBTrL9P8TpqOU= 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/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 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= +github.com/golang-jwt/jwt/v4 v4.4.2 h1:rcc4lwaZgFMCZ5jxF9ABolDcIHdBytAFgqFPbSJQAYs= +github.com/golang-jwt/jwt/v4 v4.4.2/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= 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= @@ -33,13 +31,12 @@ github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5Cc github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= 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-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/net v0.7.0 h1:rJrUqqhjsgNp7KqAIc25s9pZnjU7TUcSY7HcVZjdn1g= +golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= +golang.org/x/sys v0.5.0 h1:MUK/U/4lj1t1oPg0HfuXDN/Z1wv31ZJ/YcPiGccS4DU= +golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/text v0.7.0 h1:4BRB4x83lYWy72KwLD/qYDuTu7q9PjSagHvijDw7cLo= +golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= 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= diff --git a/sdk/resourcemanager/keyvault/armkeyvault/testdata/recordings/TestKeysClient.json b/sdk/resourcemanager/keyvault/armkeyvault/testdata/recordings/TestKeysClient.json deleted file mode 100644 index 8a7a465932e5..000000000000 --- a/sdk/resourcemanager/keyvault/armkeyvault/testdata/recordings/TestKeysClient.json +++ /dev/null @@ -1,471 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/1.1.0-beta.1 (go1.18; Windows_NT)" - }, - "RequestBody": { - "location": "eastus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 16 May 2022 12:35:38 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220516T123539Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "eastus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.KeyVault/vaults/go-test-vault-3?api-version=2021-11-01-preview", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "357", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armkeyvault/1.1.0-beta.1 (go1.18; Windows_NT)" - }, - "RequestBody": { - "location": "eastus", - "properties": { - "accessPolicies": [ - { - "objectId": "00000000-0000-0000-0000-000000000000", - "permissions": { - "certificates": [ - "get", - "list", - "create" - ], - "keys": [ - "get", - "list", - "create" - ], - "secrets": [ - "get", - "list" - ] - }, - "tenantId": "00000000-0000-0000-0000-000000000000" - } - ], - "sku": { - "family": "A", - "name": "standard" - }, - "tenantId": "00000000-0000-0000-0000-000000000000" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 16 May 2022 12:35:45 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-AspNet-Version": "4.0.30319", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-keyvault-service-version": "1.5.372.0", - "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220516T123545Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.KeyVault/vaults/go-test-vault-3", - "name": "go-test-vault-3", - "type": "Microsoft.KeyVault/vaults", - "location": "eastus", - "tags": {}, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-05-16T12:35:42.281Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-05-16T12:35:42.281Z" - }, - "properties": { - "sku": { - "family": "A", - "name": "standard" - }, - "tenantId": "00000000-0000-0000-0000-000000000000", - "accessPolicies": [ - { - "tenantId": "00000000-0000-0000-0000-000000000000", - "objectId": "00000000-0000-0000-0000-000000000000", - "permissions": { - "certificates": [ - "get", - "list", - "create" - ], - "keys": [ - "get", - "list", - "create" - ], - "secrets": [ - "get", - "list" - ] - } - } - ], - "enabledForDeployment": false, - "enableSoftDelete": true, - "vaultUri": "https://go-test-vault-3.vault.azure.net", - "provisioningState": "RegisteringDns", - "publicNetworkAccess": "Enabled" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.KeyVault/vaults/go-test-vault-3?api-version=2021-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armkeyvault/1.1.0-beta.1 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 16 May 2022 12:35:45 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-AspNet-Version": "4.0.30319", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-keyvault-service-version": "1.5.372.0", - "x-ms-ratelimit-remaining-subscription-reads": "11999", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220516T123546Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.KeyVault/vaults/go-test-vault-3", - "name": "go-test-vault-3", - "type": "Microsoft.KeyVault/vaults", - "location": "eastus", - "tags": {}, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-05-16T12:35:42.281Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-05-16T12:35:42.281Z" - }, - "properties": { - "sku": { - "family": "A", - "name": "standard" - }, - "tenantId": "00000000-0000-0000-0000-000000000000", - "accessPolicies": [ - { - "tenantId": "00000000-0000-0000-0000-000000000000", - "objectId": "00000000-0000-0000-0000-000000000000", - "permissions": { - "certificates": [ - "get", - "list", - "create" - ], - "keys": [ - "get", - "list", - "create" - ], - "secrets": [ - "get", - "list" - ] - } - } - ], - "enabledForDeployment": false, - "enableSoftDelete": true, - "vaultUri": "https://go-test-vault-3.vault.azure.net/", - "provisioningState": "RegisteringDns", - "publicNetworkAccess": "Enabled" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.KeyVault/vaults/go-test-vault-3?api-version=2021-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armkeyvault/1.1.0-beta.1 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 16 May 2022 12:36:15 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-AspNet-Version": "4.0.30319", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-keyvault-service-version": "1.5.372.0", - "x-ms-ratelimit-remaining-subscription-reads": "11998", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220516T123616Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.KeyVault/vaults/go-test-vault-3", - "name": "go-test-vault-3", - "type": "Microsoft.KeyVault/vaults", - "location": "eastus", - "tags": {}, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-05-16T12:35:42.281Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-05-16T12:35:42.281Z" - }, - "properties": { - "sku": { - "family": "A", - "name": "standard" - }, - "tenantId": "00000000-0000-0000-0000-000000000000", - "accessPolicies": [ - { - "tenantId": "00000000-0000-0000-0000-000000000000", - "objectId": "00000000-0000-0000-0000-000000000000", - "permissions": { - "certificates": [ - "get", - "list", - "create" - ], - "keys": [ - "get", - "list", - "create" - ], - "secrets": [ - "get", - "list" - ] - } - } - ], - "enabledForDeployment": false, - "enableSoftDelete": true, - "vaultUri": "https://go-test-vault-3.vault.azure.net/", - "provisioningState": "Succeeded", - "publicNetworkAccess": "Enabled" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.KeyVault/vaults/go-test-vault-3/keys/go-test-key?api-version=2021-11-01-preview", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "104", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armkeyvault/1.1.0-beta.1 (go1.18; Windows_NT)" - }, - "RequestBody": { - "properties": { - "attributes": { - "enabled": true - }, - "keyOps": [ - "encrypt", - "decrypt" - ], - "keySize": 2048, - "kty": "RSA" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 16 May 2022 12:36:19 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-AspNet-Version": "4.0.30319", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-keyvault-service-version": "1.5.372.0", - "x-ms-ratelimit-remaining-subscription-writes": "1197", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220516T123619Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.KeyVault/vaults/go-test-vault-3/keys/go-test-key", - "name": "go-test-key", - "type": "Microsoft.KeyVault/vaults/keys", - "location": "eastus", - "properties": { - "attributes": { - "enabled": true, - "created": 1652704579, - "updated": 1652704579, - "recoveryLevel": "Recoverable\u002BPurgeable" - }, - "kty": "RSA", - "keyOps": [ - "encrypt", - "decrypt" - ], - "keySize": 2048, - "keyUri": "https://go-test-vault-3.vault.azure.net/keys/go-test-key", - "keyUriWithVersion": "https://go-test-vault-3.vault.azure.net/keys/go-test-key/74b8690a8be2446fab2ee78612a38252" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.KeyVault/vaults/go-test-vault-3/keys/go-test-key?api-version=2021-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armkeyvault/1.1.0-beta.1 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 16 May 2022 12:36:19 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-AspNet-Version": "4.0.30319", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-keyvault-service-version": "1.5.372.0", - "x-ms-ratelimit-remaining-subscription-reads": "11997", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220516T123619Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.KeyVault/vaults/go-test-vault-3/keys/go-test-key", - "name": "go-test-key", - "type": "Microsoft.KeyVault/vaults/keys", - "location": "eastus", - "properties": { - "attributes": { - "enabled": true, - "created": 1652704579, - "updated": 1652704579, - "recoveryLevel": "Recoverable\u002BPurgeable" - }, - "kty": "RSA", - "keyOps": [ - "encrypt", - "decrypt" - ], - "keySize": 2048, - "keyUri": "https://go-test-vault-3.vault.azure.net/keys/go-test-key", - "keyUriWithVersion": "https://go-test-vault-3.vault.azure.net/keys/go-test-key/74b8690a8be2446fab2ee78612a38252" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/1.1.0-beta.1 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 16 May 2022 12:36:21 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ3ODMtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14999", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220516T123621Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/resourcemanager/keyvault/armkeyvault/testdata/recordings/TestSecretsClient.json b/sdk/resourcemanager/keyvault/armkeyvault/testdata/recordings/TestSecretsClient.json deleted file mode 100644 index d994dff75fb7..000000000000 --- a/sdk/resourcemanager/keyvault/armkeyvault/testdata/recordings/TestSecretsClient.json +++ /dev/null @@ -1,514 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/1.1.0-beta.1 (go1.18; Windows_NT)" - }, - "RequestBody": { - "location": "eastus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 16 May 2022 12:36:23 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1196", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220516T123624Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "eastus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.KeyVault/vaults/go-test-vault-2?api-version=2021-11-01-preview", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "357", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armkeyvault/1.1.0-beta.1 (go1.18; Windows_NT)" - }, - "RequestBody": { - "location": "eastus", - "properties": { - "accessPolicies": [ - { - "objectId": "00000000-0000-0000-0000-000000000000", - "permissions": { - "certificates": [ - "get", - "list", - "create" - ], - "keys": [ - "get", - "list", - "create" - ], - "secrets": [ - "get", - "list" - ] - }, - "tenantId": "00000000-0000-0000-0000-000000000000" - } - ], - "sku": { - "family": "A", - "name": "standard" - }, - "tenantId": "00000000-0000-0000-0000-000000000000" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 16 May 2022 12:36:28 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-AspNet-Version": "4.0.30319", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-keyvault-service-version": "1.5.372.0", - "x-ms-ratelimit-remaining-subscription-writes": "1195", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220516T123628Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.KeyVault/vaults/go-test-vault-2", - "name": "go-test-vault-2", - "type": "Microsoft.KeyVault/vaults", - "location": "eastus", - "tags": {}, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-05-16T12:36:26.109Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-05-16T12:36:26.109Z" - }, - "properties": { - "sku": { - "family": "A", - "name": "standard" - }, - "tenantId": "00000000-0000-0000-0000-000000000000", - "accessPolicies": [ - { - "tenantId": "00000000-0000-0000-0000-000000000000", - "objectId": "00000000-0000-0000-0000-000000000000", - "permissions": { - "certificates": [ - "get", - "list", - "create" - ], - "keys": [ - "get", - "list", - "create" - ], - "secrets": [ - "get", - "list" - ] - } - } - ], - "enabledForDeployment": false, - "enableSoftDelete": true, - "vaultUri": "https://go-test-vault-2.vault.azure.net", - "provisioningState": "RegisteringDns", - "publicNetworkAccess": "Enabled" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.KeyVault/vaults/go-test-vault-2?api-version=2021-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armkeyvault/1.1.0-beta.1 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 16 May 2022 12:36:28 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-AspNet-Version": "4.0.30319", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-keyvault-service-version": "1.5.372.0", - "x-ms-ratelimit-remaining-subscription-reads": "11996", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220516T123629Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.KeyVault/vaults/go-test-vault-2", - "name": "go-test-vault-2", - "type": "Microsoft.KeyVault/vaults", - "location": "eastus", - "tags": {}, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-05-16T12:36:26.109Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-05-16T12:36:26.109Z" - }, - "properties": { - "sku": { - "family": "A", - "name": "standard" - }, - "tenantId": "00000000-0000-0000-0000-000000000000", - "accessPolicies": [ - { - "tenantId": "00000000-0000-0000-0000-000000000000", - "objectId": "00000000-0000-0000-0000-000000000000", - "permissions": { - "certificates": [ - "get", - "list", - "create" - ], - "keys": [ - "get", - "list", - "create" - ], - "secrets": [ - "get", - "list" - ] - } - } - ], - "enabledForDeployment": false, - "enableSoftDelete": true, - "vaultUri": "https://go-test-vault-2.vault.azure.net/", - "provisioningState": "RegisteringDns", - "publicNetworkAccess": "Enabled" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.KeyVault/vaults/go-test-vault-2?api-version=2021-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armkeyvault/1.1.0-beta.1 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 16 May 2022 12:36:59 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-AspNet-Version": "4.0.30319", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-keyvault-service-version": "1.5.372.0", - "x-ms-ratelimit-remaining-subscription-reads": "11995", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220516T123659Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.KeyVault/vaults/go-test-vault-2", - "name": "go-test-vault-2", - "type": "Microsoft.KeyVault/vaults", - "location": "eastus", - "tags": {}, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-05-16T12:36:26.109Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-05-16T12:36:26.109Z" - }, - "properties": { - "sku": { - "family": "A", - "name": "standard" - }, - "tenantId": "00000000-0000-0000-0000-000000000000", - "accessPolicies": [ - { - "tenantId": "00000000-0000-0000-0000-000000000000", - "objectId": "00000000-0000-0000-0000-000000000000", - "permissions": { - "certificates": [ - "get", - "list", - "create" - ], - "keys": [ - "get", - "list", - "create" - ], - "secrets": [ - "get", - "list" - ] - } - } - ], - "enabledForDeployment": false, - "enableSoftDelete": true, - "vaultUri": "https://go-test-vault-2.vault.azure.net/", - "provisioningState": "Succeeded", - "publicNetworkAccess": "Enabled" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.KeyVault/vaults/go-test-vault-2/secrets/go-test-secret2?api-version=2021-11-01-preview", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "76", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armkeyvault/1.1.0-beta.1 (go1.18; Windows_NT)" - }, - "RequestBody": { - "properties": { - "attributes": { - "enabled": true - }, - "value": "sample-secret-value" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 16 May 2022 12:37:01 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-AspNet-Version": "4.0.30319", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-keyvault-service-version": "1.5.372.0", - "x-ms-ratelimit-remaining-subscription-writes": "1194", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220516T123701Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.KeyVault/vaults/go-test-vault-2/secrets/go-test-secret2", - "name": "go-test-secret2", - "type": "Microsoft.KeyVault/vaults/secrets", - "location": "eastus", - "properties": { - "attributes": { - "enabled": true, - "created": 1652704621, - "updated": 1652704621 - }, - "secretUri": "https://go-test-vault-2.vault.azure.net/secrets/go-test-secret2", - "secretUriWithVersion": "https://go-test-vault-2.vault.azure.net/secrets/go-test-secret2/8f5982387449430eb651ac08966ddea0" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.KeyVault/vaults/go-test-vault-2/secrets/go-test-secret2?api-version=2021-11-01-preview", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "81", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armkeyvault/1.1.0-beta.1 (go1.18; Windows_NT)" - }, - "RequestBody": { - "properties": { - "value": "sample-secret-value-update" - }, - "tags": { - "test": "recording" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 16 May 2022 12:37:02 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-AspNet-Version": "4.0.30319", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-keyvault-service-version": "1.5.372.0", - "x-ms-ratelimit-remaining-subscription-writes": "1193", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220516T123702Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.KeyVault/vaults/go-test-vault-2/secrets/go-test-secret2", - "name": "go-test-secret2", - "type": "Microsoft.KeyVault/vaults/secrets", - "location": "eastus", - "tags": { - "test": "recording" - }, - "properties": { - "attributes": { - "enabled": true, - "created": 1652704622, - "updated": 1652704622 - }, - "secretUri": "https://go-test-vault-2.vault.azure.net/secrets/go-test-secret2", - "secretUriWithVersion": "https://go-test-vault-2.vault.azure.net/secrets/go-test-secret2/1c0ec48253034465ac58b4384e9ae690" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.KeyVault/vaults/go-test-vault-2/secrets/go-test-secret2?api-version=2021-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armkeyvault/1.1.0-beta.1 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 16 May 2022 12:37:02 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-AspNet-Version": "4.0.30319", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-keyvault-service-version": "1.5.372.0", - "x-ms-ratelimit-remaining-subscription-reads": "11994", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220516T123703Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.KeyVault/vaults/go-test-vault-2/secrets/go-test-secret2", - "name": "go-test-secret2", - "type": "Microsoft.KeyVault/vaults/secrets", - "location": "eastus", - "tags": { - "test": "recording" - }, - "properties": { - "attributes": { - "enabled": true, - "created": 1652704622, - "updated": 1652704622 - }, - "secretUri": "https://go-test-vault-2.vault.azure.net/secrets/go-test-secret2", - "secretUriWithVersion": "https://go-test-vault-2.vault.azure.net/secrets/go-test-secret2/1c0ec48253034465ac58b4384e9ae690" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/1.1.0-beta.1 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 16 May 2022 12:37:04 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ0NTQtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14998", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220516T123705Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/resourcemanager/keyvault/armkeyvault/testdata/recordings/TestVaultsClient.json b/sdk/resourcemanager/keyvault/armkeyvault/testdata/recordings/TestVaultsClient.json deleted file mode 100644 index 966c44ada4ee..000000000000 --- a/sdk/resourcemanager/keyvault/armkeyvault/testdata/recordings/TestVaultsClient.json +++ /dev/null @@ -1,1034 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/1.1.0-beta.1 (go1.18; Windows_NT)" - }, - "RequestBody": { - "location": "eastus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 16 May 2022 12:37:07 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1192", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220516T123707Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "eastus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.KeyVault/vaults/go-test-vault-1?api-version=2021-11-01-preview", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "357", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armkeyvault/1.1.0-beta.1 (go1.18; Windows_NT)" - }, - "RequestBody": { - "location": "eastus", - "properties": { - "accessPolicies": [ - { - "objectId": "00000000-0000-0000-0000-000000000000", - "permissions": { - "certificates": [ - "get", - "list", - "create" - ], - "keys": [ - "get", - "list", - "create" - ], - "secrets": [ - "get", - "list" - ] - }, - "tenantId": "00000000-0000-0000-0000-000000000000" - } - ], - "sku": { - "family": "A", - "name": "standard" - }, - "tenantId": "00000000-0000-0000-0000-000000000000" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 16 May 2022 12:37:12 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-AspNet-Version": "4.0.30319", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-keyvault-service-version": "1.5.372.0", - "x-ms-ratelimit-remaining-subscription-writes": "1191", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220516T123713Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.KeyVault/vaults/go-test-vault-1", - "name": "go-test-vault-1", - "type": "Microsoft.KeyVault/vaults", - "location": "eastus", - "tags": {}, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-05-16T12:37:09.891Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-05-16T12:37:09.891Z" - }, - "properties": { - "sku": { - "family": "A", - "name": "standard" - }, - "tenantId": "00000000-0000-0000-0000-000000000000", - "accessPolicies": [ - { - "tenantId": "00000000-0000-0000-0000-000000000000", - "objectId": "00000000-0000-0000-0000-000000000000", - "permissions": { - "certificates": [ - "get", - "list", - "create" - ], - "keys": [ - "get", - "list", - "create" - ], - "secrets": [ - "get", - "list" - ] - } - } - ], - "enabledForDeployment": false, - "enableSoftDelete": true, - "vaultUri": "https://go-test-vault-1.vault.azure.net", - "provisioningState": "RegisteringDns", - "publicNetworkAccess": "Enabled" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.KeyVault/vaults/go-test-vault-1?api-version=2021-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armkeyvault/1.1.0-beta.1 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 16 May 2022 12:37:13 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-AspNet-Version": "4.0.30319", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-keyvault-service-version": "1.5.372.0", - "x-ms-ratelimit-remaining-subscription-reads": "11993", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220516T123713Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.KeyVault/vaults/go-test-vault-1", - "name": "go-test-vault-1", - "type": "Microsoft.KeyVault/vaults", - "location": "eastus", - "tags": {}, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-05-16T12:37:09.891Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-05-16T12:37:09.891Z" - }, - "properties": { - "sku": { - "family": "A", - "name": "standard" - }, - "tenantId": "00000000-0000-0000-0000-000000000000", - "accessPolicies": [ - { - "tenantId": "00000000-0000-0000-0000-000000000000", - "objectId": "00000000-0000-0000-0000-000000000000", - "permissions": { - "certificates": [ - "get", - "list", - "create" - ], - "keys": [ - "get", - "list", - "create" - ], - "secrets": [ - "get", - "list" - ] - } - } - ], - "enabledForDeployment": false, - "enableSoftDelete": true, - "vaultUri": "https://go-test-vault-1.vault.azure.net/", - "provisioningState": "RegisteringDns", - "publicNetworkAccess": "Enabled" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.KeyVault/vaults/go-test-vault-1?api-version=2021-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armkeyvault/1.1.0-beta.1 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 16 May 2022 12:37:43 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-AspNet-Version": "4.0.30319", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-keyvault-service-version": "1.5.372.0", - "x-ms-ratelimit-remaining-subscription-reads": "11992", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220516T123744Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.KeyVault/vaults/go-test-vault-1", - "name": "go-test-vault-1", - "type": "Microsoft.KeyVault/vaults", - "location": "eastus", - "tags": {}, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-05-16T12:37:09.891Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-05-16T12:37:09.891Z" - }, - "properties": { - "sku": { - "family": "A", - "name": "standard" - }, - "tenantId": "00000000-0000-0000-0000-000000000000", - "accessPolicies": [ - { - "tenantId": "00000000-0000-0000-0000-000000000000", - "objectId": "00000000-0000-0000-0000-000000000000", - "permissions": { - "certificates": [ - "get", - "list", - "create" - ], - "keys": [ - "get", - "list", - "create" - ], - "secrets": [ - "get", - "list" - ] - } - } - ], - "enabledForDeployment": false, - "enableSoftDelete": true, - "vaultUri": "https://go-test-vault-1.vault.azure.net/", - "provisioningState": "Succeeded", - "publicNetworkAccess": "Enabled" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/checkNameAvailability?api-version=2021-11-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - ":method": "POST", - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "61", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armkeyvault/1.1.0-beta.1 (go1.18; Windows_NT)" - }, - "RequestBody": { - "name": "go-test-vault-1", - "type": "Microsoft.KeyVault/vaults" - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 16 May 2022 12:37:45 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-AspNet-Version": "4.0.30319", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-keyvault-service-version": "1.5.372.0", - "x-ms-ratelimit-remaining-subscription-reads": "11991", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220516T123746Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "nameAvailable": false, - "reason": "AlreadyExists", - "message": "The vault name \u0027go-test-vault-1\u0027 is already in use. Vault names are globaly unique so it is possible that the name is already taken. If you are sure that the vault name was not taken then it is possible that a vault with the same name was recently deleted but not purged after being placed in a recoverable state. If the vault is in a recoverable state then the vault will need to be purged before reusing the name. For more information on soft delete and purging a vault follow this link https://go.microsoft.com/fwlink/?linkid=2147740." - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.KeyVault/vaults/go-test-vault-1?api-version=2021-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armkeyvault/1.1.0-beta.1 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 16 May 2022 12:37:45 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-AspNet-Version": "4.0.30319", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-keyvault-service-version": "1.5.372.0", - "x-ms-ratelimit-remaining-subscription-reads": "11990", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220516T123746Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.KeyVault/vaults/go-test-vault-1", - "name": "go-test-vault-1", - "type": "Microsoft.KeyVault/vaults", - "location": "eastus", - "tags": {}, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-05-16T12:37:09.891Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-05-16T12:37:09.891Z" - }, - "properties": { - "sku": { - "family": "A", - "name": "standard" - }, - "tenantId": "00000000-0000-0000-0000-000000000000", - "accessPolicies": [ - { - "tenantId": "00000000-0000-0000-0000-000000000000", - "objectId": "00000000-0000-0000-0000-000000000000", - "permissions": { - "certificates": [ - "get", - "list", - "create" - ], - "keys": [ - "get", - "list", - "create" - ], - "secrets": [ - "get", - "list" - ] - } - } - ], - "enabledForDeployment": false, - "enableSoftDelete": true, - "vaultUri": "https://go-test-vault-1.vault.azure.net/", - "provisioningState": "Succeeded", - "publicNetworkAccess": "Enabled" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.KeyVault/vaults/go-test-vault-1?api-version=2021-11-01-preview", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "29", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armkeyvault/1.1.0-beta.1 (go1.18; Windows_NT)" - }, - "RequestBody": { - "tags": { - "test": "recording" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 16 May 2022 12:37:50 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-AspNet-Version": "4.0.30319", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-keyvault-service-version": "1.5.372.0", - "x-ms-ratelimit-remaining-subscription-writes": "1190", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220516T123750Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.KeyVault/vaults/go-test-vault-1", - "name": "go-test-vault-1", - "type": "Microsoft.KeyVault/vaults", - "location": "eastus", - "tags": { - "test": "recording" - }, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-05-16T12:37:09.891Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-05-16T12:37:47.735Z" - }, - "properties": { - "sku": { - "family": "A", - "name": "standard" - }, - "tenantId": "00000000-0000-0000-0000-000000000000", - "accessPolicies": [ - { - "tenantId": "00000000-0000-0000-0000-000000000000", - "objectId": "00000000-0000-0000-0000-000000000000", - "permissions": { - "certificates": [ - "get", - "list", - "create" - ], - "keys": [ - "get", - "list", - "create" - ], - "secrets": [ - "get", - "list" - ] - } - } - ], - "enabledForDeployment": false, - "enableSoftDelete": true, - "vaultUri": "https://go-test-vault-1.vault.azure.net/", - "provisioningState": "Succeeded", - "publicNetworkAccess": "Enabled" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.KeyVault/vaults/go-test-vault-1?api-version=2021-11-01-preview", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armkeyvault/1.1.0-beta.1 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 16 May 2022 12:37:55 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-AspNet-Version": "4.0.30319", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-keyvault-service-version": "1.5.372.0", - "x-ms-ratelimit-remaining-subscription-deletes": "14997", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220516T123756Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/eastus/deletedVaults/go-test-vault-1?api-version=2021-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armkeyvault/1.1.0-beta.1 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 16 May 2022 12:37:56 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-AspNet-Version": "4.0.30319", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-keyvault-service-version": "1.5.372.0", - "x-ms-ratelimit-remaining-subscription-reads": "11989", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220516T123756Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/eastus/deletedVaults/go-test-vault-1", - "name": "go-test-vault-1", - "type": "Microsoft.KeyVault/deletedVaults", - "properties": { - "vaultId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.KeyVault/vaults/go-test-vault-1", - "location": "eastus", - "tags": { - "test": "recording" - }, - "deletionDate": "2022-05-16T12:37:50Z", - "scheduledPurgeDate": "2022-08-14T12:37:50Z" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/eastus/deletedVaults/go-test-vault-1/purge?api-version=2021-11-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - ":method": "POST", - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armkeyvault/1.1.0-beta.1 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 16 May 2022 12:37:56 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/eastus/operationResults/VVR8MDYzNzg4MzAxNDc3NjE5MjY3NXw2RjhDODJDRTQwNTI0OTgyQjFBNUJFMUM5OUNCNTFGNA?api-version=2021-11-01-preview", - "Pragma": "no-cache", - "Retry-After": "5", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-AspNet-Version": "4.0.30319", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-keyvault-service-version": "1.5.372.0", - "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220516T123756Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/eastus/operationResults/VVR8MDYzNzg4MzAxNDc3NjE5MjY3NXw2RjhDODJDRTQwNTI0OTgyQjFBNUJFMUM5OUNCNTFGNA?api-version=2021-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armkeyvault/1.1.0-beta.1 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "64", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 16 May 2022 12:38:03 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/eastus/operationResults/VVR8MDYzNzg4MzAxNDc3NjE5MjY3NXw2RjhDODJDRTQwNTI0OTgyQjFBNUJFMUM5OUNCNTFGNA?api-version=2021-11-01-preview", - "Pragma": "no-cache", - "Retry-After": "5", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-AspNet-Version": "4.0.30319", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-keyvault-service-version": "1.5.372.0", - "x-ms-ratelimit-remaining-subscription-reads": "11988", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220516T123803Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "createdDateTime": "2022-05-16 12:37:56Z", - "status": "NotStarted" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/eastus/operationResults/VVR8MDYzNzg4MzAxNDc3NjE5MjY3NXw2RjhDODJDRTQwNTI0OTgyQjFBNUJFMUM5OUNCNTFGNA?api-version=2021-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armkeyvault/1.1.0-beta.1 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "64", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 16 May 2022 12:38:08 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/eastus/operationResults/VVR8MDYzNzg4MzAxNDc3NjE5MjY3NXw2RjhDODJDRTQwNTI0OTgyQjFBNUJFMUM5OUNCNTFGNA?api-version=2021-11-01-preview", - "Pragma": "no-cache", - "Retry-After": "5", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-AspNet-Version": "4.0.30319", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-keyvault-service-version": "1.5.372.0", - "x-ms-ratelimit-remaining-subscription-reads": "11987", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220516T123808Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "createdDateTime": "2022-05-16 12:37:56Z", - "status": "NotStarted" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/eastus/operationResults/VVR8MDYzNzg4MzAxNDc3NjE5MjY3NXw2RjhDODJDRTQwNTI0OTgyQjFBNUJFMUM5OUNCNTFGNA?api-version=2021-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armkeyvault/1.1.0-beta.1 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "64", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 16 May 2022 12:38:14 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/eastus/operationResults/VVR8MDYzNzg4MzAxNDc3NjE5MjY3NXw2RjhDODJDRTQwNTI0OTgyQjFBNUJFMUM5OUNCNTFGNA?api-version=2021-11-01-preview", - "Pragma": "no-cache", - "Retry-After": "5", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-AspNet-Version": "4.0.30319", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-keyvault-service-version": "1.5.372.0", - "x-ms-ratelimit-remaining-subscription-reads": "11986", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220516T123815Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "createdDateTime": "2022-05-16 12:37:56Z", - "status": "NotStarted" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/eastus/operationResults/VVR8MDYzNzg4MzAxNDc3NjE5MjY3NXw2RjhDODJDRTQwNTI0OTgyQjFBNUJFMUM5OUNCNTFGNA?api-version=2021-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armkeyvault/1.1.0-beta.1 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "64", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 16 May 2022 12:38:21 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/eastus/operationResults/VVR8MDYzNzg4MzAxNDc3NjE5MjY3NXw2RjhDODJDRTQwNTI0OTgyQjFBNUJFMUM5OUNCNTFGNA?api-version=2021-11-01-preview", - "Pragma": "no-cache", - "Retry-After": "5", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-AspNet-Version": "4.0.30319", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-keyvault-service-version": "1.5.372.0", - "x-ms-ratelimit-remaining-subscription-reads": "11985", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220516T123821Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "createdDateTime": "2022-05-16 12:37:56Z", - "status": "NotStarted" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/eastus/operationResults/VVR8MDYzNzg4MzAxNDc3NjE5MjY3NXw2RjhDODJDRTQwNTI0OTgyQjFBNUJFMUM5OUNCNTFGNA?api-version=2021-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armkeyvault/1.1.0-beta.1 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "64", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 16 May 2022 12:38:27 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/eastus/operationResults/VVR8MDYzNzg4MzAxNDc3NjE5MjY3NXw2RjhDODJDRTQwNTI0OTgyQjFBNUJFMUM5OUNCNTFGNA?api-version=2021-11-01-preview", - "Pragma": "no-cache", - "Retry-After": "5", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-AspNet-Version": "4.0.30319", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-keyvault-service-version": "1.5.372.0", - "x-ms-ratelimit-remaining-subscription-reads": "11984", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220516T123827Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "createdDateTime": "2022-05-16 12:37:56Z", - "status": "NotStarted" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/eastus/operationResults/VVR8MDYzNzg4MzAxNDc3NjE5MjY3NXw2RjhDODJDRTQwNTI0OTgyQjFBNUJFMUM5OUNCNTFGNA?api-version=2021-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armkeyvault/1.1.0-beta.1 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "64", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 16 May 2022 12:38:32 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/eastus/operationResults/VVR8MDYzNzg4MzAxNDc3NjE5MjY3NXw2RjhDODJDRTQwNTI0OTgyQjFBNUJFMUM5OUNCNTFGNA?api-version=2021-11-01-preview", - "Pragma": "no-cache", - "Retry-After": "5", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-AspNet-Version": "4.0.30319", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-keyvault-service-version": "1.5.372.0", - "x-ms-ratelimit-remaining-subscription-reads": "11983", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220516T123833Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "createdDateTime": "2022-05-16 12:37:56Z", - "status": "NotStarted" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/eastus/operationResults/VVR8MDYzNzg4MzAxNDc3NjE5MjY3NXw2RjhDODJDRTQwNTI0OTgyQjFBNUJFMUM5OUNCNTFGNA?api-version=2021-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armkeyvault/1.1.0-beta.1 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "64", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 16 May 2022 12:38:39 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/eastus/operationResults/VVR8MDYzNzg4MzAxNDc3NjE5MjY3NXw2RjhDODJDRTQwNTI0OTgyQjFBNUJFMUM5OUNCNTFGNA?api-version=2021-11-01-preview", - "Pragma": "no-cache", - "Retry-After": "5", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-AspNet-Version": "4.0.30319", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-keyvault-service-version": "1.5.372.0", - "x-ms-ratelimit-remaining-subscription-reads": "11982", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220516T123839Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "createdDateTime": "2022-05-16 12:37:56Z", - "status": "NotStarted" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/eastus/operationResults/VVR8MDYzNzg4MzAxNDc3NjE5MjY3NXw2RjhDODJDRTQwNTI0OTgyQjFBNUJFMUM5OUNCNTFGNA?api-version=2021-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armkeyvault/1.1.0-beta.1 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "64", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 16 May 2022 12:38:44 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/eastus/operationResults/VVR8MDYzNzg4MzAxNDc3NjE5MjY3NXw2RjhDODJDRTQwNTI0OTgyQjFBNUJFMUM5OUNCNTFGNA?api-version=2021-11-01-preview", - "Pragma": "no-cache", - "Retry-After": "5", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-AspNet-Version": "4.0.30319", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-keyvault-service-version": "1.5.372.0", - "x-ms-ratelimit-remaining-subscription-reads": "11981", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220516T123845Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "createdDateTime": "2022-05-16 12:37:56Z", - "status": "NotStarted" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/eastus/operationResults/VVR8MDYzNzg4MzAxNDc3NjE5MjY3NXw2RjhDODJDRTQwNTI0OTgyQjFBNUJFMUM5OUNCNTFGNA?api-version=2021-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armkeyvault/1.1.0-beta.1 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "64", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 16 May 2022 12:38:49 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/eastus/operationResults/VVR8MDYzNzg4MzAxNDc3NjE5MjY3NXw2RjhDODJDRTQwNTI0OTgyQjFBNUJFMUM5OUNCNTFGNA?api-version=2021-11-01-preview", - "Pragma": "no-cache", - "Retry-After": "5", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-AspNet-Version": "4.0.30319", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-keyvault-service-version": "1.5.372.0", - "x-ms-ratelimit-remaining-subscription-reads": "11980", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220516T123850Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "createdDateTime": "2022-05-16 12:37:56Z", - "status": "NotStarted" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.KeyVault/locations/eastus/operationResults/VVR8MDYzNzg4MzAxNDc3NjE5MjY3NXw2RjhDODJDRTQwNTI0OTgyQjFBNUJFMUM5OUNCNTFGNA?api-version=2021-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armkeyvault/1.1.0-beta.1 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 16 May 2022 12:38:54 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-AspNet-Version": "4.0.30319", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-keyvault-service-version": "1.5.372.0", - "x-ms-ratelimit-remaining-subscription-reads": "11979", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220516T123855Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "createdDateTime": "2022-05-16 12:37:56Z", - "lastActionDateTime": "2022-05-16 12:38:51Z", - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/1.1.0-beta.1 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 16 May 2022 12:38:58 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ0Ni1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14996", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220516T123858Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/resourcemanager/monitor/armmonitor/actiongroups_live_test.go b/sdk/resourcemanager/monitor/armmonitor/actiongroups_live_test.go new file mode 100644 index 000000000000..155eb2fde4ca --- /dev/null +++ b/sdk/resourcemanager/monitor/armmonitor/actiongroups_live_test.go @@ -0,0 +1,122 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armmonitor_test + +import ( + "context" + "fmt" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/monitor/armmonitor" + "github.com/stretchr/testify/suite" +) + +type ActiongroupsTestSuite struct { + suite.Suite + + ctx context.Context + cred azcore.TokenCredential + options *arm.ClientOptions + actionGroupName string + location string + resourceGroupName string + subscriptionId string +} + +func (testsuite *ActiongroupsTestSuite) SetupSuite() { + testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/monitor/armmonitor/testdata") + testsuite.ctx = context.Background() + testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) + testsuite.actionGroupName = testutil.GenerateAlphaNumericID(testsuite.T(), "actiongroupna", 6) + testsuite.location = testutil.GetEnv("LOCATION", "eastus") + testsuite.resourceGroupName = testutil.GetEnv("RESOURCE_GROUP_NAME", "scenarioTestTempGroup") + testsuite.subscriptionId = testutil.GetEnv("AZURE_SUBSCRIPTION_ID", "00000000-0000-0000-0000-000000000000") + + resourceGroup, _, err := testutil.CreateResourceGroup(testsuite.ctx, testsuite.subscriptionId, testsuite.cred, testsuite.options, testsuite.location) + testsuite.Require().NoError(err) + testsuite.resourceGroupName = *resourceGroup.Name +} + +func (testsuite *ActiongroupsTestSuite) TearDownSuite() { + _, err := testutil.DeleteResourceGroup(testsuite.ctx, testsuite.subscriptionId, testsuite.cred, testsuite.options, testsuite.resourceGroupName) + testsuite.Require().NoError(err) + testutil.StopRecording(testsuite.T()) +} + +func TestActiongroupsTestSuite(t *testing.T) { + suite.Run(t, new(ActiongroupsTestSuite)) +} + +// Microsoft.Insights/actionGroups +func (testsuite *ActiongroupsTestSuite) TestActiongroups() { + var err error + // From step ActionGroups_Create + fmt.Println("Call operation: ActionGroups_CreateOrUpdate") + actionGroupsClient, err := armmonitor.NewActionGroupsClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) + testsuite.Require().NoError(err) + _, err = actionGroupsClient.CreateOrUpdate(testsuite.ctx, testsuite.resourceGroupName, testsuite.actionGroupName, armmonitor.ActionGroupResource{ + Location: to.Ptr("Global"), + Properties: &armmonitor.ActionGroup{ + EmailReceivers: []*armmonitor.EmailReceiver{ + { + Name: to.Ptr("John Doe's email"), + EmailAddress: to.Ptr("johndoe@eamil.com"), + UseCommonAlertSchema: to.Ptr(false), + }}, + Enabled: to.Ptr(true), + GroupShortName: to.Ptr("sample"), + }, + }, nil) + testsuite.Require().NoError(err) + + // From step ActionGroups_Get + fmt.Println("Call operation: ActionGroups_Get") + _, err = actionGroupsClient.Get(testsuite.ctx, testsuite.resourceGroupName, testsuite.actionGroupName, nil) + testsuite.Require().NoError(err) + + // From step ActionGroups_Update + fmt.Println("Call operation: ActionGroups_Update") + _, err = actionGroupsClient.Update(testsuite.ctx, testsuite.resourceGroupName, testsuite.actionGroupName, armmonitor.ActionGroupPatchBody{ + Properties: &armmonitor.ActionGroupPatch{ + Enabled: to.Ptr(false), + }, + Tags: map[string]*string{ + "key1": to.Ptr("value1"), + "key2": to.Ptr("value2"), + }, + }, nil) + testsuite.Require().NoError(err) + + // From step ActionGroups_ListBySubscriptionId + fmt.Println("Call operation: ActionGroups_ListBySubscriptionId") + actionGroupsClientNewListBySubscriptionIDPager := actionGroupsClient.NewListBySubscriptionIDPager(nil) + for actionGroupsClientNewListBySubscriptionIDPager.More() { + _, err := actionGroupsClientNewListBySubscriptionIDPager.NextPage(testsuite.ctx) + testsuite.Require().NoError(err) + break + } + + // From step ActionGroups_ListByResourceGroup + fmt.Println("Call operation: ActionGroups_ListByResourceGroup") + actionGroupsClientNewListByResourceGroupPager := actionGroupsClient.NewListByResourceGroupPager(testsuite.resourceGroupName, nil) + for actionGroupsClientNewListByResourceGroupPager.More() { + _, err := actionGroupsClientNewListByResourceGroupPager.NextPage(testsuite.ctx) + testsuite.Require().NoError(err) + break + } + + // From step ActionGroups_Delete + fmt.Println("Call operation: ActionGroups_Delete") + _, err = actionGroupsClient.Delete(testsuite.ctx, testsuite.resourceGroupName, testsuite.actionGroupName, nil) + testsuite.Require().NoError(err) +} diff --git a/sdk/resourcemanager/monitor/armmonitor/activitylogalerts_live_test.go b/sdk/resourcemanager/monitor/armmonitor/activitylogalerts_live_test.go new file mode 100644 index 000000000000..e3f53584e7c1 --- /dev/null +++ b/sdk/resourcemanager/monitor/armmonitor/activitylogalerts_live_test.go @@ -0,0 +1,127 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armmonitor_test + +import ( + "context" + "fmt" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/monitor/armmonitor" + "github.com/stretchr/testify/suite" +) + +type ActivitylogalertsTestSuite struct { + suite.Suite + + ctx context.Context + cred azcore.TokenCredential + options *arm.ClientOptions + activityLogAlertName string + location string + resourceGroupName string + subscriptionId string +} + +func (testsuite *ActivitylogalertsTestSuite) SetupSuite() { + testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/monitor/armmonitor/testdata") + testsuite.ctx = context.Background() + testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) + testsuite.activityLogAlertName = testutil.GenerateAlphaNumericID(testsuite.T(), "activitylogalertna", 6) + testsuite.location = testutil.GetEnv("LOCATION", "eastus") + testsuite.resourceGroupName = testutil.GetEnv("RESOURCE_GROUP_NAME", "scenarioTestTempGroup") + testsuite.subscriptionId = testutil.GetEnv("AZURE_SUBSCRIPTION_ID", "00000000-0000-0000-0000-000000000000") + + resourceGroup, _, err := testutil.CreateResourceGroup(testsuite.ctx, testsuite.subscriptionId, testsuite.cred, testsuite.options, testsuite.location) + testsuite.Require().NoError(err) + testsuite.resourceGroupName = *resourceGroup.Name +} + +func (testsuite *ActivitylogalertsTestSuite) TearDownSuite() { + _, err := testutil.DeleteResourceGroup(testsuite.ctx, testsuite.subscriptionId, testsuite.cred, testsuite.options, testsuite.resourceGroupName) + testsuite.Require().NoError(err) + testutil.StopRecording(testsuite.T()) +} + +func TestActivitylogalertsTestSuite(t *testing.T) { + suite.Run(t, new(ActivitylogalertsTestSuite)) +} + +// Microsoft.Insights/activityLogAlerts +func (testsuite *ActivitylogalertsTestSuite) TestActivitylogalert() { + var err error + // From step ActivityLogAlerts_Create + fmt.Println("Call operation: ActivityLogAlerts_CreateOrUpdate") + activityLogAlertsClient, err := armmonitor.NewActivityLogAlertsClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) + testsuite.Require().NoError(err) + _, err = activityLogAlertsClient.CreateOrUpdate(testsuite.ctx, testsuite.resourceGroupName, testsuite.activityLogAlertName, armmonitor.ActivityLogAlertResource{ + Location: to.Ptr("Global"), + Properties: &armmonitor.AlertRuleProperties{ + Condition: &armmonitor.AlertRuleAllOfCondition{ + AllOf: []*armmonitor.AlertRuleAnyOfOrLeafCondition{ + { + Equals: to.Ptr("Administrative"), + Field: to.Ptr("category"), + }, + { + Equals: to.Ptr("Error"), + Field: to.Ptr("level"), + }}, + }, + Scopes: []*string{ + to.Ptr("/subscriptions/" + testsuite.subscriptionId)}, + }, + }, nil) + testsuite.Require().NoError(err) + + // From step ActivityLogAlerts_ListBySubscriptionId + fmt.Println("Call operation: ActivityLogAlerts_ListBySubscriptionId") + activityLogAlertsClientNewListBySubscriptionIDPager := activityLogAlertsClient.NewListBySubscriptionIDPager(nil) + for activityLogAlertsClientNewListBySubscriptionIDPager.More() { + _, err := activityLogAlertsClientNewListBySubscriptionIDPager.NextPage(testsuite.ctx) + testsuite.Require().NoError(err) + break + } + + // From step ActivityLogAlerts_ListByResourceGroup + fmt.Println("Call operation: ActivityLogAlerts_ListByResourceGroup") + activityLogAlertsClientNewListByResourceGroupPager := activityLogAlertsClient.NewListByResourceGroupPager(testsuite.resourceGroupName, nil) + for activityLogAlertsClientNewListByResourceGroupPager.More() { + _, err := activityLogAlertsClientNewListByResourceGroupPager.NextPage(testsuite.ctx) + testsuite.Require().NoError(err) + break + } + + // From step ActivityLogAlerts_Get + fmt.Println("Call operation: ActivityLogAlerts_Get") + _, err = activityLogAlertsClient.Get(testsuite.ctx, testsuite.resourceGroupName, testsuite.activityLogAlertName, nil) + testsuite.Require().NoError(err) + + // From step ActivityLogAlerts_Update + fmt.Println("Call operation: ActivityLogAlerts_Update") + _, err = activityLogAlertsClient.Update(testsuite.ctx, testsuite.resourceGroupName, testsuite.activityLogAlertName, armmonitor.AlertRulePatchObject{ + Properties: &armmonitor.AlertRulePatchProperties{ + Enabled: to.Ptr(false), + }, + Tags: map[string]*string{ + "key1": to.Ptr("value1"), + "key2": to.Ptr("value2"), + }, + }, nil) + testsuite.Require().NoError(err) + + // From step ActivityLogAlerts_Delete + fmt.Println("Call operation: ActivityLogAlerts_Delete") + _, err = activityLogAlertsClient.Delete(testsuite.ctx, testsuite.resourceGroupName, testsuite.activityLogAlertName, nil) + testsuite.Require().NoError(err) +} diff --git a/sdk/resourcemanager/monitor/armmonitor/assets.json b/sdk/resourcemanager/monitor/armmonitor/assets.json new file mode 100644 index 000000000000..9f8ce517594e --- /dev/null +++ b/sdk/resourcemanager/monitor/armmonitor/assets.json @@ -0,0 +1,6 @@ +{ + "AssetsRepo": "Azure/azure-sdk-assets", + "AssetsRepoPrefixPath": "go", + "TagPrefix": "go/resourcemanager/monitor/armmonitor", + "Tag": "go/resourcemanager/monitor/armmonitor_7cb2b2acd8" +} diff --git a/sdk/resourcemanager/monitor/armmonitor/autoscale_live_test.go b/sdk/resourcemanager/monitor/armmonitor/autoscale_live_test.go new file mode 100644 index 000000000000..94598a040fb7 --- /dev/null +++ b/sdk/resourcemanager/monitor/armmonitor/autoscale_live_test.go @@ -0,0 +1,413 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armmonitor_test + +import ( + "context" + "fmt" + "testing" + + "time" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/monitor/armmonitor" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" + "github.com/stretchr/testify/suite" +) + +type AutoscaleTestSuite struct { + suite.Suite + + ctx context.Context + cred azcore.TokenCredential + options *arm.ClientOptions + autoscaleSettingName string + subnetId string + vmssId string + adminPassword string + location string + resourceGroupName string + subscriptionId string +} + +func (testsuite *AutoscaleTestSuite) SetupSuite() { + testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/monitor/armmonitor/testdata") + testsuite.ctx = context.Background() + testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) + testsuite.autoscaleSettingName = testutil.GenerateAlphaNumericID(testsuite.T(), "autoscalesettingna", 6) + testsuite.adminPassword = testutil.GetEnv("ADMIN_PASSWORD", "000000000000") + testsuite.location = testutil.GetEnv("LOCATION", "eastus") + testsuite.resourceGroupName = testutil.GetEnv("RESOURCE_GROUP_NAME", "scenarioTestTempGroup") + testsuite.subscriptionId = testutil.GetEnv("AZURE_SUBSCRIPTION_ID", "00000000-0000-0000-0000-000000000000") + + resourceGroup, _, err := testutil.CreateResourceGroup(testsuite.ctx, testsuite.subscriptionId, testsuite.cred, testsuite.options, testsuite.location) + testsuite.Require().NoError(err) + testsuite.resourceGroupName = *resourceGroup.Name + testsuite.Prepare() +} + +func (testsuite *AutoscaleTestSuite) TearDownSuite() { + _, err := testutil.DeleteResourceGroup(testsuite.ctx, testsuite.subscriptionId, testsuite.cred, testsuite.options, testsuite.resourceGroupName) + testsuite.Require().NoError(err) + testutil.StopRecording(testsuite.T()) +} + +func TestAutoscaleTestSuite(t *testing.T) { + suite.Run(t, new(AutoscaleTestSuite)) +} + +func (testsuite *AutoscaleTestSuite) Prepare() { + var err error + // From step NetworkAndSubnet_Create + template := map[string]interface{}{ + "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "outputs": map[string]interface{}{ + "subnetId": map[string]interface{}{ + "type": "string", + "value": "[resourceId('Microsoft.Network/virtualNetworks/subnets', parameters('virtualNetworksName'), 'vmsssubnet')]", + }, + }, + "parameters": map[string]interface{}{ + "location": map[string]interface{}{ + "type": "string", + "defaultValue": "$(location)", + }, + "virtualNetworksName": map[string]interface{}{ + "type": "string", + "defaultValue": "vmssvnet", + }, + }, + "resources": []interface{}{ + map[string]interface{}{ + "name": "[parameters('virtualNetworksName')]", + "type": "Microsoft.Network/virtualNetworks", + "apiVersion": "2021-05-01", + "location": "[parameters('location')]", + "properties": map[string]interface{}{ + "addressSpace": map[string]interface{}{ + "addressPrefixes": []interface{}{ + "10.0.0.0/16", + }, + }, + "subnets": []interface{}{ + map[string]interface{}{ + "name": "vmsssubnet", + "properties": map[string]interface{}{ + "addressPrefix": "10.0.0.0/24", + }, + }, + }, + }, + "tags": map[string]interface{}{}, + }, + }, + } + params := map[string]interface{}{ + "location": map[string]interface{}{"value": testsuite.location}, + } + deployment := armresources.Deployment{ + Properties: &armresources.DeploymentProperties{ + Template: template, + Parameters: params, + Mode: to.Ptr(armresources.DeploymentModeIncremental), + }, + } + deploymentExtend, err := testutil.CreateDeployment(testsuite.ctx, testsuite.subscriptionId, testsuite.cred, testsuite.options, testsuite.resourceGroupName, "NetworkAndSubnet_Create", &deployment) + testsuite.Require().NoError(err) + testsuite.subnetId = deploymentExtend.Properties.Outputs.(map[string]interface{})["subnetId"].(map[string]interface{})["value"].(string) + + // From step NetworkInterface_Create + template = map[string]interface{}{ + "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": map[string]interface{}{ + "location": map[string]interface{}{ + "type": "string", + "defaultValue": "$(location)", + }, + "subnetId": map[string]interface{}{ + "type": "string", + "defaultValue": "$(subnetId)", + }, + }, + "resources": []interface{}{ + map[string]interface{}{ + "name": "vmssnic", + "type": "Microsoft.Network/networkInterfaces", + "apiVersion": "2021-08-01", + "location": "[parameters('location')]", + "properties": map[string]interface{}{ + "ipConfigurations": []interface{}{ + map[string]interface{}{ + "name": "Ipv4config", + "properties": map[string]interface{}{ + "subnet": map[string]interface{}{ + "id": "[parameters('subnetId')]", + }, + }, + }, + }, + }, + "tags": map[string]interface{}{}, + }, + }, + } + params = map[string]interface{}{ + "location": map[string]interface{}{"value": testsuite.location}, + "subnetId": map[string]interface{}{"value": testsuite.subnetId}, + } + deployment = armresources.Deployment{ + Properties: &armresources.DeploymentProperties{ + Template: template, + Parameters: params, + Mode: to.Ptr(armresources.DeploymentModeIncremental), + }, + } + _, err = testutil.CreateDeployment(testsuite.ctx, testsuite.subscriptionId, testsuite.cred, testsuite.options, testsuite.resourceGroupName, "NetworkInterface_Create", &deployment) + testsuite.Require().NoError(err) + + // From step VMSS_Create + template = map[string]interface{}{ + "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "outputs": map[string]interface{}{ + "vmssId": map[string]interface{}{ + "type": "string", + "value": "[resourceId('Microsoft.Compute/virtualMachineScaleSets', parameters('virtualMachineScaleSetName'))]", + }, + }, + "parameters": map[string]interface{}{ + "adminPassword": map[string]interface{}{ + "type": "securestring", + "defaultValue": "$(adminPassword)", + }, + "location": map[string]interface{}{ + "type": "string", + "defaultValue": "$(location)", + }, + "subnetId": map[string]interface{}{ + "type": "string", + "defaultValue": "$(subnetId)", + }, + "virtualMachineScaleSetName": map[string]interface{}{ + "type": "string", + "defaultValue": "monitorvmss", + }, + }, + "resources": []interface{}{ + map[string]interface{}{ + "name": "[parameters('virtualMachineScaleSetName')]", + "type": "Microsoft.Compute/virtualMachineScaleSets", + "apiVersion": "2022-03-01", + "location": "[parameters('location')]", + "properties": map[string]interface{}{ + "scaleInPolicy": map[string]interface{}{ + "rules": []interface{}{ + "Default", + }, + }, + "singlePlacementGroup": false, + "upgradePolicy": map[string]interface{}{ + "mode": "Manual", + }, + "virtualMachineProfile": map[string]interface{}{ + "diagnosticsProfile": map[string]interface{}{ + "bootDiagnostics": map[string]interface{}{ + "enabled": true, + }, + }, + "networkProfile": map[string]interface{}{ + "networkInterfaceConfigurations": []interface{}{ + map[string]interface{}{ + "name": "[concat(parameters('virtualMachineScaleSetName'), 'vnet-nic01')]", + "properties": map[string]interface{}{ + "enableAcceleratedNetworking": true, + "enableIPForwarding": false, + "ipConfigurations": []interface{}{ + map[string]interface{}{ + "name": "[concat(parameters('virtualMachineScaleSetName'), 'vnet-nic01-defaultIpConfiguration')]", + "properties": map[string]interface{}{ + "primary": true, + "privateIPAddressVersion": "IPv4", + "subnet": map[string]interface{}{ + "id": "[parameters('subnetId')]", + }, + }, + }, + }, + "primary": true, + }, + }, + }, + }, + "osProfile": map[string]interface{}{ + "adminPassword": "[parameters('adminPassword')]", + "adminUsername": "azureuser", + "allowExtensionOperations": true, + "computerNamePrefix": "vmss", + "secrets": []interface{}{}, + "windowsConfiguration": map[string]interface{}{ + "enableAutomaticUpdates": true, + "provisionVMAgent": true, + }, + }, + "storageProfile": map[string]interface{}{ + "imageReference": map[string]interface{}{ + "offer": "WindowsServer", + "publisher": "MicrosoftWindowsServer", + "sku": "2019-Datacenter", + "version": "latest", + }, + "osDisk": map[string]interface{}{ + "caching": "ReadWrite", + "createOption": "FromImage", + "diskSizeGB": float64(127), + "managedDisk": map[string]interface{}{ + "storageAccountType": "Premium_LRS", + }, + "osType": "Windows", + }, + }, + }, + }, + "sku": map[string]interface{}{ + "name": "Standard_DS1_v2", + "capacity": float64(2), + "tier": "Standard", + }, + }, + }, + "variables": map[string]interface{}{}, + } + params = map[string]interface{}{ + "adminPassword": map[string]interface{}{"value": testsuite.adminPassword}, + "location": map[string]interface{}{"value": testsuite.location}, + "subnetId": map[string]interface{}{"value": testsuite.subnetId}, + } + deployment = armresources.Deployment{ + Properties: &armresources.DeploymentProperties{ + Template: template, + Parameters: params, + Mode: to.Ptr(armresources.DeploymentModeIncremental), + }, + } + deploymentExtend, err = testutil.CreateDeployment(testsuite.ctx, testsuite.subscriptionId, testsuite.cred, testsuite.options, testsuite.resourceGroupName, "VMSS_Create", &deployment) + testsuite.Require().NoError(err) + testsuite.vmssId = deploymentExtend.Properties.Outputs.(map[string]interface{})["vmssId"].(map[string]interface{})["value"].(string) +} + +// Microsoft.Insights/autoscalesettings +func (testsuite *AutoscaleTestSuite) TestAutoscalesettings() { + var err error + // From step AutoscaleSettings_Create + fmt.Println("Call operation: AutoscaleSettings_CreateOrUpdate") + autoscaleSettingsClient, err := armmonitor.NewAutoscaleSettingsClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) + testsuite.Require().NoError(err) + _, err = autoscaleSettingsClient.CreateOrUpdate(testsuite.ctx, testsuite.resourceGroupName, testsuite.autoscaleSettingName, armmonitor.AutoscaleSettingResource{ + Location: to.Ptr(testsuite.location), + Tags: map[string]*string{}, + Properties: &armmonitor.AutoscaleSetting{ + Enabled: to.Ptr(true), + Notifications: []*armmonitor.AutoscaleNotification{ + { + Email: &armmonitor.EmailNotification{ + CustomEmails: []*string{ + to.Ptr("gu@ms.com"), + to.Ptr("ge@ns.net")}, + SendToSubscriptionAdministrator: to.Ptr(true), + SendToSubscriptionCoAdministrators: to.Ptr(true), + }, + Operation: to.Ptr("Scale"), + }}, + Profiles: []*armmonitor.AutoscaleProfile{ + { + Name: to.Ptr("adios"), + Capacity: &armmonitor.ScaleCapacity{ + Default: to.Ptr("1"), + Maximum: to.Ptr("10"), + Minimum: to.Ptr("1"), + }, + FixedDate: &armmonitor.TimeWindow{ + End: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2015-03-05T14:30:00Z"); return t }()), + Start: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2015-03-05T14:00:00Z"); return t }()), + TimeZone: to.Ptr("UTC"), + }, + }}, + TargetResourceURI: to.Ptr(testsuite.vmssId), + }, + }, nil) + testsuite.Require().NoError(err) + + // From step AutoscaleSettings_Update + fmt.Println("Call operation: AutoscaleSettings_Update") + _, err = autoscaleSettingsClient.Update(testsuite.ctx, testsuite.resourceGroupName, testsuite.autoscaleSettingName, armmonitor.AutoscaleSettingResourcePatch{ + Tags: map[string]*string{ + "$type": to.Ptr("Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary"), + }, + }, nil) + testsuite.Require().NoError(err) + + // From step AutoscaleSettings_ListBySubscription + fmt.Println("Call operation: AutoscaleSettings_ListBySubscription") + autoscaleSettingsClientNewListBySubscriptionPager := autoscaleSettingsClient.NewListBySubscriptionPager(nil) + for autoscaleSettingsClientNewListBySubscriptionPager.More() { + _, err := autoscaleSettingsClientNewListBySubscriptionPager.NextPage(testsuite.ctx) + testsuite.Require().NoError(err) + break + } + + // From step AutoscaleSettings_ListByResourceGroup + fmt.Println("Call operation: AutoscaleSettings_ListByResourceGroup") + autoscaleSettingsClientNewListByResourceGroupPager := autoscaleSettingsClient.NewListByResourceGroupPager(testsuite.resourceGroupName, nil) + for autoscaleSettingsClientNewListByResourceGroupPager.More() { + _, err := autoscaleSettingsClientNewListByResourceGroupPager.NextPage(testsuite.ctx) + testsuite.Require().NoError(err) + break + } + + // From step AutoscaleSettings_Get + fmt.Println("Call operation: AutoscaleSettings_Get") + _, err = autoscaleSettingsClient.Get(testsuite.ctx, testsuite.resourceGroupName, testsuite.autoscaleSettingName, nil) + testsuite.Require().NoError(err) + + // From step AutoscaleSettings_Delete + fmt.Println("Call operation: AutoscaleSettings_Delete") + _, err = autoscaleSettingsClient.Delete(testsuite.ctx, testsuite.resourceGroupName, testsuite.autoscaleSettingName, nil) + testsuite.Require().NoError(err) +} + +// Microsoft.Insights/eventcategories +func (testsuite *AutoscaleTestSuite) TestEventcategories() { + var err error + // From step EventCategories_List + fmt.Println("Call operation: EventCategories_List") + eventCategoriesClient, err := armmonitor.NewEventCategoriesClient(testsuite.cred, testsuite.options) + testsuite.Require().NoError(err) + eventCategoriesClientNewListPager := eventCategoriesClient.NewListPager(nil) + for eventCategoriesClientNewListPager.More() { + _, err := eventCategoriesClientNewListPager.NextPage(testsuite.ctx) + testsuite.Require().NoError(err) + break + } +} + +// Microsoft.Insights/operations +func (testsuite *AutoscaleTestSuite) TestOperations() { + var err error + // From step Operations_List + fmt.Println("Call operation: Operations_List") + operationsClient, err := armmonitor.NewOperationsClient(testsuite.cred, testsuite.options) + testsuite.Require().NoError(err) + _, err = operationsClient.List(testsuite.ctx, nil) + testsuite.Require().NoError(err) +} diff --git a/sdk/resourcemanager/monitor/armmonitor/datacollectionendpoints_live_test.go b/sdk/resourcemanager/monitor/armmonitor/datacollectionendpoints_live_test.go new file mode 100644 index 000000000000..e9d4abbd3136 --- /dev/null +++ b/sdk/resourcemanager/monitor/armmonitor/datacollectionendpoints_live_test.go @@ -0,0 +1,130 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armmonitor_test + +import ( + "context" + "fmt" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/monitor/armmonitor" + "github.com/stretchr/testify/suite" +) + +type DatacollectionendpointsTestSuite struct { + suite.Suite + + ctx context.Context + cred azcore.TokenCredential + options *arm.ClientOptions + dataCollectionEndpointName string + location string + resourceGroupName string + subscriptionId string +} + +func (testsuite *DatacollectionendpointsTestSuite) SetupSuite() { + testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/monitor/armmonitor/testdata") + testsuite.ctx = context.Background() + testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) + testsuite.dataCollectionEndpointName = testutil.GenerateAlphaNumericID(testsuite.T(), "datacollectionendpointna", 6) + testsuite.location = testutil.GetEnv("LOCATION", "eastus") + testsuite.resourceGroupName = testutil.GetEnv("RESOURCE_GROUP_NAME", "scenarioTestTempGroup") + testsuite.subscriptionId = testutil.GetEnv("AZURE_SUBSCRIPTION_ID", "00000000-0000-0000-0000-000000000000") + + resourceGroup, _, err := testutil.CreateResourceGroup(testsuite.ctx, testsuite.subscriptionId, testsuite.cred, testsuite.options, testsuite.location) + testsuite.Require().NoError(err) + testsuite.resourceGroupName = *resourceGroup.Name +} + +func (testsuite *DatacollectionendpointsTestSuite) TearDownSuite() { + _, err := testutil.DeleteResourceGroup(testsuite.ctx, testsuite.subscriptionId, testsuite.cred, testsuite.options, testsuite.resourceGroupName) + testsuite.Require().NoError(err) + testutil.StopRecording(testsuite.T()) +} + +func TestDatacollectionendpointsTestSuite(t *testing.T) { + suite.Run(t, new(DatacollectionendpointsTestSuite)) +} + +// Microsoft.Insights/dataCollectionEndpoints +func (testsuite *DatacollectionendpointsTestSuite) TestDatacollectionendpoint() { + var err error + // From step DataCollectionEndpoints_Create + fmt.Println("Call operation: DataCollectionEndpoints_Create") + dataCollectionEndpointsClient, err := armmonitor.NewDataCollectionEndpointsClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) + testsuite.Require().NoError(err) + _, err = dataCollectionEndpointsClient.Create(testsuite.ctx, testsuite.resourceGroupName, testsuite.dataCollectionEndpointName, &armmonitor.DataCollectionEndpointsClientCreateOptions{ + Body: &armmonitor.DataCollectionEndpointResource{ + Location: to.Ptr(testsuite.location), + Properties: &armmonitor.DataCollectionEndpointResourceProperties{ + NetworkACLs: &armmonitor.DataCollectionEndpointNetworkACLs{ + PublicNetworkAccess: to.Ptr(armmonitor.KnownPublicNetworkAccessOptionsEnabled), + }, + }, + }, + }) + testsuite.Require().NoError(err) + + // From step DataCollectionEndpoints_ListBySubscription + fmt.Println("Call operation: DataCollectionEndpoints_ListBySubscription") + dataCollectionEndpointsClientNewListBySubscriptionPager := dataCollectionEndpointsClient.NewListBySubscriptionPager(nil) + for dataCollectionEndpointsClientNewListBySubscriptionPager.More() { + _, err := dataCollectionEndpointsClientNewListBySubscriptionPager.NextPage(testsuite.ctx) + testsuite.Require().NoError(err) + break + } + + // From step DataCollectionEndpoints_Get + fmt.Println("Call operation: DataCollectionEndpoints_Get") + _, err = dataCollectionEndpointsClient.Get(testsuite.ctx, testsuite.resourceGroupName, testsuite.dataCollectionEndpointName, nil) + testsuite.Require().NoError(err) + + // From step DataCollectionEndpoints_ListByResourceGroup + fmt.Println("Call operation: DataCollectionEndpoints_ListByResourceGroup") + dataCollectionEndpointsClientNewListByResourceGroupPager := dataCollectionEndpointsClient.NewListByResourceGroupPager(testsuite.resourceGroupName, nil) + for dataCollectionEndpointsClientNewListByResourceGroupPager.More() { + _, err := dataCollectionEndpointsClientNewListByResourceGroupPager.NextPage(testsuite.ctx) + testsuite.Require().NoError(err) + break + } + + // From step DataCollectionEndpoints_Update + fmt.Println("Call operation: DataCollectionEndpoints_Update") + _, err = dataCollectionEndpointsClient.Update(testsuite.ctx, testsuite.resourceGroupName, testsuite.dataCollectionEndpointName, &armmonitor.DataCollectionEndpointsClientUpdateOptions{ + Body: &armmonitor.ResourceForUpdate{ + Tags: map[string]*string{ + "tag1": to.Ptr("A"), + "tag2": to.Ptr("B"), + "tag3": to.Ptr("C"), + }, + }, + }) + testsuite.Require().NoError(err) + + // From step DataCollectionRuleAssociations_ListByDataCollectionEndpoint + fmt.Println("Call operation: DataCollectionRuleAssociations_ListByDataCollectionEndpoint") + dataCollectionRuleAssociationsClient, err := armmonitor.NewDataCollectionRuleAssociationsClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) + testsuite.Require().NoError(err) + dataCollectionRuleAssociationsClientNewListByDataCollectionEndpointPager := dataCollectionRuleAssociationsClient.NewListByDataCollectionEndpointPager(testsuite.resourceGroupName, testsuite.dataCollectionEndpointName, nil) + for dataCollectionRuleAssociationsClientNewListByDataCollectionEndpointPager.More() { + _, err := dataCollectionRuleAssociationsClientNewListByDataCollectionEndpointPager.NextPage(testsuite.ctx) + testsuite.Require().NoError(err) + break + } + + // From step DataCollectionEndpoints_Delete + fmt.Println("Call operation: DataCollectionEndpoints_Delete") + _, err = dataCollectionEndpointsClient.Delete(testsuite.ctx, testsuite.resourceGroupName, testsuite.dataCollectionEndpointName, nil) + testsuite.Require().NoError(err) +} diff --git a/sdk/resourcemanager/monitor/armmonitor/datacollectionrules_live_test.go b/sdk/resourcemanager/monitor/armmonitor/datacollectionrules_live_test.go new file mode 100644 index 000000000000..ec0555d24fae --- /dev/null +++ b/sdk/resourcemanager/monitor/armmonitor/datacollectionrules_live_test.go @@ -0,0 +1,417 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armmonitor_test + +import ( + "context" + "fmt" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/monitor/armmonitor" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" + "github.com/stretchr/testify/suite" +) + +type DatacollectionrulesTestSuite struct { + suite.Suite + + ctx context.Context + cred azcore.TokenCredential + options *arm.ClientOptions + dataCollectionRuleName string + managedClustersName string + resourceUri string + workspaceId string + azureClientId string + azureClientSecret string + location string + resourceGroupName string + subscriptionId string +} + +func (testsuite *DatacollectionrulesTestSuite) SetupSuite() { + testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/monitor/armmonitor/testdata") + testsuite.ctx = context.Background() + testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) + testsuite.dataCollectionRuleName = testutil.GenerateAlphaNumericID(testsuite.T(), "datacollectionrulena", 6) + testsuite.managedClustersName = testutil.GenerateAlphaNumericID(testsuite.T(), "associationaks", 6) + testsuite.azureClientId = testutil.GetEnv("AZURE_CLIENT_ID", "00000000-0000-0000-0000-000000000000") + testsuite.azureClientSecret = testutil.GetEnv("AZURE_CLIENT_SECRET", "000000000000") + testsuite.location = testutil.GetEnv("LOCATION", "eastus") + testsuite.resourceGroupName = testutil.GetEnv("RESOURCE_GROUP_NAME", "scenarioTestTempGroup") + testsuite.subscriptionId = testutil.GetEnv("AZURE_SUBSCRIPTION_ID", "00000000-0000-0000-0000-000000000000") + + resourceGroup, _, err := testutil.CreateResourceGroup(testsuite.ctx, testsuite.subscriptionId, testsuite.cred, testsuite.options, testsuite.location) + testsuite.Require().NoError(err) + testsuite.resourceGroupName = *resourceGroup.Name + testsuite.Prepare() +} + +func (testsuite *DatacollectionrulesTestSuite) TearDownSuite() { + _, err := testutil.DeleteResourceGroup(testsuite.ctx, testsuite.subscriptionId, testsuite.cred, testsuite.options, testsuite.resourceGroupName) + testsuite.Require().NoError(err) + testutil.StopRecording(testsuite.T()) +} + +func TestDatacollectionrulesTestSuite(t *testing.T) { + suite.Run(t, new(DatacollectionrulesTestSuite)) +} + +func (testsuite *DatacollectionrulesTestSuite) Prepare() { + var err error + // From step WorkSpaces_Create + template := map[string]interface{}{ + "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "outputs": map[string]interface{}{ + "workspaceId": map[string]interface{}{ + "type": "string", + "value": "[resourceId('Microsoft.OperationalInsights/workspaces','workspacena')]", + }, + }, + "parameters": map[string]interface{}{ + "location": map[string]interface{}{ + "type": "string", + "defaultValue": "$(location)", + }, + }, + "resources": []interface{}{ + map[string]interface{}{ + "name": "workspacena", + "type": "Microsoft.OperationalInsights/workspaces", + "apiVersion": "2021-12-01-preview", + "location": "[parameters('location')]", + "properties": map[string]interface{}{ + "retentionInDays": float64(30), + "sku": map[string]interface{}{ + "name": "PerNode", + }, + }, + "tags": map[string]interface{}{ + "tag1": "value1", + }, + }, + }, + } + params := map[string]interface{}{ + "location": map[string]interface{}{"value": testsuite.location}, + } + deployment := armresources.Deployment{ + Properties: &armresources.DeploymentProperties{ + Template: template, + Parameters: params, + Mode: to.Ptr(armresources.DeploymentModeIncremental), + }, + } + deploymentExtend, err := testutil.CreateDeployment(testsuite.ctx, testsuite.subscriptionId, testsuite.cred, testsuite.options, testsuite.resourceGroupName, "WorkSpaces_Create", &deployment) + testsuite.Require().NoError(err) + testsuite.workspaceId = deploymentExtend.Properties.Outputs.(map[string]interface{})["workspaceId"].(map[string]interface{})["value"].(string) + + // From step ContainerService_Create + template = map[string]interface{}{ + "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "outputs": map[string]interface{}{ + "resourceUri": map[string]interface{}{ + "type": "string", + "value": "[resourceId('Microsoft.ContainerService/managedClusters', parameters('managedClustersName'))]", + }, + }, + "parameters": map[string]interface{}{ + "azureClientId": map[string]interface{}{ + "type": "string", + "defaultValue": "$(azureClientId)", + }, + "azureClientSecret": map[string]interface{}{ + "type": "string", + "defaultValue": "$(azureClientSecret)", + }, + "location": map[string]interface{}{ + "type": "string", + "defaultValue": "$(location)", + }, + "managedClustersName": map[string]interface{}{ + "type": "string", + "defaultValue": "$(managedClustersName)", + }, + }, + "resources": []interface{}{ + map[string]interface{}{ + "name": "[parameters('managedClustersName')]", + "type": "Microsoft.ContainerService/managedClusters", + "apiVersion": "2022-06-02-preview", + "identity": map[string]interface{}{ + "type": "SystemAssigned", + }, + "location": "[parameters('location')]", + "properties": map[string]interface{}{ + "agentPoolProfiles": []interface{}{ + map[string]interface{}{ + "name": "agentpool", + "type": "VirtualMachineScaleSets", + "availabilityZones": []interface{}{ + "1", + "2", + "3", + }, + "count": float64(1), + "enableAutoScaling": true, + "enableFIPS": false, + "enableNodePublicIP": false, + "kubeletDiskType": "OS", + "maxCount": float64(5), + "maxPods": float64(110), + "minCount": float64(1), + "mode": "System", + "osDiskSizeGB": float64(128), + "osDiskType": "Managed", + "osSKU": "Ubuntu", + "osType": "Linux", + "powerState": map[string]interface{}{ + "code": "Running", + }, + "vmSize": "Standard_DS2_v2", + }, + map[string]interface{}{ + "name": "noodpool2", + "type": "VirtualMachineScaleSets", + "count": float64(1), + "enableAutoScaling": true, + "enableFIPS": false, + "enableNodePublicIP": false, + "kubeletDiskType": "OS", + "maxCount": float64(10), + "maxPods": float64(110), + "minCount": float64(1), + "mode": "User", + "osDiskSizeGB": float64(128), + "osDiskType": "Managed", + "osSKU": "Ubuntu", + "osType": "Linux", + "powerState": map[string]interface{}{ + "code": "Running", + }, + "scaleDownMode": "Delete", + "upgradeSettings": map[string]interface{}{}, + "vmSize": "Standard_DS2_v2", + }, + }, + "dnsPrefix": "[concat(parameters('managedClustersName'), '-dns')]", + "oidcIssuerProfile": map[string]interface{}{ + "enabled": false, + }, + "servicePrincipalProfile": map[string]interface{}{ + "clientId": "[parameters('azureClientId')]", + "secret": "[parameters('azureClientSecret')]", + }, + "storageProfile": map[string]interface{}{ + "diskCSIDriver": map[string]interface{}{ + "enabled": true, + "version": "v1", + }, + "fileCSIDriver": map[string]interface{}{ + "enabled": true, + }, + "snapshotController": map[string]interface{}{ + "enabled": true, + }, + }, + "workloadAutoScalerProfile": map[string]interface{}{}, + }, + "sku": map[string]interface{}{ + "name": "Basic", + "tier": "Paid", + }, + }, + }, + "variables": map[string]interface{}{}, + } + params = map[string]interface{}{ + "azureClientId": map[string]interface{}{"value": testsuite.azureClientId}, + "azureClientSecret": map[string]interface{}{"value": testsuite.azureClientSecret}, + "location": map[string]interface{}{"value": testsuite.location}, + "managedClustersName": map[string]interface{}{"value": testsuite.managedClustersName}, + } + deployment = armresources.Deployment{ + Properties: &armresources.DeploymentProperties{ + Template: template, + Parameters: params, + Mode: to.Ptr(armresources.DeploymentModeIncremental), + }, + } + deploymentExtend, err = testutil.CreateDeployment(testsuite.ctx, testsuite.subscriptionId, testsuite.cred, testsuite.options, testsuite.resourceGroupName, "ContainerService_Create", &deployment) + testsuite.Require().NoError(err) + testsuite.resourceUri = deploymentExtend.Properties.Outputs.(map[string]interface{})["resourceUri"].(map[string]interface{})["value"].(string) +} + +// Microsoft.Insights/dataCollectionRules +func (testsuite *DatacollectionrulesTestSuite) TestDatacollectionrule() { + associationName := "myAssociation" + var dataCollectionRuleId string + var err error + // From step DataCollectionRules_Create + fmt.Println("Call operation: DataCollectionRules_Create") + dataCollectionRulesClient, err := armmonitor.NewDataCollectionRulesClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) + testsuite.Require().NoError(err) + dataCollectionRulesClientCreateResponse, err := dataCollectionRulesClient.Create(testsuite.ctx, testsuite.resourceGroupName, testsuite.dataCollectionRuleName, &armmonitor.DataCollectionRulesClientCreateOptions{ + Body: &armmonitor.DataCollectionRuleResource{ + Location: to.Ptr(testsuite.location), + Properties: &armmonitor.DataCollectionRuleResourceProperties{ + DataFlows: []*armmonitor.DataFlow{ + { + Destinations: []*string{ + to.Ptr("centralWorkspace")}, + Streams: []*armmonitor.KnownDataFlowStreams{ + to.Ptr(armmonitor.KnownDataFlowStreamsMicrosoftPerf), + to.Ptr(armmonitor.KnownDataFlowStreamsMicrosoftSyslog)}, + }}, + DataSources: &armmonitor.DataCollectionRuleDataSources{ + PerformanceCounters: []*armmonitor.PerfCounterDataSource{ + { + Name: to.Ptr("cloudTeamCoreCounters"), + CounterSpecifiers: []*string{ + to.Ptr("\\Processor(_Total)\\% Processor Time"), + to.Ptr("\\Memory\\Committed Bytes"), + to.Ptr("\\LogicalDisk(_Total)\\Free Megabytes"), + to.Ptr("\\PhysicalDisk(_Total)\\Avg. Disk Queue Length")}, + SamplingFrequencyInSeconds: to.Ptr[int32](15), + Streams: []*armmonitor.KnownPerfCounterDataSourceStreams{ + to.Ptr(armmonitor.KnownPerfCounterDataSourceStreamsMicrosoftPerf)}, + }, + { + Name: to.Ptr("appTeamExtraCounters"), + CounterSpecifiers: []*string{ + to.Ptr("\\Process(_Total)\\Thread Count")}, + SamplingFrequencyInSeconds: to.Ptr[int32](30), + Streams: []*armmonitor.KnownPerfCounterDataSourceStreams{ + to.Ptr(armmonitor.KnownPerfCounterDataSourceStreamsMicrosoftPerf)}, + }}, + Syslog: []*armmonitor.SyslogDataSource{ + { + Name: to.Ptr("cronSyslog"), + FacilityNames: []*armmonitor.KnownSyslogDataSourceFacilityNames{ + to.Ptr(armmonitor.KnownSyslogDataSourceFacilityNamesCron)}, + LogLevels: []*armmonitor.KnownSyslogDataSourceLogLevels{ + to.Ptr(armmonitor.KnownSyslogDataSourceLogLevelsDebug), + to.Ptr(armmonitor.KnownSyslogDataSourceLogLevelsCritical), + to.Ptr(armmonitor.KnownSyslogDataSourceLogLevelsEmergency)}, + Streams: []*armmonitor.KnownSyslogDataSourceStreams{ + to.Ptr(armmonitor.KnownSyslogDataSourceStreamsMicrosoftSyslog)}, + }, + { + Name: to.Ptr("syslogBase"), + FacilityNames: []*armmonitor.KnownSyslogDataSourceFacilityNames{ + to.Ptr(armmonitor.KnownSyslogDataSourceFacilityNamesSyslog)}, + LogLevels: []*armmonitor.KnownSyslogDataSourceLogLevels{ + to.Ptr(armmonitor.KnownSyslogDataSourceLogLevelsAlert), + to.Ptr(armmonitor.KnownSyslogDataSourceLogLevelsCritical), + to.Ptr(armmonitor.KnownSyslogDataSourceLogLevelsEmergency)}, + Streams: []*armmonitor.KnownSyslogDataSourceStreams{ + to.Ptr(armmonitor.KnownSyslogDataSourceStreamsMicrosoftSyslog)}, + }}, + }, + Destinations: &armmonitor.DataCollectionRuleDestinations{ + LogAnalytics: []*armmonitor.LogAnalyticsDestination{ + { + Name: to.Ptr("centralWorkspace"), + WorkspaceResourceID: to.Ptr(testsuite.workspaceId), + }}, + }, + }, + }, + }) + testsuite.Require().NoError(err) + dataCollectionRuleId = *dataCollectionRulesClientCreateResponse.ID + + // From step DataCollectionRules_ListBySubscription + fmt.Println("Call operation: DataCollectionRules_ListBySubscription") + dataCollectionRulesClientNewListBySubscriptionPager := dataCollectionRulesClient.NewListBySubscriptionPager(nil) + for dataCollectionRulesClientNewListBySubscriptionPager.More() { + _, err := dataCollectionRulesClientNewListBySubscriptionPager.NextPage(testsuite.ctx) + testsuite.Require().NoError(err) + break + } + + // From step DataCollectionRules_ListByResourceGroup + fmt.Println("Call operation: DataCollectionRules_ListByResourceGroup") + dataCollectionRulesClientNewListByResourceGroupPager := dataCollectionRulesClient.NewListByResourceGroupPager(testsuite.resourceGroupName, nil) + for dataCollectionRulesClientNewListByResourceGroupPager.More() { + _, err := dataCollectionRulesClientNewListByResourceGroupPager.NextPage(testsuite.ctx) + testsuite.Require().NoError(err) + break + } + + // From step DataCollectionRules_Get + fmt.Println("Call operation: DataCollectionRules_Get") + _, err = dataCollectionRulesClient.Get(testsuite.ctx, testsuite.resourceGroupName, testsuite.dataCollectionRuleName, nil) + testsuite.Require().NoError(err) + + // From step DataCollectionRules_Update + fmt.Println("Call operation: DataCollectionRules_Update") + _, err = dataCollectionRulesClient.Update(testsuite.ctx, testsuite.resourceGroupName, testsuite.dataCollectionRuleName, &armmonitor.DataCollectionRulesClientUpdateOptions{ + Body: &armmonitor.ResourceForUpdate{ + Tags: map[string]*string{ + "tag1": to.Ptr("A"), + "tag2": to.Ptr("B"), + "tag3": to.Ptr("C"), + }, + }, + }) + testsuite.Require().NoError(err) + + // From step DataCollectionRuleAssociations_Create + fmt.Println("Call operation: DataCollectionRuleAssociations_Create") + dataCollectionRuleAssociationsClient, err := armmonitor.NewDataCollectionRuleAssociationsClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) + testsuite.Require().NoError(err) + _, err = dataCollectionRuleAssociationsClient.Create(testsuite.ctx, testsuite.resourceUri, associationName, &armmonitor.DataCollectionRuleAssociationsClientCreateOptions{ + Body: &armmonitor.DataCollectionRuleAssociationProxyOnlyResource{ + Properties: &armmonitor.DataCollectionRuleAssociationProxyOnlyResourceProperties{ + DataCollectionRuleID: to.Ptr(dataCollectionRuleId), + }, + }, + }) + testsuite.Require().NoError(err) + + // From step DataCollectionRuleAssociations_ListByResource + fmt.Println("Call operation: DataCollectionRuleAssociations_ListByResource") + dataCollectionRuleAssociationsClientNewListByResourcePager := dataCollectionRuleAssociationsClient.NewListByResourcePager(testsuite.resourceUri, nil) + for dataCollectionRuleAssociationsClientNewListByResourcePager.More() { + _, err := dataCollectionRuleAssociationsClientNewListByResourcePager.NextPage(testsuite.ctx) + testsuite.Require().NoError(err) + break + } + + // From step DataCollectionRuleAssociations_ListByRule + fmt.Println("Call operation: DataCollectionRuleAssociations_ListByRule") + dataCollectionRuleAssociationsClientNewListByRulePager := dataCollectionRuleAssociationsClient.NewListByRulePager(testsuite.resourceGroupName, testsuite.dataCollectionRuleName, nil) + for dataCollectionRuleAssociationsClientNewListByRulePager.More() { + _, err := dataCollectionRuleAssociationsClientNewListByRulePager.NextPage(testsuite.ctx) + testsuite.Require().NoError(err) + break + } + + // From step DataCollectionRuleAssociations_Get + fmt.Println("Call operation: DataCollectionRuleAssociations_Get") + _, err = dataCollectionRuleAssociationsClient.Get(testsuite.ctx, testsuite.resourceUri, associationName, nil) + testsuite.Require().NoError(err) + + // From step DataCollectionRuleAssociations_Delete + fmt.Println("Call operation: DataCollectionRuleAssociations_Delete") + _, err = dataCollectionRuleAssociationsClient.Delete(testsuite.ctx, testsuite.resourceUri, associationName, nil) + testsuite.Require().NoError(err) + + // From step DataCollectionRules_Delete + fmt.Println("Call operation: DataCollectionRules_Delete") + _, err = dataCollectionRulesClient.Delete(testsuite.ctx, testsuite.resourceGroupName, testsuite.dataCollectionRuleName, nil) + testsuite.Require().NoError(err) +} diff --git a/sdk/resourcemanager/monitor/armmonitor/go.mod b/sdk/resourcemanager/monitor/armmonitor/go.mod index b3f80e01b286..63def024c563 100644 --- a/sdk/resourcemanager/monitor/armmonitor/go.mod +++ b/sdk/resourcemanager/monitor/armmonitor/go.mod @@ -3,19 +3,27 @@ module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/monitor/armmonitor go 1.18 require ( - github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.0 - github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.1.0 + github.com/Azure/azure-sdk-for-go/sdk/azcore v1.4.0 + github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.2 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0 + github.com/stretchr/testify v1.7.0 ) require ( - github.com/Azure/azure-sdk-for-go/sdk/internal v1.0.0 // indirect - github.com/AzureAD/microsoft-authentication-library-for-go v0.5.1 // indirect - github.com/golang-jwt/jwt v3.2.1+incompatible // indirect + github.com/Azure/azure-sdk-for-go/sdk/internal v1.2.0 // indirect + github.com/AzureAD/microsoft-authentication-library-for-go v0.7.0 // indirect + github.com/davecgh/go-spew v1.1.1 // indirect + github.com/dnaeon/go-vcr v1.1.0 // indirect + github.com/golang-jwt/jwt/v4 v4.4.2 // 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 + github.com/pmezard/go-difflib v1.0.0 // 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 + golang.org/x/net v0.7.0 // indirect + golang.org/x/sys v0.5.0 // indirect + golang.org/x/text v0.7.0 // indirect + gopkg.in/yaml.v2 v2.4.0 // indirect + gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect ) diff --git a/sdk/resourcemanager/monitor/armmonitor/go.sum b/sdk/resourcemanager/monitor/armmonitor/go.sum index 9c038303505c..b0f97586a165 100644 --- a/sdk/resourcemanager/monitor/armmonitor/go.sum +++ b/sdk/resourcemanager/monitor/armmonitor/go.sum @@ -1,33 +1,47 @@ -github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.0 h1:Ut0ZGdOwJDw0npYEg+TLlPls3Pq6JiZaP2/aGKir7Zw= -github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.0/go.mod h1:uGG2W01BaETf0Ozp+QxxKJdMBNRWPdstHG0Fmdwn1/U= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.1.0 h1:QkAcEIAKbNL4KoFr4SathZPhDhF4mVwpBMFlYjyAqy8= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.1.0/go.mod h1:bhXu1AjYL+wutSL/kpSq6s7733q2Rb0yuot9Zgfqa/0= -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.5.1 h1:BWe8a+f/t+7KY7zH2mqygeUD0t8hNFXe08p1Pb3/jKE= -github.com/AzureAD/microsoft-authentication-library-for-go v0.5.1/go.mod h1:Vt9sXTKwMyGcOxSmLDMnGPgqsUg7m8pe215qMLrDXw4= +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.0 h1:t/W5MYAuQy81cvM8VUNfRLzhtKpXhVUAN7Cd7KVbTyc= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.0/go.mod h1:NBanQUfSWiWn3QEpWDTCU0IjBECKOYvl2R8xdRtMtiM= +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/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.2 h1:mLY+pNLjCUeKhgnAJWAKhEUQM+RJQo2H1fuGSw1Ky1E= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.2/go.mod h1:FbdwsQ2EzwvXxOPcMFYO8ogEc9uMMIj3YkmCdXdAFmk= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0 h1:ECsQtyERDVz3NP3kvDOTLvbQhqWp/x9EsGKtb4ogUr8= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0/go.mod h1:s1tW/At+xHqjNFvWU4G0c0Qv33KOhvbGNj0RCTQDV8s= +github.com/AzureAD/microsoft-authentication-library-for-go v0.7.0 h1:VgSJlZH5u0k2qxSpqyghcFQKmvYckj46uymKK5XzkBM= +github.com/AzureAD/microsoft-authentication-library-for-go v0.7.0/go.mod h1:BDJ5qMFKx9DugEg3+uQSDCdbYPr5s9vBTrL9P8TpqOU= +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/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/dnaeon/go-vcr v1.1.0 h1:ReYa/UBrRyQdant9B4fNHGoCNKw6qh6P0fsdGmZpR7c= -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= +github.com/dnaeon/go-vcr v1.1.0/go.mod h1:M7tiix8f0r6mKKJ3Yq/kqU1OYf3MnfmBWVbPx/yU9ko= +github.com/golang-jwt/jwt/v4 v4.4.2 h1:rcc4lwaZgFMCZ5jxF9ABolDcIHdBytAFgqFPbSJQAYs= +github.com/golang-jwt/jwt/v4 v4.4.2/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= 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/montanaflynn/stats v0.6.6/go.mod h1:etXPPgVO6n31NxCd9KQUMvCM+ve0ruNzt6R8Bnaayow= +github.com/modocache/gover v0.0.0-20171022184752-b58185e213c5/go.mod h1:caMODM3PzxT8aQXRPkAt8xlV/e7d7w8GM5g0fa5F0D8= 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-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-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/net v0.7.0 h1:rJrUqqhjsgNp7KqAIc25s9pZnjU7TUcSY7HcVZjdn1g= +golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= +golang.org/x/sys v0.5.0 h1:MUK/U/4lj1t1oPg0HfuXDN/Z1wv31ZJ/YcPiGccS4DU= +golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/text v0.7.0 h1:4BRB4x83lYWy72KwLD/qYDuTu7q9PjSagHvijDw7cLo= +golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= +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= +gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/sdk/resourcemanager/monitor/armmonitor/logprofiles_live_test.go b/sdk/resourcemanager/monitor/armmonitor/logprofiles_live_test.go new file mode 100644 index 000000000000..d5fa3c32059b --- /dev/null +++ b/sdk/resourcemanager/monitor/armmonitor/logprofiles_live_test.go @@ -0,0 +1,182 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armmonitor_test + +import ( + "context" + "fmt" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/monitor/armmonitor" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" + "github.com/stretchr/testify/suite" +) + +type LogprofilesTestSuite struct { + suite.Suite + + ctx context.Context + cred azcore.TokenCredential + options *arm.ClientOptions + storageAccountId string + storageAccountName string + location string + resourceGroupName string + subscriptionId string +} + +func (testsuite *LogprofilesTestSuite) SetupSuite() { + testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/monitor/armmonitor/testdata") + testsuite.ctx = context.Background() + testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) + testsuite.storageAccountName = "monitorsana" + testsuite.location = testutil.GetEnv("LOCATION", "eastus") + testsuite.resourceGroupName = testutil.GetEnv("RESOURCE_GROUP_NAME", "scenarioTestTempGroup") + testsuite.subscriptionId = testutil.GetEnv("AZURE_SUBSCRIPTION_ID", "00000000-0000-0000-0000-000000000000") + + resourceGroup, _, err := testutil.CreateResourceGroup(testsuite.ctx, testsuite.subscriptionId, testsuite.cred, testsuite.options, testsuite.location) + testsuite.Require().NoError(err) + testsuite.resourceGroupName = *resourceGroup.Name + testsuite.Prepare() +} + +func (testsuite *LogprofilesTestSuite) TearDownSuite() { + _, err := testutil.DeleteResourceGroup(testsuite.ctx, testsuite.subscriptionId, testsuite.cred, testsuite.options, testsuite.resourceGroupName) + testsuite.Require().NoError(err) + testutil.StopRecording(testsuite.T()) +} + +func TestLogprofilesTestSuite(t *testing.T) { + suite.Run(t, new(LogprofilesTestSuite)) +} + +func (testsuite *LogprofilesTestSuite) Prepare() { + var err error + // From step StorageAccount_Create + template := map[string]interface{}{ + "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "outputs": map[string]interface{}{ + "storageAccountId": map[string]interface{}{ + "type": "string", + "value": "[resourceId('Microsoft.Storage/storageAccounts', parameters('storageAccountName'))]", + }, + }, + "parameters": map[string]interface{}{ + "storageAccountName": map[string]interface{}{ + "type": "string", + "defaultValue": "$(storageAccountName)", + }, + }, + "resources": []interface{}{ + map[string]interface{}{ + "name": "[parameters('storageAccountName')]", + "type": "Microsoft.Storage/storageAccounts", + "apiVersion": "2022-05-01", + "kind": "StorageV2", + "location": "eastus", + "properties": map[string]interface{}{ + "accessTier": "Hot", + "allowBlobPublicAccess": true, + "allowCrossTenantReplication": true, + "allowSharedKeyAccess": true, + "defaultToOAuthAuthentication": false, + "dnsEndpointType": "Standard", + "encryption": map[string]interface{}{ + "keySource": "Microsoft.Storage", + "requireInfrastructureEncryption": false, + "services": map[string]interface{}{ + "blob": map[string]interface{}{ + "enabled": true, + "keyType": "Account", + }, + "file": map[string]interface{}{ + "enabled": true, + "keyType": "Account", + }, + }, + }, + "minimumTlsVersion": "TLS1_2", + "networkAcls": map[string]interface{}{ + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": []interface{}{}, + "virtualNetworkRules": []interface{}{}, + }, + "publicNetworkAccess": "Enabled", + "supportsHttpsTrafficOnly": true, + }, + "sku": map[string]interface{}{ + "name": "Standard_RAGRS", + "tier": "Standard", + }, + }, + }, + "variables": map[string]interface{}{}, + } + params := map[string]interface{}{ + "storageAccountName": map[string]interface{}{"value": testsuite.storageAccountName}, + } + deployment := armresources.Deployment{ + Properties: &armresources.DeploymentProperties{ + Template: template, + Parameters: params, + Mode: to.Ptr(armresources.DeploymentModeIncremental), + }, + } + deploymentExtend, err := testutil.CreateDeployment(testsuite.ctx, testsuite.subscriptionId, testsuite.cred, testsuite.options, testsuite.resourceGroupName, "StorageAccount_Create", &deployment) + testsuite.Require().NoError(err) + testsuite.storageAccountId = deploymentExtend.Properties.Outputs.(map[string]interface{})["storageAccountId"].(map[string]interface{})["value"].(string) +} + +// Microsoft.Insights/logprofiles +func (testsuite *LogprofilesTestSuite) TestLogprofiles() { + logProfileName := "logprofilena" + var err error + // From step LogProfiles_CreateOrUpdate + fmt.Println("Call operation: LogProfiles_CreateOrUpdate") + logProfilesClient, err := armmonitor.NewLogProfilesClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) + testsuite.Require().NoError(err) + _, err = logProfilesClient.CreateOrUpdate(testsuite.ctx, logProfileName, armmonitor.LogProfileResource{ + Location: to.Ptr(testsuite.location), + Tags: map[string]*string{}, + Properties: &armmonitor.LogProfileProperties{ + Categories: []*string{ + to.Ptr("Write"), + to.Ptr("Delete"), + to.Ptr("Action")}, + Locations: []*string{ + to.Ptr("global")}, + RetentionPolicy: &armmonitor.RetentionPolicy{ + Days: to.Ptr[int32](3), + Enabled: to.Ptr(true), + }, + StorageAccountID: to.Ptr(testsuite.storageAccountId), + }, + }, nil) + testsuite.Require().NoError(err) + + // From step LogProfiles_List + fmt.Println("Call operation: LogProfiles_List") + logProfilesClientNewListPager := logProfilesClient.NewListPager(nil) + for logProfilesClientNewListPager.More() { + _, err := logProfilesClientNewListPager.NextPage(testsuite.ctx) + testsuite.Require().NoError(err) + break + } + + // From step LogProfiles_Delete + fmt.Println("Call operation: LogProfiles_Delete") + _, err = logProfilesClient.Delete(testsuite.ctx, logProfileName, nil) + testsuite.Require().NoError(err) +} diff --git a/sdk/resourcemanager/monitor/armmonitor/metricalerts_live_test.go b/sdk/resourcemanager/monitor/armmonitor/metricalerts_live_test.go new file mode 100644 index 000000000000..af82f082f365 --- /dev/null +++ b/sdk/resourcemanager/monitor/armmonitor/metricalerts_live_test.go @@ -0,0 +1,387 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armmonitor_test + +import ( + "context" + "fmt" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/monitor/armmonitor" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources" + "github.com/stretchr/testify/suite" +) + +type MetricalertsTestSuite struct { + suite.Suite + + ctx context.Context + cred azcore.TokenCredential + options *arm.ClientOptions + ruleName string + subnetId string + virtualMachineId string + vnicId string + adminPassword string + location string + resourceGroupName string + subscriptionId string +} + +func (testsuite *MetricalertsTestSuite) SetupSuite() { + testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/monitor/armmonitor/testdata") + testsuite.ctx = context.Background() + testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) + testsuite.ruleName = testutil.GenerateAlphaNumericID(testsuite.T(), "metricalertna", 6) + testsuite.adminPassword = testutil.GetEnv("ADMIN_PASSWORD", "000000000000") + testsuite.location = testutil.GetEnv("LOCATION", "eastus") + testsuite.resourceGroupName = testutil.GetEnv("RESOURCE_GROUP_NAME", "scenarioTestTempGroup") + testsuite.subscriptionId = testutil.GetEnv("AZURE_SUBSCRIPTION_ID", "00000000-0000-0000-0000-000000000000") + + resourceGroup, _, err := testutil.CreateResourceGroup(testsuite.ctx, testsuite.subscriptionId, testsuite.cred, testsuite.options, testsuite.location) + testsuite.Require().NoError(err) + testsuite.resourceGroupName = *resourceGroup.Name + testsuite.Prepare() +} + +func (testsuite *MetricalertsTestSuite) TearDownSuite() { + _, err := testutil.DeleteResourceGroup(testsuite.ctx, testsuite.subscriptionId, testsuite.cred, testsuite.options, testsuite.resourceGroupName) + testsuite.Require().NoError(err) + testutil.StopRecording(testsuite.T()) +} + +func TestMetricalertsTestSuite(t *testing.T) { + suite.Run(t, new(MetricalertsTestSuite)) +} + +func (testsuite *MetricalertsTestSuite) Prepare() { + var err error + // From step VirtualNetwork_Create + template := map[string]interface{}{ + "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "outputs": map[string]interface{}{ + "subnetId": map[string]interface{}{ + "type": "string", + "value": "[resourceId('Microsoft.Network/virtualNetworks/subnets', parameters('virtualNetworksName'), 'vmsssubnet')]", + }, + }, + "parameters": map[string]interface{}{ + "location": map[string]interface{}{ + "type": "string", + "defaultValue": "$(location)", + }, + "virtualNetworksName": map[string]interface{}{ + "type": "string", + "defaultValue": "vmssvnet", + }, + }, + "resources": []interface{}{ + map[string]interface{}{ + "name": "[parameters('virtualNetworksName')]", + "type": "Microsoft.Network/virtualNetworks", + "apiVersion": "2021-05-01", + "location": "[parameters('location')]", + "properties": map[string]interface{}{ + "addressSpace": map[string]interface{}{ + "addressPrefixes": []interface{}{ + "10.0.0.0/16", + }, + }, + "subnets": []interface{}{ + map[string]interface{}{ + "name": "vmsssubnet", + "properties": map[string]interface{}{ + "addressPrefix": "10.0.0.0/24", + }, + }, + }, + }, + "tags": map[string]interface{}{}, + }, + }, + } + params := map[string]interface{}{ + "location": map[string]interface{}{"value": testsuite.location}, + } + deployment := armresources.Deployment{ + Properties: &armresources.DeploymentProperties{ + Template: template, + Parameters: params, + Mode: to.Ptr(armresources.DeploymentModeIncremental), + }, + } + deploymentExtend, err := testutil.CreateDeployment(testsuite.ctx, testsuite.subscriptionId, testsuite.cred, testsuite.options, testsuite.resourceGroupName, "VirtualNetwork_Create", &deployment) + testsuite.Require().NoError(err) + testsuite.subnetId = deploymentExtend.Properties.Outputs.(map[string]interface{})["subnetId"].(map[string]interface{})["value"].(string) + + // From step NetworkInterface_Create + template = map[string]interface{}{ + "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "outputs": map[string]interface{}{ + "vnicId": map[string]interface{}{ + "type": "string", + "value": "[resourceId('Microsoft.Network/networkInterfaces', 'vmnic')]", + }, + }, + "parameters": map[string]interface{}{ + "location": map[string]interface{}{ + "type": "string", + "defaultValue": "$(location)", + }, + "subnetId": map[string]interface{}{ + "type": "string", + "defaultValue": "$(subnetId)", + }, + }, + "resources": []interface{}{ + map[string]interface{}{ + "name": "vmnic", + "type": "Microsoft.Network/networkInterfaces", + "apiVersion": "2021-08-01", + "location": "[parameters('location')]", + "properties": map[string]interface{}{ + "ipConfigurations": []interface{}{ + map[string]interface{}{ + "name": "Ipv4config", + "properties": map[string]interface{}{ + "subnet": map[string]interface{}{ + "id": "[parameters('subnetId')]", + }, + }, + }, + }, + }, + "tags": map[string]interface{}{}, + }, + }, + } + params = map[string]interface{}{ + "location": map[string]interface{}{"value": testsuite.location}, + "subnetId": map[string]interface{}{"value": testsuite.subnetId}, + } + deployment = armresources.Deployment{ + Properties: &armresources.DeploymentProperties{ + Template: template, + Parameters: params, + Mode: to.Ptr(armresources.DeploymentModeIncremental), + }, + } + deploymentExtend, err = testutil.CreateDeployment(testsuite.ctx, testsuite.subscriptionId, testsuite.cred, testsuite.options, testsuite.resourceGroupName, "NetworkInterface_Create", &deployment) + testsuite.Require().NoError(err) + testsuite.vnicId = deploymentExtend.Properties.Outputs.(map[string]interface{})["vnicId"].(map[string]interface{})["value"].(string) + + // From step VirtualMachine_Create + template = map[string]interface{}{ + "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "outputs": map[string]interface{}{ + "virtualMachineId": map[string]interface{}{ + "type": "string", + "value": "[resourceId('Microsoft.Compute/virtualMachines', 'scenariovm')]", + }, + }, + "parameters": map[string]interface{}{ + "adminPassword": map[string]interface{}{ + "type": "securestring", + "defaultValue": "$(adminPassword)", + }, + "location": map[string]interface{}{ + "type": "string", + "defaultValue": "$(location)", + }, + "vnicId": map[string]interface{}{ + "type": "string", + "defaultValue": "$(vnicId)", + }, + }, + "resources": []interface{}{ + map[string]interface{}{ + "name": "scenariovm", + "type": "Microsoft.Compute/virtualMachines", + "apiVersion": "2022-03-01", + "location": "[parameters('location')]", + "properties": map[string]interface{}{ + "diagnosticsProfile": map[string]interface{}{ + "bootDiagnostics": map[string]interface{}{ + "enabled": true, + }, + }, + "hardwareProfile": map[string]interface{}{ + "vmSize": "Standard_DS1_v2", + }, + "networkProfile": map[string]interface{}{ + "networkInterfaces": []interface{}{ + map[string]interface{}{ + "id": "[parameters('vnicId')]", + "properties": map[string]interface{}{ + "deleteOption": "Detach", + "primary": true, + }, + }, + }, + }, + "osProfile": map[string]interface{}{ + "adminPassword": "[parameters('adminPassword')]", + "adminUsername": "azureuser", + "allowExtensionOperations": true, + "computerName": "scenariovm", + "secrets": []interface{}{}, + "windowsConfiguration": map[string]interface{}{ + "enableAutomaticUpdates": true, + "patchSettings": map[string]interface{}{ + "assessmentMode": "ImageDefault", + "enableHotpatching": false, + "patchMode": "AutomaticByOS", + }, + "provisionVMAgent": true, + }, + }, + "storageProfile": map[string]interface{}{ + "dataDisks": []interface{}{}, + "imageReference": map[string]interface{}{ + "offer": "WindowsServer", + "publisher": "MicrosoftWindowsServer", + "sku": "2019-Datacenter", + "version": "latest", + }, + "osDisk": map[string]interface{}{ + "name": "[concat('scenariovm', 'osDisk')]", + "caching": "ReadWrite", + "createOption": "FromImage", + "deleteOption": "Delete", + "diskSizeGB": float64(127), + "managedDisk": map[string]interface{}{ + "storageAccountType": "Premium_LRS", + }, + "osType": "Windows", + }, + }, + }, + "zones": []interface{}{ + "1", + }, + }, + }, + "variables": map[string]interface{}{}, + } + params = map[string]interface{}{ + "adminPassword": map[string]interface{}{"value": testsuite.adminPassword}, + "location": map[string]interface{}{"value": testsuite.location}, + "vnicId": map[string]interface{}{"value": testsuite.vnicId}, + } + deployment = armresources.Deployment{ + Properties: &armresources.DeploymentProperties{ + Template: template, + Parameters: params, + Mode: to.Ptr(armresources.DeploymentModeIncremental), + }, + } + deploymentExtend, err = testutil.CreateDeployment(testsuite.ctx, testsuite.subscriptionId, testsuite.cred, testsuite.options, testsuite.resourceGroupName, "VirtualMachine_Create", &deployment) + testsuite.Require().NoError(err) + testsuite.virtualMachineId = deploymentExtend.Properties.Outputs.(map[string]interface{})["virtualMachineId"].(map[string]interface{})["value"].(string) +} + +// Microsoft.Insights/metricAlerts +func (testsuite *MetricalertsTestSuite) TestMetricalert() { + var statusName string + var err error + // From step MetricAlerts_Create + fmt.Println("Call operation: MetricAlerts_CreateOrUpdate") + metricAlertsClient, err := armmonitor.NewMetricAlertsClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) + testsuite.Require().NoError(err) + _, err = metricAlertsClient.CreateOrUpdate(testsuite.ctx, testsuite.resourceGroupName, testsuite.ruleName, armmonitor.MetricAlertResource{ + Location: to.Ptr("global"), + Properties: &armmonitor.MetricAlertProperties{ + Description: to.Ptr("This is the description of the rule1"), + AutoMitigate: to.Ptr(true), + Criteria: &armmonitor.MetricAlertMultipleResourceMultipleMetricCriteria{ + ODataType: to.Ptr(armmonitor.OdatatypeMicrosoftAzureMonitorMultipleResourceMultipleMetricCriteria), + AllOf: []armmonitor.MultiMetricCriteriaClassification{ + &armmonitor.DynamicMetricCriteria{ + Name: to.Ptr("High_CPU_80"), + CriterionType: to.Ptr(armmonitor.CriterionTypeDynamicThresholdCriterion), + MetricName: to.Ptr("Percentage CPU"), + MetricNamespace: to.Ptr("microsoft.compute/virtualmachines"), + TimeAggregation: to.Ptr(armmonitor.AggregationTypeEnumAverage), + AlertSensitivity: to.Ptr(armmonitor.DynamicThresholdSensitivityMedium), + FailingPeriods: &armmonitor.DynamicThresholdFailingPeriods{ + MinFailingPeriodsToAlert: to.Ptr[float32](4), + NumberOfEvaluationPeriods: to.Ptr[float32](4), + }, + Operator: to.Ptr(armmonitor.DynamicThresholdOperatorGreaterOrLessThan), + }}, + }, + Enabled: to.Ptr(true), + EvaluationFrequency: to.Ptr("PT1M"), + Scopes: []*string{ + to.Ptr(testsuite.virtualMachineId)}, + Severity: to.Ptr[int32](3), + TargetResourceRegion: to.Ptr(testsuite.location), + TargetResourceType: to.Ptr("Microsoft.Compute/virtualMachines"), + WindowSize: to.Ptr("PT15M"), + }, + }, nil) + testsuite.Require().NoError(err) + + // From step MetricAlerts_ListBySubscription + fmt.Println("Call operation: MetricAlerts_ListBySubscription") + metricAlertsClientNewListBySubscriptionPager := metricAlertsClient.NewListBySubscriptionPager(nil) + for metricAlertsClientNewListBySubscriptionPager.More() { + _, err := metricAlertsClientNewListBySubscriptionPager.NextPage(testsuite.ctx) + testsuite.Require().NoError(err) + break + } + + // From step MetricAlerts_ListByResourceGroup + fmt.Println("Call operation: MetricAlerts_ListByResourceGroup") + metricAlertsClientNewListByResourceGroupPager := metricAlertsClient.NewListByResourceGroupPager(testsuite.resourceGroupName, nil) + for metricAlertsClientNewListByResourceGroupPager.More() { + _, err := metricAlertsClientNewListByResourceGroupPager.NextPage(testsuite.ctx) + testsuite.Require().NoError(err) + break + } + + // From step MetricAlerts_Get + fmt.Println("Call operation: MetricAlerts_Get") + _, err = metricAlertsClient.Get(testsuite.ctx, testsuite.resourceGroupName, testsuite.ruleName, nil) + testsuite.Require().NoError(err) + + // From step MetricAlerts_Update + fmt.Println("Call operation: MetricAlerts_Update") + _, err = metricAlertsClient.Update(testsuite.ctx, testsuite.resourceGroupName, testsuite.ruleName, armmonitor.MetricAlertResourcePatch{ + Tags: map[string]*string{ + "tag1": to.Ptr("value1"), + }, + }, nil) + testsuite.Require().NoError(err) + + // From step MetricAlertsStatus_List + fmt.Println("Call operation: MetricAlerts_List") + metricAlertsStatusClient, err := armmonitor.NewMetricAlertsStatusClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) + testsuite.Require().NoError(err) + metricAlertsStatusClientListResponse, err := metricAlertsStatusClient.List(testsuite.ctx, testsuite.resourceGroupName, testsuite.ruleName, nil) + testsuite.Require().NoError(err) + statusName = *metricAlertsStatusClientListResponse.Value[0].Name + + // From step MetricAlertsStatus_ListByName + fmt.Println("Call operation: MetricAlerts_ListByName") + _, err = metricAlertsStatusClient.ListByName(testsuite.ctx, testsuite.resourceGroupName, testsuite.ruleName, statusName, nil) + testsuite.Require().NoError(err) + + // From step MetricAlerts_Delete + fmt.Println("Call operation: MetricAlerts_Delete") + _, err = metricAlertsClient.Delete(testsuite.ctx, testsuite.resourceGroupName, testsuite.ruleName, nil) + testsuite.Require().NoError(err) +} diff --git a/sdk/resourcemanager/monitor/armmonitor/privatelinkscopes_live_test.go b/sdk/resourcemanager/monitor/armmonitor/privatelinkscopes_live_test.go new file mode 100644 index 000000000000..4528420fdf15 --- /dev/null +++ b/sdk/resourcemanager/monitor/armmonitor/privatelinkscopes_live_test.go @@ -0,0 +1,117 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armmonitor_test + +import ( + "context" + "fmt" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/monitor/armmonitor" + "github.com/stretchr/testify/suite" +) + +type PrivatelinkscopesTestSuite struct { + suite.Suite + + ctx context.Context + cred azcore.TokenCredential + options *arm.ClientOptions + scopeName string + location string + resourceGroupName string + subscriptionId string +} + +func (testsuite *PrivatelinkscopesTestSuite) SetupSuite() { + testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/monitor/armmonitor/testdata") + testsuite.ctx = context.Background() + testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) + testsuite.scopeName = testutil.GenerateAlphaNumericID(testsuite.T(), "linkscopena", 6) + testsuite.location = testutil.GetEnv("LOCATION", "eastus") + testsuite.resourceGroupName = testutil.GetEnv("RESOURCE_GROUP_NAME", "scenarioTestTempGroup") + testsuite.subscriptionId = testutil.GetEnv("AZURE_SUBSCRIPTION_ID", "00000000-0000-0000-0000-000000000000") + + resourceGroup, _, err := testutil.CreateResourceGroup(testsuite.ctx, testsuite.subscriptionId, testsuite.cred, testsuite.options, testsuite.location) + testsuite.Require().NoError(err) + testsuite.resourceGroupName = *resourceGroup.Name +} + +func (testsuite *PrivatelinkscopesTestSuite) TearDownSuite() { + _, err := testutil.DeleteResourceGroup(testsuite.ctx, testsuite.subscriptionId, testsuite.cred, testsuite.options, testsuite.resourceGroupName) + testsuite.Require().NoError(err) + testutil.StopRecording(testsuite.T()) +} + +func TestPrivatelinkscopesTestSuite(t *testing.T) { + suite.Run(t, new(PrivatelinkscopesTestSuite)) +} + +// microsoft.insights/privateLinkScopes +func (testsuite *PrivatelinkscopesTestSuite) TestPrivatelinkscope() { + var err error + // From step PrivateLinkScopes_Create + fmt.Println("Call operation: PrivateLinkScopes_CreateOrUpdate") + privateLinkScopesClient, err := armmonitor.NewPrivateLinkScopesClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) + testsuite.Require().NoError(err) + _, err = privateLinkScopesClient.CreateOrUpdate(testsuite.ctx, testsuite.resourceGroupName, testsuite.scopeName, armmonitor.AzureMonitorPrivateLinkScope{ + Location: to.Ptr("Global"), + Properties: &armmonitor.AzureMonitorPrivateLinkScopeProperties{ + AccessModeSettings: &armmonitor.AccessModeSettings{ + QueryAccessMode: to.Ptr(armmonitor.AccessModeOpen), + IngestionAccessMode: to.Ptr(armmonitor.AccessModePrivateOnly), + }, + }, + }, nil) + testsuite.Require().NoError(err) + + // From step PrivateLinkScopes_List + fmt.Println("Call operation: PrivateLinkScopes_List") + privateLinkScopesClientNewListPager := privateLinkScopesClient.NewListPager(nil) + for privateLinkScopesClientNewListPager.More() { + _, err := privateLinkScopesClientNewListPager.NextPage(testsuite.ctx) + testsuite.Require().NoError(err) + break + } + + // From step PrivateLinkScopes_ListByResourceGroup + fmt.Println("Call operation: PrivateLinkScopes_ListByResourceGroup") + privateLinkScopesClientNewListByResourceGroupPager := privateLinkScopesClient.NewListByResourceGroupPager(testsuite.resourceGroupName, nil) + for privateLinkScopesClientNewListByResourceGroupPager.More() { + _, err := privateLinkScopesClientNewListByResourceGroupPager.NextPage(testsuite.ctx) + testsuite.Require().NoError(err) + break + } + + // From step PrivateLinkScopes_Get + fmt.Println("Call operation: PrivateLinkScopes_Get") + _, err = privateLinkScopesClient.Get(testsuite.ctx, testsuite.resourceGroupName, testsuite.scopeName, nil) + testsuite.Require().NoError(err) + + // From step PrivateLinkScopes_UpdateTags + fmt.Println("Call operation: PrivateLinkScopes_UpdateTags") + _, err = privateLinkScopesClient.UpdateTags(testsuite.ctx, testsuite.resourceGroupName, testsuite.scopeName, armmonitor.TagsResource{ + Tags: map[string]*string{ + "Tag1": to.Ptr("Value1"), + "Tag2": to.Ptr("Value2"), + }, + }, nil) + testsuite.Require().NoError(err) + + // From step PrivateLinkScopes_Delete + fmt.Println("Call operation: PrivateLinkScopes_Delete") + privateLinkScopesClientDeleteResponsePoller, err := privateLinkScopesClient.BeginDelete(testsuite.ctx, testsuite.resourceGroupName, testsuite.scopeName, nil) + testsuite.Require().NoError(err) + _, err = testutil.PollForTest(testsuite.ctx, privateLinkScopesClientDeleteResponsePoller) + testsuite.Require().NoError(err) +} diff --git a/sdk/resourcemanager/monitor/armmonitor/testdata/recordings/TestActiongroupsTestSuite.json b/sdk/resourcemanager/monitor/armmonitor/testdata/recordings/TestActiongroupsTestSuite.json deleted file mode 100644 index af990309a5e0..000000000000 --- a/sdk/resourcemanager/monitor/armmonitor/testdata/recordings/TestActiongroupsTestSuite.json +++ /dev/null @@ -1,524 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "eastus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:31:50 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T063150Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "eastus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Insights/actionGroups/actiongroupnaEpxQjq?api-version=2022-06-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "279", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armmonitor/v0.7.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "Global", - "properties": { - "emailReceivers": [ - { - "emailAddress": "johndoe@eamil.com", - "name": "John Doe\u0027s email", - "useCommonAlertSchema": false - } - ], - "enabled": true, - "groupShortName": "sample", - "smsReceivers": [ - { - "countryCode": "1", - "name": "John Doe\u0027s mobile", - "phoneNumber": "1234567890" - } - ] - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "806", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:31:56 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "24", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T063156Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/microsoft.insights/actionGroups/actiongroupnaEpxQjq", - "type": "Microsoft.Insights/ActionGroups", - "name": "actiongroupnaEpxQjq", - "location": "Global", - "kind": null, - "tags": null, - "properties": { - "groupShortName": "sample", - "enabled": true, - "tags": null, - "emailReceivers": [ - { - "name": "John Doe\u0027s email", - "emailAddress": "johndoe@eamil.com", - "status": "Enabled", - "useCommonAlertSchema": false - } - ], - "smsReceivers": [ - { - "name": "John Doe\u0027s mobile", - "countryCode": "1", - "phoneNumber": "1234567890", - "status": "Enabled" - } - ], - "webhookReceivers": [], - "eventHubReceivers": [], - "itsmReceivers": [], - "azureAppPushReceivers": [], - "automationRunbookReceivers": [], - "voiceReceivers": [], - "logicAppReceivers": [], - "azureFunctionReceivers": [], - "armRoleReceivers": [] - }, - "identity": null - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Insights/actionGroups/actiongroupnaEpxQjq?api-version=2022-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armmonitor/v0.7.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:31:56 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "249", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T063157Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/microsoft.insights/actionGroups/actiongroupnaEpxQjq", - "type": "Microsoft.Insights/ActionGroups", - "name": "actiongroupnaEpxQjq", - "location": "Global", - "kind": null, - "tags": null, - "properties": { - "groupShortName": "sample", - "enabled": true, - "tags": null, - "emailReceivers": [ - { - "name": "John Doe\u0027s email", - "emailAddress": "johndoe@eamil.com", - "status": "Enabled", - "useCommonAlertSchema": false - } - ], - "smsReceivers": [ - { - "name": "John Doe\u0027s mobile", - "countryCode": "1", - "phoneNumber": "1234567890", - "status": "Enabled" - } - ], - "webhookReceivers": [], - "eventHubReceivers": [], - "itsmReceivers": [], - "azureAppPushReceivers": [], - "automationRunbookReceivers": [], - "voiceReceivers": [], - "logicAppReceivers": [], - "azureFunctionReceivers": [], - "armRoleReceivers": [] - }, - "identity": null - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Insights/actionGroups/actiongroupnaEpxQjq?api-version=2022-06-01", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "73", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armmonitor/v0.7.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "enabled": false - }, - "tags": { - "key1": "value1", - "key2": "value2" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:31:59 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "23", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T063200Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/microsoft.insights/actionGroups/actiongroupnaEpxQjq", - "type": "Microsoft.Insights/ActionGroups", - "name": "actiongroupnaEpxQjq", - "location": "Global", - "kind": null, - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "groupShortName": "sample", - "enabled": true, - "tags": null, - "emailReceivers": [ - { - "name": "John Doe\u0027s email", - "emailAddress": "johndoe@eamil.com", - "status": "Enabled", - "useCommonAlertSchema": false - } - ], - "smsReceivers": [ - { - "name": "John Doe\u0027s mobile", - "countryCode": "1", - "phoneNumber": "1234567890", - "status": "Enabled" - } - ], - "webhookReceivers": [], - "eventHubReceivers": [], - "itsmReceivers": [], - "azureAppPushReceivers": [], - "automationRunbookReceivers": [], - "voiceReceivers": [], - "logicAppReceivers": [], - "azureFunctionReceivers": [], - "armRoleReceivers": [] - }, - "identity": null - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Insights/actionGroups?api-version=2022-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armmonitor/v0.7.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:31:59 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "248", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T063200Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/czwTest/providers/microsoft.insights/actionGroups/Application Insights Smart Detection", - "type": "Microsoft.Insights/ActionGroups", - "name": "Application Insights Smart Detection", - "location": "Global", - "kind": null, - "tags": null, - "properties": { - "groupShortName": "SmartDetect", - "enabled": true, - "tags": null, - "emailReceivers": [], - "smsReceivers": [], - "webhookReceivers": [], - "eventHubReceivers": [], - "itsmReceivers": [], - "azureAppPushReceivers": [], - "automationRunbookReceivers": [], - "voiceReceivers": [], - "logicAppReceivers": [], - "azureFunctionReceivers": [], - "armRoleReceivers": [ - { - "name": "Monitoring Contributor", - "roleId": "00000000-0000-0000-0000-000000000000", - "useCommonAlertSchema": true - }, - { - "name": "Monitoring Reader", - "roleId": "00000000-0000-0000-0000-000000000000", - "useCommonAlertSchema": true - } - ] - }, - "identity": null - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/microsoft.insights/actionGroups/actiongroupnaEpxQjq", - "type": "Microsoft.Insights/ActionGroups", - "name": "actiongroupnaEpxQjq", - "location": "Global", - "kind": null, - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "groupShortName": "sample", - "enabled": true, - "tags": null, - "emailReceivers": [ - { - "name": "John Doe\u0027s email", - "emailAddress": "johndoe@eamil.com", - "status": "Enabled", - "useCommonAlertSchema": false - } - ], - "smsReceivers": [ - { - "name": "John Doe\u0027s mobile", - "countryCode": "1", - "phoneNumber": "1234567890", - "status": "Enabled" - } - ], - "webhookReceivers": [], - "eventHubReceivers": [], - "itsmReceivers": [], - "azureAppPushReceivers": [], - "automationRunbookReceivers": [], - "voiceReceivers": [], - "logicAppReceivers": [], - "azureFunctionReceivers": [], - "armRoleReceivers": [] - }, - "identity": null - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Insights/actionGroups?api-version=2022-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armmonitor/v0.7.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:32:00 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "247", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T063200Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/microsoft.insights/actionGroups/actiongroupnaEpxQjq", - "type": "Microsoft.Insights/ActionGroups", - "name": "actiongroupnaEpxQjq", - "location": "Global", - "kind": null, - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "groupShortName": "sample", - "enabled": true, - "tags": null, - "emailReceivers": [ - { - "name": "John Doe\u0027s email", - "emailAddress": "johndoe@eamil.com", - "status": "Enabled", - "useCommonAlertSchema": false - } - ], - "smsReceivers": [ - { - "name": "John Doe\u0027s mobile", - "countryCode": "1", - "phoneNumber": "1234567890", - "status": "Enabled" - } - ], - "webhookReceivers": [], - "eventHubReceivers": [], - "itsmReceivers": [], - "azureAppPushReceivers": [], - "automationRunbookReceivers": [], - "voiceReceivers": [], - "logicAppReceivers": [], - "azureFunctionReceivers": [], - "armRoleReceivers": [] - }, - "identity": null - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Insights/actionGroups/actiongroupnaEpxQjq?api-version=2022-06-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armmonitor/v0.7.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Wed, 12 Oct 2022 06:32:03 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14999", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T063204Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Wed, 12 Oct 2022 06:32:05 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ0LUVBU1RVUyIsImpvYkxvY2F0aW9uIjoiZWFzdHVzIn0?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14998", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T063205Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": { - "recordingRandomSeed": "1665556303" - } -} diff --git a/sdk/resourcemanager/monitor/armmonitor/testdata/recordings/TestActivitylogalertsTestSuite.json b/sdk/resourcemanager/monitor/armmonitor/testdata/recordings/TestActivitylogalertsTestSuite.json deleted file mode 100644 index 3719e759ffa8..000000000000 --- a/sdk/resourcemanager/monitor/armmonitor/testdata/recordings/TestActivitylogalertsTestSuite.json +++ /dev/null @@ -1,509 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "eastus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:32:07 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T063207Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "eastus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Insights/activityLogAlerts/activitylogalertnaEpxQjq?api-version=2020-10-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "207", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armmonitor/v0.7.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "Global", - "properties": { - "condition": { - "allOf": [ - { - "equals": "Administrative", - "field": "category" - }, - { - "equals": "Error", - "field": "level" - } - ] - }, - "scopes": [ - "/subscriptions/00000000-0000-0000-0000-000000000000" - ] - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "api-supported-versions": "2017-03-01-preview, 2017-04-01, 2020-10-01", - "Arr-Disable-Session-Affinity": "true", - "Cache-Control": "no-cache", - "Content-Length": "645", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:32:11 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-AspNet-Version": "4.0.30319", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1197", - "x-ms-request-id": [ - "00000000-0000-0000-0000-000000000000", - "4836e313-235f-49fd-a1fe-d16e67d8d598" - ], - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T063211Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/microsoft.insights/activityLogAlerts/activitylogalertnaEpxQjq", - "name": "activitylogalertnaEpxQjq", - "type": "Microsoft.Insights/ActivityLogAlerts", - "location": "Global", - "properties": { - "scopes": [ - "/subscriptions/00000000-0000-0000-0000-000000000000" - ], - "condition": { - "allOf": [ - { - "field": "category", - "equals": "Administrative" - }, - { - "field": "level", - "equals": "Error" - } - ] - }, - "enabled": false - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Insights/activityLogAlerts?api-version=2020-10-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armmonitor/v0.7.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "2017-03-01-preview, 2017-04-01, 2020-10-01", - "Arr-Disable-Session-Affinity": "true", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:32:11 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding" - ], - "X-AspNet-Version": "4.0.30319", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11998", - "x-ms-request-id": [ - "00000000-0000-0000-0000-000000000000", - "abde7a71-1a61-4a10-b747-dd4b296f8c21" - ], - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T063212Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/microsoft.insights/activityLogAlerts/activitylogalertnaEpxQjq", - "name": "activitylogalertnaEpxQjq", - "type": "Microsoft.Insights/ActivityLogAlerts", - "location": "Global", - "tags": {}, - "properties": { - "scopes": [ - "/subscriptions/00000000-0000-0000-0000-000000000000" - ], - "condition": { - "allOf": [ - { - "field": "category", - "equals": "Administrative" - }, - { - "field": "level", - "equals": "Error" - } - ] - }, - "enabled": false - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myjstest/providers/microsoft.insights/activityLogAlerts/test", - "name": "test", - "type": "Microsoft.Insights/ActivityLogAlerts", - "location": "Global", - "tags": {}, - "properties": { - "scopes": [ - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myjstest/providers/Microsoft.OperationalInsights/workspaces/czwlaw" - ], - "condition": { - "allOf": [ - { - "field": "category", - "equals": "Administrative" - }, - { - "field": "operationName", - "equals": "Microsoft.OperationalInsights/workspaces/sharedKeys/action" - }, - { - "field": "level", - "containsAny": [ - "informational" - ] - }, - { - "field": "status", - "containsAny": [ - "succeeded" - ] - }, - { - "field": "caller", - "equals": "v-ziweichen@microsoft.com" - } - ] - }, - "actions": { - "actionGroups": [] - }, - "enabled": true, - "description": "" - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Insights/activityLogAlerts?api-version=2020-10-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armmonitor/v0.7.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "2017-03-01-preview, 2017-04-01, 2020-10-01", - "Arr-Disable-Session-Affinity": "true", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:32:11 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding" - ], - "X-AspNet-Version": "4.0.30319", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11997", - "x-ms-request-id": [ - "00000000-0000-0000-0000-000000000000", - "31118a2a-ae2f-4e7a-b0bf-70caf211db38" - ], - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T063212Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/microsoft.insights/activityLogAlerts/activitylogalertnaEpxQjq", - "name": "activitylogalertnaEpxQjq", - "type": "Microsoft.Insights/ActivityLogAlerts", - "location": "Global", - "tags": {}, - "properties": { - "scopes": [ - "/subscriptions/00000000-0000-0000-0000-000000000000" - ], - "condition": { - "allOf": [ - { - "field": "category", - "equals": "Administrative" - }, - { - "field": "level", - "equals": "Error" - } - ] - }, - "enabled": false - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Insights/activityLogAlerts/activitylogalertnaEpxQjq?api-version=2020-10-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armmonitor/v0.7.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "2017-03-01-preview, 2017-04-01, 2020-10-01", - "Arr-Disable-Session-Affinity": "true", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:32:12 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding" - ], - "X-AspNet-Version": "4.0.30319", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11996", - "x-ms-request-id": [ - "00000000-0000-0000-0000-000000000000", - "a7b91f8a-c565-4001-9905-11746354c6b1" - ], - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T063212Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/microsoft.insights/activityLogAlerts/activitylogalertnaEpxQjq", - "name": "activitylogalertnaEpxQjq", - "type": "Microsoft.Insights/ActivityLogAlerts", - "location": "Global", - "tags": {}, - "properties": { - "scopes": [ - "/subscriptions/00000000-0000-0000-0000-000000000000" - ], - "condition": { - "allOf": [ - { - "field": "category", - "equals": "Administrative" - }, - { - "field": "level", - "equals": "Error" - } - ] - }, - "enabled": false - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Insights/activityLogAlerts/activitylogalertnaEpxQjq?api-version=2020-10-01", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "73", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armmonitor/v0.7.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "enabled": false - }, - "tags": { - "key1": "value1", - "key2": "value2" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "2017-03-01-preview, 2017-04-01, 2020-10-01", - "Arr-Disable-Session-Affinity": "true", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:32:17 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding" - ], - "X-AspNet-Version": "4.0.30319", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1196", - "x-ms-request-id": [ - "00000000-0000-0000-0000-000000000000", - "e4781549-1ae7-4455-993d-aa038a2bc204" - ], - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T063218Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/microsoft.insights/activityLogAlerts/activitylogalertnaEpxQjq", - "name": "activitylogalertnaEpxQjq", - "type": "Microsoft.Insights/ActivityLogAlerts", - "location": "Global", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "scopes": [ - "/subscriptions/00000000-0000-0000-0000-000000000000" - ], - "condition": { - "allOf": [ - { - "field": "category", - "equals": "Administrative" - }, - { - "field": "level", - "equals": "Error" - } - ] - }, - "enabled": false - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Insights/activityLogAlerts/activitylogalertnaEpxQjq?api-version=2020-10-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armmonitor/v0.7.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "2017-03-01-preview, 2017-04-01, 2020-10-01", - "Arr-Disable-Session-Affinity": "true", - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Wed, 12 Oct 2022 06:32:21 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-AspNet-Version": "4.0.30319", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14997", - "x-ms-request-id": [ - "00000000-0000-0000-0000-000000000000", - "dae6181c-92de-4d02-b75c-5c573985b5bc" - ], - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T063222Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Wed, 12 Oct 2022 06:32:22 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQzMjYtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14996", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T063223Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": { - "recordingRandomSeed": "1665556303" - } -} diff --git a/sdk/resourcemanager/monitor/armmonitor/testdata/recordings/TestAutoscaleTestSuite.json b/sdk/resourcemanager/monitor/armmonitor/testdata/recordings/TestAutoscaleTestSuite.json deleted file mode 100644 index 192dabedb6a0..000000000000 --- a/sdk/resourcemanager/monitor/armmonitor/testdata/recordings/TestAutoscaleTestSuite.json +++ /dev/null @@ -1,8898 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "eastus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:32:25 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1195", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T063225Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "eastus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/NetworkAndSubnet_Create?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "834", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "mode": "Incremental", - "parameters": { - "location": { - "value": "eastus" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "outputs": { - "subnetId": { - "type": "string", - "value": "[resourceId(\u0027Microsoft.Network/virtualNetworks/subnets\u0027, parameters(\u0027virtualNetworksName\u0027), \u0027vmsssubnet\u0027)]" - } - }, - "parameters": { - "location": { - "defaultValue": "$(location)", - "type": "string" - }, - "virtualNetworksName": { - "defaultValue": "vmssvnet", - "type": "string" - } - }, - "resources": [ - { - "apiVersion": "2021-05-01", - "location": "[parameters(\u0027location\u0027)]", - "name": "[parameters(\u0027virtualNetworksName\u0027)]", - "properties": { - "addressSpace": { - "addressPrefixes": [ - "10.0.0.0/16" - ] - }, - "subnets": [ - { - "name": "vmsssubnet", - "properties": { - "addressPrefix": "10.0.0.0/24" - } - } - ] - }, - "tags": {}, - "type": "Microsoft.Network/virtualNetworks" - } - ] - } - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/NetworkAndSubnet_Create/operationStatuses/08585360505377393897?api-version=2021-04-01", - "Cache-Control": "no-cache", - "Content-Length": "720", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:32:28 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1194", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T063229Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/NetworkAndSubnet_Create", - "name": "NetworkAndSubnet_Create", - "type": "Microsoft.Resources/deployments", - "properties": { - "templateHash": "13411785402429260850", - "parameters": { - "location": { - "type": "String", - "value": "eastus" - }, - "virtualNetworksName": { - "type": "String", - "value": "vmssvnet" - } - }, - "mode": "Incremental", - "provisioningState": "Accepted", - "timestamp": "2022-10-12T06:32:28.6809964Z", - "duration": "PT0.000238S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Network", - "resourceTypes": [ - { - "resourceType": "virtualNetworks", - "locations": [ - "eastus" - ] - } - ] - } - ], - "dependencies": [] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/NetworkAndSubnet_Create/operationStatuses/08585360505377393897?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "20", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:32:29 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11995", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T063230Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/NetworkAndSubnet_Create/operationStatuses/08585360505377393897?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "22", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:33:00 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11994", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T063301Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/NetworkAndSubnet_Create?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "1092", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:33:01 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11993", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T063301Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/NetworkAndSubnet_Create", - "name": "NetworkAndSubnet_Create", - "type": "Microsoft.Resources/deployments", - "properties": { - "templateHash": "13411785402429260850", - "parameters": { - "location": { - "type": "String", - "value": "eastus" - }, - "virtualNetworksName": { - "type": "String", - "value": "vmssvnet" - } - }, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2022-10-12T06:32:42.6884997Z", - "duration": "PT14.0077413S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Network", - "resourceTypes": [ - { - "resourceType": "virtualNetworks", - "locations": [ - "eastus" - ] - } - ] - } - ], - "dependencies": [], - "outputs": { - "subnetId": { - "type": "String", - "value": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/vmssvnet/subnets/vmsssubnet" - } - }, - "outputResources": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/vmssvnet" - } - ] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/NetworkInterface_Create?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "790", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "mode": "Incremental", - "parameters": { - "location": { - "value": "eastus" - }, - "subnetId": { - "value": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/vmssvnet/subnets/vmsssubnet" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "location": { - "defaultValue": "$(location)", - "type": "string" - }, - "subnetId": { - "defaultValue": "$(subnetId)", - "type": "string" - } - }, - "resources": [ - { - "apiVersion": "2021-08-01", - "location": "[parameters(\u0027location\u0027)]", - "name": "vmssnic", - "properties": { - "ipConfigurations": [ - { - "name": "Ipv4config", - "properties": { - "subnet": { - "id": "[parameters(\u0027subnetId\u0027)]" - } - } - } - ] - }, - "tags": {}, - "type": "Microsoft.Network/networkInterfaces" - } - ] - } - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/NetworkInterface_Create/operationStatuses/08585360505024795921?api-version=2021-04-01", - "Cache-Control": "no-cache", - "Content-Length": "857", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:33:04 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1193", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T063304Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/NetworkInterface_Create", - "name": "NetworkInterface_Create", - "type": "Microsoft.Resources/deployments", - "properties": { - "templateHash": "17680905132745605815", - "parameters": { - "location": { - "type": "String", - "value": "eastus" - }, - "subnetId": { - "type": "String", - "value": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/vmssvnet/subnets/vmsssubnet" - } - }, - "mode": "Incremental", - "provisioningState": "Accepted", - "timestamp": "2022-10-12T06:33:03.9497814Z", - "duration": "PT0.0008431S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Network", - "resourceTypes": [ - { - "resourceType": "networkInterfaces", - "locations": [ - "eastus" - ] - } - ] - } - ], - "dependencies": [] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/NetworkInterface_Create/operationStatuses/08585360505024795921?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "20", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:33:05 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11992", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T063305Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/NetworkInterface_Create/operationStatuses/08585360505024795921?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "22", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:33:35 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11991", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T063336Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/NetworkInterface_Create?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "1024", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:33:36 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11990", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T063337Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/NetworkInterface_Create", - "name": "NetworkInterface_Create", - "type": "Microsoft.Resources/deployments", - "properties": { - "templateHash": "17680905132745605815", - "parameters": { - "location": { - "type": "String", - "value": "eastus" - }, - "subnetId": { - "type": "String", - "value": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/vmssvnet/subnets/vmsssubnet" - } - }, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2022-10-12T06:33:14.1437346Z", - "duration": "PT10.1947963S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Network", - "resourceTypes": [ - { - "resourceType": "networkInterfaces", - "locations": [ - "eastus" - ] - } - ] - } - ], - "dependencies": [], - "outputResources": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/networkInterfaces/vmssnic" - } - ] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/VMSS_Create?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "2304", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "mode": "Incremental", - "parameters": { - "adminPassword": { - "value": "000000000000" - }, - "location": { - "value": "eastus" - }, - "subnetId": { - "value": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/vmssvnet/subnets/vmsssubnet" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "outputs": { - "vmssId": { - "type": "string", - "value": "[resourceId(\u0027Microsoft.Compute/virtualMachineScaleSets\u0027, parameters(\u0027virtualMachineScaleSetName\u0027))]" - } - }, - "parameters": { - "adminPassword": { - "defaultValue": "$(adminPassword)", - "type": "securestring" - }, - "location": { - "defaultValue": "$(location)", - "type": "string" - }, - "subnetId": { - "defaultValue": "$(subnetId)", - "type": "string" - }, - "virtualMachineScaleSetName": { - "defaultValue": "monitorvmss", - "type": "string" - } - }, - "resources": [ - { - "apiVersion": "2022-03-01", - "location": "[parameters(\u0027location\u0027)]", - "name": "[parameters(\u0027virtualMachineScaleSetName\u0027)]", - "properties": { - "scaleInPolicy": { - "rules": [ - "Default" - ] - }, - "singlePlacementGroup": false, - "upgradePolicy": { - "mode": "Manual" - }, - "virtualMachineProfile": { - "diagnosticsProfile": { - "bootDiagnostics": { - "enabled": true - } - }, - "networkProfile": { - "networkInterfaceConfigurations": [ - { - "name": "[concat(parameters(\u0027virtualMachineScaleSetName\u0027), \u0027vnet-nic01\u0027)]", - "properties": { - "enableAcceleratedNetworking": true, - "enableIPForwarding": false, - "ipConfigurations": [ - { - "name": "[concat(parameters(\u0027virtualMachineScaleSetName\u0027), \u0027vnet-nic01-defaultIpConfiguration\u0027)]", - "properties": { - "primary": true, - "privateIPAddressVersion": "IPv4", - "subnet": { - "id": "[parameters(\u0027subnetId\u0027)]" - } - } - } - ], - "primary": true - } - } - ] - }, - "osProfile": { - "adminPassword": "[parameters(\u0027adminPassword\u0027)]", - "adminUsername": "azureuser", - "allowExtensionOperations": true, - "computerNamePrefix": "vmss", - "secrets": [], - "windowsConfiguration": { - "enableAutomaticUpdates": true, - "provisionVMAgent": true - } - }, - "storageProfile": { - "imageReference": { - "offer": "WindowsServer", - "publisher": "MicrosoftWindowsServer", - "sku": "2019-Datacenter", - "version": "latest" - }, - "osDisk": { - "caching": "ReadWrite", - "createOption": "FromImage", - "diskSizeGB": 127, - "managedDisk": { - "storageAccountType": "Premium_LRS" - }, - "osType": "Windows" - } - } - } - }, - "sku": { - "capacity": 2, - "name": "Standard_DS1_v2", - "tier": "Standard" - }, - "type": "Microsoft.Compute/virtualMachineScaleSets" - } - ], - "variables": {} - } - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/VMSS_Create/operationStatuses/08585360504666936888?api-version=2021-04-01", - "Cache-Control": "no-cache", - "Content-Length": "947", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:33:40 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1192", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T063341Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/VMSS_Create", - "name": "VMSS_Create", - "type": "Microsoft.Resources/deployments", - "properties": { - "templateHash": "3231671853012724564", - "parameters": { - "adminPassword": { - "type": "SecureString" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "subnetId": { - "type": "String", - "value": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/vmssvnet/subnets/vmsssubnet" - }, - "virtualMachineScaleSetName": { - "type": "String", - "value": "monitorvmss" - } - }, - "mode": "Incremental", - "provisioningState": "Accepted", - "timestamp": "2022-10-12T06:33:40.2651856Z", - "duration": "PT0.0002281S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Compute", - "resourceTypes": [ - { - "resourceType": "virtualMachineScaleSets", - "locations": [ - "eastus" - ] - } - ] - } - ], - "dependencies": [] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/VMSS_Create/operationStatuses/08585360504666936888?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "20", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:33:41 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11989", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T063342Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/VMSS_Create/operationStatuses/08585360504666936888?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "20", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:34:11 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11988", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T063412Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/VMSS_Create/operationStatuses/08585360504666936888?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "20", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:34:43 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11987", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T063443Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/VMSS_Create/operationStatuses/08585360504666936888?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "20", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:35:13 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11987", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T063513Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/VMSS_Create/operationStatuses/08585360504666936888?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "20", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:35:43 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11986", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T063544Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/VMSS_Create/operationStatuses/08585360504666936888?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "20", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:36:14 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11985", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T063614Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/VMSS_Create/operationStatuses/08585360504666936888?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "20", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:36:45 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11984", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T063645Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/VMSS_Create/operationStatuses/08585360504666936888?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "20", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:37:15 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11983", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T063716Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/VMSS_Create/operationStatuses/08585360504666936888?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "20", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:37:46 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11982", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T063746Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/VMSS_Create/operationStatuses/08585360504666936888?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "20", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:38:16 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11981", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T063817Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/VMSS_Create/operationStatuses/08585360504666936888?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "20", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:38:47 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11980", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T063847Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/VMSS_Create/operationStatuses/08585360504666936888?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "20", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:39:18 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11979", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T063918Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/VMSS_Create/operationStatuses/08585360504666936888?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "20", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:39:48 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11978", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T063948Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/VMSS_Create/operationStatuses/08585360504666936888?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "22", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:40:18 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11977", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T064019Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/VMSS_Create?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "1320", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:40:19 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11976", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T064020Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/VMSS_Create", - "name": "VMSS_Create", - "type": "Microsoft.Resources/deployments", - "properties": { - "templateHash": "3231671853012724564", - "parameters": { - "adminPassword": { - "type": "SecureString" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "subnetId": { - "type": "String", - "value": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/vmssvnet/subnets/vmsssubnet" - }, - "virtualMachineScaleSetName": { - "type": "String", - "value": "monitorvmss" - } - }, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2022-10-12T06:39:55.7131835Z", - "duration": "PT6M15.448226S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Compute", - "resourceTypes": [ - { - "resourceType": "virtualMachineScaleSets", - "locations": [ - "eastus" - ] - } - ] - } - ], - "dependencies": [], - "outputs": { - "vmssId": { - "type": "String", - "value": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/virtualMachineScaleSets/monitorvmss" - } - }, - "outputResources": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/virtualMachineScaleSets/monitorvmss" - } - ] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Insights/autoscalesettings/autoscalesettingnaEpxQjq?api-version=2015-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "578", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armmonitor/v0.7.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "eastus", - "properties": { - "enabled": true, - "notifications": [ - { - "email": { - "customEmails": [ - "gu@ms.com", - "ge@ns.net" - ], - "sendToSubscriptionAdministrator": true, - "sendToSubscriptionCoAdministrators": true - }, - "operation": "Scale" - } - ], - "profiles": [ - { - "capacity": { - "default": "1", - "maximum": "10", - "minimum": "1" - }, - "fixedDate": { - "end": "2015-03-05T14:30:00Z", - "start": "2015-03-05T14:00:00Z", - "timeZone": "UTC" - }, - "name": "adios" - } - ], - "targetResourceUri": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/virtualMachineScaleSets/monitorvmss" - }, - "tags": {} - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "880", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:40:25 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1191", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T064026Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/microsoft.insights/autoscalesettings/autoscalesettingnaEpxQjq", - "name": "autoscalesettingnaEpxQjq", - "type": "Microsoft.Insights/autoscaleSettings", - "location": "eastus", - "tags": {}, - "properties": { - "profiles": [ - { - "name": "adios", - "capacity": { - "minimum": "1", - "maximum": "10", - "default": "1" - }, - "rules": [], - "fixedDate": { - "timeZone": "UTC", - "start": "2015-03-05T14:00:00Z", - "end": "2015-03-05T14:30:00Z" - } - } - ], - "enabled": true, - "name": "autoscalesettingnaEpxQjq", - "targetResourceUri": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/virtualMachineScaleSets/monitorvmss", - "notifications": [ - { - "operation": "Scale", - "email": { - "sendToSubscriptionAdministrator": true, - "sendToSubscriptionCoAdministrators": true, - "customEmails": [ - "gu@ms.com", - "ge@ns.net" - ] - }, - "webhooks": null - } - ] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Insights/autoscalesettings/autoscalesettingnaEpxQjq?api-version=2015-04-01", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "93", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armmonitor/v0.7.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "tags": { - "$type": "Microsoft.WindowsAzure.Management.Common.Storage.CasePreservedDictionary" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:40:28 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1190", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T064029Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/microsoft.insights/autoscalesettings/autoscalesettingnaEpxQjq", - "name": "autoscalesettingnaEpxQjq", - "type": "Microsoft.Insights/autoscaleSettings", - "location": "eastus", - "tags": {}, - "properties": { - "profiles": [ - { - "name": "adios", - "capacity": { - "minimum": "1", - "maximum": "10", - "default": "1" - }, - "rules": [], - "fixedDate": { - "timeZone": "UTC", - "start": "2015-03-05T14:00:00Z", - "end": "2015-03-05T14:30:00Z" - } - } - ], - "enabled": true, - "name": "autoscalesettingnaEpxQjq", - "targetResourceUri": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/virtualMachineScaleSets/monitorvmss", - "notifications": [ - { - "operation": "Scale", - "email": { - "sendToSubscriptionAdministrator": true, - "sendToSubscriptionCoAdministrators": true, - "customEmails": [ - "gu@ms.com", - "ge@ns.net" - ] - }, - "webhooks": null - } - ] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Insights/autoscalesettings?api-version=2015-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armmonitor/v0.7.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:40:29 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11975", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T064030Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/microsoft.insights/autoscalesettings/autoscalesettingnaEpxQjq", - "name": "autoscalesettingnaEpxQjq", - "type": "Microsoft.Insights/autoscaleSettings", - "location": "eastus", - "tags": {}, - "properties": { - "profiles": [ - { - "name": "adios", - "capacity": { - "minimum": "1", - "maximum": "10", - "default": "1" - }, - "rules": [], - "fixedDate": { - "timeZone": "UTC", - "start": "2015-03-05T14:00:00Z", - "end": "2015-03-05T14:30:00Z" - } - } - ], - "enabled": true, - "name": "autoscalesettingnaEpxQjq", - "targetResourceUri": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/virtualMachineScaleSets/monitorvmss", - "targetResourceLocation": "eastus", - "notifications": [ - { - "operation": "Scale", - "email": { - "sendToSubscriptionAdministrator": true, - "sendToSubscriptionCoAdministrators": true, - "customEmails": [ - "gu@ms.com", - "ge@ns.net" - ] - }, - "webhooks": null - } - ] - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Insights/autoscalesettings?api-version=2015-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armmonitor/v0.7.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:40:29 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11974", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T064030Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/microsoft.insights/autoscalesettings/autoscalesettingnaEpxQjq", - "name": "autoscalesettingnaEpxQjq", - "type": "Microsoft.Insights/autoscaleSettings", - "location": "eastus", - "tags": {}, - "properties": { - "profiles": [ - { - "name": "adios", - "capacity": { - "minimum": "1", - "maximum": "10", - "default": "1" - }, - "rules": [], - "fixedDate": { - "timeZone": "UTC", - "start": "2015-03-05T14:00:00Z", - "end": "2015-03-05T14:30:00Z" - } - } - ], - "enabled": true, - "name": "autoscalesettingnaEpxQjq", - "targetResourceUri": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/virtualMachineScaleSets/monitorvmss", - "notifications": [ - { - "operation": "Scale", - "email": { - "sendToSubscriptionAdministrator": true, - "sendToSubscriptionCoAdministrators": true, - "customEmails": [ - "gu@ms.com", - "ge@ns.net" - ] - }, - "webhooks": null - } - ] - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Insights/autoscalesettings/autoscalesettingnaEpxQjq?api-version=2015-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armmonitor/v0.7.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:40:30 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11973", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T064031Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/microsoft.insights/autoscalesettings/autoscalesettingnaEpxQjq", - "name": "autoscalesettingnaEpxQjq", - "type": "Microsoft.Insights/autoscaleSettings", - "location": "eastus", - "tags": {}, - "properties": { - "profiles": [ - { - "name": "adios", - "capacity": { - "minimum": "1", - "maximum": "10", - "default": "1" - }, - "rules": [], - "fixedDate": { - "timeZone": "UTC", - "start": "2015-03-05T14:00:00Z", - "end": "2015-03-05T14:30:00Z" - } - } - ], - "enabled": true, - "name": "autoscalesettingnaEpxQjq", - "targetResourceUri": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/virtualMachineScaleSets/monitorvmss", - "notifications": [ - { - "operation": "Scale", - "email": { - "sendToSubscriptionAdministrator": true, - "sendToSubscriptionCoAdministrators": true, - "customEmails": [ - "gu@ms.com", - "ge@ns.net" - ] - }, - "webhooks": null - } - ] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Insights/autoscalesettings/autoscalesettingnaEpxQjq?api-version=2015-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armmonitor/v0.7.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Wed, 12 Oct 2022 06:40:33 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14995", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T064034Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.Insights/eventcategories?api-version=2015-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armmonitor/v0.7.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:40:33 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-tenant-reads": "11999", - "x-ms-request-id": "SouthEastAsia_9467f8fc91514dc998f6049003ad8156_638011536345884759", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T064034Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "value": "Administrative", - "localizedValue": "Administrative" - }, - { - "value": "Security", - "localizedValue": "Security" - }, - { - "value": "ServiceHealth", - "localizedValue": "Service Health" - }, - { - "value": "Alert", - "localizedValue": "Alert" - }, - { - "value": "Recommendation", - "localizedValue": "Recommendation" - }, - { - "value": "Policy", - "localizedValue": "Policy" - }, - { - "value": "Autoscale", - "localizedValue": "Autoscale" - }, - { - "value": "ResourceHealth", - "localizedValue": "Resource Health" - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.Insights/operations?api-version=2015-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armmonitor/v0.7.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:40:33 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-tenant-reads": "11998", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T064034Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "name": "Microsoft.Insights/Operations/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Operations", - "operation": "Read operations", - "description": "Read operations" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Metrics/Action", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Metric Action", - "operation": "Metric Action", - "description": "Metric Action" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/MetricDefinitions/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Metric Definitions", - "operation": "Read metric definitions", - "description": "Read metric definitions" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/MetricDefinitions/Microsoft.Insights/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Metric Definitions", - "operation": "Read metric definitions", - "description": "Read metric definitions" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/MetricDefinitions/providers/Microsoft.Insights/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Metric Definitions", - "operation": "Read metric definitions", - "description": "Read metric definitions" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Metrics/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Metrics", - "operation": "Read metrics", - "description": "Read metrics" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Metricnamespaces/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Metric namespaces", - "operation": "Metric namespaces read", - "description": "Read metric namespaces" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Metrics/Write", - "isDataAction": true, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Metrics", - "operation": "Write metrics", - "description": "Write metrics" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Metrics/providers/Metrics/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Metrics", - "operation": "Read metrics", - "description": "Read metrics" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Metrics/Microsoft.Insights/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Metrics", - "operation": "Read metrics", - "description": "Read metrics" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Telemetry/Write", - "isDataAction": true, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Telemetry", - "operation": "Write telemetry", - "description": "Write telemetry" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/AlertRules/Write", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Classic Metric Alerts", - "operation": "Create or update classic metric alert", - "description": "Create or update a classic metric alert" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/AlertRules/Delete", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Classic Metric Alerts", - "operation": "Delete classic metric alert", - "description": "Delete a classic metric alert" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/AlertRules/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Classic Metric Alerts", - "operation": "Read classic metric alert", - "description": "Read a classic metric alert" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/MetricAlerts/Write", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Metric Alerts", - "operation": "Create or update metric alert", - "description": "Create or update a metric alert" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/MetricAlerts/Delete", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Metric Alerts", - "operation": "Delete metric alert", - "description": "Delete a metric alert" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/MetricAlerts/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Metric Alerts", - "operation": "Read metric alert", - "description": "Read a metric alert" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/MetricAlerts/Status/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Metric Alerts", - "operation": "Read metric alert status", - "description": "Read metric alert status" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/AutoscaleSettings/Write", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Autoscale Setting", - "operation": "Create or update autoscale setting", - "description": "Create or update an autoscale setting" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/AutoscaleSettings/Delete", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Autoscale Setting", - "operation": "Delete autoscale setting", - "description": "Delete an autoscale setting" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/AutoscaleSettings/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Autoscale Setting", - "operation": "Read autoscale setting", - "description": "Read an autoscale setting" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/AlertRules/Incidents/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Alert Rule Incident resource", - "operation": "Read classic metric alert incidents", - "description": "Read a classic metric alert incident" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/AutoscaleSettings/providers/Microsoft.Insights/MetricDefinitions/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Metric Definitions", - "operation": "Read metric definitions", - "description": "Read metric definitions" - }, - "properties": { - "serviceSpecification": { - "metricSpecifications": [ - { - "name": "ObservedMetricValue", - "displayName": "Observed Metric Value", - "internalMetricName": null, - "displayDescription": "The value computed by autoscale when executed", - "unit": "Count", - "aggregationType": "Average", - "availabilities": null, - "fillGapWithZero": false, - "category": null, - "dimensions": [ - { - "name": "MetricTriggerSource", - "displayName": "Metric Trigger Source", - "toBeExportedForShoebox": true, - "isHidden": false, - "defaultDimensionValues": null - } - ], - "supportedAggregationTypes": null, - "lockAggregationType": null - }, - { - "name": "MetricThreshold", - "displayName": "Metric Threshold", - "internalMetricName": null, - "displayDescription": "The configured autoscale threshold when autoscale ran.", - "unit": "Count", - "aggregationType": "Average", - "availabilities": null, - "fillGapWithZero": false, - "category": null, - "dimensions": [ - { - "name": "MetricTriggerRule", - "displayName": "Metric Trigger Rule", - "toBeExportedForShoebox": true, - "isHidden": false, - "defaultDimensionValues": null - } - ], - "supportedAggregationTypes": null, - "lockAggregationType": null - }, - { - "name": "ObservedCapacity", - "displayName": "Observed Capacity", - "internalMetricName": null, - "displayDescription": "The capacity reported to autoscale when it executed.", - "unit": "Count", - "aggregationType": "Average", - "availabilities": null, - "fillGapWithZero": false, - "category": null, - "dimensions": null, - "supportedAggregationTypes": null, - "lockAggregationType": null - }, - { - "name": "ScaleActionsInitiated", - "displayName": "Scale Actions Initiated", - "internalMetricName": null, - "displayDescription": "The direction of the scale operation.", - "unit": "Count", - "aggregationType": "Total", - "availabilities": null, - "fillGapWithZero": true, - "category": null, - "dimensions": [ - { - "name": "ScaleDirection", - "displayName": "Scale Direction", - "toBeExportedForShoebox": true, - "isHidden": false, - "defaultDimensionValues": null - } - ], - "supportedAggregationTypes": null, - "lockAggregationType": null - } - ], - "logSpecifications": null, - "legacyMetricSpecifications": null - } - } - }, - { - "name": "Microsoft.Insights/AutoscaleSettings/providers/Microsoft.Insights/logDefinitions/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Log Definitions", - "operation": "Log Definitions read", - "description": "Read log definitions" - }, - "properties": { - "serviceSpecification": { - "metricSpecifications": null, - "logSpecifications": [ - { - "name": "AutoscaleEvaluations", - "displayName": "Autoscale Evaluations", - "blobDuration": "PT1H" - }, - { - "name": "AutoscaleScaleActions", - "displayName": "Autoscale Scale Actions", - "blobDuration": "PT1H" - } - ], - "legacyMetricSpecifications": null - } - } - }, - { - "name": "Microsoft.Insights/AutoscaleSettings/providers/Microsoft.Insights/diagnosticSettings/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Resource diagnostic settings", - "operation": "Read resource diagnostic setting", - "description": "Read a resource diagnostic setting" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/AutoscaleSettings/providers/Microsoft.Insights/diagnosticSettings/Write", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Resource diagnostic settings", - "operation": "Create or update resource diagnostic setting", - "description": "Create or update a resource diagnostic setting" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/ActionGroups/Write", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Action Groups", - "operation": "Create or update action group", - "description": "Create or update an action group" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/ActionGroups/Delete", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Action Groups", - "operation": "Delete action group", - "description": "Delete an action group" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/ActionGroups/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Action Groups", - "operation": "Read action group", - "description": "Read an action group" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/CreateNotifications/Write", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Create notifications", - "operation": "Send test notifications", - "description": "Send test notifications to the provided receiver list" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/NotificationStatus/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Get notification status", - "operation": "Get the test notification status", - "description": "Get the test notification status/detail" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/ActivityLogAlerts/Write", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Activity Log Alert", - "operation": "Create or update activity log alert", - "description": "Create or update an activity log alert" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/ActivityLogAlerts/Delete", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Activity Log Alert", - "operation": "Delete activity log alert", - "description": "Delete an activity log alert" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/ActivityLogAlerts/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Activity Log Alert", - "operation": "Read activity log alert", - "description": "Read an activity log alert" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/ActivityLogAlerts/Activated/Action", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Activity Log Alert", - "operation": "Activity Log Alert activated", - "description": "Activity Log Alert activated" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/EventCategories/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Activity Log event category", - "operation": "Read Activity Log event categories", - "description": "Read available Activity Log event categories" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/eventtypes/values/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Activity Log Events", - "operation": "Read Activity Log", - "description": "Read Activity Log events" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/eventtypes/digestevents/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Digest events", - "operation": "Event types management digest read", - "description": "Read management event type digest" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/DiagnosticSettings/Write", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Resource diagnostic settings", - "operation": "Create or update resource diagnostic setting", - "description": "Create or update a resource diagnostic setting" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/DiagnosticSettingsCategories/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Diagnostic settings categories resource", - "operation": "Read diagnostic settings categories", - "description": "Read diagnostic settings categories" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/DiagnosticSettings/Delete", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Resource diagnostic settings", - "operation": "Delete resource diagnostic setting", - "description": "Delete a resource diagnostic setting" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/DiagnosticSettings/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Resource diagnostic settings", - "operation": "Read resource diagnostic setting", - "description": "Read a resource diagnostic setting" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/ExtendedDiagnosticSettings/Write", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Network flow log diagnostic setting", - "operation": "Create or update network flow log diagnostic setting", - "description": "Create or update a network flow log diagnostic setting" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/ExtendedDiagnosticSettings/Delete", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Network flow log diagnostic setting", - "operation": "Delete network flow log diagnostic setting", - "description": "Delete a network flow log diagnostic setting" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/ExtendedDiagnosticSettings/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Network flow log diagnostic setting", - "operation": "Read network flow log diagnostic setting", - "description": "Read a network flow log diagnostic setting" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/LogProfiles/Write", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Log Profiles", - "operation": "Create or update Activity Log log profile", - "description": "Create or update an Activity Log log profile" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/LogProfiles/Delete", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Log Profiles", - "operation": "Delete Activity Log log profile", - "description": "Delete an Activity Log log profile" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/LogProfiles/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Log Profiles", - "operation": "Read Activity Log log profile", - "description": "Read an Activity Log log profile" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/LogDefinitions/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Log Definitions", - "operation": "Log Definitions read", - "description": "Read log definitions" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/AutoscaleSettings/Scaleup/Action", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Autoscale Setting", - "operation": "Autoscale scale up initiated", - "description": "Autoscale scale up initiated" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/AutoscaleSettings/PredictiveScaleup/Action", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Autoscale Setting", - "operation": "Predictive Autoscale scale up initiated", - "description": "Predictive Autoscale scale up initiated" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/AutoscaleSettings/MetricFailure", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Autoscale Setting", - "operation": "Metric Failure", - "description": "Fetch metric value encounter failure" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/AutoscaleSettings/PredictiveMetricFailure", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Autoscale Setting", - "operation": "Predictive Metric Failure", - "description": "Fetch predictive metric value encounter failure" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/AutoscaleSettings/Scaledown/Action", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Autoscale Setting", - "operation": "Autoscale scale down initiated", - "description": "Autoscale scale down initiated" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/AutoscaleSettings/PredictiveScaleupResult/Action", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Autoscale Setting", - "operation": "Predictive Autoscale scale up completed", - "description": "Predictive Autoscale scale up completed" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/AutoscaleSettings/ScaleupResult/Action", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Autoscale Setting", - "operation": "Autoscale scale up completed", - "description": "Autoscale scale up completed" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/AutoscaleSettings/ScaledownResult/Action", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Autoscale Setting", - "operation": "Autoscale scale down completed", - "description": "Autoscale scale down completed" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/AlertRules/Activated/Action", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Classic Metric Alerts", - "operation": "Classic metric alert activated", - "description": "Classic metric alert activated" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/AlertRules/Resolved/Action", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Classic Metric Alerts", - "operation": "Classic metric alert resolved", - "description": "Classic metric alert resolved" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/AlertRules/Throttled/Action", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Classic Metric Alerts", - "operation": "Classic metric alert rule throttled", - "description": "Classic metric alert rule throttled" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Register/Action", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Microsoft.Insights", - "operation": "Register Microsoft.Insights", - "description": "Register the Microsoft Insights provider" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Unregister/Action", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Microsoft.Insights", - "operation": "Register Microsoft.Insights", - "description": "Register the Microsoft Insights provider" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Tenants/Register/Action", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Microsoft.Insights", - "operation": "Initialize Microsoft.Insights", - "description": "Initializes the Microsoft Insights provider" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Components/AnalyticsItems/Delete", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Application Insights analytics item", - "operation": "Application Insights analytics item delete", - "description": "Deleting an Application Insights analytics item" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Components/AnalyticsItems/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Application Insights analytics item", - "operation": "Application Insights analytics item read", - "description": "Reading an Application Insights analytics item" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Components/AnalyticsItems/Write", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Application Insights analytics item", - "operation": "Application Insights analytics item write", - "description": "Writing an Application Insights analytics item" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Components/MyAnalyticsItems/Delete", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Application Insights analytics item", - "operation": "Application Insights personal analytics item delete", - "description": "Deleting an Application Insights personal analytics item" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Components/MyAnalyticsItems/Write", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Application Insights analytics item", - "operation": "Application Insights personal analytics item write", - "description": "Writing an Application Insights personal analytics item" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Components/MyAnalyticsItems/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Application Insights analytics item", - "operation": "Application Insights personal analytics item read", - "description": "Reading an Application Insights personal analytics item" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Components/AnalyticsTables/Action", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Application Insights analytics table", - "operation": "Application Insights analytics table action", - "description": "Application Insights analytics table action" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Components/AnalyticsTables/Delete", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Application Insights analytics table", - "operation": "Application Insights analytics table delete", - "description": "Deleting an Application Insights analytics table schema" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Components/AnalyticsTables/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Application Insights analytics table", - "operation": "Application Insights analytics table read", - "description": "Reading an Application Insights analytics table schema" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Components/AnalyticsTables/Write", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Application Insights analytics table", - "operation": "Application Insights analytics table write", - "description": "Writing an Application Insights analytics table schema" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Components/Annotations/Delete", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Application Insights annotations", - "operation": "Application Insights annotations delete", - "description": "Deleting an Application Insights annotation" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Components/Annotations/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Application Insights annotations", - "operation": "Application Insights annotations read", - "description": "Reading an Application Insights annotation" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Components/Annotations/Write", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Application Insights annotations", - "operation": "Application Insights annotation write", - "description": "Writing an Application Insights annotation" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Components/ApiKeys/Delete", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Application Insights API key", - "operation": "Application Insights API key delete", - "description": "Deleting an Application Insights API key" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Components/ApiKeys/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Application Insights API key", - "operation": "Application Insights API key read", - "description": "Reading an Application Insights API key" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Components/ApiKeys/Action", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Application Insights API key", - "operation": "Application Insights API key generate", - "description": "Generating an Application Insights API key" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Components/Purge/Action", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Application Insights Purge", - "operation": "Application Insights Purge Data action", - "description": "Purging data from Application Insights" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Components/Operations/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Application Insights Operations", - "operation": "Application Insights Operations read", - "description": "Get status of long-running operations in Application Insights" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Components/Events/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Application Insights Events", - "operation": "Application Insights Events read", - "description": "Get logs from Application Insights using OData query format" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Components/Query/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Application Insights Query", - "operation": "Application Insights Query read", - "description": "Run queries against Application Insights logs" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Components/BillingPlanForComponent/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Billing plan for Application Insights component", - "operation": "Billing plan for Application Insights component read", - "description": "Reading a billing plan for Application Insights component" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Components/CurrentBillingFeatures/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Current billing features for Application Insights component", - "operation": "Current billing features for Application Insights component read", - "description": "Reading current billing features for Application Insights component" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Components/CurrentBillingFeatures/Write", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Current billing features for Application Insights component", - "operation": "Current billing features for Application Insights component write", - "description": "Writing current billing features for Application Insights component" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Components/FeatureCapabilities/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Application Insights component feature capabilities", - "operation": "Application Insights component feature capabilities read", - "description": "Reading Application Insights component feature capabilities" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Components/GetAvailableBillingFeatures/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Application Insights component available billing features", - "operation": "Application Insights component available billing features read", - "description": "Reading Application Insights component available billing features" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Components/PricingPlans/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Application Insights component pricing plan", - "operation": "Application Insights component pricing plan read", - "description": "Reading an Application Insights component pricing plan" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Components/PricingPlans/Write", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Application Insights component pricing plan", - "operation": "Application Insights component pricing plan write", - "description": "Writing an Application Insights component pricing plan" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Components/QuotaStatus/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Application Insights component quota status", - "operation": "Application Insights component quota status read", - "description": "Reading Application Insights component quota status" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Components/DailyCapReached/Action", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Application Insights component daily cap reached", - "operation": "Application Insights component daily cap reached", - "description": "Reached the daily cap for Application Insights component" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Components/DailyCapWarningThresholdReached/Action", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Application Insights component daily cap warning threshold reached", - "operation": "Application Insights component daily cap warning threshold reached", - "description": "Reached the daily cap warning threshold for Application Insights component" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Components/Write", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Application insights components", - "operation": "Application insights component write", - "description": "Writing to an application insights component configuration" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Components/Delete", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Application insights components", - "operation": "Application insights component delete", - "description": "Deleting an application insights component configuration" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Components/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Application insights components", - "operation": "Application insights component read", - "description": "Reading an application insights component configuration" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Components/Api/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Application Insights component data API", - "operation": "Application Insights component data API read", - "description": "Reading Application Insights component data API" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Components/ExtendQueries/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Application Insights component extended query results", - "operation": "Application Insights component extended query results read", - "description": "Reading Application Insights component extended query results" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Components/GetToken/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Application Insights component token", - "operation": "Application Insights component token read", - "description": "Reading an Application Insights component token" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Components/MetricDefinitions/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Application Insights component metric definitions", - "operation": "Application Insights component metric definitions read", - "description": "Reading Application Insights component metric definitions" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Components/Metrics/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Application Insights component metrics", - "operation": "Application Insights component metrics read", - "description": "Reading Application Insights component metrics" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Components/providers/Microsoft.Insights/logDefinitions/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Log Definitions", - "operation": "Log Definitions read", - "description": "Read log definitions" - }, - "properties": { - "serviceSpecification": { - "metricSpecifications": null, - "logSpecifications": [ - { - "name": "AppAvailabilityResults", - "displayName": "Availability results", - "blobDuration": "PT1H" - }, - { - "name": "AppBrowserTimings", - "displayName": "Browser timings", - "blobDuration": "PT1H" - }, - { - "name": "AppEvents", - "displayName": "Events", - "blobDuration": "PT1H" - }, - { - "name": "AppMetrics", - "displayName": "Metrics", - "blobDuration": "PT1H" - }, - { - "name": "AppDependencies", - "displayName": "Dependencies", - "blobDuration": "PT1H" - }, - { - "name": "AppExceptions", - "displayName": "Exceptions", - "blobDuration": "PT1H" - }, - { - "name": "AppPageViews", - "displayName": "Page views", - "blobDuration": "PT1H" - }, - { - "name": "AppPerformanceCounters", - "displayName": "Performance counters", - "blobDuration": "PT1H" - }, - { - "name": "AppRequests", - "displayName": "Requests", - "blobDuration": "PT1H" - }, - { - "name": "AppSystemEvents", - "displayName": "System events", - "blobDuration": "PT1H" - }, - { - "name": "AppTraces", - "displayName": "Traces", - "blobDuration": "PT1H" - } - ], - "legacyMetricSpecifications": null - } - } - }, - { - "name": "Microsoft.Insights/Components/providers/Microsoft.Insights/diagnosticSettings/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Resource diagnostic settings", - "operation": "Read resource diagnostic setting", - "description": "Read a resource diagnostic setting" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Components/providers/Microsoft.Insights/diagnosticSettings/Write", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Resource diagnostic settings", - "operation": "Create or update resource diagnostic setting", - "description": "Create or update a resource diagnostic setting" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Components/ExportConfiguration/Action", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Application Insights export settings", - "operation": "Application Insights export settings action", - "description": "Application Insights export settings action" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Components/ExportConfiguration/Delete", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Application Insights export settings", - "operation": "Application Insights export settings delete", - "description": "Deleting Application Insights export settings" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Components/ExportConfiguration/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Application Insights export settings", - "operation": "Application Insights export settings read", - "description": "Reading Application Insights export settings" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Components/ExportConfiguration/Write", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Application Insights export settings", - "operation": "Application Insights export settings write", - "description": "Writing Application Insights export settings" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Components/Favorites/Delete", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Application Insights favorites", - "operation": "Application Insights favorites delete", - "description": "Deleting an Application Insights favorite" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Components/Favorites/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Application Insights favorites", - "operation": "Application Insights favorites read", - "description": "Reading an Application Insights favorite" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Components/Favorites/Write", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Application Insights favorites", - "operation": "Application Insights favorite write", - "description": "Writing an Application Insights favorite" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Components/MyFavorites/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Application Insights favorites", - "operation": "Application Insights personal favorites read", - "description": "Reading an Application Insights personal favorite" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/generateLiveToken/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Application Insights Live Metrics token", - "operation": "Get Live Metrics token", - "description": "Live Metrics get token" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Components/providers/Microsoft.Insights/MetricDefinitions/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Metric Definitions", - "operation": "Read metric definitions", - "description": "Read metric definitions" - }, - "properties": { - "serviceSpecification": { - "metricSpecifications": [ - { - "name": "availabilityResults/availabilityPercentage", - "displayName": "Availability", - "internalMetricName": null, - "displayDescription": "Percentage of successfully completed availability tests", - "unit": "Percent", - "aggregationType": "Average", - "availabilities": null, - "fillGapWithZero": false, - "category": "Availability", - "dimensions": [ - { - "name": "availabilityResult/name", - "displayName": "Test name", - "toBeExportedForShoebox": false, - "isHidden": false, - "defaultDimensionValues": null - }, - { - "name": "availabilityResult/location", - "displayName": "Run location", - "toBeExportedForShoebox": false, - "isHidden": false, - "defaultDimensionValues": null - } - ], - "supportedAggregationTypes": [ - "Average" - ], - "lockAggregationType": null - }, - { - "name": "availabilityResults/count", - "displayName": "Availability tests", - "internalMetricName": "availabilityResults/duration", - "displayDescription": "Count of availability tests", - "unit": "Count", - "aggregationType": "Count", - "availabilities": null, - "fillGapWithZero": true, - "category": "Availability", - "dimensions": [ - { - "name": "availabilityResult/name", - "displayName": "Test name", - "toBeExportedForShoebox": false, - "isHidden": false, - "defaultDimensionValues": null - }, - { - "name": "availabilityResult/location", - "displayName": "Run location", - "toBeExportedForShoebox": false, - "isHidden": false, - "defaultDimensionValues": null - }, - { - "name": "availabilityResult/success", - "displayName": "Test result", - "toBeExportedForShoebox": false, - "isHidden": false, - "defaultDimensionValues": null - } - ], - "supportedAggregationTypes": [ - "Count" - ], - "lockAggregationType": null - }, - { - "name": "availabilityResults/duration", - "displayName": "Availability test duration", - "internalMetricName": null, - "displayDescription": "Availability test duration", - "unit": "MilliSeconds", - "aggregationType": "Average", - "availabilities": null, - "fillGapWithZero": false, - "category": "Availability", - "dimensions": [ - { - "name": "availabilityResult/name", - "displayName": "Test name", - "toBeExportedForShoebox": false, - "isHidden": false, - "defaultDimensionValues": null - }, - { - "name": "availabilityResult/location", - "displayName": "Run location", - "toBeExportedForShoebox": false, - "isHidden": false, - "defaultDimensionValues": null - }, - { - "name": "availabilityResult/success", - "displayName": "Test result", - "toBeExportedForShoebox": false, - "isHidden": false, - "defaultDimensionValues": null - } - ], - "supportedAggregationTypes": [ - "Average", - "Maximum", - "Minimum" - ], - "lockAggregationType": null - }, - { - "name": "browserTimings/networkDuration", - "displayName": "Page load network connect time", - "internalMetricName": null, - "displayDescription": "Time between user request and network connection. Includes DNS lookup and transport connection.", - "unit": "MilliSeconds", - "aggregationType": "Average", - "availabilities": null, - "fillGapWithZero": false, - "category": "Browser", - "dimensions": null, - "supportedAggregationTypes": [ - "Average", - "Maximum", - "Minimum" - ], - "lockAggregationType": null - }, - { - "name": "browserTimings/processingDuration", - "displayName": "Client processing time", - "internalMetricName": null, - "displayDescription": "Time between receiving the last byte of a document until the DOM is loaded. Async requests may still be processing.", - "unit": "MilliSeconds", - "aggregationType": "Average", - "availabilities": null, - "fillGapWithZero": false, - "category": "Browser", - "dimensions": null, - "supportedAggregationTypes": [ - "Average", - "Maximum", - "Minimum" - ], - "lockAggregationType": null - }, - { - "name": "browserTimings/receiveDuration", - "displayName": "Receiving response time", - "internalMetricName": null, - "displayDescription": "Time between the first and last bytes, or until disconnection.", - "unit": "MilliSeconds", - "aggregationType": "Average", - "availabilities": null, - "fillGapWithZero": false, - "category": "Browser", - "dimensions": null, - "supportedAggregationTypes": [ - "Average", - "Maximum", - "Minimum" - ], - "lockAggregationType": null - }, - { - "name": "browserTimings/sendDuration", - "displayName": "Send request time", - "internalMetricName": null, - "displayDescription": "Time between network connection and receiving the first byte.", - "unit": "MilliSeconds", - "aggregationType": "Average", - "availabilities": null, - "fillGapWithZero": false, - "category": "Browser", - "dimensions": null, - "supportedAggregationTypes": [ - "Average", - "Maximum", - "Minimum" - ], - "lockAggregationType": null - }, - { - "name": "browserTimings/totalDuration", - "displayName": "Browser page load time", - "internalMetricName": null, - "displayDescription": "Time from user request until DOM, stylesheets, scripts and images are loaded.", - "unit": "MilliSeconds", - "aggregationType": "Average", - "availabilities": null, - "fillGapWithZero": false, - "category": "Browser", - "dimensions": null, - "supportedAggregationTypes": [ - "Average", - "Maximum", - "Minimum" - ], - "lockAggregationType": null - }, - { - "name": "dependencies/count", - "displayName": "Dependency calls", - "internalMetricName": "dependencies/duration", - "displayDescription": "Count of calls made by the application to external resources.", - "unit": "Count", - "aggregationType": "Count", - "availabilities": null, - "fillGapWithZero": true, - "category": "Server", - "dimensions": [ - { - "name": "dependency/type", - "displayName": "Dependency type", - "toBeExportedForShoebox": false, - "isHidden": false, - "defaultDimensionValues": null - }, - { - "name": "dependency/performanceBucket", - "displayName": "Dependency performance", - "toBeExportedForShoebox": false, - "isHidden": false, - "defaultDimensionValues": null - }, - { - "name": "dependency/success", - "displayName": "Successful call", - "toBeExportedForShoebox": false, - "isHidden": false, - "defaultDimensionValues": null - }, - { - "name": "dependency/target", - "displayName": "Target of a dependency call", - "toBeExportedForShoebox": false, - "isHidden": false, - "defaultDimensionValues": null - }, - { - "name": "dependency/resultCode", - "displayName": "Result code", - "toBeExportedForShoebox": false, - "isHidden": false, - "defaultDimensionValues": null - }, - { - "name": "operation/synthetic", - "displayName": "Is traffic synthetic", - "toBeExportedForShoebox": false, - "isHidden": false, - "defaultDimensionValues": null - }, - { - "name": "cloud/roleInstance", - "displayName": "Cloud role instance", - "toBeExportedForShoebox": false, - "isHidden": false, - "defaultDimensionValues": null - }, - { - "name": "cloud/roleName", - "displayName": "Cloud role name", - "toBeExportedForShoebox": false, - "isHidden": false, - "defaultDimensionValues": null - } - ], - "supportedAggregationTypes": [ - "Count" - ], - "lockAggregationType": null - }, - { - "name": "dependencies/duration", - "displayName": "Dependency duration", - "internalMetricName": null, - "displayDescription": "Duration of calls made by the application to external resources.", - "unit": "MilliSeconds", - "aggregationType": "Average", - "availabilities": null, - "fillGapWithZero": false, - "category": "Server", - "dimensions": [ - { - "name": "dependency/type", - "displayName": "Dependency type", - "toBeExportedForShoebox": false, - "isHidden": false, - "defaultDimensionValues": null - }, - { - "name": "dependency/performanceBucket", - "displayName": "Dependency performance", - "toBeExportedForShoebox": false, - "isHidden": false, - "defaultDimensionValues": null - }, - { - "name": "dependency/success", - "displayName": "Successful call", - "toBeExportedForShoebox": false, - "isHidden": false, - "defaultDimensionValues": null - }, - { - "name": "dependency/target", - "displayName": "Target of a dependency call", - "toBeExportedForShoebox": false, - "isHidden": false, - "defaultDimensionValues": null - }, - { - "name": "dependency/resultCode", - "displayName": "Result code", - "toBeExportedForShoebox": false, - "isHidden": false, - "defaultDimensionValues": null - }, - { - "name": "operation/synthetic", - "displayName": "Is traffic synthetic", - "toBeExportedForShoebox": false, - "isHidden": false, - "defaultDimensionValues": null - }, - { - "name": "cloud/roleInstance", - "displayName": "Cloud role instance", - "toBeExportedForShoebox": false, - "isHidden": false, - "defaultDimensionValues": null - }, - { - "name": "cloud/roleName", - "displayName": "Cloud role name", - "toBeExportedForShoebox": false, - "isHidden": false, - "defaultDimensionValues": null - } - ], - "supportedAggregationTypes": [ - "Average", - "Maximum", - "Minimum" - ], - "lockAggregationType": null - }, - { - "name": "dependencies/failed", - "displayName": "Dependency call failures", - "internalMetricName": "dependencies/duration", - "displayDescription": "Count of failed dependency calls made by the application to external resources.", - "unit": "Count", - "aggregationType": "Count", - "availabilities": null, - "fillGapWithZero": true, - "category": "Failures", - "dimensions": [ - { - "name": "dependency/type", - "displayName": "Dependency type", - "toBeExportedForShoebox": false, - "isHidden": false, - "defaultDimensionValues": null - }, - { - "name": "dependency/performanceBucket", - "displayName": "Dependency performance", - "toBeExportedForShoebox": false, - "isHidden": false, - "defaultDimensionValues": null - }, - { - "name": "dependency/success", - "displayName": "Successful call", - "toBeExportedForShoebox": false, - "isHidden": true, - "defaultDimensionValues": [ - { - "value": "False" - } - ] - }, - { - "name": "dependency/target", - "displayName": "Target of a dependency call", - "toBeExportedForShoebox": false, - "isHidden": false, - "defaultDimensionValues": null - }, - { - "name": "dependency/resultCode", - "displayName": "Result code", - "toBeExportedForShoebox": false, - "isHidden": false, - "defaultDimensionValues": null - }, - { - "name": "operation/synthetic", - "displayName": "Is traffic synthetic", - "toBeExportedForShoebox": false, - "isHidden": false, - "defaultDimensionValues": null - }, - { - "name": "cloud/roleInstance", - "displayName": "Cloud role instance", - "toBeExportedForShoebox": false, - "isHidden": false, - "defaultDimensionValues": null - }, - { - "name": "cloud/roleName", - "displayName": "Cloud role name", - "toBeExportedForShoebox": false, - "isHidden": false, - "defaultDimensionValues": null - } - ], - "supportedAggregationTypes": [ - "Count" - ], - "lockAggregationType": null - }, - { - "name": "pageViews/count", - "displayName": "Page views", - "internalMetricName": null, - "displayDescription": "Count of page views.", - "unit": "Count", - "aggregationType": "Count", - "availabilities": null, - "fillGapWithZero": true, - "category": "Usage", - "dimensions": [ - { - "name": "operation/synthetic", - "displayName": "Is traffic synthetic", - "toBeExportedForShoebox": false, - "isHidden": false, - "defaultDimensionValues": null - }, - { - "name": "cloud/roleName", - "displayName": "Cloud role name", - "toBeExportedForShoebox": false, - "isHidden": false, - "defaultDimensionValues": null - } - ], - "supportedAggregationTypes": [ - "Count" - ], - "lockAggregationType": null - }, - { - "name": "pageViews/duration", - "displayName": "Page view load time", - "internalMetricName": null, - "displayDescription": "Page view load time", - "unit": "MilliSeconds", - "aggregationType": "Average", - "availabilities": null, - "fillGapWithZero": false, - "category": "Usage", - "dimensions": [ - { - "name": "operation/synthetic", - "displayName": "Is traffic synthetic", - "toBeExportedForShoebox": false, - "isHidden": false, - "defaultDimensionValues": null - }, - { - "name": "cloud/roleName", - "displayName": "Cloud role name", - "toBeExportedForShoebox": false, - "isHidden": false, - "defaultDimensionValues": null - } - ], - "supportedAggregationTypes": [ - "Average", - "Maximum", - "Minimum" - ], - "lockAggregationType": null - }, - { - "name": "performanceCounters/requestExecutionTime", - "displayName": "HTTP request execution time", - "internalMetricName": null, - "displayDescription": "Execution time of the most recent request.", - "unit": "MilliSeconds", - "aggregationType": "Average", - "availabilities": null, - "fillGapWithZero": false, - "category": "Performance counters", - "dimensions": [ - { - "name": "cloud/roleInstance", - "displayName": "Cloud role instance", - "toBeExportedForShoebox": false, - "isHidden": false, - "defaultDimensionValues": null - } - ], - "supportedAggregationTypes": [ - "Average", - "Maximum", - "Minimum" - ], - "lockAggregationType": null - }, - { - "name": "performanceCounters/requestsInQueue", - "displayName": "HTTP requests in application queue", - "internalMetricName": null, - "displayDescription": "Length of the application request queue.", - "unit": "Count", - "aggregationType": "Average", - "availabilities": null, - "fillGapWithZero": true, - "category": "Performance counters", - "dimensions": [ - { - "name": "cloud/roleInstance", - "displayName": "Cloud role instance", - "toBeExportedForShoebox": false, - "isHidden": false, - "defaultDimensionValues": null - } - ], - "supportedAggregationTypes": [ - "Average", - "Maximum", - "Minimum" - ], - "lockAggregationType": null - }, - { - "name": "performanceCounters/requestsPerSecond", - "displayName": "HTTP request rate", - "internalMetricName": null, - "displayDescription": "Rate of all requests to the application per second from ASP.NET.", - "unit": "CountPerSecond", - "aggregationType": "Average", - "availabilities": null, - "fillGapWithZero": true, - "category": "Performance counters", - "dimensions": [ - { - "name": "cloud/roleInstance", - "displayName": "Cloud role instance", - "toBeExportedForShoebox": false, - "isHidden": false, - "defaultDimensionValues": null - } - ], - "supportedAggregationTypes": [ - "Average", - "Maximum", - "Minimum" - ], - "lockAggregationType": null - }, - { - "name": "performanceCounters/exceptionsPerSecond", - "displayName": "Exception rate", - "internalMetricName": null, - "displayDescription": "Count of handled and unhandled exceptions reported to windows, including .NET exceptions and unmanaged exceptions that are converted into .NET exceptions.", - "unit": "CountPerSecond", - "aggregationType": "Average", - "availabilities": null, - "fillGapWithZero": true, - "category": "Performance counters", - "dimensions": [ - { - "name": "cloud/roleInstance", - "displayName": "Cloud role instance", - "toBeExportedForShoebox": false, - "isHidden": false, - "defaultDimensionValues": null - } - ], - "supportedAggregationTypes": [ - "Average", - "Maximum", - "Minimum" - ], - "lockAggregationType": null - }, - { - "name": "performanceCounters/processIOBytesPerSecond", - "displayName": "Process IO rate", - "internalMetricName": null, - "displayDescription": "Total bytes per second read and written to files, network and devices.", - "unit": "BytesPerSecond", - "aggregationType": "Average", - "availabilities": null, - "fillGapWithZero": false, - "category": "Performance counters", - "dimensions": [ - { - "name": "cloud/roleInstance", - "displayName": "Cloud role instance", - "toBeExportedForShoebox": false, - "isHidden": false, - "defaultDimensionValues": null - } - ], - "supportedAggregationTypes": [ - "Average", - "Maximum", - "Minimum" - ], - "lockAggregationType": null - }, - { - "name": "performanceCounters/processCpuPercentage", - "displayName": "Process CPU", - "internalMetricName": null, - "displayDescription": "The percentage of elapsed time that all process threads used the processor to execute instructions. This can vary between 0 to 100. This metric indicates the performance of w3wp process alone.", - "unit": "Percent", - "aggregationType": "Average", - "availabilities": null, - "fillGapWithZero": false, - "category": "Performance counters", - "dimensions": [ - { - "name": "cloud/roleInstance", - "displayName": "Cloud role instance", - "toBeExportedForShoebox": false, - "isHidden": false, - "defaultDimensionValues": null - } - ], - "supportedAggregationTypes": [ - "Average", - "Maximum", - "Minimum" - ], - "lockAggregationType": null - }, - { - "name": "performanceCounters/processorCpuPercentage", - "displayName": "Processor time", - "internalMetricName": null, - "displayDescription": "The percentage of time that the processor spends in non-idle threads.", - "unit": "Percent", - "aggregationType": "Average", - "availabilities": null, - "fillGapWithZero": false, - "category": "Performance counters", - "dimensions": [ - { - "name": "cloud/roleInstance", - "displayName": "Cloud role instance", - "toBeExportedForShoebox": false, - "isHidden": false, - "defaultDimensionValues": null - } - ], - "supportedAggregationTypes": [ - "Average", - "Maximum", - "Minimum" - ], - "lockAggregationType": null - }, - { - "name": "performanceCounters/memoryAvailableBytes", - "displayName": "Available memory", - "internalMetricName": null, - "displayDescription": "Physical memory immediately available for allocation to a process or for system use.", - "unit": "Bytes", - "aggregationType": "Average", - "availabilities": null, - "fillGapWithZero": false, - "category": "Performance counters", - "dimensions": [ - { - "name": "cloud/roleInstance", - "displayName": "Cloud role instance", - "toBeExportedForShoebox": false, - "isHidden": false, - "defaultDimensionValues": null - } - ], - "supportedAggregationTypes": [ - "Average", - "Maximum", - "Minimum" - ], - "lockAggregationType": null - }, - { - "name": "performanceCounters/processPrivateBytes", - "displayName": "Process private bytes", - "internalMetricName": null, - "displayDescription": "Memory exclusively assigned to the monitored application\u0027s processes.", - "unit": "Bytes", - "aggregationType": "Average", - "availabilities": null, - "fillGapWithZero": false, - "category": "Performance counters", - "dimensions": [ - { - "name": "cloud/roleInstance", - "displayName": "Cloud role instance", - "toBeExportedForShoebox": false, - "isHidden": false, - "defaultDimensionValues": null - } - ], - "supportedAggregationTypes": [ - "Average", - "Maximum", - "Minimum" - ], - "lockAggregationType": null - }, - { - "name": "requests/duration", - "displayName": "Server response time", - "internalMetricName": null, - "displayDescription": "Time between receiving an HTTP request and finishing sending the response.", - "unit": "MilliSeconds", - "aggregationType": "Average", - "availabilities": null, - "fillGapWithZero": false, - "category": "Server", - "dimensions": [ - { - "name": "request/performanceBucket", - "displayName": "Request performance", - "toBeExportedForShoebox": false, - "isHidden": false, - "defaultDimensionValues": null - }, - { - "name": "request/resultCode", - "displayName": "Result code", - "toBeExportedForShoebox": false, - "isHidden": false, - "defaultDimensionValues": null - }, - { - "name": "operation/synthetic", - "displayName": "Is traffic synthetic", - "toBeExportedForShoebox": false, - "isHidden": false, - "defaultDimensionValues": null - }, - { - "name": "cloud/roleInstance", - "displayName": "Cloud role instance", - "toBeExportedForShoebox": false, - "isHidden": false, - "defaultDimensionValues": null - }, - { - "name": "request/success", - "displayName": "Successful request", - "toBeExportedForShoebox": false, - "isHidden": false, - "defaultDimensionValues": null - }, - { - "name": "cloud/roleName", - "displayName": "Cloud role name", - "toBeExportedForShoebox": false, - "isHidden": false, - "defaultDimensionValues": null - } - ], - "supportedAggregationTypes": [ - "Average", - "Maximum", - "Minimum" - ], - "lockAggregationType": null - }, - { - "name": "requests/count", - "displayName": "Server requests", - "internalMetricName": "requests/duration", - "displayDescription": "Count of HTTP requests completed.", - "unit": "Count", - "aggregationType": "Count", - "availabilities": null, - "fillGapWithZero": true, - "category": "Server", - "dimensions": [ - { - "name": "request/performanceBucket", - "displayName": "Request performance", - "toBeExportedForShoebox": false, - "isHidden": false, - "defaultDimensionValues": null - }, - { - "name": "request/resultCode", - "displayName": "Result code", - "toBeExportedForShoebox": false, - "isHidden": false, - "defaultDimensionValues": null - }, - { - "name": "operation/synthetic", - "displayName": "Is traffic synthetic", - "toBeExportedForShoebox": false, - "isHidden": false, - "defaultDimensionValues": null - }, - { - "name": "cloud/roleInstance", - "displayName": "Cloud role instance", - "toBeExportedForShoebox": false, - "isHidden": false, - "defaultDimensionValues": null - }, - { - "name": "request/success", - "displayName": "Successful request", - "toBeExportedForShoebox": false, - "isHidden": false, - "defaultDimensionValues": null - }, - { - "name": "cloud/roleName", - "displayName": "Cloud role name", - "toBeExportedForShoebox": false, - "isHidden": false, - "defaultDimensionValues": null - } - ], - "supportedAggregationTypes": [ - "Count" - ], - "lockAggregationType": null - }, - { - "name": "requests/failed", - "displayName": "Failed requests", - "internalMetricName": "requests/duration", - "displayDescription": "Count of HTTP requests marked as failed. In most cases these are requests with a response code \u003E= 400 and not equal to 401.", - "unit": "Count", - "aggregationType": "Count", - "availabilities": null, - "fillGapWithZero": true, - "category": "Failures", - "dimensions": [ - { - "name": "request/performanceBucket", - "displayName": "Request performance", - "toBeExportedForShoebox": false, - "isHidden": false, - "defaultDimensionValues": null - }, - { - "name": "request/resultCode", - "displayName": "Result code", - "toBeExportedForShoebox": false, - "isHidden": false, - "defaultDimensionValues": null - }, - { - "name": "request/success", - "displayName": "Successful request", - "toBeExportedForShoebox": false, - "isHidden": true, - "defaultDimensionValues": [ - { - "value": "False" - } - ] - }, - { - "name": "operation/synthetic", - "displayName": "Is traffic synthetic", - "toBeExportedForShoebox": false, - "isHidden": false, - "defaultDimensionValues": null - }, - { - "name": "cloud/roleInstance", - "displayName": "Cloud role instance", - "toBeExportedForShoebox": false, - "isHidden": false, - "defaultDimensionValues": null - }, - { - "name": "cloud/roleName", - "displayName": "Cloud role name", - "toBeExportedForShoebox": false, - "isHidden": false, - "defaultDimensionValues": null - } - ], - "supportedAggregationTypes": [ - "Count" - ], - "lockAggregationType": null - }, - { - "name": "requests/rate", - "displayName": "Server request rate", - "internalMetricName": null, - "displayDescription": "Rate of server requests per second", - "unit": "CountPerSecond", - "aggregationType": "Average", - "availabilities": null, - "fillGapWithZero": true, - "category": "Server", - "dimensions": [ - { - "name": "request/performanceBucket", - "displayName": "Request performance", - "toBeExportedForShoebox": false, - "isHidden": false, - "defaultDimensionValues": null - }, - { - "name": "request/resultCode", - "displayName": "Result code", - "toBeExportedForShoebox": false, - "isHidden": false, - "defaultDimensionValues": null - }, - { - "name": "operation/synthetic", - "displayName": "Is traffic synthetic", - "toBeExportedForShoebox": false, - "isHidden": false, - "defaultDimensionValues": null - }, - { - "name": "cloud/roleInstance", - "displayName": "Cloud role instance", - "toBeExportedForShoebox": false, - "isHidden": false, - "defaultDimensionValues": null - }, - { - "name": "request/success", - "displayName": "Successful request", - "toBeExportedForShoebox": false, - "isHidden": false, - "defaultDimensionValues": null - }, - { - "name": "cloud/roleName", - "displayName": "Cloud role name", - "toBeExportedForShoebox": false, - "isHidden": false, - "defaultDimensionValues": null - } - ], - "supportedAggregationTypes": [ - "Average" - ], - "lockAggregationType": "Average" - }, - { - "name": "exceptions/count", - "displayName": "Exceptions", - "internalMetricName": null, - "displayDescription": "Combined count of all uncaught exceptions.", - "unit": "Count", - "aggregationType": "Count", - "availabilities": null, - "fillGapWithZero": true, - "category": "Failures", - "dimensions": [ - { - "name": "cloud/roleName", - "displayName": "Cloud role name", - "toBeExportedForShoebox": false, - "isHidden": false, - "defaultDimensionValues": null - }, - { - "name": "cloud/roleInstance", - "displayName": "Cloud role instance", - "toBeExportedForShoebox": false, - "isHidden": false, - "defaultDimensionValues": null - }, - { - "name": "client/type", - "displayName": "Device type", - "toBeExportedForShoebox": false, - "isHidden": false, - "defaultDimensionValues": null - } - ], - "supportedAggregationTypes": [ - "Count" - ], - "lockAggregationType": null - }, - { - "name": "exceptions/browser", - "displayName": "Browser exceptions", - "internalMetricName": "exceptions/count", - "displayDescription": "Count of uncaught exceptions thrown in the browser.", - "unit": "Count", - "aggregationType": "Count", - "availabilities": null, - "fillGapWithZero": true, - "category": "Failures", - "dimensions": [ - { - "name": "client/isServer", - "displayName": null, - "toBeExportedForShoebox": false, - "isHidden": true, - "defaultDimensionValues": [ - { - "value": "False" - } - ] - }, - { - "name": "cloud/roleName", - "displayName": "Cloud role name", - "toBeExportedForShoebox": false, - "isHidden": false, - "defaultDimensionValues": null - } - ], - "supportedAggregationTypes": [ - "Count" - ], - "lockAggregationType": null - }, - { - "name": "exceptions/server", - "displayName": "Server exceptions", - "internalMetricName": "exceptions/count", - "displayDescription": "Count of uncaught exceptions thrown in the server application.", - "unit": "Count", - "aggregationType": "Count", - "availabilities": null, - "fillGapWithZero": true, - "category": "Failures", - "dimensions": [ - { - "name": "client/isServer", - "displayName": null, - "toBeExportedForShoebox": false, - "isHidden": true, - "defaultDimensionValues": [ - { - "value": "True" - } - ] - }, - { - "name": "cloud/roleName", - "displayName": "Cloud role name", - "toBeExportedForShoebox": false, - "isHidden": false, - "defaultDimensionValues": null - }, - { - "name": "cloud/roleInstance", - "displayName": "Cloud role instance", - "toBeExportedForShoebox": false, - "isHidden": false, - "defaultDimensionValues": null - } - ], - "supportedAggregationTypes": [ - "Count" - ], - "lockAggregationType": null - }, - { - "name": "traces/count", - "displayName": "Traces", - "internalMetricName": null, - "displayDescription": "Trace document count", - "unit": "Count", - "aggregationType": "Count", - "availabilities": null, - "fillGapWithZero": true, - "category": "Usage", - "dimensions": [ - { - "name": "trace/severityLevel", - "displayName": "Severity level", - "toBeExportedForShoebox": false, - "isHidden": false, - "defaultDimensionValues": null - }, - { - "name": "operation/synthetic", - "displayName": "Is traffic synthetic", - "toBeExportedForShoebox": false, - "isHidden": false, - "defaultDimensionValues": null - }, - { - "name": "cloud/roleName", - "displayName": "Cloud role name", - "toBeExportedForShoebox": false, - "isHidden": false, - "defaultDimensionValues": null - }, - { - "name": "cloud/roleInstance", - "displayName": "Cloud role instance", - "toBeExportedForShoebox": false, - "isHidden": false, - "defaultDimensionValues": null - } - ], - "supportedAggregationTypes": [ - "Count" - ], - "lockAggregationType": null - } - ], - "logSpecifications": null, - "legacyMetricSpecifications": null - } - } - }, - { - "name": "Microsoft.Insights/Components/ProactiveDetectionConfigs/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Application Insights proactive detection configuration", - "operation": "Application Insights proactive detection configuration read", - "description": "Reading Application Insights proactive detection configuration" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Components/ProactiveDetectionConfigs/Write", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Application Insights proactive detection configuration", - "operation": "Application Insights proactive detection configuration read", - "description": "Writing Application Insights proactive detection configuration" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Components/SyntheticMonitorLocations/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Application Insights webtest location", - "operation": "Application Insights webtest locations read", - "description": "Reading Application Insights webtest locations" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Components/Webtests/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Web tests", - "operation": "Webtest read", - "description": "Reading a webtest configuration" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Webtests/Write", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Web tests", - "operation": "Webtest write", - "description": "Writing to a webtest configuration" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Webtests/Delete", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Web tests", - "operation": "Webtest delete", - "description": "Deleting a webtest configuration" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Webtests/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Web tests", - "operation": "Webtest read", - "description": "Reading a webtest configuration" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Webtests/GetToken/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Webtest token", - "operation": "Webtest token read", - "description": "Reading a webtest token" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Webtests/MetricDefinitions/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Webtest metric definitions", - "operation": "Webtest metric definitions read", - "description": "Reading a webtest metric definitions" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Webtests/Metrics/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Webtest metrics", - "operation": "Webtest metrics read", - "description": "Reading a webtest metrics" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Components/WorkItemConfigs/Delete", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Application Insights ALM integration configuration", - "operation": "Application Insights ALM integration configuration delete", - "description": "Deleting an Application Insights ALM integration configuration" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Components/WorkItemConfigs/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Application Insights ALM integration configuration", - "operation": "Application Insights ALM integration configuration read", - "description": "Reading an Application Insights ALM integration configuration" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Components/WorkItemConfigs/Write", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Application Insights ALM integration configuration", - "operation": "Application Insights ALM integration configuration write", - "description": "Writing an Application Insights ALM integration configuration" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Components/DefaultWorkItemConfig/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Application Insights ALM integration configuration", - "operation": "Application Insights default ALM integration configuration read", - "description": "Reading an Application Insights default ALM integration configuration" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Components/Move/Action", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Application insights components", - "operation": "Application Insights Component Move", - "description": "Move an Application Insights Component to another resource group or subscription" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/ListMigrationDate/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "List Migration Date", - "operation": "Subscription migration date read", - "description": "Get back subscription migration date" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/ListMigrationDate/Action", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "List Migration Date", - "operation": "Subscription migration date read", - "description": "Get back Subscription migration date" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/MigrateToNewpricingModel/Action", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Migrate to new pricing model", - "operation": "Migrate subscription to new pricing model action", - "description": "Migrate subscription to new pricing model" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/RollbackToLegacyPricingModel/Action", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Rollback legacy pricing model", - "operation": "Rollback subscription to legacy pricing model action", - "description": "Rollback subscription to legacy pricing model" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/topology/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Application Insights Topology", - "operation": "Read Topology", - "description": "Read Topology" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/transactions/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Application Insights Transactions", - "operation": "Read Transactions", - "description": "Read Transactions" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/ScheduledQueryRules/Write", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Scheduled query rule", - "operation": "Scheduled query rule write", - "description": "Writing a scheduled query rule" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/ScheduledQueryRules/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Scheduled query rule", - "operation": "Scheduled query rule read", - "description": "Reading a scheduled query rule" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/ScheduledQueryRules/Delete", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Scheduled query rule", - "operation": "Scheduled query rule delete", - "description": "Deleting a scheduled query rule" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Logs", - "operation": "Read Logs", - "description": "Reading data from all your logs" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/AADDomainServicesAccountLogon/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "AADDomainServicesAccountLogon", - "operation": "Read AADDomainServicesAccountLogon data", - "description": "Read data from the AADDomainServicesAccountLogon table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/AADDomainServicesAccountManagement/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "AADDomainServicesAccountManagement", - "operation": "Read AADDomainServicesAccountManagement data", - "description": "Read data from the AADDomainServicesAccountManagement table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/AADDomainServicesDirectoryServiceAccess/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "AADDomainServicesDirectoryServiceAccess", - "operation": "Read AADDomainServicesDirectoryServiceAccess data", - "description": "Read data from the AADDomainServicesDirectoryServiceAccess table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/AADDomainServicesLogonLogoff/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "AADDomainServicesLogonLogoff", - "operation": "Read AADDomainServicesLogonLogoff data", - "description": "Read data from the AADDomainServicesLogonLogoff table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/AADDomainServicesPolicyChange/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "AADDomainServicesPolicyChange", - "operation": "Read AADDomainServicesPolicyChange data", - "description": "Read data from the AADDomainServicesPolicyChange table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/AADDomainServicesPrivilegeUse/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "AADDomainServicesPrivilegeUse", - "operation": "Read AADDomainServicesPrivilegeUse data", - "description": "Read data from the AADDomainServicesPrivilegeUse table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/AADDomainServicesSystemSecurity/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "AADDomainServicesSystemSecurity", - "operation": "Read AADDomainServicesSystemSecurity data", - "description": "Read data from the AADDomainServicesSystemSecurity table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/AADManagedIdentitySignInLogs/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "AADManagedIdentitySignInLogs", - "operation": "Read AADManagedIdentitySignInLogs data", - "description": "Read data from the AADManagedIdentitySignInLogs table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/AADNonInteractiveUserSignInLogs/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "AADNonInteractiveUserSignInLogs", - "operation": "Read AADNonInteractiveUserSignInLogs data", - "description": "Read data from the AADNonInteractiveUserSignInLogs table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/AADServicePrincipalSignInLogs/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "AADServicePrincipalSignInLogs", - "operation": "Read AADServicePrincipalSignInLogs data", - "description": "Read data from the AADServicePrincipalSignInLogs table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/ADAssessmentRecommendation/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "ADAssessmentRecommendation", - "operation": "Read ADAssessmentRecommendation data", - "description": "Read data from the ADAssessmentRecommendation table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/AddonAzureBackupAlerts/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "AddonAzureBackupAlerts", - "operation": "Read AddonAzureBackupAlerts data", - "description": "Read data from the AddonAzureBackupAlerts table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/AddonAzureBackupJobs/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "AddonAzureBackupJobs", - "operation": "Read AddonAzureBackupJobs data", - "description": "Read data from the AddonAzureBackupJobs table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/AddonAzureBackupPolicy/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "AddonAzureBackupPolicy", - "operation": "Read AddonAzureBackupPolicy data", - "description": "Read data from the AddonAzureBackupPolicy table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/AddonAzureBackupProtectedInstance/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "AddonAzureBackupProtectedInstance", - "operation": "Read AddonAzureBackupProtectedInstance data", - "description": "Read data from the AddonAzureBackupProtectedInstance table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/AddonAzureBackupStorage/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "AddonAzureBackupStorage", - "operation": "Read AddonAzureBackupStorage data", - "description": "Read data from the AddonAzureBackupStorage table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/ADFActivityRun/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "ADFActivityRun", - "operation": "Read ADFActivityRun data", - "description": "Read data from the ADFActivityRun table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/ADFPipelineRun/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "ADFPipelineRun", - "operation": "Read ADFPipelineRun data", - "description": "Read data from the ADFPipelineRun table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/ADFSSISIntegrationRuntimeLogs/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "ADFSSISIntegrationRuntimeLogs", - "operation": "Read ADFSSISIntegrationRuntimeLogs data", - "description": "Read data from the ADFSSISIntegrationRuntimeLogs table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/ADFSSISPackageEventMessageContext/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "ADFSSISPackageEventMessageContext", - "operation": "Read ADFSSISPackageEventMessageContext data", - "description": "Read data from the ADFSSISPackageEventMessageContext table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/ADFSSISPackageEventMessages/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "ADFSSISPackageEventMessages", - "operation": "Read ADFSSISPackageEventMessages data", - "description": "Read data from the ADFSSISPackageEventMessages table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/ADFSSISPackageExecutableStatistics/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "ADFSSISPackageExecutableStatistics", - "operation": "Read ADFSSISPackageExecutableStatistics data", - "description": "Read data from the ADFSSISPackageExecutableStatistics table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/ADFSSISPackageExecutionComponentPhases/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "ADFSSISPackageExecutionComponentPhases", - "operation": "Read ADFSSISPackageExecutionComponentPhases data", - "description": "Read data from the ADFSSISPackageExecutionComponentPhases table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/ADFSSISPackageExecutionDataStatistics/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "ADFSSISPackageExecutionDataStatistics", - "operation": "Read ADFSSISPackageExecutionDataStatistics data", - "description": "Read data from the ADFSSISPackageExecutionDataStatistics table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/ADFTriggerRun/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "ADFTriggerRun", - "operation": "Read ADFTriggerRun data", - "description": "Read data from the ADFTriggerRun table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/ADReplicationResult/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "ADReplicationResult", - "operation": "Read ADReplicationResult data", - "description": "Read data from the ADReplicationResult table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/ADSecurityAssessmentRecommendation/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "ADSecurityAssessmentRecommendation", - "operation": "Read ADSecurityAssessmentRecommendation data", - "description": "Read data from the ADSecurityAssessmentRecommendation table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/ADTDigitalTwinsOperation/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "ADTDigitalTwinsOperation", - "operation": "Read ADTDigitalTwinsOperation data", - "description": "Read data from the ADTDigitalTwinsOperation table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/ADTEventRoutesOperation/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "ADTEventRoutesOperation", - "operation": "Read ADTEventRoutesOperation data", - "description": "Read data from the ADTEventRoutesOperation table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/ADTModelsOperation/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "ADTModelsOperation", - "operation": "Read ADTModelsOperation data", - "description": "Read data from the ADTModelsOperation table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/ADTQueryOperation/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "ADTQueryOperation", - "operation": "Read ADTQueryOperation data", - "description": "Read data from the ADTQueryOperation table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/AegDeliveryFailureLogs/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "AegDeliveryFailureLogs", - "operation": "Read AegDeliveryFailureLogs data", - "description": "Read data from the AegDeliveryFailureLogs table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/AegPublishFailureLogs/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "AegPublishFailureLogs", - "operation": "Read AegPublishFailureLogs data", - "description": "Read data from the AegPublishFailureLogs table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/Alert/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Alert", - "operation": "Read Alert data", - "description": "Read data from the Alert table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/AlertHistory/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "AlertHistory", - "operation": "Read AlertHistory data", - "description": "Read data from the AlertHistory table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/AmlComputeClusterEvent/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "AmlComputeClusterEvent", - "operation": "Read AmlComputeClusterEvent data", - "description": "Read data from the AmlComputeClusterEvent table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/AmlComputeClusterNodeEvent/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "AmlComputeClusterNodeEvent", - "operation": "Read AmlComputeClusterNodeEvent data", - "description": "Read data from the AmlComputeClusterNodeEvent table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/AmlComputeCpuGpuUtilization/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "AmlComputeCpuGpuUtilization", - "operation": "Read AmlComputeCpuGpuUtilization data", - "description": "Read data from the AmlComputeCpuGpuUtilization table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/AmlComputeJobEvent/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "AmlComputeJobEvent", - "operation": "Read AmlComputeJobEvent data", - "description": "Read data from the AmlComputeJobEvent table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/AmlRunStatusChangedEvent/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "AmlRunStatusChangedEvent", - "operation": "Read AmlRunStatusChangedEvent data", - "description": "Read data from the AmlRunStatusChangedEvent table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/ApiManagementGatewayLogs/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "ApiManagementGatewayLogs", - "operation": "Read ApiManagementGatewayLogs data", - "description": "Read data from the ApiManagementGatewayLogs table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/AppAvailabilityResults/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "AppAvailabilityResults", - "operation": "Read AppAvailabilityResults data", - "description": "Read data from the AppAvailabilityResults table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/AppBrowserTimings/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "AppBrowserTimings", - "operation": "Read AppBrowserTimings data", - "description": "Read data from the AppBrowserTimings table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/AppCenterError/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "AppCenterError", - "operation": "Read AppCenterError data", - "description": "Read data from the AppCenterError table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/AppDependencies/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "AppDependencies", - "operation": "Read AppDependencies data", - "description": "Read data from the AppDependencies table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/AppEvents/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "AppEvents", - "operation": "Read AppEvents data", - "description": "Read data from the AppEvents table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/AppExceptions/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "AppExceptions", - "operation": "Read AppExceptions data", - "description": "Read data from the AppExceptions table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/ApplicationInsights/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "ApplicationInsights", - "operation": "Read ApplicationInsights data", - "description": "Read data from the ApplicationInsights table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/AppMetrics/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "AppMetrics", - "operation": "Read AppMetrics data", - "description": "Read data from the AppMetrics table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/AppPageViews/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "AppPageViews", - "operation": "Read AppPageViews data", - "description": "Read data from the AppPageViews table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/AppPerformanceCounters/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "AppPerformanceCounters", - "operation": "Read AppPerformanceCounters data", - "description": "Read data from the AppPerformanceCounters table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/AppPlatformLogsforSpring/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "AppPlatformLogsforSpring", - "operation": "Read AppPlatformLogsforSpring data", - "description": "Read data from the AppPlatformLogsforSpring table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/AppPlatformSystemLogs/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "AppPlatformSystemLogs", - "operation": "Read AppPlatformSystemLogs data", - "description": "Read data from the AppPlatformSystemLogs table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/AppRequests/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "AppRequests", - "operation": "Read AppRequests data", - "description": "Read data from the AppRequests table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/AppServiceAntivirusScanLogs/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "AppServiceAntivirusScanLogs", - "operation": "Read AppServiceAntivirusScanLogs data", - "description": "Read data from the AppServiceAntivirusScanLogs table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/AppServiceAppLogs/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "AppServiceAppLogs", - "operation": "Read AppServiceAppLogs data", - "description": "Read data from the AppServiceAppLogs table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/AppServiceAuditLogs/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "AppServiceAuditLogs", - "operation": "Read AppServiceAuditLogs data", - "description": "Read data from the AppServiceAuditLogs table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/AppServiceConsoleLogs/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "AppServiceConsoleLogs", - "operation": "Read AppServiceConsoleLogs data", - "description": "Read data from the AppServiceConsoleLogs table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/AppServiceEnvironmentPlatformLogs/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "AppServiceEnvironmentPlatformLogs", - "operation": "Read AppServiceEnvironmentPlatformLogs data", - "description": "Read data from the AppServiceEnvironmentPlatformLogs table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/AppServiceFileAuditLogs/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "AppServiceFileAuditLogs", - "operation": "Read AppServiceFileAuditLogs data", - "description": "Read data from the AppServiceFileAuditLogs table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/AppServiceHTTPLogs/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "AppServiceHTTPLogs", - "operation": "Read AppServiceHTTPLogs data", - "description": "Read data from the AppServiceHTTPLogs table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/AppServicePlatformLogs/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "AppServicePlatformLogs", - "operation": "Read AppServicePlatformLogs data", - "description": "Read data from the AppServicePlatformLogs table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/AppSystemEvents/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "AppSystemEvents", - "operation": "Read AppSystemEvents data", - "description": "Read data from the AppSystemEvents table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/AppTraces/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "AppTraces", - "operation": "Read AppTraces data", - "description": "Read data from the AppTraces table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/AuditLogs/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "AuditLogs", - "operation": "Read AuditLogs data", - "description": "Read data from the AuditLogs table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/AutoscaleEvaluationsLog/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "AutoscaleEvaluationsLog", - "operation": "Read AutoscaleEvaluationsLog data", - "description": "Read data from the AutoscaleEvaluationsLog table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/AutoscaleScaleActionsLog/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "AutoscaleScaleActionsLog", - "operation": "Read AutoscaleScaleActionsLog data", - "description": "Read data from the AutoscaleScaleActionsLog table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/AWSCloudTrail/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "AWSCloudTrail", - "operation": "Read AWSCloudTrail data", - "description": "Read data from the AWSCloudTrail table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/AzureActivity/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "AzureActivity", - "operation": "Read AzureActivity data", - "description": "Read data from the AzureActivity table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/AzureAssessmentRecommendation/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "AzureAssessmentRecommendation", - "operation": "Read AzureAssessmentRecommendation data", - "description": "Read data from the AzureAssessmentRecommendation table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/AzureDevOpsAuditing/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "AzureDevOpsAuditing", - "operation": "Read AzureDevOpsAuditing data", - "description": "Read data from the AzureDevOpsAuditing table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/AzureDiagnostics/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "AzureDiagnostics", - "operation": "Read AzureDiagnostics data", - "description": "Read data from the AzureDiagnostics table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/AzureMetrics/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "AzureMetrics", - "operation": "Read AzureMetrics data", - "description": "Read data from the AzureMetrics table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/BaiClusterEvent/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "BaiClusterEvent", - "operation": "Read BaiClusterEvent data", - "description": "Read data from the BaiClusterEvent table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/BaiClusterNodeEvent/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "BaiClusterNodeEvent", - "operation": "Read BaiClusterNodeEvent data", - "description": "Read data from the BaiClusterNodeEvent table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/BaiJobEvent/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "BaiJobEvent", - "operation": "Read BaiJobEvent data", - "description": "Read data from the BaiJobEvent table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/BehaviorAnalytics/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "BehaviorAnalytics", - "operation": "Read BehaviorAnalytics data", - "description": "Read data from the BehaviorAnalytics table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/BlockchainApplicationLog/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "BlockchainApplicationLog", - "operation": "Read BlockchainApplicationLog data", - "description": "Read data from the BlockchainApplicationLog table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/BlockchainProxyLog/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "BlockchainProxyLog", - "operation": "Read BlockchainProxyLog data", - "description": "Read data from the BlockchainProxyLog table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/BoundPort/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "BoundPort", - "operation": "Read BoundPort data", - "description": "Read data from the BoundPort table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/CommonSecurityLog/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "CommonSecurityLog", - "operation": "Read CommonSecurityLog data", - "description": "Read data from the CommonSecurityLog table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/ComputerGroup/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "ComputerGroup", - "operation": "Read ComputerGroup data", - "description": "Read data from the ComputerGroup table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/ConfigurationChange/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "ConfigurationChange", - "operation": "Read ConfigurationChange data", - "description": "Read data from the ConfigurationChange table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/ConfigurationData/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "ConfigurationData", - "operation": "Read ConfigurationData data", - "description": "Read data from the ConfigurationData table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/ContainerImageInventory/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "ContainerImageInventory", - "operation": "Read ContainerImageInventory data", - "description": "Read data from the ContainerImageInventory table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/ContainerInventory/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "ContainerInventory", - "operation": "Read ContainerInventory data", - "description": "Read data from the ContainerInventory table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/ContainerLog/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "ContainerLog", - "operation": "Read ContainerLog data", - "description": "Read data from the ContainerLog table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/ContainerNodeInventory/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "ContainerNodeInventory", - "operation": "Read ContainerNodeInventory data", - "description": "Read data from the ContainerNodeInventory table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/ContainerRegistryLoginEvents/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "ContainerRegistryLoginEvents", - "operation": "Read ContainerRegistryLoginEvents data", - "description": "Read data from the ContainerRegistryLoginEvents table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/ContainerRegistryRepositoryEvents/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "ContainerRegistryRepositoryEvents", - "operation": "Read ContainerRegistryRepositoryEvents data", - "description": "Read data from the ContainerRegistryRepositoryEvents table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/ContainerServiceLog/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "ContainerServiceLog", - "operation": "Read ContainerServiceLog data", - "description": "Read data from the ContainerServiceLog table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/Tables.Custom/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "CustomLogs", - "operation": "Read Custom Logs", - "description": "Reading data from any custom log" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/CoreAzureBackup/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "CoreAzureBackup", - "operation": "Read CoreAzureBackup data", - "description": "Read data from the CoreAzureBackup table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/DatabricksAccounts/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "DatabricksAccounts", - "operation": "Read DatabricksAccounts data", - "description": "Read data from the DatabricksAccounts table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/DatabricksClusters/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "DatabricksClusters", - "operation": "Read DatabricksClusters data", - "description": "Read data from the DatabricksClusters table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/DatabricksDBFS/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "DatabricksDBFS", - "operation": "Read DatabricksDBFS data", - "description": "Read data from the DatabricksDBFS table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/DatabricksInstancePools/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "DatabricksInstancePools", - "operation": "Read DatabricksInstancePools data", - "description": "Read data from the DatabricksInstancePools table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/DatabricksJobs/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "DatabricksJobs", - "operation": "Read DatabricksJobs data", - "description": "Read data from the DatabricksJobs table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/DatabricksNotebook/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "DatabricksNotebook", - "operation": "Read DatabricksNotebook data", - "description": "Read data from the DatabricksNotebook table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/DatabricksSecrets/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "DatabricksSecrets", - "operation": "Read DatabricksSecrets data", - "description": "Read data from the DatabricksSecrets table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/DatabricksSQLPermissions/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "DatabricksSQLPermissions", - "operation": "Read DatabricksSQLPermissions data", - "description": "Read data from the DatabricksSQLPermissions table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/DatabricksSSH/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "DatabricksSSH", - "operation": "Read DatabricksSSH data", - "description": "Read data from the DatabricksSSH table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/DatabricksTables/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "DatabricksTables", - "operation": "Read DatabricksTables data", - "description": "Read data from the DatabricksTables table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/DatabricksWorkspace/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "DatabricksWorkspace", - "operation": "Read DatabricksWorkspace data", - "description": "Read data from the DatabricksWorkspace table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/DeviceAppCrash/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "DeviceAppCrash", - "operation": "Read DeviceAppCrash data", - "description": "Read data from the DeviceAppCrash table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/DeviceAppLaunch/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "DeviceAppLaunch", - "operation": "Read DeviceAppLaunch data", - "description": "Read data from the DeviceAppLaunch table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/DeviceCalendar/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "DeviceCalendar", - "operation": "Read DeviceCalendar data", - "description": "Read data from the DeviceCalendar table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/DeviceCleanup/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "DeviceCleanup", - "operation": "Read DeviceCleanup data", - "description": "Read data from the DeviceCleanup table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/DeviceConnectSession/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "DeviceConnectSession", - "operation": "Read DeviceConnectSession data", - "description": "Read data from the DeviceConnectSession table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/DeviceEtw/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "DeviceEtw", - "operation": "Read DeviceEtw data", - "description": "Read data from the DeviceEtw table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/DeviceHardwareHealth/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "DeviceHardwareHealth", - "operation": "Read DeviceHardwareHealth data", - "description": "Read data from the DeviceHardwareHealth table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/DeviceHealth/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "DeviceHealth", - "operation": "Read DeviceHealth data", - "description": "Read data from the DeviceHealth table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/DeviceHeartbeat/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "DeviceHeartbeat", - "operation": "Read DeviceHeartbeat data", - "description": "Read data from the DeviceHeartbeat table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/DeviceSkypeHeartbeat/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "DeviceSkypeHeartbeat", - "operation": "Read DeviceSkypeHeartbeat data", - "description": "Read data from the DeviceSkypeHeartbeat table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/DeviceSkypeSignIn/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "DeviceSkypeSignIn", - "operation": "Read DeviceSkypeSignIn data", - "description": "Read data from the DeviceSkypeSignIn table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/DeviceSleepState/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "DeviceSleepState", - "operation": "Read DeviceSleepState data", - "description": "Read data from the DeviceSleepState table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/DHAppFailure/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "DHAppFailure", - "operation": "Read DHAppFailure data", - "description": "Read data from the DHAppFailure table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/DHAppReliability/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "DHAppReliability", - "operation": "Read DHAppReliability data", - "description": "Read data from the DHAppReliability table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/DHCPActivity/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "DHCPActivity", - "operation": "Read DHCPActivity data", - "description": "Read data from the DHCPActivity table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/DHDriverReliability/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "DHDriverReliability", - "operation": "Read DHDriverReliability data", - "description": "Read data from the DHDriverReliability table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/DHLogonFailures/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "DHLogonFailures", - "operation": "Read DHLogonFailures data", - "description": "Read data from the DHLogonFailures table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/DHLogonMetrics/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "DHLogonMetrics", - "operation": "Read DHLogonMetrics data", - "description": "Read data from the DHLogonMetrics table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/DHOSCrashData/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "DHOSCrashData", - "operation": "Read DHOSCrashData data", - "description": "Read data from the DHOSCrashData table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/DHOSReliability/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "DHOSReliability", - "operation": "Read DHOSReliability data", - "description": "Read data from the DHOSReliability table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/DHWipAppLearning/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "DHWipAppLearning", - "operation": "Read DHWipAppLearning data", - "description": "Read data from the DHWipAppLearning table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/DnsEvents/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "DnsEvents", - "operation": "Read DnsEvents data", - "description": "Read data from the DnsEvents table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/DnsInventory/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "DnsInventory", - "operation": "Read DnsInventory data", - "description": "Read data from the DnsInventory table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/Dynamics365Activity/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Dynamics365Activity", - "operation": "Read Dynamics365Activity data", - "description": "Read data from the Dynamics365Activity table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/ETWEvent/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "ETWEvent", - "operation": "Read ETWEvent data", - "description": "Read data from the ETWEvent table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/Event/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Event", - "operation": "Read Event data", - "description": "Read data from the Event table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/ExchangeAssessmentRecommendation/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "ExchangeAssessmentRecommendation", - "operation": "Read ExchangeAssessmentRecommendation data", - "description": "Read data from the ExchangeAssessmentRecommendation table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/ExchangeOnlineAssessmentRecommendation/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "ExchangeOnlineAssessmentRecommendation", - "operation": "Read ExchangeOnlineAssessmentRecommendation data", - "description": "Read data from the ExchangeOnlineAssessmentRecommendation table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/FailedIngestion/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "FailedIngestion", - "operation": "Read FailedIngestion data", - "description": "Read data from the FailedIngestion table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/FunctionAppLogs/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "FunctionAppLogs", - "operation": "Read FunctionAppLogs data", - "description": "Read data from the FunctionAppLogs table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/Heartbeat/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Heartbeat", - "operation": "Read Heartbeat data", - "description": "Read data from the Heartbeat table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/HuntingBookmark/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "HuntingBookmark", - "operation": "Read HuntingBookmark data", - "description": "Read data from the HuntingBookmark table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/IISAssessmentRecommendation/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "IISAssessmentRecommendation", - "operation": "Read IISAssessmentRecommendation data", - "description": "Read data from the IISAssessmentRecommendation table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/InboundConnection/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "InboundConnection", - "operation": "Read InboundConnection data", - "description": "Read data from the InboundConnection table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/InsightsMetrics/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "InsightsMetrics", - "operation": "Read InsightsMetrics data", - "description": "Read data from the InsightsMetrics table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/IntuneAuditLogs/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "IntuneAuditLogs", - "operation": "Read IntuneAuditLogs data", - "description": "Read data from the IntuneAuditLogs table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/IntuneDeviceComplianceOrg/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "IntuneDeviceComplianceOrg", - "operation": "Read IntuneDeviceComplianceOrg data", - "description": "Read data from the IntuneDeviceComplianceOrg table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/IntuneOperationalLogs/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "IntuneOperationalLogs", - "operation": "Read IntuneOperationalLogs data", - "description": "Read data from the IntuneOperationalLogs table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/IoTHubDistributedTracing/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "IoTHubDistributedTracing", - "operation": "Read IoTHubDistributedTracing data", - "description": "Read data from the IoTHubDistributedTracing table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/KubeEvents/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "KubeEvents", - "operation": "Read KubeEvents data", - "description": "Read data from the KubeEvents table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/KubeHealth/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "KubeHealth", - "operation": "Read KubeHealth data", - "description": "Read data from the KubeHealth table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/KubeMonAgentEvents/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "KubeMonAgentEvents", - "operation": "Read KubeMonAgentEvents data", - "description": "Read data from the KubeMonAgentEvents table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/KubeNodeInventory/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "KubeNodeInventory", - "operation": "Read KubeNodeInventory data", - "description": "Read data from the KubeNodeInventory table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/KubePodInventory/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "KubePodInventory", - "operation": "Read KubePodInventory data", - "description": "Read data from the KubePodInventory table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/KubeServices/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "KubeServices", - "operation": "Read KubeServices data", - "description": "Read data from the KubeServices table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/LinuxAuditLog/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "LinuxAuditLog", - "operation": "Read LinuxAuditLog data", - "description": "Read data from the LinuxAuditLog table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/MAApplication/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "MAApplication", - "operation": "Read MAApplication data", - "description": "Read data from the MAApplication table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/MAApplicationHealth/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "MAApplicationHealth", - "operation": "Read MAApplicationHealth data", - "description": "Read data from the MAApplicationHealth table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/MAApplicationHealthAlternativeVersions/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "MAApplicationHealthAlternativeVersions", - "operation": "Read MAApplicationHealthAlternativeVersions data", - "description": "Read data from the MAApplicationHealthAlternativeVersions table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/MAApplicationHealthIssues/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "MAApplicationHealthIssues", - "operation": "Read MAApplicationHealthIssues data", - "description": "Read data from the MAApplicationHealthIssues table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/MAApplicationInstance/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "MAApplicationInstance", - "operation": "Read MAApplicationInstance data", - "description": "Read data from the MAApplicationInstance table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/MAApplicationInstanceReadiness/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "MAApplicationInstanceReadiness", - "operation": "Read MAApplicationInstanceReadiness data", - "description": "Read data from the MAApplicationInstanceReadiness table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/MAApplicationReadiness/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "MAApplicationReadiness", - "operation": "Read MAApplicationReadiness data", - "description": "Read data from the MAApplicationReadiness table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/MADeploymentPlan/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "MADeploymentPlan", - "operation": "Read MADeploymentPlan data", - "description": "Read data from the MADeploymentPlan table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/MADevice/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "MADevice", - "operation": "Read MADevice data", - "description": "Read data from the MADevice table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/MADeviceNotEnrolled/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "MADeviceNotEnrolled", - "operation": "Read MADeviceNotEnrolled data", - "description": "Read data from the MADeviceNotEnrolled table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/MADeviceNRT/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "MADeviceNRT", - "operation": "Read MADeviceNRT data", - "description": "Read data from the MADeviceNRT table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/MADevicePnPHealth/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "MADevicePnPHealth", - "operation": "Read MADevicePnPHealth data", - "description": "Read data from the MADevicePnPHealth table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/MADevicePnPHealthAlternativeVersions/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "MADevicePnPHealthAlternativeVersions", - "operation": "Read MADevicePnPHealthAlternativeVersions data", - "description": "Read data from the MADevicePnPHealthAlternativeVersions table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/MADevicePnPHealthIssues/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "MADevicePnPHealthIssues", - "operation": "Read MADevicePnPHealthIssues data", - "description": "Read data from the MADevicePnPHealthIssues table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/MADeviceReadiness/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "MADeviceReadiness", - "operation": "Read MADeviceReadiness data", - "description": "Read data from the MADeviceReadiness table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/MADriverInstanceReadiness/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "MADriverInstanceReadiness", - "operation": "Read MADriverInstanceReadiness data", - "description": "Read data from the MADriverInstanceReadiness table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/MADriverReadiness/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "MADriverReadiness", - "operation": "Read MADriverReadiness data", - "description": "Read data from the MADriverReadiness table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/MAOfficeAddin/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "MAOfficeAddin", - "operation": "Read MAOfficeAddin data", - "description": "Read data from the MAOfficeAddin table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/MAOfficeAddinEntityHealth/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "MAOfficeAddinEntityHealth", - "operation": "Read MAOfficeAddinEntityHealth data", - "description": "Read data from the MAOfficeAddinEntityHealth table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/MAOfficeAddinHealth/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "MAOfficeAddinHealth", - "operation": "Read MAOfficeAddinHealth data", - "description": "Read data from the MAOfficeAddinHealth table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/MAOfficeAddinHealthEventNRT/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "MAOfficeAddinHealthEventNRT", - "operation": "Read MAOfficeAddinHealthEventNRT data", - "description": "Read data from the MAOfficeAddinHealthEventNRT table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/MAOfficeAddinHealthIssues/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "MAOfficeAddinHealthIssues", - "operation": "Read MAOfficeAddinHealthIssues data", - "description": "Read data from the MAOfficeAddinHealthIssues table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/MAOfficeAddinInstance/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "MAOfficeAddinInstance", - "operation": "Read MAOfficeAddinInstance data", - "description": "Read data from the MAOfficeAddinInstance table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/MAOfficeAddinInstanceReadiness/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "MAOfficeAddinInstanceReadiness", - "operation": "Read MAOfficeAddinInstanceReadiness data", - "description": "Read data from the MAOfficeAddinInstanceReadiness table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/MAOfficeAddinReadiness/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "MAOfficeAddinReadiness", - "operation": "Read MAOfficeAddinReadiness data", - "description": "Read data from the MAOfficeAddinReadiness table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/MAOfficeApp/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "MAOfficeApp", - "operation": "Read MAOfficeApp data", - "description": "Read data from the MAOfficeApp table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/MAOfficeAppCrashesNRT/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "MAOfficeAppCrashesNRT", - "operation": "Read MAOfficeAppCrashesNRT data", - "description": "Read data from the MAOfficeAppCrashesNRT table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/MAOfficeAppHealth/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "MAOfficeAppHealth", - "operation": "Read MAOfficeAppHealth data", - "description": "Read data from the MAOfficeAppHealth table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/MAOfficeAppInstance/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "MAOfficeAppInstance", - "operation": "Read MAOfficeAppInstance data", - "description": "Read data from the MAOfficeAppInstance table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/MAOfficeAppInstanceHealth/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "MAOfficeAppInstanceHealth", - "operation": "Read MAOfficeAppInstanceHealth data", - "description": "Read data from the MAOfficeAppInstanceHealth table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/MAOfficeAppReadiness/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "MAOfficeAppReadiness", - "operation": "Read MAOfficeAppReadiness data", - "description": "Read data from the MAOfficeAppReadiness table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/MAOfficeAppSessionsNRT/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "MAOfficeAppSessionsNRT", - "operation": "Read MAOfficeAppSessionsNRT data", - "description": "Read data from the MAOfficeAppSessionsNRT table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/MAOfficeBuildInfo/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "MAOfficeBuildInfo", - "operation": "Read MAOfficeBuildInfo data", - "description": "Read data from the MAOfficeBuildInfo table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/MAOfficeCurrencyAssessment/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "MAOfficeCurrencyAssessment", - "operation": "Read MAOfficeCurrencyAssessment data", - "description": "Read data from the MAOfficeCurrencyAssessment table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/MAOfficeCurrencyAssessmentDailyCounts/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "MAOfficeCurrencyAssessmentDailyCounts", - "operation": "Read MAOfficeCurrencyAssessmentDailyCounts data", - "description": "Read data from the MAOfficeCurrencyAssessmentDailyCounts table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/MAOfficeDeploymentStatus/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "MAOfficeDeploymentStatus", - "operation": "Read MAOfficeDeploymentStatus data", - "description": "Read data from the MAOfficeDeploymentStatus table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/MAOfficeDeploymentStatusNRT/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "MAOfficeDeploymentStatusNRT", - "operation": "Read MAOfficeDeploymentStatusNRT data", - "description": "Read data from the MAOfficeDeploymentStatusNRT table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/MAOfficeMacroErrorNRT/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "MAOfficeMacroErrorNRT", - "operation": "Read MAOfficeMacroErrorNRT data", - "description": "Read data from the MAOfficeMacroErrorNRT table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/MAOfficeMacroGlobalHealth/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "MAOfficeMacroGlobalHealth", - "operation": "Read MAOfficeMacroGlobalHealth data", - "description": "Read data from the MAOfficeMacroGlobalHealth table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/MAOfficeMacroHealth/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "MAOfficeMacroHealth", - "operation": "Read MAOfficeMacroHealth data", - "description": "Read data from the MAOfficeMacroHealth table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/MAOfficeMacroHealthIssues/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "MAOfficeMacroHealthIssues", - "operation": "Read MAOfficeMacroHealthIssues data", - "description": "Read data from the MAOfficeMacroHealthIssues table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/MAOfficeMacroIssueInstanceReadiness/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "MAOfficeMacroIssueInstanceReadiness", - "operation": "Read MAOfficeMacroIssueInstanceReadiness data", - "description": "Read data from the MAOfficeMacroIssueInstanceReadiness table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/MAOfficeMacroIssueReadiness/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "MAOfficeMacroIssueReadiness", - "operation": "Read MAOfficeMacroIssueReadiness data", - "description": "Read data from the MAOfficeMacroIssueReadiness table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/MAOfficeMacroSummary/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "MAOfficeMacroSummary", - "operation": "Read MAOfficeMacroSummary data", - "description": "Read data from the MAOfficeMacroSummary table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/MAOfficeSuite/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "MAOfficeSuite", - "operation": "Read MAOfficeSuite data", - "description": "Read data from the MAOfficeSuite table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/MAOfficeSuiteInstance/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "MAOfficeSuiteInstance", - "operation": "Read MAOfficeSuiteInstance data", - "description": "Read data from the MAOfficeSuiteInstance table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/MAProposedPilotDevices/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "MAProposedPilotDevices", - "operation": "Read MAProposedPilotDevices data", - "description": "Read data from the MAProposedPilotDevices table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/MAWindowsBuildInfo/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "MAWindowsBuildInfo", - "operation": "Read MAWindowsBuildInfo data", - "description": "Read data from the MAWindowsBuildInfo table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/MAWindowsCurrencyAssessment/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "MAWindowsCurrencyAssessment", - "operation": "Read MAWindowsCurrencyAssessment data", - "description": "Read data from the MAWindowsCurrencyAssessment table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/MAWindowsCurrencyAssessmentDailyCounts/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "MAWindowsCurrencyAssessmentDailyCounts", - "operation": "Read MAWindowsCurrencyAssessmentDailyCounts data", - "description": "Read data from the MAWindowsCurrencyAssessmentDailyCounts table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/MAWindowsDeploymentStatus/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "MAWindowsDeploymentStatus", - "operation": "Read MAWindowsDeploymentStatus data", - "description": "Read data from the MAWindowsDeploymentStatus table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/MAWindowsDeploymentStatusNRT/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "MAWindowsDeploymentStatusNRT", - "operation": "Read MAWindowsDeploymentStatusNRT data", - "description": "Read data from the MAWindowsDeploymentStatusNRT table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/MAWindowsSysReqInstanceReadiness/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "MAWindowsSysReqInstanceReadiness", - "operation": "Read MAWindowsSysReqInstanceReadiness data", - "description": "Read data from the MAWindowsSysReqInstanceReadiness table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/McasShadowItReporting/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "McasShadowItReporting", - "operation": "Read McasShadowItReporting data", - "description": "Read data from the McasShadowItReporting table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/MicrosoftAzureBastionAuditLogs/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "MicrosoftAzureBastionAuditLogs", - "operation": "Read MicrosoftAzureBastionAuditLogs data", - "description": "Read data from the MicrosoftAzureBastionAuditLogs table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/MicrosoftDataShareReceivedSnapshotLog/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "MicrosoftDataShareReceivedSnapshotLog", - "operation": "Read MicrosoftDataShareReceivedSnapshotLog data", - "description": "Read data from the MicrosoftDataShareReceivedSnapshotLog table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/MicrosoftDataShareSentSnapshotLog/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "MicrosoftDataShareSentSnapshotLog", - "operation": "Read MicrosoftDataShareSentSnapshotLog data", - "description": "Read data from the MicrosoftDataShareSentSnapshotLog table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/MicrosoftDataShareShareLog/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "MicrosoftDataShareShareLog", - "operation": "Read MicrosoftDataShareShareLog data", - "description": "Read data from the MicrosoftDataShareShareLog table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/MicrosoftDynamicsTelemetryPerformanceLogs/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "MicrosoftDynamicsTelemetryPerformanceLogs", - "operation": "Read MicrosoftDynamicsTelemetryPerformanceLogs data", - "description": "Read data from the MicrosoftDynamicsTelemetryPerformanceLogs table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/MicrosoftDynamicsTelemetrySystemMetricsLogs/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "MicrosoftDynamicsTelemetrySystemMetricsLogs", - "operation": "Read MicrosoftDynamicsTelemetrySystemMetricsLogs data", - "description": "Read data from the MicrosoftDynamicsTelemetrySystemMetricsLogs table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/MicrosoftHealthcareApisAuditLogs/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "MicrosoftHealthcareApisAuditLogs", - "operation": "Read MicrosoftHealthcareApisAuditLogs data", - "description": "Read data from the MicrosoftHealthcareApisAuditLogs table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/NetworkMonitoring/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "NetworkMonitoring", - "operation": "Read NetworkMonitoring data", - "description": "Read data from the NetworkMonitoring table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/OfficeActivity/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "OfficeActivity", - "operation": "Read OfficeActivity data", - "description": "Read data from the OfficeActivity table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/Operation/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Operation", - "operation": "Read Operation data", - "description": "Read data from the Operation table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/OutboundConnection/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "OutboundConnection", - "operation": "Read OutboundConnection data", - "description": "Read data from the OutboundConnection table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/Perf/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Perf", - "operation": "Read Perf data", - "description": "Read data from the Perf table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/ProtectionStatus/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "ProtectionStatus", - "operation": "Read ProtectionStatus data", - "description": "Read data from the ProtectionStatus table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/ReservedAzureCommonFields/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "ReservedAzureCommonFields", - "operation": "Read ReservedAzureCommonFields data", - "description": "Read data from the ReservedAzureCommonFields table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/ReservedCommonFields/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "ReservedCommonFields", - "operation": "Read ReservedCommonFields data", - "description": "Read data from the ReservedCommonFields table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/SCCMAssessmentRecommendation/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "SCCMAssessmentRecommendation", - "operation": "Read SCCMAssessmentRecommendation data", - "description": "Read data from the SCCMAssessmentRecommendation table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/SCOMAssessmentRecommendation/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "SCOMAssessmentRecommendation", - "operation": "Read SCOMAssessmentRecommendation data", - "description": "Read data from the SCOMAssessmentRecommendation table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/SecurityAlert/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "SecurityAlert", - "operation": "Read SecurityAlert data", - "description": "Read data from the SecurityAlert table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/SecurityBaseline/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "SecurityBaseline", - "operation": "Read SecurityBaseline data", - "description": "Read data from the SecurityBaseline table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/SecurityBaselineSummary/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "SecurityBaselineSummary", - "operation": "Read SecurityBaselineSummary data", - "description": "Read data from the SecurityBaselineSummary table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/SecurityDetection/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "SecurityDetection", - "operation": "Read SecurityDetection data", - "description": "Read data from the SecurityDetection table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/SecurityEvent/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "SecurityEvent", - "operation": "Read SecurityEvent data", - "description": "Read data from the SecurityEvent table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/SecurityIncident/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "SecurityIncident", - "operation": "Read SecurityIncident data", - "description": "Read data from the SecurityIncident table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/SecurityIoTRawEvent/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "SecurityIoTRawEvent", - "operation": "Read SecurityIoTRawEvent data", - "description": "Read data from the SecurityIoTRawEvent table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/SecurityNestedRecommendation/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "SecurityNestedRecommendation", - "operation": "Read SecurityNestedRecommendation data", - "description": "Read data from the SecurityNestedRecommendation table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/SecurityRecommendation/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "SecurityRecommendation", - "operation": "Read SecurityRecommendation data", - "description": "Read data from the SecurityRecommendation table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/ServiceFabricOperationalEvent/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "ServiceFabricOperationalEvent", - "operation": "Read ServiceFabricOperationalEvent data", - "description": "Read data from the ServiceFabricOperationalEvent table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/ServiceFabricReliableActorEvent/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "ServiceFabricReliableActorEvent", - "operation": "Read ServiceFabricReliableActorEvent data", - "description": "Read data from the ServiceFabricReliableActorEvent table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/ServiceFabricReliableServiceEvent/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "ServiceFabricReliableServiceEvent", - "operation": "Read ServiceFabricReliableServiceEvent data", - "description": "Read data from the ServiceFabricReliableServiceEvent table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/SfBAssessmentRecommendation/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "SfBAssessmentRecommendation", - "operation": "Read SfBAssessmentRecommendation data", - "description": "Read data from the SfBAssessmentRecommendation table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/SfBOnlineAssessmentRecommendation/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "SfBOnlineAssessmentRecommendation", - "operation": "Read SfBOnlineAssessmentRecommendation data", - "description": "Read data from the SfBOnlineAssessmentRecommendation table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/SharePointOnlineAssessmentRecommendation/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "SharePointOnlineAssessmentRecommendation", - "operation": "Read SharePointOnlineAssessmentRecommendation data", - "description": "Read data from the SharePointOnlineAssessmentRecommendation table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/SignalRServiceDiagnosticLogs/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "SignalRServiceDiagnosticLogs", - "operation": "Read SignalRServiceDiagnosticLogs data", - "description": "Read data from the SignalRServiceDiagnosticLogs table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/SigninLogs/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "SigninLogs", - "operation": "Read SigninLogs data", - "description": "Read data from the SigninLogs table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/SPAssessmentRecommendation/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "SPAssessmentRecommendation", - "operation": "Read SPAssessmentRecommendation data", - "description": "Read data from the SPAssessmentRecommendation table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/SQLAssessmentRecommendation/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "SQLAssessmentRecommendation", - "operation": "Read SQLAssessmentRecommendation data", - "description": "Read data from the SQLAssessmentRecommendation table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/SqlDataClassification/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "SqlDataClassification", - "operation": "Read SqlDataClassification data", - "description": "Read data from the SqlDataClassification table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/SQLQueryPerformance/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "SQLQueryPerformance", - "operation": "Read SQLQueryPerformance data", - "description": "Read data from the SQLQueryPerformance table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/SqlVulnerabilityAssessmentResult/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "SqlVulnerabilityAssessmentResult", - "operation": "Read SqlVulnerabilityAssessmentResult data", - "description": "Read data from the SqlVulnerabilityAssessmentResult table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/StorageBlobLogs/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "StorageBlobLogs", - "operation": "Read StorageBlobLogs data", - "description": "Read data from the StorageBlobLogs table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/StorageFileLogs/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "StorageFileLogs", - "operation": "Read StorageFileLogs data", - "description": "Read data from the StorageFileLogs table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/StorageQueueLogs/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "StorageQueueLogs", - "operation": "Read StorageQueueLogs data", - "description": "Read data from the StorageQueueLogs table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/StorageTableLogs/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "StorageTableLogs", - "operation": "Read StorageTableLogs data", - "description": "Read data from the StorageTableLogs table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/SucceededIngestion/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "SucceededIngestion", - "operation": "Read SucceededIngestion data", - "description": "Read data from the SucceededIngestion table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/Syslog/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Syslog", - "operation": "Read Syslog data", - "description": "Read data from the Syslog table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/SysmonEvent/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "SysmonEvent", - "operation": "Read SysmonEvent data", - "description": "Read data from the SysmonEvent table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/ThreatIntelligenceIndicator/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "ThreatIntelligenceIndicator", - "operation": "Read ThreatIntelligenceIndicator data", - "description": "Read data from the ThreatIntelligenceIndicator table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/TSIIngress/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "TSIIngress", - "operation": "Read TSIIngress data", - "description": "Read data from the TSIIngress table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/UAApp/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "UAApp", - "operation": "Read UAApp data", - "description": "Read data from the UAApp table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/UAComputer/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "UAComputer", - "operation": "Read UAComputer data", - "description": "Read data from the UAComputer table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/UAComputerRank/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "UAComputerRank", - "operation": "Read UAComputerRank data", - "description": "Read data from the UAComputerRank table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/UADriver/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "UADriver", - "operation": "Read UADriver data", - "description": "Read data from the UADriver table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/UADriverProblemCodes/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "UADriverProblemCodes", - "operation": "Read UADriverProblemCodes data", - "description": "Read data from the UADriverProblemCodes table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/UAFeedback/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "UAFeedback", - "operation": "Read UAFeedback data", - "description": "Read data from the UAFeedback table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/UAHardwareSecurity/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "UAHardwareSecurity", - "operation": "Read UAHardwareSecurity data", - "description": "Read data from the UAHardwareSecurity table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/UAIESiteDiscovery/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "UAIESiteDiscovery", - "operation": "Read UAIESiteDiscovery data", - "description": "Read data from the UAIESiteDiscovery table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/UAOfficeAddIn/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "UAOfficeAddIn", - "operation": "Read UAOfficeAddIn data", - "description": "Read data from the UAOfficeAddIn table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/UAProposedActionPlan/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "UAProposedActionPlan", - "operation": "Read UAProposedActionPlan data", - "description": "Read data from the UAProposedActionPlan table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/UASysReqIssue/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "UASysReqIssue", - "operation": "Read UASysReqIssue data", - "description": "Read data from the UASysReqIssue table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/UAUpgradedComputer/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "UAUpgradedComputer", - "operation": "Read UAUpgradedComputer data", - "description": "Read data from the UAUpgradedComputer table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/Update/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Update", - "operation": "Read Update data", - "description": "Read data from the Update table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/UpdateRunProgress/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "UpdateRunProgress", - "operation": "Read UpdateRunProgress data", - "description": "Read data from the UpdateRunProgress table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/UpdateSummary/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "UpdateSummary", - "operation": "Read UpdateSummary data", - "description": "Read data from the UpdateSummary table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/Usage/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Usage", - "operation": "Read Usage data", - "description": "Read data from the Usage table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/UserAccessAnalytics/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "UserAccessAnalytics", - "operation": "Read UserAccessAnalytics data", - "description": "Read data from the UserAccessAnalytics table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/UserPeerAnalytics/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "UserPeerAnalytics", - "operation": "Read UserPeerAnalytics data", - "description": "Read data from the UserPeerAnalytics table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/VMBoundPort/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "VMBoundPort", - "operation": "Read VMBoundPort data", - "description": "Read data from the VMBoundPort table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/VMComputer/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "VMComputer", - "operation": "Read VMComputer data", - "description": "Read data from the VMComputer table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/VMConnection/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "VMConnection", - "operation": "Read VMConnection data", - "description": "Read data from the VMConnection table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/VMProcess/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "VMProcess", - "operation": "Read VMProcess data", - "description": "Read data from the VMProcess table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/W3CIISLog/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "W3CIISLog", - "operation": "Read W3CIISLog data", - "description": "Read data from the W3CIISLog table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/WaaSDeploymentStatus/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "WaaSDeploymentStatus", - "operation": "Read WaaSDeploymentStatus data", - "description": "Read data from the WaaSDeploymentStatus table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/WaaSInsiderStatus/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "WaaSInsiderStatus", - "operation": "Read WaaSInsiderStatus data", - "description": "Read data from the WaaSInsiderStatus table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/WaaSUpdateStatus/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "WaaSUpdateStatus", - "operation": "Read WaaSUpdateStatus data", - "description": "Read data from the WaaSUpdateStatus table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/WDAVStatus/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "WDAVStatus", - "operation": "Read WDAVStatus data", - "description": "Read data from the WDAVStatus table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/WDAVThreat/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "WDAVThreat", - "operation": "Read WDAVThreat data", - "description": "Read data from the WDAVThreat table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/WindowsClientAssessmentRecommendation/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "WindowsClientAssessmentRecommendation", - "operation": "Read WindowsClientAssessmentRecommendation data", - "description": "Read data from the WindowsClientAssessmentRecommendation table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/WindowsEvent/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "WindowsEvent", - "operation": "Read WindowsEvent data", - "description": "Read data from the WindowsEvent table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/WindowsFirewall/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "WindowsFirewall", - "operation": "Read WindowsFirewall data", - "description": "Read data from the WindowsFirewall table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/WindowsServerAssessmentRecommendation/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "WindowsServerAssessmentRecommendation", - "operation": "Read WindowsServerAssessmentRecommendation data", - "description": "Read data from the WindowsServerAssessmentRecommendation table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/WireData/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "WireData", - "operation": "Read WireData data", - "description": "Read data from the WireData table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/WorkloadMonitoringPerf/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "WorkloadMonitoringPerf", - "operation": "Read WorkloadMonitoringPerf data", - "description": "Read data from the WorkloadMonitoringPerf table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/WUDOAggregatedStatus/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "WUDOAggregatedStatus", - "operation": "Read WUDOAggregatedStatus data", - "description": "Read data from the WUDOAggregatedStatus table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/WUDOStatus/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "WUDOStatus", - "operation": "Read WUDOStatus data", - "description": "Read data from the WUDOStatus table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/WVDCheckpoints/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "WVDCheckpoints", - "operation": "Read WVDCheckpoints data", - "description": "Read data from the WVDCheckpoints table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/WVDConnections/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "WVDConnections", - "operation": "Read WVDConnections data", - "description": "Read data from the WVDConnections table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/WVDErrors/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "WVDErrors", - "operation": "Read WVDErrors data", - "description": "Read data from the WVDErrors table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/WVDFeeds/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "WVDFeeds", - "operation": "Read WVDFeeds data", - "description": "Read data from the WVDFeeds table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/WVDHostRegistrations/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "WVDHostRegistrations", - "operation": "Read WVDHostRegistrations data", - "description": "Read data from the WVDHostRegistrations table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Logs/WVDManagement/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "WVDManagement", - "operation": "Read WVDManagement data", - "description": "Read data from the WVDManagement table" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Baseline/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Metric Baseline", - "operation": "Read metric baseline", - "description": "Read a metric baseline (preview)" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/CalculateBaseline/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Metric Baseline", - "operation": "Calculate baseline", - "description": "Calculate baseline for metric values (preview)" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/MetricBaselines/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Metric Baseline", - "operation": "Read metric baselines", - "description": "Read metric baselines" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/DataCollectionRules/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Data collection rule", - "operation": "Read data collection rule", - "description": "Read a data collection rule" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/DataCollectionRules/Write", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Data collection rule", - "operation": "Create or update data collection rule", - "description": "Create or update a data collection rule" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/DataCollectionRules/Delete", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Data collection rule", - "operation": "Delete data collection rule", - "description": "Delete a data collection rule" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/DataCollectionRules/Data/Write", - "isDataAction": true, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Data collection rule", - "operation": "Send data to data collection rule", - "description": "Send data to a data collection rule" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/DataCollectionRuleAssociations/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Data collection rule association", - "operation": "Read data collection rule association", - "description": "Read a resource\u0027s association with a data collection rule" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/DataCollectionRuleAssociations/Write", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Data collection rule association", - "operation": "Create or update data collection rule association", - "description": "Create or update a resource\u0027s association with a data collection rule" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/DataCollectionRuleAssociations/Delete", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Data collection rule association", - "operation": "Delete data collection rule association", - "description": "Delete a resource\u0027s association with a data collection rule" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/DataCollectionEndpoints/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Data collection endpoint", - "operation": "Read data collection endpoint", - "description": "Read a data collection endpoint" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/DataCollectionEndpoints/Write", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Data collection endpoint", - "operation": "Create or update data collection endpoint", - "description": "Create or update a data collection endpoint" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/DataCollectionEndpoints/Delete", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Data collection endpoint", - "operation": "Delete data collection endpoint", - "description": "Delete a data collection endpoint" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/DataCollectionEndpoints/ScopedPrivateLinkProxies/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Data collection endpoint scoped private link proxy", - "operation": "Read data collection endpoint private link proxy", - "description": "Read a data collection endpoint private link proxy" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/DataCollectionEndpoints/ScopedPrivateLinkProxies/Write", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Data collection endpoint scoped private link proxy", - "operation": "Create or update data collection endpoint private link proxy", - "description": "Create or update a data collection endpoint private link proxy" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/DataCollectionEndpoints/ScopedPrivateLinkProxies/Delete", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Data collection endpoint scoped private link proxy", - "operation": "Delete data collection endpoint private link proxy", - "description": "Delete a data collection endpoint private link proxy" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/MonitoredObjects/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Monitored Object", - "operation": "Read monitored object", - "description": "Read a monitored object" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/MonitoredObjects/Write", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Monitored Object", - "operation": "Create or update monitored object", - "description": "Create or update a monitored object" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/MonitoredObjects/Delete", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Monitored Object", - "operation": "Delete monitored object", - "description": "Delete a monitored object" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/DataCollectionEndpoints/NetworkSecurityPerimeterAssociationProxies/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Data collection endpoint NSP association proxy", - "operation": "Read data collection endpoint NSP association proxy", - "description": "Read a data collection endpoint NSP association proxy" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/DataCollectionEndpoints/NetworkSecurityPerimeterAssociationProxies/Write", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Data collection endpoint NSP association proxy", - "operation": "Create or update data collection endpoint NSP association proxy", - "description": "Create or update a data collection endpoint NSP association proxy" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/DataCollectionEndpoints/NetworkSecurityPerimeterAssociationProxies/Delete", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Data collection endpoint NSP association proxy", - "operation": "Delete data collection endpoint NSP association proxy", - "description": "Delete a data collection endpoint NSP association proxy" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/DataCollectionEndpoints/NetworkSecurityPerimeterConfigurations/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Data collection endpoint effective NSP configuration", - "operation": "Read data collection endpoint effective NSP configuration", - "description": "Read data collection endpoint effective NSP configuration" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/DataCollectionEndpoints/NetworkSecurityPerimeterConfigurations/Reconcile/Action", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Data collection endpoint effective NSP configuration", - "operation": "Reconcile data collection endpoint NSP configuration", - "description": "Reconcile data collection endpoint NSP configuration" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/PrivateLinkScopes/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Private Link Scope", - "operation": "Read a private link scope", - "description": "Read a private link scope" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/PrivateLinkScopes/Write", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Private Link Scope", - "operation": "Create or update a private link scope", - "description": "Create or update a private link scope" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/PrivateLinkScopes/Delete", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Private Link Scope", - "operation": "Delete a private link scope", - "description": "Delete a private link scope" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/PrivateLinkScopeOperationStatuses/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Private Link Scope operation status", - "operation": "Read a private link scoped operation status", - "description": "Read a private link scoped operation status" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/PrivateLinkScopes/ScopedResources/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Private Link Scoped Resource", - "operation": "Read a private link scoped resource", - "description": "Read a private link scoped resource" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/PrivateLinkScopes/ScopedResources/Write", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Private Link Scoped Resource", - "operation": "Create or update a private link scoped resource", - "description": "Create or update a private link scoped resource" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/PrivateLinkScopes/ScopedResources/Delete", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Private Link Scoped Resource", - "operation": "Delete a private link scoped resource", - "description": "Delete a private link scoped resource" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/PrivateLinkScopes/PrivateLinkResources/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Private Link Resource", - "operation": "Read a private link resource", - "description": "Read a private link resource" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/PrivateLinkScopes/PrivateEndpointConnections/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Private endpoint connection", - "operation": "Read a private endpoint connection", - "description": "Read a private endpoint connection" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/PrivateLinkScopes/PrivateEndpointConnections/Write", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Private endpoint connection", - "operation": "Create or update a private endpoint connection", - "description": "Create or update a private endpoint connection" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/PrivateLinkScopes/PrivateEndpointConnections/Delete", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Private endpoint connection", - "operation": "Delete a private endpoint connection", - "description": "Delete a private endpoint connection" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/PrivateLinkScopes/PrivateEndpointConnectionProxies/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Private endpoint connection proxy", - "operation": "Read a private endpoint connection proxy", - "description": "Read a private endpoint connection proxy" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/PrivateLinkScopes/PrivateEndpointConnectionProxies/Write", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Private endpoint connection proxy", - "operation": "Create or update a private endpoint connection proxy", - "description": "Create or update a private endpoint connection proxy" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/PrivateLinkScopes/PrivateEndpointConnectionProxies/Delete", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Private endpoint connection proxy", - "operation": "Delete a private endpoint connection proxy", - "description": "Delete a private endpoint connection proxy" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/PrivateLinkScopes/PrivateEndpointConnectionProxies/Validate/Action", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Private endpoint connection proxy", - "operation": "Validate a private endpoint connection proxy", - "description": "Validate a private endpoint connection proxy" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/PrivateLinkScopes/PrivateEndpointConnectionsApproval/action", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Private endpoint connection", - "operation": "Approve or reject a Private Endpoint connection", - "description": "Approve or reject a connection to a Private Endpoint resource of Microsoft.Network provider" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/MyWorkbooks/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "MyWorkbooks", - "operation": "Read private workbook", - "description": "Read a private Workbook" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/MyWorkbooks/Write", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "MyWorkbooks", - "operation": "Create or update private workbook", - "description": "Create or update a private workbook" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/MyWorkbooks/Delete", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "MyWorkbooks", - "operation": "Delete private workbook", - "description": "Delete a private workbook" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Workbooks/Write", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Workbooks", - "operation": "Create or update workbook", - "description": "Create or update a workbook" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Workbooks/Delete", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Workbooks", - "operation": "Delete workbook", - "description": "Delete a workbook" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Workbooks/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Workbooks", - "operation": "Read workbook", - "description": "Read a workbook" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/Workbooks/Revisions/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "Workbooks", - "operation": "Workbook revisions", - "description": "Get the workbook revisions" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/WorkbookTemplates/Write", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "WorkbookTemplates", - "operation": "Create or update workbook template", - "description": "Create or update a workbook template" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/WorkbookTemplates/Delete", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "WorkbookTemplates", - "operation": "Delete workbook template", - "description": "Delete a workbook template" - }, - "properties": {} - }, - { - "name": "Microsoft.Insights/WorkbookTemplates/Read", - "isDataAction": false, - "display": { - "publisher": "Microsoft", - "provider": "Microsoft Azure Monitor", - "resource": "WorkbookTemplates", - "operation": "Read workbook template", - "description": "Read a workbook template" - }, - "properties": {} - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Wed, 12 Oct 2022 06:40:36 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ2NzMtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14994", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T064037Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": { - "recordingRandomSeed": "1665556303" - } -} diff --git a/sdk/resourcemanager/monitor/armmonitor/testdata/recordings/TestDatacollectionendpointsTestSuite.json b/sdk/resourcemanager/monitor/armmonitor/testdata/recordings/TestDatacollectionendpointsTestSuite.json deleted file mode 100644 index b2688d0e84ec..000000000000 --- a/sdk/resourcemanager/monitor/armmonitor/testdata/recordings/TestDatacollectionendpointsTestSuite.json +++ /dev/null @@ -1,505 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "eastus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:40:40 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1189", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T064041Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "eastus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Insights/dataCollectionEndpoints/datacollectionendpointnaEpxQjq?api-version=2021-09-01-preview", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "84", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armmonitor/v0.7.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "eastus", - "properties": { - "networkAcls": { - "publicNetworkAccess": "Enabled" - } - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "2021-04-01, 2021-09-01-preview, 2022-06-01", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:40:46 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "59", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T064043Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "immutableId": "dce-6d8c4716a4ce43ea960797f42e962aa5", - "configurationAccess": { - "endpoint": "https://datacollectionendpointnaepxqjq-zux0.eastus-1.handler.control.monitor.azure.com" - }, - "logsIngestion": { - "endpoint": "https://datacollectionendpointnaepxqjq-zux0.eastus-1.ingest.monitor.azure.com" - }, - "metricsIngestion": { - "endpoint": "https://datacollectionendpointnaepxqjq-zux0.eastus-1.metrics.ingest.monitor.azure.com" - }, - "networkAcls": { - "publicNetworkAccess": "Enabled" - }, - "provisioningState": "Succeeded" - }, - "location": "eastus", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Insights/dataCollectionEndpoints/datacollectionendpointnaEpxQjq", - "name": "datacollectionendpointnaEpxQjq", - "type": "Microsoft.Insights/dataCollectionEndpoints", - "etag": "\u002200000000-0000-0000-0000-000000000000\u0022", - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-12T06:40:43.7439808Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-12T06:40:43.7439808Z" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Insights/dataCollectionEndpoints?api-version=2021-09-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armmonitor/v0.7.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "2021-04-01, 2021-09-01-preview, 2022-06-01", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:40:47 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11972", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T064047Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "properties": { - "immutableId": "dce-6d8c4716a4ce43ea960797f42e962aa5", - "configurationAccess": { - "endpoint": "https://datacollectionendpointnaepxqjq-zux0.eastus-1.handler.control.monitor.azure.com" - }, - "logsIngestion": { - "endpoint": "https://datacollectionendpointnaepxqjq-zux0.eastus-1.ingest.monitor.azure.com" - }, - "metricsIngestion": { - "endpoint": "https://datacollectionendpointnaepxqjq-zux0.eastus-1.metrics.ingest.monitor.azure.com" - }, - "networkAcls": { - "publicNetworkAccess": "Enabled" - }, - "provisioningState": "Succeeded" - }, - "location": "eastus", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Insights/dataCollectionEndpoints/datacollectionendpointnaEpxQjq", - "name": "datacollectionendpointnaEpxQjq", - "type": "Microsoft.Insights/dataCollectionEndpoints", - "etag": "\u002200000000-0000-0000-0000-000000000000\u0022", - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-12T06:40:43.7439808Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-12T06:40:43.7439808Z" - } - } - ], - "nextLink": null - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Insights/dataCollectionEndpoints/datacollectionendpointnaEpxQjq?api-version=2021-09-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armmonitor/v0.7.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "2021-04-01, 2021-09-01-preview, 2022-06-01", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:40:47 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11971", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T064048Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "immutableId": "dce-6d8c4716a4ce43ea960797f42e962aa5", - "configurationAccess": { - "endpoint": "https://datacollectionendpointnaepxqjq-zux0.eastus-1.handler.control.monitor.azure.com" - }, - "logsIngestion": { - "endpoint": "https://datacollectionendpointnaepxqjq-zux0.eastus-1.ingest.monitor.azure.com" - }, - "metricsIngestion": { - "endpoint": "https://datacollectionendpointnaepxqjq-zux0.eastus-1.metrics.ingest.monitor.azure.com" - }, - "networkAcls": { - "publicNetworkAccess": "Enabled" - }, - "provisioningState": "Succeeded" - }, - "location": "eastus", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Insights/dataCollectionEndpoints/datacollectionendpointnaEpxQjq", - "name": "datacollectionendpointnaEpxQjq", - "type": "Microsoft.Insights/dataCollectionEndpoints", - "etag": "\u002200000000-0000-0000-0000-000000000000\u0022", - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-12T06:40:43.7439808Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-12T06:40:43.7439808Z" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Insights/dataCollectionEndpoints?api-version=2021-09-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armmonitor/v0.7.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "2021-04-01, 2021-09-01-preview, 2022-06-01", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:40:48 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11970", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T064048Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "properties": { - "immutableId": "dce-6d8c4716a4ce43ea960797f42e962aa5", - "configurationAccess": { - "endpoint": "https://datacollectionendpointnaepxqjq-zux0.eastus-1.handler.control.monitor.azure.com" - }, - "logsIngestion": { - "endpoint": "https://datacollectionendpointnaepxqjq-zux0.eastus-1.ingest.monitor.azure.com" - }, - "metricsIngestion": { - "endpoint": "https://datacollectionendpointnaepxqjq-zux0.eastus-1.metrics.ingest.monitor.azure.com" - }, - "networkAcls": { - "publicNetworkAccess": "Enabled" - }, - "provisioningState": "Succeeded" - }, - "location": "eastus", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Insights/dataCollectionEndpoints/datacollectionendpointnaEpxQjq", - "name": "datacollectionendpointnaEpxQjq", - "type": "Microsoft.Insights/dataCollectionEndpoints", - "etag": "\u002200000000-0000-0000-0000-000000000000\u0022", - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-12T06:40:43.7439808Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-12T06:40:43.7439808Z" - } - } - ], - "nextLink": null - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Insights/dataCollectionEndpoints/datacollectionendpointnaEpxQjq?api-version=2021-09-01-preview", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "43", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armmonitor/v0.7.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "tags": { - "tag1": "A", - "tag2": "B", - "tag3": "C" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "2021-04-01, 2021-09-01-preview, 2022-06-01", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:40:52 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "58", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T064049Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "immutableId": "dce-6d8c4716a4ce43ea960797f42e962aa5", - "configurationAccess": { - "endpoint": "https://datacollectionendpointnaepxqjq-zux0.eastus-1.handler.control.monitor.azure.com" - }, - "logsIngestion": { - "endpoint": "https://datacollectionendpointnaepxqjq-zux0.eastus-1.ingest.monitor.azure.com" - }, - "metricsIngestion": { - "endpoint": "https://datacollectionendpointnaepxqjq-zux0.eastus-1.metrics.ingest.monitor.azure.com" - }, - "networkAcls": { - "publicNetworkAccess": "Enabled" - }, - "provisioningState": "Succeeded" - }, - "location": "eastus", - "tags": { - "tag1": "A", - "tag2": "B", - "tag3": "C" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Insights/dataCollectionEndpoints/datacollectionendpointnaEpxQjq", - "name": "datacollectionendpointnaEpxQjq", - "type": "Microsoft.Insights/dataCollectionEndpoints", - "etag": "\u002200000000-0000-0000-0000-000000000000\u0022", - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-12T06:40:43.7439808Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-12T06:40:49.8377618Z" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Insights/dataCollectionEndpoints/datacollectionendpointnaEpxQjq/associations?api-version=2021-09-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armmonitor/v0.7.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "2019-11-01-preview, 2021-04-01, 2021-09-01-preview, 2022-06-01", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:40:53 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11969", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T064053Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [], - "nextLink": null - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Insights/dataCollectionEndpoints/datacollectionendpointnaEpxQjq?api-version=2021-09-01-preview", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armmonitor/v0.7.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "2021-04-01, 2021-09-01-preview, 2022-06-01", - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Wed, 12 Oct 2022 06:41:00 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14993", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T064054Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Wed, 12 Oct 2022 06:41:01 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQzNjQtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14992", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T064101Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": { - "recordingRandomSeed": "1665556303" - } -} diff --git a/sdk/resourcemanager/monitor/armmonitor/testdata/recordings/TestDatacollectionrulesTestSuite.json b/sdk/resourcemanager/monitor/armmonitor/testdata/recordings/TestDatacollectionrulesTestSuite.json deleted file mode 100644 index b5170b08e3b7..000000000000 --- a/sdk/resourcemanager/monitor/armmonitor/testdata/recordings/TestDatacollectionrulesTestSuite.json +++ /dev/null @@ -1,2216 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "eastus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:41:04 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1188", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T064104Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "eastus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/WorkSpaces_Create?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "657", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "mode": "Incremental", - "parameters": { - "location": { - "value": "eastus" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "outputs": { - "workspaceId": { - "type": "string", - "value": "[resourceId(\u0027Microsoft.OperationalInsights/workspaces\u0027,\u0027workspacena\u0027)]" - } - }, - "parameters": { - "location": { - "defaultValue": "$(location)", - "type": "string" - } - }, - "resources": [ - { - "apiVersion": "2021-12-01-preview", - "location": "[parameters(\u0027location\u0027)]", - "name": "workspacena", - "properties": { - "retentionInDays": 30, - "sku": { - "name": "PerNode" - } - }, - "tags": { - "tag1": "value1" - }, - "type": "Microsoft.OperationalInsights/workspaces" - } - ] - } - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/WorkSpaces_Create/operationStatuses/08585360500194288961?api-version=2021-04-01", - "Cache-Control": "no-cache", - "Content-Length": "656", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:41:07 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1187", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T064107Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/WorkSpaces_Create", - "name": "WorkSpaces_Create", - "type": "Microsoft.Resources/deployments", - "properties": { - "templateHash": "4923452057577046661", - "parameters": { - "location": { - "type": "String", - "value": "eastus" - } - }, - "mode": "Incremental", - "provisioningState": "Accepted", - "timestamp": "2022-10-12T06:41:06.6342203Z", - "duration": "PT0.0009646S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.OperationalInsights", - "resourceTypes": [ - { - "resourceType": "workspaces", - "locations": [ - "eastus" - ] - } - ] - } - ], - "dependencies": [] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/WorkSpaces_Create/operationStatuses/08585360500194288961?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "20", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:41:08 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11968", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T064108Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/WorkSpaces_Create/operationStatuses/08585360500194288961?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "20", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:41:38 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11967", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T064138Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/WorkSpaces_Create/operationStatuses/08585360500194288961?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "22", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:42:08 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11966", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T064209Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/WorkSpaces_Create?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "1031", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:42:09 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11965", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T064209Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/WorkSpaces_Create", - "name": "WorkSpaces_Create", - "type": "Microsoft.Resources/deployments", - "properties": { - "templateHash": "4923452057577046661", - "parameters": { - "location": { - "type": "String", - "value": "eastus" - } - }, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2022-10-12T06:41:39.2365682Z", - "duration": "PT32.6033125S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.OperationalInsights", - "resourceTypes": [ - { - "resourceType": "workspaces", - "locations": [ - "eastus" - ] - } - ] - } - ], - "dependencies": [], - "outputs": { - "workspaceId": { - "type": "String", - "value": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/workspacena" - } - }, - "outputResources": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/workspacena" - } - ] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/ContainerService_Create?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "2420", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "mode": "Incremental", - "parameters": { - "azureClientId": { - "value": "000000000000" - }, - "azureClientSecret": { - "value": "000000000000" - }, - "location": { - "value": "eastus" - }, - "managedClustersName": { - "value": "associationaksEpxQjq" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "outputs": { - "resourceUri": { - "type": "string", - "value": "[resourceId(\u0027Microsoft.ContainerService/managedClusters\u0027, parameters(\u0027managedClustersName\u0027))]" - } - }, - "parameters": { - "azureClientId": { - "defaultValue": "$(azureClientId)", - "type": "string" - }, - "azureClientSecret": { - "defaultValue": "$(azureClientSecret)", - "type": "string" - }, - "location": { - "defaultValue": "$(location)", - "type": "string" - }, - "managedClustersName": { - "defaultValue": "$(managedClustersName)", - "type": "string" - } - }, - "resources": [ - { - "apiVersion": "2022-06-02-preview", - "identity": { - "type": "SystemAssigned" - }, - "location": "[parameters(\u0027location\u0027)]", - "name": "[parameters(\u0027managedClustersName\u0027)]", - "properties": { - "agentPoolProfiles": [ - { - "availabilityZones": [ - "1", - "2", - "3" - ], - "count": 1, - "enableAutoScaling": true, - "enableFIPS": false, - "enableNodePublicIP": false, - "kubeletDiskType": "OS", - "maxCount": 5, - "maxPods": 110, - "minCount": 1, - "mode": "System", - "name": "agentpool", - "orchestratorVersion": "1.23.8", - "osDiskSizeGB": 128, - "osDiskType": "Managed", - "osSKU": "Ubuntu", - "osType": "Linux", - "powerState": { - "code": "Running" - }, - "type": "VirtualMachineScaleSets", - "vmSize": "Standard_DS2_v2" - }, - { - "count": 1, - "enableAutoScaling": true, - "enableFIPS": false, - "enableNodePublicIP": false, - "kubeletDiskType": "OS", - "maxCount": 10, - "maxPods": 110, - "minCount": 1, - "mode": "User", - "name": "noodpool2", - "orchestratorVersion": "1.23.8", - "osDiskSizeGB": 128, - "osDiskType": "Managed", - "osSKU": "Ubuntu", - "osType": "Linux", - "powerState": { - "code": "Running" - }, - "scaleDownMode": "Delete", - "type": "VirtualMachineScaleSets", - "upgradeSettings": {}, - "vmSize": "Standard_DS2_v2" - } - ], - "dnsPrefix": "[concat(parameters(\u0027managedClustersName\u0027), \u0027-dns\u0027)]", - "kubernetesVersion": "1.23.8", - "oidcIssuerProfile": { - "enabled": false - }, - "servicePrincipalProfile": { - "clientId": "[parameters(\u0027azureClientId\u0027)]", - "secret": "[parameters(\u0027azureClientSecret\u0027)]" - }, - "storageProfile": { - "diskCSIDriver": { - "enabled": true, - "version": "v1" - }, - "fileCSIDriver": { - "enabled": true - }, - "snapshotController": { - "enabled": true - } - }, - "workloadAutoScalerProfile": {} - }, - "sku": { - "name": "Basic", - "tier": "Paid" - }, - "type": "Microsoft.ContainerService/managedClusters" - } - ], - "variables": {} - } - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/ContainerService_Create/operationStatuses/08585360499542198782?api-version=2021-04-01", - "Cache-Control": "no-cache", - "Content-Length": "910", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:42:25 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1186", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T064226Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/ContainerService_Create", - "name": "ContainerService_Create", - "type": "Microsoft.Resources/deployments", - "properties": { - "templateHash": "4457149819524361810", - "parameters": { - "azureClientId": { - "type": "String", - "value": "000000000000" - }, - "azureClientSecret": { - "type": "String", - "value": "000000000000" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "managedClustersName": { - "type": "String", - "value": "associationaksEpxQjq" - } - }, - "mode": "Incremental", - "provisioningState": "Accepted", - "timestamp": "2022-10-12T06:42:24.714672Z", - "duration": "PT0.0000859S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.ContainerService", - "resourceTypes": [ - { - "resourceType": "managedClusters", - "locations": [ - "eastus" - ] - } - ] - } - ], - "dependencies": [] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/ContainerService_Create/operationStatuses/08585360499542198782?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "20", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:42:26 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11964", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T064226Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/ContainerService_Create/operationStatuses/08585360499542198782?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "20", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:42:57 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11963", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T064257Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/ContainerService_Create/operationStatuses/08585360499542198782?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "20", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:43:27 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11962", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T064328Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/ContainerService_Create/operationStatuses/08585360499542198782?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "20", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:43:58 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11961", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T064359Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/ContainerService_Create/operationStatuses/08585360499542198782?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "20", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:44:29 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11960", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T064429Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/ContainerService_Create/operationStatuses/08585360499542198782?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "20", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:45:00 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11959", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T064500Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/ContainerService_Create/operationStatuses/08585360499542198782?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "20", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:45:30 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11958", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T064531Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/ContainerService_Create/operationStatuses/08585360499542198782?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "20", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:46:01 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11957", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T064602Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/ContainerService_Create/operationStatuses/08585360499542198782?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "20", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:46:32 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11956", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T064633Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/ContainerService_Create/operationStatuses/08585360499542198782?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "20", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:47:03 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11955", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T064703Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/ContainerService_Create/operationStatuses/08585360499542198782?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "20", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:47:33 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11954", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T064734Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/ContainerService_Create/operationStatuses/08585360499542198782?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "20", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:48:03 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11953", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T064804Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/ContainerService_Create/operationStatuses/08585360499542198782?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "20", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:48:35 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11952", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T064835Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/ContainerService_Create/operationStatuses/08585360499542198782?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "22", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:49:06 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11951", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T064906Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/ContainerService_Create?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "1309", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:49:06 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11950", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T064907Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/ContainerService_Create", - "name": "ContainerService_Create", - "type": "Microsoft.Resources/deployments", - "properties": { - "templateHash": "4457149819524361810", - "parameters": { - "azureClientId": { - "type": "String", - "value": "000000000000" - }, - "azureClientSecret": { - "type": "String", - "value": "000000000000" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "managedClustersName": { - "type": "String", - "value": "associationaksEpxQjq" - } - }, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2022-10-12T06:49:00.327128Z", - "duration": "PT6M35.6125419S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.ContainerService", - "resourceTypes": [ - { - "resourceType": "managedClusters", - "locations": [ - "eastus" - ] - } - ] - } - ], - "dependencies": [], - "outputs": { - "resourceUri": { - "type": "String", - "value": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerService/managedClusters/associationaksEpxQjq" - } - }, - "outputResources": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerService/managedClusters/associationaksEpxQjq" - } - ] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Insights/dataCollectionRules/datacollectionrulenaEpxQjq?api-version=2021-09-01-preview", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "1413", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armmonitor/v0.7.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "eastus", - "properties": { - "dataFlows": [ - { - "destinations": [ - "centralWorkspace" - ], - "streams": [ - "Microsoft-Perf", - "Microsoft-Syslog" - ] - } - ], - "dataSources": { - "performanceCounters": [ - { - "counterSpecifiers": [ - "\\Processor(_Total)\\% Processor Time", - "\\Memory\\Committed Bytes", - "\\LogicalDisk(_Total)\\Free Megabytes", - "\\PhysicalDisk(_Total)\\Avg. Disk Queue Length" - ], - "name": "cloudTeamCoreCounters", - "samplingFrequencyInSeconds": 15, - "streams": [ - "Microsoft-Perf" - ] - }, - { - "counterSpecifiers": [ - "\\Process(_Total)\\Thread Count" - ], - "name": "appTeamExtraCounters", - "samplingFrequencyInSeconds": 30, - "streams": [ - "Microsoft-Perf" - ] - } - ], - "syslog": [ - { - "facilityNames": [ - "cron" - ], - "logLevels": [ - "Debug", - "Critical", - "Emergency" - ], - "name": "cronSyslog", - "streams": [ - "Microsoft-Syslog" - ] - }, - { - "facilityNames": [ - "syslog" - ], - "logLevels": [ - "Alert", - "Critical", - "Emergency" - ], - "name": "syslogBase", - "streams": [ - "Microsoft-Syslog" - ] - } - ], - "windowsEventLogs": [ - { - "name": "cloudSecurityTeamEvents", - "streams": [ - "Microsoft-WindowsEvent" - ], - "xPathQueries": [ - "Security!" - ] - }, - { - "name": "appTeam1AppEvents", - "streams": [ - "Microsoft-WindowsEvent" - ], - "xPathQueries": [ - "System![System[(Level = 1 or Level = 2 or Level = 3)]]", - "Application!*[System[(Level = 1 or Level = 2 or Level = 3)]]" - ] - } - ] - }, - "destinations": { - "logAnalytics": [ - { - "name": "centralWorkspace", - "workspaceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/workspacena" - } - ] - } - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "2019-11-01-preview, 2021-04-01, 2021-09-01-preview, 2022-06-01", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:49:13 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "149", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T064910Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "immutableId": "dcr-90421b46cec14b02923d6e29ab6e4edf", - "dataSources": { - "performanceCounters": [ - { - "streams": [ - "Microsoft-Perf" - ], - "samplingFrequencyInSeconds": 15, - "counterSpecifiers": [ - "\\Processor(_Total)\\% Processor Time", - "\\Memory\\Committed Bytes", - "\\LogicalDisk(_Total)\\Free Megabytes", - "\\PhysicalDisk(_Total)\\Avg. Disk Queue Length" - ], - "name": "cloudTeamCoreCounters" - }, - { - "streams": [ - "Microsoft-Perf" - ], - "samplingFrequencyInSeconds": 30, - "counterSpecifiers": [ - "\\Process(_Total)\\Thread Count" - ], - "name": "appTeamExtraCounters" - } - ], - "windowsEventLogs": [ - { - "streams": [ - "Microsoft-WindowsEvent" - ], - "xPathQueries": [ - "Security!" - ], - "name": "cloudSecurityTeamEvents" - }, - { - "streams": [ - "Microsoft-WindowsEvent" - ], - "xPathQueries": [ - "System![System[(Level = 1 or Level = 2 or Level = 3)]]", - "Application!*[System[(Level = 1 or Level = 2 or Level = 3)]]" - ], - "name": "appTeam1AppEvents" - } - ], - "syslog": [ - { - "streams": [ - "Microsoft-Syslog" - ], - "facilityNames": [ - "cron" - ], - "logLevels": [ - "Debug", - "Critical", - "Emergency" - ], - "name": "cronSyslog" - }, - { - "streams": [ - "Microsoft-Syslog" - ], - "facilityNames": [ - "syslog" - ], - "logLevels": [ - "Alert", - "Critical", - "Emergency" - ], - "name": "syslogBase" - } - ] - }, - "destinations": { - "logAnalytics": [ - { - "workspaceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/workspacena", - "workspaceId": "00000000-0000-0000-0000-000000000000", - "name": "centralWorkspace" - } - ] - }, - "dataFlows": [ - { - "streams": [ - "Microsoft-Perf", - "Microsoft-Syslog" - ], - "destinations": [ - "centralWorkspace" - ] - } - ], - "provisioningState": "Succeeded" - }, - "location": "eastus", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Insights/dataCollectionRules/datacollectionrulenaEpxQjq", - "name": "datacollectionrulenaEpxQjq", - "type": "Microsoft.Insights/dataCollectionRules", - "etag": "\u002200000000-0000-0000-0000-000000000000\u0022", - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-12T06:49:10.0907396Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-12T06:49:10.0907396Z" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Insights/dataCollectionRules?api-version=2021-09-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armmonitor/v0.7.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "2019-11-01-preview, 2021-04-01, 2021-09-01-preview, 2022-06-01", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:49:13 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11949", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T064914Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "properties": { - "immutableId": "dcr-90421b46cec14b02923d6e29ab6e4edf", - "dataSources": { - "performanceCounters": [ - { - "streams": [ - "Microsoft-Perf" - ], - "samplingFrequencyInSeconds": 15, - "counterSpecifiers": [ - "\\Processor(_Total)\\% Processor Time", - "\\Memory\\Committed Bytes", - "\\LogicalDisk(_Total)\\Free Megabytes", - "\\PhysicalDisk(_Total)\\Avg. Disk Queue Length" - ], - "name": "cloudTeamCoreCounters" - }, - { - "streams": [ - "Microsoft-Perf" - ], - "samplingFrequencyInSeconds": 30, - "counterSpecifiers": [ - "\\Process(_Total)\\Thread Count" - ], - "name": "appTeamExtraCounters" - } - ], - "windowsEventLogs": [ - { - "streams": [ - "Microsoft-WindowsEvent" - ], - "xPathQueries": [ - "Security!" - ], - "name": "cloudSecurityTeamEvents" - }, - { - "streams": [ - "Microsoft-WindowsEvent" - ], - "xPathQueries": [ - "System![System[(Level = 1 or Level = 2 or Level = 3)]]", - "Application!*[System[(Level = 1 or Level = 2 or Level = 3)]]" - ], - "name": "appTeam1AppEvents" - } - ], - "syslog": [ - { - "streams": [ - "Microsoft-Syslog" - ], - "facilityNames": [ - "cron" - ], - "logLevels": [ - "Debug", - "Critical", - "Emergency" - ], - "name": "cronSyslog" - }, - { - "streams": [ - "Microsoft-Syslog" - ], - "facilityNames": [ - "syslog" - ], - "logLevels": [ - "Alert", - "Critical", - "Emergency" - ], - "name": "syslogBase" - } - ] - }, - "destinations": { - "logAnalytics": [ - { - "workspaceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/workspacena", - "workspaceId": "00000000-0000-0000-0000-000000000000", - "name": "centralWorkspace" - } - ] - }, - "dataFlows": [ - { - "streams": [ - "Microsoft-Perf", - "Microsoft-Syslog" - ], - "destinations": [ - "centralWorkspace" - ] - } - ], - "provisioningState": "Succeeded" - }, - "location": "eastus", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Insights/dataCollectionRules/datacollectionrulenaEpxQjq", - "name": "datacollectionrulenaEpxQjq", - "type": "Microsoft.Insights/dataCollectionRules", - "etag": "\u002200000000-0000-0000-0000-000000000000\u0022", - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-12T06:49:10.0907396Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-12T06:49:10.0907396Z" - } - } - ], - "nextLink": null - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Insights/dataCollectionRules?api-version=2021-09-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armmonitor/v0.7.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "2019-11-01-preview, 2021-04-01, 2021-09-01-preview, 2022-06-01", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:49:14 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11948", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T064914Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "properties": { - "immutableId": "dcr-90421b46cec14b02923d6e29ab6e4edf", - "dataSources": { - "performanceCounters": [ - { - "streams": [ - "Microsoft-Perf" - ], - "samplingFrequencyInSeconds": 15, - "counterSpecifiers": [ - "\\Processor(_Total)\\% Processor Time", - "\\Memory\\Committed Bytes", - "\\LogicalDisk(_Total)\\Free Megabytes", - "\\PhysicalDisk(_Total)\\Avg. Disk Queue Length" - ], - "name": "cloudTeamCoreCounters" - }, - { - "streams": [ - "Microsoft-Perf" - ], - "samplingFrequencyInSeconds": 30, - "counterSpecifiers": [ - "\\Process(_Total)\\Thread Count" - ], - "name": "appTeamExtraCounters" - } - ], - "windowsEventLogs": [ - { - "streams": [ - "Microsoft-WindowsEvent" - ], - "xPathQueries": [ - "Security!" - ], - "name": "cloudSecurityTeamEvents" - }, - { - "streams": [ - "Microsoft-WindowsEvent" - ], - "xPathQueries": [ - "System![System[(Level = 1 or Level = 2 or Level = 3)]]", - "Application!*[System[(Level = 1 or Level = 2 or Level = 3)]]" - ], - "name": "appTeam1AppEvents" - } - ], - "syslog": [ - { - "streams": [ - "Microsoft-Syslog" - ], - "facilityNames": [ - "cron" - ], - "logLevels": [ - "Debug", - "Critical", - "Emergency" - ], - "name": "cronSyslog" - }, - { - "streams": [ - "Microsoft-Syslog" - ], - "facilityNames": [ - "syslog" - ], - "logLevels": [ - "Alert", - "Critical", - "Emergency" - ], - "name": "syslogBase" - } - ] - }, - "destinations": { - "logAnalytics": [ - { - "workspaceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/workspacena", - "workspaceId": "00000000-0000-0000-0000-000000000000", - "name": "centralWorkspace" - } - ] - }, - "dataFlows": [ - { - "streams": [ - "Microsoft-Perf", - "Microsoft-Syslog" - ], - "destinations": [ - "centralWorkspace" - ] - } - ], - "provisioningState": "Succeeded" - }, - "location": "eastus", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Insights/dataCollectionRules/datacollectionrulenaEpxQjq", - "name": "datacollectionrulenaEpxQjq", - "type": "Microsoft.Insights/dataCollectionRules", - "etag": "\u002200000000-0000-0000-0000-000000000000\u0022", - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-12T06:49:10.0907396Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-12T06:49:10.0907396Z" - } - } - ], - "nextLink": null - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Insights/dataCollectionRules/datacollectionrulenaEpxQjq?api-version=2021-09-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armmonitor/v0.7.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "2019-11-01-preview, 2021-04-01, 2021-09-01-preview, 2022-06-01", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:49:14 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11947", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T064915Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "immutableId": "dcr-90421b46cec14b02923d6e29ab6e4edf", - "dataSources": { - "performanceCounters": [ - { - "streams": [ - "Microsoft-Perf" - ], - "samplingFrequencyInSeconds": 15, - "counterSpecifiers": [ - "\\Processor(_Total)\\% Processor Time", - "\\Memory\\Committed Bytes", - "\\LogicalDisk(_Total)\\Free Megabytes", - "\\PhysicalDisk(_Total)\\Avg. Disk Queue Length" - ], - "name": "cloudTeamCoreCounters" - }, - { - "streams": [ - "Microsoft-Perf" - ], - "samplingFrequencyInSeconds": 30, - "counterSpecifiers": [ - "\\Process(_Total)\\Thread Count" - ], - "name": "appTeamExtraCounters" - } - ], - "windowsEventLogs": [ - { - "streams": [ - "Microsoft-WindowsEvent" - ], - "xPathQueries": [ - "Security!" - ], - "name": "cloudSecurityTeamEvents" - }, - { - "streams": [ - "Microsoft-WindowsEvent" - ], - "xPathQueries": [ - "System![System[(Level = 1 or Level = 2 or Level = 3)]]", - "Application!*[System[(Level = 1 or Level = 2 or Level = 3)]]" - ], - "name": "appTeam1AppEvents" - } - ], - "syslog": [ - { - "streams": [ - "Microsoft-Syslog" - ], - "facilityNames": [ - "cron" - ], - "logLevels": [ - "Debug", - "Critical", - "Emergency" - ], - "name": "cronSyslog" - }, - { - "streams": [ - "Microsoft-Syslog" - ], - "facilityNames": [ - "syslog" - ], - "logLevels": [ - "Alert", - "Critical", - "Emergency" - ], - "name": "syslogBase" - } - ] - }, - "destinations": { - "logAnalytics": [ - { - "workspaceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/workspacena", - "workspaceId": "00000000-0000-0000-0000-000000000000", - "name": "centralWorkspace" - } - ] - }, - "dataFlows": [ - { - "streams": [ - "Microsoft-Perf", - "Microsoft-Syslog" - ], - "destinations": [ - "centralWorkspace" - ] - } - ], - "provisioningState": "Succeeded" - }, - "location": "eastus", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Insights/dataCollectionRules/datacollectionrulenaEpxQjq", - "name": "datacollectionrulenaEpxQjq", - "type": "Microsoft.Insights/dataCollectionRules", - "etag": "\u002200000000-0000-0000-0000-000000000000\u0022", - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-12T06:49:10.0907396Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-12T06:49:10.0907396Z" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Insights/dataCollectionRules/datacollectionrulenaEpxQjq?api-version=2021-09-01-preview", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "43", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armmonitor/v0.7.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "tags": { - "tag1": "A", - "tag2": "B", - "tag3": "C" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "2019-11-01-preview, 2021-04-01, 2021-09-01-preview, 2022-06-01", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:49:17 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "148", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T064915Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "immutableId": "dcr-90421b46cec14b02923d6e29ab6e4edf", - "dataSources": { - "performanceCounters": [ - { - "streams": [ - "Microsoft-Perf" - ], - "samplingFrequencyInSeconds": 15, - "counterSpecifiers": [ - "\\Processor(_Total)\\% Processor Time", - "\\Memory\\Committed Bytes", - "\\LogicalDisk(_Total)\\Free Megabytes", - "\\PhysicalDisk(_Total)\\Avg. Disk Queue Length" - ], - "name": "cloudTeamCoreCounters" - }, - { - "streams": [ - "Microsoft-Perf" - ], - "samplingFrequencyInSeconds": 30, - "counterSpecifiers": [ - "\\Process(_Total)\\Thread Count" - ], - "name": "appTeamExtraCounters" - } - ], - "windowsEventLogs": [ - { - "streams": [ - "Microsoft-WindowsEvent" - ], - "xPathQueries": [ - "Security!" - ], - "name": "cloudSecurityTeamEvents" - }, - { - "streams": [ - "Microsoft-WindowsEvent" - ], - "xPathQueries": [ - "System![System[(Level = 1 or Level = 2 or Level = 3)]]", - "Application!*[System[(Level = 1 or Level = 2 or Level = 3)]]" - ], - "name": "appTeam1AppEvents" - } - ], - "syslog": [ - { - "streams": [ - "Microsoft-Syslog" - ], - "facilityNames": [ - "cron" - ], - "logLevels": [ - "Debug", - "Critical", - "Emergency" - ], - "name": "cronSyslog" - }, - { - "streams": [ - "Microsoft-Syslog" - ], - "facilityNames": [ - "syslog" - ], - "logLevels": [ - "Alert", - "Critical", - "Emergency" - ], - "name": "syslogBase" - } - ] - }, - "destinations": { - "logAnalytics": [ - { - "workspaceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/workspacena", - "workspaceId": "00000000-0000-0000-0000-000000000000", - "name": "centralWorkspace" - } - ] - }, - "dataFlows": [ - { - "streams": [ - "Microsoft-Perf", - "Microsoft-Syslog" - ], - "destinations": [ - "centralWorkspace" - ] - } - ], - "provisioningState": "Succeeded" - }, - "location": "eastus", - "tags": { - "tag1": "A", - "tag2": "B", - "tag3": "C" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Insights/dataCollectionRules/datacollectionrulenaEpxQjq", - "name": "datacollectionrulenaEpxQjq", - "type": "Microsoft.Insights/dataCollectionRules", - "etag": "\u002200000000-0000-0000-0000-000000000000\u0022", - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-12T06:49:10.0907396Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-12T06:49:15.8876498Z" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerService/managedClusters/associationaksEpxQjq/providers/Microsoft.Insights/dataCollectionRuleAssociations/myAssociation?api-version=2021-09-01-preview", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "199", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armmonitor/v0.7.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "dataCollectionRuleId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Insights/dataCollectionRules/datacollectionrulenaEpxQjq" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "2019-11-01-preview, 2021-04-01, 2021-09-01-preview, 2022-06-01", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:49:18 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "299", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T064918Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "dataCollectionRuleId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Insights/dataCollectionRules/datacollectionrulenaEpxQjq" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerService/managedClusters/associationaksEpxQjq/providers/Microsoft.Insights/dataCollectionRuleAssociations/myAssociation", - "name": "myAssociation", - "type": "Microsoft.Insights/dataCollectionRuleAssociations", - "etag": "\u002200000000-0000-0000-0000-000000000000\u0022", - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-12T06:49:18.5282924Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-12T06:49:18.5282924Z" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerService/managedClusters/associationaksEpxQjq/providers/Microsoft.Insights/dataCollectionRuleAssociations?api-version=2021-09-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armmonitor/v0.7.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "2019-11-01-preview, 2021-04-01, 2021-09-01-preview, 2022-06-01", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:49:19 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11946", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T064919Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "properties": { - "dataCollectionRuleId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Insights/dataCollectionRules/datacollectionrulenaEpxQjq" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerService/managedClusters/associationaksEpxQjq/providers/Microsoft.Insights/dataCollectionRuleAssociations/myAssociation", - "name": "myAssociation", - "type": "Microsoft.Insights/dataCollectionRuleAssociations", - "etag": "\u002200000000-0000-0000-0000-000000000000\u0022", - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-12T06:49:18.5282924Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-12T06:49:18.5282924Z" - } - } - ], - "nextLink": null - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Insights/dataCollectionRules/datacollectionrulenaEpxQjq/associations?api-version=2021-09-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armmonitor/v0.7.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "2019-11-01-preview, 2021-04-01, 2021-09-01-preview, 2022-06-01", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:49:20 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11945", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T064920Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "properties": { - "dataCollectionRuleId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/microsoft.insights/datacollectionrules/datacollectionrulenaepxqjq" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/microsoft.containerservice/managedclusters/associationaksepxqjq/providers/microsoft.insights/datacollectionruleassociations/myassociation", - "name": "myassociation", - "type": "Microsoft.Insights/dataCollectionRuleAssociations" - } - ], - "nextLink": null - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerService/managedClusters/associationaksEpxQjq/providers/Microsoft.Insights/dataCollectionRuleAssociations/myAssociation?api-version=2021-09-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armmonitor/v0.7.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "2019-11-01-preview, 2021-04-01, 2021-09-01-preview, 2022-06-01", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:49:20 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11944", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T064921Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "dataCollectionRuleId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Insights/dataCollectionRules/datacollectionrulenaEpxQjq" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerService/managedClusters/associationaksEpxQjq/providers/Microsoft.Insights/dataCollectionRuleAssociations/myAssociation", - "name": "myAssociation", - "type": "Microsoft.Insights/dataCollectionRuleAssociations", - "etag": "\u002200000000-0000-0000-0000-000000000000\u0022", - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-12T06:49:18.5282924Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-12T06:49:18.5282924Z" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerService/managedClusters/associationaksEpxQjq/providers/Microsoft.Insights/dataCollectionRuleAssociations/myAssociation?api-version=2021-09-01-preview", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armmonitor/v0.7.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "2019-11-01-preview, 2021-04-01, 2021-09-01-preview, 2022-06-01", - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Wed, 12 Oct 2022 06:49:21 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14991", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T064921Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Insights/dataCollectionRules/datacollectionrulenaEpxQjq?api-version=2021-09-01-preview", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armmonitor/v0.7.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "2019-11-01-preview, 2021-04-01, 2021-09-01-preview, 2022-06-01", - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Wed, 12 Oct 2022 06:49:31 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-client-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14990", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T064923Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Wed, 12 Oct 2022 06:49:34 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQyMjctRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14989", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T064934Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": { - "recordingRandomSeed": "1665556303" - } -} diff --git a/sdk/resourcemanager/monitor/armmonitor/testdata/recordings/TestLogprofilesTestSuite.json b/sdk/resourcemanager/monitor/armmonitor/testdata/recordings/TestLogprofilesTestSuite.json deleted file mode 100644 index 65071b8a2a98..000000000000 --- a/sdk/resourcemanager/monitor/armmonitor/testdata/recordings/TestLogprofilesTestSuite.json +++ /dev/null @@ -1,469 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "eastus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:49:37 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1185", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T064938Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "eastus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/StorageAccount_Create?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "1274", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "mode": "Incremental", - "parameters": { - "storageAccountName": { - "value": "monitorsana" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "outputs": { - "storageAccountId": { - "type": "string", - "value": "[resourceId(\u0027Microsoft.Storage/storageAccounts\u0027, parameters(\u0027storageAccountName\u0027))]" - } - }, - "parameters": { - "storageAccountName": { - "defaultValue": "$(storageAccountName)", - "type": "string" - } - }, - "resources": [ - { - "apiVersion": "2022-05-01", - "kind": "StorageV2", - "location": "eastus", - "name": "[parameters(\u0027storageAccountName\u0027)]", - "properties": { - "accessTier": "Hot", - "allowBlobPublicAccess": true, - "allowCrossTenantReplication": true, - "allowSharedKeyAccess": true, - "defaultToOAuthAuthentication": false, - "dnsEndpointType": "Standard", - "encryption": { - "keySource": "Microsoft.Storage", - "requireInfrastructureEncryption": false, - "services": { - "blob": { - "enabled": true, - "keyType": "Account" - }, - "file": { - "enabled": true, - "keyType": "Account" - } - } - }, - "minimumTlsVersion": "TLS1_2", - "networkAcls": { - "bypass": "AzureServices", - "defaultAction": "Allow", - "ipRules": [], - "virtualNetworkRules": [] - }, - "publicNetworkAccess": "Enabled", - "supportsHttpsTrafficOnly": true - }, - "sku": { - "name": "Standard_RAGRS", - "tier": "Standard" - }, - "type": "Microsoft.Storage/storageAccounts" - } - ], - "variables": {} - } - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/StorageAccount_Create/operationStatuses/08585360495062297211?api-version=2021-04-01", - "Cache-Control": "no-cache", - "Content-Length": "672", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:49:40 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1184", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T064941Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/StorageAccount_Create", - "name": "StorageAccount_Create", - "type": "Microsoft.Resources/deployments", - "properties": { - "templateHash": "18010810814539768480", - "parameters": { - "storageAccountName": { - "type": "String", - "value": "monitorsana" - } - }, - "mode": "Incremental", - "provisioningState": "Accepted", - "timestamp": "2022-10-12T06:49:39.8260605Z", - "duration": "PT0.000432S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Storage", - "resourceTypes": [ - { - "resourceType": "storageAccounts", - "locations": [ - "eastus" - ] - } - ] - } - ], - "dependencies": [] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/StorageAccount_Create/operationStatuses/08585360495062297211?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "20", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:49:41 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11943", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T064942Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/StorageAccount_Create/operationStatuses/08585360495062297211?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "22", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:50:11 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11942", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T065012Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/StorageAccount_Create?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "1039", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:50:12 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11941", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T065013Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/StorageAccount_Create", - "name": "StorageAccount_Create", - "type": "Microsoft.Resources/deployments", - "properties": { - "templateHash": "18010810814539768480", - "parameters": { - "storageAccountName": { - "type": "String", - "value": "monitorsana" - } - }, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2022-10-12T06:50:11.1328611Z", - "duration": "PT31.3072326S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Storage", - "resourceTypes": [ - { - "resourceType": "storageAccounts", - "locations": [ - "eastus" - ] - } - ] - } - ], - "dependencies": [], - "outputs": { - "storageAccountId": { - "type": "String", - "value": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/monitorsana" - } - }, - "outputResources": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/monitorsana" - } - ] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Insights/logprofiles/logprofilena?api-version=2016-03-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "313", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armmonitor/v0.7.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "eastus", - "properties": { - "categories": [ - "Write", - "Delete", - "Action" - ], - "locations": [ - "global" - ], - "retentionPolicy": { - "days": 3, - "enabled": true - }, - "storageAccountId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/monitorsana" - }, - "tags": {} - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:50:15 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1183", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T065016Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/microsoft.insights/logprofiles/logprofilena", - "type": null, - "name": "logprofilena", - "location": "eastus", - "kind": null, - "tags": {}, - "properties": { - "storageAccountId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/monitorsana", - "serviceBusRuleId": null, - "locations": [ - "global" - ], - "categories": [ - "Write", - "Delete", - "Action" - ], - "retentionPolicy": { - "enabled": true, - "days": 3 - } - }, - "identity": null - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Insights/logprofiles?api-version=2016-03-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armmonitor/v0.7.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:50:15 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11940", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T065016Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Insights/logprofiles/logprofilena?api-version=2016-03-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armmonitor/v0.7.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Wed, 12 Oct 2022 06:50:17 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14988", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T065017Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Wed, 12 Oct 2022 06:50:18 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ1MzUtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14987", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T065019Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": { - "recordingRandomSeed": "1665556303" - } -} diff --git a/sdk/resourcemanager/monitor/armmonitor/testdata/recordings/TestMetricalertsTestSuite.json b/sdk/resourcemanager/monitor/armmonitor/testdata/recordings/TestMetricalertsTestSuite.json deleted file mode 100644 index 09cd677a9b12..000000000000 --- a/sdk/resourcemanager/monitor/armmonitor/testdata/recordings/TestMetricalertsTestSuite.json +++ /dev/null @@ -1,1564 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "eastus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:50:20 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1182", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T065021Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "eastus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/VirtualNetwork_Create?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "834", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "mode": "Incremental", - "parameters": { - "location": { - "value": "eastus" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "outputs": { - "subnetId": { - "type": "string", - "value": "[resourceId(\u0027Microsoft.Network/virtualNetworks/subnets\u0027, parameters(\u0027virtualNetworksName\u0027), \u0027vmsssubnet\u0027)]" - } - }, - "parameters": { - "location": { - "defaultValue": "$(location)", - "type": "string" - }, - "virtualNetworksName": { - "defaultValue": "vmssvnet", - "type": "string" - } - }, - "resources": [ - { - "apiVersion": "2021-05-01", - "location": "[parameters(\u0027location\u0027)]", - "name": "[parameters(\u0027virtualNetworksName\u0027)]", - "properties": { - "addressSpace": { - "addressPrefixes": [ - "10.0.0.0/16" - ] - }, - "subnets": [ - { - "name": "vmsssubnet", - "properties": { - "addressPrefix": "10.0.0.0/24" - } - } - ] - }, - "tags": {}, - "type": "Microsoft.Network/virtualNetworks" - } - ] - } - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/VirtualNetwork_Create/operationStatuses/08585360494628020482?api-version=2021-04-01", - "Cache-Control": "no-cache", - "Content-Length": "717", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:50:23 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1181", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T065024Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/VirtualNetwork_Create", - "name": "VirtualNetwork_Create", - "type": "Microsoft.Resources/deployments", - "properties": { - "templateHash": "13411785402429260850", - "parameters": { - "location": { - "type": "String", - "value": "eastus" - }, - "virtualNetworksName": { - "type": "String", - "value": "vmssvnet" - } - }, - "mode": "Incremental", - "provisioningState": "Accepted", - "timestamp": "2022-10-12T06:50:23.8304182Z", - "duration": "PT0.0009011S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Network", - "resourceTypes": [ - { - "resourceType": "virtualNetworks", - "locations": [ - "eastus" - ] - } - ] - } - ], - "dependencies": [] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/VirtualNetwork_Create/operationStatuses/08585360494628020482?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "20", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:50:24 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11939", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T065025Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/VirtualNetwork_Create/operationStatuses/08585360494628020482?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "22", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:50:55 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11938", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T065055Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/VirtualNetwork_Create?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "1088", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:50:56 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11937", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T065056Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/VirtualNetwork_Create", - "name": "VirtualNetwork_Create", - "type": "Microsoft.Resources/deployments", - "properties": { - "templateHash": "13411785402429260850", - "parameters": { - "location": { - "type": "String", - "value": "eastus" - }, - "virtualNetworksName": { - "type": "String", - "value": "vmssvnet" - } - }, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2022-10-12T06:50:54.2964033Z", - "duration": "PT30.4668862S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Network", - "resourceTypes": [ - { - "resourceType": "virtualNetworks", - "locations": [ - "eastus" - ] - } - ] - } - ], - "dependencies": [], - "outputs": { - "subnetId": { - "type": "String", - "value": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/vmssvnet/subnets/vmsssubnet" - } - }, - "outputResources": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/vmssvnet" - } - ] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/NetworkInterface_Create?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "898", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "mode": "Incremental", - "parameters": { - "location": { - "value": "eastus" - }, - "subnetId": { - "value": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/vmssvnet/subnets/vmsssubnet" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "outputs": { - "vnicId": { - "type": "string", - "value": "[resourceId(\u0027Microsoft.Network/networkInterfaces\u0027, \u0027vmnic\u0027)]" - } - }, - "parameters": { - "location": { - "defaultValue": "$(location)", - "type": "string" - }, - "subnetId": { - "defaultValue": "$(subnetId)", - "type": "string" - } - }, - "resources": [ - { - "apiVersion": "2021-08-01", - "location": "[parameters(\u0027location\u0027)]", - "name": "vmnic", - "properties": { - "ipConfigurations": [ - { - "name": "Ipv4config", - "properties": { - "subnet": { - "id": "[parameters(\u0027subnetId\u0027)]" - } - } - } - ] - }, - "tags": {}, - "type": "Microsoft.Network/networkInterfaces" - } - ] - } - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/NetworkInterface_Create/operationStatuses/08585360494278281870?api-version=2021-04-01", - "Cache-Control": "no-cache", - "Content-Length": "855", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:50:59 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1180", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T065059Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/NetworkInterface_Create", - "name": "NetworkInterface_Create", - "type": "Microsoft.Resources/deployments", - "properties": { - "templateHash": "1119175929150351595", - "parameters": { - "location": { - "type": "String", - "value": "eastus" - }, - "subnetId": { - "type": "String", - "value": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/vmssvnet/subnets/vmsssubnet" - } - }, - "mode": "Incremental", - "provisioningState": "Accepted", - "timestamp": "2022-10-12T06:50:58.7317744Z", - "duration": "PT0.000176S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Network", - "resourceTypes": [ - { - "resourceType": "networkInterfaces", - "locations": [ - "eastus" - ] - } - ] - } - ], - "dependencies": [] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/NetworkInterface_Create/operationStatuses/08585360494278281870?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "20", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:50:59 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11936", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T065100Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/NetworkInterface_Create/operationStatuses/08585360494278281870?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "22", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:51:29 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T065130Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/NetworkInterface_Create?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "1204", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:51:30 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T065131Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/NetworkInterface_Create", - "name": "NetworkInterface_Create", - "type": "Microsoft.Resources/deployments", - "properties": { - "templateHash": "1119175929150351595", - "parameters": { - "location": { - "type": "String", - "value": "eastus" - }, - "subnetId": { - "type": "String", - "value": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/vmssvnet/subnets/vmsssubnet" - } - }, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2022-10-12T06:51:18.5030671Z", - "duration": "PT19.7714687S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Network", - "resourceTypes": [ - { - "resourceType": "networkInterfaces", - "locations": [ - "eastus" - ] - } - ] - } - ], - "dependencies": [], - "outputs": { - "vnicId": { - "type": "String", - "value": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/networkInterfaces/vmnic" - } - }, - "outputResources": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/networkInterfaces/vmnic" - } - ] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/VirtualMachine_Create?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "1869", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "mode": "Incremental", - "parameters": { - "adminPassword": { - "value": "000000000000" - }, - "location": { - "value": "eastus" - }, - "vnicId": { - "value": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/networkInterfaces/vmnic" - } - }, - "template": { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "outputs": { - "virtualMachineId": { - "type": "string", - "value": "[resourceId(\u0027Microsoft.Compute/virtualMachines\u0027, \u0027scenariovm\u0027)]" - } - }, - "parameters": { - "adminPassword": { - "defaultValue": "$(adminPassword)", - "type": "securestring" - }, - "location": { - "defaultValue": "$(location)", - "type": "string" - }, - "vnicId": { - "defaultValue": "$(vnicId)", - "type": "string" - } - }, - "resources": [ - { - "apiVersion": "2022-03-01", - "location": "[parameters(\u0027location\u0027)]", - "name": "scenariovm", - "properties": { - "diagnosticsProfile": { - "bootDiagnostics": { - "enabled": true - } - }, - "hardwareProfile": { - "vmSize": "Standard_DS1_v2" - }, - "networkProfile": { - "networkInterfaces": [ - { - "id": "[parameters(\u0027vnicId\u0027)]", - "properties": { - "deleteOption": "Detach", - "primary": true - } - } - ] - }, - "osProfile": { - "adminPassword": "[parameters(\u0027adminPassword\u0027)]", - "adminUsername": "azureuser", - "allowExtensionOperations": true, - "computerName": "scenariovm", - "secrets": [], - "windowsConfiguration": { - "enableAutomaticUpdates": true, - "patchSettings": { - "assessmentMode": "ImageDefault", - "enableHotpatching": false, - "patchMode": "AutomaticByOS" - }, - "provisionVMAgent": true - } - }, - "storageProfile": { - "dataDisks": [], - "imageReference": { - "offer": "WindowsServer", - "publisher": "MicrosoftWindowsServer", - "sku": "2019-Datacenter", - "version": "latest" - }, - "osDisk": { - "caching": "ReadWrite", - "createOption": "FromImage", - "deleteOption": "Delete", - "diskSizeGB": 127, - "managedDisk": { - "storageAccountType": "Premium_LRS" - }, - "name": "[concat(\u0027scenariovm\u0027, \u0027osDisk\u0027)]", - "osType": "Windows" - } - } - }, - "type": "Microsoft.Compute/virtualMachines", - "zones": [ - "1" - ] - } - ], - "variables": {} - } - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/VirtualMachine_Create/operationStatuses/08585360493930378701?api-version=2021-04-01", - "Cache-Control": "no-cache", - "Content-Length": "869", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:51:33 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1179", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T065134Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/VirtualMachine_Create", - "name": "VirtualMachine_Create", - "type": "Microsoft.Resources/deployments", - "properties": { - "templateHash": "11038093662889721793", - "parameters": { - "adminPassword": { - "type": "SecureString" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "vnicId": { - "type": "String", - "value": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/networkInterfaces/vmnic" - } - }, - "mode": "Incremental", - "provisioningState": "Accepted", - "timestamp": "2022-10-12T06:51:34.0141516Z", - "duration": "PT0.0002391S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Compute", - "resourceTypes": [ - { - "resourceType": "virtualMachines", - "locations": [ - "eastus" - ] - } - ] - } - ], - "dependencies": [] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/VirtualMachine_Create/operationStatuses/08585360493930378701?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "20", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:51:35 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T065135Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/VirtualMachine_Create/operationStatuses/08585360493930378701?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "20", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:52:05 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T065206Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/VirtualMachine_Create/operationStatuses/08585360493930378701?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "20", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:52:36 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T065236Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/VirtualMachine_Create/operationStatuses/08585360493930378701?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "20", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:53:06 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11930", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T065307Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/VirtualMachine_Create/operationStatuses/08585360493930378701?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "22", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:53:37 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11929", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T065337Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/VirtualMachine_Create?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "1234", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:53:38 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11928", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T065338Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/VirtualMachine_Create", - "name": "VirtualMachine_Create", - "type": "Microsoft.Resources/deployments", - "properties": { - "templateHash": "11038093662889721793", - "parameters": { - "adminPassword": { - "type": "SecureString" - }, - "location": { - "type": "String", - "value": "eastus" - }, - "vnicId": { - "type": "String", - "value": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/networkInterfaces/vmnic" - } - }, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2022-10-12T06:53:07.6075045Z", - "duration": "PT1M33.593592S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Compute", - "resourceTypes": [ - { - "resourceType": "virtualMachines", - "locations": [ - "eastus" - ] - } - ] - } - ], - "dependencies": [], - "outputs": { - "virtualMachineId": { - "type": "String", - "value": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/virtualMachines/scenariovm" - } - }, - "outputResources": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/virtualMachines/scenariovm" - } - ] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Insights/metricAlerts/metricalertnaEpxQjq?api-version=2018-03-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "843", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armmonitor/v0.7.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "global", - "properties": { - "autoMitigate": true, - "criteria": { - "allOf": [ - { - "alertSensitivity": "Medium", - "criterionType": "DynamicThresholdCriterion", - "failingPeriods": { - "minFailingPeriodsToAlert": 4, - "numberOfEvaluationPeriods": 4 - }, - "metricName": "Percentage CPU", - "metricNamespace": "microsoft.compute/virtualmachines", - "name": "High_CPU_80", - "operator": "GreaterOrLessThan", - "timeAggregation": "Average" - } - ], - "odata.type": "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria" - }, - "description": "This is the description of the rule1", - "enabled": true, - "evaluationFrequency": "PT1M", - "scopes": [ - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/virtualMachines/scenariovm" - ], - "severity": 3, - "targetResourceRegion": "eastus", - "targetResourceType": "Microsoft.Compute/virtualMachines", - "windowSize": "PT15M" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "2017-09-01-preview, 2018-03-01", - "Arr-Disable-Session-Affinity": "true", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:53:46 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding" - ], - "X-AspNet-Version": "4.0.30319", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "299", - "x-ms-request-id": [ - "00000000-0000-0000-0000-000000000000", - "10b53d47-43f8-4838-86c6-ea278134c03a" - ], - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T065347Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Insights/metricAlerts/metricalertnaEpxQjq", - "name": "metricalertnaEpxQjq", - "type": "Microsoft.Insights/metricAlerts", - "location": "global", - "properties": { - "description": "This is the description of the rule1", - "severity": 3, - "enabled": true, - "scopes": [ - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/virtualMachines/scenariovm" - ], - "evaluationFrequency": "PT1M", - "windowSize": "PT15M", - "criteria": { - "allOf": [ - { - "alertSensitivity": "Medium", - "failingPeriods": { - "numberOfEvaluationPeriods": 4, - "minFailingPeriodsToAlert": 4 - }, - "name": "High_CPU_80", - "metricNamespace": "microsoft.compute/virtualmachines", - "metricName": "Percentage CPU", - "operator": "GreaterOrLessThan", - "timeAggregation": "Average", - "criterionType": "DynamicThresholdCriterion" - } - ], - "odata.type": "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria" - }, - "autoMitigate": true, - "targetResourceType": "Microsoft.Compute/virtualMachines", - "targetResourceRegion": "eastus", - "actions": [] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Insights/metricAlerts?api-version=2018-03-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armmonitor/v0.7.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "2017-09-01-preview, 2018-03-01", - "Arr-Disable-Session-Affinity": "true", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:53:47 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding" - ], - "X-AspNet-Version": "4.0.30319", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11927", - "x-ms-request-id": [ - "00000000-0000-0000-0000-000000000000", - "55107653-ce63-442d-aa83-d86b90daa7ed" - ], - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T065347Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Insights/metricAlerts/metricalertnaEpxQjq", - "name": "metricalertnaEpxQjq", - "type": "Microsoft.Insights/metricAlerts", - "location": "global", - "properties": { - "description": "This is the description of the rule1", - "severity": 3, - "enabled": true, - "scopes": [ - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/virtualMachines/scenariovm" - ], - "evaluationFrequency": "PT1M", - "windowSize": "PT15M", - "criteria": { - "allOf": [ - { - "alertSensitivity": "Medium", - "failingPeriods": { - "numberOfEvaluationPeriods": 4, - "minFailingPeriodsToAlert": 4 - }, - "name": "High_CPU_80", - "metricNamespace": "microsoft.compute/virtualmachines", - "metricName": "Percentage CPU", - "operator": "GreaterOrLessThan", - "timeAggregation": "Average", - "criterionType": "DynamicThresholdCriterion" - } - ], - "odata.type": "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria" - }, - "autoMitigate": true, - "targetResourceType": "Microsoft.Compute/virtualMachines", - "targetResourceRegion": "eastus", - "actions": [] - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Insights/metricAlerts?api-version=2018-03-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armmonitor/v0.7.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "2017-09-01-preview, 2018-03-01", - "Arr-Disable-Session-Affinity": "true", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:53:47 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding" - ], - "X-AspNet-Version": "4.0.30319", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11926", - "x-ms-request-id": [ - "00000000-0000-0000-0000-000000000000", - "44d458f5-f45a-4f18-a30d-e1e50ca8090c" - ], - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T065347Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Insights/metricAlerts/metricalertnaEpxQjq", - "name": "metricalertnaEpxQjq", - "type": "Microsoft.Insights/metricAlerts", - "location": "global", - "properties": { - "description": "This is the description of the rule1", - "severity": 3, - "enabled": true, - "scopes": [ - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/virtualMachines/scenariovm" - ], - "evaluationFrequency": "PT1M", - "windowSize": "PT15M", - "criteria": { - "allOf": [ - { - "alertSensitivity": "Medium", - "failingPeriods": { - "numberOfEvaluationPeriods": 4, - "minFailingPeriodsToAlert": 4 - }, - "name": "High_CPU_80", - "metricNamespace": "microsoft.compute/virtualmachines", - "metricName": "Percentage CPU", - "operator": "GreaterOrLessThan", - "timeAggregation": "Average", - "criterionType": "DynamicThresholdCriterion" - } - ], - "odata.type": "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria" - }, - "autoMitigate": true, - "targetResourceType": "Microsoft.Compute/virtualMachines", - "targetResourceRegion": "eastus", - "actions": [] - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Insights/metricAlerts/metricalertnaEpxQjq?api-version=2018-03-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armmonitor/v0.7.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "2017-09-01-preview, 2018-03-01", - "Arr-Disable-Session-Affinity": "true", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:53:48 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding" - ], - "X-AspNet-Version": "4.0.30319", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11925", - "x-ms-request-id": [ - "00000000-0000-0000-0000-000000000000", - "399199fc-7764-48da-b3a8-ab85f54c13cf" - ], - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T065348Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Insights/metricAlerts/metricalertnaEpxQjq", - "name": "metricalertnaEpxQjq", - "type": "Microsoft.Insights/metricAlerts", - "location": "global", - "properties": { - "description": "This is the description of the rule1", - "severity": 3, - "enabled": true, - "scopes": [ - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/virtualMachines/scenariovm" - ], - "evaluationFrequency": "PT1M", - "windowSize": "PT15M", - "criteria": { - "allOf": [ - { - "alertSensitivity": "Medium", - "failingPeriods": { - "numberOfEvaluationPeriods": 4, - "minFailingPeriodsToAlert": 4 - }, - "name": "High_CPU_80", - "metricNamespace": "microsoft.compute/virtualmachines", - "metricName": "Percentage CPU", - "operator": "GreaterOrLessThan", - "timeAggregation": "Average", - "criterionType": "DynamicThresholdCriterion" - } - ], - "odata.type": "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria" - }, - "autoMitigate": true, - "targetResourceType": "Microsoft.Compute/virtualMachines", - "targetResourceRegion": "eastus", - "actions": [] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Insights/metricAlerts/metricalertnaEpxQjq?api-version=2018-03-01", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "26", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armmonitor/v0.7.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "tags": { - "tag1": "value1" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "2017-09-01-preview, 2018-03-01", - "Arr-Disable-Session-Affinity": "true", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:53:51 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding" - ], - "X-AspNet-Version": "4.0.30319", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "298", - "x-ms-request-id": [ - "00000000-0000-0000-0000-000000000000", - "361976dd-5774-4eb7-a43c-49e07d56012b" - ], - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T065351Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Insights/metricAlerts/metricalertnaEpxQjq", - "name": "metricalertnaEpxQjq", - "type": "Microsoft.Insights/metricAlerts", - "location": "global", - "tags": { - "tag1": "value1" - }, - "properties": { - "description": "This is the description of the rule1", - "severity": 3, - "enabled": true, - "scopes": [ - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/virtualMachines/scenariovm" - ], - "evaluationFrequency": "PT1M", - "windowSize": "PT15M", - "criteria": { - "allOf": [ - { - "alertSensitivity": "Medium", - "failingPeriods": { - "numberOfEvaluationPeriods": 4, - "minFailingPeriodsToAlert": 4 - }, - "name": "High_CPU_80", - "metricNamespace": "microsoft.compute/virtualmachines", - "metricName": "Percentage CPU", - "operator": "GreaterOrLessThan", - "timeAggregation": "Average", - "criterionType": "DynamicThresholdCriterion" - } - ], - "odata.type": "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria" - }, - "autoMitigate": true, - "targetResourceType": "Microsoft.Compute/virtualMachines", - "targetResourceRegion": "eastus", - "actions": [] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Insights/metricAlerts/metricalertnaEpxQjq/status?api-version=2018-03-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armmonitor/v0.7.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "2017-09-01-preview, 2018-03-01", - "Arr-Disable-Session-Affinity": "true", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:53:55 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding" - ], - "X-AspNet-Version": "4.0.30319", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11924", - "x-ms-request-id": [ - "00000000-0000-0000-0000-000000000000", - "80b6f674-fce7-49bc-a939-d7274d66f4e9" - ], - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T065356Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Insights/metricAlerts/metricalertnaEpxQjq/status/Y3VycmVudFN0YXR1cw==", - "name": "Y3VycmVudFN0YXR1cw==", - "type": "Microsoft.Insights/metricAlerts/status", - "properties": { - "dimensions": {}, - "status": "Unknown", - "timestamp": "2022-10-12T06:53:56.1466341Z" - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Insights/metricAlerts/metricalertnaEpxQjq/status/Y3VycmVudFN0YXR1cw==?api-version=2018-03-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armmonitor/v0.7.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "2017-09-01-preview, 2018-03-01", - "Arr-Disable-Session-Affinity": "true", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:53:58 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding" - ], - "X-AspNet-Version": "4.0.30319", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11923", - "x-ms-request-id": [ - "00000000-0000-0000-0000-000000000000", - "e4c8dd0b-83d0-4849-8c81-3191dad799a1" - ], - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T065359Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Insights/metricAlerts/metricalertnaEpxQjq", - "name": "Y3VycmVudFN0YXR1cw==", - "type": "Microsoft.Insights/metricAlerts/status", - "properties": { - "dimensions": {}, - "status": "Healthy", - "timestamp": "2022-10-12T06:53:59.2722772Z" - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Insights/metricAlerts/metricalertnaEpxQjq?api-version=2018-03-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armmonitor/v0.7.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "api-supported-versions": "2017-09-01-preview, 2018-03-01", - "Arr-Disable-Session-Affinity": "true", - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Wed, 12 Oct 2022 06:54:05 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-AspNet-Version": "4.0.30319", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14986", - "x-ms-request-id": [ - "00000000-0000-0000-0000-000000000000", - "b2c749b3-f1a3-43dc-93c5-f47071461bc7" - ], - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T065405Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Wed, 12 Oct 2022 06:54:08 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ3MzYtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14985", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T065408Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": { - "recordingRandomSeed": "1665556303" - } -} diff --git a/sdk/resourcemanager/monitor/armmonitor/testdata/recordings/TestPrivatelinkscopesTestSuite.json b/sdk/resourcemanager/monitor/armmonitor/testdata/recordings/TestPrivatelinkscopesTestSuite.json deleted file mode 100644 index c820b1661ad8..000000000000 --- a/sdk/resourcemanager/monitor/armmonitor/testdata/recordings/TestPrivatelinkscopesTestSuite.json +++ /dev/null @@ -1,434 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "eastus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:54:11 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1178", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T065411Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "eastus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/microsoft.insights/privateLinkScopes/linkscopenaEpxQjq?api-version=2019-10-17-preview", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armmonitor/v0.7.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "Global" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Access-Control-Expose-Headers": "Request-Context", - "Cache-Control": "no-cache", - "Content-Length": "801", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:54:14 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1177", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T065414Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/microsoft.insights/privatelinkscopes/linkscopenaEpxQjq", - "name": "linkscopenaEpxQjq", - "type": "microsoft.insights/privatelinkscopes", - "location": "global", - "tags": {}, - "kind": null, - "etag": "\u002200000000-0000-0000-0000-000000000000\u0022", - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-12T06:54:13.29216Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-12T06:54:13.29216Z" - }, - "properties": { - "scopeId": "00000000-0000-0000-0000-000000000000", - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/microsoft.insights/privateLinkScopes?api-version=2019-10-17-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armmonitor/v0.7.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Expose-Headers": "Request-Context", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:54:14 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11922", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T065415Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/microsoft.insights/privatelinkscopes/linkscopenaEpxQjq", - "name": "linkscopenaEpxQjq", - "type": "microsoft.insights/privatelinkscopes", - "location": "global", - "tags": {}, - "kind": null, - "etag": "\u002200000000-0000-0000-0000-000000000000\u0022", - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-12T06:54:13.29216Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-12T06:54:13.29216Z" - }, - "properties": { - "scopeId": "00000000-0000-0000-0000-000000000000", - "provisioningState": "Succeeded" - } - } - ], - "nextLink": null - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/microsoft.insights/privateLinkScopes?api-version=2019-10-17-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armmonitor/v0.7.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Expose-Headers": "Request-Context", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:54:14 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11921", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T065415Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/microsoft.insights/privatelinkscopes/linkscopenaEpxQjq", - "name": "linkscopenaEpxQjq", - "type": "microsoft.insights/privatelinkscopes", - "location": "global", - "tags": {}, - "kind": null, - "etag": "\u002200000000-0000-0000-0000-000000000000\u0022", - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-12T06:54:13.29216Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-12T06:54:13.29216Z" - }, - "properties": { - "scopeId": "00000000-0000-0000-0000-000000000000", - "provisioningState": "Succeeded" - } - } - ], - "nextLink": null - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/microsoft.insights/privateLinkScopes/linkscopenaEpxQjq?api-version=2019-10-17-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armmonitor/v0.7.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Expose-Headers": "Request-Context", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:54:15 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11920", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T065415Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/microsoft.insights/privatelinkscopes/linkscopenaEpxQjq", - "name": "linkscopenaEpxQjq", - "type": "microsoft.insights/privatelinkscopes", - "location": "global", - "tags": {}, - "kind": null, - "etag": "\u002200000000-0000-0000-0000-000000000000\u0022", - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-12T06:54:13.29216Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-12T06:54:13.29216Z" - }, - "properties": { - "scopeId": "00000000-0000-0000-0000-000000000000", - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/microsoft.insights/privateLinkScopes/linkscopenaEpxQjq?api-version=2019-10-17-preview", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "42", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armmonitor/v0.7.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "tags": { - "Tag1": "Value1", - "Tag2": "Value2" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Expose-Headers": "Request-Context", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:54:17 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1176", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T065417Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/microsoft.insights/privatelinkscopes/linkscopenaEpxQjq", - "name": "linkscopenaEpxQjq", - "type": "microsoft.insights/privatelinkscopes", - "location": "global", - "tags": { - "Tag1": "Value1", - "Tag2": "Value2" - }, - "kind": null, - "etag": "\u002200000000-0000-0000-0000-000000000000\u0022", - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-10-12T06:54:13.29216Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-10-12T06:54:16.1046629Z" - }, - "properties": { - "scopeId": "00000000-0000-0000-0000-000000000000", - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/microsoft.insights/privateLinkScopes/linkscopenaEpxQjq?api-version=2019-10-17-preview", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armmonitor/v0.7.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Access-Control-Expose-Headers": "Request-Context", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/microsoft.insights/privatelinkscopeoperationstatuses/00000000-0000-0000-0000-000000000000?api-version=2019-10-17-preview", - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Wed, 12 Oct 2022 06:54:20 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/microsoft.insights/privatelinkscopes/linkscopenaepxqjq/operationresults/00000000-0000-0000-0000-000000000000?api-version=2019-10-17-preview", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Retry-After": "20", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14984", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T065421Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/microsoft.insights/privatelinkscopeoperationstatuses/00000000-0000-0000-0000-000000000000?api-version=2019-10-17-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armmonitor/v0.7.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Expose-Headers": "Request-Context", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:54:40 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "499", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T065441Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/microsoft.insights/privatelinkscopeoperationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "Succeeded", - "startTime": "2022-10-12T06:54:18.5374341Z", - "endTime": "2022-10-12T06:54:21.4211211Z", - "properties": { - "scopeId": "00000000-0000-0000-0000-000000000000" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Wed, 12 Oct 2022 06:54:41 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ3NTgtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14983", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T065442Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": { - "recordingRandomSeed": "1665556303" - } -} diff --git a/sdk/resourcemanager/monitor/armmonitor/testdata/recordings/TestScheduledqueryrulesTestSuite.json b/sdk/resourcemanager/monitor/armmonitor/testdata/recordings/TestScheduledqueryrulesTestSuite.json deleted file mode 100644 index 7253e3308e90..000000000000 --- a/sdk/resourcemanager/monitor/armmonitor/testdata/recordings/TestScheduledqueryrulesTestSuite.json +++ /dev/null @@ -1,718 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "eastus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:54:43 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1175", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T065444Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "eastus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/WorkSpace_Create?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "657", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "mode": "Incremental", - "parameters": { - "location": { - "value": "eastus" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "outputs": { - "workspaceId": { - "type": "string", - "value": "[resourceId(\u0027Microsoft.OperationalInsights/workspaces\u0027,\u0027workspacena\u0027)]" - } - }, - "parameters": { - "location": { - "defaultValue": "$(location)", - "type": "string" - } - }, - "resources": [ - { - "apiVersion": "2021-12-01-preview", - "location": "[parameters(\u0027location\u0027)]", - "name": "workspacena", - "properties": { - "retentionInDays": 30, - "sku": { - "name": "PerNode" - } - }, - "tags": { - "tag1": "value1" - }, - "type": "Microsoft.OperationalInsights/workspaces" - } - ] - } - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/WorkSpace_Create/operationStatuses/08585360491994687978?api-version=2021-04-01", - "Cache-Control": "no-cache", - "Content-Length": "654", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:54:46 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1174", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T065447Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/WorkSpace_Create", - "name": "WorkSpace_Create", - "type": "Microsoft.Resources/deployments", - "properties": { - "templateHash": "4923452057577046661", - "parameters": { - "location": { - "type": "String", - "value": "eastus" - } - }, - "mode": "Incremental", - "provisioningState": "Accepted", - "timestamp": "2022-10-12T06:54:46.5999775Z", - "duration": "PT0.0006454S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.OperationalInsights", - "resourceTypes": [ - { - "resourceType": "workspaces", - "locations": [ - "eastus" - ] - } - ] - } - ], - "dependencies": [] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/WorkSpace_Create/operationStatuses/08585360491994687978?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "20", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:54:47 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11919", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T065448Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/WorkSpace_Create/operationStatuses/08585360491994687978?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "22", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:55:18 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11918", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T065518Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/WorkSpace_Create?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "1029", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:55:18 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11917", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T065519Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/WorkSpace_Create", - "name": "WorkSpace_Create", - "type": "Microsoft.Resources/deployments", - "properties": { - "templateHash": "4923452057577046661", - "parameters": { - "location": { - "type": "String", - "value": "eastus" - } - }, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2022-10-12T06:55:13.9053712Z", - "duration": "PT27.3060391S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.OperationalInsights", - "resourceTypes": [ - { - "resourceType": "workspaces", - "locations": [ - "eastus" - ] - } - ] - } - ], - "dependencies": [], - "outputs": { - "workspaceId": { - "type": "String", - "value": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/workspacena" - } - }, - "outputResources": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/workspacena" - } - ] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Insights/scheduledQueryRules/schedulequeryrulenaEpxQjq?api-version=2018-04-16", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "815", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armmonitor/v0.7.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "eastus", - "properties": { - "action": { - "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction", - "severity": "1", - "trigger": { - "threshold": 3, - "thresholdOperator": "GreaterThan", - "metricTrigger": { - "metricColumn": "Computer", - "metricTriggerType": "Consecutive", - "threshold": 5, - "thresholdOperator": "GreaterThan" - } - } - }, - "description": "log search rule description", - "enabled": "true", - "schedule": { - "frequencyInMinutes": 15, - "timeWindowInMinutes": 15 - }, - "source": { - "dataSourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/workspacena", - "query": "Heartbeat | summarize AggregatedValue = count() by bin(TimeGenerated, 5m)", - "queryType": "ResultCount" - } - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "1227", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:55:32 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1173", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T065532Z:00000000-0000-0000-0000-000000000000", - "X-Rate-Limit-Limit": "1m", - "X-Rate-Limit-Remaining": "14", - "X-Rate-Limit-Reset": "2022-10-12T06:56:20.5202669Z" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/microsoft.insights/scheduledqueryrules/schedulequeryrulenaEpxQjq", - "name": "schedulequeryrulenaEpxQjq", - "type": "microsoft.insights/scheduledqueryrules", - "location": "eastus", - "etag": "\u002200000000-0000-0000-0000-000000000000\u0022", - "properties": { - "description": "log search rule description", - "displayName": "schedulequeryrulenaEpxQjq", - "enabled": "true", - "lastUpdatedTime": "2022-10-12T06:55:31Z", - "provisioningState": "Succeeded", - "source": { - "query": "Heartbeat | summarize AggregatedValue = count() by bin(TimeGenerated, 5m)", - "dataSourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/workspacena", - "queryType": "ResultCount" - }, - "schedule": { - "frequencyInMinutes": 15, - "timeWindowInMinutes": 15 - }, - "action": { - "severity": "1", - "trigger": { - "thresholdOperator": "GreaterThan", - "threshold": 3, - "metricTrigger": { - "thresholdOperator": "GreaterThan", - "threshold": 5, - "metricTriggerType": "Consecutive", - "metricColumn": "Computer" - } - }, - "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction" - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Insights/scheduledQueryRules?api-version=2018-04-16", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armmonitor/v0.7.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:55:32 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11916", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T065533Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/microsoft.insights/scheduledqueryrules/schedulequeryrulenaEpxQjq", - "name": "schedulequeryrulenaEpxQjq", - "type": "microsoft.insights/scheduledqueryrules", - "location": "eastus", - "etag": "\u002200000000-0000-0000-0000-000000000000\u0022", - "properties": { - "description": "log search rule description", - "displayName": "schedulequeryrulenaEpxQjq", - "enabled": "true", - "lastUpdatedTime": "2022-10-12T06:55:31Z", - "provisioningState": "Succeeded", - "source": { - "query": "Heartbeat | summarize AggregatedValue = count() by bin(TimeGenerated, 5m)", - "dataSourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/workspacena", - "queryType": "ResultCount" - }, - "schedule": { - "frequencyInMinutes": 15, - "timeWindowInMinutes": 15 - }, - "action": { - "severity": "1", - "trigger": { - "thresholdOperator": "GreaterThan", - "threshold": 3, - "metricTrigger": { - "thresholdOperator": "GreaterThan", - "threshold": 5, - "metricTriggerType": "Consecutive", - "metricColumn": "Computer" - } - }, - "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction" - } - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Insights/scheduledQueryRules?api-version=2018-04-16", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armmonitor/v0.7.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:55:33 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11915", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T065533Z:00000000-0000-0000-0000-000000000000", - "X-Rate-Limit-Limit": "1m", - "X-Rate-Limit-Remaining": "49", - "X-Rate-Limit-Reset": "2022-10-12T06:56:33.4933032Z" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/microsoft.insights/scheduledqueryrules/schedulequeryrulenaEpxQjq", - "name": "schedulequeryrulenaEpxQjq", - "type": "microsoft.insights/scheduledqueryrules", - "location": "eastus", - "etag": "\u002200000000-0000-0000-0000-000000000000\u0022", - "properties": { - "description": "log search rule description", - "displayName": "schedulequeryrulenaEpxQjq", - "enabled": "true", - "lastUpdatedTime": "2022-10-12T06:55:31Z", - "provisioningState": "Succeeded", - "source": { - "query": "Heartbeat | summarize AggregatedValue = count() by bin(TimeGenerated, 5m)", - "dataSourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/workspacena", - "queryType": "ResultCount" - }, - "schedule": { - "frequencyInMinutes": 15, - "timeWindowInMinutes": 15 - }, - "action": { - "severity": "1", - "trigger": { - "thresholdOperator": "GreaterThan", - "threshold": 3, - "metricTrigger": { - "thresholdOperator": "GreaterThan", - "threshold": 5, - "metricTriggerType": "Consecutive", - "metricColumn": "Computer" - } - }, - "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction" - } - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Insights/scheduledQueryRules/schedulequeryrulenaEpxQjq?api-version=2018-04-16", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armmonitor/v0.7.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:55:34 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11914", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T065534Z:00000000-0000-0000-0000-000000000000", - "X-Rate-Limit-Limit": "1m", - "X-Rate-Limit-Remaining": "48", - "X-Rate-Limit-Reset": "2022-10-12T06:56:33.4933032Z" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/microsoft.insights/scheduledqueryrules/schedulequeryrulenaEpxQjq", - "name": "schedulequeryrulenaEpxQjq", - "type": "microsoft.insights/scheduledqueryrules", - "location": "eastus", - "etag": "\u002200000000-0000-0000-0000-000000000000\u0022", - "properties": { - "description": "log search rule description", - "displayName": "schedulequeryrulenaEpxQjq", - "enabled": "true", - "lastUpdatedTime": "2022-10-12T06:55:31Z", - "provisioningState": "Succeeded", - "source": { - "query": "Heartbeat | summarize AggregatedValue = count() by bin(TimeGenerated, 5m)", - "dataSourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/workspacena", - "queryType": "ResultCount" - }, - "schedule": { - "frequencyInMinutes": 15, - "timeWindowInMinutes": 15 - }, - "action": { - "severity": "1", - "trigger": { - "thresholdOperator": "GreaterThan", - "threshold": 3, - "metricTrigger": { - "thresholdOperator": "GreaterThan", - "threshold": 5, - "metricTriggerType": "Consecutive", - "metricColumn": "Computer" - } - }, - "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction" - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Insights/scheduledQueryRules/schedulequeryrulenaEpxQjq?api-version=2018-04-16", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "33", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armmonitor/v0.7.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "enabled": "true" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 06:55:42 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1172", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T065543Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/microsoft.insights/scheduledqueryrules/schedulequeryrulenaEpxQjq", - "name": "schedulequeryrulenaEpxQjq", - "type": "microsoft.insights/scheduledqueryrules", - "location": "eastus", - "etag": "\u002200000000-0000-0000-0000-000000000000\u0022", - "properties": { - "description": "log search rule description", - "displayName": "schedulequeryrulenaEpxQjq", - "enabled": "true", - "lastUpdatedTime": "2022-10-12T06:55:43Z", - "provisioningState": "Succeeded", - "source": { - "query": "Heartbeat | summarize AggregatedValue = count() by bin(TimeGenerated, 5m)", - "dataSourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/workspacena", - "queryType": "ResultCount" - }, - "schedule": { - "frequencyInMinutes": 15, - "timeWindowInMinutes": 15 - }, - "action": { - "severity": "1", - "trigger": { - "thresholdOperator": "GreaterThan", - "threshold": 3, - "metricTrigger": { - "thresholdOperator": "GreaterThan", - "threshold": 5, - "metricTriggerType": "Consecutive", - "metricColumn": "Computer" - } - }, - "odata.type": "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction" - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Insights/scheduledQueryRules/schedulequeryrulenaEpxQjq?api-version=2018-04-16", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armmonitor/v0.7.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Wed, 12 Oct 2022 06:55:50 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14982", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T065550Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Wed, 12 Oct 2022 06:55:52 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ0MjMtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14981", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221012T065553Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": { - "recordingRandomSeed": "1665556303" - } -} diff --git a/sdk/resourcemanager/network/armnetwork/assets.json b/sdk/resourcemanager/network/armnetwork/assets.json new file mode 100644 index 000000000000..a029f39381e6 --- /dev/null +++ b/sdk/resourcemanager/network/armnetwork/assets.json @@ -0,0 +1,6 @@ +{ + "AssetsRepo": "Azure/azure-sdk-assets", + "AssetsRepoPrefixPath": "go", + "TagPrefix": "go/resourcemanager/network/armnetwork", + "Tag": "go/resourcemanager/network/armnetwork_26ead6972b" +} diff --git a/sdk/resourcemanager/network/armnetwork/go.mod b/sdk/resourcemanager/network/armnetwork/go.mod index 4654777576ba..2c652bfc25eb 100644 --- a/sdk/resourcemanager/network/armnetwork/go.mod +++ b/sdk/resourcemanager/network/armnetwork/go.mod @@ -3,27 +3,27 @@ module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/network/armnetwork/ go 1.18 require ( - github.com/Azure/azure-sdk-for-go/sdk/azcore v1.0.0 - github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.0.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.0.0 + github.com/Azure/azure-sdk-for-go/sdk/azcore v1.4.0 + github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.2 github.com/stretchr/testify v1.7.0 ) require ( - github.com/Azure/azure-sdk-for-go/sdk/internal v1.0.0 // indirect + github.com/Azure/azure-sdk-for-go/sdk/internal v1.2.0 // indirect github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0 // indirect - github.com/AzureAD/microsoft-authentication-library-for-go v0.4.0 // indirect + github.com/AzureAD/microsoft-authentication-library-for-go v0.7.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/dnaeon/go-vcr v1.1.0 // indirect - github.com/golang-jwt/jwt v3.2.1+incompatible // indirect + github.com/golang-jwt/jwt/v4 v4.4.2 // 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 github.com/pmezard/go-difflib v1.0.0 // 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 + golang.org/x/net v0.7.0 // indirect + golang.org/x/sys v0.5.0 // indirect + golang.org/x/text v0.7.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect ) diff --git a/sdk/resourcemanager/network/armnetwork/go.sum b/sdk/resourcemanager/network/armnetwork/go.sum index 3bb750d4f3e7..b0f97586a165 100644 --- a/sdk/resourcemanager/network/armnetwork/go.sum +++ b/sdk/resourcemanager/network/armnetwork/go.sum @@ -1,29 +1,27 @@ -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/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.0.0 h1:lMW1lD/17LUA5z1XTURo7LcVG2ICBPlyMHjIUrcFZNQ= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.0.0/go.mod h1:ceIuwmxDWptoW3eCqSXlnPsZFKh4X+R38dWPv7GS9Vs= +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.0 h1:t/W5MYAuQy81cvM8VUNfRLzhtKpXhVUAN7Cd7KVbTyc= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.0/go.mod h1:NBanQUfSWiWn3QEpWDTCU0IjBECKOYvl2R8xdRtMtiM= +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/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.2 h1:mLY+pNLjCUeKhgnAJWAKhEUQM+RJQo2H1fuGSw1Ky1E= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.2/go.mod h1:FbdwsQ2EzwvXxOPcMFYO8ogEc9uMMIj3YkmCdXdAFmk= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0 h1:ECsQtyERDVz3NP3kvDOTLvbQhqWp/x9EsGKtb4ogUr8= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0/go.mod h1:s1tW/At+xHqjNFvWU4G0c0Qv33KOhvbGNj0RCTQDV8s= -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/AzureAD/microsoft-authentication-library-for-go v0.7.0 h1:VgSJlZH5u0k2qxSpqyghcFQKmvYckj46uymKK5XzkBM= +github.com/AzureAD/microsoft-authentication-library-for-go v0.7.0/go.mod h1:BDJ5qMFKx9DugEg3+uQSDCdbYPr5s9vBTrL9P8TpqOU= 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/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 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= +github.com/golang-jwt/jwt/v4 v4.4.2 h1:rcc4lwaZgFMCZ5jxF9ABolDcIHdBytAFgqFPbSJQAYs= +github.com/golang-jwt/jwt/v4 v4.4.2/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= 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= @@ -33,13 +31,12 @@ github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5Cc github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= 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-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/net v0.7.0 h1:rJrUqqhjsgNp7KqAIc25s9pZnjU7TUcSY7HcVZjdn1g= +golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= +golang.org/x/sys v0.5.0 h1:MUK/U/4lj1t1oPg0HfuXDN/Z1wv31ZJ/YcPiGccS4DU= +golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/text v0.7.0 h1:4BRB4x83lYWy72KwLD/qYDuTu7q9PjSagHvijDw7cLo= +golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= 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= diff --git a/sdk/resourcemanager/network/armnetwork/testdata/recordings/TestIPGroupsClient.json b/sdk/resourcemanager/network/armnetwork/testdata/recordings/TestIPGroupsClient.json deleted file mode 100644 index 1d1d9b601e09..000000000000 --- a/sdk/resourcemanager/network/armnetwork/testdata/recordings/TestIPGroupsClient.json +++ /dev/null @@ -1,347 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "eastus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 14 Oct 2022 07:40:22 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221014T074023Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "eastus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/ipGroups/go-test-ipg?api-version=2022-07-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "105", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armnetwork/v2.0.1 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "eastus", - "properties": { - "ipAddresses": [ - "13.64.39.16/32", - "40.74.146.80/31", - "40.74.147.32/28" - ] - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/nfvOperations/00000000-0000-0000-0000-000000000000?api-version=2022-07-01", - "Cache-Control": "no-cache", - "Content-Length": "508", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 14 Oct 2022 07:40:30 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "10", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-request-id": [ - "00000000-0000-0000-0000-000000000000", - "e717b2d8-31f1-4f7d-aef8-b81a0f5886e2" - ], - "x-ms-routing-request-id": "SOUTHEASTASIA:20221014T074030Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "firewalls": [], - "firewallPolicies": [], - "ipAddresses": [ - "13.64.39.16/32", - "40.74.146.80/31", - "40.74.147.32/28" - ], - "provisioningState": "Updating" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/ipGroups/go-test-ipg", - "name": "go-test-ipg", - "type": "Microsoft.Network/IpGroups", - "etag": "00000000-0000-0000-0000-000000000000", - "location": "eastus" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/nfvOperations/00000000-0000-0000-0000-000000000000?api-version=2022-07-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armnetwork/v2.0.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 14 Oct 2022 07:40:40 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11996", - "x-ms-request-id": [ - "00000000-0000-0000-0000-000000000000", - "d65ef8dc-0ef2-467f-8581-ec2be0b235b4" - ], - "x-ms-routing-request-id": "SOUTHEASTASIA:20221014T074041Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/ipGroups/go-test-ipg?api-version=2022-07-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armnetwork/v2.0.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 14 Oct 2022 07:40:40 GMT", - "ETag": "\u002200000000-0000-0000-0000-000000000000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11995", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221014T074041Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "firewalls": [], - "firewallPolicies": [], - "ipAddresses": [ - "13.64.39.16/32", - "40.74.146.80/31", - "40.74.147.32/28" - ], - "provisioningState": "Succeeded" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/ipGroups/go-test-ipg", - "name": "go-test-ipg", - "type": "Microsoft.Network/IpGroups", - "etag": "00000000-0000-0000-0000-000000000000", - "location": "eastus" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/ipGroups/go-test-ipg?api-version=2022-07-01", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "24", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armnetwork/v2.0.1 (go1.19; Windows_NT)" - }, - "RequestBody": { - "tags": { - "test": "live" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 14 Oct 2022 07:40:42 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1197", - "x-ms-request-id": [ - "00000000-0000-0000-0000-000000000000", - "79434402-4b79-45bb-9222-a0c33a83ed5e" - ], - "x-ms-routing-request-id": "SOUTHEASTASIA:20221014T074043Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "firewalls": [], - "firewallPolicies": [], - "ipAddresses": [ - "13.64.39.16/32", - "40.74.146.80/31", - "40.74.147.32/28" - ], - "provisioningState": "Succeeded" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/ipGroups/go-test-ipg", - "name": "go-test-ipg", - "type": "Microsoft.Network/IpGroups", - "etag": "00000000-0000-0000-0000-000000000000", - "location": "eastus", - "tags": { - "test": "live" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/ipGroups/go-test-ipg?api-version=2022-07-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armnetwork/v2.0.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 14 Oct 2022 07:40:43 GMT", - "ETag": "\u002200000000-0000-0000-0000-000000000000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11994", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221014T074044Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "firewalls": [], - "firewallPolicies": [], - "ipAddresses": [ - "13.64.39.16/32", - "40.74.146.80/31", - "40.74.147.32/28" - ], - "provisioningState": "Succeeded" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/ipGroups/go-test-ipg", - "name": "go-test-ipg", - "type": "Microsoft.Network/IpGroups", - "etag": "00000000-0000-0000-0000-000000000000", - "location": "eastus", - "tags": { - "test": "live" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/ipGroups/go-test-ipg?api-version=2022-07-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armnetwork/v2.0.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 14 Oct 2022 07:40:48 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14998", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221014T074048Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 14 Oct 2022 07:40:53 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ0NjAtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14997", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221014T074053Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/resourcemanager/network/armnetwork/testdata/recordings/TestSubnetsClient.json b/sdk/resourcemanager/network/armnetwork/testdata/recordings/TestSubnetsClient.json deleted file mode 100644 index 5fc76139b333..000000000000 --- a/sdk/resourcemanager/network/armnetwork/testdata/recordings/TestSubnetsClient.json +++ /dev/null @@ -1,474 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "eastus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 14 Oct 2022 07:40:56 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1196", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221014T074056Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "eastus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/go-test-vn?api-version=2022-07-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "87", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armnetwork/v2.0.1 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "eastus", - "properties": { - "addressSpace": { - "addressPrefixes": [ - "10.1.0.0/16" - ] - } - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2022-07-01", - "Cache-Control": "no-cache", - "Content-Length": "612", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 14 Oct 2022 07:41:00 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "3", - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1195", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221014T074100Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "go-test-vn", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/go-test-vn", - "etag": "W/\u002200000000-0000-0000-0000-000000000000\u0022", - "type": "Microsoft.Network/virtualNetworks", - "location": "eastus", - "properties": { - "provisioningState": "Updating", - "resourceGuid": "00000000-0000-0000-0000-000000000000", - "addressSpace": { - "addressPrefixes": [ - "10.1.0.0/16" - ] - }, - "subnets": [], - "virtualNetworkPeerings": [], - "enableDdosProtection": false - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2022-07-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armnetwork/v2.0.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 14 Oct 2022 07:41:03 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11993", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221014T074103Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/go-test-vn?api-version=2022-07-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armnetwork/v2.0.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 14 Oct 2022 07:41:04 GMT", - "ETag": "W/\u002200000000-0000-0000-0000-000000000000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11992", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221014T074104Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "go-test-vn", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/go-test-vn", - "etag": "W/\u002200000000-0000-0000-0000-000000000000\u0022", - "type": "Microsoft.Network/virtualNetworks", - "location": "eastus", - "properties": { - "provisioningState": "Succeeded", - "resourceGuid": "00000000-0000-0000-0000-000000000000", - "addressSpace": { - "addressPrefixes": [ - "10.1.0.0/16" - ] - }, - "subnets": [], - "virtualNetworkPeerings": [], - "enableDdosProtection": false - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/go-test-vn/subnets/go-test-subnet?api-version=2022-07-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "47", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armnetwork/v2.0.1 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "addressPrefix": "10.1.10.0/24" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2022-07-01", - "Cache-Control": "no-cache", - "Content-Length": "545", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 14 Oct 2022 07:41:05 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "3", - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1194", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221014T074105Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "go-test-subnet", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/go-test-vn/subnets/go-test-subnet", - "etag": "W/\u002200000000-0000-0000-0000-000000000000\u0022", - "properties": { - "provisioningState": "Updating", - "addressPrefix": "10.1.10.0/24", - "delegations": [], - "privateEndpointNetworkPolicies": "Disabled", - "privateLinkServiceNetworkPolicies": "Enabled" - }, - "type": "Microsoft.Network/virtualNetworks/subnets" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2022-07-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armnetwork/v2.0.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 14 Oct 2022 07:41:08 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11991", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221014T074109Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/go-test-vn/subnets/go-test-subnet?api-version=2022-07-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armnetwork/v2.0.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 14 Oct 2022 07:41:09 GMT", - "ETag": "W/\u002200000000-0000-0000-0000-000000000000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11990", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221014T074109Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "go-test-subnet", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/go-test-vn/subnets/go-test-subnet", - "etag": "W/\u002200000000-0000-0000-0000-000000000000\u0022", - "properties": { - "provisioningState": "Succeeded", - "addressPrefix": "10.1.10.0/24", - "delegations": [], - "privateEndpointNetworkPolicies": "Disabled", - "privateLinkServiceNetworkPolicies": "Enabled" - }, - "type": "Microsoft.Network/virtualNetworks/subnets" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/go-test-vn/subnets/go-test-subnet?api-version=2022-07-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armnetwork/v2.0.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 14 Oct 2022 07:41:10 GMT", - "ETag": "W/\u002200000000-0000-0000-0000-000000000000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11989", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221014T074110Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "go-test-subnet", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/go-test-vn/subnets/go-test-subnet", - "etag": "W/\u002200000000-0000-0000-0000-000000000000\u0022", - "properties": { - "provisioningState": "Succeeded", - "addressPrefix": "10.1.10.0/24", - "delegations": [], - "privateEndpointNetworkPolicies": "Disabled", - "privateLinkServiceNetworkPolicies": "Enabled" - }, - "type": "Microsoft.Network/virtualNetworks/subnets" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/go-test-vn/subnets/go-test-subnet?api-version=2022-07-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armnetwork/v2.0.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2022-07-01", - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 14 Oct 2022 07:41:11 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-07-01", - "Pragma": "no-cache", - "Retry-After": "10", - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14996", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221014T074111Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2022-07-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armnetwork/v2.0.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 14 Oct 2022 07:41:21 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11988", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221014T074122Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 14 Oct 2022 07:41:23 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQyMzktRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14995", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221014T074123Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/resourcemanager/network/armnetwork/testdata/recordings/TestVirtualNetworksClient.json b/sdk/resourcemanager/network/armnetwork/testdata/recordings/TestVirtualNetworksClient.json deleted file mode 100644 index 25046a4c3acc..000000000000 --- a/sdk/resourcemanager/network/armnetwork/testdata/recordings/TestVirtualNetworksClient.json +++ /dev/null @@ -1,414 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "eastus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 14 Oct 2022 07:41:26 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1193", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221014T074127Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "eastus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/go-test-vn?api-version=2022-07-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "87", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armnetwork/v2.0.1 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "eastus", - "properties": { - "addressSpace": { - "addressPrefixes": [ - "10.1.0.0/16" - ] - } - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2022-07-01", - "Cache-Control": "no-cache", - "Content-Length": "612", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 14 Oct 2022 07:41:30 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "3", - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1192", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221014T074131Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "go-test-vn", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/go-test-vn", - "etag": "W/\u002200000000-0000-0000-0000-000000000000\u0022", - "type": "Microsoft.Network/virtualNetworks", - "location": "eastus", - "properties": { - "provisioningState": "Updating", - "resourceGuid": "00000000-0000-0000-0000-000000000000", - "addressSpace": { - "addressPrefixes": [ - "10.1.0.0/16" - ] - }, - "subnets": [], - "virtualNetworkPeerings": [], - "enableDdosProtection": false - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2022-07-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armnetwork/v2.0.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 14 Oct 2022 07:41:34 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11987", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221014T074135Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/go-test-vn?api-version=2022-07-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armnetwork/v2.0.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 14 Oct 2022 07:41:34 GMT", - "ETag": "W/\u002200000000-0000-0000-0000-000000000000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11986", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221014T074135Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "go-test-vn", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/go-test-vn", - "etag": "W/\u002200000000-0000-0000-0000-000000000000\u0022", - "type": "Microsoft.Network/virtualNetworks", - "location": "eastus", - "properties": { - "provisioningState": "Succeeded", - "resourceGuid": "00000000-0000-0000-0000-000000000000", - "addressSpace": { - "addressPrefixes": [ - "10.1.0.0/16" - ] - }, - "subnets": [], - "virtualNetworkPeerings": [], - "enableDdosProtection": false - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/go-test-vn?api-version=2022-07-01", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "42", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armnetwork/v2.0.1 (go1.19; Windows_NT)" - }, - "RequestBody": { - "tags": { - "tag1": "value1", - "tag2": "value2" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncNotification": "Enabled", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 14 Oct 2022 07:41:37 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1191", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221014T074138Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "go-test-vn", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/go-test-vn", - "etag": "W/\u002200000000-0000-0000-0000-000000000000\u0022", - "type": "Microsoft.Network/virtualNetworks", - "location": "eastus", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "provisioningState": "Succeeded", - "resourceGuid": "00000000-0000-0000-0000-000000000000", - "addressSpace": { - "addressPrefixes": [ - "10.1.0.0/16" - ] - }, - "subnets": [], - "virtualNetworkPeerings": [], - "enableDdosProtection": false - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/go-test-vn?api-version=2022-07-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armnetwork/v2.0.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 14 Oct 2022 07:41:38 GMT", - "ETag": "W/\u002200000000-0000-0000-0000-000000000000\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11985", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221014T074139Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "go-test-vn", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/go-test-vn", - "etag": "W/\u002200000000-0000-0000-0000-000000000000\u0022", - "type": "Microsoft.Network/virtualNetworks", - "location": "eastus", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "provisioningState": "Succeeded", - "resourceGuid": "00000000-0000-0000-0000-000000000000", - "addressSpace": { - "addressPrefixes": [ - "10.1.0.0/16" - ] - }, - "subnets": [], - "virtualNetworkPeerings": [], - "enableDdosProtection": false - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/go-test-vn?api-version=2022-07-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armnetwork/v2.0.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncNotification": "Enabled", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2022-07-01", - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 14 Oct 2022 07:41:41 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operationResults/00000000-0000-0000-0000-000000000000?api-version=2022-07-01", - "Pragma": "no-cache", - "Retry-After": "10", - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14994", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221014T074141Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/eastus/operations/00000000-0000-0000-0000-000000000000?api-version=2022-07-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armnetwork/v2.0.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 14 Oct 2022 07:41:52 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-arm-service-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11984", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221014T074152Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 14 Oct 2022 07:41:53 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ3MjItRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14993", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221014T074153Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/resourcemanager/operationalinsights/armoperationalinsights/assets.json b/sdk/resourcemanager/operationalinsights/armoperationalinsights/assets.json new file mode 100644 index 000000000000..317eaac86baf --- /dev/null +++ b/sdk/resourcemanager/operationalinsights/armoperationalinsights/assets.json @@ -0,0 +1,6 @@ +{ + "AssetsRepo": "Azure/azure-sdk-assets", + "AssetsRepoPrefixPath": "go", + "TagPrefix": "go/resourcemanager/operationalinsights/armoperationalinsights", + "Tag": "go/resourcemanager/operationalinsights/armoperationalinsights_107b9fbcda" +} diff --git a/sdk/resourcemanager/operationalinsights/armoperationalinsights/go.mod b/sdk/resourcemanager/operationalinsights/armoperationalinsights/go.mod index 853d5209dec5..001dfb74f837 100644 --- a/sdk/resourcemanager/operationalinsights/armoperationalinsights/go.mod +++ b/sdk/resourcemanager/operationalinsights/armoperationalinsights/go.mod @@ -3,27 +3,27 @@ module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/operationalinsights go 1.18 require ( - github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.0 - github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.1.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.1 + github.com/Azure/azure-sdk-for-go/sdk/azcore v1.4.0 + github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.2 github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0 github.com/stretchr/testify v1.7.0 ) require ( - github.com/Azure/azure-sdk-for-go/sdk/internal v1.0.0 // indirect - github.com/AzureAD/microsoft-authentication-library-for-go v0.5.1 // indirect + github.com/Azure/azure-sdk-for-go/sdk/internal v1.2.0 // indirect + github.com/AzureAD/microsoft-authentication-library-for-go v0.7.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/dnaeon/go-vcr v1.1.0 // indirect - github.com/golang-jwt/jwt v3.2.1+incompatible // indirect + github.com/golang-jwt/jwt/v4 v4.4.2 // 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 github.com/pmezard/go-difflib v1.0.0 // 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 + golang.org/x/net v0.7.0 // indirect + golang.org/x/sys v0.5.0 // indirect + golang.org/x/text v0.7.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect ) diff --git a/sdk/resourcemanager/operationalinsights/armoperationalinsights/go.sum b/sdk/resourcemanager/operationalinsights/armoperationalinsights/go.sum index 1b67d30343d7..b0f97586a165 100644 --- a/sdk/resourcemanager/operationalinsights/armoperationalinsights/go.sum +++ b/sdk/resourcemanager/operationalinsights/armoperationalinsights/go.sum @@ -1,29 +1,27 @@ -github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.0 h1:Ut0ZGdOwJDw0npYEg+TLlPls3Pq6JiZaP2/aGKir7Zw= -github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.0/go.mod h1:uGG2W01BaETf0Ozp+QxxKJdMBNRWPdstHG0Fmdwn1/U= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.1.0 h1:QkAcEIAKbNL4KoFr4SathZPhDhF4mVwpBMFlYjyAqy8= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.1.0/go.mod h1:bhXu1AjYL+wutSL/kpSq6s7733q2Rb0yuot9Zgfqa/0= -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/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.1 h1:BZOe7ExNYNGmapT91ZUrxtMYsqVljMxTHEnwjOdG7pk= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.1/go.mod h1:TSPEzbGHEgqFa3kUn09SpCrfKNbj7+mMulU/72Vg84E= +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.0 h1:t/W5MYAuQy81cvM8VUNfRLzhtKpXhVUAN7Cd7KVbTyc= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.0/go.mod h1:NBanQUfSWiWn3QEpWDTCU0IjBECKOYvl2R8xdRtMtiM= +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/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.2 h1:mLY+pNLjCUeKhgnAJWAKhEUQM+RJQo2H1fuGSw1Ky1E= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.2/go.mod h1:FbdwsQ2EzwvXxOPcMFYO8ogEc9uMMIj3YkmCdXdAFmk= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0 h1:ECsQtyERDVz3NP3kvDOTLvbQhqWp/x9EsGKtb4ogUr8= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0/go.mod h1:s1tW/At+xHqjNFvWU4G0c0Qv33KOhvbGNj0RCTQDV8s= -github.com/AzureAD/microsoft-authentication-library-for-go v0.5.1 h1:BWe8a+f/t+7KY7zH2mqygeUD0t8hNFXe08p1Pb3/jKE= -github.com/AzureAD/microsoft-authentication-library-for-go v0.5.1/go.mod h1:Vt9sXTKwMyGcOxSmLDMnGPgqsUg7m8pe215qMLrDXw4= +github.com/AzureAD/microsoft-authentication-library-for-go v0.7.0 h1:VgSJlZH5u0k2qxSpqyghcFQKmvYckj46uymKK5XzkBM= +github.com/AzureAD/microsoft-authentication-library-for-go v0.7.0/go.mod h1:BDJ5qMFKx9DugEg3+uQSDCdbYPr5s9vBTrL9P8TpqOU= 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/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 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= +github.com/golang-jwt/jwt/v4 v4.4.2 h1:rcc4lwaZgFMCZ5jxF9ABolDcIHdBytAFgqFPbSJQAYs= +github.com/golang-jwt/jwt/v4 v4.4.2/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= 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= @@ -33,13 +31,12 @@ github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5Cc github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= 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-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/net v0.7.0 h1:rJrUqqhjsgNp7KqAIc25s9pZnjU7TUcSY7HcVZjdn1g= +golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= +golang.org/x/sys v0.5.0 h1:MUK/U/4lj1t1oPg0HfuXDN/Z1wv31ZJ/YcPiGccS4DU= +golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/text v0.7.0 h1:4BRB4x83lYWy72KwLD/qYDuTu7q9PjSagHvijDw7cLo= +golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= 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= diff --git a/sdk/resourcemanager/operationalinsights/armoperationalinsights/testdata/recordings/TestClustersTestSuite.json b/sdk/resourcemanager/operationalinsights/armoperationalinsights/testdata/recordings/TestClustersTestSuite.json deleted file mode 100644 index b9472f797e9e..000000000000 --- a/sdk/resourcemanager/operationalinsights/armoperationalinsights/testdata/recordings/TestClustersTestSuite.json +++ /dev/null @@ -1,2546 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 07:31:26 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T073127Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "westus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/clusters/oiclusterpeY9An?api-version=2021-06-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "134", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": { - "identity": { - "type": "SystemAssigned" - }, - "location": "westus", - "sku": { - "capacity": 1000, - "name": "CapacityReservation" - }, - "tags": { - "tag1": "val1" - } - }, - "StatusCode": 202, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "api-supported-versions": "2020-08-01, 2020-10-01, 2021-06-01", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Thu, 03 Nov 2022 07:31:31 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/clusters/oiclusterpeY9An/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Retry-After": "20", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T073131Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 07:31:51 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11999", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T073152Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T07:31:31.8302955Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 07:32:21 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11998", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T073222Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T07:31:31.8302955Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 07:32:52 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11997", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T073252Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T07:31:31.8302955Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 07:33:22 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11996", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T073323Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T07:31:31.8302955Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 07:33:53 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11995", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T073353Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T07:31:31.8302955Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 07:34:23 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11994", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T073423Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T07:31:31.8302955Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 07:34:53 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11993", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T073454Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T07:31:31.8302955Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 07:35:23 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11992", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T073524Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T07:31:31.8302955Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 07:35:54 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11991", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T073554Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T07:31:31.8302955Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 07:36:25 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11990", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T073625Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T07:31:31.8302955Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 07:36:55 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11989", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T073656Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T07:31:31.8302955Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 07:37:25 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11988", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T073726Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T07:31:31.8302955Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 07:37:56 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11987", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T073756Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T07:31:31.8302955Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 07:38:26 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11986", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T073827Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T07:31:31.8302955Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 07:38:56 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11985", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T073857Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T07:31:31.8302955Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 07:39:26 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11984", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T073927Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T07:31:31.8302955Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 07:39:57 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11983", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T073957Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T07:31:31.8302955Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 07:40:27 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11982", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T074028Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T07:31:31.8302955Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 07:40:57 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11981", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T074058Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T07:31:31.8302955Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 07:41:28 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11980", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T074129Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T07:31:31.8302955Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 07:41:59 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11979", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T074159Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T07:31:31.8302955Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 07:42:29 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11978", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T074230Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T07:31:31.8302955Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 07:43:00 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11977", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T074300Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T07:31:31.8302955Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 07:43:30 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11976", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T074330Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T07:31:31.8302955Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 07:44:00 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11975", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T074401Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T07:31:31.8302955Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 07:44:31 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11974", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T074431Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T07:31:31.8302955Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 07:45:01 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11973", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T074501Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T07:31:31.8302955Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 07:45:31 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11972", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T074531Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T07:31:31.8302955Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 07:46:02 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11971", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T074602Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T07:31:31.8302955Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 07:46:32 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11970", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T074633Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T07:31:31.8302955Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 07:47:03 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11969", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T074703Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T07:31:31.8302955Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 07:47:33 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11968", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T074733Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T07:31:31.8302955Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 07:48:03 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11967", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T074804Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T07:31:31.8302955Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 07:48:33 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11966", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T074834Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T07:31:31.8302955Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 07:49:03 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11965", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T074904Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T07:31:31.8302955Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 07:49:34 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11964", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T074935Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T07:31:31.8302955Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 07:50:05 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11963", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T075005Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T07:31:31.8302955Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 07:50:35 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11962", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T075035Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T07:31:31.8302955Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 07:51:05 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11961", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T075106Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T07:31:31.8302955Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 07:51:35 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11960", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T075136Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T07:31:31.8302955Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 07:52:06 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11959", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T075206Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T07:31:31.8302955Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 07:52:36 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11958", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T075236Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T07:31:31.8302955Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 07:53:06 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11957", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T075307Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T07:31:31.8302955Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 07:53:37 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11956", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T075337Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T07:31:31.8302955Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 07:54:07 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11955", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T075408Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T07:31:31.8302955Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 07:54:38 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11954", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T075438Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T07:31:31.8302955Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 07:55:08 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11953", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T075508Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T07:31:31.8302955Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 07:55:39 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11952", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T075539Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T07:31:31.8302955Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 07:56:09 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11951", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T075609Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T07:31:31.8302955Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 07:56:39 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11950", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T075640Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T07:31:31.8302955Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 07:57:09 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11949", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T075710Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "Succeeded", - "startTime": "2022-11-03T07:31:31.8302955Z", - "endTime": "2022-11-03T07:56:40.58233Z", - "properties": {} - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/clusters/oiclusterpeY9An?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "api-supported-versions": "2020-08-01, 2020-10-01, 2021-06-01", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 07:57:10 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11948", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T075711Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "sku": { - "name": "CapacityReservation", - "capacity": 1000 - }, - "identity": { - "type": "SystemAssigned", - "tenantId": "00000000-0000-0000-0000-000000000000", - "principalId": "00000000-0000-0000-0000-000000000000" - }, - "properties": { - "provisioningState": "Succeeded", - "clusterId": "00000000-0000-0000-0000-000000000000", - "billingType": "Cluster", - "lastModifiedDate": "Thu, 03 Nov 2022 07:31:31 GMT", - "createdDate": "Thu, 03 Nov 2022 07:31:31 GMT", - "isDoubleEncryptionEnabled": true, - "isAvailabilityZonesEnabled": false, - "capacityReservationProperties": { - "lastSkuUpdate": "Thu, 03 Nov 2022 07:31:31 GMT", - "minCapacity": 500 - }, - "associatedWorkspaces": [] - }, - "location": "westus", - "tags": { - "tag1": "val1" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/clusters/oiclusterpeY9An", - "name": "oiclusterpeY9An", - "type": "Microsoft.OperationalInsights/clusters" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/clusters?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "api-supported-versions": "2020-08-01, 2020-10-01, 2021-06-01", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 07:57:10 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11947", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T075711Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "value": [ - { - "sku": { - "name": "CapacityReservation", - "capacity": 1000 - }, - "identity": { - "type": "SystemAssigned", - "tenantId": "00000000-0000-0000-0000-000000000000", - "principalId": "00000000-0000-0000-0000-000000000000" - }, - "properties": { - "provisioningState": "Succeeded", - "clusterId": "00000000-0000-0000-0000-000000000000", - "billingType": "Cluster", - "lastModifiedDate": "Thu, 03 Nov 2022 07:31:31 GMT", - "createdDate": "Thu, 03 Nov 2022 07:31:31 GMT", - "isDoubleEncryptionEnabled": true, - "isAvailabilityZonesEnabled": false, - "capacityReservationProperties": { - "lastSkuUpdate": "Thu, 03 Nov 2022 07:31:31 GMT", - "minCapacity": 500 - }, - "associatedWorkspaces": [] - }, - "location": "westus", - "tags": { - "tag1": "val1" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/clusters/oiclusterpeY9An", - "name": "oiclusterpeY9An", - "type": "Microsoft.OperationalInsights/clusters" - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/clusters?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "api-supported-versions": "2020-08-01, 2020-10-01, 2021-06-01", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 07:57:10 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11946", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T075711Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "value": [ - { - "sku": { - "name": "CapacityReservation", - "capacity": 1000 - }, - "identity": { - "type": "SystemAssigned", - "tenantId": "00000000-0000-0000-0000-000000000000", - "principalId": "00000000-0000-0000-0000-000000000000" - }, - "properties": { - "provisioningState": "Succeeded", - "clusterId": "00000000-0000-0000-0000-000000000000", - "billingType": "Cluster", - "lastModifiedDate": "Thu, 03 Nov 2022 07:31:31 GMT", - "createdDate": "Thu, 03 Nov 2022 07:31:31 GMT", - "isDoubleEncryptionEnabled": true, - "isAvailabilityZonesEnabled": false, - "capacityReservationProperties": { - "lastSkuUpdate": "Thu, 03 Nov 2022 07:31:31 GMT", - "minCapacity": 500 - }, - "associatedWorkspaces": [] - }, - "location": "westus", - "tags": { - "tag1": "val1" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/clusters/oiclusterpeY9An", - "name": "oiclusterpeY9An", - "type": "Microsoft.OperationalInsights/clusters" - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/clusters/oiclusterpeY9An?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "api-supported-versions": "2020-08-01, 2020-10-01, 2021-06-01", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 07:57:11 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11945", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T075712Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "sku": { - "name": "CapacityReservation", - "capacity": 1000 - }, - "identity": { - "type": "SystemAssigned", - "tenantId": "00000000-0000-0000-0000-000000000000", - "principalId": "00000000-0000-0000-0000-000000000000" - }, - "properties": { - "provisioningState": "Succeeded", - "clusterId": "00000000-0000-0000-0000-000000000000", - "billingType": "Cluster", - "lastModifiedDate": "Thu, 03 Nov 2022 07:31:31 GMT", - "createdDate": "Thu, 03 Nov 2022 07:31:31 GMT", - "isDoubleEncryptionEnabled": true, - "isAvailabilityZonesEnabled": false, - "capacityReservationProperties": { - "lastSkuUpdate": "Thu, 03 Nov 2022 07:31:31 GMT", - "minCapacity": 500 - }, - "associatedWorkspaces": [] - }, - "location": "westus", - "tags": { - "tag1": "val1" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/clusters/oiclusterpeY9An", - "name": "oiclusterpeY9An", - "type": "Microsoft.OperationalInsights/clusters" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/clusters/oiclusterpeY9An?api-version=2021-06-01", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "24", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": { - "tags": { - "tag1": "val2" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "api-supported-versions": "2020-08-01, 2020-10-01, 2021-06-01", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 07:57:14 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1197", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T075715Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "sku": { - "name": "CapacityReservation", - "capacity": 1000 - }, - "identity": { - "type": "SystemAssigned", - "tenantId": "00000000-0000-0000-0000-000000000000", - "principalId": "00000000-0000-0000-0000-000000000000" - }, - "properties": { - "provisioningState": "Succeeded", - "clusterId": "00000000-0000-0000-0000-000000000000", - "billingType": "Cluster", - "lastModifiedDate": "Thu, 03 Nov 2022 07:57:12 GMT", - "createdDate": "Thu, 03 Nov 2022 07:31:31 GMT", - "isDoubleEncryptionEnabled": true, - "isAvailabilityZonesEnabled": false, - "capacityReservationProperties": { - "lastSkuUpdate": "Thu, 03 Nov 2022 07:57:12 GMT", - "minCapacity": 500 - }, - "associatedWorkspaces": [] - }, - "location": "westus", - "tags": { - "tag1": "val2" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/clusters/oiclusterpeY9An", - "name": "oiclusterpeY9An", - "type": "Microsoft.OperationalInsights/clusters" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/clusters/oiclusterpeY9An?api-version=2021-06-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "api-supported-versions": "2020-08-01, 2020-10-01, 2021-06-01", - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Thu, 03 Nov 2022 07:57:20 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14999", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T075721Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Thu, 03 Nov 2022 07:57:24 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQyMS1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14998", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T075725Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": { - "recordingRandomSeed": "1667460681" - } -} diff --git a/sdk/resourcemanager/operationalinsights/armoperationalinsights/testdata/recordings/TestDataExportsTestSuite.json b/sdk/resourcemanager/operationalinsights/armoperationalinsights/testdata/recordings/TestDataExportsTestSuite.json deleted file mode 100644 index 2d8aae96413d..000000000000 --- a/sdk/resourcemanager/operationalinsights/armoperationalinsights/testdata/recordings/TestDataExportsTestSuite.json +++ /dev/null @@ -1,717 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 07:57:28 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1196", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T075729Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "westus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oidataexportpeY9An?api-version=2021-12-01-preview", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "84", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus", - "properties": { - "retentionInDays": 30, - "sku": { - "name": "PerGB2018" - } - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "api-supported-versions": "2021-12-01-preview", - "Cache-Control": "no-cache", - "Content-Length": "841", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 07:57:30 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oidataexportpeY9An?api-version=2021-12-01-preview", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1195", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T075731Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "properties": { - "customerId": "00000000-0000-0000-0000-000000000000", - "provisioningState": "Creating", - "sku": { - "name": "PerGB2018", - "lastSkuUpdate": "2022-11-03T07:57:30.9300253Z" - }, - "retentionInDays": 30, - "features": { - "legacy": 0, - "searchVersion": 1, - "enableLogAccessUsingOnlyResourcePermissions": true - }, - "workspaceCapping": { - "dailyQuotaGb": -1.0, - "quotaNextResetTime": "2022-11-04T04:00:00Z", - "dataIngestionStatus": "RespectQuota" - }, - "publicNetworkAccessForIngestion": "Enabled", - "publicNetworkAccessForQuery": "Enabled", - "createdDate": "2022-11-03T07:57:30.9300253Z", - "modifiedDate": "2022-11-03T07:57:30.9300253Z" - }, - "location": "westus", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oidataexportpeY9An", - "name": "oidataexportpeY9An", - "type": "Microsoft.OperationalInsights/workspaces" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oidataexportpeY9An?api-version=2021-12-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "api-supported-versions": "2021-12-01-preview", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 07:57:31 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11944", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T075732Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "properties": { - "customerId": "00000000-0000-0000-0000-000000000000", - "provisioningState": "Succeeded", - "sku": { - "name": "PerGB2018", - "lastSkuUpdate": "2022-11-03T07:57:30.9300253Z" - }, - "retentionInDays": 30, - "features": { - "legacy": 0, - "searchVersion": 1, - "enableLogAccessUsingOnlyResourcePermissions": true - }, - "workspaceCapping": { - "dailyQuotaGb": -1.0, - "quotaNextResetTime": "2022-11-04T04:00:00Z", - "dataIngestionStatus": "RespectQuota" - }, - "publicNetworkAccessForIngestion": "Enabled", - "publicNetworkAccessForQuery": "Enabled", - "createdDate": "2022-11-03T07:57:30.9300253Z", - "modifiedDate": "2022-11-03T07:57:30.9300253Z" - }, - "location": "westus", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oidataexportpeY9An", - "name": "oidataexportpeY9An", - "type": "Microsoft.OperationalInsights/workspaces" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/EventhubNamespace_Create?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "806", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "mode": "Incremental", - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "outputs": { - "eventhubId": { - "type": "string", - "value": "[resourceId(\u0027Microsoft.EventHub/namespaces\u0027, parameters(\u0027namespacesName\u0027))]" - } - }, - "parameters": { - "namespacesName": { - "defaultValue": "eventhubnamespacepeY9An", - "type": "string" - } - }, - "resources": [ - { - "apiVersion": "2022-01-01-preview", - "location": "East US", - "name": "[parameters(\u0027namespacesName\u0027)]", - "properties": { - "disableLocalAuth": false, - "isAutoInflateEnabled": false, - "kafkaEnabled": true, - "maximumThroughputUnits": 0, - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "zoneRedundant": true - }, - "sku": { - "capacity": 1, - "name": "Standard", - "tier": "Standard" - }, - "type": "Microsoft.EventHub/namespaces" - } - ], - "variables": {} - } - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/EventhubNamespace_Create/operationStatuses/08585341446320672547?api-version=2021-04-01", - "Cache-Control": "no-cache", - "Content-Length": "683", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 07:57:33 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1194", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T075734Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/EventhubNamespace_Create", - "name": "EventhubNamespace_Create", - "type": "Microsoft.Resources/deployments", - "properties": { - "templateHash": "12143731163712874286", - "parameters": { - "namespacesName": { - "type": "String", - "value": "eventhubnamespacepeY9An" - } - }, - "mode": "Incremental", - "provisioningState": "Accepted", - "timestamp": "2022-11-03T07:57:33.9776548Z", - "duration": "PT0.0004579S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.EventHub", - "resourceTypes": [ - { - "resourceType": "namespaces", - "locations": [ - "eastus" - ] - } - ] - } - ], - "dependencies": [] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/EventhubNamespace_Create/operationStatuses/08585341446320672547?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "20", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 07:57:34 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11943", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T075735Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/EventhubNamespace_Create/operationStatuses/08585341446320672547?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "20", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 07:58:05 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11942", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T075805Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/EventhubNamespace_Create/operationStatuses/08585341446320672547?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "20", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 07:58:35 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11941", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T075836Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/EventhubNamespace_Create/operationStatuses/08585341446320672547?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "22", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 07:59:06 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11940", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T075906Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/EventhubNamespace_Create?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "1061", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 07:59:06 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11939", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T075907Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/EventhubNamespace_Create", - "name": "EventhubNamespace_Create", - "type": "Microsoft.Resources/deployments", - "properties": { - "templateHash": "12143731163712874286", - "parameters": { - "namespacesName": { - "type": "String", - "value": "eventhubnamespacepeY9An" - } - }, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2022-11-03T07:58:48.9058427Z", - "duration": "PT1M14.9286458S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.EventHub", - "resourceTypes": [ - { - "resourceType": "namespaces", - "locations": [ - "eastus" - ] - } - ] - } - ], - "dependencies": [], - "outputs": { - "eventhubId": { - "type": "String", - "value": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/eventhubnamespacepeY9An" - } - }, - "outputResources": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/eventhubnamespacepeY9An" - } - ] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oidataexportpeY9An/dataExports/export1?api-version=2020-08-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "220", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "destination": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/eventhubnamespacepeY9An" - }, - "tableNames": [ - "Heartbeat" - ] - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "api-supported-versions": "2020-08-01", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 07:59:08 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1193", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T075909Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "properties": { - "dataExportId": "00000000-0000-0000-0000-000000000000", - "destination": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/eventhubnamespacepeY9An", - "type": "EventHub", - "metaData": {} - }, - "tableNames": [ - "Heartbeat" - ], - "enable": true, - "createdDate": "2022-11-03T07:59:09.4338736Z", - "lastModifiedDate": "2022-11-03T07:59:09.4338736Z" - }, - "location": "westus", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oidataexportpeY9An/dataexports/export1", - "name": "export1", - "type": "Microsoft.OperationalInsights/workspaces/dataexports" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oidataexportpeY9An/dataExports?api-version=2020-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "api-supported-versions": "2020-08-01", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 07:59:09 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11938", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T075910Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "value": [ - { - "properties": { - "dataExportId": "00000000-0000-0000-0000-000000000000", - "destination": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/eventhubnamespacepeY9An", - "type": "EventHub", - "metaData": {} - }, - "tableNames": [ - "Heartbeat" - ], - "enable": true, - "createdDate": "2022-11-03T07:59:09.4338736Z", - "lastModifiedDate": "2022-11-03T07:59:09.4338736Z" - }, - "location": "westus", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oidataexportpeY9An/dataexports/export1", - "name": "export1", - "type": "Microsoft.OperationalInsights/workspaces/dataexports" - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oidataexportpeY9An/dataExports/export1?api-version=2020-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "api-supported-versions": "2020-08-01", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 07:59:09 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11937", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T075910Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "properties": { - "dataExportId": "00000000-0000-0000-0000-000000000000", - "destination": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.EventHub/namespaces/eventhubnamespacepeY9An", - "type": "EventHub", - "metaData": {} - }, - "tableNames": [ - "Heartbeat" - ], - "enable": true, - "createdDate": "2022-11-03T07:59:09.4338736Z", - "lastModifiedDate": "2022-11-03T07:59:09.4338736Z" - }, - "location": "westus", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oidataexportpeY9An/dataexports/export1", - "name": "export1", - "type": "Microsoft.OperationalInsights/workspaces/dataexports" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oidataexportpeY9An/dataExports/export1?api-version=2020-08-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "api-supported-versions": "2020-08-01", - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Thu, 03 Nov 2022 07:59:10 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14997", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T075911Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Thu, 03 Nov 2022 07:59:12 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQzMDgtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14996", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T075913Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": { - "recordingRandomSeed": "1667460681" - } -} diff --git a/sdk/resourcemanager/operationalinsights/armoperationalinsights/testdata/recordings/TestDataSourcesTestSuite.json b/sdk/resourcemanager/operationalinsights/armoperationalinsights/testdata/recordings/TestDataSourcesTestSuite.json deleted file mode 100644 index 83132d288eca..000000000000 --- a/sdk/resourcemanager/operationalinsights/armoperationalinsights/testdata/recordings/TestDataSourcesTestSuite.json +++ /dev/null @@ -1,729 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 07:59:14 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1192", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T075915Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "westus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/StorageAccount_Create?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "1281", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "mode": "Incremental", - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "outputs": { - "storageAccountId": { - "type": "string", - "value": "[resourceId(\u0027Microsoft.Storage/storageAccounts\u0027, parameters(\u0027storageAccountName\u0027))]" - } - }, - "parameters": { - "location": { - "defaultValue": "westus", - "type": "string" - }, - "storageAccountName": { - "defaultValue": "oistorageaccountx", - "type": "string" - } - }, - "resources": [ - { - "apiVersion": "2022-05-01", - "kind": "StorageV2", - "location": "[parameters(\u0027location\u0027)]", - "name": "[parameters(\u0027storageAccountName\u0027)]", - "properties": { - "accessTier": "Hot", - "allowBlobPublicAccess": true, - "allowCrossTenantReplication": true, - "allowSharedKeyAccess": true, - "defaultToOAuthAuthentication": false, - "dnsEndpointType": "Standard", - "encryption": { - "keySource": "Microsoft.Storage", - "requireInfrastructureEncryption": false, - "services": { - "blob": { - "enabled": true, - "keyType": "Account" - }, - "file": { - "enabled": true, - "keyType": "Account" - } - } - }, - "minimumTlsVersion": "TLS1_2", - "networkAcls": { - "bypass": "AzureServices", - "defaultAction": "Allow", - "ipRules": [], - "virtualNetworkRules": [] - }, - "publicNetworkAccess": "Enabled", - "supportsHttpsTrafficOnly": true - }, - "sku": { - "name": "Standard_RAGRS", - "tier": "Standard" - }, - "type": "Microsoft.Storage/storageAccounts" - } - ], - "variables": {} - } - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/StorageAccount_Create/operationStatuses/08585341445286456425?api-version=2021-04-01", - "Cache-Control": "no-cache", - "Content-Length": "725", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 07:59:18 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1191", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T075918Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/StorageAccount_Create", - "name": "StorageAccount_Create", - "type": "Microsoft.Resources/deployments", - "properties": { - "templateHash": "12990086749622989720", - "parameters": { - "location": { - "type": "String", - "value": "westus" - }, - "storageAccountName": { - "type": "String", - "value": "oistorageaccountx" - } - }, - "mode": "Incremental", - "provisioningState": "Accepted", - "timestamp": "2022-11-03T07:59:17.4317857Z", - "duration": "PT0.0001335S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Storage", - "resourceTypes": [ - { - "resourceType": "storageAccounts", - "locations": [ - "westus" - ] - } - ] - } - ], - "dependencies": [] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/StorageAccount_Create/operationStatuses/08585341445286456425?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "21", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 07:59:18 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11936", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T075919Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Accepted" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/StorageAccount_Create/operationStatuses/08585341445286456425?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "20", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 07:59:48 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T075949Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/StorageAccount_Create/operationStatuses/08585341445286456425?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "22", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:00:20 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T080020Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/StorageAccount_Create?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "1103", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:00:20 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11933", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T080020Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/StorageAccount_Create", - "name": "StorageAccount_Create", - "type": "Microsoft.Resources/deployments", - "properties": { - "templateHash": "12990086749622989720", - "parameters": { - "location": { - "type": "String", - "value": "westus" - }, - "storageAccountName": { - "type": "String", - "value": "oistorageaccountx" - } - }, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2022-11-03T07:59:54.7385787Z", - "duration": "PT37.3069265S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Storage", - "resourceTypes": [ - { - "resourceType": "storageAccounts", - "locations": [ - "westus" - ] - } - ] - } - ], - "dependencies": [], - "outputs": { - "storageAccountId": { - "type": "String", - "value": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/oistorageaccountx" - } - }, - "outputResources": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/oistorageaccountx" - } - ] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oiautorestpeY9An?api-version=2021-12-01-preview", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "84", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus", - "properties": { - "retentionInDays": 30, - "sku": { - "name": "PerGB2018" - } - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "api-supported-versions": "2021-12-01-preview", - "Cache-Control": "no-cache", - "Content-Length": "837", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:00:24 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oiautorestpeY9An?api-version=2021-12-01-preview", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1190", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T080024Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "properties": { - "customerId": "00000000-0000-0000-0000-000000000000", - "provisioningState": "Creating", - "sku": { - "name": "PerGB2018", - "lastSkuUpdate": "2022-11-03T08:00:22.9285913Z" - }, - "retentionInDays": 30, - "features": { - "legacy": 0, - "searchVersion": 1, - "enableLogAccessUsingOnlyResourcePermissions": true - }, - "workspaceCapping": { - "dailyQuotaGb": -1.0, - "quotaNextResetTime": "2022-11-03T20:00:00Z", - "dataIngestionStatus": "RespectQuota" - }, - "publicNetworkAccessForIngestion": "Enabled", - "publicNetworkAccessForQuery": "Enabled", - "createdDate": "2022-11-03T08:00:22.9285913Z", - "modifiedDate": "2022-11-03T08:00:22.9285913Z" - }, - "location": "westus", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oiautorestpeY9An", - "name": "oiautorestpeY9An", - "type": "Microsoft.OperationalInsights/workspaces" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oiautorestpeY9An?api-version=2021-12-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "api-supported-versions": "2021-12-01-preview", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:00:24 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11932", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T080024Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "properties": { - "customerId": "00000000-0000-0000-0000-000000000000", - "provisioningState": "Creating", - "sku": { - "name": "PerGB2018", - "lastSkuUpdate": "2022-11-03T08:00:22.9285913Z" - }, - "retentionInDays": 30, - "features": { - "legacy": 0, - "searchVersion": 1, - "enableLogAccessUsingOnlyResourcePermissions": true - }, - "workspaceCapping": { - "dailyQuotaGb": -1.0, - "quotaNextResetTime": "2022-11-03T20:00:00Z", - "dataIngestionStatus": "RespectQuota" - }, - "publicNetworkAccessForIngestion": "Enabled", - "publicNetworkAccessForQuery": "Enabled", - "createdDate": "2022-11-03T08:00:22.9285913Z", - "modifiedDate": "2022-11-03T08:00:22.9285913Z" - }, - "location": "westus", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oiautorestpeY9An", - "name": "oiautorestpeY9An", - "type": "Microsoft.OperationalInsights/workspaces" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oiautorestpeY9An?api-version=2021-12-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "api-supported-versions": "2021-12-01-preview", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:00:54 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11931", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T080055Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "properties": { - "customerId": "00000000-0000-0000-0000-000000000000", - "provisioningState": "Succeeded", - "sku": { - "name": "PerGB2018", - "lastSkuUpdate": "2022-11-03T08:00:22.9285913Z" - }, - "retentionInDays": 30, - "features": { - "legacy": 0, - "searchVersion": 1, - "enableLogAccessUsingOnlyResourcePermissions": true - }, - "workspaceCapping": { - "dailyQuotaGb": -1.0, - "quotaNextResetTime": "2022-11-03T20:00:00Z", - "dataIngestionStatus": "RespectQuota" - }, - "publicNetworkAccessForIngestion": "Enabled", - "publicNetworkAccessForQuery": "Enabled", - "createdDate": "2022-11-03T08:00:22.9285913Z", - "modifiedDate": "2022-11-03T08:00:22.9285913Z" - }, - "location": "westus", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oiautorestpeY9An", - "name": "oiautorestpeY9An", - "type": "Microsoft.OperationalInsights/workspaces" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oiautorestpeY9An/dataSources/iodatasourcepeY9An?api-version=2020-08-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "198", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": { - "kind": "IISLogs", - "properties": { - "LinkedResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/oistorageaccountx" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:01:15 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1189", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T080116Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "kind": "IISLogs", - "properties": { - "state": "OnPremiseEnabled" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oiautorestpeY9An/datasources/iodatasourcepeY9An", - "etag": "W/\u0022datetime\u00272022-11-03T08%3A00%3A55.8357017Z\u0027\u0022", - "name": "iodatasourcepeY9An", - "type": "Microsoft.OperationalInsights/workspaces/datasources" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oiautorestpeY9An/dataSources?%24filter=%24filter%3Dkind\u002Beq\u002B%27WindowsEvent%27\u0026api-version=2020-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:01:15 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11930", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T080116Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "value": [] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oiautorestpeY9An/dataSources/iodatasourcepeY9An?api-version=2020-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:01:16 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11929", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T080117Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "kind": "IISLogs", - "properties": { - "state": "OnPremiseEnabled" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oiautorestpeY9An/datasources/iodatasourcepeY9An", - "etag": "W/\u0022datetime\u00272022-11-03T08%3A00%3A55.8357017Z\u0027\u0022", - "name": "iodatasourcepeY9An", - "type": "Microsoft.OperationalInsights/workspaces/datasources" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oiautorestpeY9An/dataSources/iodatasourcepeY9An?api-version=2020-08-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Thu, 03 Nov 2022 08:01:17 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14995", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T080117Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Thu, 03 Nov 2022 08:01:19 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ4MTctV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14994", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T080120Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": { - "recordingRandomSeed": "1667460681" - } -} diff --git a/sdk/resourcemanager/operationalinsights/armoperationalinsights/testdata/recordings/TestIntelligencePacksTestSuite.json b/sdk/resourcemanager/operationalinsights/armoperationalinsights/testdata/recordings/TestIntelligencePacksTestSuite.json deleted file mode 100644 index 39eb67d4cb0a..000000000000 --- a/sdk/resourcemanager/operationalinsights/armoperationalinsights/testdata/recordings/TestIntelligencePacksTestSuite.json +++ /dev/null @@ -1,305 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:01:22 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1188", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T080123Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "westus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oiintelliagencepackpeY9An?api-version=2021-12-01-preview", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "84", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus", - "properties": { - "retentionInDays": 30, - "sku": { - "name": "PerGB2018" - } - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "api-supported-versions": "2021-12-01-preview", - "Cache-Control": "no-cache", - "Content-Length": "855", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:01:26 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oiintelliagencepackpeY9An?api-version=2021-12-01-preview", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1187", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T080126Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "properties": { - "customerId": "00000000-0000-0000-0000-000000000000", - "provisioningState": "Creating", - "sku": { - "name": "PerGB2018", - "lastSkuUpdate": "2022-11-03T08:01:25.5313476Z" - }, - "retentionInDays": 30, - "features": { - "legacy": 0, - "searchVersion": 1, - "enableLogAccessUsingOnlyResourcePermissions": true - }, - "workspaceCapping": { - "dailyQuotaGb": -1.0, - "quotaNextResetTime": "2022-11-04T02:00:00Z", - "dataIngestionStatus": "RespectQuota" - }, - "publicNetworkAccessForIngestion": "Enabled", - "publicNetworkAccessForQuery": "Enabled", - "createdDate": "2022-11-03T08:01:25.5313476Z", - "modifiedDate": "2022-11-03T08:01:25.5313476Z" - }, - "location": "westus", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oiintelliagencepackpeY9An", - "name": "oiintelliagencepackpeY9An", - "type": "Microsoft.OperationalInsights/workspaces" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oiintelliagencepackpeY9An?api-version=2021-12-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "api-supported-versions": "2021-12-01-preview", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:01:26 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11928", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T080127Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "properties": { - "customerId": "00000000-0000-0000-0000-000000000000", - "provisioningState": "Succeeded", - "sku": { - "name": "PerGB2018", - "lastSkuUpdate": "2022-11-03T08:01:25.5313476Z" - }, - "retentionInDays": 30, - "features": { - "legacy": 0, - "searchVersion": 1, - "enableLogAccessUsingOnlyResourcePermissions": true - }, - "workspaceCapping": { - "dailyQuotaGb": -1.0, - "quotaNextResetTime": "2022-11-04T02:00:00Z", - "dataIngestionStatus": "RespectQuota" - }, - "publicNetworkAccessForIngestion": "Enabled", - "publicNetworkAccessForQuery": "Enabled", - "createdDate": "2022-11-03T08:01:25.5313476Z", - "modifiedDate": "2022-11-03T08:01:25.5313476Z" - }, - "location": "westus", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oiintelliagencepackpeY9An", - "name": "oiintelliagencepackpeY9An", - "type": "Microsoft.OperationalInsights/workspaces" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oiintelliagencepackpeY9An/intelligencePacks?api-version=2020-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "api-supported-versions": "2015-03-20, 2020-08-01", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:01:27 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11927", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T080127Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": "[{\u0022displayname\u0022:\u0022Capacity and Performance\u0022,\u0022enabled\u0022:false,\u0022name\u0022:\u0022CapacityPerformance\u0022},{\u0022displayname\u0022:\u0022Azure Web Apps Analytics (Preview)\u0022,\u0022enabled\u0022:false,\u0022name\u0022:\u0022AzureWebAppsAnalytics\u0022},{\u0022displayname\u0022:\u0022BehaviorAnalyticsInsights_DisplayName_TBD\u0022,\u0022enabled\u0022:false,\u0022name\u0022:\u0022BehaviorAnalyticsInsights\u0022},{\u0022displayname\u0022:\u0022Security and Audit\u0022,\u0022enabled\u0022:false,\u0022name\u0022:\u0022Security\u0022},{\u0022displayname\u0022:\u0022Update Management\u0022,\u0022enabled\u0022:false,\u0022name\u0022:\u0022Updates\u0022},{\u0022displayname\u0022:\u0022Antimalware Assessment\u0022,\u0022enabled\u0022:false,\u0022name\u0022:\u0022AntiMalware\u0022},{\u0022displayname\u0022:\u0022Log Management\u0022,\u0022enabled\u0022:true,\u0022name\u0022:\u0022LogManagement\u0022},{\u0022displayname\u0022:\u0022Azure Resources\u0022,\u0022enabled\u0022:true,\u0022name\u0022:\u0022AzureResources\u0022},{\u0022displayname\u0022:\u0022Change Tracking\u0022,\u0022enabled\u0022:false,\u0022name\u0022:\u0022ChangeTracking\u0022},{\u0022displayname\u0022:\u0022SQL Health Check\u0022,\u0022enabled\u0022:false,\u0022name\u0022:\u0022SQLAssessment\u0022},{\u0022displayname\u0022:\u0022System Center Operations Manager Health Check\u0022,\u0022enabled\u0022:false,\u0022name\u0022:\u0022SCOMAssessment\u0022},{\u0022displayname\u0022:\u0022IT Service Management Connector(Preview)\u0022,\u0022enabled\u0022:false,\u0022name\u0022:\u0022ServiceDesk\u0022},{\u0022displayname\u0022:\u0022SQL Server Assessment\u0022,\u0022enabled\u0022:false,\u0022name\u0022:\u0022SQLAssessmentPlus\u0022},{\u0022displayname\u0022:\u0022Active Directory Health Check\u0022,\u0022enabled\u0022:false,\u0022name\u0022:\u0022ADAssessment\u0022},{\u0022displayname\u0022:\u0022Alert Management\u0022,\u0022enabled\u0022:false,\u0022name\u0022:\u0022AlertManagement\u0022},{\u0022displayname\u0022:\u0022Azure Automation\u0022,\u0022enabled\u0022:false,\u0022name\u0022:\u0022AzureAutomation\u0022},{\u0022displayname\u0022:\u0022Wire Data\u0022,\u0022enabled\u0022:false,\u0022name\u0022:\u0022WireData\u0022},{\u0022displayname\u0022:\u0022Azure Site Recovery\u0022,\u0022enabled\u0022:false,\u0022name\u0022:\u0022SiteRecovery\u0022},{\u0022displayname\u0022:\u0022Backup\u0022,\u0022enabled\u0022:false,\u0022name\u0022:\u0022Backup\u0022},{\u0022displayname\u0022:\u0022Surface Hub\u0022,\u0022enabled\u0022:false,\u0022name\u0022:\u0022SurfaceHub\u0022},{\u0022displayname\u0022:\u0022Network Performance Monitor\u0022,\u0022enabled\u0022:false,\u0022name\u0022:\u0022NetworkMonitoring\u0022},{\u0022displayname\u0022:\u0022Container Monitoring Solution\u0022,\u0022enabled\u0022:false,\u0022name\u0022:\u0022Containers\u0022},{\u0022displayname\u0022:\u0022Container Insights\u0022,\u0022enabled\u0022:false,\u0022name\u0022:\u0022ContainerInsights\u0022},{\u0022displayname\u0022:\u0022Service Map\u0022,\u0022enabled\u0022:false,\u0022name\u0022:\u0022ServiceMap\u0022},{\u0022displayname\u0022:\u0022Azure Networking Analytics (Deprecated)\u0022,\u0022enabled\u0022:false,\u0022name\u0022:\u0022AzureNetworking\u0022},{\u0022displayname\u0022:\u0022AD Replication Status\u0022,\u0022enabled\u0022:false,\u0022name\u0022:\u0022ADReplication\u0022},{\u0022displayname\u0022:\u0022Office 365 (Preview)\u0022,\u0022enabled\u0022:false,\u0022name\u0022:\u0022Office365\u0022},{\u0022displayname\u0022:\u0022Upgrade Readiness\u0022,\u0022enabled\u0022:false,\u0022name\u0022:\u0022CompatibilityAssessment\u0022},{\u0022displayname\u0022:\u0022Key Vault (Deprecated)\u0022,\u0022enabled\u0022:false,\u0022name\u0022:\u0022KeyVault\u0022},{\u0022displayname\u0022:\u0022Service Fabric\u0022,\u0022enabled\u0022:false,\u0022name\u0022:\u0022ServiceFabric\u0022},{\u0022displayname\u0022:\u0022DNS Analytics (Preview)\u0022,\u0022enabled\u0022:false,\u0022name\u0022:\u0022DnsAnalytics\u0022},{\u0022displayname\u0022:\u0022Application Insights (Preview)\u0022,\u0022enabled\u0022:false,\u0022name\u0022:\u0022ApplicationInsights\u0022},{\u0022displayname\u0022:\u0022Wire Data 2.0\u0022,\u0022enabled\u0022:false,\u0022name\u0022:\u0022WireData2\u0022},{\u0022displayname\u0022:\u0022Update Compliance\u0022,\u0022enabled\u0022:false,\u0022name\u0022:\u0022WaaSUpdateInsights\u0022},{\u0022displayname\u0022:\u0022Agent Health \u0022,\u0022enabled\u0022:false,\u0022name\u0022:\u0022AgentHealthAssessment\u0022},{\u0022displayname\u0022:\u0022Activity Log Analytics\u0022,\u0022enabled\u0022:false,\u0022name\u0022:\u0022AzureActivity\u0022},{\u0022displayname\u0022:\u0022HDInsight HBase Monitoring (Preview)\u0022,\u0022enabled\u0022:false,\u0022name\u0022:\u0022HDInsight\u0022},{\u0022displayname\u0022:\u0022HDInsight Kafka Monitoring\u0022,\u0022enabled\u0022:false,\u0022name\u0022:\u0022HDInsightKafka\u0022},{\u0022displayname\u0022:\u0022HDInsight Spark Monitoring\u0022,\u0022enabled\u0022:false,\u0022name\u0022:\u0022HDInsightSpark\u0022},{\u0022displayname\u0022:\u0022HDInsight Hadoop Monitoring\u0022,\u0022enabled\u0022:false,\u0022name\u0022:\u0022HDInsightHadoop\u0022},{\u0022displayname\u0022:\u0022Azure CDN Core Analytics\u0022,\u0022enabled\u0022:false,\u0022name\u0022:\u0022AzureCdnCoreAnalytics\u0022},{\u0022displayname\u0022:\u0022HDInsight Storm Monitoring\u0022,\u0022enabled\u0022:false,\u0022name\u0022:\u0022HDInsightStorm\u0022},{\u0022displayname\u0022:\u0022HDInsight InteractiveQuery Monitoring\u0022,\u0022enabled\u0022:false,\u0022name\u0022:\u0022HDInsightInteractiveQuery\u0022},{\u0022displayname\u0022:\u0022VMware (Preview)\u0022,\u0022enabled\u0022:false,\u0022name\u0022:\u0022VMware\u0022},{\u0022displayname\u0022:\u0022Security Center Free \u2013 for Azure Resources only\u0022,\u0022enabled\u0022:false,\u0022name\u0022:\u0022SecurityCenterFree\u0022},{\u0022displayname\u0022:\u0022Logic Apps Management\u0022,\u0022enabled\u0022:false,\u0022name\u0022:\u0022LogicAppsManagement\u0022},{\u0022displayname\u0022:\u0022Logic Apps B2B\u0022,\u0022enabled\u0022:false,\u0022name\u0022:\u0022LogicAppB2B\u0022},{\u0022displayname\u0022:\u0022Azure SQL Analytics (Preview)\u0022,\u0022enabled\u0022:false,\u0022name\u0022:\u0022AzureSQLAnalytics\u0022},{\u0022displayname\u0022:\u0022Key Vault Analytics\u0022,\u0022enabled\u0022:false,\u0022name\u0022:\u0022KeyVaultAnalytics\u0022},{\u0022displayname\u0022:\u0022Azure Network Security Group Analytics\u0022,\u0022enabled\u0022:false,\u0022name\u0022:\u0022AzureNSGAnalytics\u0022},{\u0022displayname\u0022:\u0022Azure Application Gateway Analytics\u0022,\u0022enabled\u0022:false,\u0022name\u0022:\u0022AzureAppGatewayAnalytics\u0022},{\u0022displayname\u0022:\u0022Device Health (Preview)\u0022,\u0022enabled\u0022:false,\u0022name\u0022:\u0022DeviceHealthProd\u0022},{\u0022displayname\u0022:\u0022Windows Defender ATP\u0022,\u0022enabled\u0022:false,\u0022name\u0022:\u0022WindowsDefenderATP\u0022},{\u0022displayname\u0022:\u0022Stable Windows Defender ATP\u0022,\u0022enabled\u0022:false,\u0022name\u0022:\u0022WindowsDefenderATPStable\u0022},{\u0022displayname\u0022:\u0022Infrastructure Insights\u0022,\u0022enabled\u0022:false,\u0022name\u0022:\u0022InfrastructureInsights\u0022},{\u0022displayname\u0022:\u0022ProcessInvestigator\u0022,\u0022enabled\u0022:false,\u0022name\u0022:\u0022ProcessInvestigator\u0022},{\u0022displayname\u0022:\u0022Microsoft 365 Analytics\u0022,\u0022enabled\u0022:false,\u0022name\u0022:\u0022Microsoft365Analytics\u0022},{\u0022displayname\u0022:\u0022Azure Site Recovery Analytics\u0022,\u0022enabled\u0022:false,\u0022name\u0022:\u0022ASRAnalytics\u0022},{\u0022displayname\u0022:\u0022Security Insights (Private Preview)\u0022,\u0022enabled\u0022:false,\u0022name\u0022:\u0022AzureSentinelPrivatePreview\u0022},{\u0022displayname\u0022:\u0022AzureSentinel DSRE\u0022,\u0022enabled\u0022:false,\u0022name\u0022:\u0022AzureSentinelDSRE\u0022},{\u0022displayname\u0022:\u0022Security Insights\u0022,\u0022enabled\u0022:false,\u0022name\u0022:\u0022SecurityInsights\u0022},{\u0022displayname\u0022:\u0022Security Center Network Traffic\u0022,\u0022enabled\u0022:false,\u0022name\u0022:\u0022SecurityCenterNetworkTraffic\u0022},{\u0022displayname\u0022:\u0022Windows Firewall\u0022,\u0022enabled\u0022:false,\u0022name\u0022:\u0022WindowsFirewall\u0022},{\u0022displayname\u0022:\u0022Windows Event Forwarding\u0022,\u0022enabled\u0022:false,\u0022name\u0022:\u0022WindowsEventForwarding\u0022},{\u0022displayname\u0022:\u0022Internal Windows Event\u0022,\u0022enabled\u0022:false,\u0022name\u0022:\u0022InternalWindowsEvent\u0022},{\u0022displayname\u0022:\u0022Customized Windows Events Filtering\u0022,\u0022enabled\u0022:false,\u0022name\u0022:\u0022CustomizedWindowsEventsFiltering\u0022},{\u0022displayname\u0022:\u0022WEF Internal Uat\u0022,\u0022enabled\u0022:false,\u0022name\u0022:\u0022WEFInternalUat\u0022},{\u0022displayname\u0022:\u0022WEF Internal\u0022,\u0022enabled\u0022:false,\u0022name\u0022:\u0022WEFInternal\u0022},{\u0022displayname\u0022:\u0022WEF_10x\u0022,\u0022enabled\u0022:false,\u0022name\u0022:\u0022WEF_10x\u0022},{\u0022displayname\u0022:\u0022WEF_10xDSRE\u0022,\u0022enabled\u0022:false,\u0022name\u0022:\u0022WEF_10xDSRE\u0022},{\u0022displayname\u0022:\u0022DHCPActivity\u0022,\u0022enabled\u0022:false,\u0022name\u0022:\u0022DHCPActivity\u0022},{\u0022displayname\u0022:\u0022Azure Data Factory Analytics (Preview)\u0022,\u0022enabled\u0022:false,\u0022name\u0022:\u0022AzureDataFactoryAnalytics\u0022},{\u0022displayname\u0022:\u0022Azure Security of Things solution\u0022,\u0022enabled\u0022:false,\u0022name\u0022:\u0022AzureSecurityOfThings\u0022},{\u0022displayname\u0022:\u0022SQL Vulnerability Assessment\u0022,\u0022enabled\u0022:false,\u0022name\u0022:\u0022SQLVulnerabilityAssessment\u0022},{\u0022displayname\u0022:\u0022SQL Advanced Threat Protection\u0022,\u0022enabled\u0022:false,\u0022name\u0022:\u0022SQLAdvancedThreatProtection\u0022},{\u0022displayname\u0022:\u0022Azure Monitor - VM Insights\u0022,\u0022enabled\u0022:false,\u0022name\u0022:\u0022VMInsights\u0022},{\u0022displayname\u0022:\u0022WinLog\u0022,\u0022enabled\u0022:false,\u0022name\u0022:\u0022WinLog\u0022},{\u0022displayname\u0022:\u0022NetFlow\u0022,\u0022enabled\u0022:false,\u0022name\u0022:\u0022NetFlow\u0022}]" - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oiintelliagencepackpeY9An/intelligencePacks/ChangeTracking/Enable?api-version=2020-08-01", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "api-supported-versions": "2015-03-20, 2020-08-01", - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Thu, 03 Nov 2022 08:01:28 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T080129Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oiintelliagencepackpeY9An/intelligencePacks/ChangeTracking/Disable?api-version=2020-08-01", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "api-supported-versions": "2015-03-20, 2020-08-01", - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Thu, 03 Nov 2022 08:01:29 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T080130Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Thu, 03 Nov 2022 08:01:30 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQyMjktV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14993", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T080131Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": { - "recordingRandomSeed": "1667460681" - } -} diff --git a/sdk/resourcemanager/operationalinsights/armoperationalinsights/testdata/recordings/TestLinkedServicesTestSuite.json b/sdk/resourcemanager/operationalinsights/armoperationalinsights/testdata/recordings/TestLinkedServicesTestSuite.json deleted file mode 100644 index ca95be561838..000000000000 --- a/sdk/resourcemanager/operationalinsights/armoperationalinsights/testdata/recordings/TestLinkedServicesTestSuite.json +++ /dev/null @@ -1,45067 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:01:32 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1186", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T080133Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "westus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oilinkedservicepeY9An?api-version=2021-12-01-preview", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "84", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus", - "properties": { - "retentionInDays": 30, - "sku": { - "name": "PerGB2018" - } - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "api-supported-versions": "2021-12-01-preview", - "Cache-Control": "no-cache", - "Content-Length": "847", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:01:35 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oilinkedservicepeY9An?api-version=2021-12-01-preview", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1185", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T080136Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "properties": { - "customerId": "00000000-0000-0000-0000-000000000000", - "provisioningState": "Creating", - "sku": { - "name": "PerGB2018", - "lastSkuUpdate": "2022-11-03T08:01:34.7686374Z" - }, - "retentionInDays": 30, - "features": { - "legacy": 0, - "searchVersion": 1, - "enableLogAccessUsingOnlyResourcePermissions": true - }, - "workspaceCapping": { - "dailyQuotaGb": -1.0, - "quotaNextResetTime": "2022-11-04T06:00:00Z", - "dataIngestionStatus": "RespectQuota" - }, - "publicNetworkAccessForIngestion": "Enabled", - "publicNetworkAccessForQuery": "Enabled", - "createdDate": "2022-11-03T08:01:34.7686374Z", - "modifiedDate": "2022-11-03T08:01:34.7686374Z" - }, - "location": "westus", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oilinkedservicepeY9An", - "name": "oilinkedservicepeY9An", - "type": "Microsoft.OperationalInsights/workspaces" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oilinkedservicepeY9An?api-version=2021-12-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "api-supported-versions": "2021-12-01-preview", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:01:36 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11926", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T080136Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "properties": { - "customerId": "00000000-0000-0000-0000-000000000000", - "provisioningState": "Succeeded", - "sku": { - "name": "PerGB2018", - "lastSkuUpdate": "2022-11-03T08:01:34.7686374Z" - }, - "retentionInDays": 30, - "features": { - "legacy": 0, - "searchVersion": 1, - "enableLogAccessUsingOnlyResourcePermissions": true - }, - "workspaceCapping": { - "dailyQuotaGb": -1.0, - "quotaNextResetTime": "2022-11-04T06:00:00Z", - "dataIngestionStatus": "RespectQuota" - }, - "publicNetworkAccessForIngestion": "Enabled", - "publicNetworkAccessForQuery": "Enabled", - "createdDate": "2022-11-03T08:01:34.7686374Z", - "modifiedDate": "2022-11-03T08:01:34.7686374Z" - }, - "location": "westus", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oilinkedservicepeY9An", - "name": "oilinkedservicepeY9An", - "type": "Microsoft.OperationalInsights/workspaces" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/clusters/linkedservicecluserpeY9An?api-version=2021-06-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "111", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": { - "identity": { - "type": "SystemAssigned" - }, - "location": "westus", - "sku": { - "capacity": 1000, - "name": "CapacityReservation" - } - }, - "StatusCode": 202, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "api-supported-versions": "2020-08-01, 2020-10-01, 2021-06-01", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Thu, 03 Nov 2022 08:01:38 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/clusters/linkedservicecluserpeY9An/operationresults/00000000-0000-0000-0000-000000000000?api-version=2021-06-01", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Retry-After": "20", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1184", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T080139Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:01:58 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11925", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T080159Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T08:01:39.4299044Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:02:29 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11924", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T080230Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T08:01:39.4299044Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:03:00 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11923", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T080300Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T08:01:39.4299044Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:03:30 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11922", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T080330Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T08:01:39.4299044Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:04:00 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11921", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T080401Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T08:01:39.4299044Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:04:30 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11920", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T080431Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T08:01:39.4299044Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:05:01 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11919", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T080501Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T08:01:39.4299044Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:05:32 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11918", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T080532Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T08:01:39.4299044Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:06:02 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11917", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T080603Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T08:01:39.4299044Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:06:33 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11916", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T080633Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T08:01:39.4299044Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:07:03 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11915", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T080703Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T08:01:39.4299044Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:07:33 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11914", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T080734Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T08:01:39.4299044Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:08:03 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11913", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T080804Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T08:01:39.4299044Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:08:34 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11912", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T080834Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T08:01:39.4299044Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:09:04 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11911", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T080904Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T08:01:39.4299044Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:09:34 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11910", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T080935Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T08:01:39.4299044Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:10:05 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11909", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T081005Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T08:01:39.4299044Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:10:36 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11908", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T081036Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T08:01:39.4299044Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:11:06 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11907", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T081106Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T08:01:39.4299044Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:11:36 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11906", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T081137Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T08:01:39.4299044Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:12:07 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11905", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T081207Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T08:01:39.4299044Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:12:37 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11904", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T081238Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T08:01:39.4299044Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:13:07 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11903", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T081308Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T08:01:39.4299044Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:13:38 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11902", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T081338Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T08:01:39.4299044Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:14:08 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11901", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T081409Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T08:01:39.4299044Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:14:38 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11900", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T081439Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T08:01:39.4299044Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:15:09 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11899", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T081509Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T08:01:39.4299044Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:15:39 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11898", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T081539Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T08:01:39.4299044Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:16:10 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11897", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T081610Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T08:01:39.4299044Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:16:40 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11896", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T081641Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T08:01:39.4299044Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:17:10 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11895", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T081711Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T08:01:39.4299044Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:17:41 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11894", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T081741Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T08:01:39.4299044Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:18:11 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11893", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T081812Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T08:01:39.4299044Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:18:42 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11892", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T081842Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T08:01:39.4299044Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:19:12 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11891", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T081912Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T08:01:39.4299044Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:19:42 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11890", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T081943Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T08:01:39.4299044Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:20:12 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11889", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T082013Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T08:01:39.4299044Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:20:42 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11888", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T082043Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T08:01:39.4299044Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:21:14 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11887", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T082114Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T08:01:39.4299044Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:21:44 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11886", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T082145Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T08:01:39.4299044Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:22:14 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11885", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T082215Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T08:01:39.4299044Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:22:45 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11884", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T082245Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T08:01:39.4299044Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:23:15 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11883", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T082316Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T08:01:39.4299044Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:23:46 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11882", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T082346Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T08:01:39.4299044Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:24:16 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11881", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T082416Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T08:01:39.4299044Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:24:46 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11880", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T082447Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T08:01:39.4299044Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:25:16 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11879", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T082517Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T08:01:39.4299044Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:25:47 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11878", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T082547Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T08:01:39.4299044Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:26:18 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11877", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T082618Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T08:01:39.4299044Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:26:48 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11876", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T082648Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "Succeeded", - "startTime": "2022-11-03T08:01:39.4299044Z", - "endTime": "2022-11-03T08:26:45.0308893Z", - "properties": {} - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/clusters/linkedservicecluserpeY9An?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "api-supported-versions": "2020-08-01, 2020-10-01, 2021-06-01", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:26:48 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11875", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T082649Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "sku": { - "name": "CapacityReservation", - "capacity": 1000 - }, - "identity": { - "type": "SystemAssigned", - "tenantId": "00000000-0000-0000-0000-000000000000", - "principalId": "00000000-0000-0000-0000-000000000000" - }, - "properties": { - "provisioningState": "Succeeded", - "clusterId": "00000000-0000-0000-0000-000000000000", - "billingType": "Cluster", - "lastModifiedDate": "Thu, 03 Nov 2022 08:01:39 GMT", - "createdDate": "Thu, 03 Nov 2022 08:01:39 GMT", - "isDoubleEncryptionEnabled": true, - "isAvailabilityZonesEnabled": false, - "capacityReservationProperties": { - "lastSkuUpdate": "Thu, 03 Nov 2022 08:01:39 GMT", - "minCapacity": 500 - }, - "associatedWorkspaces": [] - }, - "location": "westus", - "tags": {}, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/clusters/linkedservicecluserpeY9An", - "name": "linkedservicecluserpeY9An", - "type": "Microsoft.OperationalInsights/clusters" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oilinkedservicepeY9An/availableServiceTiers?api-version=2020-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:26:49 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11874", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T082649Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": "[{\u0022serviceTier\u0022:\u0022PerGB2018\u0022,\u0022enabled\u0022:true,\u0022minimumRetention\u0022:30,\u0022maximumRetention\u0022:730,\u0022defaultRetention\u0022:30},{\u0022serviceTier\u0022:\u0022CapacityReservation\u0022,\u0022enabled\u0022:true,\u0022minimumRetention\u0022:30,\u0022maximumRetention\u0022:730,\u0022defaultRetention\u0022:31,\u0022lastSkuUpdate\u0022:\u00222022-11-03T08:01:34.7686374Z\u0022}]" - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oilinkedservicepeY9An/linkedServices/Cluster?api-version=2020-08-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "199", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "writeAccessResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/clusters/linkedservicecluserpeY9An" - } - }, - "StatusCode": 202, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "api-supported-versions": "2020-08-01", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Thu, 03 Nov 2022 08:26:50 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oilinkedservicepeY9An/linkedservices/Cluster/operationresults/00000000-0000-0000-0000-000000000000?api-version=2020-08-01", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Retry-After": "20", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1183", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T082650Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:27:10 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11873", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T082711Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T08:26:50.4985108Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:27:40 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11872", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T082741Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T08:26:50.4985108Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:28:11 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11871", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T082811Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T08:26:50.4985108Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:28:41 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11870", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T082841Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T08:26:50.4985108Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:29:11 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11869", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T082912Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T08:26:50.4985108Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:29:42 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11868", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T082942Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T08:26:50.4985108Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:30:12 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11867", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T083012Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T08:26:50.4985108Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:30:42 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11866", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T083043Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T08:26:50.4985108Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:31:12 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11865", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T083113Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T08:26:50.4985108Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:31:43 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11864", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T083143Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T08:26:50.4985108Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:32:14 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11863", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T083214Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "Succeeded", - "startTime": "2022-11-03T08:26:50.4985108Z", - "endTime": "2022-11-03T08:31:52.5543144Z", - "properties": {} - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oilinkedservicepeY9An/linkedServices/Cluster?api-version=2020-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "api-supported-versions": "2020-08-01", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:32:14 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11862", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T083214Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "properties": { - "writeAccessResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/clusters/linkedservicecluserpeY9An", - "provisioningState": "Succeeded" - }, - "location": "westus", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oilinkedservicepeY9An/linkedservices/Cluster", - "name": "Cluster", - "type": "Microsoft.OperationalInsights/workspaces/linkedservices" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oilinkedservicepeY9An/linkedServices?api-version=2020-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "api-supported-versions": "2020-08-01", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:32:15 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11861", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T083215Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "value": [ - { - "properties": { - "writeAccessResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/clusters/linkedservicecluserpeY9An", - "provisioningState": "Succeeded" - }, - "location": "westus", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oilinkedservicepeY9An/linkedservices/Cluster", - "name": "Cluster", - "type": "Microsoft.OperationalInsights/workspaces/linkedservices" - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oilinkedservicepeY9An/linkedServices/Cluster?api-version=2020-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "api-supported-versions": "2020-08-01", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:32:15 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11860", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T083215Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "properties": { - "writeAccessResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/clusters/linkedservicecluserpeY9An", - "provisioningState": "Succeeded" - }, - "location": "westus", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oilinkedservicepeY9An/linkedservices/Cluster", - "name": "Cluster", - "type": "Microsoft.OperationalInsights/workspaces/linkedservices" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oilinkedservicepeY9An/linkedServices/Cluster?api-version=2020-08-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "api-supported-versions": "2020-08-01", - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Thu, 03 Nov 2022 08:32:16 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oilinkedservicepeY9An/linkedservices/Cluster/operationresults/00000000-0000-0000-0000-000000000000?api-version=2020-08-01", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Retry-After": "20", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14992", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T083216Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:32:36 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11859", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T083236Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T08:32:16.4311438Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:33:06 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11858", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T083307Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T08:32:16.4311438Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:33:36 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11857", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T083337Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T08:32:16.4311438Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:34:07 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11856", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T083407Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T08:32:16.4311438Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:34:38 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11855", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T083438Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T08:32:16.4311438Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:35:08 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11861", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T083508Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T08:32:16.4311438Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:35:38 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11860", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T083538Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T08:32:16.4311438Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:36:08 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11859", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T083609Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T08:32:16.4311438Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:36:38 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11858", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T083639Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T08:32:16.4311438Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:37:09 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11857", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T083710Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-11-03T08:32:16.4311438Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000?api-version=2015-11-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:37:40 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11856", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T083740Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/locations/westus/operationstatuses/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "Succeeded", - "startTime": "2022-11-03T08:32:16.4311438Z", - "endTime": "2022-11-03T08:37:17.5838873Z", - "properties": {} - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oilinkedservicepeY9An/managementGroups?api-version=2020-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:37:40 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11855", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T083741Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "value": [] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oilinkedservicepeY9An/schema?api-version=2020-08-01", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:37:41 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11854", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T083742Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "__metadata": { - "schema": { - "name": "CloudOps", - "version": 2 - }, - "resultType": "schema", - "requestTime": 154 - }, - "value": [ - { - "name": "TenantId", - "displayName": "TenantId", - "type": "Guid", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AACAudit", - "AACHttpRequest", - "AADB2CRequestLogs", - "AADDomainServicesAccountLogon", - "AADDomainServicesAccountManagement", - "AADDomainServicesDirectoryServiceAccess", - "AADDomainServicesLogonLogoff", - "AADDomainServicesPolicyChange", - "AADDomainServicesPrivilegeUse", - "AADDomainServicesSystemSecurity", - "AADManagedIdentitySignInLogs", - "AADNonInteractiveUserSignInLogs", - "AADProvisioningLogs", - "AADRiskyServicePrincipals", - "AADRiskyUsers", - "AADServicePrincipalRiskEvents", - "AADServicePrincipalSignInLogs", - "AADUserRiskEvents", - "ABSBotRequests", - "ABSChannelToBotRequests", - "ABSDependenciesRequests", - "ACICollaborationAudit", - "ACRConnectedClientList", - "ACSAuthIncomingOperations", - "ACSBillingUsage", - "ACSCallDiagnostics", - "ACSCallRecordingSummary", - "ACSCallSummary", - "ACSChatIncomingOperations", - "ACSEmailSendMailOperational", - "ACSEmailStatusUpdateOperational", - "ACSEmailUserEngagementOperational", - "ACSNetworkTraversalDiagnostics", - "ACSNetworkTraversalIncomingOperations", - "ACSRoomsIncomingOperations", - "ACSSMSIncomingOperations", - "AddonAzureBackupAlerts", - "AddonAzureBackupJobs", - "AddonAzureBackupPolicy", - "AddonAzureBackupProtectedInstance", - "AddonAzureBackupStorage", - "ADFActivityRun", - "ADFAirflowSchedulerLogs", - "ADFAirflowTaskLogs", - "ADFAirflowWebLogs", - "ADFAirflowWorkerLogs", - "ADFPipelineRun", - "ADFSandboxActivityRun", - "ADFSandboxPipelineRun", - "ADFSSignInLogs", - "ADFSSISIntegrationRuntimeLogs", - "ADFSSISPackageEventMessageContext", - "ADFSSISPackageEventMessages", - "ADFSSISPackageExecutableStatistics", - "ADFSSISPackageExecutionComponentPhases", - "ADFSSISPackageExecutionDataStatistics", - "ADFTriggerRun", - "ADPAudit", - "ADPDiagnostics", - "ADPRequests", - "ADTDataHistoryOperation", - "ADTDigitalTwinsOperation", - "ADTEventRoutesOperation", - "ADTModelsOperation", - "ADTQueryOperation", - "ADXCommand", - "ADXIngestionBatching", - "ADXJournal", - "ADXQuery", - "ADXTableDetails", - "ADXTableUsageStatistics", - "AegDataPlaneRequests", - "AegDeliveryFailureLogs", - "AegPublishFailureLogs", - "AEWAuditLogs", - "AEWComputePipelinesLogs", - "AgriFoodApplicationAuditLogs", - "AgriFoodFarmManagementLogs", - "AgriFoodFarmOperationLogs", - "AgriFoodInsightLogs", - "AgriFoodJobProcessedLogs", - "AgriFoodModelInferenceLogs", - "AgriFoodProviderAuthLogs", - "AgriFoodSatelliteLogs", - "AgriFoodWeatherLogs", - "AGSGrafanaLoginEvents", - "AirflowDagProcessingLogs", - "Alert", - "AmlComputeClusterEvent", - "AmlComputeClusterNodeEvent", - "AmlComputeCpuGpuUtilization", - "AmlComputeInstanceEvent", - "AmlComputeJobEvent", - "AmlDataLabelEvent", - "AmlDataSetEvent", - "AmlDataStoreEvent", - "AmlDeploymentEvent", - "AmlEnvironmentEvent", - "AmlInferencingEvent", - "AmlModelsEvent", - "AmlOnlineEndpointConsoleLog", - "AmlOnlineEndpointEventLog", - "AmlOnlineEndpointTrafficLog", - "AmlPipelineEvent", - "AmlRunEvent", - "AmlRunStatusChangedEvent", - "ANFFileAccess", - "ApiManagementGatewayLogs", - "AppAvailabilityResults", - "AppBrowserTimings", - "AppCenterError", - "AppDependencies", - "AppEvents", - "AppExceptions", - "AppMetrics", - "AppPageViews", - "AppPerformanceCounters", - "AppPlatformBuildLogs", - "AppPlatformContainerEventLogs", - "AppPlatformIngressLogs", - "AppPlatformLogsforSpring", - "AppPlatformSystemLogs", - "AppRequests", - "AppServiceAntivirusScanAuditLogs", - "AppServiceAppLogs", - "AppServiceAuditLogs", - "AppServiceConsoleLogs", - "AppServiceEnvironmentPlatformLogs", - "AppServiceFileAuditLogs", - "AppServiceHTTPLogs", - "AppServiceIPSecAuditLogs", - "AppServicePlatformLogs", - "AppSystemEvents", - "AppTraces", - "ATCExpressRouteCircuitIpfix", - "AuditLogs", - "AUIEventsAudit", - "AUIEventsOperational", - "AutoscaleEvaluationsLog", - "AutoscaleScaleActionsLog", - "AVSSyslog", - "AZFWApplicationRule", - "AZFWApplicationRuleAggregation", - "AZFWDnsQuery", - "AZFWIdpsSignature", - "AZFWInternalFqdnResolutionFailure", - "AZFWNatRule", - "AZFWNatRuleAggregation", - "AZFWNetworkRule", - "AZFWNetworkRuleAggregation", - "AZFWThreatIntel", - "AzureActivity", - "AzureActivityV2", - "AzureAttestationDiagnostics", - "AzureDevOpsAuditing", - "AzureDiagnostics", - "AzureLoadTestingOperation", - "AzureMetrics", - "BaiClusterEvent", - "BaiClusterNodeEvent", - "BaiJobEvent", - "BlockchainApplicationLog", - "CassandraAudit", - "CassandraLogs", - "CDBCassandraRequests", - "CDBControlPlaneRequests", - "CDBDataPlaneRequests", - "CDBGremlinRequests", - "CDBMongoRequests", - "CDBPartitionKeyRUConsumption", - "CDBPartitionKeyStatistics", - "CDBQueryRuntimeStatistics", - "CIEventsAudit", - "CIEventsOperational", - "ComputerGroup", - "ContainerAppConsoleLogs", - "ContainerAppSystemLogs", - "ContainerImageInventory", - "ContainerInventory", - "ContainerLog", - "ContainerNodeInventory", - "ContainerRegistryLoginEvents", - "ContainerRegistryRepositoryEvents", - "ContainerServiceLog", - "CoreAzureBackup", - "DatabricksAccounts", - "DatabricksClusters", - "DatabricksDatabricksSQL", - "DatabricksDBFS", - "DatabricksDeltaPipelines", - "DatabricksFeatureStore", - "DatabricksGenie", - "DatabricksGitCredentials", - "DatabricksGlobalInitScripts", - "DatabricksIAMRole", - "DatabricksInstancePools", - "DatabricksJobs", - "DatabricksMLflowAcledArtifact", - "DatabricksMLflowExperiment", - "DatabricksModelRegistry", - "DatabricksNotebook", - "DatabricksRemoteHistoryService", - "DatabricksRepos", - "DatabricksSecrets", - "DatabricksSQL", - "DatabricksSQLPermissions", - "DatabricksSSH", - "DatabricksTables", - "DatabricksUnityCatalog", - "DatabricksWebTerminal", - "DatabricksWorkspace", - "DSMAzureBlobStorageLogs", - "DSMDataClassificationLogs", - "DSMDataLabelingLogs", - "ETWEvent", - "Event", - "FailedIngestion", - "FunctionAppLogs", - "HDInsightAmbariClusterAlerts", - "HDInsightAmbariSystemMetrics", - "HDInsightGatewayAuditLogs", - "HDInsightHadoopAndYarnLogs", - "HDInsightHadoopAndYarnMetrics", - "HDInsightHBaseLogs", - "HDInsightHBaseMetrics", - "HDInsightHiveAndLLAPLogs", - "HDInsightHiveAndLLAPMetrics", - "HDInsightHiveQueryAppStats", - "HDInsightHiveTezAppStats", - "HDInsightJupyterNotebookEvents", - "HDInsightKafkaLogs", - "HDInsightKafkaMetrics", - "HDInsightOozieLogs", - "HDInsightRangerAuditLogs", - "HDInsightSecurityLogs", - "HDInsightSparkApplicationEvents", - "HDInsightSparkBlockManagerEvents", - "HDInsightSparkEnvironmentEvents", - "HDInsightSparkExecutorEvents", - "HDInsightSparkExtraEvents", - "HDInsightSparkJobEvents", - "HDInsightSparkLogs", - "HDInsightSparkSQLExecutionEvents", - "HDInsightSparkStageEvents", - "HDInsightSparkStageTaskAccumulables", - "HDInsightSparkTaskEvents", - "HDInsightStormLogs", - "HDInsightStormMetrics", - "HDInsightStormTopologyMetrics", - "Heartbeat", - "InsightsMetrics", - "IntuneAuditLogs", - "IntuneDeviceComplianceOrg", - "IntuneDevices", - "IntuneOperationalLogs", - "IoTHubDistributedTracing", - "KubeEvents", - "KubeHealth", - "KubeMonAgentEvents", - "KubeNodeInventory", - "KubePodInventory", - "KubeServices", - "LAQueryLogs", - "MCCEventLogs", - "MCVPAuditLogs", - "MCVPOperationLogs", - "MicrosoftAzureBastionAuditLogs", - "MicrosoftDataShareReceivedSnapshotLog", - "MicrosoftDataShareSentSnapshotLog", - "MicrosoftDynamicsTelemetryPerformanceLogs", - "MicrosoftDynamicsTelemetrySystemMetricsLogs", - "MicrosoftHealthcareApisAuditLogs", - "NetworkAccessTraffic", - "NSPAccessLogs", - "NWConnectionMonitorDestinationListenerResult", - "NWConnectionMonitorDNSResult", - "NWConnectionMonitorPathResult", - "NWConnectionMonitorTestResult", - "OEPAirFlowTask", - "OEPElasticOperator", - "OEPElasticsearch", - "OLPSupplyChainEntityOperations", - "OLPSupplyChainEvents", - "Operation", - "Perf", - "PFTitleAuditLogs", - "PowerBIAuditTenant", - "PowerBIDatasetsTenant", - "PowerBIDatasetsTenantPreview", - "PowerBIDatasetsWorkspace", - "PowerBIDatasetsWorkspacePreview", - "PowerBIReportUsageTenant", - "PowerBIReportUsageWorkspace", - "PurviewDataSensitivityLogs", - "PurviewScanStatusLogs", - "PurviewSecurityLogs", - "ResourceManagementPublicAccessLogs", - "ServiceFabricOperationalEvent", - "ServiceFabricReliableActorEvent", - "ServiceFabricReliableServiceEvent", - "SignalRServiceDiagnosticLogs", - "SigninLogs", - "SQLSecurityAuditEvents", - "StorageAntimalwareScanResults", - "StorageBlobLogs", - "StorageCacheOperationEvents", - "StorageCacheUpgradeEvents", - "StorageCacheWarningEvents", - "StorageFileLogs", - "StorageQueueLogs", - "StorageTableLogs", - "SucceededIngestion", - "SynapseBigDataPoolApplicationsEnded", - "SynapseBuiltinSqlPoolRequestsEnded", - "SynapseDXCommand", - "SynapseDXFailedIngestion", - "SynapseDXIngestionBatching", - "SynapseDXQuery", - "SynapseDXSucceededIngestion", - "SynapseDXTableDetails", - "SynapseDXTableUsageStatistics", - "SynapseGatewayApiRequests", - "SynapseGatewayEvents", - "SynapseIntegrationActivityRuns", - "SynapseIntegrationActivityRunsEnded", - "SynapseIntegrationPipelineRuns", - "SynapseIntegrationPipelineRunsEnded", - "SynapseIntegrationTriggerRuns", - "SynapseIntegrationTriggerRunsEnded", - "SynapseLinkEvent", - "SynapseRBACEvents", - "SynapseRbacOperations", - "SynapseScopePoolScopeJobsEnded", - "SynapseScopePoolScopeJobsStateChange", - "SynapseSqlPoolDmsWorkers", - "SynapseSqlPoolExecRequests", - "SynapseSqlPoolRequestSteps", - "SynapseSqlPoolSqlRequests", - "SynapseSqlPoolWaits", - "Syslog", - "TSIIngress", - "Usage", - "VIAudit", - "VIIndexing", - "VMBoundPort", - "VMComputer", - "VMConnection", - "VMProcess", - "W3CIISLog", - "WebPubSubConnectivity", - "WebPubSubHttpRequest", - "WebPubSubMessaging", - "WorkloadDiagnosticLogs", - "WVDAgentHealthStatus", - "WVDCheckpoints", - "WVDConnectionGraphicsDataPreview", - "WVDConnectionNetworkData", - "WVDConnections", - "WVDErrors", - "WVDFeeds", - "WVDHostRegistrations", - "WVDManagement", - "WVDSessionHostManagement" - ], - "extraction": null, - "common": false - }, - { - "name": "TimeGenerated", - "displayName": "TimeGenerated", - "type": "DateTime", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AACAudit", - "AACHttpRequest", - "AADB2CRequestLogs", - "AADDomainServicesAccountLogon", - "AADDomainServicesAccountManagement", - "AADDomainServicesDirectoryServiceAccess", - "AADDomainServicesLogonLogoff", - "AADDomainServicesPolicyChange", - "AADDomainServicesPrivilegeUse", - "AADDomainServicesSystemSecurity", - "AADManagedIdentitySignInLogs", - "AADNonInteractiveUserSignInLogs", - "AADProvisioningLogs", - "AADRiskyServicePrincipals", - "AADRiskyUsers", - "AADServicePrincipalRiskEvents", - "AADServicePrincipalSignInLogs", - "AADUserRiskEvents", - "ABSBotRequests", - "ABSChannelToBotRequests", - "ABSDependenciesRequests", - "ACICollaborationAudit", - "ACRConnectedClientList", - "ACSAuthIncomingOperations", - "ACSBillingUsage", - "ACSCallDiagnostics", - "ACSCallRecordingSummary", - "ACSCallSummary", - "ACSChatIncomingOperations", - "ACSEmailSendMailOperational", - "ACSEmailStatusUpdateOperational", - "ACSEmailUserEngagementOperational", - "ACSNetworkTraversalDiagnostics", - "ACSNetworkTraversalIncomingOperations", - "ACSRoomsIncomingOperations", - "ACSSMSIncomingOperations", - "AddonAzureBackupAlerts", - "AddonAzureBackupJobs", - "AddonAzureBackupPolicy", - "AddonAzureBackupProtectedInstance", - "AddonAzureBackupStorage", - "ADFActivityRun", - "ADFAirflowSchedulerLogs", - "ADFAirflowTaskLogs", - "ADFAirflowWebLogs", - "ADFAirflowWorkerLogs", - "ADFPipelineRun", - "ADFSandboxActivityRun", - "ADFSandboxPipelineRun", - "ADFSSignInLogs", - "ADFSSISIntegrationRuntimeLogs", - "ADFSSISPackageEventMessageContext", - "ADFSSISPackageEventMessages", - "ADFSSISPackageExecutableStatistics", - "ADFSSISPackageExecutionComponentPhases", - "ADFSSISPackageExecutionDataStatistics", - "ADFTriggerRun", - "ADPAudit", - "ADPDiagnostics", - "ADPRequests", - "ADTDataHistoryOperation", - "ADTDigitalTwinsOperation", - "ADTEventRoutesOperation", - "ADTModelsOperation", - "ADTQueryOperation", - "ADXCommand", - "ADXIngestionBatching", - "ADXJournal", - "ADXQuery", - "ADXTableDetails", - "ADXTableUsageStatistics", - "AegDataPlaneRequests", - "AegDeliveryFailureLogs", - "AegPublishFailureLogs", - "AEWAuditLogs", - "AEWComputePipelinesLogs", - "AgriFoodApplicationAuditLogs", - "AgriFoodFarmManagementLogs", - "AgriFoodFarmOperationLogs", - "AgriFoodInsightLogs", - "AgriFoodJobProcessedLogs", - "AgriFoodModelInferenceLogs", - "AgriFoodProviderAuthLogs", - "AgriFoodSatelliteLogs", - "AgriFoodWeatherLogs", - "AGSGrafanaLoginEvents", - "AirflowDagProcessingLogs", - "Alert", - "AmlComputeClusterEvent", - "AmlComputeClusterNodeEvent", - "AmlComputeCpuGpuUtilization", - "AmlComputeInstanceEvent", - "AmlComputeJobEvent", - "AmlDataLabelEvent", - "AmlDataSetEvent", - "AmlDataStoreEvent", - "AmlDeploymentEvent", - "AmlEnvironmentEvent", - "AmlInferencingEvent", - "AmlModelsEvent", - "AmlOnlineEndpointConsoleLog", - "AmlOnlineEndpointEventLog", - "AmlOnlineEndpointTrafficLog", - "AmlPipelineEvent", - "AmlRunEvent", - "AmlRunStatusChangedEvent", - "ANFFileAccess", - "ApiManagementGatewayLogs", - "AppAvailabilityResults", - "AppBrowserTimings", - "AppCenterError", - "AppDependencies", - "AppEvents", - "AppExceptions", - "AppMetrics", - "AppPageViews", - "AppPerformanceCounters", - "AppPlatformBuildLogs", - "AppPlatformContainerEventLogs", - "AppPlatformIngressLogs", - "AppPlatformLogsforSpring", - "AppPlatformSystemLogs", - "AppRequests", - "AppServiceAntivirusScanAuditLogs", - "AppServiceAppLogs", - "AppServiceAuditLogs", - "AppServiceConsoleLogs", - "AppServiceEnvironmentPlatformLogs", - "AppServiceFileAuditLogs", - "AppServiceHTTPLogs", - "AppServiceIPSecAuditLogs", - "AppServicePlatformLogs", - "AppSystemEvents", - "AppTraces", - "ATCExpressRouteCircuitIpfix", - "AuditLogs", - "AUIEventsAudit", - "AUIEventsOperational", - "AutoscaleEvaluationsLog", - "AutoscaleScaleActionsLog", - "AVSSyslog", - "AZFWApplicationRule", - "AZFWApplicationRuleAggregation", - "AZFWDnsQuery", - "AZFWIdpsSignature", - "AZFWInternalFqdnResolutionFailure", - "AZFWNatRule", - "AZFWNatRuleAggregation", - "AZFWNetworkRule", - "AZFWNetworkRuleAggregation", - "AZFWThreatIntel", - "AzureActivity", - "AzureActivityV2", - "AzureAttestationDiagnostics", - "AzureDevOpsAuditing", - "AzureDiagnostics", - "AzureLoadTestingOperation", - "AzureMetrics", - "BaiClusterEvent", - "BaiClusterNodeEvent", - "BaiJobEvent", - "BlockchainApplicationLog", - "CassandraAudit", - "CassandraLogs", - "CDBCassandraRequests", - "CDBControlPlaneRequests", - "CDBDataPlaneRequests", - "CDBGremlinRequests", - "CDBMongoRequests", - "CDBPartitionKeyRUConsumption", - "CDBPartitionKeyStatistics", - "CDBQueryRuntimeStatistics", - "CIEventsAudit", - "CIEventsOperational", - "ComputerGroup", - "ContainerAppConsoleLogs", - "ContainerAppSystemLogs", - "ContainerImageInventory", - "ContainerInventory", - "ContainerLog", - "ContainerNodeInventory", - "ContainerRegistryLoginEvents", - "ContainerRegistryRepositoryEvents", - "ContainerServiceLog", - "CoreAzureBackup", - "DatabricksAccounts", - "DatabricksClusters", - "DatabricksDatabricksSQL", - "DatabricksDBFS", - "DatabricksDeltaPipelines", - "DatabricksFeatureStore", - "DatabricksGenie", - "DatabricksGitCredentials", - "DatabricksGlobalInitScripts", - "DatabricksIAMRole", - "DatabricksInstancePools", - "DatabricksJobs", - "DatabricksMLflowAcledArtifact", - "DatabricksMLflowExperiment", - "DatabricksModelRegistry", - "DatabricksNotebook", - "DatabricksRemoteHistoryService", - "DatabricksRepos", - "DatabricksSecrets", - "DatabricksSQL", - "DatabricksSQLPermissions", - "DatabricksSSH", - "DatabricksTables", - "DatabricksUnityCatalog", - "DatabricksWebTerminal", - "DatabricksWorkspace", - "DSMAzureBlobStorageLogs", - "DSMDataClassificationLogs", - "DSMDataLabelingLogs", - "ETWEvent", - "Event", - "FailedIngestion", - "FunctionAppLogs", - "HDInsightAmbariClusterAlerts", - "HDInsightAmbariSystemMetrics", - "HDInsightGatewayAuditLogs", - "HDInsightHadoopAndYarnLogs", - "HDInsightHadoopAndYarnMetrics", - "HDInsightHBaseLogs", - "HDInsightHBaseMetrics", - "HDInsightHiveAndLLAPLogs", - "HDInsightHiveAndLLAPMetrics", - "HDInsightHiveQueryAppStats", - "HDInsightHiveTezAppStats", - "HDInsightJupyterNotebookEvents", - "HDInsightKafkaLogs", - "HDInsightKafkaMetrics", - "HDInsightOozieLogs", - "HDInsightRangerAuditLogs", - "HDInsightSecurityLogs", - "HDInsightSparkApplicationEvents", - "HDInsightSparkBlockManagerEvents", - "HDInsightSparkEnvironmentEvents", - "HDInsightSparkExecutorEvents", - "HDInsightSparkExtraEvents", - "HDInsightSparkJobEvents", - "HDInsightSparkLogs", - "HDInsightSparkSQLExecutionEvents", - "HDInsightSparkStageEvents", - "HDInsightSparkStageTaskAccumulables", - "HDInsightSparkTaskEvents", - "HDInsightStormLogs", - "HDInsightStormMetrics", - "HDInsightStormTopologyMetrics", - "Heartbeat", - "InsightsMetrics", - "IntuneAuditLogs", - "IntuneDeviceComplianceOrg", - "IntuneDevices", - "IntuneOperationalLogs", - "IoTHubDistributedTracing", - "KubeEvents", - "KubeHealth", - "KubeMonAgentEvents", - "KubeNodeInventory", - "KubePodInventory", - "KubeServices", - "LAQueryLogs", - "MCCEventLogs", - "MCVPAuditLogs", - "MCVPOperationLogs", - "MicrosoftAzureBastionAuditLogs", - "MicrosoftDataShareReceivedSnapshotLog", - "MicrosoftDataShareSentSnapshotLog", - "MicrosoftDynamicsTelemetryPerformanceLogs", - "MicrosoftDynamicsTelemetrySystemMetricsLogs", - "MicrosoftHealthcareApisAuditLogs", - "NetworkAccessTraffic", - "NSPAccessLogs", - "NWConnectionMonitorDestinationListenerResult", - "NWConnectionMonitorDNSResult", - "NWConnectionMonitorPathResult", - "NWConnectionMonitorTestResult", - "OEPAirFlowTask", - "OEPElasticOperator", - "OEPElasticsearch", - "OLPSupplyChainEntityOperations", - "OLPSupplyChainEvents", - "Operation", - "Perf", - "PFTitleAuditLogs", - "PowerBIAuditTenant", - "PowerBIDatasetsTenant", - "PowerBIDatasetsTenantPreview", - "PowerBIDatasetsWorkspace", - "PowerBIDatasetsWorkspacePreview", - "PowerBIReportUsageTenant", - "PowerBIReportUsageWorkspace", - "PurviewDataSensitivityLogs", - "PurviewScanStatusLogs", - "PurviewSecurityLogs", - "ResourceManagementPublicAccessLogs", - "ServiceFabricOperationalEvent", - "ServiceFabricReliableActorEvent", - "ServiceFabricReliableServiceEvent", - "SignalRServiceDiagnosticLogs", - "SigninLogs", - "SQLSecurityAuditEvents", - "StorageAntimalwareScanResults", - "StorageBlobLogs", - "StorageCacheOperationEvents", - "StorageCacheUpgradeEvents", - "StorageCacheWarningEvents", - "StorageFileLogs", - "StorageQueueLogs", - "StorageTableLogs", - "SucceededIngestion", - "SynapseBigDataPoolApplicationsEnded", - "SynapseBuiltinSqlPoolRequestsEnded", - "SynapseDXCommand", - "SynapseDXFailedIngestion", - "SynapseDXIngestionBatching", - "SynapseDXQuery", - "SynapseDXSucceededIngestion", - "SynapseDXTableDetails", - "SynapseDXTableUsageStatistics", - "SynapseGatewayApiRequests", - "SynapseGatewayEvents", - "SynapseIntegrationActivityRuns", - "SynapseIntegrationActivityRunsEnded", - "SynapseIntegrationPipelineRuns", - "SynapseIntegrationPipelineRunsEnded", - "SynapseIntegrationTriggerRuns", - "SynapseIntegrationTriggerRunsEnded", - "SynapseLinkEvent", - "SynapseRBACEvents", - "SynapseRbacOperations", - "SynapseScopePoolScopeJobsEnded", - "SynapseScopePoolScopeJobsStateChange", - "SynapseSqlPoolDmsWorkers", - "SynapseSqlPoolExecRequests", - "SynapseSqlPoolRequestSteps", - "SynapseSqlPoolSqlRequests", - "SynapseSqlPoolWaits", - "Syslog", - "TSIIngress", - "Usage", - "VIAudit", - "VIIndexing", - "VMBoundPort", - "VMComputer", - "VMConnection", - "VMProcess", - "W3CIISLog", - "WebPubSubConnectivity", - "WebPubSubHttpRequest", - "WebPubSubMessaging", - "WorkloadDiagnosticLogs", - "WVDAgentHealthStatus", - "WVDCheckpoints", - "WVDConnectionGraphicsDataPreview", - "WVDConnectionNetworkData", - "WVDConnections", - "WVDErrors", - "WVDFeeds", - "WVDHostRegistrations", - "WVDManagement", - "WVDSessionHostManagement" - ], - "extraction": null, - "common": false - }, - { - "name": "Category", - "displayName": "Category", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AACAudit", - "AACHttpRequest", - "AADDomainServicesAccountLogon", - "AADDomainServicesAccountManagement", - "AADDomainServicesDirectoryServiceAccess", - "AADDomainServicesLogonLogoff", - "AADDomainServicesPolicyChange", - "AADDomainServicesPrivilegeUse", - "AADDomainServicesSystemSecurity", - "AADManagedIdentitySignInLogs", - "AADNonInteractiveUserSignInLogs", - "AADProvisioningLogs", - "AADServicePrincipalSignInLogs", - "ABSBotRequests", - "ABSChannelToBotRequests", - "ABSDependenciesRequests", - "ACSAuthIncomingOperations", - "ACSBillingUsage", - "ACSCallDiagnostics", - "ACSCallSummary", - "ACSChatIncomingOperations", - "ACSEmailSendMailOperational", - "ACSEmailStatusUpdateOperational", - "ACSEmailUserEngagementOperational", - "ACSNetworkTraversalDiagnostics", - "ACSNetworkTraversalIncomingOperations", - "ACSSMSIncomingOperations", - "AddonAzureBackupAlerts", - "AddonAzureBackupJobs", - "AddonAzureBackupPolicy", - "AddonAzureBackupProtectedInstance", - "AddonAzureBackupStorage", - "ADFActivityRun", - "ADFAirflowSchedulerLogs", - "ADFAirflowTaskLogs", - "ADFAirflowWebLogs", - "ADFAirflowWorkerLogs", - "ADFPipelineRun", - "ADFSandboxActivityRun", - "ADFSandboxPipelineRun", - "ADFSSignInLogs", - "ADFSSISIntegrationRuntimeLogs", - "ADFSSISPackageEventMessageContext", - "ADFSSISPackageEventMessages", - "ADFSSISPackageExecutableStatistics", - "ADFSSISPackageExecutionComponentPhases", - "ADFSSISPackageExecutionDataStatistics", - "ADFTriggerRun", - "ADPDiagnostics", - "ADTDigitalTwinsOperation", - "ADTEventRoutesOperation", - "ADTModelsOperation", - "ADTQueryOperation", - "ADXCommand", - "ADXQuery", - "AegDeliveryFailureLogs", - "AegPublishFailureLogs", - "AEWAuditLogs", - "AgriFoodApplicationAuditLogs", - "AgriFoodFarmManagementLogs", - "AgriFoodFarmOperationLogs", - "AgriFoodInsightLogs", - "AgriFoodJobProcessedLogs", - "AgriFoodModelInferenceLogs", - "AgriFoodProviderAuthLogs", - "AgriFoodSatelliteLogs", - "AgriFoodWeatherLogs", - "AGSGrafanaLoginEvents", - "AirflowDagProcessingLogs", - "AmlComputeClusterEvent", - "AmlComputeClusterNodeEvent", - "AmlComputeJobEvent", - "ANFFileAccess", - "ApiManagementGatewayLogs", - "AppPerformanceCounters", - "AppPlatformLogsforSpring", - "AppPlatformSystemLogs", - "AppServiceAuditLogs", - "AppServiceEnvironmentPlatformLogs", - "AppServiceFileAuditLogs", - "AppServiceHTTPLogs", - "AuditLogs", - "AUIEventsAudit", - "AUIEventsOperational", - "AutoscaleEvaluationsLog", - "AutoscaleScaleActionsLog", - "AZFWIdpsSignature", - "AzureActivity", - "AzureDevOpsAuditing", - "AzureDiagnostics", - "AzureMetrics", - "BaiClusterEvent", - "BaiClusterNodeEvent", - "BaiJobEvent", - "BlockchainApplicationLog", - "CIEventsAudit", - "CIEventsOperational", - "ContainerRegistryLoginEvents", - "ContainerRegistryRepositoryEvents", - "CoreAzureBackup", - "DatabricksAccounts", - "DatabricksClusters", - "DatabricksDatabricksSQL", - "DatabricksDBFS", - "DatabricksDeltaPipelines", - "DatabricksFeatureStore", - "DatabricksGenie", - "DatabricksGitCredentials", - "DatabricksGlobalInitScripts", - "DatabricksIAMRole", - "DatabricksInstancePools", - "DatabricksJobs", - "DatabricksMLflowAcledArtifact", - "DatabricksMLflowExperiment", - "DatabricksModelRegistry", - "DatabricksNotebook", - "DatabricksRemoteHistoryService", - "DatabricksRepos", - "DatabricksSecrets", - "DatabricksSQL", - "DatabricksSQLPermissions", - "DatabricksSSH", - "DatabricksTables", - "DatabricksUnityCatalog", - "DatabricksWebTerminal", - "DatabricksWorkspace", - "DSMAzureBlobStorageLogs", - "FailedIngestion", - "FunctionAppLogs", - "Heartbeat", - "IntuneAuditLogs", - "IntuneOperationalLogs", - "IoTHubDistributedTracing", - "KubeMonAgentEvents", - "MicrosoftDataShareReceivedSnapshotLog", - "MicrosoftDataShareSentSnapshotLog", - "MicrosoftDynamicsTelemetryPerformanceLogs", - "MicrosoftDynamicsTelemetrySystemMetricsLogs", - "NSPAccessLogs", - "OEPAirFlowTask", - "OEPElasticOperator", - "OEPElasticsearch", - "PurviewScanStatusLogs", - "ResourceManagementPublicAccessLogs", - "SigninLogs", - "SQLSecurityAuditEvents", - "StorageBlobLogs", - "StorageFileLogs", - "StorageQueueLogs", - "StorageTableLogs", - "SynapseBigDataPoolApplicationsEnded", - "SynapseBuiltinSqlPoolRequestsEnded", - "SynapseDXCommand", - "SynapseDXQuery", - "SynapseGatewayApiRequests", - "SynapseGatewayEvents", - "SynapseIntegrationActivityRuns", - "SynapseIntegrationActivityRunsEnded", - "SynapseIntegrationPipelineRuns", - "SynapseIntegrationPipelineRunsEnded", - "SynapseIntegrationTriggerRuns", - "SynapseIntegrationTriggerRunsEnded", - "SynapseRBACEvents", - "SynapseRbacOperations", - "SynapseSqlPoolDmsWorkers", - "SynapseSqlPoolExecRequests", - "SynapseSqlPoolRequestSteps", - "SynapseSqlPoolSqlRequests", - "SynapseSqlPoolWaits", - "TSIIngress", - "WorkloadDiagnosticLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "CorrelationId", - "displayName": "CorrelationId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AACAudit", - "AACHttpRequest", - "AADB2CRequestLogs", - "AADDomainServicesAccountLogon", - "AADDomainServicesAccountManagement", - "AADDomainServicesDirectoryServiceAccess", - "AADDomainServicesLogonLogoff", - "AADDomainServicesPolicyChange", - "AADDomainServicesPrivilegeUse", - "AADDomainServicesSystemSecurity", - "AADManagedIdentitySignInLogs", - "AADNonInteractiveUserSignInLogs", - "AADProvisioningLogs", - "AADRiskyServicePrincipals", - "AADRiskyUsers", - "AADServicePrincipalRiskEvents", - "AADServicePrincipalSignInLogs", - "AADUserRiskEvents", - "ABSBotRequests", - "ABSChannelToBotRequests", - "ABSDependenciesRequests", - "ACICollaborationAudit", - "ACSAuthIncomingOperations", - "ACSBillingUsage", - "ACSCallDiagnostics", - "ACSCallRecordingSummary", - "ACSCallSummary", - "ACSChatIncomingOperations", - "ACSEmailSendMailOperational", - "ACSEmailStatusUpdateOperational", - "ACSEmailUserEngagementOperational", - "ACSNetworkTraversalDiagnostics", - "ACSNetworkTraversalIncomingOperations", - "ACSRoomsIncomingOperations", - "ACSSMSIncomingOperations", - "ADFActivityRun", - "ADFAirflowSchedulerLogs", - "ADFAirflowTaskLogs", - "ADFAirflowWebLogs", - "ADFAirflowWorkerLogs", - "ADFPipelineRun", - "ADFSandboxActivityRun", - "ADFSandboxPipelineRun", - "ADFSSignInLogs", - "ADFSSISIntegrationRuntimeLogs", - "ADFSSISPackageEventMessageContext", - "ADFSSISPackageEventMessages", - "ADFSSISPackageExecutableStatistics", - "ADFSSISPackageExecutionComponentPhases", - "ADFSSISPackageExecutionDataStatistics", - "ADFTriggerRun", - "ADPAudit", - "ADPDiagnostics", - "ADPRequests", - "ADTDataHistoryOperation", - "ADTDigitalTwinsOperation", - "ADTEventRoutesOperation", - "ADTModelsOperation", - "ADTQueryOperation", - "ADXCommand", - "ADXJournal", - "ADXQuery", - "ADXTableDetails", - "ADXTableUsageStatistics", - "AgriFoodApplicationAuditLogs", - "AgriFoodFarmManagementLogs", - "AgriFoodFarmOperationLogs", - "AgriFoodInsightLogs", - "AgriFoodJobProcessedLogs", - "AgriFoodModelInferenceLogs", - "AgriFoodProviderAuthLogs", - "AgriFoodSatelliteLogs", - "AgriFoodWeatherLogs", - "AGSGrafanaLoginEvents", - "AirflowDagProcessingLogs", - "AmlComputeClusterEvent", - "AmlComputeClusterNodeEvent", - "AmlComputeCpuGpuUtilization", - "AmlComputeInstanceEvent", - "AmlComputeJobEvent", - "AmlDataLabelEvent", - "AmlDeploymentEvent", - "AmlInferencingEvent", - "AmlModelsEvent", - "AmlPipelineEvent", - "AmlRunStatusChangedEvent", - "ApiManagementGatewayLogs", - "AuditLogs", - "AUIEventsAudit", - "AUIEventsOperational", - "AutoscaleEvaluationsLog", - "AutoscaleScaleActionsLog", - "AzureActivity", - "AzureActivityV2", - "AzureDevOpsAuditing", - "AzureDiagnostics", - "AzureLoadTestingOperation", - "AzureMetrics", - "BaiClusterEvent", - "BaiClusterNodeEvent", - "BaiJobEvent", - "CIEventsAudit", - "CIEventsOperational", - "ContainerRegistryLoginEvents", - "ContainerRegistryRepositoryEvents", - "DSMAzureBlobStorageLogs", - "DSMDataClassificationLogs", - "DSMDataLabelingLogs", - "FailedIngestion", - "HDInsightHadoopAndYarnLogs", - "HDInsightHadoopAndYarnMetrics", - "HDInsightHBaseLogs", - "HDInsightHBaseMetrics", - "HDInsightHiveAndLLAPLogs", - "HDInsightHiveAndLLAPMetrics", - "HDInsightHiveQueryAppStats", - "HDInsightHiveTezAppStats", - "HDInsightKafkaLogs", - "HDInsightKafkaMetrics", - "HDInsightOozieLogs", - "HDInsightRangerAuditLogs", - "HDInsightSecurityLogs", - "HDInsightSparkLogs", - "HDInsightStormLogs", - "HDInsightStormMetrics", - "HDInsightStormTopologyMetrics", - "IntuneAuditLogs", - "LAQueryLogs", - "MicrosoftDataShareReceivedSnapshotLog", - "MicrosoftDataShareSentSnapshotLog", - "MicrosoftHealthcareApisAuditLogs", - "OEPAirFlowTask", - "OLPSupplyChainEntityOperations", - "OLPSupplyChainEvents", - "Operation", - "PowerBIAuditTenant", - "PowerBIDatasetsTenant", - "PowerBIDatasetsWorkspace", - "PowerBIReportUsageTenant", - "PowerBIReportUsageWorkspace", - "PurviewScanStatusLogs", - "ResourceManagementPublicAccessLogs", - "SigninLogs", - "StorageAntimalwareScanResults", - "StorageBlobLogs", - "StorageCacheOperationEvents", - "StorageCacheUpgradeEvents", - "StorageCacheWarningEvents", - "StorageFileLogs", - "StorageQueueLogs", - "StorageTableLogs", - "SynapseBigDataPoolApplicationsEnded", - "SynapseBuiltinSqlPoolRequestsEnded", - "SynapseDXCommand", - "SynapseDXQuery", - "SynapseDXTableDetails", - "SynapseDXTableUsageStatistics", - "SynapseGatewayApiRequests", - "SynapseGatewayEvents", - "SynapseIntegrationActivityRuns", - "SynapseIntegrationActivityRunsEnded", - "SynapseIntegrationPipelineRuns", - "SynapseIntegrationPipelineRunsEnded", - "SynapseIntegrationTriggerRuns", - "SynapseIntegrationTriggerRunsEnded", - "SynapseRBACEvents", - "SynapseRbacOperations", - "SynapseScopePoolScopeJobsEnded", - "SynapseScopePoolScopeJobsStateChange", - "TSIIngress", - "VIAudit", - "VIIndexing", - "WVDCheckpoints", - "WVDConnectionGraphicsDataPreview", - "WVDConnectionNetworkData", - "WVDConnections", - "WVDErrors", - "WVDFeeds", - "WVDHostRegistrations", - "WVDManagement", - "WVDSessionHostManagement" - ], - "extraction": null, - "common": false - }, - { - "name": "Status", - "displayName": "Status", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AACAudit", - "AADNonInteractiveUserSignInLogs", - "ADFActivityRun", - "ADFPipelineRun", - "ADFSandboxActivityRun", - "ADFSandboxPipelineRun", - "ADFSSignInLogs", - "ADFTriggerRun", - "AmlRunStatusChangedEvent", - "AppCenterError", - "AppPlatformIngressLogs", - "CassandraAudit", - "HDInsightGatewayAuditLogs", - "HDInsightStormTopologyMetrics", - "KubeNodeInventory", - "MicrosoftDataShareReceivedSnapshotLog", - "MicrosoftDataShareSentSnapshotLog", - "PowerBIDatasetsTenant", - "PowerBIDatasetsWorkspace", - "PowerBIReportUsageTenant", - "PowerBIReportUsageWorkspace", - "SigninLogs", - "SynapseIntegrationActivityRuns", - "SynapseIntegrationActivityRunsEnded", - "SynapseIntegrationPipelineRuns", - "SynapseIntegrationPipelineRunsEnded", - "SynapseIntegrationTriggerRuns", - "SynapseIntegrationTriggerRunsEnded", - "SynapseSqlPoolDmsWorkers", - "SynapseSqlPoolExecRequests", - "SynapseSqlPoolRequestSteps", - "SynapseSqlPoolSqlRequests", - "VIAudit", - "VIIndexing", - "WorkloadDiagnosticLogs", - "WVDAgentHealthStatus" - ], - "extraction": null, - "common": false - }, - { - "name": "OperationName", - "displayName": "OperationName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AACAudit", - "AADB2CRequestLogs", - "AADDomainServicesAccountLogon", - "AADDomainServicesAccountManagement", - "AADDomainServicesDirectoryServiceAccess", - "AADDomainServicesLogonLogoff", - "AADDomainServicesPolicyChange", - "AADDomainServicesPrivilegeUse", - "AADDomainServicesSystemSecurity", - "AADManagedIdentitySignInLogs", - "AADNonInteractiveUserSignInLogs", - "AADProvisioningLogs", - "AADRiskyServicePrincipals", - "AADRiskyUsers", - "AADServicePrincipalRiskEvents", - "AADServicePrincipalSignInLogs", - "AADUserRiskEvents", - "ABSBotRequests", - "ABSChannelToBotRequests", - "ABSDependenciesRequests", - "ACICollaborationAudit", - "ACRConnectedClientList", - "ACSAuthIncomingOperations", - "ACSBillingUsage", - "ACSCallDiagnostics", - "ACSCallRecordingSummary", - "ACSCallSummary", - "ACSChatIncomingOperations", - "ACSEmailSendMailOperational", - "ACSEmailStatusUpdateOperational", - "ACSEmailUserEngagementOperational", - "ACSNetworkTraversalDiagnostics", - "ACSNetworkTraversalIncomingOperations", - "ACSRoomsIncomingOperations", - "ACSSMSIncomingOperations", - "AddonAzureBackupAlerts", - "AddonAzureBackupJobs", - "AddonAzureBackupPolicy", - "AddonAzureBackupProtectedInstance", - "AddonAzureBackupStorage", - "ADFActivityRun", - "ADFAirflowSchedulerLogs", - "ADFAirflowTaskLogs", - "ADFAirflowWebLogs", - "ADFAirflowWorkerLogs", - "ADFPipelineRun", - "ADFSandboxActivityRun", - "ADFSandboxPipelineRun", - "ADFSSignInLogs", - "ADFSSISIntegrationRuntimeLogs", - "ADFSSISPackageEventMessageContext", - "ADFSSISPackageEventMessages", - "ADFSSISPackageExecutableStatistics", - "ADFSSISPackageExecutionComponentPhases", - "ADFSSISPackageExecutionDataStatistics", - "ADFTriggerRun", - "ADPAudit", - "ADPDiagnostics", - "ADPRequests", - "ADTDataHistoryOperation", - "ADTDigitalTwinsOperation", - "ADTEventRoutesOperation", - "ADTModelsOperation", - "ADTQueryOperation", - "ADXCommand", - "ADXQuery", - "ADXTableDetails", - "ADXTableUsageStatistics", - "AegDataPlaneRequests", - "AegDeliveryFailureLogs", - "AegPublishFailureLogs", - "AgriFoodApplicationAuditLogs", - "AgriFoodFarmManagementLogs", - "AgriFoodFarmOperationLogs", - "AgriFoodInsightLogs", - "AgriFoodJobProcessedLogs", - "AgriFoodModelInferenceLogs", - "AgriFoodProviderAuthLogs", - "AgriFoodSatelliteLogs", - "AgriFoodWeatherLogs", - "AGSGrafanaLoginEvents", - "AirflowDagProcessingLogs", - "AmlComputeClusterEvent", - "AmlComputeClusterNodeEvent", - "AmlComputeCpuGpuUtilization", - "AmlComputeInstanceEvent", - "AmlComputeJobEvent", - "AmlDataLabelEvent", - "AmlDataSetEvent", - "AmlDataStoreEvent", - "AmlDeploymentEvent", - "AmlEnvironmentEvent", - "AmlInferencingEvent", - "AmlModelsEvent", - "AmlOnlineEndpointConsoleLog", - "AmlOnlineEndpointEventLog", - "AmlOnlineEndpointTrafficLog", - "AmlPipelineEvent", - "AmlRunEvent", - "AmlRunStatusChangedEvent", - "ANFFileAccess", - "ApiManagementGatewayLogs", - "AppAvailabilityResults", - "AppBrowserTimings", - "AppDependencies", - "AppEvents", - "AppExceptions", - "AppMetrics", - "AppPageViews", - "AppPerformanceCounters", - "AppPlatformIngressLogs", - "AppPlatformLogsforSpring", - "AppPlatformSystemLogs", - "AppRequests", - "AppServiceAppLogs", - "AppServiceAuditLogs", - "AppServiceConsoleLogs", - "AppServiceEnvironmentPlatformLogs", - "AppServiceFileAuditLogs", - "AppServicePlatformLogs", - "AppTraces", - "ATCExpressRouteCircuitIpfix", - "AuditLogs", - "AUIEventsAudit", - "AUIEventsOperational", - "AutoscaleEvaluationsLog", - "AutoscaleScaleActionsLog", - "AzureActivity", - "AzureAttestationDiagnostics", - "AzureDevOpsAuditing", - "AzureDiagnostics", - "AzureLoadTestingOperation", - "AzureMetrics", - "BaiClusterEvent", - "BaiClusterNodeEvent", - "BaiJobEvent", - "BlockchainApplicationLog", - "CDBCassandraRequests", - "CDBControlPlaneRequests", - "CDBDataPlaneRequests", - "CDBGremlinRequests", - "CDBMongoRequests", - "CDBPartitionKeyRUConsumption", - "CIEventsAudit", - "CIEventsOperational", - "ContainerAppConsoleLogs", - "ContainerAppSystemLogs", - "ContainerRegistryLoginEvents", - "ContainerRegistryRepositoryEvents", - "CoreAzureBackup", - "DatabricksAccounts", - "DatabricksClusters", - "DatabricksDatabricksSQL", - "DatabricksDBFS", - "DatabricksDeltaPipelines", - "DatabricksFeatureStore", - "DatabricksGenie", - "DatabricksGitCredentials", - "DatabricksGlobalInitScripts", - "DatabricksIAMRole", - "DatabricksInstancePools", - "DatabricksJobs", - "DatabricksMLflowAcledArtifact", - "DatabricksMLflowExperiment", - "DatabricksModelRegistry", - "DatabricksNotebook", - "DatabricksRemoteHistoryService", - "DatabricksRepos", - "DatabricksSecrets", - "DatabricksSQL", - "DatabricksSQLPermissions", - "DatabricksSSH", - "DatabricksTables", - "DatabricksUnityCatalog", - "DatabricksWebTerminal", - "DatabricksWorkspace", - "DSMAzureBlobStorageLogs", - "FailedIngestion", - "HDInsightHadoopAndYarnLogs", - "HDInsightHadoopAndYarnMetrics", - "HDInsightHBaseLogs", - "HDInsightHBaseMetrics", - "HDInsightHiveAndLLAPLogs", - "HDInsightHiveAndLLAPMetrics", - "HDInsightHiveQueryAppStats", - "HDInsightHiveTezAppStats", - "HDInsightKafkaLogs", - "HDInsightKafkaMetrics", - "HDInsightOozieLogs", - "HDInsightRangerAuditLogs", - "HDInsightSecurityLogs", - "HDInsightSparkLogs", - "HDInsightStormLogs", - "HDInsightStormMetrics", - "HDInsightStormTopologyMetrics", - "IntuneAuditLogs", - "IntuneDeviceComplianceOrg", - "IntuneDevices", - "IntuneOperationalLogs", - "IoTHubDistributedTracing", - "MCVPAuditLogs", - "MCVPOperationLogs", - "MicrosoftAzureBastionAuditLogs", - "MicrosoftDataShareReceivedSnapshotLog", - "MicrosoftDataShareSentSnapshotLog", - "MicrosoftHealthcareApisAuditLogs", - "NSPAccessLogs", - "OEPAirFlowTask", - "OEPElasticOperator", - "OEPElasticsearch", - "OLPSupplyChainEntityOperations", - "OLPSupplyChainEvents", - "PFTitleAuditLogs", - "PowerBIAuditTenant", - "PowerBIDatasetsTenant", - "PowerBIDatasetsTenantPreview", - "PowerBIDatasetsWorkspace", - "PowerBIDatasetsWorkspacePreview", - "PowerBIReportUsageTenant", - "PowerBIReportUsageWorkspace", - "PurviewScanStatusLogs", - "PurviewSecurityLogs", - "ResourceManagementPublicAccessLogs", - "SignalRServiceDiagnosticLogs", - "SigninLogs", - "StorageAntimalwareScanResults", - "StorageBlobLogs", - "StorageCacheOperationEvents", - "StorageFileLogs", - "StorageQueueLogs", - "StorageTableLogs", - "SynapseBigDataPoolApplicationsEnded", - "SynapseBuiltinSqlPoolRequestsEnded", - "SynapseGatewayApiRequests", - "SynapseGatewayEvents", - "SynapseIntegrationActivityRuns", - "SynapseIntegrationActivityRunsEnded", - "SynapseIntegrationPipelineRuns", - "SynapseIntegrationPipelineRunsEnded", - "SynapseIntegrationTriggerRuns", - "SynapseIntegrationTriggerRunsEnded", - "SynapseLinkEvent", - "SynapseRBACEvents", - "SynapseRbacOperations", - "SynapseScopePoolScopeJobsEnded", - "SynapseScopePoolScopeJobsStateChange", - "SynapseSqlPoolDmsWorkers", - "SynapseSqlPoolExecRequests", - "SynapseSqlPoolRequestSteps", - "SynapseSqlPoolSqlRequests", - "SynapseSqlPoolWaits", - "TSIIngress", - "VIAudit", - "VIIndexing", - "WebPubSubConnectivity", - "WebPubSubHttpRequest", - "WebPubSubMessaging", - "WVDAgentHealthStatus" - ], - "extraction": null, - "common": false - }, - { - "name": "EventCategory", - "displayName": "EventCategory", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AACAudit", - "CassandraLogs", - "Event" - ], - "extraction": null, - "common": false - }, - { - "name": "TargetResource", - "displayName": "TargetResource", - "type": "Dynamic", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AACAudit", - "AGSGrafanaLoginEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "ResultType", - "displayName": "ResultType", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AACAudit", - "AADB2CRequestLogs", - "AADDomainServicesAccountLogon", - "AADDomainServicesAccountManagement", - "AADDomainServicesDirectoryServiceAccess", - "AADDomainServicesLogonLogoff", - "AADDomainServicesPolicyChange", - "AADDomainServicesPrivilegeUse", - "AADDomainServicesSystemSecurity", - "AADManagedIdentitySignInLogs", - "AADNonInteractiveUserSignInLogs", - "AADProvisioningLogs", - "AADServicePrincipalSignInLogs", - "ACSAuthIncomingOperations", - "ACSCallRecordingSummary", - "ACSChatIncomingOperations", - "ACSNetworkTraversalDiagnostics", - "ACSNetworkTraversalIncomingOperations", - "ACSRoomsIncomingOperations", - "ACSSMSIncomingOperations", - "ADFSSignInLogs", - "ADFSSISIntegrationRuntimeLogs", - "ADPAudit", - "ADTDataHistoryOperation", - "ADTDigitalTwinsOperation", - "ADTEventRoutesOperation", - "ADTModelsOperation", - "ADTQueryOperation", - "AgriFoodApplicationAuditLogs", - "AgriFoodFarmManagementLogs", - "AgriFoodFarmOperationLogs", - "AgriFoodInsightLogs", - "AgriFoodJobProcessedLogs", - "AgriFoodModelInferenceLogs", - "AgriFoodProviderAuthLogs", - "AgriFoodSatelliteLogs", - "AgriFoodWeatherLogs", - "AmlComputeClusterEvent", - "AmlComputeClusterNodeEvent", - "AmlComputeCpuGpuUtilization", - "AmlComputeInstanceEvent", - "AmlComputeJobEvent", - "AmlDataLabelEvent", - "AmlDataSetEvent", - "AmlDataStoreEvent", - "AmlDeploymentEvent", - "AmlInferencingEvent", - "AmlModelsEvent", - "AmlPipelineEvent", - "AmlRunStatusChangedEvent", - "ANFFileAccess", - "AppServiceEnvironmentPlatformLogs", - "AuditLogs", - "AUIEventsAudit", - "AUIEventsOperational", - "AutoscaleEvaluationsLog", - "AutoscaleScaleActionsLog", - "AzureAttestationDiagnostics", - "AzureDiagnostics", - "AzureLoadTestingOperation", - "AzureMetrics", - "BaiClusterEvent", - "BaiClusterNodeEvent", - "BaiJobEvent", - "CIEventsAudit", - "CIEventsOperational", - "ContainerRegistryLoginEvents", - "ContainerRegistryRepositoryEvents", - "FailedIngestion", - "IntuneAuditLogs", - "IoTHubDistributedTracing", - "MicrosoftHealthcareApisAuditLogs", - "PurviewScanStatusLogs", - "PurviewSecurityLogs", - "ResourceManagementPublicAccessLogs", - "SigninLogs", - "StorageCacheOperationEvents", - "SucceededIngestion", - "SynapseBuiltinSqlPoolRequestsEnded", - "SynapseDXFailedIngestion", - "SynapseDXSucceededIngestion", - "SynapseGatewayApiRequests", - "SynapseGatewayEvents", - "SynapseRBACEvents", - "SynapseRbacOperations" - ], - "extraction": null, - "common": false - }, - { - "name": "CallerIdentity", - "displayName": "CallerIdentity", - "type": "Dynamic", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AACAudit", - "MicrosoftHealthcareApisAuditLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "CallerIPAddress", - "displayName": "CallerIPAddress", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AACAudit", - "AUIEventsAudit", - "AUIEventsOperational", - "AzureDiagnostics", - "CIEventsAudit", - "CIEventsOperational", - "MicrosoftHealthcareApisAuditLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "RequestId", - "displayName": "RequestId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AACAudit", - "AACHttpRequest", - "AADServicePrincipalRiskEvents", - "AADUserRiskEvents", - "AppRequests", - "AzureLoadTestingOperation", - "DatabricksAccounts", - "DatabricksClusters", - "DatabricksDatabricksSQL", - "DatabricksDBFS", - "DatabricksDeltaPipelines", - "DatabricksFeatureStore", - "DatabricksGenie", - "DatabricksGitCredentials", - "DatabricksGlobalInitScripts", - "DatabricksIAMRole", - "DatabricksInstancePools", - "DatabricksJobs", - "DatabricksMLflowAcledArtifact", - "DatabricksMLflowExperiment", - "DatabricksModelRegistry", - "DatabricksNotebook", - "DatabricksRemoteHistoryService", - "DatabricksRepos", - "DatabricksSecrets", - "DatabricksSQL", - "DatabricksSQLPermissions", - "DatabricksSSH", - "DatabricksTables", - "DatabricksUnityCatalog", - "DatabricksWebTerminal", - "DatabricksWorkspace", - "OLPSupplyChainEntityOperations", - "OLPSupplyChainEvents", - "SynapseSqlPoolDmsWorkers", - "SynapseSqlPoolExecRequests", - "SynapseSqlPoolRequestSteps", - "SynapseSqlPoolSqlRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "SourceSystem", - "displayName": "SourceSystem", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AACAudit", - "AACHttpRequest", - "AADB2CRequestLogs", - "AADDomainServicesAccountLogon", - "AADDomainServicesAccountManagement", - "AADDomainServicesDirectoryServiceAccess", - "AADDomainServicesLogonLogoff", - "AADDomainServicesPolicyChange", - "AADDomainServicesPrivilegeUse", - "AADDomainServicesSystemSecurity", - "AADManagedIdentitySignInLogs", - "AADNonInteractiveUserSignInLogs", - "AADProvisioningLogs", - "AADRiskyServicePrincipals", - "AADRiskyUsers", - "AADServicePrincipalRiskEvents", - "AADServicePrincipalSignInLogs", - "AADUserRiskEvents", - "ABSBotRequests", - "ABSChannelToBotRequests", - "ABSDependenciesRequests", - "ACICollaborationAudit", - "ACRConnectedClientList", - "ACSAuthIncomingOperations", - "ACSBillingUsage", - "ACSCallDiagnostics", - "ACSCallRecordingSummary", - "ACSCallSummary", - "ACSChatIncomingOperations", - "ACSEmailSendMailOperational", - "ACSEmailStatusUpdateOperational", - "ACSEmailUserEngagementOperational", - "ACSNetworkTraversalDiagnostics", - "ACSNetworkTraversalIncomingOperations", - "ACSRoomsIncomingOperations", - "ACSSMSIncomingOperations", - "AddonAzureBackupAlerts", - "AddonAzureBackupJobs", - "AddonAzureBackupPolicy", - "AddonAzureBackupProtectedInstance", - "AddonAzureBackupStorage", - "ADFActivityRun", - "ADFAirflowSchedulerLogs", - "ADFAirflowTaskLogs", - "ADFAirflowWebLogs", - "ADFAirflowWorkerLogs", - "ADFPipelineRun", - "ADFSandboxActivityRun", - "ADFSandboxPipelineRun", - "ADFSSignInLogs", - "ADFSSISIntegrationRuntimeLogs", - "ADFSSISPackageEventMessageContext", - "ADFSSISPackageEventMessages", - "ADFSSISPackageExecutableStatistics", - "ADFSSISPackageExecutionComponentPhases", - "ADFSSISPackageExecutionDataStatistics", - "ADFTriggerRun", - "ADPAudit", - "ADPDiagnostics", - "ADPRequests", - "ADTDataHistoryOperation", - "ADTDigitalTwinsOperation", - "ADTEventRoutesOperation", - "ADTModelsOperation", - "ADTQueryOperation", - "ADXCommand", - "ADXIngestionBatching", - "ADXJournal", - "ADXQuery", - "ADXTableDetails", - "ADXTableUsageStatistics", - "AegDataPlaneRequests", - "AegDeliveryFailureLogs", - "AegPublishFailureLogs", - "AEWAuditLogs", - "AEWComputePipelinesLogs", - "AgriFoodApplicationAuditLogs", - "AgriFoodFarmManagementLogs", - "AgriFoodFarmOperationLogs", - "AgriFoodInsightLogs", - "AgriFoodJobProcessedLogs", - "AgriFoodModelInferenceLogs", - "AgriFoodProviderAuthLogs", - "AgriFoodSatelliteLogs", - "AgriFoodWeatherLogs", - "AGSGrafanaLoginEvents", - "AirflowDagProcessingLogs", - "Alert", - "AmlComputeClusterEvent", - "AmlComputeClusterNodeEvent", - "AmlComputeCpuGpuUtilization", - "AmlComputeInstanceEvent", - "AmlComputeJobEvent", - "AmlDataLabelEvent", - "AmlDataSetEvent", - "AmlDataStoreEvent", - "AmlDeploymentEvent", - "AmlEnvironmentEvent", - "AmlInferencingEvent", - "AmlModelsEvent", - "AmlOnlineEndpointConsoleLog", - "AmlOnlineEndpointEventLog", - "AmlOnlineEndpointTrafficLog", - "AmlPipelineEvent", - "AmlRunEvent", - "AmlRunStatusChangedEvent", - "ANFFileAccess", - "ApiManagementGatewayLogs", - "AppAvailabilityResults", - "AppBrowserTimings", - "AppCenterError", - "AppDependencies", - "AppEvents", - "AppExceptions", - "AppMetrics", - "AppPageViews", - "AppPerformanceCounters", - "AppPlatformBuildLogs", - "AppPlatformContainerEventLogs", - "AppPlatformIngressLogs", - "AppPlatformLogsforSpring", - "AppPlatformSystemLogs", - "AppRequests", - "AppServiceAntivirusScanAuditLogs", - "AppServiceAppLogs", - "AppServiceAuditLogs", - "AppServiceConsoleLogs", - "AppServiceEnvironmentPlatformLogs", - "AppServiceFileAuditLogs", - "AppServiceHTTPLogs", - "AppServiceIPSecAuditLogs", - "AppServicePlatformLogs", - "AppSystemEvents", - "AppTraces", - "ATCExpressRouteCircuitIpfix", - "AuditLogs", - "AUIEventsAudit", - "AUIEventsOperational", - "AutoscaleEvaluationsLog", - "AutoscaleScaleActionsLog", - "AVSSyslog", - "AZFWApplicationRule", - "AZFWApplicationRuleAggregation", - "AZFWDnsQuery", - "AZFWIdpsSignature", - "AZFWInternalFqdnResolutionFailure", - "AZFWNatRule", - "AZFWNatRuleAggregation", - "AZFWNetworkRule", - "AZFWNetworkRuleAggregation", - "AZFWThreatIntel", - "AzureActivity", - "AzureActivityV2", - "AzureAttestationDiagnostics", - "AzureDevOpsAuditing", - "AzureDiagnostics", - "AzureLoadTestingOperation", - "AzureMetrics", - "BaiClusterEvent", - "BaiClusterNodeEvent", - "BaiJobEvent", - "BlockchainApplicationLog", - "CassandraAudit", - "CassandraLogs", - "CDBCassandraRequests", - "CDBControlPlaneRequests", - "CDBDataPlaneRequests", - "CDBGremlinRequests", - "CDBMongoRequests", - "CDBPartitionKeyRUConsumption", - "CDBPartitionKeyStatistics", - "CDBQueryRuntimeStatistics", - "CIEventsAudit", - "CIEventsOperational", - "ComputerGroup", - "ContainerAppConsoleLogs", - "ContainerAppSystemLogs", - "ContainerImageInventory", - "ContainerInventory", - "ContainerLog", - "ContainerNodeInventory", - "ContainerRegistryLoginEvents", - "ContainerRegistryRepositoryEvents", - "ContainerServiceLog", - "CoreAzureBackup", - "DatabricksAccounts", - "DatabricksClusters", - "DatabricksDatabricksSQL", - "DatabricksDBFS", - "DatabricksDeltaPipelines", - "DatabricksFeatureStore", - "DatabricksGenie", - "DatabricksGitCredentials", - "DatabricksGlobalInitScripts", - "DatabricksIAMRole", - "DatabricksInstancePools", - "DatabricksJobs", - "DatabricksMLflowAcledArtifact", - "DatabricksMLflowExperiment", - "DatabricksModelRegistry", - "DatabricksNotebook", - "DatabricksRemoteHistoryService", - "DatabricksRepos", - "DatabricksSecrets", - "DatabricksSQL", - "DatabricksSQLPermissions", - "DatabricksSSH", - "DatabricksTables", - "DatabricksUnityCatalog", - "DatabricksWebTerminal", - "DatabricksWorkspace", - "DSMAzureBlobStorageLogs", - "DSMDataClassificationLogs", - "DSMDataLabelingLogs", - "ETWEvent", - "Event", - "FailedIngestion", - "FunctionAppLogs", - "HDInsightAmbariClusterAlerts", - "HDInsightAmbariSystemMetrics", - "HDInsightGatewayAuditLogs", - "HDInsightHadoopAndYarnLogs", - "HDInsightHadoopAndYarnMetrics", - "HDInsightHBaseLogs", - "HDInsightHBaseMetrics", - "HDInsightHiveAndLLAPLogs", - "HDInsightHiveAndLLAPMetrics", - "HDInsightHiveQueryAppStats", - "HDInsightHiveTezAppStats", - "HDInsightJupyterNotebookEvents", - "HDInsightKafkaLogs", - "HDInsightKafkaMetrics", - "HDInsightOozieLogs", - "HDInsightRangerAuditLogs", - "HDInsightSecurityLogs", - "HDInsightSparkApplicationEvents", - "HDInsightSparkBlockManagerEvents", - "HDInsightSparkEnvironmentEvents", - "HDInsightSparkExecutorEvents", - "HDInsightSparkExtraEvents", - "HDInsightSparkJobEvents", - "HDInsightSparkLogs", - "HDInsightSparkSQLExecutionEvents", - "HDInsightSparkStageEvents", - "HDInsightSparkStageTaskAccumulables", - "HDInsightSparkTaskEvents", - "HDInsightStormLogs", - "HDInsightStormMetrics", - "HDInsightStormTopologyMetrics", - "Heartbeat", - "InsightsMetrics", - "IntuneAuditLogs", - "IntuneDeviceComplianceOrg", - "IntuneDevices", - "IntuneOperationalLogs", - "IoTHubDistributedTracing", - "KubeEvents", - "KubeHealth", - "KubeMonAgentEvents", - "KubeNodeInventory", - "KubePodInventory", - "KubeServices", - "LAQueryLogs", - "MCCEventLogs", - "MCVPAuditLogs", - "MCVPOperationLogs", - "MicrosoftAzureBastionAuditLogs", - "MicrosoftDataShareReceivedSnapshotLog", - "MicrosoftDataShareSentSnapshotLog", - "MicrosoftDynamicsTelemetryPerformanceLogs", - "MicrosoftDynamicsTelemetrySystemMetricsLogs", - "MicrosoftHealthcareApisAuditLogs", - "NetworkAccessTraffic", - "NSPAccessLogs", - "NWConnectionMonitorDestinationListenerResult", - "NWConnectionMonitorDNSResult", - "NWConnectionMonitorPathResult", - "NWConnectionMonitorTestResult", - "OEPAirFlowTask", - "OEPElasticOperator", - "OEPElasticsearch", - "OLPSupplyChainEntityOperations", - "OLPSupplyChainEvents", - "Operation", - "Perf", - "PFTitleAuditLogs", - "PowerBIAuditTenant", - "PowerBIDatasetsTenant", - "PowerBIDatasetsTenantPreview", - "PowerBIDatasetsWorkspace", - "PowerBIDatasetsWorkspacePreview", - "PowerBIReportUsageTenant", - "PowerBIReportUsageWorkspace", - "PurviewDataSensitivityLogs", - "PurviewScanStatusLogs", - "PurviewSecurityLogs", - "ResourceManagementPublicAccessLogs", - "ServiceFabricOperationalEvent", - "ServiceFabricReliableActorEvent", - "ServiceFabricReliableServiceEvent", - "SignalRServiceDiagnosticLogs", - "SigninLogs", - "SQLSecurityAuditEvents", - "StorageAntimalwareScanResults", - "StorageBlobLogs", - "StorageCacheOperationEvents", - "StorageCacheUpgradeEvents", - "StorageCacheWarningEvents", - "StorageFileLogs", - "StorageQueueLogs", - "StorageTableLogs", - "SucceededIngestion", - "SynapseBigDataPoolApplicationsEnded", - "SynapseBuiltinSqlPoolRequestsEnded", - "SynapseDXCommand", - "SynapseDXFailedIngestion", - "SynapseDXIngestionBatching", - "SynapseDXQuery", - "SynapseDXSucceededIngestion", - "SynapseDXTableDetails", - "SynapseDXTableUsageStatistics", - "SynapseGatewayApiRequests", - "SynapseGatewayEvents", - "SynapseIntegrationActivityRuns", - "SynapseIntegrationActivityRunsEnded", - "SynapseIntegrationPipelineRuns", - "SynapseIntegrationPipelineRunsEnded", - "SynapseIntegrationTriggerRuns", - "SynapseIntegrationTriggerRunsEnded", - "SynapseLinkEvent", - "SynapseRBACEvents", - "SynapseRbacOperations", - "SynapseScopePoolScopeJobsEnded", - "SynapseScopePoolScopeJobsStateChange", - "SynapseSqlPoolDmsWorkers", - "SynapseSqlPoolExecRequests", - "SynapseSqlPoolRequestSteps", - "SynapseSqlPoolSqlRequests", - "SynapseSqlPoolWaits", - "Syslog", - "TSIIngress", - "Usage", - "VIAudit", - "VIIndexing", - "VMBoundPort", - "VMComputer", - "VMConnection", - "VMProcess", - "W3CIISLog", - "WebPubSubConnectivity", - "WebPubSubHttpRequest", - "WebPubSubMessaging", - "WorkloadDiagnosticLogs", - "WVDAgentHealthStatus", - "WVDCheckpoints", - "WVDConnectionGraphicsDataPreview", - "WVDConnectionNetworkData", - "WVDConnections", - "WVDErrors", - "WVDFeeds", - "WVDHostRegistrations", - "WVDManagement", - "WVDSessionHostManagement" - ], - "extraction": null, - "common": false - }, - { - "name": "Method", - "displayName": "Method", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AACHttpRequest", - "ACSSMSIncomingOperations", - "AmlOnlineEndpointTrafficLog", - "ApiManagementGatewayLogs", - "AppExceptions", - "AppServiceAppLogs", - "AUIEventsAudit", - "AUIEventsOperational", - "CIEventsAudit", - "CIEventsOperational" - ], - "extraction": null, - "common": false - }, - { - "name": "ClientRequestId", - "displayName": "ClientRequestId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AACHttpRequest", - "StorageBlobLogs", - "StorageFileLogs", - "StorageQueueLogs", - "StorageTableLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "DurationMs", - "displayName": "DurationMs", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AACHttpRequest", - "AADManagedIdentitySignInLogs", - "AADNonInteractiveUserSignInLogs", - "AADProvisioningLogs", - "AADServicePrincipalSignInLogs", - "ABSBotRequests", - "ABSChannelToBotRequests", - "ABSDependenciesRequests", - "ACSAuthIncomingOperations", - "ACSChatIncomingOperations", - "ACSNetworkTraversalIncomingOperations", - "ACSSMSIncomingOperations", - "ADFSSignInLogs", - "ADPRequests", - "ADTDataHistoryOperation", - "ADTDigitalTwinsOperation", - "ADTEventRoutesOperation", - "ADTModelsOperation", - "ADTQueryOperation", - "AgriFoodFarmManagementLogs", - "AgriFoodFarmOperationLogs", - "AgriFoodInsightLogs", - "AgriFoodJobProcessedLogs", - "AgriFoodModelInferenceLogs", - "AgriFoodProviderAuthLogs", - "AgriFoodSatelliteLogs", - "AgriFoodWeatherLogs", - "AmlComputeClusterEvent", - "AmlComputeClusterNodeEvent", - "AmlComputeCpuGpuUtilization", - "AmlComputeJobEvent", - "AmlRunStatusChangedEvent", - "AppAvailabilityResults", - "AppDependencies", - "AppPageViews", - "AppRequests", - "AuditLogs", - "AUIEventsAudit", - "AUIEventsOperational", - "AzureAttestationDiagnostics", - "AzureDiagnostics", - "AzureLoadTestingOperation", - "AzureMetrics", - "BaiClusterEvent", - "BaiClusterNodeEvent", - "BaiJobEvent", - "CassandraLogs", - "CDBCassandraRequests", - "CDBControlPlaneRequests", - "CDBDataPlaneRequests", - "CDBGremlinRequests", - "CDBMongoRequests", - "CIEventsAudit", - "CIEventsOperational", - "ContainerRegistryLoginEvents", - "ContainerRegistryRepositoryEvents", - "IoTHubDistributedTracing", - "OLPSupplyChainEntityOperations", - "OLPSupplyChainEvents", - "PowerBIDatasetsTenant", - "PowerBIDatasetsWorkspace", - "PowerBIReportUsageTenant", - "PowerBIReportUsageWorkspace", - "ResourceManagementPublicAccessLogs", - "SigninLogs", - "SQLSecurityAuditEvents", - "StorageBlobLogs", - "StorageFileLogs", - "StorageQueueLogs", - "StorageTableLogs", - "SynapseBuiltinSqlPoolRequestsEnded", - "VIAudit", - "VIIndexing", - "WebPubSubHttpRequest" - ], - "extraction": null, - "common": false - }, - { - "name": "RequestURI", - "displayName": "RequestURI", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AACHttpRequest" - ], - "extraction": null, - "common": false - }, - { - "name": "ClientIPAddress", - "displayName": "ClientIPAddress", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AACHttpRequest", - "WVDConnections" - ], - "extraction": null, - "common": false - }, - { - "name": "UserAgent", - "displayName": "UserAgent", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AACHttpRequest", - "AADNonInteractiveUserSignInLogs", - "ACSEmailUserEngagementOperational", - "ADFSSignInLogs", - "AmlOnlineEndpointTrafficLog", - "AppServiceHTTPLogs", - "AUIEventsAudit", - "AUIEventsOperational", - "AzureAttestationDiagnostics", - "AzureDevOpsAuditing", - "AzureLoadTestingOperation", - "CDBCassandraRequests", - "CDBDataPlaneRequests", - "CDBGremlinRequests", - "CDBMongoRequests", - "CIEventsAudit", - "CIEventsOperational", - "ContainerRegistryLoginEvents", - "ContainerRegistryRepositoryEvents", - "DatabricksAccounts", - "DatabricksClusters", - "DatabricksDatabricksSQL", - "DatabricksDBFS", - "DatabricksDeltaPipelines", - "DatabricksFeatureStore", - "DatabricksGenie", - "DatabricksGitCredentials", - "DatabricksGlobalInitScripts", - "DatabricksIAMRole", - "DatabricksInstancePools", - "DatabricksJobs", - "DatabricksMLflowAcledArtifact", - "DatabricksMLflowExperiment", - "DatabricksModelRegistry", - "DatabricksNotebook", - "DatabricksRemoteHistoryService", - "DatabricksRepos", - "DatabricksSecrets", - "DatabricksSQL", - "DatabricksSQLPermissions", - "DatabricksSSH", - "DatabricksTables", - "DatabricksUnityCatalog", - "DatabricksWebTerminal", - "DatabricksWorkspace", - "MicrosoftAzureBastionAuditLogs", - "NetworkAccessTraffic", - "PowerBIReportUsageTenant", - "PowerBIReportUsageWorkspace", - "SigninLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "StatusCode", - "displayName": "StatusCode", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AACHttpRequest", - "CDBDataPlaneRequests", - "DSMAzureBlobStorageLogs", - "MicrosoftHealthcareApisAuditLogs", - "PowerBIDatasetsTenant", - "PowerBIDatasetsWorkspace", - "StorageBlobLogs", - "StorageFileLogs", - "StorageQueueLogs", - "StorageTableLogs", - "WebPubSubHttpRequest" - ], - "extraction": null, - "common": false - }, - { - "name": "RequestLength", - "displayName": "RequestLength", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AACHttpRequest", - "AppPlatformIngressLogs", - "CDBCassandraRequests", - "CDBDataPlaneRequests", - "CDBGremlinRequests", - "CDBMongoRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "ResponseLength", - "displayName": "ResponseLength", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AACHttpRequest", - "CDBCassandraRequests", - "CDBDataPlaneRequests", - "CDBGremlinRequests", - "CDBMongoRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "AADTenantId", - "displayName": "AADTenantId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AADB2CRequestLogs", - "AADProvisioningLogs", - "AuditLogs", - "IntuneDeviceComplianceOrg", - "IntuneDevices", - "LAQueryLogs", - "SigninLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ResultSignature", - "displayName": "ResultSignature", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AADB2CRequestLogs", - "AADManagedIdentitySignInLogs", - "AADNonInteractiveUserSignInLogs", - "AADProvisioningLogs", - "AADServicePrincipalSignInLogs", - "ACSAuthIncomingOperations", - "ACSChatIncomingOperations", - "ACSNetworkTraversalDiagnostics", - "ACSNetworkTraversalIncomingOperations", - "ACSRoomsIncomingOperations", - "ACSSMSIncomingOperations", - "ADFSSignInLogs", - "ADTDataHistoryOperation", - "ADTDigitalTwinsOperation", - "ADTEventRoutesOperation", - "ADTModelsOperation", - "ADTQueryOperation", - "AgriFoodFarmManagementLogs", - "AgriFoodFarmOperationLogs", - "AgriFoodInsightLogs", - "AgriFoodModelInferenceLogs", - "AgriFoodProviderAuthLogs", - "AgriFoodSatelliteLogs", - "AgriFoodWeatherLogs", - "AmlComputeClusterEvent", - "AmlComputeClusterNodeEvent", - "AmlComputeCpuGpuUtilization", - "AmlComputeJobEvent", - "AmlModelsEvent", - "AmlRunStatusChangedEvent", - "AuditLogs", - "AUIEventsAudit", - "AUIEventsOperational", - "AzureAttestationDiagnostics", - "AzureDiagnostics", - "AzureMetrics", - "BaiClusterEvent", - "BaiClusterNodeEvent", - "BaiJobEvent", - "CIEventsAudit", - "CIEventsOperational", - "IoTHubDistributedTracing", - "ResourceManagementPublicAccessLogs", - "SigninLogs", - "SynapseGatewayApiRequests", - "SynapseGatewayEvents", - "SynapseRBACEvents", - "SynapseRbacOperations" - ], - "extraction": null, - "common": false - }, - { - "name": "CallerIpAddress", - "displayName": "CallerIpAddress", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AADB2CRequestLogs", - "ACSAuthIncomingOperations", - "ACSChatIncomingOperations", - "ACSNetworkTraversalDiagnostics", - "ACSSMSIncomingOperations", - "ADPRequests", - "ADTDataHistoryOperation", - "ADTDigitalTwinsOperation", - "ADTEventRoutesOperation", - "ADTModelsOperation", - "ADTQueryOperation", - "AgriFoodApplicationAuditLogs", - "AgriFoodFarmManagementLogs", - "AgriFoodFarmOperationLogs", - "AgriFoodInsightLogs", - "AgriFoodModelInferenceLogs", - "AgriFoodProviderAuthLogs", - "AgriFoodSatelliteLogs", - "AgriFoodWeatherLogs", - "AmlComputeClusterEvent", - "AmlComputeClusterNodeEvent", - "AmlComputeCpuGpuUtilization", - "AmlComputeJobEvent", - "AmlRunStatusChangedEvent", - "ANFFileAccess", - "ApiManagementGatewayLogs", - "AzureActivity", - "AzureActivityV2", - "AzureAttestationDiagnostics", - "AzureLoadTestingOperation", - "AzureMetrics", - "BaiClusterEvent", - "BaiClusterNodeEvent", - "BaiJobEvent", - "ContainerRegistryLoginEvents", - "ContainerRegistryRepositoryEvents", - "DSMAzureBlobStorageLogs", - "MCVPAuditLogs", - "PowerBIReportUsageTenant", - "PowerBIReportUsageWorkspace", - "ResourceManagementPublicAccessLogs", - "SignalRServiceDiagnosticLogs", - "StorageBlobLogs", - "StorageFileLogs", - "StorageQueueLogs", - "StorageTableLogs", - "VIAudit", - "WebPubSubConnectivity", - "WebPubSubHttpRequest", - "WebPubSubMessaging" - ], - "extraction": null, - "common": false - }, - { - "name": "ResourceId", - "displayName": "ResourceId", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "AADDomainServicesAccountLogon", - "AADDomainServicesAccountManagement", - "AADDomainServicesDirectoryServiceAccess", - "AADDomainServicesLogonLogoff", - "AADDomainServicesPolicyChange", - "AADDomainServicesPrivilegeUse", - "AADDomainServicesSystemSecurity", - "AddonAzureBackupAlerts", - "AddonAzureBackupJobs", - "AddonAzureBackupPolicy", - "AddonAzureBackupProtectedInstance", - "AddonAzureBackupStorage", - "ADFActivityRun", - "ADFPipelineRun", - "ADFSandboxActivityRun", - "ADFSandboxPipelineRun", - "ADFTriggerRun", - "Alert", - "AppServiceEnvironmentPlatformLogs", - "AuditLogs", - "AutoscaleEvaluationsLog", - "AutoscaleScaleActionsLog", - "AzureActivity", - "AzureDiagnostics", - "AzureMetrics", - "BlockchainApplicationLog", - "CoreAzureBackup", - "DatabricksTables", - "Heartbeat", - "SigninLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ResultDescription", - "displayName": "ResultDescription", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AADDomainServicesAccountLogon", - "AADDomainServicesAccountManagement", - "AADDomainServicesDirectoryServiceAccess", - "AADDomainServicesLogonLogoff", - "AADDomainServicesPolicyChange", - "AADDomainServicesPrivilegeUse", - "AADDomainServicesSystemSecurity", - "AADManagedIdentitySignInLogs", - "AADNonInteractiveUserSignInLogs", - "AADProvisioningLogs", - "AADServicePrincipalSignInLogs", - "ACSAuthIncomingOperations", - "ACSChatIncomingOperations", - "ACSSMSIncomingOperations", - "ADFSSignInLogs", - "ADTDataHistoryOperation", - "ADTDigitalTwinsOperation", - "ADTEventRoutesOperation", - "ADTModelsOperation", - "ADTQueryOperation", - "AgriFoodApplicationAuditLogs", - "AgriFoodFarmManagementLogs", - "AgriFoodFarmOperationLogs", - "AgriFoodInsightLogs", - "AgriFoodJobProcessedLogs", - "AgriFoodModelInferenceLogs", - "AgriFoodProviderAuthLogs", - "AgriFoodSatelliteLogs", - "AgriFoodWeatherLogs", - "AmlComputeClusterEvent", - "AmlComputeClusterNodeEvent", - "AmlComputeCpuGpuUtilization", - "AmlComputeJobEvent", - "AmlRunStatusChangedEvent", - "AppServiceAppLogs", - "AppServiceConsoleLogs", - "AppServiceEnvironmentPlatformLogs", - "AuditLogs", - "AutoscaleEvaluationsLog", - "AutoscaleScaleActionsLog", - "AzureDiagnostics", - "AzureMetrics", - "BaiClusterEvent", - "BaiClusterNodeEvent", - "BaiJobEvent", - "ContainerRegistryLoginEvents", - "ContainerRegistryRepositoryEvents", - "IntuneAuditLogs", - "IoTHubDistributedTracing", - "NSPAccessLogs", - "PurviewSecurityLogs", - "SigninLogs", - "StorageCacheOperationEvents", - "SynapseGatewayApiRequests", - "SynapseGatewayEvents", - "SynapseRBACEvents", - "SynapseRbacOperations", - "TSIIngress" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_IpAddress", - "displayName": "IpAddress", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesAccountLogon" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_IpPort", - "displayName": "IpPort", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesAccountLogon" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_ServiceName", - "displayName": "ServiceName", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesAccountLogon" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_TicketOptions", - "displayName": "TicketOptions", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesAccountLogon" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_PreAuthType", - "displayName": "PreAuthType", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesAccountLogon" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_CertIssuerName", - "displayName": "CertIssuerName", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesAccountLogon" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_CertSerialNumber", - "displayName": "CertSerialNumber", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesAccountLogon" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_CertThumbprint", - "displayName": "CertThumbprint", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesAccountLogon" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_FailureCode", - "displayName": "FailureCode", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesAccountLogon" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_MappingBy", - "displayName": "MappingBy", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesAccountLogon" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_ClientUserName", - "displayName": "ClientUserName", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesAccountLogon" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_MappedName", - "displayName": "MappedName", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesAccountLogon" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_PackageName", - "displayName": "PackageName", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesAccountLogon" - ], - "extraction": null, - "common": false - }, - { - "name": "RecordId", - "displayName": "RecordId", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesAccountLogon", - "AADDomainServicesAccountManagement", - "AADDomainServicesDirectoryServiceAccess", - "AADDomainServicesLogonLogoff", - "AADDomainServicesPolicyChange", - "AADDomainServicesPrivilegeUse", - "AADDomainServicesSystemSecurity", - "ACSBillingUsage", - "NWConnectionMonitorDestinationListenerResult", - "NWConnectionMonitorDNSResult", - "NWConnectionMonitorPathResult", - "NWConnectionMonitorTestResult" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_SubjectUserSid", - "displayName": "SubjectUserSid", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesAccountManagement" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_SubjectUserName", - "displayName": "SubjectUserName", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesAccountManagement" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_SubjectDomainName", - "displayName": "SubjectDomainName", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesAccountManagement" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_SubjectLogonId", - "displayName": "SubjectLogonId", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesAccountManagement" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_Status", - "displayName": "Status", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesAccountManagement" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_PrivilegeList", - "displayName": "PrivilegeList", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesAccountManagement" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_TargetSid", - "displayName": "TargetSid", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesAccountManagement" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_SamAccountName", - "displayName": "SamAccountName", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesAccountManagement" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_DisplayName", - "displayName": "DisplayName", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesAccountManagement" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_UserPrincipalName", - "displayName": "UserPrincipalName", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesAccountManagement" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_HomeDirectory", - "displayName": "HomeDirectory", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesAccountManagement" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_HomePath", - "displayName": "HomePath", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesAccountManagement" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_ScriptPath", - "displayName": "ScriptPath", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesAccountManagement" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_ProfilePath", - "displayName": "ProfilePath", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesAccountManagement" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_UserWorkstations", - "displayName": "UserWorkstations", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesAccountManagement" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_PasswordLastSet", - "displayName": "PasswordLastSet", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesAccountManagement" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_AccountExpires", - "displayName": "AccountExpires", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesAccountManagement" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_PrimaryGroupId", - "displayName": "PrimaryGroupId", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesAccountManagement" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_AllowedToDelegateTo", - "displayName": "AllowedToDelegateTo", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesAccountManagement" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_OldUacValue", - "displayName": "OldUacValue", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesAccountManagement" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_NewUacValue", - "displayName": "NewUacValue", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesAccountManagement" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_UserAccountControl", - "displayName": "UserAccountControl", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesAccountManagement" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_UserParameters", - "displayName": "UserParameters", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesAccountManagement" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_SidHistory", - "displayName": "SidHistory", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesAccountManagement" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_LogonHours", - "displayName": "LogonHours", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesAccountManagement" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_MemberName", - "displayName": "MemberName", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesAccountManagement" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_MemberSid", - "displayName": "MemberSid", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesAccountManagement" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_MembershipExpirationTime", - "displayName": "MembershipExpirationTime", - "type": "DateTime", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesAccountManagement" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_DnsHostName", - "displayName": "DnsHostName", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesAccountManagement" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_ServicePrincipalNames", - "displayName": "ServicePrincipalNames", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesAccountManagement" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_ComputerAccountChange", - "displayName": "ComputerAccountChange", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesAccountManagement" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_GroupTypeChange", - "displayName": "GroupTypeChange", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesAccountManagement" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_SourceUserName", - "displayName": "SourceUserName", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesAccountManagement" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_SourceSid", - "displayName": "SourceSid", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesAccountManagement" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_Workstation", - "displayName": "Workstation", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesAccountManagement" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_OldTargetUserName", - "displayName": "OldTargetUserName", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesAccountManagement" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_NewTargetUserName", - "displayName": "NewTargetUserName", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesAccountManagement" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_CallerProcessId", - "displayName": "CallerProcessId", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesAccountManagement" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_CallerProcessName", - "displayName": "CallerProcessName", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesAccountManagement" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_OpCorrelationID", - "displayName": "OpCorrelationID", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesDirectoryServiceAccess" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_AppCorrelationID", - "displayName": "AppCorrelationID", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesDirectoryServiceAccess" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_DSName", - "displayName": "DSName", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesDirectoryServiceAccess" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_DSType", - "displayName": "DSType", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesDirectoryServiceAccess" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_ObjectDN", - "displayName": "ObjectDN", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesDirectoryServiceAccess" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_ObjectGUID", - "displayName": "ObjectGUID", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesDirectoryServiceAccess" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_ObjectClass", - "displayName": "ObjectClass", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesDirectoryServiceAccess" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_AttributeLDAPDisplayName", - "displayName": "AttributeLDAPDisplayName", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesDirectoryServiceAccess" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_AttributeSyntaxOID", - "displayName": "AttributeSyntaxOID", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesDirectoryServiceAccess" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_AttributeValue", - "displayName": "AttributeValue", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesDirectoryServiceAccess" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_OperationType", - "displayName": "OperationType", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesDirectoryServiceAccess" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_OldObjectDN", - "displayName": "OldObjectDN", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesDirectoryServiceAccess" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_NewObjectDN", - "displayName": "NewObjectDN", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesDirectoryServiceAccess" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_TreeDelete", - "displayName": "TreeDelete", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesDirectoryServiceAccess" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_TargetUserSid", - "displayName": "TargetUserSid", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesLogonLogoff" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_TargetUserName", - "displayName": "TargetUserName", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesLogonLogoff" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_TargetDomainName", - "displayName": "TargetDomainName", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesLogonLogoff" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_TargetLogonId", - "displayName": "TargetLogonId", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesLogonLogoff" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_LogonType", - "displayName": "LogonType", - "type": "Int", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesLogonLogoff" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_LogonProcessName", - "displayName": "LogonProcessName", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesLogonLogoff" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_AuthenticationPackageName", - "displayName": "AuthenticationPackageName", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesLogonLogoff" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_WorkstationName", - "displayName": "WorkstationName", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesLogonLogoff" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_LogonGuid", - "displayName": "LogonGuid", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesLogonLogoff" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_TransmittedServices", - "displayName": "TransmittedServices", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesLogonLogoff" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_LmPackageName", - "displayName": "LmPackageName", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesLogonLogoff" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_KeyLength", - "displayName": "KeyLength", - "type": "Int", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesLogonLogoff" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_ImpersonationLevel", - "displayName": "ImpersonationLevel", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesLogonLogoff" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_RestrictedAdminMode", - "displayName": "RestrictedAdminMode", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesLogonLogoff" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_TargetOutboundUserName", - "displayName": "TargetOutboundUserName", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesLogonLogoff" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_TargetOutboundDomainName", - "displayName": "TargetOutboundDomainName", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesLogonLogoff" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_VirtualAccount", - "displayName": "VirtualAccount", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesLogonLogoff" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_TargetLinkedLogonId", - "displayName": "TargetLinkedLogonId", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesLogonLogoff" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_ElevatedToken", - "displayName": "ElevatedToken", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesLogonLogoff" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_FailureReason", - "displayName": "FailureReason", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesLogonLogoff" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_SubStatus", - "displayName": "SubStatus", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesLogonLogoff" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_TargetLogonGuid", - "displayName": "TargetLogonGuid", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesLogonLogoff" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_TargetServerName", - "displayName": "TargetServerName", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesLogonLogoff" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_TargetInfo", - "displayName": "TargetInfo", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesLogonLogoff" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_TdoSid", - "displayName": "TdoSid", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesLogonLogoff" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_SidList", - "displayName": "SidList", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesLogonLogoff" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_CrashOnAuditFailValue", - "displayName": "CrashOnAuditFailValue", - "type": "Int", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesPolicyChange" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_ObjectServer", - "displayName": "ObjectServer", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesPolicyChange" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_ObjectType", - "displayName": "ObjectType", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesPolicyChange" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_ObjectName", - "displayName": "ObjectName", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesPolicyChange" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_HandleId", - "displayName": "HandleId", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesPolicyChange" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_OldSd", - "displayName": "OldSd", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesPolicyChange" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_NewSd", - "displayName": "NewSd", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesPolicyChange" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_TdoDirection", - "displayName": "TdoDirection", - "type": "Int", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesPolicyChange" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_TdoAttributes", - "displayName": "TdoAttributes", - "type": "Int", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesPolicyChange" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_TdoType", - "displayName": "TdoType", - "type": "Int", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesPolicyChange" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_EnabledPrivilegeList", - "displayName": "EnabledPrivilegeList", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesPolicyChange" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_DisabledPrivilegeList", - "displayName": "DisabledPrivilegeList", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesPolicyChange" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_DomainName", - "displayName": "DomainName", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesPolicyChange" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_DomainSid", - "displayName": "DomainSid", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesPolicyChange" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_SidFilteringEnabled", - "displayName": "SidFilteringEnabled", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesPolicyChange" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_KerberosPolicyChange", - "displayName": "KerberosPolicyChange", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesPolicyChange" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_AccessGranted", - "displayName": "AccessGranted", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesPolicyChange" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_AccessRemoved", - "displayName": "AccessRemoved", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesPolicyChange" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_CategoryId", - "displayName": "CategoryId", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesPolicyChange" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_SubcategoryId", - "displayName": "SubcategoryId", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesPolicyChange" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_SubcategoryGuid", - "displayName": "SubcategoryGuid", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesPolicyChange" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_AuditPolicyChanges", - "displayName": "AuditPolicyChanges", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesPolicyChange" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_DomainPolicyChanged", - "displayName": "DomainPolicyChanged", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesPolicyChange" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_MinPasswordAge", - "displayName": "MinPasswordAge", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesPolicyChange" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_MaxPasswordAge", - "displayName": "MaxPasswordAge", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesPolicyChange" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_ForceLogoff", - "displayName": "ForceLogoff", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesPolicyChange" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_LockoutThreshold", - "displayName": "LockoutThreshold", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesPolicyChange" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_LockoutObservationWindow", - "displayName": "LockoutObservationWindow", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesPolicyChange" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_LockoutDuration", - "displayName": "LockoutDuration", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesPolicyChange" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_PasswordProperties", - "displayName": "PasswordProperties", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesPolicyChange" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_MinPasswordLength", - "displayName": "MinPasswordLength", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesPolicyChange" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_PasswordHistoryLength", - "displayName": "PasswordHistoryLength", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesPolicyChange" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_MachineAccountQuota", - "displayName": "MachineAccountQuota", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesPolicyChange" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_MixedDomainMode", - "displayName": "MixedDomainMode", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesPolicyChange" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_DomainBehaviorVersion", - "displayName": "DomainBehaviorVersion", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesPolicyChange" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_OemInformation", - "displayName": "OemInformation", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesPolicyChange" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_CollisionTargetType", - "displayName": "CollisionTargetType", - "type": "Int", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesPolicyChange" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_CollisionTargetName", - "displayName": "CollisionTargetName", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesPolicyChange" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_ForestRoot", - "displayName": "ForestRoot", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesPolicyChange" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_TopLevelName", - "displayName": "TopLevelName", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesPolicyChange" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_DnsName", - "displayName": "DnsName", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesPolicyChange" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_NetbiosName", - "displayName": "NetbiosName", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesPolicyChange" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_Flags", - "displayName": "Flags", - "type": "Int", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesPolicyChange" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_ForestRootSid", - "displayName": "ForestRootSid", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesPolicyChange" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_OperationId", - "displayName": "OperationId", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesPolicyChange" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_EntryType", - "displayName": "EntryType", - "type": "Int", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesPolicyChange" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_AuditSourceName", - "displayName": "AuditSourceName", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesPolicyChange" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_EventSourceId", - "displayName": "EventSourceId", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesPolicyChange" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_ProcessId", - "displayName": "ProcessId", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesPrivilegeUse" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_ProcessName", - "displayName": "ProcessName", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesPrivilegeUse" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_TransactionId", - "displayName": "TransactionId", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesPrivilegeUse" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_NewState", - "displayName": "NewState", - "type": "Int", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesPrivilegeUse" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_ResourceManager", - "displayName": "ResourceManager", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesPrivilegeUse" - ], - "extraction": null, - "common": false - }, - { - "name": "aadds_AuditsDiscarded", - "displayName": "AuditsDiscarded", - "type": "Int", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AADDomainServicesSystemSecurity" - ], - "extraction": null, - "common": false - }, - { - "name": "OperationVersion", - "displayName": "OperationVersion", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AADManagedIdentitySignInLogs", - "AADNonInteractiveUserSignInLogs", - "AADProvisioningLogs", - "AADServicePrincipalSignInLogs", - "ACSAuthIncomingOperations", - "ACSBillingUsage", - "ACSCallDiagnostics", - "ACSCallSummary", - "ACSChatIncomingOperations", - "ACSEmailSendMailOperational", - "ACSEmailStatusUpdateOperational", - "ACSEmailUserEngagementOperational", - "ACSNetworkTraversalIncomingOperations", - "ACSRoomsIncomingOperations", - "ACSSMSIncomingOperations", - "ADFSSignInLogs", - "ADPAudit", - "ADPDiagnostics", - "ADPRequests", - "ADTDataHistoryOperation", - "ADTDigitalTwinsOperation", - "ADTEventRoutesOperation", - "ADTModelsOperation", - "ADTQueryOperation", - "AmlComputeClusterEvent", - "AmlComputeClusterNodeEvent", - "AmlComputeCpuGpuUtilization", - "AmlComputeJobEvent", - "AmlRunStatusChangedEvent", - "ANFFileAccess", - "AuditLogs", - "AzureDiagnostics", - "AzureLoadTestingOperation", - "AzureMetrics", - "BaiClusterEvent", - "BaiClusterNodeEvent", - "BaiJobEvent", - "DatabricksAccounts", - "DatabricksClusters", - "DatabricksDatabricksSQL", - "DatabricksDBFS", - "DatabricksDeltaPipelines", - "DatabricksFeatureStore", - "DatabricksGenie", - "DatabricksGitCredentials", - "DatabricksGlobalInitScripts", - "DatabricksIAMRole", - "DatabricksInstancePools", - "DatabricksJobs", - "DatabricksMLflowAcledArtifact", - "DatabricksMLflowExperiment", - "DatabricksModelRegistry", - "DatabricksNotebook", - "DatabricksRemoteHistoryService", - "DatabricksRepos", - "DatabricksSecrets", - "DatabricksSQL", - "DatabricksSQLPermissions", - "DatabricksSSH", - "DatabricksTables", - "DatabricksUnityCatalog", - "DatabricksWebTerminal", - "DatabricksWorkspace", - "FailedIngestion", - "NSPAccessLogs", - "PowerBIReportUsageTenant", - "PowerBIReportUsageWorkspace", - "ResourceManagementPublicAccessLogs", - "SigninLogs", - "StorageBlobLogs", - "StorageFileLogs", - "StorageQueueLogs", - "StorageTableLogs", - "SynapseGatewayApiRequests", - "SynapseGatewayEvents", - "SynapseRBACEvents", - "SynapseRbacOperations", - "VIAudit", - "VIIndexing" - ], - "extraction": null, - "common": false - }, - { - "name": "ResourceGroup", - "displayName": "ResourceGroup", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AADManagedIdentitySignInLogs", - "AADNonInteractiveUserSignInLogs", - "AADServicePrincipalSignInLogs", - "ADFSSignInLogs", - "AGSGrafanaLoginEvents", - "AuditLogs", - "AzureActivity", - "AzureDiagnostics", - "AzureMetrics", - "BlockchainApplicationLog", - "DSMAzureBlobStorageLogs", - "Heartbeat", - "SigninLogs", - "SQLSecurityAuditEvents", - "SynapseSqlPoolDmsWorkers", - "SynapseSqlPoolExecRequests", - "SynapseSqlPoolRequestSteps", - "SynapseSqlPoolSqlRequests", - "SynapseSqlPoolWaits" - ], - "extraction": null, - "common": false - }, - { - "name": "Identity", - "displayName": "Identity", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AADManagedIdentitySignInLogs", - "AADNonInteractiveUserSignInLogs", - "AADServicePrincipalSignInLogs", - "ACSAuthIncomingOperations", - "ACSNetworkTraversalDiagnostics", - "ACSNetworkTraversalIncomingOperations", - "ADFSSignInLogs", - "ADPAudit", - "AgriFoodApplicationAuditLogs", - "AmlComputeClusterEvent", - "AmlComputeClusterNodeEvent", - "AmlComputeCpuGpuUtilization", - "AmlComputeInstanceEvent", - "AmlComputeJobEvent", - "AmlDataLabelEvent", - "AmlDataSetEvent", - "AmlDataStoreEvent", - "AmlDeploymentEvent", - "AmlEnvironmentEvent", - "AmlInferencingEvent", - "AmlModelsEvent", - "AmlPipelineEvent", - "AmlRunEvent", - "AmlRunStatusChangedEvent", - "AuditLogs", - "AzureAttestationDiagnostics", - "AzureLoadTestingOperation", - "BaiClusterEvent", - "BaiClusterNodeEvent", - "BaiJobEvent", - "ContainerRegistryLoginEvents", - "ContainerRegistryRepositoryEvents", - "DatabricksAccounts", - "DatabricksClusters", - "DatabricksDatabricksSQL", - "DatabricksDBFS", - "DatabricksDeltaPipelines", - "DatabricksFeatureStore", - "DatabricksGenie", - "DatabricksGitCredentials", - "DatabricksGlobalInitScripts", - "DatabricksIAMRole", - "DatabricksInstancePools", - "DatabricksJobs", - "DatabricksMLflowAcledArtifact", - "DatabricksMLflowExperiment", - "DatabricksModelRegistry", - "DatabricksNotebook", - "DatabricksRemoteHistoryService", - "DatabricksRepos", - "DatabricksSecrets", - "DatabricksSQL", - "DatabricksSQLPermissions", - "DatabricksSSH", - "DatabricksTables", - "DatabricksUnityCatalog", - "DatabricksWebTerminal", - "DatabricksWorkspace", - "IntuneAuditLogs", - "PowerBIDatasetsTenant", - "PowerBIDatasetsWorkspace", - "PowerBIReportUsageTenant", - "PowerBIReportUsageWorkspace", - "SigninLogs", - "SynapseBigDataPoolApplicationsEnded", - "SynapseBuiltinSqlPoolRequestsEnded", - "SynapseGatewayApiRequests", - "SynapseGatewayEvents", - "SynapseRBACEvents", - "SynapseRbacOperations", - "SynapseScopePoolScopeJobsEnded", - "SynapseScopePoolScopeJobsStateChange" - ], - "extraction": null, - "common": false - }, - { - "name": "Level", - "displayName": "Level", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AADManagedIdentitySignInLogs", - "AADNonInteractiveUserSignInLogs", - "AADServicePrincipalSignInLogs", - "ABSBotRequests", - "ABSChannelToBotRequests", - "ABSDependenciesRequests", - "ACSAuthIncomingOperations", - "ACSCallRecordingSummary", - "ACSChatIncomingOperations", - "ACSNetworkTraversalDiagnostics", - "ACSNetworkTraversalIncomingOperations", - "ACSRoomsIncomingOperations", - "ACSSMSIncomingOperations", - "ADFActivityRun", - "ADFPipelineRun", - "ADFSandboxActivityRun", - "ADFSandboxPipelineRun", - "ADFSSignInLogs", - "ADFSSISIntegrationRuntimeLogs", - "ADFSSISPackageEventMessageContext", - "ADFSSISPackageEventMessages", - "ADFSSISPackageExecutableStatistics", - "ADFSSISPackageExecutionComponentPhases", - "ADFSSISPackageExecutionDataStatistics", - "ADFTriggerRun", - "ADPDiagnostics", - "ADTDataHistoryOperation", - "ADTDigitalTwinsOperation", - "ADTEventRoutesOperation", - "ADTModelsOperation", - "ADTQueryOperation", - "AgriFoodApplicationAuditLogs", - "AgriFoodFarmManagementLogs", - "AgriFoodFarmOperationLogs", - "AgriFoodInsightLogs", - "AgriFoodJobProcessedLogs", - "AgriFoodModelInferenceLogs", - "AgriFoodProviderAuthLogs", - "AgriFoodSatelliteLogs", - "AgriFoodWeatherLogs", - "AGSGrafanaLoginEvents", - "AmlComputeClusterEvent", - "AmlComputeClusterNodeEvent", - "AmlComputeCpuGpuUtilization", - "AmlComputeInstanceEvent", - "AmlComputeJobEvent", - "AmlDataLabelEvent", - "AmlDeploymentEvent", - "AmlInferencingEvent", - "AmlModelsEvent", - "AmlRunStatusChangedEvent", - "ANFFileAccess", - "AppPlatformSystemLogs", - "AppServiceAppLogs", - "AppServiceConsoleLogs", - "AppServicePlatformLogs", - "AuditLogs", - "AUIEventsAudit", - "AUIEventsOperational", - "AzureActivity", - "AzureActivityV2", - "AzureAttestationDiagnostics", - "AzureDiagnostics", - "BaiClusterEvent", - "BaiClusterNodeEvent", - "BaiJobEvent", - "BlockchainApplicationLog", - "CassandraLogs", - "CIEventsAudit", - "CIEventsOperational", - "ETWEvent", - "FunctionAppLogs", - "IoTHubDistributedTracing", - "KubeMonAgentEvents", - "PFTitleAuditLogs", - "PowerBIAuditTenant", - "PowerBIDatasetsTenant", - "PowerBIDatasetsWorkspace", - "PowerBIReportUsageTenant", - "PowerBIReportUsageWorkspace", - "ServiceFabricOperationalEvent", - "ServiceFabricReliableActorEvent", - "ServiceFabricReliableServiceEvent", - "SignalRServiceDiagnosticLogs", - "SigninLogs", - "StorageCacheWarningEvents", - "SynapseIntegrationActivityRuns", - "SynapseIntegrationActivityRunsEnded", - "SynapseIntegrationPipelineRuns", - "SynapseIntegrationPipelineRunsEnded", - "SynapseIntegrationTriggerRuns", - "SynapseIntegrationTriggerRunsEnded", - "SynapseLinkEvent", - "TSIIngress", - "WebPubSubConnectivity", - "WebPubSubHttpRequest", - "WebPubSubMessaging" - ], - "extraction": null, - "common": false - }, - { - "name": "Location", - "displayName": "Location", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AADManagedIdentitySignInLogs", - "AADNonInteractiveUserSignInLogs", - "AADServicePrincipalRiskEvents", - "AADServicePrincipalSignInLogs", - "AADUserRiskEvents", - "ABSBotRequests", - "ABSChannelToBotRequests", - "ABSDependenciesRequests", - "ACICollaborationAudit", - "ACRConnectedClientList", - "ACSEmailSendMailOperational", - "ACSEmailStatusUpdateOperational", - "ACSEmailUserEngagementOperational", - "ADFActivityRun", - "ADFPipelineRun", - "ADFSandboxActivityRun", - "ADFSandboxPipelineRun", - "ADFSSignInLogs", - "ADFTriggerRun", - "ADPAudit", - "ADPDiagnostics", - "ADPRequests", - "ADTDigitalTwinsOperation", - "ADTEventRoutesOperation", - "ADTModelsOperation", - "ADTQueryOperation", - "AgriFoodApplicationAuditLogs", - "AgriFoodFarmManagementLogs", - "AgriFoodFarmOperationLogs", - "AgriFoodInsightLogs", - "AgriFoodJobProcessedLogs", - "AgriFoodModelInferenceLogs", - "AgriFoodProviderAuthLogs", - "AgriFoodSatelliteLogs", - "AgriFoodWeatherLogs", - "AGSGrafanaLoginEvents", - "AmlComputeClusterEvent", - "AmlComputeClusterNodeEvent", - "AmlComputeCpuGpuUtilization", - "AmlComputeJobEvent", - "AmlOnlineEndpointTrafficLog", - "AmlRunStatusChangedEvent", - "ANFFileAccess", - "AppAvailabilityResults", - "AuditLogs", - "BaiClusterEvent", - "BaiClusterNodeEvent", - "BaiJobEvent", - "ContainerAppConsoleLogs", - "ContainerAppSystemLogs", - "DSMAzureBlobStorageLogs", - "FunctionAppLogs", - "IoTHubDistributedTracing", - "MicrosoftAzureBastionAuditLogs", - "MicrosoftHealthcareApisAuditLogs", - "NSPAccessLogs", - "OEPAirFlowTask", - "OEPElasticOperator", - "OEPElasticsearch", - "PFTitleAuditLogs", - "PurviewSecurityLogs", - "SignalRServiceDiagnosticLogs", - "SigninLogs", - "StorageBlobLogs", - "StorageCacheOperationEvents", - "StorageCacheUpgradeEvents", - "StorageCacheWarningEvents", - "StorageFileLogs", - "StorageQueueLogs", - "StorageTableLogs", - "SynapseGatewayApiRequests", - "SynapseGatewayEvents", - "SynapseIntegrationActivityRuns", - "SynapseIntegrationActivityRunsEnded", - "SynapseIntegrationPipelineRuns", - "SynapseIntegrationPipelineRunsEnded", - "SynapseIntegrationTriggerRuns", - "SynapseIntegrationTriggerRunsEnded", - "SynapseLinkEvent", - "SynapseRBACEvents", - "SynapseRbacOperations", - "TSIIngress", - "VIAudit", - "VIIndexing", - "WebPubSubConnectivity", - "WebPubSubHttpRequest", - "WebPubSubMessaging" - ], - "extraction": null, - "common": false - }, - { - "name": "AppId", - "displayName": "AppId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AADManagedIdentitySignInLogs", - "AADNonInteractiveUserSignInLogs", - "AADRiskyServicePrincipals", - "AADServicePrincipalRiskEvents", - "AADServicePrincipalSignInLogs", - "ADFSSignInLogs", - "NSPAccessLogs", - "SigninLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "AuthenticationContextClassReferences", - "displayName": "AuthenticationContextClassReferences", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AADManagedIdentitySignInLogs", - "AADNonInteractiveUserSignInLogs", - "AADServicePrincipalSignInLogs", - "SigninLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "AuthenticationProcessingDetails", - "displayName": "AuthenticationProcessingDetails", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AADManagedIdentitySignInLogs", - "AADNonInteractiveUserSignInLogs", - "AADServicePrincipalSignInLogs", - "ADFSSignInLogs", - "SigninLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ConditionalAccessPolicies", - "displayName": "ConditionalAccessPolicies", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AADManagedIdentitySignInLogs", - "AADNonInteractiveUserSignInLogs", - "AADServicePrincipalSignInLogs", - "ADFSSignInLogs", - "SigninLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ConditionalAccessPoliciesV2", - "displayName": "ConditionalAccessPoliciesV2", - "type": "Dynamic", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AADManagedIdentitySignInLogs", - "AADNonInteractiveUserSignInLogs", - "AADServicePrincipalSignInLogs", - "ADFSSignInLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ConditionalAccessStatus", - "displayName": "ConditionalAccessStatus", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AADManagedIdentitySignInLogs", - "AADNonInteractiveUserSignInLogs", - "AADServicePrincipalSignInLogs", - "ADFSSignInLogs", - "SigninLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "FederatedCredentialId", - "displayName": "FederatedCredentialId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AADManagedIdentitySignInLogs", - "AADServicePrincipalSignInLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "Id", - "displayName": "Id", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AADManagedIdentitySignInLogs", - "AADNonInteractiveUserSignInLogs", - "AADProvisioningLogs", - "AADRiskyServicePrincipals", - "AADRiskyUsers", - "AADServicePrincipalRiskEvents", - "AADServicePrincipalSignInLogs", - "AADUserRiskEvents", - "ADFSSignInLogs", - "AuditLogs", - "AzureDevOpsAuditing", - "HDInsightRangerAuditLogs", - "HDInsightStormTopologyMetrics", - "SigninLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "IPAddress", - "displayName": "IPAddress", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AADManagedIdentitySignInLogs", - "AADNonInteractiveUserSignInLogs", - "AADServicePrincipalSignInLogs", - "ADFSSignInLogs", - "SigninLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "LocationDetails", - "displayName": "LocationDetails", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AADManagedIdentitySignInLogs", - "AADNonInteractiveUserSignInLogs", - "AADServicePrincipalSignInLogs", - "SigninLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ResourceDisplayName", - "displayName": "ResourceDisplayName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AADManagedIdentitySignInLogs", - "AADNonInteractiveUserSignInLogs", - "AADServicePrincipalSignInLogs", - "ADFSSignInLogs", - "SigninLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ResourceIdentity", - "displayName": "ResourceIdentity", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AADManagedIdentitySignInLogs", - "AADNonInteractiveUserSignInLogs", - "AADServicePrincipalSignInLogs", - "ADFSSignInLogs", - "SigninLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ResourceServicePrincipalId", - "displayName": "ResourceServicePrincipalId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AADManagedIdentitySignInLogs", - "AADNonInteractiveUserSignInLogs", - "AADServicePrincipalSignInLogs", - "SigninLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ServicePrincipalCredentialKeyId", - "displayName": "ServicePrincipalCredentialKeyId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AADManagedIdentitySignInLogs", - "AADServicePrincipalSignInLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ServicePrincipalCredentialThumbprint", - "displayName": "ServicePrincipalCredentialThumbprint", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AADManagedIdentitySignInLogs", - "AADServicePrincipalSignInLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ServicePrincipalId", - "displayName": "ServicePrincipalId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AADManagedIdentitySignInLogs", - "AADNonInteractiveUserSignInLogs", - "AADServicePrincipalRiskEvents", - "AADServicePrincipalSignInLogs", - "SigninLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ServicePrincipalName", - "displayName": "ServicePrincipalName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AADManagedIdentitySignInLogs", - "AADServicePrincipalSignInLogs", - "SigninLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "UniqueTokenIdentifier", - "displayName": "UniqueTokenIdentifier", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AADManagedIdentitySignInLogs", - "AADNonInteractiveUserSignInLogs", - "AADServicePrincipalSignInLogs", - "ADFSSignInLogs", - "SigninLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "AlternateSignInName", - "displayName": "AlternateSignInName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AADNonInteractiveUserSignInLogs", - "ADFSSignInLogs", - "SigninLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "AppDisplayName", - "displayName": "AppDisplayName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AADNonInteractiveUserSignInLogs", - "ADFSSignInLogs", - "SigninLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "AuthenticationDetails", - "displayName": "AuthenticationDetails", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AADNonInteractiveUserSignInLogs", - "ADFSSignInLogs", - "SigninLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "AuthenticationMethodsUsed", - "displayName": "AuthenticationMethodsUsed", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AADNonInteractiveUserSignInLogs", - "SigninLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "AuthenticationRequirement", - "displayName": "AuthenticationRequirement", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AADNonInteractiveUserSignInLogs", - "ADFSSignInLogs", - "SigninLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "AuthenticationRequirementPolicies", - "displayName": "AuthenticationRequirementPolicies", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AADNonInteractiveUserSignInLogs", - "ADFSSignInLogs", - "SigninLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "AutonomousSystemNumber", - "displayName": "AutonomousSystemNumber", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AADNonInteractiveUserSignInLogs", - "SigninLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ClientAppUsed", - "displayName": "ClientAppUsed", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AADNonInteractiveUserSignInLogs", - "SigninLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "CreatedDateTime", - "displayName": "CreatedDateTime", - "type": "DateTime", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AADNonInteractiveUserSignInLogs", - "ADFSSignInLogs", - "SigninLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "DeviceDetail", - "displayName": "DeviceDetail", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AADNonInteractiveUserSignInLogs", - "ADFSSignInLogs", - "SigninLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "HomeTenantId", - "displayName": "HomeTenantId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AADNonInteractiveUserSignInLogs", - "SigninLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "IsInteractive", - "displayName": "IsInteractive", - "type": "Bool", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AADNonInteractiveUserSignInLogs", - "ADFSSignInLogs", - "SigninLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "IsRisky", - "displayName": "IsRisky", - "type": "Bool", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AADNonInteractiveUserSignInLogs", - "SigninLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "MfaDetail", - "displayName": "MfaDetail", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AADNonInteractiveUserSignInLogs", - "SigninLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "NetworkLocationDetails", - "displayName": "NetworkLocationDetails", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AADNonInteractiveUserSignInLogs", - "ADFSSignInLogs", - "SigninLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "OriginalRequestId", - "displayName": "OriginalRequestId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AADNonInteractiveUserSignInLogs", - "ADFSSignInLogs", - "SigninLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ProcessingTimeInMs", - "displayName": "ProcessingTimeInMs", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AADNonInteractiveUserSignInLogs", - "ADFSSignInLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ResourceTenantId", - "displayName": "ResourceTenantId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AADNonInteractiveUserSignInLogs", - "ADFSSignInLogs", - "SigninLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "RiskDetail", - "displayName": "RiskDetail", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AADNonInteractiveUserSignInLogs", - "AADRiskyServicePrincipals", - "AADRiskyUsers", - "AADServicePrincipalRiskEvents", - "AADUserRiskEvents", - "SigninLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "RiskEventTypes", - "displayName": "RiskEventTypes", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AADNonInteractiveUserSignInLogs", - "SigninLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "RiskEventTypes_V2", - "displayName": "RiskEventTypes_V2", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AADNonInteractiveUserSignInLogs", - "SigninLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "RiskLevelAggregated", - "displayName": "RiskLevelAggregated", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AADNonInteractiveUserSignInLogs", - "SigninLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "RiskLevelDuringSignIn", - "displayName": "RiskLevelDuringSignIn", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AADNonInteractiveUserSignInLogs", - "SigninLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "RiskState", - "displayName": "RiskState", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AADNonInteractiveUserSignInLogs", - "AADRiskyServicePrincipals", - "AADRiskyUsers", - "AADServicePrincipalRiskEvents", - "AADUserRiskEvents", - "SigninLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "SessionLifetimePolicies", - "displayName": "SessionLifetimePolicies", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AADNonInteractiveUserSignInLogs", - "SigninLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "SignInEventTypes", - "displayName": "SignInEventTypes", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AADNonInteractiveUserSignInLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "TokenIssuerName", - "displayName": "TokenIssuerName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AADNonInteractiveUserSignInLogs", - "ADFSSignInLogs", - "SigninLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "TokenIssuerType", - "displayName": "TokenIssuerType", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AADNonInteractiveUserSignInLogs", - "AADServicePrincipalRiskEvents", - "AADUserRiskEvents", - "ADFSSignInLogs", - "SigninLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "UserDisplayName", - "displayName": "UserDisplayName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AADNonInteractiveUserSignInLogs", - "AADRiskyUsers", - "AADUserRiskEvents", - "ADFSSignInLogs", - "AppServiceAuditLogs", - "SigninLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "UserId", - "displayName": "UserId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AADNonInteractiveUserSignInLogs", - "AADUserRiskEvents", - "ACSChatIncomingOperations", - "ADFSSignInLogs", - "ApiManagementGatewayLogs", - "AppAvailabilityResults", - "AppBrowserTimings", - "AppDependencies", - "AppEvents", - "AppExceptions", - "AppMetrics", - "AppPageViews", - "AppPerformanceCounters", - "AppRequests", - "AppTraces", - "IntuneDeviceComplianceOrg", - "PFTitleAuditLogs", - "SignalRServiceDiagnosticLogs", - "SigninLogs", - "WebPubSubConnectivity", - "WebPubSubMessaging" - ], - "extraction": null, - "common": false - }, - { - "name": "UserPrincipalName", - "displayName": "UserPrincipalName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AADNonInteractiveUserSignInLogs", - "AADRiskyUsers", - "AADUserRiskEvents", - "ADFSSignInLogs", - "AUIEventsAudit", - "AUIEventsOperational", - "CIEventsAudit", - "CIEventsOperational", - "SigninLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "Action", - "displayName": "Action", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": true, - "ownerType": [ - "AADProvisioningLogs", - "AZFWApplicationRule", - "AZFWApplicationRuleAggregation", - "AZFWIdpsSignature", - "AZFWNetworkRule", - "AZFWNetworkRuleAggregation", - "AZFWThreatIntel", - "HDInsightRangerAuditLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ChangeId", - "displayName": "ChangeId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AADProvisioningLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "CycleId", - "displayName": "CycleId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AADProvisioningLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "InitiatedBy", - "displayName": "InitiatedBy", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AADProvisioningLogs", - "AgriFoodJobProcessedLogs", - "AuditLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "JobId", - "displayName": "JobId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AADProvisioningLogs", - "AgriFoodJobProcessedLogs", - "AmlComputeJobEvent", - "BaiJobEvent", - "HDInsightSparkJobEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "ModifiedProperties", - "displayName": "ModifiedProperties", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AADProvisioningLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ProvisioningSteps", - "displayName": "ProvisioningSteps", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AADProvisioningLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ServicePrincipal", - "displayName": "ServicePrincipal", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AADProvisioningLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "SourceIdentity", - "displayName": "SourceIdentity", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AADProvisioningLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "StatusInfo", - "displayName": "StatusInfo", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": true, - "ownerType": [ - "AADProvisioningLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "TargetIdentity", - "displayName": "TargetIdentity", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AADProvisioningLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "TargetSystem", - "displayName": "TargetSystem", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AADProvisioningLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ProvisioningAction", - "displayName": "ProvisioningAction", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AADProvisioningLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ProvisioningStatusInfo", - "displayName": "ProvisioningStatusInfo", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AADProvisioningLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "AccountEnabled", - "displayName": "AccountEnabled", - "type": "Bool", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AADRiskyServicePrincipals" - ], - "extraction": null, - "common": false - }, - { - "name": "DisplayName", - "displayName": "DisplayName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AADRiskyServicePrincipals", - "VMComputer", - "VMProcess" - ], - "extraction": null, - "common": false - }, - { - "name": "IsProcessing", - "displayName": "IsProcessing", - "type": "Bool", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AADRiskyServicePrincipals", - "AADRiskyUsers" - ], - "extraction": null, - "common": false - }, - { - "name": "RiskLastUpdatedDateTime", - "displayName": "RiskLastUpdatedDateTime", - "type": "DateTime", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AADRiskyServicePrincipals", - "AADRiskyUsers" - ], - "extraction": null, - "common": false - }, - { - "name": "RiskLevel", - "displayName": "RiskLevel", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AADRiskyServicePrincipals", - "AADRiskyUsers", - "AADServicePrincipalRiskEvents", - "AADUserRiskEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "ServicePrincipalType", - "displayName": "ServicePrincipalType", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AADRiskyServicePrincipals" - ], - "extraction": null, - "common": false - }, - { - "name": "IsDeleted", - "displayName": "IsDeleted", - "type": "Bool", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AADRiskyUsers" - ], - "extraction": null, - "common": false - }, - { - "name": "Activity", - "displayName": "Activity", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AADServicePrincipalRiskEvents", - "AADUserRiskEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "ActivityDateTime", - "displayName": "ActivityDateTime", - "type": "DateTime", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AADServicePrincipalRiskEvents", - "AADUserRiskEvents", - "AuditLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "AdditionalInfo", - "displayName": "AdditionalInfo", - "type": "Dynamic", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AADServicePrincipalRiskEvents", - "AADUserRiskEvents", - "HDInsightRangerAuditLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "DetectedDateTime", - "displayName": "DetectedDateTime", - "type": "DateTime", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AADServicePrincipalRiskEvents", - "AADUserRiskEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "DetectionTimingType", - "displayName": "DetectionTimingType", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AADServicePrincipalRiskEvents", - "AADUserRiskEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "IpAddress", - "displayName": "IpAddress", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AADServicePrincipalRiskEvents", - "AADUserRiskEvents", - "AzureDevOpsAuditing", - "HDInsightJupyterNotebookEvents", - "HDInsightSparkApplicationEvents", - "HDInsightSparkBlockManagerEvents", - "HDInsightSparkEnvironmentEvents", - "HDInsightSparkExecutorEvents", - "HDInsightSparkExtraEvents", - "HDInsightSparkJobEvents", - "HDInsightSparkSQLExecutionEvents", - "HDInsightSparkStageEvents", - "HDInsightSparkStageTaskAccumulables", - "HDInsightSparkTaskEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "KeyIds", - "displayName": "KeyIds", - "type": "Dynamic", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AADServicePrincipalRiskEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "LastUpdatedDateTime", - "displayName": "LastUpdatedDateTime", - "type": "DateTime", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AADServicePrincipalRiskEvents", - "AADUserRiskEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "RiskEventType", - "displayName": "RiskEventType", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AADServicePrincipalRiskEvents", - "AADUserRiskEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "ServicePrincipalDisplayName", - "displayName": "ServicePrincipalDisplayName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AADServicePrincipalRiskEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "Source", - "displayName": "Source", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AADServicePrincipalRiskEvents", - "AADUserRiskEvents", - "AppRequests", - "AppServiceAppLogs", - "Event", - "OEPElasticsearch", - "WVDCheckpoints", - "WVDErrors" - ], - "extraction": null, - "common": false - }, - { - "name": "BotId", - "displayName": "BotId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ABSBotRequests", - "ABSChannelToBotRequests", - "ABSDependenciesRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "ResultCode", - "displayName": "ResultCode", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ABSBotRequests", - "ABSChannelToBotRequests", - "ABSDependenciesRequests", - "AppDependencies", - "AppRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "Channel", - "displayName": "Channel", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ABSBotRequests", - "ABSChannelToBotRequests", - "ABSDependenciesRequests", - "AzureActivityV2" - ], - "extraction": null, - "common": false - }, - { - "name": "EntitlementResult", - "displayName": "EntitlementResult", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACICollaborationAudit" - ], - "extraction": null, - "common": false - }, - { - "name": "TargetResourceId", - "displayName": "TargetResourceId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACICollaborationAudit", - "AutoscaleEvaluationsLog", - "AutoscaleScaleActionsLog", - "MicrosoftAzureBastionAuditLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "TargetResourceType", - "displayName": "TargetResourceType", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACICollaborationAudit" - ], - "extraction": null, - "common": false - }, - { - "name": "ParticipantName", - "displayName": "ParticipantName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACICollaborationAudit" - ], - "extraction": null, - "common": false - }, - { - "name": "ParticipantTenantId", - "displayName": "ParticipantTenantId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ACICollaborationAudit" - ], - "extraction": null, - "common": false - }, - { - "name": "UserName", - "displayName": "UserName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACICollaborationAudit", - "Event", - "HDInsightGatewayAuditLogs", - "IntuneDeviceComplianceOrg", - "IntuneDevices", - "MicrosoftAzureBastionAuditLogs", - "PFTitleAuditLogs", - "VMProcess", - "WVDCheckpoints", - "WVDConnections", - "WVDErrors", - "WVDFeeds", - "WVDManagement" - ], - "extraction": null, - "common": false - }, - { - "name": "GrantType", - "displayName": "GrantType", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACICollaborationAudit" - ], - "extraction": null, - "common": false - }, - { - "name": "GrantSource", - "displayName": "GrantSource", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACICollaborationAudit" - ], - "extraction": null, - "common": false - }, - { - "name": "GrantSourceType", - "displayName": "GrantSourceType", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACICollaborationAudit" - ], - "extraction": null, - "common": false - }, - { - "name": "GrantCorrelationId", - "displayName": "GrantCorrelationId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ACICollaborationAudit" - ], - "extraction": null, - "common": false - }, - { - "name": "EntitlementSummary", - "displayName": "EntitlementSummary", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACICollaborationAudit" - ], - "extraction": null, - "common": false - }, - { - "name": "ReferencedResourceId", - "displayName": "ReferencedResourceId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACICollaborationAudit" - ], - "extraction": null, - "common": false - }, - { - "name": "ReferencedResourceType", - "displayName": "ReferencedResourceType", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACICollaborationAudit" - ], - "extraction": null, - "common": false - }, - { - "name": "CacheName", - "displayName": "CacheName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACRConnectedClientList" - ], - "extraction": null, - "common": false - }, - { - "name": "RoleInstance", - "displayName": "RoleInstance", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACRConnectedClientList", - "MicrosoftDynamicsTelemetryPerformanceLogs", - "MicrosoftDynamicsTelemetrySystemMetricsLogs", - "W3CIISLog" - ], - "extraction": null, - "common": false - }, - { - "name": "ClientIp", - "displayName": "ClientIp", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACRConnectedClientList", - "SQLSecurityAuditEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "PrivateLinkIpv6", - "displayName": "PrivateLinkIpv6", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACRConnectedClientList" - ], - "extraction": null, - "common": false - }, - { - "name": "ClientCount", - "displayName": "ClientCount", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACRConnectedClientList" - ], - "extraction": null, - "common": false - }, - { - "name": "URI", - "displayName": "URI", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACSAuthIncomingOperations", - "ACSChatIncomingOperations", - "ACSNetworkTraversalIncomingOperations", - "ACSSMSIncomingOperations" - ], - "extraction": null, - "common": false - }, - { - "name": "Scopes", - "displayName": "Scopes", - "type": "Dynamic", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACSAuthIncomingOperations" - ], - "extraction": null, - "common": false - }, - { - "name": "SdkType", - "displayName": "SdkType", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACSAuthIncomingOperations", - "ACSChatIncomingOperations", - "ACSNetworkTraversalIncomingOperations", - "ACSSMSIncomingOperations" - ], - "extraction": null, - "common": false - }, - { - "name": "PlatformType", - "displayName": "PlatformType", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACSAuthIncomingOperations", - "ACSChatIncomingOperations", - "ACSNetworkTraversalIncomingOperations", - "ACSSMSIncomingOperations" - ], - "extraction": null, - "common": false - }, - { - "name": "UsageType", - "displayName": "UsageType", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACSBillingUsage" - ], - "extraction": null, - "common": false - }, - { - "name": "UnitType", - "displayName": "UnitType", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACSBillingUsage" - ], - "extraction": null, - "common": false - }, - { - "name": "Quantity", - "displayName": "Quantity", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACSBillingUsage", - "Usage" - ], - "extraction": null, - "common": false - }, - { - "name": "StartTime", - "displayName": "StartTime", - "type": "DateTime", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACSBillingUsage", - "ADFSSISPackageExecutableStatistics", - "ADFSSISPackageExecutionComponentPhases", - "AUIEventsOperational", - "CIEventsOperational", - "HDInsightSparkSQLExecutionEvents", - "MicrosoftDataShareReceivedSnapshotLog", - "MicrosoftDataShareSentSnapshotLog", - "PowerBIDatasetsTenantPreview", - "PowerBIDatasetsWorkspacePreview", - "SynapseSqlPoolDmsWorkers", - "SynapseSqlPoolExecRequests", - "SynapseSqlPoolRequestSteps", - "SynapseSqlPoolSqlRequests", - "Usage", - "VMProcess" - ], - "extraction": null, - "common": false - }, - { - "name": "EndTime", - "displayName": "EndTime", - "type": "DateTime", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACSBillingUsage", - "ADFSSISPackageExecutableStatistics", - "ADFSSISPackageExecutionComponentPhases", - "AUIEventsOperational", - "CIEventsOperational", - "HDInsightSparkSQLExecutionEvents", - "MicrosoftDataShareReceivedSnapshotLog", - "MicrosoftDataShareSentSnapshotLog", - "SynapseSqlPoolDmsWorkers", - "SynapseSqlPoolExecRequests", - "SynapseSqlPoolRequestSteps", - "SynapseSqlPoolSqlRequests", - "Usage" - ], - "extraction": null, - "common": false - }, - { - "name": "UserIdA", - "displayName": "UserIdA", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACSBillingUsage" - ], - "extraction": null, - "common": false - }, - { - "name": "UserIdB", - "displayName": "UserIdB", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACSBillingUsage" - ], - "extraction": null, - "common": false - }, - { - "name": "Identifier", - "displayName": "Identifier", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACSCallDiagnostics", - "ACSCallSummary", - "AUIEventsOperational", - "CIEventsOperational" - ], - "extraction": null, - "common": false - }, - { - "name": "ParticipantId", - "displayName": "ParticipantId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACSCallDiagnostics", - "ACSCallSummary" - ], - "extraction": null, - "common": false - }, - { - "name": "EndpointId", - "displayName": "EndpointId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACSCallDiagnostics", - "ACSCallSummary" - ], - "extraction": null, - "common": false - }, - { - "name": "EndpointType", - "displayName": "EndpointType", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACSCallDiagnostics", - "ACSCallSummary" - ], - "extraction": null, - "common": false - }, - { - "name": "MediaType", - "displayName": "MediaType", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACSCallDiagnostics", - "ContainerRegistryRepositoryEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "StreamId", - "displayName": "StreamId", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACSCallDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "TransportType", - "displayName": "TransportType", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACSCallDiagnostics", - "SignalRServiceDiagnosticLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "RoundTripTimeAvg", - "displayName": "RoundTripTimeAvg", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACSCallDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "RoundTripTimeMax", - "displayName": "RoundTripTimeMax", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACSCallDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "JitterAvg", - "displayName": "JitterAvg", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACSCallDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "JitterMax", - "displayName": "JitterMax", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACSCallDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "PacketLossRateAvg", - "displayName": "PacketLossRateAvg", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACSCallDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "PacketLossRateMax", - "displayName": "PacketLossRateMax", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACSCallDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "RecordingId", - "displayName": "RecordingId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACSCallRecordingSummary" - ], - "extraction": null, - "common": false - }, - { - "name": "RecordingEndReason", - "displayName": "RecordingEndReason", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACSCallRecordingSummary" - ], - "extraction": null, - "common": false - }, - { - "name": "ChunkCount", - "displayName": "ChunkCount", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACSCallRecordingSummary" - ], - "extraction": null, - "common": false - }, - { - "name": "RecordingStartTime", - "displayName": "RecordingStartTime", - "type": "DateTime", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACSCallRecordingSummary" - ], - "extraction": null, - "common": false - }, - { - "name": "RecordingLength", - "displayName": "RecordingLength", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACSCallRecordingSummary" - ], - "extraction": null, - "common": false - }, - { - "name": "ContentType", - "displayName": "ContentType", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACSCallRecordingSummary", - "AzureAttestationDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "ChannelType", - "displayName": "ChannelType", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACSCallRecordingSummary" - ], - "extraction": null, - "common": false - }, - { - "name": "FormatType", - "displayName": "FormatType", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACSCallRecordingSummary" - ], - "extraction": null, - "common": false - }, - { - "name": "AudioChannelsCount", - "displayName": "AudioChannelsCount", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACSCallRecordingSummary" - ], - "extraction": null, - "common": false - }, - { - "name": "CallStartTime", - "displayName": "CallStartTime", - "type": "DateTime", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACSCallSummary" - ], - "extraction": null, - "common": false - }, - { - "name": "CallDuration", - "displayName": "CallDuration", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACSCallSummary" - ], - "extraction": null, - "common": false - }, - { - "name": "CallType", - "displayName": "CallType", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACSCallSummary" - ], - "extraction": null, - "common": false - }, - { - "name": "TeamsThreadId", - "displayName": "TeamsThreadId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACSCallSummary" - ], - "extraction": null, - "common": false - }, - { - "name": "ParticipantStartTime", - "displayName": "ParticipantStartTime", - "type": "DateTime", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACSCallSummary" - ], - "extraction": null, - "common": false - }, - { - "name": "ParticipantDuration", - "displayName": "ParticipantDuration", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACSCallSummary" - ], - "extraction": null, - "common": false - }, - { - "name": "ParticipantEndReason", - "displayName": "ParticipantEndReason", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACSCallSummary" - ], - "extraction": null, - "common": false - }, - { - "name": "SdkVersion", - "displayName": "SdkVersion", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACSCallSummary" - ], - "extraction": null, - "common": false - }, - { - "name": "OsVersion", - "displayName": "OsVersion", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACSCallSummary", - "AppCenterError" - ], - "extraction": null, - "common": false - }, - { - "name": "ChatThreadId", - "displayName": "ChatThreadId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACSChatIncomingOperations" - ], - "extraction": null, - "common": false - }, - { - "name": "ChatMessageId", - "displayName": "ChatMessageId", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACSChatIncomingOperations" - ], - "extraction": null, - "common": false - }, - { - "name": "Size", - "displayName": "Size", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACSEmailSendMailOperational", - "ContainerRegistryRepositoryEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "ToRecipientsCount", - "displayName": "ToRecipientsCount", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACSEmailSendMailOperational" - ], - "extraction": null, - "common": false - }, - { - "name": "CcRecipientsCount", - "displayName": "CcRecipientsCount", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACSEmailSendMailOperational" - ], - "extraction": null, - "common": false - }, - { - "name": "BccRecipientsCount", - "displayName": "BccRecipientsCount", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACSEmailSendMailOperational" - ], - "extraction": null, - "common": false - }, - { - "name": "UniqueRecipientsCount", - "displayName": "UniqueRecipientsCount", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACSEmailSendMailOperational" - ], - "extraction": null, - "common": false - }, - { - "name": "AttachmentsCount", - "displayName": "AttachmentsCount", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACSEmailSendMailOperational" - ], - "extraction": null, - "common": false - }, - { - "name": "RecipientId", - "displayName": "RecipientId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACSEmailStatusUpdateOperational", - "ACSEmailUserEngagementOperational" - ], - "extraction": null, - "common": false - }, - { - "name": "DeliveryStatus", - "displayName": "DeliveryStatus", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACSEmailStatusUpdateOperational" - ], - "extraction": null, - "common": false - }, - { - "name": "EngagementType", - "displayName": "EngagementType", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACSEmailUserEngagementOperational" - ], - "extraction": null, - "common": false - }, - { - "name": "EngagementContext", - "displayName": "EngagementContext", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACSEmailUserEngagementOperational" - ], - "extraction": null, - "common": false - }, - { - "name": "RelayLocation", - "displayName": "RelayLocation", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACSNetworkTraversalDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "Protocol", - "displayName": "Protocol", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACSNetworkTraversalDiagnostics", - "AmlOnlineEndpointTrafficLog", - "AppServiceAuditLogs", - "ATCExpressRouteCircuitIpfix", - "AZFWApplicationRule", - "AZFWApplicationRuleAggregation", - "AZFWDnsQuery", - "AZFWIdpsSignature", - "AZFWNatRule", - "AZFWNatRuleAggregation", - "AZFWNetworkRule", - "AZFWNetworkRuleAggregation", - "AZFWThreatIntel", - "MicrosoftAzureBastionAuditLogs", - "NWConnectionMonitorDestinationListenerResult", - "NWConnectionMonitorDNSResult", - "NWConnectionMonitorPathResult", - "NWConnectionMonitorTestResult", - "StorageBlobLogs", - "StorageFileLogs", - "StorageQueueLogs", - "StorageTableLogs", - "VMBoundPort", - "VMConnection" - ], - "extraction": null, - "common": false - }, - { - "name": "Reason", - "displayName": "Reason", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACSNetworkTraversalDiagnostics", - "ContainerAppSystemLogs", - "KubeEvents", - "NetworkAccessTraffic" - ], - "extraction": null, - "common": false - }, - { - "name": "BytesSent", - "displayName": "BytesSent", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACSNetworkTraversalDiagnostics", - "VMBoundPort", - "VMConnection" - ], - "extraction": null, - "common": false - }, - { - "name": "BytesReceived", - "displayName": "BytesReceived", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACSNetworkTraversalDiagnostics", - "VMBoundPort", - "VMConnection" - ], - "extraction": null, - "common": false - }, - { - "name": "TotalBytesFromClient", - "displayName": "TotalBytesFromClient", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACSNetworkTraversalDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "TotalBytesToClient", - "displayName": "TotalBytesToClient", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACSNetworkTraversalDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "RouteType", - "displayName": "RouteType", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACSNetworkTraversalIncomingOperations" - ], - "extraction": null, - "common": false - }, - { - "name": "TTL", - "displayName": "TTL", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACSNetworkTraversalIncomingOperations" - ], - "extraction": null, - "common": false - }, - { - "name": "RoomLifespan", - "displayName": "RoomLifespan", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACSRoomsIncomingOperations" - ], - "extraction": null, - "common": false - }, - { - "name": "RoomParticipantsCount", - "displayName": "RoomParticipantsCount", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACSRoomsIncomingOperations" - ], - "extraction": null, - "common": false - }, - { - "name": "RoomParticipantsConsumer", - "displayName": "RoomParticipantsConsumer", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACSRoomsIncomingOperations" - ], - "extraction": null, - "common": false - }, - { - "name": "RoomParticipantsAttendee", - "displayName": "RoomParticipantsAttendee", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACSRoomsIncomingOperations" - ], - "extraction": null, - "common": false - }, - { - "name": "RoomParticipantsPresenter", - "displayName": "RoomParticipantsPresenter", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACSRoomsIncomingOperations" - ], - "extraction": null, - "common": false - }, - { - "name": "RoomJoinPolicy", - "displayName": "RoomJoinPolicy", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACSRoomsIncomingOperations" - ], - "extraction": null, - "common": false - }, - { - "name": "OutgoingMessageLength", - "displayName": "OutgoingMessageLength", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACSSMSIncomingOperations" - ], - "extraction": null, - "common": false - }, - { - "name": "IncomingMessageLength", - "displayName": "IncomingMessageLength", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACSSMSIncomingOperations" - ], - "extraction": null, - "common": false - }, - { - "name": "DeliveryAttempts", - "displayName": "DeliveryAttempts", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACSSMSIncomingOperations" - ], - "extraction": null, - "common": false - }, - { - "name": "PhoneNumber", - "displayName": "PhoneNumber", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACSSMSIncomingOperations", - "IntuneDevices" - ], - "extraction": null, - "common": false - }, - { - "name": "NumberType", - "displayName": "NumberType", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ACSSMSIncomingOperations" - ], - "extraction": null, - "common": false - }, - { - "name": "MG", - "displayName": "MG", - "type": "Guid", - "indexed": true, - "stored": true, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "Alert", - "Event", - "Heartbeat", - "Operation", - "Perf", - "Syslog", - "W3CIISLog" - ], - "extraction": null, - "common": false - }, - { - "name": "Description", - "displayName": "Description", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AZFWIdpsSignature", - "AzureActivityV2", - "AzureMetrics", - "StorageCacheUpgradeEvents", - "StorageCacheWarningEvents", - "VIAudit", - "VMConnection", - "VMProcess", - "W3CIISLog" - ], - "extraction": null, - "common": false - }, - { - "name": "Computer", - "displayName": "Computer", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "Alert", - "ComputerGroup", - "ContainerImageInventory", - "ContainerInventory", - "ContainerLog", - "ContainerNodeInventory", - "ContainerServiceLog", - "ETWEvent", - "Event", - "Heartbeat", - "InsightsMetrics", - "KubeEvents", - "KubeMonAgentEvents", - "KubeNodeInventory", - "KubePodInventory", - "Operation", - "Perf", - "ServiceFabricOperationalEvent", - "ServiceFabricReliableActorEvent", - "ServiceFabricReliableServiceEvent", - "Syslog", - "Usage", - "VMBoundPort", - "VMComputer", - "VMConnection", - "VMProcess", - "W3CIISLog", - "WorkloadDiagnosticLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "Domain", - "displayName": "Domain", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightHiveQueryAppStats" - ], - "extraction": null, - "common": false - }, - { - "name": "AlertCode", - "displayName": "AlertCode", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupAlerts" - ], - "extraction": null, - "common": false - }, - { - "name": "AlertConsolidationStatus", - "displayName": "AlertConsolidationStatus", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupAlerts" - ], - "extraction": null, - "common": false - }, - { - "name": "AlertOccurrenceDateTime", - "displayName": "AlertOccurrenceDateTime", - "type": "DateTime", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupAlerts" - ], - "extraction": null, - "common": false - }, - { - "name": "AlertRaisedOn", - "displayName": "AlertRaisedOn", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupAlerts" - ], - "extraction": null, - "common": false - }, - { - "name": "AlertSeverity", - "displayName": "AlertSeverity", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupAlerts", - "Alert" - ], - "extraction": null, - "common": false - }, - { - "name": "AlertStatus", - "displayName": "AlertStatus", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupAlerts", - "Alert" - ], - "extraction": null, - "common": false - }, - { - "name": "AlertTimeToResolveInMinutes", - "displayName": "AlertTimeToResolveInMinutes", - "type": "Double", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupAlerts" - ], - "extraction": null, - "common": false - }, - { - "name": "AlertType", - "displayName": "AlertType", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupAlerts" - ], - "extraction": null, - "common": false - }, - { - "name": "AlertUniqueId", - "displayName": "AlertUniqueId", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupAlerts", - "Alert" - ], - "extraction": null, - "common": false - }, - { - "name": "BackupItemUniqueId", - "displayName": "BackupItemUniqueId", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupAlerts", - "AddonAzureBackupJobs", - "AddonAzureBackupProtectedInstance", - "AddonAzureBackupStorage", - "CoreAzureBackup" - ], - "extraction": null, - "common": false - }, - { - "name": "BackupManagementServerUniqueId", - "displayName": "BackupManagementServerUniqueId", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupAlerts", - "AddonAzureBackupJobs", - "AddonAzureBackupPolicy", - "AddonAzureBackupProtectedInstance", - "AddonAzureBackupStorage", - "CoreAzureBackup" - ], - "extraction": null, - "common": false - }, - { - "name": "BackupManagementType", - "displayName": "BackupManagementType", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupAlerts", - "AddonAzureBackupJobs", - "AddonAzureBackupPolicy", - "AddonAzureBackupProtectedInstance", - "AddonAzureBackupStorage", - "CoreAzureBackup" - ], - "extraction": null, - "common": false - }, - { - "name": "CountOfAlertsConsolidated", - "displayName": "CountOfAlertsConsolidated", - "type": "Int", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupAlerts" - ], - "extraction": null, - "common": false - }, - { - "name": "ProtectedContainerUniqueId", - "displayName": "ProtectedContainerUniqueId", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupAlerts", - "AddonAzureBackupJobs", - "AddonAzureBackupProtectedInstance", - "AddonAzureBackupStorage", - "CoreAzureBackup" - ], - "extraction": null, - "common": false - }, - { - "name": "RecommendedAction", - "displayName": "RecommendedAction", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupAlerts" - ], - "extraction": null, - "common": false - }, - { - "name": "SchemaVersion", - "displayName": "SchemaVersion", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupAlerts", - "AddonAzureBackupJobs", - "AddonAzureBackupPolicy", - "AddonAzureBackupProtectedInstance", - "AddonAzureBackupStorage", - "ANFFileAccess", - "ATCExpressRouteCircuitIpfix", - "CoreAzureBackup", - "StorageBlobLogs", - "StorageFileLogs", - "StorageQueueLogs", - "StorageTableLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "State", - "displayName": "State", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupAlerts", - "AddonAzureBackupJobs", - "AddonAzureBackupPolicy", - "AddonAzureBackupProtectedInstance", - "AddonAzureBackupStorage", - "ADXCommand", - "ADXQuery", - "CoreAzureBackup", - "HDInsightAmbariClusterAlerts", - "HDInsightHiveTezAppStats", - "StorageCacheWarningEvents", - "SynapseDXCommand", - "SynapseDXQuery", - "SynapseSqlPoolWaits", - "WVDConnections" - ], - "extraction": null, - "common": false - }, - { - "name": "StorageUniqueId", - "displayName": "StorageUniqueId", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupAlerts", - "AddonAzureBackupStorage" - ], - "extraction": null, - "common": false - }, - { - "name": "VaultUniqueId", - "displayName": "VaultUniqueId", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupAlerts", - "AddonAzureBackupJobs", - "AddonAzureBackupPolicy", - "AddonAzureBackupProtectedInstance", - "AddonAzureBackupStorage", - "CoreAzureBackup" - ], - "extraction": null, - "common": false - }, - { - "name": "AdHocOrScheduledJob", - "displayName": "AdHocOrScheduledJob", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupJobs" - ], - "extraction": null, - "common": false - }, - { - "name": "DataTransferredInMB", - "displayName": "DataTransferredInMB", - "type": "Double", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupJobs" - ], - "extraction": null, - "common": false - }, - { - "name": "JobDurationInSecs", - "displayName": "JobDurationInSecs", - "type": "Double", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupJobs" - ], - "extraction": null, - "common": false - }, - { - "name": "JobFailureCode", - "displayName": "JobFailureCode", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupJobs" - ], - "extraction": null, - "common": false - }, - { - "name": "JobOperation", - "displayName": "JobOperation", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupJobs" - ], - "extraction": null, - "common": false - }, - { - "name": "JobOperationSubType", - "displayName": "JobOperationSubType", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupJobs" - ], - "extraction": null, - "common": false - }, - { - "name": "JobStartDateTime", - "displayName": "JobStartDateTime", - "type": "DateTime", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupJobs" - ], - "extraction": null, - "common": false - }, - { - "name": "JobStatus", - "displayName": "JobStatus", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupJobs" - ], - "extraction": null, - "common": false - }, - { - "name": "JobUniqueId", - "displayName": "JobUniqueId", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupJobs" - ], - "extraction": null, - "common": false - }, - { - "name": "RecoveryJobDestination", - "displayName": "RecoveryJobDestination", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupJobs" - ], - "extraction": null, - "common": false - }, - { - "name": "RecoveryJobRPDateTime", - "displayName": "RecoveryJobRPDateTime", - "type": "DateTime", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupJobs" - ], - "extraction": null, - "common": false - }, - { - "name": "RecoveryJobRPLocation", - "displayName": "RecoveryJobRPLocation", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupJobs" - ], - "extraction": null, - "common": false - }, - { - "name": "RecoveryLocationType", - "displayName": "RecoveryLocationType", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupJobs" - ], - "extraction": null, - "common": false - }, - { - "name": "BackupDaysOfTheWeek", - "displayName": "BackupDaysOfTheWeek", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupPolicy" - ], - "extraction": null, - "common": false - }, - { - "name": "BackupFrequency", - "displayName": "BackupFrequency", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupPolicy" - ], - "extraction": null, - "common": false - }, - { - "name": "BackupTimes", - "displayName": "BackupTimes", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupPolicy" - ], - "extraction": null, - "common": false - }, - { - "name": "DailyRetentionDuration", - "displayName": "DailyRetentionDuration", - "type": "Int", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupPolicy" - ], - "extraction": null, - "common": false - }, - { - "name": "DailyRetentionTimes", - "displayName": "DailyRetentionTimes", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupPolicy" - ], - "extraction": null, - "common": false - }, - { - "name": "DiffBackupDaysofTheWeek", - "displayName": "DiffBackupDaysofTheWeek", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupPolicy" - ], - "extraction": null, - "common": false - }, - { - "name": "DiffBackupFormat", - "displayName": "DiffBackupFormat", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupPolicy" - ], - "extraction": null, - "common": false - }, - { - "name": "DiffBackupRetentionDuration", - "displayName": "DiffBackupRetentionDuration", - "type": "Int", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupPolicy" - ], - "extraction": null, - "common": false - }, - { - "name": "DiffBackupTime", - "displayName": "DiffBackupTime", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupPolicy" - ], - "extraction": null, - "common": false - }, - { - "name": "LogBackupFrequency", - "displayName": "LogBackupFrequency", - "type": "Int", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupPolicy" - ], - "extraction": null, - "common": false - }, - { - "name": "LogBackupRetentionDuration", - "displayName": "LogBackupRetentionDuration", - "type": "Int", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupPolicy" - ], - "extraction": null, - "common": false - }, - { - "name": "MonthlyRetentionDaysOfTheMonth", - "displayName": "MonthlyRetentionDaysOfTheMonth", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupPolicy" - ], - "extraction": null, - "common": false - }, - { - "name": "MonthlyRetentionDaysOfTheWeek", - "displayName": "MonthlyRetentionDaysOfTheWeek", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupPolicy" - ], - "extraction": null, - "common": false - }, - { - "name": "MonthlyRetentionDuration", - "displayName": "MonthlyRetentionDuration", - "type": "Int", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupPolicy" - ], - "extraction": null, - "common": false - }, - { - "name": "MonthlyRetentionFormat", - "displayName": "MonthlyRetentionFormat", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupPolicy" - ], - "extraction": null, - "common": false - }, - { - "name": "MonthlyRetentionTimes", - "displayName": "MonthlyRetentionTimes", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupPolicy" - ], - "extraction": null, - "common": false - }, - { - "name": "MonthlyRetentionWeeksOfTheMonth", - "displayName": "MonthlyRetentionWeeksOfTheMonth", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupPolicy" - ], - "extraction": null, - "common": false - }, - { - "name": "PolicyName", - "displayName": "PolicyName", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupPolicy" - ], - "extraction": null, - "common": false - }, - { - "name": "PolicyUniqueId", - "displayName": "PolicyUniqueId", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupPolicy", - "CoreAzureBackup" - ], - "extraction": null, - "common": false - }, - { - "name": "PolicyTimeZone", - "displayName": "PolicyTimeZone", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupPolicy" - ], - "extraction": null, - "common": false - }, - { - "name": "RetentionDuration", - "displayName": "RetentionDuration", - "type": "Int", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupPolicy" - ], - "extraction": null, - "common": false - }, - { - "name": "RetentionType", - "displayName": "RetentionType", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupPolicy" - ], - "extraction": null, - "common": false - }, - { - "name": "SynchronisationFrequencyPerDay", - "displayName": "SynchronisationFrequencyPerDay", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupPolicy" - ], - "extraction": null, - "common": false - }, - { - "name": "WeeklyRetentionDaysOfTheWeek", - "displayName": "WeeklyRetentionDaysOfTheWeek", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupPolicy" - ], - "extraction": null, - "common": false - }, - { - "name": "WeeklyRetentionDuration", - "displayName": "WeeklyRetentionDuration", - "type": "Int", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupPolicy" - ], - "extraction": null, - "common": false - }, - { - "name": "WeeklyRetentionTimes", - "displayName": "WeeklyRetentionTimes", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupPolicy" - ], - "extraction": null, - "common": false - }, - { - "name": "YearlyRetentionDaysOfTheMonth", - "displayName": "YearlyRetentionDaysOfTheMonth", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupPolicy" - ], - "extraction": null, - "common": false - }, - { - "name": "YearlyRetentionDaysOfTheWeek", - "displayName": "YearlyRetentionDaysOfTheWeek", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupPolicy" - ], - "extraction": null, - "common": false - }, - { - "name": "YearlyRetentionDuration", - "displayName": "YearlyRetentionDuration", - "type": "Int", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupPolicy" - ], - "extraction": null, - "common": false - }, - { - "name": "YearlyRetentionFormat", - "displayName": "YearlyRetentionFormat", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupPolicy" - ], - "extraction": null, - "common": false - }, - { - "name": "YearlyRetentionMonthsOfTheYear", - "displayName": "YearlyRetentionMonthsOfTheYear", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupPolicy" - ], - "extraction": null, - "common": false - }, - { - "name": "YearlyRetentionTimes", - "displayName": "YearlyRetentionTimes", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupPolicy" - ], - "extraction": null, - "common": false - }, - { - "name": "YearlyRetentionWeeksOfTheMonth", - "displayName": "YearlyRetentionWeeksOfTheMonth", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupPolicy" - ], - "extraction": null, - "common": false - }, - { - "name": "PolicySubType", - "displayName": "PolicySubType", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupPolicy" - ], - "extraction": null, - "common": false - }, - { - "name": "BackupIntervalInHours", - "displayName": "BackupIntervalInHours", - "type": "Int", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupPolicy" - ], - "extraction": null, - "common": false - }, - { - "name": "ScheduleWindowDuration", - "displayName": "ScheduleWindowDuration", - "type": "Int", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupPolicy" - ], - "extraction": null, - "common": false - }, - { - "name": "ScheduleWindowStartTime", - "displayName": "ScheduleWindowStartTime", - "type": "DateTime", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupPolicy" - ], - "extraction": null, - "common": false - }, - { - "name": "ArchiveTieringMode", - "displayName": "ArchiveTieringMode", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupPolicy" - ], - "extraction": null, - "common": false - }, - { - "name": "ArchiveTieringDurationType", - "displayName": "ArchiveTieringDurationType", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupPolicy" - ], - "extraction": null, - "common": false - }, - { - "name": "ArchiveTieringDuration", - "displayName": "ArchiveTieringDuration", - "type": "Int", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupPolicy" - ], - "extraction": null, - "common": false - }, - { - "name": "ProtectedInstanceCount", - "displayName": "ProtectedInstanceCount", - "type": "Int", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupProtectedInstance" - ], - "extraction": null, - "common": false - }, - { - "name": "PreferredWorkloadOnVolume", - "displayName": "PreferredWorkloadOnVolume", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupStorage" - ], - "extraction": null, - "common": false - }, - { - "name": "StorageAllocatedInMBs", - "displayName": "StorageAllocatedInMBs", - "type": "Double", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupStorage" - ], - "extraction": null, - "common": false - }, - { - "name": "StorageConsumedInMBs", - "displayName": "StorageConsumedInMBs", - "type": "Double", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupStorage" - ], - "extraction": null, - "common": false - }, - { - "name": "StorageName", - "displayName": "StorageName", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupStorage" - ], - "extraction": null, - "common": false - }, - { - "name": "StorageTotalSizeInGBs", - "displayName": "StorageTotalSizeInGBs", - "type": "Double", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupStorage" - ], - "extraction": null, - "common": false - }, - { - "name": "StorageType", - "displayName": "StorageType", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupStorage" - ], - "extraction": null, - "common": false - }, - { - "name": "VolumeFriendlyName", - "displayName": "VolumeFriendlyName", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupStorage" - ], - "extraction": null, - "common": false - }, - { - "name": "ArchiveTierStorageConsumedInMBs", - "displayName": "ArchiveTierStorageConsumedInMBs", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AddonAzureBackupStorage" - ], - "extraction": null, - "common": false - }, - { - "name": "Tags", - "displayName": "Tags", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ADFActivityRun", - "ADFPipelineRun", - "ADFSandboxActivityRun", - "ADFSandboxPipelineRun", - "ADFTriggerRun", - "HDInsightHadoopAndYarnMetrics", - "HDInsightHBaseMetrics", - "HDInsightHiveAndLLAPMetrics", - "HDInsightHiveQueryAppStats", - "HDInsightHiveTezAppStats", - "HDInsightKafkaMetrics", - "HDInsightRangerAuditLogs", - "InsightsMetrics", - "KubeMonAgentEvents", - "SynapseIntegrationActivityRuns", - "SynapseIntegrationActivityRunsEnded", - "SynapseIntegrationPipelineRuns", - "SynapseIntegrationPipelineRunsEnded", - "SynapseIntegrationTriggerRuns", - "SynapseIntegrationTriggerRunsEnded", - "WorkloadDiagnosticLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "UserProperties", - "displayName": "UserProperties", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ADFActivityRun", - "ADFPipelineRun", - "ADFSandboxActivityRun", - "ADFSandboxPipelineRun", - "ADFTriggerRun", - "SynapseIntegrationActivityRuns", - "SynapseIntegrationActivityRunsEnded", - "SynapseIntegrationPipelineRuns", - "SynapseIntegrationPipelineRunsEnded", - "SynapseIntegrationTriggerRuns", - "SynapseIntegrationTriggerRunsEnded" - ], - "extraction": null, - "common": false - }, - { - "name": "Annotations", - "displayName": "Annotations", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ADFActivityRun", - "ADFPipelineRun", - "ADFSandboxActivityRun", - "ADFSandboxPipelineRun", - "ADFTriggerRun", - "SynapseIntegrationActivityRuns", - "SynapseIntegrationActivityRunsEnded", - "SynapseIntegrationPipelineRuns", - "SynapseIntegrationPipelineRunsEnded", - "SynapseIntegrationTriggerRuns", - "SynapseIntegrationTriggerRunsEnded" - ], - "extraction": null, - "common": false - }, - { - "name": "EventMessage", - "displayName": "EventMessage", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ADFActivityRun", - "ADFPipelineRun", - "ADFSandboxActivityRun", - "ADFSandboxPipelineRun", - "ADFTriggerRun", - "ETWEvent", - "MicrosoftDynamicsTelemetryPerformanceLogs", - "ServiceFabricOperationalEvent", - "ServiceFabricReliableActorEvent", - "ServiceFabricReliableServiceEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "Start", - "displayName": "Start", - "type": "DateTime", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ADFActivityRun", - "ADFPipelineRun", - "ADFSandboxActivityRun", - "ADFSandboxPipelineRun", - "ADFTriggerRun", - "SynapseIntegrationActivityRuns", - "SynapseIntegrationActivityRunsEnded", - "SynapseIntegrationPipelineRuns", - "SynapseIntegrationPipelineRunsEnded", - "SynapseIntegrationTriggerRuns", - "SynapseIntegrationTriggerRunsEnded" - ], - "extraction": null, - "common": false - }, - { - "name": "ActivityName", - "displayName": "ActivityName", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ADFActivityRun", - "ADFSandboxActivityRun", - "SynapseIntegrationActivityRuns", - "SynapseIntegrationActivityRunsEnded" - ], - "extraction": null, - "common": false - }, - { - "name": "ActivityRunId", - "displayName": "ActivityRunId", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ADFActivityRun", - "ADFSandboxActivityRun", - "SynapseIntegrationActivityRuns", - "SynapseIntegrationActivityRunsEnded" - ], - "extraction": null, - "common": false - }, - { - "name": "PipelineRunId", - "displayName": "PipelineRunId", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ADFActivityRun", - "ADFSandboxActivityRun", - "SynapseIntegrationActivityRuns", - "SynapseIntegrationActivityRunsEnded" - ], - "extraction": null, - "common": false - }, - { - "name": "EffectiveIntegrationRuntime", - "displayName": "EffectiveIntegrationRuntime", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ADFActivityRun", - "ADFSandboxActivityRun", - "SynapseIntegrationActivityRuns", - "SynapseIntegrationActivityRunsEnded" - ], - "extraction": null, - "common": false - }, - { - "name": "ActivityType", - "displayName": "ActivityType", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ADFActivityRun", - "ADFSandboxActivityRun", - "PurviewDataSensitivityLogs", - "SynapseIntegrationActivityRuns", - "SynapseIntegrationActivityRunsEnded", - "WVDCheckpoints", - "WVDErrors" - ], - "extraction": null, - "common": false - }, - { - "name": "ActivityIterationCount", - "displayName": "ActivityIterationCount", - "type": "Int", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ADFActivityRun", - "ADFSandboxActivityRun" - ], - "extraction": null, - "common": false - }, - { - "name": "LinkedServiceName", - "displayName": "LinkedServiceName", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ADFActivityRun", - "ADFSandboxActivityRun" - ], - "extraction": null, - "common": false - }, - { - "name": "End", - "displayName": "End", - "type": "DateTime", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ADFActivityRun", - "ADFPipelineRun", - "ADFSandboxActivityRun", - "ADFSandboxPipelineRun", - "SynapseIntegrationActivityRuns", - "SynapseIntegrationActivityRunsEnded", - "SynapseIntegrationPipelineRuns", - "SynapseIntegrationPipelineRunsEnded" - ], - "extraction": null, - "common": false - }, - { - "name": "FailureType", - "displayName": "FailureType", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ADFActivityRun", - "ADFPipelineRun", - "ADFSandboxActivityRun", - "ADFSandboxPipelineRun" - ], - "extraction": null, - "common": false - }, - { - "name": "PipelineName", - "displayName": "PipelineName", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ADFActivityRun", - "ADFPipelineRun", - "ADFSandboxActivityRun", - "ADFSandboxPipelineRun", - "SynapseIntegrationActivityRuns", - "SynapseIntegrationActivityRunsEnded", - "SynapseIntegrationPipelineRuns", - "SynapseIntegrationPipelineRunsEnded" - ], - "extraction": null, - "common": false - }, - { - "name": "Input", - "displayName": "Input", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ADFActivityRun", - "ADFPipelineRun", - "ADFSandboxActivityRun", - "ADFSandboxPipelineRun", - "ADFTriggerRun" - ], - "extraction": null, - "common": false - }, - { - "name": "Output", - "displayName": "Output", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ADFActivityRun", - "ADFPipelineRun", - "ADFSandboxActivityRun", - "ADFSandboxPipelineRun", - "ADFTriggerRun" - ], - "extraction": null, - "common": false - }, - { - "name": "ErrorCode", - "displayName": "ErrorCode", - "type": "String", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ADFActivityRun", - "ADFPipelineRun", - "ADFSandboxActivityRun", - "ADFSandboxPipelineRun", - "ADFTriggerRun", - "CDBCassandraRequests", - "CDBGremlinRequests", - "CDBMongoRequests", - "FailedIngestion", - "SynapseBuiltinSqlPoolRequestsEnded", - "SynapseDXFailedIngestion", - "TSIIngress", - "VIIndexing" - ], - "extraction": null, - "common": false - }, - { - "name": "ErrorMessage", - "displayName": "ErrorMessage", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ADFActivityRun", - "ADFPipelineRun", - "ADFSandboxActivityRun", - "ADFSandboxPipelineRun", - "ADFTriggerRun", - "AppServiceAntivirusScanAuditLogs", - "AZFWDnsQuery", - "HDInsightGatewayAuditLogs", - "MicrosoftDynamicsTelemetryPerformanceLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "Error", - "displayName": "Error", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ADFActivityRun", - "ADFSandboxActivityRun", - "AUIEventsOperational", - "AZFWInternalFqdnResolutionFailure", - "CIEventsOperational", - "PowerBIDatasetsTenantPreview", - "PowerBIDatasetsWorkspacePreview" - ], - "extraction": null, - "common": false - }, - { - "name": "DataFactoryName", - "displayName": "DataFactoryName", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ADFAirflowSchedulerLogs", - "ADFAirflowTaskLogs", - "ADFAirflowWebLogs", - "ADFAirflowWorkerLogs", - "ADFSSISIntegrationRuntimeLogs", - "ADFSSISPackageEventMessageContext", - "ADFSSISPackageEventMessages", - "ADFSSISPackageExecutableStatistics", - "ADFSSISPackageExecutionComponentPhases", - "ADFSSISPackageExecutionDataStatistics", - "AirflowDagProcessingLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "IntegrationRuntimeName", - "displayName": "IntegrationRuntimeName", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ADFAirflowSchedulerLogs", - "ADFAirflowTaskLogs", - "ADFAirflowWebLogs", - "ADFAirflowWorkerLogs", - "ADFSSISIntegrationRuntimeLogs", - "ADFSSISPackageEventMessageContext", - "ADFSSISPackageEventMessages", - "ADFSSISPackageExecutableStatistics", - "ADFSSISPackageExecutionComponentPhases", - "ADFSSISPackageExecutionDataStatistics", - "AirflowDagProcessingLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "Message", - "displayName": "Message", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ADFAirflowSchedulerLogs", - "ADFAirflowTaskLogs", - "ADFAirflowWebLogs", - "ADFAirflowWorkerLogs", - "ADFSSISIntegrationRuntimeLogs", - "ADFSSISPackageEventMessages", - "ADPDiagnostics", - "AegDeliveryFailureLogs", - "AegPublishFailureLogs", - "AEWAuditLogs", - "AGSGrafanaLoginEvents", - "AirflowDagProcessingLogs", - "AmlOnlineEndpointConsoleLog", - "AmlOnlineEndpointEventLog", - "AmlRunStatusChangedEvent", - "AppAvailabilityResults", - "AppExceptions", - "AppPlatformContainerEventLogs", - "AppPlatformLogsforSpring", - "AppServiceAppLogs", - "AppServicePlatformLogs", - "AppTraces", - "AVSSyslog", - "AzureDiagnostics", - "CassandraLogs", - "ETWEvent", - "Event", - "FunctionAppLogs", - "HDInsightHadoopAndYarnLogs", - "HDInsightHBaseLogs", - "HDInsightHiveAndLLAPLogs", - "HDInsightKafkaLogs", - "HDInsightOozieLogs", - "HDInsightSecurityLogs", - "HDInsightSparkLogs", - "HDInsightStormLogs", - "KubeEvents", - "KubeMonAgentEvents", - "MCVPOperationLogs", - "MicrosoftAzureBastionAuditLogs", - "SignalRServiceDiagnosticLogs", - "TSIIngress", - "WebPubSubConnectivity", - "WebPubSubHttpRequest", - "WebPubSubMessaging", - "WorkloadDiagnosticLogs", - "WVDErrors" - ], - "extraction": null, - "common": false - }, - { - "name": "DagId", - "displayName": "DagId", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ADFAirflowTaskLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "TaskId", - "displayName": "TaskId", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ADFAirflowTaskLogs", - "HDInsightSparkTaskEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "RunId", - "displayName": "RunId", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ADFPipelineRun", - "ADFSandboxPipelineRun", - "AmlComputeCpuGpuUtilization", - "AmlRunEvent", - "AmlRunStatusChangedEvent", - "SynapseIntegrationPipelineRuns", - "SynapseIntegrationPipelineRunsEnded" - ], - "extraction": null, - "common": false - }, - { - "name": "Predecessors", - "displayName": "Predecessors", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ADFPipelineRun", - "ADFSandboxPipelineRun", - "SynapseIntegrationPipelineRuns", - "SynapseIntegrationPipelineRunsEnded" - ], - "extraction": null, - "common": false - }, - { - "name": "Parameters", - "displayName": "Parameters", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ADFPipelineRun", - "ADFSandboxPipelineRun", - "ADFTriggerRun", - "MicrosoftDynamicsTelemetryPerformanceLogs", - "NSPAccessLogs", - "SynapseIntegrationPipelineRuns", - "SynapseIntegrationPipelineRunsEnded", - "SynapseIntegrationTriggerRuns", - "SynapseIntegrationTriggerRunsEnded", - "WVDCheckpoints" - ], - "extraction": null, - "common": false - }, - { - "name": "SystemParameters", - "displayName": "SystemParameters", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ADFPipelineRun", - "ADFSandboxPipelineRun", - "ADFTriggerRun", - "SynapseIntegrationPipelineRuns", - "SynapseIntegrationPipelineRunsEnded", - "SynapseIntegrationTriggerRuns", - "SynapseIntegrationTriggerRunsEnded" - ], - "extraction": null, - "common": false - }, - { - "name": "Requirement", - "displayName": "Requirement", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ADFSSignInLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "OperationId", - "displayName": "OperationId", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ADFSSISPackageEventMessageContext", - "ADFSSISPackageEventMessages", - "ApiManagementGatewayLogs", - "AppAvailabilityResults", - "AppBrowserTimings", - "AppDependencies", - "AppEvents", - "AppExceptions", - "AppMetrics", - "AppPageViews", - "AppPerformanceCounters", - "AppRequests", - "AppTraces", - "AzureActivity", - "AzureActivityV2", - "AzureLoadTestingOperation", - "FailedIngestion", - "SucceededIngestion", - "SynapseDXFailedIngestion", - "SynapseDXSucceededIngestion" - ], - "extraction": null, - "common": false - }, - { - "name": "ContextDepth", - "displayName": "ContextDepth", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ADFSSISPackageEventMessageContext" - ], - "extraction": null, - "common": false - }, - { - "name": "PackagePath", - "displayName": "PackagePath", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ADFSSISPackageEventMessageContext", - "ADFSSISPackageEventMessages" - ], - "extraction": null, - "common": false - }, - { - "name": "ContextType", - "displayName": "ContextType", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ADFSSISPackageEventMessageContext" - ], - "extraction": null, - "common": false - }, - { - "name": "ContextSourceName", - "displayName": "ContextSourceName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ADFSSISPackageEventMessageContext" - ], - "extraction": null, - "common": false - }, - { - "name": "ContextSourceId", - "displayName": "ContextSourceId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ADFSSISPackageEventMessageContext" - ], - "extraction": null, - "common": false - }, - { - "name": "PropertyName", - "displayName": "PropertyName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ADFSSISPackageEventMessageContext" - ], - "extraction": null, - "common": false - }, - { - "name": "PropertyValue", - "displayName": "PropertyValue", - "type": "Dynamic", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ADFSSISPackageEventMessageContext" - ], - "extraction": null, - "common": false - }, - { - "name": "MessageTime", - "displayName": "MessageTime", - "type": "DateTime", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ADFSSISPackageEventMessages" - ], - "extraction": null, - "common": false - }, - { - "name": "MessageType", - "displayName": "MessageType", - "type": "Int", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ADFSSISPackageEventMessages", - "SignalRServiceDiagnosticLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "MessageSourceType", - "displayName": "MessageSourceType", - "type": "Int", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ADFSSISPackageEventMessages" - ], - "extraction": null, - "common": false - }, - { - "name": "ExtendedInfoId", - "displayName": "ExtendedInfoId", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ADFSSISPackageEventMessages" - ], - "extraction": null, - "common": false - }, - { - "name": "PackageName", - "displayName": "PackageName", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ADFSSISPackageEventMessages", - "ADFSSISPackageExecutionComponentPhases", - "ADFSSISPackageExecutionDataStatistics" - ], - "extraction": null, - "common": false - }, - { - "name": "EventName", - "displayName": "EventName", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ADFSSISPackageEventMessages", - "AEWComputePipelinesLogs", - "AzureActivityV2", - "HDInsightJupyterNotebookEvents", - "MicrosoftDynamicsTelemetryPerformanceLogs", - "MicrosoftDynamicsTelemetrySystemMetricsLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "MessageSourceName", - "displayName": "MessageSourceName", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ADFSSISPackageEventMessages" - ], - "extraction": null, - "common": false - }, - { - "name": "MessageSourceId", - "displayName": "MessageSourceId", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ADFSSISPackageEventMessages" - ], - "extraction": null, - "common": false - }, - { - "name": "SubcomponentName", - "displayName": "SubcomponentName", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ADFSSISPackageEventMessages", - "ADFSSISPackageExecutionComponentPhases" - ], - "extraction": null, - "common": false - }, - { - "name": "ExecutionPath", - "displayName": "ExecutionPath", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ADFSSISPackageEventMessages", - "ADFSSISPackageExecutableStatistics", - "ADFSSISPackageExecutionComponentPhases", - "ADFSSISPackageExecutionDataStatistics" - ], - "extraction": null, - "common": false - }, - { - "name": "ThreadId", - "displayName": "ThreadId", - "type": "Int", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ADFSSISPackageEventMessages", - "CassandraLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "MessageCode", - "displayName": "MessageCode", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ADFSSISPackageEventMessages" - ], - "extraction": null, - "common": false - }, - { - "name": "EventMessageGuid", - "displayName": "EventMessageGuid", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ADFSSISPackageEventMessages" - ], - "extraction": null, - "common": false - }, - { - "name": "ExecutionId", - "displayName": "ExecutionId", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ADFSSISPackageExecutableStatistics", - "ADFSSISPackageExecutionComponentPhases", - "ADFSSISPackageExecutionDataStatistics", - "HDInsightSparkSQLExecutionEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "ExecutionDuration", - "displayName": "ExecutionDuration", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ADFSSISPackageExecutableStatistics" - ], - "extraction": null, - "common": false - }, - { - "name": "ExecutionResult", - "displayName": "ExecutionResult", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ADFSSISPackageExecutableStatistics" - ], - "extraction": null, - "common": false - }, - { - "name": "ExecutionValue", - "displayName": "ExecutionValue", - "type": "Dynamic", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ADFSSISPackageExecutableStatistics" - ], - "extraction": null, - "common": false - }, - { - "name": "TaskName", - "displayName": "TaskName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ADFSSISPackageExecutionComponentPhases", - "ADFSSISPackageExecutionDataStatistics", - "ETWEvent", - "ServiceFabricOperationalEvent", - "ServiceFabricReliableActorEvent", - "ServiceFabricReliableServiceEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "Phase", - "displayName": "Phase", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ADFSSISPackageExecutionComponentPhases" - ], - "extraction": null, - "common": false - }, - { - "name": "DataflowPathIdString", - "displayName": "DataflowPathIdString", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ADFSSISPackageExecutionDataStatistics" - ], - "extraction": null, - "common": false - }, - { - "name": "DataflowPathName", - "displayName": "DataflowPathName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ADFSSISPackageExecutionDataStatistics" - ], - "extraction": null, - "common": false - }, - { - "name": "SourceComponentName", - "displayName": "SourceComponentName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ADFSSISPackageExecutionDataStatistics" - ], - "extraction": null, - "common": false - }, - { - "name": "DestinationComponentName", - "displayName": "DestinationComponentName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ADFSSISPackageExecutionDataStatistics" - ], - "extraction": null, - "common": false - }, - { - "name": "RowsSent", - "displayName": "RowsSent", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ADFSSISPackageExecutionDataStatistics" - ], - "extraction": null, - "common": false - }, - { - "name": "CreatedTime", - "displayName": "CreatedTime", - "type": "DateTime", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ADFSSISPackageExecutionDataStatistics", - "ContainerInventory" - ], - "extraction": null, - "common": false - }, - { - "name": "TriggerId", - "displayName": "TriggerId", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ADFTriggerRun", - "Alert", - "SynapseIntegrationTriggerRuns", - "SynapseIntegrationTriggerRunsEnded" - ], - "extraction": null, - "common": false - }, - { - "name": "TriggerName", - "displayName": "TriggerName", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ADFTriggerRun", - "SynapseIntegrationTriggerRuns", - "SynapseIntegrationTriggerRunsEnded" - ], - "extraction": null, - "common": false - }, - { - "name": "TriggerType", - "displayName": "TriggerType", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ADFTriggerRun", - "MicrosoftDataShareReceivedSnapshotLog", - "MicrosoftDataShareSentSnapshotLog", - "SynapseIntegrationTriggerRuns", - "SynapseIntegrationTriggerRunsEnded" - ], - "extraction": null, - "common": false - }, - { - "name": "TriggerEvent", - "displayName": "TriggerEvent", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ADFTriggerRun", - "SynapseIntegrationTriggerRuns", - "SynapseIntegrationTriggerRunsEnded" - ], - "extraction": null, - "common": false - }, - { - "name": "TriggerFailureType", - "displayName": "TriggerFailureType", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ADFTriggerRun" - ], - "extraction": null, - "common": false - }, - { - "name": "TraceContext", - "displayName": "TraceContext", - "type": "Dynamic", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ADPAudit", - "ADPDiagnostics", - "ADPRequests", - "AGSGrafanaLoginEvents", - "AzureAttestationDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "Properties", - "displayName": "Properties", - "type": "Dynamic", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ADPAudit", - "ADPDiagnostics", - "ADPRequests", - "AEWComputePipelinesLogs", - "AgriFoodJobProcessedLogs", - "ANFFileAccess", - "AppAvailabilityResults", - "AppBrowserTimings", - "AppDependencies", - "AppEvents", - "AppExceptions", - "AppMetrics", - "AppPageViews", - "AppPerformanceCounters", - "AppRequests", - "AppSystemEvents", - "AppTraces", - "AzureActivity", - "AzureActivityV2", - "IntuneAuditLogs", - "IntuneOperationalLogs", - "MicrosoftHealthcareApisAuditLogs", - "SynapseBigDataPoolApplicationsEnded", - "SynapseBuiltinSqlPoolRequestsEnded", - "SynapseLinkEvent", - "SynapseRBACEvents", - "SynapseRbacOperations", - "SynapseScopePoolScopeJobsEnded", - "SynapseScopePoolScopeJobsStateChange" - ], - "extraction": null, - "common": false - }, - { - "name": "Uri", - "displayName": "Uri", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ADPRequests", - "AUIEventsAudit", - "AUIEventsOperational", - "CIEventsAudit", - "CIEventsOperational", - "DSMAzureBlobStorageLogs", - "DSMDataClassificationLogs", - "DSMDataLabelingLogs", - "IoTHubDistributedTracing", - "ResourceManagementPublicAccessLogs", - "StorageBlobLogs", - "StorageFileLogs", - "StorageQueueLogs", - "StorageTableLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "Success", - "displayName": "Success", - "type": "Bool", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ADPRequests", - "AppAvailabilityResults", - "AppDependencies", - "AppRequests", - "PowerBIDatasetsTenantPreview", - "PowerBIDatasetsWorkspacePreview" - ], - "extraction": null, - "common": false - }, - { - "name": "HttpStatusCode", - "displayName": "HttpStatusCode", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ADPRequests", - "AzureLoadTestingOperation", - "CDBControlPlaneRequests", - "NetworkAccessTraffic", - "OLPSupplyChainEntityOperations" - ], - "extraction": null, - "common": false - }, - { - "name": "HelpLink", - "displayName": "HelpLink", - "type": "Uri", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "Operation" - ], - "extraction": null, - "common": false - }, - { - "name": "ApplicationId", - "displayName": "ApplicationId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ADTDataHistoryOperation", - "ADTDigitalTwinsOperation", - "ADTEventRoutesOperation", - "ADTModelsOperation", - "ADTQueryOperation", - "AgriFoodFarmManagementLogs", - "AgriFoodFarmOperationLogs", - "AgriFoodInsightLogs", - "AgriFoodJobProcessedLogs", - "AgriFoodModelInferenceLogs", - "AgriFoodProviderAuthLogs", - "AgriFoodSatelliteLogs", - "AgriFoodWeatherLogs", - "HDInsightHiveTezAppStats", - "HDInsightSparkApplicationEvents", - "HDInsightSparkBlockManagerEvents", - "HDInsightSparkEnvironmentEvents", - "HDInsightSparkExecutorEvents", - "HDInsightSparkExtraEvents", - "HDInsightSparkJobEvents", - "HDInsightSparkSQLExecutionEvents", - "HDInsightSparkStageEvents", - "HDInsightSparkStageTaskAccumulables", - "HDInsightSparkTaskEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "Region", - "displayName": "Region", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ADTDataHistoryOperation", - "ApiManagementGatewayLogs", - "ContainerRegistryLoginEvents", - "ContainerRegistryRepositoryEvents", - "HDInsightJupyterNotebookEvents", - "HDInsightSparkApplicationEvents", - "HDInsightSparkBlockManagerEvents", - "HDInsightSparkEnvironmentEvents", - "HDInsightSparkExecutorEvents", - "HDInsightSparkExtraEvents", - "HDInsightSparkJobEvents", - "HDInsightSparkSQLExecutionEvents", - "HDInsightSparkStageEvents", - "HDInsightSparkStageTaskAccumulables", - "HDInsightSparkTaskEvents", - "PowerBIReportUsageTenant", - "PowerBIReportUsageWorkspace" - ], - "extraction": null, - "common": false - }, - { - "name": "RequestUri", - "displayName": "RequestUri", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ADTDataHistoryOperation", - "ADTDigitalTwinsOperation", - "ADTEventRoutesOperation", - "ADTModelsOperation", - "ADTQueryOperation", - "AEWAuditLogs", - "AgriFoodFarmManagementLogs", - "AgriFoodFarmOperationLogs", - "AgriFoodInsightLogs", - "AgriFoodModelInferenceLogs", - "AgriFoodProviderAuthLogs", - "AgriFoodSatelliteLogs", - "AgriFoodWeatherLogs", - "AzureLoadTestingOperation", - "MicrosoftHealthcareApisAuditLogs", - "OLPSupplyChainEntityOperations", - "SynapseGatewayApiRequests", - "SynapseGatewayEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "TraceId", - "displayName": "TraceId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ADTDataHistoryOperation", - "ADTDigitalTwinsOperation", - "ADTEventRoutesOperation", - "ADTModelsOperation", - "ADTQueryOperation", - "AppPlatformLogsforSpring", - "IoTHubDistributedTracing", - "MCVPAuditLogs", - "MCVPOperationLogs", - "WebPubSubHttpRequest", - "WebPubSubMessaging" - ], - "extraction": null, - "common": false - }, - { - "name": "SpanId", - "displayName": "SpanId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ADTDataHistoryOperation", - "ADTDigitalTwinsOperation", - "ADTEventRoutesOperation", - "ADTModelsOperation", - "ADTQueryOperation", - "AppPlatformLogsforSpring", - "IoTHubDistributedTracing", - "MCVPAuditLogs", - "MCVPOperationLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ParentId", - "displayName": "ParentId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ADTDataHistoryOperation", - "ADTDigitalTwinsOperation", - "ADTEventRoutesOperation", - "ADTModelsOperation", - "ADTQueryOperation", - "AppAvailabilityResults", - "AppBrowserTimings", - "AppDependencies", - "AppEvents", - "AppExceptions", - "AppMetrics", - "AppPageViews", - "AppPerformanceCounters", - "AppRequests", - "AppTraces", - "HDInsightSparkStageTaskAccumulables", - "IoTHubDistributedTracing" - ], - "extraction": null, - "common": false - }, - { - "name": "TraceFlags", - "displayName": "TraceFlags", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ADTDataHistoryOperation", - "ADTDigitalTwinsOperation", - "ADTEventRoutesOperation", - "ADTModelsOperation", - "ADTQueryOperation", - "IoTHubDistributedTracing" - ], - "extraction": null, - "common": false - }, - { - "name": "TraceState", - "displayName": "TraceState", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ADTDataHistoryOperation", - "ADTDigitalTwinsOperation", - "ADTEventRoutesOperation", - "ADTModelsOperation", - "ADTQueryOperation" - ], - "extraction": null, - "common": false - }, - { - "name": "EndpointName", - "displayName": "EndpointName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ADTEventRoutesOperation", - "AmlOnlineEndpointTrafficLog" - ], - "extraction": null, - "common": false - }, - { - "name": "QueryCharge", - "displayName": "QueryCharge", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ADTQueryOperation" - ], - "extraction": null, - "common": false - }, - { - "name": "RootActivityId", - "displayName": "RootActivityId", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "ADXCommand", - "ADXIngestionBatching", - "ADXJournal", - "ADXQuery", - "ADXTableUsageStatistics", - "FailedIngestion", - "PowerBIDatasetsTenantPreview", - "PowerBIDatasetsWorkspacePreview", - "SucceededIngestion", - "SynapseDXCommand", - "SynapseDXFailedIngestion", - "SynapseDXIngestionBatching", - "SynapseDXQuery", - "SynapseDXSucceededIngestion", - "SynapseDXTableUsageStatistics" - ], - "extraction": null, - "common": false - }, - { - "name": "StartedOn", - "displayName": "StartedOn", - "type": "DateTime", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ADXCommand", - "ADXQuery", - "ADXTableUsageStatistics", - "SynapseDXCommand", - "SynapseDXQuery", - "SynapseDXTableUsageStatistics" - ], - "extraction": null, - "common": false - }, - { - "name": "LastUpdatedOn", - "displayName": "LastUpdatedOn", - "type": "DateTime", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ADXCommand", - "ADXQuery", - "SynapseDXCommand", - "SynapseDXQuery" - ], - "extraction": null, - "common": false - }, - { - "name": "DatabaseName", - "displayName": "DatabaseName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ADXCommand", - "ADXJournal", - "ADXQuery", - "ADXTableDetails", - "ADXTableUsageStatistics", - "CDBCassandraRequests", - "CDBDataPlaneRequests", - "CDBGremlinRequests", - "CDBMongoRequests", - "CDBPartitionKeyRUConsumption", - "CDBPartitionKeyStatistics", - "CDBQueryRuntimeStatistics", - "PowerBIDatasetsTenantPreview", - "PowerBIDatasetsWorkspacePreview", - "SQLSecurityAuditEvents", - "SynapseDXCommand", - "SynapseDXQuery", - "SynapseDXTableDetails", - "SynapseDXTableUsageStatistics" - ], - "extraction": null, - "common": false - }, - { - "name": "FailureReason", - "displayName": "FailureReason", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ADXCommand", - "ADXQuery", - "HDInsightSparkStageEvents", - "SynapseDXCommand", - "SynapseDXQuery" - ], - "extraction": null, - "common": false - }, - { - "name": "TotalCPU", - "displayName": "TotalCPU", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ADXCommand", - "ADXQuery", - "SynapseDXCommand", - "SynapseDXQuery" - ], - "extraction": null, - "common": false - }, - { - "name": "CommandType", - "displayName": "CommandType", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ADXCommand", - "SynapseDXCommand" - ], - "extraction": null, - "common": false - }, - { - "name": "ApplicationName", - "displayName": "ApplicationName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ADXCommand", - "ADXQuery", - "ADXTableUsageStatistics", - "HDInsightHiveTezAppStats", - "PowerBIDatasetsTenant", - "PowerBIDatasetsTenantPreview", - "PowerBIDatasetsWorkspace", - "PowerBIDatasetsWorkspacePreview", - "ServiceFabricOperationalEvent", - "ServiceFabricReliableActorEvent", - "ServiceFabricReliableServiceEvent", - "SQLSecurityAuditEvents", - "SynapseDXCommand", - "SynapseDXQuery", - "SynapseDXTableUsageStatistics" - ], - "extraction": null, - "common": false - }, - { - "name": "ResourceUtilization", - "displayName": "ResourceUtilization", - "type": "Dynamic", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ADXCommand", - "SynapseDXCommand" - ], - "extraction": null, - "common": false - }, - { - "name": "Duration", - "displayName": "Duration", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ADXCommand", - "ADXQuery", - "MicrosoftAzureBastionAuditLogs", - "MicrosoftDynamicsTelemetryPerformanceLogs", - "OEPElasticsearch", - "PowerBIDatasetsTenantPreview", - "PowerBIDatasetsWorkspacePreview", - "SynapseDXCommand", - "SynapseDXQuery" - ], - "extraction": null, - "common": false - }, - { - "name": "User", - "displayName": "User", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ADXCommand", - "ADXJournal", - "ADXQuery", - "ADXTableUsageStatistics", - "AGSGrafanaLoginEvents", - "AppServiceAuditLogs", - "CassandraAudit", - "HDInsightHiveQueryAppStats", - "HDInsightHiveTezAppStats", - "PowerBIDatasetsTenant", - "PowerBIDatasetsWorkspace", - "SynapseDXCommand", - "SynapseDXQuery", - "SynapseDXTableUsageStatistics" - ], - "extraction": null, - "common": false - }, - { - "name": "Principal", - "displayName": "Principal", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ADXCommand", - "ADXJournal", - "ADXQuery", - "ADXTableUsageStatistics", - "SynapseDXCommand", - "SynapseDXQuery", - "SynapseDXTableUsageStatistics" - ], - "extraction": null, - "common": false - }, - { - "name": "WorkloadGroup", - "displayName": "WorkloadGroup", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ADXCommand", - "ADXQuery", - "SynapseDXCommand", - "SynapseDXQuery" - ], - "extraction": null, - "common": false - }, - { - "name": "Text", - "displayName": "Text", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ADXCommand", - "ADXQuery", - "HDInsightAmbariClusterAlerts", - "SynapseDXCommand", - "SynapseDXQuery" - ], - "extraction": null, - "common": false - }, - { - "name": "Database", - "displayName": "Database", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ADXIngestionBatching", - "FailedIngestion", - "SucceededIngestion", - "SynapseDXFailedIngestion", - "SynapseDXIngestionBatching", - "SynapseDXSucceededIngestion" - ], - "extraction": null, - "common": false - }, - { - "name": "Table", - "displayName": "Table", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ADXIngestionBatching", - "FailedIngestion", - "SucceededIngestion", - "SynapseDXFailedIngestion", - "SynapseDXIngestionBatching", - "SynapseDXSucceededIngestion" - ], - "extraction": null, - "common": false - }, - { - "name": "BatchingType", - "displayName": "BatchingType", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ADXIngestionBatching", - "SynapseDXIngestionBatching" - ], - "extraction": null, - "common": false - }, - { - "name": "SourceCreationTime", - "displayName": "SourceCreationTime", - "type": "DateTime", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ADXIngestionBatching", - "SynapseDXIngestionBatching" - ], - "extraction": null, - "common": false - }, - { - "name": "BatchTimeSeconds", - "displayName": "BatchTimeSeconds", - "type": "Double", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ADXIngestionBatching", - "SynapseDXIngestionBatching" - ], - "extraction": null, - "common": false - }, - { - "name": "BatchSizeBytes", - "displayName": "BatchSizeBytes", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ADXIngestionBatching", - "SynapseDXIngestionBatching" - ], - "extraction": null, - "common": false - }, - { - "name": "DataSourcesInBatch", - "displayName": "DataSourcesInBatch", - "type": "Int", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ADXIngestionBatching", - "SynapseDXIngestionBatching" - ], - "extraction": null, - "common": false - }, - { - "name": "Event", - "displayName": "Event", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ADXJournal", - "AppPlatformContainerEventLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "OperationTimestamp", - "displayName": "OperationTimestamp", - "type": "DateTime", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ADXJournal" - ], - "extraction": null, - "common": false - }, - { - "name": "EntityName", - "displayName": "EntityName", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ADXJournal", - "PurviewSecurityLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "UpdatedEntityName", - "displayName": "UpdatedEntityName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ADXJournal" - ], - "extraction": null, - "common": false - }, - { - "name": "OriginalEntityVersion", - "displayName": "OriginalEntityVersion", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ADXJournal" - ], - "extraction": null, - "common": false - }, - { - "name": "EntityVersion", - "displayName": "EntityVersion", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ADXJournal" - ], - "extraction": null, - "common": false - }, - { - "name": "EntityContainerName", - "displayName": "EntityContainerName", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ADXJournal" - ], - "extraction": null, - "common": false - }, - { - "name": "OriginalEntityState", - "displayName": "OriginalEntityState", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ADXJournal" - ], - "extraction": null, - "common": false - }, - { - "name": "UpdatedEntityState", - "displayName": "UpdatedEntityState", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ADXJournal" - ], - "extraction": null, - "common": false - }, - { - "name": "ChangeCommand", - "displayName": "ChangeCommand", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ADXJournal" - ], - "extraction": null, - "common": false - }, - { - "name": "MemoryPeak", - "displayName": "MemoryPeak", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ADXQuery", - "SynapseDXQuery" - ], - "extraction": null, - "common": false - }, - { - "name": "MinDataScannedTime", - "displayName": "ExtentsMinDataScannedTime", - "type": "DateTime", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ADXQuery", - "SynapseDXQuery" - ], - "extraction": null, - "common": false - }, - { - "name": "MaxDataScannedTime", - "displayName": "ExtentsMaxDataScannedTime", - "type": "DateTime", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ADXQuery", - "SynapseDXQuery" - ], - "extraction": null, - "common": false - }, - { - "name": "TotalExtentsCount", - "displayName": "TotalExtentsCount", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ADXQuery", - "SynapseDXQuery" - ], - "extraction": null, - "common": false - }, - { - "name": "ScannedExtentsCount", - "displayName": "ScannedExtentsCount", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ADXQuery", - "SynapseDXQuery" - ], - "extraction": null, - "common": false - }, - { - "name": "TotalRowsCount", - "displayName": "TotalRowsCount", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ADXQuery", - "SynapseDXQuery" - ], - "extraction": null, - "common": false - }, - { - "name": "ScannedRowsCount", - "displayName": "ScannedRowsCount", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ADXQuery", - "SynapseDXQuery" - ], - "extraction": null, - "common": false - }, - { - "name": "CacheMemoryHits", - "displayName": "CacheMemoryHits", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ADXQuery", - "SynapseDXQuery" - ], - "extraction": null, - "common": false - }, - { - "name": "CacheMemoryMisses", - "displayName": "CacheMemoryMisses", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ADXQuery", - "SynapseDXQuery" - ], - "extraction": null, - "common": false - }, - { - "name": "CacheDiskHits", - "displayName": "CacheDiskHits", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ADXQuery", - "SynapseDXQuery" - ], - "extraction": null, - "common": false - }, - { - "name": "CacheDiskMisses", - "displayName": "CacheDiskMisses", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ADXQuery", - "SynapseDXQuery" - ], - "extraction": null, - "common": false - }, - { - "name": "CacheShardsHotHits", - "displayName": "CacheShardsHotHits", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ADXQuery", - "SynapseDXQuery" - ], - "extraction": null, - "common": false - }, - { - "name": "CacheShardsHotMisses", - "displayName": "CacheShardsHotMisses", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ADXQuery", - "SynapseDXQuery" - ], - "extraction": null, - "common": false - }, - { - "name": "CacheShardsColdHits", - "displayName": "CacheShardsColdHits", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ADXQuery", - "SynapseDXQuery" - ], - "extraction": null, - "common": false - }, - { - "name": "CacheShardsColdMisses", - "displayName": "CacheShardsColdMisses", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ADXQuery", - "SynapseDXQuery" - ], - "extraction": null, - "common": false - }, - { - "name": "CacheShardsBypassBytes", - "displayName": "CacheShardsBypassBytes", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ADXQuery", - "SynapseDXQuery" - ], - "extraction": null, - "common": false - }, - { - "name": "TableCount", - "displayName": "TableCount", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ADXQuery", - "SynapseDXQuery" - ], - "extraction": null, - "common": false - }, - { - "name": "TablesStatistics", - "displayName": "TablesStatistics", - "type": "Dynamic", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ADXQuery", - "SynapseDXQuery" - ], - "extraction": null, - "common": false - }, - { - "name": "ComponentFault", - "displayName": "ComponentFault", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ADXQuery" - ], - "extraction": null, - "common": false - }, - { - "name": "TableName", - "displayName": "TableName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ADXTableDetails", - "ADXTableUsageStatistics", - "SynapseDXTableDetails", - "SynapseDXTableUsageStatistics" - ], - "extraction": null, - "common": false - }, - { - "name": "TotalExtentSize", - "displayName": "TotalExtentSize", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ADXTableDetails", - "SynapseDXTableDetails" - ], - "extraction": null, - "common": false - }, - { - "name": "TotalOriginalSize", - "displayName": "TotalOriginalSize", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ADXTableDetails", - "SynapseDXTableDetails" - ], - "extraction": null, - "common": false - }, - { - "name": "HotExtentSize", - "displayName": "HotExtentSize", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ADXTableDetails", - "SynapseDXTableDetails" - ], - "extraction": null, - "common": false - }, - { - "name": "RetentionPolicyOrigin", - "displayName": "RetentionPolicyOrigin", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ADXTableDetails", - "SynapseDXTableDetails" - ], - "extraction": null, - "common": false - }, - { - "name": "RetentionPolicy", - "displayName": "RetentionPolicy", - "type": "Dynamic", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ADXTableDetails", - "SynapseDXTableDetails" - ], - "extraction": null, - "common": false - }, - { - "name": "CachingPolicyOrigin", - "displayName": "CachingPolicyOrigin", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ADXTableDetails", - "SynapseDXTableDetails" - ], - "extraction": null, - "common": false - }, - { - "name": "CachingPolicy", - "displayName": "CachingPolicy", - "type": "Dynamic", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ADXTableDetails", - "SynapseDXTableDetails" - ], - "extraction": null, - "common": false - }, - { - "name": "MaxExtentsCreationTime", - "displayName": "MaxExtentsCreationTime", - "type": "DateTime", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ADXTableDetails", - "SynapseDXTableDetails" - ], - "extraction": null, - "common": false - }, - { - "name": "MinExtentsCreationTime", - "displayName": "MinExtentsCreationTime", - "type": "DateTime", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ADXTableDetails", - "SynapseDXTableDetails" - ], - "extraction": null, - "common": false - }, - { - "name": "TotalExtentCount", - "displayName": "TotalExtentCount", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ADXTableDetails", - "SynapseDXTableDetails" - ], - "extraction": null, - "common": false - }, - { - "name": "TotalRowCount", - "displayName": "TotalRowCount", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ADXTableDetails", - "SynapseDXTableDetails" - ], - "extraction": null, - "common": false - }, - { - "name": "HotExtentCount", - "displayName": "HotExtentCount", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ADXTableDetails", - "SynapseDXTableDetails" - ], - "extraction": null, - "common": false - }, - { - "name": "HotOriginalSize", - "displayName": "HotOriginalSize", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ADXTableDetails", - "SynapseDXTableDetails" - ], - "extraction": null, - "common": false - }, - { - "name": "HotRowCount", - "displayName": "HotRowCount", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ADXTableDetails", - "SynapseDXTableDetails" - ], - "extraction": null, - "common": false - }, - { - "name": "MinCreatedOn", - "displayName": "MinCreatedOn", - "type": "DateTime", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ADXTableUsageStatistics", - "SynapseDXTableUsageStatistics" - ], - "extraction": null, - "common": false - }, - { - "name": "MaxCreatedOn", - "displayName": "MaxCreatedOn", - "type": "DateTime", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ADXTableUsageStatistics", - "SynapseDXTableUsageStatistics" - ], - "extraction": null, - "common": false - }, - { - "name": "NetworkAccess", - "displayName": "NetworkAccess", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AegDataPlaneRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "ClientIpAddress", - "displayName": "ClientIpAddress", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AegDataPlaneRequests", - "CDBDataPlaneRequests", - "HDInsightHiveQueryAppStats", - "MicrosoftAzureBastionAuditLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "TlsVersion", - "displayName": "TlsVersion", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AegDataPlaneRequests", - "StorageBlobLogs", - "StorageFileLogs", - "StorageQueueLogs", - "StorageTableLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "Authentication", - "displayName": "Authentication", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AegDataPlaneRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "OperationResult", - "displayName": "OperationResult", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AegDataPlaneRequests", - "MCVPAuditLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "TotalOperations", - "displayName": "TotalOperations", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AegDataPlaneRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "SubResourceName", - "displayName": "SubResourceName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AegDeliveryFailureLogs", - "AegPublishFailureLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "EventSubscriptionName", - "displayName": "EventSubscriptionName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AegDeliveryFailureLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ExpComponentName", - "displayName": "ExpComponentName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AEWAuditLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ActionName", - "displayName": "ActionName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AEWAuditLogs", - "DatabricksAccounts", - "DatabricksClusters", - "DatabricksDatabricksSQL", - "DatabricksDBFS", - "DatabricksDeltaPipelines", - "DatabricksFeatureStore", - "DatabricksGenie", - "DatabricksGitCredentials", - "DatabricksGlobalInitScripts", - "DatabricksIAMRole", - "DatabricksInstancePools", - "DatabricksJobs", - "DatabricksMLflowAcledArtifact", - "DatabricksMLflowExperiment", - "DatabricksModelRegistry", - "DatabricksNotebook", - "DatabricksRemoteHistoryService", - "DatabricksRepos", - "DatabricksSecrets", - "DatabricksSQL", - "DatabricksSQLPermissions", - "DatabricksSSH", - "DatabricksTables", - "DatabricksUnityCatalog", - "DatabricksWebTerminal", - "DatabricksWorkspace", - "SQLSecurityAuditEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "Operator", - "displayName": "Operator", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AEWAuditLogs", - "AutoscaleEvaluationsLog" - ], - "extraction": null, - "common": false - }, - { - "name": "ExperimentWorkspaceId", - "displayName": "ExperimentWorkspaceId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AEWComputePipelinesLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ExperimentationGroup", - "displayName": "ExperimentationGroup", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AEWComputePipelinesLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ExperimentId", - "displayName": "ExperimentId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AEWComputePipelinesLogs", - "AmlComputeJobEvent", - "BaiJobEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "ExperimentStepId", - "displayName": "ExperimentStepId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AEWComputePipelinesLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "FeatureId", - "displayName": "FeatureId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AEWComputePipelinesLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "AnalysisId", - "displayName": "AnalysisId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AEWComputePipelinesLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ScorecardId", - "displayName": "ScorecardId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AEWComputePipelinesLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "AnalysisType", - "displayName": "AnalysisType", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AEWComputePipelinesLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "DataPlaneResourceId", - "displayName": "DataPlaneResourceId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AgriFoodApplicationAuditLogs", - "AgriFoodFarmManagementLogs", - "AgriFoodFarmOperationLogs", - "AgriFoodInsightLogs", - "AgriFoodModelInferenceLogs", - "AgriFoodProviderAuthLogs", - "AgriFoodSatelliteLogs", - "AgriFoodWeatherLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "FarmerId", - "displayName": "FarmerId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AgriFoodFarmManagementLogs", - "AgriFoodFarmOperationLogs", - "AgriFoodInsightLogs", - "AgriFoodJobProcessedLogs", - "AgriFoodModelInferenceLogs", - "AgriFoodProviderAuthLogs", - "AgriFoodSatelliteLogs", - "AgriFoodWeatherLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ObjectId", - "displayName": "ObjectId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AgriFoodFarmManagementLogs", - "AgriFoodFarmOperationLogs", - "AgriFoodInsightLogs", - "AgriFoodJobProcessedLogs", - "AgriFoodModelInferenceLogs", - "AgriFoodProviderAuthLogs", - "AgriFoodSatelliteLogs", - "AgriFoodWeatherLogs", - "PowerBIDatasetsTenantPreview", - "PowerBIDatasetsWorkspacePreview", - "SQLSecurityAuditEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "ClientTenantId", - "displayName": "ClientTenantId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AgriFoodFarmManagementLogs", - "AgriFoodFarmOperationLogs", - "AgriFoodInsightLogs", - "AgriFoodJobProcessedLogs", - "AgriFoodModelInferenceLogs", - "AgriFoodProviderAuthLogs", - "AgriFoodSatelliteLogs", - "AgriFoodWeatherLogs", - "OLPSupplyChainEntityOperations" - ], - "extraction": null, - "common": false - }, - { - "name": "RequestBody", - "displayName": "RequestBody", - "type": "Dynamic", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AgriFoodFarmManagementLogs", - "AgriFoodFarmOperationLogs", - "AgriFoodInsightLogs", - "AgriFoodModelInferenceLogs", - "AgriFoodProviderAuthLogs", - "AgriFoodSatelliteLogs", - "AgriFoodWeatherLogs", - "ApiManagementGatewayLogs", - "AzureLoadTestingOperation", - "OLPSupplyChainEntityOperations" - ], - "extraction": null, - "common": false - }, - { - "name": "JobRunType", - "displayName": "JobRunType", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AgriFoodJobProcessedLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "UserRole", - "displayName": "UserRole", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AGSGrafanaLoginEvents", - "AUIEventsAudit", - "AUIEventsOperational", - "CIEventsAudit", - "CIEventsOperational" - ], - "extraction": null, - "common": false - }, - { - "name": "SourceDisplayName", - "displayName": "SourceDisplayName", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "Alert" - ], - "extraction": null, - "common": false - }, - { - "name": "AlertName", - "displayName": "AlertName", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "Alert" - ], - "extraction": null, - "common": false - }, - { - "name": "AlertDescription", - "displayName": "AlertDescription", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "Alert" - ], - "extraction": null, - "common": false - }, - { - "name": "AlertState", - "displayName": "AlertState", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "Alert" - ], - "extraction": null, - "common": false - }, - { - "name": "QueryExecutionStartTime", - "displayName": "QueryExecutionStartTime", - "type": "DateTime", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "Alert" - ], - "extraction": null, - "common": false - }, - { - "name": "QueryExecutionEndTime", - "displayName": "QueryExecutionEndTime", - "type": "DateTime", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "Alert" - ], - "extraction": null, - "common": false - }, - { - "name": "Query", - "displayName": "Query", - "type": "String", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "Alert" - ], - "extraction": null, - "common": false - }, - { - "name": "RemediationJobId", - "displayName": "RemediationJobId", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "Alert" - ], - "extraction": null, - "common": false - }, - { - "name": "RemediationRunbookName", - "displayName": "RemediationRunbookName", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "Alert" - ], - "extraction": null, - "common": false - }, - { - "name": "AlertRuleId", - "displayName": "AlertRuleId", - "type": "String", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "Alert" - ], - "extraction": null, - "common": false - }, - { - "name": "AlertRuleInstanceId", - "displayName": "AlertRuleInstanceId", - "type": "Guid", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "Alert" - ], - "extraction": null, - "common": false - }, - { - "name": "ThresholdOperator", - "displayName": "ThresholdOperator", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "Alert" - ], - "extraction": null, - "common": false - }, - { - "name": "ThresholdValue", - "displayName": "ThresholdValue", - "type": "Int", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "Alert" - ], - "extraction": null, - "common": false - }, - { - "name": "LinkToSearchResults", - "displayName": "LinkToSearchResults", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "Alert" - ], - "extraction": null, - "common": false - }, - { - "name": "ServiceDeskConnectionName", - "displayName": "ServiceDeskConnectionName", - "type": "String", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "Alert" - ], - "extraction": null, - "common": false - }, - { - "name": "ServiceDeskId", - "displayName": "ServiceDeskId", - "type": "String", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "Alert" - ], - "extraction": null, - "common": false - }, - { - "name": "ServiceDeskWorkItemLink", - "displayName": "ServiceDeskWorkItemLink", - "type": "Uri", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "Alert" - ], - "extraction": null, - "common": false - }, - { - "name": "ServiceDeskWorkItemType", - "displayName": "ServiceDeskWorkItemType", - "type": "String", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "Alert" - ], - "extraction": null, - "common": false - }, - { - "name": "ResourceType", - "displayName": "ResourceType", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "Alert", - "AzureDiagnostics", - "Heartbeat" - ], - "extraction": null, - "common": false - }, - { - "name": "ResourceValue", - "displayName": "ResourceValue", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "Alert" - ], - "extraction": null, - "common": false - }, - { - "name": "RootObjectName", - "displayName": "RootObjectName", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "Alert" - ], - "extraction": null, - "common": false - }, - { - "name": "ObjectDisplayName", - "displayName": "ObjectDisplayName", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "Alert" - ], - "extraction": null, - "common": false - }, - { - "name": "AlertPriority", - "displayName": "AlertPriority", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "Alert" - ], - "extraction": null, - "common": false - }, - { - "name": "SourceFullName", - "displayName": "SourceFullName", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "Alert" - ], - "extraction": null, - "common": false - }, - { - "name": "AlertId", - "displayName": "AlertId", - "type": "Guid", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "Alert" - ], - "extraction": null, - "common": false - }, - { - "name": "RepeatCount", - "displayName": "RepeatCount", - "type": "Int", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "Alert" - ], - "extraction": null, - "common": false - }, - { - "name": "ResolvedBy", - "displayName": "ResolvedBy", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "Alert" - ], - "extraction": null, - "common": false - }, - { - "name": "LastModifiedBy", - "displayName": "LastModifiedBy", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "Alert" - ], - "extraction": null, - "common": false - }, - { - "name": "TimeRaised", - "displayName": "TimeRaised", - "type": "DateTime", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "Alert" - ], - "extraction": null, - "common": false - }, - { - "name": "TimeResolved", - "displayName": "TimeResolved", - "type": "DateTime", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "Alert" - ], - "extraction": null, - "common": false - }, - { - "name": "TimeLastModified", - "displayName": "TimeLastModified", - "type": "DateTime", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "Alert" - ], - "extraction": null, - "common": false - }, - { - "name": "AlertContext", - "displayName": "AlertContext", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "Alert" - ], - "extraction": null, - "common": false - }, - { - "name": "TicketId", - "displayName": "TicketId", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "Alert" - ], - "extraction": null, - "common": false - }, - { - "name": "Custom1", - "displayName": "Custom1", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "Alert" - ], - "extraction": null, - "common": false - }, - { - "name": "Custom2", - "displayName": "Custom2", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "Alert" - ], - "extraction": null, - "common": false - }, - { - "name": "Custom3", - "displayName": "Custom3", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "Alert" - ], - "extraction": null, - "common": false - }, - { - "name": "Custom4", - "displayName": "Custom4", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "Alert" - ], - "extraction": null, - "common": false - }, - { - "name": "Custom5", - "displayName": "Custom5", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "Alert" - ], - "extraction": null, - "common": false - }, - { - "name": "Custom6", - "displayName": "Custom6", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "Alert" - ], - "extraction": null, - "common": false - }, - { - "name": "Custom7", - "displayName": "Custom7", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "Alert" - ], - "extraction": null, - "common": false - }, - { - "name": "Custom8", - "displayName": "Custom8", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "Alert" - ], - "extraction": null, - "common": false - }, - { - "name": "Custom9", - "displayName": "Custom9", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "Alert" - ], - "extraction": null, - "common": false - }, - { - "name": "Custom10", - "displayName": "Custom10", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "Alert" - ], - "extraction": null, - "common": false - }, - { - "name": "ManagementGroupName", - "displayName": "ManagementGroupName", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "Alert", - "Event", - "Heartbeat", - "Operation", - "W3CIISLog" - ], - "extraction": null, - "common": false - }, - { - "name": "PriorityNumber", - "displayName": "PriorityNumber", - "type": "Int", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "Alert" - ], - "extraction": null, - "common": false - }, - { - "name": "HostName", - "displayName": "HostName", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "Alert", - "AVSSyslog", - "HDInsightAmbariClusterAlerts", - "HDInsightAmbariSystemMetrics", - "HDInsightHadoopAndYarnLogs", - "HDInsightHadoopAndYarnMetrics", - "HDInsightHBaseLogs", - "HDInsightHBaseMetrics", - "HDInsightHiveAndLLAPLogs", - "HDInsightHiveAndLLAPMetrics", - "HDInsightHiveQueryAppStats", - "HDInsightHiveTezAppStats", - "HDInsightKafkaLogs", - "HDInsightKafkaMetrics", - "HDInsightOozieLogs", - "HDInsightRangerAuditLogs", - "HDInsightSecurityLogs", - "HDInsightSparkLogs", - "HDInsightStormLogs", - "HDInsightStormMetrics", - "HDInsightStormTopologyMetrics", - "SQLSecurityAuditEvents", - "Syslog", - "VMComputer" - ], - "extraction": null, - "common": false - }, - { - "name": "StateType", - "displayName": "StateType", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "Alert" - ], - "extraction": null, - "common": false - }, - { - "name": "AlertTypeDescription", - "displayName": "AlertTypeDescription", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "Alert" - ], - "extraction": null, - "common": false - }, - { - "name": "AlertTypeNumber", - "displayName": "AlertTypeNumber", - "type": "Int", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "Alert" - ], - "extraction": null, - "common": false - }, - { - "name": "AlertError", - "displayName": "AlertError", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "Alert" - ], - "extraction": null, - "common": false - }, - { - "name": "StatusDescription", - "displayName": "StatusDescription", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "Alert" - ], - "extraction": null, - "common": false - }, - { - "name": "Url", - "displayName": "Url", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "Alert", - "ApiManagementGatewayLogs", - "AppBrowserTimings", - "AppPageViews", - "AppRequests", - "NetworkAccessTraffic", - "WebPubSubHttpRequest" - ], - "extraction": null, - "common": false - }, - { - "name": "ValueDescription", - "displayName": "ValueDescription", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "Alert" - ], - "extraction": null, - "common": false - }, - { - "name": "AlertValue", - "displayName": "AlertValue", - "type": "Int", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "Alert" - ], - "extraction": null, - "common": false - }, - { - "name": "Comments", - "displayName": "Comments", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "Alert" - ], - "extraction": null, - "common": false - }, - { - "name": "TemplateId", - "displayName": "TemplateId", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "Alert" - ], - "extraction": null, - "common": false - }, - { - "name": "FlagsDescription", - "displayName": "FlagsDescription", - "type": "String", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "Alert" - ], - "extraction": null, - "common": false - }, - { - "name": "Flags", - "displayName": "Flags", - "type": "Int", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "Alert" - ], - "extraction": null, - "common": false - }, - { - "name": "ValueFlagsDescription", - "displayName": "ValueFlagsDescription", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "Alert" - ], - "extraction": null, - "common": false - }, - { - "name": "ValueFlags", - "displayName": "ValueFlags", - "type": "Int", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "Alert" - ], - "extraction": null, - "common": false - }, - { - "name": "Expression", - "displayName": "Expression", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "Alert" - ], - "extraction": null, - "common": false - }, - { - "name": "EntityType", - "displayName": "EntityType", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "HDInsightHiveQueryAppStats", - "PurviewSecurityLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "FileName", - "displayName": "FileName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "NetworkAccessTraffic" - ], - "extraction": null, - "common": false - }, - { - "name": "SHA256", - "displayName": "SHA256", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "StorageAntimalwareScanResults" - ], - "extraction": null, - "common": false - }, - { - "name": "FileSize", - "displayName": "FileSize", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "PurviewDataSensitivityLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "RemoteIP", - "displayName": "RemoteIP", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AppPlatformIngressLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "AccountName", - "displayName": "AccountName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "CDBCassandraRequests", - "CDBControlPlaneRequests", - "CDBDataPlaneRequests", - "CDBGremlinRequests", - "CDBMongoRequests", - "CDBPartitionKeyRUConsumption", - "CDBPartitionKeyStatistics", - "CDBQueryRuntimeStatistics", - "DSMAzureBlobStorageLogs", - "StorageBlobLogs", - "StorageFileLogs", - "StorageQueueLogs", - "StorageTableLogs", - "VIAudit", - "VIIndexing" - ], - "extraction": null, - "common": false - }, - { - "name": "DeviceId", - "displayName": "DeviceId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AmlComputeCpuGpuUtilization", - "IntuneDeviceComplianceOrg", - "IntuneDevices" - ], - "extraction": null, - "common": false - }, - { - "name": "DeviceName", - "displayName": "DeviceName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "IntuneDeviceComplianceOrg", - "IntuneDevices", - "MCVPOperationLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "Severity", - "displayName": "Severity", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AVSSyslog", - "AZFWIdpsSignature", - "AzureMetrics", - "PowerBIDatasetsTenantPreview", - "PowerBIDatasetsWorkspacePreview", - "VMConnection", - "W3CIISLog" - ], - "extraction": null, - "common": false - }, - { - "name": "Stream", - "displayName": "Stream", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AmlComputeClusterEvent", - "AmlComputeJobEvent", - "AppPlatformLogsforSpring", - "BaiClusterEvent", - "BaiJobEvent", - "ContainerAppConsoleLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "Docker", - "displayName": "Docker", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AmlComputeClusterEvent", - "AmlComputeJobEvent", - "BaiClusterEvent", - "BaiJobEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "Kubernetes", - "displayName": "Kubernetes", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AmlComputeClusterEvent", - "AmlComputeJobEvent", - "BaiClusterEvent", - "BaiJobEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "Tag", - "displayName": "Tag", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AmlComputeClusterEvent", - "AmlComputeJobEvent", - "BaiClusterEvent", - "BaiJobEvent", - "ContainerRegistryRepositoryEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "LogEpochTimestamp", - "displayName": "LogEpochTimestamp", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AmlComputeClusterEvent", - "AmlComputeClusterNodeEvent", - "AmlComputeJobEvent", - "BaiClusterEvent", - "BaiClusterNodeEvent", - "BaiJobEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "ProvisioningState", - "displayName": "ProvisioningState", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AmlComputeClusterEvent", - "AmlComputeJobEvent", - "BaiClusterEvent", - "BaiJobEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "ClusterName", - "displayName": "ClusterName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AmlComputeClusterEvent", - "AmlComputeClusterNodeEvent", - "AmlComputeJobEvent", - "BaiClusterEvent", - "BaiClusterNodeEvent", - "BaiJobEvent", - "CassandraAudit", - "CassandraLogs", - "HDInsightAmbariClusterAlerts", - "HDInsightAmbariSystemMetrics", - "HDInsightHadoopAndYarnLogs", - "HDInsightHadoopAndYarnMetrics", - "HDInsightHBaseLogs", - "HDInsightHBaseMetrics", - "HDInsightHiveAndLLAPLogs", - "HDInsightHiveAndLLAPMetrics", - "HDInsightHiveQueryAppStats", - "HDInsightHiveTezAppStats", - "HDInsightKafkaLogs", - "HDInsightKafkaMetrics", - "HDInsightOozieLogs", - "HDInsightRangerAuditLogs", - "HDInsightSecurityLogs", - "HDInsightSparkLogs", - "HDInsightStormLogs", - "HDInsightStormMetrics", - "HDInsightStormTopologyMetrics", - "KubeEvents", - "KubeMonAgentEvents", - "KubeNodeInventory", - "KubePodInventory", - "KubeServices" - ], - "extraction": null, - "common": false - }, - { - "name": "ClusterType", - "displayName": "ClusterType", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AmlComputeClusterEvent", - "BaiClusterEvent", - "HDInsightAmbariClusterAlerts", - "HDInsightAmbariSystemMetrics", - "HDInsightHadoopAndYarnLogs", - "HDInsightHadoopAndYarnMetrics", - "HDInsightHBaseLogs", - "HDInsightHBaseMetrics", - "HDInsightHiveAndLLAPLogs", - "HDInsightHiveAndLLAPMetrics", - "HDInsightHiveQueryAppStats", - "HDInsightHiveTezAppStats", - "HDInsightOozieLogs", - "HDInsightRangerAuditLogs", - "HDInsightStormTopologyMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "CreatedBy", - "displayName": "CreatedBy", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AmlComputeClusterEvent", - "BaiClusterEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "CoreCount", - "displayName": "CoreCount", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AmlComputeClusterEvent", - "BaiClusterEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "VmSize", - "displayName": "VmSize", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AmlComputeClusterEvent", - "AmlComputeClusterNodeEvent", - "BaiClusterEvent", - "BaiClusterNodeEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "VmPriority", - "displayName": "VmPriority", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AmlComputeClusterEvent", - "AmlComputeClusterNodeEvent", - "BaiClusterEvent", - "BaiClusterNodeEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "ScalingType", - "displayName": "ScalingType", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AmlComputeClusterEvent", - "BaiClusterEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "InitialNodeCount", - "displayName": "InitialNodeCount", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AmlComputeClusterEvent", - "BaiClusterEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "MinimumNodeCount", - "displayName": "MinimumNodeCount", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AmlComputeClusterEvent", - "BaiClusterEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "MaximumNodeCount", - "displayName": "MaximumNodeCount", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AmlComputeClusterEvent", - "BaiClusterEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "NodeDeallocationOption", - "displayName": "NodeDeallocationOption", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AmlComputeClusterEvent", - "BaiClusterEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "Publisher", - "displayName": "Publisher", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AmlComputeClusterEvent", - "AmlComputeClusterNodeEvent", - "BaiClusterEvent", - "BaiClusterNodeEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "Offer", - "displayName": "Offer", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AmlComputeClusterEvent", - "AmlComputeClusterNodeEvent", - "BaiClusterEvent", - "BaiClusterNodeEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "Sku", - "displayName": "Sku", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AmlComputeClusterEvent", - "AmlComputeClusterNodeEvent", - "BaiClusterEvent", - "BaiClusterNodeEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "Version", - "displayName": "Version", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AmlComputeClusterEvent", - "AmlComputeClusterNodeEvent", - "BaiClusterEvent", - "BaiClusterNodeEvent", - "Heartbeat" - ], - "extraction": null, - "common": false - }, - { - "name": "SubnetId", - "displayName": "SubnetId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AmlComputeClusterEvent", - "BaiClusterEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "AllocationState", - "displayName": "AllocationState", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AmlComputeClusterEvent", - "BaiClusterEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "CurrentNodeCount", - "displayName": "CurrentNodeCount", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AmlComputeClusterEvent", - "BaiClusterEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "TargetNodeCount", - "displayName": "TargetNodeCount", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AmlComputeClusterEvent", - "BaiClusterEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "EventType", - "displayName": "EventType", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AmlComputeClusterEvent", - "AmlComputeJobEvent", - "AppSystemEvents", - "AUIEventsAudit", - "AUIEventsOperational", - "BaiClusterEvent", - "BaiJobEvent", - "CassandraLogs", - "CIEventsAudit", - "CIEventsOperational", - "OLPSupplyChainEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "NodeIdleTimeSecondsBeforeScaleDown", - "displayName": "NodeIdleTimeSecondsBeforeScaleDown", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AmlComputeClusterEvent", - "BaiClusterEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "PreemptedNodeCount", - "displayName": "PreemptedNodeCount", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AmlComputeClusterEvent", - "BaiClusterEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "IsResizeGrow", - "displayName": "IsResizeGrow", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AmlComputeClusterEvent", - "BaiClusterEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "VmFamilyName", - "displayName": "VmFamilyName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AmlComputeClusterEvent", - "AmlComputeClusterNodeEvent", - "BaiClusterEvent", - "BaiClusterNodeEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "LeavingNodeCount", - "displayName": "LeavingNodeCount", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AmlComputeClusterEvent", - "BaiClusterEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "UnusableNodeCount", - "displayName": "UnusableNodeCount", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AmlComputeClusterEvent", - "BaiClusterEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "IdleNodeCount", - "displayName": "IdleNodeCount", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AmlComputeClusterEvent", - "BaiClusterEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "RunningNodeCount", - "displayName": "RunningNodeCount", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AmlComputeClusterEvent", - "BaiClusterEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "PreparingNodeCount", - "displayName": "PreparingNodeCount", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AmlComputeClusterEvent", - "BaiClusterEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "QuotaAllocated", - "displayName": "QuotaAllocated", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AmlComputeClusterEvent", - "BaiClusterEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "QuotaUtilized", - "displayName": "QuotaUtilized", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AmlComputeClusterEvent", - "BaiClusterEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "AllocationStateTransitionTime", - "displayName": "AllocationStateTransitionTime", - "type": "DateTime", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AmlComputeClusterEvent", - "BaiClusterEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "ClusterErrorCodes", - "displayName": "ClusterErrorCodes", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AmlComputeClusterEvent", - "BaiClusterEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "CreationApiVersion", - "displayName": "CreationApiVersion", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AmlComputeClusterEvent", - "AmlComputeJobEvent", - "BaiClusterEvent", - "BaiJobEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "InternalOperationName", - "displayName": "InternalOperationName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AmlComputeClusterEvent", - "AmlComputeClusterNodeEvent", - "AmlComputeJobEvent", - "BaiClusterEvent", - "BaiClusterNodeEvent", - "BaiJobEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "Node", - "displayName": "Node", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AmlComputeClusterEvent", - "AmlComputeClusterNodeEvent", - "AmlComputeJobEvent", - "BaiClusterEvent", - "BaiClusterNodeEvent", - "BaiJobEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "EnvNamespace", - "displayName": "EnvNamespace", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AmlComputeClusterEvent", - "AmlComputeClusterNodeEvent", - "AmlComputeJobEvent", - "BaiClusterEvent", - "BaiClusterNodeEvent", - "BaiJobEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "Pod", - "displayName": "Pod", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AmlComputeClusterEvent", - "AmlComputeClusterNodeEvent", - "AmlComputeJobEvent", - "BaiClusterEvent", - "BaiClusterNodeEvent", - "BaiJobEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "Container", - "displayName": "Container", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AmlComputeClusterEvent", - "AmlComputeClusterNodeEvent", - "AmlComputeJobEvent", - "BaiClusterEvent", - "BaiClusterNodeEvent", - "BaiJobEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "Host", - "displayName": "Host", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AmlComputeClusterEvent", - "AmlComputeClusterNodeEvent", - "AmlComputeJobEvent", - "AppPlatformIngressLogs", - "AppServiceAppLogs", - "AppServiceConsoleLogs", - "AppServicePlatformLogs", - "BaiClusterEvent", - "BaiClusterNodeEvent", - "BaiJobEvent", - "HDInsightJupyterNotebookEvents", - "HDInsightSparkApplicationEvents", - "HDInsightSparkBlockManagerEvents", - "HDInsightSparkEnvironmentEvents", - "HDInsightSparkExecutorEvents", - "HDInsightSparkExtraEvents", - "HDInsightSparkJobEvents", - "HDInsightSparkSQLExecutionEvents", - "HDInsightSparkStageEvents", - "HDInsightSparkStageTaskAccumulables", - "HDInsightSparkTaskEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "env_time", - "displayName": "env_time", - "type": "DateTime", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AmlComputeClusterEvent", - "AmlComputeClusterNodeEvent", - "AmlComputeJobEvent", - "BaiClusterEvent", - "BaiClusterNodeEvent", - "BaiJobEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "FluentdIngestTimestamp", - "displayName": "FluentdIngestTimestamp", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AmlComputeClusterEvent", - "AmlComputeClusterNodeEvent", - "AmlComputeJobEvent", - "BaiClusterEvent", - "BaiClusterNodeEvent", - "BaiJobEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "stream", - "displayName": "stream", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AmlComputeClusterNodeEvent", - "BaiClusterNodeEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "docker", - "displayName": "docker", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AmlComputeClusterNodeEvent", - "BaiClusterNodeEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "kubernetes", - "displayName": "kubernetes", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AmlComputeClusterNodeEvent", - "BaiClusterNodeEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "tag", - "displayName": "tag", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AmlComputeClusterNodeEvent", - "BaiClusterNodeEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "NodeId", - "displayName": "NodeId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AmlComputeClusterNodeEvent", - "AmlComputeCpuGpuUtilization", - "AmlComputeJobEvent", - "BaiClusterNodeEvent", - "BaiJobEvent", - "ServiceFabricReliableActorEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "ClusterCreationTime", - "displayName": "ClusterCreationTime", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AmlComputeClusterNodeEvent", - "BaiClusterNodeEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "ResizeStartTime", - "displayName": "ResizeStartTime", - "type": "DateTime", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AmlComputeClusterNodeEvent", - "BaiClusterNodeEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "ResizeEndTime", - "displayName": "ResizeEndTime", - "type": "DateTime", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AmlComputeClusterNodeEvent", - "BaiClusterNodeEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "NodeAllocationTime", - "displayName": "NodeAllocationTime", - "type": "DateTime", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AmlComputeClusterNodeEvent", - "BaiClusterNodeEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "NodeBootTime", - "displayName": "NodeBootTime", - "type": "DateTime", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AmlComputeClusterNodeEvent", - "BaiClusterNodeEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "StartTaskStartTime", - "displayName": "StartTaskStartTime", - "type": "DateTime", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AmlComputeClusterNodeEvent", - "BaiClusterNodeEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "StartTaskEndTime", - "displayName": "StartTaskEndTime", - "type": "DateTime", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AmlComputeClusterNodeEvent", - "BaiClusterNodeEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "TotalE2ETimeInSeconds", - "displayName": "TotalE2ETimeInSeconds", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AmlComputeClusterNodeEvent", - "BaiClusterNodeEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "WorkspaceName", - "displayName": "WorkspaceName", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AmlComputeCpuGpuUtilization", - "AmlComputeJobEvent", - "AmlRunStatusChangedEvent", - "BaiJobEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "WorkspaceId", - "displayName": "WorkspaceId", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AmlComputeCpuGpuUtilization", - "AmlRunStatusChangedEvent", - "PowerBIDatasetsTenantPreview", - "PowerBIDatasetsWorkspacePreview" - ], - "extraction": null, - "common": false - }, - { - "name": "DeviceType", - "displayName": "DeviceType", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AmlComputeCpuGpuUtilization", - "IntuneDeviceComplianceOrg" - ], - "extraction": null, - "common": false - }, - { - "name": "Utilization", - "displayName": "Utilization", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AmlComputeCpuGpuUtilization" - ], - "extraction": null, - "common": false - }, - { - "name": "AmlComputeInstanceName", - "displayName": "AmlComputeInstanceName", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AmlComputeInstanceEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "AadTenantId", - "displayName": "AadTenantId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AmlComputeInstanceEvent", - "AmlDataLabelEvent", - "AmlDataSetEvent", - "AmlDataStoreEvent", - "AmlDeploymentEvent", - "AmlEnvironmentEvent", - "AmlInferencingEvent", - "AmlModelsEvent", - "AmlPipelineEvent", - "AmlRunEvent", - "WVDConnections" - ], - "extraction": null, - "common": false - }, - { - "name": "ExperimentName", - "displayName": "ExperimentName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AmlComputeJobEvent", - "BaiJobEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "CustomerSubscriptionId", - "displayName": "CustomerSubscriptionId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AmlComputeJobEvent", - "BaiJobEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "ResourceGroupName", - "displayName": "ResourceGroupName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AmlComputeJobEvent", - "BaiJobEvent", - "CoreAzureBackup" - ], - "extraction": null, - "common": false - }, - { - "name": "JobName", - "displayName": "JobName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AmlComputeJobEvent", - "BaiJobEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "ClusterId", - "displayName": "ClusterId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AmlComputeJobEvent", - "BaiJobEvent", - "HDInsightHiveTezAppStats", - "KubeEvents", - "KubeHealth", - "KubeMonAgentEvents", - "KubeNodeInventory", - "KubePodInventory", - "KubeServices" - ], - "extraction": null, - "common": false - }, - { - "name": "ExecutionState", - "displayName": "ExecutionState", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AmlComputeJobEvent", - "BaiJobEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "ErrorDetails", - "displayName": "ErrorDetails", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AmlComputeJobEvent", - "BaiJobEvent", - "PurviewScanStatusLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ClusterResourceGroupName", - "displayName": "ClusterResourceGroupName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AmlComputeJobEvent", - "BaiJobEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "TFWorkerCount", - "displayName": "TFWorkerCount", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AmlComputeJobEvent", - "BaiJobEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "TFParameterServerCount", - "displayName": "TFParameterServerCount", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AmlComputeJobEvent", - "BaiJobEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "ToolType", - "displayName": "ToolType", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AmlComputeJobEvent", - "BaiJobEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "RunInContainer", - "displayName": "RunInContainer", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AmlComputeJobEvent", - "BaiJobEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "JobErrorMessage", - "displayName": "JobErrorMessage", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AmlComputeJobEvent", - "BaiJobEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "AmlProjectId", - "displayName": "AmlProjectId", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AmlDataLabelEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "AmlProjectName", - "displayName": "AmlProjectName", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AmlDataLabelEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "AmlLabelNames", - "displayName": "AmlLabelNames", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AmlDataLabelEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "AmlDataStoreName", - "displayName": "AmlDataStoreName", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AmlDataLabelEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "AmlWorkspaceId", - "displayName": "AmlWorkspaceId", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AmlDataSetEvent", - "AmlDataStoreEvent", - "AmlPipelineEvent", - "AmlRunEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "AmlDatasetId", - "displayName": "AmlDatasetId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AmlDataSetEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "AmlDatasetName", - "displayName": "AmlDatasetName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AmlDataSetEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "AmlDatastoreName", - "displayName": "AmlDatastoreName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AmlDataStoreEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "AmlServiceName", - "displayName": "AmlServiceName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AmlDeploymentEvent", - "AmlInferencingEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "AmlEnvironmentName", - "displayName": "AmlEnvironmentName", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AmlEnvironmentEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "AmlEnvironmentVersion", - "displayName": "AmlEnvironmentVersion", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AmlEnvironmentEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "AmlModelName", - "displayName": "AmlModelName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AmlModelsEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "InstanceId", - "displayName": "InstanceId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AmlOnlineEndpointConsoleLog", - "AmlOnlineEndpointEventLog", - "AUIEventsAudit", - "AUIEventsOperational", - "CIEventsAudit", - "CIEventsOperational", - "IoTHubDistributedTracing", - "ServiceFabricReliableServiceEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "DeploymentName", - "displayName": "DeploymentName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AmlOnlineEndpointConsoleLog", - "AmlOnlineEndpointEventLog", - "AmlOnlineEndpointTrafficLog" - ], - "extraction": null, - "common": false - }, - { - "name": "ContainerName", - "displayName": "ContainerName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AmlOnlineEndpointConsoleLog", - "AppPlatformBuildLogs", - "ContainerAppConsoleLogs", - "ContainerAppSystemLogs", - "KubePodInventory" - ], - "extraction": null, - "common": false - }, - { - "name": "Name", - "displayName": "Name", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AmlOnlineEndpointEventLog", - "AppAvailabilityResults", - "AppBrowserTimings", - "AppDependencies", - "AppEvents", - "AppMetrics", - "AppPageViews", - "AppPerformanceCounters", - "AppRequests", - "AppSystemEvents", - "ContainerInventory", - "ContainerLog", - "InsightsMetrics", - "KubeEvents", - "KubePodInventory", - "WVDCheckpoints" - ], - "extraction": null, - "common": false - }, - { - "name": "Path", - "displayName": "Path", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AmlOnlineEndpointTrafficLog", - "AppServiceFileAuditLogs", - "AUIEventsAudit", - "AUIEventsOperational", - "CIEventsAudit", - "CIEventsOperational" - ], - "extraction": null, - "common": false - }, - { - "name": "AzureMLWorkspaceId", - "displayName": "AzureMLWorkspaceId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AmlOnlineEndpointTrafficLog" - ], - "extraction": null, - "common": false - }, - { - "name": "ResponseCode", - "displayName": "ResponseCode", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AmlOnlineEndpointTrafficLog", - "ApiManagementGatewayLogs", - "AZFWDnsQuery", - "LAQueryLogs", - "StorageCacheOperationEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "ResponseCodeReason", - "displayName": "ResponseCodeReason", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AmlOnlineEndpointTrafficLog" - ], - "extraction": null, - "common": false - }, - { - "name": "ModelStatusCode", - "displayName": "ModelStatusCode", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AmlOnlineEndpointTrafficLog" - ], - "extraction": null, - "common": false - }, - { - "name": "ModelStatusReason", - "displayName": "ModelStatusReason", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AmlOnlineEndpointTrafficLog" - ], - "extraction": null, - "common": false - }, - { - "name": "RequestPayloadSize", - "displayName": "RequestPayloadSize", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AmlOnlineEndpointTrafficLog" - ], - "extraction": null, - "common": false - }, - { - "name": "ResponsePayloadSize", - "displayName": "ResponsePayloadSize", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AmlOnlineEndpointTrafficLog" - ], - "extraction": null, - "common": false - }, - { - "name": "XRequestId", - "displayName": "XRequestId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AmlOnlineEndpointTrafficLog" - ], - "extraction": null, - "common": false - }, - { - "name": "XMSClientRequestId", - "displayName": "XMSClientRequestId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AmlOnlineEndpointTrafficLog" - ], - "extraction": null, - "common": false - }, - { - "name": "TotalDurationMs", - "displayName": "TotalDurationMs", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AmlOnlineEndpointTrafficLog", - "AppBrowserTimings" - ], - "extraction": null, - "common": false - }, - { - "name": "RequestDurationMs", - "displayName": "RequestDurationMs", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AmlOnlineEndpointTrafficLog" - ], - "extraction": null, - "common": false - }, - { - "name": "ResponseDurationMs", - "displayName": "ResponseDurationMs", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AmlOnlineEndpointTrafficLog", - "LAQueryLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "RequestThrottlingDelayMs", - "displayName": "RequestThrottlingDelayMs", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AmlOnlineEndpointTrafficLog" - ], - "extraction": null, - "common": false - }, - { - "name": "ResponseThrottlingDelayMs", - "displayName": "ResponseThrottlingDelayMs", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AmlOnlineEndpointTrafficLog" - ], - "extraction": null, - "common": false - }, - { - "name": "AmlModuleId", - "displayName": "AmlModuleId", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AmlPipelineEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "AmlModuleName", - "displayName": "AmlModuleName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AmlPipelineEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "AmlWorkspaceName", - "displayName": "AmlWorkspaceName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AmlPipelineEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "AmlPipelineId", - "displayName": "AmlPipelineId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AmlPipelineEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "AmlParentPipelineId", - "displayName": "AmlParentPipelineId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AmlPipelineEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "AmlPipelineDraftId", - "displayName": "AmlPipelineDraftId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AmlPipelineEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "AmlPipelineDraftName", - "displayName": "AmlPipelineDraftName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AmlPipelineEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "AmlPipelineEndpointId", - "displayName": "AmlPipelineEndpointId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AmlPipelineEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "AmlPipelineEndpointName", - "displayName": "AmlPipelineEndpointName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AmlPipelineEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "TriggeringUserName", - "displayName": "TriggeringUserName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AmlRunStatusChangedEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "OperationTime", - "displayName": "OperationTime", - "type": "DateTime", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ANFFileAccess" - ], - "extraction": null, - "common": false - }, - { - "name": "ObjectName", - "displayName": "ObjectName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ANFFileAccess", - "Perf", - "PowerBIDatasetsTenantPreview", - "PowerBIDatasetsWorkspacePreview", - "SQLSecurityAuditEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "SubjectUnix", - "displayName": "SubjectUnix", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ANFFileAccess" - ], - "extraction": null, - "common": false - }, - { - "name": "IsUserLocal", - "displayName": "IsUserLocal", - "type": "Bool", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ANFFileAccess" - ], - "extraction": null, - "common": false - }, - { - "name": "ObjectType", - "displayName": "ObjectType", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ANFFileAccess", - "PowerBIDatasetsTenantPreview", - "PowerBIDatasetsWorkspacePreview" - ], - "extraction": null, - "common": false - }, - { - "name": "RuleName", - "displayName": "RuleName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "NetworkAccessTraffic" - ], - "extraction": null, - "common": false - }, - { - "name": "SourceIpAddress", - "displayName": "SourceIpAddress", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "NSPAccessLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "IsRequestSuccess", - "displayName": "IsRequestSuccess", - "type": "Bool", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ApiManagementGatewayLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "TotalTime", - "displayName": "TotalTime", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ApiManagementGatewayLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ClientProtocol", - "displayName": "ClientProtocol", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ApiManagementGatewayLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "BackendMethod", - "displayName": "BackendMethod", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ApiManagementGatewayLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "BackendUrl", - "displayName": "BackendUrl", - "type": "Uri", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ApiManagementGatewayLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "BackendResponseCode", - "displayName": "BackendResponseCode", - "type": "Int", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ApiManagementGatewayLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "BackendProtocol", - "displayName": "BackendProtocol", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ApiManagementGatewayLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "RequestSize", - "displayName": "RequestSize", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ApiManagementGatewayLogs", - "AZFWDnsQuery" - ], - "extraction": null, - "common": false - }, - { - "name": "ResponseSize", - "displayName": "ResponseSize", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ApiManagementGatewayLogs", - "AZFWDnsQuery" - ], - "extraction": null, - "common": false - }, - { - "name": "Cache", - "displayName": "Cache", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ApiManagementGatewayLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "CacheTime", - "displayName": "CacheTime", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ApiManagementGatewayLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "BackendTime", - "displayName": "BackendTime", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ApiManagementGatewayLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ClientTime", - "displayName": "ClientTime", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ApiManagementGatewayLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ApiId", - "displayName": "ApiId", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ApiManagementGatewayLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ProductId", - "displayName": "ProductId", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ApiManagementGatewayLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ApimSubscriptionId", - "displayName": "ApimSubscriptionId", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ApiManagementGatewayLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "BackendId", - "displayName": "BackendId", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ApiManagementGatewayLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "LastErrorElapsed", - "displayName": "LastErrorElapsed", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ApiManagementGatewayLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "LastErrorSource", - "displayName": "LastErrorSource", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ApiManagementGatewayLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "LastErrorScope", - "displayName": "LastErrorScope", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ApiManagementGatewayLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "LastErrorSection", - "displayName": "LastErrorSection", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ApiManagementGatewayLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "LastErrorReason", - "displayName": "LastErrorReason", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ApiManagementGatewayLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "LastErrorMessage", - "displayName": "LastErrorMessage", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ApiManagementGatewayLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ApiRevision", - "displayName": "ApiRevision", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ApiManagementGatewayLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ClientTlsVersion", - "displayName": "ClientTlsVersion", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ApiManagementGatewayLogs", - "SQLSecurityAuditEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "RequestHeaders", - "displayName": "RequestHeaders", - "type": "Dynamic", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ApiManagementGatewayLogs", - "AppPlatformIngressLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ResponseHeaders", - "displayName": "ResponseHeaders", - "type": "Dynamic", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ApiManagementGatewayLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "BackendRequestHeaders", - "displayName": "BackendRequestHeaders", - "type": "Dynamic", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ApiManagementGatewayLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "BackendResponseHeaders", - "displayName": "BackendResponseHeaders", - "type": "Dynamic", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ApiManagementGatewayLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ResponseBody", - "displayName": "ResponseBody", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ApiManagementGatewayLogs", - "OLPSupplyChainEntityOperations" - ], - "extraction": null, - "common": false - }, - { - "name": "BackendRequestBody", - "displayName": "BackendRequestBody", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ApiManagementGatewayLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "BackendResponseBody", - "displayName": "BackendResponseBody", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ApiManagementGatewayLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "Errors", - "displayName": "Errors", - "type": "Dynamic", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ApiManagementGatewayLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "TraceRecords", - "displayName": "TraceRecords", - "type": "Dynamic", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ApiManagementGatewayLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "AvailabilityResultId", - "displayName": "Id", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AppAvailabilityResults" - ], - "extraction": null, - "common": false - }, - { - "name": "Measurements", - "displayName": "Measurements", - "type": "Dynamic", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AppAvailabilityResults", - "AppBrowserTimings", - "AppDependencies", - "AppEvents", - "AppExceptions", - "AppPageViews", - "AppRequests", - "AppSystemEvents", - "AppTraces" - ], - "extraction": null, - "common": false - }, - { - "name": "SyntheticSource", - "displayName": "SyntheticSource", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AppAvailabilityResults", - "AppBrowserTimings", - "AppDependencies", - "AppEvents", - "AppExceptions", - "AppMetrics", - "AppPageViews", - "AppPerformanceCounters", - "AppRequests", - "AppTraces" - ], - "extraction": null, - "common": false - }, - { - "name": "SessionId", - "displayName": "SessionId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AppAvailabilityResults", - "AppBrowserTimings", - "AppDependencies", - "AppEvents", - "AppExceptions", - "AppMetrics", - "AppPageViews", - "AppPerformanceCounters", - "AppRequests", - "AppTraces", - "CassandraLogs", - "DatabricksAccounts", - "DatabricksClusters", - "DatabricksDatabricksSQL", - "DatabricksDBFS", - "DatabricksDeltaPipelines", - "DatabricksFeatureStore", - "DatabricksGenie", - "DatabricksGitCredentials", - "DatabricksGlobalInitScripts", - "DatabricksIAMRole", - "DatabricksInstancePools", - "DatabricksJobs", - "DatabricksMLflowAcledArtifact", - "DatabricksMLflowExperiment", - "DatabricksModelRegistry", - "DatabricksNotebook", - "DatabricksRemoteHistoryService", - "DatabricksRepos", - "DatabricksSecrets", - "DatabricksSQL", - "DatabricksSQLPermissions", - "DatabricksSSH", - "DatabricksTables", - "DatabricksUnityCatalog", - "DatabricksWebTerminal", - "DatabricksWorkspace", - "HDInsightHiveQueryAppStats", - "HDInsightRangerAuditLogs", - "PowerBIDatasetsTenantPreview", - "PowerBIDatasetsWorkspacePreview", - "SQLSecurityAuditEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "UserAuthenticatedId", - "displayName": "UserAuthenticatedId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AppAvailabilityResults", - "AppBrowserTimings", - "AppDependencies", - "AppEvents", - "AppExceptions", - "AppMetrics", - "AppPageViews", - "AppPerformanceCounters", - "AppRequests", - "AppTraces" - ], - "extraction": null, - "common": false - }, - { - "name": "UserAccountId", - "displayName": "UserAccountId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AppAvailabilityResults", - "AppBrowserTimings", - "AppDependencies", - "AppEvents", - "AppExceptions", - "AppMetrics", - "AppPageViews", - "AppPerformanceCounters", - "AppRequests", - "AppTraces" - ], - "extraction": null, - "common": false - }, - { - "name": "AppVersion", - "displayName": "AppVersion", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "AppAvailabilityResults", - "AppBrowserTimings", - "AppDependencies", - "AppEvents", - "AppExceptions", - "AppMetrics", - "AppPageViews", - "AppPerformanceCounters", - "AppRequests", - "AppTraces" - ], - "extraction": null, - "common": false - }, - { - "name": "AppRoleName", - "displayName": "AppRoleName", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "AppAvailabilityResults", - "AppBrowserTimings", - "AppDependencies", - "AppEvents", - "AppExceptions", - "AppMetrics", - "AppPageViews", - "AppPerformanceCounters", - "AppRequests", - "AppTraces" - ], - "extraction": null, - "common": false - }, - { - "name": "AppRoleInstance", - "displayName": "AppRoleInstance", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "AppAvailabilityResults", - "AppBrowserTimings", - "AppDependencies", - "AppEvents", - "AppExceptions", - "AppMetrics", - "AppPageViews", - "AppPerformanceCounters", - "AppRequests", - "AppTraces" - ], - "extraction": null, - "common": false - }, - { - "name": "ClientType", - "displayName": "ClientType", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AppAvailabilityResults", - "AppBrowserTimings", - "AppDependencies", - "AppEvents", - "AppExceptions", - "AppMetrics", - "AppPageViews", - "AppPerformanceCounters", - "AppRequests", - "AppTraces", - "WVDConnections", - "WVDFeeds", - "WVDSessionHostManagement" - ], - "extraction": null, - "common": false - }, - { - "name": "ClientModel", - "displayName": "ClientModel", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AppAvailabilityResults", - "AppBrowserTimings", - "AppDependencies", - "AppEvents", - "AppExceptions", - "AppMetrics", - "AppPageViews", - "AppPerformanceCounters", - "AppRequests", - "AppTraces" - ], - "extraction": null, - "common": false - }, - { - "name": "ClientOS", - "displayName": "ClientOS", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AppAvailabilityResults", - "AppBrowserTimings", - "AppDependencies", - "AppEvents", - "AppExceptions", - "AppMetrics", - "AppPageViews", - "AppPerformanceCounters", - "AppRequests", - "AppTraces", - "WVDConnections", - "WVDFeeds" - ], - "extraction": null, - "common": false - }, - { - "name": "ClientIP", - "displayName": "ClientIP", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AppAvailabilityResults", - "AppBrowserTimings", - "AppDependencies", - "AppEvents", - "AppExceptions", - "AppMetrics", - "AppPageViews", - "AppPerformanceCounters", - "AppRequests", - "AppTraces", - "CassandraAudit" - ], - "extraction": null, - "common": false - }, - { - "name": "ClientCity", - "displayName": "ClientCity", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AppAvailabilityResults", - "AppBrowserTimings", - "AppDependencies", - "AppEvents", - "AppExceptions", - "AppMetrics", - "AppPageViews", - "AppPerformanceCounters", - "AppRequests", - "AppTraces" - ], - "extraction": null, - "common": false - }, - { - "name": "ClientStateOrProvince", - "displayName": "ClientStateOrProvince", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AppAvailabilityResults", - "AppBrowserTimings", - "AppDependencies", - "AppEvents", - "AppExceptions", - "AppMetrics", - "AppPageViews", - "AppPerformanceCounters", - "AppRequests", - "AppTraces" - ], - "extraction": null, - "common": false - }, - { - "name": "ClientCountryOrRegion", - "displayName": "ClientCountryOrRegion", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AppAvailabilityResults", - "AppBrowserTimings", - "AppDependencies", - "AppEvents", - "AppExceptions", - "AppMetrics", - "AppPageViews", - "AppPerformanceCounters", - "AppRequests", - "AppTraces" - ], - "extraction": null, - "common": false - }, - { - "name": "ClientBrowser", - "displayName": "ClientBrowser", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "AppAvailabilityResults", - "AppBrowserTimings", - "AppDependencies", - "AppEvents", - "AppExceptions", - "AppMetrics", - "AppPageViews", - "AppPerformanceCounters", - "AppRequests", - "AppTraces" - ], - "extraction": null, - "common": false - }, - { - "name": "ResourceGUID", - "displayName": "ResourceGUID", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AppAvailabilityResults", - "AppBrowserTimings", - "AppDependencies", - "AppEvents", - "AppExceptions", - "AppMetrics", - "AppPageViews", - "AppPerformanceCounters", - "AppRequests", - "AppTraces" - ], - "extraction": null, - "common": false - }, - { - "name": "IKey", - "displayName": "IKey", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AppAvailabilityResults", - "AppBrowserTimings", - "AppDependencies", - "AppEvents", - "AppExceptions", - "AppMetrics", - "AppPageViews", - "AppPerformanceCounters", - "AppRequests", - "AppTraces" - ], - "extraction": null, - "common": false - }, - { - "name": "SDKVersion", - "displayName": "SDKVersion", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AppAvailabilityResults", - "AppBrowserTimings", - "AppDependencies", - "AppEvents", - "AppExceptions", - "AppMetrics", - "AppPageViews", - "AppPerformanceCounters", - "AppRequests", - "AppTraces" - ], - "extraction": null, - "common": false - }, - { - "name": "ItemCount", - "displayName": "ItemCount", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AppAvailabilityResults", - "AppBrowserTimings", - "AppDependencies", - "AppEvents", - "AppExceptions", - "AppMetrics", - "AppPageViews", - "AppRequests", - "AppTraces" - ], - "extraction": null, - "common": false - }, - { - "name": "NetworkDurationMs", - "displayName": "NetworkDurationMs", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AppBrowserTimings" - ], - "extraction": null, - "common": false - }, - { - "name": "SendDurationMs", - "displayName": "SendDurationMs", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AppBrowserTimings" - ], - "extraction": null, - "common": false - }, - { - "name": "ReceiveDurationMs", - "displayName": "ReceiveDurationMs", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AppBrowserTimings" - ], - "extraction": null, - "common": false - }, - { - "name": "ProcessingDurationMs", - "displayName": "ProcessingDurationMs", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AppBrowserTimings" - ], - "extraction": null, - "common": false - }, - { - "name": "PerformanceBucket", - "displayName": "PerformanceBucket", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AppBrowserTimings", - "AppDependencies", - "AppPageViews", - "AppRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "SchemaType", - "displayName": "SchemaType", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AppCenterError" - ], - "extraction": null, - "common": false - }, - { - "name": "ErrorId", - "displayName": "ErrorId", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AppCenterError", - "Operation", - "SynapseSqlPoolDmsWorkers", - "SynapseSqlPoolExecRequests", - "SynapseSqlPoolRequestSteps", - "SynapseSqlPoolSqlRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "ErrorGroupId", - "displayName": "ErrorGroupId", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AppCenterError" - ], - "extraction": null, - "common": false - }, - { - "name": "UserString", - "displayName": "UserString", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AppCenterError" - ], - "extraction": null, - "common": false - }, - { - "name": "Oem", - "displayName": "Oem", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AppCenterError" - ], - "extraction": null, - "common": false - }, - { - "name": "Model", - "displayName": "Model", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AppCenterError", - "IntuneDevices" - ], - "extraction": null, - "common": false - }, - { - "name": "JailBreak", - "displayName": "JailBreak", - "type": "Bool", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AppCenterError" - ], - "extraction": null, - "common": false - }, - { - "name": "ErrorType", - "displayName": "ErrorType", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AppCenterError" - ], - "extraction": null, - "common": false - }, - { - "name": "ErrorClass", - "displayName": "ErrorClass", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AppCenterError" - ], - "extraction": null, - "common": false - }, - { - "name": "ErrorMethod", - "displayName": "ErrorMethod", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AppCenterError" - ], - "extraction": null, - "common": false - }, - { - "name": "ErrorFile", - "displayName": "ErrorFile", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AppCenterError" - ], - "extraction": null, - "common": false - }, - { - "name": "ErrorLine", - "displayName": "ErrorLine", - "type": "Int", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AppCenterError" - ], - "extraction": null, - "common": false - }, - { - "name": "ErrorReason", - "displayName": "ErrorReason", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AppCenterError" - ], - "extraction": null, - "common": false - }, - { - "name": "ExceptionType", - "displayName": "ExceptionType", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AppCenterError", - "AppExceptions", - "FunctionAppLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "Annotation", - "displayName": "Annotation", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AppCenterError" - ], - "extraction": null, - "common": false - }, - { - "name": "CreatedAt", - "displayName": "CreatedAt", - "type": "DateTime", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AppCenterError" - ], - "extraction": null, - "common": false - }, - { - "name": "SymbolicatedAt", - "displayName": "SymbolicatedAt", - "type": "DateTime", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AppCenterError" - ], - "extraction": null, - "common": false - }, - { - "name": "LastErrorAt", - "displayName": "LastErrorAt", - "type": "DateTime", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AppCenterError" - ], - "extraction": null, - "common": false - }, - { - "name": "DependencyId", - "displayName": "Id", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AppDependencies" - ], - "extraction": null, - "common": false - }, - { - "name": "Target", - "displayName": "Target", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AppDependencies" - ], - "extraction": null, - "common": false - }, - { - "name": "DependencyType", - "displayName": "DependencyType", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AppDependencies", - "IoTHubDistributedTracing" - ], - "extraction": null, - "common": false - }, - { - "name": "Data", - "displayName": "Data", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AppDependencies", - "AzureDevOpsAuditing" - ], - "extraction": null, - "common": false - }, - { - "name": "ReferencedItemId", - "displayName": "ReferencedItemId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AppDependencies", - "AppRequests", - "AppTraces" - ], - "extraction": null, - "common": false - }, - { - "name": "ReferencedType", - "displayName": "ReferencedType", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AppDependencies", - "AppRequests", - "AppTraces" - ], - "extraction": null, - "common": false - }, - { - "name": "ProblemId", - "displayName": "ProblemId", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AppExceptions" - ], - "extraction": null, - "common": false - }, - { - "name": "HandledAt", - "displayName": "HandledAt", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AppExceptions" - ], - "extraction": null, - "common": false - }, - { - "name": "Assembly", - "displayName": "Assembly", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AppExceptions" - ], - "extraction": null, - "common": false - }, - { - "name": "OuterType", - "displayName": "OuterType", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AppExceptions" - ], - "extraction": null, - "common": false - }, - { - "name": "OuterMessage", - "displayName": "OuterMessage", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AppExceptions" - ], - "extraction": null, - "common": false - }, - { - "name": "OuterAssembly", - "displayName": "OuterAssembly", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AppExceptions" - ], - "extraction": null, - "common": false - }, - { - "name": "OuterMethod", - "displayName": "OuterMethod", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AppExceptions" - ], - "extraction": null, - "common": false - }, - { - "name": "InnermostType", - "displayName": "InnermostType", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AppExceptions" - ], - "extraction": null, - "common": false - }, - { - "name": "InnermostMessage", - "displayName": "InnermostMessage", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AppExceptions" - ], - "extraction": null, - "common": false - }, - { - "name": "InnermostAssembly", - "displayName": "InnermostAssembly", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AppExceptions" - ], - "extraction": null, - "common": false - }, - { - "name": "InnermostMethod", - "displayName": "InnermostMethod", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AppExceptions" - ], - "extraction": null, - "common": false - }, - { - "name": "SeverityLevel", - "displayName": "SeverityLevel", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AppExceptions", - "AppTraces", - "Syslog" - ], - "extraction": null, - "common": false - }, - { - "name": "Details", - "displayName": "Details", - "type": "Dynamic", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AppExceptions", - "AppServiceIPSecAuditLogs", - "AzureDevOpsAuditing", - "FailedIngestion", - "HDInsightSparkStageEvents", - "KubeHealth", - "SynapseDXFailedIngestion" - ], - "extraction": null, - "common": false - }, - { - "name": "OS", - "displayName": "OS", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "IntuneDeviceComplianceOrg", - "IntuneDevices" - ], - "extraction": null, - "common": false - }, - { - "name": "BrowserVersion", - "displayName": "BrowserVersion", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "PowerBIReportUsageTenant", - "PowerBIReportUsageWorkspace" - ], - "extraction": null, - "common": false - }, - { - "name": "Role", - "displayName": "Role", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "ETWEvent", - "Event", - "HDInsightJupyterNotebookEvents", - "HDInsightSparkApplicationEvents", - "HDInsightSparkBlockManagerEvents", - "HDInsightSparkEnvironmentEvents", - "HDInsightSparkExecutorEvents", - "HDInsightSparkExtraEvents", - "HDInsightSparkJobEvents", - "HDInsightSparkSQLExecutionEvents", - "HDInsightSparkStageEvents", - "HDInsightSparkStageTaskAccumulables", - "HDInsightSparkTaskEvents", - "MicrosoftDynamicsTelemetryPerformanceLogs", - "MicrosoftDynamicsTelemetrySystemMetricsLogs", - "ServiceFabricOperationalEvent", - "ServiceFabricReliableActorEvent", - "ServiceFabricReliableServiceEvent", - "VMProcess", - "W3CIISLog" - ], - "extraction": null, - "common": false - }, - { - "name": "csUserAgent", - "displayName": "csUserAgent", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "W3CIISLog" - ], - "extraction": null, - "common": false - }, - { - "name": "ApplicationTypeVersion", - "displayName": "ApplicationTypeVersion", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "ServiceFabricOperationalEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "ExceptionMessage", - "displayName": "ExceptionMessage", - "type": "String", - "indexed": false, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "FunctionAppLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "sPort", - "displayName": "sPort", - "type": "Int", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "W3CIISLog" - ], - "extraction": null, - "common": false - }, - { - "name": "Sum", - "displayName": "Sum", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AppMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "Min", - "displayName": "Min", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AppMetrics", - "Perf" - ], - "extraction": null, - "common": false - }, - { - "name": "Max", - "displayName": "Max", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AppMetrics", - "Perf" - ], - "extraction": null, - "common": false - }, - { - "name": "PageViewId", - "displayName": "Id", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AppPageViews" - ], - "extraction": null, - "common": false - }, - { - "name": "Counter", - "displayName": "Counter", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AppPerformanceCounters" - ], - "extraction": null, - "common": false - }, - { - "name": "Instance", - "displayName": "Instance", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AppPerformanceCounters", - "AppPlatformContainerEventLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "Value", - "displayName": "Value", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AppPerformanceCounters" - ], - "extraction": null, - "common": false - }, - { - "name": "BuildLog", - "displayName": "BuildLog", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "AppPlatformBuildLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "PodName", - "displayName": "PodName", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "AppPlatformBuildLogs", - "OEPElasticsearch" - ], - "extraction": null, - "common": false - }, - { - "name": "App", - "displayName": "App", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "AppPlatformContainerEventLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "Deployment", - "displayName": "Deployment", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "AppPlatformContainerEventLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "Type", - "displayName": "Type", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "AppPlatformContainerEventLogs", - "ContainerAppSystemLogs", - "OEPElasticsearch", - "SynapseIntegrationPipelineRuns", - "SynapseIntegrationPipelineRunsEnded", - "SynapseIntegrationTriggerRuns", - "SynapseIntegrationTriggerRunsEnded", - "SynapseSqlPoolDmsWorkers" - ], - "extraction": null, - "common": false - }, - { - "name": "FirstTimestamp", - "displayName": "FirstTimestamp", - "type": "DateTime", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "AppPlatformContainerEventLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "LastTimestamp", - "displayName": "LastTimestamp", - "type": "DateTime", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "AppPlatformContainerEventLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "Count", - "displayName": "Count", - "type": "Int", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "AppPlatformContainerEventLogs", - "AzureMetrics", - "ContainerAppSystemLogs", - "KubeEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "RemoteUser", - "displayName": "RemoteUser", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "AppPlatformIngressLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "LocalTime", - "displayName": "TimeLocal", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "AppPlatformIngressLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "Request", - "displayName": "Request", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "AppPlatformIngressLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "BodyBytesSent", - "displayName": "BodyBytesSent", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "AppPlatformIngressLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "HttpReferer", - "displayName": "HttpReferer", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "AppPlatformIngressLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "HttpUserAgent", - "displayName": "HttpUserAgent", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "AppPlatformIngressLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "RequestTime", - "displayName": "RequestTime", - "type": "Double", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "AppPlatformIngressLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ProxyUpstreamName", - "displayName": "ProxyUpstreamName", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "AppPlatformIngressLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ProxyAltUpstreamName", - "displayName": "ProxyAlternativeUpstreamName", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "AppPlatformIngressLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "UpstreamAddr", - "displayName": "UpstreamAddr", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "AppPlatformIngressLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "UpstreamResponseLength", - "displayName": "UpstreamResponseLength", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "AppPlatformIngressLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "UpstreamResponseTime", - "displayName": "UpstreamResponseTime", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "AppPlatformIngressLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "UpstreamStatus", - "displayName": "UpstreamStatus", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "AppPlatformIngressLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ReqId", - "displayName": "ReqId", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "AppPlatformIngressLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ServiceName", - "displayName": "ServiceName", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "AppPlatformLogsforSpring", - "AppPlatformSystemLogs", - "DatabricksAccounts", - "DatabricksClusters", - "DatabricksDatabricksSQL", - "DatabricksDBFS", - "DatabricksDeltaPipelines", - "DatabricksFeatureStore", - "DatabricksGenie", - "DatabricksGitCredentials", - "DatabricksGlobalInitScripts", - "DatabricksIAMRole", - "DatabricksInstancePools", - "DatabricksJobs", - "DatabricksMLflowAcledArtifact", - "DatabricksMLflowExperiment", - "DatabricksModelRegistry", - "DatabricksNotebook", - "DatabricksRemoteHistoryService", - "DatabricksRepos", - "DatabricksSecrets", - "DatabricksSQL", - "DatabricksSQLPermissions", - "DatabricksSSH", - "DatabricksTables", - "DatabricksUnityCatalog", - "DatabricksWebTerminal", - "DatabricksWorkspace", - "HDInsightAmbariClusterAlerts", - "KubePodInventory", - "KubeServices", - "ServiceFabricOperationalEvent", - "ServiceFabricReliableActorEvent", - "ServiceFabricReliableServiceEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "AppName", - "displayName": "AppName", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "AppPlatformLogsforSpring", - "AVSSyslog", - "HDInsightSparkApplicationEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "InstanceName", - "displayName": "InstanceName", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "AppPlatformLogsforSpring", - "AppPlatformSystemLogs", - "HDInsightStormTopologyMetrics", - "KubePodInventory", - "Perf" - ], - "extraction": null, - "common": false - }, - { - "name": "Log", - "displayName": "Log", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "AppPlatformLogsforSpring", - "AppPlatformSystemLogs", - "ContainerAppConsoleLogs", - "ContainerAppSystemLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "AppTimestamp", - "displayName": "AppTimestamp", - "type": "DateTime", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "AppPlatformLogsforSpring" - ], - "extraction": null, - "common": false - }, - { - "name": "Logger", - "displayName": "Logger", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "AppPlatformLogsforSpring", - "AppPlatformSystemLogs", - "AppServiceAppLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "CustomLevel", - "displayName": "CustomLevel", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "AppPlatformLogsforSpring", - "AppServiceAppLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "Thread", - "displayName": "Thread", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "AppPlatformLogsforSpring", - "AppPlatformSystemLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "StackTrace", - "displayName": "StackTrace", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "AppPlatformLogsforSpring", - "AppServiceAppLogs", - "AppServicePlatformLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "Mdc", - "displayName": "MDC", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "AppPlatformLogsforSpring" - ], - "extraction": null, - "common": false - }, - { - "name": "ExceptionClass", - "displayName": "ExceptionClass", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "AppPlatformLogsforSpring", - "AppServiceAppLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "Stack", - "displayName": "Stack", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "AppPlatformSystemLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "LogType", - "displayName": "LogType", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "AppPlatformSystemLogs", - "HDInsightHadoopAndYarnLogs", - "HDInsightHBaseLogs", - "HDInsightHiveAndLLAPLogs", - "HDInsightKafkaLogs", - "HDInsightOozieLogs", - "HDInsightRangerAuditLogs", - "HDInsightSecurityLogs", - "HDInsightSparkLogs", - "HDInsightStormLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "OperationLinks", - "displayName": "OperationLinks", - "type": "Dynamic", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AppRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "ScanStatus", - "displayName": "ScanStatus", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AppServiceAntivirusScanAuditLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "TotalFilesScanned", - "displayName": "TotalFilesScanned", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AppServiceAntivirusScanAuditLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "NumberOfInfectedFiles", - "displayName": "NumberOfInfectedFiles", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AppServiceAntivirusScanAuditLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ListOfInfectedFiles", - "displayName": "ListOfInfectedFiles", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AppServiceAntivirusScanAuditLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "WebSiteInstanceId", - "displayName": "WebSiteInstanceId", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AppServiceAppLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ContainerId", - "displayName": "ContainerId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AppServiceAppLogs", - "AppServiceConsoleLogs", - "AppServicePlatformLogs", - "ContainerAppConsoleLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "UserAddress", - "displayName": "UserAddress", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AppServiceAuditLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "Process", - "displayName": "Process", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AppServiceFileAuditLogs", - "VMBoundPort", - "VMConnection", - "VMProcess" - ], - "extraction": null, - "common": false - }, - { - "name": "CsMethod", - "displayName": "CsMethod", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AppServiceHTTPLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "CsUriStem", - "displayName": "CsUriStem", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AppServiceHTTPLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "SPort", - "displayName": "SPort", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AppServiceHTTPLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "CIp", - "displayName": "CIp", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AppServiceHTTPLogs", - "AppServiceIPSecAuditLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "CsHost", - "displayName": "CsHost", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AppServiceHTTPLogs", - "AppServiceIPSecAuditLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ScStatus", - "displayName": "ScStatus", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AppServiceHTTPLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ScSubStatus", - "displayName": "ScSubStatus", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AppServiceHTTPLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ScWin32Status", - "displayName": "ScWin32Status", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AppServiceHTTPLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ScBytes", - "displayName": "ScBytes", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AppServiceHTTPLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "CsBytes", - "displayName": "CsBytes", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AppServiceHTTPLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "TimeTaken", - "displayName": "TimeTaken", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AppServiceHTTPLogs", - "W3CIISLog" - ], - "extraction": null, - "common": false - }, - { - "name": "Result", - "displayName": "Result", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AppServiceHTTPLogs", - "AppServiceIPSecAuditLogs", - "AuditLogs", - "CDBControlPlaneRequests", - "HDInsightRangerAuditLogs", - "IntuneDeviceComplianceOrg", - "IntuneDevices", - "IntuneOperationalLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "Cookie", - "displayName": "Cookie", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AppServiceHTTPLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "CsUriQuery", - "displayName": "CsUriQuery", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AppServiceHTTPLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "CsUsername", - "displayName": "CsUsername", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AppServiceHTTPLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "Referer", - "displayName": "Referer", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AppServiceHTTPLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ComputerName", - "displayName": "ComputerName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AppServiceHTTPLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ServiceEndpoint", - "displayName": "ServiceEndpoint", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AppServiceIPSecAuditLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "XForwardedFor", - "displayName": "XForwardedFor", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AppServiceIPSecAuditLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "XForwardedHost", - "displayName": "XForwardedHost", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AppServiceIPSecAuditLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "XAzureFDID", - "displayName": "XAzureFDID", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AppServiceIPSecAuditLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "XFDHealthProbe", - "displayName": "XFDHealthProbe", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AppServiceIPSecAuditLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "DeploymentId", - "displayName": "DeploymentId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AppServicePlatformLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ActivityId", - "displayName": "ActivityId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AppServicePlatformLogs", - "AzureDevOpsAuditing", - "CDBCassandraRequests", - "CDBControlPlaneRequests", - "CDBDataPlaneRequests", - "CDBGremlinRequests", - "CDBMongoRequests", - "CDBQueryRuntimeStatistics", - "FunctionAppLogs", - "MicrosoftDynamicsTelemetryPerformanceLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "Exception", - "displayName": "Exception", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AppServicePlatformLogs", - "CassandraLogs", - "ServiceFabricReliableActorEvent", - "ServiceFabricReliableServiceEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "EventCount", - "displayName": "EventCount", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "HDInsightRangerAuditLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "EventProduct", - "displayName": "EventProduct", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "CassandraLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "SrcIpAddr", - "displayName": "SrcIpAddr", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "NetworkAccessTraffic" - ], - "extraction": null, - "common": false - }, - { - "name": "SrcPortNumber", - "displayName": "SrcPortNumber", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "NetworkAccessTraffic" - ], - "extraction": null, - "common": false - }, - { - "name": "DstIpAddr", - "displayName": "DstIpAddr", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "NetworkAccessTraffic" - ], - "extraction": null, - "common": false - }, - { - "name": "NetworkProtocol", - "displayName": "NetworkProtocol", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "NetworkAccessTraffic" - ], - "extraction": null, - "common": false - }, - { - "name": "UrlCategory", - "displayName": "UrlCategory", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "NetworkAccessTraffic" - ], - "extraction": null, - "common": false - }, - { - "name": "SrcHostname", - "displayName": "SrcHostname", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "NetworkAccessTraffic" - ], - "extraction": null, - "common": false - }, - { - "name": "SrcDvcId", - "displayName": "SrcDvcId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "NetworkAccessTraffic" - ], - "extraction": null, - "common": false - }, - { - "name": "SrcUserId", - "displayName": "SrcUserId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "NetworkAccessTraffic" - ], - "extraction": null, - "common": false - }, - { - "name": "SrcUsername", - "displayName": "SrcUsername", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "NetworkAccessTraffic" - ], - "extraction": null, - "common": false - }, - { - "name": "DstPortNumber", - "displayName": "DstPortNumber", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "NetworkAccessTraffic" - ], - "extraction": null, - "common": false - }, - { - "name": "DstDomainType", - "displayName": "DstDomainType", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "NetworkAccessTraffic" - ], - "extraction": null, - "common": false - }, - { - "name": "DstFQDN", - "displayName": "DstFQDN", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "NetworkAccessTraffic" - ], - "extraction": null, - "common": false - }, - { - "name": "DvcAction", - "displayName": "DvcAction", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "NetworkAccessTraffic" - ], - "extraction": null, - "common": false - }, - { - "name": "ATCResourceId", - "displayName": "ATCResourceId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ATCExpressRouteCircuitIpfix" - ], - "extraction": null, - "common": false - }, - { - "name": "ATCRegion", - "displayName": "ATCRegion", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ATCExpressRouteCircuitIpfix" - ], - "extraction": null, - "common": false - }, - { - "name": "FlowRecordTime", - "displayName": "FlowRecordTime", - "type": "DateTime", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ATCExpressRouteCircuitIpfix" - ], - "extraction": null, - "common": false - }, - { - "name": "ExRCircuitId", - "displayName": "ExRCircuitId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ATCExpressRouteCircuitIpfix" - ], - "extraction": null, - "common": false - }, - { - "name": "ExRCircuitServiceKey", - "displayName": "ExRCircuitServiceKey", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ATCExpressRouteCircuitIpfix" - ], - "extraction": null, - "common": false - }, - { - "name": "ExRCircuitDirectPortId", - "displayName": "ExRCircuitDirectPortId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ATCExpressRouteCircuitIpfix" - ], - "extraction": null, - "common": false - }, - { - "name": "SourceIp", - "displayName": "SourceIp", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ATCExpressRouteCircuitIpfix", - "AZFWApplicationRule", - "AZFWApplicationRuleAggregation", - "AZFWDnsQuery", - "AZFWIdpsSignature", - "AZFWNatRule", - "AZFWNatRuleAggregation", - "AZFWNetworkRule", - "AZFWNetworkRuleAggregation", - "AZFWThreatIntel", - "VMConnection" - ], - "extraction": null, - "common": false - }, - { - "name": "DestinationIp", - "displayName": "DestinationIp", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ATCExpressRouteCircuitIpfix", - "AZFWIdpsSignature", - "AZFWNatRule", - "AZFWNetworkRule", - "AZFWNetworkRuleAggregation", - "AZFWThreatIntel", - "VMConnection" - ], - "extraction": null, - "common": false - }, - { - "name": "SourcePort", - "displayName": "SourcePort", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ATCExpressRouteCircuitIpfix", - "AZFWApplicationRule", - "AZFWDnsQuery", - "AZFWIdpsSignature", - "AZFWNatRule", - "AZFWNetworkRule", - "AZFWThreatIntel", - "NSPAccessLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "DestinationPort", - "displayName": "DestinationPort", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ATCExpressRouteCircuitIpfix", - "AZFWApplicationRule", - "AZFWApplicationRuleAggregation", - "AZFWIdpsSignature", - "AZFWNatRule", - "AZFWNetworkRule", - "AZFWNetworkRuleAggregation", - "AZFWThreatIntel", - "NSPAccessLogs", - "NWConnectionMonitorDestinationListenerResult", - "NWConnectionMonitorDNSResult", - "NWConnectionMonitorPathResult", - "NWConnectionMonitorTestResult", - "VMConnection" - ], - "extraction": null, - "common": false - }, - { - "name": "NumberOfBytes", - "displayName": "NumberOfBytes", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ATCExpressRouteCircuitIpfix" - ], - "extraction": null, - "common": false - }, - { - "name": "NumberOfPackets", - "displayName": "NumberOfPackets", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ATCExpressRouteCircuitIpfix" - ], - "extraction": null, - "common": false - }, - { - "name": "Flowsequence", - "displayName": "Flowsequence", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ATCExpressRouteCircuitIpfix" - ], - "extraction": null, - "common": false - }, - { - "name": "IpClassOfService", - "displayName": "IpClassOfService", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ATCExpressRouteCircuitIpfix" - ], - "extraction": null, - "common": false - }, - { - "name": "IpProtocolIdentifier", - "displayName": "IpProtocolIdentifier", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ATCExpressRouteCircuitIpfix" - ], - "extraction": null, - "common": false - }, - { - "name": "IcmpType", - "displayName": "IcmpType", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ATCExpressRouteCircuitIpfix" - ], - "extraction": null, - "common": false - }, - { - "name": "SrcMask", - "displayName": "SrcMask", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ATCExpressRouteCircuitIpfix" - ], - "extraction": null, - "common": false - }, - { - "name": "DstMask", - "displayName": "DstMask", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ATCExpressRouteCircuitIpfix" - ], - "extraction": null, - "common": false - }, - { - "name": "SrcAsn", - "displayName": "SrcAsn", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ATCExpressRouteCircuitIpfix" - ], - "extraction": null, - "common": false - }, - { - "name": "DstAsn", - "displayName": "DstAsn", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ATCExpressRouteCircuitIpfix" - ], - "extraction": null, - "common": false - }, - { - "name": "NextHop", - "displayName": "NextHop", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ATCExpressRouteCircuitIpfix" - ], - "extraction": null, - "common": false - }, - { - "name": "TcpFlag", - "displayName": "TcpFlag", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ATCExpressRouteCircuitIpfix" - ], - "extraction": null, - "common": false - }, - { - "name": "MinTtl", - "displayName": "MinTtl", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ATCExpressRouteCircuitIpfix" - ], - "extraction": null, - "common": false - }, - { - "name": "MaxTtl", - "displayName": "MaxTtl", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ATCExpressRouteCircuitIpfix" - ], - "extraction": null, - "common": false - }, - { - "name": "SrcSubnet", - "displayName": "SrcSubnet", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ATCExpressRouteCircuitIpfix" - ], - "extraction": null, - "common": false - }, - { - "name": "DstSubnet", - "displayName": "DstSubnet", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ATCExpressRouteCircuitIpfix" - ], - "extraction": null, - "common": false - }, - { - "name": "IpVerCode", - "displayName": "IpVerCode", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ATCExpressRouteCircuitIpfix" - ], - "extraction": null, - "common": false - }, - { - "name": "BgpNextHop", - "displayName": "BgpNextHop", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ATCExpressRouteCircuitIpfix" - ], - "extraction": null, - "common": false - }, - { - "name": "PeeringType", - "displayName": "PeeringType", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ATCExpressRouteCircuitIpfix" - ], - "extraction": null, - "common": false - }, - { - "name": "Dot1qVlanId", - "displayName": "Dot1qVlanId", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ATCExpressRouteCircuitIpfix" - ], - "extraction": null, - "common": false - }, - { - "name": "Dot1qCustomerVlanId", - "displayName": "Dot1qCustomerVlanId", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ATCExpressRouteCircuitIpfix" - ], - "extraction": null, - "common": false - }, - { - "name": "Resource", - "displayName": "Resource", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AuditLogs", - "AzureActivity", - "AzureDiagnostics", - "AzureMetrics", - "BlockchainApplicationLog", - "Heartbeat", - "SigninLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ResourceProvider", - "displayName": "ResourceProvider", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "AuditLogs", - "AzureActivity", - "AzureDiagnostics", - "AzureMetrics", - "BlockchainApplicationLog", - "Heartbeat", - "SigninLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "AdditionalDetails", - "displayName": "AdditionalDetails", - "type": "Dynamic", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AuditLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "LoggedByService", - "displayName": "LoggedByService", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AuditLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ResultReason", - "displayName": "ResultReason", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AuditLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "TargetResources", - "displayName": "TargetResources", - "type": "Dynamic", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AuditLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ActivityDisplayName", - "displayName": "ActivityDisplayName", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AuditLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "AADOperationType", - "displayName": "AADOperationType", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AuditLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "Origin", - "displayName": "Origin", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AUIEventsAudit", - "AUIEventsOperational", - "CIEventsAudit", - "CIEventsOperational", - "InsightsMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "OperationStatus", - "displayName": "OperationStatus", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AUIEventsAudit", - "AUIEventsOperational", - "CIEventsAudit", - "CIEventsOperational", - "Operation" - ], - "extraction": null, - "common": false - }, - { - "name": "CallerObjectId", - "displayName": "CallerObjectId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AUIEventsAudit", - "AUIEventsOperational", - "CIEventsAudit", - "CIEventsOperational" - ], - "extraction": null, - "common": false - }, - { - "name": "RequiredRoles", - "displayName": "RequiredRoles", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AUIEventsAudit", - "AUIEventsOperational", - "CIEventsAudit", - "CIEventsOperational" - ], - "extraction": null, - "common": false - }, - { - "name": "Claims", - "displayName": "Claims", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AUIEventsAudit", - "AUIEventsOperational", - "AzureActivity", - "AzureActivityV2", - "CIEventsAudit", - "CIEventsOperational", - "VIAudit" - ], - "extraction": null, - "common": false - }, - { - "name": "Audience", - "displayName": "Audience", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AUIEventsAudit", - "AUIEventsOperational", - "CIEventsAudit", - "CIEventsOperational" - ], - "extraction": null, - "common": false - }, - { - "name": "WorkflowJobId", - "displayName": "WorkflowJobId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AUIEventsOperational", - "CIEventsOperational" - ], - "extraction": null, - "common": false - }, - { - "name": "OperationType", - "displayName": "OperationType", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AUIEventsOperational", - "CDBControlPlaneRequests", - "CIEventsOperational", - "PFTitleAuditLogs", - "ResourceManagementPublicAccessLogs", - "SynapseSqlPoolRequestSteps" - ], - "extraction": null, - "common": false - }, - { - "name": "TasksCount", - "displayName": "TasksCount", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AUIEventsOperational", - "CIEventsOperational" - ], - "extraction": null, - "common": false - }, - { - "name": "SubmittedBy", - "displayName": "SubmittedBy", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AUIEventsOperational", - "CIEventsOperational" - ], - "extraction": null, - "common": false - }, - { - "name": "WorkflowType", - "displayName": "WorkflowType", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AUIEventsOperational", - "CIEventsOperational" - ], - "extraction": null, - "common": false - }, - { - "name": "WorkflowSubmissionKind", - "displayName": "WorkflowSubmissionKind", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AUIEventsOperational", - "CIEventsOperational" - ], - "extraction": null, - "common": false - }, - { - "name": "WorkflowStatus", - "displayName": "WorkflowStatus", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AUIEventsOperational", - "CIEventsOperational" - ], - "extraction": null, - "common": false - }, - { - "name": "SubmittedTime", - "displayName": "SubmittedTime", - "type": "DateTime", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AUIEventsOperational", - "CIEventsOperational" - ], - "extraction": null, - "common": false - }, - { - "name": "FriendlyName", - "displayName": "FriendlyName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AUIEventsOperational", - "CIEventsOperational" - ], - "extraction": null, - "common": false - }, - { - "name": "AdditionalInformation", - "displayName": "AdditionalInformation", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AUIEventsOperational", - "AzureMetrics", - "CIEventsOperational", - "SQLSecurityAuditEvents", - "VMConnection", - "W3CIISLog" - ], - "extraction": null, - "common": false - }, - { - "name": "SubscriptionId", - "displayName": "SubscriptionId", - "type": "Guid", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AzureActivity", - "AzureDiagnostics", - "AzureMetrics", - "BlockchainApplicationLog", - "CoreAzureBackup", - "Heartbeat" - ], - "extraction": null, - "common": false - }, - { - "name": "RunbookName_s", - "displayName": "RunbookName_s", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "JobId_g", - "displayName": "JobId_g", - "type": "Guid", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "Caller_s", - "displayName": "Caller_s", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "StreamType_s", - "displayName": "StreamType_s", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "RemoteIPCountry", - "displayName": "RemoteIPCountry", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AzureMetrics", - "Heartbeat", - "W3CIISLog" - ], - "extraction": null, - "common": false - }, - { - "name": "RemoteIPLatitude", - "displayName": "RemoteIPLatitude", - "type": "Float", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AzureMetrics", - "Heartbeat", - "W3CIISLog" - ], - "extraction": null, - "common": false - }, - { - "name": "RemoteIPLongitude", - "displayName": "RemoteIPLongitude", - "type": "Float", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AzureMetrics", - "Heartbeat", - "W3CIISLog" - ], - "extraction": null, - "common": false - }, - { - "name": "MaliciousIP", - "displayName": "MaliciousIP", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AzureMetrics", - "W3CIISLog" - ], - "extraction": null, - "common": false - }, - { - "name": "IndicatorThreatType", - "displayName": "IndicatorThreatType", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "AzureMetrics", - "VMConnection", - "W3CIISLog" - ], - "extraction": null, - "common": false - }, - { - "name": "TLPLevel", - "displayName": "TLPLevel", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "AzureMetrics", - "VMConnection", - "W3CIISLog" - ], - "extraction": null, - "common": false - }, - { - "name": "Confidence", - "displayName": "Confidence", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "AzureMetrics", - "VMConnection", - "W3CIISLog" - ], - "extraction": null, - "common": false - }, - { - "name": "FirstReportedDateTime", - "displayName": "FirstReportedDateTime", - "type": "String", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AzureMetrics", - "VMConnection", - "W3CIISLog" - ], - "extraction": null, - "common": false - }, - { - "name": "LastReportedDateTime", - "displayName": "LastReportedDateTime", - "type": "String", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AzureMetrics", - "VMConnection", - "W3CIISLog" - ], - "extraction": null, - "common": false - }, - { - "name": "IsActive", - "displayName": "IsActive", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "AzureMetrics", - "VMConnection", - "W3CIISLog" - ], - "extraction": null, - "common": false - }, - { - "name": "ReportReferenceLink", - "displayName": "ReportReferenceLink", - "type": "String", - "indexed": true, - "stored": true, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureMetrics", - "VMConnection", - "W3CIISLog" - ], - "extraction": null, - "common": false - }, - { - "name": "AvailabilitySet", - "displayName": "AvailabilitySet", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "AutoscaleEvaluationsLog" - ], - "extraction": null, - "common": false - }, - { - "name": "CloudServiceName", - "displayName": "CloudServiceName", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "AutoscaleEvaluationsLog" - ], - "extraction": null, - "common": false - }, - { - "name": "CoolDown", - "displayName": "CoolDown", - "type": "Int", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AutoscaleEvaluationsLog" - ], - "extraction": null, - "common": false - }, - { - "name": "CurrentInstanceCount", - "displayName": "CurrentInstanceCount", - "type": "Int", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AutoscaleEvaluationsLog", - "AutoscaleScaleActionsLog" - ], - "extraction": null, - "common": false - }, - { - "name": "MetricData", - "displayName": "MetricData", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AutoscaleEvaluationsLog" - ], - "extraction": null, - "common": false - }, - { - "name": "DefaultInstanceCount", - "displayName": "DefaultInstanceCount", - "type": "Int", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AutoscaleEvaluationsLog" - ], - "extraction": null, - "common": false - }, - { - "name": "DeploymentSlot", - "displayName": "DeploymentSlot", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "AutoscaleEvaluationsLog" - ], - "extraction": null, - "common": false - }, - { - "name": "MetricEndTime", - "displayName": "MetricEndTime", - "type": "DateTime", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AutoscaleEvaluationsLog" - ], - "extraction": null, - "common": false - }, - { - "name": "EstimateScaleResult", - "displayName": "EstimateScaleResult", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AutoscaleEvaluationsLog" - ], - "extraction": null, - "common": false - }, - { - "name": "EvaluationResult", - "displayName": "EvaluationResult", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AutoscaleEvaluationsLog" - ], - "extraction": null, - "common": false - }, - { - "name": "EvaluationTime", - "displayName": "EvaluationTime", - "type": "DateTime", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AutoscaleEvaluationsLog" - ], - "extraction": null, - "common": false - }, - { - "name": "LastScaleActionOperationId", - "displayName": "LastScaleActionOperationId", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AutoscaleEvaluationsLog" - ], - "extraction": null, - "common": false - }, - { - "name": "LastScaleActionOperationStatus", - "displayName": "LastScaleActionOperationStatus", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AutoscaleEvaluationsLog" - ], - "extraction": null, - "common": false - }, - { - "name": "LastScaleActionTime", - "displayName": "LastScaleActionTime", - "type": "DateTime", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AutoscaleEvaluationsLog" - ], - "extraction": null, - "common": false - }, - { - "name": "MaximumInstanceCount", - "displayName": "MaximumInstanceCount", - "type": "Int", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AutoscaleEvaluationsLog" - ], - "extraction": null, - "common": false - }, - { - "name": "AutoscaleMetricName", - "displayName": "AutoscaleMetricName", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AutoscaleEvaluationsLog" - ], - "extraction": null, - "common": false - }, - { - "name": "MetricNamespace", - "displayName": "MetricNamespace", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AutoscaleEvaluationsLog", - "HDInsightHadoopAndYarnMetrics", - "HDInsightHBaseMetrics", - "HDInsightHiveAndLLAPMetrics", - "HDInsightKafkaMetrics", - "HDInsightStormMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "MinimumInstanceCount", - "displayName": "MinimumInstanceCount", - "type": "Int", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AutoscaleEvaluationsLog" - ], - "extraction": null, - "common": false - }, - { - "name": "NewInstanceCount", - "displayName": "NewInstanceCount", - "type": "Int", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AutoscaleEvaluationsLog", - "AutoscaleScaleActionsLog" - ], - "extraction": null, - "common": false - }, - { - "name": "ObservedValue", - "displayName": "ObservedValue", - "type": "Double", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AutoscaleEvaluationsLog" - ], - "extraction": null, - "common": false - }, - { - "name": "Profile", - "displayName": "Profile", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "AutoscaleEvaluationsLog", - "NSPAccessLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ProfileEvaluationTime", - "displayName": "ProfileEvaluationTime", - "type": "DateTime", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AutoscaleEvaluationsLog" - ], - "extraction": null, - "common": false - }, - { - "name": "ProfileSelected", - "displayName": "ProfileSelected", - "type": "Bool", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "AutoscaleEvaluationsLog" - ], - "extraction": null, - "common": false - }, - { - "name": "Projection", - "displayName": "Projection", - "type": "Double", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AutoscaleEvaluationsLog" - ], - "extraction": null, - "common": false - }, - { - "name": "InstanceUpdateReason", - "displayName": "InstanceUpdateReason", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AutoscaleEvaluationsLog" - ], - "extraction": null, - "common": false - }, - { - "name": "CloudServiceRole", - "displayName": "CloudServiceRole", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "AutoscaleEvaluationsLog" - ], - "extraction": null, - "common": false - }, - { - "name": "SelectedAutoscaleProfile", - "displayName": "SelectedAutoscaleProfile", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "AutoscaleEvaluationsLog" - ], - "extraction": null, - "common": false - }, - { - "name": "ServerFarm", - "displayName": "ServerFarm", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "AutoscaleEvaluationsLog" - ], - "extraction": null, - "common": false - }, - { - "name": "ShouldUpdateInstance", - "displayName": "ShouldUpdateInstance", - "type": "Bool", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "AutoscaleEvaluationsLog" - ], - "extraction": null, - "common": false - }, - { - "name": "SkipCurrentAutoscaleEvaluation", - "displayName": "SkipCurrentAutoscaleEvaluation", - "type": "Bool", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "AutoscaleEvaluationsLog" - ], - "extraction": null, - "common": false - }, - { - "name": "SkipRuleEvaluationForCooldown", - "displayName": "SkipRuleEvaluationForCooldown", - "type": "Bool", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "AutoscaleEvaluationsLog" - ], - "extraction": null, - "common": false - }, - { - "name": "MetricStartTime", - "displayName": "MetricStartTime", - "type": "DateTime", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AutoscaleEvaluationsLog" - ], - "extraction": null, - "common": false - }, - { - "name": "Threshold", - "displayName": "Threshold", - "type": "Double", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AutoscaleEvaluationsLog" - ], - "extraction": null, - "common": false - }, - { - "name": "TimeAggregationType", - "displayName": "TimeAggregationType", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AutoscaleEvaluationsLog" - ], - "extraction": null, - "common": false - }, - { - "name": "MetricTimeGrain", - "displayName": "MetricTimeGrain", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AutoscaleEvaluationsLog" - ], - "extraction": null, - "common": false - }, - { - "name": "TimeGrainStatistic", - "displayName": "TimeGrainStatistic", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AutoscaleEvaluationsLog" - ], - "extraction": null, - "common": false - }, - { - "name": "TimeWindow", - "displayName": "TimeWindow", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AutoscaleEvaluationsLog" - ], - "extraction": null, - "common": false - }, - { - "name": "Webspace", - "displayName": "Webspace", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "AutoscaleEvaluationsLog" - ], - "extraction": null, - "common": false - }, - { - "name": "CreatedAsyncScaleActionJob", - "displayName": "CreatedAsyncScaleActionJob", - "type": "Bool", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AutoscaleScaleActionsLog" - ], - "extraction": null, - "common": false - }, - { - "name": "CreatedAsyncScaleActionJobId", - "displayName": "CreatedAsyncScaleActionJobId", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AutoscaleScaleActionsLog" - ], - "extraction": null, - "common": false - }, - { - "name": "ScaleActionMessage", - "displayName": "ScaleActionMessage", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AutoscaleScaleActionsLog" - ], - "extraction": null, - "common": false - }, - { - "name": "ScaleActionOperationId", - "displayName": "ScaleActionOperationId", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AutoscaleScaleActionsLog" - ], - "extraction": null, - "common": false - }, - { - "name": "ScaleActionOperationStatus", - "displayName": "ScaleActionOperationStatus", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "AutoscaleScaleActionsLog" - ], - "extraction": null, - "common": false - }, - { - "name": "ScaleDirection", - "displayName": "ScaleDirection", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "AutoscaleScaleActionsLog" - ], - "extraction": null, - "common": false - }, - { - "name": "LogCreationTime", - "displayName": "LogCreationTime", - "type": "DateTime", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AVSSyslog" - ], - "extraction": null, - "common": false - }, - { - "name": "Facility", - "displayName": "Facility", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AVSSyslog", - "Syslog" - ], - "extraction": null, - "common": false - }, - { - "name": "ProcId", - "displayName": "ProcId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AVSSyslog" - ], - "extraction": null, - "common": false - }, - { - "name": "MsgId", - "displayName": "MsgId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AVSSyslog" - ], - "extraction": null, - "common": false - }, - { - "name": "EventSource", - "displayName": "EventSource", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ContainerAppSystemLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "RequestParameters", - "displayName": "RequestParameters", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "PowerBIDatasetsTenantPreview", - "PowerBIDatasetsWorkspacePreview" - ], - "extraction": null, - "common": false - }, - { - "name": "AccountId", - "displayName": "AccountId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "VIAudit", - "VIIndexing" - ], - "extraction": null, - "common": false - }, - { - "name": "ResourceDetails", - "displayName": "ResourceDetails", - "type": "Dynamic", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CDBControlPlaneRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "TrafficType", - "displayName": "TrafficType", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "NSPAccessLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "Fqdn", - "displayName": "Fqdn", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AZFWApplicationRule", - "AZFWApplicationRuleAggregation", - "AZFWInternalFqdnResolutionFailure", - "AZFWThreatIntel" - ], - "extraction": null, - "common": false - }, - { - "name": "TargetUrl", - "displayName": "TargetUrl", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AZFWApplicationRule", - "AZFWApplicationRuleAggregation", - "AZFWThreatIntel" - ], - "extraction": null, - "common": false - }, - { - "name": "Policy", - "displayName": "Policy", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AZFWApplicationRule", - "AZFWApplicationRuleAggregation", - "AZFWInternalFqdnResolutionFailure", - "AZFWNatRule", - "AZFWNatRuleAggregation", - "AZFWNetworkRule", - "AZFWNetworkRuleAggregation", - "HDInsightRangerAuditLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "RuleCollectionGroup", - "displayName": "RuleCollectionGroup", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AZFWApplicationRule", - "AZFWApplicationRuleAggregation", - "AZFWInternalFqdnResolutionFailure", - "AZFWNatRule", - "AZFWNatRuleAggregation", - "AZFWNetworkRule", - "AZFWNetworkRuleAggregation" - ], - "extraction": null, - "common": false - }, - { - "name": "RuleCollection", - "displayName": "RuleCollection", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AZFWApplicationRule", - "AZFWApplicationRuleAggregation", - "AZFWInternalFqdnResolutionFailure", - "AZFWNatRule", - "AZFWNatRuleAggregation", - "AZFWNetworkRule", - "AZFWNetworkRuleAggregation" - ], - "extraction": null, - "common": false - }, - { - "name": "Rule", - "displayName": "Rule", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AZFWApplicationRule", - "AZFWApplicationRuleAggregation", - "AZFWInternalFqdnResolutionFailure", - "AZFWNatRule", - "AZFWNatRuleAggregation", - "AZFWNetworkRule", - "AZFWNetworkRuleAggregation" - ], - "extraction": null, - "common": false - }, - { - "name": "ActionReason", - "displayName": "ActionReason", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AZFWApplicationRule", - "AZFWApplicationRuleAggregation", - "AZFWNetworkRule", - "AZFWNetworkRuleAggregation" - ], - "extraction": null, - "common": false - }, - { - "name": "IsTlsInspected", - "displayName": "IsTlsInspected", - "type": "Bool", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AZFWApplicationRule", - "AZFWThreatIntel" - ], - "extraction": null, - "common": false - }, - { - "name": "WebCategory", - "displayName": "WebCategory", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AZFWApplicationRule" - ], - "extraction": null, - "common": false - }, - { - "name": "ApplicationRuleCount", - "displayName": "ApplicationRuleCount", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AZFWApplicationRuleAggregation" - ], - "extraction": null, - "common": false - }, - { - "name": "QueryId", - "displayName": "QueryId", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AZFWDnsQuery" - ], - "extraction": null, - "common": false - }, - { - "name": "QueryType", - "displayName": "QueryType", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AZFWDnsQuery", - "MicrosoftDynamicsTelemetryPerformanceLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "QueryClass", - "displayName": "QueryClass", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AZFWDnsQuery" - ], - "extraction": null, - "common": false - }, - { - "name": "QueryName", - "displayName": "QueryName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AZFWDnsQuery" - ], - "extraction": null, - "common": false - }, - { - "name": "DnssecOkBit", - "displayName": "DnssecOkBit", - "type": "Bool", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AZFWDnsQuery" - ], - "extraction": null, - "common": false - }, - { - "name": "EDNS0BufferSize", - "displayName": "EDNS0BufferSize", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AZFWDnsQuery" - ], - "extraction": null, - "common": false - }, - { - "name": "ResponseFlags", - "displayName": "ResponseFlags", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AZFWDnsQuery" - ], - "extraction": null, - "common": false - }, - { - "name": "RequestDurationSecs", - "displayName": "RequestDurationSecs", - "type": "Float", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AZFWDnsQuery" - ], - "extraction": null, - "common": false - }, - { - "name": "ErrorNumber", - "displayName": "ErrorNumber", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AZFWDnsQuery" - ], - "extraction": null, - "common": false - }, - { - "name": "SignatureId", - "displayName": "SignatureId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AZFWIdpsSignature" - ], - "extraction": null, - "common": false - }, - { - "name": "ServerIp", - "displayName": "ServerIp", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AZFWInternalFqdnResolutionFailure" - ], - "extraction": null, - "common": false - }, - { - "name": "ServerPort", - "displayName": "ServerPort", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AZFWInternalFqdnResolutionFailure" - ], - "extraction": null, - "common": false - }, - { - "name": "TranslatedIp", - "displayName": "TranslatedIp", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AZFWNatRule", - "AZFWNatRuleAggregation" - ], - "extraction": null, - "common": false - }, - { - "name": "TranslatedPort", - "displayName": "TranslatedPort", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AZFWNatRule", - "AZFWNatRuleAggregation" - ], - "extraction": null, - "common": false - }, - { - "name": "NatRuleCount", - "displayName": "NatRuleCount", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AZFWNatRuleAggregation" - ], - "extraction": null, - "common": false - }, - { - "name": "IsDefaultRule", - "displayName": "IsDefaultRule", - "type": "Bool", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AZFWNetworkRuleAggregation" - ], - "extraction": null, - "common": false - }, - { - "name": "NetworkRuleCount", - "displayName": "NetworkRuleCount", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AZFWNetworkRuleAggregation" - ], - "extraction": null, - "common": false - }, - { - "name": "ThreatDescription", - "displayName": "ThreatDescription", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AZFWThreatIntel" - ], - "extraction": null, - "common": false - }, - { - "name": "CategoryValue", - "displayName": "CategoryValue", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AzureActivity", - "AzureActivityV2" - ], - "extraction": null, - "common": false - }, - { - "name": "Authorization", - "displayName": "Authorization", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AzureActivity", - "AzureActivityV2" - ], - "extraction": null, - "common": false - }, - { - "name": "Authorization_d", - "displayName": "Authorization_d", - "type": "Dynamic", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AzureActivity" - ], - "extraction": null, - "common": false - }, - { - "name": "Claims_d", - "displayName": "Claims_d", - "type": "Dynamic", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AzureActivity" - ], - "extraction": null, - "common": false - }, - { - "name": "OperationNameValue", - "displayName": "OperationNameValue", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AzureActivity", - "AzureActivityV2" - ], - "extraction": null, - "common": false - }, - { - "name": "Properties_d", - "displayName": "Properties_d", - "type": "Dynamic", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AzureActivity" - ], - "extraction": null, - "common": false - }, - { - "name": "Caller", - "displayName": "Caller", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AzureActivity", - "AzureActivityV2" - ], - "extraction": null, - "common": false - }, - { - "name": "EventDataId", - "displayName": "EventDataId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AzureActivity", - "AzureActivityV2" - ], - "extraction": null, - "common": false - }, - { - "name": "EventSubmissionTimestamp", - "displayName": "EventSubmissionTimestamp", - "type": "DateTime", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AzureActivity", - "AzureActivityV2" - ], - "extraction": null, - "common": false - }, - { - "name": "HTTPRequest", - "displayName": "HTTPRequest", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AzureActivity", - "AzureActivityV2" - ], - "extraction": null, - "common": false - }, - { - "name": "ResourceProviderValue", - "displayName": "ResourceProviderValue", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "AzureActivity", - "AzureActivityV2" - ], - "extraction": null, - "common": false - }, - { - "name": "ActivityStatusValue", - "displayName": "ActivityStatusValue", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AzureActivity", - "AzureActivityV2" - ], - "extraction": null, - "common": false - }, - { - "name": "ActivitySubstatusValue", - "displayName": "ActivitySubstatusValue", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AzureActivity", - "AzureActivityV2" - ], - "extraction": null, - "common": false - }, - { - "name": "Hierarchy", - "displayName": "Hierarchy", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AzureActivity", - "AzureActivityV2" - ], - "extraction": null, - "common": false - }, - { - "name": "ActivityStatus", - "displayName": "ActivityStatus", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AzureActivity" - ], - "extraction": null, - "common": false - }, - { - "name": "ActivitySubstatus", - "displayName": "ActivitySubstatus", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "AzureActivity" - ], - "extraction": null, - "common": false - }, - { - "name": "MoboTenantId", - "displayName": "MoboTenantId", - "type": "Guid", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AzureActivityV2" - ], - "extraction": null, - "common": false - }, - { - "name": "PropertiesBackCompat", - "displayName": "PropertiesBackCompat", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AzureActivityV2" - ], - "extraction": null, - "common": false - }, - { - "name": "AzureResourceGroup", - "displayName": "AzureResourceGroup", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AzureActivityV2", - "VMComputer" - ], - "extraction": null, - "common": false - }, - { - "name": "ResourceTypeValue", - "displayName": "ResourceTypeValue", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AzureActivityV2" - ], - "extraction": null, - "common": false - }, - { - "name": "AzureSubscriptionId", - "displayName": "AzureSubscriptionId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AzureActivityV2", - "VMComputer" - ], - "extraction": null, - "common": false - }, - { - "name": "AzureTenantId", - "displayName": "AzureTenantId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AzureActivityV2" - ], - "extraction": null, - "common": false - }, - { - "name": "AzureResourceId", - "displayName": "AzureResourceId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AzureActivityV2" - ], - "extraction": null, - "common": false - }, - { - "name": "Misc", - "displayName": "Misc", - "type": "Dynamic", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AzureActivityV2" - ], - "extraction": null, - "common": false - }, - { - "name": "ResourceRegion", - "displayName": "ResourceRegion", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AzureAttestationDiagnostics", - "AzureLoadTestingOperation" - ], - "extraction": null, - "common": false - }, - { - "name": "ResourceUri", - "displayName": "ResourceUri", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AzureAttestationDiagnostics", - "CDBControlPlaneRequests", - "Usage" - ], - "extraction": null, - "common": false - }, - { - "name": "ServiceLocation", - "displayName": "ServiceLocation", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AzureAttestationDiagnostics", - "AzureLoadTestingOperation" - ], - "extraction": null, - "common": false - }, - { - "name": "FailureDetails", - "displayName": "FailureDetails", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AzureAttestationDiagnostics", - "AzureLoadTestingOperation" - ], - "extraction": null, - "common": false - }, - { - "name": "ContentLength", - "displayName": "ContentLength", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "AzureAttestationDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "ResultDetails", - "displayName": "ResultDetails", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AzureAttestationDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "ActorCUID", - "displayName": "ActorCUID", - "type": "Guid", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AzureDevOpsAuditing" - ], - "extraction": null, - "common": false - }, - { - "name": "ActorUserId", - "displayName": "ActorUserId", - "type": "Guid", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AzureDevOpsAuditing" - ], - "extraction": null, - "common": false - }, - { - "name": "ActorUPN", - "displayName": "ActorUPN", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AzureDevOpsAuditing" - ], - "extraction": null, - "common": false - }, - { - "name": "AuthenticationMechanism", - "displayName": "AuthenticationMechanism", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AzureDevOpsAuditing" - ], - "extraction": null, - "common": false - }, - { - "name": "ScopeType", - "displayName": "ScopeType", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AzureDevOpsAuditing" - ], - "extraction": null, - "common": false - }, - { - "name": "ScopeDisplayName", - "displayName": "ScopeDisplayName", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AzureDevOpsAuditing" - ], - "extraction": null, - "common": false - }, - { - "name": "ScopeId", - "displayName": "ScopeId", - "type": "Guid", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AzureDevOpsAuditing" - ], - "extraction": null, - "common": false - }, - { - "name": "ProjectId", - "displayName": "ProjectId", - "type": "Guid", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AzureDevOpsAuditing" - ], - "extraction": null, - "common": false - }, - { - "name": "ProjectName", - "displayName": "ProjectName", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AzureDevOpsAuditing" - ], - "extraction": null, - "common": false - }, - { - "name": "Area", - "displayName": "Area", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AzureDevOpsAuditing" - ], - "extraction": null, - "common": false - }, - { - "name": "CategoryDisplayName", - "displayName": "CategoryDisplayName", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AzureDevOpsAuditing" - ], - "extraction": null, - "common": false - }, - { - "name": "ActorDisplayName", - "displayName": "ActorDisplayName", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AzureDevOpsAuditing" - ], - "extraction": null, - "common": false - }, - { - "name": "Tenant_g", - "displayName": "Tenant_g", - "type": "Guid", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "requestUri_s", - "displayName": "requestUri_s", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "id_s", - "displayName": "id_s", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "status_s", - "displayName": "status_s", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "LogicalServerName_s", - "displayName": "LogicalServerName_s", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "clientInfo_s", - "displayName": "clientInfo_s", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "httpStatusCode_d", - "displayName": "httpStatusCode_d", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "identity_claim_appid_g", - "displayName": "identity_claim_appid_g", - "type": "Guid", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "identity_claim_http_schemas_microsoft_com_identity_claims_objectidentifier_g", - "displayName": "identity_claim_http_schemas_microsoft_com_identity_claims_objectidentifier_g", - "type": "Guid", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "userAgent_s", - "displayName": "userAgent_s", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "ruleName_s", - "displayName": "ruleName_s", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "identity_claim_http_schemas_xmlsoap_org_ws_2005_05_identity_claims_upn_s", - "displayName": "identity_claim_http_schemas_xmlsoap_org_ws_2005_05_identity_claims_upn_s", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "systemId_g", - "displayName": "systemId_g", - "type": "Guid", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "isAccessPolicyMatch_b", - "displayName": "isAccessPolicyMatch_b", - "type": "Bool", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "EventName_s", - "displayName": "EventName_s", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "httpMethod_s", - "displayName": "httpMethod_s", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "subnetId_s", - "displayName": "subnetId_s", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "type_s", - "displayName": "type_s", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "instanceId_s", - "displayName": "instanceId_s", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "macAddress_s", - "displayName": "macAddress_s", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "vnetResourceGuid_g", - "displayName": "vnetResourceGuid_g", - "type": "Guid", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "direction_s", - "displayName": "direction_s", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "subnetPrefix_s", - "displayName": "subnetPrefix_s", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "primaryIPv4Address_s", - "displayName": "primaryIPv4Address_s", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "conditions_sourcePortRange_s", - "displayName": "conditions_sourcePortRange_s", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "priority_d", - "displayName": "priority_d", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "conditions_destinationPortRange_s", - "displayName": "conditions_destinationPortRange_s", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "conditions_destinationIP_s", - "displayName": "conditions_destinationIP_s", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "conditions_None_s", - "displayName": "conditions_None_s", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "conditions_sourceIP_s", - "displayName": "conditions_sourceIP_s", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "httpVersion_s", - "displayName": "httpVersion_s", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "matchedConnections_d", - "displayName": "matchedConnections_d", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "startTime_t", - "displayName": "startTime_t", - "type": "DateTime", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "endTime_t", - "displayName": "endTime_t", - "type": "DateTime", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "DatabaseName_s", - "displayName": "DatabaseName_s", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "clientIP_s", - "displayName": "clientIP_s", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "host_s", - "displayName": "host_s", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "requestQuery_s", - "displayName": "requestQuery_s", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "sslEnabled_s", - "displayName": "sslEnabled_s", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "clientPort_d", - "displayName": "clientPort_d", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "httpStatus_d", - "displayName": "httpStatus_d", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "receivedBytes_d", - "displayName": "receivedBytes_d", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "sentBytes_d", - "displayName": "sentBytes_d", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "timeTaken_d", - "displayName": "timeTaken_d", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "resultDescription_ErrorJobs_s", - "displayName": "resultDescription_ErrorJobs_s", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "resultDescription_ChildJobs_s", - "displayName": "resultDescription_ChildJobs_s", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "identity_claim_http_schemas_microsoft_com_identity_claims_scope_s", - "displayName": "identity_claim_http_schemas_microsoft_com_identity_claims_scope_s", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "workflowId_s", - "displayName": "workflowId_s", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "resource_location_s", - "displayName": "resource_location_s", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "resource_workflowId_g", - "displayName": "resource_workflowId_g", - "type": "Guid", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "resource_resourceGroupName_s", - "displayName": "resource_resourceGroupName_s", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "resource_subscriptionId_g", - "displayName": "resource_subscriptionId_g", - "type": "Guid", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "resource_runId_s", - "displayName": "resource_runId_s", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "resource_workflowName_s", - "displayName": "resource_workflowName_s", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "_schema_s", - "displayName": "_schema_s", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "correlation_clientTrackingId_s", - "displayName": "correlation_clientTrackingId_s", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "properties_sku_Family_s", - "displayName": "properties_sku_Family_s", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "properties_sku_Name_s", - "displayName": "properties_sku_Name_s", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "properties_tenantId_g", - "displayName": "properties_tenantId_g", - "type": "Guid", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "properties_enabledForDeployment_b", - "displayName": "properties_enabledForDeployment_b", - "type": "Bool", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "code_s", - "displayName": "code_s", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "resultDescription_Summary_MachineId_s", - "displayName": "resultDescription_Summary_MachineId_s", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "resultDescription_Summary_ScheduleName_s", - "displayName": "resultDescription_Summary_ScheduleName_s", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "resultDescription_Summary_Status_s", - "displayName": "resultDescription_Summary_Status_s", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "resultDescription_Summary_StatusDescription_s", - "displayName": "resultDescription_Summary_StatusDescription_s", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "resultDescription_Summary_MachineName_s", - "displayName": "resultDescription_Summary_MachineName_s", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "resultDescription_Summary_TotalUpdatesInstalled_d", - "displayName": "resultDescription_Summary_TotalUpdatesInstalled_d", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "resultDescription_Summary_RebootRequired_b", - "displayName": "resultDescription_Summary_RebootRequired_b", - "type": "Bool", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "resultDescription_Summary_TotalUpdatesFailed_d", - "displayName": "resultDescription_Summary_TotalUpdatesFailed_d", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "resultDescription_Summary_InstallPercentage_d", - "displayName": "resultDescription_Summary_InstallPercentage_d", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "resultDescription_Summary_StartDateTimeUtc_t", - "displayName": "resultDescription_Summary_StartDateTimeUtc_t", - "type": "DateTime", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "resource_triggerName_s", - "displayName": "resource_triggerName_s", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "resultDescription_Summary_InitialRequiredUpdatesCount_d", - "displayName": "resultDescription_Summary_InitialRequiredUpdatesCount_d", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "properties_enabledForTemplateDeployment_b", - "displayName": "properties_enabledForTemplateDeployment_b", - "type": "Bool", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "resultDescription_Summary_EndDateTimeUtc_s", - "displayName": "resultDescription_Summary_EndDateTimeUtc_s", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "resultDescription_Summary_DurationInMinutes_s", - "displayName": "resultDescription_Summary_DurationInMinutes_s", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "resource_originRunId_s", - "displayName": "resource_originRunId_s", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "properties_enabledForDiskEncryption_b", - "displayName": "properties_enabledForDiskEncryption_b", - "type": "Bool", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "resource_actionName_s", - "displayName": "resource_actionName_s", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "correlation_actionTrackingId_g", - "displayName": "correlation_actionTrackingId_g", - "type": "Guid", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "resultDescription_Summary_EndDateTimeUtc_t", - "displayName": "resultDescription_Summary_EndDateTimeUtc_t", - "type": "DateTime", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "resultDescription_Summary_DurationInMinutes_d", - "displayName": "resultDescription_Summary_DurationInMinutes_d", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "conditions_protocols_s", - "displayName": "conditions_protocols_s", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "identity_claim_ipaddr_s", - "displayName": "identity_claim_ipaddr_s", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "ElasticPoolName_s", - "displayName": "ElasticPoolName_s", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "identity_claim_http_schemas_microsoft_com_claims_authnmethodsreferences_s", - "displayName": "identity_claim_http_schemas_microsoft_com_claims_authnmethodsreferences_s", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "RunOn_s", - "displayName": "RunOn_s", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "query_hash_s", - "displayName": "query_hash_s", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "AzureDiagnostics" - ], - "extraction": null, - "common": false - }, - { - "name": "RequestMethod", - "displayName": "RequestMethod", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AzureLoadTestingOperation", - "OLPSupplyChainEntityOperations" - ], - "extraction": null, - "common": false - }, - { - "name": "MetricName", - "displayName": "MetricName", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AzureMetrics", - "HDInsightHadoopAndYarnMetrics", - "HDInsightHBaseMetrics", - "HDInsightHiveAndLLAPMetrics", - "HDInsightHiveQueryAppStats", - "HDInsightHiveTezAppStats", - "HDInsightKafkaMetrics", - "HDInsightSparkStageTaskAccumulables", - "HDInsightStormMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "Total", - "displayName": "Total", - "type": "Double", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AzureMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "Maximum", - "displayName": "Maximum", - "type": "Double", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AzureMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "Minimum", - "displayName": "Minimum", - "type": "Double", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AzureMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "AverageValue", - "displayName": "Average", - "type": "Double", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "AzureMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "TimeGrain", - "displayName": "TimeGrain", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AzureMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "UnitName", - "displayName": "UnitName", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "AzureMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "Direction", - "displayName": "Direction", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "VMConnection" - ], - "extraction": null, - "common": false - }, - { - "name": "RuleType", - "displayName": "RuleType", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "NetworkAccessTraffic", - "NSPAccessLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "Priority", - "displayName": "Priority", - "type": "Int", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "SynapseSqlPoolWaits" - ], - "extraction": null, - "common": false - }, - { - "name": "SourceIP", - "displayName": "SourceIP", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "NWConnectionMonitorDNSResult", - "NWConnectionMonitorPathResult", - "NWConnectionMonitorTestResult" - ], - "extraction": null, - "common": false - }, - { - "name": "DestinationIP", - "displayName": "DestinationIP", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "NWConnectionMonitorDestinationListenerResult", - "NWConnectionMonitorDNSResult", - "NWConnectionMonitorPathResult", - "NWConnectionMonitorTestResult" - ], - "extraction": null, - "common": false - }, - { - "name": "TimeProcessed", - "displayName": "TimeProcessed", - "type": "DateTime", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "NetworkAccessTraffic" - ], - "extraction": null, - "common": false - }, - { - "name": "SourceIPAddress", - "displayName": "SourceIPAddress", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "DatabricksAccounts", - "DatabricksClusters", - "DatabricksDatabricksSQL", - "DatabricksDBFS", - "DatabricksDeltaPipelines", - "DatabricksFeatureStore", - "DatabricksGenie", - "DatabricksGitCredentials", - "DatabricksGlobalInitScripts", - "DatabricksIAMRole", - "DatabricksInstancePools", - "DatabricksJobs", - "DatabricksMLflowAcledArtifact", - "DatabricksMLflowExperiment", - "DatabricksModelRegistry", - "DatabricksNotebook", - "DatabricksRemoteHistoryService", - "DatabricksRepos", - "DatabricksSecrets", - "DatabricksSQL", - "DatabricksSQLPermissions", - "DatabricksSSH", - "DatabricksTables", - "DatabricksUnityCatalog", - "DatabricksWebTerminal", - "DatabricksWorkspace" - ], - "extraction": null, - "common": false - }, - { - "name": "NodeLocation", - "displayName": "NodeLocation", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "BlockchainApplicationLog" - ], - "extraction": null, - "common": false - }, - { - "name": "BlockchainNodeName", - "displayName": "BlockchainNodeName", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "BlockchainApplicationLog" - ], - "extraction": null, - "common": false - }, - { - "name": "BlockchainMessage", - "displayName": "BlockchainMessage", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "BlockchainApplicationLog" - ], - "extraction": null, - "common": false - }, - { - "name": "ClientPort", - "displayName": "ClientPort", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CassandraAudit", - "MicrosoftAzureBastionAuditLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "CoordinatorIP", - "displayName": "CoordinatorIP", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CassandraAudit" - ], - "extraction": null, - "common": false - }, - { - "name": "BatchId", - "displayName": "BatchId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CassandraAudit", - "IntuneDeviceComplianceOrg", - "IntuneDevices" - ], - "extraction": null, - "common": false - }, - { - "name": "Operation", - "displayName": "Operation", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CassandraAudit", - "WVDErrors" - ], - "extraction": null, - "common": false - }, - { - "name": "OperationNaked", - "displayName": "OperationNaked", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CassandraAudit" - ], - "extraction": null, - "common": false - }, - { - "name": "ExternalUserId", - "displayName": "ExternalUserId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CassandraAudit", - "VIAudit", - "VIIndexing" - ], - "extraction": null, - "common": false - }, - { - "name": "ThreadName", - "displayName": "ThreadName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CassandraLogs", - "HDInsightHiveQueryAppStats" - ], - "extraction": null, - "common": false - }, - { - "name": "SourceFile", - "displayName": "SourceFile", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CassandraLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "SourceLine", - "displayName": "SourceLine", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CassandraLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "CassandraKeyspace", - "displayName": "CassandraKeyspace", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "CassandraLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "CassandraTable", - "displayName": "CassandraTable", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "CassandraLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "PartitionKey", - "displayName": "PartitionKey", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "CassandraLogs", - "CDBPartitionKeyRUConsumption", - "CDBPartitionKeyStatistics", - "ETWEvent", - "ServiceFabricOperationalEvent", - "ServiceFabricReliableActorEvent", - "ServiceFabricReliableServiceEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "PartitionSize", - "displayName": "PartitionSize", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "CassandraLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "TombstonedCells", - "displayName": "TombstonedCells", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "CassandraLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "LiveCells", - "displayName": "LiveCells", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "CassandraLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "CassandraKey", - "displayName": "CassandraKey", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "CassandraLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "RequestedColumns", - "displayName": "RequestedColumns", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "CassandraLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "SliceStart", - "displayName": "SliceStart", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "CassandraLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "SliceEnd", - "displayName": "SliceEnd", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "CassandraLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "DeletionInfo", - "displayName": "DeletionInfo", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "CassandraLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "CodeCacheBefore", - "displayName": "CodeCacheBefore", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "CassandraLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "CodeCacheAfter", - "displayName": "CodeCacheAfter", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "CassandraLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "Collections", - "displayName": "Collections", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "CassandraLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "CompressedClassSpaceAfter", - "displayName": "CompressedClassSpaceAfter", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "CassandraLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "CompressedClassSpaceBefore", - "displayName": "CompressedClassSpaceBefore", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "CassandraLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "EdenSpaceBefore", - "displayName": "EdenSpaceBefore", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "CassandraLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "EdenSpaceAfter", - "displayName": "EdenSpaceAfter", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "CassandraLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "GCType", - "displayName": "GCType", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "CassandraLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "MaxMemory", - "displayName": "MaxMemory", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "CassandraLogs", - "HDInsightSparkBlockManagerEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "MetaspaceBefore", - "displayName": "MetaspaceBefore", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "CassandraLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "MetaspaceAfter", - "displayName": "MetaspaceAfter", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "CassandraLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "OldGenAfter", - "displayName": "OldGenAfter", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "CassandraLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "OldGenBefore", - "displayName": "OldGenBefore", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "CassandraLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "PercentFull", - "displayName": "PercentFull", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "CassandraLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "PermGenAfter", - "displayName": "PermGenAfter", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "CassandraLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "PermGenBefore", - "displayName": "PermGenBefore", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "CassandraLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "SurvivorSpaceBefore", - "displayName": "SurvivorSpaceBefore", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "CassandraLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "SurvivorSpaceAfter", - "displayName": "SurvivorSpaceAfter", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "CassandraLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "UsedMemory", - "displayName": "UsedMemory", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "CassandraLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "DroppedCrossNodeTimeout", - "displayName": "DroppedCrossNodeTimeout", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "CassandraLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "DroppedInternalTimeout", - "displayName": "DroppedInternalTimeout", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "CassandraLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "DroppedMessagesType", - "displayName": "DroppedMessagesType", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "CassandraLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "DroppedMessages", - "displayName": "DroppedMessages", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "CassandraLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "Endpoint", - "displayName": "Endpoint", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "CassandraLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "HostId", - "displayName": "HostId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "CassandraLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "PendingTasks", - "displayName": "PendingTasks", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "CassandraLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "SSTableName", - "displayName": "SSTableName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "CassandraLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "RequestCharge", - "displayName": "RequestCharge", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CDBCassandraRequests", - "CDBDataPlaneRequests", - "CDBGremlinRequests", - "CDBMongoRequests", - "CDBPartitionKeyRUConsumption" - ], - "extraction": null, - "common": false - }, - { - "name": "CollectionName", - "displayName": "CollectionName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CDBCassandraRequests", - "CDBDataPlaneRequests", - "CDBGremlinRequests", - "CDBMongoRequests", - "CDBPartitionKeyRUConsumption", - "CDBPartitionKeyStatistics", - "CDBQueryRuntimeStatistics" - ], - "extraction": null, - "common": false - }, - { - "name": "AuthorizationTokenType", - "displayName": "AuthorizationTokenType", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CDBCassandraRequests", - "CDBGremlinRequests", - "CDBMongoRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "RetryCount", - "displayName": "RetryCount", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CDBCassandraRequests", - "CDBGremlinRequests", - "CDBMongoRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "Address", - "displayName": "Address", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CDBCassandraRequests", - "CDBGremlinRequests", - "CDBMongoRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "PIICommandText", - "displayName": "PIICommandText", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CDBCassandraRequests", - "CDBGremlinRequests", - "CDBMongoRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "RateLimitingDelayMs", - "displayName": "RateLimitingDelayMs", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CDBCassandraRequests", - "CDBGremlinRequests", - "CDBMongoRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "RetriedDueToRateLimiting", - "displayName": "RetriedDueToRateLimiting", - "type": "Bool", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CDBCassandraRequests", - "CDBGremlinRequests", - "CDBMongoRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "RegionName", - "displayName": "RegionName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CDBCassandraRequests", - "CDBControlPlaneRequests", - "CDBDataPlaneRequests", - "CDBGremlinRequests", - "CDBMongoRequests", - "CDBPartitionKeyRUConsumption", - "CDBPartitionKeyStatistics" - ], - "extraction": null, - "common": false - }, - { - "name": "HttpMethod", - "displayName": "HttpMethod", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CDBControlPlaneRequests", - "WebPubSubHttpRequest" - ], - "extraction": null, - "common": false - }, - { - "name": "CurrentWriteRegion", - "displayName": "CurrentWriteRegion", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CDBControlPlaneRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "NewWriteRegion", - "displayName": "NewWriteRegion", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CDBControlPlaneRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "IpRangeFilter", - "displayName": "IpRangeFilter", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CDBControlPlaneRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "EnableVirtualNetworkFilter", - "displayName": "EnableVirtualNetworkFilter", - "type": "Bool", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CDBControlPlaneRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "VirtualNetworkResourceEntries", - "displayName": "VirtualNetworkResourceEntries", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CDBControlPlaneRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "EnablePrivateEndpointConnection", - "displayName": "EnablePrivateEndpointConnection", - "type": "Bool", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CDBControlPlaneRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "PrivateEndpointConnections", - "displayName": "PrivateEndpointConnections", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CDBControlPlaneRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "PrivateEndpointArmUrl", - "displayName": "PrivateEndpointArmUrl", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CDBControlPlaneRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "DefaultConsistencyLevel", - "displayName": "DefaultConsistencyLevel", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CDBControlPlaneRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "EnableAutomaticFailover", - "displayName": "EnableAutomaticFailover", - "type": "Bool", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CDBControlPlaneRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "MaxStalenessIntervalInSeconds", - "displayName": "MaxStalenessIntervalInSeconds", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CDBControlPlaneRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "MaxStalenessPrefix", - "displayName": "MaxStalenessPrefix", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CDBControlPlaneRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "MultipleWriteLocations", - "displayName": "MultipleWriteLocations", - "type": "Bool", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CDBControlPlaneRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "Cors", - "displayName": "Cors", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CDBControlPlaneRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "BackupIntervalInMinutes", - "displayName": "BackupIntervalInMinutes", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CDBControlPlaneRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "BackupRetentionIntervalInHours", - "displayName": "BackupRetentionIntervalInHours", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CDBControlPlaneRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "VnetResourceGroupName", - "displayName": "VnetResourceGroupName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CDBControlPlaneRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "VirtualNetworkName", - "displayName": "VirtualNetworkName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CDBControlPlaneRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "VnetDatabaseAccountEntries", - "displayName": "VnetDatabaseAccountEntries", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CDBControlPlaneRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "AcledSubnets", - "displayName": "AcledSubnets", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CDBControlPlaneRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "VnetLocation", - "displayName": "VnetLocation", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CDBControlPlaneRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "VnetArmUrl", - "displayName": "VnetArmUrl", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CDBControlPlaneRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "SqlQueryTextTraceType", - "displayName": "SqlQueryTextTraceType", - "type": "Bool", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CDBControlPlaneRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "EnableDataPlaneRequestsTrace", - "displayName": "EnableDataPlaneRequestsTrace", - "type": "Bool", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CDBControlPlaneRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "EnableControlPlaneRequestsTrace", - "displayName": "EnableControlPlaneRequestsTrace", - "type": "Bool", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CDBControlPlaneRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "EnableMongoRequestsTrace", - "displayName": "EnableMongoRequestsTrace", - "type": "Bool", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CDBControlPlaneRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "EnableCassandraRequestsTrace", - "displayName": "EnableCassandraRequestsTrace", - "type": "Bool", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CDBControlPlaneRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "EnableGremlinRequestsTrace", - "displayName": "EnableGremlinRequestsTrace", - "type": "Bool", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CDBControlPlaneRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "RoleDefinitionId", - "displayName": "RoleDefinitionId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CDBControlPlaneRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "RoleDefinitionName", - "displayName": "RoleDefinitionName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CDBControlPlaneRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "RoleDefinitionType", - "displayName": "RoleDefinitionType", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CDBControlPlaneRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "RoleDefinitionAssignableScopes", - "displayName": "RoleDefinitionAssignableScopes", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CDBControlPlaneRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "RoleDefinitionPermissions", - "displayName": "RoleDefinitionPermissions", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CDBControlPlaneRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "RoleAssignmentId", - "displayName": "RoleAssignmentId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CDBControlPlaneRequests", - "SynapseRBACEvents", - "SynapseRbacOperations" - ], - "extraction": null, - "common": false - }, - { - "name": "AssociatedRoleDefinitionId", - "displayName": "AssociatedRoleDefinitionId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CDBControlPlaneRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "RoleAssignmentPrincipalId", - "displayName": "RoleAssignmentPrincipalId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CDBControlPlaneRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "RoleAssignmentPrincipalType", - "displayName": "RoleAssignmentPrincipalType", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CDBControlPlaneRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "RoleAssignmentScope", - "displayName": "RoleAssignmentScope", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CDBControlPlaneRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "ApiKind", - "displayName": "ApiKind", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CDBControlPlaneRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "ApiKindResourceType", - "displayName": "ApiKindResourceType", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CDBControlPlaneRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "ConnectionMode", - "displayName": "ConnectionMode", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CDBDataPlaneRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "RequestResourceType", - "displayName": "RequestResourceType", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CDBDataPlaneRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "RequestResourceId", - "displayName": "RequestResourceId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CDBDataPlaneRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "PartitionId", - "displayName": "PartitionId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CDBDataPlaneRequests", - "ServiceFabricOperationalEvent", - "ServiceFabricReliableActorEvent", - "ServiceFabricReliableServiceEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "AadAppliedRoleAssignmentId", - "displayName": "AadAppliedRoleAssignmentId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CDBDataPlaneRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "AadPrincipalId", - "displayName": "AadPrincipalId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CDBDataPlaneRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "ResourceTokenPermissionId", - "displayName": "ResourceTokenPermissionId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CDBDataPlaneRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "ResourceTokenPermissionMode", - "displayName": "ResourceTokenPermissionMode", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CDBDataPlaneRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "ResourceTokenUserRid", - "displayName": "ResourceTokenUserRid", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CDBDataPlaneRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "KeyType", - "displayName": "KeyType", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CDBDataPlaneRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "AuthTokenType", - "displayName": "AuthTokenType", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CDBDataPlaneRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "OpCode", - "displayName": "OpCode", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CDBMongoRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "PartitionKeyRangeId", - "displayName": "PartitionKeyRangeId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CDBPartitionKeyRUConsumption", - "CDBQueryRuntimeStatistics" - ], - "extraction": null, - "common": false - }, - { - "name": "SizeKb", - "displayName": "SizeKb", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CDBPartitionKeyStatistics" - ], - "extraction": null, - "common": false - }, - { - "name": "QueryText", - "displayName": "QueryText", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CDBQueryRuntimeStatistics", - "LAQueryLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ProcessName", - "displayName": "ProcessName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "Syslog", - "VMBoundPort", - "VMConnection" - ], - "extraction": null, - "common": false - }, - { - "name": "ProcessID", - "displayName": "ProcessID", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "Syslog" - ], - "extraction": null, - "common": false - }, - { - "name": "RequestContext", - "displayName": "RequestContext", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "LAQueryLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "Manufacturer", - "displayName": "Manufacturer", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "IntuneDevices" - ], - "extraction": null, - "common": false - }, - { - "name": "Group", - "displayName": "Group", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ComputerGroup", - "VMProcess" - ], - "extraction": null, - "common": false - }, - { - "name": "GroupId", - "displayName": "GroupId", - "type": "String", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ComputerGroup" - ], - "extraction": null, - "common": false - }, - { - "name": "GroupSourceName", - "displayName": "GroupSourceName", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ComputerGroup" - ], - "extraction": null, - "common": false - }, - { - "name": "GroupSource", - "displayName": "GroupSource", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ComputerGroup" - ], - "extraction": null, - "common": false - }, - { - "name": "GroupFullName", - "displayName": "GroupFullName", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ComputerGroup" - ], - "extraction": null, - "common": false - }, - { - "name": "SourceComputerId", - "displayName": "SourceComputerId", - "type": "Guid", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "Heartbeat", - "Operation" - ], - "extraction": null, - "common": false - }, - { - "name": "VMUUID", - "displayName": "VMUUID", - "type": "Guid", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "Heartbeat" - ], - "extraction": null, - "common": false - }, - { - "name": "ContainerGroupName", - "displayName": "ContainerGroupName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ContainerAppConsoleLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ContainerImage", - "displayName": "ContainerImage", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ContainerAppConsoleLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ContainerGroupId", - "displayName": "ContainerGroupId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ContainerAppConsoleLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "EnvironmentName", - "displayName": "EnvironmentName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ContainerAppConsoleLogs", - "ContainerAppSystemLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ContainerAppName", - "displayName": "ContainerAppName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ContainerAppConsoleLogs", - "ContainerAppSystemLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "RevisionName", - "displayName": "RevisionName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ContainerAppConsoleLogs", - "ContainerAppSystemLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ReplicaName", - "displayName": "ReplicaName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ContainerAppSystemLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ImageID", - "displayName": "ImageID", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "ContainerImageInventory", - "ContainerInventory" - ], - "extraction": null, - "common": false - }, - { - "name": "Repository", - "displayName": "Repository", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ContainerImageInventory", - "ContainerInventory", - "ContainerLog", - "ContainerRegistryRepositoryEvents", - "ContainerServiceLog" - ], - "extraction": null, - "common": false - }, - { - "name": "Image", - "displayName": "Image", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ContainerImageInventory", - "ContainerInventory", - "ContainerLog", - "ContainerServiceLog" - ], - "extraction": null, - "common": false - }, - { - "name": "ImageTag", - "displayName": "ImageTag", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ContainerImageInventory", - "ContainerInventory", - "ContainerLog", - "ContainerServiceLog" - ], - "extraction": null, - "common": false - }, - { - "name": "ImageSize", - "displayName": "ImageSize", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ContainerImageInventory" - ], - "extraction": null, - "common": false - }, - { - "name": "VirtualSize", - "displayName": "VirtualSize", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ContainerImageInventory" - ], - "extraction": null, - "common": false - }, - { - "name": "Running", - "displayName": "Running", - "type": "Int", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ContainerImageInventory" - ], - "extraction": null, - "common": false - }, - { - "name": "Stopped", - "displayName": "Stopped", - "type": "Int", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ContainerImageInventory" - ], - "extraction": null, - "common": false - }, - { - "name": "Failed", - "displayName": "Failed", - "type": "Int", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ContainerImageInventory", - "HDInsightSparkTaskEvents", - "HDInsightStormTopologyMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "Paused", - "displayName": "Paused", - "type": "Int", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ContainerImageInventory" - ], - "extraction": null, - "common": false - }, - { - "name": "TotalContainer", - "displayName": "TotalContainer", - "type": "BigInt", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "ContainerImageInventory" - ], - "extraction": null, - "common": false - }, - { - "name": "ContainerID", - "displayName": "ContainerID", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "ContainerInventory", - "ContainerLog", - "ContainerServiceLog", - "KubePodInventory" - ], - "extraction": null, - "common": false - }, - { - "name": "ContainerHostname", - "displayName": "ContainerHostname", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ContainerInventory" - ], - "extraction": null, - "common": false - }, - { - "name": "ContainerState", - "displayName": "ContainerState", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ContainerInventory" - ], - "extraction": null, - "common": false - }, - { - "name": "Ports", - "displayName": "Ports", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ContainerInventory" - ], - "extraction": null, - "common": false - }, - { - "name": "Links", - "displayName": "Links", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ContainerInventory" - ], - "extraction": null, - "common": false - }, - { - "name": "ExitCode", - "displayName": "ExitCode", - "type": "Int", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ContainerInventory" - ], - "extraction": null, - "common": false - }, - { - "name": "ComposeGroup", - "displayName": "ComposeGroup", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ContainerInventory" - ], - "extraction": null, - "common": false - }, - { - "name": "EnvironmentVar", - "displayName": "EnvironmentVar", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ContainerInventory" - ], - "extraction": null, - "common": false - }, - { - "name": "Command", - "displayName": "Command", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ContainerInventory", - "ContainerServiceLog", - "SynapseSqlPoolExecRequests", - "SynapseSqlPoolRequestSteps", - "SynapseSqlPoolSqlRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "StartedTime", - "displayName": "StartedTime", - "type": "DateTime", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ContainerInventory", - "HDInsightHiveTezAppStats" - ], - "extraction": null, - "common": false - }, - { - "name": "FinishedTime", - "displayName": "FinishedTime", - "type": "DateTime", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ContainerInventory", - "HDInsightHiveTezAppStats" - ], - "extraction": null, - "common": false - }, - { - "name": "TimeOfCommand", - "displayName": "TimeOfCommand", - "type": "DateTime", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ContainerLog", - "ContainerServiceLog" - ], - "extraction": null, - "common": false - }, - { - "name": "LogEntry", - "displayName": "LogEntry", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ContainerLog" - ], - "extraction": null, - "common": false - }, - { - "name": "LogEntrySource", - "displayName": "LogEntrySource", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ContainerLog" - ], - "extraction": null, - "common": false - }, - { - "name": "OperatingSystem", - "displayName": "OperatingSystem", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ContainerNodeInventory", - "KubeNodeInventory" - ], - "extraction": null, - "common": false - }, - { - "name": "DockerVersion", - "displayName": "DockerVersion", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ContainerNodeInventory", - "KubeNodeInventory" - ], - "extraction": null, - "common": false - }, - { - "name": "LoginServer", - "displayName": "LoginServer", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ContainerRegistryLoginEvents", - "ContainerRegistryRepositoryEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "JwtId", - "displayName": "JwtId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ContainerRegistryLoginEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "Digest", - "displayName": "Digest", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ContainerRegistryRepositoryEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "ArtifactType", - "displayName": "ArtifactType", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ContainerRegistryRepositoryEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "UserTenantId", - "displayName": "UserTenantId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ContainerRegistryRepositoryEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "AgentVersion", - "displayName": "AgentVersion", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "CoreAzureBackup", - "WVDAgentHealthStatus" - ], - "extraction": null, - "common": false - }, - { - "name": "AzureBackupAgentVersion", - "displayName": "AzureBackupAgentVersion", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "CoreAzureBackup" - ], - "extraction": null, - "common": false - }, - { - "name": "AzureDataCenter", - "displayName": "AzureDataCenter", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "CoreAzureBackup" - ], - "extraction": null, - "common": false - }, - { - "name": "BackupItemAppVersion", - "displayName": "BackupItemAppVersion", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "CoreAzureBackup" - ], - "extraction": null, - "common": false - }, - { - "name": "BackupItemFriendlyName", - "displayName": "BackupItemFriendlyName", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CoreAzureBackup" - ], - "extraction": null, - "common": false - }, - { - "name": "BackupItemName", - "displayName": "BackupItemName", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CoreAzureBackup" - ], - "extraction": null, - "common": false - }, - { - "name": "BackupItemProtectionState", - "displayName": "BackupItemProtectionState", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "CoreAzureBackup" - ], - "extraction": null, - "common": false - }, - { - "name": "BackupItemFrontEndSize", - "displayName": "BackupItemFrontEndSize", - "type": "Double", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CoreAzureBackup" - ], - "extraction": null, - "common": false - }, - { - "name": "BackupItemType", - "displayName": "BackupItemType", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "CoreAzureBackup" - ], - "extraction": null, - "common": false - }, - { - "name": "BackupManagementServerType", - "displayName": "BackupManagementServerType", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "CoreAzureBackup" - ], - "extraction": null, - "common": false - }, - { - "name": "BackupManagementServerName", - "displayName": "BackupManagementServerName", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CoreAzureBackup" - ], - "extraction": null, - "common": false - }, - { - "name": "BackupManagementServerOSVersion", - "displayName": "BackupManagementServerOSVersion", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "CoreAzureBackup" - ], - "extraction": null, - "common": false - }, - { - "name": "BackupManagementServerVersion", - "displayName": "BackupManagementServerVersion", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "CoreAzureBackup" - ], - "extraction": null, - "common": false - }, - { - "name": "LatestRecoveryPointLocation", - "displayName": "LatestRecoveryPointLocation", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "CoreAzureBackup" - ], - "extraction": null, - "common": false - }, - { - "name": "LatestRecoveryPointTime", - "displayName": "LatestRecoveryPointTime", - "type": "DateTime", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CoreAzureBackup" - ], - "extraction": null, - "common": false - }, - { - "name": "OldestRecoveryPointLocation", - "displayName": "OldestRecoveryPointLocation", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "CoreAzureBackup" - ], - "extraction": null, - "common": false - }, - { - "name": "OldestRecoveryPointTime", - "displayName": "OldestRecoveryPointTime", - "type": "DateTime", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CoreAzureBackup" - ], - "extraction": null, - "common": false - }, - { - "name": "ProtectedContainerFriendlyName", - "displayName": "ProtectedContainerFriendlyName", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CoreAzureBackup" - ], - "extraction": null, - "common": false - }, - { - "name": "ProtectedContainerLocation", - "displayName": "ProtectedContainerLocation", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "CoreAzureBackup" - ], - "extraction": null, - "common": false - }, - { - "name": "ProtectedContainerName", - "displayName": "ProtectedContainerName", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CoreAzureBackup" - ], - "extraction": null, - "common": false - }, - { - "name": "ProtectedContainerOSType", - "displayName": "ProtectedContainerOSType", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "CoreAzureBackup" - ], - "extraction": null, - "common": false - }, - { - "name": "ProtectedContainerOSVersion", - "displayName": "ProtectedContainerOSVersion", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "CoreAzureBackup" - ], - "extraction": null, - "common": false - }, - { - "name": "ProtectedContainerProtectionState", - "displayName": "ProtectedContainerProtectionState", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "CoreAzureBackup" - ], - "extraction": null, - "common": false - }, - { - "name": "ProtectedContainerType", - "displayName": "ProtectedContainerType", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "CoreAzureBackup" - ], - "extraction": null, - "common": false - }, - { - "name": "ProtectedContainerWorkloadType", - "displayName": "ProtectedContainerWorkloadType", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "CoreAzureBackup" - ], - "extraction": null, - "common": false - }, - { - "name": "ProtectionGroupName", - "displayName": "ProtectionGroupName", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CoreAzureBackup" - ], - "extraction": null, - "common": false - }, - { - "name": "SecondaryBackupProtectionState", - "displayName": "SecondaryBackupProtectionState", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "CoreAzureBackup" - ], - "extraction": null, - "common": false - }, - { - "name": "StorageReplicationType", - "displayName": "StorageReplicationType", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "CoreAzureBackup" - ], - "extraction": null, - "common": false - }, - { - "name": "VaultName", - "displayName": "VaultName", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CoreAzureBackup" - ], - "extraction": null, - "common": false - }, - { - "name": "VaultTags", - "displayName": "VaultTags", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "CoreAzureBackup" - ], - "extraction": null, - "common": false - }, - { - "name": "ArchiveTierLatestRecoveryPointLocation", - "displayName": "ArchiveTierLatestRecoveryPointLocation", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CoreAzureBackup" - ], - "extraction": null, - "common": false - }, - { - "name": "ArchiveTierLatestRecoveryPointTime", - "displayName": "ArchiveTierLatestRecoveryPointTime", - "type": "DateTime", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CoreAzureBackup" - ], - "extraction": null, - "common": false - }, - { - "name": "ArchiveTierOldestRecoveryPointLocation", - "displayName": "ArchiveTierOldestRecoveryPointLocation", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CoreAzureBackup" - ], - "extraction": null, - "common": false - }, - { - "name": "ArchiveTierOldestRecoveryPointTime", - "displayName": "ArchiveTierOldestRecoveryPointTime", - "type": "DateTime", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CoreAzureBackup" - ], - "extraction": null, - "common": false - }, - { - "name": "ArchiveTierStorageReplicationType", - "displayName": "ArchiveTierStorageReplicationType", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CoreAzureBackup" - ], - "extraction": null, - "common": false - }, - { - "name": "IsArchiveEnabled", - "displayName": "IsArchiveEnabled", - "type": "Bool", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "CoreAzureBackup" - ], - "extraction": null, - "common": false - }, - { - "name": "LogId", - "displayName": "LogId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "DatabricksAccounts", - "DatabricksClusters", - "DatabricksDatabricksSQL", - "DatabricksDBFS", - "DatabricksDeltaPipelines", - "DatabricksFeatureStore", - "DatabricksGenie", - "DatabricksGitCredentials", - "DatabricksGlobalInitScripts", - "DatabricksIAMRole", - "DatabricksInstancePools", - "DatabricksJobs", - "DatabricksMLflowAcledArtifact", - "DatabricksMLflowExperiment", - "DatabricksModelRegistry", - "DatabricksNotebook", - "DatabricksRemoteHistoryService", - "DatabricksRepos", - "DatabricksSecrets", - "DatabricksSQL", - "DatabricksSQLPermissions", - "DatabricksSSH", - "DatabricksTables", - "DatabricksUnityCatalog", - "DatabricksWebTerminal", - "DatabricksWorkspace" - ], - "extraction": null, - "common": false - }, - { - "name": "Response", - "displayName": "Response", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "DatabricksAccounts", - "DatabricksClusters", - "DatabricksDatabricksSQL", - "DatabricksDBFS", - "DatabricksDeltaPipelines", - "DatabricksFeatureStore", - "DatabricksGenie", - "DatabricksGitCredentials", - "DatabricksGlobalInitScripts", - "DatabricksIAMRole", - "DatabricksInstancePools", - "DatabricksJobs", - "DatabricksMLflowAcledArtifact", - "DatabricksMLflowExperiment", - "DatabricksModelRegistry", - "DatabricksNotebook", - "DatabricksRemoteHistoryService", - "DatabricksRepos", - "DatabricksSecrets", - "DatabricksSQL", - "DatabricksSQLPermissions", - "DatabricksSSH", - "DatabricksTables", - "DatabricksUnityCatalog", - "DatabricksWebTerminal", - "DatabricksWorkspace" - ], - "extraction": null, - "common": false - }, - { - "name": "RequestParams", - "displayName": "RequestParams", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "DatabricksAccounts", - "DatabricksClusters", - "DatabricksDatabricksSQL", - "DatabricksDBFS", - "DatabricksDeltaPipelines", - "DatabricksFeatureStore", - "DatabricksGenie", - "DatabricksGitCredentials", - "DatabricksGlobalInitScripts", - "DatabricksIAMRole", - "DatabricksInstancePools", - "DatabricksJobs", - "DatabricksMLflowAcledArtifact", - "DatabricksMLflowExperiment", - "DatabricksModelRegistry", - "DatabricksNotebook", - "DatabricksRemoteHistoryService", - "DatabricksRepos", - "DatabricksSecrets", - "DatabricksSQL", - "DatabricksSQLPermissions", - "DatabricksSSH", - "DatabricksTables", - "DatabricksUnityCatalog", - "DatabricksWebTerminal", - "DatabricksWorkspace" - ], - "extraction": null, - "common": false - }, - { - "name": "AgentId", - "displayName": "AgentId", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": true, - "display": false, - "ownerType": [ - "InsightsMetrics", - "VMBoundPort", - "VMComputer", - "VMConnection", - "VMProcess" - ], - "extraction": null, - "common": false - }, - { - "name": "EventId", - "displayName": "EventId", - "type": "Int", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ETWEvent", - "OLPSupplyChainEvents", - "ServiceFabricOperationalEvent", - "ServiceFabricReliableActorEvent", - "ServiceFabricReliableServiceEvent", - "SQLSecurityAuditEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "SerialNumber", - "displayName": "SerialNumber", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "IntuneDeviceComplianceOrg", - "IntuneDevices" - ], - "extraction": null, - "common": false - }, - { - "name": "SensitivityLabel", - "displayName": "SensitivityLabel", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "PurviewDataSensitivityLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ClientVersion", - "displayName": "ClientVersion", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "PowerBIReportUsageTenant", - "PowerBIReportUsageWorkspace", - "WVDConnections", - "WVDFeeds" - ], - "extraction": null, - "common": false - }, - { - "name": "OSVersion", - "displayName": "OSVersion", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "IntuneDeviceComplianceOrg", - "IntuneDevices", - "WVDAgentHealthStatus" - ], - "extraction": null, - "common": false - }, - { - "name": "ProviderName", - "displayName": "ProviderName", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ResourceManagementPublicAccessLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "DomainName", - "displayName": "DomainName", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "NWConnectionMonitorDNSResult" - ], - "extraction": null, - "common": false - }, - { - "name": "AuthenticationType", - "displayName": "AuthenticationType", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "DSMAzureBlobStorageLogs", - "StorageBlobLogs", - "StorageFileLogs", - "StorageQueueLogs", - "StorageTableLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "RequesterAppId", - "displayName": "RequesterAppId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "DSMAzureBlobStorageLogs", - "StorageBlobLogs", - "StorageFileLogs", - "StorageQueueLogs", - "StorageTableLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "RequesterUpn", - "displayName": "RequesterUpn", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "DSMAzureBlobStorageLogs", - "StorageBlobLogs", - "StorageFileLogs", - "StorageQueueLogs", - "StorageTableLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "UserAgentHeader", - "displayName": "UserAgentHeader", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "DSMAzureBlobStorageLogs", - "StorageBlobLogs", - "StorageFileLogs", - "StorageQueueLogs", - "StorageTableLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "AggregationCount", - "displayName": "AggregationCount", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "DSMAzureBlobStorageLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "AggregationLastEventTime", - "displayName": "AggregationLastEventTime", - "type": "DateTime", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "DSMAzureBlobStorageLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "SumResponseBodySize", - "displayName": "SumResponseBodySize", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "DSMAzureBlobStorageLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ResourceSubscriptionId", - "displayName": "ResourceSubscriptionId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "DSMAzureBlobStorageLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "Classification", - "displayName": "Classification", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "DSMDataClassificationLogs", - "PurviewDataSensitivityLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "SourceType", - "displayName": "SourceType", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "DSMDataClassificationLogs", - "NWConnectionMonitorDNSResult", - "NWConnectionMonitorPathResult", - "NWConnectionMonitorTestResult", - "PurviewDataSensitivityLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "AssetType", - "displayName": "AssetType", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "DSMDataClassificationLogs", - "PurviewDataSensitivityLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "AssetLastScanTime", - "displayName": "AssetLastScanTime", - "type": "DateTime", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "DSMDataClassificationLogs", - "DSMDataLabelingLogs", - "PurviewDataSensitivityLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ClassificationDetails", - "displayName": "ClassificationDetails", - "type": "Dynamic", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "DSMDataClassificationLogs", - "PurviewDataSensitivityLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "SensitivityLabelName", - "displayName": "SensitivityLabelName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "DSMDataLabelingLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "UserType", - "displayName": "UserType", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "SigninLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "EntityId", - "displayName": "EntityId", - "type": "Guid", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "HDInsightSparkStageTaskAccumulables" - ], - "extraction": null, - "common": false - }, - { - "name": "ProviderGuid", - "displayName": "ProviderGuid", - "type": "Guid", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ETWEvent", - "ServiceFabricOperationalEvent", - "ServiceFabricReliableActorEvent", - "ServiceFabricReliableServiceEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "EventSourceName", - "displayName": "EventSourceName", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "ETWEvent", - "ServiceFabricOperationalEvent", - "ServiceFabricReliableActorEvent", - "ServiceFabricReliableServiceEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "Pid", - "displayName": "Pid", - "type": "Int", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ETWEvent", - "MicrosoftDynamicsTelemetryPerformanceLogs", - "ServiceFabricOperationalEvent", - "ServiceFabricReliableActorEvent", - "ServiceFabricReliableServiceEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "Tid", - "displayName": "Tid", - "type": "Int", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ETWEvent", - "ServiceFabricOperationalEvent", - "ServiceFabricReliableActorEvent", - "ServiceFabricReliableServiceEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "OpcodeName", - "displayName": "OpcodeName", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ETWEvent", - "ServiceFabricOperationalEvent", - "ServiceFabricReliableActorEvent", - "ServiceFabricReliableServiceEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "KeywordName", - "displayName": "KeywordName", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ETWEvent", - "ServiceFabricOperationalEvent", - "ServiceFabricReliableActorEvent", - "ServiceFabricReliableServiceEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "ChannelName", - "displayName": "ChannelName", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ETWEvent", - "ServiceFabricOperationalEvent", - "ServiceFabricReliableActorEvent", - "ServiceFabricReliableServiceEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "RowKey", - "displayName": "RowKey", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "ETWEvent", - "ServiceFabricOperationalEvent", - "ServiceFabricReliableActorEvent", - "ServiceFabricReliableServiceEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "AzureDeploymentID", - "displayName": "AzureDeploymentID", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "ETWEvent", - "Event", - "ServiceFabricOperationalEvent", - "ServiceFabricReliableActorEvent", - "ServiceFabricReliableServiceEvent", - "W3CIISLog" - ], - "extraction": null, - "common": false - }, - { - "name": "EventLog", - "displayName": "EventLog", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "Event" - ], - "extraction": null, - "common": false - }, - { - "name": "EventLevel", - "displayName": "EventLevel", - "type": "Int", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "Event" - ], - "extraction": null, - "common": false - }, - { - "name": "EventLevelName", - "displayName": "EventLevelName", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "Event" - ], - "extraction": null, - "common": false - }, - { - "name": "ParameterXml", - "displayName": "ParameterXml", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "Event" - ], - "extraction": null, - "common": false - }, - { - "name": "EventData", - "displayName": "EventData", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "Event" - ], - "extraction": null, - "common": false - }, - { - "name": "EventID", - "displayName": "EventID", - "type": "Int", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "Event" - ], - "extraction": null, - "common": false - }, - { - "name": "RenderedDescription", - "displayName": "RenderedDescription", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "Event" - ], - "extraction": null, - "common": false - }, - { - "name": "IngestionSourcePath", - "displayName": "IngestionSourcePath", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "FailedIngestion", - "SucceededIngestion", - "SynapseDXFailedIngestion", - "SynapseDXSucceededIngestion" - ], - "extraction": null, - "common": false - }, - { - "name": "FailureStatus", - "displayName": "FailureStatus", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "FailedIngestion", - "SynapseDXFailedIngestion" - ], - "extraction": null, - "common": false - }, - { - "name": "OriginatesFromUpdatePolicy", - "displayName": "OriginatesFromUpdatePolicy", - "type": "Bool", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "FailedIngestion", - "SynapseDXFailedIngestion" - ], - "extraction": null, - "common": false - }, - { - "name": "ShouldRetry", - "displayName": "ShouldRetry", - "type": "Bool", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "FailedIngestion", - "SynapseDXFailedIngestion" - ], - "extraction": null, - "common": false - }, - { - "name": "FailedOn", - "displayName": "FailedOn", - "type": "DateTime", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "FailedIngestion", - "SynapseDXFailedIngestion" - ], - "extraction": null, - "common": false - }, - { - "name": "IngestionSourceId", - "displayName": "IngestionSourceId", - "type": "Guid", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "FailedIngestion", - "SucceededIngestion", - "SynapseDXFailedIngestion", - "SynapseDXSucceededIngestion" - ], - "extraction": null, - "common": false - }, - { - "name": "HostVersion", - "displayName": "HostVersion", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "FunctionAppLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "FunctionInvocationId", - "displayName": "FunctionInvocationId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "FunctionAppLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "FunctionName", - "displayName": "FunctionName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "FunctionAppLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "HostInstanceId", - "displayName": "HostInstanceId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "FunctionAppLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ExceptionDetails", - "displayName": "ExceptionDetails", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "FunctionAppLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "MethodName", - "displayName": "MethodName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "ServiceFabricReliableActorEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "ReferenceURI", - "displayName": "ReferenceURI", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightAmbariClusterAlerts" - ], - "extraction": null, - "common": false - }, - { - "name": "ComponentName", - "displayName": "ComponentName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightAmbariClusterAlerts" - ], - "extraction": null, - "common": false - }, - { - "name": "DefinitionId", - "displayName": "DefinitionId", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightAmbariClusterAlerts" - ], - "extraction": null, - "common": false - }, - { - "name": "DefinitionName", - "displayName": "DefinitionName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightAmbariClusterAlerts" - ], - "extraction": null, - "common": false - }, - { - "name": "AlertFirmness", - "displayName": "AlertFirmness", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightAmbariClusterAlerts" - ], - "extraction": null, - "common": false - }, - { - "name": "HostFQDN", - "displayName": "HostFQDN", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightAmbariClusterAlerts" - ], - "extraction": null, - "common": false - }, - { - "name": "AlertID", - "displayName": "AlertID", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightAmbariClusterAlerts" - ], - "extraction": null, - "common": false - }, - { - "name": "AlertInstance", - "displayName": "AlertInstance", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightAmbariClusterAlerts" - ], - "extraction": null, - "common": false - }, - { - "name": "Label", - "displayName": "Label", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightAmbariClusterAlerts", - "SynapseSqlPoolExecRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "LatestTimestamp", - "displayName": "LatestTimestamp", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightAmbariClusterAlerts" - ], - "extraction": null, - "common": false - }, - { - "name": "OriginalTimestamp", - "displayName": "OriginalTimestamp", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightAmbariClusterAlerts" - ], - "extraction": null, - "common": false - }, - { - "name": "MaintenanceState", - "displayName": "MaintenanceState", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightAmbariClusterAlerts" - ], - "extraction": null, - "common": false - }, - { - "name": "Occurences", - "displayName": "Occurences", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightAmbariClusterAlerts" - ], - "extraction": null, - "common": false - }, - { - "name": "RepeatTolerance", - "displayName": "RepeatTolerance", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightAmbariClusterAlerts" - ], - "extraction": null, - "common": false - }, - { - "name": "RepeatToleranceRemaining", - "displayName": "RepeatToleranceRemaining", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightAmbariClusterAlerts" - ], - "extraction": null, - "common": false - }, - { - "name": "Scope", - "displayName": "Scope", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightAmbariClusterAlerts" - ], - "extraction": null, - "common": false - }, - { - "name": "CpuIdle", - "displayName": "CpuIdle", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightAmbariSystemMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "CpuNice", - "displayName": "CpuNice", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightAmbariSystemMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "NumberOfCpu", - "displayName": "NumberOfCpu", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightAmbariSystemMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "CpuSystem", - "displayName": "CpuSystem", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightAmbariSystemMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "CpuUser", - "displayName": "CpuUser", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightAmbariSystemMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "CpuIOWait", - "displayName": "CpuIOWait", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightAmbariSystemMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "DiskFree", - "displayName": "DiskFree", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightAmbariSystemMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "DiskTotal", - "displayName": "DiskTotal", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightAmbariSystemMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "ReadBytes", - "displayName": "ReadBytes", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightAmbariSystemMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "ReadCount", - "displayName": "ReadCount", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightAmbariSystemMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "ReadTime", - "displayName": "ReadTime", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightAmbariSystemMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "WriteBytes", - "displayName": "WriteBytes", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightAmbariSystemMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "WriteCount", - "displayName": "WriteCount", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightAmbariSystemMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "WriteTime", - "displayName": "WriteTime", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightAmbariSystemMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "FifteenMinutLoad", - "displayName": "FifteenMinutLoad", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightAmbariSystemMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "FiveMinuteLoad", - "displayName": "FiveMinuteLoad", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightAmbariSystemMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "OneMinuteLoad", - "displayName": "OneMinuteLoad", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightAmbariSystemMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "CachedMemory", - "displayName": "CachedMemory", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightAmbariSystemMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "FreeMemory", - "displayName": "FreeMemory", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightAmbariSystemMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "SharedMemory", - "displayName": "SharedMemory", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightAmbariSystemMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "TotalMemory", - "displayName": "TotalMemory", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightAmbariSystemMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "FreeSwapMemory", - "displayName": "FreeSwapMemory", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightAmbariSystemMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "BytesIn", - "displayName": "BytesIn", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightAmbariSystemMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "BytesOut", - "displayName": "BytesOut", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightAmbariSystemMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "PacketsIn", - "displayName": "PacketsIn", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightAmbariSystemMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "PacketsOut", - "displayName": "PacketsOut", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightAmbariSystemMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "ProcessesRun", - "displayName": "ProcessesRun", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightAmbariSystemMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "TotalProcesses", - "displayName": "TotalProcesses", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightAmbariSystemMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "ClusterDnsName", - "displayName": "ClusterDnsName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightGatewayAuditLogs", - "HDInsightJupyterNotebookEvents", - "HDInsightSparkApplicationEvents", - "HDInsightSparkBlockManagerEvents", - "HDInsightSparkEnvironmentEvents", - "HDInsightSparkExecutorEvents", - "HDInsightSparkExtraEvents", - "HDInsightSparkJobEvents", - "HDInsightSparkSQLExecutionEvents", - "HDInsightSparkStageEvents", - "HDInsightSparkStageTaskAccumulables", - "HDInsightSparkTaskEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "AccessRequestCount", - "displayName": "AccessRequestCount", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightGatewayAuditLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "LogLevel", - "displayName": "LogLevel", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightHadoopAndYarnLogs", - "HDInsightHBaseLogs", - "HDInsightHiveAndLLAPLogs", - "HDInsightKafkaLogs", - "HDInsightOozieLogs", - "HDInsightSparkLogs", - "HDInsightStormLogs", - "PurviewScanStatusLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "MetricValue", - "displayName": "MetricValue", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightHadoopAndYarnMetrics", - "HDInsightHBaseMetrics", - "HDInsightHiveAndLLAPMetrics", - "HDInsightHiveQueryAppStats", - "HDInsightHiveTezAppStats", - "HDInsightKafkaMetrics", - "HDInsightSparkStageTaskAccumulables", - "HDInsightStormMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "Entity", - "displayName": "Entity", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightHiveQueryAppStats", - "HDInsightSparkStageTaskAccumulables" - ], - "extraction": null, - "common": false - }, - { - "name": "QuerySubmissionTime", - "displayName": "QuerySubmissionTime", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightHiveQueryAppStats" - ], - "extraction": null, - "common": false - }, - { - "name": "QueryCompletionTime", - "displayName": "QueryCompletionTime", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightHiveQueryAppStats" - ], - "extraction": null, - "common": false - }, - { - "name": "RequestUser", - "displayName": "RequestUser", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightHiveQueryAppStats", - "HDInsightRangerAuditLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ExecutionMode", - "displayName": "ExecutionMode", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightHiveQueryAppStats" - ], - "extraction": null, - "common": false - }, - { - "name": "Queue", - "displayName": "Queue", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightHiveQueryAppStats", - "HDInsightHiveTezAppStats" - ], - "extraction": null, - "common": false - }, - { - "name": "TablesRead", - "displayName": "TablesRead", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightHiveQueryAppStats" - ], - "extraction": null, - "common": false - }, - { - "name": "IsTez", - "displayName": "IsTez", - "type": "Bool", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightHiveQueryAppStats" - ], - "extraction": null, - "common": false - }, - { - "name": "IsMapReduce", - "displayName": "IsMapReduce", - "type": "Bool", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightHiveQueryAppStats" - ], - "extraction": null, - "common": false - }, - { - "name": "HiveInstanceType", - "displayName": "HiveInstanceType", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightHiveQueryAppStats" - ], - "extraction": null, - "common": false - }, - { - "name": "FinalStatus", - "displayName": "FinalStatus", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightHiveTezAppStats" - ], - "extraction": null, - "common": false - }, - { - "name": "TrackingUI", - "displayName": "TrackingUI", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightHiveTezAppStats" - ], - "extraction": null, - "common": false - }, - { - "name": "ApplicationType", - "displayName": "ApplicationType", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightHiveTezAppStats" - ], - "extraction": null, - "common": false - }, - { - "name": "ElapsedTime", - "displayName": "ElapsedTime", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightHiveTezAppStats" - ], - "extraction": null, - "common": false - }, - { - "name": "AMContainerLogs", - "displayName": "AMContainerLogs", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightHiveTezAppStats" - ], - "extraction": null, - "common": false - }, - { - "name": "LogAggregationStatus", - "displayName": "LogAggregationStatus", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightHiveTezAppStats" - ], - "extraction": null, - "common": false - }, - { - "name": "UnmanagedApplication", - "displayName": "UnmanagedApplication", - "type": "Bool", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightHiveTezAppStats" - ], - "extraction": null, - "common": false - }, - { - "name": "Dim0", - "displayName": "Dim0", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightJupyterNotebookEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "Dim1", - "displayName": "Dim1", - "type": "DateTime", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightJupyterNotebookEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "Dim2", - "displayName": "Dim2", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightJupyterNotebookEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "Dim3", - "displayName": "Dim3", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightJupyterNotebookEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "Dim4", - "displayName": "Dim4", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightJupyterNotebookEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "Dim5", - "displayName": "Dim5", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightJupyterNotebookEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "Dim6", - "displayName": "Dim6", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightJupyterNotebookEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "Dim7", - "displayName": "Dim7", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightJupyterNotebookEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "Dim8", - "displayName": "Dim8", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightJupyterNotebookEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "Dim9", - "displayName": "Dim9", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightJupyterNotebookEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "Dim10", - "displayName": "Dim10", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightJupyterNotebookEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "ClusterTenantId", - "displayName": "ClusterTenantId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightJupyterNotebookEvents", - "HDInsightSparkApplicationEvents", - "HDInsightSparkBlockManagerEvents", - "HDInsightSparkEnvironmentEvents", - "HDInsightSparkExecutorEvents", - "HDInsightSparkExtraEvents", - "HDInsightSparkJobEvents", - "HDInsightSparkSQLExecutionEvents", - "HDInsightSparkStageEvents", - "HDInsightSparkStageTaskAccumulables", - "HDInsightSparkTaskEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "UserSubscriptionId", - "displayName": "UserSubscriptionId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightJupyterNotebookEvents", - "HDInsightSparkApplicationEvents", - "HDInsightSparkBlockManagerEvents", - "HDInsightSparkEnvironmentEvents", - "HDInsightSparkExecutorEvents", - "HDInsightSparkExtraEvents", - "HDInsightSparkJobEvents", - "HDInsightSparkSQLExecutionEvents", - "HDInsightSparkStageEvents", - "HDInsightSparkStageTaskAccumulables", - "HDInsightSparkTaskEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "MetricDataType", - "displayName": "MetricDataType", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightKafkaMetrics", - "HDInsightStormMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "RepoType", - "displayName": "RepoType", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightRangerAuditLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "Repo", - "displayName": "Repo", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightRangerAuditLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "AccessName", - "displayName": "AccessName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightRangerAuditLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ClusterResource", - "displayName": "ClusterResource", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightRangerAuditLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ClusterResourceType", - "displayName": "ClusterResourceType", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightRangerAuditLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "Enforcer", - "displayName": "Enforcer", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightRangerAuditLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "RequestData", - "displayName": "RequestData", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightRangerAuditLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "CliType", - "displayName": "CliType", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightRangerAuditLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "CliIpAddress", - "displayName": "CliIpAddress", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightRangerAuditLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "SequenceNumber", - "displayName": "SequenceNumber", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightRangerAuditLogs", - "SQLSecurityAuditEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "EventDurationMs", - "displayName": "EventDurationMs", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightRangerAuditLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "SparkUser", - "displayName": "SparkUser", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightSparkApplicationEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "AppAttemptId", - "displayName": "AppAttemptId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightSparkApplicationEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "SubmissionTime", - "displayName": "SubmissionTime", - "type": "DateTime", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightSparkApplicationEvents", - "HDInsightSparkJobEvents", - "HDInsightSparkStageEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "CompletionTime", - "displayName": "CompletionTime", - "type": "DateTime", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightSparkApplicationEvents", - "HDInsightSparkJobEvents", - "HDInsightSparkStageEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "ExecutorId", - "displayName": "ExecutorId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightSparkBlockManagerEvents", - "HDInsightSparkExecutorEvents", - "HDInsightSparkTaskEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "AddedTime", - "displayName": "AddedTime", - "type": "DateTime", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightSparkBlockManagerEvents", - "HDInsightSparkExecutorEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "RemovedTime", - "displayName": "RemovedTime", - "type": "DateTime", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightSparkBlockManagerEvents", - "HDInsightSparkExecutorEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "MaxOnHeapMemory", - "displayName": "MaxOnHeapMemory", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightSparkBlockManagerEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "MaxOffHeapMemory", - "displayName": "MaxOffHeapMemory", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightSparkBlockManagerEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "BlockHost", - "displayName": "BlockHost", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightSparkBlockManagerEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "BlockManagerHost", - "displayName": "BlockManagerHost", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightSparkBlockManagerEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "SparkDeployMode", - "displayName": "SparkDeployMode", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightSparkEnvironmentEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "SparkMaster", - "displayName": "SparkMaster", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightSparkEnvironmentEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "YarnMaxAttempts", - "displayName": "YarnMaxAttempts", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightSparkEnvironmentEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "SparkExecutorInstances", - "displayName": "SparkExecutorInstances", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightSparkEnvironmentEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "SparkExecutorMemory", - "displayName": "SparkExecutorMemory", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightSparkEnvironmentEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "SparkExecutorCores", - "displayName": "SparkExecutorCores", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightSparkEnvironmentEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "YarnTags", - "displayName": "YarnTags", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightSparkEnvironmentEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "YarnQueue", - "displayName": "YarnQueue", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightSparkEnvironmentEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "ExecutorCores", - "displayName": "ExecutorCores", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightSparkExecutorEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "RemovedReason", - "displayName": "RemovedReason", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightSparkExecutorEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "ExecutorHost", - "displayName": "ExecutorHost", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightSparkExecutorEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "EventJson", - "displayName": "EventJson", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightSparkExtraEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "JobResult", - "displayName": "JobResult", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightSparkJobEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "StageIds", - "displayName": "StageIds", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightSparkJobEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "PhysicalPlanDescription", - "displayName": "PhysicalPlanDescription", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightSparkSQLExecutionEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "SparkPlanInfo", - "displayName": "SparkPlanInfo", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightSparkSQLExecutionEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "StageId", - "displayName": "StageId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightSparkStageEvents", - "HDInsightSparkTaskEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "StageName", - "displayName": "StageName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightSparkStageEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "AttemptId", - "displayName": "AttemptId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightSparkStageEvents", - "HDInsightSparkTaskEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "TaskCount", - "displayName": "TaskCount", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightSparkStageEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "RDDInfo", - "displayName": "RDDInfo", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightSparkStageEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "MetricId", - "displayName": "MetricId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightSparkStageTaskAccumulables" - ], - "extraction": null, - "common": false - }, - { - "name": "LaunchTime", - "displayName": "LaunchTime", - "type": "DateTime", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightSparkTaskEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "FinishTime", - "displayName": "FinishTime", - "type": "DateTime", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightSparkTaskEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "Killed", - "displayName": "Killed", - "type": "Bool", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightSparkTaskEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "EndReason", - "displayName": "EndReason", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightSparkTaskEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "TaskType", - "displayName": "TaskType", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightSparkTaskEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "DiskBytesSpilled", - "displayName": "DiskBytesSpilled", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightSparkTaskEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "ExecutorCPUTime", - "displayName": "ExecutorCPUTime", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightSparkTaskEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "ExecutorDeserializeCPUTime", - "displayName": "ExecutorDeserializeCPUTime", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightSparkTaskEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "ExecutorDeserializeTime", - "displayName": "ExecutorDeserializeTime", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightSparkTaskEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "ExecutorRunTime", - "displayName": "ExecutorRunTime", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightSparkTaskEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "JvmGcTime", - "displayName": "JvmGcTime", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightSparkTaskEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "MemoryBytesSpilled", - "displayName": "MemoryBytesSpilled", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightSparkTaskEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "ResultSerializationTime", - "displayName": "ResultSerializationTime", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightSparkTaskEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "ResultSize", - "displayName": "ResultSize", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightSparkTaskEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "ShuffleReadMetrics", - "displayName": "ShuffleReadMetrics", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightSparkTaskEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "ShuffleWriteMetrics", - "displayName": "ShuffleWriteMetrics", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightSparkTaskEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "InputMetrics", - "displayName": "InputMetrics", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightSparkTaskEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "OutputMetrics", - "displayName": "OutputMetrics", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightSparkTaskEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "UpdatedBlocks", - "displayName": "UpdatedBlocks", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightSparkTaskEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "PeakExecutionMemory", - "displayName": "PeakExecutionMemory", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightSparkTaskEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "SchedulerDelay", - "displayName": "SchedulerDelay", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightSparkTaskEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "RecordsRead", - "displayName": "RecordsRead", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightSparkTaskEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "BytesRead", - "displayName": "BytesRead", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightSparkTaskEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "RecordsWritten", - "displayName": "RecordsWritten", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightSparkTaskEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "BytesWritten", - "displayName": "BytesWritten", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightSparkTaskEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "ShuffleFetchWaitTime", - "displayName": "ShuffleFetchWaitTime", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightSparkTaskEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "ShuffleTotalBytesRead", - "displayName": "ShuffleTotalBytesRead", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightSparkTaskEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "ShuffleTotalBlocksFetched", - "displayName": "ShuffleTotalBlocksFetched", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightSparkTaskEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "ShuffleLocalBlocksFetched", - "displayName": "ShuffleLocalBlocksFetched", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightSparkTaskEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "ShuffleRemoteBlocksFetched", - "displayName": "ShuffleRemoteBlocksFetched", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightSparkTaskEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "ShuffleWriteTime", - "displayName": "ShuffleWriteTime", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightSparkTaskEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "ShuffleBytesWritten", - "displayName": "ShuffleBytesWritten", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightSparkTaskEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "ShuffleRecordsWritten", - "displayName": "ShuffleRecordsWritten", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightSparkTaskEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "NumUpdatedBlockStatuses", - "displayName": "NumUpdatedBlockStatuses", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightSparkTaskEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "Acked", - "displayName": "Acked", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightStormTopologyMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "AssignedCPUPercent", - "displayName": "AssignedCPUPercent", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightStormTopologyMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "AssignedMemOffHeapMB", - "displayName": "AssignedMemOffHeapMB", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightStormTopologyMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "AssignedMemOnHeapMB", - "displayName": "AssignedMemOnHeapMB", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightStormTopologyMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "AssignedTotalMemMB", - "displayName": "AssignedTotalMemMB", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightStormTopologyMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "BoltId", - "displayName": "BoltId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightStormTopologyMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "Capacity", - "displayName": "Capacity", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightStormTopologyMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "CompleteLatencyMs", - "displayName": "CompleteLatencyMs", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightStormTopologyMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "Debug", - "displayName": "Debug", - "type": "Bool", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightStormTopologyMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "Emitted", - "displayName": "Emitted", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightStormTopologyMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "EncodedBoltId", - "displayName": "EncodedBoltId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightStormTopologyMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "EncodedId", - "displayName": "EncodedId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightStormTopologyMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "EncodedSpoutId", - "displayName": "EncodedSpoutId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightStormTopologyMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "ErrorHost", - "displayName": "ErrorHost", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightStormTopologyMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "ErrorPort", - "displayName": "ErrorPort", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightStormTopologyMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "ErrorWorkerLogLink", - "displayName": "ErrorWorkerLogLink", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightStormTopologyMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "Executed", - "displayName": "Executed", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightStormTopologyMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "ExecuteLatencyMs", - "displayName": "ExecuteLatencyMs", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightStormTopologyMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "Executors", - "displayName": "Executors", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightStormTopologyMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "ExecutorsTotal", - "displayName": "ExecutorsTotal", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightStormTopologyMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "LastError", - "displayName": "LastError", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightStormTopologyMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "MsgTimeout", - "displayName": "MsgTimeout", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightStormTopologyMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "TopologyName", - "displayName": "TopologyName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightStormTopologyMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "Owner", - "displayName": "Owner", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightStormTopologyMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "ProcessLatencyMs", - "displayName": "ProcessLatencyMs", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightStormTopologyMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "ReplicationCount", - "displayName": "ReplicationCount", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightStormTopologyMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "RequestedCpuPercent", - "displayName": "RequestedCpuPercent", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightStormTopologyMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "RequestMemOffHeapMB", - "displayName": "RequestMemOffHeapMB", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightStormTopologyMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "RequestMemOnHeapMB", - "displayName": "RequestMemOnHeapMB", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightStormTopologyMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "SamplingPct", - "displayName": "SamplingPct", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightStormTopologyMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "SchedulerDisplayResource", - "displayName": "SchedulerDisplayResource", - "type": "Bool", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightStormTopologyMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "SpoutId", - "displayName": "SpoutId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightStormTopologyMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "Tasks", - "displayName": "Tasks", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightStormTopologyMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "TasksTotal", - "displayName": "TasksTotal", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightStormTopologyMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "TopologyId", - "displayName": "TopologyId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightStormTopologyMetrics", - "NWConnectionMonitorPathResult" - ], - "extraction": null, - "common": false - }, - { - "name": "Transferred", - "displayName": "Transferred", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightStormTopologyMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "Uptime", - "displayName": "Uptime", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightStormTopologyMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "UptimeSeconds", - "displayName": "UptimeSeconds", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightStormTopologyMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "Window", - "displayName": "Window", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightStormTopologyMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "WindowHint", - "displayName": "WindowHint", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightStormTopologyMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "WindowPretty", - "displayName": "WindowPretty", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightStormTopologyMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "Workers", - "displayName": "Workers", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightStormTopologyMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "WorkersTotal", - "displayName": "WorkersTotal", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "HDInsightStormTopologyMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "ComputerIP", - "displayName": "ComputerIP", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "Heartbeat" - ], - "extraction": null, - "common": false - }, - { - "name": "OSType", - "displayName": "OSType", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "Heartbeat" - ], - "extraction": null, - "common": false - }, - { - "name": "OSName", - "displayName": "OSName", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "Heartbeat" - ], - "extraction": null, - "common": false - }, - { - "name": "OSMajorVersion", - "displayName": "OSMajorVersion", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "Heartbeat" - ], - "extraction": null, - "common": false - }, - { - "name": "OSMinorVersion", - "displayName": "OSMinorVersion", - "type": "String", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "Heartbeat" - ], - "extraction": null, - "common": false - }, - { - "name": "SCAgentChannel", - "displayName": "SCAgentChannel", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "Heartbeat" - ], - "extraction": null, - "common": false - }, - { - "name": "IsGatewayInstalled", - "displayName": "IsGatewayInstalled", - "type": "Bool", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "Heartbeat" - ], - "extraction": null, - "common": false - }, - { - "name": "ComputerEnvironment", - "displayName": "ComputerEnvironment", - "type": "String", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "Heartbeat" - ], - "extraction": null, - "common": false - }, - { - "name": "Solutions", - "displayName": "Solutions", - "type": "String", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "Heartbeat" - ], - "extraction": null, - "common": false - }, - { - "name": "ComputerPrivateIPs", - "displayName": "ComputerPrivateIPs", - "type": "Dynamic", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "Heartbeat" - ], - "extraction": null, - "common": false - }, - { - "name": "EventTime", - "displayName": "EventTime", - "type": "DateTime", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "SQLSecurityAuditEvents", - "Syslog" - ], - "extraction": null, - "common": false - }, - { - "name": "Port", - "displayName": "Port", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "VMBoundPort" - ], - "extraction": null, - "common": false - }, - { - "name": "Namespace", - "displayName": "Namespace", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "InsightsMetrics", - "KubeEvents", - "KubePodInventory", - "KubeServices", - "OEPElasticOperator", - "OEPElasticsearch" - ], - "extraction": null, - "common": false - }, - { - "name": "Val", - "displayName": "Val", - "type": "Double", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "InsightsMetrics" - ], - "extraction": null, - "common": false - }, - { - "name": "UPN", - "displayName": "UPN", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "IntuneDeviceComplianceOrg", - "IntuneDevices" - ], - "extraction": null, - "common": false - }, - { - "name": "ComplianceState", - "displayName": "ComplianceState", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "IntuneDeviceComplianceOrg" - ], - "extraction": null, - "common": false - }, - { - "name": "OSDescription", - "displayName": "OSDescription", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "IntuneDeviceComplianceOrg" - ], - "extraction": null, - "common": false - }, - { - "name": "OwnerType", - "displayName": "OwnerType", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "IntuneDeviceComplianceOrg" - ], - "extraction": null, - "common": false - }, - { - "name": "LastContact", - "displayName": "LastContact", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "IntuneDeviceComplianceOrg", - "IntuneDevices" - ], - "extraction": null, - "common": false - }, - { - "name": "IMEI", - "displayName": "IMEI", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "IntuneDeviceComplianceOrg", - "IntuneDevices" - ], - "extraction": null, - "common": false - }, - { - "name": "RetireAfterDatetime", - "displayName": "RetireAfterDatetime", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "IntuneDeviceComplianceOrg" - ], - "extraction": null, - "common": false - }, - { - "name": "ManagementAgents", - "displayName": "ManagementAgents", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "IntuneDeviceComplianceOrg" - ], - "extraction": null, - "common": false - }, - { - "name": "InGracePeriodUntil", - "displayName": "InGracePeriodUntil", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "IntuneDeviceComplianceOrg", - "IntuneDevices" - ], - "extraction": null, - "common": false - }, - { - "name": "DeviceHealthThreatLevel", - "displayName": "DeviceHealthThreatLevel", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "IntuneDeviceComplianceOrg" - ], - "extraction": null, - "common": false - }, - { - "name": "UserEmail", - "displayName": "UserEmail", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "IntuneDeviceComplianceOrg", - "IntuneDevices", - "MicrosoftAzureBastionAuditLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "IntuneAccountId", - "displayName": "IntuneAccountId", - "type": "Guid", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "IntuneDeviceComplianceOrg", - "IntuneDevices" - ], - "extraction": null, - "common": false - }, - { - "name": "Stats", - "displayName": "Stats", - "type": "Dynamic", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "IntuneDeviceComplianceOrg", - "IntuneDevices" - ], - "extraction": null, - "common": false - }, - { - "name": "CompliantState", - "displayName": "CompliantState", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "IntuneDevices" - ], - "extraction": null, - "common": false - }, - { - "name": "Ownership", - "displayName": "Ownership", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "IntuneDevices" - ], - "extraction": null, - "common": false - }, - { - "name": "ManagedBy", - "displayName": "ManagedBy", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "IntuneDevices" - ], - "extraction": null, - "common": false - }, - { - "name": "CreatedDate", - "displayName": "CreatedDate", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "IntuneDevices" - ], - "extraction": null, - "common": false - }, - { - "name": "DeviceState", - "displayName": "DeviceState", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "IntuneDevices" - ], - "extraction": null, - "common": false - }, - { - "name": "DeviceRegistrationState", - "displayName": "DeviceRegistrationState", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "IntuneDevices" - ], - "extraction": null, - "common": false - }, - { - "name": "ReferenceId", - "displayName": "ReferenceId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "IntuneDevices" - ], - "extraction": null, - "common": false - }, - { - "name": "ManagedDeviceName", - "displayName": "ManagedDeviceName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "IntuneDevices" - ], - "extraction": null, - "common": false - }, - { - "name": "GraphDeviceIsManaged", - "displayName": "GraphDeviceIsManaged", - "type": "Bool", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "IntuneDevices" - ], - "extraction": null, - "common": false - }, - { - "name": "CategoryName", - "displayName": "CategoryName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "IntuneDevices" - ], - "extraction": null, - "common": false - }, - { - "name": "EncryptionStatusString", - "displayName": "EncryptionStatusString", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "IntuneDevices" - ], - "extraction": null, - "common": false - }, - { - "name": "SubscriberCarrierNetwork", - "displayName": "SubscriberCarrierNetwork", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "IntuneDevices" - ], - "extraction": null, - "common": false - }, - { - "name": "JoinType", - "displayName": "JoinType", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "IntuneDevices" - ], - "extraction": null, - "common": false - }, - { - "name": "SupervisedStatusString", - "displayName": "SupervisedStatusString", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "IntuneDevices" - ], - "extraction": null, - "common": false - }, - { - "name": "WifiMacAddress", - "displayName": "WifiMacAddress", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "IntuneDevices" - ], - "extraction": null, - "common": false - }, - { - "name": "StorageTotal", - "displayName": "StorageTotal", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "IntuneDevices" - ], - "extraction": null, - "common": false - }, - { - "name": "StorageFree", - "displayName": "StorageFree", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "IntuneDevices" - ], - "extraction": null, - "common": false - }, - { - "name": "AndroidPatchLevel", - "displayName": "AndroidPatchLevel", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "IntuneDevices" - ], - "extraction": null, - "common": false - }, - { - "name": "MEID", - "displayName": "MEID", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "IntuneDevices" - ], - "extraction": null, - "common": false - }, - { - "name": "JailBroken", - "displayName": "JailBroken", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "IntuneDevices" - ], - "extraction": null, - "common": false - }, - { - "name": "SkuFamily", - "displayName": "SkuFamily", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "IntuneDevices" - ], - "extraction": null, - "common": false - }, - { - "name": "EasID", - "displayName": "EasID", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "IntuneDevices" - ], - "extraction": null, - "common": false - }, - { - "name": "PrimaryUser", - "displayName": "PrimaryUser", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "IntuneDevices" - ], - "extraction": null, - "common": false - }, - { - "name": "EventKind", - "displayName": "EventKind", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "IoTHubDistributedTracing" - ], - "extraction": null, - "common": false - }, - { - "name": "ResourceSubName", - "displayName": "ResourceSubName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "IoTHubDistributedTracing" - ], - "extraction": null, - "common": false - }, - { - "name": "MessageSize", - "displayName": "MessageSize", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "IoTHubDistributedTracing" - ], - "extraction": null, - "common": false - }, - { - "name": "CallerLocalTimeUtc", - "displayName": "CallerLocalTimeUtc", - "type": "DateTime", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "IoTHubDistributedTracing" - ], - "extraction": null, - "common": false - }, - { - "name": "IsRoutingEnabled", - "displayName": "IsRoutingEnabled", - "type": "Bool", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "IoTHubDistributedTracing" - ], - "extraction": null, - "common": false - }, - { - "name": "ObjectKind", - "displayName": "ObjectKind", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "KubeEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "KubeEventType", - "displayName": "KubeEventType", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "KubeEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "SourceComponent", - "displayName": "SourceComponent", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "KubeEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "FirstSeen", - "displayName": "FirstSeen", - "type": "DateTime", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "KubeEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "LastSeen", - "displayName": "LastSeen", - "type": "DateTime", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "KubeEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "MonitorTypeId", - "displayName": "MonitorTypeId", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "KubeHealth" - ], - "extraction": null, - "common": false - }, - { - "name": "MonitorInstanceId", - "displayName": "MonitorInstanceId", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "KubeHealth" - ], - "extraction": null, - "common": false - }, - { - "name": "ParentMonitorInstanceId", - "displayName": "ParentMonitorInstanceId", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "KubeHealth" - ], - "extraction": null, - "common": false - }, - { - "name": "OldState", - "displayName": "OldState", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "KubeHealth" - ], - "extraction": null, - "common": false - }, - { - "name": "NewState", - "displayName": "NewState", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "KubeHealth" - ], - "extraction": null, - "common": false - }, - { - "name": "TimeFirstObserved", - "displayName": "TimeFirstObserved", - "type": "DateTime", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "KubeHealth" - ], - "extraction": null, - "common": false - }, - { - "name": "MonitorLabels", - "displayName": "MonitorLabels", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "KubeHealth" - ], - "extraction": null, - "common": false - }, - { - "name": "MonitorConfig", - "displayName": "MonitorConfig", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "KubeHealth" - ], - "extraction": null, - "common": false - }, - { - "name": "LastTransitionTimeReady", - "displayName": "LastTransitionTimeReady", - "type": "DateTime", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "KubeNodeInventory" - ], - "extraction": null, - "common": false - }, - { - "name": "Labels", - "displayName": "Labels", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "KubeNodeInventory" - ], - "extraction": null, - "common": false - }, - { - "name": "KubeletVersion", - "displayName": "KubeletVersion", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "KubeNodeInventory" - ], - "extraction": null, - "common": false - }, - { - "name": "KubeProxyVersion", - "displayName": "KubeProxyVersion", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "KubeNodeInventory" - ], - "extraction": null, - "common": false - }, - { - "name": "CreationTimeStamp", - "displayName": "CreationTimeStamp", - "type": "DateTime", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "KubeNodeInventory" - ], - "extraction": null, - "common": false - }, - { - "name": "KubernetesProviderID", - "displayName": "KubernetesProviderID", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "KubeNodeInventory" - ], - "extraction": null, - "common": false - }, - { - "name": "ContainerCreationTimeStamp", - "displayName": "ContainerCreationTimeStamp", - "type": "DateTime", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "KubePodInventory" - ], - "extraction": null, - "common": false - }, - { - "name": "PodUid", - "displayName": "PodUid", - "type": "Guid", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "KubePodInventory" - ], - "extraction": null, - "common": false - }, - { - "name": "PodCreationTimeStamp", - "displayName": "PodCreationTimeStamp", - "type": "DateTime", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "KubePodInventory" - ], - "extraction": null, - "common": false - }, - { - "name": "ContainerRestartCount", - "displayName": "ContainerRestartCount", - "type": "Int", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "KubePodInventory" - ], - "extraction": null, - "common": false - }, - { - "name": "PodRestartCount", - "displayName": "PodRestartCount", - "type": "Int", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "KubePodInventory" - ], - "extraction": null, - "common": false - }, - { - "name": "PodStartTime", - "displayName": "PodStartTime", - "type": "DateTime", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "KubePodInventory" - ], - "extraction": null, - "common": false - }, - { - "name": "ContainerStartTime", - "displayName": "ContainerStartTime", - "type": "DateTime", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "KubePodInventory" - ], - "extraction": null, - "common": false - }, - { - "name": "ControllerKind", - "displayName": "ControllerKind", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "KubePodInventory" - ], - "extraction": null, - "common": false - }, - { - "name": "ControllerName", - "displayName": "ControllerName", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "KubePodInventory" - ], - "extraction": null, - "common": false - }, - { - "name": "ContainerStatus", - "displayName": "ContainerStatus", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "KubePodInventory" - ], - "extraction": null, - "common": false - }, - { - "name": "PodLabel", - "displayName": "PodLabel", - "type": "String", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "KubePodInventory" - ], - "extraction": null, - "common": false - }, - { - "name": "PodStatus", - "displayName": "PodStatus", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "KubePodInventory" - ], - "extraction": null, - "common": false - }, - { - "name": "PodIp", - "displayName": "PodIp", - "type": "String", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "KubePodInventory" - ], - "extraction": null, - "common": false - }, - { - "name": "ContainerStatusReason", - "displayName": "ContainerStatusReason", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "KubePodInventory" - ], - "extraction": null, - "common": false - }, - { - "name": "ContainerLastStatus", - "displayName": "ContainerLastStatus", - "type": "String", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "KubePodInventory" - ], - "extraction": null, - "common": false - }, - { - "name": "ClusterIp", - "displayName": "ClusterIp", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "KubeServices" - ], - "extraction": null, - "common": false - }, - { - "name": "SelectorLabels", - "displayName": "SelectorLabels", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "KubeServices" - ], - "extraction": null, - "common": false - }, - { - "name": "ServiceType", - "displayName": "ServiceType", - "type": "String", - "indexed": false, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "KubeServices", - "StorageBlobLogs", - "StorageFileLogs", - "StorageQueueLogs", - "StorageTableLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "AADObjectId", - "displayName": "AADObjectId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "LAQueryLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "AADEmail", - "displayName": "AADEmail", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "LAQueryLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "AADClientId", - "displayName": "AADClientId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "LAQueryLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "QueryTimeRangeStart", - "displayName": "QueryTimeRangeStart", - "type": "DateTime", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "LAQueryLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "QueryTimeRangeEnd", - "displayName": "QueryTimeRangeEnd", - "type": "DateTime", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "LAQueryLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "RequestClientApp", - "displayName": "RequestClientApp", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "LAQueryLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "RequestTarget", - "displayName": "RequestTarget", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "LAQueryLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "RequestContextFilters", - "displayName": "RequestContextFilters", - "type": "Dynamic", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "LAQueryLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ResponseRowCount", - "displayName": "ResponseRowCount", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "LAQueryLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "StatsCPUTimeMs", - "displayName": "StatsCPUTimeMs", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "LAQueryLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "StatsDataProcessedKB", - "displayName": "StatsDataProcessedKB", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "LAQueryLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "StatsDataProcessedStart", - "displayName": "StatsDataProcessedStart", - "type": "DateTime", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "LAQueryLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "StatsDataProcessedEnd", - "displayName": "StatsDataProcessedEnd", - "type": "DateTime", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "LAQueryLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "StatsWorkspaceCount", - "displayName": "StatsWorkspaceCount", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "LAQueryLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "StatsRegionCount", - "displayName": "StatsRegionCount", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "LAQueryLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "IsBillableQuery", - "displayName": "IsBillableQuery", - "type": "Bool", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "LAQueryLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ScannedGB", - "displayName": "ScannedGB", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "LAQueryLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "TestResult", - "displayName": "TestResult", - "type": "String", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "NWConnectionMonitorDNSResult", - "NWConnectionMonitorTestResult" - ], - "extraction": null, - "common": false - }, - { - "name": "ErrorDescription", - "displayName": "ErrorDescription", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "VIIndexing" - ], - "extraction": null, - "common": false - }, - { - "name": "HitRatio", - "displayName": "HitRatio", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": true, - "ownerType": [ - "MCCEventLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "HitRatioMbps", - "displayName": "HitRatioMbps", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "MCCEventLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "CacheNodeId", - "displayName": "CacheNodeId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "MCCEventLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "MissMbps", - "displayName": "MissMbps", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "MCCEventLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "HitMbps", - "displayName": "HitMbps", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "MCCEventLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "Hits", - "displayName": "Hits", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "MCCEventLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "Misses", - "displayName": "Misses", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "MCCEventLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "EgressMbps", - "displayName": "EgressMbps", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "MCCEventLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "OperationCategories", - "displayName": "OperationCategories", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "MCVPAuditLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "OperationCategoryDescription", - "displayName": "OperationCategoryDescription", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "MCVPAuditLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "OperationResultDescription", - "displayName": "OperationResultDescription", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "MCVPAuditLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "OperationAccessLevel", - "displayName": "OperationAccessLevel", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "MCVPAuditLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "CallerIdentities", - "displayName": "CallerIdentities", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "MCVPAuditLogs", - "PurviewSecurityLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "CallerAccessLevels", - "displayName": "CallerAccessLevels", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "MCVPAuditLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "VehicleId", - "displayName": "VehicleId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "MCVPOperationLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "SeverityText", - "displayName": "SeverityText", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "MCVPOperationLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "Time", - "displayName": "Time", - "type": "DateTime", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "MicrosoftAzureBastionAuditLogs", - "W3CIISLog" - ], - "extraction": null, - "common": false - }, - { - "name": "TargetVMIPAddress", - "displayName": "TargetVMIPAddress", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "MicrosoftAzureBastionAuditLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "TunnelId", - "displayName": "TunnelId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "MicrosoftAzureBastionAuditLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "SessionStartTime", - "displayName": "SessionStartTime", - "type": "DateTime", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "MicrosoftAzureBastionAuditLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "SessionEndTime", - "displayName": "SessionEndTime", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "MicrosoftAzureBastionAuditLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "DetailMessage", - "displayName": "DetailMessage", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "MicrosoftDataShareReceivedSnapshotLog", - "MicrosoftDataShareSentSnapshotLog" - ], - "extraction": null, - "common": false - }, - { - "name": "DataSetMappingType", - "displayName": "DataSetMappingType", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "MicrosoftDataShareReceivedSnapshotLog", - "MicrosoftDataShareSentSnapshotLog" - ], - "extraction": null, - "common": false - }, - { - "name": "DataSetType", - "displayName": "DataSetType", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "MicrosoftDataShareReceivedSnapshotLog", - "MicrosoftDataShareSentSnapshotLog" - ], - "extraction": null, - "common": false - }, - { - "name": "DataSetName", - "displayName": "DataSetName", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "MicrosoftDataShareReceivedSnapshotLog", - "MicrosoftDataShareSentSnapshotLog" - ], - "extraction": null, - "common": false - }, - { - "name": "FilesWritten", - "displayName": "FilesWritten", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "MicrosoftDataShareReceivedSnapshotLog", - "MicrosoftDataShareSentSnapshotLog" - ], - "extraction": null, - "common": false - }, - { - "name": "FilesRead", - "displayName": "FilesRead", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "MicrosoftDataShareReceivedSnapshotLog", - "MicrosoftDataShareSentSnapshotLog" - ], - "extraction": null, - "common": false - }, - { - "name": "SizeWritten", - "displayName": "SizeWritten", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "MicrosoftDataShareReceivedSnapshotLog", - "MicrosoftDataShareSentSnapshotLog" - ], - "extraction": null, - "common": false - }, - { - "name": "SizeRead", - "displayName": "SizeRead", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "MicrosoftDataShareReceivedSnapshotLog", - "MicrosoftDataShareSentSnapshotLog" - ], - "extraction": null, - "common": false - }, - { - "name": "EnvironmentId", - "displayName": "EnvironmentId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "MicrosoftDynamicsTelemetryPerformanceLogs", - "MicrosoftDynamicsTelemetrySystemMetricsLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "SqlCpu", - "displayName": "SqlCpu", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "MicrosoftDynamicsTelemetryPerformanceLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ExecutionStatus", - "displayName": "ExecutionStatus", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "MicrosoftDynamicsTelemetryPerformanceLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ExecutionResultRowCount", - "displayName": "ExecutionResultRowCount", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "MicrosoftDynamicsTelemetryPerformanceLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ExecutionTimeSeconds", - "displayName": "ExecutionTimeSeconds", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "MicrosoftDynamicsTelemetryPerformanceLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "SqlStatement", - "displayName": "SqlStatement", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "MicrosoftDynamicsTelemetryPerformanceLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "CallStack", - "displayName": "CallStack", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "MicrosoftDynamicsTelemetryPerformanceLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ConnectionType", - "displayName": "ConnectionType", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "MicrosoftDynamicsTelemetryPerformanceLogs", - "SignalRServiceDiagnosticLogs", - "WVDConnections" - ], - "extraction": null, - "common": false - }, - { - "name": "SqlSpid", - "displayName": "SqlSpid", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "MicrosoftDynamicsTelemetryPerformanceLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ClassName", - "displayName": "ClassName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "MicrosoftDynamicsTelemetryPerformanceLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "LegalEntity", - "displayName": "LegalEntity", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "MicrosoftDynamicsTelemetryPerformanceLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "BatchJobId", - "displayName": "BatchJobId", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "MicrosoftDynamicsTelemetryPerformanceLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "BatchJobTaskId", - "displayName": "BatchJobTaskId", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "MicrosoftDynamicsTelemetryPerformanceLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "DurationInMilliSeconds", - "displayName": "DurationInMilliSeconds", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "MicrosoftDynamicsTelemetryPerformanceLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "Environment", - "displayName": "Environment", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "MicrosoftDynamicsTelemetryPerformanceLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "FormName", - "displayName": "formName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "MicrosoftDynamicsTelemetryPerformanceLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "IsValid", - "displayName": "IsValid", - "type": "Bool", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "MicrosoftDynamicsTelemetryPerformanceLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "IsWarmEvent", - "displayName": "IsWarmEvent", - "type": "Bool", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "MicrosoftDynamicsTelemetryPerformanceLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "CountOfUpdate", - "displayName": "CountOfUpdate", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "MicrosoftDynamicsTelemetryPerformanceLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "CountOfDelete", - "displayName": "CountOfDelete", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "MicrosoftDynamicsTelemetryPerformanceLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "CountOfInsert", - "displayName": "CountOfInsert", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "MicrosoftDynamicsTelemetryPerformanceLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "CountOfSelect", - "displayName": "CountOfSelect", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "MicrosoftDynamicsTelemetryPerformanceLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "CountOfDdl", - "displayName": "CountOfDdl", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "MicrosoftDynamicsTelemetryPerformanceLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "CountOfProc", - "displayName": "CountOfProc", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "MicrosoftDynamicsTelemetryPerformanceLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "CountOfOther", - "displayName": "CountOfOther", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "MicrosoftDynamicsTelemetryPerformanceLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "TransactionDurationSeconds", - "displayName": "TransactionDurationSeconds", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "MicrosoftDynamicsTelemetryPerformanceLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "FhirResourceType", - "displayName": "FhirResourceType", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "MicrosoftHealthcareApisAuditLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "OperationDurationMs", - "displayName": "OperationDuration", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "MicrosoftHealthcareApisAuditLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "LogCategory", - "displayName": "LogCategory", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "MicrosoftHealthcareApisAuditLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "CallerIdentityIssuer", - "displayName": "CallerIdentityIssuer", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "MicrosoftHealthcareApisAuditLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "CallerIdentityObjectId", - "displayName": "CallerIdentityObjectId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "MicrosoftHealthcareApisAuditLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "DstAppName", - "displayName": "DstAppName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "NetworkAccessTraffic" - ], - "extraction": null, - "common": false - }, - { - "name": "DstAppId", - "displayName": "DstAppId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "NetworkAccessTraffic" - ], - "extraction": null, - "common": false - }, - { - "name": "DstAppType", - "displayName": "DstAppType", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "NetworkAccessTraffic" - ], - "extraction": null, - "common": false - }, - { - "name": "NetworkApplicationProtocol", - "displayName": "NetworkApplicationProtocol", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "NetworkAccessTraffic" - ], - "extraction": null, - "common": false - }, - { - "name": "NetworkDirection", - "displayName": "NetworkDirection", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "NetworkAccessTraffic" - ], - "extraction": null, - "common": false - }, - { - "name": "DstBytes", - "displayName": "DstBytes", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "NetworkAccessTraffic" - ], - "extraction": null, - "common": false - }, - { - "name": "SrcBytes", - "displayName": "SrcBytes", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "NetworkAccessTraffic" - ], - "extraction": null, - "common": false - }, - { - "name": "SSLDecrypted", - "displayName": "SSLDecrypted", - "type": "Bool", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "NetworkAccessTraffic" - ], - "extraction": null, - "common": false - }, - { - "name": "HttpRequestMethod", - "displayName": "HttpRequestMethod", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "NetworkAccessTraffic" - ], - "extraction": null, - "common": false - }, - { - "name": "FileSHA256", - "displayName": "FileSHA256", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "NetworkAccessTraffic" - ], - "extraction": null, - "common": false - }, - { - "name": "FileContentType", - "displayName": "FileContentType", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "NetworkAccessTraffic" - ], - "extraction": null, - "common": false - }, - { - "name": "ConnectionMonitorResourceId", - "displayName": "ConnectionMonitorResourceId", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "NWConnectionMonitorDestinationListenerResult", - "NWConnectionMonitorDNSResult", - "NWConnectionMonitorPathResult", - "NWConnectionMonitorTestResult" - ], - "extraction": null, - "common": false - }, - { - "name": "FileExtension", - "displayName": "FileExtension", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "PurviewDataSensitivityLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ServiceResourceId", - "displayName": "ServiceResourceId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "NSPAccessLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "MatchedRule", - "displayName": "MatchedRule", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "NSPAccessLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "SourceResourceId", - "displayName": "SourceResourceId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "NSPAccessLogs", - "NWConnectionMonitorDNSResult", - "NWConnectionMonitorPathResult", - "NWConnectionMonitorTestResult" - ], - "extraction": null, - "common": false - }, - { - "name": "SourceProtocol", - "displayName": "SourceProtocol", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "NSPAccessLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "SourcePerimeterGuids", - "displayName": "SourcePerimeterGuids", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "NSPAccessLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "SourceAppId", - "displayName": "SourceAppId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "NSPAccessLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "SourceParameters", - "displayName": "SourceParameters", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "NSPAccessLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "DestinationResourceId", - "displayName": "DestinationResourceId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "NSPAccessLogs", - "NWConnectionMonitorDestinationListenerResult", - "NWConnectionMonitorDNSResult", - "NWConnectionMonitorPathResult", - "NWConnectionMonitorTestResult" - ], - "extraction": null, - "common": false - }, - { - "name": "DestinationFqdn", - "displayName": "DestinationFqdn", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "NSPAccessLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "DestinationParameters", - "displayName": "DestinationParameters", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "NSPAccessLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "DestinationProtocol", - "displayName": "DestinationProtocol", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "NSPAccessLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ResultDirection", - "displayName": "ResultDirection", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "NSPAccessLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ResultAction", - "displayName": "ResultAction", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "NSPAccessLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "TestGroupName", - "displayName": "TestGroupName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "NWConnectionMonitorDestinationListenerResult", - "NWConnectionMonitorDNSResult", - "NWConnectionMonitorPathResult", - "NWConnectionMonitorTestResult" - ], - "extraction": null, - "common": false - }, - { - "name": "TestConfigurationName", - "displayName": "TestConfigurationName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "NWConnectionMonitorDestinationListenerResult", - "NWConnectionMonitorDNSResult", - "NWConnectionMonitorPathResult", - "NWConnectionMonitorTestResult" - ], - "extraction": null, - "common": false - }, - { - "name": "DestinationType", - "displayName": "DestinationType", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "NWConnectionMonitorDestinationListenerResult", - "NWConnectionMonitorDNSResult", - "NWConnectionMonitorPathResult", - "NWConnectionMonitorTestResult" - ], - "extraction": null, - "common": false - }, - { - "name": "DestinationAddress", - "displayName": "DestinationAddress", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "NWConnectionMonitorDestinationListenerResult", - "NWConnectionMonitorDNSResult", - "NWConnectionMonitorPathResult", - "NWConnectionMonitorTestResult" - ], - "extraction": null, - "common": false - }, - { - "name": "DestinationSubnet", - "displayName": "DestinationSubnet", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "NWConnectionMonitorDestinationListenerResult", - "NWConnectionMonitorDNSResult", - "NWConnectionMonitorPathResult", - "NWConnectionMonitorTestResult" - ], - "extraction": null, - "common": false - }, - { - "name": "DestinationName", - "displayName": "DestinationName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "NWConnectionMonitorDestinationListenerResult", - "NWConnectionMonitorDNSResult", - "NWConnectionMonitorPathResult", - "NWConnectionMonitorTestResult" - ], - "extraction": null, - "common": false - }, - { - "name": "DestinationAgentId", - "displayName": "DestinationAgentId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "NWConnectionMonitorDestinationListenerResult", - "NWConnectionMonitorDNSResult", - "NWConnectionMonitorPathResult", - "NWConnectionMonitorTestResult" - ], - "extraction": null, - "common": false - }, - { - "name": "ListeningOutcome", - "displayName": "ListeningOutcome", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "NWConnectionMonitorDestinationListenerResult" - ], - "extraction": null, - "common": false - }, - { - "name": "Issues", - "displayName": "Issues", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "NWConnectionMonitorDestinationListenerResult", - "NWConnectionMonitorPathResult" - ], - "extraction": null, - "common": false - }, - { - "name": "SourceAddress", - "displayName": "SourceAddress", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "NWConnectionMonitorDNSResult", - "NWConnectionMonitorPathResult", - "NWConnectionMonitorTestResult" - ], - "extraction": null, - "common": false - }, - { - "name": "SourceSubnet", - "displayName": "SourceSubnet", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "NWConnectionMonitorDNSResult", - "NWConnectionMonitorPathResult", - "NWConnectionMonitorTestResult" - ], - "extraction": null, - "common": false - }, - { - "name": "SourceName", - "displayName": "SourceName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "NWConnectionMonitorDNSResult", - "NWConnectionMonitorPathResult", - "NWConnectionMonitorTestResult", - "PurviewDataSensitivityLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "SourceAgentId", - "displayName": "SourceAgentId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "NWConnectionMonitorDNSResult", - "NWConnectionMonitorPathResult", - "NWConnectionMonitorTestResult" - ], - "extraction": null, - "common": false - }, - { - "name": "ChecksTotal", - "displayName": "ChecksTotal", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "NWConnectionMonitorDNSResult", - "NWConnectionMonitorPathResult", - "NWConnectionMonitorTestResult" - ], - "extraction": null, - "common": false - }, - { - "name": "ChecksFailed", - "displayName": "ChecksFailed", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "NWConnectionMonitorDNSResult", - "NWConnectionMonitorPathResult", - "NWConnectionMonitorTestResult" - ], - "extraction": null, - "common": false - }, - { - "name": "TestResultCriterion", - "displayName": "TestResultCriterion", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "NWConnectionMonitorDNSResult", - "NWConnectionMonitorTestResult" - ], - "extraction": null, - "common": false - }, - { - "name": "ResponseRecordCount", - "displayName": "ResponseRecordCount", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "NWConnectionMonitorDNSResult" - ], - "extraction": null, - "common": false - }, - { - "name": "ResponseRecords", - "displayName": "ResponseRecords", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "NWConnectionMonitorDNSResult" - ], - "extraction": null, - "common": false - }, - { - "name": "ResponseRecordType", - "displayName": "ResponseRecordType", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "NWConnectionMonitorDNSResult" - ], - "extraction": null, - "common": false - }, - { - "name": "ValidationChecks", - "displayName": "ValidationChecks", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "NWConnectionMonitorDNSResult" - ], - "extraction": null, - "common": false - }, - { - "name": "ValidationIssues", - "displayName": "ValidationIssues", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "NWConnectionMonitorDNSResult" - ], - "extraction": null, - "common": false - }, - { - "name": "PathTestResult", - "displayName": "PathTestResult", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "NWConnectionMonitorPathResult" - ], - "extraction": null, - "common": false - }, - { - "name": "PathTestResultCriterion", - "displayName": "PathTestResultCriterion", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "NWConnectionMonitorPathResult" - ], - "extraction": null, - "common": false - }, - { - "name": "ChecksFailedPercentThreshold", - "displayName": "ChecksFailedPercentThreshold", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "NWConnectionMonitorPathResult", - "NWConnectionMonitorTestResult" - ], - "extraction": null, - "common": false - }, - { - "name": "RoundTripTimeMsThreshold", - "displayName": "RoundTripTimeMsThreshold", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "NWConnectionMonitorPathResult", - "NWConnectionMonitorTestResult" - ], - "extraction": null, - "common": false - }, - { - "name": "MinRoundTripTimeMs", - "displayName": "MinRoundTripTimeMs", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "NWConnectionMonitorPathResult", - "NWConnectionMonitorTestResult" - ], - "extraction": null, - "common": false - }, - { - "name": "MaxRoundTripTimeMs", - "displayName": "MaxRoundTripTimeMs", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "NWConnectionMonitorPathResult", - "NWConnectionMonitorTestResult" - ], - "extraction": null, - "common": false - }, - { - "name": "AvgRoundTripTimeMs", - "displayName": "AvgRoundTripTimeMs", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "NWConnectionMonitorPathResult", - "NWConnectionMonitorTestResult" - ], - "extraction": null, - "common": false - }, - { - "name": "JitterMs", - "displayName": "JitterMs", - "type": "Double", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "NWConnectionMonitorPathResult", - "NWConnectionMonitorTestResult" - ], - "extraction": null, - "common": false - }, - { - "name": "HopAddresses", - "displayName": "HopAddresses", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "NWConnectionMonitorPathResult" - ], - "extraction": null, - "common": false - }, - { - "name": "HopTypes", - "displayName": "HopTypes", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "NWConnectionMonitorPathResult" - ], - "extraction": null, - "common": false - }, - { - "name": "HopLinkTypes", - "displayName": "HopLinkTypes", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "NWConnectionMonitorPathResult" - ], - "extraction": null, - "common": false - }, - { - "name": "HopResourceIds", - "displayName": "HopResourceIds", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "NWConnectionMonitorPathResult" - ], - "extraction": null, - "common": false - }, - { - "name": "Hops", - "displayName": "Hops", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "NWConnectionMonitorPathResult" - ], - "extraction": null, - "common": false - }, - { - "name": "AdditionalData", - "displayName": "AdditionalData", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "NWConnectionMonitorPathResult", - "NWConnectionMonitorTestResult" - ], - "extraction": null, - "common": false - }, - { - "name": "DagTaskName", - "displayName": "DagTaskName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "OEPAirFlowTask" - ], - "extraction": null, - "common": false - }, - { - "name": "Content", - "displayName": "Content", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "OEPAirFlowTask", - "OEPElasticOperator", - "OEPElasticsearch" - ], - "extraction": null, - "common": false - }, - { - "name": "TotalHits", - "displayName": "TotalHits", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "OEPElasticsearch" - ], - "extraction": null, - "common": false - }, - { - "name": "UserDomain", - "displayName": "UserDomain", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "VMProcess" - ], - "extraction": null, - "common": false - }, - { - "name": "ClientObjectId", - "displayName": "ClientObjectId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "OLPSupplyChainEntityOperations" - ], - "extraction": null, - "common": false - }, - { - "name": "ClientName", - "displayName": "ClientName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "OLPSupplyChainEntityOperations" - ], - "extraction": null, - "common": false - }, - { - "name": "ClientApplicationId", - "displayName": "ClientApplicationId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "OLPSupplyChainEntityOperations" - ], - "extraction": null, - "common": false - }, - { - "name": "CustomRequestAttributes", - "displayName": "CustomRequestAttributes", - "type": "Dynamic", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "OLPSupplyChainEntityOperations" - ], - "extraction": null, - "common": false - }, - { - "name": "EventBody", - "displayName": "EventBody", - "type": "Dynamic", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "OLPSupplyChainEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "SupplyChainResourceType", - "displayName": "SupplyChainResourceType", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "OLPSupplyChainEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "Detail", - "displayName": "Detail", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "Operation" - ], - "extraction": null, - "common": false - }, - { - "name": "OperationCategory", - "displayName": "OperationCategory", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "Operation" - ], - "extraction": null, - "common": false - }, - { - "name": "OperationKey", - "displayName": "OperationKey", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "Operation" - ], - "extraction": null, - "common": false - }, - { - "name": "Solution", - "displayName": "Solution", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "Operation", - "Usage" - ], - "extraction": null, - "common": false - }, - { - "name": "CounterName", - "displayName": "CounterName", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "Perf" - ], - "extraction": null, - "common": false - }, - { - "name": "Average", - "displayName": "CounterValue", - "type": "Double", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "Perf" - ], - "extraction": null, - "common": false - }, - { - "name": "CounterPath", - "displayName": "CounterPath", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "Perf" - ], - "extraction": null, - "common": false - }, - { - "name": "SampleCount", - "displayName": "SampleCount", - "type": "Int", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "Perf" - ], - "extraction": null, - "common": false - }, - { - "name": "BucketStartTime", - "displayName": "BucketStartTime", - "type": "DateTime", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "Perf" - ], - "extraction": null, - "common": false - }, - { - "name": "BucketEndTime", - "displayName": "BucketEndTime", - "type": "DateTime", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "Perf" - ], - "extraction": null, - "common": false - }, - { - "name": "StandardDeviation", - "displayName": "StandardDeviation", - "type": "Double", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "Perf" - ], - "extraction": null, - "common": false - }, - { - "name": "PlayFabTitleId", - "displayName": "PlayFabTitleId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PFTitleAuditLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "PlayFabPlayerAccountPoolId", - "displayName": "PlayFabPlayerAccountPoolId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PFTitleAuditLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ModifiedPlayerId", - "displayName": "ModifiedPlayerId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PFTitleAuditLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "DatasetName", - "displayName": "DatasetName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "PowerBIReportUsageTenant", - "PowerBIReportUsageWorkspace" - ], - "extraction": null, - "common": false - }, - { - "name": "DistributionMethod", - "displayName": "DistributionMethod", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "PowerBIReportUsageTenant", - "PowerBIReportUsageWorkspace" - ], - "extraction": null, - "common": false - }, - { - "name": "AuditData", - "displayName": "AuditData", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "PowerBIAuditTenant" - ], - "extraction": null, - "common": false - }, - { - "name": "CustomerTenantId", - "displayName": "CustomerTenantId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "PowerBIAuditTenant", - "PowerBIDatasetsTenant", - "PowerBIDatasetsTenantPreview", - "PowerBIDatasetsWorkspace", - "PowerBIDatasetsWorkspacePreview", - "PowerBIReportUsageTenant", - "PowerBIReportUsageWorkspace" - ], - "extraction": null, - "common": false - }, - { - "name": "ExecutingUser", - "displayName": "ExecutingUser", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PowerBIAuditTenant", - "PowerBIDatasetsTenant", - "PowerBIDatasetsWorkspace", - "PowerBIReportUsageTenant", - "PowerBIReportUsageWorkspace" - ], - "extraction": null, - "common": false - }, - { - "name": "LogAnalyticsCategory", - "displayName": "LogAnalyticsCategory", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PowerBIAuditTenant", - "PowerBIDatasetsTenant", - "PowerBIDatasetsWorkspace", - "PowerBIReportUsageTenant", - "PowerBIReportUsageWorkspace" - ], - "extraction": null, - "common": false - }, - { - "name": "PowerBIWorkspaceId", - "displayName": "PowerBIWorkspaceId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PowerBIDatasetsTenant", - "PowerBIDatasetsWorkspace", - "PowerBIReportUsageTenant", - "PowerBIReportUsageWorkspace" - ], - "extraction": null, - "common": false - }, - { - "name": "PremiumCapacityId", - "displayName": "PremiumCapacityId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PowerBIDatasetsTenant", - "PowerBIDatasetsTenantPreview", - "PowerBIDatasetsWorkspace", - "PowerBIDatasetsWorkspacePreview", - "PowerBIReportUsageTenant", - "PowerBIReportUsageWorkspace" - ], - "extraction": null, - "common": false - }, - { - "name": "ApplicationContext", - "displayName": "ApplicationContext", - "type": "Dynamic", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "PowerBIDatasetsTenant", - "PowerBIDatasetsTenantPreview", - "PowerBIDatasetsWorkspace", - "PowerBIDatasetsWorkspacePreview" - ], - "extraction": null, - "common": false - }, - { - "name": "ArtifactId", - "displayName": "ArtifactId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PowerBIDatasetsTenant", - "PowerBIDatasetsWorkspace", - "PowerBIReportUsageTenant", - "PowerBIReportUsageWorkspace" - ], - "extraction": null, - "common": false - }, - { - "name": "ArtifactKind", - "displayName": "ArtifactKind", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PowerBIDatasetsTenant", - "PowerBIDatasetsWorkspace", - "PowerBIReportUsageTenant", - "PowerBIReportUsageWorkspace" - ], - "extraction": null, - "common": false - }, - { - "name": "CpuTimeMs", - "displayName": "CpuTimeMs", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PowerBIDatasetsTenant", - "PowerBIDatasetsWorkspace" - ], - "extraction": null, - "common": false - }, - { - "name": "ArtifactName", - "displayName": "ArtifactName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PowerBIDatasetsTenant", - "PowerBIDatasetsWorkspace", - "PowerBIReportUsageTenant", - "PowerBIReportUsageWorkspace" - ], - "extraction": null, - "common": false - }, - { - "name": "DatasetMode", - "displayName": "DatasetMode", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PowerBIDatasetsTenant", - "PowerBIDatasetsWorkspace", - "PowerBIReportUsageTenant", - "PowerBIReportUsageWorkspace" - ], - "extraction": null, - "common": false - }, - { - "name": "OperationDetailName", - "displayName": "OperationDetailName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PowerBIDatasetsTenant", - "PowerBIDatasetsWorkspace" - ], - "extraction": null, - "common": false - }, - { - "name": "XmlaObjectPath", - "displayName": "XmlaObjectPath", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "PowerBIDatasetsTenant", - "PowerBIDatasetsWorkspace" - ], - "extraction": null, - "common": false - }, - { - "name": "PowerBIWorkspaceName", - "displayName": "PowerBIWorkspaceName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PowerBIDatasetsTenant", - "PowerBIDatasetsWorkspace", - "PowerBIReportUsageTenant", - "PowerBIReportUsageWorkspace" - ], - "extraction": null, - "common": false - }, - { - "name": "ProgressCounter", - "displayName": "ProgressCounter", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PowerBIDatasetsTenant", - "PowerBIDatasetsWorkspace" - ], - "extraction": null, - "common": false - }, - { - "name": "XmlaProperties", - "displayName": "XmlaProperties", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "PowerBIDatasetsTenant", - "PowerBIDatasetsWorkspace" - ], - "extraction": null, - "common": false - }, - { - "name": "XmlaSessionId", - "displayName": "XmlaSessionId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "PowerBIDatasetsTenant", - "PowerBIDatasetsWorkspace" - ], - "extraction": null, - "common": false - }, - { - "name": "EventText", - "displayName": "EventText", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "PowerBIDatasetsTenant", - "PowerBIDatasetsWorkspace" - ], - "extraction": null, - "common": false - }, - { - "name": "XmlaRequestId", - "displayName": "XmlaRequestId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "PowerBIDatasetsTenant", - "PowerBIDatasetsWorkspace" - ], - "extraction": null, - "common": false - }, - { - "name": "ClientHostName", - "displayName": "ClientHostName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PowerBIDatasetsTenantPreview", - "PowerBIDatasetsWorkspacePreview" - ], - "extraction": null, - "common": false - }, - { - "name": "ClientProcessId", - "displayName": "ClientProcessId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PowerBIDatasetsTenantPreview", - "PowerBIDatasetsWorkspacePreview" - ], - "extraction": null, - "common": false - }, - { - "name": "ConnectionId", - "displayName": "ConnectionId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PowerBIDatasetsTenantPreview", - "PowerBIDatasetsWorkspacePreview", - "SignalRServiceDiagnosticLogs", - "SQLSecurityAuditEvents", - "VMConnection", - "WebPubSubConnectivity", - "WebPubSubMessaging" - ], - "extraction": null, - "common": false - }, - { - "name": "CPUTime", - "displayName": "CPUTime", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PowerBIDatasetsTenantPreview", - "PowerBIDatasetsWorkspacePreview" - ], - "extraction": null, - "common": false - }, - { - "name": "EffectiveUsername", - "displayName": "EffectiveUsername", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PowerBIDatasetsTenantPreview", - "PowerBIDatasetsWorkspacePreview" - ], - "extraction": null, - "common": false - }, - { - "name": "EventClass", - "displayName": "EventClass", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PowerBIDatasetsTenantPreview", - "PowerBIDatasetsWorkspacePreview" - ], - "extraction": null, - "common": false - }, - { - "name": "EventSubclass", - "displayName": "EventSubclass", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PowerBIDatasetsTenantPreview", - "PowerBIDatasetsWorkspacePreview" - ], - "extraction": null, - "common": false - }, - { - "name": "IntegerData", - "displayName": "IntegerData", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PowerBIDatasetsTenantPreview", - "PowerBIDatasetsWorkspacePreview" - ], - "extraction": null, - "common": false - }, - { - "name": "ObjectPath", - "displayName": "ObjectPath", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PowerBIDatasetsTenantPreview", - "PowerBIDatasetsWorkspacePreview" - ], - "extraction": null, - "common": false - }, - { - "name": "ObjectReference", - "displayName": "ObjectReference", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PowerBIDatasetsTenantPreview", - "PowerBIDatasetsWorkspacePreview" - ], - "extraction": null, - "common": false - }, - { - "name": "ProgressTotal", - "displayName": "ProgressTotal", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PowerBIDatasetsTenantPreview", - "PowerBIDatasetsWorkspacePreview" - ], - "extraction": null, - "common": false - }, - { - "name": "RequestProperties", - "displayName": "RequestProperties", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PowerBIDatasetsTenantPreview", - "PowerBIDatasetsWorkspacePreview" - ], - "extraction": null, - "common": false - }, - { - "name": "SpId", - "displayName": "SpId", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PowerBIDatasetsTenantPreview", - "PowerBIDatasetsWorkspacePreview", - "SynapseSqlPoolSqlRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "TextData", - "displayName": "TextData", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PowerBIDatasetsTenantPreview", - "PowerBIDatasetsWorkspacePreview" - ], - "extraction": null, - "common": false - }, - { - "name": "BootstrapDurationMs", - "displayName": "BootstrapDurationMs", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PowerBIReportUsageTenant", - "PowerBIReportUsageWorkspace" - ], - "extraction": null, - "common": false - }, - { - "name": "BrowserName", - "displayName": "BrowserName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PowerBIReportUsageTenant", - "PowerBIReportUsageWorkspace" - ], - "extraction": null, - "common": false - }, - { - "name": "BrowserTabId", - "displayName": "BrowserTabId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PowerBIReportUsageTenant", - "PowerBIReportUsageWorkspace" - ], - "extraction": null, - "common": false - }, - { - "name": "ConsumptionMethod", - "displayName": "ConsumptionMethod", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PowerBIReportUsageTenant", - "PowerBIReportUsageWorkspace" - ], - "extraction": null, - "common": false - }, - { - "name": "DatasetId", - "displayName": "DatasetId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PowerBIReportUsageTenant", - "PowerBIReportUsageWorkspace" - ], - "extraction": null, - "common": false - }, - { - "name": "DatasetLocation", - "displayName": "DatasetLocation", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PowerBIReportUsageTenant", - "PowerBIReportUsageWorkspace" - ], - "extraction": null, - "common": false - }, - { - "name": "EffectiveDAXQueryDurationMs", - "displayName": "EffectiveDAXQueryDurationMs", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PowerBIReportUsageTenant", - "PowerBIReportUsageWorkspace" - ], - "extraction": null, - "common": false - }, - { - "name": "EffectiveDQQueryDurationMs", - "displayName": "EffectiveDQQueryDurationMs", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PowerBIReportUsageTenant", - "PowerBIReportUsageWorkspace" - ], - "extraction": null, - "common": false - }, - { - "name": "EffectiveRenderDurationMs", - "displayName": "EffectiveRenderDurationMs", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PowerBIReportUsageTenant", - "PowerBIReportUsageWorkspace" - ], - "extraction": null, - "common": false - }, - { - "name": "EffectiveVisualLoadDurationMs", - "displayName": "EffectiveVisualLoadDurationMs", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PowerBIReportUsageTenant", - "PowerBIReportUsageWorkspace" - ], - "extraction": null, - "common": false - }, - { - "name": "EmbedAppId", - "displayName": "EmbedAppId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PowerBIReportUsageTenant", - "PowerBIReportUsageWorkspace" - ], - "extraction": null, - "common": false - }, - { - "name": "EmbedType", - "displayName": "EmbedType", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PowerBIReportUsageTenant", - "PowerBIReportUsageWorkspace" - ], - "extraction": null, - "common": false - }, - { - "name": "HomeWorkspaceId", - "displayName": "HomeWorkspaceId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PowerBIReportUsageTenant", - "PowerBIReportUsageWorkspace" - ], - "extraction": null, - "common": false - }, - { - "name": "HomeWorkspaceName", - "displayName": "HomeWorkspaceName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PowerBIReportUsageTenant", - "PowerBIReportUsageWorkspace" - ], - "extraction": null, - "common": false - }, - { - "name": "IsBootstrapIncluded", - "displayName": "IsBootstrapIncluded", - "type": "Bool", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PowerBIReportUsageTenant", - "PowerBIReportUsageWorkspace" - ], - "extraction": null, - "common": false - }, - { - "name": "IsQueryResultCacheEnabled", - "displayName": "IsQueryResultCacheEnabled", - "type": "Bool", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PowerBIReportUsageTenant", - "PowerBIReportUsageWorkspace" - ], - "extraction": null, - "common": false - }, - { - "name": "OperatingSystemName", - "displayName": "OperatingSystemName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PowerBIReportUsageTenant", - "PowerBIReportUsageWorkspace" - ], - "extraction": null, - "common": false - }, - { - "name": "OperatingSystemVersion", - "displayName": "OperatingSystemVersion", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PowerBIReportUsageTenant", - "PowerBIReportUsageWorkspace" - ], - "extraction": null, - "common": false - }, - { - "name": "OperationStartTimestamp", - "displayName": "OperationStartTimestamp", - "type": "DateTime", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PowerBIReportUsageTenant", - "PowerBIReportUsageWorkspace" - ], - "extraction": null, - "common": false - }, - { - "name": "OperationEndTimestamp", - "displayName": "OperationEndTimestamp", - "type": "DateTime", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PowerBIReportUsageTenant", - "PowerBIReportUsageWorkspace" - ], - "extraction": null, - "common": false - }, - { - "name": "PowerBIAppId", - "displayName": "PowerBIAppId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PowerBIReportUsageTenant", - "PowerBIReportUsageWorkspace" - ], - "extraction": null, - "common": false - }, - { - "name": "PowerBIAppName", - "displayName": "PowerBIAppName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PowerBIReportUsageTenant", - "PowerBIReportUsageWorkspace" - ], - "extraction": null, - "common": false - }, - { - "name": "ReportPageId", - "displayName": "ReportPageId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PowerBIReportUsageTenant", - "PowerBIReportUsageWorkspace" - ], - "extraction": null, - "common": false - }, - { - "name": "ReportPageName", - "displayName": "ReportPageName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PowerBIReportUsageTenant", - "PowerBIReportUsageWorkspace" - ], - "extraction": null, - "common": false - }, - { - "name": "TotalDAXQueryDurationMs", - "displayName": "TotalDAXQueryDurationMs", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PowerBIReportUsageTenant", - "PowerBIReportUsageWorkspace" - ], - "extraction": null, - "common": false - }, - { - "name": "TotalDQQueryDurationMs", - "displayName": "TotalDQQueryDurationMs", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PowerBIReportUsageTenant", - "PowerBIReportUsageWorkspace" - ], - "extraction": null, - "common": false - }, - { - "name": "TotalVisibleVisualCount", - "displayName": "TotalVisibleVisualCount", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PowerBIReportUsageTenant", - "PowerBIReportUsageWorkspace" - ], - "extraction": null, - "common": false - }, - { - "name": "UserFirstName", - "displayName": "UserFirstName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PowerBIReportUsageTenant", - "PowerBIReportUsageWorkspace" - ], - "extraction": null, - "common": false - }, - { - "name": "UserLastName", - "displayName": "UserLastName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PowerBIReportUsageTenant", - "PowerBIReportUsageWorkspace" - ], - "extraction": null, - "common": false - }, - { - "name": "UserSession", - "displayName": "UserSession", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PowerBIReportUsageTenant", - "PowerBIReportUsageWorkspace" - ], - "extraction": null, - "common": false - }, - { - "name": "VisualTypesAndCounts", - "displayName": "VisualTypesAndCounts", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PowerBIReportUsageTenant", - "PowerBIReportUsageWorkspace" - ], - "extraction": null, - "common": false - }, - { - "name": "PurviewTenantId", - "displayName": "PurviewTenantId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PurviewDataSensitivityLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "PurviewAccountName", - "displayName": "PurviewAccountName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PurviewDataSensitivityLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "PurviewRegion", - "displayName": "PurviewRegion", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PurviewDataSensitivityLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "SourcePath", - "displayName": "SourcePath", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PurviewDataSensitivityLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "SourceSubscriptionId", - "displayName": "SourceSubscriptionId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PurviewDataSensitivityLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "SourceRegion", - "displayName": "SourceRegion", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PurviewDataSensitivityLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "SourceCollectionName", - "displayName": "SourceCollectionName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PurviewDataSensitivityLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "SourceScanId", - "displayName": "SourceScanId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PurviewDataSensitivityLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "AssetName", - "displayName": "AssetName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PurviewDataSensitivityLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "AssetPath", - "displayName": "AssetPath", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PurviewDataSensitivityLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "AssetCreationTime", - "displayName": "AssetCreationTime", - "type": "DateTime", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PurviewDataSensitivityLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "AssetModifiedTime", - "displayName": "AssetModifiedTime", - "type": "DateTime", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PurviewDataSensitivityLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ClassificationTrigger", - "displayName": "ClassificationTrigger", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PurviewDataSensitivityLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "SensitivityLabelTrigger", - "displayName": "SensitivityLabelTrigger", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PurviewDataSensitivityLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "SensitivityLabelDetails", - "displayName": "SensitivityLabelDetails", - "type": "Dynamic", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PurviewDataSensitivityLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "DataSourceName", - "displayName": "DataSourceName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PurviewScanStatusLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "DataSourceType", - "displayName": "DataSourceType", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PurviewScanStatusLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ScanName", - "displayName": "ScanName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PurviewScanStatusLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "AssetsDiscovered", - "displayName": "AssetsDiscovered", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PurviewScanStatusLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "AssetsClassified", - "displayName": "AssetsClassified", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PurviewScanStatusLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ScanQueueTimeInSeconds", - "displayName": "ScanQueueTimeInSeconds", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PurviewScanStatusLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ScanTotalRunTimeInSeconds", - "displayName": "ScanTotalRunTimeInSeconds", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PurviewScanStatusLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "RunType", - "displayName": "RunType", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PurviewScanStatusLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ScanResultId", - "displayName": "ScanResultId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "PurviewScanStatusLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "PrivateLinkAssociationIds", - "displayName": "PrivateLinkAssociationIds", - "type": "Dynamic", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ResourceManagementPublicAccessLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ObjectIdentifier", - "displayName": "ObjectIdentifier", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "ResourceManagementPublicAccessLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ProductName", - "displayName": "ProductName", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "VMProcess" - ], - "extraction": null, - "common": false - }, - { - "name": "CommandLine", - "displayName": "CommandLine", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "VMProcess" - ], - "extraction": null, - "common": false - }, - { - "name": "StorageAccount", - "displayName": "StorageAccount", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "W3CIISLog" - ], - "extraction": null, - "common": false - }, - { - "name": "LastModifiedTime", - "displayName": "LastModifiedTime", - "type": "DateTime", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "StorageBlobLogs", - "StorageFileLogs", - "StorageQueueLogs", - "StorageTableLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ApplicationTypeName", - "displayName": "ApplicationTypeName", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ServiceFabricOperationalEvent", - "ServiceFabricReliableActorEvent", - "ServiceFabricReliableServiceEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "UpgradeDomains", - "displayName": "UpgradeDomains", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ServiceFabricOperationalEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "ServiceTypeName", - "displayName": "ServiceTypeName", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ServiceFabricOperationalEvent", - "ServiceFabricReliableActorEvent", - "ServiceFabricReliableServiceEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "ActorType", - "displayName": "ActorType", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ServiceFabricReliableActorEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "ActorId", - "displayName": "ActorId", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ServiceFabricReliableActorEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "ActorIdKind", - "displayName": "ActorIdKind", - "type": "Int", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ServiceFabricReliableActorEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "IsStateful", - "displayName": "IsStateful", - "type": "Bool", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ServiceFabricReliableActorEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "ReplicaOrInstanceId", - "displayName": "ReplicaOrInstanceId", - "type": "BigInt", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ServiceFabricReliableActorEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "NodeName", - "displayName": "NodeName", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ServiceFabricReliableActorEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "CountOfWaitingMethodCalls", - "displayName": "CountOfWaitingMethodCalls", - "type": "BigInt", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ServiceFabricReliableActorEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "MethodSignature", - "displayName": "MethodSignature", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ServiceFabricReliableActorEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "MethodExecutionTimeTicks", - "displayName": "MethodExecutionTimeTicks", - "type": "BigInt", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ServiceFabricReliableActorEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "SaveStateExecutionTimeTicks", - "displayName": "SaveStateExecutionTimeTicks", - "type": "BigInt", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ServiceFabricReliableActorEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "ReplicaId", - "displayName": "ReplicaId", - "type": "BigInt", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ServiceFabricReliableActorEvent", - "ServiceFabricReliableServiceEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "SlowCancellationTimeMillis", - "displayName": "SlowCancellationTimeMillis", - "type": "Double", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ServiceFabricReliableServiceEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "WasCanceled", - "displayName": "WasCanceled", - "type": "Bool", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ServiceFabricReliableServiceEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "ActualCancellationTimeMillis", - "displayName": "ActualCancellationTimeMillis", - "type": "Double", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "ServiceFabricReliableServiceEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "Collection", - "displayName": "Collection", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "SignalRServiceDiagnosticLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "HubName", - "displayName": "HubName", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "SignalRServiceDiagnosticLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "GroupName", - "displayName": "GroupName", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "SignalRServiceDiagnosticLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "MessageTracingId", - "displayName": "MessageTracingId", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "SignalRServiceDiagnosticLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "InvocationId", - "displayName": "InvocationId", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "SignalRServiceDiagnosticLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ProcessingTimeInMilliseconds", - "displayName": "ProcessingTimeInMilliseconds", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "SigninLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "FlaggedForReview", - "displayName": "FlaggedForReview", - "type": "Bool", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "SigninLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "IPAddressFromResourceProvider", - "displayName": "IPAddressFromResourceProvider", - "type": "String", - "indexed": false, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "SigninLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "SignInIdentifier", - "displayName": "SignInIdentifier", - "type": "String", - "indexed": false, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "SigninLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "SignInIdentifierType", - "displayName": "SignInIdentifierType", - "type": "String", - "indexed": false, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "SigninLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "SchemaName", - "displayName": "SchemaName", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "SQLSecurityAuditEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "LogicalServerName", - "displayName": "LogicalServerName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "SQLSecurityAuditEvents", - "SynapseSqlPoolDmsWorkers", - "SynapseSqlPoolExecRequests", - "SynapseSqlPoolRequestSteps", - "SynapseSqlPoolSqlRequests", - "SynapseSqlPoolWaits" - ], - "extraction": null, - "common": false - }, - { - "name": "AuditSchemaVersion", - "displayName": "AuditSchemaVersion", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "SQLSecurityAuditEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "ActionId", - "displayName": "ActionId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "SQLSecurityAuditEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "Succeeded", - "displayName": "Succeeded", - "type": "Bool", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "SQLSecurityAuditEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "IsColumnPermission", - "displayName": "IsColumnPermission", - "type": "Bool", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "SQLSecurityAuditEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "ServerPrincipalId", - "displayName": "ServerPrincipalId", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "SQLSecurityAuditEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "DatabasePrincipalId", - "displayName": "DatabasePrincipalId", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "SQLSecurityAuditEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "TargetServerPrincipalId", - "displayName": "TargetServerPrincipalId", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "SQLSecurityAuditEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "TargetDatabasePrincipalId", - "displayName": "TargetDatabasePrincipalId", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "SQLSecurityAuditEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "UserDefinedEventId", - "displayName": "UserDefinedEventId", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "SQLSecurityAuditEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "TransactionId", - "displayName": "TransactionId", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "SQLSecurityAuditEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "ClassType", - "displayName": "ClassType", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "SQLSecurityAuditEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "ClassTypeDescription", - "displayName": "ClassTypeDescription", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "SQLSecurityAuditEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "SecurableClassType", - "displayName": "SecurableClassType", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "SQLSecurityAuditEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "ResponseRows", - "displayName": "ResponseRows", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "SQLSecurityAuditEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "AffectedRows", - "displayName": "AffectedRows", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "SQLSecurityAuditEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "PermissionBitmask", - "displayName": "PermissionBitmask", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "SQLSecurityAuditEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "SequenceGroupId", - "displayName": "SequenceGroupId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "SQLSecurityAuditEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "SessionServerPrincipalName", - "displayName": "SessionServerPrincipalName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "SQLSecurityAuditEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "ServerPrincipalName", - "displayName": "ServerPrincipalName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "SQLSecurityAuditEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "ServerPrincipalSid", - "displayName": "ServerPrincipalSid", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "SQLSecurityAuditEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "DatabasePrincipalName", - "displayName": "DatabasePrincipalName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "SQLSecurityAuditEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "TargetServerPrincipalName", - "displayName": "TargetServerPrincipalName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "SQLSecurityAuditEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "TargetServerPrincipalSid", - "displayName": "TargetServerPrincipalSid", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "SQLSecurityAuditEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "TargetDatabasePrincipalName", - "displayName": "TargetDatabasePrincipalName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "SQLSecurityAuditEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "Statement", - "displayName": "Statement", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "SQLSecurityAuditEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "UserDefinedInformation", - "displayName": "UserDefinedInformation", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "SQLSecurityAuditEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "DataSensitivityInformation", - "displayName": "DataSensitivityInformation", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "SQLSecurityAuditEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "SessionContext", - "displayName": "SessionContext", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "SQLSecurityAuditEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "IsServerLevelAudit", - "displayName": "IsServerLevelAudit", - "type": "Bool", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "SQLSecurityAuditEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "ScanId", - "displayName": "ScanId", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "StorageAntimalwareScanResults" - ], - "extraction": null, - "common": false - }, - { - "name": "StorageAccountName", - "displayName": "StorageAccountName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "StorageAntimalwareScanResults" - ], - "extraction": null, - "common": false - }, - { - "name": "StorageAccountLocation", - "displayName": "StorageAccountLocation", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "StorageAntimalwareScanResults" - ], - "extraction": null, - "common": false - }, - { - "name": "BlobUri", - "displayName": "BlobUri", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "StorageAntimalwareScanResults" - ], - "extraction": null, - "common": false - }, - { - "name": "BlobEtag", - "displayName": "BlobEtag", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "StorageAntimalwareScanResults" - ], - "extraction": null, - "common": false - }, - { - "name": "ScanFinishedTimeUtc", - "displayName": "ScanFinishedTimeUtc", - "type": "DateTime", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "StorageAntimalwareScanResults" - ], - "extraction": null, - "common": false - }, - { - "name": "Verdict", - "displayName": "Verdict", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "StorageAntimalwareScanResults" - ], - "extraction": null, - "common": false - }, - { - "name": "VerdictInfo", - "displayName": "VerdictInfo", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "StorageAntimalwareScanResults" - ], - "extraction": null, - "common": false - }, - { - "name": "ErrorInfo", - "displayName": "ErrorInfo", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "StorageAntimalwareScanResults" - ], - "extraction": null, - "common": false - }, - { - "name": "StatusText", - "displayName": "StatusText", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "StorageBlobLogs", - "StorageFileLogs", - "StorageQueueLogs", - "StorageTableLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ServerLatencyMs", - "displayName": "ServerLatencyMs", - "type": "Double", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "StorageBlobLogs", - "StorageFileLogs", - "StorageQueueLogs", - "StorageTableLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "AuthenticationHash", - "displayName": "AuthenticationHash", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "StorageBlobLogs", - "StorageFileLogs", - "StorageQueueLogs", - "StorageTableLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "RequesterObjectId", - "displayName": "RequesterObjectId", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "StorageBlobLogs", - "StorageFileLogs", - "StorageQueueLogs", - "StorageTableLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "RequesterTenantId", - "displayName": "RequesterTenantId", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "StorageBlobLogs", - "StorageFileLogs", - "StorageQueueLogs", - "StorageTableLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "RequesterAudience", - "displayName": "RequesterAudience", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "StorageBlobLogs", - "StorageFileLogs", - "StorageQueueLogs", - "StorageTableLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "RequesterTokenIssuer", - "displayName": "RequesterTokenIssuer", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "StorageBlobLogs", - "StorageFileLogs", - "StorageQueueLogs", - "StorageTableLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "AuthorizationDetails", - "displayName": "AuthorizationDetails", - "type": "Dynamic", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "StorageBlobLogs", - "StorageFileLogs", - "StorageQueueLogs", - "StorageTableLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ReferrerHeader", - "displayName": "ReferrerHeader", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "StorageBlobLogs", - "StorageFileLogs", - "StorageQueueLogs", - "StorageTableLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "Etag", - "displayName": "Etag", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "StorageBlobLogs", - "StorageFileLogs", - "StorageQueueLogs", - "StorageTableLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "OperationCount", - "displayName": "OperationCount", - "type": "Int", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "StorageBlobLogs", - "StorageFileLogs", - "StorageQueueLogs", - "StorageTableLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "RequestHeaderSize", - "displayName": "RequestHeaderSize", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "StorageBlobLogs", - "StorageFileLogs", - "StorageQueueLogs", - "StorageTableLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "RequestBodySize", - "displayName": "RequestBodySize", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "StorageBlobLogs", - "StorageFileLogs", - "StorageQueueLogs", - "StorageTableLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ResponseHeaderSize", - "displayName": "ResponseHeaderSize", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "StorageBlobLogs", - "StorageFileLogs", - "StorageQueueLogs", - "StorageTableLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ResponseBodySize", - "displayName": "ResponseBodySize", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "StorageBlobLogs", - "StorageFileLogs", - "StorageQueueLogs", - "StorageTableLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "RequestMd5", - "displayName": "RequestMd5", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "StorageBlobLogs", - "StorageFileLogs", - "StorageQueueLogs", - "StorageTableLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ResponseMd5", - "displayName": "ResponseMd5", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "StorageBlobLogs", - "StorageFileLogs", - "StorageQueueLogs", - "StorageTableLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ConditionsUsed", - "displayName": "ConditionsUsed", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "StorageBlobLogs", - "StorageFileLogs", - "StorageQueueLogs", - "StorageTableLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "ContentLengthHeader", - "displayName": "ContentLengthHeader", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "StorageBlobLogs", - "StorageFileLogs", - "StorageQueueLogs", - "StorageTableLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "SasExpiryStatus", - "displayName": "SasExpiryStatus", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "StorageBlobLogs", - "StorageFileLogs", - "StorageQueueLogs", - "StorageTableLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "StorageTargetName", - "displayName": "StorageTargetName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "StorageCacheOperationEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "PrimingJobName", - "displayName": "PrimingJobName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "StorageCacheOperationEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "CurrentFirmwareVersion", - "displayName": "CurrentFirmwareVersion", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "StorageCacheUpgradeEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "AvailableFirmwareVersion", - "displayName": "AvailableFirmwareVersion", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "StorageCacheUpgradeEvents" - ], - "extraction": null, - "common": false - }, - { - "name": "RequesterUserName", - "displayName": "RequesterUserName", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "StorageFileLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "SmbPrimarySID", - "displayName": "SmbPrimarySID", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "StorageFileLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "SmbTreeConnectID", - "displayName": "SmbTreeConnectID", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "StorageFileLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "SmbPersistentHandleID", - "displayName": "SmbPersistentHandleID", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "StorageFileLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "SmbVolatileHandleID", - "displayName": "SmbVolatileHandleID", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "StorageFileLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "SmbMessageID", - "displayName": "SmbMessageID", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "StorageFileLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "SmbCreditsConsumed", - "displayName": "SmbCreditsConsumed", - "type": "Int", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "StorageFileLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "SmbCommandDetail", - "displayName": "SmbCommandDetail", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "StorageFileLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "SmbFileId", - "displayName": "SmbFileId", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "StorageFileLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "SmbSessionID", - "displayName": "SmbSessionID", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "StorageFileLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "SmbCommandMajor", - "displayName": "SmbCommandMajor", - "type": "Int", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "StorageFileLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "SmbCommandMinor", - "displayName": "SmbCommandMinor", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "StorageFileLogs" - ], - "extraction": null, - "common": false - }, - { - "name": "SucceededOn", - "displayName": "SucceededOn", - "type": "DateTime", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "SucceededIngestion", - "SynapseDXSucceededIngestion" - ], - "extraction": null, - "common": false - }, - { - "name": "ClientCorrelationId", - "displayName": "ClientCorrelationId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "SynapseGatewayApiRequests", - "SynapseSqlPoolExecRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "PipelineTenantId", - "displayName": "PipelineTenantId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "SynapseIntegrationPipelineRuns", - "SynapseIntegrationPipelineRunsEnded", - "SynapseIntegrationTriggerRuns", - "SynapseIntegrationTriggerRunsEnded" - ], - "extraction": null, - "common": false - }, - { - "name": "LinkConnectionName", - "displayName": "LinkConnectionName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "SynapseLinkEvent" - ], - "extraction": null, - "common": false - }, - { - "name": "StepIndex", - "displayName": "StepIndex", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "SynapseSqlPoolDmsWorkers", - "SynapseSqlPoolRequestSteps" - ], - "extraction": null, - "common": false - }, - { - "name": "DmsStepIndex", - "displayName": "DmsStepIndex", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "SynapseSqlPoolDmsWorkers" - ], - "extraction": null, - "common": false - }, - { - "name": "PdwNodeId", - "displayName": "PdwNodeId", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "SynapseSqlPoolDmsWorkers", - "SynapseSqlPoolSqlRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "DistributionId", - "displayName": "DistributionId", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "SynapseSqlPoolDmsWorkers", - "SynapseSqlPoolSqlRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "BytesProcessed", - "displayName": "BytesProcessed", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "SynapseSqlPoolDmsWorkers" - ], - "extraction": null, - "common": false - }, - { - "name": "RowsProcessed", - "displayName": "RowsProcessed", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "SynapseSqlPoolDmsWorkers" - ], - "extraction": null, - "common": false - }, - { - "name": "CpuTime", - "displayName": "CpuTime", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "SynapseSqlPoolDmsWorkers" - ], - "extraction": null, - "common": false - }, - { - "name": "SqlSpId", - "displayName": "SqlSpId", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "SynapseSqlPoolDmsWorkers" - ], - "extraction": null, - "common": false - }, - { - "name": "DmsCpuId", - "displayName": "DmsCpuId", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "SynapseSqlPoolDmsWorkers" - ], - "extraction": null, - "common": false - }, - { - "name": "SourceInfo", - "displayName": "SourceInfo", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "SynapseSqlPoolDmsWorkers" - ], - "extraction": null, - "common": false - }, - { - "name": "DestinationInfo", - "displayName": "DestinationInfo", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "SynapseSqlPoolDmsWorkers" - ], - "extraction": null, - "common": false - }, - { - "name": "EndCompileTime", - "displayName": "EndCompileTime", - "type": "DateTime", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "SynapseSqlPoolExecRequests", - "SynapseSqlPoolRequestSteps" - ], - "extraction": null, - "common": false - }, - { - "name": "DatabaseId", - "displayName": "DatabaseId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "SynapseSqlPoolExecRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "ResourceClass", - "displayName": "ResourceClass", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "SynapseSqlPoolExecRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "StatementType", - "displayName": "StatementType", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "SynapseSqlPoolExecRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "ScopeDepth", - "displayName": "ScopeDepth", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "SynapseSqlPoolExecRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "RootQueryId", - "displayName": "RootQueryId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "SynapseSqlPoolExecRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "ExplainOutput", - "displayName": "ExplainOutput", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "SynapseSqlPoolExecRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "DistributionType", - "displayName": "DistributionType", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "SynapseSqlPoolRequestSteps" - ], - "extraction": null, - "common": false - }, - { - "name": "LocationType", - "displayName": "LocationType", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "SynapseSqlPoolRequestSteps" - ], - "extraction": null, - "common": false - }, - { - "name": "RowCount", - "displayName": "RowCount", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "SynapseSqlPoolRequestSteps", - "SynapseSqlPoolSqlRequests" - ], - "extraction": null, - "common": false - }, - { - "name": "SyslogMessage", - "displayName": "SyslogMessage", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "Syslog" - ], - "extraction": null, - "common": false - }, - { - "name": "HostIP", - "displayName": "HostIP", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "Syslog" - ], - "extraction": null, - "common": false - }, - { - "name": "EventSourceType", - "displayName": "EventSourceType", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "TSIIngress" - ], - "extraction": null, - "common": false - }, - { - "name": "EventSourceProperties", - "displayName": "EventSourceProperties", - "type": "Dynamic", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "TSIIngress" - ], - "extraction": null, - "common": false - }, - { - "name": "ProductVersion", - "displayName": "ProductVersion", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "VMProcess" - ], - "extraction": null, - "common": false - }, - { - "name": "LinkedResourceUri", - "displayName": "LinkedResourceUri", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "Usage" - ], - "extraction": null, - "common": false - }, - { - "name": "DataType", - "displayName": "DataType", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "Usage" - ], - "extraction": null, - "common": false - }, - { - "name": "BatchesWithinSla", - "displayName": "BatchesWithinSla", - "type": "BigInt", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "Usage" - ], - "extraction": null, - "common": false - }, - { - "name": "BatchesOutsideSla", - "displayName": "BatchesOutsideSla", - "type": "BigInt", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "Usage" - ], - "extraction": null, - "common": false - }, - { - "name": "BatchesCapped", - "displayName": "BatchesCapped", - "type": "BigInt", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "Usage" - ], - "extraction": null, - "common": false - }, - { - "name": "TotalBatches", - "displayName": "TotalBatches", - "type": "BigInt", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "Usage" - ], - "extraction": null, - "common": false - }, - { - "name": "AvgLatencyInSeconds", - "displayName": "AvgLatencyInSeconds", - "type": "Double", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "Usage" - ], - "extraction": null, - "common": false - }, - { - "name": "QuantityUnit", - "displayName": "QuantityUnit", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "Usage" - ], - "extraction": null, - "common": false - }, - { - "name": "IsBillable", - "displayName": "IsBillable", - "type": "Bool", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "Usage" - ], - "extraction": null, - "common": false - }, - { - "name": "MeterId", - "displayName": "MeterId", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "Usage" - ], - "extraction": null, - "common": false - }, - { - "name": "LinkedMeterId", - "displayName": "LinkedMeterId", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "Usage" - ], - "extraction": null, - "common": false - }, - { - "name": "VideoIndexerResourceId", - "displayName": "VideoIndexerResourceId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "VIAudit", - "VIIndexing" - ], - "extraction": null, - "common": false - }, - { - "name": "VideoId", - "displayName": "VideoId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "VIAudit", - "VIIndexing" - ], - "extraction": null, - "common": false - }, - { - "name": "Signature", - "displayName": "Signature", - "type": "Int", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "VIAudit" - ], - "extraction": null, - "common": false - }, - { - "name": "Upn", - "displayName": "Upn", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "VIAudit", - "VIIndexing" - ], - "extraction": null, - "common": false - }, - { - "name": "IndexingProperties", - "displayName": "IndexingProperties", - "type": "Dynamic", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "VIIndexing" - ], - "extraction": null, - "common": false - }, - { - "name": "Ip", - "displayName": "Ip", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "VMBoundPort" - ], - "extraction": null, - "common": false - }, - { - "name": "IsWildcardBind", - "displayName": "IsWildcardBind", - "type": "Bool", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "VMBoundPort" - ], - "extraction": null, - "common": false - }, - { - "name": "LinksLive", - "displayName": "LinksLive", - "type": "BigInt", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "VMBoundPort", - "VMConnection" - ], - "extraction": null, - "common": false - }, - { - "name": "LinksTerminated", - "displayName": "LinksTerminated", - "type": "BigInt", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "VMBoundPort", - "VMConnection" - ], - "extraction": null, - "common": false - }, - { - "name": "LinksEstablished", - "displayName": "LinksEstablished", - "type": "BigInt", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "VMBoundPort", - "VMConnection" - ], - "extraction": null, - "common": false - }, - { - "name": "Responses", - "displayName": "Responses", - "type": "BigInt", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "VMBoundPort", - "VMConnection" - ], - "extraction": null, - "common": false - }, - { - "name": "ResponseTimeSum", - "displayName": "ResponseTimeSum", - "type": "BigInt", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "VMBoundPort", - "VMConnection" - ], - "extraction": null, - "common": false - }, - { - "name": "ResponseTimeMin", - "displayName": "ResponseTimeMin", - "type": "BigInt", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "VMBoundPort", - "VMConnection" - ], - "extraction": null, - "common": false - }, - { - "name": "ResponseTimeMax", - "displayName": "ResponseTimeMax", - "type": "BigInt", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "VMBoundPort", - "VMConnection" - ], - "extraction": null, - "common": false - }, - { - "name": "PortId", - "displayName": "PortId", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "VMBoundPort" - ], - "extraction": null, - "common": false - }, - { - "name": "Machine", - "displayName": "Machine", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "VMBoundPort", - "VMComputer", - "VMConnection", - "VMProcess" - ], - "extraction": null, - "common": false - }, - { - "name": "FullDisplayName", - "displayName": "FullDisplayName", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "VMComputer" - ], - "extraction": null, - "common": false - }, - { - "name": "BootTime", - "displayName": "BootTime", - "type": "DateTime", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "VMComputer" - ], - "extraction": null, - "common": false - }, - { - "name": "TimeZone", - "displayName": "TimeZone", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "VMComputer" - ], - "extraction": null, - "common": false - }, - { - "name": "VirtualizationState", - "displayName": "VirtualizationState", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "VMComputer" - ], - "extraction": null, - "common": false - }, - { - "name": "Ipv4Addresses", - "displayName": "Ipv4Addresses", - "type": "Dynamic", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "VMComputer" - ], - "extraction": null, - "common": false - }, - { - "name": "Ipv4SubnetMasks", - "displayName": "Ipv4SubnetMasks", - "type": "Dynamic", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "VMComputer" - ], - "extraction": null, - "common": false - }, - { - "name": "Ipv4DefaultGateways", - "displayName": "Ipv4DefaultGateways", - "type": "Dynamic", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "VMComputer" - ], - "extraction": null, - "common": false - }, - { - "name": "Ipv6Addresses", - "displayName": "Ipv6Addresses", - "type": "Dynamic", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "VMComputer" - ], - "extraction": null, - "common": false - }, - { - "name": "MacAddresses", - "displayName": "MacAddresses", - "type": "Dynamic", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "VMComputer" - ], - "extraction": null, - "common": false - }, - { - "name": "DnsNames", - "displayName": "DnsNames", - "type": "Dynamic", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "VMComputer" - ], - "extraction": null, - "common": false - }, - { - "name": "DependencyAgentVersion", - "displayName": "DependencyAgentVersion", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "VMComputer" - ], - "extraction": null, - "common": false - }, - { - "name": "OperatingSystemFamily", - "displayName": "OperatingSystemFamily", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "VMComputer" - ], - "extraction": null, - "common": false - }, - { - "name": "OperatingSystemFullName", - "displayName": "OperatingSystemFullName", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "VMComputer" - ], - "extraction": null, - "common": false - }, - { - "name": "PhysicalMemoryMB", - "displayName": "PhysicalMemoryMB", - "type": "BigInt", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "VMComputer" - ], - "extraction": null, - "common": false - }, - { - "name": "Cpus", - "displayName": "Cpus", - "type": "Int", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "VMComputer" - ], - "extraction": null, - "common": false - }, - { - "name": "CpuSpeed", - "displayName": "CpuSpeed", - "type": "Int", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "VMComputer" - ], - "extraction": null, - "common": false - }, - { - "name": "VirtualMachineType", - "displayName": "VirtualMachineType", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "VMComputer" - ], - "extraction": null, - "common": false - }, - { - "name": "VirtualMachineNativeId", - "displayName": "VirtualMachineNativeId", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "VMComputer" - ], - "extraction": null, - "common": false - }, - { - "name": "VirtualMachineNativeName", - "displayName": "VirtualMachineNativeName", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "VMComputer" - ], - "extraction": null, - "common": false - }, - { - "name": "VirtualMachineHypervisorId", - "displayName": "VirtualMachineHypervisorId", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "VMComputer" - ], - "extraction": null, - "common": false - }, - { - "name": "HypervisorType", - "displayName": "HypervisorType", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "VMComputer" - ], - "extraction": null, - "common": false - }, - { - "name": "HypervisorId", - "displayName": "HypervisorId", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "VMComputer" - ], - "extraction": null, - "common": false - }, - { - "name": "HostingProvider", - "displayName": "HostingProvider", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "VMComputer" - ], - "extraction": null, - "common": false - }, - { - "name": "AzureResourceName", - "displayName": "AzureResourceName", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "VMComputer" - ], - "extraction": null, - "common": false - }, - { - "name": "AzureLocation", - "displayName": "AzureLocation", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "VMComputer" - ], - "extraction": null, - "common": false - }, - { - "name": "AzureUpdateDomain", - "displayName": "AzureUpdateDomain", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "VMComputer" - ], - "extraction": null, - "common": false - }, - { - "name": "AzureFaultDomain", - "displayName": "AzureFaultDomain", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "VMComputer" - ], - "extraction": null, - "common": false - }, - { - "name": "AzureVmId", - "displayName": "AzureVmId", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "VMComputer" - ], - "extraction": null, - "common": false - }, - { - "name": "AzureSize", - "displayName": "AzureSize", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "VMComputer" - ], - "extraction": null, - "common": false - }, - { - "name": "AzureImagePublisher", - "displayName": "AzureImagePublisher", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "VMComputer" - ], - "extraction": null, - "common": false - }, - { - "name": "AzureImageOffering", - "displayName": "AzureImageOffering", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "VMComputer" - ], - "extraction": null, - "common": false - }, - { - "name": "AzureImageSku", - "displayName": "AzureImageSku", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "VMComputer" - ], - "extraction": null, - "common": false - }, - { - "name": "AzureImageVersion", - "displayName": "AzureImageVersion", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "VMComputer" - ], - "extraction": null, - "common": false - }, - { - "name": "AzureCloudServiceName", - "displayName": "AzureCloudServiceName", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "VMComputer" - ], - "extraction": null, - "common": false - }, - { - "name": "AzureCloudServiceDeployment", - "displayName": "AzureCloudServiceDeployment", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "VMComputer" - ], - "extraction": null, - "common": false - }, - { - "name": "AzureCloudServiceRoleName", - "displayName": "AzureCloudServiceRoleName", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "VMComputer" - ], - "extraction": null, - "common": false - }, - { - "name": "AzureCloudServiceRoleType", - "displayName": "AzureCloudServiceRoleType", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "VMComputer" - ], - "extraction": null, - "common": false - }, - { - "name": "AzureCloudServiceInstanceId", - "displayName": "AzureCloudServiceInstanceId", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "VMComputer" - ], - "extraction": null, - "common": false - }, - { - "name": "AzureVmScaleSetName", - "displayName": "AzureVmScaleSetName", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "VMComputer" - ], - "extraction": null, - "common": false - }, - { - "name": "AzureVmScaleSetDeployment", - "displayName": "AzureVmScaleSetDeployment", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "VMComputer" - ], - "extraction": null, - "common": false - }, - { - "name": "AzureVmScaleSetResourceId", - "displayName": "AzureVmScaleSetResourceId", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "VMComputer" - ], - "extraction": null, - "common": false - }, - { - "name": "AzureVmScaleSetInstanceId", - "displayName": "AzureVmScaleSetInstanceId", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "VMComputer" - ], - "extraction": null, - "common": false - }, - { - "name": "AzureServiceFabricClusterId", - "displayName": "AzureServiceFabricClusterId", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "VMComputer" - ], - "extraction": null, - "common": false - }, - { - "name": "AzureServiceFabricClusterName", - "displayName": "AzureServiceFabricClusterName", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "VMComputer" - ], - "extraction": null, - "common": false - }, - { - "name": "RemoteIp", - "displayName": "RemoteIp", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "VMConnection" - ], - "extraction": null, - "common": false - }, - { - "name": "RemoteDnsQuestions", - "displayName": "RemoteDnsQuestions", - "type": "String", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "VMConnection" - ], - "extraction": null, - "common": false - }, - { - "name": "RemoteDnsCanonicalNames", - "displayName": "RemoteDnsCanonicalNames", - "type": "String", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "VMConnection" - ], - "extraction": null, - "common": false - }, - { - "name": "RemoteClassification", - "displayName": "RemoteClassification", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "VMConnection" - ], - "extraction": null, - "common": false - }, - { - "name": "RemoteLongitude", - "displayName": "RemoteLongitude", - "type": "Float", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "VMConnection" - ], - "extraction": null, - "common": false - }, - { - "name": "RemoteLatitude", - "displayName": "RemoteLatitude", - "type": "Float", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "VMConnection" - ], - "extraction": null, - "common": false - }, - { - "name": "RemoteCountry", - "displayName": "RemoteCountry", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "VMConnection" - ], - "extraction": null, - "common": false - }, - { - "name": "LinksFailed", - "displayName": "LinksFailed", - "type": "BigInt", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "VMConnection" - ], - "extraction": null, - "common": false - }, - { - "name": "MaliciousIp", - "displayName": "MaliciousIp", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "VMConnection" - ], - "extraction": null, - "common": false - }, - { - "name": "ExecutableName", - "displayName": "ExecutableName", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "VMProcess" - ], - "extraction": null, - "common": false - }, - { - "name": "FirstPid", - "displayName": "FirstPid", - "type": "Int", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "VMProcess" - ], - "extraction": null, - "common": false - }, - { - "name": "CompanyName", - "displayName": "CompanyName", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "VMProcess" - ], - "extraction": null, - "common": false - }, - { - "name": "InternalName", - "displayName": "InternalName", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "VMProcess" - ], - "extraction": null, - "common": false - }, - { - "name": "FileVersion", - "displayName": "FileVersion", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "VMProcess" - ], - "extraction": null, - "common": false - }, - { - "name": "ExecutablePath", - "displayName": "ExecutablePath", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "VMProcess" - ], - "extraction": null, - "common": false - }, - { - "name": "WorkingDirectory", - "displayName": "WorkingDirectory", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "VMProcess" - ], - "extraction": null, - "common": false - }, - { - "name": "Services", - "displayName": "Services", - "type": "Dynamic", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "VMProcess" - ], - "extraction": null, - "common": false - }, - { - "name": "FileUri", - "displayName": "FileUri", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "W3CIISLog" - ], - "extraction": null, - "common": false - }, - { - "name": "FileOffset", - "displayName": "FileOffset", - "type": "Int", - "indexed": false, - "stored": true, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "W3CIISLog" - ], - "extraction": null, - "common": false - }, - { - "name": "Date", - "displayName": "Date", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "W3CIISLog" - ], - "extraction": null, - "common": false - }, - { - "name": "sSiteName", - "displayName": "sSiteName", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "W3CIISLog" - ], - "extraction": null, - "common": false - }, - { - "name": "sComputerName", - "displayName": "sComputerName", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": true, - "display": false, - "ownerType": [ - "W3CIISLog" - ], - "extraction": null, - "common": false - }, - { - "name": "sIP", - "displayName": "sIP", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "W3CIISLog" - ], - "extraction": null, - "common": false - }, - { - "name": "csMethod", - "displayName": "csMethod", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "W3CIISLog" - ], - "extraction": null, - "common": false - }, - { - "name": "csUriStem", - "displayName": "csUriStem", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "W3CIISLog" - ], - "extraction": null, - "common": false - }, - { - "name": "csUriQuery", - "displayName": "csUriQuery", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "W3CIISLog" - ], - "extraction": null, - "common": false - }, - { - "name": "csUserName", - "displayName": "csUserName", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "W3CIISLog" - ], - "extraction": null, - "common": false - }, - { - "name": "cIP", - "displayName": "cIP", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "W3CIISLog" - ], - "extraction": null, - "common": false - }, - { - "name": "csVersion", - "displayName": "csVersion", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "W3CIISLog" - ], - "extraction": null, - "common": false - }, - { - "name": "csCookie", - "displayName": "csCookie", - "type": "String", - "indexed": false, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "W3CIISLog" - ], - "extraction": null, - "common": false - }, - { - "name": "csReferer", - "displayName": "csReferer", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "W3CIISLog" - ], - "extraction": null, - "common": false - }, - { - "name": "csHost", - "displayName": "csHost", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "W3CIISLog" - ], - "extraction": null, - "common": false - }, - { - "name": "scStatus", - "displayName": "scStatus", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "W3CIISLog" - ], - "extraction": null, - "common": false - }, - { - "name": "scSubStatus", - "displayName": "scSubStatus", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "W3CIISLog" - ], - "extraction": null, - "common": false - }, - { - "name": "scWin32Status", - "displayName": "scWin32Status", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "W3CIISLog" - ], - "extraction": null, - "common": false - }, - { - "name": "scBytes", - "displayName": "scBytes", - "type": "BigInt", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "W3CIISLog" - ], - "extraction": null, - "common": false - }, - { - "name": "csBytes", - "displayName": "csBytes", - "type": "BigInt", - "indexed": true, - "stored": true, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "W3CIISLog" - ], - "extraction": null, - "common": false - }, - { - "name": "UpdateStatus", - "displayName": "UpdateStatus", - "type": "String", - "indexed": true, - "stored": true, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "WVDSessionHostManagement" - ], - "extraction": null, - "common": false - }, - { - "name": "Headers", - "displayName": "Headers", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": false, - "ownerType": [ - "WebPubSubHttpRequest" - ], - "extraction": null, - "common": false - }, - { - "name": "SessionHostName", - "displayName": "SessionHostName", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "WVDAgentHealthStatus", - "WVDConnections", - "WVDHostRegistrations" - ], - "extraction": null, - "common": false - }, - { - "name": "SessionHostResourceId", - "displayName": "SessionHostResourceId", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "WVDAgentHealthStatus" - ], - "extraction": null, - "common": false - }, - { - "name": "SxSStackVersion", - "displayName": "SxSStackVersion", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "WVDAgentHealthStatus" - ], - "extraction": null, - "common": false - }, - { - "name": "AllowNewSessions", - "displayName": "AllowNewSessions", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "WVDAgentHealthStatus" - ], - "extraction": null, - "common": false - }, - { - "name": "StatusTimeStamp", - "displayName": "StatusTimeStamp", - "type": "DateTime", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "WVDAgentHealthStatus" - ], - "extraction": null, - "common": false - }, - { - "name": "LastHeartBeat", - "displayName": "LastHeartBeat", - "type": "DateTime", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "WVDAgentHealthStatus" - ], - "extraction": null, - "common": false - }, - { - "name": "EndpointState", - "displayName": "EndpointState", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": true, - "display": false, - "ownerType": [ - "WVDAgentHealthStatus" - ], - "extraction": null, - "common": false - }, - { - "name": "UpgradeState", - "displayName": "UpgradeState", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "WVDAgentHealthStatus" - ], - "extraction": null, - "common": false - }, - { - "name": "UpgradeErrorMsg", - "displayName": "UpgradeErrorMsg", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "WVDAgentHealthStatus" - ], - "extraction": null, - "common": false - }, - { - "name": "LastUpgradeTimeStamp", - "displayName": "LastUpgradeTimeStamp", - "type": "DateTime", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "WVDAgentHealthStatus" - ], - "extraction": null, - "common": false - }, - { - "name": "SessionHostHealthCheckResult", - "displayName": "SessionHostHealthCheckResult", - "type": "Dynamic", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": false, - "ownerType": [ - "WVDAgentHealthStatus" - ], - "extraction": null, - "common": false - }, - { - "name": "ActiveSessions", - "displayName": "ActiveSessions", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "WVDAgentHealthStatus" - ], - "extraction": null, - "common": false - }, - { - "name": "InactiveSessions", - "displayName": "InactiveSessions", - "type": "String", - "indexed": false, - "stored": false, - "facet": false, - "hidden": false, - "display": true, - "ownerType": [ - "WVDAgentHealthStatus" - ], - "extraction": null, - "common": false - }, - { - "name": "ServerSkippedFramesPercentage", - "displayName": "ServerSkippedFramesPercentage", - "type": "Int", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "WVDConnectionGraphicsDataPreview" - ], - "extraction": null, - "common": false - }, - { - "name": "NetworkSkippedFramesPercentage", - "displayName": "NetworkSkippedFramesPercentage", - "type": "Int", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "WVDConnectionGraphicsDataPreview" - ], - "extraction": null, - "common": false - }, - { - "name": "ClientSkippedFramesPercentage", - "displayName": "ClientSkippedFramesPercentage", - "type": "Int", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "WVDConnectionGraphicsDataPreview" - ], - "extraction": null, - "common": false - }, - { - "name": "EncodingDelayOnServerInMs", - "displayName": "EncodingDelayOnServerInMs", - "type": "Int", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "WVDConnectionGraphicsDataPreview" - ], - "extraction": null, - "common": false - }, - { - "name": "DecodingTimeOnClientInMs", - "displayName": "DecodingTimeOnClientInMs", - "type": "Int", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "WVDConnectionGraphicsDataPreview" - ], - "extraction": null, - "common": false - }, - { - "name": "RenderingTimeOnClientInMs", - "displayName": "RenderingTimeOnClientInMs", - "type": "Int", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "WVDConnectionGraphicsDataPreview" - ], - "extraction": null, - "common": false - }, - { - "name": "EstRoundTripTimeInMs", - "displayName": "EstRoundTripTimeInMs", - "type": "Int", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "WVDConnectionGraphicsDataPreview", - "WVDConnectionNetworkData" - ], - "extraction": null, - "common": false - }, - { - "name": "EstAvailableBandwidthKBps", - "displayName": "EstAvailableBandwidthKBps", - "type": "Int", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "WVDConnectionGraphicsDataPreview", - "WVDConnectionNetworkData" - ], - "extraction": null, - "common": false - }, - { - "name": "CompressedFrameSizeInBytes", - "displayName": "CompressedFrameSizeInBytes", - "type": "Int", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "WVDConnectionGraphicsDataPreview" - ], - "extraction": null, - "common": false - }, - { - "name": "EndToEndDelayInMs", - "displayName": "EndToEndDelayInMs", - "type": "Int", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "WVDConnectionGraphicsDataPreview" - ], - "extraction": null, - "common": false - }, - { - "name": "ClientSideIPAddress", - "displayName": "ClientSideIPAddress", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "WVDConnections", - "WVDFeeds", - "WVDManagement" - ], - "extraction": null, - "common": false - }, - { - "name": "PredecessorConnectionId", - "displayName": "PredecessorConnectionId", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "WVDConnections" - ], - "extraction": null, - "common": false - }, - { - "name": "ResourceAlias", - "displayName": "ResourceAlias", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "WVDConnections" - ], - "extraction": null, - "common": false - }, - { - "name": "SessionHostAzureVmId", - "displayName": "SessionHostAzureVmId", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "WVDConnections" - ], - "extraction": null, - "common": false - }, - { - "name": "SessionHostIPAddress", - "displayName": "SessionHostIPAddress", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "WVDConnections", - "WVDHostRegistrations" - ], - "extraction": null, - "common": false - }, - { - "name": "SessionHostOSVersion", - "displayName": "SessionHostOSVersion", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "WVDConnections" - ], - "extraction": null, - "common": false - }, - { - "name": "SessionHostOSDescription", - "displayName": "SessionHostOSDescription", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "WVDConnections" - ], - "extraction": null, - "common": false - }, - { - "name": "SessionHostAgentVersion", - "displayName": "SessionHostAgentVersion", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "WVDConnections" - ], - "extraction": null, - "common": false - }, - { - "name": "SessionHostSxSStackVersion", - "displayName": "SessionHostSxSStackVersion", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "WVDConnections" - ], - "extraction": null, - "common": false - }, - { - "name": "SessionHostSessionId", - "displayName": "SessionHostSessionId", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "WVDConnections" - ], - "extraction": null, - "common": false - }, - { - "name": "GatewayRegion", - "displayName": "GatewayRegion", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "WVDConnections" - ], - "extraction": null, - "common": false - }, - { - "name": "UdpUse", - "displayName": "UdpUse", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "WVDConnections" - ], - "extraction": null, - "common": false - }, - { - "name": "Code", - "displayName": "Code", - "type": "BigInt", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "WVDErrors" - ], - "extraction": null, - "common": false - }, - { - "name": "CodeSymbolic", - "displayName": "CodeSymbolic", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "WVDErrors" - ], - "extraction": null, - "common": false - }, - { - "name": "ServiceError", - "displayName": "ServiceError", - "type": "Bool", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "WVDErrors" - ], - "extraction": null, - "common": false - }, - { - "name": "RDPTotal", - "displayName": "RDPTotal", - "type": "Int", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "WVDFeeds" - ], - "extraction": null, - "common": false - }, - { - "name": "RDPFail", - "displayName": "RDPFail", - "type": "Int", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "WVDFeeds" - ], - "extraction": null, - "common": false - }, - { - "name": "IconTotal", - "displayName": "IconTotal", - "type": "Int", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "WVDFeeds" - ], - "extraction": null, - "common": false - }, - { - "name": "IconFail", - "displayName": "IconFail", - "type": "Int", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "WVDFeeds" - ], - "extraction": null, - "common": false - }, - { - "name": "Route", - "displayName": "Route", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "WVDManagement" - ], - "extraction": null, - "common": false - }, - { - "name": "ArmObjectScope", - "displayName": "ArmObjectScope", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "WVDManagement" - ], - "extraction": null, - "common": false - }, - { - "name": "ObjectsFetched", - "displayName": "ObjectsFetched", - "type": "Int", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "WVDManagement" - ], - "extraction": null, - "common": false - }, - { - "name": "ObjectsCreated", - "displayName": "ObjectsCreated", - "type": "Int", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "WVDManagement" - ], - "extraction": null, - "common": false - }, - { - "name": "ObjectsUpdated", - "displayName": "ObjectsUpdated", - "type": "Int", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "WVDManagement" - ], - "extraction": null, - "common": false - }, - { - "name": "ObjectsDeleted", - "displayName": "ObjectsDeleted", - "type": "Int", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "WVDManagement" - ], - "extraction": null, - "common": false - }, - { - "name": "UpdateMethod", - "displayName": "UpdateMethod", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "WVDSessionHostManagement" - ], - "extraction": null, - "common": false - }, - { - "name": "OSDiskSaved", - "displayName": "OSDiskSaved", - "type": "Bool", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "WVDSessionHostManagement" - ], - "extraction": null, - "common": false - }, - { - "name": "OSDiskType", - "displayName": "OSDiskType", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "WVDSessionHostManagement" - ], - "extraction": null, - "common": false - }, - { - "name": "CustomScriptAdded", - "displayName": "CustomScriptAdded", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "WVDSessionHostManagement" - ], - "extraction": null, - "common": false - }, - { - "name": "NewVMSize", - "displayName": "NewVMSize", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "WVDSessionHostManagement" - ], - "extraction": null, - "common": false - }, - { - "name": "NewVMSku", - "displayName": "NewVMSku", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "WVDSessionHostManagement" - ], - "extraction": null, - "common": false - }, - { - "name": "ImageSource", - "displayName": "ImageSource", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "WVDSessionHostManagement" - ], - "extraction": null, - "common": false - }, - { - "name": "MaxVMsUnavailableDuringUpdate", - "displayName": "MaxVMsUnavailableDuringUpdate", - "type": "Int", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "WVDSessionHostManagement" - ], - "extraction": null, - "common": false - }, - { - "name": "UpdateType", - "displayName": "UpdateType", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "WVDSessionHostManagement" - ], - "extraction": null, - "common": false - }, - { - "name": "ScheduledTime", - "displayName": "ScheduledTime", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "WVDSessionHostManagement" - ], - "extraction": null, - "common": false - }, - { - "name": "ParentUpdateId", - "displayName": "ParentUpdateId", - "type": "String", - "indexed": false, - "stored": false, - "facet": true, - "hidden": false, - "display": true, - "ownerType": [ - "WVDSessionHostManagement" - ], - "extraction": null, - "common": false - }, - { - "name": "Type", - "displayName": "Type", - "type": "string", - "indexed": true, - "stored": true, - "facet": true, - "hidden": true, - "display": true, - "ownerType": null, - "extraction": null, - "common": false - }, - { - "name": "id", - "displayName": null, - "type": "uuid", - "indexed": true, - "stored": true, - "facet": false, - "hidden": true, - "display": false, - "ownerType": null, - "extraction": null, - "common": false - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oilinkedservicepeY9An/sharedKeys?api-version=2020-08-01", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "api-supported-versions": "2015-03-20, 2020-08-01, 2020-10-01, 2021-06-01, 2022-10-01", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:37:42 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1197", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T083743Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "primarySharedKey": "000000000000", - "secondarySharedKey": "000000000000" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oilinkedservicepeY9An/usages?api-version=2020-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:37:43 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11853", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T083743Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "value": [ - { - "name": { - "value": "DataAnalyzed", - "localizedValue": "Data Analyzed" - }, - "unit": "Bytes", - "currentValue": 0.0, - "limit": -1.0, - "nextResetTime": "2022-11-04T06:00:00Z", - "quotaPeriod": "P1D" - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Thu, 03 Nov 2022 08:37:47 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQxNzgtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14991", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T083748Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": { - "recordingRandomSeed": "1667460681" - } -} diff --git a/sdk/resourcemanager/operationalinsights/armoperationalinsights/testdata/recordings/TestLinkedStorageAccountsTestSuite.json b/sdk/resourcemanager/operationalinsights/armoperationalinsights/testdata/recordings/TestLinkedStorageAccountsTestSuite.json deleted file mode 100644 index 5f4713c81d52..000000000000 --- a/sdk/resourcemanager/operationalinsights/armoperationalinsights/testdata/recordings/TestLinkedStorageAccountsTestSuite.json +++ /dev/null @@ -1,727 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:37:53 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1184", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T083754Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "westus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/StorageAccount_Create?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "1287", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "mode": "Incremental", - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "outputs": { - "storageAccountId": { - "type": "string", - "value": "[resourceId(\u0027Microsoft.Storage/storageAccounts\u0027, parameters(\u0027storageAccountName\u0027))]" - } - }, - "parameters": { - "location": { - "defaultValue": "westus", - "type": "string" - }, - "storageAccountName": { - "defaultValue": "oilinkedstorageaccountx", - "type": "string" - } - }, - "resources": [ - { - "apiVersion": "2022-05-01", - "kind": "StorageV2", - "location": "[parameters(\u0027location\u0027)]", - "name": "[parameters(\u0027storageAccountName\u0027)]", - "properties": { - "accessTier": "Hot", - "allowBlobPublicAccess": true, - "allowCrossTenantReplication": true, - "allowSharedKeyAccess": true, - "defaultToOAuthAuthentication": false, - "dnsEndpointType": "Standard", - "encryption": { - "keySource": "Microsoft.Storage", - "requireInfrastructureEncryption": false, - "services": { - "blob": { - "enabled": true, - "keyType": "Account" - }, - "file": { - "enabled": true, - "keyType": "Account" - } - } - }, - "minimumTlsVersion": "TLS1_2", - "networkAcls": { - "bypass": "AzureServices", - "defaultAction": "Allow", - "ipRules": [], - "virtualNetworkRules": [] - }, - "publicNetworkAccess": "Enabled", - "supportsHttpsTrafficOnly": true - }, - "sku": { - "name": "Standard_RAGRS", - "tier": "Standard" - }, - "type": "Microsoft.Storage/storageAccounts" - } - ], - "variables": {} - } - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/StorageAccount_Create/operationStatuses/08585341422089486770?api-version=2021-04-01", - "Cache-Control": "no-cache", - "Content-Length": "731", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:37:57 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1183", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T083758Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/StorageAccount_Create", - "name": "StorageAccount_Create", - "type": "Microsoft.Resources/deployments", - "properties": { - "templateHash": "15521796827321533963", - "parameters": { - "location": { - "type": "String", - "value": "westus" - }, - "storageAccountName": { - "type": "String", - "value": "oilinkedstorageaccountx" - } - }, - "mode": "Incremental", - "provisioningState": "Accepted", - "timestamp": "2022-11-03T08:37:57.2144142Z", - "duration": "PT0.0004987S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Storage", - "resourceTypes": [ - { - "resourceType": "storageAccounts", - "locations": [ - "westus" - ] - } - ] - } - ], - "dependencies": [] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/StorageAccount_Create/operationStatuses/08585341422089486770?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "20", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:37:58 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11852", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T083758Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/StorageAccount_Create/operationStatuses/08585341422089486770?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "22", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:38:28 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11851", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T083829Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/StorageAccount_Create?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "1121", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:38:29 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11850", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T083830Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/StorageAccount_Create", - "name": "StorageAccount_Create", - "type": "Microsoft.Resources/deployments", - "properties": { - "templateHash": "15521796827321533963", - "parameters": { - "location": { - "type": "String", - "value": "westus" - }, - "storageAccountName": { - "type": "String", - "value": "oilinkedstorageaccountx" - } - }, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2022-11-03T08:38:29.2488422Z", - "duration": "PT32.0349267S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Storage", - "resourceTypes": [ - { - "resourceType": "storageAccounts", - "locations": [ - "westus" - ] - } - ] - } - ], - "dependencies": [], - "outputs": { - "storageAccountId": { - "type": "String", - "value": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/oilinkedstorageaccountx" - } - }, - "outputResources": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/oilinkedstorageaccountx" - } - ] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oilinkedstorageaccountpeY9An?api-version=2021-12-01-preview", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "84", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus", - "properties": { - "retentionInDays": 30, - "sku": { - "name": "PerGB2018" - } - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "api-supported-versions": "2021-12-01-preview", - "Cache-Control": "no-cache", - "Content-Length": "861", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:38:32 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oilinkedstorageaccountpeY9An?api-version=2021-12-01-preview", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1182", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T083833Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "properties": { - "customerId": "00000000-0000-0000-0000-000000000000", - "provisioningState": "Creating", - "sku": { - "name": "PerGB2018", - "lastSkuUpdate": "2022-11-03T08:38:32.1941398Z" - }, - "retentionInDays": 30, - "features": { - "legacy": 0, - "searchVersion": 1, - "enableLogAccessUsingOnlyResourcePermissions": true - }, - "workspaceCapping": { - "dailyQuotaGb": -1.0, - "quotaNextResetTime": "2022-11-04T07:00:00Z", - "dataIngestionStatus": "RespectQuota" - }, - "publicNetworkAccessForIngestion": "Enabled", - "publicNetworkAccessForQuery": "Enabled", - "createdDate": "2022-11-03T08:38:32.1941398Z", - "modifiedDate": "2022-11-03T08:38:32.1941398Z" - }, - "location": "westus", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oilinkedstorageaccountpeY9An", - "name": "oilinkedstorageaccountpeY9An", - "type": "Microsoft.OperationalInsights/workspaces" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oilinkedstorageaccountpeY9An?api-version=2021-12-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "api-supported-versions": "2021-12-01-preview", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:38:32 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11849", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T083833Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "properties": { - "customerId": "00000000-0000-0000-0000-000000000000", - "provisioningState": "Creating", - "sku": { - "name": "PerGB2018", - "lastSkuUpdate": "2022-11-03T08:38:32.1941398Z" - }, - "retentionInDays": 30, - "features": { - "legacy": 0, - "searchVersion": 1, - "enableLogAccessUsingOnlyResourcePermissions": true - }, - "workspaceCapping": { - "dailyQuotaGb": -1.0, - "quotaNextResetTime": "2022-11-04T07:00:00Z", - "dataIngestionStatus": "RespectQuota" - }, - "publicNetworkAccessForIngestion": "Enabled", - "publicNetworkAccessForQuery": "Enabled", - "createdDate": "2022-11-03T08:38:32.1941398Z", - "modifiedDate": "2022-11-03T08:38:32.1941398Z" - }, - "location": "westus", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oilinkedstorageaccountpeY9An", - "name": "oilinkedstorageaccountpeY9An", - "type": "Microsoft.OperationalInsights/workspaces" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oilinkedstorageaccountpeY9An?api-version=2021-12-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "api-supported-versions": "2021-12-01-preview", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:39:04 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11848", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T083904Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "properties": { - "customerId": "00000000-0000-0000-0000-000000000000", - "provisioningState": "Succeeded", - "sku": { - "name": "PerGB2018", - "lastSkuUpdate": "2022-11-03T08:38:32.1941398Z" - }, - "retentionInDays": 30, - "features": { - "legacy": 0, - "searchVersion": 1, - "enableLogAccessUsingOnlyResourcePermissions": true - }, - "workspaceCapping": { - "dailyQuotaGb": -1.0, - "quotaNextResetTime": "2022-11-04T07:00:00Z", - "dataIngestionStatus": "RespectQuota" - }, - "publicNetworkAccessForIngestion": "Enabled", - "publicNetworkAccessForQuery": "Enabled", - "createdDate": "2022-11-03T08:38:32.1941398Z", - "modifiedDate": "2022-11-03T08:38:32.1941398Z" - }, - "location": "westus", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oilinkedstorageaccountpeY9An", - "name": "oilinkedstorageaccountpeY9An", - "type": "Microsoft.OperationalInsights/workspaces" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oilinkedstorageaccountpeY9An/linkedStorageAccounts/CustomLogs?api-version=2020-08-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "190", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "storageAccountIds": [ - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/oilinkedstorageaccountx" - ] - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "api-supported-versions": "2020-08-01", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:39:04 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1181", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T083904Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "properties": { - "dataSourceType": "CustomLogs", - "storageAccountIds": [ - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/oilinkedstorageaccountx" - ] - }, - "location": "westus", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oilinkedstorageaccountpeY9An/linkedstorageaccounts/CustomLogs", - "name": "CustomLogs", - "type": "Microsoft.OperationalInsights/workspaces/linkedstorageaccounts" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oilinkedstorageaccountpeY9An/linkedStorageAccounts?api-version=2020-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "api-supported-versions": "2020-08-01", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:39:05 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11847", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T083905Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "value": [ - { - "properties": { - "dataSourceType": "CustomLogs", - "storageAccountIds": [ - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/oilinkedstorageaccountx" - ] - }, - "location": "westus", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oilinkedstorageaccountpeY9An/linkedstorageaccounts/CustomLogs", - "name": "CustomLogs", - "type": "Microsoft.OperationalInsights/workspaces/linkedstorageaccounts" - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oilinkedstorageaccountpeY9An/linkedStorageAccounts/CustomLogs?api-version=2020-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "api-supported-versions": "2020-08-01", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:39:05 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11846", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T083905Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "properties": { - "dataSourceType": "CustomLogs", - "storageAccountIds": [ - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/oilinkedstorageaccountx" - ] - }, - "location": "westus", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oilinkedstorageaccountpeY9An/linkedstorageaccounts/CustomLogs", - "name": "CustomLogs", - "type": "Microsoft.OperationalInsights/workspaces/linkedstorageaccounts" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oilinkedstorageaccountpeY9An/linkedStorageAccounts/CustomLogs?api-version=2020-08-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "api-supported-versions": "2020-08-01", - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Thu, 03 Nov 2022 08:39:06 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14990", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T083906Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Thu, 03 Nov 2022 08:39:08 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQzMjUtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14989", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T083908Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": { - "recordingRandomSeed": "1667460681" - } -} diff --git a/sdk/resourcemanager/operationalinsights/armoperationalinsights/testdata/recordings/TestSavedSearchesTestSuite.json b/sdk/resourcemanager/operationalinsights/armoperationalinsights/testdata/recordings/TestSavedSearchesTestSuite.json deleted file mode 100644 index bdc93d992095..000000000000 --- a/sdk/resourcemanager/operationalinsights/armoperationalinsights/testdata/recordings/TestSavedSearchesTestSuite.json +++ /dev/null @@ -1,844 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:39:11 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1180", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T083911Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "westus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oisavesearchpeY9An?api-version=2021-12-01-preview", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "84", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus", - "properties": { - "retentionInDays": 30, - "sku": { - "name": "PerGB2018" - } - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "api-supported-versions": "2021-12-01-preview", - "Cache-Control": "no-cache", - "Content-Length": "841", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:39:13 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oisavesearchpeY9An?api-version=2021-12-01-preview", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1179", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T083913Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "properties": { - "customerId": "00000000-0000-0000-0000-000000000000", - "provisioningState": "Creating", - "sku": { - "name": "PerGB2018", - "lastSkuUpdate": "2022-11-03T08:39:12.5700248Z" - }, - "retentionInDays": 30, - "features": { - "legacy": 0, - "searchVersion": 1, - "enableLogAccessUsingOnlyResourcePermissions": true - }, - "workspaceCapping": { - "dailyQuotaGb": -1.0, - "quotaNextResetTime": "2022-11-03T20:00:00Z", - "dataIngestionStatus": "RespectQuota" - }, - "publicNetworkAccessForIngestion": "Enabled", - "publicNetworkAccessForQuery": "Enabled", - "createdDate": "2022-11-03T08:39:12.5700248Z", - "modifiedDate": "2022-11-03T08:39:12.5700248Z" - }, - "location": "westus", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oisavesearchpeY9An", - "name": "oisavesearchpeY9An", - "type": "Microsoft.OperationalInsights/workspaces" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oisavesearchpeY9An?api-version=2021-12-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "api-supported-versions": "2021-12-01-preview", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:39:13 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11845", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T083914Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "properties": { - "customerId": "00000000-0000-0000-0000-000000000000", - "provisioningState": "Succeeded", - "sku": { - "name": "PerGB2018", - "lastSkuUpdate": "2022-11-03T08:39:12.5700248Z" - }, - "retentionInDays": 30, - "features": { - "legacy": 0, - "searchVersion": 1, - "enableLogAccessUsingOnlyResourcePermissions": true - }, - "workspaceCapping": { - "dailyQuotaGb": -1.0, - "quotaNextResetTime": "2022-11-03T20:00:00Z", - "dataIngestionStatus": "RespectQuota" - }, - "publicNetworkAccessForIngestion": "Enabled", - "publicNetworkAccessForQuery": "Enabled", - "createdDate": "2022-11-03T08:39:12.5700248Z", - "modifiedDate": "2022-11-03T08:39:12.5700248Z" - }, - "location": "westus", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oisavesearchpeY9An", - "name": "oisavesearchpeY9An", - "type": "Microsoft.OperationalInsights/workspaces" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oisavesearchpeY9An/savedSearches/00000000-0000-0000-0000-00000000000?api-version=2020-08-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "289", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "category": "Saved Search Test Category", - "displayName": "Create or Update Saved Search Test", - "functionAlias": "heartbeat_func", - "functionParameters": "a:int=1", - "query": "Heartbeat | summarize Count() by Computer | take a", - "tags": [ - { - "name": "Group", - "value": "Computer" - } - ], - "version": 2 - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:39:15 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1178", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T083915Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oisavesearchpeY9An/savedSearches/00000000-0000-0000-0000-00000000000", - "etag": "W/\u0022datetime\u00272022-11-03T08%3A39%3A15.3883313Z\u0027\u0022", - "properties": { - "category": "Saved Search Test Category", - "displayName": "Create or Update Saved Search Test", - "query": "Heartbeat | summarize Count() by Computer | take a", - "tags": [ - { - "name": "Group", - "value": "Computer" - } - ], - "functionAlias": "heartbeat_func", - "functionParameters": "a:int=1", - "version": 2 - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oisavesearchpeY9An/savedSearches?api-version=2020-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:39:16 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11844", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T083916Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oisavesearchpeY9An/savedSearches/00000000-0000-0000-0000-00000000000", - "etag": "W/\u0022datetime\u00272022-11-03T08%3A39%3A15.3883313Z\u0027\u0022", - "properties": { - "category": "Saved Search Test Category", - "displayName": "Create or Update Saved Search Test", - "query": "Heartbeat | summarize Count() by Computer | take a", - "tags": [ - { - "name": "Group", - "value": "Computer" - } - ], - "functionAlias": "heartbeat_func", - "functionParameters": "a:int=1", - "version": 2 - }, - "name": "00000000-0000-0000-0000-00000000000", - "type": "Microsoft.OperationalInsights/savedSearches" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oisavesearchpeY9An/savedSearches/LogManagement(oisavesearchpeY9An)_LogManagement|AllEvents", - "properties": { - "displayName": "All Events", - "category": "Log Management", - "query": "Event | sort by TimeGenerated desc\r\n// Oql: Type=Event // Args: {OQ: True; WorkspaceId: 00000000-0000-0000-0000-000000000000} // Settings: {PTT: True; SortI: True; SortF: True} // Version: 0.1.122", - "version": 2 - }, - "name": "LogManagement(oisavesearchpeY9An)_LogManagement|AllEvents", - "type": "Microsoft.OperationalInsights/savedSearches" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oisavesearchpeY9An/savedSearches/LogManagement(oisavesearchpeY9An)_LogManagement|EventsWithStartedinEventID", - "properties": { - "displayName": "Count of Events containing the word \u0022started\u0022 grouped by EventID", - "category": "Log Management", - "query": "search in (Event) \u0022started\u0022 | summarize AggregatedValue = count() by EventID\r\n// Oql: Type=Event \u0022started\u0022 | Measure count() by EventID // Args: {OQ: True; WorkspaceId: 00000000-0000-0000-0000-000000000000} // Settings: {PTT: True; SortI: True; SortF: True} // Version: 0.1.122", - "version": 2 - }, - "name": "LogManagement(oisavesearchpeY9An)_LogManagement|EventsWithStartedinEventID", - "type": "Microsoft.OperationalInsights/savedSearches" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oisavesearchpeY9An/savedSearches/LogManagement(oisavesearchpeY9An)_LogManagement|EventsByEventLog", - "properties": { - "displayName": "Count of Events grouped by Event Log", - "category": "Log Management", - "query": "Event | summarize AggregatedValue = count() by EventLog\r\n// Oql: Type=Event | Measure count() by EventLog // Args: {OQ: True; WorkspaceId: 00000000-0000-0000-0000-000000000000} // Settings: {PTT: True; SortI: True; SortF: True} // Version: 0.1.122", - "version": 2 - }, - "name": "LogManagement(oisavesearchpeY9An)_LogManagement|EventsByEventLog", - "type": "Microsoft.OperationalInsights/savedSearches" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oisavesearchpeY9An/savedSearches/LogManagement(oisavesearchpeY9An)_LogManagement|EventsByEventSource", - "properties": { - "displayName": "Count of Events grouped by Event Source", - "category": "Log Management", - "query": "Event | summarize AggregatedValue = count() by Source\r\n// Oql: Type=Event | Measure count() by Source // Args: {OQ: True; WorkspaceId: 00000000-0000-0000-0000-000000000000} // Settings: {PTT: True; SortI: True; SortF: True} // Version: 0.1.122", - "version": 2 - }, - "name": "LogManagement(oisavesearchpeY9An)_LogManagement|EventsByEventSource", - "type": "Microsoft.OperationalInsights/savedSearches" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oisavesearchpeY9An/savedSearches/LogManagement(oisavesearchpeY9An)_LogManagement|EventsByEventsID", - "properties": { - "displayName": "Count of Events grouped by Event ID", - "category": "Log Management", - "query": "Event | summarize AggregatedValue = count() by EventID\r\n// Oql: Type=Event | Measure count() by EventID // Args: {OQ: True; WorkspaceId: 00000000-0000-0000-0000-000000000000} // Settings: {PTT: True; SortI: True; SortF: True} // Version: 0.1.122", - "version": 2 - }, - "name": "LogManagement(oisavesearchpeY9An)_LogManagement|EventsByEventsID", - "type": "Microsoft.OperationalInsights/savedSearches" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oisavesearchpeY9An/savedSearches/LogManagement(oisavesearchpeY9An)_LogManagement|WarningEvents", - "properties": { - "displayName": "All Events with level \u0022Warning\u0022", - "category": "Log Management", - "query": "Event | where EventLevelName == \u0022warning\u0022 | sort by TimeGenerated desc\r\n// Oql: Type=Event EventLevelName=warning // Args: {OQ: True; WorkspaceId: 00000000-0000-0000-0000-000000000000} // Settings: {PTT: True; SortI: True; SortF: True} // Version: 0.1.122", - "version": 2 - }, - "name": "LogManagement(oisavesearchpeY9An)_LogManagement|WarningEvents", - "type": "Microsoft.OperationalInsights/savedSearches" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oisavesearchpeY9An/savedSearches/LogManagement(oisavesearchpeY9An)_LogManagement|CountOfWarningEvents", - "properties": { - "displayName": "Count of Events with level \u0022Warning\u0022 grouped by Event ID", - "category": "Log Management", - "query": "Event | where EventLevelName == \u0022warning\u0022 | summarize AggregatedValue = count() by EventID\r\n// Oql: Type=Event EventLevelName=warning | Measure count() by EventID // Args: {OQ: True; WorkspaceId: 00000000-0000-0000-0000-000000000000} // Settings: {PTT: True; SortI: True; SortF: True} // Version: 0.1.122", - "version": 2 - }, - "name": "LogManagement(oisavesearchpeY9An)_LogManagement|CountOfWarningEvents", - "type": "Microsoft.OperationalInsights/savedSearches" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oisavesearchpeY9An/savedSearches/LogManagement(oisavesearchpeY9An)_LogManagement|NoOfConnectionsToOMSDKService", - "properties": { - "displayName": "How many connections to Operations Manager\u0027s SDK service by day", - "category": "Log Management", - "query": "Event | where EventID == 26328 and EventLog == \u0022Operations Manager\u0022 | summarize AggregatedValue = count() by bin(TimeGenerated, 1d) | sort by TimeGenerated desc\r\n// Oql: Type=Event EventID=26328 EventLog=\u0022Operations Manager\u0022 | Measure count() interval 1DAY // Args: {OQ: True; WorkspaceId: 00000000-0000-0000-0000-000000000000} // Settings: {PTT: True; SortI: True; SortF: True} // Version: 0.1.122", - "version": 2 - }, - "name": "LogManagement(oisavesearchpeY9An)_LogManagement|NoOfConnectionsToOMSDKService", - "type": "Microsoft.OperationalInsights/savedSearches" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oisavesearchpeY9An/savedSearches/LogManagement(oisavesearchpeY9An)_LogManagement|EventsInOMBetween2000to3000", - "properties": { - "displayName": "Events in the Operations Manager Event Log whose Event ID is in the range between 2000 and 3000", - "category": "Log Management", - "query": "Event | where EventLog == \u0022Operations Manager\u0022 and EventID \u003E= 2000 and EventID \u003C= 3000 | sort by TimeGenerated desc\r\n// Oql: Type=Event EventLog=\u0022Operations Manager\u0022 EventID:[2000..3000] // Args: {OQ: True; WorkspaceId: 00000000-0000-0000-0000-000000000000} // Settings: {PTT: True; SortI: True; SortF: True} // Version: 0.1.122", - "version": 2 - }, - "name": "LogManagement(oisavesearchpeY9An)_LogManagement|EventsInOMBetween2000to3000", - "type": "Microsoft.OperationalInsights/savedSearches" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oisavesearchpeY9An/savedSearches/LogManagement(oisavesearchpeY9An)_LogManagement|ServerRestartTime", - "properties": { - "displayName": "When did my servers initiate restart?", - "category": "Log Management", - "query": "search in (Event) \u0022shutdown\u0022 and EventLog == \u0022System\u0022 and Source == \u0022User32\u0022 and EventID == 1074 | sort by TimeGenerated desc | project TimeGenerated, Computer\r\n// Oql: shutdown Type=Event EventLog=System Source=User32 EventID=1074 | Select TimeGenerated,Computer // Args: {OQ: True; WorkspaceId: 00000000-0000-0000-0000-000000000000} // Settings: {PTT: True; SortI: True; SortF: True} // Version: 0.1.122", - "version": 2 - }, - "name": "LogManagement(oisavesearchpeY9An)_LogManagement|ServerRestartTime", - "type": "Microsoft.OperationalInsights/savedSearches" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oisavesearchpeY9An/savedSearches/LogManagement(oisavesearchpeY9An)_LogManagement|WindowsFireawallPolicySettingsChanged", - "properties": { - "displayName": "Windows Firewall Policy settings have changed", - "category": "Log Management", - "query": "Event | where EventLog == \u0022Microsoft-Windows-Windows Firewall With Advanced Security/Firewall\u0022 and EventID == 2008 | sort by TimeGenerated desc\r\n// Oql: Type=Event EventLog=\u0022Microsoft-Windows-Windows Firewall With Advanced Security/Firewall\u0022 EventID=2008 // Args: {OQ: True; WorkspaceId: 00000000-0000-0000-0000-000000000000} // Settings: {PTT: True; SortI: True; SortF: True} // Version: 0.1.122", - "version": 2 - }, - "name": "LogManagement(oisavesearchpeY9An)_LogManagement|WindowsFireawallPolicySettingsChanged", - "type": "Microsoft.OperationalInsights/savedSearches" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oisavesearchpeY9An/savedSearches/LogManagement(oisavesearchpeY9An)_LogManagement|WindowsFireawallPolicySettingsChangedByMachines", - "properties": { - "displayName": "On which machines and how many times have Windows Firewall Policy settings changed", - "category": "Log Management", - "query": "Event | where EventLog == \u0022Microsoft-Windows-Windows Firewall With Advanced Security/Firewall\u0022 and EventID == 2008 | summarize AggregatedValue = count() by Computer | limit 500000\r\n// Oql: Type=Event EventLog=\u0022Microsoft-Windows-Windows Firewall With Advanced Security/Firewall\u0022 EventID=2008 | measure count() by Computer | top 500000 // Args: {OQ: True; WorkspaceId: 00000000-0000-0000-0000-000000000000} // Settings: {PTT: True; SortI: True; SortF: True} // Version: 0.1.122", - "version": 2 - }, - "name": "LogManagement(oisavesearchpeY9An)_LogManagement|WindowsFireawallPolicySettingsChangedByMachines", - "type": "Microsoft.OperationalInsights/savedSearches" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oisavesearchpeY9An/savedSearches/LogManagement(oisavesearchpeY9An)_LogManagement|ListAllIISLogEntries", - "properties": { - "displayName": "All IIS Log Entries", - "category": "Log Management", - "query": "search * | extend Type = $table | where Type == W3CIISLog | sort by TimeGenerated desc\r\n// Oql: Type=W3CIISLog // Args: {OQ: True; WorkspaceId: 00000000-0000-0000-0000-000000000000} // Settings: {PEF: True; SortI: True; SortF: True} // Version: 0.1.122", - "version": 2 - }, - "name": "LogManagement(oisavesearchpeY9An)_LogManagement|ListAllIISLogEntries", - "type": "Microsoft.OperationalInsights/savedSearches" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oisavesearchpeY9An/savedSearches/LogManagement(oisavesearchpeY9An)_LogManagement|DisplayBreakdownRespondCodes", - "properties": { - "displayName": "Shows breakdown of response codes", - "category": "Log Management", - "query": "search * | extend Type = $table | where Type == W3CIISLog | summarize AggregatedValue = count() by scStatus\r\n// Oql: Type=W3CIISLog | Measure count() by scStatus // Args: {OQ: True; WorkspaceId: 00000000-0000-0000-0000-000000000000} // Settings: {PEF: True; SortI: True; SortF: True} // Version: 0.1.122", - "version": 2 - }, - "name": "LogManagement(oisavesearchpeY9An)_LogManagement|DisplayBreakdownRespondCodes", - "type": "Microsoft.OperationalInsights/savedSearches" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oisavesearchpeY9An/savedSearches/LogManagement(oisavesearchpeY9An)_LogManagement|FindMaximumTimeTakenForEachPage", - "properties": { - "displayName": "Find the maximum time taken for each page", - "category": "Log Management", - "query": "search * | extend Type = $table | where Type == W3CIISLog | summarize AggregatedValue = max(TimeTaken) by csUriStem\r\n// Oql: Type=W3CIISLog | Measure Max(TimeTaken) by csUriStem // Args: {OQ: True; WorkspaceId: 00000000-0000-0000-0000-000000000000} // Settings: {PEF: True; SortI: True; SortF: True} // Version: 0.1.122", - "version": 2 - }, - "name": "LogManagement(oisavesearchpeY9An)_LogManagement|FindMaximumTimeTakenForEachPage", - "type": "Microsoft.OperationalInsights/savedSearches" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oisavesearchpeY9An/savedSearches/LogManagement(oisavesearchpeY9An)_LogManagement|Show404PagesList", - "properties": { - "displayName": "Shows which pages people are getting a 404 for", - "category": "Log Management", - "query": "search scStatus == 404 | extend Type = $table | where Type == W3CIISLog | summarize AggregatedValue = count() by csUriStem\r\n// Oql: Type=W3CIISLog scStatus=404 | Measure count() by csUriStem // Args: {OQ: True; WorkspaceId: 00000000-0000-0000-0000-000000000000} // Settings: {PEF: True; SortI: True; SortF: True} // Version: 0.1.122", - "version": 2 - }, - "name": "LogManagement(oisavesearchpeY9An)_LogManagement|Show404PagesList", - "type": "Microsoft.OperationalInsights/savedSearches" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oisavesearchpeY9An/savedSearches/LogManagement(oisavesearchpeY9An)_LogManagement|AverageHTTPRequestTimeHTTPMethod", - "properties": { - "displayName": "Average HTTP Request time by HTTP Method", - "category": "Log Management", - "query": "search * | extend Type = $table | where Type == W3CIISLog | summarize AggregatedValue = avg(TimeTaken) by csMethod\r\n// Oql: Type=W3CIISLog | Measure Avg(TimeTaken) by csMethod // Args: {OQ: True; WorkspaceId: 00000000-0000-0000-0000-000000000000} // Settings: {PEF: True; SortI: True; SortF: True} // Version: 0.1.122", - "version": 2 - }, - "name": "LogManagement(oisavesearchpeY9An)_LogManagement|AverageHTTPRequestTimeHTTPMethod", - "type": "Microsoft.OperationalInsights/savedSearches" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oisavesearchpeY9An/savedSearches/LogManagement(oisavesearchpeY9An)_LogManagement|ShowServersThrowingInternalServerError", - "properties": { - "displayName": "Shows servers that are throwing internal server error", - "category": "Log Management", - "query": "search scStatus == 500 | extend Type = $table | where Type == W3CIISLog | summarize AggregatedValue = count() by sComputerName\r\n// Oql: Type=W3CIISLog scStatus=500 | Measure count() by sComputerName // Args: {OQ: True; WorkspaceId: 00000000-0000-0000-0000-000000000000} // Settings: {PEF: True; SortI: True; SortF: True} // Version: 0.1.122", - "version": 2 - }, - "name": "LogManagement(oisavesearchpeY9An)_LogManagement|ShowServersThrowingInternalServerError", - "type": "Microsoft.OperationalInsights/savedSearches" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oisavesearchpeY9An/savedSearches/LogManagement(oisavesearchpeY9An)_LogManagement|CountIISLogEntriesHTTPRequestMethod", - "properties": { - "displayName": "Count of IIS Log Entries by HTTP Request Method", - "category": "Log Management", - "query": "search * | extend Type = $table | where Type == W3CIISLog | summarize AggregatedValue = count() by csMethod\r\n// Oql: Type=W3CIISLog | Measure count() by csMethod // Args: {OQ: True; WorkspaceId: 00000000-0000-0000-0000-000000000000} // Settings: {PEF: True; SortI: True; SortF: True} // Version: 0.1.122", - "version": 2 - }, - "name": "LogManagement(oisavesearchpeY9An)_LogManagement|CountIISLogEntriesHTTPRequestMethod", - "type": "Microsoft.OperationalInsights/savedSearches" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oisavesearchpeY9An/savedSearches/LogManagement(oisavesearchpeY9An)_LogManagement|CountIISLogEntriesHTTPUserAgent", - "properties": { - "displayName": "Count of IIS Log Entries by HTTP User Agent", - "category": "Log Management", - "query": "search * | extend Type = $table | where Type == W3CIISLog | summarize AggregatedValue = count() by csUserAgent\r\n// Oql: Type=W3CIISLog | Measure count() by csUserAgent // Args: {OQ: True; WorkspaceId: 00000000-0000-0000-0000-000000000000} // Settings: {PEF: True; SortI: True; SortF: True} // Version: 0.1.122", - "version": 2 - }, - "name": "LogManagement(oisavesearchpeY9An)_LogManagement|CountIISLogEntriesHTTPUserAgent", - "type": "Microsoft.OperationalInsights/savedSearches" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oisavesearchpeY9An/savedSearches/LogManagement(oisavesearchpeY9An)_LogManagement|CountIISLogEntriesClientIPAddress", - "properties": { - "displayName": "Count of IIS Log Entries by Client IP Address", - "category": "Log Management", - "query": "search * | extend Type = $table | where Type == W3CIISLog | summarize AggregatedValue = count() by cIP\r\n// Oql: Type=W3CIISLog | Measure count() by cIP // Args: {OQ: True; WorkspaceId: 00000000-0000-0000-0000-000000000000} // Settings: {PEF: True; SortI: True; SortF: True} // Version: 0.1.122", - "version": 2 - }, - "name": "LogManagement(oisavesearchpeY9An)_LogManagement|CountIISLogEntriesClientIPAddress", - "type": "Microsoft.OperationalInsights/savedSearches" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oisavesearchpeY9An/savedSearches/LogManagement(oisavesearchpeY9An)_LogManagement|IISLogEntriesForClientIP", - "properties": { - "displayName": "IIS Log Entries for a specific client IP Address (replace with your own)", - "category": "Log Management", - "query": "search cIP == \u0022192.168.0.1\u0022 | extend Type = $table | where Type == W3CIISLog | sort by TimeGenerated desc | project csUriStem, scBytes, csBytes, TimeTaken, scStatus\r\n// Oql: Type=W3CIISLog cIP=\u0022192.168.0.1\u0022 | Select csUriStem,scBytes,csBytes,TimeTaken,scStatus // Args: {OQ: True; WorkspaceId: 00000000-0000-0000-0000-000000000000} // Settings: {PEF: True; SortI: True; SortF: True} // Version: 0.1.122", - "version": 2 - }, - "name": "LogManagement(oisavesearchpeY9An)_LogManagement|IISLogEntriesForClientIP", - "type": "Microsoft.OperationalInsights/savedSearches" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oisavesearchpeY9An/savedSearches/LogManagement(oisavesearchpeY9An)_LogManagement|CountOfIISLogEntriesByURLRequestedByClient", - "properties": { - "displayName": "Count of IIS Log Entries by URL requested by client (without query strings)", - "category": "Log Management", - "query": "search * | extend Type = $table | where Type == W3CIISLog | summarize AggregatedValue = count() by csUriStem\r\n// Oql: Type=W3CIISLog | Measure count() by csUriStem // Args: {OQ: True; WorkspaceId: 00000000-0000-0000-0000-000000000000} // Settings: {PEF: True; SortI: True; SortF: True} // Version: 0.1.122", - "version": 2 - }, - "name": "LogManagement(oisavesearchpeY9An)_LogManagement|CountOfIISLogEntriesByURLRequestedByClient", - "type": "Microsoft.OperationalInsights/savedSearches" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oisavesearchpeY9An/savedSearches/LogManagement(oisavesearchpeY9An)_LogManagement|CountOfIISLogEntriesByHostRequestedByClient", - "properties": { - "displayName": "Count of IIS Log Entries by Host requested by client", - "category": "Log Management", - "query": "search * | extend Type = $table | where Type == W3CIISLog | summarize AggregatedValue = count() by csHost\r\n// Oql: Type=W3CIISLog | Measure count() by csHost // Args: {OQ: True; WorkspaceId: 00000000-0000-0000-0000-000000000000} // Settings: {PEF: True; SortI: True; SortF: True} // Version: 0.1.122", - "version": 2 - }, - "name": "LogManagement(oisavesearchpeY9An)_LogManagement|CountOfIISLogEntriesByHostRequestedByClient", - "type": "Microsoft.OperationalInsights/savedSearches" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oisavesearchpeY9An/savedSearches/LogManagement(oisavesearchpeY9An)_LogManagement|CountOfIISLogEntriesByURLForHost", - "properties": { - "displayName": "Count of IIS Log Entries by URL for the host \u0022www.contoso.com\u0022 (replace with your own)", - "category": "Log Management", - "query": "search csHost == \u0022www.contoso.com\u0022 | extend Type = $table | where Type == W3CIISLog | summarize AggregatedValue = count() by csUriStem\r\n// Oql: Type=W3CIISLog csHost=\u0022www.contoso.com\u0022 | Measure count() by csUriStem // Args: {OQ: True; WorkspaceId: 00000000-0000-0000-0000-000000000000} // Settings: {PEF: True; SortI: True; SortF: True} // Version: 0.1.122", - "version": 2 - }, - "name": "LogManagement(oisavesearchpeY9An)_LogManagement|CountOfIISLogEntriesByURLForHost", - "type": "Microsoft.OperationalInsights/savedSearches" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oisavesearchpeY9An/savedSearches/LogManagement(oisavesearchpeY9An)_LogManagement|TotalBytesSentByClientIPAddress", - "properties": { - "displayName": "Total Bytes sent by Client IP Address", - "category": "Log Management", - "query": "search * | extend Type = $table | where Type == W3CIISLog | summarize AggregatedValue = sum(csBytes) by cIP\r\n// Oql: Type=W3CIISLog | Measure Sum(csBytes) by cIP // Args: {OQ: True; WorkspaceId: 00000000-0000-0000-0000-000000000000} // Settings: {PEF: True; SortI: True; SortF: True} // Version: 0.1.122", - "version": 2 - }, - "name": "LogManagement(oisavesearchpeY9An)_LogManagement|TotalBytesSentByClientIPAddress", - "type": "Microsoft.OperationalInsights/savedSearches" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oisavesearchpeY9An/savedSearches/LogManagement(oisavesearchpeY9An)_LogManagement|TotalBytesReceivedByEachAzureRoleInstance", - "properties": { - "displayName": "Total Bytes received by each Azure Role Instance", - "category": "Log Management", - "query": "search * | extend Type = $table | where Type == W3CIISLog | summarize AggregatedValue = sum(csBytes) by RoleInstance\r\n// Oql: Type=W3CIISLog | Measure Sum(csBytes) by RoleInstance // Args: {OQ: True; WorkspaceId: 00000000-0000-0000-0000-000000000000} // Settings: {PEF: True; SortI: True; SortF: True} // Version: 0.1.122", - "version": 2 - }, - "name": "LogManagement(oisavesearchpeY9An)_LogManagement|TotalBytesReceivedByEachAzureRoleInstance", - "type": "Microsoft.OperationalInsights/savedSearches" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oisavesearchpeY9An/savedSearches/LogManagement(oisavesearchpeY9An)_LogManagement|TotalBytesReceivedByEachIISComputer", - "properties": { - "displayName": "Total Bytes received by each IIS Computer", - "category": "Log Management", - "query": "search * | extend Type = $table | where Type == W3CIISLog | summarize AggregatedValue = sum(csBytes) by Computer | limit 500000\r\n// Oql: Type=W3CIISLog | Measure Sum(csBytes) by Computer | top 500000 // Args: {OQ: True; WorkspaceId: 00000000-0000-0000-0000-000000000000} // Settings: {PEF: True; SortI: True; SortF: True} // Version: 0.1.122", - "version": 2 - }, - "name": "LogManagement(oisavesearchpeY9An)_LogManagement|TotalBytesReceivedByEachIISComputer", - "type": "Microsoft.OperationalInsights/savedSearches" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oisavesearchpeY9An/savedSearches/LogManagement(oisavesearchpeY9An)_LogManagement|TotalBytesRespondedToClientsByEachIISServerIPAddress", - "properties": { - "displayName": "Total Bytes responded back to clients by each IIS ServerIP Address", - "category": "Log Management", - "query": "search * | extend Type = $table | where Type == W3CIISLog | summarize AggregatedValue = sum(scBytes) by sIP\r\n// Oql: Type=W3CIISLog | Measure Sum(scBytes) by sIP // Args: {OQ: True; WorkspaceId: 00000000-0000-0000-0000-000000000000} // Settings: {PEF: True; SortI: True; SortF: True} // Version: 0.1.122", - "version": 2 - }, - "name": "LogManagement(oisavesearchpeY9An)_LogManagement|TotalBytesRespondedToClientsByEachIISServerIPAddress", - "type": "Microsoft.OperationalInsights/savedSearches" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oisavesearchpeY9An/savedSearches/LogManagement(oisavesearchpeY9An)_LogManagement|TotalBytesRespondedToClientsByClientIPAddress", - "properties": { - "displayName": "Total Bytes responded back to clients by Client IP Address", - "category": "Log Management", - "query": "search * | extend Type = $table | where Type == W3CIISLog | summarize AggregatedValue = sum(scBytes) by cIP\r\n// Oql: Type=W3CIISLog | Measure Sum(scBytes) by cIP // Args: {OQ: True; WorkspaceId: 00000000-0000-0000-0000-000000000000} // Settings: {PEF: True; SortI: True; SortF: True} // Version: 0.1.122", - "version": 2 - }, - "name": "LogManagement(oisavesearchpeY9An)_LogManagement|TotalBytesRespondedToClientsByClientIPAddress", - "type": "Microsoft.OperationalInsights/savedSearches" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oisavesearchpeY9An/savedSearches/LogManagement(oisavesearchpeY9An)_LogManagement|AverageHTTPRequestTimeByClientIPAddress", - "properties": { - "displayName": "Average HTTP Request time by Client IP Address", - "category": "Log Management", - "query": "search * | extend Type = $table | where Type == W3CIISLog | summarize AggregatedValue = avg(TimeTaken) by cIP\r\n// Oql: Type=W3CIISLog | Measure Avg(TimeTaken) by cIP // Args: {OQ: True; WorkspaceId: 00000000-0000-0000-0000-000000000000} // Settings: {PEF: True; SortI: True; SortF: True} // Version: 0.1.122", - "version": 2 - }, - "name": "LogManagement(oisavesearchpeY9An)_LogManagement|AverageHTTPRequestTimeByClientIPAddress", - "type": "Microsoft.OperationalInsights/savedSearches" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oisavesearchpeY9An/savedSearches/LogManagement(oisavesearchpeY9An)_LogManagement|AllSyslog", - "properties": { - "displayName": "All Syslogs", - "category": "Log Management", - "query": "Syslog | sort by TimeGenerated desc\r\n// Oql: Type=Syslog // Args: {OQ: True; WorkspaceId: 00000000-0000-0000-0000-000000000000} // Settings: {PTT: True; SortI: True; SortF: True} // Version: 0.1.122", - "version": 2 - }, - "name": "LogManagement(oisavesearchpeY9An)_LogManagement|AllSyslog", - "type": "Microsoft.OperationalInsights/savedSearches" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oisavesearchpeY9An/savedSearches/LogManagement(oisavesearchpeY9An)_LogManagement|AllSyslogsWithErrors", - "properties": { - "displayName": "All Syslog Records with Errors", - "category": "Log Management", - "query": "Syslog | where SeverityLevel == \u0022error\u0022 | sort by TimeGenerated desc\r\n// Oql: Type=Syslog SeverityLevel=error // Args: {OQ: True; WorkspaceId: 00000000-0000-0000-0000-000000000000} // Settings: {PTT: True; SortI: True; SortF: True} // Version: 0.1.122", - "version": 2 - }, - "name": "LogManagement(oisavesearchpeY9An)_LogManagement|AllSyslogsWithErrors", - "type": "Microsoft.OperationalInsights/savedSearches" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oisavesearchpeY9An/savedSearches/LogManagement(oisavesearchpeY9An)_LogManagement|AllSyslogByFacility", - "properties": { - "displayName": "All Syslog Records grouped by Facility", - "category": "Log Management", - "query": "Syslog | summarize AggregatedValue = count() by Facility\r\n// Oql: Type=Syslog | Measure count() by Facility // Args: {OQ: True; WorkspaceId: 00000000-0000-0000-0000-000000000000} // Settings: {PTT: True; SortI: True; SortF: True} // Version: 0.1.122", - "version": 2 - }, - "name": "LogManagement(oisavesearchpeY9An)_LogManagement|AllSyslogByFacility", - "type": "Microsoft.OperationalInsights/savedSearches" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oisavesearchpeY9An/savedSearches/LogManagement(oisavesearchpeY9An)_LogManagement|AllSyslogByProcessName", - "properties": { - "displayName": "All Syslog Records grouped by ProcessName", - "category": "Log Management", - "query": "Syslog | summarize AggregatedValue = count() by ProcessName\r\n// Oql: Type=Syslog | Measure count() by ProcessName // Args: {OQ: True; WorkspaceId: 00000000-0000-0000-0000-000000000000} // Settings: {PTT: True; SortI: True; SortF: True} // Version: 0.1.122", - "version": 2 - }, - "name": "LogManagement(oisavesearchpeY9An)_LogManagement|AllSyslogByProcessName", - "type": "Microsoft.OperationalInsights/savedSearches" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oisavesearchpeY9An/savedSearches/LogManagement(oisavesearchpeY9An)_General|dataPointsPerManagementGroup", - "properties": { - "displayName": "Which Management Group is generating the most data points?", - "category": "General Exploration", - "query": "search * | summarize AggregatedValue = count() by ManagementGroupName\r\n// Oql: * | Measure count() by ManagementGroupName // Args: {OQ: True; WorkspaceId: 00000000-0000-0000-0000-000000000000} // Settings: {PTT: True; SortI: True; SortF: True} // Version: 0.1.122", - "version": 2 - }, - "name": "LogManagement(oisavesearchpeY9An)_General|dataPointsPerManagementGroup", - "type": "Microsoft.OperationalInsights/savedSearches" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oisavesearchpeY9An/savedSearches/LogManagement(oisavesearchpeY9An)_General|dataTypeDistribution", - "properties": { - "displayName": "Distribution of data Types", - "category": "General Exploration", - "query": "search * | extend Type = $table | summarize AggregatedValue = count() by Type\r\n// Oql: * | Measure count() by Type // Args: {OQ: True; WorkspaceId: 00000000-0000-0000-0000-000000000000} // Settings: {PTT: True; SortI: True; SortF: True} // Version: 0.1.122", - "version": 2 - }, - "name": "LogManagement(oisavesearchpeY9An)_General|dataTypeDistribution", - "type": "Microsoft.OperationalInsights/savedSearches" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oisavesearchpeY9An/savedSearches/LogManagement(oisavesearchpeY9An)_General|AlphabeticallySortedComputers", - "properties": { - "displayName": "All Computers with their most recent data", - "category": "General Exploration", - "query": "search not(ObjectName == \u0022Advisor Metrics\u0022 or ObjectName == \u0022ManagedSpace\u0022) | summarize AggregatedValue = max(TimeGenerated) by Computer | limit 500000 | sort by Computer asc\r\n// Oql: NOT(ObjectName=\u0022Advisor Metrics\u0022 OR ObjectName=ManagedSpace) | measure max(TimeGenerated) by Computer | top 500000 | Sort Computer // Args: {OQ: True; WorkspaceId: 00000000-0000-0000-0000-000000000000} // Settings: {PTT: True; SortI: True; SortF: True} // Version: 0.1.122", - "version": 2 - }, - "name": "LogManagement(oisavesearchpeY9An)_General|AlphabeticallySortedComputers", - "type": "Microsoft.OperationalInsights/savedSearches" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oisavesearchpeY9An/savedSearches/LogManagement(oisavesearchpeY9An)_General|StaleComputers", - "properties": { - "displayName": "Stale Computers (data older than 24 hours)", - "category": "General Exploration", - "query": "search not(ObjectName == \u0022Advisor Metrics\u0022 or ObjectName == \u0022ManagedSpace\u0022) | summarize lastdata = max(TimeGenerated) by Computer | limit 500000 | where lastdata \u003C ago(24h)\r\n// Oql: NOT(ObjectName=\u0022Advisor Metrics\u0022 OR ObjectName=ManagedSpace) | measure max(TimeGenerated) as lastdata by Computer | top 500000 | where lastdata \u003C NOW-24HOURS // Args: {OQ: True; WorkspaceId: 00000000-0000-0000-0000-000000000000} // Settings: {PTT: True; SortI: True; SortF: True} // Version: 0.1.122", - "version": 2 - }, - "name": "LogManagement(oisavesearchpeY9An)_General|StaleComputers", - "type": "Microsoft.OperationalInsights/savedSearches" - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oisavesearchpeY9An/savedSearches/00000000-0000-0000-0000-00000000000?api-version=2020-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:39:16 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11843", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T083916Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oisavesearchpeY9An/savedSearches/00000000-0000-0000-0000-00000000000", - "etag": "W/\u0022datetime\u00272022-11-03T08%3A39%3A15.3883313Z\u0027\u0022", - "properties": { - "category": "Saved Search Test Category", - "displayName": "Create or Update Saved Search Test", - "query": "Heartbeat | summarize Count() by Computer | take a", - "tags": [ - { - "name": "Group", - "value": "Computer" - } - ], - "functionAlias": "heartbeat_func", - "functionParameters": "a:int=1", - "version": 2 - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oisavesearchpeY9An/savedSearches/00000000-0000-0000-0000-00000000000?api-version=2020-08-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Thu, 03 Nov 2022 08:39:17 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14988", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T083917Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Thu, 03 Nov 2022 08:39:18 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ5ODItV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14987", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T083918Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": { - "recordingRandomSeed": "1667460681" - } -} diff --git a/sdk/resourcemanager/operationalinsights/armoperationalinsights/testdata/recordings/TestStorageInsightConfigsTestSuite.json b/sdk/resourcemanager/operationalinsights/armoperationalinsights/testdata/recordings/TestStorageInsightConfigsTestSuite.json deleted file mode 100644 index c885a0377b7d..000000000000 --- a/sdk/resourcemanager/operationalinsights/armoperationalinsights/testdata/recordings/TestStorageInsightConfigsTestSuite.json +++ /dev/null @@ -1,787 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:39:20 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1177", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T083920Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "westus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/StorageAccount_Create?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "1287", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "mode": "Incremental", - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "outputs": { - "storageAccountId": { - "type": "string", - "value": "[resourceId(\u0027Microsoft.Storage/storageAccounts\u0027, parameters(\u0027storageAccountName\u0027))]" - } - }, - "parameters": { - "location": { - "defaultValue": "westus", - "type": "string" - }, - "storageAccountName": { - "defaultValue": "oistorageinsightconfigx", - "type": "string" - } - }, - "resources": [ - { - "apiVersion": "2022-05-01", - "kind": "StorageV2", - "location": "[parameters(\u0027location\u0027)]", - "name": "[parameters(\u0027storageAccountName\u0027)]", - "properties": { - "accessTier": "Hot", - "allowBlobPublicAccess": true, - "allowCrossTenantReplication": true, - "allowSharedKeyAccess": true, - "defaultToOAuthAuthentication": false, - "dnsEndpointType": "Standard", - "encryption": { - "keySource": "Microsoft.Storage", - "requireInfrastructureEncryption": false, - "services": { - "blob": { - "enabled": true, - "keyType": "Account" - }, - "file": { - "enabled": true, - "keyType": "Account" - } - } - }, - "minimumTlsVersion": "TLS1_2", - "networkAcls": { - "bypass": "AzureServices", - "defaultAction": "Allow", - "ipRules": [], - "virtualNetworkRules": [] - }, - "publicNetworkAccess": "Enabled", - "supportsHttpsTrafficOnly": true - }, - "sku": { - "name": "Standard_RAGRS", - "tier": "Standard" - }, - "type": "Microsoft.Storage/storageAccounts" - } - ], - "variables": {} - } - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/StorageAccount_Create/operationStatuses/08585341421236445082?api-version=2021-04-01", - "Cache-Control": "no-cache", - "Content-Length": "731", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:39:22 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1176", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T083923Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/StorageAccount_Create", - "name": "StorageAccount_Create", - "type": "Microsoft.Resources/deployments", - "properties": { - "templateHash": "11302570905514563824", - "parameters": { - "location": { - "type": "String", - "value": "westus" - }, - "storageAccountName": { - "type": "String", - "value": "oistorageinsightconfigx" - } - }, - "mode": "Incremental", - "provisioningState": "Accepted", - "timestamp": "2022-11-03T08:39:22.3267673Z", - "duration": "PT0.0009571S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Storage", - "resourceTypes": [ - { - "resourceType": "storageAccounts", - "locations": [ - "westus" - ] - } - ] - } - ], - "dependencies": [] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/StorageAccount_Create/operationStatuses/08585341421236445082?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "21", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:39:23 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11842", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T083923Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Accepted" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/StorageAccount_Create/operationStatuses/08585341421236445082?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "20", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:39:53 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11841", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T083953Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/StorageAccount_Create/operationStatuses/08585341421236445082?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "22", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:40:23 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11850", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T084024Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/StorageAccount_Create?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "1120", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:40:24 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11849", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T084024Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/StorageAccount_Create", - "name": "StorageAccount_Create", - "type": "Microsoft.Resources/deployments", - "properties": { - "templateHash": "11302570905514563824", - "parameters": { - "location": { - "type": "String", - "value": "westus" - }, - "storageAccountName": { - "type": "String", - "value": "oistorageinsightconfigx" - } - }, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2022-11-03T08:39:59.556289Z", - "duration": "PT37.2304788S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Storage", - "resourceTypes": [ - { - "resourceType": "storageAccounts", - "locations": [ - "westus" - ] - } - ] - } - ], - "dependencies": [], - "outputs": { - "storageAccountId": { - "type": "String", - "value": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/oistorageinsightconfigx" - } - }, - "outputResources": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/oistorageinsightconfigx" - } - ] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oistorageinsightconfigpeY9An?api-version=2021-12-01-preview", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "84", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus", - "properties": { - "retentionInDays": 30, - "sku": { - "name": "PerGB2018" - } - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "api-supported-versions": "2021-12-01-preview", - "Cache-Control": "no-cache", - "Content-Length": "861", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:40:27 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oistorageinsightconfigpeY9An?api-version=2021-12-01-preview", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1175", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T084027Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "properties": { - "customerId": "00000000-0000-0000-0000-000000000000", - "provisioningState": "Creating", - "sku": { - "name": "PerGB2018", - "lastSkuUpdate": "2022-11-03T08:40:26.7265457Z" - }, - "retentionInDays": 30, - "features": { - "legacy": 0, - "searchVersion": 1, - "enableLogAccessUsingOnlyResourcePermissions": true - }, - "workspaceCapping": { - "dailyQuotaGb": -1.0, - "quotaNextResetTime": "2022-11-03T11:00:00Z", - "dataIngestionStatus": "RespectQuota" - }, - "publicNetworkAccessForIngestion": "Enabled", - "publicNetworkAccessForQuery": "Enabled", - "createdDate": "2022-11-03T08:40:26.7265457Z", - "modifiedDate": "2022-11-03T08:40:26.7265457Z" - }, - "location": "westus", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oistorageinsightconfigpeY9An", - "name": "oistorageinsightconfigpeY9An", - "type": "Microsoft.OperationalInsights/workspaces" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oistorageinsightconfigpeY9An?api-version=2021-12-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "api-supported-versions": "2021-12-01-preview", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:40:27 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11848", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T084028Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "properties": { - "customerId": "00000000-0000-0000-0000-000000000000", - "provisioningState": "Creating", - "sku": { - "name": "PerGB2018", - "lastSkuUpdate": "2022-11-03T08:40:26.7265457Z" - }, - "retentionInDays": 30, - "features": { - "legacy": 0, - "searchVersion": 1, - "enableLogAccessUsingOnlyResourcePermissions": true - }, - "workspaceCapping": { - "dailyQuotaGb": -1.0, - "quotaNextResetTime": "2022-11-03T11:00:00Z", - "dataIngestionStatus": "RespectQuota" - }, - "publicNetworkAccessForIngestion": "Enabled", - "publicNetworkAccessForQuery": "Enabled", - "createdDate": "2022-11-03T08:40:26.7265457Z", - "modifiedDate": "2022-11-03T08:40:26.7265457Z" - }, - "location": "westus", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oistorageinsightconfigpeY9An", - "name": "oistorageinsightconfigpeY9An", - "type": "Microsoft.OperationalInsights/workspaces" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oistorageinsightconfigpeY9An?api-version=2021-12-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "api-supported-versions": "2021-12-01-preview", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:40:57 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11847", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T084058Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "properties": { - "customerId": "00000000-0000-0000-0000-000000000000", - "provisioningState": "Succeeded", - "sku": { - "name": "PerGB2018", - "lastSkuUpdate": "2022-11-03T08:40:26.7265457Z" - }, - "retentionInDays": 30, - "features": { - "legacy": 0, - "searchVersion": 1, - "enableLogAccessUsingOnlyResourcePermissions": true - }, - "workspaceCapping": { - "dailyQuotaGb": -1.0, - "quotaNextResetTime": "2022-11-03T11:00:00Z", - "dataIngestionStatus": "RespectQuota" - }, - "publicNetworkAccessForIngestion": "Enabled", - "publicNetworkAccessForQuery": "Enabled", - "createdDate": "2022-11-03T08:40:26.7265457Z", - "modifiedDate": "2022-11-03T08:40:26.7265457Z" - }, - "location": "westus", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oistorageinsightconfigpeY9An", - "name": "oistorageinsightconfigpeY9An", - "type": "Microsoft.OperationalInsights/workspaces" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oistorageinsightconfigpeY9An/storageInsightConfigs/AzTestSI1110?api-version=2020-08-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "297", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "containers": [ - "wad-iis-logfiles" - ], - "storageAccount": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/oistorageinsightconfigx", - "key": "1234" - }, - "tables": [ - "WADWindowsEventLogsTable", - "LinuxSyslogVer2v0" - ] - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "api-supported-versions": "2015-03-20, 2020-08-01", - "Cache-Control": "no-cache", - "Content-Length": "626", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:40:58 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oistorageinsightconfigpeY9An/storageinsightconfigs/AzTestSI1110?api-version=2020-08-01", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1174", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T084059Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "properties": { - "containers": [ - "wad-iis-logfiles" - ], - "tables": [ - "WADWindowsEventLogsTable", - "LinuxSyslogVer2v0" - ], - "storageAccount": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/oistorageinsightconfigx" - }, - "status": { - "state": "OK" - } - }, - "location": "westus", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oistorageinsightconfigpeY9An/storageinsightconfigs/AzTestSI1110", - "name": "AzTestSI1110", - "type": "Microsoft.OperationalInsights/workspaces/storageinsightconfigs" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oistorageinsightconfigpeY9An/storageInsightConfigs?api-version=2020-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "api-supported-versions": "2015-03-20, 2020-08-01", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:40:58 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11846", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T084059Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "value": [ - { - "properties": { - "containers": [ - "wad-iis-logfiles" - ], - "tables": [ - "WADWindowsEventLogsTable", - "LinuxSyslogVer2v0" - ], - "storageAccount": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/oistorageinsightconfigx" - }, - "status": { - "state": "OK" - } - }, - "location": "westus", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oistorageinsightconfigpeY9An/storageinsightconfigs/AzTestSI1110", - "name": "AzTestSI1110", - "type": "Microsoft.OperationalInsights/workspaces/storageinsightconfigs" - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oistorageinsightconfigpeY9An/storageInsightConfigs/AzTestSI1110?api-version=2020-08-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "api-supported-versions": "2015-03-20, 2020-08-01", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:40:59 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11845", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T084100Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "properties": { - "containers": [ - "wad-iis-logfiles" - ], - "tables": [ - "WADWindowsEventLogsTable", - "LinuxSyslogVer2v0" - ], - "storageAccount": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/oistorageinsightconfigx" - }, - "status": { - "state": "OK" - } - }, - "location": "westus", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oistorageinsightconfigpeY9An/storageinsightconfigs/AzTestSI1110", - "name": "AzTestSI1110", - "type": "Microsoft.OperationalInsights/workspaces/storageinsightconfigs" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oistorageinsightconfigpeY9An/storageInsightConfigs/AzTestSI1110?api-version=2020-08-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "api-supported-versions": "2015-03-20, 2020-08-01", - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Thu, 03 Nov 2022 08:41:00 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14986", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T084100Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Thu, 03 Nov 2022 08:41:01 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ3ODktV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14985", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T084102Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": { - "recordingRandomSeed": "1667460681" - } -} diff --git a/sdk/resourcemanager/operationalinsights/armoperationalinsights/testdata/recordings/TestWorkspacesTestSuite.json b/sdk/resourcemanager/operationalinsights/armoperationalinsights/testdata/recordings/TestWorkspacesTestSuite.json deleted file mode 100644 index 9697e1894c35..000000000000 --- a/sdk/resourcemanager/operationalinsights/armoperationalinsights/testdata/recordings/TestWorkspacesTestSuite.json +++ /dev/null @@ -1,9590 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:41:04 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1173", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T084105Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "westus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.OperationalInsights/operations?api-version=2021-12-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:41:06 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-tenant-reads": "11999", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T084107Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "value": [ - { - "name": "Microsoft.OperationalInsights/workspaces/write", - "display": { - "provider": "Microsoft Operational Insights", - "resource": "Workspace", - "operation": "Create Workspace", - "description": "Creates a new workspace or links to an existing workspace by providing the customer id from the existing workspace." - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/read", - "display": { - "provider": "Microsoft Operational Insights", - "resource": "Workspace", - "operation": "Get Workspace", - "description": "Gets an existing workspace" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/delete", - "display": { - "provider": "Microsoft Operational Insights", - "resource": "Workspace", - "operation": "Delete Workspace", - "description": "Deletes a workspace. If the workspace was linked to an existing workspace at creation time then the workspace it was linked to is not deleted." - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/generateregistrationcertificate/action", - "display": { - "provider": "Microsoft Operational Insights", - "resource": "Registration Certificate", - "operation": "Generates Registration Certificate for Workspace.", - "description": "Generates Registration Certificate for the workspace. This Certificate is used to connect Microsoft System Center Operation Manager to the workspace." - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/storageinsightconfigs/write", - "display": { - "provider": "Microsoft Operational Insights", - "resource": "Storage Insight Configuration", - "operation": "Create Storage Configuration", - "description": "Creates a new storage configuration. These configurations are used to pull data from a location in an existing storage account." - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/storageinsightconfigs/read", - "display": { - "provider": "Microsoft Operational Insights", - "resource": "Storage Insight Configuration", - "operation": "Get Storage Configuration", - "description": "Gets a storage configuration." - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/storageinsightconfigs/delete", - "display": { - "provider": "Microsoft Operational Insights", - "resource": "Storage Insight Configuration", - "operation": "Delete Storage Configuration", - "description": "Deletes a storage configuration. This will stop Microsoft Operational Insights from reading data from the storage account." - } - }, - { - "name": "Microsoft.OperationalInsights/register/action", - "display": { - "provider": "Microsoft Operational Insights", - "resource": "Register", - "operation": "Register a subscription to a resource provider.", - "description": "Register a subscription to a resource provider." - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/sharedKeys/action", - "display": { - "provider": "Microsoft Operational Insights", - "resource": "Shared Keys", - "operation": "List Workspace Shared Keys", - "description": "Retrieves the shared keys for the workspace. These keys are used to connect Microsoft Operational Insights agents to the workspace." - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/sharedKeys/read", - "display": { - "provider": "Microsoft Operational Insights", - "resource": "Shared Keys", - "operation": "List Workspace Shared Keys", - "description": "Retrieves the shared keys for the workspace. These keys are used to connect Microsoft Operational Insights agents to the workspace." - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/listKeys/action", - "display": { - "provider": "Microsoft Operational Insights", - "resource": "List Keys", - "operation": "List Workspace Keys", - "description": "Retrieves the list keys for the workspace. These keys are used to connect Microsoft Operational Insights agents to the workspace." - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/listKeys/read", - "display": { - "provider": "Microsoft Operational Insights", - "resource": "List Keys", - "operation": "List Workspace Keys", - "description": "Retrieves the list keys for the workspace. These keys are used to connect Microsoft Operational Insights agents to the workspace." - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/managementGroups/read", - "display": { - "provider": "Microsoft Operational Insights", - "resource": "Management Group", - "operation": "Get Management Groups for Workspace", - "description": "Gets the names and metadata for System Center Operations Manager management groups connected to this workspace." - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/usages/read", - "display": { - "provider": "Microsoft Operational Insights", - "resource": "Usage Metric", - "operation": "Get Usage Data for Workspace", - "description": "Gets usage data for a workspace including the amount of data read by the workspace." - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/search/action", - "display": { - "provider": "Microsoft Operational Insights", - "resource": "Search", - "operation": "Search Workspace Data", - "description": "Executes a search query" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/schema/read", - "display": { - "provider": "Microsoft Operational Insights", - "resource": "Search Schema", - "operation": "Get Search Schema", - "description": "Gets the search schema for the workspace. Search schema includes the exposed fields and their types." - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/datasources/read", - "display": { - "provider": "Microsoft Operational Insights", - "resource": "Data Source", - "operation": "Get datasources under a workspace.", - "description": "Get datasources under a workspace." - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/datasources/write", - "display": { - "provider": "Microsoft Operational Insights", - "resource": "Data Source", - "operation": "Create/Update datasources under a workspace.", - "description": "Create/Update datasources under a workspace." - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/datasources/delete", - "display": { - "provider": "Microsoft Operational Insights", - "resource": "Data Source", - "operation": "Delete datasources under a workspace.", - "description": "Delete datasources under a workspace." - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/savedSearches/read", - "display": { - "provider": "Microsoft Operational Insights", - "resource": "Saved Search", - "operation": "Get Saved Search", - "description": "Gets a saved search query" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/savedSearches/write", - "display": { - "provider": "Microsoft Operational Insights", - "resource": "Saved Search", - "operation": "Create Saved Search", - "description": "Creates a saved search query" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/savedSearches/delete", - "display": { - "provider": "Microsoft Operational Insights", - "resource": "Saved Search", - "operation": "Delete Saved Search", - "description": "Deletes a saved search query" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/notificationSettings/read", - "display": { - "provider": "Microsoft Operational Insights", - "resource": "Notification Settings", - "operation": "Get Notification Settings", - "description": "Get the user\u0027s notification settings for the workspace." - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/notificationSettings/write", - "display": { - "provider": "Microsoft Operational Insights", - "resource": "Notification Settings", - "operation": "Put Notification Settings", - "description": "Set the user\u0027s notification settings for the workspace." - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/notificationSettings/delete", - "display": { - "provider": "Microsoft Operational Insights", - "resource": "Notification Settings", - "operation": "Delete Notification Settings", - "description": "Delete the user\u0027s notification settings for the workspace." - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/configurationScopes/read", - "display": { - "provider": "Microsoft Operational Insights", - "resource": "Configuration Scope", - "operation": "Get Configuration Scope", - "description": "Get Configuration Scope" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/configurationScopes/write", - "display": { - "provider": "Microsoft Operational Insights", - "resource": "Configuration Scope", - "operation": "Set Configuration Scope", - "description": "Set Configuration Scope" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/configurationScopes/delete", - "display": { - "provider": "Microsoft Operational Insights", - "resource": "Configuration Scope", - "operation": "Delete Configuration Scope", - "description": "Delete Configuration Scope" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/linkedServices/read", - "display": { - "provider": "Microsoft Operational Insights", - "resource": "Linked Services", - "operation": "Get linked services under given workspace.", - "description": "Get linked services under given workspace." - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/linkedServices/write", - "display": { - "provider": "Microsoft Operational Insights", - "resource": "Linked Services", - "operation": "Create/Update linked services under given workspace.", - "description": "Create/Update linked services under given workspace." - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/linkedServices/delete", - "display": { - "provider": "Microsoft Operational Insights", - "resource": "Linked Services", - "operation": "Delete linked services under given workspace.", - "description": "Delete linked services under given workspace." - } - }, - { - "name": "Microsoft.OperationalInsights/clusters/read", - "display": { - "provider": "Microsoft Operational Insights", - "resource": "Cluster", - "operation": "Get Cluster", - "description": "Get Cluster" - } - }, - { - "name": "Microsoft.OperationalInsights/clusters/write", - "display": { - "provider": "Microsoft Operational Insights", - "resource": "Cluster", - "operation": "Create/Update Cluster", - "description": "Create or updates a Cluster" - } - }, - { - "name": "Microsoft.OperationalInsights/clusters/delete", - "display": { - "provider": "Microsoft Operational Insights", - "resource": "Cluster", - "operation": "Delete Cluster", - "description": "Delete Cluster" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/intelligencepacks/read", - "display": { - "provider": "Microsoft Operational Insights", - "resource": "Intelligence Packs", - "operation": "List Intelligence Packs", - "description": "Lists all intelligence packs that are visible for a given worksapce and also lists whether the pack is enabled or disabled for that workspace." - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/intelligencepacks/enable/action", - "display": { - "provider": "Microsoft Operational Insights", - "resource": "Intelligence Packs", - "operation": "Enable Intelligence Pack", - "description": "Enables an intelligence pack for a given workspace." - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/intelligencepacks/disable/action", - "display": { - "provider": "Microsoft Operational Insights", - "resource": "Intelligence Packs", - "operation": "Disable Intelligence Pack", - "description": "Disables an intelligence pack for a given workspace." - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/analytics/query/action", - "display": { - "provider": "Microsoft Operational Insights", - "resource": "analytics", - "operation": "Search using new engine.", - "description": "Search using new engine." - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/analytics/query/schema/read", - "display": { - "provider": "Microsoft Operational Insights", - "resource": "analytics", - "operation": "Get search schema V2.", - "description": "Get search schema V2." - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/api/query/action", - "display": { - "provider": "Microsoft Operational Insights", - "resource": "analytics", - "operation": "Search using new engine.", - "description": "Search using new engine." - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/api/query/schema/read", - "display": { - "provider": "Microsoft Operational Insights", - "resource": "analytics", - "operation": "Get search schema V2.", - "description": "Get search schema V2." - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/purge/action", - "display": { - "provider": "Microsoft Operational Insights", - "resource": "analytics", - "operation": "Delete specified data from workspace", - "description": "Delete specified data from workspace" - } - }, - { - "name": "Microsoft.OperationalInsights/linkTargets/read", - "display": { - "provider": "Microsoft Operational Insights", - "resource": "Deleted Workspace", - "operation": "List Deleted Workspaces", - "description": "Lists workspaces in soft deleted period." - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/availableservicetiers/read", - "display": { - "provider": "Microsoft Operational Insights", - "resource": "Available Service Tiers", - "operation": "List Available Service Tiers", - "description": "List of all the available service tiers for workspace." - } - }, - { - "name": "Microsoft.OperationalInsights/deletedWorkspaces/read", - "display": { - "provider": "Microsoft Operational Insights", - "resource": "Deleted Workspace", - "operation": "List Deleted Workspaces", - "description": "Lists workspaces in soft deleted period." - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/upgradetranslationfailures/read", - "display": { - "provider": "Microsoft Operational Insights", - "resource": "Upgrade Translation Failures", - "operation": "Get translation failure log", - "description": "Get Search Upgrade Translation Failure log for the workspace" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/regeneratesharedkey/action", - "display": { - "provider": "Microsoft Operational Insights", - "resource": "Shared key", - "operation": "regenerated shared key of the workspace", - "description": "Regenerates the specified workspace shared key" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/gateways/delete", - "display": { - "provider": "Microsoft Operational Insights", - "resource": "Gateways", - "operation": "Remove workspace gateway", - "description": "Removes a gateway configured for the workspace." - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/metricDefinitions/read", - "display": { - "provider": "Microsoft Operational Insights", - "resource": "Metric Definitions", - "operation": "Metric Definition operation", - "description": "Get Metric Definitions under workspace" - }, - "properties": { - "serviceSpecification": { - "metricSpecifications": [ - { - "name": "Average_% Free Inodes", - "displayName": "% Free Inodes", - "displayDescription": "Average_% Free Inodes", - "unit": "Count", - "aggregationType": "Average", - "dimensions": [ - { - "name": "Computer", - "displayName": "Computer" - }, - { - "name": "ObjectName", - "displayName": "ObjectName" - }, - { - "name": "InstanceName", - "displayName": "InstanceName" - }, - { - "name": "CounterPath", - "displayName": "CounterPath" - }, - { - "name": "SourceSystem", - "displayName": "SourceSystem" - } - ] - }, - { - "name": "Average_% Free Space", - "displayName": "% Free Space", - "displayDescription": "Average_% Free Space", - "unit": "Count", - "aggregationType": "Average", - "dimensions": [ - { - "name": "Computer", - "displayName": "Computer" - }, - { - "name": "ObjectName", - "displayName": "ObjectName" - }, - { - "name": "InstanceName", - "displayName": "InstanceName" - }, - { - "name": "CounterPath", - "displayName": "CounterPath" - }, - { - "name": "SourceSystem", - "displayName": "SourceSystem" - } - ] - }, - { - "name": "Average_% Used Inodes", - "displayName": "% Used Inodes", - "displayDescription": "Average_% Used Inodes", - "unit": "Count", - "aggregationType": "Average", - "dimensions": [ - { - "name": "Computer", - "displayName": "Computer" - }, - { - "name": "ObjectName", - "displayName": "ObjectName" - }, - { - "name": "InstanceName", - "displayName": "InstanceName" - }, - { - "name": "CounterPath", - "displayName": "CounterPath" - }, - { - "name": "SourceSystem", - "displayName": "SourceSystem" - } - ] - }, - { - "name": "Average_% Used Space", - "displayName": "% Used Space", - "displayDescription": "Average_% Used Space", - "unit": "Count", - "aggregationType": "Average", - "dimensions": [ - { - "name": "Computer", - "displayName": "Computer" - }, - { - "name": "ObjectName", - "displayName": "ObjectName" - }, - { - "name": "InstanceName", - "displayName": "InstanceName" - }, - { - "name": "CounterPath", - "displayName": "CounterPath" - }, - { - "name": "SourceSystem", - "displayName": "SourceSystem" - } - ] - }, - { - "name": "Average_Disk Read Bytes/sec", - "displayName": "Disk Read Bytes/sec", - "displayDescription": "Average_Disk Read Bytes/sec", - "unit": "Count", - "aggregationType": "Average", - "dimensions": [ - { - "name": "Computer", - "displayName": "Computer" - }, - { - "name": "ObjectName", - "displayName": "ObjectName" - }, - { - "name": "InstanceName", - "displayName": "InstanceName" - }, - { - "name": "CounterPath", - "displayName": "CounterPath" - }, - { - "name": "SourceSystem", - "displayName": "SourceSystem" - } - ] - }, - { - "name": "Average_Disk Reads/sec", - "displayName": "Disk Reads/sec", - "displayDescription": "Average_Disk Reads/sec", - "unit": "Count", - "aggregationType": "Average", - "dimensions": [ - { - "name": "Computer", - "displayName": "Computer" - }, - { - "name": "ObjectName", - "displayName": "ObjectName" - }, - { - "name": "InstanceName", - "displayName": "InstanceName" - }, - { - "name": "CounterPath", - "displayName": "CounterPath" - }, - { - "name": "SourceSystem", - "displayName": "SourceSystem" - } - ] - }, - { - "name": "Average_Disk Transfers/sec", - "displayName": "Disk Transfers/sec", - "displayDescription": "Average_Disk Transfers/sec", - "unit": "Count", - "aggregationType": "Average", - "dimensions": [ - { - "name": "Computer", - "displayName": "Computer" - }, - { - "name": "ObjectName", - "displayName": "ObjectName" - }, - { - "name": "InstanceName", - "displayName": "InstanceName" - }, - { - "name": "CounterPath", - "displayName": "CounterPath" - }, - { - "name": "SourceSystem", - "displayName": "SourceSystem" - } - ] - }, - { - "name": "Average_Disk Write Bytes/sec", - "displayName": "Disk Write Bytes/sec", - "displayDescription": "Average_Disk Write Bytes/sec", - "unit": "Count", - "aggregationType": "Average", - "dimensions": [ - { - "name": "Computer", - "displayName": "Computer" - }, - { - "name": "ObjectName", - "displayName": "ObjectName" - }, - { - "name": "InstanceName", - "displayName": "InstanceName" - }, - { - "name": "CounterPath", - "displayName": "CounterPath" - }, - { - "name": "SourceSystem", - "displayName": "SourceSystem" - } - ] - }, - { - "name": "Average_Disk Writes/sec", - "displayName": "Disk Writes/sec", - "displayDescription": "Average_Disk Writes/sec", - "unit": "Count", - "aggregationType": "Average", - "dimensions": [ - { - "name": "Computer", - "displayName": "Computer" - }, - { - "name": "ObjectName", - "displayName": "ObjectName" - }, - { - "name": "InstanceName", - "displayName": "InstanceName" - }, - { - "name": "CounterPath", - "displayName": "CounterPath" - }, - { - "name": "SourceSystem", - "displayName": "SourceSystem" - } - ] - }, - { - "name": "Average_Free Megabytes", - "displayName": "Free Megabytes", - "displayDescription": "Average_Free Megabytes", - "unit": "Count", - "aggregationType": "Average", - "dimensions": [ - { - "name": "Computer", - "displayName": "Computer" - }, - { - "name": "ObjectName", - "displayName": "ObjectName" - }, - { - "name": "InstanceName", - "displayName": "InstanceName" - }, - { - "name": "CounterPath", - "displayName": "CounterPath" - }, - { - "name": "SourceSystem", - "displayName": "SourceSystem" - } - ] - }, - { - "name": "Average_Logical Disk Bytes/sec", - "displayName": "Logical Disk Bytes/sec", - "displayDescription": "Average_Logical Disk Bytes/sec", - "unit": "Count", - "aggregationType": "Average", - "dimensions": [ - { - "name": "Computer", - "displayName": "Computer" - }, - { - "name": "ObjectName", - "displayName": "ObjectName" - }, - { - "name": "InstanceName", - "displayName": "InstanceName" - }, - { - "name": "CounterPath", - "displayName": "CounterPath" - }, - { - "name": "SourceSystem", - "displayName": "SourceSystem" - } - ] - }, - { - "name": "Average_% Available Memory", - "displayName": "% Available Memory", - "displayDescription": "Average_% Available Memory", - "unit": "Count", - "aggregationType": "Average", - "dimensions": [ - { - "name": "Computer", - "displayName": "Computer" - }, - { - "name": "ObjectName", - "displayName": "ObjectName" - }, - { - "name": "InstanceName", - "displayName": "InstanceName" - }, - { - "name": "CounterPath", - "displayName": "CounterPath" - }, - { - "name": "SourceSystem", - "displayName": "SourceSystem" - } - ] - }, - { - "name": "Average_% Available Swap Space", - "displayName": "% Available Swap Space", - "displayDescription": "Average_% Available Swap Space", - "unit": "Count", - "aggregationType": "Average", - "dimensions": [ - { - "name": "Computer", - "displayName": "Computer" - }, - { - "name": "ObjectName", - "displayName": "ObjectName" - }, - { - "name": "InstanceName", - "displayName": "InstanceName" - }, - { - "name": "CounterPath", - "displayName": "CounterPath" - }, - { - "name": "SourceSystem", - "displayName": "SourceSystem" - } - ] - }, - { - "name": "Average_% Used Memory", - "displayName": "% Used Memory", - "displayDescription": "Average_% Used Memory", - "unit": "Count", - "aggregationType": "Average", - "dimensions": [ - { - "name": "Computer", - "displayName": "Computer" - }, - { - "name": "ObjectName", - "displayName": "ObjectName" - }, - { - "name": "InstanceName", - "displayName": "InstanceName" - }, - { - "name": "CounterPath", - "displayName": "CounterPath" - }, - { - "name": "SourceSystem", - "displayName": "SourceSystem" - } - ] - }, - { - "name": "Average_% Used Swap Space", - "displayName": "% Used Swap Space", - "displayDescription": "Average_% Used Swap Space", - "unit": "Count", - "aggregationType": "Average", - "dimensions": [ - { - "name": "Computer", - "displayName": "Computer" - }, - { - "name": "ObjectName", - "displayName": "ObjectName" - }, - { - "name": "InstanceName", - "displayName": "InstanceName" - }, - { - "name": "CounterPath", - "displayName": "CounterPath" - }, - { - "name": "SourceSystem", - "displayName": "SourceSystem" - } - ] - }, - { - "name": "Average_Available MBytes Memory", - "displayName": "Available MBytes Memory", - "displayDescription": "Average_Available MBytes Memory", - "unit": "Count", - "aggregationType": "Average", - "dimensions": [ - { - "name": "Computer", - "displayName": "Computer" - }, - { - "name": "ObjectName", - "displayName": "ObjectName" - }, - { - "name": "InstanceName", - "displayName": "InstanceName" - }, - { - "name": "CounterPath", - "displayName": "CounterPath" - }, - { - "name": "SourceSystem", - "displayName": "SourceSystem" - } - ] - }, - { - "name": "Average_Available MBytes Swap", - "displayName": "Available MBytes Swap", - "displayDescription": "Average_Available MBytes Swap", - "unit": "Count", - "aggregationType": "Average", - "dimensions": [ - { - "name": "Computer", - "displayName": "Computer" - }, - { - "name": "ObjectName", - "displayName": "ObjectName" - }, - { - "name": "InstanceName", - "displayName": "InstanceName" - }, - { - "name": "CounterPath", - "displayName": "CounterPath" - }, - { - "name": "SourceSystem", - "displayName": "SourceSystem" - } - ] - }, - { - "name": "Average_Page Reads/sec", - "displayName": "Page Reads/sec", - "displayDescription": "Average_Page Reads/sec", - "unit": "Count", - "aggregationType": "Average", - "dimensions": [ - { - "name": "Computer", - "displayName": "Computer" - }, - { - "name": "ObjectName", - "displayName": "ObjectName" - }, - { - "name": "InstanceName", - "displayName": "InstanceName" - }, - { - "name": "CounterPath", - "displayName": "CounterPath" - }, - { - "name": "SourceSystem", - "displayName": "SourceSystem" - } - ] - }, - { - "name": "Average_Page Writes/sec", - "displayName": "Page Writes/sec", - "displayDescription": "Average_Page Writes/sec", - "unit": "Count", - "aggregationType": "Average", - "dimensions": [ - { - "name": "Computer", - "displayName": "Computer" - }, - { - "name": "ObjectName", - "displayName": "ObjectName" - }, - { - "name": "InstanceName", - "displayName": "InstanceName" - }, - { - "name": "CounterPath", - "displayName": "CounterPath" - }, - { - "name": "SourceSystem", - "displayName": "SourceSystem" - } - ] - }, - { - "name": "Average_Pages/sec", - "displayName": "Pages/sec", - "displayDescription": "Average_Pages/sec", - "unit": "Count", - "aggregationType": "Average", - "dimensions": [ - { - "name": "Computer", - "displayName": "Computer" - }, - { - "name": "ObjectName", - "displayName": "ObjectName" - }, - { - "name": "InstanceName", - "displayName": "InstanceName" - }, - { - "name": "CounterPath", - "displayName": "CounterPath" - }, - { - "name": "SourceSystem", - "displayName": "SourceSystem" - } - ] - }, - { - "name": "Average_Used MBytes Swap Space", - "displayName": "Used MBytes Swap Space", - "displayDescription": "Average_Used MBytes Swap Space", - "unit": "Count", - "aggregationType": "Average", - "dimensions": [ - { - "name": "Computer", - "displayName": "Computer" - }, - { - "name": "ObjectName", - "displayName": "ObjectName" - }, - { - "name": "InstanceName", - "displayName": "InstanceName" - }, - { - "name": "CounterPath", - "displayName": "CounterPath" - }, - { - "name": "SourceSystem", - "displayName": "SourceSystem" - } - ] - }, - { - "name": "Average_Used Memory MBytes", - "displayName": "Used Memory MBytes", - "displayDescription": "Average_Used Memory MBytes", - "unit": "Count", - "aggregationType": "Average", - "dimensions": [ - { - "name": "Computer", - "displayName": "Computer" - }, - { - "name": "ObjectName", - "displayName": "ObjectName" - }, - { - "name": "InstanceName", - "displayName": "InstanceName" - }, - { - "name": "CounterPath", - "displayName": "CounterPath" - }, - { - "name": "SourceSystem", - "displayName": "SourceSystem" - } - ] - }, - { - "name": "Average_Total Bytes Transmitted", - "displayName": "Total Bytes Transmitted", - "displayDescription": "Average_Total Bytes Transmitted", - "unit": "Count", - "aggregationType": "Average", - "dimensions": [ - { - "name": "Computer", - "displayName": "Computer" - }, - { - "name": "ObjectName", - "displayName": "ObjectName" - }, - { - "name": "InstanceName", - "displayName": "InstanceName" - }, - { - "name": "CounterPath", - "displayName": "CounterPath" - }, - { - "name": "SourceSystem", - "displayName": "SourceSystem" - } - ] - }, - { - "name": "Average_Total Bytes Received", - "displayName": "Total Bytes Received", - "displayDescription": "Average_Total Bytes Received", - "unit": "Count", - "aggregationType": "Average", - "dimensions": [ - { - "name": "Computer", - "displayName": "Computer" - }, - { - "name": "ObjectName", - "displayName": "ObjectName" - }, - { - "name": "InstanceName", - "displayName": "InstanceName" - }, - { - "name": "CounterPath", - "displayName": "CounterPath" - }, - { - "name": "SourceSystem", - "displayName": "SourceSystem" - } - ] - }, - { - "name": "Average_Total Bytes", - "displayName": "Total Bytes", - "displayDescription": "Average_Total Bytes", - "unit": "Count", - "aggregationType": "Average", - "dimensions": [ - { - "name": "Computer", - "displayName": "Computer" - }, - { - "name": "ObjectName", - "displayName": "ObjectName" - }, - { - "name": "InstanceName", - "displayName": "InstanceName" - }, - { - "name": "CounterPath", - "displayName": "CounterPath" - }, - { - "name": "SourceSystem", - "displayName": "SourceSystem" - } - ] - }, - { - "name": "Average_Total Packets Transmitted", - "displayName": "Total Packets Transmitted", - "displayDescription": "Average_Total Packets Transmitted", - "unit": "Count", - "aggregationType": "Average", - "dimensions": [ - { - "name": "Computer", - "displayName": "Computer" - }, - { - "name": "ObjectName", - "displayName": "ObjectName" - }, - { - "name": "InstanceName", - "displayName": "InstanceName" - }, - { - "name": "CounterPath", - "displayName": "CounterPath" - }, - { - "name": "SourceSystem", - "displayName": "SourceSystem" - } - ] - }, - { - "name": "Average_Total Packets Received", - "displayName": "Total Packets Received", - "displayDescription": "Average_Total Packets Received", - "unit": "Count", - "aggregationType": "Average", - "dimensions": [ - { - "name": "Computer", - "displayName": "Computer" - }, - { - "name": "ObjectName", - "displayName": "ObjectName" - }, - { - "name": "InstanceName", - "displayName": "InstanceName" - }, - { - "name": "CounterPath", - "displayName": "CounterPath" - }, - { - "name": "SourceSystem", - "displayName": "SourceSystem" - } - ] - }, - { - "name": "Average_Total Rx Errors", - "displayName": "Total Rx Errors", - "displayDescription": "Average_Total Rx Errors", - "unit": "Count", - "aggregationType": "Average", - "dimensions": [ - { - "name": "Computer", - "displayName": "Computer" - }, - { - "name": "ObjectName", - "displayName": "ObjectName" - }, - { - "name": "InstanceName", - "displayName": "InstanceName" - }, - { - "name": "CounterPath", - "displayName": "CounterPath" - }, - { - "name": "SourceSystem", - "displayName": "SourceSystem" - } - ] - }, - { - "name": "Average_Total Tx Errors", - "displayName": "Total Tx Errors", - "displayDescription": "Average_Total Tx Errors", - "unit": "Count", - "aggregationType": "Average", - "dimensions": [ - { - "name": "Computer", - "displayName": "Computer" - }, - { - "name": "ObjectName", - "displayName": "ObjectName" - }, - { - "name": "InstanceName", - "displayName": "InstanceName" - }, - { - "name": "CounterPath", - "displayName": "CounterPath" - }, - { - "name": "SourceSystem", - "displayName": "SourceSystem" - } - ] - }, - { - "name": "Average_Total Collisions", - "displayName": "Total Collisions", - "displayDescription": "Average_Total Collisions", - "unit": "Count", - "aggregationType": "Average", - "dimensions": [ - { - "name": "Computer", - "displayName": "Computer" - }, - { - "name": "ObjectName", - "displayName": "ObjectName" - }, - { - "name": "InstanceName", - "displayName": "InstanceName" - }, - { - "name": "CounterPath", - "displayName": "CounterPath" - }, - { - "name": "SourceSystem", - "displayName": "SourceSystem" - } - ] - }, - { - "name": "Average_Avg. Disk sec/Read", - "displayName": "Avg. Disk sec/Read", - "displayDescription": "Average_Avg. Disk sec/Read", - "unit": "Count", - "aggregationType": "Average", - "dimensions": [ - { - "name": "Computer", - "displayName": "Computer" - }, - { - "name": "ObjectName", - "displayName": "ObjectName" - }, - { - "name": "InstanceName", - "displayName": "InstanceName" - }, - { - "name": "CounterPath", - "displayName": "CounterPath" - }, - { - "name": "SourceSystem", - "displayName": "SourceSystem" - } - ] - }, - { - "name": "Average_Avg. Disk sec/Transfer", - "displayName": "Avg. Disk sec/Transfer", - "displayDescription": "Average_Avg. Disk sec/Transfer", - "unit": "Count", - "aggregationType": "Average", - "dimensions": [ - { - "name": "Computer", - "displayName": "Computer" - }, - { - "name": "ObjectName", - "displayName": "ObjectName" - }, - { - "name": "InstanceName", - "displayName": "InstanceName" - }, - { - "name": "CounterPath", - "displayName": "CounterPath" - }, - { - "name": "SourceSystem", - "displayName": "SourceSystem" - } - ] - }, - { - "name": "Average_Avg. Disk sec/Write", - "displayName": "Avg. Disk sec/Write", - "displayDescription": "Average_Avg. Disk sec/Write", - "unit": "Count", - "aggregationType": "Average", - "dimensions": [ - { - "name": "Computer", - "displayName": "Computer" - }, - { - "name": "ObjectName", - "displayName": "ObjectName" - }, - { - "name": "InstanceName", - "displayName": "InstanceName" - }, - { - "name": "CounterPath", - "displayName": "CounterPath" - }, - { - "name": "SourceSystem", - "displayName": "SourceSystem" - } - ] - }, - { - "name": "Average_Physical Disk Bytes/sec", - "displayName": "Physical Disk Bytes/sec", - "displayDescription": "Average_Physical Disk Bytes/sec", - "unit": "Count", - "aggregationType": "Average", - "dimensions": [ - { - "name": "Computer", - "displayName": "Computer" - }, - { - "name": "ObjectName", - "displayName": "ObjectName" - }, - { - "name": "InstanceName", - "displayName": "InstanceName" - }, - { - "name": "CounterPath", - "displayName": "CounterPath" - }, - { - "name": "SourceSystem", - "displayName": "SourceSystem" - } - ] - }, - { - "name": "Average_Pct Privileged Time", - "displayName": "Pct Privileged Time", - "displayDescription": "Average_Pct Privileged Time", - "unit": "Count", - "aggregationType": "Average", - "dimensions": [ - { - "name": "Computer", - "displayName": "Computer" - }, - { - "name": "ObjectName", - "displayName": "ObjectName" - }, - { - "name": "InstanceName", - "displayName": "InstanceName" - }, - { - "name": "CounterPath", - "displayName": "CounterPath" - }, - { - "name": "SourceSystem", - "displayName": "SourceSystem" - } - ] - }, - { - "name": "Average_Pct User Time", - "displayName": "Pct User Time", - "displayDescription": "Average_Pct User Time", - "unit": "Count", - "aggregationType": "Average", - "dimensions": [ - { - "name": "Computer", - "displayName": "Computer" - }, - { - "name": "ObjectName", - "displayName": "ObjectName" - }, - { - "name": "InstanceName", - "displayName": "InstanceName" - }, - { - "name": "CounterPath", - "displayName": "CounterPath" - }, - { - "name": "SourceSystem", - "displayName": "SourceSystem" - } - ] - }, - { - "name": "Average_Used Memory kBytes", - "displayName": "Used Memory kBytes", - "displayDescription": "Average_Used Memory kBytes", - "unit": "Count", - "aggregationType": "Average", - "dimensions": [ - { - "name": "Computer", - "displayName": "Computer" - }, - { - "name": "ObjectName", - "displayName": "ObjectName" - }, - { - "name": "InstanceName", - "displayName": "InstanceName" - }, - { - "name": "CounterPath", - "displayName": "CounterPath" - }, - { - "name": "SourceSystem", - "displayName": "SourceSystem" - } - ] - }, - { - "name": "Average_Virtual Shared Memory", - "displayName": "Virtual Shared Memory", - "displayDescription": "Average_Virtual Shared Memory", - "unit": "Count", - "aggregationType": "Average", - "dimensions": [ - { - "name": "Computer", - "displayName": "Computer" - }, - { - "name": "ObjectName", - "displayName": "ObjectName" - }, - { - "name": "InstanceName", - "displayName": "InstanceName" - }, - { - "name": "CounterPath", - "displayName": "CounterPath" - }, - { - "name": "SourceSystem", - "displayName": "SourceSystem" - } - ] - }, - { - "name": "Average_% DPC Time", - "displayName": "% DPC Time", - "displayDescription": "Average_% DPC Time", - "unit": "Count", - "aggregationType": "Average", - "dimensions": [ - { - "name": "Computer", - "displayName": "Computer" - }, - { - "name": "ObjectName", - "displayName": "ObjectName" - }, - { - "name": "InstanceName", - "displayName": "InstanceName" - }, - { - "name": "CounterPath", - "displayName": "CounterPath" - }, - { - "name": "SourceSystem", - "displayName": "SourceSystem" - } - ] - }, - { - "name": "Average_% Idle Time", - "displayName": "% Idle Time", - "displayDescription": "Average_% Idle Time", - "unit": "Count", - "aggregationType": "Average", - "dimensions": [ - { - "name": "Computer", - "displayName": "Computer" - }, - { - "name": "ObjectName", - "displayName": "ObjectName" - }, - { - "name": "InstanceName", - "displayName": "InstanceName" - }, - { - "name": "CounterPath", - "displayName": "CounterPath" - }, - { - "name": "SourceSystem", - "displayName": "SourceSystem" - } - ] - }, - { - "name": "Average_% Interrupt Time", - "displayName": "% Interrupt Time", - "displayDescription": "Average_% Interrupt Time", - "unit": "Count", - "aggregationType": "Average", - "dimensions": [ - { - "name": "Computer", - "displayName": "Computer" - }, - { - "name": "ObjectName", - "displayName": "ObjectName" - }, - { - "name": "InstanceName", - "displayName": "InstanceName" - }, - { - "name": "CounterPath", - "displayName": "CounterPath" - }, - { - "name": "SourceSystem", - "displayName": "SourceSystem" - } - ] - }, - { - "name": "Average_% IO Wait Time", - "displayName": "% IO Wait Time", - "displayDescription": "Average_% IO Wait Time", - "unit": "Count", - "aggregationType": "Average", - "dimensions": [ - { - "name": "Computer", - "displayName": "Computer" - }, - { - "name": "ObjectName", - "displayName": "ObjectName" - }, - { - "name": "InstanceName", - "displayName": "InstanceName" - }, - { - "name": "CounterPath", - "displayName": "CounterPath" - }, - { - "name": "SourceSystem", - "displayName": "SourceSystem" - } - ] - }, - { - "name": "Average_% Nice Time", - "displayName": "% Nice Time", - "displayDescription": "Average_% Nice Time", - "unit": "Count", - "aggregationType": "Average", - "dimensions": [ - { - "name": "Computer", - "displayName": "Computer" - }, - { - "name": "ObjectName", - "displayName": "ObjectName" - }, - { - "name": "InstanceName", - "displayName": "InstanceName" - }, - { - "name": "CounterPath", - "displayName": "CounterPath" - }, - { - "name": "SourceSystem", - "displayName": "SourceSystem" - } - ] - }, - { - "name": "Average_% Privileged Time", - "displayName": "% Privileged Time", - "displayDescription": "Average_% Privileged Time", - "unit": "Count", - "aggregationType": "Average", - "dimensions": [ - { - "name": "Computer", - "displayName": "Computer" - }, - { - "name": "ObjectName", - "displayName": "ObjectName" - }, - { - "name": "InstanceName", - "displayName": "InstanceName" - }, - { - "name": "CounterPath", - "displayName": "CounterPath" - }, - { - "name": "SourceSystem", - "displayName": "SourceSystem" - } - ] - }, - { - "name": "Average_% Processor Time", - "displayName": "% Processor Time", - "displayDescription": "Average_% Processor Time", - "unit": "Count", - "aggregationType": "Average", - "dimensions": [ - { - "name": "Computer", - "displayName": "Computer" - }, - { - "name": "ObjectName", - "displayName": "ObjectName" - }, - { - "name": "InstanceName", - "displayName": "InstanceName" - }, - { - "name": "CounterPath", - "displayName": "CounterPath" - }, - { - "name": "SourceSystem", - "displayName": "SourceSystem" - } - ] - }, - { - "name": "Average_% User Time", - "displayName": "% User Time", - "displayDescription": "Average_% User Time", - "unit": "Count", - "aggregationType": "Average", - "dimensions": [ - { - "name": "Computer", - "displayName": "Computer" - }, - { - "name": "ObjectName", - "displayName": "ObjectName" - }, - { - "name": "InstanceName", - "displayName": "InstanceName" - }, - { - "name": "CounterPath", - "displayName": "CounterPath" - }, - { - "name": "SourceSystem", - "displayName": "SourceSystem" - } - ] - }, - { - "name": "Average_Free Physical Memory", - "displayName": "Free Physical Memory", - "displayDescription": "Average_Free Physical Memory", - "unit": "Count", - "aggregationType": "Average", - "dimensions": [ - { - "name": "Computer", - "displayName": "Computer" - }, - { - "name": "ObjectName", - "displayName": "ObjectName" - }, - { - "name": "InstanceName", - "displayName": "InstanceName" - }, - { - "name": "CounterPath", - "displayName": "CounterPath" - }, - { - "name": "SourceSystem", - "displayName": "SourceSystem" - } - ] - }, - { - "name": "Average_Free Space in Paging Files", - "displayName": "Free Space in Paging Files", - "displayDescription": "Average_Free Space in Paging Files", - "unit": "Count", - "aggregationType": "Average", - "dimensions": [ - { - "name": "Computer", - "displayName": "Computer" - }, - { - "name": "ObjectName", - "displayName": "ObjectName" - }, - { - "name": "InstanceName", - "displayName": "InstanceName" - }, - { - "name": "CounterPath", - "displayName": "CounterPath" - }, - { - "name": "SourceSystem", - "displayName": "SourceSystem" - } - ] - }, - { - "name": "Average_Free Virtual Memory", - "displayName": "Free Virtual Memory", - "displayDescription": "Average_Free Virtual Memory", - "unit": "Count", - "aggregationType": "Average", - "dimensions": [ - { - "name": "Computer", - "displayName": "Computer" - }, - { - "name": "ObjectName", - "displayName": "ObjectName" - }, - { - "name": "InstanceName", - "displayName": "InstanceName" - }, - { - "name": "CounterPath", - "displayName": "CounterPath" - }, - { - "name": "SourceSystem", - "displayName": "SourceSystem" - } - ] - }, - { - "name": "Average_Processes", - "displayName": "Processes", - "displayDescription": "Average_Processes", - "unit": "Count", - "aggregationType": "Average", - "dimensions": [ - { - "name": "Computer", - "displayName": "Computer" - }, - { - "name": "ObjectName", - "displayName": "ObjectName" - }, - { - "name": "InstanceName", - "displayName": "InstanceName" - }, - { - "name": "CounterPath", - "displayName": "CounterPath" - }, - { - "name": "SourceSystem", - "displayName": "SourceSystem" - } - ] - }, - { - "name": "Average_Size Stored In Paging Files", - "displayName": "Size Stored In Paging Files", - "displayDescription": "Average_Size Stored In Paging Files", - "unit": "Count", - "aggregationType": "Average", - "dimensions": [ - { - "name": "Computer", - "displayName": "Computer" - }, - { - "name": "ObjectName", - "displayName": "ObjectName" - }, - { - "name": "InstanceName", - "displayName": "InstanceName" - }, - { - "name": "CounterPath", - "displayName": "CounterPath" - }, - { - "name": "SourceSystem", - "displayName": "SourceSystem" - } - ] - }, - { - "name": "Average_Uptime", - "displayName": "Uptime", - "displayDescription": "Average_Uptime", - "unit": "Count", - "aggregationType": "Average", - "dimensions": [ - { - "name": "Computer", - "displayName": "Computer" - }, - { - "name": "ObjectName", - "displayName": "ObjectName" - }, - { - "name": "InstanceName", - "displayName": "InstanceName" - }, - { - "name": "CounterPath", - "displayName": "CounterPath" - }, - { - "name": "SourceSystem", - "displayName": "SourceSystem" - } - ] - }, - { - "name": "Average_Users", - "displayName": "Users", - "displayDescription": "Average_Users", - "unit": "Count", - "aggregationType": "Average", - "dimensions": [ - { - "name": "Computer", - "displayName": "Computer" - }, - { - "name": "ObjectName", - "displayName": "ObjectName" - }, - { - "name": "InstanceName", - "displayName": "InstanceName" - }, - { - "name": "CounterPath", - "displayName": "CounterPath" - }, - { - "name": "SourceSystem", - "displayName": "SourceSystem" - } - ] - }, - { - "name": "Average_Current Disk Queue Length", - "displayName": "Current Disk Queue Length", - "displayDescription": "Average_Current Disk Queue Length", - "unit": "Count", - "aggregationType": "Average", - "dimensions": [ - { - "name": "Computer", - "displayName": "Computer" - }, - { - "name": "ObjectName", - "displayName": "ObjectName" - }, - { - "name": "InstanceName", - "displayName": "InstanceName" - }, - { - "name": "CounterPath", - "displayName": "CounterPath" - }, - { - "name": "SourceSystem", - "displayName": "SourceSystem" - } - ] - }, - { - "name": "Average_Available MBytes", - "displayName": "Available MBytes", - "displayDescription": "Average_Available MBytes", - "unit": "Count", - "aggregationType": "Average", - "dimensions": [ - { - "name": "Computer", - "displayName": "Computer" - }, - { - "name": "ObjectName", - "displayName": "ObjectName" - }, - { - "name": "InstanceName", - "displayName": "InstanceName" - }, - { - "name": "CounterPath", - "displayName": "CounterPath" - }, - { - "name": "SourceSystem", - "displayName": "SourceSystem" - } - ] - }, - { - "name": "Average_% Committed Bytes In Use", - "displayName": "% Committed Bytes In Use", - "displayDescription": "Average_% Committed Bytes In Use", - "unit": "Count", - "aggregationType": "Average", - "dimensions": [ - { - "name": "Computer", - "displayName": "Computer" - }, - { - "name": "ObjectName", - "displayName": "ObjectName" - }, - { - "name": "InstanceName", - "displayName": "InstanceName" - }, - { - "name": "CounterPath", - "displayName": "CounterPath" - }, - { - "name": "SourceSystem", - "displayName": "SourceSystem" - } - ] - }, - { - "name": "Average_Bytes Received/sec", - "displayName": "Bytes Received/sec", - "displayDescription": "Average_Bytes Received/sec", - "unit": "Count", - "aggregationType": "Average", - "dimensions": [ - { - "name": "Computer", - "displayName": "Computer" - }, - { - "name": "ObjectName", - "displayName": "ObjectName" - }, - { - "name": "InstanceName", - "displayName": "InstanceName" - }, - { - "name": "CounterPath", - "displayName": "CounterPath" - }, - { - "name": "SourceSystem", - "displayName": "SourceSystem" - } - ] - }, - { - "name": "Average_Bytes Sent/sec", - "displayName": "Bytes Sent/sec", - "displayDescription": "Average_Bytes Sent/sec", - "unit": "Count", - "aggregationType": "Average", - "dimensions": [ - { - "name": "Computer", - "displayName": "Computer" - }, - { - "name": "ObjectName", - "displayName": "ObjectName" - }, - { - "name": "InstanceName", - "displayName": "InstanceName" - }, - { - "name": "CounterPath", - "displayName": "CounterPath" - }, - { - "name": "SourceSystem", - "displayName": "SourceSystem" - } - ] - }, - { - "name": "Average_Bytes Total/sec", - "displayName": "Bytes Total/sec", - "displayDescription": "Average_Bytes Total/sec", - "unit": "Count", - "aggregationType": "Average", - "dimensions": [ - { - "name": "Computer", - "displayName": "Computer" - }, - { - "name": "ObjectName", - "displayName": "ObjectName" - }, - { - "name": "InstanceName", - "displayName": "InstanceName" - }, - { - "name": "CounterPath", - "displayName": "CounterPath" - }, - { - "name": "SourceSystem", - "displayName": "SourceSystem" - } - ] - }, - { - "name": "Average_Processor Queue Length", - "displayName": "Processor Queue Length", - "displayDescription": "Average_Processor Queue Length", - "unit": "Count", - "aggregationType": "Average", - "dimensions": [ - { - "name": "Computer", - "displayName": "Computer" - }, - { - "name": "ObjectName", - "displayName": "ObjectName" - }, - { - "name": "InstanceName", - "displayName": "InstanceName" - }, - { - "name": "CounterPath", - "displayName": "CounterPath" - }, - { - "name": "SourceSystem", - "displayName": "SourceSystem" - } - ] - }, - { - "name": "Heartbeat", - "displayName": "Heartbeat", - "displayDescription": "Heartbeat", - "unit": "Count", - "aggregationType": "Total", - "fillGapWithZero": true, - "dimensions": [ - { - "name": "Computer", - "displayName": "Computer" - }, - { - "name": "OSType", - "displayName": "OSType" - }, - { - "name": "Version", - "displayName": "Version" - }, - { - "name": "SourceComputerId", - "displayName": "SourceComputerId" - } - ] - }, - { - "name": "Update", - "displayName": "Update", - "displayDescription": "Update", - "unit": "Count", - "aggregationType": "Average", - "dimensions": [ - { - "name": "Computer", - "displayName": "Computer" - }, - { - "name": "Product", - "displayName": "Product" - }, - { - "name": "Classification", - "displayName": "Classification" - }, - { - "name": "UpdateState", - "displayName": "UpdateState" - }, - { - "name": "Optional", - "displayName": "Optional" - }, - { - "name": "Approved", - "displayName": "Approved" - } - ] - }, - { - "name": "Event", - "displayName": "Event", - "displayDescription": "Event", - "unit": "Count", - "aggregationType": "Average", - "dimensions": [ - { - "name": "Source", - "displayName": "Source" - }, - { - "name": "EventLog", - "displayName": "EventLog" - }, - { - "name": "Computer", - "displayName": "Computer" - }, - { - "name": "EventCategory", - "displayName": "EventCategory" - }, - { - "name": "EventLevel", - "displayName": "EventLevel" - }, - { - "name": "EventLevelName", - "displayName": "EventLevelName" - }, - { - "name": "EventID", - "displayName": "EventID" - } - ] - } - ] - } - } - }, - { - "origin": "system", - "name": "Microsoft.OperationalInsights/workspaces/providers/Microsoft.Insights/diagnosticSettings/Read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "Workspaces", - "operation": "Read diagnostic setting", - "description": "Gets the diagnostic setting for the resource" - } - }, - { - "origin": "system", - "name": "Microsoft.OperationalInsights/workspaces/providers/Microsoft.Insights/diagnosticSettings/Write", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "Workspaces", - "operation": "Write diagnostic setting", - "description": "Creates or updates the diagnostic setting for the resource" - } - }, - { - "origin": "system", - "name": "Microsoft.OperationalInsights/workspaces/providers/Microsoft.Insights/logDefinitions/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "The log definition of Workspaces", - "operation": "Read Workspaces log definitions", - "description": "Gets the available logs for a Workspace" - }, - "properties": { - "serviceSpecification": { - "logSpecifications": [ - { - "name": "Audit", - "displayName": "Audit Logs" - } - ] - } - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AACAudit/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AACAudit", - "operation": "Read AACAudit data", - "description": "Read data from the AACAudit table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AACHttpRequest/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AACHttpRequest", - "operation": "Read AACHttpRequest data", - "description": "Read data from the AACHttpRequest table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AADB2CRequestLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AADB2CRequestLogs", - "operation": "Read AADB2CRequestLogs data", - "description": "Read data from the AADB2CRequestLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AADDomainServicesAccountLogon/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AADDomainServicesAccountLogon", - "operation": "Read AADDomainServicesAccountLogon data", - "description": "Read data from the AADDomainServicesAccountLogon table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AADDomainServicesAccountManagement/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AADDomainServicesAccountManagement", - "operation": "Read AADDomainServicesAccountManagement data", - "description": "Read data from the AADDomainServicesAccountManagement table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AADDomainServicesDirectoryServiceAccess/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AADDomainServicesDirectoryServiceAccess", - "operation": "Read AADDomainServicesDirectoryServiceAccess data", - "description": "Read data from the AADDomainServicesDirectoryServiceAccess table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AADDomainServicesLogonLogoff/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AADDomainServicesLogonLogoff", - "operation": "Read AADDomainServicesLogonLogoff data", - "description": "Read data from the AADDomainServicesLogonLogoff table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AADDomainServicesPolicyChange/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AADDomainServicesPolicyChange", - "operation": "Read AADDomainServicesPolicyChange data", - "description": "Read data from the AADDomainServicesPolicyChange table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AADDomainServicesPrivilegeUse/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AADDomainServicesPrivilegeUse", - "operation": "Read AADDomainServicesPrivilegeUse data", - "description": "Read data from the AADDomainServicesPrivilegeUse table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AADManagedIdentitySignInLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AADManagedIdentitySignInLogs", - "operation": "Read AADManagedIdentitySignInLogs data", - "description": "Read data from the AADManagedIdentitySignInLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AADNonInteractiveUserSignInLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AADNonInteractiveUserSignInLogs", - "operation": "Read AADNonInteractiveUserSignInLogs data", - "description": "Read data from the AADNonInteractiveUserSignInLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AADProvisioningLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AADProvisioningLogs", - "operation": "Read AADProvisioningLogs data", - "description": "Read data from the AADProvisioningLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AADRiskyServicePrincipals/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AADRiskyServicePrincipals", - "operation": "Read AADRiskyServicePrincipals data", - "description": "Read data from the AADRiskyServicePrincipals table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AADRiskyUsers/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AADRiskyUsers", - "operation": "Read AADRiskyUsers data", - "description": "Read data from the AADRiskyUsers table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AADServicePrincipalRiskEvents/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AADServicePrincipalRiskEvents", - "operation": "Read AADServicePrincipalRiskEvents data", - "description": "Read data from the AADServicePrincipalRiskEvents table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AADServicePrincipalSignInLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AADServicePrincipalSignInLogs", - "operation": "Read AADServicePrincipalSignInLogs data", - "description": "Read data from the AADServicePrincipalSignInLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AADUserRiskEvents/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AADUserRiskEvents", - "operation": "Read AADUserRiskEvents data", - "description": "Read data from the AADUserRiskEvents table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/ABSBotRequests/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "ABSBotRequests", - "operation": "Read ABSBotRequests data", - "description": "Read data from the ABSBotRequests table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/ABSChannelToBotRequests/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "ABSChannelToBotRequests", - "operation": "Read ABSChannelToBotRequests data", - "description": "Read data from the ABSChannelToBotRequests table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/ABSDependenciesRequests/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "ABSDependenciesRequests", - "operation": "Read ABSDependenciesRequests data", - "description": "Read data from the ABSDependenciesRequests table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/ACICollaborationAudit/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "ACICollaborationAudit", - "operation": "Read ACICollaborationAudit data", - "description": "Read data from the ACICollaborationAudit table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/ACRConnectedClientList/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "ACRConnectedClientList", - "operation": "Read ACRConnectedClientList data", - "description": "Read data from the ACRConnectedClientList table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/ACSAuthIncomingOperations/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "ACSAuthIncomingOperations", - "operation": "Read ACSAuthIncomingOperations data", - "description": "Read data from the ACSAuthIncomingOperations table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/ACSBillingUsage/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "ACSBillingUsage", - "operation": "Read ACSBillingUsage data", - "description": "Read data from the ACSBillingUsage table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/ACSCallDiagnostics/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "ACSCallDiagnostics", - "operation": "Read ACSCallDiagnostics data", - "description": "Read data from the ACSCallDiagnostics table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/ACSCallRecordingSummary/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "ACSCallRecordingSummary", - "operation": "Read ACSCallRecordingSummary data", - "description": "Read data from the ACSCallRecordingSummary table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/ACSCallSummary/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "ACSCallSummary", - "operation": "Read ACSCallSummary data", - "description": "Read data from the ACSCallSummary table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/ACSChatIncomingOperations/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "ACSChatIncomingOperations", - "operation": "Read ACSChatIncomingOperations data", - "description": "Read data from the ACSChatIncomingOperations table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/ACSEmailSendMailOperational/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "ACSEmailSendMailOperational", - "operation": "Read ACSEmailSendMailOperational data", - "description": "Read data from the ACSEmailSendMailOperational table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/ACSEmailStatusUpdateOperational/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "ACSEmailStatusUpdateOperational", - "operation": "Read ACSEmailStatusUpdateOperational data", - "description": "Read data from the ACSEmailStatusUpdateOperational table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/ACSEmailUserEngagementOperational/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "ACSEmailUserEngagementOperational", - "operation": "Read ACSEmailUserEngagementOperational data", - "description": "Read data from the ACSEmailUserEngagementOperational table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/ACSNetworkTraversalDiagnostics/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "ACSNetworkTraversalDiagnostics", - "operation": "Read ACSNetworkTraversalDiagnostics data", - "description": "Read data from the ACSNetworkTraversalDiagnostics table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/ACSNetworkTraversalIncomingOperations/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "ACSNetworkTraversalIncomingOperations", - "operation": "Read ACSNetworkTraversalIncomingOperations data", - "description": "Read data from the ACSNetworkTraversalIncomingOperations table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/ACSRoomsIncomingOperations/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "ACSRoomsIncomingOperations", - "operation": "Read ACSRoomsIncomingOperations data", - "description": "Read data from the ACSRoomsIncomingOperations table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/ACSSMSIncomingOperations/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "ACSSMSIncomingOperations", - "operation": "Read ACSSMSIncomingOperations data", - "description": "Read data from the ACSSMSIncomingOperations table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/ADAssessmentRecommendation/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "ADAssessmentRecommendation", - "operation": "Read ADAssessmentRecommendation data", - "description": "Read data from the ADAssessmentRecommendation table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AddonAzureBackupAlerts/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AddonAzureBackupAlerts", - "operation": "Read AddonAzureBackupAlerts data", - "description": "Read data from the AddonAzureBackupAlerts table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AddonAzureBackupJobs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AddonAzureBackupJobs", - "operation": "Read AddonAzureBackupJobs data", - "description": "Read data from the AddonAzureBackupJobs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AddonAzureBackupPolicy/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AddonAzureBackupPolicy", - "operation": "Read AddonAzureBackupPolicy data", - "description": "Read data from the AddonAzureBackupPolicy table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AddonAzureBackupProtectedInstance/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AddonAzureBackupProtectedInstance", - "operation": "Read AddonAzureBackupProtectedInstance data", - "description": "Read data from the AddonAzureBackupProtectedInstance table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AddonAzureBackupStorage/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AddonAzureBackupStorage", - "operation": "Read AddonAzureBackupStorage data", - "description": "Read data from the AddonAzureBackupStorage table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/ADFActivityRun/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "ADFActivityRun", - "operation": "Read ADFActivityRun data", - "description": "Read data from the ADFActivityRun table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/ADFAirflowSchedulerLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "ADFAirflowSchedulerLogs", - "operation": "Read ADFAirflowSchedulerLogs data", - "description": "Read data from the ADFAirflowSchedulerLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/ADFAirflowTaskLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "ADFAirflowTaskLogs", - "operation": "Read ADFAirflowTaskLogs data", - "description": "Read data from the ADFAirflowTaskLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/ADFAirflowWebLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "ADFAirflowWebLogs", - "operation": "Read ADFAirflowWebLogs data", - "description": "Read data from the ADFAirflowWebLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/ADFAirflowWorkerLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "ADFAirflowWorkerLogs", - "operation": "Read ADFAirflowWorkerLogs data", - "description": "Read data from the ADFAirflowWorkerLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/ADFPipelineRun/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "ADFPipelineRun", - "operation": "Read ADFPipelineRun data", - "description": "Read data from the ADFPipelineRun table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/ADFSandboxActivityRun/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "ADFSandboxActivityRun", - "operation": "Read ADFSandboxActivityRun data", - "description": "Read data from the ADFSandboxActivityRun table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/ADFSandboxPipelineRun/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "ADFSandboxPipelineRun", - "operation": "Read ADFSandboxPipelineRun data", - "description": "Read data from the ADFSandboxPipelineRun table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/ADFSSignInLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "ADFSSignInLogs", - "operation": "Read ADFSSignInLogs data", - "description": "Read data from the ADFSSignInLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/ADFSSISIntegrationRuntimeLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "ADFSSISIntegrationRuntimeLogs", - "operation": "Read ADFSSISIntegrationRuntimeLogs data", - "description": "Read data from the ADFSSISIntegrationRuntimeLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/ADFSSISPackageEventMessageContext/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "ADFSSISPackageEventMessageContext", - "operation": "Read ADFSSISPackageEventMessageContext data", - "description": "Read data from the ADFSSISPackageEventMessageContext table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/ADFSSISPackageEventMessages/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "ADFSSISPackageEventMessages", - "operation": "Read ADFSSISPackageEventMessages data", - "description": "Read data from the ADFSSISPackageEventMessages table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/ADFSSISPackageExecutableStatistics/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "ADFSSISPackageExecutableStatistics", - "operation": "Read ADFSSISPackageExecutableStatistics data", - "description": "Read data from the ADFSSISPackageExecutableStatistics table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/ADFSSISPackageExecutionComponentPhases/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "ADFSSISPackageExecutionComponentPhases", - "operation": "Read ADFSSISPackageExecutionComponentPhases data", - "description": "Read data from the ADFSSISPackageExecutionComponentPhases table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/ADFSSISPackageExecutionDataStatistics/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "ADFSSISPackageExecutionDataStatistics", - "operation": "Read ADFSSISPackageExecutionDataStatistics data", - "description": "Read data from the ADFSSISPackageExecutionDataStatistics table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/ADFTriggerRun/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "ADFTriggerRun", - "operation": "Read ADFTriggerRun data", - "description": "Read data from the ADFTriggerRun table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/ADPAudit/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "ADPAudit", - "operation": "Read ADPAudit data", - "description": "Read data from the ADPAudit table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/ADPDiagnostics/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "ADPDiagnostics", - "operation": "Read ADPDiagnostics data", - "description": "Read data from the ADPDiagnostics table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/ADPRequests/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "ADPRequests", - "operation": "Read ADPRequests data", - "description": "Read data from the ADPRequests table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/ADReplicationResult/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "ADReplicationResult", - "operation": "Read ADReplicationResult data", - "description": "Read data from the ADReplicationResult table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/ADSecurityAssessmentRecommendation/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "ADSecurityAssessmentRecommendation", - "operation": "Read ADSecurityAssessmentRecommendation data", - "description": "Read data from the ADSecurityAssessmentRecommendation table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/ADTDataHistoryOperation/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "ADTDataHistoryOperation", - "operation": "Read ADTDataHistoryOperation data", - "description": "Read data from the ADTDataHistoryOperation table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/ADTDigitalTwinsOperation/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "ADTDigitalTwinsOperation", - "operation": "Read ADTDigitalTwinsOperation data", - "description": "Read data from the ADTDigitalTwinsOperation table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/ADTEventRoutesOperation/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "ADTEventRoutesOperation", - "operation": "Read ADTEventRoutesOperation data", - "description": "Read data from the ADTEventRoutesOperation table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/ADTModelsOperation/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "ADTModelsOperation", - "operation": "Read ADTModelsOperation data", - "description": "Read data from the ADTModelsOperation table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/ADTQueryOperation/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "ADTQueryOperation", - "operation": "Read ADTQueryOperation data", - "description": "Read data from the ADTQueryOperation table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/ADXCommand/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "ADXCommand", - "operation": "Read ADXCommand data", - "description": "Read data from the ADXCommand table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/ADXIngestionBatching/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "ADXIngestionBatching", - "operation": "Read ADXIngestionBatching data", - "description": "Read data from the ADXIngestionBatching table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/ADXJournal/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "ADXJournal", - "operation": "Read ADXJournal data", - "description": "Read data from the ADXJournal table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/ADXQuery/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "ADXQuery", - "operation": "Read ADXQuery data", - "description": "Read data from the ADXQuery table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/ADXTableDetails/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "ADXTableDetails", - "operation": "Read ADXTableDetails data", - "description": "Read data from the ADXTableDetails table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/ADXTableUsageStatistics/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "ADXTableUsageStatistics", - "operation": "Read ADXTableUsageStatistics data", - "description": "Read data from the ADXTableUsageStatistics table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AegDataPlaneRequests/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AegDataPlaneRequests", - "operation": "Read AegDataPlaneRequests data", - "description": "Read data from the AegDataPlaneRequests table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AegDeliveryFailureLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AegDeliveryFailureLogs", - "operation": "Read AegDeliveryFailureLogs data", - "description": "Read data from the AegDeliveryFailureLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AegPublishFailureLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AegPublishFailureLogs", - "operation": "Read AegPublishFailureLogs data", - "description": "Read data from the AegPublishFailureLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AEWAuditLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AEWAuditLogs", - "operation": "Read AEWAuditLogs data", - "description": "Read data from the AEWAuditLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AEWComputePipelinesLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AEWComputePipelinesLogs", - "operation": "Read AEWComputePipelinesLogs data", - "description": "Read data from the AEWComputePipelinesLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AgriFoodApplicationAuditLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AgriFoodApplicationAuditLogs", - "operation": "Read AgriFoodApplicationAuditLogs data", - "description": "Read data from the AgriFoodApplicationAuditLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AgriFoodFarmManagementLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AgriFoodFarmManagementLogs", - "operation": "Read AgriFoodFarmManagementLogs data", - "description": "Read data from the AgriFoodFarmManagementLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AgriFoodFarmOperationLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AgriFoodFarmOperationLogs", - "operation": "Read AgriFoodFarmOperationLogs data", - "description": "Read data from the AgriFoodFarmOperationLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AgriFoodInsightLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AgriFoodInsightLogs", - "operation": "Read AgriFoodInsightLogs data", - "description": "Read data from the AgriFoodInsightLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AgriFoodJobProcessedLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AgriFoodJobProcessedLogs", - "operation": "Read AgriFoodJobProcessedLogs data", - "description": "Read data from the AgriFoodJobProcessedLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AgriFoodModelInferenceLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AgriFoodModelInferenceLogs", - "operation": "Read AgriFoodModelInferenceLogs data", - "description": "Read data from the AgriFoodModelInferenceLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AgriFoodProviderAuthLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AgriFoodProviderAuthLogs", - "operation": "Read AgriFoodProviderAuthLogs data", - "description": "Read data from the AgriFoodProviderAuthLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AgriFoodSatelliteLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AgriFoodSatelliteLogs", - "operation": "Read AgriFoodSatelliteLogs data", - "description": "Read data from the AgriFoodSatelliteLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AgriFoodSensorManagementLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AgriFoodSensorManagementLogs", - "operation": "Read AgriFoodSensorManagementLogs data", - "description": "Read data from the AgriFoodSensorManagementLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AgriFoodWeatherLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AgriFoodWeatherLogs", - "operation": "Read AgriFoodWeatherLogs data", - "description": "Read data from the AgriFoodWeatherLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AGSGrafanaLoginEvents/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AGSGrafanaLoginEvents", - "operation": "Read AGSGrafanaLoginEvents data", - "description": "Read data from the AGSGrafanaLoginEvents table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AirflowDagProcessingLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AirflowDagProcessingLogs", - "operation": "Read AirflowDagProcessingLogs data", - "description": "Read data from the AirflowDagProcessingLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/Alert/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "Alert", - "operation": "Read Alert data", - "description": "Read data from the Alert table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AlertEvidence/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AlertEvidence", - "operation": "Read AlertEvidence data", - "description": "Read data from the AlertEvidence table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AlertHistory/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AlertHistory", - "operation": "Read AlertHistory data", - "description": "Read data from the AlertHistory table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AlertInfo/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AlertInfo", - "operation": "Read AlertInfo data", - "description": "Read data from the AlertInfo table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AmlComputeClusterEvent/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AmlComputeClusterEvent", - "operation": "Read AmlComputeClusterEvent data", - "description": "Read data from the AmlComputeClusterEvent table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AmlComputeClusterNodeEvent/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AmlComputeClusterNodeEvent", - "operation": "Read AmlComputeClusterNodeEvent data", - "description": "Read data from the AmlComputeClusterNodeEvent table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AmlComputeCpuGpuUtilization/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AmlComputeCpuGpuUtilization", - "operation": "Read AmlComputeCpuGpuUtilization data", - "description": "Read data from the AmlComputeCpuGpuUtilization table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AmlComputeInstanceEvent/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AmlComputeInstanceEvent", - "operation": "Read AmlComputeInstanceEvent data", - "description": "Read data from the AmlComputeInstanceEvent table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AmlComputeJobEvent/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AmlComputeJobEvent", - "operation": "Read AmlComputeJobEvent data", - "description": "Read data from the AmlComputeJobEvent table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AmlDataLabelEvent/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AmlDataLabelEvent", - "operation": "Read AmlDataLabelEvent data", - "description": "Read data from the AmlDataLabelEvent table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AmlDataSetEvent/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AmlDataSetEvent", - "operation": "Read AmlDataSetEvent data", - "description": "Read data from the AmlDataSetEvent table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AmlDataStoreEvent/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AmlDataStoreEvent", - "operation": "Read AmlDataStoreEvent data", - "description": "Read data from the AmlDataStoreEvent table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AmlDeploymentEvent/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AmlDeploymentEvent", - "operation": "Read AmlDeploymentEvent data", - "description": "Read data from the AmlDeploymentEvent table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AmlEnvironmentEvent/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AmlEnvironmentEvent", - "operation": "Read AmlEnvironmentEvent data", - "description": "Read data from the AmlEnvironmentEvent table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AmlInferencingEvent/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AmlInferencingEvent", - "operation": "Read AmlInferencingEvent data", - "description": "Read data from the AmlInferencingEvent table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AmlModelsEvent/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AmlModelsEvent", - "operation": "Read AmlModelsEvent data", - "description": "Read data from the AmlModelsEvent table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AmlOnlineEndpointConsoleLog/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AmlOnlineEndpointConsoleLog", - "operation": "Read AmlOnlineEndpointConsoleLog data", - "description": "Read data from the AmlOnlineEndpointConsoleLog table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AmlOnlineEndpointEventLog/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AmlOnlineEndpointEventLog", - "operation": "Read AmlOnlineEndpointEventLog data", - "description": "Read data from the AmlOnlineEndpointEventLog table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AmlOnlineEndpointTrafficLog/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AmlOnlineEndpointTrafficLog", - "operation": "Read AmlOnlineEndpointTrafficLog data", - "description": "Read data from the AmlOnlineEndpointTrafficLog table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AmlPipelineEvent/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AmlPipelineEvent", - "operation": "Read AmlPipelineEvent data", - "description": "Read data from the AmlPipelineEvent table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AmlRunEvent/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AmlRunEvent", - "operation": "Read AmlRunEvent data", - "description": "Read data from the AmlRunEvent table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AmlRunStatusChangedEvent/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AmlRunStatusChangedEvent", - "operation": "Read AmlRunStatusChangedEvent data", - "description": "Read data from the AmlRunStatusChangedEvent table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AMSKeyDeliveryRequests/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AMSKeyDeliveryRequests", - "operation": "Read AMSKeyDeliveryRequests data", - "description": "Read data from the AMSKeyDeliveryRequests table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AMSMediaAccountHealth/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AMSMediaAccountHealth", - "operation": "Read AMSMediaAccountHealth data", - "description": "Read data from the AMSMediaAccountHealth table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/ANFFileAccess/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "ANFFileAccess", - "operation": "Read ANFFileAccess data", - "description": "Read data from the ANFFileAccess table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/Anomalies/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "Anomalies", - "operation": "Read Anomalies data", - "description": "Read data from the Anomalies table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/ApiManagementGatewayLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "ApiManagementGatewayLogs", - "operation": "Read ApiManagementGatewayLogs data", - "description": "Read data from the ApiManagementGatewayLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AppAvailabilityResults/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AppAvailabilityResults", - "operation": "Read AppAvailabilityResults data", - "description": "Read data from the AppAvailabilityResults table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AppBrowserTimings/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AppBrowserTimings", - "operation": "Read AppBrowserTimings data", - "description": "Read data from the AppBrowserTimings table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AppCenterError/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AppCenterError", - "operation": "Read AppCenterError data", - "description": "Read data from the AppCenterError table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AppDependencies/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AppDependencies", - "operation": "Read AppDependencies data", - "description": "Read data from the AppDependencies table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AppEvents/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AppEvents", - "operation": "Read AppEvents data", - "description": "Read data from the AppEvents table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AppExceptions/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AppExceptions", - "operation": "Read AppExceptions data", - "description": "Read data from the AppExceptions table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/ApplicationInsights/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "ApplicationInsights", - "operation": "Read ApplicationInsights data", - "description": "Read data from the ApplicationInsights table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AppMetrics/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AppMetrics", - "operation": "Read AppMetrics data", - "description": "Read data from the AppMetrics table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AppPageViews/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AppPageViews", - "operation": "Read AppPageViews data", - "description": "Read data from the AppPageViews table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AppPerformanceCounters/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AppPerformanceCounters", - "operation": "Read AppPerformanceCounters data", - "description": "Read data from the AppPerformanceCounters table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AppPlatformBuildLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AppPlatformBuildLogs", - "operation": "Read AppPlatformBuildLogs data", - "description": "Read data from the AppPlatformBuildLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AppPlatformContainerEventLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AppPlatformContainerEventLogs", - "operation": "Read AppPlatformContainerEventLogs data", - "description": "Read data from the AppPlatformContainerEventLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AppPlatformIngressLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AppPlatformIngressLogs", - "operation": "Read AppPlatformIngressLogs data", - "description": "Read data from the AppPlatformIngressLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AppPlatformLogsforSpring/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AppPlatformLogsforSpring", - "operation": "Read AppPlatformLogsforSpring data", - "description": "Read data from the AppPlatformLogsforSpring table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AppPlatformSystemLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AppPlatformSystemLogs", - "operation": "Read AppPlatformSystemLogs data", - "description": "Read data from the AppPlatformSystemLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AppRequests/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AppRequests", - "operation": "Read AppRequests data", - "description": "Read data from the AppRequests table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AppServiceAntivirusScanAuditLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AppServiceAntivirusScanAuditLogs", - "operation": "Read AppServiceAntivirusScanAuditLogs data", - "description": "Read data from the AppServiceAntivirusScanAuditLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AppServiceAppLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AppServiceAppLogs", - "operation": "Read AppServiceAppLogs data", - "description": "Read data from the AppServiceAppLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AppServiceAuditLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AppServiceAuditLogs", - "operation": "Read AppServiceAuditLogs data", - "description": "Read data from the AppServiceAuditLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AppServiceConsoleLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AppServiceConsoleLogs", - "operation": "Read AppServiceConsoleLogs data", - "description": "Read data from the AppServiceConsoleLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AppServiceEnvironmentPlatformLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AppServiceEnvironmentPlatformLogs", - "operation": "Read AppServiceEnvironmentPlatformLogs data", - "description": "Read data from the AppServiceEnvironmentPlatformLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AppServiceFileAuditLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AppServiceFileAuditLogs", - "operation": "Read AppServiceFileAuditLogs data", - "description": "Read data from the AppServiceFileAuditLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AppServiceHTTPLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AppServiceHTTPLogs", - "operation": "Read AppServiceHTTPLogs data", - "description": "Read data from the AppServiceHTTPLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AppServiceIPSecAuditLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AppServiceIPSecAuditLogs", - "operation": "Read AppServiceIPSecAuditLogs data", - "description": "Read data from the AppServiceIPSecAuditLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AppServicePlatformLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AppServicePlatformLogs", - "operation": "Read AppServicePlatformLogs data", - "description": "Read data from the AppServicePlatformLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AppServiceServerlessSecurityPluginData/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AppServiceServerlessSecurityPluginData", - "operation": "Read AppServiceServerlessSecurityPluginData data", - "description": "Read data from the AppServiceServerlessSecurityPluginData table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AppSystemEvents/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AppSystemEvents", - "operation": "Read AppSystemEvents data", - "description": "Read data from the AppSystemEvents table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AppTraces/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AppTraces", - "operation": "Read AppTraces data", - "description": "Read data from the AppTraces table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/ASimDnsActivityLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "ASimDnsActivityLogs", - "operation": "Read ASimDnsActivityLogs data", - "description": "Read data from the ASimDnsActivityLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/ATCExpressRouteCircuitIpfix/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "ATCExpressRouteCircuitIpfix", - "operation": "Read ATCExpressRouteCircuitIpfix data", - "description": "Read data from the ATCExpressRouteCircuitIpfix table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AuditLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AuditLogs", - "operation": "Read AuditLogs data", - "description": "Read data from the AuditLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AUIEventsAudit/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AUIEventsAudit", - "operation": "Read AUIEventsAudit data", - "description": "Read data from the AUIEventsAudit table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AUIEventsOperational/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AUIEventsOperational", - "operation": "Read AUIEventsOperational data", - "description": "Read data from the AUIEventsOperational table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AutoscaleEvaluationsLog/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AutoscaleEvaluationsLog", - "operation": "Read AutoscaleEvaluationsLog data", - "description": "Read data from the AutoscaleEvaluationsLog table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AutoscaleScaleActionsLog/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AutoscaleScaleActionsLog", - "operation": "Read AutoscaleScaleActionsLog data", - "description": "Read data from the AutoscaleScaleActionsLog table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AVSSyslog/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AVSSyslog", - "operation": "Read AVSSyslog data", - "description": "Read data from the AVSSyslog table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AWSCloudTrail/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AWSCloudTrail", - "operation": "Read AWSCloudTrail data", - "description": "Read data from the AWSCloudTrail table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AWSGuardDuty/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AWSGuardDuty", - "operation": "Read AWSGuardDuty data", - "description": "Read data from the AWSGuardDuty table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AWSVPCFlow/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AWSVPCFlow", - "operation": "Read AWSVPCFlow data", - "description": "Read data from the AWSVPCFlow table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AZFWApplicationRule/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AZFWApplicationRule", - "operation": "Read AZFWApplicationRule data", - "description": "Read data from the AZFWApplicationRule table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AZFWApplicationRuleAggregation/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AZFWApplicationRuleAggregation", - "operation": "Read AZFWApplicationRuleAggregation data", - "description": "Read data from the AZFWApplicationRuleAggregation table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AZFWDnsQuery/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AZFWDnsQuery", - "operation": "Read AZFWDnsQuery data", - "description": "Read data from the AZFWDnsQuery table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AZFWFatFlow/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AZFWFatFlow", - "operation": "Read AZFWFatFlow data", - "description": "Read data from the AZFWFatFlow table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AZFWIdpsSignature/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AZFWIdpsSignature", - "operation": "Read AZFWIdpsSignature data", - "description": "Read data from the AZFWIdpsSignature table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AZFWInternalFqdnResolutionFailure/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AZFWInternalFqdnResolutionFailure", - "operation": "Read AZFWInternalFqdnResolutionFailure data", - "description": "Read data from the AZFWInternalFqdnResolutionFailure table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AZFWNatRule/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AZFWNatRule", - "operation": "Read AZFWNatRule data", - "description": "Read data from the AZFWNatRule table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AZFWNatRuleAggregation/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AZFWNatRuleAggregation", - "operation": "Read AZFWNatRuleAggregation data", - "description": "Read data from the AZFWNatRuleAggregation table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AZFWNetworkRule/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AZFWNetworkRule", - "operation": "Read AZFWNetworkRule data", - "description": "Read data from the AZFWNetworkRule table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AZFWNetworkRuleAggregation/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AZFWNetworkRuleAggregation", - "operation": "Read AZFWNetworkRuleAggregation data", - "description": "Read data from the AZFWNetworkRuleAggregation table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AZFWThreatIntel/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AZFWThreatIntel", - "operation": "Read AZFWThreatIntel data", - "description": "Read data from the AZFWThreatIntel table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AzureActivity/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AzureActivity", - "operation": "Read AzureActivity data", - "description": "Read data from the AzureActivity table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AzureActivityV2/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AzureActivityV2", - "operation": "Read AzureActivityV2 data", - "description": "Read data from the AzureActivityV2 table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AzureAssessmentRecommendation/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AzureAssessmentRecommendation", - "operation": "Read AzureAssessmentRecommendation data", - "description": "Read data from the AzureAssessmentRecommendation table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AzureAttestationDiagnostics/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AzureAttestationDiagnostics", - "operation": "Read AzureAttestationDiagnostics data", - "description": "Read data from the AzureAttestationDiagnostics table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AzureDevOpsAuditing/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AzureDevOpsAuditing", - "operation": "Read AzureDevOpsAuditing data", - "description": "Read data from the AzureDevOpsAuditing table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AzureDiagnostics/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AzureDiagnostics", - "operation": "Read AzureDiagnostics data", - "description": "Read data from the AzureDiagnostics table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AzureDiagnostics/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AzureDiagnostics", - "operation": "Read AzureDiagnostics data", - "description": "Read data from the AzureDiagnostics table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AzureLoadTestingOperation/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AzureLoadTestingOperation", - "operation": "Read AzureLoadTestingOperation data", - "description": "Read data from the AzureLoadTestingOperation table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/AzureMetrics/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "AzureMetrics", - "operation": "Read AzureMetrics data", - "description": "Read data from the AzureMetrics table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/BaiClusterEvent/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "BaiClusterEvent", - "operation": "Read BaiClusterEvent data", - "description": "Read data from the BaiClusterEvent table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/BaiClusterNodeEvent/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "BaiClusterNodeEvent", - "operation": "Read BaiClusterNodeEvent data", - "description": "Read data from the BaiClusterNodeEvent table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/BaiJobEvent/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "BaiJobEvent", - "operation": "Read BaiJobEvent data", - "description": "Read data from the BaiJobEvent table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/BehaviorAnalytics/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "BehaviorAnalytics", - "operation": "Read BehaviorAnalytics data", - "description": "Read data from the BehaviorAnalytics table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/BlockchainApplicationLog/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "BlockchainApplicationLog", - "operation": "Read BlockchainApplicationLog data", - "description": "Read data from the BlockchainApplicationLog table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/BlockchainProxyLog/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "BlockchainProxyLog", - "operation": "Read BlockchainProxyLog data", - "description": "Read data from the BlockchainProxyLog table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/CassandraAudit/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "CassandraAudit", - "operation": "Read CassandraAudit data", - "description": "Read data from the CassandraAudit table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/CassandraLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "CassandraLogs", - "operation": "Read CassandraLogs data", - "description": "Read data from the CassandraLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/CDBCassandraRequests/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "CDBCassandraRequests", - "operation": "Read CDBCassandraRequests data", - "description": "Read data from the CDBCassandraRequests table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/CDBControlPlaneRequests/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "CDBControlPlaneRequests", - "operation": "Read CDBControlPlaneRequests data", - "description": "Read data from the CDBControlPlaneRequests table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/CDBDataPlaneRequests/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "CDBDataPlaneRequests", - "operation": "Read CDBDataPlaneRequests data", - "description": "Read data from the CDBDataPlaneRequests table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/CDBGremlinRequests/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "CDBGremlinRequests", - "operation": "Read CDBGremlinRequests data", - "description": "Read data from the CDBGremlinRequests table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/CDBMongoRequests/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "CDBMongoRequests", - "operation": "Read CDBMongoRequests data", - "description": "Read data from the CDBMongoRequests table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/CDBPartitionKeyRUConsumption/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "CDBPartitionKeyRUConsumption", - "operation": "Read CDBPartitionKeyRUConsumption data", - "description": "Read data from the CDBPartitionKeyRUConsumption table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/CDBPartitionKeyStatistics/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "CDBPartitionKeyStatistics", - "operation": "Read CDBPartitionKeyStatistics data", - "description": "Read data from the CDBPartitionKeyStatistics table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/CDBQueryRuntimeStatistics/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "CDBQueryRuntimeStatistics", - "operation": "Read CDBQueryRuntimeStatistics data", - "description": "Read data from the CDBQueryRuntimeStatistics table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/CIEventsAudit/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "CIEventsAudit", - "operation": "Read CIEventsAudit data", - "description": "Read data from the CIEventsAudit table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/CIEventsOperational/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "CIEventsOperational", - "operation": "Read CIEventsOperational data", - "description": "Read data from the CIEventsOperational table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/CloudAppEvents/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "CloudAppEvents", - "operation": "Read CloudAppEvents data", - "description": "Read data from the CloudAppEvents table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/CommonSecurityLog/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "CommonSecurityLog", - "operation": "Read CommonSecurityLog data", - "description": "Read data from the CommonSecurityLog table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/ComputerGroup/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "ComputerGroup", - "operation": "Read ComputerGroup data", - "description": "Read data from the ComputerGroup table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/ConfidentialWatchlist/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "ConfidentialWatchlist", - "operation": "Read ConfidentialWatchlist data", - "description": "Read data from the ConfidentialWatchlist table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/ConfigurationChange/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "ConfigurationChange", - "operation": "Read ConfigurationChange data", - "description": "Read data from the ConfigurationChange table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/ConfigurationData/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "ConfigurationData", - "operation": "Read ConfigurationData data", - "description": "Read data from the ConfigurationData table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/ContainerAppConsoleLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "ContainerAppConsoleLogs", - "operation": "Read ContainerAppConsoleLogs data", - "description": "Read data from the ContainerAppConsoleLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/ContainerAppSystemLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "ContainerAppSystemLogs", - "operation": "Read ContainerAppSystemLogs data", - "description": "Read data from the ContainerAppSystemLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/ContainerImageInventory/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "ContainerImageInventory", - "operation": "Read ContainerImageInventory data", - "description": "Read data from the ContainerImageInventory table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/ContainerInventory/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "ContainerInventory", - "operation": "Read ContainerInventory data", - "description": "Read data from the ContainerInventory table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/ContainerLog/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "ContainerLog", - "operation": "Read ContainerLog data", - "description": "Read data from the ContainerLog table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/ContainerLogV2/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "ContainerLogV2", - "operation": "Read ContainerLogV2 data", - "description": "Read data from the ContainerLogV2 table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/ContainerNodeInventory/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "ContainerNodeInventory", - "operation": "Read ContainerNodeInventory data", - "description": "Read data from the ContainerNodeInventory table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/ContainerRegistryLoginEvents/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "ContainerRegistryLoginEvents", - "operation": "Read ContainerRegistryLoginEvents data", - "description": "Read data from the ContainerRegistryLoginEvents table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/ContainerRegistryRepositoryEvents/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "ContainerRegistryRepositoryEvents", - "operation": "Read ContainerRegistryRepositoryEvents data", - "description": "Read data from the ContainerRegistryRepositoryEvents table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/ContainerServiceLog/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "ContainerServiceLog", - "operation": "Read ContainerServiceLog data", - "description": "Read data from the ContainerServiceLog table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/CoreAzureBackup/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "CoreAzureBackup", - "operation": "Read CoreAzureBackup data", - "description": "Read data from the CoreAzureBackup table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/DatabricksAccounts/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "DatabricksAccounts", - "operation": "Read DatabricksAccounts data", - "description": "Read data from the DatabricksAccounts table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/DatabricksClusters/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "DatabricksClusters", - "operation": "Read DatabricksClusters data", - "description": "Read data from the DatabricksClusters table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/DatabricksDatabricksSQL/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "DatabricksDatabricksSQL", - "operation": "Read DatabricksDatabricksSQL data", - "description": "Read data from the DatabricksDatabricksSQL table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/DatabricksDBFS/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "DatabricksDBFS", - "operation": "Read DatabricksDBFS data", - "description": "Read data from the DatabricksDBFS table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/DatabricksDeltaPipelines/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "DatabricksDeltaPipelines", - "operation": "Read DatabricksDeltaPipelines data", - "description": "Read data from the DatabricksDeltaPipelines table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/DatabricksFeatureStore/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "DatabricksFeatureStore", - "operation": "Read DatabricksFeatureStore data", - "description": "Read data from the DatabricksFeatureStore table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/DatabricksGenie/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "DatabricksGenie", - "operation": "Read DatabricksGenie data", - "description": "Read data from the DatabricksGenie table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/DatabricksGitCredentials/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "DatabricksGitCredentials", - "operation": "Read DatabricksGitCredentials data", - "description": "Read data from the DatabricksGitCredentials table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/DatabricksGlobalInitScripts/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "DatabricksGlobalInitScripts", - "operation": "Read DatabricksGlobalInitScripts data", - "description": "Read data from the DatabricksGlobalInitScripts table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/DatabricksIAMRole/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "DatabricksIAMRole", - "operation": "Read DatabricksIAMRole data", - "description": "Read data from the DatabricksIAMRole table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/DatabricksInstancePools/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "DatabricksInstancePools", - "operation": "Read DatabricksInstancePools data", - "description": "Read data from the DatabricksInstancePools table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/DatabricksJobs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "DatabricksJobs", - "operation": "Read DatabricksJobs data", - "description": "Read data from the DatabricksJobs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/DatabricksMLflowAcledArtifact/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "DatabricksMLflowAcledArtifact", - "operation": "Read DatabricksMLflowAcledArtifact data", - "description": "Read data from the DatabricksMLflowAcledArtifact table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/DatabricksMLflowExperiment/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "DatabricksMLflowExperiment", - "operation": "Read DatabricksMLflowExperiment data", - "description": "Read data from the DatabricksMLflowExperiment table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/DatabricksModelRegistry/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "DatabricksModelRegistry", - "operation": "Read DatabricksModelRegistry data", - "description": "Read data from the DatabricksModelRegistry table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/DatabricksNotebook/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "DatabricksNotebook", - "operation": "Read DatabricksNotebook data", - "description": "Read data from the DatabricksNotebook table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/DatabricksRemoteHistoryService/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "DatabricksRemoteHistoryService", - "operation": "Read DatabricksRemoteHistoryService data", - "description": "Read data from the DatabricksRemoteHistoryService table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/DatabricksRepos/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "DatabricksRepos", - "operation": "Read DatabricksRepos data", - "description": "Read data from the DatabricksRepos table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/DatabricksSecrets/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "DatabricksSecrets", - "operation": "Read DatabricksSecrets data", - "description": "Read data from the DatabricksSecrets table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/DatabricksSQL/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "DatabricksSQL", - "operation": "Read DatabricksSQL data", - "description": "Read data from the DatabricksSQL table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/DatabricksSQLPermissions/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "DatabricksSQLPermissions", - "operation": "Read DatabricksSQLPermissions data", - "description": "Read data from the DatabricksSQLPermissions table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/DatabricksSSH/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "DatabricksSSH", - "operation": "Read DatabricksSSH data", - "description": "Read data from the DatabricksSSH table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/DatabricksUnityCatalog/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "DatabricksUnityCatalog", - "operation": "Read DatabricksUnityCatalog data", - "description": "Read data from the DatabricksUnityCatalog table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/DatabricksWebTerminal/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "DatabricksWebTerminal", - "operation": "Read DatabricksWebTerminal data", - "description": "Read data from the DatabricksWebTerminal table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/DatabricksWorkspace/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "DatabricksWorkspace", - "operation": "Read DatabricksWorkspace data", - "description": "Read data from the DatabricksWorkspace table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/DefenderIoTRawEvent/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "DefenderIoTRawEvent", - "operation": "Read DefenderIoTRawEvent data", - "description": "Read data from the DefenderIoTRawEvent table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/dependencies/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "dependencies", - "operation": "Read dependencies data", - "description": "Read data from the dependencies table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/DeviceAppCrash/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "DeviceAppCrash", - "operation": "Read DeviceAppCrash data", - "description": "Read data from the DeviceAppCrash table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/DeviceAppLaunch/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "DeviceAppLaunch", - "operation": "Read DeviceAppLaunch data", - "description": "Read data from the DeviceAppLaunch table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/DeviceCalendar/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "DeviceCalendar", - "operation": "Read DeviceCalendar data", - "description": "Read data from the DeviceCalendar table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/DeviceCleanup/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "DeviceCleanup", - "operation": "Read DeviceCleanup data", - "description": "Read data from the DeviceCleanup table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/DeviceConnectSession/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "DeviceConnectSession", - "operation": "Read DeviceConnectSession data", - "description": "Read data from the DeviceConnectSession table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/DeviceEtw/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "DeviceEtw", - "operation": "Read DeviceEtw data", - "description": "Read data from the DeviceEtw table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/DeviceEvents/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "DeviceEvents", - "operation": "Read DeviceEvents data", - "description": "Read data from the DeviceEvents table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/DeviceFileCertificateInfo/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "DeviceFileCertificateInfo", - "operation": "Read DeviceFileCertificateInfo data", - "description": "Read data from the DeviceFileCertificateInfo table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/DeviceFileEvents/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "DeviceFileEvents", - "operation": "Read DeviceFileEvents data", - "description": "Read data from the DeviceFileEvents table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/DeviceHardwareHealth/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "DeviceHardwareHealth", - "operation": "Read DeviceHardwareHealth data", - "description": "Read data from the DeviceHardwareHealth table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/DeviceHealth/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "DeviceHealth", - "operation": "Read DeviceHealth data", - "description": "Read data from the DeviceHealth table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/DeviceHeartbeat/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "DeviceHeartbeat", - "operation": "Read DeviceHeartbeat data", - "description": "Read data from the DeviceHeartbeat table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/DeviceImageLoadEvents/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "DeviceImageLoadEvents", - "operation": "Read DeviceImageLoadEvents data", - "description": "Read data from the DeviceImageLoadEvents table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/DeviceInfo/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "DeviceInfo", - "operation": "Read DeviceInfo data", - "description": "Read data from the DeviceInfo table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/DeviceLogonEvents/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "DeviceLogonEvents", - "operation": "Read DeviceLogonEvents data", - "description": "Read data from the DeviceLogonEvents table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/DeviceNetworkEvents/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "DeviceNetworkEvents", - "operation": "Read DeviceNetworkEvents data", - "description": "Read data from the DeviceNetworkEvents table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/DeviceNetworkInfo/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "DeviceNetworkInfo", - "operation": "Read DeviceNetworkInfo data", - "description": "Read data from the DeviceNetworkInfo table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/DeviceProcessEvents/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "DeviceProcessEvents", - "operation": "Read DeviceProcessEvents data", - "description": "Read data from the DeviceProcessEvents table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/DeviceRegistryEvents/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "DeviceRegistryEvents", - "operation": "Read DeviceRegistryEvents data", - "description": "Read data from the DeviceRegistryEvents table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/DeviceSkypeHeartbeat/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "DeviceSkypeHeartbeat", - "operation": "Read DeviceSkypeHeartbeat data", - "description": "Read data from the DeviceSkypeHeartbeat table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/DeviceSkypeSignIn/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "DeviceSkypeSignIn", - "operation": "Read DeviceSkypeSignIn data", - "description": "Read data from the DeviceSkypeSignIn table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/DeviceTvmSecureConfigurationAssessment/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "DeviceTvmSecureConfigurationAssessment", - "operation": "Read DeviceTvmSecureConfigurationAssessment data", - "description": "Read data from the DeviceTvmSecureConfigurationAssessment table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/DeviceTvmSoftwareInventory/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "DeviceTvmSoftwareInventory", - "operation": "Read DeviceTvmSoftwareInventory data", - "description": "Read data from the DeviceTvmSoftwareInventory table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/DeviceTvmSoftwareVulnerabilities/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "DeviceTvmSoftwareVulnerabilities", - "operation": "Read DeviceTvmSoftwareVulnerabilities data", - "description": "Read data from the DeviceTvmSoftwareVulnerabilities table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/DHAppReliability/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "DHAppReliability", - "operation": "Read DHAppReliability data", - "description": "Read data from the DHAppReliability table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/DHDriverReliability/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "DHDriverReliability", - "operation": "Read DHDriverReliability data", - "description": "Read data from the DHDriverReliability table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/DHLogonFailures/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "DHLogonFailures", - "operation": "Read DHLogonFailures data", - "description": "Read data from the DHLogonFailures table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/DHLogonMetrics/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "DHLogonMetrics", - "operation": "Read DHLogonMetrics data", - "description": "Read data from the DHLogonMetrics table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/DHOSCrashData/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "DHOSCrashData", - "operation": "Read DHOSCrashData data", - "description": "Read data from the DHOSCrashData table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/DHOSReliability/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "DHOSReliability", - "operation": "Read DHOSReliability data", - "description": "Read data from the DHOSReliability table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/DHWipAppLearning/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "DHWipAppLearning", - "operation": "Read DHWipAppLearning data", - "description": "Read data from the DHWipAppLearning table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/DnsEvents/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "DnsEvents", - "operation": "Read DnsEvents data", - "description": "Read data from the DnsEvents table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/DnsInventory/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "DnsInventory", - "operation": "Read DnsInventory data", - "description": "Read data from the DnsInventory table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/DSMAzureBlobStorageLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "DSMAzureBlobStorageLogs", - "operation": "Read DSMAzureBlobStorageLogs data", - "description": "Read data from the DSMAzureBlobStorageLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/DSMDataClassificationLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "DSMDataClassificationLogs", - "operation": "Read DSMDataClassificationLogs data", - "description": "Read data from the DSMDataClassificationLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/DSMDataLabelingLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "DSMDataLabelingLogs", - "operation": "Read DSMDataLabelingLogs data", - "description": "Read data from the DSMDataLabelingLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/DynamicEventCollection/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "DynamicEventCollection", - "operation": "Read DynamicEventCollection data", - "description": "Read data from the DynamicEventCollection table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/Dynamics365Activity/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "Dynamics365Activity", - "operation": "Read Dynamics365Activity data", - "description": "Read data from the Dynamics365Activity table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/DynamicSummary/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "DynamicSummary", - "operation": "Read DynamicSummary data", - "description": "Read data from the DynamicSummary table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/EmailAttachmentInfo/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "EmailAttachmentInfo", - "operation": "Read EmailAttachmentInfo data", - "description": "Read data from the EmailAttachmentInfo table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/EmailEvents/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "EmailEvents", - "operation": "Read EmailEvents data", - "description": "Read data from the EmailEvents table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/EmailPostDeliveryEvents/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "EmailPostDeliveryEvents", - "operation": "Read EmailPostDeliveryEvents data", - "description": "Read data from the EmailPostDeliveryEvents table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/EmailUrlInfo/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "EmailUrlInfo", - "operation": "Read EmailUrlInfo data", - "description": "Read data from the EmailUrlInfo table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/ETWEvent/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "ETWEvent", - "operation": "Read ETWEvent data", - "description": "Read data from the ETWEvent table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/Event/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "Event", - "operation": "Read Event data", - "description": "Read data from the Event table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/ExchangeAssessmentRecommendation/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "ExchangeAssessmentRecommendation", - "operation": "Read ExchangeAssessmentRecommendation data", - "description": "Read data from the ExchangeAssessmentRecommendation table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/ExchangeOnlineAssessmentRecommendation/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "ExchangeOnlineAssessmentRecommendation", - "operation": "Read ExchangeOnlineAssessmentRecommendation data", - "description": "Read data from the ExchangeOnlineAssessmentRecommendation table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/FailedIngestion/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "FailedIngestion", - "operation": "Read FailedIngestion data", - "description": "Read data from the FailedIngestion table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/FunctionAppLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "FunctionAppLogs", - "operation": "Read FunctionAppLogs data", - "description": "Read data from the FunctionAppLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/GCPAuditLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "GCPAuditLogs", - "operation": "Read GCPAuditLogs data", - "description": "Read data from the GCPAuditLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/HDInsightAmbariClusterAlerts/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "HDInsightAmbariClusterAlerts", - "operation": "Read HDInsightAmbariClusterAlerts data", - "description": "Read data from the HDInsightAmbariClusterAlerts table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/HDInsightAmbariSystemMetrics/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "HDInsightAmbariSystemMetrics", - "operation": "Read HDInsightAmbariSystemMetrics data", - "description": "Read data from the HDInsightAmbariSystemMetrics table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/HDInsightGatewayAuditLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "HDInsightGatewayAuditLogs", - "operation": "Read HDInsightGatewayAuditLogs data", - "description": "Read data from the HDInsightGatewayAuditLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/HDInsightHadoopAndYarnLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "HDInsightHadoopAndYarnLogs", - "operation": "Read HDInsightHadoopAndYarnLogs data", - "description": "Read data from the HDInsightHadoopAndYarnLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/HDInsightHadoopAndYarnMetrics/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "HDInsightHadoopAndYarnMetrics", - "operation": "Read HDInsightHadoopAndYarnMetrics data", - "description": "Read data from the HDInsightHadoopAndYarnMetrics table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/HDInsightHBaseLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "HDInsightHBaseLogs", - "operation": "Read HDInsightHBaseLogs data", - "description": "Read data from the HDInsightHBaseLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/HDInsightHBaseMetrics/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "HDInsightHBaseMetrics", - "operation": "Read HDInsightHBaseMetrics data", - "description": "Read data from the HDInsightHBaseMetrics table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/HDInsightHiveAndLLAPLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "HDInsightHiveAndLLAPLogs", - "operation": "Read HDInsightHiveAndLLAPLogs data", - "description": "Read data from the HDInsightHiveAndLLAPLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/HDInsightHiveAndLLAPMetrics/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "HDInsightHiveAndLLAPMetrics", - "operation": "Read HDInsightHiveAndLLAPMetrics data", - "description": "Read data from the HDInsightHiveAndLLAPMetrics table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/HDInsightHiveQueryAppStats/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "HDInsightHiveQueryAppStats", - "operation": "Read HDInsightHiveQueryAppStats data", - "description": "Read data from the HDInsightHiveQueryAppStats table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/HDInsightHiveTezAppStats/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "HDInsightHiveTezAppStats", - "operation": "Read HDInsightHiveTezAppStats data", - "description": "Read data from the HDInsightHiveTezAppStats table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/HDInsightJupyterNotebookEvents/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "HDInsightJupyterNotebookEvents", - "operation": "Read HDInsightJupyterNotebookEvents data", - "description": "Read data from the HDInsightJupyterNotebookEvents table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/HDInsightKafkaLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "HDInsightKafkaLogs", - "operation": "Read HDInsightKafkaLogs data", - "description": "Read data from the HDInsightKafkaLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/HDInsightKafkaMetrics/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "HDInsightKafkaMetrics", - "operation": "Read HDInsightKafkaMetrics data", - "description": "Read data from the HDInsightKafkaMetrics table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/HDInsightKafkaServerLog/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "HDInsightKafkaServerLog", - "operation": "Read HDInsightKafkaServerLog data", - "description": "Read data from the HDInsightKafkaServerLog table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/HDInsightOozieLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "HDInsightOozieLogs", - "operation": "Read HDInsightOozieLogs data", - "description": "Read data from the HDInsightOozieLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/HDInsightRangerAuditLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "HDInsightRangerAuditLogs", - "operation": "Read HDInsightRangerAuditLogs data", - "description": "Read data from the HDInsightRangerAuditLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/HDInsightSecurityLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "HDInsightSecurityLogs", - "operation": "Read HDInsightSecurityLogs data", - "description": "Read data from the HDInsightSecurityLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/HDInsightSparkApplicationEvents/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "HDInsightSparkApplicationEvents", - "operation": "Read HDInsightSparkApplicationEvents data", - "description": "Read data from the HDInsightSparkApplicationEvents table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/HDInsightSparkBlockManagerEvents/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "HDInsightSparkBlockManagerEvents", - "operation": "Read HDInsightSparkBlockManagerEvents data", - "description": "Read data from the HDInsightSparkBlockManagerEvents table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/HDInsightSparkEnvironmentEvents/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "HDInsightSparkEnvironmentEvents", - "operation": "Read HDInsightSparkEnvironmentEvents data", - "description": "Read data from the HDInsightSparkEnvironmentEvents table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/HDInsightSparkExecutorEvents/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "HDInsightSparkExecutorEvents", - "operation": "Read HDInsightSparkExecutorEvents data", - "description": "Read data from the HDInsightSparkExecutorEvents table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/HDInsightSparkExtraEvents/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "HDInsightSparkExtraEvents", - "operation": "Read HDInsightSparkExtraEvents data", - "description": "Read data from the HDInsightSparkExtraEvents table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/HDInsightSparkJobEvents/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "HDInsightSparkJobEvents", - "operation": "Read HDInsightSparkJobEvents data", - "description": "Read data from the HDInsightSparkJobEvents table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/HDInsightSparkLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "HDInsightSparkLogs", - "operation": "Read HDInsightSparkLogs data", - "description": "Read data from the HDInsightSparkLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/HDInsightSparkSQLExecutionEvents/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "HDInsightSparkSQLExecutionEvents", - "operation": "Read HDInsightSparkSQLExecutionEvents data", - "description": "Read data from the HDInsightSparkSQLExecutionEvents table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/HDInsightSparkStageEvents/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "HDInsightSparkStageEvents", - "operation": "Read HDInsightSparkStageEvents data", - "description": "Read data from the HDInsightSparkStageEvents table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/HDInsightSparkStageTaskAccumulables/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "HDInsightSparkStageTaskAccumulables", - "operation": "Read HDInsightSparkStageTaskAccumulables data", - "description": "Read data from the HDInsightSparkStageTaskAccumulables table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/HDInsightSparkTaskEvents/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "HDInsightSparkTaskEvents", - "operation": "Read HDInsightSparkTaskEvents data", - "description": "Read data from the HDInsightSparkTaskEvents table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/HDInsightStormLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "HDInsightStormLogs", - "operation": "Read HDInsightStormLogs data", - "description": "Read data from the HDInsightStormLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/HDInsightStormMetrics/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "HDInsightStormMetrics", - "operation": "Read HDInsightStormMetrics data", - "description": "Read data from the HDInsightStormMetrics table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/HDInsightStormTopologyMetrics/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "HDInsightStormTopologyMetrics", - "operation": "Read HDInsightStormTopologyMetrics data", - "description": "Read data from the HDInsightStormTopologyMetrics table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/HealthStateChangeEvent/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "HealthStateChangeEvent", - "operation": "Read HealthStateChangeEvent data", - "description": "Read data from the HealthStateChangeEvent table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/Heartbeat/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "Heartbeat", - "operation": "Read Heartbeat data", - "description": "Read data from the Heartbeat table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/HuntingBookmark/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "HuntingBookmark", - "operation": "Read HuntingBookmark data", - "description": "Read data from the HuntingBookmark table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/IdentityDirectoryEvents/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "IdentityDirectoryEvents", - "operation": "Read IdentityDirectoryEvents data", - "description": "Read data from the IdentityDirectoryEvents table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/IdentityInfo/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "IdentityInfo", - "operation": "Read IdentityInfo data", - "description": "Read data from the IdentityInfo table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/IdentityLogonEvents/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "IdentityLogonEvents", - "operation": "Read IdentityLogonEvents data", - "description": "Read data from the IdentityLogonEvents table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/IdentityQueryEvents/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "IdentityQueryEvents", - "operation": "Read IdentityQueryEvents data", - "description": "Read data from the IdentityQueryEvents table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/IISAssessmentRecommendation/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "IISAssessmentRecommendation", - "operation": "Read IISAssessmentRecommendation data", - "description": "Read data from the IISAssessmentRecommendation table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/InsightsMetrics/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "InsightsMetrics", - "operation": "Read InsightsMetrics data", - "description": "Read data from the InsightsMetrics table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/IntuneAuditLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "IntuneAuditLogs", - "operation": "Read IntuneAuditLogs data", - "description": "Read data from the IntuneAuditLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/IntuneDeviceComplianceOrg/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "IntuneDeviceComplianceOrg", - "operation": "Read IntuneDeviceComplianceOrg data", - "description": "Read data from the IntuneDeviceComplianceOrg table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/IntuneDevices/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "IntuneDevices", - "operation": "Read IntuneDevices data", - "description": "Read data from the IntuneDevices table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/IntuneOperationalLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "IntuneOperationalLogs", - "operation": "Read IntuneOperationalLogs data", - "description": "Read data from the IntuneOperationalLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/IoTHubDistributedTracing/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "IoTHubDistributedTracing", - "operation": "Read IoTHubDistributedTracing data", - "description": "Read data from the IoTHubDistributedTracing table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/KubeEvents/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "KubeEvents", - "operation": "Read KubeEvents data", - "description": "Read data from the KubeEvents table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/KubeHealth/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "KubeHealth", - "operation": "Read KubeHealth data", - "description": "Read data from the KubeHealth table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/KubeMonAgentEvents/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "KubeMonAgentEvents", - "operation": "Read KubeMonAgentEvents data", - "description": "Read data from the KubeMonAgentEvents table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/KubeNodeInventory/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "KubeNodeInventory", - "operation": "Read KubeNodeInventory data", - "description": "Read data from the KubeNodeInventory table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/KubePodInventory/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "KubePodInventory", - "operation": "Read KubePodInventory data", - "description": "Read data from the KubePodInventory table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/KubePVInventory/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "KubePVInventory", - "operation": "Read KubePVInventory data", - "description": "Read data from the KubePVInventory table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/KubeServices/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "KubeServices", - "operation": "Read KubeServices data", - "description": "Read data from the KubeServices table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/LAQueryLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "LAQueryLogs", - "operation": "Read LAQueryLogs data", - "description": "Read data from the LAQueryLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/LinuxAuditLog/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "LinuxAuditLog", - "operation": "Read LinuxAuditLog data", - "description": "Read data from the LinuxAuditLog table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/MAApplication/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "MAApplication", - "operation": "Read MAApplication data", - "description": "Read data from the MAApplication table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/MAApplicationHealth/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "MAApplicationHealth", - "operation": "Read MAApplicationHealth data", - "description": "Read data from the MAApplicationHealth table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/MAApplicationHealthAlternativeVersions/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "MAApplicationHealthAlternativeVersions", - "operation": "Read MAApplicationHealthAlternativeVersions data", - "description": "Read data from the MAApplicationHealthAlternativeVersions table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/MAApplicationHealthIssues/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "MAApplicationHealthIssues", - "operation": "Read MAApplicationHealthIssues data", - "description": "Read data from the MAApplicationHealthIssues table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/MAApplicationInstance/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "MAApplicationInstance", - "operation": "Read MAApplicationInstance data", - "description": "Read data from the MAApplicationInstance table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/MAApplicationInstanceReadiness/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "MAApplicationInstanceReadiness", - "operation": "Read MAApplicationInstanceReadiness data", - "description": "Read data from the MAApplicationInstanceReadiness table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/MAApplicationReadiness/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "MAApplicationReadiness", - "operation": "Read MAApplicationReadiness data", - "description": "Read data from the MAApplicationReadiness table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/MADeploymentPlan/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "MADeploymentPlan", - "operation": "Read MADeploymentPlan data", - "description": "Read data from the MADeploymentPlan table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/MADevice/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "MADevice", - "operation": "Read MADevice data", - "description": "Read data from the MADevice table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/MADeviceNotEnrolled/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "MADeviceNotEnrolled", - "operation": "Read MADeviceNotEnrolled data", - "description": "Read data from the MADeviceNotEnrolled table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/MADeviceNRT/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "MADeviceNRT", - "operation": "Read MADeviceNRT data", - "description": "Read data from the MADeviceNRT table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/MADeviceReadiness/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "MADeviceReadiness", - "operation": "Read MADeviceReadiness data", - "description": "Read data from the MADeviceReadiness table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/MADriverInstanceReadiness/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "MADriverInstanceReadiness", - "operation": "Read MADriverInstanceReadiness data", - "description": "Read data from the MADriverInstanceReadiness table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/MADriverReadiness/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "MADriverReadiness", - "operation": "Read MADriverReadiness data", - "description": "Read data from the MADriverReadiness table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/MAOfficeAddin/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "MAOfficeAddin", - "operation": "Read MAOfficeAddin data", - "description": "Read data from the MAOfficeAddin table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/MAOfficeAddinInstance/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "MAOfficeAddinInstance", - "operation": "Read MAOfficeAddinInstance data", - "description": "Read data from the MAOfficeAddinInstance table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/MAOfficeAddinReadiness/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "MAOfficeAddinReadiness", - "operation": "Read MAOfficeAddinReadiness data", - "description": "Read data from the MAOfficeAddinReadiness table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/MAOfficeAppInstance/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "MAOfficeAppInstance", - "operation": "Read MAOfficeAppInstance data", - "description": "Read data from the MAOfficeAppInstance table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/MAOfficeAppReadiness/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "MAOfficeAppReadiness", - "operation": "Read MAOfficeAppReadiness data", - "description": "Read data from the MAOfficeAppReadiness table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/MAOfficeBuildInfo/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "MAOfficeBuildInfo", - "operation": "Read MAOfficeBuildInfo data", - "description": "Read data from the MAOfficeBuildInfo table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/MAOfficeCurrencyAssessment/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "MAOfficeCurrencyAssessment", - "operation": "Read MAOfficeCurrencyAssessment data", - "description": "Read data from the MAOfficeCurrencyAssessment table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/MAOfficeSuiteInstance/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "MAOfficeSuiteInstance", - "operation": "Read MAOfficeSuiteInstance data", - "description": "Read data from the MAOfficeSuiteInstance table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/MAProposedPilotDevices/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "MAProposedPilotDevices", - "operation": "Read MAProposedPilotDevices data", - "description": "Read data from the MAProposedPilotDevices table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/MAWindowsBuildInfo/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "MAWindowsBuildInfo", - "operation": "Read MAWindowsBuildInfo data", - "description": "Read data from the MAWindowsBuildInfo table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/MAWindowsCurrencyAssessment/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "MAWindowsCurrencyAssessment", - "operation": "Read MAWindowsCurrencyAssessment data", - "description": "Read data from the MAWindowsCurrencyAssessment table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/MAWindowsCurrencyAssessmentDailyCounts/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "MAWindowsCurrencyAssessmentDailyCounts", - "operation": "Read MAWindowsCurrencyAssessmentDailyCounts data", - "description": "Read data from the MAWindowsCurrencyAssessmentDailyCounts table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/MAWindowsDeploymentStatus/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "MAWindowsDeploymentStatus", - "operation": "Read MAWindowsDeploymentStatus data", - "description": "Read data from the MAWindowsDeploymentStatus table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/MAWindowsDeploymentStatusNRT/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "MAWindowsDeploymentStatusNRT", - "operation": "Read MAWindowsDeploymentStatusNRT data", - "description": "Read data from the MAWindowsDeploymentStatusNRT table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/McasShadowItReporting/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "McasShadowItReporting", - "operation": "Read McasShadowItReporting data", - "description": "Read data from the McasShadowItReporting table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/MCCEventLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "MCCEventLogs", - "operation": "Read MCCEventLogs data", - "description": "Read data from the MCCEventLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/MCVPAuditLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "MCVPAuditLogs", - "operation": "Read MCVPAuditLogs data", - "description": "Read data from the MCVPAuditLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/MCVPOperationLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "MCVPOperationLogs", - "operation": "Read MCVPOperationLogs data", - "description": "Read data from the MCVPOperationLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/MicrosoftAzureBastionAuditLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "MicrosoftAzureBastionAuditLogs", - "operation": "Read MicrosoftAzureBastionAuditLogs data", - "description": "Read data from the MicrosoftAzureBastionAuditLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/MicrosoftDataShareReceivedSnapshotLog/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "MicrosoftDataShareReceivedSnapshotLog", - "operation": "Read MicrosoftDataShareReceivedSnapshotLog data", - "description": "Read data from the MicrosoftDataShareReceivedSnapshotLog table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/MicrosoftDataShareSentSnapshotLog/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "MicrosoftDataShareSentSnapshotLog", - "operation": "Read MicrosoftDataShareSentSnapshotLog data", - "description": "Read data from the MicrosoftDataShareSentSnapshotLog table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/MicrosoftDataShareShareLog/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "MicrosoftDataShareShareLog", - "operation": "Read MicrosoftDataShareShareLog data", - "description": "Read data from the MicrosoftDataShareShareLog table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/MicrosoftDynamicsTelemetryPerformanceLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "MicrosoftDynamicsTelemetryPerformanceLogs", - "operation": "Read MicrosoftDynamicsTelemetryPerformanceLogs data", - "description": "Read data from the MicrosoftDynamicsTelemetryPerformanceLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/MicrosoftDynamicsTelemetrySystemMetricsLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "MicrosoftDynamicsTelemetrySystemMetricsLogs", - "operation": "Read MicrosoftDynamicsTelemetrySystemMetricsLogs data", - "description": "Read data from the MicrosoftDynamicsTelemetrySystemMetricsLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/MicrosoftHealthcareApisAuditLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "MicrosoftHealthcareApisAuditLogs", - "operation": "Read MicrosoftHealthcareApisAuditLogs data", - "description": "Read data from the MicrosoftHealthcareApisAuditLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/MicrosoftPurviewInformationProtection/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "MicrosoftPurviewInformationProtection", - "operation": "Read MicrosoftPurviewInformationProtection data", - "description": "Read data from the MicrosoftPurviewInformationProtection table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/NetworkAccessTraffic/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "NetworkAccessTraffic", - "operation": "Read NetworkAccessTraffic data", - "description": "Read data from the NetworkAccessTraffic table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/NetworkMonitoring/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "NetworkMonitoring", - "operation": "Read NetworkMonitoring data", - "description": "Read data from the NetworkMonitoring table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/NetworkSessions/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "NetworkSessions", - "operation": "Read NetworkSessions data", - "description": "Read data from the NetworkSessions table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/NSPAccessLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "NSPAccessLogs", - "operation": "Read NSPAccessLogs data", - "description": "Read data from the NSPAccessLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/NWConnectionMonitorDestinationListenerResult/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "NWConnectionMonitorDestinationListenerResult", - "operation": "Read NWConnectionMonitorDestinationListenerResult data", - "description": "Read data from the NWConnectionMonitorDestinationListenerResult table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/NWConnectionMonitorDNSResult/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "NWConnectionMonitorDNSResult", - "operation": "Read NWConnectionMonitorDNSResult data", - "description": "Read data from the NWConnectionMonitorDNSResult table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/NWConnectionMonitorPathResult/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "NWConnectionMonitorPathResult", - "operation": "Read NWConnectionMonitorPathResult data", - "description": "Read data from the NWConnectionMonitorPathResult table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/NWConnectionMonitorTestResult/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "NWConnectionMonitorTestResult", - "operation": "Read NWConnectionMonitorTestResult data", - "description": "Read data from the NWConnectionMonitorTestResult table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/OEPAirFlowTask/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "OEPAirFlowTask", - "operation": "Read OEPAirFlowTask data", - "description": "Read data from the OEPAirFlowTask table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/OEPElasticOperator/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "OEPElasticOperator", - "operation": "Read OEPElasticOperator data", - "description": "Read data from the OEPElasticOperator table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/OEPElasticsearch/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "OEPElasticsearch", - "operation": "Read OEPElasticsearch data", - "description": "Read data from the OEPElasticsearch table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/OfficeActivity/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "OfficeActivity", - "operation": "Read OfficeActivity data", - "description": "Read data from the OfficeActivity table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/OLPSupplyChainEntityOperations/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "OLPSupplyChainEntityOperations", - "operation": "Read OLPSupplyChainEntityOperations data", - "description": "Read data from the OLPSupplyChainEntityOperations table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/OLPSupplyChainEvents/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "OLPSupplyChainEvents", - "operation": "Read OLPSupplyChainEvents data", - "description": "Read data from the OLPSupplyChainEvents table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/Operation/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "Operation", - "operation": "Read Operation data", - "description": "Read data from the Operation table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/Perf/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "Perf", - "operation": "Read Perf data", - "description": "Read data from the Perf table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/PFTitleAuditLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "PFTitleAuditLogs", - "operation": "Read PFTitleAuditLogs data", - "description": "Read data from the PFTitleAuditLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/PowerBIActivity/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "PowerBIActivity", - "operation": "Read PowerBIActivity data", - "description": "Read data from the PowerBIActivity table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/PowerBIAuditTenant/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "PowerBIAuditTenant", - "operation": "Read PowerBIAuditTenant data", - "description": "Read data from the PowerBIAuditTenant table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/PowerBIDatasetsTenant/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "PowerBIDatasetsTenant", - "operation": "Read PowerBIDatasetsTenant data", - "description": "Read data from the PowerBIDatasetsTenant table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/PowerBIDatasetsTenantPreview/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "PowerBIDatasetsTenantPreview", - "operation": "Read PowerBIDatasetsTenantPreview data", - "description": "Read data from the PowerBIDatasetsTenantPreview table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/PowerBIDatasetsWorkspace/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "PowerBIDatasetsWorkspace", - "operation": "Read PowerBIDatasetsWorkspace data", - "description": "Read data from the PowerBIDatasetsWorkspace table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/PowerBIDatasetsWorkspacePreview/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "PowerBIDatasetsWorkspacePreview", - "operation": "Read PowerBIDatasetsWorkspacePreview data", - "description": "Read data from the PowerBIDatasetsWorkspacePreview table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/PowerBIReportUsageTenant/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "PowerBIReportUsageTenant", - "operation": "Read PowerBIReportUsageTenant data", - "description": "Read data from the PowerBIReportUsageTenant table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/PowerBIReportUsageWorkspace/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "PowerBIReportUsageWorkspace", - "operation": "Read PowerBIReportUsageWorkspace data", - "description": "Read data from the PowerBIReportUsageWorkspace table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/ProjectActivity/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "ProjectActivity", - "operation": "Read ProjectActivity data", - "description": "Read data from the ProjectActivity table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/ProtectionStatus/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "ProtectionStatus", - "operation": "Read ProtectionStatus data", - "description": "Read data from the ProtectionStatus table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/PurviewDataSensitivityLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "PurviewDataSensitivityLogs", - "operation": "Read PurviewDataSensitivityLogs data", - "description": "Read data from the PurviewDataSensitivityLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/PurviewScanStatusLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "PurviewScanStatusLogs", - "operation": "Read PurviewScanStatusLogs data", - "description": "Read data from the PurviewScanStatusLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/PurviewSecurityLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "PurviewSecurityLogs", - "operation": "Read PurviewSecurityLogs data", - "description": "Read data from the PurviewSecurityLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "query", - "operation": "Query Data in Workspace", - "description": "Run queries over the data in the workspace" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/requests/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "requests", - "operation": "Read requests data", - "description": "Read data from the requests table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/ResourceManagementPublicAccessLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "ResourceManagementPublicAccessLogs", - "operation": "Read ResourceManagementPublicAccessLogs data", - "description": "Read data from the ResourceManagementPublicAccessLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/SCCMAssessmentRecommendation/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "SCCMAssessmentRecommendation", - "operation": "Read SCCMAssessmentRecommendation data", - "description": "Read data from the SCCMAssessmentRecommendation table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/SCOMAssessmentRecommendation/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "SCOMAssessmentRecommendation", - "operation": "Read SCOMAssessmentRecommendation data", - "description": "Read data from the SCOMAssessmentRecommendation table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/SecureScoreControls/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "SecureScoreControls", - "operation": "Read SecureScoreControls data", - "description": "Read data from the SecureScoreControls table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/SecureScores/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "SecureScores", - "operation": "Read SecureScores data", - "description": "Read data from the SecureScores table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/SecurityAlert/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "SecurityAlert", - "operation": "Read SecurityAlert data", - "description": "Read data from the SecurityAlert table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/SecurityBaseline/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "SecurityBaseline", - "operation": "Read SecurityBaseline data", - "description": "Read data from the SecurityBaseline table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/SecurityBaselineSummary/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "SecurityBaselineSummary", - "operation": "Read SecurityBaselineSummary data", - "description": "Read data from the SecurityBaselineSummary table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/SecurityDetection/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "SecurityDetection", - "operation": "Read SecurityDetection data", - "description": "Read data from the SecurityDetection table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/SecurityEvent/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "SecurityEvent", - "operation": "Read SecurityEvent data", - "description": "Read data from the SecurityEvent table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/SecurityIncident/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "SecurityIncident", - "operation": "Read SecurityIncident data", - "description": "Read data from the SecurityIncident table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/SecurityIoTRawEvent/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "SecurityIoTRawEvent", - "operation": "Read SecurityIoTRawEvent data", - "description": "Read data from the SecurityIoTRawEvent table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/SecurityNestedRecommendation/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "SecurityNestedRecommendation", - "operation": "Read SecurityNestedRecommendation data", - "description": "Read data from the SecurityNestedRecommendation table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/SecurityRecommendation/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "SecurityRecommendation", - "operation": "Read SecurityRecommendation data", - "description": "Read data from the SecurityRecommendation table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/SecurityRegulatoryCompliance/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "SecurityRegulatoryCompliance", - "operation": "Read SecurityRegulatoryCompliance data", - "description": "Read data from the SecurityRegulatoryCompliance table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/SentinelAudit/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "SentinelAudit", - "operation": "Read SentinelAudit data", - "description": "Read data from the SentinelAudit table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/SentinelHealth/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "SentinelHealth", - "operation": "Read SentinelHealth data", - "description": "Read data from the SentinelHealth table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/ServiceFabricOperationalEvent/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "ServiceFabricOperationalEvent", - "operation": "Read ServiceFabricOperationalEvent data", - "description": "Read data from the ServiceFabricOperationalEvent table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/ServiceFabricReliableActorEvent/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "ServiceFabricReliableActorEvent", - "operation": "Read ServiceFabricReliableActorEvent data", - "description": "Read data from the ServiceFabricReliableActorEvent table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/ServiceFabricReliableServiceEvent/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "ServiceFabricReliableServiceEvent", - "operation": "Read ServiceFabricReliableServiceEvent data", - "description": "Read data from the ServiceFabricReliableServiceEvent table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/SfBAssessmentRecommendation/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "SfBAssessmentRecommendation", - "operation": "Read SfBAssessmentRecommendation data", - "description": "Read data from the SfBAssessmentRecommendation table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/SfBOnlineAssessmentRecommendation/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "SfBOnlineAssessmentRecommendation", - "operation": "Read SfBOnlineAssessmentRecommendation data", - "description": "Read data from the SfBOnlineAssessmentRecommendation table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/SharePointOnlineAssessmentRecommendation/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "SharePointOnlineAssessmentRecommendation", - "operation": "Read SharePointOnlineAssessmentRecommendation data", - "description": "Read data from the SharePointOnlineAssessmentRecommendation table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/SignalRServiceDiagnosticLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "SignalRServiceDiagnosticLogs", - "operation": "Read SignalRServiceDiagnosticLogs data", - "description": "Read data from the SignalRServiceDiagnosticLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/SigninLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "SigninLogs", - "operation": "Read SigninLogs data", - "description": "Read data from the SigninLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/SPAssessmentRecommendation/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "SPAssessmentRecommendation", - "operation": "Read SPAssessmentRecommendation data", - "description": "Read data from the SPAssessmentRecommendation table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/SQLAssessmentRecommendation/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "SQLAssessmentRecommendation", - "operation": "Read SQLAssessmentRecommendation data", - "description": "Read data from the SQLAssessmentRecommendation table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/SqlAtpStatus/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "SqlAtpStatus", - "operation": "Read SqlAtpStatus data", - "description": "Read data from the SqlAtpStatus table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/SqlDataClassification/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "SqlDataClassification", - "operation": "Read SqlDataClassification data", - "description": "Read data from the SqlDataClassification table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/SQLSecurityAuditEvents/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "SQLSecurityAuditEvents", - "operation": "Read SQLSecurityAuditEvents data", - "description": "Read data from the SQLSecurityAuditEvents table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/SqlVulnerabilityAssessmentResult/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "SqlVulnerabilityAssessmentResult", - "operation": "Read SqlVulnerabilityAssessmentResult data", - "description": "Read data from the SqlVulnerabilityAssessmentResult table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/SqlVulnerabilityAssessmentScanStatus/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "SqlVulnerabilityAssessmentScanStatus", - "operation": "Read SqlVulnerabilityAssessmentScanStatus data", - "description": "Read data from the SqlVulnerabilityAssessmentScanStatus table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/StorageAntimalwareScanResults/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "StorageAntimalwareScanResults", - "operation": "Read StorageAntimalwareScanResults data", - "description": "Read data from the StorageAntimalwareScanResults table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/StorageBlobLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "StorageBlobLogs", - "operation": "Read StorageBlobLogs data", - "description": "Read data from the StorageBlobLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/StorageCacheOperationEvents/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "StorageCacheOperationEvents", - "operation": "Read StorageCacheOperationEvents data", - "description": "Read data from the StorageCacheOperationEvents table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/StorageCacheUpgradeEvents/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "StorageCacheUpgradeEvents", - "operation": "Read StorageCacheUpgradeEvents data", - "description": "Read data from the StorageCacheUpgradeEvents table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/StorageCacheWarningEvents/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "StorageCacheWarningEvents", - "operation": "Read StorageCacheWarningEvents data", - "description": "Read data from the StorageCacheWarningEvents table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/StorageFileLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "StorageFileLogs", - "operation": "Read StorageFileLogs data", - "description": "Read data from the StorageFileLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/StorageQueueLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "StorageQueueLogs", - "operation": "Read StorageQueueLogs data", - "description": "Read data from the StorageQueueLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/StorageTableLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "StorageTableLogs", - "operation": "Read StorageTableLogs data", - "description": "Read data from the StorageTableLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/SucceededIngestion/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "SucceededIngestion", - "operation": "Read SucceededIngestion data", - "description": "Read data from the SucceededIngestion table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/SynapseBigDataPoolApplicationsEnded/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "SynapseBigDataPoolApplicationsEnded", - "operation": "Read SynapseBigDataPoolApplicationsEnded data", - "description": "Read data from the SynapseBigDataPoolApplicationsEnded table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/SynapseBuiltinSqlPoolRequestsEnded/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "SynapseBuiltinSqlPoolRequestsEnded", - "operation": "Read SynapseBuiltinSqlPoolRequestsEnded data", - "description": "Read data from the SynapseBuiltinSqlPoolRequestsEnded table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/SynapseDXCommand/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "SynapseDXCommand", - "operation": "Read SynapseDXCommand data", - "description": "Read data from the SynapseDXCommand table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/SynapseDXFailedIngestion/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "SynapseDXFailedIngestion", - "operation": "Read SynapseDXFailedIngestion data", - "description": "Read data from the SynapseDXFailedIngestion table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/SynapseDXIngestionBatching/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "SynapseDXIngestionBatching", - "operation": "Read SynapseDXIngestionBatching data", - "description": "Read data from the SynapseDXIngestionBatching table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/SynapseDXQuery/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "SynapseDXQuery", - "operation": "Read SynapseDXQuery data", - "description": "Read data from the SynapseDXQuery table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/SynapseDXSucceededIngestion/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "SynapseDXSucceededIngestion", - "operation": "Read SynapseDXSucceededIngestion data", - "description": "Read data from the SynapseDXSucceededIngestion table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/SynapseDXTableDetails/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "SynapseDXTableDetails", - "operation": "Read SynapseDXTableDetails data", - "description": "Read data from the SynapseDXTableDetails table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/SynapseDXTableUsageStatistics/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "SynapseDXTableUsageStatistics", - "operation": "Read SynapseDXTableUsageStatistics data", - "description": "Read data from the SynapseDXTableUsageStatistics table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/SynapseGatewayApiRequests/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "SynapseGatewayApiRequests", - "operation": "Read SynapseGatewayApiRequests data", - "description": "Read data from the SynapseGatewayApiRequests table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/SynapseGatewayEvents/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "SynapseGatewayEvents", - "operation": "Read SynapseGatewayEvents data", - "description": "Read data from the SynapseGatewayEvents table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/SynapseIntegrationActivityRuns/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "SynapseIntegrationActivityRuns", - "operation": "Read SynapseIntegrationActivityRuns data", - "description": "Read data from the SynapseIntegrationActivityRuns table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/SynapseIntegrationPipelineRuns/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "SynapseIntegrationPipelineRuns", - "operation": "Read SynapseIntegrationPipelineRuns data", - "description": "Read data from the SynapseIntegrationPipelineRuns table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/SynapseIntegrationTriggerRuns/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "SynapseIntegrationTriggerRuns", - "operation": "Read SynapseIntegrationTriggerRuns data", - "description": "Read data from the SynapseIntegrationTriggerRuns table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/SynapseLinkEvent/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "SynapseLinkEvent", - "operation": "Read SynapseLinkEvent data", - "description": "Read data from the SynapseLinkEvent table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/SynapseRBACEvents/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "SynapseRBACEvents", - "operation": "Read SynapseRBACEvents data", - "description": "Read data from the SynapseRBACEvents table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/SynapseRbacOperations/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "SynapseRbacOperations", - "operation": "Read SynapseRbacOperations data", - "description": "Read data from the SynapseRbacOperations table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/SynapseScopePoolScopeJobsEnded/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "SynapseScopePoolScopeJobsEnded", - "operation": "Read SynapseScopePoolScopeJobsEnded data", - "description": "Read data from the SynapseScopePoolScopeJobsEnded table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/SynapseScopePoolScopeJobsStateChange/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "SynapseScopePoolScopeJobsStateChange", - "operation": "Read SynapseScopePoolScopeJobsStateChange data", - "description": "Read data from the SynapseScopePoolScopeJobsStateChange table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/SynapseSqlPoolDmsWorkers/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "SynapseSqlPoolDmsWorkers", - "operation": "Read SynapseSqlPoolDmsWorkers data", - "description": "Read data from the SynapseSqlPoolDmsWorkers table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/SynapseSqlPoolExecRequests/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "SynapseSqlPoolExecRequests", - "operation": "Read SynapseSqlPoolExecRequests data", - "description": "Read data from the SynapseSqlPoolExecRequests table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/SynapseSqlPoolRequestSteps/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "SynapseSqlPoolRequestSteps", - "operation": "Read SynapseSqlPoolRequestSteps data", - "description": "Read data from the SynapseSqlPoolRequestSteps table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/SynapseSqlPoolSqlRequests/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "SynapseSqlPoolSqlRequests", - "operation": "Read SynapseSqlPoolSqlRequests data", - "description": "Read data from the SynapseSqlPoolSqlRequests table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/SynapseSqlPoolWaits/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "SynapseSqlPoolWaits", - "operation": "Read SynapseSqlPoolWaits data", - "description": "Read data from the SynapseSqlPoolWaits table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/Syslog/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "Syslog", - "operation": "Read Syslog data", - "description": "Read data from the Syslog table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/Tables.Custom/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "Tables.Custom", - "operation": "Read Custom Logs", - "description": "Reading data from any custom log" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/ThreatIntelligenceIndicator/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "ThreatIntelligenceIndicator", - "operation": "Read ThreatIntelligenceIndicator data", - "description": "Read data from the ThreatIntelligenceIndicator table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/TSIIngress/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "TSIIngress", - "operation": "Read TSIIngress data", - "description": "Read data from the TSIIngress table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/UAApp/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "UAApp", - "operation": "Read UAApp data", - "description": "Read data from the UAApp table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/UAComputer/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "UAComputer", - "operation": "Read UAComputer data", - "description": "Read data from the UAComputer table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/UAComputerRank/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "UAComputerRank", - "operation": "Read UAComputerRank data", - "description": "Read data from the UAComputerRank table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/UADriver/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "UADriver", - "operation": "Read UADriver data", - "description": "Read data from the UADriver table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/UADriverProblemCodes/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "UADriverProblemCodes", - "operation": "Read UADriverProblemCodes data", - "description": "Read data from the UADriverProblemCodes table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/UAFeedback/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "UAFeedback", - "operation": "Read UAFeedback data", - "description": "Read data from the UAFeedback table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/UAIESiteDiscovery/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "UAIESiteDiscovery", - "operation": "Read UAIESiteDiscovery data", - "description": "Read data from the UAIESiteDiscovery table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/UAOfficeAddIn/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "UAOfficeAddIn", - "operation": "Read UAOfficeAddIn data", - "description": "Read data from the UAOfficeAddIn table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/UAProposedActionPlan/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "UAProposedActionPlan", - "operation": "Read UAProposedActionPlan data", - "description": "Read data from the UAProposedActionPlan table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/UASysReqIssue/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "UASysReqIssue", - "operation": "Read UASysReqIssue data", - "description": "Read data from the UASysReqIssue table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/UAUpgradedComputer/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "UAUpgradedComputer", - "operation": "Read UAUpgradedComputer data", - "description": "Read data from the UAUpgradedComputer table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/UCClient/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "UCClient", - "operation": "Read UCClient data", - "description": "Read data from the UCClient table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/UCClientReadinessStatus/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "UCClientReadinessStatus", - "operation": "Read UCClientReadinessStatus data", - "description": "Read data from the UCClientReadinessStatus table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/UCClientUpdateStatus/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "UCClientUpdateStatus", - "operation": "Read UCClientUpdateStatus data", - "description": "Read data from the UCClientUpdateStatus table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/UCDeviceAlert/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "UCDeviceAlert", - "operation": "Read UCDeviceAlert data", - "description": "Read data from the UCDeviceAlert table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/UCDOAggregatedStatus/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "UCDOAggregatedStatus", - "operation": "Read UCDOAggregatedStatus data", - "description": "Read data from the UCDOAggregatedStatus table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/UCDOStatus/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "UCDOStatus", - "operation": "Read UCDOStatus data", - "description": "Read data from the UCDOStatus table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/UCServiceUpdateStatus/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "UCServiceUpdateStatus", - "operation": "Read UCServiceUpdateStatus data", - "description": "Read data from the UCServiceUpdateStatus table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/UCUpdateAlert/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "UCUpdateAlert", - "operation": "Read UCUpdateAlert data", - "description": "Read data from the UCUpdateAlert table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/Update/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "Update", - "operation": "Read Update data", - "description": "Read data from the Update table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/UpdateRunProgress/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "UpdateRunProgress", - "operation": "Read UpdateRunProgress data", - "description": "Read data from the UpdateRunProgress table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/UpdateSummary/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "UpdateSummary", - "operation": "Read UpdateSummary data", - "description": "Read data from the UpdateSummary table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/UrlClickEvents/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "UrlClickEvents", - "operation": "Read UrlClickEvents data", - "description": "Read data from the UrlClickEvents table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/Usage/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "Usage", - "operation": "Read Usage data", - "description": "Read data from the Usage table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/UserAccessAnalytics/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "UserAccessAnalytics", - "operation": "Read UserAccessAnalytics data", - "description": "Read data from the UserAccessAnalytics table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/UserPeerAnalytics/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "UserPeerAnalytics", - "operation": "Read UserPeerAnalytics data", - "description": "Read data from the UserPeerAnalytics table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/VIAudit/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "VIAudit", - "operation": "Read VIAudit data", - "description": "Read data from the VIAudit table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/VIIndexing/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "VIIndexing", - "operation": "Read VIIndexing data", - "description": "Read data from the VIIndexing table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/VMBoundPort/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "VMBoundPort", - "operation": "Read VMBoundPort data", - "description": "Read data from the VMBoundPort table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/VMComputer/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "VMComputer", - "operation": "Read VMComputer data", - "description": "Read data from the VMComputer table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/VMConnection/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "VMConnection", - "operation": "Read VMConnection data", - "description": "Read data from the VMConnection table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/VMProcess/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "VMProcess", - "operation": "Read VMProcess data", - "description": "Read data from the VMProcess table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/W3CIISLog/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "W3CIISLog", - "operation": "Read W3CIISLog data", - "description": "Read data from the W3CIISLog table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/WaaSDeploymentStatus/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "WaaSDeploymentStatus", - "operation": "Read WaaSDeploymentStatus data", - "description": "Read data from the WaaSDeploymentStatus table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/WaaSInsiderStatus/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "WaaSInsiderStatus", - "operation": "Read WaaSInsiderStatus data", - "description": "Read data from the WaaSInsiderStatus table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/WaaSUpdateStatus/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "WaaSUpdateStatus", - "operation": "Read WaaSUpdateStatus data", - "description": "Read data from the WaaSUpdateStatus table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/Watchlist/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "Watchlist", - "operation": "Read Watchlist data", - "description": "Read data from the Watchlist table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/WDAVStatus/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "WDAVStatus", - "operation": "Read WDAVStatus data", - "description": "Read data from the WDAVStatus table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/WDAVThreat/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "WDAVThreat", - "operation": "Read WDAVThreat data", - "description": "Read data from the WDAVThreat table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/WebPubSubConnectivity/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "WebPubSubConnectivity", - "operation": "Read WebPubSubConnectivity data", - "description": "Read data from the WebPubSubConnectivity table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/WebPubSubHttpRequest/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "WebPubSubHttpRequest", - "operation": "Read WebPubSubHttpRequest data", - "description": "Read data from the WebPubSubHttpRequest table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/WebPubSubMessaging/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "WebPubSubMessaging", - "operation": "Read WebPubSubMessaging data", - "description": "Read data from the WebPubSubMessaging table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/WindowsClientAssessmentRecommendation/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "WindowsClientAssessmentRecommendation", - "operation": "Read WindowsClientAssessmentRecommendation data", - "description": "Read data from the WindowsClientAssessmentRecommendation table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/WindowsEvent/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "WindowsEvent", - "operation": "Read WindowsEvent data", - "description": "Read data from the WindowsEvent table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/WindowsFirewall/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "WindowsFirewall", - "operation": "Read WindowsFirewall data", - "description": "Read data from the WindowsFirewall table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/WindowsServerAssessmentRecommendation/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "WindowsServerAssessmentRecommendation", - "operation": "Read WindowsServerAssessmentRecommendation data", - "description": "Read data from the WindowsServerAssessmentRecommendation table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/WireData/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "WireData", - "operation": "Read WireData data", - "description": "Read data from the WireData table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/WorkloadDiagnosticLogs/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "WorkloadDiagnosticLogs", - "operation": "Read WorkloadDiagnosticLogs data", - "description": "Read data from the WorkloadDiagnosticLogs table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/WorkloadMonitoringPerf/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "WorkloadMonitoringPerf", - "operation": "Read WorkloadMonitoringPerf data", - "description": "Read data from the WorkloadMonitoringPerf table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/WUDOAggregatedStatus/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "WUDOAggregatedStatus", - "operation": "Read WUDOAggregatedStatus data", - "description": "Read data from the WUDOAggregatedStatus table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/WUDOStatus/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "WUDOStatus", - "operation": "Read WUDOStatus data", - "description": "Read data from the WUDOStatus table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/WVDAgentHealthStatus/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "WVDAgentHealthStatus", - "operation": "Read WVDAgentHealthStatus data", - "description": "Read data from the WVDAgentHealthStatus table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/WVDCheckpoints/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "WVDCheckpoints", - "operation": "Read WVDCheckpoints data", - "description": "Read data from the WVDCheckpoints table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/WVDConnectionGraphicsDataPreview/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "WVDConnectionGraphicsDataPreview", - "operation": "Read WVDConnectionGraphicsDataPreview data", - "description": "Read data from the WVDConnectionGraphicsDataPreview table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/WVDConnectionNetworkData/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "WVDConnectionNetworkData", - "operation": "Read WVDConnectionNetworkData data", - "description": "Read data from the WVDConnectionNetworkData table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/WVDConnections/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "WVDConnections", - "operation": "Read WVDConnections data", - "description": "Read data from the WVDConnections table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/WVDErrors/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "WVDErrors", - "operation": "Read WVDErrors data", - "description": "Read data from the WVDErrors table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/WVDFeeds/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "WVDFeeds", - "operation": "Read WVDFeeds data", - "description": "Read data from the WVDFeeds table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/WVDHostRegistrations/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "WVDHostRegistrations", - "operation": "Read WVDHostRegistrations data", - "description": "Read data from the WVDHostRegistrations table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/WVDManagement/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "WVDManagement", - "operation": "Read WVDManagement data", - "description": "Read data from the WVDManagement table" - } - }, - { - "name": "Microsoft.OperationalInsights/workspaces/query/WVDSessionHostManagement/read", - "isDataAction": false, - "display": { - "provider": "Azure Log Analytics", - "resource": "WVDSessionHostManagement", - "operation": "Read WVDSessionHostManagement data", - "description": "Read data from the WVDSessionHostManagement table" - } - }, - { - "name": "microsoft.operationalinsights/workspaces/search/read", - "display": { - "provider": "MicrosoftOperationalInsights", - "resource": "Workspaces", - "operation": "Get Search Results", - "description": "Get search results. Deprecated." - } - }, - { - "name": "microsoft.operationalinsights/workspaces/savedsearches/results/read", - "display": { - "provider": "MicrosoftOperationalInsights", - "resource": "Workspaces", - "operation": "Get Saved Searches Results", - "description": "Get saved searches results. Deprecated" - } - }, - { - "name": "microsoft.operationalinsights/operations/read", - "display": { - "provider": "MicrosoftOperationalInsights", - "resource": "Operations", - "operation": "Get Operations List", - "description": "Lists all of the available OperationalInsights Rest API operations." - } - }, - { - "name": "microsoft.operationalinsights/workspaces/searchJobs/write", - "display": { - "provider": "MicrosoftOperationalInsights", - "resource": "Search Job", - "operation": "Run a search job", - "description": "Run a search job." - } - }, - { - "name": "microsoft.operationalinsights/workspaces/restoreLogs/write", - "display": { - "provider": "MicrosoftOperationalInsights", - "resource": "Restore Logs", - "operation": "Restore data from a table", - "description": "Restore data from a table." - } - }, - { - "name": "microsoft.operationalinsights/workspaces/tables/write", - "display": { - "provider": "MicrosoftOperationalInsights", - "resource": "Tables", - "operation": "Create or update a log analytics table", - "description": "Create or update a log analytics table." - } - }, - { - "name": "microsoft.operationalinsights/workspaces/tables/read", - "display": { - "provider": "MicrosoftOperationalInsights", - "resource": "Tables", - "operation": "Get a log analytics table", - "description": "Get a log analytics table." - } - }, - { - "name": "microsoft.operationalinsights/workspaces/tables/delete", - "display": { - "provider": "MicrosoftOperationalInsights", - "resource": "Tables", - "operation": "Delete a log analytics table", - "description": "Delete a log analytics table." - } - }, - { - "name": "microsoft.operationalinsights/workspaces/operations/read", - "display": { - "provider": "MicrosoftOperationalInsights", - "resource": "Workspaces", - "operation": "Get Operations Status", - "description": "Gets the status of an OperationalInsights workspace operation." - } - }, - { - "name": "microsoft.operationalinsights/workspaces/views/read", - "display": { - "provider": "MicrosoftOperationalInsights", - "resource": "Views", - "operation": "Get views", - "description": "Get workspace views." - } - }, - { - "name": "microsoft.operationalinsights/workspaces/views/write", - "display": { - "provider": "MicrosoftOperationalInsights", - "resource": "Views", - "operation": "Create or update a view", - "description": "Create or update a workspace view." - } - }, - { - "name": "microsoft.operationalinsights/workspaces/views/delete", - "display": { - "provider": "MicrosoftOperationalInsights", - "resource": "Views", - "operation": "Delete view", - "description": "Delete a workspace view." - } - }, - { - "name": "microsoft.operationalinsights/workspaces/rules/read", - "display": { - "provider": "MicrosoftOperationalInsights", - "resource": "Rules", - "operation": "Get all alert rules", - "description": "Get all alert rules." - } - }, - { - "name": "microsoft.operationalinsights/workspaces/customfields/read", - "display": { - "provider": "MicrosoftOperationalInsights", - "resource": "Custom Fields", - "operation": "Get a custom field", - "description": "Get a custom field." - } - }, - { - "name": "microsoft.operationalinsights/workspaces/customfields/write", - "display": { - "provider": "MicrosoftOperationalInsights", - "resource": "Custom Fields", - "operation": "Create or update a custom field", - "description": "Create or update a custom field." - } - }, - { - "name": "microsoft.operationalinsights/workspaces/customfields/delete", - "display": { - "provider": "MicrosoftOperationalInsights", - "resource": "Custom Fields", - "operation": "Delete a custom field", - "description": "Delete a custom field." - } - }, - { - "name": "microsoft.operationalinsights/workspaces/customfields/list", - "display": { - "provider": "MicrosoftOperationalInsights", - "resource": "Custom Fields", - "operation": "List all custom fields", - "description": "List all custom fields." - } - }, - { - "name": "microsoft.operationalinsights/workspaces/customfields/action", - "display": { - "provider": "MicrosoftOperationalInsights", - "resource": "Custom Fields", - "operation": "Extract custom fields", - "description": "Extract custom fields." - } - }, - { - "name": "microsoft.operationalinsights/workspaces/savedsearches/schedules/read", - "display": { - "provider": "MicrosoftOperationalInsights", - "resource": "Schedules", - "operation": "Get scheduled searches", - "description": "Get scheduled searches." - } - }, - { - "name": "microsoft.operationalinsights/workspaces/savedsearches/schedules/delete", - "display": { - "provider": "MicrosoftOperationalInsights", - "resource": "Schedules", - "operation": "Delete scheduled searches", - "description": "Delete scheduled searches." - } - }, - { - "name": "microsoft.operationalinsights/workspaces/savedsearches/schedules/write", - "display": { - "provider": "MicrosoftOperationalInsights", - "resource": "Schedules", - "operation": "Create or update scheduled searches", - "description": "Create or update scheduled searches." - } - }, - { - "name": "microsoft.operationalinsights/workspaces/savedsearches/schedules/actions/read", - "display": { - "provider": "MicrosoftOperationalInsights", - "resource": "Schedules", - "operation": "Get scheduled search actions", - "description": "Get scheduled search actions." - } - }, - { - "name": "microsoft.operationalinsights/workspaces/savedsearches/schedules/actions/delete", - "display": { - "provider": "MicrosoftOperationalInsights", - "resource": "Schedules", - "operation": "Delete scheduled search actions", - "description": "Delete scheduled search actions." - } - }, - { - "name": "microsoft.operationalinsights/workspaces/savedsearches/schedules/actions/write", - "display": { - "provider": "MicrosoftOperationalInsights", - "resource": "Schedules", - "operation": "Create or update scheduled search actions", - "description": "Create or update scheduled search actions." - } - }, - { - "name": "microsoft.operationalinsights/unregister/action", - "display": { - "provider": "MicrosoftOperationalInsights", - "resource": "Subscription", - "operation": "UnregisterSubscription", - "description": "Unregisters the subscription." - } - }, - { - "name": "microsoft.operationalinsights/availableservicetiers/read", - "display": { - "provider": "MicrosoftOperationalInsights", - "resource": "Availableservicetiers", - "operation": "Get the available service tiers", - "description": "Get the available service tiers." - } - }, - { - "name": "microsoft.operationalinsights/workspaces/dataExports/read", - "display": { - "provider": "MicrosoftOperationalInsights", - "resource": "DataExports", - "operation": "Get data export", - "description": "Get specific data export." - } - }, - { - "name": "microsoft.operationalinsights/workspaces/dataExports/write", - "display": { - "provider": "MicrosoftOperationalInsights", - "resource": "DataExports", - "operation": "Upsert data export", - "description": "Create or update data export." - } - }, - { - "name": "microsoft.operationalinsights/workspaces/dataExports/delete", - "display": { - "provider": "MicrosoftOperationalInsights", - "resource": "DataExports", - "operation": "Delete data export", - "description": "Delete specific data export." - } - }, - { - "name": "microsoft.operationalinsights/locations/operationStatuses/read", - "display": { - "provider": "MicrosoftOperationalInsights", - "resource": "OperationStatus", - "operation": "Get Log Analytics Azure Async Operation Status", - "description": "Get Log Analytics Azure Async Operation Status." - } - }, - { - "name": "microsoft.operationalinsights/workspaces/scopedPrivateLinkProxies/read", - "display": { - "provider": "MicrosoftOperationalInsights", - "resource": "ScopedPrivateLinkProxy", - "operation": "Get Scoped Private Link Proxy", - "description": "Get Scoped Private Link Proxy." - } - }, - { - "name": "microsoft.operationalinsights/workspaces/scopedPrivateLinkProxies/write", - "display": { - "provider": "MicrosoftOperationalInsights", - "resource": "ScopedPrivateLinkProxy", - "operation": "Put Scoped Private Link Proxy", - "description": "Put Scoped Private Link Proxy." - } - }, - { - "name": "microsoft.operationalinsights/workspaces/scopedPrivateLinkProxies/delete", - "display": { - "provider": "MicrosoftOperationalInsights", - "resource": "ScopedPrivateLinkProxy", - "operation": "Delete Scoped Private Link Proxy", - "description": "Delete Scoped Private Link Proxy." - } - }, - { - "name": "microsoft.operationalinsights/workspaces/features/generateMap/read", - "display": { - "provider": "MicrosoftOperationalInsights", - "resource": "GenerateMap", - "operation": "Get the Service Map of a resource", - "description": "Get the Service Map of a resource." - } - }, - { - "name": "microsoft.operationalinsights/workspaces/features/servergroups/members/read", - "display": { - "provider": "MicrosoftOperationalInsights", - "resource": "ServerGroupsMembers", - "operation": "Get Server Group Members of a resource", - "description": "Get Server Group Members of a resource." - } - }, - { - "name": "microsoft.operationalinsights/workspaces/features/clientgroups/memebers/read", - "display": { - "provider": "MicrosoftOperationalInsights", - "resource": "ClientGroupsMembers", - "operation": "Get Client Group Members of a resource", - "description": "Get Client Group Members of a resource." - } - }, - { - "name": "microsoft.operationalinsights/workspaces/features/machineGroups/read", - "display": { - "provider": "MicrosoftOperationalInsights", - "resource": "MachineGroups", - "operation": "Get the Service Map Machine Groups", - "description": "Get the Service Map Machine Groups." - } - }, - { - "name": "microsoft.operationalinsights/querypacks/write", - "display": { - "provider": "MicrosoftOperationalInsights", - "resource": "QueryPacks", - "operation": "Create or Update Query Packs", - "description": "Create or Update Query Packs." - } - }, - { - "name": "microsoft.operationalinsights/querypacks/read", - "display": { - "provider": "MicrosoftOperationalInsights", - "resource": "QueryPacks", - "operation": "Get Query Packs", - "description": "Get Query Packs." - } - }, - { - "name": "microsoft.operationalinsights/querypacks/delete", - "display": { - "provider": "MicrosoftOperationalInsights", - "resource": "QueryPacks", - "operation": "Delete Query Packs", - "description": "Delete Query Packs." - } - }, - { - "name": "microsoft.operationalinsights/querypacks/action", - "display": { - "provider": "MicrosoftOperationalInsights", - "resource": "QueryPacks", - "operation": "Perform Query Packs Actions", - "description": "Perform Query Packs Actions." - } - }, - { - "name": "microsoft.operationalinsights/querypacks/queries/write", - "display": { - "provider": "MicrosoftOperationalInsights", - "resource": "QueryPackQueries", - "operation": "Create or Update Query Pack Queries", - "description": "Create or Update Query Pack Queries." - } - }, - { - "name": "microsoft.operationalinsights/querypacks/queries/read", - "display": { - "provider": "MicrosoftOperationalInsights", - "resource": "QueryPackQueries", - "operation": "Get Query Pack Queries", - "description": "Get Query Pack Queries." - } - }, - { - "name": "microsoft.operationalinsights/querypacks/queries/delete", - "display": { - "provider": "MicrosoftOperationalInsights", - "resource": "QueryPackQueries", - "operation": "Delete Query Pack Queries", - "description": "Delete Query Pack Queries." - } - }, - { - "name": "microsoft.operationalinsights/querypacks/queries/action", - "display": { - "provider": "MicrosoftOperationalInsights", - "resource": "QueryPackQueries", - "operation": "Perform Actions on Queries in QueryPack", - "description": "Perform Actions on Queries in QueryPack." - } - }, - { - "name": "microsoft.operationalinsights/workspaces/networkSecurityPerimeterAssociationProxies/read", - "display": { - "provider": "MicrosoftOperationalInsights", - "resource": "NetworkSecurityPerimeterAssociationProxies", - "operation": "Read Network Security Perimeter Association Proxies", - "description": "Read Network Security Perimeter Association Proxies" - } - }, - { - "name": "microsoft.operationalinsights/workspaces/networkSecurityPerimeterAssociationProxies/write", - "display": { - "provider": "MicrosoftOperationalInsights", - "resource": "NetworkSecurityPerimeterAssociationProxies", - "operation": "Write Network Security Perimeter Association Proxies", - "description": "Write Network Security Perimeter Association Proxies" - } - }, - { - "name": "microsoft.operationalinsights/workspaces/networkSecurityPerimeterAssociationProxies/delete", - "display": { - "provider": "MicrosoftOperationalInsights", - "resource": "NetworkSecurityPerimeterAssociationProxies", - "operation": "Delete Network Security Perimeter Association Proxies", - "description": "Delete Network Security Perimeter Association Proxies" - } - }, - { - "name": "microsoft.operationalinsights/workspaces/networkSecurityPerimeterConfigurations/read", - "display": { - "provider": "MicrosoftOperationalInsights", - "resource": "NetworkSecurityPerimeterConfigurations", - "operation": "Read Network Security Perimeter Configurations", - "description": "Read Network Security Perimeter Configurations" - } - }, - { - "name": "microsoft.operationalinsights/workspaces/networkSecurityPerimeterConfigurations/write", - "display": { - "provider": "MicrosoftOperationalInsights", - "resource": "NetworkSecurityPerimeterConfigurations", - "operation": "Write Network Security Perimeter Configurations", - "description": "Write Network Security Perimeter Configurations" - } - }, - { - "name": "microsoft.operationalinsights/workspaces/networkSecurityPerimeterConfigurations/delete", - "display": { - "provider": "MicrosoftOperationalInsights", - "resource": "NetworkSecurityPerimeterConfigurations", - "operation": "Delete Network Security Perimeter Configurations", - "description": "Delete Network Security Perimeter Configurations" - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oiautorestpeY9An?api-version=2021-12-01-preview", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "107", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus", - "properties": { - "retentionInDays": 30, - "sku": { - "name": "PerGB2018" - } - }, - "tags": { - "tag1": "val1" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "api-supported-versions": "2021-12-01-preview", - "Cache-Control": "no-cache", - "Content-Length": "860", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:41:09 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oiautorestpeY9An?api-version=2021-12-01-preview", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1172", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T084110Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "properties": { - "customerId": "00000000-0000-0000-0000-000000000000", - "provisioningState": "Creating", - "sku": { - "name": "PerGB2018", - "lastSkuUpdate": "2022-11-03T08:41:09.2231339Z" - }, - "retentionInDays": 30, - "features": { - "legacy": 0, - "searchVersion": 1, - "enableLogAccessUsingOnlyResourcePermissions": true - }, - "workspaceCapping": { - "dailyQuotaGb": -1.0, - "quotaNextResetTime": "2022-11-03T19:00:00Z", - "dataIngestionStatus": "RespectQuota" - }, - "publicNetworkAccessForIngestion": "Enabled", - "publicNetworkAccessForQuery": "Enabled", - "createdDate": "2022-11-03T08:41:09.2231339Z", - "modifiedDate": "2022-11-03T08:41:09.2231339Z" - }, - "location": "westus", - "tags": { - "tag1": "val1" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oiautorestpeY9An", - "name": "oiautorestpeY9An", - "type": "Microsoft.OperationalInsights/workspaces" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oiautorestpeY9An?api-version=2021-12-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "api-supported-versions": "2021-12-01-preview", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:41:10 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11844", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T084111Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "properties": { - "customerId": "00000000-0000-0000-0000-000000000000", - "provisioningState": "Creating", - "sku": { - "name": "PerGB2018", - "lastSkuUpdate": "2022-11-03T08:41:09.2231339Z" - }, - "retentionInDays": 30, - "features": { - "legacy": 0, - "searchVersion": 1, - "enableLogAccessUsingOnlyResourcePermissions": true - }, - "workspaceCapping": { - "dailyQuotaGb": -1.0, - "quotaNextResetTime": "2022-11-03T19:00:00Z", - "dataIngestionStatus": "RespectQuota" - }, - "publicNetworkAccessForIngestion": "Enabled", - "publicNetworkAccessForQuery": "Enabled", - "createdDate": "2022-11-03T08:41:09.2231339Z", - "modifiedDate": "2022-11-03T08:41:09.2231339Z" - }, - "location": "westus", - "tags": { - "tag1": "val1" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oiautorestpeY9An", - "name": "oiautorestpeY9An", - "type": "Microsoft.OperationalInsights/workspaces" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oiautorestpeY9An?api-version=2021-12-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "api-supported-versions": "2021-12-01-preview", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:41:41 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11843", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T084141Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "properties": { - "customerId": "00000000-0000-0000-0000-000000000000", - "provisioningState": "Succeeded", - "sku": { - "name": "PerGB2018", - "lastSkuUpdate": "2022-11-03T08:41:09.2231339Z" - }, - "retentionInDays": 30, - "features": { - "legacy": 0, - "searchVersion": 1, - "enableLogAccessUsingOnlyResourcePermissions": true - }, - "workspaceCapping": { - "dailyQuotaGb": -1.0, - "quotaNextResetTime": "2022-11-03T19:00:00Z", - "dataIngestionStatus": "RespectQuota" - }, - "publicNetworkAccessForIngestion": "Enabled", - "publicNetworkAccessForQuery": "Enabled", - "createdDate": "2022-11-03T08:41:09.2231339Z", - "modifiedDate": "2022-11-03T08:41:09.2231339Z" - }, - "location": "westus", - "tags": { - "tag1": "val1" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oiautorestpeY9An", - "name": "oiautorestpeY9An", - "type": "Microsoft.OperationalInsights/workspaces" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/workspaces?api-version=2021-12-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "2671", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:41:42 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-original-request-ids": [ - "", - "" - ], - "x-ms-ratelimit-remaining-subscription-reads": "11842", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T084143Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "properties": { - "customerId": "00000000-0000-0000-0000-000000000000", - "provisioningState": "Succeeded", - "sku": { - "name": "pergb2018", - "lastSkuUpdate": "2022-09-02T06:20:23.3870424Z" - }, - "retentionInDays": 30, - "features": { - "legacy": 0, - "searchVersion": 1, - "enableLogAccessUsingOnlyResourcePermissions": true - }, - "workspaceCapping": { - "dailyQuotaGb": -1.0, - "quotaNextResetTime": "2022-09-02T10:00:00Z", - "dataIngestionStatus": "RespectQuota" - }, - "publicNetworkAccessForIngestion": "Enabled", - "publicNetworkAccessForQuery": "Enabled", - "createdDate": "2022-09-02T06:20:23.3870424Z", - "modifiedDate": "2022-09-02T06:20:23.3870424Z" - }, - "location": "Central US", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/DefaultResourceGroup-CUS/providers/Microsoft.OperationalInsights/workspaces/DefaultWorkspace-00000000-0000-0000-0000-000000000000-CUS", - "name": "DefaultWorkspace-00000000-0000-0000-0000-000000000000-CUS", - "type": "Microsoft.OperationalInsights/workspaces" - }, - { - "properties": { - "customerId": "00000000-0000-0000-0000-000000000000", - "provisioningState": "Succeeded", - "sku": { - "name": "PerGB2018", - "lastSkuUpdate": "2022-11-03T08:40:26.7265457Z" - }, - "retentionInDays": 30, - "features": { - "legacy": 0, - "searchVersion": 1, - "enableLogAccessUsingOnlyResourcePermissions": true - }, - "workspaceCapping": { - "dailyQuotaGb": -1.0, - "quotaNextResetTime": "2022-11-03T11:00:00Z", - "dataIngestionStatus": "RespectQuota" - }, - "publicNetworkAccessForIngestion": "Enabled", - "publicNetworkAccessForQuery": "Enabled", - "createdDate": "2022-11-03T08:40:26.7265457Z", - "modifiedDate": "2022-11-03T08:40:26.7265457Z" - }, - "location": "westus", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oistorageinsightconfigpeY9An", - "name": "oistorageinsightconfigpeY9An", - "type": "Microsoft.OperationalInsights/workspaces" - }, - { - "properties": { - "customerId": "00000000-0000-0000-0000-000000000000", - "provisioningState": "Succeeded", - "sku": { - "name": "PerGB2018", - "lastSkuUpdate": "2022-11-03T08:41:09.2231339Z" - }, - "retentionInDays": 30, - "features": { - "legacy": 0, - "searchVersion": 1, - "enableLogAccessUsingOnlyResourcePermissions": true - }, - "workspaceCapping": { - "dailyQuotaGb": -1.0, - "quotaNextResetTime": "2022-11-03T19:00:00Z", - "dataIngestionStatus": "RespectQuota" - }, - "publicNetworkAccessForIngestion": "Enabled", - "publicNetworkAccessForQuery": "Enabled", - "createdDate": "2022-11-03T08:41:09.2231339Z", - "modifiedDate": "2022-11-03T08:41:09.2231339Z" - }, - "location": "westus", - "tags": { - "tag1": "val1" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oiautorestpeY9An", - "name": "oiautorestpeY9An", - "type": "Microsoft.OperationalInsights/workspaces" - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oiautorestpeY9An?api-version=2021-12-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "api-supported-versions": "2021-12-01-preview", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:41:43 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11841", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T084143Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "properties": { - "customerId": "00000000-0000-0000-0000-000000000000", - "provisioningState": "Succeeded", - "sku": { - "name": "PerGB2018", - "lastSkuUpdate": "2022-11-03T08:41:09.2231339Z" - }, - "retentionInDays": 30, - "features": { - "legacy": 0, - "searchVersion": 1, - "enableLogAccessUsingOnlyResourcePermissions": true - }, - "workspaceCapping": { - "dailyQuotaGb": -1.0, - "quotaNextResetTime": "2022-11-03T19:00:00Z", - "dataIngestionStatus": "RespectQuota" - }, - "publicNetworkAccessForIngestion": "Enabled", - "publicNetworkAccessForQuery": "Enabled", - "createdDate": "2022-11-03T08:41:09.2231339Z", - "modifiedDate": "2022-11-03T08:41:09.2231339Z" - }, - "location": "westus", - "tags": { - "tag1": "val1" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oiautorestpeY9An", - "name": "oiautorestpeY9An", - "type": "Microsoft.OperationalInsights/workspaces" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces?api-version=2021-12-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "api-supported-versions": "2021-12-01-preview", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:41:43 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11840", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T084143Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "value": [ - { - "properties": { - "customerId": "00000000-0000-0000-0000-000000000000", - "provisioningState": "Succeeded", - "sku": { - "name": "PerGB2018", - "lastSkuUpdate": "2022-11-03T08:41:09.2231339Z" - }, - "retentionInDays": 30, - "features": { - "legacy": 0, - "searchVersion": 1, - "enableLogAccessUsingOnlyResourcePermissions": true - }, - "workspaceCapping": { - "dailyQuotaGb": -1.0, - "quotaNextResetTime": "2022-11-03T19:00:00Z", - "dataIngestionStatus": "RespectQuota" - }, - "publicNetworkAccessForIngestion": "Enabled", - "publicNetworkAccessForQuery": "Enabled", - "createdDate": "2022-11-03T08:41:09.2231339Z", - "modifiedDate": "2022-11-03T08:41:09.2231339Z" - }, - "location": "westus", - "tags": { - "tag1": "val1" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oiautorestpeY9An", - "name": "oiautorestpeY9An", - "type": "Microsoft.OperationalInsights/workspaces" - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oiautorestpeY9An?api-version=2021-12-01-preview", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "103", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "retentionInDays": 30, - "sku": { - "name": "PerGB2018" - }, - "workspaceCapping": { - "dailyQuotaGb": -1 - } - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "api-supported-versions": "2021-12-01-preview", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:41:44 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding", - "Accept-Encoding" - ], - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1171", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T084144Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "properties": { - "customerId": "00000000-0000-0000-0000-000000000000", - "provisioningState": "Succeeded", - "sku": { - "name": "PerGB2018", - "lastSkuUpdate": "2022-11-03T08:41:09.2231339Z" - }, - "retentionInDays": 30, - "features": { - "legacy": 0, - "searchVersion": 1, - "enableLogAccessUsingOnlyResourcePermissions": true - }, - "workspaceCapping": { - "dailyQuotaGb": -1.0, - "quotaNextResetTime": "2022-11-03T19:00:00Z", - "dataIngestionStatus": "RespectQuota" - }, - "publicNetworkAccessForIngestion": "Enabled", - "publicNetworkAccessForQuery": "Enabled", - "createdDate": "2022-11-03T08:41:09.2231339Z", - "modifiedDate": "2022-11-03T08:41:44.3728442Z" - }, - "location": "westus", - "tags": { - "tag1": "val1" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oiautorestpeY9An", - "name": "oiautorestpeY9An", - "type": "Microsoft.OperationalInsights/workspaces", - "etag": "\u002200000000-0000-0000-0000-000000000000\u0022" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oiautorestpeY9An?api-version=2021-12-01-preview", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Origin": "*", - "api-supported-versions": "2021-12-01-preview", - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Thu, 03 Nov 2022 08:41:51 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:00000000-0000-0000-0000-000000000000", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14984", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T084151Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.OperationalInsights/deletedWorkspaces?api-version=2021-12-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "13717", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:41:53 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-original-request-ids": [ - "00000000-0000-0000-0000-000000000000", - "d02aa824-a211-45fd-865a-25800bd48025", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "4fa43ba5-08f6-4401-bc78-d6cdd2043eb3", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - ], - "x-ms-ratelimit-remaining-subscription-reads": "11839", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T084154Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "properties": { - "customerId": "00000000-0000-0000-0000-000000000000", - "provisioningState": "Succeeded", - "sku": { - "name": "pergb2018", - "lastSkuUpdate": "2022-09-27T08:25:53.5606673Z" - }, - "retentionInDays": 30, - "features": { - "legacy": 0, - "searchVersion": 1, - "enableLogAccessUsingOnlyResourcePermissions": true - }, - "workspaceCapping": { - "dailyQuotaGb": -1.0, - "quotaNextResetTime": "2022-09-28T00:00:00Z", - "dataIngestionStatus": "RespectQuota" - }, - "publicNetworkAccessForIngestion": "Enabled", - "publicNetworkAccessForQuery": "Enabled", - "createdDate": "2022-09-27T08:25:53.5606673Z", - "modifiedDate": "2022-09-27T08:25:53.5606673Z" - }, - "location": "eastus2", - "tags": {}, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myjstest/providers/Microsoft.OperationalInsights/workspaces/myWorkspace", - "name": "myWorkspace", - "type": "Microsoft.OperationalInsights/workspaces" - }, - { - "properties": { - "customerId": "00000000-0000-0000-0000-000000000000", - "provisioningState": "Succeeded", - "sku": { - "name": "PerGB2018", - "lastSkuUpdate": "2022-11-03T06:37:42.3324316Z" - }, - "retentionInDays": 30, - "features": { - "legacy": 0, - "searchVersion": 1, - "enableLogAccessUsingOnlyResourcePermissions": true - }, - "workspaceCapping": { - "dailyQuotaGb": -1.0, - "quotaNextResetTime": "2022-11-03T21:00:00Z", - "dataIngestionStatus": "RespectQuota" - }, - "publicNetworkAccessForIngestion": "Enabled", - "publicNetworkAccessForQuery": "Enabled", - "createdDate": "2022-11-03T06:37:42.3324316Z", - "modifiedDate": "2022-11-03T06:37:42.3324316Z" - }, - "location": "westus", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oidataexportjLcZP4", - "name": "oidataexportjLcZP4", - "type": "Microsoft.OperationalInsights/workspaces" - }, - { - "properties": { - "customerId": "00000000-0000-0000-0000-000000000000", - "provisioningState": "Succeeded", - "sku": { - "name": "PerGB2018", - "lastSkuUpdate": "2022-11-03T06:41:41.9539401Z" - }, - "retentionInDays": 30, - "features": { - "legacy": 0, - "searchVersion": 1, - "enableLogAccessUsingOnlyResourcePermissions": true - }, - "workspaceCapping": { - "dailyQuotaGb": -1.0, - "quotaNextResetTime": "2022-11-03T10:00:00Z", - "dataIngestionStatus": "RespectQuota" - }, - "publicNetworkAccessForIngestion": "Enabled", - "publicNetworkAccessForQuery": "Enabled", - "createdDate": "2022-11-03T06:41:41.9539401Z", - "modifiedDate": "2022-11-03T06:41:41.9539401Z" - }, - "location": "westus", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oiautorestjLcZP4", - "name": "oiautorestjLcZP4", - "type": "Microsoft.OperationalInsights/workspaces" - }, - { - "properties": { - "customerId": "00000000-0000-0000-0000-000000000000", - "provisioningState": "Succeeded", - "sku": { - "name": "PerGB2018", - "lastSkuUpdate": "2022-11-03T06:42:23.9916559Z" - }, - "retentionInDays": 30, - "features": { - "legacy": 0, - "searchVersion": 1, - "enableLogAccessUsingOnlyResourcePermissions": true - }, - "workspaceCapping": { - "dailyQuotaGb": -1.0, - "quotaNextResetTime": "2022-11-03T09:00:00Z", - "dataIngestionStatus": "RespectQuota" - }, - "publicNetworkAccessForIngestion": "Enabled", - "publicNetworkAccessForQuery": "Enabled", - "createdDate": "2022-11-03T06:42:23.9916559Z", - "modifiedDate": "2022-11-03T06:42:23.9916559Z" - }, - "location": "westus", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oiintelliagencepackjLcZP4", - "name": "oiintelliagencepackjLcZP4", - "type": "Microsoft.OperationalInsights/workspaces" - }, - { - "properties": { - "customerId": "00000000-0000-0000-0000-000000000000", - "provisioningState": "Succeeded", - "sku": { - "name": "PerGB2018", - "lastSkuUpdate": "2022-11-03T07:18:51.8188936Z" - }, - "retentionInDays": 30, - "features": { - "legacy": 0, - "searchVersion": 1, - "enableLogAccessUsingOnlyResourcePermissions": true - }, - "workspaceCapping": { - "dailyQuotaGb": -1.0, - "quotaNextResetTime": "2022-11-03T10:00:00Z", - "dataIngestionStatus": "RespectQuota" - }, - "publicNetworkAccessForIngestion": "Enabled", - "publicNetworkAccessForQuery": "Enabled", - "createdDate": "2022-11-03T06:42:34.1863309Z", - "modifiedDate": "2022-11-03T06:42:34.1863309Z" - }, - "location": "westus", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oilinkedservicejLcZP4", - "name": "oilinkedservicejLcZP4", - "type": "Microsoft.OperationalInsights/workspaces" - }, - { - "properties": { - "customerId": "00000000-0000-0000-0000-000000000000", - "provisioningState": "Succeeded", - "sku": { - "name": "PerGB2018", - "lastSkuUpdate": "2022-11-03T07:20:43.8455038Z" - }, - "retentionInDays": 30, - "features": { - "legacy": 0, - "searchVersion": 1, - "enableLogAccessUsingOnlyResourcePermissions": true - }, - "workspaceCapping": { - "dailyQuotaGb": -1.0, - "quotaNextResetTime": "2022-11-04T07:00:00Z", - "dataIngestionStatus": "RespectQuota" - }, - "publicNetworkAccessForIngestion": "Enabled", - "publicNetworkAccessForQuery": "Enabled", - "createdDate": "2022-11-03T07:20:43.8455038Z", - "modifiedDate": "2022-11-03T07:20:43.8455038Z" - }, - "location": "westus", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oilinkedstorageaccountjLcZP4", - "name": "oilinkedstorageaccountjLcZP4", - "type": "Microsoft.OperationalInsights/workspaces" - }, - { - "properties": { - "customerId": "00000000-0000-0000-0000-000000000000", - "provisioningState": "Succeeded", - "sku": { - "name": "PerGB2018", - "lastSkuUpdate": "2022-11-03T07:21:31.7411067Z" - }, - "retentionInDays": 30, - "features": { - "legacy": 0, - "searchVersion": 1, - "enableLogAccessUsingOnlyResourcePermissions": true - }, - "workspaceCapping": { - "dailyQuotaGb": -1.0, - "quotaNextResetTime": "2022-11-04T01:00:00Z", - "dataIngestionStatus": "RespectQuota" - }, - "publicNetworkAccessForIngestion": "Enabled", - "publicNetworkAccessForQuery": "Enabled", - "createdDate": "2022-11-03T07:21:31.7411067Z", - "modifiedDate": "2022-11-03T07:21:31.7411067Z" - }, - "location": "westus", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oisavesearchjLcZP4", - "name": "oisavesearchjLcZP4", - "type": "Microsoft.OperationalInsights/workspaces" - }, - { - "properties": { - "customerId": "00000000-0000-0000-0000-000000000000", - "provisioningState": "Succeeded", - "sku": { - "name": "PerGB2018", - "lastSkuUpdate": "2022-11-03T07:22:45.907439Z" - }, - "retentionInDays": 30, - "features": { - "legacy": 0, - "searchVersion": 1, - "enableLogAccessUsingOnlyResourcePermissions": true - }, - "workspaceCapping": { - "dailyQuotaGb": -1.0, - "quotaNextResetTime": "2022-11-04T03:00:00Z", - "dataIngestionStatus": "RespectQuota" - }, - "publicNetworkAccessForIngestion": "Enabled", - "publicNetworkAccessForQuery": "Enabled", - "createdDate": "2022-11-03T07:22:45.907439Z", - "modifiedDate": "2022-11-03T07:22:45.907439Z" - }, - "location": "westus", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oistorageinsightconfigjLcZP4", - "name": "oistorageinsightconfigjLcZP4", - "type": "Microsoft.OperationalInsights/workspaces" - }, - { - "properties": { - "customerId": "00000000-0000-0000-0000-000000000000", - "provisioningState": "Succeeded", - "sku": { - "name": "PerGB2018", - "lastSkuUpdate": "2022-11-03T07:23:30.0234685Z" - }, - "retentionInDays": 30, - "features": { - "legacy": 0, - "searchVersion": 1, - "enableLogAccessUsingOnlyResourcePermissions": true - }, - "workspaceCapping": { - "dailyQuotaGb": -1.0, - "quotaNextResetTime": "2022-11-04T01:00:00Z", - "dataIngestionStatus": "RespectQuota" - }, - "publicNetworkAccessForIngestion": "Enabled", - "publicNetworkAccessForQuery": "Enabled", - "createdDate": "2022-11-03T07:23:30.0234685Z", - "modifiedDate": "2022-11-03T07:23:34.8994295Z" - }, - "location": "westus", - "tags": { - "tag1": "val1" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oiautorestjLcZP4", - "name": "oiautorestjLcZP4", - "type": "Microsoft.OperationalInsights/workspaces", - "etag": "\u002200000000-0000-0000-0000-000000000000\u0022" - }, - { - "properties": { - "customerId": "00000000-0000-0000-0000-000000000000", - "provisioningState": "Succeeded", - "sku": { - "name": "PerGB2018", - "lastSkuUpdate": "2022-11-03T07:57:30.9300253Z" - }, - "retentionInDays": 30, - "features": { - "legacy": 0, - "searchVersion": 1, - "enableLogAccessUsingOnlyResourcePermissions": true - }, - "workspaceCapping": { - "dailyQuotaGb": -1.0, - "quotaNextResetTime": "2022-11-04T04:00:00Z", - "dataIngestionStatus": "RespectQuota" - }, - "publicNetworkAccessForIngestion": "Enabled", - "publicNetworkAccessForQuery": "Enabled", - "createdDate": "2022-11-03T07:57:30.9300253Z", - "modifiedDate": "2022-11-03T07:57:30.9300253Z" - }, - "location": "westus", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oidataexportpeY9An", - "name": "oidataexportpeY9An", - "type": "Microsoft.OperationalInsights/workspaces" - }, - { - "properties": { - "customerId": "00000000-0000-0000-0000-000000000000", - "provisioningState": "Succeeded", - "sku": { - "name": "PerGB2018", - "lastSkuUpdate": "2022-11-03T08:00:22.9285913Z" - }, - "retentionInDays": 30, - "features": { - "legacy": 0, - "searchVersion": 1, - "enableLogAccessUsingOnlyResourcePermissions": true - }, - "workspaceCapping": { - "dailyQuotaGb": -1.0, - "quotaNextResetTime": "2022-11-03T20:00:00Z", - "dataIngestionStatus": "RespectQuota" - }, - "publicNetworkAccessForIngestion": "Enabled", - "publicNetworkAccessForQuery": "Enabled", - "createdDate": "2022-11-03T08:00:22.9285913Z", - "modifiedDate": "2022-11-03T08:00:22.9285913Z" - }, - "location": "westus", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oiautorestpeY9An", - "name": "oiautorestpeY9An", - "type": "Microsoft.OperationalInsights/workspaces" - }, - { - "properties": { - "customerId": "00000000-0000-0000-0000-000000000000", - "provisioningState": "Succeeded", - "sku": { - "name": "PerGB2018", - "lastSkuUpdate": "2022-11-03T08:01:25.5313476Z" - }, - "retentionInDays": 30, - "features": { - "legacy": 0, - "searchVersion": 1, - "enableLogAccessUsingOnlyResourcePermissions": true - }, - "workspaceCapping": { - "dailyQuotaGb": -1.0, - "quotaNextResetTime": "2022-11-04T02:00:00Z", - "dataIngestionStatus": "RespectQuota" - }, - "publicNetworkAccessForIngestion": "Enabled", - "publicNetworkAccessForQuery": "Enabled", - "createdDate": "2022-11-03T08:01:25.5313476Z", - "modifiedDate": "2022-11-03T08:01:25.5313476Z" - }, - "location": "westus", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oiintelliagencepackpeY9An", - "name": "oiintelliagencepackpeY9An", - "type": "Microsoft.OperationalInsights/workspaces" - }, - { - "properties": { - "customerId": "00000000-0000-0000-0000-000000000000", - "provisioningState": "Succeeded", - "sku": { - "name": "PerGB2018", - "lastSkuUpdate": "2022-11-03T08:37:17.5271523Z" - }, - "retentionInDays": 30, - "features": { - "legacy": 0, - "searchVersion": 1, - "enableLogAccessUsingOnlyResourcePermissions": true - }, - "workspaceCapping": { - "dailyQuotaGb": -1.0, - "quotaNextResetTime": "2022-11-04T06:00:00Z", - "dataIngestionStatus": "RespectQuota" - }, - "publicNetworkAccessForIngestion": "Enabled", - "publicNetworkAccessForQuery": "Enabled", - "createdDate": "2022-11-03T08:01:34.7686374Z", - "modifiedDate": "2022-11-03T08:01:34.7686374Z" - }, - "location": "westus", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oilinkedservicepeY9An", - "name": "oilinkedservicepeY9An", - "type": "Microsoft.OperationalInsights/workspaces" - }, - { - "properties": { - "customerId": "00000000-0000-0000-0000-000000000000", - "provisioningState": "Succeeded", - "sku": { - "name": "PerGB2018", - "lastSkuUpdate": "2022-11-03T08:38:32.1941398Z" - }, - "retentionInDays": 30, - "features": { - "legacy": 0, - "searchVersion": 1, - "enableLogAccessUsingOnlyResourcePermissions": true - }, - "workspaceCapping": { - "dailyQuotaGb": -1.0, - "quotaNextResetTime": "2022-11-04T07:00:00Z", - "dataIngestionStatus": "RespectQuota" - }, - "publicNetworkAccessForIngestion": "Enabled", - "publicNetworkAccessForQuery": "Enabled", - "createdDate": "2022-11-03T08:38:32.1941398Z", - "modifiedDate": "2022-11-03T08:38:32.1941398Z" - }, - "location": "westus", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oilinkedstorageaccountpeY9An", - "name": "oilinkedstorageaccountpeY9An", - "type": "Microsoft.OperationalInsights/workspaces" - }, - { - "properties": { - "customerId": "00000000-0000-0000-0000-000000000000", - "provisioningState": "Succeeded", - "sku": { - "name": "PerGB2018", - "lastSkuUpdate": "2022-11-03T08:39:12.5700248Z" - }, - "retentionInDays": 30, - "features": { - "legacy": 0, - "searchVersion": 1, - "enableLogAccessUsingOnlyResourcePermissions": true - }, - "workspaceCapping": { - "dailyQuotaGb": -1.0, - "quotaNextResetTime": "2022-11-03T20:00:00Z", - "dataIngestionStatus": "RespectQuota" - }, - "publicNetworkAccessForIngestion": "Enabled", - "publicNetworkAccessForQuery": "Enabled", - "createdDate": "2022-11-03T08:39:12.5700248Z", - "modifiedDate": "2022-11-03T08:39:12.5700248Z" - }, - "location": "westus", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oisavesearchpeY9An", - "name": "oisavesearchpeY9An", - "type": "Microsoft.OperationalInsights/workspaces" - }, - { - "properties": { - "customerId": "00000000-0000-0000-0000-000000000000", - "provisioningState": "Succeeded", - "sku": { - "name": "PerGB2018", - "lastSkuUpdate": "2022-11-03T08:41:09.2231339Z" - }, - "retentionInDays": 30, - "features": { - "legacy": 0, - "searchVersion": 1, - "enableLogAccessUsingOnlyResourcePermissions": true - }, - "workspaceCapping": { - "dailyQuotaGb": -1.0, - "quotaNextResetTime": "2022-11-03T19:00:00Z", - "dataIngestionStatus": "RespectQuota" - }, - "publicNetworkAccessForIngestion": "Enabled", - "publicNetworkAccessForQuery": "Enabled", - "createdDate": "2022-11-03T08:41:09.2231339Z", - "modifiedDate": "2022-11-03T08:41:44.3728442Z" - }, - "location": "westus", - "tags": { - "tag1": "val1" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oiautorestpeY9An", - "name": "oiautorestpeY9An", - "type": "Microsoft.OperationalInsights/workspaces", - "etag": "\u002200000000-0000-0000-0000-000000000000\u0022" - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/deletedWorkspaces?api-version=2021-12-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armoperationalinsights/v2.0.0-beta.2 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "923", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 03 Nov 2022 08:41:54 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-original-request-ids": [ - "00000000-0000-0000-0000-000000000000", - "83ef7b20-54de-4333-beb1-2f262a08f032", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "e5684e22-94e0-48fa-b54d-8b64ebb2c88e", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - ], - "x-ms-ratelimit-remaining-subscription-reads": "11838", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T084154Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "properties": { - "customerId": "00000000-0000-0000-0000-000000000000", - "provisioningState": "Succeeded", - "sku": { - "name": "PerGB2018", - "lastSkuUpdate": "2022-11-03T08:41:09.2231339Z" - }, - "retentionInDays": 30, - "features": { - "legacy": 0, - "searchVersion": 1, - "enableLogAccessUsingOnlyResourcePermissions": true - }, - "workspaceCapping": { - "dailyQuotaGb": -1.0, - "quotaNextResetTime": "2022-11-03T19:00:00Z", - "dataIngestionStatus": "RespectQuota" - }, - "publicNetworkAccessForIngestion": "Enabled", - "publicNetworkAccessForQuery": "Enabled", - "createdDate": "2022-11-03T08:41:09.2231339Z", - "modifiedDate": "2022-11-03T08:41:44.3728442Z" - }, - "location": "westus", - "tags": { - "tag1": "val1" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.OperationalInsights/workspaces/oiautorestpeY9An", - "name": "oiautorestpeY9An", - "type": "Microsoft.OperationalInsights/workspaces", - "etag": "\u002200000000-0000-0000-0000-000000000000\u0022" - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Thu, 03 Nov 2022 08:41:55 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ2OTMtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14983", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221103T084156Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": { - "recordingRandomSeed": "1667460681" - } -} diff --git a/sdk/resourcemanager/operationalinsights/armoperationalinsights/workspaces_live_test.go b/sdk/resourcemanager/operationalinsights/armoperationalinsights/workspaces_live_test.go index d7cb068cffc9..cc3ab53060aa 100644 --- a/sdk/resourcemanager/operationalinsights/armoperationalinsights/workspaces_live_test.go +++ b/sdk/resourcemanager/operationalinsights/armoperationalinsights/workspaces_live_test.go @@ -38,7 +38,7 @@ func (testsuite *WorkspacesTestSuite) SetupSuite() { testsuite.ctx = context.Background() testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) - testsuite.workspaceName = testutil.GenerateAlphaNumericID(testsuite.T(), "oiautorest", 6) + testsuite.workspaceName = testutil.GenerateAlphaNumericID(testsuite.T(), "oiautorestws", 6) testsuite.location = testutil.GetEnv("LOCATION", "westus") testsuite.resourceGroupName = testutil.GetEnv("RESOURCE_GROUP_NAME", "scenarioTestTempGroup") testsuite.subscriptionId = testutil.GetEnv("AZURE_SUBSCRIPTION_ID", "00000000-0000-0000-0000-000000000000") diff --git a/sdk/resourcemanager/postgresql/armpostgresql/assets.json b/sdk/resourcemanager/postgresql/armpostgresql/assets.json new file mode 100644 index 000000000000..25c4966e002f --- /dev/null +++ b/sdk/resourcemanager/postgresql/armpostgresql/assets.json @@ -0,0 +1,6 @@ +{ + "AssetsRepo": "Azure/azure-sdk-assets", + "AssetsRepoPrefixPath": "go", + "TagPrefix": "go/resourcemanager/postgresql/armpostgresql", + "Tag": "go/resourcemanager/postgresql/armpostgresql_f0f9b166df" +} diff --git a/sdk/resourcemanager/postgresql/armpostgresql/go.mod b/sdk/resourcemanager/postgresql/armpostgresql/go.mod index 3e75ad776e8c..98f03a45b9f3 100644 --- a/sdk/resourcemanager/postgresql/armpostgresql/go.mod +++ b/sdk/resourcemanager/postgresql/armpostgresql/go.mod @@ -3,27 +3,27 @@ module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/postgresql/armpostg go 1.18 require ( - github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.1 + github.com/Azure/azure-sdk-for-go/sdk/azcore v1.4.0 + github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.2 github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0 github.com/stretchr/testify v1.7.0 ) require ( - github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.0.0 // 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/Azure/azure-sdk-for-go/sdk/internal v1.2.0 // indirect + github.com/AzureAD/microsoft-authentication-library-for-go v0.7.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/dnaeon/go-vcr v1.1.0 // indirect - github.com/golang-jwt/jwt v3.2.1+incompatible // indirect + github.com/golang-jwt/jwt/v4 v4.4.2 // 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 github.com/pmezard/go-difflib v1.0.0 // 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 + golang.org/x/net v0.7.0 // indirect + golang.org/x/sys v0.5.0 // indirect + golang.org/x/text v0.7.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect ) diff --git a/sdk/resourcemanager/postgresql/armpostgresql/go.sum b/sdk/resourcemanager/postgresql/armpostgresql/go.sum index 07096d31831b..b0f97586a165 100644 --- a/sdk/resourcemanager/postgresql/armpostgresql/go.sum +++ b/sdk/resourcemanager/postgresql/armpostgresql/go.sum @@ -1,29 +1,27 @@ -github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.0 h1:Ut0ZGdOwJDw0npYEg+TLlPls3Pq6JiZaP2/aGKir7Zw= -github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.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/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.1 h1:BZOe7ExNYNGmapT91ZUrxtMYsqVljMxTHEnwjOdG7pk= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.1/go.mod h1:TSPEzbGHEgqFa3kUn09SpCrfKNbj7+mMulU/72Vg84E= +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.0 h1:t/W5MYAuQy81cvM8VUNfRLzhtKpXhVUAN7Cd7KVbTyc= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.0/go.mod h1:NBanQUfSWiWn3QEpWDTCU0IjBECKOYvl2R8xdRtMtiM= +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/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.2 h1:mLY+pNLjCUeKhgnAJWAKhEUQM+RJQo2H1fuGSw1Ky1E= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.2/go.mod h1:FbdwsQ2EzwvXxOPcMFYO8ogEc9uMMIj3YkmCdXdAFmk= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0 h1:ECsQtyERDVz3NP3kvDOTLvbQhqWp/x9EsGKtb4ogUr8= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0/go.mod h1:s1tW/At+xHqjNFvWU4G0c0Qv33KOhvbGNj0RCTQDV8s= -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/AzureAD/microsoft-authentication-library-for-go v0.7.0 h1:VgSJlZH5u0k2qxSpqyghcFQKmvYckj46uymKK5XzkBM= +github.com/AzureAD/microsoft-authentication-library-for-go v0.7.0/go.mod h1:BDJ5qMFKx9DugEg3+uQSDCdbYPr5s9vBTrL9P8TpqOU= 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/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 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= +github.com/golang-jwt/jwt/v4 v4.4.2 h1:rcc4lwaZgFMCZ5jxF9ABolDcIHdBytAFgqFPbSJQAYs= +github.com/golang-jwt/jwt/v4 v4.4.2/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= 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= @@ -33,13 +31,12 @@ github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5Cc github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= 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-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/net v0.7.0 h1:rJrUqqhjsgNp7KqAIc25s9pZnjU7TUcSY7HcVZjdn1g= +golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= +golang.org/x/sys v0.5.0 h1:MUK/U/4lj1t1oPg0HfuXDN/Z1wv31ZJ/YcPiGccS4DU= +golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/text v0.7.0 h1:4BRB4x83lYWy72KwLD/qYDuTu7q9PjSagHvijDw7cLo= +golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= 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= diff --git a/sdk/resourcemanager/postgresql/armpostgresql/testdata/recordings/TestPostgresqlTestSuite.json b/sdk/resourcemanager/postgresql/armpostgresql/testdata/recordings/TestPostgresqlTestSuite.json deleted file mode 100644 index fb6bac6c5765..000000000000 --- a/sdk/resourcemanager/postgresql/armpostgresql/testdata/recordings/TestPostgresqlTestSuite.json +++ /dev/null @@ -1,8306 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "eastus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 02:13:34 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T021335Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "eastus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ?api-version=2017-12-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "381", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armpostgresql/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "eastus", - "properties": { - "administratorLogin": "cloudsa", - "administratorLoginPassword": "000000000000", - "createMode": "Default", - "minimalTlsVersion": "TLS1_2", - "sslEnforcement": "Enabled", - "storageProfile": { - "backupRetentionDays": 7, - "geoRedundantBackup": "Disabled", - "storageMB": 128000 - } - }, - "sku": { - "name": "GP_Gen5_8", - "family": "Gen5", - "tier": "GeneralPurpose" - }, - "tags": { - "ElasticServer": "1" - } - }, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/00000000-0000-0000-0000-000000000000?api-version=2017-12-01", - "Cache-Control": "no-cache", - "Content-Length": "73", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 02:13:39 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/00000000-0000-0000-0000-000000000000?api-version=2017-12-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T021339Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "operation": "UpsertElasticServer", - "startTime": "2022-10-12T02:13:38.62Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/00000000-0000-0000-0000-000000000000?api-version=2017-12-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armpostgresql/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 02:14:39 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11999", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T021440Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-10-12T02:13:38.62Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/00000000-0000-0000-0000-000000000000?api-version=2017-12-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armpostgresql/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 02:15:41 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11998", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T021541Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "Succeeded", - "startTime": "2022-10-12T02:13:38.62Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ?api-version=2017-12-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armpostgresql/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 02:15:42 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11997", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T021543Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "sku": { - "name": "GP_Gen5_8", - "tier": "GeneralPurpose", - "family": "Gen5", - "capacity": 8 - }, - "properties": { - "administratorLogin": "cloudsa", - "storageProfile": { - "storageMB": 128000, - "backupRetentionDays": 7, - "geoRedundantBackup": "Disabled", - "storageAutogrow": "Disabled" - }, - "version": "9.6", - "sslEnforcement": "Enabled", - "minimalTlsVersion": "TLS1_2", - "userVisibleState": "Ready", - "fullyQualifiedDomainName": "pgserverst9omnj.postgres.database.azure.com", - "earliestRestoreDate": "2022-10-12T02:23:39.027\u002B00:00", - "replicationRole": "None", - "masterServerId": "", - "replicaCapacity": 5, - "byokEnforcement": "Disabled", - "privateEndpointConnections": [], - "infrastructureEncryption": "Disabled", - "publicNetworkAccess": "Enabled" - }, - "location": "eastus", - "tags": { - "ElasticServer": "1" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omnj", - "name": "pgserverst9omnj", - "type": "Microsoft.DBforPostgreSQL/servers" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/checkNameAvailability?api-version=2017-12-01", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "51", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armpostgresql/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "name": "name1", - "type": "Microsoft.DBforPostgreSQL" - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 02:15:45 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T021546Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "nameAvailable": false, - "reason": "AlreadyExists", - "message": "Specified server name \u0027name1\u0027 is already used. Please use a different name and try again." - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/array_nulls?api-version=2017-12-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "55", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armpostgresql/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "source": "user-override", - "value": "off" - } - }, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/00000000-0000-0000-0000-000000000000?api-version=2017-12-01", - "Cache-Control": "no-cache", - "Content-Length": "80", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 02:15:46 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/00000000-0000-0000-0000-000000000000?api-version=2017-12-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1197", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T021546Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "operation": "UpdateElasticServerConfig", - "startTime": "2022-10-12T02:15:46.653Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/00000000-0000-0000-0000-000000000000?api-version=2017-12-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armpostgresql/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 02:16:02 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11996", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T021602Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "Succeeded", - "startTime": "2022-10-12T02:15:46.653Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/array_nulls?api-version=2017-12-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armpostgresql/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 02:16:02 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11995", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T021603Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "value": "off", - "description": "Enable input of NULL elements in arrays.", - "defaultValue": "on", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "user-override", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/array_nulls", - "name": "array_nulls", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations?api-version=2017-12-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armpostgresql/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 02:16:03 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11994", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T021604Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "properties": { - "value": "off", - "description": "Enable input of NULL elements in arrays.", - "defaultValue": "on", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "user-override", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/array_nulls", - "name": "array_nulls", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "safe_encoding", - "description": "Sets whether \u0022\\\u0027\u0022 is allowed in string literals.", - "defaultValue": "safe_encoding", - "dataType": "Enumeration", - "allowedValues": "safe_encoding,on,off", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/backslash_quote", - "name": "backslash_quote", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "hex", - "description": "Sets the output format for bytea.", - "defaultValue": "hex", - "dataType": "Enumeration", - "allowedValues": "escape,hex", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/bytea_output", - "name": "bytea_output", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "on", - "description": "Check function bodies during CREATE FUNCTION.", - "defaultValue": "on", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/check_function_bodies", - "name": "check_function_bodies", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "sql_ascii", - "description": "Sets the client\u0027s character set encoding.", - "defaultValue": "sql_ascii", - "dataType": "Enumeration", - "allowedValues": "BIG5,EUC_CN,EUC_JP,EUC_JIS_2004,EUC_KR,EUC_TW,GB18030,GBK,ISO_8859_5,ISO_8859_6,ISO_8859_7,ISO_8859_8,JOHAB,KOI8R,KOI8U,LATIN1,LATIN2,LATIN3,LATIN4,LATIN5,LATIN6,LATIN7,LATIN8,LATIN9,LATIN10,MULE_INTERNAL,SJIS,SHIFT_JIS_2004,SQL_ASCII,UHC,UTF8,WIN866,WIN874,WIN1250,WIN1251,WIN1252,WIN1253,WIN1254,WIN1255,WIN1256,WIN1257,WIN1258", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/client_encoding", - "name": "client_encoding", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "notice", - "description": "Sets the message levels that are sent to the client.", - "defaultValue": "notice", - "dataType": "Enumeration", - "allowedValues": "debug5,debug4,debug3,debug2,debug1,log,notice,warning,error", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/client_min_messages", - "name": "client_min_messages", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "partition", - "description": "Enables the planner to use constraints to optimize queries.", - "defaultValue": "partition", - "dataType": "Enumeration", - "allowedValues": "partition,on,off", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/constraint_exclusion", - "name": "constraint_exclusion", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "0.005", - "description": "Sets the planner\u0027s estimate of the cost of processing each index entry during an index scan.", - "defaultValue": "0.005", - "dataType": "Numeric", - "allowedValues": "0-1.79769e\u002B308", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/cpu_index_tuple_cost", - "name": "cpu_index_tuple_cost", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "0.0025", - "description": "Sets the planner\u0027s estimate of the cost of processing each operator or function call.", - "defaultValue": "0.0025", - "dataType": "Numeric", - "allowedValues": "0-1.79769e\u002B308", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/cpu_operator_cost", - "name": "cpu_operator_cost", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "0.01", - "description": "Sets the planner\u0027s estimate of the cost of processing each tuple (row).", - "defaultValue": "0.01", - "dataType": "Numeric", - "allowedValues": "0-1.79769e\u002B308", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/cpu_tuple_cost", - "name": "cpu_tuple_cost", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "0.1", - "description": "Sets the planner\u0027s estimate of the fraction of a cursor\u0027s rows that will be retrieved.", - "defaultValue": "0.1", - "dataType": "Numeric", - "allowedValues": "0-1", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/cursor_tuple_fraction", - "name": "cursor_tuple_fraction", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "iso, mdy", - "description": "Sets the display format for date and time values.", - "defaultValue": "iso, mdy", - "dataType": "String", - "allowedValues": "(iso|postgres|sql|german)\\,\\s(dmy|mdy|ymd)", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/datestyle", - "name": "datestyle", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "1000", - "description": "Sets the amount of time, in milliseconds, to wait on a lock before checking for deadlock.", - "defaultValue": "1000", - "dataType": "Integer", - "allowedValues": "1-2147483647", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/deadlock_timeout", - "name": "deadlock_timeout", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "off", - "description": "Logs each query\u0027s execution plan.", - "defaultValue": "off", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/debug_print_plan", - "name": "debug_print_plan", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "off", - "description": "Logs each query\u0027s rewritten parse tree.", - "defaultValue": "off", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/debug_print_rewritten", - "name": "debug_print_rewritten", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "100", - "description": "Sets the default statistics target.", - "defaultValue": "100", - "dataType": "Integer", - "allowedValues": "1-10000", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/default_statistics_target", - "name": "default_statistics_target", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "pg_catalog.english", - "description": "Sets default text search configuration.", - "defaultValue": "pg_catalog.english", - "dataType": "String", - "allowedValues": "[A-Za-z\\._]\u002B", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/default_text_search_config", - "name": "default_text_search_config", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "off", - "description": "Sets the default deferrable status of new transactions.", - "defaultValue": "off", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/default_transaction_deferrable", - "name": "default_transaction_deferrable", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "read committed", - "description": "Sets the transaction isolation level of each new transaction.", - "defaultValue": "read committed", - "dataType": "Enumeration", - "allowedValues": "serializable,repeatable read,read committed,read uncommitted", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/default_transaction_isolation", - "name": "default_transaction_isolation", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "off", - "description": "Sets the default read-only status of new transactions.", - "defaultValue": "off", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/default_transaction_read_only", - "name": "default_transaction_read_only", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "off", - "description": "Create new tables with OIDs by default.", - "defaultValue": "off", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/default_with_oids", - "name": "default_with_oids", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "on", - "description": "Enables the planner\u0027s use of bitmap-scan plans.", - "defaultValue": "on", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/enable_bitmapscan", - "name": "enable_bitmapscan", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "on", - "description": "Enables the planner\u0027s use of hashed aggregation plans.", - "defaultValue": "on", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/enable_hashagg", - "name": "enable_hashagg", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "on", - "description": "Enables the planner\u0027s use of hash join plans.", - "defaultValue": "on", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/enable_hashjoin", - "name": "enable_hashjoin", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "on", - "description": "Enables the planner\u0027s use of index-only-scan plans.", - "defaultValue": "on", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/enable_indexonlyscan", - "name": "enable_indexonlyscan", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "on", - "description": "Enables the planner\u0027s use of index-scan plans.", - "defaultValue": "on", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/enable_indexscan", - "name": "enable_indexscan", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "on", - "description": "Enables the planner\u0027s use of materialization.", - "defaultValue": "on", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/enable_material", - "name": "enable_material", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "on", - "description": "Enables the planner\u0027s use of merge join plans.", - "defaultValue": "on", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/enable_mergejoin", - "name": "enable_mergejoin", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "on", - "description": "Enables the planner\u0027s use of nested-loop join plans.", - "defaultValue": "on", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/enable_nestloop", - "name": "enable_nestloop", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "on", - "description": "Enables the planner\u0027s use of sequential-scan plans.", - "defaultValue": "on", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/enable_seqscan", - "name": "enable_seqscan", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "on", - "description": "Enables the planner\u0027s use of explicit sort steps.", - "defaultValue": "on", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/enable_sort", - "name": "enable_sort", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "on", - "description": "Enables the planner\u0027s use of TID scan plans.", - "defaultValue": "on", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/enable_tidscan", - "name": "enable_tidscan", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "on", - "description": "Warn about backslash escapes in ordinary string literals.", - "defaultValue": "on", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/escape_string_warning", - "name": "escape_string_warning", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "off", - "description": "Terminate session on any error.", - "defaultValue": "off", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/exit_on_error", - "name": "exit_on_error", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "0", - "description": "Sets the number of digits displayed for floating-point values.", - "defaultValue": "0", - "dataType": "Integer", - "allowedValues": "-15-3", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/extra_float_digits", - "name": "extra_float_digits", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "8", - "description": "Sets the FROM-list size beyond which subqueries are not collapsed.", - "defaultValue": "8", - "dataType": "Integer", - "allowedValues": "1-2147483647", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/from_collapse_limit", - "name": "from_collapse_limit", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "on", - "description": "Enables genetic query optimization.", - "defaultValue": "on", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/geqo", - "name": "geqo", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "5", - "description": "GEQO: effort is used to set the default for other GEQO parameters.", - "defaultValue": "5", - "dataType": "Integer", - "allowedValues": "1-10", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/geqo_effort", - "name": "geqo_effort", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "0", - "description": "GEQO: number of iterations of the algorithm.", - "defaultValue": "0", - "dataType": "Integer", - "allowedValues": "0-2147483647", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/geqo_generations", - "name": "geqo_generations", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "0", - "description": "GEQO: number of individuals in the population.", - "defaultValue": "0", - "dataType": "Integer", - "allowedValues": "0-2147483647", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/geqo_pool_size", - "name": "geqo_pool_size", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "0.0", - "description": "GEQO: seed for random path selection.", - "defaultValue": "0.0", - "dataType": "Numeric", - "allowedValues": "0-1", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/geqo_seed", - "name": "geqo_seed", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "2.0", - "description": "GEQO: selective pressure within the population.", - "defaultValue": "2.0", - "dataType": "Numeric", - "allowedValues": "1.5-2", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/geqo_selection_bias", - "name": "geqo_selection_bias", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "12", - "description": "Sets the threshold of FROM items beyond which GEQO is used.", - "defaultValue": "12", - "dataType": "Integer", - "allowedValues": "2-2147483647", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/geqo_threshold", - "name": "geqo_threshold", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "0", - "description": "Sets the maximum allowed result for exact search by GIN.", - "defaultValue": "0", - "dataType": "Integer", - "allowedValues": "0-2147483647", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/gin_fuzzy_search_limit", - "name": "gin_fuzzy_search_limit", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "postgres", - "description": "Sets the display format for interval values.", - "defaultValue": "postgres", - "dataType": "Enumeration", - "allowedValues": "postgres,postgres_verbose,sql_standard,iso_8601", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/intervalstyle", - "name": "intervalstyle", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "8", - "description": "Sets the FROM-list size beyond which JOIN constructs are not flattened.", - "defaultValue": "8", - "dataType": "Integer", - "allowedValues": "1-2147483647", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/join_collapse_limit", - "name": "join_collapse_limit", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "0", - "description": "Sets the maximum allowed duration (in milliseconds) of any wait for a lock. 0 turns this off.", - "defaultValue": "0", - "dataType": "Integer", - "allowedValues": "0-2147483647", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/lock_timeout", - "name": "lock_timeout", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "on", - "description": "Logs each checkpoint.", - "defaultValue": "on", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/log_checkpoints", - "name": "log_checkpoints", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "on", - "description": "Logs each successful connection.", - "defaultValue": "on", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/log_connections", - "name": "log_connections", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "off", - "description": "Logs end of a session, including duration.", - "defaultValue": "off", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/log_disconnections", - "name": "log_disconnections", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "off", - "description": "Logs the duration of each completed SQL statement.", - "defaultValue": "off", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/log_duration", - "name": "log_duration", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "default", - "description": "Sets the verbosity of logged messages.", - "defaultValue": "default", - "dataType": "Enumeration", - "allowedValues": "terse,default,verbose", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/log_error_verbosity", - "name": "log_error_verbosity", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "%t-%c-", - "description": "Sets the printf-style string that is output at the beginning of each log line.", - "defaultValue": "%t-%c-", - "dataType": "String", - "allowedValues": "[^\u0027\u0022;]*", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/log_line_prefix", - "name": "log_line_prefix", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "off", - "description": "Logs long lock waits.", - "defaultValue": "off", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/log_lock_waits", - "name": "log_lock_waits", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "-1", - "description": "Sets the minimum execution time (in milliseconds) above which statements will be logged. -1 disables logging statement durations.", - "defaultValue": "-1", - "dataType": "Integer", - "allowedValues": "-1-2147483647", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/log_min_duration_statement", - "name": "log_min_duration_statement", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "error", - "description": "Causes all statements generating error at or above this level to be logged.", - "defaultValue": "error", - "dataType": "Enumeration", - "allowedValues": "debug5,debug4,debug3,debug2,debug1,info,notice,warning,error,log,fatal,panic", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/log_min_error_statement", - "name": "log_min_error_statement", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "warning", - "description": "Sets the message levels that are logged.", - "defaultValue": "warning", - "dataType": "Enumeration", - "allowedValues": "debug5,debug4,debug3,debug2,debug1,info,notice,warning,error,log,fatal,panic", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/log_min_messages", - "name": "log_min_messages", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "none", - "description": "Sets the type of statements logged.", - "defaultValue": "none", - "dataType": "Enumeration", - "allowedValues": "none,ddl,mod,all", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/log_statement", - "name": "log_statement", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "off", - "description": "For each query, writes cumulative performance statistics to the server log.", - "defaultValue": "off", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/log_statement_stats", - "name": "log_statement_stats", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "64", - "description": "Sets the maximum number of locks per transaction. Any change requires restarting the server to take effect. When running a replica server, you must set this parameter to the same or higher value than on the master server.", - "defaultValue": "64", - "dataType": "Integer", - "allowedValues": "10-8388608", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "False" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/max_locks_per_transaction", - "name": "max_locks_per_transaction", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "0", - "description": "Sets the maximum number of simultaneously prepared transactions. Any change requires restarting the server to take effect. When running a replica server, you must set this parameter to the same or higher value than on the master server.", - "defaultValue": "0", - "dataType": "Integer", - "allowedValues": "0-8388607", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "False" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/max_prepared_transactions", - "name": "max_prepared_transactions", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "off", - "description": "When generating SQL fragments, quote all identifiers.", - "defaultValue": "off", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/quote_all_identifiers", - "name": "quote_all_identifiers", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "4.0", - "description": "Sets the planner\u0027s estimate of the cost of a nonsequentially fetched disk page.", - "defaultValue": "4.0", - "dataType": "Numeric", - "allowedValues": "0-1.79769e\u002B308", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/random_page_cost", - "name": "random_page_cost", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "\u0022$user\u0022, public", - "description": "Sets the schema search order for names that are not schema-qualified.", - "defaultValue": "\u0022$user\u0022, public", - "dataType": "String", - "allowedValues": "[A-Za-z.\u0022$, ]\u002B", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/search_path", - "name": "search_path", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "1.0", - "description": "Sets the planner\u0027s estimate of the cost of a sequentially fetched disk page.", - "defaultValue": "1.0", - "dataType": "Numeric", - "allowedValues": "0-1.79769e\u002B308", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/seq_page_cost", - "name": "seq_page_cost", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "on", - "description": "Causes subtables to be included by default in various commands.", - "defaultValue": "on", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/sql_inheritance", - "name": "sql_inheritance", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "0", - "description": "Sets the maximum allowed duration (in milliseconds) of any statement. 0 turns this off.", - "defaultValue": "0", - "dataType": "Integer", - "allowedValues": "0-2147483647", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/statement_timeout", - "name": "statement_timeout", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "on", - "description": "Enable synchronized sequential scans.", - "defaultValue": "on", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/synchronize_seqscans", - "name": "synchronize_seqscans", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "on", - "description": "Sets the current transaction\u0027s synchronization level.", - "defaultValue": "on", - "dataType": "Enumeration", - "allowedValues": "local,remote_write,on,off", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/synchronous_commit", - "name": "synchronous_commit", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "off", - "description": "Treats \u0022expr=NULL\u0022 as \u0022expr IS NULL\u0022.", - "defaultValue": "off", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/transform_null_equals", - "name": "transform_null_equals", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "base64", - "description": "Sets how binary values are to be encoded in XML.", - "defaultValue": "base64", - "dataType": "Enumeration", - "allowedValues": "base64,hex", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/xmlbinary", - "name": "xmlbinary", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "content", - "description": "Sets whether XML data in implicit parsing and serialization operations is to be considered as documents or content fragments.", - "defaultValue": "content", - "dataType": "Enumeration", - "allowedValues": "content,document", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/xmloption", - "name": "xmloption", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "off", - "description": "Forces use of parallel query facilities.", - "defaultValue": "off", - "dataType": "Enumeration", - "allowedValues": "off,on,regress", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/force_parallel_mode", - "name": "force_parallel_mode", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "0", - "description": "Sets the maximum allowed duration of any idling transaction. Unit is ms.", - "defaultValue": "0", - "dataType": "Integer", - "allowedValues": "0-2147483647", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/idle_in_transaction_session_timeout", - "name": "idle_in_transaction_session_timeout", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "0", - "description": "Sets the maximum number of parallel processes per executor node.", - "defaultValue": "0", - "dataType": "Integer", - "allowedValues": "0-1024", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/max_parallel_workers_per_gather", - "name": "max_parallel_workers_per_gather", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "8388608", - "description": "Sets the minimum size of relations to be considered for parallel scan. Unit is 8kb.", - "defaultValue": "8388608", - "dataType": "Integer", - "allowedValues": "0-715827882", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/min_parallel_relation_size", - "name": "min_parallel_relation_size", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "1000", - "description": "Sets the planner\u0027s estimate of the cost of starting up worker processes for parallel query.", - "defaultValue": "1000", - "dataType": "Numeric", - "allowedValues": "0-1.79769e\u002B308", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/parallel_setup_cost", - "name": "parallel_setup_cost", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "0.1", - "description": "Sets the planner\u0027s estimate of the cost of passing each tuple (row) from worker to master backend.", - "defaultValue": "0.1", - "dataType": "Numeric", - "allowedValues": "0-1.79769e\u002B308", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/parallel_tuple_cost", - "name": "parallel_tuple_cost", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "4096", - "description": "Sets the amount of memory to be used by internal sort operations and hash tables before writing to temporary disk files. Unit is kb.", - "defaultValue": "4096", - "dataType": "Integer", - "allowedValues": "4096-2097151", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/work_mem", - "name": "work_mem", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "1024", - "description": "Sets the maximum number of temporary buffers used by each database session. Unit is 8kb.", - "defaultValue": "1024", - "dataType": "Integer", - "allowedValues": "1024-16384", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/temp_buffers", - "name": "temp_buffers", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "on", - "description": "Enables temporary connection throttling per IP for too many invalid password login failures.", - "defaultValue": "on", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/connection_throttling", - "name": "connection_throttling", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "3", - "description": "Sets how many days a log file is saved for.", - "defaultValue": "3", - "dataType": "Integer", - "allowedValues": "1-7", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/log_retention_days", - "name": "log_retention_days", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "6000", - "description": "Sets the maximum query text length that will be saved; longer queries will be truncated.", - "defaultValue": "6000", - "dataType": "Integer", - "allowedValues": "100-10000", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/pg_qs.max_query_text_length", - "name": "pg_qs.max_query_text_length", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "none", - "description": "Selects which statements are tracked by pg_qs.", - "defaultValue": "none", - "dataType": "Enumeration", - "allowedValues": "all,top,none", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/pg_qs.query_capture_mode", - "name": "pg_qs.query_capture_mode", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "7", - "description": "Sets the retention period window in days for pg_qs - after this time data will be deleted.", - "defaultValue": "7", - "dataType": "Integer", - "allowedValues": "1-30", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/pg_qs.retention_period_in_days", - "name": "pg_qs.retention_period_in_days", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "off", - "description": "Selects whether parameter placeholders are replaced in parameterized queries.", - "defaultValue": "off", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/pg_qs.replace_parameter_placeholders", - "name": "pg_qs.replace_parameter_placeholders", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "on", - "description": "Selects whether utility commands are tracked by pg_qs.", - "defaultValue": "on", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/pg_qs.track_utility", - "name": "pg_qs.track_utility", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "15", - "description": "Sets the query_store capture interval in minutes for pg_qs - this is the frequency of data persistence.", - "defaultValue": "15", - "dataType": "Integer", - "allowedValues": "1-30", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "False" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/pg_qs.interval_length_minutes", - "name": "pg_qs.interval_length_minutes", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "none", - "description": "Controls which statements are counted by pg_stat_statements.", - "defaultValue": "none", - "dataType": "Enumeration", - "allowedValues": "top,all,none", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/pg_stat_statements.track", - "name": "pg_stat_statements.track", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "none", - "description": "Selects which statements are tracked by the pgms_wait_sampling extension.", - "defaultValue": "none", - "dataType": "Enumeration", - "allowedValues": "all,none", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/pgms_wait_sampling.query_capture_mode", - "name": "pgms_wait_sampling.query_capture_mode", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "100", - "description": "Set the frequency, in milliseconds, at which wait events are sampled.", - "defaultValue": "100", - "dataType": "Integer", - "allowedValues": "1-600000", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/pgms_wait_sampling.history_period", - "name": "pgms_wait_sampling.history_period", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "DISABLE_ALL", - "description": "Controls postgis GDAL enabled driver settings.", - "defaultValue": "DISABLE_ALL", - "dataType": "Enumeration", - "allowedValues": "DISABLE_ALL,ENABLE_ALL", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/postgis.gdal_enabled_drivers", - "name": "postgis.gdal_enabled_drivers", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "on", - "description": "Starts the autovacuum subprocess.", - "defaultValue": "on", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/autovacuum", - "name": "autovacuum", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "0.05", - "description": "Number of tuple inserts, updates, or deletes prior to analyze as a fraction of reltuples.", - "defaultValue": "0.05", - "dataType": "Numeric", - "allowedValues": "0-100", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/autovacuum_analyze_scale_factor", - "name": "autovacuum_analyze_scale_factor", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "50", - "description": "Minimum number of tuple inserts, updates, or deletes prior to analyze.", - "defaultValue": "50", - "dataType": "Integer", - "allowedValues": "0-2147483647", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/autovacuum_analyze_threshold", - "name": "autovacuum_analyze_threshold", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "200000000", - "description": "Age at which to autovacuum a table to prevent transaction ID wraparound. Any change requires restarting the server to take effect..", - "defaultValue": "200000000", - "dataType": "Integer", - "allowedValues": "100000-2000000000", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "False" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/autovacuum_freeze_max_age", - "name": "autovacuum_freeze_max_age", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "400000000", - "description": "Multixact age at which to autovacuum a table to prevent multixact wraparound. Any change requires restarting the server to take effect.", - "defaultValue": "400000000", - "dataType": "Integer", - "allowedValues": "10000-2000000000", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "False" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/autovacuum_multixact_freeze_max_age", - "name": "autovacuum_multixact_freeze_max_age", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "15", - "description": "Time to sleep between autovacuum runs. Unit is s.", - "defaultValue": "15", - "dataType": "Integer", - "allowedValues": "1-2147483", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/autovacuum_naptime", - "name": "autovacuum_naptime", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "20", - "description": "Vacuum cost delay in milliseconds, for autovacuum.", - "defaultValue": "20", - "dataType": "Integer", - "allowedValues": "-1-100", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/autovacuum_vacuum_cost_delay", - "name": "autovacuum_vacuum_cost_delay", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "-1", - "description": "Vacuum cost amount available before napping, for autovacuum.", - "defaultValue": "-1", - "dataType": "Integer", - "allowedValues": "-1-10000", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/autovacuum_vacuum_cost_limit", - "name": "autovacuum_vacuum_cost_limit", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "0.05", - "description": "Number of tuple updates or deletes prior to vacuum as a fraction of reltuples.", - "defaultValue": "0.05", - "dataType": "Numeric", - "allowedValues": "0-100", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/autovacuum_vacuum_scale_factor", - "name": "autovacuum_vacuum_scale_factor", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "50", - "description": "Minimum number of tuple updates or deletes prior to vacuum.", - "defaultValue": "50", - "dataType": "Integer", - "allowedValues": "0-2147483647", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/autovacuum_vacuum_threshold", - "name": "autovacuum_vacuum_threshold", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "-1", - "description": "Sets the maximum memory to be used by each autovacuum worker process. Unit is kb.", - "defaultValue": "-1", - "dataType": "Integer", - "allowedValues": "-1-2097151", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/autovacuum_work_mem", - "name": "autovacuum_work_mem", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "3", - "description": "Sets the maximum number of simultaneously running autovacuum worker processes. Any change requires restarting the server to take effect.", - "defaultValue": "3", - "dataType": "Integer", - "allowedValues": "1-262143", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "False" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/autovacuum_max_workers", - "name": "autovacuum_max_workers", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "0", - "description": "Number of pages after which previously performed writes are flushed to disk. Unit is 8kb.", - "defaultValue": "0", - "dataType": "Integer", - "allowedValues": "0-256", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/backend_flush_after", - "name": "backend_flush_after", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "20", - "description": "Background writer sleep time between rounds. Unit is ms.", - "defaultValue": "20", - "dataType": "Integer", - "allowedValues": "10-10000", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/bgwriter_delay", - "name": "bgwriter_delay", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "64", - "description": "Number of pages after which previously performed writes are flushed to disk. Unit is 8kb.", - "defaultValue": "64", - "dataType": "Integer", - "allowedValues": "0-256", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/bgwriter_flush_after", - "name": "bgwriter_flush_after", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "100", - "description": "Background writer maximum number of LRU pages to flush per round.", - "defaultValue": "100", - "dataType": "Integer", - "allowedValues": "0-1073741823", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/bgwriter_lru_maxpages", - "name": "bgwriter_lru_maxpages", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "2", - "description": "Multiple of the average buffer usage to free per round.", - "defaultValue": "2", - "dataType": "Numeric", - "allowedValues": "0-10", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/bgwriter_lru_multiplier", - "name": "bgwriter_lru_multiplier", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "0.9", - "description": "Time spent flushing dirty buffers during checkpoint, as fraction of checkpoint interval.", - "defaultValue": "0.9", - "dataType": "Numeric", - "allowedValues": "0-1", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/checkpoint_completion_target", - "name": "checkpoint_completion_target", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "30", - "description": "Enables warnings if checkpoint segments are filled more frequently than this. Unit is s.", - "defaultValue": "30", - "dataType": "Integer", - "allowedValues": "0-2147483647", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/checkpoint_warning", - "name": "checkpoint_warning", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "0", - "description": "Sets the delay in microseconds between transaction commit and flushing WAL to disk.", - "defaultValue": "0", - "dataType": "Integer", - "allowedValues": "0-100000", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/commit_delay", - "name": "commit_delay", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "5", - "description": "Sets the minimum concurrent open transactions before performing commit_delay.", - "defaultValue": "5", - "dataType": "Integer", - "allowedValues": "0-1000", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/commit_siblings", - "name": "commit_siblings", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "2621440", - "description": "Sets the planner\u0027s assumption about the size of the disk cache. Unit is 8kb.", - "defaultValue": "917504", - "dataType": "Integer", - "allowedValues": "1-2147483647", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/effective_cache_size", - "name": "effective_cache_size", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "4096", - "description": "Sets the maximum size of the pending list for GIN index. Unit is kb.", - "defaultValue": "4096", - "dataType": "Integer", - "allowedValues": "64-2097151", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/gin_pending_list_limit", - "name": "gin_pending_list_limit", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "English_United States.1252", - "description": "Sets the locale for formatting monetary amounts.", - "defaultValue": "English_United States.1252", - "dataType": "String", - "allowedValues": "[A-Za-z0-9\\._\\s]\u002B", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/lc_monetary", - "name": "lc_monetary", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "English_United States.1252", - "description": "Sets the locale for formatting numbers.", - "defaultValue": "English_United States.1252", - "dataType": "String", - "allowedValues": "[A-Za-z0-9\\._\\s]\u002B", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/lc_numeric", - "name": "lc_numeric", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "off", - "description": "Enables backward compatibility mode for privilege checks on large objects.", - "defaultValue": "off", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/lo_compat_privileges", - "name": "lo_compat_privileges", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "-1", - "description": "Sets the minimum execution time above which autovacuum actions will be logged. Unit is ms.", - "defaultValue": "-1", - "dataType": "Integer", - "allowedValues": "-1-2147483647", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/log_autovacuum_min_duration", - "name": "log_autovacuum_min_duration", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "off", - "description": "Logs each replication command.", - "defaultValue": "off", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/log_replication_commands", - "name": "log_replication_commands", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "-1", - "description": "Log the use of temporary files larger than this number of kilobytes.", - "defaultValue": "-1", - "dataType": "Integer", - "allowedValues": "-1-2147483647", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/log_temp_files", - "name": "log_temp_files", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "30000", - "description": "Sets the maximum delay before canceling queries when a hot standby server is processing archived WAL data. Unit is ms.", - "defaultValue": "30000", - "dataType": "Integer", - "allowedValues": "-1-2147483647", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/max_standby_archive_delay", - "name": "max_standby_archive_delay", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "30000", - "description": "Sets the maximum delay before canceling queries when a hot standby server is processing streamed WAL data. Unit is ms.", - "defaultValue": "30000", - "dataType": "Integer", - "allowedValues": "-1-2147483647", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/max_standby_streaming_delay", - "name": "max_standby_streaming_delay", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "1024", - "description": "Sets the WAL size that triggers a checkpoint. Unit is 16MB.", - "defaultValue": "1024", - "dataType": "Integer", - "allowedValues": "2-2097151", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/max_wal_size", - "name": "max_wal_size", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "256", - "description": "Sets the minimum size to shrink the WAL to. Unit is 16MB.", - "defaultValue": "512", - "dataType": "Integer", - "allowedValues": "2-2097151", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/min_wal_size", - "name": "min_wal_size", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "-1", - "description": "Time before a snapshot is too old to read pages changed after the snapshot was taken. Any change requires restarting the server to take effect. Unit is min.", - "defaultValue": "-1", - "dataType": "Integer", - "allowedValues": "-1-86400", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "False" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/old_snapshot_threshold", - "name": "old_snapshot_threshold", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "off", - "description": "Emit a warning for constructs that changed meaning since PostgreSQL 9.4.", - "defaultValue": "off", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/operator_precedence_warning", - "name": "operator_precedence_warning", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "5000", - "description": "Sets the maximum number of statements tracked by pg_stat_statements. Any change requires restarting the server to take effect.", - "defaultValue": "5000", - "dataType": "Integer", - "allowedValues": "100-2147483647", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "False" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/pg_stat_statements.max", - "name": "pg_stat_statements.max", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "on", - "description": "Save pg_stat_statements statistics across server shutdowns.", - "defaultValue": "on", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/pg_stat_statements.save", - "name": "pg_stat_statements.save", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "on", - "description": "Selects whether utility commands are tracked by pg_stat_statements.", - "defaultValue": "on", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/pg_stat_statements.track_utility", - "name": "pg_stat_statements.track_utility", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "150000", - "description": "Sets the maximum number of tuples to be sorted using replacement selection.", - "defaultValue": "150000", - "dataType": "Integer", - "allowedValues": "0-2147483647", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/replacement_sort_tuples", - "name": "replacement_sort_tuples", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "on", - "description": "Enable row security.", - "defaultValue": "on", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/row_security", - "name": "row_security", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "origin", - "description": "Sets the session\u0027s behavior for triggers and rewrite rules.", - "defaultValue": "origin", - "dataType": "Enumeration", - "allowedValues": "origin,replica,local", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/session_replication_role", - "name": "session_replication_role", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "0", - "description": "Maximum number of TCP keepalive retransmits.", - "defaultValue": "0", - "dataType": "Integer", - "allowedValues": "0-2147483647", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/tcp_keepalives_count", - "name": "tcp_keepalives_count", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "0", - "description": "Time between issuing TCP keepalives. Unit is s.", - "defaultValue": "0", - "dataType": "Integer", - "allowedValues": "0-2147483647", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/tcp_keepalives_idle", - "name": "tcp_keepalives_idle", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "0", - "description": "Time between TCP keepalive retransmits. Unit is s.", - "defaultValue": "0", - "dataType": "Integer", - "allowedValues": "0-2147483647", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/tcp_keepalives_interval", - "name": "tcp_keepalives_interval", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "on", - "description": "Collects information about executing commands.", - "defaultValue": "on", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/track_activities", - "name": "track_activities", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "1024", - "description": "Sets the size reserved for pg_stat_activity.query, in bytes. Any change requires restarting the server to take effect.", - "defaultValue": "1024", - "dataType": "Integer", - "allowedValues": "100-102400", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "False" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/track_activity_query_size", - "name": "track_activity_query_size", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "off", - "description": "Collects transaction commit time. Any change requires restarting the server to take effect.", - "defaultValue": "off", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "False" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/track_commit_timestamp", - "name": "track_commit_timestamp", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "on", - "description": "Collects statistics on database activity.", - "defaultValue": "on", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/track_counts", - "name": "track_counts", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "none", - "description": "Collects function-level statistics on database activity.", - "defaultValue": "none", - "dataType": "Enumeration", - "allowedValues": "none,pl,all", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/track_functions", - "name": "track_functions", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "on", - "description": "Collects timing statistics for database I/O activity.", - "defaultValue": "on", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/track_io_timing", - "name": "track_io_timing", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "UTC", - "description": "Sets the time zone for displaying and interpreting time stamps", - "defaultValue": "UTC", - "dataType": "String", - "allowedValues": "[A-Za-z0-9/\u002B-_]\u002B", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/timezone", - "name": "timezone", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "", - "description": "Sets which shared libraries are preloaded at server start. Any change requires a restart to take effect.", - "defaultValue": "", - "dataType": "Set", - "allowedValues": ",auto_explain,pgaudit,timescaledb", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "False" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/shared_preload_libraries", - "name": "shared_preload_libraries", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "0", - "description": "Vacuum cost delay in milliseconds.", - "defaultValue": "0", - "dataType": "Integer", - "allowedValues": "0-100", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/vacuum_cost_delay", - "name": "vacuum_cost_delay", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "200", - "description": "Vacuum cost amount available before napping.", - "defaultValue": "200", - "dataType": "Integer", - "allowedValues": "1-10000", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/vacuum_cost_limit", - "name": "vacuum_cost_limit", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "20", - "description": "Vacuum cost for a page dirtied by vacuum.", - "defaultValue": "20", - "dataType": "Integer", - "allowedValues": "0-10000", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/vacuum_cost_page_dirty", - "name": "vacuum_cost_page_dirty", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "1", - "description": "Vacuum cost for a page found in the buffer cache.", - "defaultValue": "1", - "dataType": "Integer", - "allowedValues": "0-10000", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/vacuum_cost_page_hit", - "name": "vacuum_cost_page_hit", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "10", - "description": "Vacuum cost for a page not found in the buffer cache.", - "defaultValue": "10", - "dataType": "Integer", - "allowedValues": "0-10000", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/vacuum_cost_page_miss", - "name": "vacuum_cost_page_miss", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "0", - "description": "Number of transactions by which VACUUM and HOT cleanup should be deferred, if any.", - "defaultValue": "0", - "dataType": "Integer", - "allowedValues": "0-1000000", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/vacuum_defer_cleanup_age", - "name": "vacuum_defer_cleanup_age", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "50000000", - "description": "Minimum age at which VACUUM should freeze a table row.", - "defaultValue": "50000000", - "dataType": "Integer", - "allowedValues": "0-1000000000", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/vacuum_freeze_min_age", - "name": "vacuum_freeze_min_age", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "150000000", - "description": "Age at which VACUUM should scan whole table to freeze tuples.", - "defaultValue": "150000000", - "dataType": "Integer", - "allowedValues": "0-2000000000", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/vacuum_freeze_table_age", - "name": "vacuum_freeze_table_age", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "5000000", - "description": "Minimum age at which VACUUM should freeze a MultiXactId in a table row.", - "defaultValue": "5000000", - "dataType": "Integer", - "allowedValues": "0-1000000000", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/vacuum_multixact_freeze_min_age", - "name": "vacuum_multixact_freeze_min_age", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "150000000", - "description": "Multixact age at which VACUUM should scan whole table to freeze tuples.", - "defaultValue": "150000000", - "dataType": "Integer", - "allowedValues": "0-2000000000", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/vacuum_multixact_freeze_table_age", - "name": "vacuum_multixact_freeze_table_age", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "8192", - "description": "Sets the number of disk-page buffers in shared memory for WAL. Any change requires restarting the server to take effect. Unit is 8kb.", - "defaultValue": "8192", - "dataType": "Integer", - "allowedValues": "-1-262143", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "False" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/wal_buffers", - "name": "wal_buffers", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "10", - "description": "Sets the maximum interval between WAL receiver status reports to the primary. Unit is s.", - "defaultValue": "10", - "dataType": "Integer", - "allowedValues": "0-2147483", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/wal_receiver_status_interval", - "name": "wal_receiver_status_interval", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "200", - "description": "Time between WAL flushes performed in the WAL writer. Unit is ms.", - "defaultValue": "200", - "dataType": "Integer", - "allowedValues": "1-10000", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/wal_writer_delay", - "name": "wal_writer_delay", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "128", - "description": "Amount of WAL written out by WAL writer that triggers a flush. Unit is 8kb.", - "defaultValue": "128", - "dataType": "Integer", - "allowedValues": "0-2147483647", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/wal_writer_flush_after", - "name": "wal_writer_flush_after", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "524288", - "description": "Sets the maximum memory to be used for maintenance operations. Unit is kb.", - "defaultValue": "131072", - "dataType": "Integer", - "allowedValues": "1024-2097151", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/maintenance_work_mem", - "name": "maintenance_work_mem", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "REPLICA", - "description": "Sets the level of replication support (Read Replicas). Any change requires restarting the server to take effect.", - "defaultValue": "OFF", - "dataType": "Enumeration", - "allowedValues": "OFF,REPLICA,LOGICAL", - "source": "user-override", - "isConfigPendingRestart": "False", - "isDynamicConfig": "False" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/azure.replication_support", - "name": "azure.replication_support", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "10", - "description": "IMPORTANT NOTE: In PG 11 and lower, the value max_wal_senders MUST be much smaller relative to max_connections since it takes up the connection slots. See https://docs.microsoft.com/en-us/azure/postgresql/single-server/concepts-limits for max_connections info in single server. Typically a single digit value suffices for most scenarios. Only in scenarios like migration where there is a need to migrate 10\u0027s of databases at once should you set this to a higher value. Also change max_replication_slots accordingly. Description: The parameter specifies the maximum number of concurrent connections from standby servers or streaming base backup clients (i.e., the maximum number of simultaneously running WAL sender processes).", - "defaultValue": "10", - "dataType": "Integer", - "allowedValues": "10-120", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "False" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/max_wal_senders", - "name": "max_wal_senders", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "10", - "description": "IMPORTANT NOTE: Generally a single digit value is sufficient for this parameter for most scenarios. Only in scenarios like migration where there is a need to migrate 10\u0027s of databases at once should you set this to a higher value. Also change max_wal_senders accordingly. Description: Specifies the maximum number of replication slots that the server can support.", - "defaultValue": "10", - "dataType": "Integer", - "allowedValues": "10-110", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "False" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/max_replication_slots", - "name": "max_replication_slots", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "on", - "description": "Allows feedback from a hot standby to the primary that will avoid query conflicts.", - "defaultValue": "on", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/hot_standby_feedback", - "name": "hot_standby_feedback", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - }, - { - "properties": { - "value": "on", - "description": "Enable .log files. Setting is independent of Azure Monitor logging options. Any change requires restarting the server to take effect.", - "defaultValue": "on", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "system-default", - "isConfigPendingRestart": "False", - "isDynamicConfig": "False" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/logging_collector", - "name": "logging_collector", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/array_nulls?api-version=2017-12-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armpostgresql/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 02:16:04 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11993", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T021604Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "value": "off", - "description": "Enable input of NULL elements in arrays.", - "defaultValue": "on", - "dataType": "Boolean", - "allowedValues": "on,off", - "source": "user-override", - "isConfigPendingRestart": "False", - "isDynamicConfig": "True" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/configurations/array_nulls", - "name": "array_nulls", - "type": "Microsoft.DBforPostgreSQL/servers/configurations" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/databases/db1?api-version=2017-12-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "74", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armpostgresql/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "charset": "UTF8", - "collation": "English_United States.1252" - } - }, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/00000000-0000-0000-0000-000000000000?api-version=2017-12-01", - "Cache-Control": "no-cache", - "Content-Length": "82", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 02:16:05 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/00000000-0000-0000-0000-000000000000?api-version=2017-12-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1196", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T021605Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "operation": "UpsertElasticServerDatabase", - "startTime": "2022-10-12T02:16:05.293Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/00000000-0000-0000-0000-000000000000?api-version=2017-12-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armpostgresql/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 02:16:20 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11992", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T021620Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "Succeeded", - "startTime": "2022-10-12T02:16:05.293Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/databases/db1?api-version=2017-12-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armpostgresql/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 02:16:20 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11991", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T021621Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "charset": "UTF8", - "collation": "English_United States.1252" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omnj/databases/db1", - "name": "db1", - "type": "Microsoft.DBforPostgreSQL/servers/databases" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/databases?api-version=2017-12-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armpostgresql/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 02:16:21 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11990", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T021622Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "properties": { - "charset": "UTF8", - "collation": "English_United States.1252" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omnj/databases/postgres", - "name": "postgres", - "type": "Microsoft.DBforPostgreSQL/servers/databases" - }, - { - "properties": { - "charset": "UTF8", - "collation": "English_United States.1252" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omnj/databases/azure_maintenance", - "name": "azure_maintenance", - "type": "Microsoft.DBforPostgreSQL/servers/databases" - }, - { - "properties": { - "charset": "UTF8", - "collation": "English_United States.1252" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omnj/databases/azure_sys", - "name": "azure_sys", - "type": "Microsoft.DBforPostgreSQL/servers/databases" - }, - { - "properties": { - "charset": "UTF8", - "collation": "English_United States.1252" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omnj/databases/db1", - "name": "db1", - "type": "Microsoft.DBforPostgreSQL/servers/databases" - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/databases/db1?api-version=2017-12-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armpostgresql/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 02:16:22 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11989", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T021622Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "charset": "UTF8", - "collation": "English_United States.1252" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omnj/databases/db1", - "name": "db1", - "type": "Microsoft.DBforPostgreSQL/servers/databases" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/databases/db1?api-version=2017-12-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armpostgresql/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/00000000-0000-0000-0000-000000000000?api-version=2017-12-01", - "Cache-Control": "no-cache", - "Content-Length": "80", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 02:16:22 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/00000000-0000-0000-0000-000000000000?api-version=2017-12-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14999", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T021623Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "operation": "DropElasticServerDatabase", - "startTime": "2022-10-12T02:16:23.263Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/00000000-0000-0000-0000-000000000000?api-version=2017-12-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armpostgresql/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 02:16:37 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11988", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T021638Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "Succeeded", - "startTime": "2022-10-12T02:16:23.263Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/firewallRules/rule1?api-version=2017-12-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "76", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armpostgresql/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "endIpAddress": "255.255.255.255", - "startIpAddress": "0.0.0.0" - } - }, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/00000000-0000-0000-0000-000000000000?api-version=2017-12-01", - "Cache-Control": "no-cache", - "Content-Length": "86", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 02:16:39 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/00000000-0000-0000-0000-000000000000?api-version=2017-12-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1195", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T021639Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "operation": "UpsertElasticServerFirewallRules", - "startTime": "2022-10-12T02:16:39.64Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/00000000-0000-0000-0000-000000000000?api-version=2017-12-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armpostgresql/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 02:16:55 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11987", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T021655Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "Succeeded", - "startTime": "2022-10-12T02:16:39.64Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/firewallRules/rule1?api-version=2017-12-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armpostgresql/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 02:16:55 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11986", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T021655Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "startIpAddress": "0.0.0.0", - "endIpAddress": "255.255.255.255" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omnj/firewallRules/rule1", - "name": "rule1", - "type": "Microsoft.DBforPostgreSQL/servers/firewallRules" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/firewallRules?api-version=2017-12-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armpostgresql/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 02:16:56 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11985", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T021656Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "properties": { - "startIpAddress": "0.0.0.0", - "endIpAddress": "255.255.255.255" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omnj/firewallRules/rule1", - "name": "rule1", - "type": "Microsoft.DBforPostgreSQL/servers/firewallRules" - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/firewallRules/rule1?api-version=2017-12-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armpostgresql/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 02:16:56 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11984", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T021657Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "startIpAddress": "0.0.0.0", - "endIpAddress": "255.255.255.255" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omnj/firewallRules/rule1", - "name": "rule1", - "type": "Microsoft.DBforPostgreSQL/servers/firewallRules" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/firewallRules/rule1?api-version=2017-12-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armpostgresql/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/00000000-0000-0000-0000-000000000000?api-version=2017-12-01", - "Cache-Control": "no-cache", - "Content-Length": "84", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 02:16:58 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/00000000-0000-0000-0000-000000000000?api-version=2017-12-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14998", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T021658Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "operation": "DropElasticServerFirewallRule", - "startTime": "2022-10-12T02:16:57.547Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/00000000-0000-0000-0000-000000000000?api-version=2017-12-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armpostgresql/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 02:17:13 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11983", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T021714Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "Succeeded", - "startTime": "2022-10-12T02:16:57.547Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/WestUS/performanceTiers?api-version=2017-12-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armpostgresql/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 02:17:14 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11982", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T021714Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "Basic", - "serviceLevelObjectives": [ - { - "edition": "Basic", - "vCore": 1, - "hardwareGeneration": "Gen5", - "minStorageMB": 5120, - "maxStorageMB": 1048576, - "minBackupRetentionDays": 7, - "maxBackupRetentionDays": 35, - "id": "B_Gen5_1" - }, - { - "edition": "Basic", - "vCore": 2, - "hardwareGeneration": "Gen5", - "minStorageMB": 5120, - "maxStorageMB": 1048576, - "minBackupRetentionDays": 7, - "maxBackupRetentionDays": 35, - "id": "B_Gen5_2" - } - ], - "minStorageMB": 5120, - "maxStorageMB": 1048576, - "minLargeStorageMB": 0, - "maxLargeStorageMB": 0, - "minBackupRetentionDays": 7, - "maxBackupRetentionDays": 35, - "features": [], - "subscriptionFeatures": [] - }, - { - "id": "GeneralPurpose", - "serviceLevelObjectives": [ - { - "edition": "GeneralPurpose", - "vCore": 2, - "hardwareGeneration": "Gen5", - "minStorageMB": 5120, - "maxStorageMB": 16777216, - "minBackupRetentionDays": 7, - "maxBackupRetentionDays": 35, - "id": "GP_Gen5_2" - }, - { - "edition": "GeneralPurpose", - "vCore": 4, - "hardwareGeneration": "Gen5", - "minStorageMB": 5120, - "maxStorageMB": 16777216, - "minBackupRetentionDays": 7, - "maxBackupRetentionDays": 35, - "id": "GP_Gen5_4" - }, - { - "edition": "GeneralPurpose", - "vCore": 8, - "hardwareGeneration": "Gen5", - "minStorageMB": 5120, - "maxStorageMB": 16777216, - "minBackupRetentionDays": 7, - "maxBackupRetentionDays": 35, - "id": "GP_Gen5_8" - }, - { - "edition": "GeneralPurpose", - "vCore": 16, - "hardwareGeneration": "Gen5", - "minStorageMB": 5120, - "maxStorageMB": 16777216, - "minBackupRetentionDays": 7, - "maxBackupRetentionDays": 35, - "id": "GP_Gen5_16" - }, - { - "edition": "GeneralPurpose", - "vCore": 32, - "hardwareGeneration": "Gen5", - "minStorageMB": 5120, - "maxStorageMB": 16777216, - "minBackupRetentionDays": 7, - "maxBackupRetentionDays": 35, - "id": "GP_Gen5_32" - }, - { - "edition": "GeneralPurpose", - "vCore": 64, - "hardwareGeneration": "Gen5", - "minStorageMB": 5120, - "maxStorageMB": 16777216, - "minBackupRetentionDays": 7, - "maxBackupRetentionDays": 35, - "id": "GP_Gen5_64" - } - ], - "minStorageMB": 5120, - "maxStorageMB": 16777216, - "minLargeStorageMB": 0, - "maxLargeStorageMB": 0, - "minBackupRetentionDays": 7, - "maxBackupRetentionDays": 35, - "features": [ - { - "name": "MicrosoftDBPostgreSQLBYOK", - "value": "Enabled" - }, - { - "name": "MicrosoftDBPostgreSQLInfrastructureEncryption", - "value": "Enabled" - } - ], - "subscriptionFeatures": [] - }, - { - "id": "MemoryOptimized", - "serviceLevelObjectives": [ - { - "edition": "MemoryOptimized", - "vCore": 2, - "hardwareGeneration": "Gen5", - "minStorageMB": 5120, - "maxStorageMB": 16777216, - "minBackupRetentionDays": 7, - "maxBackupRetentionDays": 35, - "id": "MO_Gen5_2" - }, - { - "edition": "MemoryOptimized", - "vCore": 4, - "hardwareGeneration": "Gen5", - "minStorageMB": 5120, - "maxStorageMB": 16777216, - "minBackupRetentionDays": 7, - "maxBackupRetentionDays": 35, - "id": "MO_Gen5_4" - }, - { - "edition": "MemoryOptimized", - "vCore": 8, - "hardwareGeneration": "Gen5", - "minStorageMB": 5120, - "maxStorageMB": 16777216, - "minBackupRetentionDays": 7, - "maxBackupRetentionDays": 35, - "id": "MO_Gen5_8" - }, - { - "edition": "MemoryOptimized", - "vCore": 16, - "hardwareGeneration": "Gen5", - "minStorageMB": 5120, - "maxStorageMB": 16777216, - "minBackupRetentionDays": 7, - "maxBackupRetentionDays": 35, - "id": "MO_Gen5_16" - }, - { - "edition": "MemoryOptimized", - "vCore": 32, - "hardwareGeneration": "Gen5", - "minStorageMB": 5120, - "maxStorageMB": 16777216, - "minBackupRetentionDays": 7, - "maxBackupRetentionDays": 35, - "id": "MO_Gen5_32" - } - ], - "minStorageMB": 5120, - "maxStorageMB": 16777216, - "minLargeStorageMB": 0, - "maxLargeStorageMB": 0, - "minBackupRetentionDays": 7, - "maxBackupRetentionDays": 35, - "features": [ - { - "name": "MicrosoftDBPostgreSQLBYOK", - "value": "Enabled" - }, - { - "name": "MicrosoftDBPostgreSQLInfrastructureEncryption", - "value": "Enabled" - } - ], - "subscriptionFeatures": [] - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/logFiles?api-version=2017-12-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armpostgresql/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 02:17:14 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11981", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T021715Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "properties": { - "name": "postgresql-2022-10-12_021446.log", - "sizeInKB": 8, - "createdTime": "0001-01-01T00:00:00\u002B00:00", - "lastModifiedTime": "2022-10-12T02:16:23\u002B00:00", - "type": "text", - "url": "https://wasdprodeus1apfe9156.file.core.windows.net/9dd1c39785e84d7290447b5e910119e2/pg_log/postgresql-2022-10-12_021446.log?sv=2018-11-09\u0026sr=f\u0026sig=2zk4EHqQ96uMMCLPtnEE1SoDosArDfVpDLCZCSkHjT0%3D\u0026se=2022-10-12T03%3A17%3A15Z\u0026sp=r" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omnj/logFiles/postgresql-2022-10-12_021446.log", - "name": "postgresql-2022-10-12_021446.log", - "type": "Microsoft.DBforPostgreSQL/servers/logFiles" - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.DBforPostgreSQL/operations?api-version=2017-12-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armpostgresql/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 02:17:15 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-tenant-reads": "11999", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T021716Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "name": "Microsoft.DBforPostgreSQL/servers/checkMigrationNameAvailability/action", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Migration Name Availability Resource", - "operation": "Checks to see if given migration name is new or already exists", - "description": "Migration name availability check" - } - }, - { - "name": "Microsoft.DBforPostgreSQL/servers/migrations/write", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Version Upgrade on Sterling", - "operation": "Create migration for Version Upgrade", - "description": "Version Upgrade Resource Create Migration" - } - }, - { - "name": "Microsoft.DBforPostgreSQL/servers/migrations/read", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Version Upgrade on Sterling", - "operation": "Get Version Upgrade Migration Details", - "description": "Gets Migration Details of Version Upgrade" - } - }, - { - "name": "Microsoft.DBforPostgreSQL/servers/migrations/delete", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Version Upgrade on Sterling", - "operation": "Delete Version Upgrade Migration", - "description": "Version Upgrade Resource Delete Migration" - } - }, - { - "name": "Microsoft.DBforPostgreSQL/servers/securityAlertPolicies/read", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Server Threat Detection Policy", - "operation": "Get server threat detection policy", - "description": "Retrieve details of the server threat detection policy configured on a given server" - } - }, - { - "name": "Microsoft.DBforPostgreSQL/servers/securityAlertPolicies/write", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Server Threat Detection Policy", - "operation": "Update server threat detection policy", - "description": "Change the server threat detection policy for a given server" - } - }, - { - "name": "Microsoft.DBforPostgreSQL/locations/securityAlertPoliciesOperationResults/read", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Server threat detection operation result", - "operation": "List/Get Server threat detection operation result.", - "description": "Return the list of Server threat detection operation result." - } - }, - { - "name": "Microsoft.DBforPostgreSQL/servers/keys/read", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Azure Database for PostgreSQL Server Keys", - "operation": "List/Get Azure Database for PostgreSQL Server Key(s)", - "description": "Return the list of server keys or gets the properties for the specified server key." - } - }, - { - "name": "Microsoft.DBforPostgreSQL/servers/keys/write", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Azure Database for PostgreSQL Server Keys", - "operation": "Create/Update Azure Database for PostgreSQL Server Keys", - "description": "Creates a key with the specified parameters or update the properties or tags for the specified server key." - } - }, - { - "name": "Microsoft.DBforPostgreSQL/servers/keys/delete", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Azure Database for PostgreSQL Server Keys", - "operation": "Delete Azure Database for PostgreSQL Server Key", - "description": "Deletes an existing server key." - } - }, - { - "name": "Microsoft.DBforPostgreSQL/locations/serverKeyAzureAsyncOperation/read", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Data Encryption server key operation", - "operation": "Data Encryption server keys operation", - "description": "Gets in-progress operations on data encryption server keys" - } - }, - { - "name": "Microsoft.DBforPostgreSQL/locations/serverKeyOperationResults/read", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Data Encryption server key operation", - "operation": "Data Encryption server keys operation", - "description": "Gets in-progress operations on data encryption server keys" - } - }, - { - "name": "Microsoft.DBforPostgreSQL/servers/advisors/read", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Advisors", - "operation": "Return the list of advisors", - "description": "Return the list of advisors" - } - }, - { - "name": "Microsoft.DBforPostgreSQL/servers/advisors/recommendedActions/read", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Recommended Actions", - "operation": "Return the list of recommended actions", - "description": "Return the list of recommended actions" - } - }, - { - "name": "Microsoft.DBforPostgreSQL/servers/advisors/recommendedActionSessions/action", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Recommended Actions", - "operation": "Make recommendations", - "description": "Make recommendations" - } - }, - { - "name": "Microsoft.DBforPostgreSQL/servers/queryTexts/action", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Query Texts", - "operation": "List query text of a query", - "description": "Return the text of a query" - } - }, - { - "name": "Microsoft.DBforPostgreSQL/servers/queryTexts/read", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Query Texts", - "operation": "List query texts for a list of queries", - "description": "Return the texts for a list of queries" - } - }, - { - "name": "Microsoft.DBforPostgreSQL/servers/resetQueryPerformanceInsightData/action", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Reset Query Performance Insight data", - "operation": "Reset Query Performance Insight data", - "description": "Reset Query Performance Insight data" - } - }, - { - "name": "Microsoft.DBforPostgreSQL/servers/topQueryStatistics/read", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Top Query Statistics", - "operation": "List/Get Query Statistic(s) for top queries", - "description": "Return the list of Query Statistics for the top queries." - } - }, - { - "name": "Microsoft.DBforPostgreSQL/servers/waitStatistics/read", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Wait Statistics", - "operation": "List Wait Statistics for an instance", - "description": "Return wait statistics for an instance" - } - }, - { - "name": "Microsoft.DBforPostgreSQL/privateEndpointConnectionsApproval/action", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Private Endpoint Connections Approval", - "operation": "Private Endpoint Connections Approval", - "description": "Determines if user is allowed to approve a private endpoint connection" - } - }, - { - "name": "Microsoft.DBforPostgreSQL/servers/privateEndpointConnectionsApproval/action", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Private Endpoint Connections Approval", - "operation": "Private Endpoint Connections Approval", - "description": "Determines if user is allowed to approve a private endpoint connection" - } - }, - { - "name": "Microsoft.DBforPostgreSQL/servers/privateLinkResources/read", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Azure Database for PostgreSQL private link resource", - "operation": "Get the private link resources for the corresponding PostgreSQL Server", - "description": "Get the private link resources for the corresponding PostgreSQL Server" - } - }, - { - "name": "Microsoft.DBforPostgreSQL/servers/privateEndpointConnections/read", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Azure Database for PostgreSQL private endpoint connection", - "operation": "List/Get Azure Database for PostgreSQL private endpoint connection", - "description": "Returns the list of private endpoint connections or gets the properties for the specified private endpoint connection." - } - }, - { - "name": "Microsoft.DBforPostgreSQL/servers/privateEndpointConnections/delete", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Azure Database for PostgreSQL private endpoint connection", - "operation": "Delete Azure Database for PostgreSQL private endpoint connection", - "description": "Deletes an existing private endpoint connection" - } - }, - { - "name": "Microsoft.DBforPostgreSQL/servers/privateEndpointConnections/write", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Azure Database for PostgreSQL private endpoint connection", - "operation": "Approve or Reject Azure Database for PostgreSQL private endpoint connection", - "description": "Approves or rejects an existing private endpoint connection" - } - }, - { - "name": "Microsoft.DBforPostgreSQL/locations/privateEndpointConnectionOperationResults/read", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Azure Database for PostgreSQL private endpoint connection", - "operation": "Get private endpoint connection operation status", - "description": "Gets the result for a private endpoint connection operation" - } - }, - { - "name": "Microsoft.DBforPostgreSQL/locations/privateEndpointConnectionAzureAsyncOperation/read", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Azure Database for PostgreSQL private endpoint connection", - "operation": "Get private endpoint connection operation status", - "description": "Gets the result for a private endpoint connection operation" - } - }, - { - "name": "Microsoft.DBforPostgreSQL/locations/privateEndpointConnectionProxyOperationResults/read", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Azure Database for PostgreSQL Private Endpoint Connection Proxy", - "operation": "Get private endpoint connection proxy operation status", - "description": "Gets the result for a private endpoint connection proxy operation" - } - }, - { - "name": "Microsoft.DBforPostgreSQL/servers/privateEndpointConnectionProxies/validate/action", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Azure Database for PostgreSQL Private Endpoint Connection Proxy", - "operation": "Validate Azure Database for PostgreSQL Private Endpoint Connection Creation by NRP", - "description": "Validates a private endpoint connection create call from NRP side" - } - }, - { - "name": "Microsoft.DBforPostgreSQL/servers/privateEndpointConnectionProxies/read", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Azure Database for PostgreSQL Private Endpoint Connection Proxy", - "operation": "List/Get Azure Database for PostgreSQL Private Endpoint Connection Proxy", - "description": "Returns the list of private endpoint connection proxies or gets the properties for the specified private endpoint connection proxy." - } - }, - { - "name": "Microsoft.DBforPostgreSQL/servers/privateEndpointConnectionProxies/write", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Azure Database for PostgreSQL Private Endpoint Connection Proxy", - "operation": "Create/Update Azure Database for PostgreSQL Private Endpoint Connection Proxy", - "description": "Creates a private endpoint connection proxy with the specified parameters or updates the properties or tags for the specified private endpoint connection proxy." - } - }, - { - "name": "Microsoft.DBforPostgreSQL/servers/privateEndpointConnectionProxies/delete", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Azure Database for PostgreSQL Private Endpoint Connection Proxy", - "operation": "Delete Azure Database for PostgreSQL Private Endpoint Connection Proxy", - "description": "Deletes an existing private endpoint connection proxy" - } - }, - { - "name": "Microsoft.DBforPostgreSQL/locations/privateEndpointConnectionProxyAzureAsyncOperation/read", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Azure Database for PostgreSQL Private Endpoint Connection Proxy", - "operation": "Get private endpoint connection proxy operation status", - "description": "Gets the result for a private endpoint connection proxy operation" - } - }, - { - "name": "Microsoft.DBforPostgreSQL/locations/performanceTiers/read", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Performance Tiers", - "operation": "List Performance Tiers", - "description": "Returns the list of Performance Tiers available." - } - }, - { - "name": "Microsoft.DBforPostgreSQL/locations/operationResults/read", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "PostgreSQ ResourceGroup based Server Operation Results", - "operation": "Get PostgreSQL ResourceGroup based Server Operation Results ", - "description": "Return ResourceGroup based PostgreSQL Server Operation Results" - } - }, - { - "name": "Microsoft.DBforPostgreSQL/servers/recoverableServers/read", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Recoverable PostgreSQL Server", - "operation": "Get Recoverable PostgreSQL Server info", - "description": "Return the recoverable PostgreSQL Server info" - } - }, - { - "name": "Microsoft.DBforPostgreSQL/servers/replicas/read", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "PostgreSQL Server", - "operation": "Get PostgreSQL read replicas", - "description": "Get read replicas of a PostgreSQL server" - } - }, - { - "name": "Microsoft.DBforPostgreSQL/servers/read", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "PostgreSQL Server", - "operation": "List/Get PostgreSQL Servers", - "description": "Return the list of servers or gets the properties for the specified server." - } - }, - { - "name": "Microsoft.DBforPostgreSQL/servers/write", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "PostgreSQL Server", - "operation": "Create/Update PostgreSQL Server", - "description": "Creates a server with the specified parameters or update the properties or tags for the specified server." - } - }, - { - "name": "Microsoft.DBforPostgreSQL/servers/delete", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "PostgreSQL Server", - "operation": "Delete PostgreSQL Server", - "description": "Deletes an existing server." - } - }, - { - "name": "Microsoft.DBforPostgreSQL/servers/performanceTiers/read", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Performance Tiers", - "operation": "List Performance Tiers", - "description": "Returns the list of Performance Tiers available." - } - }, - { - "name": "Microsoft.DBforPostgreSQL/locations/operationResults/read", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "PostgreSQL Server Operation Results", - "operation": "Get PostgreSQL Server Operation Results", - "description": "Return PostgreSQL Server Operation Results" - } - }, - { - "name": "Microsoft.DBforPostgreSQL/servers/restart/action", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "PostgreSQL Server", - "operation": "Restart PostgreSQL Server", - "description": "Restarts a specific server." - } - }, - { - "name": "Microsoft.DBforPostgreSQL/locations/securityAlertPoliciesAzureAsyncOperation/read", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Server threat detection operation result", - "operation": "List/Get Server threat detection operation result.", - "description": "Return the list of Server threat detection operation result." - } - }, - { - "name": "Microsoft.DBforPostgreSQL/servers/administrators/read", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Administrator of PostgreSQL server.", - "operation": "Get Administrators of PostgreSQL server.", - "description": "Gets a list of PostgreSQL server administrators." - } - }, - { - "name": "Microsoft.DBforPostgreSQL/servers/administrators/write", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Administrator of PostgreSQL server.", - "operation": "Create/Update Administrator of PostgreSQL server.", - "description": "Creates or updates PostgreSQL server administrator with the specified parameters." - } - }, - { - "name": "Microsoft.DBforPostgreSQL/servers/administrators/delete", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Administrator of PostgreSQL server.", - "operation": "Delete Administrator of PostgreSQL server.", - "description": "Deletes an existing administrator of PostgreSQL server." - } - }, - { - "name": "Microsoft.DBforPostgreSQL/locations/administratorAzureAsyncOperation/read", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Administrator opertiaons of PostgreSQL server.", - "operation": "PostgreSQL server administrator operation", - "description": "Gets in-progress operations on PostgreSQL server administrators" - } - }, - { - "name": "Microsoft.DBforPostgreSQL/locations/administratorOperationResults/read", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "PostgreSQL server operation results", - "operation": "Get PostgreSQL server operation results", - "description": "Return PostgreSQL Server administrator operation results" - } - }, - { - "name": "Microsoft.DBforPostgreSQL/register/action", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Microsoft Database For PostgreSQL Resource Provider", - "operation": "Register PostgreSQL Resource Provider", - "description": "Register PostgreSQL Resource Provider" - } - }, - { - "name": "Microsoft.DBforPostgreSQL/servers/updateConfigurations/action", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "PostgreSQL Server", - "operation": "Batch Update Server Configurations", - "description": "Update configurations for the specified server" - } - }, - { - "name": "Microsoft.DBforPostgreSQL/checkNameAvailability/action", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "PostgreSQL Server", - "operation": "Check Server Name Availability", - "description": "Verify whether given server name is available for provisioning worldwide for a given subscription." - } - }, - { - "name": "Microsoft.DBforPostgreSQL/servers/configurations/read", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Configurations", - "operation": "List/Get Configurations", - "description": "Return the list of configurations for a server or gets the properties for the specified configuration." - } - }, - { - "name": "Microsoft.DBforPostgreSQL/servers/configurations/write", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Configurations", - "operation": "Update Configuration", - "description": "Update the value for the specified configuration" - } - }, - { - "name": "Microsoft.DBforPostgreSQL/servers/virtualNetworkRules/read", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Virtual Network Rules", - "operation": "List/Get Virtual Network Rule(s)", - "description": "Return the list of virtual network rules or gets the properties for the specified virtual network rule." - } - }, - { - "name": "Microsoft.DBforPostgreSQL/servers/virtualNetworkRules/write", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Virtual Network Rules", - "operation": "Create/Update Virtual Network Rule", - "description": "Creates a virtual network rule with the specified parameters or update the properties or tags for the specified virtual network rule." - } - }, - { - "name": "Microsoft.DBforPostgreSQL/servers/virtualNetworkRules/delete", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Virtual Network Rules", - "operation": "Delete Virtual Network Rule", - "description": "Deletes an existing Virtual Network Rule" - } - }, - { - "name": "Microsoft.DBforPostgreSQL/locations/azureAsyncOperation/read", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "PostgreSQL Server Operation Results", - "operation": "Get PostgreSQL Server Operation Results", - "description": "Return PostgreSQL Server Operation Results" - } - }, - { - "name": "Microsoft.DBforPostgreSQL/servers/databases/read", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "PostgreSQL Databases", - "operation": "List/Get PostgreSQL Database", - "description": "Return the list of PostgreSQL Databases or gets the properties for the specified Database." - } - }, - { - "name": "Microsoft.DBforPostgreSQL/servers/databases/write", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "PostgreSQL Databases", - "operation": "Create/Update PostgreSQL Database", - "description": "Creates a PostgreSQL Database with the specified parameters or update the properties for the specified Database." - } - }, - { - "name": "Microsoft.DBforPostgreSQL/servers/databases/delete", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "PostgreSQL Databases", - "operation": "Delete PostgreSQL Database", - "description": "Deletes an existing PostgreSQL Database." - } - }, - { - "name": "Microsoft.DBforPostgreSQL/servers/firewallRules/read", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Firewall Rules", - "operation": "List/Get Firewall Rules", - "description": "Return the list of firewall rules for a server or gets the properties for the specified firewall rule." - } - }, - { - "name": "Microsoft.DBforPostgreSQL/servers/firewallRules/write", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Firewall Rules", - "operation": "Create/Update Firewall Rule", - "description": "Creates a firewall rule with the specified parameters or update an existing rule." - } - }, - { - "name": "Microsoft.DBforPostgreSQL/servers/firewallRules/delete", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Firewall Rules", - "operation": "Delete Firewall Rule", - "description": "Deletes an existing firewall rule." - } - }, - { - "name": "Microsoft.DBforPostgreSQL/servers/logFiles/read", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "PostgreSQL LogFiles", - "operation": "List/Get PostgreSQL LogFiles", - "description": "Return the list of PostgreSQL LogFiles." - } - }, - { - "name": "Microsoft.DBforPostgreSQL/performanceTiers/read", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Performance Tiers", - "operation": "List Performance Tiers", - "description": "Returns the list of Performance Tiers available." - } - }, - { - "name": "Microsoft.DBforPostgreSQL/operations/read", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "PostgreSQL Operations", - "operation": "List/Get PostgreSQL Operations", - "description": "Return the list of PostgreSQL Operations." - } - }, - { - "name": "Microsoft.DBforPostgreSQL/servers/providers/Microsoft.Insights/metricDefinitions/read", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Database Metric Definition", - "operation": "Get database metric definitions", - "description": "Return types of metrics that are available for databases" - }, - "properties": { - "serviceSpecification": { - "metricSpecifications": [ - { - "name": "cpu_percent", - "displayName": "CPU percent", - "displayDescription": "CPU percent", - "unit": "Percent", - "aggregationType": "Average", - "supportedAggregationTypes": [ - "Average", - "Maximum", - "Minimum" - ], - "category": "Saturation", - "fillGapWithZero": false - }, - { - "name": "memory_percent", - "displayName": "Memory percent", - "displayDescription": "Memory percent", - "unit": "Percent", - "aggregationType": "Average", - "supportedAggregationTypes": [ - "Average", - "Maximum", - "Minimum" - ], - "category": "Saturation", - "fillGapWithZero": false - }, - { - "name": "io_consumption_percent", - "displayName": "IO percent", - "displayDescription": "IO percent", - "unit": "Percent", - "aggregationType": "Average", - "supportedAggregationTypes": [ - "Average", - "Maximum", - "Minimum" - ], - "category": "Saturation", - "fillGapWithZero": false - }, - { - "name": "storage_percent", - "displayName": "Storage percent", - "displayDescription": "Storage percent", - "unit": "Percent", - "aggregationType": "Average", - "supportedAggregationTypes": [ - "Average", - "Maximum", - "Minimum" - ], - "category": "Saturation", - "fillGapWithZero": false - }, - { - "name": "storage_used", - "displayName": "Storage used", - "displayDescription": "Storage used", - "unit": "Bytes", - "aggregationType": "Average", - "supportedAggregationTypes": [ - "Average", - "Maximum", - "Minimum" - ], - "category": "Saturation", - "fillGapWithZero": false - }, - { - "name": "storage_limit", - "displayName": "Storage limit", - "displayDescription": "Storage limit", - "unit": "Bytes", - "aggregationType": "Maximum", - "supportedAggregationTypes": [ - "Maximum" - ], - "category": "Saturation", - "fillGapWithZero": false - }, - { - "name": "serverlog_storage_percent", - "displayName": "Server Log storage percent", - "displayDescription": "Server Log storage percent", - "unit": "Percent", - "aggregationType": "Average", - "supportedAggregationTypes": [ - "Average", - "Maximum", - "Minimum" - ], - "category": "Saturation", - "fillGapWithZero": false - }, - { - "name": "serverlog_storage_usage", - "displayName": "Server Log storage used", - "displayDescription": "Server Log storage used", - "unit": "Bytes", - "aggregationType": "Average", - "supportedAggregationTypes": [ - "Average", - "Maximum", - "Minimum" - ], - "category": "Saturation", - "fillGapWithZero": false - }, - { - "name": "serverlog_storage_limit", - "displayName": "Server Log storage limit", - "displayDescription": "Server Log storage limit", - "unit": "Bytes", - "aggregationType": "Maximum", - "supportedAggregationTypes": [ - "Maximum" - ], - "category": "Saturation", - "fillGapWithZero": false - }, - { - "name": "active_connections", - "displayName": "Active Connections", - "displayDescription": "Active Connections", - "unit": "Count", - "aggregationType": "Average", - "supportedAggregationTypes": [ - "Average", - "Maximum", - "Minimum" - ], - "category": "Traffic", - "fillGapWithZero": false - }, - { - "name": "connections_failed", - "displayName": "Failed Connections", - "displayDescription": "Failed Connections", - "unit": "Count", - "aggregationType": "Total", - "supportedAggregationTypes": [ - "Total" - ], - "category": "Errors", - "fillGapWithZero": false - }, - { - "name": "backup_storage_used", - "displayName": "Backup Storage Used", - "displayDescription": "Backup Storage Used", - "unit": "Bytes", - "aggregationType": "Average", - "supportedAggregationTypes": [ - "Average", - "Maximum", - "Minimum" - ], - "supportedTimeGrainTypes": [ - "PT15M", - "PT30M", - "PT1H", - "PT6H", - "PT12H", - "P1D" - ], - "category": "Saturation", - "fillGapWithZero": false - }, - { - "name": "network_bytes_egress", - "displayName": "Network Out", - "displayDescription": "Network Out across active connections", - "unit": "Bytes", - "aggregationType": "Total", - "supportedAggregationTypes": [ - "Total" - ], - "category": "Traffic", - "fillGapWithZero": false - }, - { - "name": "network_bytes_ingress", - "displayName": "Network In", - "displayDescription": "Network In across active connections", - "unit": "Bytes", - "aggregationType": "Total", - "supportedAggregationTypes": [ - "Total" - ], - "category": "Traffic", - "fillGapWithZero": false - }, - { - "name": "pg_replica_log_delay_in_seconds", - "displayName": "Replica Lag", - "displayDescription": "Replica lag in seconds", - "unit": "Seconds", - "aggregationType": "Maximum", - "supportedAggregationTypes": [ - "Average", - "Maximum", - "Minimum" - ], - "category": "Latency", - "fillGapWithZero": false - }, - { - "name": "pg_replica_log_delay_in_bytes", - "displayName": "Max Lag Across Replicas", - "displayDescription": "Lag in bytes of the most lagging replica", - "unit": "Bytes", - "aggregationType": "Maximum", - "supportedAggregationTypes": [ - "Average", - "Maximum", - "Minimum" - ], - "category": "Latency", - "fillGapWithZero": false - } - ] - } - } - }, - { - "name": "Microsoft.DBforPostgreSQL/servers/providers/Microsoft.Insights/logDefinitions/read", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "The log definition of servers", - "operation": "Read server log definitions", - "description": "Gets the available logs for PostgreSQL servers" - }, - "properties": { - "serviceSpecification": { - "logSpecifications": [ - { - "name": "PostgreSQLLogs", - "displayName": "PostgreSQL Server Logs", - "blobDuration": "PT1H" - }, - { - "name": "QueryStoreRuntimeStatistics", - "displayName": "PostgreSQL Query Store Runtime Statistics", - "blobDuration": "PT1H" - }, - { - "name": "QueryStoreWaitStatistics", - "displayName": "PostgreSQL Query Store Wait Statistics", - "blobDuration": "PT1H" - } - ] - } - } - }, - { - "name": "Microsoft.DBforPostgreSQL/servers/providers/Microsoft.Insights/diagnosticSettings/read", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Database Metric Definition", - "operation": "Read diagnostic setting", - "description": "Gets the disagnostic setting for the resource" - } - }, - { - "name": "Microsoft.DBforPostgreSQL/servers/providers/Microsoft.Insights/diagnosticSettings/write", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Database Metric Definition", - "operation": "Write diagnostic setting", - "description": "Creates or updates the diagnostic setting for the resource" - } - }, - { - "name": "Microsoft.DBforPostgreSQL/serversv2/providers/Microsoft.Insights/metricDefinitions/read", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Database Metric Definition", - "operation": "Get database metric definitions", - "description": "Return types of metrics that are available for databases" - }, - "properties": { - "serviceSpecification": { - "metricSpecifications": [ - { - "name": "cpu_percent", - "displayName": "CPU percent", - "displayDescription": "CPU percent", - "unit": "Percent", - "aggregationType": "Average", - "supportedAggregationTypes": [ - "Average", - "Maximum", - "Minimum" - ], - "category": "Saturation" - }, - { - "name": "memory_percent", - "displayName": "Memory percent", - "displayDescription": "Memory percent", - "unit": "Percent", - "aggregationType": "Average", - "supportedAggregationTypes": [ - "Average", - "Maximum", - "Minimum" - ], - "category": "Saturation" - }, - { - "name": "iops", - "displayName": "IOPS", - "displayDescription": "IO Operations per second", - "unit": "Count", - "aggregationType": "Average", - "supportedAggregationTypes": [ - "Average", - "Maximum", - "Minimum" - ], - "category": "Saturation" - }, - { - "name": "storage_percent", - "displayName": "Storage percent", - "displayDescription": "Storage percent", - "unit": "Percent", - "aggregationType": "Average", - "supportedAggregationTypes": [ - "Average", - "Maximum", - "Minimum" - ], - "category": "Saturation" - }, - { - "name": "storage_used", - "displayName": "Storage used", - "displayDescription": "Storage used", - "unit": "Bytes", - "aggregationType": "Average", - "supportedAggregationTypes": [ - "Average", - "Maximum", - "Minimum" - ], - "category": "Saturation" - }, - { - "name": "active_connections", - "displayName": "Active Connections", - "displayDescription": "Active Connections", - "unit": "Count", - "aggregationType": "Average", - "supportedAggregationTypes": [ - "Average", - "Maximum", - "Minimum" - ], - "category": "Traffic" - }, - { - "name": "network_bytes_egress", - "displayName": "Network Out", - "displayDescription": "Network Out across active connections", - "unit": "Bytes", - "aggregationType": "Total", - "supportedAggregationTypes": [ - "Total" - ], - "category": "Traffic" - }, - { - "name": "network_bytes_ingress", - "displayName": "Network In", - "displayDescription": "Network In across active connections", - "unit": "Bytes", - "aggregationType": "Total", - "supportedAggregationTypes": [ - "Total" - ], - "category": "Traffic" - } - ] - } - } - }, - { - "name": "Microsoft.DBforPostgreSQL/serversv2/providers/Microsoft.Insights/logDefinitions/read", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "The log definition of servers", - "operation": "Read server log definitions", - "description": "Gets the available logs for PostgreSQL servers" - }, - "properties": { - "serviceSpecification": { - "logSpecifications": [ - { - "name": "PostgreSQLLogs", - "displayName": "PostgreSQL Server Logs", - "blobDuration": "PT1H" - } - ] - } - } - }, - { - "name": "Microsoft.DBforPostgreSQL/serversv2/providers/Microsoft.Insights/diagnosticSettings/read", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Database Metric Definition", - "operation": "Read diagnostic setting", - "description": "Gets the disagnostic setting for the resource" - } - }, - { - "name": "Microsoft.DBforPostgreSQL/serversv2/providers/Microsoft.Insights/diagnosticSettings/write", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Database Metric Definition", - "operation": "Write diagnostic setting", - "description": "Creates or updates the diagnostic setting for the resource" - } - }, - { - "name": "Microsoft.DBforPostgreSQL/serversv2/read", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "PostgreSQL Server", - "operation": "List/Get PostgreSQL Servers", - "description": "Return the list of servers or gets the properties for the specified server." - } - }, - { - "name": "Microsoft.DBforPostgreSQL/serversv2/write", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "PostgreSQL Server", - "operation": "Create/Update PostgreSQL Server", - "description": "Creates a server with the specified parameters or update the properties or tags for the specified server." - } - }, - { - "name": "Microsoft.DBforPostgreSQL/serversv2/delete", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "PostgreSQL Server", - "operation": "Delete PostgreSQL Server", - "description": "Deletes an existing server." - } - }, - { - "name": "Microsoft.DBforPostgreSQL/serversv2/firewallRules/read", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Firewall Rules", - "operation": "List/Get Firewall Rules", - "description": "Return the list of firewall rules for a server or gets the properties for the specified firewall rule." - } - }, - { - "name": "Microsoft.DBforPostgreSQL/serversv2/firewallRules/write", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Firewall Rules", - "operation": "Create/Update Firewall Rule", - "description": "Creates a firewall rule with the specified parameters or update an existing rule." - } - }, - { - "name": "Microsoft.DBforPostgreSQL/serversv2/firewallRules/delete", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Firewall Rules", - "operation": "Delete Firewall Rule", - "description": "Deletes an existing firewall rule." - } - }, - { - "name": "Microsoft.DBforPostgreSQL/serversv2/configurations/read", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Configurations", - "operation": "List/Get Configurations", - "description": "Return the list of configurations for a server or gets the properties for the specified configuration." - } - }, - { - "name": "Microsoft.DBforPostgreSQL/serversv2/configurations/write", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Configurations", - "operation": "Update Configuration", - "description": "Update the value for the specified configuration" - } - }, - { - "name": "Microsoft.DBforPostgreSQL/serversv2/updateConfigurations/action", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "PostgreSQL Server", - "operation": "Batch Update Server Configurations", - "description": "Update configurations for the specified server" - } - }, - { - "name": "Microsoft.DBforPostgreSQL/serverGroupsv2/privateEndpointConnectionProxies/read", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Azure Database for PostgreSQL SGv2 Private Endpoint Connection Proxy", - "operation": "List/Get Azure Database for PostgreSQL SGv2 Private Endpoint Connection Via Proxy", - "description": "Returns the list of private endpoint connections or gets the properties for the specified private endpoint connection via proxy" - } - }, - { - "name": "Microsoft.DBforPostgreSQL/serverGroupsv2/privateEndpointConnectionProxies/write", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Azure Database for PostgreSQL SGv2 Private Endpoint Connection Proxy", - "operation": "Create/Update Azure Database for PostgreSQL SGv2 Private Endpoint Connection Via Proxy", - "description": "Creates a private endpoint connection with the specified parameters or updates the properties or tags for the specified private endpoint connection via proxy" - } - }, - { - "name": "Microsoft.DBforPostgreSQL/serverGroupsv2/privateEndpointConnectionProxies/delete", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Azure Database for PostgreSQL SGv2 Private Endpoint Connection Proxy", - "operation": "Delete Azure Database for PostgreSQL SGv2 Private Endpoint Connection Via Proxy", - "description": "Deletes an existing private endpoint connection via proxy" - } - }, - { - "name": "Microsoft.DBforPostgreSQL/serverGroupsv2/privateEndpointConnectionProxies/validate/action", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Azure Database for PostgreSQL SGv2 Private Endpoint Connection Proxy", - "operation": "Validate Azure Database for PostgreSQL SGv2 Private Endpoint Connection Creation by NRP", - "description": "Validates a private endpoint connection creation by NRP" - } - }, - { - "name": "Microsoft.DBforPostgreSQL/serverGroupsv2/privateEndpointConnections/read", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Azure Database for PostgreSQL SGv2 Private Endpoint Connection", - "operation": "List/Get Azure Database for PostgreSQL SGv2 Private Endpoint Connection", - "description": "Returns the list of private endpoint connections or gets the properties for the specified private endpoint connection" - } - }, - { - "name": "Microsoft.DBforPostgreSQL/serverGroupsv2/privateEndpointConnections/write", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Azure Database for PostgreSQL SGv2 Private Endpoint Connection", - "operation": "Approve or Reject Azure Database for PostgreSQL SGv2 Private Endpoint Connection", - "description": "Approves or rejects an existing private endpoint connection" - } - }, - { - "name": "Microsoft.DBforPostgreSQL/serverGroupsv2/privateEndpointConnections/delete", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Azure Database for PostgreSQL SGv2 Private Endpoint Connection", - "operation": "Delete Azure Database for PostgreSQL SGv2 Private Endpoint Connection", - "description": "Deletes an existing private endpoint connection" - } - }, - { - "name": "Microsoft.DBforPostgreSQL/serverGroupsv2/privateLinkResources/read", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Azure Database for PostgreSQL SGv2 Private Link Resource", - "operation": "Get the private link resources for the corresponding PostgreSQL SGv2", - "description": "Get the private link resources for the corresponding PostgreSQL SGv2" - } - }, - { - "name": "Microsoft.DBforPostgreSQL/serverGroupsv2/privateEndpointConnectionsApproval/action", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Azure Database for PostgreSQL SGv2 Private Endpoint Connections Approval Resource", - "operation": "Private Endpoint Connections Approval for PostgreSQL SGv2", - "description": "Determines if user is allowed to approve a private endpoint connection for PostgreSQL SGv2" - } - }, - { - "name": "Microsoft.DBforPostgreSQL/singleservers/providers/Microsoft.Insights/metricDefinitions/read", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Database Metric Definition", - "operation": "Get database metric definitions", - "description": "Return types of metrics that are available for databases" - }, - "properties": { - "serviceSpecification": { - "metricSpecifications": [ - { - "name": "backup_storage_used", - "displayName": "Backup Storage Used", - "displayDescription": "Backup Storage Used", - "unit": "Bytes", - "aggregationType": "Average", - "supportedAggregationTypes": [ - "Average", - "Maximum", - "Minimum" - ], - "category": "Saturation" - }, - { - "name": "cpu_credits_consumed", - "displayName": "CPU Credits Consumed", - "displayDescription": "Total number of credits consumed by the database server", - "unit": "Count", - "aggregationType": "Average", - "supportedAggregationTypes": [ - "Average", - "Maximum", - "Minimum" - ], - "category": "Saturation" - }, - { - "name": "cpu_credits_remaining", - "displayName": "CPU Credits Remaining", - "displayDescription": "Total number of credits available to burst", - "unit": "Count", - "aggregationType": "Average", - "supportedAggregationTypes": [ - "Average", - "Maximum", - "Minimum" - ], - "category": "Saturation" - }, - { - "name": "cpu_percent", - "displayName": "CPU percent", - "displayDescription": "CPU percent", - "unit": "Percent", - "aggregationType": "Average", - "supportedAggregationTypes": [ - "Average", - "Maximum", - "Minimum" - ], - "category": "Saturation" - }, - { - "name": "memory_percent", - "displayName": "Memory percent", - "displayDescription": "Memory percent", - "unit": "Percent", - "aggregationType": "Average", - "supportedAggregationTypes": [ - "Average", - "Maximum", - "Minimum" - ], - "category": "Saturation" - }, - { - "name": "iops", - "displayName": "IOPS", - "displayDescription": "IO Operations per second", - "unit": "Count", - "aggregationType": "Average", - "supportedAggregationTypes": [ - "Average", - "Maximum", - "Minimum" - ], - "category": "Saturation" - }, - { - "name": "disk_queue_depth", - "displayName": "Disk Queue Depth", - "displayDescription": "Number of outstanding I/O operations to the data disk", - "unit": "Count", - "aggregationType": "Average", - "supportedAggregationTypes": [ - "Average", - "Maximum", - "Minimum" - ], - "category": "Saturation" - }, - { - "name": "read_throughput", - "displayName": "Read Throughput Bytes/Sec", - "displayDescription": "Bytes read per second from the data disk during monitoring period", - "unit": "Count", - "aggregationType": "Average", - "supportedAggregationTypes": [ - "Average", - "Maximum", - "Minimum" - ], - "category": "Saturation" - }, - { - "name": "write_throughput", - "displayName": "Write Throughput Bytes/Sec", - "displayDescription": "Bytes written per second to the data disk during monitoring period", - "unit": "Count", - "aggregationType": "Average", - "supportedAggregationTypes": [ - "Average", - "Maximum", - "Minimum" - ], - "category": "Saturation" - }, - { - "name": "read_iops", - "displayName": "Read IOPS", - "displayDescription": "Number of data disk I/O read operations per second", - "unit": "Count", - "aggregationType": "Average", - "supportedAggregationTypes": [ - "Average", - "Maximum", - "Minimum" - ], - "category": "Saturation" - }, - { - "name": "write_iops", - "displayName": "Write IOPS", - "displayDescription": "Number of data disk I/O write operations per second", - "unit": "Count", - "aggregationType": "Average", - "supportedAggregationTypes": [ - "Average", - "Maximum", - "Minimum" - ], - "category": "Saturation" - }, - { - "name": "storage_percent", - "displayName": "Storage percent", - "displayDescription": "Storage percent", - "unit": "Percent", - "aggregationType": "Average", - "supportedAggregationTypes": [ - "Average", - "Maximum", - "Minimum" - ], - "category": "Saturation" - }, - { - "name": "storage_used", - "displayName": "Storage used", - "displayDescription": "Storage used", - "unit": "Bytes", - "aggregationType": "Average", - "supportedAggregationTypes": [ - "Average", - "Maximum", - "Minimum" - ], - "category": "Saturation" - }, - { - "name": "storage_free", - "displayName": "Storage Free", - "displayDescription": "Storage Free", - "unit": "Bytes", - "aggregationType": "Average", - "supportedAggregationTypes": [ - "Average", - "Maximum", - "Minimum" - ], - "category": "Saturation" - }, - { - "name": "txlogs_storage_used", - "displayName": "Transaction Log Storage Used", - "displayDescription": "Transaction Log Storage Used", - "unit": "Bytes", - "aggregationType": "Average", - "supportedAggregationTypes": [ - "Average", - "Maximum", - "Minimum" - ], - "category": "Saturation" - }, - { - "name": "active_connections", - "displayName": "Active Connections", - "displayDescription": "Active Connections", - "unit": "Count", - "aggregationType": "Average", - "supportedAggregationTypes": [ - "Average", - "Maximum", - "Minimum" - ], - "category": "Traffic" - }, - { - "name": "network_bytes_egress", - "displayName": "Network Out", - "displayDescription": "Network Out across active connections", - "unit": "Bytes", - "aggregationType": "Total", - "supportedAggregationTypes": [ - "Total" - ], - "category": "Traffic" - }, - { - "name": "network_bytes_ingress", - "displayName": "Network In", - "displayDescription": "Network In across active connections", - "unit": "Bytes", - "aggregationType": "Total", - "supportedAggregationTypes": [ - "Total" - ], - "category": "Traffic" - }, - { - "name": "connections_failed", - "displayName": "Failed Connections", - "displayDescription": "Failed Connections", - "unit": "Count", - "aggregationType": "Total", - "supportedAggregationTypes": [ - "Total" - ], - "category": "Errors" - }, - { - "name": "connections_succeeded", - "displayName": "Succeeded Connections", - "displayDescription": "Succeeded Connections", - "unit": "Count", - "aggregationType": "Total", - "supportedAggregationTypes": [ - "Total" - ], - "category": "Traffic" - }, - { - "name": "maximum_used_transactionIDs", - "displayName": "Maximum Used Transaction IDs", - "displayDescription": "Maximum Used Transaction IDs", - "unit": "Count", - "aggregationType": "Average", - "supportedAggregationTypes": [ - "Average", - "Maximum", - "Minimum" - ], - "category": "Traffic" - } - ] - } - } - }, - { - "name": "Microsoft.DBforPostgreSQL/singleservers/providers/Microsoft.Insights/logDefinitions/read", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "The log definition of servers", - "operation": "Read server log definitions", - "description": "Gets the available logs for PostgreSQL servers" - }, - "properties": { - "serviceSpecification": { - "logSpecifications": [ - { - "name": "PostgreSQLLogs", - "displayName": "PostgreSQL Server Logs", - "blobDuration": "PT1H" - } - ] - } - } - }, - { - "name": "Microsoft.DBforPostgreSQL/singleservers/providers/Microsoft.Insights/diagnosticSettings/read", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Database Metric Definition", - "operation": "Read diagnostic setting", - "description": "Gets the disagnostic setting for the resource" - } - }, - { - "name": "Microsoft.DBforPostgreSQL/singleservers/providers/Microsoft.Insights/diagnosticSettings/write", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Database Metric Definition", - "operation": "Write diagnostic setting", - "description": "Creates or updates the diagnostic setting for the resource" - } - }, - { - "name": "Microsoft.DBforPostgreSQL/singleservers/read", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "PostgreSQL Server", - "operation": "List/Get PostgreSQL Servers", - "description": "Return the list of servers or gets the properties for the specified server." - } - }, - { - "name": "Microsoft.DBforPostgreSQL/singleservers/write", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "PostgreSQL Server", - "operation": "Create/Update PostgreSQL Server", - "description": "Creates a server with the specified parameters or update the properties or tags for the specified server." - } - }, - { - "name": "Microsoft.DBforPostgreSQL/singleservers/delete", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "PostgreSQL Server", - "operation": "Delete PostgreSQL Server", - "description": "Deletes an existing server." - } - }, - { - "name": "Microsoft.DBforPostgreSQL/flexibleServers/providers/Microsoft.Insights/metricDefinitions/read", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Database Metric Definition", - "operation": "Get database metric definitions", - "description": "Return types of metrics that are available for databases" - }, - "properties": { - "serviceSpecification": { - "metricSpecifications": [ - { - "name": "backup_storage_used", - "displayName": "Backup Storage Used", - "displayDescription": "Backup Storage Used", - "unit": "Bytes", - "aggregationType": "Average", - "supportedAggregationTypes": [ - "Average", - "Maximum", - "Minimum" - ], - "category": "Saturation" - }, - { - "name": "cpu_credits_consumed", - "displayName": "CPU Credits Consumed", - "displayDescription": "Total number of credits consumed by the database server", - "unit": "Count", - "aggregationType": "Average", - "supportedAggregationTypes": [ - "Average", - "Maximum", - "Minimum" - ], - "category": "Saturation" - }, - { - "name": "cpu_credits_remaining", - "displayName": "CPU Credits Remaining", - "displayDescription": "Total number of credits available to burst", - "unit": "Count", - "aggregationType": "Average", - "supportedAggregationTypes": [ - "Average", - "Maximum", - "Minimum" - ], - "category": "Saturation" - }, - { - "name": "cpu_percent", - "displayName": "CPU percent", - "displayDescription": "CPU percent", - "unit": "Percent", - "aggregationType": "Average", - "supportedAggregationTypes": [ - "Average", - "Maximum", - "Minimum" - ], - "category": "Saturation" - }, - { - "name": "memory_percent", - "displayName": "Memory percent", - "displayDescription": "Memory percent", - "unit": "Percent", - "aggregationType": "Average", - "supportedAggregationTypes": [ - "Average", - "Maximum", - "Minimum" - ], - "category": "Saturation" - }, - { - "name": "iops", - "displayName": "IOPS", - "displayDescription": "IO Operations per second", - "unit": "Count", - "aggregationType": "Average", - "supportedAggregationTypes": [ - "Average", - "Maximum", - "Minimum" - ], - "category": "Saturation" - }, - { - "name": "disk_queue_depth", - "displayName": "Disk Queue Depth", - "displayDescription": "Number of outstanding I/O operations to the data disk", - "unit": "Count", - "aggregationType": "Average", - "supportedAggregationTypes": [ - "Average", - "Maximum", - "Minimum" - ], - "category": "Saturation" - }, - { - "name": "read_throughput", - "displayName": "Read Throughput Bytes/Sec", - "displayDescription": "Bytes read per second from the data disk during monitoring period", - "unit": "Count", - "aggregationType": "Average", - "supportedAggregationTypes": [ - "Average", - "Maximum", - "Minimum" - ], - "category": "Saturation" - }, - { - "name": "write_throughput", - "displayName": "Write Throughput Bytes/Sec", - "displayDescription": "Bytes written per second to the data disk during monitoring period", - "unit": "Count", - "aggregationType": "Average", - "supportedAggregationTypes": [ - "Average", - "Maximum", - "Minimum" - ], - "category": "Saturation" - }, - { - "name": "read_iops", - "displayName": "Read IOPS", - "displayDescription": "Number of data disk I/O read operations per second", - "unit": "Count", - "aggregationType": "Average", - "supportedAggregationTypes": [ - "Average", - "Maximum", - "Minimum" - ], - "category": "Saturation" - }, - { - "name": "write_iops", - "displayName": "Write IOPS", - "displayDescription": "Number of data disk I/O write operations per second", - "unit": "Count", - "aggregationType": "Average", - "supportedAggregationTypes": [ - "Average", - "Maximum", - "Minimum" - ], - "category": "Saturation" - }, - { - "name": "storage_percent", - "displayName": "Storage percent", - "displayDescription": "Storage percent", - "unit": "Percent", - "aggregationType": "Average", - "supportedAggregationTypes": [ - "Average", - "Maximum", - "Minimum" - ], - "category": "Saturation" - }, - { - "name": "storage_used", - "displayName": "Storage used", - "displayDescription": "Storage used", - "unit": "Bytes", - "aggregationType": "Average", - "supportedAggregationTypes": [ - "Average", - "Maximum", - "Minimum" - ], - "category": "Saturation" - }, - { - "name": "storage_free", - "displayName": "Storage Free", - "displayDescription": "Storage Free", - "unit": "Bytes", - "aggregationType": "Average", - "supportedAggregationTypes": [ - "Average", - "Maximum", - "Minimum" - ], - "category": "Saturation" - }, - { - "name": "txlogs_storage_used", - "displayName": "Transaction Log Storage Used", - "displayDescription": "Transaction Log Storage Used", - "unit": "Bytes", - "aggregationType": "Average", - "supportedAggregationTypes": [ - "Average", - "Maximum", - "Minimum" - ], - "category": "Saturation" - }, - { - "name": "active_connections", - "displayName": "Active Connections", - "displayDescription": "Active Connections", - "unit": "Count", - "aggregationType": "Average", - "supportedAggregationTypes": [ - "Average", - "Maximum", - "Minimum" - ], - "category": "Traffic" - }, - { - "name": "network_bytes_egress", - "displayName": "Network Out", - "displayDescription": "Network Out across active connections", - "unit": "Bytes", - "aggregationType": "Total", - "supportedAggregationTypes": [ - "Total" - ], - "category": "Traffic" - }, - { - "name": "network_bytes_ingress", - "displayName": "Network In", - "displayDescription": "Network In across active connections", - "unit": "Bytes", - "aggregationType": "Total", - "supportedAggregationTypes": [ - "Total" - ], - "category": "Traffic" - }, - { - "name": "connections_failed", - "displayName": "Failed Connections", - "displayDescription": "Failed Connections", - "unit": "Count", - "aggregationType": "Total", - "supportedAggregationTypes": [ - "Total" - ], - "category": "Errors" - }, - { - "name": "connections_succeeded", - "displayName": "Succeeded Connections", - "displayDescription": "Succeeded Connections", - "unit": "Count", - "aggregationType": "Total", - "supportedAggregationTypes": [ - "Total" - ], - "category": "Traffic" - }, - { - "name": "maximum_used_transactionIDs", - "displayName": "Maximum Used Transaction IDs", - "displayDescription": "Maximum Used Transaction IDs", - "unit": "Count", - "aggregationType": "Average", - "supportedAggregationTypes": [ - "Average", - "Maximum", - "Minimum" - ], - "category": "Traffic" - } - ] - } - } - }, - { - "name": "Microsoft.DBforPostgreSQL/flexibleServers/providers/Microsoft.Insights/logDefinitions/read", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "The log definition of servers", - "operation": "Read server log definitions", - "description": "Gets the available logs for PostgreSQL servers" - }, - "properties": { - "serviceSpecification": { - "logSpecifications": [ - { - "name": "PostgreSQLLogs", - "displayName": "PostgreSQL Server Logs", - "blobDuration": "PT1H" - } - ] - } - } - }, - { - "name": "Microsoft.DBforPostgreSQL/flexibleServers/providers/Microsoft.Insights/diagnosticSettings/read", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Database Metric Definition", - "operation": "Read diagnostic setting", - "description": "Gets the disagnostic setting for the resource" - } - }, - { - "name": "Microsoft.DBforPostgreSQL/flexibleServers/providers/Microsoft.Insights/diagnosticSettings/write", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "Database Metric Definition", - "operation": "Write diagnostic setting", - "description": "Creates or updates the diagnostic setting for the resource" - } - }, - { - "name": "Microsoft.DBforPostgreSQL/flexibleServers/read", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "PostgreSQL Server", - "operation": "List/Get PostgreSQL Servers", - "description": "Return the list of servers or gets the properties for the specified server." - } - }, - { - "name": "Microsoft.DBforPostgreSQL/flexibleServers/write", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "PostgreSQL Server", - "operation": "Create/Update PostgreSQL Server", - "description": "Creates a server with the specified parameters or update the properties or tags for the specified server." - } - }, - { - "name": "Microsoft.DBforPostgreSQL/flexibleServers/delete", - "display": { - "provider": "Microsoft DB for PostgreSQL", - "resource": "PostgreSQL Server", - "operation": "Delete PostgreSQL Server", - "description": "Deletes an existing server." - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/recoverableServers?api-version=2017-12-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armpostgresql/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 02:17:16 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11980", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T021717Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "enableGeoRedundantBackup": false, - "enableStorageAutoGrow": false, - "enableInfrastructureEncryption": false - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/replicas?api-version=2017-12-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armpostgresql/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 02:17:17 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11979", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T021717Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/administrators/activeDirectory?api-version=2017-12-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "175", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armpostgresql/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "administratorType": "ActiveDirectory", - "login": "bob@contoso.com", - "sid": "00000000-0000-0000-0000-000000000000", - "tenantId": "00000000-0000-0000-0000-000000000000" - } - }, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/locations/eastus/administratorAzureAsyncOperation/00000000-0000-0000-0000-000000000000?api-version=2017-12-01", - "Cache-Control": "no-cache", - "Content-Length": "89", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 02:17:17 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/locations/eastus/administratorOperationResults/00000000-0000-0000-0000-000000000000?api-version=2017-12-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1194", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T021718Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "operation": "CreateActiveDirectoryAdministrator", - "startTime": "2022-10-12T02:17:18.327Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/locations/eastus/administratorAzureAsyncOperation/00000000-0000-0000-0000-000000000000?api-version=2017-12-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armpostgresql/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 02:17:32 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11978", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T021733Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "Succeeded", - "startTime": "2022-10-12T02:17:18.327Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/administrators/activeDirectory?api-version=2017-12-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armpostgresql/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 02:17:33 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11977", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T021734Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "administratorType": "ActiveDirectory", - "login": "bob@contoso.com", - "sid": "00000000-0000-0000-0000-000000000000", - "tenantId": "00000000-0000-0000-0000-000000000000" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/administrators/activeDirectory", - "name": "activeDirectory", - "type": "PostgreSQL.Server.PAL" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/administrators?api-version=2017-12-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armpostgresql/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 02:17:34 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11976", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T021734Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "properties": { - "administratorType": "ActiveDirectory", - "login": "bob@contoso.com", - "sid": "00000000-0000-0000-0000-000000000000", - "tenantId": "00000000-0000-0000-0000-000000000000" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/administrators/ActiveDirectory", - "name": "ActiveDirectory", - "type": "PostgreSQL.Server.PAL" - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/administrators/activeDirectory?api-version=2017-12-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armpostgresql/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 02:17:34 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11975", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T021735Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "administratorType": "ActiveDirectory", - "login": "bob@contoso.com", - "sid": "00000000-0000-0000-0000-000000000000", - "tenantId": "00000000-0000-0000-0000-000000000000" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/administrators/activeDirectory", - "name": "activeDirectory", - "type": "PostgreSQL.Server.PAL" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/administrators/activeDirectory?api-version=2017-12-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armpostgresql/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/locations/eastus/administratorAzureAsyncOperation/00000000-0000-0000-0000-000000000000?api-version=2017-12-01", - "Cache-Control": "no-cache", - "Content-Length": "87", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 02:17:35 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/locations/eastus/administratorOperationResults/00000000-0000-0000-0000-000000000000?api-version=2017-12-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14997", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T021736Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "operation": "DropActiveDirectoryAdministrator", - "startTime": "2022-10-12T02:17:35.953Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/locations/eastus/administratorAzureAsyncOperation/00000000-0000-0000-0000-000000000000?api-version=2017-12-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armpostgresql/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 02:17:51 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11974", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T021751Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "Succeeded", - "startTime": "2022-10-12T02:17:35.953Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/performanceTiers?api-version=2017-12-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armpostgresql/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 02:17:51 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11973", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T021752Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "Basic", - "serviceLevelObjectives": [ - { - "edition": "Basic", - "vCore": 1, - "hardwareGeneration": "Gen5", - "minStorageMB": 5120, - "maxStorageMB": 1048576, - "minBackupRetentionDays": 7, - "maxBackupRetentionDays": 35, - "id": "B_Gen5_1" - }, - { - "edition": "Basic", - "vCore": 2, - "hardwareGeneration": "Gen5", - "minStorageMB": 5120, - "maxStorageMB": 1048576, - "minBackupRetentionDays": 7, - "maxBackupRetentionDays": 35, - "id": "B_Gen5_2" - } - ], - "minStorageMB": 5120, - "maxStorageMB": 1048576, - "minLargeStorageMB": 0, - "maxLargeStorageMB": 0, - "minBackupRetentionDays": 7, - "maxBackupRetentionDays": 35, - "features": [], - "subscriptionFeatures": [] - }, - { - "id": "GeneralPurpose", - "serviceLevelObjectives": [ - { - "edition": "GeneralPurpose", - "vCore": 2, - "hardwareGeneration": "Gen5", - "minStorageMB": 5120, - "maxStorageMB": 16777216, - "minBackupRetentionDays": 7, - "maxBackupRetentionDays": 35, - "id": "GP_Gen5_2" - }, - { - "edition": "GeneralPurpose", - "vCore": 4, - "hardwareGeneration": "Gen5", - "minStorageMB": 5120, - "maxStorageMB": 16777216, - "minBackupRetentionDays": 7, - "maxBackupRetentionDays": 35, - "id": "GP_Gen5_4" - }, - { - "edition": "GeneralPurpose", - "vCore": 8, - "hardwareGeneration": "Gen5", - "minStorageMB": 5120, - "maxStorageMB": 16777216, - "minBackupRetentionDays": 7, - "maxBackupRetentionDays": 35, - "id": "GP_Gen5_8" - }, - { - "edition": "GeneralPurpose", - "vCore": 16, - "hardwareGeneration": "Gen5", - "minStorageMB": 5120, - "maxStorageMB": 16777216, - "minBackupRetentionDays": 7, - "maxBackupRetentionDays": 35, - "id": "GP_Gen5_16" - }, - { - "edition": "GeneralPurpose", - "vCore": 32, - "hardwareGeneration": "Gen5", - "minStorageMB": 5120, - "maxStorageMB": 16777216, - "minBackupRetentionDays": 7, - "maxBackupRetentionDays": 35, - "id": "GP_Gen5_32" - }, - { - "edition": "GeneralPurpose", - "vCore": 64, - "hardwareGeneration": "Gen5", - "minStorageMB": 5120, - "maxStorageMB": 16777216, - "minBackupRetentionDays": 7, - "maxBackupRetentionDays": 35, - "id": "GP_Gen5_64" - } - ], - "minStorageMB": 5120, - "maxStorageMB": 16777216, - "minLargeStorageMB": 0, - "maxLargeStorageMB": 0, - "minBackupRetentionDays": 7, - "maxBackupRetentionDays": 35, - "features": [], - "subscriptionFeatures": [] - }, - { - "id": "MemoryOptimized", - "serviceLevelObjectives": [ - { - "edition": "MemoryOptimized", - "vCore": 2, - "hardwareGeneration": "Gen5", - "minStorageMB": 5120, - "maxStorageMB": 16777216, - "minBackupRetentionDays": 7, - "maxBackupRetentionDays": 35, - "id": "MO_Gen5_2" - }, - { - "edition": "MemoryOptimized", - "vCore": 4, - "hardwareGeneration": "Gen5", - "minStorageMB": 5120, - "maxStorageMB": 16777216, - "minBackupRetentionDays": 7, - "maxBackupRetentionDays": 35, - "id": "MO_Gen5_4" - }, - { - "edition": "MemoryOptimized", - "vCore": 8, - "hardwareGeneration": "Gen5", - "minStorageMB": 5120, - "maxStorageMB": 16777216, - "minBackupRetentionDays": 7, - "maxBackupRetentionDays": 35, - "id": "MO_Gen5_8" - }, - { - "edition": "MemoryOptimized", - "vCore": 16, - "hardwareGeneration": "Gen5", - "minStorageMB": 5120, - "maxStorageMB": 16777216, - "minBackupRetentionDays": 7, - "maxBackupRetentionDays": 35, - "id": "MO_Gen5_16" - }, - { - "edition": "MemoryOptimized", - "vCore": 32, - "hardwareGeneration": "Gen5", - "minStorageMB": 5120, - "maxStorageMB": 16777216, - "minBackupRetentionDays": 7, - "maxBackupRetentionDays": 35, - "id": "MO_Gen5_32" - } - ], - "minStorageMB": 5120, - "maxStorageMB": 16777216, - "minLargeStorageMB": 0, - "maxLargeStorageMB": 0, - "minBackupRetentionDays": 7, - "maxBackupRetentionDays": 35, - "features": [], - "subscriptionFeatures": [] - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/updateConfigurations?api-version=2017-12-01", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "117", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armpostgresql/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "value": [ - { - "properties": { - "value": "on" - }, - "name": "array_nulls" - }, - { - "properties": { - "value": "on" - }, - "name": "backslash_quote" - } - ] - }, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/00000000-0000-0000-0000-000000000000?api-version=2017-12-01", - "Cache-Control": "no-cache", - "Content-Length": "80", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 02:17:52 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/00000000-0000-0000-0000-000000000000?api-version=2017-12-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T021752Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "operation": "UpdateElasticServerConfig", - "startTime": "2022-10-12T02:17:52.453Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/00000000-0000-0000-0000-000000000000?api-version=2017-12-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armpostgresql/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 02:18:07 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11972", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T021807Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "Succeeded", - "startTime": "2022-10-12T02:17:52.453Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/servers?api-version=2017-12-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armpostgresql/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 02:18:07 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11971", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T021808Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "sku": { - "name": "B_Gen5_2", - "tier": "Basic", - "family": "Gen5", - "capacity": 2 - }, - "properties": { - "administratorLogin": "cloudsa", - "storageProfile": { - "storageMB": 128000, - "backupRetentionDays": 7, - "geoRedundantBackup": "Disabled", - "storageAutogrow": "Disabled" - }, - "version": "9.6", - "sslEnforcement": "Enabled", - "minimalTlsVersion": "TLS1_2", - "userVisibleState": "Ready", - "fullyQualifiedDomainName": "servernamecsc7hv.postgres.database.azure.com", - "earliestRestoreDate": "2022-10-08T09:26:37.497\u002B00:00", - "replicationRole": "", - "masterServerId": "", - "byokEnforcement": "Disabled", - "privateEndpointConnections": [], - "infrastructureEncryption": "Disabled", - "publicNetworkAccess": "Enabled" - }, - "location": "eastus", - "tags": { - "ElasticServer": "1" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/servernamecsc7hv", - "name": "servernamecsc7hv", - "type": "Microsoft.DBforPostgreSQL/servers" - }, - { - "sku": { - "name": "GP_Gen5_8", - "tier": "GeneralPurpose", - "family": "Gen5", - "capacity": 8 - }, - "properties": { - "administratorLogin": "cloudsa", - "storageProfile": { - "storageMB": 128000, - "backupRetentionDays": 7, - "geoRedundantBackup": "Disabled", - "storageAutogrow": "Disabled" - }, - "version": "9.6", - "sslEnforcement": "Enabled", - "minimalTlsVersion": "TLS1_2", - "userVisibleState": "Ready", - "fullyQualifiedDomainName": "pgservers5eh8xn.postgres.database.azure.com", - "earliestRestoreDate": "2022-10-09T07:48:29.727\u002B00:00", - "replicationRole": "", - "masterServerId": "", - "byokEnforcement": "Disabled", - "privateEndpointConnections": [], - "infrastructureEncryption": "Disabled", - "publicNetworkAccess": "Enabled" - }, - "location": "eastus", - "tags": { - "ElasticServer": "1" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgservers5eh8xn", - "name": "pgservers5eh8xn", - "type": "Microsoft.DBforPostgreSQL/servers" - }, - { - "sku": { - "name": "GP_Gen5_8", - "tier": "GeneralPurpose", - "family": "Gen5", - "capacity": 8 - }, - "properties": { - "administratorLogin": "cloudsa", - "storageProfile": { - "storageMB": 128000, - "backupRetentionDays": 7, - "geoRedundantBackup": "Disabled", - "storageAutogrow": "Disabled" - }, - "version": "9.6", - "sslEnforcement": "Enabled", - "minimalTlsVersion": "TLS1_2", - "userVisibleState": "Ready", - "fullyQualifiedDomainName": "pgserversoz6unt.postgres.database.azure.com", - "earliestRestoreDate": "2022-10-09T08:12:59.013\u002B00:00", - "replicationRole": "", - "masterServerId": "", - "byokEnforcement": "Disabled", - "privateEndpointConnections": [], - "infrastructureEncryption": "Disabled", - "publicNetworkAccess": "Enabled" - }, - "location": "eastus", - "tags": { - "ElasticServer": "1" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserversoz6unt", - "name": "pgserversoz6unt", - "type": "Microsoft.DBforPostgreSQL/servers" - }, - { - "sku": { - "name": "GP_Gen5_8", - "tier": "GeneralPurpose", - "family": "Gen5", - "capacity": 8 - }, - "properties": { - "administratorLogin": "cloudsa", - "storageProfile": { - "storageMB": 128000, - "backupRetentionDays": 7, - "geoRedundantBackup": "Disabled", - "storageAutogrow": "Disabled" - }, - "version": "9.6", - "sslEnforcement": "Enabled", - "minimalTlsVersion": "TLS1_2", - "userVisibleState": "Ready", - "fullyQualifiedDomainName": "pgserversohxyml.postgres.database.azure.com", - "earliestRestoreDate": "2022-10-09T08:20:00.347\u002B00:00", - "replicationRole": "", - "masterServerId": "", - "byokEnforcement": "Disabled", - "privateEndpointConnections": [], - "infrastructureEncryption": "Disabled", - "publicNetworkAccess": "Enabled" - }, - "location": "eastus", - "tags": { - "ElasticServer": "1" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserversohxyml", - "name": "pgserversohxyml", - "type": "Microsoft.DBforPostgreSQL/servers" - }, - { - "sku": { - "name": "GP_Gen5_8", - "tier": "GeneralPurpose", - "family": "Gen5", - "capacity": 8 - }, - "properties": { - "administratorLogin": "cloudsa", - "storageProfile": { - "storageMB": 128000, - "backupRetentionDays": 7, - "geoRedundantBackup": "Disabled", - "storageAutogrow": "Disabled" - }, - "version": "9.6", - "sslEnforcement": "Enabled", - "minimalTlsVersion": "TLS1_2", - "userVisibleState": "Ready", - "fullyQualifiedDomainName": "pgserversxoyywh.postgres.database.azure.com", - "earliestRestoreDate": "2022-10-09T08:26:27.687\u002B00:00", - "replicationRole": "", - "masterServerId": "", - "byokEnforcement": "Disabled", - "privateEndpointConnections": [], - "infrastructureEncryption": "Disabled", - "publicNetworkAccess": "Enabled" - }, - "location": "eastus", - "tags": { - "ElasticServer": "1" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserversxoyywh", - "name": "pgserversxoyywh", - "type": "Microsoft.DBforPostgreSQL/servers" - }, - { - "sku": { - "name": "GP_Gen5_8", - "tier": "GeneralPurpose", - "family": "Gen5", - "capacity": 8 - }, - "properties": { - "administratorLogin": "cloudsa", - "storageProfile": { - "storageMB": 128000, - "backupRetentionDays": 7, - "geoRedundantBackup": "Disabled", - "storageAutogrow": "Disabled" - }, - "version": "9.6", - "sslEnforcement": "Enabled", - "minimalTlsVersion": "TLS1_2", - "userVisibleState": "Ready", - "fullyQualifiedDomainName": "pgservershqaj8y.postgres.database.azure.com", - "earliestRestoreDate": "2022-10-09T08:32:55.36\u002B00:00", - "replicationRole": "", - "masterServerId": "", - "byokEnforcement": "Disabled", - "privateEndpointConnections": [], - "infrastructureEncryption": "Disabled", - "publicNetworkAccess": "Enabled" - }, - "location": "eastus", - "tags": { - "ElasticServer": "1" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgservershqaj8y", - "name": "pgservershqaj8y", - "type": "Microsoft.DBforPostgreSQL/servers" - }, - { - "sku": { - "name": "GP_Gen5_8", - "tier": "GeneralPurpose", - "family": "Gen5", - "capacity": 8 - }, - "properties": { - "administratorLogin": "cloudsa", - "storageProfile": { - "storageMB": 128000, - "backupRetentionDays": 7, - "geoRedundantBackup": "Disabled", - "storageAutogrow": "Disabled" - }, - "version": "9.6", - "sslEnforcement": "Enabled", - "minimalTlsVersion": "TLS1_2", - "userVisibleState": "Ready", - "fullyQualifiedDomainName": "pgserversbsgc1k.postgres.database.azure.com", - "earliestRestoreDate": "2022-10-09T08:37:34.41\u002B00:00", - "replicationRole": "", - "masterServerId": "", - "byokEnforcement": "Disabled", - "privateEndpointConnections": [], - "infrastructureEncryption": "Disabled", - "publicNetworkAccess": "Enabled" - }, - "location": "eastus", - "tags": { - "ElasticServer": "1" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserversbsgc1k", - "name": "pgserversbsgc1k", - "type": "Microsoft.DBforPostgreSQL/servers" - }, - { - "sku": { - "name": "GP_Gen5_8", - "tier": "GeneralPurpose", - "family": "Gen5", - "capacity": 8 - }, - "properties": { - "administratorLogin": "cloudsa", - "storageProfile": { - "storageMB": 128000, - "backupRetentionDays": 7, - "geoRedundantBackup": "Disabled", - "storageAutogrow": "Disabled" - }, - "version": "9.6", - "sslEnforcement": "Enabled", - "minimalTlsVersion": "TLS1_2", - "userVisibleState": "Ready", - "fullyQualifiedDomainName": "pgserversoym1cp.postgres.database.azure.com", - "earliestRestoreDate": "2022-10-09T08:41:41.647\u002B00:00", - "replicationRole": "", - "masterServerId": "", - "byokEnforcement": "Disabled", - "privateEndpointConnections": [], - "infrastructureEncryption": "Disabled", - "publicNetworkAccess": "Enabled" - }, - "location": "eastus", - "tags": { - "ElasticServer": "1" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserversoym1cp", - "name": "pgserversoym1cp", - "type": "Microsoft.DBforPostgreSQL/servers" - }, - { - "sku": { - "name": "GP_Gen5_8", - "tier": "GeneralPurpose", - "family": "Gen5", - "capacity": 8 - }, - "properties": { - "administratorLogin": "cloudsa", - "storageProfile": { - "storageMB": 128000, - "backupRetentionDays": 7, - "geoRedundantBackup": "Disabled", - "storageAutogrow": "Disabled" - }, - "version": "9.6", - "sslEnforcement": "Enabled", - "minimalTlsVersion": "TLS1_2", - "userVisibleState": "Ready", - "fullyQualifiedDomainName": "pgserverssnnm5e.postgres.database.azure.com", - "earliestRestoreDate": "2022-10-09T09:02:54.623\u002B00:00", - "replicationRole": "", - "masterServerId": "", - "byokEnforcement": "Disabled", - "privateEndpointConnections": [], - "infrastructureEncryption": "Disabled", - "publicNetworkAccess": "Enabled" - }, - "location": "eastus", - "tags": { - "ElasticServer": "1" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverssnnm5e", - "name": "pgserverssnnm5e", - "type": "Microsoft.DBforPostgreSQL/servers" - }, - { - "sku": { - "name": "GP_Gen5_8", - "tier": "GeneralPurpose", - "family": "Gen5", - "capacity": 8 - }, - "properties": { - "administratorLogin": "cloudsa", - "storageProfile": { - "storageMB": 128000, - "backupRetentionDays": 7, - "geoRedundantBackup": "Disabled", - "storageAutogrow": "Disabled" - }, - "version": "9.6", - "sslEnforcement": "Enabled", - "minimalTlsVersion": "TLS1_2", - "userVisibleState": "Ready", - "fullyQualifiedDomainName": "pgserversffhsen.postgres.database.azure.com", - "earliestRestoreDate": "2022-10-09T09:06:33.05\u002B00:00", - "replicationRole": "", - "masterServerId": "", - "byokEnforcement": "Disabled", - "privateEndpointConnections": [], - "infrastructureEncryption": "Disabled", - "publicNetworkAccess": "Enabled" - }, - "location": "eastus", - "tags": { - "ElasticServer": "1" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserversffhsen", - "name": "pgserversffhsen", - "type": "Microsoft.DBforPostgreSQL/servers" - }, - { - "sku": { - "name": "GP_Gen5_8", - "tier": "GeneralPurpose", - "family": "Gen5", - "capacity": 8 - }, - "properties": { - "administratorLogin": "cloudsa", - "storageProfile": { - "storageMB": 128000, - "backupRetentionDays": 7, - "geoRedundantBackup": "Disabled", - "storageAutogrow": "Disabled" - }, - "version": "9.6", - "sslEnforcement": "Enabled", - "minimalTlsVersion": "TLS1_2", - "userVisibleState": "Ready", - "fullyQualifiedDomainName": "pgserversjowbyx.postgres.database.azure.com", - "earliestRestoreDate": "2022-10-09T09:10:21.66\u002B00:00", - "replicationRole": "", - "masterServerId": "", - "byokEnforcement": "Disabled", - "privateEndpointConnections": [], - "infrastructureEncryption": "Disabled", - "publicNetworkAccess": "Enabled" - }, - "location": "eastus", - "tags": { - "ElasticServer": "1" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserversjowbyx", - "name": "pgserversjowbyx", - "type": "Microsoft.DBforPostgreSQL/servers" - }, - { - "sku": { - "name": "GP_Gen5_8", - "tier": "GeneralPurpose", - "family": "Gen5", - "capacity": 8 - }, - "properties": { - "administratorLogin": "cloudsa", - "storageProfile": { - "storageMB": 128000, - "backupRetentionDays": 7, - "geoRedundantBackup": "Disabled", - "storageAutogrow": "Disabled" - }, - "version": "9.6", - "sslEnforcement": "Enabled", - "minimalTlsVersion": "TLS1_2", - "userVisibleState": "Ready", - "fullyQualifiedDomainName": "pgservers9iuqke.postgres.database.azure.com", - "earliestRestoreDate": "2022-10-09T09:13:57.96\u002B00:00", - "replicationRole": "", - "masterServerId": "", - "byokEnforcement": "Disabled", - "privateEndpointConnections": [], - "infrastructureEncryption": "Disabled", - "publicNetworkAccess": "Enabled" - }, - "location": "eastus", - "tags": { - "ElasticServer": "1" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgservers9iuqke", - "name": "pgservers9iuqke", - "type": "Microsoft.DBforPostgreSQL/servers" - }, - { - "sku": { - "name": "GP_Gen5_8", - "tier": "GeneralPurpose", - "family": "Gen5", - "capacity": 8 - }, - "properties": { - "administratorLogin": "cloudsa", - "storageProfile": { - "storageMB": 128000, - "backupRetentionDays": 7, - "geoRedundantBackup": "Disabled", - "storageAutogrow": "Disabled" - }, - "version": "9.6", - "sslEnforcement": "Enabled", - "minimalTlsVersion": "TLS1_2", - "userVisibleState": "Ready", - "fullyQualifiedDomainName": "pgserverst9omnj.postgres.database.azure.com", - "earliestRestoreDate": "2022-10-12T02:23:39.027\u002B00:00", - "replicationRole": "", - "masterServerId": "", - "byokEnforcement": "Disabled", - "privateEndpointConnections": [], - "infrastructureEncryption": "Disabled", - "publicNetworkAccess": "Enabled" - }, - "location": "eastus", - "tags": { - "ElasticServer": "1" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omnj", - "name": "pgserverst9omnj", - "type": "Microsoft.DBforPostgreSQL/servers" - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers?api-version=2017-12-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armpostgresql/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 02:18:08 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11970", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T021808Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "sku": { - "name": "GP_Gen5_8", - "tier": "GeneralPurpose", - "family": "Gen5", - "capacity": 8 - }, - "properties": { - "administratorLogin": "cloudsa", - "storageProfile": { - "storageMB": 128000, - "backupRetentionDays": 7, - "geoRedundantBackup": "Disabled", - "storageAutogrow": "Disabled" - }, - "version": "9.6", - "sslEnforcement": "Enabled", - "minimalTlsVersion": "TLS1_2", - "userVisibleState": "Ready", - "fullyQualifiedDomainName": "pgserverst9omnj.postgres.database.azure.com", - "earliestRestoreDate": "2022-10-12T02:23:39.027\u002B00:00", - "replicationRole": "", - "masterServerId": "", - "byokEnforcement": "Disabled", - "privateEndpointConnections": [], - "infrastructureEncryption": "Disabled", - "publicNetworkAccess": "Enabled" - }, - "location": "eastus", - "tags": { - "ElasticServer": "1" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omnj", - "name": "pgserverst9omnj", - "type": "Microsoft.DBforPostgreSQL/servers" - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ?api-version=2017-12-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armpostgresql/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 02:18:08 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11969", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T021809Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "sku": { - "name": "GP_Gen5_8", - "tier": "GeneralPurpose", - "family": "Gen5", - "capacity": 8 - }, - "properties": { - "administratorLogin": "cloudsa", - "storageProfile": { - "storageMB": 128000, - "backupRetentionDays": 7, - "geoRedundantBackup": "Disabled", - "storageAutogrow": "Disabled" - }, - "version": "9.6", - "sslEnforcement": "Enabled", - "minimalTlsVersion": "TLS1_2", - "userVisibleState": "Ready", - "fullyQualifiedDomainName": "pgserverst9omnj.postgres.database.azure.com", - "earliestRestoreDate": "2022-10-12T02:23:39.027\u002B00:00", - "replicationRole": "None", - "masterServerId": "", - "replicaCapacity": 5, - "byokEnforcement": "Disabled", - "privateEndpointConnections": [], - "infrastructureEncryption": "Disabled", - "publicNetworkAccess": "Enabled" - }, - "location": "eastus", - "tags": { - "ElasticServer": "1" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omnj", - "name": "pgserverst9omnj", - "type": "Microsoft.DBforPostgreSQL/servers" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ?api-version=2017-12-01", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "117", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armpostgresql/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "administratorLoginPassword": "000000000000", - "minimalTlsVersion": "TLS1_2", - "sslEnforcement": "Enabled" - } - }, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/00000000-0000-0000-0000-000000000000?api-version=2017-12-01", - "Cache-Control": "no-cache", - "Content-Length": "74", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 02:18:10 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/00000000-0000-0000-0000-000000000000?api-version=2017-12-01", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1193", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T021810Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "operation": "UpsertElasticServer", - "startTime": "2022-10-12T02:18:09.547Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/00000000-0000-0000-0000-000000000000?api-version=2017-12-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armpostgresql/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 02:19:11 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "60", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11968", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T021911Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "Succeeded", - "startTime": "2022-10-12T02:18:09.547Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ?api-version=2017-12-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armpostgresql/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 02:19:12 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11967", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T021912Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "sku": { - "name": "GP_Gen5_8", - "tier": "GeneralPurpose", - "family": "Gen5", - "capacity": 8 - }, - "properties": { - "administratorLogin": "cloudsa", - "storageProfile": { - "storageMB": 128000, - "backupRetentionDays": 7, - "geoRedundantBackup": "Disabled", - "storageAutogrow": "Disabled" - }, - "version": "9.6", - "sslEnforcement": "Enabled", - "minimalTlsVersion": "TLS1_2", - "userVisibleState": "Ready", - "fullyQualifiedDomainName": "pgserverst9omnj.postgres.database.azure.com", - "earliestRestoreDate": "2022-10-12T02:23:39.027\u002B00:00", - "replicationRole": "None", - "masterServerId": "", - "replicaCapacity": 5, - "byokEnforcement": "Disabled", - "privateEndpointConnections": [], - "infrastructureEncryption": "Disabled", - "publicNetworkAccess": "Enabled" - }, - "location": "eastus", - "tags": { - "ElasticServer": "1" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omnj", - "name": "pgserverst9omnj", - "type": "Microsoft.DBforPostgreSQL/servers" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/restart?api-version=2017-12-01", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armpostgresql/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/00000000-0000-0000-0000-000000000000?api-version=2017-12-01", - "Cache-Control": "no-cache", - "Content-Length": "75", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 02:19:13 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/00000000-0000-0000-0000-000000000000?api-version=2017-12-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1197", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T021913Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "operation": "RestartElasticServer", - "startTime": "2022-10-12T02:19:13.033Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/00000000-0000-0000-0000-000000000000?api-version=2017-12-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armpostgresql/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 02:19:28 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11966", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T021928Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-10-12T02:19:13.033Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/00000000-0000-0000-0000-000000000000?api-version=2017-12-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armpostgresql/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 02:19:43 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11965", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T021943Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-10-12T02:19:13.033Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/00000000-0000-0000-0000-000000000000?api-version=2017-12-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armpostgresql/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 02:19:59 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11964", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T021959Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-10-12T02:19:13.033Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/00000000-0000-0000-0000-000000000000?api-version=2017-12-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armpostgresql/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 02:20:14 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11963", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T022014Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-10-12T02:19:13.033Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/00000000-0000-0000-0000-000000000000?api-version=2017-12-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armpostgresql/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 02:20:29 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11962", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T022029Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-10-12T02:19:13.033Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/00000000-0000-0000-0000-000000000000?api-version=2017-12-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armpostgresql/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 02:20:45 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11961", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T022045Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-10-12T02:19:13.033Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/00000000-0000-0000-0000-000000000000?api-version=2017-12-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armpostgresql/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 02:21:00 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11960", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T022100Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-10-12T02:19:13.033Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/00000000-0000-0000-0000-000000000000?api-version=2017-12-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armpostgresql/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 02:21:15 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11959", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T022115Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-10-12T02:19:13.033Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/00000000-0000-0000-0000-000000000000?api-version=2017-12-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armpostgresql/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 02:21:30 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11958", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T022131Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-10-12T02:19:13.033Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/00000000-0000-0000-0000-000000000000?api-version=2017-12-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armpostgresql/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 02:21:46 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11957", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T022146Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-10-12T02:19:13.033Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/00000000-0000-0000-0000-000000000000?api-version=2017-12-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armpostgresql/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 02:22:01 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11956", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T022202Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-10-12T02:19:13.033Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/00000000-0000-0000-0000-000000000000?api-version=2017-12-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armpostgresql/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 02:22:17 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11955", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T022217Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-10-12T02:19:13.033Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/00000000-0000-0000-0000-000000000000?api-version=2017-12-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armpostgresql/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 02:22:32 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11954", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T022232Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-10-12T02:19:13.033Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/00000000-0000-0000-0000-000000000000?api-version=2017-12-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armpostgresql/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 02:22:47 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11953", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T022248Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-10-12T02:19:13.033Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/00000000-0000-0000-0000-000000000000?api-version=2017-12-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armpostgresql/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 02:23:03 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11952", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T022303Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": "2022-10-12T02:19:13.033Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/00000000-0000-0000-0000-000000000000?api-version=2017-12-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armpostgresql/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 02:23:18 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11951", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T022318Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "Succeeded", - "startTime": "2022-10-12T02:19:13.033Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/00000000-0000-0000-0000-000000000000?api-version=2017-12-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armpostgresql/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Wed, 12 Oct 2022 02:23:18 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11950", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T022319Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/VirtualNetwork_Create?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "917", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "mode": "Incremental", - "parameters": { - "location": { - "value": "eastus" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "outputs": { - "subnetId": { - "type": "string", - "value": "[resourceId(\u0027Microsoft.Network/virtualNetworks/subnets\u0027, parameters(\u0027virtualNetworksName\u0027), parameters(\u0027subnetName\u0027))]" - } - }, - "parameters": { - "location": { - "defaultValue": "$(location)", - "type": "string" - }, - "subnetName": { - "defaultValue": "pgsubnet", - "type": "string" - }, - "virtualNetworksName": { - "defaultValue": "pgvnet", - "type": "string" - } - }, - "resources": [ - { - "apiVersion": "2021-05-01", - "location": "[parameters(\u0027location\u0027)]", - "name": "[parameters(\u0027virtualNetworksName\u0027)]", - "properties": { - "addressSpace": { - "addressPrefixes": [ - "10.0.0.0/16" - ] - }, - "subnets": [ - { - "name": "[parameters(\u0027subnetName\u0027)]", - "properties": { - "addressPrefix": "10.0.0.0/24" - } - } - ] - }, - "tags": {}, - "type": "Microsoft.Network/virtualNetworks" - } - ] - } - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/VirtualNetwork_Create/operationStatuses/08585360654839932408?api-version=2021-04-01", - "Cache-Control": "no-cache", - "Content-Length": "761", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 02:23:23 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1192", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T022324Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/VirtualNetwork_Create", - "name": "VirtualNetwork_Create", - "type": "Microsoft.Resources/deployments", - "properties": { - "templateHash": "6525787564160488293", - "parameters": { - "location": { - "type": "String", - "value": "eastus" - }, - "subnetName": { - "type": "String", - "value": "pgsubnet" - }, - "virtualNetworksName": { - "type": "String", - "value": "pgvnet" - } - }, - "mode": "Incremental", - "provisioningState": "Accepted", - "timestamp": "2022-10-12T02:23:23.49904Z", - "duration": "PT0.000103S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Network", - "resourceTypes": [ - { - "resourceType": "virtualNetworks", - "locations": [ - "eastus" - ] - } - ] - } - ], - "dependencies": [] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/VirtualNetwork_Create/operationStatuses/08585360654839932408?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "20", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 02:23:24 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11949", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T022324Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/VirtualNetwork_Create/operationStatuses/08585360654839932408?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "22", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 02:23:54 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11948", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T022355Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/VirtualNetwork_Create?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "1129", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 02:23:55 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11947", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T022355Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/VirtualNetwork_Create", - "name": "VirtualNetwork_Create", - "type": "Microsoft.Resources/deployments", - "properties": { - "templateHash": "6525787564160488293", - "parameters": { - "location": { - "type": "String", - "value": "eastus" - }, - "subnetName": { - "type": "String", - "value": "pgsubnet" - }, - "virtualNetworksName": { - "type": "String", - "value": "pgvnet" - } - }, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2022-10-12T02:23:36.6519195Z", - "duration": "PT13.1529825S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Network", - "resourceTypes": [ - { - "resourceType": "virtualNetworks", - "locations": [ - "eastus" - ] - } - ] - } - ], - "dependencies": [], - "outputs": { - "subnetId": { - "type": "String", - "value": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/pgvnet/subnets/pgsubnet" - } - }, - "outputResources": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/pgvnet" - } - ] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/virtualNetworkRules/vnet-firewall-rule?api-version=2017-12-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "233", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armpostgresql/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "virtualNetworkSubnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/pgvnet/subnets/pgsubnet", - "ignoreMissingVnetServiceEndpoint": true - } - }, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/00000000-0000-0000-0000-000000000000?api-version=2017-12-01", - "Cache-Control": "no-cache", - "Content-Length": "89", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 02:23:57 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/00000000-0000-0000-0000-000000000000?api-version=2017-12-01", - "Pragma": "no-cache", - "Retry-After": "30", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1191", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T022357Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "operation": "UpsertElasticServerVnetFirewallRule", - "startTime": "2022-10-12T02:23:56.38Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/00000000-0000-0000-0000-000000000000?api-version=2017-12-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armpostgresql/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 02:24:27 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "30", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11946", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T022428Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "Succeeded", - "startTime": "2022-10-12T02:23:56.38Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/virtualNetworkRules/vnet-firewall-rule?api-version=2017-12-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armpostgresql/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 02:24:28 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11945", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T022429Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "virtualNetworkSubnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/pgvnet/subnets/pgsubnet", - "ignoreMissingVnetServiceEndpoint": true, - "state": "Ready" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omnj/virtualNetworkRules/vnet-firewall-rule", - "name": "vnet-firewall-rule", - "type": "Microsoft.DBforPostgreSQL/servers/virtualNetworkRules" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/virtualNetworkRules?api-version=2017-12-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armpostgresql/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 02:24:28 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11944", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T022429Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "properties": { - "virtualNetworkSubnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/pgvnet/subnets/pgsubnet", - "ignoreMissingVnetServiceEndpoint": true, - "state": "Ready" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omnj/virtualNetworkRules/vnet-firewall-rule", - "name": "vnet-firewall-rule", - "type": "Microsoft.DBforPostgreSQL/servers/virtualNetworkRules" - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/virtualNetworkRules/vnet-firewall-rule?api-version=2017-12-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armpostgresql/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 02:24:30 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11943", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T022430Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "virtualNetworkSubnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/pgvnet/subnets/pgsubnet", - "ignoreMissingVnetServiceEndpoint": true, - "state": "Ready" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omnj/virtualNetworkRules/vnet-firewall-rule", - "name": "vnet-firewall-rule", - "type": "Microsoft.DBforPostgreSQL/servers/virtualNetworkRules" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ/virtualNetworkRules/vnet-firewall-rule?api-version=2017-12-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armpostgresql/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/00000000-0000-0000-0000-000000000000?api-version=2017-12-01", - "Cache-Control": "no-cache", - "Content-Length": "87", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 02:24:32 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/00000000-0000-0000-0000-000000000000?api-version=2017-12-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14996", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T022432Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "operation": "DropElasticServerVnetFirewallRule", - "startTime": "2022-10-12T02:24:30.93Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/00000000-0000-0000-0000-000000000000?api-version=2017-12-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armpostgresql/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 02:24:47 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11942", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T022447Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "Succeeded", - "startTime": "2022-10-12T02:24:30.93Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.DBforPostgreSQL/servers/pgserverst9omNJ?api-version=2017-12-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armpostgresql/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/00000000-0000-0000-0000-000000000000?api-version=2017-12-01", - "Cache-Control": "no-cache", - "Content-Length": "71", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 02:24:47 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/eastus/operationResults/00000000-0000-0000-0000-000000000000?api-version=2017-12-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14995", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T022448Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "operation": "DropElasticServer", - "startTime": "2022-10-12T02:24:48.04Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DBforPostgreSQL/locations/eastus/azureAsyncOperation/00000000-0000-0000-0000-000000000000?api-version=2017-12-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armpostgresql/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 12 Oct 2022 02:25:02 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "15", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11941", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T022503Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "00000000-0000-0000-0000-000000000000", - "status": "Succeeded", - "startTime": "2022-10-12T02:24:48.04Z" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Wed, 12 Oct 2022 02:25:05 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ4MzItRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14994", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "KOREASOUTH:20221012T022506Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": { - "recordingRandomSeed": "1665540809" - } -} diff --git a/sdk/resourcemanager/privatedns/armprivatedns/assets.json b/sdk/resourcemanager/privatedns/armprivatedns/assets.json new file mode 100644 index 000000000000..df1ba6bf8518 --- /dev/null +++ b/sdk/resourcemanager/privatedns/armprivatedns/assets.json @@ -0,0 +1,6 @@ +{ + "AssetsRepo": "Azure/azure-sdk-assets", + "AssetsRepoPrefixPath": "go", + "TagPrefix": "go/resourcemanager/privatedns/armprivatedns", + "Tag": "go/resourcemanager/privatedns/armprivatedns_329737d335" +} diff --git a/sdk/resourcemanager/privatedns/armprivatedns/go.mod b/sdk/resourcemanager/privatedns/armprivatedns/go.mod index 912a84a9f72c..f9f46134772a 100644 --- a/sdk/resourcemanager/privatedns/armprivatedns/go.mod +++ b/sdk/resourcemanager/privatedns/armprivatedns/go.mod @@ -3,27 +3,27 @@ module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/privatedns/armpriva go 1.18 require ( - github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.0 - github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.0.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.0.1 + github.com/Azure/azure-sdk-for-go/sdk/azcore v1.4.0 + github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.2 github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0 github.com/stretchr/testify v1.7.0 ) require ( - 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/Azure/azure-sdk-for-go/sdk/internal v1.2.0 // indirect + github.com/AzureAD/microsoft-authentication-library-for-go v0.7.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/dnaeon/go-vcr v1.1.0 // indirect - github.com/golang-jwt/jwt v3.2.1+incompatible // indirect + github.com/golang-jwt/jwt/v4 v4.4.2 // 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 github.com/pmezard/go-difflib v1.0.0 // 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 + golang.org/x/net v0.7.0 // indirect + golang.org/x/sys v0.5.0 // indirect + golang.org/x/text v0.7.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect ) diff --git a/sdk/resourcemanager/privatedns/armprivatedns/go.sum b/sdk/resourcemanager/privatedns/armprivatedns/go.sum index 3e5260df6bcf..b0f97586a165 100644 --- a/sdk/resourcemanager/privatedns/armprivatedns/go.sum +++ b/sdk/resourcemanager/privatedns/armprivatedns/go.sum @@ -1,29 +1,27 @@ -github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.0 h1:Ut0ZGdOwJDw0npYEg+TLlPls3Pq6JiZaP2/aGKir7Zw= -github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.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/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.0.1 h1:PjaOv8mMe6Mvqi41t1s+4B/BmX9wf9KmMQTIgeQfQ+c= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.0.1/go.mod h1:TSPEzbGHEgqFa3kUn09SpCrfKNbj7+mMulU/72Vg84E= +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.0 h1:t/W5MYAuQy81cvM8VUNfRLzhtKpXhVUAN7Cd7KVbTyc= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.0/go.mod h1:NBanQUfSWiWn3QEpWDTCU0IjBECKOYvl2R8xdRtMtiM= +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/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.2 h1:mLY+pNLjCUeKhgnAJWAKhEUQM+RJQo2H1fuGSw1Ky1E= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.2/go.mod h1:FbdwsQ2EzwvXxOPcMFYO8ogEc9uMMIj3YkmCdXdAFmk= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0 h1:ECsQtyERDVz3NP3kvDOTLvbQhqWp/x9EsGKtb4ogUr8= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0/go.mod h1:s1tW/At+xHqjNFvWU4G0c0Qv33KOhvbGNj0RCTQDV8s= -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/AzureAD/microsoft-authentication-library-for-go v0.7.0 h1:VgSJlZH5u0k2qxSpqyghcFQKmvYckj46uymKK5XzkBM= +github.com/AzureAD/microsoft-authentication-library-for-go v0.7.0/go.mod h1:BDJ5qMFKx9DugEg3+uQSDCdbYPr5s9vBTrL9P8TpqOU= 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/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 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= +github.com/golang-jwt/jwt/v4 v4.4.2 h1:rcc4lwaZgFMCZ5jxF9ABolDcIHdBytAFgqFPbSJQAYs= +github.com/golang-jwt/jwt/v4 v4.4.2/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= 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= @@ -33,13 +31,12 @@ github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5Cc github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= 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-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/net v0.7.0 h1:rJrUqqhjsgNp7KqAIc25s9pZnjU7TUcSY7HcVZjdn1g= +golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= +golang.org/x/sys v0.5.0 h1:MUK/U/4lj1t1oPg0HfuXDN/Z1wv31ZJ/YcPiGccS4DU= +golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/text v0.7.0 h1:4BRB4x83lYWy72KwLD/qYDuTu7q9PjSagHvijDw7cLo= +golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= 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= diff --git a/sdk/resourcemanager/privatedns/armprivatedns/testdata/recordings/TestPrivatednsTestSuite.json b/sdk/resourcemanager/privatedns/armprivatedns/testdata/recordings/TestPrivatednsTestSuite.json deleted file mode 100644 index 47ec4cdf93f9..000000000000 --- a/sdk/resourcemanager/privatedns/armprivatedns/testdata/recordings/TestPrivatednsTestSuite.json +++ /dev/null @@ -1,1466 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "eastus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 11 Oct 2022 07:29:28 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221011T072929Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "eastus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateDnsZones/scenario_privatezone.com?api-version=2020-06-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armprivatedns/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "Global" - }, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateDnsOperationStatuses/RnJvbnRFbmRBc3luY09wZXJhdGlvbjtVcHNlcnRQcml2YXRlRG5zWm9uZTs0YmUxNGQ3ZS1iODM4LTQ4NWItYmIxNy1iOGM5MWUzYTY2MjZfOTJmOTVkOGYtM2M2Ny00MTI0LTkxYzctOGNmMDdjZGJmMjQx?api-version=2020-06-01", - "Cache-Control": "private", - "Content-Length": "2", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 11 Oct 2022 07:29:34 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateDnsOperationResults/RnJvbnRFbmRBc3luY09wZXJhdGlvbjtVcHNlcnRQcml2YXRlRG5zWm9uZTs0YmUxNGQ3ZS1iODM4LTQ4NWItYmIxNy1iOGM5MWUzYTY2MjZfOTJmOTVkOGYtM2M2Ny00MTI0LTkxYzctOGNmMDdjZGJmMjQx?api-version=2020-06-01", - "Retry-After": "30", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-AspNet-Version": "4.0.30319", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "11999", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221011T072934Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": {} - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateDnsOperationStatuses/RnJvbnRFbmRBc3luY09wZXJhdGlvbjtVcHNlcnRQcml2YXRlRG5zWm9uZTs0YmUxNGQ3ZS1iODM4LTQ4NWItYmIxNy1iOGM5MWUzYTY2MjZfOTJmOTVkOGYtM2M2Ny00MTI0LTkxYzctOGNmMDdjZGJmMjQx?api-version=2020-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armprivatedns/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "private", - "Content-Length": "22", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 11 Oct 2022 07:30:04 GMT", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-AspNet-Version": "4.0.30319", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "499", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221011T073005Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateDnsZones/scenario_privatezone.com?api-version=2020-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armprivatedns/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "private", - "Content-Length": "678", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 11 Oct 2022 07:30:05 GMT", - "ETag": "00000000-0000-0000-0000-000000000000", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-AspNet-Version": "4.0.30319", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "499", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221011T073005Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateDnsZones/scenario_privatezone.com", - "name": "scenario_privatezone.com", - "type": "Microsoft.Network/privateDnsZones", - "etag": "00000000-0000-0000-0000-000000000000", - "location": "global", - "properties": { - "internalId": "SW1tdXRhYmxlWm9uZUlkZW50aXR5OzJhYWQ5NGNmLWUyNzAtNDg1OS04ZmQ0LWU5OTM0YjM1NWQ3OTsw", - "maxNumberOfRecordSets": 25000, - "maxNumberOfVirtualNetworkLinks": 1000, - "maxNumberOfVirtualNetworkLinksWithRegistration": 100, - "numberOfRecordSets": 1, - "numberOfVirtualNetworkLinks": 0, - "numberOfVirtualNetworkLinksWithRegistration": 0, - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateDnsZones/scenario_privatezone.com?api-version=2020-06-01", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "26", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armprivatedns/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "tags": { - "key2": "value2" - } - }, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateDnsOperationStatuses/RnJvbnRFbmRBc3luY09wZXJhdGlvbjtVcHNlcnRQcml2YXRlRG5zWm9uZTthODBjZmM0My05MzU1LTRjY2YtYTdiYi01YzMxZjI0YTg4ODBfOTJmOTVkOGYtM2M2Ny00MTI0LTkxYzctOGNmMDdjZGJmMjQx?api-version=2020-06-01", - "Cache-Control": "private", - "Content-Length": "2", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 11 Oct 2022 07:30:07 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateDnsOperationResults/RnJvbnRFbmRBc3luY09wZXJhdGlvbjtVcHNlcnRQcml2YXRlRG5zWm9uZTthODBjZmM0My05MzU1LTRjY2YtYTdiYi01YzMxZjI0YTg4ODBfOTJmOTVkOGYtM2M2Ny00MTI0LTkxYzctOGNmMDdjZGJmMjQx?api-version=2020-06-01", - "Retry-After": "30", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-AspNet-Version": "4.0.30319", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "11998", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221011T073008Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": {} - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateDnsOperationStatuses/RnJvbnRFbmRBc3luY09wZXJhdGlvbjtVcHNlcnRQcml2YXRlRG5zWm9uZTthODBjZmM0My05MzU1LTRjY2YtYTdiYi01YzMxZjI0YTg4ODBfOTJmOTVkOGYtM2M2Ny00MTI0LTkxYzctOGNmMDdjZGJmMjQx?api-version=2020-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armprivatedns/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "private", - "Content-Length": "22", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 11 Oct 2022 07:30:37 GMT", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-AspNet-Version": "4.0.30319", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "498", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221011T073038Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateDnsZones/scenario_privatezone.com?api-version=2020-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armprivatedns/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "private", - "Content-Length": "703", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 11 Oct 2022 07:30:38 GMT", - "ETag": "00000000-0000-0000-0000-000000000000", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-AspNet-Version": "4.0.30319", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "498", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221011T073039Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateDnsZones/scenario_privatezone.com", - "name": "scenario_privatezone.com", - "type": "Microsoft.Network/privateDnsZones", - "etag": "00000000-0000-0000-0000-000000000000", - "location": "global", - "tags": { - "key2": "value2" - }, - "properties": { - "internalId": "SW1tdXRhYmxlWm9uZUlkZW50aXR5OzJhYWQ5NGNmLWUyNzAtNDg1OS04ZmQ0LWU5OTM0YjM1NWQ3OTsw", - "maxNumberOfRecordSets": 25000, - "maxNumberOfVirtualNetworkLinks": 1000, - "maxNumberOfVirtualNetworkLinksWithRegistration": 100, - "numberOfRecordSets": 1, - "numberOfVirtualNetworkLinks": 0, - "numberOfVirtualNetworkLinksWithRegistration": 0, - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateDnsZones/scenario_privatezone.com?api-version=2020-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armprivatedns/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "private", - "Content-Length": "703", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 11 Oct 2022 07:30:39 GMT", - "ETag": "00000000-0000-0000-0000-000000000000", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-AspNet-Version": "4.0.30319", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "497", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221011T073040Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateDnsZones/scenario_privatezone.com", - "name": "scenario_privatezone.com", - "type": "Microsoft.Network/privateDnsZones", - "etag": "00000000-0000-0000-0000-000000000000", - "location": "global", - "tags": { - "key2": "value2" - }, - "properties": { - "internalId": "SW1tdXRhYmxlWm9uZUlkZW50aXR5OzJhYWQ5NGNmLWUyNzAtNDg1OS04ZmQ0LWU5OTM0YjM1NWQ3OTsw", - "maxNumberOfRecordSets": 25000, - "maxNumberOfVirtualNetworkLinks": 1000, - "maxNumberOfVirtualNetworkLinksWithRegistration": 100, - "numberOfRecordSets": 1, - "numberOfVirtualNetworkLinks": 0, - "numberOfVirtualNetworkLinksWithRegistration": 0, - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/privateDnsZones?api-version=2020-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armprivatedns/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "private", - "Content-Length": "715", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 11 Oct 2022 07:30:39 GMT", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-AspNet-Version": "4.0.30319", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-entities-read": "59999", - "x-ms-ratelimit-remaining-subscription-resource-requests": "496", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221011T073040Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateDnsZones/scenario_privatezone.com", - "name": "scenario_privatezone.com", - "type": "Microsoft.Network/privateDnsZones", - "etag": "00000000-0000-0000-0000-000000000000", - "location": "global", - "tags": { - "key2": "value2" - }, - "properties": { - "internalId": "SW1tdXRhYmxlWm9uZUlkZW50aXR5OzJhYWQ5NGNmLWUyNzAtNDg1OS04ZmQ0LWU5OTM0YjM1NWQ3OTsw", - "maxNumberOfRecordSets": 25000, - "maxNumberOfVirtualNetworkLinks": 1000, - "maxNumberOfVirtualNetworkLinksWithRegistration": 100, - "numberOfRecordSets": 1, - "numberOfVirtualNetworkLinks": 0, - "numberOfVirtualNetworkLinksWithRegistration": 0, - "provisioningState": "Succeeded" - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateDnsZones?api-version=2020-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armprivatedns/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "private", - "Content-Length": "715", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 11 Oct 2022 07:30:40 GMT", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-AspNet-Version": "4.0.30319", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-entities-read": "59998", - "x-ms-ratelimit-remaining-subscription-resource-requests": "495", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221011T073041Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateDnsZones/scenario_privatezone.com", - "name": "scenario_privatezone.com", - "type": "Microsoft.Network/privateDnsZones", - "etag": "00000000-0000-0000-0000-000000000000", - "location": "global", - "tags": { - "key2": "value2" - }, - "properties": { - "internalId": "SW1tdXRhYmxlWm9uZUlkZW50aXR5OzJhYWQ5NGNmLWUyNzAtNDg1OS04ZmQ0LWU5OTM0YjM1NWQ3OTsw", - "maxNumberOfRecordSets": 25000, - "maxNumberOfVirtualNetworkLinks": 1000, - "maxNumberOfVirtualNetworkLinksWithRegistration": 100, - "numberOfRecordSets": 1, - "numberOfVirtualNetworkLinks": 0, - "numberOfVirtualNetworkLinksWithRegistration": 0, - "provisioningState": "Succeeded" - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateDnsZones/scenario_privatezone.com/A/scenario_recordset?api-version=2020-06-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "95", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armprivatedns/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "aRecords": [ - { - "ipv4Address": "1.2.3.4" - } - ], - "metadata": { - "key1": "value1" - }, - "ttl": 3600 - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "private", - "Content-Length": "484", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 11 Oct 2022 07:30:42 GMT", - "ETag": "00000000-0000-0000-0000-000000000000", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-AspNet-Version": "4.0.30319", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "11999", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221011T073043Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateDnsZones/scenario_privatezone.com/A/scenario_recordset", - "name": "scenario_recordset", - "type": "Microsoft.Network/privateDnsZones/A", - "etag": "00000000-0000-0000-0000-000000000000", - "properties": { - "metadata": { - "key1": "value1" - }, - "fqdn": "scenario_recordset.scenario_privatezone.com.", - "ttl": 3600, - "aRecords": [ - { - "ipv4Address": "1.2.3.4" - } - ], - "isAutoRegistered": false - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateDnsZones/scenario_privatezone.com/A/scenario_recordset?api-version=2020-06-01", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "45", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armprivatedns/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "metadata": { - "key2": "value2" - } - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "private", - "Content-Length": "484", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 11 Oct 2022 07:30:44 GMT", - "ETag": "00000000-0000-0000-0000-000000000000", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-AspNet-Version": "4.0.30319", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "11998", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221011T073045Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateDnsZones/scenario_privatezone.com/A/scenario_recordset", - "name": "scenario_recordset", - "type": "Microsoft.Network/privateDnsZones/A", - "etag": "00000000-0000-0000-0000-000000000000", - "properties": { - "metadata": { - "key2": "value2" - }, - "fqdn": "scenario_recordset.scenario_privatezone.com.", - "ttl": 3600, - "aRecords": [ - { - "ipv4Address": "1.2.3.4" - } - ], - "isAutoRegistered": false - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateDnsZones/scenario_privatezone.com/A/scenario_recordset?api-version=2020-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armprivatedns/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "private", - "Content-Length": "484", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 11 Oct 2022 07:30:46 GMT", - "ETag": "00000000-0000-0000-0000-000000000000", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-AspNet-Version": "4.0.30319", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "499", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221011T073046Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateDnsZones/scenario_privatezone.com/A/scenario_recordset", - "name": "scenario_recordset", - "type": "Microsoft.Network/privateDnsZones/A", - "etag": "00000000-0000-0000-0000-000000000000", - "properties": { - "metadata": { - "key2": "value2" - }, - "fqdn": "scenario_recordset.scenario_privatezone.com.", - "ttl": 3600, - "aRecords": [ - { - "ipv4Address": "1.2.3.4" - } - ], - "isAutoRegistered": false - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateDnsZones/scenario_privatezone.com/A?api-version=2020-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armprivatedns/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "private", - "Content-Length": "496", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 11 Oct 2022 07:30:46 GMT", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-AspNet-Version": "4.0.30319", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-entities-read": "59999", - "x-ms-ratelimit-remaining-subscription-resource-requests": "498", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221011T073046Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateDnsZones/scenario_privatezone.com/A/scenario_recordset", - "name": "scenario_recordset", - "type": "Microsoft.Network/privateDnsZones/A", - "etag": "00000000-0000-0000-0000-000000000000", - "properties": { - "metadata": { - "key2": "value2" - }, - "fqdn": "scenario_recordset.scenario_privatezone.com.", - "ttl": 3600, - "aRecords": [ - { - "ipv4Address": "1.2.3.4" - } - ], - "isAutoRegistered": false - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateDnsZones/scenario_privatezone.com/ALL?api-version=2020-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armprivatedns/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "private", - "Content-Length": "1041", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 11 Oct 2022 07:30:48 GMT", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-AspNet-Version": "4.0.30319", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-entities-read": "59998", - "x-ms-ratelimit-remaining-subscription-resource-requests": "499", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221011T073048Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateDnsZones/scenario_privatezone.com/SOA/@", - "name": "@", - "type": "Microsoft.Network/privateDnsZones/SOA", - "etag": "00000000-0000-0000-0000-000000000000", - "properties": { - "fqdn": "scenario_privatezone.com.", - "ttl": 3600, - "soaRecord": { - "email": "azureprivatedns-host.microsoft.com", - "expireTime": 2419200, - "host": "azureprivatedns.net", - "minimumTtl": 10, - "refreshTime": 3600, - "retryTime": 300, - "serialNumber": 1 - }, - "isAutoRegistered": false - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateDnsZones/scenario_privatezone.com/A/scenario_recordset", - "name": "scenario_recordset", - "type": "Microsoft.Network/privateDnsZones/A", - "etag": "00000000-0000-0000-0000-000000000000", - "properties": { - "metadata": { - "key2": "value2" - }, - "fqdn": "scenario_recordset.scenario_privatezone.com.", - "ttl": 3600, - "aRecords": [ - { - "ipv4Address": "1.2.3.4" - } - ], - "isAutoRegistered": false - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateDnsZones/scenario_privatezone.com/A/scenario_recordset?api-version=2020-06-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armprivatedns/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "private", - "Content-Length": "0", - "Date": "Tue, 11 Oct 2022 07:30:50 GMT", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-AspNet-Version": "4.0.30319", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "11999", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221011T073050Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/NetworkAndSubnet_Create?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "668", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "mode": "Incremental", - "parameters": {}, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "outputs": { - "virtaulNetworkId": { - "type": "string", - "value": "[resourceId(\u0027Microsoft.Network/virtualNetworks\u0027, parameters(\u0027name\u0027))]" - } - }, - "parameters": { - "name": { - "defaultValue": "pn-network", - "type": "string" - } - }, - "resources": [ - { - "apiVersion": "2021-05-01", - "location": "eastus", - "name": "[parameters(\u0027name\u0027)]", - "properties": { - "addressSpace": { - "addressPrefixes": [ - "10.0.0.0/16" - ] - }, - "subnets": [ - { - "name": "test-1", - "properties": { - "addressPrefix": "10.0.0.0/24" - } - } - ] - }, - "tags": {}, - "type": "Microsoft.Network/virtualNetworks" - } - ] - } - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/NetworkAndSubnet_Create/operationStatuses/08585361334295228962?api-version=2021-04-01", - "Cache-Control": "no-cache", - "Content-Length": "661", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 11 Oct 2022 07:31:02 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221011T073102Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/NetworkAndSubnet_Create", - "name": "NetworkAndSubnet_Create", - "type": "Microsoft.Resources/deployments", - "properties": { - "templateHash": "1844510018054558559", - "parameters": { - "name": { - "type": "String", - "value": "pn-network" - } - }, - "mode": "Incremental", - "provisioningState": "Accepted", - "timestamp": "2022-10-11T07:30:59.5370235Z", - "duration": "PT0.0001781S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Network", - "resourceTypes": [ - { - "resourceType": "virtualNetworks", - "locations": [ - "eastus" - ] - } - ] - } - ], - "dependencies": [] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/NetworkAndSubnet_Create/operationStatuses/08585361334295228962?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "20", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 11 Oct 2022 07:31:03 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11999", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221011T073103Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/NetworkAndSubnet_Create/operationStatuses/08585361334295228962?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "22", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 11 Oct 2022 07:31:34 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11998", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221011T073134Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/NetworkAndSubnet_Create?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "1025", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 11 Oct 2022 07:31:34 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11997", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221011T073135Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/NetworkAndSubnet_Create", - "name": "NetworkAndSubnet_Create", - "type": "Microsoft.Resources/deployments", - "properties": { - "templateHash": "1844510018054558559", - "parameters": { - "name": { - "type": "String", - "value": "pn-network" - } - }, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2022-10-11T07:31:16.7180065Z", - "duration": "PT17.1811611S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Network", - "resourceTypes": [ - { - "resourceType": "virtualNetworks", - "locations": [ - "eastus" - ] - } - ] - } - ], - "dependencies": [], - "outputs": { - "virtaulNetworkId": { - "type": "String", - "value": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/pn-network" - } - }, - "outputResources": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/pn-network" - } - ] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateDnsZones/scenario_privatezone.com/virtualNetworkLinks/scenario_vnetlink?api-version=2020-06-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "227", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armprivatedns/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "Global", - "properties": { - "registrationEnabled": false, - "virtualNetwork": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/pn-network" - } - } - }, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateDnsOperationStatuses/RnJvbnRFbmRBc3luY09wZXJhdGlvbjtVcHNlcnRWaXJ0dWFsTmV0d29ya0xpbms7NDZhNDE5MjYtM2QwZS00MmFiLTkyODEtZjk4M2I3MDZjYzExXzkyZjk1ZDhmLTNjNjctNDEyNC05MWM3LThjZjA3Y2RiZjI0MQ==?api-version=2020-06-01", - "Cache-Control": "private", - "Content-Length": "2", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 11 Oct 2022 07:31:40 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateDnsOperationResults/RnJvbnRFbmRBc3luY09wZXJhdGlvbjtVcHNlcnRWaXJ0dWFsTmV0d29ya0xpbms7NDZhNDE5MjYtM2QwZS00MmFiLTkyODEtZjk4M2I3MDZjYzExXzkyZjk1ZDhmLTNjNjctNDEyNC05MWM3LThjZjA3Y2RiZjI0MQ==?api-version=2020-06-01", - "Retry-After": "30", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-AspNet-Version": "4.0.30319", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "11999", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221011T073141Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": {} - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateDnsOperationStatuses/RnJvbnRFbmRBc3luY09wZXJhdGlvbjtVcHNlcnRWaXJ0dWFsTmV0d29ya0xpbms7NDZhNDE5MjYtM2QwZS00MmFiLTkyODEtZjk4M2I3MDZjYzExXzkyZjk1ZDhmLTNjNjctNDEyNC05MWM3LThjZjA3Y2RiZjI0MQ==?api-version=2020-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armprivatedns/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateDnsOperationStatuses/RnJvbnRFbmRBc3luY09wZXJhdGlvbjtVcHNlcnRWaXJ0dWFsTmV0d29ya0xpbms7NDZhNDE5MjYtM2QwZS00MmFiLTkyODEtZjk4M2I3MDZjYzExXzkyZjk1ZDhmLTNjNjctNDEyNC05MWM3LThjZjA3Y2RiZjI0MQ==?api-version=2020-06-01", - "Cache-Control": "private", - "Content-Length": "23", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 11 Oct 2022 07:32:11 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateDnsOperationResults/RnJvbnRFbmRBc3luY09wZXJhdGlvbjtVcHNlcnRWaXJ0dWFsTmV0d29ya0xpbms7NDZhNDE5MjYtM2QwZS00MmFiLTkyODEtZjk4M2I3MDZjYzExXzkyZjk1ZDhmLTNjNjctNDEyNC05MWM3LThjZjA3Y2RiZjI0MQ==?api-version=2020-06-01", - "Retry-After": "30", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-AspNet-Version": "4.0.30319", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "497", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221011T073212Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "status": "InProgress" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateDnsOperationStatuses/RnJvbnRFbmRBc3luY09wZXJhdGlvbjtVcHNlcnRWaXJ0dWFsTmV0d29ya0xpbms7NDZhNDE5MjYtM2QwZS00MmFiLTkyODEtZjk4M2I3MDZjYzExXzkyZjk1ZDhmLTNjNjctNDEyNC05MWM3LThjZjA3Y2RiZjI0MQ==?api-version=2020-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armprivatedns/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "private", - "Content-Length": "22", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 11 Oct 2022 07:32:42 GMT", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-AspNet-Version": "4.0.30319", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "496", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221011T073242Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateDnsZones/scenario_privatezone.com/virtualNetworkLinks/scenario_vnetlink?api-version=2020-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armprivatedns/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "private", - "Content-Length": "653", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 11 Oct 2022 07:32:43 GMT", - "ETag": "\u002200000000-0000-0000-0000-000000000000\u0022", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-AspNet-Version": "4.0.30319", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "499", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221011T073244Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateDnsZones/scenario_privatezone.com/virtualNetworkLinks/scenario_vnetlink", - "name": "scenario_vnetlink", - "type": "Microsoft.Network/privateDnsZones/virtualNetworkLinks", - "etag": "\u002200000000-0000-0000-0000-000000000000\u0022", - "location": "global", - "properties": { - "provisioningState": "Succeeded", - "registrationEnabled": false, - "virtualNetwork": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/pn-network" - }, - "virtualNetworkLinkState": "Completed" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateDnsZones/scenario_privatezone.com/virtualNetworkLinks/scenario_vnetlink?api-version=2020-06-01", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "68", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armprivatedns/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "registrationEnabled": true - }, - "tags": { - "key2": "value2" - } - }, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateDnsOperationStatuses/RnJvbnRFbmRBc3luY09wZXJhdGlvbjtVcHNlcnRWaXJ0dWFsTmV0d29ya0xpbms7NjkxMzQ3MDctMThhYy00NDIzLTlmNzktMzYzN2I1ZDZjNzE1XzkyZjk1ZDhmLTNjNjctNDEyNC05MWM3LThjZjA3Y2RiZjI0MQ==?api-version=2020-06-01", - "Cache-Control": "private", - "Content-Length": "2", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 11 Oct 2022 07:32:47 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateDnsOperationResults/RnJvbnRFbmRBc3luY09wZXJhdGlvbjtVcHNlcnRWaXJ0dWFsTmV0d29ya0xpbms7NjkxMzQ3MDctMThhYy00NDIzLTlmNzktMzYzN2I1ZDZjNzE1XzkyZjk1ZDhmLTNjNjctNDEyNC05MWM3LThjZjA3Y2RiZjI0MQ==?api-version=2020-06-01", - "Retry-After": "30", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-AspNet-Version": "4.0.30319", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "11998", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221011T073248Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": {} - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateDnsOperationStatuses/RnJvbnRFbmRBc3luY09wZXJhdGlvbjtVcHNlcnRWaXJ0dWFsTmV0d29ya0xpbms7NjkxMzQ3MDctMThhYy00NDIzLTlmNzktMzYzN2I1ZDZjNzE1XzkyZjk1ZDhmLTNjNjctNDEyNC05MWM3LThjZjA3Y2RiZjI0MQ==?api-version=2020-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armprivatedns/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateDnsOperationStatuses/RnJvbnRFbmRBc3luY09wZXJhdGlvbjtVcHNlcnRWaXJ0dWFsTmV0d29ya0xpbms7NjkxMzQ3MDctMThhYy00NDIzLTlmNzktMzYzN2I1ZDZjNzE1XzkyZjk1ZDhmLTNjNjctNDEyNC05MWM3LThjZjA3Y2RiZjI0MQ==?api-version=2020-06-01", - "Cache-Control": "private", - "Content-Length": "23", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 11 Oct 2022 07:33:19 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateDnsOperationResults/RnJvbnRFbmRBc3luY09wZXJhdGlvbjtVcHNlcnRWaXJ0dWFsTmV0d29ya0xpbms7NjkxMzQ3MDctMThhYy00NDIzLTlmNzktMzYzN2I1ZDZjNzE1XzkyZjk1ZDhmLTNjNjctNDEyNC05MWM3LThjZjA3Y2RiZjI0MQ==?api-version=2020-06-01", - "Retry-After": "30", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-AspNet-Version": "4.0.30319", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "495", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221011T073319Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "status": "InProgress" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateDnsOperationStatuses/RnJvbnRFbmRBc3luY09wZXJhdGlvbjtVcHNlcnRWaXJ0dWFsTmV0d29ya0xpbms7NjkxMzQ3MDctMThhYy00NDIzLTlmNzktMzYzN2I1ZDZjNzE1XzkyZjk1ZDhmLTNjNjctNDEyNC05MWM3LThjZjA3Y2RiZjI0MQ==?api-version=2020-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armprivatedns/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "private", - "Content-Length": "22", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 11 Oct 2022 07:33:51 GMT", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-AspNet-Version": "4.0.30319", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "494", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221011T073351Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateDnsZones/scenario_privatezone.com/virtualNetworkLinks/scenario_vnetlink?api-version=2020-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armprivatedns/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "private", - "Content-Length": "677", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 11 Oct 2022 07:33:51 GMT", - "ETag": "\u002200000000-0000-0000-0000-000000000000\u0022", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-AspNet-Version": "4.0.30319", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "498", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221011T073352Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateDnsZones/scenario_privatezone.com/virtualNetworkLinks/scenario_vnetlink", - "name": "scenario_vnetlink", - "type": "Microsoft.Network/privateDnsZones/virtualNetworkLinks", - "etag": "\u002200000000-0000-0000-0000-000000000000\u0022", - "location": "global", - "tags": { - "key2": "value2" - }, - "properties": { - "provisioningState": "Succeeded", - "registrationEnabled": true, - "virtualNetwork": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/pn-network" - }, - "virtualNetworkLinkState": "Completed" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateDnsZones/scenario_privatezone.com/virtualNetworkLinks/scenario_vnetlink?api-version=2020-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armprivatedns/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "private", - "Content-Length": "677", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 11 Oct 2022 07:33:52 GMT", - "ETag": "\u002200000000-0000-0000-0000-000000000000\u0022", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-AspNet-Version": "4.0.30319", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "497", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221011T073352Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateDnsZones/scenario_privatezone.com/virtualNetworkLinks/scenario_vnetlink", - "name": "scenario_vnetlink", - "type": "Microsoft.Network/privateDnsZones/virtualNetworkLinks", - "etag": "\u002200000000-0000-0000-0000-000000000000\u0022", - "location": "global", - "tags": { - "key2": "value2" - }, - "properties": { - "provisioningState": "Succeeded", - "registrationEnabled": true, - "virtualNetwork": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/pn-network" - }, - "virtualNetworkLinkState": "Completed" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateDnsZones/scenario_privatezone.com/virtualNetworkLinks?api-version=2020-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armprivatedns/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "private", - "Content-Length": "689", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 11 Oct 2022 07:33:52 GMT", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-AspNet-Version": "4.0.30319", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-entities-read": "59999", - "x-ms-ratelimit-remaining-subscription-resource-requests": "496", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221011T073353Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateDnsZones/scenario_privatezone.com/virtualNetworkLinks/scenario_vnetlink", - "name": "scenario_vnetlink", - "type": "Microsoft.Network/privateDnsZones/virtualNetworkLinks", - "etag": "\u002200000000-0000-0000-0000-000000000000\u0022", - "location": "global", - "tags": { - "key2": "value2" - }, - "properties": { - "provisioningState": "Succeeded", - "registrationEnabled": true, - "virtualNetwork": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/pn-network" - }, - "virtualNetworkLinkState": "Completed" - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateDnsZones/scenario_privatezone.com/virtualNetworkLinks/scenario_vnetlink?api-version=2020-06-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armprivatedns/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateDnsOperationStatuses/RnJvbnRFbmRBc3luY09wZXJhdGlvbjtEZWxldGVWaXJ0dWFsTmV0d29ya0xpbms7ZTM0YjM4ZjUtYTliMi00NDA0LTg3YmYtNThhMWRlZDM4MjYzXzkyZjk1ZDhmLTNjNjctNDEyNC05MWM3LThjZjA3Y2RiZjI0MQ==?api-version=2020-06-01", - "Cache-Control": "private", - "Content-Length": "0", - "Date": "Tue, 11 Oct 2022 07:33:56 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateDnsOperationResults/RnJvbnRFbmRBc3luY09wZXJhdGlvbjtEZWxldGVWaXJ0dWFsTmV0d29ya0xpbms7ZTM0YjM4ZjUtYTliMi00NDA0LTg3YmYtNThhMWRlZDM4MjYzXzkyZjk1ZDhmLTNjNjctNDEyNC05MWM3LThjZjA3Y2RiZjI0MQ==?api-version=2020-06-01", - "Retry-After": "30", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-AspNet-Version": "4.0.30319", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "11999", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221011T073356Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateDnsOperationStatuses/RnJvbnRFbmRBc3luY09wZXJhdGlvbjtEZWxldGVWaXJ0dWFsTmV0d29ya0xpbms7ZTM0YjM4ZjUtYTliMi00NDA0LTg3YmYtNThhMWRlZDM4MjYzXzkyZjk1ZDhmLTNjNjctNDEyNC05MWM3LThjZjA3Y2RiZjI0MQ==?api-version=2020-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armprivatedns/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com:443/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateDnsOperationStatuses/RnJvbnRFbmRBc3luY09wZXJhdGlvbjtEZWxldGVWaXJ0dWFsTmV0d29ya0xpbms7ZTM0YjM4ZjUtYTliMi00NDA0LTg3YmYtNThhMWRlZDM4MjYzXzkyZjk1ZDhmLTNjNjctNDEyNC05MWM3LThjZjA3Y2RiZjI0MQ==?api-version=2020-06-01", - "Cache-Control": "private", - "Content-Length": "23", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 11 Oct 2022 07:34:26 GMT", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateDnsOperationResults/RnJvbnRFbmRBc3luY09wZXJhdGlvbjtEZWxldGVWaXJ0dWFsTmV0d29ya0xpbms7ZTM0YjM4ZjUtYTliMi00NDA0LTg3YmYtNThhMWRlZDM4MjYzXzkyZjk1ZDhmLTNjNjctNDEyNC05MWM3LThjZjA3Y2RiZjI0MQ==?api-version=2020-06-01", - "Retry-After": "30", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-AspNet-Version": "4.0.30319", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "493", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221011T073427Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "status": "InProgress" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateDnsOperationStatuses/RnJvbnRFbmRBc3luY09wZXJhdGlvbjtEZWxldGVWaXJ0dWFsTmV0d29ya0xpbms7ZTM0YjM4ZjUtYTliMi00NDA0LTg3YmYtNThhMWRlZDM4MjYzXzkyZjk1ZDhmLTNjNjctNDEyNC05MWM3LThjZjA3Y2RiZjI0MQ==?api-version=2020-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armprivatedns/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "private", - "Content-Length": "22", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 11 Oct 2022 07:34:58 GMT", - "Server": "Microsoft-IIS/10.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-AspNet-Version": "4.0.30319", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "492", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221011T073458Z:00000000-0000-0000-0000-000000000000", - "X-Powered-By": "ASP.NET" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Tue, 11 Oct 2022 07:35:02 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ2MDUtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14999", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221011T073502Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/resourcemanager/redis/armredis/assets.json b/sdk/resourcemanager/redis/armredis/assets.json new file mode 100644 index 000000000000..b474fbbe6283 --- /dev/null +++ b/sdk/resourcemanager/redis/armredis/assets.json @@ -0,0 +1,6 @@ +{ + "AssetsRepo": "Azure/azure-sdk-assets", + "AssetsRepoPrefixPath": "go", + "TagPrefix": "go/resourcemanager/redis/armredis", + "Tag": "go/resourcemanager/redis/armredis_8cd820752b" +} diff --git a/sdk/resourcemanager/redis/armredis/go.mod b/sdk/resourcemanager/redis/armredis/go.mod index f4bea299f051..e418a65e48b9 100644 --- a/sdk/resourcemanager/redis/armredis/go.mod +++ b/sdk/resourcemanager/redis/armredis/go.mod @@ -3,27 +3,27 @@ module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/redis/armredis/v2 go 1.18 require ( - github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.0 - github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.1.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.1 + github.com/Azure/azure-sdk-for-go/sdk/azcore v1.4.0 + github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.2 github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0 github.com/stretchr/testify v1.7.0 ) require ( - github.com/Azure/azure-sdk-for-go/sdk/internal v1.0.0 // indirect - github.com/AzureAD/microsoft-authentication-library-for-go v0.5.1 // indirect + github.com/Azure/azure-sdk-for-go/sdk/internal v1.2.0 // indirect + github.com/AzureAD/microsoft-authentication-library-for-go v0.7.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/dnaeon/go-vcr v1.1.0 // indirect - github.com/golang-jwt/jwt v3.2.1+incompatible // indirect + github.com/golang-jwt/jwt/v4 v4.4.2 // 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 github.com/pmezard/go-difflib v1.0.0 // 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 + golang.org/x/net v0.7.0 // indirect + golang.org/x/sys v0.5.0 // indirect + golang.org/x/text v0.7.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect ) diff --git a/sdk/resourcemanager/redis/armredis/go.sum b/sdk/resourcemanager/redis/armredis/go.sum index 1b67d30343d7..b0f97586a165 100644 --- a/sdk/resourcemanager/redis/armredis/go.sum +++ b/sdk/resourcemanager/redis/armredis/go.sum @@ -1,29 +1,27 @@ -github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.0 h1:Ut0ZGdOwJDw0npYEg+TLlPls3Pq6JiZaP2/aGKir7Zw= -github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.0/go.mod h1:uGG2W01BaETf0Ozp+QxxKJdMBNRWPdstHG0Fmdwn1/U= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.1.0 h1:QkAcEIAKbNL4KoFr4SathZPhDhF4mVwpBMFlYjyAqy8= -github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.1.0/go.mod h1:bhXu1AjYL+wutSL/kpSq6s7733q2Rb0yuot9Zgfqa/0= -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/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.1 h1:BZOe7ExNYNGmapT91ZUrxtMYsqVljMxTHEnwjOdG7pk= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.1/go.mod h1:TSPEzbGHEgqFa3kUn09SpCrfKNbj7+mMulU/72Vg84E= +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.0 h1:t/W5MYAuQy81cvM8VUNfRLzhtKpXhVUAN7Cd7KVbTyc= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.0/go.mod h1:NBanQUfSWiWn3QEpWDTCU0IjBECKOYvl2R8xdRtMtiM= +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/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.2 h1:mLY+pNLjCUeKhgnAJWAKhEUQM+RJQo2H1fuGSw1Ky1E= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.2/go.mod h1:FbdwsQ2EzwvXxOPcMFYO8ogEc9uMMIj3YkmCdXdAFmk= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0 h1:ECsQtyERDVz3NP3kvDOTLvbQhqWp/x9EsGKtb4ogUr8= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0/go.mod h1:s1tW/At+xHqjNFvWU4G0c0Qv33KOhvbGNj0RCTQDV8s= -github.com/AzureAD/microsoft-authentication-library-for-go v0.5.1 h1:BWe8a+f/t+7KY7zH2mqygeUD0t8hNFXe08p1Pb3/jKE= -github.com/AzureAD/microsoft-authentication-library-for-go v0.5.1/go.mod h1:Vt9sXTKwMyGcOxSmLDMnGPgqsUg7m8pe215qMLrDXw4= +github.com/AzureAD/microsoft-authentication-library-for-go v0.7.0 h1:VgSJlZH5u0k2qxSpqyghcFQKmvYckj46uymKK5XzkBM= +github.com/AzureAD/microsoft-authentication-library-for-go v0.7.0/go.mod h1:BDJ5qMFKx9DugEg3+uQSDCdbYPr5s9vBTrL9P8TpqOU= 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/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 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= +github.com/golang-jwt/jwt/v4 v4.4.2 h1:rcc4lwaZgFMCZ5jxF9ABolDcIHdBytAFgqFPbSJQAYs= +github.com/golang-jwt/jwt/v4 v4.4.2/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= 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= @@ -33,13 +31,12 @@ github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5Cc github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= 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-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/net v0.7.0 h1:rJrUqqhjsgNp7KqAIc25s9pZnjU7TUcSY7HcVZjdn1g= +golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= +golang.org/x/sys v0.5.0 h1:MUK/U/4lj1t1oPg0HfuXDN/Z1wv31ZJ/YcPiGccS4DU= +golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/text v0.7.0 h1:4BRB4x83lYWy72KwLD/qYDuTu7q9PjSagHvijDw7cLo= +golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= 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= diff --git a/sdk/resourcemanager/redis/armredis/testdata/recordings/TestRedisTestSuite.json b/sdk/resourcemanager/redis/armredis/testdata/recordings/TestRedisTestSuite.json deleted file mode 100644 index 5f1a648ae80b..000000000000 --- a/sdk/resourcemanager/redis/armredis/testdata/recordings/TestRedisTestSuite.json +++ /dev/null @@ -1,9441 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "eastus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 25 Oct 2022 08:30:19 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T083020Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "eastus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/NetworkSubnet_Create?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "787", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "mode": "Incremental", - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "outputs": { - "subnetId": { - "type": "string", - "value": "[resourceId(\u0027Microsoft.Network/virtualNetworks/subnets\u0027, parameters(\u0027virtualNetworksName\u0027), \u0027redissubnet\u0027)]" - } - }, - "parameters": { - "location": { - "defaultValue": "eastus", - "type": "string" - }, - "virtualNetworksName": { - "defaultValue": "redisvnet", - "type": "string" - } - }, - "resources": [ - { - "apiVersion": "2021-05-01", - "location": "[parameters(\u0027location\u0027)]", - "name": "[parameters(\u0027virtualNetworksName\u0027)]", - "properties": { - "addressSpace": { - "addressPrefixes": [ - "10.0.0.0/16" - ] - }, - "subnets": [ - { - "name": "redissubnet", - "properties": { - "addressPrefix": "10.0.0.0/24" - } - } - ] - }, - "tags": {}, - "type": "Microsoft.Network/virtualNetworks" - } - ] - } - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/NetworkSubnet_Create/operationStatuses/08585349202635250837?api-version=2021-04-01", - "Cache-Control": "no-cache", - "Content-Length": "714", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 25 Oct 2022 08:30:24 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1197", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T083025Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/NetworkSubnet_Create", - "name": "NetworkSubnet_Create", - "type": "Microsoft.Resources/deployments", - "properties": { - "templateHash": "4887313086315674079", - "parameters": { - "location": { - "type": "String", - "value": "eastus" - }, - "virtualNetworksName": { - "type": "String", - "value": "redisvnet" - } - }, - "mode": "Incremental", - "provisioningState": "Accepted", - "timestamp": "2022-10-25T08:30:24.507527Z", - "duration": "PT0.0001004S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Network", - "resourceTypes": [ - { - "resourceType": "virtualNetworks", - "locations": [ - "eastus" - ] - } - ] - } - ], - "dependencies": [] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/NetworkSubnet_Create/operationStatuses/08585349202635250837?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "20", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 25 Oct 2022 08:30:25 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11999", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T083026Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/NetworkSubnet_Create/operationStatuses/08585349202635250837?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "22", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 25 Oct 2022 08:30:56 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11998", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T083056Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/NetworkSubnet_Create?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "1089", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 25 Oct 2022 08:30:56 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11997", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T083057Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/NetworkSubnet_Create", - "name": "NetworkSubnet_Create", - "type": "Microsoft.Resources/deployments", - "properties": { - "templateHash": "4887313086315674079", - "parameters": { - "location": { - "type": "String", - "value": "eastus" - }, - "virtualNetworksName": { - "type": "String", - "value": "redisvnet" - } - }, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2022-10-25T08:30:39.9971113Z", - "duration": "PT15.4896847S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Network", - "resourceTypes": [ - { - "resourceType": "virtualNetworks", - "locations": [ - "eastus" - ] - } - ] - } - ], - "dependencies": [], - "outputs": { - "subnetId": { - "type": "String", - "value": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/redisvnet/subnets/redissubnet" - } - }, - "outputResources": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/redisvnet" - } - ] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cache/redis/redisnaaChDFf?api-version=2022-06-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "245", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armredis/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "eastus", - "properties": { - "enableNonSslPort": true, - "minimumTlsVersion": "1.2", - "redisConfiguration": { - "maxmemory-policy": "allkeys-lru" - }, - "replicasPerPrimary": 2, - "shardCount": 2, - "sku": { - "capacity": 1, - "family": "P", - "name": "Premium" - } - }, - "zones": [ - "1" - ] - }, - "StatusCode": 201, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/asyncOperations/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "Cache-Control": "no-cache", - "Content-Length": "1979", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 25 Oct 2022 08:31:03 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cache/redis/redisnaaChDFf?api-version=2022-06-01", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1196", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T083103Z:00000000-0000-0000-0000-000000000000", - "x-rp-server-mvid": "00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cache/Redis/redisnaaChDFf", - "location": "East US", - "name": "redisnaaChDFf", - "type": "Microsoft.Cache/Redis", - "tags": {}, - "properties": { - "provisioningState": "Creating", - "redisVersion": "6.0", - "sku": { - "name": "Premium", - "family": "P", - "capacity": 1 - }, - "enableNonSslPort": true, - "instances": [ - { - "sslPort": 15000, - "nonSslPort": 13000, - "isMaster": false, - "isPrimary": false - }, - { - "sslPort": 15001, - "nonSslPort": 13001, - "isMaster": false, - "isPrimary": false - }, - { - "sslPort": 15002, - "nonSslPort": 13002, - "isMaster": false, - "isPrimary": false - }, - { - "sslPort": 15003, - "nonSslPort": 13003, - "isMaster": false, - "isPrimary": false - }, - { - "sslPort": 15004, - "nonSslPort": 13004, - "isMaster": false, - "isPrimary": false - }, - { - "sslPort": 15005, - "nonSslPort": 13005, - "isMaster": false, - "isPrimary": false - } - ], - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "redisConfiguration": { - "maxmemory-policy": "allkeys-lru", - "maxclients": "7500", - "maxmemory-reserved": "642", - "maxfragmentationmemory-reserved": "642", - "maxmemory-delta": "642" - }, - "accessKeys": { - "primaryKey": "000000000000", - "secondaryKey": "000000000000" - }, - "hostName": "redisnaaChDFf.redis.cache.windows.net", - "port": 6379, - "sslPort": 6380, - "shardCount": 2, - "replicasPerMaster": 2, - "linkedServers": [], - "replicasPerPrimary": 2 - }, - "zones": [ - "1" - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/asyncOperations/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armredis/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/asyncOperations/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Tue, 25 Oct 2022 08:31:03 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11996", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T083103Z:00000000-0000-0000-0000-000000000000", - "x-rp-server-mvid": "00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East US/asyncOperations/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": null, - "endTime": null, - "percentComplete": null, - "properties": null, - "error": null - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/asyncOperations/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armredis/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/asyncOperations/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Tue, 25 Oct 2022 08:31:33 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11995", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T083134Z:00000000-0000-0000-0000-000000000000", - "x-rp-server-mvid": "00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East US/asyncOperations/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": null, - "endTime": null, - "percentComplete": null, - "properties": null, - "error": null - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/asyncOperations/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armredis/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/asyncOperations/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Tue, 25 Oct 2022 08:32:03 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11994", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T083204Z:00000000-0000-0000-0000-000000000000", - "x-rp-server-mvid": "00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East US/asyncOperations/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": null, - "endTime": null, - "percentComplete": null, - "properties": null, - "error": null - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/asyncOperations/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armredis/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/asyncOperations/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Tue, 25 Oct 2022 08:32:34 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11993", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T083235Z:00000000-0000-0000-0000-000000000000", - "x-rp-server-mvid": "00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East US/asyncOperations/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": null, - "endTime": null, - "percentComplete": null, - "properties": null, - "error": null - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/asyncOperations/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armredis/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/asyncOperations/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Tue, 25 Oct 2022 08:33:04 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11992", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T083305Z:00000000-0000-0000-0000-000000000000", - "x-rp-server-mvid": "00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East US/asyncOperations/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": null, - "endTime": null, - "percentComplete": null, - "properties": null, - "error": null - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/asyncOperations/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armredis/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/asyncOperations/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Tue, 25 Oct 2022 08:33:35 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11991", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T083335Z:00000000-0000-0000-0000-000000000000", - "x-rp-server-mvid": "00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East US/asyncOperations/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": null, - "endTime": null, - "percentComplete": null, - "properties": null, - "error": null - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/asyncOperations/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armredis/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/asyncOperations/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Tue, 25 Oct 2022 08:34:06 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11990", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T083406Z:00000000-0000-0000-0000-000000000000", - "x-rp-server-mvid": "00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East US/asyncOperations/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": null, - "endTime": null, - "percentComplete": null, - "properties": null, - "error": null - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/asyncOperations/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armredis/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/asyncOperations/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Tue, 25 Oct 2022 08:34:35 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11989", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T083436Z:00000000-0000-0000-0000-000000000000", - "x-rp-server-mvid": "00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East US/asyncOperations/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": null, - "endTime": null, - "percentComplete": null, - "properties": null, - "error": null - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/asyncOperations/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armredis/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/asyncOperations/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Tue, 25 Oct 2022 08:35:06 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11988", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T083506Z:00000000-0000-0000-0000-000000000000", - "x-rp-server-mvid": "00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East US/asyncOperations/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": null, - "endTime": null, - "percentComplete": null, - "properties": null, - "error": null - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/asyncOperations/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armredis/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/asyncOperations/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Tue, 25 Oct 2022 08:35:36 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11987", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T083537Z:00000000-0000-0000-0000-000000000000", - "x-rp-server-mvid": "00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East US/asyncOperations/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": null, - "endTime": null, - "percentComplete": null, - "properties": null, - "error": null - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/asyncOperations/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armredis/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/asyncOperations/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Tue, 25 Oct 2022 08:36:07 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11986", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T083607Z:00000000-0000-0000-0000-000000000000", - "x-rp-server-mvid": "00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East US/asyncOperations/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": null, - "endTime": null, - "percentComplete": null, - "properties": null, - "error": null - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/asyncOperations/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armredis/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/asyncOperations/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Tue, 25 Oct 2022 08:36:37 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11985", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T083638Z:00000000-0000-0000-0000-000000000000", - "x-rp-server-mvid": "00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East US/asyncOperations/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": null, - "endTime": null, - "percentComplete": null, - "properties": null, - "error": null - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/asyncOperations/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armredis/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/asyncOperations/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Tue, 25 Oct 2022 08:37:09 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11984", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T083709Z:00000000-0000-0000-0000-000000000000", - "x-rp-server-mvid": "00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East US/asyncOperations/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": null, - "endTime": null, - "percentComplete": null, - "properties": null, - "error": null - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/asyncOperations/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armredis/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/asyncOperations/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Tue, 25 Oct 2022 08:37:39 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11983", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T083739Z:00000000-0000-0000-0000-000000000000", - "x-rp-server-mvid": "00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East US/asyncOperations/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": null, - "endTime": null, - "percentComplete": null, - "properties": null, - "error": null - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/asyncOperations/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armredis/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/asyncOperations/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Tue, 25 Oct 2022 08:38:09 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11982", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T083810Z:00000000-0000-0000-0000-000000000000", - "x-rp-server-mvid": "00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East US/asyncOperations/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": null, - "endTime": null, - "percentComplete": null, - "properties": null, - "error": null - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/asyncOperations/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armredis/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/asyncOperations/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Tue, 25 Oct 2022 08:38:40 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11981", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T083840Z:00000000-0000-0000-0000-000000000000", - "x-rp-server-mvid": "00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East US/asyncOperations/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": null, - "endTime": null, - "percentComplete": null, - "properties": null, - "error": null - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/asyncOperations/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armredis/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/asyncOperations/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Tue, 25 Oct 2022 08:39:10 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11980", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T083911Z:00000000-0000-0000-0000-000000000000", - "x-rp-server-mvid": "00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East US/asyncOperations/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": null, - "endTime": null, - "percentComplete": null, - "properties": null, - "error": null - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/asyncOperations/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armredis/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/asyncOperations/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Tue, 25 Oct 2022 08:39:40 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11979", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T083941Z:00000000-0000-0000-0000-000000000000", - "x-rp-server-mvid": "00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East US/asyncOperations/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": null, - "endTime": null, - "percentComplete": null, - "properties": null, - "error": null - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/asyncOperations/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armredis/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/asyncOperations/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Tue, 25 Oct 2022 08:40:11 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11978", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T084011Z:00000000-0000-0000-0000-000000000000", - "x-rp-server-mvid": "00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East US/asyncOperations/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": null, - "endTime": null, - "percentComplete": null, - "properties": null, - "error": null - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/asyncOperations/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armredis/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/asyncOperations/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Tue, 25 Oct 2022 08:40:41 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11977", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T084042Z:00000000-0000-0000-0000-000000000000", - "x-rp-server-mvid": "00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East US/asyncOperations/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": null, - "endTime": null, - "percentComplete": null, - "properties": null, - "error": null - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/asyncOperations/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armredis/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/asyncOperations/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Tue, 25 Oct 2022 08:41:11 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11976", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T084112Z:00000000-0000-0000-0000-000000000000", - "x-rp-server-mvid": "00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East US/asyncOperations/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": null, - "endTime": null, - "percentComplete": null, - "properties": null, - "error": null - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/asyncOperations/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armredis/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/asyncOperations/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Tue, 25 Oct 2022 08:41:41 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11975", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T084142Z:00000000-0000-0000-0000-000000000000", - "x-rp-server-mvid": "00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East US/asyncOperations/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": null, - "endTime": null, - "percentComplete": null, - "properties": null, - "error": null - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/asyncOperations/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armredis/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/asyncOperations/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Tue, 25 Oct 2022 08:42:12 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11974", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T084213Z:00000000-0000-0000-0000-000000000000", - "x-rp-server-mvid": "00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East US/asyncOperations/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": null, - "endTime": null, - "percentComplete": null, - "properties": null, - "error": null - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/asyncOperations/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armredis/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/asyncOperations/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Tue, 25 Oct 2022 08:42:42 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11973", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T084243Z:00000000-0000-0000-0000-000000000000", - "x-rp-server-mvid": "00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East US/asyncOperations/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": null, - "endTime": null, - "percentComplete": null, - "properties": null, - "error": null - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/asyncOperations/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armredis/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/asyncOperations/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Tue, 25 Oct 2022 08:43:14 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11972", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T084314Z:00000000-0000-0000-0000-000000000000", - "x-rp-server-mvid": "00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East US/asyncOperations/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": null, - "endTime": null, - "percentComplete": null, - "properties": null, - "error": null - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/asyncOperations/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armredis/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/asyncOperations/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Tue, 25 Oct 2022 08:43:44 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11971", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T084344Z:00000000-0000-0000-0000-000000000000", - "x-rp-server-mvid": "00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East US/asyncOperations/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": null, - "endTime": null, - "percentComplete": null, - "properties": null, - "error": null - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/asyncOperations/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armredis/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/asyncOperations/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Tue, 25 Oct 2022 08:44:15 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11970", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T084415Z:00000000-0000-0000-0000-000000000000", - "x-rp-server-mvid": "00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East US/asyncOperations/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": null, - "endTime": null, - "percentComplete": null, - "properties": null, - "error": null - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/asyncOperations/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armredis/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/asyncOperations/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Tue, 25 Oct 2022 08:44:44 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11969", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T084445Z:00000000-0000-0000-0000-000000000000", - "x-rp-server-mvid": "00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East US/asyncOperations/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": null, - "endTime": null, - "percentComplete": null, - "properties": null, - "error": null - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/asyncOperations/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armredis/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/asyncOperations/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Tue, 25 Oct 2022 08:45:15 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11968", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T084515Z:00000000-0000-0000-0000-000000000000", - "x-rp-server-mvid": "00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East US/asyncOperations/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": null, - "endTime": null, - "percentComplete": null, - "properties": null, - "error": null - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/asyncOperations/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armredis/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/asyncOperations/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Tue, 25 Oct 2022 08:45:45 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11967", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T084546Z:00000000-0000-0000-0000-000000000000", - "x-rp-server-mvid": "00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East US/asyncOperations/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": null, - "endTime": null, - "percentComplete": null, - "properties": null, - "error": null - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/asyncOperations/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armredis/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/asyncOperations/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Tue, 25 Oct 2022 08:46:15 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11966", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T084616Z:00000000-0000-0000-0000-000000000000", - "x-rp-server-mvid": "00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East US/asyncOperations/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": null, - "endTime": null, - "percentComplete": null, - "properties": null, - "error": null - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/asyncOperations/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armredis/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/asyncOperations/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Tue, 25 Oct 2022 08:46:46 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11965", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T084646Z:00000000-0000-0000-0000-000000000000", - "x-rp-server-mvid": "00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East US/asyncOperations/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": null, - "endTime": null, - "percentComplete": null, - "properties": null, - "error": null - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/asyncOperations/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armredis/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/asyncOperations/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Tue, 25 Oct 2022 08:47:16 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11964", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T084717Z:00000000-0000-0000-0000-000000000000", - "x-rp-server-mvid": "00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East US/asyncOperations/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": null, - "endTime": null, - "percentComplete": null, - "properties": null, - "error": null - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/asyncOperations/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armredis/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/asyncOperations/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Tue, 25 Oct 2022 08:47:46 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11963", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T084747Z:00000000-0000-0000-0000-000000000000", - "x-rp-server-mvid": "00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East US/asyncOperations/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "Succeeded", - "startTime": null, - "endTime": null, - "percentComplete": null, - "properties": null, - "error": null - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cache/redis/redisnaaChDFf?api-version=2022-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armredis/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 25 Oct 2022 08:47:47 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11962", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T084748Z:00000000-0000-0000-0000-000000000000", - "x-rp-server-mvid": "00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cache/Redis/redisnaaChDFf", - "location": "East US", - "name": "redisnaaChDFf", - "type": "Microsoft.Cache/Redis", - "tags": {}, - "properties": { - "provisioningState": "Succeeded", - "redisVersion": "6.0", - "sku": { - "name": "Premium", - "family": "P", - "capacity": 1 - }, - "enableNonSslPort": true, - "instances": [ - { - "sslPort": 15000, - "nonSslPort": 13000, - "zone": "1", - "shardId": 0, - "isMaster": true, - "isPrimary": true - }, - { - "sslPort": 15001, - "nonSslPort": 13001, - "zone": "1", - "shardId": 1, - "isMaster": true, - "isPrimary": true - }, - { - "sslPort": 15002, - "nonSslPort": 13002, - "zone": "1", - "shardId": 0, - "isMaster": false, - "isPrimary": false - }, - { - "sslPort": 15003, - "nonSslPort": 13003, - "zone": "1", - "shardId": 1, - "isMaster": false, - "isPrimary": false - }, - { - "sslPort": 15004, - "nonSslPort": 13004, - "zone": "1", - "shardId": 0, - "isMaster": false, - "isPrimary": false - }, - { - "sslPort": 15005, - "nonSslPort": 13005, - "zone": "1", - "shardId": 1, - "isMaster": false, - "isPrimary": false - } - ], - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "redisConfiguration": { - "maxmemory-policy": "allkeys-lru", - "maxclients": "7500", - "maxmemory-reserved": "642", - "maxfragmentationmemory-reserved": "642", - "maxmemory-delta": "642" - }, - "accessKeys": null, - "hostName": "redisnaaChDFf.redis.cache.windows.net", - "port": 6379, - "sslPort": 6380, - "shardCount": 2, - "replicasPerMaster": 2, - "linkedServers": [], - "replicasPerPrimary": 2 - }, - "zones": [ - "1" - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cache/redis/redisnaaChDFf/firewallRules/rule1?api-version=2022-06-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "56", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armredis/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "endIP": "10.0.1.4", - "startIP": "10.0.1.1" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "285", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 25 Oct 2022 08:47:48 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cache/redis/redisnaaChDFf/firewallRules/rule1?api-version=2022-06-01", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1195", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T084749Z:00000000-0000-0000-0000-000000000000", - "x-rp-server-mvid": "00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "startIP": "10.0.1.1", - "endIP": "10.0.1.4" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cache/redis/redisnaaChDFf/firewallRules/rule1", - "name": "redisnaaChDFf/rule1", - "type": "Microsoft.Cache/redis/firewallRules" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cache/redis/redisnaaChDFf/firewallRules?api-version=2022-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armredis/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 25 Oct 2022 08:47:48 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11961", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T084749Z:00000000-0000-0000-0000-000000000000", - "x-rp-server-mvid": "00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cache/Redis/redisnaaChDFf/firewallRules/rule1", - "name": "redisnaaChDFf/rule1", - "type": "Microsoft.Cache/Redis/firewallRules", - "properties": { - "startIP": "10.0.1.1", - "endIP": "10.0.1.4" - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cache/redis/redisnaaChDFf/firewallRules/rule1?api-version=2022-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armredis/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 25 Oct 2022 08:47:49 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11960", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T084750Z:00000000-0000-0000-0000-000000000000", - "x-rp-server-mvid": "00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cache/Redis/redisnaaChDFf/firewallRules/rule1", - "name": "redisnaaChDFf/rule1", - "type": "Microsoft.Cache/Redis/firewallRules", - "properties": { - "startIP": "10.0.1.1", - "endIP": "10.0.1.4" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cache/redis/redisnaaChDFf/firewallRules/rule1?api-version=2022-06-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armredis/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Tue, 25 Oct 2022 08:47:50 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14999", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T084751Z:00000000-0000-0000-0000-000000000000", - "x-rp-server-mvid": "00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.Cache/operations?api-version=2022-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armredis/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 25 Oct 2022 08:47:50 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-tenant-reads": "11999", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T084751Z:00000000-0000-0000-0000-000000000000", - "x-rp-server-mvid": "00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "name": "Microsoft.Cache/checknameavailability/action", - "display": { - "provider": "Microsoft Cache", - "resource": null, - "operation": "Check Cache Name Availability", - "description": "Checks if a name is available for use with a new Redis Cache" - }, - "properties": {} - }, - { - "name": "Microsoft.Cache/register/action", - "display": { - "provider": "Microsoft Cache", - "resource": null, - "operation": "Register Resource Provider Microsoft.Cache", - "description": "Registers the \u0027Microsoft.Cache\u0027 resource provider with a subscription" - }, - "properties": {} - }, - { - "name": "Microsoft.Cache/unregister/action", - "display": { - "provider": "Microsoft Cache", - "resource": null, - "operation": "Unregister Resource Provider Microsoft.Cache", - "description": "Unregisters the \u0027Microsoft.Cache\u0027 resource provider with a subscription" - }, - "properties": {} - }, - { - "name": "Microsoft.Cache/operations/read", - "display": { - "provider": "Microsoft Cache", - "resource": null, - "operation": "List Provider Operations", - "description": "Lists the operations that \u0027Microsoft.Cache\u0027 provider supports." - }, - "properties": {} - }, - { - "name": "Microsoft.Cache/locations/operationResults/read", - "display": { - "provider": "Microsoft Cache", - "resource": null, - "operation": "Read operation results", - "description": "Gets the result of a long running operation for which the \u0027Location\u0027 header was previously returned to the client" - }, - "properties": {} - }, - { - "name": "Microsoft.Cache/locations/operationsStatus/read", - "display": { - "provider": "Microsoft Cache", - "resource": null, - "operation": "Read the status of a long running operation", - "description": "View the status of a long running operation for which the \u0027AzureAsync\u0027 header was previously returned to the client" - }, - "properties": {} - }, - { - "name": "Microsoft.Cache/locations/asyncOperations/read", - "display": { - "provider": "Microsoft Cache", - "resource": null, - "operation": "Read asynchronous operation status", - "description": "Read an Async Operation\u0027s Status" - }, - "properties": {} - }, - { - "name": "Microsoft.Cache/locations/checknameavailability/action", - "display": { - "provider": "Microsoft Cache", - "resource": null, - "operation": "Check Cache Name Availability in location", - "description": "Checks if a name is available for use with a new Redis Enterprise cache" - }, - "properties": {} - }, - { - "name": "Microsoft.Cache/redis/write", - "display": { - "provider": "Microsoft Cache", - "resource": "Redis Cache", - "operation": "Manage Redis Cache (read-write)", - "description": "Modify the Redis Cache\u0027s settings and configuration in the management portal" - }, - "properties": {} - }, - { - "name": "Microsoft.Cache/redis/read", - "display": { - "provider": "Microsoft Cache", - "resource": "Redis Cache", - "operation": "Manage Redis Cache (read-only)", - "description": "View the Redis Cache\u0027s settings and configuration in the management portal" - }, - "properties": {} - }, - { - "name": "Microsoft.Cache/redis/delete", - "display": { - "provider": "Microsoft Cache", - "resource": "Redis Cache", - "operation": "Delete Redis Cache", - "description": "Delete the entire Redis Cache" - }, - "properties": {} - }, - { - "name": "Microsoft.Cache/redis/listKeys/action", - "display": { - "provider": "Microsoft Cache", - "resource": "Redis Cache", - "operation": "View Redis Cache Access Keys", - "description": "View the value of Redis Cache access keys in the management portal" - }, - "properties": {} - }, - { - "name": "Microsoft.Cache/redis/regenerateKey/action", - "display": { - "provider": "Microsoft Cache", - "resource": "Redis Cache", - "operation": "Regenerate Redis Cache Access Keys", - "description": "Change the value of Redis Cache access keys in the management portal" - }, - "properties": {} - }, - { - "name": "Microsoft.Cache/redis/import/action", - "display": { - "provider": "Microsoft Cache", - "resource": "Redis Cache", - "operation": "Import data into Redis from storage", - "description": "Import data of a specified format from multiple blobs into Redis" - }, - "properties": {} - }, - { - "name": "Microsoft.Cache/redis/export/action", - "display": { - "provider": "Microsoft Cache", - "resource": "Redis Cache", - "operation": "Export Redis data to storage", - "description": "Export Redis data to prefixed storage blobs in specified format" - }, - "properties": {} - }, - { - "name": "Microsoft.Cache/redis/forceReboot/action", - "display": { - "provider": "Microsoft Cache", - "resource": "Redis Cache", - "operation": "Force reboot a cache instance, potentially with data loss.", - "description": "Force reboot a cache instance, potentially with data loss." - }, - "properties": {} - }, - { - "name": "Microsoft.Cache/redis/stop/action", - "display": { - "provider": "Microsoft Cache", - "resource": "Redis Cache", - "operation": "Stop an Azure Cache for Redis, potentially with data loss.", - "description": "Stop an Azure Cache for Redis, potentially with data loss." - }, - "properties": {} - }, - { - "name": "Microsoft.Cache/redis/start/action", - "display": { - "provider": "Microsoft Cache", - "resource": "Redis Cache", - "operation": "Start an Azure Cache for Redis", - "description": "Start an Azure Cache for Redis" - }, - "properties": {} - }, - { - "name": "Microsoft.Cache/redisEnterprise/delete", - "display": { - "provider": "Microsoft Cache", - "resource": "Redis Enterprise cache", - "operation": "Delete Redis Enterprise cache", - "description": "Delete the entire Redis Enterprise cache" - }, - "properties": {} - }, - { - "name": "Microsoft.Cache/redisEnterprise/read", - "display": { - "provider": "Microsoft Cache", - "resource": "Redis Enterprise cache", - "operation": "Manage Redis Enterprise cache (read)", - "description": "View the Redis Enterprise cache\u0027s settings and configuration in the management portal" - }, - "properties": {} - }, - { - "name": "Microsoft.Cache/redisEnterprise/write", - "display": { - "provider": "Microsoft Cache", - "resource": "Redis Enterprise cache", - "operation": "Manage Redis Enterprise cache (write)", - "description": "Modify the Redis Enterprise cache\u0027s settings and configuration in the management portal" - }, - "properties": {} - }, - { - "name": "Microsoft.Cache/redisEnterprise/databases/delete", - "display": { - "provider": "Microsoft Cache", - "resource": "Redis Enterprise cache database", - "operation": "Delete Redis Enterprise database", - "description": "Deletes a Redis Enterprise database and its contents" - }, - "properties": {} - }, - { - "name": "Microsoft.Cache/redisEnterprise/databases/read", - "display": { - "provider": "Microsoft Cache", - "resource": "Redis Enterprise cache database", - "operation": "Manage Redis Enterprise cache database (read)", - "description": "View the Redis Enterprise cache database\u0027s settings and configuration in the management portal" - }, - "properties": {} - }, - { - "name": "Microsoft.Cache/redisEnterprise/databases/write", - "display": { - "provider": "Microsoft Cache", - "resource": "Redis Enterprise cache database", - "operation": "Manage Redis Enterprise cache database (write)", - "description": "Modify the Redis Enterprise cache database\u0027s settings and configuration in the management portal" - }, - "properties": {} - }, - { - "name": "Microsoft.Cache/redisEnterprise/databases/export/action", - "display": { - "provider": "Microsoft Cache", - "resource": "Redis Enterprise cache database", - "operation": "Export Redis Enterprise database", - "description": "Export data to storage blobs from a Redis Enterprise database " - }, - "properties": {} - }, - { - "name": "Microsoft.Cache/redisEnterprise/databases/forceUnlink/action", - "display": { - "provider": "Microsoft Cache", - "resource": "Redis Enterprise cache database", - "operation": "Force unlink Redis Enterprise database georeplica", - "description": "Forcibly unlink a georeplica Redis Enterprise database from its peers" - }, - "properties": {} - }, - { - "name": "Microsoft.Cache/redisEnterprise/databases/import/action", - "display": { - "provider": "Microsoft Cache", - "resource": "Redis Enterprise cache database", - "operation": "Import Redis Enterprise database", - "description": "Import data from storage blobs to a Redis Enterprise database" - }, - "properties": {} - }, - { - "name": "Microsoft.Cache/redisEnterprise/databases/listKeys/action", - "display": { - "provider": "Microsoft Cache", - "resource": "Redis Enterprise cache database", - "operation": "View Redis Enterprise database access keys", - "description": "View the value of Redis Enterprise database access keys in the management portal" - }, - "properties": {} - }, - { - "name": "Microsoft.Cache/redisEnterprise/databases/regenerateKey/action", - "display": { - "provider": "Microsoft Cache", - "resource": "Redis Enterprise cache database", - "operation": "Regenerate Redis Enterprise database access keys", - "description": "Change the value of Redis Enterprise database access keys in the management portal" - }, - "properties": {} - }, - { - "name": "Microsoft.Cache/redisEnterprise/databases/operationResults/read", - "display": { - "provider": "Microsoft Cache", - "resource": "Redis Enterprise database operation results", - "operation": "View Redis Enterprise database operation results", - "description": "View the result of Redis Enterprise database operations in the management portal" - }, - "properties": {} - }, - { - "name": "Microsoft.Cache/redisEnterprise/operationResults/read", - "display": { - "provider": "Microsoft Cache", - "resource": "Redis Enterprise operation results", - "operation": "View Redis Enterprise operation results", - "description": "View the result of Redis Enterprise operations in the management portal" - }, - "properties": {} - }, - { - "name": "Microsoft.Cache/redis/metricDefinitions/read", - "display": { - "provider": "Microsoft Cache", - "resource": "The available metrics for a Redis Cache", - "operation": "Read Redis Cache Metric Definitions", - "description": "Gets the available metrics for a Redis Cache" - }, - "properties": { - "serviceSpecification": { - "metricSpecifications": [ - { - "name": "connectedclients", - "displayName": "Connected Clients", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Maximum", - "description": "The number of client connections to the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": [ - { - "Name": "ShardId", - "DisplayName": "ShardId", - "ToBeExportedForShoebox": true - } - ], - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "totalcommandsprocessed", - "displayName": "Total Operations", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The total number of commands processed by the cache server. For more details, see https://aka.ms/redis/metrics.", - "dimensions": [ - { - "Name": "ShardId", - "DisplayName": "ShardId", - "ToBeExportedForShoebox": true - } - ], - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "cachehits", - "displayName": "Cache Hits", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The number of successful key lookups. For more details, see https://aka.ms/redis/metrics.", - "dimensions": [ - { - "Name": "ShardId", - "DisplayName": "ShardId", - "ToBeExportedForShoebox": true - } - ], - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "cachemisses", - "displayName": "Cache Misses", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The number of failed key lookups. For more details, see https://aka.ms/redis/metrics.", - "dimensions": [ - { - "Name": "ShardId", - "DisplayName": "ShardId", - "ToBeExportedForShoebox": true - } - ], - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "cachemissrate", - "displayName": "Cache Miss Rate", - "displayDescription": null, - "unit": "Percent", - "aggregationType": "cachemissrate", - "description": "The % of get requests that miss. For more details, see https://aka.ms/redis/metrics.", - "dimensions": [ - { - "Name": "ShardId", - "DisplayName": "ShardId", - "ToBeExportedForShoebox": true - } - ], - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "getcommands", - "displayName": "Gets", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The number of get operations from the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": [ - { - "Name": "ShardId", - "DisplayName": "ShardId", - "ToBeExportedForShoebox": true - } - ], - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "setcommands", - "displayName": "Sets", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The number of set operations to the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": [ - { - "Name": "ShardId", - "DisplayName": "ShardId", - "ToBeExportedForShoebox": true - } - ], - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "operationsPerSecond", - "displayName": "Operations Per Second", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Maximum", - "description": "The number of instantaneous operations per second executed on the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": [ - { - "Name": "ShardId", - "DisplayName": "ShardId", - "ToBeExportedForShoebox": true - } - ], - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "evictedkeys", - "displayName": "Evicted Keys", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The number of items evicted from the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": [ - { - "Name": "ShardId", - "DisplayName": "ShardId", - "ToBeExportedForShoebox": true - } - ], - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "totalkeys", - "displayName": "Total Keys", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Maximum", - "description": "The total number of items in the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": [ - { - "Name": "ShardId", - "DisplayName": "ShardId", - "ToBeExportedForShoebox": true - } - ], - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "expiredkeys", - "displayName": "Expired Keys", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The number of items expired from the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": [ - { - "Name": "ShardId", - "DisplayName": "ShardId", - "ToBeExportedForShoebox": true - } - ], - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "usedmemory", - "displayName": "Used Memory", - "displayDescription": null, - "unit": "Bytes", - "aggregationType": "Maximum", - "description": "The amount of cache memory used for key/value pairs in the cache in MB. For more details, see https://aka.ms/redis/metrics.", - "dimensions": [ - { - "Name": "ShardId", - "DisplayName": "ShardId", - "ToBeExportedForShoebox": true - } - ], - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "usedmemorypercentage", - "displayName": "Used Memory Percentage", - "displayDescription": null, - "unit": "Percent", - "aggregationType": "Maximum", - "description": "The percentage of cache memory used for key/value pairs. For more details, see https://aka.ms/redis/metrics.", - "dimensions": [ - { - "Name": "ShardId", - "DisplayName": "ShardId", - "ToBeExportedForShoebox": true - } - ], - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "usedmemoryRss", - "displayName": "Used Memory RSS", - "displayDescription": null, - "unit": "Bytes", - "aggregationType": "Maximum", - "description": "The amount of cache memory used in MB, including fragmentation and metadata. For more details, see https://aka.ms/redis/metrics.", - "dimensions": [ - { - "Name": "ShardId", - "DisplayName": "ShardId", - "ToBeExportedForShoebox": true - } - ], - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "serverLoad", - "displayName": "Server Load", - "displayDescription": null, - "unit": "Percent", - "aggregationType": "Maximum", - "description": "The percentage of cycles in which the Redis server is busy processing and not waiting idle for messages. For more details, see https://aka.ms/redis/metrics.", - "dimensions": [ - { - "Name": "ShardId", - "DisplayName": "ShardId", - "ToBeExportedForShoebox": true - } - ], - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "cacheWrite", - "displayName": "Cache Write", - "displayDescription": null, - "unit": "BytesPerSecond", - "aggregationType": "Maximum", - "description": "The amount of data written to the cache in Megabytes per second (MB/s). For more details, see https://aka.ms/redis/metrics.", - "dimensions": [ - { - "Name": "ShardId", - "DisplayName": "ShardId", - "ToBeExportedForShoebox": true - } - ], - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "cacheRead", - "displayName": "Cache Read", - "displayDescription": null, - "unit": "BytesPerSecond", - "aggregationType": "Maximum", - "description": "The amount of data read from the cache in Megabytes per second (MB/s). For more details, see https://aka.ms/redis/metrics.", - "dimensions": [ - { - "Name": "ShardId", - "DisplayName": "ShardId", - "ToBeExportedForShoebox": true - } - ], - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "allconnectedclients", - "displayName": "Connected Clients (Instance Based)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Maximum", - "description": "The number of client connections to the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": [ - { - "Name": "ShardId", - "DisplayName": "ShardId", - "ToBeExportedForShoebox": true - }, - { - "Name": "Port", - "DisplayName": "Port", - "ToBeExportedForShoebox": true - }, - { - "Name": "Primary", - "DisplayName": "Primary", - "ToBeExportedForShoebox": true - } - ], - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "alltotalcommandsprocessed", - "displayName": "Total Operations (Instance Based)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The total number of commands processed by the cache server. For more details, see https://aka.ms/redis/metrics.", - "dimensions": [ - { - "Name": "ShardId", - "DisplayName": "ShardId", - "ToBeExportedForShoebox": true - }, - { - "Name": "Port", - "DisplayName": "Port", - "ToBeExportedForShoebox": true - }, - { - "Name": "Primary", - "DisplayName": "Primary", - "ToBeExportedForShoebox": true - } - ], - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "allcachehits", - "displayName": "Cache Hits (Instance Based)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The number of successful key lookups. For more details, see https://aka.ms/redis/metrics.", - "dimensions": [ - { - "Name": "ShardId", - "DisplayName": "ShardId", - "ToBeExportedForShoebox": true - }, - { - "Name": "Port", - "DisplayName": "Port", - "ToBeExportedForShoebox": true - }, - { - "Name": "Primary", - "DisplayName": "Primary", - "ToBeExportedForShoebox": true - } - ], - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "allcachemisses", - "displayName": "Cache Misses (Instance Based)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The number of failed key lookups. For more details, see https://aka.ms/redis/metrics.", - "dimensions": [ - { - "Name": "ShardId", - "DisplayName": "ShardId", - "ToBeExportedForShoebox": true - }, - { - "Name": "Port", - "DisplayName": "Port", - "ToBeExportedForShoebox": true - }, - { - "Name": "Primary", - "DisplayName": "Primary", - "ToBeExportedForShoebox": true - } - ], - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "allgetcommands", - "displayName": "Gets (Instance Based)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The number of get operations from the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": [ - { - "Name": "ShardId", - "DisplayName": "ShardId", - "ToBeExportedForShoebox": true - }, - { - "Name": "Port", - "DisplayName": "Port", - "ToBeExportedForShoebox": true - }, - { - "Name": "Primary", - "DisplayName": "Primary", - "ToBeExportedForShoebox": true - } - ], - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "allsetcommands", - "displayName": "Sets (Instance Based)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The number of set operations to the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": [ - { - "Name": "ShardId", - "DisplayName": "ShardId", - "ToBeExportedForShoebox": true - }, - { - "Name": "Port", - "DisplayName": "Port", - "ToBeExportedForShoebox": true - }, - { - "Name": "Primary", - "DisplayName": "Primary", - "ToBeExportedForShoebox": true - } - ], - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "alloperationsPerSecond", - "displayName": "Operations Per Second (Instance Based)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Maximum", - "description": "The number of instantaneous operations per second executed on the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": [ - { - "Name": "ShardId", - "DisplayName": "ShardId", - "ToBeExportedForShoebox": true - }, - { - "Name": "Port", - "DisplayName": "Port", - "ToBeExportedForShoebox": true - }, - { - "Name": "Primary", - "DisplayName": "Primary", - "ToBeExportedForShoebox": true - } - ], - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "allevictedkeys", - "displayName": "Evicted Keys (Instance Based)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The number of items evicted from the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": [ - { - "Name": "ShardId", - "DisplayName": "ShardId", - "ToBeExportedForShoebox": true - }, - { - "Name": "Port", - "DisplayName": "Port", - "ToBeExportedForShoebox": true - }, - { - "Name": "Primary", - "DisplayName": "Primary", - "ToBeExportedForShoebox": true - } - ], - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "alltotalkeys", - "displayName": "Total Keys (Instance Based)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Maximum", - "description": "The total number of items in the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": [ - { - "Name": "ShardId", - "DisplayName": "ShardId", - "ToBeExportedForShoebox": true - }, - { - "Name": "Port", - "DisplayName": "Port", - "ToBeExportedForShoebox": true - }, - { - "Name": "Primary", - "DisplayName": "Primary", - "ToBeExportedForShoebox": true - } - ], - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "allexpiredkeys", - "displayName": "Expired Keys (Instance Based)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The number of items expired from the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": [ - { - "Name": "ShardId", - "DisplayName": "ShardId", - "ToBeExportedForShoebox": true - }, - { - "Name": "Port", - "DisplayName": "Port", - "ToBeExportedForShoebox": true - }, - { - "Name": "Primary", - "DisplayName": "Primary", - "ToBeExportedForShoebox": true - } - ], - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "allusedmemory", - "displayName": "Used Memory (Instance Based)", - "displayDescription": null, - "unit": "Bytes", - "aggregationType": "Maximum", - "description": "The amount of cache memory used for key/value pairs in the cache in MB. For more details, see https://aka.ms/redis/metrics.", - "dimensions": [ - { - "Name": "ShardId", - "DisplayName": "ShardId", - "ToBeExportedForShoebox": true - }, - { - "Name": "Port", - "DisplayName": "Port", - "ToBeExportedForShoebox": true - }, - { - "Name": "Primary", - "DisplayName": "Primary", - "ToBeExportedForShoebox": true - } - ], - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "allusedmemorypercentage", - "displayName": "Used Memory Percentage (Instance Based)", - "displayDescription": null, - "unit": "Percent", - "aggregationType": "Maximum", - "description": "The percentage of cache memory used for key/value pairs. For more details, see https://aka.ms/redis/metrics.", - "dimensions": [ - { - "Name": "ShardId", - "DisplayName": "ShardId", - "ToBeExportedForShoebox": true - }, - { - "Name": "Port", - "DisplayName": "Port", - "ToBeExportedForShoebox": true - }, - { - "Name": "Primary", - "DisplayName": "Primary", - "ToBeExportedForShoebox": true - } - ], - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "allusedmemoryRss", - "displayName": "Used Memory RSS (Instance Based)", - "displayDescription": null, - "unit": "Bytes", - "aggregationType": "Maximum", - "description": "The amount of cache memory used in MB, including fragmentation and metadata. For more details, see https://aka.ms/redis/metrics.", - "dimensions": [ - { - "Name": "ShardId", - "DisplayName": "ShardId", - "ToBeExportedForShoebox": true - }, - { - "Name": "Port", - "DisplayName": "Port", - "ToBeExportedForShoebox": true - }, - { - "Name": "Primary", - "DisplayName": "Primary", - "ToBeExportedForShoebox": true - } - ], - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "allserverLoad", - "displayName": "Server Load (Instance Based)", - "displayDescription": null, - "unit": "Percent", - "aggregationType": "Maximum", - "description": "The percentage of cycles in which the Redis server is busy processing and not waiting idle for messages. For more details, see https://aka.ms/redis/metrics.", - "dimensions": [ - { - "Name": "ShardId", - "DisplayName": "ShardId", - "ToBeExportedForShoebox": true - }, - { - "Name": "Port", - "DisplayName": "Port", - "ToBeExportedForShoebox": true - }, - { - "Name": "Primary", - "DisplayName": "Primary", - "ToBeExportedForShoebox": true - } - ], - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "allcacheWrite", - "displayName": "Cache Write (Instance Based)", - "displayDescription": null, - "unit": "BytesPerSecond", - "aggregationType": "Maximum", - "description": "The amount of data written to the cache in Megabytes per second (MB/s). For more details, see https://aka.ms/redis/metrics.", - "dimensions": [ - { - "Name": "ShardId", - "DisplayName": "ShardId", - "ToBeExportedForShoebox": true - }, - { - "Name": "Port", - "DisplayName": "Port", - "ToBeExportedForShoebox": true - }, - { - "Name": "Primary", - "DisplayName": "Primary", - "ToBeExportedForShoebox": true - } - ], - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "allcacheRead", - "displayName": "Cache Read (Instance Based)", - "displayDescription": null, - "unit": "BytesPerSecond", - "aggregationType": "Maximum", - "description": "The amount of data read from the cache in Megabytes per second (MB/s). For more details, see https://aka.ms/redis/metrics.", - "dimensions": [ - { - "Name": "ShardId", - "DisplayName": "ShardId", - "ToBeExportedForShoebox": true - }, - { - "Name": "Port", - "DisplayName": "Port", - "ToBeExportedForShoebox": true - }, - { - "Name": "Primary", - "DisplayName": "Primary", - "ToBeExportedForShoebox": true - } - ], - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "allpercentprocessortime", - "displayName": "CPU (Instance Based)", - "displayDescription": null, - "unit": "Percent", - "aggregationType": "Maximum", - "description": "The CPU utilization of the Azure Redis Cache server as a percentage. For more details, see https://aka.ms/redis/metrics.", - "dimensions": [ - { - "Name": "ShardId", - "DisplayName": "ShardId", - "ToBeExportedForShoebox": true - }, - { - "Name": "Port", - "DisplayName": "Port", - "ToBeExportedForShoebox": true - }, - { - "Name": "Primary", - "DisplayName": "Primary", - "ToBeExportedForShoebox": true - } - ], - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "percentProcessorTime", - "displayName": "CPU", - "displayDescription": null, - "unit": "Percent", - "aggregationType": "Maximum", - "description": "The CPU utilization of the Azure Redis Cache server as a percentage. For more details, see https://aka.ms/redis/metrics.", - "dimensions": [ - { - "Name": "ShardId", - "DisplayName": "ShardId", - "ToBeExportedForShoebox": true - } - ], - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "cacheLatency", - "displayName": "Cache Latency Microseconds (Preview)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Average", - "description": "The latency to the cache in microseconds. For more details, see https://aka.ms/redis/metrics.", - "dimensions": [ - { - "Name": "ShardId", - "DisplayName": "ShardId", - "ToBeExportedForShoebox": true - } - ], - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "errors", - "displayName": "Errors", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Maximum", - "description": "The number errors that occured on the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": [ - { - "Name": "ShardId", - "DisplayName": "ShardId", - "ToBeExportedForShoebox": true - }, - { - "Name": "ErrorType", - "DisplayName": "ErrorType", - "ToBeExportedForShoebox": true - } - ], - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "connectedclients0", - "displayName": "Connected Clients (Shard 0)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Maximum", - "description": "The number of client connections to the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "totalcommandsprocessed0", - "displayName": "Total Operations (Shard 0)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The total number of commands processed by the cache server. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "cachehits0", - "displayName": "Cache Hits (Shard 0)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The number of successful key lookups. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "cachemisses0", - "displayName": "Cache Misses (Shard 0)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The number of failed key lookups. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "getcommands0", - "displayName": "Gets (Shard 0)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The number of get operations from the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "setcommands0", - "displayName": "Sets (Shard 0)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The number of set operations to the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "operationsPerSecond0", - "displayName": "Operations Per Second (Shard 0)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Maximum", - "description": "The number of instantaneous operations per second executed on the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "evictedkeys0", - "displayName": "Evicted Keys (Shard 0)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The number of items evicted from the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "totalkeys0", - "displayName": "Total Keys (Shard 0)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Maximum", - "description": "The total number of items in the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "expiredkeys0", - "displayName": "Expired Keys (Shard 0)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The number of items expired from the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "usedmemory0", - "displayName": "Used Memory (Shard 0)", - "displayDescription": null, - "unit": "Bytes", - "aggregationType": "Maximum", - "description": "The amount of cache memory used for key/value pairs in the cache in MB. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "usedmemoryRss0", - "displayName": "Used Memory RSS (Shard 0)", - "displayDescription": null, - "unit": "Bytes", - "aggregationType": "Maximum", - "description": "The amount of cache memory used in MB, including fragmentation and metadata. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "serverLoad0", - "displayName": "Server Load (Shard 0)", - "displayDescription": null, - "unit": "Percent", - "aggregationType": "Maximum", - "description": "The percentage of cycles in which the Redis server is busy processing and not waiting idle for messages. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "cacheWrite0", - "displayName": "Cache Write (Shard 0)", - "displayDescription": null, - "unit": "BytesPerSecond", - "aggregationType": "Maximum", - "description": "The amount of data written to the cache in Megabytes per second (MB/s). For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "cacheRead0", - "displayName": "Cache Read (Shard 0)", - "displayDescription": null, - "unit": "BytesPerSecond", - "aggregationType": "Maximum", - "description": "The amount of data read from the cache in Megabytes per second (MB/s). For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "percentProcessorTime0", - "displayName": "CPU (Shard 0)", - "displayDescription": null, - "unit": "Percent", - "aggregationType": "Maximum", - "description": "The CPU utilization of the Azure Redis Cache server as a percentage. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "connectedclients1", - "displayName": "Connected Clients (Shard 1)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Maximum", - "description": "The number of client connections to the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "totalcommandsprocessed1", - "displayName": "Total Operations (Shard 1)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The total number of commands processed by the cache server. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "cachehits1", - "displayName": "Cache Hits (Shard 1)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The number of successful key lookups. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "cachemisses1", - "displayName": "Cache Misses (Shard 1)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The number of failed key lookups. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "getcommands1", - "displayName": "Gets (Shard 1)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The number of get operations from the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "setcommands1", - "displayName": "Sets (Shard 1)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The number of set operations to the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "operationsPerSecond1", - "displayName": "Operations Per Second (Shard 1)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Maximum", - "description": "The number of instantaneous operations per second executed on the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "evictedkeys1", - "displayName": "Evicted Keys (Shard 1)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The number of items evicted from the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "totalkeys1", - "displayName": "Total Keys (Shard 1)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Maximum", - "description": "The total number of items in the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "expiredkeys1", - "displayName": "Expired Keys (Shard 1)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The number of items expired from the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "usedmemory1", - "displayName": "Used Memory (Shard 1)", - "displayDescription": null, - "unit": "Bytes", - "aggregationType": "Maximum", - "description": "The amount of cache memory used for key/value pairs in the cache in MB. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "usedmemoryRss1", - "displayName": "Used Memory RSS (Shard 1)", - "displayDescription": null, - "unit": "Bytes", - "aggregationType": "Maximum", - "description": "The amount of cache memory used in MB, including fragmentation and metadata. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "serverLoad1", - "displayName": "Server Load (Shard 1)", - "displayDescription": null, - "unit": "Percent", - "aggregationType": "Maximum", - "description": "The percentage of cycles in which the Redis server is busy processing and not waiting idle for messages. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "cacheWrite1", - "displayName": "Cache Write (Shard 1)", - "displayDescription": null, - "unit": "BytesPerSecond", - "aggregationType": "Maximum", - "description": "The amount of data written to the cache in Megabytes per second (MB/s). For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "cacheRead1", - "displayName": "Cache Read (Shard 1)", - "displayDescription": null, - "unit": "BytesPerSecond", - "aggregationType": "Maximum", - "description": "The amount of data read from the cache in Megabytes per second (MB/s). For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "percentProcessorTime1", - "displayName": "CPU (Shard 1)", - "displayDescription": null, - "unit": "Percent", - "aggregationType": "Maximum", - "description": "The CPU utilization of the Azure Redis Cache server as a percentage. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "connectedclients2", - "displayName": "Connected Clients (Shard 2)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Maximum", - "description": "The number of client connections to the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "totalcommandsprocessed2", - "displayName": "Total Operations (Shard 2)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The total number of commands processed by the cache server. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "cachehits2", - "displayName": "Cache Hits (Shard 2)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The number of successful key lookups. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "cachemisses2", - "displayName": "Cache Misses (Shard 2)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The number of failed key lookups. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "getcommands2", - "displayName": "Gets (Shard 2)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The number of get operations from the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "setcommands2", - "displayName": "Sets (Shard 2)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The number of set operations to the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "operationsPerSecond2", - "displayName": "Operations Per Second (Shard 2)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Maximum", - "description": "The number of instantaneous operations per second executed on the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "evictedkeys2", - "displayName": "Evicted Keys (Shard 2)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The number of items evicted from the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "totalkeys2", - "displayName": "Total Keys (Shard 2)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Maximum", - "description": "The total number of items in the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "expiredkeys2", - "displayName": "Expired Keys (Shard 2)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The number of items expired from the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "usedmemory2", - "displayName": "Used Memory (Shard 2)", - "displayDescription": null, - "unit": "Bytes", - "aggregationType": "Maximum", - "description": "The amount of cache memory used for key/value pairs in the cache in MB. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "usedmemoryRss2", - "displayName": "Used Memory RSS (Shard 2)", - "displayDescription": null, - "unit": "Bytes", - "aggregationType": "Maximum", - "description": "The amount of cache memory used in MB, including fragmentation and metadata. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "serverLoad2", - "displayName": "Server Load (Shard 2)", - "displayDescription": null, - "unit": "Percent", - "aggregationType": "Maximum", - "description": "The percentage of cycles in which the Redis server is busy processing and not waiting idle for messages. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "cacheWrite2", - "displayName": "Cache Write (Shard 2)", - "displayDescription": null, - "unit": "BytesPerSecond", - "aggregationType": "Maximum", - "description": "The amount of data written to the cache in Megabytes per second (MB/s). For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "cacheRead2", - "displayName": "Cache Read (Shard 2)", - "displayDescription": null, - "unit": "BytesPerSecond", - "aggregationType": "Maximum", - "description": "The amount of data read from the cache in Megabytes per second (MB/s). For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "percentProcessorTime2", - "displayName": "CPU (Shard 2)", - "displayDescription": null, - "unit": "Percent", - "aggregationType": "Maximum", - "description": "The CPU utilization of the Azure Redis Cache server as a percentage. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "connectedclients3", - "displayName": "Connected Clients (Shard 3)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Maximum", - "description": "The number of client connections to the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "totalcommandsprocessed3", - "displayName": "Total Operations (Shard 3)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The total number of commands processed by the cache server. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "cachehits3", - "displayName": "Cache Hits (Shard 3)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The number of successful key lookups. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "cachemisses3", - "displayName": "Cache Misses (Shard 3)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The number of failed key lookups. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "getcommands3", - "displayName": "Gets (Shard 3)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The number of get operations from the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "setcommands3", - "displayName": "Sets (Shard 3)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The number of set operations to the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "operationsPerSecond3", - "displayName": "Operations Per Second (Shard 3)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Maximum", - "description": "The number of instantaneous operations per second executed on the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "evictedkeys3", - "displayName": "Evicted Keys (Shard 3)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The number of items evicted from the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "totalkeys3", - "displayName": "Total Keys (Shard 3)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Maximum", - "description": "The total number of items in the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "expiredkeys3", - "displayName": "Expired Keys (Shard 3)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The number of items expired from the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "usedmemory3", - "displayName": "Used Memory (Shard 3)", - "displayDescription": null, - "unit": "Bytes", - "aggregationType": "Maximum", - "description": "The amount of cache memory used for key/value pairs in the cache in MB. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "usedmemoryRss3", - "displayName": "Used Memory RSS (Shard 3)", - "displayDescription": null, - "unit": "Bytes", - "aggregationType": "Maximum", - "description": "The amount of cache memory used in MB, including fragmentation and metadata. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "serverLoad3", - "displayName": "Server Load (Shard 3)", - "displayDescription": null, - "unit": "Percent", - "aggregationType": "Maximum", - "description": "The percentage of cycles in which the Redis server is busy processing and not waiting idle for messages. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "cacheWrite3", - "displayName": "Cache Write (Shard 3)", - "displayDescription": null, - "unit": "BytesPerSecond", - "aggregationType": "Maximum", - "description": "The amount of data written to the cache in Megabytes per second (MB/s). For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "cacheRead3", - "displayName": "Cache Read (Shard 3)", - "displayDescription": null, - "unit": "BytesPerSecond", - "aggregationType": "Maximum", - "description": "The amount of data read from the cache in Megabytes per second (MB/s). For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "percentProcessorTime3", - "displayName": "CPU (Shard 3)", - "displayDescription": null, - "unit": "Percent", - "aggregationType": "Maximum", - "description": "The CPU utilization of the Azure Redis Cache server as a percentage. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "connectedclients4", - "displayName": "Connected Clients (Shard 4)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Maximum", - "description": "The number of client connections to the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "totalcommandsprocessed4", - "displayName": "Total Operations (Shard 4)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The total number of commands processed by the cache server. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "cachehits4", - "displayName": "Cache Hits (Shard 4)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The number of successful key lookups. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "cachemisses4", - "displayName": "Cache Misses (Shard 4)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The number of failed key lookups. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "getcommands4", - "displayName": "Gets (Shard 4)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The number of get operations from the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "setcommands4", - "displayName": "Sets (Shard 4)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The number of set operations to the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "operationsPerSecond4", - "displayName": "Operations Per Second (Shard 4)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Maximum", - "description": "The number of instantaneous operations per second executed on the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "evictedkeys4", - "displayName": "Evicted Keys (Shard 4)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The number of items evicted from the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "totalkeys4", - "displayName": "Total Keys (Shard 4)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Maximum", - "description": "The total number of items in the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "expiredkeys4", - "displayName": "Expired Keys (Shard 4)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The number of items expired from the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "usedmemory4", - "displayName": "Used Memory (Shard 4)", - "displayDescription": null, - "unit": "Bytes", - "aggregationType": "Maximum", - "description": "The amount of cache memory used for key/value pairs in the cache in MB. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "usedmemoryRss4", - "displayName": "Used Memory RSS (Shard 4)", - "displayDescription": null, - "unit": "Bytes", - "aggregationType": "Maximum", - "description": "The amount of cache memory used in MB, including fragmentation and metadata. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "serverLoad4", - "displayName": "Server Load (Shard 4)", - "displayDescription": null, - "unit": "Percent", - "aggregationType": "Maximum", - "description": "The percentage of cycles in which the Redis server is busy processing and not waiting idle for messages. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "cacheWrite4", - "displayName": "Cache Write (Shard 4)", - "displayDescription": null, - "unit": "BytesPerSecond", - "aggregationType": "Maximum", - "description": "The amount of data written to the cache in Megabytes per second (MB/s). For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "cacheRead4", - "displayName": "Cache Read (Shard 4)", - "displayDescription": null, - "unit": "BytesPerSecond", - "aggregationType": "Maximum", - "description": "The amount of data read from the cache in Megabytes per second (MB/s). For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "percentProcessorTime4", - "displayName": "CPU (Shard 4)", - "displayDescription": null, - "unit": "Percent", - "aggregationType": "Maximum", - "description": "The CPU utilization of the Azure Redis Cache server as a percentage. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "connectedclients5", - "displayName": "Connected Clients (Shard 5)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Maximum", - "description": "The number of client connections to the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "totalcommandsprocessed5", - "displayName": "Total Operations (Shard 5)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The total number of commands processed by the cache server. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "cachehits5", - "displayName": "Cache Hits (Shard 5)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The number of successful key lookups. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "cachemisses5", - "displayName": "Cache Misses (Shard 5)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The number of failed key lookups. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "getcommands5", - "displayName": "Gets (Shard 5)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The number of get operations from the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "setcommands5", - "displayName": "Sets (Shard 5)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The number of set operations to the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "operationsPerSecond5", - "displayName": "Operations Per Second (Shard 5)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Maximum", - "description": "The number of instantaneous operations per second executed on the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "evictedkeys5", - "displayName": "Evicted Keys (Shard 5)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The number of items evicted from the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "totalkeys5", - "displayName": "Total Keys (Shard 5)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Maximum", - "description": "The total number of items in the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "expiredkeys5", - "displayName": "Expired Keys (Shard 5)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The number of items expired from the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "usedmemory5", - "displayName": "Used Memory (Shard 5)", - "displayDescription": null, - "unit": "Bytes", - "aggregationType": "Maximum", - "description": "The amount of cache memory used for key/value pairs in the cache in MB. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "usedmemoryRss5", - "displayName": "Used Memory RSS (Shard 5)", - "displayDescription": null, - "unit": "Bytes", - "aggregationType": "Maximum", - "description": "The amount of cache memory used in MB, including fragmentation and metadata. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "serverLoad5", - "displayName": "Server Load (Shard 5)", - "displayDescription": null, - "unit": "Percent", - "aggregationType": "Maximum", - "description": "The percentage of cycles in which the Redis server is busy processing and not waiting idle for messages. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "cacheWrite5", - "displayName": "Cache Write (Shard 5)", - "displayDescription": null, - "unit": "BytesPerSecond", - "aggregationType": "Maximum", - "description": "The amount of data written to the cache in Megabytes per second (MB/s). For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "cacheRead5", - "displayName": "Cache Read (Shard 5)", - "displayDescription": null, - "unit": "BytesPerSecond", - "aggregationType": "Maximum", - "description": "The amount of data read from the cache in Megabytes per second (MB/s). For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "percentProcessorTime5", - "displayName": "CPU (Shard 5)", - "displayDescription": null, - "unit": "Percent", - "aggregationType": "Maximum", - "description": "The CPU utilization of the Azure Redis Cache server as a percentage. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "connectedclients6", - "displayName": "Connected Clients (Shard 6)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Maximum", - "description": "The number of client connections to the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "totalcommandsprocessed6", - "displayName": "Total Operations (Shard 6)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The total number of commands processed by the cache server. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "cachehits6", - "displayName": "Cache Hits (Shard 6)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The number of successful key lookups. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "cachemisses6", - "displayName": "Cache Misses (Shard 6)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The number of failed key lookups. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "getcommands6", - "displayName": "Gets (Shard 6)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The number of get operations from the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "setcommands6", - "displayName": "Sets (Shard 6)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The number of set operations to the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "operationsPerSecond6", - "displayName": "Operations Per Second (Shard 6)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Maximum", - "description": "The number of instantaneous operations per second executed on the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "evictedkeys6", - "displayName": "Evicted Keys (Shard 6)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The number of items evicted from the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "totalkeys6", - "displayName": "Total Keys (Shard 6)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Maximum", - "description": "The total number of items in the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "expiredkeys6", - "displayName": "Expired Keys (Shard 6)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The number of items expired from the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "usedmemory6", - "displayName": "Used Memory (Shard 6)", - "displayDescription": null, - "unit": "Bytes", - "aggregationType": "Maximum", - "description": "The amount of cache memory used for key/value pairs in the cache in MB. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "usedmemoryRss6", - "displayName": "Used Memory RSS (Shard 6)", - "displayDescription": null, - "unit": "Bytes", - "aggregationType": "Maximum", - "description": "The amount of cache memory used in MB, including fragmentation and metadata. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "serverLoad6", - "displayName": "Server Load (Shard 6)", - "displayDescription": null, - "unit": "Percent", - "aggregationType": "Maximum", - "description": "The percentage of cycles in which the Redis server is busy processing and not waiting idle for messages. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "cacheWrite6", - "displayName": "Cache Write (Shard 6)", - "displayDescription": null, - "unit": "BytesPerSecond", - "aggregationType": "Maximum", - "description": "The amount of data written to the cache in Megabytes per second (MB/s). For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "cacheRead6", - "displayName": "Cache Read (Shard 6)", - "displayDescription": null, - "unit": "BytesPerSecond", - "aggregationType": "Maximum", - "description": "The amount of data read from the cache in Megabytes per second (MB/s). For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "percentProcessorTime6", - "displayName": "CPU (Shard 6)", - "displayDescription": null, - "unit": "Percent", - "aggregationType": "Maximum", - "description": "The CPU utilization of the Azure Redis Cache server as a percentage. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "connectedclients7", - "displayName": "Connected Clients (Shard 7)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Maximum", - "description": "The number of client connections to the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "totalcommandsprocessed7", - "displayName": "Total Operations (Shard 7)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The total number of commands processed by the cache server. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "cachehits7", - "displayName": "Cache Hits (Shard 7)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The number of successful key lookups. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "cachemisses7", - "displayName": "Cache Misses (Shard 7)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The number of failed key lookups. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "getcommands7", - "displayName": "Gets (Shard 7)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The number of get operations from the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "setcommands7", - "displayName": "Sets (Shard 7)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The number of set operations to the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "operationsPerSecond7", - "displayName": "Operations Per Second (Shard 7)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Maximum", - "description": "The number of instantaneous operations per second executed on the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "evictedkeys7", - "displayName": "Evicted Keys (Shard 7)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The number of items evicted from the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "totalkeys7", - "displayName": "Total Keys (Shard 7)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Maximum", - "description": "The total number of items in the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "expiredkeys7", - "displayName": "Expired Keys (Shard 7)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The number of items expired from the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "usedmemory7", - "displayName": "Used Memory (Shard 7)", - "displayDescription": null, - "unit": "Bytes", - "aggregationType": "Maximum", - "description": "The amount of cache memory used for key/value pairs in the cache in MB. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "usedmemoryRss7", - "displayName": "Used Memory RSS (Shard 7)", - "displayDescription": null, - "unit": "Bytes", - "aggregationType": "Maximum", - "description": "The amount of cache memory used in MB, including fragmentation and metadata. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "serverLoad7", - "displayName": "Server Load (Shard 7)", - "displayDescription": null, - "unit": "Percent", - "aggregationType": "Maximum", - "description": "The percentage of cycles in which the Redis server is busy processing and not waiting idle for messages. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "cacheWrite7", - "displayName": "Cache Write (Shard 7)", - "displayDescription": null, - "unit": "BytesPerSecond", - "aggregationType": "Maximum", - "description": "The amount of data written to the cache in Megabytes per second (MB/s). For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "cacheRead7", - "displayName": "Cache Read (Shard 7)", - "displayDescription": null, - "unit": "BytesPerSecond", - "aggregationType": "Maximum", - "description": "The amount of data read from the cache in Megabytes per second (MB/s). For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "percentProcessorTime7", - "displayName": "CPU (Shard 7)", - "displayDescription": null, - "unit": "Percent", - "aggregationType": "Maximum", - "description": "The CPU utilization of the Azure Redis Cache server as a percentage. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "connectedclients8", - "displayName": "Connected Clients (Shard 8)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Maximum", - "description": "The number of client connections to the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "totalcommandsprocessed8", - "displayName": "Total Operations (Shard 8)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The total number of commands processed by the cache server. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "cachehits8", - "displayName": "Cache Hits (Shard 8)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The number of successful key lookups. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "cachemisses8", - "displayName": "Cache Misses (Shard 8)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The number of failed key lookups. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "getcommands8", - "displayName": "Gets (Shard 8)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The number of get operations from the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "setcommands8", - "displayName": "Sets (Shard 8)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The number of set operations to the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "operationsPerSecond8", - "displayName": "Operations Per Second (Shard 8)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Maximum", - "description": "The number of instantaneous operations per second executed on the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "evictedkeys8", - "displayName": "Evicted Keys (Shard 8)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The number of items evicted from the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "totalkeys8", - "displayName": "Total Keys (Shard 8)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Maximum", - "description": "The total number of items in the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "expiredkeys8", - "displayName": "Expired Keys (Shard 8)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The number of items expired from the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "usedmemory8", - "displayName": "Used Memory (Shard 8)", - "displayDescription": null, - "unit": "Bytes", - "aggregationType": "Maximum", - "description": "The amount of cache memory used for key/value pairs in the cache in MB. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "usedmemoryRss8", - "displayName": "Used Memory RSS (Shard 8)", - "displayDescription": null, - "unit": "Bytes", - "aggregationType": "Maximum", - "description": "The amount of cache memory used in MB, including fragmentation and metadata. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "serverLoad8", - "displayName": "Server Load (Shard 8)", - "displayDescription": null, - "unit": "Percent", - "aggregationType": "Maximum", - "description": "The percentage of cycles in which the Redis server is busy processing and not waiting idle for messages. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "cacheWrite8", - "displayName": "Cache Write (Shard 8)", - "displayDescription": null, - "unit": "BytesPerSecond", - "aggregationType": "Maximum", - "description": "The amount of data written to the cache in Megabytes per second (MB/s). For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "cacheRead8", - "displayName": "Cache Read (Shard 8)", - "displayDescription": null, - "unit": "BytesPerSecond", - "aggregationType": "Maximum", - "description": "The amount of data read from the cache in Megabytes per second (MB/s). For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "percentProcessorTime8", - "displayName": "CPU (Shard 8)", - "displayDescription": null, - "unit": "Percent", - "aggregationType": "Maximum", - "description": "The CPU utilization of the Azure Redis Cache server as a percentage. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "connectedclients9", - "displayName": "Connected Clients (Shard 9)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Maximum", - "description": "The number of client connections to the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "totalcommandsprocessed9", - "displayName": "Total Operations (Shard 9)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The total number of commands processed by the cache server. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "cachehits9", - "displayName": "Cache Hits (Shard 9)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The number of successful key lookups. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "cachemisses9", - "displayName": "Cache Misses (Shard 9)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The number of failed key lookups. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "getcommands9", - "displayName": "Gets (Shard 9)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The number of get operations from the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "setcommands9", - "displayName": "Sets (Shard 9)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The number of set operations to the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "operationsPerSecond9", - "displayName": "Operations Per Second (Shard 9)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Maximum", - "description": "The number of instantaneous operations per second executed on the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "evictedkeys9", - "displayName": "Evicted Keys (Shard 9)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The number of items evicted from the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "totalkeys9", - "displayName": "Total Keys (Shard 9)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Maximum", - "description": "The total number of items in the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "expiredkeys9", - "displayName": "Expired Keys (Shard 9)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The number of items expired from the cache. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "usedmemory9", - "displayName": "Used Memory (Shard 9)", - "displayDescription": null, - "unit": "Bytes", - "aggregationType": "Maximum", - "description": "The amount of cache memory used for key/value pairs in the cache in MB. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "usedmemoryRss9", - "displayName": "Used Memory RSS (Shard 9)", - "displayDescription": null, - "unit": "Bytes", - "aggregationType": "Maximum", - "description": "The amount of cache memory used in MB, including fragmentation and metadata. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "serverLoad9", - "displayName": "Server Load (Shard 9)", - "displayDescription": null, - "unit": "Percent", - "aggregationType": "Maximum", - "description": "The percentage of cycles in which the Redis server is busy processing and not waiting idle for messages. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "cacheWrite9", - "displayName": "Cache Write (Shard 9)", - "displayDescription": null, - "unit": "BytesPerSecond", - "aggregationType": "Maximum", - "description": "The amount of data written to the cache in Megabytes per second (MB/s). For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "cacheRead9", - "displayName": "Cache Read (Shard 9)", - "displayDescription": null, - "unit": "BytesPerSecond", - "aggregationType": "Maximum", - "description": "The amount of data read from the cache in Megabytes per second (MB/s). For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "percentProcessorTime9", - "displayName": "CPU (Shard 9)", - "displayDescription": null, - "unit": "Percent", - "aggregationType": "Maximum", - "description": "The CPU utilization of the Azure Redis Cache server as a percentage. For more details, see https://aka.ms/redis/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - } - ] - } - } - }, - { - "name": "Microsoft.Cache/redisEnterprise/providers/Microsoft.Insights/metricDefinitions/read", - "display": { - "provider": "Microsoft Cache", - "resource": "The available metrics for a Redis Enterprise Cache", - "operation": "Read Redis Enterprise Metric Definitions", - "description": "Gets the available metrics for a Redis Enterprise Cache" - }, - "properties": { - "serviceSpecification": { - "metricSpecifications": [ - { - "name": "connectedclients", - "displayName": "Connected Clients", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Maximum", - "description": "The number of client connections to the cache. For more details, see https://aka.ms/redis/enterprise/metrics.", - "dimensions": [ - { - "Name": "InstanceId", - "DisplayName": "InstanceId", - "ToBeExportedForShoebox": true - } - ], - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "totalcommandsprocessed", - "displayName": "Total Operations", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The total number of commands processed by the cache server. For more details, see https://aka.ms/redis/enterprise/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "cachehits", - "displayName": "Cache Hits", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The number of successful key lookups. For more details, see https://aka.ms/redis/enterprise/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "cachemisses", - "displayName": "Cache Misses", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The number of failed key lookups. For more details, see https://aka.ms/redis/enterprise/metrics.", - "dimensions": [ - { - "Name": "InstanceId", - "DisplayName": "InstanceId", - "ToBeExportedForShoebox": true - } - ], - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "evictedkeys", - "displayName": "Evicted Keys", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The number of items evicted from the cache. For more details, see https://aka.ms/redis/enterprise/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "expiredkeys", - "displayName": "Expired Keys", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The number of items expired from the cache. For more details, see https://aka.ms/redis/enterprise/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "getcommands", - "displayName": "Gets", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The number of get operations from the cache. For more details, see https://aka.ms/redis/enterprise/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "setcommands", - "displayName": "Sets", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Total", - "description": "The number of set operations to the cache. For more details, see https://aka.ms/redis/enterprise/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "operationsPerSecond", - "displayName": "Operations Per Second", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Maximum", - "description": "The number of instantaneous operations per second executed on the cache. For more details, see https://aka.ms/redis/enterprise/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "totalkeys", - "displayName": "Total Keys", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Maximum", - "description": "The total number of items in the cache. For more details, see https://aka.ms/redis/enterprise/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "serverLoad", - "displayName": "Server Load", - "displayDescription": null, - "unit": "Percent", - "aggregationType": "Maximum", - "description": "The percentage of cycles in which the Redis server is busy processing and not waiting idle for messages. For more details, see https://aka.ms/redis/enterprise/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "percentProcessorTime", - "displayName": "CPU", - "displayDescription": null, - "unit": "Percent", - "aggregationType": "Maximum", - "description": "The CPU utilization of the Azure Redis Cache server as a percentage. For more details, see https://aka.ms/redis/enterprise/metrics.", - "dimensions": [ - { - "Name": "InstanceId", - "DisplayName": "InstanceId", - "ToBeExportedForShoebox": true - } - ], - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "usedmemory", - "displayName": "Used Memory", - "displayDescription": null, - "unit": "Bytes", - "aggregationType": "Maximum", - "description": "The amount of cache memory used for key/value pairs in the cache in MB. For more details, see https://aka.ms/redis/enterprise/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "usedmemorypercentage", - "displayName": "Used Memory Percentage", - "displayDescription": null, - "unit": "Percent", - "aggregationType": "Maximum", - "description": "The percentage of cache memory used for key/value pairs. For more details, see https://aka.ms/redis/enterprise/metrics.", - "dimensions": [ - { - "Name": "InstanceId", - "DisplayName": "InstanceId", - "ToBeExportedForShoebox": true - } - ], - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "cacheLatency", - "displayName": "Cache Latency Microseconds (Preview)", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Average", - "description": "The latency to the cache in microseconds. For more details, see https://aka.ms/redis/enterprise/metrics.", - "dimensions": [ - { - "Name": "InstanceId", - "DisplayName": "InstanceId", - "ToBeExportedForShoebox": true - } - ], - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "cacheWrite", - "displayName": "Cache Write", - "displayDescription": null, - "unit": "BytesPerSecond", - "aggregationType": "Maximum", - "description": "The amount of data written to the cache in Megabytes per second (MB/s). For more details, see https://aka.ms/redis/enterprise/metrics.", - "dimensions": [ - { - "Name": "InstanceId", - "DisplayName": "InstanceId", - "ToBeExportedForShoebox": true - } - ], - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "cacheRead", - "displayName": "Cache Read", - "displayDescription": null, - "unit": "BytesPerSecond", - "aggregationType": "Maximum", - "description": "The amount of data read from the cache in Megabytes per second (MB/s). For more details, see https://aka.ms/redis/enterprise/metrics.", - "dimensions": [ - { - "Name": "InstanceId", - "DisplayName": "InstanceId", - "ToBeExportedForShoebox": true - } - ], - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "errors", - "displayName": "Errors", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Maximum", - "description": "The number errors that occured on the cache. For more details, see https://aka.ms/redis/enterprise/metrics.", - "dimensions": [ - { - "Name": "InstanceId", - "DisplayName": "InstanceId", - "ToBeExportedForShoebox": true - }, - { - "Name": "ErrorType", - "DisplayName": "ErrorType", - "ToBeExportedForShoebox": true - } - ], - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - }, - { - "name": "geoReplicationHealthy", - "displayName": "Geo Replication Healthy", - "displayDescription": null, - "unit": "Count", - "aggregationType": "Maximum", - "description": "The health of geo replication in an Active Geo-Replication group. 0 represents Unhealthy and 1 represents Healthy. For more details, see https://aka.ms/redis/enterprise/metrics.", - "dimensions": null, - "availabilities": [ - { - "TimeGrain": "PT5M", - "Retention": "P90D" - }, - { - "TimeGrain": "PT1H", - "Retention": "P90D" - } - ] - } - ] - } - } - }, - { - "name": "Microsoft.Cache/redis/patchSchedules/read", - "display": { - "provider": "Microsoft Cache", - "resource": "Patching schedule of a Redis Cache", - "operation": "Get Redis Cache Patch Schedule", - "description": "Gets the patching schedule of a Redis Cache" - }, - "properties": {} - }, - { - "name": "Microsoft.Cache/redis/patchSchedules/write", - "display": { - "provider": "Microsoft Cache", - "resource": "Patching schedule of a Redis Cache", - "operation": "Change Redis Patching Schedule", - "description": "Modify the patching schedule of a Redis Cache" - }, - "properties": {} - }, - { - "name": "Microsoft.Cache/redis/patchSchedules/delete", - "display": { - "provider": "Microsoft Cache", - "resource": "Patching schedule of a Redis Cache", - "operation": "Delete Redis Cache Patch Schedule", - "description": "Delete the patch schedule of a Redis Cache" - }, - "properties": {} - }, - { - "name": "Microsoft.Cache/redis/firewallRules/read", - "display": { - "provider": "Microsoft Cache", - "resource": "IP firewall rule of a Redis Cache", - "operation": "Get Redis Cache Firewall Rule", - "description": "Get the IP firewall rules of a Redis Cache" - }, - "properties": {} - }, - { - "name": "Microsoft.Cache/redis/firewallRules/write", - "display": { - "provider": "Microsoft Cache", - "resource": "IP firewall rule of a Redis Cache", - "operation": "Update Redis Cache Firewall Rule", - "description": "Edit the IP firewall rules of a Redis Cache" - }, - "properties": {} - }, - { - "name": "Microsoft.Cache/redis/firewallRules/delete", - "display": { - "provider": "Microsoft Cache", - "resource": "IP firewall rule of a Redis Cache", - "operation": "Delete Redis Cache Firewall Rule", - "description": "Delete IP firewall rules of a Redis Cache" - }, - "properties": {} - }, - { - "name": "Microsoft.Cache/redis/linkedServers/read", - "display": { - "provider": "Microsoft Cache", - "resource": "Linked Servers of a Redis Cache", - "operation": "Get Redis Cache Linked Servers", - "description": "Get Linked Servers associated with a redis cache." - }, - "properties": {} - }, - { - "name": "Microsoft.Cache/redis/linkedServers/write", - "display": { - "provider": "Microsoft Cache", - "resource": "Linked Servers of a Redis Cache", - "operation": "Add Redis Cache Linked Server", - "description": "Add Linked Server to a Redis Cache" - }, - "properties": {} - }, - { - "name": "Microsoft.Cache/redis/linkedServers/delete", - "display": { - "provider": "Microsoft Cache", - "resource": "Linked Servers of a Redis Cache", - "operation": "Delete Redis Cache Linked Server", - "description": "Delete Linked Server from a Redis Cache" - }, - "properties": {} - }, - { - "name": "Microsoft.Cache/redis/eventGridFilters/read", - "display": { - "provider": "Microsoft Cache", - "resource": "Redis Cache Event Grid Filter", - "operation": "Get Redis Cache Event Grid Filter", - "description": "Get Redis Cache Event Grid Filter" - }, - "properties": {} - }, - { - "name": "Microsoft.Cache/redis/eventGridFilters/write", - "display": { - "provider": "Microsoft Cache", - "resource": "Redis Cache Event Grid Filter", - "operation": "Update Redis Cache Event Grid Filters", - "description": "Update Redis Cache Event Grid Filters" - }, - "properties": {} - }, - { - "name": "Microsoft.Cache/redis/eventGridFilters/delete", - "display": { - "provider": "Microsoft Cache", - "resource": "Redis Cache Event Grid Filter", - "operation": "Delete Redis Cache Event Grid Filters", - "description": "Delete Redis Cache Event Grid Filters" - }, - "properties": {} - }, - { - "name": "Microsoft.Cache/redis/privateEndpointConnectionProxies/validate/action", - "display": { - "provider": "Microsoft Cache", - "resource": "Azure Cache for Redis private endpoint connection proxies", - "operation": "Validate private endpoint connection proxy", - "description": "Validate the private endpoint connection proxy" - }, - "properties": {} - }, - { - "name": "Microsoft.Cache/redis/privateEndpointConnectionProxies/read", - "display": { - "provider": "Microsoft Cache", - "resource": "Azure Cache for Redis private endpoint connection proxies", - "operation": "Get private endpoint connection proxy", - "description": "Get the private endpoint connection proxy" - }, - "properties": {} - }, - { - "name": "Microsoft.Cache/redis/privateEndpointConnectionProxies/write", - "display": { - "provider": "Microsoft Cache", - "resource": "Azure Cache for Redis private endpoint connection proxies", - "operation": "Create private endpoint connection proxy", - "description": "Create the private endpoint connection proxy" - }, - "properties": {} - }, - { - "name": "Microsoft.Cache/redis/privateEndpointConnectionProxies/delete", - "display": { - "provider": "Microsoft Cache", - "resource": "Azure Cache for Redis private endpoint connection proxies", - "operation": "Delete private endpoint connection proxy", - "description": "Delete the private endpoint connection proxy" - }, - "properties": {} - }, - { - "name": "Microsoft.Cache/redisEnterprise/privateEndpointConnectionProxies/validate/action", - "display": { - "provider": "Microsoft Cache", - "resource": "Redis Enterprise private endpoint connection proxies", - "operation": "Validate private endpoint connection proxy", - "description": "Validate the private endpoint connection proxy" - }, - "properties": {} - }, - { - "name": "Microsoft.Cache/redisEnterprise/privateEndpointConnectionProxies/read", - "display": { - "provider": "Microsoft Cache", - "resource": "Redis Enterprise private endpoint connection proxies", - "operation": "Get private endpoint connection proxy", - "description": "Get the private endpoint connection proxy" - }, - "properties": {} - }, - { - "name": "Microsoft.Cache/redisEnterprise/privateEndpointConnectionProxies/write", - "display": { - "provider": "Microsoft Cache", - "resource": "Redis Enterprise private endpoint connection proxies", - "operation": "Create private endpoint connection proxy", - "description": "Create the private endpoint connection proxy" - }, - "properties": {} - }, - { - "name": "Microsoft.Cache/redisEnterprise/privateEndpointConnectionProxies/delete", - "display": { - "provider": "Microsoft Cache", - "resource": "Redis Enterprise private endpoint connection proxies", - "operation": "Delete private endpoint connection proxy", - "description": "Delete the private endpoint connection proxy" - }, - "properties": {} - }, - { - "name": "Microsoft.Cache/redisEnterprise/privateEndpointConnectionProxies/operationResults/read", - "display": { - "provider": "Microsoft Cache", - "resource": "Redis Enterprise private endpoint connection proxies", - "operation": "Redis Enterprise cache private endpoint operation results (read)", - "description": "View the result of private endpoint connection operations in the management portal" - }, - "properties": {} - }, - { - "name": "Microsoft.Cache/redis/privateEndpointConnections/read", - "display": { - "provider": "Microsoft Cache", - "resource": "Azure Cache for Redis private endpoint connections", - "operation": "Read private endpoint connection", - "description": "Read a private endpoint connection" - }, - "properties": {} - }, - { - "name": "Microsoft.Cache/redis/privateEndpointConnections/write", - "display": { - "provider": "Microsoft Cache", - "resource": "Azure Cache for Redis private endpoint connections", - "operation": "Write private endpoint connection", - "description": "Write a private endpoint connection" - }, - "properties": {} - }, - { - "name": "Microsoft.Cache/redis/privateEndpointConnections/delete", - "display": { - "provider": "Microsoft Cache", - "resource": "Azure Cache for Redis private endpoint connections", - "operation": "Delete private endpoint connection", - "description": "Delete a private endpoint connection" - }, - "properties": {} - }, - { - "name": "Microsoft.Cache/redisEnterprise/privateEndpointConnections/read", - "display": { - "provider": "Microsoft Cache", - "resource": "Redis Enterprise cache private endpoint connections", - "operation": "Read private endpoint connection", - "description": "Read a private endpoint connection" - }, - "properties": {} - }, - { - "name": "Microsoft.Cache/redisEnterprise/privateEndpointConnections/write", - "display": { - "provider": "Microsoft Cache", - "resource": "Redis Enterprise cache private endpoint connections", - "operation": "Write private endpoint connection", - "description": "Write a private endpoint connection" - }, - "properties": {} - }, - { - "name": "Microsoft.Cache/redisEnterprise/privateEndpointConnections/delete", - "display": { - "provider": "Microsoft Cache", - "resource": "Redis Enterprise cache private endpoint connections", - "operation": "Delete private endpoint connection", - "description": "Delete a private endpoint connection" - }, - "properties": {} - }, - { - "name": "Microsoft.Cache/redis/privateLinkResources/read", - "display": { - "provider": "Microsoft Cache", - "resource": "Azure Cache for Redis private linkable resources", - "operation": "Read Private Linkable Resources", - "description": "Read \u0027groupId\u0027 of redis subresource that a private link can be connected to" - }, - "properties": {} - }, - { - "name": "Microsoft.Cache/redisEnterprise/privateLinkResources/read", - "display": { - "provider": "Microsoft Cache", - "resource": "Redis Enterprise cache private link resources", - "operation": "Read Private Linkable Resources", - "description": "Read \u0027groupId\u0027 of redis subresource that a private link can be connected to" - }, - "properties": {} - }, - { - "name": "Microsoft.Cache/redis/roles/read", - "display": { - "provider": "Microsoft Cache", - "resource": "Azure Cache for Redis Roles", - "operation": "Read Redis Roles", - "description": "Read roles on a Redis Cache" - }, - "properties": {} - }, - { - "name": "Microsoft.Cache/redis/roles/write", - "display": { - "provider": "Microsoft Cache", - "resource": "Azure Cache for Redis Roles", - "operation": "Update Redis Roles", - "description": "Create or update role on a Redis Cache" - }, - "properties": {} - }, - { - "name": "Microsoft.Cache/redis/roles/delete", - "display": { - "provider": "Microsoft Cache", - "resource": "Azure Cache for Redis Roles", - "operation": "Delete Redis Roles", - "description": "Delete role on a Redis Cache" - }, - "properties": {} - }, - { - "name": "Microsoft.Cache/redis/roleAssignments/read", - "display": { - "provider": "Microsoft Cache", - "resource": "Azure Cache for Redis Role Description", - "operation": "Read Redis Role Assignments", - "description": "Read role assignments on a Redis Cache" - }, - "properties": {} - }, - { - "name": "Microsoft.Cache/redis/roleAssignments/write", - "display": { - "provider": "Microsoft Cache", - "resource": "Azure Cache for Redis Role Description", - "operation": "Update Redis Role Assignments", - "description": "Create or update role assignments on a Redis Cache" - }, - "properties": {} - }, - { - "name": "Microsoft.Cache/redis/roleAssignments/delete", - "display": { - "provider": "Microsoft Cache", - "resource": "Azure Cache for Redis Role Description", - "operation": "Delete Redis Role Assignment", - "description": "Delete All Redis Role Assignments" - }, - "properties": {} - }, - { - "name": "Microsoft.Cache/redis/PrivateEndpointConnectionsApproval/action", - "display": { - "provider": "Microsoft Cache", - "resource": "Azure Cache for Redis private linkable resources", - "operation": "Approve Private Endpoint Connections", - "description": "Approve Private Endpoint Connections" - }, - "properties": {} - }, - { - "name": "Microsoft.Cache/redisEnterprise/PrivateEndpointConnectionsApproval/action", - "display": { - "provider": "Microsoft Cache", - "resource": "Redis Enterprise cache private link resources", - "operation": "Approve Private Endpoint Connections", - "description": "Approve Private Endpoint Connections" - }, - "properties": {} - }, - { - "name": "Microsoft.Cache/redis/detectors/read", - "display": { - "provider": "Microsoft Cache", - "resource": "Azure Cache for Redis Detector", - "operation": "Get Azure Cache for Redis Detector", - "description": "Get the properties of one or all detectors for an Azure Cache for Redis cache" - }, - "properties": {} - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cache/redis/redisnaaChDFf/patchSchedules/default?api-version=2022-06-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "146", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armredis/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "scheduleEntries": [ - { - "dayOfWeek": "Monday", - "maintenanceWindow": "PT5H", - "startHourUtc": 12 - }, - { - "dayOfWeek": "Tuesday", - "startHourUtc": 12 - } - ] - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 25 Oct 2022 08:47:52 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1194", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T084752Z:00000000-0000-0000-0000-000000000000", - "x-rp-server-mvid": "00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cache/Redis/redisnaaChDFf/patchSchedules/default", - "location": "East US", - "name": "redisnaaChDFf/default", - "type": "Microsoft.Cache/Redis/PatchSchedules", - "properties": { - "scheduleEntries": [ - { - "dayOfWeek": "Monday", - "startHourUtc": 12, - "maintenanceWindow": "PT5H" - }, - { - "dayOfWeek": "Tuesday", - "startHourUtc": 12, - "maintenanceWindow": "PT5H" - } - ] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cache/redis/redisnaaChDFf/patchSchedules?api-version=2022-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armredis/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 25 Oct 2022 08:47:52 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11959", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T084752Z:00000000-0000-0000-0000-000000000000", - "x-rp-server-mvid": "00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cache/Redis/redisnaaChDFf/patchSchedules/default", - "location": "East US", - "name": "redisnaaChDFf/default", - "type": "Microsoft.Cache/Redis/PatchSchedules", - "properties": { - "scheduleEntries": [ - { - "dayOfWeek": "Monday", - "startHourUtc": 12, - "maintenanceWindow": "PT5H" - }, - { - "dayOfWeek": "Tuesday", - "startHourUtc": 12, - "maintenanceWindow": "PT5H" - } - ] - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cache/redis/redisnaaChDFf/patchSchedules/default?api-version=2022-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armredis/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 25 Oct 2022 08:47:53 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11958", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T084753Z:00000000-0000-0000-0000-000000000000", - "x-rp-server-mvid": "00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cache/Redis/redisnaaChDFf/patchSchedules/default", - "location": "East US", - "name": "redisnaaChDFf/default", - "type": "Microsoft.Cache/Redis/PatchSchedules", - "properties": { - "scheduleEntries": [ - { - "dayOfWeek": "Monday", - "startHourUtc": 12, - "maintenanceWindow": "PT5H" - }, - { - "dayOfWeek": "Tuesday", - "startHourUtc": 12, - "maintenanceWindow": "PT5H" - } - ] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cache/redis/redisnaaChDFf/patchSchedules/default?api-version=2022-06-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armredis/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Tue, 25 Oct 2022 08:47:54 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14998", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T084754Z:00000000-0000-0000-0000-000000000000", - "x-rp-server-mvid": "00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/PrivateEndpoint_Create?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "1761", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "mode": "Incremental", - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "location": { - "defaultValue": "eastus", - "type": "string" - }, - "privateEndpointName": { - "defaultValue": "redisprivateendpointaChDFf", - "type": "string" - }, - "redisId": { - "defaultValue": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cache/Redis/redisnaaChDFf", - "type": "string" - }, - "subnetId": { - "defaultValue": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/redisvnet/subnets/redissubnet", - "type": "string" - } - }, - "resources": [ - { - "apiVersion": "2020-11-01", - "location": "[parameters(\u0027location\u0027)]", - "name": "[concat(parameters(\u0027privateEndpointName\u0027), \u0027-nic\u0027)]", - "properties": { - "dnsSettings": { - "dnsServers": [] - }, - "enableIPForwarding": false, - "ipConfigurations": [ - { - "name": "privateEndpointIpConfig", - "properties": { - "primary": true, - "privateIPAddress": "10.0.0.4", - "privateIPAddressVersion": "IPv4", - "privateIPAllocationMethod": "Dynamic", - "subnet": { - "id": "[parameters(\u0027subnetId\u0027)]" - } - } - } - ] - }, - "type": "Microsoft.Network/networkInterfaces" - }, - { - "apiVersion": "2020-11-01", - "location": "[parameters(\u0027location\u0027)]", - "name": "[parameters(\u0027privateEndpointName\u0027)]", - "properties": { - "customDnsConfigs": [], - "manualPrivateLinkServiceConnections": [], - "privateLinkServiceConnections": [ - { - "name": "[parameters(\u0027privateEndpointName\u0027)]", - "properties": { - "groupIds": [ - "redisCache" - ], - "privateLinkServiceConnectionState": { - "actionsRequired": "None", - "description": "Auto-Approved", - "status": "Approved" - }, - "privateLinkServiceId": "[parameters(\u0027redisId\u0027)]" - } - } - ], - "subnet": { - "id": "[parameters(\u0027subnetId\u0027)]" - } - }, - "type": "Microsoft.Network/privateEndpoints" - } - ], - "variables": {} - } - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/PrivateEndpoint_Create/operationStatuses/08585349192096241046?api-version=2021-04-01", - "Cache-Control": "no-cache", - "Content-Length": "1159", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 25 Oct 2022 08:47:59 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1193", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T084800Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/PrivateEndpoint_Create", - "name": "PrivateEndpoint_Create", - "type": "Microsoft.Resources/deployments", - "properties": { - "templateHash": "17066995128357027674", - "parameters": { - "location": { - "type": "String", - "value": "eastus" - }, - "privateEndpointName": { - "type": "String", - "value": "redisprivateendpointaChDFf" - }, - "redisId": { - "type": "String", - "value": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cache/Redis/redisnaaChDFf" - }, - "subnetId": { - "type": "String", - "value": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/redisvnet/subnets/redissubnet" - } - }, - "mode": "Incremental", - "provisioningState": "Accepted", - "timestamp": "2022-10-25T08:47:58.3664827Z", - "duration": "PT0.0004754S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Network", - "resourceTypes": [ - { - "resourceType": "networkInterfaces", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "privateEndpoints", - "locations": [ - "eastus" - ] - } - ] - } - ], - "dependencies": [] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/PrivateEndpoint_Create/operationStatuses/08585349192096241046?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "20", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 25 Oct 2022 08:48:00 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11957", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T084800Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/PrivateEndpoint_Create/operationStatuses/08585349192096241046?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "20", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 25 Oct 2022 08:48:30 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11956", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T084831Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/PrivateEndpoint_Create/operationStatuses/08585349192096241046?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "22", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 25 Oct 2022 08:49:00 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11955", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T084901Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/PrivateEndpoint_Create?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "1512", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 25 Oct 2022 08:49:01 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11954", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T084902Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/PrivateEndpoint_Create", - "name": "PrivateEndpoint_Create", - "type": "Microsoft.Resources/deployments", - "properties": { - "templateHash": "17066995128357027674", - "parameters": { - "location": { - "type": "String", - "value": "eastus" - }, - "privateEndpointName": { - "type": "String", - "value": "redisprivateendpointaChDFf" - }, - "redisId": { - "type": "String", - "value": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cache/Redis/redisnaaChDFf" - }, - "subnetId": { - "type": "String", - "value": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/redisvnet/subnets/redissubnet" - } - }, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2022-10-25T08:48:42.6984368Z", - "duration": "PT44.3324295S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Network", - "resourceTypes": [ - { - "resourceType": "networkInterfaces", - "locations": [ - "eastus" - ] - }, - { - "resourceType": "privateEndpoints", - "locations": [ - "eastus" - ] - } - ] - } - ], - "dependencies": [], - "outputResources": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/networkInterfaces/redisprivateendpointaChDFf-nic" - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateEndpoints/redisprivateendpointaChDFf" - } - ] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cache/redis/redisnaaChDFf/privateEndpointConnections?api-version=2022-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armredis/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 25 Oct 2022 08:49:02 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11953", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T084903Z:00000000-0000-0000-0000-000000000000", - "x-rp-server-mvid": "00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cache/Redis/redisnaaChDFf/privateEndpointConnections/redisprivateendpointaChDFf.00000000-0000-0000-0000-000000000000", - "name": "redisprivateendpointaChDFf.00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Cache/Redis/privateEndpointConnections", - "properties": { - "privateEndpoint": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateEndpoints/redisprivateendpointaChDFf" - }, - "privateLinkServiceConnectionState": { - "status": "Approved", - "description": "Auto-Approved", - "actionsRequired": "None" - } - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cache/redis/redisnaaChDFf/privateEndpointConnections/redisprivateendpointaChDFf.00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "104", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armredis/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "privateLinkServiceConnectionState": { - "description": "Auto-Approved", - "status": "Rejected" - } - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East US/asyncOperations/00000000-0000-0000-0000-000000000000?api-version=2019-07-01", - "Cache-Control": "no-cache", - "Content-Length": "755", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 25 Oct 2022 08:49:03 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/asyncOperations/00000000-0000-0000-0000-000000000000?api-version=2019-07-01", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1192", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T084904Z:00000000-0000-0000-0000-000000000000", - "x-rp-server-mvid": "00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cache/Redis/redisnaaChDFf/privateEndpointConnections/redisprivateendpointaChDFf.00000000-0000-0000-0000-000000000000", - "name": "redisprivateendpointaChDFf.00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Cache/Redis/privateEndpointConnections", - "properties": { - "privateEndpoint": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateEndpoints/redisprivateendpointaChDFf" - }, - "privateLinkServiceConnectionState": { - "status": "Rejected", - "description": "Auto-Approved", - "actionsRequired": "None" - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/asyncOperations/00000000-0000-0000-0000-000000000000?api-version=2019-07-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armredis/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/asyncOperations/00000000-0000-0000-0000-000000000000?api-version=2019-07-01", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Tue, 25 Oct 2022 08:49:03 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/asyncOperations/00000000-0000-0000-0000-000000000000?api-version=2019-07-01", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11952", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T084904Z:00000000-0000-0000-0000-000000000000", - "x-rp-server-mvid": "00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East US/asyncOperations/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "InProgress", - "startTime": null, - "endTime": null, - "percentComplete": null, - "properties": null, - "error": null - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/asyncOperations/00000000-0000-0000-0000-000000000000?api-version=2019-07-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armredis/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/asyncOperations/00000000-0000-0000-0000-000000000000?api-version=2019-07-01", - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Tue, 25 Oct 2022 08:49:34 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/asyncOperations/00000000-0000-0000-0000-000000000000?api-version=2019-07-01", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11951", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T084935Z:00000000-0000-0000-0000-000000000000", - "x-rp-server-mvid": "00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East US/asyncOperations/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "Succeeded", - "startTime": null, - "endTime": null, - "percentComplete": null, - "properties": null, - "error": null - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cache/redis/redisnaaChDFf/privateEndpointConnections/redisprivateendpointaChDFf.00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armredis/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Tue, 25 Oct 2022 08:49:35 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11950", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T084936Z:00000000-0000-0000-0000-000000000000", - "x-rp-server-mvid": "00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cache/Redis/redisnaaChDFf/privateEndpointConnections/redisprivateendpointaChDFf.00000000-0000-0000-0000-000000000000", - "name": "redisprivateendpointaChDFf.00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Cache/Redis/privateEndpointConnections", - "properties": { - "privateEndpoint": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateEndpoints/redisprivateendpointaChDFf" - }, - "privateLinkServiceConnectionState": { - "status": "Rejected", - "description": "Auto-Approved", - "actionsRequired": "None" - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cache/redis/redisnaaChDFf/privateEndpointConnections/redisprivateendpointaChDFf.00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armredis/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Tue, 25 Oct 2022 08:49:36 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11949", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T084936Z:00000000-0000-0000-0000-000000000000", - "x-rp-server-mvid": "00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cache/Redis/redisnaaChDFf/privateEndpointConnections/redisprivateendpointaChDFf.00000000-0000-0000-0000-000000000000", - "name": "redisprivateendpointaChDFf.00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Cache/Redis/privateEndpointConnections", - "properties": { - "privateEndpoint": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/privateEndpoints/redisprivateendpointaChDFf" - }, - "privateLinkServiceConnectionState": { - "status": "Rejected", - "description": "Auto-Approved", - "actionsRequired": "None" - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cache/redis/redisnaaChDFf/privateLinkResources?api-version=2022-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armredis/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 25 Oct 2022 08:49:37 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11948", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T084937Z:00000000-0000-0000-0000-000000000000", - "x-rp-server-mvid": "00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cache/redis/redisnaaChDFf/privateLinkResources/redisCache", - "name": "redisCache", - "type": "Microsoft.Cache/Redis/privateLinkResources", - "properties": { - "groupId": "redisCache", - "requiredMembers": [ - "redisCache" - ], - "requiredZoneNames": [ - "privatelink.redis.cache.windows.net" - ] - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cache/redis/redisnaaChDFf/privateEndpointConnections/redisprivateendpointaChDFf.00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armredis/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Tue, 25 Oct 2022 08:49:40 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14997", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T084940Z:00000000-0000-0000-0000-000000000000", - "x-rp-server-mvid": "00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/CheckNameAvailability?api-version=2022-06-01", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "51", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armredis/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "name": "cacheName", - "type": "Microsoft.Cache/Redis" - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Tue, 25 Oct 2022 08:49:42 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T084942Z:00000000-0000-0000-0000-000000000000", - "x-rp-server-mvid": "00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/redis?api-version=2022-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armredis/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 25 Oct 2022 08:49:43 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11947", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T084943Z:00000000-0000-0000-0000-000000000000", - "x-rp-server-mvid": "00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cache/Redis/redisnamZSoeL", - "location": "East US", - "name": "redisnamZSoeL", - "type": "Microsoft.Cache/Redis", - "tags": {}, - "properties": { - "provisioningState": "Succeeded", - "redisVersion": "6.0", - "sku": { - "name": "Premium", - "family": "P", - "capacity": 1 - }, - "enableNonSslPort": true, - "instances": [ - { - "sslPort": 15000, - "nonSslPort": 13000, - "zone": "1", - "shardId": 0, - "isMaster": false, - "isPrimary": false - }, - { - "sslPort": 15001, - "nonSslPort": 13001, - "zone": "1", - "shardId": 1, - "isMaster": false, - "isPrimary": false - }, - { - "sslPort": 15002, - "nonSslPort": 13002, - "zone": "1", - "shardId": 0, - "isMaster": true, - "isPrimary": true - }, - { - "sslPort": 15003, - "nonSslPort": 13003, - "zone": "1", - "shardId": 1, - "isMaster": true, - "isPrimary": true - }, - { - "sslPort": 15004, - "nonSslPort": 13004, - "zone": "1", - "shardId": 0, - "isMaster": false, - "isPrimary": false - }, - { - "sslPort": 15005, - "nonSslPort": 13005, - "zone": "1", - "shardId": 1, - "isMaster": false, - "isPrimary": false - } - ], - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "redisConfiguration": { - "maxmemory-policy": "allkeys-lru", - "maxclients": "7500", - "maxmemory-reserved": "642", - "maxfragmentationmemory-reserved": "642", - "maxmemory-delta": "642" - }, - "accessKeys": null, - "hostName": "redisnamZSoeL.redis.cache.windows.net", - "port": 6379, - "sslPort": 6380, - "subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Network/virtualNetworks/redisvnet/subnets/redissubnet", - "staticIP": "10.0.0.5", - "shardCount": 2, - "replicasPerMaster": 2, - "linkedServers": [], - "replicasPerPrimary": 2 - }, - "zones": [ - "1" - ] - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-test/providers/Microsoft.Cache/Redis/gotest", - "location": "East US", - "name": "gotest", - "type": "Microsoft.Cache/Redis", - "tags": {}, - "properties": { - "provisioningState": "Succeeded", - "redisVersion": "6.0", - "sku": { - "name": "Standard", - "family": "C", - "capacity": 1 - }, - "enableNonSslPort": false, - "instances": [ - { - "sslPort": 15000, - "isMaster": true, - "isPrimary": true - }, - { - "sslPort": 15001, - "isMaster": false, - "isPrimary": false - } - ], - "publicNetworkAccess": "Disabled", - "privateEndpointConnections": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-test/providers/Microsoft.Cache/Redis/gotest/privateEndpointConnections/redisprivateendpointFm2oPO.00000000-0000-0000-0000-000000000000", - "properties": { - "privateEndpoint": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-test/providers/Microsoft.Network/privateEndpoints/redisprivateendpointFm2oPO" - }, - "privateLinkServiceConnectionState": { - "status": "Approved", - "description": "Auto-Approved", - "actionsRequired": "None" - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-test/providers/Microsoft.Cache/Redis/gotest/privateEndpointConnections/redisprivateendpointS6YWAF.00000000-0000-0000-0000-000000000000", - "properties": { - "privateEndpoint": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-test/providers/Microsoft.Network/privateEndpoints/redisprivateendpointS6YWAF" - }, - "privateLinkServiceConnectionState": { - "status": "Approved", - "description": "Auto-Approved", - "actionsRequired": "None" - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-test/providers/Microsoft.Cache/Redis/gotest/privateEndpointConnections/test-with-sdk.00000000-0000-0000-0000-000000000000", - "properties": { - "privateEndpoint": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-test/providers/Microsoft.Network/privateEndpoints/test-with-sdk" - }, - "privateLinkServiceConnectionState": { - "status": "Approved", - "description": "Auto-Approved", - "actionsRequired": "None" - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-test/providers/Microsoft.Cache/Redis/gotest/privateEndpointConnections/redisprivateendpoint8AE0g7.00000000-0000-0000-0000-000000000000", - "properties": { - "privateEndpoint": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-test/providers/Microsoft.Network/privateEndpoints/redisprivateendpoint8AE0g7" - }, - "privateLinkServiceConnectionState": { - "status": "Approved", - "description": "Auto-Approved", - "actionsRequired": "None" - } - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-test/providers/Microsoft.Cache/Redis/gotest/privateEndpointConnections/redisprivateendpointR28mdP.00000000-0000-0000-0000-000000000000", - "properties": { - "privateEndpoint": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-test/providers/Microsoft.Network/privateEndpoints/redisprivateendpointR28mdP" - }, - "privateLinkServiceConnectionState": { - "status": "Approved", - "description": "Auto-Approved", - "actionsRequired": "None" - } - } - } - ], - "redisConfiguration": { - "maxclients": "1000", - "maxmemory-reserved": "125", - "maxfragmentationmemory-reserved": "125", - "maxmemory-delta": "125" - }, - "accessKeys": null, - "hostName": "gotest.redis.cache.windows.net", - "port": 6379, - "sslPort": 6380, - "linkedServers": [] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cache/Redis/redisnaaChDFf", - "location": "East US", - "name": "redisnaaChDFf", - "type": "Microsoft.Cache/Redis", - "tags": {}, - "properties": { - "provisioningState": "Succeeded", - "redisVersion": "6.0", - "sku": { - "name": "Premium", - "family": "P", - "capacity": 1 - }, - "enableNonSslPort": true, - "instances": [ - { - "sslPort": 15000, - "nonSslPort": 13000, - "zone": "1", - "shardId": 0, - "isMaster": true, - "isPrimary": true - }, - { - "sslPort": 15001, - "nonSslPort": 13001, - "zone": "1", - "shardId": 1, - "isMaster": true, - "isPrimary": true - }, - { - "sslPort": 15002, - "nonSslPort": 13002, - "zone": "1", - "shardId": 0, - "isMaster": false, - "isPrimary": false - }, - { - "sslPort": 15003, - "nonSslPort": 13003, - "zone": "1", - "shardId": 1, - "isMaster": false, - "isPrimary": false - }, - { - "sslPort": 15004, - "nonSslPort": 13004, - "zone": "1", - "shardId": 0, - "isMaster": false, - "isPrimary": false - }, - { - "sslPort": 15005, - "nonSslPort": 13005, - "zone": "1", - "shardId": 1, - "isMaster": false, - "isPrimary": false - } - ], - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Disabled", - "redisConfiguration": { - "maxmemory-policy": "allkeys-lru", - "maxclients": "7500", - "maxmemory-reserved": "642", - "maxfragmentationmemory-reserved": "642", - "maxmemory-delta": "642" - }, - "accessKeys": null, - "hostName": "redisnaaChDFf.redis.cache.windows.net", - "port": 6379, - "sslPort": 6380, - "shardCount": 2, - "replicasPerMaster": 2, - "linkedServers": [], - "replicasPerPrimary": 2 - }, - "zones": [ - "1" - ] - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cache/redis?api-version=2022-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armredis/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 25 Oct 2022 08:49:43 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11946", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T084944Z:00000000-0000-0000-0000-000000000000", - "x-rp-server-mvid": "00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cache/Redis/redisnaaChDFf", - "location": "East US", - "name": "redisnaaChDFf", - "type": "Microsoft.Cache/Redis", - "tags": {}, - "properties": { - "provisioningState": "Succeeded", - "redisVersion": "6.0", - "sku": { - "name": "Premium", - "family": "P", - "capacity": 1 - }, - "enableNonSslPort": true, - "instances": [ - { - "sslPort": 15000, - "nonSslPort": 13000, - "zone": "1", - "shardId": 0, - "isMaster": true, - "isPrimary": true - }, - { - "sslPort": 15001, - "nonSslPort": 13001, - "zone": "1", - "shardId": 1, - "isMaster": true, - "isPrimary": true - }, - { - "sslPort": 15002, - "nonSslPort": 13002, - "zone": "1", - "shardId": 0, - "isMaster": false, - "isPrimary": false - }, - { - "sslPort": 15003, - "nonSslPort": 13003, - "zone": "1", - "shardId": 1, - "isMaster": false, - "isPrimary": false - }, - { - "sslPort": 15004, - "nonSslPort": 13004, - "zone": "1", - "shardId": 0, - "isMaster": false, - "isPrimary": false - }, - { - "sslPort": 15005, - "nonSslPort": 13005, - "zone": "1", - "shardId": 1, - "isMaster": false, - "isPrimary": false - } - ], - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Disabled", - "redisConfiguration": { - "maxmemory-policy": "allkeys-lru", - "maxclients": "7500", - "maxmemory-reserved": "642", - "maxfragmentationmemory-reserved": "642", - "maxmemory-delta": "642" - }, - "accessKeys": null, - "hostName": "redisnaaChDFf.redis.cache.windows.net", - "port": 6379, - "sslPort": 6380, - "shardCount": 2, - "replicasPerMaster": 2, - "linkedServers": [], - "replicasPerPrimary": 2 - }, - "zones": [ - "1" - ] - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cache/redis/redisnaaChDFf?api-version=2022-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armredis/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 25 Oct 2022 08:49:44 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11945", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T084944Z:00000000-0000-0000-0000-000000000000", - "x-rp-server-mvid": "00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cache/Redis/redisnaaChDFf", - "location": "East US", - "name": "redisnaaChDFf", - "type": "Microsoft.Cache/Redis", - "tags": {}, - "properties": { - "provisioningState": "Succeeded", - "redisVersion": "6.0", - "sku": { - "name": "Premium", - "family": "P", - "capacity": 1 - }, - "enableNonSslPort": true, - "instances": [ - { - "sslPort": 15000, - "nonSslPort": 13000, - "zone": "1", - "shardId": 0, - "isMaster": true, - "isPrimary": true - }, - { - "sslPort": 15001, - "nonSslPort": 13001, - "zone": "1", - "shardId": 1, - "isMaster": true, - "isPrimary": true - }, - { - "sslPort": 15002, - "nonSslPort": 13002, - "zone": "1", - "shardId": 0, - "isMaster": false, - "isPrimary": false - }, - { - "sslPort": 15003, - "nonSslPort": 13003, - "zone": "1", - "shardId": 1, - "isMaster": false, - "isPrimary": false - }, - { - "sslPort": 15004, - "nonSslPort": 13004, - "zone": "1", - "shardId": 0, - "isMaster": false, - "isPrimary": false - }, - { - "sslPort": 15005, - "nonSslPort": 13005, - "zone": "1", - "shardId": 1, - "isMaster": false, - "isPrimary": false - } - ], - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Disabled", - "redisConfiguration": { - "maxmemory-policy": "allkeys-lru", - "maxclients": "7500", - "maxmemory-reserved": "642", - "maxfragmentationmemory-reserved": "642", - "maxmemory-delta": "642" - }, - "accessKeys": null, - "hostName": "redisnaaChDFf.redis.cache.windows.net", - "port": 6379, - "sslPort": 6380, - "shardCount": 2, - "replicasPerMaster": 2, - "linkedServers": [], - "replicasPerPrimary": 2 - }, - "zones": [ - "1" - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cache/redis/redisnaaChDFf?api-version=2022-06-01", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "63", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armredis/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "enableNonSslPort": true, - "replicasPerPrimary": 2 - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 25 Oct 2022 08:49:45 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1191", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T084946Z:00000000-0000-0000-0000-000000000000", - "x-rp-server-mvid": "00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cache/Redis/redisnaaChDFf", - "location": "East US", - "name": "redisnaaChDFf", - "type": "Microsoft.Cache/Redis", - "tags": {}, - "properties": { - "provisioningState": "Succeeded", - "redisVersion": "6.0", - "sku": { - "name": "Premium", - "family": "P", - "capacity": 1 - }, - "enableNonSslPort": true, - "instances": [ - { - "sslPort": 15000, - "nonSslPort": 13000, - "zone": "1", - "shardId": 0, - "isMaster": true, - "isPrimary": true - }, - { - "sslPort": 15001, - "nonSslPort": 13001, - "zone": "1", - "shardId": 1, - "isMaster": true, - "isPrimary": true - }, - { - "sslPort": 15002, - "nonSslPort": 13002, - "zone": "1", - "shardId": 0, - "isMaster": false, - "isPrimary": false - }, - { - "sslPort": 15003, - "nonSslPort": 13003, - "zone": "1", - "shardId": 1, - "isMaster": false, - "isPrimary": false - }, - { - "sslPort": 15004, - "nonSslPort": 13004, - "zone": "1", - "shardId": 0, - "isMaster": false, - "isPrimary": false - }, - { - "sslPort": 15005, - "nonSslPort": 13005, - "zone": "1", - "shardId": 1, - "isMaster": false, - "isPrimary": false - } - ], - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Disabled", - "redisConfiguration": { - "maxmemory-policy": "allkeys-lru", - "maxclients": "7500", - "maxmemory-reserved": "642", - "maxfragmentationmemory-reserved": "642", - "maxmemory-delta": "642" - }, - "accessKeys": null, - "hostName": "redisnaaChDFf.redis.cache.windows.net", - "port": 6379, - "sslPort": 6380, - "shardCount": 2, - "replicasPerMaster": 2, - "linkedServers": [], - "replicasPerPrimary": 2 - }, - "zones": [ - "1" - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cache/redis/redisnaaChDFf/regenerateKey?api-version=2022-06-01", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armredis/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "keyType": "Primary" - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 25 Oct 2022 08:49:46 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T084947Z:00000000-0000-0000-0000-000000000000", - "x-rp-server-mvid": "00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "primaryKey": "000000000000", - "secondaryKey": "000000000000" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cache/redis/redisnaaChDFf/listKeys?api-version=2022-06-01", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armredis/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 25 Oct 2022 08:49:47 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1197", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T084948Z:00000000-0000-0000-0000-000000000000", - "x-rp-server-mvid": "00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "primaryKey": "000000000000", - "secondaryKey": "000000000000" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cache/redis/redisnaaChDFf/forceReboot?api-version=2022-06-01", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "23", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armredis/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "ports": [ - 13000, - 15001 - ] - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 25 Oct 2022 08:49:48 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1196", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T084949Z:00000000-0000-0000-0000-000000000000", - "x-rp-server-mvid": "00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "message": "The requested reboot operation for \u0027Ports: 13000,15001\u0027 has been successfully scheduled and should be executed shortly." - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Cache/redis/redisnaaChDFf?api-version=2022-06-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armredis/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Tue, 25 Oct 2022 08:49:49 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/operationresults/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14996", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T084950Z:00000000-0000-0000-0000-000000000000", - "x-rp-server-mvid": "00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/operationresults/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armredis/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Tue, 25 Oct 2022 08:49:50 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/operationresults/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11944", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T084950Z:00000000-0000-0000-0000-000000000000", - "x-rp-server-mvid": "00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/operationresults/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armredis/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Tue, 25 Oct 2022 08:50:20 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/operationresults/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11943", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T085021Z:00000000-0000-0000-0000-000000000000", - "x-rp-server-mvid": "00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/operationresults/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armredis/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Tue, 25 Oct 2022 08:50:50 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/operationresults/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11942", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T085051Z:00000000-0000-0000-0000-000000000000", - "x-rp-server-mvid": "00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/operationresults/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armredis/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Tue, 25 Oct 2022 08:51:21 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/operationresults/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11941", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T085121Z:00000000-0000-0000-0000-000000000000", - "x-rp-server-mvid": "00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/operationresults/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armredis/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Tue, 25 Oct 2022 08:51:51 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/operationresults/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11940", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T085152Z:00000000-0000-0000-0000-000000000000", - "x-rp-server-mvid": "00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/operationresults/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armredis/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Tue, 25 Oct 2022 08:52:21 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/operationresults/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11939", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T085222Z:00000000-0000-0000-0000-000000000000", - "x-rp-server-mvid": "00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/operationresults/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armredis/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Tue, 25 Oct 2022 08:52:52 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/operationresults/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11938", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T085252Z:00000000-0000-0000-0000-000000000000", - "x-rp-server-mvid": "00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/operationresults/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armredis/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Tue, 25 Oct 2022 08:53:23 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/operationresults/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11937", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T085323Z:00000000-0000-0000-0000-000000000000", - "x-rp-server-mvid": "00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/operationresults/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armredis/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Tue, 25 Oct 2022 08:53:53 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/operationresults/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11936", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T085354Z:00000000-0000-0000-0000-000000000000", - "x-rp-server-mvid": "00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/operationresults/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armredis/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Tue, 25 Oct 2022 08:54:24 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/operationresults/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11935", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T085424Z:00000000-0000-0000-0000-000000000000", - "x-rp-server-mvid": "00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Cache/locations/East%20US/operationresults/00000000-0000-0000-0000-000000000000?api-version=2022-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armredis/v2.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Tue, 25 Oct 2022 08:54:54 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11934", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T085455Z:00000000-0000-0000-0000-000000000000", - "x-rp-server-mvid": "00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Tue, 25 Oct 2022 08:55:00 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ0NjMtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14995", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20221025T085501Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": { - "recordingRandomSeed": "1666686615" - } -} diff --git a/sdk/resourcemanager/resources/armdeploymentscripts/assets.json b/sdk/resourcemanager/resources/armdeploymentscripts/assets.json new file mode 100644 index 000000000000..b6bf2dd74de2 --- /dev/null +++ b/sdk/resourcemanager/resources/armdeploymentscripts/assets.json @@ -0,0 +1,6 @@ +{ + "AssetsRepo": "Azure/azure-sdk-assets", + "AssetsRepoPrefixPath": "go", + "TagPrefix": "go/resourcemanager/resources/armdeploymentscripts", + "Tag": "go/resourcemanager/resources/armdeploymentscripts_778ff7f2a7" +} diff --git a/sdk/resourcemanager/resources/armdeploymentscripts/go.mod b/sdk/resourcemanager/resources/armdeploymentscripts/go.mod index 6181039140a4..2e59fa24d3b6 100644 --- a/sdk/resourcemanager/resources/armdeploymentscripts/go.mod +++ b/sdk/resourcemanager/resources/armdeploymentscripts/go.mod @@ -3,28 +3,28 @@ module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armdeploy go 1.18 require ( - github.com/Azure/azure-sdk-for-go/sdk/azcore v1.0.0 - github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.0.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.0.0 + github.com/Azure/azure-sdk-for-go/sdk/azcore v1.4.0 + github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.2 github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/msi/armmsi v0.6.0 github.com/stretchr/testify v1.7.0 ) require ( - github.com/Azure/azure-sdk-for-go/sdk/internal v1.0.0 // indirect + github.com/Azure/azure-sdk-for-go/sdk/internal v1.2.0 // indirect github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0 // indirect - github.com/AzureAD/microsoft-authentication-library-for-go v0.4.0 // indirect + github.com/AzureAD/microsoft-authentication-library-for-go v0.7.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/dnaeon/go-vcr v1.1.0 // indirect - github.com/golang-jwt/jwt v3.2.1+incompatible // indirect + github.com/golang-jwt/jwt/v4 v4.4.2 // 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 github.com/pmezard/go-difflib v1.0.0 // 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 + golang.org/x/net v0.7.0 // indirect + golang.org/x/sys v0.5.0 // indirect + golang.org/x/text v0.7.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect ) diff --git a/sdk/resourcemanager/resources/armdeploymentscripts/go.sum b/sdk/resourcemanager/resources/armdeploymentscripts/go.sum index 03f114d3bbd2..55ee86683135 100644 --- a/sdk/resourcemanager/resources/armdeploymentscripts/go.sum +++ b/sdk/resourcemanager/resources/armdeploymentscripts/go.sum @@ -1,31 +1,29 @@ -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/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.0.0 h1:lMW1lD/17LUA5z1XTURo7LcVG2ICBPlyMHjIUrcFZNQ= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.0.0/go.mod h1:ceIuwmxDWptoW3eCqSXlnPsZFKh4X+R38dWPv7GS9Vs= +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.0 h1:t/W5MYAuQy81cvM8VUNfRLzhtKpXhVUAN7Cd7KVbTyc= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.0/go.mod h1:NBanQUfSWiWn3QEpWDTCU0IjBECKOYvl2R8xdRtMtiM= +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/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.2 h1:mLY+pNLjCUeKhgnAJWAKhEUQM+RJQo2H1fuGSw1Ky1E= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.2/go.mod h1:FbdwsQ2EzwvXxOPcMFYO8ogEc9uMMIj3YkmCdXdAFmk= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/msi/armmsi v0.6.0 h1:zSHpZY39hfFpVNixDoFOUeLwBBX0SIRe32HaWg03R8k= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/msi/armmsi v0.6.0/go.mod h1:Yu9z4VU4VeNRoZQMjAKwzXJpNAZ8SlyVg+yHyDVqvi8= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0 h1:ECsQtyERDVz3NP3kvDOTLvbQhqWp/x9EsGKtb4ogUr8= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0/go.mod h1:s1tW/At+xHqjNFvWU4G0c0Qv33KOhvbGNj0RCTQDV8s= -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/AzureAD/microsoft-authentication-library-for-go v0.7.0 h1:VgSJlZH5u0k2qxSpqyghcFQKmvYckj46uymKK5XzkBM= +github.com/AzureAD/microsoft-authentication-library-for-go v0.7.0/go.mod h1:BDJ5qMFKx9DugEg3+uQSDCdbYPr5s9vBTrL9P8TpqOU= 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/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 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= +github.com/golang-jwt/jwt/v4 v4.4.2 h1:rcc4lwaZgFMCZ5jxF9ABolDcIHdBytAFgqFPbSJQAYs= +github.com/golang-jwt/jwt/v4 v4.4.2/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= 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= @@ -35,13 +33,12 @@ github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5Cc github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= 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-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/net v0.7.0 h1:rJrUqqhjsgNp7KqAIc25s9pZnjU7TUcSY7HcVZjdn1g= +golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= +golang.org/x/sys v0.5.0 h1:MUK/U/4lj1t1oPg0HfuXDN/Z1wv31ZJ/YcPiGccS4DU= +golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/text v0.7.0 h1:4BRB4x83lYWy72KwLD/qYDuTu7q9PjSagHvijDw7cLo= +golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= 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= diff --git a/sdk/resourcemanager/resources/armdeploymentscripts/testdata/recordings/TestDeploymentScriptsClient.json b/sdk/resourcemanager/resources/armdeploymentscripts/testdata/recordings/TestDeploymentScriptsClient.json deleted file mode 100644 index fa85243baacd..000000000000 --- a/sdk/resourcemanager/resources/armdeploymentscripts/testdata/recordings/TestDeploymentScriptsClient.json +++ /dev/null @@ -1,741 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": { - "location": "eastus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 14 Apr 2022 03:31:49 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T033149Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "eastus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/go-test-identity?api-version=2021-09-30-preview", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armmsi/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": { - "location": "eastus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "448", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 14 Apr 2022 03:31:58 GMT", - "Expires": "-1", - "Location": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/go-test-identity", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T033159Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/go-test-identity", - "name": "go-test-identity", - "type": "Microsoft.ManagedIdentity/userAssignedIdentities", - "location": "eastus", - "tags": {}, - "properties": { - "tenantId": "00000000-0000-0000-0000-000000000000", - "principalId": "00000000-0000-0000-0000-000000000000", - "clientId": "00000000-0000-0000-0000-000000000000" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deploymentScripts/go-test-script?api-version=2020-10-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "536", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armdeploymentscripts/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": { - "identity": { - "type": "UserAssigned", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/go-test-identity": {} - } - }, - "kind": "AzurePowerShell", - "location": "eastus", - "properties": { - "arguments": "-name \u0022John Dole\u0022", - "azPowerShellVersion": "3.0", - "primaryScriptUri": "https://raw.githubusercontent.com/Azure/azure-docs-json-samples/master/deployment-script/deploymentscript-helloworld.ps1", - "retentionInterval": "PT26H", - "timeout": "PT30M" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/locations/eastus/deploymentScriptOperationResults/00000000-0000-0000-0000-000000000000?api-version=2020-10-01", - "Cache-Control": "no-cache", - "Content-Length": "1510", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 14 Apr 2022 03:32:04 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "17", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1197", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T033204Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "kind": "AzurePowerShell", - "identity": { - "type": "userAssigned", - "tenantId": "00000000-0000-0000-0000-000000000000", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/go-test-identity": { - "principalId": "00000000-0000-0000-0000-000000000000", - "clientId": "00000000-0000-0000-0000-000000000000" - } - } - }, - "location": "eastus", - "properties": { - "provisioningState": "Creating", - "azPowerShellVersion": "3.0", - "arguments": "-name \u0022John Dole\u0022", - "primaryScriptUri": "https://raw.githubusercontent.com/Azure/azure-docs-json-samples/master/deployment-script/deploymentscript-helloworld.ps1", - "retentionInterval": "P1DT2H", - "timeout": "PT30M", - "containerSettings": {}, - "status": {}, - "cleanupPreference": "Always" - }, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-04-14T03:32:00.8966838Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-04-14T03:32:00.8966838Z" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deploymentScripts/go-test-script", - "type": "Microsoft.Resources/deploymentScripts", - "name": "go-test-script" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/locations/eastus/deploymentScriptOperationResults/00000000-0000-0000-0000-000000000000?api-version=2020-10-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armdeploymentscripts/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 14 Apr 2022 03:32:21 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11999", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T033222Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/locations/eastus/deploymentScriptOperationResults/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "provisioningResources" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/locations/eastus/deploymentScriptOperationResults/00000000-0000-0000-0000-000000000000?api-version=2020-10-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armdeploymentscripts/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 14 Apr 2022 03:32:32 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11998", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T033232Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/locations/eastus/deploymentScriptOperationResults/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "provisioningResources" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/locations/eastus/deploymentScriptOperationResults/00000000-0000-0000-0000-000000000000?api-version=2020-10-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armdeploymentscripts/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 14 Apr 2022 03:32:42 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11997", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T033243Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/locations/eastus/deploymentScriptOperationResults/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "provisioningResources" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/locations/eastus/deploymentScriptOperationResults/00000000-0000-0000-0000-000000000000?api-version=2020-10-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armdeploymentscripts/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 14 Apr 2022 03:32:52 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11996", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T033253Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/locations/eastus/deploymentScriptOperationResults/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "provisioningResources" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/locations/eastus/deploymentScriptOperationResults/00000000-0000-0000-0000-000000000000?api-version=2020-10-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armdeploymentscripts/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 14 Apr 2022 03:33:03 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11995", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T033304Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/locations/eastus/deploymentScriptOperationResults/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "running" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/locations/eastus/deploymentScriptOperationResults/00000000-0000-0000-0000-000000000000?api-version=2020-10-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armdeploymentscripts/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 14 Apr 2022 03:33:13 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11994", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T033314Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/locations/eastus/deploymentScriptOperationResults/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "status": "succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deploymentScripts/go-test-script?api-version=2020-10-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armdeploymentscripts/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 14 Apr 2022 03:33:13 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11993", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T033314Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "kind": "AzurePowerShell", - "identity": { - "type": "userAssigned", - "tenantId": "00000000-0000-0000-0000-000000000000", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/go-test-identity": { - "principalId": "00000000-0000-0000-0000-000000000000", - "clientId": "00000000-0000-0000-0000-000000000000" - } - } - }, - "location": "eastus", - "properties": { - "provisioningState": "Succeeded", - "azPowerShellVersion": "3.0", - "arguments": "-name \u0022John Dole\u0022", - "primaryScriptUri": "https://raw.githubusercontent.com/Azure/azure-docs-json-samples/master/deployment-script/deploymentscript-helloworld.ps1", - "retentionInterval": "P1DT2H", - "timeout": "PT30M", - "containerSettings": {}, - "status": { - "containerInstanceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerInstance/containerGroups/5btocbjc2ak5gazscripts", - "storageAccountId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/5btocbjc2ak5gazscripts", - "startTime": "2022-04-14T03:32:04.4125201Z", - "endTime": "2022-04-14T03:33:10.6035088Z", - "expirationTime": "2022-04-15T05:33:10.6035088Z" - }, - "outputs": { - "text": "Hello John" - }, - "cleanupPreference": "Always" - }, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-04-14T03:32:00.8966838Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-04-14T03:32:00.8966838Z" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deploymentScripts/go-test-script", - "type": "Microsoft.Resources/deploymentScripts", - "name": "go-test-script" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deploymentScripts/go-test-script?api-version=2020-10-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armdeploymentscripts/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 14 Apr 2022 03:33:14 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11992", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T033315Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "kind": "AzurePowerShell", - "identity": { - "type": "userAssigned", - "tenantId": "00000000-0000-0000-0000-000000000000", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/go-test-identity": { - "principalId": "00000000-0000-0000-0000-000000000000", - "clientId": "00000000-0000-0000-0000-000000000000" - } - } - }, - "location": "eastus", - "properties": { - "provisioningState": "Succeeded", - "azPowerShellVersion": "3.0", - "arguments": "-name \u0022John Dole\u0022", - "primaryScriptUri": "https://raw.githubusercontent.com/Azure/azure-docs-json-samples/master/deployment-script/deploymentscript-helloworld.ps1", - "retentionInterval": "P1DT2H", - "timeout": "PT30M", - "containerSettings": {}, - "status": { - "containerInstanceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerInstance/containerGroups/5btocbjc2ak5gazscripts", - "storageAccountId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/5btocbjc2ak5gazscripts", - "startTime": "2022-04-14T03:32:04.4125201Z", - "endTime": "2022-04-14T03:33:10.6035088Z", - "expirationTime": "2022-04-15T05:33:10.6035088Z" - }, - "outputs": { - "text": "Hello John" - }, - "cleanupPreference": "Always" - }, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-04-14T03:32:00.8966838Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-04-14T03:32:00.8966838Z" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deploymentScripts/go-test-script", - "type": "Microsoft.Resources/deploymentScripts", - "name": "go-test-script" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deploymentScripts/go-test-script/logs?api-version=2020-10-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armdeploymentscripts/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 14 Apr 2022 03:33:14 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11991", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T033315Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "properties": { - "log": " Executing script: .\\deploymentscript-helloworld.ps1 -name John Dole\nHello John\n" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deploymentScripts/go-test-script/logs/default", - "type": "Microsoft.Resources/deploymentScripts/logs", - "name": "default" - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deploymentScripts/go-test-script/logs/default?api-version=2020-10-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armdeploymentscripts/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 14 Apr 2022 03:33:15 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11990", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T033315Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "log": " Executing script: .\\deploymentscript-helloworld.ps1 -name John Dole\nHello John\n" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deploymentScripts/go-test-script/logs/default", - "type": "Microsoft.Resources/deploymentScripts/logs", - "name": "default" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deploymentScripts/go-test-script?api-version=2020-10-01", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "24", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armdeploymentscripts/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": { - "tags": { - "test": "live" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 14 Apr 2022 03:33:18 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1196", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T033319Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "kind": "AzurePowerShell", - "identity": { - "type": "userAssigned", - "tenantId": "00000000-0000-0000-0000-000000000000", - "userAssignedIdentities": { - "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/go-test-identity": { - "principalId": "00000000-0000-0000-0000-000000000000", - "clientId": "00000000-0000-0000-0000-000000000000" - } - } - }, - "location": "eastus", - "tags": { - "test": "live" - }, - "properties": { - "provisioningState": "Succeeded", - "azPowerShellVersion": "3.0", - "arguments": "-name \u0022John Dole\u0022", - "primaryScriptUri": "https://raw.githubusercontent.com/Azure/azure-docs-json-samples/master/deployment-script/deploymentscript-helloworld.ps1", - "retentionInterval": "P1DT2H", - "timeout": "PT30M", - "containerSettings": {}, - "status": { - "containerInstanceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ContainerInstance/containerGroups/5btocbjc2ak5gazscripts", - "storageAccountId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/5btocbjc2ak5gazscripts", - "startTime": "2022-04-14T03:32:04.4125201Z", - "endTime": "2022-04-14T03:33:10.6035088Z", - "expirationTime": "2022-04-15T05:33:10.6035088Z" - }, - "outputs": { - "text": "Hello John" - }, - "cleanupPreference": "Always" - }, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-04-14T03:32:00.8966838Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-04-14T03:33:16.3503218Z" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deploymentScripts/go-test-script", - "type": "Microsoft.Resources/deploymentScripts", - "name": "go-test-script" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deploymentScripts/go-test-script?api-version=2020-10-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armdeploymentscripts/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Thu, 14 Apr 2022 03:33:26 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14999", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T033327Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Thu, 14 Apr 2022 03:33:30 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ3MjQtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14998", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T033330Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/resourcemanager/resources/armfeatures/assets.json b/sdk/resourcemanager/resources/armfeatures/assets.json new file mode 100644 index 000000000000..0c8400cedf3f --- /dev/null +++ b/sdk/resourcemanager/resources/armfeatures/assets.json @@ -0,0 +1,6 @@ +{ + "AssetsRepo": "Azure/azure-sdk-assets", + "AssetsRepoPrefixPath": "go", + "TagPrefix": "go/resourcemanager/resources/armfeatures", + "Tag": "go/resourcemanager/resources/armfeatures_314d60e072" +} diff --git a/sdk/resourcemanager/resources/armfeatures/go.mod b/sdk/resourcemanager/resources/armfeatures/go.mod index 1af556fedc25..9765db5877e2 100644 --- a/sdk/resourcemanager/resources/armfeatures/go.mod +++ b/sdk/resourcemanager/resources/armfeatures/go.mod @@ -3,27 +3,27 @@ module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armfeatur go 1.18 require ( - github.com/Azure/azure-sdk-for-go/sdk/azcore v1.0.0 - github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.0.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.0.0 + github.com/Azure/azure-sdk-for-go/sdk/azcore v1.4.0 + github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.2 github.com/stretchr/testify v1.7.0 ) require ( - github.com/Azure/azure-sdk-for-go/sdk/internal v1.0.0 // indirect + github.com/Azure/azure-sdk-for-go/sdk/internal v1.2.0 // indirect github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0 // indirect - github.com/AzureAD/microsoft-authentication-library-for-go v0.4.0 // indirect + github.com/AzureAD/microsoft-authentication-library-for-go v0.7.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/dnaeon/go-vcr v1.1.0 // indirect - github.com/golang-jwt/jwt v3.2.1+incompatible // indirect + github.com/golang-jwt/jwt/v4 v4.4.2 // 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 github.com/pmezard/go-difflib v1.0.0 // 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 + golang.org/x/net v0.7.0 // indirect + golang.org/x/sys v0.5.0 // indirect + golang.org/x/text v0.7.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect ) diff --git a/sdk/resourcemanager/resources/armfeatures/go.sum b/sdk/resourcemanager/resources/armfeatures/go.sum index 3bb750d4f3e7..b0f97586a165 100644 --- a/sdk/resourcemanager/resources/armfeatures/go.sum +++ b/sdk/resourcemanager/resources/armfeatures/go.sum @@ -1,29 +1,27 @@ -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/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.0.0 h1:lMW1lD/17LUA5z1XTURo7LcVG2ICBPlyMHjIUrcFZNQ= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.0.0/go.mod h1:ceIuwmxDWptoW3eCqSXlnPsZFKh4X+R38dWPv7GS9Vs= +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.0 h1:t/W5MYAuQy81cvM8VUNfRLzhtKpXhVUAN7Cd7KVbTyc= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.0/go.mod h1:NBanQUfSWiWn3QEpWDTCU0IjBECKOYvl2R8xdRtMtiM= +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/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.2 h1:mLY+pNLjCUeKhgnAJWAKhEUQM+RJQo2H1fuGSw1Ky1E= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.2/go.mod h1:FbdwsQ2EzwvXxOPcMFYO8ogEc9uMMIj3YkmCdXdAFmk= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0 h1:ECsQtyERDVz3NP3kvDOTLvbQhqWp/x9EsGKtb4ogUr8= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0/go.mod h1:s1tW/At+xHqjNFvWU4G0c0Qv33KOhvbGNj0RCTQDV8s= -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/AzureAD/microsoft-authentication-library-for-go v0.7.0 h1:VgSJlZH5u0k2qxSpqyghcFQKmvYckj46uymKK5XzkBM= +github.com/AzureAD/microsoft-authentication-library-for-go v0.7.0/go.mod h1:BDJ5qMFKx9DugEg3+uQSDCdbYPr5s9vBTrL9P8TpqOU= 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/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 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= +github.com/golang-jwt/jwt/v4 v4.4.2 h1:rcc4lwaZgFMCZ5jxF9ABolDcIHdBytAFgqFPbSJQAYs= +github.com/golang-jwt/jwt/v4 v4.4.2/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= 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= @@ -33,13 +31,12 @@ github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5Cc github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= 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-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/net v0.7.0 h1:rJrUqqhjsgNp7KqAIc25s9pZnjU7TUcSY7HcVZjdn1g= +golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= +golang.org/x/sys v0.5.0 h1:MUK/U/4lj1t1oPg0HfuXDN/Z1wv31ZJ/YcPiGccS4DU= +golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/text v0.7.0 h1:4BRB4x83lYWy72KwLD/qYDuTu7q9PjSagHvijDw7cLo= +golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= 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= diff --git a/sdk/resourcemanager/resources/armfeatures/testdata/recordings/TestFeaturesClient.json b/sdk/resourcemanager/resources/armfeatures/testdata/recordings/TestFeaturesClient.json deleted file mode 100644 index 9ea4725e7983..000000000000 --- a/sdk/resourcemanager/resources/armfeatures/testdata/recordings/TestFeaturesClient.json +++ /dev/null @@ -1,210 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": { - "location": "eastus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 10 Mar 2022 10:23:16 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220310T102317Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "eastus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Thu, 10 Mar 2022 10:23:20 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ1OTEtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14999", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220310T102321Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ1OTEtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Thu, 10 Mar 2022 10:23:35 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ1OTEtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11999", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220310T102336Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ1OTEtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Thu, 10 Mar 2022 10:23:51 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ1OTEtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11998", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220310T102352Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ1OTEtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Thu, 10 Mar 2022 10:24:06 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ1OTEtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11997", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220310T102407Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ1OTEtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Thu, 10 Mar 2022 10:24:23 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ1OTEtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11996", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220310T102423Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ1OTEtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Thu, 10 Mar 2022 10:24:38 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11995", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220310T102439Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/resourcemanager/resources/armfeatures/testdata/recordings/TestSubscriptionFeatureRegistrationsClient.json b/sdk/resourcemanager/resources/armfeatures/testdata/recordings/TestSubscriptionFeatureRegistrationsClient.json deleted file mode 100644 index 436318031b81..000000000000 --- a/sdk/resourcemanager/resources/armfeatures/testdata/recordings/TestSubscriptionFeatureRegistrationsClient.json +++ /dev/null @@ -1,245 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": { - "location": "eastus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 11 Mar 2022 03:14:51 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220311T031452Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "eastus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Features/featureProviders/Microsoft.Resources/subscriptionFeatureRegistrations/testFeature?api-version=2021-07-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armfeatures/v0.2.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 400, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "73", - "Content-Type": "application/json", - "Date": "Fri, 11 Mar 2022 03:14:52 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-failure-cause": "gateway", - "x-ms-providerhub-traffic": "True", - "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220311T031453Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "error": { - "code": "InvalidResource", - "message": "The resource is invalid." - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 11 Mar 2022 03:14:57 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ3NS1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14999", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220311T031457Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ3NS1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 11 Mar 2022 03:15:12 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ3NS1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11999", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220311T031513Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ3NS1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 11 Mar 2022 03:15:27 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ3NS1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11998", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220311T031528Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ3NS1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 11 Mar 2022 03:15:44 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ3NS1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11997", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220311T031544Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ3NS1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 11 Mar 2022 03:15:59 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ3NS1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11996", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220311T031559Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ3NS1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 11 Mar 2022 03:16:15 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11995", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220311T031615Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/resourcemanager/resources/armpolicy/assets.json b/sdk/resourcemanager/resources/armpolicy/assets.json new file mode 100644 index 000000000000..0e34ba287c28 --- /dev/null +++ b/sdk/resourcemanager/resources/armpolicy/assets.json @@ -0,0 +1,6 @@ +{ + "AssetsRepo": "Azure/azure-sdk-assets", + "AssetsRepoPrefixPath": "go", + "TagPrefix": "go/resourcemanager/resources/armpolicy", + "Tag": "go/resourcemanager/resources/armpolicy_926b1b16de" +} diff --git a/sdk/resourcemanager/resources/armpolicy/go.mod b/sdk/resourcemanager/resources/armpolicy/go.mod index edc678271f0b..2c8a1271c0ee 100644 --- a/sdk/resourcemanager/resources/armpolicy/go.mod +++ b/sdk/resourcemanager/resources/armpolicy/go.mod @@ -3,27 +3,27 @@ module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armpolicy go 1.18 require ( - github.com/Azure/azure-sdk-for-go/sdk/azcore v1.0.0 - github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.0.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.0.0 + github.com/Azure/azure-sdk-for-go/sdk/azcore v1.4.0 + github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.2 github.com/stretchr/testify v1.7.0 ) require ( - github.com/Azure/azure-sdk-for-go/sdk/internal v1.0.0 // indirect + github.com/Azure/azure-sdk-for-go/sdk/internal v1.2.0 // indirect github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0 // indirect - github.com/AzureAD/microsoft-authentication-library-for-go v0.4.0 // indirect + github.com/AzureAD/microsoft-authentication-library-for-go v0.7.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/dnaeon/go-vcr v1.1.0 // indirect - github.com/golang-jwt/jwt v3.2.1+incompatible // indirect + github.com/golang-jwt/jwt/v4 v4.4.2 // 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 github.com/pmezard/go-difflib v1.0.0 // 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 + golang.org/x/net v0.7.0 // indirect + golang.org/x/sys v0.5.0 // indirect + golang.org/x/text v0.7.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect ) diff --git a/sdk/resourcemanager/resources/armpolicy/go.sum b/sdk/resourcemanager/resources/armpolicy/go.sum index 3bb750d4f3e7..b0f97586a165 100644 --- a/sdk/resourcemanager/resources/armpolicy/go.sum +++ b/sdk/resourcemanager/resources/armpolicy/go.sum @@ -1,29 +1,27 @@ -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/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.0.0 h1:lMW1lD/17LUA5z1XTURo7LcVG2ICBPlyMHjIUrcFZNQ= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.0.0/go.mod h1:ceIuwmxDWptoW3eCqSXlnPsZFKh4X+R38dWPv7GS9Vs= +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.0 h1:t/W5MYAuQy81cvM8VUNfRLzhtKpXhVUAN7Cd7KVbTyc= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.0/go.mod h1:NBanQUfSWiWn3QEpWDTCU0IjBECKOYvl2R8xdRtMtiM= +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/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.2 h1:mLY+pNLjCUeKhgnAJWAKhEUQM+RJQo2H1fuGSw1Ky1E= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.2/go.mod h1:FbdwsQ2EzwvXxOPcMFYO8ogEc9uMMIj3YkmCdXdAFmk= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0 h1:ECsQtyERDVz3NP3kvDOTLvbQhqWp/x9EsGKtb4ogUr8= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0/go.mod h1:s1tW/At+xHqjNFvWU4G0c0Qv33KOhvbGNj0RCTQDV8s= -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/AzureAD/microsoft-authentication-library-for-go v0.7.0 h1:VgSJlZH5u0k2qxSpqyghcFQKmvYckj46uymKK5XzkBM= +github.com/AzureAD/microsoft-authentication-library-for-go v0.7.0/go.mod h1:BDJ5qMFKx9DugEg3+uQSDCdbYPr5s9vBTrL9P8TpqOU= 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/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 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= +github.com/golang-jwt/jwt/v4 v4.4.2 h1:rcc4lwaZgFMCZ5jxF9ABolDcIHdBytAFgqFPbSJQAYs= +github.com/golang-jwt/jwt/v4 v4.4.2/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= 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= @@ -33,13 +31,12 @@ github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5Cc github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= 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-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/net v0.7.0 h1:rJrUqqhjsgNp7KqAIc25s9pZnjU7TUcSY7HcVZjdn1g= +golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= +golang.org/x/sys v0.5.0 h1:MUK/U/4lj1t1oPg0HfuXDN/Z1wv31ZJ/YcPiGccS4DU= +golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/text v0.7.0 h1:4BRB4x83lYWy72KwLD/qYDuTu7q9PjSagHvijDw7cLo= +golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= 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= diff --git a/sdk/resourcemanager/resources/armpolicy/testdata/recordings/TestPolicyDefinitionsClient.json b/sdk/resourcemanager/resources/armpolicy/testdata/recordings/TestPolicyDefinitionsClient.json deleted file mode 100644 index dcbb92791719..000000000000 --- a/sdk/resourcemanager/resources/armpolicy/testdata/recordings/TestPolicyDefinitionsClient.json +++ /dev/null @@ -1,97806 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": { - "location": "eastus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 11 Mar 2022 06:27:58 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220311T062759Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "eastus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/policyDefinitions/go-test-definition?api-version=2021-06-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "488", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armpolicy/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": { - "properties": { - "description": "test case", - "metadata": null, - "parameters": { - "prefix": { - "defaultValue": null, - "metadata": { - "description": "prefix description", - "displayName": "test case prefix" - }, - "type": "String" - }, - "suffix": { - "defaultValue": null, - "metadata": { - "description": "suffix description", - "displayName": "test case suffix" - }, - "type": "String" - } - }, - "policyRule": { - "if": { - "not": { - "field": "name", - "like": "[concat(parameters(\u0027prefix\u0027), \u0027*\u0027, parameters(\u0027suffix\u0027))]" - } - }, - "then": { - "effect": "deny" - } - }, - "policyType": "Custom" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "1077", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 11 Mar 2022 06:27:58 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220311T062759Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "policyType": "Custom", - "mode": "Indexed", - "description": "test case", - "metadata": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdOn": "2022-03-11T06:27:59.2606205Z", - "updatedBy": null, - "updatedOn": null - }, - "parameters": { - "prefix": { - "type": "String", - "metadata": { - "description": "prefix description", - "displayName": "test case prefix" - } - }, - "suffix": { - "type": "String", - "metadata": { - "description": "suffix description", - "displayName": "test case suffix" - } - } - }, - "policyRule": { - "if": { - "not": { - "field": "name", - "like": "[concat(parameters(\u0027prefix\u0027), \u0027*\u0027, parameters(\u0027suffix\u0027))]" - } - }, - "then": { - "effect": "deny" - } - } - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/policyDefinitions/go-test-definition", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "go-test-definition", - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-03-11T06:27:59.2338274Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-03-11T06:27:59.2338274Z" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/policyDefinitions/go-test-definition?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armpolicy/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 11 Mar 2022 06:27:58 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11999", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220311T062759Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "policyType": "Custom", - "mode": "Indexed", - "description": "test case", - "metadata": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdOn": "2022-03-11T06:27:59.2606205Z", - "updatedBy": null, - "updatedOn": null - }, - "parameters": { - "prefix": { - "type": "String", - "metadata": { - "description": "prefix description", - "displayName": "test case prefix" - } - }, - "suffix": { - "type": "String", - "metadata": { - "description": "suffix description", - "displayName": "test case suffix" - } - } - }, - "policyRule": { - "if": { - "not": { - "field": "name", - "like": "[concat(parameters(\u0027prefix\u0027), \u0027*\u0027, parameters(\u0027suffix\u0027))]" - } - }, - "then": { - "effect": "deny" - } - } - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/policyDefinitions/go-test-definition", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "go-test-definition", - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-03-11T06:27:59.2338274Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-03-11T06:27:59.2338274Z" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/policyDefinitions?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armpolicy/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 11 Mar 2022 06:27:59 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11998", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220311T062759Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "properties": { - "displayName": "Microsoft Managed Control 1599 - Developer Configuration Management | Software / Firmware Integrity Verification", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Services Acquisition control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1599" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Audit virtual machines without disaster recovery configured", - "policyType": "BuiltIn", - "mode": "All", - "description": "Audit virtual machines which do not have disaster recovery configured. To learn more about disaster recovery, visit https://aka.ms/asr-doc.", - "metadata": { - "version": "1.0.0", - "category": "Compute" - }, - "parameters": {}, - "policyRule": { - "if": { - "field": "type", - "in": [ - "Microsoft.Compute/virtualMachines", - "Microsoft.ClassicCompute/virtualMachines" - ] - }, - "then": { - "effect": "auditIfNotExists", - "details": { - "type": "Microsoft.Resources/links", - "existenceCondition": { - "field": "name", - "like": "ASR-Protect-*" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Audit Web Sockets state for a Function App", - "policyType": "BuiltIn", - "mode": "All", - "description": "The Web Sockets protocol is vulnerable to different types of security threats. Use of Web Sockets within an Function app must be carefully reviewed.", - "metadata": { - "version": "1.0.0-deprecated", - "category": "Security Center", - "deprecated": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "allof": [ - { - "field": "type", - "equals": "microsoft.Web/sites" - }, - { - "anyof": [ - { - "field": "kind", - "equals": "functionapp" - }, - { - "field": "kind", - "equals": "functionapp,linux" - }, - { - "field": "kind", - "equals": "functionapp,linux,container" - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Security/complianceResults", - "name": "DisableWebSockets", - "existenceCondition": { - "field": "Microsoft.Security/complianceResults/resourceStatus", - "in": [ - "OffByPolicy", - "Healthy" - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1375 - Incident Response Assistance | Automation Support For Availability Of Information / Support", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Incident Response control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1375" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Vulnerability assessment should be enabled on your Synapse workspaces", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Discover, track, and remediate potential vulnerabilities by configuring recurring SQL vulnerability assessment scans on your Synapse workspaces.", - "metadata": { - "version": "1.0.0", - "category": "Synapse" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Synapse/workspaces" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Synapse/workspaces/vulnerabilityAssessments", - "name": "default", - "existenceCondition": { - "field": "Microsoft.Synapse/workspaces/vulnerabilityAssessments/recurringScans.isEnabled", - "equals": "True" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1605 - Developer Security Testing And Evaluation | Static Code Analysis", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Services Acquisition control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1605" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "SQL Server Integration Services integration runtimes on Azure Data Factory should be joined to a virtual network", - "policyType": "BuiltIn", - "mode": "All", - "description": "Azure Virtual Network deployment provides enhanced security and isolation for your SQL Server Integration Services integration runtimes on Azure Data Factory, as well as subnets, access control policies, and other features to further restrict access.", - "metadata": { - "version": "2.0.0", - "category": "Data Factory" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "The effect determines what happens when the policy rule is evaluated to match." - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.DataFactory/factories/integrationRuntimes" - }, - { - "field": "Microsoft.DataFactory/factories/integrationruntimes/type", - "equals": "Managed" - }, - { - "field": "Microsoft.DataFactory/factories/integrationRuntimes/Managed.typeProperties.computeProperties.vnetProperties.vnetId", - "exists": "false" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Preview]: Configure VMSS created with Shared Image Gallery images to install the Guest Attestation extension", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Configure VMSS created with Shared Image Gallery images to automatically install the Guest Attestation extension to allow Azure Security Center to proactively attest and monitor the boot integrity. Boot integrity is attested via Remote Attestation.", - "metadata": { - "category": "Security Center", - "version": "2.0.0-preview", - "preview": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - }, - "attestationEndpoint": { - "type": "String", - "metadata": { - "displayName": "Guest attestation tenant URL", - "description": "The Microsoft Azure Attestation (MAA) custom tenant URL." - }, - "defaultValue": "" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachineScaleSets" - }, - { - "field": "Microsoft.Compute/virtualMachineScaleSets/virtualMachineProfile.securityProfile.securityType", - "equals": "TrustedLaunch" - }, - { - "field": "Microsoft.Compute/virtualMachineScaleSets/virtualMachineProfile.securityProfile.uefiSettings", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachineScaleSets/virtualMachineProfile.securityProfile.uefiSettings.vTpmEnabled", - "equals": "true" - }, - { - "field": "Microsoft.Compute/virtualMachineScaleSets/virtualMachineProfile.securityProfile.uefiSettings.secureBootEnabled", - "equals": "true" - }, - { - "field": "Microsoft.Compute/imageid", - "exists": "true" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Compute/virtualMachineScaleSets/extensions", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.Compute/virtualMachineScaleSets/extensions/publisher", - "in": [ - "Microsoft.Azure.Security.LinuxAttestation", - "Microsoft.Azure.Security.WindowsAttestation" - ] - }, - { - "field": "Microsoft.Compute/virtualMachineScaleSets/extensions/type", - "equals": "GuestAttestation" - }, - { - "field": "Microsoft.Compute/virtualMachineScaleSets/extensions/provisioningState", - "in": [ - "Succeeded", - "Provisioning succeeded" - ] - } - ] - }, - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000", - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "deployment": { - "properties": { - "mode": "incremental", - "parameters": { - "vmName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "imageId": { - "value": "[field(\u0027Microsoft.Compute/imageid\u0027)]" - }, - "attestationEndpoint": { - "value": "[parameters(\u0027attestationEndpoint\u0027)]" - } - }, - "template": { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "vmName": { - "type": "string" - }, - "location": { - "type": "string" - }, - "imageId": { - "type": "string" - }, - "attestationEndpoint": { - "type": "string" - } - }, - "variables": { - "extensionName": "GuestAttestation", - "extensionPublisherPrefix": "Microsoft.Azure.Security.", - "extensionPublisherSuffix": "Attestation", - "extensionVersion": "1.0", - "maaTenantName": "GuestAttestation", - "ascReportingEndpoint": "" - }, - "resources": [ - { - "type": "Microsoft.Compute/virtualMachineScaleSets/extensions", - "apiVersion": "2018-10-01", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/\u0027, variables(\u0027extensionName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "publisher": "[concat(variables(\u0027extensionPublisherPrefix\u0027), reference(split(parameters(\u0027imageId\u0027), \u0027/versions\u0027)[0], \u00272021-07-01\u0027).osType, variables(\u0027extensionPublisherSuffix\u0027))]", - "type": "[variables(\u0027extensionName\u0027)]", - "typeHandlerVersion": "[variables(\u0027extensionVersion\u0027)]", - "autoUpgradeMinorVersion": true, - "settings": { - "AttestationConfig": { - "MaaSettings": { - "maaEndpoint": "[parameters(\u0027attestationEndpoint\u0027)]", - "maaTenantName": "[variables(\u0027maaTenantName\u0027)]" - }, - "AscSettings": { - "ascReportingEndpoint": "[variables(\u0027ascReportingEndpoint\u0027)]", - "ascReportingFrequency": "" - }, - "useCustomToken": "false", - "disableAlerts": "false" - } - } - } - } - ] - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Private endpoint connections on Batch accounts should be enabled", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Private endpoint connections allow secure communication by enabling private connectivity to Batch accounts without a need for public IP addresses at the source or destination. Learn more about private endpoints in Batch at https://docs.microsoft.com/azure/batch/private-connectivity.", - "metadata": { - "version": "1.0.0", - "category": "Batch" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Batch/batchAccounts" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Batch/batchAccounts/privateEndpointConnections", - "existenceCondition": { - "field": "Microsoft.Batch/batchAccounts/privateEndpointConnections/privateLinkServiceConnectionState.status", - "equals": "Approved" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Azure Backup should be enabled for Virtual Machines", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Ensure protection of your Azure Virtual Machines by enabling Azure Backup. Azure Backup is a secure and cost effective data protection solution for Azure.", - "metadata": { - "version": "3.0.0", - "category": "Backup" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "field": "id", - "notContains": "/resourceGroups/databricks-rg-" - }, - { - "field": "Microsoft.Compute/imagePublisher", - "notEquals": "azureopenshift" - }, - { - "field": "Microsoft.Compute/imagePublisher", - "notEquals": "AzureDatabricks" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.RecoveryServices/backupprotecteditems" - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1142 - Security Assessment And Authorization Policy And Procedures", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Security Assessment and Authorization control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1142" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1099 - Security Training Records", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Awareness and Training control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1099" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1285 - Telecommunications Services | Provider Contingency Plan", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Contingency Planning control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1285" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1709 - Security Function Verification", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Information Integrity control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1709" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1052 - Session Lock", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Access Control control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1052" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1034 - Least Privilege", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Access Control control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1034" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Show audit results from Windows VMs on which the remote connection status does not match the specified one", - "policyType": "BuiltIn", - "mode": "All", - "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines on which the remote host connection status does not match the specified one. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol", - "metadata": { - "version": "1.0.0-deprecated", - "category": "Guest Configuration", - "deprecated": true - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "dsvm-windows" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - } - ] - }, - "then": { - "effect": "auditIfNotExists", - "details": { - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "WindowsRemoteConnection", - "existenceCondition": { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus", - "equals": "Compliant" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1623 - Boundary Protection", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Communications Protection control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1623" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1515 - Personnel Termination", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Personnel Security control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1515" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1327 - Authenticator Management | Password-Based Authentication", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Identification and Authentication control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1327" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Preview]: Azure Security agent should be installed on your Windows Arc machines", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Install the Azure Security agent on your Windows Arc machines in order to monitor your machines for security configurations and vulnerabilities. Results of the assessments can seen and managed in Azure Security Center.", - "metadata": { - "category": "Security Center", - "version": "1.0.0-preview", - "preview": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.HybridCompute/machines/extensions", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.HybridCompute/machines/extensions/type", - "equals": "AzureSecurityWindowsAgent" - }, - { - "field": "Microsoft.HybridCompute/machines/extensions/Publisher", - "equals": "Microsoft.Azure.Security.Monitoring" - }, - { - "field": "Microsoft.HybridCompute/machines/extensions/provisioningState", - "equals": "Succeeded" - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1229 - Information System Component Inventory | No Duplicate Accounting Of Components", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Configuration Management control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1229" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Cognitive Services accounts should restrict network access", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Network access to Cognitive Services accounts should be restricted. Configure network rules so only applications from allowed networks can access the Cognitive Services account. To allow connections from specific internet or on-premises clients, access can be granted to traffic from specific Azure virtual networks or to public internet IP address ranges.", - "metadata": { - "version": "2.0.0", - "category": "Cognitive Services" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "The effect determines what happens when the policy rule is evaluated to match" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.CognitiveServices/accounts" - }, - { - "field": "Microsoft.CognitiveServices/accounts/networkAcls.defaultAction", - "notEquals": "Deny" - }, - { - "count": { - "field": "Microsoft.CognitiveServices/accounts/capabilities[*]", - "where": { - "field": "Microsoft.CognitiveServices/accounts/capabilities[*].name", - "equals": "VirtualNetworks" - } - }, - "greater": 0 - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1123 - Audit Review, Analysis, And Reporting | Audit Level Adjustment", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Audit and Accountability control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1123" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1474 - Emergency Power | Long-Term Alternate Power Supply - Minimal Operational Capability", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Physical and Environmental Protection control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1474" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1227 - Information System Component Inventory | Automated Unauthorized Component Detection", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Configuration Management control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1227" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1361 - Incident Handling", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Incident Response control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1361" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Azure Kubernetes Service Private Clusters should be enabled", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Enable the private cluster feature for your Azure Kubernetes Service cluster to ensure network traffic between your API server and your node pools remains on the private network only. This is a common requirement in many regulatory and industry compliance standards.", - "metadata": { - "version": "1.0.0", - "category": "Kubernetes" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy." - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.ContainerService/managedClusters" - }, - { - "field": "Microsoft.ContainerService/managedClusters/apiServerAccessProfile.enablePrivateCluster", - "notEquals": true - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1594 - Developer Configuration Management", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Services Acquisition control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1594" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Audit Linux machines that have the specified applications installed", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if the Chef InSpec resource indicates that one or more of the packages provided by the parameter are installed.", - "metadata": { - "category": "Guest Configuration", - "version": "4.0.0", - "requiredProviders": [ - "Microsoft.GuestConfiguration" - ], - "guestConfiguration": { - "name": "not_installed_application_linux", - "version": "1.*", - "configurationParameter": { - "ApplicationName": "[ChefInSpec]NotInstalledApplicationLinuxResource1;AttributesYmlContent" - } - } - }, - "parameters": { - "IncludeArcMachines": { - "type": "String", - "metadata": { - "displayName": "Include Arc connected servers", - "description": "By selecting this option, you agree to be charged monthly per Arc connected machine.", - "portalReview": "true" - }, - "allowedValues": [ - "true", - "false" - ], - "defaultValue": "false" - }, - "ApplicationName": { - "type": "String", - "metadata": { - "displayName": "Application names", - "description": "A semicolon-separated list of the names of the applications that should not be installed. e.g. \u0027python; powershell\u0027" - } - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of this policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "microsoft-aks", - "qubole-inc", - "datastax", - "couchbase", - "scalegrid", - "checkpoint", - "paloaltonetworks", - "debian" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "OpenLogic" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "CentOS*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "6*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Oracle" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Oracle-Linux" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "6*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "RedHat" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "RHEL", - "RHEL-HA", - "RHEL-SAP", - "RHEL-SAP-APPS", - "RHEL-SAP-HA", - "RHEL-SAP-HANA" - ] - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "6*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "RedHat" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "osa", - "rhel-byos" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "cis-centos-7-l1", - "cis-centos-7-v2-1-1-l1", - "cis-centos-8-l1", - "cis-debian-linux-8-l1", - "cis-debian-linux-9-l1", - "cis-nginx-centos-7-v1-1-0-l1", - "cis-oracle-linux-7-v2-0-0-l1", - "cis-oracle-linux-8-l1", - "cis-postgresql-11-centos-linux-7-level-1", - "cis-rhel-7-l2", - "cis-rhel-7-v2-2-0-l1", - "cis-rhel-8-l1", - "cis-suse-linux-12-v2-0-0-l1", - "cis-ubuntu-linux-1604-v1-0-0-l1", - "cis-ubuntu-linux-1804-l1" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "credativ" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Debian" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "7*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Suse" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "SLES*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "11*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Canonical" - }, - { - "field": "Microsoft.Compute/imageOffer", - "contains": "Ubuntu" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "12*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "linux-data-science-vm-ubuntu", - "azureml", - "ubuntu-hpc", - "ubuntu-1804" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloudera" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "cloudera-centos-os" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "6*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloudera" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "cloudera-altus-centos-os" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "linux*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.linuxConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Linux*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "exists": "false" - }, - { - "field": "Microsoft.Compute/imagePublisher", - "notIn": [ - "OpenLogic", - "RedHat", - "credativ", - "Suse", - "Canonical", - "microsoft-dsvm", - "cloudera", - "microsoft-ads", - "center-for-internet-security-inc", - "Oracle", - "AzureDatabricks", - "azureopenshift" - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "value": "[parameters(\u0027IncludeArcMachines\u0027)]", - "equals": "true" - }, - { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "linux*" - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.ConnectedVMwarevSphere/virtualMachines" - }, - { - "field": "Microsoft.ConnectedVMwarevSphere/virtualMachines/osProfile.osType", - "like": "linux*" - } - ] - } - ] - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "not_installed_application_linux", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus", - "equals": "Compliant" - }, - { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash", - "equals": "[base64(concat(\u0027[ChefInSpec]NotInstalledApplicationLinuxResource1;AttributesYmlContent\u0027, \u0027=\u0027, parameters(\u0027ApplicationName\u0027)))]" - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Storage account keys should not be expired", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Ensure the user storage account keys are not expired when key expiration policy is set, for improving security of account keys by taking action when the keys are expired.", - "metadata": { - "version": "3.0.0", - "category": "Storage" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Audit allows a non-compliant resource to be created, but flags it as non-compliant. Deny blocks the resource creation and update. Disable turns off the policy." - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Storage/storageAccounts" - }, - { - "anyOf": [ - { - "value": "[utcNow()]", - "greater": "[if(and(not(empty(coalesce(field(\u0027Microsoft.Storage/storageAccounts/keyCreationTime.key1\u0027), \u0027\u0027))), not(empty(string(coalesce(field(\u0027Microsoft.Storage/storageAccounts/keyPolicy.keyExpirationPeriodInDays\u0027), \u0027\u0027))))), addDays(field(\u0027Microsoft.Storage/storageAccounts/keyCreationTime.key1\u0027), field(\u0027Microsoft.Storage/storageAccounts/keyPolicy.keyExpirationPeriodInDays\u0027)), utcNow())]" - }, - { - "value": "[utcNow()]", - "greater": "[if(and(not(empty(coalesce(field(\u0027Microsoft.Storage/storageAccounts/keyCreationTime.key2\u0027), \u0027\u0027))), not(empty(string(coalesce(field(\u0027Microsoft.Storage/storageAccounts/keyPolicy.keyExpirationPeriodInDays\u0027), \u0027\u0027))))), addDays(field(\u0027Microsoft.Storage/storageAccounts/keyCreationTime.key2\u0027), field(\u0027Microsoft.Storage/storageAccounts/keyPolicy.keyExpirationPeriodInDays\u0027)), utcNow())]" - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Azure Cosmos DB allowed locations", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "This policy enables you to restrict the locations your organization can specify when deploying Azure Cosmos DB resources. Use to enforce your geo-compliance requirements.", - "metadata": { - "version": "1.0.0", - "category": "Cosmos DB" - }, - "parameters": { - "listOfAllowedLocations": { - "type": "Array", - "metadata": { - "displayName": "Allowed locations", - "description": "The list of locations that can be specified when deploying Azure Cosmos DB resources.", - "strongType": "location" - } - }, - "policyEffect": { - "type": "String", - "metadata": { - "displayName": "Policy Effect", - "description": "The desired effect of the policy." - }, - "allowedValues": [ - "deny", - "audit", - "disabled" - ], - "defaultValue": "deny" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.DocumentDB/databaseAccounts" - }, - { - "count": { - "field": "Microsoft.DocumentDB/databaseAccounts/Locations[*]", - "where": { - "value": "[replace(toLower(first(field(\u0027Microsoft.DocumentDB/databaseAccounts/Locations[*].locationName\u0027))), \u0027 \u0027, \u0027\u0027)]", - "in": "[parameters(\u0027listOfAllowedLocations\u0027)]" - } - }, - "notEquals": "[length(field(\u0027Microsoft.DocumentDB/databaseAccounts/Locations[*]\u0027))]" - } - ] - }, - "then": { - "effect": "[parameters(\u0027policyEffect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: SQL managed instances should use customer-managed keys to encrypt data at rest", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "This policy is deprecated. Please use /providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000 instead", - "metadata": { - "version": "1.0.2-deprecated", - "category": "SQL", - "deprecated": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Sql/managedInstances" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Sql/managedInstances/encryptionProtector", - "name": "current", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.Sql/managedInstances/encryptionProtector/serverKeyType", - "equals": "AzureKeyVault" - }, - { - "field": "Microsoft.Sql/managedInstances/encryptionProtector/uri", - "notEquals": "" - }, - { - "field": "Microsoft.Sql/managedInstances/encryptionProtector/uri", - "exists": "true" - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Preview]: Network traffic data collection agent should be installed on Linux virtual machines", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Security Center uses the Microsoft Dependency agent to collect network traffic data from your Azure virtual machines to enable advanced network protection features such as traffic visualization on the network map, network hardening recommendations and specific network threats.", - "metadata": { - "version": "1.0.2-preview", - "category": "Monitoring", - "preview": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable Dependency Agent for Linux VMs monitoring" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Canonical" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "UbuntuServer" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "in": [ - "14.04.0-LTS", - "14.04.1-LTS", - "14.04.5-LTS" - ] - }, - { - "field": "Microsoft.Compute/imageSKU", - "in": [ - "16.04-LTS", - "16.04.0-LTS" - ] - }, - { - "field": "Microsoft.Compute/imageSKU", - "in": [ - "18.04-LTS" - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "RedHat" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "RHEL", - "RHEL-SAP-HANA" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "like": "6.*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "7*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "SUSE" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "SLES", - "SLES-HPC", - "SLES-HPC-Priority", - "SLES-SAP", - "SLES-SAP-BYOS", - "SLES-Priority", - "SLES-BYOS", - "SLES-SAPCAL", - "SLES-Standard" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "in": [ - "12-SP2", - "12-SP3", - "12-SP4" - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "OpenLogic" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "CentOS", - "Centos-LVM", - "CentOS-SRIOV" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "like": "6.*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "7*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloudera" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "cloudera-centos-os" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "7*" - } - ] - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Compute/virtualMachines/extensions", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.Compute/virtualMachines/extensions/type", - "equals": "DependencyAgentLinux" - }, - { - "field": "Microsoft.Compute/virtualMachines/extensions/publisher", - "equals": "Microsoft.Azure.Monitoring.DependencyAgent" - }, - { - "field": "Microsoft.Compute/virtualMachines/extensions/provisioningState", - "equals": "Succeeded" - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Shared dashboards should not have markdown tiles with inline content", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Disallow creating a shared dashboard that has inline content in markdown tiles and enforce that the content should be stored as a markdown file that\u0027s hosted online. If you use inline content in the markdown tile, you cannot manage encryption of the content. By configuring your own storage, you can encrypt, double encrypt and even bring your own keys. Enabling this policy restricts users to use 2020-09-01-preview or above version of shared dashboards REST API.", - "metadata": { - "version": "1.0.0", - "category": "Portal" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "The effect determines what happens when the policy rule is evaluated to match" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Portal/dashboards" - }, - { - "anyof": [ - { - "not": { - "value": "[requestContext().apiVersion]", - "greaterOrEquals": "2020-09-01-alpha" - } - }, - { - "count": { - "field": "Microsoft.Portal/dashboards/lenses[*].parts[*]", - "where": { - "allOf": [ - { - "field": "Microsoft.Portal/dashboards/lenses[*].parts[*].metadata.type", - "equals": "Extension/HubsExtension/PartType/MarkdownPart" - }, - { - "anyOf": [ - { - "field": "Microsoft.Portal/dashboards/lenses[*].parts[*].metadata.Extension-HubsExtension-PartType-MarkdownPart.settings.content.settings.markdownUri", - "exists": "false" - }, - { - "field": "Microsoft.Portal/dashboards/lenses[*].parts[*].metadata.Extension-HubsExtension-PartType-MarkdownPart.settings.content.settings.markdownSource", - "exists": "false" - }, - { - "field": "Microsoft.Portal/dashboards/lenses[*].parts[*].metadata.Extension-HubsExtension-PartType-MarkdownPart.settings.content.settings.markdownSource", - "equals": "1" - } - ] - } - ] - } - }, - "greater": 0 - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Deploy Diagnostic Settings for Service Bus to Log Analytics workspace", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Deploys the diagnostic settings for Service Bus to stream to a regional Log Analytics workspace when any Service Bus which is missing this diagnostic settings is created or updated.", - "metadata": { - "version": "2.0.0", - "category": "Monitoring" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - }, - "profileName": { - "type": "String", - "metadata": { - "displayName": "Profile name", - "description": "The diagnostic settings profile name" - }, - "defaultValue": "setbypolicy_logAnalytics" - }, - "logAnalytics": { - "type": "String", - "metadata": { - "displayName": "Log Analytics workspace", - "description": "Select Log Analytics workspace from dropdown list. If this workspace is outside of the scope of the assignment you must manually grant \u0027Log Analytics Contributor\u0027 permissions (or similar) to the policy assignment\u0027s principal ID.", - "strongType": "omsWorkspace", - "assignPermissions": true - } - }, - "metricsEnabled": { - "type": "String", - "metadata": { - "displayName": "Enable metrics", - "description": "Whether to enable metrics stream to the Log Analytics workspace - True or False" - }, - "allowedValues": [ - "True", - "False" - ], - "defaultValue": "False" - }, - "logsEnabled": { - "type": "String", - "metadata": { - "displayName": "Enable logs", - "description": "Whether to enable logs stream to the Log Analytics workspace - True or False" - }, - "allowedValues": [ - "True", - "False" - ], - "defaultValue": "True" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.ServiceBus/namespaces" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Insights/diagnosticSettings", - "name": "[parameters(\u0027profileName\u0027)]", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.Insights/diagnosticSettings/logs.enabled", - "equals": "[parameters(\u0027logsEnabled\u0027)]" - }, - { - "field": "Microsoft.Insights/diagnosticSettings/metrics.enabled", - "equals": "[parameters(\u0027metricsEnabled\u0027)]" - } - ] - }, - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000", - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "deployment": { - "properties": { - "mode": "incremental", - "template": { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "resourceName": { - "type": "string" - }, - "location": { - "type": "string" - }, - "logAnalytics": { - "type": "string" - }, - "metricsEnabled": { - "type": "string" - }, - "logsEnabled": { - "type": "string" - }, - "profileName": { - "type": "string" - } - }, - "variables": {}, - "resources": [ - { - "type": "Microsoft.ServiceBus/namespaces/providers/diagnosticSettings", - "apiVersion": "2017-05-01-preview", - "name": "[concat(parameters(\u0027resourceName\u0027), \u0027/\u0027, \u0027Microsoft.Insights/\u0027, parameters(\u0027profileName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "dependsOn": [], - "properties": { - "workspaceId": "[parameters(\u0027logAnalytics\u0027)]", - "metrics": [ - { - "category": "AllMetrics", - "enabled": "[parameters(\u0027metricsEnabled\u0027)]", - "retentionPolicy": { - "enabled": false, - "days": 0 - } - } - ], - "logs": [ - { - "category": "OperationalLogs", - "enabled": "[parameters(\u0027logsEnabled\u0027)]" - }, - { - "category": "VNetAndIPFilteringLogs", - "enabled": "[parameters(\u0027logsEnabled\u0027)]" - } - ] - } - } - ], - "outputs": {} - }, - "parameters": { - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "resourceName": { - "value": "[field(\u0027name\u0027)]" - }, - "logAnalytics": { - "value": "[parameters(\u0027logAnalytics\u0027)]" - }, - "metricsEnabled": { - "value": "[parameters(\u0027metricsEnabled\u0027)]" - }, - "logsEnabled": { - "value": "[parameters(\u0027logsEnabled\u0027)]" - }, - "profileName": { - "value": "[parameters(\u0027profileName\u0027)]" - } - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1572 - Acquisition Process", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Services Acquisition control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1572" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Configure Linux Virtual Machine Scale Sets to be associated with a Data Collection Rule", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Deploy Association to link Linux virtual machine scale sets to the specified Data Collection Rule. The list of locations and OS images are updated over time as support is increased.", - "metadata": { - "version": "1.0.0", - "category": "Monitoring" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy." - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - }, - "listOfLinuxImageIdToInclude": { - "type": "Array", - "metadata": { - "displayName": "Additional Linux Machine Images", - "description": "List of virtual machine scale set images that have supported Linux OS to add to scope. Example values: \u0027/subscriptions/\u003CsubscriptionId\u003E/resourceGroups/YourResourceGroup/providers/Microsoft.Compute/images/ContosoStdImage\u0027" - }, - "defaultValue": [] - }, - "dcrResourceId": { - "type": "String", - "metadata": { - "displayName": "Data Collection Rule Resource Id", - "description": "Resource Id of the Data Collection Rule to be applied on the Linux virtual machine scale sets in scope.", - "strongType": "Microsoft.Insights/dataCollectionRules" - } - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachineScaleSets" - }, - { - "field": "location", - "in": [ - "australiacentral", - "australiacentral2", - "australiaeast", - "australiasoutheast", - "brazilsouth", - "brazilsoutheast", - "canadacentral", - "canadaeast", - "centralindia", - "centralus", - "eastasia", - "eastus2euap", - "eastus", - "eastus2", - "francecentral", - "francesouth", - "germanywestcentral", - "japaneast", - "japanwest", - "jioindiawest", - "koreacentral", - "koreasouth", - "northcentralus", - "northeurope", - "norwayeast", - "norwaywest", - "southafricanorth", - "southcentralus", - "southeastasia", - "southindia", - "switzerlandnorth", - "switzerlandwest", - "uaenorth", - "uksouth", - "ukwest", - "westcentralus", - "westeurope", - "westindia", - "westus", - "westus2" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageId", - "in": "[parameters(\u0027listOfLinuxImageIdToInclude\u0027)]" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "RedHat" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "RHEL", - "RHEL-SAP-HANA" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSku", - "like": "6*" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "7*" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "8*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "SUSE" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "SLES", - "SLES-HPC", - "SLES-HPC-Priority", - "SLES-SAP", - "SLES-SAP-BYOS", - "SLES-Priority", - "SLES-BYOS", - "SLES-SAPCAL", - "SLES-Standard" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSku", - "like": "12*" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "15*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Canonical" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "UbuntuServer" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSku", - "like": "14.04*LTS" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "16.04*LTS" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "18.04*LTS" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Canonical" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "0001-com-ubuntu-server-focal" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSku", - "like": "20_04-lts*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Oracle" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Oracle-Linux" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSku", - "like": "6*" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "7*" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "8*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "OpenLogic" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "CentOS", - "Centos-LVM", - "CentOS-SRIOV" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSku", - "like": "6*" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "7*" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "8*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloudera" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "cloudera-centos-os" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "7*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "credativ" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "debian" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSku", - "like": "8" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "9" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Debian" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "debian-10" - ] - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "10" - } - ] - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Insights/dataCollectionRuleAssociations", - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000", - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "existenceCondition": { - "field": "Microsoft.Insights/dataCollectionRuleAssociations/dataCollectionRuleId", - "equals": "[parameters(\u0027dcrResourceId\u0027)]" - }, - "deployment": { - "properties": { - "mode": "incremental", - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "resourceName": { - "type": "string" - }, - "location": { - "type": "string" - }, - "dcrResourceId": { - "type": "string" - } - }, - "variables": { - "associationName": "[concat(\u0027assoc-\u0027, uniqueString(parameters(\u0027dcrResourceId\u0027)))]" - }, - "resources": [ - { - "name": "[variables(\u0027associationName\u0027)]", - "type": "Microsoft.Insights/dataCollectionRuleAssociations", - "apiVersion": "2021-04-01", - "properties": { - "dataCollectionRuleId": "[parameters(\u0027dcrResourceId\u0027)]" - }, - "scope": "[concat(\u0027Microsoft.Compute/virtualMachineScaleSets/\u0027, parameters(\u0027resourceName\u0027))]" - } - ] - }, - "parameters": { - "resourceName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "dcrResourceId": { - "value": "[parameters(\u0027dcrResourceId\u0027)]" - } - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Azure API for FHIR should use a customer-managed key to encrypt data at rest", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Use a customer-managed key to control the encryption at rest of the data stored in Azure API for FHIR when this is a regulatory or compliance requirement. Customer-managed keys also deliver double encryption by adding a second layer of encryption on top of the default one done with service-managed keys.", - "metadata": { - "version": "1.0.1", - "category": "API for FHIR" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "audit", - "disabled" - ], - "defaultValue": "audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HealthcareApis/services" - }, - { - "field": "Microsoft.HealthcareApis/services/cosmosDbConfiguration.keyVaultKeyUri", - "exists": "false" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Deploy Log Analytics extension for Linux VMs", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Deploy Log Analytics extension for Linux VMs if the VM Image (OS) is in the list defined and the extension is not installed.", - "metadata": { - "version": "2.0.1", - "category": "Monitoring" - }, - "parameters": { - "logAnalytics": { - "type": "String", - "metadata": { - "displayName": "Log Analytics workspace", - "description": "Select Log Analytics workspace from dropdown list. If this workspace is outside of the scope of the assignment you must manually grant \u0027Log Analytics Contributor\u0027 permissions (or similar) to the policy assignment\u0027s principal ID.", - "strongType": "omsWorkspace", - "assignPermissions": true - } - }, - "listOfImageIdToInclude": { - "type": "Array", - "metadata": { - "displayName": "Optional: List of VM images that have supported Linux OS to add to scope", - "description": "Example value: \u0027/subscriptions/\u003CsubscriptionId\u003E/resourceGroups/YourResourceGroup/providers/Microsoft.Compute/images/ContosoStdImage\u0027" - }, - "defaultValue": [] - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageId", - "in": "[parameters(\u0027listOfImageIdToInclude\u0027)]" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "RedHat" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "RHEL", - "RHEL-SAP-HANA" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "like": "6.*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "7*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "8*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "SUSE" - }, - { - "anyOf": [ - { - "allOf": [ - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "SLES", - "SLES-HPC", - "SLES-HPC-Priority", - "SLES-SAP", - "SLES-SAP-BYOS", - "SLES-Priority", - "SLES-BYOS", - "SLES-SAPCAL", - "SLES-Standard" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "like": "12*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "15*" - } - ] - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageOffer", - "like": "sles-12-sp*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "sles-15-sp*" - } - ] - }, - { - "field": "Microsoft.Compute/imageSKU", - "in": [ - "gen1", - "gen2" - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Canonical" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "UbuntuServer", - "0001-com-ubuntu-server-focal" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "like": "14.04*LTS" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "16.04*LTS" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "16_04*lts-gen2" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "18.04*LTS" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "18_04*lts-gen2" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "20_04*lts" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "20_04*lts-gen2" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "credativ" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Debian" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "like": "8*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "9*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Oracle" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Oracle-Linux" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "like": "6.*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "7.*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "OpenLogic" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "CentOS", - "Centos-LVM", - "CentOS-SRIOV" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "like": "6.*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "7*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "8*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloudera" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "cloudera-centos-os" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "7*" - } - ] - } - ] - } - ] - }, - "then": { - "effect": "deployIfNotExists", - "details": { - "type": "Microsoft.Compute/virtualMachines/extensions", - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.Compute/virtualMachines/extensions/type", - "equals": "OmsAgentForLinux" - }, - { - "field": "Microsoft.Compute/virtualMachines/extensions/publisher", - "equals": "Microsoft.EnterpriseCloud.Monitoring" - }, - { - "field": "Microsoft.Compute/virtualMachines/extensions/provisioningState", - "equals": "Succeeded" - } - ] - }, - "deployment": { - "properties": { - "mode": "incremental", - "template": { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "vmName": { - "type": "string" - }, - "location": { - "type": "string" - }, - "logAnalytics": { - "type": "string" - } - }, - "variables": { - "vmExtensionName": "OMSAgentForLinux", - "vmExtensionPublisher": "Microsoft.EnterpriseCloud.Monitoring", - "vmExtensionType": "OmsAgentForLinux", - "vmExtensionTypeHandlerVersion": "1.13" - }, - "resources": [ - { - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/\u0027, variables(\u0027vmExtensionName\u0027))]", - "type": "Microsoft.Compute/virtualMachines/extensions", - "location": "[parameters(\u0027location\u0027)]", - "apiVersion": "2018-06-01", - "properties": { - "publisher": "[variables(\u0027vmExtensionPublisher\u0027)]", - "type": "[variables(\u0027vmExtensionType\u0027)]", - "typeHandlerVersion": "[variables(\u0027vmExtensionTypeHandlerVersion\u0027)]", - "autoUpgradeMinorVersion": true, - "settings": { - "workspaceId": "[reference(parameters(\u0027logAnalytics\u0027), \u00272015-03-20\u0027).customerId]", - "stopOnMultipleConnections": "true" - }, - "protectedSettings": { - "workspaceKey": "[listKeys(parameters(\u0027logAnalytics\u0027), \u00272015-03-20\u0027).primarySharedKey]" - } - } - } - ], - "outputs": { - "policy": { - "type": "string", - "value": "[concat(\u0027Enabled extension for VM\u0027, \u0027: \u0027, parameters(\u0027vmName\u0027))]" - } - } - }, - "parameters": { - "vmName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "logAnalytics": { - "value": "[parameters(\u0027logAnalytics\u0027)]" - } - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1331 - Authenticator Management | Password-Based Authentication", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Identification and Authentication control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1331" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Azure Web Application Firewall should be enabled for Azure Front Door entry-points", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Deploy Azure Web Application Firewall (WAF) in front of public facing web applications for additional inspection of incoming traffic. Web Application Firewall (WAF) provides centralized protection of your web applications from common exploits and vulnerabilities such as SQL injections, Cross-Site Scripting, local and remote file executions. You can also restrict access to your web applications by countries, IP address ranges, and other http(s) parameters via custom rules.", - "metadata": { - "version": "1.0.2", - "category": "Network" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Network/frontdoors" - }, - { - "field": "Microsoft.Network/frontdoors/frontendEndpoints[*].webApplicationFirewallPolicyLink.id", - "exists": "false" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Private endpoint should be enabled for PostgreSQL servers", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Private endpoint connections enforce secure communication by enabling private connectivity to Azure Database for PostgreSQL. Configure a private endpoint connection to enable access to traffic coming only from known networks and prevent access from all other IP addresses, including within Azure.", - "metadata": { - "version": "1.0.2", - "category": "SQL" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.DBforPostgreSQL/servers" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.DBforPostgreSQL/servers/privateEndpointConnections", - "existenceCondition": { - "field": "Microsoft.DBforPostgreSQL/servers/privateEndpointConnections/privateLinkServiceConnectionState.status", - "equals": "Approved" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Vulnerability Assessment settings for SQL server should contain an email address to receive scan reports", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Ensure that an email address is provided for the \u0027Send scan reports to\u0027 field in the Vulnerability Assessment settings. This email address receives scan result summary after a periodic scan runs on SQL servers.", - "metadata": { - "version": "2.0.0", - "category": "SQL" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Sql/servers" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Sql/servers/vulnerabilityAssessments", - "name": "default", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.Sql/servers/vulnerabilityAssessments/default.recurringScans.emails[*]", - "notEquals": "" - }, - { - "count": { - "field": "Microsoft.Sql/servers/vulnerabilityAssessments/default.recurringScans.emails[*]" - }, - "notEquals": 0 - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Resource logs in Azure Data Lake Store should be enabled", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Audit enabling of resource logs. This enables you to recreate activity trails to use for investigation purposes; when a security incident occurs or when your network is compromised", - "metadata": { - "version": "5.0.0", - "category": "Data Lake" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - }, - "requiredRetentionDays": { - "type": "String", - "metadata": { - "displayName": "Required retention (days)", - "description": "The required resource logs retention in days" - }, - "defaultValue": "365" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.DataLakeStore/accounts" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Insights/diagnosticSettings", - "existenceCondition": { - "count": { - "field": "Microsoft.Insights/diagnosticSettings/logs[*]", - "where": { - "anyOf": [ - { - "allOf": [ - { - "field": "Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.enabled", - "equals": "true" - }, - { - "anyOf": [ - { - "field": "Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.days", - "equals": "0" - }, - { - "value": "[padLeft(current(\u0027Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.days\u0027), 3, \u00270\u0027)]", - "greaterOrEquals": "[padLeft(parameters(\u0027requiredRetentionDays\u0027), 3, \u00270\u0027)]" - } - ] - }, - { - "field": "Microsoft.Insights/diagnosticSettings/logs.enabled", - "equals": "true" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Insights/diagnosticSettings/logs.enabled", - "equals": "true" - }, - { - "anyOf": [ - { - "field": "Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.enabled", - "notEquals": "true" - }, - { - "field": "Microsoft.Insights/diagnosticSettings/storageAccountId", - "exists": false - } - ] - } - ] - } - ] - } - }, - "greaterOrEquals": 1 - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1132 - Protection Of Audit Information | Audit Backup On Separate Physical Systems / Components", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Audit and Accountability control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1132" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1223 - Information System Component Inventory", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Configuration Management control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1223" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1640 - Transmission Confidentiality And Integrity", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Communications Protection control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1640" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1420 - Maintenance Personnel", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Maintenance control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1420" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1658 - Secure Name / Address Resolution Service (Recursive Or Caching Resolver)", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Communications Protection control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1658" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1688 - Information System Monitoring", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Information Integrity control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1688" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Configure Azure File Sync to use private DNS zones", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "To access the private endpoint(s) for Storage Sync Service resource interfaces from a registered server, you need to configure your DNS to resolve the correct names to your private endpoint\u0027s private IP addresses. This policy creates the requisite Azure Private DNS Zone and A records for the interfaces of your Storage Sync Service private endpoint(s).", - "metadata": { - "version": "1.0.0", - "category": "Storage" - }, - "parameters": { - "privateDnsZoneId": { - "type": "String", - "metadata": { - "displayName": "privateDnsZoneId", - "strongType": "Microsoft.Network/privateDnsZones", - "description": "Private DNS Zone Identifier" - } - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Network/privateEndpoints" - }, - { - "count": { - "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*].groupIds[*]", - "where": { - "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*].groupIds[*]", - "equals": "afs" - } - }, - "greaterOrEquals": 1 - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups", - "roleDefinitionIds": [ - "/providers/Microsoft.Authorization/roleDefinitions/00000000-0000-0000-0000-000000000000", - "/providers/Microsoft.Authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "deployment": { - "properties": { - "mode": "incremental", - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "privateDnsZoneId": { - "type": "string" - }, - "privateEndpointName": { - "type": "string" - }, - "location": { - "type": "string" - } - }, - "resources": [ - { - "name": "[concat(parameters(\u0027privateEndpointName\u0027), \u0027/deployedByPolicy\u0027)]", - "type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups", - "apiVersion": "2020-03-01", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "privateDnsZoneConfigs": [ - { - "name": "privatelink-afs", - "properties": { - "privateDnsZoneId": "[parameters(\u0027privateDnsZoneId\u0027)]" - } - } - ] - } - } - ] - }, - "parameters": { - "privateDnsZoneId": { - "value": "[parameters(\u0027privateDnsZoneId\u0027)]" - }, - "privateEndpointName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - } - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1332 - Authenticator Management | Password-Based Authentication", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Identification and Authentication control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1332" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1455 - Physical Access Control", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Physical and Environmental Protection control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1455" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Audit SQL DB Level Audit Setting", - "policyType": "BuiltIn", - "mode": "All", - "description": "Audit DB level audit setting for SQL databases", - "metadata": { - "version": "1.0.0-deprecated", - "category": "SQL", - "deprecated": true - }, - "parameters": { - "setting": { - "type": "String", - "metadata": { - "displayName": "Audit Setting" - }, - "allowedValues": [ - "enabled", - "disabled" - ] - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Sql/servers/databases" - }, - { - "field": "name", - "notEquals": "master" - } - ] - }, - "then": { - "effect": "AuditIfNotExists", - "details": { - "type": "Microsoft.Sql/servers/databases/auditingSettings", - "name": "default", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.Sql/auditingSettings.state", - "equals": "[parameters(\u0027setting\u0027)]" - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Audit VMs that do not use managed disks", - "policyType": "BuiltIn", - "mode": "All", - "description": "This policy audits VMs that do not use managed disks", - "metadata": { - "version": "1.0.0", - "category": "Compute" - }, - "parameters": {}, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "field": "Microsoft.Compute/virtualMachines/osDisk.uri", - "exists": "True" - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/VirtualMachineScaleSets" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/VirtualMachineScaleSets/osDisk.vhdContainers", - "exists": "True" - }, - { - "field": "Microsoft.Compute/VirtualMachineScaleSets/osdisk.imageUrl", - "exists": "True" - } - ] - } - ] - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1366 - Incident Handling | Information Correlation", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Incident Response control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1366" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Cognitive Services accounts should disable public network access", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Disabling public network access improves security by ensuring that Cognitive Services account isn\u0027t exposed on the public internet. Creating private endpoints can limit exposure of Cognitive Services account. Learn more at: https://go.microsoft.com/fwlink/?linkid=2129800. ", - "metadata": { - "version": "2.0.0", - "category": "Cognitive Services" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "The effect determines what happens when the policy rule is evaluated to match" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.CognitiveServices/accounts" - }, - { - "field": "Microsoft.CognitiveServices/accounts/publicNetworkAccess", - "notEquals": "Disabled" - }, - { - "count": { - "field": "Microsoft.CognitiveServices/accounts/capabilities[*]", - "where": { - "field": "Microsoft.CognitiveServices/accounts/capabilities[*].name", - "equals": "VirtualNetworks" - } - }, - "greater": 0 - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1633 - Boundary Protection | Route Traffic To Authenticated Proxy Servers", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Communications Protection control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1633" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "CORS should not allow every resource to access your Function Apps", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Cross-Origin Resource Sharing (CORS) should not allow all domains to access your Function app. Allow only required domains to interact with your Function app.", - "metadata": { - "version": "1.0.0", - "category": "App Service" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Web/sites" - }, - { - "field": "kind", - "like": "functionapp*" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Web/sites/config", - "existenceCondition": { - "field": "Microsoft.Web/sites/config/web.cors.allowedOrigins[*]", - "notEquals": "*" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Deploy - Configure Log Analytics extension to be enabled on Windows virtual machines", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Deploy Log Analytics extension for Windows virtual machines if the virtual machine image is in the list defined and the extension is not installed.", - "metadata": { - "version": "2.0.1", - "category": "Monitoring" - }, - "parameters": { - "logAnalytics": { - "type": "String", - "metadata": { - "displayName": "Log Analytics workspace", - "description": "Log Analytics workspace is used to receive performance data. If this workspace is outside of the scope of the assignment you must manually grant \u0027Log Analytics Contributor\u0027 permissions (or similar) to the policy assignment\u0027s principal ID.", - "strongType": "omsWorkspace", - "assignPermissions": true - } - }, - "listOfImageIdToInclude": { - "type": "Array", - "metadata": { - "displayName": "Optional: List of virtual machine images that have supported Windows OS to add to scope", - "description": "Example values: \u0027/subscriptions/\u003CsubscriptionId\u003E/resourceGroups/YourResourceGroup/providers/Microsoft.Compute/images/ContosoStdImage\u0027" - }, - "defaultValue": [] - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageId", - "in": "[parameters(\u0027listOfImageIdToInclude\u0027)]" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "in": [ - "2008-R2-SP1", - "2008-R2-SP1-smalldisk", - "2012-Datacenter", - "2012-Datacenter-smalldisk", - "2012-R2-Datacenter", - "2012-R2-Datacenter-smalldisk", - "2016-Datacenter", - "2016-Datacenter-Server-Core", - "2016-Datacenter-Server-Core-smalldisk", - "2016-Datacenter-smalldisk", - "2016-Datacenter-with-Containers", - "2016-Datacenter-with-RDSH", - "2019-Datacenter", - "2019-Datacenter-Core", - "2019-Datacenter-Core-smalldisk", - "2019-Datacenter-Core-with-Containers", - "2019-Datacenter-Core-with-Containers-smalldisk", - "2019-Datacenter-smalldisk", - "2019-Datacenter-with-Containers", - "2019-Datacenter-with-Containers-smalldisk", - "2019-Datacenter-zhcn" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServerSemiAnnual" - }, - { - "field": "Microsoft.Compute/imageSKU", - "in": [ - "Datacenter-Core-1709-smalldisk", - "Datacenter-Core-1709-with-Containers-smalldisk", - "Datacenter-Core-1803-with-Containers-smalldisk" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServerHPCPack" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServerHPCPack" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2016" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2016-BYOL" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2012R2" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2012R2-BYOL" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftRServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "MLServer-WS2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftVisualStudio" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "VisualStudio", - "Windows" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftDynamicsAX" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Dynamics" - }, - { - "field": "Microsoft.Compute/imageSKU", - "equals": "Pre-Req-AX7-Onebox-U8" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftDynamicsAX" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Dynamics" - }, - { - "field": "Microsoft.Compute/imageSKU", - "equals": "Pre-Req-AX7-Onebox-V4" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "windows-data-science-vm" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsDesktop" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Windows-10" - } - ] - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Compute/virtualMachines/extensions", - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.Compute/virtualMachines/extensions/type", - "equals": "MicrosoftMonitoringAgent" - }, - { - "field": "Microsoft.Compute/virtualMachines/extensions/publisher", - "equals": "Microsoft.EnterpriseCloud.Monitoring" - }, - { - "field": "Microsoft.Compute/virtualMachines/extensions/provisioningState", - "equals": "Succeeded" - } - ] - }, - "deployment": { - "properties": { - "mode": "incremental", - "template": { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "vmName": { - "type": "string" - }, - "location": { - "type": "string" - }, - "logAnalytics": { - "type": "string" - } - }, - "variables": { - "vmExtensionName": "MicrosoftMonitoringAgent", - "vmExtensionPublisher": "Microsoft.EnterpriseCloud.Monitoring", - "vmExtensionType": "MicrosoftMonitoringAgent", - "vmExtensionTypeHandlerVersion": "1.0" - }, - "resources": [ - { - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/\u0027, variables(\u0027vmExtensionName\u0027))]", - "type": "Microsoft.Compute/virtualMachines/extensions", - "location": "[parameters(\u0027location\u0027)]", - "apiVersion": "2018-06-01", - "properties": { - "publisher": "[variables(\u0027vmExtensionPublisher\u0027)]", - "type": "[variables(\u0027vmExtensionType\u0027)]", - "typeHandlerVersion": "[variables(\u0027vmExtensionTypeHandlerVersion\u0027)]", - "autoUpgradeMinorVersion": true, - "settings": { - "workspaceId": "[reference(parameters(\u0027logAnalytics\u0027), \u00272015-03-20\u0027).customerId]", - "stopOnMultipleConnections": "true" - }, - "protectedSettings": { - "workspaceKey": "[listKeys(parameters(\u0027logAnalytics\u0027), \u00272015-03-20\u0027).primarySharedKey]" - } - } - } - ], - "outputs": { - "policy": { - "type": "string", - "value": "[concat(\u0027Enabled extension for VM\u0027, \u0027: \u0027, parameters(\u0027vmName\u0027))]" - } - } - }, - "parameters": { - "vmName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "logAnalytics": { - "value": "[parameters(\u0027logAnalytics\u0027)]" - } - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1583 - Information System Documentation", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Services Acquisition control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1583" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Audit Windows machines on which the DSC configuration is not compliant", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if the Windows PowerShell command Get-DSCConfigurationStatus returns that the DSC configuration for the machine is not compliant.", - "metadata": { - "category": "Guest Configuration", - "version": "3.0.0", - "requiredProviders": [ - "Microsoft.GuestConfiguration" - ], - "guestConfiguration": { - "name": "WindowsDscConfiguration", - "version": "1.*" - } - }, - "parameters": { - "IncludeArcMachines": { - "type": "String", - "metadata": { - "displayName": "Include Arc connected servers", - "description": "By selecting this option, you agree to be charged monthly per Arc connected machine.", - "portalReview": "true" - }, - "allowedValues": [ - "true", - "false" - ], - "defaultValue": "false" - } - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "dsvm-win*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "value": "[parameters(\u0027IncludeArcMachines\u0027)]", - "equals": "true" - }, - { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.ConnectedVMwarevSphere/virtualMachines" - }, - { - "field": "Microsoft.ConnectedVMwarevSphere/virtualMachines/osProfile.osType", - "like": "windows*" - } - ] - } - ] - } - ] - } - ] - }, - "then": { - "effect": "auditIfNotExists", - "details": { - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "[concat(\u0027WindowsDscConfiguration$pid\u0027, uniqueString(policy().assignmentId, policy().definitionReferenceId))]", - "existenceCondition": { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus", - "equals": "Compliant" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Azure Edge Hardware Center devices should have double encryption support enabled", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Ensure that devices ordered from Azure Edge Hardware Center have double encryption support enabled, to secure the data at rest on the device. This option adds a second layer of data encryption.", - "metadata": { - "version": "2.0.0", - "category": "Azure Edge Hardware Center" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "The desired effect of the policy" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.EdgeOrder/orderItems" - }, - { - "field": "Microsoft.EdgeOrder/orderItems/orderItemDetails.preferences.encryptionPreferences.doubleEncryptionStatus", - "notEquals": "Enabled" - }, - { - "field": "Microsoft.EdgeOrder/orderItems/orderItemDetails.productDetails.productDoubleEncryptionStatus", - "notEquals": "Enabled" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Configure Data Factories to disable public network access", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Disable public network access for your Data Factory so that it is not accessible over the public internet. This can reduce data leakage risks. Learn more at: https://docs.microsoft.com/azure/data-factory/data-factory-private-link.", - "metadata": { - "version": "1.0.0", - "category": "Data Factory" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Modify", - "Disabled" - ], - "defaultValue": "Modify" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.DataFactory/factories" - }, - { - "field": "Microsoft.DataFactory/factories/publicNetworkAccess", - "notEquals": "Disabled" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "conflictEffect": "audit", - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "operations": [ - { - "condition": "[greaterOrEquals(requestContext().apiVersion, \u00272018-06-01\u0027)]", - "operation": "addOrReplace", - "field": "Microsoft.DataFactory/factories/publicNetworkAccess", - "value": "Disabled" - } - ] - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Audit Web Applications that are not using latest supported PHP Framework", - "policyType": "BuiltIn", - "mode": "All", - "description": "Use the latest supported PHP version for the latest security classes. Using older classes and types can make your application vulnerable.", - "metadata": { - "version": "1.0.0-deprecated", - "category": "Security Center", - "deprecated": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "allof": [ - { - "field": "type", - "equals": "microsoft.Web/sites" - }, - { - "anyof": [ - { - "field": "kind", - "equals": "app" - }, - { - "field": "kind", - "equals": "WebApp" - }, - { - "field": "kind", - "equals": "app,linux" - }, - { - "field": "kind", - "equals": "app,linux,container" - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Security/complianceResults", - "name": "UseLatestPHP", - "existenceCondition": { - "field": "Microsoft.Security/complianceResults/resourceStatus", - "in": [ - "OffByPolicy", - "Healthy" - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Deploy Diagnostic Settings for Search Services to Log Analytics workspace", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Deploys the diagnostic settings for Search Services to stream to a regional Log Analytics workspace when any Search Services which is missing this diagnostic settings is created or updated.", - "metadata": { - "version": "1.0.0", - "category": "Monitoring" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - }, - "profileName": { - "type": "String", - "metadata": { - "displayName": "Profile name", - "description": "The diagnostic settings profile name" - }, - "defaultValue": "setbypolicy_logAnalytics" - }, - "logAnalytics": { - "type": "String", - "metadata": { - "displayName": "Log Analytics workspace", - "description": "Select Log Analytics workspace from dropdown list. If this workspace is outside of the scope of the assignment you must manually grant \u0027Log Analytics Contributor\u0027 permissions (or similar) to the policy assignment\u0027s principal ID.", - "strongType": "omsWorkspace", - "assignPermissions": true - } - }, - "metricsEnabled": { - "type": "String", - "metadata": { - "displayName": "Enable metrics", - "description": "Whether to enable metrics stream to the Log Analytics workspace - True or False" - }, - "allowedValues": [ - "True", - "False" - ], - "defaultValue": "False" - }, - "logsEnabled": { - "type": "String", - "metadata": { - "displayName": "Enable logs", - "description": "Whether to enable logs stream to the Log Analytics workspace - True or False" - }, - "allowedValues": [ - "True", - "False" - ], - "defaultValue": "True" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Search/searchServices" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Insights/diagnosticSettings", - "name": "[parameters(\u0027profileName\u0027)]", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.Insights/diagnosticSettings/logs.enabled", - "equals": "[parameters(\u0027logsEnabled\u0027)]" - }, - { - "field": "Microsoft.Insights/diagnosticSettings/metrics.enabled", - "equals": "[parameters(\u0027metricsEnabled\u0027)]" - } - ] - }, - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000", - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "deployment": { - "properties": { - "mode": "incremental", - "template": { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "resourceName": { - "type": "string" - }, - "location": { - "type": "string" - }, - "logAnalytics": { - "type": "string" - }, - "metricsEnabled": { - "type": "string" - }, - "logsEnabled": { - "type": "string" - }, - "profileName": { - "type": "string" - } - }, - "variables": {}, - "resources": [ - { - "type": "Microsoft.Search/searchServices/providers/diagnosticSettings", - "apiVersion": "2017-05-01-preview", - "name": "[concat(parameters(\u0027resourceName\u0027), \u0027/\u0027, \u0027Microsoft.Insights/\u0027, parameters(\u0027profileName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "dependsOn": [], - "properties": { - "workspaceId": "[parameters(\u0027logAnalytics\u0027)]", - "metrics": [ - { - "category": "AllMetrics", - "enabled": "[parameters(\u0027metricsEnabled\u0027)]", - "retentionPolicy": { - "enabled": false, - "days": 0 - } - } - ], - "logs": [ - { - "category": "OperationLogs", - "enabled": "[parameters(\u0027logsEnabled\u0027)]" - } - ] - } - } - ], - "outputs": {} - }, - "parameters": { - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "resourceName": { - "value": "[field(\u0027name\u0027)]" - }, - "logAnalytics": { - "value": "[parameters(\u0027logAnalytics\u0027)]" - }, - "metricsEnabled": { - "value": "[parameters(\u0027metricsEnabled\u0027)]" - }, - "logsEnabled": { - "value": "[parameters(\u0027logsEnabled\u0027)]" - }, - "profileName": { - "value": "[parameters(\u0027profileName\u0027)]" - } - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Adaptive network hardening recommendations should be applied on internet facing virtual machines", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Azure Security Center analyzes the traffic patterns of Internet facing virtual machines and provides Network Security Group rule recommendations that reduce the potential attack surface", - "metadata": { - "version": "3.0.0", - "category": "Security Center" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Security/assessments", - "name": "00000000-0000-0000-0000-000000000000", - "existenceCondition": { - "field": "Microsoft.Security/assessments/status.code", - "in": [ - "NotApplicable", - "Healthy" - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "There should be more than one owner assigned to your subscription", - "policyType": "BuiltIn", - "mode": "All", - "description": "It is recommended to designate more than one subscription owner in order to have administrator access redundancy.", - "metadata": { - "version": "3.0.0", - "category": "Security Center" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Resources/subscriptions" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Security/assessments", - "name": "00000000-0000-0000-0000-000000000000", - "existenceCondition": { - "field": "Microsoft.Security/assessments/status.code", - "in": [ - "NotApplicable", - "Healthy" - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1159 - Security Authorization", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Security Assessment and Authorization control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1159" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Virtual machines should encrypt temp disks, caches, and data flows between Compute and Storage resources", - "policyType": "BuiltIn", - "mode": "All", - "description": "By default, a virtual machine\u0027s OS and data disks are encrypted-at-rest using platform-managed keys. Temp disks, data caches and data flowing between compute and storage aren\u0027t encrypted. Disregard this recommendation if: 1. using encryption-at-host, or 2. server-side encryption on Managed Disks meets your security requirements. Learn more in: Server-side encryption of Azure Disk Storage: https://aka.ms/disksse, Different disk encryption offerings: https://aka.ms/diskencryptioncomparison", - "metadata": { - "version": "2.0.3", - "category": "Security Center" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "in": [ - "Microsoft.ClassicCompute/virtualMachines", - "Microsoft.Compute/virtualMachines" - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Security/assessments", - "name": "00000000-0000-0000-0000-000000000000", - "existenceCondition": { - "field": "Microsoft.Security/assessments/status.code", - "in": [ - "NotApplicable", - "Healthy" - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1302 - Identification And Authentication (Org. Users) | Network Access To Non-Privileged Accounts", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Identification and Authentication control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1302" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Configure backup on virtual machines without a given tag to an existing recovery services vault in the same location", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Enforce backup for all virtual machines by backing them up to an existing central recovery services vault in the same location and subscription as the virtual machine. Doing this is useful when there is a central team in your organization managing backups for all resources in a subscription. You can optionally exclude virtual machines containing a specified tag to control the scope of assignment. See https://aka.ms/AzureVMCentralBackupExcludeTag.", - "metadata": { - "version": "6.0.0", - "category": "Backup" - }, - "parameters": { - "vaultLocation": { - "type": "String", - "metadata": { - "displayName": "Location (Specify the location of the VMs that you want to protect)", - "description": "Specify the location of the VMs that you want to protect. VMs should be backed up to a vault in the same location. For example - southeastasia.", - "strongType": "location" - } - }, - "backupPolicyId": { - "type": "String", - "metadata": { - "displayName": "Backup Policy (of type Azure VM from a vault in the location chosen above)", - "description": "Specify the id of the Azure backup policy to configure backup of the virtual machines. The selected Azure backup policy should be of type Azure virtual machine. This policy needs to be in a vault that is present in the location chosen above. For example - /subscriptions/\u003CSubscriptionId\u003E/resourceGroups/\u003CresourceGroupName\u003E/providers/Microsoft.RecoveryServices/vaults/\u003CVaultName\u003E/backupPolicies/\u003CBackupPolicyName\u003E.", - "strongType": "Microsoft.RecoveryServices/vaults/backupPolicies" - } - }, - "exclusionTagName": { - "type": "String", - "metadata": { - "displayName": "Exclusion Tag Name", - "description": "Name of the tag to use for excluding VMs from the scope of this policy. This should be used along with the Exclusion Tag Value parameter. Learn more at https://aka.ms/AppCentricVMBackupPolicy." - }, - "defaultValue": "" - }, - "exclusionTagValue": { - "type": "Array", - "metadata": { - "displayName": "Exclusion Tag Values", - "description": "Value of the tag to use for excluding VMs from the scope of this policy (in case of multiple values, use a comma-separated list). This should be used along with the Exclusion Tag Name parameter. Learn more at https://aka.ms/AppCentricVMBackupPolicy." - }, - "defaultValue": [] - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy." - }, - "allowedValues": [ - "deployIfNotExists", - "auditIfNotExists", - "disabled" - ], - "defaultValue": "deployIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "field": "location", - "equals": "[parameters(\u0027vaultLocation\u0027)]" - }, - { - "field": "id", - "notContains": "/resourceGroups/databricks-rg-" - }, - { - "field": "Microsoft.Compute/imagePublisher", - "notEquals": "azureopenshift" - }, - { - "field": "Microsoft.Compute/imagePublisher", - "notEquals": "AzureDatabricks" - }, - { - "anyOf": [ - { - "not": { - "field": "[concat(\u0027tags[\u0027, parameters(\u0027exclusionTagName\u0027), \u0027]\u0027)]", - "in": "[parameters(\u0027exclusionTagValue\u0027)]" - } - }, - { - "value": "[empty(parameters(\u0027exclusionTagValue\u0027))]", - "equals": "true" - }, - { - "value": "[empty(parameters(\u0027exclusionTagName\u0027))]", - "equals": "true" - } - ] - }, - { - "anyOf": [ - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "in": [ - "2008-R2-SP1", - "2008-R2-SP1-smalldisk", - "2012-Datacenter", - "2012-Datacenter-smalldisk", - "2012-R2-Datacenter", - "2012-R2-Datacenter-smalldisk", - "2016-Datacenter", - "2016-Datacenter-Server-Core", - "2016-Datacenter-Server-Core-smalldisk", - "2016-Datacenter-smalldisk", - "2016-Datacenter-with-Containers", - "2016-Datacenter-with-RDSH", - "2019-Datacenter", - "2019-Datacenter-Core", - "2019-Datacenter-Core-smalldisk", - "2019-Datacenter-Core-with-Containers", - "2019-Datacenter-Core-with-Containers-smalldisk", - "2019-Datacenter-smalldisk", - "2019-Datacenter-with-Containers", - "2019-Datacenter-with-Containers-smalldisk", - "2019-Datacenter-zhcn", - "2019-datacenter-gensecond", - "2022-datacenter-g2", - "2022-datacenter", - "2022-datacenter-azure-edition", - "2022-datacenter-azure-edition-smalldisk", - "2022-datacenter-azure-edition-core", - "2022-datacenter-azure-edition-core-smalldisk", - "2022-datacenter-smalldisk-g2", - "2022-datacenter-smalldisk", - "2022-datacenter-core-g2", - "2022-datacenter-core", - "2022-datacenter-core-smalldisk-g2", - "2022-datacenter-core-smalldisk" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServerSemiAnnual" - }, - { - "field": "Microsoft.Compute/imageSKU", - "in": [ - "Datacenter-Core-1709-smalldisk", - "Datacenter-Core-1709-with-Containers-smalldisk", - "Datacenter-Core-1803-with-Containers-smalldisk" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServerHPCPack" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServerHPCPack" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2019" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2016" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2016-BYOL" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2012R2" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2012R2-BYOL" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftRServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "MLServer-WS2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftVisualStudio" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "VisualStudio", - "Windows" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftDynamicsAX" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Dynamics" - }, - { - "field": "Microsoft.Compute/imageSKU", - "equals": "Pre-Req-AX7-Onebox-U8" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "windows-data-science-vm" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsDesktop" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Windows-10" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "RedHat" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "RHEL", - "RHEL-SAP-HANA" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "like": "6.*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "7*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "SUSE" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "SLES", - "SLES-HPC", - "SLES-HPC-Priority", - "SLES-SAP", - "SLES-SAP-BYOS", - "SLES-Priority", - "SLES-BYOS", - "SLES-SAPCAL", - "SLES-Standard" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "like": "12*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Canonical" - }, - { - "field": "Microsoft.Compute/imageOffer", - "contains": "ubuntu" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "like": "14.04*LTS" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "16.04*LTS" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "18.04*LTS" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "*20_04-lts" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "20_04-lts*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Oracle" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Oracle-Linux" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "like": "6.*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "7.*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "OpenLogic" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "CentOS", - "Centos-LVM", - "CentOS-SRIOV" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "like": "6.*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "7*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloudera" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "cloudera-centos-os" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "7*" - } - ] - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000", - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "type": "Microsoft.RecoveryServices/backupprotecteditems", - "deployment": { - "properties": { - "mode": "incremental", - "template": { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "backupPolicyId": { - "type": "String" - }, - "fabricName": { - "type": "String" - }, - "protectionContainers": { - "type": "String" - }, - "protectedItems": { - "type": "String" - }, - "sourceResourceId": { - "type": "String" - } - }, - "resources": [ - { - "apiVersion": "2017-05-10", - "name": "[concat(\u0027DeployProtection-\u0027,uniqueString(parameters(\u0027protectedItems\u0027)))]", - "type": "Microsoft.Resources/deployments", - "resourceGroup": "[first(skip(split(parameters(\u0027backupPolicyId\u0027), \u0027/\u0027), 4))]", - "subscriptionId": "[first(skip(split(parameters(\u0027backupPolicyId\u0027), \u0027/\u0027), 2))]", - "properties": { - "mode": "Incremental", - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "backupPolicyId": { - "type": "String" - }, - "fabricName": { - "type": "String" - }, - "protectionContainers": { - "type": "String" - }, - "protectedItems": { - "type": "String" - }, - "sourceResourceId": { - "type": "String" - } - }, - "resources": [ - { - "type": "Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems", - "name": "[concat(first(skip(split(parameters(\u0027backupPolicyId\u0027), \u0027/\u0027), 8)), \u0027/\u0027, parameters(\u0027fabricName\u0027), \u0027/\u0027,parameters(\u0027protectionContainers\u0027), \u0027/\u0027, parameters(\u0027protectedItems\u0027))]", - "apiVersion": "2016-06-01", - "properties": { - "protectedItemType": "Microsoft.Compute/virtualMachines", - "policyId": "[parameters(\u0027backupPolicyId\u0027)]", - "sourceResourceId": "[parameters(\u0027sourceResourceId\u0027)]" - } - } - ] - }, - "parameters": { - "backupPolicyId": { - "value": "[parameters(\u0027backupPolicyId\u0027)]" - }, - "fabricName": { - "value": "[parameters(\u0027fabricName\u0027)]" - }, - "protectionContainers": { - "value": "[parameters(\u0027protectionContainers\u0027)]" - }, - "protectedItems": { - "value": "[parameters(\u0027protectedItems\u0027)]" - }, - "sourceResourceId": { - "value": "[parameters(\u0027sourceResourceId\u0027)]" - } - } - } - } - ] - }, - "parameters": { - "backupPolicyId": { - "value": "[parameters(\u0027backupPolicyId\u0027)]" - }, - "fabricName": { - "value": "Azure" - }, - "protectionContainers": { - "value": "[concat(\u0027iaasvmcontainer;iaasvmcontainerv2;\u0027, resourceGroup().name, \u0027;\u0027 ,field(\u0027name\u0027))]" - }, - "protectedItems": { - "value": "[concat(\u0027vm;iaasvmcontainerv2;\u0027, resourceGroup().name, \u0027;\u0027 ,field(\u0027name\u0027))]" - }, - "sourceResourceId": { - "value": "[concat(\u0027/subscriptions/\u0027, subscription().subscriptionId, \u0027/resourceGroups/\u0027, resourceGroup().name, \u0027/providers/Microsoft.Compute/virtualMachines/\u0027,field(\u0027name\u0027))]" - } - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Private endpoint should be enabled for MariaDB servers", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Private endpoint connections enforce secure communication by enabling private connectivity to Azure Database for MariaDB. Configure a private endpoint connection to enable access to traffic coming only from known networks and prevent access from all other IP addresses, including within Azure.", - "metadata": { - "version": "1.0.2", - "category": "SQL" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.DBforMariaDB/servers" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.DBforMariaDB/servers/privateEndpointConnections", - "existenceCondition": { - "field": "Microsoft.DBforMariaDB/servers/privateEndpointConnections/privateLinkServiceConnectionState.status", - "equals": "Approved" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Azure Policy Add-on for Kubernetes service (AKS) should be installed and enabled on your clusters", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Azure Policy Add-on for Kubernetes service (AKS) extends Gatekeeper v3, an admission controller webhook for Open Policy Agent (OPA), to apply at-scale enforcements and safeguards on your clusters in a centralized, consistent manner.", - "metadata": { - "version": "1.0.2", - "category": "Kubernetes" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.ContainerService/managedClusters" - }, - { - "anyOf": [ - { - "field": "Microsoft.ContainerService/managedClusters/addonProfiles.azurePolicy.enabled", - "exists": "false" - }, - { - "field": "Microsoft.ContainerService/managedClusters/addonProfiles.azurePolicy.enabled", - "equals": "false" - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1654 - Voice Over Internet Protocol", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Communications Protection control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1654" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "SQL servers should use customer-managed keys to encrypt data at rest", - "policyType": "BuiltIn", - "mode": "All", - "description": "Implementing Transparent Data Encryption (TDE) with your own key provides increased transparency and control over the TDE Protector, increased security with an HSM-backed external service, and promotion of separation of duties. This recommendation applies to organizations with a related compliance requirement.", - "metadata": { - "version": "2.0.1", - "category": "SQL" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Sql/servers" - }, - { - "value": "[resourcegroup().managedBy]", - "notContains": "/providers/Microsoft.Synapse/" - }, - { - "anyOf": [ - { - "field": "Microsoft.Sql/servers/keyid", - "exists": false - }, - { - "field": "Microsoft.Sql/servers/keyid", - "equals": "" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Sql/servers/encryptionProtector" - }, - { - "value": "[resourcegroup().managedBy]", - "notContains": "/providers/Microsoft.Synapse/" - }, - { - "field": "Microsoft.Sql/servers/encryptionProtector/serverKeyType", - "notequals": "AzureKeyVault" - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Configure Windows Virtual Machine Scale Sets to be associated with a Data Collection Rule", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Deploy Association to link Windows virtual machine scale sets to specified Data Collection Rule. The list of locations and OS images are updated over time as support is increased.", - "metadata": { - "version": "1.0.0", - "category": "Monitoring" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy." - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - }, - "listOfWindowsImageIdToInclude": { - "type": "Array", - "metadata": { - "displayName": "Optional: List of virtual machine scale set images that have supported Windows OS to add to scope", - "description": "Example values: \u0027/subscriptions/\u003CsubscriptionId\u003E/resourceGroups/YourResourceGroup/providers/Microsoft.Compute/images/ContosoStdImage\u0027" - }, - "defaultValue": [] - }, - "dcrResourceId": { - "type": "String", - "metadata": { - "displayName": "Data Collection Rule Resource Id", - "description": "Resource Id of the Data Collection Rule to be applied on the virtual machine sets in scope.", - "strongType": "Microsoft.Insights/dataCollectionRules" - } - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachineScaleSets" - }, - { - "field": "location", - "in": [ - "australiacentral", - "australiacentral2", - "australiaeast", - "australiasoutheast", - "brazilsouth", - "brazilsoutheast", - "canadacentral", - "canadaeast", - "centralindia", - "centralus", - "eastasia", - "eastus2euap", - "eastus", - "eastus2", - "francecentral", - "francesouth", - "germanywestcentral", - "japaneast", - "japanwest", - "jioindiawest", - "koreacentral", - "koreasouth", - "northcentralus", - "northeurope", - "norwayeast", - "norwaywest", - "southafricanorth", - "southcentralus", - "southeastasia", - "southindia", - "switzerlandnorth", - "switzerlandwest", - "uaenorth", - "uksouth", - "ukwest", - "westcentralus", - "westeurope", - "westindia", - "westus", - "westus2" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageId", - "in": "[parameters(\u0027listOfWindowsImageIdToInclude\u0027)]" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "in": [ - "2008-R2-SP1", - "2008-R2-SP1-smalldisk", - "2012-Datacenter", - "2012-Datacenter-smalldisk", - "2012-R2-Datacenter", - "2012-R2-Datacenter-smalldisk", - "2016-Datacenter", - "2016-Datacenter-Server-Core", - "2016-Datacenter-Server-Core-smalldisk", - "2016-Datacenter-smalldisk", - "2016-Datacenter-with-Containers", - "2016-Datacenter-with-RDSH", - "2019-Datacenter", - "2019-Datacenter-Core", - "2019-Datacenter-Core-smalldisk", - "2019-Datacenter-Core-with-Containers", - "2019-Datacenter-Core-with-Containers-smalldisk", - "2019-Datacenter-smalldisk", - "2019-Datacenter-with-Containers", - "2019-Datacenter-with-Containers-smalldisk", - "2019-Datacenter-zhcn", - "2022-datacenter", - "2022-datacenter-azure-edition", - "2022-datacenter-azure-edition-core", - "2022-datacenter-azure-edition-core-smalldisk", - "2022-datacenter-azure-edition-smalldisk", - "2022-datacenter-core", - "2022-datacenter-core-g2", - "2022-datacenter-core-smalldisk", - "2022-datacenter-core-smalldisk-g2", - "2022-datacenter-g2", - "2022-datacenter-smalldisk", - "2022-datacenter-smalldisk-g2" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServerSemiAnnual" - }, - { - "field": "Microsoft.Compute/imageSKU", - "in": [ - "Datacenter-Core-1709-smalldisk", - "Datacenter-Core-1709-with-Containers-smalldisk", - "Datacenter-Core-1803-with-Containers-smalldisk" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServerHPCPack" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServerHPCPack" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2016" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2016-BYOL" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2012R2" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2012R2-BYOL" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftRServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "MLServer-WS2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftVisualStudio" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "VisualStudio", - "Windows" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftDynamicsAX" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Dynamics" - }, - { - "field": "Microsoft.Compute/imageSKU", - "equals": "Pre-Req-AX7-Onebox-U8" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "windows-data-science-vm" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsDesktop" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Windows-10" - } - ] - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Insights/dataCollectionRuleAssociations", - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000", - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "existenceCondition": { - "field": "Microsoft.Insights/dataCollectionRuleAssociations/dataCollectionRuleId", - "equals": "[parameters(\u0027dcrResourceId\u0027)]" - }, - "deployment": { - "properties": { - "mode": "incremental", - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "resourceName": { - "type": "string" - }, - "location": { - "type": "string" - }, - "dcrResourceId": { - "type": "string" - } - }, - "variables": { - "associationName": "[concat(\u0027assoc-\u0027, uniqueString(parameters(\u0027dcrResourceId\u0027)))]" - }, - "resources": [ - { - "name": "[variables(\u0027associationName\u0027)]", - "type": "Microsoft.Insights/dataCollectionRuleAssociations", - "apiVersion": "2021-04-01", - "properties": { - "dataCollectionRuleId": "[parameters(\u0027dcrResourceId\u0027)]" - }, - "scope": "[concat(\u0027Microsoft.Compute/virtualMachineScaleSets/\u0027, parameters(\u0027resourceName\u0027))]" - } - ] - }, - "parameters": { - "resourceName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "dcrResourceId": { - "value": "[parameters(\u0027dcrResourceId\u0027)]" - } - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1402 - Controlled Maintenance | Automated Maintenance Activities", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Maintenance control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1402" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1428 - Media Access", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Media Protection control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1428" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Audit resource location matches resource group location", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Audit that the resource location matches its resource group location", - "metadata": { - "version": "2.0.0", - "category": "General" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "location", - "notEquals": "[resourcegroup().location]" - }, - { - "field": "location", - "notEquals": "global" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Deploy prerequisites to audit Windows VMs configurations in \u0027System Audit Policies - Account Management\u0027", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: \u0027System Audit Policies - Account Management\u0027. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol", - "metadata": { - "version": "1.2.0-deprecated", - "category": "Guest Configuration", - "requiredProviders": [ - "Microsoft.GuestConfiguration" - ], - "deprecated": true - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "dsvm-windows" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - } - ] - }, - "then": { - "effect": "deployIfNotExists", - "details": { - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "AzureBaseline_SystemAuditPoliciesAccountManagement", - "deployment": { - "properties": { - "mode": "incremental", - "parameters": { - "vmName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "type": { - "value": "[field(\u0027type\u0027)]" - }, - "configurationName": { - "value": "AzureBaseline_SystemAuditPoliciesAccountManagement" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "vmName": { - "type": "string" - }, - "location": { - "type": "string" - }, - "type": { - "type": "string" - }, - "configurationName": { - "type": "string" - } - }, - "resources": [ - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027microsoft.hybridcompute/machines\u0027))]", - "apiVersion": "2018-11-20", - "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/Microsoft.GuestConfiguration/\u0027, parameters(\u0027configurationName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "guestConfiguration": { - "name": "[parameters(\u0027configurationName\u0027)]", - "version": "1.*" - } - } - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2018-11-20", - "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/Microsoft.GuestConfiguration/\u0027, parameters(\u0027configurationName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "guestConfiguration": { - "name": "[parameters(\u0027configurationName\u0027)]", - "version": "1.*" - } - } - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2019-07-01", - "type": "Microsoft.Compute/virtualMachines", - "identity": { - "type": "SystemAssigned" - }, - "name": "[parameters(\u0027vmName\u0027)]", - "location": "[parameters(\u0027location\u0027)]" - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2019-07-01", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/AzurePolicyforWindows\u0027)]", - "type": "Microsoft.Compute/virtualMachines/extensions", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "publisher": "Microsoft.GuestConfiguration", - "type": "ConfigurationforWindows", - "typeHandlerVersion": "1.1", - "autoUpgradeMinorVersion": true, - "settings": {}, - "protectedSettings": {} - }, - "dependsOn": [ - "[concat(\u0027Microsoft.Compute/virtualMachines/\u0027,parameters(\u0027vmName\u0027),\u0027/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/\u0027,parameters(\u0027configurationName\u0027))]" - ] - } - ] - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Azure Defender for open-source relational databases should be enabled", - "policyType": "BuiltIn", - "mode": "All", - "description": "Azure Defender for open-source relational databases detects anomalous activities indicating unusual and potentially harmful attempts to access or exploit databases. Learn more about the capabilities of Azure Defender for open-source relational databases at https://aka.ms/AzDforOpenSourceDBsDocu. Important: Enabling this plan will result in charges for protecting your open-source relational databases. Learn about the pricing on Security Center\u0027s pricing page: https://aka.ms/pricing-security-center", - "metadata": { - "version": "1.0.0", - "category": "Security Center" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Resources/subscriptions" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Security/pricings", - "name": "OpenSourceRelationalDatabases", - "existenceScope": "subscription", - "existenceCondition": { - "field": "Microsoft.Security/pricings/pricingTier", - "equals": "Standard" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Azure Container Instance container group should use customer-managed key for encryption", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Secure your containers with greater flexibility using customer-managed keys. When you specify a customer-managed key, that key is used to protect and control access to the key that encrypts your data. Using customer-managed keys provides additional capabilities to control rotation of the key encryption key or cryptographically erase data.", - "metadata": { - "version": "1.0.0", - "category": "Container Instance" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Disabled", - "Deny" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.ContainerInstance/containerGroups" - }, - { - "anyOf": [ - { - "field": "Microsoft.ContainerInstance/containerGroups/encryptionProperties.vaultBaseUrl", - "exists": false - }, - { - "field": "Microsoft.ContainerInstance/containerGroups/encryptionProperties.keyName", - "exists": false - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1044 - Unsuccessful Logon Attempts", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Access Control control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1044" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Preview]: Configure Azure Arc enabled Kubernetes clusters to install the Azure Policy extension", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Deploy Azure Policy\u0027s extension for Azure Arc to provide at-scale enforcements and safeguard your Arc enabled Kubernetes clusters in a centralized, consistent manner. Learn more at https://aka.ms/akspolicydoc.", - "metadata": { - "version": "1.0.0-preview", - "category": "Kubernetes", - "preview": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Kubernetes/connectedClusters" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.KubernetesConfiguration/extensions", - "existenceCondition": { - "field": "Microsoft.KubernetesConfiguration/extensions/extensionType", - "equals": "microsoft.policyinsights" - }, - "roleDefinitionIds": [ - "/providers/Microsoft.Authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "deployment": { - "properties": { - "mode": "incremental", - "parameters": { - "clusterRegion": { - "value": "[field(\u0027location\u0027)]" - }, - "clusterResourceId": { - "value": "[field(\u0027id\u0027)]" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2018-05-01/subscriptionDeploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "clusterRegion": { - "type": "string" - }, - "clusterResourceId": { - "type": "string" - } - }, - "resources": [ - { - "type": "Microsoft.KubernetesConfiguration/extensions", - "apiVersion": "2021-09-01", - "name": "azurepolicy", - "location": "[parameters(\u0027clusterRegion\u0027)]", - "identity": { - "type": "SystemAssigned" - }, - "properties": { - "extensionType": "microsoft.policyinsights", - "configurationSettings": {}, - "configurationProtectedSettings": {}, - "autoUpgradeMinorVersion": true, - "releaseTrain": "Stable", - "scope": { - "Cluster": { - "releaseNamespace": "kube-system" - } - } - }, - "scope": "[concat(\u0027Microsoft.Kubernetes/connectedClusters/\u0027, split(parameters(\u0027clusterResourceId\u0027),\u0027/\u0027)[8])]" - } - ] - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1253 - Contingency Plan | Resume Essential Missions / Business Functions", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Contingency Planning control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1253" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Configure Azure Web PubSub Service to use private DNS zones", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Use private DNS zones to override the DNS resolution for a private endpoint. A private DNS zone links to your virtual network to resolve to Azure Web PubSub service. Learn more at: https://aka.ms/awps/privatelink.", - "metadata": { - "version": "1.0.0", - "category": "Web PubSub" - }, - "parameters": { - "privateDnsZoneId": { - "type": "String", - "metadata": { - "displayName": "Private DNS Zone Id", - "description": "Private DNS zone to integrate with private endpoint.", - "strongType": "Microsoft.Network/privateDnsZones" - } - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Network/privateEndpoints" - }, - { - "count": { - "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*].groupIds[*]", - "where": { - "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*].groupIds[*]", - "equals": "webpubsub" - } - }, - "greaterOrEquals": 1 - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups", - "roleDefinitionIds": [ - "/providers/Microsoft.Authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "deployment": { - "properties": { - "mode": "incremental", - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "privateDnsZoneId": { - "type": "string" - }, - "privateEndpointName": { - "type": "string" - }, - "location": { - "type": "string" - } - }, - "resources": [ - { - "name": "[concat(parameters(\u0027privateEndpointName\u0027), \u0027/deployedByPolicy\u0027)]", - "type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups", - "apiVersion": "2020-03-01", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "privateDnsZoneConfigs": [ - { - "name": "privatelink-webpubsub-azure-com", - "properties": { - "privateDnsZoneId": "[parameters(\u0027privateDnsZoneId\u0027)]" - } - } - ] - } - } - ] - }, - "parameters": { - "privateDnsZoneId": { - "value": "[parameters(\u0027privateDnsZoneId\u0027)]" - }, - "privateEndpointName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - } - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Email notification to subscription owner for high severity alerts should be enabled", - "policyType": "BuiltIn", - "mode": "All", - "description": "To ensure your subscription owners are notified when there is a potential security breach in their subscription, set email notifications to subscription owners for high severity alerts in Security Center.", - "metadata": { - "version": "2.0.0", - "category": "Security Center" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Resources/subscriptions" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Security/securityContacts", - "existenceScope": "subscription", - "existenceCondition": { - "not": { - "allOf": [ - { - "field": "Microsoft.Security/securityContacts/alertsToAdmins", - "equals": "Off" - }, - { - "field": "Microsoft.Security/securityContacts/alertNotifications.minimalSeverity", - "equals": "High" - } - ] - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1046 - Automatic Account Lock | Purge / Wipe Mobile Device", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Access Control control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1046" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1020 - Account Management | Role-Based Schemes", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Access Control control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1020" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Key vaults should have purge protection enabled", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Malicious deletion of a key vault can lead to permanent data loss. A malicious insider in your organization can potentially delete and purge key vaults. Purge protection protects you from insider attacks by enforcing a mandatory retention period for soft deleted key vaults. No one inside your organization or Microsoft will be able to purge your key vaults during the soft delete retention period.", - "metadata": { - "version": "2.0.0", - "category": "Key Vault" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.KeyVault/vaults" - }, - { - "not": { - "field": "Microsoft.KeyVault/vaults/createMode", - "equals": "recover" - } - }, - { - "anyOf": [ - { - "field": "Microsoft.KeyVault/vaults/enableSoftDelete", - "exists": "false" - }, - { - "field": "Microsoft.KeyVault/vaults/enablePurgeProtection", - "exists": "false" - }, - { - "field": "Microsoft.KeyVault/vaults/enableSoftDelete", - "equals": "false" - }, - { - "field": "Microsoft.KeyVault/vaults/enablePurgeProtection", - "equals": "false" - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1115 - Audit Review, Analysis, And Reporting", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Audit and Accountability control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1115" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Azure Cosmos DB throughput should be limited", - "policyType": "BuiltIn", - "mode": "All", - "description": "This policy enables you to restrict the maximum throughput your organization can specify when creating Azure Cosmos DB databases and containers through the resource provider. It blocks the creation of autoscale resources.", - "metadata": { - "version": "1.0.0", - "category": "Cosmos DB" - }, - "parameters": { - "throughputMax": { - "type": "Integer", - "metadata": { - "displayName": "Max RUs", - "description": "The maximum throughput (RU/s) that can be assigned to a container via the Resource Provider during create or update." - } - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Policy Effect", - "description": "The desired effect of the policy." - }, - "allowedValues": [ - "audit", - "deny", - "disabled" - ], - "defaultValue": "deny" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "anyOf": [ - { - "field": "type", - "like": "Microsoft.DocumentDB/databaseAccounts/*/throughputSettings" - }, - { - "field": "type", - "in": [ - "Microsoft.DocumentDB/databaseAccounts/sqlDatabases", - "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers", - "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases", - "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/collections", - "Microsoft.DocumentDB/databaseAccounts/gremlinDatabases", - "Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/graphs", - "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces", - "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/tables", - "Microsoft.DocumentDB/databaseAccounts/tables" - ] - } - ] - }, - { - "anyOf": [ - { - "value": "[requestContext().apiVersion]", - "less": "2019-08-01" - }, - { - "value": "[if(equals(field(\u0027Microsoft.DocumentDB/databaseAccounts/sqlDatabases/options.throughput\u0027), \u0027\u0027), 0, int(field(\u0027Microsoft.DocumentDB/databaseAccounts/sqlDatabases/options.throughput\u0027)))]", - "greater": "[parameters(\u0027throughputMax\u0027)]" - }, - { - "field": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/options", - "containsKey": "ProvisionedThroughputSettings" - }, - { - "field": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/throughputSettings/default.resource.throughput", - "greater": "[parameters(\u0027throughputMax\u0027)]" - }, - { - "field": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/throughputSettings/default.resource.provisionedThroughputSettings", - "exists": "true" - }, - { - "value": "[if(equals(field(\u0027Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/options.throughput\u0027), \u0027\u0027), 0, int(field(\u0027Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/options.throughput\u0027)))]", - "greater": "[parameters(\u0027throughputMax\u0027)]" - }, - { - "field": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/options", - "containsKey": "ProvisionedThroughputSettings" - }, - { - "field": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/throughputSettings/default.resource.throughput", - "greater": "[parameters(\u0027throughputMax\u0027)]" - }, - { - "field": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/throughputSettings/default.resource.provisionedThroughputSettings", - "exists": "true" - }, - { - "value": "[if(equals(field(\u0027Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/options.throughput\u0027), \u0027\u0027), 0, int(field(\u0027Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/options.throughput\u0027)))]", - "greater": "[parameters(\u0027throughputMax\u0027)]" - }, - { - "field": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/options", - "containsKey": "ProvisionedThroughputSettings" - }, - { - "field": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/throughputSettings/default.resource.throughput", - "greater": "[parameters(\u0027throughputMax\u0027)]" - }, - { - "field": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/throughputSettings/default.resource.provisionedThroughputSettings", - "exists": "true" - }, - { - "value": "[if(equals(field(\u0027Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/tables/options.throughput\u0027), \u0027\u0027), 0, int(field(\u0027Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/tables/options.throughput\u0027)))]", - "greater": "[parameters(\u0027throughputMax\u0027)]" - }, - { - "field": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/tables/options", - "containsKey": "ProvisionedThroughputSettings" - }, - { - "field": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/tables/throughputSettings/default.resource.throughput", - "greater": "[parameters(\u0027throughputMax\u0027)]" - }, - { - "field": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/tables/throughputSettings/default.resource.provisionedThroughputSettings", - "exists": "true" - }, - { - "value": "[if(equals(field(\u0027Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/options.throughput\u0027), \u0027\u0027), 0, int(field(\u0027Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/options.throughput\u0027)))]", - "greater": "[parameters(\u0027throughputMax\u0027)]" - }, - { - "field": "Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/options", - "containsKey": "ProvisionedThroughputSettings" - }, - { - "field": "Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/throughputSettings/default.resource.throughput", - "greater": "[parameters(\u0027throughputMax\u0027)]" - }, - { - "field": "Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/throughputSettings/default.resource.provisionedThroughputSettings", - "exists": "true" - }, - { - "value": "[if(equals(field(\u0027Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/graphs/options.throughput\u0027), \u0027\u0027), 0, int(field(\u0027Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/graphs/options.throughput\u0027)))]", - "greater": "[parameters(\u0027throughputMax\u0027)]" - }, - { - "field": "Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/graphs/options", - "containsKey": "ProvisionedThroughputSettings" - }, - { - "field": "Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/graphs/throughputSettings/default.resource.throughput", - "greater": "[parameters(\u0027throughputMax\u0027)]" - }, - { - "field": "Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/graphs/throughputSettings/default.resource.provisionedThroughputSettings", - "exists": "true" - }, - { - "value": "[if(equals(field(\u0027Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/options.throughput\u0027), \u0027\u0027), 0, int(field(\u0027Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/options.throughput\u0027)))]", - "greater": "[parameters(\u0027throughputMax\u0027)]" - }, - { - "field": "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/options", - "containsKey": "ProvisionedThroughputSettings" - }, - { - "field": "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/throughputSettings/default.resource.throughput", - "greater": "[parameters(\u0027throughputMax\u0027)]" - }, - { - "field": "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/throughputSettings/default.resource.provisionedThroughputSettings", - "exists": "true" - }, - { - "value": "[if(equals(field(\u0027Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/collections/options.throughput\u0027), \u0027\u0027), 0, int(field(\u0027Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/collections/options.throughput\u0027)))]", - "greater": "[parameters(\u0027throughputMax\u0027)]" - }, - { - "field": "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/collections/options", - "containsKey": "ProvisionedThroughputSettings" - }, - { - "field": "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/collections/throughputSettings/default.resource.throughput", - "greater": "[parameters(\u0027throughputMax\u0027)]" - }, - { - "field": "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/collections/throughputSettings/default.resource.provisionedThroughputSettings", - "exists": "true" - }, - { - "value": "[if(equals(field(\u0027Microsoft.DocumentDB/databaseAccounts/tables/options.throughput\u0027), \u0027\u0027), 0, int(field(\u0027Microsoft.DocumentDB/databaseAccounts/tables/options.throughput\u0027)))]", - "greater": "[parameters(\u0027throughputMax\u0027)]" - }, - { - "field": "Microsoft.DocumentDB/databaseAccounts/tables/options", - "containsKey": "ProvisionedThroughputSettings" - }, - { - "field": "Microsoft.DocumentDB/databaseAccounts/tables/throughputSettings/default.resource.throughput", - "greater": "[parameters(\u0027throughputMax\u0027)]" - }, - { - "field": "Microsoft.DocumentDB/databaseAccounts/tables/throughputSettings/default.resource.provisionedThroughputSettings", - "exists": "true" - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1239 - User-Installed Software", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Configuration Management control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1239" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Ensure API app has \u0027Client Certificates (Incoming client certificates)\u0027 set to \u0027On\u0027", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Client certificates allow for the app to request a certificate for incoming requests. Only clients that have a valid certificate will be able to reach the app.", - "metadata": { - "version": "1.0.0", - "category": "App Service" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Web/sites" - }, - { - "field": "kind", - "like": "*api" - }, - { - "field": "Microsoft.Web/sites/clientCertEnabled", - "equals": "false" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Private endpoint connections on Automation Accounts should be enabled", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Private endpoint connections allow secure communication by enabling private connectivity to Automation accounts without a need for public IP addresses at the source or destination. Learn more about private endpoints in Azure Automation at https://docs.microsoft.com/azure/automation/how-to/private-link-security", - "metadata": { - "version": "1.0.0", - "category": "Automation" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Automation/automationAccounts" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Automation/automationAccounts/privateEndpointConnections", - "existenceCondition": { - "field": "Microsoft.Automation/automationAccounts/privateEndpointConnections/privateLinkServiceConnectionState.status", - "equals": "Approved" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Application Insights components with Private Link enabled should use Bring Your Own Storage accounts for profiler and debugger.", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "To support private link and customer-managed key policies, create your own storage account for profiler and debugger. Learn more in https://docs.microsoft.com/azure/azure-monitor/app/profiler-bring-your-own-storage", - "metadata": { - "version": "1.0.0", - "category": "Monitoring" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Deny", - "Audit", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Insights/components" - }, - { - "field": "Microsoft.Insights/components/ForceCustomerStorageForProfiler", - "notEquals": "true" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1496 - System Security Plan", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Planning control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1496" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: SQL servers should use customer-managed keys to encrypt data at rest", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "This policy is deprecated. Please use /providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000 instead.", - "metadata": { - "version": "2.0.1-deprecated", - "category": "SQL", - "deprecated": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Sql/servers" - }, - { - "field": "kind", - "notContains": "analytics" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Sql/servers/encryptionProtector", - "name": "current", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.Sql/servers/encryptionProtector/serverKeyType", - "equals": "AzureKeyVault" - }, - { - "field": "Microsoft.Sql/servers/encryptionProtector/uri", - "notEquals": "" - }, - { - "field": "Microsoft.Sql/servers/encryptionProtector/uri", - "exists": "true" - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Private endpoint should be enabled for IoT Hub", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Private endpoint connections enforce secure communication by enabling private connectivity to IoT Hub. Configure a private endpoint connection to enable access to traffic coming only from known networks and prevent access from all other IP addresses, including within Azure.", - "metadata": { - "version": "1.0.0", - "category": "Internet of Things" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Devices/IotHubs" - }, - { - "count": { - "field": "Microsoft.Devices/IotHubs/privateEndpointConnections[*]", - "where": { - "field": "Microsoft.Devices/IotHubs/privateEndpointConnections[*].privateLinkServiceConnectionState.status", - "equals": "Approved" - } - }, - "less": 1 - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1518 - Personnel Termination", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Personnel Security control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1518" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1713 - Software, Firmware, And Information Integrity | Integrity Checks", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Information Integrity control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1713" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1466 - Visitor Access Records", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Physical and Environmental Protection control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1466" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Show audit results from Windows VMs on which Windows Defender Exploit Guard is not enabled", - "policyType": "BuiltIn", - "mode": "All", - "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines on which Windows Defender Exploit Guard is not enabled. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol", - "metadata": { - "version": "1.0.0-deprecated", - "category": "Guest Configuration", - "deprecated": true - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "dsvm-windows" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - } - ] - }, - "then": { - "effect": "auditIfNotExists", - "details": { - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "WindowsDefenderExploitGuard", - "existenceCondition": { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus", - "equals": "Compliant" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Managed identity should be used in your Function App", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Use a managed identity for enhanced authentication security", - "metadata": { - "version": "2.0.0", - "category": "App Service" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Web/sites" - }, - { - "field": "kind", - "like": "functionapp*" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Web/sites/config", - "name": "web", - "existenceCondition": { - "anyOf": [ - { - "field": "Microsoft.Web/sites/config/managedServiceIdentityId", - "exists": "true" - }, - { - "field": "Microsoft.Web/sites/config/xmanagedServiceIdentityId", - "exists": "true" - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Deploy a flow log resource with target network security group", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Configures flow log for specific network security group. It will allow to log information about IP traffic flowing through an network security group. Flow log helps to identify unknown or undesired traffic, verify network isolation and compliance with enterprise access rules, analyze network flows from compromised IPs and network interfaces.", - "metadata": { - "version": "1.0.1", - "category": "Network" - }, - "parameters": { - "nsgRegion": { - "type": "String", - "metadata": { - "displayName": "NSG Region", - "description": "This Policy will review NSGs only in the selected region. You can create other assignments to include other regions.", - "strongType": "location" - } - }, - "storageId": { - "type": "String", - "metadata": { - "displayName": "Storage id", - "description": "A string with the storage id for the flowlogs to be sent to. It will be used for deployment purposes only. Make sure this storage account is located in the same region as the NSG. The format must be: \u0027/subscriptions/{subscription id}/resourceGroups/{resourceGroup name}/providers/Microsoft.Storage/storageAccounts/{storage account name}", - "assignPermissions": true - } - }, - "networkWatcherRG": { - "type": "String", - "metadata": { - "displayName": "Network Watchers RG", - "description": "The name of the resource group where the flowLog resources will be created. This will be used only if a deployment is required. This is the resource group where the Network Watchers are located.", - "strongType": "existingResourceGroups" - } - }, - "networkWatcherName": { - "type": "String", - "metadata": { - "displayName": "Network Watcher name", - "description": "The name of the network watcher under which the flowLog resources will be created. Make sure it belongs to the same region as the NSG." - } - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Network/networkSecurityGroups" - }, - { - "field": "location", - "equals": "[parameters(\u0027nsgRegion\u0027)]" - } - ] - }, - "then": { - "effect": "deployIfNotExists", - "details": { - "type": "Microsoft.Network/networkWatchers/flowlogs", - "resourceGroupName": "[if(empty(coalesce(field(\u0027Microsoft.Network/networkSecurityGroups/flowLogs\u0027))), parameters(\u0027networkWatcherRG\u0027), split(first(field(\u0027Microsoft.Network/networkSecurityGroups/flowLogs[*].id\u0027)), \u0027/\u0027)[4])]", - "name": "[if(empty(coalesce(field(\u0027Microsoft.Network/networkSecurityGroups/flowLogs[*].id\u0027))), \u0027null/null\u0027, concat(split(first(field(\u0027Microsoft.Network/networkSecurityGroups/flowLogs[*].id\u0027)), \u0027/\u0027)[8], \u0027/\u0027, split(first(field(\u0027Microsoft.Network/networkSecurityGroups/flowLogs[*].id\u0027)), \u0027/\u0027)[10]))]", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.Network/networkWatchers/flowLogs/enabled", - "equals": "true" - }, - { - "field": "Microsoft.Network/networkWatchers/flowLogs/storageId", - "equals": "[parameters(\u0027storageId\u0027)]" - } - ] - }, - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "deployment": { - "properties": { - "mode": "incremental", - "template": { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "storageId": { - "type": "String" - }, - "networkWatcherRG": { - "type": "String" - }, - "networkWatcherName": { - "type": "String" - }, - "flowlogName": { - "type": "String" - }, - "location": { - "type": "String" - }, - "targetResource": { - "type": "string" - } - }, - "resources": [ - { - "type": "Microsoft.Resources/deployments", - "name": "[concat(\u0027flowlogDeployment-\u0027, uniqueString(parameters(\u0027flowlogName\u0027)))]", - "apiVersion": "2019-10-01", - "resourceGroup": "[parameters(\u0027networkWatcherRG\u0027)]", - "properties": { - "mode": "incremental", - "parameters": {}, - "template": { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": {}, - "resources": [ - { - "type": "Microsoft.Network/networkWatchers/flowLogs", - "name": "[concat(parameters(\u0027networkWatcherName\u0027), \u0027/\u0027, parameters(\u0027flowlogName\u0027))]", - "apiVersion": "2019-11-01", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "targetResourceId": "[parameters(\u0027targetResource\u0027)]", - "storageId": "[parameters(\u0027storageId\u0027)]", - "enabled": "true", - "retentionPolicy": { - "days": "0", - "enabled": "false" - } - } - } - ] - } - } - } - ] - }, - "parameters": { - "storageId": { - "value": "[parameters(\u0027storageId\u0027)]" - }, - "networkWatcherRG": { - "value": "[if(empty(coalesce(field(\u0027Microsoft.Network/networkSecurityGroups/flowLogs\u0027))), parameters(\u0027networkWatcherRG\u0027), split(first(field(\u0027Microsoft.Network/networkSecurityGroups/flowLogs[*].id\u0027)), \u0027/\u0027)[4])]" - }, - "networkWatcherName": { - "value": "[if(empty(coalesce(field(\u0027Microsoft.Network/networkSecurityGroups/flowLogs\u0027))), parameters(\u0027networkWatcherName\u0027), split(first(field(\u0027Microsoft.Network/networkSecurityGroups/flowLogs[*].id\u0027)), \u0027/\u0027)[8])]" - }, - "flowlogName": { - "value": "[if(empty(coalesce(field(\u0027Microsoft.Network/networkSecurityGroups/flowLogs\u0027))), concat(field(\u0027name\u0027), \u0027-\u0027, resourceGroup().name, \u0027-\u0027, \u0027flowlog\u0027), split(first(field(\u0027Microsoft.Network/networkSecurityGroups/flowLogs[*].id\u0027)), \u0027/\u0027)[10])]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "targetResource": { - "value": "[concat(resourceGroup().id, \u0027/providers/Microsoft.Network/networkSecurityGroups/\u0027, field(\u0027name\u0027))]" - } - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1718 - Software, Firmware, And Information Integrity | Binary Or Machine Executable Code", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Information Integrity control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1718" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Modify - Configure Azure File Sync to disable public network access", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "The Azure File Sync\u0027s internet-accessible public endpoint are disabled by your organizational policy. You may still access the Storage Sync Service via its private endpoint(s).", - "metadata": { - "version": "1.0.0", - "category": "Storage" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Modify", - "Disabled" - ], - "defaultValue": "Modify" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.StorageSync/storageSyncServices" - }, - { - "field": "Microsoft.StorageSync/storageSyncServices/incomingTrafficPolicy", - "notEquals": "AllowVirtualNetworksOnly" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "conflictEffect": "Audit", - "operations": [ - { - "condition": "[greater(requestContext().apiVersion, \u00272019-10-01\u0027)]", - "operation": "addOrReplace", - "field": "Microsoft.StorageSync/storageSyncServices/incomingTrafficPolicy", - "value": "AllowVirtualNetworksOnly" - } - ] - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Authorized IP ranges should be defined on Kubernetes Services", - "policyType": "BuiltIn", - "mode": "All", - "description": "Restrict access to the Kubernetes Service Management API by granting API access only to IP addresses in specific ranges. It is recommended to limit access to authorized IP ranges to ensure that only applications from allowed networks can access the cluster.", - "metadata": { - "version": "2.0.1", - "category": "Security Center" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.ContainerService/managedClusters" - }, - { - "field": "Microsoft.ContainerService/managedClusters/apiServerAccessProfile.authorizedIPRanges", - "exists": "false" - }, - { - "anyOf": [ - { - "field": "Microsoft.ContainerService/managedClusters/apiServerAccessProfile.enablePrivateCluster", - "exists": "false" - }, - { - "field": "Microsoft.ContainerService/managedClusters/apiServerAccessProfile.enablePrivateCluster", - "equals": "false" - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Remote debugging should be turned off for Function Apps", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Remote debugging requires inbound ports to be opened on function apps. Remote debugging should be turned off.", - "metadata": { - "version": "1.0.0", - "category": "App Service" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Web/sites" - }, - { - "field": "kind", - "like": "functionapp*" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Web/sites/config", - "existenceCondition": { - "field": "Microsoft.Web/sites/config/web.remoteDebuggingEnabled", - "equals": "false" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Azure Defender for Key Vault should be enabled", - "policyType": "BuiltIn", - "mode": "All", - "description": "Azure Defender for Key Vault provides an additional layer of protection and security intelligence by detecting unusual and potentially harmful attempts to access or exploit key vault accounts.", - "metadata": { - "version": "1.0.3", - "category": "Security Center" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Resources/subscriptions" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Security/pricings", - "name": "KeyVaults", - "existenceScope": "subscription", - "existenceCondition": { - "field": "Microsoft.Security/pricings/pricingTier", - "equals": "Standard" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Geo-redundant backup should be enabled for Azure Database for MariaDB", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Azure Database for MariaDB allows you to choose the redundancy option for your database server. It can be set to a geo-redundant backup storage in which the data is not only stored within the region in which your server is hosted, but is also replicated to a paired region to provide recovery option in case of a region failure. Configuring geo-redundant storage for backup is only allowed during server create.", - "metadata": { - "version": "1.0.1", - "category": "SQL" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.DBforMariaDB/servers" - }, - { - "field": "Microsoft.DBforMariaDB/servers/storageProfile.geoRedundantBackup", - "notEquals": "Enabled" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Deploy prerequisites to enable Guest Configuration Policy on Windows VMs.", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "This policy creates a system-assigned managed identity and deploys the VM extension for Guest Configuration on Windows VMs. This is a prerequisite for Guest Configuration Policy and must be assigned to the scope before using any Guest Configuration policy. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol.", - "metadata": { - "version": "1.2.0-deprecated", - "category": "Guest Configuration", - "requiredProviders": [ - "Microsoft.GuestConfiguration" - ], - "deprecated": true - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "dsvm-windows" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - "then": { - "effect": "deployIfNotExists", - "details": { - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "type": "Microsoft.Compute/virtualMachines/extensions", - "name": "AzurePolicyforWindows", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.Compute/virtualMachines/extensions/publisher", - "equals": "Microsoft.GuestConfiguration" - }, - { - "field": "Microsoft.Compute/virtualMachines/extensions/type", - "equals": "ConfigurationforWindows" - }, - { - "field": "Microsoft.Compute/virtualMachines/extensions/provisioningState", - "equals": "Succeeded" - } - ] - }, - "deployment": { - "properties": { - "mode": "incremental", - "parameters": { - "vmName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "vmName": { - "type": "string" - }, - "location": { - "type": "string" - } - }, - "resources": [ - { - "apiVersion": "2019-07-01", - "type": "Microsoft.Compute/virtualMachines", - "identity": { - "type": "SystemAssigned" - }, - "name": "[parameters(\u0027vmName\u0027)]", - "location": "[parameters(\u0027location\u0027)]" - }, - { - "apiVersion": "2019-07-01", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/AzurePolicyforWindows\u0027)]", - "type": "Microsoft.Compute/virtualMachines/extensions", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "publisher": "Microsoft.GuestConfiguration", - "type": "ConfigurationforWindows", - "typeHandlerVersion": "1.1", - "autoUpgradeMinorVersion": true, - "settings": {}, - "protectedSettings": {} - } - } - ] - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1601 - Developer Security Testing And Evaluation", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Services Acquisition control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1601" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Configure Batch accounts with private endpoints", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Private endpoints connect your virtual network to Azure services without a public IP address at the source or destination. By mapping private endpoints to Batch accounts, you can reduce data leakage risks. Learn more about private links at: https://docs.microsoft.com/azure/batch/private-connectivity.", - "metadata": { - "version": "1.0.0", - "category": "Batch" - }, - "parameters": { - "privateEndpointSubnetId": { - "type": "String", - "metadata": { - "displayName": "Private endpoint subnet id", - "description": "A subnet with private endpoint network policies disabled", - "strongType": "Microsoft.Network/virtualNetworks/subnets" - } - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Batch/batchAccounts" - }, - { - "field": "Microsoft.Batch/batchAccounts/publicNetworkAccess", - "equals": "Disabled" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Batch/batchAccounts/privateEndpointConnections", - "existenceCondition": { - "field": "Microsoft.Batch/batchAccounts/privateEndpointConnections/privateLinkServiceConnectionState.status", - "equals": "Approved" - }, - "roleDefinitionIds": [ - "/providers/Microsoft.Authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "deployment": { - "properties": { - "mode": "incremental", - "parameters": { - "name": { - "value": "[field(\u0027name\u0027)]" - }, - "serviceId": { - "value": "[field(\u0027id\u0027)]" - }, - "privateEndpointSubnetId": { - "value": "[parameters(\u0027privateEndpointSubnetId\u0027)]" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "name": { - "type": "string" - }, - "serviceId": { - "type": "string" - }, - "privateEndpointSubnetId": { - "type": "string" - } - }, - "variables": { - "privateEndpointName": "[concat(\u0027pe-\u0027,substring(parameters(\u0027name\u0027),0,min(length(parameters(\u0027name\u0027)),50)),\u0027-\u0027,uniquestring(deployment().name))]" - }, - "resources": [ - { - "type": "Microsoft.Resources/deployments", - "name": "[variables(\u0027privateEndpointName\u0027)]", - "apiVersion": "2020-06-01", - "properties": { - "mode": "Incremental", - "expressionEvaluationOptions": { - "scope": "inner" - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "serviceId": { - "type": "string" - }, - "privateEndpointSubnetId": { - "type": "string" - }, - "subnetLocation": { - "type": "string" - } - }, - "variables": { - "privateEndpointName": "[deployment().name]" - }, - "resources": [ - { - "name": "[variables(\u0027privateEndpointName\u0027)]", - "type": "Microsoft.Network/privateEndpoints", - "apiVersion": "2020-07-01", - "location": "[parameters(\u0027subnetLocation\u0027)]", - "tags": {}, - "properties": { - "subnet": { - "id": "[parameters(\u0027privateEndpointSubnetId\u0027)]" - }, - "privateLinkServiceConnections": [ - { - "name": "[variables(\u0027privateEndpointName\u0027)]", - "properties": { - "privateLinkServiceId": "[parameters(\u0027serviceId\u0027)]", - "groupIds": [ - "batchAccount" - ], - "requestMessage": "autoapprove" - } - } - ], - "manualPrivateLinkServiceConnections": [] - } - } - ] - }, - "parameters": { - "serviceId": { - "value": "[parameters(\u0027serviceId\u0027)]" - }, - "privateEndpointSubnetId": { - "value": "[parameters(\u0027privateEndpointSubnetId\u0027)]" - }, - "subnetLocation": { - "value": "[reference(first(take(split(parameters(\u0027privateEndpointSubnetId\u0027),\u0027/subnets\u0027),1)),\u00272020-07-01\u0027,\u0027Full\u0027).location]" - } - } - } - } - ] - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Preview]: Audit Azure Spring Cloud instances where distributed tracing is not enabled", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Distributed tracing tools in Azure Spring Cloud allow debugging and monitoring the complex interconnections between microservices in an application. Distributed tracing tools should be enabled and in a healthy state.", - "metadata": { - "version": "1.0.0-preview", - "category": "App Platform", - "preview": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.AppPlatform/Spring" - }, - { - "anyOf": [ - { - "field": "Microsoft.AppPlatform/Spring/trace.enabled", - "notEquals": "true" - }, - { - "field": "Microsoft.AppPlatform/Spring/trace.state", - "notEquals": "Succeeded" - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1476 - Fire Protection", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Physical and Environmental Protection control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1476" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1204 - Access Restrictions For Change | Review System Changes", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Configuration Management control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1204" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1430 - Media Marking", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Media Protection control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1430" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1574 - Acquisition Process", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Services Acquisition control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1574" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1164 - Continuous Monitoring", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Security Assessment and Authorization control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1164" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Running container images should have vulnerability findings resolved", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Container image vulnerability assessment scans container images running on your Kubernetes clusters for security vulnerabilities and exposes detailed findings for each image. Resolving the vulnerabilities can greatly improve your containers\u0027 security posture and protect them from attacks.", - "metadata": { - "version": "1.0.1", - "category": "Security Center" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "in": [ - "Microsoft.ContainerService/managedClusters" - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Security/assessments", - "name": "00000000-0000-0000-0000-000000000000", - "existenceCondition": { - "field": "Microsoft.Security/assessments/status.code", - "in": [ - "NotApplicable", - "Healthy" - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1017 - Account Management | Inactivity Logout", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Access Control control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1017" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Azure Monitor Private Link Scope should use private link", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Azure Private Link lets you connect your virtual networks to Azure services without a public IP address at the source or destination. The Private Link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to Azure Monitor Private Links Scope, you can reduce data leakage risks. Learn more about private links at: https://docs.microsoft.com/azure/azure-monitor/logs/private-link-security.", - "metadata": { - "version": "1.0.0", - "category": "Monitoring" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Insights/privateLinkScopes" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Insights/privateLinkScopes/privateEndpointConnections", - "existenceCondition": { - "field": "Microsoft.Insights/privateLinkScopes/privateEndpointConnections/privateLinkServiceConnectionState.status", - "equals": "Approved" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Azure Cognitive Search services should use private link", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination. The Private Link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to Azure Cognitive Search, data leakage risks are reduced. Learn more about private links at: https://aka.ms/azure-cognitive-search/inbound-private-endpoints.", - "metadata": { - "version": "1.0.0", - "category": "Search" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Search/searchServices" - }, - { - "count": { - "field": "Microsoft.Search/searchServices/privateEndpointConnections[*]", - "where": { - "field": "Microsoft.Search/searchServices/privateEndpointConnections[*].privateLinkServiceConnectionState.status", - "equals": "Approved" - } - }, - "less": 1 - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Public network access should be disabled for Container registries", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Disabling public network access improves security by ensuring that container registries are not exposed on the public internet. Creating private endpoints can limit exposure of container registry resources. Learn more at: https://aka.ms/acr/portal/public-network and https://aka.ms/acr/private-link.", - "metadata": { - "version": "1.0.0", - "category": "Container Registry" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.ContainerRegistry/registries" - }, - { - "field": "Microsoft.ContainerRegistry/registries/publicNetworkAccess", - "notEquals": "Disabled" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "CORS should not allow every domain to access your API for FHIR", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Cross-Origin Resource Sharing (CORS) should not allow all domains to access your API for FHIR. To protect your API for FHIR, remove access for all domains and explicitly define the domains allowed to connect.", - "metadata": { - "version": "1.0.0", - "category": "API for FHIR" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "audit", - "disabled" - ], - "defaultValue": "audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HealthcareApis/services" - }, - { - "not": { - "field": "Microsoft.HealthcareApis/services/corsConfiguration.origins[*]", - "notEquals": "*" - } - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1087 - Security Awareness And Training Policy And Procedures", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Awareness and Training control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1087" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Deploy prerequisites to audit Windows VMs that do not contain the specified certificates in Trusted Root", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "This policy creates a Guest Configuration assignment to audit Windows VMs that do not contain the specified certificates in the Trusted Root Certification Authorities certificate store (Cert:\\LocalMachine\\Root). It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol", - "metadata": { - "version": "1.2.0-deprecated", - "category": "Guest Configuration", - "requiredProviders": [ - "Microsoft.GuestConfiguration" - ], - "deprecated": true - }, - "parameters": { - "CertificateThumbprints": { - "type": "String", - "metadata": { - "displayName": "Certificate thumbprints", - "description": "A semicolon-separated list of certificate thumbprints that should exist under the Trusted Root certificate store (Cert:\\LocalMachine\\Root). e.g. THUMBPRINT1;THUMBPRINT2;THUMBPRINT3" - } - } - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "dsvm-windows" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - } - ] - }, - "then": { - "effect": "deployIfNotExists", - "details": { - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "WindowsCertificateInTrustedRoot", - "existenceCondition": { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash", - "equals": "[base64(concat(\u0027[CertificateStore]CertificateStore1;CertificateThumbprintsToInclude\u0027, \u0027=\u0027, parameters(\u0027CertificateThumbprints\u0027)))]" - }, - "deployment": { - "properties": { - "mode": "incremental", - "parameters": { - "vmName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "type": { - "value": "[field(\u0027type\u0027)]" - }, - "configurationName": { - "value": "WindowsCertificateInTrustedRoot" - }, - "CertificateThumbprints": { - "value": "[parameters(\u0027CertificateThumbprints\u0027)]" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "vmName": { - "type": "string" - }, - "location": { - "type": "string" - }, - "type": { - "type": "string" - }, - "configurationName": { - "type": "string" - }, - "CertificateThumbprints": { - "type": "string" - } - }, - "resources": [ - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027microsoft.hybridcompute/machines\u0027))]", - "apiVersion": "2018-11-20", - "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/Microsoft.GuestConfiguration/\u0027, parameters(\u0027configurationName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "guestConfiguration": { - "name": "[parameters(\u0027configurationName\u0027)]", - "version": "1.*", - "configurationParameter": [ - { - "name": "[CertificateStore]CertificateStore1;CertificateThumbprintsToInclude", - "value": "[parameters(\u0027CertificateThumbprints\u0027)]" - } - ] - } - } - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2018-11-20", - "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/Microsoft.GuestConfiguration/\u0027, parameters(\u0027configurationName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "guestConfiguration": { - "name": "[parameters(\u0027configurationName\u0027)]", - "version": "1.*", - "configurationParameter": [ - { - "name": "[CertificateStore]CertificateStore1;CertificateThumbprintsToInclude", - "value": "[parameters(\u0027CertificateThumbprints\u0027)]" - } - ] - } - } - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2019-07-01", - "type": "Microsoft.Compute/virtualMachines", - "identity": { - "type": "SystemAssigned" - }, - "name": "[parameters(\u0027vmName\u0027)]", - "location": "[parameters(\u0027location\u0027)]" - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2019-07-01", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/AzurePolicyforWindows\u0027)]", - "type": "Microsoft.Compute/virtualMachines/extensions", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "publisher": "Microsoft.GuestConfiguration", - "type": "ConfigurationforWindows", - "typeHandlerVersion": "1.1", - "autoUpgradeMinorVersion": true, - "settings": {}, - "protectedSettings": {} - }, - "dependsOn": [ - "[concat(\u0027Microsoft.Compute/virtualMachines/\u0027,parameters(\u0027vmName\u0027),\u0027/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/\u0027,parameters(\u0027configurationName\u0027))]" - ] - } - ] - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1554 - Vulnerability Scanning | Discoverable Information", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Risk Assessment control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1554" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Ensure that \u0027.NET Framework\u0027 version is the latest, if used as a part of the Function App", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "This policy is not required since Azure App Service automatically updates and maintains the .NET Framework versions installed on the platform.", - "metadata": { - "version": "1.0.0-deprecated", - "category": "App Service", - "deprecated": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Web/sites" - }, - { - "field": "kind", - "like": "functionapp*" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Web/sites/config", - "name": "web", - "existenceCondition": { - "field": "Microsoft.Web/sites/config/web.netFrameworkVersion", - "in": [ - "v3.0", - "v4.0" - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Preview]: Configure ChangeTracking Extension for Linux Arc machines", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Configure Linux Arc machines to automatically install the ChangeTracking Extension to enable File Integrity Monitoring(FIM) in Azure Security Center. FIM examines operating system files, Windows registries, application software, Linux system files, and more, for changes that might indicate an attack. The extension can be installed in virtual machines and locations supported by Azure Monitor Agent.", - "metadata": { - "version": "1.0.0-preview", - "category": "Security Center", - "preview": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - }, - "listOfApplicableLocations": { - "type": "Array", - "metadata": { - "displayName": "Applicable Locations", - "description": "The list of locations where the policy should be applied.", - "strongType": "location" - }, - "allowedValues": [ - "australiasoutheast", - "australiaeast", - "brazilsouth", - "canadacentral", - "centralindia", - "centralus", - "eastasia", - "eastus2euap", - "eastus", - "eastus2", - "francecentral", - "japaneast", - "koreacentral", - "northcentralus", - "northeurope", - "norwayeast", - "southcentralus", - "southeastasia", - "switzerlandnorth", - "uaenorth", - "uksouth", - "westcentralus", - "westeurope", - "westus", - "westus2" - ], - "defaultValue": [ - "australiasoutheast", - "australiaeast", - "brazilsouth", - "canadacentral", - "centralindia", - "centralus", - "eastasia", - "eastus2euap", - "eastus", - "eastus2", - "francecentral", - "japaneast", - "koreacentral", - "northcentralus", - "northeurope", - "norwayeast", - "southcentralus", - "southeastasia", - "switzerlandnorth", - "uaenorth", - "uksouth", - "westcentralus", - "westeurope", - "westus", - "westus2" - ] - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "location", - "in": "[parameters(\u0027listOfApplicableLocations\u0027)]" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "linux*" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.HybridCompute/machines/extensions", - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.HybridCompute/machines/extensions/type", - "equals": "ChangeTracking-Linux" - }, - { - "field": "Microsoft.HybridCompute/machines/extensions/Publisher", - "equals": "Microsoft.Azure.ChangeTrackingAndInventory" - }, - { - "field": "Microsoft.HybridCompute/machines/extensions/provisioningState", - "equals": "Succeeded" - } - ] - }, - "deployment": { - "properties": { - "mode": "incremental", - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "vmName": { - "type": "string" - }, - "location": { - "type": "string" - } - }, - "variables": { - "vmExtensionName": "ChangeTracking-Linux", - "vmExtensionPublisher": "Microsoft.Azure.ChangeTrackingAndInventory", - "vmExtensionType": "ChangeTracking-Linux", - "vmExtensionTypeHandlerVersion": "1.0" - }, - "resources": [ - { - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/\u0027, variables(\u0027vmExtensionName\u0027))]", - "type": "Microsoft.HybridCompute/machines/extensions", - "location": "[parameters(\u0027location\u0027)]", - "apiVersion": "2021-06-10-preview", - "properties": { - "publisher": "[variables(\u0027vmExtensionPublisher\u0027)]", - "type": "[variables(\u0027vmExtensionType\u0027)]", - "typeHandlerVersion": "[variables(\u0027vmExtensionTypeHandlerVersion\u0027)]", - "autoUpgradeMinorVersion": true, - "settings": {}, - "protectedSettings": {} - } - } - ] - }, - "parameters": { - "vmName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - } - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Custom subscription owner roles should not exist", - "policyType": "BuiltIn", - "mode": "All", - "description": "This policy is deprecated.", - "metadata": { - "version": "2.0.0-deprecated", - "category": "General", - "deprecated": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Authorization/roleDefinitions" - }, - { - "field": "Microsoft.Authorization/roleDefinitions/type", - "equals": "CustomRole" - }, - { - "anyOf": [ - { - "not": { - "field": "Microsoft.Authorization/roleDefinitions/permissions[*].actions[*]", - "notEquals": "*" - } - }, - { - "not": { - "field": "Microsoft.Authorization/roleDefinitions/permissions.actions[*]", - "notEquals": "*" - } - } - ] - }, - { - "anyOf": [ - { - "not": { - "field": "Microsoft.Authorization/roleDefinitions/assignableScopes[*]", - "notIn": [ - "[concat(subscription().id,\u0027/\u0027)]", - "[subscription().id]", - "/" - ] - } - }, - { - "not": { - "field": "Microsoft.Authorization/roleDefinitions/assignableScopes[*]", - "notLike": "/providers/Microsoft.Management/*" - } - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1230 - Configuration Management Plan", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Configuration Management control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1230" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1432 - Media Storage", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Media Protection control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1432" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Modify - Configure Azure IoT Hubs to disable public network access", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Disabling the public network access property improves security by ensuring your Azure IoT Hub can only be accessed from a private endpoint. This policy disables public network access on IoT Hub resources.", - "metadata": { - "version": "1.0.0", - "category": "Internet of Things" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Modify", - "Disabled" - ], - "defaultValue": "Modify" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Devices/IotHubs" - }, - { - "field": "Microsoft.Devices/IotHubs/publicNetworkAccess", - "notEquals": "Disabled" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "roleDefinitionIds": [ - "/providers/Microsoft.Authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "conflictEffect": "audit", - "operations": [ - { - "condition": "[greaterOrEquals(requestContext().apiVersion, \u00272020-03-01\u0027)]", - "operation": "addOrReplace", - "field": "Microsoft.Devices/IotHubs/publicNetworkAccess", - "value": "Disabled" - } - ] - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Cognitive Services accounts should use customer owned storage or enable data encryption.", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "This policy is deprecated. Cognitive Services have data encryption enforced.", - "metadata": { - "version": "2.0.0-deprecated", - "category": "Cognitive Services", - "deprecated": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "The effect determines what happens when the policy rule is evaluated to match" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Disabled" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.CognitiveServices/accounts" - }, - { - "count": { - "field": "Microsoft.CognitiveServices/accounts/userOwnedStorage[*]" - }, - "less": 1 - }, - { - "field": "Microsoft.CognitiveServices/accounts/encryption.keySource", - "exists": "false" - }, - { - "field": "Microsoft.CognitiveServices/accounts/encryption", - "exists": "true" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Dependency agent should be enabled for listed virtual machine images", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Reports virtual machines as non-compliant if the virtual machine image is not in the list defined and the agent is not installed. The list of OS images is updated over time as support is updated.", - "metadata": { - "version": "2.0.0", - "category": "Monitoring" - }, - "parameters": { - "listOfImageIdToInclude_windows": { - "type": "Array", - "metadata": { - "displayName": "Optional: List of virtual machine images that have supported Windows OS to add to scope", - "description": "Example value: \u0027/subscriptions/\u003CsubscriptionId\u003E/resourceGroups/YourResourceGroup/providers/Microsoft.Compute/images/ContosoStdImage\u0027" - }, - "defaultValue": [] - }, - "listOfImageIdToInclude_linux": { - "type": "Array", - "metadata": { - "displayName": "Optional: List of virtual machine images that have supported Linux OS to add to scope", - "description": "Example value: \u0027/subscriptions/\u003CsubscriptionId\u003E/resourceGroups/YourResourceGroup/providers/Microsoft.Compute/images/ContosoStdImage\u0027" - }, - "defaultValue": [] - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "not": { - "anyOf": [ - { - "field": "Microsoft.Compute/imageId", - "in": "[parameters(\u0027listOfImageIdToInclude_windows\u0027)]" - }, - { - "field": "Microsoft.Compute/imageId", - "in": "[parameters(\u0027listOfImageIdToInclude_linux\u0027)]" - }, - { - "anyOf": [ - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "in": [ - "2008-R2-SP1", - "2008-R2-SP1-smalldisk", - "2012-Datacenter", - "2012-Datacenter-smalldisk", - "2012-R2-Datacenter", - "2012-R2-Datacenter-smalldisk", - "2016-Datacenter", - "2016-Datacenter-Server-Core", - "2016-Datacenter-Server-Core-smalldisk", - "2016-Datacenter-smalldisk", - "2016-Datacenter-with-Containers", - "2016-Datacenter-with-RDSH", - "2019-Datacenter", - "2019-Datacenter-Core", - "2019-Datacenter-Core-smalldisk", - "2019-Datacenter-Core-with-Containers", - "2019-Datacenter-Core-with-Containers-smalldisk", - "2019-Datacenter-smalldisk", - "2019-Datacenter-with-Containers", - "2019-Datacenter-with-Containers-smalldisk", - "2019-Datacenter-zhcn" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServerSemiAnnual" - }, - { - "field": "Microsoft.Compute/imageSKU", - "in": [ - "Datacenter-Core-1709-smalldisk", - "Datacenter-Core-1709-with-Containers-smalldisk", - "Datacenter-Core-1803-with-Containers-smalldisk" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServerHPCPack" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServerHPCPack" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2016" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2016-BYOL" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2012R2" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2012R2-BYOL" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftRServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "MLServer-WS2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftVisualStudio" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "VisualStudio", - "Windows" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftDynamicsAX" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Dynamics" - }, - { - "field": "Microsoft.Compute/imageSKU", - "equals": "Pre-Req-AX7-Onebox-U8" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftDynamicsAX" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Dynamics" - }, - { - "field": "Microsoft.Compute/imageSKU", - "equals": "Pre-Req-AX7-Onebox-V4" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "windows-data-science-vm" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsDesktop" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Windows-10" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "RedHat" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "RHEL", - "RHEL-SAP-HANA" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "like": "6.*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "7*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "SUSE" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "SLES", - "SLES-HPC", - "SLES-HPC-Priority", - "SLES-SAP", - "SLES-SAP-BYOS", - "SLES-Priority", - "SLES-BYOS", - "SLES-SAPCAL", - "SLES-Standard" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "in": [ - "12-SP2", - "12-SP3", - "12-SP4" - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Canonical" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "UbuntuServer" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "in": [ - "14.04.0-LTS", - "14.04.1-LTS", - "14.04.5-LTS" - ] - }, - { - "field": "Microsoft.Compute/imageSKU", - "in": [ - "16.04-LTS", - "16.04.0-LTS" - ] - }, - { - "field": "Microsoft.Compute/imageSKU", - "in": [ - "18.04-LTS" - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "OpenLogic" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "Centos", - "Centos-LVM", - "CentOS-SRIOV" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "like": "6.*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "7*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloudera" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "cloudera-centos-os" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "7*" - } - ] - } - ] - } - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Compute/virtualMachines/extensions", - "existenceCondition": { - "field": "Microsoft.Compute/virtualMachines/extensions/publisher", - "equals": "Microsoft.Azure.Monitoring.DependencyAgent" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Preview]: Recovery Services vaults should use private link", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination. The Private Link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to Azure Recovery Services vaults, data leakage risks are reduced. Learn more about private links for Azure Site Recovery at: https://aka.ms/HybridScenarios-PrivateLink and https://aka.ms/AzureToAzure-PrivateLink.", - "metadata": { - "version": "1.0.0-preview", - "category": "Site Recovery", - "preview": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.RecoveryServices/vaults" - }, - { - "count": { - "field": "Microsoft.RecoveryServices/vaults/privateEndpointConnections[*]", - "where": { - "allOf": [ - { - "field": "Microsoft.RecoveryServices/vaults/privateEndpointConnections[*].privateLinkServiceConnectionState.status", - "equals": "Approved" - }, - { - "field": "Microsoft.RecoveryServices/vaults/privateEndpointConnections[*].provisioningState", - "equals": "Succeeded" - }, - { - "field": "Microsoft.RecoveryServices/vaults/privateEndpointConnections[*].id", - "contains": "SiteRecovery" - } - ] - } - }, - "less": 1 - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Windows machines should meet requirements for \u0027Security Options - System settings\u0027", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Windows machines should have the specified Group Policy settings in the category \u0027Security Options - System settings\u0027 for certificate rules on executables for SRP and optional subsystems. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.", - "metadata": { - "category": "Guest Configuration", - "version": "3.0.0", - "requiredProviders": [ - "Microsoft.GuestConfiguration" - ], - "guestConfiguration": { - "name": "AzureBaseline_SecurityOptionsSystemsettings", - "version": "1.*", - "configurationParameter": { - "SystemSettingsUseCertificateRulesOnWindowsExecutablesForSoftwareRestrictionPolicies": "System settings: Use Certificate Rules on Windows Executables for Software Restriction Policies;ExpectedValue" - } - } - }, - "parameters": { - "IncludeArcMachines": { - "type": "String", - "metadata": { - "displayName": "Include Arc connected servers", - "description": "By selecting this option, you agree to be charged monthly per Arc connected machine.", - "portalReview": "true" - }, - "allowedValues": [ - "true", - "false" - ], - "defaultValue": "false" - }, - "SystemSettingsUseCertificateRulesOnWindowsExecutablesForSoftwareRestrictionPolicies": { - "type": "String", - "metadata": { - "displayName": "System settings: Use Certificate Rules on Windows Executables for Software Restriction Policies", - "description": "Specifies whether digital certificates are processed when software restriction policies are enabled and a user or process attempts to run software with an .exe file name extension. It enables or disables certificate rules (a type of software restriction policies rule). For certificate rules to take effect in software restriction policies, you must enable this policy setting." - }, - "defaultValue": "1" - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of this policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "dsvm-win*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "value": "[parameters(\u0027IncludeArcMachines\u0027)]", - "equals": "true" - }, - { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.ConnectedVMwarevSphere/virtualMachines" - }, - { - "field": "Microsoft.ConnectedVMwarevSphere/virtualMachines/osProfile.osType", - "like": "windows*" - } - ] - } - ] - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "AzureBaseline_SecurityOptionsSystemsettings", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus", - "equals": "Compliant" - }, - { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash", - "equals": "[base64(concat(\u0027System settings: Use Certificate Rules on Windows Executables for Software Restriction Policies;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027SystemSettingsUseCertificateRulesOnWindowsExecutablesForSoftwareRestrictionPolicies\u0027)))]" - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1655 - Voice Over Internet Protocol", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Communications Protection control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1655" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Windows machines should meet requirements for \u0027Security Options - Network Security\u0027", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Windows machines should have the specified Group Policy settings in the category \u0027Security Options - Network Security\u0027 for including Local System behavior, PKU2U, LAN Manager, LDAP client, and NTLM SSP. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.", - "metadata": { - "category": "Guest Configuration", - "version": "3.0.0", - "requiredProviders": [ - "Microsoft.GuestConfiguration" - ], - "guestConfiguration": { - "name": "AzureBaseline_SecurityOptionsNetworkSecurity", - "version": "1.*", - "configurationParameter": { - "NetworkSecurityConfigureEncryptionTypesAllowedForKerberos": "Network Security: Configure encryption types allowed for Kerberos;ExpectedValue", - "NetworkSecurityLANManagerAuthenticationLevel": "Network security: LAN Manager authentication level;ExpectedValue", - "NetworkSecurityLDAPClientSigningRequirements": "Network security: LDAP client signing requirements;ExpectedValue", - "NetworkSecurityMinimumSessionSecurityForNTLMSSPBasedIncludingSecureRPCClients": "Network security: Minimum session security for NTLM SSP based (including secure RPC) clients;ExpectedValue", - "NetworkSecurityMinimumSessionSecurityForNTLMSSPBasedIncludingSecureRPCServers": "Network security: Minimum session security for NTLM SSP based (including secure RPC) servers;ExpectedValue" - } - } - }, - "parameters": { - "IncludeArcMachines": { - "type": "String", - "metadata": { - "displayName": "Include Arc connected servers", - "description": "By selecting this option, you agree to be charged monthly per Arc connected machine.", - "portalReview": "true" - }, - "allowedValues": [ - "true", - "false" - ], - "defaultValue": "false" - }, - "NetworkSecurityConfigureEncryptionTypesAllowedForKerberos": { - "type": "String", - "metadata": { - "displayName": "Network Security: Configure encryption types allowed for Kerberos", - "description": "Specifies the encryption types that Kerberos is allowed to use." - }, - "defaultValue": "2147483644" - }, - "NetworkSecurityLANManagerAuthenticationLevel": { - "type": "String", - "metadata": { - "displayName": "Network security: LAN Manager authentication level", - "description": "Specify which challenge-response authentication protocol is used for network logons. This choice affects the level of authentication protocol used by clients, the level of session security negotiated, and the level of authentication accepted by servers." - }, - "defaultValue": "5" - }, - "NetworkSecurityLDAPClientSigningRequirements": { - "type": "String", - "metadata": { - "displayName": "Network security: LDAP client signing requirements", - "description": "Specify the level of data signing that is requested on behalf of clients that issue LDAP BIND requests." - }, - "defaultValue": "1" - }, - "NetworkSecurityMinimumSessionSecurityForNTLMSSPBasedIncludingSecureRPCClients": { - "type": "String", - "metadata": { - "displayName": "Network security: Minimum session security for NTLM SSP based (including secure RPC) clients", - "description": "Specifies which behaviors are allowed by clients for applications using the NTLM Security Support Provider (SSP). The SSP Interface (SSPI) is used by applications that need authentication services. See https://docs.microsoft.com/en-us/windows/security/threat-protection/security-policy-settings/network-security-minimum-session-security-for-ntlm-ssp-based-including-secure-rpc-servers for more information." - }, - "defaultValue": "537395200" - }, - "NetworkSecurityMinimumSessionSecurityForNTLMSSPBasedIncludingSecureRPCServers": { - "type": "String", - "metadata": { - "displayName": "Network security: Minimum session security for NTLM SSP based (including secure RPC) servers", - "description": "Specifies which behaviors are allowed by servers for applications using the NTLM Security Support Provider (SSP). The SSP Interface (SSPI) is used by applications that need authentication services." - }, - "defaultValue": "537395200" - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of this policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "dsvm-win*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "value": "[parameters(\u0027IncludeArcMachines\u0027)]", - "equals": "true" - }, - { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.ConnectedVMwarevSphere/virtualMachines" - }, - { - "field": "Microsoft.ConnectedVMwarevSphere/virtualMachines/osProfile.osType", - "like": "windows*" - } - ] - } - ] - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "AzureBaseline_SecurityOptionsNetworkSecurity", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus", - "equals": "Compliant" - }, - { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash", - "equals": "[base64(concat(\u0027Network Security: Configure encryption types allowed for Kerberos;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027NetworkSecurityConfigureEncryptionTypesAllowedForKerberos\u0027), \u0027,\u0027, \u0027Network security: LAN Manager authentication level;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027NetworkSecurityLANManagerAuthenticationLevel\u0027), \u0027,\u0027, \u0027Network security: LDAP client signing requirements;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027NetworkSecurityLDAPClientSigningRequirements\u0027), \u0027,\u0027, \u0027Network security: Minimum session security for NTLM SSP based (including secure RPC) clients;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027NetworkSecurityMinimumSessionSecurityForNTLMSSPBasedIncludingSecureRPCClients\u0027), \u0027,\u0027, \u0027Network security: Minimum session security for NTLM SSP based (including secure RPC) servers;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027NetworkSecurityMinimumSessionSecurityForNTLMSSPBasedIncludingSecureRPCServers\u0027)))]" - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Allowlist rules in your adaptive application control policy should be updated", - "policyType": "BuiltIn", - "mode": "All", - "description": "Monitor for changes in behavior on groups of machines configured for auditing by Azure Security Center\u0027s adaptive application controls. Security Center uses machine learning to analyze the running processes on your machines and suggest a list of known-safe applications. These are presented as recommended apps to allow in adaptive application control policies.", - "metadata": { - "version": "3.0.0", - "category": "Security Center" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "in": [ - "Microsoft.Compute/virtualMachines", - "Microsoft.ClassicCompute/virtualMachines" - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Security/assessments", - "name": "00000000-0000-0000-0000-000000000000", - "existenceCondition": { - "field": "Microsoft.Security/assessments/status.code", - "in": [ - "NotApplicable", - "Healthy" - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Web Application Firewall (WAF) should use the specified mode for Application Gateway", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Mandates the use of \u0027Detection\u0027 or \u0027Prevention\u0027 mode to be active on all Web Application Firewall policies for Application Gateway.", - "metadata": { - "version": "1.0.0", - "category": "Network" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - }, - "modeRequirement": { - "type": "String", - "metadata": { - "displayName": "Mode Requirement", - "description": "Mode required for all WAF policies" - }, - "allowedValues": [ - "Prevention", - "Detection" - ], - "defaultValue": "Detection" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Network/applicationGatewayWebApplicationFirewallPolicies" - }, - { - "field": "Microsoft.Network/applicationGatewayWebApplicationFirewallPolicies/policySettings.mode", - "notEquals": "[parameters(\u0027modeRequirement\u0027)]" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1681 - Malicious Code Protection | Automatic Updates", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Information Integrity control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1681" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Preview]: Azure Data Factory linked services should use Key Vault for storing secrets", - "policyType": "BuiltIn", - "mode": "All", - "description": "To ensure secrets (such as connection strings) are managed securely, require users to provide secrets using an Azure Key Vault instead of specifying them inline in linked services.", - "metadata": { - "version": "1.0.0-preview", - "category": "Data Factory", - "preview": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.DataFactory/factories/linkedservices" - }, - { - "anyOf": [ - { - "allOf": [ - { - "field": "Microsoft.DataFactory/factories/linkedservices/typeProperties.connectionString", - "exists": "true" - }, - { - "anyOf": [ - { - "field": "Microsoft.DataFactory/factories/linkedservices/typeProperties.connectionString", - "contains": "AccountKey=" - }, - { - "field": "Microsoft.DataFactory/factories/linkedservices/typeProperties.connectionString", - "contains": "PWD=" - }, - { - "field": "Microsoft.DataFactory/factories/linkedservices/typeProperties.connectionString", - "contains": "Password=" - }, - { - "field": "Microsoft.DataFactory/factories/linkedservices/typeProperties.connectionString", - "contains": "CredString=" - }, - { - "field": "Microsoft.DataFactory/factories/linkedservices/typeProperties.connectionString", - "contains": "pwd=" - } - ] - } - ] - }, - { - "field": "Microsoft.DataFactory/factories/linkedservices/SqlServer.typeProperties.password.type", - "equals": "SecureString" - }, - { - "allOf": [ - { - "field": "Microsoft.DataFactory/factories/linkedservices/SqlServer.typeProperties.password", - "exists": "true" - }, - { - "field": "Microsoft.DataFactory/factories/linkedservices/SqlServer.typeProperties.password.type", - "exists": "false" - } - ] - }, - { - "field": "Microsoft.DataFactory/factories/linkedservices/AzureSqlDW.typeProperties.servicePrincipalKey.type", - "equals": "SecureString" - }, - { - "field": "Microsoft.DataFactory/factories/linkedservices/AzureSearch.typeProperties.key.type", - "equals": "SecureString" - }, - { - "allOf": [ - { - "field": "Microsoft.DataFactory/factories/linkedservices/AzureStorage.typeProperties.sasUri", - "exists": "true" - }, - { - "field": "Microsoft.DataFactory/factories/linkedservices/AzureStorage.typeProperties.sasUri.type", - "notEquals": "AzureKeyVaultSecret" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.DataFactory/factories/linkedservices/AzureBlobStorage.typeProperties.servicePrincipalKey", - "exists": "true" - }, - { - "field": "Microsoft.DataFactory/factories/linkedservices/AzureBlobStorage.typeProperties.servicePrincipalKey.type", - "notEquals": "AzureKeyVaultSecret" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.DataFactory/factories/linkedservices/AzureStorage.typeProperties.accountKey", - "exists": "true" - }, - { - "field": "Microsoft.DataFactory/factories/linkedservices/CosmosDb.typeProperties.accountKey.type", - "notEquals": "AzureKeyVaultSecret" - } - ] - }, - { - "field": "Microsoft.DataFactory/factories/linkedservices/typeProperties.encryptedCredential", - "exists": "true" - }, - { - "field": "Microsoft.DataFactory/factories/linkedservices/AmazonMWS.typeProperties.mwsAuthToken.type", - "equals": "SecureString" - }, - { - "field": "Microsoft.DataFactory/factories/linkedservices/AmazonMWS.typeProperties.secretKey.type", - "equals": "SecureString" - }, - { - "field": "Microsoft.DataFactory/factories/linkedservices/AmazonS3.typeProperties.secretAccessKey.type", - "equals": "SecureString" - }, - { - "allOf": [ - { - "field": "Microsoft.DataFactory/factories/linkedservices/Dynamics.typeProperties.servicePrincipalCredential", - "exists": "true" - }, - { - "field": "Microsoft.DataFactory/factories/linkedservices/Dynamics.typeProperties.servicePrincipalCredential.type", - "equals": "SecureString" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.DataFactory/factories/linkedservices/Hubspot.typeProperties.accessToken", - "exists": "true" - }, - { - "field": "Microsoft.DataFactory/factories/linkedservices/Hubspot.typeProperties.accessToken.type", - "equals": "SecureString" - } - ] - }, - { - "field": "Microsoft.DataFactory/factories/linkedservices/Odbc.typeProperties.credential.type", - "equals": "SecureString" - }, - { - "field": "Microsoft.DataFactory/factories/linkedservices/GoogleAdWords.typeProperties.developerToken.type", - "equals": "SecureString" - }, - { - "field": "Microsoft.DataFactory/factories/linkedservices/GoogleBigQuery.typeProperties.clientSecret.type", - "equals": "SecureString" - }, - { - "field": "Microsoft.DataFactory/factories/linkedservices/GoogleBigQuery.typeProperties.refreshToken.type", - "equals": "SecureString" - }, - { - "allOf": [ - { - "field": "Microsoft.DataFactory/factories/linkedservices/type", - "in": [ - "MongoDbAtlas", - "MongoDbV2" - ] - }, - { - "field": "Microsoft.DataFactory/factories/linkedservices/typeProperties.connectionString.type", - "notEquals": "AzureKeyVaultSecret" - } - ] - }, - { - "field": "Microsoft.DataFactory/factories/linkedservices/OData.typeProperties.servicePrincipalEmbeddedCert.type", - "equals": "SecureString" - }, - { - "field": "Microsoft.DataFactory/factories/linkedservices/OData.typeProperties.servicePrincipalEmbeddedCertPassword.type", - "equals": "SecureString" - }, - { - "field": "Microsoft.DataFactory/factories/linkedservices/Sftp.typeProperties.privateKeyContent.type", - "equals": "SecureString" - }, - { - "field": "Microsoft.DataFactory/factories/linkedservices/Sftp.typeProperties.passPhrase.type", - "equals": "SecureString" - }, - { - "field": "Microsoft.DataFactory/factories/linkedservices/Salesforce.typeProperties.securityToken.type", - "equals": "SecureString" - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Preview]: Configure ChangeTracking Extension for Linux virtual machine scale sets", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Configure Linux virtual machine scale sets to automatically install the ChangeTracking Extension to enable File Integrity Monitoring(FIM) in Azure Security Center. FIM examines operating system files, Windows registries, application software, Linux system files, and more, for changes that might indicate an attack. The extension can be installed in virtual machines and locations supported by Azure Monitor Agent.", - "metadata": { - "version": "1.0.0-preview", - "category": "Security Center", - "preview": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - }, - "listOfApplicableLocations": { - "type": "Array", - "metadata": { - "displayName": "Applicable Locations", - "description": "The list of locations where the policy should be applied.", - "strongType": "location" - }, - "allowedValues": [ - "australiasoutheast", - "australiaeast", - "brazilsouth", - "canadacentral", - "centralindia", - "centralus", - "eastasia", - "eastus2euap", - "eastus", - "eastus2", - "francecentral", - "japaneast", - "koreacentral", - "northcentralus", - "northeurope", - "norwayeast", - "southcentralus", - "southeastasia", - "switzerlandnorth", - "uaenorth", - "uksouth", - "westcentralus", - "westeurope", - "westus", - "westus2" - ], - "defaultValue": [ - "australiasoutheast", - "australiaeast", - "brazilsouth", - "canadacentral", - "centralindia", - "centralus", - "eastasia", - "eastus2euap", - "eastus", - "eastus2", - "francecentral", - "japaneast", - "koreacentral", - "northcentralus", - "northeurope", - "norwayeast", - "southcentralus", - "southeastasia", - "switzerlandnorth", - "uaenorth", - "uksouth", - "westcentralus", - "westeurope", - "westus", - "westus2" - ] - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachineScaleSets" - }, - { - "field": "location", - "in": "[parameters(\u0027listOfApplicableLocations\u0027)]" - }, - { - "anyOf": [ - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "RedHat" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "RHEL", - "RHEL-SAP-HANA" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "like": "6.*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "7*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "8*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "SUSE" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "SLES", - "SLES-HPC", - "SLES-HPC-Priority", - "SLES-SAP", - "SLES-SAP-BYOS", - "SLES-Priority", - "SLES-BYOS", - "SLES-SAPCAL", - "SLES-Standard" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "like": "15*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Canonical" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "UbuntuServer" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "like": "14.04*LTS" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "16.04*LTS" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "18.04*LTS" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Canonical" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "0001-com-ubuntu-server-focal" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "like": "20_04-lts*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Oracle" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Oracle-Linux" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "like": "6.*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "7.*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "7*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "8*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "OpenLogic" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "CentOS", - "Centos-LVM", - "CentOS-SRIOV" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "like": "6.*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "7*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "8*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloudera" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "cloudera-centos-os" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "7*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "credativ" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "debian" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "like": "8" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "9" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Debian" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "debian-10" - ] - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "10" - } - ] - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Compute/virtualMachineScaleSets/extensions", - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.Compute/virtualMachineScaleSets/extensions/type", - "equals": "ChangeTracking-Linux" - }, - { - "field": "Microsoft.Compute/virtualMachineScaleSets/extensions/publisher", - "equals": "Microsoft.Azure.ChangeTrackingAndInventory" - }, - { - "field": "Microsoft.Compute/virtualMachineScaleSets/extensions/provisioningState", - "equals": "Succeeded" - } - ] - }, - "deployment": { - "properties": { - "mode": "incremental", - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "vmName": { - "type": "string" - }, - "location": { - "type": "string" - } - }, - "variables": { - "vmExtensionName": "ChangeTracking-Linux", - "vmExtensionPublisher": "Microsoft.Azure.ChangeTrackingAndInventory", - "vmExtensionType": "ChangeTracking-Linux", - "vmExtensionTypeHandlerVersion": "1.0" - }, - "resources": [ - { - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/\u0027, variables(\u0027vmExtensionName\u0027))]", - "type": "Microsoft.Compute/virtualMachineScaleSets/extensions", - "location": "[parameters(\u0027location\u0027)]", - "apiVersion": "2019-03-01", - "properties": { - "publisher": "[variables(\u0027vmExtensionPublisher\u0027)]", - "type": "[variables(\u0027vmExtensionType\u0027)]", - "typeHandlerVersion": "[variables(\u0027vmExtensionTypeHandlerVersion\u0027)]", - "autoUpgradeMinorVersion": true, - "settings": {}, - "protectedSettings": {} - } - } - ] - }, - "parameters": { - "vmName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - } - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1240 - User-Installed Software", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Configuration Management control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1240" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Deploy prerequisites to audit Windows VMs configurations in \u0027Security Options - System objects\u0027", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: \u0027Security Options - System objects\u0027. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol", - "metadata": { - "version": "1.2.0-deprecated", - "category": "Guest Configuration", - "requiredProviders": [ - "Microsoft.GuestConfiguration" - ], - "deprecated": true - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "dsvm-windows" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - } - ] - }, - "then": { - "effect": "deployIfNotExists", - "details": { - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "AzureBaseline_SecurityOptionsSystemobjects", - "deployment": { - "properties": { - "mode": "incremental", - "parameters": { - "vmName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "type": { - "value": "[field(\u0027type\u0027)]" - }, - "configurationName": { - "value": "AzureBaseline_SecurityOptionsSystemobjects" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "vmName": { - "type": "string" - }, - "location": { - "type": "string" - }, - "type": { - "type": "string" - }, - "configurationName": { - "type": "string" - } - }, - "resources": [ - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027microsoft.hybridcompute/machines\u0027))]", - "apiVersion": "2018-11-20", - "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/Microsoft.GuestConfiguration/\u0027, parameters(\u0027configurationName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "guestConfiguration": { - "name": "[parameters(\u0027configurationName\u0027)]", - "version": "1.*" - } - } - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2018-11-20", - "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/Microsoft.GuestConfiguration/\u0027, parameters(\u0027configurationName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "guestConfiguration": { - "name": "[parameters(\u0027configurationName\u0027)]", - "version": "1.*" - } - } - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2019-07-01", - "type": "Microsoft.Compute/virtualMachines", - "identity": { - "type": "SystemAssigned" - }, - "name": "[parameters(\u0027vmName\u0027)]", - "location": "[parameters(\u0027location\u0027)]" - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2019-07-01", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/AzurePolicyforWindows\u0027)]", - "type": "Microsoft.Compute/virtualMachines/extensions", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "publisher": "Microsoft.GuestConfiguration", - "type": "ConfigurationforWindows", - "typeHandlerVersion": "1.1", - "autoUpgradeMinorVersion": true, - "settings": {}, - "protectedSettings": {} - }, - "dependsOn": [ - "[concat(\u0027Microsoft.Compute/virtualMachines/\u0027,parameters(\u0027vmName\u0027),\u0027/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/\u0027,parameters(\u0027configurationName\u0027))]" - ] - } - ] - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1666 - System And Information Integrity Policy And Procedures", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Information Integrity control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1666" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Deploy prerequisites to audit Windows VMs that do not have the specified applications installed", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines that do not have the specified applications installed. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol", - "metadata": { - "version": "1.2.0-deprecated", - "category": "Guest Configuration", - "requiredProviders": [ - "Microsoft.GuestConfiguration" - ], - "deprecated": true - }, - "parameters": { - "installedApplication": { - "type": "String", - "metadata": { - "displayName": "Application names (supports wildcards)", - "description": "A semicolon-separated list of the names of the applications that should be installed. e.g. \u0027Microsoft SQL Server 2014 (64-bit); Microsoft Visual Studio Code\u0027 or \u0027Microsoft SQL Server 2014*\u0027 (to match any application starting with \u0027Microsoft SQL Server 2014\u0027)" - } - } - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "dsvm-windows" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - } - ] - }, - "then": { - "effect": "deployIfNotExists", - "details": { - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "WhitelistedApplication", - "existenceCondition": { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash", - "equals": "[base64(concat(\u0027[InstalledApplication]bwhitelistedapp;Name\u0027, \u0027=\u0027, parameters(\u0027installedApplication\u0027)))]" - }, - "deployment": { - "properties": { - "mode": "incremental", - "parameters": { - "vmName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "type": { - "value": "[field(\u0027type\u0027)]" - }, - "configurationName": { - "value": "WhitelistedApplication" - }, - "installedApplication": { - "value": "[parameters(\u0027installedApplication\u0027)]" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "vmName": { - "type": "string" - }, - "location": { - "type": "string" - }, - "type": { - "type": "string" - }, - "configurationName": { - "type": "string" - }, - "installedApplication": { - "type": "string" - } - }, - "resources": [ - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027microsoft.hybridcompute/machines\u0027))]", - "apiVersion": "2018-11-20", - "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/Microsoft.GuestConfiguration/\u0027, parameters(\u0027configurationName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "guestConfiguration": { - "name": "[parameters(\u0027configurationName\u0027)]", - "version": "1.*", - "configurationParameter": [ - { - "name": "[InstalledApplication]bwhitelistedapp;Name", - "value": "[parameters(\u0027installedApplication\u0027)]" - } - ] - } - } - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2018-11-20", - "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/Microsoft.GuestConfiguration/\u0027, parameters(\u0027configurationName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "guestConfiguration": { - "name": "[parameters(\u0027configurationName\u0027)]", - "version": "1.*", - "configurationParameter": [ - { - "name": "[InstalledApplication]bwhitelistedapp;Name", - "value": "[parameters(\u0027installedApplication\u0027)]" - } - ] - } - } - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2019-07-01", - "type": "Microsoft.Compute/virtualMachines", - "identity": { - "type": "SystemAssigned" - }, - "name": "[parameters(\u0027vmName\u0027)]", - "location": "[parameters(\u0027location\u0027)]" - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2019-07-01", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/AzurePolicyforWindows\u0027)]", - "type": "Microsoft.Compute/virtualMachines/extensions", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "publisher": "Microsoft.GuestConfiguration", - "type": "ConfigurationforWindows", - "typeHandlerVersion": "1.1", - "autoUpgradeMinorVersion": true, - "settings": {}, - "protectedSettings": {} - }, - "dependsOn": [ - "[concat(\u0027Microsoft.Compute/virtualMachines/\u0027,parameters(\u0027vmName\u0027),\u0027/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/\u0027,parameters(\u0027configurationName\u0027))]" - ] - } - ] - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1347 - Identification And Authentication (Non-Org. Users) | Acceptance Of PIV Creds. From Other Agys.", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Identification and Authentication control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1347" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Configure Azure Defender for Kubernetes to be enabled", - "policyType": "BuiltIn", - "mode": "All", - "description": "Azure Defender for Kubernetes provides real-time threat protection for containerized environments and generates alerts for suspicious activities.", - "metadata": { - "version": "1.0.0-deprecated", - "category": "Security Center", - "deprecated": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Resources/subscriptions" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Security/pricings", - "name": "KubernetesService", - "deploymentScope": "subscription", - "existenceScope": "subscription", - "roleDefinitionIds": [ - "/providers/Microsoft.Authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "existenceCondition": { - "field": "Microsoft.Security/pricings/pricingTier", - "equals": "Standard" - }, - "deployment": { - "location": "westeurope", - "properties": { - "mode": "incremental", - "parameters": {}, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": {}, - "variables": {}, - "resources": [ - { - "type": "Microsoft.Security/pricings", - "apiVersion": "2018-06-01", - "name": "KubernetesService", - "properties": { - "pricingTier": "Standard" - } - } - ], - "outputs": {} - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1450 - Physical Access Authorizations", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Physical and Environmental Protection control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1450" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1184 - Configuration Change Control", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Configuration Management control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1184" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Preview]: Configure machines to receive a vulnerability assessment provider", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Azure Defender includes vulnerability scanning for your machines at no extra cost. You don\u0027t need a Qualys license or even a Qualys account - everything\u0027s handled seamlessly inside Security Center. When you enable this policy, Azure Defender automatically deploys the Qualys vulnerability assessment provider to all supported machines that don\u0027t already have it installed.", - "metadata": { - "category": "Security Center", - "preview": true, - "version": "3.0.0-preview" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - }, - "vaType": { - "type": "String", - "metadata": { - "displayName": "Vulnerability assessment provider type", - "description": "Select the vulnerability assessment solution to provision to machines." - }, - "allowedValues": [ - "default", - "mdeTvm" - ], - "defaultValue": "default" - } - }, - "policyRule": { - "if": { - "anyof": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "tags", - "notContainsKey": "MDFCSecurityConnector" - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Security/assessments", - "name": "00000000-0000-0000-0000-000000000000", - "evaluationDelay": "AfterProvisioningSuccess", - "existenceCondition": { - "field": "Microsoft.Security/assessments/status.code", - "in": [ - "NotApplicable", - "Healthy" - ] - }, - "deployment": { - "properties": { - "mode": "Incremental", - "template": { - "contentVersion": "1.0.0.0", - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "parameters": { - "vmName": { - "type": "String" - }, - "resourceType": { - "type": "string" - }, - "vaType": { - "type": "string" - } - }, - "variables": { - "resourceNameAndVaType": "[concat(parameters(\u0027vmName\u0027), \u0027/Microsoft.Security/\u0027, parameters(\u0027vaType\u0027))]" - }, - "resources": [ - { - "condition": "[equals(toLower(parameters(\u0027resourceType\u0027)), toLower(\u0027microsoft.compute/virtualmachines\u0027))]", - "type": "Microsoft.Compute/virtualMachines/providers/serverVulnerabilityAssessments", - "name": "[variables(\u0027resourceNameAndVaType\u0027)]", - "apiVersion": "2020-01-01" - }, - { - "condition": "[equals(toLower(parameters(\u0027resourceType\u0027)), toLower(\u0027microsoft.hybridcompute/machines\u0027))]", - "type": "Microsoft.HybridCompute/machines/providers/serverVulnerabilityAssessments", - "name": "[variables(\u0027resourceNameAndVaType\u0027)]", - "apiVersion": "2020-01-01" - } - ] - }, - "parameters": { - "vmName": { - "value": "[field(\u0027name\u0027)]" - }, - "resourceType": { - "value": "[field(\u0027type\u0027)]" - }, - "vaType": { - "value": "[parameters(\u0027vaType\u0027)]" - } - } - } - }, - "roleDefinitionIds": [ - "/providers/Microsoft.Authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ] - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1085 - Publicly Accessible Content", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Access Control control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1085" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1404 - Maintenance Tools", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Maintenance control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1404" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1695 - Information System Monitoring | Wireless Intrusion Detection", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Information Integrity control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1695" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Audit Windows machines that contain certificates expiring within the specified number of days", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if certificates in the specified store have an expiration date out of range for the number of days given as parameter. The policy also provides the option to only check for specific certificates or exclude specific certificates, and whether to report on expired certificates.", - "metadata": { - "category": "Guest Configuration", - "version": "2.0.0", - "requiredProviders": [ - "Microsoft.GuestConfiguration" - ], - "guestConfiguration": { - "name": "CertificateExpiration", - "version": "1.*", - "configurationParameter": { - "CertificateStorePath": "[CertificateStore]CertificateStore1;CertificateStorePath", - "ExpirationLimitInDays": "[CertificateStore]CertificateStore1;ExpirationLimitInDays", - "CertificateThumbprintsToInclude": "[CertificateStore]CertificateStore1;CertificateThumbprintsToInclude", - "CertificateThumbprintsToExclude": "[CertificateStore]CertificateStore1;CertificateThumbprintsToExclude", - "IncludeExpiredCertificates": "[CertificateStore]CertificateStore1;IncludeExpiredCertificates" - } - } - }, - "parameters": { - "IncludeArcMachines": { - "type": "String", - "metadata": { - "displayName": "Include Arc connected servers", - "description": "By selecting this option, you agree to be charged monthly per Arc connected machine.", - "portalReview": "true" - }, - "allowedValues": [ - "true", - "false" - ], - "defaultValue": "false" - }, - "CertificateStorePath": { - "type": "String", - "metadata": { - "displayName": "Certificate store path", - "description": "The path to the certificate store containing the certificates to check the expiration dates of. Default value is \u0027Cert:\u0027 which is the root certificate store path, so all certificates on the machine will be checked. Other example paths: \u0027Cert:\\LocalMachine\u0027, \u0027Cert:\\LocalMachine\\TrustedPublisher\u0027, \u0027Cert:\\CurrentUser\u0027" - }, - "defaultValue": "Cert:" - }, - "ExpirationLimitInDays": { - "type": "String", - "metadata": { - "displayName": "Expiration limit in days", - "description": "An integer indicating the number of days within which to check for certificates that are expiring. For example, if this value is 30, any certificate expiring within the next 30 days will cause this policy to be non-compliant." - }, - "defaultValue": "30" - }, - "CertificateThumbprintsToInclude": { - "type": "String", - "metadata": { - "displayName": "Certificate thumbprints to include", - "description": "A semicolon-separated list of certificate thumbprints to check under the specified path. If a value is not specified, all certificates under the certificate store path will be checked. If a value is specified, no certificates other than those with the thumbprints specified will be checked. e.g. THUMBPRINT1;THUMBPRINT2;THUMBPRINT3" - }, - "defaultValue": "" - }, - "CertificateThumbprintsToExclude": { - "type": "String", - "metadata": { - "displayName": "Certificate thumbprints to exclude", - "description": "A semicolon-separated list of certificate thumbprints to ignore. e.g. THUMBPRINT1;THUMBPRINT2;THUMBPRINT3" - }, - "defaultValue": "" - }, - "IncludeExpiredCertificates": { - "type": "String", - "metadata": { - "displayName": "Include expired certificates", - "description": "Must be \u0027true\u0027 or \u0027false\u0027. True indicates that any found certificates that have already expired will also make this policy non-compliant. False indicates that certificates that have expired will be be ignored." - }, - "allowedValues": [ - "true", - "false" - ], - "defaultValue": "false" - } - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "dsvm-win*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "value": "[parameters(\u0027IncludeArcMachines\u0027)]", - "equals": "true" - }, - { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.ConnectedVMwarevSphere/virtualMachines" - }, - { - "field": "Microsoft.ConnectedVMwarevSphere/virtualMachines/osProfile.osType", - "like": "windows*" - } - ] - } - ] - } - ] - } - ] - }, - "then": { - "effect": "auditIfNotExists", - "details": { - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "CertificateExpiration", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus", - "equals": "Compliant" - }, - { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash", - "equals": "[base64(concat(\u0027[CertificateStore]CertificateStore1;CertificateStorePath\u0027, \u0027=\u0027, parameters(\u0027CertificateStorePath\u0027), \u0027,\u0027, \u0027[CertificateStore]CertificateStore1;ExpirationLimitInDays\u0027, \u0027=\u0027, parameters(\u0027ExpirationLimitInDays\u0027), \u0027,\u0027, \u0027[CertificateStore]CertificateStore1;CertificateThumbprintsToInclude\u0027, \u0027=\u0027, parameters(\u0027CertificateThumbprintsToInclude\u0027), \u0027,\u0027, \u0027[CertificateStore]CertificateStore1;CertificateThumbprintsToExclude\u0027, \u0027=\u0027, parameters(\u0027CertificateThumbprintsToExclude\u0027), \u0027,\u0027, \u0027[CertificateStore]CertificateStore1;IncludeExpiredCertificates\u0027, \u0027=\u0027, parameters(\u0027IncludeExpiredCertificates\u0027)))]" - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Deploy prerequisites to audit Windows VMs if the Administrators group contains any of the specified members", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines in which the Administrators group contains any of the specified members. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol", - "metadata": { - "version": "1.2.0-deprecated", - "category": "Guest Configuration", - "requiredProviders": [ - "Microsoft.GuestConfiguration" - ], - "deprecated": true - }, - "parameters": { - "MembersToExclude": { - "type": "String", - "metadata": { - "displayName": "Members to exclude", - "description": "A semicolon-separated list of members that should be excluded in the Administrators local group. Ex: Administrator; myUser1; myUser2" - } - } - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "dsvm-windows" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - } - ] - }, - "then": { - "effect": "deployIfNotExists", - "details": { - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "AdministratorsGroupMembersToExclude", - "existenceCondition": { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash", - "equals": "[base64(concat(\u0027[LocalGroup]AdministratorsGroup;MembersToExclude\u0027, \u0027=\u0027, parameters(\u0027MembersToExclude\u0027)))]" - }, - "deployment": { - "properties": { - "mode": "incremental", - "parameters": { - "vmName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "type": { - "value": "[field(\u0027type\u0027)]" - }, - "configurationName": { - "value": "AdministratorsGroupMembersToExclude" - }, - "MembersToExclude": { - "value": "[parameters(\u0027MembersToExclude\u0027)]" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "vmName": { - "type": "string" - }, - "location": { - "type": "string" - }, - "type": { - "type": "string" - }, - "configurationName": { - "type": "string" - }, - "MembersToExclude": { - "type": "string" - } - }, - "resources": [ - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027microsoft.hybridcompute/machines\u0027))]", - "apiVersion": "2018-11-20", - "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/Microsoft.GuestConfiguration/\u0027, parameters(\u0027configurationName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "guestConfiguration": { - "name": "[parameters(\u0027configurationName\u0027)]", - "version": "1.*", - "configurationParameter": [ - { - "name": "[LocalGroup]AdministratorsGroup;MembersToExclude", - "value": "[parameters(\u0027MembersToExclude\u0027)]" - } - ] - } - } - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2018-11-20", - "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/Microsoft.GuestConfiguration/\u0027, parameters(\u0027configurationName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "guestConfiguration": { - "name": "[parameters(\u0027configurationName\u0027)]", - "version": "1.*", - "configurationParameter": [ - { - "name": "[LocalGroup]AdministratorsGroup;MembersToExclude", - "value": "[parameters(\u0027MembersToExclude\u0027)]" - } - ] - } - } - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2019-07-01", - "type": "Microsoft.Compute/virtualMachines", - "identity": { - "type": "SystemAssigned" - }, - "name": "[parameters(\u0027vmName\u0027)]", - "location": "[parameters(\u0027location\u0027)]" - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2019-07-01", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/AzurePolicyforWindows\u0027)]", - "type": "Microsoft.Compute/virtualMachines/extensions", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "publisher": "Microsoft.GuestConfiguration", - "type": "ConfigurationforWindows", - "typeHandlerVersion": "1.1", - "autoUpgradeMinorVersion": true, - "settings": {}, - "protectedSettings": {} - }, - "dependsOn": [ - "[concat(\u0027Microsoft.Compute/virtualMachines/\u0027,parameters(\u0027vmName\u0027),\u0027/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/\u0027,parameters(\u0027configurationName\u0027))]" - ] - } - ] - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Configure Cognitive Services accounts to disable local authentication methods", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Disable local authentication methods so that your Cognitive Services accounts require Azure Active Directory identities exclusively for authentication. Learn more at: https://aka.ms/cs/auth.", - "metadata": { - "version": "1.0.0", - "category": "Cognitive Services" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Modify", - "Disabled" - ], - "defaultValue": "Modify" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.CognitiveServices/accounts" - }, - { - "field": "Microsoft.CognitiveServices/accounts/disableLocalAuth", - "notEquals": true - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "conflictEffect": "audit", - "operations": [ - { - "condition": "[greaterOrEquals(requestContext().apiVersion, \u00272021-04-30\u0027)]", - "operation": "addOrReplace", - "field": "Microsoft.CognitiveServices/accounts/disableLocalAuth", - "value": true - } - ] - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Preview]: Configure supported Windows machines to automatically install the Azure Security agent", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Configure supported Windows machines to automatically install the Azure Security agent. Security Center collects events from the agent and uses them to provide security alerts and tailored hardening tasks (recommendations). Target virtual machines must be in a supported location.", - "metadata": { - "category": "Security Center", - "version": "4.0.0-preview", - "preview": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "in": [ - "2008-R2-SP1", - "2008-R2-SP1-smalldisk", - "2012-Datacenter", - "2012-Datacenter-smalldisk", - "2012-R2-Datacenter", - "2012-R2-Datacenter-smalldisk", - "2016-Datacenter", - "2016-Datacenter-Server-Core", - "2016-Datacenter-Server-Core-smalldisk", - "2016-Datacenter-smalldisk", - "2016-Datacenter-with-Containers", - "2016-Datacenter-with-RDSH", - "2019-Datacenter", - "2019-Datacenter-Core", - "2019-Datacenter-Core-smalldisk", - "2019-Datacenter-Core-with-Containers", - "2019-Datacenter-Core-with-Containers-smalldisk", - "2019-Datacenter-smalldisk", - "2019-Datacenter-with-Containers", - "2019-Datacenter-with-Containers-smalldisk", - "2019-Datacenter-zhcn" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServerSemiAnnual" - }, - { - "field": "Microsoft.Compute/imageSKU", - "in": [ - "Datacenter-Core-1709-smalldisk", - "Datacenter-Core-1709-with-Containers-smalldisk", - "Datacenter-Core-1803-with-Containers-smalldisk" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServerHPCPack" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServerHPCPack" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2019" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2019-BYOL" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2016" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2016-BYOL" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2012R2" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2012R2-BYOL" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftRServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "MLServer-WS2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftVisualStudio" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "VisualStudio", - "Windows" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftDynamicsAX" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Dynamics" - }, - { - "field": "Microsoft.Compute/imageSKU", - "equals": "Pre-Req-AX7-Onebox-U8" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "windows-data-science-vm" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsDesktop" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Windows-10" - } - ] - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Compute/virtualMachines/extensions", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.Compute/virtualMachines/extensions/type", - "equals": "AzureSecurityWindowsAgent" - }, - { - "field": "Microsoft.Compute/virtualMachines/extensions/Publisher", - "equals": "Microsoft.Azure.Security.Monitoring" - }, - { - "field": "Microsoft.Compute/virtualMachines/extensions/provisioningState", - "in": [ - "Succeeded", - "Provisioning succeeded" - ] - } - ] - }, - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "deployment": { - "properties": { - "mode": "incremental", - "parameters": { - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "vmName": { - "value": "[field(\u0027name\u0027)]" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "location": { - "type": "string" - }, - "vmName": { - "type": "string" - } - }, - "variables": {}, - "resources": [ - { - "type": "Microsoft.Compute/virtualMachines/extensions", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/\u0027, \u0027AzureSecurityWindowsAgent\u0027)]", - "apiVersion": "2019-03-01", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "publisher": "Microsoft.Azure.Security.Monitoring", - "type": "AzureSecurityWindowsAgent", - "typeHandlerVersion": "1.0", - "autoUpgradeMinorVersion": "true", - "settings": {}, - "protectedsettings": {} - } - } - ] - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1157 - Plan Of Action And Milestones", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Security Assessment and Authorization control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1157" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1491 - Security Planning Policy And Procedures", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Planning control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1491" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1564 - System Development Life Cycle", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Services Acquisition control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1564" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Log Analytics agent should be installed on your Cloud Services (extended support) role instances", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Security Center collects data from your Cloud Services (extended support) role instances to monitor for security vulnerabilities and threats.", - "metadata": { - "version": "2.0.0", - "category": "Security Center" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Compute/cloudServices" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Security/assessments", - "name": "00000000-0000-0000-0000-000000000000", - "existenceCondition": { - "field": "Microsoft.Security/assessments/status.code", - "in": [ - "NotApplicable", - "Healthy" - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Deploy prerequisites to audit Windows VMs that do not have a minimum password age of 1 day", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines that do not have a minimum password age of 1 day. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol", - "metadata": { - "version": "2.2.0-deprecated", - "category": "Guest Configuration", - "requiredProviders": [ - "Microsoft.GuestConfiguration" - ], - "deprecated": true - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "dsvm-windows" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - } - ] - }, - "then": { - "effect": "deployIfNotExists", - "details": { - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "MinimumPasswordAge", - "deployment": { - "properties": { - "mode": "incremental", - "parameters": { - "vmName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "type": { - "value": "[field(\u0027type\u0027)]" - }, - "configurationName": { - "value": "MinimumPasswordAge" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "vmName": { - "type": "string" - }, - "location": { - "type": "string" - }, - "type": { - "type": "string" - }, - "configurationName": { - "type": "string" - } - }, - "resources": [ - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027microsoft.hybridcompute/machines\u0027))]", - "apiVersion": "2018-11-20", - "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/Microsoft.GuestConfiguration/\u0027, parameters(\u0027configurationName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "guestConfiguration": { - "name": "[parameters(\u0027configurationName\u0027)]", - "version": "1.*" - } - } - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2018-11-20", - "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/Microsoft.GuestConfiguration/\u0027, parameters(\u0027configurationName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "guestConfiguration": { - "name": "[parameters(\u0027configurationName\u0027)]", - "version": "1.*" - } - } - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2019-07-01", - "type": "Microsoft.Compute/virtualMachines", - "identity": { - "type": "SystemAssigned" - }, - "name": "[parameters(\u0027vmName\u0027)]", - "location": "[parameters(\u0027location\u0027)]" - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2019-07-01", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/AzurePolicyforWindows\u0027)]", - "type": "Microsoft.Compute/virtualMachines/extensions", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "publisher": "Microsoft.GuestConfiguration", - "type": "ConfigurationforWindows", - "typeHandlerVersion": "1.1", - "autoUpgradeMinorVersion": true, - "settings": {}, - "protectedSettings": {} - }, - "dependsOn": [ - "[concat(\u0027Microsoft.Compute/virtualMachines/\u0027,parameters(\u0027vmName\u0027),\u0027/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/\u0027,parameters(\u0027configurationName\u0027))]" - ] - } - ] - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Video Analyzer accounts should use customer-managed keys to encrypt data at rest", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Use customer-managed keys to manage the encryption at rest of your Video Analyzer accounts. By default, customer data is encrypted with service-managed keys, but customer-managed keys are commonly required to meet regulatory compliance standards. Customer-managed keys enable the data to be encrypted with an Azure Key Vault key created and owned by you. You have full control and responsibility for the key lifecycle, including rotation and management. Learn more at https://aka.ms/videoanalyzerscmkdocs.", - "metadata": { - "version": "1.0.0", - "category": "Video Analyzers" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Media/videoanalyzers" - }, - { - "field": "Microsoft.Media/videoanalyzers/encryption.type", - "notEquals": "CustomerKey" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1662 - Fail In Known State", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Communications Protection control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1662" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1684 - Information System Monitoring", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Information Integrity control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1684" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Azure NetApp Files Volumes of type NFSv4.1 should use Kerberos data integrity or data privacy", - "policyType": "BuiltIn", - "mode": "All", - "description": "Ensure that at least either Kerberos integrity (krb5i) or Kerberos privacy (krb5p) is selected to ensure data integrity and data privacy.", - "metadata": { - "version": "1.0.0", - "category": "Storage" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.NetApp/netAppAccounts/capacityPools/volumes" - }, - { - "count": { - "field": "Microsoft.NetApp/netAppAccounts/capacityPools/volumes/protocolTypes[*]", - "where": { - "field": "Microsoft.NetApp/netAppAccounts/capacityPools/volumes/protocolTypes[*]", - "equals": "NFSv4.1" - } - }, - "greater": 0 - }, - { - "anyOf": [ - { - "field": "Microsoft.NetApp/netAppAccounts/capacityPools/volumes/kerberosEnabled", - "exists": "false" - }, - { - "field": "Microsoft.NetApp/netAppAccounts/capacityPools/volumes/kerberosEnabled", - "equals": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.NetApp/netAppAccounts/capacityPools/volumes/kerberosEnabled", - "equals": "true" - }, - { - "count": { - "field": "Microsoft.NetApp/netAppAccounts/capacityPools/volumes/exportPolicy.rules[*]", - "where": { - "anyOf": [ - { - "allOf": [ - { - "field": "Microsoft.NetApp/netAppAccounts/capacityPools/volumes/exportPolicy.rules[*].kerberos5iReadWrite", - "equals": "false" - }, - { - "field": "Microsoft.NetApp/netAppAccounts/capacityPools/volumes/exportPolicy.rules[*].kerberos5iReadOnly", - "equals": "false" - }, - { - "field": "Microsoft.NetApp/netAppAccounts/capacityPools/volumes/exportPolicy.rules[*].kerberos5pReadWrite", - "equals": "false" - }, - { - "field": "Microsoft.NetApp/netAppAccounts/capacityPools/volumes/exportPolicy.rules[*].kerberos5pReadOnly", - "equals": "false" - } - ] - }, - { - "field": "Microsoft.NetApp/netAppAccounts/capacityPools/volumes/exportPolicy.rules[*].kerberos5ReadOnly", - "equals": "true" - }, - { - "field": "Microsoft.NetApp/netAppAccounts/capacityPools/volumes/exportPolicy.rules[*].kerberos5ReadWrite", - "equals": "true" - } - ] - } - }, - "greater": 0 - } - ] - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Show audit results from Windows VMs that do not have the specified Windows PowerShell modules installed", - "policyType": "BuiltIn", - "mode": "All", - "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines that do not have the specified Windows PowerShell modules installed. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol", - "metadata": { - "version": "1.0.0-deprecated", - "category": "Guest Configuration", - "deprecated": true - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "dsvm-windows" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - } - ] - }, - "then": { - "effect": "auditIfNotExists", - "details": { - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "WindowsPowerShellModules", - "existenceCondition": { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus", - "equals": "Compliant" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1103 - Audit Events", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Audit and Accountability control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1103" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1007 - Account Management", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Access Control control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1007" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Azure Batch pools should have disk encryption enabled", - "policyType": "BuiltIn", - "mode": "All", - "description": "Enabling Azure Batch disk encryption ensures that data is always encrypted at rest on your Azure Batch compute node. Learn more about disk encryption in Batch at https://docs.microsoft.com/azure/batch/disk-encryption.", - "metadata": { - "version": "1.0.0", - "category": "Batch" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Disabled", - "Deny" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Batch/batchAccounts/pools" - }, - { - "count": { - "field": "Microsoft.Batch/batchAccounts/pools/deploymentConfiguration.virtualMachineConfiguration.diskEncryptionConfiguration.targets[*]", - "where": { - "field": "Microsoft.Batch/batchAccounts/pools/deploymentConfiguration.virtualMachineConfiguration.diskEncryptionConfiguration.targets[*]", - "contains": "TemporaryDisk" - } - }, - "less": 1 - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1349 - Identification And Authentication (Non-Org. Users) | Use Of FICAM-Approved Products", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Identification and Authentication control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1349" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Deploy associations for a managed application", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Deploys an association resource that associates selected resource types to the specified managed application. This policy deployment does not support nested resource types.", - "metadata": { - "version": "1.0.0", - "category": "Managed Application" - }, - "parameters": { - "targetManagedApplicationId": { - "type": "String", - "metadata": { - "displayName": "Managed application ID", - "description": "Resource ID of the managed application to which resources need to be associated." - } - }, - "resourceTypesToAssociate": { - "type": "Array", - "metadata": { - "displayName": "Resource types to associate", - "description": "The list of resource types to be associated to the managed application.", - "strongType": "resourceTypes" - } - }, - "associationNamePrefix": { - "type": "String", - "metadata": { - "displayName": "Association name prefix", - "description": "Prefix to be added to the name of the association resource being created." - }, - "defaultValue": "DeployedByPolicy" - } - }, - "policyRule": { - "if": { - "field": "type", - "in": "[parameters(\u0027resourceTypesToAssociate\u0027)]" - }, - "then": { - "effect": "deployIfNotExists", - "details": { - "type": "Microsoft.CustomProviders/Associations", - "name": "[concat(parameters(\u0027associationNamePrefix\u0027), \u0027-\u0027, uniqueString(parameters(\u0027targetManagedApplicationId\u0027)))]", - "roleDefinitionIds": [ - "/providers/Microsoft.Authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "deployment": { - "properties": { - "mode": "incremental", - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "associatedResourceName": { - "type": "string" - }, - "resourceTypesToAssociate": { - "type": "string" - }, - "targetManagedApplicationId": { - "type": "string" - }, - "associationNamePrefix": { - "type": "string" - } - }, - "variables": { - "resourceType": "[concat(parameters(\u0027resourceTypesToAssociate\u0027), \u0027/providers/associations\u0027)]", - "resourceName": "[concat(parameters(\u0027associatedResourceName\u0027), \u0027/microsoft.customproviders/\u0027, parameters(\u0027associationNamePrefix\u0027), \u0027-\u0027, uniqueString(parameters(\u0027targetManagedApplicationId\u0027)))]" - }, - "resources": [ - { - "type": "Microsoft.Resources/deployments", - "apiVersion": "2017-05-10", - "name": "[concat(deployment().Name, \u0027-2\u0027)]", - "properties": { - "mode": "Incremental", - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "resources": [ - { - "type": "[variables(\u0027resourceType\u0027)]", - "name": "[variables(\u0027resourceName\u0027)]", - "apiVersion": "2018-09-01-preview", - "properties": { - "targetResourceId": "[parameters(\u0027targetManagedApplicationId\u0027)]" - } - } - ] - } - } - } - ] - }, - "parameters": { - "resourceTypesToAssociate": { - "value": "[field(\u0027type\u0027)]" - }, - "associatedResourceName": { - "value": "[field(\u0027name\u0027)]" - }, - "targetManagedApplicationId": { - "value": "[parameters(\u0027targetManagedApplicationId\u0027)]" - }, - "associationNamePrefix": { - "value": "[parameters(\u0027associationNamePrefix\u0027)]" - } - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Preview]: Configure system-assigned managed identity to enable Azure Monitor assignments on VMs", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Configure system-assigned managed identity to virtual machines hosted in Azure that are supported by Azure Monitor and do not have a system-assigned managed identity. A system-assigned managed identity is a prerequisite for all Azure Monitor assignments and must be added to machines before using any Azure Monitor extension. Target virtual machines must be in a supported location.", - "metadata": { - "category": "Monitoring", - "version": "4.0.0-preview", - "preview": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Modify", - "Disabled" - ], - "defaultValue": "Modify" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "anyOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachineScaleSets" - } - ] - }, - { - "field": "location", - "in": [ - "australiacentral", - "australiaeast", - "australiasoutheast", - "brazilsouth", - "canadacentral", - "canadaeast", - "centralindia", - "centralus", - "eastasia", - "eastus2euap", - "eastus", - "eastus2", - "francecentral", - "germanywestcentral", - "japaneast", - "japanwest", - "jioindiawest", - "koreacentral", - "koreasouth", - "northcentralus", - "northeurope", - "norwayeast", - "southafricanorth", - "southcentralus", - "southeastasia", - "southindia", - "switzerlandnorth", - "uaenorth", - "uksouth", - "ukwest", - "westcentralus", - "westeurope", - "westindia", - "westus", - "westus2" - ] - }, - { - "anyOf": [ - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "RedHat" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "RHEL", - "RHEL-SAP-HANA" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSku", - "like": "6*" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "7*" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "8*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "SUSE" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "SLES", - "SLES-HPC", - "SLES-HPC-Priority", - "SLES-SAP", - "SLES-SAP-BYOS", - "SLES-Priority", - "SLES-BYOS", - "SLES-SAPCAL", - "SLES-Standard" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSku", - "like": "12*" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "15*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Canonical" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "UbuntuServer" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSku", - "like": "14.04*LTS" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "16.04*LTS" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "18.04*LTS" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Canonical" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "0001-com-ubuntu-server-focal" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSku", - "like": "20_04-lts*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Oracle" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Oracle-Linux" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSku", - "like": "6*" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "7*" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "8*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "OpenLogic" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "CentOS", - "Centos-LVM", - "CentOS-SRIOV" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSku", - "like": "6*" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "7*" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "8*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloudera" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "cloudera-centos-os" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "7*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "credativ" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "debian" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSku", - "like": "8" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "9" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Debian" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "debian-10" - ] - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "10" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServer" - }, - { - "field": "Microsoft.Compute/imageSku", - "in": [ - "2008-R2-SP1", - "2008-R2-SP1-smalldisk", - "2012-Datacenter", - "2012-Datacenter-smalldisk", - "2012-R2-Datacenter", - "2012-R2-Datacenter-smalldisk", - "2016-Datacenter", - "2016-Datacenter-Server-Core", - "2016-Datacenter-Server-Core-smalldisk", - "2016-Datacenter-smalldisk", - "2016-Datacenter-with-Containers", - "2016-Datacenter-with-RDSH", - "2019-Datacenter", - "2019-Datacenter-Core", - "2019-Datacenter-Core-smalldisk", - "2019-Datacenter-Core-with-Containers", - "2019-Datacenter-Core-with-Containers-smalldisk", - "2019-Datacenter-smalldisk", - "2019-Datacenter-with-Containers", - "2019-Datacenter-with-Containers-smalldisk", - "2019-Datacenter-zhcn" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServerSemiAnnual" - }, - { - "field": "Microsoft.Compute/imageSku", - "in": [ - "Datacenter-Core-1709-smalldisk", - "Datacenter-Core-1709-with-Containers-smalldisk", - "Datacenter-Core-1803-with-Containers-smalldisk" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServerHPCPack" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServerHPCPack" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2019" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2019-BYOL" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2016" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2016-BYOL" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2012R2" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2012R2-BYOL" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftRServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "MLServer-WS2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftVisualStudio" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "VisualStudio", - "Windows" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftDynamicsAX" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Dynamics" - }, - { - "field": "Microsoft.Compute/imageSku", - "equals": "Pre-Req-AX7-Onebox-U8" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "windows-data-science-vm" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsDesktop" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Windows-10" - } - ] - }, - { - "field": "Microsoft.Compute/virtualMachines/securityProfile.uefiSettings", - "exists": "true" - } - ] - }, - { - "value": "[requestContext().apiVersion]", - "greaterOrEquals": "2018-10-01" - }, - { - "field": "identity.type", - "notContains": "SystemAssigned" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000", - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000", - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "operations": [ - { - "operation": "addOrReplace", - "field": "identity.type", - "value": "[if(contains(field(\u0027identity.type\u0027), \u0027UserAssigned\u0027), concat(field(\u0027identity.type\u0027), \u0027,SystemAssigned\u0027), \u0027SystemAssigned\u0027)]" - } - ] - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Transparent Data Encryption on SQL databases should be enabled", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Transparent data encryption should be enabled to protect data-at-rest and meet compliance requirements", - "metadata": { - "version": "2.0.0", - "category": "SQL" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Sql/servers/databases" - }, - { - "field": "name", - "notEquals": "master" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Sql/servers/databases/transparentDataEncryption", - "name": "current", - "existenceCondition": { - "anyOf": [ - { - "field": "Microsoft.Sql/transparentDataEncryption.status", - "equals": "enabled" - }, - { - "field": "Microsoft.Sql/servers/databases/transparentDataEncryption/state", - "equals": "enabled" - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/17k78e20-9358-41c9-923c-fb736d382a12", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "17k78e20-9358-41c9-923c-fb736d382a12" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1325 - Authenticator Management", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Identification and Authentication control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1325" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1480 - Temperature And Humidity Controls", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Physical and Environmental Protection control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1480" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "PostgreSQL servers should use customer-managed keys to encrypt data at rest", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Use customer-managed keys to manage the encryption at rest of your PostgreSQL servers. By default, the data is encrypted at rest with service-managed keys, but customer-managed keys are commonly required to meet regulatory compliance standards. Customer-managed keys enable the data to be encrypted with an Azure Key Vault key created and owned by you. You have full control and responsibility for the key lifecycle, including rotation and management.", - "metadata": { - "version": "1.0.4", - "category": "SQL" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.DBforPostgreSQL/servers" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.DBforPostgreSQL/servers/keys", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.DBforPostgreSQL/servers/keys/serverKeyType", - "equals": "AzureKeyVault" - }, - { - "field": "Microsoft.DBforPostgreSQL/servers/keys/uri", - "notEquals": "" - }, - { - "field": "Microsoft.DBforPostgreSQL/servers/keys/uri", - "exists": "true" - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1369 - Incident Monitoring", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Incident Response control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1369" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Application Insights components should block non-Azure Active Directory based ingestion.", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Enforcing log ingestion to require Azure Active Directory authentication prevents unauthenticated logs from an attacker which could lead to incorrect status, false alerts, and incorrect logs stored in the system.", - "metadata": { - "version": "1.0.0", - "category": "Monitoring" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Deny", - "Audit", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Insights/components" - }, - { - "field": "Microsoft.Insights/components/DisableLocalAuth", - "notEquals": "true" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1269 - Alternate Storage Site | Separation From Primary Site", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Contingency Planning control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1269" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Windows machines should meet requirements for \u0027System Audit Policies - Logon-Logoff\u0027", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Windows machines should have the specified Group Policy settings in the category \u0027System Audit Policies - Logon-Logoff\u0027 for auditing IPSec, network policy, claims, account lockout, group membership, and logon/logoff events. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.", - "metadata": { - "category": "Guest Configuration", - "version": "3.0.0", - "requiredProviders": [ - "Microsoft.GuestConfiguration" - ], - "guestConfiguration": { - "name": "AzureBaseline_SystemAuditPoliciesLogonLogoff", - "version": "1.*", - "configurationParameter": { - "AuditGroupMembership": "Audit Group Membership;ExpectedValue" - } - } - }, - "parameters": { - "IncludeArcMachines": { - "type": "String", - "metadata": { - "displayName": "Include Arc connected servers", - "description": "By selecting this option, you agree to be charged monthly per Arc connected machine.", - "portalReview": "true" - }, - "allowedValues": [ - "true", - "false" - ], - "defaultValue": "false" - }, - "AuditGroupMembership": { - "type": "String", - "metadata": { - "displayName": "Audit Group Membership", - "description": "Specifies whether audit events are generated when group memberships are enumerated on the client computer." - }, - "allowedValues": [ - "No Auditing", - "Success", - "Failure", - "Success and Failure" - ], - "defaultValue": "Success" - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of this policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "dsvm-win*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "value": "[parameters(\u0027IncludeArcMachines\u0027)]", - "equals": "true" - }, - { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.ConnectedVMwarevSphere/virtualMachines" - }, - { - "field": "Microsoft.ConnectedVMwarevSphere/virtualMachines/osProfile.osType", - "like": "windows*" - } - ] - } - ] - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "AzureBaseline_SystemAuditPoliciesLogonLogoff", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus", - "equals": "Compliant" - }, - { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash", - "equals": "[base64(concat(\u0027Audit Group Membership;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027AuditGroupMembership\u0027)))]" - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Preview]: Azure Key Vault Managed HSM should disable public network access", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Disable public network access for your Azure Key Vault Managed HSM so that it\u0027s not accessible over the public internet. This can reduce data leakage risks. Learn more at: https://docs.microsoft.com/azure/key-vault/managed-hsm/private-link#allow-trusted-services-to-access-managed-hsm.", - "metadata": { - "version": "1.0.0-preview", - "category": "Key Vault", - "preview": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.KeyVault/managedHSMs" - }, - { - "field": "Microsoft.KeyVault/managedHSMs/createMode", - "notEquals": "recover" - }, - { - "field": "Microsoft.KeyVault/managedHSMs/networkAcls.defaultAction", - "notEquals": "Deny" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1071 - Wireless Access | Restrict Configurations By Users", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Access Control control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1071" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Azure Monitor log profile should collect logs for categories \u0027write,\u0027 \u0027delete,\u0027 and \u0027action\u0027", - "policyType": "BuiltIn", - "mode": "All", - "description": "This policy ensures that a log profile collects logs for categories \u0027write,\u0027 \u0027delete,\u0027 and \u0027action\u0027", - "metadata": { - "version": "1.0.0", - "category": "Monitoring" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Resources/subscriptions" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Insights/logprofiles", - "existenceCondition": { - "allOf": [ - { - "not": { - "field": "Microsoft.Insights/logProfiles/categories[*]", - "notEquals": "Write" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/categories[*]", - "notEquals": "Delete" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/categories[*]", - "notEquals": "Action" - } - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Access to App Services should be restricted", - "policyType": "BuiltIn", - "mode": "All", - "description": "Azure security center has discovered that the networking configuration of some of your app services are overly permissive and allow inbound traffic from ranges that are too broad", - "metadata": { - "version": "1.0.0-deprecated", - "category": "Security Center", - "deprecated": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "Disabled" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Web/sites" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Security/complianceResults", - "name": "restrictAccessToAppServices", - "existenceCondition": { - "field": "Microsoft.Security/complianceResults/resourceStatus", - "in": [ - "OffByPolicy", - "Healthy" - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Azure Event Grid topics should disable public network access", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Disabling public network access improves security by ensuring that the resource isn\u0027t exposed on the public internet. You can limit exposure of your resources by creating private endpoints instead. Learn more at: https://aka.ms/privateendpoints.", - "metadata": { - "version": "1.0.0", - "category": "Event Grid" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.EventGrid/topics" - }, - { - "field": "kind", - "notEquals": "AzureArc" - }, - { - "field": "Microsoft.EventGrid/topics/publicNetworkAccess", - "notEquals": "Disabled" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Linux virtual machines should have Azure Monitor Agent installed", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Linux virtual machines should be monitored and secured through the deployed Azure Monitor Agent. The Azure Monitor Agent collects telemetry data from the guest OS. This policy will audit virtual machines with supported OS images in supported regions. Learn more: https://aka.ms/AMAOverview.", - "metadata": { - "version": "1.0.0", - "category": "Monitoring" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy." - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - }, - "listOfLinuxImageIdToInclude": { - "type": "Array", - "metadata": { - "displayName": "Additional Virtual Machine Images", - "description": "List of virtual machine images that have supported Linux OS to add to scope. Example values: \u0027/subscriptions/\u003CsubscriptionId\u003E/resourceGroups/YourResourceGroup/providers/Microsoft.Compute/images/ContosoStdImage\u0027" - }, - "defaultValue": [] - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "field": "location", - "in": [ - "australiacentral", - "australiaeast", - "australiasoutheast", - "brazilsouth", - "canadacentral", - "canadaeast", - "centralindia", - "centralus", - "eastasia", - "eastus2euap", - "eastus", - "eastus2", - "francecentral", - "germanywestcentral", - "japaneast", - "japanwest", - "jioindiawest", - "koreacentral", - "koreasouth", - "northcentralus", - "northeurope", - "norwayeast", - "southafricanorth", - "southcentralus", - "southeastasia", - "southindia", - "switzerlandnorth", - "uaenorth", - "uksouth", - "ukwest", - "westcentralus", - "westeurope", - "westindia", - "westus", - "westus2" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageId", - "in": "[parameters(\u0027listOfLinuxImageIdToInclude\u0027)]" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "RedHat" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "RHEL", - "RHEL-SAP-HANA" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSku", - "like": "6*" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "7*" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "8*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "SUSE" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "SLES", - "SLES-HPC", - "SLES-HPC-Priority", - "SLES-SAP", - "SLES-SAP-BYOS", - "SLES-Priority", - "SLES-BYOS", - "SLES-SAPCAL", - "SLES-Standard" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSku", - "like": "12*" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "15*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Canonical" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "UbuntuServer" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSku", - "like": "14.04*LTS" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "16.04*LTS" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "18.04*LTS" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Canonical" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "0001-com-ubuntu-server-focal" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSku", - "like": "20_04-lts*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Oracle" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Oracle-Linux" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSku", - "like": "6*" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "7*" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "8*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "OpenLogic" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "CentOS", - "Centos-LVM", - "CentOS-SRIOV" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSku", - "like": "6*" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "7*" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "8*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloudera" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "cloudera-centos-os" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "7*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "credativ" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "debian" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSku", - "like": "8" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "9" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Debian" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "debian-10" - ] - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "10" - } - ] - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Compute/virtualMachines/extensions", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.Compute/virtualMachines/extensions/type", - "equals": "AzureMonitorLinuxAgent" - }, - { - "field": "Microsoft.Compute/virtualMachines/extensions/publisher", - "equals": "Microsoft.Azure.Monitor" - }, - { - "field": "Microsoft.Compute/virtualMachines/extensions/provisioningState", - "equals": "Succeeded" - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Vulnerability assessment should be enabled on SQL Managed Instance", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Audit each SQL Managed Instance which doesn\u0027t have recurring vulnerability assessment scans enabled. Vulnerability assessment can discover, track, and help you remediate potential database vulnerabilities.", - "metadata": { - "version": "1.0.1", - "category": "SQL" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Sql/managedInstances" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Sql/managedInstances/vulnerabilityAssessments", - "name": "default", - "existenceCondition": { - "field": "Microsoft.Sql/managedInstances/vulnerabilityAssessments/recurringScans.isEnabled", - "equals": "True" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Public network access on Azure SQL Database should be disabled", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Disabling the public network access property improves security by ensuring your Azure SQL Database can only be accessed from a private endpoint. This configuration denies all logins that match IP or virtual network based firewall rules.", - "metadata": { - "version": "1.1.0", - "category": "SQL" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Sql/servers" - }, - { - "field": "Microsoft.Sql/servers/publicNetworkAccess", - "notEquals": "Disabled" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Configure Azure Web PubSub Service with private endpoints", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Private endpoints connect your virtual networks to Azure services without a public IP address at the source or destination. By mapping private endpoints to Azure Web PubSub service, you can reduce data leakage risks. Learn more about private links at: https://aka.ms/awps/privatelink. ", - "metadata": { - "version": "1.0.0", - "category": "Web PubSub" - }, - "parameters": { - "privateEndpointSubnetId": { - "type": "String", - "metadata": { - "displayName": "Private Endpoint Subnet ID", - "description": "A subnet with private endpoint network policies disabled.", - "strongType": "Microsoft.Network/virtualNetworks/subnets" - } - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.SignalRService/webPubSub" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.SignalRService/webPubSub/privateEndpointConnections", - "existenceCondition": { - "field": "Microsoft.SignalRService/webPubSub/privateEndpointConnections/privateLinkServiceConnectionState.status", - "equals": "Approved" - }, - "roleDefinitionIds": [ - "/providers/Microsoft.Authorization/roleDefinitions/00000000-0000-0000-0000-000000000000", - "/providers/Microsoft.Authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "deployment": { - "properties": { - "mode": "incremental", - "parameters": { - "name": { - "value": "[field(\u0027name\u0027)]" - }, - "serviceId": { - "value": "[field(\u0027id\u0027)]" - }, - "privateEndpointSubnetId": { - "value": "[parameters(\u0027privateEndpointSubnetId\u0027)]" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "name": { - "type": "string" - }, - "serviceId": { - "type": "string" - }, - "privateEndpointSubnetId": { - "type": "string" - } - }, - "variables": { - "privateEndpointName": "[concat(\u0027pe-\u0027,substring(parameters(\u0027name\u0027),0,min(length(parameters(\u0027name\u0027)),50)),\u0027-\u0027,uniquestring(deployment().name))]" - }, - "resources": [ - { - "type": "Microsoft.Resources/deployments", - "name": "[variables(\u0027privateEndpointName\u0027)]", - "apiVersion": "2020-06-01", - "properties": { - "mode": "Incremental", - "expressionEvaluationOptions": { - "scope": "inner" - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "serviceId": { - "type": "string" - }, - "privateEndpointSubnetId": { - "type": "string" - }, - "subnetLocation": { - "type": "string" - } - }, - "variables": { - "privateEndpointName": "[deployment().name]" - }, - "resources": [ - { - "name": "[variables(\u0027privateEndpointName\u0027)]", - "type": "Microsoft.Network/privateEndpoints", - "apiVersion": "2020-07-01", - "location": "[parameters(\u0027subnetLocation\u0027)]", - "tags": {}, - "properties": { - "subnet": { - "id": "[parameters(\u0027privateEndpointSubnetId\u0027)]" - }, - "privateLinkServiceConnections": [ - { - "name": "[variables(\u0027privateEndpointName\u0027)]", - "properties": { - "privateLinkServiceId": "[parameters(\u0027serviceId\u0027)]", - "groupIds": [ - "webpubsub" - ], - "requestMessage": "autoapprove" - } - } - ], - "manualPrivateLinkServiceConnections": [] - } - } - ] - }, - "parameters": { - "serviceId": { - "value": "[parameters(\u0027serviceId\u0027)]" - }, - "privateEndpointSubnetId": { - "value": "[parameters(\u0027privateEndpointSubnetId\u0027)]" - }, - "subnetLocation": { - "value": "[reference(first(take(split(parameters(\u0027privateEndpointSubnetId\u0027),\u0027/subnets\u0027),1)),\u00272020-07-01\u0027,\u0027Full\u0027).location]" - } - } - } - } - ] - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Application Insights components should block log ingestion and querying from public networks", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Improve Application Insights security by blocking log ingestion and querying from public networks. Only private-link connected networks will be able to ingest and query logs of this component. Learn more at https://aka.ms/AzMonPrivateLink#configure-application-insights.", - "metadata": { - "version": "1.0.0", - "category": "Monitoring" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "The effect determines what happens when the policy rule is evaluated to match" - }, - "allowedValues": [ - "audit", - "deny", - "disabled" - ], - "defaultValue": "audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Insights/components" - }, - { - "anyOf": [ - { - "field": "Microsoft.Insights/components/publicNetworkAccessForIngestion", - "notEquals": "disabled" - }, - { - "field": "Microsoft.Insights/components/publicNetworkAccessForQuery", - "notEquals": "disabled" - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Ensure that \u0027PHP version\u0027 is the latest, if used as a part of the API app", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Periodically, newer versions are released for PHP software either due to security flaws or to include additional functionality. Using the latest PHP version for API apps is recommended in order to take advantage of security fixes, if any, and/or new functionalities of the latest version. Currently, this policy only applies to Linux web apps.", - "metadata": { - "version": "2.1.0", - "category": "App Service" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - }, - "PHPLatestVersion": { - "type": "String", - "metadata": { - "displayName": "Latest PHP version", - "description": "Latest supported PHP version for App Services" - }, - "defaultValue": "7.4" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Web/sites" - }, - { - "field": "kind", - "like": "*api" - }, - { - "field": "kind", - "contains": "linux" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Web/sites/config", - "name": "web", - "existenceCondition": { - "anyOf": [ - { - "field": "Microsoft.Web/sites/config/web.linuxFxVersion", - "notContains": "PHP" - }, - { - "field": "Microsoft.Web/sites/config/web.linuxFxVersion", - "equals": "[concat(\u0027PHP|\u0027, parameters(\u0027PHPLatestVersion\u0027))]" - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Azure Service Bus namespaces should use private link", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination. The Private Link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to Service Bus namespaces, data leakage risks are reduced. Learn more at: https://docs.microsoft.com/azure/service-bus-messaging/private-link-service.", - "metadata": { - "version": "1.0.0", - "category": "Service Bus" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.ServiceBus/namespaces" - }, - { - "field": "Microsoft.ServiceBus/namespaces/sku.tier", - "equals": "Premium" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.ServiceBus/namespaces/privateEndpointConnections", - "existenceCondition": { - "field": "Microsoft.ServiceBus/namespaces/privateEndpointConnections/privateLinkServiceConnectionState.status", - "equals": "Approved" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Deploy - Configure Dependency agent to be enabled on Windows virtual machines", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Deploy Dependency agent for Windows virtual machines if the virtual machine image is in the list defined and the agent is not installed.", - "metadata": { - "version": "2.0.0", - "category": "Monitoring" - }, - "parameters": { - "listOfImageIdToInclude": { - "type": "Array", - "metadata": { - "displayName": "Optional: List of virtual machine images that have supported Windows OS to add to scope", - "description": "Example value: \u0027/subscriptions/\u003CsubscriptionId\u003E/resourceGroups/YourResourceGroup/providers/Microsoft.Compute/images/ContosoStdImage\u0027" - }, - "defaultValue": [] - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageId", - "in": "[parameters(\u0027listOfImageIdToInclude\u0027)]" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "in": [ - "2008-R2-SP1", - "2008-R2-SP1-smalldisk", - "2012-Datacenter", - "2012-Datacenter-smalldisk", - "2012-R2-Datacenter", - "2012-R2-Datacenter-smalldisk", - "2016-Datacenter", - "2016-Datacenter-Server-Core", - "2016-Datacenter-Server-Core-smalldisk", - "2016-Datacenter-smalldisk", - "2016-Datacenter-with-Containers", - "2016-Datacenter-with-RDSH", - "2019-Datacenter", - "2019-Datacenter-Core", - "2019-Datacenter-Core-smalldisk", - "2019-Datacenter-Core-with-Containers", - "2019-Datacenter-Core-with-Containers-smalldisk", - "2019-Datacenter-smalldisk", - "2019-Datacenter-with-Containers", - "2019-Datacenter-with-Containers-smalldisk", - "2019-Datacenter-zhcn" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServerSemiAnnual" - }, - { - "field": "Microsoft.Compute/imageSKU", - "in": [ - "Datacenter-Core-1709-smalldisk", - "Datacenter-Core-1709-with-Containers-smalldisk", - "Datacenter-Core-1803-with-Containers-smalldisk" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServerHPCPack" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServerHPCPack" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2016" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2016-BYOL" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2012R2" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2012R2-BYOL" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftRServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "MLServer-WS2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftVisualStudio" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "VisualStudio", - "Windows" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftDynamicsAX" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Dynamics" - }, - { - "field": "Microsoft.Compute/imageSKU", - "equals": "Pre-Req-AX7-Onebox-U8" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftDynamicsAX" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Dynamics" - }, - { - "field": "Microsoft.Compute/imageSKU", - "equals": "Pre-Req-AX7-Onebox-V4" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "windows-data-science-vm" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsDesktop" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Windows-10" - } - ] - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Compute/virtualMachines/extensions", - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.Compute/virtualMachines/extensions/type", - "equals": "DependencyAgentWindows" - }, - { - "field": "Microsoft.Compute/virtualMachines/extensions/publisher", - "equals": "Microsoft.Azure.Monitoring.DependencyAgent" - }, - { - "field": "Microsoft.Compute/virtualMachines/extensions/provisioningState", - "equals": "Succeeded" - } - ] - }, - "deployment": { - "properties": { - "mode": "incremental", - "template": { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "vmName": { - "type": "string" - }, - "location": { - "type": "string" - } - }, - "variables": { - "vmExtensionName": "DependencyAgentWindows", - "vmExtensionPublisher": "Microsoft.Azure.Monitoring.DependencyAgent", - "vmExtensionType": "DependencyAgentWindows", - "vmExtensionTypeHandlerVersion": "9.6" - }, - "resources": [ - { - "type": "Microsoft.Compute/virtualMachines/extensions", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/\u0027, variables(\u0027vmExtensionName\u0027))]", - "apiVersion": "2018-06-01", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "publisher": "[variables(\u0027vmExtensionPublisher\u0027)]", - "type": "[variables(\u0027vmExtensionType\u0027)]", - "typeHandlerVersion": "[variables(\u0027vmExtensionTypeHandlerVersion\u0027)]", - "autoUpgradeMinorVersion": true - } - } - ], - "outputs": { - "policy": { - "type": "string", - "value": "[concat(\u0027Enabled extension for VM\u0027, \u0027: \u0027, parameters(\u0027vmName\u0027))]" - } - } - }, - "parameters": { - "vmName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - } - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Preview]: vTPM should be enabled on supported virtual machines", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Enable virtual TPM device on supported virtual machines to facilitate Measured Boot and other OS security features that require a TPM. Once enabled, vTPM can be used to attest boot integrity. This assessment only applies to trusted launch enabled virtual machines.", - "metadata": { - "category": "Security Center", - "version": "2.0.0-preview", - "preview": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "field": "Microsoft.Compute/virtualMachines/securityProfile.securityType", - "equals": "TrustedLaunch" - }, - { - "field": "Microsoft.Compute/virtualMachines/securityProfile.uefiSettings", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/securityProfile.uefiSettings.vTpmEnabled", - "notequals": "true" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Configure Azure Event Grid topics to disable local authentication", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Disable local authentication methods so that your Azure Event Grid topics exclusively require Azure Active Directory identities for authentication. Learn more at: https://aka.ms/aeg-disablelocalauth.", - "metadata": { - "version": "1.0.0", - "category": "Event Grid" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Modify", - "Disabled" - ], - "defaultValue": "Modify" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.EventGrid/topics" - }, - { - "field": "Microsoft.EventGrid/topics/disableLocalAuth", - "notEquals": true - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "conflictEffect": "audit", - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "operations": [ - { - "condition": "[greaterOrEquals(requestContext().apiVersion, \u00272021-06-01-preview\u0027)]", - "operation": "addOrReplace", - "field": "Microsoft.EventGrid/topics/disableLocalAuth", - "value": true - } - ] - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Defender for Containers should be enabled", - "policyType": "BuiltIn", - "mode": "All", - "description": "Microsoft Defender for Containers provides hardening, vulnerability assessment and run-time protections for your Azure, hybrid, and multi-cloud Kubernetes environments.", - "metadata": { - "version": "1.0.0", - "category": "Security Center" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Resources/subscriptions" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Security/pricings", - "name": "Containers", - "existenceScope": "subscription", - "existenceCondition": { - "field": "Microsoft.Security/pricings/pricingTier", - "equals": "Standard" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1072 - Wireless Access | Antennas / Transmission Power Levels", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Access Control control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1072" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1656 - Secure Name / Address Resolution Service (Authoritative Source)", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Communications Protection control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1656" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Preview]: Guest Attestation extension should be installed on supported Windows virtual machines", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Install Guest Attestation extension on supported virtual machines to allow Azure Security Center to proactively attest and monitor the boot integrity. Once installed, boot integrity will be attested via Remote Attestation. This assessment only applies to trusted launch enabled virtual machines.", - "metadata": { - "category": "Security Center", - "version": "3.0.0-preview", - "preview": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.imageReference.offer", - "like": "windows*" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "field": "Microsoft.Compute/virtualMachines/securityProfile.securityType", - "equals": "TrustedLaunch" - }, - { - "field": "Microsoft.Compute/virtualMachines/securityProfile.uefiSettings", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/securityProfile.uefiSettings.secureBootEnabled", - "equals": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/securityProfile.uefiSettings.vTpmEnabled", - "equals": "true" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Compute/virtualMachines/extensions", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.Compute/virtualMachines/extensions/publisher", - "equals": "Microsoft.Azure.Security.WindowsAttestation" - }, - { - "field": "Microsoft.Compute/virtualMachines/extensions/type", - "equals": "GuestAttestation" - }, - { - "field": "Microsoft.Compute/virtualMachines/extensions/provisioningState", - "in": [ - "Succeeded", - "Provisioning succeeded" - ] - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Public network access on Azure Data Factory should be disabled", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Disabling the public network access property improves security by ensuring your Azure Data Factory can only be accessed from a private endpoint.", - "metadata": { - "version": "1.0.0", - "category": "Data Factory" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.DataFactory/factories" - }, - { - "field": "Microsoft.DataFactory/factories/publicNetworkAccess", - "notEquals": "Disabled" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1592 - External Information System Services | Consistent Interests Of Consumers And Providers", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Services Acquisition control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1592" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Azure File Sync should use private link", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Creating a private endpoint for the indicated Storage Sync Service resource allows you to address your Storage Sync Service resource from within the private IP address space of your organization\u0027s network, rather than through the internet-accessible public endpoint. Creating a private endpoint by itself does not disable the public endpoint.", - "metadata": { - "version": "1.0.0", - "category": "Storage" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.StorageSync/storageSyncServices" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.StorageSync/storageSyncServices/privateEndpointConnections", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.StorageSync/storageSyncServices/privateEndpointConnections/privateEndpoint", - "exists": "true" - }, - { - "field": "Microsoft.StorageSync/storageSyncServices/privateEndpointConnections/provisioningState", - "equals": "Succeeded" - }, - { - "field": "Microsoft.StorageSync/storageSyncServices/privateEndpointConnections/privateLinkServiceConnectionState.status", - "equals": "Approved" - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1088 - Security Awareness And Training Policy And Procedures", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Awareness and Training control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1088" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Configure Kubernetes clusters with specified GitOps configuration using no secrets", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Deploy a \u0027sourceControlConfiguration\u0027 to Kubernetes clusters to assure that the clusters get their source of truth for workloads and configurations from the defined git repo. This definition requires no secrets. For instructions, visit https://aka.ms/K8sGitOpsPolicy.", - "metadata": { - "version": "1.0.0", - "category": "Kubernetes" - }, - "parameters": { - "configurationResourceName": { - "type": "String", - "metadata": { - "displayName": "Configuration resource name", - "description": "The name for the sourceControlConfiguration. Learn more about setting up GitOps configuration: https://aka.ms/AzureArcK8sUsingGitOps." - } - }, - "operatorInstanceName": { - "type": "String", - "metadata": { - "displayName": "Operator instance name", - "description": "Name used in the operator instances. Maximum of 23 lowercase alphanumeric characters or hyphen. Must start and end with an alphanumeric character." - } - }, - "operatorNamespace": { - "type": "String", - "metadata": { - "displayName": "Operator namespace", - "description": "Namespace within which the operators will be installed. Maximum of 23 lowercase alphanumeric characters or hyphen. Must start and end with an alphanumeric character." - } - }, - "operatorScope": { - "type": "String", - "metadata": { - "displayName": "Operator scope", - "description": "The permission scope for the operator. Possible values are \u0027cluster\u0027 (full access) or \u0027namespace\u0027 (restricted access)." - }, - "allowedValues": [ - "cluster", - "namespace" - ], - "defaultValue": "namespace" - }, - "operatorType": { - "type": "String", - "metadata": { - "displayName": "Operator type", - "description": "The type of operator to install. Currently, \u0027Flux\u0027 is supported." - }, - "allowedValues": [ - "Flux" - ], - "defaultValue": "Flux" - }, - "operatorParams": { - "type": "String", - "metadata": { - "displayName": "Operator parameters", - "description": "Parameters to set on the Flux operator, separated by spaces. For example, --git-readonly --sync-garbage-collection. Learn more: http://aka.ms/AzureArcK8sFluxOperatorParams." - }, - "defaultValue": "" - }, - "repositoryUrl": { - "type": "String", - "metadata": { - "displayName": "Repository Url", - "description": "The URL for the source control repository. Learn more about URL formats: https://aka.ms/GitOpsRepoUrlParameters" - } - }, - "enableHelmOperator": { - "type": "String", - "metadata": { - "displayName": "Enable Helm", - "description": "Indicate whether to enable Helm for this instance of Flux. Learn more: http://aka.ms/AzureArcK8sGitOpsWithHelm." - }, - "allowedValues": [ - "true", - "false" - ], - "defaultValue": "true" - }, - "chartVersion": { - "type": "String", - "metadata": { - "displayName": "Helm chart version for installing Flux Helm", - "description": "The version of the Helm chart for installing Flux Helm. For example, 1.2.0" - }, - "defaultValue": "1.2.0" - }, - "chartValues": { - "type": "String", - "metadata": { - "displayName": "Helm chart parameters for installing Flux Helm", - "description": "Parameters for the Helm chart for installing Flux Helm, separated by spaces. For example, --set helm.versions=v3" - }, - "defaultValue": "" - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "deployIfNotExists", - "auditIfNotExists", - "disabled" - ], - "defaultValue": "deployIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "in": [ - "Microsoft.Kubernetes/connectedClusters", - "Microsoft.ContainerService/managedClusters" - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.KubernetesConfiguration/sourceControlConfigurations", - "name": "[parameters(\u0027configurationResourceName\u0027)]", - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "deploymentScope": "ResourceGroup", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.KubernetesConfiguration/sourceControlConfigurations/operatorParams", - "in": [ - "[parameters(\u0027operatorParams\u0027)]", - "[concat(\u0027--git-readonly \u0027,parameters(\u0027operatorParams\u0027))]" - ] - }, - { - "field": "Microsoft.KubernetesConfiguration/sourceControlConfigurations/repositoryUrl", - "equals": "[parameters(\u0027repositoryUrl\u0027)]" - }, - { - "anyOf": [ - { - "field": "Microsoft.KubernetesConfiguration/sourceControlConfigurations/enableHelmOperator", - "equals": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.KubernetesConfiguration/sourceControlConfigurations/enableHelmOperator", - "equals": "true" - }, - { - "field": "Microsoft.KubernetesConfiguration/sourceControlConfigurations/helmOperatorProperties.chartVersion", - "equals": "[parameters(\u0027chartVersion\u0027)]" - }, - { - "field": "Microsoft.KubernetesConfiguration/sourceControlConfigurations/helmOperatorProperties.chartValues", - "equals": "[parameters(\u0027chartValues\u0027)]" - } - ] - } - ] - } - ] - }, - "deployment": { - "properties": { - "mode": "incremental", - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "configurationResourceName": { - "type": "string" - }, - "clusterLocation": { - "type": "string" - }, - "clusterName": { - "type": "string" - }, - "operatorInstanceName": { - "type": "string" - }, - "operatorNamespace": { - "type": "string" - }, - "operatorScope": { - "type": "string" - }, - "operatorType": { - "type": "string" - }, - "operatorParams": { - "type": "string" - }, - "repositoryUrl": { - "type": "string" - }, - "enableHelmOperator": { - "type": "string" - }, - "chartVersion": { - "type": "string" - }, - "chartValues": { - "type": "string" - }, - "clusterResourceType": { - "type": "string" - } - }, - "resources": [ - { - "condition": "[contains(toLower(parameters(\u0027clusterResourceType\u0027)), toLower(\u0027connectedclusters\u0027))]", - "type": "Microsoft.Kubernetes/connectedClusters/providers/sourceControlConfigurations", - "name": "[concat(parameters(\u0027clusterName\u0027), \u0027/Microsoft.KubernetesConfiguration/\u0027, parameters(\u0027configurationResourceName\u0027))]", - "apiVersion": "2021-03-01", - "properties": { - "operatorInstanceName": "[parameters(\u0027operatorInstanceName\u0027)]", - "operatorNamespace": "[parameters(\u0027operatorNamespace\u0027)]", - "operatorScope": "[parameters(\u0027operatorScope\u0027)]", - "operatorType": "[parameters(\u0027operatorType\u0027)]", - "operatorParams": "[parameters(\u0027operatorParams\u0027)]", - "repositoryUrl": "[parameters(\u0027repositoryUrl\u0027)]", - "enableHelmOperator": "[parameters(\u0027enableHelmOperator\u0027)]", - "helmOperatorProperties": { - "chartVersion": "[parameters(\u0027chartVersion\u0027)]", - "chartValues": "[parameters(\u0027chartValues\u0027)]" - } - } - }, - { - "condition": "[contains(toLower(parameters(\u0027clusterResourceType\u0027)), toLower(\u0027managedclusters\u0027))]", - "type": "Microsoft.ContainerService/managedClusters/providers/sourceControlConfigurations", - "name": "[concat(parameters(\u0027clusterName\u0027), \u0027/Microsoft.KubernetesConfiguration/\u0027, parameters(\u0027configurationResourceName\u0027))]", - "apiVersion": "2021-03-01", - "properties": { - "operatorInstanceName": "[parameters(\u0027operatorInstanceName\u0027)]", - "operatorNamespace": "[parameters(\u0027operatorNamespace\u0027)]", - "operatorScope": "[parameters(\u0027operatorScope\u0027)]", - "operatorType": "[parameters(\u0027operatorType\u0027)]", - "operatorParams": "[parameters(\u0027operatorParams\u0027)]", - "repositoryUrl": "[parameters(\u0027repositoryUrl\u0027)]", - "enableHelmOperator": "[parameters(\u0027enableHelmOperator\u0027)]", - "helmOperatorProperties": { - "chartVersion": "[parameters(\u0027chartVersion\u0027)]", - "chartValues": "[parameters(\u0027chartValues\u0027)]" - } - } - } - ] - }, - "parameters": { - "clusterLocation": { - "value": "[field(\u0027location\u0027)]" - }, - "clusterName": { - "value": "[field(\u0027name\u0027)]" - }, - "configurationResourceName": { - "value": "[parameters(\u0027configurationResourceName\u0027)]" - }, - "operatorInstanceName": { - "value": "[parameters(\u0027operatorInstanceName\u0027)]" - }, - "operatorNamespace": { - "value": "[parameters(\u0027operatorNamespace\u0027)]" - }, - "operatorScope": { - "value": "[parameters(\u0027operatorScope\u0027)]" - }, - "operatorType": { - "value": "[parameters(\u0027operatorType\u0027)]" - }, - "operatorParams": { - "value": "[parameters(\u0027operatorParams\u0027)]" - }, - "repositoryUrl": { - "value": "[parameters(\u0027repositoryUrl\u0027)]" - }, - "enableHelmOperator": { - "value": "[parameters(\u0027enableHelmOperator\u0027)]" - }, - "chartVersion": { - "value": "[parameters(\u0027chartVersion\u0027)]" - }, - "chartValues": { - "value": "[parameters(\u0027chartValues\u0027)]" - }, - "clusterResourceType": { - "value": "[field(\u0027type\u0027)]" - } - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1538 - Security Categorization", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Risk Assessment control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1538" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Virtual machines should be migrated to new Azure Resource Manager resources", - "policyType": "BuiltIn", - "mode": "All", - "description": "Use new Azure Resource Manager for your virtual machines to provide security enhancements such as: stronger access control (RBAC), better auditing, Azure Resource Manager based deployment and governance, access to managed identities, access to key vault for secrets, Azure AD-based authentication and support for tags and resource groups for easier security management", - "metadata": { - "version": "1.0.0", - "category": "Compute" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "The effect determines what happens when the policy rule is evaluated to match" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.ClassicCompute/virtualMachines", - "Microsoft.Compute/virtualMachines" - ] - }, - { - "value": "[field(\u0027type\u0027)]", - "equals": "Microsoft.ClassicCompute/virtualMachines" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1298 - Identification And Authentication Policy And Procedures", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Identification and Authentication control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1298" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Audit API Applications that are not using latest supported .NET Framework", - "policyType": "BuiltIn", - "mode": "All", - "description": "Use the latest supported .NET Framework version for the latest security classes. Using older classes and types can make your application vulnerable.", - "metadata": { - "version": "1.0.0-deprecated", - "category": "Security Center", - "deprecated": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "allof": [ - { - "field": "type", - "equals": "microsoft.Web/sites" - }, - { - "anyof": [ - { - "field": "kind", - "equals": "api" - }, - { - "field": "kind", - "equals": "apiApp" - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Security/complianceResults", - "name": "UseLatestDotNet", - "existenceCondition": { - "field": "Microsoft.Security/complianceResults/resourceStatus", - "in": [ - "OffByPolicy", - "Healthy" - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1595 - Developer Configuration Management", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Services Acquisition control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1595" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Require a tag and its value on resources", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Enforces a required tag and its value. Does not apply to resource groups.", - "metadata": { - "version": "1.0.1", - "category": "Tags" - }, - "parameters": { - "tagName": { - "type": "String", - "metadata": { - "displayName": "Tag Name", - "description": "Name of the tag, such as \u0027environment\u0027" - } - }, - "tagValue": { - "type": "String", - "metadata": { - "displayName": "Tag Value", - "description": "Value of the tag, such as \u0027production\u0027" - } - } - }, - "policyRule": { - "if": { - "not": { - "field": "[concat(\u0027tags[\u0027, parameters(\u0027tagName\u0027), \u0027]\u0027)]", - "equals": "[parameters(\u0027tagValue\u0027)]" - } - }, - "then": { - "effect": "deny" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Cloud Services (extended support) role instances should have an endpoint protection solution installed", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Protect your Cloud Services (extended support) role instances from threats and vulnerabilities by ensuring an endpoint protection solution is installed on them.", - "metadata": { - "version": "1.0.0", - "category": "Security Center" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Compute/cloudServices" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Security/assessments", - "name": "00000000-0000-0000-0000-000000000000", - "existenceCondition": { - "field": "Microsoft.Security/assessments/status.code", - "in": [ - "NotApplicable", - "Healthy" - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Configure Azure Synapse workspaces to use private DNS zones", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Use private DNS zones to override the DNS resolution for a private endpoint. A private DNS zone links to your virtual network to resolve to Azure Synapse workspace. Learn more at: https://docs.microsoft.com/azure/synapse-analytics/security/how-to-connect-to-workspace-from-restricted-network#appendix-dns-registration-for-private-endpoint.", - "metadata": { - "version": "1.0.0", - "category": "Synapse" - }, - "parameters": { - "privateDnsZoneId": { - "type": "String", - "metadata": { - "displayName": "Private DNS Zone id", - "description": "A private DNS zone Id", - "strongType": "Microsoft.Network/privateDnsZones" - } - }, - "targetSubResource": { - "type": "String", - "metadata": { - "displayName": "Target sub-resource", - "description": "Target sub resource the private endpoint connects to" - }, - "allowedValues": [ - "Dev", - "Sql", - "SqlOnDemand" - ], - "defaultValue": "Dev" - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Network/privateEndpoints" - }, - { - "count": { - "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*].groupIds[*]", - "where": { - "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*].groupIds[*]", - "equals": "[parameters(\u0027targetSubResource\u0027)]" - } - }, - "greaterOrEquals": 1 - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups", - "roleDefinitionIds": [ - "/providers/Microsoft.Authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "deployment": { - "properties": { - "mode": "incremental", - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "privateDnsZoneId": { - "type": "string" - }, - "privateEndpointName": { - "type": "string" - }, - "location": { - "type": "string" - } - }, - "resources": [ - { - "name": "[concat(parameters(\u0027privateEndpointName\u0027), \u0027/deployedByPolicy\u0027)]", - "type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups", - "apiVersion": "2020-03-01", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "privateDnsZoneConfigs": [ - { - "name": "synapse-privateDnsZone", - "properties": { - "privateDnsZoneId": "[parameters(\u0027privateDnsZoneId\u0027)]" - } - } - ] - } - } - ] - }, - "parameters": { - "privateDnsZoneId": { - "value": "[parameters(\u0027privateDnsZoneId\u0027)]" - }, - "privateEndpointName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - } - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Key vaults should have soft delete enabled", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Deleting a key vault without soft delete enabled permanently deletes all secrets, keys, and certificates stored in the key vault. Accidental deletion of a key vault can lead to permanent data loss. Soft delete allows you to recover an accidentally deleted key vault for a configurable retention period.", - "metadata": { - "version": "2.0.0", - "category": "Key Vault" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.KeyVault/vaults" - }, - { - "not": { - "field": "Microsoft.KeyVault/vaults/createMode", - "equals": "recover" - } - }, - { - "anyOf": [ - { - "field": "Microsoft.KeyVault/vaults/enableSoftDelete", - "exists": "false" - }, - { - "field": "Microsoft.KeyVault/vaults/enableSoftDelete", - "equals": "false" - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Linux machines should have Log Analytics agent installed on Azure Arc", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Machines are non-compliant if Log Analytics agent is not installed on Azure Arc enabled Linux server.", - "metadata": { - "category": "Guest Configuration", - "version": "1.1.0", - "requiredProviders": [ - "Microsoft.GuestConfiguration" - ], - "guestConfiguration": { - "name": "LinuxLogAnalyticsAgentInstalled", - "version": "1.*" - } - }, - "parameters": { - "IncludeArcMachines": { - "type": "String", - "metadata": { - "displayName": "Include Arc connected servers", - "description": "By selecting this option, you agree to be charged monthly per Arc connected machine.", - "portalReview": "true" - }, - "allowedValues": [ - "true", - "false" - ], - "defaultValue": "false" - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of this policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "value": "[parameters(\u0027IncludeArcMachines\u0027)]", - "equals": "true" - }, - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "linux*" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "LinuxLogAnalyticsAgentInstalled", - "existenceCondition": { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus", - "equals": "Compliant" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Preview]: Deploy Microsoft Defender for Endpoint agent on Windows virtual machines", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Deploys Microsoft Defender for Endpoint on applicable Windows VM images.", - "metadata": { - "category": "Security Center", - "version": "1.0.0-preview", - "preview": true - }, - "parameters": { - "PublishersToExclude": { - "type": "Array", - "metadata": { - "displayName": "Optional: List Of Image Publishers to exclude", - "description": "List of Windows image Publishers to exclude from MDE provision" - }, - "defaultValue": [] - }, - "ImageIdsToExclude": { - "type": "Array", - "metadata": { - "displayName": "Optional: List of virtual machine images to exclude", - "description": "Example value: \u0027/subscriptions/\u003CsubscriptionId\u003E/resourceGroups/YourResourceGroup/providers/Microsoft.Compute/images/ContosoImage\u0027" - }, - "defaultValue": [] - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - }, - { - "anyOf": [ - { - "not": { - "field": "Microsoft.Compute/virtualMachines/imagePublisher", - "in": "[parameters(\u0027PublishersToExclude\u0027)]" - } - }, - { - "value": "[empty(parameters(\u0027PublishersToExclude\u0027))]", - "equals": "true" - } - ] - }, - { - "anyOf": [ - { - "not": { - "field": "Microsoft.Compute/virtualMachines/storageProfile.imageReference.id", - "in": "[parameters(\u0027ImageIdsToExclude\u0027)]" - } - }, - { - "value": "[empty(parameters(\u0027ImageIdsToExclude\u0027))]", - "equals": "true" - } - ] - }, - { - "anyOf": [ - { - "not": { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "contains": "win7" - }, - { - "field": "Microsoft.Compute/imageSKU", - "contains": "win8" - }, - { - "field": "Microsoft.Compute/imageSKU", - "contains": "2008" - }, - { - "field": "Microsoft.Compute/imageSKU", - "contains": "win10" - }, - { - "field": "Microsoft.Compute/imageSKU", - "contains": "windows-10" - }, - { - "field": "Microsoft.Compute/imageOffer", - "contains": "windows-10" - }, - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsDesktop" - }, - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "azureopenshift" - }, - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "AzureDatabricks" - } - ] - } - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsDesktop" - }, - { - "field": "Microsoft.Compute/imageSKU", - "contains": "evd" - } - ] - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "type": "Microsoft.Compute/virtualMachines/extensions", - "name": "MDE.Windows", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.Compute/virtualMachines/extensions/publisher", - "equals": "Microsoft.Azure.AzureDefenderForServers" - }, - { - "field": "Microsoft.Compute/virtualMachines/extensions/type", - "equals": "MDE.Windows" - }, - { - "field": "Microsoft.Compute/virtualMachines/extensions/provisioningState", - "equals": "Succeeded" - } - ] - }, - "deployment": { - "properties": { - "mode": "incremental", - "parameters": { - "vmName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "azureResourceId": { - "value": "[concat(\u0027/subscriptions/\u0027, subscription().subscriptionId, \u0027/resourceGroups/\u0027, resourceGroup().name, \u0027/providers/Microsoft.Compute/virtualMachines/\u0027,field(\u0027name\u0027))]" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "vmName": { - "type": "string" - }, - "location": { - "type": "string" - }, - "azureResourceId": { - "type": "string" - } - }, - "resources": [ - { - "apiVersion": "2020-06-01", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/MDE.Windows\u0027)]", - "type": "Microsoft.Compute/virtualMachines/extensions", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "autoUpgradeMinorVersion": true, - "enableAutomaticUpgrade": true, - "publisher": "Microsoft.Azure.AzureDefenderForServers", - "type": "MDE.Windows", - "typeHandlerVersion": "1.0", - "settings": { - "azureResourceId": "[parameters(\u0027azureResourceId\u0027)]", - "vNextEnabled": "true" - }, - "protectedSettings": { - "defenderForEndpointOnboardingScript": "[reference(subscriptionResourceId(\u0027Microsoft.Security/mdeOnboardings\u0027, \u0027Windows\u0027), \u00272021-10-01-preview\u0027, \u0027full\u0027).properties.onboardingPackageWindows]" - } - } - } - ] - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Azure API for FHIR should use private link", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Azure API for FHIR should have at least one approved private endpoint connection. Clients in a virtual network can securely access resources that have private endpoint connections through private links. For more information, visit: https://aka.ms/fhir-privatelink.", - "metadata": { - "version": "1.0.0", - "category": "API for FHIR" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HealthcareApis/services" - }, - { - "count": { - "field": "Microsoft.HealthcareApis/services/privateEndpointConnections[*]", - "where": { - "field": "Microsoft.HealthcareApis/services/privateEndpointConnections[*].privateLinkServiceConnectionState.status", - "equals": "Approved" - } - }, - "less": 1 - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Preview]: Azure Security agent should be installed on your Linux Arc machines", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Install the Azure Security agent on your Linux Arc machines in order to monitor your machines for security configurations and vulnerabilities. Results of the assessments can seen and managed in Azure Security Center.", - "metadata": { - "category": "Security Center", - "version": "1.0.0-preview", - "preview": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "linux*" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.HybridCompute/machines/extensions", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.HybridCompute/machines/extensions/type", - "equals": "AzureSecurityLinuxAgent" - }, - { - "field": "Microsoft.HybridCompute/machines/extensions/Publisher", - "equals": "Microsoft.Azure.Security.Monitoring" - }, - { - "field": "Microsoft.HybridCompute/machines/extensions/provisioningState", - "equals": "Succeeded" - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "An Azure Active Directory administrator should be provisioned for SQL servers", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Audit provisioning of an Azure Active Directory administrator for your SQL server to enable Azure AD authentication. Azure AD authentication enables simplified permission management and centralized identity management of database users and other Microsoft services", - "metadata": { - "version": "1.0.0", - "category": "SQL" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Sql/servers" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Sql/servers/administrators" - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Azure Monitor Logs clusters should be encrypted with customer-managed key", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Create Azure Monitor logs cluster with customer-managed keys encryption. By default, the log data is encrypted with service-managed keys, but customer-managed keys are commonly required to meet regulatory compliance. Customer-managed key in Azure Monitor gives you more control over the access to you data, see https://docs.microsoft.com/azure/azure-monitor/platform/customer-managed-keys.", - "metadata": { - "version": "1.0.0", - "category": "Monitoring" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "The effect determines what happens when the policy rule is evaluated to match" - }, - "allowedValues": [ - "audit", - "deny", - "disabled" - ], - "defaultValue": "audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.OperationalInsights/clusters" - }, - { - "anyOf": [ - { - "anyOf": [ - { - "field": "Microsoft.OperationalInsights/clusters/keyVaultProperties.keyVaultUri", - "equals": "" - }, - { - "field": "Microsoft.OperationalInsights/clusters/keyVaultProperties.keyVaultUri", - "exists": "false" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.OperationalInsights/clusters/keyVaultProperties.keyName", - "equals": "" - }, - { - "field": "Microsoft.OperationalInsights/clusters/keyVaultProperties.keyName", - "exists": "false" - } - ] - }, - { - "not": { - "field": "Microsoft.OperationalInsights/clusters/keyVaultProperties.keyVersion", - "exists": "true" - } - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Deploy Diagnostic Settings for Event Hub to Log Analytics workspace", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Deploys the diagnostic settings for Event Hub to stream to a regional Log Analytics workspace when any Event Hub which is missing this diagnostic settings is created or updated.", - "metadata": { - "version": "1.1.0", - "category": "Monitoring" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - }, - "profileName": { - "type": "String", - "metadata": { - "displayName": "Profile name", - "description": "The diagnostic settings profile name" - }, - "defaultValue": "setbypolicy_logAnalytics" - }, - "logAnalytics": { - "type": "String", - "metadata": { - "displayName": "Log Analytics workspace", - "description": "Select Log Analytics workspace from dropdown list. If this workspace is outside of the scope of the assignment you must manually grant \u0027Log Analytics Contributor\u0027 permissions (or similar) to the policy assignment\u0027s principal ID.", - "strongType": "omsWorkspace", - "assignPermissions": true - } - }, - "metricsEnabled": { - "type": "String", - "metadata": { - "displayName": "Enable metrics", - "description": "Whether to enable metrics stream to the Log Analytics workspace - True or False" - }, - "allowedValues": [ - "True", - "False" - ], - "defaultValue": "False" - }, - "logsEnabled": { - "type": "String", - "metadata": { - "displayName": "Enable logs", - "description": "Whether to enable logs stream to the Log Analytics workspace - True or False" - }, - "allowedValues": [ - "True", - "False" - ], - "defaultValue": "True" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.EventHub/namespaces" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Insights/diagnosticSettings", - "name": "[parameters(\u0027profileName\u0027)]", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.Insights/diagnosticSettings/logs.enabled", - "equals": "[parameters(\u0027logsEnabled\u0027)]" - }, - { - "field": "Microsoft.Insights/diagnosticSettings/metrics.enabled", - "equals": "[parameters(\u0027metricsEnabled\u0027)]" - } - ] - }, - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000", - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "deployment": { - "properties": { - "mode": "incremental", - "template": { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "resourceName": { - "type": "string" - }, - "location": { - "type": "string" - }, - "logAnalytics": { - "type": "string" - }, - "metricsEnabled": { - "type": "string" - }, - "logsEnabled": { - "type": "string" - }, - "profileName": { - "type": "string" - } - }, - "variables": {}, - "resources": [ - { - "type": "Microsoft.EventHub/namespaces/providers/diagnosticSettings", - "apiVersion": "2017-05-01-preview", - "name": "[concat(parameters(\u0027resourceName\u0027), \u0027/\u0027, \u0027Microsoft.Insights/\u0027, parameters(\u0027profileName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "dependsOn": [], - "properties": { - "workspaceId": "[parameters(\u0027logAnalytics\u0027)]", - "metrics": [ - { - "category": "AllMetrics", - "enabled": "[parameters(\u0027metricsEnabled\u0027)]", - "retentionPolicy": { - "enabled": false, - "days": 0 - } - } - ], - "logs": [ - { - "category": "ArchiveLogs", - "enabled": true, - "retentionPolicy": { - "enabled": false, - "days": 0 - } - }, - { - "category": "OperationalLogs", - "enabled": "[parameters(\u0027logsEnabled\u0027)]" - }, - { - "category": "AutoScaleLogs", - "enabled": "[parameters(\u0027logsEnabled\u0027)]" - }, - { - "category": "KafkaCoordinatorLogs", - "enabled": "[parameters(\u0027logsEnabled\u0027)]" - }, - { - "category": "KafkaUserErrorLogs", - "enabled": "[parameters(\u0027logsEnabled\u0027)]" - }, - { - "category": "EventHubVNetConnectionEvent", - "enabled": "[parameters(\u0027logsEnabled\u0027)]" - }, - { - "category": "CustomerManagedKeyUserLogs", - "enabled": "[parameters(\u0027logsEnabled\u0027)]" - } - ] - } - } - ], - "outputs": {} - }, - "parameters": { - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "resourceName": { - "value": "[field(\u0027name\u0027)]" - }, - "logAnalytics": { - "value": "[parameters(\u0027logAnalytics\u0027)]" - }, - "metricsEnabled": { - "value": "[parameters(\u0027metricsEnabled\u0027)]" - }, - "logsEnabled": { - "value": "[parameters(\u0027logsEnabled\u0027)]" - }, - "profileName": { - "value": "[parameters(\u0027profileName\u0027)]" - } - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Configure Azure Defender for Key Vaults to be enabled", - "policyType": "BuiltIn", - "mode": "All", - "description": "Azure Defender for Key Vault provides an additional layer of protection and security intelligence by detecting unusual and potentially harmful attempts to access or exploit key vault accounts.", - "metadata": { - "version": "1.0.1", - "category": "Security Center" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Resources/subscriptions" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Security/pricings", - "name": "KeyVaults", - "deploymentScope": "subscription", - "existenceScope": "subscription", - "roleDefinitionIds": [ - "/providers/Microsoft.Authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "existenceCondition": { - "field": "Microsoft.Security/pricings/pricingTier", - "equals": "Standard" - }, - "deployment": { - "location": "westeurope", - "properties": { - "mode": "incremental", - "parameters": {}, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": {}, - "variables": {}, - "resources": [ - { - "type": "Microsoft.Security/pricings", - "apiVersion": "2018-06-01", - "name": "KeyVaults", - "properties": { - "pricingTier": "Standard" - } - } - ], - "outputs": {} - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Endpoint protection should be installed on your machines", - "policyType": "BuiltIn", - "mode": "All", - "description": "To protect your machines from threats and vulnerabilities, install a supported endpoint protection solution.", - "metadata": { - "version": "1.0.0", - "category": "Security Center" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Compute/virtualMachines", - "Microsoft.ClassicCompute/virtualMachines", - "Microsoft.HybridCompute/machines" - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Security/assessments", - "name": "00000000-0000-0000-0000-000000000000", - "existenceCondition": { - "field": "Microsoft.Security/assessments/status.code", - "in": [ - "NotApplicable", - "Healthy" - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Deploy prerequisites to audit Windows VMs configurations in \u0027Security Options - Shutdown\u0027", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: \u0027Security Options - Shutdown\u0027. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol", - "metadata": { - "version": "1.2.0-deprecated", - "category": "Guest Configuration", - "requiredProviders": [ - "Microsoft.GuestConfiguration" - ], - "deprecated": true - }, - "parameters": { - "ShutdownAllowSystemToBeShutDownWithoutHavingToLogOn": { - "type": "String", - "metadata": { - "displayName": "Shutdown: Allow system to be shut down without having to log on", - "description": "Specifies whether a computer can be shut down when a user is not logged on. If this policy setting is enabled, the shutdown command is available on the Windows logon screen." - }, - "defaultValue": "0" - }, - "ShutdownClearVirtualMemoryPagefile": { - "type": "String", - "metadata": { - "displayName": "Shutdown: Clear virtual memory pagefile", - "description": "Specifies whether the virtual memory pagefile is cleared when the system is shut down. When this policy setting is enabled, the system pagefile is cleared each time that the system shuts down properly. For systems with large amounts of RAM, this could result in substantial time needed to complete the shutdown." - }, - "defaultValue": "0" - } - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "dsvm-windows" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - } - ] - }, - "then": { - "effect": "deployIfNotExists", - "details": { - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "AzureBaseline_SecurityOptionsShutdown", - "existenceCondition": { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash", - "equals": "[base64(concat(\u0027Shutdown: Allow system to be shut down without having to log on;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027ShutdownAllowSystemToBeShutDownWithoutHavingToLogOn\u0027), \u0027,\u0027, \u0027Shutdown: Clear virtual memory pagefile;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027ShutdownClearVirtualMemoryPagefile\u0027)))]" - }, - "deployment": { - "properties": { - "mode": "incremental", - "parameters": { - "vmName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "type": { - "value": "[field(\u0027type\u0027)]" - }, - "configurationName": { - "value": "AzureBaseline_SecurityOptionsShutdown" - }, - "ShutdownAllowSystemToBeShutDownWithoutHavingToLogOn": { - "value": "[parameters(\u0027ShutdownAllowSystemToBeShutDownWithoutHavingToLogOn\u0027)]" - }, - "ShutdownClearVirtualMemoryPagefile": { - "value": "[parameters(\u0027ShutdownClearVirtualMemoryPagefile\u0027)]" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "vmName": { - "type": "string" - }, - "location": { - "type": "string" - }, - "type": { - "type": "string" - }, - "configurationName": { - "type": "string" - }, - "ShutdownAllowSystemToBeShutDownWithoutHavingToLogOn": { - "type": "string" - }, - "ShutdownClearVirtualMemoryPagefile": { - "type": "string" - } - }, - "resources": [ - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027microsoft.hybridcompute/machines\u0027))]", - "apiVersion": "2018-11-20", - "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/Microsoft.GuestConfiguration/\u0027, parameters(\u0027configurationName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "guestConfiguration": { - "name": "[parameters(\u0027configurationName\u0027)]", - "version": "1.*", - "configurationParameter": [ - { - "name": "Shutdown: Allow system to be shut down without having to log on;ExpectedValue", - "value": "[parameters(\u0027ShutdownAllowSystemToBeShutDownWithoutHavingToLogOn\u0027)]" - }, - { - "name": "Shutdown: Clear virtual memory pagefile;ExpectedValue", - "value": "[parameters(\u0027ShutdownClearVirtualMemoryPagefile\u0027)]" - } - ] - } - } - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2018-11-20", - "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/Microsoft.GuestConfiguration/\u0027, parameters(\u0027configurationName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "guestConfiguration": { - "name": "[parameters(\u0027configurationName\u0027)]", - "version": "1.*", - "configurationParameter": [ - { - "name": "Shutdown: Allow system to be shut down without having to log on;ExpectedValue", - "value": "[parameters(\u0027ShutdownAllowSystemToBeShutDownWithoutHavingToLogOn\u0027)]" - }, - { - "name": "Shutdown: Clear virtual memory pagefile;ExpectedValue", - "value": "[parameters(\u0027ShutdownClearVirtualMemoryPagefile\u0027)]" - } - ] - } - } - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2019-07-01", - "type": "Microsoft.Compute/virtualMachines", - "identity": { - "type": "SystemAssigned" - }, - "name": "[parameters(\u0027vmName\u0027)]", - "location": "[parameters(\u0027location\u0027)]" - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2019-07-01", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/AzurePolicyforWindows\u0027)]", - "type": "Microsoft.Compute/virtualMachines/extensions", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "publisher": "Microsoft.GuestConfiguration", - "type": "ConfigurationforWindows", - "typeHandlerVersion": "1.1", - "autoUpgradeMinorVersion": true, - "settings": {}, - "protectedSettings": {} - }, - "dependsOn": [ - "[concat(\u0027Microsoft.Compute/virtualMachines/\u0027,parameters(\u0027vmName\u0027),\u0027/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/\u0027,parameters(\u0027configurationName\u0027))]" - ] - } - ] - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Azure Cosmos DB accounts should use customer-managed keys to encrypt data at rest", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Use customer-managed keys to manage the encryption at rest of your Azure Cosmos DB. By default, the data is encrypted at rest with service-managed keys, but customer-managed keys are commonly required to meet regulatory compliance standards. Customer-managed keys enable the data to be encrypted with an Azure Key Vault key created and owned by you. You have full control and responsibility for the key lifecycle, including rotation and management. Learn more at https://aka.ms/cosmosdb-cmk.", - "metadata": { - "version": "1.0.2", - "category": "Cosmos DB" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "The desired effect of the policy." - }, - "allowedValues": [ - "audit", - "deny", - "disabled" - ], - "defaultValue": "audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "Microsoft.DocumentDB/databaseAccounts/keyVaultKeyUri", - "exists": false - }, - { - "field": "type", - "equals": "Microsoft.DocumentDB/databaseAccounts" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Logic Apps Integration Service Environment should be encrypted with customer-managed keys", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Deploy into Integration Service Environment to manage encryption at rest of Logic Apps data using customer-managed keys. By default, customer data is encrypted with service-managed keys, but customer-managed keys are commonly required to meet regulatory compliance standards. Customer-managed keys enable the data to be encrypted with an Azure Key Vault key created and owned by you. You have full control and responsibility for the key lifecycle, including rotation and management.", - "metadata": { - "version": "1.0.0", - "category": "Logic Apps" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Logic/integrationServiceEnvironments" - }, - { - "field": "Microsoft.Logic/integrationServiceEnvironments/encryptionConfiguration", - "exists": "false" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Azure HDInsight clusters should use encryption at host to encrypt data at rest", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Enabling encryption at host helps protect and safeguard your data to meet your organizational security and compliance commitments. When you enable encryption at host, data stored on the VM host is encrypted at rest and flows encrypted to the Storage service.", - "metadata": { - "version": "1.0.0", - "category": "HDInsight" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HDInsight/clusters" - }, - { - "anyOf": [ - { - "field": "Microsoft.HDInsight/clusters/diskEncryptionProperties.encryptionAtHost", - "exists": false - }, - { - "field": "Microsoft.HDInsight/clusters/diskEncryptionProperties.encryptionAtHost", - "equals": false - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1616 - System And Communications Protection Policy And Procedures", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Communications Protection control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1616" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1650 - Public Key Infrastructure Certificates", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Communications Protection control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1650" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Web ports should be restricted on Network Security Groups associated to your VM", - "policyType": "BuiltIn", - "mode": "All", - "description": "Azure security center has discovered that some of your virtual machines are running web applications, and the NSGs associated to these virtual machines are overly permissive with regards to the web application ports", - "metadata": { - "version": "1.0.0-deprecated", - "category": "Security Center", - "deprecated": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "Disabled" - } - }, - "policyRule": { - "if": { - "field": "type", - "in": [ - "Microsoft.Compute/virtualMachines", - "Microsoft.ClassicCompute/virtualMachines" - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Security/complianceResults", - "name": "unprotectedWebApplication", - "existenceCondition": { - "field": "Microsoft.Security/complianceResults/resourceStatus", - "in": [ - "OffByPolicy", - "Healthy" - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "VM Image Builder templates should use private link", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination. The Private Link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to your VM Image Builder building resources, data leakage risks are reduced. Learn more about private links at: https://docs.microsoft.com/azure/virtual-machines/linux/image-builder-networking#deploy-using-an-existing-vnet.", - "metadata": { - "version": "1.1.0", - "category": "VM Image Builder" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Disabled", - "Deny" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.VirtualMachineImages/imageTemplates" - }, - { - "field": "Microsoft.VirtualMachineImages/imageTemplates/vmProfile.vnetConfig", - "exists": "false" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1181 - Baseline Configuration | Retention Of Previous Configurations", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Configuration Management control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1181" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "VPN gateways should use only Azure Active Directory (Azure AD) authentication for point-to-site users", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Disabling local authentication methods improves security by ensuring that VPN Gateways use only Azure Active Directory identities for authentication. Learn more about Azure AD authentication at https://docs.microsoft.com/azure/vpn-gateway/openvpn-azure-ad-tenant", - "metadata": { - "version": "1.0.0", - "category": "Network" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Network/virtualNetworkGateways" - }, - { - "field": "Microsoft.Network/virtualNetworkGateways/vpnClientConfiguration.vpnClientAddressPool.addressPrefixes", - "exists": "true" - }, - { - "count": { - "field": "Microsoft.Network/virtualNetworkGateways/vpnClientConfiguration.vpnAuthenticationTypes[*]", - "where": { - "field": "Microsoft.Network/virtualNetworkGateways/vpnClientConfiguration.vpnAuthenticationTypes[*]", - "notcontains": "AAD" - } - }, - "greaterOrEquals": 1 - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Public network access should be disabled for Azure File Sync", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Disabling the public endpoint allows you to restrict access to your Storage Sync Service resource to requests destined to approved private endpoints on your organization\u0027s network. There is nothing inherently insecure about allowing requests to the public endpoint, however, you may wish to disable it to meet regulatory, legal, or organizational policy requirements. You can disable the public endpoint for a Storage Sync Service by setting the incomingTrafficPolicy of the resource to AllowVirtualNetworksOnly.", - "metadata": { - "version": "1.0.0", - "category": "Storage" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.StorageSync/storageSyncServices" - }, - { - "field": "Microsoft.StorageSync/storageSyncServices/incomingTrafficPolicy", - "notEquals": "AllowVirtualNetworksOnly" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Azure SignalR Service should disable public network access", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "To improve the security of Azure SignalR Service resource, ensure that it isn\u0027t exposed to the public internet and can only be accessed from a private endpoint. Disable the public network access property as described in https://aka.ms/asrs/networkacls. This option disables access from any public address space outside the Azure IP range, and denies all logins that match IP or virtual network-based firewall rules. This reduces data leakage risks.", - "metadata": { - "version": "1.0.0", - "category": "SignalR" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.SignalRService/SignalR" - }, - { - "anyOf": [ - { - "field": "Microsoft.SignalRService/SignalR/networkACLs.defaultAction", - "equals": "Allow" - }, - { - "field": "Microsoft.SignalRService/SignalR/networkACLs.publicNetwork.allow", - "exists": false - }, - { - "count": { - "field": "Microsoft.SignalRService/SignalR/networkACLs.publicNetwork.allow[*]" - }, - "greater": 0 - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1111 - Response To Audit Processing Failures", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Audit and Accountability control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1111" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1596 - Developer Configuration Management", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Services Acquisition control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1596" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Show audit results from Windows VMs configurations in \u0027Security Options - Audit\u0027", - "policyType": "BuiltIn", - "mode": "All", - "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: \u0027Security Options - Audit\u0027. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol", - "metadata": { - "version": "1.0.0-deprecated", - "category": "Guest Configuration", - "deprecated": true - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "dsvm-windows" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - } - ] - }, - "then": { - "effect": "auditIfNotExists", - "details": { - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "AzureBaseline_SecurityOptionsAudit", - "existenceCondition": { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus", - "equals": "Compliant" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1426 - Media Protection Policy And Procedures", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Media Protection control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1426" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Preview]: ChangeTracking extension should be installed on your Windows virtual machine", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Install ChangeTracking Extension on Windows virtual machines to enable File Integrity Monitoring(FIM) in Azure Security Center. FIM examines operating system files, Windows registries, application software, Linux system files, and more, for changes that might indicate an attack. The extension can be installed in virtual machines and locations supported by Azure Monitoring Agent.", - "metadata": { - "version": "1.0.0-preview", - "category": "Security Center", - "preview": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - }, - "listOfApplicableLocations": { - "type": "Array", - "metadata": { - "displayName": "Applicable Locations", - "description": "The list of locations where the policy should be applied.", - "strongType": "location" - }, - "allowedValues": [ - "australiasoutheast", - "australiaeast", - "brazilsouth", - "canadacentral", - "centralindia", - "centralus", - "eastasia", - "eastus2euap", - "eastus", - "eastus2", - "francecentral", - "japaneast", - "koreacentral", - "northcentralus", - "northeurope", - "norwayeast", - "southcentralus", - "southeastasia", - "switzerlandnorth", - "uaenorth", - "uksouth", - "westcentralus", - "westeurope", - "westus", - "westus2" - ], - "defaultValue": [ - "australiasoutheast", - "australiaeast", - "brazilsouth", - "canadacentral", - "centralindia", - "centralus", - "eastasia", - "eastus2euap", - "eastus", - "eastus2", - "francecentral", - "japaneast", - "koreacentral", - "northcentralus", - "northeurope", - "norwayeast", - "southcentralus", - "southeastasia", - "switzerlandnorth", - "uaenorth", - "uksouth", - "westcentralus", - "westeurope", - "westus", - "westus2" - ] - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "field": "location", - "in": "[parameters(\u0027listOfApplicableLocations\u0027)]" - }, - { - "anyOf": [ - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "in": [ - "2008-R2-SP1", - "2008-R2-SP1-smalldisk", - "2012-Datacenter", - "2012-Datacenter-smalldisk", - "2012-R2-Datacenter", - "2012-R2-Datacenter-smalldisk", - "2016-Datacenter", - "2016-Datacenter-Server-Core", - "2016-Datacenter-Server-Core-smalldisk", - "2016-Datacenter-smalldisk", - "2016-Datacenter-with-Containers", - "2016-Datacenter-with-RDSH", - "2019-Datacenter", - "2019-Datacenter-Core", - "2019-Datacenter-Core-smalldisk", - "2019-Datacenter-Core-with-Containers", - "2019-Datacenter-Core-with-Containers-smalldisk", - "2019-Datacenter-smalldisk", - "2019-Datacenter-with-Containers", - "2019-Datacenter-with-Containers-smalldisk", - "2019-Datacenter-zhcn" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServerSemiAnnual" - }, - { - "field": "Microsoft.Compute/imageSKU", - "in": [ - "Datacenter-Core-1709-smalldisk", - "Datacenter-Core-1709-with-Containers-smalldisk", - "Datacenter-Core-1803-with-Containers-smalldisk" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServerHPCPack" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServerHPCPack" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2019" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2019-BYOL" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2016" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2016-BYOL" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2012R2" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2012R2-BYOL" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftRServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "MLServer-WS2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftVisualStudio" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "VisualStudio", - "Windows" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftDynamicsAX" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Dynamics" - }, - { - "field": "Microsoft.Compute/imageSKU", - "equals": "Pre-Req-AX7-Onebox-U8" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "windows-data-science-vm" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsDesktop" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Windows-10" - } - ] - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Compute/virtualMachines/extensions", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.Compute/virtualMachines/extensions/type", - "equals": "ChangeTracking-Windows" - }, - { - "field": "Microsoft.Compute/virtualMachines/extensions/Publisher", - "equals": "Microsoft.Azure.ChangeTrackingAndInventory" - }, - { - "field": "Microsoft.Compute/virtualMachines/extensions/provisioningState", - "equals": "Succeeded" - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Audit API Apps that are not using custom domains", - "policyType": "BuiltIn", - "mode": "All", - "description": "Use of custom domains protects a API app from common attacks such as phishing and other DNS-related attacks.", - "metadata": { - "version": "1.0.0-deprecated", - "category": "Security Center", - "deprecated": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "allof": [ - { - "field": "type", - "equals": "microsoft.Web/sites" - }, - { - "anyof": [ - { - "field": "kind", - "equals": "api" - }, - { - "field": "kind", - "equals": "apiApp" - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Security/complianceResults", - "name": "UsedCustomDomains", - "existenceCondition": { - "field": "Microsoft.Security/complianceResults/resourceStatus", - "in": [ - "OffByPolicy", - "Healthy" - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1399 - Controlled Maintenance", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Maintenance control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1399" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1221 - Least Functionality | Authorized Software / Whitelisting", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Configuration Management control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1221" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Show audit results from Windows VMs configurations in \u0027System Audit Policies - Account Management\u0027", - "policyType": "BuiltIn", - "mode": "All", - "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: \u0027System Audit Policies - Account Management\u0027. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol", - "metadata": { - "version": "1.0.0-deprecated", - "category": "Guest Configuration", - "deprecated": true - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "dsvm-windows" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - } - ] - }, - "then": { - "effect": "auditIfNotExists", - "details": { - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "AzureBaseline_SystemAuditPoliciesAccountManagement", - "existenceCondition": { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus", - "equals": "Compliant" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Management ports should be closed on your virtual machines", - "policyType": "BuiltIn", - "mode": "All", - "description": "Open remote management ports are exposing your VM to a high level of risk from Internet-based attacks. These attacks attempt to brute force credentials to gain admin access to the machine.", - "metadata": { - "version": "3.0.0", - "category": "Security Center" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "in": [ - "Microsoft.Compute/virtualMachines", - "Microsoft.ClassicCompute/virtualMachines" - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Security/assessments", - "name": "00000000-0000-0000-0000-000000000000", - "existenceCondition": { - "field": "Microsoft.Security/assessments/status.code", - "in": [ - "NotApplicable", - "Healthy" - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1493 - System Security Plan", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Planning control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1493" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Only secure connections to your Azure Cache for Redis should be enabled", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Audit enabling of only connections via SSL to Azure Cache for Redis. Use of secure connections ensures authentication between the server and the service and protects data in transit from network layer attacks such as man-in-the-middle, eavesdropping, and session-hijacking", - "metadata": { - "version": "1.0.0", - "category": "Cache" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "The effect determines what happens when the policy rule is evaluated to match" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Cache/redis" - }, - { - "field": "Microsoft.Cache/Redis/enableNonSslPort", - "equals": "true" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Deploy prerequisites to audit Windows VMs that do not restrict the minimum password length to 14 characters", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines that do not restrict the minimum password length to 14 characters. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol", - "metadata": { - "version": "2.2.0-deprecated", - "category": "Guest Configuration", - "requiredProviders": [ - "Microsoft.GuestConfiguration" - ], - "deprecated": true - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "dsvm-windows" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - } - ] - }, - "then": { - "effect": "deployIfNotExists", - "details": { - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "MinimumPasswordLength", - "deployment": { - "properties": { - "mode": "incremental", - "parameters": { - "vmName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "type": { - "value": "[field(\u0027type\u0027)]" - }, - "configurationName": { - "value": "MinimumPasswordLength" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "vmName": { - "type": "string" - }, - "location": { - "type": "string" - }, - "type": { - "type": "string" - }, - "configurationName": { - "type": "string" - } - }, - "resources": [ - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027microsoft.hybridcompute/machines\u0027))]", - "apiVersion": "2018-11-20", - "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/Microsoft.GuestConfiguration/\u0027, parameters(\u0027configurationName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "guestConfiguration": { - "name": "[parameters(\u0027configurationName\u0027)]", - "version": "1.*" - } - } - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2018-11-20", - "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/Microsoft.GuestConfiguration/\u0027, parameters(\u0027configurationName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "guestConfiguration": { - "name": "[parameters(\u0027configurationName\u0027)]", - "version": "1.*" - } - } - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2019-07-01", - "type": "Microsoft.Compute/virtualMachines", - "identity": { - "type": "SystemAssigned" - }, - "name": "[parameters(\u0027vmName\u0027)]", - "location": "[parameters(\u0027location\u0027)]" - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2019-07-01", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/AzurePolicyforWindows\u0027)]", - "type": "Microsoft.Compute/virtualMachines/extensions", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "publisher": "Microsoft.GuestConfiguration", - "type": "ConfigurationforWindows", - "typeHandlerVersion": "1.1", - "autoUpgradeMinorVersion": true, - "settings": {}, - "protectedSettings": {} - }, - "dependsOn": [ - "[concat(\u0027Microsoft.Compute/virtualMachines/\u0027,parameters(\u0027vmName\u0027),\u0027/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/\u0027,parameters(\u0027configurationName\u0027))]" - ] - } - ] - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1256 - Contingency Plan | Identify Critical Assets", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Contingency Planning control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1256" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Service Bus should use a virtual network service endpoint", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "This policy audits any Service Bus not configured to use a virtual network service endpoint. The resource type Microsoft.ServiceBus/namespaces/virtualNetworkRules is deprecated in the latest API version.", - "metadata": { - "version": "1.0.0-deprecated", - "category": "Network", - "deprecated": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.ServiceBus/namespaces" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.ServiceBus/namespaces/virtualNetworkRules", - "existenceCondition": { - "field": "Microsoft.ServiceBus/namespaces/virtualNetworkRules/virtualNetworkSubnetId", - "exists": "true" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Configure Azure Defender for DNS to be enabled", - "policyType": "BuiltIn", - "mode": "All", - "description": "Azure Defender for DNS provides an additional layer of protection for your cloud resources by continuously monitoring all DNS queries from your Azure resources. Azure Defender alerts you about suspicious activity at the DNS layer. Learn more about the capabilities of Azure Defender for DNS at https://aka.ms/defender-for-dns . Enabling this Azure Defender plan results in charges. Learn about the pricing details per region on Security Center\u0027s pricing page: https://aka.ms/pricing-security-center .", - "metadata": { - "version": "1.0.1", - "category": "Security Center" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Resources/subscriptions" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Security/pricings", - "name": "Dns", - "deploymentScope": "subscription", - "existenceScope": "subscription", - "roleDefinitionIds": [ - "/providers/Microsoft.Authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "existenceCondition": { - "field": "Microsoft.Security/pricings/pricingTier", - "equals": "Standard" - }, - "deployment": { - "location": "westeurope", - "properties": { - "mode": "incremental", - "parameters": {}, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": {}, - "variables": {}, - "resources": [ - { - "type": "Microsoft.Security/pricings", - "apiVersion": "2018-06-01", - "name": "Dns", - "properties": { - "pricingTier": "Standard" - } - } - ], - "outputs": {} - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Audit Windows machines that do not have a minimum password age of 1 day", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if Windows machines that do not have a minimum password age of 1 day", - "metadata": { - "category": "Guest Configuration", - "version": "2.0.0", - "requiredProviders": [ - "Microsoft.GuestConfiguration" - ], - "guestConfiguration": { - "name": "MinimumPasswordAge", - "version": "1.*" - } - }, - "parameters": { - "IncludeArcMachines": { - "type": "String", - "metadata": { - "displayName": "Include Arc connected servers", - "description": "By selecting this option, you agree to be charged monthly per Arc connected machine.", - "portalReview": "true" - }, - "allowedValues": [ - "true", - "false" - ], - "defaultValue": "false" - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of this policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "dsvm-win*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "value": "[parameters(\u0027IncludeArcMachines\u0027)]", - "equals": "true" - }, - { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.ConnectedVMwarevSphere/virtualMachines" - }, - { - "field": "Microsoft.ConnectedVMwarevSphere/virtualMachines/osProfile.osType", - "like": "windows*" - } - ] - } - ] - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "MinimumPasswordAge", - "existenceCondition": { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus", - "equals": "Compliant" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Deploy Diagnostic Settings for Stream Analytics to Log Analytics workspace", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Deploys the diagnostic settings for Stream Analytics to stream to a regional Log Analytics workspace when any Stream Analytics which is missing this diagnostic settings is created or updated.", - "metadata": { - "version": "1.0.0", - "category": "Monitoring" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - }, - "profileName": { - "type": "String", - "metadata": { - "displayName": "Profile name", - "description": "The diagnostic settings profile name" - }, - "defaultValue": "setbypolicy_logAnalytics" - }, - "logAnalytics": { - "type": "String", - "metadata": { - "displayName": "Log Analytics workspace", - "description": "Select Log Analytics workspace from dropdown list. If this workspace is outside of the scope of the assignment you must manually grant \u0027Log Analytics Contributor\u0027 permissions (or similar) to the policy assignment\u0027s principal ID.", - "strongType": "omsWorkspace", - "assignPermissions": true - } - }, - "metricsEnabled": { - "type": "String", - "metadata": { - "displayName": "Enable metrics", - "description": "Whether to enable metrics stream to the Log Analytics workspace - True or False" - }, - "allowedValues": [ - "True", - "False" - ], - "defaultValue": "False" - }, - "logsEnabled": { - "type": "String", - "metadata": { - "displayName": "Enable logs", - "description": "Whether to enable logs stream to the Log Analytics workspace - True or False" - }, - "allowedValues": [ - "True", - "False" - ], - "defaultValue": "True" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.StreamAnalytics/streamingjobs" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Insights/diagnosticSettings", - "name": "[parameters(\u0027profileName\u0027)]", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.Insights/diagnosticSettings/logs.enabled", - "equals": "[parameters(\u0027logsEnabled\u0027)]" - }, - { - "field": "Microsoft.Insights/diagnosticSettings/metrics.enabled", - "equals": "[parameters(\u0027metricsEnabled\u0027)]" - } - ] - }, - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000", - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "deployment": { - "properties": { - "mode": "incremental", - "template": { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "resourceName": { - "type": "string" - }, - "location": { - "type": "string" - }, - "logAnalytics": { - "type": "string" - }, - "metricsEnabled": { - "type": "string" - }, - "logsEnabled": { - "type": "string" - }, - "profileName": { - "type": "string" - } - }, - "variables": {}, - "resources": [ - { - "type": "Microsoft.StreamAnalytics/streamingjobs/providers/diagnosticSettings", - "apiVersion": "2017-05-01-preview", - "name": "[concat(parameters(\u0027resourceName\u0027), \u0027/\u0027, \u0027Microsoft.Insights/\u0027, parameters(\u0027profileName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "dependsOn": [], - "properties": { - "workspaceId": "[parameters(\u0027logAnalytics\u0027)]", - "metrics": [ - { - "category": "AllMetrics", - "enabled": "[parameters(\u0027metricsEnabled\u0027)]", - "retentionPolicy": { - "enabled": false, - "days": 0 - } - } - ], - "logs": [ - { - "category": "Execution", - "enabled": "[parameters(\u0027logsEnabled\u0027)]" - }, - { - "category": "Authoring", - "enabled": "[parameters(\u0027logsEnabled\u0027)]" - } - ] - } - } - ], - "outputs": {} - }, - "parameters": { - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "resourceName": { - "value": "[field(\u0027name\u0027)]" - }, - "logAnalytics": { - "value": "[parameters(\u0027logAnalytics\u0027)]" - }, - "metricsEnabled": { - "value": "[parameters(\u0027metricsEnabled\u0027)]" - }, - "logsEnabled": { - "value": "[parameters(\u0027logsEnabled\u0027)]" - }, - "profileName": { - "value": "[parameters(\u0027profileName\u0027)]" - } - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Configure Azure Automation accounts to disable public network access", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Disable public network access for Azure Automation account so that it isn\u0027t accessible over the public internet. This configuration helps protect them against data leakage risks. You can limit exposure of the your Automation account resources by creating private endpoints instead. Learn more at: https://aka.ms/privateendpoints.", - "metadata": { - "category": "Automation", - "version": "1.0.0" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Modify", - "Disabled" - ], - "defaultValue": "Modify" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Automation/automationAccounts" - }, - { - "field": "Microsoft.Automation/automationAccounts/publicNetworkAccess", - "notEquals": false - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "conflictEffect": "audit", - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "operations": [ - { - "operation": "addOrReplace", - "field": "Microsoft.Automation/automationAccounts/publicNetworkAccess", - "value": false - } - ] - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1268 - Alternate Storage Site", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Contingency Planning control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1268" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1122 - Audit Review, Analysis, And Reporting | Permitted Actions", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Audit and Accountability control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1122" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1231 - Configuration Management Plan", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Configuration Management control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1231" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Configure Windows Virtual Machines to be associated with a Data Collection Rule", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Deploy Association to link Windows virtual machines to specified Data Collection Rule. The list of locations and OS images are updated over time as support is increased.", - "metadata": { - "version": "1.0.0", - "category": "Monitoring" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy." - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - }, - "listOfWindowsImageIdToInclude": { - "type": "Array", - "metadata": { - "displayName": "Optional: List of virtual machine images that have supported Windows OS to add to scope", - "description": "Example values: \u0027/subscriptions/\u003CsubscriptionId\u003E/resourceGroups/YourResourceGroup/providers/Microsoft.Compute/images/ContosoStdImage\u0027" - }, - "defaultValue": [] - }, - "dcrResourceId": { - "type": "String", - "metadata": { - "displayName": "Data Collection Rule Resource Id", - "description": "Resource Id of the Data Collection Rule to be applied on the virtual machines in scope.", - "strongType": "Microsoft.Insights/dataCollectionRules" - } - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "field": "location", - "in": [ - "australiacentral", - "australiacentral2", - "australiaeast", - "australiasoutheast", - "brazilsouth", - "brazilsoutheast", - "canadacentral", - "canadaeast", - "centralindia", - "centralus", - "eastasia", - "eastus2euap", - "eastus", - "eastus2", - "francecentral", - "francesouth", - "germanywestcentral", - "japaneast", - "japanwest", - "jioindiawest", - "koreacentral", - "koreasouth", - "northcentralus", - "northeurope", - "norwayeast", - "norwaywest", - "southafricanorth", - "southcentralus", - "southeastasia", - "southindia", - "switzerlandnorth", - "switzerlandwest", - "uaenorth", - "uksouth", - "ukwest", - "westcentralus", - "westeurope", - "westindia", - "westus", - "westus2" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageId", - "in": "[parameters(\u0027listOfWindowsImageIdToInclude\u0027)]" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "in": [ - "2008-R2-SP1", - "2008-R2-SP1-smalldisk", - "2012-Datacenter", - "2012-Datacenter-smalldisk", - "2012-R2-Datacenter", - "2012-R2-Datacenter-smalldisk", - "2016-Datacenter", - "2016-Datacenter-Server-Core", - "2016-Datacenter-Server-Core-smalldisk", - "2016-Datacenter-smalldisk", - "2016-Datacenter-with-Containers", - "2016-Datacenter-with-RDSH", - "2019-Datacenter", - "2019-Datacenter-Core", - "2019-Datacenter-Core-smalldisk", - "2019-Datacenter-Core-with-Containers", - "2019-Datacenter-Core-with-Containers-smalldisk", - "2019-Datacenter-smalldisk", - "2019-Datacenter-with-Containers", - "2019-Datacenter-with-Containers-smalldisk", - "2019-Datacenter-zhcn", - "2022-datacenter", - "2022-datacenter-azure-edition", - "2022-datacenter-azure-edition-core", - "2022-datacenter-azure-edition-core-smalldisk", - "2022-datacenter-azure-edition-smalldisk", - "2022-datacenter-core", - "2022-datacenter-core-g2", - "2022-datacenter-core-smalldisk", - "2022-datacenter-core-smalldisk-g2", - "2022-datacenter-g2", - "2022-datacenter-smalldisk", - "2022-datacenter-smalldisk-g2" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServerSemiAnnual" - }, - { - "field": "Microsoft.Compute/imageSKU", - "in": [ - "Datacenter-Core-1709-smalldisk", - "Datacenter-Core-1709-with-Containers-smalldisk", - "Datacenter-Core-1803-with-Containers-smalldisk" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServerHPCPack" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServerHPCPack" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2016" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2016-BYOL" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2012R2" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2012R2-BYOL" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftRServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "MLServer-WS2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftVisualStudio" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "VisualStudio", - "Windows" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftDynamicsAX" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Dynamics" - }, - { - "field": "Microsoft.Compute/imageSKU", - "equals": "Pre-Req-AX7-Onebox-U8" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "windows-data-science-vm" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsDesktop" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Windows-10" - } - ] - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Insights/dataCollectionRuleAssociations", - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000", - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "existenceCondition": { - "field": "Microsoft.Insights/dataCollectionRuleAssociations/dataCollectionRuleId", - "equals": "[parameters(\u0027dcrResourceId\u0027)]" - }, - "deployment": { - "properties": { - "mode": "incremental", - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "resourceName": { - "type": "string" - }, - "location": { - "type": "string" - }, - "dcrResourceId": { - "type": "string" - } - }, - "variables": { - "associationName": "[concat(\u0027assoc-\u0027, uniqueString(parameters(\u0027dcrResourceId\u0027)))]" - }, - "resources": [ - { - "name": "[variables(\u0027associationName\u0027)]", - "type": "Microsoft.Insights/dataCollectionRuleAssociations", - "apiVersion": "2021-04-01", - "properties": { - "dataCollectionRuleId": "[parameters(\u0027dcrResourceId\u0027)]" - }, - "scope": "[concat(\u0027Microsoft.Compute/virtualMachines/\u0027, parameters(\u0027resourceName\u0027))]" - } - ] - }, - "parameters": { - "resourceName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "dcrResourceId": { - "value": "[parameters(\u0027dcrResourceId\u0027)]" - } - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Resource logs in Azure Kubernetes Service should be enabled", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Azure Kubernetes Service\u0027s resource logs can help recreate activity trails when investigating security incidents. Enable it to make sure the logs will exist when needed", - "metadata": { - "version": "1.0.0", - "category": "Kubernetes" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - }, - "requiredRetentionDays": { - "type": "String", - "metadata": { - "displayName": "Required retention (days)", - "description": "The required resource logs retention (in days)" - }, - "defaultValue": "365" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.ContainerService/managedClusters" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Insights/diagnosticSettings", - "existenceCondition": { - "count": { - "field": "Microsoft.Insights/diagnosticSettings/logs[*]", - "where": { - "anyOf": [ - { - "allOf": [ - { - "field": "Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.enabled", - "equals": "true" - }, - { - "anyOf": [ - { - "field": "Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.days", - "equals": "0" - }, - { - "value": "[padLeft(current(\u0027Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.days\u0027), 3, \u00270\u0027)]", - "greaterOrEquals": "[padLeft(parameters(\u0027requiredRetentionDays\u0027), 3, \u00270\u0027)]" - } - ] - }, - { - "field": "Microsoft.Insights/diagnosticSettings/logs.enabled", - "equals": "true" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Insights/diagnosticSettings/logs.enabled", - "equals": "true" - }, - { - "anyOf": [ - { - "field": "Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.enabled", - "notEquals": "true" - }, - { - "field": "Microsoft.Insights/diagnosticSettings/storageAccountId", - "exists": false - } - ] - } - ] - } - ] - } - }, - "greaterOrEquals": 1 - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Configure Azure Activity logs to stream to specified Log Analytics workspace", - "policyType": "BuiltIn", - "mode": "All", - "description": "Deploys the diagnostic settings for Azure Activity to stream subscriptions audit logs to a Log Analytics workspace to monitor subscription-level events", - "metadata": { - "version": "1.0.0", - "category": "Monitoring" - }, - "parameters": { - "logAnalytics": { - "type": "String", - "metadata": { - "displayName": "Primary Log Analytics workspace", - "description": "If this workspace is outside of the scope of the assignment you must manually grant \u0027Log Analytics Contributor\u0027 permissions (or similar) to the policy assignment\u0027s principal ID.", - "strongType": "omsWorkspace", - "assignPermissions": true - } - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - }, - "logsEnabled": { - "type": "String", - "metadata": { - "displayName": "Enable logs", - "description": "Whether to enable logs stream to the Log Analytics workspace - True or False" - }, - "allowedValues": [ - "True", - "False" - ], - "defaultValue": "True" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Resources/subscriptions" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Insights/diagnosticSettings", - "deploymentScope": "Subscription", - "existenceScope": "Subscription", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.Insights/diagnosticSettings/logs.enabled", - "equals": "[parameters(\u0027logsEnabled\u0027)]" - }, - { - "field": "Microsoft.Insights/diagnosticSettings/workspaceId", - "equals": "[parameters(\u0027logAnalytics\u0027)]" - } - ] - }, - "deployment": { - "location": "northeurope", - "properties": { - "mode": "incremental", - "template": { - "$schema": "https://schema.management.azure.com/schemas/2018-05-01/subscriptionDeploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "logAnalytics": { - "type": "string" - }, - "logsEnabled": { - "type": "string" - } - }, - "variables": {}, - "resources": [ - { - "name": "subscriptionToLa", - "type": "Microsoft.Insights/diagnosticSettings", - "apiVersion": "2017-05-01-preview", - "location": "Global", - "properties": { - "workspaceId": "[parameters(\u0027logAnalytics\u0027)]", - "logs": [ - { - "category": "Administrative", - "enabled": "[parameters(\u0027logsEnabled\u0027)]" - }, - { - "category": "Security", - "enabled": "[parameters(\u0027logsEnabled\u0027)]" - }, - { - "category": "ServiceHealth", - "enabled": "[parameters(\u0027logsEnabled\u0027)]" - }, - { - "category": "Alert", - "enabled": "[parameters(\u0027logsEnabled\u0027)]" - }, - { - "category": "Recommendation", - "enabled": "[parameters(\u0027logsEnabled\u0027)]" - }, - { - "category": "Policy", - "enabled": "[parameters(\u0027logsEnabled\u0027)]" - }, - { - "category": "Autoscale", - "enabled": "[parameters(\u0027logsEnabled\u0027)]" - }, - { - "category": "ResourceHealth", - "enabled": "[parameters(\u0027logsEnabled\u0027)]" - } - ] - } - } - ], - "outputs": {} - }, - "parameters": { - "logAnalytics": { - "value": "[parameters(\u0027logAnalytics\u0027)]" - }, - "logsEnabled": { - "value": "[parameters(\u0027logsEnabled\u0027)]" - } - } - } - }, - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000", - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ] - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1082 - Information Sharing", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Access Control control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1082" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Show audit results from Windows VMs that do not have a maximum password age of 70 days", - "policyType": "BuiltIn", - "mode": "All", - "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines that do not have a maximum password age of 70 days. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol", - "metadata": { - "version": "1.0.0-deprecated", - "category": "Guest Configuration", - "deprecated": true - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "dsvm-windows" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - } - ] - }, - "then": { - "effect": "auditIfNotExists", - "details": { - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "MaximumPasswordAge", - "existenceCondition": { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus", - "equals": "Compliant" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Infrastructure encryption should be enabled for Azure Database for PostgreSQL servers", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Enable infrastructure encryption for Azure Database for PostgreSQL servers to have higher level of assurance that the data is secure. When infrastructure encryption is enabled, the data at rest is encrypted twice using FIPS 140-2 compliant Microsoft managed keys", - "metadata": { - "version": "1.0.0", - "category": "SQL" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.DBforPostgreSQL/servers" - }, - { - "field": "Microsoft.DBforPostgreSQL/servers/infrastructureEncryption", - "notEquals": "Enabled" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Deploy Diagnostic Settings for Data Lake Storage Gen1 to Log Analytics workspace", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Deploys the diagnostic settings for Data Lake Storage Gen1 to stream to a regional Log Analytics workspace when any Data Lake Storage Gen1 which is missing this diagnostic settings is created or updated.", - "metadata": { - "version": "1.0.0", - "category": "Monitoring" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - }, - "profileName": { - "type": "String", - "metadata": { - "displayName": "Profile name", - "description": "The diagnostic settings profile name" - }, - "defaultValue": "setbypolicy_logAnalytics" - }, - "logAnalytics": { - "type": "String", - "metadata": { - "displayName": "Log Analytics workspace", - "description": "Select Log Analytics workspace from dropdown list. If this workspace is outside of the scope of the assignment you must manually grant \u0027Log Analytics Contributor\u0027 permissions (or similar) to the policy assignment\u0027s principal ID.", - "strongType": "omsWorkspace", - "assignPermissions": true - } - }, - "metricsEnabled": { - "type": "String", - "metadata": { - "displayName": "Enable metrics", - "description": "Whether to enable metrics stream to the Log Analytics workspace - True or False" - }, - "allowedValues": [ - "True", - "False" - ], - "defaultValue": "False" - }, - "logsEnabled": { - "type": "String", - "metadata": { - "displayName": "Enable logs", - "description": "Whether to enable logs stream to the Log Analytics workspace - True or False" - }, - "allowedValues": [ - "True", - "False" - ], - "defaultValue": "True" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.DataLakeStore/accounts" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Insights/diagnosticSettings", - "name": "[parameters(\u0027profileName\u0027)]", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.Insights/diagnosticSettings/logs.enabled", - "equals": "[parameters(\u0027logsEnabled\u0027)]" - }, - { - "field": "Microsoft.Insights/diagnosticSettings/metrics.enabled", - "equals": "[parameters(\u0027metricsEnabled\u0027)]" - } - ] - }, - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000", - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "deployment": { - "properties": { - "mode": "incremental", - "template": { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "resourceName": { - "type": "string" - }, - "location": { - "type": "string" - }, - "logAnalytics": { - "type": "string" - }, - "metricsEnabled": { - "type": "string" - }, - "logsEnabled": { - "type": "string" - }, - "profileName": { - "type": "string" - } - }, - "variables": {}, - "resources": [ - { - "type": "Microsoft.DataLakeStore/accounts/providers/diagnosticSettings", - "apiVersion": "2017-05-01-preview", - "name": "[concat(parameters(\u0027resourceName\u0027), \u0027/\u0027, \u0027Microsoft.Insights/\u0027, parameters(\u0027profileName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "dependsOn": [], - "properties": { - "workspaceId": "[parameters(\u0027logAnalytics\u0027)]", - "metrics": [ - { - "category": "AllMetrics", - "enabled": "[parameters(\u0027metricsEnabled\u0027)]", - "retentionPolicy": { - "enabled": false, - "days": 0 - } - } - ], - "logs": [ - { - "category": "Audit", - "enabled": "[parameters(\u0027logsEnabled\u0027)]" - }, - { - "category": "Requests", - "enabled": "[parameters(\u0027logsEnabled\u0027)]" - } - ] - } - } - ], - "outputs": {} - }, - "parameters": { - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "resourceName": { - "value": "[field(\u0027name\u0027)]" - }, - "logAnalytics": { - "value": "[parameters(\u0027logAnalytics\u0027)]" - }, - "metricsEnabled": { - "value": "[parameters(\u0027metricsEnabled\u0027)]" - }, - "logsEnabled": { - "value": "[parameters(\u0027logsEnabled\u0027)]" - }, - "profileName": { - "value": "[parameters(\u0027profileName\u0027)]" - } - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1372 - Incident Reporting", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Incident Response control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1372" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1038 - Least Privilege | Privileged Accounts", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Access Control control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1038" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Configure Azure HDInsight clusters with private endpoints", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Private endpoints connect your virtual networks to Azure services without a public IP address at the source or destination. By mapping private endpoints to Azure HDInsight clusters, you can reduce data leakage risks. Learn more about private links at: https://aka.ms/hdi.pl.", - "metadata": { - "version": "1.0.0", - "category": "HDInsight" - }, - "parameters": { - "privateEndpointSubnetId": { - "type": "String", - "metadata": { - "displayName": "Private endpoint subnet ID", - "description": "A subnet with private endpoint network policies disabled.", - "strongType": "Microsoft.Network/virtualNetworks/subnets" - } - }, - "groupId": { - "type": "String", - "metadata": { - "displayName": "Group ID", - "description": "Target group id (sub resource type) for the private endpoint." - } - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HDInsight/clusters" - }, - { - "anyOf": [ - { - "field": "Microsoft.HDInsight/clusters/networkProperties.privateLink", - "equals": "Enabled" - }, - { - "count": { - "field": "Microsoft.HDInsight/clusters/privateLinkConfigurations[*]" - }, - "greaterOrEquals": 1 - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.HDInsight/clusters/privateEndpointConnections", - "existenceCondition": { - "field": "Microsoft.HDInsight/clusters/privateEndpointConnections/privateLinkServiceConnectionState.status", - "equals": "Approved" - }, - "roleDefinitionIds": [ - "/providers/Microsoft.Authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "deployment": { - "properties": { - "mode": "incremental", - "parameters": { - "name": { - "value": "[field(\u0027name\u0027)]" - }, - "serviceId": { - "value": "[field(\u0027id\u0027)]" - }, - "groupId": { - "value": "[parameters(\u0027groupId\u0027)]" - }, - "privateEndpointSubnetId": { - "value": "[parameters(\u0027privateEndpointSubnetId\u0027)]" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "name": { - "type": "string" - }, - "serviceId": { - "type": "string" - }, - "groupId": { - "type": "string" - }, - "privateEndpointSubnetId": { - "type": "string" - } - }, - "variables": { - "privateEndpointName": "[concat(\u0027pe-\u0027,substring(parameters(\u0027name\u0027),0,min(length(parameters(\u0027name\u0027)),50)),\u0027-\u0027,uniquestring(deployment().name))]" - }, - "resources": [ - { - "type": "Microsoft.Resources/deployments", - "name": "[variables(\u0027privateEndpointName\u0027)]", - "apiVersion": "2020-06-01", - "properties": { - "mode": "Incremental", - "expressionEvaluationOptions": { - "scope": "inner" - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "serviceId": { - "type": "string" - }, - "privateEndpointSubnetId": { - "type": "string" - }, - "groupId": { - "type": "string" - }, - "subnetLocation": { - "type": "string" - } - }, - "variables": { - "privateEndpointName": "[deployment().name]" - }, - "resources": [ - { - "name": "[variables(\u0027privateEndpointName\u0027)]", - "type": "Microsoft.Network/privateEndpoints", - "apiVersion": "2020-07-01", - "location": "[parameters(\u0027subnetLocation\u0027)]", - "tags": {}, - "properties": { - "subnet": { - "id": "[parameters(\u0027privateEndpointSubnetId\u0027)]" - }, - "privateLinkServiceConnections": [ - { - "name": "[variables(\u0027privateEndpointName\u0027)]", - "properties": { - "privateLinkServiceId": "[parameters(\u0027serviceId\u0027)]", - "groupIds": [ - "[parameters(\u0027groupId\u0027)]" - ], - "requestMessage": "Request to auto approve." - } - } - ], - "manualPrivateLinkServiceConnections": [] - } - } - ] - }, - "parameters": { - "serviceId": { - "value": "[parameters(\u0027serviceId\u0027)]" - }, - "groupId": { - "value": "[parameters(\u0027groupId\u0027)]" - }, - "privateEndpointSubnetId": { - "value": "[parameters(\u0027privateEndpointSubnetId\u0027)]" - }, - "subnetLocation": { - "value": "[reference(first(take(split(parameters(\u0027privateEndpointSubnetId\u0027),\u0027/subnets\u0027),1)),\u00272020-07-01\u0027,\u0027Full\u0027).location]" - } - } - } - } - ] - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Endpoint protection solution should be installed on virtual machine scale sets", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Audit the existence and health of an endpoint protection solution on your virtual machines scale sets, to protect them from threats and vulnerabilities.", - "metadata": { - "version": "3.0.0", - "category": "Security Center" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Compute/virtualMachineScaleSets" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Security/assessments", - "name": "00000000-0000-0000-0000-000000000000", - "existenceCondition": { - "field": "Microsoft.Security/assessments/status.code", - "in": [ - "NotApplicable", - "Healthy" - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1649 - Collaborative Computing Devices", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Communications Protection control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1649" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Metric alert rules should be configured on Batch accounts", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Audit configuration of metric alert rules on Batch account to enable the required metric", - "metadata": { - "version": "1.0.0", - "category": "Batch" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - }, - "metricName": { - "type": "String", - "metadata": { - "displayName": "Metric name", - "description": "The metric name that an alert rule must be enabled on" - } - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Batch/batchAccounts" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Insights/alertRules", - "existenceScope": "Subscription", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.Insights/alertRules/isEnabled", - "equals": "true" - }, - { - "field": "Microsoft.Insights/alertRules/condition.dataSource.metricName", - "equals": "[parameters(\u0027metricName\u0027)]" - }, - { - "field": "Microsoft.Insights/alertRules/condition.dataSource.resourceUri", - "equals": "[concat(\u0027/subscriptions/\u0027, subscription().subscriptionId, \u0027/resourcegroups/\u0027, resourceGroup().name, \u0027/providers/Microsoft.Batch/batchAccounts/\u0027, field(\u0027name\u0027))]" - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Configure virtual machines to be onboarded to Azure Automanage", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Azure Automanage enrolls, configures, and monitors virtual machines with best practice as defined in the Microsoft Cloud Adoption Framework for Azure. Use this policy to apply Automanage to your selected scope.", - "metadata": { - "version": "4.1.0-version-deprecated", - "category": "Automanage", - "deprecated": true - }, - "parameters": { - "automanageAccount": { - "type": "String", - "metadata": { - "displayName": "Automanage account", - "description": "The Automanage account is an Azure managed identity under which virtual machine operations are performed. If this account is outside of the scope of the assignment you must manually grant \u0027Contributor\u0027 permissions (or similar) on the account to the policy assignment\u0027s principal ID.", - "strongType": "Microsoft.Automanage/accounts", - "assignPermissions": true - } - }, - "configurationProfileAssignment": { - "type": "String", - "metadata": { - "displayName": "Configuration profile", - "description": "The management services provided are based on whether the machine is intended to be used in a dev/test environment or production." - }, - "allowedValues": [ - "Azure virtual machine best practices \u2013 Production", - "Azure virtual machine best practices \u2013 Dev/test" - ], - "defaultValue": "Azure virtual machine best practices \u2013 Production" - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of this policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "location", - "in": [ - "eastus", - "eastus2", - "westus", - "westus2", - "centralus", - "southcentralus", - "westcentralus", - "northeurope", - "westeurope", - "canadacentral", - "japaneast", - "uksouth", - "australiaeast", - "australiasoutheast", - "southeastasia" - ] - }, - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "dsvm-windows" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.imageReference.id", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.imageReference.sku", - "exists": "false" - } - ] - }, - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "microsoft-aks", - "qubole-inc", - "datastax", - "couchbase", - "scalegrid", - "checkpoint", - "paloaltonetworks", - "debian" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "OpenLogic" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "CentOS*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "6*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "OpenLogic" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "CentOS*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "8*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "RedHat" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "RHEL", - "RHEL-HA", - "RHEL-SAP", - "RHEL-SAP-APPS", - "RHEL-SAP-HA", - "RHEL-SAP-HANA", - "rhel-raw" - ] - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "6*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "RedHat" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "RHEL", - "RHEL-HA", - "RHEL-SAP", - "RHEL-SAP-APPS", - "RHEL-SAP-HA", - "RHEL-SAP-HANA", - "rhel-raw" - ] - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "8*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "RedHat" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "osa", - "rhel-byos" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "cis-centos-7-l1", - "cis-centos-7-v2-1-1-l1", - "cis-nginx-centos-7-v1-1-0-l1", - "cis-oracle-linux-7-v2-0-0-l1", - "cis-postgresql-11-centos-linux-7-level-1", - "cis-rhel-7-l2", - "cis-rhel-7-v2-2-0-l1", - "cis-suse-linux-12-v2-0-0-l1", - "cis-ubuntu-linux-1604-v1-0-0-l1", - "cis-ubuntu-linux-1804-l1" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "credativ" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Suse" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "SLES*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "11*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Suse" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "SLES*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "15*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Canonical" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "UbuntuServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "12*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "linux-data-science-vm-ubuntu", - "azureml" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloudera" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "cloudera-centos-os" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "6*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloudera" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "cloudera-altus-centos-os" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "linux*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.linuxConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Linux*" - } - ] - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.imageReference.id", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.imageReference.sku", - "exists": "false" - } - ] - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "type": "Microsoft.Automanage/configurationProfileAssignments", - "name": "default", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.Automanage/configurationProfileAssignments/configurationProfile", - "equals": "[parameters(\u0027configurationProfileAssignment\u0027)]" - }, - { - "field": "Microsoft.Automanage/configurationProfileAssignments/accountId", - "equals": "[parameters(\u0027automanageAccount\u0027)]" - } - ] - }, - "deployment": { - "properties": { - "mode": "incremental", - "parameters": { - "machineName": { - "value": "[field(\u0027Name\u0027)]" - }, - "automanageAccount": { - "value": "[parameters(\u0027automanageAccount\u0027)]" - }, - "configurationProfileAssignment": { - "value": "[parameters(\u0027configurationProfileAssignment\u0027)]" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "machineName": { - "type": "String" - }, - "automanageAccount": { - "type": "string" - }, - "configurationProfileAssignment": { - "type": "string" - } - }, - "resources": [ - { - "type": "Microsoft.Compute/virtualMachines/providers/configurationProfileAssignments", - "apiVersion": "2020-06-30-preview", - "name": "[concat(parameters(\u0027machineName\u0027), \u0027/Microsoft.Automanage/\u0027, \u0027default\u0027)]", - "properties": { - "configurationProfile": "[parameters(\u0027configurationProfileAssignment\u0027)]", - "accountId": "[parameters(\u0027automanageAccount\u0027)]" - } - } - ] - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1396 - Controlled Maintenance", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Maintenance control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1396" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Flow logs should be enabled for every network security group", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Audit for flow log resources to verify if flow log status is enabled. Enabling flow logs allows to log information about IP traffic flowing through network security group. It can be used for optimizing network flows, monitoring throughput, verifying compliance, detecting intrusions and more.", - "metadata": { - "version": "1.0.0", - "category": "Network" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allof": [ - { - "field": "type", - "equals": "Microsoft.Network/networkWatchers/flowLogs" - }, - { - "field": "Microsoft.Network/networkWatchers/flowLogs/enabled", - "equals": false - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1074 - Access Control For Mobile Devices", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Access Control control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1074" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Azure Device Update for IoT Hub accounts should use private link", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination. The Private Link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to Azure Device Update for IoT Hub accounts, data leakage risks are reduced.", - "metadata": { - "version": "1.0.0", - "category": "Internet of Things" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.DeviceUpdate/accounts" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.DeviceUpdate/accounts/privateEndpointConnections", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.DeviceUpdate/accounts/privateEndpointConnections/privateEndpoint", - "exists": "true" - }, - { - "field": "Microsoft.DeviceUpdate/accounts/privateEndpointConnections/provisioningState", - "equals": "Succeeded" - }, - { - "field": "Microsoft.DeviceUpdate/accounts/privateEndpointConnections/privateLinkServiceConnectionState.status", - "equals": "Approved" - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1527 - Access Agreements", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Personnel Security control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1527" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Deploy default Microsoft IaaSAntimalware extension for Windows Server", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "This policy deploys a Microsoft IaaSAntimalware extension with a default configuration when a VM is not configured with the antimalware extension.", - "metadata": { - "version": "1.0.0", - "category": "Compute" - }, - "parameters": {}, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "in": [ - "2008-R2-SP1", - "2008-R2-SP1-smalldisk", - "2012-Datacenter", - "2012-Datacenter-smalldisk", - "2012-R2-Datacenter", - "2012-R2-Datacenter-smalldisk", - "2016-Datacenter", - "2016-Datacenter-Server-Core", - "2016-Datacenter-Server-Core-smalldisk", - "2016-Datacenter-smalldisk", - "2016-Datacenter-with-Containers", - "2016-Datacenter-with-RDSH", - "2019-Datacenter", - "2019-Datacenter-Core", - "2019-Datacenter-Core-smalldisk", - "2019-Datacenter-Core-with-Containers", - "2019-Datacenter-Core-with-Containers-smalldisk", - "2019-Datacenter-smalldisk", - "2019-Datacenter-with-Containers", - "2019-Datacenter-with-Containers-smalldisk" - ] - } - ] - }, - "then": { - "effect": "deployIfNotExists", - "details": { - "type": "Microsoft.Compute/virtualMachines/extensions", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.Compute/virtualMachines/extensions/type", - "equals": "IaaSAntimalware" - }, - { - "field": "Microsoft.Compute/virtualMachines/extensions/publisher", - "equals": "Microsoft.Azure.Security" - } - ] - }, - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "deployment": { - "properties": { - "mode": "incremental", - "template": { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "vmName": { - "type": "string" - }, - "location": { - "type": "string" - }, - "ExclusionsPaths": { - "type": "string", - "defaultValue": "", - "metadata": { - "description": "Semicolon delimited list of file paths or locations to exclude from scanning" - } - }, - "ExclusionsExtensions": { - "type": "string", - "defaultValue": "", - "metadata": { - "description": "Semicolon delimited list of file extensions to exclude from scanning" - } - }, - "ExclusionsProcesses": { - "type": "string", - "defaultValue": "", - "metadata": { - "description": "Semicolon delimited list of process names to exclude from scanning" - } - }, - "RealtimeProtectionEnabled": { - "type": "string", - "defaultValue": "true", - "metadata": { - "description": "Indicates whether or not real time protection is enabled (default is true)" - } - }, - "ScheduledScanSettingsIsEnabled": { - "type": "string", - "defaultValue": "false", - "metadata": { - "description": "Indicates whether or not custom scheduled scan settings are enabled (default is false)" - } - }, - "ScheduledScanSettingsScanType": { - "type": "string", - "defaultValue": "Quick", - "metadata": { - "description": "Indicates whether scheduled scan setting type is set to Quick or Full (default is Quick)" - } - }, - "ScheduledScanSettingsDay": { - "type": "string", - "defaultValue": "7", - "metadata": { - "description": "Day of the week for scheduled scan (1-Sunday, 2-Monday, ..., 7-Saturday)" - } - }, - "ScheduledScanSettingsTime": { - "type": "string", - "defaultValue": "120", - "metadata": { - "description": "When to perform the scheduled scan, measured in minutes from midnight (0-1440). For example: 0 = 12AM, 60 = 1AM, 120 = 2AM." - } - } - }, - "resources": [ - { - "name": "[concat(parameters(\u0027vmName\u0027),\u0027/IaaSAntimalware\u0027)]", - "type": "Microsoft.Compute/virtualMachines/extensions", - "location": "[parameters(\u0027location\u0027)]", - "apiVersion": "2017-12-01", - "properties": { - "publisher": "Microsoft.Azure.Security", - "type": "IaaSAntimalware", - "typeHandlerVersion": "1.3", - "autoUpgradeMinorVersion": true, - "settings": { - "AntimalwareEnabled": true, - "RealtimeProtectionEnabled": "[parameters(\u0027RealtimeProtectionEnabled\u0027)]", - "ScheduledScanSettings": { - "isEnabled": "[parameters(\u0027ScheduledScanSettingsIsEnabled\u0027)]", - "day": "[parameters(\u0027ScheduledScanSettingsDay\u0027)]", - "time": "[parameters(\u0027ScheduledScanSettingsTime\u0027)]", - "scanType": "[parameters(\u0027ScheduledScanSettingsScanType\u0027)]" - }, - "Exclusions": { - "Extensions": "[parameters(\u0027ExclusionsExtensions\u0027)]", - "Paths": "[parameters(\u0027ExclusionsPaths\u0027)]", - "Processes": "[parameters(\u0027ExclusionsProcesses\u0027)]" - } - } - } - } - ] - }, - "parameters": { - "vmName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "RealtimeProtectionEnabled": { - "value": "true" - }, - "ScheduledScanSettingsIsEnabled": { - "value": "true" - } - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1342 - Authenticator Management | Hardware Token-Based Authentication", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Identification and Authentication control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1342" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1436 - Media Transport", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Media Protection control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1436" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Configure Azure SQL Server to disable public network access", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Disabling the public network access property shuts down public connectivity such that Azure SQL Server can only be accessed from a private endpoint. This configuration disables the public network access for all databases under the Azure SQL Server.", - "metadata": { - "category": "SQL", - "version": "1.0.0" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Modify", - "Disabled" - ], - "defaultValue": "Modify" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Sql/servers" - }, - { - "field": "Microsoft.Sql/servers/publicNetworkAccess", - "notEquals": "Disabled" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "conflictEffect": "audit", - "roleDefinitionIds": [ - "/providers/Microsoft.Authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "operations": [ - { - "operation": "addOrReplace", - "field": "Microsoft.Sql/servers/publicNetworkAccess", - "value": "Disabled" - } - ] - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1224 - Information System Component Inventory | Updates During Installations / Removals", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Configuration Management control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1224" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1148 - Security Assessments | Independent Assessors", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Security Assessment and Authorization control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1148" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1418 - Nonlocal Maintenance | Comparable Security / Sanitization", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Maintenance control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1418" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Azure Defender for App Service should be enabled", - "policyType": "BuiltIn", - "mode": "All", - "description": "Azure Defender for App Service leverages the scale of the cloud, and the visibility that Azure has as a cloud provider, to monitor for common web app attacks.", - "metadata": { - "version": "1.0.3", - "category": "Security Center" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Resources/subscriptions" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Security/pricings", - "name": "AppServices", - "existenceScope": "subscription", - "existenceCondition": { - "field": "Microsoft.Security/pricings/pricingTier", - "equals": "Standard" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Configure BotService resources with private endpoints", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Private endpoints connect your virtual network to Azure services without a public IP address at the source or destination. By mapping private endpoints to your BotService resource, you can reduce data leakage risks.", - "metadata": { - "version": "1.0.0", - "category": "Bot Service" - }, - "parameters": { - "privateEndpointSubnetId": { - "type": "String", - "metadata": { - "displayName": "Private Endpoint Subnet Id", - "description": "A subnet with private endpoint network policies disabled.", - "strongType": "Microsoft.Network/virtualNetworks/subnets" - } - }, - "privateEndpointGroupId": { - "type": "String", - "metadata": { - "displayName": "Private Endpoint Group Id", - "description": "A group Id for the private endpoint for a BotService resource." - }, - "allowedValues": [ - "Bot", - "Token" - ], - "defaultValue": "Bot" - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.BotService/botServices" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.BotService/botServices/privateEndpointConnections", - "existenceCondition": { - "field": "Microsoft.BotService/botServices/privateEndpointConnections/privateLinkServiceConnectionState.status", - "equals": "Approved" - }, - "roleDefinitionIds": [ - "/providers/Microsoft.Authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "deployment": { - "properties": { - "mode": "incremental", - "parameters": { - "name": { - "value": "[field(\u0027name\u0027)]" - }, - "serviceId": { - "value": "[field(\u0027id\u0027)]" - }, - "privateEndpointSubnetId": { - "value": "[parameters(\u0027privateEndpointSubnetId\u0027)]" - }, - "privateEndpointGroupId": { - "value": "[parameters(\u0027privateEndpointGroupId\u0027)]" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "name": { - "type": "String" - }, - "serviceId": { - "type": "String" - }, - "privateEndpointSubnetId": { - "type": "String" - }, - "privateEndpointGroupId": { - "type": "String" - } - }, - "variables": { - "privateEndpointName": "[concat(\u0027pe-\u0027,substring(parameters(\u0027name\u0027),0,min(length(parameters(\u0027name\u0027)),50)),\u0027-\u0027,uniquestring(deployment().name))]" - }, - "resources": [ - { - "type": "Microsoft.Resources/deployments", - "name": "[variables(\u0027privateEndpointName\u0027)]", - "apiVersion": "2020-06-01", - "properties": { - "mode": "Incremental", - "expressionEvaluationOptions": { - "scope": "inner" - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "serviceId": { - "type": "string" - }, - "privateEndpointSubnetId": { - "type": "string" - }, - "privateEndpointGroupId": { - "type": "String" - }, - "subnetLocation": { - "type": "string" - } - }, - "variables": { - "privateEndpointName": "[deployment().name]" - }, - "resources": [ - { - "name": "[variables(\u0027privateEndpointName\u0027)]", - "type": "Microsoft.Network/privateEndpoints", - "apiVersion": "2020-07-01", - "location": "[parameters(\u0027subnetLocation\u0027)]", - "tags": {}, - "properties": { - "subnet": { - "id": "[parameters(\u0027privateEndpointSubnetId\u0027)]" - }, - "privateLinkServiceConnections": [ - { - "name": "[variables(\u0027privateEndpointName\u0027)]", - "properties": { - "privateLinkServiceId": "[parameters(\u0027serviceId\u0027)]", - "groupIds": [ - "[parameters(\u0027privateEndpointGroupId\u0027)]" - ], - "requestMessage": "autoapprove" - } - } - ], - "manualPrivateLinkServiceConnections": [] - } - } - ] - }, - "parameters": { - "serviceId": { - "value": "[parameters(\u0027serviceId\u0027)]" - }, - "privateEndpointSubnetId": { - "value": "[parameters(\u0027privateEndpointSubnetId\u0027)]" - }, - "privateEndpointGroupId": { - "value": "[parameters(\u0027privateEndpointGroupId\u0027)]" - }, - "subnetLocation": { - "value": "[reference(first(take(split(parameters(\u0027privateEndpointSubnetId\u0027),\u0027/subnets\u0027),1)),\u00272020-07-01\u0027,\u0027Full\u0027).location]" - } - } - } - } - ] - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1634 - Boundary Protection | Prevent Unauthorized Exfiltration", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Communications Protection control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1634" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Service Bus Premium namespaces should use a customer-managed key for encryption", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Azure Service Bus supports the option of encrypting data at rest with either Microsoft-managed keys (default) or customer-managed keys. Choosing to encrypt data using customer-managed keys enables you to assign, rotate, disable, and revoke access to the keys that Service Bus will use to encrypt data in your namespace. Note that Service Bus only supports encryption with customer-managed keys for premium namespaces.", - "metadata": { - "version": "1.0.0", - "category": "Service Bus" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.ServiceBus/namespaces" - }, - { - "field": "Microsoft.ServiceBus/namespaces/sku.tier", - "equals": "Premium" - }, - { - "not": { - "field": "Microsoft.ServiceBus/namespaces/encryption.keySource", - "equals": "Microsoft.Keyvault" - } - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Show audit results from Windows VMs configurations in \u0027Security Options - User Account Control\u0027", - "policyType": "BuiltIn", - "mode": "All", - "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: \u0027Security Options - User Account Control\u0027. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol", - "metadata": { - "version": "1.0.0-deprecated", - "category": "Guest Configuration", - "deprecated": true - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "dsvm-windows" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - } - ] - }, - "then": { - "effect": "auditIfNotExists", - "details": { - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "AzureBaseline_SecurityOptionsUserAccountControl", - "existenceCondition": { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus", - "equals": "Compliant" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Append a tag and its value to resources", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Appends the specified tag and value when any resource which is missing this tag is created or updated. Does not modify the tags of resources created before this policy was applied until those resources are changed. Does not apply to resource groups. New \u0027modify\u0027 effect policies are available that support remediation of tags on existing resources (see https://aka.ms/modifydoc).", - "metadata": { - "version": "1.0.1", - "category": "Tags" - }, - "parameters": { - "tagName": { - "type": "String", - "metadata": { - "displayName": "Tag Name", - "description": "Name of the tag, such as \u0027environment\u0027" - } - }, - "tagValue": { - "type": "String", - "metadata": { - "displayName": "Tag Value", - "description": "Value of the tag, such as \u0027production\u0027" - } - } - }, - "policyRule": { - "if": { - "field": "[concat(\u0027tags[\u0027, parameters(\u0027tagName\u0027), \u0027]\u0027)]", - "exists": "false" - }, - "then": { - "effect": "append", - "details": [ - { - "field": "[concat(\u0027tags[\u0027, parameters(\u0027tagName\u0027), \u0027]\u0027)]", - "value": "[parameters(\u0027tagValue\u0027)]" - } - ] - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Storage accounts should restrict network access using virtual network rules", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Protect your storage accounts from potential threats using virtual network rules as a preferred method instead of IP-based filtering. Disabling IP-based filtering prevents public IPs from accessing your storage accounts.", - "metadata": { - "version": "1.0.1", - "category": "Storage" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the audit policy" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Storage/storageAccounts" - }, - { - "anyOf": [ - { - "field": "Microsoft.Storage/storageAccounts/networkAcls.defaultAction", - "notEquals": "Deny" - }, - { - "count": { - "field": "Microsoft.Storage/storageAccounts/networkAcls.ipRules[*]" - }, - "greaterOrEquals": 1 - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1219 - Least Functionality | Authorized Software / Whitelisting", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Configuration Management control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1219" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Windows machines should meet requirements for \u0027System Audit Policies - Policy Change\u0027", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Windows machines should have the specified Group Policy settings in the category \u0027System Audit Policies - Policy Change\u0027 for auditing changes to system audit policies. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.", - "metadata": { - "category": "Guest Configuration", - "version": "3.0.0", - "requiredProviders": [ - "Microsoft.GuestConfiguration" - ], - "guestConfiguration": { - "name": "AzureBaseline_SystemAuditPoliciesPolicyChange", - "version": "1.*", - "configurationParameter": { - "AuditAuthenticationPolicyChange": "Audit Authentication Policy Change;ExpectedValue", - "AuditAuthorizationPolicyChange": "Audit Authorization Policy Change;ExpectedValue" - } - } - }, - "parameters": { - "IncludeArcMachines": { - "type": "String", - "metadata": { - "displayName": "Include Arc connected servers", - "description": "By selecting this option, you agree to be charged monthly per Arc connected machine.", - "portalReview": "true" - }, - "allowedValues": [ - "true", - "false" - ], - "defaultValue": "false" - }, - "AuditAuthenticationPolicyChange": { - "type": "String", - "metadata": { - "displayName": "Audit Authentication Policy Change", - "description": "Specifies whether audit events are generated when changes are made to authentication policy. This setting is useful for tracking changes in domain-level and forest-level trust and privileges that are granted to user accounts or groups." - }, - "allowedValues": [ - "No Auditing", - "Success", - "Failure", - "Success and Failure" - ], - "defaultValue": "Success" - }, - "AuditAuthorizationPolicyChange": { - "type": "String", - "metadata": { - "displayName": "Audit Authorization Policy Change", - "description": "Specifies whether audit events are generated for assignment and removal of user rights in user right policies, changes in security token object permission, resource attributes changes and Central Access Policy changes for file system objects." - }, - "allowedValues": [ - "No Auditing", - "Success", - "Failure", - "Success and Failure" - ], - "defaultValue": "No Auditing" - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of this policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "dsvm-win*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "value": "[parameters(\u0027IncludeArcMachines\u0027)]", - "equals": "true" - }, - { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.ConnectedVMwarevSphere/virtualMachines" - }, - { - "field": "Microsoft.ConnectedVMwarevSphere/virtualMachines/osProfile.osType", - "like": "windows*" - } - ] - } - ] - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "AzureBaseline_SystemAuditPoliciesPolicyChange", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus", - "equals": "Compliant" - }, - { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash", - "equals": "[base64(concat(\u0027Audit Authentication Policy Change;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027AuditAuthenticationPolicyChange\u0027), \u0027,\u0027, \u0027Audit Authorization Policy Change;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027AuditAuthorizationPolicyChange\u0027)))]" - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Preview]: Configure Azure Defender for SQL agent on virtual machine", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Configure Windows machines to automatically install the Azure Defender for SQL agent where the Azure Monitor Agent is installed. Security Center collects events from the agent and uses them to provide security alerts and tailored hardening tasks (recommendations). Creates a resource group and Log Analytics workspace in the same region as the machine. Target virtual machines must be in a supported location.", - "metadata": { - "category": "Security Center", - "version": "1.0.0-preview", - "preview": true - }, - "parameters": { - "enableCollectionOfSqlQueriesForSecurityResearch": { - "type": "Boolean", - "metadata": { - "displayName": "Enable collection of SQL queries for security research", - "description": "Enable or disable the collection of SQL queries for security research." - }, - "allowedValues": [ - true, - false - ], - "defaultValue": true - }, - "azureDefenderForSqlExtensionTypeToInstall": { - "type": "String", - "metadata": { - "displayName": "Azure Defender For SQL extension type to install", - "description": "The type of the Azure Defender For SQL extension needed to be installed." - }, - "allowedValues": [ - "AdvancedThreatProtection.Windows", - "VulnerabilityAssessment.Windows" - ] - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines/extensions" - }, - { - "field": "location", - "in": [ - "australiacentral", - "australiaeast", - "australiasoutheast", - "brazilsouth", - "canadacentral", - "centralindia", - "centralus", - "eastasia", - "eastus2euap", - "eastus", - "eastus2", - "francecentral", - "germanywestcentral", - "japaneast", - "koreacentral", - "northcentralus", - "northeurope", - "norwayeast", - "southcentralus", - "southeastasia", - "switzerlandnorth", - "switzerlandwest", - "southafricanorth", - "swedencentral", - "uaenorth", - "uksouth", - "ukwest", - "westcentralus", - "westeurope", - "westus", - "westus2" - ] - }, - { - "field": "Microsoft.Compute/virtualMachines/extensions/type", - "equals": "AzureMonitorWindowsAgent" - }, - { - "field": "Microsoft.Compute/virtualMachines/extensions/publisher", - "equals": "Microsoft.Azure.Monitor" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Compute/virtualMachines/extensions", - "name": "[concat(first(split(field(\u0027fullName\u0027), \u0027/\u0027)), \u0027/Microsoft.Azure.AzureDefenderForSQL.\u0027, parameters(\u0027azureDefenderForSqlExtensionTypeToInstall\u0027))]", - "deploymentScope": "subscription", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.Compute/virtualMachines/extensions/type", - "equals": "[parameters(\u0027azureDefenderForSqlExtensionTypeToInstall\u0027)]" - }, - { - "field": "Microsoft.Compute/virtualMachines/extensions/publisher", - "equals": "Microsoft.Azure.AzureDefenderForSQL" - }, - { - "field": "Microsoft.Compute/virtualMachines/extensions/provisioningState", - "in": [ - "Succeeded", - "Provisioning succeeded" - ] - } - ] - }, - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "deployment": { - "location": "eastus", - "properties": { - "mode": "incremental", - "parameters": { - "resourceGroup": { - "value": "[resourceGroup().name]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "vmName": { - "value": "[first(split(field(\u0027fullName\u0027), \u0027/\u0027))]" - }, - "enableCollectionOfSqlQueriesForSecurityResearch": { - "value": "[parameters(\u0027enableCollectionOfSqlQueriesForSecurityResearch\u0027)]" - }, - "azureDefenderForSqlExtensionTypeToInstall": { - "value": "[parameters(\u0027azureDefenderForSqlExtensionTypeToInstall\u0027)]" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "resourceGroup": { - "type": "string" - }, - "location": { - "type": "string" - }, - "vmName": { - "type": "string" - }, - "enableCollectionOfSqlQueriesForSecurityResearch": { - "type": "bool" - }, - "azureDefenderForSqlExtensionTypeToInstall": { - "type": "string" - } - }, - "variables": { - "locationLongNameToShortMap": { - "australiacentral": "CAU", - "australiaeast": "EAU", - "australiasoutheast": "SEAU", - "brazilsouth": "CQ", - "canadacentral": "CCA", - "centralindia": "CIN", - "centralus": "CUS", - "eastasia": "EA", - "eastus2euap": "eus2p", - "eastus": "EUS", - "eastus2": "EUS2", - "francecentral": "PAR", - "germanywestcentral": "DEWC", - "japaneast": "EJP", - "koreacentral": "SE", - "northcentralus": "NCUS", - "northeurope": "NEU", - "norwayeast": "NOE", - "southcentralus": "SCUS", - "southeastasia": "SEA", - "switzerlandnorth": "CHN", - "switzerlandwest": "CHW", - "southafricanorth": "JNB", - "swedencentral": "SEC", - "uaenorth": "DXB", - "uksouth": "SUK", - "ukwest": "WUK", - "westcentralus": "WCUS", - "westeurope": "WEU", - "westus": "WUS", - "westus2": "WUS2" - }, - "locationCode": "[variables(\u0027locationLongNameToShortMap\u0027)[parameters(\u0027location\u0027)]]", - "subscriptionId": "[subscription().subscriptionId]", - "defaultRGName": "[concat(\u0027DefaultResourceGroup-\u0027, variables(\u0027locationCode\u0027))]", - "defaultRGLocation": "[parameters(\u0027location\u0027)]", - "workspaceName": "[concat(\u0027defaultWorkspace-\u0027, variables(\u0027subscriptionId\u0027),\u0027-\u0027, variables(\u0027locationCode\u0027))]", - "dcrName": "Microsoft-AzureDefenderForSQL", - "dcrId": "[concat(\u0027/subscriptions/\u0027, variables(\u0027subscriptionId\u0027), \u0027/resourceGroups/\u0027, variables(\u0027defaultRGName\u0027), \u0027/providers/Microsoft.Insights/dataCollectionRules/\u0027, variables(\u0027dcrName\u0027))]", - "dcraName": "[concat(parameters(\u0027vmName\u0027),\u0027/Microsoft.Insights/AzureDefenderForSQL-RulesAssociation\u0027)]", - "deployAzureDefenderForSqlExtensions": "[concat(\u0027deployAzureDefenderForSqlExtensions-\u0027, uniqueString(deployment().name))]", - "deployDefaultAscResourceGroup": "[concat(\u0027deployDefaultAscResourceGroup-\u0027, uniqueString(deployment().name))]" - }, - "resources": [ - { - "type": "Microsoft.Resources/resourceGroups", - "name": "[variables(\u0027defaultRGName\u0027)]", - "apiVersion": "2020-10-01", - "location": "[variables(\u0027defaultRGLocation\u0027)]" - }, - { - "type": "Microsoft.Resources/deployments", - "name": "[variables(\u0027deployDefaultAscResourceGroup\u0027)]", - "apiVersion": "2020-06-01", - "resourceGroup": "[variables(\u0027defaultRGName\u0027)]", - "dependsOn": [ - "[resourceId(\u0027Microsoft.Resources/resourceGroups\u0027, variables(\u0027defaultRGName\u0027))]" - ], - "properties": { - "mode": "Incremental", - "expressionEvaluationOptions": { - "scope": "inner" - }, - "parameters": { - "defaultRGLocation": { - "value": "[variables(\u0027defaultRGLocation\u0027)]" - }, - "workspaceName": { - "value": "[variables(\u0027workspaceName\u0027)]" - }, - "dcrName": { - "value": "[variables(\u0027dcrName\u0027)]" - }, - "enableCollectionOfSqlQueriesForSecurityResearch": { - "value": "[parameters(\u0027enableCollectionOfSqlQueriesForSecurityResearch\u0027)]" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "defaultRGLocation": { - "type": "string" - }, - "workspaceName": { - "type": "string" - }, - "dcrName": { - "type": "string" - }, - "enableCollectionOfSqlQueriesForSecurityResearch": { - "type": "bool" - } - }, - "variables": {}, - "resources": [ - { - "type": "Microsoft.OperationalInsights/workspaces", - "name": "[parameters(\u0027workspaceName\u0027)]", - "apiVersion": "2015-11-01-preview", - "location": "[parameters(\u0027defaultRGLocation\u0027)]", - "properties": { - "sku": { - "name": "pernode" - }, - "retentionInDays": 30, - "features": { - "searchVersion": 1 - } - } - }, - { - "type": "Microsoft.Insights/dataCollectionRules", - "name": "[parameters(\u0027dcrName\u0027)]", - "apiVersion": "2019-11-01-preview", - "location": "[parameters(\u0027defaultRGLocation\u0027)]", - "dependsOn": [ - "[parameters(\u0027workspaceName\u0027)]" - ], - "properties": { - "description": "Data collection rule for Azure Defender for SQL. Deleting this rule will break the detection of Azure Defender for SQL.", - "dataSources": { - "extensions": [ - { - "streams": [ - "Microsoft-DefenderForSqlAlerts", - "Microsoft-DefenderForSqlLogins", - "Microsoft-DefenderForSqlTelemetry", - "Microsoft-SqlAtpStatus-DefenderForSql" - ], - "extensionName": "AdvancedThreatProtection", - "extensionSettings": { - "enableCollectionOfSqlQueriesForSecurityResearch": "[parameters(\u0027enableCollectionOfSqlQueriesForSecurityResearch\u0027)]" - }, - "name": "AdvancedThreatProtection" - }, - { - "streams": [ - "Microsoft-DefenderForSqlScanEvents", - "Microsoft-DefenderForSqlScanResults", - "Microsoft-DefenderForSqlTelemetry" - ], - "extensionName": "VulnerabilityAssessment", - "name": "VulnerabilityAssessment" - } - ] - }, - "destinations": { - "logAnalytics": [ - { - "workspaceResourceId": "[resourceId(\u0027Microsoft.OperationalInsights/workspaces/\u0027, parameters(\u0027workspaceName\u0027))]", - "name": "LogAnalyticsDest" - } - ] - }, - "dataFlows": [ - { - "streams": [ - "Microsoft-DefenderForSqlAlerts", - "Microsoft-DefenderForSqlLogins", - "Microsoft-DefenderForSqlTelemetry", - "Microsoft-DefenderForSqlScanEvents", - "Microsoft-DefenderForSqlScanResults" - ], - "destinations": [ - "LogAnalyticsDest" - ] - } - ] - } - } - ] - } - } - }, - { - "type": "Microsoft.Resources/deployments", - "name": "[variables(\u0027deployAzureDefenderForSqlExtensions\u0027)]", - "apiVersion": "2020-06-01", - "resourceGroup": "[parameters(\u0027resourceGroup\u0027)]", - "dependsOn": [ - "[variables(\u0027deployDefaultAscResourceGroup\u0027)]" - ], - "properties": { - "mode": "Incremental", - "expressionEvaluationOptions": { - "scope": "inner" - }, - "parameters": { - "location": { - "value": "[parameters(\u0027location\u0027)]" - }, - "dcrId": { - "value": "[variables(\u0027dcrId\u0027)]" - }, - "dcraName": { - "value": "[variables(\u0027dcraName\u0027)]" - }, - "vmName": { - "value": "[parameters(\u0027vmName\u0027)]" - }, - "azureDefenderForSqlExtensionTypeToInstall": { - "value": "[parameters(\u0027azureDefenderForSqlExtensionTypeToInstall\u0027)]" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "location": { - "type": "string" - }, - "dcrId": { - "type": "string" - }, - "dcraName": { - "type": "string" - }, - "vmName": { - "type": "string" - }, - "azureDefenderForSqlExtensionTypeToInstall": { - "type": "string" - } - }, - "variables": {}, - "resources": [ - { - "type": "Microsoft.Compute/virtualMachines/providers/dataCollectionRuleAssociations", - "name": "[parameters(\u0027dcraName\u0027)]", - "apiVersion": "2019-11-01-preview", - "properties": { - "description": "Association of data collection rule for Azure Defender for SQL. Deleting this association will break the detection of Azure Defender for SQL for this virtual machine.", - "dataCollectionRuleId": "[parameters(\u0027dcrId\u0027)]" - } - }, - { - "type": "Microsoft.Compute/virtualMachines/extensions", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/\u0027, \u0027Microsoft.Azure.AzureDefenderForSQL.\u0027, parameters(\u0027azureDefenderForSqlExtensionTypeToInstall\u0027))]", - "apiVersion": "2020-12-01", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "publisher": "Microsoft.Azure.AzureDefenderForSQL", - "type": "[parameters(\u0027azureDefenderForSqlExtensionTypeToInstall\u0027)]", - "typeHandlerVersion": "1.0", - "autoUpgradeMinorVersion": true - } - } - ] - } - } - } - ] - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1274 - Alternate Processing Site", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Contingency Planning control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1274" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Synapse workspace auditing settings should have action groups configured to capture critical activities", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "To ensure your audit logs are as thorough as possible, the AuditActionsAndGroups property should include all the relevant groups. We recommend adding at least SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, FAILED_DATABASE_AUTHENTICATION_GROUP, and BATCH_COMPLETED_GROUP. This is sometimes required for compliance with regulatory standards.", - "metadata": { - "version": "1.0.0", - "category": "Synapse" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Synapse/workspaces" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Synapse/workspaces/auditingSettings", - "name": "default", - "existenceCondition": { - "allOf": [ - { - "not": { - "field": "Microsoft.Synapse/workspaces/auditingSettings/auditActionsAndGroups[*]", - "notEquals": "SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP" - } - }, - { - "not": { - "field": "Microsoft.Synapse/workspaces/auditingSettings/auditActionsAndGroups[*]", - "notEquals": "FAILED_DATABASE_AUTHENTICATION_GROUP" - } - }, - { - "not": { - "field": "Microsoft.Synapse/workspaces/auditingSettings/auditActionsAndGroups[*]", - "notEquals": "BATCH_COMPLETED_GROUP" - } - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1603 - Developer Security Testing And Evaluation", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Services Acquisition control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1603" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Managed identity should be used in your Web App", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Use a managed identity for enhanced authentication security", - "metadata": { - "version": "2.0.0", - "category": "App Service" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Web/sites" - }, - { - "field": "kind", - "like": "app*" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Web/sites/config", - "name": "web", - "existenceCondition": { - "anyOf": [ - { - "field": "Microsoft.Web/sites/config/managedServiceIdentityId", - "exists": "true" - }, - { - "field": "Microsoft.Web/sites/config/xmanagedServiceIdentityId", - "exists": "true" - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Cognitive Services accounts should enable data encryption", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "This policy is deprecated. Cognitive Services have data encryption enforced.", - "metadata": { - "version": "2.0.0-deprecated", - "category": "Cognitive Services", - "deprecated": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "The effect determines what happens when the policy rule is evaluated to match" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Disabled" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.CognitiveServices/accounts" - }, - { - "field": "Microsoft.CognitiveServices/accounts/encryption.keySource", - "exists": "false" - }, - { - "field": "Microsoft.CognitiveServices/accounts/encryption", - "exists": "true" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Configure App Service slots to disable local authentication for SCM sites.", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Disable local authentication methods for SCM sites so that your App Services slots exclusively require Azure Active Directory identities for authentication. Learn more at: https://aka.ms/app-service-disable-basic-auth.", - "metadata": { - "version": "1.0.0", - "category": "App Service" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Web/sites/slots" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "name": "scm", - "type": "Microsoft.Web/sites/slots/basicPublishingCredentialsPolicies", - "existenceCondition": { - "field": "Microsoft.Web/sites/slots/basicPublishingCredentialsPolicies/allow", - "equals": "false" - }, - "roleDefinitionIds": [ - "/providers/Microsoft.Authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "deployment": { - "properties": { - "mode": "incremental", - "parameters": { - "siteName": { - "value": "[field(\u0027fullName\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "siteName": { - "type": "string" - }, - "location": { - "type": "string" - } - }, - "variables": {}, - "resources": [ - { - "type": "Microsoft.Web/sites/slots/basicPublishingCredentialsPolicies", - "name": "[concat(parameters(\u0027siteName\u0027), \u0027/scm\u0027)]", - "apiVersion": "2021-02-01", - "location": "[parameters(\u0027location\u0027)]", - "tags": {}, - "properties": { - "allow": "false" - } - } - ] - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1434 - Media Transport", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Media Protection control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1434" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1343 - Authenticator Management | Expiration Of Cached Authenticators", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Identification and Authentication control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1343" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1388 - Information Spillage Response", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Incident Response control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1388" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1344 - Authenticator Feedback", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Identification and Authentication control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1344" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: SSH access from the Internet should be blocked", - "policyType": "BuiltIn", - "mode": "All", - "description": "This policy is deprecated. This policy audits any network security rule that allows SSH access from Internet", - "metadata": { - "version": "2.0.0-deprecated", - "category": "Network", - "deprecated": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Network/networkSecurityGroups/securityRules" - }, - { - "allOf": [ - { - "field": "Microsoft.Network/networkSecurityGroups/securityRules/access", - "equals": "Allow" - }, - { - "field": "Microsoft.Network/networkSecurityGroups/securityRules/direction", - "equals": "Inbound" - }, - { - "anyOf": [ - { - "field": "Microsoft.Network/networkSecurityGroups/securityRules/destinationPortRange", - "equals": "*" - }, - { - "field": "Microsoft.Network/networkSecurityGroups/securityRules/destinationPortRange", - "equals": "22" - }, - { - "value": "[if(and(not(empty(field(\u0027Microsoft.Network/networkSecurityGroups/securityRules/destinationPortRange\u0027))), contains(field(\u0027Microsoft.Network/networkSecurityGroups/securityRules/destinationPortRange\u0027),\u0027-\u0027)), and(lessOrEquals(int(first(split(field(\u0027Microsoft.Network/networkSecurityGroups/securityRules/destinationPortRange\u0027), \u0027-\u0027))),22),greaterOrEquals(int(last(split(field(\u0027Microsoft.Network/networkSecurityGroups/securityRules/destinationPortRange\u0027), \u0027-\u0027))),22)), \u0027false\u0027)]", - "equals": "true" - }, - { - "count": { - "field": "Microsoft.Network/networkSecurityGroups/securityRules/destinationPortRanges[*]", - "where": { - "value": "[if(and(not(empty(first(field(\u0027Microsoft.Network/networkSecurityGroups/securityRules/destinationPortRanges[*]\u0027)))), contains(first(field(\u0027Microsoft.Network/networkSecurityGroups/securityRules/destinationPortRanges[*]\u0027)),\u0027-\u0027)), and(lessOrEquals(int(first(split(first(field(\u0027Microsoft.Network/networkSecurityGroups/securityRules/destinationPortRanges[*]\u0027)), \u0027-\u0027))),22),greaterOrEquals(int(last(split(first(field(\u0027Microsoft.Network/networkSecurityGroups/securityRules/destinationPortRanges[*]\u0027)), \u0027-\u0027))),22)) , \u0027false\u0027)]", - "equals": "true" - } - }, - "greater": 0 - }, - { - "not": { - "field": "Microsoft.Network/networkSecurityGroups/securityRules/destinationPortRanges[*]", - "notEquals": "*" - } - }, - { - "not": { - "field": "Microsoft.Network/networkSecurityGroups/securityRules/destinationPortRanges[*]", - "notEquals": "22" - } - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Network/networkSecurityGroups/securityRules/sourceAddressPrefix", - "equals": "*" - }, - { - "field": "Microsoft.Network/networkSecurityGroups/securityRules/sourceAddressPrefix", - "equals": "Internet" - }, - { - "not": { - "field": "Microsoft.Network/networkSecurityGroups/securityRules/sourceAddressPrefixes[*]", - "notEquals": "*" - } - }, - { - "not": { - "field": "Microsoft.Network/networkSecurityGroups/securityRules/sourceAddressPrefixes[*]", - "notEquals": "Internet" - } - } - ] - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Unattached disks should be encrypted", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "This policy audits any unattached disk without encryption enabled.", - "metadata": { - "version": "1.0.0-deprecated", - "category": "Compute", - "deprecated": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/disks" - }, - { - "field": "Microsoft.Compute/disks/diskState", - "equals": "Unattached" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/disks/encryptionSettingsCollection.enabled", - "exists": "false" - }, - { - "field": "Microsoft.Compute/disks/encryptionSettingsCollection.enabled", - "equals": "false" - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1593 - External Information System Services | Processing, Storage, And Service Location", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Services Acquisition control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1593" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1546 - Vulnerability Scanning", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Risk Assessment control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1546" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1414 - Nonlocal Maintenance", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Maintenance control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1414" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1679 - Malicious Code Protection", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Information Integrity control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1679" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1068 - Wireless Access", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Access Control control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1068" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "App Service Environment apps should not be reachable over public internet", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "To ensure apps deployed in an App Service Environment are not accessible over public internet, one should deploy App Service Environment with an IP address in virtual network. To set the IP address to a virtual network IP, the App Service Environment must be deployed with an internal load balancer.", - "metadata": { - "version": "2.0.0", - "category": "App Service" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Web/hostingEnvironments" - }, - { - "field": "kind", - "like": "ASE*" - }, - { - "anyOf": [ - { - "allOf": [ - { - "value": "[requestContext().apiVersion]", - "less": "2016-09-01" - }, - { - "anyOf": [ - { - "field": "Microsoft.Web/HostingEnvironments/internalLoadBalancingMode", - "notContains": "2" - }, - { - "field": "Microsoft.Web/HostingEnvironments/internalLoadBalancingMode", - "notContains": "3" - } - ] - } - ] - }, - { - "allOf": [ - { - "value": "[requestContext().apiVersion]", - "greaterOrEquals": "2016-09-01" - }, - { - "anyOf": [ - { - "field": "Microsoft.Web/HostingEnvironments/internalLoadBalancingMode", - "notContains": "Web" - }, - { - "field": "Microsoft.Web/HostingEnvironments/internalLoadBalancingMode", - "notContains": "Publishing" - } - ] - } - ] - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "App Service should use a virtual network service endpoint", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "This policy audits any App Service not configured to use a virtual network service endpoint.", - "metadata": { - "version": "1.0.0", - "category": "Network" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Web/sites" - }, - { - "field": "kind", - "like": "app*" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Web/sites/virtualNetworkConnections", - "existenceCondition": { - "field": "Microsoft.Web/sites/virtualnetworkconnections/vnetResourceId", - "exists": "true" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1704 - Security Alerts, Advisories, And Directives", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Information Integrity control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1704" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Show audit results from Windows VMs that do not store passwords using reversible encryption", - "policyType": "BuiltIn", - "mode": "All", - "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines that do not store passwords using reversible encryption. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol", - "metadata": { - "version": "1.0.0-deprecated", - "category": "Guest Configuration", - "deprecated": true - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "dsvm-windows" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - } - ] - }, - "then": { - "effect": "auditIfNotExists", - "details": { - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "StorePasswordsUsingReversibleEncryption", - "existenceCondition": { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus", - "equals": "Compliant" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Show audit results from Linux VMs that allow remote connections from accounts without passwords", - "policyType": "BuiltIn", - "mode": "All", - "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Linux virtual machines that allow remote connections from accounts without passwords. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol", - "metadata": { - "version": "4.0.0-deprecated", - "category": "Guest Configuration", - "deprecated": true - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "microsoft-aks", - "qubole-inc", - "datastax", - "couchbase", - "scalegrid", - "checkpoint", - "paloaltonetworks", - "debian" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "OpenLogic" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "CentOS*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "6*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Oracle" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Oracle-Linux" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "6*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "RedHat" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "RHEL", - "RHEL-HA", - "RHEL-SAP", - "RHEL-SAP-APPS", - "RHEL-SAP-HA", - "RHEL-SAP-HANA" - ] - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "6*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "RedHat" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "osa", - "rhel-byos" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "cis-centos-7-l1", - "cis-centos-7-v2-1-1-l1", - "cis-centos-8-l1", - "cis-debian-linux-8-l1", - "cis-debian-linux-9-l1", - "cis-nginx-centos-7-v1-1-0-l1", - "cis-oracle-linux-7-v2-0-0-l1", - "cis-oracle-linux-8-l1", - "cis-postgresql-11-centos-linux-7-level-1", - "cis-rhel-7-l2", - "cis-rhel-7-v2-2-0-l1", - "cis-rhel-8-l1", - "cis-suse-linux-12-v2-0-0-l1", - "cis-ubuntu-linux-1604-v1-0-0-l1", - "cis-ubuntu-linux-1804-l1" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "credativ" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Debian" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "7*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Suse" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "SLES*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "11*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Canonical" - }, - { - "field": "Microsoft.Compute/imageOffer", - "contains": "Ubuntu" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "12*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "linux-data-science-vm-ubuntu", - "azureml", - "ubuntu-hpc", - "ubuntu-1804" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloudera" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "cloudera-centos-os" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "6*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloudera" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "cloudera-altus-centos-os" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "linux*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.linuxConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Linux*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "exists": "false" - }, - { - "field": "Microsoft.Compute/imagePublisher", - "notIn": [ - "OpenLogic", - "RedHat", - "credativ", - "Suse", - "Canonical", - "microsoft-dsvm", - "cloudera", - "microsoft-ads", - "center-for-internet-security-inc", - "Oracle", - "AzureDatabricks", - "azureopenshift" - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "linux*" - } - ] - } - ] - }, - "then": { - "effect": "auditIfNotExists", - "details": { - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "PasswordPolicy_msid110", - "existenceCondition": { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus", - "equals": "Compliant" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Public network access on Azure IoT Hub should be disabled", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Disabling the public network access property improves security by ensuring your Azure IoT Hub can only be accessed from a private endpoint.", - "metadata": { - "version": "1.0.0", - "category": "Internet of Things" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Devices/IotHubs" - }, - { - "field": "Microsoft.Devices/IotHubs/publicNetworkAccess", - "notEquals": "Disabled" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Preview]: Azure IoT Hub should use customer-managed key to encrypt data at rest", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Encryption of data at rest in IoT Hub with customer-managed key adds a second layer of encryption on top of the default service-managed keys, enables customer control of keys, custom rotation policies, and ability to manage access to data through key access control. Customer-managed keys must be configured during creation of IoT Hub. For more information on how to configure customer-managed keys, see https://aka.ms/iotcmk.", - "metadata": { - "version": "1.0.0-preview", - "category": "Internet of Things", - "preview": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "The desired effect of the policy." - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Devices/IotHubs" - }, - { - "count": { - "field": "Microsoft.Devices/IotHubs/encryption.keyVaultProperties[*]", - "where": { - "allOf": [ - { - "field": "Microsoft.Devices/IotHubs/encryption.keyVaultProperties[*].keyIdentifier", - "exists": "true" - }, - { - "field": "Microsoft.Devices/IotHubs/encryption.keyVaultProperties[*].keyIdentifier", - "notequals": "" - } - ] - } - }, - "lessOrEquals": 0 - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Managed workspace virtual network on Azure Synapse workspaces should be enabled", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Enabling a managed workspace virtual network ensures that your workspace is network isolated from other workspaces. Data integration and Spark resources deployed in this virtual network also provides user level isolation for Spark activities.", - "metadata": { - "version": "1.0.0", - "category": "Synapse" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Synapse/workspaces" - }, - { - "field": "Microsoft.Synapse/workspaces/managedVirtualNetwork", - "notEquals": "default" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1077 - Use Of External Information Systems", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Access Control control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1077" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Configure Azure Event Grid partner namespaces to disable local authentication", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Disable local authentication methods so that your Azure Event Grid partner namespaces exclusively require Azure Active Directory identities for authentication. Learn more at: https://aka.ms/aeg-disablelocalauth.", - "metadata": { - "version": "1.0.0", - "category": "Event Grid" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Modify", - "Disabled" - ], - "defaultValue": "Modify" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.EventGrid/partnerNamespaces" - }, - { - "field": "Microsoft.EventGrid/partnerNamespaces/disableLocalAuth", - "notEquals": true - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "conflictEffect": "audit", - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "operations": [ - { - "condition": "[greaterOrEquals(requestContext().apiVersion, \u00272021-06-01-preview\u0027)]", - "operation": "addOrReplace", - "field": "Microsoft.EventGrid/partnerNamespaces/disableLocalAuth", - "value": true - } - ] - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1149 - Security Assessments | Specialized Assessments", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Security Assessment and Authorization control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1149" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1497 - System Security Plan | Plan / Coordinate With Other Organizational Entities", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Planning control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1497" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Preview]: Azure Recovery Services vaults should use customer-managed keys for encrypting backup data", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Use customer-managed keys to manage the encryption at rest of your backup data. By default, customer data is encrypted with service-managed keys, but customer-managed keys are commonly required to meet regulatory compliance standards. Customer-managed keys enable the data to be encrypted with an Azure Key Vault key created and owned by you. You have full control and responsibility for the key lifecycle, including rotation and management. Learn more at https://aka.ms/AB-CmkEncryption.", - "metadata": { - "version": "1.0.0-preview", - "preview": true, - "category": "Backup" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy." - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - }, - "enableDoubleEncryption": { - "type": "Boolean", - "metadata": { - "displayName": "Double encryption should be enabled on Recovery Services vaults for Backup", - "description": "Check if double encryption is enabled on Recovery Services vaults for Backup. For more details refer to https://aka.ms/AB-InfraEncryption." - }, - "allowedValues": [ - true, - false - ], - "defaultValue": false - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.RecoveryServices/vaults" - }, - { - "anyOf": [ - { - "field": "Microsoft.RecoveryServices/vaults/encryption.keyVaultProperties.keyUri", - "exists": "false" - }, - { - "allOf": [ - { - "value": "[parameters(\u0027enableDoubleEncryption\u0027)]", - "equals": true - }, - { - "field": "Microsoft.RecoveryServices/vaults/encryption.infrastructureEncryption", - "notEquals": "Enabled" - } - ] - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Configure Linux Machines to be associated with a Data Collection Rule", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Deploy Association to link Linux virtual machines, virtual machine scale sets, and Arc machines to the specified Data Collection Rule. The list of locations and OS images are updated over time as support is increased.", - "metadata": { - "version": "3.0.0", - "category": "Monitoring" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy." - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - }, - "listOfLinuxImageIdToInclude": { - "type": "Array", - "metadata": { - "displayName": "Additional Linux Machine Images", - "description": "List of machine images that have supported Linux OS to add to scope. Example values: \u0027/subscriptions/\u003CsubscriptionId\u003E/resourceGroups/YourResourceGroup/providers/Microsoft.Compute/images/ContosoStdImage\u0027" - }, - "defaultValue": [] - }, - "dcrResourceId": { - "type": "String", - "metadata": { - "displayName": "Data Collection Rule Resource Id", - "description": "Resource Id of the Data Collection Rule to be applied on the Linux machines in scope.", - "strongType": "Microsoft.Insights/dataCollectionRules" - } - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "location", - "in": [ - "australiacentral", - "australiacentral2", - "australiaeast", - "australiasoutheast", - "brazilsouth", - "brazilsoutheast", - "canadacentral", - "canadaeast", - "centralindia", - "centralus", - "eastasia", - "eastus2euap", - "eastus", - "eastus2", - "francecentral", - "francesouth", - "germanywestcentral", - "japaneast", - "japanwest", - "jioindiawest", - "koreacentral", - "koreasouth", - "northcentralus", - "northeurope", - "norwayeast", - "norwaywest", - "southafricanorth", - "southcentralus", - "southeastasia", - "southindia", - "switzerlandnorth", - "switzerlandwest", - "uaenorth", - "uksouth", - "ukwest", - "westcentralus", - "westeurope", - "westindia", - "westus", - "westus2" - ] - }, - { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/machines/osName", - "equals": "linux" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachineScaleSets" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageId", - "in": "[parameters(\u0027listOfLinuxImageIdToInclude\u0027)]" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "RedHat" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "RHEL", - "RHEL-SAP-HANA" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSku", - "like": "6*" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "7*" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "8*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "SUSE" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "SLES", - "SLES-HPC", - "SLES-HPC-Priority", - "SLES-SAP", - "SLES-SAP-BYOS", - "SLES-Priority", - "SLES-BYOS", - "SLES-SAPCAL", - "SLES-Standard" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSku", - "like": "12*" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "15*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Canonical" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "UbuntuServer" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSku", - "like": "14.04*LTS" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "16.04*LTS" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "18.04*LTS" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Canonical" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "0001-com-ubuntu-server-focal" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSku", - "like": "20_04-lts*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Oracle" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Oracle-Linux" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSku", - "like": "6*" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "7*" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "8*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "OpenLogic" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "CentOS", - "Centos-LVM", - "CentOS-SRIOV" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSku", - "like": "6*" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "7*" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "8*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloudera" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "cloudera-centos-os" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "7*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "credativ" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "debian" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSku", - "like": "8" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "9" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Debian" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "debian-10" - ] - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "10" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Insights/dataCollectionRuleAssociations", - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000", - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "existenceCondition": { - "field": "Microsoft.Insights/dataCollectionRuleAssociations/dataCollectionRuleId", - "equals": "[parameters(\u0027dcrResourceId\u0027)]" - }, - "deployment": { - "properties": { - "mode": "incremental", - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "resourceName": { - "type": "string" - }, - "location": { - "type": "string" - }, - "dcrResourceId": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "variables": { - "associationName": "[concat(\u0027assoc-\u0027, uniqueString(parameters(\u0027dcrResourceId\u0027)))]" - }, - "resources": [ - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), \u0027microsoft.compute/virtualmachines\u0027)]", - "name": "[variables(\u0027associationName\u0027)]", - "type": "Microsoft.Insights/dataCollectionRuleAssociations", - "apiVersion": "2021-04-01", - "properties": { - "dataCollectionRuleId": "[parameters(\u0027dcrResourceId\u0027)]" - }, - "scope": "[concat(\u0027Microsoft.Compute/virtualMachines/\u0027, parameters(\u0027resourceName\u0027))]" - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), \u0027microsoft.compute/virtualmachinescalesets\u0027)]", - "name": "[variables(\u0027associationName\u0027)]", - "type": "Microsoft.Insights/dataCollectionRuleAssociations", - "apiVersion": "2021-04-01", - "properties": { - "dataCollectionRuleId": "[parameters(\u0027dcrResourceId\u0027)]" - }, - "scope": "[concat(\u0027Microsoft.Compute/virtualMachineScaleSets/\u0027, parameters(\u0027resourceName\u0027))]" - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), \u0027microsoft.hybridcompute/machines\u0027)]", - "name": "[variables(\u0027associationName\u0027)]", - "type": "Microsoft.Insights/dataCollectionRuleAssociations", - "apiVersion": "2021-04-01", - "properties": { - "dataCollectionRuleId": "[parameters(\u0027dcrResourceId\u0027)]" - }, - "scope": "[concat(\u0027Microsoft.HybridCompute/machines/\u0027, parameters(\u0027resourceName\u0027))]" - } - ] - }, - "parameters": { - "resourceName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "dcrResourceId": { - "value": "[parameters(\u0027dcrResourceId\u0027)]" - }, - "type": { - "value": "[field(\u0027type\u0027)]" - } - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1000 - Access Control Policy And Procedures", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Access Control control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1000" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Network Watcher flow logs should have traffic analytics enabled", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Traffic analytics analyzes Network Watcher network security group flow logs to provide insights into traffic flow in your Azure cloud. It can be used to visualize network activity across your Azure subscriptions and identify hot spots, identify security threats, understand traffic flow patterns, pinpoint network misconfigurations and more.", - "metadata": { - "version": "1.0.0", - "category": "Network" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allof": [ - { - "field": "type", - "equals": "Microsoft.Network/networkWatchers/flowLogs" - }, - { - "anyof": [ - { - "field": "Microsoft.Network/networkWatchers/flowLogs/flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.enabled", - "equals": false - }, - { - "field": "Microsoft.Network/networkWatchers/flowLogs/flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.trafficAnalyticsInterval", - "notin": [ - "10", - "60" - ] - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1519 - Personnel Termination", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Personnel Security control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1519" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Windows machines should meet requirements for \u0027Security Options - System objects\u0027", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Windows machines should have the specified Group Policy settings in the category \u0027Security Options - System objects\u0027 for case insensitivity for non-Windows subsystems and permissions of internal system objects. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.", - "metadata": { - "category": "Guest Configuration", - "version": "3.0.0", - "requiredProviders": [ - "Microsoft.GuestConfiguration" - ], - "guestConfiguration": { - "name": "AzureBaseline_SecurityOptionsSystemobjects", - "version": "1.*" - } - }, - "parameters": { - "IncludeArcMachines": { - "type": "String", - "metadata": { - "displayName": "Include Arc connected servers", - "description": "By selecting this option, you agree to be charged monthly per Arc connected machine.", - "portalReview": "true" - }, - "allowedValues": [ - "true", - "false" - ], - "defaultValue": "false" - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of this policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "dsvm-win*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "value": "[parameters(\u0027IncludeArcMachines\u0027)]", - "equals": "true" - }, - { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.ConnectedVMwarevSphere/virtualMachines" - }, - { - "field": "Microsoft.ConnectedVMwarevSphere/virtualMachines/osProfile.osType", - "like": "windows*" - } - ] - } - ] - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "AzureBaseline_SecurityOptionsSystemobjects", - "existenceCondition": { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus", - "equals": "Compliant" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Preview]: Network traffic data collection agent should be installed on Windows virtual machines", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Security Center uses the Microsoft Dependency agent to collect network traffic data from your Azure virtual machines to enable advanced network protection features such as traffic visualization on the network map, network hardening recommendations and specific network threats.", - "metadata": { - "version": "1.0.2-preview", - "category": "Monitoring", - "preview": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable Dependency Agent for Windows VMs monitoring" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "in": [ - "2008-R2-SP1", - "2008-R2-SP1-smalldisk", - "2012-Datacenter", - "2012-Datacenter-smalldisk", - "2012-R2-Datacenter", - "2012-R2-Datacenter-smalldisk", - "2016-Datacenter", - "2016-Datacenter-Server-Core", - "2016-Datacenter-Server-Core-smalldisk", - "2016-Datacenter-smalldisk", - "2016-Datacenter-with-Containers", - "2016-Datacenter-with-RDSH", - "2019-Datacenter", - "2019-Datacenter-Core", - "2019-Datacenter-Core-smalldisk", - "2019-Datacenter-Core-with-Containers", - "2019-Datacenter-Core-with-Containers-smalldisk", - "2019-Datacenter-smalldisk", - "2019-Datacenter-with-Containers", - "2019-Datacenter-with-Containers-smalldisk", - "2019-Datacenter-zhcn" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServerSemiAnnual" - }, - { - "field": "Microsoft.Compute/imageSKU", - "in": [ - "Datacenter-Core-1709-smalldisk", - "Datacenter-Core-1709-with-Containers-smalldisk", - "Datacenter-Core-1803-with-Containers-smalldisk" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServerHPCPack" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServerHPCPack" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2016" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2016-BYOL" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2012R2" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2012R2-BYOL" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftRServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "MLServer-WS2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftVisualStudio" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "VisualStudio", - "Windows" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftDynamicsAX" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Dynamics" - }, - { - "field": "Microsoft.Compute/imageSKU", - "equals": "Pre-Req-AX7-Onebox-U8" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "windows-data-science-vm" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsDesktop" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Windows-10" - } - ] - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Compute/virtualMachines/extensions", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.Compute/virtualMachines/extensions/type", - "equals": "DependencyAgentWindows" - }, - { - "field": "Microsoft.Compute/virtualMachines/extensions/publisher", - "equals": "Microsoft.Azure.Monitoring.DependencyAgent" - }, - { - "field": "Microsoft.Compute/virtualMachines/extensions/provisioningState", - "equals": "Succeeded" - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Preview]: Configure supported Linux Arc machines to automatically install the Azure Security agent", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Configure supported Linux Arc machines to automatically install the Azure Security agent. Security Center collects events from the agent and uses them to provide security alerts and tailored hardening tasks (recommendations). Target Linux Arc machines must be in a supported location.", - "metadata": { - "category": "Security Center", - "version": "1.0.0-preview", - "preview": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "linux*" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.HybridCompute/machines/extensions", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.HybridCompute/machines/extensions/type", - "equals": "AzureSecurityLinuxAgent" - }, - { - "field": "Microsoft.HybridCompute/machines/extensions/Publisher", - "equals": "Microsoft.Azure.Security.Monitoring" - }, - { - "field": "Microsoft.HybridCompute/machines/extensions/provisioningState", - "equals": "Succeeded" - } - ] - }, - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "deployment": { - "properties": { - "mode": "incremental", - "parameters": { - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "vmName": { - "value": "[field(\u0027name\u0027)]" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "location": { - "type": "string" - }, - "vmName": { - "type": "string" - } - }, - "variables": {}, - "resources": [ - { - "type": "Microsoft.HybridCompute/machines/extensions", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/\u0027, \u0027AzureSecurityLinuxAgent\u0027)]", - "apiVersion": "2021-06-10-preview", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "publisher": "Microsoft.Azure.Security.Monitoring", - "type": "AzureSecurityLinuxAgent", - "settings": {}, - "protectedSettings": {} - } - } - ] - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1144 - Security Assessments", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Security Assessment and Authorization control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1144" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1090 - Security Awareness Training", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Awareness and Training control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1090" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Web Application should only be accessible over HTTPS", - "policyType": "BuiltIn", - "mode": "All", - "description": "Use of HTTPS ensures server/service authentication and protects data in transit from network layer eavesdropping attacks.", - "metadata": { - "version": "1.0.0-deprecated", - "category": "Security Center", - "deprecated": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "allof": [ - { - "field": "type", - "equals": "microsoft.Web/sites" - }, - { - "anyof": [ - { - "field": "kind", - "equals": "app" - }, - { - "field": "kind", - "equals": "WebApp" - }, - { - "field": "kind", - "equals": "app,linux" - }, - { - "field": "kind", - "equals": "app,linux,container" - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Security/complianceResults", - "name": "OnlyHttpsForWebApplication", - "existenceCondition": { - "field": "Microsoft.Security/complianceResults/resourceStatus", - "in": [ - "OffByPolicy", - "Healthy" - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Show audit results from Windows VMs configurations in \u0027Security Options - Network Access\u0027", - "policyType": "BuiltIn", - "mode": "All", - "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: \u0027Security Options - Network Access\u0027. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol", - "metadata": { - "version": "1.0.0-deprecated", - "category": "Guest Configuration", - "deprecated": true - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "dsvm-windows" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - } - ] - }, - "then": { - "effect": "auditIfNotExists", - "details": { - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "AzureBaseline_SecurityOptionsNetworkAccess", - "existenceCondition": { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus", - "equals": "Compliant" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Azure Defender for Storage should be enabled", - "policyType": "BuiltIn", - "mode": "All", - "description": "Azure Defender for Storage provides detections of unusual and potentially harmful attempts to access or exploit storage accounts.", - "metadata": { - "version": "1.0.3", - "category": "Security Center" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Resources/subscriptions" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Security/pricings", - "name": "StorageAccounts", - "existenceScope": "subscription", - "existenceCondition": { - "field": "Microsoft.Security/pricings/pricingTier", - "equals": "Standard" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Configure Azure Cache for Redis to disable public network access", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Disable public network access for your Azure Cache for Redis resource so that it\u0027s not accessible over the public internet. This helps protect the cache against data leakage risks.", - "metadata": { - "category": "Cache", - "version": "1.0.0" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Modify", - "Disabled" - ], - "defaultValue": "Modify" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Cache/Redis" - }, - { - "field": "Microsoft.Cache/Redis/publicNetworkAccess", - "notEquals": "Disabled" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "conflictEffect": "audit", - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "operations": [ - { - "condition": "[greaterOrEquals(requestContext().apiVersion, \u00272020-06-01\u0027)]", - "operation": "addOrReplace", - "field": "Microsoft.Cache/Redis/publicNetworkAccess", - "value": "Disabled" - } - ] - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Configure Azure Automation account to disable local authentication", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Disable local authentication methods so that your Azure Automation accounts exclusively require Azure Active Directory identities for authentication.", - "metadata": { - "version": "1.0.0", - "category": "Automation" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Modify", - "Disabled" - ], - "defaultValue": "Modify" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Automation/automationAccounts" - }, - { - "field": "Microsoft.Automation/automationAccounts/disableLocalAuth", - "notEquals": true - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "conflictEffect": "audit", - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "operations": [ - { - "condition": "[greaterOrEquals(requestContext().apiVersion, \u00272021-06-22\u0027)]", - "operation": "addOrReplace", - "field": "Microsoft.Automation/automationAccounts/disableLocalAuth", - "value": true - } - ] - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Preview]: Configure Association to link Arc machines to default Azure Security Center Data Collection Rule", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Configure Arc machines to automatically create an association with the default data collection rule for Azure Security Center. Deleting this association will break the detection of security vulnerabilities for this Arc machine. Target Arc machines must be in a supported location.", - "metadata": { - "category": "Security Center", - "version": "1.0.0-preview", - "preview": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "location", - "in": [ - "australiacentral", - "australiaeast", - "australiasoutheast", - "brazilsouth", - "canadacentral", - "canadaeast", - "centralindia", - "centralus", - "eastasia", - "eastus2euap", - "eastus", - "eastus2", - "francecentral", - "germanywestcentral", - "japaneast", - "japanwest", - "jioindiawest", - "koreacentral", - "koreasouth", - "northcentralus", - "northeurope", - "norwayeast", - "southafricanorth", - "southcentralus", - "southeastasia", - "southindia", - "switzerlandnorth", - "uaenorth", - "uksouth", - "ukwest", - "westcentralus", - "westeurope", - "westindia", - "westus", - "westus2" - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Insights/dataCollectionRuleAssociations", - "name": "Security-RulesAssociation", - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "deployment": { - "properties": { - "mode": "incremental", - "parameters": { - "resourceGroup": { - "value": "[resourceGroup().name]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "vmName": { - "value": "[field(\u0027name\u0027)]" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "resourceGroup": { - "type": "string" - }, - "location": { - "type": "string" - }, - "vmName": { - "type": "string" - } - }, - "variables": { - "locationLongNameToShortMap": { - "australiacentral": "CAU", - "australiaeast": "EAU", - "australiasoutheast": "SEAU", - "brazilsouth": "CQ", - "canadacentral": "CCA", - "canadaeast": "CCA", - "centralindia": "CIN", - "centralus": "CUS", - "eastasia": "EA", - "eastus2euap": "eus2p", - "eastus": "EUS", - "eastus2": "EUS2", - "francecentral": "PAR", - "germanywestcentral": "DEWC", - "japaneast": "EJP", - "japanwest": "EJP", - "jioindiawest": "CIN", - "koreacentral": "SE", - "koreasouth": "SE", - "northcentralus": "NCUS", - "northeurope": "NEU", - "norwayeast": "NOE", - "southafricanorth": "JNB", - "southcentralus": "SCUS", - "southeastasia": "SEA", - "southindia": "CIN", - "swedencentral": "SEC", - "switzerlandnorth": "CHN", - "switzerlandwest": "CHW", - "uaenorth": "DXB", - "uksouth": "SUK", - "ukwest": "WUK", - "westcentralus": "WCUS", - "westeurope": "WEU", - "westindia": "CIN", - "westus": "WUS", - "westus2": "WUS2" - }, - "locationCode": "[variables(\u0027locationLongNameToShortMap\u0027)[parameters(\u0027location\u0027)]]", - "subscriptionId": "[subscription().subscriptionId]", - "defaultRGName": "[concat(\u0027DefaultResourceGroup-\u0027, variables(\u0027locationCode\u0027))]", - "dcrName": "[concat(\u0027Microsoft-Security-\u0027, parameters(\u0027location\u0027), \u0027-dcr\u0027)]", - "dcrId": "[concat(\u0027/subscriptions/\u0027, variables(\u0027subscriptionId\u0027), \u0027/resourceGroups/\u0027, variables(\u0027defaultRGName\u0027), \u0027/providers/Microsoft.Insights/dataCollectionRules/\u0027, variables(\u0027dcrName\u0027))]", - "dcraName": "[concat(parameters(\u0027vmName\u0027),\u0027/Microsoft.Insights/Security-RulesAssociation\u0027)]" - }, - "resources": [ - { - "type": "Microsoft.HybridCompute/machines/providers/dataCollectionRuleAssociations", - "name": "[variables(\u0027dcraName\u0027)]", - "apiVersion": "2019-11-01-preview", - "properties": { - "description": "Association of data collection rule for Azure Security Center. Deleting this association will break the detection of security vulnerabilities for this virtual machine.", - "dataCollectionRuleId": "[variables(\u0027dcrId\u0027)]" - } - } - ] - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Audit Windows machines missing any of specified members in the Administrators group", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if the local Administrators group does not contain one or more members that are listed in the policy parameter.", - "metadata": { - "category": "Guest Configuration", - "version": "2.0.0", - "requiredProviders": [ - "Microsoft.GuestConfiguration" - ], - "guestConfiguration": { - "name": "AdministratorsGroupMembersToInclude", - "version": "1.*", - "configurationParameter": { - "MembersToInclude": "[LocalGroup]AdministratorsGroup;MembersToInclude" - } - } - }, - "parameters": { - "IncludeArcMachines": { - "type": "String", - "metadata": { - "displayName": "Include Arc connected servers", - "description": "By selecting this option, you agree to be charged monthly per Arc connected machine.", - "portalReview": "true" - }, - "allowedValues": [ - "true", - "false" - ], - "defaultValue": "false" - }, - "MembersToInclude": { - "type": "String", - "metadata": { - "displayName": "Members to include", - "description": "A semicolon-separated list of members that should be included in the Administrators local group. Ex: Administrator; myUser1; myUser2" - } - } - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "dsvm-win*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "value": "[parameters(\u0027IncludeArcMachines\u0027)]", - "equals": "true" - }, - { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.ConnectedVMwarevSphere/virtualMachines" - }, - { - "field": "Microsoft.ConnectedVMwarevSphere/virtualMachines/osProfile.osType", - "like": "windows*" - } - ] - } - ] - } - ] - } - ] - }, - "then": { - "effect": "auditIfNotExists", - "details": { - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "AdministratorsGroupMembersToInclude", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus", - "equals": "Compliant" - }, - { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash", - "equals": "[base64(concat(\u0027[LocalGroup]AdministratorsGroup;MembersToInclude\u0027, \u0027=\u0027, parameters(\u0027MembersToInclude\u0027)))]" - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Deploy prerequisites to audit Windows VMs that are not joined to the specified domain", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines that are not joined to the specified domain. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol", - "metadata": { - "version": "1.2.0-deprecated", - "category": "Guest Configuration", - "requiredProviders": [ - "Microsoft.GuestConfiguration" - ], - "deprecated": true - }, - "parameters": { - "DomainName": { - "type": "String", - "metadata": { - "displayName": "Domain Name (FQDN)", - "description": "The fully qualified domain name (FQDN) that the Windows VMs should be joined to" - } - } - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "dsvm-windows" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - } - ] - }, - "then": { - "effect": "deployIfNotExists", - "details": { - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "WindowsDomainMembership", - "existenceCondition": { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash", - "equals": "[base64(concat(\u0027[DomainMembership]WindowsDomainMembership;DomainName\u0027, \u0027=\u0027, parameters(\u0027DomainName\u0027)))]" - }, - "deployment": { - "properties": { - "mode": "incremental", - "parameters": { - "vmName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "type": { - "value": "[field(\u0027type\u0027)]" - }, - "configurationName": { - "value": "WindowsDomainMembership" - }, - "DomainName": { - "value": "[parameters(\u0027DomainName\u0027)]" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "vmName": { - "type": "string" - }, - "location": { - "type": "string" - }, - "type": { - "type": "string" - }, - "configurationName": { - "type": "string" - }, - "DomainName": { - "type": "string" - } - }, - "resources": [ - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027microsoft.hybridcompute/machines\u0027))]", - "apiVersion": "2018-11-20", - "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/Microsoft.GuestConfiguration/\u0027, parameters(\u0027configurationName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "guestConfiguration": { - "name": "[parameters(\u0027configurationName\u0027)]", - "version": "1.*", - "configurationParameter": [ - { - "name": "[DomainMembership]WindowsDomainMembership;DomainName", - "value": "[parameters(\u0027DomainName\u0027)]" - } - ] - } - } - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2018-11-20", - "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/Microsoft.GuestConfiguration/\u0027, parameters(\u0027configurationName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "guestConfiguration": { - "name": "[parameters(\u0027configurationName\u0027)]", - "version": "1.*", - "configurationParameter": [ - { - "name": "[DomainMembership]WindowsDomainMembership;DomainName", - "value": "[parameters(\u0027DomainName\u0027)]" - } - ] - } - } - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2019-07-01", - "type": "Microsoft.Compute/virtualMachines", - "identity": { - "type": "SystemAssigned" - }, - "name": "[parameters(\u0027vmName\u0027)]", - "location": "[parameters(\u0027location\u0027)]" - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2019-07-01", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/AzurePolicyforWindows\u0027)]", - "type": "Microsoft.Compute/virtualMachines/extensions", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "publisher": "Microsoft.GuestConfiguration", - "type": "ConfigurationforWindows", - "typeHandlerVersion": "1.1", - "autoUpgradeMinorVersion": true, - "settings": {}, - "protectedSettings": {} - }, - "dependsOn": [ - "[concat(\u0027Microsoft.Compute/virtualMachines/\u0027,parameters(\u0027vmName\u0027),\u0027/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/\u0027,parameters(\u0027configurationName\u0027))]" - ] - } - ] - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1042 - Least Privilege | Auditing Use Of Privileged Functions", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Access Control control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1042" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1698 - Information System Monitoring | Individuals Posing Greater Risk", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Information Integrity control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1698" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Preview]: Log Analytics Extension should be enabled for listed virtual machine images", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Reports virtual machines as non-compliant if the virtual machine image is not in the list defined and the extension is not installed.", - "metadata": { - "version": "2.0.1-preview", - "category": "Monitoring", - "preview": true - }, - "parameters": { - "listOfImageIdToInclude_windows": { - "type": "Array", - "metadata": { - "displayName": "Optional: List of virtual machine images that have supported Windows OS to add to scope", - "description": "Example value: \u0027/subscriptions/\u003CsubscriptionId\u003E/resourceGroups/YourResourceGroup/providers/Microsoft.Compute/images/ContosoStdImage\u0027" - }, - "defaultValue": [] - }, - "listOfImageIdToInclude_linux": { - "type": "Array", - "metadata": { - "displayName": "Optional: List of virtual machine images that have supported Linux OS to add to scope", - "description": "Example value: \u0027/subscriptions/\u003CsubscriptionId\u003E/resourceGroups/YourResourceGroup/providers/Microsoft.Compute/images/ContosoStdImage\u0027" - }, - "defaultValue": [] - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "not": { - "anyOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageId", - "in": "[parameters(\u0027listOfImageIdToInclude_windows\u0027)]" - }, - { - "field": "Microsoft.Compute/imageId", - "in": "[parameters(\u0027listOfImageIdToInclude_linux\u0027)]" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "in": [ - "2008-R2-SP1", - "2008-R2-SP1-smalldisk", - "2012-Datacenter", - "2012-Datacenter-smalldisk", - "2012-R2-Datacenter", - "2012-R2-Datacenter-smalldisk", - "2016-Datacenter", - "2016-Datacenter-Server-Core", - "2016-Datacenter-Server-Core-smalldisk", - "2016-Datacenter-smalldisk", - "2016-Datacenter-with-Containers", - "2016-Datacenter-with-RDSH", - "2019-Datacenter", - "2019-Datacenter-Core", - "2019-Datacenter-Core-smalldisk", - "2019-Datacenter-Core-with-Containers", - "2019-Datacenter-Core-with-Containers-smalldisk", - "2019-Datacenter-smalldisk", - "2019-Datacenter-with-Containers", - "2019-Datacenter-with-Containers-smalldisk", - "2019-Datacenter-zhcn" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServerSemiAnnual" - }, - { - "field": "Microsoft.Compute/imageSKU", - "in": [ - "Datacenter-Core-1709-smalldisk", - "Datacenter-Core-1709-with-Containers-smalldisk", - "Datacenter-Core-1803-with-Containers-smalldisk" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServerHPCPack" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServerHPCPack" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2016" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2016-BYOL" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2012R2" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2012R2-BYOL" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftRServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "MLServer-WS2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftVisualStudio" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "VisualStudio", - "Windows" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftDynamicsAX" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Dynamics" - }, - { - "field": "Microsoft.Compute/imageSKU", - "equals": "Pre-Req-AX7-Onebox-U8" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftDynamicsAX" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Dynamics" - }, - { - "field": "Microsoft.Compute/imageSKU", - "equals": "Pre-Req-AX7-Onebox-V4" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "windows-data-science-vm" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsDesktop" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Windows-10" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "RedHat" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "RHEL", - "RHEL-SAP-HANA" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "like": "6.*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "7*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "SUSE" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "SLES", - "SLES-HPC", - "SLES-HPC-Priority", - "SLES-SAP", - "SLES-SAP-BYOS", - "SLES-Priority", - "SLES-BYOS", - "SLES-SAPCAL", - "SLES-Standard" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "like": "12*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Canonical" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "UbuntuServer" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "like": "14.04*LTS" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "16.04*LTS" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "18.04*LTS" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Oracle" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Oracle-Linux" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "like": "6.*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "7.*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "OpenLogic" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "CentOS", - "Centos-LVM", - "CentOS-SRIOV" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "like": "6.*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "7*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloudera" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "cloudera-centos-os" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "7*" - } - ] - } - ] - } - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Compute/virtualMachines/extensions", - "existenceCondition": { - "field": "Microsoft.Compute/virtualMachines/extensions/publisher", - "equals": "Microsoft.EnterpriseCloud.Monitoring" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "API apps should use an Azure file share for its content directory", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "The content directory of an API app should be located on an Azure file share. The storage account information for the file share must be provided before any publishing activity. To learn more about using Azure Files for hosting app service content refer to https://go.microsoft.com/fwlink/?linkid=2151594.", - "metadata": { - "version": "1.0.0", - "category": "App Service" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Web/sites" - }, - { - "field": "kind", - "like": "*api" - }, - { - "field": "Microsoft.Web/sites/storageAccountRequired", - "equals": "true" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1587 - External Information System Services", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Services Acquisition control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1587" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1333 - Authenticator Management | Pki-Based Authentication", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Identification and Authentication control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1333" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Linux virtual machine scale sets should have Azure Monitor Agent installed", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Linux virtual machine scale sets should be monitored and secured through the deployed Azure Monitor Agent. The Azure Monitor Agent collects telemetry data from the guest OS. This policy will audit virtual machine scale sets with supported OS images in supported regions. Learn more: https://aka.ms/AMAOverview.", - "metadata": { - "version": "1.0.0", - "category": "Monitoring" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy." - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - }, - "listOfLinuxImageIdToInclude": { - "type": "Array", - "metadata": { - "displayName": "Additional Virtual Machine Images", - "description": "List of virtual machine images that have supported Linux OS to add to scope. Example values: \u0027/subscriptions/\u003CsubscriptionId\u003E/resourceGroups/YourResourceGroup/providers/Microsoft.Compute/images/ContosoStdImage\u0027" - }, - "defaultValue": [] - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachineScaleSets" - }, - { - "field": "location", - "in": [ - "australiacentral", - "australiaeast", - "australiasoutheast", - "brazilsouth", - "canadacentral", - "canadaeast", - "centralindia", - "centralus", - "eastasia", - "eastus2euap", - "eastus", - "eastus2", - "francecentral", - "germanywestcentral", - "japaneast", - "japanwest", - "jioindiawest", - "koreacentral", - "koreasouth", - "northcentralus", - "northeurope", - "norwayeast", - "southafricanorth", - "southcentralus", - "southeastasia", - "southindia", - "switzerlandnorth", - "uaenorth", - "uksouth", - "ukwest", - "westcentralus", - "westeurope", - "westindia", - "westus", - "westus2" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageId", - "in": "[parameters(\u0027listOfLinuxImageIdToInclude\u0027)]" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "RedHat" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "RHEL", - "RHEL-SAP-HANA" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSku", - "like": "6*" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "7*" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "8*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "SUSE" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "SLES", - "SLES-HPC", - "SLES-HPC-Priority", - "SLES-SAP", - "SLES-SAP-BYOS", - "SLES-Priority", - "SLES-BYOS", - "SLES-SAPCAL", - "SLES-Standard" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSku", - "like": "12*" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "15*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Canonical" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "UbuntuServer" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSku", - "like": "14.04*LTS" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "16.04*LTS" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "18.04*LTS" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Canonical" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "0001-com-ubuntu-server-focal" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSku", - "like": "20_04-lts*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Oracle" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Oracle-Linux" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSku", - "like": "6*" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "7*" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "8*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "OpenLogic" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "CentOS", - "Centos-LVM", - "CentOS-SRIOV" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSku", - "like": "6*" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "7*" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "8*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloudera" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "cloudera-centos-os" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "7*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "credativ" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "debian" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSku", - "like": "8" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "9" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Debian" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "debian-10" - ] - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "10" - } - ] - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Compute/virtualMachineScaleSets/extensions", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.Compute/virtualMachineScaleSets/extensions/type", - "equals": "AzureMonitorLinuxAgent" - }, - { - "field": "Microsoft.Compute/virtualMachineScaleSets/extensions/publisher", - "equals": "Microsoft.Azure.Monitor" - }, - { - "field": "Microsoft.Compute/virtualMachineScaleSets/extensions/provisioningState", - "equals": "Succeeded" - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Deploy prerequisites to audit Windows VMs on which the specified services are not installed and \u0027Running\u0027", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines on which the specified services are not installed and \u0027Running\u0027. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol", - "metadata": { - "version": "1.2.0-deprecated", - "category": "Guest Configuration", - "requiredProviders": [ - "Microsoft.GuestConfiguration" - ], - "deprecated": true - }, - "parameters": { - "ServiceName": { - "type": "String", - "metadata": { - "displayName": "Service names (supports wildcards)", - "description": "A semicolon-separated list of the names of the services that should be installed and \u0027Running\u0027. e.g. \u0027WinRm;Wi*\u0027" - } - } - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "dsvm-windows" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - } - ] - }, - "then": { - "effect": "deployIfNotExists", - "details": { - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "WindowsServiceStatus", - "existenceCondition": { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash", - "equals": "[base64(concat(\u0027[WindowsServiceStatus]WindowsServiceStatus1;ServiceName\u0027, \u0027=\u0027, parameters(\u0027ServiceName\u0027)))]" - }, - "deployment": { - "properties": { - "mode": "incremental", - "parameters": { - "vmName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "type": { - "value": "[field(\u0027type\u0027)]" - }, - "configurationName": { - "value": "WindowsServiceStatus" - }, - "ServiceName": { - "value": "[parameters(\u0027ServiceName\u0027)]" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "vmName": { - "type": "string" - }, - "location": { - "type": "string" - }, - "type": { - "type": "string" - }, - "configurationName": { - "type": "string" - }, - "ServiceName": { - "type": "string" - } - }, - "resources": [ - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027microsoft.hybridcompute/machines\u0027))]", - "apiVersion": "2018-11-20", - "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/Microsoft.GuestConfiguration/\u0027, parameters(\u0027configurationName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "guestConfiguration": { - "name": "[parameters(\u0027configurationName\u0027)]", - "version": "1.*", - "configurationParameter": [ - { - "name": "[WindowsServiceStatus]WindowsServiceStatus1;ServiceName", - "value": "[parameters(\u0027ServiceName\u0027)]" - } - ] - } - } - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2018-11-20", - "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/Microsoft.GuestConfiguration/\u0027, parameters(\u0027configurationName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "guestConfiguration": { - "name": "[parameters(\u0027configurationName\u0027)]", - "version": "1.*", - "configurationParameter": [ - { - "name": "[WindowsServiceStatus]WindowsServiceStatus1;ServiceName", - "value": "[parameters(\u0027ServiceName\u0027)]" - } - ] - } - } - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2019-07-01", - "type": "Microsoft.Compute/virtualMachines", - "identity": { - "type": "SystemAssigned" - }, - "name": "[parameters(\u0027vmName\u0027)]", - "location": "[parameters(\u0027location\u0027)]" - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2019-07-01", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/AzurePolicyforWindows\u0027)]", - "type": "Microsoft.Compute/virtualMachines/extensions", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "publisher": "Microsoft.GuestConfiguration", - "type": "ConfigurationforWindows", - "typeHandlerVersion": "1.1", - "autoUpgradeMinorVersion": true, - "settings": {}, - "protectedSettings": {} - }, - "dependsOn": [ - "[concat(\u0027Microsoft.Compute/virtualMachines/\u0027,parameters(\u0027vmName\u0027),\u0027/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/\u0027,parameters(\u0027configurationName\u0027))]" - ] - } - ] - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1445 - Physical And Environmental Protection Policy And Procedures", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Physical and Environmental Protection control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1445" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Azure SQL Database should be running TLS version 1.2 or newer", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Setting TLS version to 1.2 or newer improves security by ensuring your Azure SQL Database can only be accessed from clients using TLS 1.2 or newer. Using versions of TLS less than 1.2 is not recommended since they have well documented security vulnerabilities.", - "metadata": { - "version": "1.0.1", - "category": "SQL" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Sql/servers" - }, - { - "anyOf": [ - { - "field": "Microsoft.Sql/servers/minimalTlsVersion", - "exists": false - }, - { - "field": "Microsoft.Sql/servers/minimalTlsVersion", - "notEquals": "1.2" - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Deploy the Linux Guest Configuration extension to enable Guest Configuration assignments on Linux VMs", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "This policy deploys the Linux Guest Configuration extension to Linux virtual machines hosted in Azure that are supported by Guest Configuration. The Linux Guest Configuration extension is a prerequisite for all Linux Guest Configuration assignments and must be deployed to machines before using any Linux Guest Configuration policy definition. For more information on Guest Configuration, visit https://aka.ms/gcpol.", - "metadata": { - "category": "Guest Configuration", - "version": "2.0.0" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "microsoft-aks", - "qubole-inc", - "datastax", - "couchbase", - "scalegrid", - "checkpoint", - "paloaltonetworks", - "debian" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "OpenLogic" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "CentOS*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "6*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Oracle" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Oracle-Linux" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "6*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "RedHat" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "RHEL", - "RHEL-HA", - "RHEL-SAP", - "RHEL-SAP-APPS", - "RHEL-SAP-HA", - "RHEL-SAP-HANA" - ] - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "6*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "RedHat" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "osa", - "rhel-byos" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "cis-centos-7-l1", - "cis-centos-7-v2-1-1-l1", - "cis-centos-8-l1", - "cis-debian-linux-8-l1", - "cis-debian-linux-9-l1", - "cis-nginx-centos-7-v1-1-0-l1", - "cis-oracle-linux-7-v2-0-0-l1", - "cis-oracle-linux-8-l1", - "cis-postgresql-11-centos-linux-7-level-1", - "cis-rhel-7-l2", - "cis-rhel-7-v2-2-0-l1", - "cis-rhel-8-l1", - "cis-suse-linux-12-v2-0-0-l1", - "cis-ubuntu-linux-1604-v1-0-0-l1", - "cis-ubuntu-linux-1804-l1" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "credativ" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Debian" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "7*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Suse" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "SLES*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "11*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Canonical" - }, - { - "field": "Microsoft.Compute/imageOffer", - "contains": "Ubuntu" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "12*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "linux-data-science-vm-ubuntu", - "azureml", - "ubuntu-hpc", - "ubuntu-1804" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloudera" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "cloudera-centos-os" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "6*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloudera" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "cloudera-altus-centos-os" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "linux*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.linuxConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Linux*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "exists": "false" - }, - { - "field": "Microsoft.Compute/imagePublisher", - "notIn": [ - "OpenLogic", - "RedHat", - "credativ", - "Suse", - "Canonical", - "microsoft-dsvm", - "cloudera", - "microsoft-ads", - "center-for-internet-security-inc", - "Oracle", - "AzureDatabricks", - "azureopenshift" - ] - } - ] - } - ] - } - ] - } - ] - }, - "then": { - "effect": "deployIfNotExists", - "details": { - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "type": "Microsoft.Compute/virtualMachines/extensions", - "name": "AzurePolicyforLinux", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.Compute/virtualMachines/extensions/publisher", - "equals": "Microsoft.GuestConfiguration" - }, - { - "field": "Microsoft.Compute/virtualMachines/extensions/type", - "equals": "ConfigurationforLinux" - }, - { - "field": "Microsoft.Compute/virtualMachines/extensions/provisioningState", - "equals": "Succeeded" - } - ] - }, - "deployment": { - "properties": { - "mode": "incremental", - "parameters": { - "vmName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "vmName": { - "type": "string" - }, - "location": { - "type": "string" - } - }, - "resources": [ - { - "apiVersion": "2019-07-01", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/AzurePolicyforLinux\u0027)]", - "type": "Microsoft.Compute/virtualMachines/extensions", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "publisher": "Microsoft.GuestConfiguration", - "type": "ConfigurationforLinux", - "typeHandlerVersion": "1.0", - "autoUpgradeMinorVersion": true, - "enableAutomaticUpgrade": true, - "settings": {}, - "protectedSettings": {} - } - } - ] - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "App Service apps should enable outbound non-RFC 1918 traffic to Azure Virtual Network", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "By default, if one uses regional Azure Virtual Network (VNET) integration, the app only routes RFC1918 traffic into that respective virtual network. Using the API to set \u0027vnetRouteAllEnabled\u0027 to true enables all outbound traffic into the Azure Virtual Network. This setting allows features like network security groups and user defined routes to be used for all outbound traffic from the App Service app.", - "metadata": { - "version": "1.0.0", - "category": "App Service" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Web/sites" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Web/sites/config", - "name": "web", - "existenceCondition": { - "field": "Microsoft.Web/sites/config/vnetRouteAllEnabled", - "equals": "true" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "MySQL server should use a virtual network service endpoint", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Virtual network based firewall rules are used to enable traffic from a specific subnet to Azure Database for MySQL while ensuring the traffic stays within the Azure boundary. This policy provides a way to audit if the Azure Database for MySQL has virtual network service endpoint being used.", - "metadata": { - "version": "1.0.2", - "category": "SQL" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.DBforMySQL/servers" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.DBforMySQL/servers/virtualNetworkRules", - "existenceCondition": { - "field": "Microsoft.DBforMySQL/servers/virtualNetworkRules/virtualNetworkSubnetId", - "exists": "true" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Windows machines should meet requirements for \u0027Security Options - Audit\u0027", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Windows machines should have the specified Group Policy settings in the category \u0027Security Options - Audit\u0027 for forcing audit policy subcategory and shutting down if unable to log security audits. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.", - "metadata": { - "category": "Guest Configuration", - "version": "3.0.0", - "requiredProviders": [ - "Microsoft.GuestConfiguration" - ], - "guestConfiguration": { - "name": "AzureBaseline_SecurityOptionsAudit", - "version": "1.*", - "configurationParameter": { - "AuditShutDownSystemImmediatelyIfUnableToLogSecurityAudits": "Audit: Shut down system immediately if unable to log security audits;ExpectedValue" - } - } - }, - "parameters": { - "IncludeArcMachines": { - "type": "String", - "metadata": { - "displayName": "Include Arc connected servers", - "description": "By selecting this option, you agree to be charged monthly per Arc connected machine.", - "portalReview": "true" - }, - "allowedValues": [ - "true", - "false" - ], - "defaultValue": "false" - }, - "AuditShutDownSystemImmediatelyIfUnableToLogSecurityAudits": { - "type": "String", - "metadata": { - "displayName": "Audit: Shut down system immediately if unable to log security audits", - "description": "Audits if the system will shut down when unable to log Security events." - }, - "defaultValue": "0" - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of this policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "dsvm-win*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "value": "[parameters(\u0027IncludeArcMachines\u0027)]", - "equals": "true" - }, - { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.ConnectedVMwarevSphere/virtualMachines" - }, - { - "field": "Microsoft.ConnectedVMwarevSphere/virtualMachines/osProfile.osType", - "like": "windows*" - } - ] - } - ] - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "AzureBaseline_SecurityOptionsAudit", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus", - "equals": "Compliant" - }, - { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash", - "equals": "[base64(concat(\u0027Audit: Shut down system immediately if unable to log security audits;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027AuditShutDownSystemImmediatelyIfUnableToLogSecurityAudits\u0027)))]" - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1282 - Telecommunications Services | Single Points Of Failure", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Contingency Planning control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1282" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Configure backup on virtual machines with a given tag to an existing recovery services vault in the same location", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Enforce backup for all virtual machines by backing them up to an existing central recovery services vault in the same location and subscription as the virtual machine. Doing this is useful when there is a central team in your organization managing backups for all resources in a subscription. You can optionally include virtual machines containing a specified tag to control the scope of assignment. See https://aka.ms/AzureVMCentralBackupIncludeTag.", - "metadata": { - "version": "6.0.0", - "category": "Backup" - }, - "parameters": { - "vaultLocation": { - "type": "String", - "metadata": { - "displayName": "Location (Specify the location of the VMs that you want to protect)", - "description": "Specify the location of the VMs that you want to protect. VMs should be backed up to a vault in the same location. For example - CanadaCentral", - "strongType": "location" - } - }, - "inclusionTagName": { - "type": "String", - "metadata": { - "displayName": "Inclusion Tag Name", - "description": "Name of the tag to use for including VMs in the scope of this policy. This should be used along with the Inclusion Tag Value parameter. Learn more at https://aka.ms/AppCentricVMBackupPolicy" - }, - "defaultValue": "" - }, - "inclusionTagValue": { - "type": "Array", - "metadata": { - "displayName": "Inclusion Tag Values", - "description": "Value of the tag to use for including VMs in the scope of this policy (in case of multiple values, use a comma-separated list). This should be used along with the Inclusion Tag Name parameter. Learn more at https://aka.ms/AppCentricVMBackupPolicy." - } - }, - "backupPolicyId": { - "type": "String", - "metadata": { - "displayName": "Backup Policy (of type Azure VM from a vault in the location chosen above)", - "description": "Specify the ID of the Azure Backup policy to configure backup of the virtual machines. The selected Azure Backup policy should be of type Azure Virtual Machine. This policy needs to be in a vault that is present in the location chosen above. For example - /subscriptions/\u003CSubscriptionId\u003E/resourceGroups/\u003CresourceGroupName\u003E/providers/Microsoft.RecoveryServices/vaults/\u003CVaultName\u003E/backupPolicies/\u003CBackupPolicyName\u003E", - "strongType": "Microsoft.RecoveryServices/vaults/backupPolicies" - } - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "deployIfNotExists", - "auditIfNotExists", - "disabled" - ], - "defaultValue": "deployIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "field": "id", - "notContains": "/resourceGroups/databricks-rg-" - }, - { - "field": "Microsoft.Compute/imagePublisher", - "notEquals": "azureopenshift" - }, - { - "field": "Microsoft.Compute/imagePublisher", - "notEquals": "AzureDatabricks" - }, - { - "field": "location", - "equals": "[parameters(\u0027vaultLocation\u0027)]" - }, - { - "field": "[concat(\u0027tags[\u0027, parameters(\u0027inclusionTagName\u0027), \u0027]\u0027)]", - "in": "[parameters(\u0027inclusionTagValue\u0027)]" - }, - { - "anyOf": [ - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "in": [ - "2008-R2-SP1", - "2008-R2-SP1-smalldisk", - "2012-Datacenter", - "2012-Datacenter-smalldisk", - "2012-R2-Datacenter", - "2012-R2-Datacenter-smalldisk", - "2016-Datacenter", - "2016-Datacenter-Server-Core", - "2016-Datacenter-Server-Core-smalldisk", - "2016-Datacenter-smalldisk", - "2016-Datacenter-with-Containers", - "2016-Datacenter-with-RDSH", - "2019-Datacenter", - "2019-Datacenter-Core", - "2019-Datacenter-Core-smalldisk", - "2019-Datacenter-Core-with-Containers", - "2019-Datacenter-Core-with-Containers-smalldisk", - "2019-Datacenter-smalldisk", - "2019-Datacenter-with-Containers", - "2019-Datacenter-with-Containers-smalldisk", - "2019-Datacenter-zhcn", - "2019-datacenter-gensecond", - "2022-datacenter-g2", - "2022-datacenter", - "2022-datacenter-azure-edition", - "2022-datacenter-azure-edition-smalldisk", - "2022-datacenter-azure-edition-core", - "2022-datacenter-azure-edition-core-smalldisk", - "2022-datacenter-smalldisk-g2", - "2022-datacenter-smalldisk", - "2022-datacenter-core-g2", - "2022-datacenter-core", - "2022-datacenter-core-smalldisk-g2", - "2022-datacenter-core-smalldisk" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServerSemiAnnual" - }, - { - "field": "Microsoft.Compute/imageSKU", - "in": [ - "Datacenter-Core-1709-smalldisk", - "Datacenter-Core-1709-with-Containers-smalldisk", - "Datacenter-Core-1803-with-Containers-smalldisk" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServerHPCPack" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServerHPCPack" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2019" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2016" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2016-BYOL" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2012R2" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2012R2-BYOL" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftRServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "MLServer-WS2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftVisualStudio" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "VisualStudio", - "Windows" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftDynamicsAX" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Dynamics" - }, - { - "field": "Microsoft.Compute/imageSKU", - "equals": "Pre-Req-AX7-Onebox-U8" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "windows-data-science-vm" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsDesktop" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Windows-10" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "RedHat" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "RHEL", - "RHEL-SAP-HANA" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "like": "6.*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "7*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "SUSE" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "SLES", - "SLES-HPC", - "SLES-HPC-Priority", - "SLES-SAP", - "SLES-SAP-BYOS", - "SLES-Priority", - "SLES-BYOS", - "SLES-SAPCAL", - "SLES-Standard" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "like": "12*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Canonical" - }, - { - "field": "Microsoft.Compute/imageOffer", - "contains": "ubuntu" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "like": "14.04*LTS" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "16.04*LTS" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "18.04*LTS" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "*20_04-lts" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "20_04-lts*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Oracle" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Oracle-Linux" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "like": "6.*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "7.*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "OpenLogic" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "CentOS", - "Centos-LVM", - "CentOS-SRIOV" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "like": "6.*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "7*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloudera" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "cloudera-centos-os" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "7*" - } - ] - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000", - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "type": "Microsoft.RecoveryServices/backupprotecteditems", - "deployment": { - "properties": { - "mode": "incremental", - "template": { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "backupPolicyId": { - "type": "String" - }, - "fabricName": { - "type": "String" - }, - "protectionContainers": { - "type": "String" - }, - "protectedItems": { - "type": "String" - }, - "sourceResourceId": { - "type": "String" - } - }, - "resources": [ - { - "apiVersion": "2017-05-10", - "name": "[concat(\u0027DeployProtection-\u0027,uniqueString(parameters(\u0027protectedItems\u0027)))]", - "type": "Microsoft.Resources/deployments", - "resourceGroup": "[first(skip(split(parameters(\u0027backupPolicyId\u0027), \u0027/\u0027), 4))]", - "subscriptionId": "[first(skip(split(parameters(\u0027backupPolicyId\u0027), \u0027/\u0027), 2))]", - "properties": { - "mode": "Incremental", - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "backupPolicyId": { - "type": "String" - }, - "fabricName": { - "type": "String" - }, - "protectionContainers": { - "type": "String" - }, - "protectedItems": { - "type": "String" - }, - "sourceResourceId": { - "type": "String" - } - }, - "resources": [ - { - "type": "Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems", - "name": "[concat(first(skip(split(parameters(\u0027backupPolicyId\u0027), \u0027/\u0027), 8)), \u0027/\u0027, parameters(\u0027fabricName\u0027), \u0027/\u0027,parameters(\u0027protectionContainers\u0027), \u0027/\u0027, parameters(\u0027protectedItems\u0027))]", - "apiVersion": "2016-06-01", - "properties": { - "protectedItemType": "Microsoft.Compute/virtualMachines", - "policyId": "[parameters(\u0027backupPolicyId\u0027)]", - "sourceResourceId": "[parameters(\u0027sourceResourceId\u0027)]" - } - } - ] - }, - "parameters": { - "backupPolicyId": { - "value": "[parameters(\u0027backupPolicyId\u0027)]" - }, - "fabricName": { - "value": "[parameters(\u0027fabricName\u0027)]" - }, - "protectionContainers": { - "value": "[parameters(\u0027protectionContainers\u0027)]" - }, - "protectedItems": { - "value": "[parameters(\u0027protectedItems\u0027)]" - }, - "sourceResourceId": { - "value": "[parameters(\u0027sourceResourceId\u0027)]" - } - } - } - } - ] - }, - "parameters": { - "backupPolicyId": { - "value": "[parameters(\u0027backupPolicyId\u0027)]" - }, - "fabricName": { - "value": "Azure" - }, - "protectionContainers": { - "value": "[concat(\u0027iaasvmcontainer;iaasvmcontainerv2;\u0027, resourceGroup().name, \u0027;\u0027 ,field(\u0027name\u0027))]" - }, - "protectedItems": { - "value": "[concat(\u0027vm;iaasvmcontainerv2;\u0027, resourceGroup().name, \u0027;\u0027 ,field(\u0027name\u0027))]" - }, - "sourceResourceId": { - "value": "[concat(\u0027/subscriptions/\u0027, subscription().subscriptionId, \u0027/resourceGroups/\u0027, resourceGroup().name, \u0027/providers/Microsoft.Compute/virtualMachines/\u0027,field(\u0027name\u0027))]" - } - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Deploy prerequisites to audit Linux VMs that have accounts without passwords", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "This policy creates a Guest Configuration assignment to audit Linux virtual machines that have accounts without passwords. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol", - "metadata": { - "version": "4.0.0-deprecated", - "category": "Guest Configuration", - "requiredProviders": [ - "Microsoft.GuestConfiguration" - ], - "deprecated": true - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "microsoft-aks", - "qubole-inc", - "datastax", - "couchbase", - "scalegrid", - "checkpoint", - "paloaltonetworks", - "debian" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "OpenLogic" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "CentOS*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "6*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Oracle" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Oracle-Linux" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "6*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "RedHat" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "RHEL", - "RHEL-HA", - "RHEL-SAP", - "RHEL-SAP-APPS", - "RHEL-SAP-HA", - "RHEL-SAP-HANA" - ] - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "6*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "RedHat" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "osa", - "rhel-byos" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "cis-centos-7-l1", - "cis-centos-7-v2-1-1-l1", - "cis-centos-8-l1", - "cis-debian-linux-8-l1", - "cis-debian-linux-9-l1", - "cis-nginx-centos-7-v1-1-0-l1", - "cis-oracle-linux-7-v2-0-0-l1", - "cis-oracle-linux-8-l1", - "cis-postgresql-11-centos-linux-7-level-1", - "cis-rhel-7-l2", - "cis-rhel-7-v2-2-0-l1", - "cis-rhel-8-l1", - "cis-suse-linux-12-v2-0-0-l1", - "cis-ubuntu-linux-1604-v1-0-0-l1", - "cis-ubuntu-linux-1804-l1" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "credativ" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Debian" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "7*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Suse" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "SLES*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "11*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Canonical" - }, - { - "field": "Microsoft.Compute/imageOffer", - "contains": "Ubuntu" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "12*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "linux-data-science-vm-ubuntu", - "azureml", - "ubuntu-hpc", - "ubuntu-1804" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloudera" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "cloudera-centos-os" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "6*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloudera" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "cloudera-altus-centos-os" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "linux*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.linuxConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Linux*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "exists": "false" - }, - { - "field": "Microsoft.Compute/imagePublisher", - "notIn": [ - "OpenLogic", - "RedHat", - "credativ", - "Suse", - "Canonical", - "microsoft-dsvm", - "cloudera", - "microsoft-ads", - "center-for-internet-security-inc", - "Oracle", - "AzureDatabricks", - "azureopenshift" - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "linux*" - } - ] - } - ] - }, - "then": { - "effect": "deployIfNotExists", - "details": { - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "PasswordPolicy_msid232", - "deployment": { - "properties": { - "mode": "incremental", - "parameters": { - "vmName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "type": { - "value": "[field(\u0027type\u0027)]" - }, - "configurationName": { - "value": "PasswordPolicy_msid232" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "vmName": { - "type": "string" - }, - "location": { - "type": "string" - }, - "type": { - "type": "string" - }, - "configurationName": { - "type": "string" - } - }, - "resources": [ - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027microsoft.hybridcompute/machines\u0027))]", - "apiVersion": "2018-11-20", - "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/Microsoft.GuestConfiguration/\u0027, parameters(\u0027configurationName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "guestConfiguration": { - "name": "[parameters(\u0027configurationName\u0027)]", - "version": "1.*" - } - } - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2018-11-20", - "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/Microsoft.GuestConfiguration/\u0027, parameters(\u0027configurationName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "guestConfiguration": { - "name": "[parameters(\u0027configurationName\u0027)]", - "version": "1.*" - } - } - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2019-07-01", - "type": "Microsoft.Compute/virtualMachines", - "identity": { - "type": "SystemAssigned" - }, - "name": "[parameters(\u0027vmName\u0027)]", - "location": "[parameters(\u0027location\u0027)]" - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2019-07-01", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/AzurePolicyforLinux\u0027)]", - "type": "Microsoft.Compute/virtualMachines/extensions", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "publisher": "Microsoft.GuestConfiguration", - "type": "ConfigurationforLinux", - "typeHandlerVersion": "1.0", - "autoUpgradeMinorVersion": true, - "settings": {}, - "protectedSettings": {} - }, - "dependsOn": [ - "[concat(\u0027Microsoft.Compute/virtualMachines/\u0027,parameters(\u0027vmName\u0027),\u0027/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/\u0027,parameters(\u0027configurationName\u0027))]" - ] - } - ] - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1151 - System Interconnections", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Security Assessment and Authorization control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1151" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Azure Synapse workspaces should allow outbound data traffic only to approved targets", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Increase security of your Synapse workspace by allowing outbound data traffic only to approved targets. This helps prevention against data exfiltration by validating the target before sending data.", - "metadata": { - "version": "1.0.0", - "category": "Synapse" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Disabled", - "Deny" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Synapse/workspaces" - }, - { - "field": "Microsoft.Synapse/workspaces/managedVirtualNetworkSettings.preventDataExfiltration", - "notEquals": "true" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1412 - Nonlocal Maintenance", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Maintenance control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1412" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1475 - Emergency Lighting", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Physical and Environmental Protection control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1475" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1060 - Remote Access", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Access Control control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1060" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Storage accounts should restrict network access", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Network access to storage accounts should be restricted. Configure network rules so only applications from allowed networks can access the storage account. To allow connections from specific internet or on-premises clients, access can be granted to traffic from specific Azure virtual networks or to public internet IP address ranges", - "metadata": { - "version": "1.1.1", - "category": "Storage" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "The effect determines what happens when the policy rule is evaluated to match" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Storage/storageAccounts" - }, - { - "field": "Microsoft.Storage/storageAccounts/networkAcls.defaultAction", - "notEquals": "Deny" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1341 - Authenticator Management | Multiple Information System Accounts", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Identification and Authentication control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1341" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Resource logs in Logic Apps should be enabled", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Audit enabling of resource logs. This enables you to recreate activity trails to use for investigation purposes; when a security incident occurs or when your network is compromised", - "metadata": { - "version": "5.0.0", - "category": "Logic Apps" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - }, - "requiredRetentionDays": { - "type": "String", - "metadata": { - "displayName": "Required retention (days)", - "description": "The required resource logs retention in days" - }, - "defaultValue": "365" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Logic/workflows" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Insights/diagnosticSettings", - "existenceCondition": { - "count": { - "field": "Microsoft.Insights/diagnosticSettings/logs[*]", - "where": { - "anyOf": [ - { - "allOf": [ - { - "field": "Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.enabled", - "equals": "true" - }, - { - "anyOf": [ - { - "field": "Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.days", - "equals": "0" - }, - { - "value": "[padLeft(current(\u0027Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.days\u0027), 3, \u00270\u0027)]", - "greaterOrEquals": "[padLeft(parameters(\u0027requiredRetentionDays\u0027), 3, \u00270\u0027)]" - } - ] - }, - { - "field": "Microsoft.Insights/diagnosticSettings/logs.enabled", - "equals": "true" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Insights/diagnosticSettings/logs.enabled", - "equals": "true" - }, - { - "anyOf": [ - { - "field": "Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.enabled", - "notEquals": "true" - }, - { - "field": "Microsoft.Insights/diagnosticSettings/storageAccountId", - "exists": false - } - ] - } - ] - } - ] - } - }, - "greaterOrEquals": 1 - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1210 - Configuration Settings", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Configuration Management control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1210" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Deploy prerequisites to audit Windows VMs that do not have a maximum password age of 70 days", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines that do not have a maximum password age of 70 days. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol", - "metadata": { - "version": "2.2.0-deprecated", - "category": "Guest Configuration", - "requiredProviders": [ - "Microsoft.GuestConfiguration" - ], - "deprecated": true - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "dsvm-windows" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - } - ] - }, - "then": { - "effect": "deployIfNotExists", - "details": { - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "MaximumPasswordAge", - "deployment": { - "properties": { - "mode": "incremental", - "parameters": { - "vmName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "type": { - "value": "[field(\u0027type\u0027)]" - }, - "configurationName": { - "value": "MaximumPasswordAge" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "vmName": { - "type": "string" - }, - "location": { - "type": "string" - }, - "type": { - "type": "string" - }, - "configurationName": { - "type": "string" - } - }, - "resources": [ - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027microsoft.hybridcompute/machines\u0027))]", - "apiVersion": "2018-11-20", - "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/Microsoft.GuestConfiguration/\u0027, parameters(\u0027configurationName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "guestConfiguration": { - "name": "[parameters(\u0027configurationName\u0027)]", - "version": "1.*" - } - } - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2018-11-20", - "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/Microsoft.GuestConfiguration/\u0027, parameters(\u0027configurationName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "guestConfiguration": { - "name": "[parameters(\u0027configurationName\u0027)]", - "version": "1.*" - } - } - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2019-07-01", - "type": "Microsoft.Compute/virtualMachines", - "identity": { - "type": "SystemAssigned" - }, - "name": "[parameters(\u0027vmName\u0027)]", - "location": "[parameters(\u0027location\u0027)]" - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2019-07-01", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/AzurePolicyforWindows\u0027)]", - "type": "Microsoft.Compute/virtualMachines/extensions", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "publisher": "Microsoft.GuestConfiguration", - "type": "ConfigurationforWindows", - "typeHandlerVersion": "1.1", - "autoUpgradeMinorVersion": true, - "settings": {}, - "protectedSettings": {} - }, - "dependsOn": [ - "[concat(\u0027Microsoft.Compute/virtualMachines/\u0027,parameters(\u0027vmName\u0027),\u0027/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/\u0027,parameters(\u0027configurationName\u0027))]" - ] - } - ] - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Windows machines should meet requirements for \u0027System Audit Policies - Object Access\u0027", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Windows machines should have the specified Group Policy settings in the category \u0027System Audit Policies - Object Access\u0027 for auditing file, registry, SAM, storage, filtering, kernel, and other system types. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.", - "metadata": { - "category": "Guest Configuration", - "version": "3.0.0", - "requiredProviders": [ - "Microsoft.GuestConfiguration" - ], - "guestConfiguration": { - "name": "AzureBaseline_SystemAuditPoliciesObjectAccess", - "version": "1.*", - "configurationParameter": { - "AuditDetailedFileShare": "Audit Detailed File Share;ExpectedValue", - "AuditFileShare": "Audit File Share;ExpectedValue", - "AuditFileSystem": "Audit File System;ExpectedValue" - } - } - }, - "parameters": { - "IncludeArcMachines": { - "type": "String", - "metadata": { - "displayName": "Include Arc connected servers", - "description": "By selecting this option, you agree to be charged monthly per Arc connected machine.", - "portalReview": "true" - }, - "allowedValues": [ - "true", - "false" - ], - "defaultValue": "false" - }, - "AuditDetailedFileShare": { - "type": "String", - "metadata": { - "displayName": "Audit Detailed File Share", - "description": "If this policy setting is enabled, access to all shared files and folders on the system is audited. Auditing for Success can lead to very high volumes of events." - }, - "allowedValues": [ - "No Auditing", - "Success", - "Failure", - "Success and Failure" - ], - "defaultValue": "No Auditing" - }, - "AuditFileShare": { - "type": "String", - "metadata": { - "displayName": "Audit File Share", - "description": "Specifies whether to audit events related to file shares: creation, deletion, modification, and access attempts. Also, it shows failed SMB SPN checks. Event volumes can be high on DCs and File Servers." - }, - "allowedValues": [ - "No Auditing", - "Success", - "Failure", - "Success and Failure" - ], - "defaultValue": "No Auditing" - }, - "AuditFileSystem": { - "type": "String", - "metadata": { - "displayName": "Audit File System", - "description": "Specifies whether audit events are generated when users attempt to access file system objects. Audit events are generated only for objects that have configured system access control lists (SACLs)." - }, - "allowedValues": [ - "No Auditing", - "Success", - "Failure", - "Success and Failure" - ], - "defaultValue": "No Auditing" - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of this policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "dsvm-win*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "value": "[parameters(\u0027IncludeArcMachines\u0027)]", - "equals": "true" - }, - { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.ConnectedVMwarevSphere/virtualMachines" - }, - { - "field": "Microsoft.ConnectedVMwarevSphere/virtualMachines/osProfile.osType", - "like": "windows*" - } - ] - } - ] - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "AzureBaseline_SystemAuditPoliciesObjectAccess", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus", - "equals": "Compliant" - }, - { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash", - "equals": "[base64(concat(\u0027Audit Detailed File Share;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027AuditDetailedFileShare\u0027), \u0027,\u0027, \u0027Audit File Share;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027AuditFileShare\u0027), \u0027,\u0027, \u0027Audit File System;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027AuditFileSystem\u0027)))]" - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "CORS should not allow every resource to access your API App", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Cross-Origin Resource Sharing (CORS) should not allow all domains to access your API app. Allow only required domains to interact with your API app.", - "metadata": { - "version": "1.0.0", - "category": "App Service" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Web/sites" - }, - { - "field": "kind", - "like": "*api" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Web/sites/config", - "existenceCondition": { - "field": "Microsoft.Web/sites/config/web.cors.allowedOrigins[*]", - "notEquals": "*" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1659 - Architecture And Provisioning For Name / Address Resolution Service", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Communications Protection control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1659" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Windows machines should meet requirements for \u0027Windows Firewall Properties\u0027", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Windows machines should have the specified Group Policy settings in the category \u0027Windows Firewall Properties\u0027 for firewall state, connections, rule management, and notifications. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.", - "metadata": { - "category": "Guest Configuration", - "version": "3.0.0", - "requiredProviders": [ - "Microsoft.GuestConfiguration" - ], - "guestConfiguration": { - "name": "AzureBaseline_WindowsFirewallProperties", - "version": "1.*", - "configurationParameter": { - "WindowsFirewallDomainUseProfileSettings": "Windows Firewall: Domain: Firewall state;ExpectedValue", - "WindowsFirewallDomainBehaviorForOutboundConnections": "Windows Firewall: Domain: Outbound connections;ExpectedValue", - "WindowsFirewallDomainApplyLocalConnectionSecurityRules": "Windows Firewall: Domain: Settings: Apply local connection security rules;ExpectedValue", - "WindowsFirewallDomainApplyLocalFirewallRules": "Windows Firewall: Domain: Settings: Apply local firewall rules;ExpectedValue", - "WindowsFirewallDomainDisplayNotifications": "Windows Firewall: Domain: Settings: Display a notification;ExpectedValue", - "WindowsFirewallPrivateUseProfileSettings": "Windows Firewall: Private: Firewall state;ExpectedValue", - "WindowsFirewallPrivateBehaviorForOutboundConnections": "Windows Firewall: Private: Outbound connections;ExpectedValue", - "WindowsFirewallPrivateApplyLocalConnectionSecurityRules": "Windows Firewall: Private: Settings: Apply local connection security rules;ExpectedValue", - "WindowsFirewallPrivateApplyLocalFirewallRules": "Windows Firewall: Private: Settings: Apply local firewall rules;ExpectedValue", - "WindowsFirewallPrivateDisplayNotifications": "Windows Firewall: Private: Settings: Display a notification;ExpectedValue", - "WindowsFirewallPublicUseProfileSettings": "Windows Firewall: Public: Firewall state;ExpectedValue", - "WindowsFirewallPublicBehaviorForOutboundConnections": "Windows Firewall: Public: Outbound connections;ExpectedValue", - "WindowsFirewallPublicApplyLocalConnectionSecurityRules": "Windows Firewall: Public: Settings: Apply local connection security rules;ExpectedValue", - "WindowsFirewallPublicApplyLocalFirewallRules": "Windows Firewall: Public: Settings: Apply local firewall rules;ExpectedValue", - "WindowsFirewallPublicDisplayNotifications": "Windows Firewall: Public: Settings: Display a notification;ExpectedValue", - "WindowsFirewallDomainAllowUnicastResponse": "Windows Firewall: Domain: Allow unicast response;ExpectedValue", - "WindowsFirewallPrivateAllowUnicastResponse": "Windows Firewall: Private: Allow unicast response;ExpectedValue", - "WindowsFirewallPublicAllowUnicastResponse": "Windows Firewall: Public: Allow unicast response;ExpectedValue" - } - } - }, - "parameters": { - "IncludeArcMachines": { - "type": "String", - "metadata": { - "displayName": "Include Arc connected servers", - "description": "By selecting this option, you agree to be charged monthly per Arc connected machine.", - "portalReview": "true" - }, - "allowedValues": [ - "true", - "false" - ], - "defaultValue": "false" - }, - "WindowsFirewallDomainUseProfileSettings": { - "type": "String", - "metadata": { - "displayName": "Windows Firewall (Domain): Use profile settings", - "description": "Specifies whether Windows Firewall with Advanced Security uses the settings for the Domain profile to filter network traffic. If you select Off, Windows Firewall with Advanced Security will not use any of the firewall rules or connection security rules for this profile." - }, - "defaultValue": "1" - }, - "WindowsFirewallDomainBehaviorForOutboundConnections": { - "type": "String", - "metadata": { - "displayName": "Windows Firewall (Domain): Behavior for outbound connections", - "description": "Specifies the behavior for outbound connections for the Domain profile that do not match an outbound firewall rule. The default value of 0 means to allow connections, and a value of 1 means to block connections." - }, - "defaultValue": "0" - }, - "WindowsFirewallDomainApplyLocalConnectionSecurityRules": { - "type": "String", - "metadata": { - "displayName": "Windows Firewall (Domain): Apply local connection security rules", - "description": "Specifies whether local administrators are allowed to create connection security rules that apply together with connection security rules configured by Group Policy for the Domain profile." - }, - "defaultValue": "1" - }, - "WindowsFirewallDomainApplyLocalFirewallRules": { - "type": "String", - "metadata": { - "displayName": "Windows Firewall (Domain): Apply local firewall rules", - "description": "Specifies whether local administrators are allowed to create local firewall rules that apply together with firewall rules configured by Group Policy for the Domain profile." - }, - "defaultValue": "1" - }, - "WindowsFirewallDomainDisplayNotifications": { - "type": "String", - "metadata": { - "displayName": "Windows Firewall (Domain): Display notifications", - "description": "Specifies whether Windows Firewall with Advanced Security displays notifications to the user when a program is blocked from receiving inbound connections, for the Domain profile." - }, - "defaultValue": "1" - }, - "WindowsFirewallPrivateUseProfileSettings": { - "type": "String", - "metadata": { - "displayName": "Windows Firewall (Private): Use profile settings", - "description": "Specifies whether Windows Firewall with Advanced Security uses the settings for the Private profile to filter network traffic. If you select Off, Windows Firewall with Advanced Security will not use any of the firewall rules or connection security rules for this profile." - }, - "defaultValue": "1" - }, - "WindowsFirewallPrivateBehaviorForOutboundConnections": { - "type": "String", - "metadata": { - "displayName": "Windows Firewall (Private): Behavior for outbound connections", - "description": "Specifies the behavior for outbound connections for the Private profile that do not match an outbound firewall rule. The default value of 0 means to allow connections, and a value of 1 means to block connections." - }, - "defaultValue": "0" - }, - "WindowsFirewallPrivateApplyLocalConnectionSecurityRules": { - "type": "String", - "metadata": { - "displayName": "Windows Firewall (Private): Apply local connection security rules", - "description": "Specifies whether local administrators are allowed to create connection security rules that apply together with connection security rules configured by Group Policy for the Private profile." - }, - "defaultValue": "1" - }, - "WindowsFirewallPrivateApplyLocalFirewallRules": { - "type": "String", - "metadata": { - "displayName": "Windows Firewall (Private): Apply local firewall rules", - "description": "Specifies whether local administrators are allowed to create local firewall rules that apply together with firewall rules configured by Group Policy for the Private profile." - }, - "defaultValue": "1" - }, - "WindowsFirewallPrivateDisplayNotifications": { - "type": "String", - "metadata": { - "displayName": "Windows Firewall (Private): Display notifications", - "description": "Specifies whether Windows Firewall with Advanced Security displays notifications to the user when a program is blocked from receiving inbound connections, for the Private profile." - }, - "defaultValue": "1" - }, - "WindowsFirewallPublicUseProfileSettings": { - "type": "String", - "metadata": { - "displayName": "Windows Firewall (Public): Use profile settings", - "description": "Specifies whether Windows Firewall with Advanced Security uses the settings for the Public profile to filter network traffic. If you select Off, Windows Firewall with Advanced Security will not use any of the firewall rules or connection security rules for this profile." - }, - "defaultValue": "1" - }, - "WindowsFirewallPublicBehaviorForOutboundConnections": { - "type": "String", - "metadata": { - "displayName": "Windows Firewall (Public): Behavior for outbound connections", - "description": "Specifies the behavior for outbound connections for the Public profile that do not match an outbound firewall rule. The default value of 0 means to allow connections, and a value of 1 means to block connections." - }, - "defaultValue": "0" - }, - "WindowsFirewallPublicApplyLocalConnectionSecurityRules": { - "type": "String", - "metadata": { - "displayName": "Windows Firewall (Public): Apply local connection security rules", - "description": "Specifies whether local administrators are allowed to create connection security rules that apply together with connection security rules configured by Group Policy for the Public profile." - }, - "defaultValue": "1" - }, - "WindowsFirewallPublicApplyLocalFirewallRules": { - "type": "String", - "metadata": { - "displayName": "Windows Firewall (Public): Apply local firewall rules", - "description": "Specifies whether local administrators are allowed to create local firewall rules that apply together with firewall rules configured by Group Policy for the Public profile." - }, - "defaultValue": "1" - }, - "WindowsFirewallPublicDisplayNotifications": { - "type": "String", - "metadata": { - "displayName": "Windows Firewall (Public): Display notifications", - "description": "Specifies whether Windows Firewall with Advanced Security displays notifications to the user when a program is blocked from receiving inbound connections, for the Public profile." - }, - "defaultValue": "1" - }, - "WindowsFirewallDomainAllowUnicastResponse": { - "type": "String", - "metadata": { - "displayName": "Windows Firewall: Domain: Allow unicast response", - "description": "Specifies whether Windows Firewall with Advanced Security permits the local computer to receive unicast responses to its outgoing multicast or broadcast messages; for the Domain profile." - }, - "defaultValue": "0" - }, - "WindowsFirewallPrivateAllowUnicastResponse": { - "type": "String", - "metadata": { - "displayName": "Windows Firewall: Private: Allow unicast response", - "description": "Specifies whether Windows Firewall with Advanced Security permits the local computer to receive unicast responses to its outgoing multicast or broadcast messages; for the Private profile." - }, - "defaultValue": "0" - }, - "WindowsFirewallPublicAllowUnicastResponse": { - "type": "String", - "metadata": { - "displayName": "Windows Firewall: Public: Allow unicast response", - "description": "Specifies whether Windows Firewall with Advanced Security permits the local computer to receive unicast responses to its outgoing multicast or broadcast messages; for the Public profile." - }, - "defaultValue": "1" - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of this policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "dsvm-win*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "value": "[parameters(\u0027IncludeArcMachines\u0027)]", - "equals": "true" - }, - { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.ConnectedVMwarevSphere/virtualMachines" - }, - { - "field": "Microsoft.ConnectedVMwarevSphere/virtualMachines/osProfile.osType", - "like": "windows*" - } - ] - } - ] - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "AzureBaseline_WindowsFirewallProperties", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus", - "equals": "Compliant" - }, - { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash", - "equals": "[base64(concat(\u0027Windows Firewall: Domain: Firewall state;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027WindowsFirewallDomainUseProfileSettings\u0027), \u0027,\u0027, \u0027Windows Firewall: Domain: Outbound connections;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027WindowsFirewallDomainBehaviorForOutboundConnections\u0027), \u0027,\u0027, \u0027Windows Firewall: Domain: Settings: Apply local connection security rules;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027WindowsFirewallDomainApplyLocalConnectionSecurityRules\u0027), \u0027,\u0027, \u0027Windows Firewall: Domain: Settings: Apply local firewall rules;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027WindowsFirewallDomainApplyLocalFirewallRules\u0027), \u0027,\u0027, \u0027Windows Firewall: Domain: Settings: Display a notification;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027WindowsFirewallDomainDisplayNotifications\u0027), \u0027,\u0027, \u0027Windows Firewall: Private: Firewall state;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027WindowsFirewallPrivateUseProfileSettings\u0027), \u0027,\u0027, \u0027Windows Firewall: Private: Outbound connections;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027WindowsFirewallPrivateBehaviorForOutboundConnections\u0027), \u0027,\u0027, \u0027Windows Firewall: Private: Settings: Apply local connection security rules;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027WindowsFirewallPrivateApplyLocalConnectionSecurityRules\u0027), \u0027,\u0027, \u0027Windows Firewall: Private: Settings: Apply local firewall rules;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027WindowsFirewallPrivateApplyLocalFirewallRules\u0027), \u0027,\u0027, \u0027Windows Firewall: Private: Settings: Display a notification;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027WindowsFirewallPrivateDisplayNotifications\u0027), \u0027,\u0027, \u0027Windows Firewall: Public: Firewall state;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027WindowsFirewallPublicUseProfileSettings\u0027), \u0027,\u0027, \u0027Windows Firewall: Public: Outbound connections;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027WindowsFirewallPublicBehaviorForOutboundConnections\u0027), \u0027,\u0027, \u0027Windows Firewall: Public: Settings: Apply local connection security rules;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027WindowsFirewallPublicApplyLocalConnectionSecurityRules\u0027), \u0027,\u0027, \u0027Windows Firewall: Public: Settings: Apply local firewall rules;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027WindowsFirewallPublicApplyLocalFirewallRules\u0027), \u0027,\u0027, \u0027Windows Firewall: Public: Settings: Display a notification;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027WindowsFirewallPublicDisplayNotifications\u0027), \u0027,\u0027, \u0027Windows Firewall: Domain: Allow unicast response;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027WindowsFirewallDomainAllowUnicastResponse\u0027), \u0027,\u0027, \u0027Windows Firewall: Private: Allow unicast response;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027WindowsFirewallPrivateAllowUnicastResponse\u0027), \u0027,\u0027, \u0027Windows Firewall: Public: Allow unicast response;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027WindowsFirewallPublicAllowUnicastResponse\u0027)))]" - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Gateway subnets should not be configured with a network security group", - "policyType": "BuiltIn", - "mode": "All", - "description": "This policy denies if a gateway subnet is configured with a network security group. Assigning a network security group to a gateway subnet will cause the gateway to stop functioning.", - "metadata": { - "version": "1.0.0", - "category": "Network" - }, - "parameters": {}, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Network/virtualNetworks/subnets" - }, - { - "field": "name", - "equals": "GatewaySubnet" - }, - { - "field": "Microsoft.Network/virtualNetworks/subnets/networkSecurityGroup.id", - "exists": "true" - } - ] - }, - "then": { - "effect": "deny" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1043 - Least Privilege | Prohibit Non-Privileged Users From Executing Privileged Functions", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Access Control control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1043" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Deploy Advanced Threat Protection on storage accounts", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "This policy enables Advanced Threat Protection on storage accounts.", - "metadata": { - "version": "1.0.0", - "category": "Storage" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Storage/storageAccounts" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Security/advancedThreatProtectionSettings", - "name": "current", - "existenceCondition": { - "field": "Microsoft.Security/advancedThreatProtectionSettings/isEnabled", - "equals": "true" - }, - "roleDefinitionIds": [ - "/providers/Microsoft.Authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "deployment": { - "properties": { - "mode": "incremental", - "template": { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "storageAccountName": { - "type": "string" - } - }, - "resources": [ - { - "apiVersion": "2019-01-01", - "type": "Microsoft.Storage/storageAccounts/providers/advancedThreatProtectionSettings", - "name": "[concat(parameters(\u0027storageAccountName\u0027), \u0027/Microsoft.Security/current\u0027)]", - "properties": { - "isEnabled": true - } - } - ] - }, - "parameters": { - "storageAccountName": { - "value": "[field(\u0027name\u0027)]" - } - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1313 - Identifier Management", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Identification and Authentication control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1313" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1630 - Boundary Protection | External Telecommunications Services", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Communications Protection control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1630" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Automation account variables should be encrypted", - "policyType": "BuiltIn", - "mode": "All", - "description": "It is important to enable encryption of Automation account variable assets when storing sensitive data", - "metadata": { - "version": "1.1.0", - "category": "Automation" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "The effect determines what happens when the policy rule is evaluated to match" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Automation/automationAccounts/variables" - }, - { - "field": "Microsoft.Automation/automationAccounts/variables/isEncrypted", - "notEquals": "true" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Windows virtual machine scale sets should have Azure Monitor Agent installed", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Windows virtual machine scale sets should be monitored and secured through the deployed Azure Monitor Agent. The Azure Monitor Agent collects telemetry data from the guest OS. Virtual machine scale sets with supported OS and in supported regions are monitored for Azure Monitor Agent deployment. Learn more: https://aka.ms/AMAOverview.", - "metadata": { - "version": "2.0.0", - "category": "Monitoring" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy." - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - }, - "listOfWindowsImageIdToInclude": { - "type": "Array", - "metadata": { - "displayName": "Additional Virtual Machine Images", - "description": "List of virtual machine images that have supported Windows OS to add to scope. Example values: \u0027/subscriptions/\u003CsubscriptionId\u003E/resourceGroups/YourResourceGroup/providers/Microsoft.Compute/images/ContosoStdImage\u0027" - }, - "defaultValue": [] - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachineScaleSets" - }, - { - "field": "location", - "in": [ - "australiacentral", - "australiaeast", - "australiasoutheast", - "brazilsouth", - "canadacentral", - "canadaeast", - "centralindia", - "centralus", - "eastasia", - "eastus2euap", - "eastus", - "eastus2", - "francecentral", - "germanywestcentral", - "japaneast", - "japanwest", - "jioindiawest", - "koreacentral", - "koreasouth", - "northcentralus", - "northeurope", - "norwayeast", - "southafricanorth", - "southcentralus", - "southeastasia", - "southindia", - "switzerlandnorth", - "uaenorth", - "uksouth", - "ukwest", - "westcentralus", - "westeurope", - "westindia", - "westus", - "westus2" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageId", - "in": "[parameters(\u0027listOfWindowsImageIdToInclude\u0027)]" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "in": [ - "2008-R2-SP1", - "2008-R2-SP1-smalldisk", - "2012-Datacenter", - "2012-Datacenter-smalldisk", - "2012-R2-Datacenter", - "2012-R2-Datacenter-smalldisk", - "2016-Datacenter", - "2016-Datacenter-Server-Core", - "2016-Datacenter-Server-Core-smalldisk", - "2016-Datacenter-smalldisk", - "2016-Datacenter-with-Containers", - "2016-Datacenter-with-RDSH", - "2019-Datacenter", - "2019-Datacenter-Core", - "2019-Datacenter-Core-smalldisk", - "2019-Datacenter-Core-with-Containers", - "2019-Datacenter-Core-with-Containers-smalldisk", - "2019-Datacenter-smalldisk", - "2019-Datacenter-with-Containers", - "2019-Datacenter-with-Containers-smalldisk", - "2019-Datacenter-zhcn", - "2022-datacenter", - "2022-datacenter-azure-edition", - "2022-datacenter-azure-edition-core", - "2022-datacenter-azure-edition-core-smalldisk", - "2022-datacenter-azure-edition-smalldisk", - "2022-datacenter-core", - "2022-datacenter-core-g2", - "2022-datacenter-core-smalldisk", - "2022-datacenter-core-smalldisk-g2", - "2022-datacenter-g2", - "2022-datacenter-smalldisk", - "2022-datacenter-smalldisk-g2" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServerSemiAnnual" - }, - { - "field": "Microsoft.Compute/imageSKU", - "in": [ - "Datacenter-Core-1709-smalldisk", - "Datacenter-Core-1709-with-Containers-smalldisk", - "Datacenter-Core-1803-with-Containers-smalldisk" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServerHPCPack" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServerHPCPack" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2019" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2019-BYOL" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2016" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2016-BYOL" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2012R2" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2012R2-BYOL" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftRServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "MLServer-WS2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftVisualStudio" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "VisualStudio", - "Windows" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftDynamicsAX" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Dynamics" - }, - { - "field": "Microsoft.Compute/imageSKU", - "equals": "Pre-Req-AX7-Onebox-U8" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "windows-data-science-vm" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsDesktop" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Windows-10" - } - ] - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Compute/virtualMachineScaleSets/extensions", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.Compute/virtualMachineScaleSets/extensions/type", - "equals": "AzureMonitorWindowsAgent" - }, - { - "field": "Microsoft.Compute/virtualMachineScaleSets/extensions/publisher", - "equals": "Microsoft.Azure.Monitor" - }, - { - "field": "Microsoft.Compute/virtualMachineScaleSets/extensions/provisioningState", - "equals": "Succeeded" - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1339 - Authenticator Management | Protection Of Authenticators", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Identification and Authentication control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1339" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Configure AAD integrated Azure Kubernetes Service Clusters with required Admin Group Access", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Ensure to improve cluster security by centrally govern Administrator access to Azure Active Directory integrated AKS clusters.", - "metadata": { - "version": "1.0.0", - "category": "Kubernetes" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - }, - "adminGroupObjectIDs": { - "type": "Array", - "metadata": { - "displayName": "AKS Administrator Group Object IDs", - "description": "Array of the existing AKS Administrator Group Object ID to ensure administration access to the cluster. Empty array will remove all admin access." - } - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.ContainerService/managedClusters" - }, - { - "field": "Microsoft.ContainerService/managedClusters/aadProfile", - "exists": true - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.ContainerService/managedClusters", - "name": "[field(\u0027name\u0027)]", - "roleDefinitionIds": [ - "/providers/Microsoft.Authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "existenceCondition": { - "allOf": [ - { - "count": { - "field": "Microsoft.ContainerService/managedClusters/aadProfile.adminGroupObjectIDs[*]", - "where": { - "field": "Microsoft.ContainerService/managedClusters/aadProfile.adminGroupObjectIDs[*]", - "in": "[parameters(\u0027adminGroupObjectIDs\u0027)]" - } - }, - "equals": "[length(parameters(\u0027adminGroupObjectIDs\u0027))]" - }, - { - "count": { - "field": "Microsoft.ContainerService/managedClusters/aadProfile.adminGroupObjectIDs[*]" - }, - "equals": "[length(parameters(\u0027adminGroupObjectIDs\u0027))]" - } - ] - }, - "deployment": { - "properties": { - "mode": "incremental", - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "clusterName": { - "type": "string" - }, - "clusterResourceGroupName": { - "type": "string" - }, - "adminGroupObjectIDs": { - "type": "array" - } - }, - "variables": { - "clusterGetDeploymentName": "[concat(\u0027PolicyDeployment-Get-\u0027, parameters(\u0027clusterName\u0027))]", - "clusterUpdateDeploymentName": "[concat(\u0027PolicyDeployment-Update-\u0027, parameters(\u0027clusterName\u0027))]" - }, - "resources": [ - { - "apiVersion": "2020-06-01", - "type": "Microsoft.Resources/deployments", - "name": "[variables(\u0027clusterGetDeploymentName\u0027)]", - "properties": { - "mode": "Incremental", - "template": { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "resources": [], - "outputs": { - "aksCluster": { - "type": "object", - "value": "[reference(resourceId(parameters(\u0027clusterResourceGroupName\u0027), \u0027Microsoft.ContainerService/managedClusters\u0027, parameters(\u0027clusterName\u0027)), \u00272021-07-01\u0027, \u0027Full\u0027)]" - } - } - } - } - }, - { - "apiVersion": "2020-06-01", - "type": "Microsoft.Resources/deployments", - "name": "[variables(\u0027clusterUpdateDeploymentName\u0027)]", - "properties": { - "mode": "Incremental", - "expressionEvaluationOptions": { - "scope": "inner" - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "aksClusterName": { - "type": "string" - }, - "aksClusterContent": { - "type": "object" - }, - "adminGroupObjectIDs": { - "type": "array" - } - }, - "resources": [ - { - "apiVersion": "2021-07-01", - "type": "Microsoft.ContainerService/managedClusters", - "name": "[parameters(\u0027aksClusterName\u0027)]", - "location": "[parameters(\u0027aksClusterContent\u0027).location]", - "sku": "[parameters(\u0027aksClusterContent\u0027).sku]", - "tags": "[if(contains(parameters(\u0027aksClusterContent\u0027), \u0027tags\u0027), parameters(\u0027aksClusterContent\u0027).tags, json(\u0027null\u0027))]", - "properties": { - "kubernetesVersion": "[parameters(\u0027aksClusterContent\u0027).properties.kubernetesVersion]", - "dnsPrefix": "[parameters(\u0027aksClusterContent\u0027).properties.dnsPrefix]", - "agentPoolProfiles": "[if(contains(parameters(\u0027aksClusterContent\u0027).properties, \u0027agentPoolProfiles\u0027), parameters(\u0027aksClusterContent\u0027).properties.agentPoolProfiles, json(\u0027null\u0027))]", - "linuxProfile": "[if(contains(parameters(\u0027aksClusterContent\u0027).properties, \u0027linuxProfile\u0027), parameters(\u0027aksClusterContent\u0027).properties.linuxProfile, json(\u0027null\u0027))]", - "windowsProfile": "[if(contains(parameters(\u0027aksClusterContent\u0027).properties, \u0027windowsProfile\u0027), parameters(\u0027aksClusterContent\u0027).properties.windowsProfile, json(\u0027null\u0027))]", - "servicePrincipalProfile": "[if(contains(parameters(\u0027aksClusterContent\u0027).properties, \u0027servicePrincipalProfile\u0027), parameters(\u0027aksClusterContent\u0027).properties.servicePrincipalProfile, json(\u0027null\u0027))]", - "addonProfiles": "[if(contains(parameters(\u0027aksClusterContent\u0027).properties, \u0027addonProfiles\u0027), parameters(\u0027aksClusterContent\u0027).properties.addonProfiles, json(\u0027null\u0027))]", - "nodeResourceGroup": "[parameters(\u0027aksClusterContent\u0027).properties.nodeResourceGroup]", - "enableRBAC": "[if(contains(parameters(\u0027aksClusterContent\u0027).properties, \u0027enableRBAC\u0027), parameters(\u0027aksClusterContent\u0027).properties.enableRBAC, json(\u0027null\u0027))]", - "enablePodSecurityPolicy": "[if(contains(parameters(\u0027aksClusterContent\u0027).properties, \u0027enablePodSecurityPolicy\u0027), parameters(\u0027aksClusterContent\u0027).properties.enablePodSecurityPolicy, json(\u0027null\u0027))]", - "networkProfile": "[if(contains(parameters(\u0027aksClusterContent\u0027).properties, \u0027networkProfile\u0027), parameters(\u0027aksClusterContent\u0027).properties.networkProfile, json(\u0027null\u0027))]", - "aadProfile": { - "adminGroupObjectIds": "[parameters(\u0027adminGroupObjectIDs\u0027)]", - "managed": "[if(contains(parameters(\u0027aksClusterContent\u0027).properties.aadProfile, \u0027managed\u0027), parameters(\u0027aksClusterContent\u0027).properties.aadProfile.managed, json(\u0027null\u0027))]", - "enableAzureRBAC": "[if(contains(parameters(\u0027aksClusterContent\u0027).properties.aadProfile, \u0027enableAzureRBAC\u0027), parameters(\u0027aksClusterContent\u0027).properties.aadProfile.enableAzureRBAC, json(\u0027null\u0027))]", - "tenantID": "[if(contains(parameters(\u0027aksClusterContent\u0027).properties.aadProfile, \u0027tenantID\u0027), parameters(\u0027aksClusterContent\u0027).properties.aadProfile.tenantID, json(\u0027null\u0027))]", - "clientAppID": "[if(contains(parameters(\u0027aksClusterContent\u0027).properties.aadProfile, \u0027clientAppID\u0027), parameters(\u0027aksClusterContent\u0027).properties.aadProfile.clientAppID, json(\u0027null\u0027))]", - "serverAppID": "[if(contains(parameters(\u0027aksClusterContent\u0027).properties.aadProfile, \u0027serverAppID\u0027), parameters(\u0027aksClusterContent\u0027).properties.aadProfile.serverAppID, json(\u0027null\u0027))]", - "serverAppSecret": "[if(contains(parameters(\u0027aksClusterContent\u0027).properties.aadProfile, \u0027serverAppSecret\u0027), parameters(\u0027aksClusterContent\u0027).properties.aadProfile.serverAppSecret, json(\u0027null\u0027))]" - }, - "autoScalerProfile": "[if(contains(parameters(\u0027aksClusterContent\u0027).properties, \u0027autoScalerProfile\u0027), parameters(\u0027aksClusterContent\u0027).properties.autoScalerProfile, json(\u0027null\u0027))]", - "autoUpgradeProfile": "[if(contains(parameters(\u0027aksClusterContent\u0027).properties, \u0027autoUpgradeProfile\u0027), parameters(\u0027aksClusterContent\u0027).properties.autoUpgradeProfile, json(\u0027null\u0027))]", - "apiServerAccessProfile": "[if(contains(parameters(\u0027aksClusterContent\u0027).properties, \u0027apiServerAccessProfile\u0027), parameters(\u0027aksClusterContent\u0027).properties.apiServerAccessProfile, json(\u0027null\u0027))]", - "diskEncryptionSetID": "[if(contains(parameters(\u0027aksClusterContent\u0027).properties, \u0027diskEncryptionSetID\u0027), parameters(\u0027aksClusterContent\u0027).properties.diskEncryptionSetID, json(\u0027null\u0027))]", - "disableLocalAccounts": "[if(contains(parameters(\u0027aksClusterContent\u0027).properties, \u0027disableLocalAccounts\u0027), parameters(\u0027aksClusterContent\u0027).properties.disableLocalAccounts, json(\u0027null\u0027))]", - "fqdnSubdomain": "[if(contains(parameters(\u0027aksClusterContent\u0027).properties, \u0027fqdnSubdomain\u0027), parameters(\u0027aksClusterContent\u0027).properties.fqdnSubdomain, json(\u0027null\u0027))]", - "httpProxyConfig": "[if(contains(parameters(\u0027aksClusterContent\u0027).properties, \u0027httpProxyConfig\u0027), parameters(\u0027aksClusterContent\u0027).properties.httpProxyConfig, json(\u0027null\u0027))]", - "podIdentityProfile": "[if(contains(parameters(\u0027aksClusterContent\u0027).properties, \u0027podIdentityProfile\u0027), parameters(\u0027aksClusterContent\u0027).properties.podIdentityProfile, json(\u0027null\u0027))]", - "privateLinkResources": "[if(contains(parameters(\u0027aksClusterContent\u0027).properties, \u0027privateLinkResources\u0027), parameters(\u0027aksClusterContent\u0027).properties.privateLinkResources, json(\u0027null\u0027))]", - "securityProfile": "[if(contains(parameters(\u0027aksClusterContent\u0027).properties, \u0027securityProfile\u0027), parameters(\u0027aksClusterContent\u0027).properties.securityProfile, json(\u0027null\u0027))]", - "identityProfile": "[if(contains(parameters(\u0027aksClusterContent\u0027).properties, \u0027identityProfile\u0027), parameters(\u0027aksClusterContent\u0027).properties.identityProfile, json(\u0027null\u0027))]" - } - } - ], - "outputs": {} - }, - "parameters": { - "aksClusterName": { - "value": "[parameters(\u0027clusterName\u0027)]" - }, - "aksClusterContent": { - "value": "[reference(variables(\u0027clusterGetDeploymentName\u0027)).outputs.aksCluster.value]" - }, - "adminGroupObjectIDs": { - "value": "[parameters(\u0027adminGroupObjectIDs\u0027)]" - } - } - } - } - ] - }, - "parameters": { - "clusterName": { - "value": "[field(\u0027name\u0027)]" - }, - "clusterResourceGroupName": { - "value": "[resourceGroup().name]" - }, - "adminGroupObjectIDs": { - "value": "[parameters(\u0027adminGroupObjectIDs\u0027)]" - } - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1685 - Information System Monitoring", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Information Integrity control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1685" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Configure Azure Defender to be enabled on SQL servers", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Enable Azure Defender on your Azure SQL Servers to detect anomalous activities indicating unusual and potentially harmful attempts to access or exploit databases.", - "metadata": { - "version": "2.1.0", - "category": "SQL" - }, - "parameters": {}, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Sql/servers" - }, - { - "field": "kind", - "notContains": "analytics" - } - ] - }, - "then": { - "effect": "DeployIfNotExists", - "details": { - "type": "Microsoft.Sql/servers/securityAlertPolicies", - "name": "Default", - "existenceCondition": { - "field": "Microsoft.Sql/securityAlertPolicies.state", - "equals": "Enabled" - }, - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "deployment": { - "properties": { - "mode": "incremental", - "template": { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "serverName": { - "type": "string" - } - }, - "variables": {}, - "resources": [ - { - "name": "[concat(parameters(\u0027serverName\u0027), \u0027/Default\u0027)]", - "type": "Microsoft.Sql/servers/securityAlertPolicies", - "apiVersion": "2020-11-01-preview", - "properties": { - "state": "Enabled" - } - } - ] - }, - "parameters": { - "serverName": { - "value": "[field(\u0027name\u0027)]" - } - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Deploy prerequisites to audit Windows VMs configurations in \u0027Security Options - Network Security\u0027", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: \u0027Security Options - Network Security\u0027. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol", - "metadata": { - "version": "1.2.0-deprecated", - "category": "Guest Configuration", - "requiredProviders": [ - "Microsoft.GuestConfiguration" - ], - "deprecated": true - }, - "parameters": { - "NetworkSecurityConfigureEncryptionTypesAllowedForKerberos": { - "type": "String", - "metadata": { - "displayName": "Network Security: Configure encryption types allowed for Kerberos", - "description": "Specifies the encryption types that Kerberos is allowed to use." - }, - "defaultValue": "2147483644" - }, - "NetworkSecurityLANManagerAuthenticationLevel": { - "type": "String", - "metadata": { - "displayName": "Network security: LAN Manager authentication level", - "description": "Specify which challenge-response authentication protocol is used for network logons. This choice affects the level of authentication protocol used by clients, the level of session security negotiated, and the level of authentication accepted by servers." - }, - "defaultValue": "5" - }, - "NetworkSecurityLDAPClientSigningRequirements": { - "type": "String", - "metadata": { - "displayName": "Network security: LDAP client signing requirements", - "description": "Specify the level of data signing that is requested on behalf of clients that issue LDAP BIND requests." - }, - "defaultValue": "1" - }, - "NetworkSecurityMinimumSessionSecurityForNTLMSSPBasedIncludingSecureRPCClients": { - "type": "String", - "metadata": { - "displayName": "Network security: Minimum session security for NTLM SSP based (including secure RPC) clients", - "description": "Specifies which behaviors are allowed by clients for applications using the NTLM Security Support Provider (SSP). The SSP Interface (SSPI) is used by applications that need authentication services. See https://docs.microsoft.com/en-us/windows/security/threat-protection/security-policy-settings/network-security-minimum-session-security-for-ntlm-ssp-based-including-secure-rpc-servers for more information." - }, - "defaultValue": "537395200" - }, - "NetworkSecurityMinimumSessionSecurityForNTLMSSPBasedIncludingSecureRPCServers": { - "type": "String", - "metadata": { - "displayName": "Network security: Minimum session security for NTLM SSP based (including secure RPC) servers", - "description": "Specifies which behaviors are allowed by servers for applications using the NTLM Security Support Provider (SSP). The SSP Interface (SSPI) is used by applications that need authentication services." - }, - "defaultValue": "537395200" - } - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "dsvm-windows" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - } - ] - }, - "then": { - "effect": "deployIfNotExists", - "details": { - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "AzureBaseline_SecurityOptionsNetworkSecurity", - "existenceCondition": { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash", - "equals": "[base64(concat(\u0027Network Security: Configure encryption types allowed for Kerberos;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027NetworkSecurityConfigureEncryptionTypesAllowedForKerberos\u0027), \u0027,\u0027, \u0027Network security: LAN Manager authentication level;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027NetworkSecurityLANManagerAuthenticationLevel\u0027), \u0027,\u0027, \u0027Network security: LDAP client signing requirements;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027NetworkSecurityLDAPClientSigningRequirements\u0027), \u0027,\u0027, \u0027Network security: Minimum session security for NTLM SSP based (including secure RPC) clients;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027NetworkSecurityMinimumSessionSecurityForNTLMSSPBasedIncludingSecureRPCClients\u0027), \u0027,\u0027, \u0027Network security: Minimum session security for NTLM SSP based (including secure RPC) servers;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027NetworkSecurityMinimumSessionSecurityForNTLMSSPBasedIncludingSecureRPCServers\u0027)))]" - }, - "deployment": { - "properties": { - "mode": "incremental", - "parameters": { - "vmName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "type": { - "value": "[field(\u0027type\u0027)]" - }, - "configurationName": { - "value": "AzureBaseline_SecurityOptionsNetworkSecurity" - }, - "NetworkSecurityConfigureEncryptionTypesAllowedForKerberos": { - "value": "[parameters(\u0027NetworkSecurityConfigureEncryptionTypesAllowedForKerberos\u0027)]" - }, - "NetworkSecurityLANManagerAuthenticationLevel": { - "value": "[parameters(\u0027NetworkSecurityLANManagerAuthenticationLevel\u0027)]" - }, - "NetworkSecurityLDAPClientSigningRequirements": { - "value": "[parameters(\u0027NetworkSecurityLDAPClientSigningRequirements\u0027)]" - }, - "NetworkSecurityMinimumSessionSecurityForNTLMSSPBasedIncludingSecureRPCClients": { - "value": "[parameters(\u0027NetworkSecurityMinimumSessionSecurityForNTLMSSPBasedIncludingSecureRPCClients\u0027)]" - }, - "NetworkSecurityMinimumSessionSecurityForNTLMSSPBasedIncludingSecureRPCServers": { - "value": "[parameters(\u0027NetworkSecurityMinimumSessionSecurityForNTLMSSPBasedIncludingSecureRPCServers\u0027)]" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "vmName": { - "type": "string" - }, - "location": { - "type": "string" - }, - "type": { - "type": "string" - }, - "configurationName": { - "type": "string" - }, - "NetworkSecurityConfigureEncryptionTypesAllowedForKerberos": { - "type": "string" - }, - "NetworkSecurityLANManagerAuthenticationLevel": { - "type": "string" - }, - "NetworkSecurityLDAPClientSigningRequirements": { - "type": "string" - }, - "NetworkSecurityMinimumSessionSecurityForNTLMSSPBasedIncludingSecureRPCClients": { - "type": "string" - }, - "NetworkSecurityMinimumSessionSecurityForNTLMSSPBasedIncludingSecureRPCServers": { - "type": "string" - } - }, - "resources": [ - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027microsoft.hybridcompute/machines\u0027))]", - "apiVersion": "2018-11-20", - "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/Microsoft.GuestConfiguration/\u0027, parameters(\u0027configurationName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "guestConfiguration": { - "name": "[parameters(\u0027configurationName\u0027)]", - "version": "1.*", - "configurationParameter": [ - { - "name": "Network Security: Configure encryption types allowed for Kerberos;ExpectedValue", - "value": "[parameters(\u0027NetworkSecurityConfigureEncryptionTypesAllowedForKerberos\u0027)]" - }, - { - "name": "Network security: LAN Manager authentication level;ExpectedValue", - "value": "[parameters(\u0027NetworkSecurityLANManagerAuthenticationLevel\u0027)]" - }, - { - "name": "Network security: LDAP client signing requirements;ExpectedValue", - "value": "[parameters(\u0027NetworkSecurityLDAPClientSigningRequirements\u0027)]" - }, - { - "name": "Network security: Minimum session security for NTLM SSP based (including secure RPC) clients;ExpectedValue", - "value": "[parameters(\u0027NetworkSecurityMinimumSessionSecurityForNTLMSSPBasedIncludingSecureRPCClients\u0027)]" - }, - { - "name": "Network security: Minimum session security for NTLM SSP based (including secure RPC) servers;ExpectedValue", - "value": "[parameters(\u0027NetworkSecurityMinimumSessionSecurityForNTLMSSPBasedIncludingSecureRPCServers\u0027)]" - } - ] - } - } - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2018-11-20", - "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/Microsoft.GuestConfiguration/\u0027, parameters(\u0027configurationName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "guestConfiguration": { - "name": "[parameters(\u0027configurationName\u0027)]", - "version": "1.*", - "configurationParameter": [ - { - "name": "Network Security: Configure encryption types allowed for Kerberos;ExpectedValue", - "value": "[parameters(\u0027NetworkSecurityConfigureEncryptionTypesAllowedForKerberos\u0027)]" - }, - { - "name": "Network security: LAN Manager authentication level;ExpectedValue", - "value": "[parameters(\u0027NetworkSecurityLANManagerAuthenticationLevel\u0027)]" - }, - { - "name": "Network security: LDAP client signing requirements;ExpectedValue", - "value": "[parameters(\u0027NetworkSecurityLDAPClientSigningRequirements\u0027)]" - }, - { - "name": "Network security: Minimum session security for NTLM SSP based (including secure RPC) clients;ExpectedValue", - "value": "[parameters(\u0027NetworkSecurityMinimumSessionSecurityForNTLMSSPBasedIncludingSecureRPCClients\u0027)]" - }, - { - "name": "Network security: Minimum session security for NTLM SSP based (including secure RPC) servers;ExpectedValue", - "value": "[parameters(\u0027NetworkSecurityMinimumSessionSecurityForNTLMSSPBasedIncludingSecureRPCServers\u0027)]" - } - ] - } - } - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2019-07-01", - "type": "Microsoft.Compute/virtualMachines", - "identity": { - "type": "SystemAssigned" - }, - "name": "[parameters(\u0027vmName\u0027)]", - "location": "[parameters(\u0027location\u0027)]" - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2019-07-01", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/AzurePolicyforWindows\u0027)]", - "type": "Microsoft.Compute/virtualMachines/extensions", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "publisher": "Microsoft.GuestConfiguration", - "type": "ConfigurationforWindows", - "typeHandlerVersion": "1.1", - "autoUpgradeMinorVersion": true, - "settings": {}, - "protectedSettings": {} - }, - "dependsOn": [ - "[concat(\u0027Microsoft.Compute/virtualMachines/\u0027,parameters(\u0027vmName\u0027),\u0027/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/\u0027,parameters(\u0027configurationName\u0027))]" - ] - } - ] - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Modify - Configure Azure Event Grid topics to disable public network access", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Disable public network access for Azure Event Grid resource so that it isn\u0027t accessible over the public internet. This will help protect them against data leakage risks. You can limit exposure of the your resources by creating private endpoints instead. Learn more at: https://aka.ms/privateendpoints.", - "metadata": { - "category": "Event Grid", - "version": "1.0.0" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Modify", - "Disabled" - ], - "defaultValue": "Modify" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.EventGrid/topics" - }, - { - "field": "kind", - "notEquals": "AzureArc" - }, - { - "field": "Microsoft.EventGrid/topics/publicNetworkAccess", - "notEquals": "Disabled" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "conflictEffect": "audit", - "operations": [ - { - "condition": "[greaterOrEquals(requestContext().apiVersion, \u00272020-04-01-preview\u0027)]", - "operation": "addOrReplace", - "field": "Microsoft.EventGrid/topics/publicNetworkAccess", - "value": "Disabled" - } - ] - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Deploy - Configure Azure Event Grid domains with private endpoints", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Private endpoints lets you connect your virtual network to Azure services without a public IP address at the source or destination. By mapping private endpoints to your resources, they\u0027ll be protected against data leakage risks. Learn more at: https://aka.ms/privateendpoints.", - "metadata": { - "version": "1.0.0", - "category": "Event Grid" - }, - "parameters": { - "privateEndpointSubnetId": { - "type": "String", - "metadata": { - "displayName": "Private endpoint subnet id", - "description": "Specifies the subnet to use to configure private endpoint", - "strongType": "Microsoft.Network/virtualNetworks/subnets" - } - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.EventGrid/domains" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.EventGrid/domains/privateEndpointConnections", - "existenceCondition": { - "field": "Microsoft.EventGrid/domains/privateEndpointConnections/privateLinkServiceConnectionState.status", - "equals": "Approved" - }, - "roleDefinitionIds": [ - "/providers/Microsoft.Authorization/roleDefinitions/00000000-0000-0000-0000-000000000000", - "/providers/Microsoft.Authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "deployment": { - "properties": { - "mode": "incremental", - "parameters": { - "name": { - "value": "[field(\u0027name\u0027)]" - }, - "serviceId": { - "value": "[field(\u0027id\u0027)]" - }, - "privateEndpointSubnetId": { - "value": "[parameters(\u0027privateEndpointSubnetId\u0027)]" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "name": { - "type": "string" - }, - "serviceId": { - "type": "string" - }, - "privateEndpointSubnetId": { - "type": "string" - } - }, - "variables": { - "privateEndpointName": "[concat(\u0027pe-\u0027,substring(parameters(\u0027name\u0027),0,min(length(parameters(\u0027name\u0027)),50)),\u0027-\u0027,uniquestring(deployment().name))]" - }, - "resources": [ - { - "type": "Microsoft.Resources/deployments", - "name": "[variables(\u0027privateEndpointName\u0027)]", - "apiVersion": "2020-06-01", - "properties": { - "mode": "Incremental", - "expressionEvaluationOptions": { - "scope": "inner" - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "serviceId": { - "type": "string" - }, - "privateEndpointSubnetId": { - "type": "string" - }, - "subnetLocation": { - "type": "string" - } - }, - "variables": { - "privateEndpointName": "[deployment().name]" - }, - "resources": [ - { - "name": "[variables(\u0027privateEndpointName\u0027)]", - "type": "Microsoft.Network/privateEndpoints", - "apiVersion": "2020-07-01", - "location": "[parameters(\u0027subnetLocation\u0027)]", - "tags": {}, - "properties": { - "subnet": { - "id": "[parameters(\u0027privateEndpointSubnetId\u0027)]" - }, - "privateLinkServiceConnections": [ - { - "name": "[variables(\u0027privateEndpointName\u0027)]", - "properties": { - "privateLinkServiceId": "[parameters(\u0027serviceId\u0027)]", - "groupIds": [ - "domain" - ], - "requestMessage": "autoapprove" - } - } - ], - "manualPrivateLinkServiceConnections": [] - } - } - ] - }, - "parameters": { - "serviceId": { - "value": "[parameters(\u0027serviceId\u0027)]" - }, - "privateEndpointSubnetId": { - "value": "[parameters(\u0027privateEndpointSubnetId\u0027)]" - }, - "subnetLocation": { - "value": "[reference(first(take(split(parameters(\u0027privateEndpointSubnetId\u0027),\u0027/subnets\u0027),1)),\u00272020-07-01\u0027,\u0027Full\u0027).location]" - } - } - } - } - ] - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1557 - Vulnerability Scanning | Review Historic Audit Logs", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Risk Assessment control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1557" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Deploy prerequisites to audit Windows VMs configurations in \u0027Security Options - Interactive Logon\u0027", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: \u0027Security Options - Interactive Logon\u0027. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol", - "metadata": { - "version": "1.2.0-deprecated", - "category": "Guest Configuration", - "requiredProviders": [ - "Microsoft.GuestConfiguration" - ], - "deprecated": true - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "dsvm-windows" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - } - ] - }, - "then": { - "effect": "deployIfNotExists", - "details": { - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "AzureBaseline_SecurityOptionsInteractiveLogon", - "deployment": { - "properties": { - "mode": "incremental", - "parameters": { - "vmName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "type": { - "value": "[field(\u0027type\u0027)]" - }, - "configurationName": { - "value": "AzureBaseline_SecurityOptionsInteractiveLogon" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "vmName": { - "type": "string" - }, - "location": { - "type": "string" - }, - "type": { - "type": "string" - }, - "configurationName": { - "type": "string" - } - }, - "resources": [ - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027microsoft.hybridcompute/machines\u0027))]", - "apiVersion": "2018-11-20", - "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/Microsoft.GuestConfiguration/\u0027, parameters(\u0027configurationName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "guestConfiguration": { - "name": "[parameters(\u0027configurationName\u0027)]", - "version": "1.*" - } - } - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2018-11-20", - "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/Microsoft.GuestConfiguration/\u0027, parameters(\u0027configurationName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "guestConfiguration": { - "name": "[parameters(\u0027configurationName\u0027)]", - "version": "1.*" - } - } - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2019-07-01", - "type": "Microsoft.Compute/virtualMachines", - "identity": { - "type": "SystemAssigned" - }, - "name": "[parameters(\u0027vmName\u0027)]", - "location": "[parameters(\u0027location\u0027)]" - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2019-07-01", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/AzurePolicyforWindows\u0027)]", - "type": "Microsoft.Compute/virtualMachines/extensions", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "publisher": "Microsoft.GuestConfiguration", - "type": "ConfigurationforWindows", - "typeHandlerVersion": "1.1", - "autoUpgradeMinorVersion": true, - "settings": {}, - "protectedSettings": {} - }, - "dependsOn": [ - "[concat(\u0027Microsoft.Compute/virtualMachines/\u0027,parameters(\u0027vmName\u0027),\u0027/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/\u0027,parameters(\u0027configurationName\u0027))]" - ] - } - ] - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Preview]: Deploy Microsoft Defender for Endpoint agent on Windows Azure Arc machines", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Deploys Microsoft Defender for Endpoint on Windows Azure Arc machines.", - "metadata": { - "category": "Security Center", - "version": "1.0.0-preview", - "preview": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/machines/osName", - "like": "windows*" - }, - { - "field": "tags[\u0027MDFCSecurityConnector\u0027]", - "notEquals": "true" - }, - { - "anyOf": [ - { - "field": "Microsoft.HybridCompute/machines/osSku", - "contains": "2012" - }, - { - "field": "Microsoft.HybridCompute/machines/osSku", - "contains": "2016" - }, - { - "field": "Microsoft.HybridCompute/machines/osSku", - "contains": "2019" - }, - { - "field": "Microsoft.HybridCompute/machines/osSku", - "contains": "2022" - }, - { - "field": "Microsoft.HybridCompute/machines/osSku", - "equals": "Windows 10 Enterprise multi-session" - }, - { - "field": "Microsoft.HybridCompute/machines/osSku", - "equals": "Windows 10 Enterprise for Virtual Desktops" - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "type": "Microsoft.HybridCompute/machines/extensions", - "name": "MDE.Windows", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.HybridCompute/machines/extensions/publisher", - "equals": "Microsoft.Azure.AzureDefenderForServers" - }, - { - "field": "Microsoft.HybridCompute/machines/extensions/type", - "equals": "MDE.Windows" - }, - { - "field": "Microsoft.HybridCompute/machines/extensions/provisioningState", - "equals": "Succeeded" - } - ] - }, - "deployment": { - "properties": { - "mode": "incremental", - "parameters": { - "vmName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "azureResourceId": { - "value": "[concat(\u0027/subscriptions/\u0027, subscription().subscriptionId, \u0027/resourceGroups/\u0027, resourceGroup().name, \u0027/providers/Microsoft.HybridCompute/machines/\u0027,field(\u0027name\u0027))]" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "vmName": { - "type": "string" - }, - "location": { - "type": "string" - }, - "azureResourceId": { - "type": "string" - } - }, - "resources": [ - { - "apiVersion": "2019-12-12", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/MDE.Windows\u0027)]", - "type": "Microsoft.HybridCompute/machines/extensions", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "autoUpgradeMinorVersion": true, - "enableAutomaticUpgrade": true, - "publisher": "Microsoft.Azure.AzureDefenderForServers", - "type": "MDE.Windows", - "typeHandlerVersion": "1.0", - "settings": { - "azureResourceId": "[parameters(\u0027azureResourceId\u0027)]", - "vNextEnabled": "true" - }, - "protectedSettings": { - "defenderForEndpointOnboardingScript": "[reference(subscriptionResourceId(\u0027Microsoft.Security/mdeOnboardings\u0027, \u0027Windows\u0027), \u00272021-10-01-preview\u0027, \u0027full\u0027).properties.onboardingPackageWindows]" - } - } - } - ] - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1624 - Boundary Protection", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Communications Protection control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1624" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Storage accounts should be migrated to new Azure Resource Manager resources", - "policyType": "BuiltIn", - "mode": "All", - "description": "Use new Azure Resource Manager for your storage accounts to provide security enhancements such as: stronger access control (RBAC), better auditing, Azure Resource Manager based deployment and governance, access to managed identities, access to key vault for secrets, Azure AD-based authentication and support for tags and resource groups for easier security management", - "metadata": { - "version": "1.0.0", - "category": "Storage" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "The effect determines what happens when the policy rule is evaluated to match" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.ClassicStorage/storageAccounts", - "Microsoft.Storage/StorageAccounts" - ] - }, - { - "value": "[field(\u0027type\u0027)]", - "equals": "Microsoft.ClassicStorage/storageAccounts" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1335 - Authenticator Management | Pki-Based Authentication", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Identification and Authentication control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1335" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Resource logs in IoT Hub should be enabled", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Audit enabling of resource logs. This enables you to recreate activity trails to use for investigation purposes; when a security incident occurs or when your network is compromised", - "metadata": { - "version": "3.0.1", - "category": "Internet of Things" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - }, - "requiredRetentionDays": { - "type": "String", - "metadata": { - "displayName": "Required retention (days)", - "description": "The required resource logs retention in days" - }, - "defaultValue": "365" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Devices/IotHubs" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Insights/diagnosticSettings", - "existenceCondition": { - "count": { - "field": "Microsoft.Insights/diagnosticSettings/logs[*]", - "where": { - "anyOf": [ - { - "allOf": [ - { - "field": "Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.enabled", - "equals": "true" - }, - { - "anyOf": [ - { - "field": "Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.days", - "equals": "0" - }, - { - "field": "Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.days", - "greaterOrEquals": "[parameters(\u0027requiredRetentionDays\u0027)]" - } - ] - }, - { - "field": "Microsoft.Insights/diagnosticSettings/logs.enabled", - "equals": "true" - } - ] - }, - { - "allOf": [ - { - "not": { - "field": "Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.enabled", - "equals": "true" - } - }, - { - "field": "Microsoft.Insights/diagnosticSettings/logs.enabled", - "equals": "true" - } - ] - } - ] - } - }, - "greaterOrEquals": 1 - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Deploy the Windows Guest Configuration extension to enable Guest Configuration assignments on Windows VMs", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "This policy deploys the Windows Guest Configuration extension to Windows virtual machines hosted in Azure that are supported by Guest Configuration. The Windows Guest Configuration extension is a prerequisite for all Windows Guest Configuration assignments and must be deployed to machines before using any Windows Guest Configuration policy definition. For more information on Guest Configuration, visit https://aka.ms/gcpol.", - "metadata": { - "category": "Guest Configuration", - "version": "1.2.0" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "dsvm-win*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - "then": { - "effect": "deployIfNotExists", - "details": { - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "type": "Microsoft.Compute/virtualMachines/extensions", - "name": "AzurePolicyforWindows", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.Compute/virtualMachines/extensions/publisher", - "equals": "Microsoft.GuestConfiguration" - }, - { - "field": "Microsoft.Compute/virtualMachines/extensions/type", - "equals": "ConfigurationforWindows" - }, - { - "field": "Microsoft.Compute/virtualMachines/extensions/provisioningState", - "equals": "Succeeded" - } - ] - }, - "deployment": { - "properties": { - "mode": "incremental", - "parameters": { - "vmName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "vmName": { - "type": "string" - }, - "location": { - "type": "string" - } - }, - "resources": [ - { - "apiVersion": "2019-07-01", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/AzurePolicyforWindows\u0027)]", - "type": "Microsoft.Compute/virtualMachines/extensions", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "publisher": "Microsoft.GuestConfiguration", - "type": "ConfigurationforWindows", - "typeHandlerVersion": "1.1", - "autoUpgradeMinorVersion": true, - "enableAutomaticUpgrade": true, - "settings": {}, - "protectedSettings": {} - } - } - ] - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1081 - Information Sharing", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Access Control control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1081" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1522 - Personnel Transfer", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Personnel Security control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1522" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Azure Synapse workspaces should disable public network access", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Disabling public network access improves security by ensuring that the Synapse workspace isn\u0027t exposed on the public internet. Creating private endpoints can limit exposure of your Synapse workspaces. Learn more at: https://docs.microsoft.com/azure/synapse-analytics/security/connectivity-settings.", - "metadata": { - "version": "1.0.0", - "category": "Synapse" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Synapse/workspaces" - }, - { - "field": "Microsoft.Synapse/workspaces/publicNetworkAccess", - "notEquals": "Disabled" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1416 - Nonlocal Maintenance | Document Nonlocal Maintenance", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Maintenance control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1416" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1397 - Controlled Maintenance", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Maintenance control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1397" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1556 - Vulnerability Scanning | Automated Trend Analyses", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Risk Assessment control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1556" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Advanced data security settings for SQL Managed Instance should contain an email address for security alerts", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Ensure that an email address is provided for the \u0027Send alerts to\u0027 field in the advanced data security settings. This email address receives alert notifications when anomalous activities are detected on SQL Managed Instance.", - "metadata": { - "version": "1.0.1-deprecated", - "category": "SQL", - "deprecated": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "Disabled" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Sql/managedInstances" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Sql/managedInstances/securityAlertPolicies", - "name": "default", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.Sql/managedInstances/securityAlertPolicies/emailAddresses[*]", - "notEquals": "" - }, - { - "field": "Microsoft.Sql/managedInstances/securityAlertPolicies/emailAddresses[*]", - "exists": "true" - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1232 - Configuration Management Plan", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Configuration Management control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1232" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1246 - Contingency Plan", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Contingency Planning control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1246" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "FTPS only should be required in your Function App", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Enable FTPS enforcement for enhanced security", - "metadata": { - "version": "2.0.0", - "category": "App Service" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Web/sites" - }, - { - "field": "kind", - "like": "functionapp*" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Web/sites/config", - "name": "web", - "existenceCondition": { - "field": "Microsoft.Web/sites/config/ftpsState", - "in": [ - "FtpsOnly", - "Disabled" - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1680 - Malicious Code Protection | Central Management", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Information Integrity control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1680" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1228 - Information System Component Inventory | Accountability Information", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Configuration Management control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1228" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Synapse managed private endpoints should only connect to resources in approved Azure Active Directory tenants", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Protect your Synapse workspace by only allowing connections to resources in approved Azure Active Directory (Azure AD) tenants. The approved Azure AD tenants can be defined during policy assignment.", - "metadata": { - "version": "1.0.0", - "category": "Synapse" - }, - "parameters": { - "allowedTenantIds": { - "type": "Array", - "metadata": { - "displayName": "List of Allowed Tenant Ids for private endpoint creation", - "description": "This parameter defines the list of Allowed Tenant Ids that are allowed to create managed private endpoints in the workspaces" - }, - "defaultValue": [] - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Disabled", - "Deny" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Synapse/workspaces" - }, - { - "count": { - "field": "Microsoft.Synapse/workspaces/managedVirtualNetworkSettings.allowedAadTenantIdsForLinking[*]", - "where": { - "field": "Microsoft.Synapse/workspaces/managedVirtualNetworkSettings.allowedAadTenantIdsForLinking[*]", - "notIn": "[parameters(\u0027allowedTenantIds\u0027)]" - } - }, - "greater": 0 - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Infrastructure encryption should be enabled for Azure Database for MySQL servers", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Enable infrastructure encryption for Azure Database for MySQL servers to have higher level of assurance that the data is secure. When infrastructure encryption is enabled, the data at rest is encrypted twice using FIPS 140-2 compliant Microsoft managed keys.", - "metadata": { - "version": "1.0.0", - "category": "SQL" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.DBforMySQL/servers" - }, - { - "field": "Microsoft.DBforMySQL/servers/infrastructureEncryption", - "notEquals": "Enabled" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1039 - Least Privilege | Review Of User Privileges", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Access Control control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1039" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1648 - Collaborative Computing Devices", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Communications Protection control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1648" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Windows machines should meet requirements for \u0027Administrative Templates - Control Panel\u0027", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Windows machines should have the specified Group Policy settings in the category \u0027Administrative Templates - Control Panel\u0027 for input personalization and prevention of enabling lock screens. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.", - "metadata": { - "category": "Guest Configuration", - "version": "3.0.0", - "requiredProviders": [ - "Microsoft.GuestConfiguration" - ], - "guestConfiguration": { - "name": "AzureBaseline_AdministrativeTemplatesControlPanel", - "version": "1.*" - } - }, - "parameters": { - "IncludeArcMachines": { - "type": "String", - "metadata": { - "displayName": "Include Arc connected servers", - "description": "By selecting this option, you agree to be charged monthly per Arc connected machine.", - "portalReview": "true" - }, - "allowedValues": [ - "true", - "false" - ], - "defaultValue": "false" - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of this policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "dsvm-win*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "value": "[parameters(\u0027IncludeArcMachines\u0027)]", - "equals": "true" - }, - { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.ConnectedVMwarevSphere/virtualMachines" - }, - { - "field": "Microsoft.ConnectedVMwarevSphere/virtualMachines/osProfile.osType", - "like": "windows*" - } - ] - } - ] - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "AzureBaseline_AdministrativeTemplatesControlPanel", - "existenceCondition": { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus", - "equals": "Compliant" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1315 - Identifier Management", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Identification and Authentication control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1315" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Azure Active Directory Domain Services managed domains should use TLS 1.2 only mode", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Use TLS 1.2 only mode for your managed domains. By default, Azure AD Domain Services enables the use of ciphers such as NTLM v1 and TLS v1. These ciphers may be required for some legacy applications, but are considered weak and can be disabled if you don\u0027t need them. When TLS 1.2 only mode is enabled, any client making a request that is not using TLS 1.2 will fail. Learn more at https://docs.microsoft.com/azure/active-directory-domain-services/secure-your-domain.", - "metadata": { - "version": "1.1.0", - "category": "Azure Active Directory" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.AAD/domainServices" - }, - { - "field": "Microsoft.AAD/domainServices/domainSecuritySettings.tlsV1", - "notEquals": "Disabled" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Pod Security Policies should be defined on Kubernetes Services", - "policyType": "BuiltIn", - "mode": "All", - "description": "Define Pod Security Policies to reduce the attack vector by removing unnecessary application privileges. It is recommended to configure Pod Security Policies to only allow pods to access the resources which they have permissions to access.", - "metadata": { - "version": "1.0.0-deprecated", - "category": "Security Center", - "deprecated": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Disabled" - ], - "defaultValue": "Disabled" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.ContainerService/managedClusters" - }, - { - "anyOf": [ - { - "field": "Microsoft.ContainerService/managedClusters/enablePodSecurityPolicy", - "exists": "false" - }, - { - "field": "Microsoft.ContainerService/managedClusters/enablePodSecurityPolicy", - "equals": "false" - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1548 - Vulnerability Scanning", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Risk Assessment control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1548" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Preview]: Configure Arc machines to automatically create the Security Center pipeline for Azure Monitor Agent", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Configure Arc machines to automatically create the Azure Security Center pipeline for Azure Monitor Agent. Security Center collects events from the agent and uses them to provide security alerts and tailored hardening tasks (recommendations). Create a resource group and Log Analytics workspace in the same region as the machine to store audit records. Target virtual machines must be in a supported location.", - "metadata": { - "category": "Security Center", - "version": "1.0.0-preview", - "preview": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "location", - "in": [ - "australiacentral", - "australiaeast", - "australiasoutheast", - "brazilsouth", - "canadacentral", - "canadaeast", - "centralindia", - "centralus", - "eastasia", - "eastus2euap", - "eastus", - "eastus2", - "francecentral", - "germanywestcentral", - "japaneast", - "japanwest", - "jioindiawest", - "koreacentral", - "koreasouth", - "northcentralus", - "northeurope", - "norwayeast", - "southafricanorth", - "southcentralus", - "southeastasia", - "southindia", - "switzerlandnorth", - "uaenorth", - "uksouth", - "ukwest", - "westcentralus", - "westeurope", - "westindia", - "westus", - "westus2" - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Insights/dataCollectionRules", - "deploymentScope": "subscription", - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "existenceScope": "subscription", - "existenceCondition": { - "allOf": [ - { - "field": "location", - "equals": "[field(\u0027location\u0027)]" - }, - { - "field": "name", - "equals": "[concat(\u0027Microsoft-Security-\u0027, field(\u0027location\u0027), \u0027-dcr\u0027)]" - } - ] - }, - "deployment": { - "location": "eastus", - "properties": { - "mode": "incremental", - "parameters": { - "resourceGroup": { - "value": "[resourceGroup().name]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "vmName": { - "value": "[field(\u0027name\u0027)]" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "resourceGroup": { - "type": "string" - }, - "location": { - "type": "string" - }, - "vmName": { - "type": "string" - } - }, - "variables": { - "locationLongNameToShortMap": { - "australiacentral": "CAU", - "australiaeast": "EAU", - "australiasoutheast": "SEAU", - "brazilsouth": "CQ", - "canadacentral": "CCA", - "canadaeast": "CCA", - "centralindia": "CIN", - "centralus": "CUS", - "eastasia": "EA", - "eastus2euap": "eus2p", - "eastus": "EUS", - "eastus2": "EUS2", - "francecentral": "PAR", - "germanywestcentral": "DEWC", - "japaneast": "EJP", - "japanwest": "EJP", - "jioindiawest": "CIN", - "koreacentral": "SE", - "koreasouth": "SE", - "northcentralus": "NCUS", - "northeurope": "NEU", - "norwayeast": "NOE", - "southafricanorth": "JNB", - "southcentralus": "SCUS", - "southeastasia": "SEA", - "southindia": "CIN", - "swedencentral": "SEC", - "switzerlandnorth": "CHN", - "switzerlandwest": "CHW", - "uaenorth": "DXB", - "uksouth": "SUK", - "ukwest": "WUK", - "westcentralus": "WCUS", - "westeurope": "WEU", - "westindia": "CIN", - "westus": "WUS", - "westus2": "WUS2" - }, - "locationCode": "[variables(\u0027locationLongNameToShortMap\u0027)[parameters(\u0027location\u0027)]]", - "subscriptionId": "[subscription().subscriptionId]", - "defaultRGName": "[concat(\u0027DefaultResourceGroup-\u0027, variables(\u0027locationCode\u0027))]", - "defaultRGLocation": "[parameters(\u0027location\u0027)]", - "workspaceName": "[concat(\u0027defaultWorkspace-\u0027, variables(\u0027subscriptionId\u0027),\u0027-\u0027, variables(\u0027locationCode\u0027))]", - "dcrName": "[concat(\u0027Microsoft-Security-\u0027, parameters(\u0027location\u0027), \u0027-dcr\u0027)]", - "dcrId": "[concat(\u0027/subscriptions/\u0027, variables(\u0027subscriptionId\u0027), \u0027/resourceGroups/\u0027, variables(\u0027defaultRGName\u0027), \u0027/providers/Microsoft.Insights/dataCollectionRules/\u0027, variables(\u0027dcrName\u0027))]", - "dcraName": "[concat(parameters(\u0027vmName\u0027),\u0027/Microsoft.Insights/Security-RulesAssociation\u0027)]", - "deployDefaultAscResourceGroup": "[concat(\u0027deployDefaultAscResourceGroup-\u0027, uniqueString(deployment().name))]", - "deployDataCollectionRulesAssociation": "[concat(\u0027deployDataCollectionRulesAssociation-\u0027, uniqueString(deployment().name))]" - }, - "resources": [ - { - "type": "Microsoft.Resources/resourceGroups", - "name": "[variables(\u0027defaultRGName\u0027)]", - "apiVersion": "2019-05-01", - "location": "[variables(\u0027defaultRGLocation\u0027)]" - }, - { - "type": "Microsoft.Resources/deployments", - "name": "[variables(\u0027deployDefaultAscResourceGroup\u0027)]", - "apiVersion": "2020-06-01", - "resourceGroup": "[variables(\u0027defaultRGName\u0027)]", - "properties": { - "mode": "Incremental", - "expressionEvaluationOptions": { - "scope": "inner" - }, - "parameters": { - "defaultRGLocation": { - "value": "[variables(\u0027defaultRGLocation\u0027)]" - }, - "workspaceName": { - "value": "[variables(\u0027workspaceName\u0027)]" - }, - "dcrName": { - "value": "[variables(\u0027dcrName\u0027)]" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "defaultRGLocation": { - "type": "string" - }, - "workspaceName": { - "type": "string" - }, - "dcrName": { - "type": "string" - } - }, - "variables": { - "securityCenterFreeSolution": { - "Name": "[Concat(\u0027SecurityCenterFree\u0027, \u0027(\u0027, parameters(\u0027workspaceName\u0027), \u0027)\u0027)]", - "GalleryName": "SecurityCenterFree" - } - }, - "resources": [ - { - "type": "Microsoft.OperationalInsights/workspaces", - "name": "[parameters(\u0027workspaceName\u0027)]", - "apiVersion": "2021-06-01", - "location": "[parameters(\u0027defaultRGLocation\u0027)]", - "properties": { - "sku": { - "name": "pernode" - }, - "retentionInDays": 30, - "features": { - "searchVersion": 1 - } - } - }, - { - "type": "Microsoft.OperationsManagement/solutions", - "name": "[variables(\u0027securityCenterFreeSolution\u0027).Name]", - "apiVersion": "2015-11-01-preview", - "location": "[parameters(\u0027defaultRGLocation\u0027)]", - "dependsOn": [ - "[parameters(\u0027workspaceName\u0027)]" - ], - "properties": { - "workspaceResourceId": "[resourceId(\u0027Microsoft.OperationalInsights/workspaces/\u0027, parameters(\u0027workspaceName\u0027))]" - }, - "plan": { - "name": "[variables(\u0027securityCenterFreeSolution\u0027).Name]", - "publisher": "Microsoft", - "product": "[Concat(\u0027OMSGallery/\u0027, variables(\u0027securityCenterFreeSolution\u0027).GalleryName)]", - "promotionCode": "" - } - }, - { - "type": "Microsoft.Insights/dataCollectionRules", - "name": "[parameters(\u0027dcrName\u0027)]", - "apiVersion": "2019-11-01-preview", - "location": "[parameters(\u0027defaultRGLocation\u0027)]", - "dependsOn": [ - "[parameters(\u0027workspaceName\u0027)]" - ], - "properties": { - "description": "Data collection rule for Azure Security Center. Deleting this rule will break the detection of security vulnerabilities.", - "dataSources": { - "extensions": [ - { - "extensionName": "AzureSecurityLinuxAgent", - "name": "AscLinuxDataSource", - "streams": [ - "Microsoft-OperationLog", - "Microsoft-ProtectionStatus", - "Microsoft-SecurityBaseline", - "Microsoft-SecurityBaselineSummary" - ], - "extensionSettings": { - "scanners": [ - { - "name": "heartbeat", - "frequency": "PT1H" - }, - { - "name": "time", - "frequency": "PT8H" - }, - { - "name": "antimalware", - "frequency": "PT8H" - }, - { - "name": "codeintegrity", - "frequency": "P1D" - }, - { - "name": "processinvestigator", - "frequency": "PT1H" - }, - { - "name": "baseline", - "frequency": "P1D" - }, - { - "name": "docker", - "frequency": "P1D" - } - ] - } - }, - { - "extensionName": "AzureSecurityWindowsAgent", - "name": "AsaWindowsDataSource", - "streams": [ - "Microsoft-OperationLog", - "Microsoft-ProtectionStatus", - "Microsoft-SecurityBaseline", - "Microsoft-SecurityBaselineSummary" - ], - "extensionSettings": { - "scanners": [ - { - "name": "heartbeat", - "frequency": "PT1H" - }, - { - "name": "baseline", - "frequency": "P1D" - }, - { - "name": "antimalware", - "frequency": "P1D" - }, - { - "name": "processinvestigator", - "frequency": "PT1H" - } - ] - } - } - ] - }, - "destinations": { - "logAnalytics": [ - { - "workspaceResourceId": "[resourceId(\u0027Microsoft.OperationalInsights/workspaces/\u0027, parameters(\u0027workspaceName\u0027))]", - "name": "LogAnalyticsDest" - } - ] - }, - "dataFlows": [ - { - "streams": [ - "Microsoft-OperationLog", - "Microsoft-ProtectionStatus", - "Microsoft-SecurityBaseline", - "Microsoft-SecurityBaselineSummary" - ], - "destinations": [ - "LogAnalyticsDest" - ] - } - ] - } - } - ] - } - }, - "dependsOn": [ - "[resourceId(\u0027Microsoft.Resources/resourceGroups\u0027, variables(\u0027defaultRGName\u0027))]" - ] - }, - { - "type": "Microsoft.Resources/deployments", - "name": "[variables(\u0027deployDataCollectionRulesAssociation\u0027)]", - "apiVersion": "2020-06-01", - "resourceGroup": "[parameters(\u0027resourceGroup\u0027)]", - "dependsOn": [ - "[variables(\u0027deployDefaultAscResourceGroup\u0027)]" - ], - "properties": { - "mode": "Incremental", - "expressionEvaluationOptions": { - "scope": "inner" - }, - "parameters": { - "location": { - "value": "[parameters(\u0027location\u0027)]" - }, - "vmName": { - "value": "[parameters(\u0027vmName\u0027)]" - }, - "dcrId": { - "value": "[variables(\u0027dcrId\u0027)]" - }, - "dcraName": { - "value": "[variables(\u0027dcraName\u0027)]" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "location": { - "type": "string" - }, - "vmName": { - "type": "string" - }, - "dcrId": { - "type": "string" - }, - "dcraName": { - "type": "string" - } - }, - "variables": {}, - "resources": [ - { - "type": "Microsoft.HybridCompute/machines/providers/dataCollectionRuleAssociations", - "name": "[parameters(\u0027dcraName\u0027)]", - "apiVersion": "2019-11-01-preview", - "properties": { - "description": "Association of data collection rule for Azure Security Center. Deleting this association will break the detection of security vulnerabilities for this virtual machine.", - "dataCollectionRuleId": "[parameters(\u0027dcrId\u0027)]" - } - } - ] - } - } - } - ] - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Configure Azure Synapse workspaces with private endpoints", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Private endpoints connect your virtual network to Azure services without a public IP address at the source or destination. By mapping private endpoints to Azure Synapse workspaces, you can reduce data leakage risks. Learn more about private links at: https://docs.microsoft.com/azure/synapse-analytics/security/how-to-connect-to-workspace-with-private-links.", - "metadata": { - "version": "1.0.0", - "category": "Synapse" - }, - "parameters": { - "privateEndpointSubnetId": { - "type": "String", - "metadata": { - "displayName": "Private endpoint subnet id", - "description": "A subnet with private endpoint network policies disabled", - "strongType": "Microsoft.Network/virtualNetworks/subnets" - } - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Synapse/workspaces" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Synapse/workspaces/privateEndpointConnections", - "existenceCondition": { - "field": "Microsoft.Synapse/workspaces/privateEndpointConnections/privateLinkServiceConnectionState.status", - "equals": "Approved" - }, - "roleDefinitionIds": [ - "/providers/Microsoft.Authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "deployment": { - "properties": { - "mode": "incremental", - "parameters": { - "name": { - "value": "[field(\u0027name\u0027)]" - }, - "serviceId": { - "value": "[field(\u0027id\u0027)]" - }, - "privateEndpointSubnetId": { - "value": "[parameters(\u0027privateEndpointSubnetId\u0027)]" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "name": { - "type": "string" - }, - "serviceId": { - "type": "string" - }, - "privateEndpointSubnetId": { - "type": "string" - } - }, - "variables": { - "privateEndpointName": "[concat(\u0027pe-\u0027,substring(parameters(\u0027name\u0027),0,min(length(parameters(\u0027name\u0027)),50)),\u0027-\u0027,uniquestring(deployment().name))]" - }, - "resources": [ - { - "type": "Microsoft.Resources/deployments", - "name": "[variables(\u0027privateEndpointName\u0027)]", - "apiVersion": "2020-06-01", - "properties": { - "mode": "Incremental", - "expressionEvaluationOptions": { - "scope": "inner" - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "serviceId": { - "type": "string" - }, - "privateEndpointSubnetId": { - "type": "string" - }, - "subnetLocation": { - "type": "string" - } - }, - "variables": { - "privateEndpointName": "[deployment().name]" - }, - "resources": [ - { - "name": "[variables(\u0027privateEndpointName\u0027)]", - "type": "Microsoft.Network/privateEndpoints", - "apiVersion": "2020-07-01", - "location": "[parameters(\u0027subnetLocation\u0027)]", - "tags": {}, - "properties": { - "subnet": { - "id": "[parameters(\u0027privateEndpointSubnetId\u0027)]" - }, - "privateLinkServiceConnections": [ - { - "name": "[variables(\u0027privateEndpointName\u0027)]", - "properties": { - "privateLinkServiceId": "[parameters(\u0027serviceId\u0027)]", - "groupIds": [ - "Dev" - ], - "requestMessage": "Auto approved by policy assignment" - } - } - ], - "manualPrivateLinkServiceConnections": [] - } - } - ] - }, - "parameters": { - "serviceId": { - "value": "[parameters(\u0027serviceId\u0027)]" - }, - "privateEndpointSubnetId": { - "value": "[parameters(\u0027privateEndpointSubnetId\u0027)]" - }, - "subnetLocation": { - "value": "[reference(first(take(split(parameters(\u0027privateEndpointSubnetId\u0027),\u0027/subnets\u0027),1)),\u00272020-07-01\u0027,\u0027Full\u0027).location]" - } - } - } - } - ] - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1266 - Contingency Plan Testing | Alternate Processing Site", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Contingency Planning control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1266" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1003 - Account Management", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Access Control control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1003" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "An activity log alert should exist for specific Security operations", - "policyType": "BuiltIn", - "mode": "All", - "description": "This policy audits specific Security operations with no activity log alerts configured.", - "metadata": { - "version": "1.0.0", - "category": "Monitoring" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - }, - "operationName": { - "type": "String", - "metadata": { - "displayName": "Operation Name", - "description": "Security Operation name for which activity log alert should exist" - }, - "allowedValues": [ - "Microsoft.Security/policies/write", - "Microsoft.Security/securitySolutions/write", - "Microsoft.Security/securitySolutions/delete" - ] - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Resources/subscriptions" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Insights/ActivityLogAlerts", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.Insights/ActivityLogAlerts/enabled", - "equals": "true" - }, - { - "count": { - "field": "Microsoft.Insights/ActivityLogAlerts/condition.allOf[*]", - "where": { - "anyOf": [ - { - "allOf": [ - { - "field": "Microsoft.Insights/ActivityLogAlerts/condition.allOf[*].field", - "equals": "category" - }, - { - "field": "Microsoft.Insights/ActivityLogAlerts/condition.allOf[*].equals", - "equals": "Security" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Insights/ActivityLogAlerts/condition.allOf[*].field", - "equals": "operationName" - }, - { - "field": "Microsoft.Insights/ActivityLogAlerts/condition.allOf[*].equals", - "equals": "[parameters(\u0027operationName\u0027)]" - } - ] - } - ] - } - }, - "equals": 2 - }, - { - "not": { - "field": "Microsoft.Insights/ActivityLogAlerts/condition.allOf[*].field", - "equals": "category" - } - }, - { - "not": { - "field": "Microsoft.Insights/ActivityLogAlerts/condition.allOf[*].field", - "equals": "operationName" - } - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Deploy - Configure Dependency agent to be enabled on Windows virtual machine scale sets", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Deploy Dependency agent for Windows virtual machine scale sets if the virtual machine image is in the list defined and the agent is not installed. If your scale set upgradePolicy is set to Manual, you need to apply the extension to all the virtual machines in the set by updating them.", - "metadata": { - "version": "2.0.0", - "category": "Monitoring" - }, - "parameters": { - "listOfImageIdToInclude": { - "type": "Array", - "metadata": { - "displayName": "Optional: List of virtual machine images that have supported Windows OS to add to scope", - "description": "Example value: \u0027/subscriptions/\u003CsubscriptionId\u003E/resourceGroups/YourResourceGroup/providers/Microsoft.Compute/images/ContosoStdImage\u0027" - }, - "defaultValue": [] - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachineScaleSets" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageId", - "in": "[parameters(\u0027listOfImageIdToInclude\u0027)]" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "in": [ - "2008-R2-SP1", - "2008-R2-SP1-smalldisk", - "2012-Datacenter", - "2012-Datacenter-smalldisk", - "2012-R2-Datacenter", - "2012-R2-Datacenter-smalldisk", - "2016-Datacenter", - "2016-Datacenter-Server-Core", - "2016-Datacenter-Server-Core-smalldisk", - "2016-Datacenter-smalldisk", - "2016-Datacenter-with-Containers", - "2016-Datacenter-with-RDSH", - "2019-Datacenter", - "2019-Datacenter-Core", - "2019-Datacenter-Core-smalldisk", - "2019-Datacenter-Core-with-Containers", - "2019-Datacenter-Core-with-Containers-smalldisk", - "2019-Datacenter-smalldisk", - "2019-Datacenter-with-Containers", - "2019-Datacenter-with-Containers-smalldisk", - "2019-Datacenter-zhcn" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServerSemiAnnual" - }, - { - "field": "Microsoft.Compute/imageSKU", - "in": [ - "Datacenter-Core-1709-smalldisk", - "Datacenter-Core-1709-with-Containers-smalldisk", - "Datacenter-Core-1803-with-Containers-smalldisk" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServerHPCPack" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServerHPCPack" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2016" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2016-BYOL" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2012R2" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2012R2-BYOL" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftRServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "MLServer-WS2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftVisualStudio" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "VisualStudio", - "Windows" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftDynamicsAX" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Dynamics" - }, - { - "field": "Microsoft.Compute/imageSKU", - "equals": "Pre-Req-AX7-Onebox-U8" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftDynamicsAX" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Dynamics" - }, - { - "field": "Microsoft.Compute/imageSKU", - "equals": "Pre-Req-AX7-Onebox-V4" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "windows-data-science-vm" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsDesktop" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Windows-10" - } - ] - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Compute/virtualMachineScaleSets/extensions", - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.Compute/virtualMachineScaleSets/extensions/type", - "equals": "DependencyAgentWindows" - }, - { - "field": "Microsoft.Compute/virtualMachineScaleSets/extensions/publisher", - "equals": "Microsoft.Azure.Monitoring.DependencyAgent" - } - ] - }, - "deployment": { - "properties": { - "mode": "incremental", - "template": { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "vmName": { - "type": "string" - }, - "location": { - "type": "string" - } - }, - "variables": { - "vmExtensionName": "DependencyAgentWindows", - "vmExtensionPublisher": "Microsoft.Azure.Monitoring.DependencyAgent", - "vmExtensionType": "DependencyAgentWindows", - "vmExtensionTypeHandlerVersion": "9.7" - }, - "resources": [ - { - "type": "Microsoft.Compute/virtualMachineScaleSets/extensions", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/\u0027, variables(\u0027vmExtensionName\u0027))]", - "apiVersion": "2018-06-01", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "publisher": "[variables(\u0027vmExtensionPublisher\u0027)]", - "type": "[variables(\u0027vmExtensionType\u0027)]", - "typeHandlerVersion": "[variables(\u0027vmExtensionTypeHandlerVersion\u0027)]", - "autoUpgradeMinorVersion": true - } - } - ], - "outputs": { - "policy": { - "type": "string", - "value": "[concat(\u0027Enabled extension for: \u0027, parameters(\u0027vmName\u0027))]" - } - } - }, - "parameters": { - "vmName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - } - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "PostgreSQL server should use a virtual network service endpoint", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Virtual network based firewall rules are used to enable traffic from a specific subnet to Azure Database for PostgreSQL while ensuring the traffic stays within the Azure boundary. This policy provides a way to audit if the Azure Database for PostgreSQL has virtual network service endpoint being used.", - "metadata": { - "version": "1.0.2", - "category": "SQL" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.DBforPostgreSQL/servers" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.DBforPostgreSQL/servers/virtualNetworkRules", - "existenceCondition": { - "field": "Microsoft.DBforPostgreSQL/servers/virtualNetworkRules/virtualNetworkSubnetId", - "exists": "true" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Deploy - Configure Log Analytics extension to be enabled on Windows virtual machine scale sets", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Deploy Log Analytics extension for Windows virtual machine scale sets if the virtual machine image is in the list defined and the extension is not installed. If your scale set upgradePolicy is set to Manual, you need to apply the extension to all the virtual machine in the set by updating them.", - "metadata": { - "version": "2.0.1", - "category": "Monitoring" - }, - "parameters": { - "logAnalytics": { - "type": "String", - "metadata": { - "displayName": "Log Analytics workspace", - "description": "Log Analytics workspace is used to receive performance data. If this workspace is outside of the scope of the assignment you must manually grant \u0027Log Analytics Contributor\u0027 permissions (or similar) to the policy assignment\u0027s principal ID.", - "strongType": "omsWorkspace", - "assignPermissions": true - } - }, - "listOfImageIdToInclude": { - "type": "Array", - "metadata": { - "displayName": "Optional: List of virtual machine images that have supported Windows OS to add to scope", - "description": "Example value: \u0027/subscriptions/\u003CsubscriptionId\u003E/resourceGroups/YourResourceGroup/providers/Microsoft.Compute/images/ContosoStdImage\u0027" - }, - "defaultValue": [] - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachineScaleSets" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageId", - "in": "[parameters(\u0027listOfImageIdToInclude\u0027)]" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "in": [ - "2008-R2-SP1", - "2008-R2-SP1-smalldisk", - "2012-Datacenter", - "2012-Datacenter-smalldisk", - "2012-R2-Datacenter", - "2012-R2-Datacenter-smalldisk", - "2016-Datacenter", - "2016-Datacenter-Server-Core", - "2016-Datacenter-Server-Core-smalldisk", - "2016-Datacenter-smalldisk", - "2016-Datacenter-with-Containers", - "2016-Datacenter-with-RDSH", - "2019-Datacenter", - "2019-Datacenter-Core", - "2019-Datacenter-Core-smalldisk", - "2019-Datacenter-Core-with-Containers", - "2019-Datacenter-Core-with-Containers-smalldisk", - "2019-Datacenter-smalldisk", - "2019-Datacenter-with-Containers", - "2019-Datacenter-with-Containers-smalldisk", - "2019-Datacenter-zhcn" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServerSemiAnnual" - }, - { - "field": "Microsoft.Compute/imageSKU", - "in": [ - "Datacenter-Core-1709-smalldisk", - "Datacenter-Core-1709-with-Containers-smalldisk", - "Datacenter-Core-1803-with-Containers-smalldisk" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServerHPCPack" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServerHPCPack" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2016" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2016-BYOL" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2012R2" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2012R2-BYOL" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftRServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "MLServer-WS2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftVisualStudio" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "VisualStudio", - "Windows" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftDynamicsAX" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Dynamics" - }, - { - "field": "Microsoft.Compute/imageSKU", - "equals": "Pre-Req-AX7-Onebox-U8" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftDynamicsAX" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Dynamics" - }, - { - "field": "Microsoft.Compute/imageSKU", - "equals": "Pre-Req-AX7-Onebox-V4" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "windows-data-science-vm" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsDesktop" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Windows-10" - } - ] - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Compute/virtualMachineScaleSets/extensions", - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000", - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.Compute/virtualMachineScaleSets/extensions/type", - "equals": "MicrosoftMonitoringAgent" - }, - { - "field": "Microsoft.Compute/virtualMachineScaleSets/extensions/publisher", - "equals": "Microsoft.EnterpriseCloud.Monitoring" - } - ] - }, - "deployment": { - "properties": { - "mode": "incremental", - "template": { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "vmName": { - "type": "string" - }, - "location": { - "type": "string" - }, - "logAnalytics": { - "type": "string" - } - }, - "variables": { - "vmExtensionName": "MicrosoftMonitoringAgent", - "vmExtensionPublisher": "Microsoft.EnterpriseCloud.Monitoring", - "vmExtensionType": "MicrosoftMonitoringAgent", - "vmExtensionTypeHandlerVersion": "1.0" - }, - "resources": [ - { - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/\u0027, variables(\u0027vmExtensionName\u0027))]", - "type": "Microsoft.Compute/virtualMachineScaleSets/extensions", - "location": "[parameters(\u0027location\u0027)]", - "apiVersion": "2018-06-01", - "properties": { - "publisher": "[variables(\u0027vmExtensionPublisher\u0027)]", - "type": "[variables(\u0027vmExtensionType\u0027)]", - "typeHandlerVersion": "[variables(\u0027vmExtensionTypeHandlerVersion\u0027)]", - "autoUpgradeMinorVersion": true, - "settings": { - "workspaceId": "[reference(parameters(\u0027logAnalytics\u0027), \u00272015-03-20\u0027).customerId]", - "stopOnMultipleConnections": "true" - }, - "protectedSettings": { - "workspaceKey": "[listKeys(parameters(\u0027logAnalytics\u0027), \u00272015-03-20\u0027).primarySharedKey]" - } - } - } - ], - "outputs": { - "policy": { - "type": "string", - "value": "[concat(\u0027Enabled extension for: \u0027, parameters(\u0027vmName\u0027))]" - } - } - }, - "parameters": { - "vmName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "logAnalytics": { - "value": "[parameters(\u0027logAnalytics\u0027)]" - } - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Vulnerabilities in security configuration on your virtual machine scale sets should be remediated", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Audit the OS vulnerabilities on your virtual machine scale sets to protect them from attacks.", - "metadata": { - "version": "3.0.0", - "category": "Security Center" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Compute/virtualMachineScaleSets" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Security/assessments", - "name": "00000000-0000-0000-0000-000000000000", - "existenceCondition": { - "field": "Microsoft.Security/assessments/status.code", - "in": [ - "NotApplicable", - "Healthy" - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1621 - Resource Availability", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Communications Protection control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1621" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1521 - Personnel Termination | Automated Notification", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Personnel Security control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1521" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1127 - Time Stamps", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Audit and Accountability control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1127" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Add system-assigned managed identity to enable Guest Configuration assignments on virtual machines with no identities", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "This policy adds a system-assigned managed identity to virtual machines hosted in Azure that are supported by Guest Configuration but do not have any managed identities. A system-assigned managed identity is a prerequisite for all Guest Configuration assignments and must be added to machines before using any Guest Configuration policy definitions. For more information on Guest Configuration, visit https://aka.ms/gcpol.", - "metadata": { - "category": "Guest Configuration", - "version": "3.0.0" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "dsvm-win*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "microsoft-aks", - "qubole-inc", - "datastax", - "couchbase", - "scalegrid", - "checkpoint", - "paloaltonetworks", - "debian" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "OpenLogic" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "CentOS*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "6*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Oracle" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Oracle-Linux" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "6*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "RedHat" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "RHEL", - "RHEL-HA", - "RHEL-SAP", - "RHEL-SAP-APPS", - "RHEL-SAP-HA", - "RHEL-SAP-HANA" - ] - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "6*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "RedHat" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "osa", - "rhel-byos" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "cis-centos-7-l1", - "cis-centos-7-v2-1-1-l1", - "cis-centos-8-l1", - "cis-debian-linux-8-l1", - "cis-debian-linux-9-l1", - "cis-nginx-centos-7-v1-1-0-l1", - "cis-oracle-linux-7-v2-0-0-l1", - "cis-oracle-linux-8-l1", - "cis-postgresql-11-centos-linux-7-level-1", - "cis-rhel-7-l2", - "cis-rhel-7-v2-2-0-l1", - "cis-rhel-8-l1", - "cis-suse-linux-12-v2-0-0-l1", - "cis-ubuntu-linux-1604-v1-0-0-l1", - "cis-ubuntu-linux-1804-l1" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "credativ" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Debian" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "7*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Suse" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "SLES*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "11*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Canonical" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "UbuntuServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "12*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "linux-data-science-vm-ubuntu", - "azureml", - "ubuntu-hpc", - "ubuntu-1804" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloudera" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "cloudera-centos-os" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "6*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloudera" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "cloudera-altus-centos-os" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "linux*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.linuxConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Linux*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "exists": "false" - }, - { - "field": "Microsoft.Compute/imagePublisher", - "notIn": [ - "OpenLogic", - "RedHat", - "credativ", - "Suse", - "Canonical", - "microsoft-dsvm", - "cloudera", - "microsoft-ads", - "center-for-internet-security-inc", - "Oracle", - "AzureDatabricks", - "azureopenshift" - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "value": "[requestContext().apiVersion]", - "greaterOrEquals": "2018-10-01" - }, - { - "anyOf": [ - { - "field": "identity.type", - "exists": "false" - }, - { - "field": "identity.type", - "equals": "None" - } - ] - } - ] - }, - "then": { - "effect": "modify", - "details": { - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "operations": [ - { - "operation": "addOrReplace", - "field": "identity.type", - "value": "SystemAssigned" - } - ] - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Audit Windows machines that have extra accounts in the Administrators group", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if the local Administrators group contains members that are not listed in the policy parameter.", - "metadata": { - "category": "Guest Configuration", - "version": "2.0.0", - "requiredProviders": [ - "Microsoft.GuestConfiguration" - ], - "guestConfiguration": { - "name": "AdministratorsGroupMembers", - "version": "1.*", - "configurationParameter": { - "Members": "[LocalGroup]AdministratorsGroup;Members" - } - } - }, - "parameters": { - "IncludeArcMachines": { - "type": "String", - "metadata": { - "displayName": "Include Arc connected servers", - "description": "By selecting this option, you agree to be charged monthly per Arc connected machine.", - "portalReview": "true" - }, - "allowedValues": [ - "true", - "false" - ], - "defaultValue": "false" - }, - "Members": { - "type": "String", - "metadata": { - "displayName": "Members", - "description": "A semicolon-separated list of all the expected members of the Administrators local group. Ex: Administrator; myUser1; myUser2" - }, - "allowedValues": [], - "defaultValue": "Administrator" - } - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "dsvm-win*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "value": "[parameters(\u0027IncludeArcMachines\u0027)]", - "equals": "true" - }, - { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.ConnectedVMwarevSphere/virtualMachines" - }, - { - "field": "Microsoft.ConnectedVMwarevSphere/virtualMachines/osProfile.osType", - "like": "windows*" - } - ] - } - ] - } - ] - } - ] - }, - "then": { - "effect": "auditIfNotExists", - "details": { - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "AdministratorsGroupMembers", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus", - "equals": "Compliant" - }, - { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash", - "equals": "[base64(concat(\u0027[LocalGroup]AdministratorsGroup;Members\u0027, \u0027=\u0027, parameters(\u0027Members\u0027)))]" - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Deploy Diagnostic Settings for Search Services to Event Hub", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Deploys the diagnostic settings for Search Services to stream to a regional Event Hub when any Search Services which is missing this diagnostic settings is created or updated.", - "metadata": { - "version": "2.0.0", - "category": "Monitoring" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - }, - "profileName": { - "type": "String", - "metadata": { - "displayName": "Profile name", - "description": "The diagnostic settings profile name" - }, - "defaultValue": "setbypolicy_eventHub" - }, - "eventHubRuleId": { - "type": "String", - "metadata": { - "displayName": "Event Hub Authorization Rule Id", - "description": "The Event Hub authorization rule Id for Azure Diagnostics. The authorization rule needs to be at Event Hub namespace level. e.g. /subscriptions/{subscription Id}/resourceGroups/{resource group}/providers/Microsoft.EventHub/namespaces/{Event Hub namespace}/authorizationrules/{authorization rule}", - "strongType": "Microsoft.EventHub/Namespaces/AuthorizationRules", - "assignPermissions": true - } - }, - "eventHubLocation": { - "type": "String", - "metadata": { - "displayName": "Event Hub Location", - "description": "The location the Event Hub resides in. Only Search Services in this location will be linked to this Event Hub.", - "strongType": "location" - }, - "defaultValue": "" - }, - "metricsEnabled": { - "type": "String", - "metadata": { - "displayName": "Enable metrics", - "description": "Whether to enable metrics stream to the Event Hub - True or False" - }, - "allowedValues": [ - "True", - "False" - ], - "defaultValue": "False" - }, - "logsEnabled": { - "type": "String", - "metadata": { - "displayName": "Enable logs", - "description": "Whether to enable logs stream to the Event Hub - True or False" - }, - "allowedValues": [ - "True", - "False" - ], - "defaultValue": "True" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Search/searchServices" - }, - { - "anyOf": [ - { - "value": "[parameters(\u0027eventHubLocation\u0027)]", - "equals": "" - }, - { - "field": "location", - "equals": "[parameters(\u0027eventHubLocation\u0027)]" - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Insights/diagnosticSettings", - "name": "[parameters(\u0027profileName\u0027)]", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.Insights/diagnosticSettings/logs.enabled", - "equals": "[parameters(\u0027logsEnabled\u0027)]" - }, - { - "field": "Microsoft.Insights/diagnosticSettings/metrics.enabled", - "equals": "[parameters(\u0027metricsEnabled\u0027)]" - } - ] - }, - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "deployment": { - "properties": { - "mode": "incremental", - "template": { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "resourceName": { - "type": "string" - }, - "location": { - "type": "string" - }, - "eventHubRuleId": { - "type": "string" - }, - "metricsEnabled": { - "type": "string" - }, - "logsEnabled": { - "type": "string" - }, - "profileName": { - "type": "string" - } - }, - "variables": {}, - "resources": [ - { - "type": "Microsoft.Search/searchServices/providers/diagnosticSettings", - "apiVersion": "2017-05-01-preview", - "name": "[concat(parameters(\u0027resourceName\u0027), \u0027/\u0027, \u0027Microsoft.Insights/\u0027, parameters(\u0027profileName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "dependsOn": [], - "properties": { - "eventHubAuthorizationRuleId": "[parameters(\u0027eventHubRuleId\u0027)]", - "metrics": [ - { - "category": "AllMetrics", - "enabled": "[parameters(\u0027metricsEnabled\u0027)]", - "retentionPolicy": { - "enabled": false, - "days": 0 - } - } - ], - "logs": [ - { - "category": "OperationLogs", - "enabled": "[parameters(\u0027logsEnabled\u0027)]" - } - ] - } - } - ], - "outputs": {} - }, - "parameters": { - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "resourceName": { - "value": "[field(\u0027name\u0027)]" - }, - "eventHubRuleId": { - "value": "[parameters(\u0027eventHubRuleId\u0027)]" - }, - "metricsEnabled": { - "value": "[parameters(\u0027metricsEnabled\u0027)]" - }, - "logsEnabled": { - "value": "[parameters(\u0027logsEnabled\u0027)]" - }, - "profileName": { - "value": "[parameters(\u0027profileName\u0027)]" - } - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Show audit results from Windows VMs configurations in \u0027Security Options - Devices\u0027", - "policyType": "BuiltIn", - "mode": "All", - "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: \u0027Security Options - Devices\u0027. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol", - "metadata": { - "version": "1.0.0-deprecated", - "category": "Guest Configuration", - "deprecated": true - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "dsvm-windows" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - } - ] - }, - "then": { - "effect": "auditIfNotExists", - "details": { - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "AzureBaseline_SecurityOptionsDevices", - "existenceCondition": { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus", - "equals": "Compliant" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Deploy default Log Analytics Extension for Ubuntu VMs", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "This policy deploys the Log Analytics Extension on Ubuntu VMs, and connects to the selected Log Analytics workspace", - "metadata": { - "version": "1.0.1-deprecated", - "category": "Compute", - "deprecated": true - }, - "parameters": { - "logAnalytics": { - "type": "String", - "metadata": { - "displayName": "Log Analytics workspace", - "description": "Select Log Analytics workspace from dropdown list. If this workspace is outside of the scope of the assignment you must manually grant \u0027Log Analytics Contributor\u0027 permissions (or similar) to the policy assignment\u0027s principal ID.", - "strongType": "omsWorkspace" - } - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Canonical" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "UbuntuServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "in": [ - "18.04-LTS", - "16.04-LTS", - "16.04.0-LTS", - "14.04.2-LTS", - "12.04.5-LTS" - ] - } - ] - }, - "then": { - "effect": "deployIfNotExists", - "details": { - "type": "Microsoft.Compute/virtualMachines/extensions", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.Compute/virtualMachines/extensions/type", - "equals": "OmsAgentForLinux" - }, - { - "field": "Microsoft.Compute/virtualMachines/extensions/publisher", - "equals": "Microsoft.EnterpriseCloud.Monitoring" - } - ] - }, - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "deployment": { - "properties": { - "mode": "incremental", - "template": { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "vmName": { - "type": "string" - }, - "location": { - "type": "string" - }, - "logAnalytics": { - "type": "string" - } - }, - "resources": [ - { - "name": "[concat(parameters(\u0027vmName\u0027),\u0027/omsPolicy\u0027)]", - "type": "Microsoft.Compute/virtualMachines/extensions", - "location": "[parameters(\u0027location\u0027)]", - "apiVersion": "2017-12-01", - "properties": { - "publisher": "Microsoft.EnterpriseCloud.Monitoring", - "type": "OmsAgentForLinux", - "typeHandlerVersion": "1.4", - "autoUpgradeMinorVersion": true, - "settings": { - "workspaceId": "[reference(parameters(\u0027logAnalytics\u0027), \u00272015-03-20\u0027).customerId]" - }, - "protectedSettings": { - "workspaceKey": "[listKeys(parameters(\u0027logAnalytics\u0027), \u00272015-03-20\u0027).primarySharedKey]" - } - } - } - ], - "outputs": { - "policy": { - "type": "string", - "value": "[concat(\u0027Enabled monitoring for Linux VM\u0027, \u0027: \u0027, parameters(\u0027vmName\u0027))]" - } - } - }, - "parameters": { - "vmName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "logAnalytics": { - "value": "[parameters(\u0027logAnalytics\u0027)]" - } - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "App Configuration should disable public network access", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Disabling public network access improves security by ensuring that the resource isn\u0027t exposed on the public internet. You can limit exposure of your resources by creating private endpoints instead. Learn more at: https://aka.ms/appconfig/private-endpoint.", - "metadata": { - "version": "1.0.0", - "category": "App Configuration" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.AppConfiguration/configurationStores" - }, - { - "field": "Microsoft.AppConfiguration/configurationStores/publicNetworkAccess", - "notEquals": "Disabled" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1385 - Information Spillage Response", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Incident Response control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1385" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Audit Windows machines that do not have the specified Windows PowerShell modules installed", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if a module isn\u0027t available in a location specified by the environment variable PSModulePath.", - "metadata": { - "category": "Guest Configuration", - "version": "3.0.0", - "requiredProviders": [ - "Microsoft.GuestConfiguration" - ], - "guestConfiguration": { - "name": "WindowsPowerShellModules", - "version": "1.*", - "configurationParameter": { - "Modules": "[PowerShellModules]PowerShellModules1;Modules" - } - } - }, - "parameters": { - "IncludeArcMachines": { - "type": "String", - "metadata": { - "displayName": "Include Arc connected servers", - "description": "By selecting this option, you agree to be charged monthly per Arc connected machine.", - "portalReview": "true" - }, - "allowedValues": [ - "true", - "false" - ], - "defaultValue": "false" - }, - "Modules": { - "type": "String", - "metadata": { - "displayName": "PowerShell Modules", - "description": "A semicolon-separated list of the names of the PowerShell modules that should be installed. You may also specify a specific version of a module that should be installed by including a comma after the module name, followed by the desired version. Example: PSDscResources; SqlServerDsc, 12.0.0.0; ComputerManagementDsc, 6.1.0.0" - } - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of this policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "dsvm-win*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "value": "[parameters(\u0027IncludeArcMachines\u0027)]", - "equals": "true" - }, - { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.ConnectedVMwarevSphere/virtualMachines" - }, - { - "field": "Microsoft.ConnectedVMwarevSphere/virtualMachines/osProfile.osType", - "like": "windows*" - } - ] - } - ] - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "[concat(\u0027WindowsPowerShellModules$pid\u0027, uniqueString(policy().assignmentId, policy().definitionReferenceId))]", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus", - "equals": "Compliant" - }, - { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash", - "equals": "[base64(concat(\u0027[PowerShellModules]PowerShellModules1;Modules\u0027, \u0027=\u0027, parameters(\u0027Modules\u0027)))]" - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Azure Monitor solution \u0027Security and Audit\u0027 must be deployed", - "policyType": "BuiltIn", - "mode": "All", - "description": "This policy ensures that Security and Audit is deployed.", - "metadata": { - "version": "1.0.0", - "category": "Monitoring" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Resources/subscriptions" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.OperationsManagement/solutions", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.OperationsManagement/solutions/provisioningState", - "equals": "Succeeded" - }, - { - "field": "name", - "like": "Security(*)" - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1160 - Security Authorization", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Security Assessment and Authorization control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1160" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1545 - Risk Assessment", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Risk Assessment control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1545" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1179 - Baseline Configuration | Reviews And Updates", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Configuration Management control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1179" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Audit API Applications that are not using latest supported PHP Framework", - "policyType": "BuiltIn", - "mode": "All", - "description": "Use the latest supported PHP version for the latest security classes. Using older classes and types can make your application vulnerable.", - "metadata": { - "version": "1.0.0-deprecated", - "category": "Security Center", - "deprecated": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "allof": [ - { - "field": "type", - "equals": "microsoft.Web/sites" - }, - { - "anyof": [ - { - "field": "kind", - "equals": "api" - }, - { - "field": "kind", - "equals": "apiApp" - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Security/complianceResults", - "name": "UseLatestPHP", - "existenceCondition": { - "field": "Microsoft.Security/complianceResults/resourceStatus", - "in": [ - "OffByPolicy", - "Healthy" - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Windows machines should meet requirements for \u0027Security Options - Network Access\u0027", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Windows machines should have the specified Group Policy settings in the category \u0027Security Options - Network Access\u0027 for including access for anonymous users, local accounts, and remote access to the registry. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.", - "metadata": { - "category": "Guest Configuration", - "version": "3.0.0", - "requiredProviders": [ - "Microsoft.GuestConfiguration" - ], - "guestConfiguration": { - "name": "AzureBaseline_SecurityOptionsNetworkAccess", - "version": "1.*", - "configurationParameter": { - "NetworkAccessRemotelyAccessibleRegistryPaths": "Network access: Remotely accessible registry paths;ExpectedValue", - "NetworkAccessRemotelyAccessibleRegistryPathsAndSubpaths": "Network access: Remotely accessible registry paths and sub-paths;ExpectedValue", - "NetworkAccessSharesThatCanBeAccessedAnonymously": "Network access: Shares that can be accessed anonymously;ExpectedValue" - } - } - }, - "parameters": { - "IncludeArcMachines": { - "type": "String", - "metadata": { - "displayName": "Include Arc connected servers", - "description": "By selecting this option, you agree to be charged monthly per Arc connected machine.", - "portalReview": "true" - }, - "allowedValues": [ - "true", - "false" - ], - "defaultValue": "false" - }, - "NetworkAccessRemotelyAccessibleRegistryPaths": { - "type": "String", - "metadata": { - "displayName": "Network access: Remotely accessible registry paths", - "description": "Specifies which registry paths will be accessible over the network, regardless of the users or groups listed in the access control list (ACL) of the \u0060winreg\u0060 registry key." - }, - "defaultValue": "System\\CurrentControlSet\\Control\\ProductOptions|#|System\\CurrentControlSet\\Control\\Server Applications|#|Software\\Microsoft\\Windows NT\\CurrentVersion" - }, - "NetworkAccessRemotelyAccessibleRegistryPathsAndSubpaths": { - "type": "String", - "metadata": { - "displayName": "Network access: Remotely accessible registry paths and sub-paths", - "description": "Specifies which registry paths and sub-paths will be accessible over the network, regardless of the users or groups listed in the access control list (ACL) of the \u0060winreg\u0060 registry key." - }, - "defaultValue": "System\\CurrentControlSet\\Control\\Print\\Printers|#|System\\CurrentControlSet\\Services\\Eventlog|#|Software\\Microsoft\\OLAP Server|#|Software\\Microsoft\\Windows NT\\CurrentVersion\\Print|#|Software\\Microsoft\\Windows NT\\CurrentVersion\\Windows|#|System\\CurrentControlSet\\Control\\ContentIndex|#|System\\CurrentControlSet\\Control\\Terminal Server|#|System\\CurrentControlSet\\Control\\Terminal Server\\UserConfig|#|System\\CurrentControlSet\\Control\\Terminal Server\\DefaultUserConfiguration|#|Software\\Microsoft\\Windows NT\\CurrentVersion\\Perflib|#|System\\CurrentControlSet\\Services\\SysmonLog" - }, - "NetworkAccessSharesThatCanBeAccessedAnonymously": { - "type": "String", - "metadata": { - "displayName": "Network access: Shares that can be accessed anonymously", - "description": "Specifies which network shares can be accessed by anonymous users. The default configuration for this policy setting has little effect because all users have to be authenticated before they can access shared resources on the server." - }, - "defaultValue": "0" - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of this policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "dsvm-win*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "value": "[parameters(\u0027IncludeArcMachines\u0027)]", - "equals": "true" - }, - { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.ConnectedVMwarevSphere/virtualMachines" - }, - { - "field": "Microsoft.ConnectedVMwarevSphere/virtualMachines/osProfile.osType", - "like": "windows*" - } - ] - } - ] - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "AzureBaseline_SecurityOptionsNetworkAccess", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus", - "equals": "Compliant" - }, - { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash", - "equals": "[base64(concat(\u0027Network access: Remotely accessible registry paths;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027NetworkAccessRemotelyAccessibleRegistryPaths\u0027), \u0027,\u0027, \u0027Network access: Remotely accessible registry paths and sub-paths;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027NetworkAccessRemotelyAccessibleRegistryPathsAndSubpaths\u0027), \u0027,\u0027, \u0027Network access: Shares that can be accessed anonymously;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027NetworkAccessSharesThatCanBeAccessedAnonymously\u0027)))]" - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1561 - Allocation Of Resources", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Services Acquisition control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1561" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Secure transfer to storage accounts should be enabled", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Audit requirement of Secure transfer in your storage account. Secure transfer is an option that forces your storage account to accept requests only from secure connections (HTTPS). Use of HTTPS ensures authentication between the server and the service and protects data in transit from network layer attacks such as man-in-the-middle, eavesdropping, and session-hijacking", - "metadata": { - "version": "2.0.0", - "category": "Storage" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "The effect determines what happens when the policy rule is evaluated to match" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Storage/storageAccounts" - }, - { - "anyOf": [ - { - "allOf": [ - { - "value": "[requestContext().apiVersion]", - "less": "2019-04-01" - }, - { - "field": "Microsoft.Storage/storageAccounts/supportsHttpsTrafficOnly", - "exists": "false" - } - ] - }, - { - "field": "Microsoft.Storage/storageAccounts/supportsHttpsTrafficOnly", - "equals": "false" - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1100 - Audit And Accountability Policy And Procedures", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Audit and Accountability control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1100" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1637 - Boundary Protection | Fail Secure", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Communications Protection control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1637" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Windows machines should have Log Analytics agent installed on Azure Arc", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Machines are non-compliant if Log Analytics agent is not installed on Azure Arc enabled windows server.", - "metadata": { - "category": "Guest Configuration", - "version": "2.0.0", - "requiredProviders": [ - "Microsoft.GuestConfiguration" - ], - "guestConfiguration": { - "name": "WindowsLogAnalyticsAgentInstalled", - "version": "1.*" - } - }, - "parameters": { - "IncludeArcMachines": { - "type": "String", - "metadata": { - "displayName": "Include Arc connected servers", - "description": "By selecting this option, you agree to be charged monthly per Arc connected machine.", - "portalReview": "true" - }, - "allowedValues": [ - "true", - "false" - ], - "defaultValue": "false" - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of this policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "value": "[parameters(\u0027IncludeArcMachines\u0027)]", - "equals": "true" - }, - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "WindowsLogAnalyticsAgentInstalled", - "existenceCondition": { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus", - "equals": "Compliant" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Deploy prerequisites to audit Windows VMs configurations in \u0027Administrative Templates - System\u0027", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: \u0027Administrative Templates - System\u0027. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol", - "metadata": { - "version": "1.2.0-deprecated", - "category": "Guest Configuration", - "requiredProviders": [ - "Microsoft.GuestConfiguration" - ], - "deprecated": true - }, - "parameters": { - "AlwaysUseClassicLogon": { - "type": "String", - "metadata": { - "displayName": "Always use classic logon", - "description": "Specifies whether to force the user to log on to the computer using the classic logon screen. This setting only works when the computer is not on a domain." - }, - "defaultValue": "0" - }, - "BootStartDriverInitializationPolicy": { - "type": "String", - "metadata": { - "displayName": "Boot-Start Driver Initialization Policy", - "description": "Specifies which boot-start drivers are initialized based on a classification determined by an Early Launch Antimalware boot-start driver." - }, - "defaultValue": "3" - }, - "EnableWindowsNTPClient": { - "type": "String", - "metadata": { - "displayName": "Enable Windows NTP Client", - "description": "Specifies whether the Windows NTP Client is enabled. Enabling the Windows NTP Client allows your computer to synchronize its computer clock with other NTP servers." - }, - "defaultValue": "1" - }, - "TurnOnConveniencePINSignin": { - "type": "String", - "metadata": { - "displayName": "Turn on convenience PIN sign-in", - "description": "Specifies whether a domain user can sign in using a convenience PIN." - }, - "defaultValue": "0" - } - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "dsvm-windows" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - } - ] - }, - "then": { - "effect": "deployIfNotExists", - "details": { - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "AzureBaseline_AdministrativeTemplatesSystem", - "existenceCondition": { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash", - "equals": "[base64(concat(\u0027Always use classic logon;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027AlwaysUseClassicLogon\u0027), \u0027,\u0027, \u0027Boot-Start Driver Initialization Policy;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027BootStartDriverInitializationPolicy\u0027), \u0027,\u0027, \u0027Enable Windows NTP Client;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027EnableWindowsNTPClient\u0027), \u0027,\u0027, \u0027Turn on convenience PIN sign-in;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027TurnOnConveniencePINSignin\u0027)))]" - }, - "deployment": { - "properties": { - "mode": "incremental", - "parameters": { - "vmName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "type": { - "value": "[field(\u0027type\u0027)]" - }, - "configurationName": { - "value": "AzureBaseline_AdministrativeTemplatesSystem" - }, - "AlwaysUseClassicLogon": { - "value": "[parameters(\u0027AlwaysUseClassicLogon\u0027)]" - }, - "BootStartDriverInitializationPolicy": { - "value": "[parameters(\u0027BootStartDriverInitializationPolicy\u0027)]" - }, - "EnableWindowsNTPClient": { - "value": "[parameters(\u0027EnableWindowsNTPClient\u0027)]" - }, - "TurnOnConveniencePINSignin": { - "value": "[parameters(\u0027TurnOnConveniencePINSignin\u0027)]" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "vmName": { - "type": "string" - }, - "location": { - "type": "string" - }, - "type": { - "type": "string" - }, - "configurationName": { - "type": "string" - }, - "AlwaysUseClassicLogon": { - "type": "string" - }, - "BootStartDriverInitializationPolicy": { - "type": "string" - }, - "EnableWindowsNTPClient": { - "type": "string" - }, - "TurnOnConveniencePINSignin": { - "type": "string" - } - }, - "resources": [ - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027microsoft.hybridcompute/machines\u0027))]", - "apiVersion": "2018-11-20", - "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/Microsoft.GuestConfiguration/\u0027, parameters(\u0027configurationName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "guestConfiguration": { - "name": "[parameters(\u0027configurationName\u0027)]", - "version": "1.*", - "configurationParameter": [ - { - "name": "Always use classic logon;ExpectedValue", - "value": "[parameters(\u0027AlwaysUseClassicLogon\u0027)]" - }, - { - "name": "Boot-Start Driver Initialization Policy;ExpectedValue", - "value": "[parameters(\u0027BootStartDriverInitializationPolicy\u0027)]" - }, - { - "name": "Enable Windows NTP Client;ExpectedValue", - "value": "[parameters(\u0027EnableWindowsNTPClient\u0027)]" - }, - { - "name": "Turn on convenience PIN sign-in;ExpectedValue", - "value": "[parameters(\u0027TurnOnConveniencePINSignin\u0027)]" - } - ] - } - } - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2018-11-20", - "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/Microsoft.GuestConfiguration/\u0027, parameters(\u0027configurationName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "guestConfiguration": { - "name": "[parameters(\u0027configurationName\u0027)]", - "version": "1.*", - "configurationParameter": [ - { - "name": "Always use classic logon;ExpectedValue", - "value": "[parameters(\u0027AlwaysUseClassicLogon\u0027)]" - }, - { - "name": "Boot-Start Driver Initialization Policy;ExpectedValue", - "value": "[parameters(\u0027BootStartDriverInitializationPolicy\u0027)]" - }, - { - "name": "Enable Windows NTP Client;ExpectedValue", - "value": "[parameters(\u0027EnableWindowsNTPClient\u0027)]" - }, - { - "name": "Turn on convenience PIN sign-in;ExpectedValue", - "value": "[parameters(\u0027TurnOnConveniencePINSignin\u0027)]" - } - ] - } - } - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2019-07-01", - "type": "Microsoft.Compute/virtualMachines", - "identity": { - "type": "SystemAssigned" - }, - "name": "[parameters(\u0027vmName\u0027)]", - "location": "[parameters(\u0027location\u0027)]" - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2019-07-01", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/AzurePolicyforWindows\u0027)]", - "type": "Microsoft.Compute/virtualMachines/extensions", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "publisher": "Microsoft.GuestConfiguration", - "type": "ConfigurationforWindows", - "typeHandlerVersion": "1.1", - "autoUpgradeMinorVersion": true, - "settings": {}, - "protectedSettings": {} - }, - "dependsOn": [ - "[concat(\u0027Microsoft.Compute/virtualMachines/\u0027,parameters(\u0027vmName\u0027),\u0027/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/\u0027,parameters(\u0027configurationName\u0027))]" - ] - } - ] - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1202 - Access Restrictions For Change", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Configuration Management control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1202" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Azure Machine Learning workspaces should use private link", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination. The Private Link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to Azure Machine Learning workspaces, data leakage risks are reduced. Learn more about private links at: https://docs.microsoft.com/azure/machine-learning/how-to-configure-private-link.", - "metadata": { - "version": "1.1.0", - "category": "Machine Learning" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.MachineLearningServices/workspaces" - }, - { - "count": { - "field": "Microsoft.MachineLearningServices/workspaces/privateEndpointConnections[*]", - "where": { - "field": "Microsoft.MachineLearningServices/workspaces/privateEndpointConnections[*].privateLinkServiceConnectionState.status", - "equals": "Approved" - } - }, - "less": 1 - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Inherit a tag from the subscription if missing", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Adds the specified tag with its value from the containing subscription when any resource missing this tag is created or updated. Existing resources can be remediated by triggering a remediation task. If the tag exists with a different value it will not be changed.", - "metadata": { - "category": "Tags", - "version": "1.0.0" - }, - "parameters": { - "tagName": { - "type": "String", - "metadata": { - "displayName": "Tag Name", - "description": "Name of the tag, such as \u0027environment\u0027" - } - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "[concat(\u0027tags[\u0027, parameters(\u0027tagName\u0027), \u0027]\u0027)]", - "exists": "false" - }, - { - "value": "[subscription().tags[parameters(\u0027tagName\u0027)]]", - "notEquals": "" - } - ] - }, - "then": { - "effect": "modify", - "details": { - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "operations": [ - { - "operation": "add", - "field": "[concat(\u0027tags[\u0027, parameters(\u0027tagName\u0027), \u0027]\u0027)]", - "value": "[subscription().tags[parameters(\u0027tagName\u0027)]]" - } - ] - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1438 - Media Sanitization", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Media Protection control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1438" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1365 - Incident Handling | Continuity Of Operations", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Incident Response control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1365" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1022 - Account Management | Shared / Group Account Credential Termination", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Access Control control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1022" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1464 - Monitoring Physical Access | Intrusion Alarms / Surveillance Equipment", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Physical and Environmental Protection control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1464" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Azure Monitor should collect activity logs from all regions", - "policyType": "BuiltIn", - "mode": "All", - "description": "This policy audits the Azure Monitor log profile which does not export activities from all Azure supported regions including global.", - "metadata": { - "version": "2.0.0", - "category": "Monitoring" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Resources/subscriptions" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Insights/logProfiles", - "existenceCondition": { - "allOf": [ - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "australiacentral" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "australiacentral2" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "australiaeast" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "australiasoutheast" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "brazilsouth" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "brazilsoutheast" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "canadacentral" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "canadaeast" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "centralindia" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "centralus" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "eastasia" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "eastus" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "eastus2" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "francecentral" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "francesouth" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "germanynorth" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "germanywestcentral" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "japaneast" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "japanwest" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "jioindiawest" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "koreacentral" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "koreasouth" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "northcentralus" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "northeurope" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "norwayeast" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "norwaywest" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "southafricanorth" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "southafricawest" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "southcentralus" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "southeastasia" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "southindia" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "switzerlandnorth" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "switzerlandwest" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "uaecentral" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "uaenorth" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "uksouth" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "ukwest" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "westcentralus" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "westeurope" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "westindia" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "westus" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "westus2" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "westus3" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "global" - } - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Temp disks and cache for agent node pools in Azure Kubernetes Service clusters should be encrypted at host", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "To enhance data security, the data stored on the virtual machine (VM) host of your Azure Kubernetes Service nodes VMs should be encrypted at rest. This is a common requirement in many regulatory and industry compliance standards.", - "metadata": { - "version": "1.0.0", - "category": "Kubernetes" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "\u0027Audit\u0027 allows a non-compliant resource to be created or updated, but flags it as non-compliant. \u0027Deny\u0027 blocks the non-compliant resource creation or update. \u0027Disabled\u0027 turns off the policy." - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.ContainerService/managedClusters" - }, - { - "count": { - "field": "Microsoft.ContainerService/managedClusters/agentPoolProfiles[*]", - "where": { - "anyOf": [ - { - "field": "Microsoft.ContainerService/managedClusters/agentPoolProfiles[*].enableEncryptionAtHost", - "exists": "False" - }, - { - "field": "Microsoft.ContainerService/managedClusters/agentPoolProfiles[*].enableEncryptionAtHost", - "equals": "" - }, - { - "field": "Microsoft.ContainerService/managedClusters/agentPoolProfiles[*].enableEncryptionAtHost", - "equals": "false" - } - ] - } - }, - "greater": 0 - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1263 - Contingency Plan Testing", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Contingency Planning control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1263" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1096 - Role-Based Security Training | Practical Exercises", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Awareness and Training control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1096" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Audit Windows VMs with a pending reboot", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if the machine is pending reboot for any of the following reasons: component based servicing, Windows Update, pending file rename, pending computer rename, configuration manager pending reboot. Each detection has a unique registry path.", - "metadata": { - "category": "Guest Configuration", - "version": "2.0.0", - "requiredProviders": [ - "Microsoft.GuestConfiguration" - ], - "guestConfiguration": { - "name": "WindowsPendingReboot", - "version": "1.*" - } - }, - "parameters": { - "IncludeArcMachines": { - "type": "String", - "metadata": { - "displayName": "Include Arc connected servers", - "description": "By selecting this option, you agree to be charged monthly per Arc connected machine.", - "portalReview": "true" - }, - "allowedValues": [ - "true", - "false" - ], - "defaultValue": "false" - } - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "dsvm-win*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "value": "[parameters(\u0027IncludeArcMachines\u0027)]", - "equals": "true" - }, - { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.ConnectedVMwarevSphere/virtualMachines" - }, - { - "field": "Microsoft.ConnectedVMwarevSphere/virtualMachines/osProfile.osType", - "like": "windows*" - } - ] - } - ] - } - ] - } - ] - }, - "then": { - "effect": "auditIfNotExists", - "details": { - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "WindowsPendingReboot", - "existenceCondition": { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus", - "equals": "Compliant" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1260 - Contingency Training | Simulated Events", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Contingency Planning control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1260" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Web Application Firewall (WAF) should use the specified mode for Azure Front Door Service", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Mandates the use of \u0027Detection\u0027 or \u0027Prevention\u0027 mode to be active on all Web Application Firewall policies for Azure Front Door Service.", - "metadata": { - "version": "1.0.0", - "category": "Network" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - }, - "modeRequirement": { - "type": "String", - "metadata": { - "displayName": "Mode Requirement", - "description": "Mode required for all WAF policies" - }, - "allowedValues": [ - "Prevention", - "Detection" - ], - "defaultValue": "Detection" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Network/frontdoorwebapplicationfirewallpolicies" - }, - { - "field": "Microsoft.Network/frontdoorWebApplicationFirewallPolicies/policySettings.mode", - "notEquals": "[parameters(\u0027modeRequirement\u0027)]" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1694 - Information System Monitoring | Analyze Communications Traffic Anomalies", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Information Integrity control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1694" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Resource logs in Batch accounts should be enabled", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Audit enabling of resource logs. This enables you to recreate activity trails to use for investigation purposes; when a security incident occurs or when your network is compromised", - "metadata": { - "version": "5.0.0", - "category": "Batch" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - }, - "requiredRetentionDays": { - "type": "String", - "metadata": { - "displayName": "Required retention (days)", - "description": "The required resource logs retention in days" - }, - "defaultValue": "365" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Batch/batchAccounts" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Insights/diagnosticSettings", - "existenceCondition": { - "count": { - "field": "Microsoft.Insights/diagnosticSettings/logs[*]", - "where": { - "anyOf": [ - { - "allOf": [ - { - "field": "Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.enabled", - "equals": "true" - }, - { - "anyOf": [ - { - "field": "Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.days", - "equals": "0" - }, - { - "value": "[padLeft(current(\u0027Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.days\u0027), 3, \u00270\u0027)]", - "greaterOrEquals": "[padLeft(parameters(\u0027requiredRetentionDays\u0027), 3, \u00270\u0027)]" - } - ] - }, - { - "field": "Microsoft.Insights/diagnosticSettings/logs.enabled", - "equals": "true" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Insights/diagnosticSettings/logs.enabled", - "equals": "true" - }, - { - "anyOf": [ - { - "field": "Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.enabled", - "notEquals": "true" - }, - { - "field": "Microsoft.Insights/diagnosticSettings/storageAccountId", - "exists": false - } - ] - } - ] - } - ] - } - }, - "greaterOrEquals": 1 - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Deploy prerequisites to audit Windows VMs configurations in \u0027System Audit Policies - Detailed Tracking\u0027", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: \u0027System Audit Policies - Detailed Tracking\u0027. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol", - "metadata": { - "version": "1.2.0-deprecated", - "category": "Guest Configuration", - "requiredProviders": [ - "Microsoft.GuestConfiguration" - ], - "deprecated": true - }, - "parameters": { - "AuditProcessTermination": { - "type": "String", - "metadata": { - "displayName": "Audit Process Termination", - "description": "Specifies whether audit events are generated when a process has exited. Recommended for monitoring termination of critical processes." - }, - "allowedValues": [ - "No Auditing", - "Success", - "Failure", - "Success and Failure" - ], - "defaultValue": "No Auditing" - } - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "dsvm-windows" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - } - ] - }, - "then": { - "effect": "deployIfNotExists", - "details": { - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "AzureBaseline_SystemAuditPoliciesDetailedTracking", - "existenceCondition": { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash", - "equals": "[base64(concat(\u0027Audit Process Termination;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027AuditProcessTermination\u0027)))]" - }, - "deployment": { - "properties": { - "mode": "incremental", - "parameters": { - "vmName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "type": { - "value": "[field(\u0027type\u0027)]" - }, - "configurationName": { - "value": "AzureBaseline_SystemAuditPoliciesDetailedTracking" - }, - "AuditProcessTermination": { - "value": "[parameters(\u0027AuditProcessTermination\u0027)]" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "vmName": { - "type": "string" - }, - "location": { - "type": "string" - }, - "type": { - "type": "string" - }, - "configurationName": { - "type": "string" - }, - "AuditProcessTermination": { - "type": "string" - } - }, - "resources": [ - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027microsoft.hybridcompute/machines\u0027))]", - "apiVersion": "2018-11-20", - "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/Microsoft.GuestConfiguration/\u0027, parameters(\u0027configurationName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "guestConfiguration": { - "name": "[parameters(\u0027configurationName\u0027)]", - "version": "1.*", - "configurationParameter": [ - { - "name": "Audit Process Termination;ExpectedValue", - "value": "[parameters(\u0027AuditProcessTermination\u0027)]" - } - ] - } - } - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2018-11-20", - "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/Microsoft.GuestConfiguration/\u0027, parameters(\u0027configurationName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "guestConfiguration": { - "name": "[parameters(\u0027configurationName\u0027)]", - "version": "1.*", - "configurationParameter": [ - { - "name": "Audit Process Termination;ExpectedValue", - "value": "[parameters(\u0027AuditProcessTermination\u0027)]" - } - ] - } - } - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2019-07-01", - "type": "Microsoft.Compute/virtualMachines", - "identity": { - "type": "SystemAssigned" - }, - "name": "[parameters(\u0027vmName\u0027)]", - "location": "[parameters(\u0027location\u0027)]" - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2019-07-01", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/AzurePolicyforWindows\u0027)]", - "type": "Microsoft.Compute/virtualMachines/extensions", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "publisher": "Microsoft.GuestConfiguration", - "type": "ConfigurationforWindows", - "typeHandlerVersion": "1.1", - "autoUpgradeMinorVersion": true, - "settings": {}, - "protectedSettings": {} - }, - "dependsOn": [ - "[concat(\u0027Microsoft.Compute/virtualMachines/\u0027,parameters(\u0027vmName\u0027),\u0027/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/\u0027,parameters(\u0027configurationName\u0027))]" - ] - } - ] - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1174 - Configuration Management Policy And Procedures", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Configuration Management control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1174" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1137 - Audit Generation", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Audit and Accountability control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1137" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1367 - Incident Handling | Insider Threats - Specific Capabilities", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Incident Response control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1367" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1552 - Vulnerability Scanning | Update By Frequency / Prior To New Scan / When Identified", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Risk Assessment control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1552" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Configure Azure Monitor Private Link Scope to use private DNS zones", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Use private DNS zones to override the DNS resolution for a private endpoint. A private DNS zone links to your virtual network to resolve to Azure Monitor private link scope. Learn more at: https://docs.microsoft.com/azure/azure-monitor/logs/private-link-security#connect-to-a-private-endpoint.", - "metadata": { - "version": "1.0.0", - "category": "Monitoring" - }, - "parameters": { - "privateDnsZoneId1": { - "type": "String", - "metadata": { - "displayName": "Private DNS Zone for global endpoints used by Azure Monitor", - "description": "One of the five private DNS zone IDs required for Microsoft.Insights/privateLinkScopes to resolve a private DNS Zone to your Azure Monitor Private Link scope.", - "strongType": "Microsoft.Network/privateDnsZones", - "assignPermissions": true - } - }, - "privateDnsZoneId2": { - "type": "String", - "metadata": { - "displayName": "Private DNS Zone for workspace-specific mapping to OMS agents endpoints", - "description": "One of the five private DNS zone IDs required for Microsoft.Insights/privateLinkScopes to resolve a private DNS Zone to your Azure Monitor Private Link scope.", - "strongType": "Microsoft.Network/privateDnsZones", - "assignPermissions": true - } - }, - "privateDnsZoneId3": { - "type": "String", - "metadata": { - "displayName": "Private DNS Zone for workspace-specific mapping to ingestion endpoints", - "description": "One of the five private DNS zone IDs required for Microsoft.Insights/privateLinkScopes to resolve a private DNS Zone to your Azure Monitor Private Link scope.", - "strongType": "Microsoft.Network/privateDnsZones", - "assignPermissions": true - } - }, - "privateDnsZoneId4": { - "type": "String", - "metadata": { - "displayName": "Private DNS Zone for workspace-specific mapping to the agent service automation endpoints", - "description": "One of the five private DNS zone IDs required for Microsoft.Insights/privateLinkScopes to resolve a private DNS Zone.", - "strongType": "Microsoft.Network/privateDnsZones", - "assignPermissions": true - } - }, - "privateDnsZoneId5": { - "type": "String", - "metadata": { - "displayName": "Private DNS Zone for connectivity to the global agent\u0027s solution packs storage account", - "description": "One of the five private DNS zone IDs required for Microsoft.Insights/privateLinkScopes to resolve a private DNS Zone.", - "strongType": "Microsoft.Network/privateDnsZones", - "assignPermissions": true - } - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Network/privateEndpoints" - }, - { - "count": { - "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*]", - "where": { - "allOf": [ - { - "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*].privateLinkServiceId", - "contains": "Microsoft.Insights/privateLinkScopes" - }, - { - "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*].groupIds[*]", - "equals": "azuremonitor" - } - ] - } - }, - "greaterOrEquals": 1 - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups", - "roleDefinitionIds": [ - "/providers/Microsoft.Authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "deployment": { - "properties": { - "mode": "incremental", - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "privateDnsZoneId1": { - "type": "string" - }, - "privateDnsZoneId2": { - "type": "string" - }, - "privateDnsZoneId3": { - "type": "string" - }, - "privateDnsZoneId4": { - "type": "string" - }, - "privateDnsZoneId5": { - "type": "string" - }, - "privateEndpointName": { - "type": "string" - }, - "location": { - "type": "string" - } - }, - "resources": [ - { - "name": "[concat(parameters(\u0027privateEndpointName\u0027), \u0027/deployedByPolicy\u0027)]", - "type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups", - "apiVersion": "2020-03-01", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "privateDnsZoneConfigs": [ - { - "name": "privateDnsZone1", - "properties": { - "privateDnsZoneId": "[parameters(\u0027privateDnsZoneId1\u0027)]" - } - }, - { - "name": "privateDnsZone2", - "properties": { - "privateDnsZoneId": "[parameters(\u0027privateDnsZoneId2\u0027)]" - } - }, - { - "name": "privateDnsZone3", - "properties": { - "privateDnsZoneId": "[parameters(\u0027privateDnsZoneId3\u0027)]" - } - }, - { - "name": "privateDnsZone4", - "properties": { - "privateDnsZoneId": "[parameters(\u0027privateDnsZoneId4\u0027)]" - } - }, - { - "name": "privateDnsZone5", - "properties": { - "privateDnsZoneId": "[parameters(\u0027privateDnsZoneId5\u0027)]" - } - } - ] - } - } - ] - }, - "parameters": { - "privateDnsZoneId1": { - "value": "[parameters(\u0027privateDnsZoneId1\u0027)]" - }, - "privateDnsZoneId2": { - "value": "[parameters(\u0027privateDnsZoneId2\u0027)]" - }, - "privateDnsZoneId3": { - "value": "[parameters(\u0027privateDnsZoneId3\u0027)]" - }, - "privateDnsZoneId4": { - "value": "[parameters(\u0027privateDnsZoneId4\u0027)]" - }, - "privateDnsZoneId5": { - "value": "[parameters(\u0027privateDnsZoneId5\u0027)]" - }, - "privateEndpointName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - } - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Deploy prerequisites to audit Windows VMs configurations in \u0027Security Options - System settings\u0027", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: \u0027Security Options - System settings\u0027. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol", - "metadata": { - "version": "1.2.0-deprecated", - "category": "Guest Configuration", - "requiredProviders": [ - "Microsoft.GuestConfiguration" - ], - "deprecated": true - }, - "parameters": { - "SystemSettingsUseCertificateRulesOnWindowsExecutablesForSoftwareRestrictionPolicies": { - "type": "String", - "metadata": { - "displayName": "System settings: Use Certificate Rules on Windows Executables for Software Restriction Policies", - "description": "Specifies whether digital certificates are processed when software restriction policies are enabled and a user or process attempts to run software with an .exe file name extension. It enables or disables certificate rules (a type of software restriction policies rule). For certificate rules to take effect in software restriction policies, you must enable this policy setting." - }, - "defaultValue": "1" - } - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "dsvm-windows" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - } - ] - }, - "then": { - "effect": "deployIfNotExists", - "details": { - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "AzureBaseline_SecurityOptionsSystemsettings", - "existenceCondition": { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash", - "equals": "[base64(concat(\u0027System settings: Use Certificate Rules on Windows Executables for Software Restriction Policies;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027SystemSettingsUseCertificateRulesOnWindowsExecutablesForSoftwareRestrictionPolicies\u0027)))]" - }, - "deployment": { - "properties": { - "mode": "incremental", - "parameters": { - "vmName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "type": { - "value": "[field(\u0027type\u0027)]" - }, - "configurationName": { - "value": "AzureBaseline_SecurityOptionsSystemsettings" - }, - "SystemSettingsUseCertificateRulesOnWindowsExecutablesForSoftwareRestrictionPolicies": { - "value": "[parameters(\u0027SystemSettingsUseCertificateRulesOnWindowsExecutablesForSoftwareRestrictionPolicies\u0027)]" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "vmName": { - "type": "string" - }, - "location": { - "type": "string" - }, - "type": { - "type": "string" - }, - "configurationName": { - "type": "string" - }, - "SystemSettingsUseCertificateRulesOnWindowsExecutablesForSoftwareRestrictionPolicies": { - "type": "string" - } - }, - "resources": [ - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027microsoft.hybridcompute/machines\u0027))]", - "apiVersion": "2018-11-20", - "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/Microsoft.GuestConfiguration/\u0027, parameters(\u0027configurationName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "guestConfiguration": { - "name": "[parameters(\u0027configurationName\u0027)]", - "version": "1.*", - "configurationParameter": [ - { - "name": "System settings: Use Certificate Rules on Windows Executables for Software Restriction Policies;ExpectedValue", - "value": "[parameters(\u0027SystemSettingsUseCertificateRulesOnWindowsExecutablesForSoftwareRestrictionPolicies\u0027)]" - } - ] - } - } - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2018-11-20", - "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/Microsoft.GuestConfiguration/\u0027, parameters(\u0027configurationName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "guestConfiguration": { - "name": "[parameters(\u0027configurationName\u0027)]", - "version": "1.*", - "configurationParameter": [ - { - "name": "System settings: Use Certificate Rules on Windows Executables for Software Restriction Policies;ExpectedValue", - "value": "[parameters(\u0027SystemSettingsUseCertificateRulesOnWindowsExecutablesForSoftwareRestrictionPolicies\u0027)]" - } - ] - } - } - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2019-07-01", - "type": "Microsoft.Compute/virtualMachines", - "identity": { - "type": "SystemAssigned" - }, - "name": "[parameters(\u0027vmName\u0027)]", - "location": "[parameters(\u0027location\u0027)]" - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2019-07-01", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/AzurePolicyforWindows\u0027)]", - "type": "Microsoft.Compute/virtualMachines/extensions", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "publisher": "Microsoft.GuestConfiguration", - "type": "ConfigurationforWindows", - "typeHandlerVersion": "1.1", - "autoUpgradeMinorVersion": true, - "settings": {}, - "protectedSettings": {} - }, - "dependsOn": [ - "[concat(\u0027Microsoft.Compute/virtualMachines/\u0027,parameters(\u0027vmName\u0027),\u0027/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/\u0027,parameters(\u0027configurationName\u0027))]" - ] - } - ] - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Azure Machine Learning workspaces should disable public network access", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Disabling public network access improves security by ensuring that the machine learning workspaces aren\u0027t exposed on the public internet. You can limit exposure of your workspaces by creating private endpoints instead. Learn more at: https://aka.ms/privateendpoints.", - "metadata": { - "version": "1.2.0", - "category": "Machine Learning" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.MachineLearningServices/workspaces" - }, - { - "field": "Microsoft.MachineLearningServices/workspaces/publicNetworkAccess", - "exists": "true" - }, - { - "field": "Microsoft.MachineLearningServices/workspaces/publicNetworkAccess", - "notEquals": "Disabled" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Windows machines should meet requirements for \u0027System Audit Policies - Account Logon\u0027", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Windows machines should have the specified Group Policy settings in the category \u0027System Audit Policies - Account Logon\u0027 for auditing credential validation and other account logon events. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.", - "metadata": { - "category": "Guest Configuration", - "version": "3.0.0", - "requiredProviders": [ - "Microsoft.GuestConfiguration" - ], - "guestConfiguration": { - "name": "AzureBaseline_SystemAuditPoliciesAccountLogon", - "version": "1.*", - "configurationParameter": { - "AuditCredentialValidation": "Audit Credential Validation;ExpectedValue" - } - } - }, - "parameters": { - "IncludeArcMachines": { - "type": "String", - "metadata": { - "displayName": "Include Arc connected servers", - "description": "By selecting this option, you agree to be charged monthly per Arc connected machine.", - "portalReview": "true" - }, - "allowedValues": [ - "true", - "false" - ], - "defaultValue": "false" - }, - "AuditCredentialValidation": { - "type": "String", - "metadata": { - "displayName": "Audit Credential Validation", - "description": "Specifies whether audit events are generated when credentials are submitted for a user account logon request. This setting is especially useful for monitoring unsuccessful attempts, to find brute-force attacks, account enumeration, and potential account compromise events on domain controllers." - }, - "allowedValues": [ - "No Auditing", - "Success", - "Failure", - "Success and Failure" - ], - "defaultValue": "Success and Failure" - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of this policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "dsvm-win*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "value": "[parameters(\u0027IncludeArcMachines\u0027)]", - "equals": "true" - }, - { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.ConnectedVMwarevSphere/virtualMachines" - }, - { - "field": "Microsoft.ConnectedVMwarevSphere/virtualMachines/osProfile.osType", - "like": "windows*" - } - ] - } - ] - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "AzureBaseline_SystemAuditPoliciesAccountLogon", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus", - "equals": "Compliant" - }, - { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash", - "equals": "[base64(concat(\u0027Audit Credential Validation;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027AuditCredentialValidation\u0027)))]" - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1544 - Risk Assessment", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Risk Assessment control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1544" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Configure Azure HDInsight clusters to use private DNS zones", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Use private DNS zones to override the DNS resolution for a private endpoint. A private DNS zone links to your virtual network to resolve to Azure HDInsight clusters. Learn more at: https://aka.ms/hdi.pl.", - "metadata": { - "version": "1.0.0", - "category": "HDInsight" - }, - "parameters": { - "privateDnsZoneId": { - "type": "String", - "metadata": { - "displayName": "Private DNS Zone ID for Azure HDInsight clusters", - "description": "The private DNS zone name required for Azure HDInsight clusters to resolve a private DNS Zone.", - "strongType": "Microsoft.Network/privateDnsZones", - "assignPermissions": true - } - }, - "groupId": { - "type": "String", - "metadata": { - "displayName": "Group ID", - "description": "Target group id (sub resource type) for the private endpoint." - } - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Network/privateEndpoints" - }, - { - "count": { - "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*]", - "where": { - "allOf": [ - { - "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*].privateLinkServiceId", - "contains": "Microsoft.HDInsight/clusters" - }, - { - "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*].groupIds[*]", - "equals": "[parameters(\u0027groupId\u0027)]" - } - ] - } - }, - "greaterOrEquals": 1 - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups", - "roleDefinitionIds": [ - "/providers/Microsoft.Authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "deployment": { - "properties": { - "mode": "incremental", - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "privateDnsZoneId": { - "type": "string" - }, - "privateEndpointName": { - "type": "string" - }, - "location": { - "type": "string" - } - }, - "resources": [ - { - "name": "[concat(parameters(\u0027privateEndpointName\u0027), \u0027/deployedByPolicy\u0027)]", - "type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups", - "apiVersion": "2020-03-01", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "privateDnsZoneConfigs": [ - { - "name": "hdinsightCluster-privateDnsZone", - "properties": { - "privateDnsZoneId": "[parameters(\u0027privateDnsZoneId\u0027)]" - } - } - ] - } - } - ] - }, - "parameters": { - "privateDnsZoneId": { - "value": "[parameters(\u0027privateDnsZoneId\u0027)]" - }, - "privateEndpointName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - } - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1398 - Controlled Maintenance", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Maintenance control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1398" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Configure Azure Defender for open-source relational databases to be enabled", - "policyType": "BuiltIn", - "mode": "All", - "description": "Azure Defender for open-source relational databases detects anomalous activities indicating unusual and potentially harmful attempts to access or exploit databases. Learn more about the capabilities of Azure Defender for open-source relational databases at https://aka.ms/AzDforOpenSourceDBsDocu. Important: Enabling this plan will result in charges for protecting your open-source relational databases. Learn about the pricing on Security Center\u0027s pricing page: https://aka.ms/pricing-security-center", - "metadata": { - "version": "1.0.0", - "category": "Security Center" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Resources/subscriptions" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Security/pricings", - "name": "OpenSourceRelationalDatabases", - "deploymentScope": "subscription", - "existenceScope": "subscription", - "roleDefinitionIds": [ - "/providers/Microsoft.Authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "existenceCondition": { - "field": "Microsoft.Security/pricings/pricingTier", - "equals": "Standard" - }, - "deployment": { - "location": "westeurope", - "properties": { - "mode": "incremental", - "parameters": {}, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": {}, - "variables": {}, - "resources": [ - { - "type": "Microsoft.Security/pricings", - "apiVersion": "2018-06-01", - "name": "OpenSourceRelationalDatabases", - "properties": { - "pricingTier": "Standard" - } - } - ], - "outputs": {} - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Monitor permissive network access in Azure Security Center", - "policyType": "BuiltIn", - "mode": "All", - "description": "Network Security Groups with too permissive rules will be monitored by Azure Security Center as recommendations", - "metadata": { - "version": "1.0.0-deprecated", - "category": "Security Center", - "deprecated": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "in": [ - "Microsoft.Compute/virtualMachines", - "Microsoft.ClassicCompute/virtualMachines" - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Security/complianceResults", - "name": "permissiveNetworkAccess", - "existenceCondition": { - "field": "Microsoft.Security/complianceResults/resourceStatus", - "in": [ - "OffByPolicy", - "Healthy" - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1066 - Remote Access | Disconnect / Disable Access", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Access Control control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1066" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1720 - Spam Protection", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Information Integrity control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1720" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1334 - Authenticator Management | Pki-Based Authentication", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Identification and Authentication control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1334" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1604 - Developer Security Testing And Evaluation", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Services Acquisition control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1604" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1712 - Software, Firmware, And Information Integrity", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Information Integrity control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1712" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1310 - Device Identification And Authentication", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Identification and Authentication control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1310" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1559 - System And Services Acquisition Policy And Procedures", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Services Acquisition control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1559" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1578 - Acquisition Process | Functions / Ports / Protocols / Services In Use", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Services Acquisition control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1578" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1565 - System Development Life Cycle", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Services Acquisition control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1565" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1337 - Authenticator Management | In-Person Or Trusted Third-Party Registration", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Identification and Authentication control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1337" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Azure SignalR Service should use a Private Link enabled SKU", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination which protect your resources against public data leakage risks. The policy limits you to Private Link enabled SKUs for Azure SignalR Service. Learn more about private link at: https://aka.ms/asrs/privatelink.", - "metadata": { - "version": "1.0.0", - "category": "SignalR" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.SignalRService/SignalR" - }, - { - "field": "Microsoft.SignalRService/SignalR/sku.tier", - "equals": "Free" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Require SQL Server version 12.0", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "This policy ensures all SQL servers use version 12.0. This policy is deprecated because it is no longer possible to create an Azure SQL server with any version other than 12.0.", - "metadata": { - "version": "1.0.0-deprecated", - "category": "SQL", - "deprecated": true - }, - "parameters": {}, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Sql/servers" - }, - { - "not": { - "field": "Microsoft.Sql/servers/version", - "equals": "12.0" - } - } - ] - }, - "then": { - "effect": "Deny" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1346 - Identification And Authentication (Non-Organizational Users)", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Identification and Authentication control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1346" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Audit Web Applications that are not using latest supported Python Framework", - "policyType": "BuiltIn", - "mode": "All", - "description": "Use the latest supported Python version for the latest security classes. Using older classes and types can make your application vulnerable.", - "metadata": { - "version": "1.0.0-deprecated", - "category": "Security Center", - "deprecated": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "allof": [ - { - "field": "type", - "equals": "microsoft.Web/sites" - }, - { - "anyof": [ - { - "field": "kind", - "equals": "app" - }, - { - "field": "kind", - "equals": "WebApp" - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Security/complianceResults", - "name": "UseLatestPython", - "existenceCondition": { - "field": "Microsoft.Security/complianceResults/resourceStatus", - "in": [ - "OffByPolicy", - "Healthy" - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Require automatic OS image patching on Virtual Machine Scale Sets", - "policyType": "BuiltIn", - "mode": "All", - "description": "This policy enforces enabling automatic OS image patching on Virtual Machine Scale Sets to always keep Virtual Machines secure by safely applying latest security patches every month.", - "metadata": { - "version": "1.0.0", - "category": "Compute" - }, - "parameters": {}, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachineScaleSets" - }, - { - "field": "Microsoft.Compute/VirtualMachineScaleSets/upgradePolicy.automaticOSUpgradePolicy.enableAutomaticOSUpgrade", - "notEquals": "True" - }, - { - "field": "Microsoft.Compute/VirtualMachineScaleSets/upgradePolicy.automaticOSUpgrade", - "notEquals": "True" - } - ] - }, - "then": { - "effect": "deny" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1368 - Incident Handling | Correlation With External Organizations", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Incident Response control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1368" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Cognitive Services accounts should use customer owned storage", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Use customer owned storage to control the data stored at rest in Cognitive Services. To learn more about customer owned storage, visit https://aka.ms/cogsvc-cmk.", - "metadata": { - "version": "2.0.0", - "category": "Cognitive Services" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "The effect determines what happens when the policy rule is evaluated to match" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.CognitiveServices/accounts" - }, - { - "count": { - "field": "Microsoft.CognitiveServices/accounts/userOwnedStorage[*]" - }, - "less": 1 - }, - { - "count": { - "field": "Microsoft.CognitiveServices/accounts/capabilities[*]", - "where": { - "field": "Microsoft.CognitiveServices/accounts/capabilities[*].name", - "equals": "CustomerManagedStorage" - } - }, - "greater": 0 - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - } - ], - "nextLink": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/policyDefinitions?api-version=2021-06-01\u0026$skiptoken=eyJuZXh0UG9saWN5U3RvcmUiOiJDb250cm9sUGxhbmVCdWlsdEluRGVmaW5pdGlvbiIsImNhY2hlU2tpcFRva2VuIjp7Im5leHRJbmRleCI6NTAwLCJuZXh0UG9saWN5TmFtZSI6IjQ3MDMxMjA2LWNlOTYtNDFmOC04NjFiLTZhOTE1ZjNkZTI4NCIsImNhY2hlTGVuZ3RoIjoxNzc2fX0%3D" - } - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.Authorization/policyDefinitions?api-version=2021-06-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armpolicy/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 11 Mar 2022 06:27:59 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-tenant-reads": "11999", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220311T062800Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "properties": { - "displayName": "Microsoft Managed Control 1599 - Developer Configuration Management | Software / Firmware Integrity Verification", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Services Acquisition control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1599" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Audit virtual machines without disaster recovery configured", - "policyType": "BuiltIn", - "mode": "All", - "description": "Audit virtual machines which do not have disaster recovery configured. To learn more about disaster recovery, visit https://aka.ms/asr-doc.", - "metadata": { - "version": "1.0.0", - "category": "Compute" - }, - "parameters": {}, - "policyRule": { - "if": { - "field": "type", - "in": [ - "Microsoft.Compute/virtualMachines", - "Microsoft.ClassicCompute/virtualMachines" - ] - }, - "then": { - "effect": "auditIfNotExists", - "details": { - "type": "Microsoft.Resources/links", - "existenceCondition": { - "field": "name", - "like": "ASR-Protect-*" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Audit Web Sockets state for a Function App", - "policyType": "BuiltIn", - "mode": "All", - "description": "The Web Sockets protocol is vulnerable to different types of security threats. Use of Web Sockets within an Function app must be carefully reviewed.", - "metadata": { - "version": "1.0.0-deprecated", - "category": "Security Center", - "deprecated": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "allof": [ - { - "field": "type", - "equals": "microsoft.Web/sites" - }, - { - "anyof": [ - { - "field": "kind", - "equals": "functionapp" - }, - { - "field": "kind", - "equals": "functionapp,linux" - }, - { - "field": "kind", - "equals": "functionapp,linux,container" - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Security/complianceResults", - "name": "DisableWebSockets", - "existenceCondition": { - "field": "Microsoft.Security/complianceResults/resourceStatus", - "in": [ - "OffByPolicy", - "Healthy" - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1375 - Incident Response Assistance | Automation Support For Availability Of Information / Support", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Incident Response control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1375" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Vulnerability assessment should be enabled on your Synapse workspaces", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Discover, track, and remediate potential vulnerabilities by configuring recurring SQL vulnerability assessment scans on your Synapse workspaces.", - "metadata": { - "version": "1.0.0", - "category": "Synapse" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Synapse/workspaces" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Synapse/workspaces/vulnerabilityAssessments", - "name": "default", - "existenceCondition": { - "field": "Microsoft.Synapse/workspaces/vulnerabilityAssessments/recurringScans.isEnabled", - "equals": "True" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1605 - Developer Security Testing And Evaluation | Static Code Analysis", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Services Acquisition control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1605" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "SQL Server Integration Services integration runtimes on Azure Data Factory should be joined to a virtual network", - "policyType": "BuiltIn", - "mode": "All", - "description": "Azure Virtual Network deployment provides enhanced security and isolation for your SQL Server Integration Services integration runtimes on Azure Data Factory, as well as subnets, access control policies, and other features to further restrict access.", - "metadata": { - "version": "2.0.0", - "category": "Data Factory" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "The effect determines what happens when the policy rule is evaluated to match." - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.DataFactory/factories/integrationRuntimes" - }, - { - "field": "Microsoft.DataFactory/factories/integrationruntimes/type", - "equals": "Managed" - }, - { - "field": "Microsoft.DataFactory/factories/integrationRuntimes/Managed.typeProperties.computeProperties.vnetProperties.vnetId", - "exists": "false" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Preview]: Configure VMSS created with Shared Image Gallery images to install the Guest Attestation extension", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Configure VMSS created with Shared Image Gallery images to automatically install the Guest Attestation extension to allow Azure Security Center to proactively attest and monitor the boot integrity. Boot integrity is attested via Remote Attestation.", - "metadata": { - "category": "Security Center", - "version": "2.0.0-preview", - "preview": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - }, - "attestationEndpoint": { - "type": "String", - "metadata": { - "displayName": "Guest attestation tenant URL", - "description": "The Microsoft Azure Attestation (MAA) custom tenant URL." - }, - "defaultValue": "" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachineScaleSets" - }, - { - "field": "Microsoft.Compute/virtualMachineScaleSets/virtualMachineProfile.securityProfile.securityType", - "equals": "TrustedLaunch" - }, - { - "field": "Microsoft.Compute/virtualMachineScaleSets/virtualMachineProfile.securityProfile.uefiSettings", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachineScaleSets/virtualMachineProfile.securityProfile.uefiSettings.vTpmEnabled", - "equals": "true" - }, - { - "field": "Microsoft.Compute/virtualMachineScaleSets/virtualMachineProfile.securityProfile.uefiSettings.secureBootEnabled", - "equals": "true" - }, - { - "field": "Microsoft.Compute/imageid", - "exists": "true" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Compute/virtualMachineScaleSets/extensions", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.Compute/virtualMachineScaleSets/extensions/publisher", - "in": [ - "Microsoft.Azure.Security.LinuxAttestation", - "Microsoft.Azure.Security.WindowsAttestation" - ] - }, - { - "field": "Microsoft.Compute/virtualMachineScaleSets/extensions/type", - "equals": "GuestAttestation" - }, - { - "field": "Microsoft.Compute/virtualMachineScaleSets/extensions/provisioningState", - "in": [ - "Succeeded", - "Provisioning succeeded" - ] - } - ] - }, - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000", - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "deployment": { - "properties": { - "mode": "incremental", - "parameters": { - "vmName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "imageId": { - "value": "[field(\u0027Microsoft.Compute/imageid\u0027)]" - }, - "attestationEndpoint": { - "value": "[parameters(\u0027attestationEndpoint\u0027)]" - } - }, - "template": { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "vmName": { - "type": "string" - }, - "location": { - "type": "string" - }, - "imageId": { - "type": "string" - }, - "attestationEndpoint": { - "type": "string" - } - }, - "variables": { - "extensionName": "GuestAttestation", - "extensionPublisherPrefix": "Microsoft.Azure.Security.", - "extensionPublisherSuffix": "Attestation", - "extensionVersion": "1.0", - "maaTenantName": "GuestAttestation", - "ascReportingEndpoint": "" - }, - "resources": [ - { - "type": "Microsoft.Compute/virtualMachineScaleSets/extensions", - "apiVersion": "2018-10-01", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/\u0027, variables(\u0027extensionName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "publisher": "[concat(variables(\u0027extensionPublisherPrefix\u0027), reference(split(parameters(\u0027imageId\u0027), \u0027/versions\u0027)[0], \u00272021-07-01\u0027).osType, variables(\u0027extensionPublisherSuffix\u0027))]", - "type": "[variables(\u0027extensionName\u0027)]", - "typeHandlerVersion": "[variables(\u0027extensionVersion\u0027)]", - "autoUpgradeMinorVersion": true, - "settings": { - "AttestationConfig": { - "MaaSettings": { - "maaEndpoint": "[parameters(\u0027attestationEndpoint\u0027)]", - "maaTenantName": "[variables(\u0027maaTenantName\u0027)]" - }, - "AscSettings": { - "ascReportingEndpoint": "[variables(\u0027ascReportingEndpoint\u0027)]", - "ascReportingFrequency": "" - }, - "useCustomToken": "false", - "disableAlerts": "false" - } - } - } - } - ] - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Private endpoint connections on Batch accounts should be enabled", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Private endpoint connections allow secure communication by enabling private connectivity to Batch accounts without a need for public IP addresses at the source or destination. Learn more about private endpoints in Batch at https://docs.microsoft.com/azure/batch/private-connectivity.", - "metadata": { - "version": "1.0.0", - "category": "Batch" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Batch/batchAccounts" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Batch/batchAccounts/privateEndpointConnections", - "existenceCondition": { - "field": "Microsoft.Batch/batchAccounts/privateEndpointConnections/privateLinkServiceConnectionState.status", - "equals": "Approved" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Azure Backup should be enabled for Virtual Machines", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Ensure protection of your Azure Virtual Machines by enabling Azure Backup. Azure Backup is a secure and cost effective data protection solution for Azure.", - "metadata": { - "version": "3.0.0", - "category": "Backup" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "field": "id", - "notContains": "/resourceGroups/databricks-rg-" - }, - { - "field": "Microsoft.Compute/imagePublisher", - "notEquals": "azureopenshift" - }, - { - "field": "Microsoft.Compute/imagePublisher", - "notEquals": "AzureDatabricks" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.RecoveryServices/backupprotecteditems" - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1142 - Security Assessment And Authorization Policy And Procedures", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Security Assessment and Authorization control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1142" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1099 - Security Training Records", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Awareness and Training control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1099" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1285 - Telecommunications Services | Provider Contingency Plan", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Contingency Planning control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1285" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1709 - Security Function Verification", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Information Integrity control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1709" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1052 - Session Lock", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Access Control control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1052" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1034 - Least Privilege", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Access Control control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1034" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Show audit results from Windows VMs on which the remote connection status does not match the specified one", - "policyType": "BuiltIn", - "mode": "All", - "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines on which the remote host connection status does not match the specified one. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol", - "metadata": { - "version": "1.0.0-deprecated", - "category": "Guest Configuration", - "deprecated": true - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "dsvm-windows" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - } - ] - }, - "then": { - "effect": "auditIfNotExists", - "details": { - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "WindowsRemoteConnection", - "existenceCondition": { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus", - "equals": "Compliant" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1623 - Boundary Protection", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Communications Protection control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1623" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1515 - Personnel Termination", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Personnel Security control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1515" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1327 - Authenticator Management | Password-Based Authentication", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Identification and Authentication control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1327" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Preview]: Azure Security agent should be installed on your Windows Arc machines", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Install the Azure Security agent on your Windows Arc machines in order to monitor your machines for security configurations and vulnerabilities. Results of the assessments can seen and managed in Azure Security Center.", - "metadata": { - "category": "Security Center", - "version": "1.0.0-preview", - "preview": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.HybridCompute/machines/extensions", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.HybridCompute/machines/extensions/type", - "equals": "AzureSecurityWindowsAgent" - }, - { - "field": "Microsoft.HybridCompute/machines/extensions/Publisher", - "equals": "Microsoft.Azure.Security.Monitoring" - }, - { - "field": "Microsoft.HybridCompute/machines/extensions/provisioningState", - "equals": "Succeeded" - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1229 - Information System Component Inventory | No Duplicate Accounting Of Components", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Configuration Management control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1229" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Cognitive Services accounts should restrict network access", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Network access to Cognitive Services accounts should be restricted. Configure network rules so only applications from allowed networks can access the Cognitive Services account. To allow connections from specific internet or on-premises clients, access can be granted to traffic from specific Azure virtual networks or to public internet IP address ranges.", - "metadata": { - "version": "2.0.0", - "category": "Cognitive Services" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "The effect determines what happens when the policy rule is evaluated to match" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.CognitiveServices/accounts" - }, - { - "field": "Microsoft.CognitiveServices/accounts/networkAcls.defaultAction", - "notEquals": "Deny" - }, - { - "count": { - "field": "Microsoft.CognitiveServices/accounts/capabilities[*]", - "where": { - "field": "Microsoft.CognitiveServices/accounts/capabilities[*].name", - "equals": "VirtualNetworks" - } - }, - "greater": 0 - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1123 - Audit Review, Analysis, And Reporting | Audit Level Adjustment", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Audit and Accountability control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1123" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1474 - Emergency Power | Long-Term Alternate Power Supply - Minimal Operational Capability", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Physical and Environmental Protection control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1474" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1227 - Information System Component Inventory | Automated Unauthorized Component Detection", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Configuration Management control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1227" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1361 - Incident Handling", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Incident Response control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1361" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Azure Kubernetes Service Private Clusters should be enabled", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Enable the private cluster feature for your Azure Kubernetes Service cluster to ensure network traffic between your API server and your node pools remains on the private network only. This is a common requirement in many regulatory and industry compliance standards.", - "metadata": { - "version": "1.0.0", - "category": "Kubernetes" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy." - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.ContainerService/managedClusters" - }, - { - "field": "Microsoft.ContainerService/managedClusters/apiServerAccessProfile.enablePrivateCluster", - "notEquals": true - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1594 - Developer Configuration Management", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Services Acquisition control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1594" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Audit Linux machines that have the specified applications installed", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if the Chef InSpec resource indicates that one or more of the packages provided by the parameter are installed.", - "metadata": { - "category": "Guest Configuration", - "version": "4.0.0", - "requiredProviders": [ - "Microsoft.GuestConfiguration" - ], - "guestConfiguration": { - "name": "not_installed_application_linux", - "version": "1.*", - "configurationParameter": { - "ApplicationName": "[ChefInSpec]NotInstalledApplicationLinuxResource1;AttributesYmlContent" - } - } - }, - "parameters": { - "IncludeArcMachines": { - "type": "String", - "metadata": { - "displayName": "Include Arc connected servers", - "description": "By selecting this option, you agree to be charged monthly per Arc connected machine.", - "portalReview": "true" - }, - "allowedValues": [ - "true", - "false" - ], - "defaultValue": "false" - }, - "ApplicationName": { - "type": "String", - "metadata": { - "displayName": "Application names", - "description": "A semicolon-separated list of the names of the applications that should not be installed. e.g. \u0027python; powershell\u0027" - } - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of this policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "microsoft-aks", - "qubole-inc", - "datastax", - "couchbase", - "scalegrid", - "checkpoint", - "paloaltonetworks", - "debian" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "OpenLogic" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "CentOS*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "6*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Oracle" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Oracle-Linux" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "6*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "RedHat" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "RHEL", - "RHEL-HA", - "RHEL-SAP", - "RHEL-SAP-APPS", - "RHEL-SAP-HA", - "RHEL-SAP-HANA" - ] - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "6*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "RedHat" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "osa", - "rhel-byos" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "cis-centos-7-l1", - "cis-centos-7-v2-1-1-l1", - "cis-centos-8-l1", - "cis-debian-linux-8-l1", - "cis-debian-linux-9-l1", - "cis-nginx-centos-7-v1-1-0-l1", - "cis-oracle-linux-7-v2-0-0-l1", - "cis-oracle-linux-8-l1", - "cis-postgresql-11-centos-linux-7-level-1", - "cis-rhel-7-l2", - "cis-rhel-7-v2-2-0-l1", - "cis-rhel-8-l1", - "cis-suse-linux-12-v2-0-0-l1", - "cis-ubuntu-linux-1604-v1-0-0-l1", - "cis-ubuntu-linux-1804-l1" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "credativ" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Debian" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "7*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Suse" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "SLES*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "11*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Canonical" - }, - { - "field": "Microsoft.Compute/imageOffer", - "contains": "Ubuntu" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "12*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "linux-data-science-vm-ubuntu", - "azureml", - "ubuntu-hpc", - "ubuntu-1804" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloudera" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "cloudera-centos-os" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "6*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloudera" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "cloudera-altus-centos-os" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "linux*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.linuxConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Linux*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "exists": "false" - }, - { - "field": "Microsoft.Compute/imagePublisher", - "notIn": [ - "OpenLogic", - "RedHat", - "credativ", - "Suse", - "Canonical", - "microsoft-dsvm", - "cloudera", - "microsoft-ads", - "center-for-internet-security-inc", - "Oracle", - "AzureDatabricks", - "azureopenshift" - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "value": "[parameters(\u0027IncludeArcMachines\u0027)]", - "equals": "true" - }, - { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "linux*" - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.ConnectedVMwarevSphere/virtualMachines" - }, - { - "field": "Microsoft.ConnectedVMwarevSphere/virtualMachines/osProfile.osType", - "like": "linux*" - } - ] - } - ] - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "not_installed_application_linux", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus", - "equals": "Compliant" - }, - { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash", - "equals": "[base64(concat(\u0027[ChefInSpec]NotInstalledApplicationLinuxResource1;AttributesYmlContent\u0027, \u0027=\u0027, parameters(\u0027ApplicationName\u0027)))]" - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Storage account keys should not be expired", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Ensure the user storage account keys are not expired when key expiration policy is set, for improving security of account keys by taking action when the keys are expired.", - "metadata": { - "version": "3.0.0", - "category": "Storage" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Audit allows a non-compliant resource to be created, but flags it as non-compliant. Deny blocks the resource creation and update. Disable turns off the policy." - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Storage/storageAccounts" - }, - { - "anyOf": [ - { - "value": "[utcNow()]", - "greater": "[if(and(not(empty(coalesce(field(\u0027Microsoft.Storage/storageAccounts/keyCreationTime.key1\u0027), \u0027\u0027))), not(empty(string(coalesce(field(\u0027Microsoft.Storage/storageAccounts/keyPolicy.keyExpirationPeriodInDays\u0027), \u0027\u0027))))), addDays(field(\u0027Microsoft.Storage/storageAccounts/keyCreationTime.key1\u0027), field(\u0027Microsoft.Storage/storageAccounts/keyPolicy.keyExpirationPeriodInDays\u0027)), utcNow())]" - }, - { - "value": "[utcNow()]", - "greater": "[if(and(not(empty(coalesce(field(\u0027Microsoft.Storage/storageAccounts/keyCreationTime.key2\u0027), \u0027\u0027))), not(empty(string(coalesce(field(\u0027Microsoft.Storage/storageAccounts/keyPolicy.keyExpirationPeriodInDays\u0027), \u0027\u0027))))), addDays(field(\u0027Microsoft.Storage/storageAccounts/keyCreationTime.key2\u0027), field(\u0027Microsoft.Storage/storageAccounts/keyPolicy.keyExpirationPeriodInDays\u0027)), utcNow())]" - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Azure Cosmos DB allowed locations", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "This policy enables you to restrict the locations your organization can specify when deploying Azure Cosmos DB resources. Use to enforce your geo-compliance requirements.", - "metadata": { - "version": "1.0.0", - "category": "Cosmos DB" - }, - "parameters": { - "listOfAllowedLocations": { - "type": "Array", - "metadata": { - "displayName": "Allowed locations", - "description": "The list of locations that can be specified when deploying Azure Cosmos DB resources.", - "strongType": "location" - } - }, - "policyEffect": { - "type": "String", - "metadata": { - "displayName": "Policy Effect", - "description": "The desired effect of the policy." - }, - "allowedValues": [ - "deny", - "audit", - "disabled" - ], - "defaultValue": "deny" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.DocumentDB/databaseAccounts" - }, - { - "count": { - "field": "Microsoft.DocumentDB/databaseAccounts/Locations[*]", - "where": { - "value": "[replace(toLower(first(field(\u0027Microsoft.DocumentDB/databaseAccounts/Locations[*].locationName\u0027))), \u0027 \u0027, \u0027\u0027)]", - "in": "[parameters(\u0027listOfAllowedLocations\u0027)]" - } - }, - "notEquals": "[length(field(\u0027Microsoft.DocumentDB/databaseAccounts/Locations[*]\u0027))]" - } - ] - }, - "then": { - "effect": "[parameters(\u0027policyEffect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: SQL managed instances should use customer-managed keys to encrypt data at rest", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "This policy is deprecated. Please use /providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000 instead", - "metadata": { - "version": "1.0.2-deprecated", - "category": "SQL", - "deprecated": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Sql/managedInstances" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Sql/managedInstances/encryptionProtector", - "name": "current", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.Sql/managedInstances/encryptionProtector/serverKeyType", - "equals": "AzureKeyVault" - }, - { - "field": "Microsoft.Sql/managedInstances/encryptionProtector/uri", - "notEquals": "" - }, - { - "field": "Microsoft.Sql/managedInstances/encryptionProtector/uri", - "exists": "true" - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Preview]: Network traffic data collection agent should be installed on Linux virtual machines", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Security Center uses the Microsoft Dependency agent to collect network traffic data from your Azure virtual machines to enable advanced network protection features such as traffic visualization on the network map, network hardening recommendations and specific network threats.", - "metadata": { - "version": "1.0.2-preview", - "category": "Monitoring", - "preview": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable Dependency Agent for Linux VMs monitoring" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Canonical" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "UbuntuServer" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "in": [ - "14.04.0-LTS", - "14.04.1-LTS", - "14.04.5-LTS" - ] - }, - { - "field": "Microsoft.Compute/imageSKU", - "in": [ - "16.04-LTS", - "16.04.0-LTS" - ] - }, - { - "field": "Microsoft.Compute/imageSKU", - "in": [ - "18.04-LTS" - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "RedHat" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "RHEL", - "RHEL-SAP-HANA" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "like": "6.*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "7*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "SUSE" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "SLES", - "SLES-HPC", - "SLES-HPC-Priority", - "SLES-SAP", - "SLES-SAP-BYOS", - "SLES-Priority", - "SLES-BYOS", - "SLES-SAPCAL", - "SLES-Standard" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "in": [ - "12-SP2", - "12-SP3", - "12-SP4" - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "OpenLogic" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "CentOS", - "Centos-LVM", - "CentOS-SRIOV" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "like": "6.*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "7*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloudera" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "cloudera-centos-os" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "7*" - } - ] - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Compute/virtualMachines/extensions", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.Compute/virtualMachines/extensions/type", - "equals": "DependencyAgentLinux" - }, - { - "field": "Microsoft.Compute/virtualMachines/extensions/publisher", - "equals": "Microsoft.Azure.Monitoring.DependencyAgent" - }, - { - "field": "Microsoft.Compute/virtualMachines/extensions/provisioningState", - "equals": "Succeeded" - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Shared dashboards should not have markdown tiles with inline content", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Disallow creating a shared dashboard that has inline content in markdown tiles and enforce that the content should be stored as a markdown file that\u0027s hosted online. If you use inline content in the markdown tile, you cannot manage encryption of the content. By configuring your own storage, you can encrypt, double encrypt and even bring your own keys. Enabling this policy restricts users to use 2020-09-01-preview or above version of shared dashboards REST API.", - "metadata": { - "version": "1.0.0", - "category": "Portal" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "The effect determines what happens when the policy rule is evaluated to match" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Portal/dashboards" - }, - { - "anyof": [ - { - "not": { - "value": "[requestContext().apiVersion]", - "greaterOrEquals": "2020-09-01-alpha" - } - }, - { - "count": { - "field": "Microsoft.Portal/dashboards/lenses[*].parts[*]", - "where": { - "allOf": [ - { - "field": "Microsoft.Portal/dashboards/lenses[*].parts[*].metadata.type", - "equals": "Extension/HubsExtension/PartType/MarkdownPart" - }, - { - "anyOf": [ - { - "field": "Microsoft.Portal/dashboards/lenses[*].parts[*].metadata.Extension-HubsExtension-PartType-MarkdownPart.settings.content.settings.markdownUri", - "exists": "false" - }, - { - "field": "Microsoft.Portal/dashboards/lenses[*].parts[*].metadata.Extension-HubsExtension-PartType-MarkdownPart.settings.content.settings.markdownSource", - "exists": "false" - }, - { - "field": "Microsoft.Portal/dashboards/lenses[*].parts[*].metadata.Extension-HubsExtension-PartType-MarkdownPart.settings.content.settings.markdownSource", - "equals": "1" - } - ] - } - ] - } - }, - "greater": 0 - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Deploy Diagnostic Settings for Service Bus to Log Analytics workspace", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Deploys the diagnostic settings for Service Bus to stream to a regional Log Analytics workspace when any Service Bus which is missing this diagnostic settings is created or updated.", - "metadata": { - "version": "2.0.0", - "category": "Monitoring" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - }, - "profileName": { - "type": "String", - "metadata": { - "displayName": "Profile name", - "description": "The diagnostic settings profile name" - }, - "defaultValue": "setbypolicy_logAnalytics" - }, - "logAnalytics": { - "type": "String", - "metadata": { - "displayName": "Log Analytics workspace", - "description": "Select Log Analytics workspace from dropdown list. If this workspace is outside of the scope of the assignment you must manually grant \u0027Log Analytics Contributor\u0027 permissions (or similar) to the policy assignment\u0027s principal ID.", - "strongType": "omsWorkspace", - "assignPermissions": true - } - }, - "metricsEnabled": { - "type": "String", - "metadata": { - "displayName": "Enable metrics", - "description": "Whether to enable metrics stream to the Log Analytics workspace - True or False" - }, - "allowedValues": [ - "True", - "False" - ], - "defaultValue": "False" - }, - "logsEnabled": { - "type": "String", - "metadata": { - "displayName": "Enable logs", - "description": "Whether to enable logs stream to the Log Analytics workspace - True or False" - }, - "allowedValues": [ - "True", - "False" - ], - "defaultValue": "True" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.ServiceBus/namespaces" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Insights/diagnosticSettings", - "name": "[parameters(\u0027profileName\u0027)]", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.Insights/diagnosticSettings/logs.enabled", - "equals": "[parameters(\u0027logsEnabled\u0027)]" - }, - { - "field": "Microsoft.Insights/diagnosticSettings/metrics.enabled", - "equals": "[parameters(\u0027metricsEnabled\u0027)]" - } - ] - }, - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000", - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "deployment": { - "properties": { - "mode": "incremental", - "template": { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "resourceName": { - "type": "string" - }, - "location": { - "type": "string" - }, - "logAnalytics": { - "type": "string" - }, - "metricsEnabled": { - "type": "string" - }, - "logsEnabled": { - "type": "string" - }, - "profileName": { - "type": "string" - } - }, - "variables": {}, - "resources": [ - { - "type": "Microsoft.ServiceBus/namespaces/providers/diagnosticSettings", - "apiVersion": "2017-05-01-preview", - "name": "[concat(parameters(\u0027resourceName\u0027), \u0027/\u0027, \u0027Microsoft.Insights/\u0027, parameters(\u0027profileName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "dependsOn": [], - "properties": { - "workspaceId": "[parameters(\u0027logAnalytics\u0027)]", - "metrics": [ - { - "category": "AllMetrics", - "enabled": "[parameters(\u0027metricsEnabled\u0027)]", - "retentionPolicy": { - "enabled": false, - "days": 0 - } - } - ], - "logs": [ - { - "category": "OperationalLogs", - "enabled": "[parameters(\u0027logsEnabled\u0027)]" - }, - { - "category": "VNetAndIPFilteringLogs", - "enabled": "[parameters(\u0027logsEnabled\u0027)]" - } - ] - } - } - ], - "outputs": {} - }, - "parameters": { - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "resourceName": { - "value": "[field(\u0027name\u0027)]" - }, - "logAnalytics": { - "value": "[parameters(\u0027logAnalytics\u0027)]" - }, - "metricsEnabled": { - "value": "[parameters(\u0027metricsEnabled\u0027)]" - }, - "logsEnabled": { - "value": "[parameters(\u0027logsEnabled\u0027)]" - }, - "profileName": { - "value": "[parameters(\u0027profileName\u0027)]" - } - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1572 - Acquisition Process", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Services Acquisition control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1572" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Configure Linux Virtual Machine Scale Sets to be associated with a Data Collection Rule", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Deploy Association to link Linux virtual machine scale sets to the specified Data Collection Rule. The list of locations and OS images are updated over time as support is increased.", - "metadata": { - "version": "1.0.0", - "category": "Monitoring" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy." - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - }, - "listOfLinuxImageIdToInclude": { - "type": "Array", - "metadata": { - "displayName": "Additional Linux Machine Images", - "description": "List of virtual machine scale set images that have supported Linux OS to add to scope. Example values: \u0027/subscriptions/\u003CsubscriptionId\u003E/resourceGroups/YourResourceGroup/providers/Microsoft.Compute/images/ContosoStdImage\u0027" - }, - "defaultValue": [] - }, - "dcrResourceId": { - "type": "String", - "metadata": { - "displayName": "Data Collection Rule Resource Id", - "description": "Resource Id of the Data Collection Rule to be applied on the Linux virtual machine scale sets in scope.", - "strongType": "Microsoft.Insights/dataCollectionRules" - } - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachineScaleSets" - }, - { - "field": "location", - "in": [ - "australiacentral", - "australiacentral2", - "australiaeast", - "australiasoutheast", - "brazilsouth", - "brazilsoutheast", - "canadacentral", - "canadaeast", - "centralindia", - "centralus", - "eastasia", - "eastus2euap", - "eastus", - "eastus2", - "francecentral", - "francesouth", - "germanywestcentral", - "japaneast", - "japanwest", - "jioindiawest", - "koreacentral", - "koreasouth", - "northcentralus", - "northeurope", - "norwayeast", - "norwaywest", - "southafricanorth", - "southcentralus", - "southeastasia", - "southindia", - "switzerlandnorth", - "switzerlandwest", - "uaenorth", - "uksouth", - "ukwest", - "westcentralus", - "westeurope", - "westindia", - "westus", - "westus2" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageId", - "in": "[parameters(\u0027listOfLinuxImageIdToInclude\u0027)]" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "RedHat" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "RHEL", - "RHEL-SAP-HANA" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSku", - "like": "6*" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "7*" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "8*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "SUSE" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "SLES", - "SLES-HPC", - "SLES-HPC-Priority", - "SLES-SAP", - "SLES-SAP-BYOS", - "SLES-Priority", - "SLES-BYOS", - "SLES-SAPCAL", - "SLES-Standard" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSku", - "like": "12*" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "15*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Canonical" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "UbuntuServer" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSku", - "like": "14.04*LTS" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "16.04*LTS" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "18.04*LTS" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Canonical" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "0001-com-ubuntu-server-focal" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSku", - "like": "20_04-lts*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Oracle" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Oracle-Linux" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSku", - "like": "6*" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "7*" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "8*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "OpenLogic" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "CentOS", - "Centos-LVM", - "CentOS-SRIOV" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSku", - "like": "6*" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "7*" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "8*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloudera" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "cloudera-centos-os" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "7*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "credativ" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "debian" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSku", - "like": "8" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "9" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Debian" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "debian-10" - ] - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "10" - } - ] - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Insights/dataCollectionRuleAssociations", - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000", - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "existenceCondition": { - "field": "Microsoft.Insights/dataCollectionRuleAssociations/dataCollectionRuleId", - "equals": "[parameters(\u0027dcrResourceId\u0027)]" - }, - "deployment": { - "properties": { - "mode": "incremental", - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "resourceName": { - "type": "string" - }, - "location": { - "type": "string" - }, - "dcrResourceId": { - "type": "string" - } - }, - "variables": { - "associationName": "[concat(\u0027assoc-\u0027, uniqueString(parameters(\u0027dcrResourceId\u0027)))]" - }, - "resources": [ - { - "name": "[variables(\u0027associationName\u0027)]", - "type": "Microsoft.Insights/dataCollectionRuleAssociations", - "apiVersion": "2021-04-01", - "properties": { - "dataCollectionRuleId": "[parameters(\u0027dcrResourceId\u0027)]" - }, - "scope": "[concat(\u0027Microsoft.Compute/virtualMachineScaleSets/\u0027, parameters(\u0027resourceName\u0027))]" - } - ] - }, - "parameters": { - "resourceName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "dcrResourceId": { - "value": "[parameters(\u0027dcrResourceId\u0027)]" - } - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Azure API for FHIR should use a customer-managed key to encrypt data at rest", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Use a customer-managed key to control the encryption at rest of the data stored in Azure API for FHIR when this is a regulatory or compliance requirement. Customer-managed keys also deliver double encryption by adding a second layer of encryption on top of the default one done with service-managed keys.", - "metadata": { - "version": "1.0.1", - "category": "API for FHIR" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "audit", - "disabled" - ], - "defaultValue": "audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HealthcareApis/services" - }, - { - "field": "Microsoft.HealthcareApis/services/cosmosDbConfiguration.keyVaultKeyUri", - "exists": "false" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Deploy Log Analytics extension for Linux VMs", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Deploy Log Analytics extension for Linux VMs if the VM Image (OS) is in the list defined and the extension is not installed.", - "metadata": { - "version": "2.0.1", - "category": "Monitoring" - }, - "parameters": { - "logAnalytics": { - "type": "String", - "metadata": { - "displayName": "Log Analytics workspace", - "description": "Select Log Analytics workspace from dropdown list. If this workspace is outside of the scope of the assignment you must manually grant \u0027Log Analytics Contributor\u0027 permissions (or similar) to the policy assignment\u0027s principal ID.", - "strongType": "omsWorkspace", - "assignPermissions": true - } - }, - "listOfImageIdToInclude": { - "type": "Array", - "metadata": { - "displayName": "Optional: List of VM images that have supported Linux OS to add to scope", - "description": "Example value: \u0027/subscriptions/\u003CsubscriptionId\u003E/resourceGroups/YourResourceGroup/providers/Microsoft.Compute/images/ContosoStdImage\u0027" - }, - "defaultValue": [] - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageId", - "in": "[parameters(\u0027listOfImageIdToInclude\u0027)]" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "RedHat" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "RHEL", - "RHEL-SAP-HANA" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "like": "6.*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "7*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "8*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "SUSE" - }, - { - "anyOf": [ - { - "allOf": [ - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "SLES", - "SLES-HPC", - "SLES-HPC-Priority", - "SLES-SAP", - "SLES-SAP-BYOS", - "SLES-Priority", - "SLES-BYOS", - "SLES-SAPCAL", - "SLES-Standard" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "like": "12*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "15*" - } - ] - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageOffer", - "like": "sles-12-sp*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "sles-15-sp*" - } - ] - }, - { - "field": "Microsoft.Compute/imageSKU", - "in": [ - "gen1", - "gen2" - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Canonical" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "UbuntuServer", - "0001-com-ubuntu-server-focal" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "like": "14.04*LTS" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "16.04*LTS" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "16_04*lts-gen2" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "18.04*LTS" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "18_04*lts-gen2" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "20_04*lts" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "20_04*lts-gen2" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "credativ" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Debian" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "like": "8*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "9*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Oracle" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Oracle-Linux" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "like": "6.*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "7.*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "OpenLogic" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "CentOS", - "Centos-LVM", - "CentOS-SRIOV" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "like": "6.*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "7*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "8*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloudera" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "cloudera-centos-os" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "7*" - } - ] - } - ] - } - ] - }, - "then": { - "effect": "deployIfNotExists", - "details": { - "type": "Microsoft.Compute/virtualMachines/extensions", - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.Compute/virtualMachines/extensions/type", - "equals": "OmsAgentForLinux" - }, - { - "field": "Microsoft.Compute/virtualMachines/extensions/publisher", - "equals": "Microsoft.EnterpriseCloud.Monitoring" - }, - { - "field": "Microsoft.Compute/virtualMachines/extensions/provisioningState", - "equals": "Succeeded" - } - ] - }, - "deployment": { - "properties": { - "mode": "incremental", - "template": { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "vmName": { - "type": "string" - }, - "location": { - "type": "string" - }, - "logAnalytics": { - "type": "string" - } - }, - "variables": { - "vmExtensionName": "OMSAgentForLinux", - "vmExtensionPublisher": "Microsoft.EnterpriseCloud.Monitoring", - "vmExtensionType": "OmsAgentForLinux", - "vmExtensionTypeHandlerVersion": "1.13" - }, - "resources": [ - { - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/\u0027, variables(\u0027vmExtensionName\u0027))]", - "type": "Microsoft.Compute/virtualMachines/extensions", - "location": "[parameters(\u0027location\u0027)]", - "apiVersion": "2018-06-01", - "properties": { - "publisher": "[variables(\u0027vmExtensionPublisher\u0027)]", - "type": "[variables(\u0027vmExtensionType\u0027)]", - "typeHandlerVersion": "[variables(\u0027vmExtensionTypeHandlerVersion\u0027)]", - "autoUpgradeMinorVersion": true, - "settings": { - "workspaceId": "[reference(parameters(\u0027logAnalytics\u0027), \u00272015-03-20\u0027).customerId]", - "stopOnMultipleConnections": "true" - }, - "protectedSettings": { - "workspaceKey": "[listKeys(parameters(\u0027logAnalytics\u0027), \u00272015-03-20\u0027).primarySharedKey]" - } - } - } - ], - "outputs": { - "policy": { - "type": "string", - "value": "[concat(\u0027Enabled extension for VM\u0027, \u0027: \u0027, parameters(\u0027vmName\u0027))]" - } - } - }, - "parameters": { - "vmName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "logAnalytics": { - "value": "[parameters(\u0027logAnalytics\u0027)]" - } - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1331 - Authenticator Management | Password-Based Authentication", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Identification and Authentication control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1331" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Azure Web Application Firewall should be enabled for Azure Front Door entry-points", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Deploy Azure Web Application Firewall (WAF) in front of public facing web applications for additional inspection of incoming traffic. Web Application Firewall (WAF) provides centralized protection of your web applications from common exploits and vulnerabilities such as SQL injections, Cross-Site Scripting, local and remote file executions. You can also restrict access to your web applications by countries, IP address ranges, and other http(s) parameters via custom rules.", - "metadata": { - "version": "1.0.2", - "category": "Network" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Network/frontdoors" - }, - { - "field": "Microsoft.Network/frontdoors/frontendEndpoints[*].webApplicationFirewallPolicyLink.id", - "exists": "false" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Private endpoint should be enabled for PostgreSQL servers", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Private endpoint connections enforce secure communication by enabling private connectivity to Azure Database for PostgreSQL. Configure a private endpoint connection to enable access to traffic coming only from known networks and prevent access from all other IP addresses, including within Azure.", - "metadata": { - "version": "1.0.2", - "category": "SQL" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.DBforPostgreSQL/servers" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.DBforPostgreSQL/servers/privateEndpointConnections", - "existenceCondition": { - "field": "Microsoft.DBforPostgreSQL/servers/privateEndpointConnections/privateLinkServiceConnectionState.status", - "equals": "Approved" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Vulnerability Assessment settings for SQL server should contain an email address to receive scan reports", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Ensure that an email address is provided for the \u0027Send scan reports to\u0027 field in the Vulnerability Assessment settings. This email address receives scan result summary after a periodic scan runs on SQL servers.", - "metadata": { - "version": "2.0.0", - "category": "SQL" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Sql/servers" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Sql/servers/vulnerabilityAssessments", - "name": "default", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.Sql/servers/vulnerabilityAssessments/default.recurringScans.emails[*]", - "notEquals": "" - }, - { - "count": { - "field": "Microsoft.Sql/servers/vulnerabilityAssessments/default.recurringScans.emails[*]" - }, - "notEquals": 0 - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Resource logs in Azure Data Lake Store should be enabled", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Audit enabling of resource logs. This enables you to recreate activity trails to use for investigation purposes; when a security incident occurs or when your network is compromised", - "metadata": { - "version": "5.0.0", - "category": "Data Lake" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - }, - "requiredRetentionDays": { - "type": "String", - "metadata": { - "displayName": "Required retention (days)", - "description": "The required resource logs retention in days" - }, - "defaultValue": "365" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.DataLakeStore/accounts" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Insights/diagnosticSettings", - "existenceCondition": { - "count": { - "field": "Microsoft.Insights/diagnosticSettings/logs[*]", - "where": { - "anyOf": [ - { - "allOf": [ - { - "field": "Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.enabled", - "equals": "true" - }, - { - "anyOf": [ - { - "field": "Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.days", - "equals": "0" - }, - { - "value": "[padLeft(current(\u0027Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.days\u0027), 3, \u00270\u0027)]", - "greaterOrEquals": "[padLeft(parameters(\u0027requiredRetentionDays\u0027), 3, \u00270\u0027)]" - } - ] - }, - { - "field": "Microsoft.Insights/diagnosticSettings/logs.enabled", - "equals": "true" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Insights/diagnosticSettings/logs.enabled", - "equals": "true" - }, - { - "anyOf": [ - { - "field": "Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.enabled", - "notEquals": "true" - }, - { - "field": "Microsoft.Insights/diagnosticSettings/storageAccountId", - "exists": false - } - ] - } - ] - } - ] - } - }, - "greaterOrEquals": 1 - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1132 - Protection Of Audit Information | Audit Backup On Separate Physical Systems / Components", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Audit and Accountability control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1132" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1223 - Information System Component Inventory", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Configuration Management control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1223" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1640 - Transmission Confidentiality And Integrity", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Communications Protection control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1640" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1420 - Maintenance Personnel", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Maintenance control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1420" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1658 - Secure Name / Address Resolution Service (Recursive Or Caching Resolver)", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Communications Protection control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1658" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1688 - Information System Monitoring", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Information Integrity control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1688" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Configure Azure File Sync to use private DNS zones", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "To access the private endpoint(s) for Storage Sync Service resource interfaces from a registered server, you need to configure your DNS to resolve the correct names to your private endpoint\u0027s private IP addresses. This policy creates the requisite Azure Private DNS Zone and A records for the interfaces of your Storage Sync Service private endpoint(s).", - "metadata": { - "version": "1.0.0", - "category": "Storage" - }, - "parameters": { - "privateDnsZoneId": { - "type": "String", - "metadata": { - "displayName": "privateDnsZoneId", - "strongType": "Microsoft.Network/privateDnsZones", - "description": "Private DNS Zone Identifier" - } - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Network/privateEndpoints" - }, - { - "count": { - "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*].groupIds[*]", - "where": { - "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*].groupIds[*]", - "equals": "afs" - } - }, - "greaterOrEquals": 1 - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups", - "roleDefinitionIds": [ - "/providers/Microsoft.Authorization/roleDefinitions/00000000-0000-0000-0000-000000000000", - "/providers/Microsoft.Authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "deployment": { - "properties": { - "mode": "incremental", - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "privateDnsZoneId": { - "type": "string" - }, - "privateEndpointName": { - "type": "string" - }, - "location": { - "type": "string" - } - }, - "resources": [ - { - "name": "[concat(parameters(\u0027privateEndpointName\u0027), \u0027/deployedByPolicy\u0027)]", - "type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups", - "apiVersion": "2020-03-01", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "privateDnsZoneConfigs": [ - { - "name": "privatelink-afs", - "properties": { - "privateDnsZoneId": "[parameters(\u0027privateDnsZoneId\u0027)]" - } - } - ] - } - } - ] - }, - "parameters": { - "privateDnsZoneId": { - "value": "[parameters(\u0027privateDnsZoneId\u0027)]" - }, - "privateEndpointName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - } - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1332 - Authenticator Management | Password-Based Authentication", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Identification and Authentication control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1332" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1455 - Physical Access Control", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Physical and Environmental Protection control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1455" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Audit SQL DB Level Audit Setting", - "policyType": "BuiltIn", - "mode": "All", - "description": "Audit DB level audit setting for SQL databases", - "metadata": { - "version": "1.0.0-deprecated", - "category": "SQL", - "deprecated": true - }, - "parameters": { - "setting": { - "type": "String", - "metadata": { - "displayName": "Audit Setting" - }, - "allowedValues": [ - "enabled", - "disabled" - ] - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Sql/servers/databases" - }, - { - "field": "name", - "notEquals": "master" - } - ] - }, - "then": { - "effect": "AuditIfNotExists", - "details": { - "type": "Microsoft.Sql/servers/databases/auditingSettings", - "name": "default", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.Sql/auditingSettings.state", - "equals": "[parameters(\u0027setting\u0027)]" - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Audit VMs that do not use managed disks", - "policyType": "BuiltIn", - "mode": "All", - "description": "This policy audits VMs that do not use managed disks", - "metadata": { - "version": "1.0.0", - "category": "Compute" - }, - "parameters": {}, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "field": "Microsoft.Compute/virtualMachines/osDisk.uri", - "exists": "True" - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/VirtualMachineScaleSets" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/VirtualMachineScaleSets/osDisk.vhdContainers", - "exists": "True" - }, - { - "field": "Microsoft.Compute/VirtualMachineScaleSets/osdisk.imageUrl", - "exists": "True" - } - ] - } - ] - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1366 - Incident Handling | Information Correlation", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Incident Response control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1366" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Cognitive Services accounts should disable public network access", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Disabling public network access improves security by ensuring that Cognitive Services account isn\u0027t exposed on the public internet. Creating private endpoints can limit exposure of Cognitive Services account. Learn more at: https://go.microsoft.com/fwlink/?linkid=2129800. ", - "metadata": { - "version": "2.0.0", - "category": "Cognitive Services" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "The effect determines what happens when the policy rule is evaluated to match" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.CognitiveServices/accounts" - }, - { - "field": "Microsoft.CognitiveServices/accounts/publicNetworkAccess", - "notEquals": "Disabled" - }, - { - "count": { - "field": "Microsoft.CognitiveServices/accounts/capabilities[*]", - "where": { - "field": "Microsoft.CognitiveServices/accounts/capabilities[*].name", - "equals": "VirtualNetworks" - } - }, - "greater": 0 - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1633 - Boundary Protection | Route Traffic To Authenticated Proxy Servers", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Communications Protection control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1633" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "CORS should not allow every resource to access your Function Apps", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Cross-Origin Resource Sharing (CORS) should not allow all domains to access your Function app. Allow only required domains to interact with your Function app.", - "metadata": { - "version": "1.0.0", - "category": "App Service" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Web/sites" - }, - { - "field": "kind", - "like": "functionapp*" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Web/sites/config", - "existenceCondition": { - "field": "Microsoft.Web/sites/config/web.cors.allowedOrigins[*]", - "notEquals": "*" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Deploy - Configure Log Analytics extension to be enabled on Windows virtual machines", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Deploy Log Analytics extension for Windows virtual machines if the virtual machine image is in the list defined and the extension is not installed.", - "metadata": { - "version": "2.0.1", - "category": "Monitoring" - }, - "parameters": { - "logAnalytics": { - "type": "String", - "metadata": { - "displayName": "Log Analytics workspace", - "description": "Log Analytics workspace is used to receive performance data. If this workspace is outside of the scope of the assignment you must manually grant \u0027Log Analytics Contributor\u0027 permissions (or similar) to the policy assignment\u0027s principal ID.", - "strongType": "omsWorkspace", - "assignPermissions": true - } - }, - "listOfImageIdToInclude": { - "type": "Array", - "metadata": { - "displayName": "Optional: List of virtual machine images that have supported Windows OS to add to scope", - "description": "Example values: \u0027/subscriptions/\u003CsubscriptionId\u003E/resourceGroups/YourResourceGroup/providers/Microsoft.Compute/images/ContosoStdImage\u0027" - }, - "defaultValue": [] - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageId", - "in": "[parameters(\u0027listOfImageIdToInclude\u0027)]" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "in": [ - "2008-R2-SP1", - "2008-R2-SP1-smalldisk", - "2012-Datacenter", - "2012-Datacenter-smalldisk", - "2012-R2-Datacenter", - "2012-R2-Datacenter-smalldisk", - "2016-Datacenter", - "2016-Datacenter-Server-Core", - "2016-Datacenter-Server-Core-smalldisk", - "2016-Datacenter-smalldisk", - "2016-Datacenter-with-Containers", - "2016-Datacenter-with-RDSH", - "2019-Datacenter", - "2019-Datacenter-Core", - "2019-Datacenter-Core-smalldisk", - "2019-Datacenter-Core-with-Containers", - "2019-Datacenter-Core-with-Containers-smalldisk", - "2019-Datacenter-smalldisk", - "2019-Datacenter-with-Containers", - "2019-Datacenter-with-Containers-smalldisk", - "2019-Datacenter-zhcn" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServerSemiAnnual" - }, - { - "field": "Microsoft.Compute/imageSKU", - "in": [ - "Datacenter-Core-1709-smalldisk", - "Datacenter-Core-1709-with-Containers-smalldisk", - "Datacenter-Core-1803-with-Containers-smalldisk" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServerHPCPack" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServerHPCPack" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2016" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2016-BYOL" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2012R2" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2012R2-BYOL" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftRServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "MLServer-WS2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftVisualStudio" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "VisualStudio", - "Windows" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftDynamicsAX" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Dynamics" - }, - { - "field": "Microsoft.Compute/imageSKU", - "equals": "Pre-Req-AX7-Onebox-U8" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftDynamicsAX" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Dynamics" - }, - { - "field": "Microsoft.Compute/imageSKU", - "equals": "Pre-Req-AX7-Onebox-V4" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "windows-data-science-vm" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsDesktop" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Windows-10" - } - ] - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Compute/virtualMachines/extensions", - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.Compute/virtualMachines/extensions/type", - "equals": "MicrosoftMonitoringAgent" - }, - { - "field": "Microsoft.Compute/virtualMachines/extensions/publisher", - "equals": "Microsoft.EnterpriseCloud.Monitoring" - }, - { - "field": "Microsoft.Compute/virtualMachines/extensions/provisioningState", - "equals": "Succeeded" - } - ] - }, - "deployment": { - "properties": { - "mode": "incremental", - "template": { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "vmName": { - "type": "string" - }, - "location": { - "type": "string" - }, - "logAnalytics": { - "type": "string" - } - }, - "variables": { - "vmExtensionName": "MicrosoftMonitoringAgent", - "vmExtensionPublisher": "Microsoft.EnterpriseCloud.Monitoring", - "vmExtensionType": "MicrosoftMonitoringAgent", - "vmExtensionTypeHandlerVersion": "1.0" - }, - "resources": [ - { - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/\u0027, variables(\u0027vmExtensionName\u0027))]", - "type": "Microsoft.Compute/virtualMachines/extensions", - "location": "[parameters(\u0027location\u0027)]", - "apiVersion": "2018-06-01", - "properties": { - "publisher": "[variables(\u0027vmExtensionPublisher\u0027)]", - "type": "[variables(\u0027vmExtensionType\u0027)]", - "typeHandlerVersion": "[variables(\u0027vmExtensionTypeHandlerVersion\u0027)]", - "autoUpgradeMinorVersion": true, - "settings": { - "workspaceId": "[reference(parameters(\u0027logAnalytics\u0027), \u00272015-03-20\u0027).customerId]", - "stopOnMultipleConnections": "true" - }, - "protectedSettings": { - "workspaceKey": "[listKeys(parameters(\u0027logAnalytics\u0027), \u00272015-03-20\u0027).primarySharedKey]" - } - } - } - ], - "outputs": { - "policy": { - "type": "string", - "value": "[concat(\u0027Enabled extension for VM\u0027, \u0027: \u0027, parameters(\u0027vmName\u0027))]" - } - } - }, - "parameters": { - "vmName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "logAnalytics": { - "value": "[parameters(\u0027logAnalytics\u0027)]" - } - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1583 - Information System Documentation", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Services Acquisition control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1583" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Audit Windows machines on which the DSC configuration is not compliant", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if the Windows PowerShell command Get-DSCConfigurationStatus returns that the DSC configuration for the machine is not compliant.", - "metadata": { - "category": "Guest Configuration", - "version": "3.0.0", - "requiredProviders": [ - "Microsoft.GuestConfiguration" - ], - "guestConfiguration": { - "name": "WindowsDscConfiguration", - "version": "1.*" - } - }, - "parameters": { - "IncludeArcMachines": { - "type": "String", - "metadata": { - "displayName": "Include Arc connected servers", - "description": "By selecting this option, you agree to be charged monthly per Arc connected machine.", - "portalReview": "true" - }, - "allowedValues": [ - "true", - "false" - ], - "defaultValue": "false" - } - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "dsvm-win*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "value": "[parameters(\u0027IncludeArcMachines\u0027)]", - "equals": "true" - }, - { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.ConnectedVMwarevSphere/virtualMachines" - }, - { - "field": "Microsoft.ConnectedVMwarevSphere/virtualMachines/osProfile.osType", - "like": "windows*" - } - ] - } - ] - } - ] - } - ] - }, - "then": { - "effect": "auditIfNotExists", - "details": { - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "[concat(\u0027WindowsDscConfiguration$pid\u0027, uniqueString(policy().assignmentId, policy().definitionReferenceId))]", - "existenceCondition": { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus", - "equals": "Compliant" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Azure Edge Hardware Center devices should have double encryption support enabled", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Ensure that devices ordered from Azure Edge Hardware Center have double encryption support enabled, to secure the data at rest on the device. This option adds a second layer of data encryption.", - "metadata": { - "version": "2.0.0", - "category": "Azure Edge Hardware Center" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "The desired effect of the policy" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.EdgeOrder/orderItems" - }, - { - "field": "Microsoft.EdgeOrder/orderItems/orderItemDetails.preferences.encryptionPreferences.doubleEncryptionStatus", - "notEquals": "Enabled" - }, - { - "field": "Microsoft.EdgeOrder/orderItems/orderItemDetails.productDetails.productDoubleEncryptionStatus", - "notEquals": "Enabled" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Configure Data Factories to disable public network access", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Disable public network access for your Data Factory so that it is not accessible over the public internet. This can reduce data leakage risks. Learn more at: https://docs.microsoft.com/azure/data-factory/data-factory-private-link.", - "metadata": { - "version": "1.0.0", - "category": "Data Factory" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Modify", - "Disabled" - ], - "defaultValue": "Modify" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.DataFactory/factories" - }, - { - "field": "Microsoft.DataFactory/factories/publicNetworkAccess", - "notEquals": "Disabled" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "conflictEffect": "audit", - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "operations": [ - { - "condition": "[greaterOrEquals(requestContext().apiVersion, \u00272018-06-01\u0027)]", - "operation": "addOrReplace", - "field": "Microsoft.DataFactory/factories/publicNetworkAccess", - "value": "Disabled" - } - ] - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Audit Web Applications that are not using latest supported PHP Framework", - "policyType": "BuiltIn", - "mode": "All", - "description": "Use the latest supported PHP version for the latest security classes. Using older classes and types can make your application vulnerable.", - "metadata": { - "version": "1.0.0-deprecated", - "category": "Security Center", - "deprecated": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "allof": [ - { - "field": "type", - "equals": "microsoft.Web/sites" - }, - { - "anyof": [ - { - "field": "kind", - "equals": "app" - }, - { - "field": "kind", - "equals": "WebApp" - }, - { - "field": "kind", - "equals": "app,linux" - }, - { - "field": "kind", - "equals": "app,linux,container" - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Security/complianceResults", - "name": "UseLatestPHP", - "existenceCondition": { - "field": "Microsoft.Security/complianceResults/resourceStatus", - "in": [ - "OffByPolicy", - "Healthy" - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Deploy Diagnostic Settings for Search Services to Log Analytics workspace", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Deploys the diagnostic settings for Search Services to stream to a regional Log Analytics workspace when any Search Services which is missing this diagnostic settings is created or updated.", - "metadata": { - "version": "1.0.0", - "category": "Monitoring" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - }, - "profileName": { - "type": "String", - "metadata": { - "displayName": "Profile name", - "description": "The diagnostic settings profile name" - }, - "defaultValue": "setbypolicy_logAnalytics" - }, - "logAnalytics": { - "type": "String", - "metadata": { - "displayName": "Log Analytics workspace", - "description": "Select Log Analytics workspace from dropdown list. If this workspace is outside of the scope of the assignment you must manually grant \u0027Log Analytics Contributor\u0027 permissions (or similar) to the policy assignment\u0027s principal ID.", - "strongType": "omsWorkspace", - "assignPermissions": true - } - }, - "metricsEnabled": { - "type": "String", - "metadata": { - "displayName": "Enable metrics", - "description": "Whether to enable metrics stream to the Log Analytics workspace - True or False" - }, - "allowedValues": [ - "True", - "False" - ], - "defaultValue": "False" - }, - "logsEnabled": { - "type": "String", - "metadata": { - "displayName": "Enable logs", - "description": "Whether to enable logs stream to the Log Analytics workspace - True or False" - }, - "allowedValues": [ - "True", - "False" - ], - "defaultValue": "True" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Search/searchServices" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Insights/diagnosticSettings", - "name": "[parameters(\u0027profileName\u0027)]", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.Insights/diagnosticSettings/logs.enabled", - "equals": "[parameters(\u0027logsEnabled\u0027)]" - }, - { - "field": "Microsoft.Insights/diagnosticSettings/metrics.enabled", - "equals": "[parameters(\u0027metricsEnabled\u0027)]" - } - ] - }, - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000", - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "deployment": { - "properties": { - "mode": "incremental", - "template": { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "resourceName": { - "type": "string" - }, - "location": { - "type": "string" - }, - "logAnalytics": { - "type": "string" - }, - "metricsEnabled": { - "type": "string" - }, - "logsEnabled": { - "type": "string" - }, - "profileName": { - "type": "string" - } - }, - "variables": {}, - "resources": [ - { - "type": "Microsoft.Search/searchServices/providers/diagnosticSettings", - "apiVersion": "2017-05-01-preview", - "name": "[concat(parameters(\u0027resourceName\u0027), \u0027/\u0027, \u0027Microsoft.Insights/\u0027, parameters(\u0027profileName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "dependsOn": [], - "properties": { - "workspaceId": "[parameters(\u0027logAnalytics\u0027)]", - "metrics": [ - { - "category": "AllMetrics", - "enabled": "[parameters(\u0027metricsEnabled\u0027)]", - "retentionPolicy": { - "enabled": false, - "days": 0 - } - } - ], - "logs": [ - { - "category": "OperationLogs", - "enabled": "[parameters(\u0027logsEnabled\u0027)]" - } - ] - } - } - ], - "outputs": {} - }, - "parameters": { - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "resourceName": { - "value": "[field(\u0027name\u0027)]" - }, - "logAnalytics": { - "value": "[parameters(\u0027logAnalytics\u0027)]" - }, - "metricsEnabled": { - "value": "[parameters(\u0027metricsEnabled\u0027)]" - }, - "logsEnabled": { - "value": "[parameters(\u0027logsEnabled\u0027)]" - }, - "profileName": { - "value": "[parameters(\u0027profileName\u0027)]" - } - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Adaptive network hardening recommendations should be applied on internet facing virtual machines", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Azure Security Center analyzes the traffic patterns of Internet facing virtual machines and provides Network Security Group rule recommendations that reduce the potential attack surface", - "metadata": { - "version": "3.0.0", - "category": "Security Center" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Security/assessments", - "name": "00000000-0000-0000-0000-000000000000", - "existenceCondition": { - "field": "Microsoft.Security/assessments/status.code", - "in": [ - "NotApplicable", - "Healthy" - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "There should be more than one owner assigned to your subscription", - "policyType": "BuiltIn", - "mode": "All", - "description": "It is recommended to designate more than one subscription owner in order to have administrator access redundancy.", - "metadata": { - "version": "3.0.0", - "category": "Security Center" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Resources/subscriptions" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Security/assessments", - "name": "00000000-0000-0000-0000-000000000000", - "existenceCondition": { - "field": "Microsoft.Security/assessments/status.code", - "in": [ - "NotApplicable", - "Healthy" - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1159 - Security Authorization", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Security Assessment and Authorization control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1159" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Virtual machines should encrypt temp disks, caches, and data flows between Compute and Storage resources", - "policyType": "BuiltIn", - "mode": "All", - "description": "By default, a virtual machine\u0027s OS and data disks are encrypted-at-rest using platform-managed keys. Temp disks, data caches and data flowing between compute and storage aren\u0027t encrypted. Disregard this recommendation if: 1. using encryption-at-host, or 2. server-side encryption on Managed Disks meets your security requirements. Learn more in: Server-side encryption of Azure Disk Storage: https://aka.ms/disksse, Different disk encryption offerings: https://aka.ms/diskencryptioncomparison", - "metadata": { - "version": "2.0.3", - "category": "Security Center" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "in": [ - "Microsoft.ClassicCompute/virtualMachines", - "Microsoft.Compute/virtualMachines" - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Security/assessments", - "name": "00000000-0000-0000-0000-000000000000", - "existenceCondition": { - "field": "Microsoft.Security/assessments/status.code", - "in": [ - "NotApplicable", - "Healthy" - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1302 - Identification And Authentication (Org. Users) | Network Access To Non-Privileged Accounts", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Identification and Authentication control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1302" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Configure backup on virtual machines without a given tag to an existing recovery services vault in the same location", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Enforce backup for all virtual machines by backing them up to an existing central recovery services vault in the same location and subscription as the virtual machine. Doing this is useful when there is a central team in your organization managing backups for all resources in a subscription. You can optionally exclude virtual machines containing a specified tag to control the scope of assignment. See https://aka.ms/AzureVMCentralBackupExcludeTag.", - "metadata": { - "version": "6.0.0", - "category": "Backup" - }, - "parameters": { - "vaultLocation": { - "type": "String", - "metadata": { - "displayName": "Location (Specify the location of the VMs that you want to protect)", - "description": "Specify the location of the VMs that you want to protect. VMs should be backed up to a vault in the same location. For example - southeastasia.", - "strongType": "location" - } - }, - "backupPolicyId": { - "type": "String", - "metadata": { - "displayName": "Backup Policy (of type Azure VM from a vault in the location chosen above)", - "description": "Specify the id of the Azure backup policy to configure backup of the virtual machines. The selected Azure backup policy should be of type Azure virtual machine. This policy needs to be in a vault that is present in the location chosen above. For example - /subscriptions/\u003CSubscriptionId\u003E/resourceGroups/\u003CresourceGroupName\u003E/providers/Microsoft.RecoveryServices/vaults/\u003CVaultName\u003E/backupPolicies/\u003CBackupPolicyName\u003E.", - "strongType": "Microsoft.RecoveryServices/vaults/backupPolicies" - } - }, - "exclusionTagName": { - "type": "String", - "metadata": { - "displayName": "Exclusion Tag Name", - "description": "Name of the tag to use for excluding VMs from the scope of this policy. This should be used along with the Exclusion Tag Value parameter. Learn more at https://aka.ms/AppCentricVMBackupPolicy." - }, - "defaultValue": "" - }, - "exclusionTagValue": { - "type": "Array", - "metadata": { - "displayName": "Exclusion Tag Values", - "description": "Value of the tag to use for excluding VMs from the scope of this policy (in case of multiple values, use a comma-separated list). This should be used along with the Exclusion Tag Name parameter. Learn more at https://aka.ms/AppCentricVMBackupPolicy." - }, - "defaultValue": [] - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy." - }, - "allowedValues": [ - "deployIfNotExists", - "auditIfNotExists", - "disabled" - ], - "defaultValue": "deployIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "field": "location", - "equals": "[parameters(\u0027vaultLocation\u0027)]" - }, - { - "field": "id", - "notContains": "/resourceGroups/databricks-rg-" - }, - { - "field": "Microsoft.Compute/imagePublisher", - "notEquals": "azureopenshift" - }, - { - "field": "Microsoft.Compute/imagePublisher", - "notEquals": "AzureDatabricks" - }, - { - "anyOf": [ - { - "not": { - "field": "[concat(\u0027tags[\u0027, parameters(\u0027exclusionTagName\u0027), \u0027]\u0027)]", - "in": "[parameters(\u0027exclusionTagValue\u0027)]" - } - }, - { - "value": "[empty(parameters(\u0027exclusionTagValue\u0027))]", - "equals": "true" - }, - { - "value": "[empty(parameters(\u0027exclusionTagName\u0027))]", - "equals": "true" - } - ] - }, - { - "anyOf": [ - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "in": [ - "2008-R2-SP1", - "2008-R2-SP1-smalldisk", - "2012-Datacenter", - "2012-Datacenter-smalldisk", - "2012-R2-Datacenter", - "2012-R2-Datacenter-smalldisk", - "2016-Datacenter", - "2016-Datacenter-Server-Core", - "2016-Datacenter-Server-Core-smalldisk", - "2016-Datacenter-smalldisk", - "2016-Datacenter-with-Containers", - "2016-Datacenter-with-RDSH", - "2019-Datacenter", - "2019-Datacenter-Core", - "2019-Datacenter-Core-smalldisk", - "2019-Datacenter-Core-with-Containers", - "2019-Datacenter-Core-with-Containers-smalldisk", - "2019-Datacenter-smalldisk", - "2019-Datacenter-with-Containers", - "2019-Datacenter-with-Containers-smalldisk", - "2019-Datacenter-zhcn", - "2019-datacenter-gensecond", - "2022-datacenter-g2", - "2022-datacenter", - "2022-datacenter-azure-edition", - "2022-datacenter-azure-edition-smalldisk", - "2022-datacenter-azure-edition-core", - "2022-datacenter-azure-edition-core-smalldisk", - "2022-datacenter-smalldisk-g2", - "2022-datacenter-smalldisk", - "2022-datacenter-core-g2", - "2022-datacenter-core", - "2022-datacenter-core-smalldisk-g2", - "2022-datacenter-core-smalldisk" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServerSemiAnnual" - }, - { - "field": "Microsoft.Compute/imageSKU", - "in": [ - "Datacenter-Core-1709-smalldisk", - "Datacenter-Core-1709-with-Containers-smalldisk", - "Datacenter-Core-1803-with-Containers-smalldisk" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServerHPCPack" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServerHPCPack" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2019" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2016" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2016-BYOL" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2012R2" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2012R2-BYOL" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftRServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "MLServer-WS2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftVisualStudio" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "VisualStudio", - "Windows" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftDynamicsAX" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Dynamics" - }, - { - "field": "Microsoft.Compute/imageSKU", - "equals": "Pre-Req-AX7-Onebox-U8" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "windows-data-science-vm" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsDesktop" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Windows-10" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "RedHat" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "RHEL", - "RHEL-SAP-HANA" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "like": "6.*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "7*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "SUSE" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "SLES", - "SLES-HPC", - "SLES-HPC-Priority", - "SLES-SAP", - "SLES-SAP-BYOS", - "SLES-Priority", - "SLES-BYOS", - "SLES-SAPCAL", - "SLES-Standard" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "like": "12*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Canonical" - }, - { - "field": "Microsoft.Compute/imageOffer", - "contains": "ubuntu" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "like": "14.04*LTS" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "16.04*LTS" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "18.04*LTS" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "*20_04-lts" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "20_04-lts*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Oracle" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Oracle-Linux" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "like": "6.*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "7.*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "OpenLogic" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "CentOS", - "Centos-LVM", - "CentOS-SRIOV" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "like": "6.*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "7*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloudera" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "cloudera-centos-os" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "7*" - } - ] - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000", - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "type": "Microsoft.RecoveryServices/backupprotecteditems", - "deployment": { - "properties": { - "mode": "incremental", - "template": { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "backupPolicyId": { - "type": "String" - }, - "fabricName": { - "type": "String" - }, - "protectionContainers": { - "type": "String" - }, - "protectedItems": { - "type": "String" - }, - "sourceResourceId": { - "type": "String" - } - }, - "resources": [ - { - "apiVersion": "2017-05-10", - "name": "[concat(\u0027DeployProtection-\u0027,uniqueString(parameters(\u0027protectedItems\u0027)))]", - "type": "Microsoft.Resources/deployments", - "resourceGroup": "[first(skip(split(parameters(\u0027backupPolicyId\u0027), \u0027/\u0027), 4))]", - "subscriptionId": "[first(skip(split(parameters(\u0027backupPolicyId\u0027), \u0027/\u0027), 2))]", - "properties": { - "mode": "Incremental", - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "backupPolicyId": { - "type": "String" - }, - "fabricName": { - "type": "String" - }, - "protectionContainers": { - "type": "String" - }, - "protectedItems": { - "type": "String" - }, - "sourceResourceId": { - "type": "String" - } - }, - "resources": [ - { - "type": "Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems", - "name": "[concat(first(skip(split(parameters(\u0027backupPolicyId\u0027), \u0027/\u0027), 8)), \u0027/\u0027, parameters(\u0027fabricName\u0027), \u0027/\u0027,parameters(\u0027protectionContainers\u0027), \u0027/\u0027, parameters(\u0027protectedItems\u0027))]", - "apiVersion": "2016-06-01", - "properties": { - "protectedItemType": "Microsoft.Compute/virtualMachines", - "policyId": "[parameters(\u0027backupPolicyId\u0027)]", - "sourceResourceId": "[parameters(\u0027sourceResourceId\u0027)]" - } - } - ] - }, - "parameters": { - "backupPolicyId": { - "value": "[parameters(\u0027backupPolicyId\u0027)]" - }, - "fabricName": { - "value": "[parameters(\u0027fabricName\u0027)]" - }, - "protectionContainers": { - "value": "[parameters(\u0027protectionContainers\u0027)]" - }, - "protectedItems": { - "value": "[parameters(\u0027protectedItems\u0027)]" - }, - "sourceResourceId": { - "value": "[parameters(\u0027sourceResourceId\u0027)]" - } - } - } - } - ] - }, - "parameters": { - "backupPolicyId": { - "value": "[parameters(\u0027backupPolicyId\u0027)]" - }, - "fabricName": { - "value": "Azure" - }, - "protectionContainers": { - "value": "[concat(\u0027iaasvmcontainer;iaasvmcontainerv2;\u0027, resourceGroup().name, \u0027;\u0027 ,field(\u0027name\u0027))]" - }, - "protectedItems": { - "value": "[concat(\u0027vm;iaasvmcontainerv2;\u0027, resourceGroup().name, \u0027;\u0027 ,field(\u0027name\u0027))]" - }, - "sourceResourceId": { - "value": "[concat(\u0027/subscriptions/\u0027, subscription().subscriptionId, \u0027/resourceGroups/\u0027, resourceGroup().name, \u0027/providers/Microsoft.Compute/virtualMachines/\u0027,field(\u0027name\u0027))]" - } - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Private endpoint should be enabled for MariaDB servers", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Private endpoint connections enforce secure communication by enabling private connectivity to Azure Database for MariaDB. Configure a private endpoint connection to enable access to traffic coming only from known networks and prevent access from all other IP addresses, including within Azure.", - "metadata": { - "version": "1.0.2", - "category": "SQL" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.DBforMariaDB/servers" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.DBforMariaDB/servers/privateEndpointConnections", - "existenceCondition": { - "field": "Microsoft.DBforMariaDB/servers/privateEndpointConnections/privateLinkServiceConnectionState.status", - "equals": "Approved" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Azure Policy Add-on for Kubernetes service (AKS) should be installed and enabled on your clusters", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Azure Policy Add-on for Kubernetes service (AKS) extends Gatekeeper v3, an admission controller webhook for Open Policy Agent (OPA), to apply at-scale enforcements and safeguards on your clusters in a centralized, consistent manner.", - "metadata": { - "version": "1.0.2", - "category": "Kubernetes" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.ContainerService/managedClusters" - }, - { - "anyOf": [ - { - "field": "Microsoft.ContainerService/managedClusters/addonProfiles.azurePolicy.enabled", - "exists": "false" - }, - { - "field": "Microsoft.ContainerService/managedClusters/addonProfiles.azurePolicy.enabled", - "equals": "false" - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1654 - Voice Over Internet Protocol", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Communications Protection control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1654" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "SQL servers should use customer-managed keys to encrypt data at rest", - "policyType": "BuiltIn", - "mode": "All", - "description": "Implementing Transparent Data Encryption (TDE) with your own key provides increased transparency and control over the TDE Protector, increased security with an HSM-backed external service, and promotion of separation of duties. This recommendation applies to organizations with a related compliance requirement.", - "metadata": { - "version": "2.0.1", - "category": "SQL" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Sql/servers" - }, - { - "value": "[resourcegroup().managedBy]", - "notContains": "/providers/Microsoft.Synapse/" - }, - { - "anyOf": [ - { - "field": "Microsoft.Sql/servers/keyid", - "exists": false - }, - { - "field": "Microsoft.Sql/servers/keyid", - "equals": "" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Sql/servers/encryptionProtector" - }, - { - "value": "[resourcegroup().managedBy]", - "notContains": "/providers/Microsoft.Synapse/" - }, - { - "field": "Microsoft.Sql/servers/encryptionProtector/serverKeyType", - "notequals": "AzureKeyVault" - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Configure Windows Virtual Machine Scale Sets to be associated with a Data Collection Rule", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Deploy Association to link Windows virtual machine scale sets to specified Data Collection Rule. The list of locations and OS images are updated over time as support is increased.", - "metadata": { - "version": "1.0.0", - "category": "Monitoring" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy." - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - }, - "listOfWindowsImageIdToInclude": { - "type": "Array", - "metadata": { - "displayName": "Optional: List of virtual machine scale set images that have supported Windows OS to add to scope", - "description": "Example values: \u0027/subscriptions/\u003CsubscriptionId\u003E/resourceGroups/YourResourceGroup/providers/Microsoft.Compute/images/ContosoStdImage\u0027" - }, - "defaultValue": [] - }, - "dcrResourceId": { - "type": "String", - "metadata": { - "displayName": "Data Collection Rule Resource Id", - "description": "Resource Id of the Data Collection Rule to be applied on the virtual machine sets in scope.", - "strongType": "Microsoft.Insights/dataCollectionRules" - } - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachineScaleSets" - }, - { - "field": "location", - "in": [ - "australiacentral", - "australiacentral2", - "australiaeast", - "australiasoutheast", - "brazilsouth", - "brazilsoutheast", - "canadacentral", - "canadaeast", - "centralindia", - "centralus", - "eastasia", - "eastus2euap", - "eastus", - "eastus2", - "francecentral", - "francesouth", - "germanywestcentral", - "japaneast", - "japanwest", - "jioindiawest", - "koreacentral", - "koreasouth", - "northcentralus", - "northeurope", - "norwayeast", - "norwaywest", - "southafricanorth", - "southcentralus", - "southeastasia", - "southindia", - "switzerlandnorth", - "switzerlandwest", - "uaenorth", - "uksouth", - "ukwest", - "westcentralus", - "westeurope", - "westindia", - "westus", - "westus2" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageId", - "in": "[parameters(\u0027listOfWindowsImageIdToInclude\u0027)]" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "in": [ - "2008-R2-SP1", - "2008-R2-SP1-smalldisk", - "2012-Datacenter", - "2012-Datacenter-smalldisk", - "2012-R2-Datacenter", - "2012-R2-Datacenter-smalldisk", - "2016-Datacenter", - "2016-Datacenter-Server-Core", - "2016-Datacenter-Server-Core-smalldisk", - "2016-Datacenter-smalldisk", - "2016-Datacenter-with-Containers", - "2016-Datacenter-with-RDSH", - "2019-Datacenter", - "2019-Datacenter-Core", - "2019-Datacenter-Core-smalldisk", - "2019-Datacenter-Core-with-Containers", - "2019-Datacenter-Core-with-Containers-smalldisk", - "2019-Datacenter-smalldisk", - "2019-Datacenter-with-Containers", - "2019-Datacenter-with-Containers-smalldisk", - "2019-Datacenter-zhcn", - "2022-datacenter", - "2022-datacenter-azure-edition", - "2022-datacenter-azure-edition-core", - "2022-datacenter-azure-edition-core-smalldisk", - "2022-datacenter-azure-edition-smalldisk", - "2022-datacenter-core", - "2022-datacenter-core-g2", - "2022-datacenter-core-smalldisk", - "2022-datacenter-core-smalldisk-g2", - "2022-datacenter-g2", - "2022-datacenter-smalldisk", - "2022-datacenter-smalldisk-g2" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServerSemiAnnual" - }, - { - "field": "Microsoft.Compute/imageSKU", - "in": [ - "Datacenter-Core-1709-smalldisk", - "Datacenter-Core-1709-with-Containers-smalldisk", - "Datacenter-Core-1803-with-Containers-smalldisk" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServerHPCPack" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServerHPCPack" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2016" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2016-BYOL" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2012R2" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2012R2-BYOL" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftRServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "MLServer-WS2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftVisualStudio" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "VisualStudio", - "Windows" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftDynamicsAX" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Dynamics" - }, - { - "field": "Microsoft.Compute/imageSKU", - "equals": "Pre-Req-AX7-Onebox-U8" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "windows-data-science-vm" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsDesktop" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Windows-10" - } - ] - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Insights/dataCollectionRuleAssociations", - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000", - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "existenceCondition": { - "field": "Microsoft.Insights/dataCollectionRuleAssociations/dataCollectionRuleId", - "equals": "[parameters(\u0027dcrResourceId\u0027)]" - }, - "deployment": { - "properties": { - "mode": "incremental", - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "resourceName": { - "type": "string" - }, - "location": { - "type": "string" - }, - "dcrResourceId": { - "type": "string" - } - }, - "variables": { - "associationName": "[concat(\u0027assoc-\u0027, uniqueString(parameters(\u0027dcrResourceId\u0027)))]" - }, - "resources": [ - { - "name": "[variables(\u0027associationName\u0027)]", - "type": "Microsoft.Insights/dataCollectionRuleAssociations", - "apiVersion": "2021-04-01", - "properties": { - "dataCollectionRuleId": "[parameters(\u0027dcrResourceId\u0027)]" - }, - "scope": "[concat(\u0027Microsoft.Compute/virtualMachineScaleSets/\u0027, parameters(\u0027resourceName\u0027))]" - } - ] - }, - "parameters": { - "resourceName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "dcrResourceId": { - "value": "[parameters(\u0027dcrResourceId\u0027)]" - } - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1402 - Controlled Maintenance | Automated Maintenance Activities", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Maintenance control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1402" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1428 - Media Access", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Media Protection control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1428" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Audit resource location matches resource group location", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Audit that the resource location matches its resource group location", - "metadata": { - "version": "2.0.0", - "category": "General" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "location", - "notEquals": "[resourcegroup().location]" - }, - { - "field": "location", - "notEquals": "global" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Deploy prerequisites to audit Windows VMs configurations in \u0027System Audit Policies - Account Management\u0027", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: \u0027System Audit Policies - Account Management\u0027. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol", - "metadata": { - "version": "1.2.0-deprecated", - "category": "Guest Configuration", - "requiredProviders": [ - "Microsoft.GuestConfiguration" - ], - "deprecated": true - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "dsvm-windows" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - } - ] - }, - "then": { - "effect": "deployIfNotExists", - "details": { - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "AzureBaseline_SystemAuditPoliciesAccountManagement", - "deployment": { - "properties": { - "mode": "incremental", - "parameters": { - "vmName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "type": { - "value": "[field(\u0027type\u0027)]" - }, - "configurationName": { - "value": "AzureBaseline_SystemAuditPoliciesAccountManagement" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "vmName": { - "type": "string" - }, - "location": { - "type": "string" - }, - "type": { - "type": "string" - }, - "configurationName": { - "type": "string" - } - }, - "resources": [ - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027microsoft.hybridcompute/machines\u0027))]", - "apiVersion": "2018-11-20", - "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/Microsoft.GuestConfiguration/\u0027, parameters(\u0027configurationName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "guestConfiguration": { - "name": "[parameters(\u0027configurationName\u0027)]", - "version": "1.*" - } - } - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2018-11-20", - "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/Microsoft.GuestConfiguration/\u0027, parameters(\u0027configurationName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "guestConfiguration": { - "name": "[parameters(\u0027configurationName\u0027)]", - "version": "1.*" - } - } - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2019-07-01", - "type": "Microsoft.Compute/virtualMachines", - "identity": { - "type": "SystemAssigned" - }, - "name": "[parameters(\u0027vmName\u0027)]", - "location": "[parameters(\u0027location\u0027)]" - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2019-07-01", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/AzurePolicyforWindows\u0027)]", - "type": "Microsoft.Compute/virtualMachines/extensions", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "publisher": "Microsoft.GuestConfiguration", - "type": "ConfigurationforWindows", - "typeHandlerVersion": "1.1", - "autoUpgradeMinorVersion": true, - "settings": {}, - "protectedSettings": {} - }, - "dependsOn": [ - "[concat(\u0027Microsoft.Compute/virtualMachines/\u0027,parameters(\u0027vmName\u0027),\u0027/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/\u0027,parameters(\u0027configurationName\u0027))]" - ] - } - ] - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Azure Defender for open-source relational databases should be enabled", - "policyType": "BuiltIn", - "mode": "All", - "description": "Azure Defender for open-source relational databases detects anomalous activities indicating unusual and potentially harmful attempts to access or exploit databases. Learn more about the capabilities of Azure Defender for open-source relational databases at https://aka.ms/AzDforOpenSourceDBsDocu. Important: Enabling this plan will result in charges for protecting your open-source relational databases. Learn about the pricing on Security Center\u0027s pricing page: https://aka.ms/pricing-security-center", - "metadata": { - "version": "1.0.0", - "category": "Security Center" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Resources/subscriptions" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Security/pricings", - "name": "OpenSourceRelationalDatabases", - "existenceScope": "subscription", - "existenceCondition": { - "field": "Microsoft.Security/pricings/pricingTier", - "equals": "Standard" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Azure Container Instance container group should use customer-managed key for encryption", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Secure your containers with greater flexibility using customer-managed keys. When you specify a customer-managed key, that key is used to protect and control access to the key that encrypts your data. Using customer-managed keys provides additional capabilities to control rotation of the key encryption key or cryptographically erase data.", - "metadata": { - "version": "1.0.0", - "category": "Container Instance" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Disabled", - "Deny" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.ContainerInstance/containerGroups" - }, - { - "anyOf": [ - { - "field": "Microsoft.ContainerInstance/containerGroups/encryptionProperties.vaultBaseUrl", - "exists": false - }, - { - "field": "Microsoft.ContainerInstance/containerGroups/encryptionProperties.keyName", - "exists": false - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1044 - Unsuccessful Logon Attempts", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Access Control control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1044" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Preview]: Configure Azure Arc enabled Kubernetes clusters to install the Azure Policy extension", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Deploy Azure Policy\u0027s extension for Azure Arc to provide at-scale enforcements and safeguard your Arc enabled Kubernetes clusters in a centralized, consistent manner. Learn more at https://aka.ms/akspolicydoc.", - "metadata": { - "version": "1.0.0-preview", - "category": "Kubernetes", - "preview": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Kubernetes/connectedClusters" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.KubernetesConfiguration/extensions", - "existenceCondition": { - "field": "Microsoft.KubernetesConfiguration/extensions/extensionType", - "equals": "microsoft.policyinsights" - }, - "roleDefinitionIds": [ - "/providers/Microsoft.Authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "deployment": { - "properties": { - "mode": "incremental", - "parameters": { - "clusterRegion": { - "value": "[field(\u0027location\u0027)]" - }, - "clusterResourceId": { - "value": "[field(\u0027id\u0027)]" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2018-05-01/subscriptionDeploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "clusterRegion": { - "type": "string" - }, - "clusterResourceId": { - "type": "string" - } - }, - "resources": [ - { - "type": "Microsoft.KubernetesConfiguration/extensions", - "apiVersion": "2021-09-01", - "name": "azurepolicy", - "location": "[parameters(\u0027clusterRegion\u0027)]", - "identity": { - "type": "SystemAssigned" - }, - "properties": { - "extensionType": "microsoft.policyinsights", - "configurationSettings": {}, - "configurationProtectedSettings": {}, - "autoUpgradeMinorVersion": true, - "releaseTrain": "Stable", - "scope": { - "Cluster": { - "releaseNamespace": "kube-system" - } - } - }, - "scope": "[concat(\u0027Microsoft.Kubernetes/connectedClusters/\u0027, split(parameters(\u0027clusterResourceId\u0027),\u0027/\u0027)[8])]" - } - ] - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1253 - Contingency Plan | Resume Essential Missions / Business Functions", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Contingency Planning control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1253" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Configure Azure Web PubSub Service to use private DNS zones", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Use private DNS zones to override the DNS resolution for a private endpoint. A private DNS zone links to your virtual network to resolve to Azure Web PubSub service. Learn more at: https://aka.ms/awps/privatelink.", - "metadata": { - "version": "1.0.0", - "category": "Web PubSub" - }, - "parameters": { - "privateDnsZoneId": { - "type": "String", - "metadata": { - "displayName": "Private DNS Zone Id", - "description": "Private DNS zone to integrate with private endpoint.", - "strongType": "Microsoft.Network/privateDnsZones" - } - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Network/privateEndpoints" - }, - { - "count": { - "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*].groupIds[*]", - "where": { - "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*].groupIds[*]", - "equals": "webpubsub" - } - }, - "greaterOrEquals": 1 - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups", - "roleDefinitionIds": [ - "/providers/Microsoft.Authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "deployment": { - "properties": { - "mode": "incremental", - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "privateDnsZoneId": { - "type": "string" - }, - "privateEndpointName": { - "type": "string" - }, - "location": { - "type": "string" - } - }, - "resources": [ - { - "name": "[concat(parameters(\u0027privateEndpointName\u0027), \u0027/deployedByPolicy\u0027)]", - "type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups", - "apiVersion": "2020-03-01", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "privateDnsZoneConfigs": [ - { - "name": "privatelink-webpubsub-azure-com", - "properties": { - "privateDnsZoneId": "[parameters(\u0027privateDnsZoneId\u0027)]" - } - } - ] - } - } - ] - }, - "parameters": { - "privateDnsZoneId": { - "value": "[parameters(\u0027privateDnsZoneId\u0027)]" - }, - "privateEndpointName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - } - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Email notification to subscription owner for high severity alerts should be enabled", - "policyType": "BuiltIn", - "mode": "All", - "description": "To ensure your subscription owners are notified when there is a potential security breach in their subscription, set email notifications to subscription owners for high severity alerts in Security Center.", - "metadata": { - "version": "2.0.0", - "category": "Security Center" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Resources/subscriptions" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Security/securityContacts", - "existenceScope": "subscription", - "existenceCondition": { - "not": { - "allOf": [ - { - "field": "Microsoft.Security/securityContacts/alertsToAdmins", - "equals": "Off" - }, - { - "field": "Microsoft.Security/securityContacts/alertNotifications.minimalSeverity", - "equals": "High" - } - ] - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1046 - Automatic Account Lock | Purge / Wipe Mobile Device", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Access Control control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1046" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1020 - Account Management | Role-Based Schemes", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Access Control control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1020" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Key vaults should have purge protection enabled", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Malicious deletion of a key vault can lead to permanent data loss. A malicious insider in your organization can potentially delete and purge key vaults. Purge protection protects you from insider attacks by enforcing a mandatory retention period for soft deleted key vaults. No one inside your organization or Microsoft will be able to purge your key vaults during the soft delete retention period.", - "metadata": { - "version": "2.0.0", - "category": "Key Vault" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.KeyVault/vaults" - }, - { - "not": { - "field": "Microsoft.KeyVault/vaults/createMode", - "equals": "recover" - } - }, - { - "anyOf": [ - { - "field": "Microsoft.KeyVault/vaults/enableSoftDelete", - "exists": "false" - }, - { - "field": "Microsoft.KeyVault/vaults/enablePurgeProtection", - "exists": "false" - }, - { - "field": "Microsoft.KeyVault/vaults/enableSoftDelete", - "equals": "false" - }, - { - "field": "Microsoft.KeyVault/vaults/enablePurgeProtection", - "equals": "false" - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1115 - Audit Review, Analysis, And Reporting", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Audit and Accountability control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1115" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Azure Cosmos DB throughput should be limited", - "policyType": "BuiltIn", - "mode": "All", - "description": "This policy enables you to restrict the maximum throughput your organization can specify when creating Azure Cosmos DB databases and containers through the resource provider. It blocks the creation of autoscale resources.", - "metadata": { - "version": "1.0.0", - "category": "Cosmos DB" - }, - "parameters": { - "throughputMax": { - "type": "Integer", - "metadata": { - "displayName": "Max RUs", - "description": "The maximum throughput (RU/s) that can be assigned to a container via the Resource Provider during create or update." - } - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Policy Effect", - "description": "The desired effect of the policy." - }, - "allowedValues": [ - "audit", - "deny", - "disabled" - ], - "defaultValue": "deny" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "anyOf": [ - { - "field": "type", - "like": "Microsoft.DocumentDB/databaseAccounts/*/throughputSettings" - }, - { - "field": "type", - "in": [ - "Microsoft.DocumentDB/databaseAccounts/sqlDatabases", - "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers", - "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases", - "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/collections", - "Microsoft.DocumentDB/databaseAccounts/gremlinDatabases", - "Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/graphs", - "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces", - "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/tables", - "Microsoft.DocumentDB/databaseAccounts/tables" - ] - } - ] - }, - { - "anyOf": [ - { - "value": "[requestContext().apiVersion]", - "less": "2019-08-01" - }, - { - "value": "[if(equals(field(\u0027Microsoft.DocumentDB/databaseAccounts/sqlDatabases/options.throughput\u0027), \u0027\u0027), 0, int(field(\u0027Microsoft.DocumentDB/databaseAccounts/sqlDatabases/options.throughput\u0027)))]", - "greater": "[parameters(\u0027throughputMax\u0027)]" - }, - { - "field": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/options", - "containsKey": "ProvisionedThroughputSettings" - }, - { - "field": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/throughputSettings/default.resource.throughput", - "greater": "[parameters(\u0027throughputMax\u0027)]" - }, - { - "field": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/throughputSettings/default.resource.provisionedThroughputSettings", - "exists": "true" - }, - { - "value": "[if(equals(field(\u0027Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/options.throughput\u0027), \u0027\u0027), 0, int(field(\u0027Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/options.throughput\u0027)))]", - "greater": "[parameters(\u0027throughputMax\u0027)]" - }, - { - "field": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/options", - "containsKey": "ProvisionedThroughputSettings" - }, - { - "field": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/throughputSettings/default.resource.throughput", - "greater": "[parameters(\u0027throughputMax\u0027)]" - }, - { - "field": "Microsoft.DocumentDB/databaseAccounts/sqlDatabases/containers/throughputSettings/default.resource.provisionedThroughputSettings", - "exists": "true" - }, - { - "value": "[if(equals(field(\u0027Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/options.throughput\u0027), \u0027\u0027), 0, int(field(\u0027Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/options.throughput\u0027)))]", - "greater": "[parameters(\u0027throughputMax\u0027)]" - }, - { - "field": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/options", - "containsKey": "ProvisionedThroughputSettings" - }, - { - "field": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/throughputSettings/default.resource.throughput", - "greater": "[parameters(\u0027throughputMax\u0027)]" - }, - { - "field": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/throughputSettings/default.resource.provisionedThroughputSettings", - "exists": "true" - }, - { - "value": "[if(equals(field(\u0027Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/tables/options.throughput\u0027), \u0027\u0027), 0, int(field(\u0027Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/tables/options.throughput\u0027)))]", - "greater": "[parameters(\u0027throughputMax\u0027)]" - }, - { - "field": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/tables/options", - "containsKey": "ProvisionedThroughputSettings" - }, - { - "field": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/tables/throughputSettings/default.resource.throughput", - "greater": "[parameters(\u0027throughputMax\u0027)]" - }, - { - "field": "Microsoft.DocumentDB/databaseAccounts/cassandraKeyspaces/tables/throughputSettings/default.resource.provisionedThroughputSettings", - "exists": "true" - }, - { - "value": "[if(equals(field(\u0027Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/options.throughput\u0027), \u0027\u0027), 0, int(field(\u0027Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/options.throughput\u0027)))]", - "greater": "[parameters(\u0027throughputMax\u0027)]" - }, - { - "field": "Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/options", - "containsKey": "ProvisionedThroughputSettings" - }, - { - "field": "Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/throughputSettings/default.resource.throughput", - "greater": "[parameters(\u0027throughputMax\u0027)]" - }, - { - "field": "Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/throughputSettings/default.resource.provisionedThroughputSettings", - "exists": "true" - }, - { - "value": "[if(equals(field(\u0027Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/graphs/options.throughput\u0027), \u0027\u0027), 0, int(field(\u0027Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/graphs/options.throughput\u0027)))]", - "greater": "[parameters(\u0027throughputMax\u0027)]" - }, - { - "field": "Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/graphs/options", - "containsKey": "ProvisionedThroughputSettings" - }, - { - "field": "Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/graphs/throughputSettings/default.resource.throughput", - "greater": "[parameters(\u0027throughputMax\u0027)]" - }, - { - "field": "Microsoft.DocumentDB/databaseAccounts/gremlinDatabases/graphs/throughputSettings/default.resource.provisionedThroughputSettings", - "exists": "true" - }, - { - "value": "[if(equals(field(\u0027Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/options.throughput\u0027), \u0027\u0027), 0, int(field(\u0027Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/options.throughput\u0027)))]", - "greater": "[parameters(\u0027throughputMax\u0027)]" - }, - { - "field": "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/options", - "containsKey": "ProvisionedThroughputSettings" - }, - { - "field": "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/throughputSettings/default.resource.throughput", - "greater": "[parameters(\u0027throughputMax\u0027)]" - }, - { - "field": "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/throughputSettings/default.resource.provisionedThroughputSettings", - "exists": "true" - }, - { - "value": "[if(equals(field(\u0027Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/collections/options.throughput\u0027), \u0027\u0027), 0, int(field(\u0027Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/collections/options.throughput\u0027)))]", - "greater": "[parameters(\u0027throughputMax\u0027)]" - }, - { - "field": "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/collections/options", - "containsKey": "ProvisionedThroughputSettings" - }, - { - "field": "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/collections/throughputSettings/default.resource.throughput", - "greater": "[parameters(\u0027throughputMax\u0027)]" - }, - { - "field": "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/collections/throughputSettings/default.resource.provisionedThroughputSettings", - "exists": "true" - }, - { - "value": "[if(equals(field(\u0027Microsoft.DocumentDB/databaseAccounts/tables/options.throughput\u0027), \u0027\u0027), 0, int(field(\u0027Microsoft.DocumentDB/databaseAccounts/tables/options.throughput\u0027)))]", - "greater": "[parameters(\u0027throughputMax\u0027)]" - }, - { - "field": "Microsoft.DocumentDB/databaseAccounts/tables/options", - "containsKey": "ProvisionedThroughputSettings" - }, - { - "field": "Microsoft.DocumentDB/databaseAccounts/tables/throughputSettings/default.resource.throughput", - "greater": "[parameters(\u0027throughputMax\u0027)]" - }, - { - "field": "Microsoft.DocumentDB/databaseAccounts/tables/throughputSettings/default.resource.provisionedThroughputSettings", - "exists": "true" - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1239 - User-Installed Software", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Configuration Management control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1239" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Ensure API app has \u0027Client Certificates (Incoming client certificates)\u0027 set to \u0027On\u0027", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Client certificates allow for the app to request a certificate for incoming requests. Only clients that have a valid certificate will be able to reach the app.", - "metadata": { - "version": "1.0.0", - "category": "App Service" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Web/sites" - }, - { - "field": "kind", - "like": "*api" - }, - { - "field": "Microsoft.Web/sites/clientCertEnabled", - "equals": "false" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Private endpoint connections on Automation Accounts should be enabled", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Private endpoint connections allow secure communication by enabling private connectivity to Automation accounts without a need for public IP addresses at the source or destination. Learn more about private endpoints in Azure Automation at https://docs.microsoft.com/azure/automation/how-to/private-link-security", - "metadata": { - "version": "1.0.0", - "category": "Automation" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Automation/automationAccounts" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Automation/automationAccounts/privateEndpointConnections", - "existenceCondition": { - "field": "Microsoft.Automation/automationAccounts/privateEndpointConnections/privateLinkServiceConnectionState.status", - "equals": "Approved" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Application Insights components with Private Link enabled should use Bring Your Own Storage accounts for profiler and debugger.", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "To support private link and customer-managed key policies, create your own storage account for profiler and debugger. Learn more in https://docs.microsoft.com/azure/azure-monitor/app/profiler-bring-your-own-storage", - "metadata": { - "version": "1.0.0", - "category": "Monitoring" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Deny", - "Audit", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Insights/components" - }, - { - "field": "Microsoft.Insights/components/ForceCustomerStorageForProfiler", - "notEquals": "true" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1496 - System Security Plan", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Planning control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1496" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: SQL servers should use customer-managed keys to encrypt data at rest", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "This policy is deprecated. Please use /providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000 instead.", - "metadata": { - "version": "2.0.1-deprecated", - "category": "SQL", - "deprecated": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Sql/servers" - }, - { - "field": "kind", - "notContains": "analytics" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Sql/servers/encryptionProtector", - "name": "current", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.Sql/servers/encryptionProtector/serverKeyType", - "equals": "AzureKeyVault" - }, - { - "field": "Microsoft.Sql/servers/encryptionProtector/uri", - "notEquals": "" - }, - { - "field": "Microsoft.Sql/servers/encryptionProtector/uri", - "exists": "true" - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Private endpoint should be enabled for IoT Hub", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Private endpoint connections enforce secure communication by enabling private connectivity to IoT Hub. Configure a private endpoint connection to enable access to traffic coming only from known networks and prevent access from all other IP addresses, including within Azure.", - "metadata": { - "version": "1.0.0", - "category": "Internet of Things" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Devices/IotHubs" - }, - { - "count": { - "field": "Microsoft.Devices/IotHubs/privateEndpointConnections[*]", - "where": { - "field": "Microsoft.Devices/IotHubs/privateEndpointConnections[*].privateLinkServiceConnectionState.status", - "equals": "Approved" - } - }, - "less": 1 - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1518 - Personnel Termination", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Personnel Security control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1518" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1713 - Software, Firmware, And Information Integrity | Integrity Checks", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Information Integrity control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1713" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1466 - Visitor Access Records", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Physical and Environmental Protection control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1466" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Show audit results from Windows VMs on which Windows Defender Exploit Guard is not enabled", - "policyType": "BuiltIn", - "mode": "All", - "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines on which Windows Defender Exploit Guard is not enabled. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol", - "metadata": { - "version": "1.0.0-deprecated", - "category": "Guest Configuration", - "deprecated": true - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "dsvm-windows" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - } - ] - }, - "then": { - "effect": "auditIfNotExists", - "details": { - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "WindowsDefenderExploitGuard", - "existenceCondition": { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus", - "equals": "Compliant" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Managed identity should be used in your Function App", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Use a managed identity for enhanced authentication security", - "metadata": { - "version": "2.0.0", - "category": "App Service" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Web/sites" - }, - { - "field": "kind", - "like": "functionapp*" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Web/sites/config", - "name": "web", - "existenceCondition": { - "anyOf": [ - { - "field": "Microsoft.Web/sites/config/managedServiceIdentityId", - "exists": "true" - }, - { - "field": "Microsoft.Web/sites/config/xmanagedServiceIdentityId", - "exists": "true" - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Deploy a flow log resource with target network security group", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Configures flow log for specific network security group. It will allow to log information about IP traffic flowing through an network security group. Flow log helps to identify unknown or undesired traffic, verify network isolation and compliance with enterprise access rules, analyze network flows from compromised IPs and network interfaces.", - "metadata": { - "version": "1.0.1", - "category": "Network" - }, - "parameters": { - "nsgRegion": { - "type": "String", - "metadata": { - "displayName": "NSG Region", - "description": "This Policy will review NSGs only in the selected region. You can create other assignments to include other regions.", - "strongType": "location" - } - }, - "storageId": { - "type": "String", - "metadata": { - "displayName": "Storage id", - "description": "A string with the storage id for the flowlogs to be sent to. It will be used for deployment purposes only. Make sure this storage account is located in the same region as the NSG. The format must be: \u0027/subscriptions/{subscription id}/resourceGroups/{resourceGroup name}/providers/Microsoft.Storage/storageAccounts/{storage account name}", - "assignPermissions": true - } - }, - "networkWatcherRG": { - "type": "String", - "metadata": { - "displayName": "Network Watchers RG", - "description": "The name of the resource group where the flowLog resources will be created. This will be used only if a deployment is required. This is the resource group where the Network Watchers are located.", - "strongType": "existingResourceGroups" - } - }, - "networkWatcherName": { - "type": "String", - "metadata": { - "displayName": "Network Watcher name", - "description": "The name of the network watcher under which the flowLog resources will be created. Make sure it belongs to the same region as the NSG." - } - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Network/networkSecurityGroups" - }, - { - "field": "location", - "equals": "[parameters(\u0027nsgRegion\u0027)]" - } - ] - }, - "then": { - "effect": "deployIfNotExists", - "details": { - "type": "Microsoft.Network/networkWatchers/flowlogs", - "resourceGroupName": "[if(empty(coalesce(field(\u0027Microsoft.Network/networkSecurityGroups/flowLogs\u0027))), parameters(\u0027networkWatcherRG\u0027), split(first(field(\u0027Microsoft.Network/networkSecurityGroups/flowLogs[*].id\u0027)), \u0027/\u0027)[4])]", - "name": "[if(empty(coalesce(field(\u0027Microsoft.Network/networkSecurityGroups/flowLogs[*].id\u0027))), \u0027null/null\u0027, concat(split(first(field(\u0027Microsoft.Network/networkSecurityGroups/flowLogs[*].id\u0027)), \u0027/\u0027)[8], \u0027/\u0027, split(first(field(\u0027Microsoft.Network/networkSecurityGroups/flowLogs[*].id\u0027)), \u0027/\u0027)[10]))]", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.Network/networkWatchers/flowLogs/enabled", - "equals": "true" - }, - { - "field": "Microsoft.Network/networkWatchers/flowLogs/storageId", - "equals": "[parameters(\u0027storageId\u0027)]" - } - ] - }, - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "deployment": { - "properties": { - "mode": "incremental", - "template": { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "storageId": { - "type": "String" - }, - "networkWatcherRG": { - "type": "String" - }, - "networkWatcherName": { - "type": "String" - }, - "flowlogName": { - "type": "String" - }, - "location": { - "type": "String" - }, - "targetResource": { - "type": "string" - } - }, - "resources": [ - { - "type": "Microsoft.Resources/deployments", - "name": "[concat(\u0027flowlogDeployment-\u0027, uniqueString(parameters(\u0027flowlogName\u0027)))]", - "apiVersion": "2019-10-01", - "resourceGroup": "[parameters(\u0027networkWatcherRG\u0027)]", - "properties": { - "mode": "incremental", - "parameters": {}, - "template": { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": {}, - "resources": [ - { - "type": "Microsoft.Network/networkWatchers/flowLogs", - "name": "[concat(parameters(\u0027networkWatcherName\u0027), \u0027/\u0027, parameters(\u0027flowlogName\u0027))]", - "apiVersion": "2019-11-01", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "targetResourceId": "[parameters(\u0027targetResource\u0027)]", - "storageId": "[parameters(\u0027storageId\u0027)]", - "enabled": "true", - "retentionPolicy": { - "days": "0", - "enabled": "false" - } - } - } - ] - } - } - } - ] - }, - "parameters": { - "storageId": { - "value": "[parameters(\u0027storageId\u0027)]" - }, - "networkWatcherRG": { - "value": "[if(empty(coalesce(field(\u0027Microsoft.Network/networkSecurityGroups/flowLogs\u0027))), parameters(\u0027networkWatcherRG\u0027), split(first(field(\u0027Microsoft.Network/networkSecurityGroups/flowLogs[*].id\u0027)), \u0027/\u0027)[4])]" - }, - "networkWatcherName": { - "value": "[if(empty(coalesce(field(\u0027Microsoft.Network/networkSecurityGroups/flowLogs\u0027))), parameters(\u0027networkWatcherName\u0027), split(first(field(\u0027Microsoft.Network/networkSecurityGroups/flowLogs[*].id\u0027)), \u0027/\u0027)[8])]" - }, - "flowlogName": { - "value": "[if(empty(coalesce(field(\u0027Microsoft.Network/networkSecurityGroups/flowLogs\u0027))), concat(field(\u0027name\u0027), \u0027-\u0027, resourceGroup().name, \u0027-\u0027, \u0027flowlog\u0027), split(first(field(\u0027Microsoft.Network/networkSecurityGroups/flowLogs[*].id\u0027)), \u0027/\u0027)[10])]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "targetResource": { - "value": "[concat(resourceGroup().id, \u0027/providers/Microsoft.Network/networkSecurityGroups/\u0027, field(\u0027name\u0027))]" - } - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1718 - Software, Firmware, And Information Integrity | Binary Or Machine Executable Code", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Information Integrity control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1718" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Modify - Configure Azure File Sync to disable public network access", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "The Azure File Sync\u0027s internet-accessible public endpoint are disabled by your organizational policy. You may still access the Storage Sync Service via its private endpoint(s).", - "metadata": { - "version": "1.0.0", - "category": "Storage" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Modify", - "Disabled" - ], - "defaultValue": "Modify" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.StorageSync/storageSyncServices" - }, - { - "field": "Microsoft.StorageSync/storageSyncServices/incomingTrafficPolicy", - "notEquals": "AllowVirtualNetworksOnly" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "conflictEffect": "Audit", - "operations": [ - { - "condition": "[greater(requestContext().apiVersion, \u00272019-10-01\u0027)]", - "operation": "addOrReplace", - "field": "Microsoft.StorageSync/storageSyncServices/incomingTrafficPolicy", - "value": "AllowVirtualNetworksOnly" - } - ] - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Authorized IP ranges should be defined on Kubernetes Services", - "policyType": "BuiltIn", - "mode": "All", - "description": "Restrict access to the Kubernetes Service Management API by granting API access only to IP addresses in specific ranges. It is recommended to limit access to authorized IP ranges to ensure that only applications from allowed networks can access the cluster.", - "metadata": { - "version": "2.0.1", - "category": "Security Center" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.ContainerService/managedClusters" - }, - { - "field": "Microsoft.ContainerService/managedClusters/apiServerAccessProfile.authorizedIPRanges", - "exists": "false" - }, - { - "anyOf": [ - { - "field": "Microsoft.ContainerService/managedClusters/apiServerAccessProfile.enablePrivateCluster", - "exists": "false" - }, - { - "field": "Microsoft.ContainerService/managedClusters/apiServerAccessProfile.enablePrivateCluster", - "equals": "false" - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Remote debugging should be turned off for Function Apps", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Remote debugging requires inbound ports to be opened on function apps. Remote debugging should be turned off.", - "metadata": { - "version": "1.0.0", - "category": "App Service" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Web/sites" - }, - { - "field": "kind", - "like": "functionapp*" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Web/sites/config", - "existenceCondition": { - "field": "Microsoft.Web/sites/config/web.remoteDebuggingEnabled", - "equals": "false" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Azure Defender for Key Vault should be enabled", - "policyType": "BuiltIn", - "mode": "All", - "description": "Azure Defender for Key Vault provides an additional layer of protection and security intelligence by detecting unusual and potentially harmful attempts to access or exploit key vault accounts.", - "metadata": { - "version": "1.0.3", - "category": "Security Center" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Resources/subscriptions" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Security/pricings", - "name": "KeyVaults", - "existenceScope": "subscription", - "existenceCondition": { - "field": "Microsoft.Security/pricings/pricingTier", - "equals": "Standard" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Geo-redundant backup should be enabled for Azure Database for MariaDB", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Azure Database for MariaDB allows you to choose the redundancy option for your database server. It can be set to a geo-redundant backup storage in which the data is not only stored within the region in which your server is hosted, but is also replicated to a paired region to provide recovery option in case of a region failure. Configuring geo-redundant storage for backup is only allowed during server create.", - "metadata": { - "version": "1.0.1", - "category": "SQL" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.DBforMariaDB/servers" - }, - { - "field": "Microsoft.DBforMariaDB/servers/storageProfile.geoRedundantBackup", - "notEquals": "Enabled" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Deploy prerequisites to enable Guest Configuration Policy on Windows VMs.", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "This policy creates a system-assigned managed identity and deploys the VM extension for Guest Configuration on Windows VMs. This is a prerequisite for Guest Configuration Policy and must be assigned to the scope before using any Guest Configuration policy. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol.", - "metadata": { - "version": "1.2.0-deprecated", - "category": "Guest Configuration", - "requiredProviders": [ - "Microsoft.GuestConfiguration" - ], - "deprecated": true - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "dsvm-windows" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - "then": { - "effect": "deployIfNotExists", - "details": { - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "type": "Microsoft.Compute/virtualMachines/extensions", - "name": "AzurePolicyforWindows", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.Compute/virtualMachines/extensions/publisher", - "equals": "Microsoft.GuestConfiguration" - }, - { - "field": "Microsoft.Compute/virtualMachines/extensions/type", - "equals": "ConfigurationforWindows" - }, - { - "field": "Microsoft.Compute/virtualMachines/extensions/provisioningState", - "equals": "Succeeded" - } - ] - }, - "deployment": { - "properties": { - "mode": "incremental", - "parameters": { - "vmName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "vmName": { - "type": "string" - }, - "location": { - "type": "string" - } - }, - "resources": [ - { - "apiVersion": "2019-07-01", - "type": "Microsoft.Compute/virtualMachines", - "identity": { - "type": "SystemAssigned" - }, - "name": "[parameters(\u0027vmName\u0027)]", - "location": "[parameters(\u0027location\u0027)]" - }, - { - "apiVersion": "2019-07-01", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/AzurePolicyforWindows\u0027)]", - "type": "Microsoft.Compute/virtualMachines/extensions", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "publisher": "Microsoft.GuestConfiguration", - "type": "ConfigurationforWindows", - "typeHandlerVersion": "1.1", - "autoUpgradeMinorVersion": true, - "settings": {}, - "protectedSettings": {} - } - } - ] - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1601 - Developer Security Testing And Evaluation", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Services Acquisition control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1601" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Configure Batch accounts with private endpoints", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Private endpoints connect your virtual network to Azure services without a public IP address at the source or destination. By mapping private endpoints to Batch accounts, you can reduce data leakage risks. Learn more about private links at: https://docs.microsoft.com/azure/batch/private-connectivity.", - "metadata": { - "version": "1.0.0", - "category": "Batch" - }, - "parameters": { - "privateEndpointSubnetId": { - "type": "String", - "metadata": { - "displayName": "Private endpoint subnet id", - "description": "A subnet with private endpoint network policies disabled", - "strongType": "Microsoft.Network/virtualNetworks/subnets" - } - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Batch/batchAccounts" - }, - { - "field": "Microsoft.Batch/batchAccounts/publicNetworkAccess", - "equals": "Disabled" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Batch/batchAccounts/privateEndpointConnections", - "existenceCondition": { - "field": "Microsoft.Batch/batchAccounts/privateEndpointConnections/privateLinkServiceConnectionState.status", - "equals": "Approved" - }, - "roleDefinitionIds": [ - "/providers/Microsoft.Authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "deployment": { - "properties": { - "mode": "incremental", - "parameters": { - "name": { - "value": "[field(\u0027name\u0027)]" - }, - "serviceId": { - "value": "[field(\u0027id\u0027)]" - }, - "privateEndpointSubnetId": { - "value": "[parameters(\u0027privateEndpointSubnetId\u0027)]" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "name": { - "type": "string" - }, - "serviceId": { - "type": "string" - }, - "privateEndpointSubnetId": { - "type": "string" - } - }, - "variables": { - "privateEndpointName": "[concat(\u0027pe-\u0027,substring(parameters(\u0027name\u0027),0,min(length(parameters(\u0027name\u0027)),50)),\u0027-\u0027,uniquestring(deployment().name))]" - }, - "resources": [ - { - "type": "Microsoft.Resources/deployments", - "name": "[variables(\u0027privateEndpointName\u0027)]", - "apiVersion": "2020-06-01", - "properties": { - "mode": "Incremental", - "expressionEvaluationOptions": { - "scope": "inner" - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "serviceId": { - "type": "string" - }, - "privateEndpointSubnetId": { - "type": "string" - }, - "subnetLocation": { - "type": "string" - } - }, - "variables": { - "privateEndpointName": "[deployment().name]" - }, - "resources": [ - { - "name": "[variables(\u0027privateEndpointName\u0027)]", - "type": "Microsoft.Network/privateEndpoints", - "apiVersion": "2020-07-01", - "location": "[parameters(\u0027subnetLocation\u0027)]", - "tags": {}, - "properties": { - "subnet": { - "id": "[parameters(\u0027privateEndpointSubnetId\u0027)]" - }, - "privateLinkServiceConnections": [ - { - "name": "[variables(\u0027privateEndpointName\u0027)]", - "properties": { - "privateLinkServiceId": "[parameters(\u0027serviceId\u0027)]", - "groupIds": [ - "batchAccount" - ], - "requestMessage": "autoapprove" - } - } - ], - "manualPrivateLinkServiceConnections": [] - } - } - ] - }, - "parameters": { - "serviceId": { - "value": "[parameters(\u0027serviceId\u0027)]" - }, - "privateEndpointSubnetId": { - "value": "[parameters(\u0027privateEndpointSubnetId\u0027)]" - }, - "subnetLocation": { - "value": "[reference(first(take(split(parameters(\u0027privateEndpointSubnetId\u0027),\u0027/subnets\u0027),1)),\u00272020-07-01\u0027,\u0027Full\u0027).location]" - } - } - } - } - ] - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Preview]: Audit Azure Spring Cloud instances where distributed tracing is not enabled", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Distributed tracing tools in Azure Spring Cloud allow debugging and monitoring the complex interconnections between microservices in an application. Distributed tracing tools should be enabled and in a healthy state.", - "metadata": { - "version": "1.0.0-preview", - "category": "App Platform", - "preview": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.AppPlatform/Spring" - }, - { - "anyOf": [ - { - "field": "Microsoft.AppPlatform/Spring/trace.enabled", - "notEquals": "true" - }, - { - "field": "Microsoft.AppPlatform/Spring/trace.state", - "notEquals": "Succeeded" - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1476 - Fire Protection", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Physical and Environmental Protection control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1476" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1204 - Access Restrictions For Change | Review System Changes", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Configuration Management control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1204" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1430 - Media Marking", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Media Protection control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1430" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1574 - Acquisition Process", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Services Acquisition control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1574" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1164 - Continuous Monitoring", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Security Assessment and Authorization control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1164" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Running container images should have vulnerability findings resolved", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Container image vulnerability assessment scans container images running on your Kubernetes clusters for security vulnerabilities and exposes detailed findings for each image. Resolving the vulnerabilities can greatly improve your containers\u0027 security posture and protect them from attacks.", - "metadata": { - "version": "1.0.1", - "category": "Security Center" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "in": [ - "Microsoft.ContainerService/managedClusters" - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Security/assessments", - "name": "00000000-0000-0000-0000-000000000000", - "existenceCondition": { - "field": "Microsoft.Security/assessments/status.code", - "in": [ - "NotApplicable", - "Healthy" - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1017 - Account Management | Inactivity Logout", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Access Control control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1017" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Azure Monitor Private Link Scope should use private link", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Azure Private Link lets you connect your virtual networks to Azure services without a public IP address at the source or destination. The Private Link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to Azure Monitor Private Links Scope, you can reduce data leakage risks. Learn more about private links at: https://docs.microsoft.com/azure/azure-monitor/logs/private-link-security.", - "metadata": { - "version": "1.0.0", - "category": "Monitoring" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Insights/privateLinkScopes" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Insights/privateLinkScopes/privateEndpointConnections", - "existenceCondition": { - "field": "Microsoft.Insights/privateLinkScopes/privateEndpointConnections/privateLinkServiceConnectionState.status", - "equals": "Approved" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Azure Cognitive Search services should use private link", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination. The Private Link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to Azure Cognitive Search, data leakage risks are reduced. Learn more about private links at: https://aka.ms/azure-cognitive-search/inbound-private-endpoints.", - "metadata": { - "version": "1.0.0", - "category": "Search" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Search/searchServices" - }, - { - "count": { - "field": "Microsoft.Search/searchServices/privateEndpointConnections[*]", - "where": { - "field": "Microsoft.Search/searchServices/privateEndpointConnections[*].privateLinkServiceConnectionState.status", - "equals": "Approved" - } - }, - "less": 1 - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Public network access should be disabled for Container registries", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Disabling public network access improves security by ensuring that container registries are not exposed on the public internet. Creating private endpoints can limit exposure of container registry resources. Learn more at: https://aka.ms/acr/portal/public-network and https://aka.ms/acr/private-link.", - "metadata": { - "version": "1.0.0", - "category": "Container Registry" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.ContainerRegistry/registries" - }, - { - "field": "Microsoft.ContainerRegistry/registries/publicNetworkAccess", - "notEquals": "Disabled" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "CORS should not allow every domain to access your API for FHIR", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Cross-Origin Resource Sharing (CORS) should not allow all domains to access your API for FHIR. To protect your API for FHIR, remove access for all domains and explicitly define the domains allowed to connect.", - "metadata": { - "version": "1.0.0", - "category": "API for FHIR" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "audit", - "disabled" - ], - "defaultValue": "audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HealthcareApis/services" - }, - { - "not": { - "field": "Microsoft.HealthcareApis/services/corsConfiguration.origins[*]", - "notEquals": "*" - } - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1087 - Security Awareness And Training Policy And Procedures", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Awareness and Training control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1087" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Deploy prerequisites to audit Windows VMs that do not contain the specified certificates in Trusted Root", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "This policy creates a Guest Configuration assignment to audit Windows VMs that do not contain the specified certificates in the Trusted Root Certification Authorities certificate store (Cert:\\LocalMachine\\Root). It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol", - "metadata": { - "version": "1.2.0-deprecated", - "category": "Guest Configuration", - "requiredProviders": [ - "Microsoft.GuestConfiguration" - ], - "deprecated": true - }, - "parameters": { - "CertificateThumbprints": { - "type": "String", - "metadata": { - "displayName": "Certificate thumbprints", - "description": "A semicolon-separated list of certificate thumbprints that should exist under the Trusted Root certificate store (Cert:\\LocalMachine\\Root). e.g. THUMBPRINT1;THUMBPRINT2;THUMBPRINT3" - } - } - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "dsvm-windows" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - } - ] - }, - "then": { - "effect": "deployIfNotExists", - "details": { - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "WindowsCertificateInTrustedRoot", - "existenceCondition": { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash", - "equals": "[base64(concat(\u0027[CertificateStore]CertificateStore1;CertificateThumbprintsToInclude\u0027, \u0027=\u0027, parameters(\u0027CertificateThumbprints\u0027)))]" - }, - "deployment": { - "properties": { - "mode": "incremental", - "parameters": { - "vmName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "type": { - "value": "[field(\u0027type\u0027)]" - }, - "configurationName": { - "value": "WindowsCertificateInTrustedRoot" - }, - "CertificateThumbprints": { - "value": "[parameters(\u0027CertificateThumbprints\u0027)]" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "vmName": { - "type": "string" - }, - "location": { - "type": "string" - }, - "type": { - "type": "string" - }, - "configurationName": { - "type": "string" - }, - "CertificateThumbprints": { - "type": "string" - } - }, - "resources": [ - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027microsoft.hybridcompute/machines\u0027))]", - "apiVersion": "2018-11-20", - "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/Microsoft.GuestConfiguration/\u0027, parameters(\u0027configurationName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "guestConfiguration": { - "name": "[parameters(\u0027configurationName\u0027)]", - "version": "1.*", - "configurationParameter": [ - { - "name": "[CertificateStore]CertificateStore1;CertificateThumbprintsToInclude", - "value": "[parameters(\u0027CertificateThumbprints\u0027)]" - } - ] - } - } - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2018-11-20", - "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/Microsoft.GuestConfiguration/\u0027, parameters(\u0027configurationName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "guestConfiguration": { - "name": "[parameters(\u0027configurationName\u0027)]", - "version": "1.*", - "configurationParameter": [ - { - "name": "[CertificateStore]CertificateStore1;CertificateThumbprintsToInclude", - "value": "[parameters(\u0027CertificateThumbprints\u0027)]" - } - ] - } - } - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2019-07-01", - "type": "Microsoft.Compute/virtualMachines", - "identity": { - "type": "SystemAssigned" - }, - "name": "[parameters(\u0027vmName\u0027)]", - "location": "[parameters(\u0027location\u0027)]" - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2019-07-01", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/AzurePolicyforWindows\u0027)]", - "type": "Microsoft.Compute/virtualMachines/extensions", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "publisher": "Microsoft.GuestConfiguration", - "type": "ConfigurationforWindows", - "typeHandlerVersion": "1.1", - "autoUpgradeMinorVersion": true, - "settings": {}, - "protectedSettings": {} - }, - "dependsOn": [ - "[concat(\u0027Microsoft.Compute/virtualMachines/\u0027,parameters(\u0027vmName\u0027),\u0027/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/\u0027,parameters(\u0027configurationName\u0027))]" - ] - } - ] - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1554 - Vulnerability Scanning | Discoverable Information", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Risk Assessment control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1554" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Ensure that \u0027.NET Framework\u0027 version is the latest, if used as a part of the Function App", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "This policy is not required since Azure App Service automatically updates and maintains the .NET Framework versions installed on the platform.", - "metadata": { - "version": "1.0.0-deprecated", - "category": "App Service", - "deprecated": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Web/sites" - }, - { - "field": "kind", - "like": "functionapp*" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Web/sites/config", - "name": "web", - "existenceCondition": { - "field": "Microsoft.Web/sites/config/web.netFrameworkVersion", - "in": [ - "v3.0", - "v4.0" - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Preview]: Configure ChangeTracking Extension for Linux Arc machines", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Configure Linux Arc machines to automatically install the ChangeTracking Extension to enable File Integrity Monitoring(FIM) in Azure Security Center. FIM examines operating system files, Windows registries, application software, Linux system files, and more, for changes that might indicate an attack. The extension can be installed in virtual machines and locations supported by Azure Monitor Agent.", - "metadata": { - "version": "1.0.0-preview", - "category": "Security Center", - "preview": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - }, - "listOfApplicableLocations": { - "type": "Array", - "metadata": { - "displayName": "Applicable Locations", - "description": "The list of locations where the policy should be applied.", - "strongType": "location" - }, - "allowedValues": [ - "australiasoutheast", - "australiaeast", - "brazilsouth", - "canadacentral", - "centralindia", - "centralus", - "eastasia", - "eastus2euap", - "eastus", - "eastus2", - "francecentral", - "japaneast", - "koreacentral", - "northcentralus", - "northeurope", - "norwayeast", - "southcentralus", - "southeastasia", - "switzerlandnorth", - "uaenorth", - "uksouth", - "westcentralus", - "westeurope", - "westus", - "westus2" - ], - "defaultValue": [ - "australiasoutheast", - "australiaeast", - "brazilsouth", - "canadacentral", - "centralindia", - "centralus", - "eastasia", - "eastus2euap", - "eastus", - "eastus2", - "francecentral", - "japaneast", - "koreacentral", - "northcentralus", - "northeurope", - "norwayeast", - "southcentralus", - "southeastasia", - "switzerlandnorth", - "uaenorth", - "uksouth", - "westcentralus", - "westeurope", - "westus", - "westus2" - ] - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "location", - "in": "[parameters(\u0027listOfApplicableLocations\u0027)]" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "linux*" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.HybridCompute/machines/extensions", - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.HybridCompute/machines/extensions/type", - "equals": "ChangeTracking-Linux" - }, - { - "field": "Microsoft.HybridCompute/machines/extensions/Publisher", - "equals": "Microsoft.Azure.ChangeTrackingAndInventory" - }, - { - "field": "Microsoft.HybridCompute/machines/extensions/provisioningState", - "equals": "Succeeded" - } - ] - }, - "deployment": { - "properties": { - "mode": "incremental", - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "vmName": { - "type": "string" - }, - "location": { - "type": "string" - } - }, - "variables": { - "vmExtensionName": "ChangeTracking-Linux", - "vmExtensionPublisher": "Microsoft.Azure.ChangeTrackingAndInventory", - "vmExtensionType": "ChangeTracking-Linux", - "vmExtensionTypeHandlerVersion": "1.0" - }, - "resources": [ - { - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/\u0027, variables(\u0027vmExtensionName\u0027))]", - "type": "Microsoft.HybridCompute/machines/extensions", - "location": "[parameters(\u0027location\u0027)]", - "apiVersion": "2021-06-10-preview", - "properties": { - "publisher": "[variables(\u0027vmExtensionPublisher\u0027)]", - "type": "[variables(\u0027vmExtensionType\u0027)]", - "typeHandlerVersion": "[variables(\u0027vmExtensionTypeHandlerVersion\u0027)]", - "autoUpgradeMinorVersion": true, - "settings": {}, - "protectedSettings": {} - } - } - ] - }, - "parameters": { - "vmName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - } - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Custom subscription owner roles should not exist", - "policyType": "BuiltIn", - "mode": "All", - "description": "This policy is deprecated.", - "metadata": { - "version": "2.0.0-deprecated", - "category": "General", - "deprecated": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Authorization/roleDefinitions" - }, - { - "field": "Microsoft.Authorization/roleDefinitions/type", - "equals": "CustomRole" - }, - { - "anyOf": [ - { - "not": { - "field": "Microsoft.Authorization/roleDefinitions/permissions[*].actions[*]", - "notEquals": "*" - } - }, - { - "not": { - "field": "Microsoft.Authorization/roleDefinitions/permissions.actions[*]", - "notEquals": "*" - } - } - ] - }, - { - "anyOf": [ - { - "not": { - "field": "Microsoft.Authorization/roleDefinitions/assignableScopes[*]", - "notIn": [ - "[concat(subscription().id,\u0027/\u0027)]", - "[subscription().id]", - "/" - ] - } - }, - { - "not": { - "field": "Microsoft.Authorization/roleDefinitions/assignableScopes[*]", - "notLike": "/providers/Microsoft.Management/*" - } - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1230 - Configuration Management Plan", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Configuration Management control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1230" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1432 - Media Storage", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Media Protection control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1432" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Modify - Configure Azure IoT Hubs to disable public network access", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Disabling the public network access property improves security by ensuring your Azure IoT Hub can only be accessed from a private endpoint. This policy disables public network access on IoT Hub resources.", - "metadata": { - "version": "1.0.0", - "category": "Internet of Things" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Modify", - "Disabled" - ], - "defaultValue": "Modify" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Devices/IotHubs" - }, - { - "field": "Microsoft.Devices/IotHubs/publicNetworkAccess", - "notEquals": "Disabled" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "roleDefinitionIds": [ - "/providers/Microsoft.Authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "conflictEffect": "audit", - "operations": [ - { - "condition": "[greaterOrEquals(requestContext().apiVersion, \u00272020-03-01\u0027)]", - "operation": "addOrReplace", - "field": "Microsoft.Devices/IotHubs/publicNetworkAccess", - "value": "Disabled" - } - ] - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Cognitive Services accounts should use customer owned storage or enable data encryption.", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "This policy is deprecated. Cognitive Services have data encryption enforced.", - "metadata": { - "version": "2.0.0-deprecated", - "category": "Cognitive Services", - "deprecated": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "The effect determines what happens when the policy rule is evaluated to match" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Disabled" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.CognitiveServices/accounts" - }, - { - "count": { - "field": "Microsoft.CognitiveServices/accounts/userOwnedStorage[*]" - }, - "less": 1 - }, - { - "field": "Microsoft.CognitiveServices/accounts/encryption.keySource", - "exists": "false" - }, - { - "field": "Microsoft.CognitiveServices/accounts/encryption", - "exists": "true" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Dependency agent should be enabled for listed virtual machine images", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Reports virtual machines as non-compliant if the virtual machine image is not in the list defined and the agent is not installed. The list of OS images is updated over time as support is updated.", - "metadata": { - "version": "2.0.0", - "category": "Monitoring" - }, - "parameters": { - "listOfImageIdToInclude_windows": { - "type": "Array", - "metadata": { - "displayName": "Optional: List of virtual machine images that have supported Windows OS to add to scope", - "description": "Example value: \u0027/subscriptions/\u003CsubscriptionId\u003E/resourceGroups/YourResourceGroup/providers/Microsoft.Compute/images/ContosoStdImage\u0027" - }, - "defaultValue": [] - }, - "listOfImageIdToInclude_linux": { - "type": "Array", - "metadata": { - "displayName": "Optional: List of virtual machine images that have supported Linux OS to add to scope", - "description": "Example value: \u0027/subscriptions/\u003CsubscriptionId\u003E/resourceGroups/YourResourceGroup/providers/Microsoft.Compute/images/ContosoStdImage\u0027" - }, - "defaultValue": [] - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "not": { - "anyOf": [ - { - "field": "Microsoft.Compute/imageId", - "in": "[parameters(\u0027listOfImageIdToInclude_windows\u0027)]" - }, - { - "field": "Microsoft.Compute/imageId", - "in": "[parameters(\u0027listOfImageIdToInclude_linux\u0027)]" - }, - { - "anyOf": [ - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "in": [ - "2008-R2-SP1", - "2008-R2-SP1-smalldisk", - "2012-Datacenter", - "2012-Datacenter-smalldisk", - "2012-R2-Datacenter", - "2012-R2-Datacenter-smalldisk", - "2016-Datacenter", - "2016-Datacenter-Server-Core", - "2016-Datacenter-Server-Core-smalldisk", - "2016-Datacenter-smalldisk", - "2016-Datacenter-with-Containers", - "2016-Datacenter-with-RDSH", - "2019-Datacenter", - "2019-Datacenter-Core", - "2019-Datacenter-Core-smalldisk", - "2019-Datacenter-Core-with-Containers", - "2019-Datacenter-Core-with-Containers-smalldisk", - "2019-Datacenter-smalldisk", - "2019-Datacenter-with-Containers", - "2019-Datacenter-with-Containers-smalldisk", - "2019-Datacenter-zhcn" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServerSemiAnnual" - }, - { - "field": "Microsoft.Compute/imageSKU", - "in": [ - "Datacenter-Core-1709-smalldisk", - "Datacenter-Core-1709-with-Containers-smalldisk", - "Datacenter-Core-1803-with-Containers-smalldisk" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServerHPCPack" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServerHPCPack" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2016" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2016-BYOL" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2012R2" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2012R2-BYOL" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftRServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "MLServer-WS2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftVisualStudio" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "VisualStudio", - "Windows" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftDynamicsAX" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Dynamics" - }, - { - "field": "Microsoft.Compute/imageSKU", - "equals": "Pre-Req-AX7-Onebox-U8" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftDynamicsAX" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Dynamics" - }, - { - "field": "Microsoft.Compute/imageSKU", - "equals": "Pre-Req-AX7-Onebox-V4" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "windows-data-science-vm" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsDesktop" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Windows-10" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "RedHat" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "RHEL", - "RHEL-SAP-HANA" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "like": "6.*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "7*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "SUSE" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "SLES", - "SLES-HPC", - "SLES-HPC-Priority", - "SLES-SAP", - "SLES-SAP-BYOS", - "SLES-Priority", - "SLES-BYOS", - "SLES-SAPCAL", - "SLES-Standard" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "in": [ - "12-SP2", - "12-SP3", - "12-SP4" - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Canonical" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "UbuntuServer" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "in": [ - "14.04.0-LTS", - "14.04.1-LTS", - "14.04.5-LTS" - ] - }, - { - "field": "Microsoft.Compute/imageSKU", - "in": [ - "16.04-LTS", - "16.04.0-LTS" - ] - }, - { - "field": "Microsoft.Compute/imageSKU", - "in": [ - "18.04-LTS" - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "OpenLogic" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "Centos", - "Centos-LVM", - "CentOS-SRIOV" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "like": "6.*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "7*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloudera" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "cloudera-centos-os" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "7*" - } - ] - } - ] - } - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Compute/virtualMachines/extensions", - "existenceCondition": { - "field": "Microsoft.Compute/virtualMachines/extensions/publisher", - "equals": "Microsoft.Azure.Monitoring.DependencyAgent" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Preview]: Recovery Services vaults should use private link", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination. The Private Link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to Azure Recovery Services vaults, data leakage risks are reduced. Learn more about private links for Azure Site Recovery at: https://aka.ms/HybridScenarios-PrivateLink and https://aka.ms/AzureToAzure-PrivateLink.", - "metadata": { - "version": "1.0.0-preview", - "category": "Site Recovery", - "preview": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.RecoveryServices/vaults" - }, - { - "count": { - "field": "Microsoft.RecoveryServices/vaults/privateEndpointConnections[*]", - "where": { - "allOf": [ - { - "field": "Microsoft.RecoveryServices/vaults/privateEndpointConnections[*].privateLinkServiceConnectionState.status", - "equals": "Approved" - }, - { - "field": "Microsoft.RecoveryServices/vaults/privateEndpointConnections[*].provisioningState", - "equals": "Succeeded" - }, - { - "field": "Microsoft.RecoveryServices/vaults/privateEndpointConnections[*].id", - "contains": "SiteRecovery" - } - ] - } - }, - "less": 1 - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Windows machines should meet requirements for \u0027Security Options - System settings\u0027", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Windows machines should have the specified Group Policy settings in the category \u0027Security Options - System settings\u0027 for certificate rules on executables for SRP and optional subsystems. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.", - "metadata": { - "category": "Guest Configuration", - "version": "3.0.0", - "requiredProviders": [ - "Microsoft.GuestConfiguration" - ], - "guestConfiguration": { - "name": "AzureBaseline_SecurityOptionsSystemsettings", - "version": "1.*", - "configurationParameter": { - "SystemSettingsUseCertificateRulesOnWindowsExecutablesForSoftwareRestrictionPolicies": "System settings: Use Certificate Rules on Windows Executables for Software Restriction Policies;ExpectedValue" - } - } - }, - "parameters": { - "IncludeArcMachines": { - "type": "String", - "metadata": { - "displayName": "Include Arc connected servers", - "description": "By selecting this option, you agree to be charged monthly per Arc connected machine.", - "portalReview": "true" - }, - "allowedValues": [ - "true", - "false" - ], - "defaultValue": "false" - }, - "SystemSettingsUseCertificateRulesOnWindowsExecutablesForSoftwareRestrictionPolicies": { - "type": "String", - "metadata": { - "displayName": "System settings: Use Certificate Rules on Windows Executables for Software Restriction Policies", - "description": "Specifies whether digital certificates are processed when software restriction policies are enabled and a user or process attempts to run software with an .exe file name extension. It enables or disables certificate rules (a type of software restriction policies rule). For certificate rules to take effect in software restriction policies, you must enable this policy setting." - }, - "defaultValue": "1" - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of this policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "dsvm-win*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "value": "[parameters(\u0027IncludeArcMachines\u0027)]", - "equals": "true" - }, - { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.ConnectedVMwarevSphere/virtualMachines" - }, - { - "field": "Microsoft.ConnectedVMwarevSphere/virtualMachines/osProfile.osType", - "like": "windows*" - } - ] - } - ] - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "AzureBaseline_SecurityOptionsSystemsettings", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus", - "equals": "Compliant" - }, - { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash", - "equals": "[base64(concat(\u0027System settings: Use Certificate Rules on Windows Executables for Software Restriction Policies;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027SystemSettingsUseCertificateRulesOnWindowsExecutablesForSoftwareRestrictionPolicies\u0027)))]" - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1655 - Voice Over Internet Protocol", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Communications Protection control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1655" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Windows machines should meet requirements for \u0027Security Options - Network Security\u0027", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Windows machines should have the specified Group Policy settings in the category \u0027Security Options - Network Security\u0027 for including Local System behavior, PKU2U, LAN Manager, LDAP client, and NTLM SSP. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.", - "metadata": { - "category": "Guest Configuration", - "version": "3.0.0", - "requiredProviders": [ - "Microsoft.GuestConfiguration" - ], - "guestConfiguration": { - "name": "AzureBaseline_SecurityOptionsNetworkSecurity", - "version": "1.*", - "configurationParameter": { - "NetworkSecurityConfigureEncryptionTypesAllowedForKerberos": "Network Security: Configure encryption types allowed for Kerberos;ExpectedValue", - "NetworkSecurityLANManagerAuthenticationLevel": "Network security: LAN Manager authentication level;ExpectedValue", - "NetworkSecurityLDAPClientSigningRequirements": "Network security: LDAP client signing requirements;ExpectedValue", - "NetworkSecurityMinimumSessionSecurityForNTLMSSPBasedIncludingSecureRPCClients": "Network security: Minimum session security for NTLM SSP based (including secure RPC) clients;ExpectedValue", - "NetworkSecurityMinimumSessionSecurityForNTLMSSPBasedIncludingSecureRPCServers": "Network security: Minimum session security for NTLM SSP based (including secure RPC) servers;ExpectedValue" - } - } - }, - "parameters": { - "IncludeArcMachines": { - "type": "String", - "metadata": { - "displayName": "Include Arc connected servers", - "description": "By selecting this option, you agree to be charged monthly per Arc connected machine.", - "portalReview": "true" - }, - "allowedValues": [ - "true", - "false" - ], - "defaultValue": "false" - }, - "NetworkSecurityConfigureEncryptionTypesAllowedForKerberos": { - "type": "String", - "metadata": { - "displayName": "Network Security: Configure encryption types allowed for Kerberos", - "description": "Specifies the encryption types that Kerberos is allowed to use." - }, - "defaultValue": "2147483644" - }, - "NetworkSecurityLANManagerAuthenticationLevel": { - "type": "String", - "metadata": { - "displayName": "Network security: LAN Manager authentication level", - "description": "Specify which challenge-response authentication protocol is used for network logons. This choice affects the level of authentication protocol used by clients, the level of session security negotiated, and the level of authentication accepted by servers." - }, - "defaultValue": "5" - }, - "NetworkSecurityLDAPClientSigningRequirements": { - "type": "String", - "metadata": { - "displayName": "Network security: LDAP client signing requirements", - "description": "Specify the level of data signing that is requested on behalf of clients that issue LDAP BIND requests." - }, - "defaultValue": "1" - }, - "NetworkSecurityMinimumSessionSecurityForNTLMSSPBasedIncludingSecureRPCClients": { - "type": "String", - "metadata": { - "displayName": "Network security: Minimum session security for NTLM SSP based (including secure RPC) clients", - "description": "Specifies which behaviors are allowed by clients for applications using the NTLM Security Support Provider (SSP). The SSP Interface (SSPI) is used by applications that need authentication services. See https://docs.microsoft.com/en-us/windows/security/threat-protection/security-policy-settings/network-security-minimum-session-security-for-ntlm-ssp-based-including-secure-rpc-servers for more information." - }, - "defaultValue": "537395200" - }, - "NetworkSecurityMinimumSessionSecurityForNTLMSSPBasedIncludingSecureRPCServers": { - "type": "String", - "metadata": { - "displayName": "Network security: Minimum session security for NTLM SSP based (including secure RPC) servers", - "description": "Specifies which behaviors are allowed by servers for applications using the NTLM Security Support Provider (SSP). The SSP Interface (SSPI) is used by applications that need authentication services." - }, - "defaultValue": "537395200" - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of this policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "dsvm-win*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "value": "[parameters(\u0027IncludeArcMachines\u0027)]", - "equals": "true" - }, - { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.ConnectedVMwarevSphere/virtualMachines" - }, - { - "field": "Microsoft.ConnectedVMwarevSphere/virtualMachines/osProfile.osType", - "like": "windows*" - } - ] - } - ] - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "AzureBaseline_SecurityOptionsNetworkSecurity", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus", - "equals": "Compliant" - }, - { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash", - "equals": "[base64(concat(\u0027Network Security: Configure encryption types allowed for Kerberos;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027NetworkSecurityConfigureEncryptionTypesAllowedForKerberos\u0027), \u0027,\u0027, \u0027Network security: LAN Manager authentication level;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027NetworkSecurityLANManagerAuthenticationLevel\u0027), \u0027,\u0027, \u0027Network security: LDAP client signing requirements;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027NetworkSecurityLDAPClientSigningRequirements\u0027), \u0027,\u0027, \u0027Network security: Minimum session security for NTLM SSP based (including secure RPC) clients;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027NetworkSecurityMinimumSessionSecurityForNTLMSSPBasedIncludingSecureRPCClients\u0027), \u0027,\u0027, \u0027Network security: Minimum session security for NTLM SSP based (including secure RPC) servers;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027NetworkSecurityMinimumSessionSecurityForNTLMSSPBasedIncludingSecureRPCServers\u0027)))]" - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Allowlist rules in your adaptive application control policy should be updated", - "policyType": "BuiltIn", - "mode": "All", - "description": "Monitor for changes in behavior on groups of machines configured for auditing by Azure Security Center\u0027s adaptive application controls. Security Center uses machine learning to analyze the running processes on your machines and suggest a list of known-safe applications. These are presented as recommended apps to allow in adaptive application control policies.", - "metadata": { - "version": "3.0.0", - "category": "Security Center" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "in": [ - "Microsoft.Compute/virtualMachines", - "Microsoft.ClassicCompute/virtualMachines" - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Security/assessments", - "name": "00000000-0000-0000-0000-000000000000", - "existenceCondition": { - "field": "Microsoft.Security/assessments/status.code", - "in": [ - "NotApplicable", - "Healthy" - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Web Application Firewall (WAF) should use the specified mode for Application Gateway", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Mandates the use of \u0027Detection\u0027 or \u0027Prevention\u0027 mode to be active on all Web Application Firewall policies for Application Gateway.", - "metadata": { - "version": "1.0.0", - "category": "Network" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - }, - "modeRequirement": { - "type": "String", - "metadata": { - "displayName": "Mode Requirement", - "description": "Mode required for all WAF policies" - }, - "allowedValues": [ - "Prevention", - "Detection" - ], - "defaultValue": "Detection" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Network/applicationGatewayWebApplicationFirewallPolicies" - }, - { - "field": "Microsoft.Network/applicationGatewayWebApplicationFirewallPolicies/policySettings.mode", - "notEquals": "[parameters(\u0027modeRequirement\u0027)]" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1681 - Malicious Code Protection | Automatic Updates", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Information Integrity control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1681" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Preview]: Azure Data Factory linked services should use Key Vault for storing secrets", - "policyType": "BuiltIn", - "mode": "All", - "description": "To ensure secrets (such as connection strings) are managed securely, require users to provide secrets using an Azure Key Vault instead of specifying them inline in linked services.", - "metadata": { - "version": "1.0.0-preview", - "category": "Data Factory", - "preview": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.DataFactory/factories/linkedservices" - }, - { - "anyOf": [ - { - "allOf": [ - { - "field": "Microsoft.DataFactory/factories/linkedservices/typeProperties.connectionString", - "exists": "true" - }, - { - "anyOf": [ - { - "field": "Microsoft.DataFactory/factories/linkedservices/typeProperties.connectionString", - "contains": "AccountKey=" - }, - { - "field": "Microsoft.DataFactory/factories/linkedservices/typeProperties.connectionString", - "contains": "PWD=" - }, - { - "field": "Microsoft.DataFactory/factories/linkedservices/typeProperties.connectionString", - "contains": "Password=" - }, - { - "field": "Microsoft.DataFactory/factories/linkedservices/typeProperties.connectionString", - "contains": "CredString=" - }, - { - "field": "Microsoft.DataFactory/factories/linkedservices/typeProperties.connectionString", - "contains": "pwd=" - } - ] - } - ] - }, - { - "field": "Microsoft.DataFactory/factories/linkedservices/SqlServer.typeProperties.password.type", - "equals": "SecureString" - }, - { - "allOf": [ - { - "field": "Microsoft.DataFactory/factories/linkedservices/SqlServer.typeProperties.password", - "exists": "true" - }, - { - "field": "Microsoft.DataFactory/factories/linkedservices/SqlServer.typeProperties.password.type", - "exists": "false" - } - ] - }, - { - "field": "Microsoft.DataFactory/factories/linkedservices/AzureSqlDW.typeProperties.servicePrincipalKey.type", - "equals": "SecureString" - }, - { - "field": "Microsoft.DataFactory/factories/linkedservices/AzureSearch.typeProperties.key.type", - "equals": "SecureString" - }, - { - "allOf": [ - { - "field": "Microsoft.DataFactory/factories/linkedservices/AzureStorage.typeProperties.sasUri", - "exists": "true" - }, - { - "field": "Microsoft.DataFactory/factories/linkedservices/AzureStorage.typeProperties.sasUri.type", - "notEquals": "AzureKeyVaultSecret" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.DataFactory/factories/linkedservices/AzureBlobStorage.typeProperties.servicePrincipalKey", - "exists": "true" - }, - { - "field": "Microsoft.DataFactory/factories/linkedservices/AzureBlobStorage.typeProperties.servicePrincipalKey.type", - "notEquals": "AzureKeyVaultSecret" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.DataFactory/factories/linkedservices/AzureStorage.typeProperties.accountKey", - "exists": "true" - }, - { - "field": "Microsoft.DataFactory/factories/linkedservices/CosmosDb.typeProperties.accountKey.type", - "notEquals": "AzureKeyVaultSecret" - } - ] - }, - { - "field": "Microsoft.DataFactory/factories/linkedservices/typeProperties.encryptedCredential", - "exists": "true" - }, - { - "field": "Microsoft.DataFactory/factories/linkedservices/AmazonMWS.typeProperties.mwsAuthToken.type", - "equals": "SecureString" - }, - { - "field": "Microsoft.DataFactory/factories/linkedservices/AmazonMWS.typeProperties.secretKey.type", - "equals": "SecureString" - }, - { - "field": "Microsoft.DataFactory/factories/linkedservices/AmazonS3.typeProperties.secretAccessKey.type", - "equals": "SecureString" - }, - { - "allOf": [ - { - "field": "Microsoft.DataFactory/factories/linkedservices/Dynamics.typeProperties.servicePrincipalCredential", - "exists": "true" - }, - { - "field": "Microsoft.DataFactory/factories/linkedservices/Dynamics.typeProperties.servicePrincipalCredential.type", - "equals": "SecureString" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.DataFactory/factories/linkedservices/Hubspot.typeProperties.accessToken", - "exists": "true" - }, - { - "field": "Microsoft.DataFactory/factories/linkedservices/Hubspot.typeProperties.accessToken.type", - "equals": "SecureString" - } - ] - }, - { - "field": "Microsoft.DataFactory/factories/linkedservices/Odbc.typeProperties.credential.type", - "equals": "SecureString" - }, - { - "field": "Microsoft.DataFactory/factories/linkedservices/GoogleAdWords.typeProperties.developerToken.type", - "equals": "SecureString" - }, - { - "field": "Microsoft.DataFactory/factories/linkedservices/GoogleBigQuery.typeProperties.clientSecret.type", - "equals": "SecureString" - }, - { - "field": "Microsoft.DataFactory/factories/linkedservices/GoogleBigQuery.typeProperties.refreshToken.type", - "equals": "SecureString" - }, - { - "allOf": [ - { - "field": "Microsoft.DataFactory/factories/linkedservices/type", - "in": [ - "MongoDbAtlas", - "MongoDbV2" - ] - }, - { - "field": "Microsoft.DataFactory/factories/linkedservices/typeProperties.connectionString.type", - "notEquals": "AzureKeyVaultSecret" - } - ] - }, - { - "field": "Microsoft.DataFactory/factories/linkedservices/OData.typeProperties.servicePrincipalEmbeddedCert.type", - "equals": "SecureString" - }, - { - "field": "Microsoft.DataFactory/factories/linkedservices/OData.typeProperties.servicePrincipalEmbeddedCertPassword.type", - "equals": "SecureString" - }, - { - "field": "Microsoft.DataFactory/factories/linkedservices/Sftp.typeProperties.privateKeyContent.type", - "equals": "SecureString" - }, - { - "field": "Microsoft.DataFactory/factories/linkedservices/Sftp.typeProperties.passPhrase.type", - "equals": "SecureString" - }, - { - "field": "Microsoft.DataFactory/factories/linkedservices/Salesforce.typeProperties.securityToken.type", - "equals": "SecureString" - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Preview]: Configure ChangeTracking Extension for Linux virtual machine scale sets", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Configure Linux virtual machine scale sets to automatically install the ChangeTracking Extension to enable File Integrity Monitoring(FIM) in Azure Security Center. FIM examines operating system files, Windows registries, application software, Linux system files, and more, for changes that might indicate an attack. The extension can be installed in virtual machines and locations supported by Azure Monitor Agent.", - "metadata": { - "version": "1.0.0-preview", - "category": "Security Center", - "preview": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - }, - "listOfApplicableLocations": { - "type": "Array", - "metadata": { - "displayName": "Applicable Locations", - "description": "The list of locations where the policy should be applied.", - "strongType": "location" - }, - "allowedValues": [ - "australiasoutheast", - "australiaeast", - "brazilsouth", - "canadacentral", - "centralindia", - "centralus", - "eastasia", - "eastus2euap", - "eastus", - "eastus2", - "francecentral", - "japaneast", - "koreacentral", - "northcentralus", - "northeurope", - "norwayeast", - "southcentralus", - "southeastasia", - "switzerlandnorth", - "uaenorth", - "uksouth", - "westcentralus", - "westeurope", - "westus", - "westus2" - ], - "defaultValue": [ - "australiasoutheast", - "australiaeast", - "brazilsouth", - "canadacentral", - "centralindia", - "centralus", - "eastasia", - "eastus2euap", - "eastus", - "eastus2", - "francecentral", - "japaneast", - "koreacentral", - "northcentralus", - "northeurope", - "norwayeast", - "southcentralus", - "southeastasia", - "switzerlandnorth", - "uaenorth", - "uksouth", - "westcentralus", - "westeurope", - "westus", - "westus2" - ] - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachineScaleSets" - }, - { - "field": "location", - "in": "[parameters(\u0027listOfApplicableLocations\u0027)]" - }, - { - "anyOf": [ - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "RedHat" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "RHEL", - "RHEL-SAP-HANA" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "like": "6.*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "7*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "8*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "SUSE" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "SLES", - "SLES-HPC", - "SLES-HPC-Priority", - "SLES-SAP", - "SLES-SAP-BYOS", - "SLES-Priority", - "SLES-BYOS", - "SLES-SAPCAL", - "SLES-Standard" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "like": "15*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Canonical" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "UbuntuServer" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "like": "14.04*LTS" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "16.04*LTS" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "18.04*LTS" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Canonical" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "0001-com-ubuntu-server-focal" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "like": "20_04-lts*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Oracle" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Oracle-Linux" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "like": "6.*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "7.*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "7*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "8*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "OpenLogic" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "CentOS", - "Centos-LVM", - "CentOS-SRIOV" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "like": "6.*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "7*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "8*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloudera" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "cloudera-centos-os" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "7*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "credativ" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "debian" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "like": "8" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "9" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Debian" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "debian-10" - ] - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "10" - } - ] - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Compute/virtualMachineScaleSets/extensions", - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.Compute/virtualMachineScaleSets/extensions/type", - "equals": "ChangeTracking-Linux" - }, - { - "field": "Microsoft.Compute/virtualMachineScaleSets/extensions/publisher", - "equals": "Microsoft.Azure.ChangeTrackingAndInventory" - }, - { - "field": "Microsoft.Compute/virtualMachineScaleSets/extensions/provisioningState", - "equals": "Succeeded" - } - ] - }, - "deployment": { - "properties": { - "mode": "incremental", - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "vmName": { - "type": "string" - }, - "location": { - "type": "string" - } - }, - "variables": { - "vmExtensionName": "ChangeTracking-Linux", - "vmExtensionPublisher": "Microsoft.Azure.ChangeTrackingAndInventory", - "vmExtensionType": "ChangeTracking-Linux", - "vmExtensionTypeHandlerVersion": "1.0" - }, - "resources": [ - { - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/\u0027, variables(\u0027vmExtensionName\u0027))]", - "type": "Microsoft.Compute/virtualMachineScaleSets/extensions", - "location": "[parameters(\u0027location\u0027)]", - "apiVersion": "2019-03-01", - "properties": { - "publisher": "[variables(\u0027vmExtensionPublisher\u0027)]", - "type": "[variables(\u0027vmExtensionType\u0027)]", - "typeHandlerVersion": "[variables(\u0027vmExtensionTypeHandlerVersion\u0027)]", - "autoUpgradeMinorVersion": true, - "settings": {}, - "protectedSettings": {} - } - } - ] - }, - "parameters": { - "vmName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - } - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1240 - User-Installed Software", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Configuration Management control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1240" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Deploy prerequisites to audit Windows VMs configurations in \u0027Security Options - System objects\u0027", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: \u0027Security Options - System objects\u0027. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol", - "metadata": { - "version": "1.2.0-deprecated", - "category": "Guest Configuration", - "requiredProviders": [ - "Microsoft.GuestConfiguration" - ], - "deprecated": true - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "dsvm-windows" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - } - ] - }, - "then": { - "effect": "deployIfNotExists", - "details": { - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "AzureBaseline_SecurityOptionsSystemobjects", - "deployment": { - "properties": { - "mode": "incremental", - "parameters": { - "vmName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "type": { - "value": "[field(\u0027type\u0027)]" - }, - "configurationName": { - "value": "AzureBaseline_SecurityOptionsSystemobjects" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "vmName": { - "type": "string" - }, - "location": { - "type": "string" - }, - "type": { - "type": "string" - }, - "configurationName": { - "type": "string" - } - }, - "resources": [ - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027microsoft.hybridcompute/machines\u0027))]", - "apiVersion": "2018-11-20", - "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/Microsoft.GuestConfiguration/\u0027, parameters(\u0027configurationName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "guestConfiguration": { - "name": "[parameters(\u0027configurationName\u0027)]", - "version": "1.*" - } - } - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2018-11-20", - "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/Microsoft.GuestConfiguration/\u0027, parameters(\u0027configurationName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "guestConfiguration": { - "name": "[parameters(\u0027configurationName\u0027)]", - "version": "1.*" - } - } - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2019-07-01", - "type": "Microsoft.Compute/virtualMachines", - "identity": { - "type": "SystemAssigned" - }, - "name": "[parameters(\u0027vmName\u0027)]", - "location": "[parameters(\u0027location\u0027)]" - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2019-07-01", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/AzurePolicyforWindows\u0027)]", - "type": "Microsoft.Compute/virtualMachines/extensions", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "publisher": "Microsoft.GuestConfiguration", - "type": "ConfigurationforWindows", - "typeHandlerVersion": "1.1", - "autoUpgradeMinorVersion": true, - "settings": {}, - "protectedSettings": {} - }, - "dependsOn": [ - "[concat(\u0027Microsoft.Compute/virtualMachines/\u0027,parameters(\u0027vmName\u0027),\u0027/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/\u0027,parameters(\u0027configurationName\u0027))]" - ] - } - ] - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1666 - System And Information Integrity Policy And Procedures", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Information Integrity control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1666" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Deploy prerequisites to audit Windows VMs that do not have the specified applications installed", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines that do not have the specified applications installed. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol", - "metadata": { - "version": "1.2.0-deprecated", - "category": "Guest Configuration", - "requiredProviders": [ - "Microsoft.GuestConfiguration" - ], - "deprecated": true - }, - "parameters": { - "installedApplication": { - "type": "String", - "metadata": { - "displayName": "Application names (supports wildcards)", - "description": "A semicolon-separated list of the names of the applications that should be installed. e.g. \u0027Microsoft SQL Server 2014 (64-bit); Microsoft Visual Studio Code\u0027 or \u0027Microsoft SQL Server 2014*\u0027 (to match any application starting with \u0027Microsoft SQL Server 2014\u0027)" - } - } - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "dsvm-windows" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - } - ] - }, - "then": { - "effect": "deployIfNotExists", - "details": { - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "WhitelistedApplication", - "existenceCondition": { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash", - "equals": "[base64(concat(\u0027[InstalledApplication]bwhitelistedapp;Name\u0027, \u0027=\u0027, parameters(\u0027installedApplication\u0027)))]" - }, - "deployment": { - "properties": { - "mode": "incremental", - "parameters": { - "vmName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "type": { - "value": "[field(\u0027type\u0027)]" - }, - "configurationName": { - "value": "WhitelistedApplication" - }, - "installedApplication": { - "value": "[parameters(\u0027installedApplication\u0027)]" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "vmName": { - "type": "string" - }, - "location": { - "type": "string" - }, - "type": { - "type": "string" - }, - "configurationName": { - "type": "string" - }, - "installedApplication": { - "type": "string" - } - }, - "resources": [ - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027microsoft.hybridcompute/machines\u0027))]", - "apiVersion": "2018-11-20", - "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/Microsoft.GuestConfiguration/\u0027, parameters(\u0027configurationName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "guestConfiguration": { - "name": "[parameters(\u0027configurationName\u0027)]", - "version": "1.*", - "configurationParameter": [ - { - "name": "[InstalledApplication]bwhitelistedapp;Name", - "value": "[parameters(\u0027installedApplication\u0027)]" - } - ] - } - } - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2018-11-20", - "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/Microsoft.GuestConfiguration/\u0027, parameters(\u0027configurationName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "guestConfiguration": { - "name": "[parameters(\u0027configurationName\u0027)]", - "version": "1.*", - "configurationParameter": [ - { - "name": "[InstalledApplication]bwhitelistedapp;Name", - "value": "[parameters(\u0027installedApplication\u0027)]" - } - ] - } - } - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2019-07-01", - "type": "Microsoft.Compute/virtualMachines", - "identity": { - "type": "SystemAssigned" - }, - "name": "[parameters(\u0027vmName\u0027)]", - "location": "[parameters(\u0027location\u0027)]" - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2019-07-01", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/AzurePolicyforWindows\u0027)]", - "type": "Microsoft.Compute/virtualMachines/extensions", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "publisher": "Microsoft.GuestConfiguration", - "type": "ConfigurationforWindows", - "typeHandlerVersion": "1.1", - "autoUpgradeMinorVersion": true, - "settings": {}, - "protectedSettings": {} - }, - "dependsOn": [ - "[concat(\u0027Microsoft.Compute/virtualMachines/\u0027,parameters(\u0027vmName\u0027),\u0027/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/\u0027,parameters(\u0027configurationName\u0027))]" - ] - } - ] - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1347 - Identification And Authentication (Non-Org. Users) | Acceptance Of PIV Creds. From Other Agys.", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Identification and Authentication control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1347" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Configure Azure Defender for Kubernetes to be enabled", - "policyType": "BuiltIn", - "mode": "All", - "description": "Azure Defender for Kubernetes provides real-time threat protection for containerized environments and generates alerts for suspicious activities.", - "metadata": { - "version": "1.0.0-deprecated", - "category": "Security Center", - "deprecated": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Resources/subscriptions" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Security/pricings", - "name": "KubernetesService", - "deploymentScope": "subscription", - "existenceScope": "subscription", - "roleDefinitionIds": [ - "/providers/Microsoft.Authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "existenceCondition": { - "field": "Microsoft.Security/pricings/pricingTier", - "equals": "Standard" - }, - "deployment": { - "location": "westeurope", - "properties": { - "mode": "incremental", - "parameters": {}, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": {}, - "variables": {}, - "resources": [ - { - "type": "Microsoft.Security/pricings", - "apiVersion": "2018-06-01", - "name": "KubernetesService", - "properties": { - "pricingTier": "Standard" - } - } - ], - "outputs": {} - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1450 - Physical Access Authorizations", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Physical and Environmental Protection control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1450" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1184 - Configuration Change Control", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Configuration Management control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1184" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Preview]: Configure machines to receive a vulnerability assessment provider", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Azure Defender includes vulnerability scanning for your machines at no extra cost. You don\u0027t need a Qualys license or even a Qualys account - everything\u0027s handled seamlessly inside Security Center. When you enable this policy, Azure Defender automatically deploys the Qualys vulnerability assessment provider to all supported machines that don\u0027t already have it installed.", - "metadata": { - "category": "Security Center", - "preview": true, - "version": "3.0.0-preview" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - }, - "vaType": { - "type": "String", - "metadata": { - "displayName": "Vulnerability assessment provider type", - "description": "Select the vulnerability assessment solution to provision to machines." - }, - "allowedValues": [ - "default", - "mdeTvm" - ], - "defaultValue": "default" - } - }, - "policyRule": { - "if": { - "anyof": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "tags", - "notContainsKey": "MDFCSecurityConnector" - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Security/assessments", - "name": "00000000-0000-0000-0000-000000000000", - "evaluationDelay": "AfterProvisioningSuccess", - "existenceCondition": { - "field": "Microsoft.Security/assessments/status.code", - "in": [ - "NotApplicable", - "Healthy" - ] - }, - "deployment": { - "properties": { - "mode": "Incremental", - "template": { - "contentVersion": "1.0.0.0", - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "parameters": { - "vmName": { - "type": "String" - }, - "resourceType": { - "type": "string" - }, - "vaType": { - "type": "string" - } - }, - "variables": { - "resourceNameAndVaType": "[concat(parameters(\u0027vmName\u0027), \u0027/Microsoft.Security/\u0027, parameters(\u0027vaType\u0027))]" - }, - "resources": [ - { - "condition": "[equals(toLower(parameters(\u0027resourceType\u0027)), toLower(\u0027microsoft.compute/virtualmachines\u0027))]", - "type": "Microsoft.Compute/virtualMachines/providers/serverVulnerabilityAssessments", - "name": "[variables(\u0027resourceNameAndVaType\u0027)]", - "apiVersion": "2020-01-01" - }, - { - "condition": "[equals(toLower(parameters(\u0027resourceType\u0027)), toLower(\u0027microsoft.hybridcompute/machines\u0027))]", - "type": "Microsoft.HybridCompute/machines/providers/serverVulnerabilityAssessments", - "name": "[variables(\u0027resourceNameAndVaType\u0027)]", - "apiVersion": "2020-01-01" - } - ] - }, - "parameters": { - "vmName": { - "value": "[field(\u0027name\u0027)]" - }, - "resourceType": { - "value": "[field(\u0027type\u0027)]" - }, - "vaType": { - "value": "[parameters(\u0027vaType\u0027)]" - } - } - } - }, - "roleDefinitionIds": [ - "/providers/Microsoft.Authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ] - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1085 - Publicly Accessible Content", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Access Control control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1085" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1404 - Maintenance Tools", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Maintenance control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1404" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1695 - Information System Monitoring | Wireless Intrusion Detection", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Information Integrity control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1695" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Audit Windows machines that contain certificates expiring within the specified number of days", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if certificates in the specified store have an expiration date out of range for the number of days given as parameter. The policy also provides the option to only check for specific certificates or exclude specific certificates, and whether to report on expired certificates.", - "metadata": { - "category": "Guest Configuration", - "version": "2.0.0", - "requiredProviders": [ - "Microsoft.GuestConfiguration" - ], - "guestConfiguration": { - "name": "CertificateExpiration", - "version": "1.*", - "configurationParameter": { - "CertificateStorePath": "[CertificateStore]CertificateStore1;CertificateStorePath", - "ExpirationLimitInDays": "[CertificateStore]CertificateStore1;ExpirationLimitInDays", - "CertificateThumbprintsToInclude": "[CertificateStore]CertificateStore1;CertificateThumbprintsToInclude", - "CertificateThumbprintsToExclude": "[CertificateStore]CertificateStore1;CertificateThumbprintsToExclude", - "IncludeExpiredCertificates": "[CertificateStore]CertificateStore1;IncludeExpiredCertificates" - } - } - }, - "parameters": { - "IncludeArcMachines": { - "type": "String", - "metadata": { - "displayName": "Include Arc connected servers", - "description": "By selecting this option, you agree to be charged monthly per Arc connected machine.", - "portalReview": "true" - }, - "allowedValues": [ - "true", - "false" - ], - "defaultValue": "false" - }, - "CertificateStorePath": { - "type": "String", - "metadata": { - "displayName": "Certificate store path", - "description": "The path to the certificate store containing the certificates to check the expiration dates of. Default value is \u0027Cert:\u0027 which is the root certificate store path, so all certificates on the machine will be checked. Other example paths: \u0027Cert:\\LocalMachine\u0027, \u0027Cert:\\LocalMachine\\TrustedPublisher\u0027, \u0027Cert:\\CurrentUser\u0027" - }, - "defaultValue": "Cert:" - }, - "ExpirationLimitInDays": { - "type": "String", - "metadata": { - "displayName": "Expiration limit in days", - "description": "An integer indicating the number of days within which to check for certificates that are expiring. For example, if this value is 30, any certificate expiring within the next 30 days will cause this policy to be non-compliant." - }, - "defaultValue": "30" - }, - "CertificateThumbprintsToInclude": { - "type": "String", - "metadata": { - "displayName": "Certificate thumbprints to include", - "description": "A semicolon-separated list of certificate thumbprints to check under the specified path. If a value is not specified, all certificates under the certificate store path will be checked. If a value is specified, no certificates other than those with the thumbprints specified will be checked. e.g. THUMBPRINT1;THUMBPRINT2;THUMBPRINT3" - }, - "defaultValue": "" - }, - "CertificateThumbprintsToExclude": { - "type": "String", - "metadata": { - "displayName": "Certificate thumbprints to exclude", - "description": "A semicolon-separated list of certificate thumbprints to ignore. e.g. THUMBPRINT1;THUMBPRINT2;THUMBPRINT3" - }, - "defaultValue": "" - }, - "IncludeExpiredCertificates": { - "type": "String", - "metadata": { - "displayName": "Include expired certificates", - "description": "Must be \u0027true\u0027 or \u0027false\u0027. True indicates that any found certificates that have already expired will also make this policy non-compliant. False indicates that certificates that have expired will be be ignored." - }, - "allowedValues": [ - "true", - "false" - ], - "defaultValue": "false" - } - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "dsvm-win*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "value": "[parameters(\u0027IncludeArcMachines\u0027)]", - "equals": "true" - }, - { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.ConnectedVMwarevSphere/virtualMachines" - }, - { - "field": "Microsoft.ConnectedVMwarevSphere/virtualMachines/osProfile.osType", - "like": "windows*" - } - ] - } - ] - } - ] - } - ] - }, - "then": { - "effect": "auditIfNotExists", - "details": { - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "CertificateExpiration", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus", - "equals": "Compliant" - }, - { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash", - "equals": "[base64(concat(\u0027[CertificateStore]CertificateStore1;CertificateStorePath\u0027, \u0027=\u0027, parameters(\u0027CertificateStorePath\u0027), \u0027,\u0027, \u0027[CertificateStore]CertificateStore1;ExpirationLimitInDays\u0027, \u0027=\u0027, parameters(\u0027ExpirationLimitInDays\u0027), \u0027,\u0027, \u0027[CertificateStore]CertificateStore1;CertificateThumbprintsToInclude\u0027, \u0027=\u0027, parameters(\u0027CertificateThumbprintsToInclude\u0027), \u0027,\u0027, \u0027[CertificateStore]CertificateStore1;CertificateThumbprintsToExclude\u0027, \u0027=\u0027, parameters(\u0027CertificateThumbprintsToExclude\u0027), \u0027,\u0027, \u0027[CertificateStore]CertificateStore1;IncludeExpiredCertificates\u0027, \u0027=\u0027, parameters(\u0027IncludeExpiredCertificates\u0027)))]" - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Deploy prerequisites to audit Windows VMs if the Administrators group contains any of the specified members", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines in which the Administrators group contains any of the specified members. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol", - "metadata": { - "version": "1.2.0-deprecated", - "category": "Guest Configuration", - "requiredProviders": [ - "Microsoft.GuestConfiguration" - ], - "deprecated": true - }, - "parameters": { - "MembersToExclude": { - "type": "String", - "metadata": { - "displayName": "Members to exclude", - "description": "A semicolon-separated list of members that should be excluded in the Administrators local group. Ex: Administrator; myUser1; myUser2" - } - } - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "dsvm-windows" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - } - ] - }, - "then": { - "effect": "deployIfNotExists", - "details": { - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "AdministratorsGroupMembersToExclude", - "existenceCondition": { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash", - "equals": "[base64(concat(\u0027[LocalGroup]AdministratorsGroup;MembersToExclude\u0027, \u0027=\u0027, parameters(\u0027MembersToExclude\u0027)))]" - }, - "deployment": { - "properties": { - "mode": "incremental", - "parameters": { - "vmName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "type": { - "value": "[field(\u0027type\u0027)]" - }, - "configurationName": { - "value": "AdministratorsGroupMembersToExclude" - }, - "MembersToExclude": { - "value": "[parameters(\u0027MembersToExclude\u0027)]" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "vmName": { - "type": "string" - }, - "location": { - "type": "string" - }, - "type": { - "type": "string" - }, - "configurationName": { - "type": "string" - }, - "MembersToExclude": { - "type": "string" - } - }, - "resources": [ - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027microsoft.hybridcompute/machines\u0027))]", - "apiVersion": "2018-11-20", - "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/Microsoft.GuestConfiguration/\u0027, parameters(\u0027configurationName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "guestConfiguration": { - "name": "[parameters(\u0027configurationName\u0027)]", - "version": "1.*", - "configurationParameter": [ - { - "name": "[LocalGroup]AdministratorsGroup;MembersToExclude", - "value": "[parameters(\u0027MembersToExclude\u0027)]" - } - ] - } - } - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2018-11-20", - "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/Microsoft.GuestConfiguration/\u0027, parameters(\u0027configurationName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "guestConfiguration": { - "name": "[parameters(\u0027configurationName\u0027)]", - "version": "1.*", - "configurationParameter": [ - { - "name": "[LocalGroup]AdministratorsGroup;MembersToExclude", - "value": "[parameters(\u0027MembersToExclude\u0027)]" - } - ] - } - } - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2019-07-01", - "type": "Microsoft.Compute/virtualMachines", - "identity": { - "type": "SystemAssigned" - }, - "name": "[parameters(\u0027vmName\u0027)]", - "location": "[parameters(\u0027location\u0027)]" - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2019-07-01", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/AzurePolicyforWindows\u0027)]", - "type": "Microsoft.Compute/virtualMachines/extensions", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "publisher": "Microsoft.GuestConfiguration", - "type": "ConfigurationforWindows", - "typeHandlerVersion": "1.1", - "autoUpgradeMinorVersion": true, - "settings": {}, - "protectedSettings": {} - }, - "dependsOn": [ - "[concat(\u0027Microsoft.Compute/virtualMachines/\u0027,parameters(\u0027vmName\u0027),\u0027/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/\u0027,parameters(\u0027configurationName\u0027))]" - ] - } - ] - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Configure Cognitive Services accounts to disable local authentication methods", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Disable local authentication methods so that your Cognitive Services accounts require Azure Active Directory identities exclusively for authentication. Learn more at: https://aka.ms/cs/auth.", - "metadata": { - "version": "1.0.0", - "category": "Cognitive Services" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Modify", - "Disabled" - ], - "defaultValue": "Modify" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.CognitiveServices/accounts" - }, - { - "field": "Microsoft.CognitiveServices/accounts/disableLocalAuth", - "notEquals": true - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "conflictEffect": "audit", - "operations": [ - { - "condition": "[greaterOrEquals(requestContext().apiVersion, \u00272021-04-30\u0027)]", - "operation": "addOrReplace", - "field": "Microsoft.CognitiveServices/accounts/disableLocalAuth", - "value": true - } - ] - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Preview]: Configure supported Windows machines to automatically install the Azure Security agent", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Configure supported Windows machines to automatically install the Azure Security agent. Security Center collects events from the agent and uses them to provide security alerts and tailored hardening tasks (recommendations). Target virtual machines must be in a supported location.", - "metadata": { - "category": "Security Center", - "version": "4.0.0-preview", - "preview": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "in": [ - "2008-R2-SP1", - "2008-R2-SP1-smalldisk", - "2012-Datacenter", - "2012-Datacenter-smalldisk", - "2012-R2-Datacenter", - "2012-R2-Datacenter-smalldisk", - "2016-Datacenter", - "2016-Datacenter-Server-Core", - "2016-Datacenter-Server-Core-smalldisk", - "2016-Datacenter-smalldisk", - "2016-Datacenter-with-Containers", - "2016-Datacenter-with-RDSH", - "2019-Datacenter", - "2019-Datacenter-Core", - "2019-Datacenter-Core-smalldisk", - "2019-Datacenter-Core-with-Containers", - "2019-Datacenter-Core-with-Containers-smalldisk", - "2019-Datacenter-smalldisk", - "2019-Datacenter-with-Containers", - "2019-Datacenter-with-Containers-smalldisk", - "2019-Datacenter-zhcn" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServerSemiAnnual" - }, - { - "field": "Microsoft.Compute/imageSKU", - "in": [ - "Datacenter-Core-1709-smalldisk", - "Datacenter-Core-1709-with-Containers-smalldisk", - "Datacenter-Core-1803-with-Containers-smalldisk" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServerHPCPack" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServerHPCPack" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2019" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2019-BYOL" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2016" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2016-BYOL" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2012R2" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2012R2-BYOL" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftRServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "MLServer-WS2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftVisualStudio" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "VisualStudio", - "Windows" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftDynamicsAX" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Dynamics" - }, - { - "field": "Microsoft.Compute/imageSKU", - "equals": "Pre-Req-AX7-Onebox-U8" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "windows-data-science-vm" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsDesktop" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Windows-10" - } - ] - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Compute/virtualMachines/extensions", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.Compute/virtualMachines/extensions/type", - "equals": "AzureSecurityWindowsAgent" - }, - { - "field": "Microsoft.Compute/virtualMachines/extensions/Publisher", - "equals": "Microsoft.Azure.Security.Monitoring" - }, - { - "field": "Microsoft.Compute/virtualMachines/extensions/provisioningState", - "in": [ - "Succeeded", - "Provisioning succeeded" - ] - } - ] - }, - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "deployment": { - "properties": { - "mode": "incremental", - "parameters": { - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "vmName": { - "value": "[field(\u0027name\u0027)]" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "location": { - "type": "string" - }, - "vmName": { - "type": "string" - } - }, - "variables": {}, - "resources": [ - { - "type": "Microsoft.Compute/virtualMachines/extensions", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/\u0027, \u0027AzureSecurityWindowsAgent\u0027)]", - "apiVersion": "2019-03-01", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "publisher": "Microsoft.Azure.Security.Monitoring", - "type": "AzureSecurityWindowsAgent", - "typeHandlerVersion": "1.0", - "autoUpgradeMinorVersion": "true", - "settings": {}, - "protectedsettings": {} - } - } - ] - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1157 - Plan Of Action And Milestones", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Security Assessment and Authorization control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1157" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1491 - Security Planning Policy And Procedures", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Planning control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1491" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1564 - System Development Life Cycle", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Services Acquisition control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1564" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Log Analytics agent should be installed on your Cloud Services (extended support) role instances", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Security Center collects data from your Cloud Services (extended support) role instances to monitor for security vulnerabilities and threats.", - "metadata": { - "version": "2.0.0", - "category": "Security Center" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Compute/cloudServices" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Security/assessments", - "name": "00000000-0000-0000-0000-000000000000", - "existenceCondition": { - "field": "Microsoft.Security/assessments/status.code", - "in": [ - "NotApplicable", - "Healthy" - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Deploy prerequisites to audit Windows VMs that do not have a minimum password age of 1 day", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines that do not have a minimum password age of 1 day. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol", - "metadata": { - "version": "2.2.0-deprecated", - "category": "Guest Configuration", - "requiredProviders": [ - "Microsoft.GuestConfiguration" - ], - "deprecated": true - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "dsvm-windows" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - } - ] - }, - "then": { - "effect": "deployIfNotExists", - "details": { - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "MinimumPasswordAge", - "deployment": { - "properties": { - "mode": "incremental", - "parameters": { - "vmName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "type": { - "value": "[field(\u0027type\u0027)]" - }, - "configurationName": { - "value": "MinimumPasswordAge" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "vmName": { - "type": "string" - }, - "location": { - "type": "string" - }, - "type": { - "type": "string" - }, - "configurationName": { - "type": "string" - } - }, - "resources": [ - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027microsoft.hybridcompute/machines\u0027))]", - "apiVersion": "2018-11-20", - "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/Microsoft.GuestConfiguration/\u0027, parameters(\u0027configurationName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "guestConfiguration": { - "name": "[parameters(\u0027configurationName\u0027)]", - "version": "1.*" - } - } - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2018-11-20", - "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/Microsoft.GuestConfiguration/\u0027, parameters(\u0027configurationName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "guestConfiguration": { - "name": "[parameters(\u0027configurationName\u0027)]", - "version": "1.*" - } - } - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2019-07-01", - "type": "Microsoft.Compute/virtualMachines", - "identity": { - "type": "SystemAssigned" - }, - "name": "[parameters(\u0027vmName\u0027)]", - "location": "[parameters(\u0027location\u0027)]" - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2019-07-01", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/AzurePolicyforWindows\u0027)]", - "type": "Microsoft.Compute/virtualMachines/extensions", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "publisher": "Microsoft.GuestConfiguration", - "type": "ConfigurationforWindows", - "typeHandlerVersion": "1.1", - "autoUpgradeMinorVersion": true, - "settings": {}, - "protectedSettings": {} - }, - "dependsOn": [ - "[concat(\u0027Microsoft.Compute/virtualMachines/\u0027,parameters(\u0027vmName\u0027),\u0027/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/\u0027,parameters(\u0027configurationName\u0027))]" - ] - } - ] - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Video Analyzer accounts should use customer-managed keys to encrypt data at rest", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Use customer-managed keys to manage the encryption at rest of your Video Analyzer accounts. By default, customer data is encrypted with service-managed keys, but customer-managed keys are commonly required to meet regulatory compliance standards. Customer-managed keys enable the data to be encrypted with an Azure Key Vault key created and owned by you. You have full control and responsibility for the key lifecycle, including rotation and management. Learn more at https://aka.ms/videoanalyzerscmkdocs.", - "metadata": { - "version": "1.0.0", - "category": "Video Analyzers" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Media/videoanalyzers" - }, - { - "field": "Microsoft.Media/videoanalyzers/encryption.type", - "notEquals": "CustomerKey" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1662 - Fail In Known State", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Communications Protection control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1662" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1684 - Information System Monitoring", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Information Integrity control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1684" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Azure NetApp Files Volumes of type NFSv4.1 should use Kerberos data integrity or data privacy", - "policyType": "BuiltIn", - "mode": "All", - "description": "Ensure that at least either Kerberos integrity (krb5i) or Kerberos privacy (krb5p) is selected to ensure data integrity and data privacy.", - "metadata": { - "version": "1.0.0", - "category": "Storage" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.NetApp/netAppAccounts/capacityPools/volumes" - }, - { - "count": { - "field": "Microsoft.NetApp/netAppAccounts/capacityPools/volumes/protocolTypes[*]", - "where": { - "field": "Microsoft.NetApp/netAppAccounts/capacityPools/volumes/protocolTypes[*]", - "equals": "NFSv4.1" - } - }, - "greater": 0 - }, - { - "anyOf": [ - { - "field": "Microsoft.NetApp/netAppAccounts/capacityPools/volumes/kerberosEnabled", - "exists": "false" - }, - { - "field": "Microsoft.NetApp/netAppAccounts/capacityPools/volumes/kerberosEnabled", - "equals": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.NetApp/netAppAccounts/capacityPools/volumes/kerberosEnabled", - "equals": "true" - }, - { - "count": { - "field": "Microsoft.NetApp/netAppAccounts/capacityPools/volumes/exportPolicy.rules[*]", - "where": { - "anyOf": [ - { - "allOf": [ - { - "field": "Microsoft.NetApp/netAppAccounts/capacityPools/volumes/exportPolicy.rules[*].kerberos5iReadWrite", - "equals": "false" - }, - { - "field": "Microsoft.NetApp/netAppAccounts/capacityPools/volumes/exportPolicy.rules[*].kerberos5iReadOnly", - "equals": "false" - }, - { - "field": "Microsoft.NetApp/netAppAccounts/capacityPools/volumes/exportPolicy.rules[*].kerberos5pReadWrite", - "equals": "false" - }, - { - "field": "Microsoft.NetApp/netAppAccounts/capacityPools/volumes/exportPolicy.rules[*].kerberos5pReadOnly", - "equals": "false" - } - ] - }, - { - "field": "Microsoft.NetApp/netAppAccounts/capacityPools/volumes/exportPolicy.rules[*].kerberos5ReadOnly", - "equals": "true" - }, - { - "field": "Microsoft.NetApp/netAppAccounts/capacityPools/volumes/exportPolicy.rules[*].kerberos5ReadWrite", - "equals": "true" - } - ] - } - }, - "greater": 0 - } - ] - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Show audit results from Windows VMs that do not have the specified Windows PowerShell modules installed", - "policyType": "BuiltIn", - "mode": "All", - "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines that do not have the specified Windows PowerShell modules installed. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol", - "metadata": { - "version": "1.0.0-deprecated", - "category": "Guest Configuration", - "deprecated": true - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "dsvm-windows" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - } - ] - }, - "then": { - "effect": "auditIfNotExists", - "details": { - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "WindowsPowerShellModules", - "existenceCondition": { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus", - "equals": "Compliant" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1103 - Audit Events", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Audit and Accountability control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1103" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1007 - Account Management", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Access Control control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1007" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Azure Batch pools should have disk encryption enabled", - "policyType": "BuiltIn", - "mode": "All", - "description": "Enabling Azure Batch disk encryption ensures that data is always encrypted at rest on your Azure Batch compute node. Learn more about disk encryption in Batch at https://docs.microsoft.com/azure/batch/disk-encryption.", - "metadata": { - "version": "1.0.0", - "category": "Batch" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Disabled", - "Deny" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Batch/batchAccounts/pools" - }, - { - "count": { - "field": "Microsoft.Batch/batchAccounts/pools/deploymentConfiguration.virtualMachineConfiguration.diskEncryptionConfiguration.targets[*]", - "where": { - "field": "Microsoft.Batch/batchAccounts/pools/deploymentConfiguration.virtualMachineConfiguration.diskEncryptionConfiguration.targets[*]", - "contains": "TemporaryDisk" - } - }, - "less": 1 - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1349 - Identification And Authentication (Non-Org. Users) | Use Of FICAM-Approved Products", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Identification and Authentication control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1349" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Deploy associations for a managed application", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Deploys an association resource that associates selected resource types to the specified managed application. This policy deployment does not support nested resource types.", - "metadata": { - "version": "1.0.0", - "category": "Managed Application" - }, - "parameters": { - "targetManagedApplicationId": { - "type": "String", - "metadata": { - "displayName": "Managed application ID", - "description": "Resource ID of the managed application to which resources need to be associated." - } - }, - "resourceTypesToAssociate": { - "type": "Array", - "metadata": { - "displayName": "Resource types to associate", - "description": "The list of resource types to be associated to the managed application.", - "strongType": "resourceTypes" - } - }, - "associationNamePrefix": { - "type": "String", - "metadata": { - "displayName": "Association name prefix", - "description": "Prefix to be added to the name of the association resource being created." - }, - "defaultValue": "DeployedByPolicy" - } - }, - "policyRule": { - "if": { - "field": "type", - "in": "[parameters(\u0027resourceTypesToAssociate\u0027)]" - }, - "then": { - "effect": "deployIfNotExists", - "details": { - "type": "Microsoft.CustomProviders/Associations", - "name": "[concat(parameters(\u0027associationNamePrefix\u0027), \u0027-\u0027, uniqueString(parameters(\u0027targetManagedApplicationId\u0027)))]", - "roleDefinitionIds": [ - "/providers/Microsoft.Authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "deployment": { - "properties": { - "mode": "incremental", - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "associatedResourceName": { - "type": "string" - }, - "resourceTypesToAssociate": { - "type": "string" - }, - "targetManagedApplicationId": { - "type": "string" - }, - "associationNamePrefix": { - "type": "string" - } - }, - "variables": { - "resourceType": "[concat(parameters(\u0027resourceTypesToAssociate\u0027), \u0027/providers/associations\u0027)]", - "resourceName": "[concat(parameters(\u0027associatedResourceName\u0027), \u0027/microsoft.customproviders/\u0027, parameters(\u0027associationNamePrefix\u0027), \u0027-\u0027, uniqueString(parameters(\u0027targetManagedApplicationId\u0027)))]" - }, - "resources": [ - { - "type": "Microsoft.Resources/deployments", - "apiVersion": "2017-05-10", - "name": "[concat(deployment().Name, \u0027-2\u0027)]", - "properties": { - "mode": "Incremental", - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "resources": [ - { - "type": "[variables(\u0027resourceType\u0027)]", - "name": "[variables(\u0027resourceName\u0027)]", - "apiVersion": "2018-09-01-preview", - "properties": { - "targetResourceId": "[parameters(\u0027targetManagedApplicationId\u0027)]" - } - } - ] - } - } - } - ] - }, - "parameters": { - "resourceTypesToAssociate": { - "value": "[field(\u0027type\u0027)]" - }, - "associatedResourceName": { - "value": "[field(\u0027name\u0027)]" - }, - "targetManagedApplicationId": { - "value": "[parameters(\u0027targetManagedApplicationId\u0027)]" - }, - "associationNamePrefix": { - "value": "[parameters(\u0027associationNamePrefix\u0027)]" - } - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Preview]: Configure system-assigned managed identity to enable Azure Monitor assignments on VMs", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Configure system-assigned managed identity to virtual machines hosted in Azure that are supported by Azure Monitor and do not have a system-assigned managed identity. A system-assigned managed identity is a prerequisite for all Azure Monitor assignments and must be added to machines before using any Azure Monitor extension. Target virtual machines must be in a supported location.", - "metadata": { - "category": "Monitoring", - "version": "4.0.0-preview", - "preview": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Modify", - "Disabled" - ], - "defaultValue": "Modify" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "anyOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachineScaleSets" - } - ] - }, - { - "field": "location", - "in": [ - "australiacentral", - "australiaeast", - "australiasoutheast", - "brazilsouth", - "canadacentral", - "canadaeast", - "centralindia", - "centralus", - "eastasia", - "eastus2euap", - "eastus", - "eastus2", - "francecentral", - "germanywestcentral", - "japaneast", - "japanwest", - "jioindiawest", - "koreacentral", - "koreasouth", - "northcentralus", - "northeurope", - "norwayeast", - "southafricanorth", - "southcentralus", - "southeastasia", - "southindia", - "switzerlandnorth", - "uaenorth", - "uksouth", - "ukwest", - "westcentralus", - "westeurope", - "westindia", - "westus", - "westus2" - ] - }, - { - "anyOf": [ - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "RedHat" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "RHEL", - "RHEL-SAP-HANA" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSku", - "like": "6*" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "7*" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "8*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "SUSE" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "SLES", - "SLES-HPC", - "SLES-HPC-Priority", - "SLES-SAP", - "SLES-SAP-BYOS", - "SLES-Priority", - "SLES-BYOS", - "SLES-SAPCAL", - "SLES-Standard" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSku", - "like": "12*" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "15*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Canonical" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "UbuntuServer" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSku", - "like": "14.04*LTS" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "16.04*LTS" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "18.04*LTS" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Canonical" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "0001-com-ubuntu-server-focal" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSku", - "like": "20_04-lts*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Oracle" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Oracle-Linux" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSku", - "like": "6*" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "7*" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "8*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "OpenLogic" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "CentOS", - "Centos-LVM", - "CentOS-SRIOV" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSku", - "like": "6*" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "7*" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "8*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloudera" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "cloudera-centos-os" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "7*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "credativ" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "debian" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSku", - "like": "8" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "9" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Debian" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "debian-10" - ] - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "10" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServer" - }, - { - "field": "Microsoft.Compute/imageSku", - "in": [ - "2008-R2-SP1", - "2008-R2-SP1-smalldisk", - "2012-Datacenter", - "2012-Datacenter-smalldisk", - "2012-R2-Datacenter", - "2012-R2-Datacenter-smalldisk", - "2016-Datacenter", - "2016-Datacenter-Server-Core", - "2016-Datacenter-Server-Core-smalldisk", - "2016-Datacenter-smalldisk", - "2016-Datacenter-with-Containers", - "2016-Datacenter-with-RDSH", - "2019-Datacenter", - "2019-Datacenter-Core", - "2019-Datacenter-Core-smalldisk", - "2019-Datacenter-Core-with-Containers", - "2019-Datacenter-Core-with-Containers-smalldisk", - "2019-Datacenter-smalldisk", - "2019-Datacenter-with-Containers", - "2019-Datacenter-with-Containers-smalldisk", - "2019-Datacenter-zhcn" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServerSemiAnnual" - }, - { - "field": "Microsoft.Compute/imageSku", - "in": [ - "Datacenter-Core-1709-smalldisk", - "Datacenter-Core-1709-with-Containers-smalldisk", - "Datacenter-Core-1803-with-Containers-smalldisk" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServerHPCPack" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServerHPCPack" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2019" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2019-BYOL" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2016" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2016-BYOL" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2012R2" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2012R2-BYOL" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftRServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "MLServer-WS2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftVisualStudio" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "VisualStudio", - "Windows" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftDynamicsAX" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Dynamics" - }, - { - "field": "Microsoft.Compute/imageSku", - "equals": "Pre-Req-AX7-Onebox-U8" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "windows-data-science-vm" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsDesktop" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Windows-10" - } - ] - }, - { - "field": "Microsoft.Compute/virtualMachines/securityProfile.uefiSettings", - "exists": "true" - } - ] - }, - { - "value": "[requestContext().apiVersion]", - "greaterOrEquals": "2018-10-01" - }, - { - "field": "identity.type", - "notContains": "SystemAssigned" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000", - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000", - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "operations": [ - { - "operation": "addOrReplace", - "field": "identity.type", - "value": "[if(contains(field(\u0027identity.type\u0027), \u0027UserAssigned\u0027), concat(field(\u0027identity.type\u0027), \u0027,SystemAssigned\u0027), \u0027SystemAssigned\u0027)]" - } - ] - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Transparent Data Encryption on SQL databases should be enabled", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Transparent data encryption should be enabled to protect data-at-rest and meet compliance requirements", - "metadata": { - "version": "2.0.0", - "category": "SQL" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Sql/servers/databases" - }, - { - "field": "name", - "notEquals": "master" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Sql/servers/databases/transparentDataEncryption", - "name": "current", - "existenceCondition": { - "anyOf": [ - { - "field": "Microsoft.Sql/transparentDataEncryption.status", - "equals": "enabled" - }, - { - "field": "Microsoft.Sql/servers/databases/transparentDataEncryption/state", - "equals": "enabled" - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/17k78e20-9358-41c9-923c-fb736d382a12", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "17k78e20-9358-41c9-923c-fb736d382a12" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1325 - Authenticator Management", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Identification and Authentication control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1325" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1480 - Temperature And Humidity Controls", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Physical and Environmental Protection control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1480" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "PostgreSQL servers should use customer-managed keys to encrypt data at rest", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Use customer-managed keys to manage the encryption at rest of your PostgreSQL servers. By default, the data is encrypted at rest with service-managed keys, but customer-managed keys are commonly required to meet regulatory compliance standards. Customer-managed keys enable the data to be encrypted with an Azure Key Vault key created and owned by you. You have full control and responsibility for the key lifecycle, including rotation and management.", - "metadata": { - "version": "1.0.4", - "category": "SQL" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.DBforPostgreSQL/servers" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.DBforPostgreSQL/servers/keys", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.DBforPostgreSQL/servers/keys/serverKeyType", - "equals": "AzureKeyVault" - }, - { - "field": "Microsoft.DBforPostgreSQL/servers/keys/uri", - "notEquals": "" - }, - { - "field": "Microsoft.DBforPostgreSQL/servers/keys/uri", - "exists": "true" - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1369 - Incident Monitoring", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Incident Response control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1369" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Application Insights components should block non-Azure Active Directory based ingestion.", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Enforcing log ingestion to require Azure Active Directory authentication prevents unauthenticated logs from an attacker which could lead to incorrect status, false alerts, and incorrect logs stored in the system.", - "metadata": { - "version": "1.0.0", - "category": "Monitoring" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Deny", - "Audit", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Insights/components" - }, - { - "field": "Microsoft.Insights/components/DisableLocalAuth", - "notEquals": "true" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1269 - Alternate Storage Site | Separation From Primary Site", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Contingency Planning control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1269" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Windows machines should meet requirements for \u0027System Audit Policies - Logon-Logoff\u0027", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Windows machines should have the specified Group Policy settings in the category \u0027System Audit Policies - Logon-Logoff\u0027 for auditing IPSec, network policy, claims, account lockout, group membership, and logon/logoff events. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.", - "metadata": { - "category": "Guest Configuration", - "version": "3.0.0", - "requiredProviders": [ - "Microsoft.GuestConfiguration" - ], - "guestConfiguration": { - "name": "AzureBaseline_SystemAuditPoliciesLogonLogoff", - "version": "1.*", - "configurationParameter": { - "AuditGroupMembership": "Audit Group Membership;ExpectedValue" - } - } - }, - "parameters": { - "IncludeArcMachines": { - "type": "String", - "metadata": { - "displayName": "Include Arc connected servers", - "description": "By selecting this option, you agree to be charged monthly per Arc connected machine.", - "portalReview": "true" - }, - "allowedValues": [ - "true", - "false" - ], - "defaultValue": "false" - }, - "AuditGroupMembership": { - "type": "String", - "metadata": { - "displayName": "Audit Group Membership", - "description": "Specifies whether audit events are generated when group memberships are enumerated on the client computer." - }, - "allowedValues": [ - "No Auditing", - "Success", - "Failure", - "Success and Failure" - ], - "defaultValue": "Success" - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of this policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "dsvm-win*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "value": "[parameters(\u0027IncludeArcMachines\u0027)]", - "equals": "true" - }, - { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.ConnectedVMwarevSphere/virtualMachines" - }, - { - "field": "Microsoft.ConnectedVMwarevSphere/virtualMachines/osProfile.osType", - "like": "windows*" - } - ] - } - ] - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "AzureBaseline_SystemAuditPoliciesLogonLogoff", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus", - "equals": "Compliant" - }, - { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash", - "equals": "[base64(concat(\u0027Audit Group Membership;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027AuditGroupMembership\u0027)))]" - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Preview]: Azure Key Vault Managed HSM should disable public network access", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Disable public network access for your Azure Key Vault Managed HSM so that it\u0027s not accessible over the public internet. This can reduce data leakage risks. Learn more at: https://docs.microsoft.com/azure/key-vault/managed-hsm/private-link#allow-trusted-services-to-access-managed-hsm.", - "metadata": { - "version": "1.0.0-preview", - "category": "Key Vault", - "preview": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.KeyVault/managedHSMs" - }, - { - "field": "Microsoft.KeyVault/managedHSMs/createMode", - "notEquals": "recover" - }, - { - "field": "Microsoft.KeyVault/managedHSMs/networkAcls.defaultAction", - "notEquals": "Deny" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1071 - Wireless Access | Restrict Configurations By Users", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Access Control control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1071" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Azure Monitor log profile should collect logs for categories \u0027write,\u0027 \u0027delete,\u0027 and \u0027action\u0027", - "policyType": "BuiltIn", - "mode": "All", - "description": "This policy ensures that a log profile collects logs for categories \u0027write,\u0027 \u0027delete,\u0027 and \u0027action\u0027", - "metadata": { - "version": "1.0.0", - "category": "Monitoring" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Resources/subscriptions" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Insights/logprofiles", - "existenceCondition": { - "allOf": [ - { - "not": { - "field": "Microsoft.Insights/logProfiles/categories[*]", - "notEquals": "Write" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/categories[*]", - "notEquals": "Delete" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/categories[*]", - "notEquals": "Action" - } - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Access to App Services should be restricted", - "policyType": "BuiltIn", - "mode": "All", - "description": "Azure security center has discovered that the networking configuration of some of your app services are overly permissive and allow inbound traffic from ranges that are too broad", - "metadata": { - "version": "1.0.0-deprecated", - "category": "Security Center", - "deprecated": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "Disabled" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Web/sites" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Security/complianceResults", - "name": "restrictAccessToAppServices", - "existenceCondition": { - "field": "Microsoft.Security/complianceResults/resourceStatus", - "in": [ - "OffByPolicy", - "Healthy" - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Azure Event Grid topics should disable public network access", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Disabling public network access improves security by ensuring that the resource isn\u0027t exposed on the public internet. You can limit exposure of your resources by creating private endpoints instead. Learn more at: https://aka.ms/privateendpoints.", - "metadata": { - "version": "1.0.0", - "category": "Event Grid" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.EventGrid/topics" - }, - { - "field": "kind", - "notEquals": "AzureArc" - }, - { - "field": "Microsoft.EventGrid/topics/publicNetworkAccess", - "notEquals": "Disabled" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Linux virtual machines should have Azure Monitor Agent installed", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Linux virtual machines should be monitored and secured through the deployed Azure Monitor Agent. The Azure Monitor Agent collects telemetry data from the guest OS. This policy will audit virtual machines with supported OS images in supported regions. Learn more: https://aka.ms/AMAOverview.", - "metadata": { - "version": "1.0.0", - "category": "Monitoring" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy." - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - }, - "listOfLinuxImageIdToInclude": { - "type": "Array", - "metadata": { - "displayName": "Additional Virtual Machine Images", - "description": "List of virtual machine images that have supported Linux OS to add to scope. Example values: \u0027/subscriptions/\u003CsubscriptionId\u003E/resourceGroups/YourResourceGroup/providers/Microsoft.Compute/images/ContosoStdImage\u0027" - }, - "defaultValue": [] - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "field": "location", - "in": [ - "australiacentral", - "australiaeast", - "australiasoutheast", - "brazilsouth", - "canadacentral", - "canadaeast", - "centralindia", - "centralus", - "eastasia", - "eastus2euap", - "eastus", - "eastus2", - "francecentral", - "germanywestcentral", - "japaneast", - "japanwest", - "jioindiawest", - "koreacentral", - "koreasouth", - "northcentralus", - "northeurope", - "norwayeast", - "southafricanorth", - "southcentralus", - "southeastasia", - "southindia", - "switzerlandnorth", - "uaenorth", - "uksouth", - "ukwest", - "westcentralus", - "westeurope", - "westindia", - "westus", - "westus2" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageId", - "in": "[parameters(\u0027listOfLinuxImageIdToInclude\u0027)]" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "RedHat" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "RHEL", - "RHEL-SAP-HANA" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSku", - "like": "6*" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "7*" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "8*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "SUSE" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "SLES", - "SLES-HPC", - "SLES-HPC-Priority", - "SLES-SAP", - "SLES-SAP-BYOS", - "SLES-Priority", - "SLES-BYOS", - "SLES-SAPCAL", - "SLES-Standard" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSku", - "like": "12*" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "15*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Canonical" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "UbuntuServer" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSku", - "like": "14.04*LTS" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "16.04*LTS" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "18.04*LTS" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Canonical" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "0001-com-ubuntu-server-focal" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSku", - "like": "20_04-lts*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Oracle" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Oracle-Linux" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSku", - "like": "6*" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "7*" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "8*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "OpenLogic" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "CentOS", - "Centos-LVM", - "CentOS-SRIOV" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSku", - "like": "6*" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "7*" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "8*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloudera" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "cloudera-centos-os" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "7*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "credativ" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "debian" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSku", - "like": "8" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "9" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Debian" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "debian-10" - ] - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "10" - } - ] - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Compute/virtualMachines/extensions", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.Compute/virtualMachines/extensions/type", - "equals": "AzureMonitorLinuxAgent" - }, - { - "field": "Microsoft.Compute/virtualMachines/extensions/publisher", - "equals": "Microsoft.Azure.Monitor" - }, - { - "field": "Microsoft.Compute/virtualMachines/extensions/provisioningState", - "equals": "Succeeded" - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Vulnerability assessment should be enabled on SQL Managed Instance", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Audit each SQL Managed Instance which doesn\u0027t have recurring vulnerability assessment scans enabled. Vulnerability assessment can discover, track, and help you remediate potential database vulnerabilities.", - "metadata": { - "version": "1.0.1", - "category": "SQL" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Sql/managedInstances" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Sql/managedInstances/vulnerabilityAssessments", - "name": "default", - "existenceCondition": { - "field": "Microsoft.Sql/managedInstances/vulnerabilityAssessments/recurringScans.isEnabled", - "equals": "True" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Public network access on Azure SQL Database should be disabled", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Disabling the public network access property improves security by ensuring your Azure SQL Database can only be accessed from a private endpoint. This configuration denies all logins that match IP or virtual network based firewall rules.", - "metadata": { - "version": "1.1.0", - "category": "SQL" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Sql/servers" - }, - { - "field": "Microsoft.Sql/servers/publicNetworkAccess", - "notEquals": "Disabled" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Configure Azure Web PubSub Service with private endpoints", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Private endpoints connect your virtual networks to Azure services without a public IP address at the source or destination. By mapping private endpoints to Azure Web PubSub service, you can reduce data leakage risks. Learn more about private links at: https://aka.ms/awps/privatelink. ", - "metadata": { - "version": "1.0.0", - "category": "Web PubSub" - }, - "parameters": { - "privateEndpointSubnetId": { - "type": "String", - "metadata": { - "displayName": "Private Endpoint Subnet ID", - "description": "A subnet with private endpoint network policies disabled.", - "strongType": "Microsoft.Network/virtualNetworks/subnets" - } - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.SignalRService/webPubSub" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.SignalRService/webPubSub/privateEndpointConnections", - "existenceCondition": { - "field": "Microsoft.SignalRService/webPubSub/privateEndpointConnections/privateLinkServiceConnectionState.status", - "equals": "Approved" - }, - "roleDefinitionIds": [ - "/providers/Microsoft.Authorization/roleDefinitions/00000000-0000-0000-0000-000000000000", - "/providers/Microsoft.Authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "deployment": { - "properties": { - "mode": "incremental", - "parameters": { - "name": { - "value": "[field(\u0027name\u0027)]" - }, - "serviceId": { - "value": "[field(\u0027id\u0027)]" - }, - "privateEndpointSubnetId": { - "value": "[parameters(\u0027privateEndpointSubnetId\u0027)]" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "name": { - "type": "string" - }, - "serviceId": { - "type": "string" - }, - "privateEndpointSubnetId": { - "type": "string" - } - }, - "variables": { - "privateEndpointName": "[concat(\u0027pe-\u0027,substring(parameters(\u0027name\u0027),0,min(length(parameters(\u0027name\u0027)),50)),\u0027-\u0027,uniquestring(deployment().name))]" - }, - "resources": [ - { - "type": "Microsoft.Resources/deployments", - "name": "[variables(\u0027privateEndpointName\u0027)]", - "apiVersion": "2020-06-01", - "properties": { - "mode": "Incremental", - "expressionEvaluationOptions": { - "scope": "inner" - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "serviceId": { - "type": "string" - }, - "privateEndpointSubnetId": { - "type": "string" - }, - "subnetLocation": { - "type": "string" - } - }, - "variables": { - "privateEndpointName": "[deployment().name]" - }, - "resources": [ - { - "name": "[variables(\u0027privateEndpointName\u0027)]", - "type": "Microsoft.Network/privateEndpoints", - "apiVersion": "2020-07-01", - "location": "[parameters(\u0027subnetLocation\u0027)]", - "tags": {}, - "properties": { - "subnet": { - "id": "[parameters(\u0027privateEndpointSubnetId\u0027)]" - }, - "privateLinkServiceConnections": [ - { - "name": "[variables(\u0027privateEndpointName\u0027)]", - "properties": { - "privateLinkServiceId": "[parameters(\u0027serviceId\u0027)]", - "groupIds": [ - "webpubsub" - ], - "requestMessage": "autoapprove" - } - } - ], - "manualPrivateLinkServiceConnections": [] - } - } - ] - }, - "parameters": { - "serviceId": { - "value": "[parameters(\u0027serviceId\u0027)]" - }, - "privateEndpointSubnetId": { - "value": "[parameters(\u0027privateEndpointSubnetId\u0027)]" - }, - "subnetLocation": { - "value": "[reference(first(take(split(parameters(\u0027privateEndpointSubnetId\u0027),\u0027/subnets\u0027),1)),\u00272020-07-01\u0027,\u0027Full\u0027).location]" - } - } - } - } - ] - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Application Insights components should block log ingestion and querying from public networks", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Improve Application Insights security by blocking log ingestion and querying from public networks. Only private-link connected networks will be able to ingest and query logs of this component. Learn more at https://aka.ms/AzMonPrivateLink#configure-application-insights.", - "metadata": { - "version": "1.0.0", - "category": "Monitoring" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "The effect determines what happens when the policy rule is evaluated to match" - }, - "allowedValues": [ - "audit", - "deny", - "disabled" - ], - "defaultValue": "audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Insights/components" - }, - { - "anyOf": [ - { - "field": "Microsoft.Insights/components/publicNetworkAccessForIngestion", - "notEquals": "disabled" - }, - { - "field": "Microsoft.Insights/components/publicNetworkAccessForQuery", - "notEquals": "disabled" - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Ensure that \u0027PHP version\u0027 is the latest, if used as a part of the API app", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Periodically, newer versions are released for PHP software either due to security flaws or to include additional functionality. Using the latest PHP version for API apps is recommended in order to take advantage of security fixes, if any, and/or new functionalities of the latest version. Currently, this policy only applies to Linux web apps.", - "metadata": { - "version": "2.1.0", - "category": "App Service" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - }, - "PHPLatestVersion": { - "type": "String", - "metadata": { - "displayName": "Latest PHP version", - "description": "Latest supported PHP version for App Services" - }, - "defaultValue": "7.4" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Web/sites" - }, - { - "field": "kind", - "like": "*api" - }, - { - "field": "kind", - "contains": "linux" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Web/sites/config", - "name": "web", - "existenceCondition": { - "anyOf": [ - { - "field": "Microsoft.Web/sites/config/web.linuxFxVersion", - "notContains": "PHP" - }, - { - "field": "Microsoft.Web/sites/config/web.linuxFxVersion", - "equals": "[concat(\u0027PHP|\u0027, parameters(\u0027PHPLatestVersion\u0027))]" - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Azure Service Bus namespaces should use private link", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination. The Private Link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to Service Bus namespaces, data leakage risks are reduced. Learn more at: https://docs.microsoft.com/azure/service-bus-messaging/private-link-service.", - "metadata": { - "version": "1.0.0", - "category": "Service Bus" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.ServiceBus/namespaces" - }, - { - "field": "Microsoft.ServiceBus/namespaces/sku.tier", - "equals": "Premium" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.ServiceBus/namespaces/privateEndpointConnections", - "existenceCondition": { - "field": "Microsoft.ServiceBus/namespaces/privateEndpointConnections/privateLinkServiceConnectionState.status", - "equals": "Approved" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Deploy - Configure Dependency agent to be enabled on Windows virtual machines", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Deploy Dependency agent for Windows virtual machines if the virtual machine image is in the list defined and the agent is not installed.", - "metadata": { - "version": "2.0.0", - "category": "Monitoring" - }, - "parameters": { - "listOfImageIdToInclude": { - "type": "Array", - "metadata": { - "displayName": "Optional: List of virtual machine images that have supported Windows OS to add to scope", - "description": "Example value: \u0027/subscriptions/\u003CsubscriptionId\u003E/resourceGroups/YourResourceGroup/providers/Microsoft.Compute/images/ContosoStdImage\u0027" - }, - "defaultValue": [] - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageId", - "in": "[parameters(\u0027listOfImageIdToInclude\u0027)]" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "in": [ - "2008-R2-SP1", - "2008-R2-SP1-smalldisk", - "2012-Datacenter", - "2012-Datacenter-smalldisk", - "2012-R2-Datacenter", - "2012-R2-Datacenter-smalldisk", - "2016-Datacenter", - "2016-Datacenter-Server-Core", - "2016-Datacenter-Server-Core-smalldisk", - "2016-Datacenter-smalldisk", - "2016-Datacenter-with-Containers", - "2016-Datacenter-with-RDSH", - "2019-Datacenter", - "2019-Datacenter-Core", - "2019-Datacenter-Core-smalldisk", - "2019-Datacenter-Core-with-Containers", - "2019-Datacenter-Core-with-Containers-smalldisk", - "2019-Datacenter-smalldisk", - "2019-Datacenter-with-Containers", - "2019-Datacenter-with-Containers-smalldisk", - "2019-Datacenter-zhcn" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServerSemiAnnual" - }, - { - "field": "Microsoft.Compute/imageSKU", - "in": [ - "Datacenter-Core-1709-smalldisk", - "Datacenter-Core-1709-with-Containers-smalldisk", - "Datacenter-Core-1803-with-Containers-smalldisk" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServerHPCPack" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServerHPCPack" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2016" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2016-BYOL" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2012R2" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2012R2-BYOL" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftRServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "MLServer-WS2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftVisualStudio" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "VisualStudio", - "Windows" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftDynamicsAX" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Dynamics" - }, - { - "field": "Microsoft.Compute/imageSKU", - "equals": "Pre-Req-AX7-Onebox-U8" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftDynamicsAX" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Dynamics" - }, - { - "field": "Microsoft.Compute/imageSKU", - "equals": "Pre-Req-AX7-Onebox-V4" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "windows-data-science-vm" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsDesktop" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Windows-10" - } - ] - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Compute/virtualMachines/extensions", - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.Compute/virtualMachines/extensions/type", - "equals": "DependencyAgentWindows" - }, - { - "field": "Microsoft.Compute/virtualMachines/extensions/publisher", - "equals": "Microsoft.Azure.Monitoring.DependencyAgent" - }, - { - "field": "Microsoft.Compute/virtualMachines/extensions/provisioningState", - "equals": "Succeeded" - } - ] - }, - "deployment": { - "properties": { - "mode": "incremental", - "template": { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "vmName": { - "type": "string" - }, - "location": { - "type": "string" - } - }, - "variables": { - "vmExtensionName": "DependencyAgentWindows", - "vmExtensionPublisher": "Microsoft.Azure.Monitoring.DependencyAgent", - "vmExtensionType": "DependencyAgentWindows", - "vmExtensionTypeHandlerVersion": "9.6" - }, - "resources": [ - { - "type": "Microsoft.Compute/virtualMachines/extensions", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/\u0027, variables(\u0027vmExtensionName\u0027))]", - "apiVersion": "2018-06-01", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "publisher": "[variables(\u0027vmExtensionPublisher\u0027)]", - "type": "[variables(\u0027vmExtensionType\u0027)]", - "typeHandlerVersion": "[variables(\u0027vmExtensionTypeHandlerVersion\u0027)]", - "autoUpgradeMinorVersion": true - } - } - ], - "outputs": { - "policy": { - "type": "string", - "value": "[concat(\u0027Enabled extension for VM\u0027, \u0027: \u0027, parameters(\u0027vmName\u0027))]" - } - } - }, - "parameters": { - "vmName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - } - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Preview]: vTPM should be enabled on supported virtual machines", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Enable virtual TPM device on supported virtual machines to facilitate Measured Boot and other OS security features that require a TPM. Once enabled, vTPM can be used to attest boot integrity. This assessment only applies to trusted launch enabled virtual machines.", - "metadata": { - "category": "Security Center", - "version": "2.0.0-preview", - "preview": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "field": "Microsoft.Compute/virtualMachines/securityProfile.securityType", - "equals": "TrustedLaunch" - }, - { - "field": "Microsoft.Compute/virtualMachines/securityProfile.uefiSettings", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/securityProfile.uefiSettings.vTpmEnabled", - "notequals": "true" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Configure Azure Event Grid topics to disable local authentication", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Disable local authentication methods so that your Azure Event Grid topics exclusively require Azure Active Directory identities for authentication. Learn more at: https://aka.ms/aeg-disablelocalauth.", - "metadata": { - "version": "1.0.0", - "category": "Event Grid" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Modify", - "Disabled" - ], - "defaultValue": "Modify" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.EventGrid/topics" - }, - { - "field": "Microsoft.EventGrid/topics/disableLocalAuth", - "notEquals": true - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "conflictEffect": "audit", - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "operations": [ - { - "condition": "[greaterOrEquals(requestContext().apiVersion, \u00272021-06-01-preview\u0027)]", - "operation": "addOrReplace", - "field": "Microsoft.EventGrid/topics/disableLocalAuth", - "value": true - } - ] - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Defender for Containers should be enabled", - "policyType": "BuiltIn", - "mode": "All", - "description": "Microsoft Defender for Containers provides hardening, vulnerability assessment and run-time protections for your Azure, hybrid, and multi-cloud Kubernetes environments.", - "metadata": { - "version": "1.0.0", - "category": "Security Center" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Resources/subscriptions" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Security/pricings", - "name": "Containers", - "existenceScope": "subscription", - "existenceCondition": { - "field": "Microsoft.Security/pricings/pricingTier", - "equals": "Standard" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1072 - Wireless Access | Antennas / Transmission Power Levels", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Access Control control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1072" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1656 - Secure Name / Address Resolution Service (Authoritative Source)", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Communications Protection control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1656" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Preview]: Guest Attestation extension should be installed on supported Windows virtual machines", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Install Guest Attestation extension on supported virtual machines to allow Azure Security Center to proactively attest and monitor the boot integrity. Once installed, boot integrity will be attested via Remote Attestation. This assessment only applies to trusted launch enabled virtual machines.", - "metadata": { - "category": "Security Center", - "version": "3.0.0-preview", - "preview": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.imageReference.offer", - "like": "windows*" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "field": "Microsoft.Compute/virtualMachines/securityProfile.securityType", - "equals": "TrustedLaunch" - }, - { - "field": "Microsoft.Compute/virtualMachines/securityProfile.uefiSettings", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/securityProfile.uefiSettings.secureBootEnabled", - "equals": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/securityProfile.uefiSettings.vTpmEnabled", - "equals": "true" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Compute/virtualMachines/extensions", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.Compute/virtualMachines/extensions/publisher", - "equals": "Microsoft.Azure.Security.WindowsAttestation" - }, - { - "field": "Microsoft.Compute/virtualMachines/extensions/type", - "equals": "GuestAttestation" - }, - { - "field": "Microsoft.Compute/virtualMachines/extensions/provisioningState", - "in": [ - "Succeeded", - "Provisioning succeeded" - ] - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Public network access on Azure Data Factory should be disabled", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Disabling the public network access property improves security by ensuring your Azure Data Factory can only be accessed from a private endpoint.", - "metadata": { - "version": "1.0.0", - "category": "Data Factory" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.DataFactory/factories" - }, - { - "field": "Microsoft.DataFactory/factories/publicNetworkAccess", - "notEquals": "Disabled" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1592 - External Information System Services | Consistent Interests Of Consumers And Providers", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Services Acquisition control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1592" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Azure File Sync should use private link", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Creating a private endpoint for the indicated Storage Sync Service resource allows you to address your Storage Sync Service resource from within the private IP address space of your organization\u0027s network, rather than through the internet-accessible public endpoint. Creating a private endpoint by itself does not disable the public endpoint.", - "metadata": { - "version": "1.0.0", - "category": "Storage" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.StorageSync/storageSyncServices" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.StorageSync/storageSyncServices/privateEndpointConnections", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.StorageSync/storageSyncServices/privateEndpointConnections/privateEndpoint", - "exists": "true" - }, - { - "field": "Microsoft.StorageSync/storageSyncServices/privateEndpointConnections/provisioningState", - "equals": "Succeeded" - }, - { - "field": "Microsoft.StorageSync/storageSyncServices/privateEndpointConnections/privateLinkServiceConnectionState.status", - "equals": "Approved" - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1088 - Security Awareness And Training Policy And Procedures", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Awareness and Training control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1088" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Configure Kubernetes clusters with specified GitOps configuration using no secrets", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Deploy a \u0027sourceControlConfiguration\u0027 to Kubernetes clusters to assure that the clusters get their source of truth for workloads and configurations from the defined git repo. This definition requires no secrets. For instructions, visit https://aka.ms/K8sGitOpsPolicy.", - "metadata": { - "version": "1.0.0", - "category": "Kubernetes" - }, - "parameters": { - "configurationResourceName": { - "type": "String", - "metadata": { - "displayName": "Configuration resource name", - "description": "The name for the sourceControlConfiguration. Learn more about setting up GitOps configuration: https://aka.ms/AzureArcK8sUsingGitOps." - } - }, - "operatorInstanceName": { - "type": "String", - "metadata": { - "displayName": "Operator instance name", - "description": "Name used in the operator instances. Maximum of 23 lowercase alphanumeric characters or hyphen. Must start and end with an alphanumeric character." - } - }, - "operatorNamespace": { - "type": "String", - "metadata": { - "displayName": "Operator namespace", - "description": "Namespace within which the operators will be installed. Maximum of 23 lowercase alphanumeric characters or hyphen. Must start and end with an alphanumeric character." - } - }, - "operatorScope": { - "type": "String", - "metadata": { - "displayName": "Operator scope", - "description": "The permission scope for the operator. Possible values are \u0027cluster\u0027 (full access) or \u0027namespace\u0027 (restricted access)." - }, - "allowedValues": [ - "cluster", - "namespace" - ], - "defaultValue": "namespace" - }, - "operatorType": { - "type": "String", - "metadata": { - "displayName": "Operator type", - "description": "The type of operator to install. Currently, \u0027Flux\u0027 is supported." - }, - "allowedValues": [ - "Flux" - ], - "defaultValue": "Flux" - }, - "operatorParams": { - "type": "String", - "metadata": { - "displayName": "Operator parameters", - "description": "Parameters to set on the Flux operator, separated by spaces. For example, --git-readonly --sync-garbage-collection. Learn more: http://aka.ms/AzureArcK8sFluxOperatorParams." - }, - "defaultValue": "" - }, - "repositoryUrl": { - "type": "String", - "metadata": { - "displayName": "Repository Url", - "description": "The URL for the source control repository. Learn more about URL formats: https://aka.ms/GitOpsRepoUrlParameters" - } - }, - "enableHelmOperator": { - "type": "String", - "metadata": { - "displayName": "Enable Helm", - "description": "Indicate whether to enable Helm for this instance of Flux. Learn more: http://aka.ms/AzureArcK8sGitOpsWithHelm." - }, - "allowedValues": [ - "true", - "false" - ], - "defaultValue": "true" - }, - "chartVersion": { - "type": "String", - "metadata": { - "displayName": "Helm chart version for installing Flux Helm", - "description": "The version of the Helm chart for installing Flux Helm. For example, 1.2.0" - }, - "defaultValue": "1.2.0" - }, - "chartValues": { - "type": "String", - "metadata": { - "displayName": "Helm chart parameters for installing Flux Helm", - "description": "Parameters for the Helm chart for installing Flux Helm, separated by spaces. For example, --set helm.versions=v3" - }, - "defaultValue": "" - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "deployIfNotExists", - "auditIfNotExists", - "disabled" - ], - "defaultValue": "deployIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "in": [ - "Microsoft.Kubernetes/connectedClusters", - "Microsoft.ContainerService/managedClusters" - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.KubernetesConfiguration/sourceControlConfigurations", - "name": "[parameters(\u0027configurationResourceName\u0027)]", - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "deploymentScope": "ResourceGroup", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.KubernetesConfiguration/sourceControlConfigurations/operatorParams", - "in": [ - "[parameters(\u0027operatorParams\u0027)]", - "[concat(\u0027--git-readonly \u0027,parameters(\u0027operatorParams\u0027))]" - ] - }, - { - "field": "Microsoft.KubernetesConfiguration/sourceControlConfigurations/repositoryUrl", - "equals": "[parameters(\u0027repositoryUrl\u0027)]" - }, - { - "anyOf": [ - { - "field": "Microsoft.KubernetesConfiguration/sourceControlConfigurations/enableHelmOperator", - "equals": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.KubernetesConfiguration/sourceControlConfigurations/enableHelmOperator", - "equals": "true" - }, - { - "field": "Microsoft.KubernetesConfiguration/sourceControlConfigurations/helmOperatorProperties.chartVersion", - "equals": "[parameters(\u0027chartVersion\u0027)]" - }, - { - "field": "Microsoft.KubernetesConfiguration/sourceControlConfigurations/helmOperatorProperties.chartValues", - "equals": "[parameters(\u0027chartValues\u0027)]" - } - ] - } - ] - } - ] - }, - "deployment": { - "properties": { - "mode": "incremental", - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "configurationResourceName": { - "type": "string" - }, - "clusterLocation": { - "type": "string" - }, - "clusterName": { - "type": "string" - }, - "operatorInstanceName": { - "type": "string" - }, - "operatorNamespace": { - "type": "string" - }, - "operatorScope": { - "type": "string" - }, - "operatorType": { - "type": "string" - }, - "operatorParams": { - "type": "string" - }, - "repositoryUrl": { - "type": "string" - }, - "enableHelmOperator": { - "type": "string" - }, - "chartVersion": { - "type": "string" - }, - "chartValues": { - "type": "string" - }, - "clusterResourceType": { - "type": "string" - } - }, - "resources": [ - { - "condition": "[contains(toLower(parameters(\u0027clusterResourceType\u0027)), toLower(\u0027connectedclusters\u0027))]", - "type": "Microsoft.Kubernetes/connectedClusters/providers/sourceControlConfigurations", - "name": "[concat(parameters(\u0027clusterName\u0027), \u0027/Microsoft.KubernetesConfiguration/\u0027, parameters(\u0027configurationResourceName\u0027))]", - "apiVersion": "2021-03-01", - "properties": { - "operatorInstanceName": "[parameters(\u0027operatorInstanceName\u0027)]", - "operatorNamespace": "[parameters(\u0027operatorNamespace\u0027)]", - "operatorScope": "[parameters(\u0027operatorScope\u0027)]", - "operatorType": "[parameters(\u0027operatorType\u0027)]", - "operatorParams": "[parameters(\u0027operatorParams\u0027)]", - "repositoryUrl": "[parameters(\u0027repositoryUrl\u0027)]", - "enableHelmOperator": "[parameters(\u0027enableHelmOperator\u0027)]", - "helmOperatorProperties": { - "chartVersion": "[parameters(\u0027chartVersion\u0027)]", - "chartValues": "[parameters(\u0027chartValues\u0027)]" - } - } - }, - { - "condition": "[contains(toLower(parameters(\u0027clusterResourceType\u0027)), toLower(\u0027managedclusters\u0027))]", - "type": "Microsoft.ContainerService/managedClusters/providers/sourceControlConfigurations", - "name": "[concat(parameters(\u0027clusterName\u0027), \u0027/Microsoft.KubernetesConfiguration/\u0027, parameters(\u0027configurationResourceName\u0027))]", - "apiVersion": "2021-03-01", - "properties": { - "operatorInstanceName": "[parameters(\u0027operatorInstanceName\u0027)]", - "operatorNamespace": "[parameters(\u0027operatorNamespace\u0027)]", - "operatorScope": "[parameters(\u0027operatorScope\u0027)]", - "operatorType": "[parameters(\u0027operatorType\u0027)]", - "operatorParams": "[parameters(\u0027operatorParams\u0027)]", - "repositoryUrl": "[parameters(\u0027repositoryUrl\u0027)]", - "enableHelmOperator": "[parameters(\u0027enableHelmOperator\u0027)]", - "helmOperatorProperties": { - "chartVersion": "[parameters(\u0027chartVersion\u0027)]", - "chartValues": "[parameters(\u0027chartValues\u0027)]" - } - } - } - ] - }, - "parameters": { - "clusterLocation": { - "value": "[field(\u0027location\u0027)]" - }, - "clusterName": { - "value": "[field(\u0027name\u0027)]" - }, - "configurationResourceName": { - "value": "[parameters(\u0027configurationResourceName\u0027)]" - }, - "operatorInstanceName": { - "value": "[parameters(\u0027operatorInstanceName\u0027)]" - }, - "operatorNamespace": { - "value": "[parameters(\u0027operatorNamespace\u0027)]" - }, - "operatorScope": { - "value": "[parameters(\u0027operatorScope\u0027)]" - }, - "operatorType": { - "value": "[parameters(\u0027operatorType\u0027)]" - }, - "operatorParams": { - "value": "[parameters(\u0027operatorParams\u0027)]" - }, - "repositoryUrl": { - "value": "[parameters(\u0027repositoryUrl\u0027)]" - }, - "enableHelmOperator": { - "value": "[parameters(\u0027enableHelmOperator\u0027)]" - }, - "chartVersion": { - "value": "[parameters(\u0027chartVersion\u0027)]" - }, - "chartValues": { - "value": "[parameters(\u0027chartValues\u0027)]" - }, - "clusterResourceType": { - "value": "[field(\u0027type\u0027)]" - } - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1538 - Security Categorization", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Risk Assessment control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1538" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Virtual machines should be migrated to new Azure Resource Manager resources", - "policyType": "BuiltIn", - "mode": "All", - "description": "Use new Azure Resource Manager for your virtual machines to provide security enhancements such as: stronger access control (RBAC), better auditing, Azure Resource Manager based deployment and governance, access to managed identities, access to key vault for secrets, Azure AD-based authentication and support for tags and resource groups for easier security management", - "metadata": { - "version": "1.0.0", - "category": "Compute" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "The effect determines what happens when the policy rule is evaluated to match" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.ClassicCompute/virtualMachines", - "Microsoft.Compute/virtualMachines" - ] - }, - { - "value": "[field(\u0027type\u0027)]", - "equals": "Microsoft.ClassicCompute/virtualMachines" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1298 - Identification And Authentication Policy And Procedures", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Identification and Authentication control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1298" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Audit API Applications that are not using latest supported .NET Framework", - "policyType": "BuiltIn", - "mode": "All", - "description": "Use the latest supported .NET Framework version for the latest security classes. Using older classes and types can make your application vulnerable.", - "metadata": { - "version": "1.0.0-deprecated", - "category": "Security Center", - "deprecated": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "allof": [ - { - "field": "type", - "equals": "microsoft.Web/sites" - }, - { - "anyof": [ - { - "field": "kind", - "equals": "api" - }, - { - "field": "kind", - "equals": "apiApp" - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Security/complianceResults", - "name": "UseLatestDotNet", - "existenceCondition": { - "field": "Microsoft.Security/complianceResults/resourceStatus", - "in": [ - "OffByPolicy", - "Healthy" - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1595 - Developer Configuration Management", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Services Acquisition control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1595" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Require a tag and its value on resources", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Enforces a required tag and its value. Does not apply to resource groups.", - "metadata": { - "version": "1.0.1", - "category": "Tags" - }, - "parameters": { - "tagName": { - "type": "String", - "metadata": { - "displayName": "Tag Name", - "description": "Name of the tag, such as \u0027environment\u0027" - } - }, - "tagValue": { - "type": "String", - "metadata": { - "displayName": "Tag Value", - "description": "Value of the tag, such as \u0027production\u0027" - } - } - }, - "policyRule": { - "if": { - "not": { - "field": "[concat(\u0027tags[\u0027, parameters(\u0027tagName\u0027), \u0027]\u0027)]", - "equals": "[parameters(\u0027tagValue\u0027)]" - } - }, - "then": { - "effect": "deny" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Cloud Services (extended support) role instances should have an endpoint protection solution installed", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Protect your Cloud Services (extended support) role instances from threats and vulnerabilities by ensuring an endpoint protection solution is installed on them.", - "metadata": { - "version": "1.0.0", - "category": "Security Center" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Compute/cloudServices" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Security/assessments", - "name": "00000000-0000-0000-0000-000000000000", - "existenceCondition": { - "field": "Microsoft.Security/assessments/status.code", - "in": [ - "NotApplicable", - "Healthy" - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Configure Azure Synapse workspaces to use private DNS zones", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Use private DNS zones to override the DNS resolution for a private endpoint. A private DNS zone links to your virtual network to resolve to Azure Synapse workspace. Learn more at: https://docs.microsoft.com/azure/synapse-analytics/security/how-to-connect-to-workspace-from-restricted-network#appendix-dns-registration-for-private-endpoint.", - "metadata": { - "version": "1.0.0", - "category": "Synapse" - }, - "parameters": { - "privateDnsZoneId": { - "type": "String", - "metadata": { - "displayName": "Private DNS Zone id", - "description": "A private DNS zone Id", - "strongType": "Microsoft.Network/privateDnsZones" - } - }, - "targetSubResource": { - "type": "String", - "metadata": { - "displayName": "Target sub-resource", - "description": "Target sub resource the private endpoint connects to" - }, - "allowedValues": [ - "Dev", - "Sql", - "SqlOnDemand" - ], - "defaultValue": "Dev" - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Network/privateEndpoints" - }, - { - "count": { - "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*].groupIds[*]", - "where": { - "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*].groupIds[*]", - "equals": "[parameters(\u0027targetSubResource\u0027)]" - } - }, - "greaterOrEquals": 1 - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups", - "roleDefinitionIds": [ - "/providers/Microsoft.Authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "deployment": { - "properties": { - "mode": "incremental", - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "privateDnsZoneId": { - "type": "string" - }, - "privateEndpointName": { - "type": "string" - }, - "location": { - "type": "string" - } - }, - "resources": [ - { - "name": "[concat(parameters(\u0027privateEndpointName\u0027), \u0027/deployedByPolicy\u0027)]", - "type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups", - "apiVersion": "2020-03-01", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "privateDnsZoneConfigs": [ - { - "name": "synapse-privateDnsZone", - "properties": { - "privateDnsZoneId": "[parameters(\u0027privateDnsZoneId\u0027)]" - } - } - ] - } - } - ] - }, - "parameters": { - "privateDnsZoneId": { - "value": "[parameters(\u0027privateDnsZoneId\u0027)]" - }, - "privateEndpointName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - } - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Key vaults should have soft delete enabled", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Deleting a key vault without soft delete enabled permanently deletes all secrets, keys, and certificates stored in the key vault. Accidental deletion of a key vault can lead to permanent data loss. Soft delete allows you to recover an accidentally deleted key vault for a configurable retention period.", - "metadata": { - "version": "2.0.0", - "category": "Key Vault" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.KeyVault/vaults" - }, - { - "not": { - "field": "Microsoft.KeyVault/vaults/createMode", - "equals": "recover" - } - }, - { - "anyOf": [ - { - "field": "Microsoft.KeyVault/vaults/enableSoftDelete", - "exists": "false" - }, - { - "field": "Microsoft.KeyVault/vaults/enableSoftDelete", - "equals": "false" - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Linux machines should have Log Analytics agent installed on Azure Arc", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Machines are non-compliant if Log Analytics agent is not installed on Azure Arc enabled Linux server.", - "metadata": { - "category": "Guest Configuration", - "version": "1.1.0", - "requiredProviders": [ - "Microsoft.GuestConfiguration" - ], - "guestConfiguration": { - "name": "LinuxLogAnalyticsAgentInstalled", - "version": "1.*" - } - }, - "parameters": { - "IncludeArcMachines": { - "type": "String", - "metadata": { - "displayName": "Include Arc connected servers", - "description": "By selecting this option, you agree to be charged monthly per Arc connected machine.", - "portalReview": "true" - }, - "allowedValues": [ - "true", - "false" - ], - "defaultValue": "false" - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of this policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "value": "[parameters(\u0027IncludeArcMachines\u0027)]", - "equals": "true" - }, - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "linux*" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "LinuxLogAnalyticsAgentInstalled", - "existenceCondition": { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus", - "equals": "Compliant" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Preview]: Deploy Microsoft Defender for Endpoint agent on Windows virtual machines", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Deploys Microsoft Defender for Endpoint on applicable Windows VM images.", - "metadata": { - "category": "Security Center", - "version": "1.0.0-preview", - "preview": true - }, - "parameters": { - "PublishersToExclude": { - "type": "Array", - "metadata": { - "displayName": "Optional: List Of Image Publishers to exclude", - "description": "List of Windows image Publishers to exclude from MDE provision" - }, - "defaultValue": [] - }, - "ImageIdsToExclude": { - "type": "Array", - "metadata": { - "displayName": "Optional: List of virtual machine images to exclude", - "description": "Example value: \u0027/subscriptions/\u003CsubscriptionId\u003E/resourceGroups/YourResourceGroup/providers/Microsoft.Compute/images/ContosoImage\u0027" - }, - "defaultValue": [] - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - }, - { - "anyOf": [ - { - "not": { - "field": "Microsoft.Compute/virtualMachines/imagePublisher", - "in": "[parameters(\u0027PublishersToExclude\u0027)]" - } - }, - { - "value": "[empty(parameters(\u0027PublishersToExclude\u0027))]", - "equals": "true" - } - ] - }, - { - "anyOf": [ - { - "not": { - "field": "Microsoft.Compute/virtualMachines/storageProfile.imageReference.id", - "in": "[parameters(\u0027ImageIdsToExclude\u0027)]" - } - }, - { - "value": "[empty(parameters(\u0027ImageIdsToExclude\u0027))]", - "equals": "true" - } - ] - }, - { - "anyOf": [ - { - "not": { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "contains": "win7" - }, - { - "field": "Microsoft.Compute/imageSKU", - "contains": "win8" - }, - { - "field": "Microsoft.Compute/imageSKU", - "contains": "2008" - }, - { - "field": "Microsoft.Compute/imageSKU", - "contains": "win10" - }, - { - "field": "Microsoft.Compute/imageSKU", - "contains": "windows-10" - }, - { - "field": "Microsoft.Compute/imageOffer", - "contains": "windows-10" - }, - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsDesktop" - }, - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "azureopenshift" - }, - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "AzureDatabricks" - } - ] - } - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsDesktop" - }, - { - "field": "Microsoft.Compute/imageSKU", - "contains": "evd" - } - ] - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "type": "Microsoft.Compute/virtualMachines/extensions", - "name": "MDE.Windows", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.Compute/virtualMachines/extensions/publisher", - "equals": "Microsoft.Azure.AzureDefenderForServers" - }, - { - "field": "Microsoft.Compute/virtualMachines/extensions/type", - "equals": "MDE.Windows" - }, - { - "field": "Microsoft.Compute/virtualMachines/extensions/provisioningState", - "equals": "Succeeded" - } - ] - }, - "deployment": { - "properties": { - "mode": "incremental", - "parameters": { - "vmName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "azureResourceId": { - "value": "[concat(\u0027/subscriptions/\u0027, subscription().subscriptionId, \u0027/resourceGroups/\u0027, resourceGroup().name, \u0027/providers/Microsoft.Compute/virtualMachines/\u0027,field(\u0027name\u0027))]" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "vmName": { - "type": "string" - }, - "location": { - "type": "string" - }, - "azureResourceId": { - "type": "string" - } - }, - "resources": [ - { - "apiVersion": "2020-06-01", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/MDE.Windows\u0027)]", - "type": "Microsoft.Compute/virtualMachines/extensions", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "autoUpgradeMinorVersion": true, - "enableAutomaticUpgrade": true, - "publisher": "Microsoft.Azure.AzureDefenderForServers", - "type": "MDE.Windows", - "typeHandlerVersion": "1.0", - "settings": { - "azureResourceId": "[parameters(\u0027azureResourceId\u0027)]", - "vNextEnabled": "true" - }, - "protectedSettings": { - "defenderForEndpointOnboardingScript": "[reference(subscriptionResourceId(\u0027Microsoft.Security/mdeOnboardings\u0027, \u0027Windows\u0027), \u00272021-10-01-preview\u0027, \u0027full\u0027).properties.onboardingPackageWindows]" - } - } - } - ] - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Azure API for FHIR should use private link", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Azure API for FHIR should have at least one approved private endpoint connection. Clients in a virtual network can securely access resources that have private endpoint connections through private links. For more information, visit: https://aka.ms/fhir-privatelink.", - "metadata": { - "version": "1.0.0", - "category": "API for FHIR" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HealthcareApis/services" - }, - { - "count": { - "field": "Microsoft.HealthcareApis/services/privateEndpointConnections[*]", - "where": { - "field": "Microsoft.HealthcareApis/services/privateEndpointConnections[*].privateLinkServiceConnectionState.status", - "equals": "Approved" - } - }, - "less": 1 - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Preview]: Azure Security agent should be installed on your Linux Arc machines", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Install the Azure Security agent on your Linux Arc machines in order to monitor your machines for security configurations and vulnerabilities. Results of the assessments can seen and managed in Azure Security Center.", - "metadata": { - "category": "Security Center", - "version": "1.0.0-preview", - "preview": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "linux*" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.HybridCompute/machines/extensions", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.HybridCompute/machines/extensions/type", - "equals": "AzureSecurityLinuxAgent" - }, - { - "field": "Microsoft.HybridCompute/machines/extensions/Publisher", - "equals": "Microsoft.Azure.Security.Monitoring" - }, - { - "field": "Microsoft.HybridCompute/machines/extensions/provisioningState", - "equals": "Succeeded" - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "An Azure Active Directory administrator should be provisioned for SQL servers", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Audit provisioning of an Azure Active Directory administrator for your SQL server to enable Azure AD authentication. Azure AD authentication enables simplified permission management and centralized identity management of database users and other Microsoft services", - "metadata": { - "version": "1.0.0", - "category": "SQL" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Sql/servers" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Sql/servers/administrators" - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Azure Monitor Logs clusters should be encrypted with customer-managed key", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Create Azure Monitor logs cluster with customer-managed keys encryption. By default, the log data is encrypted with service-managed keys, but customer-managed keys are commonly required to meet regulatory compliance. Customer-managed key in Azure Monitor gives you more control over the access to you data, see https://docs.microsoft.com/azure/azure-monitor/platform/customer-managed-keys.", - "metadata": { - "version": "1.0.0", - "category": "Monitoring" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "The effect determines what happens when the policy rule is evaluated to match" - }, - "allowedValues": [ - "audit", - "deny", - "disabled" - ], - "defaultValue": "audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.OperationalInsights/clusters" - }, - { - "anyOf": [ - { - "anyOf": [ - { - "field": "Microsoft.OperationalInsights/clusters/keyVaultProperties.keyVaultUri", - "equals": "" - }, - { - "field": "Microsoft.OperationalInsights/clusters/keyVaultProperties.keyVaultUri", - "exists": "false" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.OperationalInsights/clusters/keyVaultProperties.keyName", - "equals": "" - }, - { - "field": "Microsoft.OperationalInsights/clusters/keyVaultProperties.keyName", - "exists": "false" - } - ] - }, - { - "not": { - "field": "Microsoft.OperationalInsights/clusters/keyVaultProperties.keyVersion", - "exists": "true" - } - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Deploy Diagnostic Settings for Event Hub to Log Analytics workspace", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Deploys the diagnostic settings for Event Hub to stream to a regional Log Analytics workspace when any Event Hub which is missing this diagnostic settings is created or updated.", - "metadata": { - "version": "1.1.0", - "category": "Monitoring" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - }, - "profileName": { - "type": "String", - "metadata": { - "displayName": "Profile name", - "description": "The diagnostic settings profile name" - }, - "defaultValue": "setbypolicy_logAnalytics" - }, - "logAnalytics": { - "type": "String", - "metadata": { - "displayName": "Log Analytics workspace", - "description": "Select Log Analytics workspace from dropdown list. If this workspace is outside of the scope of the assignment you must manually grant \u0027Log Analytics Contributor\u0027 permissions (or similar) to the policy assignment\u0027s principal ID.", - "strongType": "omsWorkspace", - "assignPermissions": true - } - }, - "metricsEnabled": { - "type": "String", - "metadata": { - "displayName": "Enable metrics", - "description": "Whether to enable metrics stream to the Log Analytics workspace - True or False" - }, - "allowedValues": [ - "True", - "False" - ], - "defaultValue": "False" - }, - "logsEnabled": { - "type": "String", - "metadata": { - "displayName": "Enable logs", - "description": "Whether to enable logs stream to the Log Analytics workspace - True or False" - }, - "allowedValues": [ - "True", - "False" - ], - "defaultValue": "True" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.EventHub/namespaces" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Insights/diagnosticSettings", - "name": "[parameters(\u0027profileName\u0027)]", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.Insights/diagnosticSettings/logs.enabled", - "equals": "[parameters(\u0027logsEnabled\u0027)]" - }, - { - "field": "Microsoft.Insights/diagnosticSettings/metrics.enabled", - "equals": "[parameters(\u0027metricsEnabled\u0027)]" - } - ] - }, - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000", - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "deployment": { - "properties": { - "mode": "incremental", - "template": { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "resourceName": { - "type": "string" - }, - "location": { - "type": "string" - }, - "logAnalytics": { - "type": "string" - }, - "metricsEnabled": { - "type": "string" - }, - "logsEnabled": { - "type": "string" - }, - "profileName": { - "type": "string" - } - }, - "variables": {}, - "resources": [ - { - "type": "Microsoft.EventHub/namespaces/providers/diagnosticSettings", - "apiVersion": "2017-05-01-preview", - "name": "[concat(parameters(\u0027resourceName\u0027), \u0027/\u0027, \u0027Microsoft.Insights/\u0027, parameters(\u0027profileName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "dependsOn": [], - "properties": { - "workspaceId": "[parameters(\u0027logAnalytics\u0027)]", - "metrics": [ - { - "category": "AllMetrics", - "enabled": "[parameters(\u0027metricsEnabled\u0027)]", - "retentionPolicy": { - "enabled": false, - "days": 0 - } - } - ], - "logs": [ - { - "category": "ArchiveLogs", - "enabled": true, - "retentionPolicy": { - "enabled": false, - "days": 0 - } - }, - { - "category": "OperationalLogs", - "enabled": "[parameters(\u0027logsEnabled\u0027)]" - }, - { - "category": "AutoScaleLogs", - "enabled": "[parameters(\u0027logsEnabled\u0027)]" - }, - { - "category": "KafkaCoordinatorLogs", - "enabled": "[parameters(\u0027logsEnabled\u0027)]" - }, - { - "category": "KafkaUserErrorLogs", - "enabled": "[parameters(\u0027logsEnabled\u0027)]" - }, - { - "category": "EventHubVNetConnectionEvent", - "enabled": "[parameters(\u0027logsEnabled\u0027)]" - }, - { - "category": "CustomerManagedKeyUserLogs", - "enabled": "[parameters(\u0027logsEnabled\u0027)]" - } - ] - } - } - ], - "outputs": {} - }, - "parameters": { - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "resourceName": { - "value": "[field(\u0027name\u0027)]" - }, - "logAnalytics": { - "value": "[parameters(\u0027logAnalytics\u0027)]" - }, - "metricsEnabled": { - "value": "[parameters(\u0027metricsEnabled\u0027)]" - }, - "logsEnabled": { - "value": "[parameters(\u0027logsEnabled\u0027)]" - }, - "profileName": { - "value": "[parameters(\u0027profileName\u0027)]" - } - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Configure Azure Defender for Key Vaults to be enabled", - "policyType": "BuiltIn", - "mode": "All", - "description": "Azure Defender for Key Vault provides an additional layer of protection and security intelligence by detecting unusual and potentially harmful attempts to access or exploit key vault accounts.", - "metadata": { - "version": "1.0.1", - "category": "Security Center" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Resources/subscriptions" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Security/pricings", - "name": "KeyVaults", - "deploymentScope": "subscription", - "existenceScope": "subscription", - "roleDefinitionIds": [ - "/providers/Microsoft.Authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "existenceCondition": { - "field": "Microsoft.Security/pricings/pricingTier", - "equals": "Standard" - }, - "deployment": { - "location": "westeurope", - "properties": { - "mode": "incremental", - "parameters": {}, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": {}, - "variables": {}, - "resources": [ - { - "type": "Microsoft.Security/pricings", - "apiVersion": "2018-06-01", - "name": "KeyVaults", - "properties": { - "pricingTier": "Standard" - } - } - ], - "outputs": {} - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Endpoint protection should be installed on your machines", - "policyType": "BuiltIn", - "mode": "All", - "description": "To protect your machines from threats and vulnerabilities, install a supported endpoint protection solution.", - "metadata": { - "version": "1.0.0", - "category": "Security Center" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Compute/virtualMachines", - "Microsoft.ClassicCompute/virtualMachines", - "Microsoft.HybridCompute/machines" - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Security/assessments", - "name": "00000000-0000-0000-0000-000000000000", - "existenceCondition": { - "field": "Microsoft.Security/assessments/status.code", - "in": [ - "NotApplicable", - "Healthy" - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Deploy prerequisites to audit Windows VMs configurations in \u0027Security Options - Shutdown\u0027", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: \u0027Security Options - Shutdown\u0027. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol", - "metadata": { - "version": "1.2.0-deprecated", - "category": "Guest Configuration", - "requiredProviders": [ - "Microsoft.GuestConfiguration" - ], - "deprecated": true - }, - "parameters": { - "ShutdownAllowSystemToBeShutDownWithoutHavingToLogOn": { - "type": "String", - "metadata": { - "displayName": "Shutdown: Allow system to be shut down without having to log on", - "description": "Specifies whether a computer can be shut down when a user is not logged on. If this policy setting is enabled, the shutdown command is available on the Windows logon screen." - }, - "defaultValue": "0" - }, - "ShutdownClearVirtualMemoryPagefile": { - "type": "String", - "metadata": { - "displayName": "Shutdown: Clear virtual memory pagefile", - "description": "Specifies whether the virtual memory pagefile is cleared when the system is shut down. When this policy setting is enabled, the system pagefile is cleared each time that the system shuts down properly. For systems with large amounts of RAM, this could result in substantial time needed to complete the shutdown." - }, - "defaultValue": "0" - } - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "dsvm-windows" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - } - ] - }, - "then": { - "effect": "deployIfNotExists", - "details": { - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "AzureBaseline_SecurityOptionsShutdown", - "existenceCondition": { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash", - "equals": "[base64(concat(\u0027Shutdown: Allow system to be shut down without having to log on;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027ShutdownAllowSystemToBeShutDownWithoutHavingToLogOn\u0027), \u0027,\u0027, \u0027Shutdown: Clear virtual memory pagefile;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027ShutdownClearVirtualMemoryPagefile\u0027)))]" - }, - "deployment": { - "properties": { - "mode": "incremental", - "parameters": { - "vmName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "type": { - "value": "[field(\u0027type\u0027)]" - }, - "configurationName": { - "value": "AzureBaseline_SecurityOptionsShutdown" - }, - "ShutdownAllowSystemToBeShutDownWithoutHavingToLogOn": { - "value": "[parameters(\u0027ShutdownAllowSystemToBeShutDownWithoutHavingToLogOn\u0027)]" - }, - "ShutdownClearVirtualMemoryPagefile": { - "value": "[parameters(\u0027ShutdownClearVirtualMemoryPagefile\u0027)]" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "vmName": { - "type": "string" - }, - "location": { - "type": "string" - }, - "type": { - "type": "string" - }, - "configurationName": { - "type": "string" - }, - "ShutdownAllowSystemToBeShutDownWithoutHavingToLogOn": { - "type": "string" - }, - "ShutdownClearVirtualMemoryPagefile": { - "type": "string" - } - }, - "resources": [ - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027microsoft.hybridcompute/machines\u0027))]", - "apiVersion": "2018-11-20", - "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/Microsoft.GuestConfiguration/\u0027, parameters(\u0027configurationName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "guestConfiguration": { - "name": "[parameters(\u0027configurationName\u0027)]", - "version": "1.*", - "configurationParameter": [ - { - "name": "Shutdown: Allow system to be shut down without having to log on;ExpectedValue", - "value": "[parameters(\u0027ShutdownAllowSystemToBeShutDownWithoutHavingToLogOn\u0027)]" - }, - { - "name": "Shutdown: Clear virtual memory pagefile;ExpectedValue", - "value": "[parameters(\u0027ShutdownClearVirtualMemoryPagefile\u0027)]" - } - ] - } - } - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2018-11-20", - "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/Microsoft.GuestConfiguration/\u0027, parameters(\u0027configurationName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "guestConfiguration": { - "name": "[parameters(\u0027configurationName\u0027)]", - "version": "1.*", - "configurationParameter": [ - { - "name": "Shutdown: Allow system to be shut down without having to log on;ExpectedValue", - "value": "[parameters(\u0027ShutdownAllowSystemToBeShutDownWithoutHavingToLogOn\u0027)]" - }, - { - "name": "Shutdown: Clear virtual memory pagefile;ExpectedValue", - "value": "[parameters(\u0027ShutdownClearVirtualMemoryPagefile\u0027)]" - } - ] - } - } - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2019-07-01", - "type": "Microsoft.Compute/virtualMachines", - "identity": { - "type": "SystemAssigned" - }, - "name": "[parameters(\u0027vmName\u0027)]", - "location": "[parameters(\u0027location\u0027)]" - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2019-07-01", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/AzurePolicyforWindows\u0027)]", - "type": "Microsoft.Compute/virtualMachines/extensions", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "publisher": "Microsoft.GuestConfiguration", - "type": "ConfigurationforWindows", - "typeHandlerVersion": "1.1", - "autoUpgradeMinorVersion": true, - "settings": {}, - "protectedSettings": {} - }, - "dependsOn": [ - "[concat(\u0027Microsoft.Compute/virtualMachines/\u0027,parameters(\u0027vmName\u0027),\u0027/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/\u0027,parameters(\u0027configurationName\u0027))]" - ] - } - ] - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Azure Cosmos DB accounts should use customer-managed keys to encrypt data at rest", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Use customer-managed keys to manage the encryption at rest of your Azure Cosmos DB. By default, the data is encrypted at rest with service-managed keys, but customer-managed keys are commonly required to meet regulatory compliance standards. Customer-managed keys enable the data to be encrypted with an Azure Key Vault key created and owned by you. You have full control and responsibility for the key lifecycle, including rotation and management. Learn more at https://aka.ms/cosmosdb-cmk.", - "metadata": { - "version": "1.0.2", - "category": "Cosmos DB" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "The desired effect of the policy." - }, - "allowedValues": [ - "audit", - "deny", - "disabled" - ], - "defaultValue": "audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "Microsoft.DocumentDB/databaseAccounts/keyVaultKeyUri", - "exists": false - }, - { - "field": "type", - "equals": "Microsoft.DocumentDB/databaseAccounts" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Logic Apps Integration Service Environment should be encrypted with customer-managed keys", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Deploy into Integration Service Environment to manage encryption at rest of Logic Apps data using customer-managed keys. By default, customer data is encrypted with service-managed keys, but customer-managed keys are commonly required to meet regulatory compliance standards. Customer-managed keys enable the data to be encrypted with an Azure Key Vault key created and owned by you. You have full control and responsibility for the key lifecycle, including rotation and management.", - "metadata": { - "version": "1.0.0", - "category": "Logic Apps" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Logic/integrationServiceEnvironments" - }, - { - "field": "Microsoft.Logic/integrationServiceEnvironments/encryptionConfiguration", - "exists": "false" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Azure HDInsight clusters should use encryption at host to encrypt data at rest", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Enabling encryption at host helps protect and safeguard your data to meet your organizational security and compliance commitments. When you enable encryption at host, data stored on the VM host is encrypted at rest and flows encrypted to the Storage service.", - "metadata": { - "version": "1.0.0", - "category": "HDInsight" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HDInsight/clusters" - }, - { - "anyOf": [ - { - "field": "Microsoft.HDInsight/clusters/diskEncryptionProperties.encryptionAtHost", - "exists": false - }, - { - "field": "Microsoft.HDInsight/clusters/diskEncryptionProperties.encryptionAtHost", - "equals": false - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1616 - System And Communications Protection Policy And Procedures", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Communications Protection control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1616" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1650 - Public Key Infrastructure Certificates", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Communications Protection control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1650" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Web ports should be restricted on Network Security Groups associated to your VM", - "policyType": "BuiltIn", - "mode": "All", - "description": "Azure security center has discovered that some of your virtual machines are running web applications, and the NSGs associated to these virtual machines are overly permissive with regards to the web application ports", - "metadata": { - "version": "1.0.0-deprecated", - "category": "Security Center", - "deprecated": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "Disabled" - } - }, - "policyRule": { - "if": { - "field": "type", - "in": [ - "Microsoft.Compute/virtualMachines", - "Microsoft.ClassicCompute/virtualMachines" - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Security/complianceResults", - "name": "unprotectedWebApplication", - "existenceCondition": { - "field": "Microsoft.Security/complianceResults/resourceStatus", - "in": [ - "OffByPolicy", - "Healthy" - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "VM Image Builder templates should use private link", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination. The Private Link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to your VM Image Builder building resources, data leakage risks are reduced. Learn more about private links at: https://docs.microsoft.com/azure/virtual-machines/linux/image-builder-networking#deploy-using-an-existing-vnet.", - "metadata": { - "version": "1.1.0", - "category": "VM Image Builder" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Disabled", - "Deny" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.VirtualMachineImages/imageTemplates" - }, - { - "field": "Microsoft.VirtualMachineImages/imageTemplates/vmProfile.vnetConfig", - "exists": "false" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1181 - Baseline Configuration | Retention Of Previous Configurations", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Configuration Management control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1181" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "VPN gateways should use only Azure Active Directory (Azure AD) authentication for point-to-site users", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Disabling local authentication methods improves security by ensuring that VPN Gateways use only Azure Active Directory identities for authentication. Learn more about Azure AD authentication at https://docs.microsoft.com/azure/vpn-gateway/openvpn-azure-ad-tenant", - "metadata": { - "version": "1.0.0", - "category": "Network" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Network/virtualNetworkGateways" - }, - { - "field": "Microsoft.Network/virtualNetworkGateways/vpnClientConfiguration.vpnClientAddressPool.addressPrefixes", - "exists": "true" - }, - { - "count": { - "field": "Microsoft.Network/virtualNetworkGateways/vpnClientConfiguration.vpnAuthenticationTypes[*]", - "where": { - "field": "Microsoft.Network/virtualNetworkGateways/vpnClientConfiguration.vpnAuthenticationTypes[*]", - "notcontains": "AAD" - } - }, - "greaterOrEquals": 1 - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Public network access should be disabled for Azure File Sync", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Disabling the public endpoint allows you to restrict access to your Storage Sync Service resource to requests destined to approved private endpoints on your organization\u0027s network. There is nothing inherently insecure about allowing requests to the public endpoint, however, you may wish to disable it to meet regulatory, legal, or organizational policy requirements. You can disable the public endpoint for a Storage Sync Service by setting the incomingTrafficPolicy of the resource to AllowVirtualNetworksOnly.", - "metadata": { - "version": "1.0.0", - "category": "Storage" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.StorageSync/storageSyncServices" - }, - { - "field": "Microsoft.StorageSync/storageSyncServices/incomingTrafficPolicy", - "notEquals": "AllowVirtualNetworksOnly" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Azure SignalR Service should disable public network access", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "To improve the security of Azure SignalR Service resource, ensure that it isn\u0027t exposed to the public internet and can only be accessed from a private endpoint. Disable the public network access property as described in https://aka.ms/asrs/networkacls. This option disables access from any public address space outside the Azure IP range, and denies all logins that match IP or virtual network-based firewall rules. This reduces data leakage risks.", - "metadata": { - "version": "1.0.0", - "category": "SignalR" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.SignalRService/SignalR" - }, - { - "anyOf": [ - { - "field": "Microsoft.SignalRService/SignalR/networkACLs.defaultAction", - "equals": "Allow" - }, - { - "field": "Microsoft.SignalRService/SignalR/networkACLs.publicNetwork.allow", - "exists": false - }, - { - "count": { - "field": "Microsoft.SignalRService/SignalR/networkACLs.publicNetwork.allow[*]" - }, - "greater": 0 - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1111 - Response To Audit Processing Failures", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Audit and Accountability control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1111" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1596 - Developer Configuration Management", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Services Acquisition control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1596" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Show audit results from Windows VMs configurations in \u0027Security Options - Audit\u0027", - "policyType": "BuiltIn", - "mode": "All", - "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: \u0027Security Options - Audit\u0027. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol", - "metadata": { - "version": "1.0.0-deprecated", - "category": "Guest Configuration", - "deprecated": true - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "dsvm-windows" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - } - ] - }, - "then": { - "effect": "auditIfNotExists", - "details": { - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "AzureBaseline_SecurityOptionsAudit", - "existenceCondition": { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus", - "equals": "Compliant" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1426 - Media Protection Policy And Procedures", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Media Protection control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1426" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Preview]: ChangeTracking extension should be installed on your Windows virtual machine", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Install ChangeTracking Extension on Windows virtual machines to enable File Integrity Monitoring(FIM) in Azure Security Center. FIM examines operating system files, Windows registries, application software, Linux system files, and more, for changes that might indicate an attack. The extension can be installed in virtual machines and locations supported by Azure Monitoring Agent.", - "metadata": { - "version": "1.0.0-preview", - "category": "Security Center", - "preview": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - }, - "listOfApplicableLocations": { - "type": "Array", - "metadata": { - "displayName": "Applicable Locations", - "description": "The list of locations where the policy should be applied.", - "strongType": "location" - }, - "allowedValues": [ - "australiasoutheast", - "australiaeast", - "brazilsouth", - "canadacentral", - "centralindia", - "centralus", - "eastasia", - "eastus2euap", - "eastus", - "eastus2", - "francecentral", - "japaneast", - "koreacentral", - "northcentralus", - "northeurope", - "norwayeast", - "southcentralus", - "southeastasia", - "switzerlandnorth", - "uaenorth", - "uksouth", - "westcentralus", - "westeurope", - "westus", - "westus2" - ], - "defaultValue": [ - "australiasoutheast", - "australiaeast", - "brazilsouth", - "canadacentral", - "centralindia", - "centralus", - "eastasia", - "eastus2euap", - "eastus", - "eastus2", - "francecentral", - "japaneast", - "koreacentral", - "northcentralus", - "northeurope", - "norwayeast", - "southcentralus", - "southeastasia", - "switzerlandnorth", - "uaenorth", - "uksouth", - "westcentralus", - "westeurope", - "westus", - "westus2" - ] - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "field": "location", - "in": "[parameters(\u0027listOfApplicableLocations\u0027)]" - }, - { - "anyOf": [ - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "in": [ - "2008-R2-SP1", - "2008-R2-SP1-smalldisk", - "2012-Datacenter", - "2012-Datacenter-smalldisk", - "2012-R2-Datacenter", - "2012-R2-Datacenter-smalldisk", - "2016-Datacenter", - "2016-Datacenter-Server-Core", - "2016-Datacenter-Server-Core-smalldisk", - "2016-Datacenter-smalldisk", - "2016-Datacenter-with-Containers", - "2016-Datacenter-with-RDSH", - "2019-Datacenter", - "2019-Datacenter-Core", - "2019-Datacenter-Core-smalldisk", - "2019-Datacenter-Core-with-Containers", - "2019-Datacenter-Core-with-Containers-smalldisk", - "2019-Datacenter-smalldisk", - "2019-Datacenter-with-Containers", - "2019-Datacenter-with-Containers-smalldisk", - "2019-Datacenter-zhcn" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServerSemiAnnual" - }, - { - "field": "Microsoft.Compute/imageSKU", - "in": [ - "Datacenter-Core-1709-smalldisk", - "Datacenter-Core-1709-with-Containers-smalldisk", - "Datacenter-Core-1803-with-Containers-smalldisk" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServerHPCPack" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServerHPCPack" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2019" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2019-BYOL" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2016" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2016-BYOL" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2012R2" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2012R2-BYOL" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftRServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "MLServer-WS2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftVisualStudio" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "VisualStudio", - "Windows" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftDynamicsAX" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Dynamics" - }, - { - "field": "Microsoft.Compute/imageSKU", - "equals": "Pre-Req-AX7-Onebox-U8" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "windows-data-science-vm" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsDesktop" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Windows-10" - } - ] - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Compute/virtualMachines/extensions", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.Compute/virtualMachines/extensions/type", - "equals": "ChangeTracking-Windows" - }, - { - "field": "Microsoft.Compute/virtualMachines/extensions/Publisher", - "equals": "Microsoft.Azure.ChangeTrackingAndInventory" - }, - { - "field": "Microsoft.Compute/virtualMachines/extensions/provisioningState", - "equals": "Succeeded" - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Audit API Apps that are not using custom domains", - "policyType": "BuiltIn", - "mode": "All", - "description": "Use of custom domains protects a API app from common attacks such as phishing and other DNS-related attacks.", - "metadata": { - "version": "1.0.0-deprecated", - "category": "Security Center", - "deprecated": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "allof": [ - { - "field": "type", - "equals": "microsoft.Web/sites" - }, - { - "anyof": [ - { - "field": "kind", - "equals": "api" - }, - { - "field": "kind", - "equals": "apiApp" - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Security/complianceResults", - "name": "UsedCustomDomains", - "existenceCondition": { - "field": "Microsoft.Security/complianceResults/resourceStatus", - "in": [ - "OffByPolicy", - "Healthy" - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1399 - Controlled Maintenance", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Maintenance control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1399" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1221 - Least Functionality | Authorized Software / Whitelisting", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Configuration Management control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1221" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Show audit results from Windows VMs configurations in \u0027System Audit Policies - Account Management\u0027", - "policyType": "BuiltIn", - "mode": "All", - "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: \u0027System Audit Policies - Account Management\u0027. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol", - "metadata": { - "version": "1.0.0-deprecated", - "category": "Guest Configuration", - "deprecated": true - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "dsvm-windows" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - } - ] - }, - "then": { - "effect": "auditIfNotExists", - "details": { - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "AzureBaseline_SystemAuditPoliciesAccountManagement", - "existenceCondition": { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus", - "equals": "Compliant" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Management ports should be closed on your virtual machines", - "policyType": "BuiltIn", - "mode": "All", - "description": "Open remote management ports are exposing your VM to a high level of risk from Internet-based attacks. These attacks attempt to brute force credentials to gain admin access to the machine.", - "metadata": { - "version": "3.0.0", - "category": "Security Center" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "in": [ - "Microsoft.Compute/virtualMachines", - "Microsoft.ClassicCompute/virtualMachines" - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Security/assessments", - "name": "00000000-0000-0000-0000-000000000000", - "existenceCondition": { - "field": "Microsoft.Security/assessments/status.code", - "in": [ - "NotApplicable", - "Healthy" - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1493 - System Security Plan", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Planning control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1493" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Only secure connections to your Azure Cache for Redis should be enabled", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Audit enabling of only connections via SSL to Azure Cache for Redis. Use of secure connections ensures authentication between the server and the service and protects data in transit from network layer attacks such as man-in-the-middle, eavesdropping, and session-hijacking", - "metadata": { - "version": "1.0.0", - "category": "Cache" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "The effect determines what happens when the policy rule is evaluated to match" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Cache/redis" - }, - { - "field": "Microsoft.Cache/Redis/enableNonSslPort", - "equals": "true" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Deploy prerequisites to audit Windows VMs that do not restrict the minimum password length to 14 characters", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines that do not restrict the minimum password length to 14 characters. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol", - "metadata": { - "version": "2.2.0-deprecated", - "category": "Guest Configuration", - "requiredProviders": [ - "Microsoft.GuestConfiguration" - ], - "deprecated": true - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "dsvm-windows" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - } - ] - }, - "then": { - "effect": "deployIfNotExists", - "details": { - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "MinimumPasswordLength", - "deployment": { - "properties": { - "mode": "incremental", - "parameters": { - "vmName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "type": { - "value": "[field(\u0027type\u0027)]" - }, - "configurationName": { - "value": "MinimumPasswordLength" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "vmName": { - "type": "string" - }, - "location": { - "type": "string" - }, - "type": { - "type": "string" - }, - "configurationName": { - "type": "string" - } - }, - "resources": [ - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027microsoft.hybridcompute/machines\u0027))]", - "apiVersion": "2018-11-20", - "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/Microsoft.GuestConfiguration/\u0027, parameters(\u0027configurationName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "guestConfiguration": { - "name": "[parameters(\u0027configurationName\u0027)]", - "version": "1.*" - } - } - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2018-11-20", - "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/Microsoft.GuestConfiguration/\u0027, parameters(\u0027configurationName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "guestConfiguration": { - "name": "[parameters(\u0027configurationName\u0027)]", - "version": "1.*" - } - } - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2019-07-01", - "type": "Microsoft.Compute/virtualMachines", - "identity": { - "type": "SystemAssigned" - }, - "name": "[parameters(\u0027vmName\u0027)]", - "location": "[parameters(\u0027location\u0027)]" - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2019-07-01", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/AzurePolicyforWindows\u0027)]", - "type": "Microsoft.Compute/virtualMachines/extensions", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "publisher": "Microsoft.GuestConfiguration", - "type": "ConfigurationforWindows", - "typeHandlerVersion": "1.1", - "autoUpgradeMinorVersion": true, - "settings": {}, - "protectedSettings": {} - }, - "dependsOn": [ - "[concat(\u0027Microsoft.Compute/virtualMachines/\u0027,parameters(\u0027vmName\u0027),\u0027/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/\u0027,parameters(\u0027configurationName\u0027))]" - ] - } - ] - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1256 - Contingency Plan | Identify Critical Assets", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Contingency Planning control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1256" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Service Bus should use a virtual network service endpoint", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "This policy audits any Service Bus not configured to use a virtual network service endpoint. The resource type Microsoft.ServiceBus/namespaces/virtualNetworkRules is deprecated in the latest API version.", - "metadata": { - "version": "1.0.0-deprecated", - "category": "Network", - "deprecated": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.ServiceBus/namespaces" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.ServiceBus/namespaces/virtualNetworkRules", - "existenceCondition": { - "field": "Microsoft.ServiceBus/namespaces/virtualNetworkRules/virtualNetworkSubnetId", - "exists": "true" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Configure Azure Defender for DNS to be enabled", - "policyType": "BuiltIn", - "mode": "All", - "description": "Azure Defender for DNS provides an additional layer of protection for your cloud resources by continuously monitoring all DNS queries from your Azure resources. Azure Defender alerts you about suspicious activity at the DNS layer. Learn more about the capabilities of Azure Defender for DNS at https://aka.ms/defender-for-dns . Enabling this Azure Defender plan results in charges. Learn about the pricing details per region on Security Center\u0027s pricing page: https://aka.ms/pricing-security-center .", - "metadata": { - "version": "1.0.1", - "category": "Security Center" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Resources/subscriptions" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Security/pricings", - "name": "Dns", - "deploymentScope": "subscription", - "existenceScope": "subscription", - "roleDefinitionIds": [ - "/providers/Microsoft.Authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "existenceCondition": { - "field": "Microsoft.Security/pricings/pricingTier", - "equals": "Standard" - }, - "deployment": { - "location": "westeurope", - "properties": { - "mode": "incremental", - "parameters": {}, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": {}, - "variables": {}, - "resources": [ - { - "type": "Microsoft.Security/pricings", - "apiVersion": "2018-06-01", - "name": "Dns", - "properties": { - "pricingTier": "Standard" - } - } - ], - "outputs": {} - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Audit Windows machines that do not have a minimum password age of 1 day", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if Windows machines that do not have a minimum password age of 1 day", - "metadata": { - "category": "Guest Configuration", - "version": "2.0.0", - "requiredProviders": [ - "Microsoft.GuestConfiguration" - ], - "guestConfiguration": { - "name": "MinimumPasswordAge", - "version": "1.*" - } - }, - "parameters": { - "IncludeArcMachines": { - "type": "String", - "metadata": { - "displayName": "Include Arc connected servers", - "description": "By selecting this option, you agree to be charged monthly per Arc connected machine.", - "portalReview": "true" - }, - "allowedValues": [ - "true", - "false" - ], - "defaultValue": "false" - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of this policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "dsvm-win*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "value": "[parameters(\u0027IncludeArcMachines\u0027)]", - "equals": "true" - }, - { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.ConnectedVMwarevSphere/virtualMachines" - }, - { - "field": "Microsoft.ConnectedVMwarevSphere/virtualMachines/osProfile.osType", - "like": "windows*" - } - ] - } - ] - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "MinimumPasswordAge", - "existenceCondition": { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus", - "equals": "Compliant" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Deploy Diagnostic Settings for Stream Analytics to Log Analytics workspace", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Deploys the diagnostic settings for Stream Analytics to stream to a regional Log Analytics workspace when any Stream Analytics which is missing this diagnostic settings is created or updated.", - "metadata": { - "version": "1.0.0", - "category": "Monitoring" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - }, - "profileName": { - "type": "String", - "metadata": { - "displayName": "Profile name", - "description": "The diagnostic settings profile name" - }, - "defaultValue": "setbypolicy_logAnalytics" - }, - "logAnalytics": { - "type": "String", - "metadata": { - "displayName": "Log Analytics workspace", - "description": "Select Log Analytics workspace from dropdown list. If this workspace is outside of the scope of the assignment you must manually grant \u0027Log Analytics Contributor\u0027 permissions (or similar) to the policy assignment\u0027s principal ID.", - "strongType": "omsWorkspace", - "assignPermissions": true - } - }, - "metricsEnabled": { - "type": "String", - "metadata": { - "displayName": "Enable metrics", - "description": "Whether to enable metrics stream to the Log Analytics workspace - True or False" - }, - "allowedValues": [ - "True", - "False" - ], - "defaultValue": "False" - }, - "logsEnabled": { - "type": "String", - "metadata": { - "displayName": "Enable logs", - "description": "Whether to enable logs stream to the Log Analytics workspace - True or False" - }, - "allowedValues": [ - "True", - "False" - ], - "defaultValue": "True" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.StreamAnalytics/streamingjobs" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Insights/diagnosticSettings", - "name": "[parameters(\u0027profileName\u0027)]", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.Insights/diagnosticSettings/logs.enabled", - "equals": "[parameters(\u0027logsEnabled\u0027)]" - }, - { - "field": "Microsoft.Insights/diagnosticSettings/metrics.enabled", - "equals": "[parameters(\u0027metricsEnabled\u0027)]" - } - ] - }, - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000", - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "deployment": { - "properties": { - "mode": "incremental", - "template": { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "resourceName": { - "type": "string" - }, - "location": { - "type": "string" - }, - "logAnalytics": { - "type": "string" - }, - "metricsEnabled": { - "type": "string" - }, - "logsEnabled": { - "type": "string" - }, - "profileName": { - "type": "string" - } - }, - "variables": {}, - "resources": [ - { - "type": "Microsoft.StreamAnalytics/streamingjobs/providers/diagnosticSettings", - "apiVersion": "2017-05-01-preview", - "name": "[concat(parameters(\u0027resourceName\u0027), \u0027/\u0027, \u0027Microsoft.Insights/\u0027, parameters(\u0027profileName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "dependsOn": [], - "properties": { - "workspaceId": "[parameters(\u0027logAnalytics\u0027)]", - "metrics": [ - { - "category": "AllMetrics", - "enabled": "[parameters(\u0027metricsEnabled\u0027)]", - "retentionPolicy": { - "enabled": false, - "days": 0 - } - } - ], - "logs": [ - { - "category": "Execution", - "enabled": "[parameters(\u0027logsEnabled\u0027)]" - }, - { - "category": "Authoring", - "enabled": "[parameters(\u0027logsEnabled\u0027)]" - } - ] - } - } - ], - "outputs": {} - }, - "parameters": { - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "resourceName": { - "value": "[field(\u0027name\u0027)]" - }, - "logAnalytics": { - "value": "[parameters(\u0027logAnalytics\u0027)]" - }, - "metricsEnabled": { - "value": "[parameters(\u0027metricsEnabled\u0027)]" - }, - "logsEnabled": { - "value": "[parameters(\u0027logsEnabled\u0027)]" - }, - "profileName": { - "value": "[parameters(\u0027profileName\u0027)]" - } - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Configure Azure Automation accounts to disable public network access", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Disable public network access for Azure Automation account so that it isn\u0027t accessible over the public internet. This configuration helps protect them against data leakage risks. You can limit exposure of the your Automation account resources by creating private endpoints instead. Learn more at: https://aka.ms/privateendpoints.", - "metadata": { - "category": "Automation", - "version": "1.0.0" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Modify", - "Disabled" - ], - "defaultValue": "Modify" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Automation/automationAccounts" - }, - { - "field": "Microsoft.Automation/automationAccounts/publicNetworkAccess", - "notEquals": false - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "conflictEffect": "audit", - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "operations": [ - { - "operation": "addOrReplace", - "field": "Microsoft.Automation/automationAccounts/publicNetworkAccess", - "value": false - } - ] - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1268 - Alternate Storage Site", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Contingency Planning control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1268" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1122 - Audit Review, Analysis, And Reporting | Permitted Actions", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Audit and Accountability control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1122" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1231 - Configuration Management Plan", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Configuration Management control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1231" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Configure Windows Virtual Machines to be associated with a Data Collection Rule", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Deploy Association to link Windows virtual machines to specified Data Collection Rule. The list of locations and OS images are updated over time as support is increased.", - "metadata": { - "version": "1.0.0", - "category": "Monitoring" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy." - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - }, - "listOfWindowsImageIdToInclude": { - "type": "Array", - "metadata": { - "displayName": "Optional: List of virtual machine images that have supported Windows OS to add to scope", - "description": "Example values: \u0027/subscriptions/\u003CsubscriptionId\u003E/resourceGroups/YourResourceGroup/providers/Microsoft.Compute/images/ContosoStdImage\u0027" - }, - "defaultValue": [] - }, - "dcrResourceId": { - "type": "String", - "metadata": { - "displayName": "Data Collection Rule Resource Id", - "description": "Resource Id of the Data Collection Rule to be applied on the virtual machines in scope.", - "strongType": "Microsoft.Insights/dataCollectionRules" - } - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "field": "location", - "in": [ - "australiacentral", - "australiacentral2", - "australiaeast", - "australiasoutheast", - "brazilsouth", - "brazilsoutheast", - "canadacentral", - "canadaeast", - "centralindia", - "centralus", - "eastasia", - "eastus2euap", - "eastus", - "eastus2", - "francecentral", - "francesouth", - "germanywestcentral", - "japaneast", - "japanwest", - "jioindiawest", - "koreacentral", - "koreasouth", - "northcentralus", - "northeurope", - "norwayeast", - "norwaywest", - "southafricanorth", - "southcentralus", - "southeastasia", - "southindia", - "switzerlandnorth", - "switzerlandwest", - "uaenorth", - "uksouth", - "ukwest", - "westcentralus", - "westeurope", - "westindia", - "westus", - "westus2" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageId", - "in": "[parameters(\u0027listOfWindowsImageIdToInclude\u0027)]" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "in": [ - "2008-R2-SP1", - "2008-R2-SP1-smalldisk", - "2012-Datacenter", - "2012-Datacenter-smalldisk", - "2012-R2-Datacenter", - "2012-R2-Datacenter-smalldisk", - "2016-Datacenter", - "2016-Datacenter-Server-Core", - "2016-Datacenter-Server-Core-smalldisk", - "2016-Datacenter-smalldisk", - "2016-Datacenter-with-Containers", - "2016-Datacenter-with-RDSH", - "2019-Datacenter", - "2019-Datacenter-Core", - "2019-Datacenter-Core-smalldisk", - "2019-Datacenter-Core-with-Containers", - "2019-Datacenter-Core-with-Containers-smalldisk", - "2019-Datacenter-smalldisk", - "2019-Datacenter-with-Containers", - "2019-Datacenter-with-Containers-smalldisk", - "2019-Datacenter-zhcn", - "2022-datacenter", - "2022-datacenter-azure-edition", - "2022-datacenter-azure-edition-core", - "2022-datacenter-azure-edition-core-smalldisk", - "2022-datacenter-azure-edition-smalldisk", - "2022-datacenter-core", - "2022-datacenter-core-g2", - "2022-datacenter-core-smalldisk", - "2022-datacenter-core-smalldisk-g2", - "2022-datacenter-g2", - "2022-datacenter-smalldisk", - "2022-datacenter-smalldisk-g2" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServerSemiAnnual" - }, - { - "field": "Microsoft.Compute/imageSKU", - "in": [ - "Datacenter-Core-1709-smalldisk", - "Datacenter-Core-1709-with-Containers-smalldisk", - "Datacenter-Core-1803-with-Containers-smalldisk" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServerHPCPack" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServerHPCPack" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2016" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2016-BYOL" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2012R2" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2012R2-BYOL" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftRServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "MLServer-WS2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftVisualStudio" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "VisualStudio", - "Windows" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftDynamicsAX" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Dynamics" - }, - { - "field": "Microsoft.Compute/imageSKU", - "equals": "Pre-Req-AX7-Onebox-U8" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "windows-data-science-vm" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsDesktop" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Windows-10" - } - ] - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Insights/dataCollectionRuleAssociations", - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000", - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "existenceCondition": { - "field": "Microsoft.Insights/dataCollectionRuleAssociations/dataCollectionRuleId", - "equals": "[parameters(\u0027dcrResourceId\u0027)]" - }, - "deployment": { - "properties": { - "mode": "incremental", - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "resourceName": { - "type": "string" - }, - "location": { - "type": "string" - }, - "dcrResourceId": { - "type": "string" - } - }, - "variables": { - "associationName": "[concat(\u0027assoc-\u0027, uniqueString(parameters(\u0027dcrResourceId\u0027)))]" - }, - "resources": [ - { - "name": "[variables(\u0027associationName\u0027)]", - "type": "Microsoft.Insights/dataCollectionRuleAssociations", - "apiVersion": "2021-04-01", - "properties": { - "dataCollectionRuleId": "[parameters(\u0027dcrResourceId\u0027)]" - }, - "scope": "[concat(\u0027Microsoft.Compute/virtualMachines/\u0027, parameters(\u0027resourceName\u0027))]" - } - ] - }, - "parameters": { - "resourceName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "dcrResourceId": { - "value": "[parameters(\u0027dcrResourceId\u0027)]" - } - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Resource logs in Azure Kubernetes Service should be enabled", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Azure Kubernetes Service\u0027s resource logs can help recreate activity trails when investigating security incidents. Enable it to make sure the logs will exist when needed", - "metadata": { - "version": "1.0.0", - "category": "Kubernetes" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - }, - "requiredRetentionDays": { - "type": "String", - "metadata": { - "displayName": "Required retention (days)", - "description": "The required resource logs retention (in days)" - }, - "defaultValue": "365" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.ContainerService/managedClusters" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Insights/diagnosticSettings", - "existenceCondition": { - "count": { - "field": "Microsoft.Insights/diagnosticSettings/logs[*]", - "where": { - "anyOf": [ - { - "allOf": [ - { - "field": "Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.enabled", - "equals": "true" - }, - { - "anyOf": [ - { - "field": "Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.days", - "equals": "0" - }, - { - "value": "[padLeft(current(\u0027Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.days\u0027), 3, \u00270\u0027)]", - "greaterOrEquals": "[padLeft(parameters(\u0027requiredRetentionDays\u0027), 3, \u00270\u0027)]" - } - ] - }, - { - "field": "Microsoft.Insights/diagnosticSettings/logs.enabled", - "equals": "true" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Insights/diagnosticSettings/logs.enabled", - "equals": "true" - }, - { - "anyOf": [ - { - "field": "Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.enabled", - "notEquals": "true" - }, - { - "field": "Microsoft.Insights/diagnosticSettings/storageAccountId", - "exists": false - } - ] - } - ] - } - ] - } - }, - "greaterOrEquals": 1 - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Configure Azure Activity logs to stream to specified Log Analytics workspace", - "policyType": "BuiltIn", - "mode": "All", - "description": "Deploys the diagnostic settings for Azure Activity to stream subscriptions audit logs to a Log Analytics workspace to monitor subscription-level events", - "metadata": { - "version": "1.0.0", - "category": "Monitoring" - }, - "parameters": { - "logAnalytics": { - "type": "String", - "metadata": { - "displayName": "Primary Log Analytics workspace", - "description": "If this workspace is outside of the scope of the assignment you must manually grant \u0027Log Analytics Contributor\u0027 permissions (or similar) to the policy assignment\u0027s principal ID.", - "strongType": "omsWorkspace", - "assignPermissions": true - } - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - }, - "logsEnabled": { - "type": "String", - "metadata": { - "displayName": "Enable logs", - "description": "Whether to enable logs stream to the Log Analytics workspace - True or False" - }, - "allowedValues": [ - "True", - "False" - ], - "defaultValue": "True" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Resources/subscriptions" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Insights/diagnosticSettings", - "deploymentScope": "Subscription", - "existenceScope": "Subscription", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.Insights/diagnosticSettings/logs.enabled", - "equals": "[parameters(\u0027logsEnabled\u0027)]" - }, - { - "field": "Microsoft.Insights/diagnosticSettings/workspaceId", - "equals": "[parameters(\u0027logAnalytics\u0027)]" - } - ] - }, - "deployment": { - "location": "northeurope", - "properties": { - "mode": "incremental", - "template": { - "$schema": "https://schema.management.azure.com/schemas/2018-05-01/subscriptionDeploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "logAnalytics": { - "type": "string" - }, - "logsEnabled": { - "type": "string" - } - }, - "variables": {}, - "resources": [ - { - "name": "subscriptionToLa", - "type": "Microsoft.Insights/diagnosticSettings", - "apiVersion": "2017-05-01-preview", - "location": "Global", - "properties": { - "workspaceId": "[parameters(\u0027logAnalytics\u0027)]", - "logs": [ - { - "category": "Administrative", - "enabled": "[parameters(\u0027logsEnabled\u0027)]" - }, - { - "category": "Security", - "enabled": "[parameters(\u0027logsEnabled\u0027)]" - }, - { - "category": "ServiceHealth", - "enabled": "[parameters(\u0027logsEnabled\u0027)]" - }, - { - "category": "Alert", - "enabled": "[parameters(\u0027logsEnabled\u0027)]" - }, - { - "category": "Recommendation", - "enabled": "[parameters(\u0027logsEnabled\u0027)]" - }, - { - "category": "Policy", - "enabled": "[parameters(\u0027logsEnabled\u0027)]" - }, - { - "category": "Autoscale", - "enabled": "[parameters(\u0027logsEnabled\u0027)]" - }, - { - "category": "ResourceHealth", - "enabled": "[parameters(\u0027logsEnabled\u0027)]" - } - ] - } - } - ], - "outputs": {} - }, - "parameters": { - "logAnalytics": { - "value": "[parameters(\u0027logAnalytics\u0027)]" - }, - "logsEnabled": { - "value": "[parameters(\u0027logsEnabled\u0027)]" - } - } - } - }, - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000", - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ] - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1082 - Information Sharing", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Access Control control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1082" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Show audit results from Windows VMs that do not have a maximum password age of 70 days", - "policyType": "BuiltIn", - "mode": "All", - "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines that do not have a maximum password age of 70 days. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol", - "metadata": { - "version": "1.0.0-deprecated", - "category": "Guest Configuration", - "deprecated": true - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "dsvm-windows" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - } - ] - }, - "then": { - "effect": "auditIfNotExists", - "details": { - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "MaximumPasswordAge", - "existenceCondition": { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus", - "equals": "Compliant" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Infrastructure encryption should be enabled for Azure Database for PostgreSQL servers", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Enable infrastructure encryption for Azure Database for PostgreSQL servers to have higher level of assurance that the data is secure. When infrastructure encryption is enabled, the data at rest is encrypted twice using FIPS 140-2 compliant Microsoft managed keys", - "metadata": { - "version": "1.0.0", - "category": "SQL" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.DBforPostgreSQL/servers" - }, - { - "field": "Microsoft.DBforPostgreSQL/servers/infrastructureEncryption", - "notEquals": "Enabled" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Deploy Diagnostic Settings for Data Lake Storage Gen1 to Log Analytics workspace", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Deploys the diagnostic settings for Data Lake Storage Gen1 to stream to a regional Log Analytics workspace when any Data Lake Storage Gen1 which is missing this diagnostic settings is created or updated.", - "metadata": { - "version": "1.0.0", - "category": "Monitoring" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - }, - "profileName": { - "type": "String", - "metadata": { - "displayName": "Profile name", - "description": "The diagnostic settings profile name" - }, - "defaultValue": "setbypolicy_logAnalytics" - }, - "logAnalytics": { - "type": "String", - "metadata": { - "displayName": "Log Analytics workspace", - "description": "Select Log Analytics workspace from dropdown list. If this workspace is outside of the scope of the assignment you must manually grant \u0027Log Analytics Contributor\u0027 permissions (or similar) to the policy assignment\u0027s principal ID.", - "strongType": "omsWorkspace", - "assignPermissions": true - } - }, - "metricsEnabled": { - "type": "String", - "metadata": { - "displayName": "Enable metrics", - "description": "Whether to enable metrics stream to the Log Analytics workspace - True or False" - }, - "allowedValues": [ - "True", - "False" - ], - "defaultValue": "False" - }, - "logsEnabled": { - "type": "String", - "metadata": { - "displayName": "Enable logs", - "description": "Whether to enable logs stream to the Log Analytics workspace - True or False" - }, - "allowedValues": [ - "True", - "False" - ], - "defaultValue": "True" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.DataLakeStore/accounts" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Insights/diagnosticSettings", - "name": "[parameters(\u0027profileName\u0027)]", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.Insights/diagnosticSettings/logs.enabled", - "equals": "[parameters(\u0027logsEnabled\u0027)]" - }, - { - "field": "Microsoft.Insights/diagnosticSettings/metrics.enabled", - "equals": "[parameters(\u0027metricsEnabled\u0027)]" - } - ] - }, - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000", - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "deployment": { - "properties": { - "mode": "incremental", - "template": { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "resourceName": { - "type": "string" - }, - "location": { - "type": "string" - }, - "logAnalytics": { - "type": "string" - }, - "metricsEnabled": { - "type": "string" - }, - "logsEnabled": { - "type": "string" - }, - "profileName": { - "type": "string" - } - }, - "variables": {}, - "resources": [ - { - "type": "Microsoft.DataLakeStore/accounts/providers/diagnosticSettings", - "apiVersion": "2017-05-01-preview", - "name": "[concat(parameters(\u0027resourceName\u0027), \u0027/\u0027, \u0027Microsoft.Insights/\u0027, parameters(\u0027profileName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "dependsOn": [], - "properties": { - "workspaceId": "[parameters(\u0027logAnalytics\u0027)]", - "metrics": [ - { - "category": "AllMetrics", - "enabled": "[parameters(\u0027metricsEnabled\u0027)]", - "retentionPolicy": { - "enabled": false, - "days": 0 - } - } - ], - "logs": [ - { - "category": "Audit", - "enabled": "[parameters(\u0027logsEnabled\u0027)]" - }, - { - "category": "Requests", - "enabled": "[parameters(\u0027logsEnabled\u0027)]" - } - ] - } - } - ], - "outputs": {} - }, - "parameters": { - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "resourceName": { - "value": "[field(\u0027name\u0027)]" - }, - "logAnalytics": { - "value": "[parameters(\u0027logAnalytics\u0027)]" - }, - "metricsEnabled": { - "value": "[parameters(\u0027metricsEnabled\u0027)]" - }, - "logsEnabled": { - "value": "[parameters(\u0027logsEnabled\u0027)]" - }, - "profileName": { - "value": "[parameters(\u0027profileName\u0027)]" - } - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1372 - Incident Reporting", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Incident Response control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1372" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1038 - Least Privilege | Privileged Accounts", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Access Control control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1038" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Configure Azure HDInsight clusters with private endpoints", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Private endpoints connect your virtual networks to Azure services without a public IP address at the source or destination. By mapping private endpoints to Azure HDInsight clusters, you can reduce data leakage risks. Learn more about private links at: https://aka.ms/hdi.pl.", - "metadata": { - "version": "1.0.0", - "category": "HDInsight" - }, - "parameters": { - "privateEndpointSubnetId": { - "type": "String", - "metadata": { - "displayName": "Private endpoint subnet ID", - "description": "A subnet with private endpoint network policies disabled.", - "strongType": "Microsoft.Network/virtualNetworks/subnets" - } - }, - "groupId": { - "type": "String", - "metadata": { - "displayName": "Group ID", - "description": "Target group id (sub resource type) for the private endpoint." - } - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HDInsight/clusters" - }, - { - "anyOf": [ - { - "field": "Microsoft.HDInsight/clusters/networkProperties.privateLink", - "equals": "Enabled" - }, - { - "count": { - "field": "Microsoft.HDInsight/clusters/privateLinkConfigurations[*]" - }, - "greaterOrEquals": 1 - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.HDInsight/clusters/privateEndpointConnections", - "existenceCondition": { - "field": "Microsoft.HDInsight/clusters/privateEndpointConnections/privateLinkServiceConnectionState.status", - "equals": "Approved" - }, - "roleDefinitionIds": [ - "/providers/Microsoft.Authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "deployment": { - "properties": { - "mode": "incremental", - "parameters": { - "name": { - "value": "[field(\u0027name\u0027)]" - }, - "serviceId": { - "value": "[field(\u0027id\u0027)]" - }, - "groupId": { - "value": "[parameters(\u0027groupId\u0027)]" - }, - "privateEndpointSubnetId": { - "value": "[parameters(\u0027privateEndpointSubnetId\u0027)]" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "name": { - "type": "string" - }, - "serviceId": { - "type": "string" - }, - "groupId": { - "type": "string" - }, - "privateEndpointSubnetId": { - "type": "string" - } - }, - "variables": { - "privateEndpointName": "[concat(\u0027pe-\u0027,substring(parameters(\u0027name\u0027),0,min(length(parameters(\u0027name\u0027)),50)),\u0027-\u0027,uniquestring(deployment().name))]" - }, - "resources": [ - { - "type": "Microsoft.Resources/deployments", - "name": "[variables(\u0027privateEndpointName\u0027)]", - "apiVersion": "2020-06-01", - "properties": { - "mode": "Incremental", - "expressionEvaluationOptions": { - "scope": "inner" - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "serviceId": { - "type": "string" - }, - "privateEndpointSubnetId": { - "type": "string" - }, - "groupId": { - "type": "string" - }, - "subnetLocation": { - "type": "string" - } - }, - "variables": { - "privateEndpointName": "[deployment().name]" - }, - "resources": [ - { - "name": "[variables(\u0027privateEndpointName\u0027)]", - "type": "Microsoft.Network/privateEndpoints", - "apiVersion": "2020-07-01", - "location": "[parameters(\u0027subnetLocation\u0027)]", - "tags": {}, - "properties": { - "subnet": { - "id": "[parameters(\u0027privateEndpointSubnetId\u0027)]" - }, - "privateLinkServiceConnections": [ - { - "name": "[variables(\u0027privateEndpointName\u0027)]", - "properties": { - "privateLinkServiceId": "[parameters(\u0027serviceId\u0027)]", - "groupIds": [ - "[parameters(\u0027groupId\u0027)]" - ], - "requestMessage": "Request to auto approve." - } - } - ], - "manualPrivateLinkServiceConnections": [] - } - } - ] - }, - "parameters": { - "serviceId": { - "value": "[parameters(\u0027serviceId\u0027)]" - }, - "groupId": { - "value": "[parameters(\u0027groupId\u0027)]" - }, - "privateEndpointSubnetId": { - "value": "[parameters(\u0027privateEndpointSubnetId\u0027)]" - }, - "subnetLocation": { - "value": "[reference(first(take(split(parameters(\u0027privateEndpointSubnetId\u0027),\u0027/subnets\u0027),1)),\u00272020-07-01\u0027,\u0027Full\u0027).location]" - } - } - } - } - ] - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Endpoint protection solution should be installed on virtual machine scale sets", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Audit the existence and health of an endpoint protection solution on your virtual machines scale sets, to protect them from threats and vulnerabilities.", - "metadata": { - "version": "3.0.0", - "category": "Security Center" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Compute/virtualMachineScaleSets" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Security/assessments", - "name": "00000000-0000-0000-0000-000000000000", - "existenceCondition": { - "field": "Microsoft.Security/assessments/status.code", - "in": [ - "NotApplicable", - "Healthy" - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1649 - Collaborative Computing Devices", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Communications Protection control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1649" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Metric alert rules should be configured on Batch accounts", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Audit configuration of metric alert rules on Batch account to enable the required metric", - "metadata": { - "version": "1.0.0", - "category": "Batch" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - }, - "metricName": { - "type": "String", - "metadata": { - "displayName": "Metric name", - "description": "The metric name that an alert rule must be enabled on" - } - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Batch/batchAccounts" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Insights/alertRules", - "existenceScope": "Subscription", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.Insights/alertRules/isEnabled", - "equals": "true" - }, - { - "field": "Microsoft.Insights/alertRules/condition.dataSource.metricName", - "equals": "[parameters(\u0027metricName\u0027)]" - }, - { - "field": "Microsoft.Insights/alertRules/condition.dataSource.resourceUri", - "equals": "[concat(\u0027/subscriptions/\u0027, subscription().subscriptionId, \u0027/resourcegroups/\u0027, resourceGroup().name, \u0027/providers/Microsoft.Batch/batchAccounts/\u0027, field(\u0027name\u0027))]" - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Configure virtual machines to be onboarded to Azure Automanage", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Azure Automanage enrolls, configures, and monitors virtual machines with best practice as defined in the Microsoft Cloud Adoption Framework for Azure. Use this policy to apply Automanage to your selected scope.", - "metadata": { - "version": "4.1.0-version-deprecated", - "category": "Automanage", - "deprecated": true - }, - "parameters": { - "automanageAccount": { - "type": "String", - "metadata": { - "displayName": "Automanage account", - "description": "The Automanage account is an Azure managed identity under which virtual machine operations are performed. If this account is outside of the scope of the assignment you must manually grant \u0027Contributor\u0027 permissions (or similar) on the account to the policy assignment\u0027s principal ID.", - "strongType": "Microsoft.Automanage/accounts", - "assignPermissions": true - } - }, - "configurationProfileAssignment": { - "type": "String", - "metadata": { - "displayName": "Configuration profile", - "description": "The management services provided are based on whether the machine is intended to be used in a dev/test environment or production." - }, - "allowedValues": [ - "Azure virtual machine best practices \u2013 Production", - "Azure virtual machine best practices \u2013 Dev/test" - ], - "defaultValue": "Azure virtual machine best practices \u2013 Production" - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of this policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "location", - "in": [ - "eastus", - "eastus2", - "westus", - "westus2", - "centralus", - "southcentralus", - "westcentralus", - "northeurope", - "westeurope", - "canadacentral", - "japaneast", - "uksouth", - "australiaeast", - "australiasoutheast", - "southeastasia" - ] - }, - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "dsvm-windows" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.imageReference.id", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.imageReference.sku", - "exists": "false" - } - ] - }, - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "microsoft-aks", - "qubole-inc", - "datastax", - "couchbase", - "scalegrid", - "checkpoint", - "paloaltonetworks", - "debian" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "OpenLogic" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "CentOS*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "6*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "OpenLogic" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "CentOS*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "8*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "RedHat" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "RHEL", - "RHEL-HA", - "RHEL-SAP", - "RHEL-SAP-APPS", - "RHEL-SAP-HA", - "RHEL-SAP-HANA", - "rhel-raw" - ] - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "6*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "RedHat" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "RHEL", - "RHEL-HA", - "RHEL-SAP", - "RHEL-SAP-APPS", - "RHEL-SAP-HA", - "RHEL-SAP-HANA", - "rhel-raw" - ] - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "8*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "RedHat" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "osa", - "rhel-byos" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "cis-centos-7-l1", - "cis-centos-7-v2-1-1-l1", - "cis-nginx-centos-7-v1-1-0-l1", - "cis-oracle-linux-7-v2-0-0-l1", - "cis-postgresql-11-centos-linux-7-level-1", - "cis-rhel-7-l2", - "cis-rhel-7-v2-2-0-l1", - "cis-suse-linux-12-v2-0-0-l1", - "cis-ubuntu-linux-1604-v1-0-0-l1", - "cis-ubuntu-linux-1804-l1" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "credativ" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Suse" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "SLES*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "11*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Suse" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "SLES*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "15*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Canonical" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "UbuntuServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "12*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "linux-data-science-vm-ubuntu", - "azureml" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloudera" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "cloudera-centos-os" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "6*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloudera" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "cloudera-altus-centos-os" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "linux*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.linuxConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Linux*" - } - ] - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.imageReference.id", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.imageReference.sku", - "exists": "false" - } - ] - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "type": "Microsoft.Automanage/configurationProfileAssignments", - "name": "default", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.Automanage/configurationProfileAssignments/configurationProfile", - "equals": "[parameters(\u0027configurationProfileAssignment\u0027)]" - }, - { - "field": "Microsoft.Automanage/configurationProfileAssignments/accountId", - "equals": "[parameters(\u0027automanageAccount\u0027)]" - } - ] - }, - "deployment": { - "properties": { - "mode": "incremental", - "parameters": { - "machineName": { - "value": "[field(\u0027Name\u0027)]" - }, - "automanageAccount": { - "value": "[parameters(\u0027automanageAccount\u0027)]" - }, - "configurationProfileAssignment": { - "value": "[parameters(\u0027configurationProfileAssignment\u0027)]" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "machineName": { - "type": "String" - }, - "automanageAccount": { - "type": "string" - }, - "configurationProfileAssignment": { - "type": "string" - } - }, - "resources": [ - { - "type": "Microsoft.Compute/virtualMachines/providers/configurationProfileAssignments", - "apiVersion": "2020-06-30-preview", - "name": "[concat(parameters(\u0027machineName\u0027), \u0027/Microsoft.Automanage/\u0027, \u0027default\u0027)]", - "properties": { - "configurationProfile": "[parameters(\u0027configurationProfileAssignment\u0027)]", - "accountId": "[parameters(\u0027automanageAccount\u0027)]" - } - } - ] - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1396 - Controlled Maintenance", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Maintenance control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1396" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Flow logs should be enabled for every network security group", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Audit for flow log resources to verify if flow log status is enabled. Enabling flow logs allows to log information about IP traffic flowing through network security group. It can be used for optimizing network flows, monitoring throughput, verifying compliance, detecting intrusions and more.", - "metadata": { - "version": "1.0.0", - "category": "Network" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allof": [ - { - "field": "type", - "equals": "Microsoft.Network/networkWatchers/flowLogs" - }, - { - "field": "Microsoft.Network/networkWatchers/flowLogs/enabled", - "equals": false - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1074 - Access Control For Mobile Devices", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Access Control control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1074" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Azure Device Update for IoT Hub accounts should use private link", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination. The Private Link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to Azure Device Update for IoT Hub accounts, data leakage risks are reduced.", - "metadata": { - "version": "1.0.0", - "category": "Internet of Things" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.DeviceUpdate/accounts" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.DeviceUpdate/accounts/privateEndpointConnections", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.DeviceUpdate/accounts/privateEndpointConnections/privateEndpoint", - "exists": "true" - }, - { - "field": "Microsoft.DeviceUpdate/accounts/privateEndpointConnections/provisioningState", - "equals": "Succeeded" - }, - { - "field": "Microsoft.DeviceUpdate/accounts/privateEndpointConnections/privateLinkServiceConnectionState.status", - "equals": "Approved" - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1527 - Access Agreements", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Personnel Security control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1527" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Deploy default Microsoft IaaSAntimalware extension for Windows Server", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "This policy deploys a Microsoft IaaSAntimalware extension with a default configuration when a VM is not configured with the antimalware extension.", - "metadata": { - "version": "1.0.0", - "category": "Compute" - }, - "parameters": {}, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "in": [ - "2008-R2-SP1", - "2008-R2-SP1-smalldisk", - "2012-Datacenter", - "2012-Datacenter-smalldisk", - "2012-R2-Datacenter", - "2012-R2-Datacenter-smalldisk", - "2016-Datacenter", - "2016-Datacenter-Server-Core", - "2016-Datacenter-Server-Core-smalldisk", - "2016-Datacenter-smalldisk", - "2016-Datacenter-with-Containers", - "2016-Datacenter-with-RDSH", - "2019-Datacenter", - "2019-Datacenter-Core", - "2019-Datacenter-Core-smalldisk", - "2019-Datacenter-Core-with-Containers", - "2019-Datacenter-Core-with-Containers-smalldisk", - "2019-Datacenter-smalldisk", - "2019-Datacenter-with-Containers", - "2019-Datacenter-with-Containers-smalldisk" - ] - } - ] - }, - "then": { - "effect": "deployIfNotExists", - "details": { - "type": "Microsoft.Compute/virtualMachines/extensions", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.Compute/virtualMachines/extensions/type", - "equals": "IaaSAntimalware" - }, - { - "field": "Microsoft.Compute/virtualMachines/extensions/publisher", - "equals": "Microsoft.Azure.Security" - } - ] - }, - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "deployment": { - "properties": { - "mode": "incremental", - "template": { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "vmName": { - "type": "string" - }, - "location": { - "type": "string" - }, - "ExclusionsPaths": { - "type": "string", - "defaultValue": "", - "metadata": { - "description": "Semicolon delimited list of file paths or locations to exclude from scanning" - } - }, - "ExclusionsExtensions": { - "type": "string", - "defaultValue": "", - "metadata": { - "description": "Semicolon delimited list of file extensions to exclude from scanning" - } - }, - "ExclusionsProcesses": { - "type": "string", - "defaultValue": "", - "metadata": { - "description": "Semicolon delimited list of process names to exclude from scanning" - } - }, - "RealtimeProtectionEnabled": { - "type": "string", - "defaultValue": "true", - "metadata": { - "description": "Indicates whether or not real time protection is enabled (default is true)" - } - }, - "ScheduledScanSettingsIsEnabled": { - "type": "string", - "defaultValue": "false", - "metadata": { - "description": "Indicates whether or not custom scheduled scan settings are enabled (default is false)" - } - }, - "ScheduledScanSettingsScanType": { - "type": "string", - "defaultValue": "Quick", - "metadata": { - "description": "Indicates whether scheduled scan setting type is set to Quick or Full (default is Quick)" - } - }, - "ScheduledScanSettingsDay": { - "type": "string", - "defaultValue": "7", - "metadata": { - "description": "Day of the week for scheduled scan (1-Sunday, 2-Monday, ..., 7-Saturday)" - } - }, - "ScheduledScanSettingsTime": { - "type": "string", - "defaultValue": "120", - "metadata": { - "description": "When to perform the scheduled scan, measured in minutes from midnight (0-1440). For example: 0 = 12AM, 60 = 1AM, 120 = 2AM." - } - } - }, - "resources": [ - { - "name": "[concat(parameters(\u0027vmName\u0027),\u0027/IaaSAntimalware\u0027)]", - "type": "Microsoft.Compute/virtualMachines/extensions", - "location": "[parameters(\u0027location\u0027)]", - "apiVersion": "2017-12-01", - "properties": { - "publisher": "Microsoft.Azure.Security", - "type": "IaaSAntimalware", - "typeHandlerVersion": "1.3", - "autoUpgradeMinorVersion": true, - "settings": { - "AntimalwareEnabled": true, - "RealtimeProtectionEnabled": "[parameters(\u0027RealtimeProtectionEnabled\u0027)]", - "ScheduledScanSettings": { - "isEnabled": "[parameters(\u0027ScheduledScanSettingsIsEnabled\u0027)]", - "day": "[parameters(\u0027ScheduledScanSettingsDay\u0027)]", - "time": "[parameters(\u0027ScheduledScanSettingsTime\u0027)]", - "scanType": "[parameters(\u0027ScheduledScanSettingsScanType\u0027)]" - }, - "Exclusions": { - "Extensions": "[parameters(\u0027ExclusionsExtensions\u0027)]", - "Paths": "[parameters(\u0027ExclusionsPaths\u0027)]", - "Processes": "[parameters(\u0027ExclusionsProcesses\u0027)]" - } - } - } - } - ] - }, - "parameters": { - "vmName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "RealtimeProtectionEnabled": { - "value": "true" - }, - "ScheduledScanSettingsIsEnabled": { - "value": "true" - } - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1342 - Authenticator Management | Hardware Token-Based Authentication", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Identification and Authentication control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1342" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1436 - Media Transport", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Media Protection control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1436" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Configure Azure SQL Server to disable public network access", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Disabling the public network access property shuts down public connectivity such that Azure SQL Server can only be accessed from a private endpoint. This configuration disables the public network access for all databases under the Azure SQL Server.", - "metadata": { - "category": "SQL", - "version": "1.0.0" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Modify", - "Disabled" - ], - "defaultValue": "Modify" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Sql/servers" - }, - { - "field": "Microsoft.Sql/servers/publicNetworkAccess", - "notEquals": "Disabled" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "conflictEffect": "audit", - "roleDefinitionIds": [ - "/providers/Microsoft.Authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "operations": [ - { - "operation": "addOrReplace", - "field": "Microsoft.Sql/servers/publicNetworkAccess", - "value": "Disabled" - } - ] - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1224 - Information System Component Inventory | Updates During Installations / Removals", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Configuration Management control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1224" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1148 - Security Assessments | Independent Assessors", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Security Assessment and Authorization control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1148" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1418 - Nonlocal Maintenance | Comparable Security / Sanitization", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Maintenance control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1418" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Azure Defender for App Service should be enabled", - "policyType": "BuiltIn", - "mode": "All", - "description": "Azure Defender for App Service leverages the scale of the cloud, and the visibility that Azure has as a cloud provider, to monitor for common web app attacks.", - "metadata": { - "version": "1.0.3", - "category": "Security Center" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Resources/subscriptions" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Security/pricings", - "name": "AppServices", - "existenceScope": "subscription", - "existenceCondition": { - "field": "Microsoft.Security/pricings/pricingTier", - "equals": "Standard" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Configure BotService resources with private endpoints", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Private endpoints connect your virtual network to Azure services without a public IP address at the source or destination. By mapping private endpoints to your BotService resource, you can reduce data leakage risks.", - "metadata": { - "version": "1.0.0", - "category": "Bot Service" - }, - "parameters": { - "privateEndpointSubnetId": { - "type": "String", - "metadata": { - "displayName": "Private Endpoint Subnet Id", - "description": "A subnet with private endpoint network policies disabled.", - "strongType": "Microsoft.Network/virtualNetworks/subnets" - } - }, - "privateEndpointGroupId": { - "type": "String", - "metadata": { - "displayName": "Private Endpoint Group Id", - "description": "A group Id for the private endpoint for a BotService resource." - }, - "allowedValues": [ - "Bot", - "Token" - ], - "defaultValue": "Bot" - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.BotService/botServices" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.BotService/botServices/privateEndpointConnections", - "existenceCondition": { - "field": "Microsoft.BotService/botServices/privateEndpointConnections/privateLinkServiceConnectionState.status", - "equals": "Approved" - }, - "roleDefinitionIds": [ - "/providers/Microsoft.Authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "deployment": { - "properties": { - "mode": "incremental", - "parameters": { - "name": { - "value": "[field(\u0027name\u0027)]" - }, - "serviceId": { - "value": "[field(\u0027id\u0027)]" - }, - "privateEndpointSubnetId": { - "value": "[parameters(\u0027privateEndpointSubnetId\u0027)]" - }, - "privateEndpointGroupId": { - "value": "[parameters(\u0027privateEndpointGroupId\u0027)]" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "name": { - "type": "String" - }, - "serviceId": { - "type": "String" - }, - "privateEndpointSubnetId": { - "type": "String" - }, - "privateEndpointGroupId": { - "type": "String" - } - }, - "variables": { - "privateEndpointName": "[concat(\u0027pe-\u0027,substring(parameters(\u0027name\u0027),0,min(length(parameters(\u0027name\u0027)),50)),\u0027-\u0027,uniquestring(deployment().name))]" - }, - "resources": [ - { - "type": "Microsoft.Resources/deployments", - "name": "[variables(\u0027privateEndpointName\u0027)]", - "apiVersion": "2020-06-01", - "properties": { - "mode": "Incremental", - "expressionEvaluationOptions": { - "scope": "inner" - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "serviceId": { - "type": "string" - }, - "privateEndpointSubnetId": { - "type": "string" - }, - "privateEndpointGroupId": { - "type": "String" - }, - "subnetLocation": { - "type": "string" - } - }, - "variables": { - "privateEndpointName": "[deployment().name]" - }, - "resources": [ - { - "name": "[variables(\u0027privateEndpointName\u0027)]", - "type": "Microsoft.Network/privateEndpoints", - "apiVersion": "2020-07-01", - "location": "[parameters(\u0027subnetLocation\u0027)]", - "tags": {}, - "properties": { - "subnet": { - "id": "[parameters(\u0027privateEndpointSubnetId\u0027)]" - }, - "privateLinkServiceConnections": [ - { - "name": "[variables(\u0027privateEndpointName\u0027)]", - "properties": { - "privateLinkServiceId": "[parameters(\u0027serviceId\u0027)]", - "groupIds": [ - "[parameters(\u0027privateEndpointGroupId\u0027)]" - ], - "requestMessage": "autoapprove" - } - } - ], - "manualPrivateLinkServiceConnections": [] - } - } - ] - }, - "parameters": { - "serviceId": { - "value": "[parameters(\u0027serviceId\u0027)]" - }, - "privateEndpointSubnetId": { - "value": "[parameters(\u0027privateEndpointSubnetId\u0027)]" - }, - "privateEndpointGroupId": { - "value": "[parameters(\u0027privateEndpointGroupId\u0027)]" - }, - "subnetLocation": { - "value": "[reference(first(take(split(parameters(\u0027privateEndpointSubnetId\u0027),\u0027/subnets\u0027),1)),\u00272020-07-01\u0027,\u0027Full\u0027).location]" - } - } - } - } - ] - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1634 - Boundary Protection | Prevent Unauthorized Exfiltration", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Communications Protection control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1634" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Service Bus Premium namespaces should use a customer-managed key for encryption", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Azure Service Bus supports the option of encrypting data at rest with either Microsoft-managed keys (default) or customer-managed keys. Choosing to encrypt data using customer-managed keys enables you to assign, rotate, disable, and revoke access to the keys that Service Bus will use to encrypt data in your namespace. Note that Service Bus only supports encryption with customer-managed keys for premium namespaces.", - "metadata": { - "version": "1.0.0", - "category": "Service Bus" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.ServiceBus/namespaces" - }, - { - "field": "Microsoft.ServiceBus/namespaces/sku.tier", - "equals": "Premium" - }, - { - "not": { - "field": "Microsoft.ServiceBus/namespaces/encryption.keySource", - "equals": "Microsoft.Keyvault" - } - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Show audit results from Windows VMs configurations in \u0027Security Options - User Account Control\u0027", - "policyType": "BuiltIn", - "mode": "All", - "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: \u0027Security Options - User Account Control\u0027. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol", - "metadata": { - "version": "1.0.0-deprecated", - "category": "Guest Configuration", - "deprecated": true - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "dsvm-windows" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - } - ] - }, - "then": { - "effect": "auditIfNotExists", - "details": { - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "AzureBaseline_SecurityOptionsUserAccountControl", - "existenceCondition": { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus", - "equals": "Compliant" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Append a tag and its value to resources", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Appends the specified tag and value when any resource which is missing this tag is created or updated. Does not modify the tags of resources created before this policy was applied until those resources are changed. Does not apply to resource groups. New \u0027modify\u0027 effect policies are available that support remediation of tags on existing resources (see https://aka.ms/modifydoc).", - "metadata": { - "version": "1.0.1", - "category": "Tags" - }, - "parameters": { - "tagName": { - "type": "String", - "metadata": { - "displayName": "Tag Name", - "description": "Name of the tag, such as \u0027environment\u0027" - } - }, - "tagValue": { - "type": "String", - "metadata": { - "displayName": "Tag Value", - "description": "Value of the tag, such as \u0027production\u0027" - } - } - }, - "policyRule": { - "if": { - "field": "[concat(\u0027tags[\u0027, parameters(\u0027tagName\u0027), \u0027]\u0027)]", - "exists": "false" - }, - "then": { - "effect": "append", - "details": [ - { - "field": "[concat(\u0027tags[\u0027, parameters(\u0027tagName\u0027), \u0027]\u0027)]", - "value": "[parameters(\u0027tagValue\u0027)]" - } - ] - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Storage accounts should restrict network access using virtual network rules", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Protect your storage accounts from potential threats using virtual network rules as a preferred method instead of IP-based filtering. Disabling IP-based filtering prevents public IPs from accessing your storage accounts.", - "metadata": { - "version": "1.0.1", - "category": "Storage" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the audit policy" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Storage/storageAccounts" - }, - { - "anyOf": [ - { - "field": "Microsoft.Storage/storageAccounts/networkAcls.defaultAction", - "notEquals": "Deny" - }, - { - "count": { - "field": "Microsoft.Storage/storageAccounts/networkAcls.ipRules[*]" - }, - "greaterOrEquals": 1 - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1219 - Least Functionality | Authorized Software / Whitelisting", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Configuration Management control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1219" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Windows machines should meet requirements for \u0027System Audit Policies - Policy Change\u0027", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Windows machines should have the specified Group Policy settings in the category \u0027System Audit Policies - Policy Change\u0027 for auditing changes to system audit policies. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.", - "metadata": { - "category": "Guest Configuration", - "version": "3.0.0", - "requiredProviders": [ - "Microsoft.GuestConfiguration" - ], - "guestConfiguration": { - "name": "AzureBaseline_SystemAuditPoliciesPolicyChange", - "version": "1.*", - "configurationParameter": { - "AuditAuthenticationPolicyChange": "Audit Authentication Policy Change;ExpectedValue", - "AuditAuthorizationPolicyChange": "Audit Authorization Policy Change;ExpectedValue" - } - } - }, - "parameters": { - "IncludeArcMachines": { - "type": "String", - "metadata": { - "displayName": "Include Arc connected servers", - "description": "By selecting this option, you agree to be charged monthly per Arc connected machine.", - "portalReview": "true" - }, - "allowedValues": [ - "true", - "false" - ], - "defaultValue": "false" - }, - "AuditAuthenticationPolicyChange": { - "type": "String", - "metadata": { - "displayName": "Audit Authentication Policy Change", - "description": "Specifies whether audit events are generated when changes are made to authentication policy. This setting is useful for tracking changes in domain-level and forest-level trust and privileges that are granted to user accounts or groups." - }, - "allowedValues": [ - "No Auditing", - "Success", - "Failure", - "Success and Failure" - ], - "defaultValue": "Success" - }, - "AuditAuthorizationPolicyChange": { - "type": "String", - "metadata": { - "displayName": "Audit Authorization Policy Change", - "description": "Specifies whether audit events are generated for assignment and removal of user rights in user right policies, changes in security token object permission, resource attributes changes and Central Access Policy changes for file system objects." - }, - "allowedValues": [ - "No Auditing", - "Success", - "Failure", - "Success and Failure" - ], - "defaultValue": "No Auditing" - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of this policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "dsvm-win*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "value": "[parameters(\u0027IncludeArcMachines\u0027)]", - "equals": "true" - }, - { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.ConnectedVMwarevSphere/virtualMachines" - }, - { - "field": "Microsoft.ConnectedVMwarevSphere/virtualMachines/osProfile.osType", - "like": "windows*" - } - ] - } - ] - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "AzureBaseline_SystemAuditPoliciesPolicyChange", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus", - "equals": "Compliant" - }, - { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash", - "equals": "[base64(concat(\u0027Audit Authentication Policy Change;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027AuditAuthenticationPolicyChange\u0027), \u0027,\u0027, \u0027Audit Authorization Policy Change;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027AuditAuthorizationPolicyChange\u0027)))]" - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Preview]: Configure Azure Defender for SQL agent on virtual machine", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Configure Windows machines to automatically install the Azure Defender for SQL agent where the Azure Monitor Agent is installed. Security Center collects events from the agent and uses them to provide security alerts and tailored hardening tasks (recommendations). Creates a resource group and Log Analytics workspace in the same region as the machine. Target virtual machines must be in a supported location.", - "metadata": { - "category": "Security Center", - "version": "1.0.0-preview", - "preview": true - }, - "parameters": { - "enableCollectionOfSqlQueriesForSecurityResearch": { - "type": "Boolean", - "metadata": { - "displayName": "Enable collection of SQL queries for security research", - "description": "Enable or disable the collection of SQL queries for security research." - }, - "allowedValues": [ - true, - false - ], - "defaultValue": true - }, - "azureDefenderForSqlExtensionTypeToInstall": { - "type": "String", - "metadata": { - "displayName": "Azure Defender For SQL extension type to install", - "description": "The type of the Azure Defender For SQL extension needed to be installed." - }, - "allowedValues": [ - "AdvancedThreatProtection.Windows", - "VulnerabilityAssessment.Windows" - ] - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines/extensions" - }, - { - "field": "location", - "in": [ - "australiacentral", - "australiaeast", - "australiasoutheast", - "brazilsouth", - "canadacentral", - "centralindia", - "centralus", - "eastasia", - "eastus2euap", - "eastus", - "eastus2", - "francecentral", - "germanywestcentral", - "japaneast", - "koreacentral", - "northcentralus", - "northeurope", - "norwayeast", - "southcentralus", - "southeastasia", - "switzerlandnorth", - "switzerlandwest", - "southafricanorth", - "swedencentral", - "uaenorth", - "uksouth", - "ukwest", - "westcentralus", - "westeurope", - "westus", - "westus2" - ] - }, - { - "field": "Microsoft.Compute/virtualMachines/extensions/type", - "equals": "AzureMonitorWindowsAgent" - }, - { - "field": "Microsoft.Compute/virtualMachines/extensions/publisher", - "equals": "Microsoft.Azure.Monitor" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Compute/virtualMachines/extensions", - "name": "[concat(first(split(field(\u0027fullName\u0027), \u0027/\u0027)), \u0027/Microsoft.Azure.AzureDefenderForSQL.\u0027, parameters(\u0027azureDefenderForSqlExtensionTypeToInstall\u0027))]", - "deploymentScope": "subscription", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.Compute/virtualMachines/extensions/type", - "equals": "[parameters(\u0027azureDefenderForSqlExtensionTypeToInstall\u0027)]" - }, - { - "field": "Microsoft.Compute/virtualMachines/extensions/publisher", - "equals": "Microsoft.Azure.AzureDefenderForSQL" - }, - { - "field": "Microsoft.Compute/virtualMachines/extensions/provisioningState", - "in": [ - "Succeeded", - "Provisioning succeeded" - ] - } - ] - }, - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "deployment": { - "location": "eastus", - "properties": { - "mode": "incremental", - "parameters": { - "resourceGroup": { - "value": "[resourceGroup().name]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "vmName": { - "value": "[first(split(field(\u0027fullName\u0027), \u0027/\u0027))]" - }, - "enableCollectionOfSqlQueriesForSecurityResearch": { - "value": "[parameters(\u0027enableCollectionOfSqlQueriesForSecurityResearch\u0027)]" - }, - "azureDefenderForSqlExtensionTypeToInstall": { - "value": "[parameters(\u0027azureDefenderForSqlExtensionTypeToInstall\u0027)]" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "resourceGroup": { - "type": "string" - }, - "location": { - "type": "string" - }, - "vmName": { - "type": "string" - }, - "enableCollectionOfSqlQueriesForSecurityResearch": { - "type": "bool" - }, - "azureDefenderForSqlExtensionTypeToInstall": { - "type": "string" - } - }, - "variables": { - "locationLongNameToShortMap": { - "australiacentral": "CAU", - "australiaeast": "EAU", - "australiasoutheast": "SEAU", - "brazilsouth": "CQ", - "canadacentral": "CCA", - "centralindia": "CIN", - "centralus": "CUS", - "eastasia": "EA", - "eastus2euap": "eus2p", - "eastus": "EUS", - "eastus2": "EUS2", - "francecentral": "PAR", - "germanywestcentral": "DEWC", - "japaneast": "EJP", - "koreacentral": "SE", - "northcentralus": "NCUS", - "northeurope": "NEU", - "norwayeast": "NOE", - "southcentralus": "SCUS", - "southeastasia": "SEA", - "switzerlandnorth": "CHN", - "switzerlandwest": "CHW", - "southafricanorth": "JNB", - "swedencentral": "SEC", - "uaenorth": "DXB", - "uksouth": "SUK", - "ukwest": "WUK", - "westcentralus": "WCUS", - "westeurope": "WEU", - "westus": "WUS", - "westus2": "WUS2" - }, - "locationCode": "[variables(\u0027locationLongNameToShortMap\u0027)[parameters(\u0027location\u0027)]]", - "subscriptionId": "[subscription().subscriptionId]", - "defaultRGName": "[concat(\u0027DefaultResourceGroup-\u0027, variables(\u0027locationCode\u0027))]", - "defaultRGLocation": "[parameters(\u0027location\u0027)]", - "workspaceName": "[concat(\u0027defaultWorkspace-\u0027, variables(\u0027subscriptionId\u0027),\u0027-\u0027, variables(\u0027locationCode\u0027))]", - "dcrName": "Microsoft-AzureDefenderForSQL", - "dcrId": "[concat(\u0027/subscriptions/\u0027, variables(\u0027subscriptionId\u0027), \u0027/resourceGroups/\u0027, variables(\u0027defaultRGName\u0027), \u0027/providers/Microsoft.Insights/dataCollectionRules/\u0027, variables(\u0027dcrName\u0027))]", - "dcraName": "[concat(parameters(\u0027vmName\u0027),\u0027/Microsoft.Insights/AzureDefenderForSQL-RulesAssociation\u0027)]", - "deployAzureDefenderForSqlExtensions": "[concat(\u0027deployAzureDefenderForSqlExtensions-\u0027, uniqueString(deployment().name))]", - "deployDefaultAscResourceGroup": "[concat(\u0027deployDefaultAscResourceGroup-\u0027, uniqueString(deployment().name))]" - }, - "resources": [ - { - "type": "Microsoft.Resources/resourceGroups", - "name": "[variables(\u0027defaultRGName\u0027)]", - "apiVersion": "2020-10-01", - "location": "[variables(\u0027defaultRGLocation\u0027)]" - }, - { - "type": "Microsoft.Resources/deployments", - "name": "[variables(\u0027deployDefaultAscResourceGroup\u0027)]", - "apiVersion": "2020-06-01", - "resourceGroup": "[variables(\u0027defaultRGName\u0027)]", - "dependsOn": [ - "[resourceId(\u0027Microsoft.Resources/resourceGroups\u0027, variables(\u0027defaultRGName\u0027))]" - ], - "properties": { - "mode": "Incremental", - "expressionEvaluationOptions": { - "scope": "inner" - }, - "parameters": { - "defaultRGLocation": { - "value": "[variables(\u0027defaultRGLocation\u0027)]" - }, - "workspaceName": { - "value": "[variables(\u0027workspaceName\u0027)]" - }, - "dcrName": { - "value": "[variables(\u0027dcrName\u0027)]" - }, - "enableCollectionOfSqlQueriesForSecurityResearch": { - "value": "[parameters(\u0027enableCollectionOfSqlQueriesForSecurityResearch\u0027)]" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "defaultRGLocation": { - "type": "string" - }, - "workspaceName": { - "type": "string" - }, - "dcrName": { - "type": "string" - }, - "enableCollectionOfSqlQueriesForSecurityResearch": { - "type": "bool" - } - }, - "variables": {}, - "resources": [ - { - "type": "Microsoft.OperationalInsights/workspaces", - "name": "[parameters(\u0027workspaceName\u0027)]", - "apiVersion": "2015-11-01-preview", - "location": "[parameters(\u0027defaultRGLocation\u0027)]", - "properties": { - "sku": { - "name": "pernode" - }, - "retentionInDays": 30, - "features": { - "searchVersion": 1 - } - } - }, - { - "type": "Microsoft.Insights/dataCollectionRules", - "name": "[parameters(\u0027dcrName\u0027)]", - "apiVersion": "2019-11-01-preview", - "location": "[parameters(\u0027defaultRGLocation\u0027)]", - "dependsOn": [ - "[parameters(\u0027workspaceName\u0027)]" - ], - "properties": { - "description": "Data collection rule for Azure Defender for SQL. Deleting this rule will break the detection of Azure Defender for SQL.", - "dataSources": { - "extensions": [ - { - "streams": [ - "Microsoft-DefenderForSqlAlerts", - "Microsoft-DefenderForSqlLogins", - "Microsoft-DefenderForSqlTelemetry", - "Microsoft-SqlAtpStatus-DefenderForSql" - ], - "extensionName": "AdvancedThreatProtection", - "extensionSettings": { - "enableCollectionOfSqlQueriesForSecurityResearch": "[parameters(\u0027enableCollectionOfSqlQueriesForSecurityResearch\u0027)]" - }, - "name": "AdvancedThreatProtection" - }, - { - "streams": [ - "Microsoft-DefenderForSqlScanEvents", - "Microsoft-DefenderForSqlScanResults", - "Microsoft-DefenderForSqlTelemetry" - ], - "extensionName": "VulnerabilityAssessment", - "name": "VulnerabilityAssessment" - } - ] - }, - "destinations": { - "logAnalytics": [ - { - "workspaceResourceId": "[resourceId(\u0027Microsoft.OperationalInsights/workspaces/\u0027, parameters(\u0027workspaceName\u0027))]", - "name": "LogAnalyticsDest" - } - ] - }, - "dataFlows": [ - { - "streams": [ - "Microsoft-DefenderForSqlAlerts", - "Microsoft-DefenderForSqlLogins", - "Microsoft-DefenderForSqlTelemetry", - "Microsoft-DefenderForSqlScanEvents", - "Microsoft-DefenderForSqlScanResults" - ], - "destinations": [ - "LogAnalyticsDest" - ] - } - ] - } - } - ] - } - } - }, - { - "type": "Microsoft.Resources/deployments", - "name": "[variables(\u0027deployAzureDefenderForSqlExtensions\u0027)]", - "apiVersion": "2020-06-01", - "resourceGroup": "[parameters(\u0027resourceGroup\u0027)]", - "dependsOn": [ - "[variables(\u0027deployDefaultAscResourceGroup\u0027)]" - ], - "properties": { - "mode": "Incremental", - "expressionEvaluationOptions": { - "scope": "inner" - }, - "parameters": { - "location": { - "value": "[parameters(\u0027location\u0027)]" - }, - "dcrId": { - "value": "[variables(\u0027dcrId\u0027)]" - }, - "dcraName": { - "value": "[variables(\u0027dcraName\u0027)]" - }, - "vmName": { - "value": "[parameters(\u0027vmName\u0027)]" - }, - "azureDefenderForSqlExtensionTypeToInstall": { - "value": "[parameters(\u0027azureDefenderForSqlExtensionTypeToInstall\u0027)]" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "location": { - "type": "string" - }, - "dcrId": { - "type": "string" - }, - "dcraName": { - "type": "string" - }, - "vmName": { - "type": "string" - }, - "azureDefenderForSqlExtensionTypeToInstall": { - "type": "string" - } - }, - "variables": {}, - "resources": [ - { - "type": "Microsoft.Compute/virtualMachines/providers/dataCollectionRuleAssociations", - "name": "[parameters(\u0027dcraName\u0027)]", - "apiVersion": "2019-11-01-preview", - "properties": { - "description": "Association of data collection rule for Azure Defender for SQL. Deleting this association will break the detection of Azure Defender for SQL for this virtual machine.", - "dataCollectionRuleId": "[parameters(\u0027dcrId\u0027)]" - } - }, - { - "type": "Microsoft.Compute/virtualMachines/extensions", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/\u0027, \u0027Microsoft.Azure.AzureDefenderForSQL.\u0027, parameters(\u0027azureDefenderForSqlExtensionTypeToInstall\u0027))]", - "apiVersion": "2020-12-01", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "publisher": "Microsoft.Azure.AzureDefenderForSQL", - "type": "[parameters(\u0027azureDefenderForSqlExtensionTypeToInstall\u0027)]", - "typeHandlerVersion": "1.0", - "autoUpgradeMinorVersion": true - } - } - ] - } - } - } - ] - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1274 - Alternate Processing Site", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Contingency Planning control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1274" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Synapse workspace auditing settings should have action groups configured to capture critical activities", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "To ensure your audit logs are as thorough as possible, the AuditActionsAndGroups property should include all the relevant groups. We recommend adding at least SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP, FAILED_DATABASE_AUTHENTICATION_GROUP, and BATCH_COMPLETED_GROUP. This is sometimes required for compliance with regulatory standards.", - "metadata": { - "version": "1.0.0", - "category": "Synapse" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Synapse/workspaces" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Synapse/workspaces/auditingSettings", - "name": "default", - "existenceCondition": { - "allOf": [ - { - "not": { - "field": "Microsoft.Synapse/workspaces/auditingSettings/auditActionsAndGroups[*]", - "notEquals": "SUCCESSFUL_DATABASE_AUTHENTICATION_GROUP" - } - }, - { - "not": { - "field": "Microsoft.Synapse/workspaces/auditingSettings/auditActionsAndGroups[*]", - "notEquals": "FAILED_DATABASE_AUTHENTICATION_GROUP" - } - }, - { - "not": { - "field": "Microsoft.Synapse/workspaces/auditingSettings/auditActionsAndGroups[*]", - "notEquals": "BATCH_COMPLETED_GROUP" - } - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1603 - Developer Security Testing And Evaluation", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Services Acquisition control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1603" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Managed identity should be used in your Web App", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Use a managed identity for enhanced authentication security", - "metadata": { - "version": "2.0.0", - "category": "App Service" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Web/sites" - }, - { - "field": "kind", - "like": "app*" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Web/sites/config", - "name": "web", - "existenceCondition": { - "anyOf": [ - { - "field": "Microsoft.Web/sites/config/managedServiceIdentityId", - "exists": "true" - }, - { - "field": "Microsoft.Web/sites/config/xmanagedServiceIdentityId", - "exists": "true" - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Cognitive Services accounts should enable data encryption", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "This policy is deprecated. Cognitive Services have data encryption enforced.", - "metadata": { - "version": "2.0.0-deprecated", - "category": "Cognitive Services", - "deprecated": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "The effect determines what happens when the policy rule is evaluated to match" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Disabled" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.CognitiveServices/accounts" - }, - { - "field": "Microsoft.CognitiveServices/accounts/encryption.keySource", - "exists": "false" - }, - { - "field": "Microsoft.CognitiveServices/accounts/encryption", - "exists": "true" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Configure App Service slots to disable local authentication for SCM sites.", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Disable local authentication methods for SCM sites so that your App Services slots exclusively require Azure Active Directory identities for authentication. Learn more at: https://aka.ms/app-service-disable-basic-auth.", - "metadata": { - "version": "1.0.0", - "category": "App Service" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Web/sites/slots" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "name": "scm", - "type": "Microsoft.Web/sites/slots/basicPublishingCredentialsPolicies", - "existenceCondition": { - "field": "Microsoft.Web/sites/slots/basicPublishingCredentialsPolicies/allow", - "equals": "false" - }, - "roleDefinitionIds": [ - "/providers/Microsoft.Authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "deployment": { - "properties": { - "mode": "incremental", - "parameters": { - "siteName": { - "value": "[field(\u0027fullName\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "siteName": { - "type": "string" - }, - "location": { - "type": "string" - } - }, - "variables": {}, - "resources": [ - { - "type": "Microsoft.Web/sites/slots/basicPublishingCredentialsPolicies", - "name": "[concat(parameters(\u0027siteName\u0027), \u0027/scm\u0027)]", - "apiVersion": "2021-02-01", - "location": "[parameters(\u0027location\u0027)]", - "tags": {}, - "properties": { - "allow": "false" - } - } - ] - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1434 - Media Transport", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Media Protection control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1434" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1343 - Authenticator Management | Expiration Of Cached Authenticators", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Identification and Authentication control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1343" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1388 - Information Spillage Response", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Incident Response control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1388" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1344 - Authenticator Feedback", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Identification and Authentication control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1344" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: SSH access from the Internet should be blocked", - "policyType": "BuiltIn", - "mode": "All", - "description": "This policy is deprecated. This policy audits any network security rule that allows SSH access from Internet", - "metadata": { - "version": "2.0.0-deprecated", - "category": "Network", - "deprecated": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Network/networkSecurityGroups/securityRules" - }, - { - "allOf": [ - { - "field": "Microsoft.Network/networkSecurityGroups/securityRules/access", - "equals": "Allow" - }, - { - "field": "Microsoft.Network/networkSecurityGroups/securityRules/direction", - "equals": "Inbound" - }, - { - "anyOf": [ - { - "field": "Microsoft.Network/networkSecurityGroups/securityRules/destinationPortRange", - "equals": "*" - }, - { - "field": "Microsoft.Network/networkSecurityGroups/securityRules/destinationPortRange", - "equals": "22" - }, - { - "value": "[if(and(not(empty(field(\u0027Microsoft.Network/networkSecurityGroups/securityRules/destinationPortRange\u0027))), contains(field(\u0027Microsoft.Network/networkSecurityGroups/securityRules/destinationPortRange\u0027),\u0027-\u0027)), and(lessOrEquals(int(first(split(field(\u0027Microsoft.Network/networkSecurityGroups/securityRules/destinationPortRange\u0027), \u0027-\u0027))),22),greaterOrEquals(int(last(split(field(\u0027Microsoft.Network/networkSecurityGroups/securityRules/destinationPortRange\u0027), \u0027-\u0027))),22)), \u0027false\u0027)]", - "equals": "true" - }, - { - "count": { - "field": "Microsoft.Network/networkSecurityGroups/securityRules/destinationPortRanges[*]", - "where": { - "value": "[if(and(not(empty(first(field(\u0027Microsoft.Network/networkSecurityGroups/securityRules/destinationPortRanges[*]\u0027)))), contains(first(field(\u0027Microsoft.Network/networkSecurityGroups/securityRules/destinationPortRanges[*]\u0027)),\u0027-\u0027)), and(lessOrEquals(int(first(split(first(field(\u0027Microsoft.Network/networkSecurityGroups/securityRules/destinationPortRanges[*]\u0027)), \u0027-\u0027))),22),greaterOrEquals(int(last(split(first(field(\u0027Microsoft.Network/networkSecurityGroups/securityRules/destinationPortRanges[*]\u0027)), \u0027-\u0027))),22)) , \u0027false\u0027)]", - "equals": "true" - } - }, - "greater": 0 - }, - { - "not": { - "field": "Microsoft.Network/networkSecurityGroups/securityRules/destinationPortRanges[*]", - "notEquals": "*" - } - }, - { - "not": { - "field": "Microsoft.Network/networkSecurityGroups/securityRules/destinationPortRanges[*]", - "notEquals": "22" - } - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Network/networkSecurityGroups/securityRules/sourceAddressPrefix", - "equals": "*" - }, - { - "field": "Microsoft.Network/networkSecurityGroups/securityRules/sourceAddressPrefix", - "equals": "Internet" - }, - { - "not": { - "field": "Microsoft.Network/networkSecurityGroups/securityRules/sourceAddressPrefixes[*]", - "notEquals": "*" - } - }, - { - "not": { - "field": "Microsoft.Network/networkSecurityGroups/securityRules/sourceAddressPrefixes[*]", - "notEquals": "Internet" - } - } - ] - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Unattached disks should be encrypted", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "This policy audits any unattached disk without encryption enabled.", - "metadata": { - "version": "1.0.0-deprecated", - "category": "Compute", - "deprecated": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/disks" - }, - { - "field": "Microsoft.Compute/disks/diskState", - "equals": "Unattached" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/disks/encryptionSettingsCollection.enabled", - "exists": "false" - }, - { - "field": "Microsoft.Compute/disks/encryptionSettingsCollection.enabled", - "equals": "false" - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1593 - External Information System Services | Processing, Storage, And Service Location", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Services Acquisition control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1593" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1546 - Vulnerability Scanning", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Risk Assessment control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1546" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1414 - Nonlocal Maintenance", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Maintenance control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1414" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1679 - Malicious Code Protection", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Information Integrity control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1679" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1068 - Wireless Access", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Access Control control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1068" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "App Service Environment apps should not be reachable over public internet", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "To ensure apps deployed in an App Service Environment are not accessible over public internet, one should deploy App Service Environment with an IP address in virtual network. To set the IP address to a virtual network IP, the App Service Environment must be deployed with an internal load balancer.", - "metadata": { - "version": "2.0.0", - "category": "App Service" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Web/hostingEnvironments" - }, - { - "field": "kind", - "like": "ASE*" - }, - { - "anyOf": [ - { - "allOf": [ - { - "value": "[requestContext().apiVersion]", - "less": "2016-09-01" - }, - { - "anyOf": [ - { - "field": "Microsoft.Web/HostingEnvironments/internalLoadBalancingMode", - "notContains": "2" - }, - { - "field": "Microsoft.Web/HostingEnvironments/internalLoadBalancingMode", - "notContains": "3" - } - ] - } - ] - }, - { - "allOf": [ - { - "value": "[requestContext().apiVersion]", - "greaterOrEquals": "2016-09-01" - }, - { - "anyOf": [ - { - "field": "Microsoft.Web/HostingEnvironments/internalLoadBalancingMode", - "notContains": "Web" - }, - { - "field": "Microsoft.Web/HostingEnvironments/internalLoadBalancingMode", - "notContains": "Publishing" - } - ] - } - ] - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "App Service should use a virtual network service endpoint", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "This policy audits any App Service not configured to use a virtual network service endpoint.", - "metadata": { - "version": "1.0.0", - "category": "Network" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Web/sites" - }, - { - "field": "kind", - "like": "app*" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Web/sites/virtualNetworkConnections", - "existenceCondition": { - "field": "Microsoft.Web/sites/virtualnetworkconnections/vnetResourceId", - "exists": "true" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1704 - Security Alerts, Advisories, And Directives", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Information Integrity control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1704" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Show audit results from Windows VMs that do not store passwords using reversible encryption", - "policyType": "BuiltIn", - "mode": "All", - "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines that do not store passwords using reversible encryption. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol", - "metadata": { - "version": "1.0.0-deprecated", - "category": "Guest Configuration", - "deprecated": true - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "dsvm-windows" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - } - ] - }, - "then": { - "effect": "auditIfNotExists", - "details": { - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "StorePasswordsUsingReversibleEncryption", - "existenceCondition": { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus", - "equals": "Compliant" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Show audit results from Linux VMs that allow remote connections from accounts without passwords", - "policyType": "BuiltIn", - "mode": "All", - "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Linux virtual machines that allow remote connections from accounts without passwords. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol", - "metadata": { - "version": "4.0.0-deprecated", - "category": "Guest Configuration", - "deprecated": true - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "microsoft-aks", - "qubole-inc", - "datastax", - "couchbase", - "scalegrid", - "checkpoint", - "paloaltonetworks", - "debian" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "OpenLogic" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "CentOS*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "6*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Oracle" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Oracle-Linux" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "6*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "RedHat" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "RHEL", - "RHEL-HA", - "RHEL-SAP", - "RHEL-SAP-APPS", - "RHEL-SAP-HA", - "RHEL-SAP-HANA" - ] - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "6*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "RedHat" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "osa", - "rhel-byos" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "cis-centos-7-l1", - "cis-centos-7-v2-1-1-l1", - "cis-centos-8-l1", - "cis-debian-linux-8-l1", - "cis-debian-linux-9-l1", - "cis-nginx-centos-7-v1-1-0-l1", - "cis-oracle-linux-7-v2-0-0-l1", - "cis-oracle-linux-8-l1", - "cis-postgresql-11-centos-linux-7-level-1", - "cis-rhel-7-l2", - "cis-rhel-7-v2-2-0-l1", - "cis-rhel-8-l1", - "cis-suse-linux-12-v2-0-0-l1", - "cis-ubuntu-linux-1604-v1-0-0-l1", - "cis-ubuntu-linux-1804-l1" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "credativ" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Debian" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "7*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Suse" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "SLES*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "11*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Canonical" - }, - { - "field": "Microsoft.Compute/imageOffer", - "contains": "Ubuntu" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "12*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "linux-data-science-vm-ubuntu", - "azureml", - "ubuntu-hpc", - "ubuntu-1804" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloudera" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "cloudera-centos-os" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "6*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloudera" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "cloudera-altus-centos-os" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "linux*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.linuxConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Linux*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "exists": "false" - }, - { - "field": "Microsoft.Compute/imagePublisher", - "notIn": [ - "OpenLogic", - "RedHat", - "credativ", - "Suse", - "Canonical", - "microsoft-dsvm", - "cloudera", - "microsoft-ads", - "center-for-internet-security-inc", - "Oracle", - "AzureDatabricks", - "azureopenshift" - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "linux*" - } - ] - } - ] - }, - "then": { - "effect": "auditIfNotExists", - "details": { - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "PasswordPolicy_msid110", - "existenceCondition": { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus", - "equals": "Compliant" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Public network access on Azure IoT Hub should be disabled", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Disabling the public network access property improves security by ensuring your Azure IoT Hub can only be accessed from a private endpoint.", - "metadata": { - "version": "1.0.0", - "category": "Internet of Things" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Devices/IotHubs" - }, - { - "field": "Microsoft.Devices/IotHubs/publicNetworkAccess", - "notEquals": "Disabled" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Preview]: Azure IoT Hub should use customer-managed key to encrypt data at rest", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Encryption of data at rest in IoT Hub with customer-managed key adds a second layer of encryption on top of the default service-managed keys, enables customer control of keys, custom rotation policies, and ability to manage access to data through key access control. Customer-managed keys must be configured during creation of IoT Hub. For more information on how to configure customer-managed keys, see https://aka.ms/iotcmk.", - "metadata": { - "version": "1.0.0-preview", - "category": "Internet of Things", - "preview": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "The desired effect of the policy." - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Devices/IotHubs" - }, - { - "count": { - "field": "Microsoft.Devices/IotHubs/encryption.keyVaultProperties[*]", - "where": { - "allOf": [ - { - "field": "Microsoft.Devices/IotHubs/encryption.keyVaultProperties[*].keyIdentifier", - "exists": "true" - }, - { - "field": "Microsoft.Devices/IotHubs/encryption.keyVaultProperties[*].keyIdentifier", - "notequals": "" - } - ] - } - }, - "lessOrEquals": 0 - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Managed workspace virtual network on Azure Synapse workspaces should be enabled", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Enabling a managed workspace virtual network ensures that your workspace is network isolated from other workspaces. Data integration and Spark resources deployed in this virtual network also provides user level isolation for Spark activities.", - "metadata": { - "version": "1.0.0", - "category": "Synapse" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Synapse/workspaces" - }, - { - "field": "Microsoft.Synapse/workspaces/managedVirtualNetwork", - "notEquals": "default" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1077 - Use Of External Information Systems", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Access Control control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1077" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Configure Azure Event Grid partner namespaces to disable local authentication", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Disable local authentication methods so that your Azure Event Grid partner namespaces exclusively require Azure Active Directory identities for authentication. Learn more at: https://aka.ms/aeg-disablelocalauth.", - "metadata": { - "version": "1.0.0", - "category": "Event Grid" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Modify", - "Disabled" - ], - "defaultValue": "Modify" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.EventGrid/partnerNamespaces" - }, - { - "field": "Microsoft.EventGrid/partnerNamespaces/disableLocalAuth", - "notEquals": true - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "conflictEffect": "audit", - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "operations": [ - { - "condition": "[greaterOrEquals(requestContext().apiVersion, \u00272021-06-01-preview\u0027)]", - "operation": "addOrReplace", - "field": "Microsoft.EventGrid/partnerNamespaces/disableLocalAuth", - "value": true - } - ] - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1149 - Security Assessments | Specialized Assessments", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Security Assessment and Authorization control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1149" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1497 - System Security Plan | Plan / Coordinate With Other Organizational Entities", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Planning control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1497" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Preview]: Azure Recovery Services vaults should use customer-managed keys for encrypting backup data", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Use customer-managed keys to manage the encryption at rest of your backup data. By default, customer data is encrypted with service-managed keys, but customer-managed keys are commonly required to meet regulatory compliance standards. Customer-managed keys enable the data to be encrypted with an Azure Key Vault key created and owned by you. You have full control and responsibility for the key lifecycle, including rotation and management. Learn more at https://aka.ms/AB-CmkEncryption.", - "metadata": { - "version": "1.0.0-preview", - "preview": true, - "category": "Backup" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy." - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - }, - "enableDoubleEncryption": { - "type": "Boolean", - "metadata": { - "displayName": "Double encryption should be enabled on Recovery Services vaults for Backup", - "description": "Check if double encryption is enabled on Recovery Services vaults for Backup. For more details refer to https://aka.ms/AB-InfraEncryption." - }, - "allowedValues": [ - true, - false - ], - "defaultValue": false - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.RecoveryServices/vaults" - }, - { - "anyOf": [ - { - "field": "Microsoft.RecoveryServices/vaults/encryption.keyVaultProperties.keyUri", - "exists": "false" - }, - { - "allOf": [ - { - "value": "[parameters(\u0027enableDoubleEncryption\u0027)]", - "equals": true - }, - { - "field": "Microsoft.RecoveryServices/vaults/encryption.infrastructureEncryption", - "notEquals": "Enabled" - } - ] - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Configure Linux Machines to be associated with a Data Collection Rule", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Deploy Association to link Linux virtual machines, virtual machine scale sets, and Arc machines to the specified Data Collection Rule. The list of locations and OS images are updated over time as support is increased.", - "metadata": { - "version": "3.0.0", - "category": "Monitoring" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy." - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - }, - "listOfLinuxImageIdToInclude": { - "type": "Array", - "metadata": { - "displayName": "Additional Linux Machine Images", - "description": "List of machine images that have supported Linux OS to add to scope. Example values: \u0027/subscriptions/\u003CsubscriptionId\u003E/resourceGroups/YourResourceGroup/providers/Microsoft.Compute/images/ContosoStdImage\u0027" - }, - "defaultValue": [] - }, - "dcrResourceId": { - "type": "String", - "metadata": { - "displayName": "Data Collection Rule Resource Id", - "description": "Resource Id of the Data Collection Rule to be applied on the Linux machines in scope.", - "strongType": "Microsoft.Insights/dataCollectionRules" - } - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "location", - "in": [ - "australiacentral", - "australiacentral2", - "australiaeast", - "australiasoutheast", - "brazilsouth", - "brazilsoutheast", - "canadacentral", - "canadaeast", - "centralindia", - "centralus", - "eastasia", - "eastus2euap", - "eastus", - "eastus2", - "francecentral", - "francesouth", - "germanywestcentral", - "japaneast", - "japanwest", - "jioindiawest", - "koreacentral", - "koreasouth", - "northcentralus", - "northeurope", - "norwayeast", - "norwaywest", - "southafricanorth", - "southcentralus", - "southeastasia", - "southindia", - "switzerlandnorth", - "switzerlandwest", - "uaenorth", - "uksouth", - "ukwest", - "westcentralus", - "westeurope", - "westindia", - "westus", - "westus2" - ] - }, - { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/machines/osName", - "equals": "linux" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachineScaleSets" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageId", - "in": "[parameters(\u0027listOfLinuxImageIdToInclude\u0027)]" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "RedHat" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "RHEL", - "RHEL-SAP-HANA" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSku", - "like": "6*" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "7*" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "8*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "SUSE" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "SLES", - "SLES-HPC", - "SLES-HPC-Priority", - "SLES-SAP", - "SLES-SAP-BYOS", - "SLES-Priority", - "SLES-BYOS", - "SLES-SAPCAL", - "SLES-Standard" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSku", - "like": "12*" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "15*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Canonical" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "UbuntuServer" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSku", - "like": "14.04*LTS" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "16.04*LTS" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "18.04*LTS" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Canonical" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "0001-com-ubuntu-server-focal" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSku", - "like": "20_04-lts*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Oracle" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Oracle-Linux" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSku", - "like": "6*" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "7*" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "8*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "OpenLogic" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "CentOS", - "Centos-LVM", - "CentOS-SRIOV" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSku", - "like": "6*" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "7*" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "8*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloudera" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "cloudera-centos-os" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "7*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "credativ" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "debian" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSku", - "like": "8" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "9" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Debian" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "debian-10" - ] - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "10" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Insights/dataCollectionRuleAssociations", - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000", - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "existenceCondition": { - "field": "Microsoft.Insights/dataCollectionRuleAssociations/dataCollectionRuleId", - "equals": "[parameters(\u0027dcrResourceId\u0027)]" - }, - "deployment": { - "properties": { - "mode": "incremental", - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "resourceName": { - "type": "string" - }, - "location": { - "type": "string" - }, - "dcrResourceId": { - "type": "string" - }, - "type": { - "type": "string" - } - }, - "variables": { - "associationName": "[concat(\u0027assoc-\u0027, uniqueString(parameters(\u0027dcrResourceId\u0027)))]" - }, - "resources": [ - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), \u0027microsoft.compute/virtualmachines\u0027)]", - "name": "[variables(\u0027associationName\u0027)]", - "type": "Microsoft.Insights/dataCollectionRuleAssociations", - "apiVersion": "2021-04-01", - "properties": { - "dataCollectionRuleId": "[parameters(\u0027dcrResourceId\u0027)]" - }, - "scope": "[concat(\u0027Microsoft.Compute/virtualMachines/\u0027, parameters(\u0027resourceName\u0027))]" - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), \u0027microsoft.compute/virtualmachinescalesets\u0027)]", - "name": "[variables(\u0027associationName\u0027)]", - "type": "Microsoft.Insights/dataCollectionRuleAssociations", - "apiVersion": "2021-04-01", - "properties": { - "dataCollectionRuleId": "[parameters(\u0027dcrResourceId\u0027)]" - }, - "scope": "[concat(\u0027Microsoft.Compute/virtualMachineScaleSets/\u0027, parameters(\u0027resourceName\u0027))]" - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), \u0027microsoft.hybridcompute/machines\u0027)]", - "name": "[variables(\u0027associationName\u0027)]", - "type": "Microsoft.Insights/dataCollectionRuleAssociations", - "apiVersion": "2021-04-01", - "properties": { - "dataCollectionRuleId": "[parameters(\u0027dcrResourceId\u0027)]" - }, - "scope": "[concat(\u0027Microsoft.HybridCompute/machines/\u0027, parameters(\u0027resourceName\u0027))]" - } - ] - }, - "parameters": { - "resourceName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "dcrResourceId": { - "value": "[parameters(\u0027dcrResourceId\u0027)]" - }, - "type": { - "value": "[field(\u0027type\u0027)]" - } - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1000 - Access Control Policy And Procedures", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Access Control control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1000" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Network Watcher flow logs should have traffic analytics enabled", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Traffic analytics analyzes Network Watcher network security group flow logs to provide insights into traffic flow in your Azure cloud. It can be used to visualize network activity across your Azure subscriptions and identify hot spots, identify security threats, understand traffic flow patterns, pinpoint network misconfigurations and more.", - "metadata": { - "version": "1.0.0", - "category": "Network" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allof": [ - { - "field": "type", - "equals": "Microsoft.Network/networkWatchers/flowLogs" - }, - { - "anyof": [ - { - "field": "Microsoft.Network/networkWatchers/flowLogs/flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.enabled", - "equals": false - }, - { - "field": "Microsoft.Network/networkWatchers/flowLogs/flowAnalyticsConfiguration.networkWatcherFlowAnalyticsConfiguration.trafficAnalyticsInterval", - "notin": [ - "10", - "60" - ] - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1519 - Personnel Termination", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Personnel Security control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1519" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Windows machines should meet requirements for \u0027Security Options - System objects\u0027", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Windows machines should have the specified Group Policy settings in the category \u0027Security Options - System objects\u0027 for case insensitivity for non-Windows subsystems and permissions of internal system objects. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.", - "metadata": { - "category": "Guest Configuration", - "version": "3.0.0", - "requiredProviders": [ - "Microsoft.GuestConfiguration" - ], - "guestConfiguration": { - "name": "AzureBaseline_SecurityOptionsSystemobjects", - "version": "1.*" - } - }, - "parameters": { - "IncludeArcMachines": { - "type": "String", - "metadata": { - "displayName": "Include Arc connected servers", - "description": "By selecting this option, you agree to be charged monthly per Arc connected machine.", - "portalReview": "true" - }, - "allowedValues": [ - "true", - "false" - ], - "defaultValue": "false" - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of this policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "dsvm-win*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "value": "[parameters(\u0027IncludeArcMachines\u0027)]", - "equals": "true" - }, - { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.ConnectedVMwarevSphere/virtualMachines" - }, - { - "field": "Microsoft.ConnectedVMwarevSphere/virtualMachines/osProfile.osType", - "like": "windows*" - } - ] - } - ] - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "AzureBaseline_SecurityOptionsSystemobjects", - "existenceCondition": { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus", - "equals": "Compliant" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Preview]: Network traffic data collection agent should be installed on Windows virtual machines", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Security Center uses the Microsoft Dependency agent to collect network traffic data from your Azure virtual machines to enable advanced network protection features such as traffic visualization on the network map, network hardening recommendations and specific network threats.", - "metadata": { - "version": "1.0.2-preview", - "category": "Monitoring", - "preview": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable Dependency Agent for Windows VMs monitoring" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "in": [ - "2008-R2-SP1", - "2008-R2-SP1-smalldisk", - "2012-Datacenter", - "2012-Datacenter-smalldisk", - "2012-R2-Datacenter", - "2012-R2-Datacenter-smalldisk", - "2016-Datacenter", - "2016-Datacenter-Server-Core", - "2016-Datacenter-Server-Core-smalldisk", - "2016-Datacenter-smalldisk", - "2016-Datacenter-with-Containers", - "2016-Datacenter-with-RDSH", - "2019-Datacenter", - "2019-Datacenter-Core", - "2019-Datacenter-Core-smalldisk", - "2019-Datacenter-Core-with-Containers", - "2019-Datacenter-Core-with-Containers-smalldisk", - "2019-Datacenter-smalldisk", - "2019-Datacenter-with-Containers", - "2019-Datacenter-with-Containers-smalldisk", - "2019-Datacenter-zhcn" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServerSemiAnnual" - }, - { - "field": "Microsoft.Compute/imageSKU", - "in": [ - "Datacenter-Core-1709-smalldisk", - "Datacenter-Core-1709-with-Containers-smalldisk", - "Datacenter-Core-1803-with-Containers-smalldisk" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServerHPCPack" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServerHPCPack" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2016" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2016-BYOL" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2012R2" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2012R2-BYOL" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftRServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "MLServer-WS2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftVisualStudio" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "VisualStudio", - "Windows" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftDynamicsAX" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Dynamics" - }, - { - "field": "Microsoft.Compute/imageSKU", - "equals": "Pre-Req-AX7-Onebox-U8" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "windows-data-science-vm" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsDesktop" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Windows-10" - } - ] - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Compute/virtualMachines/extensions", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.Compute/virtualMachines/extensions/type", - "equals": "DependencyAgentWindows" - }, - { - "field": "Microsoft.Compute/virtualMachines/extensions/publisher", - "equals": "Microsoft.Azure.Monitoring.DependencyAgent" - }, - { - "field": "Microsoft.Compute/virtualMachines/extensions/provisioningState", - "equals": "Succeeded" - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Preview]: Configure supported Linux Arc machines to automatically install the Azure Security agent", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Configure supported Linux Arc machines to automatically install the Azure Security agent. Security Center collects events from the agent and uses them to provide security alerts and tailored hardening tasks (recommendations). Target Linux Arc machines must be in a supported location.", - "metadata": { - "category": "Security Center", - "version": "1.0.0-preview", - "preview": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "linux*" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.HybridCompute/machines/extensions", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.HybridCompute/machines/extensions/type", - "equals": "AzureSecurityLinuxAgent" - }, - { - "field": "Microsoft.HybridCompute/machines/extensions/Publisher", - "equals": "Microsoft.Azure.Security.Monitoring" - }, - { - "field": "Microsoft.HybridCompute/machines/extensions/provisioningState", - "equals": "Succeeded" - } - ] - }, - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "deployment": { - "properties": { - "mode": "incremental", - "parameters": { - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "vmName": { - "value": "[field(\u0027name\u0027)]" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "location": { - "type": "string" - }, - "vmName": { - "type": "string" - } - }, - "variables": {}, - "resources": [ - { - "type": "Microsoft.HybridCompute/machines/extensions", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/\u0027, \u0027AzureSecurityLinuxAgent\u0027)]", - "apiVersion": "2021-06-10-preview", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "publisher": "Microsoft.Azure.Security.Monitoring", - "type": "AzureSecurityLinuxAgent", - "settings": {}, - "protectedSettings": {} - } - } - ] - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1144 - Security Assessments", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Security Assessment and Authorization control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1144" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1090 - Security Awareness Training", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Awareness and Training control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1090" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Web Application should only be accessible over HTTPS", - "policyType": "BuiltIn", - "mode": "All", - "description": "Use of HTTPS ensures server/service authentication and protects data in transit from network layer eavesdropping attacks.", - "metadata": { - "version": "1.0.0-deprecated", - "category": "Security Center", - "deprecated": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "allof": [ - { - "field": "type", - "equals": "microsoft.Web/sites" - }, - { - "anyof": [ - { - "field": "kind", - "equals": "app" - }, - { - "field": "kind", - "equals": "WebApp" - }, - { - "field": "kind", - "equals": "app,linux" - }, - { - "field": "kind", - "equals": "app,linux,container" - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Security/complianceResults", - "name": "OnlyHttpsForWebApplication", - "existenceCondition": { - "field": "Microsoft.Security/complianceResults/resourceStatus", - "in": [ - "OffByPolicy", - "Healthy" - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Show audit results from Windows VMs configurations in \u0027Security Options - Network Access\u0027", - "policyType": "BuiltIn", - "mode": "All", - "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: \u0027Security Options - Network Access\u0027. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol", - "metadata": { - "version": "1.0.0-deprecated", - "category": "Guest Configuration", - "deprecated": true - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "dsvm-windows" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - } - ] - }, - "then": { - "effect": "auditIfNotExists", - "details": { - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "AzureBaseline_SecurityOptionsNetworkAccess", - "existenceCondition": { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus", - "equals": "Compliant" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Azure Defender for Storage should be enabled", - "policyType": "BuiltIn", - "mode": "All", - "description": "Azure Defender for Storage provides detections of unusual and potentially harmful attempts to access or exploit storage accounts.", - "metadata": { - "version": "1.0.3", - "category": "Security Center" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Resources/subscriptions" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Security/pricings", - "name": "StorageAccounts", - "existenceScope": "subscription", - "existenceCondition": { - "field": "Microsoft.Security/pricings/pricingTier", - "equals": "Standard" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Configure Azure Cache for Redis to disable public network access", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Disable public network access for your Azure Cache for Redis resource so that it\u0027s not accessible over the public internet. This helps protect the cache against data leakage risks.", - "metadata": { - "category": "Cache", - "version": "1.0.0" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Modify", - "Disabled" - ], - "defaultValue": "Modify" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Cache/Redis" - }, - { - "field": "Microsoft.Cache/Redis/publicNetworkAccess", - "notEquals": "Disabled" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "conflictEffect": "audit", - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "operations": [ - { - "condition": "[greaterOrEquals(requestContext().apiVersion, \u00272020-06-01\u0027)]", - "operation": "addOrReplace", - "field": "Microsoft.Cache/Redis/publicNetworkAccess", - "value": "Disabled" - } - ] - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Configure Azure Automation account to disable local authentication", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Disable local authentication methods so that your Azure Automation accounts exclusively require Azure Active Directory identities for authentication.", - "metadata": { - "version": "1.0.0", - "category": "Automation" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Modify", - "Disabled" - ], - "defaultValue": "Modify" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Automation/automationAccounts" - }, - { - "field": "Microsoft.Automation/automationAccounts/disableLocalAuth", - "notEquals": true - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "conflictEffect": "audit", - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "operations": [ - { - "condition": "[greaterOrEquals(requestContext().apiVersion, \u00272021-06-22\u0027)]", - "operation": "addOrReplace", - "field": "Microsoft.Automation/automationAccounts/disableLocalAuth", - "value": true - } - ] - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Preview]: Configure Association to link Arc machines to default Azure Security Center Data Collection Rule", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Configure Arc machines to automatically create an association with the default data collection rule for Azure Security Center. Deleting this association will break the detection of security vulnerabilities for this Arc machine. Target Arc machines must be in a supported location.", - "metadata": { - "category": "Security Center", - "version": "1.0.0-preview", - "preview": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "location", - "in": [ - "australiacentral", - "australiaeast", - "australiasoutheast", - "brazilsouth", - "canadacentral", - "canadaeast", - "centralindia", - "centralus", - "eastasia", - "eastus2euap", - "eastus", - "eastus2", - "francecentral", - "germanywestcentral", - "japaneast", - "japanwest", - "jioindiawest", - "koreacentral", - "koreasouth", - "northcentralus", - "northeurope", - "norwayeast", - "southafricanorth", - "southcentralus", - "southeastasia", - "southindia", - "switzerlandnorth", - "uaenorth", - "uksouth", - "ukwest", - "westcentralus", - "westeurope", - "westindia", - "westus", - "westus2" - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Insights/dataCollectionRuleAssociations", - "name": "Security-RulesAssociation", - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "deployment": { - "properties": { - "mode": "incremental", - "parameters": { - "resourceGroup": { - "value": "[resourceGroup().name]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "vmName": { - "value": "[field(\u0027name\u0027)]" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "resourceGroup": { - "type": "string" - }, - "location": { - "type": "string" - }, - "vmName": { - "type": "string" - } - }, - "variables": { - "locationLongNameToShortMap": { - "australiacentral": "CAU", - "australiaeast": "EAU", - "australiasoutheast": "SEAU", - "brazilsouth": "CQ", - "canadacentral": "CCA", - "canadaeast": "CCA", - "centralindia": "CIN", - "centralus": "CUS", - "eastasia": "EA", - "eastus2euap": "eus2p", - "eastus": "EUS", - "eastus2": "EUS2", - "francecentral": "PAR", - "germanywestcentral": "DEWC", - "japaneast": "EJP", - "japanwest": "EJP", - "jioindiawest": "CIN", - "koreacentral": "SE", - "koreasouth": "SE", - "northcentralus": "NCUS", - "northeurope": "NEU", - "norwayeast": "NOE", - "southafricanorth": "JNB", - "southcentralus": "SCUS", - "southeastasia": "SEA", - "southindia": "CIN", - "swedencentral": "SEC", - "switzerlandnorth": "CHN", - "switzerlandwest": "CHW", - "uaenorth": "DXB", - "uksouth": "SUK", - "ukwest": "WUK", - "westcentralus": "WCUS", - "westeurope": "WEU", - "westindia": "CIN", - "westus": "WUS", - "westus2": "WUS2" - }, - "locationCode": "[variables(\u0027locationLongNameToShortMap\u0027)[parameters(\u0027location\u0027)]]", - "subscriptionId": "[subscription().subscriptionId]", - "defaultRGName": "[concat(\u0027DefaultResourceGroup-\u0027, variables(\u0027locationCode\u0027))]", - "dcrName": "[concat(\u0027Microsoft-Security-\u0027, parameters(\u0027location\u0027), \u0027-dcr\u0027)]", - "dcrId": "[concat(\u0027/subscriptions/\u0027, variables(\u0027subscriptionId\u0027), \u0027/resourceGroups/\u0027, variables(\u0027defaultRGName\u0027), \u0027/providers/Microsoft.Insights/dataCollectionRules/\u0027, variables(\u0027dcrName\u0027))]", - "dcraName": "[concat(parameters(\u0027vmName\u0027),\u0027/Microsoft.Insights/Security-RulesAssociation\u0027)]" - }, - "resources": [ - { - "type": "Microsoft.HybridCompute/machines/providers/dataCollectionRuleAssociations", - "name": "[variables(\u0027dcraName\u0027)]", - "apiVersion": "2019-11-01-preview", - "properties": { - "description": "Association of data collection rule for Azure Security Center. Deleting this association will break the detection of security vulnerabilities for this virtual machine.", - "dataCollectionRuleId": "[variables(\u0027dcrId\u0027)]" - } - } - ] - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Audit Windows machines missing any of specified members in the Administrators group", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if the local Administrators group does not contain one or more members that are listed in the policy parameter.", - "metadata": { - "category": "Guest Configuration", - "version": "2.0.0", - "requiredProviders": [ - "Microsoft.GuestConfiguration" - ], - "guestConfiguration": { - "name": "AdministratorsGroupMembersToInclude", - "version": "1.*", - "configurationParameter": { - "MembersToInclude": "[LocalGroup]AdministratorsGroup;MembersToInclude" - } - } - }, - "parameters": { - "IncludeArcMachines": { - "type": "String", - "metadata": { - "displayName": "Include Arc connected servers", - "description": "By selecting this option, you agree to be charged monthly per Arc connected machine.", - "portalReview": "true" - }, - "allowedValues": [ - "true", - "false" - ], - "defaultValue": "false" - }, - "MembersToInclude": { - "type": "String", - "metadata": { - "displayName": "Members to include", - "description": "A semicolon-separated list of members that should be included in the Administrators local group. Ex: Administrator; myUser1; myUser2" - } - } - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "dsvm-win*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "value": "[parameters(\u0027IncludeArcMachines\u0027)]", - "equals": "true" - }, - { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.ConnectedVMwarevSphere/virtualMachines" - }, - { - "field": "Microsoft.ConnectedVMwarevSphere/virtualMachines/osProfile.osType", - "like": "windows*" - } - ] - } - ] - } - ] - } - ] - }, - "then": { - "effect": "auditIfNotExists", - "details": { - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "AdministratorsGroupMembersToInclude", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus", - "equals": "Compliant" - }, - { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash", - "equals": "[base64(concat(\u0027[LocalGroup]AdministratorsGroup;MembersToInclude\u0027, \u0027=\u0027, parameters(\u0027MembersToInclude\u0027)))]" - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Deploy prerequisites to audit Windows VMs that are not joined to the specified domain", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines that are not joined to the specified domain. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol", - "metadata": { - "version": "1.2.0-deprecated", - "category": "Guest Configuration", - "requiredProviders": [ - "Microsoft.GuestConfiguration" - ], - "deprecated": true - }, - "parameters": { - "DomainName": { - "type": "String", - "metadata": { - "displayName": "Domain Name (FQDN)", - "description": "The fully qualified domain name (FQDN) that the Windows VMs should be joined to" - } - } - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "dsvm-windows" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - } - ] - }, - "then": { - "effect": "deployIfNotExists", - "details": { - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "WindowsDomainMembership", - "existenceCondition": { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash", - "equals": "[base64(concat(\u0027[DomainMembership]WindowsDomainMembership;DomainName\u0027, \u0027=\u0027, parameters(\u0027DomainName\u0027)))]" - }, - "deployment": { - "properties": { - "mode": "incremental", - "parameters": { - "vmName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "type": { - "value": "[field(\u0027type\u0027)]" - }, - "configurationName": { - "value": "WindowsDomainMembership" - }, - "DomainName": { - "value": "[parameters(\u0027DomainName\u0027)]" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "vmName": { - "type": "string" - }, - "location": { - "type": "string" - }, - "type": { - "type": "string" - }, - "configurationName": { - "type": "string" - }, - "DomainName": { - "type": "string" - } - }, - "resources": [ - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027microsoft.hybridcompute/machines\u0027))]", - "apiVersion": "2018-11-20", - "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/Microsoft.GuestConfiguration/\u0027, parameters(\u0027configurationName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "guestConfiguration": { - "name": "[parameters(\u0027configurationName\u0027)]", - "version": "1.*", - "configurationParameter": [ - { - "name": "[DomainMembership]WindowsDomainMembership;DomainName", - "value": "[parameters(\u0027DomainName\u0027)]" - } - ] - } - } - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2018-11-20", - "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/Microsoft.GuestConfiguration/\u0027, parameters(\u0027configurationName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "guestConfiguration": { - "name": "[parameters(\u0027configurationName\u0027)]", - "version": "1.*", - "configurationParameter": [ - { - "name": "[DomainMembership]WindowsDomainMembership;DomainName", - "value": "[parameters(\u0027DomainName\u0027)]" - } - ] - } - } - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2019-07-01", - "type": "Microsoft.Compute/virtualMachines", - "identity": { - "type": "SystemAssigned" - }, - "name": "[parameters(\u0027vmName\u0027)]", - "location": "[parameters(\u0027location\u0027)]" - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2019-07-01", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/AzurePolicyforWindows\u0027)]", - "type": "Microsoft.Compute/virtualMachines/extensions", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "publisher": "Microsoft.GuestConfiguration", - "type": "ConfigurationforWindows", - "typeHandlerVersion": "1.1", - "autoUpgradeMinorVersion": true, - "settings": {}, - "protectedSettings": {} - }, - "dependsOn": [ - "[concat(\u0027Microsoft.Compute/virtualMachines/\u0027,parameters(\u0027vmName\u0027),\u0027/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/\u0027,parameters(\u0027configurationName\u0027))]" - ] - } - ] - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1042 - Least Privilege | Auditing Use Of Privileged Functions", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Access Control control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1042" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1698 - Information System Monitoring | Individuals Posing Greater Risk", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Information Integrity control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1698" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Preview]: Log Analytics Extension should be enabled for listed virtual machine images", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Reports virtual machines as non-compliant if the virtual machine image is not in the list defined and the extension is not installed.", - "metadata": { - "version": "2.0.1-preview", - "category": "Monitoring", - "preview": true - }, - "parameters": { - "listOfImageIdToInclude_windows": { - "type": "Array", - "metadata": { - "displayName": "Optional: List of virtual machine images that have supported Windows OS to add to scope", - "description": "Example value: \u0027/subscriptions/\u003CsubscriptionId\u003E/resourceGroups/YourResourceGroup/providers/Microsoft.Compute/images/ContosoStdImage\u0027" - }, - "defaultValue": [] - }, - "listOfImageIdToInclude_linux": { - "type": "Array", - "metadata": { - "displayName": "Optional: List of virtual machine images that have supported Linux OS to add to scope", - "description": "Example value: \u0027/subscriptions/\u003CsubscriptionId\u003E/resourceGroups/YourResourceGroup/providers/Microsoft.Compute/images/ContosoStdImage\u0027" - }, - "defaultValue": [] - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "not": { - "anyOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageId", - "in": "[parameters(\u0027listOfImageIdToInclude_windows\u0027)]" - }, - { - "field": "Microsoft.Compute/imageId", - "in": "[parameters(\u0027listOfImageIdToInclude_linux\u0027)]" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "in": [ - "2008-R2-SP1", - "2008-R2-SP1-smalldisk", - "2012-Datacenter", - "2012-Datacenter-smalldisk", - "2012-R2-Datacenter", - "2012-R2-Datacenter-smalldisk", - "2016-Datacenter", - "2016-Datacenter-Server-Core", - "2016-Datacenter-Server-Core-smalldisk", - "2016-Datacenter-smalldisk", - "2016-Datacenter-with-Containers", - "2016-Datacenter-with-RDSH", - "2019-Datacenter", - "2019-Datacenter-Core", - "2019-Datacenter-Core-smalldisk", - "2019-Datacenter-Core-with-Containers", - "2019-Datacenter-Core-with-Containers-smalldisk", - "2019-Datacenter-smalldisk", - "2019-Datacenter-with-Containers", - "2019-Datacenter-with-Containers-smalldisk", - "2019-Datacenter-zhcn" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServerSemiAnnual" - }, - { - "field": "Microsoft.Compute/imageSKU", - "in": [ - "Datacenter-Core-1709-smalldisk", - "Datacenter-Core-1709-with-Containers-smalldisk", - "Datacenter-Core-1803-with-Containers-smalldisk" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServerHPCPack" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServerHPCPack" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2016" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2016-BYOL" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2012R2" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2012R2-BYOL" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftRServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "MLServer-WS2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftVisualStudio" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "VisualStudio", - "Windows" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftDynamicsAX" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Dynamics" - }, - { - "field": "Microsoft.Compute/imageSKU", - "equals": "Pre-Req-AX7-Onebox-U8" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftDynamicsAX" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Dynamics" - }, - { - "field": "Microsoft.Compute/imageSKU", - "equals": "Pre-Req-AX7-Onebox-V4" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "windows-data-science-vm" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsDesktop" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Windows-10" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "RedHat" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "RHEL", - "RHEL-SAP-HANA" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "like": "6.*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "7*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "SUSE" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "SLES", - "SLES-HPC", - "SLES-HPC-Priority", - "SLES-SAP", - "SLES-SAP-BYOS", - "SLES-Priority", - "SLES-BYOS", - "SLES-SAPCAL", - "SLES-Standard" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "like": "12*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Canonical" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "UbuntuServer" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "like": "14.04*LTS" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "16.04*LTS" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "18.04*LTS" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Oracle" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Oracle-Linux" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "like": "6.*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "7.*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "OpenLogic" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "CentOS", - "Centos-LVM", - "CentOS-SRIOV" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "like": "6.*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "7*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloudera" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "cloudera-centos-os" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "7*" - } - ] - } - ] - } - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Compute/virtualMachines/extensions", - "existenceCondition": { - "field": "Microsoft.Compute/virtualMachines/extensions/publisher", - "equals": "Microsoft.EnterpriseCloud.Monitoring" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "API apps should use an Azure file share for its content directory", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "The content directory of an API app should be located on an Azure file share. The storage account information for the file share must be provided before any publishing activity. To learn more about using Azure Files for hosting app service content refer to https://go.microsoft.com/fwlink/?linkid=2151594.", - "metadata": { - "version": "1.0.0", - "category": "App Service" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Web/sites" - }, - { - "field": "kind", - "like": "*api" - }, - { - "field": "Microsoft.Web/sites/storageAccountRequired", - "equals": "true" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1587 - External Information System Services", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Services Acquisition control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1587" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1333 - Authenticator Management | Pki-Based Authentication", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Identification and Authentication control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1333" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Linux virtual machine scale sets should have Azure Monitor Agent installed", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Linux virtual machine scale sets should be monitored and secured through the deployed Azure Monitor Agent. The Azure Monitor Agent collects telemetry data from the guest OS. This policy will audit virtual machine scale sets with supported OS images in supported regions. Learn more: https://aka.ms/AMAOverview.", - "metadata": { - "version": "1.0.0", - "category": "Monitoring" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy." - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - }, - "listOfLinuxImageIdToInclude": { - "type": "Array", - "metadata": { - "displayName": "Additional Virtual Machine Images", - "description": "List of virtual machine images that have supported Linux OS to add to scope. Example values: \u0027/subscriptions/\u003CsubscriptionId\u003E/resourceGroups/YourResourceGroup/providers/Microsoft.Compute/images/ContosoStdImage\u0027" - }, - "defaultValue": [] - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachineScaleSets" - }, - { - "field": "location", - "in": [ - "australiacentral", - "australiaeast", - "australiasoutheast", - "brazilsouth", - "canadacentral", - "canadaeast", - "centralindia", - "centralus", - "eastasia", - "eastus2euap", - "eastus", - "eastus2", - "francecentral", - "germanywestcentral", - "japaneast", - "japanwest", - "jioindiawest", - "koreacentral", - "koreasouth", - "northcentralus", - "northeurope", - "norwayeast", - "southafricanorth", - "southcentralus", - "southeastasia", - "southindia", - "switzerlandnorth", - "uaenorth", - "uksouth", - "ukwest", - "westcentralus", - "westeurope", - "westindia", - "westus", - "westus2" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageId", - "in": "[parameters(\u0027listOfLinuxImageIdToInclude\u0027)]" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "RedHat" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "RHEL", - "RHEL-SAP-HANA" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSku", - "like": "6*" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "7*" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "8*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "SUSE" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "SLES", - "SLES-HPC", - "SLES-HPC-Priority", - "SLES-SAP", - "SLES-SAP-BYOS", - "SLES-Priority", - "SLES-BYOS", - "SLES-SAPCAL", - "SLES-Standard" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSku", - "like": "12*" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "15*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Canonical" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "UbuntuServer" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSku", - "like": "14.04*LTS" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "16.04*LTS" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "18.04*LTS" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Canonical" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "0001-com-ubuntu-server-focal" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSku", - "like": "20_04-lts*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Oracle" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Oracle-Linux" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSku", - "like": "6*" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "7*" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "8*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "OpenLogic" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "CentOS", - "Centos-LVM", - "CentOS-SRIOV" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSku", - "like": "6*" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "7*" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "8*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloudera" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "cloudera-centos-os" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "7*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "credativ" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "debian" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSku", - "like": "8" - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "9" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Debian" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "debian-10" - ] - }, - { - "field": "Microsoft.Compute/imageSku", - "like": "10" - } - ] - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Compute/virtualMachineScaleSets/extensions", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.Compute/virtualMachineScaleSets/extensions/type", - "equals": "AzureMonitorLinuxAgent" - }, - { - "field": "Microsoft.Compute/virtualMachineScaleSets/extensions/publisher", - "equals": "Microsoft.Azure.Monitor" - }, - { - "field": "Microsoft.Compute/virtualMachineScaleSets/extensions/provisioningState", - "equals": "Succeeded" - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Deploy prerequisites to audit Windows VMs on which the specified services are not installed and \u0027Running\u0027", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines on which the specified services are not installed and \u0027Running\u0027. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol", - "metadata": { - "version": "1.2.0-deprecated", - "category": "Guest Configuration", - "requiredProviders": [ - "Microsoft.GuestConfiguration" - ], - "deprecated": true - }, - "parameters": { - "ServiceName": { - "type": "String", - "metadata": { - "displayName": "Service names (supports wildcards)", - "description": "A semicolon-separated list of the names of the services that should be installed and \u0027Running\u0027. e.g. \u0027WinRm;Wi*\u0027" - } - } - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "dsvm-windows" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - } - ] - }, - "then": { - "effect": "deployIfNotExists", - "details": { - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "WindowsServiceStatus", - "existenceCondition": { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash", - "equals": "[base64(concat(\u0027[WindowsServiceStatus]WindowsServiceStatus1;ServiceName\u0027, \u0027=\u0027, parameters(\u0027ServiceName\u0027)))]" - }, - "deployment": { - "properties": { - "mode": "incremental", - "parameters": { - "vmName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "type": { - "value": "[field(\u0027type\u0027)]" - }, - "configurationName": { - "value": "WindowsServiceStatus" - }, - "ServiceName": { - "value": "[parameters(\u0027ServiceName\u0027)]" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "vmName": { - "type": "string" - }, - "location": { - "type": "string" - }, - "type": { - "type": "string" - }, - "configurationName": { - "type": "string" - }, - "ServiceName": { - "type": "string" - } - }, - "resources": [ - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027microsoft.hybridcompute/machines\u0027))]", - "apiVersion": "2018-11-20", - "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/Microsoft.GuestConfiguration/\u0027, parameters(\u0027configurationName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "guestConfiguration": { - "name": "[parameters(\u0027configurationName\u0027)]", - "version": "1.*", - "configurationParameter": [ - { - "name": "[WindowsServiceStatus]WindowsServiceStatus1;ServiceName", - "value": "[parameters(\u0027ServiceName\u0027)]" - } - ] - } - } - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2018-11-20", - "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/Microsoft.GuestConfiguration/\u0027, parameters(\u0027configurationName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "guestConfiguration": { - "name": "[parameters(\u0027configurationName\u0027)]", - "version": "1.*", - "configurationParameter": [ - { - "name": "[WindowsServiceStatus]WindowsServiceStatus1;ServiceName", - "value": "[parameters(\u0027ServiceName\u0027)]" - } - ] - } - } - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2019-07-01", - "type": "Microsoft.Compute/virtualMachines", - "identity": { - "type": "SystemAssigned" - }, - "name": "[parameters(\u0027vmName\u0027)]", - "location": "[parameters(\u0027location\u0027)]" - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2019-07-01", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/AzurePolicyforWindows\u0027)]", - "type": "Microsoft.Compute/virtualMachines/extensions", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "publisher": "Microsoft.GuestConfiguration", - "type": "ConfigurationforWindows", - "typeHandlerVersion": "1.1", - "autoUpgradeMinorVersion": true, - "settings": {}, - "protectedSettings": {} - }, - "dependsOn": [ - "[concat(\u0027Microsoft.Compute/virtualMachines/\u0027,parameters(\u0027vmName\u0027),\u0027/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/\u0027,parameters(\u0027configurationName\u0027))]" - ] - } - ] - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1445 - Physical And Environmental Protection Policy And Procedures", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Physical and Environmental Protection control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1445" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Azure SQL Database should be running TLS version 1.2 or newer", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Setting TLS version to 1.2 or newer improves security by ensuring your Azure SQL Database can only be accessed from clients using TLS 1.2 or newer. Using versions of TLS less than 1.2 is not recommended since they have well documented security vulnerabilities.", - "metadata": { - "version": "1.0.1", - "category": "SQL" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Sql/servers" - }, - { - "anyOf": [ - { - "field": "Microsoft.Sql/servers/minimalTlsVersion", - "exists": false - }, - { - "field": "Microsoft.Sql/servers/minimalTlsVersion", - "notEquals": "1.2" - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Deploy the Linux Guest Configuration extension to enable Guest Configuration assignments on Linux VMs", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "This policy deploys the Linux Guest Configuration extension to Linux virtual machines hosted in Azure that are supported by Guest Configuration. The Linux Guest Configuration extension is a prerequisite for all Linux Guest Configuration assignments and must be deployed to machines before using any Linux Guest Configuration policy definition. For more information on Guest Configuration, visit https://aka.ms/gcpol.", - "metadata": { - "category": "Guest Configuration", - "version": "2.0.0" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "microsoft-aks", - "qubole-inc", - "datastax", - "couchbase", - "scalegrid", - "checkpoint", - "paloaltonetworks", - "debian" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "OpenLogic" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "CentOS*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "6*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Oracle" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Oracle-Linux" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "6*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "RedHat" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "RHEL", - "RHEL-HA", - "RHEL-SAP", - "RHEL-SAP-APPS", - "RHEL-SAP-HA", - "RHEL-SAP-HANA" - ] - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "6*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "RedHat" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "osa", - "rhel-byos" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "cis-centos-7-l1", - "cis-centos-7-v2-1-1-l1", - "cis-centos-8-l1", - "cis-debian-linux-8-l1", - "cis-debian-linux-9-l1", - "cis-nginx-centos-7-v1-1-0-l1", - "cis-oracle-linux-7-v2-0-0-l1", - "cis-oracle-linux-8-l1", - "cis-postgresql-11-centos-linux-7-level-1", - "cis-rhel-7-l2", - "cis-rhel-7-v2-2-0-l1", - "cis-rhel-8-l1", - "cis-suse-linux-12-v2-0-0-l1", - "cis-ubuntu-linux-1604-v1-0-0-l1", - "cis-ubuntu-linux-1804-l1" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "credativ" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Debian" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "7*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Suse" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "SLES*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "11*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Canonical" - }, - { - "field": "Microsoft.Compute/imageOffer", - "contains": "Ubuntu" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "12*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "linux-data-science-vm-ubuntu", - "azureml", - "ubuntu-hpc", - "ubuntu-1804" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloudera" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "cloudera-centos-os" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "6*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloudera" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "cloudera-altus-centos-os" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "linux*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.linuxConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Linux*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "exists": "false" - }, - { - "field": "Microsoft.Compute/imagePublisher", - "notIn": [ - "OpenLogic", - "RedHat", - "credativ", - "Suse", - "Canonical", - "microsoft-dsvm", - "cloudera", - "microsoft-ads", - "center-for-internet-security-inc", - "Oracle", - "AzureDatabricks", - "azureopenshift" - ] - } - ] - } - ] - } - ] - } - ] - }, - "then": { - "effect": "deployIfNotExists", - "details": { - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "type": "Microsoft.Compute/virtualMachines/extensions", - "name": "AzurePolicyforLinux", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.Compute/virtualMachines/extensions/publisher", - "equals": "Microsoft.GuestConfiguration" - }, - { - "field": "Microsoft.Compute/virtualMachines/extensions/type", - "equals": "ConfigurationforLinux" - }, - { - "field": "Microsoft.Compute/virtualMachines/extensions/provisioningState", - "equals": "Succeeded" - } - ] - }, - "deployment": { - "properties": { - "mode": "incremental", - "parameters": { - "vmName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "vmName": { - "type": "string" - }, - "location": { - "type": "string" - } - }, - "resources": [ - { - "apiVersion": "2019-07-01", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/AzurePolicyforLinux\u0027)]", - "type": "Microsoft.Compute/virtualMachines/extensions", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "publisher": "Microsoft.GuestConfiguration", - "type": "ConfigurationforLinux", - "typeHandlerVersion": "1.0", - "autoUpgradeMinorVersion": true, - "enableAutomaticUpgrade": true, - "settings": {}, - "protectedSettings": {} - } - } - ] - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "App Service apps should enable outbound non-RFC 1918 traffic to Azure Virtual Network", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "By default, if one uses regional Azure Virtual Network (VNET) integration, the app only routes RFC1918 traffic into that respective virtual network. Using the API to set \u0027vnetRouteAllEnabled\u0027 to true enables all outbound traffic into the Azure Virtual Network. This setting allows features like network security groups and user defined routes to be used for all outbound traffic from the App Service app.", - "metadata": { - "version": "1.0.0", - "category": "App Service" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Web/sites" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Web/sites/config", - "name": "web", - "existenceCondition": { - "field": "Microsoft.Web/sites/config/vnetRouteAllEnabled", - "equals": "true" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "MySQL server should use a virtual network service endpoint", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Virtual network based firewall rules are used to enable traffic from a specific subnet to Azure Database for MySQL while ensuring the traffic stays within the Azure boundary. This policy provides a way to audit if the Azure Database for MySQL has virtual network service endpoint being used.", - "metadata": { - "version": "1.0.2", - "category": "SQL" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.DBforMySQL/servers" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.DBforMySQL/servers/virtualNetworkRules", - "existenceCondition": { - "field": "Microsoft.DBforMySQL/servers/virtualNetworkRules/virtualNetworkSubnetId", - "exists": "true" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Windows machines should meet requirements for \u0027Security Options - Audit\u0027", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Windows machines should have the specified Group Policy settings in the category \u0027Security Options - Audit\u0027 for forcing audit policy subcategory and shutting down if unable to log security audits. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.", - "metadata": { - "category": "Guest Configuration", - "version": "3.0.0", - "requiredProviders": [ - "Microsoft.GuestConfiguration" - ], - "guestConfiguration": { - "name": "AzureBaseline_SecurityOptionsAudit", - "version": "1.*", - "configurationParameter": { - "AuditShutDownSystemImmediatelyIfUnableToLogSecurityAudits": "Audit: Shut down system immediately if unable to log security audits;ExpectedValue" - } - } - }, - "parameters": { - "IncludeArcMachines": { - "type": "String", - "metadata": { - "displayName": "Include Arc connected servers", - "description": "By selecting this option, you agree to be charged monthly per Arc connected machine.", - "portalReview": "true" - }, - "allowedValues": [ - "true", - "false" - ], - "defaultValue": "false" - }, - "AuditShutDownSystemImmediatelyIfUnableToLogSecurityAudits": { - "type": "String", - "metadata": { - "displayName": "Audit: Shut down system immediately if unable to log security audits", - "description": "Audits if the system will shut down when unable to log Security events." - }, - "defaultValue": "0" - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of this policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "dsvm-win*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "value": "[parameters(\u0027IncludeArcMachines\u0027)]", - "equals": "true" - }, - { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.ConnectedVMwarevSphere/virtualMachines" - }, - { - "field": "Microsoft.ConnectedVMwarevSphere/virtualMachines/osProfile.osType", - "like": "windows*" - } - ] - } - ] - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "AzureBaseline_SecurityOptionsAudit", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus", - "equals": "Compliant" - }, - { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash", - "equals": "[base64(concat(\u0027Audit: Shut down system immediately if unable to log security audits;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027AuditShutDownSystemImmediatelyIfUnableToLogSecurityAudits\u0027)))]" - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1282 - Telecommunications Services | Single Points Of Failure", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Contingency Planning control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1282" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Configure backup on virtual machines with a given tag to an existing recovery services vault in the same location", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Enforce backup for all virtual machines by backing them up to an existing central recovery services vault in the same location and subscription as the virtual machine. Doing this is useful when there is a central team in your organization managing backups for all resources in a subscription. You can optionally include virtual machines containing a specified tag to control the scope of assignment. See https://aka.ms/AzureVMCentralBackupIncludeTag.", - "metadata": { - "version": "6.0.0", - "category": "Backup" - }, - "parameters": { - "vaultLocation": { - "type": "String", - "metadata": { - "displayName": "Location (Specify the location of the VMs that you want to protect)", - "description": "Specify the location of the VMs that you want to protect. VMs should be backed up to a vault in the same location. For example - CanadaCentral", - "strongType": "location" - } - }, - "inclusionTagName": { - "type": "String", - "metadata": { - "displayName": "Inclusion Tag Name", - "description": "Name of the tag to use for including VMs in the scope of this policy. This should be used along with the Inclusion Tag Value parameter. Learn more at https://aka.ms/AppCentricVMBackupPolicy" - }, - "defaultValue": "" - }, - "inclusionTagValue": { - "type": "Array", - "metadata": { - "displayName": "Inclusion Tag Values", - "description": "Value of the tag to use for including VMs in the scope of this policy (in case of multiple values, use a comma-separated list). This should be used along with the Inclusion Tag Name parameter. Learn more at https://aka.ms/AppCentricVMBackupPolicy." - } - }, - "backupPolicyId": { - "type": "String", - "metadata": { - "displayName": "Backup Policy (of type Azure VM from a vault in the location chosen above)", - "description": "Specify the ID of the Azure Backup policy to configure backup of the virtual machines. The selected Azure Backup policy should be of type Azure Virtual Machine. This policy needs to be in a vault that is present in the location chosen above. For example - /subscriptions/\u003CSubscriptionId\u003E/resourceGroups/\u003CresourceGroupName\u003E/providers/Microsoft.RecoveryServices/vaults/\u003CVaultName\u003E/backupPolicies/\u003CBackupPolicyName\u003E", - "strongType": "Microsoft.RecoveryServices/vaults/backupPolicies" - } - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "deployIfNotExists", - "auditIfNotExists", - "disabled" - ], - "defaultValue": "deployIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "field": "id", - "notContains": "/resourceGroups/databricks-rg-" - }, - { - "field": "Microsoft.Compute/imagePublisher", - "notEquals": "azureopenshift" - }, - { - "field": "Microsoft.Compute/imagePublisher", - "notEquals": "AzureDatabricks" - }, - { - "field": "location", - "equals": "[parameters(\u0027vaultLocation\u0027)]" - }, - { - "field": "[concat(\u0027tags[\u0027, parameters(\u0027inclusionTagName\u0027), \u0027]\u0027)]", - "in": "[parameters(\u0027inclusionTagValue\u0027)]" - }, - { - "anyOf": [ - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "in": [ - "2008-R2-SP1", - "2008-R2-SP1-smalldisk", - "2012-Datacenter", - "2012-Datacenter-smalldisk", - "2012-R2-Datacenter", - "2012-R2-Datacenter-smalldisk", - "2016-Datacenter", - "2016-Datacenter-Server-Core", - "2016-Datacenter-Server-Core-smalldisk", - "2016-Datacenter-smalldisk", - "2016-Datacenter-with-Containers", - "2016-Datacenter-with-RDSH", - "2019-Datacenter", - "2019-Datacenter-Core", - "2019-Datacenter-Core-smalldisk", - "2019-Datacenter-Core-with-Containers", - "2019-Datacenter-Core-with-Containers-smalldisk", - "2019-Datacenter-smalldisk", - "2019-Datacenter-with-Containers", - "2019-Datacenter-with-Containers-smalldisk", - "2019-Datacenter-zhcn", - "2019-datacenter-gensecond", - "2022-datacenter-g2", - "2022-datacenter", - "2022-datacenter-azure-edition", - "2022-datacenter-azure-edition-smalldisk", - "2022-datacenter-azure-edition-core", - "2022-datacenter-azure-edition-core-smalldisk", - "2022-datacenter-smalldisk-g2", - "2022-datacenter-smalldisk", - "2022-datacenter-core-g2", - "2022-datacenter-core", - "2022-datacenter-core-smalldisk-g2", - "2022-datacenter-core-smalldisk" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServerSemiAnnual" - }, - { - "field": "Microsoft.Compute/imageSKU", - "in": [ - "Datacenter-Core-1709-smalldisk", - "Datacenter-Core-1709-with-Containers-smalldisk", - "Datacenter-Core-1803-with-Containers-smalldisk" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServerHPCPack" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServerHPCPack" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2019" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2016" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2016-BYOL" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2012R2" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2012R2-BYOL" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftRServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "MLServer-WS2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftVisualStudio" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "VisualStudio", - "Windows" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftDynamicsAX" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Dynamics" - }, - { - "field": "Microsoft.Compute/imageSKU", - "equals": "Pre-Req-AX7-Onebox-U8" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "windows-data-science-vm" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsDesktop" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Windows-10" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "RedHat" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "RHEL", - "RHEL-SAP-HANA" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "like": "6.*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "7*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "SUSE" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "SLES", - "SLES-HPC", - "SLES-HPC-Priority", - "SLES-SAP", - "SLES-SAP-BYOS", - "SLES-Priority", - "SLES-BYOS", - "SLES-SAPCAL", - "SLES-Standard" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "like": "12*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Canonical" - }, - { - "field": "Microsoft.Compute/imageOffer", - "contains": "ubuntu" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "like": "14.04*LTS" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "16.04*LTS" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "18.04*LTS" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "*20_04-lts" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "20_04-lts*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Oracle" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Oracle-Linux" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "like": "6.*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "7.*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "OpenLogic" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "CentOS", - "Centos-LVM", - "CentOS-SRIOV" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "like": "6.*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "7*" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloudera" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "cloudera-centos-os" - }, - { - "field": "Microsoft.Compute/imageSKU", - "like": "7*" - } - ] - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000", - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "type": "Microsoft.RecoveryServices/backupprotecteditems", - "deployment": { - "properties": { - "mode": "incremental", - "template": { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "backupPolicyId": { - "type": "String" - }, - "fabricName": { - "type": "String" - }, - "protectionContainers": { - "type": "String" - }, - "protectedItems": { - "type": "String" - }, - "sourceResourceId": { - "type": "String" - } - }, - "resources": [ - { - "apiVersion": "2017-05-10", - "name": "[concat(\u0027DeployProtection-\u0027,uniqueString(parameters(\u0027protectedItems\u0027)))]", - "type": "Microsoft.Resources/deployments", - "resourceGroup": "[first(skip(split(parameters(\u0027backupPolicyId\u0027), \u0027/\u0027), 4))]", - "subscriptionId": "[first(skip(split(parameters(\u0027backupPolicyId\u0027), \u0027/\u0027), 2))]", - "properties": { - "mode": "Incremental", - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "backupPolicyId": { - "type": "String" - }, - "fabricName": { - "type": "String" - }, - "protectionContainers": { - "type": "String" - }, - "protectedItems": { - "type": "String" - }, - "sourceResourceId": { - "type": "String" - } - }, - "resources": [ - { - "type": "Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems", - "name": "[concat(first(skip(split(parameters(\u0027backupPolicyId\u0027), \u0027/\u0027), 8)), \u0027/\u0027, parameters(\u0027fabricName\u0027), \u0027/\u0027,parameters(\u0027protectionContainers\u0027), \u0027/\u0027, parameters(\u0027protectedItems\u0027))]", - "apiVersion": "2016-06-01", - "properties": { - "protectedItemType": "Microsoft.Compute/virtualMachines", - "policyId": "[parameters(\u0027backupPolicyId\u0027)]", - "sourceResourceId": "[parameters(\u0027sourceResourceId\u0027)]" - } - } - ] - }, - "parameters": { - "backupPolicyId": { - "value": "[parameters(\u0027backupPolicyId\u0027)]" - }, - "fabricName": { - "value": "[parameters(\u0027fabricName\u0027)]" - }, - "protectionContainers": { - "value": "[parameters(\u0027protectionContainers\u0027)]" - }, - "protectedItems": { - "value": "[parameters(\u0027protectedItems\u0027)]" - }, - "sourceResourceId": { - "value": "[parameters(\u0027sourceResourceId\u0027)]" - } - } - } - } - ] - }, - "parameters": { - "backupPolicyId": { - "value": "[parameters(\u0027backupPolicyId\u0027)]" - }, - "fabricName": { - "value": "Azure" - }, - "protectionContainers": { - "value": "[concat(\u0027iaasvmcontainer;iaasvmcontainerv2;\u0027, resourceGroup().name, \u0027;\u0027 ,field(\u0027name\u0027))]" - }, - "protectedItems": { - "value": "[concat(\u0027vm;iaasvmcontainerv2;\u0027, resourceGroup().name, \u0027;\u0027 ,field(\u0027name\u0027))]" - }, - "sourceResourceId": { - "value": "[concat(\u0027/subscriptions/\u0027, subscription().subscriptionId, \u0027/resourceGroups/\u0027, resourceGroup().name, \u0027/providers/Microsoft.Compute/virtualMachines/\u0027,field(\u0027name\u0027))]" - } - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Deploy prerequisites to audit Linux VMs that have accounts without passwords", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "This policy creates a Guest Configuration assignment to audit Linux virtual machines that have accounts without passwords. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol", - "metadata": { - "version": "4.0.0-deprecated", - "category": "Guest Configuration", - "requiredProviders": [ - "Microsoft.GuestConfiguration" - ], - "deprecated": true - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "microsoft-aks", - "qubole-inc", - "datastax", - "couchbase", - "scalegrid", - "checkpoint", - "paloaltonetworks", - "debian" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "OpenLogic" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "CentOS*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "6*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Oracle" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Oracle-Linux" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "6*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "RedHat" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "RHEL", - "RHEL-HA", - "RHEL-SAP", - "RHEL-SAP-APPS", - "RHEL-SAP-HA", - "RHEL-SAP-HANA" - ] - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "6*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "RedHat" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "osa", - "rhel-byos" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "cis-centos-7-l1", - "cis-centos-7-v2-1-1-l1", - "cis-centos-8-l1", - "cis-debian-linux-8-l1", - "cis-debian-linux-9-l1", - "cis-nginx-centos-7-v1-1-0-l1", - "cis-oracle-linux-7-v2-0-0-l1", - "cis-oracle-linux-8-l1", - "cis-postgresql-11-centos-linux-7-level-1", - "cis-rhel-7-l2", - "cis-rhel-7-v2-2-0-l1", - "cis-rhel-8-l1", - "cis-suse-linux-12-v2-0-0-l1", - "cis-ubuntu-linux-1604-v1-0-0-l1", - "cis-ubuntu-linux-1804-l1" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "credativ" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Debian" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "7*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Suse" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "SLES*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "11*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Canonical" - }, - { - "field": "Microsoft.Compute/imageOffer", - "contains": "Ubuntu" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "12*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "linux-data-science-vm-ubuntu", - "azureml", - "ubuntu-hpc", - "ubuntu-1804" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloudera" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "cloudera-centos-os" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "6*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloudera" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "cloudera-altus-centos-os" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "linux*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.linuxConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Linux*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "exists": "false" - }, - { - "field": "Microsoft.Compute/imagePublisher", - "notIn": [ - "OpenLogic", - "RedHat", - "credativ", - "Suse", - "Canonical", - "microsoft-dsvm", - "cloudera", - "microsoft-ads", - "center-for-internet-security-inc", - "Oracle", - "AzureDatabricks", - "azureopenshift" - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "linux*" - } - ] - } - ] - }, - "then": { - "effect": "deployIfNotExists", - "details": { - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "PasswordPolicy_msid232", - "deployment": { - "properties": { - "mode": "incremental", - "parameters": { - "vmName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "type": { - "value": "[field(\u0027type\u0027)]" - }, - "configurationName": { - "value": "PasswordPolicy_msid232" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "vmName": { - "type": "string" - }, - "location": { - "type": "string" - }, - "type": { - "type": "string" - }, - "configurationName": { - "type": "string" - } - }, - "resources": [ - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027microsoft.hybridcompute/machines\u0027))]", - "apiVersion": "2018-11-20", - "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/Microsoft.GuestConfiguration/\u0027, parameters(\u0027configurationName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "guestConfiguration": { - "name": "[parameters(\u0027configurationName\u0027)]", - "version": "1.*" - } - } - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2018-11-20", - "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/Microsoft.GuestConfiguration/\u0027, parameters(\u0027configurationName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "guestConfiguration": { - "name": "[parameters(\u0027configurationName\u0027)]", - "version": "1.*" - } - } - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2019-07-01", - "type": "Microsoft.Compute/virtualMachines", - "identity": { - "type": "SystemAssigned" - }, - "name": "[parameters(\u0027vmName\u0027)]", - "location": "[parameters(\u0027location\u0027)]" - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2019-07-01", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/AzurePolicyforLinux\u0027)]", - "type": "Microsoft.Compute/virtualMachines/extensions", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "publisher": "Microsoft.GuestConfiguration", - "type": "ConfigurationforLinux", - "typeHandlerVersion": "1.0", - "autoUpgradeMinorVersion": true, - "settings": {}, - "protectedSettings": {} - }, - "dependsOn": [ - "[concat(\u0027Microsoft.Compute/virtualMachines/\u0027,parameters(\u0027vmName\u0027),\u0027/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/\u0027,parameters(\u0027configurationName\u0027))]" - ] - } - ] - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1151 - System Interconnections", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Security Assessment and Authorization control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1151" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Azure Synapse workspaces should allow outbound data traffic only to approved targets", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Increase security of your Synapse workspace by allowing outbound data traffic only to approved targets. This helps prevention against data exfiltration by validating the target before sending data.", - "metadata": { - "version": "1.0.0", - "category": "Synapse" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Disabled", - "Deny" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Synapse/workspaces" - }, - { - "field": "Microsoft.Synapse/workspaces/managedVirtualNetworkSettings.preventDataExfiltration", - "notEquals": "true" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1412 - Nonlocal Maintenance", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Maintenance control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1412" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1475 - Emergency Lighting", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Physical and Environmental Protection control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1475" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1060 - Remote Access", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Access Control control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1060" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Storage accounts should restrict network access", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Network access to storage accounts should be restricted. Configure network rules so only applications from allowed networks can access the storage account. To allow connections from specific internet or on-premises clients, access can be granted to traffic from specific Azure virtual networks or to public internet IP address ranges", - "metadata": { - "version": "1.1.1", - "category": "Storage" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "The effect determines what happens when the policy rule is evaluated to match" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Storage/storageAccounts" - }, - { - "field": "Microsoft.Storage/storageAccounts/networkAcls.defaultAction", - "notEquals": "Deny" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1341 - Authenticator Management | Multiple Information System Accounts", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Identification and Authentication control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1341" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Resource logs in Logic Apps should be enabled", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Audit enabling of resource logs. This enables you to recreate activity trails to use for investigation purposes; when a security incident occurs or when your network is compromised", - "metadata": { - "version": "5.0.0", - "category": "Logic Apps" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - }, - "requiredRetentionDays": { - "type": "String", - "metadata": { - "displayName": "Required retention (days)", - "description": "The required resource logs retention in days" - }, - "defaultValue": "365" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Logic/workflows" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Insights/diagnosticSettings", - "existenceCondition": { - "count": { - "field": "Microsoft.Insights/diagnosticSettings/logs[*]", - "where": { - "anyOf": [ - { - "allOf": [ - { - "field": "Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.enabled", - "equals": "true" - }, - { - "anyOf": [ - { - "field": "Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.days", - "equals": "0" - }, - { - "value": "[padLeft(current(\u0027Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.days\u0027), 3, \u00270\u0027)]", - "greaterOrEquals": "[padLeft(parameters(\u0027requiredRetentionDays\u0027), 3, \u00270\u0027)]" - } - ] - }, - { - "field": "Microsoft.Insights/diagnosticSettings/logs.enabled", - "equals": "true" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Insights/diagnosticSettings/logs.enabled", - "equals": "true" - }, - { - "anyOf": [ - { - "field": "Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.enabled", - "notEquals": "true" - }, - { - "field": "Microsoft.Insights/diagnosticSettings/storageAccountId", - "exists": false - } - ] - } - ] - } - ] - } - }, - "greaterOrEquals": 1 - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1210 - Configuration Settings", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Configuration Management control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1210" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Deploy prerequisites to audit Windows VMs that do not have a maximum password age of 70 days", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines that do not have a maximum password age of 70 days. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol", - "metadata": { - "version": "2.2.0-deprecated", - "category": "Guest Configuration", - "requiredProviders": [ - "Microsoft.GuestConfiguration" - ], - "deprecated": true - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "dsvm-windows" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - } - ] - }, - "then": { - "effect": "deployIfNotExists", - "details": { - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "MaximumPasswordAge", - "deployment": { - "properties": { - "mode": "incremental", - "parameters": { - "vmName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "type": { - "value": "[field(\u0027type\u0027)]" - }, - "configurationName": { - "value": "MaximumPasswordAge" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "vmName": { - "type": "string" - }, - "location": { - "type": "string" - }, - "type": { - "type": "string" - }, - "configurationName": { - "type": "string" - } - }, - "resources": [ - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027microsoft.hybridcompute/machines\u0027))]", - "apiVersion": "2018-11-20", - "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/Microsoft.GuestConfiguration/\u0027, parameters(\u0027configurationName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "guestConfiguration": { - "name": "[parameters(\u0027configurationName\u0027)]", - "version": "1.*" - } - } - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2018-11-20", - "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/Microsoft.GuestConfiguration/\u0027, parameters(\u0027configurationName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "guestConfiguration": { - "name": "[parameters(\u0027configurationName\u0027)]", - "version": "1.*" - } - } - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2019-07-01", - "type": "Microsoft.Compute/virtualMachines", - "identity": { - "type": "SystemAssigned" - }, - "name": "[parameters(\u0027vmName\u0027)]", - "location": "[parameters(\u0027location\u0027)]" - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2019-07-01", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/AzurePolicyforWindows\u0027)]", - "type": "Microsoft.Compute/virtualMachines/extensions", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "publisher": "Microsoft.GuestConfiguration", - "type": "ConfigurationforWindows", - "typeHandlerVersion": "1.1", - "autoUpgradeMinorVersion": true, - "settings": {}, - "protectedSettings": {} - }, - "dependsOn": [ - "[concat(\u0027Microsoft.Compute/virtualMachines/\u0027,parameters(\u0027vmName\u0027),\u0027/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/\u0027,parameters(\u0027configurationName\u0027))]" - ] - } - ] - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Windows machines should meet requirements for \u0027System Audit Policies - Object Access\u0027", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Windows machines should have the specified Group Policy settings in the category \u0027System Audit Policies - Object Access\u0027 for auditing file, registry, SAM, storage, filtering, kernel, and other system types. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.", - "metadata": { - "category": "Guest Configuration", - "version": "3.0.0", - "requiredProviders": [ - "Microsoft.GuestConfiguration" - ], - "guestConfiguration": { - "name": "AzureBaseline_SystemAuditPoliciesObjectAccess", - "version": "1.*", - "configurationParameter": { - "AuditDetailedFileShare": "Audit Detailed File Share;ExpectedValue", - "AuditFileShare": "Audit File Share;ExpectedValue", - "AuditFileSystem": "Audit File System;ExpectedValue" - } - } - }, - "parameters": { - "IncludeArcMachines": { - "type": "String", - "metadata": { - "displayName": "Include Arc connected servers", - "description": "By selecting this option, you agree to be charged monthly per Arc connected machine.", - "portalReview": "true" - }, - "allowedValues": [ - "true", - "false" - ], - "defaultValue": "false" - }, - "AuditDetailedFileShare": { - "type": "String", - "metadata": { - "displayName": "Audit Detailed File Share", - "description": "If this policy setting is enabled, access to all shared files and folders on the system is audited. Auditing for Success can lead to very high volumes of events." - }, - "allowedValues": [ - "No Auditing", - "Success", - "Failure", - "Success and Failure" - ], - "defaultValue": "No Auditing" - }, - "AuditFileShare": { - "type": "String", - "metadata": { - "displayName": "Audit File Share", - "description": "Specifies whether to audit events related to file shares: creation, deletion, modification, and access attempts. Also, it shows failed SMB SPN checks. Event volumes can be high on DCs and File Servers." - }, - "allowedValues": [ - "No Auditing", - "Success", - "Failure", - "Success and Failure" - ], - "defaultValue": "No Auditing" - }, - "AuditFileSystem": { - "type": "String", - "metadata": { - "displayName": "Audit File System", - "description": "Specifies whether audit events are generated when users attempt to access file system objects. Audit events are generated only for objects that have configured system access control lists (SACLs)." - }, - "allowedValues": [ - "No Auditing", - "Success", - "Failure", - "Success and Failure" - ], - "defaultValue": "No Auditing" - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of this policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "dsvm-win*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "value": "[parameters(\u0027IncludeArcMachines\u0027)]", - "equals": "true" - }, - { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.ConnectedVMwarevSphere/virtualMachines" - }, - { - "field": "Microsoft.ConnectedVMwarevSphere/virtualMachines/osProfile.osType", - "like": "windows*" - } - ] - } - ] - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "AzureBaseline_SystemAuditPoliciesObjectAccess", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus", - "equals": "Compliant" - }, - { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash", - "equals": "[base64(concat(\u0027Audit Detailed File Share;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027AuditDetailedFileShare\u0027), \u0027,\u0027, \u0027Audit File Share;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027AuditFileShare\u0027), \u0027,\u0027, \u0027Audit File System;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027AuditFileSystem\u0027)))]" - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "CORS should not allow every resource to access your API App", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Cross-Origin Resource Sharing (CORS) should not allow all domains to access your API app. Allow only required domains to interact with your API app.", - "metadata": { - "version": "1.0.0", - "category": "App Service" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Web/sites" - }, - { - "field": "kind", - "like": "*api" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Web/sites/config", - "existenceCondition": { - "field": "Microsoft.Web/sites/config/web.cors.allowedOrigins[*]", - "notEquals": "*" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1659 - Architecture And Provisioning For Name / Address Resolution Service", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Communications Protection control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1659" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Windows machines should meet requirements for \u0027Windows Firewall Properties\u0027", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Windows machines should have the specified Group Policy settings in the category \u0027Windows Firewall Properties\u0027 for firewall state, connections, rule management, and notifications. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.", - "metadata": { - "category": "Guest Configuration", - "version": "3.0.0", - "requiredProviders": [ - "Microsoft.GuestConfiguration" - ], - "guestConfiguration": { - "name": "AzureBaseline_WindowsFirewallProperties", - "version": "1.*", - "configurationParameter": { - "WindowsFirewallDomainUseProfileSettings": "Windows Firewall: Domain: Firewall state;ExpectedValue", - "WindowsFirewallDomainBehaviorForOutboundConnections": "Windows Firewall: Domain: Outbound connections;ExpectedValue", - "WindowsFirewallDomainApplyLocalConnectionSecurityRules": "Windows Firewall: Domain: Settings: Apply local connection security rules;ExpectedValue", - "WindowsFirewallDomainApplyLocalFirewallRules": "Windows Firewall: Domain: Settings: Apply local firewall rules;ExpectedValue", - "WindowsFirewallDomainDisplayNotifications": "Windows Firewall: Domain: Settings: Display a notification;ExpectedValue", - "WindowsFirewallPrivateUseProfileSettings": "Windows Firewall: Private: Firewall state;ExpectedValue", - "WindowsFirewallPrivateBehaviorForOutboundConnections": "Windows Firewall: Private: Outbound connections;ExpectedValue", - "WindowsFirewallPrivateApplyLocalConnectionSecurityRules": "Windows Firewall: Private: Settings: Apply local connection security rules;ExpectedValue", - "WindowsFirewallPrivateApplyLocalFirewallRules": "Windows Firewall: Private: Settings: Apply local firewall rules;ExpectedValue", - "WindowsFirewallPrivateDisplayNotifications": "Windows Firewall: Private: Settings: Display a notification;ExpectedValue", - "WindowsFirewallPublicUseProfileSettings": "Windows Firewall: Public: Firewall state;ExpectedValue", - "WindowsFirewallPublicBehaviorForOutboundConnections": "Windows Firewall: Public: Outbound connections;ExpectedValue", - "WindowsFirewallPublicApplyLocalConnectionSecurityRules": "Windows Firewall: Public: Settings: Apply local connection security rules;ExpectedValue", - "WindowsFirewallPublicApplyLocalFirewallRules": "Windows Firewall: Public: Settings: Apply local firewall rules;ExpectedValue", - "WindowsFirewallPublicDisplayNotifications": "Windows Firewall: Public: Settings: Display a notification;ExpectedValue", - "WindowsFirewallDomainAllowUnicastResponse": "Windows Firewall: Domain: Allow unicast response;ExpectedValue", - "WindowsFirewallPrivateAllowUnicastResponse": "Windows Firewall: Private: Allow unicast response;ExpectedValue", - "WindowsFirewallPublicAllowUnicastResponse": "Windows Firewall: Public: Allow unicast response;ExpectedValue" - } - } - }, - "parameters": { - "IncludeArcMachines": { - "type": "String", - "metadata": { - "displayName": "Include Arc connected servers", - "description": "By selecting this option, you agree to be charged monthly per Arc connected machine.", - "portalReview": "true" - }, - "allowedValues": [ - "true", - "false" - ], - "defaultValue": "false" - }, - "WindowsFirewallDomainUseProfileSettings": { - "type": "String", - "metadata": { - "displayName": "Windows Firewall (Domain): Use profile settings", - "description": "Specifies whether Windows Firewall with Advanced Security uses the settings for the Domain profile to filter network traffic. If you select Off, Windows Firewall with Advanced Security will not use any of the firewall rules or connection security rules for this profile." - }, - "defaultValue": "1" - }, - "WindowsFirewallDomainBehaviorForOutboundConnections": { - "type": "String", - "metadata": { - "displayName": "Windows Firewall (Domain): Behavior for outbound connections", - "description": "Specifies the behavior for outbound connections for the Domain profile that do not match an outbound firewall rule. The default value of 0 means to allow connections, and a value of 1 means to block connections." - }, - "defaultValue": "0" - }, - "WindowsFirewallDomainApplyLocalConnectionSecurityRules": { - "type": "String", - "metadata": { - "displayName": "Windows Firewall (Domain): Apply local connection security rules", - "description": "Specifies whether local administrators are allowed to create connection security rules that apply together with connection security rules configured by Group Policy for the Domain profile." - }, - "defaultValue": "1" - }, - "WindowsFirewallDomainApplyLocalFirewallRules": { - "type": "String", - "metadata": { - "displayName": "Windows Firewall (Domain): Apply local firewall rules", - "description": "Specifies whether local administrators are allowed to create local firewall rules that apply together with firewall rules configured by Group Policy for the Domain profile." - }, - "defaultValue": "1" - }, - "WindowsFirewallDomainDisplayNotifications": { - "type": "String", - "metadata": { - "displayName": "Windows Firewall (Domain): Display notifications", - "description": "Specifies whether Windows Firewall with Advanced Security displays notifications to the user when a program is blocked from receiving inbound connections, for the Domain profile." - }, - "defaultValue": "1" - }, - "WindowsFirewallPrivateUseProfileSettings": { - "type": "String", - "metadata": { - "displayName": "Windows Firewall (Private): Use profile settings", - "description": "Specifies whether Windows Firewall with Advanced Security uses the settings for the Private profile to filter network traffic. If you select Off, Windows Firewall with Advanced Security will not use any of the firewall rules or connection security rules for this profile." - }, - "defaultValue": "1" - }, - "WindowsFirewallPrivateBehaviorForOutboundConnections": { - "type": "String", - "metadata": { - "displayName": "Windows Firewall (Private): Behavior for outbound connections", - "description": "Specifies the behavior for outbound connections for the Private profile that do not match an outbound firewall rule. The default value of 0 means to allow connections, and a value of 1 means to block connections." - }, - "defaultValue": "0" - }, - "WindowsFirewallPrivateApplyLocalConnectionSecurityRules": { - "type": "String", - "metadata": { - "displayName": "Windows Firewall (Private): Apply local connection security rules", - "description": "Specifies whether local administrators are allowed to create connection security rules that apply together with connection security rules configured by Group Policy for the Private profile." - }, - "defaultValue": "1" - }, - "WindowsFirewallPrivateApplyLocalFirewallRules": { - "type": "String", - "metadata": { - "displayName": "Windows Firewall (Private): Apply local firewall rules", - "description": "Specifies whether local administrators are allowed to create local firewall rules that apply together with firewall rules configured by Group Policy for the Private profile." - }, - "defaultValue": "1" - }, - "WindowsFirewallPrivateDisplayNotifications": { - "type": "String", - "metadata": { - "displayName": "Windows Firewall (Private): Display notifications", - "description": "Specifies whether Windows Firewall with Advanced Security displays notifications to the user when a program is blocked from receiving inbound connections, for the Private profile." - }, - "defaultValue": "1" - }, - "WindowsFirewallPublicUseProfileSettings": { - "type": "String", - "metadata": { - "displayName": "Windows Firewall (Public): Use profile settings", - "description": "Specifies whether Windows Firewall with Advanced Security uses the settings for the Public profile to filter network traffic. If you select Off, Windows Firewall with Advanced Security will not use any of the firewall rules or connection security rules for this profile." - }, - "defaultValue": "1" - }, - "WindowsFirewallPublicBehaviorForOutboundConnections": { - "type": "String", - "metadata": { - "displayName": "Windows Firewall (Public): Behavior for outbound connections", - "description": "Specifies the behavior for outbound connections for the Public profile that do not match an outbound firewall rule. The default value of 0 means to allow connections, and a value of 1 means to block connections." - }, - "defaultValue": "0" - }, - "WindowsFirewallPublicApplyLocalConnectionSecurityRules": { - "type": "String", - "metadata": { - "displayName": "Windows Firewall (Public): Apply local connection security rules", - "description": "Specifies whether local administrators are allowed to create connection security rules that apply together with connection security rules configured by Group Policy for the Public profile." - }, - "defaultValue": "1" - }, - "WindowsFirewallPublicApplyLocalFirewallRules": { - "type": "String", - "metadata": { - "displayName": "Windows Firewall (Public): Apply local firewall rules", - "description": "Specifies whether local administrators are allowed to create local firewall rules that apply together with firewall rules configured by Group Policy for the Public profile." - }, - "defaultValue": "1" - }, - "WindowsFirewallPublicDisplayNotifications": { - "type": "String", - "metadata": { - "displayName": "Windows Firewall (Public): Display notifications", - "description": "Specifies whether Windows Firewall with Advanced Security displays notifications to the user when a program is blocked from receiving inbound connections, for the Public profile." - }, - "defaultValue": "1" - }, - "WindowsFirewallDomainAllowUnicastResponse": { - "type": "String", - "metadata": { - "displayName": "Windows Firewall: Domain: Allow unicast response", - "description": "Specifies whether Windows Firewall with Advanced Security permits the local computer to receive unicast responses to its outgoing multicast or broadcast messages; for the Domain profile." - }, - "defaultValue": "0" - }, - "WindowsFirewallPrivateAllowUnicastResponse": { - "type": "String", - "metadata": { - "displayName": "Windows Firewall: Private: Allow unicast response", - "description": "Specifies whether Windows Firewall with Advanced Security permits the local computer to receive unicast responses to its outgoing multicast or broadcast messages; for the Private profile." - }, - "defaultValue": "0" - }, - "WindowsFirewallPublicAllowUnicastResponse": { - "type": "String", - "metadata": { - "displayName": "Windows Firewall: Public: Allow unicast response", - "description": "Specifies whether Windows Firewall with Advanced Security permits the local computer to receive unicast responses to its outgoing multicast or broadcast messages; for the Public profile." - }, - "defaultValue": "1" - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of this policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "dsvm-win*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "value": "[parameters(\u0027IncludeArcMachines\u0027)]", - "equals": "true" - }, - { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.ConnectedVMwarevSphere/virtualMachines" - }, - { - "field": "Microsoft.ConnectedVMwarevSphere/virtualMachines/osProfile.osType", - "like": "windows*" - } - ] - } - ] - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "AzureBaseline_WindowsFirewallProperties", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus", - "equals": "Compliant" - }, - { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash", - "equals": "[base64(concat(\u0027Windows Firewall: Domain: Firewall state;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027WindowsFirewallDomainUseProfileSettings\u0027), \u0027,\u0027, \u0027Windows Firewall: Domain: Outbound connections;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027WindowsFirewallDomainBehaviorForOutboundConnections\u0027), \u0027,\u0027, \u0027Windows Firewall: Domain: Settings: Apply local connection security rules;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027WindowsFirewallDomainApplyLocalConnectionSecurityRules\u0027), \u0027,\u0027, \u0027Windows Firewall: Domain: Settings: Apply local firewall rules;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027WindowsFirewallDomainApplyLocalFirewallRules\u0027), \u0027,\u0027, \u0027Windows Firewall: Domain: Settings: Display a notification;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027WindowsFirewallDomainDisplayNotifications\u0027), \u0027,\u0027, \u0027Windows Firewall: Private: Firewall state;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027WindowsFirewallPrivateUseProfileSettings\u0027), \u0027,\u0027, \u0027Windows Firewall: Private: Outbound connections;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027WindowsFirewallPrivateBehaviorForOutboundConnections\u0027), \u0027,\u0027, \u0027Windows Firewall: Private: Settings: Apply local connection security rules;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027WindowsFirewallPrivateApplyLocalConnectionSecurityRules\u0027), \u0027,\u0027, \u0027Windows Firewall: Private: Settings: Apply local firewall rules;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027WindowsFirewallPrivateApplyLocalFirewallRules\u0027), \u0027,\u0027, \u0027Windows Firewall: Private: Settings: Display a notification;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027WindowsFirewallPrivateDisplayNotifications\u0027), \u0027,\u0027, \u0027Windows Firewall: Public: Firewall state;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027WindowsFirewallPublicUseProfileSettings\u0027), \u0027,\u0027, \u0027Windows Firewall: Public: Outbound connections;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027WindowsFirewallPublicBehaviorForOutboundConnections\u0027), \u0027,\u0027, \u0027Windows Firewall: Public: Settings: Apply local connection security rules;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027WindowsFirewallPublicApplyLocalConnectionSecurityRules\u0027), \u0027,\u0027, \u0027Windows Firewall: Public: Settings: Apply local firewall rules;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027WindowsFirewallPublicApplyLocalFirewallRules\u0027), \u0027,\u0027, \u0027Windows Firewall: Public: Settings: Display a notification;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027WindowsFirewallPublicDisplayNotifications\u0027), \u0027,\u0027, \u0027Windows Firewall: Domain: Allow unicast response;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027WindowsFirewallDomainAllowUnicastResponse\u0027), \u0027,\u0027, \u0027Windows Firewall: Private: Allow unicast response;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027WindowsFirewallPrivateAllowUnicastResponse\u0027), \u0027,\u0027, \u0027Windows Firewall: Public: Allow unicast response;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027WindowsFirewallPublicAllowUnicastResponse\u0027)))]" - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Gateway subnets should not be configured with a network security group", - "policyType": "BuiltIn", - "mode": "All", - "description": "This policy denies if a gateway subnet is configured with a network security group. Assigning a network security group to a gateway subnet will cause the gateway to stop functioning.", - "metadata": { - "version": "1.0.0", - "category": "Network" - }, - "parameters": {}, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Network/virtualNetworks/subnets" - }, - { - "field": "name", - "equals": "GatewaySubnet" - }, - { - "field": "Microsoft.Network/virtualNetworks/subnets/networkSecurityGroup.id", - "exists": "true" - } - ] - }, - "then": { - "effect": "deny" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1043 - Least Privilege | Prohibit Non-Privileged Users From Executing Privileged Functions", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Access Control control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1043" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Deploy Advanced Threat Protection on storage accounts", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "This policy enables Advanced Threat Protection on storage accounts.", - "metadata": { - "version": "1.0.0", - "category": "Storage" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Storage/storageAccounts" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Security/advancedThreatProtectionSettings", - "name": "current", - "existenceCondition": { - "field": "Microsoft.Security/advancedThreatProtectionSettings/isEnabled", - "equals": "true" - }, - "roleDefinitionIds": [ - "/providers/Microsoft.Authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "deployment": { - "properties": { - "mode": "incremental", - "template": { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "storageAccountName": { - "type": "string" - } - }, - "resources": [ - { - "apiVersion": "2019-01-01", - "type": "Microsoft.Storage/storageAccounts/providers/advancedThreatProtectionSettings", - "name": "[concat(parameters(\u0027storageAccountName\u0027), \u0027/Microsoft.Security/current\u0027)]", - "properties": { - "isEnabled": true - } - } - ] - }, - "parameters": { - "storageAccountName": { - "value": "[field(\u0027name\u0027)]" - } - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1313 - Identifier Management", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Identification and Authentication control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1313" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1630 - Boundary Protection | External Telecommunications Services", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Communications Protection control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1630" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Automation account variables should be encrypted", - "policyType": "BuiltIn", - "mode": "All", - "description": "It is important to enable encryption of Automation account variable assets when storing sensitive data", - "metadata": { - "version": "1.1.0", - "category": "Automation" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "The effect determines what happens when the policy rule is evaluated to match" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Automation/automationAccounts/variables" - }, - { - "field": "Microsoft.Automation/automationAccounts/variables/isEncrypted", - "notEquals": "true" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Windows virtual machine scale sets should have Azure Monitor Agent installed", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Windows virtual machine scale sets should be monitored and secured through the deployed Azure Monitor Agent. The Azure Monitor Agent collects telemetry data from the guest OS. Virtual machine scale sets with supported OS and in supported regions are monitored for Azure Monitor Agent deployment. Learn more: https://aka.ms/AMAOverview.", - "metadata": { - "version": "2.0.0", - "category": "Monitoring" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy." - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - }, - "listOfWindowsImageIdToInclude": { - "type": "Array", - "metadata": { - "displayName": "Additional Virtual Machine Images", - "description": "List of virtual machine images that have supported Windows OS to add to scope. Example values: \u0027/subscriptions/\u003CsubscriptionId\u003E/resourceGroups/YourResourceGroup/providers/Microsoft.Compute/images/ContosoStdImage\u0027" - }, - "defaultValue": [] - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachineScaleSets" - }, - { - "field": "location", - "in": [ - "australiacentral", - "australiaeast", - "australiasoutheast", - "brazilsouth", - "canadacentral", - "canadaeast", - "centralindia", - "centralus", - "eastasia", - "eastus2euap", - "eastus", - "eastus2", - "francecentral", - "germanywestcentral", - "japaneast", - "japanwest", - "jioindiawest", - "koreacentral", - "koreasouth", - "northcentralus", - "northeurope", - "norwayeast", - "southafricanorth", - "southcentralus", - "southeastasia", - "southindia", - "switzerlandnorth", - "uaenorth", - "uksouth", - "ukwest", - "westcentralus", - "westeurope", - "westindia", - "westus", - "westus2" - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageId", - "in": "[parameters(\u0027listOfWindowsImageIdToInclude\u0027)]" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "in": [ - "2008-R2-SP1", - "2008-R2-SP1-smalldisk", - "2012-Datacenter", - "2012-Datacenter-smalldisk", - "2012-R2-Datacenter", - "2012-R2-Datacenter-smalldisk", - "2016-Datacenter", - "2016-Datacenter-Server-Core", - "2016-Datacenter-Server-Core-smalldisk", - "2016-Datacenter-smalldisk", - "2016-Datacenter-with-Containers", - "2016-Datacenter-with-RDSH", - "2019-Datacenter", - "2019-Datacenter-Core", - "2019-Datacenter-Core-smalldisk", - "2019-Datacenter-Core-with-Containers", - "2019-Datacenter-Core-with-Containers-smalldisk", - "2019-Datacenter-smalldisk", - "2019-Datacenter-with-Containers", - "2019-Datacenter-with-Containers-smalldisk", - "2019-Datacenter-zhcn", - "2022-datacenter", - "2022-datacenter-azure-edition", - "2022-datacenter-azure-edition-core", - "2022-datacenter-azure-edition-core-smalldisk", - "2022-datacenter-azure-edition-smalldisk", - "2022-datacenter-core", - "2022-datacenter-core-g2", - "2022-datacenter-core-smalldisk", - "2022-datacenter-core-smalldisk-g2", - "2022-datacenter-g2", - "2022-datacenter-smalldisk", - "2022-datacenter-smalldisk-g2" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServerSemiAnnual" - }, - { - "field": "Microsoft.Compute/imageSKU", - "in": [ - "Datacenter-Core-1709-smalldisk", - "Datacenter-Core-1709-with-Containers-smalldisk", - "Datacenter-Core-1803-with-Containers-smalldisk" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServerHPCPack" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServerHPCPack" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2019" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2019-BYOL" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2016" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2016-BYOL" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2012R2" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2012R2-BYOL" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftRServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "MLServer-WS2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftVisualStudio" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "VisualStudio", - "Windows" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftDynamicsAX" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Dynamics" - }, - { - "field": "Microsoft.Compute/imageSKU", - "equals": "Pre-Req-AX7-Onebox-U8" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "windows-data-science-vm" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsDesktop" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Windows-10" - } - ] - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Compute/virtualMachineScaleSets/extensions", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.Compute/virtualMachineScaleSets/extensions/type", - "equals": "AzureMonitorWindowsAgent" - }, - { - "field": "Microsoft.Compute/virtualMachineScaleSets/extensions/publisher", - "equals": "Microsoft.Azure.Monitor" - }, - { - "field": "Microsoft.Compute/virtualMachineScaleSets/extensions/provisioningState", - "equals": "Succeeded" - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1339 - Authenticator Management | Protection Of Authenticators", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Identification and Authentication control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1339" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Configure AAD integrated Azure Kubernetes Service Clusters with required Admin Group Access", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Ensure to improve cluster security by centrally govern Administrator access to Azure Active Directory integrated AKS clusters.", - "metadata": { - "version": "1.0.0", - "category": "Kubernetes" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - }, - "adminGroupObjectIDs": { - "type": "Array", - "metadata": { - "displayName": "AKS Administrator Group Object IDs", - "description": "Array of the existing AKS Administrator Group Object ID to ensure administration access to the cluster. Empty array will remove all admin access." - } - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.ContainerService/managedClusters" - }, - { - "field": "Microsoft.ContainerService/managedClusters/aadProfile", - "exists": true - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.ContainerService/managedClusters", - "name": "[field(\u0027name\u0027)]", - "roleDefinitionIds": [ - "/providers/Microsoft.Authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "existenceCondition": { - "allOf": [ - { - "count": { - "field": "Microsoft.ContainerService/managedClusters/aadProfile.adminGroupObjectIDs[*]", - "where": { - "field": "Microsoft.ContainerService/managedClusters/aadProfile.adminGroupObjectIDs[*]", - "in": "[parameters(\u0027adminGroupObjectIDs\u0027)]" - } - }, - "equals": "[length(parameters(\u0027adminGroupObjectIDs\u0027))]" - }, - { - "count": { - "field": "Microsoft.ContainerService/managedClusters/aadProfile.adminGroupObjectIDs[*]" - }, - "equals": "[length(parameters(\u0027adminGroupObjectIDs\u0027))]" - } - ] - }, - "deployment": { - "properties": { - "mode": "incremental", - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "clusterName": { - "type": "string" - }, - "clusterResourceGroupName": { - "type": "string" - }, - "adminGroupObjectIDs": { - "type": "array" - } - }, - "variables": { - "clusterGetDeploymentName": "[concat(\u0027PolicyDeployment-Get-\u0027, parameters(\u0027clusterName\u0027))]", - "clusterUpdateDeploymentName": "[concat(\u0027PolicyDeployment-Update-\u0027, parameters(\u0027clusterName\u0027))]" - }, - "resources": [ - { - "apiVersion": "2020-06-01", - "type": "Microsoft.Resources/deployments", - "name": "[variables(\u0027clusterGetDeploymentName\u0027)]", - "properties": { - "mode": "Incremental", - "template": { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "resources": [], - "outputs": { - "aksCluster": { - "type": "object", - "value": "[reference(resourceId(parameters(\u0027clusterResourceGroupName\u0027), \u0027Microsoft.ContainerService/managedClusters\u0027, parameters(\u0027clusterName\u0027)), \u00272021-07-01\u0027, \u0027Full\u0027)]" - } - } - } - } - }, - { - "apiVersion": "2020-06-01", - "type": "Microsoft.Resources/deployments", - "name": "[variables(\u0027clusterUpdateDeploymentName\u0027)]", - "properties": { - "mode": "Incremental", - "expressionEvaluationOptions": { - "scope": "inner" - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "aksClusterName": { - "type": "string" - }, - "aksClusterContent": { - "type": "object" - }, - "adminGroupObjectIDs": { - "type": "array" - } - }, - "resources": [ - { - "apiVersion": "2021-07-01", - "type": "Microsoft.ContainerService/managedClusters", - "name": "[parameters(\u0027aksClusterName\u0027)]", - "location": "[parameters(\u0027aksClusterContent\u0027).location]", - "sku": "[parameters(\u0027aksClusterContent\u0027).sku]", - "tags": "[if(contains(parameters(\u0027aksClusterContent\u0027), \u0027tags\u0027), parameters(\u0027aksClusterContent\u0027).tags, json(\u0027null\u0027))]", - "properties": { - "kubernetesVersion": "[parameters(\u0027aksClusterContent\u0027).properties.kubernetesVersion]", - "dnsPrefix": "[parameters(\u0027aksClusterContent\u0027).properties.dnsPrefix]", - "agentPoolProfiles": "[if(contains(parameters(\u0027aksClusterContent\u0027).properties, \u0027agentPoolProfiles\u0027), parameters(\u0027aksClusterContent\u0027).properties.agentPoolProfiles, json(\u0027null\u0027))]", - "linuxProfile": "[if(contains(parameters(\u0027aksClusterContent\u0027).properties, \u0027linuxProfile\u0027), parameters(\u0027aksClusterContent\u0027).properties.linuxProfile, json(\u0027null\u0027))]", - "windowsProfile": "[if(contains(parameters(\u0027aksClusterContent\u0027).properties, \u0027windowsProfile\u0027), parameters(\u0027aksClusterContent\u0027).properties.windowsProfile, json(\u0027null\u0027))]", - "servicePrincipalProfile": "[if(contains(parameters(\u0027aksClusterContent\u0027).properties, \u0027servicePrincipalProfile\u0027), parameters(\u0027aksClusterContent\u0027).properties.servicePrincipalProfile, json(\u0027null\u0027))]", - "addonProfiles": "[if(contains(parameters(\u0027aksClusterContent\u0027).properties, \u0027addonProfiles\u0027), parameters(\u0027aksClusterContent\u0027).properties.addonProfiles, json(\u0027null\u0027))]", - "nodeResourceGroup": "[parameters(\u0027aksClusterContent\u0027).properties.nodeResourceGroup]", - "enableRBAC": "[if(contains(parameters(\u0027aksClusterContent\u0027).properties, \u0027enableRBAC\u0027), parameters(\u0027aksClusterContent\u0027).properties.enableRBAC, json(\u0027null\u0027))]", - "enablePodSecurityPolicy": "[if(contains(parameters(\u0027aksClusterContent\u0027).properties, \u0027enablePodSecurityPolicy\u0027), parameters(\u0027aksClusterContent\u0027).properties.enablePodSecurityPolicy, json(\u0027null\u0027))]", - "networkProfile": "[if(contains(parameters(\u0027aksClusterContent\u0027).properties, \u0027networkProfile\u0027), parameters(\u0027aksClusterContent\u0027).properties.networkProfile, json(\u0027null\u0027))]", - "aadProfile": { - "adminGroupObjectIds": "[parameters(\u0027adminGroupObjectIDs\u0027)]", - "managed": "[if(contains(parameters(\u0027aksClusterContent\u0027).properties.aadProfile, \u0027managed\u0027), parameters(\u0027aksClusterContent\u0027).properties.aadProfile.managed, json(\u0027null\u0027))]", - "enableAzureRBAC": "[if(contains(parameters(\u0027aksClusterContent\u0027).properties.aadProfile, \u0027enableAzureRBAC\u0027), parameters(\u0027aksClusterContent\u0027).properties.aadProfile.enableAzureRBAC, json(\u0027null\u0027))]", - "tenantID": "[if(contains(parameters(\u0027aksClusterContent\u0027).properties.aadProfile, \u0027tenantID\u0027), parameters(\u0027aksClusterContent\u0027).properties.aadProfile.tenantID, json(\u0027null\u0027))]", - "clientAppID": "[if(contains(parameters(\u0027aksClusterContent\u0027).properties.aadProfile, \u0027clientAppID\u0027), parameters(\u0027aksClusterContent\u0027).properties.aadProfile.clientAppID, json(\u0027null\u0027))]", - "serverAppID": "[if(contains(parameters(\u0027aksClusterContent\u0027).properties.aadProfile, \u0027serverAppID\u0027), parameters(\u0027aksClusterContent\u0027).properties.aadProfile.serverAppID, json(\u0027null\u0027))]", - "serverAppSecret": "[if(contains(parameters(\u0027aksClusterContent\u0027).properties.aadProfile, \u0027serverAppSecret\u0027), parameters(\u0027aksClusterContent\u0027).properties.aadProfile.serverAppSecret, json(\u0027null\u0027))]" - }, - "autoScalerProfile": "[if(contains(parameters(\u0027aksClusterContent\u0027).properties, \u0027autoScalerProfile\u0027), parameters(\u0027aksClusterContent\u0027).properties.autoScalerProfile, json(\u0027null\u0027))]", - "autoUpgradeProfile": "[if(contains(parameters(\u0027aksClusterContent\u0027).properties, \u0027autoUpgradeProfile\u0027), parameters(\u0027aksClusterContent\u0027).properties.autoUpgradeProfile, json(\u0027null\u0027))]", - "apiServerAccessProfile": "[if(contains(parameters(\u0027aksClusterContent\u0027).properties, \u0027apiServerAccessProfile\u0027), parameters(\u0027aksClusterContent\u0027).properties.apiServerAccessProfile, json(\u0027null\u0027))]", - "diskEncryptionSetID": "[if(contains(parameters(\u0027aksClusterContent\u0027).properties, \u0027diskEncryptionSetID\u0027), parameters(\u0027aksClusterContent\u0027).properties.diskEncryptionSetID, json(\u0027null\u0027))]", - "disableLocalAccounts": "[if(contains(parameters(\u0027aksClusterContent\u0027).properties, \u0027disableLocalAccounts\u0027), parameters(\u0027aksClusterContent\u0027).properties.disableLocalAccounts, json(\u0027null\u0027))]", - "fqdnSubdomain": "[if(contains(parameters(\u0027aksClusterContent\u0027).properties, \u0027fqdnSubdomain\u0027), parameters(\u0027aksClusterContent\u0027).properties.fqdnSubdomain, json(\u0027null\u0027))]", - "httpProxyConfig": "[if(contains(parameters(\u0027aksClusterContent\u0027).properties, \u0027httpProxyConfig\u0027), parameters(\u0027aksClusterContent\u0027).properties.httpProxyConfig, json(\u0027null\u0027))]", - "podIdentityProfile": "[if(contains(parameters(\u0027aksClusterContent\u0027).properties, \u0027podIdentityProfile\u0027), parameters(\u0027aksClusterContent\u0027).properties.podIdentityProfile, json(\u0027null\u0027))]", - "privateLinkResources": "[if(contains(parameters(\u0027aksClusterContent\u0027).properties, \u0027privateLinkResources\u0027), parameters(\u0027aksClusterContent\u0027).properties.privateLinkResources, json(\u0027null\u0027))]", - "securityProfile": "[if(contains(parameters(\u0027aksClusterContent\u0027).properties, \u0027securityProfile\u0027), parameters(\u0027aksClusterContent\u0027).properties.securityProfile, json(\u0027null\u0027))]", - "identityProfile": "[if(contains(parameters(\u0027aksClusterContent\u0027).properties, \u0027identityProfile\u0027), parameters(\u0027aksClusterContent\u0027).properties.identityProfile, json(\u0027null\u0027))]" - } - } - ], - "outputs": {} - }, - "parameters": { - "aksClusterName": { - "value": "[parameters(\u0027clusterName\u0027)]" - }, - "aksClusterContent": { - "value": "[reference(variables(\u0027clusterGetDeploymentName\u0027)).outputs.aksCluster.value]" - }, - "adminGroupObjectIDs": { - "value": "[parameters(\u0027adminGroupObjectIDs\u0027)]" - } - } - } - } - ] - }, - "parameters": { - "clusterName": { - "value": "[field(\u0027name\u0027)]" - }, - "clusterResourceGroupName": { - "value": "[resourceGroup().name]" - }, - "adminGroupObjectIDs": { - "value": "[parameters(\u0027adminGroupObjectIDs\u0027)]" - } - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1685 - Information System Monitoring", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Information Integrity control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1685" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Configure Azure Defender to be enabled on SQL servers", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Enable Azure Defender on your Azure SQL Servers to detect anomalous activities indicating unusual and potentially harmful attempts to access or exploit databases.", - "metadata": { - "version": "2.1.0", - "category": "SQL" - }, - "parameters": {}, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Sql/servers" - }, - { - "field": "kind", - "notContains": "analytics" - } - ] - }, - "then": { - "effect": "DeployIfNotExists", - "details": { - "type": "Microsoft.Sql/servers/securityAlertPolicies", - "name": "Default", - "existenceCondition": { - "field": "Microsoft.Sql/securityAlertPolicies.state", - "equals": "Enabled" - }, - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "deployment": { - "properties": { - "mode": "incremental", - "template": { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "serverName": { - "type": "string" - } - }, - "variables": {}, - "resources": [ - { - "name": "[concat(parameters(\u0027serverName\u0027), \u0027/Default\u0027)]", - "type": "Microsoft.Sql/servers/securityAlertPolicies", - "apiVersion": "2020-11-01-preview", - "properties": { - "state": "Enabled" - } - } - ] - }, - "parameters": { - "serverName": { - "value": "[field(\u0027name\u0027)]" - } - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Deploy prerequisites to audit Windows VMs configurations in \u0027Security Options - Network Security\u0027", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: \u0027Security Options - Network Security\u0027. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol", - "metadata": { - "version": "1.2.0-deprecated", - "category": "Guest Configuration", - "requiredProviders": [ - "Microsoft.GuestConfiguration" - ], - "deprecated": true - }, - "parameters": { - "NetworkSecurityConfigureEncryptionTypesAllowedForKerberos": { - "type": "String", - "metadata": { - "displayName": "Network Security: Configure encryption types allowed for Kerberos", - "description": "Specifies the encryption types that Kerberos is allowed to use." - }, - "defaultValue": "2147483644" - }, - "NetworkSecurityLANManagerAuthenticationLevel": { - "type": "String", - "metadata": { - "displayName": "Network security: LAN Manager authentication level", - "description": "Specify which challenge-response authentication protocol is used for network logons. This choice affects the level of authentication protocol used by clients, the level of session security negotiated, and the level of authentication accepted by servers." - }, - "defaultValue": "5" - }, - "NetworkSecurityLDAPClientSigningRequirements": { - "type": "String", - "metadata": { - "displayName": "Network security: LDAP client signing requirements", - "description": "Specify the level of data signing that is requested on behalf of clients that issue LDAP BIND requests." - }, - "defaultValue": "1" - }, - "NetworkSecurityMinimumSessionSecurityForNTLMSSPBasedIncludingSecureRPCClients": { - "type": "String", - "metadata": { - "displayName": "Network security: Minimum session security for NTLM SSP based (including secure RPC) clients", - "description": "Specifies which behaviors are allowed by clients for applications using the NTLM Security Support Provider (SSP). The SSP Interface (SSPI) is used by applications that need authentication services. See https://docs.microsoft.com/en-us/windows/security/threat-protection/security-policy-settings/network-security-minimum-session-security-for-ntlm-ssp-based-including-secure-rpc-servers for more information." - }, - "defaultValue": "537395200" - }, - "NetworkSecurityMinimumSessionSecurityForNTLMSSPBasedIncludingSecureRPCServers": { - "type": "String", - "metadata": { - "displayName": "Network security: Minimum session security for NTLM SSP based (including secure RPC) servers", - "description": "Specifies which behaviors are allowed by servers for applications using the NTLM Security Support Provider (SSP). The SSP Interface (SSPI) is used by applications that need authentication services." - }, - "defaultValue": "537395200" - } - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "dsvm-windows" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - } - ] - }, - "then": { - "effect": "deployIfNotExists", - "details": { - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "AzureBaseline_SecurityOptionsNetworkSecurity", - "existenceCondition": { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash", - "equals": "[base64(concat(\u0027Network Security: Configure encryption types allowed for Kerberos;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027NetworkSecurityConfigureEncryptionTypesAllowedForKerberos\u0027), \u0027,\u0027, \u0027Network security: LAN Manager authentication level;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027NetworkSecurityLANManagerAuthenticationLevel\u0027), \u0027,\u0027, \u0027Network security: LDAP client signing requirements;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027NetworkSecurityLDAPClientSigningRequirements\u0027), \u0027,\u0027, \u0027Network security: Minimum session security for NTLM SSP based (including secure RPC) clients;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027NetworkSecurityMinimumSessionSecurityForNTLMSSPBasedIncludingSecureRPCClients\u0027), \u0027,\u0027, \u0027Network security: Minimum session security for NTLM SSP based (including secure RPC) servers;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027NetworkSecurityMinimumSessionSecurityForNTLMSSPBasedIncludingSecureRPCServers\u0027)))]" - }, - "deployment": { - "properties": { - "mode": "incremental", - "parameters": { - "vmName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "type": { - "value": "[field(\u0027type\u0027)]" - }, - "configurationName": { - "value": "AzureBaseline_SecurityOptionsNetworkSecurity" - }, - "NetworkSecurityConfigureEncryptionTypesAllowedForKerberos": { - "value": "[parameters(\u0027NetworkSecurityConfigureEncryptionTypesAllowedForKerberos\u0027)]" - }, - "NetworkSecurityLANManagerAuthenticationLevel": { - "value": "[parameters(\u0027NetworkSecurityLANManagerAuthenticationLevel\u0027)]" - }, - "NetworkSecurityLDAPClientSigningRequirements": { - "value": "[parameters(\u0027NetworkSecurityLDAPClientSigningRequirements\u0027)]" - }, - "NetworkSecurityMinimumSessionSecurityForNTLMSSPBasedIncludingSecureRPCClients": { - "value": "[parameters(\u0027NetworkSecurityMinimumSessionSecurityForNTLMSSPBasedIncludingSecureRPCClients\u0027)]" - }, - "NetworkSecurityMinimumSessionSecurityForNTLMSSPBasedIncludingSecureRPCServers": { - "value": "[parameters(\u0027NetworkSecurityMinimumSessionSecurityForNTLMSSPBasedIncludingSecureRPCServers\u0027)]" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "vmName": { - "type": "string" - }, - "location": { - "type": "string" - }, - "type": { - "type": "string" - }, - "configurationName": { - "type": "string" - }, - "NetworkSecurityConfigureEncryptionTypesAllowedForKerberos": { - "type": "string" - }, - "NetworkSecurityLANManagerAuthenticationLevel": { - "type": "string" - }, - "NetworkSecurityLDAPClientSigningRequirements": { - "type": "string" - }, - "NetworkSecurityMinimumSessionSecurityForNTLMSSPBasedIncludingSecureRPCClients": { - "type": "string" - }, - "NetworkSecurityMinimumSessionSecurityForNTLMSSPBasedIncludingSecureRPCServers": { - "type": "string" - } - }, - "resources": [ - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027microsoft.hybridcompute/machines\u0027))]", - "apiVersion": "2018-11-20", - "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/Microsoft.GuestConfiguration/\u0027, parameters(\u0027configurationName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "guestConfiguration": { - "name": "[parameters(\u0027configurationName\u0027)]", - "version": "1.*", - "configurationParameter": [ - { - "name": "Network Security: Configure encryption types allowed for Kerberos;ExpectedValue", - "value": "[parameters(\u0027NetworkSecurityConfigureEncryptionTypesAllowedForKerberos\u0027)]" - }, - { - "name": "Network security: LAN Manager authentication level;ExpectedValue", - "value": "[parameters(\u0027NetworkSecurityLANManagerAuthenticationLevel\u0027)]" - }, - { - "name": "Network security: LDAP client signing requirements;ExpectedValue", - "value": "[parameters(\u0027NetworkSecurityLDAPClientSigningRequirements\u0027)]" - }, - { - "name": "Network security: Minimum session security for NTLM SSP based (including secure RPC) clients;ExpectedValue", - "value": "[parameters(\u0027NetworkSecurityMinimumSessionSecurityForNTLMSSPBasedIncludingSecureRPCClients\u0027)]" - }, - { - "name": "Network security: Minimum session security for NTLM SSP based (including secure RPC) servers;ExpectedValue", - "value": "[parameters(\u0027NetworkSecurityMinimumSessionSecurityForNTLMSSPBasedIncludingSecureRPCServers\u0027)]" - } - ] - } - } - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2018-11-20", - "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/Microsoft.GuestConfiguration/\u0027, parameters(\u0027configurationName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "guestConfiguration": { - "name": "[parameters(\u0027configurationName\u0027)]", - "version": "1.*", - "configurationParameter": [ - { - "name": "Network Security: Configure encryption types allowed for Kerberos;ExpectedValue", - "value": "[parameters(\u0027NetworkSecurityConfigureEncryptionTypesAllowedForKerberos\u0027)]" - }, - { - "name": "Network security: LAN Manager authentication level;ExpectedValue", - "value": "[parameters(\u0027NetworkSecurityLANManagerAuthenticationLevel\u0027)]" - }, - { - "name": "Network security: LDAP client signing requirements;ExpectedValue", - "value": "[parameters(\u0027NetworkSecurityLDAPClientSigningRequirements\u0027)]" - }, - { - "name": "Network security: Minimum session security for NTLM SSP based (including secure RPC) clients;ExpectedValue", - "value": "[parameters(\u0027NetworkSecurityMinimumSessionSecurityForNTLMSSPBasedIncludingSecureRPCClients\u0027)]" - }, - { - "name": "Network security: Minimum session security for NTLM SSP based (including secure RPC) servers;ExpectedValue", - "value": "[parameters(\u0027NetworkSecurityMinimumSessionSecurityForNTLMSSPBasedIncludingSecureRPCServers\u0027)]" - } - ] - } - } - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2019-07-01", - "type": "Microsoft.Compute/virtualMachines", - "identity": { - "type": "SystemAssigned" - }, - "name": "[parameters(\u0027vmName\u0027)]", - "location": "[parameters(\u0027location\u0027)]" - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2019-07-01", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/AzurePolicyforWindows\u0027)]", - "type": "Microsoft.Compute/virtualMachines/extensions", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "publisher": "Microsoft.GuestConfiguration", - "type": "ConfigurationforWindows", - "typeHandlerVersion": "1.1", - "autoUpgradeMinorVersion": true, - "settings": {}, - "protectedSettings": {} - }, - "dependsOn": [ - "[concat(\u0027Microsoft.Compute/virtualMachines/\u0027,parameters(\u0027vmName\u0027),\u0027/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/\u0027,parameters(\u0027configurationName\u0027))]" - ] - } - ] - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Modify - Configure Azure Event Grid topics to disable public network access", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Disable public network access for Azure Event Grid resource so that it isn\u0027t accessible over the public internet. This will help protect them against data leakage risks. You can limit exposure of the your resources by creating private endpoints instead. Learn more at: https://aka.ms/privateendpoints.", - "metadata": { - "category": "Event Grid", - "version": "1.0.0" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Modify", - "Disabled" - ], - "defaultValue": "Modify" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.EventGrid/topics" - }, - { - "field": "kind", - "notEquals": "AzureArc" - }, - { - "field": "Microsoft.EventGrid/topics/publicNetworkAccess", - "notEquals": "Disabled" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "conflictEffect": "audit", - "operations": [ - { - "condition": "[greaterOrEquals(requestContext().apiVersion, \u00272020-04-01-preview\u0027)]", - "operation": "addOrReplace", - "field": "Microsoft.EventGrid/topics/publicNetworkAccess", - "value": "Disabled" - } - ] - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Deploy - Configure Azure Event Grid domains with private endpoints", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Private endpoints lets you connect your virtual network to Azure services without a public IP address at the source or destination. By mapping private endpoints to your resources, they\u0027ll be protected against data leakage risks. Learn more at: https://aka.ms/privateendpoints.", - "metadata": { - "version": "1.0.0", - "category": "Event Grid" - }, - "parameters": { - "privateEndpointSubnetId": { - "type": "String", - "metadata": { - "displayName": "Private endpoint subnet id", - "description": "Specifies the subnet to use to configure private endpoint", - "strongType": "Microsoft.Network/virtualNetworks/subnets" - } - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.EventGrid/domains" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.EventGrid/domains/privateEndpointConnections", - "existenceCondition": { - "field": "Microsoft.EventGrid/domains/privateEndpointConnections/privateLinkServiceConnectionState.status", - "equals": "Approved" - }, - "roleDefinitionIds": [ - "/providers/Microsoft.Authorization/roleDefinitions/00000000-0000-0000-0000-000000000000", - "/providers/Microsoft.Authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "deployment": { - "properties": { - "mode": "incremental", - "parameters": { - "name": { - "value": "[field(\u0027name\u0027)]" - }, - "serviceId": { - "value": "[field(\u0027id\u0027)]" - }, - "privateEndpointSubnetId": { - "value": "[parameters(\u0027privateEndpointSubnetId\u0027)]" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "name": { - "type": "string" - }, - "serviceId": { - "type": "string" - }, - "privateEndpointSubnetId": { - "type": "string" - } - }, - "variables": { - "privateEndpointName": "[concat(\u0027pe-\u0027,substring(parameters(\u0027name\u0027),0,min(length(parameters(\u0027name\u0027)),50)),\u0027-\u0027,uniquestring(deployment().name))]" - }, - "resources": [ - { - "type": "Microsoft.Resources/deployments", - "name": "[variables(\u0027privateEndpointName\u0027)]", - "apiVersion": "2020-06-01", - "properties": { - "mode": "Incremental", - "expressionEvaluationOptions": { - "scope": "inner" - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "serviceId": { - "type": "string" - }, - "privateEndpointSubnetId": { - "type": "string" - }, - "subnetLocation": { - "type": "string" - } - }, - "variables": { - "privateEndpointName": "[deployment().name]" - }, - "resources": [ - { - "name": "[variables(\u0027privateEndpointName\u0027)]", - "type": "Microsoft.Network/privateEndpoints", - "apiVersion": "2020-07-01", - "location": "[parameters(\u0027subnetLocation\u0027)]", - "tags": {}, - "properties": { - "subnet": { - "id": "[parameters(\u0027privateEndpointSubnetId\u0027)]" - }, - "privateLinkServiceConnections": [ - { - "name": "[variables(\u0027privateEndpointName\u0027)]", - "properties": { - "privateLinkServiceId": "[parameters(\u0027serviceId\u0027)]", - "groupIds": [ - "domain" - ], - "requestMessage": "autoapprove" - } - } - ], - "manualPrivateLinkServiceConnections": [] - } - } - ] - }, - "parameters": { - "serviceId": { - "value": "[parameters(\u0027serviceId\u0027)]" - }, - "privateEndpointSubnetId": { - "value": "[parameters(\u0027privateEndpointSubnetId\u0027)]" - }, - "subnetLocation": { - "value": "[reference(first(take(split(parameters(\u0027privateEndpointSubnetId\u0027),\u0027/subnets\u0027),1)),\u00272020-07-01\u0027,\u0027Full\u0027).location]" - } - } - } - } - ] - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1557 - Vulnerability Scanning | Review Historic Audit Logs", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Risk Assessment control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1557" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Deploy prerequisites to audit Windows VMs configurations in \u0027Security Options - Interactive Logon\u0027", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: \u0027Security Options - Interactive Logon\u0027. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol", - "metadata": { - "version": "1.2.0-deprecated", - "category": "Guest Configuration", - "requiredProviders": [ - "Microsoft.GuestConfiguration" - ], - "deprecated": true - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "dsvm-windows" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - } - ] - }, - "then": { - "effect": "deployIfNotExists", - "details": { - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "AzureBaseline_SecurityOptionsInteractiveLogon", - "deployment": { - "properties": { - "mode": "incremental", - "parameters": { - "vmName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "type": { - "value": "[field(\u0027type\u0027)]" - }, - "configurationName": { - "value": "AzureBaseline_SecurityOptionsInteractiveLogon" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "vmName": { - "type": "string" - }, - "location": { - "type": "string" - }, - "type": { - "type": "string" - }, - "configurationName": { - "type": "string" - } - }, - "resources": [ - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027microsoft.hybridcompute/machines\u0027))]", - "apiVersion": "2018-11-20", - "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/Microsoft.GuestConfiguration/\u0027, parameters(\u0027configurationName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "guestConfiguration": { - "name": "[parameters(\u0027configurationName\u0027)]", - "version": "1.*" - } - } - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2018-11-20", - "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/Microsoft.GuestConfiguration/\u0027, parameters(\u0027configurationName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "guestConfiguration": { - "name": "[parameters(\u0027configurationName\u0027)]", - "version": "1.*" - } - } - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2019-07-01", - "type": "Microsoft.Compute/virtualMachines", - "identity": { - "type": "SystemAssigned" - }, - "name": "[parameters(\u0027vmName\u0027)]", - "location": "[parameters(\u0027location\u0027)]" - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2019-07-01", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/AzurePolicyforWindows\u0027)]", - "type": "Microsoft.Compute/virtualMachines/extensions", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "publisher": "Microsoft.GuestConfiguration", - "type": "ConfigurationforWindows", - "typeHandlerVersion": "1.1", - "autoUpgradeMinorVersion": true, - "settings": {}, - "protectedSettings": {} - }, - "dependsOn": [ - "[concat(\u0027Microsoft.Compute/virtualMachines/\u0027,parameters(\u0027vmName\u0027),\u0027/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/\u0027,parameters(\u0027configurationName\u0027))]" - ] - } - ] - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Preview]: Deploy Microsoft Defender for Endpoint agent on Windows Azure Arc machines", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Deploys Microsoft Defender for Endpoint on Windows Azure Arc machines.", - "metadata": { - "category": "Security Center", - "version": "1.0.0-preview", - "preview": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/machines/osName", - "like": "windows*" - }, - { - "field": "tags[\u0027MDFCSecurityConnector\u0027]", - "notEquals": "true" - }, - { - "anyOf": [ - { - "field": "Microsoft.HybridCompute/machines/osSku", - "contains": "2012" - }, - { - "field": "Microsoft.HybridCompute/machines/osSku", - "contains": "2016" - }, - { - "field": "Microsoft.HybridCompute/machines/osSku", - "contains": "2019" - }, - { - "field": "Microsoft.HybridCompute/machines/osSku", - "contains": "2022" - }, - { - "field": "Microsoft.HybridCompute/machines/osSku", - "equals": "Windows 10 Enterprise multi-session" - }, - { - "field": "Microsoft.HybridCompute/machines/osSku", - "equals": "Windows 10 Enterprise for Virtual Desktops" - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "type": "Microsoft.HybridCompute/machines/extensions", - "name": "MDE.Windows", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.HybridCompute/machines/extensions/publisher", - "equals": "Microsoft.Azure.AzureDefenderForServers" - }, - { - "field": "Microsoft.HybridCompute/machines/extensions/type", - "equals": "MDE.Windows" - }, - { - "field": "Microsoft.HybridCompute/machines/extensions/provisioningState", - "equals": "Succeeded" - } - ] - }, - "deployment": { - "properties": { - "mode": "incremental", - "parameters": { - "vmName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "azureResourceId": { - "value": "[concat(\u0027/subscriptions/\u0027, subscription().subscriptionId, \u0027/resourceGroups/\u0027, resourceGroup().name, \u0027/providers/Microsoft.HybridCompute/machines/\u0027,field(\u0027name\u0027))]" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "vmName": { - "type": "string" - }, - "location": { - "type": "string" - }, - "azureResourceId": { - "type": "string" - } - }, - "resources": [ - { - "apiVersion": "2019-12-12", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/MDE.Windows\u0027)]", - "type": "Microsoft.HybridCompute/machines/extensions", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "autoUpgradeMinorVersion": true, - "enableAutomaticUpgrade": true, - "publisher": "Microsoft.Azure.AzureDefenderForServers", - "type": "MDE.Windows", - "typeHandlerVersion": "1.0", - "settings": { - "azureResourceId": "[parameters(\u0027azureResourceId\u0027)]", - "vNextEnabled": "true" - }, - "protectedSettings": { - "defenderForEndpointOnboardingScript": "[reference(subscriptionResourceId(\u0027Microsoft.Security/mdeOnboardings\u0027, \u0027Windows\u0027), \u00272021-10-01-preview\u0027, \u0027full\u0027).properties.onboardingPackageWindows]" - } - } - } - ] - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1624 - Boundary Protection", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Communications Protection control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1624" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Storage accounts should be migrated to new Azure Resource Manager resources", - "policyType": "BuiltIn", - "mode": "All", - "description": "Use new Azure Resource Manager for your storage accounts to provide security enhancements such as: stronger access control (RBAC), better auditing, Azure Resource Manager based deployment and governance, access to managed identities, access to key vault for secrets, Azure AD-based authentication and support for tags and resource groups for easier security management", - "metadata": { - "version": "1.0.0", - "category": "Storage" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "The effect determines what happens when the policy rule is evaluated to match" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.ClassicStorage/storageAccounts", - "Microsoft.Storage/StorageAccounts" - ] - }, - { - "value": "[field(\u0027type\u0027)]", - "equals": "Microsoft.ClassicStorage/storageAccounts" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1335 - Authenticator Management | Pki-Based Authentication", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Identification and Authentication control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1335" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Resource logs in IoT Hub should be enabled", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Audit enabling of resource logs. This enables you to recreate activity trails to use for investigation purposes; when a security incident occurs or when your network is compromised", - "metadata": { - "version": "3.0.1", - "category": "Internet of Things" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - }, - "requiredRetentionDays": { - "type": "String", - "metadata": { - "displayName": "Required retention (days)", - "description": "The required resource logs retention in days" - }, - "defaultValue": "365" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Devices/IotHubs" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Insights/diagnosticSettings", - "existenceCondition": { - "count": { - "field": "Microsoft.Insights/diagnosticSettings/logs[*]", - "where": { - "anyOf": [ - { - "allOf": [ - { - "field": "Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.enabled", - "equals": "true" - }, - { - "anyOf": [ - { - "field": "Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.days", - "equals": "0" - }, - { - "field": "Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.days", - "greaterOrEquals": "[parameters(\u0027requiredRetentionDays\u0027)]" - } - ] - }, - { - "field": "Microsoft.Insights/diagnosticSettings/logs.enabled", - "equals": "true" - } - ] - }, - { - "allOf": [ - { - "not": { - "field": "Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.enabled", - "equals": "true" - } - }, - { - "field": "Microsoft.Insights/diagnosticSettings/logs.enabled", - "equals": "true" - } - ] - } - ] - } - }, - "greaterOrEquals": 1 - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Deploy the Windows Guest Configuration extension to enable Guest Configuration assignments on Windows VMs", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "This policy deploys the Windows Guest Configuration extension to Windows virtual machines hosted in Azure that are supported by Guest Configuration. The Windows Guest Configuration extension is a prerequisite for all Windows Guest Configuration assignments and must be deployed to machines before using any Windows Guest Configuration policy definition. For more information on Guest Configuration, visit https://aka.ms/gcpol.", - "metadata": { - "category": "Guest Configuration", - "version": "1.2.0" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "dsvm-win*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - "then": { - "effect": "deployIfNotExists", - "details": { - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "type": "Microsoft.Compute/virtualMachines/extensions", - "name": "AzurePolicyforWindows", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.Compute/virtualMachines/extensions/publisher", - "equals": "Microsoft.GuestConfiguration" - }, - { - "field": "Microsoft.Compute/virtualMachines/extensions/type", - "equals": "ConfigurationforWindows" - }, - { - "field": "Microsoft.Compute/virtualMachines/extensions/provisioningState", - "equals": "Succeeded" - } - ] - }, - "deployment": { - "properties": { - "mode": "incremental", - "parameters": { - "vmName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "vmName": { - "type": "string" - }, - "location": { - "type": "string" - } - }, - "resources": [ - { - "apiVersion": "2019-07-01", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/AzurePolicyforWindows\u0027)]", - "type": "Microsoft.Compute/virtualMachines/extensions", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "publisher": "Microsoft.GuestConfiguration", - "type": "ConfigurationforWindows", - "typeHandlerVersion": "1.1", - "autoUpgradeMinorVersion": true, - "enableAutomaticUpgrade": true, - "settings": {}, - "protectedSettings": {} - } - } - ] - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1081 - Information Sharing", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Access Control control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1081" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1522 - Personnel Transfer", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Personnel Security control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1522" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Azure Synapse workspaces should disable public network access", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Disabling public network access improves security by ensuring that the Synapse workspace isn\u0027t exposed on the public internet. Creating private endpoints can limit exposure of your Synapse workspaces. Learn more at: https://docs.microsoft.com/azure/synapse-analytics/security/connectivity-settings.", - "metadata": { - "version": "1.0.0", - "category": "Synapse" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Synapse/workspaces" - }, - { - "field": "Microsoft.Synapse/workspaces/publicNetworkAccess", - "notEquals": "Disabled" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1416 - Nonlocal Maintenance | Document Nonlocal Maintenance", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Maintenance control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1416" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1397 - Controlled Maintenance", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Maintenance control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1397" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1556 - Vulnerability Scanning | Automated Trend Analyses", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Risk Assessment control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1556" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Advanced data security settings for SQL Managed Instance should contain an email address for security alerts", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Ensure that an email address is provided for the \u0027Send alerts to\u0027 field in the advanced data security settings. This email address receives alert notifications when anomalous activities are detected on SQL Managed Instance.", - "metadata": { - "version": "1.0.1-deprecated", - "category": "SQL", - "deprecated": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "Disabled" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Sql/managedInstances" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Sql/managedInstances/securityAlertPolicies", - "name": "default", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.Sql/managedInstances/securityAlertPolicies/emailAddresses[*]", - "notEquals": "" - }, - { - "field": "Microsoft.Sql/managedInstances/securityAlertPolicies/emailAddresses[*]", - "exists": "true" - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1232 - Configuration Management Plan", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Configuration Management control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1232" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1246 - Contingency Plan", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Contingency Planning control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1246" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "FTPS only should be required in your Function App", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Enable FTPS enforcement for enhanced security", - "metadata": { - "version": "2.0.0", - "category": "App Service" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Web/sites" - }, - { - "field": "kind", - "like": "functionapp*" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Web/sites/config", - "name": "web", - "existenceCondition": { - "field": "Microsoft.Web/sites/config/ftpsState", - "in": [ - "FtpsOnly", - "Disabled" - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1680 - Malicious Code Protection | Central Management", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Information Integrity control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1680" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1228 - Information System Component Inventory | Accountability Information", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Configuration Management control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1228" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Synapse managed private endpoints should only connect to resources in approved Azure Active Directory tenants", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Protect your Synapse workspace by only allowing connections to resources in approved Azure Active Directory (Azure AD) tenants. The approved Azure AD tenants can be defined during policy assignment.", - "metadata": { - "version": "1.0.0", - "category": "Synapse" - }, - "parameters": { - "allowedTenantIds": { - "type": "Array", - "metadata": { - "displayName": "List of Allowed Tenant Ids for private endpoint creation", - "description": "This parameter defines the list of Allowed Tenant Ids that are allowed to create managed private endpoints in the workspaces" - }, - "defaultValue": [] - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Disabled", - "Deny" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Synapse/workspaces" - }, - { - "count": { - "field": "Microsoft.Synapse/workspaces/managedVirtualNetworkSettings.allowedAadTenantIdsForLinking[*]", - "where": { - "field": "Microsoft.Synapse/workspaces/managedVirtualNetworkSettings.allowedAadTenantIdsForLinking[*]", - "notIn": "[parameters(\u0027allowedTenantIds\u0027)]" - } - }, - "greater": 0 - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Infrastructure encryption should be enabled for Azure Database for MySQL servers", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Enable infrastructure encryption for Azure Database for MySQL servers to have higher level of assurance that the data is secure. When infrastructure encryption is enabled, the data at rest is encrypted twice using FIPS 140-2 compliant Microsoft managed keys.", - "metadata": { - "version": "1.0.0", - "category": "SQL" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.DBforMySQL/servers" - }, - { - "field": "Microsoft.DBforMySQL/servers/infrastructureEncryption", - "notEquals": "Enabled" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1039 - Least Privilege | Review Of User Privileges", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Access Control control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1039" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1648 - Collaborative Computing Devices", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Communications Protection control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1648" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Windows machines should meet requirements for \u0027Administrative Templates - Control Panel\u0027", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Windows machines should have the specified Group Policy settings in the category \u0027Administrative Templates - Control Panel\u0027 for input personalization and prevention of enabling lock screens. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.", - "metadata": { - "category": "Guest Configuration", - "version": "3.0.0", - "requiredProviders": [ - "Microsoft.GuestConfiguration" - ], - "guestConfiguration": { - "name": "AzureBaseline_AdministrativeTemplatesControlPanel", - "version": "1.*" - } - }, - "parameters": { - "IncludeArcMachines": { - "type": "String", - "metadata": { - "displayName": "Include Arc connected servers", - "description": "By selecting this option, you agree to be charged monthly per Arc connected machine.", - "portalReview": "true" - }, - "allowedValues": [ - "true", - "false" - ], - "defaultValue": "false" - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of this policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "dsvm-win*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "value": "[parameters(\u0027IncludeArcMachines\u0027)]", - "equals": "true" - }, - { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.ConnectedVMwarevSphere/virtualMachines" - }, - { - "field": "Microsoft.ConnectedVMwarevSphere/virtualMachines/osProfile.osType", - "like": "windows*" - } - ] - } - ] - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "AzureBaseline_AdministrativeTemplatesControlPanel", - "existenceCondition": { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus", - "equals": "Compliant" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1315 - Identifier Management", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Identification and Authentication control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1315" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Azure Active Directory Domain Services managed domains should use TLS 1.2 only mode", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Use TLS 1.2 only mode for your managed domains. By default, Azure AD Domain Services enables the use of ciphers such as NTLM v1 and TLS v1. These ciphers may be required for some legacy applications, but are considered weak and can be disabled if you don\u0027t need them. When TLS 1.2 only mode is enabled, any client making a request that is not using TLS 1.2 will fail. Learn more at https://docs.microsoft.com/azure/active-directory-domain-services/secure-your-domain.", - "metadata": { - "version": "1.1.0", - "category": "Azure Active Directory" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.AAD/domainServices" - }, - { - "field": "Microsoft.AAD/domainServices/domainSecuritySettings.tlsV1", - "notEquals": "Disabled" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Pod Security Policies should be defined on Kubernetes Services", - "policyType": "BuiltIn", - "mode": "All", - "description": "Define Pod Security Policies to reduce the attack vector by removing unnecessary application privileges. It is recommended to configure Pod Security Policies to only allow pods to access the resources which they have permissions to access.", - "metadata": { - "version": "1.0.0-deprecated", - "category": "Security Center", - "deprecated": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Disabled" - ], - "defaultValue": "Disabled" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.ContainerService/managedClusters" - }, - { - "anyOf": [ - { - "field": "Microsoft.ContainerService/managedClusters/enablePodSecurityPolicy", - "exists": "false" - }, - { - "field": "Microsoft.ContainerService/managedClusters/enablePodSecurityPolicy", - "equals": "false" - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1548 - Vulnerability Scanning", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Risk Assessment control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1548" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Preview]: Configure Arc machines to automatically create the Security Center pipeline for Azure Monitor Agent", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Configure Arc machines to automatically create the Azure Security Center pipeline for Azure Monitor Agent. Security Center collects events from the agent and uses them to provide security alerts and tailored hardening tasks (recommendations). Create a resource group and Log Analytics workspace in the same region as the machine to store audit records. Target virtual machines must be in a supported location.", - "metadata": { - "category": "Security Center", - "version": "1.0.0-preview", - "preview": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "location", - "in": [ - "australiacentral", - "australiaeast", - "australiasoutheast", - "brazilsouth", - "canadacentral", - "canadaeast", - "centralindia", - "centralus", - "eastasia", - "eastus2euap", - "eastus", - "eastus2", - "francecentral", - "germanywestcentral", - "japaneast", - "japanwest", - "jioindiawest", - "koreacentral", - "koreasouth", - "northcentralus", - "northeurope", - "norwayeast", - "southafricanorth", - "southcentralus", - "southeastasia", - "southindia", - "switzerlandnorth", - "uaenorth", - "uksouth", - "ukwest", - "westcentralus", - "westeurope", - "westindia", - "westus", - "westus2" - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Insights/dataCollectionRules", - "deploymentScope": "subscription", - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "existenceScope": "subscription", - "existenceCondition": { - "allOf": [ - { - "field": "location", - "equals": "[field(\u0027location\u0027)]" - }, - { - "field": "name", - "equals": "[concat(\u0027Microsoft-Security-\u0027, field(\u0027location\u0027), \u0027-dcr\u0027)]" - } - ] - }, - "deployment": { - "location": "eastus", - "properties": { - "mode": "incremental", - "parameters": { - "resourceGroup": { - "value": "[resourceGroup().name]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "vmName": { - "value": "[field(\u0027name\u0027)]" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "resourceGroup": { - "type": "string" - }, - "location": { - "type": "string" - }, - "vmName": { - "type": "string" - } - }, - "variables": { - "locationLongNameToShortMap": { - "australiacentral": "CAU", - "australiaeast": "EAU", - "australiasoutheast": "SEAU", - "brazilsouth": "CQ", - "canadacentral": "CCA", - "canadaeast": "CCA", - "centralindia": "CIN", - "centralus": "CUS", - "eastasia": "EA", - "eastus2euap": "eus2p", - "eastus": "EUS", - "eastus2": "EUS2", - "francecentral": "PAR", - "germanywestcentral": "DEWC", - "japaneast": "EJP", - "japanwest": "EJP", - "jioindiawest": "CIN", - "koreacentral": "SE", - "koreasouth": "SE", - "northcentralus": "NCUS", - "northeurope": "NEU", - "norwayeast": "NOE", - "southafricanorth": "JNB", - "southcentralus": "SCUS", - "southeastasia": "SEA", - "southindia": "CIN", - "swedencentral": "SEC", - "switzerlandnorth": "CHN", - "switzerlandwest": "CHW", - "uaenorth": "DXB", - "uksouth": "SUK", - "ukwest": "WUK", - "westcentralus": "WCUS", - "westeurope": "WEU", - "westindia": "CIN", - "westus": "WUS", - "westus2": "WUS2" - }, - "locationCode": "[variables(\u0027locationLongNameToShortMap\u0027)[parameters(\u0027location\u0027)]]", - "subscriptionId": "[subscription().subscriptionId]", - "defaultRGName": "[concat(\u0027DefaultResourceGroup-\u0027, variables(\u0027locationCode\u0027))]", - "defaultRGLocation": "[parameters(\u0027location\u0027)]", - "workspaceName": "[concat(\u0027defaultWorkspace-\u0027, variables(\u0027subscriptionId\u0027),\u0027-\u0027, variables(\u0027locationCode\u0027))]", - "dcrName": "[concat(\u0027Microsoft-Security-\u0027, parameters(\u0027location\u0027), \u0027-dcr\u0027)]", - "dcrId": "[concat(\u0027/subscriptions/\u0027, variables(\u0027subscriptionId\u0027), \u0027/resourceGroups/\u0027, variables(\u0027defaultRGName\u0027), \u0027/providers/Microsoft.Insights/dataCollectionRules/\u0027, variables(\u0027dcrName\u0027))]", - "dcraName": "[concat(parameters(\u0027vmName\u0027),\u0027/Microsoft.Insights/Security-RulesAssociation\u0027)]", - "deployDefaultAscResourceGroup": "[concat(\u0027deployDefaultAscResourceGroup-\u0027, uniqueString(deployment().name))]", - "deployDataCollectionRulesAssociation": "[concat(\u0027deployDataCollectionRulesAssociation-\u0027, uniqueString(deployment().name))]" - }, - "resources": [ - { - "type": "Microsoft.Resources/resourceGroups", - "name": "[variables(\u0027defaultRGName\u0027)]", - "apiVersion": "2019-05-01", - "location": "[variables(\u0027defaultRGLocation\u0027)]" - }, - { - "type": "Microsoft.Resources/deployments", - "name": "[variables(\u0027deployDefaultAscResourceGroup\u0027)]", - "apiVersion": "2020-06-01", - "resourceGroup": "[variables(\u0027defaultRGName\u0027)]", - "properties": { - "mode": "Incremental", - "expressionEvaluationOptions": { - "scope": "inner" - }, - "parameters": { - "defaultRGLocation": { - "value": "[variables(\u0027defaultRGLocation\u0027)]" - }, - "workspaceName": { - "value": "[variables(\u0027workspaceName\u0027)]" - }, - "dcrName": { - "value": "[variables(\u0027dcrName\u0027)]" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "defaultRGLocation": { - "type": "string" - }, - "workspaceName": { - "type": "string" - }, - "dcrName": { - "type": "string" - } - }, - "variables": { - "securityCenterFreeSolution": { - "Name": "[Concat(\u0027SecurityCenterFree\u0027, \u0027(\u0027, parameters(\u0027workspaceName\u0027), \u0027)\u0027)]", - "GalleryName": "SecurityCenterFree" - } - }, - "resources": [ - { - "type": "Microsoft.OperationalInsights/workspaces", - "name": "[parameters(\u0027workspaceName\u0027)]", - "apiVersion": "2021-06-01", - "location": "[parameters(\u0027defaultRGLocation\u0027)]", - "properties": { - "sku": { - "name": "pernode" - }, - "retentionInDays": 30, - "features": { - "searchVersion": 1 - } - } - }, - { - "type": "Microsoft.OperationsManagement/solutions", - "name": "[variables(\u0027securityCenterFreeSolution\u0027).Name]", - "apiVersion": "2015-11-01-preview", - "location": "[parameters(\u0027defaultRGLocation\u0027)]", - "dependsOn": [ - "[parameters(\u0027workspaceName\u0027)]" - ], - "properties": { - "workspaceResourceId": "[resourceId(\u0027Microsoft.OperationalInsights/workspaces/\u0027, parameters(\u0027workspaceName\u0027))]" - }, - "plan": { - "name": "[variables(\u0027securityCenterFreeSolution\u0027).Name]", - "publisher": "Microsoft", - "product": "[Concat(\u0027OMSGallery/\u0027, variables(\u0027securityCenterFreeSolution\u0027).GalleryName)]", - "promotionCode": "" - } - }, - { - "type": "Microsoft.Insights/dataCollectionRules", - "name": "[parameters(\u0027dcrName\u0027)]", - "apiVersion": "2019-11-01-preview", - "location": "[parameters(\u0027defaultRGLocation\u0027)]", - "dependsOn": [ - "[parameters(\u0027workspaceName\u0027)]" - ], - "properties": { - "description": "Data collection rule for Azure Security Center. Deleting this rule will break the detection of security vulnerabilities.", - "dataSources": { - "extensions": [ - { - "extensionName": "AzureSecurityLinuxAgent", - "name": "AscLinuxDataSource", - "streams": [ - "Microsoft-OperationLog", - "Microsoft-ProtectionStatus", - "Microsoft-SecurityBaseline", - "Microsoft-SecurityBaselineSummary" - ], - "extensionSettings": { - "scanners": [ - { - "name": "heartbeat", - "frequency": "PT1H" - }, - { - "name": "time", - "frequency": "PT8H" - }, - { - "name": "antimalware", - "frequency": "PT8H" - }, - { - "name": "codeintegrity", - "frequency": "P1D" - }, - { - "name": "processinvestigator", - "frequency": "PT1H" - }, - { - "name": "baseline", - "frequency": "P1D" - }, - { - "name": "docker", - "frequency": "P1D" - } - ] - } - }, - { - "extensionName": "AzureSecurityWindowsAgent", - "name": "AsaWindowsDataSource", - "streams": [ - "Microsoft-OperationLog", - "Microsoft-ProtectionStatus", - "Microsoft-SecurityBaseline", - "Microsoft-SecurityBaselineSummary" - ], - "extensionSettings": { - "scanners": [ - { - "name": "heartbeat", - "frequency": "PT1H" - }, - { - "name": "baseline", - "frequency": "P1D" - }, - { - "name": "antimalware", - "frequency": "P1D" - }, - { - "name": "processinvestigator", - "frequency": "PT1H" - } - ] - } - } - ] - }, - "destinations": { - "logAnalytics": [ - { - "workspaceResourceId": "[resourceId(\u0027Microsoft.OperationalInsights/workspaces/\u0027, parameters(\u0027workspaceName\u0027))]", - "name": "LogAnalyticsDest" - } - ] - }, - "dataFlows": [ - { - "streams": [ - "Microsoft-OperationLog", - "Microsoft-ProtectionStatus", - "Microsoft-SecurityBaseline", - "Microsoft-SecurityBaselineSummary" - ], - "destinations": [ - "LogAnalyticsDest" - ] - } - ] - } - } - ] - } - }, - "dependsOn": [ - "[resourceId(\u0027Microsoft.Resources/resourceGroups\u0027, variables(\u0027defaultRGName\u0027))]" - ] - }, - { - "type": "Microsoft.Resources/deployments", - "name": "[variables(\u0027deployDataCollectionRulesAssociation\u0027)]", - "apiVersion": "2020-06-01", - "resourceGroup": "[parameters(\u0027resourceGroup\u0027)]", - "dependsOn": [ - "[variables(\u0027deployDefaultAscResourceGroup\u0027)]" - ], - "properties": { - "mode": "Incremental", - "expressionEvaluationOptions": { - "scope": "inner" - }, - "parameters": { - "location": { - "value": "[parameters(\u0027location\u0027)]" - }, - "vmName": { - "value": "[parameters(\u0027vmName\u0027)]" - }, - "dcrId": { - "value": "[variables(\u0027dcrId\u0027)]" - }, - "dcraName": { - "value": "[variables(\u0027dcraName\u0027)]" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "location": { - "type": "string" - }, - "vmName": { - "type": "string" - }, - "dcrId": { - "type": "string" - }, - "dcraName": { - "type": "string" - } - }, - "variables": {}, - "resources": [ - { - "type": "Microsoft.HybridCompute/machines/providers/dataCollectionRuleAssociations", - "name": "[parameters(\u0027dcraName\u0027)]", - "apiVersion": "2019-11-01-preview", - "properties": { - "description": "Association of data collection rule for Azure Security Center. Deleting this association will break the detection of security vulnerabilities for this virtual machine.", - "dataCollectionRuleId": "[parameters(\u0027dcrId\u0027)]" - } - } - ] - } - } - } - ] - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Configure Azure Synapse workspaces with private endpoints", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Private endpoints connect your virtual network to Azure services without a public IP address at the source or destination. By mapping private endpoints to Azure Synapse workspaces, you can reduce data leakage risks. Learn more about private links at: https://docs.microsoft.com/azure/synapse-analytics/security/how-to-connect-to-workspace-with-private-links.", - "metadata": { - "version": "1.0.0", - "category": "Synapse" - }, - "parameters": { - "privateEndpointSubnetId": { - "type": "String", - "metadata": { - "displayName": "Private endpoint subnet id", - "description": "A subnet with private endpoint network policies disabled", - "strongType": "Microsoft.Network/virtualNetworks/subnets" - } - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Synapse/workspaces" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Synapse/workspaces/privateEndpointConnections", - "existenceCondition": { - "field": "Microsoft.Synapse/workspaces/privateEndpointConnections/privateLinkServiceConnectionState.status", - "equals": "Approved" - }, - "roleDefinitionIds": [ - "/providers/Microsoft.Authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "deployment": { - "properties": { - "mode": "incremental", - "parameters": { - "name": { - "value": "[field(\u0027name\u0027)]" - }, - "serviceId": { - "value": "[field(\u0027id\u0027)]" - }, - "privateEndpointSubnetId": { - "value": "[parameters(\u0027privateEndpointSubnetId\u0027)]" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "name": { - "type": "string" - }, - "serviceId": { - "type": "string" - }, - "privateEndpointSubnetId": { - "type": "string" - } - }, - "variables": { - "privateEndpointName": "[concat(\u0027pe-\u0027,substring(parameters(\u0027name\u0027),0,min(length(parameters(\u0027name\u0027)),50)),\u0027-\u0027,uniquestring(deployment().name))]" - }, - "resources": [ - { - "type": "Microsoft.Resources/deployments", - "name": "[variables(\u0027privateEndpointName\u0027)]", - "apiVersion": "2020-06-01", - "properties": { - "mode": "Incremental", - "expressionEvaluationOptions": { - "scope": "inner" - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "serviceId": { - "type": "string" - }, - "privateEndpointSubnetId": { - "type": "string" - }, - "subnetLocation": { - "type": "string" - } - }, - "variables": { - "privateEndpointName": "[deployment().name]" - }, - "resources": [ - { - "name": "[variables(\u0027privateEndpointName\u0027)]", - "type": "Microsoft.Network/privateEndpoints", - "apiVersion": "2020-07-01", - "location": "[parameters(\u0027subnetLocation\u0027)]", - "tags": {}, - "properties": { - "subnet": { - "id": "[parameters(\u0027privateEndpointSubnetId\u0027)]" - }, - "privateLinkServiceConnections": [ - { - "name": "[variables(\u0027privateEndpointName\u0027)]", - "properties": { - "privateLinkServiceId": "[parameters(\u0027serviceId\u0027)]", - "groupIds": [ - "Dev" - ], - "requestMessage": "Auto approved by policy assignment" - } - } - ], - "manualPrivateLinkServiceConnections": [] - } - } - ] - }, - "parameters": { - "serviceId": { - "value": "[parameters(\u0027serviceId\u0027)]" - }, - "privateEndpointSubnetId": { - "value": "[parameters(\u0027privateEndpointSubnetId\u0027)]" - }, - "subnetLocation": { - "value": "[reference(first(take(split(parameters(\u0027privateEndpointSubnetId\u0027),\u0027/subnets\u0027),1)),\u00272020-07-01\u0027,\u0027Full\u0027).location]" - } - } - } - } - ] - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1266 - Contingency Plan Testing | Alternate Processing Site", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Contingency Planning control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1266" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1003 - Account Management", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Access Control control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1003" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "An activity log alert should exist for specific Security operations", - "policyType": "BuiltIn", - "mode": "All", - "description": "This policy audits specific Security operations with no activity log alerts configured.", - "metadata": { - "version": "1.0.0", - "category": "Monitoring" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - }, - "operationName": { - "type": "String", - "metadata": { - "displayName": "Operation Name", - "description": "Security Operation name for which activity log alert should exist" - }, - "allowedValues": [ - "Microsoft.Security/policies/write", - "Microsoft.Security/securitySolutions/write", - "Microsoft.Security/securitySolutions/delete" - ] - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Resources/subscriptions" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Insights/ActivityLogAlerts", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.Insights/ActivityLogAlerts/enabled", - "equals": "true" - }, - { - "count": { - "field": "Microsoft.Insights/ActivityLogAlerts/condition.allOf[*]", - "where": { - "anyOf": [ - { - "allOf": [ - { - "field": "Microsoft.Insights/ActivityLogAlerts/condition.allOf[*].field", - "equals": "category" - }, - { - "field": "Microsoft.Insights/ActivityLogAlerts/condition.allOf[*].equals", - "equals": "Security" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Insights/ActivityLogAlerts/condition.allOf[*].field", - "equals": "operationName" - }, - { - "field": "Microsoft.Insights/ActivityLogAlerts/condition.allOf[*].equals", - "equals": "[parameters(\u0027operationName\u0027)]" - } - ] - } - ] - } - }, - "equals": 2 - }, - { - "not": { - "field": "Microsoft.Insights/ActivityLogAlerts/condition.allOf[*].field", - "equals": "category" - } - }, - { - "not": { - "field": "Microsoft.Insights/ActivityLogAlerts/condition.allOf[*].field", - "equals": "operationName" - } - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Deploy - Configure Dependency agent to be enabled on Windows virtual machine scale sets", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Deploy Dependency agent for Windows virtual machine scale sets if the virtual machine image is in the list defined and the agent is not installed. If your scale set upgradePolicy is set to Manual, you need to apply the extension to all the virtual machines in the set by updating them.", - "metadata": { - "version": "2.0.0", - "category": "Monitoring" - }, - "parameters": { - "listOfImageIdToInclude": { - "type": "Array", - "metadata": { - "displayName": "Optional: List of virtual machine images that have supported Windows OS to add to scope", - "description": "Example value: \u0027/subscriptions/\u003CsubscriptionId\u003E/resourceGroups/YourResourceGroup/providers/Microsoft.Compute/images/ContosoStdImage\u0027" - }, - "defaultValue": [] - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachineScaleSets" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageId", - "in": "[parameters(\u0027listOfImageIdToInclude\u0027)]" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "in": [ - "2008-R2-SP1", - "2008-R2-SP1-smalldisk", - "2012-Datacenter", - "2012-Datacenter-smalldisk", - "2012-R2-Datacenter", - "2012-R2-Datacenter-smalldisk", - "2016-Datacenter", - "2016-Datacenter-Server-Core", - "2016-Datacenter-Server-Core-smalldisk", - "2016-Datacenter-smalldisk", - "2016-Datacenter-with-Containers", - "2016-Datacenter-with-RDSH", - "2019-Datacenter", - "2019-Datacenter-Core", - "2019-Datacenter-Core-smalldisk", - "2019-Datacenter-Core-with-Containers", - "2019-Datacenter-Core-with-Containers-smalldisk", - "2019-Datacenter-smalldisk", - "2019-Datacenter-with-Containers", - "2019-Datacenter-with-Containers-smalldisk", - "2019-Datacenter-zhcn" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServerSemiAnnual" - }, - { - "field": "Microsoft.Compute/imageSKU", - "in": [ - "Datacenter-Core-1709-smalldisk", - "Datacenter-Core-1709-with-Containers-smalldisk", - "Datacenter-Core-1803-with-Containers-smalldisk" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServerHPCPack" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServerHPCPack" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2016" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2016-BYOL" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2012R2" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2012R2-BYOL" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftRServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "MLServer-WS2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftVisualStudio" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "VisualStudio", - "Windows" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftDynamicsAX" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Dynamics" - }, - { - "field": "Microsoft.Compute/imageSKU", - "equals": "Pre-Req-AX7-Onebox-U8" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftDynamicsAX" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Dynamics" - }, - { - "field": "Microsoft.Compute/imageSKU", - "equals": "Pre-Req-AX7-Onebox-V4" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "windows-data-science-vm" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsDesktop" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Windows-10" - } - ] - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Compute/virtualMachineScaleSets/extensions", - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.Compute/virtualMachineScaleSets/extensions/type", - "equals": "DependencyAgentWindows" - }, - { - "field": "Microsoft.Compute/virtualMachineScaleSets/extensions/publisher", - "equals": "Microsoft.Azure.Monitoring.DependencyAgent" - } - ] - }, - "deployment": { - "properties": { - "mode": "incremental", - "template": { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "vmName": { - "type": "string" - }, - "location": { - "type": "string" - } - }, - "variables": { - "vmExtensionName": "DependencyAgentWindows", - "vmExtensionPublisher": "Microsoft.Azure.Monitoring.DependencyAgent", - "vmExtensionType": "DependencyAgentWindows", - "vmExtensionTypeHandlerVersion": "9.7" - }, - "resources": [ - { - "type": "Microsoft.Compute/virtualMachineScaleSets/extensions", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/\u0027, variables(\u0027vmExtensionName\u0027))]", - "apiVersion": "2018-06-01", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "publisher": "[variables(\u0027vmExtensionPublisher\u0027)]", - "type": "[variables(\u0027vmExtensionType\u0027)]", - "typeHandlerVersion": "[variables(\u0027vmExtensionTypeHandlerVersion\u0027)]", - "autoUpgradeMinorVersion": true - } - } - ], - "outputs": { - "policy": { - "type": "string", - "value": "[concat(\u0027Enabled extension for: \u0027, parameters(\u0027vmName\u0027))]" - } - } - }, - "parameters": { - "vmName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - } - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "PostgreSQL server should use a virtual network service endpoint", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Virtual network based firewall rules are used to enable traffic from a specific subnet to Azure Database for PostgreSQL while ensuring the traffic stays within the Azure boundary. This policy provides a way to audit if the Azure Database for PostgreSQL has virtual network service endpoint being used.", - "metadata": { - "version": "1.0.2", - "category": "SQL" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.DBforPostgreSQL/servers" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.DBforPostgreSQL/servers/virtualNetworkRules", - "existenceCondition": { - "field": "Microsoft.DBforPostgreSQL/servers/virtualNetworkRules/virtualNetworkSubnetId", - "exists": "true" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Deploy - Configure Log Analytics extension to be enabled on Windows virtual machine scale sets", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Deploy Log Analytics extension for Windows virtual machine scale sets if the virtual machine image is in the list defined and the extension is not installed. If your scale set upgradePolicy is set to Manual, you need to apply the extension to all the virtual machine in the set by updating them.", - "metadata": { - "version": "2.0.1", - "category": "Monitoring" - }, - "parameters": { - "logAnalytics": { - "type": "String", - "metadata": { - "displayName": "Log Analytics workspace", - "description": "Log Analytics workspace is used to receive performance data. If this workspace is outside of the scope of the assignment you must manually grant \u0027Log Analytics Contributor\u0027 permissions (or similar) to the policy assignment\u0027s principal ID.", - "strongType": "omsWorkspace", - "assignPermissions": true - } - }, - "listOfImageIdToInclude": { - "type": "Array", - "metadata": { - "displayName": "Optional: List of virtual machine images that have supported Windows OS to add to scope", - "description": "Example value: \u0027/subscriptions/\u003CsubscriptionId\u003E/resourceGroups/YourResourceGroup/providers/Microsoft.Compute/images/ContosoStdImage\u0027" - }, - "defaultValue": [] - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachineScaleSets" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageId", - "in": "[parameters(\u0027listOfImageIdToInclude\u0027)]" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "in": [ - "2008-R2-SP1", - "2008-R2-SP1-smalldisk", - "2012-Datacenter", - "2012-Datacenter-smalldisk", - "2012-R2-Datacenter", - "2012-R2-Datacenter-smalldisk", - "2016-Datacenter", - "2016-Datacenter-Server-Core", - "2016-Datacenter-Server-Core-smalldisk", - "2016-Datacenter-smalldisk", - "2016-Datacenter-with-Containers", - "2016-Datacenter-with-RDSH", - "2019-Datacenter", - "2019-Datacenter-Core", - "2019-Datacenter-Core-smalldisk", - "2019-Datacenter-Core-with-Containers", - "2019-Datacenter-Core-with-Containers-smalldisk", - "2019-Datacenter-smalldisk", - "2019-Datacenter-with-Containers", - "2019-Datacenter-with-Containers-smalldisk", - "2019-Datacenter-zhcn" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServerSemiAnnual" - }, - { - "field": "Microsoft.Compute/imageSKU", - "in": [ - "Datacenter-Core-1709-smalldisk", - "Datacenter-Core-1709-with-Containers-smalldisk", - "Datacenter-Core-1803-with-Containers-smalldisk" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServerHPCPack" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "WindowsServerHPCPack" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2016" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2016-BYOL" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2012R2" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "*-WS2012R2-BYOL" - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftRServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "MLServer-WS2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftVisualStudio" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "VisualStudio", - "Windows" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftDynamicsAX" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Dynamics" - }, - { - "field": "Microsoft.Compute/imageSKU", - "equals": "Pre-Req-AX7-Onebox-U8" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftDynamicsAX" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Dynamics" - }, - { - "field": "Microsoft.Compute/imageSKU", - "equals": "Pre-Req-AX7-Onebox-V4" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "windows-data-science-vm" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsDesktop" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Windows-10" - } - ] - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Compute/virtualMachineScaleSets/extensions", - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000", - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.Compute/virtualMachineScaleSets/extensions/type", - "equals": "MicrosoftMonitoringAgent" - }, - { - "field": "Microsoft.Compute/virtualMachineScaleSets/extensions/publisher", - "equals": "Microsoft.EnterpriseCloud.Monitoring" - } - ] - }, - "deployment": { - "properties": { - "mode": "incremental", - "template": { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "vmName": { - "type": "string" - }, - "location": { - "type": "string" - }, - "logAnalytics": { - "type": "string" - } - }, - "variables": { - "vmExtensionName": "MicrosoftMonitoringAgent", - "vmExtensionPublisher": "Microsoft.EnterpriseCloud.Monitoring", - "vmExtensionType": "MicrosoftMonitoringAgent", - "vmExtensionTypeHandlerVersion": "1.0" - }, - "resources": [ - { - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/\u0027, variables(\u0027vmExtensionName\u0027))]", - "type": "Microsoft.Compute/virtualMachineScaleSets/extensions", - "location": "[parameters(\u0027location\u0027)]", - "apiVersion": "2018-06-01", - "properties": { - "publisher": "[variables(\u0027vmExtensionPublisher\u0027)]", - "type": "[variables(\u0027vmExtensionType\u0027)]", - "typeHandlerVersion": "[variables(\u0027vmExtensionTypeHandlerVersion\u0027)]", - "autoUpgradeMinorVersion": true, - "settings": { - "workspaceId": "[reference(parameters(\u0027logAnalytics\u0027), \u00272015-03-20\u0027).customerId]", - "stopOnMultipleConnections": "true" - }, - "protectedSettings": { - "workspaceKey": "[listKeys(parameters(\u0027logAnalytics\u0027), \u00272015-03-20\u0027).primarySharedKey]" - } - } - } - ], - "outputs": { - "policy": { - "type": "string", - "value": "[concat(\u0027Enabled extension for: \u0027, parameters(\u0027vmName\u0027))]" - } - } - }, - "parameters": { - "vmName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "logAnalytics": { - "value": "[parameters(\u0027logAnalytics\u0027)]" - } - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Vulnerabilities in security configuration on your virtual machine scale sets should be remediated", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Audit the OS vulnerabilities on your virtual machine scale sets to protect them from attacks.", - "metadata": { - "version": "3.0.0", - "category": "Security Center" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Compute/virtualMachineScaleSets" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Security/assessments", - "name": "00000000-0000-0000-0000-000000000000", - "existenceCondition": { - "field": "Microsoft.Security/assessments/status.code", - "in": [ - "NotApplicable", - "Healthy" - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1621 - Resource Availability", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Communications Protection control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1621" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1521 - Personnel Termination | Automated Notification", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Personnel Security control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1521" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1127 - Time Stamps", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Audit and Accountability control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1127" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Add system-assigned managed identity to enable Guest Configuration assignments on virtual machines with no identities", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "This policy adds a system-assigned managed identity to virtual machines hosted in Azure that are supported by Guest Configuration but do not have any managed identities. A system-assigned managed identity is a prerequisite for all Guest Configuration assignments and must be added to machines before using any Guest Configuration policy definitions. For more information on Guest Configuration, visit https://aka.ms/gcpol.", - "metadata": { - "category": "Guest Configuration", - "version": "3.0.0" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "dsvm-win*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "microsoft-aks", - "qubole-inc", - "datastax", - "couchbase", - "scalegrid", - "checkpoint", - "paloaltonetworks", - "debian" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "OpenLogic" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "CentOS*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "6*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Oracle" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Oracle-Linux" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "6*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "RedHat" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "RHEL", - "RHEL-HA", - "RHEL-SAP", - "RHEL-SAP-APPS", - "RHEL-SAP-HA", - "RHEL-SAP-HANA" - ] - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "6*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "RedHat" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "osa", - "rhel-byos" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "cis-centos-7-l1", - "cis-centos-7-v2-1-1-l1", - "cis-centos-8-l1", - "cis-debian-linux-8-l1", - "cis-debian-linux-9-l1", - "cis-nginx-centos-7-v1-1-0-l1", - "cis-oracle-linux-7-v2-0-0-l1", - "cis-oracle-linux-8-l1", - "cis-postgresql-11-centos-linux-7-level-1", - "cis-rhel-7-l2", - "cis-rhel-7-v2-2-0-l1", - "cis-rhel-8-l1", - "cis-suse-linux-12-v2-0-0-l1", - "cis-ubuntu-linux-1604-v1-0-0-l1", - "cis-ubuntu-linux-1804-l1" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "credativ" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "Debian" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "7*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Suse" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "SLES*" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "11*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Canonical" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "UbuntuServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "12*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "linux-data-science-vm-ubuntu", - "azureml", - "ubuntu-hpc", - "ubuntu-1804" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloudera" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "cloudera-centos-os" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "6*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloudera" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "cloudera-altus-centos-os" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "linux*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.linuxConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Linux*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "exists": "false" - }, - { - "field": "Microsoft.Compute/imagePublisher", - "notIn": [ - "OpenLogic", - "RedHat", - "credativ", - "Suse", - "Canonical", - "microsoft-dsvm", - "cloudera", - "microsoft-ads", - "center-for-internet-security-inc", - "Oracle", - "AzureDatabricks", - "azureopenshift" - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "value": "[requestContext().apiVersion]", - "greaterOrEquals": "2018-10-01" - }, - { - "anyOf": [ - { - "field": "identity.type", - "exists": "false" - }, - { - "field": "identity.type", - "equals": "None" - } - ] - } - ] - }, - "then": { - "effect": "modify", - "details": { - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "operations": [ - { - "operation": "addOrReplace", - "field": "identity.type", - "value": "SystemAssigned" - } - ] - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Audit Windows machines that have extra accounts in the Administrators group", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if the local Administrators group contains members that are not listed in the policy parameter.", - "metadata": { - "category": "Guest Configuration", - "version": "2.0.0", - "requiredProviders": [ - "Microsoft.GuestConfiguration" - ], - "guestConfiguration": { - "name": "AdministratorsGroupMembers", - "version": "1.*", - "configurationParameter": { - "Members": "[LocalGroup]AdministratorsGroup;Members" - } - } - }, - "parameters": { - "IncludeArcMachines": { - "type": "String", - "metadata": { - "displayName": "Include Arc connected servers", - "description": "By selecting this option, you agree to be charged monthly per Arc connected machine.", - "portalReview": "true" - }, - "allowedValues": [ - "true", - "false" - ], - "defaultValue": "false" - }, - "Members": { - "type": "String", - "metadata": { - "displayName": "Members", - "description": "A semicolon-separated list of all the expected members of the Administrators local group. Ex: Administrator; myUser1; myUser2" - }, - "allowedValues": [], - "defaultValue": "Administrator" - } - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "dsvm-win*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "value": "[parameters(\u0027IncludeArcMachines\u0027)]", - "equals": "true" - }, - { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.ConnectedVMwarevSphere/virtualMachines" - }, - { - "field": "Microsoft.ConnectedVMwarevSphere/virtualMachines/osProfile.osType", - "like": "windows*" - } - ] - } - ] - } - ] - } - ] - }, - "then": { - "effect": "auditIfNotExists", - "details": { - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "AdministratorsGroupMembers", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus", - "equals": "Compliant" - }, - { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash", - "equals": "[base64(concat(\u0027[LocalGroup]AdministratorsGroup;Members\u0027, \u0027=\u0027, parameters(\u0027Members\u0027)))]" - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Deploy Diagnostic Settings for Search Services to Event Hub", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Deploys the diagnostic settings for Search Services to stream to a regional Event Hub when any Search Services which is missing this diagnostic settings is created or updated.", - "metadata": { - "version": "2.0.0", - "category": "Monitoring" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - }, - "profileName": { - "type": "String", - "metadata": { - "displayName": "Profile name", - "description": "The diagnostic settings profile name" - }, - "defaultValue": "setbypolicy_eventHub" - }, - "eventHubRuleId": { - "type": "String", - "metadata": { - "displayName": "Event Hub Authorization Rule Id", - "description": "The Event Hub authorization rule Id for Azure Diagnostics. The authorization rule needs to be at Event Hub namespace level. e.g. /subscriptions/{subscription Id}/resourceGroups/{resource group}/providers/Microsoft.EventHub/namespaces/{Event Hub namespace}/authorizationrules/{authorization rule}", - "strongType": "Microsoft.EventHub/Namespaces/AuthorizationRules", - "assignPermissions": true - } - }, - "eventHubLocation": { - "type": "String", - "metadata": { - "displayName": "Event Hub Location", - "description": "The location the Event Hub resides in. Only Search Services in this location will be linked to this Event Hub.", - "strongType": "location" - }, - "defaultValue": "" - }, - "metricsEnabled": { - "type": "String", - "metadata": { - "displayName": "Enable metrics", - "description": "Whether to enable metrics stream to the Event Hub - True or False" - }, - "allowedValues": [ - "True", - "False" - ], - "defaultValue": "False" - }, - "logsEnabled": { - "type": "String", - "metadata": { - "displayName": "Enable logs", - "description": "Whether to enable logs stream to the Event Hub - True or False" - }, - "allowedValues": [ - "True", - "False" - ], - "defaultValue": "True" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Search/searchServices" - }, - { - "anyOf": [ - { - "value": "[parameters(\u0027eventHubLocation\u0027)]", - "equals": "" - }, - { - "field": "location", - "equals": "[parameters(\u0027eventHubLocation\u0027)]" - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Insights/diagnosticSettings", - "name": "[parameters(\u0027profileName\u0027)]", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.Insights/diagnosticSettings/logs.enabled", - "equals": "[parameters(\u0027logsEnabled\u0027)]" - }, - { - "field": "Microsoft.Insights/diagnosticSettings/metrics.enabled", - "equals": "[parameters(\u0027metricsEnabled\u0027)]" - } - ] - }, - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "deployment": { - "properties": { - "mode": "incremental", - "template": { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "resourceName": { - "type": "string" - }, - "location": { - "type": "string" - }, - "eventHubRuleId": { - "type": "string" - }, - "metricsEnabled": { - "type": "string" - }, - "logsEnabled": { - "type": "string" - }, - "profileName": { - "type": "string" - } - }, - "variables": {}, - "resources": [ - { - "type": "Microsoft.Search/searchServices/providers/diagnosticSettings", - "apiVersion": "2017-05-01-preview", - "name": "[concat(parameters(\u0027resourceName\u0027), \u0027/\u0027, \u0027Microsoft.Insights/\u0027, parameters(\u0027profileName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "dependsOn": [], - "properties": { - "eventHubAuthorizationRuleId": "[parameters(\u0027eventHubRuleId\u0027)]", - "metrics": [ - { - "category": "AllMetrics", - "enabled": "[parameters(\u0027metricsEnabled\u0027)]", - "retentionPolicy": { - "enabled": false, - "days": 0 - } - } - ], - "logs": [ - { - "category": "OperationLogs", - "enabled": "[parameters(\u0027logsEnabled\u0027)]" - } - ] - } - } - ], - "outputs": {} - }, - "parameters": { - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "resourceName": { - "value": "[field(\u0027name\u0027)]" - }, - "eventHubRuleId": { - "value": "[parameters(\u0027eventHubRuleId\u0027)]" - }, - "metricsEnabled": { - "value": "[parameters(\u0027metricsEnabled\u0027)]" - }, - "logsEnabled": { - "value": "[parameters(\u0027logsEnabled\u0027)]" - }, - "profileName": { - "value": "[parameters(\u0027profileName\u0027)]" - } - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Show audit results from Windows VMs configurations in \u0027Security Options - Devices\u0027", - "policyType": "BuiltIn", - "mode": "All", - "description": "This policy should only be used along with its corresponding deploy policy in an initiative. This definition allows Azure Policy to process the results of auditing Windows virtual machines with non-compliant settings in Group Policy category: \u0027Security Options - Devices\u0027. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol", - "metadata": { - "version": "1.0.0-deprecated", - "category": "Guest Configuration", - "deprecated": true - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "dsvm-windows" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - } - ] - }, - "then": { - "effect": "auditIfNotExists", - "details": { - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "AzureBaseline_SecurityOptionsDevices", - "existenceCondition": { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus", - "equals": "Compliant" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Deploy default Log Analytics Extension for Ubuntu VMs", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "This policy deploys the Log Analytics Extension on Ubuntu VMs, and connects to the selected Log Analytics workspace", - "metadata": { - "version": "1.0.1-deprecated", - "category": "Compute", - "deprecated": true - }, - "parameters": { - "logAnalytics": { - "type": "String", - "metadata": { - "displayName": "Log Analytics workspace", - "description": "Select Log Analytics workspace from dropdown list. If this workspace is outside of the scope of the assignment you must manually grant \u0027Log Analytics Contributor\u0027 permissions (or similar) to the policy assignment\u0027s principal ID.", - "strongType": "omsWorkspace" - } - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "Canonical" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "UbuntuServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "in": [ - "18.04-LTS", - "16.04-LTS", - "16.04.0-LTS", - "14.04.2-LTS", - "12.04.5-LTS" - ] - } - ] - }, - "then": { - "effect": "deployIfNotExists", - "details": { - "type": "Microsoft.Compute/virtualMachines/extensions", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.Compute/virtualMachines/extensions/type", - "equals": "OmsAgentForLinux" - }, - { - "field": "Microsoft.Compute/virtualMachines/extensions/publisher", - "equals": "Microsoft.EnterpriseCloud.Monitoring" - } - ] - }, - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "deployment": { - "properties": { - "mode": "incremental", - "template": { - "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "vmName": { - "type": "string" - }, - "location": { - "type": "string" - }, - "logAnalytics": { - "type": "string" - } - }, - "resources": [ - { - "name": "[concat(parameters(\u0027vmName\u0027),\u0027/omsPolicy\u0027)]", - "type": "Microsoft.Compute/virtualMachines/extensions", - "location": "[parameters(\u0027location\u0027)]", - "apiVersion": "2017-12-01", - "properties": { - "publisher": "Microsoft.EnterpriseCloud.Monitoring", - "type": "OmsAgentForLinux", - "typeHandlerVersion": "1.4", - "autoUpgradeMinorVersion": true, - "settings": { - "workspaceId": "[reference(parameters(\u0027logAnalytics\u0027), \u00272015-03-20\u0027).customerId]" - }, - "protectedSettings": { - "workspaceKey": "[listKeys(parameters(\u0027logAnalytics\u0027), \u00272015-03-20\u0027).primarySharedKey]" - } - } - } - ], - "outputs": { - "policy": { - "type": "string", - "value": "[concat(\u0027Enabled monitoring for Linux VM\u0027, \u0027: \u0027, parameters(\u0027vmName\u0027))]" - } - } - }, - "parameters": { - "vmName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "logAnalytics": { - "value": "[parameters(\u0027logAnalytics\u0027)]" - } - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "App Configuration should disable public network access", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Disabling public network access improves security by ensuring that the resource isn\u0027t exposed on the public internet. You can limit exposure of your resources by creating private endpoints instead. Learn more at: https://aka.ms/appconfig/private-endpoint.", - "metadata": { - "version": "1.0.0", - "category": "App Configuration" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.AppConfiguration/configurationStores" - }, - { - "field": "Microsoft.AppConfiguration/configurationStores/publicNetworkAccess", - "notEquals": "Disabled" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1385 - Information Spillage Response", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Incident Response control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1385" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Audit Windows machines that do not have the specified Windows PowerShell modules installed", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if a module isn\u0027t available in a location specified by the environment variable PSModulePath.", - "metadata": { - "category": "Guest Configuration", - "version": "3.0.0", - "requiredProviders": [ - "Microsoft.GuestConfiguration" - ], - "guestConfiguration": { - "name": "WindowsPowerShellModules", - "version": "1.*", - "configurationParameter": { - "Modules": "[PowerShellModules]PowerShellModules1;Modules" - } - } - }, - "parameters": { - "IncludeArcMachines": { - "type": "String", - "metadata": { - "displayName": "Include Arc connected servers", - "description": "By selecting this option, you agree to be charged monthly per Arc connected machine.", - "portalReview": "true" - }, - "allowedValues": [ - "true", - "false" - ], - "defaultValue": "false" - }, - "Modules": { - "type": "String", - "metadata": { - "displayName": "PowerShell Modules", - "description": "A semicolon-separated list of the names of the PowerShell modules that should be installed. You may also specify a specific version of a module that should be installed by including a comma after the module name, followed by the desired version. Example: PSDscResources; SqlServerDsc, 12.0.0.0; ComputerManagementDsc, 6.1.0.0" - } - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of this policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "dsvm-win*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "value": "[parameters(\u0027IncludeArcMachines\u0027)]", - "equals": "true" - }, - { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.ConnectedVMwarevSphere/virtualMachines" - }, - { - "field": "Microsoft.ConnectedVMwarevSphere/virtualMachines/osProfile.osType", - "like": "windows*" - } - ] - } - ] - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "[concat(\u0027WindowsPowerShellModules$pid\u0027, uniqueString(policy().assignmentId, policy().definitionReferenceId))]", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus", - "equals": "Compliant" - }, - { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash", - "equals": "[base64(concat(\u0027[PowerShellModules]PowerShellModules1;Modules\u0027, \u0027=\u0027, parameters(\u0027Modules\u0027)))]" - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Azure Monitor solution \u0027Security and Audit\u0027 must be deployed", - "policyType": "BuiltIn", - "mode": "All", - "description": "This policy ensures that Security and Audit is deployed.", - "metadata": { - "version": "1.0.0", - "category": "Monitoring" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Resources/subscriptions" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.OperationsManagement/solutions", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.OperationsManagement/solutions/provisioningState", - "equals": "Succeeded" - }, - { - "field": "name", - "like": "Security(*)" - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1160 - Security Authorization", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Security Assessment and Authorization control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1160" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1545 - Risk Assessment", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Risk Assessment control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1545" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1179 - Baseline Configuration | Reviews And Updates", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Configuration Management control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1179" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Audit API Applications that are not using latest supported PHP Framework", - "policyType": "BuiltIn", - "mode": "All", - "description": "Use the latest supported PHP version for the latest security classes. Using older classes and types can make your application vulnerable.", - "metadata": { - "version": "1.0.0-deprecated", - "category": "Security Center", - "deprecated": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "allof": [ - { - "field": "type", - "equals": "microsoft.Web/sites" - }, - { - "anyof": [ - { - "field": "kind", - "equals": "api" - }, - { - "field": "kind", - "equals": "apiApp" - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Security/complianceResults", - "name": "UseLatestPHP", - "existenceCondition": { - "field": "Microsoft.Security/complianceResults/resourceStatus", - "in": [ - "OffByPolicy", - "Healthy" - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Windows machines should meet requirements for \u0027Security Options - Network Access\u0027", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Windows machines should have the specified Group Policy settings in the category \u0027Security Options - Network Access\u0027 for including access for anonymous users, local accounts, and remote access to the registry. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.", - "metadata": { - "category": "Guest Configuration", - "version": "3.0.0", - "requiredProviders": [ - "Microsoft.GuestConfiguration" - ], - "guestConfiguration": { - "name": "AzureBaseline_SecurityOptionsNetworkAccess", - "version": "1.*", - "configurationParameter": { - "NetworkAccessRemotelyAccessibleRegistryPaths": "Network access: Remotely accessible registry paths;ExpectedValue", - "NetworkAccessRemotelyAccessibleRegistryPathsAndSubpaths": "Network access: Remotely accessible registry paths and sub-paths;ExpectedValue", - "NetworkAccessSharesThatCanBeAccessedAnonymously": "Network access: Shares that can be accessed anonymously;ExpectedValue" - } - } - }, - "parameters": { - "IncludeArcMachines": { - "type": "String", - "metadata": { - "displayName": "Include Arc connected servers", - "description": "By selecting this option, you agree to be charged monthly per Arc connected machine.", - "portalReview": "true" - }, - "allowedValues": [ - "true", - "false" - ], - "defaultValue": "false" - }, - "NetworkAccessRemotelyAccessibleRegistryPaths": { - "type": "String", - "metadata": { - "displayName": "Network access: Remotely accessible registry paths", - "description": "Specifies which registry paths will be accessible over the network, regardless of the users or groups listed in the access control list (ACL) of the \u0060winreg\u0060 registry key." - }, - "defaultValue": "System\\CurrentControlSet\\Control\\ProductOptions|#|System\\CurrentControlSet\\Control\\Server Applications|#|Software\\Microsoft\\Windows NT\\CurrentVersion" - }, - "NetworkAccessRemotelyAccessibleRegistryPathsAndSubpaths": { - "type": "String", - "metadata": { - "displayName": "Network access: Remotely accessible registry paths and sub-paths", - "description": "Specifies which registry paths and sub-paths will be accessible over the network, regardless of the users or groups listed in the access control list (ACL) of the \u0060winreg\u0060 registry key." - }, - "defaultValue": "System\\CurrentControlSet\\Control\\Print\\Printers|#|System\\CurrentControlSet\\Services\\Eventlog|#|Software\\Microsoft\\OLAP Server|#|Software\\Microsoft\\Windows NT\\CurrentVersion\\Print|#|Software\\Microsoft\\Windows NT\\CurrentVersion\\Windows|#|System\\CurrentControlSet\\Control\\ContentIndex|#|System\\CurrentControlSet\\Control\\Terminal Server|#|System\\CurrentControlSet\\Control\\Terminal Server\\UserConfig|#|System\\CurrentControlSet\\Control\\Terminal Server\\DefaultUserConfiguration|#|Software\\Microsoft\\Windows NT\\CurrentVersion\\Perflib|#|System\\CurrentControlSet\\Services\\SysmonLog" - }, - "NetworkAccessSharesThatCanBeAccessedAnonymously": { - "type": "String", - "metadata": { - "displayName": "Network access: Shares that can be accessed anonymously", - "description": "Specifies which network shares can be accessed by anonymous users. The default configuration for this policy setting has little effect because all users have to be authenticated before they can access shared resources on the server." - }, - "defaultValue": "0" - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of this policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "dsvm-win*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "value": "[parameters(\u0027IncludeArcMachines\u0027)]", - "equals": "true" - }, - { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.ConnectedVMwarevSphere/virtualMachines" - }, - { - "field": "Microsoft.ConnectedVMwarevSphere/virtualMachines/osProfile.osType", - "like": "windows*" - } - ] - } - ] - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "AzureBaseline_SecurityOptionsNetworkAccess", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus", - "equals": "Compliant" - }, - { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash", - "equals": "[base64(concat(\u0027Network access: Remotely accessible registry paths;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027NetworkAccessRemotelyAccessibleRegistryPaths\u0027), \u0027,\u0027, \u0027Network access: Remotely accessible registry paths and sub-paths;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027NetworkAccessRemotelyAccessibleRegistryPathsAndSubpaths\u0027), \u0027,\u0027, \u0027Network access: Shares that can be accessed anonymously;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027NetworkAccessSharesThatCanBeAccessedAnonymously\u0027)))]" - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1561 - Allocation Of Resources", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Services Acquisition control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1561" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Secure transfer to storage accounts should be enabled", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Audit requirement of Secure transfer in your storage account. Secure transfer is an option that forces your storage account to accept requests only from secure connections (HTTPS). Use of HTTPS ensures authentication between the server and the service and protects data in transit from network layer attacks such as man-in-the-middle, eavesdropping, and session-hijacking", - "metadata": { - "version": "2.0.0", - "category": "Storage" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "The effect determines what happens when the policy rule is evaluated to match" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Storage/storageAccounts" - }, - { - "anyOf": [ - { - "allOf": [ - { - "value": "[requestContext().apiVersion]", - "less": "2019-04-01" - }, - { - "field": "Microsoft.Storage/storageAccounts/supportsHttpsTrafficOnly", - "exists": "false" - } - ] - }, - { - "field": "Microsoft.Storage/storageAccounts/supportsHttpsTrafficOnly", - "equals": "false" - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1100 - Audit And Accountability Policy And Procedures", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Audit and Accountability control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1100" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1637 - Boundary Protection | Fail Secure", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Communications Protection control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1637" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Windows machines should have Log Analytics agent installed on Azure Arc", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Machines are non-compliant if Log Analytics agent is not installed on Azure Arc enabled windows server.", - "metadata": { - "category": "Guest Configuration", - "version": "2.0.0", - "requiredProviders": [ - "Microsoft.GuestConfiguration" - ], - "guestConfiguration": { - "name": "WindowsLogAnalyticsAgentInstalled", - "version": "1.*" - } - }, - "parameters": { - "IncludeArcMachines": { - "type": "String", - "metadata": { - "displayName": "Include Arc connected servers", - "description": "By selecting this option, you agree to be charged monthly per Arc connected machine.", - "portalReview": "true" - }, - "allowedValues": [ - "true", - "false" - ], - "defaultValue": "false" - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of this policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "value": "[parameters(\u0027IncludeArcMachines\u0027)]", - "equals": "true" - }, - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "WindowsLogAnalyticsAgentInstalled", - "existenceCondition": { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus", - "equals": "Compliant" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Deploy prerequisites to audit Windows VMs configurations in \u0027Administrative Templates - System\u0027", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: \u0027Administrative Templates - System\u0027. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol", - "metadata": { - "version": "1.2.0-deprecated", - "category": "Guest Configuration", - "requiredProviders": [ - "Microsoft.GuestConfiguration" - ], - "deprecated": true - }, - "parameters": { - "AlwaysUseClassicLogon": { - "type": "String", - "metadata": { - "displayName": "Always use classic logon", - "description": "Specifies whether to force the user to log on to the computer using the classic logon screen. This setting only works when the computer is not on a domain." - }, - "defaultValue": "0" - }, - "BootStartDriverInitializationPolicy": { - "type": "String", - "metadata": { - "displayName": "Boot-Start Driver Initialization Policy", - "description": "Specifies which boot-start drivers are initialized based on a classification determined by an Early Launch Antimalware boot-start driver." - }, - "defaultValue": "3" - }, - "EnableWindowsNTPClient": { - "type": "String", - "metadata": { - "displayName": "Enable Windows NTP Client", - "description": "Specifies whether the Windows NTP Client is enabled. Enabling the Windows NTP Client allows your computer to synchronize its computer clock with other NTP servers." - }, - "defaultValue": "1" - }, - "TurnOnConveniencePINSignin": { - "type": "String", - "metadata": { - "displayName": "Turn on convenience PIN sign-in", - "description": "Specifies whether a domain user can sign in using a convenience PIN." - }, - "defaultValue": "0" - } - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "dsvm-windows" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - } - ] - }, - "then": { - "effect": "deployIfNotExists", - "details": { - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "AzureBaseline_AdministrativeTemplatesSystem", - "existenceCondition": { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash", - "equals": "[base64(concat(\u0027Always use classic logon;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027AlwaysUseClassicLogon\u0027), \u0027,\u0027, \u0027Boot-Start Driver Initialization Policy;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027BootStartDriverInitializationPolicy\u0027), \u0027,\u0027, \u0027Enable Windows NTP Client;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027EnableWindowsNTPClient\u0027), \u0027,\u0027, \u0027Turn on convenience PIN sign-in;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027TurnOnConveniencePINSignin\u0027)))]" - }, - "deployment": { - "properties": { - "mode": "incremental", - "parameters": { - "vmName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "type": { - "value": "[field(\u0027type\u0027)]" - }, - "configurationName": { - "value": "AzureBaseline_AdministrativeTemplatesSystem" - }, - "AlwaysUseClassicLogon": { - "value": "[parameters(\u0027AlwaysUseClassicLogon\u0027)]" - }, - "BootStartDriverInitializationPolicy": { - "value": "[parameters(\u0027BootStartDriverInitializationPolicy\u0027)]" - }, - "EnableWindowsNTPClient": { - "value": "[parameters(\u0027EnableWindowsNTPClient\u0027)]" - }, - "TurnOnConveniencePINSignin": { - "value": "[parameters(\u0027TurnOnConveniencePINSignin\u0027)]" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "vmName": { - "type": "string" - }, - "location": { - "type": "string" - }, - "type": { - "type": "string" - }, - "configurationName": { - "type": "string" - }, - "AlwaysUseClassicLogon": { - "type": "string" - }, - "BootStartDriverInitializationPolicy": { - "type": "string" - }, - "EnableWindowsNTPClient": { - "type": "string" - }, - "TurnOnConveniencePINSignin": { - "type": "string" - } - }, - "resources": [ - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027microsoft.hybridcompute/machines\u0027))]", - "apiVersion": "2018-11-20", - "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/Microsoft.GuestConfiguration/\u0027, parameters(\u0027configurationName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "guestConfiguration": { - "name": "[parameters(\u0027configurationName\u0027)]", - "version": "1.*", - "configurationParameter": [ - { - "name": "Always use classic logon;ExpectedValue", - "value": "[parameters(\u0027AlwaysUseClassicLogon\u0027)]" - }, - { - "name": "Boot-Start Driver Initialization Policy;ExpectedValue", - "value": "[parameters(\u0027BootStartDriverInitializationPolicy\u0027)]" - }, - { - "name": "Enable Windows NTP Client;ExpectedValue", - "value": "[parameters(\u0027EnableWindowsNTPClient\u0027)]" - }, - { - "name": "Turn on convenience PIN sign-in;ExpectedValue", - "value": "[parameters(\u0027TurnOnConveniencePINSignin\u0027)]" - } - ] - } - } - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2018-11-20", - "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/Microsoft.GuestConfiguration/\u0027, parameters(\u0027configurationName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "guestConfiguration": { - "name": "[parameters(\u0027configurationName\u0027)]", - "version": "1.*", - "configurationParameter": [ - { - "name": "Always use classic logon;ExpectedValue", - "value": "[parameters(\u0027AlwaysUseClassicLogon\u0027)]" - }, - { - "name": "Boot-Start Driver Initialization Policy;ExpectedValue", - "value": "[parameters(\u0027BootStartDriverInitializationPolicy\u0027)]" - }, - { - "name": "Enable Windows NTP Client;ExpectedValue", - "value": "[parameters(\u0027EnableWindowsNTPClient\u0027)]" - }, - { - "name": "Turn on convenience PIN sign-in;ExpectedValue", - "value": "[parameters(\u0027TurnOnConveniencePINSignin\u0027)]" - } - ] - } - } - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2019-07-01", - "type": "Microsoft.Compute/virtualMachines", - "identity": { - "type": "SystemAssigned" - }, - "name": "[parameters(\u0027vmName\u0027)]", - "location": "[parameters(\u0027location\u0027)]" - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2019-07-01", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/AzurePolicyforWindows\u0027)]", - "type": "Microsoft.Compute/virtualMachines/extensions", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "publisher": "Microsoft.GuestConfiguration", - "type": "ConfigurationforWindows", - "typeHandlerVersion": "1.1", - "autoUpgradeMinorVersion": true, - "settings": {}, - "protectedSettings": {} - }, - "dependsOn": [ - "[concat(\u0027Microsoft.Compute/virtualMachines/\u0027,parameters(\u0027vmName\u0027),\u0027/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/\u0027,parameters(\u0027configurationName\u0027))]" - ] - } - ] - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1202 - Access Restrictions For Change", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Configuration Management control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1202" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Azure Machine Learning workspaces should use private link", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination. The Private Link platform handles the connectivity between the consumer and services over the Azure backbone network. By mapping private endpoints to Azure Machine Learning workspaces, data leakage risks are reduced. Learn more about private links at: https://docs.microsoft.com/azure/machine-learning/how-to-configure-private-link.", - "metadata": { - "version": "1.1.0", - "category": "Machine Learning" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.MachineLearningServices/workspaces" - }, - { - "count": { - "field": "Microsoft.MachineLearningServices/workspaces/privateEndpointConnections[*]", - "where": { - "field": "Microsoft.MachineLearningServices/workspaces/privateEndpointConnections[*].privateLinkServiceConnectionState.status", - "equals": "Approved" - } - }, - "less": 1 - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Inherit a tag from the subscription if missing", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Adds the specified tag with its value from the containing subscription when any resource missing this tag is created or updated. Existing resources can be remediated by triggering a remediation task. If the tag exists with a different value it will not be changed.", - "metadata": { - "category": "Tags", - "version": "1.0.0" - }, - "parameters": { - "tagName": { - "type": "String", - "metadata": { - "displayName": "Tag Name", - "description": "Name of the tag, such as \u0027environment\u0027" - } - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "[concat(\u0027tags[\u0027, parameters(\u0027tagName\u0027), \u0027]\u0027)]", - "exists": "false" - }, - { - "value": "[subscription().tags[parameters(\u0027tagName\u0027)]]", - "notEquals": "" - } - ] - }, - "then": { - "effect": "modify", - "details": { - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "operations": [ - { - "operation": "add", - "field": "[concat(\u0027tags[\u0027, parameters(\u0027tagName\u0027), \u0027]\u0027)]", - "value": "[subscription().tags[parameters(\u0027tagName\u0027)]]" - } - ] - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1438 - Media Sanitization", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Media Protection control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1438" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1365 - Incident Handling | Continuity Of Operations", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Incident Response control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1365" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1022 - Account Management | Shared / Group Account Credential Termination", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Access Control control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1022" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1464 - Monitoring Physical Access | Intrusion Alarms / Surveillance Equipment", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Physical and Environmental Protection control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1464" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Azure Monitor should collect activity logs from all regions", - "policyType": "BuiltIn", - "mode": "All", - "description": "This policy audits the Azure Monitor log profile which does not export activities from all Azure supported regions including global.", - "metadata": { - "version": "2.0.0", - "category": "Monitoring" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Resources/subscriptions" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Insights/logProfiles", - "existenceCondition": { - "allOf": [ - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "australiacentral" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "australiacentral2" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "australiaeast" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "australiasoutheast" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "brazilsouth" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "brazilsoutheast" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "canadacentral" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "canadaeast" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "centralindia" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "centralus" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "eastasia" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "eastus" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "eastus2" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "francecentral" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "francesouth" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "germanynorth" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "germanywestcentral" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "japaneast" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "japanwest" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "jioindiawest" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "koreacentral" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "koreasouth" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "northcentralus" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "northeurope" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "norwayeast" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "norwaywest" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "southafricanorth" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "southafricawest" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "southcentralus" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "southeastasia" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "southindia" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "switzerlandnorth" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "switzerlandwest" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "uaecentral" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "uaenorth" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "uksouth" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "ukwest" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "westcentralus" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "westeurope" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "westindia" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "westus" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "westus2" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "westus3" - } - }, - { - "not": { - "field": "Microsoft.Insights/logProfiles/locations[*]", - "notEquals": "global" - } - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Temp disks and cache for agent node pools in Azure Kubernetes Service clusters should be encrypted at host", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "To enhance data security, the data stored on the virtual machine (VM) host of your Azure Kubernetes Service nodes VMs should be encrypted at rest. This is a common requirement in many regulatory and industry compliance standards.", - "metadata": { - "version": "1.0.0", - "category": "Kubernetes" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "\u0027Audit\u0027 allows a non-compliant resource to be created or updated, but flags it as non-compliant. \u0027Deny\u0027 blocks the non-compliant resource creation or update. \u0027Disabled\u0027 turns off the policy." - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.ContainerService/managedClusters" - }, - { - "count": { - "field": "Microsoft.ContainerService/managedClusters/agentPoolProfiles[*]", - "where": { - "anyOf": [ - { - "field": "Microsoft.ContainerService/managedClusters/agentPoolProfiles[*].enableEncryptionAtHost", - "exists": "False" - }, - { - "field": "Microsoft.ContainerService/managedClusters/agentPoolProfiles[*].enableEncryptionAtHost", - "equals": "" - }, - { - "field": "Microsoft.ContainerService/managedClusters/agentPoolProfiles[*].enableEncryptionAtHost", - "equals": "false" - } - ] - } - }, - "greater": 0 - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1263 - Contingency Plan Testing", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Contingency Planning control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1263" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1096 - Role-Based Security Training | Practical Exercises", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Awareness and Training control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1096" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Audit Windows VMs with a pending reboot", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Requires that prerequisites are deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol. Machines are non-compliant if the machine is pending reboot for any of the following reasons: component based servicing, Windows Update, pending file rename, pending computer rename, configuration manager pending reboot. Each detection has a unique registry path.", - "metadata": { - "category": "Guest Configuration", - "version": "2.0.0", - "requiredProviders": [ - "Microsoft.GuestConfiguration" - ], - "guestConfiguration": { - "name": "WindowsPendingReboot", - "version": "1.*" - } - }, - "parameters": { - "IncludeArcMachines": { - "type": "String", - "metadata": { - "displayName": "Include Arc connected servers", - "description": "By selecting this option, you agree to be charged monthly per Arc connected machine.", - "portalReview": "true" - }, - "allowedValues": [ - "true", - "false" - ], - "defaultValue": "false" - } - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "dsvm-win*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "value": "[parameters(\u0027IncludeArcMachines\u0027)]", - "equals": "true" - }, - { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.ConnectedVMwarevSphere/virtualMachines" - }, - { - "field": "Microsoft.ConnectedVMwarevSphere/virtualMachines/osProfile.osType", - "like": "windows*" - } - ] - } - ] - } - ] - } - ] - }, - "then": { - "effect": "auditIfNotExists", - "details": { - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "WindowsPendingReboot", - "existenceCondition": { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus", - "equals": "Compliant" - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1260 - Contingency Training | Simulated Events", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Contingency Planning control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1260" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Web Application Firewall (WAF) should use the specified mode for Azure Front Door Service", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Mandates the use of \u0027Detection\u0027 or \u0027Prevention\u0027 mode to be active on all Web Application Firewall policies for Azure Front Door Service.", - "metadata": { - "version": "1.0.0", - "category": "Network" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - }, - "modeRequirement": { - "type": "String", - "metadata": { - "displayName": "Mode Requirement", - "description": "Mode required for all WAF policies" - }, - "allowedValues": [ - "Prevention", - "Detection" - ], - "defaultValue": "Detection" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Network/frontdoorwebapplicationfirewallpolicies" - }, - { - "field": "Microsoft.Network/frontdoorWebApplicationFirewallPolicies/policySettings.mode", - "notEquals": "[parameters(\u0027modeRequirement\u0027)]" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1694 - Information System Monitoring | Analyze Communications Traffic Anomalies", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Information Integrity control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1694" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Resource logs in Batch accounts should be enabled", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Audit enabling of resource logs. This enables you to recreate activity trails to use for investigation purposes; when a security incident occurs or when your network is compromised", - "metadata": { - "version": "5.0.0", - "category": "Batch" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - }, - "requiredRetentionDays": { - "type": "String", - "metadata": { - "displayName": "Required retention (days)", - "description": "The required resource logs retention in days" - }, - "defaultValue": "365" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Batch/batchAccounts" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Insights/diagnosticSettings", - "existenceCondition": { - "count": { - "field": "Microsoft.Insights/diagnosticSettings/logs[*]", - "where": { - "anyOf": [ - { - "allOf": [ - { - "field": "Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.enabled", - "equals": "true" - }, - { - "anyOf": [ - { - "field": "Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.days", - "equals": "0" - }, - { - "value": "[padLeft(current(\u0027Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.days\u0027), 3, \u00270\u0027)]", - "greaterOrEquals": "[padLeft(parameters(\u0027requiredRetentionDays\u0027), 3, \u00270\u0027)]" - } - ] - }, - { - "field": "Microsoft.Insights/diagnosticSettings/logs.enabled", - "equals": "true" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Insights/diagnosticSettings/logs.enabled", - "equals": "true" - }, - { - "anyOf": [ - { - "field": "Microsoft.Insights/diagnosticSettings/logs[*].retentionPolicy.enabled", - "notEquals": "true" - }, - { - "field": "Microsoft.Insights/diagnosticSettings/storageAccountId", - "exists": false - } - ] - } - ] - } - ] - } - }, - "greaterOrEquals": 1 - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Deploy prerequisites to audit Windows VMs configurations in \u0027System Audit Policies - Detailed Tracking\u0027", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: \u0027System Audit Policies - Detailed Tracking\u0027. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol", - "metadata": { - "version": "1.2.0-deprecated", - "category": "Guest Configuration", - "requiredProviders": [ - "Microsoft.GuestConfiguration" - ], - "deprecated": true - }, - "parameters": { - "AuditProcessTermination": { - "type": "String", - "metadata": { - "displayName": "Audit Process Termination", - "description": "Specifies whether audit events are generated when a process has exited. Recommended for monitoring termination of critical processes." - }, - "allowedValues": [ - "No Auditing", - "Success", - "Failure", - "Success and Failure" - ], - "defaultValue": "No Auditing" - } - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "dsvm-windows" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - } - ] - }, - "then": { - "effect": "deployIfNotExists", - "details": { - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "AzureBaseline_SystemAuditPoliciesDetailedTracking", - "existenceCondition": { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash", - "equals": "[base64(concat(\u0027Audit Process Termination;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027AuditProcessTermination\u0027)))]" - }, - "deployment": { - "properties": { - "mode": "incremental", - "parameters": { - "vmName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "type": { - "value": "[field(\u0027type\u0027)]" - }, - "configurationName": { - "value": "AzureBaseline_SystemAuditPoliciesDetailedTracking" - }, - "AuditProcessTermination": { - "value": "[parameters(\u0027AuditProcessTermination\u0027)]" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "vmName": { - "type": "string" - }, - "location": { - "type": "string" - }, - "type": { - "type": "string" - }, - "configurationName": { - "type": "string" - }, - "AuditProcessTermination": { - "type": "string" - } - }, - "resources": [ - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027microsoft.hybridcompute/machines\u0027))]", - "apiVersion": "2018-11-20", - "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/Microsoft.GuestConfiguration/\u0027, parameters(\u0027configurationName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "guestConfiguration": { - "name": "[parameters(\u0027configurationName\u0027)]", - "version": "1.*", - "configurationParameter": [ - { - "name": "Audit Process Termination;ExpectedValue", - "value": "[parameters(\u0027AuditProcessTermination\u0027)]" - } - ] - } - } - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2018-11-20", - "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/Microsoft.GuestConfiguration/\u0027, parameters(\u0027configurationName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "guestConfiguration": { - "name": "[parameters(\u0027configurationName\u0027)]", - "version": "1.*", - "configurationParameter": [ - { - "name": "Audit Process Termination;ExpectedValue", - "value": "[parameters(\u0027AuditProcessTermination\u0027)]" - } - ] - } - } - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2019-07-01", - "type": "Microsoft.Compute/virtualMachines", - "identity": { - "type": "SystemAssigned" - }, - "name": "[parameters(\u0027vmName\u0027)]", - "location": "[parameters(\u0027location\u0027)]" - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2019-07-01", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/AzurePolicyforWindows\u0027)]", - "type": "Microsoft.Compute/virtualMachines/extensions", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "publisher": "Microsoft.GuestConfiguration", - "type": "ConfigurationforWindows", - "typeHandlerVersion": "1.1", - "autoUpgradeMinorVersion": true, - "settings": {}, - "protectedSettings": {} - }, - "dependsOn": [ - "[concat(\u0027Microsoft.Compute/virtualMachines/\u0027,parameters(\u0027vmName\u0027),\u0027/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/\u0027,parameters(\u0027configurationName\u0027))]" - ] - } - ] - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1174 - Configuration Management Policy And Procedures", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Configuration Management control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1174" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1137 - Audit Generation", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Audit and Accountability control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1137" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1367 - Incident Handling | Insider Threats - Specific Capabilities", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Incident Response control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1367" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1552 - Vulnerability Scanning | Update By Frequency / Prior To New Scan / When Identified", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Risk Assessment control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1552" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Configure Azure Monitor Private Link Scope to use private DNS zones", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Use private DNS zones to override the DNS resolution for a private endpoint. A private DNS zone links to your virtual network to resolve to Azure Monitor private link scope. Learn more at: https://docs.microsoft.com/azure/azure-monitor/logs/private-link-security#connect-to-a-private-endpoint.", - "metadata": { - "version": "1.0.0", - "category": "Monitoring" - }, - "parameters": { - "privateDnsZoneId1": { - "type": "String", - "metadata": { - "displayName": "Private DNS Zone for global endpoints used by Azure Monitor", - "description": "One of the five private DNS zone IDs required for Microsoft.Insights/privateLinkScopes to resolve a private DNS Zone to your Azure Monitor Private Link scope.", - "strongType": "Microsoft.Network/privateDnsZones", - "assignPermissions": true - } - }, - "privateDnsZoneId2": { - "type": "String", - "metadata": { - "displayName": "Private DNS Zone for workspace-specific mapping to OMS agents endpoints", - "description": "One of the five private DNS zone IDs required for Microsoft.Insights/privateLinkScopes to resolve a private DNS Zone to your Azure Monitor Private Link scope.", - "strongType": "Microsoft.Network/privateDnsZones", - "assignPermissions": true - } - }, - "privateDnsZoneId3": { - "type": "String", - "metadata": { - "displayName": "Private DNS Zone for workspace-specific mapping to ingestion endpoints", - "description": "One of the five private DNS zone IDs required for Microsoft.Insights/privateLinkScopes to resolve a private DNS Zone to your Azure Monitor Private Link scope.", - "strongType": "Microsoft.Network/privateDnsZones", - "assignPermissions": true - } - }, - "privateDnsZoneId4": { - "type": "String", - "metadata": { - "displayName": "Private DNS Zone for workspace-specific mapping to the agent service automation endpoints", - "description": "One of the five private DNS zone IDs required for Microsoft.Insights/privateLinkScopes to resolve a private DNS Zone.", - "strongType": "Microsoft.Network/privateDnsZones", - "assignPermissions": true - } - }, - "privateDnsZoneId5": { - "type": "String", - "metadata": { - "displayName": "Private DNS Zone for connectivity to the global agent\u0027s solution packs storage account", - "description": "One of the five private DNS zone IDs required for Microsoft.Insights/privateLinkScopes to resolve a private DNS Zone.", - "strongType": "Microsoft.Network/privateDnsZones", - "assignPermissions": true - } - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Network/privateEndpoints" - }, - { - "count": { - "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*]", - "where": { - "allOf": [ - { - "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*].privateLinkServiceId", - "contains": "Microsoft.Insights/privateLinkScopes" - }, - { - "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*].groupIds[*]", - "equals": "azuremonitor" - } - ] - } - }, - "greaterOrEquals": 1 - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups", - "roleDefinitionIds": [ - "/providers/Microsoft.Authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "deployment": { - "properties": { - "mode": "incremental", - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "privateDnsZoneId1": { - "type": "string" - }, - "privateDnsZoneId2": { - "type": "string" - }, - "privateDnsZoneId3": { - "type": "string" - }, - "privateDnsZoneId4": { - "type": "string" - }, - "privateDnsZoneId5": { - "type": "string" - }, - "privateEndpointName": { - "type": "string" - }, - "location": { - "type": "string" - } - }, - "resources": [ - { - "name": "[concat(parameters(\u0027privateEndpointName\u0027), \u0027/deployedByPolicy\u0027)]", - "type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups", - "apiVersion": "2020-03-01", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "privateDnsZoneConfigs": [ - { - "name": "privateDnsZone1", - "properties": { - "privateDnsZoneId": "[parameters(\u0027privateDnsZoneId1\u0027)]" - } - }, - { - "name": "privateDnsZone2", - "properties": { - "privateDnsZoneId": "[parameters(\u0027privateDnsZoneId2\u0027)]" - } - }, - { - "name": "privateDnsZone3", - "properties": { - "privateDnsZoneId": "[parameters(\u0027privateDnsZoneId3\u0027)]" - } - }, - { - "name": "privateDnsZone4", - "properties": { - "privateDnsZoneId": "[parameters(\u0027privateDnsZoneId4\u0027)]" - } - }, - { - "name": "privateDnsZone5", - "properties": { - "privateDnsZoneId": "[parameters(\u0027privateDnsZoneId5\u0027)]" - } - } - ] - } - } - ] - }, - "parameters": { - "privateDnsZoneId1": { - "value": "[parameters(\u0027privateDnsZoneId1\u0027)]" - }, - "privateDnsZoneId2": { - "value": "[parameters(\u0027privateDnsZoneId2\u0027)]" - }, - "privateDnsZoneId3": { - "value": "[parameters(\u0027privateDnsZoneId3\u0027)]" - }, - "privateDnsZoneId4": { - "value": "[parameters(\u0027privateDnsZoneId4\u0027)]" - }, - "privateDnsZoneId5": { - "value": "[parameters(\u0027privateDnsZoneId5\u0027)]" - }, - "privateEndpointName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - } - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Deploy prerequisites to audit Windows VMs configurations in \u0027Security Options - System settings\u0027", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "This policy creates a Guest Configuration assignment to audit Windows virtual machines with non-compliant settings in Group Policy category: \u0027Security Options - System settings\u0027. It also creates a system-assigned managed identity and deploys the VM extension for Guest Configuration. This policy should only be used along with its corresponding audit policy in an initiative. For more information on Guest Configuration policies, please visit https://aka.ms/gcpol", - "metadata": { - "version": "1.2.0-deprecated", - "category": "Guest Configuration", - "requiredProviders": [ - "Microsoft.GuestConfiguration" - ], - "deprecated": true - }, - "parameters": { - "SystemSettingsUseCertificateRulesOnWindowsExecutablesForSoftwareRestrictionPolicies": { - "type": "String", - "metadata": { - "displayName": "System settings: Use Certificate Rules on Windows Executables for Software Restriction Policies", - "description": "Specifies whether digital certificates are processed when software restriction policies are enabled and a user or process attempts to run software with an .exe file name extension. It enables or disables certificate rules (a type of software restriction policies rule). For certificate rules to take effect in software restriction policies, you must enable this policy setting." - }, - "defaultValue": "1" - } - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "dsvm-windows" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - } - ] - }, - "then": { - "effect": "deployIfNotExists", - "details": { - "roleDefinitionIds": [ - "/providers/microsoft.authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "AzureBaseline_SecurityOptionsSystemsettings", - "existenceCondition": { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash", - "equals": "[base64(concat(\u0027System settings: Use Certificate Rules on Windows Executables for Software Restriction Policies;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027SystemSettingsUseCertificateRulesOnWindowsExecutablesForSoftwareRestrictionPolicies\u0027)))]" - }, - "deployment": { - "properties": { - "mode": "incremental", - "parameters": { - "vmName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - }, - "type": { - "value": "[field(\u0027type\u0027)]" - }, - "configurationName": { - "value": "AzureBaseline_SecurityOptionsSystemsettings" - }, - "SystemSettingsUseCertificateRulesOnWindowsExecutablesForSoftwareRestrictionPolicies": { - "value": "[parameters(\u0027SystemSettingsUseCertificateRulesOnWindowsExecutablesForSoftwareRestrictionPolicies\u0027)]" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "vmName": { - "type": "string" - }, - "location": { - "type": "string" - }, - "type": { - "type": "string" - }, - "configurationName": { - "type": "string" - }, - "SystemSettingsUseCertificateRulesOnWindowsExecutablesForSoftwareRestrictionPolicies": { - "type": "string" - } - }, - "resources": [ - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027microsoft.hybridcompute/machines\u0027))]", - "apiVersion": "2018-11-20", - "type": "Microsoft.HybridCompute/machines/providers/guestConfigurationAssignments", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/Microsoft.GuestConfiguration/\u0027, parameters(\u0027configurationName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "guestConfiguration": { - "name": "[parameters(\u0027configurationName\u0027)]", - "version": "1.*", - "configurationParameter": [ - { - "name": "System settings: Use Certificate Rules on Windows Executables for Software Restriction Policies;ExpectedValue", - "value": "[parameters(\u0027SystemSettingsUseCertificateRulesOnWindowsExecutablesForSoftwareRestrictionPolicies\u0027)]" - } - ] - } - } - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2018-11-20", - "type": "Microsoft.Compute/virtualMachines/providers/guestConfigurationAssignments", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/Microsoft.GuestConfiguration/\u0027, parameters(\u0027configurationName\u0027))]", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "guestConfiguration": { - "name": "[parameters(\u0027configurationName\u0027)]", - "version": "1.*", - "configurationParameter": [ - { - "name": "System settings: Use Certificate Rules on Windows Executables for Software Restriction Policies;ExpectedValue", - "value": "[parameters(\u0027SystemSettingsUseCertificateRulesOnWindowsExecutablesForSoftwareRestrictionPolicies\u0027)]" - } - ] - } - } - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2019-07-01", - "type": "Microsoft.Compute/virtualMachines", - "identity": { - "type": "SystemAssigned" - }, - "name": "[parameters(\u0027vmName\u0027)]", - "location": "[parameters(\u0027location\u0027)]" - }, - { - "condition": "[equals(toLower(parameters(\u0027type\u0027)), toLower(\u0027Microsoft.Compute/virtualMachines\u0027))]", - "apiVersion": "2019-07-01", - "name": "[concat(parameters(\u0027vmName\u0027), \u0027/AzurePolicyforWindows\u0027)]", - "type": "Microsoft.Compute/virtualMachines/extensions", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "publisher": "Microsoft.GuestConfiguration", - "type": "ConfigurationforWindows", - "typeHandlerVersion": "1.1", - "autoUpgradeMinorVersion": true, - "settings": {}, - "protectedSettings": {} - }, - "dependsOn": [ - "[concat(\u0027Microsoft.Compute/virtualMachines/\u0027,parameters(\u0027vmName\u0027),\u0027/providers/Microsoft.GuestConfiguration/guestConfigurationAssignments/\u0027,parameters(\u0027configurationName\u0027))]" - ] - } - ] - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Azure Machine Learning workspaces should disable public network access", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Disabling public network access improves security by ensuring that the machine learning workspaces aren\u0027t exposed on the public internet. You can limit exposure of your workspaces by creating private endpoints instead. Learn more at: https://aka.ms/privateendpoints.", - "metadata": { - "version": "1.2.0", - "category": "Machine Learning" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.MachineLearningServices/workspaces" - }, - { - "field": "Microsoft.MachineLearningServices/workspaces/publicNetworkAccess", - "exists": "true" - }, - { - "field": "Microsoft.MachineLearningServices/workspaces/publicNetworkAccess", - "notEquals": "Disabled" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Windows machines should meet requirements for \u0027System Audit Policies - Account Logon\u0027", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Windows machines should have the specified Group Policy settings in the category \u0027System Audit Policies - Account Logon\u0027 for auditing credential validation and other account logon events. This policy requires that the Guest Configuration prerequisites have been deployed to the policy assignment scope. For details, visit https://aka.ms/gcpol.", - "metadata": { - "category": "Guest Configuration", - "version": "3.0.0", - "requiredProviders": [ - "Microsoft.GuestConfiguration" - ], - "guestConfiguration": { - "name": "AzureBaseline_SystemAuditPoliciesAccountLogon", - "version": "1.*", - "configurationParameter": { - "AuditCredentialValidation": "Audit Credential Validation;ExpectedValue" - } - } - }, - "parameters": { - "IncludeArcMachines": { - "type": "String", - "metadata": { - "displayName": "Include Arc connected servers", - "description": "By selecting this option, you agree to be charged monthly per Arc connected machine.", - "portalReview": "true" - }, - "allowedValues": [ - "true", - "false" - ], - "defaultValue": "false" - }, - "AuditCredentialValidation": { - "type": "String", - "metadata": { - "displayName": "Audit Credential Validation", - "description": "Specifies whether audit events are generated when credentials are submitted for a user account logon request. This setting is especially useful for monitoring unsuccessful attempts, to find brute-force attacks, account enumeration, and potential account compromise events on domain controllers." - }, - "allowedValues": [ - "No Auditing", - "Success", - "Failure", - "Success and Failure" - ], - "defaultValue": "Success and Failure" - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of this policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachines" - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "in": [ - "esri", - "incredibuild", - "MicrosoftDynamicsAX", - "MicrosoftSharepoint", - "MicrosoftVisualStudio", - "MicrosoftWindowsDesktop", - "MicrosoftWindowsServerHPCPack" - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftWindowsServer" - }, - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "MicrosoftSQLServer" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-dsvm" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "dsvm-win*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "microsoft-ads" - }, - { - "field": "Microsoft.Compute/imageOffer", - "in": [ - "standard-data-science-vm", - "windows-data-science-vm" - ] - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "batch" - }, - { - "field": "Microsoft.Compute/imageOffer", - "equals": "rendering-windows2016" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "center-for-internet-security-inc" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "cis-windows-server-201*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "pivotal" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "bosh-windows-server*" - } - ] - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imagePublisher", - "equals": "cloud-infrastructure-services" - }, - { - "field": "Microsoft.Compute/imageOffer", - "like": "ad*" - } - ] - }, - { - "allOf": [ - { - "anyOf": [ - { - "field": "Microsoft.Compute/virtualMachines/osProfile.windowsConfiguration", - "exists": "true" - }, - { - "field": "Microsoft.Compute/virtualMachines/storageProfile.osDisk.osType", - "like": "Windows*" - } - ] - }, - { - "anyOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "exists": "false" - }, - { - "allOf": [ - { - "field": "Microsoft.Compute/imageSKU", - "notLike": "2008*" - }, - { - "field": "Microsoft.Compute/imageOffer", - "notLike": "SQL2008*" - } - ] - } - ] - } - ] - } - ] - } - ] - }, - { - "allOf": [ - { - "value": "[parameters(\u0027IncludeArcMachines\u0027)]", - "equals": "true" - }, - { - "anyOf": [ - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.HybridCompute/machines" - }, - { - "field": "Microsoft.HybridCompute/imageOffer", - "like": "windows*" - } - ] - }, - { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.ConnectedVMwarevSphere/virtualMachines" - }, - { - "field": "Microsoft.ConnectedVMwarevSphere/virtualMachines/osProfile.osType", - "like": "windows*" - } - ] - } - ] - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.GuestConfiguration/guestConfigurationAssignments", - "name": "AzureBaseline_SystemAuditPoliciesAccountLogon", - "existenceCondition": { - "allOf": [ - { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/complianceStatus", - "equals": "Compliant" - }, - { - "field": "Microsoft.GuestConfiguration/guestConfigurationAssignments/parameterHash", - "equals": "[base64(concat(\u0027Audit Credential Validation;ExpectedValue\u0027, \u0027=\u0027, parameters(\u0027AuditCredentialValidation\u0027)))]" - } - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1544 - Risk Assessment", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Risk Assessment control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1544" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Configure Azure HDInsight clusters to use private DNS zones", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Use private DNS zones to override the DNS resolution for a private endpoint. A private DNS zone links to your virtual network to resolve to Azure HDInsight clusters. Learn more at: https://aka.ms/hdi.pl.", - "metadata": { - "version": "1.0.0", - "category": "HDInsight" - }, - "parameters": { - "privateDnsZoneId": { - "type": "String", - "metadata": { - "displayName": "Private DNS Zone ID for Azure HDInsight clusters", - "description": "The private DNS zone name required for Azure HDInsight clusters to resolve a private DNS Zone.", - "strongType": "Microsoft.Network/privateDnsZones", - "assignPermissions": true - } - }, - "groupId": { - "type": "String", - "metadata": { - "displayName": "Group ID", - "description": "Target group id (sub resource type) for the private endpoint." - } - }, - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Network/privateEndpoints" - }, - { - "count": { - "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*]", - "where": { - "allOf": [ - { - "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*].privateLinkServiceId", - "contains": "Microsoft.HDInsight/clusters" - }, - { - "field": "Microsoft.Network/privateEndpoints/privateLinkServiceConnections[*].groupIds[*]", - "equals": "[parameters(\u0027groupId\u0027)]" - } - ] - } - }, - "greaterOrEquals": 1 - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups", - "roleDefinitionIds": [ - "/providers/Microsoft.Authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "deployment": { - "properties": { - "mode": "incremental", - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "privateDnsZoneId": { - "type": "string" - }, - "privateEndpointName": { - "type": "string" - }, - "location": { - "type": "string" - } - }, - "resources": [ - { - "name": "[concat(parameters(\u0027privateEndpointName\u0027), \u0027/deployedByPolicy\u0027)]", - "type": "Microsoft.Network/privateEndpoints/privateDnsZoneGroups", - "apiVersion": "2020-03-01", - "location": "[parameters(\u0027location\u0027)]", - "properties": { - "privateDnsZoneConfigs": [ - { - "name": "hdinsightCluster-privateDnsZone", - "properties": { - "privateDnsZoneId": "[parameters(\u0027privateDnsZoneId\u0027)]" - } - } - ] - } - } - ] - }, - "parameters": { - "privateDnsZoneId": { - "value": "[parameters(\u0027privateDnsZoneId\u0027)]" - }, - "privateEndpointName": { - "value": "[field(\u0027name\u0027)]" - }, - "location": { - "value": "[field(\u0027location\u0027)]" - } - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1398 - Controlled Maintenance", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Maintenance control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1398" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Configure Azure Defender for open-source relational databases to be enabled", - "policyType": "BuiltIn", - "mode": "All", - "description": "Azure Defender for open-source relational databases detects anomalous activities indicating unusual and potentially harmful attempts to access or exploit databases. Learn more about the capabilities of Azure Defender for open-source relational databases at https://aka.ms/AzDforOpenSourceDBsDocu. Important: Enabling this plan will result in charges for protecting your open-source relational databases. Learn about the pricing on Security Center\u0027s pricing page: https://aka.ms/pricing-security-center", - "metadata": { - "version": "1.0.0", - "category": "Security Center" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "DeployIfNotExists", - "Disabled" - ], - "defaultValue": "DeployIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "equals": "Microsoft.Resources/subscriptions" - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Security/pricings", - "name": "OpenSourceRelationalDatabases", - "deploymentScope": "subscription", - "existenceScope": "subscription", - "roleDefinitionIds": [ - "/providers/Microsoft.Authorization/roleDefinitions/00000000-0000-0000-0000-000000000000" - ], - "existenceCondition": { - "field": "Microsoft.Security/pricings/pricingTier", - "equals": "Standard" - }, - "deployment": { - "location": "westeurope", - "properties": { - "mode": "incremental", - "parameters": {}, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": {}, - "variables": {}, - "resources": [ - { - "type": "Microsoft.Security/pricings", - "apiVersion": "2018-06-01", - "name": "OpenSourceRelationalDatabases", - "properties": { - "pricingTier": "Standard" - } - } - ], - "outputs": {} - } - } - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Monitor permissive network access in Azure Security Center", - "policyType": "BuiltIn", - "mode": "All", - "description": "Network Security Groups with too permissive rules will be monitored by Azure Security Center as recommendations", - "metadata": { - "version": "1.0.0-deprecated", - "category": "Security Center", - "deprecated": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "field": "type", - "in": [ - "Microsoft.Compute/virtualMachines", - "Microsoft.ClassicCompute/virtualMachines" - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Security/complianceResults", - "name": "permissiveNetworkAccess", - "existenceCondition": { - "field": "Microsoft.Security/complianceResults/resourceStatus", - "in": [ - "OffByPolicy", - "Healthy" - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1066 - Remote Access | Disconnect / Disable Access", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Access Control control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1066" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1720 - Spam Protection", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Information Integrity control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1720" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1334 - Authenticator Management | Pki-Based Authentication", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Identification and Authentication control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1334" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1604 - Developer Security Testing And Evaluation", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Services Acquisition control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1604" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1712 - Software, Firmware, And Information Integrity", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Information Integrity control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1712" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1310 - Device Identification And Authentication", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Identification and Authentication control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1310" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1559 - System And Services Acquisition Policy And Procedures", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Services Acquisition control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1559" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1578 - Acquisition Process | Functions / Ports / Protocols / Services In Use", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Services Acquisition control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1578" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1565 - System Development Life Cycle", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this System and Services Acquisition control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1565" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1337 - Authenticator Management | In-Person Or Trusted Third-Party Registration", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Identification and Authentication control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1337" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Azure SignalR Service should use a Private Link enabled SKU", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Azure Private Link lets you connect your virtual network to Azure services without a public IP address at the source or destination which protect your resources against public data leakage risks. The policy limits you to Private Link enabled SKUs for Azure SignalR Service. Learn more about private link at: https://aka.ms/asrs/privatelink.", - "metadata": { - "version": "1.0.0", - "category": "SignalR" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.SignalRService/SignalR" - }, - { - "field": "Microsoft.SignalRService/SignalR/sku.tier", - "equals": "Free" - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Require SQL Server version 12.0", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "This policy ensures all SQL servers use version 12.0. This policy is deprecated because it is no longer possible to create an Azure SQL server with any version other than 12.0.", - "metadata": { - "version": "1.0.0-deprecated", - "category": "SQL", - "deprecated": true - }, - "parameters": {}, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Sql/servers" - }, - { - "not": { - "field": "Microsoft.Sql/servers/version", - "equals": "12.0" - } - } - ] - }, - "then": { - "effect": "Deny" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1346 - Identification And Authentication (Non-Organizational Users)", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Identification and Authentication control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1346" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "[Deprecated]: Audit Web Applications that are not using latest supported Python Framework", - "policyType": "BuiltIn", - "mode": "All", - "description": "Use the latest supported Python version for the latest security classes. Using older classes and types can make your application vulnerable.", - "metadata": { - "version": "1.0.0-deprecated", - "category": "Security Center", - "deprecated": true - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "Enable or disable the execution of the policy" - }, - "allowedValues": [ - "AuditIfNotExists", - "Disabled" - ], - "defaultValue": "AuditIfNotExists" - } - }, - "policyRule": { - "if": { - "allof": [ - { - "field": "type", - "equals": "microsoft.Web/sites" - }, - { - "anyof": [ - { - "field": "kind", - "equals": "app" - }, - { - "field": "kind", - "equals": "WebApp" - } - ] - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]", - "details": { - "type": "Microsoft.Security/complianceResults", - "name": "UseLatestPython", - "existenceCondition": { - "field": "Microsoft.Security/complianceResults/resourceStatus", - "in": [ - "OffByPolicy", - "Healthy" - ] - } - } - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Require automatic OS image patching on Virtual Machine Scale Sets", - "policyType": "BuiltIn", - "mode": "All", - "description": "This policy enforces enabling automatic OS image patching on Virtual Machine Scale Sets to always keep Virtual Machines secure by safely applying latest security patches every month.", - "metadata": { - "version": "1.0.0", - "category": "Compute" - }, - "parameters": {}, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.Compute/virtualMachineScaleSets" - }, - { - "field": "Microsoft.Compute/VirtualMachineScaleSets/upgradePolicy.automaticOSUpgradePolicy.enableAutomaticOSUpgrade", - "notEquals": "True" - }, - { - "field": "Microsoft.Compute/VirtualMachineScaleSets/upgradePolicy.automaticOSUpgrade", - "notEquals": "True" - } - ] - }, - "then": { - "effect": "deny" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Microsoft Managed Control 1368 - Incident Handling | Correlation With External Organizations", - "policyType": "Static", - "mode": "Indexed", - "description": "Microsoft implements this Incident Response control", - "metadata": { - "version": "1.0.0", - "category": "Regulatory Compliance", - "additionalMetadataId": "/providers/Microsoft.PolicyInsights/policyMetadata/ACF1368" - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "in": [ - "Microsoft.Resources/subscriptions", - "Microsoft.Resources/subscriptions/resourceGroups" - ] - }, - { - "value": "false", - "equals": "true" - } - ] - }, - "then": { - "effect": "audit" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - }, - { - "properties": { - "displayName": "Cognitive Services accounts should use customer owned storage", - "policyType": "BuiltIn", - "mode": "Indexed", - "description": "Use customer owned storage to control the data stored at rest in Cognitive Services. To learn more about customer owned storage, visit https://aka.ms/cogsvc-cmk.", - "metadata": { - "version": "2.0.0", - "category": "Cognitive Services" - }, - "parameters": { - "effect": { - "type": "String", - "metadata": { - "displayName": "Effect", - "description": "The effect determines what happens when the policy rule is evaluated to match" - }, - "allowedValues": [ - "Audit", - "Deny", - "Disabled" - ], - "defaultValue": "Audit" - } - }, - "policyRule": { - "if": { - "allOf": [ - { - "field": "type", - "equals": "Microsoft.CognitiveServices/accounts" - }, - { - "count": { - "field": "Microsoft.CognitiveServices/accounts/userOwnedStorage[*]" - }, - "less": 1 - }, - { - "count": { - "field": "Microsoft.CognitiveServices/accounts/capabilities[*]", - "where": { - "field": "Microsoft.CognitiveServices/accounts/capabilities[*].name", - "equals": "CustomerManagedStorage" - } - }, - "greater": 0 - } - ] - }, - "then": { - "effect": "[parameters(\u0027effect\u0027)]" - } - } - }, - "id": "/providers/Microsoft.Authorization/policyDefinitions/00000000-0000-0000-0000-000000000000", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "00000000-0000-0000-0000-000000000000" - } - ], - "nextLink": "https://management.azure.com/providers/Microsoft.Authorization/policyDefinitions?api-version=2021-06-01\u0026$skiptoken=eyJuZXh0UG9saWN5U3RvcmUiOiJDb250cm9sUGxhbmVCdWlsdEluRGVmaW5pdGlvbiIsImNhY2hlU2tpcFRva2VuIjp7Im5leHRJbmRleCI6NTAwLCJuZXh0UG9saWN5TmFtZSI6IjQ3MDMxMjA2LWNlOTYtNDFmOC04NjFiLTZhOTE1ZjNkZTI4NCIsImNhY2hlTGVuZ3RoIjoxNzc2fX0%3D" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/policyDefinitions/go-test-definition?api-version=2021-06-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armpolicy/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 11 Mar 2022 06:27:59 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Kestrel", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14999", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220311T062800Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "properties": { - "policyType": "Custom", - "mode": "Indexed", - "description": "test case", - "metadata": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdOn": "2022-03-11T06:27:59.2606205Z", - "updatedBy": null, - "updatedOn": null - }, - "parameters": { - "prefix": { - "type": "String", - "metadata": { - "description": "prefix description", - "displayName": "test case prefix" - } - }, - "suffix": { - "type": "String", - "metadata": { - "description": "suffix description", - "displayName": "test case suffix" - } - } - }, - "policyRule": { - "if": { - "not": { - "field": "name", - "like": "[concat(parameters(\u0027prefix\u0027), \u0027*\u0027, parameters(\u0027suffix\u0027))]" - } - }, - "then": { - "effect": "deny" - } - } - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/policyDefinitions/go-test-definition", - "type": "Microsoft.Authorization/policyDefinitions", - "name": "go-test-definition", - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-03-11T06:27:59.2338274Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-03-11T06:27:59.2338274Z" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.3.1 azsdk-go-azcore/v0.22.0 (go1.17.1; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Fri, 11 Mar 2022 06:28:02 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ1NjYtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14998", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220311T062803Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/resourcemanager/resources/armresources/assets.json b/sdk/resourcemanager/resources/armresources/assets.json new file mode 100644 index 000000000000..15a83b255b6b --- /dev/null +++ b/sdk/resourcemanager/resources/armresources/assets.json @@ -0,0 +1,6 @@ +{ + "AssetsRepo": "Azure/azure-sdk-assets", + "AssetsRepoPrefixPath": "go", + "TagPrefix": "go/resourcemanager/resources/armresources", + "Tag": "go/resourcemanager/resources/armresources_3d82983d90" +} diff --git a/sdk/resourcemanager/resources/armresources/go.mod b/sdk/resourcemanager/resources/armresources/go.mod index 3c89050da5c0..49b07d1790cc 100644 --- a/sdk/resourcemanager/resources/armresources/go.mod +++ b/sdk/resourcemanager/resources/armresources/go.mod @@ -3,27 +3,27 @@ module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresour go 1.18 require ( - github.com/Azure/azure-sdk-for-go/sdk/azcore v1.0.0 - github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.0.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.0.0 + github.com/Azure/azure-sdk-for-go/sdk/azcore v1.4.0 + github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.2 github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups v1.0.0 github.com/stretchr/testify v1.7.0 ) require ( - 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/Azure/azure-sdk-for-go/sdk/internal v1.2.0 // indirect + github.com/AzureAD/microsoft-authentication-library-for-go v0.7.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/dnaeon/go-vcr v1.1.0 // indirect - github.com/golang-jwt/jwt v3.2.1+incompatible // indirect + github.com/golang-jwt/jwt/v4 v4.4.2 // 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 github.com/pmezard/go-difflib v1.0.0 // 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 + golang.org/x/net v0.7.0 // indirect + golang.org/x/sys v0.5.0 // indirect + golang.org/x/text v0.7.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect ) diff --git a/sdk/resourcemanager/resources/armresources/go.sum b/sdk/resourcemanager/resources/armresources/go.sum index f56d4d7f0904..66e5af2b127e 100644 --- a/sdk/resourcemanager/resources/armresources/go.sum +++ b/sdk/resourcemanager/resources/armresources/go.sum @@ -1,29 +1,27 @@ -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/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.0.0 h1:lMW1lD/17LUA5z1XTURo7LcVG2ICBPlyMHjIUrcFZNQ= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.0.0/go.mod h1:ceIuwmxDWptoW3eCqSXlnPsZFKh4X+R38dWPv7GS9Vs= +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.0 h1:t/W5MYAuQy81cvM8VUNfRLzhtKpXhVUAN7Cd7KVbTyc= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.0/go.mod h1:NBanQUfSWiWn3QEpWDTCU0IjBECKOYvl2R8xdRtMtiM= +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/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.2 h1:mLY+pNLjCUeKhgnAJWAKhEUQM+RJQo2H1fuGSw1Ky1E= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.2/go.mod h1:FbdwsQ2EzwvXxOPcMFYO8ogEc9uMMIj3YkmCdXdAFmk= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups v1.0.0 h1:pPvTJ1dY0sA35JOeFq6TsY2xj6Z85Yo23Pj4wCCvu4o= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/managementgroups/armmanagementgroups v1.0.0/go.mod h1:mLfWfj8v3jfWKsL9G4eoBoXVcsqcIUTapmdKy7uGOp0= -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/AzureAD/microsoft-authentication-library-for-go v0.7.0 h1:VgSJlZH5u0k2qxSpqyghcFQKmvYckj46uymKK5XzkBM= +github.com/AzureAD/microsoft-authentication-library-for-go v0.7.0/go.mod h1:BDJ5qMFKx9DugEg3+uQSDCdbYPr5s9vBTrL9P8TpqOU= 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/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 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= +github.com/golang-jwt/jwt/v4 v4.4.2 h1:rcc4lwaZgFMCZ5jxF9ABolDcIHdBytAFgqFPbSJQAYs= +github.com/golang-jwt/jwt/v4 v4.4.2/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= 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= @@ -33,13 +31,12 @@ github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5Cc github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= 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-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/net v0.7.0 h1:rJrUqqhjsgNp7KqAIc25s9pZnjU7TUcSY7HcVZjdn1g= +golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= +golang.org/x/sys v0.5.0 h1:MUK/U/4lj1t1oPg0HfuXDN/Z1wv31ZJ/YcPiGccS4DU= +golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/text v0.7.0 h1:4BRB4x83lYWy72KwLD/qYDuTu7q9PjSagHvijDw7cLo= +golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= 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= diff --git a/sdk/resourcemanager/resources/armresources/testdata/recordings/TestDeploymentsClient.json b/sdk/resourcemanager/resources/armresources/testdata/recordings/TestDeploymentsClient.json deleted file mode 100644 index a143021207b9..000000000000 --- a/sdk/resourcemanager/resources/armresources/testdata/recordings/TestDeploymentsClient.json +++ /dev/null @@ -1,2680 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": { - "location": "eastus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 14 Apr 2022 08:01:08 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080109Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "eastus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.Management/managementGroups/00000000-0000-0000-0000-000000000000000?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "50", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armmanagementgroups/v0.5.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": { - "name": "00000000-0000-0000-0000-000000000000000" - }, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/00000000-0000-0000-0000-000000000000000?api-version=2021-04-01", - "Cache-Control": "no-cache", - "client-request-id": "00000000-0000-0000-0000-000000000000", - "Content-Length": "215", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 14 Apr 2022 08:01:13 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/00000000-0000-0000-0000-000000000000000?api-version=2021-04-01", - "Pragma": "no-cache", - "request-id": "00000000-0000-0000-0000-000000000000", - "Retry-After": "10", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "x-ba-restapi": "0.0.0.0", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-managementgroups-requests": "59", - "x-ms-ratelimit-remaining-tenant-writes": "1199", - "x-ms-request-id": "southeastasia:00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080113Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/providers/Microsoft.Management/managementGroups/00000000-0000-0000-0000-000000000000000", - "type": "Microsoft.Management/managementGroups", - "name": "00000000-0000-0000-0000-000000000000000", - "status": "NotStarted" - } - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/00000000-0000-0000-0000-000000000000000?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armmanagementgroups/v0.5.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/00000000-0000-0000-0000-000000000000000?api-version=2021-04-01", - "Cache-Control": "no-cache", - "client-request-id": "00000000-0000-0000-0000-000000000000", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 14 Apr 2022 08:01:24 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/managementGroups/00000000-0000-0000-0000-000000000000000?api-version=2021-04-01", - "Pragma": "no-cache", - "request-id": "00000000-0000-0000-0000-000000000000", - "Retry-After": "10", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "x-ba-restapi": "0.0.0.0", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-tenant-reads": "11999", - "x-ms-request-id": "southeastasia:00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080124Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/00000000-0000-0000-0000-000000000000000", - "name": "00000000-0000-0000-0000-000000000000000", - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/00000000-0000-0000-0000-000000000000000?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armmanagementgroups/v0.5.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "client-request-id": "00000000-0000-0000-0000-000000000000", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 14 Apr 2022 08:01:35 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "request-id": "00000000-0000-0000-0000-000000000000", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "x-ba-restapi": "0.0.0.0", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-tenant-reads": "11998", - "x-ms-request-id": "southeastasia:00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080135Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/providers/Microsoft.Management/operationResults/create/asyncOperation/status/managementGroups/00000000-0000-0000-0000-000000000000000", - "name": "00000000-0000-0000-0000-000000000000000", - "status": "Succeeded", - "properties": { - "tenantId": "00000000-0000-0000-0000-000000000000", - "displayName": "00000000-0000-0000-0000-000000000000000", - "details": { - "version": 11, - "updatedTime": "2022-04-14T08:01:18.9108914Z", - "updatedBy": "00000000-0000-0000-0000-000000000000" - } - } - } - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.Management/managementGroups/00000000-0000-0000-0000-000000000000000?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armmanagementgroups/v0.5.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "client-request-id": "00000000-0000-0000-0000-000000000000", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 14 Apr 2022 08:01:35 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "request-id": "00000000-0000-0000-0000-000000000000", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "x-ba-restapi": "0.0.0.0", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-managementgroups-requests": "59", - "x-ms-ratelimit-remaining-tenant-reads": "11997", - "x-ms-request-id": "southeastasia:00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080135Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/providers/Microsoft.Management/managementGroups/00000000-0000-0000-0000-000000000000000", - "type": "Microsoft.Management/managementGroups", - "name": "00000000-0000-0000-0000-000000000000000", - "properties": { - "tenantId": "00000000-0000-0000-0000-000000000000", - "displayName": "00000000-0000-0000-0000-000000000000000", - "details": { - "version": 11, - "updatedTime": "2022-04-14T08:01:18.9108914Z", - "updatedBy": "00000000-0000-0000-0000-000000000000", - "parent": { - "id": "/providers/Microsoft.Management/managementGroups/00000000-0000-0000-0000-000000000000", - "name": "00000000-0000-0000-0000-000000000000", - "displayName": "00000000-0000-0000-0000-000000000000" - } - } - } - } - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.Management/managementGroups/00000000-0000-0000-0000-000000000000000/providers/Microsoft.Resources/deployments/go-test-deploymentMG?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "330", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": { - "location": "West US", - "properties": { - "mode": "Incremental", - "parametersLink": { - "uri": "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/100-blank-template/azuredeploy.json" - }, - "templateLink": { - "uri": "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/100-blank-template/azuredeploy.json" - } - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/managementGroups/00000000-0000-0000-0000-000000000000000/providers/Microsoft.Resources/deployments/go-test-deploymentMG/operationStatuses/08585516835858196689?api-version=2021-04-01", - "Cache-Control": "no-cache", - "Content-Length": "825", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 14 Apr 2022 08:01:44 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-tenant-writes": "1198", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080144Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/providers/Microsoft.Management/managementGroups/00000000-0000-0000-0000-000000000000000/providers/Microsoft.Resources/deployments/go-test-deploymentMG", - "name": "go-test-deploymentMG", - "type": "Microsoft.Resources/deployments", - "location": "westus", - "properties": { - "templateLink": { - "uri": "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/100-blank-template/azuredeploy.json", - "contentVersion": "1.0.0.0" - }, - "templateHash": "653051900461279848", - "parametersLink": { - "uri": "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/100-blank-template/azuredeploy.json" - }, - "parameters": {}, - "mode": "Incremental", - "provisioningState": "Accepted", - "timestamp": "2022-04-14T08:01:44.1222881Z", - "duration": "PT0.005873S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [], - "dependencies": [] - } - } - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.Management/managementGroups/00000000-0000-0000-0000-000000000000000/providers/Microsoft.Resources/deployments/go-test-deploymentMG/operationStatuses/08585516835858196689?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "20", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 14 Apr 2022 08:01:45 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-tenant-reads": "11996", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080146Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.Management/managementGroups/00000000-0000-0000-0000-000000000000000/providers/Microsoft.Resources/deployments/go-test-deploymentMG/operationStatuses/08585516835858196689?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "22", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 14 Apr 2022 08:01:57 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-tenant-reads": "11995", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080158Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.Management/managementGroups/00000000-0000-0000-0000-000000000000000/providers/Microsoft.Resources/deployments/go-test-deploymentMG?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "860", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 14 Apr 2022 08:01:58 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-tenant-reads": "11994", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080159Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/providers/Microsoft.Management/managementGroups/00000000-0000-0000-0000-000000000000000/providers/Microsoft.Resources/deployments/go-test-deploymentMG", - "name": "go-test-deploymentMG", - "type": "Microsoft.Resources/deployments", - "location": "westus", - "properties": { - "templateLink": { - "uri": "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/100-blank-template/azuredeploy.json", - "contentVersion": "1.0.0.0" - }, - "templateHash": "653051900461279848", - "parametersLink": { - "uri": "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/100-blank-template/azuredeploy.json" - }, - "parameters": {}, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2022-04-14T08:01:46.3261131Z", - "duration": "PT2.209698S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [], - "dependencies": [], - "outputs": {}, - "outputResources": [] - } - } - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.Management/managementGroups/00000000-0000-0000-0000-000000000000000/providers/Microsoft.Resources/deployments/go-test-deploymentMG?api-version=2021-04-01", - "RequestMethod": "HEAD", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Thu, 14 Apr 2022 08:02:00 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-tenant-reads": "11993", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080201Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.Management/managementGroups/00000000-0000-0000-0000-000000000000000/providers/Microsoft.Resources/deployments/go-test-deploymentMG?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "860", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 14 Apr 2022 08:02:01 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-tenant-reads": "11992", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080202Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/providers/Microsoft.Management/managementGroups/00000000-0000-0000-0000-000000000000000/providers/Microsoft.Resources/deployments/go-test-deploymentMG", - "name": "go-test-deploymentMG", - "type": "Microsoft.Resources/deployments", - "location": "westus", - "properties": { - "templateLink": { - "uri": "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/100-blank-template/azuredeploy.json", - "contentVersion": "1.0.0.0" - }, - "templateHash": "653051900461279848", - "parametersLink": { - "uri": "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/100-blank-template/azuredeploy.json" - }, - "parameters": {}, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2022-04-14T08:01:46.3261131Z", - "duration": "PT2.209698S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [], - "dependencies": [], - "outputs": {}, - "outputResources": [] - } - } - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.Management/managementGroups/00000000-0000-0000-0000-000000000000000/providers/Microsoft.Resources/deployments/go-test-deploymentMG/validate?api-version=2021-04-01", - "RequestMethod": "POST", - "RequestHeaders": { - ":method": "POST", - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "330", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": { - "location": "West US", - "properties": { - "mode": "Incremental", - "parametersLink": { - "uri": "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/100-blank-template/azuredeploy.json" - }, - "templateLink": { - "uri": "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/100-blank-template/azuredeploy.json" - } - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 14 Apr 2022 08:02:03 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-tenant-writes": "1199", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080204Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/providers/Microsoft.Management/managementGroups/00000000-0000-0000-0000-000000000000000/providers/Microsoft.Resources/deployments/go-test-deploymentMG", - "name": "go-test-deploymentMG", - "type": "Microsoft.Resources/deployments", - "location": "westus", - "properties": { - "templateLink": { - "uri": "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/100-blank-template/azuredeploy.json", - "contentVersion": "1.0.0.0" - }, - "templateHash": "653051900461279848", - "parametersLink": { - "uri": "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/100-blank-template/azuredeploy.json" - }, - "parameters": {}, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "0001-01-01T00:00:00Z", - "duration": "PT0S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [], - "dependencies": [], - "validatedResources": [] - } - } - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.Management/managementGroups/00000000-0000-0000-0000-000000000000000/providers/Microsoft.Resources/deployments/go-test-deploymentMG/exportTemplate?api-version=2021-04-01", - "RequestMethod": "POST", - "RequestHeaders": { - ":method": "POST", - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 14 Apr 2022 08:02:05 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-tenant-writes": "1198", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080205Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": {}, - "variables": {}, - "resources": [], - "outputs": {} - } - } - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.Management/managementGroups/00000000-0000-0000-0000-000000000000000/providers/Microsoft.Resources/deployments/go-test-deploymentMG?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Thu, 14 Apr 2022 08:02:08 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/providers/Microsoft.Resources/operationResults/eyJqb2JJZCI6IkRlcGxveW1lbnREZWxldGlvbkpvYi1NR05TLTAwMDAwMDAwOjJEMDAwMDoyRDAwMDA6MkQwMDAwOjJEMDAwMDAwMDAwMDAwMDAwLUdPOjJEVEVTVDoyRERFUExPWU1FTlRNRy0iLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-tenant-deletes": "14999", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080208Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.Resources/operationResults/eyJqb2JJZCI6IkRlcGxveW1lbnREZWxldGlvbkpvYi1NR05TLTAwMDAwMDAwOjJEMDAwMDoyRDAwMDA6MkQwMDAwOjJEMDAwMDAwMDAwMDAwMDAwLUdPOjJEVEVTVDoyRERFUExPWU1FTlRNRy0iLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Date": "Thu, 14 Apr 2022 08:02:23 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-tenant-reads": "11991", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080224Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.Management/managementGroups/00000000-0000-0000-0000-000000000000000?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armmanagementgroups/v0.5.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/00000000-0000-0000-0000-000000000000000?api-version=2021-04-01", - "Cache-Control": "no-cache", - "client-request-id": "00000000-0000-0000-0000-000000000000", - "Content-Length": "215", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 14 Apr 2022 08:02:26 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/managementGroups/00000000-0000-0000-0000-000000000000000?api-version=2021-04-01", - "Pragma": "no-cache", - "request-id": "00000000-0000-0000-0000-000000000000", - "Retry-After": "10", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "x-ba-restapi": "0.0.0.0", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-managementgroups-requests": "59", - "x-ms-ratelimit-remaining-tenant-deletes": "14998", - "x-ms-request-id": "southeastasia:00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080227Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/providers/Microsoft.Management/managementGroups/00000000-0000-0000-0000-000000000000000", - "type": "Microsoft.Management/managementGroups", - "name": "00000000-0000-0000-0000-000000000000000", - "status": "NotStarted" - } - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/00000000-0000-0000-0000-000000000000000?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armmanagementgroups/v0.5.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "client-request-id": "00000000-0000-0000-0000-000000000000", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 14 Apr 2022 08:02:37 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "request-id": "00000000-0000-0000-0000-000000000000", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "x-ba-restapi": "0.0.0.0", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-tenant-reads": "11990", - "x-ms-request-id": "southeastasia:00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080237Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/providers/Microsoft.Management/operationResults/delete/asyncOperation/status/managementGroups/00000000-0000-0000-0000-000000000000000", - "name": "00000000-0000-0000-0000-000000000000000", - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/go-test-deployment-scope?api-version=2021-04-01", - "RequestMethod": "HEAD", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 404, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "109", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 14 Apr 2022 08:02:37 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-failure-cause": "gateway", - "x-ms-ratelimit-remaining-subscription-reads": "11999", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080238Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/go-test-deployment-scope?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "679", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": { - "properties": { - "mode": "Incremental", - "parameters": { - "location": { - "value": "West US" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "outputs": { - "myparameter": { - "type": "object", - "value": "[reference(\u0027Microsoft.Compute/availabilitySets/availabilitySet1\u0027)]" - } - }, - "parameters": { - "location": { - "allowedValues": [ - "East US", - "West US", - "West Europe", - "East Asia", - "South East Asia" - ], - "metadata": { - "description": "Location to deploy to" - }, - "type": "string" - } - }, - "resources": [ - { - "apiVersion": "2019-07-01", - "location": "[parameters(\u0027location\u0027)]", - "name": "availabilitySet1", - "properties": {}, - "type": "Microsoft.Compute/availabilitySets" - } - ] - } - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/go-test-deployment-scope/operationStatuses/08585516835251752385?api-version=2021-04-01", - "Cache-Control": "no-cache", - "Content-Length": "665", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 14 Apr 2022 08:02:43 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080244Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/go-test-deployment-scope", - "name": "go-test-deployment-scope", - "type": "Microsoft.Resources/deployments", - "properties": { - "templateHash": "3315814388681758746", - "parameters": { - "location": { - "type": "String", - "value": "West US" - } - }, - "mode": "Incremental", - "provisioningState": "Accepted", - "timestamp": "2022-04-14T08:02:42.2293127Z", - "duration": "PT0.0004621S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Compute", - "resourceTypes": [ - { - "resourceType": "availabilitySets", - "locations": [ - "westus" - ] - } - ] - } - ], - "dependencies": [] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/go-test-deployment-scope/operationStatuses/08585516835251752385?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "20", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 14 Apr 2022 08:02:43 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11998", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080244Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/go-test-deployment-scope/operationStatuses/08585516835251752385?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "22", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 14 Apr 2022 08:02:55 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11997", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080255Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/go-test-deployment-scope?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "950", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 14 Apr 2022 08:02:55 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11996", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080255Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/go-test-deployment-scope", - "name": "go-test-deployment-scope", - "type": "Microsoft.Resources/deployments", - "properties": { - "templateHash": "3315814388681758746", - "parameters": { - "location": { - "type": "String", - "value": "West US" - } - }, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2022-04-14T08:02:50.31875Z", - "duration": "PT8.0898994S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Compute", - "resourceTypes": [ - { - "resourceType": "availabilitySets", - "locations": [ - "westus" - ] - } - ] - } - ], - "dependencies": [], - "outputs": { - "myparameter": { - "type": "Object", - "value": { - "platformUpdateDomainCount": 5, - "platformFaultDomainCount": 3 - } - } - }, - "outputResources": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/availabilitySets/availabilitySet1" - } - ] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/go-test-deployment-scope?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "950", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 14 Apr 2022 08:02:56 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11995", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080256Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/go-test-deployment-scope", - "name": "go-test-deployment-scope", - "type": "Microsoft.Resources/deployments", - "properties": { - "templateHash": "3315814388681758746", - "parameters": { - "location": { - "type": "String", - "value": "West US" - } - }, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2022-04-14T08:02:50.31875Z", - "duration": "PT8.0898994S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Compute", - "resourceTypes": [ - { - "resourceType": "availabilitySets", - "locations": [ - "westus" - ] - } - ] - } - ], - "dependencies": [], - "outputs": { - "myparameter": { - "type": "Object", - "value": { - "platformUpdateDomainCount": 5, - "platformFaultDomainCount": 3 - } - } - }, - "outputResources": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/availabilitySets/availabilitySet1" - } - ] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/go-test-deployment-scope/validate?api-version=2021-04-01", - "RequestMethod": "POST", - "RequestHeaders": { - ":method": "POST", - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "679", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": { - "properties": { - "mode": "Incremental", - "parameters": { - "location": { - "value": "West US" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "outputs": { - "myparameter": { - "type": "object", - "value": "[reference(\u0027Microsoft.Compute/availabilitySets/availabilitySet1\u0027)]" - } - }, - "parameters": { - "location": { - "allowedValues": [ - "East US", - "West US", - "West Europe", - "East Asia", - "South East Asia" - ], - "metadata": { - "description": "Location to deploy to" - }, - "type": "string" - } - }, - "resources": [ - { - "apiVersion": "2019-07-01", - "location": "[parameters(\u0027location\u0027)]", - "name": "availabilitySet1", - "properties": {}, - "type": "Microsoft.Compute/availabilitySets" - } - ] - } - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 14 Apr 2022 08:02:57 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080257Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/go-test-deployment-scope", - "name": "go-test-deployment-scope", - "type": "Microsoft.Resources/deployments", - "properties": { - "templateHash": "3315814388681758746", - "parameters": { - "location": { - "type": "String", - "value": "West US" - } - }, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "0001-01-01T00:00:00Z", - "duration": "PT0S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Compute", - "resourceTypes": [ - { - "resourceType": "availabilitySets", - "locations": [ - "westus" - ] - } - ] - } - ], - "dependencies": [], - "validatedResources": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/availabilitySets/availabilitySet1" - } - ] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/go-test-deployment-scope/exportTemplate?api-version=2021-04-01", - "RequestMethod": "POST", - "RequestHeaders": { - ":method": "POST", - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 14 Apr 2022 08:02:58 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080258Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "location": { - "allowedValues": [ - "East US", - "West US", - "West Europe", - "East Asia", - "South East Asia" - ], - "type": "String", - "metadata": { - "description": "Location to deploy to" - } - } - }, - "resources": [ - { - "type": "Microsoft.Compute/availabilitySets", - "apiVersion": "2019-07-01", - "name": "availabilitySet1", - "location": "[parameters(\u0027location\u0027)]", - "properties": {} - } - ], - "outputs": { - "myparameter": { - "type": "Object", - "value": "[reference(\u0027Microsoft.Compute/availabilitySets/availabilitySet1\u0027)]" - } - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/go-test-deployment-scope?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Thu, 14 Apr 2022 08:03:00 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IkRlcGxveW1lbnREZWxldGlvbkpvYi1HTlMtR086MkRTREs6MkRURVNUOjJEMzM3LUdPOjJEVEVTVDoyRERFUExPWU1FTlQ6MkRTQ09QRS0iLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14999", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080300Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IkRlcGxveW1lbnREZWxldGlvbkpvYi1HTlMtR086MkRTREs6MkRURVNUOjJEMzM3LUdPOjJEVEVTVDoyRERFUExPWU1FTlQ6MkRTQ09QRS0iLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Date": "Thu, 14 Apr 2022 08:03:16 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11994", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080316Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/go-test-at-subscription?api-version=2021-04-01", - "RequestMethod": "HEAD", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 404, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "108", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 14 Apr 2022 08:03:17 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-failure-cause": "gateway", - "x-ms-ratelimit-remaining-subscription-reads": "11993", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080317Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/go-test-at-subscription?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "330", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": { - "location": "West US", - "properties": { - "mode": "Incremental", - "parametersLink": { - "uri": "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/100-blank-template/azuredeploy.json" - }, - "templateLink": { - "uri": "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/100-blank-template/azuredeploy.json" - } - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/go-test-at-subscription/operationStatuses/08585516834851691284?api-version=2021-04-01", - "Cache-Control": "no-cache", - "Content-Length": "795", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 14 Apr 2022 08:03:25 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1197", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080326Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/go-test-at-subscription", - "name": "go-test-at-subscription", - "type": "Microsoft.Resources/deployments", - "location": "westus", - "properties": { - "templateLink": { - "uri": "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/100-blank-template/azuredeploy.json", - "contentVersion": "1.0.0.0" - }, - "templateHash": "653051900461279848", - "parametersLink": { - "uri": "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/100-blank-template/azuredeploy.json" - }, - "parameters": {}, - "mode": "Incremental", - "provisioningState": "Accepted", - "timestamp": "2022-04-14T08:03:25.1534558Z", - "duration": "PT0.0006276S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [], - "dependencies": [] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/go-test-at-subscription/operationStatuses/08585516834851691284?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "22", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 14 Apr 2022 08:03:27 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11992", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080327Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/go-test-at-subscription?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "830", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 14 Apr 2022 08:03:28 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11991", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080328Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/go-test-at-subscription", - "name": "go-test-at-subscription", - "type": "Microsoft.Resources/deployments", - "location": "westus", - "properties": { - "templateLink": { - "uri": "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/100-blank-template/azuredeploy.json", - "contentVersion": "1.0.0.0" - }, - "templateHash": "653051900461279848", - "parametersLink": { - "uri": "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/100-blank-template/azuredeploy.json" - }, - "parameters": {}, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2022-04-14T08:03:26.1603653Z", - "duration": "PT1.0075371S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [], - "dependencies": [], - "outputs": {}, - "outputResources": [] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/go-test-at-subscription?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "830", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 14 Apr 2022 08:03:29 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11990", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080330Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/go-test-at-subscription", - "name": "go-test-at-subscription", - "type": "Microsoft.Resources/deployments", - "location": "westus", - "properties": { - "templateLink": { - "uri": "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/100-blank-template/azuredeploy.json", - "contentVersion": "1.0.0.0" - }, - "templateHash": "653051900461279848", - "parametersLink": { - "uri": "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/100-blank-template/azuredeploy.json" - }, - "parameters": {}, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2022-04-14T08:03:26.1603653Z", - "duration": "PT1.0075371S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [], - "dependencies": [], - "outputs": {}, - "outputResources": [] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/go-test-at-subscription/whatIf?api-version=2021-04-01", - "RequestMethod": "POST", - "RequestHeaders": { - ":method": "POST", - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "330", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": { - "properties": { - "mode": "Incremental", - "parametersLink": { - "uri": "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/100-blank-template/azuredeploy.json" - }, - "templateLink": { - "uri": "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/100-blank-template/azuredeploy.json" - } - }, - "location": "West US" - }, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Thu, 14 Apr 2022 08:03:31 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IkRlcGxveW1lbnRXaGF0SWZKb2ItLUdPOjJEVEVTVDoyREFUOjJEU1VCU0NSSVBUSU9OLTIwMUU1MjIyOjJEMTBGQzoyRDRGMkQ6MkRCNjk5OjJEOTY4MUJEQTQ4NzE1Iiwiam9iTG9jYXRpb24iOiJXZXN0IFVTIn0?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1197", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080331Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IkRlcGxveW1lbnRXaGF0SWZKb2ItLUdPOjJEVEVTVDoyREFUOjJEU1VCU0NSSVBUSU9OLTIwMUU1MjIyOjJEMTBGQzoyRDRGMkQ6MkRCNjk5OjJEOTY4MUJEQTQ4NzE1Iiwiam9iTG9jYXRpb24iOiJXZXN0IFVTIn0?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Thu, 14 Apr 2022 08:03:46 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IkRlcGxveW1lbnRXaGF0SWZKb2ItLUdPOjJEVEVTVDoyREFUOjJEU1VCU0NSSVBUSU9OLTIwMUU1MjIyOjJEMTBGQzoyRDRGMkQ6MkRCNjk5OjJEOTY4MUJEQTQ4NzE1Iiwiam9iTG9jYXRpb24iOiJXZXN0IFVTIn0?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11989", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080346Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IkRlcGxveW1lbnRXaGF0SWZKb2ItLUdPOjJEVEVTVDoyREFUOjJEU1VCU0NSSVBUSU9OLTIwMUU1MjIyOjJEMTBGQzoyRDRGMkQ6MkRCNjk5OjJEOTY4MUJEQTQ4NzE1Iiwiam9iTG9jYXRpb24iOiJXZXN0IFVTIn0?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Thu, 14 Apr 2022 08:04:01 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IkRlcGxveW1lbnRXaGF0SWZKb2ItLUdPOjJEVEVTVDoyREFUOjJEU1VCU0NSSVBUSU9OLTIwMUU1MjIyOjJEMTBGQzoyRDRGMkQ6MkRCNjk5OjJEOTY4MUJEQTQ4NzE1Iiwiam9iTG9jYXRpb24iOiJXZXN0IFVTIn0?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11988", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080402Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IkRlcGxveW1lbnRXaGF0SWZKb2ItLUdPOjJEVEVTVDoyREFUOjJEU1VCU0NSSVBUSU9OLTIwMUU1MjIyOjJEMTBGQzoyRDRGMkQ6MkRCNjk5OjJEOTY4MUJEQTQ4NzE1Iiwiam9iTG9jYXRpb24iOiJXZXN0IFVTIn0?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Thu, 14 Apr 2022 08:04:17 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IkRlcGxveW1lbnRXaGF0SWZKb2ItLUdPOjJEVEVTVDoyREFUOjJEU1VCU0NSSVBUSU9OLTIwMUU1MjIyOjJEMTBGQzoyRDRGMkQ6MkRCNjk5OjJEOTY4MUJEQTQ4NzE1Iiwiam9iTG9jYXRpb24iOiJXZXN0IFVTIn0?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11987", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080417Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IkRlcGxveW1lbnRXaGF0SWZKb2ItLUdPOjJEVEVTVDoyREFUOjJEU1VCU0NSSVBUSU9OLTIwMUU1MjIyOjJEMTBGQzoyRDRGMkQ6MkRCNjk5OjJEOTY4MUJEQTQ4NzE1Iiwiam9iTG9jYXRpb24iOiJXZXN0IFVTIn0?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Thu, 14 Apr 2022 08:04:32 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IkRlcGxveW1lbnRXaGF0SWZKb2ItLUdPOjJEVEVTVDoyREFUOjJEU1VCU0NSSVBUSU9OLTIwMUU1MjIyOjJEMTBGQzoyRDRGMkQ6MkRCNjk5OjJEOTY4MUJEQTQ4NzE1Iiwiam9iTG9jYXRpb24iOiJXZXN0IFVTIn0?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11986", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080433Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IkRlcGxveW1lbnRXaGF0SWZKb2ItLUdPOjJEVEVTVDoyREFUOjJEU1VCU0NSSVBUSU9OLTIwMUU1MjIyOjJEMTBGQzoyRDRGMkQ6MkRCNjk5OjJEOTY4MUJEQTQ4NzE1Iiwiam9iTG9jYXRpb24iOiJXZXN0IFVTIn0?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Thu, 14 Apr 2022 08:04:47 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IkRlcGxveW1lbnRXaGF0SWZKb2ItLUdPOjJEVEVTVDoyREFUOjJEU1VCU0NSSVBUSU9OLTIwMUU1MjIyOjJEMTBGQzoyRDRGMkQ6MkRCNjk5OjJEOTY4MUJEQTQ4NzE1Iiwiam9iTG9jYXRpb24iOiJXZXN0IFVTIn0?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11985", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080448Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IkRlcGxveW1lbnRXaGF0SWZKb2ItLUdPOjJEVEVTVDoyREFUOjJEU1VCU0NSSVBUSU9OLTIwMUU1MjIyOjJEMTBGQzoyRDRGMkQ6MkRCNjk5OjJEOTY4MUJEQTQ4NzE1Iiwiam9iTG9jYXRpb24iOiJXZXN0IFVTIn0?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Thu, 14 Apr 2022 08:05:04 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IkRlcGxveW1lbnRXaGF0SWZKb2ItLUdPOjJEVEVTVDoyREFUOjJEU1VCU0NSSVBUSU9OLTIwMUU1MjIyOjJEMTBGQzoyRDRGMkQ6MkRCNjk5OjJEOTY4MUJEQTQ4NzE1Iiwiam9iTG9jYXRpb24iOiJXZXN0IFVTIn0?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11984", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080504Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IkRlcGxveW1lbnRXaGF0SWZKb2ItLUdPOjJEVEVTVDoyREFUOjJEU1VCU0NSSVBUSU9OLTIwMUU1MjIyOjJEMTBGQzoyRDRGMkQ6MkRCNjk5OjJEOTY4MUJEQTQ4NzE1Iiwiam9iTG9jYXRpb24iOiJXZXN0IFVTIn0?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "105", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 14 Apr 2022 08:05:19 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11983", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080519Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded", - "properties": { - "correlationId": "00000000-0000-0000-0000-000000000000", - "changes": [] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/go-test-at-subscription/validate?api-version=2021-04-01", - "RequestMethod": "POST", - "RequestHeaders": { - ":method": "POST", - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "330", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": { - "location": "West US", - "properties": { - "mode": "Incremental", - "parametersLink": { - "uri": "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/100-blank-template/azuredeploy.json" - }, - "templateLink": { - "uri": "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/100-blank-template/azuredeploy.json" - } - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 14 Apr 2022 08:05:21 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1196", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080521Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/go-test-at-subscription", - "name": "go-test-at-subscription", - "type": "Microsoft.Resources/deployments", - "location": "westus", - "properties": { - "templateLink": { - "uri": "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/100-blank-template/azuredeploy.json", - "contentVersion": "1.0.0.0" - }, - "templateHash": "653051900461279848", - "parametersLink": { - "uri": "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/100-blank-template/azuredeploy.json" - }, - "parameters": {}, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "0001-01-01T00:00:00Z", - "duration": "PT0S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [], - "dependencies": [], - "validatedResources": [] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/go-test-at-subscription/exportTemplate?api-version=2021-04-01", - "RequestMethod": "POST", - "RequestHeaders": { - ":method": "POST", - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 14 Apr 2022 08:05:22 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1195", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080523Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": {}, - "variables": {}, - "resources": [], - "outputs": {} - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Resources/deployments/go-test-at-subscription?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Thu, 14 Apr 2022 08:05:26 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IkRlcGxveW1lbnREZWxldGlvbkpvYi1HTlMtLUdPOjJEVEVTVDoyREFUOjJEU1VCU0NSSVBUSU9OLSIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14998", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080526Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IkRlcGxveW1lbnREZWxldGlvbkpvYi1HTlMtLUdPOjJEVEVTVDoyREFUOjJEU1VCU0NSSVBUSU9OLSIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Date": "Thu, 14 Apr 2022 08:05:41 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11982", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080542Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.Resources/deployments/go-test-deployment-at-tenant?api-version=2021-04-01", - "RequestMethod": "HEAD", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 403, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Connection": "close", - "Content-Length": "416", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 14 Apr 2022 08:05:42 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-failure-cause": "gateway", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080542Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/go-test-deployment?api-version=2021-04-01", - "RequestMethod": "HEAD", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 404, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "103", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 14 Apr 2022 08:05:42 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-failure-cause": "gateway", - "x-ms-ratelimit-remaining-subscription-reads": "11999", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080543Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/go-test-deployment?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "679", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": { - "properties": { - "mode": "Incremental", - "parameters": { - "location": { - "value": "West US" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "outputs": { - "myparameter": { - "type": "object", - "value": "[reference(\u0027Microsoft.Compute/availabilitySets/availabilitySet1\u0027)]" - } - }, - "parameters": { - "location": { - "allowedValues": [ - "East US", - "West US", - "West Europe", - "East Asia", - "South East Asia" - ], - "metadata": { - "description": "Location to deploy to" - }, - "type": "string" - } - }, - "resources": [ - { - "apiVersion": "2019-07-01", - "location": "[parameters(\u0027location\u0027)]", - "name": "availabilitySet1", - "properties": {}, - "type": "Microsoft.Compute/availabilitySets" - } - ] - } - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/go-test-deployment/operationStatuses/08585516833380482591?api-version=2021-04-01", - "Cache-Control": "no-cache", - "Content-Length": "653", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 14 Apr 2022 08:05:51 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080551Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/go-test-deployment", - "name": "go-test-deployment", - "type": "Microsoft.Resources/deployments", - "properties": { - "templateHash": "3315814388681758746", - "parameters": { - "location": { - "type": "String", - "value": "West US" - } - }, - "mode": "Incremental", - "provisioningState": "Accepted", - "timestamp": "2022-04-14T08:05:49.9927844Z", - "duration": "PT0.0001335S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Compute", - "resourceTypes": [ - { - "resourceType": "availabilitySets", - "locations": [ - "westus" - ] - } - ] - } - ], - "dependencies": [] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/go-test-deployment/operationStatuses/08585516833380482591?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "20", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 14 Apr 2022 08:05:52 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11998", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080552Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Running" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/go-test-deployment/operationStatuses/08585516833380482591?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "22", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 14 Apr 2022 08:06:02 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11997", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080603Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Succeeded" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/go-test-deployment?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "940", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 14 Apr 2022 08:06:03 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11996", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080603Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/go-test-deployment", - "name": "go-test-deployment", - "type": "Microsoft.Resources/deployments", - "properties": { - "templateHash": "3315814388681758746", - "parameters": { - "location": { - "type": "String", - "value": "West US" - } - }, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2022-04-14T08:05:58.2827166Z", - "duration": "PT8.2900657S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Compute", - "resourceTypes": [ - { - "resourceType": "availabilitySets", - "locations": [ - "westus" - ] - } - ] - } - ], - "dependencies": [], - "outputs": { - "myparameter": { - "type": "Object", - "value": { - "platformUpdateDomainCount": 5, - "platformFaultDomainCount": 3 - } - } - }, - "outputResources": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/availabilitySets/availabilitySet1" - } - ] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/go-test-deployment?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "940", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 14 Apr 2022 08:06:04 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11995", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080604Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/go-test-deployment", - "name": "go-test-deployment", - "type": "Microsoft.Resources/deployments", - "properties": { - "templateHash": "3315814388681758746", - "parameters": { - "location": { - "type": "String", - "value": "West US" - } - }, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "2022-04-14T08:05:58.2827166Z", - "duration": "PT8.2900657S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Compute", - "resourceTypes": [ - { - "resourceType": "availabilitySets", - "locations": [ - "westus" - ] - } - ] - } - ], - "dependencies": [], - "outputs": { - "myparameter": { - "type": "Object", - "value": { - "platformUpdateDomainCount": 5, - "platformFaultDomainCount": 3 - } - } - }, - "outputResources": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/availabilitySets/availabilitySet1" - } - ] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/go-test-deployment/whatIf?api-version=2021-04-01", - "RequestMethod": "POST", - "RequestHeaders": { - ":method": "POST", - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "633", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": { - "properties": { - "mode": "Incremental", - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "outputs": { - "myparameter": { - "type": "object", - "value": "[reference(\u0027Microsoft.Compute/availabilitySets/availabilitySet1\u0027)]" - } - }, - "parameters": { - "location": { - "allowedValues": [ - "East US", - "West US", - "West Europe", - "East Asia", - "South East Asia" - ], - "metadata": { - "description": "Location to deploy to" - }, - "type": "string" - } - }, - "resources": [ - { - "apiVersion": "2019-07-01", - "location": "[parameters(\u0027location\u0027)]", - "name": "availabilitySet1", - "properties": {}, - "type": "Microsoft.Compute/availabilitySets" - } - ] - } - } - }, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Thu, 14 Apr 2022 08:06:05 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IkRlcGxveW1lbnRXaGF0SWZKb2ItR086MkRTREs6MkRURVNUOjJEMzM3LUdPOjJEVEVTVDoyRERFUExPWU1FTlQtQjkxMjI5NUQ6MkQ1MjA4OjJENDNDOToyRDk1REY6MkQ0NTBBM0Y1MDU4RUEiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080606Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IkRlcGxveW1lbnRXaGF0SWZKb2ItR086MkRTREs6MkRURVNUOjJEMzM3LUdPOjJEVEVTVDoyRERFUExPWU1FTlQtQjkxMjI5NUQ6MkQ1MjA4OjJENDNDOToyRDk1REY6MkQ0NTBBM0Y1MDU4RUEiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "420", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 14 Apr 2022 08:06:21 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11994", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080621Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "status": "Failed", - "error": { - "code": "InvalidTemplate", - "message": "Deployment template validation failed: \u0027The value for the template parameter \u0027location\u0027 at line \u00271\u0027 and column \u0027172\u0027 is not provided. Please see https://aka.ms/resource-manager-parameter-files for usage details.\u0027.", - "additionalInfo": [ - { - "type": "TemplateViolation", - "info": { - "lineNumber": 1, - "linePosition": 172, - "path": "properties.template.parameters.location" - } - } - ] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/go-test-deployment/validate?api-version=2021-04-01", - "RequestMethod": "POST", - "RequestHeaders": { - ":method": "POST", - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "679", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": { - "properties": { - "mode": "Incremental", - "parameters": { - "location": { - "value": "West US" - } - }, - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "outputs": { - "myparameter": { - "type": "object", - "value": "[reference(\u0027Microsoft.Compute/availabilitySets/availabilitySet1\u0027)]" - } - }, - "parameters": { - "location": { - "allowedValues": [ - "East US", - "West US", - "West Europe", - "East Asia", - "South East Asia" - ], - "metadata": { - "description": "Location to deploy to" - }, - "type": "string" - } - }, - "resources": [ - { - "apiVersion": "2019-07-01", - "location": "[parameters(\u0027location\u0027)]", - "name": "availabilitySet1", - "properties": {}, - "type": "Microsoft.Compute/availabilitySets" - } - ] - } - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 14 Apr 2022 08:06:22 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080622Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/go-test-deployment", - "name": "go-test-deployment", - "type": "Microsoft.Resources/deployments", - "properties": { - "templateHash": "3315814388681758746", - "parameters": { - "location": { - "type": "String", - "value": "West US" - } - }, - "mode": "Incremental", - "provisioningState": "Succeeded", - "timestamp": "0001-01-01T00:00:00Z", - "duration": "PT0S", - "correlationId": "00000000-0000-0000-0000-000000000000", - "providers": [ - { - "namespace": "Microsoft.Compute", - "resourceTypes": [ - { - "resourceType": "availabilitySets", - "locations": [ - "westus" - ] - } - ] - } - ], - "dependencies": [], - "validatedResources": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/availabilitySets/availabilitySet1" - } - ] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/go-test-deployment/exportTemplate?api-version=2021-04-01", - "RequestMethod": "POST", - "RequestHeaders": { - ":method": "POST", - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 14 Apr 2022 08:06:23 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1197", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080623Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "location": { - "allowedValues": [ - "East US", - "West US", - "West Europe", - "East Asia", - "South East Asia" - ], - "type": "String", - "metadata": { - "description": "Location to deploy to" - } - } - }, - "resources": [ - { - "type": "Microsoft.Compute/availabilitySets", - "apiVersion": "2019-07-01", - "name": "availabilitySet1", - "location": "[parameters(\u0027location\u0027)]", - "properties": {} - } - ], - "outputs": { - "myparameter": { - "type": "Object", - "value": "[reference(\u0027Microsoft.Compute/availabilitySets/availabilitySet1\u0027)]" - } - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Resources/deployments/go-test-deployment?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Thu, 14 Apr 2022 08:06:26 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IkRlcGxveW1lbnREZWxldGlvbkpvYi1HTlMtR086MkRTREs6MkRURVNUOjJEMzM3LUdPOjJEVEVTVDoyRERFUExPWU1FTlQtIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14999", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080627Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IkRlcGxveW1lbnREZWxldGlvbkpvYi1HTlMtR086MkRTREs6MkRURVNUOjJEMzM3LUdPOjJEVEVTVDoyRERFUExPWU1FTlQtIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Date": "Thu, 14 Apr 2022 08:06:41 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11993", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080642Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Thu, 14 Apr 2022 08:06:44 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQzMzctRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14998", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080645Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/resourcemanager/resources/armresources/testdata/recordings/TestResourceGroupsClient.json b/sdk/resourcemanager/resources/armresources/testdata/recordings/TestResourceGroupsClient.json deleted file mode 100644 index c66b7baa04dc..000000000000 --- a/sdk/resourcemanager/resources/armresources/testdata/recordings/TestResourceGroupsClient.json +++ /dev/null @@ -1,430 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": { - "location": "eastus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 14 Apr 2022 08:06:48 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080649Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "eastus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": { - "location": "eastus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "217", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 14 Apr 2022 08:06:49 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1197", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080650Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-test-rg", - "name": "go-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "eastus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-test-rg?api-version=2021-04-01", - "RequestMethod": "HEAD", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Thu, 14 Apr 2022 08:06:49 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11992", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080650Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-test-rg?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "217", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 14 Apr 2022 08:06:49 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11991", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080650Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-test-rg", - "name": "go-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "eastus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-test-rg?api-version=2021-04-01", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "24", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": { - "tags": { - "key": "value" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 14 Apr 2022 08:06:50 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1196", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080651Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-test-rg", - "name": "go-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "eastus", - "tags": { - "key": "value" - }, - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-test-rg/exportTemplate?api-version=2021-04-01", - "RequestMethod": "POST", - "RequestHeaders": { - ":method": "POST", - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "19", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": { - "resources": [ - "*" - ] - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "179", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 14 Apr 2022 08:06:52 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11990", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080653Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "template": { - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": {}, - "variables": {}, - "resources": [] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Thu, 14 Apr 2022 08:06:53 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFRFU1Q6MkRSRy1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14997", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080654Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFRFU1Q6MkRSRy1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Thu, 14 Apr 2022 08:07:10 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFRFU1Q6MkRSRy1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11989", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080710Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFRFU1Q6MkRSRy1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Thu, 14 Apr 2022 08:07:25 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFRFU1Q6MkRSRy1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11988", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080726Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFRFU1Q6MkRSRy1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Thu, 14 Apr 2022 08:07:41 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFRFU1Q6MkRSRy1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11987", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080741Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFRFU1Q6MkRSRy1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Thu, 14 Apr 2022 08:07:56 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFRFU1Q6MkRSRy1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11986", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080757Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFRFU1Q6MkRSRy1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Thu, 14 Apr 2022 08:08:11 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11985", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080812Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Thu, 14 Apr 2022 08:08:14 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ3MTMtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14996", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080815Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/resourcemanager/resources/armresources/testdata/recordings/TestResourcesClient.json b/sdk/resourcemanager/resources/armresources/testdata/recordings/TestResourcesClient.json deleted file mode 100644 index 55a6e9104bde..000000000000 --- a/sdk/resourcemanager/resources/armresources/testdata/recordings/TestResourcesClient.json +++ /dev/null @@ -1,496 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": { - "location": "eastus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 14 Apr 2022 08:08:17 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1195", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080817Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "eastus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Compute//availabilitySets/go-test-resource?api-version=2021-07-01", - "RequestMethod": "HEAD", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 404, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "238", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 14 Apr 2022 08:08:18 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-failure-cause": "gateway", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080818Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/availabilitySets/go-test-resource?api-version=2021-07-01", - "RequestMethod": "HEAD", - "RequestHeaders": { - "Accept": "application/json", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 404, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "238", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 14 Apr 2022 08:08:19 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-failure-cause": "gateway", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080819Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Compute//availabilitySets/go-test-resource?api-version=2021-07-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "39", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": { - "location": "eastus", - "properties": null - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 14 Apr 2022 08:08:24 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/PutVM3Min;239,Microsoft.Compute/PutVM30Min;1199", - "x-ms-ratelimit-remaining-subscription-writes": "1194", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080824Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "go-test-resource", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/availabilitySets/go-test-resource", - "type": "Microsoft.Compute/availabilitySets", - "location": "eastus", - "properties": { - "platformUpdateDomainCount": 5, - "platformFaultDomainCount": 3 - }, - "sku": { - "name": "Classic" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/availabilitySets/go-test-resource?api-version=2021-07-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "39", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": { - "location": "eastus", - "properties": null - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 14 Apr 2022 08:08:26 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/PutVM3Min;238,Microsoft.Compute/PutVM30Min;1198", - "x-ms-ratelimit-remaining-subscription-writes": "1193", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080826Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "go-test-resource", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/availabilitySets/go-test-resource", - "type": "Microsoft.Compute/availabilitySets", - "location": "eastus", - "properties": { - "platformUpdateDomainCount": 5, - "platformFaultDomainCount": 3 - }, - "sku": { - "name": "Classic" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Compute//availabilitySets/go-test-resource?api-version=2019-07-01", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "44", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": { - "properties": null, - "tags": { - "tag1": "value1" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 14 Apr 2022 08:08:28 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/PutVM3Min;237,Microsoft.Compute/PutVM30Min;1197", - "x-ms-ratelimit-remaining-subscription-writes": "1192", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080828Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "go-test-resource", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/availabilitySets/go-test-resource", - "type": "Microsoft.Compute/availabilitySets", - "location": "eastus", - "tags": { - "tag1": "value1" - }, - "properties": { - "platformUpdateDomainCount": 5, - "platformFaultDomainCount": 3 - }, - "sku": { - "name": "Classic" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/availabilitySets/go-test-resource?api-version=2019-07-01", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "44", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": { - "properties": null, - "tags": { - "key2": "value2" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 14 Apr 2022 08:08:30 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/PutVM3Min;236,Microsoft.Compute/PutVM30Min;1196", - "x-ms-ratelimit-remaining-subscription-writes": "1191", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080830Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "go-test-resource", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/availabilitySets/go-test-resource", - "type": "Microsoft.Compute/availabilitySets", - "location": "eastus", - "tags": { - "key2": "value2" - }, - "properties": { - "platformUpdateDomainCount": 5, - "platformFaultDomainCount": 3 - }, - "sku": { - "name": "Classic" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Compute//availabilitySets/go-test-resource?api-version=2019-07-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 14 Apr 2022 08:08:31 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/LowCostGet3Min;3998,Microsoft.Compute/LowCostGet30Min;31988", - "x-ms-ratelimit-remaining-subscription-reads": "11982", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080831Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "go-test-resource", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/availabilitySets/go-test-resource", - "type": "Microsoft.Compute/availabilitySets", - "location": "eastus", - "tags": { - "key2": "value2" - }, - "properties": { - "platformUpdateDomainCount": 5, - "platformFaultDomainCount": 3, - "virtualMachines": [] - }, - "sku": { - "name": "Classic" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/availabilitySets/go-test-resource?api-version=2019-07-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 14 Apr 2022 08:08:31 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/LowCostGet3Min;3997,Microsoft.Compute/LowCostGet30Min;31987", - "x-ms-ratelimit-remaining-subscription-reads": "11981", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080831Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "go-test-resource", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/availabilitySets/go-test-resource", - "type": "Microsoft.Compute/availabilitySets", - "location": "eastus", - "tags": { - "key2": "value2" - }, - "properties": { - "platformUpdateDomainCount": 5, - "platformFaultDomainCount": 3, - "virtualMachines": [] - }, - "sku": { - "name": "Classic" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.Compute//availabilitySets/go-test-resource?api-version=2019-07-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Thu, 14 Apr 2022 08:08:37 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Microsoft-HTTPAPI/2.0", - "Microsoft-HTTPAPI/2.0" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-resource": "Microsoft.Compute/DeleteVM3Min;239,Microsoft.Compute/DeleteVM30Min;1199", - "x-ms-ratelimit-remaining-subscription-deletes": "14995", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080838Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Compute/availabilitySets/go-test-resource?api-version=2019-07-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Date": "Thu, 14 Apr 2022 08:08:38 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14994", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080838Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Thu, 14 Apr 2022 08:08:39 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ3MTgtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14993", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080840Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/resourcemanager/resources/armresources/testdata/recordings/TestTagsClient.json b/sdk/resourcemanager/resources/armresources/testdata/recordings/TestTagsClient.json deleted file mode 100644 index dd230cdb7b43..000000000000 --- a/sdk/resourcemanager/resources/armresources/testdata/recordings/TestTagsClient.json +++ /dev/null @@ -1,357 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": { - "location": "eastus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 14 Apr 2022 08:08:42 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1190", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080842Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "eastus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/go-test-tags?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "154", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 14 Apr 2022 08:08:46 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1189", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080846Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/go-test-tags", - "tagName": "go-test-tags", - "count": { - "type": "Total", - "value": 0 - }, - "values": [] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/go-test-tags/tagValues/go-test-value?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "168", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 14 Apr 2022 08:08:48 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1188", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080848Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/go-test-tags/tagValues/go-test-value", - "tagValue": "go-test-value", - "count": { - "type": "Total", - "value": 0 - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/go-test-tags/tagValues/go-test-value?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Thu, 14 Apr 2022 08:08:50 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14992", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080850Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/tagNames/go-test-tags?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Thu, 14 Apr 2022 08:08:52 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14991", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080852Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/tags/default?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "69", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": { - "properties": { - "tags": { - "tagKey1": "tagValue1", - "tagKey2": "tagValue2" - } - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 14 Apr 2022 08:08:52 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1187", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080852Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/tags/default", - "name": "default", - "type": "Microsoft.Resources/tags", - "properties": { - "tags": { - "tagKey1": "tagValue1", - "tagKey2": "tagValue2" - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/tags/default?api-version=2021-04-01", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "66", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": { - "operation": "Delete", - "properties": { - "tags": { - "tagKey1": "tagKey1" - } - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 14 Apr 2022 08:08:52 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1186", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080853Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/tags/default", - "name": "default", - "type": "Microsoft.Resources/tags", - "properties": { - "tags": { - "tagKey1": "tagValue1", - "tagKey2": "tagValue2" - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/tags/default?api-version=2021-04-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "252", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 14 Apr 2022 08:08:53 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11980", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080853Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/tags/default", - "name": "default", - "type": "Microsoft.Resources/tags", - "properties": { - "tags": { - "tagKey1": "tagValue1", - "tagKey2": "tagValue2" - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/tags/default?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Thu, 14 Apr 2022 08:08:53 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14990", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080854Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Thu, 14 Apr 2022 08:08:55 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ1NDItRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14989", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T080855Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/resourcemanager/resources/armsubscriptions/assets.json b/sdk/resourcemanager/resources/armsubscriptions/assets.json new file mode 100644 index 000000000000..8db63df8a19f --- /dev/null +++ b/sdk/resourcemanager/resources/armsubscriptions/assets.json @@ -0,0 +1,6 @@ +{ + "AssetsRepo": "Azure/azure-sdk-assets", + "AssetsRepoPrefixPath": "go", + "TagPrefix": "go/resourcemanager/resources/armsubscriptions", + "Tag": "go/resourcemanager/resources/armsubscriptions_a86b3d5d3c" +} diff --git a/sdk/resourcemanager/resources/armsubscriptions/go.mod b/sdk/resourcemanager/resources/armsubscriptions/go.mod index f823298d778a..f9c31cd4dc56 100644 --- a/sdk/resourcemanager/resources/armsubscriptions/go.mod +++ b/sdk/resourcemanager/resources/armsubscriptions/go.mod @@ -3,27 +3,27 @@ module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armsubscr go 1.18 require ( - github.com/Azure/azure-sdk-for-go/sdk/azcore v1.0.0 - github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.0.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.0.0 + github.com/Azure/azure-sdk-for-go/sdk/azcore v1.4.0 + github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.2 github.com/stretchr/testify v1.7.0 ) require ( - github.com/Azure/azure-sdk-for-go/sdk/internal v1.0.0 // indirect + github.com/Azure/azure-sdk-for-go/sdk/internal v1.2.0 // indirect github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0 // indirect - github.com/AzureAD/microsoft-authentication-library-for-go v0.4.0 // indirect + github.com/AzureAD/microsoft-authentication-library-for-go v0.7.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/dnaeon/go-vcr v1.1.0 // indirect - github.com/golang-jwt/jwt v3.2.1+incompatible // indirect + github.com/golang-jwt/jwt/v4 v4.4.2 // 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 github.com/pmezard/go-difflib v1.0.0 // 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 + golang.org/x/net v0.7.0 // indirect + golang.org/x/sys v0.5.0 // indirect + golang.org/x/text v0.7.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect ) diff --git a/sdk/resourcemanager/resources/armsubscriptions/go.sum b/sdk/resourcemanager/resources/armsubscriptions/go.sum index 3bb750d4f3e7..b0f97586a165 100644 --- a/sdk/resourcemanager/resources/armsubscriptions/go.sum +++ b/sdk/resourcemanager/resources/armsubscriptions/go.sum @@ -1,29 +1,27 @@ -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/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.0.0 h1:lMW1lD/17LUA5z1XTURo7LcVG2ICBPlyMHjIUrcFZNQ= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.0.0/go.mod h1:ceIuwmxDWptoW3eCqSXlnPsZFKh4X+R38dWPv7GS9Vs= +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.0 h1:t/W5MYAuQy81cvM8VUNfRLzhtKpXhVUAN7Cd7KVbTyc= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.0/go.mod h1:NBanQUfSWiWn3QEpWDTCU0IjBECKOYvl2R8xdRtMtiM= +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/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.2 h1:mLY+pNLjCUeKhgnAJWAKhEUQM+RJQo2H1fuGSw1Ky1E= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.2/go.mod h1:FbdwsQ2EzwvXxOPcMFYO8ogEc9uMMIj3YkmCdXdAFmk= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0 h1:ECsQtyERDVz3NP3kvDOTLvbQhqWp/x9EsGKtb4ogUr8= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0/go.mod h1:s1tW/At+xHqjNFvWU4G0c0Qv33KOhvbGNj0RCTQDV8s= -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/AzureAD/microsoft-authentication-library-for-go v0.7.0 h1:VgSJlZH5u0k2qxSpqyghcFQKmvYckj46uymKK5XzkBM= +github.com/AzureAD/microsoft-authentication-library-for-go v0.7.0/go.mod h1:BDJ5qMFKx9DugEg3+uQSDCdbYPr5s9vBTrL9P8TpqOU= 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/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 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= +github.com/golang-jwt/jwt/v4 v4.4.2 h1:rcc4lwaZgFMCZ5jxF9ABolDcIHdBytAFgqFPbSJQAYs= +github.com/golang-jwt/jwt/v4 v4.4.2/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= 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= @@ -33,13 +31,12 @@ github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5Cc github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= 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-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/net v0.7.0 h1:rJrUqqhjsgNp7KqAIc25s9pZnjU7TUcSY7HcVZjdn1g= +golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= +golang.org/x/sys v0.5.0 h1:MUK/U/4lj1t1oPg0HfuXDN/Z1wv31ZJ/YcPiGccS4DU= +golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/text v0.7.0 h1:4BRB4x83lYWy72KwLD/qYDuTu7q9PjSagHvijDw7cLo= +golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= 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= diff --git a/sdk/resourcemanager/resources/armsubscriptions/testdata/recordings/TestSubscriptionsClient.json b/sdk/resourcemanager/resources/armsubscriptions/testdata/recordings/TestSubscriptionsClient.json deleted file mode 100644 index 2dc3101f8a7d..000000000000 --- a/sdk/resourcemanager/resources/armsubscriptions/testdata/recordings/TestSubscriptionsClient.json +++ /dev/null @@ -1,158 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": { - "location": "eastus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 14 Apr 2022 05:28:59 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T052859Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "eastus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000?api-version=2021-01-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armsubscriptions/v0.3.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Length": "481", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 14 Apr 2022 05:28:59 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11999", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T052859Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000", - "authorizationSource": "RoleBased", - "managedByTenants": [], - "tags": { - "tagKey1": "tag-value-1", - "tagKey2": "tag-value-2" - }, - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "tenantId": "00000000-0000-0000-0000-000000000000", - "displayName": "NodeJS and Go Mgmt SDK Test with TTL = 1 day", - "state": "Enabled", - "subscriptionPolicies": { - "locationPlacementId": "Internal_2014-09-01", - "quotaId": "Internal_2014-09-01", - "spendingLimit": "Off" - } - } - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.Resources/checkResourceName?api-version=2021-01-01", - "RequestMethod": "POST", - "RequestHeaders": { - ":method": "POST", - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "52", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armsubscriptions/v0.3.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": { - "name": "go-test-subnet", - "type": "Microsoft.Compute" - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 14 Apr 2022 05:28:59 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-tenant-writes": "1199", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T052859Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "name": "go-test-subnet", - "type": "Microsoft.Compute", - "status": "Allowed" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Thu, 14 Apr 2022 05:29:03 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ1MzItRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14999", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T052903Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/resourcemanager/resources/armsubscriptions/testdata/recordings/TestTenantsClient.json b/sdk/resourcemanager/resources/armsubscriptions/testdata/recordings/TestTenantsClient.json deleted file mode 100644 index 217c6469e85d..000000000000 --- a/sdk/resourcemanager/resources/armsubscriptions/testdata/recordings/TestTenantsClient.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": { - "location": "eastus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 14 Apr 2022 05:29:05 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T052905Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "eastus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v0.4.0 azsdk-go-azcore/v0.23.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Thu, 14 Apr 2022 05:29:06 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ3NDUtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14998", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220414T052907Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/resourcemanager/resources/armtemplatespecs/assets.json b/sdk/resourcemanager/resources/armtemplatespecs/assets.json new file mode 100644 index 000000000000..4f920e29c5e0 --- /dev/null +++ b/sdk/resourcemanager/resources/armtemplatespecs/assets.json @@ -0,0 +1,6 @@ +{ + "AssetsRepo": "Azure/azure-sdk-assets", + "AssetsRepoPrefixPath": "go", + "TagPrefix": "go/resourcemanager/resources/armtemplatespecs", + "Tag": "go/resourcemanager/resources/armtemplatespecs_6c04adcf5f" +} diff --git a/sdk/resourcemanager/resources/armtemplatespecs/go.mod b/sdk/resourcemanager/resources/armtemplatespecs/go.mod index 4ac873e4d910..c232f8bffadf 100644 --- a/sdk/resourcemanager/resources/armtemplatespecs/go.mod +++ b/sdk/resourcemanager/resources/armtemplatespecs/go.mod @@ -3,27 +3,27 @@ module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armtempla go 1.18 require ( - github.com/Azure/azure-sdk-for-go/sdk/azcore v1.0.0 - github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.0.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.0.0 + github.com/Azure/azure-sdk-for-go/sdk/azcore v1.4.0 + github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.2 github.com/stretchr/testify v1.7.0 ) require ( - github.com/Azure/azure-sdk-for-go/sdk/internal v1.0.0 // indirect + github.com/Azure/azure-sdk-for-go/sdk/internal v1.2.0 // indirect github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0 // indirect - github.com/AzureAD/microsoft-authentication-library-for-go v0.4.0 // indirect + github.com/AzureAD/microsoft-authentication-library-for-go v0.7.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/dnaeon/go-vcr v1.1.0 // indirect - github.com/golang-jwt/jwt v3.2.1+incompatible // indirect + github.com/golang-jwt/jwt/v4 v4.4.2 // 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 github.com/pmezard/go-difflib v1.0.0 // 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 + golang.org/x/net v0.7.0 // indirect + golang.org/x/sys v0.5.0 // indirect + golang.org/x/text v0.7.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect ) diff --git a/sdk/resourcemanager/resources/armtemplatespecs/go.sum b/sdk/resourcemanager/resources/armtemplatespecs/go.sum index 3bb750d4f3e7..b0f97586a165 100644 --- a/sdk/resourcemanager/resources/armtemplatespecs/go.sum +++ b/sdk/resourcemanager/resources/armtemplatespecs/go.sum @@ -1,29 +1,27 @@ -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/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.0.0 h1:lMW1lD/17LUA5z1XTURo7LcVG2ICBPlyMHjIUrcFZNQ= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.0.0/go.mod h1:ceIuwmxDWptoW3eCqSXlnPsZFKh4X+R38dWPv7GS9Vs= +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.0 h1:t/W5MYAuQy81cvM8VUNfRLzhtKpXhVUAN7Cd7KVbTyc= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.0/go.mod h1:NBanQUfSWiWn3QEpWDTCU0IjBECKOYvl2R8xdRtMtiM= +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/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.2 h1:mLY+pNLjCUeKhgnAJWAKhEUQM+RJQo2H1fuGSw1Ky1E= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.2/go.mod h1:FbdwsQ2EzwvXxOPcMFYO8ogEc9uMMIj3YkmCdXdAFmk= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0 h1:ECsQtyERDVz3NP3kvDOTLvbQhqWp/x9EsGKtb4ogUr8= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0/go.mod h1:s1tW/At+xHqjNFvWU4G0c0Qv33KOhvbGNj0RCTQDV8s= -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/AzureAD/microsoft-authentication-library-for-go v0.7.0 h1:VgSJlZH5u0k2qxSpqyghcFQKmvYckj46uymKK5XzkBM= +github.com/AzureAD/microsoft-authentication-library-for-go v0.7.0/go.mod h1:BDJ5qMFKx9DugEg3+uQSDCdbYPr5s9vBTrL9P8TpqOU= 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/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 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= +github.com/golang-jwt/jwt/v4 v4.4.2 h1:rcc4lwaZgFMCZ5jxF9ABolDcIHdBytAFgqFPbSJQAYs= +github.com/golang-jwt/jwt/v4 v4.4.2/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= 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= @@ -33,13 +31,12 @@ github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5Cc github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= 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-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/net v0.7.0 h1:rJrUqqhjsgNp7KqAIc25s9pZnjU7TUcSY7HcVZjdn1g= +golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= +golang.org/x/sys v0.5.0 h1:MUK/U/4lj1t1oPg0HfuXDN/Z1wv31ZJ/YcPiGccS4DU= +golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/text v0.7.0 h1:4BRB4x83lYWy72KwLD/qYDuTu7q9PjSagHvijDw7cLo= +golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= 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= diff --git a/sdk/resourcemanager/resources/armtemplatespecs/testdata/recordings/TestTemplateSpecVersionsClient.json b/sdk/resourcemanager/resources/armtemplatespecs/testdata/recordings/TestTemplateSpecVersionsClient.json deleted file mode 100644 index 07d50bb9454e..000000000000 --- a/sdk/resourcemanager/resources/armtemplatespecs/testdata/recordings/TestTemplateSpecVersionsClient.json +++ /dev/null @@ -1,360 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.18; Windows_NT)" - }, - "RequestBody": { - "location": "eastus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 16 May 2022 13:05:55 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1196", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220516T130555Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "eastus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/templateSpecs/go-test-template?api-version=2022-02-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "117", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armtemplatespecs/v1.0.0 (go1.18; Windows_NT)" - }, - "RequestBody": { - "location": "eastus", - "properties": { - "description": "template spec properties description.", - "metadata": { - "live": "test" - } - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "725", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 16 May 2022 13:05:58 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1195", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220516T130559Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "location": "eastus", - "properties": { - "description": "template spec properties description.", - "metadata": { - "live": "test" - } - }, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-05-16T13:05:57.5031583Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-05-16T13:05:57.5031583Z" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/templateSpecs/go-test-template", - "type": "Microsoft.Resources/templateSpecs", - "name": "go-test-template" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/templateSpecs/go-test-template/versions/go-test-template-version?api-version=2022-02-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "305", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armtemplatespecs/v1.0.0 (go1.18; Windows_NT)" - }, - "RequestBody": { - "location": "eastus", - "properties": { - "description": "\u003Cdescription\u003E", - "mainTemplate": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": {}, - "resources": [] - }, - "metadata": { - "live": "test" - }, - "uiFormDefinition": { - "live": "test" - } - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "1025", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 16 May 2022 13:06:03 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1194", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220516T130603Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "location": "eastus", - "properties": { - "description": "\u003Cdescription\u003E", - "metadata": { - "live": "test" - }, - "uiFormDefinition": { - "live": "test" - }, - "mainTemplate": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": {}, - "resources": [] - } - }, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-05-16T13:06:01.7218813Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-05-16T13:06:01.7218813Z" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/templateSpecs/go-test-template/versions/go-test-template-version", - "type": "Microsoft.Resources/templateSpecs/versions", - "name": "go-test-template-version" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/templateSpecs/go-test-template/versions/go-test-template-version?api-version=2022-02-01", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "24", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armtemplatespecs/v1.0.0 (go1.18; Windows_NT)" - }, - "RequestBody": { - "tags": { - "test": "live" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 16 May 2022 13:06:05 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1193", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220516T130605Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "location": "eastus", - "tags": { - "test": "live" - }, - "properties": { - "description": "\u003Cdescription\u003E", - "metadata": { - "live": "test" - }, - "uiFormDefinition": { - "live": "test" - }, - "mainTemplate": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": {}, - "resources": [] - } - }, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-05-16T13:06:01.7218813Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-05-16T13:06:03.8468891Z" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/templateSpecs/go-test-template/versions/go-test-template-version", - "type": "Microsoft.Resources/templateSpecs/versions", - "name": "go-test-template-version" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/templateSpecs/go-test-template/versions/go-test-template-version?api-version=2022-02-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armtemplatespecs/v1.0.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 16 May 2022 13:06:06 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11998", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220516T130606Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "location": "eastus", - "tags": { - "test": "live" - }, - "properties": { - "description": "\u003Cdescription\u003E", - "metadata": { - "live": "test" - }, - "uiFormDefinition": { - "live": "test" - }, - "mainTemplate": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": {}, - "resources": [] - } - }, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-05-16T13:06:01.7218813Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-05-16T13:06:03.8468891Z" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/templateSpecs/go-test-template/versions/go-test-template-version", - "type": "Microsoft.Resources/templateSpecs/versions", - "name": "go-test-template-version" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/templateSpecs/go-test-template/versions/go-test-template-version?api-version=2022-02-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armtemplatespecs/v1.0.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 16 May 2022 13:06:09 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14997", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220516T130609Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 16 May 2022 13:06:11 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQzNS1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14996", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220516T130611Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/resourcemanager/resources/armtemplatespecs/testdata/recordings/TestTemplateSpecsClient.json b/sdk/resourcemanager/resources/armtemplatespecs/testdata/recordings/TestTemplateSpecsClient.json deleted file mode 100644 index 651107f10344..000000000000 --- a/sdk/resourcemanager/resources/armtemplatespecs/testdata/recordings/TestTemplateSpecsClient.json +++ /dev/null @@ -1,267 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.18; Windows_NT)" - }, - "RequestBody": { - "location": "eastus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 16 May 2022 13:05:37 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220516T130537Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "eastus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/templateSpecs/go-test-template?api-version=2022-02-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "117", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armtemplatespecs/v1.0.0 (go1.18; Windows_NT)" - }, - "RequestBody": { - "location": "eastus", - "properties": { - "description": "template spec properties description.", - "metadata": { - "live": "test" - } - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "725", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 16 May 2022 13:05:43 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220516T130543Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "location": "eastus", - "properties": { - "description": "template spec properties description.", - "metadata": { - "live": "test" - } - }, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-05-16T13:05:41.0499467Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-05-16T13:05:41.0499467Z" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/templateSpecs/go-test-template", - "type": "Microsoft.Resources/templateSpecs", - "name": "go-test-template" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/templateSpecs/go-test-template?api-version=2022-02-01", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "24", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armtemplatespecs/v1.0.0 (go1.18; Windows_NT)" - }, - "RequestBody": { - "tags": { - "test": "live" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 16 May 2022 13:05:46 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1197", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220516T130546Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "location": "eastus", - "tags": { - "test": "live" - }, - "properties": { - "description": "template spec properties description.", - "metadata": { - "live": "test" - } - }, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-05-16T13:05:41.0499467Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-05-16T13:05:44.2686905Z" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/templateSpecs/go-test-template", - "type": "Microsoft.Resources/templateSpecs", - "name": "go-test-template" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/templateSpecs/go-test-template?api-version=2022-02-01", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armtemplatespecs/v1.0.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 16 May 2022 13:05:46 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11999", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220516T130547Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "location": "eastus", - "tags": { - "test": "live" - }, - "properties": { - "description": "template spec properties description.", - "metadata": { - "live": "test" - } - }, - "systemData": { - "createdBy": "00000000-0000-0000-0000-000000000000", - "createdByType": "Application", - "createdAt": "2022-05-16T13:05:41.0499467Z", - "lastModifiedBy": "00000000-0000-0000-0000-000000000000", - "lastModifiedByType": "Application", - "lastModifiedAt": "2022-05-16T13:05:44.2686905Z" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/templateSpecs/go-test-template", - "type": "Microsoft.Resources/templateSpecs", - "name": "go-test-template" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Resources/templateSpecs/go-test-template?api-version=2022-02-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armtemplatespecs/v1.0.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 16 May 2022 13:05:49 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14999", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220516T130550Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.18; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 16 May 2022 13:05:53 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQxOS1FQVNUVVMiLCJqb2JMb2NhdGlvbiI6ImVhc3R1cyJ9?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14998", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220516T130553Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/resourcemanager/servicebus/armservicebus/assets.json b/sdk/resourcemanager/servicebus/armservicebus/assets.json new file mode 100644 index 000000000000..0ddae890342a --- /dev/null +++ b/sdk/resourcemanager/servicebus/armservicebus/assets.json @@ -0,0 +1,6 @@ +{ + "AssetsRepo": "Azure/azure-sdk-assets", + "AssetsRepoPrefixPath": "go", + "TagPrefix": "go/resourcemanager/servicebus/armservicebus", + "Tag": "go/resourcemanager/servicebus/armservicebus_0488c4ddeb" +} diff --git a/sdk/resourcemanager/servicebus/armservicebus/go.mod b/sdk/resourcemanager/servicebus/armservicebus/go.mod index 4d48595b625a..a2d1c3b44d4b 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/go.mod +++ b/sdk/resourcemanager/servicebus/armservicebus/go.mod @@ -3,19 +3,27 @@ module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicebus/armservi go 1.18 require ( - github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.0 + github.com/Azure/azure-sdk-for-go/sdk/azcore v1.4.0 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.1 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.2 + github.com/stretchr/testify v1.7.0 ) require ( - github.com/Azure/azure-sdk-for-go/sdk/internal v1.0.0 // indirect + github.com/Azure/azure-sdk-for-go/sdk/internal v1.2.0 // indirect + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0 // indirect github.com/AzureAD/microsoft-authentication-library-for-go v0.8.1 // indirect + github.com/davecgh/go-spew v1.1.1 // indirect + github.com/dnaeon/go-vcr v1.1.0 // indirect github.com/golang-jwt/jwt/v4 v4.4.2 // 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 + github.com/pmezard/go-difflib v1.0.0 // 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 + golang.org/x/net v0.7.0 // indirect + golang.org/x/sys v0.5.0 // indirect + golang.org/x/text v0.7.0 // indirect + gopkg.in/yaml.v2 v2.4.0 // indirect + gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect ) diff --git a/sdk/resourcemanager/servicebus/armservicebus/go.sum b/sdk/resourcemanager/servicebus/armservicebus/go.sum index f62f42f1f55c..05c50ce40fb1 100644 --- a/sdk/resourcemanager/servicebus/armservicebus/go.sum +++ b/sdk/resourcemanager/servicebus/armservicebus/go.sum @@ -1,30 +1,47 @@ -github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.0 h1:Ut0ZGdOwJDw0npYEg+TLlPls3Pq6JiZaP2/aGKir7Zw= -github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.0/go.mod h1:uGG2W01BaETf0Ozp+QxxKJdMBNRWPdstHG0Fmdwn1/U= +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.1 h1:T8quHYlUGyb/oqtSTwqlCr1ilJHrDv+ZtpSfo+hm1BU= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.1/go.mod h1:gLa1CL2RNE4s7M3yopJ/p0iq5DdY6Yv5ZUt9MTRZOQM= -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/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/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.2 h1:mLY+pNLjCUeKhgnAJWAKhEUQM+RJQo2H1fuGSw1Ky1E= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.2/go.mod h1:FbdwsQ2EzwvXxOPcMFYO8ogEc9uMMIj3YkmCdXdAFmk= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0 h1:ECsQtyERDVz3NP3kvDOTLvbQhqWp/x9EsGKtb4ogUr8= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0/go.mod h1:s1tW/At+xHqjNFvWU4G0c0Qv33KOhvbGNj0RCTQDV8s= github.com/AzureAD/microsoft-authentication-library-for-go v0.8.1 h1:oPdPEZFSbl7oSPEAIPMPBMUmiL+mqgzBJwM/9qYcwNg= github.com/AzureAD/microsoft-authentication-library-for-go v0.8.1/go.mod h1:4qFor3D/HDsvBME35Xy9rwW9DecL+M2sNw1ybjPtwA0= +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/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 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/v4 v4.4.2 h1:rcc4lwaZgFMCZ5jxF9ABolDcIHdBytAFgqFPbSJQAYs= github.com/golang-jwt/jwt/v4 v4.4.2/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= 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/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-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-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/net v0.7.0 h1:rJrUqqhjsgNp7KqAIc25s9pZnjU7TUcSY7HcVZjdn1g= +golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= +golang.org/x/sys v0.5.0 h1:MUK/U/4lj1t1oPg0HfuXDN/Z1wv31ZJ/YcPiGccS4DU= +golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/text v0.7.0 h1:4BRB4x83lYWy72KwLD/qYDuTu7q9PjSagHvijDw7cLo= +golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= +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= +gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/sdk/resourcemanager/servicebus/armservicebus/namespaces_live_test.go b/sdk/resourcemanager/servicebus/armservicebus/namespaces_live_test.go new file mode 100644 index 000000000000..c9304f8f9017 --- /dev/null +++ b/sdk/resourcemanager/servicebus/armservicebus/namespaces_live_test.go @@ -0,0 +1,198 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +package armservicebus_test + +import ( + "context" + "fmt" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/arm" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal/testutil" + "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicebus/armservicebus/v2" + "github.com/stretchr/testify/suite" +) + +type NamespacesTestSuite struct { + suite.Suite + + ctx context.Context + cred azcore.TokenCredential + options *arm.ClientOptions + authorizationRuleName string + namespaceName string + location string + resourceGroupName string + subscriptionId string +} + +func (testsuite *NamespacesTestSuite) SetupSuite() { + testutil.StartRecording(testsuite.T(), "sdk/resourcemanager/servicebus/armservicebus/testdata") + testsuite.ctx = context.Background() + testsuite.cred, testsuite.options = testutil.GetCredAndClientOptions(testsuite.T()) + testsuite.authorizationRuleName = testutil.GenerateAlphaNumericID(testsuite.T(), "sbauthrulena", 6) + testsuite.namespaceName = testutil.GenerateAlphaNumericID(testsuite.T(), "sbnamespace", 6) + testsuite.location = testutil.GetEnv("LOCATION", "westus") + testsuite.resourceGroupName = testutil.GetEnv("RESOURCE_GROUP_NAME", "scenarioTestTempGroup") + testsuite.subscriptionId = testutil.GetEnv("AZURE_SUBSCRIPTION_ID", "00000000-0000-0000-0000-000000000000") + + resourceGroup, _, err := testutil.CreateResourceGroup(testsuite.ctx, testsuite.subscriptionId, testsuite.cred, testsuite.options, testsuite.location) + testsuite.Require().NoError(err) + testsuite.resourceGroupName = *resourceGroup.Name +} + +func (testsuite *NamespacesTestSuite) TearDownSuite() { + _, err := testutil.DeleteResourceGroup(testsuite.ctx, testsuite.subscriptionId, testsuite.cred, testsuite.options, testsuite.resourceGroupName) + testsuite.Require().NoError(err) + testutil.StopRecording(testsuite.T()) +} + +func TestNamespacesTestSuite(t *testing.T) { + suite.Run(t, new(NamespacesTestSuite)) +} + +// Microsoft.ServiceBus/namespaces +func (testsuite *NamespacesTestSuite) TestNamespace() { + var err error + // From step Namespace_CheckNameAvailability + fmt.Println("Call operation: Namespaces_CheckNameAvailability") + namespacesClient, err := armservicebus.NewNamespacesClient(testsuite.subscriptionId, testsuite.cred, testsuite.options) + testsuite.Require().NoError(err) + _, err = namespacesClient.CheckNameAvailability(testsuite.ctx, armservicebus.CheckNameAvailability{ + Name: to.Ptr(testsuite.namespaceName), + }, nil) + testsuite.Require().NoError(err) + + // From step Namespace_Create + fmt.Println("Call operation: Namespaces_CreateOrUpdate") + namespacesClientCreateOrUpdateResponsePoller, err := namespacesClient.BeginCreateOrUpdate(testsuite.ctx, testsuite.resourceGroupName, testsuite.namespaceName, armservicebus.SBNamespace{ + Location: to.Ptr(testsuite.location), + Tags: map[string]*string{ + "tag1": to.Ptr("value1"), + "tag2": to.Ptr("value2"), + }, + SKU: &armservicebus.SBSKU{ + Name: to.Ptr(armservicebus.SKUNamePremium), + Tier: to.Ptr(armservicebus.SKUTierPremium), + }, + }, nil) + testsuite.Require().NoError(err) + _, err = testutil.PollForTest(testsuite.ctx, namespacesClientCreateOrUpdateResponsePoller) + testsuite.Require().NoError(err) + + // From step Namespace_Update + fmt.Println("Call operation: Namespaces_Update") + _, err = namespacesClient.Update(testsuite.ctx, testsuite.resourceGroupName, testsuite.namespaceName, armservicebus.SBNamespaceUpdateParameters{ + Location: to.Ptr(testsuite.location), + Tags: map[string]*string{ + "tag3": to.Ptr("value3"), + "tag4": to.Ptr("value4"), + }, + }, nil) + testsuite.Require().NoError(err) + + // From step Namespace_Get + fmt.Println("Call operation: Namespaces_Get") + _, err = namespacesClient.Get(testsuite.ctx, testsuite.resourceGroupName, testsuite.namespaceName, nil) + testsuite.Require().NoError(err) + + // From step Namespace_List + fmt.Println("Call operation: Namespaces_List") + namespacesClientNewListPager := namespacesClient.NewListPager(nil) + for namespacesClientNewListPager.More() { + _, err := namespacesClientNewListPager.NextPage(testsuite.ctx) + testsuite.Require().NoError(err) + break + } + + // From step Namespace_ListByResourceGroup + fmt.Println("Call operation: Namespaces_ListByResourceGroup") + namespacesClientNewListByResourceGroupPager := namespacesClient.NewListByResourceGroupPager(testsuite.resourceGroupName, nil) + for namespacesClientNewListByResourceGroupPager.More() { + _, err := namespacesClientNewListByResourceGroupPager.NextPage(testsuite.ctx) + testsuite.Require().NoError(err) + break + } + + // From step Operation_List + fmt.Println("Call operation: Operations_List") + operationsClient, err := armservicebus.NewOperationsClient(testsuite.cred, testsuite.options) + testsuite.Require().NoError(err) + operationsClientNewListPager := operationsClient.NewListPager(nil) + for operationsClientNewListPager.More() { + _, err := operationsClientNewListPager.NextPage(testsuite.ctx) + testsuite.Require().NoError(err) + break + } + + // From step Namespace_CreateAuthorizationRule + fmt.Println("Call operation: Namespaces_CreateOrUpdateAuthorizationRule") + _, err = namespacesClient.CreateOrUpdateAuthorizationRule(testsuite.ctx, testsuite.resourceGroupName, testsuite.namespaceName, testsuite.authorizationRuleName, armservicebus.SBAuthorizationRule{ + Properties: &armservicebus.SBAuthorizationRuleProperties{ + Rights: []*armservicebus.AccessRights{ + to.Ptr(armservicebus.AccessRightsListen), + to.Ptr(armservicebus.AccessRightsSend)}, + }, + }, nil) + testsuite.Require().NoError(err) + + // From step Namespace_GetAuthorizationRule + fmt.Println("Call operation: Namespaces_GetAuthorizationRule") + _, err = namespacesClient.GetAuthorizationRule(testsuite.ctx, testsuite.resourceGroupName, testsuite.namespaceName, testsuite.authorizationRuleName, nil) + testsuite.Require().NoError(err) + + // From step Namespace_ListAuthorizationRules + fmt.Println("Call operation: Namespaces_ListAuthorizationRules") + namespacesClientNewListAuthorizationRulesPager := namespacesClient.NewListAuthorizationRulesPager(testsuite.resourceGroupName, testsuite.namespaceName, nil) + for namespacesClientNewListAuthorizationRulesPager.More() { + _, err := namespacesClientNewListAuthorizationRulesPager.NextPage(testsuite.ctx) + testsuite.Require().NoError(err) + break + } + + // From step Namespace_RegenerateKeys + fmt.Println("Call operation: Namespaces_RegenerateKeys") + _, err = namespacesClient.RegenerateKeys(testsuite.ctx, testsuite.resourceGroupName, testsuite.namespaceName, testsuite.authorizationRuleName, armservicebus.RegenerateAccessKeyParameters{ + KeyType: to.Ptr(armservicebus.KeyTypePrimaryKey), + }, nil) + testsuite.Require().NoError(err) + + // From step Namespace_ListKeys + fmt.Println("Call operation: Namespaces_ListKeys") + _, err = namespacesClient.ListKeys(testsuite.ctx, testsuite.resourceGroupName, testsuite.namespaceName, testsuite.authorizationRuleName, nil) + testsuite.Require().NoError(err) + + // From step Namespace_GetNetworkRuleSet + fmt.Println("Call operation: Namespaces_GetNetworkRuleSet") + _, err = namespacesClient.GetNetworkRuleSet(testsuite.ctx, testsuite.resourceGroupName, testsuite.namespaceName, nil) + testsuite.Require().NoError(err) + + // From step Namespace_ListNetworkRuleSets + fmt.Println("Call operation: Namespaces_ListNetworkRuleSets") + namespacesClientNewListNetworkRuleSetsPager := namespacesClient.NewListNetworkRuleSetsPager(testsuite.resourceGroupName, testsuite.namespaceName, nil) + for namespacesClientNewListNetworkRuleSetsPager.More() { + _, err := namespacesClientNewListNetworkRuleSetsPager.NextPage(testsuite.ctx) + testsuite.Require().NoError(err) + break + } + + // From step Namespace_DeleteAuthorizationRule + fmt.Println("Call operation: Namespaces_DeleteAuthorizationRule") + _, err = namespacesClient.DeleteAuthorizationRule(testsuite.ctx, testsuite.resourceGroupName, testsuite.namespaceName, testsuite.authorizationRuleName, nil) + testsuite.Require().NoError(err) + + // From step Namespace_Delete + fmt.Println("Call operation: Namespaces_Delete") + namespacesClientDeleteResponsePoller, err := namespacesClient.BeginDelete(testsuite.ctx, testsuite.resourceGroupName, testsuite.namespaceName, nil) + testsuite.Require().NoError(err) + _, err = testutil.PollForTest(testsuite.ctx, namespacesClientDeleteResponsePoller) + testsuite.Require().NoError(err) +} diff --git a/sdk/resourcemanager/servicebus/armservicebus/testdata/recordings/TestDisasterrecoveryconfigsTestSuite.json b/sdk/resourcemanager/servicebus/armservicebus/testdata/recordings/TestDisasterrecoveryconfigsTestSuite.json deleted file mode 100644 index 1daa71a43f08..000000000000 --- a/sdk/resourcemanager/servicebus/armservicebus/testdata/recordings/TestDisasterrecoveryconfigsTestSuite.json +++ /dev/null @@ -1,1163 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:20:05 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T082006Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "westus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacedrcIoY4jZ?api-version=2022-01-01-preview", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "104", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus", - "sku": { - "name": "Premium", - "tier": "Premium" - }, - "tags": { - "tag1": "value1", - "tag2": "value2" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "742", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:20:11 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/SN1", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/SN1", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M0SN1_M0SN1", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T082012Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "sku": { - "name": "Premium", - "tier": "Premium", - "capacity": 1 - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacedrcIoY4jZ", - "name": "sbnamespacedrcIoY4jZ", - "type": "Microsoft.ServiceBus/Namespaces", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "provisioningState": "Created", - "metricId": "00000000-0000-0000-0000-000000000000:sbnamespacedrcioy4jz", - "createdAt": "2022-09-06T08:20:10.333Z", - "updatedAt": "2022-09-06T08:20:10.333Z", - "serviceBusEndpoint": "https://sbnamespacedrcIoY4jZ.servicebus.windows.net:443/", - "status": "Activating" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacedrcIoY4jZ?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "742", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:20:12 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/SN1", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/SN1", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11999", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M0SN1_M0SN1", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T082013Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "sku": { - "name": "Premium", - "tier": "Premium", - "capacity": 1 - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacedrcIoY4jZ", - "name": "sbnamespacedrcIoY4jZ", - "type": "Microsoft.ServiceBus/Namespaces", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "provisioningState": "Created", - "metricId": "00000000-0000-0000-0000-000000000000:sbnamespacedrcioy4jz", - "createdAt": "2022-09-06T08:20:10.333Z", - "updatedAt": "2022-09-06T08:20:10.333Z", - "serviceBusEndpoint": "https://sbnamespacedrcIoY4jZ.servicebus.windows.net:443/", - "status": "Activating" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacedrcIoY4jZ?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "742", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:20:43 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/SN1", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/SN1", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11998", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M0SN1_M0SN1", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T082043Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "sku": { - "name": "Premium", - "tier": "Premium", - "capacity": 1 - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacedrcIoY4jZ", - "name": "sbnamespacedrcIoY4jZ", - "type": "Microsoft.ServiceBus/Namespaces", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "provisioningState": "Created", - "metricId": "00000000-0000-0000-0000-000000000000:sbnamespacedrcioy4jz", - "createdAt": "2022-09-06T08:20:10.333Z", - "updatedAt": "2022-09-06T08:20:10.333Z", - "serviceBusEndpoint": "https://sbnamespacedrcIoY4jZ.servicebus.windows.net:443/", - "status": "Activating" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacedrcIoY4jZ?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "742", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:21:13 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/SN1", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/SN1", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11997", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M0SN1_M0SN1", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T082114Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "sku": { - "name": "Premium", - "tier": "Premium", - "capacity": 1 - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacedrcIoY4jZ", - "name": "sbnamespacedrcIoY4jZ", - "type": "Microsoft.ServiceBus/Namespaces", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "provisioningState": "Created", - "metricId": "00000000-0000-0000-0000-000000000000:sbnamespacedrcioy4jz", - "createdAt": "2022-09-06T08:20:10.333Z", - "updatedAt": "2022-09-06T08:20:10.333Z", - "serviceBusEndpoint": "https://sbnamespacedrcIoY4jZ.servicebus.windows.net:443/", - "status": "Activating" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacedrcIoY4jZ?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "742", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:21:44 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/SN1", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/SN1", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11996", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M0SN1_M0SN1", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T082145Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "sku": { - "name": "Premium", - "tier": "Premium", - "capacity": 1 - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacedrcIoY4jZ", - "name": "sbnamespacedrcIoY4jZ", - "type": "Microsoft.ServiceBus/Namespaces", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "provisioningState": "Created", - "metricId": "00000000-0000-0000-0000-000000000000:sbnamespacedrcioy4jz", - "createdAt": "2022-09-06T08:20:10.333Z", - "updatedAt": "2022-09-06T08:20:10.333Z", - "serviceBusEndpoint": "https://sbnamespacedrcIoY4jZ.servicebus.windows.net:443/", - "status": "Activating" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacedrcIoY4jZ?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "740", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:22:15 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/SN1", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/SN1", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11995", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M0SN1_M0SN1", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T082215Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "sku": { - "name": "Premium", - "tier": "Premium", - "capacity": 1 - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacedrcIoY4jZ", - "name": "sbnamespacedrcIoY4jZ", - "type": "Microsoft.ServiceBus/Namespaces", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "provisioningState": "Succeeded", - "metricId": "00000000-0000-0000-0000-000000000000:sbnamespacedrcioy4jz", - "createdAt": "2022-09-06T08:20:10.333Z", - "updatedAt": "2022-09-06T08:21:51.327Z", - "serviceBusEndpoint": "https://sbnamespacedrcIoY4jZ.servicebus.windows.net:443/", - "status": "Active" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetwodrcIoY4jZ?api-version=2022-01-01-preview", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "64", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus2", - "sku": { - "name": "Premium", - "tier": "Premium" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "723", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:22:19 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/SN1", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/SN1", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1197", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M11SN1_M11SN1", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T082219Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "sku": { - "name": "Premium", - "tier": "Premium", - "capacity": 1 - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetwodrcIoY4jZ", - "name": "sbnamespacetwodrcIoY4jZ", - "type": "Microsoft.ServiceBus/Namespaces", - "location": "West US 2", - "tags": {}, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "provisioningState": "Created", - "metricId": "00000000-0000-0000-0000-000000000000:sbnamespacetwodrcioy4jz", - "createdAt": "2022-09-06T08:22:18.53Z", - "updatedAt": "2022-09-06T08:22:18.53Z", - "serviceBusEndpoint": "https://sbnamespacetwodrcIoY4jZ.servicebus.windows.net:443/", - "status": "Activating" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetwodrcIoY4jZ?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "723", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:22:19 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/SN1", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/SN1", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11994", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M0SN1_M0SN1", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T082220Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "sku": { - "name": "Premium", - "tier": "Premium", - "capacity": 1 - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetwodrcIoY4jZ", - "name": "sbnamespacetwodrcIoY4jZ", - "type": "Microsoft.ServiceBus/Namespaces", - "location": "West US 2", - "tags": {}, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "provisioningState": "Created", - "metricId": "00000000-0000-0000-0000-000000000000:sbnamespacetwodrcioy4jz", - "createdAt": "2022-09-06T08:22:18.53Z", - "updatedAt": "2022-09-06T08:22:18.53Z", - "serviceBusEndpoint": "https://sbnamespacetwodrcIoY4jZ.servicebus.windows.net:443/", - "status": "Activating" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetwodrcIoY4jZ?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "723", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:22:50 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/SN1", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/SN1", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11993", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M0SN1_M0SN1", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T082250Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "sku": { - "name": "Premium", - "tier": "Premium", - "capacity": 1 - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetwodrcIoY4jZ", - "name": "sbnamespacetwodrcIoY4jZ", - "type": "Microsoft.ServiceBus/Namespaces", - "location": "West US 2", - "tags": {}, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "provisioningState": "Created", - "metricId": "00000000-0000-0000-0000-000000000000:sbnamespacetwodrcioy4jz", - "createdAt": "2022-09-06T08:22:18.53Z", - "updatedAt": "2022-09-06T08:22:18.53Z", - "serviceBusEndpoint": "https://sbnamespacetwodrcIoY4jZ.servicebus.windows.net:443/", - "status": "Activating" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetwodrcIoY4jZ?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "723", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:23:21 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11992", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M11CH3_M11CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T082321Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "sku": { - "name": "Premium", - "tier": "Premium", - "capacity": 1 - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetwodrcIoY4jZ", - "name": "sbnamespacetwodrcIoY4jZ", - "type": "Microsoft.ServiceBus/Namespaces", - "location": "West US 2", - "tags": {}, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "provisioningState": "Created", - "metricId": "00000000-0000-0000-0000-000000000000:sbnamespacetwodrcioy4jz", - "createdAt": "2022-09-06T08:22:18.53Z", - "updatedAt": "2022-09-06T08:22:18.53Z", - "serviceBusEndpoint": "https://sbnamespacetwodrcIoY4jZ.servicebus.windows.net:443/", - "status": "Activating" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetwodrcIoY4jZ?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "723", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:23:51 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11991", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M8CH3_M8CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T082351Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "sku": { - "name": "Premium", - "tier": "Premium", - "capacity": 1 - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetwodrcIoY4jZ", - "name": "sbnamespacetwodrcIoY4jZ", - "type": "Microsoft.ServiceBus/Namespaces", - "location": "West US 2", - "tags": {}, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "provisioningState": "Created", - "metricId": "00000000-0000-0000-0000-000000000000:sbnamespacetwodrcioy4jz", - "createdAt": "2022-09-06T08:22:18.53Z", - "updatedAt": "2022-09-06T08:22:18.53Z", - "serviceBusEndpoint": "https://sbnamespacetwodrcIoY4jZ.servicebus.windows.net:443/", - "status": "Activating" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetwodrcIoY4jZ?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "722", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:24:23 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11990", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M4CH3_M4CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T082423Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "sku": { - "name": "Premium", - "tier": "Premium", - "capacity": 1 - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetwodrcIoY4jZ", - "name": "sbnamespacetwodrcIoY4jZ", - "type": "Microsoft.ServiceBus/Namespaces", - "location": "West US 2", - "tags": {}, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "provisioningState": "Succeeded", - "metricId": "00000000-0000-0000-0000-000000000000:sbnamespacetwodrcioy4jz", - "createdAt": "2022-09-06T08:22:18.53Z", - "updatedAt": "2022-09-06T08:23:59.987Z", - "serviceBusEndpoint": "https://sbnamespacetwodrcIoY4jZ.servicebus.windows.net:443/", - "status": "Active" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacedrcIoY4jZ/AuthorizationRules/sbauthruleIoY4jZ?api-version=2022-01-01-preview", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "43", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "rights": [ - "Listen", - "Send" - ] - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "338", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:24:30 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1196", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M4CH3_M4CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T082430Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacedrcIoY4jZ/AuthorizationRules/sbauthruleIoY4jZ", - "name": "sbauthruleIoY4jZ", - "type": "Microsoft.ServiceBus/Namespaces/AuthorizationRules", - "location": "West US", - "properties": { - "rights": [ - "Listen", - "Send" - ] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacedrcIoY4jZ/disasterRecoveryConfigs/CheckNameAvailability?api-version=2022-01-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "36", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": { - "name": "sdk-DisasterRecovery-9474" - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "38", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:24:31 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M4CH3_M4CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T082431Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "nameAvailable": true, - "reason": "None" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacedrcIoY4jZ/disasterRecoveryConfigs/sbaliasIoY4jZ?api-version=2022-01-01-preview", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "185", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "partnerNamespace": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetwodrcIoY4jZ" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "540", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:24:37 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1195", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M4CH3_M4CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T082437Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacedrcIoY4jZ/disasterRecoveryConfigs/sbaliasIoY4jZ", - "name": "sbaliasIoY4jZ", - "type": "Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs", - "properties": { - "provisioningState": "Accepted", - "partnerNamespace": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetwodrcIoY4jZ", - "role": "Primary", - "type": "MetadataReplication" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacedrcIoY4jZ/disasterRecoveryConfigs/sbaliasIoY4jZ?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "540", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:24:38 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11989", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M4CH3_M4CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T082438Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacedrcIoY4jZ/disasterRecoveryConfigs/sbaliasIoY4jZ", - "name": "sbaliasIoY4jZ", - "type": "Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs", - "properties": { - "provisioningState": "Accepted", - "partnerNamespace": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetwodrcIoY4jZ", - "role": "Primary", - "type": "MetadataReplication" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacedrcIoY4jZ/disasterRecoveryConfigs?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "552", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:24:39 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11988", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M4CH3_M4CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T082439Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacedrcIoY4jZ/disasterRecoveryConfigs/sbaliasIoY4jZ", - "name": "sbaliasIoY4jZ", - "type": "Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs", - "properties": { - "provisioningState": "Accepted", - "partnerNamespace": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetwodrcIoY4jZ", - "role": "Primary", - "type": "MetadataReplication" - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacedrcIoY4jZ/disasterRecoveryConfigs/sbaliasIoY4jZ/authorizationRules/sbauthruleIoY4jZ?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "376", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:24:39 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11987", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M4CH3_M4CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T082440Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacedrcIoY4jZ/disasterRecoveryConfigs/sbaliasIoY4jZ/authorizationRules/sbauthruleIoY4jZ", - "name": "sbauthruleIoY4jZ", - "type": "Microsoft.ServiceBus/Namespaces/AuthorizationRules", - "location": "West US", - "properties": { - "rights": [ - "Listen", - "Send" - ] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacedrcIoY4jZ/disasterRecoveryConfigs/sbaliasIoY4jZ/authorizationRules?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "792", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:24:40 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11986", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M4CH3_M4CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T082440Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacedrcIoY4jZ/disasterRecoveryConfigs/sbaliasIoY4jZ/authorizationRules/RootManageSharedAccessKey", - "name": "RootManageSharedAccessKey", - "type": "Microsoft.ServiceBus/Namespaces/AuthorizationRules", - "location": "West US", - "properties": { - "rights": [ - "Listen", - "Manage", - "Send" - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacedrcIoY4jZ/disasterRecoveryConfigs/sbaliasIoY4jZ/authorizationRules/sbauthruleIoY4jZ", - "name": "sbauthruleIoY4jZ", - "type": "Microsoft.ServiceBus/Namespaces/AuthorizationRules", - "location": "West US", - "properties": { - "rights": [ - "Listen", - "Send" - ] - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacedrcIoY4jZ/disasterRecoveryConfigs/sbaliasIoY4jZ/authorizationRules/sbauthruleIoY4jZ/listKeys?api-version=2022-01-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "520", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:24:41 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M4CH3_M4CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T082441Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "aliasPrimaryConnectionString": "Endpoint=sb://sbaliasioy4jz.servicebus.windows.net/;SharedAccessKeyName=sbauthruleIoY4jZ;SharedAccessKey=rDhlfQvFYXXt7NSDKlaWlJ8PUtkgJDcsGJN2Y9mzpKg=", - "aliasSecondaryConnectionString": "Endpoint=sb://sbaliasioy4jz.servicebus.windows.net/;SharedAccessKeyName=sbauthruleIoY4jZ;SharedAccessKey=DS6mHk/fzm5svI5njtrhuoEJrqbFuiy\u002BtaqPemG\u002BjyE=", - "primaryKey": "rDhlfQvFYXXt7NSDKlaWlJ8PUtkgJDcsGJN2Y9mzpKg=", - "secondaryKey": "DS6mHk/fzm5svI5njtrhuoEJrqbFuiy\u002BtaqPemG\u002BjyE=", - "keyName": "sbauthruleIoY4jZ" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetwodrcIoY4jZ/disasterRecoveryConfigs/sbaliasIoY4jZ/failover?api-version=2022-01-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Tue, 06 Sep 2022 08:24:42 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1197", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M4CH3_M4CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T082442Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Tue, 06 Sep 2022 08:24:44 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ5OTQtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14999", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T082444Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": { - "recordingRandomSeed": "1662452400" - } -} diff --git a/sdk/resourcemanager/servicebus/armservicebus/testdata/recordings/TestMigrationconfigsTestSuite.json b/sdk/resourcemanager/servicebus/armservicebus/testdata/recordings/TestMigrationconfigsTestSuite.json deleted file mode 100644 index a336fae38add..000000000000 --- a/sdk/resourcemanager/servicebus/armservicebus/testdata/recordings/TestMigrationconfigsTestSuite.json +++ /dev/null @@ -1,997 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:24:47 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1194", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T082448Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "westus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacemcIoY4jZ?api-version=2022-01-01-preview", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "106", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus", - "sku": { - "name": "Standard", - "tier": "Standard" - }, - "tags": { - "tag1": "value1", - "tag2": "value2" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "727", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:24:52 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1193", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M3CH3_M3CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T082452Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "sku": { - "name": "Standard", - "tier": "Standard" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacemcIoY4jZ", - "name": "sbnamespacemcIoY4jZ", - "type": "Microsoft.ServiceBus/Namespaces", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "provisioningState": "Created", - "metricId": "00000000-0000-0000-0000-000000000000:sbnamespacemcioy4jz", - "createdAt": "2022-09-06T08:24:50.503Z", - "updatedAt": "2022-09-06T08:24:50.503Z", - "serviceBusEndpoint": "https://sbnamespacemcIoY4jZ.servicebus.windows.net:443/", - "status": "Activating" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacemcIoY4jZ?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "727", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:24:53 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11985", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M1CH3_M1CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T082453Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "sku": { - "name": "Standard", - "tier": "Standard" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacemcIoY4jZ", - "name": "sbnamespacemcIoY4jZ", - "type": "Microsoft.ServiceBus/Namespaces", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "provisioningState": "Created", - "metricId": "00000000-0000-0000-0000-000000000000:sbnamespacemcioy4jz", - "createdAt": "2022-09-06T08:24:50.503Z", - "updatedAt": "2022-09-06T08:24:50.503Z", - "serviceBusEndpoint": "https://sbnamespacemcIoY4jZ.servicebus.windows.net:443/", - "status": "Activating" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacemcIoY4jZ?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "727", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:25:25 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11984", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M11CH3_M11CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T082525Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "sku": { - "name": "Standard", - "tier": "Standard" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacemcIoY4jZ", - "name": "sbnamespacemcIoY4jZ", - "type": "Microsoft.ServiceBus/Namespaces", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "provisioningState": "Created", - "metricId": "00000000-0000-0000-0000-000000000000:sbnamespacemcioy4jz", - "createdAt": "2022-09-06T08:24:50.503Z", - "updatedAt": "2022-09-06T08:24:50.503Z", - "serviceBusEndpoint": "https://sbnamespacemcIoY4jZ.servicebus.windows.net:443/", - "status": "Activating" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacemcIoY4jZ?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "723", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:25:56 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11983", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M0CH3_M0CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T082557Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "sku": { - "name": "Standard", - "tier": "Standard" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacemcIoY4jZ", - "name": "sbnamespacemcIoY4jZ", - "type": "Microsoft.ServiceBus/Namespaces", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "provisioningState": "Succeeded", - "metricId": "00000000-0000-0000-0000-000000000000:sbnamespacemcioy4jz", - "createdAt": "2022-09-06T08:24:50.503Z", - "updatedAt": "2022-09-06T08:25:43.3Z", - "serviceBusEndpoint": "https://sbnamespacemcIoY4jZ.servicebus.windows.net:443/", - "status": "Active" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetwomcIoY4jZ?api-version=2022-01-01-preview", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "64", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus2", - "sku": { - "name": "Premium", - "tier": "Premium" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "719", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:26:02 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1192", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M6CH3_M6CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T082603Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "sku": { - "name": "Premium", - "tier": "Premium", - "capacity": 1 - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetwomcIoY4jZ", - "name": "sbnamespacetwomcIoY4jZ", - "type": "Microsoft.ServiceBus/Namespaces", - "location": "West US 2", - "tags": {}, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "provisioningState": "Created", - "metricId": "00000000-0000-0000-0000-000000000000:sbnamespacetwomcioy4jz", - "createdAt": "2022-09-06T08:26:02.32Z", - "updatedAt": "2022-09-06T08:26:02.32Z", - "serviceBusEndpoint": "https://sbnamespacetwomcIoY4jZ.servicebus.windows.net:443/", - "status": "Activating" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetwomcIoY4jZ?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "719", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:26:04 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11982", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M6CH3_M6CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T082605Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "sku": { - "name": "Premium", - "tier": "Premium", - "capacity": 1 - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetwomcIoY4jZ", - "name": "sbnamespacetwomcIoY4jZ", - "type": "Microsoft.ServiceBus/Namespaces", - "location": "West US 2", - "tags": {}, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "provisioningState": "Created", - "metricId": "00000000-0000-0000-0000-000000000000:sbnamespacetwomcioy4jz", - "createdAt": "2022-09-06T08:26:02.32Z", - "updatedAt": "2022-09-06T08:26:02.32Z", - "serviceBusEndpoint": "https://sbnamespacetwomcIoY4jZ.servicebus.windows.net:443/", - "status": "Activating" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetwomcIoY4jZ?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "719", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:26:36 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11981", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M5CH3_M5CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T082636Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "sku": { - "name": "Premium", - "tier": "Premium", - "capacity": 1 - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetwomcIoY4jZ", - "name": "sbnamespacetwomcIoY4jZ", - "type": "Microsoft.ServiceBus/Namespaces", - "location": "West US 2", - "tags": {}, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "provisioningState": "Created", - "metricId": "00000000-0000-0000-0000-000000000000:sbnamespacetwomcioy4jz", - "createdAt": "2022-09-06T08:26:02.32Z", - "updatedAt": "2022-09-06T08:26:02.32Z", - "serviceBusEndpoint": "https://sbnamespacetwomcIoY4jZ.servicebus.windows.net:443/", - "status": "Activating" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetwomcIoY4jZ?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "719", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:27:07 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11980", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M10CH3_M10CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T082708Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "sku": { - "name": "Premium", - "tier": "Premium", - "capacity": 1 - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetwomcIoY4jZ", - "name": "sbnamespacetwomcIoY4jZ", - "type": "Microsoft.ServiceBus/Namespaces", - "location": "West US 2", - "tags": {}, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "provisioningState": "Created", - "metricId": "00000000-0000-0000-0000-000000000000:sbnamespacetwomcioy4jz", - "createdAt": "2022-09-06T08:26:02.32Z", - "updatedAt": "2022-09-06T08:26:02.32Z", - "serviceBusEndpoint": "https://sbnamespacetwomcIoY4jZ.servicebus.windows.net:443/", - "status": "Activating" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetwomcIoY4jZ?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "717", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:27:38 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11979", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M10CH3_M10CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T082739Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "sku": { - "name": "Premium", - "tier": "Premium", - "capacity": 1 - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetwomcIoY4jZ", - "name": "sbnamespacetwomcIoY4jZ", - "type": "Microsoft.ServiceBus/Namespaces", - "location": "West US 2", - "tags": {}, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "provisioningState": "Succeeded", - "metricId": "00000000-0000-0000-0000-000000000000:sbnamespacetwomcioy4jz", - "createdAt": "2022-09-06T08:26:02.32Z", - "updatedAt": "2022-09-06T08:27:26.63Z", - "serviceBusEndpoint": "https://sbnamespacetwomcIoY4jZ.servicebus.windows.net:443/", - "status": "Active" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacemcIoY4jZ/migrationConfigurations/$default?api-version=2022-01-01-preview", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "227", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "postMigrationName": "postmigrationnaIoY4jZ", - "targetNamespace": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetwomcIoY4jZ" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "566", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:27:46 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1191", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M3CH3_M3CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T082746Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacemcIoY4jZ/migrationConfigurations/$default", - "name": "sbnamespacemcIoY4jZ", - "type": "Microsoft.ServiceBus/Namespaces/migrationconfigurations", - "properties": { - "provisioningState": "Accepted", - "targetNamespace": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetwomcIoY4jZ", - "postMigrationName": "postmigrationnaIoY4jZ", - "migrationState": "Initiating" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacemcIoY4jZ/migrationConfigurations/$default?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "566", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:27:47 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11978", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M10CH3_M10CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T082748Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacemcIoY4jZ/migrationConfigurations/$default", - "name": "sbnamespacemcIoY4jZ", - "type": "Microsoft.ServiceBus/Namespaces/migrationconfigurations", - "properties": { - "provisioningState": "Accepted", - "targetNamespace": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetwomcIoY4jZ", - "postMigrationName": "postmigrationnaIoY4jZ", - "migrationState": "Initiating" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacemcIoY4jZ/migrationConfigurations/$default?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "566", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:28:19 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11977", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M5CH3_M5CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T082820Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacemcIoY4jZ/migrationConfigurations/$default", - "name": "sbnamespacemcIoY4jZ", - "type": "Microsoft.ServiceBus/Namespaces/migrationconfigurations", - "properties": { - "provisioningState": "Accepted", - "targetNamespace": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetwomcIoY4jZ", - "postMigrationName": "postmigrationnaIoY4jZ", - "migrationState": "Initiating" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacemcIoY4jZ/migrationConfigurations/$default?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "566", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:28:51 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11976", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M0CH3_M0CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T082851Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacemcIoY4jZ/migrationConfigurations/$default", - "name": "sbnamespacemcIoY4jZ", - "type": "Microsoft.ServiceBus/Namespaces/migrationconfigurations", - "properties": { - "provisioningState": "Accepted", - "targetNamespace": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetwomcIoY4jZ", - "postMigrationName": "postmigrationnaIoY4jZ", - "migrationState": "Initiating" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacemcIoY4jZ/migrationConfigurations/$default?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "566", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:29:21 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11975", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M5CH3_M5CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T082922Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacemcIoY4jZ/migrationConfigurations/$default", - "name": "sbnamespacemcIoY4jZ", - "type": "Microsoft.ServiceBus/Namespaces/migrationconfigurations", - "properties": { - "provisioningState": "Accepted", - "targetNamespace": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetwomcIoY4jZ", - "postMigrationName": "postmigrationnaIoY4jZ", - "migrationState": "Initiating" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacemcIoY4jZ/migrationConfigurations/$default?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "601", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:29:53 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11974", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M2CH3_M2CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T082953Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacemcIoY4jZ/migrationConfigurations/$default", - "name": "sbnamespacemcIoY4jZ", - "type": "Microsoft.ServiceBus/Namespaces/migrationconfigurations", - "properties": { - "provisioningState": "Succeeded", - "targetNamespace": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetwomcIoY4jZ", - "postMigrationName": "postmigrationnaIoY4jZ", - "pendingReplicationOperationsCount": 0, - "migrationState": "Active" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacemcIoY4jZ/migrationConfigurations/$default?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "601", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:29:54 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11973", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M2CH3_M2CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T082954Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacemcIoY4jZ/migrationConfigurations/$default", - "name": "sbnamespacemcIoY4jZ", - "type": "Microsoft.ServiceBus/Namespaces/migrationconfigurations", - "properties": { - "provisioningState": "Succeeded", - "targetNamespace": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetwomcIoY4jZ", - "postMigrationName": "postmigrationnaIoY4jZ", - "pendingReplicationOperationsCount": 0, - "migrationState": "Active" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacemcIoY4jZ/migrationConfigurations?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "560", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:29:54 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11972", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M2CH3_M2CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T082954Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacemcIoY4jZ/migrationConfigurations/sbnamespacemcIoY4jZ", - "name": "sbnamespacemcIoY4jZ", - "type": "Microsoft.ServiceBus/Namespaces/migrationconfigurations", - "properties": { - "provisioningState": "Succeeded", - "targetNamespace": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetwomcIoY4jZ", - "postMigrationName": "postmigrationnaIoY4jZ" - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacemcIoY4jZ/migrationConfigurations/$default/revert?api-version=2022-01-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Tue, 06 Sep 2022 08:29:55 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1196", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M2CH3_M2CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T082955Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacemcIoY4jZ/migrationConfigurations/$default/upgrade?api-version=2022-01-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Tue, 06 Sep 2022 08:29:56 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1195", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M2CH3_M2CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T082956Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Tue, 06 Sep 2022 08:29:59 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ1MjYtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14998", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T082959Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": { - "recordingRandomSeed": "1662452400" - } -} diff --git a/sdk/resourcemanager/servicebus/armservicebus/testdata/recordings/TestNamespacesTestSuite.json b/sdk/resourcemanager/servicebus/armservicebus/testdata/recordings/TestNamespacesTestSuite.json deleted file mode 100644 index 58e760fc3e12..000000000000 --- a/sdk/resourcemanager/servicebus/armservicebus/testdata/recordings/TestNamespacesTestSuite.json +++ /dev/null @@ -1,3656 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:30:02 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1190", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T083002Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "westus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceBus/CheckNameAvailability?api-version=2022-01-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "28", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": { - "name": "sbnamespaceIoY4jZ" - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "53", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:30:04 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1194", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M8CH3_M8CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T083004Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "nameAvailable": true, - "reason": "None", - "message": null - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespaceIoY4jZ?api-version=2022-01-01-preview", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "104", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus", - "sku": { - "name": "Premium", - "tier": "Premium" - }, - "tags": { - "tag1": "value1", - "tag2": "value2" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "728", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:30:10 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1189", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M0CH3_M0CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T083010Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "sku": { - "name": "Premium", - "tier": "Premium", - "capacity": 1 - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespaceIoY4jZ", - "name": "sbnamespaceIoY4jZ", - "type": "Microsoft.ServiceBus/Namespaces", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "provisioningState": "Created", - "metricId": "00000000-0000-0000-0000-000000000000:sbnamespaceioy4jz", - "createdAt": "2022-09-06T08:30:08.03Z", - "updatedAt": "2022-09-06T08:30:08.03Z", - "serviceBusEndpoint": "https://sbnamespaceIoY4jZ.servicebus.windows.net:443/", - "status": "Activating" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespaceIoY4jZ?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "728", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:30:12 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11971", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M2CH3_M2CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T083012Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "sku": { - "name": "Premium", - "tier": "Premium", - "capacity": 1 - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespaceIoY4jZ", - "name": "sbnamespaceIoY4jZ", - "type": "Microsoft.ServiceBus/Namespaces", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "provisioningState": "Created", - "metricId": "00000000-0000-0000-0000-000000000000:sbnamespaceioy4jz", - "createdAt": "2022-09-06T08:30:08.03Z", - "updatedAt": "2022-09-06T08:30:08.03Z", - "serviceBusEndpoint": "https://sbnamespaceIoY4jZ.servicebus.windows.net:443/", - "status": "Activating" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespaceIoY4jZ?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "728", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:30:42 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11970", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M3CH3_M3CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T083043Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "sku": { - "name": "Premium", - "tier": "Premium", - "capacity": 1 - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespaceIoY4jZ", - "name": "sbnamespaceIoY4jZ", - "type": "Microsoft.ServiceBus/Namespaces", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "provisioningState": "Created", - "metricId": "00000000-0000-0000-0000-000000000000:sbnamespaceioy4jz", - "createdAt": "2022-09-06T08:30:08.03Z", - "updatedAt": "2022-09-06T08:30:08.03Z", - "serviceBusEndpoint": "https://sbnamespaceIoY4jZ.servicebus.windows.net:443/", - "status": "Activating" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespaceIoY4jZ?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "728", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:31:14 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11969", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M7CH3_M7CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T083114Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "sku": { - "name": "Premium", - "tier": "Premium", - "capacity": 1 - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespaceIoY4jZ", - "name": "sbnamespaceIoY4jZ", - "type": "Microsoft.ServiceBus/Namespaces", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "provisioningState": "Created", - "metricId": "00000000-0000-0000-0000-000000000000:sbnamespaceioy4jz", - "createdAt": "2022-09-06T08:30:08.03Z", - "updatedAt": "2022-09-06T08:30:08.03Z", - "serviceBusEndpoint": "https://sbnamespaceIoY4jZ.servicebus.windows.net:443/", - "status": "Activating" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespaceIoY4jZ?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "727", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:31:45 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11968", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M5CH3_M5CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T083145Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "sku": { - "name": "Premium", - "tier": "Premium", - "capacity": 1 - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespaceIoY4jZ", - "name": "sbnamespaceIoY4jZ", - "type": "Microsoft.ServiceBus/Namespaces", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "provisioningState": "Succeeded", - "metricId": "00000000-0000-0000-0000-000000000000:sbnamespaceioy4jz", - "createdAt": "2022-09-06T08:30:08.03Z", - "updatedAt": "2022-09-06T08:31:28.927Z", - "serviceBusEndpoint": "https://sbnamespaceIoY4jZ.servicebus.windows.net:443/", - "status": "Active" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespaceIoY4jZ?api-version=2022-01-01-preview", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "62", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus", - "tags": { - "tag3": "value3", - "tag4": "value4" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "730", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:31:48 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1188", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M5CH3_M5CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T083148Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "sku": { - "name": "Premium", - "tier": "Premium", - "capacity": 1 - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespaceIoY4jZ", - "name": "sbnamespaceIoY4jZ", - "type": "Microsoft.ServiceBus/Namespaces", - "location": "West US", - "tags": { - "tag3": "value3", - "tag4": "value4" - }, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "provisioningState": "Updating", - "metricId": "00000000-0000-0000-0000-000000000000:sbnamespaceioy4jz", - "createdAt": "2022-09-06T08:30:08.03Z", - "updatedAt": "2022-09-06T08:31:46.277Z", - "serviceBusEndpoint": "https://sbnamespaceIoY4jZ.servicebus.windows.net:443/", - "status": "Activating" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespaceIoY4jZ?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "730", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:31:50 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11967", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M11CH3_M11CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T083150Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "sku": { - "name": "Premium", - "tier": "Premium", - "capacity": 1 - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespaceIoY4jZ", - "name": "sbnamespaceIoY4jZ", - "type": "Microsoft.ServiceBus/Namespaces", - "location": "West US", - "tags": { - "tag3": "value3", - "tag4": "value4" - }, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "provisioningState": "Updating", - "metricId": "00000000-0000-0000-0000-000000000000:sbnamespaceioy4jz", - "createdAt": "2022-09-06T08:30:08.03Z", - "updatedAt": "2022-09-06T08:31:46.277Z", - "serviceBusEndpoint": "https://sbnamespaceIoY4jZ.servicebus.windows.net:443/", - "status": "Activating" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceBus/namespaces?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "23386", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:31:50 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-inline-count": "", - "x-ms-ratelimit-remaining-subscription-reads": "11966", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M5CH3_M5CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T083150Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "sku": { - "name": "Standard", - "tier": "Standard" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/iyljd2wtoqh43dern43sawzmqxkeari3bcqiadgfste4outj7cdmmslvr4yfw2vmrsqeiogmitj/providers/Microsoft.ServiceBus/namespaces/myNamespacexxyyz", - "name": "myNamespacexxyyz", - "type": "Microsoft.ServiceBus/Namespaces", - "location": "East US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "minimumTlsVersion": "1.0", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "provisioningState": "Succeeded", - "metricId": "00000000-0000-0000-0000-000000000000:mynamespacexxyyz", - "createdAt": "2020-08-14T07:02:56.86Z", - "updatedAt": "2020-08-14T07:07:35.633Z", - "serviceBusEndpoint": "https://myNamespacexxyyz.servicebus.windows.net:443/", - "status": "Active", - "alternateName": "sdk-PostMigration-5919" - } - }, - { - "sku": { - "name": "Premium", - "tier": "Premium", - "capacity": 1 - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/iyljd2wtoqh43dern43sawzmqxkeari3bcqiadgfste4outj7cdmmslvr4yfw2vmrsqeiogmitj/providers/Microsoft.ServiceBus/namespaces/myNamespacexxyyzsecond", - "name": "myNamespacexxyyzsecond", - "type": "Microsoft.ServiceBus/Namespaces", - "location": "South Central US", - "tags": {}, - "properties": { - "minimumTlsVersion": "1.0", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "provisioningState": "Succeeded", - "metricId": "00000000-0000-0000-0000-000000000000:mynamespacexxyyzsecond", - "createdAt": "2020-08-14T07:04:07.873Z", - "updatedAt": "2021-07-15T09:11:42.697Z", - "serviceBusEndpoint": "https://myNamespacexxyyzsecond.servicebus.windows.net:443/", - "status": "Active" - } - }, - { - "sku": { - "name": "Standard", - "tier": "Standard" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-changlong/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace2925", - "name": "sdk-Namespace2925", - "type": "Microsoft.ServiceBus/Namespaces", - "location": "South Central US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "minimumTlsVersion": "1.0", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "provisioningState": "Succeeded", - "metricId": "00000000-0000-0000-0000-000000000000:sdk-namespace2925", - "createdAt": "2022-07-18T02:26:57.81Z", - "updatedAt": "2022-07-18T05:52:28.727Z", - "serviceBusEndpoint": "https://sdk-Namespace2925.servicebus.windows.net:443/", - "status": "Active" - } - }, - { - "sku": { - "name": "Premium", - "tier": "Premium", - "capacity": 1 - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespace7xLoXJ", - "name": "sbnamespace7xLoXJ", - "type": "Microsoft.ServiceBus/Namespaces", - "location": "West US", - "tags": { - "tag3": "value3", - "tag4": "value4" - }, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "provisioningState": "Succeeded", - "metricId": "00000000-0000-0000-0000-000000000000:sbnamespace7xloxj", - "createdAt": "2022-09-05T06:37:53.6Z", - "updatedAt": "2022-09-05T06:39:32.56Z", - "serviceBusEndpoint": "https://sbnamespace7xLoXJ.servicebus.windows.net:443/", - "status": "Active" - } - }, - { - "sku": { - "name": "Premium", - "tier": "Premium", - "capacity": 1 - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespaceLk3uMR", - "name": "sbnamespaceLk3uMR", - "type": "Microsoft.ServiceBus/Namespaces", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "provisioningState": "Succeeded", - "metricId": "00000000-0000-0000-0000-000000000000:sbnamespacelk3umr", - "createdAt": "2022-09-05T06:55:27.567Z", - "updatedAt": "2022-09-05T06:56:43.713Z", - "serviceBusEndpoint": "https://sbnamespaceLk3uMR.servicebus.windows.net:443/", - "status": "Active" - } - }, - { - "sku": { - "name": "Premium", - "tier": "Premium", - "capacity": 1 - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespaceJ3Ixoh", - "name": "sbnamespaceJ3Ixoh", - "type": "Microsoft.ServiceBus/Namespaces", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "provisioningState": "Succeeded", - "metricId": "00000000-0000-0000-0000-000000000000:sbnamespacej3ixoh", - "createdAt": "2022-09-05T07:18:47.107Z", - "updatedAt": "2022-09-05T07:20:05.467Z", - "serviceBusEndpoint": "https://sbnamespaceJ3Ixoh.servicebus.windows.net:443/", - "status": "Active" - } - }, - { - "sku": { - "name": "Standard", - "tier": "Standard" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespaceu2Py62", - "name": "sbnamespaceu2Py62", - "type": "Microsoft.ServiceBus/Namespaces", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "provisioningState": "Succeeded", - "metricId": "00000000-0000-0000-0000-000000000000:sbnamespaceu2py62", - "createdAt": "2022-09-05T07:41:15.98Z", - "updatedAt": "2022-09-05T07:41:59.48Z", - "serviceBusEndpoint": "https://sbnamespaceu2Py62.servicebus.windows.net:443/", - "status": "Active" - } - }, - { - "sku": { - "name": "Standard", - "tier": "Standard" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespaceA9k74O", - "name": "sbnamespaceA9k74O", - "type": "Microsoft.ServiceBus/Namespaces", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "provisioningState": "Succeeded", - "metricId": "00000000-0000-0000-0000-000000000000:sbnamespacea9k74o", - "createdAt": "2022-09-05T09:14:53.44Z", - "updatedAt": "2022-09-05T09:20:40.653Z", - "serviceBusEndpoint": "https://sbnamespaceA9k74O.servicebus.windows.net:443/", - "status": "Active", - "alternateName": "gopostmigration2" - } - }, - { - "sku": { - "name": "Premium", - "tier": "Premium", - "capacity": 1 - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetwoA9k74O", - "name": "sbnamespacetwoA9k74O", - "type": "Microsoft.ServiceBus/Namespaces", - "location": "West US 2", - "tags": {}, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "provisioningState": "Succeeded", - "metricId": "00000000-0000-0000-0000-000000000000:sbnamespacetwoa9k74o", - "createdAt": "2022-09-05T09:16:00.597Z", - "updatedAt": "2022-09-05T09:20:42.203Z", - "serviceBusEndpoint": "https://sbnamespacetwoA9k74O.servicebus.windows.net:443/", - "status": "Active" - } - }, - { - "sku": { - "name": "Standard", - "tier": "Standard" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespaceMx6RGD", - "name": "sbnamespaceMx6RGD", - "type": "Microsoft.ServiceBus/Namespaces", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "provisioningState": "Succeeded", - "metricId": "00000000-0000-0000-0000-000000000000:sbnamespacemx6rgd", - "createdAt": "2022-09-05T09:51:29.99Z", - "updatedAt": "2022-09-05T09:57:48.053Z", - "serviceBusEndpoint": "https://sbnamespaceMx6RGD.servicebus.windows.net:443/", - "status": "Active", - "alternateName": "gopostmigrationna" - } - }, - { - "sku": { - "name": "Premium", - "tier": "Premium", - "capacity": 1 - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetwoMx6RGD", - "name": "sbnamespacetwoMx6RGD", - "type": "Microsoft.ServiceBus/Namespaces", - "location": "West US 2", - "tags": {}, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "provisioningState": "Succeeded", - "metricId": "00000000-0000-0000-0000-000000000000:sbnamespacetwomx6rgd", - "createdAt": "2022-09-05T09:52:37.077Z", - "updatedAt": "2022-09-05T09:57:49.75Z", - "serviceBusEndpoint": "https://sbnamespacetwoMx6RGD.servicebus.windows.net:443/", - "status": "Active" - } - }, - { - "sku": { - "name": "Premium", - "tier": "Premium", - "capacity": 1 - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespaceeNWthR", - "name": "sbnamespaceeNWthR", - "type": "Microsoft.ServiceBus/Namespaces", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "provisioningState": "Succeeded", - "metricId": "00000000-0000-0000-0000-000000000000:sbnamespaceenwthr", - "createdAt": "2022-09-06T03:24:49.183Z", - "updatedAt": "2022-09-06T03:29:47.07Z", - "serviceBusEndpoint": "https://sbnamespaceeNWthR.servicebus.windows.net:443/", - "status": "Active" - } - }, - { - "sku": { - "name": "Premium", - "tier": "Premium", - "capacity": 1 - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetwoeNWthR", - "name": "sbnamespacetwoeNWthR", - "type": "Microsoft.ServiceBus/Namespaces", - "location": "West US 2", - "tags": {}, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "provisioningState": "Succeeded", - "metricId": "00000000-0000-0000-0000-000000000000:sbnamespacetwoenwthr", - "createdAt": "2022-09-06T03:26:28.433Z", - "updatedAt": "2022-09-06T03:29:43.317Z", - "serviceBusEndpoint": "https://sbnamespacetwoeNWthR.servicebus.windows.net:443/", - "status": "Active" - } - }, - { - "sku": { - "name": "Premium", - "tier": "Premium", - "capacity": 1 - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespaceX9Eglk", - "name": "sbnamespaceX9Eglk", - "type": "Microsoft.ServiceBus/Namespaces", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "provisioningState": "Succeeded", - "metricId": "00000000-0000-0000-0000-000000000000:sbnamespacex9eglk", - "createdAt": "2022-09-06T03:29:48.673Z", - "updatedAt": "2022-09-06T03:34:46.483Z", - "serviceBusEndpoint": "https://sbnamespaceX9Eglk.servicebus.windows.net:443/", - "status": "Active" - } - }, - { - "sku": { - "name": "Premium", - "tier": "Premium", - "capacity": 1 - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetwoX9Eglk", - "name": "sbnamespacetwoX9Eglk", - "type": "Microsoft.ServiceBus/Namespaces", - "location": "West US 2", - "tags": {}, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "provisioningState": "Succeeded", - "metricId": "00000000-0000-0000-0000-000000000000:sbnamespacetwox9eglk", - "createdAt": "2022-09-06T03:31:28.037Z", - "updatedAt": "2022-09-06T03:34:49.18Z", - "serviceBusEndpoint": "https://sbnamespacetwoX9Eglk.servicebus.windows.net:443/", - "status": "Active" - } - }, - { - "sku": { - "name": "Premium", - "tier": "Premium", - "capacity": 1 - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespaceDhAq0S", - "name": "sbnamespaceDhAq0S", - "type": "Microsoft.ServiceBus/Namespaces", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "provisioningState": "Succeeded", - "metricId": "00000000-0000-0000-0000-000000000000:sbnamespacedhaq0s", - "createdAt": "2022-09-06T05:19:05.807Z", - "updatedAt": "2022-09-06T05:23:58.057Z", - "serviceBusEndpoint": "https://sbnamespaceDhAq0S.servicebus.windows.net:443/", - "status": "Active" - } - }, - { - "sku": { - "name": "Premium", - "tier": "Premium", - "capacity": 1 - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetwoDhAq0S", - "name": "sbnamespacetwoDhAq0S", - "type": "Microsoft.ServiceBus/Namespaces", - "location": "West US 2", - "tags": {}, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "provisioningState": "Succeeded", - "metricId": "00000000-0000-0000-0000-000000000000:sbnamespacetwodhaq0s", - "createdAt": "2022-09-06T05:20:42.8Z", - "updatedAt": "2022-09-06T05:24:01.097Z", - "serviceBusEndpoint": "https://sbnamespacetwoDhAq0S.servicebus.windows.net:443/", - "status": "Active" - } - }, - { - "sku": { - "name": "Premium", - "tier": "Premium", - "capacity": 1 - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespaceLbIkzB", - "name": "sbnamespaceLbIkzB", - "type": "Microsoft.ServiceBus/Namespaces", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "provisioningState": "Succeeded", - "metricId": "00000000-0000-0000-0000-000000000000:sbnamespacelbikzb", - "createdAt": "2022-09-06T05:25:03.683Z", - "updatedAt": "2022-09-06T05:30:04.18Z", - "serviceBusEndpoint": "https://sbnamespaceLbIkzB.servicebus.windows.net:443/", - "status": "Active" - } - }, - { - "sku": { - "name": "Premium", - "tier": "Premium", - "capacity": 1 - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetwoLbIkzB", - "name": "sbnamespacetwoLbIkzB", - "type": "Microsoft.ServiceBus/Namespaces", - "location": "West US 2", - "tags": {}, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "provisioningState": "Succeeded", - "metricId": "00000000-0000-0000-0000-000000000000:sbnamespacetwolbikzb", - "createdAt": "2022-09-06T05:26:43.613Z", - "updatedAt": "2022-09-06T05:30:00.627Z", - "serviceBusEndpoint": "https://sbnamespacetwoLbIkzB.servicebus.windows.net:443/", - "status": "Active" - } - }, - { - "sku": { - "name": "Premium", - "tier": "Premium", - "capacity": 1 - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-test/providers/Microsoft.ServiceBus/namespaces/goservicebus2", - "name": "goservicebus2", - "type": "Microsoft.ServiceBus/Namespaces", - "location": "West US", - "tags": {}, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "provisioningState": "Succeeded", - "metricId": "00000000-0000-0000-0000-000000000000:goservicebus2", - "createdAt": "2022-09-06T05:49:42.453Z", - "updatedAt": "2022-09-06T05:57:38.477Z", - "serviceBusEndpoint": "https://goservicebus2.servicebus.windows.net:443/", - "status": "Active" - } - }, - { - "sku": { - "name": "Premium", - "tier": "Premium", - "capacity": 1 - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-test/providers/Microsoft.ServiceBus/namespaces/secondservicebus2", - "name": "secondservicebus2", - "type": "Microsoft.ServiceBus/Namespaces", - "location": "East US", - "tags": {}, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "provisioningState": "Succeeded", - "metricId": "00000000-0000-0000-0000-000000000000:secondservicebus2", - "createdAt": "2022-09-06T05:54:29.827Z", - "updatedAt": "2022-09-06T05:57:32.617Z", - "serviceBusEndpoint": "https://secondservicebus2.servicebus.windows.net:443/", - "status": "Active" - } - }, - { - "sku": { - "name": "Premium", - "tier": "Premium", - "capacity": 1 - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacentbzuL", - "name": "sbnamespacentbzuL", - "type": "Microsoft.ServiceBus/Namespaces", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "provisioningState": "Succeeded", - "metricId": "00000000-0000-0000-0000-000000000000:sbnamespacentbzul", - "createdAt": "2022-09-06T05:54:47.683Z", - "updatedAt": "2022-09-06T05:59:45.69Z", - "serviceBusEndpoint": "https://sbnamespacentbzuL.servicebus.windows.net:443/", - "status": "Active" - } - }, - { - "sku": { - "name": "Premium", - "tier": "Premium", - "capacity": 1 - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetwontbzuL", - "name": "sbnamespacetwontbzuL", - "type": "Microsoft.ServiceBus/Namespaces", - "location": "West US 2", - "tags": {}, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "provisioningState": "Succeeded", - "metricId": "00000000-0000-0000-0000-000000000000:sbnamespacetwontbzul", - "createdAt": "2022-09-06T05:56:25.187Z", - "updatedAt": "2022-09-06T05:59:40.047Z", - "serviceBusEndpoint": "https://sbnamespacetwontbzuL.servicebus.windows.net:443/", - "status": "Active" - } - }, - { - "sku": { - "name": "Standard", - "tier": "Standard" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/privateNamespacelA7L89", - "name": "privateNamespacelA7L89", - "type": "Microsoft.ServiceBus/Namespaces", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "provisioningState": "Succeeded", - "metricId": "00000000-0000-0000-0000-000000000000:privatenamespacela7l89", - "createdAt": "2022-09-06T06:21:21.697Z", - "updatedAt": "2022-09-06T06:22:08.13Z", - "serviceBusEndpoint": "https://privateNamespacelA7L89.servicebus.windows.net:443/", - "status": "Active" - } - }, - { - "sku": { - "name": "Premium", - "tier": "Premium", - "capacity": 1 - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/privateNamespaceMl7t1b", - "name": "privateNamespaceMl7t1b", - "type": "Microsoft.ServiceBus/Namespaces", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "provisioningState": "Succeeded", - "metricId": "00000000-0000-0000-0000-000000000000:privatenamespaceml7t1b", - "createdAt": "2022-09-06T06:24:55.177Z", - "updatedAt": "2022-09-06T06:26:11.327Z", - "serviceBusEndpoint": "https://privateNamespaceMl7t1b.servicebus.windows.net:443/", - "status": "Active" - } - }, - { - "sku": { - "name": "Premium", - "tier": "Premium", - "capacity": 1 - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/privateNamespacem86hOn", - "name": "privateNamespacem86hOn", - "type": "Microsoft.ServiceBus/Namespaces", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "provisioningState": "Succeeded", - "metricId": "00000000-0000-0000-0000-000000000000:privatenamespacem86hon", - "createdAt": "2022-09-06T06:36:33.657Z", - "updatedAt": "2022-09-06T06:37:50.943Z", - "serviceBusEndpoint": "https://privateNamespacem86hOn.servicebus.windows.net:443/", - "status": "Active" - } - }, - { - "sku": { - "name": "Standard", - "tier": "Standard" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespaceImPcHD", - "name": "sbnamespaceImPcHD", - "type": "Microsoft.ServiceBus/Namespaces", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "provisioningState": "Succeeded", - "metricId": "00000000-0000-0000-0000-000000000000:sbnamespaceimpchd", - "createdAt": "2022-09-06T07:05:16.61Z", - "updatedAt": "2022-09-06T07:11:37.517Z", - "serviceBusEndpoint": "https://sbnamespaceImPcHD.servicebus.windows.net:443/", - "status": "Active", - "alternateName": "postmigrationnaImPcHD" - } - }, - { - "sku": { - "name": "Premium", - "tier": "Premium", - "capacity": 1 - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetwoImPcHD", - "name": "sbnamespacetwoImPcHD", - "type": "Microsoft.ServiceBus/Namespaces", - "location": "West US 2", - "tags": {}, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "provisioningState": "Succeeded", - "metricId": "00000000-0000-0000-0000-000000000000:sbnamespacetwoimpchd", - "createdAt": "2022-09-06T07:06:23.663Z", - "updatedAt": "2022-09-06T07:11:36.507Z", - "serviceBusEndpoint": "https://sbnamespacetwoImPcHD.servicebus.windows.net:443/", - "status": "Active" - } - }, - { - "sku": { - "name": "Premium", - "tier": "Premium", - "capacity": 1 - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespaceOCKO4u", - "name": "sbnamespaceOCKO4u", - "type": "Microsoft.ServiceBus/Namespaces", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "provisioningState": "Succeeded", - "metricId": "00000000-0000-0000-0000-000000000000:sbnamespaceocko4u", - "createdAt": "2022-09-06T07:23:29.757Z", - "updatedAt": "2022-09-06T07:24:45.617Z", - "serviceBusEndpoint": "https://sbnamespaceOCKO4u.servicebus.windows.net:443/", - "status": "Active" - } - }, - { - "sku": { - "name": "Standard", - "tier": "Standard" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacemcIoY4jZ", - "name": "sbnamespacemcIoY4jZ", - "type": "Microsoft.ServiceBus/Namespaces", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "provisioningState": "Succeeded", - "metricId": "00000000-0000-0000-0000-000000000000:sbnamespacemcioy4jz", - "createdAt": "2022-09-06T08:24:50.503Z", - "updatedAt": "2022-09-06T08:31:34.913Z", - "serviceBusEndpoint": "https://sbnamespacemcIoY4jZ.servicebus.windows.net:443/", - "status": "Removing", - "alternateName": "postmigrationnaIoY4jZ" - } - }, - { - "sku": { - "name": "Premium", - "tier": "Premium", - "capacity": 1 - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetwomcIoY4jZ", - "name": "sbnamespacetwomcIoY4jZ", - "type": "Microsoft.ServiceBus/Namespaces", - "location": "West US 2", - "tags": {}, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "provisioningState": "Succeeded", - "metricId": "00000000-0000-0000-0000-000000000000:sbnamespacetwomcioy4jz", - "createdAt": "2022-09-06T08:26:02.32Z", - "updatedAt": "2022-09-06T08:31:34.867Z", - "serviceBusEndpoint": "https://sbnamespacetwomcIoY4jZ.servicebus.windows.net:443/", - "status": "Removing" - } - }, - { - "sku": { - "name": "Premium", - "tier": "Premium", - "capacity": 1 - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespaceIoY4jZ", - "name": "sbnamespaceIoY4jZ", - "type": "Microsoft.ServiceBus/Namespaces", - "location": "West US", - "tags": { - "tag3": "value3", - "tag4": "value4" - }, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "provisioningState": "Updating", - "metricId": "00000000-0000-0000-0000-000000000000:sbnamespaceioy4jz", - "createdAt": "2022-09-06T08:30:08.03Z", - "updatedAt": "2022-09-06T08:31:46.277Z", - "serviceBusEndpoint": "https://sbnamespaceIoY4jZ.servicebus.windows.net:443/", - "status": "Activating" - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "742", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:31:50 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11965", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M5CH3_M5CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T083151Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "sku": { - "name": "Premium", - "tier": "Premium", - "capacity": 1 - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespaceIoY4jZ", - "name": "sbnamespaceIoY4jZ", - "type": "Microsoft.ServiceBus/Namespaces", - "location": "West US", - "tags": { - "tag3": "value3", - "tag4": "value4" - }, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "provisioningState": "Updating", - "metricId": "00000000-0000-0000-0000-000000000000:sbnamespaceioy4jz", - "createdAt": "2022-09-06T08:30:08.03Z", - "updatedAt": "2022-09-06T08:31:46.277Z", - "serviceBusEndpoint": "https://sbnamespaceIoY4jZ.servicebus.windows.net:443/", - "status": "Activating" - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/providers/Microsoft.ServiceBus/operations?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "40096", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:31:50 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-tenant-reads": "11999", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M5CH3_M5CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T083151Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "name": "Microsoft.ServiceBus/checkNamespaceAvailability/action", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "Non Resource Operation", - "operation": "Get namespace availability.", - "description": "Checks availability of namespace under given subscription. This API is deprecated please use CheckNameAvailabiltiy instead." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/checkNameAvailability/action", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "Non Resource Operation", - "operation": "Get namespace availability.", - "description": "Checks availability of namespace under given subscription." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/register/action", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "ServiceBus Resource Provider", - "operation": "Registers the ServiceBus Resource Provider", - "description": "Registers the subscription for the ServiceBus resource provider and enables the creation of ServiceBus resources" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/unregister/action", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "ServiceBus Resource Provider", - "operation": "Registers the ServiceBus Resource Provider", - "description": "Registers the subscription for the ServiceBus resource provider and enables the creation of ServiceBus resources" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/locations/deleteVirtualNetworkOrSubnets/action", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "ServiceBus Resource Provider", - "operation": "Deletes the VNet rules in ServiceBus Resource Provider for the specified VNet", - "description": "Deletes the VNet rules in ServiceBus Resource Provider for the specified VNet" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/write", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "Namespace", - "operation": "Create Or Update Namespace ", - "description": "Create a Namespace Resource and Update its properties. Tags and Capacity of the Namespace are the properties which can be updated." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/read", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "Namespace", - "operation": "Get Namespace Resource", - "description": "Get the list of Namespace Resource Description" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/operationresults/read", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "Namespace", - "operation": "Get Namespace Resource", - "description": "Get the status of Namespace operation" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/Delete", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "Namespace", - "operation": "Delete Namespace", - "description": "Delete Namespace Resource" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/authorizationRules/write", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "AuthorizationRules", - "operation": "Create or Update Namespace Authorization Rules", - "description": "Create a Namespace level Authorization Rules and update its properties. The Authorization Rules Access Rights, the Primary and Secondary Keys can be updated." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/authorizationRules/read", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "AuthorizationRules", - "operation": "Get Namespace Authorization Rules", - "description": "Get the list of Namespaces Authorization Rules description." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/authorizationRules/delete", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "AuthorizationRules", - "operation": "Delete Namespace Authorization Rule", - "description": "Delete Namespace Authorization Rule. The Default Namespace Authorization Rule cannot be deleted. " - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/authorizationRules/listkeys/action", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "AuthorizationRules", - "operation": "Get Namespace Listkeys", - "description": "Get the Connection String to the Namespace" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/authorizationRules/regenerateKeys/action", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "AuthorizationRules", - "operation": "Resource Regeneratekeys", - "description": "Regenerate the Primary or Secondary key to the Resource" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/messagingPlan/read", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "Namespace", - "operation": "Get Messaging Plan (Deprecated)", - "description": "Gets the Messaging Plan for a namespace. This API is deprecated. Properties exposed via the MessagingPlan resource are moved to the (parent) Namespace resource in later API versions.. This operation is not supported on API version 2017-04-01." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/messagingPlan/write", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "Namespace", - "operation": "Create or Update Messaging Plan (Deprecated)", - "description": "Updates the Messaging Plan for a namespace. This API is deprecated. Properties exposed via the MessagingPlan resource are moved to the (parent) Namespace resource in later API versions.. This operation is not supported on API version 2017-04-01." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/authorizationRules/action", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "AuthorizationRules", - "operation": "Updates Namespace Authorization Rule (Deprecated)", - "description": "Updates Namespace Authorization Rule. This API is depricated. Please use a PUT call to update the Namespace Authorization Rule instead.. This operation is not supported on API version 2017-04-01." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/queues/write", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "Queue", - "operation": "Create or Update Queue", - "description": "Create or Update Queue properties." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/queues/read", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "Queue", - "operation": "Get Queue", - "description": "Get list of Queue Resource Descriptions" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/queues/Delete", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "Queue", - "operation": "Delete Queue", - "description": "Operation to delete Queue Resource" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/queues/authorizationRules/write", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "Queue AuthorizationRules", - "operation": "Create or Update Queue Authorization Rule", - "description": "Create Queue Authorization Rules and Update its properties. The Authorization Rules Access Rights can be updated." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/queues/authorizationRules/read", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "Queue AuthorizationRules", - "operation": " Get Queue Authorization Rules", - "description": " Get the list of Queue Authorization Rules" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/queues/authorizationRules/delete", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "Queue AuthorizationRules", - "operation": "Delete Queue Authorization Rules", - "description": "Operation to delete Queue Authorization Rules" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/queues/authorizationRules/listkeys/action", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "Queue AuthorizationRules", - "operation": "List Queue keys", - "description": "Get the Connection String to Queue" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/queues/authorizationRules/regenerateKeys/action", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "Queue AuthorizationRules", - "operation": "Resource Regeneratekeys", - "description": "Regenerate the Primary or Secondary key to the Resource" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/queues/authorizationRules/action", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "Queue AuthorizationRules", - "operation": "Update Queue Authorization Rules (Deprecated)", - "description": "Operation to update Queue. This operation is not supported on API version 2017-04-01. Authorization Rules. Please use a PUT call to update Authorization Rule." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/topics/write", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "Topic", - "operation": "Create or Update Topic", - "description": "Create or Update Topic properties." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/topics/read", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "Topic", - "operation": "Get Topic", - "description": "Get list of Topic Resource Descriptions" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/topics/Delete", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "Topic", - "operation": "Delete Topic", - "description": "Operation to delete Topic Resource" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/topics/authorizationRules/write", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "Topic AuthorizationRules", - "operation": "Create or Update Topic Authorization Rule", - "description": "Create Topic Authorization Rules and Update its properties. The Authorization Rules Access Rights can be updated." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/topics/authorizationRules/read", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "Topic AuthorizationRules", - "operation": " Get Topic Authorization Rules", - "description": " Get the list of Topic Authorization Rules" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/topics/authorizationRules/delete", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "Topic AuthorizationRules", - "operation": "Delete Topic Authorization Rules", - "description": "Operation to delete Topic Authorization Rules" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/topics/authorizationRules/listkeys/action", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "Topic AuthorizationRules", - "operation": "List Topic keys", - "description": "Get the Connection String to Topic" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/topics/authorizationRules/regenerateKeys/action", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "Topic AuthorizationRules", - "operation": "Resource Regeneratekeys", - "description": "Regenerate the Primary or Secondary key to the Resource" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/topics/authorizationRules/action", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "Topic AuthorizationRules", - "operation": "Update Topic Authorization Rules (Deprecated)", - "description": "Operation to update Topic. This operation is not supported on API version 2017-04-01. Authorization Rules. Please use a PUT call to update Authorization Rule." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/topics/subscriptions/write", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "TopicSubscription", - "operation": "Create or Update TopicSubscription", - "description": "Create or Update TopicSubscription properties." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/topics/subscriptions/read", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "TopicSubscription", - "operation": "Get TopicSubscription", - "description": "Get list of TopicSubscription Resource Descriptions" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/topics/subscriptions/Delete", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "TopicSubscription", - "operation": "Delete TopicSubscription", - "description": "Operation to delete TopicSubscription Resource" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/topics/subscriptions/rules/write", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "Rule", - "operation": "Create or Update Rule", - "description": "Create or Update Rule properties." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/topics/subscriptions/rules/read", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "Rule", - "operation": "Get Rule", - "description": "Get list of Rule Resource Descriptions" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/topics/subscriptions/rules/Delete", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "Rule", - "operation": "Delete Rule", - "description": "Operation to delete Rule Resource" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/sku/read", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "Sku", - "operation": "Get Sku", - "description": "Get list of Sku Resource Descriptions" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/sku/regions/read", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "SkuRegions", - "operation": "Get SkuRegions", - "description": "Get list of SkuRegions Resource Descriptions" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/migrate/action", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "Migrate namespace operation", - "operation": "Migrate namespace operation", - "description": "Migrate namespace operation" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/operations/read", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "Operations", - "operation": "Get Operations", - "description": "Get Operations" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/providers/Microsoft.Insights/metricDefinitions/read", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "Namespace metrics", - "operation": "Get Namespace metrics", - "description": "Get list of Namespace metrics Resource Descriptions" - }, - "properties": { - "serviceSpecification": { - "metricSpecifications": [ - { - "name": "SuccessfulRequests", - "displayName": "Successful Requests", - "displayDescription": "Total successful requests for a namespace", - "unit": "Count", - "aggregationType": "Total", - "internalMetricName": "IncomingRequests", - "isDimensionRequired": false, - "sourceMdmAccount": "servicebus", - "sourceMdmNamespace": "OperationQoSMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "EntityName", - "toBeExportedForShoebox": true - }, - { - "name": "OperationResult", - "isHidden": true, - "defaultDimensionValues": [ - { - "value": "Success" - } - ] - } - ], - "fillGapWithZero": true - }, - { - "name": "ServerErrors", - "displayName": "Server Errors.", - "displayDescription": "Server Errors for Microsoft.ServiceBus.", - "unit": "Count", - "aggregationType": "Total", - "internalMetricName": "IncomingRequests", - "isDimensionRequired": false, - "sourceMdmAccount": "servicebus", - "sourceMdmNamespace": "OperationQoSMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "EntityName", - "toBeExportedForShoebox": true - }, - { - "name": "OperationResult", - "isHidden": true, - "defaultDimensionValues": [ - { - "value": "InternalServerError" - } - ] - } - ], - "fillGapWithZero": true - }, - { - "name": "UserErrors", - "displayName": "User Errors.", - "displayDescription": "User Errors for Microsoft.ServiceBus.", - "unit": "Count", - "aggregationType": "Total", - "internalMetricName": "IncomingRequests", - "isDimensionRequired": false, - "sourceMdmAccount": "servicebus", - "sourceMdmNamespace": "OperationQoSMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "EntityName", - "toBeExportedForShoebox": true - }, - { - "name": "OperationResult", - "isHidden": true, - "defaultDimensionValues": [ - { - "value": "ClientError" - } - ] - } - ], - "fillGapWithZero": true - }, - { - "name": "ThrottledRequests", - "displayName": "Throttled Requests.", - "displayDescription": "Throttled Requests for Microsoft.ServiceBus.", - "unit": "Count", - "aggregationType": "Total", - "internalMetricName": "IncomingRequests", - "isDimensionRequired": false, - "sourceMdmAccount": "servicebus", - "sourceMdmNamespace": "OperationQoSMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "EntityName", - "toBeExportedForShoebox": true - }, - { - "name": "OperationResult", - "isHidden": true, - "defaultDimensionValues": [ - { - "value": "ServerBusy" - } - ] - }, - { - "name": "MessagingErrorSubCode", - "toBeExportedForShoebox": true - } - ], - "fillGapWithZero": true - }, - { - "name": "IncomingRequests", - "displayName": "Incoming Requests", - "displayDescription": "Incoming Requests for Microsoft.ServiceBus.", - "unit": "Count", - "aggregationType": "Total", - "internalMetricName": "IncomingRequests", - "isDimensionRequired": false, - "sourceMdmAccount": "servicebus", - "sourceMdmNamespace": "OperationQoSMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "EntityName", - "toBeExportedForShoebox": true - } - ], - "fillGapWithZero": true - }, - { - "name": "IncomingMessages", - "displayName": "Incoming Messages", - "displayDescription": "Incoming Messages for Microsoft.ServiceBus.", - "unit": "Count", - "aggregationType": "Total", - "internalMetricName": "IncomingMessages", - "isDimensionRequired": false, - "sourceMdmAccount": "servicebus", - "sourceMdmNamespace": "OperationQoSMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "EntityName", - "toBeExportedForShoebox": true - } - ], - "fillGapWithZero": true - }, - { - "name": "OutgoingMessages", - "displayName": "Outgoing Messages", - "displayDescription": "Outgoing Messages for Microsoft.ServiceBus.", - "unit": "Count", - "aggregationType": "Total", - "internalMetricName": "OutgoingMessages", - "isDimensionRequired": false, - "sourceMdmAccount": "servicebus", - "sourceMdmNamespace": "OperationQoSMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "EntityName", - "toBeExportedForShoebox": true - } - ], - "fillGapWithZero": true - }, - { - "name": "ActiveConnections", - "displayName": "ActiveConnections", - "displayDescription": "Total Active Connections for Microsoft.ServiceBus.", - "unit": "Count", - "aggregationType": "Total", - "internalMetricName": "NamespaceActiveConnections", - "isDimensionRequired": false, - "sourceMdmAccount": "servicebus", - "sourceMdmNamespace": "OperationQoSMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "supportedAggregationTypes": [ - "Total" - ], - "fillGapWithZero": true - }, - { - "name": "ConnectionsOpened", - "displayName": "Connections Opened.", - "displayDescription": "Connections Opened for Microsoft.ServiceBus.", - "unit": "Count", - "aggregationType": "Average", - "internalMetricName": "ConnectionOpen", - "isDimensionRequired": false, - "sourceMdmAccount": "servicebus", - "sourceMdmNamespace": "OperationQoSMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "EntityName", - "toBeExportedForShoebox": true - } - ], - "fillGapWithZero": true - }, - { - "name": "ConnectionsClosed", - "displayName": "Connections Closed.", - "displayDescription": "Connections Closed for Microsoft.ServiceBus.", - "unit": "Count", - "aggregationType": "Average", - "internalMetricName": "ConnectionClose", - "isDimensionRequired": false, - "sourceMdmAccount": "servicebus", - "sourceMdmNamespace": "OperationQoSMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "EntityName", - "toBeExportedForShoebox": true - } - ], - "fillGapWithZero": true - }, - { - "name": "Size", - "displayName": "Size", - "displayDescription": "Size of an Queue/Topic in Bytes.", - "unit": "Bytes", - "aggregationType": "Average", - "internalMetricName": "EntitySize", - "isDimensionRequired": false, - "sourceMdmAccount": "servicebus", - "sourceMdmNamespace": "OperationQoSMetrics", - "lockAggregationType": "Total", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "EntityName", - "toBeExportedForShoebox": true - } - ], - "supportedAggregationTypes": [ - "Average", - "Minimum", - "Maximum" - ], - "fillGapWithZero": true - }, - { - "name": "Messages", - "displayName": "Count of messages in a Queue/Topic.", - "displayDescription": "Count of messages in a Queue/Topic.", - "unit": "Count", - "aggregationType": "Average", - "internalMetricName": "EntityMessageCount", - "isDimensionRequired": false, - "sourceMdmAccount": "servicebus", - "sourceMdmNamespace": "OperationQoSMetrics", - "lockAggregationType": "Total", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "EntityName", - "toBeExportedForShoebox": true - } - ], - "supportedAggregationTypes": [ - "Average", - "Minimum", - "Maximum" - ], - "fillGapWithZero": true - }, - { - "name": "ActiveMessages", - "displayName": "Count of active messages in a Queue/Topic.", - "displayDescription": "Count of active messages in a Queue/Topic.", - "unit": "Count", - "aggregationType": "Average", - "internalMetricName": "EntityActiveMessageCount", - "isDimensionRequired": false, - "sourceMdmAccount": "servicebus", - "sourceMdmNamespace": "OperationQoSMetrics", - "lockAggregationType": "Total", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "EntityName", - "toBeExportedForShoebox": true - } - ], - "supportedAggregationTypes": [ - "Average", - "Minimum", - "Maximum" - ], - "fillGapWithZero": true - }, - { - "name": "DeadletteredMessages", - "displayName": "Count of dead-lettered messages in a Queue/Topic.", - "displayDescription": "Count of dead-lettered messages in a Queue/Topic.", - "unit": "Count", - "aggregationType": "Average", - "internalMetricName": "EntityDeadLetterMessageCount", - "isDimensionRequired": false, - "sourceMdmAccount": "servicebus", - "sourceMdmNamespace": "OperationQoSMetrics", - "lockAggregationType": "Total", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "EntityName", - "toBeExportedForShoebox": true - } - ], - "supportedAggregationTypes": [ - "Average", - "Minimum", - "Maximum" - ], - "fillGapWithZero": true - }, - { - "name": "ScheduledMessages", - "displayName": "Count of scheduled messages in a Queue/Topic.", - "displayDescription": "Count of scheduled messages in a Queue/Topic.", - "unit": "Count", - "aggregationType": "Average", - "internalMetricName": "EntityScheduledMessageCount", - "isDimensionRequired": false, - "sourceMdmAccount": "servicebus", - "sourceMdmNamespace": "OperationQoSMetrics", - "lockAggregationType": "Total", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "EntityName", - "toBeExportedForShoebox": true - } - ], - "supportedAggregationTypes": [ - "Average", - "Minimum", - "Maximum" - ], - "fillGapWithZero": true - }, - { - "name": "CompleteMessage", - "displayName": "Completed Messages", - "displayDescription": "Completed Messages", - "unit": "Count", - "aggregationType": "Total", - "internalMetricName": "CompleteMessage", - "isDimensionRequired": false, - "sourceMdmAccount": "servicebus", - "sourceMdmNamespace": "OperationQoSMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "EntityName", - "toBeExportedForShoebox": true - } - ], - "fillGapWithZero": true - }, - { - "name": "AbandonMessage", - "displayName": "Abandoned Messages", - "displayDescription": "Abandoned Messages", - "unit": "Count", - "aggregationType": "Total", - "internalMetricName": "AbandonMessage", - "isDimensionRequired": false, - "sourceMdmAccount": "servicebus", - "sourceMdmNamespace": "OperationQoSMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "EntityName", - "toBeExportedForShoebox": true - } - ], - "fillGapWithZero": true - }, - { - "name": "NamespaceCpuUsage", - "displayName": "CPU", - "displayDescription": "CPU usage metric for Premium SKU namespaces.", - "unit": "Percent", - "aggregationType": "Maximum", - "internalMetricName": "NamespaceCpuUsage", - "isDimensionRequired": false, - "sourceMdmAccount": "servicebus", - "sourceMdmNamespace": "OperationQoSMetrics", - "lockAggregationType": "Max", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "Replica", - "isHidden": true, - "defaultDimensionValues": [ - { - "value": "Primary" - } - ] - } - ], - "supportedAggregationTypes": [ - "Max" - ], - "metricFilterPattern": "(?i)^premium$", - "fillGapWithZero": true - }, - { - "name": "NamespaceMemoryUsage", - "displayName": "Memory Usage", - "displayDescription": "Memory usage metric for Premium SKU namespaces.", - "unit": "Percent", - "aggregationType": "Maximum", - "internalMetricName": "NamespaceWorkingSet64", - "isDimensionRequired": false, - "sourceMdmAccount": "servicebus", - "sourceMdmNamespace": "OperationQoSMetrics", - "lockAggregationType": "Max", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "Replica", - "isHidden": true, - "defaultDimensionValues": [ - { - "value": "Primary" - } - ] - } - ], - "supportedAggregationTypes": [ - "Max" - ], - "metricFilterPattern": "(?i)^premium$", - "fillGapWithZero": true - }, - { - "name": "PendingCheckpointOperationCount", - "displayName": "Pending Checkpoint Operations Count.", - "displayDescription": "Pending Checkpoint Operations Count.", - "unit": "Count", - "aggregationType": "Total", - "internalMetricName": "MessageStorePendingCheckpointBacklogOperationCount", - "sourceMdmAccount": "servicebus", - "sourceMdmNamespace": "OperationQoSMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "fillGapWithZero": true - }, - { - "name": "ServerSendLatency", - "displayName": "Server Send Latency.", - "displayDescription": "Server Send Latency.", - "unit": "Milliseconds", - "aggregationType": "Average", - "internalMetricName": "ServerSendLatency", - "isDimensionRequired": false, - "sourceMdmAccount": "servicebus", - "sourceMdmNamespace": "OperationQoSMetrics", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "EntityName", - "toBeExportedForShoebox": true - } - ], - "fillGapWithZero": true - }, - { - "name": "CPUXNS", - "displayName": "CPU (Deprecated)", - "displayDescription": "Service bus premium namespace CPU usage metric. This metric is depricated. Please use the CPU metric (NamespaceCpuUsage) instead.", - "unit": "Percent", - "aggregationType": "Maximum", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "Replica", - "isHidden": true, - "defaultDimensionValues": [ - { - "value": "Primary" - } - ] - } - ], - "metricFilterPattern": "(?i)^premium$", - "fillGapWithZero": false - }, - { - "name": "WSXNS", - "displayName": "Memory Usage (Deprecated)", - "displayDescription": "Service bus premium namespace memory usage metric. This metric is deprecated. Please use the Memory Usage (NamespaceMemoryUsage) metric instead.", - "unit": "Percent", - "aggregationType": "Maximum", - "availabilities": [ - { - "timeGrain": "PT1M", - "blobDuration": "P30D" - } - ], - "dimensions": [ - { - "name": "Replica", - "isHidden": true, - "defaultDimensionValues": [ - { - "value": "Primary" - } - ] - } - ], - "metricFilterPattern": "(?i)^premium$", - "fillGapWithZero": false - } - ] - } - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/providers/Microsoft.Insights/diagnosticSettings/read", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "Namespace diagnostic settings", - "operation": "Get Namespace diagnostic settings", - "description": "Get list of Namespace diagnostic settings Resource Descriptions" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/providers/Microsoft.Insights/diagnosticSettings/write", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "Namespace diagnostic settings", - "operation": "Create or Update Namespace diagnostic settings", - "description": "Get list of Namespace diagnostic settings Resource Descriptions" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/providers/Microsoft.Insights/logDefinitions/read", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "Namespace logs", - "operation": "Get Namespace logs", - "description": "Get list of Namespace logs Resource Descriptions" - }, - "properties": { - "serviceSpecification": { - "logSpecifications": [ - { - "name": "OperationalLogs", - "displayName": "Operational Logs", - "blobDuration": "PT5M" - }, - { - "name": "VNetAndIPFilteringLogs", - "displayName": "VNet/IP Filtering Connection Logs", - "blobDuration": "PT5M" - } - ] - } - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/eventhubs/read", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "EventHub", - "operation": "Get EventHub", - "description": "Get list of EventHub Resource Descriptions" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/messages/send/action", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "Messages", - "operation": "Send messages", - "description": "Send messages" - }, - "isDataAction": true - }, - { - "name": "Microsoft.ServiceBus/namespaces/messages/receive/action", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "Messages", - "operation": "Receive messages", - "description": "Receive messages" - }, - "isDataAction": true - }, - { - "name": "Microsoft.ServiceBus/namespaces/disasterrecoveryconfigs/checkNameAvailability/action", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "Non Resource Operation", - "operation": "Get alias availability.", - "description": "Checks availability of namespace alias under given subscription." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/disasterRecoveryConfigs/write", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "DisasterRecoveryConfigurations", - "operation": "Create or Update Disaster Recovery configuration.", - "description": "Creates or Updates the Disaster Recovery configuration associated with the namespace." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/disasterRecoveryConfigs/read", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "DisasterRecoveryConfigurations", - "operation": "Get Disaster Recovery configuration", - "description": "Gets the Disaster Recovery configuration associated with the namespace." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/disasterRecoveryConfigs/delete", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "DisasterRecoveryConfigurations", - "operation": "Delete Disaster Recovery configuration", - "description": "Deletes the Disaster Recovery configuration associated with the namespace. This operation can only be invoked via the primary namespace." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/disasterRecoveryConfigs/breakPairing/action", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "DisasterRecoveryConfigurations", - "operation": "Break Pairing", - "description": "Disables Disaster Recovery and stops replicating changes from primary to secondary namespaces." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/disasterRecoveryConfigs/failover/action", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "DisasterRecoveryConfigurations", - "operation": "Failover", - "description": "Invokes a GEO DR failover and reconfigures the namespace alias to point to the secondary namespace." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/disasterRecoveryConfigs/authorizationRules/read", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "AuthorizationRules", - "operation": "Get Disaster Recovery Primary Namespace\u0027s Authorization Rules", - "description": "Get Disaster Recovery Primary Namespace\u0027s Authorization Rules" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/disasterRecoveryConfigs/authorizationRules/listkeys/action", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "AuthorizationRules", - "operation": "Gets the authorization rules keys for the Disaster Recovery primary namespace", - "description": "Gets the authorization rules keys for the Disaster Recovery primary namespace" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/migrationConfigurations/write", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "MigrationConfigurations", - "operation": "Create or Update Migration configuration.", - "description": "Creates or Updates Migration configuration. This will start synchronizing resources from the standard to the premium namespace" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/migrationConfigurations/read", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "MigrationConfigurations", - "operation": "Gets the Migration configuration.", - "description": "Gets the Migration configuration which indicates the state of the migration and pending replication operations" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/migrationConfigurations/delete", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "MigrationConfigurations", - "operation": "Deletes the Migration configuration.", - "description": "Deletes the Migration configuration." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/migrationConfigurations/revert/action", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "MigrationConfigurations", - "operation": "Revert", - "description": "Reverts the standard to premium namespace migration" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/migrationConfigurations/upgrade/action", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "MigrationConfigurations", - "operation": "Upgrade", - "description": "Assigns the DNS associated with the standard namespace to the premium namespace which completes the migration and stops the syncing resources from standard to premium namespace" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/eventGridFilters/write", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "EventGridFilters", - "operation": "Create or Update Event Grid filter.", - "description": "Creates or Updates the Event Grid filter associated with the namespace." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/eventGridFilters/read", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "EventGridFilters", - "operation": "GetEvent Grid filter configuration", - "description": "Gets the Event Grid filter associated with the namespace." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/eventGridFilters/delete", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "EventGridFilters", - "operation": "Delete Event Grid filter", - "description": "Deletes the Event Grid filter associated with the namespace." - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/removeAcsNamepsace/action", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "Remove ACS namespace", - "operation": "Remove ACS namespace", - "description": "Remove ACS namespace" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/ipFilterRules/read", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "IPFilter", - "operation": "Get IP Filter Resource", - "description": "Get IP Filter Resource" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/ipFilterRules/write", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "IPFilter", - "operation": "Create IP Filter Resource", - "description": "Create IP Filter Resource" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/ipFilterRules/delete", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "IPFilter", - "operation": "Delete IP Filter Resource", - "description": "Delete IP Filter Resource" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/virtualNetworkRules/read", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "Virtual Network Rule", - "operation": "Gets VNET Rule Resource", - "description": "Gets VNET Rule Resource" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/virtualNetworkRules/write", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "Virtual Network Rule", - "operation": "Create VNET Rule Resource", - "description": "Create VNET Rule Resource" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/virtualNetworkRules/delete", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "Virtual Network Rule", - "operation": "Delete VNET Rule Resource", - "description": "Delete VNET Rule Resource" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/networkrulesets/read", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "Network Rule Set", - "operation": "Gets NetworkRuleSet Resource", - "description": "Gets NetworkRuleSet Resource" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/networkrulesets/write", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "Network Rule Set", - "operation": "Create VNET Rule Resource", - "description": "Create VNET Rule Resource" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/networkrulesets/delete", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "Network Rule Set", - "operation": "Delete VNET Rule Resource", - "description": "Delete VNET Rule Resource" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/networkruleset/read", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "Network Rule Set", - "operation": "Gets NetworkRuleSet Resource", - "description": "Gets NetworkRuleSet Resource" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/networkruleset/write", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "Network Rule Set", - "operation": "Create VNET Rule Resource", - "description": "Create VNET Rule Resource" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/networkruleset/delete", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "Network Rule Set", - "operation": "Delete VNET Rule Resource", - "description": "Delete VNET Rule Resource" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/privateEndpointConnectionProxies/validate/action", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "Private Endpoint Connection Proxy", - "operation": "Validate Private Endpoint Connection Proxy", - "description": "Validate Private Endpoint Connection Proxy" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/privateEndpointConnectionProxies/read", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "Private Endpoint Connection Proxy", - "operation": "Get Private Endpoint Connection Proxy", - "description": "Get Private Endpoint Connection Proxy" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/privateEndpointConnectionProxies/write", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "Private Endpoint Connection Proxy", - "operation": "Create Private Endpoint Connection Proxy", - "description": "Create Private Endpoint Connection Proxy" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/privateEndpointConnectionProxies/delete", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "Private Endpoint Connection Proxy", - "operation": "Delete Private Endpoint Connection Proxy", - "description": "Delete Private Endpoint Connection Proxy" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/privateEndpointConnectionProxies/operationstatus/read", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "Non Resource Operation", - "operation": "Private endpoint operation status", - "description": "Get the status of an asynchronous private endpoint operation" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/privateEndpointConnections/read", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "Private Endpoint Connection", - "operation": "Get Private Endpoint Connection", - "description": "Get Private Endpoint Connection" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/privateEndpointConnections/write", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "Private Endpoint Connection", - "operation": "Create or Update Private Endpoint Connection", - "description": "Create or Update Private Endpoint Connection" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/privateEndpointConnections/delete", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "Private Endpoint Connection", - "operation": "Removes Private Endpoint Connection", - "description": "Removes Private Endpoint Connection" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/privateLinkResources/read", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "PrivateLinks", - "operation": "Gets the resource types that support private endpoint connections", - "description": "Gets the resource types that support private endpoint connections" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/privateEndpointConnections/operationstatus/read", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "Non Resource Operation", - "operation": "Private endpoint operation status", - "description": "Get the status of an asynchronous private endpoint operation" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/privateEndpointConnectionsApproval/action", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "Private Endpoint Connection", - "operation": "Approve Private Endpoint Connection", - "description": "Approve Private Endpoint Connection" - }, - "isDataAction": false - }, - { - "name": "Microsoft.ServiceBus/namespaces/skus/read", - "display": { - "provider": "Microsoft Azure ServiceBus", - "resource": "Namespace SKU", - "operation": "List SKUs", - "description": "List Supported SKUs for Namespace" - }, - "isDataAction": false - } - ], - "nextLink": "" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespaceIoY4jZ/AuthorizationRules/sbauthruleIoY4jZ?api-version=2022-01-01-preview", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "43", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "rights": [ - "Listen", - "Send" - ] - } - }, - "StatusCode": 429, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Connection": "close", - "Content-Length": "192", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:31:51 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Retry-After": "293", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1187", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M5CH3_M5CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T083152Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "error": { - "message": "Namespace provisioning in transition. For more information visit https://aka.ms/eventhubsarmexceptions. CorrelationId: 00000000-0000-0000-0000-000000000000", - "code": "429" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespaceIoY4jZ/AuthorizationRules/sbauthruleIoY4jZ?api-version=2022-01-01-preview", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "43", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "rights": [ - "Listen", - "Send" - ] - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:36:54 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M5CH3_M5CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T083654Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespaceIoY4jZ/AuthorizationRules/sbauthruleIoY4jZ", - "name": "sbauthruleIoY4jZ", - "type": "Microsoft.ServiceBus/Namespaces/AuthorizationRules", - "location": "West US", - "properties": { - "rights": [ - "Listen", - "Send" - ] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespaceIoY4jZ/AuthorizationRules/sbauthruleIoY4jZ?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:36:55 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11999", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M5CH3_M5CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T083655Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespaceIoY4jZ/AuthorizationRules/sbauthruleIoY4jZ", - "name": "sbauthruleIoY4jZ", - "type": "Microsoft.ServiceBus/Namespaces/AuthorizationRules", - "location": "West US", - "properties": { - "rights": [ - "Listen", - "Send" - ] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespaceIoY4jZ/AuthorizationRules?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:36:56 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11998", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M5CH3_M5CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T083656Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespaceIoY4jZ/AuthorizationRules/RootManageSharedAccessKey", - "name": "RootManageSharedAccessKey", - "type": "Microsoft.ServiceBus/Namespaces/AuthorizationRules", - "location": "West US", - "properties": { - "rights": [ - "Listen", - "Manage", - "Send" - ] - } - }, - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespaceIoY4jZ/AuthorizationRules/sbauthruleIoY4jZ", - "name": "sbauthruleIoY4jZ", - "type": "Microsoft.ServiceBus/Namespaces/AuthorizationRules", - "location": "West US", - "properties": { - "rights": [ - "Listen", - "Send" - ] - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespaceIoY4jZ/AuthorizationRules/sbauthruleIoY4jZ/regenerateKeys?api-version=2022-01-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "24", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": { - "keyType": "PrimaryKey" - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:37:03 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M5CH3_M5CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T083703Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "primaryConnectionString": "Endpoint=sb://sbnamespaceioy4jz.servicebus.windows.net/;SharedAccessKeyName=sbauthruleIoY4jZ;SharedAccessKey=7CSEgbRxtFaoyvel9PenlUtodrATpGeXKTkKl0w6mcU=", - "secondaryConnectionString": "Endpoint=sb://sbnamespaceioy4jz.servicebus.windows.net/;SharedAccessKeyName=sbauthruleIoY4jZ;SharedAccessKey=815CCT30sIlv0M8rjECWW06TvhFwn0eXINCc2m8jEUo=", - "primaryKey": "7CSEgbRxtFaoyvel9PenlUtodrATpGeXKTkKl0w6mcU=", - "secondaryKey": "815CCT30sIlv0M8rjECWW06TvhFwn0eXINCc2m8jEUo=", - "keyName": "sbauthruleIoY4jZ" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespaceIoY4jZ/AuthorizationRules/sbauthruleIoY4jZ/listKeys?api-version=2022-01-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:37:04 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M5CH3_M5CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T083704Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "primaryConnectionString": "Endpoint=sb://sbnamespaceioy4jz.servicebus.windows.net/;SharedAccessKeyName=sbauthruleIoY4jZ;SharedAccessKey=7CSEgbRxtFaoyvel9PenlUtodrATpGeXKTkKl0w6mcU=", - "secondaryConnectionString": "Endpoint=sb://sbnamespaceioy4jz.servicebus.windows.net/;SharedAccessKeyName=sbauthruleIoY4jZ;SharedAccessKey=815CCT30sIlv0M8rjECWW06TvhFwn0eXINCc2m8jEUo=", - "primaryKey": "7CSEgbRxtFaoyvel9PenlUtodrATpGeXKTkKl0w6mcU=", - "secondaryKey": "815CCT30sIlv0M8rjECWW06TvhFwn0eXINCc2m8jEUo=", - "keyName": "sbauthruleIoY4jZ" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespaceIoY4jZ/networkRuleSets/default?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:37:05 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11997", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M5CH3_M5CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T083705Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespaceIoY4jZ/networkRuleSets/default", - "name": "default", - "type": "Microsoft.ServiceBus/Namespaces/NetworkRuleSets", - "location": "West US", - "properties": { - "publicNetworkAccess": "Enabled", - "defaultAction": "Allow", - "virtualNetworkRules": [], - "ipRules": [] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespaceIoY4jZ/networkRuleSets?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:37:06 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11996", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M5CH3_M5CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T083706Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespaceIoY4jZ/networkRuleSets/default", - "name": "default", - "type": "Microsoft.ServiceBus/Namespaces/NetworkRuleSets", - "location": "West US", - "properties": { - "publicNetworkAccess": "Enabled", - "defaultAction": "Allow", - "virtualNetworkRules": [], - "ipRules": [] - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespaceIoY4jZ/AuthorizationRules/sbauthruleIoY4jZ?api-version=2022-01-01-preview", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Tue, 06 Sep 2022 08:37:14 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14999", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M5CH3_M5CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T083714Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespaceIoY4jZ?api-version=2022-01-01-preview", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Tue, 06 Sep 2022 08:37:15 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/locations/westus/operationStatus/sbnamespaceIoY4jZ?api-version=2022-01-01-preview\u0026resourceType=Namespace", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14998", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M6CH3_M6CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T083716Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/locations/westus/operationStatus/sbnamespaceIoY4jZ?api-version=2022-01-01-preview\u0026resourceType=Namespace", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Tue, 06 Sep 2022 08:37:16 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/locations/westus/operationStatus/sbnamespaceIoY4jZ?api-version=2022-01-01-preview\u0026resourceType=Namespace", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11995", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M6CH3_M6CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T083716Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/locations/westus/operationStatus/sbnamespaceIoY4jZ?api-version=2022-01-01-preview\u0026resourceType=Namespace", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Tue, 06 Sep 2022 08:37:46 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/locations/westus/operationStatus/sbnamespaceIoY4jZ?api-version=2022-01-01-preview\u0026resourceType=Namespace", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11994", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M5CH3_M5CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T083746Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/locations/westus/operationStatus/sbnamespaceIoY4jZ?api-version=2022-01-01-preview\u0026resourceType=Namespace", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Tue, 06 Sep 2022 08:38:16 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/locations/westus/operationStatus/sbnamespaceIoY4jZ?api-version=2022-01-01-preview\u0026resourceType=Namespace", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11993", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M5CH3_M5CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T083817Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/locations/westus/operationStatus/sbnamespaceIoY4jZ?api-version=2022-01-01-preview\u0026resourceType=Namespace", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Date": "Tue, 06 Sep 2022 08:38:46 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11992", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M5CH3_M5CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T083847Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Tue, 06 Sep 2022 08:38:50 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQxNi1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14997", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T083851Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": { - "recordingRandomSeed": "1662452400" - } -} diff --git a/sdk/resourcemanager/servicebus/armservicebus/testdata/recordings/TestQueuesTestSuite.json b/sdk/resourcemanager/servicebus/armservicebus/testdata/recordings/TestQueuesTestSuite.json deleted file mode 100644 index fd06da027999..000000000000 --- a/sdk/resourcemanager/servicebus/armservicebus/testdata/recordings/TestQueuesTestSuite.json +++ /dev/null @@ -1,877 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:38:55 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T083855Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "westus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespaceqIoY4jZ?api-version=2022-01-01-preview", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "106", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus", - "sku": { - "name": "Standard", - "tier": "Standard" - }, - "tags": { - "tag1": "value1", - "tag2": "value2" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:38:59 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1197", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M6CH3_M6CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T083900Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "sku": { - "name": "Standard", - "tier": "Standard" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespaceqIoY4jZ", - "name": "sbnamespaceqIoY4jZ", - "type": "Microsoft.ServiceBus/Namespaces", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "provisioningState": "Created", - "metricId": "00000000-0000-0000-0000-000000000000:sbnamespaceqioy4jz", - "createdAt": "2022-09-06T08:38:59.027Z", - "updatedAt": "2022-09-06T08:38:59.027Z", - "serviceBusEndpoint": "https://sbnamespaceqIoY4jZ.servicebus.windows.net:443/", - "status": "Activating" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespaceqIoY4jZ?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:39:00 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/CH3", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/CH3", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11991", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M6CH3_M6CH3", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T083901Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "sku": { - "name": "Standard", - "tier": "Standard" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespaceqIoY4jZ", - "name": "sbnamespaceqIoY4jZ", - "type": "Microsoft.ServiceBus/Namespaces", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "provisioningState": "Created", - "metricId": "00000000-0000-0000-0000-000000000000:sbnamespaceqioy4jz", - "createdAt": "2022-09-06T08:38:59.027Z", - "updatedAt": "2022-09-06T08:38:59.027Z", - "serviceBusEndpoint": "https://sbnamespaceqIoY4jZ.servicebus.windows.net:443/", - "status": "Activating" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespaceqIoY4jZ?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:39:32 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/SN1", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/SN1", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11990", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M2SN1_M2SN1", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T083932Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "sku": { - "name": "Standard", - "tier": "Standard" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespaceqIoY4jZ", - "name": "sbnamespaceqIoY4jZ", - "type": "Microsoft.ServiceBus/Namespaces", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "provisioningState": "Created", - "metricId": "00000000-0000-0000-0000-000000000000:sbnamespaceqioy4jz", - "createdAt": "2022-09-06T08:38:59.027Z", - "updatedAt": "2022-09-06T08:38:59.027Z", - "serviceBusEndpoint": "https://sbnamespaceqIoY4jZ.servicebus.windows.net:443/", - "status": "Activating" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespaceqIoY4jZ?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:40:02 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/SN1", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/SN1", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11989", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M10SN1_M10SN1", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T084002Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "sku": { - "name": "Standard", - "tier": "Standard" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespaceqIoY4jZ", - "name": "sbnamespaceqIoY4jZ", - "type": "Microsoft.ServiceBus/Namespaces", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "provisioningState": "Succeeded", - "metricId": "00000000-0000-0000-0000-000000000000:sbnamespaceqioy4jz", - "createdAt": "2022-09-06T08:38:59.027Z", - "updatedAt": "2022-09-06T08:39:47.337Z", - "serviceBusEndpoint": "https://sbnamespaceqIoY4jZ.servicebus.windows.net:443/", - "status": "Active" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespaceqIoY4jZ/queues/queuenaIoY4jZ?api-version=2022-01-01-preview", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "42", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "enablePartitioning": true - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:40:06 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1196", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T084006Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespaceqIoY4jZ/queues/queuenaIoY4jZ", - "name": "queuenaIoY4jZ", - "type": "Microsoft.ServiceBus/Namespaces/Queues", - "location": "westus", - "properties": { - "maxMessageSizeInKilobytes": 256, - "lockDuration": "PT1M", - "maxSizeInMegabytes": 16384, - "requiresDuplicateDetection": false, - "requiresSession": false, - "defaultMessageTimeToLive": "P10675199DT2H48M5.4775807S", - "deadLetteringOnMessageExpiration": false, - "enableBatchedOperations": true, - "duplicateDetectionHistoryTimeWindow": "PT10M", - "maxDeliveryCount": 10, - "sizeInBytes": 0, - "messageCount": 0, - "status": "Active", - "autoDeleteOnIdle": "P10675199DT2H48M5.4775807S", - "enablePartitioning": true, - "enableExpress": false, - "countDetails": { - "activeMessageCount": 0, - "deadLetterMessageCount": 0, - "scheduledMessageCount": 0, - "transferMessageCount": 0, - "transferDeadLetterMessageCount": 0 - }, - "createdAt": "2022-09-06T08:40:05.777Z", - "updatedAt": "2022-09-06T08:40:05.947Z", - "accessedAt": "0001-01-01T00:00:00" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespaceqIoY4jZ/queues/queuenaIoY4jZ?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:40:06 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11988", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T084006Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespaceqIoY4jZ/queues/queuenaIoY4jZ", - "name": "queuenaIoY4jZ", - "type": "Microsoft.ServiceBus/Namespaces/Queues", - "location": "westus", - "properties": { - "maxMessageSizeInKilobytes": 256, - "lockDuration": "PT1M", - "maxSizeInMegabytes": 16384, - "requiresDuplicateDetection": false, - "requiresSession": false, - "defaultMessageTimeToLive": "P10675199DT2H48M5.4775807S", - "deadLetteringOnMessageExpiration": false, - "enableBatchedOperations": true, - "duplicateDetectionHistoryTimeWindow": "PT10M", - "maxDeliveryCount": 10, - "sizeInBytes": 0, - "messageCount": 0, - "status": "Active", - "autoDeleteOnIdle": "P10675199DT2H48M5.4775807S", - "enablePartitioning": true, - "enableExpress": false, - "countDetails": { - "activeMessageCount": 0, - "deadLetterMessageCount": 0, - "scheduledMessageCount": 0, - "transferMessageCount": 0, - "transferDeadLetterMessageCount": 0 - }, - "createdAt": "2022-09-06T08:40:05.777Z", - "updatedAt": "2022-09-06T08:40:05.947Z", - "accessedAt": "0001-01-01T00:00:00Z" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespaceqIoY4jZ/queues?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:40:07 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-inline-count": "", - "x-ms-ratelimit-remaining-subscription-reads": "11987", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T084007Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespaceqIoY4jZ/queues/queuenaioy4jz", - "name": "queuenaioy4jz", - "type": "Microsoft.ServiceBus/Namespaces/Queues", - "location": "westus", - "properties": { - "maxMessageSizeInKilobytes": 256, - "lockDuration": "PT1M", - "maxSizeInMegabytes": 16384, - "requiresDuplicateDetection": false, - "requiresSession": false, - "defaultMessageTimeToLive": "P10675199DT2H48M5.4775807S", - "deadLetteringOnMessageExpiration": false, - "enableBatchedOperations": true, - "duplicateDetectionHistoryTimeWindow": "PT10M", - "maxDeliveryCount": 10, - "sizeInBytes": 0, - "messageCount": 0, - "status": "Active", - "autoDeleteOnIdle": "P10675199DT2H48M5.4775807S", - "enablePartitioning": true, - "enableExpress": false, - "countDetails": { - "activeMessageCount": 0, - "deadLetterMessageCount": 0, - "scheduledMessageCount": 0, - "transferMessageCount": 0, - "transferDeadLetterMessageCount": 0 - }, - "createdAt": "2022-09-06T08:40:05.777Z", - "updatedAt": "2022-09-06T08:40:05.947Z", - "accessedAt": "0001-01-01T00:00:00Z" - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespaceqIoY4jZ/queues/queuenaIoY4jZ/authorizationRules/queueauthruleIoY4jZ?api-version=2022-01-01-preview", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "43", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "rights": [ - "Listen", - "Send" - ] - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:40:07 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1195", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T084008Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespaceqIoY4jZ/queues/queuenaIoY4jZ/authorizationRules/queueauthruleIoY4jZ", - "name": "queueauthruleIoY4jZ", - "type": "Microsoft.ServiceBus/Namespaces/Queues/AuthorizationRules", - "properties": { - "rights": [ - "Listen", - "Send" - ] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespaceqIoY4jZ/queues/queuenaIoY4jZ/authorizationRules/queueauthruleIoY4jZ?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:40:08 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11986", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T084008Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespaceqIoY4jZ/queues/queuenaIoY4jZ/authorizationrules/queueauthruleIoY4jZ", - "name": "queueauthruleIoY4jZ", - "type": "Microsoft.ServiceBus/Namespaces/Queues/AuthorizationRules", - "location": "westus", - "properties": { - "rights": [ - "Listen", - "Send" - ] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespaceqIoY4jZ/queues/queuenaIoY4jZ/authorizationRules?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:40:08 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11985", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T084009Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespaceqIoY4jZ/queues/queuenaIoY4jZ/authorizationrules/queueauthruleIoY4jZ", - "name": "queueauthruleIoY4jZ", - "type": "Microsoft.ServiceBus/Namespaces/Queues/AuthorizationRules", - "location": "westus", - "properties": { - "rights": [ - "Listen", - "Send" - ] - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespaceqIoY4jZ/queues/queuenaIoY4jZ/authorizationRules/queueauthruleIoY4jZ/regenerateKeys?api-version=2022-01-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "24", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": { - "keyType": "PrimaryKey" - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:40:09 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1197", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T084010Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "primaryConnectionString": "Endpoint=sb://sbnamespaceqioy4jz.servicebus.windows.net/;SharedAccessKeyName=queueauthruleIoY4jZ;SharedAccessKey=clnhHuJwdzXyZYj9SaiaGwXJrvrXeKTEgk1/Jesskn4=;EntityPath=queuenaIoY4jZ", - "secondaryConnectionString": "Endpoint=sb://sbnamespaceqioy4jz.servicebus.windows.net/;SharedAccessKeyName=queueauthruleIoY4jZ;SharedAccessKey=qBqHNulL1g4jrRSyqgPxn56XnJrPuIbVCYSJ501O7os=;EntityPath=queuenaIoY4jZ", - "primaryKey": "clnhHuJwdzXyZYj9SaiaGwXJrvrXeKTEgk1/Jesskn4=", - "secondaryKey": "qBqHNulL1g4jrRSyqgPxn56XnJrPuIbVCYSJ501O7os=", - "keyName": "queueauthruleIoY4jZ" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespaceqIoY4jZ/queues/queuenaIoY4jZ/authorizationRules/queueauthruleIoY4jZ/ListKeys?api-version=2022-01-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:40:10 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1196", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T084010Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "primaryConnectionString": "Endpoint=sb://sbnamespaceqioy4jz.servicebus.windows.net/;SharedAccessKeyName=queueauthruleIoY4jZ;SharedAccessKey=clnhHuJwdzXyZYj9SaiaGwXJrvrXeKTEgk1/Jesskn4=;EntityPath=queuenaIoY4jZ", - "secondaryConnectionString": "Endpoint=sb://sbnamespaceqioy4jz.servicebus.windows.net/;SharedAccessKeyName=queueauthruleIoY4jZ;SharedAccessKey=qBqHNulL1g4jrRSyqgPxn56XnJrPuIbVCYSJ501O7os=;EntityPath=queuenaIoY4jZ", - "primaryKey": "clnhHuJwdzXyZYj9SaiaGwXJrvrXeKTEgk1/Jesskn4=", - "secondaryKey": "qBqHNulL1g4jrRSyqgPxn56XnJrPuIbVCYSJ501O7os=", - "keyName": "queueauthruleIoY4jZ" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespaceqIoY4jZ/queues/queuenaIoY4jZ/authorizationRules/queueauthruleIoY4jZ?api-version=2022-01-01-preview", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Tue, 06 Sep 2022 08:40:11 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14996", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T084011Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespaceqIoY4jZ/queues/queuenaIoY4jZ?api-version=2022-01-01-preview", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Tue, 06 Sep 2022 08:40:12 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14995", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T084012Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespaceqIoY4jZ?api-version=2022-01-01-preview", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Tue, 06 Sep 2022 08:40:15 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/locations/westus/operationStatus/sbnamespaceqIoY4jZ?api-version=2022-01-01-preview\u0026resourceType=Namespace", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/SN1", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/SN1", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14994", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M2SN1_M2SN1", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T084015Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/locations/westus/operationStatus/sbnamespaceqIoY4jZ?api-version=2022-01-01-preview\u0026resourceType=Namespace", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Tue, 06 Sep 2022 08:40:15 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/locations/westus/operationStatus/sbnamespaceqIoY4jZ?api-version=2022-01-01-preview\u0026resourceType=Namespace", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/SN1", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/SN1", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11984", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M2SN1_M2SN1", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T084015Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/locations/westus/operationStatus/sbnamespaceqIoY4jZ?api-version=2022-01-01-preview\u0026resourceType=Namespace", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Date": "Tue, 06 Sep 2022 08:40:45 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/SN1", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/SN1", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11983", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M2SN1_M2SN1", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T084046Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Tue, 06 Sep 2022 08:40:48 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ0MjgtV0VTVFVTIiwiam9iTG9jYXRpb24iOiJ3ZXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14993", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T084048Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": { - "recordingRandomSeed": "1662452400" - } -} diff --git a/sdk/resourcemanager/servicebus/armservicebus/testdata/recordings/TestTopicsTestSuite.json b/sdk/resourcemanager/servicebus/armservicebus/testdata/recordings/TestTopicsTestSuite.json deleted file mode 100644 index 1aa187b6fea9..000000000000 --- a/sdk/resourcemanager/servicebus/armservicebus/testdata/recordings/TestTopicsTestSuite.json +++ /dev/null @@ -1,1255 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:40:50 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1194", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T084050Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "westus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetIoY4jZ?api-version=2022-01-01-preview", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "106", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": { - "location": "westus", - "sku": { - "name": "Standard", - "tier": "Standard" - }, - "tags": { - "tag1": "value1", - "tag2": "value2" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:40:54 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/SN1", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/SN1", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1193", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M2SN1_M2SN1", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T084055Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "sku": { - "name": "Standard", - "tier": "Standard" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetIoY4jZ", - "name": "sbnamespacetIoY4jZ", - "type": "Microsoft.ServiceBus/Namespaces", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "provisioningState": "Created", - "metricId": "00000000-0000-0000-0000-000000000000:sbnamespacetioy4jz", - "createdAt": "2022-09-06T08:40:53.2Z", - "updatedAt": "2022-09-06T08:40:53.2Z", - "serviceBusEndpoint": "https://sbnamespacetIoY4jZ.servicebus.windows.net:443/", - "status": "Activating" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetIoY4jZ?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:40:55 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/SN1", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/SN1", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11982", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M2SN1_M2SN1", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T084055Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "sku": { - "name": "Standard", - "tier": "Standard" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetIoY4jZ", - "name": "sbnamespacetIoY4jZ", - "type": "Microsoft.ServiceBus/Namespaces", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "provisioningState": "Created", - "metricId": "00000000-0000-0000-0000-000000000000:sbnamespacetioy4jz", - "createdAt": "2022-09-06T08:40:53.2Z", - "updatedAt": "2022-09-06T08:40:53.2Z", - "serviceBusEndpoint": "https://sbnamespacetIoY4jZ.servicebus.windows.net:443/", - "status": "Activating" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetIoY4jZ?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:41:25 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/SN1", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/SN1", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11981", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M2SN1_M2SN1", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T084126Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "sku": { - "name": "Standard", - "tier": "Standard" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetIoY4jZ", - "name": "sbnamespacetIoY4jZ", - "type": "Microsoft.ServiceBus/Namespaces", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "provisioningState": "Created", - "metricId": "00000000-0000-0000-0000-000000000000:sbnamespacetioy4jz", - "createdAt": "2022-09-06T08:40:53.2Z", - "updatedAt": "2022-09-06T08:40:53.2Z", - "serviceBusEndpoint": "https://sbnamespacetIoY4jZ.servicebus.windows.net:443/", - "status": "Activating" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetIoY4jZ?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:41:55 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/SN1", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/SN1", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11980", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M2SN1_M2SN1", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T084156Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "sku": { - "name": "Standard", - "tier": "Standard" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetIoY4jZ", - "name": "sbnamespacetIoY4jZ", - "type": "Microsoft.ServiceBus/Namespaces", - "location": "West US", - "tags": { - "tag1": "value1", - "tag2": "value2" - }, - "properties": { - "minimumTlsVersion": "1.2", - "publicNetworkAccess": "Enabled", - "disableLocalAuth": false, - "zoneRedundant": false, - "provisioningState": "Succeeded", - "metricId": "00000000-0000-0000-0000-000000000000:sbnamespacetioy4jz", - "createdAt": "2022-09-06T08:40:53.2Z", - "updatedAt": "2022-09-06T08:41:43.68Z", - "serviceBusEndpoint": "https://sbnamespacetIoY4jZ.servicebus.windows.net:443/", - "status": "Active" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetIoY4jZ/topics/topicnaIoY4jZ?api-version=2022-01-01-preview", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "37", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "enableExpress": true - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:41:59 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1192", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T084200Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetIoY4jZ/topics/topicnaIoY4jZ", - "name": "topicnaIoY4jZ", - "type": "Microsoft.ServiceBus/Namespaces/Topics", - "location": "westus", - "properties": { - "maxMessageSizeInKilobytes": 256, - "defaultMessageTimeToLive": "P10675199DT2H48M5.4775807S", - "maxSizeInMegabytes": 1024, - "requiresDuplicateDetection": false, - "duplicateDetectionHistoryTimeWindow": "PT10M", - "enableBatchedOperations": true, - "sizeInBytes": 0, - "status": "Active", - "supportOrdering": true, - "autoDeleteOnIdle": "P10675199DT2H48M5.4775807S", - "enablePartitioning": false, - "enableExpress": true, - "createdAt": "2022-09-06T08:41:59.893Z", - "updatedAt": "2022-09-06T08:41:59.96Z", - "accessedAt": "0001-01-01T00:00:00", - "subscriptionCount": 0, - "countDetails": { - "activeMessageCount": 0, - "deadLetterMessageCount": 0, - "scheduledMessageCount": 0, - "transferMessageCount": 0, - "transferDeadLetterMessageCount": 0 - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetIoY4jZ/topics/topicnaIoY4jZ?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:42:00 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11979", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T084201Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetIoY4jZ/topics/topicnaIoY4jZ", - "name": "topicnaIoY4jZ", - "type": "Microsoft.ServiceBus/Namespaces/Topics", - "location": "westus", - "properties": { - "maxMessageSizeInKilobytes": 256, - "defaultMessageTimeToLive": "P10675199DT2H48M5.4775807S", - "maxSizeInMegabytes": 1024, - "requiresDuplicateDetection": false, - "duplicateDetectionHistoryTimeWindow": "PT10M", - "enableBatchedOperations": true, - "sizeInBytes": 0, - "status": "Active", - "supportOrdering": true, - "autoDeleteOnIdle": "P10675199DT2H48M5.4775807S", - "enablePartitioning": false, - "enableExpress": true, - "createdAt": "2022-09-06T08:41:59.893Z", - "updatedAt": "2022-09-06T08:41:59.96Z", - "accessedAt": "0001-01-01T00:00:00Z", - "subscriptionCount": 0, - "countDetails": { - "activeMessageCount": 0, - "deadLetterMessageCount": 0, - "scheduledMessageCount": 0, - "transferMessageCount": 0, - "transferDeadLetterMessageCount": 0 - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetIoY4jZ/topics?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:42:01 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-inline-count": "", - "x-ms-ratelimit-remaining-subscription-reads": "11978", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T084202Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetIoY4jZ/topics/topicnaioy4jz", - "name": "topicnaioy4jz", - "type": "Microsoft.ServiceBus/Namespaces/Topics", - "location": "westus", - "properties": { - "maxMessageSizeInKilobytes": 256, - "defaultMessageTimeToLive": "P10675199DT2H48M5.4775807S", - "maxSizeInMegabytes": 1024, - "requiresDuplicateDetection": false, - "duplicateDetectionHistoryTimeWindow": "PT10M", - "enableBatchedOperations": true, - "sizeInBytes": 0, - "status": "Active", - "supportOrdering": true, - "autoDeleteOnIdle": "P10675199DT2H48M5.4775807S", - "enablePartitioning": false, - "enableExpress": true, - "createdAt": "2022-09-06T08:41:59.893Z", - "updatedAt": "2022-09-06T08:41:59.96Z", - "accessedAt": "0001-01-01T00:00:00Z", - "subscriptionCount": 0, - "countDetails": { - "activeMessageCount": 0, - "deadLetterMessageCount": 0, - "scheduledMessageCount": 0, - "transferMessageCount": 0, - "transferDeadLetterMessageCount": 0 - } - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetIoY4jZ/topics/topicnaIoY4jZ/authorizationRules/topicauthruleIoY4jZ?api-version=2022-01-01-preview", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "43", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "rights": [ - "Listen", - "Send" - ] - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:42:01 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1191", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T084202Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetIoY4jZ/topics/topicnaIoY4jZ/authorizationRules/topicauthruleIoY4jZ", - "name": "topicauthruleIoY4jZ", - "type": "Microsoft.ServiceBus/Namespaces/Topics/AuthorizationRules", - "properties": { - "rights": [ - "Listen", - "Send" - ] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetIoY4jZ/topics/topicnaIoY4jZ/authorizationRules/topicauthruleIoY4jZ?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:42:02 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11977", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T084203Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetIoY4jZ/topics/topicnaIoY4jZ/authorizationrules/topicauthruleIoY4jZ", - "name": "topicauthruleIoY4jZ", - "type": "Microsoft.ServiceBus/Namespaces/Topics/AuthorizationRules", - "location": "westus", - "properties": { - "rights": [ - "Listen", - "Send" - ] - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetIoY4jZ/topics/topicnaIoY4jZ/authorizationRules?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:42:02 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11976", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T084203Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetIoY4jZ/topics/topicnaIoY4jZ/authorizationrules/topicauthruleIoY4jZ", - "name": "topicauthruleIoY4jZ", - "type": "Microsoft.ServiceBus/Namespaces/Topics/AuthorizationRules", - "location": "westus", - "properties": { - "rights": [ - "Listen", - "Send" - ] - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetIoY4jZ/topics/topicnaIoY4jZ/authorizationRules/topicauthruleIoY4jZ/regenerateKeys?api-version=2022-01-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "24", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": { - "keyType": "PrimaryKey" - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:42:03 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1195", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T084204Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "primaryConnectionString": "Endpoint=sb://sbnamespacetioy4jz.servicebus.windows.net/;SharedAccessKeyName=topicauthruleIoY4jZ;SharedAccessKey=pMc27SlCGnzjOLmtHPoElAimW4QcZG2XiYFHFzLlayE=;EntityPath=topicnaIoY4jZ", - "secondaryConnectionString": "Endpoint=sb://sbnamespacetioy4jz.servicebus.windows.net/;SharedAccessKeyName=topicauthruleIoY4jZ;SharedAccessKey=N8ld9vKHorUl5F9uC75bnevc4UZbTOFKYQOPZ6b3Tio=;EntityPath=topicnaIoY4jZ", - "primaryKey": "pMc27SlCGnzjOLmtHPoElAimW4QcZG2XiYFHFzLlayE=", - "secondaryKey": "N8ld9vKHorUl5F9uC75bnevc4UZbTOFKYQOPZ6b3Tio=", - "keyName": "topicauthruleIoY4jZ" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetIoY4jZ/topics/topicnaIoY4jZ/authorizationRules/topicauthruleIoY4jZ/ListKeys?api-version=2022-01-01-preview", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:42:05 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1194", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T084206Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "primaryConnectionString": "Endpoint=sb://sbnamespacetioy4jz.servicebus.windows.net/;SharedAccessKeyName=topicauthruleIoY4jZ;SharedAccessKey=pMc27SlCGnzjOLmtHPoElAimW4QcZG2XiYFHFzLlayE=;EntityPath=topicnaIoY4jZ", - "secondaryConnectionString": "Endpoint=sb://sbnamespacetioy4jz.servicebus.windows.net/;SharedAccessKeyName=topicauthruleIoY4jZ;SharedAccessKey=N8ld9vKHorUl5F9uC75bnevc4UZbTOFKYQOPZ6b3Tio=;EntityPath=topicnaIoY4jZ", - "primaryKey": "pMc27SlCGnzjOLmtHPoElAimW4QcZG2XiYFHFzLlayE=", - "secondaryKey": "N8ld9vKHorUl5F9uC75bnevc4UZbTOFKYQOPZ6b3Tio=", - "keyName": "topicauthruleIoY4jZ" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetIoY4jZ/topics/topicnaIoY4jZ/authorizationRules/topicauthruleIoY4jZ?api-version=2022-01-01-preview", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Tue, 06 Sep 2022 08:42:07 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14992", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T084207Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetIoY4jZ/topics/topicnaIoY4jZ/subscriptions/subscriptionnaIoY4jZ?api-version=2022-01-01-preview", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "47", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "enableBatchedOperations": true - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:42:10 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1190", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T084210Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetIoY4jZ/topics/topicnaIoY4jZ/subscriptions/subscriptionnaIoY4jZ", - "name": "subscriptionnaIoY4jZ", - "type": "Microsoft.ServiceBus/Namespaces/Topics/Subscriptions", - "location": "westus", - "properties": { - "isClientAffine": false, - "lockDuration": "PT1M", - "requiresSession": false, - "defaultMessageTimeToLive": "P10675199DT2H48M5.4775807S", - "deadLetteringOnMessageExpiration": false, - "deadLetteringOnFilterEvaluationExceptions": true, - "messageCount": 0, - "maxDeliveryCount": 10, - "status": "Active", - "enableBatchedOperations": true, - "createdAt": "2022-09-06T08:42:09.9560743Z", - "updatedAt": "2022-09-06T08:42:09.9560743Z", - "accessedAt": "0001-01-01T00:00:00", - "countDetails": { - "activeMessageCount": 0, - "deadLetterMessageCount": 0, - "scheduledMessageCount": 0, - "transferMessageCount": 0, - "transferDeadLetterMessageCount": 0 - }, - "autoDeleteOnIdle": "P10675199DT2H48M5.4775807S" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetIoY4jZ/topics/topicnaIoY4jZ/subscriptions/subscriptionnaIoY4jZ?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:42:10 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11975", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T084210Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetIoY4jZ/topics/topicnaIoY4jZ/subscriptions/subscriptionnaIoY4jZ", - "name": "subscriptionnaIoY4jZ", - "type": "Microsoft.ServiceBus/Namespaces/Topics/Subscriptions", - "location": "westus", - "properties": { - "isClientAffine": false, - "lockDuration": "PT1M", - "requiresSession": false, - "defaultMessageTimeToLive": "P10675199DT2H48M5.4775807S", - "deadLetteringOnMessageExpiration": false, - "deadLetteringOnFilterEvaluationExceptions": true, - "messageCount": 0, - "maxDeliveryCount": 10, - "status": "Active", - "enableBatchedOperations": true, - "createdAt": "2022-09-06T08:42:09.9528509Z", - "updatedAt": "2022-09-06T08:42:09.9528509Z", - "accessedAt": "2022-09-06T08:42:09.9528509Z", - "countDetails": { - "activeMessageCount": 0, - "deadLetterMessageCount": 0, - "scheduledMessageCount": 0, - "transferMessageCount": 0, - "transferDeadLetterMessageCount": 0 - }, - "autoDeleteOnIdle": "P10675199DT2H48M5.4775807S" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetIoY4jZ/topics/topicnaIoY4jZ/subscriptions?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:42:11 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-inline-count": "", - "x-ms-ratelimit-remaining-subscription-reads": "11974", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T084211Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetIoY4jZ/topics/topicnaIoY4jZ/subscriptions/subscriptionnaIoY4jZ", - "name": "subscriptionnaIoY4jZ", - "type": "Microsoft.ServiceBus/Namespaces/Topics/Subscriptions", - "location": "westus", - "properties": { - "isClientAffine": false, - "lockDuration": "PT1M", - "requiresSession": false, - "defaultMessageTimeToLive": "P10675199DT2H48M5.4775807S", - "deadLetteringOnMessageExpiration": false, - "deadLetteringOnFilterEvaluationExceptions": true, - "messageCount": 0, - "maxDeliveryCount": 10, - "status": "Active", - "enableBatchedOperations": true, - "createdAt": "2022-09-06T08:42:09.9528509Z", - "updatedAt": "2022-09-06T08:42:09.9528509Z", - "accessedAt": "2022-09-06T08:42:09.9528509Z", - "countDetails": { - "activeMessageCount": 0, - "deadLetterMessageCount": 0, - "scheduledMessageCount": 0, - "transferMessageCount": 0, - "transferDeadLetterMessageCount": 0 - }, - "autoDeleteOnIdle": "P10675199DT2H48M5.4775807S" - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetIoY4jZ/topics/topicnaIoY4jZ/subscriptions/subscriptionnaIoY4jZ/rules/rulenaIoY4jZ?api-version=2022-01-01-preview", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "105", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": { - "properties": { - "correlationFilter": { - "properties": { - "topicHint": "Crop" - } - }, - "filterType": "CorrelationFilter" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:42:13 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1189", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T084213Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetIoY4jZ/topics/topicnaIoY4jZ/subscriptions/subscriptionnaIoY4jZ/rules/rulenaIoY4jZ", - "name": "rulenaIoY4jZ", - "type": "Microsoft.ServiceBus/Namespaces/Topics/Subscriptions/Rules", - "location": "westus", - "properties": { - "action": {}, - "filterType": "CorrelationFilter", - "correlationFilter": { - "properties": { - "topicHint": "Crop" - } - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetIoY4jZ/topics/topicnaIoY4jZ/subscriptions/subscriptionnaIoY4jZ/rules/rulenaIoY4jZ?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:42:14 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11973", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T084214Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetIoY4jZ/topics/topicnaIoY4jZ/subscriptions/subscriptionnaIoY4jZ/rules/rulenaIoY4jZ", - "name": "rulenaIoY4jZ", - "type": "Microsoft.ServiceBus/Namespaces/Topics/Subscriptions/Rules", - "location": "westus", - "properties": { - "action": {}, - "filterType": "CorrelationFilter", - "correlationFilter": { - "properties": { - "topicHint": "Crop" - } - } - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetIoY4jZ/topics/topicnaIoY4jZ/subscriptions/subscriptionnaIoY4jZ/rules?api-version=2022-01-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 06 Sep 2022 08:42:14 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-inline-count": "", - "x-ms-ratelimit-remaining-subscription-reads": "11972", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T084214Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "value": [ - { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetIoY4jZ/topics/topicnaIoY4jZ/subscriptions/subscriptionnaIoY4jZ/rules/rulenaIoY4jZ", - "name": "rulenaIoY4jZ", - "type": "Microsoft.ServiceBus/Namespaces/Topics/Subscriptions/Rules", - "location": "westus", - "properties": { - "action": {}, - "filterType": "CorrelationFilter", - "correlationFilter": { - "properties": { - "topicHint": "Crop" - } - } - } - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetIoY4jZ/topics/topicnaIoY4jZ/subscriptions/subscriptionnaIoY4jZ/rules/rulenaIoY4jZ?api-version=2022-01-01-preview", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Tue, 06 Sep 2022 08:42:15 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14991", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T084215Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetIoY4jZ/topics/topicnaIoY4jZ/subscriptions/subscriptionnaIoY4jZ?api-version=2022-01-01-preview", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Tue, 06 Sep 2022 08:42:17 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14990", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T084217Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetIoY4jZ/topics/topicnaIoY4jZ?api-version=2022-01-01-preview", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Tue, 06 Sep 2022 08:42:18 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14989", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T084218Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/namespaces/sbnamespacetIoY4jZ?api-version=2022-01-01-preview", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Tue, 06 Sep 2022 08:42:20 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/locations/westus/operationStatus/sbnamespacetIoY4jZ?api-version=2022-01-01-preview\u0026resourceType=Namespace", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/SN1", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/SN1", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14988", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M2SN1_M2SN1", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T084220Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/locations/westus/operationStatus/sbnamespacetIoY4jZ?api-version=2022-01-01-preview\u0026resourceType=Namespace", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Tue, 06 Sep 2022 08:42:20 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/locations/westus/operationStatus/sbnamespacetIoY4jZ?api-version=2022-01-01-preview\u0026resourceType=Namespace", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/SN1", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/SN1", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11971", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M2SN1_M2SN1", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T084220Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg/providers/Microsoft.ServiceBus/locations/westus/operationStatus/sbnamespacetIoY4jZ?api-version=2022-01-01-preview\u0026resourceType=Namespace", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armservicebus/v2.0.0-beta.1 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 204, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Date": "Tue, 06 Sep 2022 08:42:50 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": [ - "Service-Bus-Resource-Provider/SN1", - "Microsoft-HTTPAPI/2.0" - ], - "Server-SB": "Service-Bus-Resource-Provider/SN1", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11970", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000_M2SN1_M2SN1", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T084251Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.19; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Tue, 06 Sep 2022 08:42:54 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ1Ny1XRVNUVVMiLCJqb2JMb2NhdGlvbiI6Indlc3R1cyJ9?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14987", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220906T084254Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": { - "recordingRandomSeed": "1662452400" - } -} diff --git a/sdk/resourcemanager/storage/armstorage/assets.json b/sdk/resourcemanager/storage/armstorage/assets.json new file mode 100644 index 000000000000..8106ba4dcbeb --- /dev/null +++ b/sdk/resourcemanager/storage/armstorage/assets.json @@ -0,0 +1,6 @@ +{ + "AssetsRepo": "Azure/azure-sdk-assets", + "AssetsRepoPrefixPath": "go", + "TagPrefix": "go/resourcemanager/storage/armstorage", + "Tag": "go/resourcemanager/storage/armstorage_952bf323f4" +} diff --git a/sdk/resourcemanager/storage/armstorage/go.mod b/sdk/resourcemanager/storage/armstorage/go.mod index b914d53269fe..8bac36c29e9b 100644 --- a/sdk/resourcemanager/storage/armstorage/go.mod +++ b/sdk/resourcemanager/storage/armstorage/go.mod @@ -3,27 +3,27 @@ module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storage/armstorage go 1.18 require ( - github.com/Azure/azure-sdk-for-go/sdk/azcore v1.0.0 - github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.0.0 - github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.0.0 + github.com/Azure/azure-sdk-for-go/sdk/azcore v1.4.0 + github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.0 + github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.2 github.com/stretchr/testify v1.7.0 ) require ( - github.com/Azure/azure-sdk-for-go/sdk/internal v1.0.0 // indirect + github.com/Azure/azure-sdk-for-go/sdk/internal v1.2.0 // indirect github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0 // indirect - github.com/AzureAD/microsoft-authentication-library-for-go v0.4.0 // indirect + github.com/AzureAD/microsoft-authentication-library-for-go v0.7.0 // indirect github.com/davecgh/go-spew v1.1.1 // indirect github.com/dnaeon/go-vcr v1.1.0 // indirect - github.com/golang-jwt/jwt v3.2.1+incompatible // indirect + github.com/golang-jwt/jwt/v4 v4.4.2 // 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 github.com/pmezard/go-difflib v1.0.0 // 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 + golang.org/x/net v0.7.0 // indirect + golang.org/x/sys v0.5.0 // indirect + golang.org/x/text v0.7.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect ) diff --git a/sdk/resourcemanager/storage/armstorage/go.sum b/sdk/resourcemanager/storage/armstorage/go.sum index 3bb750d4f3e7..b0f97586a165 100644 --- a/sdk/resourcemanager/storage/armstorage/go.sum +++ b/sdk/resourcemanager/storage/armstorage/go.sum @@ -1,29 +1,27 @@ -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/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.0.0 h1:lMW1lD/17LUA5z1XTURo7LcVG2ICBPlyMHjIUrcFZNQ= -github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.0.0/go.mod h1:ceIuwmxDWptoW3eCqSXlnPsZFKh4X+R38dWPv7GS9Vs= +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.0 h1:t/W5MYAuQy81cvM8VUNfRLzhtKpXhVUAN7Cd7KVbTyc= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.0/go.mod h1:NBanQUfSWiWn3QEpWDTCU0IjBECKOYvl2R8xdRtMtiM= +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/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.2 h1:mLY+pNLjCUeKhgnAJWAKhEUQM+RJQo2H1fuGSw1Ky1E= +github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/internal v1.1.2/go.mod h1:FbdwsQ2EzwvXxOPcMFYO8ogEc9uMMIj3YkmCdXdAFmk= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0 h1:ECsQtyERDVz3NP3kvDOTLvbQhqWp/x9EsGKtb4ogUr8= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resources/armresources v1.0.0/go.mod h1:s1tW/At+xHqjNFvWU4G0c0Qv33KOhvbGNj0RCTQDV8s= -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/AzureAD/microsoft-authentication-library-for-go v0.7.0 h1:VgSJlZH5u0k2qxSpqyghcFQKmvYckj46uymKK5XzkBM= +github.com/AzureAD/microsoft-authentication-library-for-go v0.7.0/go.mod h1:BDJ5qMFKx9DugEg3+uQSDCdbYPr5s9vBTrL9P8TpqOU= 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/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 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= +github.com/golang-jwt/jwt/v4 v4.4.2 h1:rcc4lwaZgFMCZ5jxF9ABolDcIHdBytAFgqFPbSJQAYs= +github.com/golang-jwt/jwt/v4 v4.4.2/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= 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= @@ -33,13 +31,12 @@ github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5Cc github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= 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-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/net v0.7.0 h1:rJrUqqhjsgNp7KqAIc25s9pZnjU7TUcSY7HcVZjdn1g= +golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= +golang.org/x/sys v0.5.0 h1:MUK/U/4lj1t1oPg0HfuXDN/Z1wv31ZJ/YcPiGccS4DU= +golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/text v0.7.0 h1:4BRB4x83lYWy72KwLD/qYDuTu7q9PjSagHvijDw7cLo= +golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= 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= diff --git a/sdk/resourcemanager/storage/armstorage/testdata/recordings/TestBlobContainersClient.json b/sdk/resourcemanager/storage/armstorage/testdata/recordings/TestBlobContainersClient.json deleted file mode 100644 index 71cba75f7c1a..000000000000 --- a/sdk/resourcemanager/storage/armstorage/testdata/recordings/TestBlobContainersClient.json +++ /dev/null @@ -1,506 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": { - "location": "eastus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 22 Aug 2022 07:45:31 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220822T074532Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "eastus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount1?api-version=2022-09-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "274", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armstorage/v1.1.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": { - "kind": "StorageV2", - "location": "eastus", - "properties": { - "encryption": { - "keySource": "Microsoft.Storage", - "services": { - "blob": { - "enabled": true, - "keyType": "Account" - }, - "file": { - "enabled": true, - "keyType": "Account" - } - } - } - }, - "sku": { - "name": "Standard_GRS" - }, - "tags": { - "key1": "value1", - "key2": "value2" - } - }, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Content-Type": "text/plain; charset=utf-8", - "Date": "Mon, 22 Aug 2022 07:45:38 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/eastus/asyncoperations/00000000-0000-0000-0000-000000000000?monitor=true\u0026api-version=2022-09-01", - "Pragma": "no-cache", - "Retry-After": "17", - "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220822T074539Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/eastus/asyncoperations/00000000-0000-0000-0000-000000000000?monitor=true\u0026api-version=2022-09-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armstorage/v1.1.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 22 Aug 2022 07:45:55 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11992", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220822T074556Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "sku": { - "name": "Standard_GRS", - "tier": "Standard" - }, - "kind": "StorageV2", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount1", - "name": "gotestaccount1", - "type": "Microsoft.Storage/storageAccounts", - "location": "eastus", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "keyCreationTime": { - "key1": "2022-08-22T07:45:36.4111833Z", - "key2": "2022-08-22T07:45:36.4111833Z" - }, - "privateEndpointConnections": [], - "minimumTlsVersion": "TLS1_0", - "allowBlobPublicAccess": true, - "networkAcls": { - "bypass": "AzureServices", - "virtualNetworkRules": [], - "ipRules": [], - "defaultAction": "Allow" - }, - "supportsHttpsTrafficOnly": true, - "encryption": { - "services": { - "file": { - "keyType": "Account", - "enabled": true, - "lastEnabledTime": "2022-08-22T07:45:37.0518124Z" - }, - "blob": { - "keyType": "Account", - "enabled": true, - "lastEnabledTime": "2022-08-22T07:45:37.0518124Z" - } - }, - "keySource": "Microsoft.Storage" - }, - "accessTier": "Hot", - "provisioningState": "Succeeded", - "creationTime": "2022-08-22T07:45:36.2705783Z", - "primaryEndpoints": { - "dfs": "https://gotestaccount1.dfs.core.windows.net/", - "web": "https://gotestaccount1.z13.web.core.windows.net/", - "blob": "https://gotestaccount1.blob.core.windows.net/", - "queue": "https://gotestaccount1.queue.core.windows.net/", - "table": "https://gotestaccount1.table.core.windows.net/", - "file": "https://gotestaccount1.file.core.windows.net/" - }, - "primaryLocation": "eastus", - "statusOfPrimary": "available", - "secondaryLocation": "westus", - "statusOfSecondary": "available" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount1/blobServices/default/containers/go-test-container?api-version=2022-09-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "2", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armstorage/v1.1.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": {}, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "293", - "Content-Type": "application/json", - "Date": "Mon, 22 Aug 2022 07:45:56 GMT", - "ETag": "\u00220x8DA841259869DC0\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1197", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220822T074557Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount1/blobServices/default/containers/go-test-container", - "name": "go-test-container", - "type": "Microsoft.Storage/storageAccounts/blobServices/containers" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount1/blobServices/default/containers/go-test-container?api-version=2022-09-01", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "74", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armstorage/v1.1.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": { - "properties": { - "metadata": { - "metadata": "true" - }, - "publicAccess": "Container" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 22 Aug 2022 07:45:57 GMT", - "ETag": "\u00220x8DA84125A14350D\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1196", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220822T074558Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount1/blobServices/default/containers/go-test-container", - "name": "go-test-container", - "type": "Microsoft.Storage/storageAccounts/blobServices/containers", - "properties": { - "deleted": false, - "remainingRetentionDays": 0, - "metadata": { - "metadata": "true" - }, - "publicAccess": "Container", - "hasImmutabilityPolicy": false, - "hasLegalHold": false - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount1/blobServices/default/containers/go-test-container?api-version=2022-09-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armstorage/v1.1.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 22 Aug 2022 07:45:58 GMT", - "ETag": "\u00220x8DA84125A14350D\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11991", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220822T074559Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount1/blobServices/default/containers/go-test-container", - "name": "go-test-container", - "type": "Microsoft.Storage/storageAccounts/blobServices/containers", - "etag": "\u00220x8DA84125A14350D\u0022", - "properties": { - "deleted": false, - "remainingRetentionDays": 0, - "defaultEncryptionScope": "$account-encryption-key", - "denyEncryptionScopeOverride": false, - "metadata": { - "metadata": "true" - }, - "publicAccess": "Container", - "leaseStatus": "Unlocked", - "leaseState": "Available", - "lastModifiedTime": "2022-08-22T07:45:58.0000000Z", - "legalHold": { - "hasLegalHold": false, - "tags": [] - }, - "hasImmutabilityPolicy": false, - "hasLegalHold": false - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount1/blobServices/default/containers/go-test-container/clearLegalHold?api-version=2022-09-01", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "31", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armstorage/v1.1.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": { - "tags": [ - "tag1", - "tag2", - "tag3" - ] - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 22 Aug 2022 07:45:58 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220822T074559Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "hasLegalHold": false, - "tags": [] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount1/blobServices/default/containers/go-test-container/lease?api-version=2022-09-01", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "39", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armstorage/v1.1.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": { - "action": "Acquire", - "leaseDuration": -1 - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 22 Aug 2022 07:45:59 GMT", - "ETag": "\u00220x8DA84125AEF204B\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1198", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220822T074600Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "leaseId": "00000000-0000-0000-0000-000000000000" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount1/blobServices/default/containers/go-test-container/lease?api-version=2022-09-01", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "67", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armstorage/v1.1.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": { - "action": "Break", - "leaseId": "00000000-0000-0000-0000-000000000000" - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 22 Aug 2022 07:46:00 GMT", - "ETag": "\u00220x8DA84125AEF204B\u0022", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1197", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220822T074601Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "leaseTimeSeconds": "0" - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount1/blobServices/default/containers/go-test-container?api-version=2022-09-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armstorage/v1.1.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Content-Type": "text/plain; charset=utf-8", - "Date": "Mon, 22 Aug 2022 07:46:01 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14999", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220822T074602Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 22 Aug 2022 07:46:05 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ0OTMtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14998", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220822T074606Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/resourcemanager/storage/armstorage/testdata/recordings/TestEncryptionScopesClient.json b/sdk/resourcemanager/storage/armstorage/testdata/recordings/TestEncryptionScopesClient.json deleted file mode 100644 index 8ec9ecd5e992..000000000000 --- a/sdk/resourcemanager/storage/armstorage/testdata/recordings/TestEncryptionScopesClient.json +++ /dev/null @@ -1,352 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": { - "location": "eastus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 22 Aug 2022 07:46:08 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1195", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220822T074609Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "eastus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount2?api-version=2022-09-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "274", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armstorage/v1.1.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": { - "kind": "StorageV2", - "location": "eastus", - "properties": { - "encryption": { - "keySource": "Microsoft.Storage", - "services": { - "blob": { - "enabled": true, - "keyType": "Account" - }, - "file": { - "enabled": true, - "keyType": "Account" - } - } - } - }, - "sku": { - "name": "Standard_GRS" - }, - "tags": { - "key1": "value1", - "key2": "value2" - } - }, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Content-Type": "text/plain; charset=utf-8", - "Date": "Mon, 22 Aug 2022 07:46:14 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/eastus/asyncoperations/00000000-0000-0000-0000-000000000000?monitor=true\u0026api-version=2022-09-01", - "Pragma": "no-cache", - "Retry-After": "17", - "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1194", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220822T074614Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/eastus/asyncoperations/00000000-0000-0000-0000-000000000000?monitor=true\u0026api-version=2022-09-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armstorage/v1.1.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 22 Aug 2022 07:46:31 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11990", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220822T074631Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "sku": { - "name": "Standard_GRS", - "tier": "Standard" - }, - "kind": "StorageV2", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount2", - "name": "gotestaccount2", - "type": "Microsoft.Storage/storageAccounts", - "location": "eastus", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "keyCreationTime": { - "key1": "2022-08-22T07:46:11.8798568Z", - "key2": "2022-08-22T07:46:11.8798568Z" - }, - "privateEndpointConnections": [], - "minimumTlsVersion": "TLS1_0", - "allowBlobPublicAccess": true, - "networkAcls": { - "bypass": "AzureServices", - "virtualNetworkRules": [], - "ipRules": [], - "defaultAction": "Allow" - }, - "supportsHttpsTrafficOnly": true, - "encryption": { - "services": { - "file": { - "keyType": "Account", - "enabled": true, - "lastEnabledTime": "2022-08-22T07:46:12.4892083Z" - }, - "blob": { - "keyType": "Account", - "enabled": true, - "lastEnabledTime": "2022-08-22T07:46:12.4892083Z" - } - }, - "keySource": "Microsoft.Storage" - }, - "accessTier": "Hot", - "provisioningState": "Succeeded", - "creationTime": "2022-08-22T07:46:11.7392039Z", - "primaryEndpoints": { - "dfs": "https://gotestaccount2.dfs.core.windows.net/", - "web": "https://gotestaccount2.z13.web.core.windows.net/", - "blob": "https://gotestaccount2.blob.core.windows.net/", - "queue": "https://gotestaccount2.queue.core.windows.net/", - "table": "https://gotestaccount2.table.core.windows.net/", - "file": "https://gotestaccount2.file.core.windows.net/" - }, - "primaryLocation": "eastus", - "statusOfPrimary": "available", - "secondaryLocation": "westus", - "statusOfSecondary": "available" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount2/encryptionScopes/go-test-encryption?api-version=2022-09-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "63", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armstorage/v1.1.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": { - "properties": { - "source": "Microsoft.Storage", - "state": "Enabled" - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "455", - "Content-Type": "application/json", - "Date": "Mon, 22 Aug 2022 07:46:32 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1193", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220822T074632Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount2/encryptionScopes/go-test-encryption", - "type": "Microsoft.Storage/storageAccounts/encryptionScopes", - "name": "go-test-encryption", - "properties": { - "source": "Microsoft.Storage", - "keyVaultProperties": {}, - "creationTime": "2022-08-22T07:46:32.4230175Z", - "lastModifiedTime": "2022-08-22T07:46:32.4230175Z", - "state": "Enabled" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount2/encryptionScopes/go-test-encryption?api-version=2022-09-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armstorage/v1.1.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 22 Aug 2022 07:46:33 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11989", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220822T074633Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount2/encryptionScopes/go-test-encryption", - "type": "Microsoft.Storage/storageAccounts/encryptionScopes", - "name": "go-test-encryption", - "properties": { - "source": "Microsoft.Storage", - "creationTime": "2022-08-22T07:46:32.4230175Z", - "lastModifiedTime": "2022-08-22T07:46:32.4230175Z", - "state": "Enabled" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount2/encryptionScopes/go-test-encryption?api-version=2022-09-01", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "63", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armstorage/v1.1.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": { - "properties": { - "source": "Microsoft.Storage", - "state": "Enabled" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 22 Aug 2022 07:46:34 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1192", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220822T074634Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount2/encryptionScopes/go-test-encryption", - "type": "Microsoft.Storage/storageAccounts/encryptionScopes", - "name": "go-test-encryption", - "properties": { - "source": "Microsoft.Storage", - "keyVaultProperties": {}, - "creationTime": "2022-08-22T07:46:32.4230175Z", - "lastModifiedTime": "2022-08-22T07:46:32.4230175Z", - "state": "Enabled" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 22 Aug 2022 07:46:36 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQxNDktRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14997", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220822T074636Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/resourcemanager/storage/armstorage/testdata/recordings/TestManagementPoliciesClient.json b/sdk/resourcemanager/storage/armstorage/testdata/recordings/TestManagementPoliciesClient.json deleted file mode 100644 index 6a8a945a6edb..000000000000 --- a/sdk/resourcemanager/storage/armstorage/testdata/recordings/TestManagementPoliciesClient.json +++ /dev/null @@ -1,464 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": { - "location": "eastus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 22 Aug 2022 07:46:37 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1191", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220822T074638Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "eastus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount3?api-version=2022-09-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "274", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armstorage/v1.1.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": { - "kind": "StorageV2", - "location": "eastus", - "properties": { - "encryption": { - "keySource": "Microsoft.Storage", - "services": { - "blob": { - "enabled": true, - "keyType": "Account" - }, - "file": { - "enabled": true, - "keyType": "Account" - } - } - } - }, - "sku": { - "name": "Standard_GRS" - }, - "tags": { - "key1": "value1", - "key2": "value2" - } - }, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Content-Type": "text/plain; charset=utf-8", - "Date": "Mon, 22 Aug 2022 07:46:42 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/eastus/asyncoperations/00000000-0000-0000-0000-000000000000?monitor=true\u0026api-version=2022-09-01", - "Pragma": "no-cache", - "Retry-After": "17", - "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1190", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220822T074643Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/eastus/asyncoperations/00000000-0000-0000-0000-000000000000?monitor=true\u0026api-version=2022-09-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armstorage/v1.1.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Content-Type": "text/plain; charset=utf-8", - "Date": "Mon, 22 Aug 2022 07:47:00 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/eastus/asyncoperations/00000000-0000-0000-0000-000000000000?monitor=true\u0026api-version=2022-09-01", - "Pragma": "no-cache", - "Retry-After": "3", - "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11988", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220822T074700Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/eastus/asyncoperations/00000000-0000-0000-0000-000000000000?monitor=true\u0026api-version=2022-09-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armstorage/v1.1.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 22 Aug 2022 07:47:03 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11987", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220822T074703Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "sku": { - "name": "Standard_GRS", - "tier": "Standard" - }, - "kind": "StorageV2", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount3", - "name": "gotestaccount3", - "type": "Microsoft.Storage/storageAccounts", - "location": "eastus", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "keyCreationTime": { - "key1": "2022-08-22T07:46:40.4422813Z", - "key2": "2022-08-22T07:46:40.4422813Z" - }, - "privateEndpointConnections": [], - "minimumTlsVersion": "TLS1_0", - "allowBlobPublicAccess": true, - "networkAcls": { - "bypass": "AzureServices", - "virtualNetworkRules": [], - "ipRules": [], - "defaultAction": "Allow" - }, - "supportsHttpsTrafficOnly": true, - "encryption": { - "services": { - "file": { - "keyType": "Account", - "enabled": true, - "lastEnabledTime": "2022-08-22T07:46:41.0828727Z" - }, - "blob": { - "keyType": "Account", - "enabled": true, - "lastEnabledTime": "2022-08-22T07:46:41.0828727Z" - } - }, - "keySource": "Microsoft.Storage" - }, - "accessTier": "Hot", - "provisioningState": "Succeeded", - "creationTime": "2022-08-22T07:46:40.3016504Z", - "primaryEndpoints": { - "dfs": "https://gotestaccount3.dfs.core.windows.net/", - "web": "https://gotestaccount3.z13.web.core.windows.net/", - "blob": "https://gotestaccount3.blob.core.windows.net/", - "queue": "https://gotestaccount3.queue.core.windows.net/", - "table": "https://gotestaccount3.table.core.windows.net/", - "file": "https://gotestaccount3.file.core.windows.net/" - }, - "primaryLocation": "eastus", - "statusOfPrimary": "available", - "secondaryLocation": "westus", - "statusOfSecondary": "available" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount3/managementPolicies/default?api-version=2022-09-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "423", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armstorage/v1.1.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": { - "properties": { - "policy": { - "rules": [ - { - "definition": { - "actions": { - "baseBlob": { - "delete": { - "daysAfterModificationGreaterThan": 1000 - }, - "tierToArchive": { - "daysAfterModificationGreaterThan": 90 - }, - "tierToCool": { - "daysAfterModificationGreaterThan": 30 - } - }, - "snapshot": { - "delete": { - "daysAfterCreationGreaterThan": 30 - } - } - }, - "filters": { - "blobTypes": [ - "blockBlob" - ], - "prefixMatch": [ - "olcmtestcontainer" - ] - } - }, - "enabled": true, - "name": "olcmtest", - "type": "Lifecycle" - } - ] - } - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 22 Aug 2022 07:47:04 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1189", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220822T074704Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount3/managementPolicies/default", - "name": "DefaultManagementPolicy", - "type": "Microsoft.Storage/storageAccounts/managementPolicies", - "properties": { - "policy": { - "rules": [ - { - "enabled": true, - "name": "olcmtest", - "type": "Lifecycle", - "definition": { - "actions": { - "baseBlob": { - "tierToCool": { - "daysAfterModificationGreaterThan": 30.0 - }, - "tierToArchive": { - "daysAfterModificationGreaterThan": 90.0 - }, - "delete": { - "daysAfterModificationGreaterThan": 1000.0 - } - }, - "snapshot": { - "delete": { - "daysAfterCreationGreaterThan": 30.0 - } - } - }, - "filters": { - "blobTypes": [ - "blockBlob" - ], - "prefixMatch": [ - "olcmtestcontainer" - ] - } - } - } - ] - }, - "lastModifiedTime": "2022-08-22T07:47:04.6921907Z" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount3/managementPolicies/default?api-version=2022-09-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armstorage/v1.1.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 22 Aug 2022 07:47:05 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11986", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220822T074705Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount3/managementPolicies/default", - "name": "DefaultManagementPolicy", - "type": "Microsoft.Storage/storageAccounts/managementPolicies", - "properties": { - "policy": { - "rules": [ - { - "enabled": true, - "name": "olcmtest", - "type": "Lifecycle", - "definition": { - "actions": { - "baseBlob": { - "tierToCool": { - "daysAfterModificationGreaterThan": 30.0 - }, - "tierToArchive": { - "daysAfterModificationGreaterThan": 90.0 - }, - "delete": { - "daysAfterModificationGreaterThan": 1000.0 - } - }, - "snapshot": { - "delete": { - "daysAfterCreationGreaterThan": 30.0 - } - } - }, - "filters": { - "blobTypes": [ - "blockBlob" - ], - "prefixMatch": [ - "olcmtestcontainer" - ] - } - } - } - ] - }, - "lastModifiedTime": "2022-08-22T07:47:04.6921907Z" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount3/managementPolicies/default?api-version=2022-09-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armstorage/v1.1.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Content-Type": "text/plain; charset=utf-8", - "Date": "Mon, 22 Aug 2022 07:47:06 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14996", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220822T074706Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 22 Aug 2022 07:47:07 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ3ODktRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14995", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220822T074708Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/resourcemanager/storage/armstorage/testdata/recordings/TestOperationsClient.json b/sdk/resourcemanager/storage/armstorage/testdata/recordings/TestOperationsClient.json deleted file mode 100644 index c1266f624319..000000000000 --- a/sdk/resourcemanager/storage/armstorage/testdata/recordings/TestOperationsClient.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": { - "location": "eastus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 22 Aug 2022 07:47:09 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1188", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220822T074710Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "eastus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 22 Aug 2022 07:47:11 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ5MjgtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14994", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220822T074711Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/resourcemanager/storage/armstorage/testdata/recordings/TestSKUsClient.json b/sdk/resourcemanager/storage/armstorage/testdata/recordings/TestSKUsClient.json deleted file mode 100644 index 47c9e161234b..000000000000 --- a/sdk/resourcemanager/storage/armstorage/testdata/recordings/TestSKUsClient.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": { - "location": "eastus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 22 Aug 2022 07:47:13 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1187", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220822T074713Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "eastus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 22 Aug 2022 07:47:15 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQxNTUtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14993", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220822T074715Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/resourcemanager/storage/armstorage/testdata/recordings/TestStorageAccountsClient.json b/sdk/resourcemanager/storage/armstorage/testdata/recordings/TestStorageAccountsClient.json deleted file mode 100644 index 3e82df894644..000000000000 --- a/sdk/resourcemanager/storage/armstorage/testdata/recordings/TestStorageAccountsClient.json +++ /dev/null @@ -1,608 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": { - "location": "eastus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 22 Aug 2022 07:47:16 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1186", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220822T074717Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "eastus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount?api-version=2022-09-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "274", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armstorage/v1.1.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": { - "kind": "StorageV2", - "location": "eastus", - "properties": { - "encryption": { - "keySource": "Microsoft.Storage", - "services": { - "blob": { - "enabled": true, - "keyType": "Account" - }, - "file": { - "enabled": true, - "keyType": "Account" - } - } - } - }, - "sku": { - "name": "Standard_GRS" - }, - "tags": { - "key1": "value1", - "key2": "value2" - } - }, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Content-Type": "text/plain; charset=utf-8", - "Date": "Mon, 22 Aug 2022 07:47:27 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/eastus/asyncoperations/00000000-0000-0000-0000-000000000000?monitor=true\u0026api-version=2022-09-01", - "Pragma": "no-cache", - "Retry-After": "17", - "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1185", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220822T074728Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/locations/eastus/asyncoperations/00000000-0000-0000-0000-000000000000?monitor=true\u0026api-version=2022-09-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armstorage/v1.1.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 22 Aug 2022 07:47:44 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11985", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220822T074745Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "sku": { - "name": "Standard_GRS", - "tier": "Standard" - }, - "kind": "StorageV2", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount", - "name": "gotestaccount", - "type": "Microsoft.Storage/storageAccounts", - "location": "eastus", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "keyCreationTime": { - "key1": "2022-08-22T07:47:19.7077811Z", - "key2": "2022-08-22T07:47:19.7077811Z" - }, - "privateEndpointConnections": [], - "minimumTlsVersion": "TLS1_0", - "allowBlobPublicAccess": true, - "networkAcls": { - "bypass": "AzureServices", - "virtualNetworkRules": [], - "ipRules": [], - "defaultAction": "Allow" - }, - "supportsHttpsTrafficOnly": true, - "encryption": { - "services": { - "file": { - "keyType": "Account", - "enabled": true, - "lastEnabledTime": "2022-08-22T07:47:20.0515447Z" - }, - "blob": { - "keyType": "Account", - "enabled": true, - "lastEnabledTime": "2022-08-22T07:47:20.0515447Z" - } - }, - "keySource": "Microsoft.Storage" - }, - "accessTier": "Hot", - "provisioningState": "Succeeded", - "creationTime": "2022-08-22T07:47:19.5984408Z", - "primaryEndpoints": { - "dfs": "https://gotestaccount.dfs.core.windows.net/", - "web": "https://gotestaccount.z13.web.core.windows.net/", - "blob": "https://gotestaccount.blob.core.windows.net/", - "queue": "https://gotestaccount.queue.core.windows.net/", - "table": "https://gotestaccount.table.core.windows.net/", - "file": "https://gotestaccount.file.core.windows.net/" - }, - "primaryLocation": "eastus", - "statusOfPrimary": "available", - "secondaryLocation": "westus", - "statusOfSecondary": "available" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Storage/checkNameAvailability?api-version=2022-09-01", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "67", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armstorage/v1.1.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": { - "name": "gotestaccount", - "type": "Microsoft.Storage/storageAccounts" - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 22 Aug 2022 07:47:45 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11984", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220822T074746Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "nameAvailable": false, - "reason": "AlreadyExists", - "message": "The storage account named gotestaccount is already taken." - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount?api-version=2022-09-01", - "RequestMethod": "PATCH", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "204", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armstorage/v1.1.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": { - "properties": { - "encryption": { - "keySource": "Microsoft.Storage", - "services": { - "blob": { - "enabled": true, - "keyType": "Account" - }, - "file": { - "enabled": true, - "keyType": "Account" - } - } - }, - "networkAcls": { - "defaultAction": "Allow" - } - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 22 Aug 2022 07:47:47 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1184", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220822T074748Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "sku": { - "name": "Standard_GRS", - "tier": "Standard" - }, - "kind": "StorageV2", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount", - "name": "gotestaccount", - "type": "Microsoft.Storage/storageAccounts", - "location": "eastus", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "keyCreationTime": { - "key1": "2022-08-22T07:47:19.7077811Z", - "key2": "2022-08-22T07:47:19.7077811Z" - }, - "privateEndpointConnections": [], - "minimumTlsVersion": "TLS1_0", - "allowBlobPublicAccess": true, - "networkAcls": { - "bypass": "AzureServices", - "virtualNetworkRules": [], - "ipRules": [], - "defaultAction": "Allow" - }, - "supportsHttpsTrafficOnly": true, - "encryption": { - "services": { - "file": { - "keyType": "Account", - "enabled": true, - "lastEnabledTime": "2022-08-22T07:47:20.0515447Z" - }, - "blob": { - "keyType": "Account", - "enabled": true, - "lastEnabledTime": "2022-08-22T07:47:20.0515447Z" - } - }, - "keySource": "Microsoft.Storage" - }, - "accessTier": "Hot", - "provisioningState": "Succeeded", - "creationTime": "2022-08-22T07:47:19.5984408Z", - "primaryEndpoints": { - "dfs": "https://gotestaccount.dfs.core.windows.net/", - "web": "https://gotestaccount.z13.web.core.windows.net/", - "blob": "https://gotestaccount.blob.core.windows.net/", - "queue": "https://gotestaccount.queue.core.windows.net/", - "table": "https://gotestaccount.table.core.windows.net/", - "file": "https://gotestaccount.file.core.windows.net/" - }, - "primaryLocation": "eastus", - "statusOfPrimary": "available", - "secondaryLocation": "westus", - "statusOfSecondary": "available" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount?api-version=2022-09-01", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armstorage/v1.1.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 22 Aug 2022 07:47:48 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-reads": "11983", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220822T074749Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "sku": { - "name": "Standard_GRS", - "tier": "Standard" - }, - "kind": "StorageV2", - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount", - "name": "gotestaccount", - "type": "Microsoft.Storage/storageAccounts", - "location": "eastus", - "tags": { - "key1": "value1", - "key2": "value2" - }, - "properties": { - "keyCreationTime": { - "key1": "2022-08-22T07:47:19.7077811Z", - "key2": "2022-08-22T07:47:19.7077811Z" - }, - "privateEndpointConnections": [], - "minimumTlsVersion": "TLS1_0", - "allowBlobPublicAccess": true, - "networkAcls": { - "bypass": "AzureServices", - "virtualNetworkRules": [], - "ipRules": [], - "defaultAction": "Allow" - }, - "supportsHttpsTrafficOnly": true, - "encryption": { - "services": { - "file": { - "keyType": "Account", - "enabled": true, - "lastEnabledTime": "2022-08-22T07:47:20.0515447Z" - }, - "blob": { - "keyType": "Account", - "enabled": true, - "lastEnabledTime": "2022-08-22T07:47:20.0515447Z" - } - }, - "keySource": "Microsoft.Storage" - }, - "accessTier": "Hot", - "provisioningState": "Succeeded", - "creationTime": "2022-08-22T07:47:19.5984408Z", - "primaryEndpoints": { - "dfs": "https://gotestaccount.dfs.core.windows.net/", - "web": "https://gotestaccount.z13.web.core.windows.net/", - "blob": "https://gotestaccount.blob.core.windows.net/", - "queue": "https://gotestaccount.queue.core.windows.net/", - "table": "https://gotestaccount.table.core.windows.net/", - "file": "https://gotestaccount.file.core.windows.net/" - }, - "primaryLocation": "eastus", - "statusOfPrimary": "available", - "secondaryLocation": "westus", - "statusOfSecondary": "available" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount/listKeys?api-version=2022-09-01", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armstorage/v1.1.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 22 Aug 2022 07:47:49 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-resource-requests": "11999", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220822T074750Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "keys": [ - { - "creationTime": "2022-08-22T07:47:19.7077811Z", - "keyName": "key1", - "value": "tlGu3CUhSUtUHu3o96eZIzLhpXGbsYueqyVN8IxUe5FsrLwI0iDt1DWY5ShO8kZwiKIUon7PPNKA\u002BASto0a/4g==", - "permissions": "FULL" - }, - { - "creationTime": "2022-08-22T07:47:19.7077811Z", - "keyName": "key2", - "value": "fKpzzz4xRZQkuSMS\u002B6iIakhqttG8nYwThafr7MAmS83CXmPFnf/Pxq/ucw9x/ERbPIJDPklNM\u002Bnj\u002BAStuQdStA==", - "permissions": "FULL" - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount/revokeUserDelegationKeys?api-version=2022-09-01", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "0", - "User-Agent": "azsdk-go-armstorage/v1.1.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Content-Type": "text/plain; charset=utf-8", - "Date": "Mon, 22 Aug 2022 07:47:50 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1196", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220822T074751Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount/regenerateKey?api-version=2022-09-01", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "18", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armstorage/v1.1.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": { - "keyName": "key2" - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json", - "Date": "Mon, 22 Aug 2022 07:47:51 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": "Accept-Encoding", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1195", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220822T074752Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "keys": [ - { - "creationTime": "2022-08-22T07:47:19.7077811Z", - "keyName": "key1", - "value": "tlGu3CUhSUtUHu3o96eZIzLhpXGbsYueqyVN8IxUe5FsrLwI0iDt1DWY5ShO8kZwiKIUon7PPNKA\u002BASto0a/4g==", - "permissions": "FULL" - }, - { - "creationTime": "2022-08-22T07:47:51.8483552Z", - "keyName": "key2", - "value": "F6TGw\u002BBcFNUPAhPe/n/xRveVV\u002B\u002BlQnbL\u002BBgsl6hFPqOSGxzDhWB5C6Ysljl5IRzAU0o63hOFQAGX\u002BAStqTt6Iw==", - "permissions": "FULL" - } - ] - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg/providers/Microsoft.Storage/storageAccounts/gotestaccount?api-version=2022-09-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armstorage/v1.1.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Content-Type": "text/plain; charset=utf-8", - "Date": "Mon, 22 Aug 2022 07:47:59 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Server": "Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14992", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220822T074800Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 22 Aug 2022 07:48:01 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ0MDMtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14991", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220822T074802Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": {} -} diff --git a/sdk/resourcemanager/storage/armstorage/testdata/recordings/TestUsagesClient.json b/sdk/resourcemanager/storage/armstorage/testdata/recordings/TestUsagesClient.json deleted file mode 100644 index ab5b22720db9..000000000000 --- a/sdk/resourcemanager/storage/armstorage/testdata/recordings/TestUsagesClient.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "Content-Length": "21", - "Content-Type": "application/json", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": { - "location": "eastus" - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "225", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 22 Aug 2022 07:48:04 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-writes": "1183", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220822T074804Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/go-sdk-test-rg", - "name": "go-sdk-test-rg", - "type": "Microsoft.Resources/resourceGroups", - "location": "eastus", - "properties": { - "provisioningState": "Succeeded" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/go-sdk-test-rg?api-version=2021-04-01", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip", - "Authorization": "Sanitized", - "User-Agent": "azsdk-go-armresources/v1.0.0 (go1.18.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 22 Aug 2022 07:48:06 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1HTzoyRFNESzoyRFRFU1Q6MkQ5ODYtRUFTVFVTIiwiam9iTG9jYXRpb24iOiJlYXN0dXMifQ?api-version=2021-04-01", - "Pragma": "no-cache", - "Retry-After": "15", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-ratelimit-remaining-subscription-deletes": "14990", - "x-ms-request-id": "00000000-0000-0000-0000-000000000000", - "x-ms-routing-request-id": "SOUTHEASTASIA:20220822T074806Z:00000000-0000-0000-0000-000000000000" - }, - "ResponseBody": null - } - ], - "Variables": {} -} From 9286c60011675cb0eb4daa8b01f31e14e2807439 Mon Sep 17 00:00:00 2001 From: Peng Jiahui <46921893+Alancere@users.noreply.github.com> Date: Tue, 7 Mar 2023 10:20:59 +0800 Subject: [PATCH 076/107] [Release] sdk/resourcemanager/storagemover/armstoragemover/1.0.0 (#20339) * [Release] sdk/resourcemanager/storagemover/armstoragemover/1.0.0 generation from spec commit: 241e964afe675a7be98aa6a2e171a3c5f830816c * update changelog.md --- .../storagemover/armstoragemover/CHANGELOG.md | 5 ++++ .../armstoragemover/agents_client.go | 22 +++++++------- .../agents_client_example_test.go | 10 +++---- .../storagemover/armstoragemover/autorest.md | 8 ++--- .../storagemover/armstoragemover/constants.go | 2 +- .../armstoragemover/endpoints_client.go | 22 +++++++------- .../endpoints_client_example_test.go | 10 +++---- .../armstoragemover/jobdefinitions_client.go | 30 +++++++++---------- .../jobdefinitions_client_example_test.go | 14 ++++----- .../armstoragemover/jobruns_client.go | 8 ++--- .../jobruns_client_example_test.go | 4 +-- .../armstoragemover/operations_client.go | 4 +-- .../operations_client_example_test.go | 2 +- .../armstoragemover/projects_client.go | 22 +++++++------- .../projects_client_example_test.go | 10 +++---- .../armstoragemover/storagemovers_client.go | 26 ++++++++-------- .../storagemovers_client_example_test.go | 12 ++++---- 17 files changed, 108 insertions(+), 103 deletions(-) diff --git a/sdk/resourcemanager/storagemover/armstoragemover/CHANGELOG.md b/sdk/resourcemanager/storagemover/armstoragemover/CHANGELOG.md index bff9fc455fdc..e7f27f243a3d 100644 --- a/sdk/resourcemanager/storagemover/armstoragemover/CHANGELOG.md +++ b/sdk/resourcemanager/storagemover/armstoragemover/CHANGELOG.md @@ -1,5 +1,10 @@ # Release History +## 1.0.0 (2023-03-07) +### Other Changes + +- Release stable version. + ## 0.1.0 (2023-02-24) The package of `github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storagemover/armstoragemover` is using our [next generation design principles](https://azure.github.io/azure-sdk/general_introduction.html). diff --git a/sdk/resourcemanager/storagemover/armstoragemover/agents_client.go b/sdk/resourcemanager/storagemover/armstoragemover/agents_client.go index 17f41d2f6fc3..4f4592e61736 100644 --- a/sdk/resourcemanager/storagemover/armstoragemover/agents_client.go +++ b/sdk/resourcemanager/storagemover/armstoragemover/agents_client.go @@ -58,7 +58,7 @@ func NewAgentsClient(subscriptionID string, credential azcore.TokenCredential, o // CreateOrUpdate - Creates or updates an Agent resource, which references a hybrid compute machine that can run jobs. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-07-01-preview +// Generated from API version 2023-03-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - storageMoverName - The name of the Storage Mover resource. // - agentName - The name of the Agent resource. @@ -102,7 +102,7 @@ func (client *AgentsClient) createOrUpdateCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-01-preview") + reqQP.Set("api-version", "2023-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, agent) @@ -120,7 +120,7 @@ func (client *AgentsClient) createOrUpdateHandleResponse(resp *http.Response) (A // BeginDelete - Deletes an Agent resource. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-07-01-preview +// Generated from API version 2023-03-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - storageMoverName - The name of the Storage Mover resource. // - agentName - The name of the Agent resource. @@ -142,7 +142,7 @@ func (client *AgentsClient) BeginDelete(ctx context.Context, resourceGroupName s // Delete - Deletes an Agent resource. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-07-01-preview +// Generated from API version 2023-03-01 func (client *AgentsClient) deleteOperation(ctx context.Context, resourceGroupName string, storageMoverName string, agentName string, options *AgentsClientBeginDeleteOptions) (*http.Response, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, storageMoverName, agentName, options) if err != nil { @@ -182,7 +182,7 @@ func (client *AgentsClient) deleteCreateRequest(ctx context.Context, resourceGro return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-01-preview") + reqQP.Set("api-version", "2023-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -191,7 +191,7 @@ func (client *AgentsClient) deleteCreateRequest(ctx context.Context, resourceGro // Get - Gets an Agent resource. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-07-01-preview +// Generated from API version 2023-03-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - storageMoverName - The name of the Storage Mover resource. // - agentName - The name of the Agent resource. @@ -235,7 +235,7 @@ func (client *AgentsClient) getCreateRequest(ctx context.Context, resourceGroupN return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-01-preview") + reqQP.Set("api-version", "2023-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -252,7 +252,7 @@ func (client *AgentsClient) getHandleResponse(resp *http.Response) (AgentsClient // NewListPager - Lists all Agents in a Storage Mover. // -// Generated from API version 2022-07-01-preview +// Generated from API version 2023-03-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - storageMoverName - The name of the Storage Mover resource. // - options - AgentsClientListOptions contains the optional parameters for the AgentsClient.NewListPager method. @@ -304,7 +304,7 @@ func (client *AgentsClient) listCreateRequest(ctx context.Context, resourceGroup return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-01-preview") + reqQP.Set("api-version", "2023-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -322,7 +322,7 @@ func (client *AgentsClient) listHandleResponse(resp *http.Response) (AgentsClien // Update - Creates or updates an Agent resource. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-07-01-preview +// Generated from API version 2023-03-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - storageMoverName - The name of the Storage Mover resource. // - agentName - The name of the Agent resource. @@ -366,7 +366,7 @@ func (client *AgentsClient) updateCreateRequest(ctx context.Context, resourceGro return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-01-preview") + reqQP.Set("api-version", "2023-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, agent) diff --git a/sdk/resourcemanager/storagemover/armstoragemover/agents_client_example_test.go b/sdk/resourcemanager/storagemover/armstoragemover/agents_client_example_test.go index b281628fcfb3..bccf5125d2b4 100644 --- a/sdk/resourcemanager/storagemover/armstoragemover/agents_client_example_test.go +++ b/sdk/resourcemanager/storagemover/armstoragemover/agents_client_example_test.go @@ -18,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storagemover/armstoragemover" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3d7a3848106b831a4a7f46976fe38aa605c4f44d/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/Agents_List.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/241e964afe675a7be98aa6a2e171a3c5f830816c/specification/storagemover/resource-manager/Microsoft.StorageMover/stable/2023-03-01/examples/Agents_List.json func ExampleAgentsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -125,7 +125,7 @@ func ExampleAgentsClient_NewListPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3d7a3848106b831a4a7f46976fe38aa605c4f44d/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/Agents_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/241e964afe675a7be98aa6a2e171a3c5f830816c/specification/storagemover/resource-manager/Microsoft.StorageMover/stable/2023-03-01/examples/Agents_Get.json func ExampleAgentsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -170,7 +170,7 @@ func ExampleAgentsClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3d7a3848106b831a4a7f46976fe38aa605c4f44d/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/Agents_CreateOrUpdate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/241e964afe675a7be98aa6a2e171a3c5f830816c/specification/storagemover/resource-manager/Microsoft.StorageMover/stable/2023-03-01/examples/Agents_CreateOrUpdate.json func ExampleAgentsClient_CreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -208,7 +208,7 @@ func ExampleAgentsClient_CreateOrUpdate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3d7a3848106b831a4a7f46976fe38aa605c4f44d/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/Agents_Update.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/241e964afe675a7be98aa6a2e171a3c5f830816c/specification/storagemover/resource-manager/Microsoft.StorageMover/stable/2023-03-01/examples/Agents_Update.json func ExampleAgentsClient_Update() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -249,7 +249,7 @@ func ExampleAgentsClient_Update() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3d7a3848106b831a4a7f46976fe38aa605c4f44d/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/Agents_Delete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/241e964afe675a7be98aa6a2e171a3c5f830816c/specification/storagemover/resource-manager/Microsoft.StorageMover/stable/2023-03-01/examples/Agents_Delete.json func ExampleAgentsClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/storagemover/armstoragemover/autorest.md b/sdk/resourcemanager/storagemover/armstoragemover/autorest.md index b0ff30a53266..fc499cf22d89 100644 --- a/sdk/resourcemanager/storagemover/armstoragemover/autorest.md +++ b/sdk/resourcemanager/storagemover/armstoragemover/autorest.md @@ -5,9 +5,9 @@ ``` yaml azure-arm: true require: -- https://github.com/Azure/azure-rest-api-specs/blob/3d7a3848106b831a4a7f46976fe38aa605c4f44d/specification/storagemover/resource-manager/readme.md -- https://github.com/Azure/azure-rest-api-specs/blob/3d7a3848106b831a4a7f46976fe38aa605c4f44d/specification/storagemover/resource-manager/readme.go.md +- https://github.com/Azure/azure-rest-api-specs/blob/241e964afe675a7be98aa6a2e171a3c5f830816c/specification/storagemover/resource-manager/readme.md +- https://github.com/Azure/azure-rest-api-specs/blob/241e964afe675a7be98aa6a2e171a3c5f830816c/specification/storagemover/resource-manager/readme.go.md license-header: MICROSOFT_MIT_NO_VERSION -module-version: 0.1.0 -tag: package-2022-07-01-preview +module-version: 1.0.0 + ``` \ No newline at end of file diff --git a/sdk/resourcemanager/storagemover/armstoragemover/constants.go b/sdk/resourcemanager/storagemover/armstoragemover/constants.go index c505e4940678..df2a841c30f0 100644 --- a/sdk/resourcemanager/storagemover/armstoragemover/constants.go +++ b/sdk/resourcemanager/storagemover/armstoragemover/constants.go @@ -11,7 +11,7 @@ package armstoragemover const ( moduleName = "armstoragemover" - moduleVersion = "v0.1.0" + moduleVersion = "v1.0.0" ) // ActionType - Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. diff --git a/sdk/resourcemanager/storagemover/armstoragemover/endpoints_client.go b/sdk/resourcemanager/storagemover/armstoragemover/endpoints_client.go index cf3a52729f01..6cf1c98ea70c 100644 --- a/sdk/resourcemanager/storagemover/armstoragemover/endpoints_client.go +++ b/sdk/resourcemanager/storagemover/armstoragemover/endpoints_client.go @@ -58,7 +58,7 @@ func NewEndpointsClient(subscriptionID string, credential azcore.TokenCredential // CreateOrUpdate - Creates or updates an Endpoint resource, which represents a data transfer source or destination. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-07-01-preview +// Generated from API version 2023-03-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - storageMoverName - The name of the Storage Mover resource. // - endpointName - The name of the Endpoint resource. @@ -103,7 +103,7 @@ func (client *EndpointsClient) createOrUpdateCreateRequest(ctx context.Context, return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-01-preview") + reqQP.Set("api-version", "2023-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, endpoint) @@ -121,7 +121,7 @@ func (client *EndpointsClient) createOrUpdateHandleResponse(resp *http.Response) // BeginDelete - Deletes an Endpoint resource. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-07-01-preview +// Generated from API version 2023-03-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - storageMoverName - The name of the Storage Mover resource. // - endpointName - The name of the Endpoint resource. @@ -143,7 +143,7 @@ func (client *EndpointsClient) BeginDelete(ctx context.Context, resourceGroupNam // Delete - Deletes an Endpoint resource. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-07-01-preview +// Generated from API version 2023-03-01 func (client *EndpointsClient) deleteOperation(ctx context.Context, resourceGroupName string, storageMoverName string, endpointName string, options *EndpointsClientBeginDeleteOptions) (*http.Response, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, storageMoverName, endpointName, options) if err != nil { @@ -183,7 +183,7 @@ func (client *EndpointsClient) deleteCreateRequest(ctx context.Context, resource return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-01-preview") + reqQP.Set("api-version", "2023-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -192,7 +192,7 @@ func (client *EndpointsClient) deleteCreateRequest(ctx context.Context, resource // Get - Gets an Endpoint resource. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-07-01-preview +// Generated from API version 2023-03-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - storageMoverName - The name of the Storage Mover resource. // - endpointName - The name of the Endpoint resource. @@ -236,7 +236,7 @@ func (client *EndpointsClient) getCreateRequest(ctx context.Context, resourceGro return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-01-preview") + reqQP.Set("api-version", "2023-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -253,7 +253,7 @@ func (client *EndpointsClient) getHandleResponse(resp *http.Response) (Endpoints // NewListPager - Lists all Endpoints in a Storage Mover. // -// Generated from API version 2022-07-01-preview +// Generated from API version 2023-03-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - storageMoverName - The name of the Storage Mover resource. // - options - EndpointsClientListOptions contains the optional parameters for the EndpointsClient.NewListPager method. @@ -305,7 +305,7 @@ func (client *EndpointsClient) listCreateRequest(ctx context.Context, resourceGr return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-01-preview") + reqQP.Set("api-version", "2023-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -323,7 +323,7 @@ func (client *EndpointsClient) listHandleResponse(resp *http.Response) (Endpoint // Update - Updates properties for an Endpoint resource. Properties not specified in the request body will be unchanged. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-07-01-preview +// Generated from API version 2023-03-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - storageMoverName - The name of the Storage Mover resource. // - endpointName - The name of the Endpoint resource. @@ -367,7 +367,7 @@ func (client *EndpointsClient) updateCreateRequest(ctx context.Context, resource return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-01-preview") + reqQP.Set("api-version", "2023-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, endpoint) diff --git a/sdk/resourcemanager/storagemover/armstoragemover/endpoints_client_example_test.go b/sdk/resourcemanager/storagemover/armstoragemover/endpoints_client_example_test.go index 1874eabfa08f..f144189af811 100644 --- a/sdk/resourcemanager/storagemover/armstoragemover/endpoints_client_example_test.go +++ b/sdk/resourcemanager/storagemover/armstoragemover/endpoints_client_example_test.go @@ -18,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storagemover/armstoragemover" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3d7a3848106b831a4a7f46976fe38aa605c4f44d/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/Endpoints_List.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/241e964afe675a7be98aa6a2e171a3c5f830816c/specification/storagemover/resource-manager/Microsoft.StorageMover/stable/2023-03-01/examples/Endpoints_List.json func ExampleEndpointsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -80,7 +80,7 @@ func ExampleEndpointsClient_NewListPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3d7a3848106b831a4a7f46976fe38aa605c4f44d/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/Endpoints_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/241e964afe675a7be98aa6a2e171a3c5f830816c/specification/storagemover/resource-manager/Microsoft.StorageMover/stable/2023-03-01/examples/Endpoints_Get.json func ExampleEndpointsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -111,7 +111,7 @@ func ExampleEndpointsClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3d7a3848106b831a4a7f46976fe38aa605c4f44d/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/Endpoints_CreateOrUpdate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/241e964afe675a7be98aa6a2e171a3c5f830816c/specification/storagemover/resource-manager/Microsoft.StorageMover/stable/2023-03-01/examples/Endpoints_CreateOrUpdate.json func ExampleEndpointsClient_CreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -149,7 +149,7 @@ func ExampleEndpointsClient_CreateOrUpdate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3d7a3848106b831a4a7f46976fe38aa605c4f44d/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/Endpoints_Update.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/241e964afe675a7be98aa6a2e171a3c5f830816c/specification/storagemover/resource-manager/Microsoft.StorageMover/stable/2023-03-01/examples/Endpoints_Update.json func ExampleEndpointsClient_Update() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -184,7 +184,7 @@ func ExampleEndpointsClient_Update() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3d7a3848106b831a4a7f46976fe38aa605c4f44d/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/Endpoints_Delete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/241e964afe675a7be98aa6a2e171a3c5f830816c/specification/storagemover/resource-manager/Microsoft.StorageMover/stable/2023-03-01/examples/Endpoints_Delete.json func ExampleEndpointsClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/storagemover/armstoragemover/jobdefinitions_client.go b/sdk/resourcemanager/storagemover/armstoragemover/jobdefinitions_client.go index 75b9c7d37ec3..a5ae67d657b8 100644 --- a/sdk/resourcemanager/storagemover/armstoragemover/jobdefinitions_client.go +++ b/sdk/resourcemanager/storagemover/armstoragemover/jobdefinitions_client.go @@ -59,7 +59,7 @@ func NewJobDefinitionsClient(subscriptionID string, credential azcore.TokenCrede // data transfer. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-07-01-preview +// Generated from API version 2023-03-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - storageMoverName - The name of the Storage Mover resource. // - projectName - The name of the Project resource. @@ -109,7 +109,7 @@ func (client *JobDefinitionsClient) createOrUpdateCreateRequest(ctx context.Cont return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-01-preview") + reqQP.Set("api-version", "2023-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, jobDefinition) @@ -127,7 +127,7 @@ func (client *JobDefinitionsClient) createOrUpdateHandleResponse(resp *http.Resp // BeginDelete - Deletes a Job Definition resource. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-07-01-preview +// Generated from API version 2023-03-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - storageMoverName - The name of the Storage Mover resource. // - projectName - The name of the Project resource. @@ -151,7 +151,7 @@ func (client *JobDefinitionsClient) BeginDelete(ctx context.Context, resourceGro // Delete - Deletes a Job Definition resource. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-07-01-preview +// Generated from API version 2023-03-01 func (client *JobDefinitionsClient) deleteOperation(ctx context.Context, resourceGroupName string, storageMoverName string, projectName string, jobDefinitionName string, options *JobDefinitionsClientBeginDeleteOptions) (*http.Response, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, storageMoverName, projectName, jobDefinitionName, options) if err != nil { @@ -195,7 +195,7 @@ func (client *JobDefinitionsClient) deleteCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-01-preview") + reqQP.Set("api-version", "2023-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -204,7 +204,7 @@ func (client *JobDefinitionsClient) deleteCreateRequest(ctx context.Context, res // Get - Gets a Job Definition resource. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-07-01-preview +// Generated from API version 2023-03-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - storageMoverName - The name of the Storage Mover resource. // - projectName - The name of the Project resource. @@ -253,7 +253,7 @@ func (client *JobDefinitionsClient) getCreateRequest(ctx context.Context, resour return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-01-preview") + reqQP.Set("api-version", "2023-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -270,7 +270,7 @@ func (client *JobDefinitionsClient) getHandleResponse(resp *http.Response) (JobD // NewListPager - Lists all Job Definitions in a Project. // -// Generated from API version 2022-07-01-preview +// Generated from API version 2023-03-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - storageMoverName - The name of the Storage Mover resource. // - projectName - The name of the Project resource. @@ -327,7 +327,7 @@ func (client *JobDefinitionsClient) listCreateRequest(ctx context.Context, resou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-01-preview") + reqQP.Set("api-version", "2023-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -345,7 +345,7 @@ func (client *JobDefinitionsClient) listHandleResponse(resp *http.Response) (Job // StartJob - Requests an Agent to start a new instance of this Job Definition, generating a new Job Run resource. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-07-01-preview +// Generated from API version 2023-03-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - storageMoverName - The name of the Storage Mover resource. // - projectName - The name of the Project resource. @@ -394,7 +394,7 @@ func (client *JobDefinitionsClient) startJobCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-01-preview") + reqQP.Set("api-version", "2023-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -412,7 +412,7 @@ func (client *JobDefinitionsClient) startJobHandleResponse(resp *http.Response) // StopJob - Requests the Agent of any active instance of this Job Definition to stop. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-07-01-preview +// Generated from API version 2023-03-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - storageMoverName - The name of the Storage Mover resource. // - projectName - The name of the Project resource. @@ -461,7 +461,7 @@ func (client *JobDefinitionsClient) stopJobCreateRequest(ctx context.Context, re return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-01-preview") + reqQP.Set("api-version", "2023-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -479,7 +479,7 @@ func (client *JobDefinitionsClient) stopJobHandleResponse(resp *http.Response) ( // Update - Updates properties for a Job Definition resource. Properties not specified in the request body will be unchanged. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-07-01-preview +// Generated from API version 2023-03-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - storageMoverName - The name of the Storage Mover resource. // - projectName - The name of the Project resource. @@ -528,7 +528,7 @@ func (client *JobDefinitionsClient) updateCreateRequest(ctx context.Context, res return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-01-preview") + reqQP.Set("api-version", "2023-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, jobDefinition) diff --git a/sdk/resourcemanager/storagemover/armstoragemover/jobdefinitions_client_example_test.go b/sdk/resourcemanager/storagemover/armstoragemover/jobdefinitions_client_example_test.go index d350519c142e..549ea29de22b 100644 --- a/sdk/resourcemanager/storagemover/armstoragemover/jobdefinitions_client_example_test.go +++ b/sdk/resourcemanager/storagemover/armstoragemover/jobdefinitions_client_example_test.go @@ -18,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storagemover/armstoragemover" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3d7a3848106b831a4a7f46976fe38aa605c4f44d/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/JobDefinitions_List.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/241e964afe675a7be98aa6a2e171a3c5f830816c/specification/storagemover/resource-manager/Microsoft.StorageMover/stable/2023-03-01/examples/JobDefinitions_List.json func ExampleJobDefinitionsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -105,7 +105,7 @@ func ExampleJobDefinitionsClient_NewListPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3d7a3848106b831a4a7f46976fe38aa605c4f44d/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/JobDefinitions_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/241e964afe675a7be98aa6a2e171a3c5f830816c/specification/storagemover/resource-manager/Microsoft.StorageMover/stable/2023-03-01/examples/JobDefinitions_Get.json func ExampleJobDefinitionsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -142,7 +142,7 @@ func ExampleJobDefinitionsClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3d7a3848106b831a4a7f46976fe38aa605c4f44d/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/JobDefinitions_CreateOrUpdate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/241e964afe675a7be98aa6a2e171a3c5f830816c/specification/storagemover/resource-manager/Microsoft.StorageMover/stable/2023-03-01/examples/JobDefinitions_CreateOrUpdate.json func ExampleJobDefinitionsClient_CreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -189,7 +189,7 @@ func ExampleJobDefinitionsClient_CreateOrUpdate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3d7a3848106b831a4a7f46976fe38aa605c4f44d/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/JobDefinitions_Update.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/241e964afe675a7be98aa6a2e171a3c5f830816c/specification/storagemover/resource-manager/Microsoft.StorageMover/stable/2023-03-01/examples/JobDefinitions_Update.json func ExampleJobDefinitionsClient_Update() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -231,7 +231,7 @@ func ExampleJobDefinitionsClient_Update() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3d7a3848106b831a4a7f46976fe38aa605c4f44d/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/JobDefinitions_Delete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/241e964afe675a7be98aa6a2e171a3c5f830816c/specification/storagemover/resource-manager/Microsoft.StorageMover/stable/2023-03-01/examples/JobDefinitions_Delete.json func ExampleJobDefinitionsClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -252,7 +252,7 @@ func ExampleJobDefinitionsClient_BeginDelete() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3d7a3848106b831a4a7f46976fe38aa605c4f44d/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/JobDefinitions_StartJob.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/241e964afe675a7be98aa6a2e171a3c5f830816c/specification/storagemover/resource-manager/Microsoft.StorageMover/stable/2023-03-01/examples/JobDefinitions_StartJob.json func ExampleJobDefinitionsClient_StartJob() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -275,7 +275,7 @@ func ExampleJobDefinitionsClient_StartJob() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3d7a3848106b831a4a7f46976fe38aa605c4f44d/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/JobDefinitions_StopJob.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/241e964afe675a7be98aa6a2e171a3c5f830816c/specification/storagemover/resource-manager/Microsoft.StorageMover/stable/2023-03-01/examples/JobDefinitions_StopJob.json func ExampleJobDefinitionsClient_StopJob() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/storagemover/armstoragemover/jobruns_client.go b/sdk/resourcemanager/storagemover/armstoragemover/jobruns_client.go index 8e828e4887a6..b2bcea433208 100644 --- a/sdk/resourcemanager/storagemover/armstoragemover/jobruns_client.go +++ b/sdk/resourcemanager/storagemover/armstoragemover/jobruns_client.go @@ -58,7 +58,7 @@ func NewJobRunsClient(subscriptionID string, credential azcore.TokenCredential, // Get - Gets a Job Run resource. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-07-01-preview +// Generated from API version 2023-03-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - storageMoverName - The name of the Storage Mover resource. // - projectName - The name of the Project resource. @@ -112,7 +112,7 @@ func (client *JobRunsClient) getCreateRequest(ctx context.Context, resourceGroup return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-01-preview") + reqQP.Set("api-version", "2023-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -129,7 +129,7 @@ func (client *JobRunsClient) getHandleResponse(resp *http.Response) (JobRunsClie // NewListPager - Lists all Job Runs in a Job Definition. // -// Generated from API version 2022-07-01-preview +// Generated from API version 2023-03-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - storageMoverName - The name of the Storage Mover resource. // - projectName - The name of the Project resource. @@ -191,7 +191,7 @@ func (client *JobRunsClient) listCreateRequest(ctx context.Context, resourceGrou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-01-preview") + reqQP.Set("api-version", "2023-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/storagemover/armstoragemover/jobruns_client_example_test.go b/sdk/resourcemanager/storagemover/armstoragemover/jobruns_client_example_test.go index 87eac72ff253..d68540897cc6 100644 --- a/sdk/resourcemanager/storagemover/armstoragemover/jobruns_client_example_test.go +++ b/sdk/resourcemanager/storagemover/armstoragemover/jobruns_client_example_test.go @@ -17,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storagemover/armstoragemover" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3d7a3848106b831a4a7f46976fe38aa605c4f44d/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/JobRuns_List.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/241e964afe675a7be98aa6a2e171a3c5f830816c/specification/storagemover/resource-manager/Microsoft.StorageMover/stable/2023-03-01/examples/JobRuns_List.json func ExampleJobRunsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -150,7 +150,7 @@ func ExampleJobRunsClient_NewListPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3d7a3848106b831a4a7f46976fe38aa605c4f44d/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/JobRuns_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/241e964afe675a7be98aa6a2e171a3c5f830816c/specification/storagemover/resource-manager/Microsoft.StorageMover/stable/2023-03-01/examples/JobRuns_Get.json func ExampleJobRunsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/storagemover/armstoragemover/operations_client.go b/sdk/resourcemanager/storagemover/armstoragemover/operations_client.go index c61964df5a4f..22b1c938da8f 100644 --- a/sdk/resourcemanager/storagemover/armstoragemover/operations_client.go +++ b/sdk/resourcemanager/storagemover/armstoragemover/operations_client.go @@ -51,7 +51,7 @@ func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientO // NewListPager - Lists all the supported operations for the Azure Storage Mover REST API. // -// Generated from API version 2022-07-01-preview +// Generated from API version 2023-03-01 // - options - OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method. func (client *OperationsClient) NewListPager(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse] { return runtime.NewPager(runtime.PagingHandler[OperationsClientListResponse]{ @@ -89,7 +89,7 @@ func (client *OperationsClient) listCreateRequest(ctx context.Context, options * return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-01-preview") + reqQP.Set("api-version", "2023-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil diff --git a/sdk/resourcemanager/storagemover/armstoragemover/operations_client_example_test.go b/sdk/resourcemanager/storagemover/armstoragemover/operations_client_example_test.go index bccd61a46fe6..3e5ad86981c6 100644 --- a/sdk/resourcemanager/storagemover/armstoragemover/operations_client_example_test.go +++ b/sdk/resourcemanager/storagemover/armstoragemover/operations_client_example_test.go @@ -17,7 +17,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storagemover/armstoragemover" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3d7a3848106b831a4a7f46976fe38aa605c4f44d/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/Operations_List.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/241e964afe675a7be98aa6a2e171a3c5f830816c/specification/storagemover/resource-manager/Microsoft.StorageMover/stable/2023-03-01/examples/Operations_List.json func ExampleOperationsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/storagemover/armstoragemover/projects_client.go b/sdk/resourcemanager/storagemover/armstoragemover/projects_client.go index e0f3e6f2f5c9..fa8ca4aab2d3 100644 --- a/sdk/resourcemanager/storagemover/armstoragemover/projects_client.go +++ b/sdk/resourcemanager/storagemover/armstoragemover/projects_client.go @@ -58,7 +58,7 @@ func NewProjectsClient(subscriptionID string, credential azcore.TokenCredential, // CreateOrUpdate - Creates or updates a Project resource, which is a logical grouping of related jobs. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-07-01-preview +// Generated from API version 2023-03-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - storageMoverName - The name of the Storage Mover resource. // - projectName - The name of the Project resource. @@ -102,7 +102,7 @@ func (client *ProjectsClient) createOrUpdateCreateRequest(ctx context.Context, r return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-01-preview") + reqQP.Set("api-version", "2023-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, project) @@ -120,7 +120,7 @@ func (client *ProjectsClient) createOrUpdateHandleResponse(resp *http.Response) // BeginDelete - Deletes a Project resource. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-07-01-preview +// Generated from API version 2023-03-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - storageMoverName - The name of the Storage Mover resource. // - projectName - The name of the Project resource. @@ -142,7 +142,7 @@ func (client *ProjectsClient) BeginDelete(ctx context.Context, resourceGroupName // Delete - Deletes a Project resource. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-07-01-preview +// Generated from API version 2023-03-01 func (client *ProjectsClient) deleteOperation(ctx context.Context, resourceGroupName string, storageMoverName string, projectName string, options *ProjectsClientBeginDeleteOptions) (*http.Response, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, storageMoverName, projectName, options) if err != nil { @@ -182,7 +182,7 @@ func (client *ProjectsClient) deleteCreateRequest(ctx context.Context, resourceG return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-01-preview") + reqQP.Set("api-version", "2023-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -191,7 +191,7 @@ func (client *ProjectsClient) deleteCreateRequest(ctx context.Context, resourceG // Get - Gets a Project resource. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-07-01-preview +// Generated from API version 2023-03-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - storageMoverName - The name of the Storage Mover resource. // - projectName - The name of the Project resource. @@ -235,7 +235,7 @@ func (client *ProjectsClient) getCreateRequest(ctx context.Context, resourceGrou return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-01-preview") + reqQP.Set("api-version", "2023-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -252,7 +252,7 @@ func (client *ProjectsClient) getHandleResponse(resp *http.Response) (ProjectsCl // NewListPager - Lists all Projects in a Storage Mover. // -// Generated from API version 2022-07-01-preview +// Generated from API version 2023-03-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - storageMoverName - The name of the Storage Mover resource. // - options - ProjectsClientListOptions contains the optional parameters for the ProjectsClient.NewListPager method. @@ -304,7 +304,7 @@ func (client *ProjectsClient) listCreateRequest(ctx context.Context, resourceGro return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-01-preview") + reqQP.Set("api-version", "2023-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -322,7 +322,7 @@ func (client *ProjectsClient) listHandleResponse(resp *http.Response) (ProjectsC // Update - Updates properties for a Project resource. Properties not specified in the request body will be unchanged. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-07-01-preview +// Generated from API version 2023-03-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - storageMoverName - The name of the Storage Mover resource. // - projectName - The name of the Project resource. @@ -366,7 +366,7 @@ func (client *ProjectsClient) updateCreateRequest(ctx context.Context, resourceG return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-01-preview") + reqQP.Set("api-version", "2023-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, project) diff --git a/sdk/resourcemanager/storagemover/armstoragemover/projects_client_example_test.go b/sdk/resourcemanager/storagemover/armstoragemover/projects_client_example_test.go index a7519a23c381..0e8b22322c6f 100644 --- a/sdk/resourcemanager/storagemover/armstoragemover/projects_client_example_test.go +++ b/sdk/resourcemanager/storagemover/armstoragemover/projects_client_example_test.go @@ -18,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storagemover/armstoragemover" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3d7a3848106b831a4a7f46976fe38aa605c4f44d/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/Projects_List.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/241e964afe675a7be98aa6a2e171a3c5f830816c/specification/storagemover/resource-manager/Microsoft.StorageMover/stable/2023-03-01/examples/Projects_List.json func ExampleProjectsClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -70,7 +70,7 @@ func ExampleProjectsClient_NewListPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3d7a3848106b831a4a7f46976fe38aa605c4f44d/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/Projects_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/241e964afe675a7be98aa6a2e171a3c5f830816c/specification/storagemover/resource-manager/Microsoft.StorageMover/stable/2023-03-01/examples/Projects_Get.json func ExampleProjectsClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -98,7 +98,7 @@ func ExampleProjectsClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3d7a3848106b831a4a7f46976fe38aa605c4f44d/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/Projects_CreateOrUpdate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/241e964afe675a7be98aa6a2e171a3c5f830816c/specification/storagemover/resource-manager/Microsoft.StorageMover/stable/2023-03-01/examples/Projects_CreateOrUpdate.json func ExampleProjectsClient_CreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -130,7 +130,7 @@ func ExampleProjectsClient_CreateOrUpdate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3d7a3848106b831a4a7f46976fe38aa605c4f44d/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/Projects_Update.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/241e964afe675a7be98aa6a2e171a3c5f830816c/specification/storagemover/resource-manager/Microsoft.StorageMover/stable/2023-03-01/examples/Projects_Update.json func ExampleProjectsClient_Update() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -162,7 +162,7 @@ func ExampleProjectsClient_Update() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3d7a3848106b831a4a7f46976fe38aa605c4f44d/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/Projects_Delete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/241e964afe675a7be98aa6a2e171a3c5f830816c/specification/storagemover/resource-manager/Microsoft.StorageMover/stable/2023-03-01/examples/Projects_Delete.json func ExampleProjectsClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { diff --git a/sdk/resourcemanager/storagemover/armstoragemover/storagemovers_client.go b/sdk/resourcemanager/storagemover/armstoragemover/storagemovers_client.go index 978b5ce469f3..33ef845d4395 100644 --- a/sdk/resourcemanager/storagemover/armstoragemover/storagemovers_client.go +++ b/sdk/resourcemanager/storagemover/armstoragemover/storagemovers_client.go @@ -58,7 +58,7 @@ func NewStorageMoversClient(subscriptionID string, credential azcore.TokenCreden // CreateOrUpdate - Creates or updates a top-level Storage Mover resource. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-07-01-preview +// Generated from API version 2023-03-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - storageMoverName - The name of the Storage Mover resource. // - options - StorageMoversClientCreateOrUpdateOptions contains the optional parameters for the StorageMoversClient.CreateOrUpdate @@ -98,7 +98,7 @@ func (client *StorageMoversClient) createOrUpdateCreateRequest(ctx context.Conte return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-01-preview") + reqQP.Set("api-version", "2023-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, storageMover) @@ -116,7 +116,7 @@ func (client *StorageMoversClient) createOrUpdateHandleResponse(resp *http.Respo // BeginDelete - Deletes a Storage Mover resource. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-07-01-preview +// Generated from API version 2023-03-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - storageMoverName - The name of the Storage Mover resource. // - options - StorageMoversClientBeginDeleteOptions contains the optional parameters for the StorageMoversClient.BeginDelete @@ -138,7 +138,7 @@ func (client *StorageMoversClient) BeginDelete(ctx context.Context, resourceGrou // Delete - Deletes a Storage Mover resource. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-07-01-preview +// Generated from API version 2023-03-01 func (client *StorageMoversClient) deleteOperation(ctx context.Context, resourceGroupName string, storageMoverName string, options *StorageMoversClientBeginDeleteOptions) (*http.Response, error) { req, err := client.deleteCreateRequest(ctx, resourceGroupName, storageMoverName, options) if err != nil { @@ -174,7 +174,7 @@ func (client *StorageMoversClient) deleteCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-01-preview") + reqQP.Set("api-version", "2023-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -183,7 +183,7 @@ func (client *StorageMoversClient) deleteCreateRequest(ctx context.Context, reso // Get - Gets a Storage Mover resource. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-07-01-preview +// Generated from API version 2023-03-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - storageMoverName - The name of the Storage Mover resource. // - options - StorageMoversClientGetOptions contains the optional parameters for the StorageMoversClient.Get method. @@ -222,7 +222,7 @@ func (client *StorageMoversClient) getCreateRequest(ctx context.Context, resourc return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-01-preview") + reqQP.Set("api-version", "2023-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -239,7 +239,7 @@ func (client *StorageMoversClient) getHandleResponse(resp *http.Response) (Stora // NewListPager - Lists all Storage Movers in a resource group. // -// Generated from API version 2022-07-01-preview +// Generated from API version 2023-03-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - options - StorageMoversClientListOptions contains the optional parameters for the StorageMoversClient.NewListPager method. func (client *StorageMoversClient) NewListPager(resourceGroupName string, options *StorageMoversClientListOptions) *runtime.Pager[StorageMoversClientListResponse] { @@ -286,7 +286,7 @@ func (client *StorageMoversClient) listCreateRequest(ctx context.Context, resour return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-01-preview") + reqQP.Set("api-version", "2023-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -303,7 +303,7 @@ func (client *StorageMoversClient) listHandleResponse(resp *http.Response) (Stor // NewListBySubscriptionPager - Lists all Storage Movers in a subscription. // -// Generated from API version 2022-07-01-preview +// Generated from API version 2023-03-01 // - options - StorageMoversClientListBySubscriptionOptions contains the optional parameters for the StorageMoversClient.NewListBySubscriptionPager // method. func (client *StorageMoversClient) NewListBySubscriptionPager(options *StorageMoversClientListBySubscriptionOptions) *runtime.Pager[StorageMoversClientListBySubscriptionResponse] { @@ -346,7 +346,7 @@ func (client *StorageMoversClient) listBySubscriptionCreateRequest(ctx context.C return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-01-preview") + reqQP.Set("api-version", "2023-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, nil @@ -364,7 +364,7 @@ func (client *StorageMoversClient) listBySubscriptionHandleResponse(resp *http.R // Update - Updates properties for a Storage Mover resource. Properties not specified in the request body will be unchanged. // If the operation fails it returns an *azcore.ResponseError type. // -// Generated from API version 2022-07-01-preview +// Generated from API version 2023-03-01 // - resourceGroupName - The name of the resource group. The name is case insensitive. // - storageMoverName - The name of the Storage Mover resource. // - options - StorageMoversClientUpdateOptions contains the optional parameters for the StorageMoversClient.Update method. @@ -403,7 +403,7 @@ func (client *StorageMoversClient) updateCreateRequest(ctx context.Context, reso return nil, err } reqQP := req.Raw().URL.Query() - reqQP.Set("api-version", "2022-07-01-preview") + reqQP.Set("api-version", "2023-03-01") req.Raw().URL.RawQuery = reqQP.Encode() req.Raw().Header["Accept"] = []string{"application/json"} return req, runtime.MarshalAsJSON(req, storageMover) diff --git a/sdk/resourcemanager/storagemover/armstoragemover/storagemovers_client_example_test.go b/sdk/resourcemanager/storagemover/armstoragemover/storagemovers_client_example_test.go index 5b1ab3196689..af5612a93f02 100644 --- a/sdk/resourcemanager/storagemover/armstoragemover/storagemovers_client_example_test.go +++ b/sdk/resourcemanager/storagemover/armstoragemover/storagemovers_client_example_test.go @@ -18,7 +18,7 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/storagemover/armstoragemover" ) -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3d7a3848106b831a4a7f46976fe38aa605c4f44d/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/StorageMovers_ListBySubscription.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/241e964afe675a7be98aa6a2e171a3c5f830816c/specification/storagemover/resource-manager/Microsoft.StorageMover/stable/2023-03-01/examples/StorageMovers_ListBySubscription.json func ExampleStorageMoversClient_NewListBySubscriptionPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -109,7 +109,7 @@ func ExampleStorageMoversClient_NewListBySubscriptionPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3d7a3848106b831a4a7f46976fe38aa605c4f44d/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/StorageMovers_List.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/241e964afe675a7be98aa6a2e171a3c5f830816c/specification/storagemover/resource-manager/Microsoft.StorageMover/stable/2023-03-01/examples/StorageMovers_List.json func ExampleStorageMoversClient_NewListPager() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -200,7 +200,7 @@ func ExampleStorageMoversClient_NewListPager() { } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3d7a3848106b831a4a7f46976fe38aa605c4f44d/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/StorageMovers_Get.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/241e964afe675a7be98aa6a2e171a3c5f830816c/specification/storagemover/resource-manager/Microsoft.StorageMover/stable/2023-03-01/examples/StorageMovers_Get.json func ExampleStorageMoversClient_Get() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -241,7 +241,7 @@ func ExampleStorageMoversClient_Get() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3d7a3848106b831a4a7f46976fe38aa605c4f44d/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/StorageMovers_CreateOrUpdate.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/241e964afe675a7be98aa6a2e171a3c5f830816c/specification/storagemover/resource-manager/Microsoft.StorageMover/stable/2023-03-01/examples/StorageMovers_CreateOrUpdate.json func ExampleStorageMoversClient_CreateOrUpdate() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -291,7 +291,7 @@ func ExampleStorageMoversClient_CreateOrUpdate() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3d7a3848106b831a4a7f46976fe38aa605c4f44d/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/StorageMovers_Update.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/241e964afe675a7be98aa6a2e171a3c5f830816c/specification/storagemover/resource-manager/Microsoft.StorageMover/stable/2023-03-01/examples/StorageMovers_Update.json func ExampleStorageMoversClient_Update() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { @@ -336,7 +336,7 @@ func ExampleStorageMoversClient_Update() { // } } -// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3d7a3848106b831a4a7f46976fe38aa605c4f44d/specification/storagemover/resource-manager/Microsoft.StorageMover/preview/2022-07-01-preview/examples/StorageMovers_Delete.json +// Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/241e964afe675a7be98aa6a2e171a3c5f830816c/specification/storagemover/resource-manager/Microsoft.StorageMover/stable/2023-03-01/examples/StorageMovers_Delete.json func ExampleStorageMoversClient_BeginDelete() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { From ba84713723a75d285cb8d6ef715d84b5e90cc679 Mon Sep 17 00:00:00 2001 From: Richard Park <51494936+richardpark-msft@users.noreply.github.com> Date: Tue, 7 Mar 2023 10:42:15 -0800 Subject: [PATCH 077/107] [azservicebus,azeventhubs] Fixing issue where $cbs link being incompletely closed prevented the connection from recovering (#20334) You're only allowed to have one Sender+Receiver for the $cbs endpoint. In some cases, where there are connection failures or link cleanup is cancelled it's possible for the link to remain open. The only way to fix this is to restart the connection. Fixes #19504 Likely related to dapr/components-contrib/issues/2617 --- sdk/messaging/azeventhubs/CHANGELOG.md | 5 +- sdk/messaging/azeventhubs/internal/cbs.go | 9 +++ sdk/messaging/azeventhubs/internal/errors.go | 7 ++ .../azeventhubs/internal/links_test.go | 68 +++++++++++++++++++ .../azeventhubs/internal/test/test_helpers.go | 6 +- sdk/messaging/azservicebus/CHANGELOG.md | 12 ++-- .../azservicebus/internal/amqpLinks_test.go | 52 +++++++++++++- sdk/messaging/azservicebus/internal/cbs.go | 9 +++ sdk/messaging/azservicebus/internal/errors.go | 7 ++ 9 files changed, 163 insertions(+), 12 deletions(-) create mode 100644 sdk/messaging/azeventhubs/internal/links_test.go diff --git a/sdk/messaging/azeventhubs/CHANGELOG.md b/sdk/messaging/azeventhubs/CHANGELOG.md index 1563ff9d6774..8af3752a2309 100644 --- a/sdk/messaging/azeventhubs/CHANGELOG.md +++ b/sdk/messaging/azeventhubs/CHANGELOG.md @@ -1,6 +1,6 @@ # Release History -## 0.6.0 (Unreleased) +## 0.6.0 (2023-03-07) ### Features Added @@ -14,7 +14,8 @@ ### Bugs Fixed -### Other Changes +- Recover the connection when the $cbs Receiver/Sender is not closed properly. This would cause + clients to return an error saying "$cbs node has already been opened." (PR#20334) ## 0.5.0 (2023-02-07) diff --git a/sdk/messaging/azeventhubs/internal/cbs.go b/sdk/messaging/azeventhubs/internal/cbs.go index ae3aa6c359b6..5148e127a783 100644 --- a/sdk/messaging/azeventhubs/internal/cbs.go +++ b/sdk/messaging/azeventhubs/internal/cbs.go @@ -7,6 +7,7 @@ import ( "context" "errors" + "github.com/Azure/azure-sdk-for-go/sdk/internal/log" azlog "github.com/Azure/azure-sdk-for-go/sdk/internal/log" "github.com/Azure/azure-sdk-for-go/sdk/messaging/azeventhubs/internal/amqpwrap" "github.com/Azure/azure-sdk-for-go/sdk/messaging/azeventhubs/internal/auth" @@ -35,6 +36,14 @@ func NegotiateClaim(ctx context.Context, audience string, conn amqpwrap.AMQPClie }) if err != nil { + // In some circumstances we can end up in a situation where the link closing was cancelled + // or interrupted, leaving $cbs still open by some dangling receiver or sender. The only way + // to fix this is to restart the connection. + if IsNotAllowedError(err) { + log.Writef(exported.EventAuth, "Not allowed to open, connection will be reset: %s", err) + return errConnResetNeeded + } + return err } diff --git a/sdk/messaging/azeventhubs/internal/errors.go b/sdk/messaging/azeventhubs/internal/errors.go index 465b16165189..ae36ae41b8dd 100644 --- a/sdk/messaging/azeventhubs/internal/errors.go +++ b/sdk/messaging/azeventhubs/internal/errors.go @@ -323,6 +323,13 @@ func IsErrNotFound(err error) bool { return ok } +func IsNotAllowedError(err error) bool { + var e *amqp.Error + + return errors.As(err, &e) && + e.Condition == amqp.ErrorNotAllowed +} + func (e ErrConnectionClosed) Error() string { return fmt.Sprintf("the connection has been closed: %s", string(e)) } diff --git a/sdk/messaging/azeventhubs/internal/links_test.go b/sdk/messaging/azeventhubs/internal/links_test.go new file mode 100644 index 000000000000..5170eca157b8 --- /dev/null +++ b/sdk/messaging/azeventhubs/internal/links_test.go @@ -0,0 +1,68 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package internal + +import ( + "context" + "fmt" + "testing" + "time" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/messaging/azeventhubs/internal/amqpwrap" + "github.com/Azure/azure-sdk-for-go/sdk/messaging/azeventhubs/internal/exported" + "github.com/Azure/azure-sdk-for-go/sdk/messaging/azeventhubs/internal/go-amqp" + "github.com/Azure/azure-sdk-for-go/sdk/messaging/azeventhubs/internal/test" + "github.com/stretchr/testify/require" +) + +func TestLinksCBSLinkStillOpen(t *testing.T) { + // we're not going to use this client for these tests. + testParams := test.GetConnectionParamsForTest(t) + ns, err := NewNamespace(NamespaceWithConnectionString(testParams.ConnectionString)) + require.NoError(t, err) + + defer func() { _ = ns.Close(context.Background(), true) }() + + session, oldConnID, err := ns.NewAMQPSession(context.Background()) + require.NoError(t, err) + + // opening a Sender to the $cbs endpoint. This endpoint can only be opened by a single + // sender/receiver pair in a connection. + _, err = session.NewSender(context.Background(), "$cbs", nil) + require.NoError(t, err) + + newLinkFn := func(ctx context.Context, session amqpwrap.AMQPSession, entityPath string) (AMQPSenderCloser, error) { + return session.NewSender(ctx, entityPath, &amqp.SenderOptions{ + SettlementMode: to.Ptr(amqp.ModeMixed), + RequestedReceiverSettleMode: to.Ptr(amqp.ModeFirst), + IgnoreDispositionErrors: true, + }) + } + + formatEntityPath := func(partitionID string) string { + return fmt.Sprintf("%s/Partitions/%s", testParams.EventHubName, partitionID) + } + + links := NewLinks(ns, fmt.Sprintf("%s/$management", testParams.EventHubName), formatEntityPath, newLinkFn) + + var lwid LinkWithID[AMQPSenderCloser] + + err = links.Retry(context.Background(), exported.EventConn, "test", "0", exported.RetryOptions{ + RetryDelay: -1, + MaxRetryDelay: time.Millisecond, + }, func(ctx context.Context, innerLWID LinkWithID[AMQPSenderCloser]) error { + lwid = innerLWID + return nil + }) + require.NoError(t, err) + + defer func() { + err := links.Close(context.Background()) + require.NoError(t, err) + }() + + require.NoError(t, err) + require.Equal(t, oldConnID+1, lwid.ConnID, "Connection gets incremented since it had to be reset") +} diff --git a/sdk/messaging/azeventhubs/internal/test/test_helpers.go b/sdk/messaging/azeventhubs/internal/test/test_helpers.go index 0ca9c0ce9a09..b3061b0bd7ba 100644 --- a/sdk/messaging/azeventhubs/internal/test/test_helpers.go +++ b/sdk/messaging/azeventhubs/internal/test/test_helpers.go @@ -101,7 +101,11 @@ type ConnectionParamsForTest struct { } func GetConnectionParamsForTest(t *testing.T) ConnectionParamsForTest { - _ = godotenv.Load() + if _, err := os.Stat("../.env"); err == nil { + _ = godotenv.Load("../.env") + } else { + _ = godotenv.Load() + } envVars := mustGetEnvironmentVars(t, []string{ "AZURE_SUBSCRIPTION_ID", diff --git a/sdk/messaging/azservicebus/CHANGELOG.md b/sdk/messaging/azservicebus/CHANGELOG.md index 81f58dc68b0e..1e1654af3df7 100644 --- a/sdk/messaging/azservicebus/CHANGELOG.md +++ b/sdk/messaging/azservicebus/CHANGELOG.md @@ -1,17 +1,13 @@ # Release History -## 1.2.1 (Unreleased) - -### Features Added - -### Breaking Changes +## 1.2.1 (2023-03-07) ### Bugs Fixed -- Fixing issues where we could over-request credit (#19965) or allow for negative/zero credits (#19743), both of +- Prevent over-requesting credit (#19965) or requesting negative/zero credits (#19743), both of which could cause issues with go-amqp. (PR#19992) - -### Other Changes +- Recover the connection when the $cbs Receiver/Sender is not closed properly. This would cause + clients to return an error saying "$cbs node has already been opened." (PR#20334) ## 1.2.0 (2023-02-07) diff --git a/sdk/messaging/azservicebus/internal/amqpLinks_test.go b/sdk/messaging/azservicebus/internal/amqpLinks_test.go index 6be5525b2058..3ca376c29988 100644 --- a/sdk/messaging/azservicebus/internal/amqpLinks_test.go +++ b/sdk/messaging/azservicebus/internal/amqpLinks_test.go @@ -102,7 +102,7 @@ func TestAMQPLinksBasic(t *testing.T) { } func TestAMQPLinksLive(t *testing.T) { - // we're not going to use this client for tehse tests. + // we're not going to use this client for these tests. entityPath, cleanup := test.CreateExpiringQueue(t, nil) defer cleanup() @@ -174,6 +174,56 @@ func TestAMQPLinksLive(t *testing.T) { assertLinks(t, lwr) } +// TestAMQPLinksCBSLinkStillOpen makes sure we can recover from an incompletely +// closed $cbs link, which can happen if a user cancels and we can't properly close +// the link as a result. +func TestAMQPLinksCBSLinkStillOpen(t *testing.T) { + // we're not going to use this client for these tests. + entityPath, cleanup := test.CreateExpiringQueue(t, nil) + defer cleanup() + + cs := test.GetConnectionString(t) + ns, err := NewNamespace(NamespaceWithConnectionString(cs)) + require.NoError(t, err) + + defer func() { _ = ns.Close(false) }() + + session, oldConnID, err := ns.NewAMQPSession(context.Background()) + require.NoError(t, err) + + // opening a Sender to the $cbs endpoint. This endpoint can only be opened by a single + // sender/receiver pair in a connection. + _, err = session.NewSender(context.Background(), "$cbs", nil) + require.NoError(t, err) + + links := NewAMQPLinks(NewAMQPLinksArgs{ + NS: ns, + EntityPath: entityPath, + CreateLinkFunc: func(ctx context.Context, session amqpwrap.AMQPSession) (amqpwrap.AMQPSenderCloser, amqpwrap.AMQPReceiverCloser, error) { + return newLinksForAMQPLinksTest(entityPath, session) + }, + GetRecoveryKindFunc: GetRecoveryKind, + }) + + var lwid *LinksWithID + + err = links.Retry(context.Background(), exported.EventConn, "test", func(ctx context.Context, innerLwid *LinksWithID, args *utils.RetryFnArgs) error { + lwid = innerLwid + return nil + }, exported.RetryOptions{ + RetryDelay: -1, + MaxRetryDelay: time.Millisecond, + }) + + defer func() { + err := links.Close(context.Background(), true) + require.NoError(t, err) + }() + + require.NoError(t, err) + require.Equal(t, oldConnID+1, lwid.ID.Conn, "Connection gets incremented since it had to be reset") +} + func TestAMQPLinksLiveRecoverLink(t *testing.T) { // we're not going to use this client for these tests. entityPath, cleanup := test.CreateExpiringQueue(t, nil) diff --git a/sdk/messaging/azservicebus/internal/cbs.go b/sdk/messaging/azservicebus/internal/cbs.go index ffebbd6f8fb5..53ac8cbaf023 100644 --- a/sdk/messaging/azservicebus/internal/cbs.go +++ b/sdk/messaging/azservicebus/internal/cbs.go @@ -6,6 +6,7 @@ package internal import ( "context" + "github.com/Azure/azure-sdk-for-go/sdk/internal/log" azlog "github.com/Azure/azure-sdk-for-go/sdk/internal/log" "github.com/Azure/azure-sdk-for-go/sdk/messaging/azservicebus/internal/amqpwrap" "github.com/Azure/azure-sdk-for-go/sdk/messaging/azservicebus/internal/auth" @@ -31,6 +32,14 @@ func NegotiateClaim(ctx context.Context, audience string, conn amqpwrap.AMQPClie }) if err != nil { + // In some circumstances we can end up in a situation where the link closing was cancelled + // or interrupted, leaving $cbs still open by some dangling receiver or sender. The only way + // to fix this is to restart the connection. + if IsNotAllowedError(err) { + log.Writef(exported.EventAuth, "Not allowed to open, connection will be reset: %s", err) + return errConnResetNeeded + } + return err } diff --git a/sdk/messaging/azservicebus/internal/errors.go b/sdk/messaging/azservicebus/internal/errors.go index 9d4dfee4f92b..7edb849dd0a3 100644 --- a/sdk/messaging/azservicebus/internal/errors.go +++ b/sdk/messaging/azservicebus/internal/errors.go @@ -102,6 +102,13 @@ func IsDetachError(err error) bool { return errors.As(err, &de) } +func IsNotAllowedError(err error) bool { + var e *amqp.Error + + return errors.As(err, &e) && + e.Condition == amqp.ErrorNotAllowed +} + func IsCancelError(err error) bool { if err == nil { return false From 381a909310ee7bb50eab52e318ed22a4630082b9 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Tue, 7 Mar 2023 13:34:28 -0800 Subject: [PATCH 078/107] Add product slug for Web PubSub (#20351) To make sample script use correct product slug. Related PR: https://github.com/Azure/azure-sdk-for-net/pull/34618 Co-authored-by: JialinXin --- eng/common/scripts/Test-SampleMetadata.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/eng/common/scripts/Test-SampleMetadata.ps1 b/eng/common/scripts/Test-SampleMetadata.ps1 index fefe31a5b5a9..71c8972a8a36 100644 --- a/eng/common/scripts/Test-SampleMetadata.ps1 +++ b/eng/common/scripts/Test-SampleMetadata.ps1 @@ -321,6 +321,7 @@ begin { "azure-vpn-gateway", "azure-web-application-firewall", "azure-web-apps", + "azure-web-pubsub", "azure-webapp-containers", "blazor-server", "blazor-webassembly", From 44560303b72151c2e48eac6a6f1ee486eb476150 Mon Sep 17 00:00:00 2001 From: Ben Broderick Phillips Date: Tue, 7 Mar 2023 20:59:57 -0500 Subject: [PATCH 079/107] Support profile directory as top level directory for package properties (#20344) --- eng/scripts/Language-Settings.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/scripts/Language-Settings.ps1 b/eng/scripts/Language-Settings.ps1 index 97f5ac88c227..c3c2ab561886 100644 --- a/eng/scripts/Language-Settings.ps1 +++ b/eng/scripts/Language-Settings.ps1 @@ -39,7 +39,7 @@ function Get-GoModuleProperties($goModPath) $goModPath = $goModPath -replace "\\", "/" # We should keep this regex in sync with what is in the azure-sdk repo at https://github.com/Azure/azure-sdk/blob/main/eng/scripts/Query-Azure-Packages.ps1#L227 # The serviceName named capture group is unused but used in azure-sdk, so it's kept here for parity - if ($goModPath -match "(?sdk/(?(.*?(?[^/]+)/)?(?[^/]+$)))") + if ($goModPath -match "(?(sdk|profile)/(?(.*?(?[^/]+)/)?(?[^/]+$)))") { $modPath = $matches["modPath"] $modName = $matches["modName"] # We may need to start reading this from the go.mod file if the path and mod config start to differ From 944765c5b52c4fbf15e9834ef0118f07ef168d73 Mon Sep 17 00:00:00 2001 From: Richard Park <51494936+richardpark-msft@users.noreply.github.com> Date: Wed, 8 Mar 2023 06:52:30 -0800 Subject: [PATCH 080/107] [azservicebus,azeventhubs] Updating the chaos-mesh policies #20366 Updating the chaos-mesh policies so we don't set startingDeadlineSeconds and concurrencyPolicy to conflicting values. --- .../azeventhubs/internal/eh/stress/templates/deploy-job.yaml | 5 ++--- .../azservicebus/internal/stress/templates/deploy-job.yaml | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/sdk/messaging/azeventhubs/internal/eh/stress/templates/deploy-job.yaml b/sdk/messaging/azeventhubs/internal/eh/stress/templates/deploy-job.yaml index fdf67c1547da..0e4f5f61a744 100644 --- a/sdk/messaging/azeventhubs/internal/eh/stress/templates/deploy-job.yaml +++ b/sdk/messaging/azeventhubs/internal/eh/stress/templates/deploy-job.yaml @@ -48,10 +48,9 @@ kind: Schedule apiVersion: chaos-mesh.org/v1alpha1 spec: schedule: "*/5 * * * *" - startingDeadlineSeconds: null - concurrencyPolicy: Forbid - historyLimit: 1 type: NetworkChaos + historyLimit: 10 + concurrencyPolicy: Allow networkChaos: selector: namespaces: diff --git a/sdk/messaging/azservicebus/internal/stress/templates/deploy-job.yaml b/sdk/messaging/azservicebus/internal/stress/templates/deploy-job.yaml index f35d6708afc6..402b2be85e8d 100644 --- a/sdk/messaging/azservicebus/internal/stress/templates/deploy-job.yaml +++ b/sdk/messaging/azservicebus/internal/stress/templates/deploy-job.yaml @@ -38,10 +38,9 @@ kind: Schedule apiVersion: chaos-mesh.org/v1alpha1 spec: schedule: "*/5 * * * *" - startingDeadlineSeconds: null - concurrencyPolicy: Forbid - historyLimit: 1 type: NetworkChaos + historyLimit: 10 + concurrencyPolicy: Allow networkChaos: selector: namespaces: From 3e6709706215cbb52fb78250119fb0dd2bf3a938 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Wed, 8 Mar 2023 07:59:13 -0800 Subject: [PATCH 081/107] Increment version for messaging/azeventhubs releases (#20353) Increment package version after release of messaging/azeventhubs --- sdk/messaging/azeventhubs/CHANGELOG.md | 10 ++++++++++ sdk/messaging/azeventhubs/internal/constants.go | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/sdk/messaging/azeventhubs/CHANGELOG.md b/sdk/messaging/azeventhubs/CHANGELOG.md index 8af3752a2309..14a6148abffe 100644 --- a/sdk/messaging/azeventhubs/CHANGELOG.md +++ b/sdk/messaging/azeventhubs/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 0.6.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 0.6.0 (2023-03-07) ### Features Added diff --git a/sdk/messaging/azeventhubs/internal/constants.go b/sdk/messaging/azeventhubs/internal/constants.go index 81732fb64bce..ff479d1208bb 100644 --- a/sdk/messaging/azeventhubs/internal/constants.go +++ b/sdk/messaging/azeventhubs/internal/constants.go @@ -4,4 +4,4 @@ package internal // Version is the semantic version number -const Version = "v0.6.0" +const Version = "v0.6.1" From c6730ca7480f1a928986f3a3daa44a4960140566 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Wed, 8 Mar 2023 08:04:22 -0800 Subject: [PATCH 082/107] Increment version for messaging/azservicebus releases (#20354) Increment package version after release of messaging/azservicebus --- sdk/messaging/azservicebus/CHANGELOG.md | 10 ++++++++++ sdk/messaging/azservicebus/internal/constants.go | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/sdk/messaging/azservicebus/CHANGELOG.md b/sdk/messaging/azservicebus/CHANGELOG.md index 1e1654af3df7..a0d7c8db7aa5 100644 --- a/sdk/messaging/azservicebus/CHANGELOG.md +++ b/sdk/messaging/azservicebus/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.2.2 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.2.1 (2023-03-07) ### Bugs Fixed diff --git a/sdk/messaging/azservicebus/internal/constants.go b/sdk/messaging/azservicebus/internal/constants.go index 154eda8786c1..b69276862dc6 100644 --- a/sdk/messaging/azservicebus/internal/constants.go +++ b/sdk/messaging/azservicebus/internal/constants.go @@ -4,4 +4,4 @@ package internal // Version is the semantic version number -const Version = "v1.2.1" +const Version = "v1.2.2" From c0c5082e38787d552dab85da8385e06cd1aa77d1 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Wed, 8 Mar 2023 09:53:58 -0800 Subject: [PATCH 083/107] Increment version for containers/azcontainerregistry releases (#20345) Increment package version after release of containers/azcontainerregistry --- sdk/containers/azcontainerregistry/CHANGELOG.md | 10 ++++++++++ sdk/containers/azcontainerregistry/custom_constants.go | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/sdk/containers/azcontainerregistry/CHANGELOG.md b/sdk/containers/azcontainerregistry/CHANGELOG.md index 04f24ab427f8..5b9d6ef36b8d 100644 --- a/sdk/containers/azcontainerregistry/CHANGELOG.md +++ b/sdk/containers/azcontainerregistry/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 0.1.2 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 0.1.1 (2023-03-07) ### Bugs Fixed diff --git a/sdk/containers/azcontainerregistry/custom_constants.go b/sdk/containers/azcontainerregistry/custom_constants.go index e4ada50360aa..36fd007d2944 100644 --- a/sdk/containers/azcontainerregistry/custom_constants.go +++ b/sdk/containers/azcontainerregistry/custom_constants.go @@ -8,5 +8,5 @@ package azcontainerregistry const ( moduleName = "azcontainerregistry" - moduleVersion = "v0.1.1" + moduleVersion = "v0.1.2" ) From 7c989a90f3c8ad2008f51821e78a57a4d8d9ffb1 Mon Sep 17 00:00:00 2001 From: Joel Hendrix Date: Wed, 8 Mar 2023 12:53:22 -0800 Subject: [PATCH 084/107] Added some additional LRO terminal state values (#20370) * Added some additional LRO terminal state values While they're non-conformant per the RPC spec, we've seen these in the wild and changing them now would be breaking for REST clients. * tweak tests for better case-insensitive checks --- sdk/azcore/CHANGELOG.md | 1 + sdk/azcore/internal/pollers/util.go | 13 ++++++++++--- sdk/azcore/internal/pollers/util_test.go | 17 ++++++++++------- 3 files changed, 21 insertions(+), 10 deletions(-) diff --git a/sdk/azcore/CHANGELOG.md b/sdk/azcore/CHANGELOG.md index 46345b4e73ae..f42e5a0e816b 100644 --- a/sdk/azcore/CHANGELOG.md +++ b/sdk/azcore/CHANGELOG.md @@ -7,6 +7,7 @@ ### Breaking Changes ### Bugs Fixed +* Added non-conformant LRO terminal states `Cancelled` and `Completed`. ### Other Changes diff --git a/sdk/azcore/internal/pollers/util.go b/sdk/azcore/internal/pollers/util.go index 17ab7dadc3fa..f5fffa53ac3c 100644 --- a/sdk/azcore/internal/pollers/util.go +++ b/sdk/azcore/internal/pollers/util.go @@ -29,19 +29,26 @@ const ( StatusInProgress = "InProgress" ) +// these are non-conformant states that we've seen in the wild. +// we support them for back-compat. +const ( + StatusCancelled = "Cancelled" + StatusCompleted = "Completed" +) + // IsTerminalState returns true if the LRO's state is terminal. func IsTerminalState(s string) bool { - return strings.EqualFold(s, StatusSucceeded) || strings.EqualFold(s, StatusFailed) || strings.EqualFold(s, StatusCanceled) + return Failed(s) || Succeeded(s) } // Failed returns true if the LRO's state is terminal failure. func Failed(s string) bool { - return strings.EqualFold(s, StatusFailed) || strings.EqualFold(s, StatusCanceled) + return strings.EqualFold(s, StatusFailed) || strings.EqualFold(s, StatusCanceled) || strings.EqualFold(s, StatusCancelled) } // Succeeded returns true if the LRO's state is terminal success. func Succeeded(s string) bool { - return strings.EqualFold(s, StatusSucceeded) + return strings.EqualFold(s, StatusSucceeded) || strings.EqualFold(s, StatusCompleted) } // returns true if the LRO response contains a valid HTTP status code diff --git a/sdk/azcore/internal/pollers/util_test.go b/sdk/azcore/internal/pollers/util_test.go index 2b55f593ea0c..3b3ba222d0ba 100644 --- a/sdk/azcore/internal/pollers/util_test.go +++ b/sdk/azcore/internal/pollers/util_test.go @@ -20,10 +20,12 @@ import ( ) func TestIsTerminalState(t *testing.T) { - require.False(t, IsTerminalState("Updating"), "Updating is not a terminal state") - require.True(t, IsTerminalState("Succeeded"), "Succeeded is a terminal state") - require.True(t, IsTerminalState("failed"), "failed is a terminal state") - require.True(t, IsTerminalState("canceled"), "canceled is a terminal state") + require.False(t, IsTerminalState("upDAting"), "Updating is not a terminal state") + require.True(t, IsTerminalState("SuccEEded"), "Succeeded is a terminal state") + require.True(t, IsTerminalState("completEd"), "Completed is a terminal state") + require.True(t, IsTerminalState("faIled"), "failed is a terminal state") + require.True(t, IsTerminalState("canCeled"), "canceled is a terminal state") + require.True(t, IsTerminalState("canceLLed"), "cancelled is a terminal state") } func TestStatusCodeValid(t *testing.T) { @@ -88,9 +90,10 @@ func TestIsValidURL(t *testing.T) { } func TestFailed(t *testing.T) { - require.False(t, Failed("Succeeded")) - require.False(t, Failed("Updating")) - require.True(t, Failed("failed")) + require.False(t, Failed("sUcceeded")) + require.False(t, Failed("ppdATing")) + require.True(t, Failed("fAilEd")) + require.True(t, Failed("caNcElled")) } func TestGetJSON(t *testing.T) { From 14d22b087a998a5e37af85125d6468214d620891 Mon Sep 17 00:00:00 2001 From: Charles Lowell <10964656+chlowell@users.noreply.github.com> Date: Wed, 8 Mar 2023 15:01:21 -0800 Subject: [PATCH 085/107] Prepare security/keyvault/internal v0.8.0 for release (#20375) --- sdk/security/keyvault/internal/CHANGELOG.md | 8 ++------ sdk/security/keyvault/internal/go.mod | 15 ++++++++------- sdk/security/keyvault/internal/go.sum | 21 +++++++++++++++++++++ 3 files changed, 31 insertions(+), 13 deletions(-) diff --git a/sdk/security/keyvault/internal/CHANGELOG.md b/sdk/security/keyvault/internal/CHANGELOG.md index 777d18d4f095..d91660b5812a 100644 --- a/sdk/security/keyvault/internal/CHANGELOG.md +++ b/sdk/security/keyvault/internal/CHANGELOG.md @@ -1,16 +1,12 @@ # Release History -## 0.8.0 (Unreleased) - -### Features Added +## 0.8.0 (2023-03-08) ### Breaking Changes * Moved to new location -### Bugs Fixed - ### Other Changes -* Upgrade to `azcore` v1.3.0 +* Upgrade dependencies ## 0.7.1 (2022-11-14) diff --git a/sdk/security/keyvault/internal/go.mod b/sdk/security/keyvault/internal/go.mod index 307d0a15c95b..b171b82bc26f 100644 --- a/sdk/security/keyvault/internal/go.mod +++ b/sdk/security/keyvault/internal/go.mod @@ -3,15 +3,16 @@ module github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/internal go 1.18 require ( - github.com/Azure/azure-sdk-for-go/sdk/azcore v1.3.0 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.1.1 - github.com/stretchr/testify v1.7.0 + github.com/Azure/azure-sdk-for-go/sdk/azcore v1.4.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.2.0 + github.com/stretchr/testify v1.8.2 ) require ( - github.com/davecgh/go-spew v1.1.0 // indirect + github.com/davecgh/go-spew v1.1.1 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect - golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4 // indirect - golang.org/x/text v0.3.8 // indirect - gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c // indirect + github.com/stretchr/objx v0.5.0 // indirect + golang.org/x/net v0.7.0 // indirect + golang.org/x/text v0.7.0 // indirect + gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/sdk/security/keyvault/internal/go.sum b/sdk/security/keyvault/internal/go.sum index 920e2cd4f76d..1759c649a67d 100644 --- a/sdk/security/keyvault/internal/go.sum +++ b/sdk/security/keyvault/internal/go.sum @@ -1,19 +1,40 @@ github.com/Azure/azure-sdk-for-go/sdk/azcore v1.3.0 h1:VuHAcMq8pU1IWNT/m5yRaGqbK0BiQKHT8X4DTp9CHdI= github.com/Azure/azure-sdk-for-go/sdk/azcore v1.3.0/go.mod h1:tZoQYdDZNOiIjdSn0dVWVfl0NEPGOJqVLzSrcFk4Is0= +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/internal v1.1.1 h1:Oj853U9kG+RLTCQXpjvOnrv0WaZHxgmZz1TlLywgOPY= github.com/Azure/azure-sdk-for-go/sdk/internal v1.1.1/go.mod h1:eWRD7oawr1Mu1sLCawqVc0CUiF43ia3qQMxLscsKQ9w= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.1.2 h1:+5VZ72z0Qan5Bog5C+ZkgSqUbeVUd9wgtHOrIKuc5b8= +github.com/Azure/azure-sdk-for-go/sdk/internal v1.1.2/go.mod h1:eWRD7oawr1Mu1sLCawqVc0CUiF43ia3qQMxLscsKQ9w= +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/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= 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/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/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/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= +github.com/stretchr/objx v0.5.0 h1:1zr/of2m5FGMsad5YfcqgdqdWrIhu+EBEJRhR1U7z/c= +github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= +github.com/stretchr/testify v1.8.2 h1:+h33VjcLVPDHtOdpUCuF+7gSuG3yGIftsP1YvFihtJ8= +github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= 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/net v0.7.0 h1:rJrUqqhjsgNp7KqAIc25s9pZnjU7TUcSY7HcVZjdn1g= +golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= golang.org/x/text v0.3.8 h1:nAL+RVCQ9uMn3vJZbV+MRnydTJFPf8qqY42YiA6MrqY= golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ= +golang.org/x/text v0.7.0 h1:4BRB4x83lYWy72KwLD/qYDuTu7q9PjSagHvijDw7cLo= +golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= +gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= From b43109ed66d288b62ce735234d5671d54404f1c1 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Wed, 8 Mar 2023 16:27:58 -0800 Subject: [PATCH 086/107] Increment version for security/keyvault/internal releases (#20376) Increment package version after release of security/keyvault/internal --- sdk/security/keyvault/internal/CHANGELOG.md | 10 ++++++++++ sdk/security/keyvault/internal/constants.go | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/sdk/security/keyvault/internal/CHANGELOG.md b/sdk/security/keyvault/internal/CHANGELOG.md index d91660b5812a..faff35490d89 100644 --- a/sdk/security/keyvault/internal/CHANGELOG.md +++ b/sdk/security/keyvault/internal/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 0.8.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 0.8.0 (2023-03-08) ### Breaking Changes diff --git a/sdk/security/keyvault/internal/constants.go b/sdk/security/keyvault/internal/constants.go index 610f1544f363..f1278adf2461 100644 --- a/sdk/security/keyvault/internal/constants.go +++ b/sdk/security/keyvault/internal/constants.go @@ -7,5 +7,5 @@ package internal const ( - version = "v0.8.0" //nolint + version = "v0.8.1" //nolint ) From ace19e85142b15e5a9722bed30b6acc168351566 Mon Sep 17 00:00:00 2001 From: Sourav Gupta <98318303+souravgupta-msft@users.noreply.github.com> Date: Thu, 9 Mar 2023 12:47:38 +0530 Subject: [PATCH 087/107] Blob Batch API Surface (#19896) * Adding methods for blob batch operations --- sdk/storage/azblob/CHANGELOG.md | 2 + sdk/storage/azblob/blob/client.go | 10 +- sdk/storage/azblob/container/batch_builder.go | 94 ++ sdk/storage/azblob/container/client.go | 81 +- sdk/storage/azblob/container/client_test.go | 803 ++++++++++++++++++ sdk/storage/azblob/container/examples_test.go | 142 ++++ sdk/storage/azblob/container/models.go | 57 ++ sdk/storage/azblob/container/responses.go | 19 + sdk/storage/azblob/internal/base/clients.go | 33 +- .../azblob/internal/exported/blob_batch.go | 279 ++++++ .../azblob/internal/exported/log_events.go | 8 +- .../azblob/internal/generated/autorest.md | 27 +- .../azblob/internal/generated/blob_client.go | 14 +- .../internal/generated/zz_container_client.go | 2 +- .../internal/generated/zz_service_client.go | 4 +- sdk/storage/azblob/internal/shared/shared.go | 2 + .../internal/testcommon/clients_auth.go | 70 ++ sdk/storage/azblob/log.go | 7 +- sdk/storage/azblob/service/batch_builder.go | 94 ++ sdk/storage/azblob/service/client.go | 82 +- sdk/storage/azblob/service/client_test.go | 692 +++++++++++++++ sdk/storage/azblob/service/examples_test.go | 133 +++ sdk/storage/azblob/service/models.go | 57 ++ sdk/storage/azblob/service/responses.go | 19 + 24 files changed, 2705 insertions(+), 26 deletions(-) create mode 100644 sdk/storage/azblob/container/batch_builder.go create mode 100644 sdk/storage/azblob/internal/exported/blob_batch.go create mode 100644 sdk/storage/azblob/service/batch_builder.go diff --git a/sdk/storage/azblob/CHANGELOG.md b/sdk/storage/azblob/CHANGELOG.md index b9828cdf0a93..4e9cd9f4446d 100644 --- a/sdk/storage/azblob/CHANGELOG.md +++ b/sdk/storage/azblob/CHANGELOG.md @@ -4,6 +4,8 @@ ### Features Added +* Added [Blob Batch API](https://learn.microsoft.com/rest/api/storageservices/blob-batch). + ### Breaking Changes ### Bugs Fixed diff --git a/sdk/storage/azblob/blob/client.go b/sdk/storage/azblob/blob/client.go index 674dc285bb07..2818f6d06086 100644 --- a/sdk/storage/azblob/blob/client.go +++ b/sdk/storage/azblob/blob/client.go @@ -42,7 +42,7 @@ func NewClient(blobURL string, cred azcore.TokenCredential, options *ClientOptio conOptions.PerRetryPolicies = append(conOptions.PerRetryPolicies, authPolicy) pl := runtime.NewPipeline(exported.ModuleName, exported.ModuleVersion, runtime.PipelineOptions{}, &conOptions.ClientOptions) - return (*Client)(base.NewBlobClient(blobURL, pl, nil)), nil + return (*Client)(base.NewBlobClient(blobURL, pl, &cred)), nil } // NewClientWithNoCredential creates an instance of Client with the specified values. @@ -100,6 +100,10 @@ func (b *Client) sharedKey() *SharedKeyCredential { return base.SharedKey((*base.Client[generated.BlobClient])(b)) } +func (b *Client) credential() any { + return base.Credential((*base.Client[generated.BlobClient])(b)) +} + // URL returns the URL endpoint used by the Client object. func (b *Client) URL() string { return b.generated().Endpoint() @@ -114,7 +118,7 @@ func (b *Client) WithSnapshot(snapshot string) (*Client, error) { } p.Snapshot = snapshot - return (*Client)(base.NewBlobClient(p.String(), b.generated().Pipeline(), b.sharedKey())), nil + return (*Client)(base.NewBlobClient(p.String(), b.generated().Pipeline(), b.credential())), nil } // WithVersionID creates a new AppendBlobURL object identical to the source but with the specified version id. @@ -126,7 +130,7 @@ func (b *Client) WithVersionID(versionID string) (*Client, error) { } p.VersionID = versionID - return (*Client)(base.NewBlobClient(p.String(), b.generated().Pipeline(), b.sharedKey())), nil + return (*Client)(base.NewBlobClient(p.String(), b.generated().Pipeline(), b.credential())), nil } // Delete marks the specified blob or snapshot for deletion. The blob is later deleted during garbage collection. diff --git a/sdk/storage/azblob/container/batch_builder.go b/sdk/storage/azblob/container/batch_builder.go new file mode 100644 index 000000000000..83edea72b2f3 --- /dev/null +++ b/sdk/storage/azblob/container/batch_builder.go @@ -0,0 +1,94 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package container + +import ( + "context" + "fmt" + "net/url" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/storage/azblob/blob" + "github.com/Azure/azure-sdk-for-go/sdk/storage/azblob/internal/exported" +) + +// BatchBuilder is used for creating the batch operations list. It contains the list of either delete or set tier sub-requests. +// NOTE: All sub-requests in the batch must be of the same type, either delete or set tier. +type BatchBuilder struct { + endpoint string + authPolicy policy.Policy + subRequests []*policy.Request + operationType *exported.BlobBatchOperationType +} + +func (bb *BatchBuilder) checkOperationType(operationType exported.BlobBatchOperationType) error { + if bb.operationType == nil { + bb.operationType = &operationType + return nil + } + if *bb.operationType != operationType { + return fmt.Errorf("BlobBatch only supports one operation type per batch and is already being used for %s operations", *bb.operationType) + } + return nil +} + +// Delete operation is used to add delete sub-request to the batch builder. +func (bb *BatchBuilder) Delete(blobName string, options *BatchDeleteOptions) error { + err := bb.checkOperationType(exported.BatchDeleteOperationType) + if err != nil { + return err + } + + blobName = url.PathEscape(blobName) + blobURL := runtime.JoinPaths(bb.endpoint, blobName) + + blobClient, err := blob.NewClientWithNoCredential(blobURL, nil) + if err != nil { + return err + } + + deleteOptions, leaseInfo, accessConditions := options.format() + req, err := getGeneratedBlobClient(blobClient).DeleteCreateRequest(context.TODO(), deleteOptions, leaseInfo, accessConditions) + if err != nil { + return err + } + + // remove x-ms-version header + exported.UpdateSubRequestHeaders(req) + + bb.subRequests = append(bb.subRequests, req) + return nil +} + +// SetTier operation is used to add set tier sub-request to the batch builder. +func (bb *BatchBuilder) SetTier(blobName string, accessTier blob.AccessTier, options *BatchSetTierOptions) error { + err := bb.checkOperationType(exported.BatchSetTierOperationType) + if err != nil { + return err + } + + blobName = url.PathEscape(blobName) + blobURL := runtime.JoinPaths(bb.endpoint, blobName) + + blobClient, err := blob.NewClientWithNoCredential(blobURL, nil) + if err != nil { + return err + } + + setTierOptions, leaseInfo, accessConditions := options.format() + req, err := getGeneratedBlobClient(blobClient).SetTierCreateRequest(context.TODO(), accessTier, setTierOptions, leaseInfo, accessConditions) + if err != nil { + return err + } + + // remove x-ms-version header + exported.UpdateSubRequestHeaders(req) + + bb.subRequests = append(bb.subRequests, req) + return nil +} diff --git a/sdk/storage/azblob/container/client.go b/sdk/storage/azblob/container/client.go index 966b24876eb0..c33d126cf30b 100644 --- a/sdk/storage/azblob/container/client.go +++ b/sdk/storage/azblob/container/client.go @@ -7,7 +7,11 @@ package container import ( + "bytes" "context" + "errors" + "fmt" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/streaming" "github.com/Azure/azure-sdk-for-go/sdk/storage/azblob/bloberror" "net/http" "net/url" @@ -45,7 +49,7 @@ func NewClient(containerURL string, cred azcore.TokenCredential, options *Client conOptions.PerRetryPolicies = append(conOptions.PerRetryPolicies, authPolicy) pl := runtime.NewPipeline(exported.ModuleName, exported.ModuleVersion, runtime.PipelineOptions{}, &conOptions.ClientOptions) - return (*Client)(base.NewContainerClient(containerURL, pl, nil)), nil + return (*Client)(base.NewContainerClient(containerURL, pl, &cred)), nil } // NewClientWithNoCredential creates an instance of Client with the specified values. @@ -102,6 +106,15 @@ func (c *Client) sharedKey() *SharedKeyCredential { return base.SharedKey((*base.Client[generated.ContainerClient])(c)) } +func (c *Client) credential() any { + return base.Credential((*base.Client[generated.ContainerClient])(c)) +} + +// helper method to return the generated.BlobClient which is used for creating the sub-requests +func getGeneratedBlobClient(b *blob.Client) *generated.BlobClient { + return base.InnerClient((*base.Client[generated.BlobClient])(b)) +} + // URL returns the URL endpoint used by the Client object. func (c *Client) URL() string { return c.generated().Endpoint() @@ -113,7 +126,7 @@ func (c *Client) URL() string { func (c *Client) NewBlobClient(blobName string) *blob.Client { blobName = url.PathEscape(blobName) blobURL := runtime.JoinPaths(c.URL(), blobName) - return (*blob.Client)(base.NewBlobClient(blobURL, c.generated().Pipeline(), c.sharedKey())) + return (*blob.Client)(base.NewBlobClient(blobURL, c.generated().Pipeline(), c.credential())) } // NewAppendBlobClient creates a new appendblob.Client object by concatenating blobName to the end of @@ -329,3 +342,67 @@ func (c *Client) GetSASURL(permissions sas.ContainerPermissions, expiry time.Tim return endpoint, nil } + +// NewBatchBuilder creates an instance of BatchBuilder using the same auth policy as the client. +// BatchBuilder is used to build the batch consisting of either delete or set tier sub-requests. +// All sub-requests in the batch must be of the same type, either delete or set tier. +func (c *Client) NewBatchBuilder() (*BatchBuilder, error) { + var authPolicy policy.Policy + + switch cred := c.credential().(type) { + case *azcore.TokenCredential: + authPolicy = runtime.NewBearerTokenPolicy(*cred, []string{shared.TokenScope}, nil) + case *SharedKeyCredential: + authPolicy = exported.NewSharedKeyCredPolicy(cred) + case nil: + // for authentication using SAS + authPolicy = nil + default: + return nil, fmt.Errorf("unrecognised authentication type %T", cred) + } + + return &BatchBuilder{ + endpoint: c.URL(), + authPolicy: authPolicy, + }, nil +} + +// SubmitBatch operation allows multiple API calls to be embedded into a single HTTP request. +// It builds the request body using the BatchBuilder object passed. +// BatchBuilder contains the list of operations to be submitted. It supports up to 256 sub-requests in a single batch. +// For more information, see https://docs.microsoft.com/rest/api/storageservices/blob-batch. +func (c *Client) SubmitBatch(ctx context.Context, bb *BatchBuilder, options *SubmitBatchOptions) (SubmitBatchResponse, error) { + if bb == nil || len(bb.subRequests) == 0 { + return SubmitBatchResponse{}, errors.New("batch builder is empty") + } + + // create the request body + batchReq, batchID, err := exported.CreateBatchRequest(&exported.BlobBatchBuilder{ + AuthPolicy: bb.authPolicy, + SubRequests: bb.subRequests, + }) + if err != nil { + return SubmitBatchResponse{}, err + } + + reader := bytes.NewReader(batchReq) + rsc := streaming.NopCloser(reader) + multipartContentType := "multipart/mixed; boundary=" + batchID + + resp, err := c.generated().SubmitBatch(ctx, int64(len(batchReq)), multipartContentType, rsc, options.format()) + if err != nil { + return SubmitBatchResponse{}, err + } + + batchResponses, err := exported.ParseBlobBatchResponse(resp.Body, resp.ContentType, bb.subRequests) + if err != nil { + return SubmitBatchResponse{}, err + } + + return SubmitBatchResponse{ + Responses: batchResponses, + ContentType: resp.ContentType, + RequestID: resp.RequestID, + Version: resp.Version, + }, nil +} diff --git a/sdk/storage/azblob/container/client_test.go b/sdk/storage/azblob/container/client_test.go index 00a914d5fd6e..8924f89599b0 100644 --- a/sdk/storage/azblob/container/client_test.go +++ b/sdk/storage/azblob/container/client_test.go @@ -11,6 +11,7 @@ import ( "fmt" "github.com/Azure/azure-sdk-for-go/sdk/storage/azblob/sas" "net/url" + "os" "sort" "strconv" "strings" @@ -2222,3 +2223,805 @@ func (s *ContainerUnrecordedTestsSuite) TestSASContainerClient() { _, err = container.NewClientWithNoCredential(sasUrl, nil) _require.Nil(err) } + +func (s *ContainerUnrecordedTestsSuite) TestContainerBlobBatchDeleteSuccessUsingSharedKey() { + _require := require.New(s.T()) + testName := s.T().Name() + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + containerName := testcommon.GenerateContainerName(testName) + containerClient := testcommon.CreateNewContainer(context.Background(), _require, containerName, svcClient) + defer testcommon.DeleteContainer(context.Background(), _require, containerClient) + + bb, err := containerClient.NewBatchBuilder() + _require.NoError(err) + + for i := 0; i < 10; i++ { + bbName := fmt.Sprintf("blockblob%v", i) + _ = testcommon.CreateNewBlockBlob(context.Background(), _require, bbName, containerClient) + err = bb.Delete(bbName, nil) + _require.NoError(err) + } + + pager := containerClient.NewListBlobsFlatPager(nil) + ctr := 0 + for pager.More() { + resp, err := pager.NextPage(context.Background()) + handleError(err) + ctr += len(resp.ListBlobsFlatSegmentResponse.Segment.BlobItems) + } + _require.Equal(ctr, 10) + + resp, err := containerClient.SubmitBatch(context.Background(), bb, nil) + _require.NoError(err) + _require.NotNil(resp.RequestID) + + for _, subResp := range resp.Responses { + _require.NotNil(subResp.ContentID) + _require.NotNil(subResp.ContainerName) + _require.NotNil(subResp.BlobName) + _require.NotNil(subResp.RequestID) + _require.NotNil(subResp.Version) + _require.NoError(subResp.Error) + } + + pager = containerClient.NewListBlobsFlatPager(nil) + ctr = 0 + for pager.More() { + resp, err := pager.NextPage(context.Background()) + handleError(err) + ctr += len(resp.ListBlobsFlatSegmentResponse.Segment.BlobItems) + } + _require.Equal(ctr, 0) +} + +func (s *ContainerUnrecordedTestsSuite) TestContainerBlobBatchSetTierPartialFailureUsingSharedKey() { + _require := require.New(s.T()) + testName := s.T().Name() + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + containerName := testcommon.GenerateContainerName(testName) + containerClient := testcommon.CreateNewContainer(context.Background(), _require, containerName, svcClient) + defer testcommon.DeleteContainer(context.Background(), _require, containerClient) + + bb, err := containerClient.NewBatchBuilder() + _require.NoError(err) + + // add 5 blobs to BatchBuilder which does not exist + for i := 0; i < 15; i++ { + bbName := fmt.Sprintf("blockblob%v", i) + if i < 10 { + _ = testcommon.CreateNewBlockBlob(context.Background(), _require, bbName, containerClient) + } + err = bb.SetTier(bbName, blob.AccessTierCool, nil) + _require.NoError(err) + } + + pager := containerClient.NewListBlobsFlatPager(nil) + var ctrHot, ctrCool = 0, 0 + for pager.More() { + resp, err := pager.NextPage(context.Background()) + handleError(err) + for _, blobItem := range resp.ListBlobsFlatSegmentResponse.Segment.BlobItems { + if *blobItem.Properties.AccessTier == container.AccessTierHot { + ctrHot++ + } else if *blobItem.Properties.AccessTier == container.AccessTierCool { + ctrCool++ + } + } + } + _require.Equal(ctrHot, 10) + _require.Equal(ctrCool, 0) + + resp, err := containerClient.SubmitBatch(context.Background(), bb, nil) + _require.NoError(err) + _require.NotNil(resp.RequestID) + + var ctrSuccess, ctrFailure = 0, 0 + for _, subResp := range resp.Responses { + _require.NotNil(subResp.ContentID) + _require.NotNil(subResp.ContainerName) + _require.NotNil(subResp.BlobName) + _require.NotNil(subResp.RequestID) + _require.NotNil(subResp.Version) + if subResp.Error == nil { + ctrSuccess++ + } else { + ctrFailure++ + _require.NotEmpty(subResp.Error.Error()) + testcommon.ValidateBlobErrorCode(_require, subResp.Error, bloberror.BlobNotFound) + } + } + _require.Equal(ctrSuccess, 10) + _require.Equal(ctrFailure, 5) + + pager = containerClient.NewListBlobsFlatPager(nil) + ctrHot = 0 + ctrCool = 0 + for pager.More() { + resp, err := pager.NextPage(context.Background()) + handleError(err) + for _, blobItem := range resp.ListBlobsFlatSegmentResponse.Segment.BlobItems { + if *blobItem.Properties.AccessTier == container.AccessTierHot { + ctrHot++ + } else if *blobItem.Properties.AccessTier == container.AccessTierCool { + ctrCool++ + } + } + } + _require.Equal(ctrHot, 0) + _require.Equal(ctrCool, 10) +} + +/* +func (s *ContainerUnrecordedTestsSuite) TestContainerBlobBatchDeleteUsingTokenCredential() { + _require := require.New(s.T()) + testName := s.T().Name() + accountName, ok := os.LookupEnv("AZURE_STORAGE_ACCOUNT_NAME") + if !ok { + panic("AZURE_STORAGE_ACCOUNT_NAME could not be found") + } + tenantID, ok := os.LookupEnv("AZURE_STORAGE_TENANT_ID") + if !ok { + panic("AZURE_STORAGE_TENANT_ID could not be found") + } + clientID, ok := os.LookupEnv("AZURE_STORAGE_CLIENT_ID") + if !ok { + panic("AZURE_STORAGE_CLIENT_ID could not be found") + } + clientSecret, ok := os.LookupEnv("AZURE_STORAGE_CLIENT_SECRET") + if !ok { + panic("AZURE_STORAGE_CLIENT_SECRET could not be found") + } + + cred, err := azidentity.NewClientSecretCredential(tenantID, clientID, clientSecret, nil) + _require.NoError(err) + + containerName := testcommon.GenerateContainerName(testName) + containerClient, err := container.NewClient("https://"+accountName+".blob.core.windows.net/"+containerName, cred, nil) + _require.NoError(err) + + _, err = containerClient.Create(context.Background(), nil) + _require.NoError(err) + defer testcommon.DeleteContainer(context.Background(), _require, containerClient) + + bb, err := containerClient.NewBatchBuilder() + _require.NoError(err) + + for i := 0; i < 10; i++ { + bbName := fmt.Sprintf("blockblob%v", i) + _ = testcommon.CreateNewBlockBlob(context.Background(), _require, bbName, containerClient) + err = bb.Delete(bbName, nil) + _require.NoError(err) + } + + pager := containerClient.NewListBlobsFlatPager(nil) + ctr := 0 + for pager.More() { + resp, err := pager.NextPage(context.Background()) + handleError(err) + ctr += len(resp.ListBlobsFlatSegmentResponse.Segment.BlobItems) + } + _require.Equal(ctr, 10) + + resp, err := containerClient.SubmitBatch(context.Background(), bb, nil) + _require.NoError(err) + _require.NotNil(resp.RequestID) + + pager = containerClient.NewListBlobsFlatPager(nil) + ctr = 0 + for pager.More() { + resp, err := pager.NextPage(context.Background()) + handleError(err) + ctr += len(resp.ListBlobsFlatSegmentResponse.Segment.BlobItems) + } + _require.Equal(ctr, 0) +} + +func (s *ContainerUnrecordedTestsSuite) TestContainerBlobBatchSetTierUsingTokenCredential() { + _require := require.New(s.T()) + testName := s.T().Name() + accountName, ok := os.LookupEnv("AZURE_STORAGE_ACCOUNT_NAME") + if !ok { + panic("AZURE_STORAGE_ACCOUNT_NAME could not be found") + } + tenantID, ok := os.LookupEnv("AZURE_STORAGE_TENANT_ID") + if !ok { + panic("AZURE_STORAGE_TENANT_ID could not be found") + } + clientID, ok := os.LookupEnv("AZURE_STORAGE_CLIENT_ID") + if !ok { + panic("AZURE_STORAGE_CLIENT_ID could not be found") + } + clientSecret, ok := os.LookupEnv("AZURE_STORAGE_CLIENT_SECRET") + if !ok { + panic("AZURE_STORAGE_CLIENT_SECRET could not be found") + } + + cred, err := azidentity.NewClientSecretCredential(tenantID, clientID, clientSecret, nil) + _require.NoError(err) + + containerName := testcommon.GenerateContainerName(testName) + containerClient, err := container.NewClient("https://"+accountName+".blob.core.windows.net/"+containerName, cred, nil) + _require.NoError(err) + + _, err = containerClient.Create(context.Background(), nil) + _require.NoError(err) + defer testcommon.DeleteContainer(context.Background(), _require, containerClient) + + bb, err := containerClient.NewBatchBuilder() + _require.NoError(err) + + for i := 0; i < 10; i++ { + bbName := fmt.Sprintf("blockblob%v", i) + _ = testcommon.CreateNewBlockBlob(context.Background(), _require, bbName, containerClient) + err = bb.SetTier(bbName, blob.AccessTierCool, nil) + _require.NoError(err) + } + + pager := containerClient.NewListBlobsFlatPager(nil) + var ctrHot, ctrCool = 0, 0 + for pager.More() { + resp, err := pager.NextPage(context.Background()) + handleError(err) + for _, blobItem := range resp.ListBlobsFlatSegmentResponse.Segment.BlobItems { + if *blobItem.Properties.AccessTier == container.AccessTierHot { + ctrHot++ + } else if *blobItem.Properties.AccessTier == container.AccessTierCool { + ctrCool++ + } + } + } + _require.Equal(ctrHot, 10) + _require.Equal(ctrCool, 0) + + resp, err := containerClient.SubmitBatch(context.Background(), bb, nil) + _require.NoError(err) + _require.NotNil(resp.RequestID) + + pager = containerClient.NewListBlobsFlatPager(nil) + ctrHot = 0 + ctrCool = 0 + for pager.More() { + resp, err := pager.NextPage(context.Background()) + handleError(err) + for _, blobItem := range resp.ListBlobsFlatSegmentResponse.Segment.BlobItems { + if *blobItem.Properties.AccessTier == container.AccessTierHot { + ctrHot++ + } else if *blobItem.Properties.AccessTier == container.AccessTierCool { + ctrCool++ + } + } + } + _require.Equal(ctrHot, 0) + _require.Equal(ctrCool, 10) +} +*/ + +func (s *ContainerUnrecordedTestsSuite) TestContainerBlobBatchDeleteUsingAccountSAS() { + _require := require.New(s.T()) + testName := s.T().Name() + accountName, ok := os.LookupEnv("AZURE_STORAGE_ACCOUNT_NAME") + if !ok { + panic("AZURE_STORAGE_ACCOUNT_NAME could not be found") + } + + accountSAS, err := testcommon.GetAccountSAS(sas.AccountPermissions{Read: true, Create: true, Write: true, List: true, Add: true, Delete: true}, + sas.AccountResourceTypes{Service: true, Container: true, Object: true}) + _require.NoError(err) + + containerName := testcommon.GenerateContainerName(testName) + containerClient, err := container.NewClientWithNoCredential("https://"+accountName+".blob.core.windows.net/"+containerName+"?"+accountSAS, nil) + _require.NoError(err) + + _, err = containerClient.Create(context.Background(), nil) + _require.NoError(err) + defer testcommon.DeleteContainer(context.Background(), _require, containerClient) + + bb, err := containerClient.NewBatchBuilder() + _require.NoError(err) + + for i := 0; i < 10; i++ { + bbName := fmt.Sprintf("blockblob%v", i) + _ = testcommon.CreateNewBlockBlob(context.Background(), _require, bbName, containerClient) + err = bb.Delete(bbName, nil) + _require.NoError(err) + } + + pager := containerClient.NewListBlobsFlatPager(nil) + ctr := 0 + for pager.More() { + resp, err := pager.NextPage(context.Background()) + handleError(err) + ctr += len(resp.ListBlobsFlatSegmentResponse.Segment.BlobItems) + } + _require.Equal(ctr, 10) + + resp, err := containerClient.SubmitBatch(context.Background(), bb, nil) + _require.NoError(err) + _require.NotNil(resp.RequestID) + + pager = containerClient.NewListBlobsFlatPager(nil) + ctr = 0 + for pager.More() { + resp, err := pager.NextPage(context.Background()) + handleError(err) + ctr += len(resp.ListBlobsFlatSegmentResponse.Segment.BlobItems) + } + _require.Equal(ctr, 0) +} + +func (s *ContainerUnrecordedTestsSuite) TestContainerBlobBatchSetTierUsingAccountSAS() { + _require := require.New(s.T()) + testName := s.T().Name() + accountName, ok := os.LookupEnv("AZURE_STORAGE_ACCOUNT_NAME") + if !ok { + panic("AZURE_STORAGE_ACCOUNT_NAME could not be found") + } + + accountSAS, err := testcommon.GetAccountSAS(sas.AccountPermissions{Read: true, Create: true, Write: true, List: true, Add: true, Delete: true}, + sas.AccountResourceTypes{Service: true, Container: true, Object: true}) + _require.NoError(err) + + containerName := testcommon.GenerateContainerName(testName) + containerClient, err := container.NewClientWithNoCredential("https://"+accountName+".blob.core.windows.net/"+containerName+"?"+accountSAS, nil) + _require.NoError(err) + + _, err = containerClient.Create(context.Background(), nil) + _require.NoError(err) + defer testcommon.DeleteContainer(context.Background(), _require, containerClient) + + bb, err := containerClient.NewBatchBuilder() + _require.NoError(err) + + for i := 0; i < 10; i++ { + bbName := fmt.Sprintf("blockblob%v", i) + _ = testcommon.CreateNewBlockBlob(context.Background(), _require, bbName, containerClient) + err = bb.SetTier(bbName, blob.AccessTierCool, nil) + _require.NoError(err) + } + + pager := containerClient.NewListBlobsFlatPager(nil) + var ctrHot, ctrCool = 0, 0 + for pager.More() { + resp, err := pager.NextPage(context.Background()) + handleError(err) + for _, blobItem := range resp.ListBlobsFlatSegmentResponse.Segment.BlobItems { + if *blobItem.Properties.AccessTier == container.AccessTierHot { + ctrHot++ + } else if *blobItem.Properties.AccessTier == container.AccessTierCool { + ctrCool++ + } + } + } + _require.Equal(ctrHot, 10) + _require.Equal(ctrCool, 0) + + resp, err := containerClient.SubmitBatch(context.Background(), bb, nil) + _require.NoError(err) + _require.NotNil(resp.RequestID) + + pager = containerClient.NewListBlobsFlatPager(nil) + ctrHot = 0 + ctrCool = 0 + for pager.More() { + resp, err := pager.NextPage(context.Background()) + handleError(err) + for _, blobItem := range resp.ListBlobsFlatSegmentResponse.Segment.BlobItems { + if *blobItem.Properties.AccessTier == container.AccessTierHot { + ctrHot++ + } else if *blobItem.Properties.AccessTier == container.AccessTierCool { + ctrCool++ + } + } + } + _require.Equal(ctrHot, 0) + _require.Equal(ctrCool, 10) +} + +func (s *ContainerUnrecordedTestsSuite) TestContainerBlobBatchDeleteUsingServiceSAS() { + _require := require.New(s.T()) + testName := s.T().Name() + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + containerName := testcommon.GenerateContainerName(testName) + cntClientSharedKey := testcommon.CreateNewContainer(context.Background(), _require, containerName, svcClient) + defer testcommon.DeleteContainer(context.Background(), _require, cntClientSharedKey) + + serviceSAS, err := testcommon.GetServiceSAS(containerName, sas.BlobPermissions{Read: true, Create: true, Write: true, List: true, Add: true, Delete: true}) + _require.NoError(err) + + cntClientSAS, err := container.NewClientWithNoCredential(cntClientSharedKey.URL()+"?"+serviceSAS, nil) + _require.NoError(err) + + bb, err := cntClientSAS.NewBatchBuilder() + _require.NoError(err) + + for i := 0; i < 10; i++ { + bbName := fmt.Sprintf("blockblob%v", i) + _ = testcommon.CreateNewBlockBlob(context.Background(), _require, bbName, cntClientSAS) + err = bb.Delete(bbName, nil) + _require.NoError(err) + } + + pager := cntClientSAS.NewListBlobsFlatPager(nil) + ctr := 0 + for pager.More() { + resp, err := pager.NextPage(context.Background()) + handleError(err) + ctr += len(resp.ListBlobsFlatSegmentResponse.Segment.BlobItems) + } + _require.Equal(ctr, 10) + + resp, err := cntClientSAS.SubmitBatch(context.Background(), bb, nil) + _require.NoError(err) + _require.NotNil(resp.RequestID) + + pager = cntClientSAS.NewListBlobsFlatPager(nil) + ctr = 0 + for pager.More() { + resp, err := pager.NextPage(context.Background()) + handleError(err) + ctr += len(resp.ListBlobsFlatSegmentResponse.Segment.BlobItems) + } + _require.Equal(ctr, 0) +} + +func (s *ContainerUnrecordedTestsSuite) TestContainerBlobBatchSetTierUsingServiceSAS() { + _require := require.New(s.T()) + testName := s.T().Name() + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + containerName := testcommon.GenerateContainerName(testName) + cntClientSharedKey := testcommon.CreateNewContainer(context.Background(), _require, containerName, svcClient) + defer testcommon.DeleteContainer(context.Background(), _require, cntClientSharedKey) + + serviceSAS, err := testcommon.GetServiceSAS(containerName, sas.BlobPermissions{Read: true, Create: true, Write: true, List: true}) + _require.NoError(err) + + cntClientSAS, err := container.NewClientWithNoCredential(cntClientSharedKey.URL()+"?"+serviceSAS, nil) + _require.NoError(err) + + bb, err := cntClientSAS.NewBatchBuilder() + _require.NoError(err) + + for i := 0; i < 10; i++ { + bbName := fmt.Sprintf("blockblob%v", i) + _ = testcommon.CreateNewBlockBlob(context.Background(), _require, bbName, cntClientSAS) + err = bb.SetTier(bbName, blob.AccessTierCool, nil) + _require.NoError(err) + } + + pager := cntClientSAS.NewListBlobsFlatPager(nil) + var ctrHot, ctrCool = 0, 0 + for pager.More() { + resp, err := pager.NextPage(context.Background()) + handleError(err) + for _, blobItem := range resp.ListBlobsFlatSegmentResponse.Segment.BlobItems { + if *blobItem.Properties.AccessTier == container.AccessTierHot { + ctrHot++ + } else if *blobItem.Properties.AccessTier == container.AccessTierCool { + ctrCool++ + } + } + } + _require.Equal(ctrHot, 10) + _require.Equal(ctrCool, 0) + + resp, err := cntClientSAS.SubmitBatch(context.Background(), bb, nil) + _require.NoError(err) + _require.NotNil(resp.RequestID) + + pager = cntClientSAS.NewListBlobsFlatPager(nil) + ctrHot = 0 + ctrCool = 0 + for pager.More() { + resp, err := pager.NextPage(context.Background()) + handleError(err) + for _, blobItem := range resp.ListBlobsFlatSegmentResponse.Segment.BlobItems { + if *blobItem.Properties.AccessTier == container.AccessTierHot { + ctrHot++ + } else if *blobItem.Properties.AccessTier == container.AccessTierCool { + ctrCool++ + } + } + } + _require.Equal(ctrHot, 0) + _require.Equal(ctrCool, 10) +} + +/* +func (s *ContainerUnrecordedTestsSuite) TestContainerBlobBatchDeleteUsingUserDelegationSAS() { + _require := require.New(s.T()) + testName := s.T().Name() + accountName, ok := os.LookupEnv("AZURE_STORAGE_ACCOUNT_NAME") + if !ok { + panic("AZURE_STORAGE_ACCOUNT_NAME could not be found") + } + tenantID, ok := os.LookupEnv("AZURE_STORAGE_TENANT_ID") + if !ok { + panic("AZURE_STORAGE_TENANT_ID could not be found") + } + clientID, ok := os.LookupEnv("AZURE_STORAGE_CLIENT_ID") + if !ok { + panic("AZURE_STORAGE_CLIENT_ID could not be found") + } + clientSecret, ok := os.LookupEnv("AZURE_STORAGE_CLIENT_SECRET") + if !ok { + panic("AZURE_STORAGE_CLIENT_SECRET could not be found") + } + + cred, err := azidentity.NewClientSecretCredential(tenantID, clientID, clientSecret, nil) + _require.NoError(err) + + svcClient, err := service.NewClient("https://"+accountName+".blob.core.windows.net/", cred, nil) + _require.NoError(err) + + containerName := testcommon.GenerateContainerName(testName) + cntClientTokenCred := testcommon.CreateNewContainer(context.Background(), _require, containerName, svcClient) + defer testcommon.DeleteContainer(context.Background(), _require, cntClientTokenCred) + + udSAS, err := testcommon.GetUserDelegationSAS(svcClient, containerName, sas.BlobPermissions{Read: true, Create: true, Write: true, List: true, Add: true, Delete: true}) + _require.NoError(err) + + cntClientSAS, err := container.NewClientWithNoCredential(cntClientTokenCred.URL()+"?"+udSAS, nil) + _require.NoError(err) + + bb, err := cntClientSAS.NewBatchBuilder() + _require.NoError(err) + + for i := 0; i < 10; i++ { + bbName := fmt.Sprintf("blockblob%v", i) + _ = testcommon.CreateNewBlockBlob(context.Background(), _require, bbName, cntClientSAS) + err = bb.Delete(bbName, nil) + _require.NoError(err) + } + + pager := cntClientSAS.NewListBlobsFlatPager(nil) + ctr := 0 + for pager.More() { + resp, err := pager.NextPage(context.Background()) + handleError(err) + ctr += len(resp.ListBlobsFlatSegmentResponse.Segment.BlobItems) + } + _require.Equal(ctr, 10) + + resp, err := cntClientSAS.SubmitBatch(context.Background(), bb, nil) + _require.NoError(err) + _require.NotNil(resp.RequestID) + + pager = cntClientSAS.NewListBlobsFlatPager(nil) + ctr = 0 + for pager.More() { + resp, err := pager.NextPage(context.Background()) + handleError(err) + ctr += len(resp.ListBlobsFlatSegmentResponse.Segment.BlobItems) + } + _require.Equal(ctr, 0) +} + +func (s *ContainerUnrecordedTestsSuite) TestContainerBlobBatchSetTierUsingUserDelegationSAS() { + _require := require.New(s.T()) + testName := s.T().Name() + accountName, ok := os.LookupEnv("AZURE_STORAGE_ACCOUNT_NAME") + if !ok { + panic("AZURE_STORAGE_ACCOUNT_NAME could not be found") + } + tenantID, ok := os.LookupEnv("AZURE_STORAGE_TENANT_ID") + if !ok { + panic("AZURE_STORAGE_TENANT_ID could not be found") + } + clientID, ok := os.LookupEnv("AZURE_STORAGE_CLIENT_ID") + if !ok { + panic("AZURE_STORAGE_CLIENT_ID could not be found") + } + clientSecret, ok := os.LookupEnv("AZURE_STORAGE_CLIENT_SECRET") + if !ok { + panic("AZURE_STORAGE_CLIENT_SECRET could not be found") + } + + cred, err := azidentity.NewClientSecretCredential(tenantID, clientID, clientSecret, nil) + _require.NoError(err) + + svcClient, err := service.NewClient("https://"+accountName+".blob.core.windows.net/", cred, nil) + _require.NoError(err) + + containerName := testcommon.GenerateContainerName(testName) + cntClientTokenCred := testcommon.CreateNewContainer(context.Background(), _require, containerName, svcClient) + defer testcommon.DeleteContainer(context.Background(), _require, cntClientTokenCred) + + udSAS, err := testcommon.GetUserDelegationSAS(svcClient, containerName, sas.BlobPermissions{Read: true, Create: true, Write: true, List: true}) + _require.NoError(err) + + cntClientSAS, err := container.NewClientWithNoCredential(cntClientTokenCred.URL()+"?"+udSAS, nil) + _require.NoError(err) + + bb, err := cntClientSAS.NewBatchBuilder() + _require.NoError(err) + + for i := 0; i < 10; i++ { + bbName := fmt.Sprintf("blockblob%v", i) + _ = testcommon.CreateNewBlockBlob(context.Background(), _require, bbName, cntClientSAS) + err = bb.SetTier(bbName, blob.AccessTierCool, nil) + _require.NoError(err) + } + + pager := cntClientSAS.NewListBlobsFlatPager(nil) + var ctrHot, ctrCool = 0, 0 + for pager.More() { + resp, err := pager.NextPage(context.Background()) + handleError(err) + for _, blobItem := range resp.ListBlobsFlatSegmentResponse.Segment.BlobItems { + if *blobItem.Properties.AccessTier == container.AccessTierHot { + ctrHot++ + } else if *blobItem.Properties.AccessTier == container.AccessTierCool { + ctrCool++ + } + } + } + _require.Equal(ctrHot, 10) + _require.Equal(ctrCool, 0) + + resp, err := cntClientSAS.SubmitBatch(context.Background(), bb, nil) + _require.NoError(err) + _require.NotNil(resp.RequestID) + + pager = cntClientSAS.NewListBlobsFlatPager(nil) + ctrHot = 0 + ctrCool = 0 + for pager.More() { + resp, err := pager.NextPage(context.Background()) + handleError(err) + for _, blobItem := range resp.ListBlobsFlatSegmentResponse.Segment.BlobItems { + if *blobItem.Properties.AccessTier == container.AccessTierHot { + ctrHot++ + } else if *blobItem.Properties.AccessTier == container.AccessTierCool { + ctrCool++ + } + } + } + _require.Equal(ctrHot, 0) + _require.Equal(ctrCool, 10) +} +*/ + +func (s *ContainerUnrecordedTestsSuite) TestContainerBlobBatchDeleteMoreThan256() { + _require := require.New(s.T()) + testName := s.T().Name() + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + containerName := testcommon.GenerateContainerName(testName) + containerClient := testcommon.CreateNewContainer(context.Background(), _require, containerName, svcClient) + defer testcommon.DeleteContainer(context.Background(), _require, containerClient) + + bb, err := containerClient.NewBatchBuilder() + _require.NoError(err) + + for i := 0; i < 256; i++ { + bbName := fmt.Sprintf("blockblob%v", i) + _ = testcommon.CreateNewBlockBlob(context.Background(), _require, bbName, containerClient) + err = bb.Delete(bbName, nil) + _require.NoError(err) + } + + pager := containerClient.NewListBlobsFlatPager(nil) + ctr := 0 + for pager.More() { + resp, err := pager.NextPage(context.Background()) + handleError(err) + ctr += len(resp.ListBlobsFlatSegmentResponse.Segment.BlobItems) + } + _require.Equal(ctr, 256) + + resp, err := containerClient.SubmitBatch(context.Background(), bb, nil) + _require.NoError(err) + _require.NotNil(resp.RequestID) + for _, subResp := range resp.Responses { + _require.Nil(subResp.Error) + } + + pager = containerClient.NewListBlobsFlatPager(nil) + ctr = 0 + for pager.More() { + resp, err := pager.NextPage(context.Background()) + handleError(err) + ctr += len(resp.ListBlobsFlatSegmentResponse.Segment.BlobItems) + } + _require.Equal(ctr, 0) + + // add more items to make batch size more than 256 + for i := 0; i < 10; i++ { + bbName := fmt.Sprintf("fakeblob%v", i) + err = bb.Delete(bbName, nil) + _require.NoError(err) + } + + resp2, err := containerClient.SubmitBatch(context.Background(), bb, nil) + _require.Error(err) + _require.Nil(resp2.RequestID) +} + +func (s *ContainerUnrecordedTestsSuite) TestContainerBlobBatchDeleteForOneBlob() { + _require := require.New(s.T()) + testName := s.T().Name() + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + containerName := testcommon.GenerateContainerName(testName) + containerClient := testcommon.CreateNewContainer(context.Background(), _require, containerName, svcClient) + defer testcommon.DeleteContainer(context.Background(), _require, containerClient) + + bb, err := containerClient.NewBatchBuilder() + _require.NoError(err) + + bbName := "blockblob1" + _ = testcommon.CreateNewBlockBlob(context.Background(), _require, bbName, containerClient) + err = bb.Delete(bbName, nil) + _require.NoError(err) + + pager := containerClient.NewListBlobsFlatPager(nil) + ctr := 0 + for pager.More() { + resp, err := pager.NextPage(context.Background()) + handleError(err) + ctr += len(resp.ListBlobsFlatSegmentResponse.Segment.BlobItems) + } + _require.Equal(ctr, 1) + + resp1, err := containerClient.SubmitBatch(context.Background(), bb, nil) + _require.NoError(err) + _require.NotNil(resp1.RequestID) + _require.Equal(len(resp1.Responses), 1) + _require.NoError(resp1.Responses[0].Error) + + pager = containerClient.NewListBlobsFlatPager(nil) + ctr = 0 + for pager.More() { + resp, err := pager.NextPage(context.Background()) + handleError(err) + ctr += len(resp.ListBlobsFlatSegmentResponse.Segment.BlobItems) + } + _require.Equal(ctr, 0) + + resp2, err := containerClient.SubmitBatch(context.Background(), bb, nil) + _require.NoError(err) + _require.NotNil(resp2.RequestID) + _require.Equal(len(resp2.Responses), 1) + _require.Error(resp2.Responses[0].Error) + testcommon.ValidateBlobErrorCode(_require, resp2.Responses[0].Error, bloberror.BlobNotFound) +} + +func (s *ContainerUnrecordedTestsSuite) TestContainerBlobBatchErrors() { + _require := require.New(s.T()) + + svcClient, err := service.NewClientWithNoCredential("https://fakestorageaccount.blob.core.windows.net/", nil) + _require.NoError(err) + + cntClient := svcClient.NewContainerClient("fakecontainer") + + bb1, err := cntClient.NewBatchBuilder() + _require.NoError(err) + + // adding multiple operations to BatchBuilder + err = bb1.Delete("blob1", nil) + _require.NoError(err) + + err = bb1.SetTier("blob2", blob.AccessTierCool, nil) + _require.Error(err) + + bb2, err := cntClient.NewBatchBuilder() + _require.NoError(err) + + // submitting empty batch + _, err = cntClient.SubmitBatch(context.Background(), bb2, nil) + _require.Error(err) + + // submitting nil BatchBuilder + _, err = cntClient.SubmitBatch(context.Background(), nil, nil) + _require.Error(err) +} diff --git a/sdk/storage/azblob/container/examples_test.go b/sdk/storage/azblob/container/examples_test.go index 55caef7764cc..c3516e07c72d 100644 --- a/sdk/storage/azblob/container/examples_test.go +++ b/sdk/storage/azblob/container/examples_test.go @@ -10,6 +10,7 @@ import ( "bytes" "context" "fmt" + "github.com/Azure/azure-sdk-for-go/sdk/storage/azblob/blob" "io" "log" "net/http" @@ -393,3 +394,144 @@ func Example_container_ClientSetMetadata() { // NOTE: SetMetadata & SetProperties methods update the container's ETag & LastModified properties } + +// ExampleContainerBatchDelete shows blob batch operations for delete and set tier. +func Example_container_BatchDelete() { + accountName, ok := os.LookupEnv("AZURE_STORAGE_ACCOUNT_NAME") + if !ok { + panic("AZURE_STORAGE_ACCOUNT_NAME could not be found") + } + accountKey, ok := os.LookupEnv("AZURE_STORAGE_ACCOUNT_KEY") + if !ok { + panic("AZURE_STORAGE_ACCOUNT_NAME could not be found") + } + + const containerName = "testcontainer" + + // create shared key credential + cred, err := azblob.NewSharedKeyCredential(accountName, accountKey) + handleError(err) + + // create container batch client + containerURL := fmt.Sprintf("https://%s.blob.core.windows.net/%s", accountName, containerName) + cntBatchClient, err := container.NewClientWithSharedKeyCredential(containerURL, cred, nil) + handleError(err) + + // create new batch builder + bb, err := cntBatchClient.NewBatchBuilder() + handleError(err) + + // add operations to the batch builder + err = bb.Delete("testBlob0", nil) + handleError(err) + + err = bb.Delete("testBlob1", &container.BatchDeleteOptions{ + VersionID: to.Ptr("2023-01-03T11:57:25.4067017Z"), // version id for deletion + }) + handleError(err) + + err = bb.Delete("testBlob2", &container.BatchDeleteOptions{ + Snapshot: to.Ptr("2023-01-03T11:57:25.6515618Z"), // snapshot for deletion + }) + handleError(err) + + err = bb.Delete("testBlob3", &container.BatchDeleteOptions{ + DeleteOptions: blob.DeleteOptions{ + DeleteSnapshots: to.Ptr(blob.DeleteSnapshotsOptionTypeOnly), + BlobDeleteType: to.Ptr(blob.DeleteTypeNone), + }, + }) + handleError(err) + + resp, err := cntBatchClient.SubmitBatch(context.TODO(), bb, nil) + if err != nil { + fmt.Println(err.Error()) + } + + // get response for individual sub-requests + for _, resp := range resp.Responses { + if resp.ContainerName != nil && resp.BlobName != nil { + fmt.Println("Container: " + *resp.ContainerName) + fmt.Println("Blob: " + *resp.BlobName) + } + if resp.Error == nil { + fmt.Println("Successful sub-request") + } else { + fmt.Println("Error: " + resp.Error.Error()) + } + } +} + +// ExampleContainerBatchSetTier shows blob batch operations for delete and set tier. +func Example_container_BatchSetTier() { + accountName, ok := os.LookupEnv("AZURE_STORAGE_ACCOUNT_NAME") + if !ok { + panic("AZURE_STORAGE_ACCOUNT_NAME could not be found") + } + tenantID, ok := os.LookupEnv("AZURE_STORAGE_TENANT_ID") + if !ok { + panic("AZURE_STORAGE_TENANT_ID could not be found") + } + clientID, ok := os.LookupEnv("AZURE_STORAGE_CLIENT_ID") + if !ok { + panic("AZURE_STORAGE_CLIENT_ID could not be found") + } + clientSecret, ok := os.LookupEnv("AZURE_STORAGE_CLIENT_SECRET") + if !ok { + panic("AZURE_STORAGE_CLIENT_SECRET could not be found") + } + + const containerName = "testcontainer" + + // create client secret credential + cred, err := azidentity.NewClientSecretCredential(tenantID, clientID, clientSecret, nil) + handleError(err) + + // create container batch client + containerURL := fmt.Sprintf("https://%s.blob.core.windows.net/%s", accountName, containerName) + cntBatchClient, err := container.NewClient(containerURL, cred, nil) + handleError(err) + + // create new batch builder + bb, err := cntBatchClient.NewBatchBuilder() + handleError(err) + + // add operations to the batch builder + err = bb.SetTier("testBlob1", blob.AccessTierHot, nil) + handleError(err) + + err = bb.SetTier("testBlob2", blob.AccessTierCool, &container.BatchSetTierOptions{ + VersionID: to.Ptr("2023-01-03T11:57:25.4067017Z"), + }) + handleError(err) + + err = bb.SetTier("testBlob3", blob.AccessTierCool, &container.BatchSetTierOptions{ + Snapshot: to.Ptr("2023-01-03T11:57:25.6515618Z"), + }) + handleError(err) + + err = bb.SetTier("testBlob4", blob.AccessTierCool, &container.BatchSetTierOptions{ + SetTierOptions: blob.SetTierOptions{ + RehydratePriority: to.Ptr(blob.RehydratePriorityStandard), + }, + }) + handleError(err) + + resp, err := cntBatchClient.SubmitBatch(context.TODO(), bb, nil) + if err != nil { + fmt.Println(err.Error()) + } + + // get response for individual sub-requests + for _, resp := range resp.Responses { + if resp.ContainerName != nil && resp.BlobName != nil { + fmt.Println("Container: " + *resp.ContainerName) + fmt.Println("Blob: " + *resp.BlobName) + } + if resp.Error == nil { + fmt.Println("Successful sub-request") + } else { + fmt.Println("Error: " + resp.Error.Error()) + } + } +} diff --git a/sdk/storage/azblob/container/models.go b/sdk/storage/azblob/container/models.go index d819ccb4ac7e..99107c6a7ed2 100644 --- a/sdk/storage/azblob/container/models.go +++ b/sdk/storage/azblob/container/models.go @@ -7,6 +7,7 @@ package container import ( + "github.com/Azure/azure-sdk-for-go/sdk/storage/azblob/blob" "reflect" "time" @@ -329,3 +330,59 @@ func formatTime(c *SignedIdentifier) error { return nil } + +// --------------------------------------------------------------------------------------------------------------------- + +// BatchDeleteOptions contains the optional parameters for the BatchBuilder.Delete method. +type BatchDeleteOptions struct { + blob.DeleteOptions + VersionID *string + Snapshot *string +} + +func (o *BatchDeleteOptions) format() (*generated.BlobClientDeleteOptions, *generated.LeaseAccessConditions, *generated.ModifiedAccessConditions) { + if o == nil { + return nil, nil, nil + } + + basics := generated.BlobClientDeleteOptions{ + DeleteSnapshots: o.DeleteSnapshots, + DeleteType: o.BlobDeleteType, // None by default + Snapshot: o.Snapshot, + VersionID: o.VersionID, + } + + leaseAccessConditions, modifiedAccessConditions := exported.FormatBlobAccessConditions(o.AccessConditions) + return &basics, leaseAccessConditions, modifiedAccessConditions +} + +// BatchSetTierOptions contains the optional parameters for the BatchBuilder.SetTier method. +type BatchSetTierOptions struct { + blob.SetTierOptions + VersionID *string + Snapshot *string +} + +func (o *BatchSetTierOptions) format() (*generated.BlobClientSetTierOptions, *generated.LeaseAccessConditions, *generated.ModifiedAccessConditions) { + if o == nil { + return nil, nil, nil + } + + basics := generated.BlobClientSetTierOptions{ + RehydratePriority: o.RehydratePriority, + Snapshot: o.Snapshot, + VersionID: o.VersionID, + } + + leaseAccessConditions, modifiedAccessConditions := exported.FormatBlobAccessConditions(o.AccessConditions) + return &basics, leaseAccessConditions, modifiedAccessConditions +} + +// SubmitBatchOptions contains the optional parameters for the Client.SubmitBatch method. +type SubmitBatchOptions struct { + // placeholder for future options +} + +func (o *SubmitBatchOptions) format() *generated.ContainerClientSubmitBatchOptions { + return nil +} diff --git a/sdk/storage/azblob/container/responses.go b/sdk/storage/azblob/container/responses.go index 190234307ae3..a5e7b729569d 100644 --- a/sdk/storage/azblob/container/responses.go +++ b/sdk/storage/azblob/container/responses.go @@ -7,6 +7,7 @@ package container import ( + "github.com/Azure/azure-sdk-for-go/sdk/storage/azblob/internal/exported" "github.com/Azure/azure-sdk-for-go/sdk/storage/azblob/internal/generated" ) @@ -42,3 +43,21 @@ type GetAccessPolicyResponse = generated.ContainerClientGetAccessPolicyResponse // SetAccessPolicyResponse contains the response from method Client.SetAccessPolicy. type SetAccessPolicyResponse = generated.ContainerClientSetAccessPolicyResponse + +// SubmitBatchResponse contains the response from method Client.SubmitBatch. +type SubmitBatchResponse struct { + // Responses contains the responses of the sub-requests in the batch + Responses []*BatchResponseItem + + // ContentType contains the information returned from the Content-Type header response. + ContentType *string + + // RequestID contains the information returned from the x-ms-request-id header response. + RequestID *string + + // Version contains the information returned from the x-ms-version header response. + Version *string +} + +// BatchResponseItem contains the response for the individual sub-requests. +type BatchResponseItem = exported.BatchResponseItem diff --git a/sdk/storage/azblob/internal/base/clients.go b/sdk/storage/azblob/internal/base/clients.go index 16e6cac066db..561dc358cda1 100644 --- a/sdk/storage/azblob/internal/base/clients.go +++ b/sdk/storage/azblob/internal/base/clients.go @@ -13,8 +13,8 @@ import ( ) type Client[T any] struct { - inner *T - sharedKey *exported.SharedKeyCredential + inner *T + credential any } func InnerClient[T any](client *Client[T]) *T { @@ -22,31 +22,40 @@ func InnerClient[T any](client *Client[T]) *T { } func SharedKey[T any](client *Client[T]) *exported.SharedKeyCredential { - return client.sharedKey + switch cred := client.credential.(type) { + case *exported.SharedKeyCredential: + return cred + default: + return nil + } +} + +func Credential[T any](client *Client[T]) any { + return client.credential } func NewClient[T any](inner *T) *Client[T] { return &Client[T]{inner: inner} } -func NewServiceClient(containerURL string, pipeline runtime.Pipeline, sharedKey *exported.SharedKeyCredential) *Client[generated.ServiceClient] { +func NewServiceClient(containerURL string, pipeline runtime.Pipeline, credential any) *Client[generated.ServiceClient] { return &Client[generated.ServiceClient]{ - inner: generated.NewServiceClient(containerURL, pipeline), - sharedKey: sharedKey, + inner: generated.NewServiceClient(containerURL, pipeline), + credential: credential, } } -func NewContainerClient(containerURL string, pipeline runtime.Pipeline, sharedKey *exported.SharedKeyCredential) *Client[generated.ContainerClient] { +func NewContainerClient(containerURL string, pipeline runtime.Pipeline, credential any) *Client[generated.ContainerClient] { return &Client[generated.ContainerClient]{ - inner: generated.NewContainerClient(containerURL, pipeline), - sharedKey: sharedKey, + inner: generated.NewContainerClient(containerURL, pipeline), + credential: credential, } } -func NewBlobClient(blobURL string, pipeline runtime.Pipeline, sharedKey *exported.SharedKeyCredential) *Client[generated.BlobClient] { +func NewBlobClient(blobURL string, pipeline runtime.Pipeline, credential any) *Client[generated.BlobClient] { return &Client[generated.BlobClient]{ - inner: generated.NewBlobClient(blobURL, pipeline), - sharedKey: sharedKey, + inner: generated.NewBlobClient(blobURL, pipeline), + credential: credential, } } diff --git a/sdk/storage/azblob/internal/exported/blob_batch.go b/sdk/storage/azblob/internal/exported/blob_batch.go new file mode 100644 index 000000000000..64a88688a49d --- /dev/null +++ b/sdk/storage/azblob/internal/exported/blob_batch.go @@ -0,0 +1,279 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package exported + +import ( + "bufio" + "bytes" + "errors" + "fmt" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/internal/log" + "github.com/Azure/azure-sdk-for-go/sdk/internal/uuid" + "github.com/Azure/azure-sdk-for-go/sdk/storage/azblob/internal/shared" + "io" + "mime" + "mime/multipart" + "net/http" + "net/textproto" + "strconv" + "strings" +) + +const ( + batchIdPrefix = "batch_" + httpVersion = "HTTP/1.1" + httpNewline = "\r\n" +) + +// createBatchID is used for creating a new batch id which is used as batch boundary in the request body +func createBatchID() (string, error) { + batchID, err := uuid.New() + if err != nil { + return "", err + } + + return batchIdPrefix + batchID.String(), nil +} + +// buildSubRequest is used for building the sub-request. Example: +// DELETE /container0/blob0 HTTP/1.1 +// x-ms-date: Thu, 14 Jun 2018 16:46:54 GMT +// Authorization: SharedKey account:G4jjBXA7LI/RnWKIOQ8i9xH4p76pAQ+4Fs4R1VxasaE= +// Content-Length: 0 +func buildSubRequest(req *policy.Request) []byte { + var batchSubRequest strings.Builder + blobPath := req.Raw().URL.Path + if len(req.Raw().URL.RawQuery) > 0 { + blobPath += "?" + req.Raw().URL.RawQuery + } + + batchSubRequest.WriteString(fmt.Sprintf("%s %s %s%s", req.Raw().Method, blobPath, httpVersion, httpNewline)) + + for k, v := range req.Raw().Header { + if strings.EqualFold(k, shared.HeaderXmsVersion) { + continue + } + if len(v) > 0 { + batchSubRequest.WriteString(fmt.Sprintf("%v: %v%v", k, v[0], httpNewline)) + } + } + + batchSubRequest.WriteString(httpNewline) + return []byte(batchSubRequest.String()) +} + +// CreateBatchRequest creates a new batch request using the sub-requests present in the BlobBatchBuilder. +// +// Example of a sub-request in the batch request body: +// +// --batch_357de4f7-6d0b-4e02-8cd2-6361411a9525 +// Content-Type: application/http +// Content-Transfer-Encoding: binary +// Content-ID: 0 +// +// DELETE /container0/blob0 HTTP/1.1 +// x-ms-date: Thu, 14 Jun 2018 16:46:54 GMT +// Authorization: SharedKey account:G4jjBXA7LI/RnWKIOQ8i9xH4p76pAQ+4Fs4R1VxasaE= +// Content-Length: 0 +func CreateBatchRequest(bb *BlobBatchBuilder) ([]byte, string, error) { + batchID, err := createBatchID() + if err != nil { + return nil, "", err + } + + // Create a new multipart buffer + reqBody := &bytes.Buffer{} + writer := multipart.NewWriter(reqBody) + + // Set the boundary + err = writer.SetBoundary(batchID) + if err != nil { + return nil, "", err + } + + partHeaders := make(textproto.MIMEHeader) + partHeaders["Content-Type"] = []string{"application/http"} + partHeaders["Content-Transfer-Encoding"] = []string{"binary"} + var partWriter io.Writer + + for i, req := range bb.SubRequests { + if bb.AuthPolicy != nil { + _, err := bb.AuthPolicy.Do(req) + if err != nil && !strings.EqualFold(err.Error(), "no more policies") { + if log.Should(EventSubmitBatch) { + log.Writef(EventSubmitBatch, "failed to authorize sub-request for %v.\nError: %v", req.Raw().URL.Path, err.Error()) + } + return nil, "", err + } + } + + partHeaders["Content-ID"] = []string{fmt.Sprintf("%v", i)} + partWriter, err = writer.CreatePart(partHeaders) + if err != nil { + return nil, "", err + } + + _, err = partWriter.Write(buildSubRequest(req)) + if err != nil { + return nil, "", err + } + } + + // Close the multipart writer + err = writer.Close() + if err != nil { + return nil, "", err + } + + return reqBody.Bytes(), batchID, nil +} + +// UpdateSubRequestHeaders updates the sub-request headers. +// Removes x-ms-version header. +func UpdateSubRequestHeaders(req *policy.Request) { + // remove x-ms-version header from the request header + for k := range req.Raw().Header { + if strings.EqualFold(k, shared.HeaderXmsVersion) { + delete(req.Raw().Header, k) + } + } +} + +// BatchResponseItem contains the response for the individual sub-requests. +type BatchResponseItem struct { + ContentID *int + ContainerName *string + BlobName *string + RequestID *string + Version *string + Error error // nil error indicates that the batch sub-request operation is successful +} + +func getResponseBoundary(contentType *string) (string, error) { + if contentType == nil { + return "", fmt.Errorf("Content-Type returned in SubmitBatch response is nil") + } + + _, params, err := mime.ParseMediaType(*contentType) + if err != nil { + return "", err + } + + if val, ok := params["boundary"]; ok { + return val, nil + } else { + return "", fmt.Errorf("batch boundary not present in Content-Type header of the SubmitBatch response.\nContent-Type: %v", *contentType) + } +} + +func getContentID(part *multipart.Part) (*int, error) { + contentID := part.Header.Get("Content-ID") + if contentID == "" { + return nil, nil + } + + val, err := strconv.Atoi(strings.TrimSpace(contentID)) + if err != nil { + return nil, err + } + return &val, nil +} + +func getResponseHeader(key string, resp *http.Response) *string { + val := resp.Header.Get(key) + if val == "" { + return nil + } + return &val +} + +// ParseBlobBatchResponse is used for parsing the batch response body into individual sub-responses for each item in the batch. +func ParseBlobBatchResponse(respBody io.ReadCloser, contentType *string, subRequests []*policy.Request) ([]*BatchResponseItem, error) { + boundary, err := getResponseBoundary(contentType) + if err != nil { + return nil, err + } + + respReader := multipart.NewReader(respBody, boundary) + var responses []*BatchResponseItem + + for { + part, err := respReader.NextPart() + if errors.Is(err, io.EOF) { + break + } else if err != nil { + return nil, err + } + + batchSubResponse := &BatchResponseItem{} + batchSubResponse.ContentID, err = getContentID(part) + if err != nil { + return nil, err + } + + if batchSubResponse.ContentID != nil { + path := strings.Trim(subRequests[*batchSubResponse.ContentID].Raw().URL.Path, "/") + p := strings.Split(path, "/") + batchSubResponse.ContainerName = to.Ptr(p[0]) + batchSubResponse.BlobName = to.Ptr(strings.Join(p[1:], "/")) + } + + respBytes, err := io.ReadAll(part) + if err != nil { + return nil, err + } + respBytes = append(respBytes, byte('\n')) + buf := bytes.NewBuffer(respBytes) + resp, err := http.ReadResponse(bufio.NewReader(buf), nil) + // sub-response parsing error + if err != nil { + return nil, err + } + + batchSubResponse.RequestID = getResponseHeader(shared.HeaderXmsRequestID, resp) + batchSubResponse.Version = getResponseHeader(shared.HeaderXmsVersion, resp) + + // sub-response failure + if resp.StatusCode < 200 || resp.StatusCode >= 300 { + if len(responses) == 0 && batchSubResponse.ContentID == nil { + // this case can happen when the parent request fails. + // For example, batch request having more than 256 sub-requests. + return nil, fmt.Errorf("%v", string(respBytes)) + } + + resp.Request = subRequests[*batchSubResponse.ContentID].Raw() + batchSubResponse.Error = runtime.NewResponseError(resp) + } + + responses = append(responses, batchSubResponse) + } + + if len(responses) != len(subRequests) { + return nil, fmt.Errorf("expected %v responses, got %v for the batch ID: %v", len(subRequests), len(responses), boundary) + } + + return responses, nil +} + +// not exported but used for batch request creation + +// BlobBatchBuilder is used for creating the blob batch request +type BlobBatchBuilder struct { + AuthPolicy policy.Policy + SubRequests []*policy.Request +} + +// BlobBatchOperationType defines the operation of the blob batch sub-requests. +type BlobBatchOperationType string + +const ( + BatchDeleteOperationType BlobBatchOperationType = "delete" + BatchSetTierOperationType BlobBatchOperationType = "set tier" +) diff --git a/sdk/storage/azblob/internal/exported/log_events.go b/sdk/storage/azblob/internal/exported/log_events.go index 9a368d0cdf12..d775fb5c88aa 100644 --- a/sdk/storage/azblob/internal/exported/log_events.go +++ b/sdk/storage/azblob/internal/exported/log_events.go @@ -1,5 +1,8 @@ +//go:build go1.18 +// +build go1.18 + // Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. +// Licensed under the MIT License. See License.txt in the project root for license information. package exported @@ -11,4 +14,7 @@ import ( const ( // EventUpload is used when we compute number of blocks to upload and size of each block. EventUpload log.Event = "azblob.Upload" + + // EventSubmitBatch is used for logging events related to submit blob batch operation. + EventSubmitBatch log.Event = "azblob.SubmitBatch" ) diff --git a/sdk/storage/azblob/internal/generated/autorest.md b/sdk/storage/azblob/internal/generated/autorest.md index 6b3e03c7ca32..6b304bcdc83d 100644 --- a/sdk/storage/azblob/internal/generated/autorest.md +++ b/sdk/storage/azblob/internal/generated/autorest.md @@ -384,4 +384,29 @@ directive: transform: >- return $. replace(/xml:"CORS>CORSRule"/g, "xml:\"Cors>CorsRule\""); -``` \ No newline at end of file +``` + +### Fix Content-Type header in submit batch request + +``` yaml +directive: +- from: + - zz_container_client.go + - zz_service_client.go + where: $ + transform: >- + return $. + replace (/req.SetBody\(body\,\s+\"application\/xml\"\)/g, `req.SetBody(body, multipartContentType)`); +``` + +### Fix response status code check in submit batch request + +``` yaml +directive: +- from: zz_service_client.go + where: $ + transform: >- + return $. + replace(/if\s+!runtime\.HasStatusCode\(resp,\s+http\.StatusOK\)\s+\{\s*\n\t\treturn\s+ServiceClientSubmitBatchResponse\{\}\,\s+runtime\.NewResponseError\(resp\)\s*\n\t\}/g, + `if !runtime.HasStatusCode(resp, http.StatusAccepted) {\n\t\treturn ServiceClientSubmitBatchResponse{}, runtime.NewResponseError(resp)\n\t}`); +``` diff --git a/sdk/storage/azblob/internal/generated/blob_client.go b/sdk/storage/azblob/internal/generated/blob_client.go index c3d3c2607c8c..449f86e77ef6 100644 --- a/sdk/storage/azblob/internal/generated/blob_client.go +++ b/sdk/storage/azblob/internal/generated/blob_client.go @@ -6,7 +6,11 @@ package generated -import "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" +import ( + "context" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" +) func (client *BlobClient) Endpoint() string { return client.endpoint @@ -15,3 +19,11 @@ func (client *BlobClient) Endpoint() string { func (client *BlobClient) Pipeline() runtime.Pipeline { return client.pl } + +func (client *BlobClient) DeleteCreateRequest(ctx context.Context, options *BlobClientDeleteOptions, leaseAccessConditions *LeaseAccessConditions, modifiedAccessConditions *ModifiedAccessConditions) (*policy.Request, error) { + return client.deleteCreateRequest(ctx, options, leaseAccessConditions, modifiedAccessConditions) +} + +func (client *BlobClient) SetTierCreateRequest(ctx context.Context, tier AccessTier, options *BlobClientSetTierOptions, leaseAccessConditions *LeaseAccessConditions, modifiedAccessConditions *ModifiedAccessConditions) (*policy.Request, error) { + return client.setTierCreateRequest(ctx, tier, options, leaseAccessConditions, modifiedAccessConditions) +} diff --git a/sdk/storage/azblob/internal/generated/zz_container_client.go b/sdk/storage/azblob/internal/generated/zz_container_client.go index 4658ccc4d4be..c02992946e5b 100644 --- a/sdk/storage/azblob/internal/generated/zz_container_client.go +++ b/sdk/storage/azblob/internal/generated/zz_container_client.go @@ -1459,7 +1459,7 @@ func (client *ContainerClient) submitBatchCreateRequest(ctx context.Context, con req.Raw().Header["x-ms-client-request-id"] = []string{*options.RequestID} } req.Raw().Header["Accept"] = []string{"application/xml"} - return req, req.SetBody(body, "application/xml") + return req, req.SetBody(body, multipartContentType) } // submitBatchHandleResponse handles the SubmitBatch response. diff --git a/sdk/storage/azblob/internal/generated/zz_service_client.go b/sdk/storage/azblob/internal/generated/zz_service_client.go index c54358c521aa..b700211c5e0d 100644 --- a/sdk/storage/azblob/internal/generated/zz_service_client.go +++ b/sdk/storage/azblob/internal/generated/zz_service_client.go @@ -513,7 +513,7 @@ func (client *ServiceClient) SubmitBatch(ctx context.Context, contentLength int6 if err != nil { return ServiceClientSubmitBatchResponse{}, err } - if !runtime.HasStatusCode(resp, http.StatusOK) { + if !runtime.HasStatusCode(resp, http.StatusAccepted) { return ServiceClientSubmitBatchResponse{}, runtime.NewResponseError(resp) } return client.submitBatchHandleResponse(resp) @@ -539,7 +539,7 @@ func (client *ServiceClient) submitBatchCreateRequest(ctx context.Context, conte req.Raw().Header["x-ms-client-request-id"] = []string{*options.RequestID} } req.Raw().Header["Accept"] = []string{"application/xml"} - return req, req.SetBody(body, "application/xml") + return req, req.SetBody(body, multipartContentType) } // submitBatchHandleResponse handles the SubmitBatch response. diff --git a/sdk/storage/azblob/internal/shared/shared.go b/sdk/storage/azblob/internal/shared/shared.go index 7751781defac..c473da224830 100644 --- a/sdk/storage/azblob/internal/shared/shared.go +++ b/sdk/storage/azblob/internal/shared/shared.go @@ -38,6 +38,8 @@ const ( HeaderIfNoneMatch = "If-None-Match" HeaderIfUnmodifiedSince = "If-Unmodified-Since" HeaderRange = "Range" + HeaderXmsVersion = "x-ms-version" + HeaderXmsRequestID = "x-ms-request-id" ) const crc64Polynomial uint64 = 0x9A6C9329AC4BC9B5 diff --git a/sdk/storage/azblob/internal/testcommon/clients_auth.go b/sdk/storage/azblob/internal/testcommon/clients_auth.go index 62b538f958e2..470d8f7fb02c 100644 --- a/sdk/storage/azblob/internal/testcommon/clients_auth.go +++ b/sdk/storage/azblob/internal/testcommon/clients_auth.go @@ -11,6 +11,7 @@ import ( "context" "errors" "fmt" + "github.com/Azure/azure-sdk-for-go/sdk/storage/azblob/sas" "strings" "testing" "time" @@ -294,3 +295,72 @@ func ListBlobsCount(ctx context.Context, _require *require.Assertions, listPager } _require.Len(found, ctr) } + +func GetServiceSAS(containerName string, permissions sas.BlobPermissions) (string, error) { + credential, err := GetGenericSharedKeyCredential(TestAccountDefault) + if err != nil { + return "", err + } + + sasQueryParams, err := sas.BlobSignatureValues{ + Protocol: sas.ProtocolHTTPS, + StartTime: time.Now().UTC(), + ExpiryTime: time.Now().UTC().Add(2 * time.Hour), + Permissions: permissions.String(), + ContainerName: containerName, + }.SignWithSharedKey(credential) + if err != nil { + return "", err + } + + return sasQueryParams.Encode(), nil +} + +func GetUserDelegationSAS(svcClient *service.Client, containerName string, permissions sas.BlobPermissions) (string, error) { + // Set current and past time and create key + now := time.Now().UTC().Add(-10 * time.Second) + expiry := now.Add(2 * time.Hour) + info := service.KeyInfo{ + Start: to.Ptr(now.UTC().Format(sas.TimeFormat)), + Expiry: to.Ptr(expiry.UTC().Format(sas.TimeFormat)), + } + + udc, err := svcClient.GetUserDelegationCredential(context.Background(), info, nil) + if err != nil { + return "", err + } + + // Create Blob Signature Values with desired permissions and sign with user delegation credential + sasQueryParams, err := sas.BlobSignatureValues{ + Protocol: sas.ProtocolHTTPS, + StartTime: time.Now().UTC().Add(time.Second * -10), + ExpiryTime: time.Now().UTC().Add(15 * time.Minute), + Permissions: permissions.String(), + ContainerName: containerName, + }.SignWithUserDelegation(udc) + if err != nil { + return "", err + } + + return sasQueryParams.Encode(), nil +} + +func GetAccountSAS(permissions sas.AccountPermissions, resourceTypes sas.AccountResourceTypes) (string, error) { + credential, err := GetGenericSharedKeyCredential(TestAccountDefault) + if err != nil { + return "", err + } + + sasQueryParams, err := sas.AccountSignatureValues{ + Protocol: sas.ProtocolHTTPS, + StartTime: time.Now().UTC(), + ExpiryTime: time.Now().UTC().Add(1 * time.Hour), + Permissions: permissions.String(), + ResourceTypes: resourceTypes.String(), + }.SignWithSharedKey(credential) + if err != nil { + return "", err + } + + return sasQueryParams.Encode(), nil +} diff --git a/sdk/storage/azblob/log.go b/sdk/storage/azblob/log.go index a090394aa6a6..4d26992d3ebd 100644 --- a/sdk/storage/azblob/log.go +++ b/sdk/storage/azblob/log.go @@ -3,9 +3,14 @@ package azblob -import "github.com/Azure/azure-sdk-for-go/sdk/storage/azblob/internal/exported" +import ( + "github.com/Azure/azure-sdk-for-go/sdk/storage/azblob/internal/exported" +) const ( // EventUpload is used for logging events related to upload operation. EventUpload = exported.EventUpload + + // EventSubmitBatch is used for logging events related to submit blob batch operation. + EventSubmitBatch = exported.EventSubmitBatch ) diff --git a/sdk/storage/azblob/service/batch_builder.go b/sdk/storage/azblob/service/batch_builder.go new file mode 100644 index 000000000000..924fd1081fee --- /dev/null +++ b/sdk/storage/azblob/service/batch_builder.go @@ -0,0 +1,94 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package service + +import ( + "context" + "fmt" + "net/url" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/storage/azblob/blob" + "github.com/Azure/azure-sdk-for-go/sdk/storage/azblob/internal/exported" +) + +// BatchBuilder is used for creating the batch operations list. It contains the list of either delete or set tier sub-requests. +// NOTE: All sub-requests in the batch must be of the same type, either delete or set tier. +type BatchBuilder struct { + endpoint string + authPolicy policy.Policy + subRequests []*policy.Request + operationType *exported.BlobBatchOperationType +} + +func (bb *BatchBuilder) checkOperationType(operationType exported.BlobBatchOperationType) error { + if bb.operationType == nil { + bb.operationType = &operationType + return nil + } + if *bb.operationType != operationType { + return fmt.Errorf("BlobBatch only supports one operation type per batch and is already being used for %s operations", *bb.operationType) + } + return nil +} + +// Delete operation is used to add delete sub-request to the batch builder. +func (bb *BatchBuilder) Delete(containerName string, blobName string, options *BatchDeleteOptions) error { + err := bb.checkOperationType(exported.BatchDeleteOperationType) + if err != nil { + return err + } + + blobName = url.PathEscape(blobName) + blobURL := runtime.JoinPaths(bb.endpoint, containerName, blobName) + + blobClient, err := blob.NewClientWithNoCredential(blobURL, nil) + if err != nil { + return err + } + + deleteOptions, leaseInfo, accessConditions := options.format() + req, err := getGeneratedBlobClient(blobClient).DeleteCreateRequest(context.TODO(), deleteOptions, leaseInfo, accessConditions) + if err != nil { + return err + } + + // remove x-ms-version header + exported.UpdateSubRequestHeaders(req) + + bb.subRequests = append(bb.subRequests, req) + return nil +} + +// SetTier operation is used to add set tier sub-request to the batch builder. +func (bb *BatchBuilder) SetTier(containerName string, blobName string, accessTier blob.AccessTier, options *BatchSetTierOptions) error { + err := bb.checkOperationType(exported.BatchSetTierOperationType) + if err != nil { + return err + } + + blobName = url.PathEscape(blobName) + blobURL := runtime.JoinPaths(bb.endpoint, containerName, blobName) + + blobClient, err := blob.NewClientWithNoCredential(blobURL, nil) + if err != nil { + return err + } + + setTierOptions, leaseInfo, accessConditions := options.format() + req, err := getGeneratedBlobClient(blobClient).SetTierCreateRequest(context.TODO(), accessTier, setTierOptions, leaseInfo, accessConditions) + if err != nil { + return err + } + + // remove x-ms-version header + exported.UpdateSubRequestHeaders(req) + + bb.subRequests = append(bb.subRequests, req) + return nil +} diff --git a/sdk/storage/azblob/service/client.go b/sdk/storage/azblob/service/client.go index 19d613aaf65f..7b1912e9018e 100644 --- a/sdk/storage/azblob/service/client.go +++ b/sdk/storage/azblob/service/client.go @@ -7,7 +7,11 @@ package service import ( + "bytes" "context" + "errors" + "fmt" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/streaming" "github.com/Azure/azure-sdk-for-go/sdk/storage/azblob/bloberror" "net/http" "strings" @@ -43,7 +47,7 @@ func NewClient(serviceURL string, cred azcore.TokenCredential, options *ClientOp conOptions.PerRetryPolicies = append(conOptions.PerRetryPolicies, authPolicy) pl := runtime.NewPipeline(exported.ModuleName, exported.ModuleVersion, runtime.PipelineOptions{}, &conOptions.ClientOptions) - return (*Client)(base.NewServiceClient(serviceURL, pl, nil)), nil + return (*Client)(base.NewServiceClient(serviceURL, pl, &cred)), nil } // NewClientWithNoCredential creates an instance of Client with the specified values. @@ -115,6 +119,15 @@ func (s *Client) sharedKey() *SharedKeyCredential { return base.SharedKey((*base.Client[generated.ServiceClient])(s)) } +func (s *Client) credential() any { + return base.Credential((*base.Client[generated.ServiceClient])(s)) +} + +// helper method to return the generated.BlobClient which is used for creating the sub-requests +func getGeneratedBlobClient(b *blob.Client) *generated.BlobClient { + return base.InnerClient((*base.Client[generated.BlobClient])(b)) +} + // URL returns the URL endpoint used by the Client object. func (s *Client) URL() string { return s.generated().Endpoint() @@ -124,7 +137,7 @@ func (s *Client) URL() string { // this Client's URL. The new container.Client uses the same request policy pipeline as the Client. func (s *Client) NewContainerClient(containerName string) *container.Client { containerURL := runtime.JoinPaths(s.generated().Endpoint(), containerName) - return (*container.Client)(base.NewContainerClient(containerURL, s.generated().Pipeline(), s.sharedKey())) + return (*container.Client)(base.NewContainerClient(containerURL, s.generated().Pipeline(), s.credential())) } // CreateContainer is a lifecycle method to creates a new container under the specified account. @@ -280,3 +293,68 @@ func (s *Client) FilterBlobs(ctx context.Context, where string, o *FilterBlobsOp resp, err := s.generated().FilterBlobs(ctx, where, serviceFilterBlobsOptions) return resp, err } + +// NewBatchBuilder creates an instance of BatchBuilder using the same auth policy as the client. +// BatchBuilder is used to build the batch consisting of either delete or set tier sub-requests. +// All sub-requests in the batch must be of the same type, either delete or set tier. +// NOTE: Service level Blob Batch operation is supported only when the Client was created using SharedKeyCredential and Account SAS. +func (s *Client) NewBatchBuilder() (*BatchBuilder, error) { + var authPolicy policy.Policy + + switch cred := s.credential().(type) { + case *azcore.TokenCredential: + authPolicy = runtime.NewBearerTokenPolicy(*cred, []string{shared.TokenScope}, nil) + case *SharedKeyCredential: + authPolicy = exported.NewSharedKeyCredPolicy(cred) + case nil: + // for authentication using SAS + authPolicy = nil + default: + return nil, fmt.Errorf("unrecognised authentication type %T", cred) + } + + return &BatchBuilder{ + endpoint: s.URL(), + authPolicy: authPolicy, + }, nil +} + +// SubmitBatch operation allows multiple API calls to be embedded into a single HTTP request. +// It builds the request body using the BatchBuilder object passed. +// BatchBuilder contains the list of operations to be submitted. It supports up to 256 sub-requests in a single batch. +// For more information, see https://docs.microsoft.com/rest/api/storageservices/blob-batch. +func (s *Client) SubmitBatch(ctx context.Context, bb *BatchBuilder, options *SubmitBatchOptions) (SubmitBatchResponse, error) { + if bb == nil || len(bb.subRequests) == 0 { + return SubmitBatchResponse{}, errors.New("batch builder is empty") + } + + // create the request body + batchReq, batchID, err := exported.CreateBatchRequest(&exported.BlobBatchBuilder{ + AuthPolicy: bb.authPolicy, + SubRequests: bb.subRequests, + }) + if err != nil { + return SubmitBatchResponse{}, err + } + + reader := bytes.NewReader(batchReq) + rsc := streaming.NopCloser(reader) + multipartContentType := "multipart/mixed; boundary=" + batchID + + resp, err := s.generated().SubmitBatch(ctx, int64(len(batchReq)), multipartContentType, rsc, options.format()) + if err != nil { + return SubmitBatchResponse{}, err + } + + batchResponses, err := exported.ParseBlobBatchResponse(resp.Body, resp.ContentType, bb.subRequests) + if err != nil { + return SubmitBatchResponse{}, err + } + + return SubmitBatchResponse{ + Responses: batchResponses, + ContentType: resp.ContentType, + RequestID: resp.RequestID, + Version: resp.Version, + }, nil +} diff --git a/sdk/storage/azblob/service/client_test.go b/sdk/storage/azblob/service/client_test.go index 00b88de5bcaf..0894fc415692 100644 --- a/sdk/storage/azblob/service/client_test.go +++ b/sdk/storage/azblob/service/client_test.go @@ -9,6 +9,9 @@ package service_test import ( "context" "fmt" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/streaming" + "github.com/Azure/azure-sdk-for-go/sdk/storage/azblob/blob" + "github.com/Azure/azure-sdk-for-go/sdk/storage/azblob/internal/exported" "io" "os" "strings" @@ -1056,3 +1059,692 @@ func (s *ServiceRecordedTestsSuite) TestAccountFilterBlobs() { _require.Nil(err) _require.Len(resp.FilterBlobSegment.Blobs, 0) } + +func batchSetup(containerName string, svcClient *service.Client, bb *service.BatchBuilder, operationType exported.BlobBatchOperationType) ([]*container.Client, error) { + var cntClients []*container.Client + for i := 0; i < 5; i++ { + cntName := fmt.Sprintf("%v%v", containerName, i) + cntClient := svcClient.NewContainerClient(cntName) + _, err := cntClient.Create(context.Background(), nil) + if err != nil { + return cntClients, err + } + cntClients = append(cntClients, cntClient) + + bbName := fmt.Sprintf("blockblob%v", i*2) + bbClient := cntClient.NewBlockBlobClient(bbName) + _, err = bbClient.Upload(context.Background(), streaming.NopCloser(strings.NewReader(testcommon.BlockBlobDefaultData)), nil) + if err != nil { + return cntClients, err + } + + if operationType == exported.BatchSetTierOperationType { + err = bb.SetTier(cntName, bbName, blob.AccessTierCool, nil) + } else { + err = bb.Delete(cntName, bbName, nil) + } + if err != nil { + return cntClients, err + } + + bbName = fmt.Sprintf("blockblob%v", i*2+1) + bbClient = cntClient.NewBlockBlobClient(bbName) + _, err = bbClient.Upload(context.Background(), streaming.NopCloser(strings.NewReader(testcommon.BlockBlobDefaultData)), nil) + if err != nil { + return cntClients, err + } + + if operationType == exported.BatchSetTierOperationType { + err = bb.SetTier(cntName, bbName, blob.AccessTierCool, nil) + } else { + err = bb.Delete(cntName, bbName, nil) + } + if err != nil { + return cntClients, err + } + } + return cntClients, nil +} + +func batchClean(cntClients []*container.Client) { + for _, cntClient := range cntClients { + _, _ = cntClient.Delete(context.Background(), nil) + } +} + +func (s *ServiceUnrecordedTestsSuite) TestServiceBlobBatchDeleteUsingSharedKey() { + _require := require.New(s.T()) + testName := s.T().Name() + + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + containerName := testcommon.GenerateContainerName(testName) + + bb, err := svcClient.NewBatchBuilder() + _require.NoError(err) + + cntClients, err := batchSetup(containerName, svcClient, bb, exported.BatchDeleteOperationType) + defer batchClean(cntClients) + _require.NoError(err) + + for _, cntClient := range cntClients { + pager := cntClient.NewListBlobsFlatPager(nil) + ctr := 0 + for pager.More() { + resp, err := pager.NextPage(context.Background()) + handleError(err) + ctr += len(resp.ListBlobsFlatSegmentResponse.Segment.BlobItems) + } + _require.Equal(ctr, 2) + } + + resp, err := svcClient.SubmitBatch(context.Background(), bb, nil) + _require.NoError(err) + _require.NotNil(resp.RequestID) + + for _, cntClient := range cntClients { + pager := cntClient.NewListBlobsFlatPager(nil) + ctr := 0 + for pager.More() { + resp, err := pager.NextPage(context.Background()) + handleError(err) + ctr += len(resp.ListBlobsFlatSegmentResponse.Segment.BlobItems) + } + _require.Equal(ctr, 0) + } +} + +func (s *ServiceUnrecordedTestsSuite) TestServiceBlobBatchSetTierUsingSharedKey() { + _require := require.New(s.T()) + testName := s.T().Name() + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + containerName := testcommon.GenerateContainerName(testName) + + bb, err := svcClient.NewBatchBuilder() + _require.NoError(err) + + cntClients, err := batchSetup(containerName, svcClient, bb, exported.BatchSetTierOperationType) + defer batchClean(cntClients) + _require.NoError(err) + + for _, cntClient := range cntClients { + pager := cntClient.NewListBlobsFlatPager(nil) + var ctrHot, ctrCool = 0, 0 + for pager.More() { + resp, err := pager.NextPage(context.Background()) + handleError(err) + for _, blobItem := range resp.ListBlobsFlatSegmentResponse.Segment.BlobItems { + if *blobItem.Properties.AccessTier == container.AccessTierHot { + ctrHot++ + } else if *blobItem.Properties.AccessTier == container.AccessTierCool { + ctrCool++ + } + } + } + _require.Equal(ctrHot, 2) + _require.Equal(ctrCool, 0) + } + + resp, err := svcClient.SubmitBatch(context.Background(), bb, nil) + _require.NoError(err) + _require.NotNil(resp.RequestID) + + for _, cntClient := range cntClients { + pager := cntClient.NewListBlobsFlatPager(nil) + var ctrHot, ctrCool = 0, 0 + for pager.More() { + resp, err := pager.NextPage(context.Background()) + handleError(err) + for _, blobItem := range resp.ListBlobsFlatSegmentResponse.Segment.BlobItems { + if *blobItem.Properties.AccessTier == container.AccessTierHot { + ctrHot++ + } else if *blobItem.Properties.AccessTier == container.AccessTierCool { + ctrCool++ + } + } + } + _require.Equal(ctrHot, 0) + _require.Equal(ctrCool, 2) + } +} + +/* +func (s *ServiceUnrecordedTestsSuite) TestServiceBlobBatchDeletePartialFailureUsingTokenCredential() { + _require := require.New(s.T()) + testName := s.T().Name() + accountName, ok := os.LookupEnv("AZURE_STORAGE_ACCOUNT_NAME") + if !ok { + panic("AZURE_STORAGE_ACCOUNT_NAME could not be found") + } + tenantID, ok := os.LookupEnv("AZURE_STORAGE_TENANT_ID") + if !ok { + panic("AZURE_STORAGE_TENANT_ID could not be found") + } + clientID, ok := os.LookupEnv("AZURE_STORAGE_CLIENT_ID") + if !ok { + panic("AZURE_STORAGE_CLIENT_ID could not be found") + } + clientSecret, ok := os.LookupEnv("AZURE_STORAGE_CLIENT_SECRET") + if !ok { + panic("AZURE_STORAGE_CLIENT_SECRET could not be found") + } + + cred, err := azidentity.NewClientSecretCredential(tenantID, clientID, clientSecret, nil) + _require.NoError(err) + + svcClient, err := service.NewClient("https://"+accountName+".blob.core.windows.net/", cred, nil) + _require.NoError(err) + + containerName := testcommon.GenerateContainerName(testName) + + bb, err := svcClient.NewBatchBuilder() + _require.NoError(err) + + cntClients, err := batchSetup(containerName, svcClient, bb, exported.BatchDeleteOperationType) + defer batchClean(cntClients) + _require.NoError(err) + + // adding containers and blobs which does not exist + for i := 0; i < 5; i++ { + err = bb.Delete(fmt.Sprintf("fakecontainer%v", i), fmt.Sprintf("fakeblob%v", i), nil) + _require.NoError(err) + } + + for _, cntClient := range cntClients { + pager := cntClient.NewListBlobsFlatPager(nil) + ctr := 0 + for pager.More() { + resp, err := pager.NextPage(context.Background()) + handleError(err) + ctr += len(resp.ListBlobsFlatSegmentResponse.Segment.BlobItems) + } + _require.Equal(ctr, 2) + } + + resp, err := svcClient.SubmitBatch(context.Background(), bb, nil) + _require.NoError(err) + _require.NotNil(resp.RequestID) + + var ctrSuccess, ctrFailure = 0, 0 + for _, subResp := range resp.Responses { + _require.NotNil(subResp.ContentID) + _require.NotNil(subResp.ContainerName) + _require.NotNil(subResp.BlobName) + _require.NotNil(subResp.RequestID) + _require.NotNil(subResp.Version) + if subResp.Error == nil { + ctrSuccess++ + } else { + ctrFailure++ + _require.NotEmpty(subResp.Error.Error()) + testcommon.ValidateBlobErrorCode(_require, subResp.Error, bloberror.ContainerNotFound) + } + } + _require.Equal(ctrSuccess, 10) + _require.Equal(ctrFailure, 5) + + for _, cntClient := range cntClients { + pager := cntClient.NewListBlobsFlatPager(nil) + ctr := 0 + for pager.More() { + resp, err := pager.NextPage(context.Background()) + handleError(err) + ctr += len(resp.ListBlobsFlatSegmentResponse.Segment.BlobItems) + } + _require.Equal(ctr, 0) + } +} + +func (s *ServiceUnrecordedTestsSuite) TestServiceBlobBatchSetTierSuccessUsingTokenCredential() { + _require := require.New(s.T()) + testName := s.T().Name() + accountName, ok := os.LookupEnv("AZURE_STORAGE_ACCOUNT_NAME") + if !ok { + panic("AZURE_STORAGE_ACCOUNT_NAME could not be found") + } + tenantID, ok := os.LookupEnv("AZURE_STORAGE_TENANT_ID") + if !ok { + panic("AZURE_STORAGE_TENANT_ID could not be found") + } + clientID, ok := os.LookupEnv("AZURE_STORAGE_CLIENT_ID") + if !ok { + panic("AZURE_STORAGE_CLIENT_ID could not be found") + } + clientSecret, ok := os.LookupEnv("AZURE_STORAGE_CLIENT_SECRET") + if !ok { + panic("AZURE_STORAGE_CLIENT_SECRET could not be found") + } + + cred, err := azidentity.NewClientSecretCredential(tenantID, clientID, clientSecret, nil) + _require.NoError(err) + + svcClient, err := service.NewClient("https://"+accountName+".blob.core.windows.net/", cred, nil) + _require.NoError(err) + + containerName := testcommon.GenerateContainerName(testName) + + bb, err := svcClient.NewBatchBuilder() + _require.NoError(err) + + cntClients, err := batchSetup(containerName, svcClient, bb, exported.BatchSetTierOperationType) + defer batchClean(cntClients) + _require.NoError(err) + + for _, cntClient := range cntClients { + pager := cntClient.NewListBlobsFlatPager(nil) + var ctrHot, ctrCool = 0, 0 + for pager.More() { + resp, err := pager.NextPage(context.Background()) + handleError(err) + for _, blobItem := range resp.ListBlobsFlatSegmentResponse.Segment.BlobItems { + if *blobItem.Properties.AccessTier == container.AccessTierHot { + ctrHot++ + } else if *blobItem.Properties.AccessTier == container.AccessTierCool { + ctrCool++ + } + } + } + _require.Equal(ctrHot, 2) + _require.Equal(ctrCool, 0) + } + + resp, err := svcClient.SubmitBatch(context.Background(), bb, nil) + _require.NoError(err) + _require.NotNil(resp.RequestID) + + for _, subResp := range resp.Responses { + _require.NotNil(subResp.ContentID) + _require.NotNil(subResp.ContainerName) + _require.NotNil(subResp.BlobName) + _require.NotNil(subResp.RequestID) + _require.NotNil(subResp.Version) + _require.NoError(subResp.Error) + } + + for _, cntClient := range cntClients { + pager := cntClient.NewListBlobsFlatPager(nil) + var ctrHot, ctrCool = 0, 0 + for pager.More() { + resp, err := pager.NextPage(context.Background()) + handleError(err) + for _, blobItem := range resp.ListBlobsFlatSegmentResponse.Segment.BlobItems { + if *blobItem.Properties.AccessTier == container.AccessTierHot { + ctrHot++ + } else if *blobItem.Properties.AccessTier == container.AccessTierCool { + ctrCool++ + } + } + } + _require.Equal(ctrHot, 0) + _require.Equal(ctrCool, 2) + } +} +*/ + +func (s *ServiceUnrecordedTestsSuite) TestServiceBlobBatchDeleteUsingAccountSAS() { + _require := require.New(s.T()) + testName := s.T().Name() + accountName, ok := os.LookupEnv("AZURE_STORAGE_ACCOUNT_NAME") + if !ok { + panic("AZURE_STORAGE_ACCOUNT_NAME could not be found") + } + + accountSAS, err := testcommon.GetAccountSAS(sas.AccountPermissions{Read: true, Create: true, Write: true, List: true, Add: true, Delete: true}, + sas.AccountResourceTypes{Service: true, Container: true, Object: true}) + _require.NoError(err) + + svcClient, err := service.NewClientWithNoCredential("https://"+accountName+".blob.core.windows.net"+"?"+accountSAS, nil) + _require.NoError(err) + + containerName := testcommon.GenerateContainerName(testName) + + bb, err := svcClient.NewBatchBuilder() + _require.NoError(err) + + cntClients, err := batchSetup(containerName, svcClient, bb, exported.BatchDeleteOperationType) + defer batchClean(cntClients) + _require.NoError(err) + + for _, cntClient := range cntClients { + pager := cntClient.NewListBlobsFlatPager(nil) + ctr := 0 + for pager.More() { + resp, err := pager.NextPage(context.Background()) + handleError(err) + ctr += len(resp.ListBlobsFlatSegmentResponse.Segment.BlobItems) + } + _require.Equal(ctr, 2) + } + + resp, err := svcClient.SubmitBatch(context.Background(), bb, nil) + _require.NoError(err) + _require.NotNil(resp.RequestID) + + for _, cntClient := range cntClients { + pager := cntClient.NewListBlobsFlatPager(nil) + ctr := 0 + for pager.More() { + resp, err := pager.NextPage(context.Background()) + handleError(err) + ctr += len(resp.ListBlobsFlatSegmentResponse.Segment.BlobItems) + } + _require.Equal(ctr, 0) + } +} + +func (s *ServiceUnrecordedTestsSuite) TestServiceBlobBatchSetTierUsingAccountSAS() { + _require := require.New(s.T()) + testName := s.T().Name() + accountName, ok := os.LookupEnv("AZURE_STORAGE_ACCOUNT_NAME") + if !ok { + panic("AZURE_STORAGE_ACCOUNT_NAME could not be found") + } + + accountSAS, err := testcommon.GetAccountSAS(sas.AccountPermissions{Read: true, Create: true, Write: true, List: true, Add: true, Delete: true}, + sas.AccountResourceTypes{Service: true, Container: true, Object: true}) + _require.NoError(err) + + svcClient, err := service.NewClientWithNoCredential("https://"+accountName+".blob.core.windows.net"+"?"+accountSAS, nil) + _require.NoError(err) + + containerName := testcommon.GenerateContainerName(testName) + + bb, err := svcClient.NewBatchBuilder() + _require.NoError(err) + + cntClients, err := batchSetup(containerName, svcClient, bb, exported.BatchSetTierOperationType) + defer batchClean(cntClients) + _require.NoError(err) + + for _, cntClient := range cntClients { + pager := cntClient.NewListBlobsFlatPager(nil) + var ctrHot, ctrCool = 0, 0 + for pager.More() { + resp, err := pager.NextPage(context.Background()) + handleError(err) + for _, blobItem := range resp.ListBlobsFlatSegmentResponse.Segment.BlobItems { + if *blobItem.Properties.AccessTier == container.AccessTierHot { + ctrHot++ + } else if *blobItem.Properties.AccessTier == container.AccessTierCool { + ctrCool++ + } + } + } + _require.Equal(ctrHot, 2) + _require.Equal(ctrCool, 0) + } + + resp, err := svcClient.SubmitBatch(context.Background(), bb, nil) + _require.NoError(err) + _require.NotNil(resp.RequestID) + + for _, cntClient := range cntClients { + pager := cntClient.NewListBlobsFlatPager(nil) + var ctrHot, ctrCool = 0, 0 + for pager.More() { + resp, err := pager.NextPage(context.Background()) + handleError(err) + for _, blobItem := range resp.ListBlobsFlatSegmentResponse.Segment.BlobItems { + if *blobItem.Properties.AccessTier == container.AccessTierHot { + ctrHot++ + } else if *blobItem.Properties.AccessTier == container.AccessTierCool { + ctrCool++ + } + } + } + _require.Equal(ctrHot, 0) + _require.Equal(ctrCool, 2) + } +} + +func (s *ServiceUnrecordedTestsSuite) TestServiceBlobBatchDeleteUsingServiceSAS() { + _require := require.New(s.T()) + testName := s.T().Name() + svcClientSharedKey, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + containerName := testcommon.GenerateContainerName(testName) + cntClientSharedKey := testcommon.CreateNewContainer(context.Background(), _require, containerName, svcClientSharedKey) + defer testcommon.DeleteContainer(context.Background(), _require, cntClientSharedKey) + + serviceSAS, err := testcommon.GetServiceSAS(containerName, sas.BlobPermissions{Read: true, Create: true, Write: true, List: true, Add: true, Delete: true}) + _require.NoError(err) + + svcClientSAS, err := service.NewClientWithNoCredential(svcClientSharedKey.URL()+"?"+serviceSAS, nil) + _require.NoError(err) + cntClientSAS := svcClientSAS.NewContainerClient(containerName) + + bb, err := svcClientSAS.NewBatchBuilder() + _require.NoError(err) + + for i := 0; i < 10; i++ { + bbName := fmt.Sprintf("blockblob%v", i) + _ = testcommon.CreateNewBlockBlob(context.Background(), _require, bbName, cntClientSAS) + err = bb.Delete(containerName, bbName, nil) + _require.NoError(err) + } + + pager := cntClientSAS.NewListBlobsFlatPager(nil) + ctr := 0 + for pager.More() { + resp, err := pager.NextPage(context.Background()) + handleError(err) + ctr += len(resp.ListBlobsFlatSegmentResponse.Segment.BlobItems) + } + _require.Equal(ctr, 10) + + resp, err := svcClientSAS.SubmitBatch(context.Background(), bb, nil) + _require.Error(err) + _require.Nil(resp.RequestID) + testcommon.ValidateBlobErrorCode(_require, err, bloberror.AuthenticationFailed) +} + +/* +func (s *ServiceUnrecordedTestsSuite) TestServiceBlobBatchSetTierUsingUserDelegationSAS() { + _require := require.New(s.T()) + testName := s.T().Name() + accountName, ok := os.LookupEnv("AZURE_STORAGE_ACCOUNT_NAME") + if !ok { + panic("AZURE_STORAGE_ACCOUNT_NAME could not be found") + } + tenantID, ok := os.LookupEnv("AZURE_STORAGE_TENANT_ID") + if !ok { + panic("AZURE_STORAGE_TENANT_ID could not be found") + } + clientID, ok := os.LookupEnv("AZURE_STORAGE_CLIENT_ID") + if !ok { + panic("AZURE_STORAGE_CLIENT_ID could not be found") + } + clientSecret, ok := os.LookupEnv("AZURE_STORAGE_CLIENT_SECRET") + if !ok { + panic("AZURE_STORAGE_CLIENT_SECRET could not be found") + } + + cred, err := azidentity.NewClientSecretCredential(tenantID, clientID, clientSecret, nil) + _require.NoError(err) + + svcClientTokenCred, err := service.NewClient("https://"+accountName+".blob.core.windows.net/", cred, nil) + _require.NoError(err) + + containerName := testcommon.GenerateContainerName(testName) + cntClientTokenCred := testcommon.CreateNewContainer(context.Background(), _require, containerName, svcClientTokenCred) + defer testcommon.DeleteContainer(context.Background(), _require, cntClientTokenCred) + + udSAS, err := testcommon.GetUserDelegationSAS(svcClientTokenCred, containerName, sas.BlobPermissions{Read: true, Create: true, Write: true, List: true}) + _require.NoError(err) + + svcClientSAS, err := service.NewClientWithNoCredential(svcClientTokenCred.URL()+"?"+udSAS, nil) + _require.NoError(err) + cntClientSAS := svcClientSAS.NewContainerClient(containerName) + + bb, err := svcClientSAS.NewBatchBuilder() + _require.NoError(err) + + for i := 0; i < 10; i++ { + bbName := fmt.Sprintf("blockblob%v", i) + _ = testcommon.CreateNewBlockBlob(context.Background(), _require, bbName, cntClientSAS) + err = bb.SetTier(containerName, bbName, blob.AccessTierCool, nil) + _require.NoError(err) + } + + pager := cntClientSAS.NewListBlobsFlatPager(nil) + var ctrHot, ctrCool = 0, 0 + for pager.More() { + resp, err := pager.NextPage(context.Background()) + handleError(err) + for _, blobItem := range resp.ListBlobsFlatSegmentResponse.Segment.BlobItems { + if *blobItem.Properties.AccessTier == container.AccessTierHot { + ctrHot++ + } else if *blobItem.Properties.AccessTier == container.AccessTierCool { + ctrCool++ + } + } + } + _require.Equal(ctrHot, 10) + _require.Equal(ctrCool, 0) + + resp, err := svcClientSAS.SubmitBatch(context.Background(), bb, nil) + _require.Error(err) + _require.Nil(resp.RequestID) + testcommon.ValidateBlobErrorCode(_require, err, bloberror.AuthenticationFailed) +} +*/ + +func (s *ServiceUnrecordedTestsSuite) TestServiceBlobBatchDeleteMoreThan256() { + _require := require.New(s.T()) + testName := s.T().Name() + + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + containerName := testcommon.GenerateContainerName(testName) + containerClient := testcommon.CreateNewContainer(context.Background(), _require, containerName, svcClient) + defer testcommon.DeleteContainer(context.Background(), _require, containerClient) + + bb, err := svcClient.NewBatchBuilder() + _require.NoError(err) + + for i := 0; i < 256; i++ { + bbName := fmt.Sprintf("blockblob%v", i) + _ = testcommon.CreateNewBlockBlob(context.Background(), _require, bbName, containerClient) + err = bb.Delete(containerName, bbName, nil) + _require.NoError(err) + } + + pager := containerClient.NewListBlobsFlatPager(nil) + ctr := 0 + for pager.More() { + resp, err := pager.NextPage(context.Background()) + handleError(err) + ctr += len(resp.ListBlobsFlatSegmentResponse.Segment.BlobItems) + } + _require.Equal(ctr, 256) + + resp, err := svcClient.SubmitBatch(context.Background(), bb, nil) + _require.NoError(err) + _require.NotNil(resp.RequestID) + for _, subResp := range resp.Responses { + _require.Nil(subResp.Error) + } + + pager = containerClient.NewListBlobsFlatPager(nil) + ctr = 0 + for pager.More() { + resp, err := pager.NextPage(context.Background()) + handleError(err) + ctr += len(resp.ListBlobsFlatSegmentResponse.Segment.BlobItems) + } + _require.Equal(ctr, 0) + + // add more items to make batch size more than 256 + for i := 0; i < 10; i++ { + bbName := fmt.Sprintf("fakeblob%v", i) + err = bb.Delete(containerName, bbName, nil) + _require.NoError(err) + } + + resp2, err := svcClient.SubmitBatch(context.Background(), bb, nil) + _require.Error(err) + _require.Nil(resp2.RequestID) +} + +func (s *ServiceUnrecordedTestsSuite) TestServiceBlobBatchDeleteForOneBlob() { + _require := require.New(s.T()) + testName := s.T().Name() + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + containerName := testcommon.GenerateContainerName(testName) + containerClient := testcommon.CreateNewContainer(context.Background(), _require, containerName, svcClient) + defer testcommon.DeleteContainer(context.Background(), _require, containerClient) + + bb, err := svcClient.NewBatchBuilder() + _require.NoError(err) + + bbName := "blockblob1" + _ = testcommon.CreateNewBlockBlob(context.Background(), _require, bbName, containerClient) + err = bb.Delete(containerName, bbName, nil) + _require.NoError(err) + + pager := containerClient.NewListBlobsFlatPager(nil) + ctr := 0 + for pager.More() { + resp, err := pager.NextPage(context.Background()) + handleError(err) + ctr += len(resp.ListBlobsFlatSegmentResponse.Segment.BlobItems) + } + _require.Equal(ctr, 1) + + resp1, err := svcClient.SubmitBatch(context.Background(), bb, nil) + _require.NoError(err) + _require.NotNil(resp1.RequestID) + _require.Equal(len(resp1.Responses), 1) + _require.NoError(resp1.Responses[0].Error) + + pager = containerClient.NewListBlobsFlatPager(nil) + ctr = 0 + for pager.More() { + resp, err := pager.NextPage(context.Background()) + handleError(err) + ctr += len(resp.ListBlobsFlatSegmentResponse.Segment.BlobItems) + } + _require.Equal(ctr, 0) + + resp2, err := svcClient.SubmitBatch(context.Background(), bb, nil) + _require.NoError(err) + _require.NotNil(resp2.RequestID) + _require.Equal(len(resp2.Responses), 1) + _require.Error(resp2.Responses[0].Error) + testcommon.ValidateBlobErrorCode(_require, resp2.Responses[0].Error, bloberror.BlobNotFound) +} + +func (s *ServiceUnrecordedTestsSuite) TestServiceBlobBatchErrors() { + _require := require.New(s.T()) + + svcClient, err := service.NewClientWithNoCredential("https://fakestorageaccount.blob.core.windows.net/", nil) + _require.NoError(err) + + bb1, err := svcClient.NewBatchBuilder() + _require.NoError(err) + + // adding multiple operations to BatchBuilder + err = bb1.Delete("fakecontainer", "blob1", nil) + _require.NoError(err) + + err = bb1.SetTier("fakecontainer", "blob2", blob.AccessTierCool, nil) + _require.Error(err) + + bb2, err := svcClient.NewBatchBuilder() + _require.NoError(err) + + // submitting empty batch + _, err = svcClient.SubmitBatch(context.Background(), bb2, nil) + _require.Error(err) + + // submitting nil BatchBuilder + _, err = svcClient.SubmitBatch(context.Background(), nil, nil) + _require.Error(err) +} diff --git a/sdk/storage/azblob/service/examples_test.go b/sdk/storage/azblob/service/examples_test.go index 4b93704dca3b..7024a7b0d75d 100644 --- a/sdk/storage/azblob/service/examples_test.go +++ b/sdk/storage/azblob/service/examples_test.go @@ -364,3 +364,136 @@ func Example_service_Client_NewClientWithUserDelegationCredential() { blobURLParts, _ = blob.ParseURL(serviceClient.URL()) fmt.Printf("SAS expiry time = %s\n", blobURLParts.SAS.ExpiryTime()) } + +// ExampleServiceBatchDelete shows blob batch operations for delete and set tier. +func Example_service_BatchDelete() { + accountName, ok := os.LookupEnv("AZURE_STORAGE_ACCOUNT_NAME") + if !ok { + panic("AZURE_STORAGE_ACCOUNT_NAME could not be found") + } + accountKey, ok := os.LookupEnv("AZURE_STORAGE_ACCOUNT_KEY") + if !ok { + panic("AZURE_STORAGE_ACCOUNT_NAME could not be found") + } + + // create shared key credential + cred, err := azblob.NewSharedKeyCredential(accountName, accountKey) + handleError(err) + + // create service batch client + serviceURL := fmt.Sprintf("https://%s.blob.core.windows.net/", accountName) + svcBatchClient, err := service.NewClientWithSharedKeyCredential(serviceURL, cred, nil) + handleError(err) + + // create new batch builder + bb, err := svcBatchClient.NewBatchBuilder() + handleError(err) + + // add operations to the batch builder + err = bb.Delete("cnt1", "testBlob0", nil) + handleError(err) + + err = bb.Delete("cnt1", "testBlob1", &service.BatchDeleteOptions{ + VersionID: to.Ptr("2023-01-03T11:57:25.4067017Z"), // version id for deletion + }) + handleError(err) + + err = bb.Delete("cnt2", "testBlob2", &service.BatchDeleteOptions{ + Snapshot: to.Ptr("2023-01-03T11:57:25.6515618Z"), // snapshot for deletion + }) + handleError(err) + + err = bb.Delete("cnt2", "testBlob3", &service.BatchDeleteOptions{ + DeleteOptions: blob.DeleteOptions{ + DeleteSnapshots: to.Ptr(blob.DeleteSnapshotsOptionTypeOnly), + BlobDeleteType: to.Ptr(blob.DeleteTypeNone), + }, + }) + handleError(err) + + resp, err := svcBatchClient.SubmitBatch(context.TODO(), bb, nil) + handleError(err) + + // get response for individual sub-requests + for _, resp := range resp.Responses { + if resp.ContainerName != nil && resp.BlobName != nil { + fmt.Println("Container: " + *resp.ContainerName) + fmt.Println("Blob: " + *resp.BlobName) + } + if resp.Error == nil { + fmt.Println("Successful sub-request") + } else { + fmt.Println("Error: " + resp.Error.Error()) + } + } +} + +// ExampleServiceBatchSetTier shows blob batch operations for delete and set tier. +func Example_service_BatchSetTier() { + accountName, ok := os.LookupEnv("AZURE_STORAGE_ACCOUNT_NAME") + if !ok { + panic("AZURE_STORAGE_ACCOUNT_NAME could not be found") + } + tenantID, ok := os.LookupEnv("AZURE_STORAGE_TENANT_ID") + if !ok { + panic("AZURE_STORAGE_TENANT_ID could not be found") + } + clientID, ok := os.LookupEnv("AZURE_STORAGE_CLIENT_ID") + if !ok { + panic("AZURE_STORAGE_CLIENT_ID could not be found") + } + clientSecret, ok := os.LookupEnv("AZURE_STORAGE_CLIENT_SECRET") + if !ok { + panic("AZURE_STORAGE_CLIENT_SECRET could not be found") + } + + // create client secret credential + cred, err := azidentity.NewClientSecretCredential(tenantID, clientID, clientSecret, nil) + handleError(err) + + // create service batch client + serviceURL := fmt.Sprintf("https://%s.blob.core.windows.net/", accountName) + svcBatchClient, err := service.NewClient(serviceURL, cred, nil) + handleError(err) + + // create new batch builder + bb, err := svcBatchClient.NewBatchBuilder() + handleError(err) + + // add operations to the batch builder + err = bb.SetTier("cnt1", "testBlob4", blob.AccessTierHot, nil) + handleError(err) + + err = bb.SetTier("cnt1", "testBlob5", blob.AccessTierCool, &service.BatchSetTierOptions{ + VersionID: to.Ptr("2023-01-03T11:57:25.4067017Z"), + }) + handleError(err) + + err = bb.SetTier("cnt2", "testBlob5", blob.AccessTierCool, &service.BatchSetTierOptions{ + Snapshot: to.Ptr("2023-01-03T11:57:25.6515618Z"), + }) + handleError(err) + + err = bb.SetTier("cnt2", "testBlob4", blob.AccessTierCool, &service.BatchSetTierOptions{ + SetTierOptions: blob.SetTierOptions{ + RehydratePriority: to.Ptr(blob.RehydratePriorityStandard), + }, + }) + handleError(err) + + resp, err := svcBatchClient.SubmitBatch(context.TODO(), bb, nil) + handleError(err) + + // get response for individual sub-requests + for _, resp := range resp.Responses { + if resp.ContainerName != nil && resp.BlobName != nil { + fmt.Println("Container: " + *resp.ContainerName) + fmt.Println("Blob: " + *resp.BlobName) + } + if resp.Error == nil { + fmt.Println("Successful sub-request") + } else { + fmt.Println("Error: " + resp.Error.Error()) + } + } +} diff --git a/sdk/storage/azblob/service/models.go b/sdk/storage/azblob/service/models.go index 4e0d7740f741..22f49474dee6 100644 --- a/sdk/storage/azblob/service/models.go +++ b/sdk/storage/azblob/service/models.go @@ -8,6 +8,7 @@ package service import ( "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/storage/azblob/blob" "github.com/Azure/azure-sdk-for-go/sdk/storage/azblob/container" "github.com/Azure/azure-sdk-for-go/sdk/storage/azblob/internal/exported" "github.com/Azure/azure-sdk-for-go/sdk/storage/azblob/internal/generated" @@ -299,3 +300,59 @@ func (o *FilterBlobsOptions) format() *generated.ServiceClientFilterBlobsOptions Maxresults: o.MaxResults, } } + +// --------------------------------------------------------------------------------------------------------------------- + +// BatchDeleteOptions contains the optional parameters for the BatchBuilder.Delete method. +type BatchDeleteOptions struct { + blob.DeleteOptions + VersionID *string + Snapshot *string +} + +func (o *BatchDeleteOptions) format() (*generated.BlobClientDeleteOptions, *generated.LeaseAccessConditions, *generated.ModifiedAccessConditions) { + if o == nil { + return nil, nil, nil + } + + basics := generated.BlobClientDeleteOptions{ + DeleteSnapshots: o.DeleteSnapshots, + DeleteType: o.BlobDeleteType, // None by default + Snapshot: o.Snapshot, + VersionID: o.VersionID, + } + + leaseAccessConditions, modifiedAccessConditions := exported.FormatBlobAccessConditions(o.AccessConditions) + return &basics, leaseAccessConditions, modifiedAccessConditions +} + +// BatchSetTierOptions contains the optional parameters for the BatchBuilder.SetTier method. +type BatchSetTierOptions struct { + blob.SetTierOptions + VersionID *string + Snapshot *string +} + +func (o *BatchSetTierOptions) format() (*generated.BlobClientSetTierOptions, *generated.LeaseAccessConditions, *generated.ModifiedAccessConditions) { + if o == nil { + return nil, nil, nil + } + + basics := generated.BlobClientSetTierOptions{ + RehydratePriority: o.RehydratePriority, + Snapshot: o.Snapshot, + VersionID: o.VersionID, + } + + leaseAccessConditions, modifiedAccessConditions := exported.FormatBlobAccessConditions(o.AccessConditions) + return &basics, leaseAccessConditions, modifiedAccessConditions +} + +// SubmitBatchOptions contains the optional parameters for the Client.SubmitBatch method. +type SubmitBatchOptions struct { + // placeholder for future options +} + +func (o *SubmitBatchOptions) format() *generated.ServiceClientSubmitBatchOptions { + return nil +} diff --git a/sdk/storage/azblob/service/responses.go b/sdk/storage/azblob/service/responses.go index d8b0f4d4dea5..2dbf97165410 100644 --- a/sdk/storage/azblob/service/responses.go +++ b/sdk/storage/azblob/service/responses.go @@ -7,6 +7,7 @@ package service import ( + "github.com/Azure/azure-sdk-for-go/sdk/storage/azblob/internal/exported" "github.com/Azure/azure-sdk-for-go/sdk/storage/azblob/internal/generated" ) @@ -42,3 +43,21 @@ type FilterBlobsResponse = generated.ServiceClientFilterBlobsResponse // GetUserDelegationKeyResponse contains the response from method ServiceClient.GetUserDelegationKey. type GetUserDelegationKeyResponse = generated.ServiceClientGetUserDelegationKeyResponse + +// SubmitBatchResponse contains the response from method Client.SubmitBatch. +type SubmitBatchResponse struct { + // Responses contains the responses of the sub-requests in the batch + Responses []*BatchResponseItem + + // ContentType contains the information returned from the Content-Type header response. + ContentType *string + + // RequestID contains the information returned from the x-ms-request-id header response. + RequestID *string + + // Version contains the information returned from the x-ms-version header response. + Version *string +} + +// BatchResponseItem contains the response for the individual sub-requests. +type BatchResponseItem = exported.BatchResponseItem From ca7a1b02da9e36c6a349b83e868c93b6c71a9299 Mon Sep 17 00:00:00 2001 From: Rick Winter Date: Thu, 9 Mar 2023 11:42:06 -0800 Subject: [PATCH 088/107] Switch to Service Version (#20381) --- sdk/storage/azblob/README.md | 2 +- sdk/storage/azqueue/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/storage/azblob/README.md b/sdk/storage/azblob/README.md index 467fe36cd90b..6cbacddbc52a 100644 --- a/sdk/storage/azblob/README.md +++ b/sdk/storage/azblob/README.md @@ -1,6 +1,6 @@ # Azure Blob Storage SDK for Go -> Server Version: 2020-10-02 +> Service Version: 2020-10-02 Azure Blob storage is Microsoft's object storage solution for the cloud. Blob storage is optimized for storing massive amounts of unstructured data. diff --git a/sdk/storage/azqueue/README.md b/sdk/storage/azqueue/README.md index 69602ea662f8..57b55f321701 100644 --- a/sdk/storage/azqueue/README.md +++ b/sdk/storage/azqueue/README.md @@ -1,6 +1,6 @@ # Azure Queue Storage SDK for Go -> Server Version: 2018-03-28 +> Service Version: 2018-03-28 Azure Queue storage is a service for storing large numbers of messages that can be accessed from anywhere in the world via authenticated calls using HTTP or HTTPS. From 8aa96821d5dfea73c78e7cfc72613adb45b718c5 Mon Sep 17 00:00:00 2001 From: Rick Winter Date: Thu, 9 Mar 2023 14:57:23 -0800 Subject: [PATCH 089/107] Update assignment mentions for Cosmos (#20024) --- .github/fabricbot.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/fabricbot.json b/.github/fabricbot.json index c7af48ee448e..1ab14b1ed72f 100644 --- a/.github/fabricbot.json +++ b/.github/fabricbot.json @@ -1776,8 +1776,8 @@ "Cosmos" ], "mentionees": [ - "pjohari-ms", - "MehaKaushik" + "markjbrown", + "carjackson-msft" ] }, { From 8552d80c3d25798f07c0c1a13c4c89ff9c6f45f2 Mon Sep 17 00:00:00 2001 From: gracewilcox <43627800+gracewilcox@users.noreply.github.com> Date: Mon, 13 Mar 2023 14:09:49 -0700 Subject: [PATCH 090/107] [keyvault] azadmin module (#20296) --- eng/config.json | 4 + sdk/security/keyvault/azadmin/CHANGELOG.md | 2 + sdk/security/keyvault/azadmin/LICENSE.txt | 21 + sdk/security/keyvault/azadmin/README.md | 148 ++++++ sdk/security/keyvault/azadmin/assets.json | 6 + .../keyvault/azadmin/backup/autorest.md | 90 ++++ .../keyvault/azadmin/backup/client.go | 179 +++++++ .../keyvault/azadmin/backup/client_test.go | 152 ++++++ .../keyvault/azadmin/backup/custom_client.go | 127 +++++ .../keyvault/azadmin/backup/example_test.go | 138 ++++++ .../backup/internal/pollers/restore_poller.go | 161 +++++++ .../backup/internal/pollers/utils_poller.go | 209 ++++++++ .../keyvault/azadmin/backup/models.go | 123 +++++ .../keyvault/azadmin/backup/models_serde.go | 275 +++++++++++ .../keyvault/azadmin/backup/response_types.go | 25 + .../keyvault/azadmin/backup/time_unix.go | 62 +++ .../keyvault/azadmin/backup/utils_test.go | 162 +++++++ sdk/security/keyvault/azadmin/build.go | 13 + sdk/security/keyvault/azadmin/ci.yml | 34 ++ sdk/security/keyvault/azadmin/go.mod | 30 ++ sdk/security/keyvault/azadmin/go.sum | 54 +++ .../keyvault/azadmin/internal/version.go | 12 + .../keyvault/azadmin/platform-matrix.json | 17 + .../keyvault/azadmin/rbac/autorest.md | 88 ++++ sdk/security/keyvault/azadmin/rbac/client.go | 453 ++++++++++++++++++ .../keyvault/azadmin/rbac/client_test.go | 240 ++++++++++ .../keyvault/azadmin/rbac/constants.go | 174 +++++++ .../keyvault/azadmin/rbac/custom_client.go | 46 ++ .../keyvault/azadmin/rbac/example_test.go | 72 +++ sdk/security/keyvault/azadmin/rbac/models.go | 170 +++++++ .../keyvault/azadmin/rbac/models_serde.go | 379 +++++++++++++++ .../keyvault/azadmin/rbac/response_types.go | 50 ++ .../keyvault/azadmin/rbac/utils_test.go | 131 +++++ .../keyvault/azadmin/settings/autorest.md | 54 +++ .../keyvault/azadmin/settings/client.go | 168 +++++++ .../keyvault/azadmin/settings/client_test.go | 129 +++++ .../keyvault/azadmin/settings/constants.go | 24 + .../azadmin/settings/custom_client.go | 46 ++ .../keyvault/azadmin/settings/example_test.go | 63 +++ .../keyvault/azadmin/settings/models.go | 49 ++ .../keyvault/azadmin/settings/models_serde.go | 126 +++++ .../azadmin/settings/response_types.go | 25 + .../keyvault/azadmin/settings/utils_test.go | 131 +++++ .../keyvault/azadmin/test-resources-post.ps1 | 118 +++++ .../keyvault/azadmin/test-resources.json | 322 +++++++++++++ 45 files changed, 5102 insertions(+) create mode 100644 sdk/security/keyvault/azadmin/CHANGELOG.md create mode 100644 sdk/security/keyvault/azadmin/LICENSE.txt create mode 100644 sdk/security/keyvault/azadmin/README.md create mode 100644 sdk/security/keyvault/azadmin/assets.json create mode 100644 sdk/security/keyvault/azadmin/backup/autorest.md create mode 100644 sdk/security/keyvault/azadmin/backup/client.go create mode 100644 sdk/security/keyvault/azadmin/backup/client_test.go create mode 100644 sdk/security/keyvault/azadmin/backup/custom_client.go create mode 100644 sdk/security/keyvault/azadmin/backup/example_test.go create mode 100644 sdk/security/keyvault/azadmin/backup/internal/pollers/restore_poller.go create mode 100644 sdk/security/keyvault/azadmin/backup/internal/pollers/utils_poller.go create mode 100644 sdk/security/keyvault/azadmin/backup/models.go create mode 100644 sdk/security/keyvault/azadmin/backup/models_serde.go create mode 100644 sdk/security/keyvault/azadmin/backup/response_types.go create mode 100644 sdk/security/keyvault/azadmin/backup/time_unix.go create mode 100644 sdk/security/keyvault/azadmin/backup/utils_test.go create mode 100644 sdk/security/keyvault/azadmin/build.go create mode 100644 sdk/security/keyvault/azadmin/ci.yml create mode 100644 sdk/security/keyvault/azadmin/go.mod create mode 100644 sdk/security/keyvault/azadmin/go.sum create mode 100644 sdk/security/keyvault/azadmin/internal/version.go create mode 100644 sdk/security/keyvault/azadmin/platform-matrix.json create mode 100644 sdk/security/keyvault/azadmin/rbac/autorest.md create mode 100644 sdk/security/keyvault/azadmin/rbac/client.go create mode 100644 sdk/security/keyvault/azadmin/rbac/client_test.go create mode 100644 sdk/security/keyvault/azadmin/rbac/constants.go create mode 100644 sdk/security/keyvault/azadmin/rbac/custom_client.go create mode 100644 sdk/security/keyvault/azadmin/rbac/example_test.go create mode 100644 sdk/security/keyvault/azadmin/rbac/models.go create mode 100644 sdk/security/keyvault/azadmin/rbac/models_serde.go create mode 100644 sdk/security/keyvault/azadmin/rbac/response_types.go create mode 100644 sdk/security/keyvault/azadmin/rbac/utils_test.go create mode 100644 sdk/security/keyvault/azadmin/settings/autorest.md create mode 100644 sdk/security/keyvault/azadmin/settings/client.go create mode 100644 sdk/security/keyvault/azadmin/settings/client_test.go create mode 100644 sdk/security/keyvault/azadmin/settings/constants.go create mode 100644 sdk/security/keyvault/azadmin/settings/custom_client.go create mode 100644 sdk/security/keyvault/azadmin/settings/example_test.go create mode 100644 sdk/security/keyvault/azadmin/settings/models.go create mode 100644 sdk/security/keyvault/azadmin/settings/models_serde.go create mode 100644 sdk/security/keyvault/azadmin/settings/response_types.go create mode 100644 sdk/security/keyvault/azadmin/settings/utils_test.go create mode 100644 sdk/security/keyvault/azadmin/test-resources-post.ps1 create mode 100644 sdk/security/keyvault/azadmin/test-resources.json diff --git a/eng/config.json b/eng/config.json index 172d186b063f..f4db5206b977 100644 --- a/eng/config.json +++ b/eng/config.json @@ -84,6 +84,10 @@ { "Name": "resourcemanager", "CoverageGoal": 0.0 + }, + { + "Name": "security/keyvault/azadmin", + "CoverageGoal": 0.80 } ] } diff --git a/sdk/security/keyvault/azadmin/CHANGELOG.md b/sdk/security/keyvault/azadmin/CHANGELOG.md new file mode 100644 index 000000000000..e2fbd88f5291 --- /dev/null +++ b/sdk/security/keyvault/azadmin/CHANGELOG.md @@ -0,0 +1,2 @@ +## 0.1.0 (2023-03-13) +* This is the initial release of the `azadmin` library \ No newline at end of file diff --git a/sdk/security/keyvault/azadmin/LICENSE.txt b/sdk/security/keyvault/azadmin/LICENSE.txt new file mode 100644 index 000000000000..4b3ba9df30d6 --- /dev/null +++ b/sdk/security/keyvault/azadmin/LICENSE.txt @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Microsoft Corporation. All rights reserved. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE \ No newline at end of file diff --git a/sdk/security/keyvault/azadmin/README.md b/sdk/security/keyvault/azadmin/README.md new file mode 100644 index 000000000000..e8b196af215b --- /dev/null +++ b/sdk/security/keyvault/azadmin/README.md @@ -0,0 +1,148 @@ +# Azure KeyVault Administration client module for Go + +>**Note:** The Administration module only works with [Managed HSM][managed_hsm] – functions targeting a Key Vault will fail. + +* Vault administration (this module) - role-based access control (RBAC), settings, and vault-level backup and restore options +* Certificate management ([azcertificates](https://aka.ms/azsdk/go/keyvault-certificates/docs)) - create, manage, and deploy public and private SSL/TLS certificates +* Cryptographic key management ([azkeys](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/keyvault/azkeys)) - create, store, and control access to the keys used to encrypt your data +* Secrets management ([azsecrets](https://aka.ms/azsdk/go/keyvault-secrets/docs)) - securely store and control access to tokens, passwords, certificates, API keys, and other secrets + +Azure Key Vault Managed HSM is a fully-managed, highly-available, single-tenant, standards-compliant cloud service that enables you to safeguard +cryptographic keys for your cloud applications using FIPS 140-2 Level 3 validated HSMs. + +The Azure Key Vault administration library clients support administrative tasks such as full backup / restore, key-level role-based access control (RBAC), and settings management. + +Source code | Package (pkg.go.dev)| [Product documentation][managed_hsm_docs] | Samples + +## Getting started + +### Install the package + +Install `azadmin` and `azidentity` with `go get`: +``` +go get github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/azadmin +go get github.com/Azure/azure-sdk-for-go/sdk/azidentity +``` +[azidentity][azure_identity] is used for Azure Active Directory authentication during client contruction. + + +### Prerequisites + +* An [Azure subscription][azure_sub]. +* A supported Go version (the Azure SDK supports the two most recent Go releases) +* An existing [Key Vault Managed HSM][managed_hsm]. If you need to create one, you can do so using the Azure CLI by following the steps in [this document][create_managed_hsm]. + +### Authentication + +This document demonstrates using [azidentity.NewDefaultAzureCredential][default_cred_ref] to authenticate. This credential type works in both local development and production environments. We recommend using a [managed identity][managed_identity] in production. + +The clients accept any [azidentity][azure_identity] credential. See the [azidentity][azure_identity] documentation for more information about other credential types. + +#### Create a client + +Constructing the client also requires your Managed HSM's URL, which you can get from the Azure CLI or the Azure Portal. + +## Key concepts + +### RoleDefinition + +A `RoleDefinition` is a collection of permissions. A role definition defines the operations that can be performed, such as read, write, +and delete. It can also define the operations that are excluded from allowed operations. + +RoleDefinitions can be listed and specified as part of a `RoleAssignment`. + +### RoleAssignment + +A `RoleAssignment` is the association of a RoleDefinition to a service principal. They can be created, listed, fetched individually, and deleted. + +### rbac.Client + +An `rbac.Client` allows for management of `RoleDefinition` and `RoleAssignment` types. + +### backup.Client + +A `backup.Client` allows for performing full key backups, full key restores, and selective key restores. + +### settings.Client + +A `settings.Client` provides methods to update, get, and list settings for a Managed HSM. + +## Examples + +Get started with our examples. + +## Troubleshooting + +### Error Handling + +All methods which send HTTP requests return `*azcore.ResponseError` when these requests fail. `ResponseError` has error details and the raw response from Key Vault. + +```go +import "github.com/Azure/azure-sdk-for-go/sdk/azcore" + +settings, err := client.GetSettings(context.Background(), nil) +if err != nil { + var httpErr *azcore.ResponseError + if errors.As(err, &httpErr) { + // TODO: investigate httpErr + } else { + // TODO: not an HTTP error + } +} +``` + +### Logging + +This module uses the logging implementation in `azcore`. To turn on logging for all Azure SDK modules, set `AZURE_SDK_GO_LOGGING` to `all`. By default the logger writes to stderr. Use the `azcore/log` package to control log output. For example, logging only HTTP request and response events, and printing them to stdout: + +```go +import azlog "github.com/Azure/azure-sdk-for-go/sdk/azcore/log" + +// Print log events to stdout +azlog.SetListener(func(cls azlog.Event, msg string) { + fmt.Println(msg) +}) + +// Includes only requests and responses in credential logs +azlog.SetEvents(azlog.EventRequest, azlog.EventResponse) +``` + +### Accessing `http.Response` + +You can access the raw `*http.Response` returned by Key Vault using the `runtime.WithCaptureResponse` method and a context passed to any client method. + +```go +import "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + +var response *http.Response +ctx := runtime.WithCaptureResponse(context.TODO(), &response) +_, err = client.GetSettings(context.Background(), nil) +if err != nil { + // TODO: handle error +} +// TODO: do something with response +``` + +## Contributing + +This project welcomes contributions and suggestions. Most contributions require +you to agree to a Contributor License Agreement (CLA) declaring that you have +the right to, and actually do, grant us the rights to use your contribution. For +details, visit . + +This project has adopted the [Microsoft Open Source Code of Conduct][code_of_conduct]. +For more information see the [Code of Conduct FAQ][coc_faq] +or contact opencode@microsoft.com with any +additional questions or comments. + + +[azure_identity]: https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azidentity +[azure_sub]: https://azure.microsoft.com/free +[create_managed_hsm]: https://learn.microsoft.com/azure/key-vault/managed-hsm/quick-create-cli +[code_of_conduct]: https://opensource.microsoft.com/codeofconduct/ +[default_cred_ref]: https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/azidentity#defaultazurecredential +[managed_hsm]: https://docs.microsoft.com/azure/key-vault/managed-hsm/overview +[managed_hsm_docs]: https://learn.microsoft.com/azure/key-vault/managed-hsm/ +[managed_identity]: https://docs.microsoft.com/azure/active-directory/managed-identities-azure-resources/overview +[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/ + diff --git a/sdk/security/keyvault/azadmin/assets.json b/sdk/security/keyvault/azadmin/assets.json new file mode 100644 index 000000000000..c5b21d840c4e --- /dev/null +++ b/sdk/security/keyvault/azadmin/assets.json @@ -0,0 +1,6 @@ +{ + "AssetsRepo": "Azure/azure-sdk-assets", + "AssetsRepoPrefixPath": "go", + "TagPrefix": "go/security/keyvault/azadmin", + "Tag": "go/security/keyvault/azadmin_6b57e62028" +} diff --git a/sdk/security/keyvault/azadmin/backup/autorest.md b/sdk/security/keyvault/azadmin/backup/autorest.md new file mode 100644 index 000000000000..62703751e83f --- /dev/null +++ b/sdk/security/keyvault/azadmin/backup/autorest.md @@ -0,0 +1,90 @@ +## Go + +```yaml +clear-output-folder: false +export-clients: true +go: true +input-file: + - https://github.com/Azure/azure-rest-api-specs/blob/551275acb80e1f8b39036b79dfc35a8f63b601a7/specification/keyvault/data-plane/Microsoft.KeyVault/stable/7.4/backuprestore.json +license-header: MICROSOFT_MIT_NO_VERSION +openapi-type: "data-plane" +output-folder: ../backup +override-client-name: Client +security: "AADToken" +security-scopes: "https://vault.azure.net/.default" +use: "@autorest/go@4.0.0-preview.46" +version: "^3.0.0" + +directive: + + # make vault URL a parameter of the client constructor + - from: swagger-document + where: $["x-ms-parameterized-host"] + transform: $.parameters[0]["x-ms-parameter-location"] = "client" + + # rename restore operation from BeginFullRestoreOperation to BeginFullRestore + - rename-operation: + from: FullRestoreOperation + to: FullRestore + - rename-operation: + from: SelectiveKeyRestoreOperation + to: SelectiveKeyRestore + + # make SASToken parameter required + - from: swagger-document + where: $.paths["/backup"].post.parameters[0] + transform: $["required"] = true + + # delete backup and restore status methods + - from: swagger-document + where: $["paths"] + transform: > + delete $["/backup/{jobId}/pending"]; + - from: swagger-document + where: $["paths"] + transform: > + delete $["/restore/{jobId}/pending"]; + + # delete generated client constructor + - from: client.go + where: $ + transform: return $.replace(/(?:\/\/.*\s)+func NewClient.+\{\s(?:.+\s)+\}\s/, ""); + + # delete unused error models + - from: models.go + where: $ + transform: return $.replace(/(?:\/\/.*\s)+type (?:Error|KeyVaultError).+\{(?:\s.+\s)+\}\s/g, ""); + - from: models_serde.go + where: $ + transform: return $.replace(/(?:\/\/.*\s)+func \(\w \*?(?:Error|KeyVaultError)\).*\{\s(?:.+\s)+\}\s/g, ""); + - from: models.go + where: $ + transform: return $.replace(/Error \*Error/g, "Error *ServerError"); + + # modify Restore to use implementation with custom poller handler + - from: client.go + where: $ + transform: return $.replace(/\[ClientFullRestoreResponse\], error\) \{\s(?:.+\s)+\}/, "[ClientFullRestoreResponse], error) {return client.beginFullRestore(ctx, restoreBlobDetails, options)}"); + - from: client.go + where: $ + transform: return $.replace(/\[ClientSelectiveKeyRestoreResponse\], error\) \{\s(?:.+\s)+\}/, "[ClientSelectiveKeyRestoreResponse], error) {return client.beginSelectiveKeyRestore(ctx, keyName, restoreBlobDetails, options)}"); + + # delete client name prefix from method options and response types + - from: + - client.go + - models.go + - response_types.go + where: $ + transform: return $.replace(/Client(\w+)((?:Options|Response))/g, "$1$2"); + + # add doc comments for models with missing descriptions + - from: swagger-document + where: $.definitions.SASTokenParameter + transform: $["description"] = "Contains the information required to access blob storage." + - from: swagger-document + where: $.definitions.RestoreOperationParameters + transform: $["description"] = "Parameters for the restore operation" + - from: swagger-document + where: $.definitions.SelectiveKeyRestoreOperationParameters + transform: $["description"] = "Parameters for the selective restore operation" +``` \ No newline at end of file diff --git a/sdk/security/keyvault/azadmin/backup/client.go b/sdk/security/keyvault/azadmin/backup/client.go new file mode 100644 index 000000000000..8ccc72343f5c --- /dev/null +++ b/sdk/security/keyvault/azadmin/backup/client.go @@ -0,0 +1,179 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package backup + +import ( + "context" + "errors" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "net/http" + "net/url" + "strings" +) + +// Client contains the methods for the Client group. +// Don't use this type directly, use a constructor function instead. +type Client struct { + internal *azcore.Client + endpoint string +} + +// BeginFullBackup - Creates a full backup using a user-provided SAS token to an Azure blob storage container. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 7.4 +// - azureStorageBlobContainerURI - Azure blob shared access signature token pointing to a valid Azure blob container where +// full backup needs to be stored. This token needs to be valid for at least next 24 hours from the time of making +// this call +// - options - BeginFullBackupOptions contains the optional parameters for the Client.BeginFullBackup method. +func (client *Client) BeginFullBackup(ctx context.Context, azureStorageBlobContainerURI SASTokenParameter, options *BeginFullBackupOptions) (*runtime.Poller[FullBackupResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.fullBackup(ctx, azureStorageBlobContainerURI, options) + if err != nil { + return nil, err + } + return runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[FullBackupResponse]{ + FinalStateVia: runtime.FinalStateViaAzureAsyncOp, + }) + } else { + return runtime.NewPollerFromResumeToken[FullBackupResponse](options.ResumeToken, client.internal.Pipeline(), nil) + } +} + +// FullBackup - Creates a full backup using a user-provided SAS token to an Azure blob storage container. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 7.4 +func (client *Client) fullBackup(ctx context.Context, azureStorageBlobContainerURI SASTokenParameter, options *BeginFullBackupOptions) (*http.Response, error) { + req, err := client.fullBackupCreateRequest(ctx, azureStorageBlobContainerURI, options) + if err != nil { + return nil, err + } + resp, err := client.internal.Pipeline().Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(resp, http.StatusAccepted) { + return nil, runtime.NewResponseError(resp) + } + return resp, nil +} + +// fullBackupCreateRequest creates the FullBackup request. +func (client *Client) fullBackupCreateRequest(ctx context.Context, azureStorageBlobContainerURI SASTokenParameter, options *BeginFullBackupOptions) (*policy.Request, error) { + urlPath := "/backup" + req, err := runtime.NewRequest(ctx, http.MethodPost, runtime.JoinPaths(client.endpoint, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "7.4") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, runtime.MarshalAsJSON(req, azureStorageBlobContainerURI) +} + +// BeginFullRestore - Restores all key materials using the SAS token pointing to a previously stored Azure Blob storage backup +// folder +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 7.4 +// - restoreBlobDetails - The Azure blob SAS token pointing to a folder where the previous successful full backup was stored +// - options - BeginFullRestoreOptions contains the optional parameters for the Client.BeginFullRestore method. +func (client *Client) BeginFullRestore(ctx context.Context, restoreBlobDetails RestoreOperationParameters, options *BeginFullRestoreOptions) (*runtime.Poller[FullRestoreResponse], error) { + return client.beginFullRestore(ctx, restoreBlobDetails, options) +} + +// FullRestore - Restores all key materials using the SAS token pointing to a previously stored Azure Blob storage backup +// folder +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 7.4 +func (client *Client) fullRestore(ctx context.Context, restoreBlobDetails RestoreOperationParameters, options *BeginFullRestoreOptions) (*http.Response, error) { + req, err := client.fullRestoreCreateRequest(ctx, restoreBlobDetails, options) + if err != nil { + return nil, err + } + resp, err := client.internal.Pipeline().Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(resp, http.StatusAccepted) { + return nil, runtime.NewResponseError(resp) + } + return resp, nil +} + +// fullRestoreCreateRequest creates the FullRestore request. +func (client *Client) fullRestoreCreateRequest(ctx context.Context, restoreBlobDetails RestoreOperationParameters, options *BeginFullRestoreOptions) (*policy.Request, error) { + urlPath := "/restore" + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.endpoint, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "7.4") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, runtime.MarshalAsJSON(req, restoreBlobDetails) +} + +// BeginSelectiveKeyRestore - Restores all key versions of a given key using user supplied SAS token pointing to a previously +// stored Azure Blob storage backup folder +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 7.4 +// - keyName - The name of the key to be restored from the user supplied backup +// - restoreBlobDetails - The Azure blob SAS token pointing to a folder where the previous successful full backup was stored +// - options - BeginSelectiveKeyRestoreOptions contains the optional parameters for the Client.BeginSelectiveKeyRestore +// method. +func (client *Client) BeginSelectiveKeyRestore(ctx context.Context, keyName string, restoreBlobDetails SelectiveKeyRestoreOperationParameters, options *BeginSelectiveKeyRestoreOptions) (*runtime.Poller[SelectiveKeyRestoreResponse], error) { + return client.beginSelectiveKeyRestore(ctx, keyName, restoreBlobDetails, options) +} + +// SelectiveKeyRestore - Restores all key versions of a given key using user supplied SAS token pointing to a previously stored +// Azure Blob storage backup folder +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 7.4 +func (client *Client) selectiveKeyRestore(ctx context.Context, keyName string, restoreBlobDetails SelectiveKeyRestoreOperationParameters, options *BeginSelectiveKeyRestoreOptions) (*http.Response, error) { + req, err := client.selectiveKeyRestoreCreateRequest(ctx, keyName, restoreBlobDetails, options) + if err != nil { + return nil, err + } + resp, err := client.internal.Pipeline().Do(req) + if err != nil { + return nil, err + } + if !runtime.HasStatusCode(resp, http.StatusAccepted) { + return nil, runtime.NewResponseError(resp) + } + return resp, nil +} + +// selectiveKeyRestoreCreateRequest creates the SelectiveKeyRestore request. +func (client *Client) selectiveKeyRestoreCreateRequest(ctx context.Context, keyName string, restoreBlobDetails SelectiveKeyRestoreOperationParameters, options *BeginSelectiveKeyRestoreOptions) (*policy.Request, error) { + urlPath := "/keys/{keyName}/restore" + if keyName == "" { + return nil, errors.New("parameter keyName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{keyName}", url.PathEscape(keyName)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.endpoint, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "7.4") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, runtime.MarshalAsJSON(req, restoreBlobDetails) +} diff --git a/sdk/security/keyvault/azadmin/backup/client_test.go b/sdk/security/keyvault/azadmin/backup/client_test.go new file mode 100644 index 000000000000..c3c63e354afb --- /dev/null +++ b/sdk/security/keyvault/azadmin/backup/client_test.go @@ -0,0 +1,152 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package backup_test + +import ( + "context" + "strings" + "testing" + "time" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" + "github.com/Azure/azure-sdk-for-go/sdk/keyvault/azkeys" + "github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/azadmin/backup" + "github.com/stretchr/testify/require" +) + +func TestBackupRestore(t *testing.T) { + client, sasToken := startBackupTest(t) + + testSerde(t, &sasToken) + + // backup the vault + backupPoller, err := client.BeginFullBackup(context.Background(), sasToken, nil) + require.NoError(t, err) + backupResults, err := backupPoller.PollUntilDone(context.Background(), nil) + require.NoError(t, err) + require.Nil(t, backupResults.Error) + require.Equal(t, "Succeeded", *backupResults.Status) + require.Contains(t, *backupResults.AzureStorageBlobContainerURI, blobURL) + testSerde(t, &backupResults) + + // restore the backup + s := *backupResults.AzureStorageBlobContainerURI + folderURI := s[strings.LastIndex(s, "/")+1:] + restoreOperationParameters := backup.RestoreOperationParameters{ + FolderToRestore: &folderURI, + SasTokenParameters: &sasToken, + } + testSerde(t, &restoreOperationParameters) + restorePoller, err := client.BeginFullRestore(context.Background(), restoreOperationParameters, nil) + require.NoError(t, err) + restoreResults, err := restorePoller.PollUntilDone(context.Background(), nil) + require.NoError(t, err) + require.Nil(t, restoreResults.Error) + require.Equal(t, "Succeeded", *restoreResults.Status) + require.NotNil(t, restoreResults.StartTime) + require.NotNil(t, restoreResults.EndTime) + require.NotNil(t, restoreResults.JobID) + testSerde(t, &restoreResults) + + // additional waiting to avoid conflicts with resources in other tests + if recording.GetRecordMode() != recording.PlaybackMode { + time.Sleep(61 * time.Second) + } +} + +func TestBackupRestoreWithResumeToken(t *testing.T) { + client, sasToken := startBackupTest(t) + + // backup the vault + backupPoller, err := client.BeginFullBackup(context.Background(), sasToken, nil) + require.NoError(t, err) + + // create a new poller from a continuation token + token, err := backupPoller.ResumeToken() + require.NoError(t, err) + newBackupPoller, err := client.BeginFullBackup(context.Background(), sasToken, &backup.BeginFullBackupOptions{ResumeToken: token}) + require.NoError(t, err) + backupResults, err := newBackupPoller.PollUntilDone(context.Background(), nil) + require.NoError(t, err) + require.Nil(t, backupResults.Error) + require.Equal(t, "Succeeded", *backupResults.Status) + require.Contains(t, *backupResults.AzureStorageBlobContainerURI, blobURL) + testSerde(t, &backupResults) + + // restore the backup + s := *backupResults.AzureStorageBlobContainerURI + folderURI := s[strings.LastIndex(s, "/")+1:] + restoreOperationParameters := backup.RestoreOperationParameters{ + FolderToRestore: &folderURI, + SasTokenParameters: &sasToken, + } + testSerde(t, &restoreOperationParameters) + restorePoller, err := client.BeginFullRestore(context.Background(), restoreOperationParameters, nil) + require.NoError(t, err) + + // create a new poller from a continuation token + restoreToken, err := restorePoller.ResumeToken() + require.NoError(t, err) + newRestorePoller, err := client.BeginFullRestore(context.Background(), restoreOperationParameters, &backup.BeginFullRestoreOptions{ResumeToken: restoreToken}) + require.NoError(t, err) + restoreResults, err := newRestorePoller.PollUntilDone(context.Background(), nil) + require.NoError(t, err) + require.Nil(t, restoreResults.Error) + require.Equal(t, "Succeeded", *restoreResults.Status) + require.NotNil(t, restoreResults.StartTime) + require.NotNil(t, restoreResults.EndTime) + require.NotNil(t, restoreResults.JobID) + testSerde(t, &restoreResults) + + // additional waiting to avoid conflicts with resources in other tests + if recording.GetRecordMode() != recording.PlaybackMode { + time.Sleep(60 * time.Second) + } +} + +func TestBeginSelectiveKeyRestoreOperation(t *testing.T) { + backupClient, sasToken := startBackupTest(t) + + // create a key to selectively restore + if recording.GetRecordMode() != recording.PlaybackMode { + cred := credential + keyClient, err := azkeys.NewClient(hsmURL, cred, nil) + require.NoError(t, err) + params := azkeys.CreateKeyParameters{ + KeySize: to.Ptr(int32(2048)), + Kty: to.Ptr(azkeys.JSONWebKeyTypeRSA), + } + _, err = keyClient.CreateKey(context.TODO(), "selective-restore-test-key", params, nil) + require.NoError(t, err) + } + + // backup the vault + backupPoller, err := backupClient.BeginFullBackup(context.Background(), sasToken, nil) + require.NoError(t, err) + backupResults, err := backupPoller.PollUntilDone(context.Background(), nil) + require.NoError(t, err) + + // restore the key + s := *backupResults.AzureStorageBlobContainerURI + folderURI := s[strings.LastIndex(s, "/")+1:] + restoreOperationParameters := backup.SelectiveKeyRestoreOperationParameters{ + Folder: &folderURI, + SasTokenParameters: &sasToken, + } + testSerde(t, &restoreOperationParameters) + selectivePoller, err := backupClient.BeginSelectiveKeyRestore(context.Background(), "selective-restore-test-key", restoreOperationParameters, nil) + require.NoError(t, err) + selectiveResults, err := selectivePoller.PollUntilDone(context.Background(), nil) + require.NoError(t, err) + testSerde(t, &selectiveResults) + + // additional waiting to avoid conflicts with resources in other tests + if recording.GetRecordMode() != recording.PlaybackMode { + time.Sleep(60 * time.Second) + } +} diff --git a/sdk/security/keyvault/azadmin/backup/custom_client.go b/sdk/security/keyvault/azadmin/backup/custom_client.go new file mode 100644 index 000000000000..eadaf43d41f1 --- /dev/null +++ b/sdk/security/keyvault/azadmin/backup/custom_client.go @@ -0,0 +1,127 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package backup + +// this file contains handwritten additions to the generated code + +import ( + "context" + "encoding/json" + "fmt" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/azadmin/backup/internal/pollers" + ainternal "github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/azadmin/internal" + "github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/internal" +) + +// ClientOptions contains optional settings for Client. +type ClientOptions struct { + azcore.ClientOptions + + // DisableChallengeResourceVerification controls whether the policy requires the + // authentication challenge resource to match the Key Vault or Managed HSM domain. + // See https://aka.ms/azsdk/blog/vault-uri for more information. + DisableChallengeResourceVerification bool +} + +// NewClient creates a client that performs backup and restore operations for a Managed HSM. +// You should validate that vaultURL references a valid Managed HSM. See https://aka.ms/azsdk/blog/vault-uri for details. +func NewClient(vaultURL string, credential azcore.TokenCredential, options *ClientOptions) (*Client, error) { + if options == nil { + options = &ClientOptions{} + } + authPolicy := internal.NewKeyVaultChallengePolicy( + credential, + &internal.KeyVaultChallengePolicyOptions{ + DisableChallengeResourceVerification: options.DisableChallengeResourceVerification, + }, + ) + azcoreClient, err := azcore.NewClient("backup.Client", ainternal.Version, runtime.PipelineOptions{PerRetry: []policy.Policy{authPolicy}}, &options.ClientOptions) + if err != nil { + return nil, err + } + return &Client{endpoint: vaultURL, internal: azcoreClient}, nil +} + +// ServerError - Internal error from Azure Key Vault server. +type ServerError struct { + // REQUIRED; A machine readable error code. + Code string + + // full error message detailing why the operation failed. + data []byte +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Error. +func (e *ServerError) UnmarshalJSON(data []byte) error { + e.data = data + ei := struct{ Code string }{} + if err := json.Unmarshal(data, &ei); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", e, err) + } + e.Code = ei.Code + + return nil +} + +// Error implements a custom error for type ServerError. +func (e *ServerError) Error() string { + return string(e.data) +} + +// beginFullRestore is a custom implementation of BeginFullRestore +// Uses custom poller handler +func (client *Client) beginFullRestore(ctx context.Context, restoreBlobDetails RestoreOperationParameters, options *BeginFullRestoreOptions) (*runtime.Poller[FullRestoreResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.fullRestore(ctx, restoreBlobDetails, options) + if err != nil { + return nil, err + } + handler, err := pollers.NewRestorePoller[FullRestoreResponse](client.internal.Pipeline(), resp, runtime.FinalStateViaAzureAsyncOp) + if err != nil { + return nil, err + } + return runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[FullRestoreResponse]{ + FinalStateVia: runtime.FinalStateViaAzureAsyncOp, + Handler: handler, + }) + } else { + handler, err := pollers.NewRestorePoller[FullRestoreResponse](client.internal.Pipeline(), nil, runtime.FinalStateViaAzureAsyncOp) + if err != nil { + return nil, err + } + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[FullRestoreResponse]{Handler: handler}) + } +} + +// beginSelectiveKeyRestore is a custom implementation of BeginFullRestore +// Uses custom poller handler +func (client *Client) beginSelectiveKeyRestore(ctx context.Context, keyName string, restoreBlobDetails SelectiveKeyRestoreOperationParameters, options *BeginSelectiveKeyRestoreOptions) (*runtime.Poller[SelectiveKeyRestoreResponse], error) { + if options == nil || options.ResumeToken == "" { + resp, err := client.selectiveKeyRestore(ctx, keyName, restoreBlobDetails, options) + if err != nil { + return nil, err + } + handler, err := pollers.NewRestorePoller[SelectiveKeyRestoreResponse](client.internal.Pipeline(), resp, runtime.FinalStateViaAzureAsyncOp) + if err != nil { + return nil, err + } + return runtime.NewPoller(resp, client.internal.Pipeline(), &runtime.NewPollerOptions[SelectiveKeyRestoreResponse]{ + FinalStateVia: runtime.FinalStateViaAzureAsyncOp, + Handler: handler, + }) + } else { + handler, err := pollers.NewRestorePoller[SelectiveKeyRestoreResponse](client.internal.Pipeline(), nil, runtime.FinalStateViaAzureAsyncOp) + if err != nil { + return nil, err + } + return runtime.NewPollerFromResumeToken(options.ResumeToken, client.internal.Pipeline(), &runtime.NewPollerFromResumeTokenOptions[SelectiveKeyRestoreResponse]{Handler: handler}) + } +} diff --git a/sdk/security/keyvault/azadmin/backup/example_test.go b/sdk/security/keyvault/azadmin/backup/example_test.go new file mode 100644 index 000000000000..fc32ce5cf189 --- /dev/null +++ b/sdk/security/keyvault/azadmin/backup/example_test.go @@ -0,0 +1,138 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package backup_test + +import ( + "context" + "fmt" + "strings" + + "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/keyvault/azkeys" + "github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/azadmin/backup" +) + +var client *backup.Client +var keyClient *azkeys.Client + +func ExampleNewClient() { + vaultURL := "https://.managedhsm.azure.net/" + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + // TODO: handle error + } + + client, err := backup.NewClient(vaultURL, cred, nil) + if err != nil { + // TODO: handle error + } + + _ = client +} + +func ExampleClient_BeginFullBackup() { + storageParameters := backup.SASTokenParameter{ + StorageResourceURI: to.Ptr("https://.blob.core.windows.net/"), + Token: to.Ptr(""), + } + backupPoller, err := client.BeginFullBackup(context.Background(), storageParameters, nil) + if err != nil { + // TODO: handle error + } + backupResults, err := backupPoller.PollUntilDone(context.Background(), nil) + if err != nil { + // TODO: handle error + } + fmt.Printf("Status of backup: %s", *backupResults.Status) +} +func ExampleClient_BeginFullRestore() { + // first, backup the managed HSM to a blob storage container + storageParameters := backup.SASTokenParameter{ + StorageResourceURI: to.Ptr("https://.blob.core.windows.net/"), + Token: to.Ptr(""), + } + backupPoller, err := client.BeginFullBackup(context.Background(), storageParameters, nil) + if err != nil { + // TODO: handle error + } + backupResults, err := backupPoller.PollUntilDone(context.Background(), nil) + if err != nil { + // TODO: handle error + } + + // FolderToRestore is the folder in the blob container your managed HSM was uploaded to + // FolderToRestore can be extracted from the returned backupResults.AzureStorageBlobContainerURI + s := *backupResults.AzureStorageBlobContainerURI + folderName := s[strings.LastIndex(s, "/")+1:] + + // begin the restore operation + restoreOperationParameters := backup.RestoreOperationParameters{ + FolderToRestore: to.Ptr(folderName), + SasTokenParameters: &backup.SASTokenParameter{ + StorageResourceURI: to.Ptr("https://.blob.core.windows.net/"), + Token: to.Ptr(""), + }, + } + restorePoller, err := client.BeginFullRestore(context.Background(), restoreOperationParameters, nil) + if err != nil { + // TODO: handle error + } + + // Poll for the results + restoreResults, err := restorePoller.PollUntilDone(context.Background(), nil) + if err != nil { + // TODO: handle error + } + + fmt.Printf("Status of restore: %s", *restoreResults.Status) +} + +func ExampleClient_BeginSelectiveKeyRestore() { + // first, create a key to backup + params := azkeys.CreateKeyParameters{ + KeySize: to.Ptr(int32(2048)), + Kty: to.Ptr(azkeys.JSONWebKeyTypeRSA), + } + _, err := keyClient.CreateKey(context.TODO(), "", params, nil) + if err != nil { + // TODO: handle error + } + + // backup the vault + storageParameters := backup.SASTokenParameter{ + StorageResourceURI: to.Ptr("https://.blob.core.windows.net/"), + Token: to.Ptr(""), + } + backupPoller, err := client.BeginFullBackup(context.Background(), storageParameters, nil) + if err != nil { + // TODO: handle error + } + backupResults, err := backupPoller.PollUntilDone(context.Background(), nil) + if err != nil { + // TODO: handle error + } + + // extract the folder name where the vault was backed up + s := *backupResults.AzureStorageBlobContainerURI + folderName := s[strings.LastIndex(s, "/")+1:] + + // restore the key + restoreOperationParameters := backup.SelectiveKeyRestoreOperationParameters{ + Folder: to.Ptr(folderName), + SasTokenParameters: &backup.SASTokenParameter{ + StorageResourceURI: to.Ptr("https://.blob.core.windows.net/"), + Token: to.Ptr(""), + }, + } + selectivePoller, err := client.BeginSelectiveKeyRestore(context.Background(), "", restoreOperationParameters, nil) + if err != nil { + // TODO: handle error + } + selectiveResults, err := selectivePoller.PollUntilDone(context.Background(), nil) + if err != nil { + // TODO: handle error + } + fmt.Printf("Status of the selective restore: %s", *selectiveResults.Status) +} diff --git a/sdk/security/keyvault/azadmin/backup/internal/pollers/restore_poller.go b/sdk/security/keyvault/azadmin/backup/internal/pollers/restore_poller.go new file mode 100644 index 000000000000..dfa2a0174f6a --- /dev/null +++ b/sdk/security/keyvault/azadmin/backup/internal/pollers/restore_poller.go @@ -0,0 +1,161 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package pollers + +// this file contains handwritten additions to the generated code +// custom poller handler for restore operations + +import ( + "context" + "encoding/json" + "errors" + "fmt" + "net/http" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" +) + +func pollHelper(ctx context.Context, endpoint string, pl runtime.Pipeline, update func(resp *http.Response) (string, error)) error { + req, err := runtime.NewRequest(ctx, http.MethodGet, endpoint) + if err != nil { + return err + } + resp, err := pl.Do(req) + if err != nil { + return err + } + _, err = update(resp) + if err != nil { + return err + } + + return nil +} + +func resultHelper[T any](resp *http.Response, failed bool, out *T) error { + // short-circuit the simple success case with no response body to unmarshal + if resp.StatusCode == http.StatusNoContent { + return nil + } + + defer resp.Body.Close() + if !statusCodeValid(resp) || failed { + // the LRO failed. unmarshall the error and update state + return runtime.NewResponseError(resp) + } + + // success case + payload, err := runtime.Payload(resp) + if err != nil { + return err + } + if len(payload) == 0 { + return nil + } + + if err = json.Unmarshal(payload, out); err != nil { + return err + } + return nil +} + +// Poller is an LRO poller that uses the Azure-AsyncOperation pattern. +type restorePoller[T any] struct { + pl runtime.Pipeline + + resp *http.Response + + // The URL from Azure-AsyncOperation header. + AsyncURL string `json:"asyncURL"` + + // The URL from Location header. + LocURL string `json:"locURL"` + + // The URL from the initial LRO request. + OrigURL string `json:"origURL"` + + // The HTTP method from the initial LRO request. + Method string `json:"method"` + + // The value of final-state-via from swagger, can be the empty string. + FinalState runtime.FinalStateVia `json:"finalState"` + + // The LRO's current state. + CurState string `json:"state"` +} + +// NewRestorePoller creates a new Poller from the provided initial response and final-state type. +// Pass nil for response to create an empty Poller for rehydration. +func NewRestorePoller[T any](pl runtime.Pipeline, resp *http.Response, finalState runtime.FinalStateVia) (*restorePoller[T], error) { + if resp == nil { + return &restorePoller[T]{pl: pl}, nil + } + //log.Write(log.EventLRO, "Using Azure-AsyncOperation poller.") + asyncURL := resp.Header.Get("Azure-AsyncOperation") + if asyncURL == "" { + return nil, errors.New("response is missing Azure-AsyncOperation header") + } + if !isValidURL(asyncURL) { + return nil, fmt.Errorf("invalid polling URL %s", asyncURL) + } + // check for provisioning state. if the operation is a RELO + // and terminates synchronously this will prevent extra polling. + // it's ok if there's no provisioning state. + state, _ := getProvisioningState(resp) + if state == "" { + state = statusInProgress + } + p := &restorePoller[T]{ + pl: pl, + resp: resp, + AsyncURL: asyncURL, + LocURL: resp.Header.Get("Location"), + OrigURL: resp.Request.URL.String(), + Method: resp.Request.Method, + FinalState: finalState, + CurState: state, + } + return p, nil +} + +// Done returns true if the LRO is in a terminal state. +func (p *restorePoller[T]) Done() bool { + return isTerminalState(p.CurState) +} + +// Poll retrieves the current state of the LRO. +func (p *restorePoller[T]) Poll(ctx context.Context) (*http.Response, error) { + err := pollHelper(ctx, p.AsyncURL, p.pl, func(resp *http.Response) (string, error) { + if !statusCodeValid(resp) { + p.resp = resp + return "", runtime.NewResponseError(resp) + } + state, err := getStatus(resp) + if err != nil { + return "", err + } else if state == "" { + return "", errors.New("the response did not contain a status") + } + p.resp = resp + p.CurState = state + return p.CurState, nil + }) + if err != nil { + return nil, err + } + return p.resp, nil +} + +func (p *restorePoller[T]) Result(ctx context.Context, out *T) error { + if p.resp.StatusCode == http.StatusNoContent { + return nil + } else if failed(p.CurState) { + return runtime.NewResponseError(p.resp) + } + + return resultHelper(p.resp, failed(p.CurState), out) +} diff --git a/sdk/security/keyvault/azadmin/backup/internal/pollers/utils_poller.go b/sdk/security/keyvault/azadmin/backup/internal/pollers/utils_poller.go new file mode 100644 index 000000000000..aa17904cb936 --- /dev/null +++ b/sdk/security/keyvault/azadmin/backup/internal/pollers/utils_poller.go @@ -0,0 +1,209 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package pollers + +// this file contains handwritten additions to the generated code +// code to support the custom poller handler + +import ( + "encoding/json" + "errors" + "io" + "net/http" + "net/url" + "strings" +) + +// the well-known set of LRO status/provisioning state values. +const ( + statusSucceeded = "Succeeded" + statusCanceled = "Canceled" + statusFailed = "Failed" + statusInProgress = "InProgress" +) + +// isTerminalState returns true if the LRO's state is terminal. +func isTerminalState(s string) bool { + return strings.EqualFold(s, statusSucceeded) || strings.EqualFold(s, statusFailed) || strings.EqualFold(s, statusCanceled) +} + +// failed returns true if the LRO's state is terminal failure. +func failed(s string) bool { + return strings.EqualFold(s, statusFailed) || strings.EqualFold(s, statusCanceled) +} + +// returns true if the LRO response contains a valid HTTP status code +func statusCodeValid(resp *http.Response) bool { + return hasStatusCode(resp, http.StatusOK, http.StatusAccepted, http.StatusCreated, http.StatusNoContent) +} + +// isValidURL verifies that the URL is valid and absolute. +func isValidURL(s string) bool { + u, err := url.Parse(s) + return err == nil && u.IsAbs() +} + +// errNoBody is returned if the response didn't contain a body. +var errNoBody = errors.New("the response did not contain a body") + +// getJSON reads the response body into a raw JSON object. +// It returns ErrNoBody if there was no content. +func getJSON(resp *http.Response) (map[string]any, error) { + body, err := payload(resp) + if err != nil { + return nil, err + } + if len(body) == 0 { + return nil, errNoBody + } + // unmarshall the body to get the value + var jsonBody map[string]any + if err = json.Unmarshal(body, &jsonBody); err != nil { + return nil, err + } + return jsonBody, nil +} + +// provisioningState returns the provisioning state from the response or the empty string. +func provisioningState(jsonBody map[string]any) string { + jsonProps, ok := jsonBody["properties"] + if !ok { + return "" + } + props, ok := jsonProps.(map[string]any) + if !ok { + return "" + } + rawPs, ok := props["provisioningState"] + if !ok { + return "" + } + ps, ok := rawPs.(string) + if !ok { + return "" + } + return ps +} + +// status returns the status from the response or the empty string. +func status(jsonBody map[string]any) string { + rawStatus, ok := jsonBody["status"] + if !ok { + return "" + } + status, ok := rawStatus.(string) + if !ok { + return "" + } + return status +} + +// getStatus returns the LRO's status from the response body. +// Typically used for Azure-AsyncOperation flows. +// If there is no status in the response body the empty string is returned. +func getStatus(resp *http.Response) (string, error) { + jsonBody, err := getJSON(resp) + if err != nil { + return "", err + } + return status(jsonBody), nil +} + +// getProvisioningState returns the LRO's state from the response body. +// If there is no state in the response body the empty string is returned. +func getProvisioningState(resp *http.Response) (string, error) { + jsonBody, err := getJSON(resp) + if err != nil { + return "", err + } + return provisioningState(jsonBody), nil +} + +// hasStatusCode returns true if the Response's status code is one of the specified values. +// Exported as runtime.HasStatusCode(). +func hasStatusCode(resp *http.Response, statusCodes ...int) bool { + if resp == nil { + return false + } + for _, sc := range statusCodes { + if resp.StatusCode == sc { + return true + } + } + return false +} + +// payload reads and returns the response body or an error. +// On a successful read, the response body is cached. +// Subsequent reads will access the cached value. +// Exported as runtime.Payload(). +func payload(resp *http.Response) ([]byte, error) { + // r.Body won't be a nopClosingBytesReader if downloading was skipped + if buf, ok := resp.Body.(*nopClosingBytesReader); ok { + return buf.Bytes(), nil + } + bytesBody, err := io.ReadAll(resp.Body) + resp.Body.Close() + if err != nil { + return nil, err + } + resp.Body = &nopClosingBytesReader{s: bytesBody} + return bytesBody, nil +} + +// nopClosingBytesReader is an io.ReadSeekCloser around a byte slice. +// It also provides direct access to the byte slice to avoid rereading. +type nopClosingBytesReader struct { + s []byte + i int64 +} + +// Bytes returns the underlying byte slice. +func (r *nopClosingBytesReader) Bytes() []byte { + return r.s +} + +// Close implements the io.Closer interface. +func (*nopClosingBytesReader) Close() error { + return nil +} + +// Read implements the io.Reader interface. +func (r *nopClosingBytesReader) Read(b []byte) (n int, err error) { + if r.i >= int64(len(r.s)) { + return 0, io.EOF + } + n = copy(b, r.s[r.i:]) + r.i += int64(n) + return +} + +// Set replaces the existing byte slice with the specified byte slice and resets the reader. +func (r *nopClosingBytesReader) Set(b []byte) { + r.s = b + r.i = 0 +} + +// Seek implements the io.Seeker interface. +func (r *nopClosingBytesReader) Seek(offset int64, whence int) (int64, error) { + var i int64 + switch whence { + case io.SeekStart: + i = offset + case io.SeekCurrent: + i = r.i + offset + case io.SeekEnd: + i = int64(len(r.s)) + offset + default: + return 0, errors.New("nopClosingBytesReader: invalid whence") + } + if i < 0 { + return 0, errors.New("nopClosingBytesReader: negative position") + } + r.i = i + return i, nil +} diff --git a/sdk/security/keyvault/azadmin/backup/models.go b/sdk/security/keyvault/azadmin/backup/models.go new file mode 100644 index 000000000000..e46077059eb7 --- /dev/null +++ b/sdk/security/keyvault/azadmin/backup/models.go @@ -0,0 +1,123 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package backup + +import "time" + +// BeginFullBackupOptions contains the optional parameters for the Client.BeginFullBackup method. +type BeginFullBackupOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// BeginFullRestoreOptions contains the optional parameters for the Client.BeginFullRestore method. +type BeginFullRestoreOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// BeginSelectiveKeyRestoreOptions contains the optional parameters for the Client.BeginSelectiveKeyRestore method. +type BeginSelectiveKeyRestoreOptions struct { + // Resumes the LRO from the provided token. + ResumeToken string +} + +// FullBackupOperation - Full backup operation +type FullBackupOperation struct { + // The Azure blob storage container Uri which contains the full backup + AzureStorageBlobContainerURI *string `json:"azureStorageBlobContainerUri,omitempty"` + + // The end time of the backup operation in UTC + EndTime *time.Time `json:"endTime,omitempty"` + + // Error encountered, if any, during the full backup operation. + Error *ServerError `json:"error,omitempty"` + + // Identifier for the full backup operation. + JobID *string `json:"jobId,omitempty"` + + // The start time of the backup operation in UTC + StartTime *time.Time `json:"startTime,omitempty"` + + // Status of the backup operation. + Status *string `json:"status,omitempty"` + + // The status details of backup operation. + StatusDetails *string `json:"statusDetails,omitempty"` +} + +// RestoreOperation - Restore operation +type RestoreOperation struct { + // The end time of the restore operation + EndTime *time.Time `json:"endTime,omitempty"` + + // Error encountered, if any, during the restore operation. + Error *ServerError `json:"error,omitempty"` + + // Identifier for the restore operation. + JobID *string `json:"jobId,omitempty"` + + // The start time of the restore operation + StartTime *time.Time `json:"startTime,omitempty"` + + // Status of the restore operation. + Status *string `json:"status,omitempty"` + + // The status details of restore operation. + StatusDetails *string `json:"statusDetails,omitempty"` +} + +// RestoreOperationParameters - Parameters for the restore operation +type RestoreOperationParameters struct { + // REQUIRED; The Folder name of the blob where the previous successful full backup was stored + FolderToRestore *string `json:"folderToRestore,omitempty"` + + // REQUIRED; Contains the information required to access blob storage. + SasTokenParameters *SASTokenParameter `json:"sasTokenParameters,omitempty"` +} + +// SASTokenParameter - Contains the information required to access blob storage. +type SASTokenParameter struct { + // REQUIRED; Azure Blob storage container Uri + StorageResourceURI *string `json:"storageResourceUri,omitempty"` + + // REQUIRED; The SAS token pointing to an Azure Blob storage container + Token *string `json:"token,omitempty"` +} + +// SelectiveKeyRestoreOperation - Selective Key Restore operation +type SelectiveKeyRestoreOperation struct { + // The end time of the restore operation + EndTime *time.Time `json:"endTime,omitempty"` + + // Error encountered, if any, during the selective key restore operation. + Error *ServerError `json:"error,omitempty"` + + // Identifier for the selective key restore operation. + JobID *string `json:"jobId,omitempty"` + + // The start time of the restore operation + StartTime *time.Time `json:"startTime,omitempty"` + + // Status of the restore operation. + Status *string `json:"status,omitempty"` + + // The status details of restore operation. + StatusDetails *string `json:"statusDetails,omitempty"` +} + +// SelectiveKeyRestoreOperationParameters - Parameters for the selective restore operation +type SelectiveKeyRestoreOperationParameters struct { + // REQUIRED; The Folder name of the blob where the previous successful full backup was stored + Folder *string `json:"folder,omitempty"` + + // REQUIRED; Contains the information required to access blob storage. + SasTokenParameters *SASTokenParameter `json:"sasTokenParameters,omitempty"` +} diff --git a/sdk/security/keyvault/azadmin/backup/models_serde.go b/sdk/security/keyvault/azadmin/backup/models_serde.go new file mode 100644 index 000000000000..a4ed36717206 --- /dev/null +++ b/sdk/security/keyvault/azadmin/backup/models_serde.go @@ -0,0 +1,275 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package backup + +import ( + "encoding/json" + "fmt" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "reflect" +) + +// MarshalJSON implements the json.Marshaller interface for type FullBackupOperation. +func (f FullBackupOperation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "azureStorageBlobContainerUri", f.AzureStorageBlobContainerURI) + populateTimeUnix(objectMap, "endTime", f.EndTime) + populate(objectMap, "error", f.Error) + populate(objectMap, "jobId", f.JobID) + populateTimeUnix(objectMap, "startTime", f.StartTime) + populate(objectMap, "status", f.Status) + populate(objectMap, "statusDetails", f.StatusDetails) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type FullBackupOperation. +func (f *FullBackupOperation) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", f, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "azureStorageBlobContainerUri": + err = unpopulate(val, "AzureStorageBlobContainerURI", &f.AzureStorageBlobContainerURI) + delete(rawMsg, key) + case "endTime": + err = unpopulateTimeUnix(val, "EndTime", &f.EndTime) + delete(rawMsg, key) + case "error": + err = unpopulate(val, "Error", &f.Error) + delete(rawMsg, key) + case "jobId": + err = unpopulate(val, "JobID", &f.JobID) + delete(rawMsg, key) + case "startTime": + err = unpopulateTimeUnix(val, "StartTime", &f.StartTime) + delete(rawMsg, key) + case "status": + err = unpopulate(val, "Status", &f.Status) + delete(rawMsg, key) + case "statusDetails": + err = unpopulate(val, "StatusDetails", &f.StatusDetails) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", f, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type RestoreOperation. +func (r RestoreOperation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateTimeUnix(objectMap, "endTime", r.EndTime) + populate(objectMap, "error", r.Error) + populate(objectMap, "jobId", r.JobID) + populateTimeUnix(objectMap, "startTime", r.StartTime) + populate(objectMap, "status", r.Status) + populate(objectMap, "statusDetails", r.StatusDetails) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RestoreOperation. +func (r *RestoreOperation) 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 "endTime": + err = unpopulateTimeUnix(val, "EndTime", &r.EndTime) + delete(rawMsg, key) + case "error": + err = unpopulate(val, "Error", &r.Error) + delete(rawMsg, key) + case "jobId": + err = unpopulate(val, "JobID", &r.JobID) + delete(rawMsg, key) + case "startTime": + err = unpopulateTimeUnix(val, "StartTime", &r.StartTime) + delete(rawMsg, key) + case "status": + err = unpopulate(val, "Status", &r.Status) + delete(rawMsg, key) + case "statusDetails": + err = unpopulate(val, "StatusDetails", &r.StatusDetails) + 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 RestoreOperationParameters. +func (r RestoreOperationParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "folderToRestore", r.FolderToRestore) + populate(objectMap, "sasTokenParameters", r.SasTokenParameters) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RestoreOperationParameters. +func (r *RestoreOperationParameters) 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 "folderToRestore": + err = unpopulate(val, "FolderToRestore", &r.FolderToRestore) + delete(rawMsg, key) + case "sasTokenParameters": + err = unpopulate(val, "SasTokenParameters", &r.SasTokenParameters) + 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 SASTokenParameter. +func (s SASTokenParameter) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "storageResourceUri", s.StorageResourceURI) + populate(objectMap, "token", s.Token) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SASTokenParameter. +func (s *SASTokenParameter) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "storageResourceUri": + err = unpopulate(val, "StorageResourceURI", &s.StorageResourceURI) + delete(rawMsg, key) + case "token": + err = unpopulate(val, "Token", &s.Token) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SelectiveKeyRestoreOperation. +func (s SelectiveKeyRestoreOperation) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populateTimeUnix(objectMap, "endTime", s.EndTime) + populate(objectMap, "error", s.Error) + populate(objectMap, "jobId", s.JobID) + populateTimeUnix(objectMap, "startTime", s.StartTime) + populate(objectMap, "status", s.Status) + populate(objectMap, "statusDetails", s.StatusDetails) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SelectiveKeyRestoreOperation. +func (s *SelectiveKeyRestoreOperation) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "endTime": + err = unpopulateTimeUnix(val, "EndTime", &s.EndTime) + delete(rawMsg, key) + case "error": + err = unpopulate(val, "Error", &s.Error) + delete(rawMsg, key) + case "jobId": + err = unpopulate(val, "JobID", &s.JobID) + delete(rawMsg, key) + case "startTime": + err = unpopulateTimeUnix(val, "StartTime", &s.StartTime) + delete(rawMsg, key) + case "status": + err = unpopulate(val, "Status", &s.Status) + delete(rawMsg, key) + case "statusDetails": + err = unpopulate(val, "StatusDetails", &s.StatusDetails) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type SelectiveKeyRestoreOperationParameters. +func (s SelectiveKeyRestoreOperationParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "folder", s.Folder) + populate(objectMap, "sasTokenParameters", s.SasTokenParameters) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type SelectiveKeyRestoreOperationParameters. +func (s *SelectiveKeyRestoreOperationParameters) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "folder": + err = unpopulate(val, "Folder", &s.Folder) + delete(rawMsg, key) + case "sasTokenParameters": + err = unpopulate(val, "SasTokenParameters", &s.SasTokenParameters) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +func populate(m map[string]any, k string, v any) { + if v == nil { + return + } else if azcore.IsNullValue(v) { + m[k] = nil + } else if !reflect.ValueOf(v).IsNil() { + m[k] = v + } +} + +func unpopulate(data json.RawMessage, fn string, v any) error { + if data == nil { + return nil + } + if err := json.Unmarshal(data, v); err != nil { + return fmt.Errorf("struct field %s: %v", fn, err) + } + return nil +} diff --git a/sdk/security/keyvault/azadmin/backup/response_types.go b/sdk/security/keyvault/azadmin/backup/response_types.go new file mode 100644 index 000000000000..7c8badf13172 --- /dev/null +++ b/sdk/security/keyvault/azadmin/backup/response_types.go @@ -0,0 +1,25 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package backup + +// FullBackupResponse contains the response from method Client.BeginFullBackup. +type FullBackupResponse struct { + FullBackupOperation +} + +// FullRestoreResponse contains the response from method Client.BeginFullRestore. +type FullRestoreResponse struct { + RestoreOperation +} + +// SelectiveKeyRestoreResponse contains the response from method Client.BeginSelectiveKeyRestore. +type SelectiveKeyRestoreResponse struct { + SelectiveKeyRestoreOperation +} diff --git a/sdk/security/keyvault/azadmin/backup/time_unix.go b/sdk/security/keyvault/azadmin/backup/time_unix.go new file mode 100644 index 000000000000..15bcb31976cc --- /dev/null +++ b/sdk/security/keyvault/azadmin/backup/time_unix.go @@ -0,0 +1,62 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package backup + +import ( + "encoding/json" + "fmt" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "reflect" + "strings" + "time" +) + +type timeUnix time.Time + +func (t timeUnix) MarshalJSON() ([]byte, error) { + return json.Marshal(time.Time(t).Unix()) +} + +func (t *timeUnix) UnmarshalJSON(data []byte) error { + var seconds int64 + if err := json.Unmarshal(data, &seconds); err != nil { + return err + } + *t = timeUnix(time.Unix(seconds, 0)) + return nil +} + +func (t timeUnix) String() string { + return fmt.Sprintf("%d", time.Time(t).Unix()) +} + +func populateTimeUnix(m map[string]any, k string, t *time.Time) { + if t == nil { + return + } else if azcore.IsNullValue(t) { + m[k] = nil + return + } else if reflect.ValueOf(t).IsNil() { + return + } + m[k] = (*timeUnix)(t) +} + +func unpopulateTimeUnix(data json.RawMessage, fn string, t **time.Time) error { + if data == nil || strings.EqualFold(string(data), "null") { + return nil + } + var aux timeUnix + if err := json.Unmarshal(data, &aux); err != nil { + return fmt.Errorf("struct field %s: %v", fn, err) + } + *t = (*time.Time)(&aux) + return nil +} diff --git a/sdk/security/keyvault/azadmin/backup/utils_test.go b/sdk/security/keyvault/azadmin/backup/utils_test.go new file mode 100644 index 000000000000..9ac73ea73cbc --- /dev/null +++ b/sdk/security/keyvault/azadmin/backup/utils_test.go @@ -0,0 +1,162 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package backup_test + +import ( + "context" + "encoding/json" + "fmt" + "os" + "regexp" + "testing" + "time" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" + "github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/azadmin/backup" + "github.com/stretchr/testify/require" +) + +const fakeHsmURL = "https://fakehsm.managedhsm.azure.net/" +const fakeBlobURL = "https://fakestorageaccount.blob.core.windows.net/backup" +const fakeToken = "fakeSasToken" + +var ( + credential azcore.TokenCredential + hsmURL string + token string + blobURL string +) + +func TestMain(m *testing.M) { + if recording.GetRecordMode() != recording.PlaybackMode { + hsmURL = os.Getenv("AZURE_MANAGEDHSM_URL") + blobURL = "https://" + os.Getenv("BLOB_STORAGE_ACCOUNT_NAME") + ".blob." + os.Getenv("KEYVAULT_STORAGE_ENDPOINT_SUFFIX") + "/" + os.Getenv("BLOB_CONTAINER_NAME") + token = os.Getenv("BLOB_STORAGE_SAS_TOKEN") + } + if hsmURL == "" { + if recording.GetRecordMode() != recording.PlaybackMode { + panic("no value for AZURE_MANAGEDHSM_URL") + } + hsmURL = fakeHsmURL + } + if blobURL == "" { + if recording.GetRecordMode() != recording.PlaybackMode { + panic("no value for blob url") + } + blobURL = fakeBlobURL + } + if token == "" { + if recording.GetRecordMode() != recording.PlaybackMode { + panic("no value for BLOB_STORAGE_SAS_TOKEN") + } + token = fakeToken + } + + err := recording.ResetProxy(nil) + if err != nil { + panic(err) + } + if recording.GetRecordMode() == recording.PlaybackMode { + credential = &FakeCredential{} + } else { + tenantID := lookupEnvVar("AZADMIN_TENANT_ID") + clientID := lookupEnvVar("AZADMIN_CLIENT_ID") + secret := lookupEnvVar("AZADMIN_CLIENT_SECRET") + credential, err = azidentity.NewClientSecretCredential(tenantID, clientID, secret, nil) + if err != nil { + panic(err) + } + } + if recording.GetRecordMode() == recording.RecordingMode { + err := recording.AddGeneralRegexSanitizer(fakeHsmURL, hsmURL, nil) + if err != nil { + panic(err) + } + err = recording.AddGeneralRegexSanitizer(fakeBlobURL, blobURL, nil) + if err != nil { + panic(err) + } + err = recording.AddBodyRegexSanitizer(fakeToken, `sv=[^"]*`, nil) + if err != nil { + panic(err) + } + defer func() { + err := recording.ResetProxy(nil) + if err != nil { + panic(err) + } + }() + } + code := m.Run() + os.Exit(code) +} + +func startRecording(t *testing.T) { + err := recording.Start(t, "sdk/security/keyvault/azadmin/testdata", nil) + require.NoError(t, err) + t.Cleanup(func() { + err := recording.Stop(t, nil) + require.NoError(t, err) + }) +} + +func startBackupTest(t *testing.T) (*backup.Client, backup.SASTokenParameter) { + startRecording(t) + transport, err := recording.NewRecordingHTTPClient(t, nil) + require.NoError(t, err) + opts := &backup.ClientOptions{ClientOptions: azcore.ClientOptions{Transport: transport}} + client, err := backup.NewClient(hsmURL, credential, opts) + require.NoError(t, err) + sasToken := backup.SASTokenParameter{ + StorageResourceURI: &blobURL, + Token: &token, + } + + return client, sasToken +} + +func lookupEnvVar(s string) string { + ret, ok := os.LookupEnv(s) + if !ok { + panic(fmt.Sprintf("Could not find env var: '%s'", s)) + } + return ret +} + +type FakeCredential struct{} + +func (f *FakeCredential) GetToken(ctx context.Context, options policy.TokenRequestOptions) (azcore.AccessToken, error) { + return azcore.AccessToken{Token: "faketoken", ExpiresOn: time.Now().Add(time.Hour).UTC()}, nil +} + +type serdeModel interface { + json.Marshaler + json.Unmarshaler +} + +func testSerde[T serdeModel](t *testing.T, model T) { + data, err := model.MarshalJSON() + require.NoError(t, err) + err = model.UnmarshalJSON(data) + require.NoError(t, err) + + // testing unmarshal error scenarios + var data2 []byte + err = model.UnmarshalJSON(data2) + require.Error(t, err) + + m := regexp.MustCompile(":.*$") + modifiedData := m.ReplaceAllString(string(data), ":false}") + if modifiedData != "{}" { + data3 := []byte(modifiedData) + err = model.UnmarshalJSON(data3) + require.Error(t, err) + } +} diff --git a/sdk/security/keyvault/azadmin/build.go b/sdk/security/keyvault/azadmin/build.go new file mode 100644 index 000000000000..a324732a3b0f --- /dev/null +++ b/sdk/security/keyvault/azadmin/build.go @@ -0,0 +1,13 @@ +//go:build go1.18 +// +build go1.18 + +//go:generate autorest ./settings/autorest.md +//go:generate autorest ./rbac/autorest.md +//go:generate autorest ./backup/autorest.md +//go:generate rm ./backup/constants.go +//go:generate gofmt -w . + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package azadmin diff --git a/sdk/security/keyvault/azadmin/ci.yml b/sdk/security/keyvault/azadmin/ci.yml new file mode 100644 index 000000000000..131e1e9f0a07 --- /dev/null +++ b/sdk/security/keyvault/azadmin/ci.yml @@ -0,0 +1,34 @@ +# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. +trigger: + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/security/keyvault/azadmin + +pr: + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/security/keyvault/azadmin + +stages: +- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml + parameters: + TimeoutInMinutes: 120 + ServiceDirectory: 'security/keyvault/azadmin' + RunLiveTests: true + MatrixConfigs: + - Name: keyvault_test_matrix_addons + Path: sdk/security/keyvault/azadmin/platform-matrix.json + Selection: sparse + GenerateVMJobs: true \ No newline at end of file diff --git a/sdk/security/keyvault/azadmin/go.mod b/sdk/security/keyvault/azadmin/go.mod new file mode 100644 index 000000000000..95b20abcf44f --- /dev/null +++ b/sdk/security/keyvault/azadmin/go.mod @@ -0,0 +1,30 @@ +module github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/azadmin + +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.1 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.2.0 + github.com/Azure/azure-sdk-for-go/sdk/keyvault/azkeys v0.9.0 + github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/internal v0.8.0 + github.com/google/uuid v1.3.0 + github.com/stretchr/testify v1.8.2 +) + +require ( + github.com/Azure/azure-sdk-for-go/sdk/keyvault/internal v0.7.0 // indirect + github.com/AzureAD/microsoft-authentication-library-for-go v0.8.1 // indirect + github.com/davecgh/go-spew v1.1.1 // indirect + github.com/dnaeon/go-vcr v1.2.0 // indirect + github.com/golang-jwt/jwt/v4 v4.4.3 // indirect + github.com/kylelemons/godebug v1.1.0 // indirect + github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8 // indirect + github.com/pmezard/go-difflib v1.0.0 // 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 + gopkg.in/yaml.v2 v2.4.0 // indirect + gopkg.in/yaml.v3 v3.0.1 // indirect +) diff --git a/sdk/security/keyvault/azadmin/go.sum b/sdk/security/keyvault/azadmin/go.sum new file mode 100644 index 000000000000..8931ba509800 --- /dev/null +++ b/sdk/security/keyvault/azadmin/go.sum @@ -0,0 +1,54 @@ +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.1 h1:T8quHYlUGyb/oqtSTwqlCr1ilJHrDv+ZtpSfo+hm1BU= +github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.1/go.mod h1:gLa1CL2RNE4s7M3yopJ/p0iq5DdY6Yv5ZUt9MTRZOQM= +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/Azure/azure-sdk-for-go/sdk/keyvault/azkeys v0.9.0 h1:TOFrNxfjslms5nLLIMjW7N0+zSALX4KiGsptmpb16AA= +github.com/Azure/azure-sdk-for-go/sdk/keyvault/azkeys v0.9.0/go.mod h1:EAyXOW1F6BTJPiK2pDvmnvxOHPxoTYWoqBeIlql+QhI= +github.com/Azure/azure-sdk-for-go/sdk/keyvault/internal v0.7.0 h1:Lg6BW0VPmCwcMlvOviL3ruHFO+H9tZNqscK0AeuFjGM= +github.com/Azure/azure-sdk-for-go/sdk/keyvault/internal v0.7.0/go.mod h1:9V2j0jn9jDEkCkv8w/bKTNppX/d0FVA1ud77xCIP4KA= +github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/internal v0.8.0 h1:T028gtTPiYt/RMUfs8nVsAL7FDQrfLlrm/NnRG/zcC4= +github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/internal v0.8.0/go.mod h1:cw4zVQgBby0Z5f2v0itn6se2dDP17nTjbZFXW5uPyHA= +github.com/AzureAD/microsoft-authentication-library-for-go v0.8.1 h1:oPdPEZFSbl7oSPEAIPMPBMUmiL+mqgzBJwM/9qYcwNg= +github.com/AzureAD/microsoft-authentication-library-for-go v0.8.1/go.mod h1:4qFor3D/HDsvBME35Xy9rwW9DecL+M2sNw1ybjPtwA0= +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/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/dnaeon/go-vcr v1.2.0 h1:zHCHvJYTMh1N7xnV7zf1m1GPBF9Ad0Jk/whtQ1663qI= +github.com/dnaeon/go-vcr v1.2.0/go.mod h1:R4UdLID7HZT3taECzJs4YgbbH6PIGXB6W/sc5OLb6RQ= +github.com/golang-jwt/jwt/v4 v4.4.3 h1:Hxl6lhQFj4AnOX6MLrsCb/+7tCj7DxP7VA+2rDIq5AU= +github.com/golang-jwt/jwt/v4 v4.4.3/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= +github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= +github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= +github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= +github.com/modocache/gover v0.0.0-20171022184752-b58185e213c5/go.mod h1:caMODM3PzxT8aQXRPkAt8xlV/e7d7w8GM5g0fa5F0D8= +github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8 h1:KoWmjvw+nsYOo29YJK9vDA65RGE3NrOnUtO7a+RF9HU= +github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8/go.mod h1:HKlIX3XHQyzLZPlr7++PzdhaXEj94dEiJgZDTsxEqUI= +github.com/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/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= +github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= +github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= +github.com/stretchr/testify v1.8.2 h1:+h33VjcLVPDHtOdpUCuF+7gSuG3yGIftsP1YvFihtJ8= +github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= +golang.org/x/crypto v0.6.0 h1:qfktjS5LUO+fFKeJXZ+ikTRijMmljikvG68fpMMruSc= +golang.org/x/crypto v0.6.0/go.mod h1:OFC/31mSvZgRz0V1QTNCzfAI1aIRzbiufJtkMIlEp58= +golang.org/x/net v0.7.0 h1:rJrUqqhjsgNp7KqAIc25s9pZnjU7TUcSY7HcVZjdn1g= +golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= +golang.org/x/sys v0.0.0-20210616045830-e2b7044e8c71/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.5.0 h1:MUK/U/4lj1t1oPg0HfuXDN/Z1wv31ZJ/YcPiGccS4DU= +golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/text v0.7.0 h1:4BRB4x83lYWy72KwLD/qYDuTu7q9PjSagHvijDw7cLo= +golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/yaml.v2 v2.2.8/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.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= +gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/sdk/security/keyvault/azadmin/internal/version.go b/sdk/security/keyvault/azadmin/internal/version.go new file mode 100644 index 000000000000..51a2ce2701b5 --- /dev/null +++ b/sdk/security/keyvault/azadmin/internal/version.go @@ -0,0 +1,12 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package internal + +const ( + ModuleName = "azadmin" + Version = "v0.1.0" +) diff --git a/sdk/security/keyvault/azadmin/platform-matrix.json b/sdk/security/keyvault/azadmin/platform-matrix.json new file mode 100644 index 000000000000..51367ad93644 --- /dev/null +++ b/sdk/security/keyvault/azadmin/platform-matrix.json @@ -0,0 +1,17 @@ +{ + "displayNames": { + "@{ enableHsm = $true }": "HSM" + }, + "include": [ + { + "Agent": { + "ubuntu-20.04": { + "OSVmImage": "MMSUbuntu20.04", + "Pool": "azsdk-pool-mms-ubuntu-2004-general" + } + }, + "ArmTemplateParameters": "@{ enableHsm = $true }", + "GoVersion": ["1.18"] + } + ] +} \ No newline at end of file diff --git a/sdk/security/keyvault/azadmin/rbac/autorest.md b/sdk/security/keyvault/azadmin/rbac/autorest.md new file mode 100644 index 000000000000..e5f270446672 --- /dev/null +++ b/sdk/security/keyvault/azadmin/rbac/autorest.md @@ -0,0 +1,88 @@ +## Go + +```yaml +clear-output-folder: false +export-clients: true +go: true +input-file: + - https://github.com/Azure/azure-rest-api-specs/blob/551275acb80e1f8b39036b79dfc35a8f63b601a7/specification/keyvault/data-plane/Microsoft.KeyVault/stable/7.4/rbac.json +license-header: MICROSOFT_MIT_NO_VERSION +openapi-type: "data-plane" +output-folder: ../rbac +override-client-name: Client +security: "AADToken" +security-scopes: "https://vault.azure.net/.default" +use: "@autorest/go@4.0.0-preview.46" +version: "^3.0.0" + +directive: + + # make vault URL a parameter of the client constructor + - from: swagger-document + where: $["x-ms-parameterized-host"] + transform: $.parameters[0]["x-ms-parameter-location"] = "client" + + # delete generated client constructor + - from: client.go + where: $ + transform: return $.replace(/(?:\/\/.*\s)+func NewClient.+\{\s(?:.+\s)+\}\s/, ""); + + # rename role definition and role assignment operations so they will generate as one access control client + - rename-operation: + from: RoleDefinitions_Delete + to: DeleteRoleDefinition + - rename-operation: + from: RoleAssignments_Delete + to: DeleteRoleAssignment + - rename-operation: + from: RoleDefinitions_CreateOrUpdate + to: CreateOrUpdateRoleDefinition + - rename-operation: + from: RoleAssignments_Create + to: CreateRoleAssignment + - rename-operation: + from: RoleDefinitions_Get + to: GetRoleDefinition + - rename-operation: + from: RoleAssignments_Get + to: GetRoleAssignment + - rename-operation: + from: RoleDefinitions_List + to: ListRoleDefinitions + - rename-operation: + from: RoleAssignments_ListForScope + to: ListRoleAssignments + + # delete unused error models + - from: models.go + where: $ + transform: return $.replace(/(?:\/\/.*\s)+type (?:Error|KeyVaultError).+\{(?:\s.+\s)+\}\s/g, ""); + - from: models_serde.go + where: $ + transform: return $.replace(/(?:\/\/.*\s)+func \(\w \*?(?:Error|KeyVaultError)\).*\{\s(?:.+\s)+\}\s/g, ""); + + # delete unused filter models + - from: models.go + where: $ + transform: return $.replace(/(?:\/\/.*\s)+type (?:RoleAssignmentFilter|RoleDefinitionFilter).+\{(?:\s.+\s)+\}\s/g, ""); + - from: models_serde.go + where: $ + transform: return $.replace(/(?:\/\/.*\s)+func \(\w \*?(?:RoleAssignmentFilter|RoleDefinitionFilter)\).*\{\s(?:.+\s)+\}\s/g, ""); + + # change type of scope parameter from string to RoleScope + - from: client.go + where: $ + transform: return $.replace(/scope string/g, "scope RoleScope"); + - from: client.go + where: $ + transform: return $.replace(/scope\)/g, "string(scope))"); + + # delete client name prefix from method options and response types + - from: + - client.go + - models.go + - response_types.go + where: $ + transform: return $.replace(/Client(\w+)((?:Options|Response))/g, "$1$2"); + +``` \ No newline at end of file diff --git a/sdk/security/keyvault/azadmin/rbac/client.go b/sdk/security/keyvault/azadmin/rbac/client.go new file mode 100644 index 000000000000..c26467daed94 --- /dev/null +++ b/sdk/security/keyvault/azadmin/rbac/client.go @@ -0,0 +1,453 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package rbac + +import ( + "context" + "errors" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "net/http" + "net/url" + "strings" +) + +// Client contains the methods for the Client group. +// Don't use this type directly, use a constructor function instead. +type Client struct { + internal *azcore.Client + endpoint string +} + +// CreateOrUpdateRoleDefinition - Creates or updates a custom role definition. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 7.4 +// - scope - The scope of the role definition to create or update. Managed HSM only supports '/'. +// - roleDefinitionName - The name of the role definition to create or update. It can be any valid GUID. +// - parameters - Parameters for the role definition. +// - options - CreateOrUpdateRoleDefinitionOptions contains the optional parameters for the Client.CreateOrUpdateRoleDefinition +// method. +func (client *Client) CreateOrUpdateRoleDefinition(ctx context.Context, scope RoleScope, roleDefinitionName string, parameters RoleDefinitionCreateParameters, options *CreateOrUpdateRoleDefinitionOptions) (CreateOrUpdateRoleDefinitionResponse, error) { + req, err := client.createOrUpdateRoleDefinitionCreateRequest(ctx, scope, roleDefinitionName, parameters, options) + if err != nil { + return CreateOrUpdateRoleDefinitionResponse{}, err + } + resp, err := client.internal.Pipeline().Do(req) + if err != nil { + return CreateOrUpdateRoleDefinitionResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusCreated) { + return CreateOrUpdateRoleDefinitionResponse{}, runtime.NewResponseError(resp) + } + return client.createOrUpdateRoleDefinitionHandleResponse(resp) +} + +// createOrUpdateRoleDefinitionCreateRequest creates the CreateOrUpdateRoleDefinition request. +func (client *Client) createOrUpdateRoleDefinitionCreateRequest(ctx context.Context, scope RoleScope, roleDefinitionName string, parameters RoleDefinitionCreateParameters, options *CreateOrUpdateRoleDefinitionOptions) (*policy.Request, error) { + urlPath := "/{scope}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionName}" + urlPath = strings.ReplaceAll(urlPath, "{scope}", string(scope)) + if roleDefinitionName == "" { + return nil, errors.New("parameter roleDefinitionName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{roleDefinitionName}", url.PathEscape(roleDefinitionName)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.endpoint, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "7.4") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, runtime.MarshalAsJSON(req, parameters) +} + +// createOrUpdateRoleDefinitionHandleResponse handles the CreateOrUpdateRoleDefinition response. +func (client *Client) createOrUpdateRoleDefinitionHandleResponse(resp *http.Response) (CreateOrUpdateRoleDefinitionResponse, error) { + result := CreateOrUpdateRoleDefinitionResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.RoleDefinition); err != nil { + return CreateOrUpdateRoleDefinitionResponse{}, err + } + return result, nil +} + +// CreateRoleAssignment - Creates a role assignment. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 7.4 +// - scope - The scope of the role assignment to create. +// - roleAssignmentName - The name of the role assignment to create. It can be any valid GUID. +// - parameters - Parameters for the role assignment. +// - options - CreateRoleAssignmentOptions contains the optional parameters for the Client.CreateRoleAssignment method. +func (client *Client) CreateRoleAssignment(ctx context.Context, scope RoleScope, roleAssignmentName string, parameters RoleAssignmentCreateParameters, options *CreateRoleAssignmentOptions) (CreateRoleAssignmentResponse, error) { + req, err := client.createRoleAssignmentCreateRequest(ctx, scope, roleAssignmentName, parameters, options) + if err != nil { + return CreateRoleAssignmentResponse{}, err + } + resp, err := client.internal.Pipeline().Do(req) + if err != nil { + return CreateRoleAssignmentResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusCreated) { + return CreateRoleAssignmentResponse{}, runtime.NewResponseError(resp) + } + return client.createRoleAssignmentHandleResponse(resp) +} + +// createRoleAssignmentCreateRequest creates the CreateRoleAssignment request. +func (client *Client) createRoleAssignmentCreateRequest(ctx context.Context, scope RoleScope, roleAssignmentName string, parameters RoleAssignmentCreateParameters, options *CreateRoleAssignmentOptions) (*policy.Request, error) { + urlPath := "/{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}" + urlPath = strings.ReplaceAll(urlPath, "{scope}", string(scope)) + if roleAssignmentName == "" { + return nil, errors.New("parameter roleAssignmentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{roleAssignmentName}", url.PathEscape(roleAssignmentName)) + req, err := runtime.NewRequest(ctx, http.MethodPut, runtime.JoinPaths(client.endpoint, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "7.4") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, runtime.MarshalAsJSON(req, parameters) +} + +// createRoleAssignmentHandleResponse handles the CreateRoleAssignment response. +func (client *Client) createRoleAssignmentHandleResponse(resp *http.Response) (CreateRoleAssignmentResponse, error) { + result := CreateRoleAssignmentResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.RoleAssignment); err != nil { + return CreateRoleAssignmentResponse{}, err + } + return result, nil +} + +// DeleteRoleAssignment - Deletes a role assignment. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 7.4 +// - scope - The scope of the role assignment to delete. +// - roleAssignmentName - The name of the role assignment to delete. +// - options - DeleteRoleAssignmentOptions contains the optional parameters for the Client.DeleteRoleAssignment method. +func (client *Client) DeleteRoleAssignment(ctx context.Context, scope RoleScope, roleAssignmentName string, options *DeleteRoleAssignmentOptions) (DeleteRoleAssignmentResponse, error) { + req, err := client.deleteRoleAssignmentCreateRequest(ctx, scope, roleAssignmentName, options) + if err != nil { + return DeleteRoleAssignmentResponse{}, err + } + resp, err := client.internal.Pipeline().Do(req) + if err != nil { + return DeleteRoleAssignmentResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return DeleteRoleAssignmentResponse{}, runtime.NewResponseError(resp) + } + return client.deleteRoleAssignmentHandleResponse(resp) +} + +// deleteRoleAssignmentCreateRequest creates the DeleteRoleAssignment request. +func (client *Client) deleteRoleAssignmentCreateRequest(ctx context.Context, scope RoleScope, roleAssignmentName string, options *DeleteRoleAssignmentOptions) (*policy.Request, error) { + urlPath := "/{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}" + urlPath = strings.ReplaceAll(urlPath, "{scope}", string(scope)) + if roleAssignmentName == "" { + return nil, errors.New("parameter roleAssignmentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{roleAssignmentName}", url.PathEscape(roleAssignmentName)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.endpoint, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "7.4") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// deleteRoleAssignmentHandleResponse handles the DeleteRoleAssignment response. +func (client *Client) deleteRoleAssignmentHandleResponse(resp *http.Response) (DeleteRoleAssignmentResponse, error) { + result := DeleteRoleAssignmentResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.RoleAssignment); err != nil { + return DeleteRoleAssignmentResponse{}, err + } + return result, nil +} + +// DeleteRoleDefinition - Deletes a custom role definition. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 7.4 +// - scope - The scope of the role definition to delete. Managed HSM only supports '/'. +// - roleDefinitionName - The name (GUID) of the role definition to delete. +// - options - DeleteRoleDefinitionOptions contains the optional parameters for the Client.DeleteRoleDefinition method. +func (client *Client) DeleteRoleDefinition(ctx context.Context, scope RoleScope, roleDefinitionName string, options *DeleteRoleDefinitionOptions) (DeleteRoleDefinitionResponse, error) { + req, err := client.deleteRoleDefinitionCreateRequest(ctx, scope, roleDefinitionName, options) + if err != nil { + return DeleteRoleDefinitionResponse{}, err + } + resp, err := client.internal.Pipeline().Do(req) + if err != nil { + return DeleteRoleDefinitionResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return DeleteRoleDefinitionResponse{}, runtime.NewResponseError(resp) + } + return client.deleteRoleDefinitionHandleResponse(resp) +} + +// deleteRoleDefinitionCreateRequest creates the DeleteRoleDefinition request. +func (client *Client) deleteRoleDefinitionCreateRequest(ctx context.Context, scope RoleScope, roleDefinitionName string, options *DeleteRoleDefinitionOptions) (*policy.Request, error) { + urlPath := "/{scope}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionName}" + urlPath = strings.ReplaceAll(urlPath, "{scope}", string(scope)) + if roleDefinitionName == "" { + return nil, errors.New("parameter roleDefinitionName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{roleDefinitionName}", url.PathEscape(roleDefinitionName)) + req, err := runtime.NewRequest(ctx, http.MethodDelete, runtime.JoinPaths(client.endpoint, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "7.4") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// deleteRoleDefinitionHandleResponse handles the DeleteRoleDefinition response. +func (client *Client) deleteRoleDefinitionHandleResponse(resp *http.Response) (DeleteRoleDefinitionResponse, error) { + result := DeleteRoleDefinitionResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.RoleDefinition); err != nil { + return DeleteRoleDefinitionResponse{}, err + } + return result, nil +} + +// GetRoleAssignment - Get the specified role assignment. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 7.4 +// - scope - The scope of the role assignment. +// - roleAssignmentName - The name of the role assignment to get. +// - options - GetRoleAssignmentOptions contains the optional parameters for the Client.GetRoleAssignment method. +func (client *Client) GetRoleAssignment(ctx context.Context, scope RoleScope, roleAssignmentName string, options *GetRoleAssignmentOptions) (GetRoleAssignmentResponse, error) { + req, err := client.getRoleAssignmentCreateRequest(ctx, scope, roleAssignmentName, options) + if err != nil { + return GetRoleAssignmentResponse{}, err + } + resp, err := client.internal.Pipeline().Do(req) + if err != nil { + return GetRoleAssignmentResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return GetRoleAssignmentResponse{}, runtime.NewResponseError(resp) + } + return client.getRoleAssignmentHandleResponse(resp) +} + +// getRoleAssignmentCreateRequest creates the GetRoleAssignment request. +func (client *Client) getRoleAssignmentCreateRequest(ctx context.Context, scope RoleScope, roleAssignmentName string, options *GetRoleAssignmentOptions) (*policy.Request, error) { + urlPath := "/{scope}/providers/Microsoft.Authorization/roleAssignments/{roleAssignmentName}" + urlPath = strings.ReplaceAll(urlPath, "{scope}", string(scope)) + if roleAssignmentName == "" { + return nil, errors.New("parameter roleAssignmentName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{roleAssignmentName}", url.PathEscape(roleAssignmentName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.endpoint, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "7.4") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// getRoleAssignmentHandleResponse handles the GetRoleAssignment response. +func (client *Client) getRoleAssignmentHandleResponse(resp *http.Response) (GetRoleAssignmentResponse, error) { + result := GetRoleAssignmentResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.RoleAssignment); err != nil { + return GetRoleAssignmentResponse{}, err + } + return result, nil +} + +// GetRoleDefinition - Get the specified role definition. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 7.4 +// - scope - The scope of the role definition to get. Managed HSM only supports '/'. +// - roleDefinitionName - The name of the role definition to get. +// - options - GetRoleDefinitionOptions contains the optional parameters for the Client.GetRoleDefinition method. +func (client *Client) GetRoleDefinition(ctx context.Context, scope RoleScope, roleDefinitionName string, options *GetRoleDefinitionOptions) (GetRoleDefinitionResponse, error) { + req, err := client.getRoleDefinitionCreateRequest(ctx, scope, roleDefinitionName, options) + if err != nil { + return GetRoleDefinitionResponse{}, err + } + resp, err := client.internal.Pipeline().Do(req) + if err != nil { + return GetRoleDefinitionResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return GetRoleDefinitionResponse{}, runtime.NewResponseError(resp) + } + return client.getRoleDefinitionHandleResponse(resp) +} + +// getRoleDefinitionCreateRequest creates the GetRoleDefinition request. +func (client *Client) getRoleDefinitionCreateRequest(ctx context.Context, scope RoleScope, roleDefinitionName string, options *GetRoleDefinitionOptions) (*policy.Request, error) { + urlPath := "/{scope}/providers/Microsoft.Authorization/roleDefinitions/{roleDefinitionName}" + urlPath = strings.ReplaceAll(urlPath, "{scope}", string(scope)) + if roleDefinitionName == "" { + return nil, errors.New("parameter roleDefinitionName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{roleDefinitionName}", url.PathEscape(roleDefinitionName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.endpoint, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "7.4") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// getRoleDefinitionHandleResponse handles the GetRoleDefinition response. +func (client *Client) getRoleDefinitionHandleResponse(resp *http.Response) (GetRoleDefinitionResponse, error) { + result := GetRoleDefinitionResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.RoleDefinition); err != nil { + return GetRoleDefinitionResponse{}, err + } + return result, nil +} + +// NewListRoleAssignmentsPager - Gets role assignments for a scope. +// +// Generated from API version 7.4 +// - scope - The scope of the role assignments. +// - options - ListRoleAssignmentsOptions contains the optional parameters for the Client.NewListRoleAssignmentsPager +// method. +func (client *Client) NewListRoleAssignmentsPager(scope RoleScope, options *ListRoleAssignmentsOptions) *runtime.Pager[ListRoleAssignmentsResponse] { + return runtime.NewPager(runtime.PagingHandler[ListRoleAssignmentsResponse]{ + More: func(page ListRoleAssignmentsResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 + }, + Fetcher: func(ctx context.Context, page *ListRoleAssignmentsResponse) (ListRoleAssignmentsResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listRoleAssignmentsCreateRequest(ctx, scope, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return ListRoleAssignmentsResponse{}, err + } + resp, err := client.internal.Pipeline().Do(req) + if err != nil { + return ListRoleAssignmentsResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return ListRoleAssignmentsResponse{}, runtime.NewResponseError(resp) + } + return client.listRoleAssignmentsHandleResponse(resp) + }, + }) +} + +// listRoleAssignmentsCreateRequest creates the ListRoleAssignments request. +func (client *Client) listRoleAssignmentsCreateRequest(ctx context.Context, scope RoleScope, options *ListRoleAssignmentsOptions) (*policy.Request, error) { + urlPath := "/{scope}/providers/Microsoft.Authorization/roleAssignments" + urlPath = strings.ReplaceAll(urlPath, "{scope}", string(scope)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.endpoint, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + if options != nil && options.Filter != nil { + reqQP.Set("$filter", *options.Filter) + } + reqQP.Set("api-version", "7.4") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listRoleAssignmentsHandleResponse handles the ListRoleAssignments response. +func (client *Client) listRoleAssignmentsHandleResponse(resp *http.Response) (ListRoleAssignmentsResponse, error) { + result := ListRoleAssignmentsResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.RoleAssignmentListResult); err != nil { + return ListRoleAssignmentsResponse{}, err + } + return result, nil +} + +// NewListRoleDefinitionsPager - Get all role definitions that are applicable at scope and above. +// +// Generated from API version 7.4 +// - scope - The scope of the role definition. +// - options - ListRoleDefinitionsOptions contains the optional parameters for the Client.NewListRoleDefinitionsPager +// method. +func (client *Client) NewListRoleDefinitionsPager(scope RoleScope, options *ListRoleDefinitionsOptions) *runtime.Pager[ListRoleDefinitionsResponse] { + return runtime.NewPager(runtime.PagingHandler[ListRoleDefinitionsResponse]{ + More: func(page ListRoleDefinitionsResponse) bool { + return page.NextLink != nil && len(*page.NextLink) > 0 + }, + Fetcher: func(ctx context.Context, page *ListRoleDefinitionsResponse) (ListRoleDefinitionsResponse, error) { + var req *policy.Request + var err error + if page == nil { + req, err = client.listRoleDefinitionsCreateRequest(ctx, scope, options) + } else { + req, err = runtime.NewRequest(ctx, http.MethodGet, *page.NextLink) + } + if err != nil { + return ListRoleDefinitionsResponse{}, err + } + resp, err := client.internal.Pipeline().Do(req) + if err != nil { + return ListRoleDefinitionsResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return ListRoleDefinitionsResponse{}, runtime.NewResponseError(resp) + } + return client.listRoleDefinitionsHandleResponse(resp) + }, + }) +} + +// listRoleDefinitionsCreateRequest creates the ListRoleDefinitions request. +func (client *Client) listRoleDefinitionsCreateRequest(ctx context.Context, scope RoleScope, options *ListRoleDefinitionsOptions) (*policy.Request, error) { + urlPath := "/{scope}/providers/Microsoft.Authorization/roleDefinitions" + urlPath = strings.ReplaceAll(urlPath, "{scope}", string(scope)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.endpoint, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + if options != nil && options.Filter != nil { + reqQP.Set("$filter", *options.Filter) + } + reqQP.Set("api-version", "7.4") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// listRoleDefinitionsHandleResponse handles the ListRoleDefinitions response. +func (client *Client) listRoleDefinitionsHandleResponse(resp *http.Response) (ListRoleDefinitionsResponse, error) { + result := ListRoleDefinitionsResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.RoleDefinitionListResult); err != nil { + return ListRoleDefinitionsResponse{}, err + } + return result, nil +} diff --git a/sdk/security/keyvault/azadmin/rbac/client_test.go b/sdk/security/keyvault/azadmin/rbac/client_test.go new file mode 100644 index 000000000000..9bc1fcd4f16b --- /dev/null +++ b/sdk/security/keyvault/azadmin/rbac/client_test.go @@ -0,0 +1,240 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package rbac_test + +import ( + "context" + "math/rand" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" + "github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/azadmin/rbac" + "github.com/google/uuid" + "github.com/stretchr/testify/require" +) + +func TestRoleDefinition(t *testing.T) { + client := startAccessControlTest(t) + + var name, roleName string + if recording.GetRecordMode() == recording.PlaybackMode || recording.GetRecordMode() == recording.RecordingMode { + name, roleName = "bedc5fb2-8738-40a4-8b20-cedfb43a1922", "c023eb03-4e31-464c-84f7-001b7f23bd13" + } else { + name, roleName = uuid.New().String(), uuid.New().String() + } + scope := rbac.RoleScopeGlobal + roleType := rbac.RoleTypeCustomRole + permission := rbac.DataActionBackupHsmKeys + parameters := rbac.RoleDefinitionCreateParameters{ + Properties: &rbac.RoleDefinitionProperties{ + AssignableScopes: []*rbac.RoleScope{to.Ptr(scope)}, + Description: to.Ptr("test"), + Permissions: []*rbac.Permission{{DataActions: []*rbac.DataAction{to.Ptr(permission)}}}, + RoleName: to.Ptr(roleName), + RoleType: to.Ptr(roleType), + }, + } + testSerde(t, ¶meters) + + // test create definition + createdDefinition, err := client.CreateOrUpdateRoleDefinition(context.Background(), scope, name, parameters, nil) + require.NoError(t, err) + require.Equal(t, name, *createdDefinition.Name) + require.Len(t, createdDefinition.Properties.AssignableScopes, 1) + require.Equal(t, scope, *createdDefinition.Properties.AssignableScopes[0]) + require.Equal(t, "test", *createdDefinition.Properties.Description) + require.Equal(t, roleType, *createdDefinition.Properties.RoleType) + require.Equal(t, roleName, *createdDefinition.Properties.RoleName) + require.Len(t, createdDefinition.Properties.Permissions, 1) + require.Equal(t, permission, *createdDefinition.Properties.Permissions[0].DataActions[0]) + testSerde(t, &createdDefinition) + + // update + updatedPermission := rbac.DataActionCreateHsmKey + parameters.Properties.Permissions[0].DataActions = []*rbac.DataAction{to.Ptr(updatedPermission)} + updatedDefinition, err := client.CreateOrUpdateRoleDefinition(context.Background(), scope, name, parameters, nil) + require.NoError(t, err) + require.Equal(t, createdDefinition.ID, updatedDefinition.ID) + require.Len(t, updatedDefinition.Properties.Permissions, 1) + require.Equal(t, updatedPermission, *updatedDefinition.Properties.Permissions[0].DataActions[0]) + + // get + gotDefinition, err := client.GetRoleDefinition(context.Background(), scope, name, nil) + require.NoError(t, err) + require.Equal(t, *updatedDefinition.ID, *gotDefinition.ID) + + // test list role definitions and check if created definition is in list exactly once + updatedDefinitionCount := 0 + pager := client.NewListRoleDefinitionsPager(scope, nil) + require.True(t, pager.More()) + for pager.More() { + res, err := pager.NextPage(context.Background()) + require.NoError(t, err) + require.NotNil(t, res) + + require.NotNil(t, res.Value) + for _, roleDefinition := range res.Value { + require.NotNil(t, roleDefinition.Properties) + require.NotNil(t, roleDefinition.ID) + require.NotNil(t, roleDefinition.Name) + require.NotNil(t, roleDefinition.Type) + + if *roleDefinition.ID == *updatedDefinition.ID { + updatedDefinitionCount++ + } + } + + testSerde(t, &res) + } + require.Equal(t, 1, updatedDefinitionCount) + + // test delete + deletedDefinition, err := client.DeleteRoleDefinition(context.Background(), scope, name, nil) + require.NoError(t, err) + require.Equal(t, updatedDefinition.ID, deletedDefinition.ID) + + // verify role definition is deleted + pager = client.NewListRoleDefinitionsPager(scope, nil) + for pager.More() { + res, err := pager.NextPage(context.Background()) + require.NoError(t, err) + + for _, roleDefinition := range res.Value { + require.NotNil(t, roleDefinition.Properties) + require.NotNil(t, roleDefinition.ID) + require.NotNil(t, roleDefinition.Name) + require.NotNil(t, roleDefinition.Type) + + if *roleDefinition.ID == *updatedDefinition.ID { + t.Fatal("expected role definition to be deleted") + } + } + } +} + +func TestDeleteRoleDefinition_FailureInvalidRole(t *testing.T) { + client := startAccessControlTest(t) + var httpErr *azcore.ResponseError + + res, err := client.DeleteRoleDefinition(context.Background(), "", "invalidDefinition", nil) + require.Error(t, err) + require.ErrorAs(t, err, &httpErr) + require.Equal(t, httpErr.ErrorCode, "RoleDefinitionNotFound") + require.Equal(t, httpErr.StatusCode, 404) + require.Nil(t, res.Properties) + require.Nil(t, res.ID) + require.Nil(t, res.Name) + require.Nil(t, res.Type) + + testSerde(t, &res) +} + +func TestRoleAssignment(t *testing.T) { + client := startAccessControlTest(t) + + var name, principalID, roleDefinitionID string + scope := rbac.RoleScopeGlobal + if recording.GetRecordMode() == recording.PlaybackMode || recording.GetRecordMode() == recording.RecordingMode { + name, principalID, roleDefinitionID = "bedc5fb2-8738-40a4-8b20-cedfb43a1922", "c023eb03-4e31-464c-84f7-001b7f23bd13", "Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/33413926-3206-4cdd-b39a-83574fe37a17" + } else { + name, principalID = uuid.New().String(), uuid.New().String() + // get random role definition to use for their service principal + pager := client.NewListRoleDefinitionsPager(scope, nil) + require.True(t, pager.More()) + roleDefinitions, err := pager.NextPage(context.Background()) + require.NoError(t, err) + require.NotNil(t, roleDefinitions.Value) + roleDefinitionID = *roleDefinitions.Value[rand.Intn(len(roleDefinitions.Value))].ID + } + + roleAssignment := rbac.RoleAssignmentCreateParameters{Properties: &rbac.RoleAssignmentProperties{PrincipalID: to.Ptr(principalID), RoleDefinitionID: to.Ptr(roleDefinitionID)}} + testSerde(t, &roleAssignment) + + // create role assignment + createdAssignment, err := client.CreateRoleAssignment(context.Background(), scope, name, roleAssignment, nil) + require.NoError(t, err) + require.Equal(t, name, *createdAssignment.Name) + require.Equal(t, scope, *createdAssignment.Properties.Scope) + require.Equal(t, principalID, *createdAssignment.Properties.PrincipalID) + require.Equal(t, roleDefinitionID, *createdAssignment.Properties.RoleDefinitionID) + + // test if able to get role assignment + gotAssignment, err := client.GetRoleAssignment(context.Background(), scope, name, nil) + require.NoError(t, err) + require.Equal(t, *createdAssignment.ID, *gotAssignment.ID) + + // test if new role assignment is in list of all assignments + assignmentsPager := client.NewListRoleAssignmentsPager(scope, nil) + require.True(t, assignmentsPager.More()) + var assignmentCheck bool + + for assignmentsPager.More() { + res, err := assignmentsPager.NextPage(context.Background()) + require.NoError(t, err) + require.NotNil(t, res) + + require.NotNil(t, res.Value) + for _, roleAssignment := range res.Value { + require.NotNil(t, roleAssignment.Properties) + require.NotNil(t, roleAssignment.ID) + require.NotNil(t, roleAssignment.Name) + require.NotNil(t, roleAssignment.Type) + + if *roleAssignment.ID == *createdAssignment.ID { + assignmentCheck = true + } + } + + testSerde(t, &res) + } + require.True(t, assignmentCheck) + + // delete role assignment and check that role assignment is no longer in list + deletedAssignment, err := client.DeleteRoleAssignment(context.Background(), scope, name, nil) + require.NoError(t, err) + require.Equal(t, *createdAssignment.ID, *deletedAssignment.ID) + + assignmentsPager = client.NewListRoleAssignmentsPager(scope, nil) + require.True(t, assignmentsPager.More()) + + for assignmentsPager.More() { + res, err := assignmentsPager.NextPage(context.Background()) + require.NoError(t, err) + require.NotNil(t, res) + + require.NotNil(t, res.Value) + for _, roleAssignment := range res.Value { + require.NotNil(t, roleAssignment.Properties) + require.NotNil(t, roleAssignment.ID) + require.NotNil(t, roleAssignment.Name) + require.NotNil(t, roleAssignment.Type) + + require.NotEqual(t, *roleAssignment.ID, *createdAssignment.ID) + } + + testSerde(t, &res) + } +} + +func TestDeleteRoleAssignment_FailureInvalidRole(t *testing.T) { + client := startAccessControlTest(t) + var httpErr *azcore.ResponseError + + res, err := client.DeleteRoleAssignment(context.Background(), "", "invalidRole", nil) + require.Error(t, err) + require.ErrorAs(t, err, &httpErr) + require.Equal(t, httpErr.ErrorCode, "RoleAssignmentNotFound") + require.Equal(t, httpErr.StatusCode, 404) + require.Nil(t, res.Properties) + require.Nil(t, res.ID) + require.Nil(t, res.Name) + require.Nil(t, res.Type) + + testSerde(t, &res) +} diff --git a/sdk/security/keyvault/azadmin/rbac/constants.go b/sdk/security/keyvault/azadmin/rbac/constants.go new file mode 100644 index 000000000000..bb2643ece742 --- /dev/null +++ b/sdk/security/keyvault/azadmin/rbac/constants.go @@ -0,0 +1,174 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package rbac + +// DataAction - Supported permissions for data actions. +type DataAction string + +const ( + // DataActionBackupHsmKeys - Backup HSM keys. + DataActionBackupHsmKeys DataAction = "Microsoft.KeyVault/managedHsm/keys/backup/action" + // DataActionCreateHsmKey - Create an HSM key. + DataActionCreateHsmKey DataAction = "Microsoft.KeyVault/managedHsm/keys/create" + // DataActionDecryptHsmKey - Decrypt using an HSM key. + DataActionDecryptHsmKey DataAction = "Microsoft.KeyVault/managedHsm/keys/decrypt/action" + // DataActionDeleteHsmKey - Delete an HSM key. + DataActionDeleteHsmKey DataAction = "Microsoft.KeyVault/managedHsm/keys/delete" + // DataActionDeleteRoleAssignment - Delete role assignment. + DataActionDeleteRoleAssignment DataAction = "Microsoft.KeyVault/managedHsm/roleAssignments/delete/action" + // DataActionDeleteRoleDefinition - Delete role definition. + DataActionDeleteRoleDefinition DataAction = "Microsoft.KeyVault/managedHsm/roleDefinitions/delete/action" + // DataActionDownloadHsmSecurityDomain - Download an HSM security domain. + DataActionDownloadHsmSecurityDomain DataAction = "Microsoft.KeyVault/managedHsm/securitydomain/download/action" + // DataActionDownloadHsmSecurityDomainStatus - Check status of HSM security domain download. + DataActionDownloadHsmSecurityDomainStatus DataAction = "Microsoft.KeyVault/managedHsm/securitydomain/download/read" + // DataActionEncryptHsmKey - Encrypt using an HSM key. + DataActionEncryptHsmKey DataAction = "Microsoft.KeyVault/managedHsm/keys/encrypt/action" + // DataActionExportHsmKey - Export an HSM key. + DataActionExportHsmKey DataAction = "Microsoft.KeyVault/managedHsm/keys/export/action" + // DataActionGetRoleAssignment - Get role assignment. + DataActionGetRoleAssignment DataAction = "Microsoft.KeyVault/managedHsm/roleAssignments/read/action" + // DataActionImportHsmKey - Import an HSM key. + DataActionImportHsmKey DataAction = "Microsoft.KeyVault/managedHsm/keys/import/action" + // DataActionPurgeDeletedHsmKey - Purge a deleted HSM key. + DataActionPurgeDeletedHsmKey DataAction = "Microsoft.KeyVault/managedHsm/keys/deletedKeys/delete" + // DataActionRandomNumbersGenerate - Generate random numbers. + DataActionRandomNumbersGenerate DataAction = "Microsoft.KeyVault/managedHsm/rng/action" + // DataActionReadDeletedHsmKey - Read deleted HSM key. + DataActionReadDeletedHsmKey DataAction = "Microsoft.KeyVault/managedHsm/keys/deletedKeys/read/action" + // DataActionReadHsmBackupStatus - Read an HSM backup status. + DataActionReadHsmBackupStatus DataAction = "Microsoft.KeyVault/managedHsm/backup/status/action" + // DataActionReadHsmKey - Read HSM key metadata. + DataActionReadHsmKey DataAction = "Microsoft.KeyVault/managedHsm/keys/read/action" + // DataActionReadHsmRestoreStatus - Read an HSM restore status. + DataActionReadHsmRestoreStatus DataAction = "Microsoft.KeyVault/managedHsm/restore/status/action" + // DataActionReadHsmSecurityDomainStatus - Check the status of the HSM security domain exchange file. + DataActionReadHsmSecurityDomainStatus DataAction = "Microsoft.KeyVault/managedHsm/securitydomain/upload/read" + // DataActionReadHsmSecurityDomainTransferKey - Download an HSM security domain transfer key. + DataActionReadHsmSecurityDomainTransferKey DataAction = "Microsoft.KeyVault/managedHsm/securitydomain/transferkey/read" + // DataActionReadRoleDefinition - Get role definition. + DataActionReadRoleDefinition DataAction = "Microsoft.KeyVault/managedHsm/roleDefinitions/read/action" + // DataActionRecoverDeletedHsmKey - Recover deleted HSM key. + DataActionRecoverDeletedHsmKey DataAction = "Microsoft.KeyVault/managedHsm/keys/deletedKeys/recover/action" + // DataActionReleaseKey - Release an HSM key using Secure Key Release. + DataActionReleaseKey DataAction = "Microsoft.KeyVault/managedHsm/keys/release/action" + // DataActionRestoreHsmKeys - Restore HSM keys. + DataActionRestoreHsmKeys DataAction = "Microsoft.KeyVault/managedHsm/keys/restore/action" + // DataActionSignHsmKey - Sign using an HSM key. + DataActionSignHsmKey DataAction = "Microsoft.KeyVault/managedHsm/keys/sign/action" + // DataActionStartHsmBackup - Start an HSM backup. + DataActionStartHsmBackup DataAction = "Microsoft.KeyVault/managedHsm/backup/start/action" + // DataActionStartHsmRestore - Start an HSM restore. + DataActionStartHsmRestore DataAction = "Microsoft.KeyVault/managedHsm/restore/start/action" + // DataActionUnwrapHsmKey - Unwrap using an HSM key. + DataActionUnwrapHsmKey DataAction = "Microsoft.KeyVault/managedHsm/keys/unwrap/action" + // DataActionUploadHsmSecurityDomain - Upload an HSM security domain. + DataActionUploadHsmSecurityDomain DataAction = "Microsoft.KeyVault/managedHsm/securitydomain/upload/action" + // DataActionVerifyHsmKey - Verify using an HSM key. + DataActionVerifyHsmKey DataAction = "Microsoft.KeyVault/managedHsm/keys/verify/action" + // DataActionWrapHsmKey - Wrap using an HSM key. + DataActionWrapHsmKey DataAction = "Microsoft.KeyVault/managedHsm/keys/wrap/action" + // DataActionWriteHsmKey - Update an HSM key. + DataActionWriteHsmKey DataAction = "Microsoft.KeyVault/managedHsm/keys/write/action" + // DataActionWriteRoleAssignment - Create or update role assignment. + DataActionWriteRoleAssignment DataAction = "Microsoft.KeyVault/managedHsm/roleAssignments/write/action" + // DataActionWriteRoleDefinition - Create or update role definition. + DataActionWriteRoleDefinition DataAction = "Microsoft.KeyVault/managedHsm/roleDefinitions/write/action" +) + +// PossibleDataActionValues returns the possible values for the DataAction const type. +func PossibleDataActionValues() []DataAction { + return []DataAction{ + DataActionBackupHsmKeys, + DataActionCreateHsmKey, + DataActionDecryptHsmKey, + DataActionDeleteHsmKey, + DataActionDeleteRoleAssignment, + DataActionDeleteRoleDefinition, + DataActionDownloadHsmSecurityDomain, + DataActionDownloadHsmSecurityDomainStatus, + DataActionEncryptHsmKey, + DataActionExportHsmKey, + DataActionGetRoleAssignment, + DataActionImportHsmKey, + DataActionPurgeDeletedHsmKey, + DataActionRandomNumbersGenerate, + DataActionReadDeletedHsmKey, + DataActionReadHsmBackupStatus, + DataActionReadHsmKey, + DataActionReadHsmRestoreStatus, + DataActionReadHsmSecurityDomainStatus, + DataActionReadHsmSecurityDomainTransferKey, + DataActionReadRoleDefinition, + DataActionRecoverDeletedHsmKey, + DataActionReleaseKey, + DataActionRestoreHsmKeys, + DataActionSignHsmKey, + DataActionStartHsmBackup, + DataActionStartHsmRestore, + DataActionUnwrapHsmKey, + DataActionUploadHsmSecurityDomain, + DataActionVerifyHsmKey, + DataActionWrapHsmKey, + DataActionWriteHsmKey, + DataActionWriteRoleAssignment, + DataActionWriteRoleDefinition, + } +} + +// RoleDefinitionType - The role definition type. +type RoleDefinitionType string + +const ( + RoleDefinitionTypeMicrosoftAuthorizationRoleDefinitions RoleDefinitionType = "Microsoft.Authorization/roleDefinitions" +) + +// PossibleRoleDefinitionTypeValues returns the possible values for the RoleDefinitionType const type. +func PossibleRoleDefinitionTypeValues() []RoleDefinitionType { + return []RoleDefinitionType{ + RoleDefinitionTypeMicrosoftAuthorizationRoleDefinitions, + } +} + +// RoleScope - The role scope. +type RoleScope string + +const ( + // RoleScopeGlobal - Global scope + RoleScopeGlobal RoleScope = "/" + // RoleScopeKeys - Keys scope + RoleScopeKeys RoleScope = "/keys" +) + +// PossibleRoleScopeValues returns the possible values for the RoleScope const type. +func PossibleRoleScopeValues() []RoleScope { + return []RoleScope{ + RoleScopeGlobal, + RoleScopeKeys, + } +} + +// RoleType - The role type. +type RoleType string + +const ( + // RoleTypeBuiltInRole - Built in role. + RoleTypeBuiltInRole RoleType = "AKVBuiltInRole" + // RoleTypeCustomRole - Custom role. + RoleTypeCustomRole RoleType = "CustomRole" +) + +// PossibleRoleTypeValues returns the possible values for the RoleType const type. +func PossibleRoleTypeValues() []RoleType { + return []RoleType{ + RoleTypeBuiltInRole, + RoleTypeCustomRole, + } +} diff --git a/sdk/security/keyvault/azadmin/rbac/custom_client.go b/sdk/security/keyvault/azadmin/rbac/custom_client.go new file mode 100644 index 000000000000..ea392b62ac1d --- /dev/null +++ b/sdk/security/keyvault/azadmin/rbac/custom_client.go @@ -0,0 +1,46 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package rbac + +// this file contains handwritten additions to the generated code + +import ( + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + ainternal "github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/azadmin/internal" + "github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/internal" +) + +// ClientOptions contains optional settings for Client. +type ClientOptions struct { + azcore.ClientOptions + + // DisableChallengeResourceVerification controls whether the policy requires the + // authentication challenge resource to match the Key Vault or Managed HSM domain. + // See https://aka.ms/azsdk/blog/vault-uri for more information. + DisableChallengeResourceVerification bool +} + +// NewClient creates a client that manages role-based access for a Managed HSM. +// You should validate that vaultURL references a valid Managed HSM. See https://aka.ms/azsdk/blog/vault-uri for details. +func NewClient(vaultURL string, credential azcore.TokenCredential, options *ClientOptions) (*Client, error) { + if options == nil { + options = &ClientOptions{} + } + authPolicy := internal.NewKeyVaultChallengePolicy( + credential, + &internal.KeyVaultChallengePolicyOptions{ + DisableChallengeResourceVerification: options.DisableChallengeResourceVerification, + }, + ) + azcoreClient, err := azcore.NewClient("rbac.Client", ainternal.Version, runtime.PipelineOptions{PerRetry: []policy.Policy{authPolicy}}, &options.ClientOptions) + if err != nil { + return nil, err + } + return &Client{endpoint: vaultURL, internal: azcoreClient}, nil +} diff --git a/sdk/security/keyvault/azadmin/rbac/example_test.go b/sdk/security/keyvault/azadmin/rbac/example_test.go new file mode 100644 index 000000000000..45e9bdae8950 --- /dev/null +++ b/sdk/security/keyvault/azadmin/rbac/example_test.go @@ -0,0 +1,72 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package rbac_test + +import ( + "context" + "fmt" + + "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/security/keyvault/azadmin/rbac" + "github.com/google/uuid" +) + +var client rbac.Client + +func ExampleClient() { + vaultURL := "https://.managedhsm.azure.net/" + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + // TODO: handle error + } + + client, err := rbac.NewClient(vaultURL, cred, nil) + if err != nil { + // TODO: handle error + } + + _ = client +} + +func ExampleClient_CreateOrUpdateRoleDefinition() { + scope := rbac.RoleScopeGlobal + name := uuid.New().String() + roleType := rbac.RoleTypeCustomRole + roleName := "ExampleRoleName" + parameters := rbac.RoleDefinitionCreateParameters{ + Properties: &rbac.RoleDefinitionProperties{ + AssignableScopes: []*rbac.RoleScope{to.Ptr(scope)}, + Description: to.Ptr("Example description"), + Permissions: []*rbac.Permission{{DataActions: []*rbac.DataAction{to.Ptr(rbac.DataActionBackupHsmKeys), to.Ptr(rbac.DataActionCreateHsmKey)}}}, + RoleName: to.Ptr(roleName), + RoleType: to.Ptr(roleType), + }, + } + + roleDefinition, err := client.CreateOrUpdateRoleDefinition(context.TODO(), scope, name, parameters, nil) + if err != nil { + // TODO: handle error + } + + fmt.Printf("Role Definition Name: %s", *roleDefinition.Name) +} + +func ExampleClient_CreateRoleAssignment() { + scope := rbac.RoleScopeGlobal + name := uuid.New().String() + parameters := rbac.RoleAssignmentCreateParameters{ + Properties: &rbac.RoleAssignmentProperties{ + PrincipalID: to.Ptr("d26e28bc-991f-11ed-a8fc-0242ac120002"), // example principal ID + RoleDefinitionID: to.Ptr("Microsoft.KeyVault/providers/Microsoft.Authorization/roleDefinitions/c368d8da-991f-11ed-a8fc-0242ac120002"), // example role definition ID + }, + } + + roleAssignment, err := client.CreateRoleAssignment(context.TODO(), scope, name, parameters, nil) + if err != nil { + // TODO: handle error + } + + fmt.Printf("Role Assignment Name: %s", *roleAssignment.Name) +} diff --git a/sdk/security/keyvault/azadmin/rbac/models.go b/sdk/security/keyvault/azadmin/rbac/models.go new file mode 100644 index 000000000000..2fa624847e78 --- /dev/null +++ b/sdk/security/keyvault/azadmin/rbac/models.go @@ -0,0 +1,170 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package rbac + +// CreateOrUpdateRoleDefinitionOptions contains the optional parameters for the Client.CreateOrUpdateRoleDefinition +// method. +type CreateOrUpdateRoleDefinitionOptions struct { + // placeholder for future optional parameters +} + +// CreateRoleAssignmentOptions contains the optional parameters for the Client.CreateRoleAssignment method. +type CreateRoleAssignmentOptions struct { + // placeholder for future optional parameters +} + +// DeleteRoleAssignmentOptions contains the optional parameters for the Client.DeleteRoleAssignment method. +type DeleteRoleAssignmentOptions struct { + // placeholder for future optional parameters +} + +// DeleteRoleDefinitionOptions contains the optional parameters for the Client.DeleteRoleDefinition method. +type DeleteRoleDefinitionOptions struct { + // placeholder for future optional parameters +} + +// GetRoleAssignmentOptions contains the optional parameters for the Client.GetRoleAssignment method. +type GetRoleAssignmentOptions struct { + // placeholder for future optional parameters +} + +// GetRoleDefinitionOptions contains the optional parameters for the Client.GetRoleDefinition method. +type GetRoleDefinitionOptions struct { + // placeholder for future optional parameters +} + +// ListRoleAssignmentsOptions contains the optional parameters for the Client.NewListRoleAssignmentsPager method. +type ListRoleAssignmentsOptions struct { + // The filter to apply on the operation. Use $filter=atScope() to return all role assignments at or above the scope. Use $filter=principalId + // eq {id} to return all role assignments at, above or below the + // scope for the specified principal. + Filter *string +} + +// ListRoleDefinitionsOptions contains the optional parameters for the Client.NewListRoleDefinitionsPager method. +type ListRoleDefinitionsOptions struct { + // The filter to apply on the operation. Use atScopeAndBelow filter to search below the given scope as well. + Filter *string +} + +// Permission - Role definition permissions. +type Permission struct { + // Action permissions that are granted. + Actions []*string `json:"actions,omitempty"` + + // Data action permissions that are granted. + DataActions []*DataAction `json:"dataActions,omitempty"` + + // Action permissions that are excluded but not denied. They may be granted by other role definitions assigned to a principal. + NotActions []*string `json:"notActions,omitempty"` + + // Data action permissions that are excluded but not denied. They may be granted by other role definitions assigned to a principal. + NotDataActions []*DataAction `json:"notDataActions,omitempty"` +} + +// RoleAssignment - Role Assignments +type RoleAssignment struct { + // Role assignment properties. + Properties *RoleAssignmentPropertiesWithScope `json:"properties,omitempty"` + + // READ-ONLY; The role assignment ID. + ID *string `json:"id,omitempty" azure:"ro"` + + // READ-ONLY; The role assignment name. + Name *string `json:"name,omitempty" azure:"ro"` + + // READ-ONLY; The role assignment type. + Type *string `json:"type,omitempty" azure:"ro"` +} + +// RoleAssignmentCreateParameters - Role assignment create parameters. +type RoleAssignmentCreateParameters struct { + // REQUIRED; Role assignment properties. + Properties *RoleAssignmentProperties `json:"properties,omitempty"` +} + +// RoleAssignmentListResult - Role assignment list operation result. +type RoleAssignmentListResult struct { + // The URL to use for getting the next set of results. + NextLink *string `json:"nextLink,omitempty"` + + // Role assignment list. + Value []*RoleAssignment `json:"value,omitempty"` +} + +// RoleAssignmentProperties - Role assignment properties. +type RoleAssignmentProperties struct { + // REQUIRED; The principal ID assigned to the role. This maps to the ID inside the Active Directory. It can point to a user, + // service principal, or security group. + PrincipalID *string `json:"principalId,omitempty"` + + // REQUIRED; The role definition ID used in the role assignment. + RoleDefinitionID *string `json:"roleDefinitionId,omitempty"` +} + +// RoleAssignmentPropertiesWithScope - Role assignment properties with scope. +type RoleAssignmentPropertiesWithScope struct { + // The principal ID. + PrincipalID *string `json:"principalId,omitempty"` + + // The role definition ID. + RoleDefinitionID *string `json:"roleDefinitionId,omitempty"` + + // The role scope. + Scope *RoleScope `json:"scope,omitempty"` +} + +// RoleDefinition - Role definition. +type RoleDefinition struct { + // Role definition properties. + Properties *RoleDefinitionProperties `json:"properties,omitempty"` + + // READ-ONLY; The role definition ID. + ID *string `json:"id,omitempty" azure:"ro"` + + // READ-ONLY; The role definition name. + Name *string `json:"name,omitempty" azure:"ro"` + + // READ-ONLY; The role definition type. + Type *RoleDefinitionType `json:"type,omitempty" azure:"ro"` +} + +// RoleDefinitionCreateParameters - Role definition create parameters. +type RoleDefinitionCreateParameters struct { + // REQUIRED; Role definition properties. + Properties *RoleDefinitionProperties `json:"properties,omitempty"` +} + +// RoleDefinitionListResult - Role definition list operation result. +type RoleDefinitionListResult struct { + // The URL to use for getting the next set of results. + NextLink *string `json:"nextLink,omitempty"` + + // Role definition list. + Value []*RoleDefinition `json:"value,omitempty"` +} + +// RoleDefinitionProperties - Role definition properties. +type RoleDefinitionProperties struct { + // Role definition assignable scopes. + AssignableScopes []*RoleScope `json:"assignableScopes,omitempty"` + + // The role definition description. + Description *string `json:"description,omitempty"` + + // Role definition permissions. + Permissions []*Permission `json:"permissions,omitempty"` + + // The role name. + RoleName *string `json:"roleName,omitempty"` + + // The role type. + RoleType *RoleType `json:"type,omitempty"` +} diff --git a/sdk/security/keyvault/azadmin/rbac/models_serde.go b/sdk/security/keyvault/azadmin/rbac/models_serde.go new file mode 100644 index 000000000000..03feec47c174 --- /dev/null +++ b/sdk/security/keyvault/azadmin/rbac/models_serde.go @@ -0,0 +1,379 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package rbac + +import ( + "encoding/json" + "fmt" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "reflect" +) + +// MarshalJSON implements the json.Marshaller interface for type Permission. +func (p Permission) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "actions", p.Actions) + populate(objectMap, "dataActions", p.DataActions) + populate(objectMap, "notActions", p.NotActions) + populate(objectMap, "notDataActions", p.NotDataActions) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Permission. +func (p *Permission) 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", p, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "actions": + err = unpopulate(val, "Actions", &p.Actions) + delete(rawMsg, key) + case "dataActions": + err = unpopulate(val, "DataActions", &p.DataActions) + delete(rawMsg, key) + case "notActions": + err = unpopulate(val, "NotActions", &p.NotActions) + delete(rawMsg, key) + case "notDataActions": + err = unpopulate(val, "NotDataActions", &p.NotDataActions) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", p, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type RoleAssignment. +func (r RoleAssignment) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", r.ID) + populate(objectMap, "name", r.Name) + populate(objectMap, "properties", r.Properties) + populate(objectMap, "type", r.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RoleAssignment. +func (r *RoleAssignment) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", r, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &r.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &r.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &r.Properties) + 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 RoleAssignmentCreateParameters. +func (r RoleAssignmentCreateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "properties", r.Properties) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RoleAssignmentCreateParameters. +func (r *RoleAssignmentCreateParameters) 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 "properties": + err = unpopulate(val, "Properties", &r.Properties) + 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 RoleAssignmentListResult. +func (r RoleAssignmentListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", r.NextLink) + populate(objectMap, "value", r.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RoleAssignmentListResult. +func (r *RoleAssignmentListResult) 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 "nextLink": + err = unpopulate(val, "NextLink", &r.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &r.Value) + 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 RoleAssignmentProperties. +func (r RoleAssignmentProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "principalId", r.PrincipalID) + populate(objectMap, "roleDefinitionId", r.RoleDefinitionID) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RoleAssignmentProperties. +func (r *RoleAssignmentProperties) 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 "principalId": + err = unpopulate(val, "PrincipalID", &r.PrincipalID) + delete(rawMsg, key) + case "roleDefinitionId": + err = unpopulate(val, "RoleDefinitionID", &r.RoleDefinitionID) + 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 RoleAssignmentPropertiesWithScope. +func (r RoleAssignmentPropertiesWithScope) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "principalId", r.PrincipalID) + populate(objectMap, "roleDefinitionId", r.RoleDefinitionID) + populate(objectMap, "scope", r.Scope) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RoleAssignmentPropertiesWithScope. +func (r *RoleAssignmentPropertiesWithScope) 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 "principalId": + err = unpopulate(val, "PrincipalID", &r.PrincipalID) + delete(rawMsg, key) + case "roleDefinitionId": + err = unpopulate(val, "RoleDefinitionID", &r.RoleDefinitionID) + delete(rawMsg, key) + case "scope": + err = unpopulate(val, "Scope", &r.Scope) + 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 RoleDefinition. +func (r RoleDefinition) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "id", r.ID) + populate(objectMap, "name", r.Name) + populate(objectMap, "properties", r.Properties) + populate(objectMap, "type", r.Type) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RoleDefinition. +func (r *RoleDefinition) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", r, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "id": + err = unpopulate(val, "ID", &r.ID) + delete(rawMsg, key) + case "name": + err = unpopulate(val, "Name", &r.Name) + delete(rawMsg, key) + case "properties": + err = unpopulate(val, "Properties", &r.Properties) + 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 RoleDefinitionCreateParameters. +func (r RoleDefinitionCreateParameters) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "properties", r.Properties) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RoleDefinitionCreateParameters. +func (r *RoleDefinitionCreateParameters) 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 "properties": + err = unpopulate(val, "Properties", &r.Properties) + 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 RoleDefinitionListResult. +func (r RoleDefinitionListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "nextLink", r.NextLink) + populate(objectMap, "value", r.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RoleDefinitionListResult. +func (r *RoleDefinitionListResult) 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 "nextLink": + err = unpopulate(val, "NextLink", &r.NextLink) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &r.Value) + 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 RoleDefinitionProperties. +func (r RoleDefinitionProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "assignableScopes", r.AssignableScopes) + populate(objectMap, "description", r.Description) + populate(objectMap, "permissions", r.Permissions) + populate(objectMap, "roleName", r.RoleName) + populate(objectMap, "type", r.RoleType) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type RoleDefinitionProperties. +func (r *RoleDefinitionProperties) 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 "assignableScopes": + err = unpopulate(val, "AssignableScopes", &r.AssignableScopes) + delete(rawMsg, key) + case "description": + err = unpopulate(val, "Description", &r.Description) + delete(rawMsg, key) + case "permissions": + err = unpopulate(val, "Permissions", &r.Permissions) + delete(rawMsg, key) + case "roleName": + err = unpopulate(val, "RoleName", &r.RoleName) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "RoleType", &r.RoleType) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", r, err) + } + } + return nil +} + +func populate(m map[string]any, k string, v any) { + if v == nil { + return + } else if azcore.IsNullValue(v) { + m[k] = nil + } else if !reflect.ValueOf(v).IsNil() { + m[k] = v + } +} + +func unpopulate(data json.RawMessage, fn string, v any) error { + if data == nil { + return nil + } + if err := json.Unmarshal(data, v); err != nil { + return fmt.Errorf("struct field %s: %v", fn, err) + } + return nil +} diff --git a/sdk/security/keyvault/azadmin/rbac/response_types.go b/sdk/security/keyvault/azadmin/rbac/response_types.go new file mode 100644 index 000000000000..4f7e198a571f --- /dev/null +++ b/sdk/security/keyvault/azadmin/rbac/response_types.go @@ -0,0 +1,50 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package rbac + +// CreateOrUpdateRoleDefinitionResponse contains the response from method Client.CreateOrUpdateRoleDefinition. +type CreateOrUpdateRoleDefinitionResponse struct { + RoleDefinition +} + +// CreateRoleAssignmentResponse contains the response from method Client.CreateRoleAssignment. +type CreateRoleAssignmentResponse struct { + RoleAssignment +} + +// DeleteRoleAssignmentResponse contains the response from method Client.DeleteRoleAssignment. +type DeleteRoleAssignmentResponse struct { + RoleAssignment +} + +// DeleteRoleDefinitionResponse contains the response from method Client.DeleteRoleDefinition. +type DeleteRoleDefinitionResponse struct { + RoleDefinition +} + +// GetRoleAssignmentResponse contains the response from method Client.GetRoleAssignment. +type GetRoleAssignmentResponse struct { + RoleAssignment +} + +// GetRoleDefinitionResponse contains the response from method Client.GetRoleDefinition. +type GetRoleDefinitionResponse struct { + RoleDefinition +} + +// ListRoleAssignmentsResponse contains the response from method Client.NewListRoleAssignmentsPager. +type ListRoleAssignmentsResponse struct { + RoleAssignmentListResult +} + +// ListRoleDefinitionsResponse contains the response from method Client.NewListRoleDefinitionsPager. +type ListRoleDefinitionsResponse struct { + RoleDefinitionListResult +} diff --git a/sdk/security/keyvault/azadmin/rbac/utils_test.go b/sdk/security/keyvault/azadmin/rbac/utils_test.go new file mode 100644 index 000000000000..82b4a4e8e111 --- /dev/null +++ b/sdk/security/keyvault/azadmin/rbac/utils_test.go @@ -0,0 +1,131 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package rbac_test + +import ( + "context" + "encoding/json" + "fmt" + "os" + "regexp" + "testing" + "time" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" + "github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/azadmin/rbac" + "github.com/stretchr/testify/require" +) + +const fakeHsmURL = "https://fakehsm.managedhsm.azure.net/" + +var ( + credential azcore.TokenCredential + hsmURL string +) + +func TestMain(m *testing.M) { + if recording.GetRecordMode() != recording.PlaybackMode { + hsmURL = os.Getenv("AZURE_MANAGEDHSM_URL") + } + if hsmURL == "" { + if recording.GetRecordMode() != recording.PlaybackMode { + panic("no value for AZURE_MANAGEDHSM_URL") + } + hsmURL = fakeHsmURL + } + + err := recording.ResetProxy(nil) + if err != nil { + panic(err) + } + if recording.GetRecordMode() == recording.PlaybackMode { + credential = &FakeCredential{} + } else { + tenantID := lookupEnvVar("AZADMIN_TENANT_ID") + clientID := lookupEnvVar("AZADMIN_CLIENT_ID") + secret := lookupEnvVar("AZADMIN_CLIENT_SECRET") + credential, err = azidentity.NewClientSecretCredential(tenantID, clientID, secret, nil) + if err != nil { + panic(err) + } + } + if recording.GetRecordMode() == recording.RecordingMode { + err := recording.AddGeneralRegexSanitizer(fakeHsmURL, hsmURL, nil) + if err != nil { + panic(err) + } + defer func() { + err := recording.ResetProxy(nil) + if err != nil { + panic(err) + } + }() + } + code := m.Run() + os.Exit(code) +} + +func startRecording(t *testing.T) { + err := recording.Start(t, "sdk/security/keyvault/azadmin/testdata", nil) + require.NoError(t, err) + t.Cleanup(func() { + err := recording.Stop(t, nil) + require.NoError(t, err) + }) +} + +func startAccessControlTest(t *testing.T) *rbac.Client { + startRecording(t) + transport, err := recording.NewRecordingHTTPClient(t, nil) + require.NoError(t, err) + opts := &rbac.ClientOptions{ClientOptions: azcore.ClientOptions{Transport: transport}} + client, err := rbac.NewClient(hsmURL, credential, opts) + require.NoError(t, err) + return client +} + +func lookupEnvVar(s string) string { + ret, ok := os.LookupEnv(s) + if !ok { + panic(fmt.Sprintf("Could not find env var: '%s'", s)) + } + return ret +} + +type FakeCredential struct{} + +func (f *FakeCredential) GetToken(ctx context.Context, options policy.TokenRequestOptions) (azcore.AccessToken, error) { + return azcore.AccessToken{Token: "faketoken", ExpiresOn: time.Now().Add(time.Hour).UTC()}, nil +} + +type serdeModel interface { + json.Marshaler + json.Unmarshaler +} + +func testSerde[T serdeModel](t *testing.T, model T) { + data, err := model.MarshalJSON() + require.NoError(t, err) + err = model.UnmarshalJSON(data) + require.NoError(t, err) + + // testing unmarshal error scenarios + var data2 []byte + err = model.UnmarshalJSON(data2) + require.Error(t, err) + + m := regexp.MustCompile(":.*$") + modifiedData := m.ReplaceAllString(string(data), ":false}") + if modifiedData != "{}" { + data3 := []byte(modifiedData) + err = model.UnmarshalJSON(data3) + require.Error(t, err) + } +} diff --git a/sdk/security/keyvault/azadmin/settings/autorest.md b/sdk/security/keyvault/azadmin/settings/autorest.md new file mode 100644 index 000000000000..24142a0c595c --- /dev/null +++ b/sdk/security/keyvault/azadmin/settings/autorest.md @@ -0,0 +1,54 @@ +## Go + +```yaml +clear-output-folder: false +export-clients: true +go: true +input-file: + - https://github.com/Azure/azure-rest-api-specs/blob/551275acb80e1f8b39036b79dfc35a8f63b601a7/specification/keyvault/data-plane/Microsoft.KeyVault/stable/7.4/settings.json +license-header: MICROSOFT_MIT_NO_VERSION +openapi-type: "data-plane" +output-folder: ../settings +override-client-name: Client +security: "AADToken" +security-scopes: "https://vault.azure.net/.default" +use: "@autorest/go@4.0.0-preview.46" +version: "^3.0.0" + +directive: + + # make vault URL a parameter of the client constructor + - from: swagger-document + where: $["x-ms-parameterized-host"] + transform: $.parameters[0]["x-ms-parameter-location"] = "client" + + # delete generated client constructor + - from: client.go + where: $ + transform: return $.replace(/(?:\/\/.*\s)+func NewClient.+\{\s(?:.+\s)+\}\s/, ""); + + # delete unused error models + - from: models.go + where: $ + transform: return $.replace(/(?:\/\/.*\s)+type (?:Error|KeyVaultError).+\{(?:\s.+\s)+\}\s/g, ""); + - from: models_serde.go + where: $ + transform: return $.replace(/(?:\/\/.*\s)+func \(\w \*?(?:Error|KeyVaultError)\).*\{\s(?:.+\s)+\}\s/g, ""); + + # delete client name prefix from method options and response types + - from: + - client.go + - models.go + - response_types.go + where: $ + transform: return $.replace(/Client(\w+)((?:Options|Response))/g, "$1$2"); + + # add doc comment for Setting + - from: swagger-document + where: $.definitions.Setting + transform: $["description"] = "A Key Vault setting." + + # remane SettingTypeEnum to SettingType + - from: swagger-document + where: $.definitions.Setting.properties.type.x-ms-enum + transform: $["name"] = "SettingType" \ No newline at end of file diff --git a/sdk/security/keyvault/azadmin/settings/client.go b/sdk/security/keyvault/azadmin/settings/client.go new file mode 100644 index 000000000000..3fb9c3888c1e --- /dev/null +++ b/sdk/security/keyvault/azadmin/settings/client.go @@ -0,0 +1,168 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package settings + +import ( + "context" + "errors" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + "net/http" + "net/url" + "strings" +) + +// Client contains the methods for the Client group. +// Don't use this type directly, use a constructor function instead. +type Client struct { + internal *azcore.Client + endpoint string +} + +// GetSetting - Retrieves the setting object of a specified setting name. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 7.4 +// - settingName - The name of the account setting. Must be a valid settings option. +// - options - GetSettingOptions contains the optional parameters for the Client.GetSetting method. +func (client *Client) GetSetting(ctx context.Context, settingName string, options *GetSettingOptions) (GetSettingResponse, error) { + req, err := client.getSettingCreateRequest(ctx, settingName, options) + if err != nil { + return GetSettingResponse{}, err + } + resp, err := client.internal.Pipeline().Do(req) + if err != nil { + return GetSettingResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return GetSettingResponse{}, runtime.NewResponseError(resp) + } + return client.getSettingHandleResponse(resp) +} + +// getSettingCreateRequest creates the GetSetting request. +func (client *Client) getSettingCreateRequest(ctx context.Context, settingName string, options *GetSettingOptions) (*policy.Request, error) { + urlPath := "/settings/{setting-name}" + if settingName == "" { + return nil, errors.New("parameter settingName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{setting-name}", url.PathEscape(settingName)) + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.endpoint, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "7.4") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// getSettingHandleResponse handles the GetSetting response. +func (client *Client) getSettingHandleResponse(resp *http.Response) (GetSettingResponse, error) { + result := GetSettingResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.Setting); err != nil { + return GetSettingResponse{}, err + } + return result, nil +} + +// GetSettings - Retrieves a list of all the available account settings that can be configured. +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 7.4 +// - options - GetSettingsOptions contains the optional parameters for the Client.GetSettings method. +func (client *Client) GetSettings(ctx context.Context, options *GetSettingsOptions) (GetSettingsResponse, error) { + req, err := client.getSettingsCreateRequest(ctx, options) + if err != nil { + return GetSettingsResponse{}, err + } + resp, err := client.internal.Pipeline().Do(req) + if err != nil { + return GetSettingsResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return GetSettingsResponse{}, runtime.NewResponseError(resp) + } + return client.getSettingsHandleResponse(resp) +} + +// getSettingsCreateRequest creates the GetSettings request. +func (client *Client) getSettingsCreateRequest(ctx context.Context, options *GetSettingsOptions) (*policy.Request, error) { + urlPath := "/settings" + req, err := runtime.NewRequest(ctx, http.MethodGet, runtime.JoinPaths(client.endpoint, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "7.4") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, nil +} + +// getSettingsHandleResponse handles the GetSettings response. +func (client *Client) getSettingsHandleResponse(resp *http.Response) (GetSettingsResponse, error) { + result := GetSettingsResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.ListResult); err != nil { + return GetSettingsResponse{}, err + } + return result, nil +} + +// UpdateSetting - Description of the pool setting to be updated +// If the operation fails it returns an *azcore.ResponseError type. +// +// Generated from API version 7.4 +// - settingName - The name of the account setting. Must be a valid settings option. +// - parameters - The parameters to update an account setting. +// - options - UpdateSettingOptions contains the optional parameters for the Client.UpdateSetting method. +func (client *Client) UpdateSetting(ctx context.Context, settingName string, parameters UpdateSettingRequest, options *UpdateSettingOptions) (UpdateSettingResponse, error) { + req, err := client.updateSettingCreateRequest(ctx, settingName, parameters, options) + if err != nil { + return UpdateSettingResponse{}, err + } + resp, err := client.internal.Pipeline().Do(req) + if err != nil { + return UpdateSettingResponse{}, err + } + if !runtime.HasStatusCode(resp, http.StatusOK) { + return UpdateSettingResponse{}, runtime.NewResponseError(resp) + } + return client.updateSettingHandleResponse(resp) +} + +// updateSettingCreateRequest creates the UpdateSetting request. +func (client *Client) updateSettingCreateRequest(ctx context.Context, settingName string, parameters UpdateSettingRequest, options *UpdateSettingOptions) (*policy.Request, error) { + urlPath := "/settings/{setting-name}" + if settingName == "" { + return nil, errors.New("parameter settingName cannot be empty") + } + urlPath = strings.ReplaceAll(urlPath, "{setting-name}", url.PathEscape(settingName)) + req, err := runtime.NewRequest(ctx, http.MethodPatch, runtime.JoinPaths(client.endpoint, urlPath)) + if err != nil { + return nil, err + } + reqQP := req.Raw().URL.Query() + reqQP.Set("api-version", "7.4") + req.Raw().URL.RawQuery = reqQP.Encode() + req.Raw().Header["Accept"] = []string{"application/json"} + return req, runtime.MarshalAsJSON(req, parameters) +} + +// updateSettingHandleResponse handles the UpdateSetting response. +func (client *Client) updateSettingHandleResponse(resp *http.Response) (UpdateSettingResponse, error) { + result := UpdateSettingResponse{} + if err := runtime.UnmarshalAsJSON(resp, &result.Setting); err != nil { + return UpdateSettingResponse{}, err + } + return result, nil +} diff --git a/sdk/security/keyvault/azadmin/settings/client_test.go b/sdk/security/keyvault/azadmin/settings/client_test.go new file mode 100644 index 000000000000..b180d710a6b4 --- /dev/null +++ b/sdk/security/keyvault/azadmin/settings/client_test.go @@ -0,0 +1,129 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package settings_test + +import ( + "context" + "testing" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" + "github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/azadmin/settings" + "github.com/stretchr/testify/require" +) + +func TestGetSetting(t *testing.T) { + client := startSettingsTest(t) + settingName := "AllowKeyManagementOperationsThroughARM" + + res, err := client.GetSetting(context.Background(), settingName, nil) + require.NoError(t, err) + require.NotNil(t, res) + require.Equal(t, *res.Name, settingName) + require.Equal(t, *res.Type, settings.SettingTypeBoolean) + require.NotNil(t, res.Value) + testSerde(t, &res) +} + +func TestGetSetting_InvalidSettingName(t *testing.T) { + client := startSettingsTest(t) + + res, err := client.GetSetting(context.Background(), "", nil) + require.Error(t, err, "parameter settingName cannot be empty") + require.Nil(t, res.Name) + require.Nil(t, res.Type) + require.Nil(t, res.Value) + + res, err = client.GetSetting(context.Background(), "invalid name", nil) + require.Error(t, err) + require.Nil(t, res.Name) + require.Nil(t, res.Type) + require.Nil(t, res.Value) + var httpErr *azcore.ResponseError + require.ErrorAs(t, err, &httpErr) + require.Equal(t, "UnknownError", httpErr.ErrorCode) + require.Equal(t, 500, httpErr.StatusCode) +} + +func TestGetSettings(t *testing.T) { + client := startSettingsTest(t) + + res, err := client.GetSettings(context.Background(), nil) + require.NoError(t, err) + require.NotNil(t, res) + + for _, setting := range res.Settings { + require.NotNil(t, setting.Name) + require.NotNil(t, setting.Type) + require.NotNil(t, setting.Value) + } + + testSerde(t, &res) + +} + +func TestUpdateSetting(t *testing.T) { + client := startSettingsTest(t) + settingName := "AllowKeyManagementOperationsThroughARM" + var updatedBool string + + res, err := client.GetSetting(context.Background(), settingName, nil) + require.NoError(t, err) + _ = res + + if *res.Value == "true" { + updatedBool = "false" + } else if *res.Value == "false" { + updatedBool = "true" + } + + updateSettingRequest := settings.UpdateSettingRequest{Value: to.Ptr(updatedBool)} + testSerde(t, &updateSettingRequest) + + update, err := client.UpdateSetting(context.Background(), settingName, updateSettingRequest, nil) + require.NoError(t, err) + require.NotNil(t, res) + require.Equal(t, settingName, *res.Name) + require.Equal(t, settings.SettingTypeBoolean, *res.Type) + + require.NotEqual(t, res.Value, update.Value) + _ = update +} + +func TestUpdateSetting_InvalidSettingName(t *testing.T) { + client := startSettingsTest(t) + + res, err := client.UpdateSetting(context.Background(), "", settings.UpdateSettingRequest{Value: to.Ptr("true")}, nil) + require.Error(t, err, "parameter settingName cannot be empty") + require.Nil(t, res.Name) + require.Nil(t, res.Type) + require.Nil(t, res.Value) + + res, err = client.UpdateSetting(context.Background(), "invalid name", settings.UpdateSettingRequest{Value: to.Ptr("true")}, nil) + require.Error(t, err) + require.Nil(t, res.Name) + require.Nil(t, res.Type) + require.Nil(t, res.Value) + var httpErr *azcore.ResponseError + require.ErrorAs(t, err, &httpErr) + require.Equal(t, "Nocontentprovided", httpErr.ErrorCode) + require.Equal(t, 400, httpErr.StatusCode) +} + +func TestUpdateSetting_InvalidUpdateSettingRequest(t *testing.T) { + client := startSettingsTest(t) + + res, err := client.UpdateSetting(context.Background(), "AllowKeyManagementOperationsThroughARM", settings.UpdateSettingRequest{Value: to.Ptr("invalid")}, nil) + require.Error(t, err) + require.Nil(t, res.Name) + require.Nil(t, res.Type) + require.Nil(t, res.Value) + var httpErr *azcore.ResponseError + require.ErrorAs(t, err, &httpErr) + require.Equal(t, "Nocontentprovided", httpErr.ErrorCode) + require.Equal(t, 400, httpErr.StatusCode) +} diff --git a/sdk/security/keyvault/azadmin/settings/constants.go b/sdk/security/keyvault/azadmin/settings/constants.go new file mode 100644 index 000000000000..5a65eb68e595 --- /dev/null +++ b/sdk/security/keyvault/azadmin/settings/constants.go @@ -0,0 +1,24 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package settings + +// SettingType - The type specifier of the value. +type SettingType string + +const ( + SettingTypeBoolean SettingType = "boolean" +) + +// PossibleSettingTypeValues returns the possible values for the SettingType const type. +func PossibleSettingTypeValues() []SettingType { + return []SettingType{ + SettingTypeBoolean, + } +} diff --git a/sdk/security/keyvault/azadmin/settings/custom_client.go b/sdk/security/keyvault/azadmin/settings/custom_client.go new file mode 100644 index 000000000000..5de5bf5afcd1 --- /dev/null +++ b/sdk/security/keyvault/azadmin/settings/custom_client.go @@ -0,0 +1,46 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +package settings + +import ( + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" + ainternal "github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/azadmin/internal" + "github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/internal" +) + +// this file contains handwritten additions to the generated code + +// ClientOptions contains optional settings for Client. +type ClientOptions struct { + azcore.ClientOptions + + // DisableChallengeResourceVerification controls whether the policy requires the + // authentication challenge resource to match the Key Vault or Managed HSM domain. + // See https://aka.ms/azsdk/blog/vault-uri for more information. + DisableChallengeResourceVerification bool +} + +// NewClient creates a client that provides methods to update, get, and list settings for a Managed HSM. +// You should validate that vaultURL references a valid Managed HSM. See https://aka.ms/azsdk/blog/vault-uri for details. +func NewClient(vaultURL string, credential azcore.TokenCredential, options *ClientOptions) (*Client, error) { + if options == nil { + options = &ClientOptions{} + } + authPolicy := internal.NewKeyVaultChallengePolicy( + credential, + &internal.KeyVaultChallengePolicyOptions{ + DisableChallengeResourceVerification: options.DisableChallengeResourceVerification, + }, + ) + azcoreClient, err := azcore.NewClient("settings.Client", ainternal.Version, runtime.PipelineOptions{PerRetry: []policy.Policy{authPolicy}}, &options.ClientOptions) + if err != nil { + return nil, err + } + return &Client{endpoint: vaultURL, internal: azcoreClient}, nil +} diff --git a/sdk/security/keyvault/azadmin/settings/example_test.go b/sdk/security/keyvault/azadmin/settings/example_test.go new file mode 100644 index 000000000000..077917dbaea6 --- /dev/null +++ b/sdk/security/keyvault/azadmin/settings/example_test.go @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package settings_test + +import ( + "context" + "fmt" + + "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/security/keyvault/azadmin/settings" +) + +var client settings.Client + +func ExampleNewClient() { + vaultURL := "https://.managedhsm.azure.net/" + cred, err := azidentity.NewDefaultAzureCredential(nil) + if err != nil { + // TODO: handle error + } + + client, err := settings.NewClient(vaultURL, cred, nil) + if err != nil { + // TODO: handle error + } + + _ = client +} + +func ExampleClient_GetSetting() { + name := "AllowKeyManagementOperationsThroughARM" + setting, err := client.GetSetting(context.TODO(), name, nil) + if err != nil { + // TODO: handle error + } + + fmt.Printf("Setting Name: %s\tSetting Value: %s", *setting.Name, *setting.Value) +} + +func ExampleClient_GetSettings() { + settings, err := client.GetSettings(context.TODO(), nil) + if err != nil { + // TODO: handle error + } + + for _, setting := range settings.Settings { + fmt.Printf("Setting Name: %s\tSetting Value: %s", *setting.Name, *setting.Value) + } +} + +func ExampleClient_UpdateSetting() { + name := "AllowKeyManagementOperationsThroughARM" + parameters := settings.UpdateSettingRequest{Value: to.Ptr("true")} + + updatedSetting, err := client.UpdateSetting(context.TODO(), name, parameters, nil) + if err != nil { + // TODO: handle error + } + + fmt.Printf("Setting Name: %s\tSetting Value: %s", *updatedSetting.Name, *updatedSetting.Value) +} diff --git a/sdk/security/keyvault/azadmin/settings/models.go b/sdk/security/keyvault/azadmin/settings/models.go new file mode 100644 index 000000000000..0537b5309bc6 --- /dev/null +++ b/sdk/security/keyvault/azadmin/settings/models.go @@ -0,0 +1,49 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package settings + +// GetSettingOptions contains the optional parameters for the Client.GetSetting method. +type GetSettingOptions struct { + // placeholder for future optional parameters +} + +// GetSettingsOptions contains the optional parameters for the Client.GetSettings method. +type GetSettingsOptions struct { + // placeholder for future optional parameters +} + +// UpdateSettingOptions contains the optional parameters for the Client.UpdateSetting method. +type UpdateSettingOptions struct { + // placeholder for future optional parameters +} + +// ListResult - The settings list result. +type ListResult struct { + // READ-ONLY; A response message containing a list of account settings with their associated value. + Settings []*Setting `json:"settings,omitempty" azure:"ro"` +} + +// Setting - A Key Vault setting. +type Setting struct { + // REQUIRED; The account setting to be updated + Name *string `json:"name,omitempty"` + + // REQUIRED; The value of the pool setting. + Value *string `json:"value,omitempty"` + + // The type specifier of the value. + Type *SettingType `json:"type,omitempty"` +} + +// UpdateSettingRequest - The update settings request object. +type UpdateSettingRequest struct { + // REQUIRED; The value of the pool setting. + Value *string `json:"value,omitempty"` +} diff --git a/sdk/security/keyvault/azadmin/settings/models_serde.go b/sdk/security/keyvault/azadmin/settings/models_serde.go new file mode 100644 index 000000000000..95004a33bc25 --- /dev/null +++ b/sdk/security/keyvault/azadmin/settings/models_serde.go @@ -0,0 +1,126 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package settings + +import ( + "encoding/json" + "fmt" + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "reflect" +) + +// MarshalJSON implements the json.Marshaller interface for type ListResult. +func (l ListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "settings", l.Settings) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type ListResult. +func (l *ListResult) 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", l, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "settings": + err = unpopulate(val, "Settings", &l.Settings) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", l, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type Setting. +func (s Setting) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "name", s.Name) + populate(objectMap, "type", s.Type) + populate(objectMap, "value", s.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type Setting. +func (s *Setting) UnmarshalJSON(data []byte) error { + var rawMsg map[string]json.RawMessage + if err := json.Unmarshal(data, &rawMsg); err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + for key, val := range rawMsg { + var err error + switch key { + case "name": + err = unpopulate(val, "Name", &s.Name) + delete(rawMsg, key) + case "type": + err = unpopulate(val, "Type", &s.Type) + delete(rawMsg, key) + case "value": + err = unpopulate(val, "Value", &s.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", s, err) + } + } + return nil +} + +// MarshalJSON implements the json.Marshaller interface for type UpdateSettingRequest. +func (u UpdateSettingRequest) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]any) + populate(objectMap, "value", u.Value) + return json.Marshal(objectMap) +} + +// UnmarshalJSON implements the json.Unmarshaller interface for type UpdateSettingRequest. +func (u *UpdateSettingRequest) 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 "value": + err = unpopulate(val, "Value", &u.Value) + delete(rawMsg, key) + } + if err != nil { + return fmt.Errorf("unmarshalling type %T: %v", u, err) + } + } + return nil +} + +func populate(m map[string]any, k string, v any) { + if v == nil { + return + } else if azcore.IsNullValue(v) { + m[k] = nil + } else if !reflect.ValueOf(v).IsNil() { + m[k] = v + } +} + +func unpopulate(data json.RawMessage, fn string, v any) error { + if data == nil { + return nil + } + if err := json.Unmarshal(data, v); err != nil { + return fmt.Errorf("struct field %s: %v", fn, err) + } + return nil +} diff --git a/sdk/security/keyvault/azadmin/settings/response_types.go b/sdk/security/keyvault/azadmin/settings/response_types.go new file mode 100644 index 000000000000..dc42d8ee2d51 --- /dev/null +++ b/sdk/security/keyvault/azadmin/settings/response_types.go @@ -0,0 +1,25 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. +// DO NOT EDIT. + +package settings + +// GetSettingResponse contains the response from method Client.GetSetting. +type GetSettingResponse struct { + Setting +} + +// GetSettingsResponse contains the response from method Client.GetSettings. +type GetSettingsResponse struct { + ListResult +} + +// UpdateSettingResponse contains the response from method Client.UpdateSetting. +type UpdateSettingResponse struct { + Setting +} diff --git a/sdk/security/keyvault/azadmin/settings/utils_test.go b/sdk/security/keyvault/azadmin/settings/utils_test.go new file mode 100644 index 000000000000..55b43241a422 --- /dev/null +++ b/sdk/security/keyvault/azadmin/settings/utils_test.go @@ -0,0 +1,131 @@ +//go:build go1.18 +// +build go1.18 + +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package settings_test + +import ( + "context" + "encoding/json" + "fmt" + "os" + "regexp" + "testing" + "time" + + "github.com/Azure/azure-sdk-for-go/sdk/azcore" + "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" + "github.com/Azure/azure-sdk-for-go/sdk/azidentity" + "github.com/Azure/azure-sdk-for-go/sdk/internal/recording" + "github.com/Azure/azure-sdk-for-go/sdk/security/keyvault/azadmin/settings" + "github.com/stretchr/testify/require" +) + +const fakeHsmURL = "https://fakehsm.managedhsm.azure.net/" + +var ( + credential azcore.TokenCredential + hsmURL string +) + +func TestMain(m *testing.M) { + if recording.GetRecordMode() != recording.PlaybackMode { + hsmURL = os.Getenv("AZURE_MANAGEDHSM_URL") + } + if hsmURL == "" { + if recording.GetRecordMode() != recording.PlaybackMode { + panic("no value for AZURE_MANAGEDHSM_URL") + } + hsmURL = fakeHsmURL + } + + err := recording.ResetProxy(nil) + if err != nil { + panic(err) + } + if recording.GetRecordMode() == recording.PlaybackMode { + credential = &FakeCredential{} + } else { + tenantID := lookupEnvVar("AZADMIN_TENANT_ID") + clientID := lookupEnvVar("AZADMIN_CLIENT_ID") + secret := lookupEnvVar("AZADMIN_CLIENT_SECRET") + credential, err = azidentity.NewClientSecretCredential(tenantID, clientID, secret, nil) + if err != nil { + panic(err) + } + } + if recording.GetRecordMode() == recording.RecordingMode { + err := recording.AddGeneralRegexSanitizer(fakeHsmURL, hsmURL, nil) + if err != nil { + panic(err) + } + defer func() { + err := recording.ResetProxy(nil) + if err != nil { + panic(err) + } + }() + } + code := m.Run() + os.Exit(code) +} + +func startRecording(t *testing.T) { + err := recording.Start(t, "sdk/security/keyvault/azadmin/testdata", nil) + require.NoError(t, err) + t.Cleanup(func() { + err := recording.Stop(t, nil) + require.NoError(t, err) + }) +} + +func startSettingsTest(t *testing.T) *settings.Client { + startRecording(t) + transport, err := recording.NewRecordingHTTPClient(t, nil) + require.NoError(t, err) + opts := &settings.ClientOptions{ClientOptions: azcore.ClientOptions{Transport: transport}} + client, err := settings.NewClient(hsmURL, credential, opts) + require.NoError(t, err) + return client +} + +func lookupEnvVar(s string) string { + ret, ok := os.LookupEnv(s) + if !ok { + panic(fmt.Sprintf("Could not find env var: '%s'", s)) + } + return ret +} + +type FakeCredential struct{} + +func (f *FakeCredential) GetToken(ctx context.Context, options policy.TokenRequestOptions) (azcore.AccessToken, error) { + return azcore.AccessToken{Token: "faketoken", ExpiresOn: time.Now().Add(time.Hour).UTC()}, nil +} + +type serdeModel interface { + json.Marshaler + json.Unmarshaler +} + +func testSerde[T serdeModel](t *testing.T, model T) { + data, err := model.MarshalJSON() + require.NoError(t, err) + err = model.UnmarshalJSON(data) + require.NoError(t, err) + + // testing unmarshal error scenarios + var data2 []byte + err = model.UnmarshalJSON(data2) + require.Error(t, err) + + m := regexp.MustCompile(":.*$") + modifiedData := m.ReplaceAllString(string(data), ":false}") + if modifiedData != "{}" { + data3 := []byte(modifiedData) + err = model.UnmarshalJSON(data3) + require.Error(t, err) + } +} diff --git a/sdk/security/keyvault/azadmin/test-resources-post.ps1 b/sdk/security/keyvault/azadmin/test-resources-post.ps1 new file mode 100644 index 000000000000..80f20c0cbfdc --- /dev/null +++ b/sdk/security/keyvault/azadmin/test-resources-post.ps1 @@ -0,0 +1,118 @@ +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. + +# IMPORTANT: Do not invoke this file directly. Please instead run eng/New-TestResources.ps1 from the repository root. + +#Requires -Version 6.0 +#Requires -PSEdition Core + +using namespace System.Security.Cryptography +using namespace System.Security.Cryptography.X509Certificates + +# Use same parameter names as declared in eng/New-TestResources.ps1 (assume validation therein). +[CmdletBinding(SupportsShouldProcess = $true, ConfirmImpact = 'Medium')] +param ( + [Parameter()] + [hashtable] $DeploymentOutputs, + + # Captures any arguments from eng/New-TestResources.ps1 not declared here (no parameter errors). + [Parameter(ValueFromRemainingArguments = $true)] + $RemainingArguments +) + +# By default stop for any error. +if (!$PSBoundParameters.ContainsKey('ErrorAction')) { + $ErrorActionPreference = 'Stop' +} + +function Log($Message) { + Write-Host ('{0} - {1}' -f [DateTime]::Now.ToLongTimeString(), $Message) +} + +function New-X509Certificate2([string] $SubjectName) { + + $rsa = [RSA]::Create(2048) + try { + $req = [CertificateRequest]::new( + [string] $SubjectName, + $rsa, + [HashAlgorithmName]::SHA256, + [RSASignaturePadding]::Pkcs1 + ) + + # TODO: Add any KUs necessary to $req.CertificateExtensions + + $NotBefore = [DateTimeOffset]::Now.AddDays(-1) + $NotAfter = $NotBefore.AddDays(365) + + $req.CreateSelfSigned($NotBefore, $NotAfter) + } + finally { + $rsa.Dispose() + } +} + +function Export-X509Certificate2([string] $Path, [X509Certificate2] $Certificate) { + + $Certificate.Export([X509ContentType]::Pfx) | Set-Content $Path -AsByteStream +} + +function Export-X509Certificate2PEM([string] $Path, [X509Certificate2] $Certificate) { + +@" +-----BEGIN CERTIFICATE----- +$([Convert]::ToBase64String($Certificate.RawData, 'InsertLineBreaks')) +-----END CERTIFICATE----- +"@ > $Path + +} + +# Make sure we deployed a Managed HSM. +if (!$DeploymentOutputs['AZURE_MANAGEDHSM_URL']) { + Log "Managed HSM not deployed; skipping activation" + exit +} + +[Uri] $hsmUrl = $DeploymentOutputs['AZURE_MANAGEDHSM_URL'] +$hsmName = $hsmUrl.Host.Substring(0, $hsmUrl.Host.IndexOf('.')) + +Log 'Creating 3 X509 certificates to activate security domain' +$wrappingFiles = foreach ($i in 0..2) { + $certificate = New-X509Certificate2 "CN=$($hsmUrl.Host)" + + $baseName = "$PSScriptRoot\$hsmName-certificate$i" + Export-X509Certificate2 "$baseName.pfx" $certificate + Export-X509Certificate2PEM "$baseName.cer" $certificate + + Resolve-Path "$baseName.cer" +} + +Log "Downloading security domain from '$hsmUrl'" + +$sdPath = "$PSScriptRoot\$hsmName-security-domain.key" +if (Test-Path $sdpath) { + Log "Deleting old security domain: $sdPath" + Remove-Item $sdPath -Force +} + +Export-AzKeyVaultSecurityDomain -Name $hsmName -Quorum 2 -Certificates $wrappingFiles -OutputPath $sdPath -ErrorAction SilentlyContinue -Verbose +if ( !$? ) { + Write-Host $Error[0].Exception + Write-Error $Error[0] + + exit +} + +Log "Security domain downloaded to '$sdPath'; Managed HSM is now active at '$hsmUrl'" + +# Force a sleep to wait for Managed HSM activation to propagate through Cosmos replication. Issue tracked in Azure DevOps. +Log 'Sleeping for 30 seconds to allow activation to propagate...' +Start-Sleep -Seconds 30 + +$testApplicationOid = $DeploymentOutputs['CLIENT_OBJECTID'] + +Log "Creating additional required role assignments for '$testApplicationOid'" +$null = New-AzKeyVaultRoleAssignment -HsmName $hsmName -RoleDefinitionName 'Managed HSM Crypto Officer' -ObjectID $testApplicationOid +$null = New-AzKeyVaultRoleAssignment -HsmName $hsmName -RoleDefinitionName 'Managed HSM Crypto User' -ObjectID $testApplicationOid + +Log "Role assignments created for '$testApplicationOid'" \ No newline at end of file diff --git a/sdk/security/keyvault/azadmin/test-resources.json b/sdk/security/keyvault/azadmin/test-resources.json new file mode 100644 index 000000000000..4ba055b4c36e --- /dev/null +++ b/sdk/security/keyvault/azadmin/test-resources.json @@ -0,0 +1,322 @@ +{ + "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "baseName": { + "type": "string", + "defaultValue": "[resourceGroup().name]", + "metadata": { + "description": "The base resource name." + } + }, + "tenantId": { + "type": "string", + "defaultValue": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "metadata": { + "description": "The tenant ID to which the application and resources belong." + } + }, + "testApplicationOid": { + "type": "string", + "metadata": { + "description": "The client OID to grant access to test resources." + } + }, + "provisionerApplicationOid": { + "type": "string", + "metadata": { + "description": "The provisioner OID to grant access to test resources." + } + }, + "location": { + "type": "string", + "defaultValue": "[resourceGroup().location]", + "metadata": { + "description": "The location of the resource. By default, this is the same as the resource group." + } + }, + "hsmLocation": { + "type": "string", + "defaultValue": "uksouth", + "allowedValues": [ + "australiacentral", + "australiaeast", + "canadacentral", + "canadaeast", + "centralindia", + "centralus", + "eastasia", + "eastus", + "eastus2", + "francecentral", + "japaneast", + "koreacentral", + "northcentralus", + "northeurope", + "southafricanorth", + "southcentralus", + "switzerlandnorth", + "switzerlandwest", + "uaenorth", + "uksouth", + "westcentralus", + "westeurope", + "westus", + "westus2", + "westus3" + ], + "metadata": { + "description": "The location of the Managed HSM." + } + }, + "enableHsm": { + "type": "bool", + "defaultValue": false, + "metadata": { + "description": "Whether to enable deployment of Managed HSM. The default is false." + } + }, + "keyVaultSku": { + "type": "string", + "defaultValue": "premium", + "metadata": { + "description": "Key Vault SKU to deploy. The default is 'premium'" + } + }, + "baseTime": { + "type": "string", + "defaultValue": "[utcNow('u')]", + "metadata": { + "description": "The base time to add 500 minutes to for SAS token expiration. The default is the current time." + } + }, + "attestationImage": { + "type": "string", + "defaultValue": "keyvault-mock-attestation:latest", + "metadata": { + "description": "The container image name and tag to use for the attestation mock service." + } + }, + "storageEndpointSuffix": { + "type": "string", + "defaultValue": "core.windows.net", + "metadata": { + "description": "The url suffix to use when accessing the storage data plane." + } + } + }, + "variables": { + "attestationFarm": "[concat(parameters('baseName'), 'farm')]", + "attestationSite": "[concat(parameters('baseName'), 'site')]", + "attestationUri": "[concat('DOCKER|azsdkengsys.azurecr.io/', parameters('attestationImage'))]", + "kvApiVersion": "2019-09-01", + "kvName": "[parameters('baseName')]", + "kvAdminDefinitionId": "00482a5a-887f-4fb3-b363-3b7fe8e74483", + "kvAdminAssignmentName": "[guid(resourceGroup().id, variables('kvAdminDefinitionId'), parameters('testApplicationOid'))]", + "hsmApiVersion": "2021-04-01-preview", + "hsmName": "[concat(parameters('baseName'), 'hsm')]", + "mgmtApiVersion": "2019-04-01", + "blobContainerName": "backup", + "primaryAccountName": "[concat(parameters('baseName'), 'prim')]", + "encryption": { + "services": { + "blob": { + "enabled": true + } + }, + "keySource": "Microsoft.Storage" + }, + "networkAcls": { + "bypass": "AzureServices", + "virtualNetworkRules": [], + "ipRules": [], + "defaultAction": "Allow" + }, + "accountSasProperties": { + "signedServices": "b", + "signedPermission": "rwdlacu", + "signedProtocol": "https", + "signedExpiry": "[dateTimeAdd(parameters('baseTime'), 'PT500M')]", + "signedResourceTypes": "sco", + "keyToSign": "key1" + } + }, + "resources": [ + { + "type": "Microsoft.KeyVault/vaults", + "apiVersion": "[variables('kvApiVersion')]", + "name": "[variables('kvName')]", + "location": "[parameters('location')]", + "properties": { + "sku": { + "family": "A", + "name": "[parameters('keyVaultSku')]" + }, + "tenantId": "[parameters('tenantId')]", + "enabledForDeployment": false, + "enabledForDiskEncryption": false, + "enabledForTemplateDeployment": false, + "enableSoftDelete": true, + "enableRbacAuthorization": true, + "softDeleteRetentionInDays": 7 + } + }, + { + "type": "Microsoft.Authorization/roleAssignments", + "apiVersion": "2020-04-01-preview", + "name": "[variables('kvAdminAssignmentName')]", + "properties": { + "roleDefinitionId": "[resourceId('Microsoft.Authorization/roleDefinitions', variables('kvAdminDefinitionId'))]", + "principalId": "[parameters('testApplicationOid')]", + "scope": "[resourceGroup().id]" + } + }, + { + "type": "Microsoft.KeyVault/managedHSMs", + "apiVersion": "[variables('hsmApiVersion')]", + "name": "[variables('hsmName')]", + "condition": "[parameters('enableHsm')]", + "location": "[parameters('hsmLocation')]", + "sku": { + "family": "B", + "name": "Standard_B1" + }, + "properties": { + "tenantId": "[parameters('tenantId')]", + "initialAdminObjectIds": "[union(array(parameters('testApplicationOid')), array(parameters('provisionerApplicationOid')))]", + "enablePurgeProtection": false, + "enableSoftDelete": true, + "softDeleteRetentionInDays": 7, + "publicNetworkAccess": "Enabled", + "networkAcls": "[variables('networkAcls')]" + } + }, + { + "type": "Microsoft.Storage/storageAccounts", + "apiVersion": "[variables('mgmtApiVersion')]", + "name": "[variables('primaryAccountName')]", + "location": "[parameters('location')]", + "sku": { + "name": "Standard_RAGRS", + "tier": "Standard" + }, + "kind": "StorageV2", + "properties": { + "networkAcls": "[variables('networkAcls')]", + "supportsHttpsTrafficOnly": true, + "encryption": "[variables('encryption')]", + "accessTier": "Hot" + } + }, + { + "type": "Microsoft.Storage/storageAccounts/blobServices", + "apiVersion": "2019-06-01", + "name": "[concat(variables('primaryAccountName'), '/default')]", + "dependsOn": [ + "[resourceId('Microsoft.Storage/storageAccounts', variables('primaryAccountName'))]" + ], + "sku": { + "name": "Standard_RAGRS", + "tier": "Standard" + }, + "properties": { + "cors": { + "corsRules": [] + }, + "deleteRetentionPolicy": { + "enabled": false + } + } + }, + { + "type": "Microsoft.Storage/storageAccounts/blobServices/containers", + "apiVersion": "2019-06-01", + "name": "[concat(variables('primaryAccountName'), '/default/', variables('blobContainerName'))]", + "dependsOn": [ + "[resourceId('Microsoft.Storage/storageAccounts/blobServices', variables('primaryAccountName'), 'default')]", + "[resourceId('Microsoft.Storage/storageAccounts', variables('primaryAccountName'))]" + ], + "properties": { + "publicAccess": "None" + } + }, + { + + "type": "Microsoft.Web/serverfarms", + "apiVersion": "2020-12-01", + "name": "[variables('attestationFarm')]", + "location": "[parameters('location')]", + "kind": "linux", + "sku": { + "name": "B1" + }, + "properties": { + "reserved": true + } + }, + { + + "type": "Microsoft.Web/sites", + "apiVersion": "2020-12-01", + "name": "[variables('attestationSite')]", + "dependsOn": [ + "[resourceId('Microsoft.Web/serverfarms', variables('attestationFarm'))]" + ], + "location": "[parameters('location')]", + "properties": { + "httpsOnly": true, + "serverFarmId": "[resourceId('Microsoft.Web/serverfarms', variables('attestationFarm'))]", + "siteConfig": { + "name": "[variables('attestationSite')]", + "alwaysOn": true, + "linuxFxVersion": "[variables('attestationUri')]", + "appSettings": [ + { + "name": "WEBSITES_ENABLE_APP_SERVICE_STORAGE", + "value": "false" + } + ] + } + } + } + ], + "outputs": { + "AZURE_KEYVAULT_URL": { + "type": "string", + "value": "[reference(variables('kvName')).vaultUri]" + }, + "AZURE_MANAGEDHSM_URL": { + "type": "string", + "condition": "[parameters('enableHsm')]", + "value": "[reference(variables('hsmName')).hsmUri]" + }, + "KEYVAULT_SKU": { + "type": "string", + "value": "[reference(parameters('baseName')).sku.name]" + }, + "CLIENT_OBJECTID": { + "type": "string", + "value": "[parameters('testApplicationOid')]" + }, + "KEYVAULT_STORAGE_ENDPOINT_SUFFIX": { + "type": "string", + "value": "[parameters('storageEndpointSuffix')]" + }, + "BLOB_STORAGE_ACCOUNT_NAME": { + "type": "string", + "value": "[variables('primaryAccountName')]" + }, + "BLOB_STORAGE_SAS_TOKEN": { + "type": "string", + "value": "[listAccountSas(variables('primaryAccountName'), '2019-06-01', variables('accountSasProperties')).accountSasToken]" + }, + "BLOB_CONTAINER_NAME" : { + "type": "string", + "value": "[variables('blobContainerName')]" + }, + "AZURE_KEYVAULT_ATTESTATION_URL": { + "type": "string", + "value": "[format('https://{0}/', reference(variables('attestationSite')).defaultHostName)]" + } + } +} \ No newline at end of file From f487530e32d83c4166f1c64ed3b2a137e847f08f Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Mon, 13 Mar 2023 15:25:28 -0700 Subject: [PATCH 091/107] enable true version override so that other tools also have a shot at picking up the replaced version (#20390) Co-authored-by: scbedd <45376673+scbedd@users.noreply.github.com> --- .../testproxy/override-proxy-version.ps1 | 25 +++++++++++++++++++ eng/common/testproxy/test-proxy-docker.yml | 9 +++++++ eng/common/testproxy/test-proxy-tool.yml | 15 ++++++----- 3 files changed, 43 insertions(+), 6 deletions(-) create mode 100644 eng/common/testproxy/override-proxy-version.ps1 diff --git a/eng/common/testproxy/override-proxy-version.ps1 b/eng/common/testproxy/override-proxy-version.ps1 new file mode 100644 index 000000000000..d1e6ff5bfa37 --- /dev/null +++ b/eng/common/testproxy/override-proxy-version.ps1 @@ -0,0 +1,25 @@ +<# +.SYNOPSIS +Replaces target test-proxy version present in target_version.txt. + +.PARAMETER TargetVersion +The replacement version. Used in its entirety, so don't exclude parts of the version definition. +#> +[cmdletbinding(SupportsShouldProcess=$True)] +param( + [Parameter(mandatory=$true)] [string] $TargetVersion +) + +$versionFile = Join-Path $PSScriptRoot "target_version.txt" +$existingVersionText = Get-Content -Raw -Path $versionFile +$existingVersion = $existingVersionText.Trim() + +if ($PSCmdLet.ShouldProcess($versionFile)){ + Write-Host "Replacing version `"$existingVersion`" with version `"$TargetVersion`" in $versionFile." + Set-Content -Path $versionFile -Value "$TargetVersion`n" +} +else { + Write-Host "Would replace version `"$existingVersion`" with version `"$TargetVersion`" in $versionFile." +} + + diff --git a/eng/common/testproxy/test-proxy-docker.yml b/eng/common/testproxy/test-proxy-docker.yml index 71a03d1be3b1..6e749801f4de 100644 --- a/eng/common/testproxy/test-proxy-docker.yml +++ b/eng/common/testproxy/test-proxy-docker.yml @@ -10,6 +10,15 @@ steps: displayName: 'Language Specific Certificate Trust' condition: and(succeeded(), ${{ parameters.condition }}) + - task: PowerShell@2 + displayName: 'Override proxy version if necessary' + condition: and(succeeded(), ${{ parameters.condition }}, ne('${{ parameters.targetVersion }}', '')) + inputs: + targetType: filePath + filePath: '${{ parameters.templateRoot }}/eng/common/testproxy/override-proxy-version.ps1' + arguments: '-TargetVersion "${{ parameters.targetVersion }}"' + pwsh: true + - pwsh: | docker info displayName: 'Dump active docker information' diff --git a/eng/common/testproxy/test-proxy-tool.yml b/eng/common/testproxy/test-proxy-tool.yml index ae9d69051537..bffc68309c04 100644 --- a/eng/common/testproxy/test-proxy-tool.yml +++ b/eng/common/testproxy/test-proxy-tool.yml @@ -11,14 +11,17 @@ steps: displayName: 'Language Specific Certificate Trust' condition: and(succeeded(), ${{ parameters.condition }}) + - task: PowerShell@2 + displayName: 'Override proxy version if necessary' + condition: and(succeeded(), ${{ parameters.condition }}, ne('${{ parameters.targetVersion }}', '')) + inputs: + targetType: filePath + filePath: '${{ parameters.templateRoot }}/eng/common/testproxy/override-proxy-version.ps1' + arguments: '-TargetVersion "${{ parameters.targetVersion }}"' + pwsh: true + - pwsh: | $version = $(Get-Content "${{ parameters.templateRoot }}/eng/common/testproxy/target_version.txt" -Raw).Trim() - $overrideVersion = "${{ parameters.targetVersion }}" - - if($overrideVersion) { - Write-Host "Overriding default target proxy version of '$version' with override $overrideVersion." - $version = $overrideVersion - } dotnet tool install azure.sdk.tools.testproxy ` --tool-path $(Build.BinariesDirectory)/test-proxy ` From 17feb23e9e983eaa60176d7a57045e312f1b501c Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Mon, 13 Mar 2023 17:07:50 -0700 Subject: [PATCH 092/107] Increment version for security/keyvault/azadmin releases (#20400) Increment package version after release of security/keyvault/azadmin --- sdk/security/keyvault/azadmin/CHANGELOG.md | 16 ++++++++++++++-- .../keyvault/azadmin/internal/version.go | 2 +- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/sdk/security/keyvault/azadmin/CHANGELOG.md b/sdk/security/keyvault/azadmin/CHANGELOG.md index e2fbd88f5291..37376a13efd7 100644 --- a/sdk/security/keyvault/azadmin/CHANGELOG.md +++ b/sdk/security/keyvault/azadmin/CHANGELOG.md @@ -1,2 +1,14 @@ -## 0.1.0 (2023-03-13) -* This is the initial release of the `azadmin` library \ No newline at end of file +## Release History + +### 0.1.1 (Unreleased) + +#### Features Added + +#### Breaking Changes + +#### Bugs Fixed + +#### Other Changes + +### 0.1.0 (2023-03-13) +* This is the initial release of the `azadmin` library diff --git a/sdk/security/keyvault/azadmin/internal/version.go b/sdk/security/keyvault/azadmin/internal/version.go index 51a2ce2701b5..2116837a30a5 100644 --- a/sdk/security/keyvault/azadmin/internal/version.go +++ b/sdk/security/keyvault/azadmin/internal/version.go @@ -8,5 +8,5 @@ package internal const ( ModuleName = "azadmin" - Version = "v0.1.0" + Version = "v0.1.1" ) From cc6a2e5969b438bd35ab63bd7f4fece9b4c91e3e Mon Sep 17 00:00:00 2001 From: Sourav Gupta <98318303+souravgupta-msft@users.noreply.github.com> Date: Tue, 14 Mar 2023 11:27:32 +0530 Subject: [PATCH 093/107] Adding checks during SAS creation (#20379) * Adding checks during SAS creation --- sdk/storage/azblob/sas/account.go | 38 ++++++++++++++++++++----- sdk/storage/azblob/sas/account_test.go | 32 +++++++++++++++++++++ sdk/storage/azblob/sas/service.go | 17 +++++++---- sdk/storage/azqueue/sas/account.go | 38 ++++++++++++++++++++----- sdk/storage/azqueue/sas/account_test.go | 32 +++++++++++++++++++++ sdk/storage/azqueue/sas/service.go | 11 +++---- 6 files changed, 143 insertions(+), 25 deletions(-) diff --git a/sdk/storage/azblob/sas/account.go b/sdk/storage/azblob/sas/account.go index ec5018656239..454a08cb9e58 100644 --- a/sdk/storage/azblob/sas/account.go +++ b/sdk/storage/azblob/sas/account.go @@ -29,9 +29,9 @@ type AccountSignatureValues struct { Protocol Protocol `param:"spr"` // See the SASProtocol* constants StartTime time.Time `param:"st"` // Not specified if IsZero ExpiryTime time.Time `param:"se"` // Not specified if IsZero - Permissions string `param:"sp"` // Create by initializing a AccountSASPermissions and then call String() + Permissions string `param:"sp"` // Create by initializing AccountPermissions and then call String() IPRange IPRange `param:"sip"` - ResourceTypes string `param:"srt"` // Create by initializing AccountSASResourceTypes and then call String() + ResourceTypes string `param:"srt"` // Create by initializing AccountResourceTypes and then call String() } // SignWithSharedKey uses an account's shared key credential to sign this signature values to produce @@ -50,6 +50,12 @@ func (v AccountSignatureValues) SignWithSharedKey(sharedKeyCredential *SharedKey } v.Permissions = perms.String() + resources, err := parseAccountResourceTypes(v.ResourceTypes) + if err != nil { + return QueryParameters{}, err + } + v.ResourceTypes = resources.String() + startTime, expiryTime, _ := formatTimesForSigning(v.StartTime, v.ExpiryTime, time.Time{}) stringToSign := strings.Join([]string{ @@ -90,13 +96,13 @@ func (v AccountSignatureValues) SignWithSharedKey(sharedKeyCredential *SharedKey } // AccountPermissions type simplifies creating the permissions string for an Azure Storage Account SAS. -// Initialize an instance of this type and then call its String method to set AccountSASSignature value's Permissions field. +// Initialize an instance of this type and then call its String method to set AccountSignatureValues' Permissions field. type AccountPermissions struct { Read, Write, Delete, DeletePreviousVersion, PermanentDelete, List, Add, Create, Update, Process, FilterByTags, Tag, SetImmutabilityPolicy bool } // String produces the SAS permissions string for an Azure Storage account. -// Call this method to set AccountSASSignatureValues' Permissions field. +// Call this method to set AccountSignatureValues' Permissions field. func (p *AccountPermissions) String() string { var buffer bytes.Buffer if p.Read { @@ -141,7 +147,7 @@ func (p *AccountPermissions) String() string { return buffer.String() } -// Parse initializes the AccountSASPermissions' fields from a string. +// Parse initializes the AccountPermissions' fields from a string. func parseAccountPermissions(s string) (AccountPermissions, error) { p := AccountPermissions{} // Clear out the flags for _, r := range s { @@ -180,13 +186,13 @@ func parseAccountPermissions(s string) (AccountPermissions, error) { } // AccountResourceTypes type simplifies creating the resource types string for an Azure Storage Account SAS. -// Initialize an instance of this type and then call its String method to set AccountSASSignatureValues' ResourceTypes field. +// Initialize an instance of this type and then call its String method to set AccountSignatureValues' ResourceTypes field. type AccountResourceTypes struct { Service, Container, Object bool } // String produces the SAS resource types string for an Azure Storage account. -// Call this method to set AccountSASSignatureValues' ResourceTypes field. +// Call this method to set AccountSignatureValues' ResourceTypes field. func (rt *AccountResourceTypes) String() string { var buffer bytes.Buffer if rt.Service { @@ -200,3 +206,21 @@ func (rt *AccountResourceTypes) String() string { } return buffer.String() } + +// parseAccountResourceTypes initializes the AccountResourceTypes' fields from a string. +func parseAccountResourceTypes(s string) (AccountResourceTypes, error) { + rt := AccountResourceTypes{} + for _, r := range s { + switch r { + case 's': + rt.Service = true + case 'c': + rt.Container = true + case 'o': + rt.Object = true + default: + return AccountResourceTypes{}, fmt.Errorf("invalid resource type character: '%v'", r) + } + } + return rt, nil +} diff --git a/sdk/storage/azblob/sas/account_test.go b/sdk/storage/azblob/sas/account_test.go index c58e333b25cf..c995fe393b23 100644 --- a/sdk/storage/azblob/sas/account_test.go +++ b/sdk/storage/azblob/sas/account_test.go @@ -131,6 +131,38 @@ func TestAccountResourceTypes_String(t *testing.T) { } } +func TestAccountResourceTypes_Parse(t *testing.T) { + testdata := []struct { + input string + expected AccountResourceTypes + }{ + {expected: AccountResourceTypes{Service: true}, input: "s"}, + {expected: AccountResourceTypes{Container: true}, input: "c"}, + {expected: AccountResourceTypes{Object: true}, input: "o"}, + {expected: AccountResourceTypes{ + Service: true, + Container: true, + Object: true, + }, input: "sco"}, + {expected: AccountResourceTypes{ + Service: true, + Container: true, + Object: true, + }, input: "osc"}, + } + for _, c := range testdata { + permissions, err := parseAccountResourceTypes(c.input) + require.Nil(t, err) + require.Equal(t, c.expected, permissions) + } +} + +func TestAccountResourceTypes_ParseNegative(t *testing.T) { + _, err := parseAccountResourceTypes("scoz") // Here 'z' is invalid + require.NotNil(t, err) + require.Contains(t, err.Error(), "122") +} + // TODO: Sign With Shared Key // Negative Case // Version not provided diff --git a/sdk/storage/azblob/sas/service.go b/sdk/storage/azblob/sas/service.go index 48feb64b6529..a7ab8f5c1593 100644 --- a/sdk/storage/azblob/sas/service.go +++ b/sdk/storage/azblob/sas/service.go @@ -8,6 +8,7 @@ package sas import ( "bytes" + "errors" "fmt" "strings" "time" @@ -24,7 +25,7 @@ type BlobSignatureValues struct { StartTime time.Time `param:"st"` // Not specified if IsZero ExpiryTime time.Time `param:"se"` // Not specified if IsZero SnapshotTime time.Time - Permissions string `param:"sp"` // Create by initializing a ContainerSASPermissions or BlobSASPermissions and then call String() + Permissions string `param:"sp"` // Create by initializing ContainerPermissions or BlobPermissions and then call String() IPRange IPRange `param:"sip"` Identifier string `param:"si"` ContainerName string @@ -50,8 +51,8 @@ func getDirectoryDepth(path string) string { // SignWithSharedKey uses an account's SharedKeyCredential to sign this signature values to produce the proper SAS query parameters. func (v BlobSignatureValues) SignWithSharedKey(sharedKeyCredential *SharedKeyCredential) (QueryParameters, error) { - if sharedKeyCredential == nil { - return QueryParameters{}, fmt.Errorf("cannot sign SAS query without Shared Key Credential") + if v.ExpiryTime.IsZero() || v.Permissions == "" { + return QueryParameters{}, errors.New("service SAS is missing at least one of these: ExpiryTime or Permissions") } //Make sure the permission characters are in the correct order @@ -141,6 +142,10 @@ func (v BlobSignatureValues) SignWithUserDelegation(userDelegationCredential *Us return QueryParameters{}, fmt.Errorf("cannot sign SAS query without User Delegation Key") } + if v.ExpiryTime.IsZero() || v.Permissions == "" { + return QueryParameters{}, errors.New("user delegation SAS is missing at least one of these: ExpiryTime or Permissions") + } + // Parse the resource resource := "c" if !v.SnapshotTime.IsZero() { @@ -261,7 +266,7 @@ func getCanonicalName(account string, containerName string, blobName string, dir } // ContainerPermissions type simplifies creating the permissions string for an Azure Storage container SAS. -// Initialize an instance of this type and then call its String method to set BlobSASSignatureValues' Permissions field. +// Initialize an instance of this type and then call its String method to set BlobSignatureValues' Permissions field. // All permissions descriptions can be found here: https://docs.microsoft.com/en-us/rest/api/storageservices/create-service-sas#permissions-for-a-directory-container-or-blob type ContainerPermissions struct { Read, Add, Create, Write, Delete, DeletePreviousVersion, List, FilterByTags, Move, SetImmutabilityPolicy bool @@ -269,7 +274,7 @@ type ContainerPermissions struct { } // String produces the SAS permissions string for an Azure Storage container. -// Call this method to set BlobSASSignatureValues' Permissions field. +// Call this method to set BlobSignatureValues' Permissions field. func (p *ContainerPermissions) String() string { var b bytes.Buffer if p.Read { @@ -353,7 +358,7 @@ func parseContainerPermissions(s string) (ContainerPermissions, error) { } // BlobPermissions type simplifies creating the permissions string for an Azure Storage blob SAS. -// Initialize an instance of this type and then call its String method to set BlobSASSignatureValues' Permissions field. +// Initialize an instance of this type and then call its String method to set BlobSignatureValues' Permissions field. type BlobPermissions struct { Read, Add, Create, Write, Delete, DeletePreviousVersion, PermanentDelete, List, Tag, Move, Execute, Ownership, Permissions, SetImmutabilityPolicy bool } diff --git a/sdk/storage/azqueue/sas/account.go b/sdk/storage/azqueue/sas/account.go index bcd0487aabc1..8c4c8074db24 100644 --- a/sdk/storage/azqueue/sas/account.go +++ b/sdk/storage/azqueue/sas/account.go @@ -26,9 +26,9 @@ type AccountSignatureValues struct { Protocol Protocol `param:"spr"` // See the SASProtocol* constants StartTime time.Time `param:"st"` // Not specified if IsZero ExpiryTime time.Time `param:"se"` // Not specified if IsZero - Permissions string `param:"sp"` // Create by initializing a AccountSASPermissions and then call String() + Permissions string `param:"sp"` // Create by initializing a AccountPermissions and then call String() IPRange IPRange `param:"sip"` - ResourceTypes string `param:"srt"` // Create by initializing AccountSASResourceTypes and then call String() + ResourceTypes string `param:"srt"` // Create by initializing AccountResourceTypes and then call String() } // SignWithSharedKey uses an account's shared key credential to sign this signature values to produce @@ -47,6 +47,12 @@ func (v AccountSignatureValues) SignWithSharedKey(sharedKeyCredential *SharedKey } v.Permissions = perms.String() + resources, err := parseAccountResourceTypes(v.ResourceTypes) + if err != nil { + return QueryParameters{}, err + } + v.ResourceTypes = resources.String() + startTime, expiryTime := formatTimesForSigning(v.StartTime, v.ExpiryTime) stringToSign := strings.Join([]string{ @@ -87,13 +93,13 @@ func (v AccountSignatureValues) SignWithSharedKey(sharedKeyCredential *SharedKey } // AccountPermissions type simplifies creating the permissions string for an Azure Storage Account SAS. -// Initialize an instance of this type and then call its String method to set AccountSASSignatureValues' Permissions field. +// Initialize an instance of this type and then call its String method to set AccountSignatureValues' Permissions field. type AccountPermissions struct { Read, Write, Delete, DeletePreviousVersion, PermanentDelete, List, Add, Create, Update, Process, Tag, FilterByTags, SetImmutabilityPolicy bool } // String produces the SAS permissions string for an Azure Storage account. -// Call this method to set AccountSASSignatureValues's Permissions field. +// Call this method to set AccountSignatureValues' Permissions field. func (p *AccountPermissions) String() string { var buffer bytes.Buffer if p.Read { @@ -138,7 +144,7 @@ func (p *AccountPermissions) String() string { return buffer.String() } -// Parse initializes the AccountSASPermissions' fields from a string. +// Parse initializes the AccountPermissions' fields from a string. func parseAccountPermissions(s string) (AccountPermissions, error) { p := AccountPermissions{} // Clear out the flags for _, r := range s { @@ -177,13 +183,13 @@ func parseAccountPermissions(s string) (AccountPermissions, error) { } // AccountResourceTypes type simplifies creating the resource types string for an Azure Storage Account SAS. -// Initialize an instance of this type and then call its String method to set AccountSASSignatureValues' ResourceTypes field. +// Initialize an instance of this type and then call its String method to set AccountSignatureValues' ResourceTypes field. type AccountResourceTypes struct { Service, Container, Object bool } // String produces the SAS resource types string for an Azure Storage account. -// Call this method to set AccountSASSignatureValues' ResourceTypes field. +// Call this method to set AccountSignatureValues' ResourceTypes field. func (rt *AccountResourceTypes) String() string { var buffer bytes.Buffer if rt.Service { @@ -197,3 +203,21 @@ func (rt *AccountResourceTypes) String() string { } return buffer.String() } + +// parseAccountResourceTypes initializes the AccountResourceTypes' fields from a string. +func parseAccountResourceTypes(s string) (AccountResourceTypes, error) { + rt := AccountResourceTypes{} + for _, r := range s { + switch r { + case 's': + rt.Service = true + case 'c': + rt.Container = true + case 'o': + rt.Object = true + default: + return AccountResourceTypes{}, fmt.Errorf("invalid resource type character: '%v'", r) + } + } + return rt, nil +} diff --git a/sdk/storage/azqueue/sas/account_test.go b/sdk/storage/azqueue/sas/account_test.go index 64cf84444f3e..519757079182 100644 --- a/sdk/storage/azqueue/sas/account_test.go +++ b/sdk/storage/azqueue/sas/account_test.go @@ -131,6 +131,38 @@ func TestAccountResourceTypes_String(t *testing.T) { } } +func TestAccountResourceTypes_Parse(t *testing.T) { + testdata := []struct { + input string + expected AccountResourceTypes + }{ + {expected: AccountResourceTypes{Service: true}, input: "s"}, + {expected: AccountResourceTypes{Container: true}, input: "c"}, + {expected: AccountResourceTypes{Object: true}, input: "o"}, + {expected: AccountResourceTypes{ + Service: true, + Container: true, + Object: true, + }, input: "sco"}, + {expected: AccountResourceTypes{ + Service: true, + Container: true, + Object: true, + }, input: "osc"}, + } + for _, c := range testdata { + permissions, err := parseAccountResourceTypes(c.input) + require.Nil(t, err) + require.Equal(t, c.expected, permissions) + } +} + +func TestAccountResourceTypes_ParseNegative(t *testing.T) { + _, err := parseAccountResourceTypes("scoz") // Here 'z' is invalid + require.NotNil(t, err) + require.Contains(t, err.Error(), "122") +} + // TODO: Sign With Shared Key // Negative Case // Version not provided diff --git a/sdk/storage/azqueue/sas/service.go b/sdk/storage/azqueue/sas/service.go index 79e7a7ab4b07..2a7477d95014 100644 --- a/sdk/storage/azqueue/sas/service.go +++ b/sdk/storage/azqueue/sas/service.go @@ -8,6 +8,7 @@ package sas import ( "bytes" + "errors" "fmt" "strings" "time" @@ -31,8 +32,8 @@ type QueueSignatureValues struct { // SignWithSharedKey uses an account's SharedKeyCredential to sign this signature values to produce the proper SAS query parameters. func (v QueueSignatureValues) SignWithSharedKey(sharedKeyCredential *SharedKeyCredential) (QueryParameters, error) { - if sharedKeyCredential == nil { - return QueryParameters{}, fmt.Errorf("cannot sign SAS query without Shared Key Credential") + if v.ExpiryTime.IsZero() || v.Permissions == "" { + return QueryParameters{}, errors.New("service SAS is missing at least one of these: ExpiryTime or Permissions") } //Make sure the permission characters are in the correct order @@ -87,13 +88,13 @@ func getCanonicalName(account string, queueName string) string { } // QueuePermissions type simplifies creating the permissions string for an Azure Storage Queue SAS. -// Initialize an instance of this type and then call its String method to set QueueSASSignatureValues' Permissions field. +// Initialize an instance of this type and then call its String method to set QueueSignatureValues' Permissions field. type QueuePermissions struct { Read, Add, Update, Process bool } // String produces the SAS permissions string for an Azure Storage Queue. -// Call this method to set QueueSASSignatureValues' Permissions field. +// Call this method to set QueueSignatureValues' Permissions field. func (p *QueuePermissions) String() string { var b bytes.Buffer if p.Read { @@ -111,7 +112,7 @@ func (p *QueuePermissions) String() string { return b.String() } -// Parse initializes the QueueSASPermissions' fields from a string. +// Parse initializes the QueuePermissions' fields from a string. func parseQueuePermissions(s string) (QueuePermissions, error) { p := QueuePermissions{} for _, r := range s { From 9045a53b1fb660ece6f9a9b61c9ac671151298af Mon Sep 17 00:00:00 2001 From: Peng Jiahui <46921893+Alancere@users.noreply.github.com> Date: Tue, 14 Mar 2023 17:35:37 +0800 Subject: [PATCH 094/107] genertor tool add --original-commit flag (#20403) * genertor tool add --original-commit flag * fix * fix --- .../generator/cmd/v2/common/generation.go | 21 +++++++++++-------- .../generator/cmd/v2/refresh/refreshCmd.go | 12 +++++++---- .../generator/cmd/v2/release/releaseCmd.go | 12 +++++++---- 3 files changed, 28 insertions(+), 17 deletions(-) diff --git a/eng/tools/generator/cmd/v2/common/generation.go b/eng/tools/generator/cmd/v2/common/generation.go index d8de768cbd2f..8e235beec2be 100644 --- a/eng/tools/generator/cmd/v2/common/generation.go +++ b/eng/tools/generator/cmd/v2/common/generation.go @@ -20,13 +20,14 @@ import ( ) type GenerateContext struct { - SDKPath string - SDKRepo *repo.SDKRepository - SpecPath string - SpecCommitHash string - SpecReadmeFile string - SpecReadmeGoFile string - SpecRepoURL string + SDKPath string + SDKRepo *repo.SDKRepository + SpecPath string + SpecCommitHash string + SpecReadmeFile string + SpecReadmeGoFile string + SpecRepoURL string + UpdateSpecVersion bool } type GenerateResult struct { @@ -154,8 +155,10 @@ func (ctx *GenerateContext) GenerateForSingleRPNamespace(generateParam *Generate } else { log.Printf("Change swagger config in `autorest.md` according to repo URL and commit ID...") autorestMdPath := filepath.Join(packagePath, "autorest.md") - if err := ChangeConfigWithCommitID(autorestMdPath, ctx.SpecRepoURL, ctx.SpecCommitHash, generateParam.SpecRPName); err != nil { - return nil, err + if ctx.UpdateSpecVersion { + if err := ChangeConfigWithCommitID(autorestMdPath, ctx.SpecRepoURL, ctx.SpecCommitHash, generateParam.SpecRPName); err != nil { + return nil, err + } } } diff --git a/eng/tools/generator/cmd/v2/refresh/refreshCmd.go b/eng/tools/generator/cmd/v2/refresh/refreshCmd.go index 5de51e0a3aab..481b7f90154e 100644 --- a/eng/tools/generator/cmd/v2/refresh/refreshCmd.go +++ b/eng/tools/generator/cmd/v2/refresh/refreshCmd.go @@ -55,6 +55,7 @@ type Flags struct { SkipGenerateExample bool GoVersion string RPs string + UpdateSpecVersion bool } func BindFlags(flagSet *pflag.FlagSet) { @@ -66,6 +67,7 @@ func BindFlags(flagSet *pflag.FlagSet) { flagSet.Bool("skip-generate-example", false, "Skip generate example for SDK in the same time") flagSet.String("go-version", "1.18", "Go version") flagSet.String("rps", "", "Specify RP list to refresh, seperated by ','") + flagSet.Bool("update-spec-version", true, "Whether to update the commit id, the default is true") } func ParseFlags(flagSet *pflag.FlagSet) Flags { @@ -78,6 +80,7 @@ func ParseFlags(flagSet *pflag.FlagSet) Flags { SkipGenerateExample: flags.GetBool(flagSet, "skip-generate-example"), GoVersion: flags.GetString(flagSet, "go-version"), RPs: flags.GetString(flagSet, "rps"), + UpdateSpecVersion: flags.GetBool(flagSet, "update-spec-version"), } } @@ -97,10 +100,11 @@ func (c *commandContext) execute(sdkRepoParam, specRepoParam string) error { } generateCtx := common.GenerateContext{ - SDKPath: sdkRepo.Root(), - SDKRepo: &sdkRepo, - SpecCommitHash: specCommitHash, - SpecRepoURL: c.flags.SwaggerRepo, + SDKPath: sdkRepo.Root(), + SDKRepo: &sdkRepo, + SpecCommitHash: specCommitHash, + SpecRepoURL: c.flags.SwaggerRepo, + UpdateSpecVersion: c.flags.UpdateSpecVersion, } if !c.flags.SkipCreateBranch { diff --git a/eng/tools/generator/cmd/v2/release/releaseCmd.go b/eng/tools/generator/cmd/v2/release/releaseCmd.go index 14c38ab9e092..d61daddbfae7 100644 --- a/eng/tools/generator/cmd/v2/release/releaseCmd.go +++ b/eng/tools/generator/cmd/v2/release/releaseCmd.go @@ -74,6 +74,7 @@ type Flags struct { PackageConfig string GoVersion string Token string + UpdateSpecVersion bool } func BindFlags(flagSet *pflag.FlagSet) { @@ -88,6 +89,7 @@ func BindFlags(flagSet *pflag.FlagSet) { flagSet.String("package-config", "", "Additional config for package") flagSet.String("go-version", "1.18", "Go version") flagSet.StringP("token", "t", "", "Specify the personal access token of Github") + flagSet.Bool("update-spec-version", true, "Whether to update the commit id, the default is true") } func ParseFlags(flagSet *pflag.FlagSet) Flags { @@ -103,6 +105,7 @@ func ParseFlags(flagSet *pflag.FlagSet) Flags { PackageConfig: flags.GetString(flagSet, "package-config"), GoVersion: flags.GetString(flagSet, "go-version"), Token: flags.GetString(flagSet, "token"), + UpdateSpecVersion: flags.GetBool(flagSet, "update-spec-version"), } } @@ -133,10 +136,11 @@ func (c *commandContext) execute(sdkRepoParam, specRepoParam string) error { func (c *commandContext) generate(sdkRepo repo.SDKRepository, specCommitHash string) error { log.Printf("Release generation for rp: %s, namespace: %s", c.rpName, c.namespaceName) generateCtx := common.GenerateContext{ - SDKPath: sdkRepo.Root(), - SDKRepo: &sdkRepo, - SpecCommitHash: specCommitHash, - SpecRepoURL: c.flags.SwaggerRepo, + SDKPath: sdkRepo.Root(), + SDKRepo: &sdkRepo, + SpecCommitHash: specCommitHash, + SpecRepoURL: c.flags.SwaggerRepo, + UpdateSpecVersion: c.flags.UpdateSpecVersion, } if c.flags.SpecRPName == "" { From c96d93dc24ded21d43d2d93f3d0a9438d47d24cc Mon Sep 17 00:00:00 2001 From: Sourav Gupta <98318303+souravgupta-msft@users.noreply.github.com> Date: Tue, 14 Mar 2023 21:39:57 +0530 Subject: [PATCH 095/107] Update CODEOWNERS (#20378) --- .github/CODEOWNERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 345bbd5fa66e..f42efacb2c6f 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -46,7 +46,7 @@ /sdk/resourcemanager/ @ArcturusZhang @lirenhe @tadelesh # PRLabel: %Storage -/sdk/storage/ @siminsavani-msft @souravgupta-msft @tasherif-msft @jhendrixMSFT @gapra-msft +/sdk/storage/ @siminsavani-msft @souravgupta-msft @tasherif-msft @jhendrixMSFT @gapra-msft @vibhansa-msft ################ # Automation From 22e6ca189fdb31ec6bd36bb37d46c7c70c433eb7 Mon Sep 17 00:00:00 2001 From: Dan Lepow Date: Tue, 14 Mar 2023 11:03:56 -0700 Subject: [PATCH 096/107] [Azservicebus][Readme] Edit pass (#20037) * [Readme] Edit pass * typos * added link to AzureSamples repo * capitalize Receiver --- sdk/messaging/azservicebus/README.md | 100 +++++++++++++-------------- 1 file changed, 49 insertions(+), 51 deletions(-) diff --git a/sdk/messaging/azservicebus/README.md b/sdk/messaging/azservicebus/README.md index c7cd1c266c59..9340115a5503 100644 --- a/sdk/messaging/azservicebus/README.md +++ b/sdk/messaging/azservicebus/README.md @@ -1,21 +1,25 @@ -# Azure Service Bus Client Module for Go +# Azure Service Bus client module for Go -[Azure Service Bus](https://azure.microsoft.com/services/service-bus/) is a highly-reliable cloud messaging service from Microsoft. +[Azure Service Bus](https://azure.microsoft.com/services/service-bus/) is a highly reliable cloud messaging service for providing real-time and fault-tolerant communication between distributed senders and receivers. -Use the client library `github.com/Azure/azure-sdk-for-go/sdk/messaging/azservicebus` in your application to: +Use the Service Bus client module `github.com/Azure/azure-sdk-for-go/sdk/messaging/azservicebus` in your application to: -- Send messages to an Azure Service Bus Queue or Topic -- Receive messages from an Azure Service Bus Queue or Subscription +- Send messages to a Service Bus queue or topic +- Receive messages from a Service Bus queue or subscription Key links: -- [Source code][source] -- [API Reference Documentation][godoc] -- [Product documentation](https://azure.microsoft.com/services/service-bus/) -- [Samples][godoc_examples] -- [Migration guide for `azure-service-bus-go` users](https://github.com/Azure/azure-sdk-for-go/blob/main/sdk/messaging/azservicebus/migrationguide.md) +[Source code][source] | [API reference documentation][godoc] | [REST API documentation](https://learn.microsoft.com/rest/api/servicebus/) | [Product documentation](https://learn.microsoft.com/azure/service-bus/) | [Samples](https://github.com/Azure-Samples/azure-sdk-for-go-samples) + +If you used the pre-release `azure-service-bus-go` module, see the [Migration guide](https://github.com/Azure/azure-sdk-for-go/blob/main/sdk/messaging/azservicebus/migrationguide.md). ## Getting started +### Prerequisites +- Go, version 1.18 or higher - [Install Go](https://go.dev/doc/install) +- Azure subscription - [Create a free account](https://azure.microsoft.com/free/) +- Service Bus namespace - [Create a namespace](https://learn.microsoft.com/azure/service-bus-messaging/service-bus-create-namespace-portal) +- A Service Bus queue, topic, or subscription - See the Azure Service Bus documentation to create an entity in your Service Bus namespace. For example, create a Service Bus queue using the [Azure portal](https://learn.microsoft.com/azure/service-bus-messaging/service-bus-quickstart-portal), the [Azure CLI](https://learn.microsoft.com/azure/service-bus-messaging/service-bus-quickstart-cli), or other tools. + ### Install the package Install the Azure Service Bus client module for Go with `go get`: @@ -24,17 +28,11 @@ Install the Azure Service Bus client module for Go with `go get`: go get github.com/Azure/azure-sdk-for-go/sdk/messaging/azservicebus ``` -### Prerequisites -- Go, version 1.18 or higher -- An [Azure subscription](https://azure.microsoft.com/free/) -- A [Service Bus Namespace](https://docs.microsoft.com/azure/service-bus-messaging/). -- A Service Bus Queue, Topic or Subscription. You can create an entity in your Service Bus Namespace using the [Azure Portal](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quickstart-portal), or the [Azure CLI](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quickstart-cli). - ### Authenticate the client -The Service Bus [Client][godoc_client] can be created using a Service Bus connection string or a credential from the [Azure Identity package][azure_identity_pkg], like [DefaultAzureCredential][default_azure_credential]. +The Service Bus [Client][godoc_client] can be created using a credential from the [Azure Identity package][azure_identity_pkg], such as [DefaultAzureCredential][default_azure_credential], or using a Service Bus connection string. -#### Using a Service Principal +#### Using a service principal ```go import ( @@ -43,7 +41,7 @@ import ( ) func main() { - // For more information about the DefaultAzureCredential: + // For more information about the DefaultAzureCredential, see: // https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azidentity#NewDefaultAzureCredential credential, err := azidentity.NewDefaultAzureCredential(nil) @@ -52,8 +50,8 @@ func main() { } // The service principal specified by the credential needs to be added to the appropriate Service Bus roles for your - // resource. More information about Service Bus roles can be found here: - // https://docs.microsoft.com/azure/service-bus-messaging/service-bus-managed-service-identity#azure-built-in-roles-for-azure-service-bus + // resource. For more information about Service Bus roles, see: + // https://learn.microsoft.com/azure/service-bus-messaging/service-bus-managed-service-identity#azure-built-in-roles-for-azure-service-bus client, err := azservicebus.NewClient("", credential, nil) if err != nil { @@ -70,8 +68,8 @@ import ( ) func main() { - // See here for instructions on how to get a Service Bus connection string: - // https://docs.microsoft.com/azure/service-bus-messaging/service-bus-quickstart-portal#get-the-connection-string + // For instructions on how to get a Service Bus connection string, see: + // https://learn.microsoft.com/azure/service-bus-messaging/service-bus-quickstart-portal#get-the-connection-string client, err := azservicebus.NewClientFromConnectionString(connectionString, nil) if err != nil { @@ -82,24 +80,24 @@ func main() { ## Key concepts -Once you've created a [Client][godoc_client], you can interact with resources within a Service Bus Namespace: +Once you've created a [Client][godoc_client], you can interact with resources within a Service Bus namespace: -- [Queues][queue_concept]: Allows for sending and receiving messages. Often used for point-to-point communication. -- [Topics][topic_concept]: A topic is similar to a queue but splits the receiving and sending into separate entities. Messages are sent to a topic and are broadcast to Subscriptions, where they can be consumed independently, and in parallel by Receivers. -- [Subscriptions][subscription_concept]: The mechanism to consume from a Topic. Each subscription is independent, and receives a copy of each message sent to the topic. Rules and Filters can be used to tailor which messages are received by a specific subscription. +- [Queue][queue_concept]: Allows for sending and receiving messages. Often used for point-to-point communication. +- [Topic][topic_concept]: Similar to a queue but splits the receiving and sending into separate entities. Messages are sent to a topic and are broadcast to subscriptions, where they can be consumed independently, and in parallel by receivers. +- [Subscription][subscription_concept]: Consumes messages from a topic. Each subscription is independent, and receives a copy of each message sent to the topic. Rules and filters can be used to tailor which messages are received by a specific subscription. For more information about these resources, see [What is Azure Service Bus?][service_bus_overview]. Using a `Client` you can do the following: -- Send messages, to a queue or topic, using a [Sender][godoc_sender] created using [Client.NewSender()][godoc_newsender]. You can see an example here: [(link)](#send-messages) -- Receive messages, from either a queue or a subscription, using a [Receiver][godoc_receiver] created using [client.NewReceiverForQueue()][godoc_newreceiver_queue] or [client.NewReceiverForSubscription()][godoc_newreceiver_subscription]. You can see an example here: [(link)](#receive-messages) +- Send messages to a queue or topic, using a [Sender][godoc_sender] created using [Client.NewSender()][godoc_newsender]. See the [Send messages](#send-messages) example. +- Receive messages from either a queue or a subscription, using a [Receiver][godoc_receiver] created using [client.NewReceiverForQueue()][godoc_newreceiver_queue] or [client.NewReceiverForSubscription()][godoc_newreceiver_subscription]. See the [Receive messages](#receive-messages) example -Please note that the Queues, Topics and Subscriptions should be created prior to using this library. +The queues, topics, and subscriptions should be created prior to using this library. ## Examples -The following sections provide examples that cover common tasks using Azure Service Bus: +The following examples cover common tasks using Azure Service Bus: - [Send messages](#send-messages) - [Receive messages](#receive-messages) @@ -109,9 +107,9 @@ The following sections provide examples that cover common tasks using Azure Serv Once you've created a [Client][godoc_client] you can create a [Sender][godoc_sender], which will allow you to send messages. -> NOTE: Creating a `azservicebus.Client` is covered in the ["Authenticate the client"](#authenticate-the-client) section of the readme, using a [Service Principal](#using-a-service-principal) or a [Service Bus connection string](#using-a-connection-string). +> NOTE: To create a `azservicebus.Client`, see the [Authenticate the client](#authenticate-the-client) section, using a [service principal](#using-a-service-principal) or a [Service Bus connection string](#using-a-connection-string). -Sending a single message: +#### Send a single message: ```go err := sender.SendMessage(context.TODO(), &azservicebus.Message{ @@ -119,13 +117,13 @@ err := sender.SendMessage(context.TODO(), &azservicebus.Message{ }, nil) ``` -#### Sending multiple messages using a batch +#### Send multiple messages using a batch -You can also send messages in batches, which can be more efficient than sending them individually +You can also send messages in batches, which can be more efficient than sending them individually. ```go // Create a message batch. It will automatically be sized for the Service Bus -// Namespace's maximum message size. +// namespace's maximum message size. currentMessageBatch, err := sender.NewMessageBatch(context.TODO(), nil) if err != nil { @@ -188,7 +186,7 @@ if currentMessageBatch.NumMessages() > 0 { Once you've created a [Client][godoc_client] you can create a [Receiver][godoc_receiver], which will allow you to receive messages. -> NOTE: Creating a `azservicebus.Client` is covered in the ["Authenticate the client"](#authenticate-the-client) section of the readme, using a [Service Principal](#using-a-service-principal) or a [Service Bus connection string](#using-a-connection-string). +> NOTE: To create a `azservicebus.Client`, see the [Authenticate the client](#authenticate-the-client) section, using a [service principal](#using-a-service-principal) or a [Service Bus connection string](#using-a-connection-string). ```go receiver, err := client.NewReceiverForQueue( @@ -217,13 +215,13 @@ if err != nil { } for _, message := range messages { - // The message body is a []byte. For this example we're just assuming that the body - // was a string, converted to bytes but any []byte payload is valid. + // The message body is a []byte. For this example we're assuming that the body + // is a string, converted to bytes, but any []byte payload is valid. var body []byte = message.Body fmt.Printf("Message received with body: %s\n", string(body)) - // For more information about settling messages: - // https://docs.microsoft.com/azure/service-bus-messaging/message-transfers-locks-settlement#settling-receive-operations + // For more information about settling messages, see: + // https://learn.microsoft.com/azure/service-bus-messaging/message-transfers-locks-settlement#settling-receive-operations err = receiver.CompleteMessage(context.TODO(), message, nil) if err != nil { @@ -231,10 +229,10 @@ for _, message := range messages { if errors.As(err, &sbErr) && sbErr.Code == azservicebus.CodeLockLost { // The message lock has expired. This isn't fatal for the client, but it does mean - // that this message can be received by another Receiver (or potentially this one!). + // that this message can be received by another Receiver (or potentially this one). fmt.Printf("Message lock expired\n") - // You can extend the message lock by calling receiver.RenewMessageLock(msg) before the + // You can extend the message lock by calling Receiver.RenewMessageLock(msg) before the // message lock has expired. continue } @@ -251,9 +249,9 @@ for _, message := range messages { The dead letter queue is a **sub-queue**. Each queue or subscription has its own dead letter queue. Dead letter queues store messages that have been explicitly dead lettered using the [Receiver.DeadLetterMessage][godoc_receiver_deadlettermessage] function. -Opening a dead letter queue is just a configuration option when creating a [Receiver][godoc_receiver]. +Opening a dead letter queue is a configuration option when creating a [Receiver][godoc_receiver]. -> NOTE: Creating a `azservicebus.Client` is covered in the ["Authenticate the client"](#authenticate-the-client) section of the readme, using a [Service Principal](#using-a-service-principal) or a [Service Bus connection string](#using-a-connection-string). +> NOTE: To create a `azservicebus.Client`, see the [Authenticate the client](#authenticate-the-client) section, using a [service principal](#using-a-service-principal) or a [Service Bus connection string](#using-a-connection-string). ```go deadLetterReceiver, err := client.NewReceiverForQueue("", @@ -267,7 +265,7 @@ deadLetterReceiver, err := client.NewReceiverForQueue("", // }) ``` -To see some example code for receiving messages using the Receiver see the ["Receive messages"](#receive-messages) sample. +To see some example code for receiving messages using the `Receiver`, see the [Receive messages](#receive-messages) example. ## Troubleshooting @@ -290,13 +288,13 @@ azlog.SetListener(func(event azlog.Event, s string) { // pick the set of events to log azlog.SetEvents( - // EventConn is used whenever we create a connection or any links (ie: receivers, senders). + // EventConn is used whenever we create a connection or any links (that is, receivers or senders). azservicebus.EventConn, // EventAuth is used when we're doing authentication/claims negotiation. azservicebus.EventAuth, - // EventReceiver represents operations that happen on Receivers. + // EventReceiver represents operations that happen on receivers. azservicebus.EventReceiver, - // EventSender represents operations that happen on Senders. + // EventSender represents operations that happen on senders. azservicebus.EventSender, // EventAdmin is used for operations in the azservicebus/admin.Client azservicebus.EventAdmin, @@ -306,7 +304,7 @@ azlog.SetEvents( ## Next steps -Please take a look at the [samples][godoc_examples] for detailed examples on how to use this library to send and receive messages to/from [Service Bus Queues, Topics and Subscriptions](https://docs.microsoft.com/azure/service-bus-messaging/service-bus-messaging-overview). +See the [examples][godoc_examples] for using this library to send and receive messages to or from [Service Bus queues, topics, and subscriptions](https://learn.microsoft.com/azure/service-bus-messaging/service-bus-messaging-overview). ## Contributing @@ -323,7 +321,7 @@ If you'd like to contribute to this library, please read the [contributing guide [service_bus_overview]: https://docs.microsoft.com/azure/service-bus-messaging/service-bus-messaging-overview [msdoc_settling]: https://docs.microsoft.com/azure/service-bus-messaging/message-transfers-locks-settlement#settling-receive-operations [source]: https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/messaging/azservicebus -[godoc]: https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/messaging/azservicebus +[godoc]: https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/messaging/azservicebus#section-documentation [godoc_examples]: https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/messaging/azservicebus#pkg-examples [godoc_client]: https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/messaging/azservicebus/#Client [godoc_sender]: https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/messaging/azservicebus/#Sender From e2feee00f05808bdfe87674dfce8f352cae27ebe Mon Sep 17 00:00:00 2001 From: Richard Park <51494936+richardpark-msft@users.noreply.github.com> Date: Tue, 14 Mar 2023 11:27:54 -0700 Subject: [PATCH 097/107] Updating to use the latest nhooyr.io/websocket package in both servicebus and eventhubs. (#20335) Updating to use the latest nhooyr.io/websocket package in both servicebus and eventhubs. * Expanding the websockets descriptions and tests to go end-to-end. Prior tests weren't closing the connection and were hiding an error that was coming back from the underlying package. * The examples also document how to use an HTTP proxy with websockets, which is a common combination. * One of the tests also contains the necessary incantations to make it the entire websocket conversation wireshark-able. Partially fixes #16924 --- .../azeventhubs/consumer_client_test.go | 75 +++++++++++++++++++ .../example_websockets_and_proxies_test.go | 49 ++++++++++++ sdk/messaging/azeventhubs/go.mod | 2 + sdk/messaging/azeventhubs/go.sum | 52 +++++++++++++ .../azeventhubs/internal/test/test_helpers.go | 6 +- sdk/messaging/azservicebus/client_test.go | 36 ++++----- .../azservicebus/example_client_test.go | 24 ------ .../example_websockets_and_proxies_test.go | 49 ++++++++++++ sdk/messaging/azservicebus/go.mod | 4 +- sdk/messaging/azservicebus/go.sum | 11 +-- 10 files changed, 254 insertions(+), 54 deletions(-) create mode 100644 sdk/messaging/azeventhubs/example_websockets_and_proxies_test.go create mode 100644 sdk/messaging/azservicebus/example_websockets_and_proxies_test.go diff --git a/sdk/messaging/azeventhubs/consumer_client_test.go b/sdk/messaging/azeventhubs/consumer_client_test.go index 60646eab7304..5d70759c4b0a 100644 --- a/sdk/messaging/azeventhubs/consumer_client_test.go +++ b/sdk/messaging/azeventhubs/consumer_client_test.go @@ -5,6 +5,7 @@ package azeventhubs_test import ( "context" "fmt" + "net" "strings" "sync" "testing" @@ -17,8 +18,82 @@ import ( "github.com/Azure/azure-sdk-for-go/sdk/messaging/azeventhubs/internal/test" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/eventhub/armeventhub" "github.com/stretchr/testify/require" + "nhooyr.io/websocket" ) +func TestConsumerClient_UsingWebSockets(t *testing.T) { + // NOTE: This error is coming from the `nhooyr.io/websocket` package. There's an + // open discussion here: + // https://github.com/nhooyr/websocket/discussions/380 + // + // The frame it's waiting for (at this point) is the other half of the websocket CLOSE handshake. + // I wireshark'd this and confirmed that the frame does arrive, it's just not read by the local + // package. In this context, since the connection has already shut down, this is harmless. + var expectedWSErr = "failed to close WebSocket: failed to read frame header: EOF" + + newWebSocketConnFn := func(ctx context.Context, args azeventhubs.WebSocketConnParams) (net.Conn, error) { + opts := &websocket.DialOptions{ + Subprotocols: []string{"amqp"}, + } + wssConn, _, err := websocket.Dial(ctx, args.Host, opts) + + if err != nil { + return nil, err + } + + return websocket.NetConn(ctx, wssConn, websocket.MessageBinary), nil + } + + testParams := test.GetConnectionParamsForTest(t) + + producerClient, err := azeventhubs.NewProducerClientFromConnectionString(testParams.ConnectionString, testParams.EventHubName, &azeventhubs.ProducerClientOptions{ + NewWebSocketConn: newWebSocketConnFn, + }) + require.NoError(t, err) + + defer func() { + err := producerClient.Close(context.Background()) + require.EqualError(t, err, expectedWSErr) + }() + + partProps, err := producerClient.GetPartitionProperties(context.Background(), "0", nil) + require.NoError(t, err) + + batch, err := producerClient.NewEventDataBatch(context.Background(), &azeventhubs.EventDataBatchOptions{ + PartitionID: to.Ptr("0"), + }) + require.NoError(t, err) + + err = batch.AddEventData(&azeventhubs.EventData{ + Body: []byte("hello world"), + }, nil) + require.NoError(t, err) + + err = producerClient.SendEventDataBatch(context.Background(), batch, nil) + require.NoError(t, err) + + consumerClient, err := azeventhubs.NewConsumerClientFromConnectionString(testParams.ConnectionString, testParams.EventHubName, azeventhubs.DefaultConsumerGroup, &azeventhubs.ConsumerClientOptions{ + NewWebSocketConn: newWebSocketConnFn, + }) + require.NoError(t, err) + + defer func() { + err := consumerClient.Close(context.Background()) + require.EqualError(t, err, expectedWSErr) + }() + + partClient, err := consumerClient.NewPartitionClient("0", &azeventhubs.PartitionClientOptions{ + StartPosition: getStartPosition(partProps), + }) + require.NoError(t, err) + + defer test.RequireClose(t, partClient) + + events, err := partClient.ReceiveEvents(context.Background(), 1, nil) + require.NoError(t, err) + require.Equal(t, []string{"hello world"}, getSortedBodies(events)) +} + func TestConsumerClient_DefaultAzureCredential(t *testing.T) { testParams := test.GetConnectionParamsForTest(t) diff --git a/sdk/messaging/azeventhubs/example_websockets_and_proxies_test.go b/sdk/messaging/azeventhubs/example_websockets_and_proxies_test.go new file mode 100644 index 000000000000..06869312253b --- /dev/null +++ b/sdk/messaging/azeventhubs/example_websockets_and_proxies_test.go @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package azeventhubs_test + +import ( + "context" + "net" + + "github.com/Azure/azure-sdk-for-go/sdk/messaging/azeventhubs" + "nhooyr.io/websocket" +) + +func ExampleNewClient_usingWebsocketsAndProxies() { + // You can use an HTTP proxy, with websockets, by setting the appropriate HTTP(s)_PROXY + // variable in your environment, as described in the https://pkg.go.dev/net/http#ProxyFromEnvironment + // function. + // + // A proxy is NOT required to use websockets. + newWebSocketConnFn := func(ctx context.Context, args azeventhubs.WebSocketConnParams) (net.Conn, error) { + opts := &websocket.DialOptions{Subprotocols: []string{"amqp"}} + wssConn, _, err := websocket.Dial(ctx, args.Host, opts) + + if err != nil { + return nil, err + } + + return websocket.NetConn(ctx, wssConn, websocket.MessageBinary), nil + } + + // NOTE: If you'd like to authenticate via Azure Active Directory use the + // the `NewProducerClient` or `NewConsumerClient` functions. + consumerClient, err = azeventhubs.NewConsumerClientFromConnectionString("connection-string", "event-hub", azeventhubs.DefaultConsumerGroup, &azeventhubs.ConsumerClientOptions{ + NewWebSocketConn: newWebSocketConnFn, + }) + + if err != nil { + panic(err) + } + + // NOTE: For users of `nhooyr.io/websocket` there's an open discussion here: + // https://github.com/nhooyr/websocket/discussions/380 + // + // An error ("failed to read frame header: EOF") can be returned when the + // websocket connection is closed. This error will be returned from the + // `ConsumerClient.Close` or `ProducerClient.Close` functions and can be + // ignored, as the websocket "close handshake" has already completed. + defer consumerClient.Close(context.TODO()) +} diff --git a/sdk/messaging/azeventhubs/go.mod b/sdk/messaging/azeventhubs/go.mod index c620605aa66a..b83df482a6aa 100644 --- a/sdk/messaging/azeventhubs/go.mod +++ b/sdk/messaging/azeventhubs/go.mod @@ -11,6 +11,7 @@ require ( github.com/golang/mock v1.6.0 github.com/joho/godotenv v1.4.0 github.com/stretchr/testify v1.7.1 + nhooyr.io/websocket v1.8.7 ) require ( @@ -20,6 +21,7 @@ require ( github.com/gofrs/uuid v3.3.0+incompatible // indirect github.com/golang-jwt/jwt v3.2.1+incompatible // indirect github.com/google/uuid v1.1.1 // indirect + github.com/klauspost/compress v1.10.3 // indirect github.com/kylelemons/godebug v1.1.0 // indirect github.com/pkg/browser v0.0.0-20210115035449-ce105d075bb4 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect diff --git a/sdk/messaging/azeventhubs/go.sum b/sdk/messaging/azeventhubs/go.sum index aa41f406b1a4..1436a17a878a 100644 --- a/sdk/messaging/azeventhubs/go.sum +++ b/sdk/messaging/azeventhubs/go.sum @@ -17,6 +17,23 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/dnaeon/go-vcr v1.1.0 h1:ReYa/UBrRyQdant9B4fNHGoCNKw6qh6P0fsdGmZpR7c= github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= +github.com/gin-contrib/sse v0.1.0 h1:Y/yl/+YNO8GZSjAhjMsSuLt29uWRFHdHYUb5lYOV9qE= +github.com/gin-contrib/sse v0.1.0/go.mod h1:RHrZQHXnP2xjPF+u1gW/2HnVO7nvIa9PG3Gm+fLHvGI= +github.com/gin-gonic/gin v1.6.3 h1:ahKqKTFpO5KTPHxWZjEdPScmYaGtLo8Y4DMHoEsnp14= +github.com/gin-gonic/gin v1.6.3/go.mod h1:75u5sXoLsGZoRN5Sgbi1eraJ4GU3++wFwWzhwvtwp4M= +github.com/go-playground/assert/v2 v2.0.1/go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4= +github.com/go-playground/locales v0.13.0 h1:HyWk6mgj5qFqCT5fjGBuRArbVDfE4hi8+e8ceBS/t7Q= +github.com/go-playground/locales v0.13.0/go.mod h1:taPMhCMXrRLJO55olJkUXHZBHCxTMfnGwq/HNwmWNS8= +github.com/go-playground/universal-translator v0.17.0 h1:icxd5fm+REJzpZx7ZfpaD876Lmtgy7VtROAbHHXk8no= +github.com/go-playground/universal-translator v0.17.0/go.mod h1:UkSxE5sNxxRwHyU+Scu5vgOQjsIJAF8j9muTVoKLVtA= +github.com/go-playground/validator/v10 v10.2.0 h1:KgJ0snyC2R9VXYN2rneOtQcw5aHQB1Vv0sFl1UcHBOY= +github.com/go-playground/validator/v10 v10.2.0/go.mod h1:uOYAAleCW8F/7oMFd6aG0GOhaH6EGOAJShg8Id5JGkI= +github.com/gobwas/httphead v0.0.0-20180130184737-2c6c146eadee h1:s+21KNqlpePfkah2I+gwHF8xmJWRjooY+5248k6m4A0= +github.com/gobwas/httphead v0.0.0-20180130184737-2c6c146eadee/go.mod h1:L0fX3K22YWvt/FAX9NnzrNzcI4wNYi9Yku4O0LKYflo= +github.com/gobwas/pool v0.2.0 h1:QEmUOlnSjWtnpRGHF3SauEiOsy82Cup83Vf2LcMlnc8= +github.com/gobwas/pool v0.2.0/go.mod h1:q8bcK0KcYlCgd9e7WYLm9LpyS+YeLd8JVDW6WezmKEw= +github.com/gobwas/ws v1.0.2 h1:CoAavW/wd/kulfZmSIBt6p24n4j7tHgNVCjsfHVNUbo= +github.com/gobwas/ws v1.0.2/go.mod h1:szmBTxLgaFppYjEmNtny/v3w89xOydFnnZMcgRRu/EM= github.com/gofrs/uuid v3.3.0+incompatible h1:8K4tyRfvU1CYPgJsveYFQMhpFd/wXNM7iK6rR7UHz84= github.com/gofrs/uuid v3.3.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM= github.com/golang-jwt/jwt v3.2.1+incompatible h1:73Z+4BJcrTC+KczS6WvTPvRGOp1WmfEP4Q1lOd9Z/+c= @@ -25,11 +42,23 @@ github.com/golang-jwt/jwt/v4 v4.2.0 h1:besgBTC8w8HjP6NzQdxwKH9Z5oQMZ24ThTrHp3cZ8 github.com/golang/mock v1.6.0 h1:ErTB+efbowRARo13NNdxyJji2egdxLGQhRaY+DUumQc= github.com/golang/mock v1.6.0/go.mod h1:p6yTPP+5HYm5mzsMV8JkE6ZKdX+/wYM6Hr+LicevLPs= github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= +github.com/golang/protobuf v1.3.5 h1:F768QJ1E9tib+q5Sc8MkdJi1RxLTbRcTf8LJV56aRls= +github.com/golang/protobuf v1.3.5/go.mod h1:6O5/vntMXwX2lRkT1hjjk0nAC1IDOTvTlVgjlRvqsdk= +github.com/google/go-cmp v0.4.0 h1:xsAVV57WRhGj6kEIi8ReJzQlHHqcBYCElAvkovg3B/4= +github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= 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/gorilla/websocket v1.4.1 h1:q7AeDBpnBk8AogcD4DSag/Ukw/KV+YhzLj2bP5HvKCM= +github.com/gorilla/websocket v1.4.1/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= github.com/joho/godotenv v1.4.0 h1:3l4+N6zfMWnkbPEXKng2o2/MR5mSwTrBih4ZEkkz1lg= github.com/joho/godotenv v1.4.0/go.mod h1:f4LDr5Voq0i2e/R5DDNOoa2zzDfwtkZa6DnEwAbqwq4= +github.com/json-iterator/go v1.1.9 h1:9yzud/Ht36ygwatGx56VwCZtlI/2AD15T1X2sjSuGns= +github.com/json-iterator/go v1.1.9/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= +github.com/klauspost/compress v1.10.3 h1:OP96hzwJVBIHYU52pVTI6CczrxPvrGfgqF9N5eTO0Q8= +github.com/klauspost/compress v1.10.3/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= @@ -37,8 +66,16 @@ github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= 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/leodido/go-urn v1.2.0 h1:hpXL4XnriNwQ/ABnpepYM/1vCLWNDfUNts8dX3xTG6Y= +github.com/leodido/go-urn v1.2.0/go.mod h1:+8+nEpDfqqsY+g338gtMEUOtuK+4dEMhiQEgxpxOKII= +github.com/mattn/go-isatty v0.0.12 h1:wuysRhFDzyxgEmMf5xjvJ2M9dZoWAXNNr5LSBS7uHXY= +github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= github.com/microsoft/ApplicationInsights-Go v0.4.4 h1:G4+H9WNs6ygSCe6sUyxRc2U81TI5Es90b2t/MwX5KqY= github.com/microsoft/ApplicationInsights-Go v0.4.4/go.mod h1:fKRUseBqkw6bDiXTs3ESTiU/4YTIHsQS4W3fP2ieF4U= +github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421 h1:ZqeYNhU3OHLH3mGKHDcjJRFFRrJa6eAM5H+CtDdOsPc= +github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= +github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742 h1:Esafd1046DLDQ0W1YjYsBW+p8U2u7vzgW2SQVmlNazg= +github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= github.com/montanaflynn/stats v0.6.6/go.mod h1:etXPPgVO6n31NxCd9KQUMvCM+ve0ruNzt6R8Bnaayow= github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= github.com/onsi/ginkgo v1.8.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= @@ -48,9 +85,15 @@ github.com/pkg/browser v0.0.0-20210115035449-ce105d075bb4/go.mod h1:N6UoU20jOqgg 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.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= +github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= github.com/stretchr/testify v1.7.1 h1:5TQK59W5E3v0r2duFAb7P95B6hEeOyEnHRa8MjYSMTY= github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/tedsuo/ifrit v0.0.0-20180802180643-bea94bb476cc/go.mod h1:eyZnKCc955uh98WQvzOm0dgAeLnf2O0Rz0LPoC5ze+0= +github.com/ugorji/go v1.1.7 h1:/68gy2h+1mWMrwZFeD1kQialdSzAb432dtpeJ42ovdo= +github.com/ugorji/go v1.1.7/go.mod h1:kZn38zHttfInRq0xu/PH0az30d+z6vm202qpg1oXVMw= +github.com/ugorji/go/codec v1.1.7 h1:2SvQaVZ1ouYrrKKwoSk2pzd4A9evlKJb9oTL+OaLUSs= +github.com/ugorji/go/codec v1.1.7/go.mod h1:Ax+UKWsSmolVDwsd+7N3ZtXu+yMGCf907BLYF3GoBXY= github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= @@ -69,6 +112,7 @@ golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 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-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -77,14 +121,18 @@ golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e h1:fLOSk5Q00efkSvAm+4xcoXD+R golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= 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/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY= @@ -92,7 +140,11 @@ gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8 gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= 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= gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +nhooyr.io/websocket v1.8.7 h1:usjR2uOr/zjjkVMy0lW+PPohFok7PCow5sDjLgX4P4g= +nhooyr.io/websocket v1.8.7/go.mod h1:B70DZP8IakI65RVQ51MsWP/8jndNma26DVA/nFSCgW0= diff --git a/sdk/messaging/azeventhubs/internal/test/test_helpers.go b/sdk/messaging/azeventhubs/internal/test/test_helpers.go index b3061b0bd7ba..aebb49af26ba 100644 --- a/sdk/messaging/azeventhubs/internal/test/test_helpers.go +++ b/sdk/messaging/azeventhubs/internal/test/test_helpers.go @@ -151,10 +151,10 @@ func mustGetEnvironmentVars(t *testing.T, names []string) map[string]string { return envVars } -func RequireClose(t *testing.T, closeable interface { +func RequireClose[T interface { Close(ctx context.Context) error -}) { - require.NoError(t, closeable.Close(context.Background())) +}](t *testing.T, closeable T) { + require.NoErrorf(t, closeable.Close(context.Background()), "%T closes cleanly", closeable) } // RequireContextHasDefaultTimeout checks that the context has a deadline set, and that it's diff --git a/sdk/messaging/azservicebus/client_test.go b/sdk/messaging/azservicebus/client_test.go index fec66215ae7e..fddbf40a04b9 100644 --- a/sdk/messaging/azservicebus/client_test.go +++ b/sdk/messaging/azservicebus/client_test.go @@ -5,6 +5,7 @@ package azservicebus import ( "context" + "io/ioutil" "net" "net/http" "os" @@ -97,19 +98,23 @@ func TestNewClientWithWebsockets(t *testing.T) { queue, cleanup := createQueue(t, connectionString, nil) defer cleanup() - webSocketCreateCalled := false - client, err := NewClientFromConnectionString(connectionString, &ClientOptions{ NewWebSocketConn: func(ctx context.Context, args NewWebSocketConnArgs) (net.Conn, error) { - webSocketCreateCalled = true - opts := &websocket.DialOptions{Subprotocols: []string{"amqp"}} + transport := http.DefaultTransport.(*http.Transport).Clone() + transport.TLSClientConfig.KeyLogWriter = ioutil.Discard + + opts := &websocket.DialOptions{Subprotocols: []string{"amqp"}, HTTPClient: &http.Client{ + Transport: transport, + }} + wssConn, _, err := websocket.Dial(ctx, args.Host, opts) if err != nil { return nil, err } - return websocket.NetConn(context.Background(), wssConn, websocket.MessageBinary), nil + conn := websocket.NetConn(context.Background(), wssConn, websocket.MessageBinary) + return conn, nil }, }) require.NoError(t, err) @@ -122,18 +127,15 @@ func TestNewClientWithWebsockets(t *testing.T) { }, nil) require.NoError(t, err) - // we have to test this down here since the connection is lazy initialized. - require.True(t, webSocketCreateCalled) - - receiver, err := client.NewReceiverForQueue(queue, &ReceiverOptions{ - ReceiveMode: ReceiveModeReceiveAndDelete, - }) - require.NoError(t, err) - - messages, err := receiver.ReceiveMessages(context.Background(), 1, nil) - require.NoError(t, err) - - require.EqualValues(t, "hello world", string(messages[0].Body)) + // NOTE: This error is coming from the `nhooyr.io/websocket` package. There's an + // open discussion here: + // https://github.com/nhooyr/websocket/discussions/380 + // + // The frame it's waiting for (at this point) is the other half of the websocket CLOSE handshake. + // I wireshark'd this and confirmed that the frame does arrive, it's just not read by the local + // package. In this context, since the connection has already shut down, this is harmless. + var expectedErr = "failed to close WebSocket: failed to read frame header: EOF" + require.EqualError(t, client.Close(context.Background()), expectedErr) } func TestNewClientUsingSharedAccessSignature(t *testing.T) { diff --git a/sdk/messaging/azservicebus/example_client_test.go b/sdk/messaging/azservicebus/example_client_test.go index 4f0b646ef819..f9cdf35c1712 100644 --- a/sdk/messaging/azservicebus/example_client_test.go +++ b/sdk/messaging/azservicebus/example_client_test.go @@ -4,15 +4,12 @@ package azservicebus_test import ( - "context" "fmt" - "net" "time" azlog "github.com/Azure/azure-sdk-for-go/sdk/azcore/log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/messaging/azservicebus" - "nhooyr.io/websocket" ) func ExampleNewClient() { @@ -45,27 +42,6 @@ func ExampleNewClientFromConnectionString() { } } -func ExampleNewClient_usingWebsockets() { - // NOTE: If you'd like to authenticate via Azure Active Directory look at - // the `NewClient` function instead. - client, err = azservicebus.NewClientFromConnectionString(connectionString, &azservicebus.ClientOptions{ - NewWebSocketConn: func(ctx context.Context, args azservicebus.NewWebSocketConnArgs) (net.Conn, error) { - opts := &websocket.DialOptions{Subprotocols: []string{"amqp"}} - wssConn, _, err := websocket.Dial(ctx, args.Host, opts) - - if err != nil { - return nil, err - } - - return websocket.NetConn(context.Background(), wssConn, websocket.MessageBinary), nil - }, - }) - - if err != nil { - panic(err) - } -} - func ExampleNewClient_configuringRetries() { // NOTE: If you'd like to authenticate via Azure Active Directory look at // the `NewClient` function instead. diff --git a/sdk/messaging/azservicebus/example_websockets_and_proxies_test.go b/sdk/messaging/azservicebus/example_websockets_and_proxies_test.go new file mode 100644 index 000000000000..124b876c8e8a --- /dev/null +++ b/sdk/messaging/azservicebus/example_websockets_and_proxies_test.go @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package azservicebus_test + +import ( + "context" + "net" + + "github.com/Azure/azure-sdk-for-go/sdk/messaging/azservicebus" + "nhooyr.io/websocket" +) + +func ExampleNewClient_usingWebsocketsAndProxies() { + // You can use an HTTP proxy, with websockets, by setting the appropriate HTTP(s)_PROXY + // variable in your environment, as described in the https://pkg.go.dev/net/http#ProxyFromEnvironment + // function. + // + // A proxy is NOT required to use websockets. + newWebSocketConnFn := func(ctx context.Context, args azservicebus.NewWebSocketConnArgs) (net.Conn, error) { + opts := &websocket.DialOptions{Subprotocols: []string{"amqp"}} + wssConn, _, err := websocket.Dial(ctx, args.Host, opts) + + if err != nil { + return nil, err + } + + return websocket.NetConn(ctx, wssConn, websocket.MessageBinary), nil + } + + // NOTE: If you'd like to authenticate via Azure Active Directory look at + // the `NewClient` function instead. + client, err = azservicebus.NewClientFromConnectionString(connectionString, &azservicebus.ClientOptions{ + NewWebSocketConn: newWebSocketConnFn, + }) + + if err != nil { + panic(err) + } + + // NOTE: For users of `nhooyr.io/websocket` there's an open discussion here: + // https://github.com/nhooyr/websocket/discussions/380 + // + // An error ("failed to read frame header: EOF") can be returned when the + // websocket connection is closed. This error will be returned from the + // `Client.Close` function and can be ignored, as the websocket "close handshake" + // has already completed. + defer client.Close(context.TODO()) +} diff --git a/sdk/messaging/azservicebus/go.mod b/sdk/messaging/azservicebus/go.mod index 0178ed5c81f2..383c288fbbf7 100644 --- a/sdk/messaging/azservicebus/go.mod +++ b/sdk/messaging/azservicebus/go.mod @@ -11,8 +11,6 @@ require ( ) require ( - // temporary until https://github.com/nhooyr/websocket/pull/310 is merged and released. - github.com/gin-gonic/gin v1.7.7 // indirect // used in tests only github.com/joho/godotenv v1.3.0 @@ -21,7 +19,7 @@ require ( github.com/stretchr/testify v1.7.0 // used in examples only - nhooyr.io/websocket v1.8.6 + nhooyr.io/websocket v1.8.7 ) require github.com/golang/mock v1.6.0 diff --git a/sdk/messaging/azservicebus/go.sum b/sdk/messaging/azservicebus/go.sum index 26aec1fb110a..5b65d5ef3c5f 100644 --- a/sdk/messaging/azservicebus/go.sum +++ b/sdk/messaging/azservicebus/go.sum @@ -15,17 +15,15 @@ github.com/dnaeon/go-vcr v1.1.0 h1:ReYa/UBrRyQdant9B4fNHGoCNKw6qh6P0fsdGmZpR7c= github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= github.com/gin-contrib/sse v0.1.0 h1:Y/yl/+YNO8GZSjAhjMsSuLt29uWRFHdHYUb5lYOV9qE= github.com/gin-contrib/sse v0.1.0/go.mod h1:RHrZQHXnP2xjPF+u1gW/2HnVO7nvIa9PG3Gm+fLHvGI= +github.com/gin-gonic/gin v1.6.3 h1:ahKqKTFpO5KTPHxWZjEdPScmYaGtLo8Y4DMHoEsnp14= github.com/gin-gonic/gin v1.6.3/go.mod h1:75u5sXoLsGZoRN5Sgbi1eraJ4GU3++wFwWzhwvtwp4M= -github.com/gin-gonic/gin v1.7.7 h1:3DoBmSbJbZAWqXJC3SLjAPfutPJJRN1U5pALB7EeTTs= -github.com/gin-gonic/gin v1.7.7/go.mod h1:axIBovoeJpVj8S3BwE0uPMTeReE4+AfFtqpqaZ1qq1U= github.com/go-playground/assert/v2 v2.0.1/go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4= github.com/go-playground/locales v0.13.0 h1:HyWk6mgj5qFqCT5fjGBuRArbVDfE4hi8+e8ceBS/t7Q= github.com/go-playground/locales v0.13.0/go.mod h1:taPMhCMXrRLJO55olJkUXHZBHCxTMfnGwq/HNwmWNS8= github.com/go-playground/universal-translator v0.17.0 h1:icxd5fm+REJzpZx7ZfpaD876Lmtgy7VtROAbHHXk8no= github.com/go-playground/universal-translator v0.17.0/go.mod h1:UkSxE5sNxxRwHyU+Scu5vgOQjsIJAF8j9muTVoKLVtA= +github.com/go-playground/validator/v10 v10.2.0 h1:KgJ0snyC2R9VXYN2rneOtQcw5aHQB1Vv0sFl1UcHBOY= github.com/go-playground/validator/v10 v10.2.0/go.mod h1:uOYAAleCW8F/7oMFd6aG0GOhaH6EGOAJShg8Id5JGkI= -github.com/go-playground/validator/v10 v10.4.1 h1:pH2c5ADXtd66mxoE0Zm9SUhxE20r7aM3F26W0hOn+GE= -github.com/go-playground/validator/v10 v10.4.1/go.mod h1:nlOn6nFhuKACm19sB/8EGNn9GlaMV7XkbRSipzJ0Ii4= github.com/gobwas/httphead v0.0.0-20180130184737-2c6c146eadee h1:s+21KNqlpePfkah2I+gwHF8xmJWRjooY+5248k6m4A0= github.com/gobwas/httphead v0.0.0-20180130184737-2c6c146eadee/go.mod h1:L0fX3K22YWvt/FAX9NnzrNzcI4wNYi9Yku4O0LKYflo= github.com/gobwas/pool v0.2.0 h1:QEmUOlnSjWtnpRGHF3SauEiOsy82Cup83Vf2LcMlnc8= @@ -96,7 +94,6 @@ github.com/ugorji/go/codec v1.1.7/go.mod h1:Ax+UKWsSmolVDwsd+7N3ZtXu+yMGCf907BLY github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= 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/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= @@ -146,5 +143,5 @@ gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= 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= gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -nhooyr.io/websocket v1.8.6 h1:s+C3xAMLwGmlI31Nyn/eAehUlZPwfYZu2JXM621Q5/k= -nhooyr.io/websocket v1.8.6/go.mod h1:B70DZP8IakI65RVQ51MsWP/8jndNma26DVA/nFSCgW0= +nhooyr.io/websocket v1.8.7 h1:usjR2uOr/zjjkVMy0lW+PPohFok7PCow5sDjLgX4P4g= +nhooyr.io/websocket v1.8.7/go.mod h1:B70DZP8IakI65RVQ51MsWP/8jndNma26DVA/nFSCgW0= From e6c93bbfb30073033cfa8938288e5472747197cd Mon Sep 17 00:00:00 2001 From: Rick Winter Date: Tue, 14 Mar 2023 12:11:59 -0700 Subject: [PATCH 098/107] Update dependencies in the template package (#20407) --- sdk/template/aztemplate/go.mod | 10 +++++----- sdk/template/aztemplate/go.sum | 20 ++++++++++---------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/sdk/template/aztemplate/go.mod b/sdk/template/aztemplate/go.mod index a54ea9be3152..1bc8da2fab54 100644 --- a/sdk/template/aztemplate/go.mod +++ b/sdk/template/aztemplate/go.mod @@ -3,19 +3,19 @@ module github.com/Azure/azure-sdk-for-go/sdk/template/aztemplate go 1.18 require ( - github.com/Azure/azure-sdk-for-go/sdk/azcore v1.0.0 + github.com/Azure/azure-sdk-for-go/sdk/azcore v1.4.0 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.0.0 ) require ( - github.com/Azure/azure-sdk-for-go/sdk/internal v1.0.0 // indirect + github.com/Azure/azure-sdk-for-go/sdk/internal v1.2.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-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 + 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/template/aztemplate/go.sum b/sdk/template/aztemplate/go.sum index ed5b814680ee..984f9cc93e2a 100644 --- a/sdk/template/aztemplate/go.sum +++ b/sdk/template/aztemplate/go.sum @@ -1,9 +1,9 @@ -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/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.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/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.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.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= @@ -22,12 +22,12 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= 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/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-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -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/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= From 85c9662539d8f197de1ea725a0873da0cd6233cb Mon Sep 17 00:00:00 2001 From: gracewilcox <43627800+gracewilcox@users.noreply.github.com> Date: Tue, 14 Mar 2023 13:08:29 -0700 Subject: [PATCH 099/107] update keyvault code owners (#20408) --- .github/CODEOWNERS | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index f42efacb2c6f..8b6f0882c0f6 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -33,6 +33,9 @@ # PRLabel: %KeyVault /sdk/keyvault/ @chlowell @jhendrixMSFT +# PRLabel: %KeyVault +/sdk/security/keyvault/ @chlowell @jhendrixMSFT @gracewilcox + # PRLabel: %Service Bus /sdk/messaging/azservicebus/ @richardpark-msft @jhendrixMSFT From e33d49dba8b9cbed96ce4613766dbe44133fdd40 Mon Sep 17 00:00:00 2001 From: Ronnie Geraghty Date: Tue, 14 Mar 2023 17:04:00 -0700 Subject: [PATCH 100/107] 3rd Party Libs in Samples (#20343) Adding guidance on the proper usage of 3rd Party Libraries in our samples. --- CONTRIBUTING.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index fbfb3d373c82..d68d64d727f5 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -86,3 +86,23 @@ There currently is not a repository wide way to build or regenerate code. #### Testing To test, run 'go test' from the respective directory. + +## Samples + +### Third-party dependencies + +Third party libraries should only be included in samples when necessary to demonstrate usage of an Azure SDK package; they should not be suggested or endorsed as alternatives to the Azure SDK. + +When code samples take dependencies, readers should be able to use the material without significant license burden or research on terms. This goal requires restricting dependencies to certain types of open source or commercial licenses. + +Samples may take the following categories of dependencies: + +- **Open-source** : Open source offerings that use an [Open Source Initiative (OSI) approved license](https://opensource.org/licenses). Any component whose license isn't OSI-approved is considered a commercial offering. Prefer OSS projects that are members of any of the [OSS foundations that Microsoft is part of](https://opensource.microsoft.com/ecosystem/). Prefer permissive licenses for libraries, like [MIT](https://opensource.org/licenses/MIT) and [Apache 2](https://opensource.org/licenses/Apache-2.0). Copy-left licenses like [GPL](https://opensource.org/licenses/gpl-license) are acceptable for tools, and OSs. [Kubernetes](https://github.com/kubernetes/kubernetes), [Linux](https://github.com/torvalds/linux), and [Newtonsoft.Json](https://github.com/JamesNK/Newtonsoft.Json) are examples of this license type. Links to open source components should be to where the source is hosted, including any applicable license, such as a GitHub repository (or similar). + +- **Commercial**: Commercial offerings that enable readers to learn from our content without unnecessary extra costs. Typically, the offering has some form of a community edition, or a free trial sufficient for its use in content. A commercial license may be a form of dual-license, or tiered license. Links to commercial components should be to the commercial site for the software, even if the source software is hosted publicly on GitHub (or similar). + +- **Dual licensed**: Commercial offerings that enable readers to choose either license based on their needs. For example, if the offering has an OSS and commercial license, readers can choose between them. [MySql](https://github.com/mysql/mysql-server) is an example of this license type. + +- **Tiered licensed**: Offerings that enable readers to use the license tier that corresponds to their characteristics. For example, tiers may be available for students, hobbyists, or companies with defined revenue thresholds. For offerings with tiered licenses, strive to limit our use in tutorials to the features available in the lowest tier. This policy enables the widest audience for the article. [Docker](https://www.docker.com/), [IdentityServer](https://duendesoftware.com/products/identityserver), [ImageSharp](https://sixlabors.com/products/imagesharp/), and [Visual Studio](https://visualstudio.com) are examples of this license type. + +In general, we prefer taking dependencies on licensed components in the order of the listed categories. In cases where the category may not be well known, we'll document the category so that readers understand the choice that they're making by using that dependency. From 38d786c259c8e446e12ccb4b434b283266549e83 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Wed, 15 Mar 2023 11:31:51 -0700 Subject: [PATCH 101/107] Sync eng/common directory with azure-sdk-tools for PR 5702 (#20415) * add healthinsights to Test-SampleMetadata script * spacing * update productSlug to azure-health-insights --------- Co-authored-by: Asaf Levi --- eng/common/scripts/Test-SampleMetadata.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/eng/common/scripts/Test-SampleMetadata.ps1 b/eng/common/scripts/Test-SampleMetadata.ps1 index 71c8972a8a36..c20396b0a96b 100644 --- a/eng/common/scripts/Test-SampleMetadata.ps1 +++ b/eng/common/scripts/Test-SampleMetadata.ps1 @@ -202,6 +202,7 @@ begin { "azure-genomics", "azure-hdinsight", "azure-hdinsight-rserver", + "azure-health-insights", "azure-hpc-cache", "azure-immersive-reader", "azure-information-protection", From 0e71c858340d88439299256e096905503bf8c8ef Mon Sep 17 00:00:00 2001 From: siminsavani-msft <77068571+siminsavani-msft@users.noreply.github.com> Date: Wed, 15 Mar 2023 15:25:27 -0400 Subject: [PATCH 102/107] Append Blob Tests (#20399) * Adding tests for appendblob * Updating unrecorded tests and fixing tests * Adding deprecated message on unsupported apis * Update tests * update * Updating docs references on deprecated apis * Fix flaky test * Update sdk/storage/azblob/appendblob/client.go Co-authored-by: Sourav Gupta <98318303+souravgupta-msft@users.noreply.github.com> * Update sdk/storage/azblob/appendblob/client.go Co-authored-by: Sourav Gupta <98318303+souravgupta-msft@users.noreply.github.com> * Fixing flaky tests, again... --------- Co-authored-by: Sourav Gupta <98318303+souravgupta-msft@users.noreply.github.com> --- sdk/storage/azblob/appendblob/client.go | 17 +- sdk/storage/azblob/appendblob/client_test.go | 573 +++++++++++++++++++ sdk/storage/azblob/assets.json | 2 +- 3 files changed, 581 insertions(+), 11 deletions(-) diff --git a/sdk/storage/azblob/appendblob/client.go b/sdk/storage/azblob/appendblob/client.go index fcb2a349e45e..d027355ee407 100644 --- a/sdk/storage/azblob/appendblob/client.go +++ b/sdk/storage/azblob/appendblob/client.go @@ -8,6 +8,7 @@ package appendblob import ( "context" + "errors" "io" "os" "time" @@ -255,14 +256,10 @@ func (ab *Client) SetLegalHold(ctx context.Context, legalHold bool, options *blo return ab.BlobClient().SetLegalHold(ctx, legalHold, options) } -// SetTier operation sets the tier on a blob. The operation is allowed on a page -// blob in a premium storage account and on a block blob in a blob storage account (locally -// redundant storage only). A premium page blob's tier determines the allowed size, IOPS, and -// bandwidth of the blob. A block blob's tier determines Hot/Cool/Archive storage type. This operation -// does not update the blob's ETag. -// For detailed information about block blob level tiering see https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blob-storage-tiers. +// SetTier +// Deprecated: SetTier only works for page blob in premium storage account and block blob in blob storage account. func (ab *Client) SetTier(ctx context.Context, tier blob.AccessTier, o *blob.SetTierOptions) (blob.SetTierResponse, error) { - return ab.BlobClient().SetTier(ctx, tier, o) + return blob.SetTierResponse{}, errors.New("Operation will not work on this blob type. SetTier only works for page blob in premium storage account and block blob in blob storage account.") } // SetExpiry operation sets an expiry time on an existing blob. This operation is only allowed on Hierarchical Namespace enabled accounts. @@ -326,10 +323,10 @@ func (ab *Client) GetTags(ctx context.Context, o *blob.GetTagsOptions) (blob.Get return ab.BlobClient().GetTags(ctx, o) } -// CopyFromURL synchronously copies the data at the source URL to a block blob, with sizes up to 256 MB. -// For more information, see https://docs.microsoft.com/en-us/rest/api/storageservices/copy-blob-from-url. +// CopyFromURL +// Deprecated: CopyFromURL works only with block blob func (ab *Client) CopyFromURL(ctx context.Context, copySource string, o *blob.CopyFromURLOptions) (blob.CopyFromURLResponse, error) { - return ab.BlobClient().CopyFromURL(ctx, copySource, o) + return blob.CopyFromURLResponse{}, errors.New("Operation will not work on this blob type. CopyFromURL works only with block blob.") } // Concurrent Download Functions ----------------------------------------------------------------------------------------- diff --git a/sdk/storage/azblob/appendblob/client_test.go b/sdk/storage/azblob/appendblob/client_test.go index 63dca724f609..ca6781b40e27 100644 --- a/sdk/storage/azblob/appendblob/client_test.go +++ b/sdk/storage/azblob/appendblob/client_test.go @@ -11,6 +11,7 @@ import ( "context" "crypto/md5" "encoding/binary" + "github.com/Azure/azure-sdk-for-go/sdk/storage/azblob/lease" "hash/crc64" "io" "math/rand" @@ -2381,3 +2382,575 @@ func (s *AppendBlobUnrecordedTestsSuite) TestAppendBlobSetExpiryToAbsolute() { _, err = abClient.GetProperties(context.Background(), nil) testcommon.ValidateBlobErrorCode(_require, err, bloberror.BlobNotFound) } + +func (s *AppendBlobRecordedTestsSuite) TestAppendBlobSetMetadataNil() { + _require := require.New(s.T()) + testName := s.T().Name() + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + containerName := testcommon.GenerateContainerName(testName) + containerClient := testcommon.CreateNewContainer(context.Background(), _require, containerName, svcClient) + defer testcommon.DeleteContainer(context.Background(), _require, containerClient) + + abClient := getAppendBlobClient(testcommon.GenerateBlobName(testName), containerClient) + _, err = abClient.Create(context.Background(), nil) + _require.Nil(err) + + _, err = abClient.SetMetadata(context.Background(), map[string]*string{"not": to.Ptr("nil")}, nil) + _require.Nil(err) + + _, err = abClient.SetMetadata(context.Background(), nil, nil) + _require.Nil(err) + + blobGetResp, err := abClient.GetProperties(context.Background(), nil) + _require.Nil(err) + _require.Len(blobGetResp.Metadata, 0) +} + +func (s *AppendBlobRecordedTestsSuite) TestAppendBlobSetMetadataEmpty() { + _require := require.New(s.T()) + testName := s.T().Name() + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + containerName := testcommon.GenerateContainerName(testName) + containerClient := testcommon.CreateNewContainer(context.Background(), _require, containerName, svcClient) + defer testcommon.DeleteContainer(context.Background(), _require, containerClient) + + abClient := getAppendBlobClient(testcommon.GenerateBlobName(testName), containerClient) + _, err = abClient.Create(context.Background(), nil) + _require.Nil(err) + + _, err = abClient.SetMetadata(context.Background(), map[string]*string{"not": to.Ptr("nil")}, nil) + _require.Nil(err) + + _, err = abClient.SetMetadata(context.Background(), map[string]*string{}, nil) + _require.Nil(err) + + resp, err := abClient.GetProperties(context.Background(), nil) + _require.Nil(err) + _require.Len(resp.Metadata, 0) +} + +func (s *AppendBlobRecordedTestsSuite) TestAppendBlobSetMetadataInvalidField() { + _require := require.New(s.T()) + testName := s.T().Name() + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + containerName := testcommon.GenerateContainerName(testName) + containerClient := testcommon.CreateNewContainer(context.Background(), _require, containerName, svcClient) + defer testcommon.DeleteContainer(context.Background(), _require, containerClient) + + abClient := getAppendBlobClient(testcommon.GenerateBlobName(testName), containerClient) + _, err = abClient.Create(context.Background(), nil) + _require.Nil(err) + + _, err = abClient.SetMetadata(context.Background(), map[string]*string{"Invalid field!": to.Ptr("value")}, nil) + _require.NotNil(err) + _require.Contains(err.Error(), testcommon.InvalidHeaderErrorSubstring) +} + +func validateMetadataSet(_require *require.Assertions, abClient *appendblob.Client) { + resp, err := abClient.GetProperties(context.Background(), nil) + _require.Nil(err) + _require.EqualValues(resp.Metadata, testcommon.BasicMetadata) +} + +func (s *AppendBlobRecordedTestsSuite) TestAppendBlobSetMetadataIfModifiedSinceTrue() { + _require := require.New(s.T()) + testName := s.T().Name() + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + containerName := testcommon.GenerateContainerName(testName) + containerClient := testcommon.CreateNewContainer(context.Background(), _require, containerName, svcClient) + defer testcommon.DeleteContainer(context.Background(), _require, containerClient) + + abClient := getAppendBlobClient(testcommon.GenerateBlobName(testName), containerClient) + _, err = abClient.Create(context.Background(), nil) + _require.Nil(err) + cResp, err := abClient.AppendBlock(context.Background(), streaming.NopCloser(strings.NewReader("Appending block\n")), nil) + _require.Nil(err) + + currentTime := testcommon.GetRelativeTimeFromAnchor(cResp.Date, -10) + + setBlobMetadataOptions := blob.SetMetadataOptions{ + AccessConditions: &blob.AccessConditions{ + ModifiedAccessConditions: &blob.ModifiedAccessConditions{IfModifiedSince: ¤tTime}, + }, + } + _, err = abClient.SetMetadata(context.Background(), testcommon.BasicMetadata, &setBlobMetadataOptions) + _require.Nil(err) + + validateMetadataSet(_require, abClient) +} + +func (s *AppendBlobRecordedTestsSuite) TestAppendBlobSetMetadataIfModifiedSinceFalse() { + _require := require.New(s.T()) + testName := s.T().Name() + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + containerName := testcommon.GenerateContainerName(testName) + containerClient := testcommon.CreateNewContainer(context.Background(), _require, containerName, svcClient) + defer testcommon.DeleteContainer(context.Background(), _require, containerClient) + + abClient := getAppendBlobClient(testcommon.GenerateBlobName(testName), containerClient) + _, err = abClient.Create(context.Background(), nil) + _require.Nil(err) + cResp, err := abClient.AppendBlock(context.Background(), streaming.NopCloser(strings.NewReader("Appending block\n")), nil) + _require.Nil(err) + + currentTime := testcommon.GetRelativeTimeFromAnchor(cResp.Date, 10) + + setBlobMetadataOptions := blob.SetMetadataOptions{ + AccessConditions: &blob.AccessConditions{ + ModifiedAccessConditions: &blob.ModifiedAccessConditions{IfModifiedSince: ¤tTime}, + }, + } + _, err = abClient.SetMetadata(context.Background(), testcommon.BasicMetadata, &setBlobMetadataOptions) + testcommon.ValidateBlobErrorCode(_require, err, bloberror.ConditionNotMet) +} + +func (s *AppendBlobRecordedTestsSuite) TestAppendBlobSetMetadataIfUnmodifiedSinceTrue() { + _require := require.New(s.T()) + testName := s.T().Name() + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + containerName := testcommon.GenerateContainerName(testName) + containerClient := testcommon.CreateNewContainer(context.Background(), _require, containerName, svcClient) + defer testcommon.DeleteContainer(context.Background(), _require, containerClient) + + abClient := getAppendBlobClient(testcommon.GenerateBlobName(testName), containerClient) + _, err = abClient.Create(context.Background(), nil) + _require.Nil(err) + cResp, err := abClient.AppendBlock(context.Background(), streaming.NopCloser(strings.NewReader("Appending block\n")), nil) + _require.Nil(err) + + currentTime := testcommon.GetRelativeTimeFromAnchor(cResp.Date, 10) + + setBlobMetadataOptions := blob.SetMetadataOptions{ + AccessConditions: &blob.AccessConditions{ + ModifiedAccessConditions: &blob.ModifiedAccessConditions{IfUnmodifiedSince: ¤tTime}, + }, + } + _, err = abClient.SetMetadata(context.Background(), testcommon.BasicMetadata, &setBlobMetadataOptions) + _require.Nil(err) + + validateMetadataSet(_require, abClient) +} + +func (s *AppendBlobRecordedTestsSuite) TestAppendBlobSetMetadataIfUnmodifiedSinceFalse() { + _require := require.New(s.T()) + testName := s.T().Name() + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + containerName := testcommon.GenerateContainerName(testName) + containerClient := testcommon.CreateNewContainer(context.Background(), _require, containerName, svcClient) + defer testcommon.DeleteContainer(context.Background(), _require, containerClient) + + abClient := getAppendBlobClient(testcommon.GenerateBlobName(testName), containerClient) + _, err = abClient.Create(context.Background(), nil) + _require.Nil(err) + cResp, err := abClient.AppendBlock(context.Background(), streaming.NopCloser(strings.NewReader("Appending block\n")), nil) + _require.Nil(err) + + currentTime := testcommon.GetRelativeTimeFromAnchor(cResp.Date, -10) + setBlobMetadataOptions := blob.SetMetadataOptions{ + AccessConditions: &blob.AccessConditions{ + ModifiedAccessConditions: &blob.ModifiedAccessConditions{IfUnmodifiedSince: to.Ptr(currentTime)}, + }, + } + _, err = abClient.SetMetadata(context.Background(), testcommon.BasicMetadata, &setBlobMetadataOptions) + testcommon.ValidateBlobErrorCode(_require, err, bloberror.ConditionNotMet) +} + +func (s *AppendBlobRecordedTestsSuite) TestAppendBlobSetMetadataIfMatchTrue() { + _require := require.New(s.T()) + testName := s.T().Name() + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + containerName := testcommon.GenerateContainerName(testName) + containerClient := testcommon.CreateNewContainer(context.Background(), _require, containerName, svcClient) + defer testcommon.DeleteContainer(context.Background(), _require, containerClient) + + abClient := getAppendBlobClient(testcommon.GenerateBlobName(testName), containerClient) + _, err = abClient.Create(context.Background(), nil) + _require.Nil(err) + + resp, err := abClient.GetProperties(context.Background(), nil) + _require.Nil(err) + + setBlobMetadataOptions := blob.SetMetadataOptions{ + AccessConditions: &blob.AccessConditions{ + ModifiedAccessConditions: &blob.ModifiedAccessConditions{IfMatch: resp.ETag}, + }, + } + _, err = abClient.SetMetadata(context.Background(), testcommon.BasicMetadata, &setBlobMetadataOptions) + _require.Nil(err) + + validateMetadataSet(_require, abClient) +} + +func (s *AppendBlobRecordedTestsSuite) TestAppendBlobSetMetadataIfMatchFalse() { + _require := require.New(s.T()) + testName := s.T().Name() + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + containerName := testcommon.GenerateContainerName(testName) + containerClient := testcommon.CreateNewContainer(context.Background(), _require, containerName, svcClient) + defer testcommon.DeleteContainer(context.Background(), _require, containerClient) + + abClient := getAppendBlobClient(testcommon.GenerateBlobName(testName), containerClient) + _, err = abClient.Create(context.Background(), nil) + _require.Nil(err) + + setBlobMetadataOptions := blob.SetMetadataOptions{ + AccessConditions: &blob.AccessConditions{ + ModifiedAccessConditions: &blob.ModifiedAccessConditions{IfMatch: to.Ptr(azcore.ETag("garbage"))}, + }, + } + _, err = abClient.SetMetadata(context.Background(), testcommon.BasicMetadata, &setBlobMetadataOptions) + testcommon.ValidateBlobErrorCode(_require, err, bloberror.ConditionNotMet) +} + +func (s *AppendBlobRecordedTestsSuite) TestAppendBlobSetMetadataIfNoneMatchTrue() { + _require := require.New(s.T()) + testName := s.T().Name() + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + containerName := testcommon.GenerateContainerName(testName) + containerClient := testcommon.CreateNewContainer(context.Background(), _require, containerName, svcClient) + defer testcommon.DeleteContainer(context.Background(), _require, containerClient) + + abClient := getAppendBlobClient(testcommon.GenerateBlobName(testName), containerClient) + _, err = abClient.Create(context.Background(), nil) + _require.Nil(err) + + setBlobMetadataOptions := blob.SetMetadataOptions{ + AccessConditions: &blob.AccessConditions{ + ModifiedAccessConditions: &blob.ModifiedAccessConditions{IfNoneMatch: to.Ptr(azcore.ETag("garbage"))}, + }, + } + _, err = abClient.SetMetadata(context.Background(), testcommon.BasicMetadata, &setBlobMetadataOptions) + _require.Nil(err) + + validateMetadataSet(_require, abClient) +} + +func (s *AppendBlobRecordedTestsSuite) TestAppendBlobSetMetadataIfNoneMatchFalse() { + _require := require.New(s.T()) + testName := s.T().Name() + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + containerName := testcommon.GenerateContainerName(testName) + containerClient := testcommon.CreateNewContainer(context.Background(), _require, containerName, svcClient) + defer testcommon.DeleteContainer(context.Background(), _require, containerClient) + + abClient := getAppendBlobClient(testcommon.GenerateBlobName(testName), containerClient) + _, err = abClient.Create(context.Background(), nil) + _require.Nil(err) + + resp, err := abClient.GetProperties(context.Background(), nil) + _require.Nil(err) + + setBlobMetadataOptions := blob.SetMetadataOptions{ + AccessConditions: &blob.AccessConditions{ + ModifiedAccessConditions: &blob.ModifiedAccessConditions{IfNoneMatch: resp.ETag}, + }, + } + _, err = abClient.SetMetadata(context.Background(), testcommon.BasicMetadata, &setBlobMetadataOptions) + testcommon.ValidateBlobErrorCode(_require, err, bloberror.ConditionNotMet) +} + +func validatePropertiesSet(_require *require.Assertions, abClient *appendblob.Client, disposition string) { + resp, err := abClient.GetProperties(context.Background(), nil) + _require.Nil(err) + _require.Equal(*resp.ContentDisposition, disposition) +} + +func (s *AppendBlobRecordedTestsSuite) TestAppendBlobSetHTTPHeaderIfModifiedSinceTrue() { + _require := require.New(s.T()) + testName := s.T().Name() + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + containerName := testcommon.GenerateContainerName(testName) + containerClient := testcommon.CreateNewContainer(context.Background(), _require, containerName, svcClient) + defer testcommon.DeleteContainer(context.Background(), _require, containerClient) + + abClient := getAppendBlobClient(testcommon.GenerateBlobName(testName), containerClient) + _, err = abClient.Create(context.Background(), nil) + _require.Nil(err) + cResp, err := abClient.AppendBlock(context.Background(), streaming.NopCloser(strings.NewReader("Appending block\n")), nil) + _require.Nil(err) + + currentTime := testcommon.GetRelativeTimeFromAnchor(cResp.Date, -10) + + _, err = abClient.SetHTTPHeaders(context.Background(), blob.HTTPHeaders{BlobContentDisposition: to.Ptr("my_disposition")}, + &blob.SetHTTPHeadersOptions{ + AccessConditions: &blob.AccessConditions{ + ModifiedAccessConditions: &blob.ModifiedAccessConditions{IfModifiedSince: ¤tTime}, + }, + }) + _require.Nil(err) + + validatePropertiesSet(_require, abClient, "my_disposition") +} + +func (s *AppendBlobRecordedTestsSuite) TestAppendBlobSetHTTPHeaderIfModifiedSinceFalse() { + _require := require.New(s.T()) + testName := s.T().Name() + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + containerName := testcommon.GenerateContainerName(testName) + containerClient := testcommon.CreateNewContainer(context.Background(), _require, containerName, svcClient) + defer testcommon.DeleteContainer(context.Background(), _require, containerClient) + + abClient := getAppendBlobClient(testcommon.GenerateBlobName(testName), containerClient) + _, err = abClient.Create(context.Background(), nil) + _require.Nil(err) + cResp, err := abClient.AppendBlock(context.Background(), streaming.NopCloser(strings.NewReader("Appending block\n")), nil) + _require.Nil(err) + + currentTime := testcommon.GetRelativeTimeFromAnchor(cResp.Date, 10) + + _, err = abClient.SetHTTPHeaders(context.Background(), blob.HTTPHeaders{BlobContentDisposition: to.Ptr("my_disposition")}, + &blob.SetHTTPHeadersOptions{ + AccessConditions: &blob.AccessConditions{ + ModifiedAccessConditions: &blob.ModifiedAccessConditions{IfModifiedSince: ¤tTime}, + }}) + _require.NotNil(err) +} + +func (s *AppendBlobRecordedTestsSuite) TestAppendBlobSetHTTPHeaderIfUnmodifiedSinceTrue() { + _require := require.New(s.T()) + testName := s.T().Name() + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + containerName := testcommon.GenerateContainerName(testName) + containerClient := testcommon.CreateNewContainer(context.Background(), _require, containerName, svcClient) + defer testcommon.DeleteContainer(context.Background(), _require, containerClient) + + abClient := getAppendBlobClient(testcommon.GenerateBlobName(testName), containerClient) + _, err = abClient.Create(context.Background(), nil) + _require.Nil(err) + cResp, err := abClient.AppendBlock(context.Background(), streaming.NopCloser(strings.NewReader("Appending block\n")), nil) + _require.Nil(err) + + currentTime := testcommon.GetRelativeTimeFromAnchor(cResp.Date, 10) + + _, err = abClient.SetHTTPHeaders(context.Background(), blob.HTTPHeaders{BlobContentDisposition: to.Ptr("my_disposition")}, + &blob.SetHTTPHeadersOptions{AccessConditions: &blob.AccessConditions{ + ModifiedAccessConditions: &blob.ModifiedAccessConditions{IfUnmodifiedSince: ¤tTime}, + }}) + _require.Nil(err) + + validatePropertiesSet(_require, abClient, "my_disposition") +} + +func (s *AppendBlobRecordedTestsSuite) TestAppendBlobSetHTTPHeaderIfUnmodifiedSinceFalse() { + _require := require.New(s.T()) + testName := s.T().Name() + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + containerName := testcommon.GenerateContainerName(testName) + containerClient := testcommon.CreateNewContainer(context.Background(), _require, containerName, svcClient) + defer testcommon.DeleteContainer(context.Background(), _require, containerClient) + + abClient := getAppendBlobClient(testcommon.GenerateBlobName(testName), containerClient) + _, err = abClient.Create(context.Background(), nil) + _require.Nil(err) + cResp, err := abClient.AppendBlock(context.Background(), streaming.NopCloser(strings.NewReader("Appending block\n")), nil) + _require.Nil(err) + + currentTime := testcommon.GetRelativeTimeFromAnchor(cResp.Date, -10) + + _, err = abClient.SetHTTPHeaders(context.Background(), blob.HTTPHeaders{BlobContentDisposition: to.Ptr("my_disposition")}, + &blob.SetHTTPHeadersOptions{AccessConditions: &blob.AccessConditions{ + ModifiedAccessConditions: &blob.ModifiedAccessConditions{IfUnmodifiedSince: ¤tTime}, + }}) + _require.NotNil(err) +} + +func (s *AppendBlobRecordedTestsSuite) TestAppendBlobSetHTTPHeaderIfMatchTrue() { + _require := require.New(s.T()) + testName := s.T().Name() + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + containerName := testcommon.GenerateContainerName(testName) + containerClient := testcommon.CreateNewContainer(context.Background(), _require, containerName, svcClient) + defer testcommon.DeleteContainer(context.Background(), _require, containerClient) + + abClient := getAppendBlobClient(testcommon.GenerateBlobName(testName), containerClient) + _, err = abClient.Create(context.Background(), nil) + _require.Nil(err) + + resp, err := abClient.GetProperties(context.Background(), nil) + _require.Nil(err) + + _, err = abClient.SetHTTPHeaders(context.Background(), blob.HTTPHeaders{BlobContentDisposition: to.Ptr("my_disposition")}, + &blob.SetHTTPHeadersOptions{AccessConditions: &blob.AccessConditions{ + ModifiedAccessConditions: &blob.ModifiedAccessConditions{IfMatch: resp.ETag}, + }}) + _require.Nil(err) + + validatePropertiesSet(_require, abClient, "my_disposition") +} + +func (s *AppendBlobRecordedTestsSuite) TestAppendBlobSetHTTPHeaderIfMatchFalse() { + _require := require.New(s.T()) + testName := s.T().Name() + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + containerName := testcommon.GenerateContainerName(testName) + containerClient := testcommon.CreateNewContainer(context.Background(), _require, containerName, svcClient) + defer testcommon.DeleteContainer(context.Background(), _require, containerClient) + + abClient := getAppendBlobClient(testcommon.GenerateBlobName(testName), containerClient) + _, err = abClient.Create(context.Background(), nil) + _require.Nil(err) + + _, err = abClient.SetHTTPHeaders(context.Background(), blob.HTTPHeaders{BlobContentDisposition: to.Ptr("my_disposition")}, + &blob.SetHTTPHeadersOptions{AccessConditions: &blob.AccessConditions{ + ModifiedAccessConditions: &blob.ModifiedAccessConditions{IfMatch: to.Ptr(azcore.ETag("garbage"))}, + }}) + _require.NotNil(err) +} + +func (s *AppendBlobRecordedTestsSuite) TestAppendBlobSetHTTPHeaderIfNoneMatchTrue() { + _require := require.New(s.T()) + testName := s.T().Name() + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + containerName := testcommon.GenerateContainerName(testName) + containerClient := testcommon.CreateNewContainer(context.Background(), _require, containerName, svcClient) + defer testcommon.DeleteContainer(context.Background(), _require, containerClient) + + abClient := getAppendBlobClient(testcommon.GenerateBlobName(testName), containerClient) + _, err = abClient.Create(context.Background(), nil) + _require.Nil(err) + + _, err = abClient.SetHTTPHeaders(context.Background(), blob.HTTPHeaders{BlobContentDisposition: to.Ptr("my_disposition")}, + &blob.SetHTTPHeadersOptions{AccessConditions: &blob.AccessConditions{ + ModifiedAccessConditions: &blob.ModifiedAccessConditions{IfNoneMatch: to.Ptr(azcore.ETag("garbage"))}, + }}) + _require.Nil(err) + + validatePropertiesSet(_require, abClient, "my_disposition") +} + +func (s *AppendBlobRecordedTestsSuite) TestAppendBlobSetHTTPHeaderIfNoneMatchFalse() { + _require := require.New(s.T()) + testName := s.T().Name() + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + containerName := testcommon.GenerateContainerName(testName) + containerClient := testcommon.CreateNewContainer(context.Background(), _require, containerName, svcClient) + defer testcommon.DeleteContainer(context.Background(), _require, containerClient) + + abClient := getAppendBlobClient(testcommon.GenerateBlobName(testName), containerClient) + _, err = abClient.Create(context.Background(), nil) + _require.Nil(err) + + resp, err := abClient.GetProperties(context.Background(), nil) + _require.Nil(err) + + _, err = abClient.SetHTTPHeaders(context.Background(), blob.HTTPHeaders{BlobContentDisposition: to.Ptr("my_disposition")}, + &blob.SetHTTPHeadersOptions{AccessConditions: &blob.AccessConditions{ + ModifiedAccessConditions: &blob.ModifiedAccessConditions{IfNoneMatch: resp.ETag}, + }}) + _require.NotNil(err) +} + +func (s *AppendBlobRecordedTestsSuite) TestAppendBlobSetBlobTags() { + _require := require.New(s.T()) + testName := s.T().Name() + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + containerClient := testcommon.CreateNewContainer(context.Background(), _require, testcommon.GenerateContainerName(testName), svcClient) + defer testcommon.DeleteContainer(context.Background(), _require, containerClient) + + abClient := getAppendBlobClient(testcommon.GenerateBlobName(testName), containerClient) + _, err = abClient.Create(context.Background(), nil) + _require.Nil(err) + _, err = abClient.AppendBlock(context.Background(), streaming.NopCloser(strings.NewReader("Appending block\n")), nil) + _require.Nil(err) + + _, err = abClient.SetTags(context.Background(), testcommon.BasicBlobTagsMap, nil) + _require.Nil(err) + time.Sleep(10 * time.Second) + + blobGetTagsResponse, err := abClient.GetTags(context.Background(), nil) + _require.Nil(err) + + blobTagsSet := blobGetTagsResponse.BlobTagSet + _require.NotNil(blobTagsSet) + _require.Len(blobTagsSet, 3) + for _, blobTag := range blobTagsSet { + _require.Equal(testcommon.BasicBlobTagsMap[*blobTag.Key], *blobTag.Value) + } +} + +func (s *AppendBlobUnrecordedTestsSuite) TestSetBlobTagsWithLeaseId() { + _require := require.New(s.T()) + testName := s.T().Name() + svcClient, err := testcommon.GetServiceClient(s.T(), testcommon.TestAccountDefault, nil) + _require.NoError(err) + + containerClient := testcommon.CreateNewContainer(context.Background(), _require, testcommon.GenerateContainerName(testName), svcClient) + defer testcommon.DeleteContainer(context.Background(), _require, containerClient) + + abClient := getAppendBlobClient(testcommon.GenerateBlobName(testName), containerClient) + _, err = abClient.Create(context.Background(), nil) + _require.Nil(err) + + blobLeaseClient, err := lease.NewBlobClient(abClient, &lease.BlobClientOptions{ + LeaseID: to.Ptr("c820a799-76d7-4ee2-6e15-546f19325c2c"), + }) + _require.NoError(err) + ctx := context.Background() + acquireLeaseResponse, err := blobLeaseClient.AcquireLease(ctx, int32(60), nil) + _require.Nil(err) + _require.NotNil(acquireLeaseResponse.LeaseID) + _require.EqualValues(acquireLeaseResponse.LeaseID, blobLeaseClient.LeaseID()) + + _, err = abClient.SetTags(ctx, testcommon.BasicBlobTagsMap, nil) + _require.NotNil(err) + time.Sleep(10 * time.Second) + + // add lease conditions + _, err = abClient.SetTags(ctx, testcommon.BasicBlobTagsMap, &blob.SetTagsOptions{AccessConditions: &blob.AccessConditions{ + LeaseAccessConditions: &blob.LeaseAccessConditions{LeaseID: blobLeaseClient.LeaseID()}}}) + _require.Nil(err) + + _, err = abClient.GetTags(ctx, nil) + _require.NoError(err) + + blobGetTagsResponse, err := abClient.GetTags(ctx, &blob.GetTagsOptions{BlobAccessConditions: &blob.AccessConditions{ + LeaseAccessConditions: &blob.LeaseAccessConditions{LeaseID: blobLeaseClient.LeaseID()}}}) + _require.NoError(err) + + blobTagsSet := blobGetTagsResponse.BlobTagSet + _require.NotNil(blobTagsSet) + _require.Len(blobTagsSet, 3) + for _, blobTag := range blobTagsSet { + _require.Equal(testcommon.BasicBlobTagsMap[*blobTag.Key], *blobTag.Value) + } +} diff --git a/sdk/storage/azblob/assets.json b/sdk/storage/azblob/assets.json index 11783d2a84b4..506e74c970fa 100644 --- a/sdk/storage/azblob/assets.json +++ b/sdk/storage/azblob/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "go", "TagPrefix": "go/storage/azblob", - "Tag": "go/storage/azblob_658d0bdec9" + "Tag": "go/storage/azblob_b92bf5d8e3" } From c3414742beb1b0802f38cf27ef6e735831e1ab75 Mon Sep 17 00:00:00 2001 From: Ben Broderick Phillips Date: Wed, 15 Mar 2023 15:43:05 -0400 Subject: [PATCH 103/107] Document using standalone test proxy (#20417) --- documentation/developer_setup.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/documentation/developer_setup.md b/documentation/developer_setup.md index 3c2a0ff533c2..6476b9e431a5 100644 --- a/documentation/developer_setup.md +++ b/documentation/developer_setup.md @@ -135,9 +135,7 @@ Testing is built into the Go toolchain as well with the `testing` library. The t | playback | `$ENV:AZURE_RECORD_MODE="playback"` | Running tests against recording HTTP interactiosn | | live | `$ENV:AZURE_RECORD_MODE="live"` | Bypassing test proxy, running against live service, and not recording HTTP interactions (used by live pipelines) | -To get started first install [`docker`][get_docker]. Then to start the proxy, from the root of the repository, run the command `./eng/common/testproxy/docker-start-proxy.ps1 start`. This command will take care of pulling the pinned docker image and running it in the background. - -It is not required to run the test-proxy from within the docker container, but this is how the proxy is run in the Azure DevOps pipelines. If you would like to run the test-proxy in a different manner the [documentation][test_proxy_docs] has more information. +To get started first [install test-proxy][test_proxy_install] via the standalone executable. Then to start the proxy, from the root of the repository, run the command `test-proxy start`. ### Test Mode Options @@ -367,6 +365,7 @@ This creates the pipelines that will verify future PRs. The `azure-sdk-for-go` i [go_download]: https://golang.org/dl/ [require_package]: https://pkg.go.dev/github.com/stretchr/testify/require [test_proxy_docs]: https://github.com/Azure/azure-sdk-tools/tree/main/tools/test-proxy +[test_proxy_install]: https://github.com/Azure/azure-sdk-tools/blob/main/tools/test-proxy/Azure.Sdk.Tools.TestProxy/README.md#via-standalone-executable [workspace_setup]: https://www.digitalocean.com/community/tutorials/how-to-install-go-and-set-up-a-local-programming-environment-on-windows-10 [directory_structure]: https://azure.github.io/azure-sdk/golang_introduction.html [module_design]: https://azure.github.io/azure-sdk/golang_introduction.html#azure-sdk-module-design From 0dd2599e17189164b044629fd7b55e349c26f1a3 Mon Sep 17 00:00:00 2001 From: Joel Hendrix Date: Wed, 15 Mar 2023 15:46:05 -0700 Subject: [PATCH 104/107] Use underlying error when checking for context errors (#20404) * Use underlying error when checking for context errors There is a race between error propagation and closing a context's deadline channel. The result is that while the API that takes a context returns the correct error, context.Err() might return nil. See https://github.com/golang/go/issues/31863 for more info. * further refinements * revert ordering of error check * add changelog entry --- sdk/azidentity/CHANGELOG.md | 1 + sdk/azidentity/chained_token_credential.go | 2 +- sdk/azidentity/chained_token_credential_test.go | 6 +++--- sdk/azidentity/default_azure_credential.go | 14 +++++++++++++- sdk/azidentity/default_azure_credential_test.go | 13 ++++++++++--- sdk/azidentity/errors.go | 7 ++++--- sdk/azidentity/errors_test.go | 2 +- sdk/azidentity/managed_identity_client.go | 14 +++++++------- 8 files changed, 40 insertions(+), 19 deletions(-) diff --git a/sdk/azidentity/CHANGELOG.md b/sdk/azidentity/CHANGELOG.md index cf3ee5fbfc8d..2a71ee7c099c 100644 --- a/sdk/azidentity/CHANGELOG.md +++ b/sdk/azidentity/CHANGELOG.md @@ -9,6 +9,7 @@ ### Breaking Changes ### Bugs Fixed +* Fixed an issue in `DefaultAzureCredential` that could cause the managed identity endpoint check to fail in rare circumstances. ### Other Changes diff --git a/sdk/azidentity/chained_token_credential.go b/sdk/azidentity/chained_token_credential.go index dacac7a2508a..dc855edf7868 100644 --- a/sdk/azidentity/chained_token_credential.go +++ b/sdk/azidentity/chained_token_credential.go @@ -117,7 +117,7 @@ func (c *ChainedTokenCredential) GetToken(ctx context.Context, opts policy.Token err = newCredentialUnavailableError(c.name, msg) } else { res := getResponseFromError(err) - err = newAuthenticationFailedError(c.name, msg, res) + err = newAuthenticationFailedError(c.name, msg, res, err) } } return token, err diff --git a/sdk/azidentity/chained_token_credential_test.go b/sdk/azidentity/chained_token_credential_test.go index dcc9efbde6e2..788b1df61c04 100644 --- a/sdk/azidentity/chained_token_credential_test.go +++ b/sdk/azidentity/chained_token_credential_test.go @@ -113,7 +113,7 @@ func TestChainedTokenCredential_GetTokenSuccess(t *testing.T) { func TestChainedTokenCredential_GetTokenFail(t *testing.T) { c := NewFakeCredential() - c.SetResponse(azcore.AccessToken{}, newAuthenticationFailedError("test", "something went wrong", nil)) + c.SetResponse(azcore.AccessToken{}, newAuthenticationFailedError("test", "something went wrong", nil, nil)) cred, err := NewChainedTokenCredential([]azcore.TokenCredential{c}, nil) if err != nil { t.Fatal(err) @@ -158,7 +158,7 @@ func TestChainedTokenCredential_MultipleCredentialsGetTokenAuthenticationFailed( c2 := NewFakeCredential() c2.SetResponse(azcore.AccessToken{}, newCredentialUnavailableError("unavailableCredential2", "Unavailable expected error")) c3 := NewFakeCredential() - c3.SetResponse(azcore.AccessToken{}, newAuthenticationFailedError("authenticationFailedCredential3", "Authentication failed expected error", nil)) + c3.SetResponse(azcore.AccessToken{}, newAuthenticationFailedError("authenticationFailedCredential3", "Authentication failed expected error", nil, nil)) cred, err := NewChainedTokenCredential([]azcore.TokenCredential{c1, c2, c3}, nil) if err != nil { t.Fatal(err) @@ -263,7 +263,7 @@ func TestChainedTokenCredential_Race(t *testing.T) { successFake := NewFakeCredential() successFake.SetResponse(azcore.AccessToken{Token: "*", ExpiresOn: time.Now().Add(time.Hour)}, nil) authFailFake := NewFakeCredential() - authFailFake.SetResponse(azcore.AccessToken{}, newAuthenticationFailedError("", "", nil)) + authFailFake.SetResponse(azcore.AccessToken{}, newAuthenticationFailedError("", "", nil, nil)) unavailableFake := NewFakeCredential() unavailableFake.SetResponse(azcore.AccessToken{}, newCredentialUnavailableError("", "")) tro := policy.TokenRequestOptions{Scopes: []string{liveTestScope}} diff --git a/sdk/azidentity/default_azure_credential.go b/sdk/azidentity/default_azure_credential.go index 5d78f479e8ae..8d0f4cd1ff46 100644 --- a/sdk/azidentity/default_azure_credential.go +++ b/sdk/azidentity/default_azure_credential.go @@ -182,7 +182,7 @@ func (w *timeoutWrapper) GetToken(ctx context.Context, opts policy.TokenRequestO c, cancel := context.WithTimeout(ctx, w.timeout) defer cancel() tk, err = w.mic.GetToken(c, opts) - if ce := c.Err(); errors.Is(ce, context.DeadlineExceeded) { + if isAuthFailedDueToContext(err) { err = newCredentialUnavailableError(credNameManagedIdentity, "managed identity timed out") } else { // some managed identity implementation is available, so don't apply the timeout to future calls @@ -193,3 +193,15 @@ func (w *timeoutWrapper) GetToken(ctx context.Context, opts policy.TokenRequestO } return tk, err } + +// unwraps nested AuthenticationFailedErrors to get the root error +func isAuthFailedDueToContext(err error) bool { + for { + var authFailedErr *AuthenticationFailedError + if !errors.As(err, &authFailedErr) { + break + } + err = authFailedErr.err + } + return errors.Is(err, context.Canceled) || errors.Is(err, context.DeadlineExceeded) +} diff --git a/sdk/azidentity/default_azure_credential_test.go b/sdk/azidentity/default_azure_credential_test.go index 4f1906a9e61a..16e616838abd 100644 --- a/sdk/azidentity/default_azure_credential_test.go +++ b/sdk/azidentity/default_azure_credential_test.go @@ -171,7 +171,14 @@ type delayPolicy struct { } func (p *delayPolicy) Do(req *policy.Request) (resp *http.Response, err error) { - time.Sleep(p.delay) + if p.delay > 0 { + select { + case <-req.Raw().Context().Done(): + return nil, req.Raw().Context().Err() + case <-time.After(p.delay): + // delay has elapsed, continue on + } + } return req.Next() } @@ -180,7 +187,7 @@ func TestDefaultAzureCredential_timeoutWrapper(t *testing.T) { defer close() srv.SetResponse(mock.WithBody(accessTokenRespSuccess)) - timeout := 5 * time.Millisecond + timeout := 100 * time.Millisecond dp := delayPolicy{2 * timeout} mic, err := NewManagedIdentityCredential(&ManagedIdentityCredentialOptions{ ClientOptions: policy.ClientOptions{ @@ -201,7 +208,7 @@ func TestDefaultAzureCredential_timeoutWrapper(t *testing.T) { // expecting credentialUnavailableError because delay exceeds the wrapper's timeout _, err = chain.GetToken(context.Background(), policy.TokenRequestOptions{Scopes: []string{liveTestScope}}) if _, ok := err.(*credentialUnavailableError); !ok { - t.Fatalf("expected credentialUnavailableError, got %v", err) + t.Fatalf("expected credentialUnavailableError, got %T: %v", err, err) } } diff --git a/sdk/azidentity/errors.go b/sdk/azidentity/errors.go index 2fba36982776..6362151c2103 100644 --- a/sdk/azidentity/errors.go +++ b/sdk/azidentity/errors.go @@ -39,15 +39,16 @@ type AuthenticationFailedError struct { credType string message string + err error } -func newAuthenticationFailedError(credType string, message string, resp *http.Response) error { - return &AuthenticationFailedError{credType: credType, message: message, RawResponse: resp} +func newAuthenticationFailedError(credType string, message string, resp *http.Response, err error) error { + return &AuthenticationFailedError{credType: credType, message: message, RawResponse: resp, err: err} } func newAuthenticationFailedErrorFromMSALError(credType string, err error) error { res := getResponseFromError(err) - return newAuthenticationFailedError(credType, err.Error(), res) + return newAuthenticationFailedError(credType, err.Error(), res, err) } // Error implements the error interface. Note that the message contents are not contractual and can change over time. diff --git a/sdk/azidentity/errors_test.go b/sdk/azidentity/errors_test.go index 13d25a05d1e7..da6e3db43ce6 100644 --- a/sdk/azidentity/errors_test.go +++ b/sdk/azidentity/errors_test.go @@ -31,7 +31,7 @@ func TestAuthenticationFailedErrorInterface(t *testing.T) { Body: io.NopCloser(bytes.NewBufferString(resBodyString)), Request: req, } - err = newAuthenticationFailedError(credNameAzureCLI, "error message", res) + err = newAuthenticationFailedError(credNameAzureCLI, "error message", res, nil) if e, ok := err.(*AuthenticationFailedError); ok { if e.RawResponse == nil { t.Fatal("expected a non-nil RawResponse") diff --git a/sdk/azidentity/managed_identity_client.go b/sdk/azidentity/managed_identity_client.go index 3fe966ca4821..d7b4a32a544f 100644 --- a/sdk/azidentity/managed_identity_client.go +++ b/sdk/azidentity/managed_identity_client.go @@ -168,7 +168,7 @@ func (c *managedIdentityClient) authenticate(ctx context.Context, id ManagedIDKi resp, err := c.pipeline.Do(msg) if err != nil { - return azcore.AccessToken{}, newAuthenticationFailedError(credNameManagedIdentity, err.Error(), nil) + return azcore.AccessToken{}, newAuthenticationFailedError(credNameManagedIdentity, err.Error(), nil, err) } if runtime.HasStatusCode(resp, http.StatusOK, http.StatusCreated) { @@ -177,12 +177,12 @@ func (c *managedIdentityClient) authenticate(ctx context.Context, id ManagedIDKi if c.msiType == msiTypeIMDS && resp.StatusCode == 400 { if id != nil { - return azcore.AccessToken{}, newAuthenticationFailedError(credNameManagedIdentity, "the requested identity isn't assigned to this resource", resp) + return azcore.AccessToken{}, newAuthenticationFailedError(credNameManagedIdentity, "the requested identity isn't assigned to this resource", resp, nil) } return azcore.AccessToken{}, newCredentialUnavailableError(credNameManagedIdentity, "no default identity is assigned to this resource") } - return azcore.AccessToken{}, newAuthenticationFailedError(credNameManagedIdentity, "authentication failed", resp) + return azcore.AccessToken{}, newAuthenticationFailedError(credNameManagedIdentity, "authentication failed", resp, nil) } func (c *managedIdentityClient) createAccessToken(res *http.Response) (azcore.AccessToken, error) { @@ -210,10 +210,10 @@ func (c *managedIdentityClient) createAccessToken(res *http.Response) (azcore.Ac if expiresOn, err := strconv.Atoi(v); err == nil { return azcore.AccessToken{Token: value.Token, ExpiresOn: time.Unix(int64(expiresOn), 0).UTC()}, nil } - return azcore.AccessToken{}, newAuthenticationFailedError(credNameManagedIdentity, "unexpected expires_on value: "+v, res) + return azcore.AccessToken{}, newAuthenticationFailedError(credNameManagedIdentity, "unexpected expires_on value: "+v, res, nil) default: msg := fmt.Sprintf("unsupported type received in expires_on: %T, %v", v, v) - return azcore.AccessToken{}, newAuthenticationFailedError(credNameManagedIdentity, msg, res) + return azcore.AccessToken{}, newAuthenticationFailedError(credNameManagedIdentity, msg, res, nil) } } @@ -228,7 +228,7 @@ func (c *managedIdentityClient) createAuthRequest(ctx context.Context, id Manage key, err := c.getAzureArcSecretKey(ctx, scopes) if err != nil { msg := fmt.Sprintf("failed to retreive secret key from the identity endpoint: %v", err) - return nil, newAuthenticationFailedError(credNameManagedIdentity, msg, nil) + return nil, newAuthenticationFailedError(credNameManagedIdentity, msg, nil, err) } return c.createAzureArcAuthRequest(ctx, id, scopes, key) case msiTypeServiceFabric: @@ -322,7 +322,7 @@ func (c *managedIdentityClient) getAzureArcSecretKey(ctx context.Context, resour // of the secret key file. Any other status code indicates an error in the request. if response.StatusCode != 401 { msg := fmt.Sprintf("expected a 401 response, received %d", response.StatusCode) - return "", newAuthenticationFailedError(credNameManagedIdentity, msg, response) + return "", newAuthenticationFailedError(credNameManagedIdentity, msg, response, nil) } header := response.Header.Get("WWW-Authenticate") if len(header) == 0 { From 2077f5e3b62f8f7697d769f2e81ee1e8d0e61ba6 Mon Sep 17 00:00:00 2001 From: Rick Winter Date: Wed, 15 Mar 2023 16:48:07 -0700 Subject: [PATCH 105/107] Update dependencies (#20416) * Update dependencies * Fix dependencies and update perf test * Fixup azkeys tests --- sdk/azcore/go.mod | 6 +-- sdk/azcore/go.sum | 12 ++--- sdk/azcore/testdata/perf/client_get.go | 5 +-- sdk/azcore/testdata/perf/go.mod | 8 ++-- sdk/azcore/testdata/perf/go.sum | 45 ++++++++++++++----- sdk/azidentity/go.mod | 18 ++++---- sdk/azidentity/go.sum | 37 +++++++-------- sdk/containers/azcontainerregistry/go.mod | 10 ++--- sdk/containers/azcontainerregistry/go.sum | 20 ++++----- sdk/data/azappconfig/go.mod | 8 ++-- sdk/data/azappconfig/go.sum | 8 ++++ sdk/data/azcosmos/go.mod | 12 ++--- sdk/data/azcosmos/go.sum | 24 +++++----- sdk/data/aztables/go.mod | 14 +++--- sdk/data/aztables/go.sum | 32 +++++++------ sdk/keyvault/azcertificates/go.mod | 12 ++--- sdk/keyvault/azcertificates/go.sum | 24 +++++----- sdk/keyvault/azkeys/go.mod | 12 ++--- sdk/keyvault/azkeys/go.sum | 24 +++++----- .../recordings/TestEncryptDecrypt/KV.json | 2 +- .../recordings/TestEncryptDecrypt/MHSM.json | 2 +- .../TestEncryptDecryptSymmetric.json | 2 +- .../recordings/TestReleaseKey/KV.json | 2 +- .../recordings/TestReleaseKey/MHSM.json | 2 +- .../recordings/TestSignVerify/KV.json | 4 +- .../recordings/TestSignVerify/MHSM.json | 4 +- .../recordings/TestWrapUnwrap/KV.json | 4 +- .../recordings/TestWrapUnwrap/MHSM.json | 4 +- sdk/keyvault/azsecrets/go.mod | 12 ++--- sdk/keyvault/azsecrets/go.sum | 24 +++++----- sdk/keyvault/internal/go.mod | 8 ++-- sdk/keyvault/internal/go.sum | 16 +++---- sdk/messaging/azeventhubs/go.mod | 10 ++--- sdk/messaging/azeventhubs/go.sum | 20 ++++----- sdk/messaging/azservicebus/go.mod | 10 ++--- sdk/messaging/azservicebus/go.sum | 20 ++++----- sdk/monitor/azquery/go.mod | 10 ++--- sdk/monitor/azquery/go.sum | 20 ++++----- sdk/security/keyvault/internal/go.mod | 5 +-- sdk/security/keyvault/internal/go.sum | 23 ++-------- sdk/storage/azblob/go.mod | 10 ++--- sdk/storage/azblob/go.sum | 20 ++++----- sdk/storage/azblob/testdata/perf/go.mod | 10 ++--- sdk/storage/azblob/testdata/perf/go.sum | 18 ++++---- sdk/storage/azqueue/go.mod | 10 ++--- sdk/storage/azqueue/go.sum | 20 ++++----- 46 files changed, 322 insertions(+), 301 deletions(-) diff --git a/sdk/azcore/go.mod b/sdk/azcore/go.mod index 7c4b07230f23..e770170b125a 100644 --- a/sdk/azcore/go.mod +++ b/sdk/azcore/go.mod @@ -3,14 +3,14 @@ module github.com/Azure/azure-sdk-for-go/sdk/azcore go 1.18 require ( - github.com/Azure/azure-sdk-for-go/sdk/internal v1.1.2 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.2.0 github.com/stretchr/testify v1.7.0 - golang.org/x/net v0.7.0 + golang.org/x/net v0.8.0 ) require ( github.com/davecgh/go-spew v1.1.0 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect - golang.org/x/text v0.7.0 // indirect + golang.org/x/text v0.8.0 // indirect gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c // indirect ) diff --git a/sdk/azcore/go.sum b/sdk/azcore/go.sum index 417d560cac01..4a2e799d69c7 100644 --- a/sdk/azcore/go.sum +++ b/sdk/azcore/go.sum @@ -1,5 +1,5 @@ -github.com/Azure/azure-sdk-for-go/sdk/internal v1.1.2 h1:+5VZ72z0Qan5Bog5C+ZkgSqUbeVUd9wgtHOrIKuc5b8= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.1.2/go.mod h1:eWRD7oawr1Mu1sLCawqVc0CUiF43ia3qQMxLscsKQ9w= +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/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= @@ -7,10 +7,10 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN 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/net v0.7.0 h1:rJrUqqhjsgNp7KqAIc25s9pZnjU7TUcSY7HcVZjdn1g= -golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= -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/net v0.8.0 h1:Zrh2ngAOFYneWTAIAPethzeaQLuHwhuBkuV6ZiRnUaQ= +golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc= +golang.org/x/text v0.8.0 h1:57P1ETyNKtuIjB4SRd15iJxuhj8Gc416Y78H3qgMh68= +golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo= diff --git a/sdk/azcore/testdata/perf/client_get.go b/sdk/azcore/testdata/perf/client_get.go index eb997a9410c4..8f94f44c5913 100644 --- a/sdk/azcore/testdata/perf/client_get.go +++ b/sdk/azcore/testdata/perf/client_get.go @@ -9,7 +9,6 @@ import ( "flag" "fmt" - "github.com/Azure/azure-sdk-for-go/sdk/azcore/internal/pipeline" "github.com/Azure/azure-sdk-for-go/sdk/azcore/policy" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/internal/perf" @@ -28,7 +27,7 @@ func clientTestRegister() { type globalClientGETTest struct { perf.PerfTestOptions - req pipeline.Request + req policy.Request } func newClientGETTest(ctx context.Context, options perf.PerfTestOptions) (perf.GlobalPerfTest, error) { @@ -52,7 +51,7 @@ func (g *globalClientGETTest) GlobalCleanup(ctx context.Context) error { type clientGETTest struct { pipeline runtime.Pipeline - req pipeline.Request + req policy.Request } func (g *globalClientGETTest) NewPerfTest(ctx context.Context, options *perf.PerfTestOptions) (perf.PerfTest, error) { diff --git a/sdk/azcore/testdata/perf/go.mod b/sdk/azcore/testdata/perf/go.mod index 0d5d2855d02d..ad41a4fc40f5 100644 --- a/sdk/azcore/testdata/perf/go.mod +++ b/sdk/azcore/testdata/perf/go.mod @@ -3,11 +3,11 @@ module github.com/Azure/azure-sdk-for-go/sdk/azcore/testdata/perf go 1.17 require ( - github.com/Azure/azure-sdk-for-go/sdk/azcore v0.22.0 - github.com/Azure/azure-sdk-for-go/sdk/internal v0.9.2 + github.com/Azure/azure-sdk-for-go/sdk/azcore v1.4.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.2.0 ) require ( - golang.org/x/net v0.0.0-20210610132358-84b48f89b13b // indirect - golang.org/x/text v0.3.6 // indirect + golang.org/x/net v0.8.0 // indirect + golang.org/x/text v0.8.0 // indirect ) diff --git a/sdk/azcore/testdata/perf/go.sum b/sdk/azcore/testdata/perf/go.sum index a4a507579c28..e078b6b676be 100644 --- a/sdk/azcore/testdata/perf/go.sum +++ b/sdk/azcore/testdata/perf/go.sum @@ -1,8 +1,8 @@ -github.com/Azure/azure-sdk-for-go/sdk/azcore v0.22.0 h1:zBJcBJwte0x6PcPK7XaWDMvK2o2ZM2f1sMaqNNavQ5g= -github.com/Azure/azure-sdk-for-go/sdk/azcore v0.22.0/go.mod h1:fBF9PQNqB8scdgpZ3ufzaLntG0AG7C1WjPMsiFOmfHM= -github.com/Azure/azure-sdk-for-go/sdk/internal v0.8.3/go.mod h1:KLF4gFr6DcKFZwSuH8w8yEK6DpFl3LP5rhdvAb7Yz5I= -github.com/Azure/azure-sdk-for-go/sdk/internal v0.9.2 h1:Px2KVERcYEg2Lv25AqC2hVr0xUWaq94wuEObLIkYzmA= -github.com/Azure/azure-sdk-for-go/sdk/internal v0.9.2/go.mod h1:CdSJQNNzZhCkwDaV27XV1w48ZBPtxe7mlrZAsPNxD5g= +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/internal v1.1.2/go.mod h1:eWRD7oawr1Mu1sLCawqVc0CUiF43ia3qQMxLscsKQ9w= +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/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/dnaeon/go-vcr v1.1.0/go.mod h1:M7tiix8f0r6mKKJ3Yq/kqU1OYf3MnfmBWVbPx/yU9ko= @@ -12,23 +12,48 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN 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= +github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= 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-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= +golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= +golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20201010224723-4f7140c49acb/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.0.0-20210610132358-84b48f89b13b h1:k+E048sYJHyVnsr1GDrRZWQ32D2C7lWs9JRc0bel53A= -golang.org/x/net v0.0.0-20210610132358-84b48f89b13b/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= +golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= +golang.org/x/net v0.8.0 h1:Zrh2ngAOFYneWTAIAPethzeaQLuHwhuBkuV6ZiRnUaQ= +golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc= +golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 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/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= +golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= +golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= +golang.org/x/term v0.6.0/go.mod h1:m6U89DPEgQRMq3DNkDClhWw02AUbt2daBVO4cn4Hv9U= 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/text v0.3.6 h1:aRYxNxv6iGQlyVaZmk6ZgYEDa+Jg18DxebPSrd6bg1M= -golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= +golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.8.0 h1:57P1ETyNKtuIjB4SRd15iJxuhj8Gc416Y78H3qgMh68= +golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= +golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= +golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 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/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= diff --git a/sdk/azidentity/go.mod b/sdk/azidentity/go.mod index 98724b6d165c..d90abcce3e29 100644 --- a/sdk/azidentity/go.mod +++ b/sdk/azidentity/go.mod @@ -3,22 +3,22 @@ module github.com/Azure/azure-sdk-for-go/sdk/azidentity go 1.18 require ( - github.com/Azure/azure-sdk-for-go/sdk/azcore v1.0.0 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.0.0 + github.com/Azure/azure-sdk-for-go/sdk/azcore v1.4.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.2.0 github.com/AzureAD/microsoft-authentication-library-for-go v0.8.1 - github.com/golang-jwt/jwt/v4 v4.4.2 - golang.org/x/crypto v0.0.0-20220511200225-c6db032c6c88 + github.com/golang-jwt/jwt/v4 v4.5.0 + golang.org/x/crypto v0.7.0 ) require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/dnaeon/go-vcr v1.1.0 // indirect - github.com/google/uuid v1.1.1 // indirect + github.com/google/uuid v1.3.0 // indirect github.com/kylelemons/godebug v1.1.0 // indirect - github.com/pkg/browser v0.0.0-20210115035449-ce105d075bb4 // indirect - golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4 // indirect - golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f // indirect - golang.org/x/text v0.3.8 // indirect + github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8 // 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 gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect ) diff --git a/sdk/azidentity/go.sum b/sdk/azidentity/go.sum index 10c7a697372c..cb8818c0dfe5 100644 --- a/sdk/azidentity/go.sum +++ b/sdk/azidentity/go.sum @@ -1,32 +1,33 @@ -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/internal v1.0.0 h1:jp0dGvZ7ZK0mgqnTSClMxa5xuRL7NZgHameVYF6BurY= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.0.0/go.mod h1:eWRD7oawr1Mu1sLCawqVc0CUiF43ia3qQMxLscsKQ9w= +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/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.8.1 h1:oPdPEZFSbl7oSPEAIPMPBMUmiL+mqgzBJwM/9qYcwNg= github.com/AzureAD/microsoft-authentication-library-for-go v0.8.1/go.mod h1:4qFor3D/HDsvBME35Xy9rwW9DecL+M2sNw1ybjPtwA0= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 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/v4 v4.4.2 h1:rcc4lwaZgFMCZ5jxF9ABolDcIHdBytAFgqFPbSJQAYs= -github.com/golang-jwt/jwt/v4 v4.4.2/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= -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/golang-jwt/jwt/v4 v4.5.0 h1:7cYmW1XlMY7h7ii7UhUyChSgS5wUJEnm9uZVTGqOWzg= +github.com/golang-jwt/jwt/v4 v4.5.0/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= +github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= +github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= github.com/modocache/gover v0.0.0-20171022184752-b58185e213c5/go.mod h1:caMODM3PzxT8aQXRPkAt8xlV/e7d7w8GM5g0fa5F0D8= -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/pkg/browser v0.0.0-20210911075715-681adbf594b8 h1:KoWmjvw+nsYOo29YJK9vDA65RGE3NrOnUtO7a+RF9HU= +github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8/go.mod h1:HKlIX3XHQyzLZPlr7++PzdhaXEj94dEiJgZDTsxEqUI= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= -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-20220722155257-8c9f86f7a55f h1:v4INt8xihDGvnrfjMDVXGxw9wrfxYyCjk0KbXjhR55s= -golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/text v0.3.8 h1:nAL+RVCQ9uMn3vJZbV+MRnydTJFPf8qqY42YiA6MrqY= -golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ= +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.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/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= 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= diff --git a/sdk/containers/azcontainerregistry/go.mod b/sdk/containers/azcontainerregistry/go.mod index e29d4b95de21..04f52defc72b 100644 --- a/sdk/containers/azcontainerregistry/go.mod +++ b/sdk/containers/azcontainerregistry/go.mod @@ -3,9 +3,9 @@ module github.com/Azure/azure-sdk-for-go/sdk/containers/azcontainerregistry go 1.18 require ( - github.com/Azure/azure-sdk-for-go/sdk/azcore v1.3.1 + github.com/Azure/azure-sdk-for-go/sdk/azcore v1.4.0 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.1 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.1.2 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.2.0 github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry v0.6.0 github.com/stretchr/testify v1.8.1 ) @@ -20,9 +20,9 @@ require ( github.com/pkg/browser v0.0.0-20210115035449-ce105d075bb4 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect golang.org/x/crypto v0.0.0-20220511200225-c6db032c6c88 // indirect - golang.org/x/net v0.5.0 // indirect - golang.org/x/sys v0.4.0 // indirect - golang.org/x/text v0.6.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 gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/sdk/containers/azcontainerregistry/go.sum b/sdk/containers/azcontainerregistry/go.sum index 03d8b5eddabb..5a9d60b89904 100644 --- a/sdk/containers/azcontainerregistry/go.sum +++ b/sdk/containers/azcontainerregistry/go.sum @@ -1,9 +1,9 @@ -github.com/Azure/azure-sdk-for-go/sdk/azcore v1.3.1 h1:gVXuXcWd1i4C2Ruxe321aU+IKGaStvGB/S90PUPB/W8= -github.com/Azure/azure-sdk-for-go/sdk/azcore v1.3.1/go.mod h1:DffdKW9RFqa5VgmsjUOsS7UE7eiA5iAvYUs63bhKQ0M= +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.1 h1:T8quHYlUGyb/oqtSTwqlCr1ilJHrDv+ZtpSfo+hm1BU= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.2.1/go.mod h1:gLa1CL2RNE4s7M3yopJ/p0iq5DdY6Yv5ZUt9MTRZOQM= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.1.2 h1:+5VZ72z0Qan5Bog5C+ZkgSqUbeVUd9wgtHOrIKuc5b8= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.1.2/go.mod h1:eWRD7oawr1Mu1sLCawqVc0CUiF43ia3qQMxLscsKQ9w= +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/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry v0.6.0 h1:Z5/bDxQL2Zc9t6ZDwdRU60bpLHZvoKOeuaM7XVbf2z0= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry v0.6.0/go.mod h1:0FPu3oDRGPvuX1H8TtHJ5XGA0KrXLunomcixR+PQGGA= github.com/AzureAD/microsoft-authentication-library-for-go v0.8.1 h1:oPdPEZFSbl7oSPEAIPMPBMUmiL+mqgzBJwM/9qYcwNg= @@ -33,12 +33,12 @@ github.com/stretchr/testify v1.8.1 h1:w7B6lhMri9wdJUVmEZPGGhZzrYTPvgJArz7wNPgYKs github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= 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.5.0 h1:GyT4nK/YDHSqa1c4753ouYCDajOYKTja9Xb/OHtgvSw= -golang.org/x/net v0.5.0/go.mod h1:DivGGAXEgPSlEBzxGzZI+ZLohi+xUj054jfeKui00ws= -golang.org/x/sys v0.4.0 h1:Zr2JFtRQNX3BCZ8YtxRE9hNJYC8J6I1MVbMg6owUp18= -golang.org/x/sys v0.4.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/text v0.6.0 h1:3XmdazWV+ubf7QgHSTWeykHOci5oeekaGJBLkrkaw4k= -golang.org/x/text v0.6.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +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.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/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= 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= diff --git a/sdk/data/azappconfig/go.mod b/sdk/data/azappconfig/go.mod index 0d09b21c5376..f1576755e4ec 100644 --- a/sdk/data/azappconfig/go.mod +++ b/sdk/data/azappconfig/go.mod @@ -3,15 +3,15 @@ module github.com/Azure/azure-sdk-for-go/sdk/data/azappconfig go 1.18 require ( - github.com/Azure/azure-sdk-for-go/sdk/azcore v1.0.0 + github.com/Azure/azure-sdk-for-go/sdk/azcore v1.4.0 github.com/stretchr/testify v1.7.0 ) require ( - github.com/Azure/azure-sdk-for-go/sdk/internal v1.0.0 // indirect + github.com/Azure/azure-sdk-for-go/sdk/internal v1.2.0 // indirect github.com/davecgh/go-spew v1.1.0 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect - golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4 // indirect - golang.org/x/text v0.3.7 // indirect + golang.org/x/net v0.8.0 // indirect + golang.org/x/text v0.8.0 // indirect gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c // indirect ) diff --git a/sdk/data/azappconfig/go.sum b/sdk/data/azappconfig/go.sum index b2544f35d6ad..0493c8a567c1 100644 --- a/sdk/data/azappconfig/go.sum +++ b/sdk/data/azappconfig/go.sum @@ -1,7 +1,11 @@ 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/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/internal v1.0.0 h1:jp0dGvZ7ZK0mgqnTSClMxa5xuRL7NZgHameVYF6BurY= github.com/Azure/azure-sdk-for-go/sdk/internal v1.0.0/go.mod h1:eWRD7oawr1Mu1sLCawqVc0CUiF43ia3qQMxLscsKQ9w= +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/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= @@ -11,8 +15,12 @@ github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5Cc github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= 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/net v0.8.0 h1:Zrh2ngAOFYneWTAIAPethzeaQLuHwhuBkuV6ZiRnUaQ= +golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc= 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/text v0.8.0 h1:57P1ETyNKtuIjB4SRd15iJxuhj8Gc416Y78H3qgMh68= +golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo= diff --git a/sdk/data/azcosmos/go.mod b/sdk/data/azcosmos/go.mod index d3e7ecf46fbd..d432cb7bf505 100644 --- a/sdk/data/azcosmos/go.mod +++ b/sdk/data/azcosmos/go.mod @@ -3,10 +3,10 @@ module github.com/Azure/azure-sdk-for-go/sdk/data/azcosmos go 1.18 require ( - github.com/Azure/azure-sdk-for-go v63.2.0+incompatible - github.com/Azure/azure-sdk-for-go/sdk/azcore v1.0.0 + github.com/Azure/azure-sdk-for-go v68.0.0+incompatible + github.com/Azure/azure-sdk-for-go/sdk/azcore v1.4.0 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.0.0 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.0.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.2.0 github.com/stretchr/testify v1.7.0 ) @@ -19,8 +19,8 @@ require ( github.com/pkg/browser v0.0.0-20210115035449-ce105d075bb4 // indirect github.com/pmezard/go-difflib v1.0.0 // 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 + golang.org/x/net v0.8.0 // indirect + golang.org/x/sys v0.6.0 // indirect + golang.org/x/text v0.8.0 // indirect gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect ) diff --git a/sdk/data/azcosmos/go.sum b/sdk/data/azcosmos/go.sum index adaaefb42ce6..4df567fcae4b 100644 --- a/sdk/data/azcosmos/go.sum +++ b/sdk/data/azcosmos/go.sum @@ -1,11 +1,11 @@ -github.com/Azure/azure-sdk-for-go v63.2.0+incompatible h1:OIqkK/zTGqVUuzpEvY0B1YSYDRAFC/j+y0w2GovCggI= -github.com/Azure/azure-sdk-for-go v63.2.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= -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 v68.0.0+incompatible h1:fcYLmCpyNYRnvJbPerq7U0hS+6+I79yEDJBqVNcqUzU= +github.com/Azure/azure-sdk-for-go v68.0.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= +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.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/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.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= @@ -29,13 +29,13 @@ github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5Cc github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= 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/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-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -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/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/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= diff --git a/sdk/data/aztables/go.mod b/sdk/data/aztables/go.mod index ec10287a70a7..3ba5ec40739c 100644 --- a/sdk/data/aztables/go.mod +++ b/sdk/data/aztables/go.mod @@ -3,10 +3,10 @@ module github.com/Azure/azure-sdk-for-go/sdk/data/aztables go 1.18 require ( - github.com/Azure/azure-sdk-for-go/sdk/azcore v1.3.0 + github.com/Azure/azure-sdk-for-go/sdk/azcore v1.4.0 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.0.0 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.1.1 - github.com/stretchr/testify v1.7.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.2.0 + github.com/stretchr/testify v1.8.2 ) require ( @@ -19,9 +19,9 @@ require ( github.com/pkg/browser v0.0.0-20210115035449-ce105d075bb4 // indirect github.com/pmezard/go-difflib v1.0.0 // 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 + golang.org/x/net v0.8.0 // indirect + golang.org/x/sys v0.6.0 // indirect + golang.org/x/text v0.8.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect - gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect + gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/sdk/data/aztables/go.sum b/sdk/data/aztables/go.sum index 9e8476e3492c..419269e8f861 100644 --- a/sdk/data/aztables/go.sum +++ b/sdk/data/aztables/go.sum @@ -1,9 +1,9 @@ -github.com/Azure/azure-sdk-for-go/sdk/azcore v1.3.0 h1:VuHAcMq8pU1IWNT/m5yRaGqbK0BiQKHT8X4DTp9CHdI= -github.com/Azure/azure-sdk-for-go/sdk/azcore v1.3.0/go.mod h1:tZoQYdDZNOiIjdSn0dVWVfl0NEPGOJqVLzSrcFk4Is0= +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.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.1.1 h1:Oj853U9kG+RLTCQXpjvOnrv0WaZHxgmZz1TlLywgOPY= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.1.1/go.mod h1:eWRD7oawr1Mu1sLCawqVc0CUiF43ia3qQMxLscsKQ9w= +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.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= @@ -25,22 +25,26 @@ github.com/pkg/browser v0.0.0-20210115035449-ce105d075bb4/go.mod h1:N6UoU20jOqgg 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= +github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= +github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= +github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= +github.com/stretchr/testify v1.8.2 h1:+h33VjcLVPDHtOdpUCuF+7gSuG3yGIftsP1YvFihtJ8= +github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= 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/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-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -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/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/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= 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= -gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= +gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/sdk/keyvault/azcertificates/go.mod b/sdk/keyvault/azcertificates/go.mod index c9a854c7269d..afef3ff29cc3 100644 --- a/sdk/keyvault/azcertificates/go.mod +++ b/sdk/keyvault/azcertificates/go.mod @@ -3,10 +3,10 @@ module github.com/Azure/azure-sdk-for-go/sdk/keyvault/azcertificates go 1.18 require ( - github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.1 + github.com/Azure/azure-sdk-for-go/sdk/azcore v1.4.0 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.1.0 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.0.0 - github.com/Azure/azure-sdk-for-go/sdk/keyvault/internal v0.7.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.2.0 + github.com/Azure/azure-sdk-for-go/sdk/keyvault/internal v0.7.1 github.com/stretchr/testify v1.7.0 ) @@ -20,9 +20,9 @@ require ( github.com/pkg/browser v0.0.0-20210115035449-ce105d075bb4 // indirect github.com/pmezard/go-difflib v1.0.0 // 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 + golang.org/x/net v0.8.0 // indirect + golang.org/x/sys v0.6.0 // indirect + golang.org/x/text v0.8.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect ) diff --git a/sdk/keyvault/azcertificates/go.sum b/sdk/keyvault/azcertificates/go.sum index 1a29c772f8bd..60466e2946f9 100644 --- a/sdk/keyvault/azcertificates/go.sum +++ b/sdk/keyvault/azcertificates/go.sum @@ -1,11 +1,11 @@ -github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.1 h1:tz19qLF65vuu2ibfTqGVJxG/zZAI27NEIIbvAOQwYbw= -github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.1/go.mod h1:uGG2W01BaETf0Ozp+QxxKJdMBNRWPdstHG0Fmdwn1/U= +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.1.0 h1:QkAcEIAKbNL4KoFr4SathZPhDhF4mVwpBMFlYjyAqy8= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.1.0/go.mod h1:bhXu1AjYL+wutSL/kpSq6s7733q2Rb0yuot9Zgfqa/0= -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/Azure/azure-sdk-for-go/sdk/keyvault/internal v0.7.0 h1:Lg6BW0VPmCwcMlvOviL3ruHFO+H9tZNqscK0AeuFjGM= -github.com/Azure/azure-sdk-for-go/sdk/keyvault/internal v0.7.0/go.mod h1:9V2j0jn9jDEkCkv8w/bKTNppX/d0FVA1ud77xCIP4KA= +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/Azure/azure-sdk-for-go/sdk/keyvault/internal v0.7.1 h1:FbH3BbSb4bvGluTesZZ+ttN/MDsnMmQP36OSnDuSXqw= +github.com/Azure/azure-sdk-for-go/sdk/keyvault/internal v0.7.1/go.mod h1:9V2j0jn9jDEkCkv8w/bKTNppX/d0FVA1ud77xCIP4KA= github.com/AzureAD/microsoft-authentication-library-for-go v0.5.1 h1:BWe8a+f/t+7KY7zH2mqygeUD0t8hNFXe08p1Pb3/jKE= github.com/AzureAD/microsoft-authentication-library-for-go v0.5.1/go.mod h1:Vt9sXTKwMyGcOxSmLDMnGPgqsUg7m8pe215qMLrDXw4= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -31,13 +31,13 @@ github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5Cc github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= 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/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-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -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/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/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= 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= diff --git a/sdk/keyvault/azkeys/go.mod b/sdk/keyvault/azkeys/go.mod index 1eb858307964..b62a34658055 100644 --- a/sdk/keyvault/azkeys/go.mod +++ b/sdk/keyvault/azkeys/go.mod @@ -3,10 +3,10 @@ module github.com/Azure/azure-sdk-for-go/sdk/keyvault/azkeys go 1.18 require ( - github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.1 + github.com/Azure/azure-sdk-for-go/sdk/azcore v1.4.0 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.1.0 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.0.0 - github.com/Azure/azure-sdk-for-go/sdk/keyvault/internal v0.7.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.2.0 + github.com/Azure/azure-sdk-for-go/sdk/keyvault/internal v0.7.1 github.com/stretchr/testify v1.7.0 ) @@ -20,9 +20,9 @@ require ( github.com/pkg/browser v0.0.0-20210115035449-ce105d075bb4 // indirect github.com/pmezard/go-difflib v1.0.0 // 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 + golang.org/x/net v0.8.0 // indirect + golang.org/x/sys v0.6.0 // indirect + golang.org/x/text v0.8.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect ) diff --git a/sdk/keyvault/azkeys/go.sum b/sdk/keyvault/azkeys/go.sum index 1a29c772f8bd..60466e2946f9 100644 --- a/sdk/keyvault/azkeys/go.sum +++ b/sdk/keyvault/azkeys/go.sum @@ -1,11 +1,11 @@ -github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.1 h1:tz19qLF65vuu2ibfTqGVJxG/zZAI27NEIIbvAOQwYbw= -github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.1/go.mod h1:uGG2W01BaETf0Ozp+QxxKJdMBNRWPdstHG0Fmdwn1/U= +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.1.0 h1:QkAcEIAKbNL4KoFr4SathZPhDhF4mVwpBMFlYjyAqy8= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.1.0/go.mod h1:bhXu1AjYL+wutSL/kpSq6s7733q2Rb0yuot9Zgfqa/0= -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/Azure/azure-sdk-for-go/sdk/keyvault/internal v0.7.0 h1:Lg6BW0VPmCwcMlvOviL3ruHFO+H9tZNqscK0AeuFjGM= -github.com/Azure/azure-sdk-for-go/sdk/keyvault/internal v0.7.0/go.mod h1:9V2j0jn9jDEkCkv8w/bKTNppX/d0FVA1ud77xCIP4KA= +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/Azure/azure-sdk-for-go/sdk/keyvault/internal v0.7.1 h1:FbH3BbSb4bvGluTesZZ+ttN/MDsnMmQP36OSnDuSXqw= +github.com/Azure/azure-sdk-for-go/sdk/keyvault/internal v0.7.1/go.mod h1:9V2j0jn9jDEkCkv8w/bKTNppX/d0FVA1ud77xCIP4KA= github.com/AzureAD/microsoft-authentication-library-for-go v0.5.1 h1:BWe8a+f/t+7KY7zH2mqygeUD0t8hNFXe08p1Pb3/jKE= github.com/AzureAD/microsoft-authentication-library-for-go v0.5.1/go.mod h1:Vt9sXTKwMyGcOxSmLDMnGPgqsUg7m8pe215qMLrDXw4= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -31,13 +31,13 @@ github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5Cc github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= 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/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-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -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/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/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= 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= diff --git a/sdk/keyvault/azkeys/testdata/recordings/TestEncryptDecrypt/KV.json b/sdk/keyvault/azkeys/testdata/recordings/TestEncryptDecrypt/KV.json index 528593086b9a..84c8f609b8a8 100644 --- a/sdk/keyvault/azkeys/testdata/recordings/TestEncryptDecrypt/KV.json +++ b/sdk/keyvault/azkeys/testdata/recordings/TestEncryptDecrypt/KV.json @@ -123,7 +123,7 @@ } }, { - "RequestUri": "https://fakevault.local/keys/key3964649413//decrypt?api-version=7.3", + "RequestUri": "https://fakevault.local/keys/key3964649413/decrypt?api-version=7.3", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", diff --git a/sdk/keyvault/azkeys/testdata/recordings/TestEncryptDecrypt/MHSM.json b/sdk/keyvault/azkeys/testdata/recordings/TestEncryptDecrypt/MHSM.json index 4fbb1178cab8..62e6d8be5712 100644 --- a/sdk/keyvault/azkeys/testdata/recordings/TestEncryptDecrypt/MHSM.json +++ b/sdk/keyvault/azkeys/testdata/recordings/TestEncryptDecrypt/MHSM.json @@ -114,7 +114,7 @@ } }, { - "RequestUri": "https://fakemhsm.local/keys/key4206922229//decrypt?api-version=7.3", + "RequestUri": "https://fakemhsm.local/keys/key4206922229/decrypt?api-version=7.3", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", diff --git a/sdk/keyvault/azkeys/testdata/recordings/TestEncryptDecryptSymmetric.json b/sdk/keyvault/azkeys/testdata/recordings/TestEncryptDecryptSymmetric.json index 20b104b2efff..a07014ec3d32 100644 --- a/sdk/keyvault/azkeys/testdata/recordings/TestEncryptDecryptSymmetric.json +++ b/sdk/keyvault/azkeys/testdata/recordings/TestEncryptDecryptSymmetric.json @@ -115,7 +115,7 @@ } }, { - "RequestUri": "https://fakemhsm.local/keys/key3126998794//decrypt?api-version=7.3", + "RequestUri": "https://fakemhsm.local/keys/key3126998794/decrypt?api-version=7.3", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", diff --git a/sdk/keyvault/azkeys/testdata/recordings/TestReleaseKey/KV.json b/sdk/keyvault/azkeys/testdata/recordings/TestReleaseKey/KV.json index 968d04011b1c..ab2f2b486369 100644 --- a/sdk/keyvault/azkeys/testdata/recordings/TestReleaseKey/KV.json +++ b/sdk/keyvault/azkeys/testdata/recordings/TestReleaseKey/KV.json @@ -118,7 +118,7 @@ } }, { - "RequestUri": "https://fakevault.local/keys/testreleasekey2353464635//release?api-version=7.3", + "RequestUri": "https://fakevault.local/keys/testreleasekey2353464635/release?api-version=7.3", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", diff --git a/sdk/keyvault/azkeys/testdata/recordings/TestReleaseKey/MHSM.json b/sdk/keyvault/azkeys/testdata/recordings/TestReleaseKey/MHSM.json index 3305d41bc5e0..812b4104d99b 100644 --- a/sdk/keyvault/azkeys/testdata/recordings/TestReleaseKey/MHSM.json +++ b/sdk/keyvault/azkeys/testdata/recordings/TestReleaseKey/MHSM.json @@ -109,7 +109,7 @@ } }, { - "RequestUri": "https://fakemhsm.local/keys/testreleasekey2633194999//release?api-version=7.3", + "RequestUri": "https://fakemhsm.local/keys/testreleasekey2633194999/release?api-version=7.3", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", diff --git a/sdk/keyvault/azkeys/testdata/recordings/TestSignVerify/KV.json b/sdk/keyvault/azkeys/testdata/recordings/TestSignVerify/KV.json index a14888bf0391..971a2aaa20b6 100644 --- a/sdk/keyvault/azkeys/testdata/recordings/TestSignVerify/KV.json +++ b/sdk/keyvault/azkeys/testdata/recordings/TestSignVerify/KV.json @@ -90,7 +90,7 @@ } }, { - "RequestUri": "https://fakevault.local/keys/key3534672839//sign?api-version=7.3", + "RequestUri": "https://fakevault.local/keys/key3534672839/sign?api-version=7.3", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -125,7 +125,7 @@ } }, { - "RequestUri": "https://fakevault.local/keys/key3534672839//verify?api-version=7.3", + "RequestUri": "https://fakevault.local/keys/key3534672839/verify?api-version=7.3", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", diff --git a/sdk/keyvault/azkeys/testdata/recordings/TestSignVerify/MHSM.json b/sdk/keyvault/azkeys/testdata/recordings/TestSignVerify/MHSM.json index 90fc1ceda711..e685ec13b49e 100644 --- a/sdk/keyvault/azkeys/testdata/recordings/TestSignVerify/MHSM.json +++ b/sdk/keyvault/azkeys/testdata/recordings/TestSignVerify/MHSM.json @@ -81,7 +81,7 @@ } }, { - "RequestUri": "https://fakemhsm.local/keys/key474808603//sign?api-version=7.3", + "RequestUri": "https://fakemhsm.local/keys/key474808603/sign?api-version=7.3", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -116,7 +116,7 @@ } }, { - "RequestUri": "https://fakemhsm.local/keys/key474808603//verify?api-version=7.3", + "RequestUri": "https://fakemhsm.local/keys/key474808603/verify?api-version=7.3", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", diff --git a/sdk/keyvault/azkeys/testdata/recordings/TestWrapUnwrap/KV.json b/sdk/keyvault/azkeys/testdata/recordings/TestWrapUnwrap/KV.json index 1c67c29162a0..054df6b29439 100644 --- a/sdk/keyvault/azkeys/testdata/recordings/TestWrapUnwrap/KV.json +++ b/sdk/keyvault/azkeys/testdata/recordings/TestWrapUnwrap/KV.json @@ -88,7 +88,7 @@ } }, { - "RequestUri": "https://fakevault.local/keys/key2582698//wrapkey?api-version=7.3", + "RequestUri": "https://fakevault.local/keys/key2582698/wrapkey?api-version=7.3", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -123,7 +123,7 @@ } }, { - "RequestUri": "https://fakevault.local/keys/key2582698//unwrapkey?api-version=7.3", + "RequestUri": "https://fakevault.local/keys/key2582698/unwrapkey?api-version=7.3", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", diff --git a/sdk/keyvault/azkeys/testdata/recordings/TestWrapUnwrap/MHSM.json b/sdk/keyvault/azkeys/testdata/recordings/TestWrapUnwrap/MHSM.json index 6203193c6417..5d40b0693408 100644 --- a/sdk/keyvault/azkeys/testdata/recordings/TestWrapUnwrap/MHSM.json +++ b/sdk/keyvault/azkeys/testdata/recordings/TestWrapUnwrap/MHSM.json @@ -79,7 +79,7 @@ } }, { - "RequestUri": "https://fakemhsm.local/keys/key817673446//wrapkey?api-version=7.3", + "RequestUri": "https://fakemhsm.local/keys/key817673446/wrapkey?api-version=7.3", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", @@ -114,7 +114,7 @@ } }, { - "RequestUri": "https://fakemhsm.local/keys/key817673446//unwrapkey?api-version=7.3", + "RequestUri": "https://fakemhsm.local/keys/key817673446/unwrapkey?api-version=7.3", "RequestMethod": "POST", "RequestHeaders": { "Accept": "application/json", diff --git a/sdk/keyvault/azsecrets/go.mod b/sdk/keyvault/azsecrets/go.mod index d4c896a0bbaa..e8f8294485ca 100644 --- a/sdk/keyvault/azsecrets/go.mod +++ b/sdk/keyvault/azsecrets/go.mod @@ -3,10 +3,10 @@ module github.com/Azure/azure-sdk-for-go/sdk/keyvault/azsecrets go 1.18 require ( - github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.1 + github.com/Azure/azure-sdk-for-go/sdk/azcore v1.4.0 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.1.0 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.0.0 - github.com/Azure/azure-sdk-for-go/sdk/keyvault/internal v0.7.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.2.0 + github.com/Azure/azure-sdk-for-go/sdk/keyvault/internal v0.7.1 github.com/stretchr/testify v1.7.0 ) @@ -20,9 +20,9 @@ require ( github.com/pkg/browser v0.0.0-20210115035449-ce105d075bb4 // indirect github.com/pmezard/go-difflib v1.0.0 // 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 + golang.org/x/net v0.8.0 // indirect + golang.org/x/sys v0.6.0 // indirect + golang.org/x/text v0.8.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect ) diff --git a/sdk/keyvault/azsecrets/go.sum b/sdk/keyvault/azsecrets/go.sum index 1a29c772f8bd..60466e2946f9 100644 --- a/sdk/keyvault/azsecrets/go.sum +++ b/sdk/keyvault/azsecrets/go.sum @@ -1,11 +1,11 @@ -github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.1 h1:tz19qLF65vuu2ibfTqGVJxG/zZAI27NEIIbvAOQwYbw= -github.com/Azure/azure-sdk-for-go/sdk/azcore v1.1.1/go.mod h1:uGG2W01BaETf0Ozp+QxxKJdMBNRWPdstHG0Fmdwn1/U= +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.1.0 h1:QkAcEIAKbNL4KoFr4SathZPhDhF4mVwpBMFlYjyAqy8= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.1.0/go.mod h1:bhXu1AjYL+wutSL/kpSq6s7733q2Rb0yuot9Zgfqa/0= -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/Azure/azure-sdk-for-go/sdk/keyvault/internal v0.7.0 h1:Lg6BW0VPmCwcMlvOviL3ruHFO+H9tZNqscK0AeuFjGM= -github.com/Azure/azure-sdk-for-go/sdk/keyvault/internal v0.7.0/go.mod h1:9V2j0jn9jDEkCkv8w/bKTNppX/d0FVA1ud77xCIP4KA= +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/Azure/azure-sdk-for-go/sdk/keyvault/internal v0.7.1 h1:FbH3BbSb4bvGluTesZZ+ttN/MDsnMmQP36OSnDuSXqw= +github.com/Azure/azure-sdk-for-go/sdk/keyvault/internal v0.7.1/go.mod h1:9V2j0jn9jDEkCkv8w/bKTNppX/d0FVA1ud77xCIP4KA= github.com/AzureAD/microsoft-authentication-library-for-go v0.5.1 h1:BWe8a+f/t+7KY7zH2mqygeUD0t8hNFXe08p1Pb3/jKE= github.com/AzureAD/microsoft-authentication-library-for-go v0.5.1/go.mod h1:Vt9sXTKwMyGcOxSmLDMnGPgqsUg7m8pe215qMLrDXw4= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -31,13 +31,13 @@ github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5Cc github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= 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/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-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -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/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/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= 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= diff --git a/sdk/keyvault/internal/go.mod b/sdk/keyvault/internal/go.mod index da65a59fc620..9998f18d6c97 100644 --- a/sdk/keyvault/internal/go.mod +++ b/sdk/keyvault/internal/go.mod @@ -3,15 +3,15 @@ module github.com/Azure/azure-sdk-for-go/sdk/keyvault/internal go 1.18 require ( - github.com/Azure/azure-sdk-for-go/sdk/azcore v1.3.0 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.1.1 + github.com/Azure/azure-sdk-for-go/sdk/azcore v1.4.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.2.0 github.com/stretchr/testify v1.7.0 ) require ( github.com/davecgh/go-spew v1.1.0 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect - golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4 // indirect - golang.org/x/text v0.3.7 // indirect + golang.org/x/net v0.8.0 // indirect + golang.org/x/text v0.8.0 // indirect gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c // indirect ) diff --git a/sdk/keyvault/internal/go.sum b/sdk/keyvault/internal/go.sum index 45bf8a734a06..d8c4315b7016 100644 --- a/sdk/keyvault/internal/go.sum +++ b/sdk/keyvault/internal/go.sum @@ -1,7 +1,7 @@ -github.com/Azure/azure-sdk-for-go/sdk/azcore v1.3.0 h1:VuHAcMq8pU1IWNT/m5yRaGqbK0BiQKHT8X4DTp9CHdI= -github.com/Azure/azure-sdk-for-go/sdk/azcore v1.3.0/go.mod h1:tZoQYdDZNOiIjdSn0dVWVfl0NEPGOJqVLzSrcFk4Is0= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.1.1 h1:Oj853U9kG+RLTCQXpjvOnrv0WaZHxgmZz1TlLywgOPY= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.1.1/go.mod h1:eWRD7oawr1Mu1sLCawqVc0CUiF43ia3qQMxLscsKQ9w= +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/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/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= @@ -9,10 +9,10 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN 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/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/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk= -golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= +golang.org/x/net v0.8.0 h1:Zrh2ngAOFYneWTAIAPethzeaQLuHwhuBkuV6ZiRnUaQ= +golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc= +golang.org/x/text v0.8.0 h1:57P1ETyNKtuIjB4SRd15iJxuhj8Gc416Y78H3qgMh68= +golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo= diff --git a/sdk/messaging/azeventhubs/go.mod b/sdk/messaging/azeventhubs/go.mod index b83df482a6aa..e158f2a2713d 100644 --- a/sdk/messaging/azeventhubs/go.mod +++ b/sdk/messaging/azeventhubs/go.mod @@ -3,9 +3,9 @@ module github.com/Azure/azure-sdk-for-go/sdk/messaging/azeventhubs go 1.18 require ( - github.com/Azure/azure-sdk-for-go/sdk/azcore v1.3.0 + github.com/Azure/azure-sdk-for-go/sdk/azcore v1.4.0 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.1.0 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.1.2 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.2.0 github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/eventhub/armeventhub v1.0.0 github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v1.0.0 github.com/golang/mock v1.6.0 @@ -26,9 +26,9 @@ require ( github.com/pkg/browser v0.0.0-20210115035449-ce105d075bb4 // indirect github.com/pmezard/go-difflib v1.0.0 // 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 + golang.org/x/net v0.8.0 // indirect + golang.org/x/sys v0.6.0 // indirect + golang.org/x/text v0.8.0 // indirect gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect ) diff --git a/sdk/messaging/azeventhubs/go.sum b/sdk/messaging/azeventhubs/go.sum index 1436a17a878a..20d483a3af2e 100644 --- a/sdk/messaging/azeventhubs/go.sum +++ b/sdk/messaging/azeventhubs/go.sum @@ -1,11 +1,11 @@ code.cloudfoundry.org/clock v0.0.0-20180518195852-02e53af36e6c h1:5eeuG0BHx1+DHeT3AP+ISKZ2ht1UjGhm581ljqYpVeQ= code.cloudfoundry.org/clock v0.0.0-20180518195852-02e53af36e6c/go.mod h1:QD9Lzhd/ux6eNQVUDVRJX/RKTigpewimNYBi7ivZKY8= -github.com/Azure/azure-sdk-for-go/sdk/azcore v1.3.0 h1:VuHAcMq8pU1IWNT/m5yRaGqbK0BiQKHT8X4DTp9CHdI= -github.com/Azure/azure-sdk-for-go/sdk/azcore v1.3.0/go.mod h1:tZoQYdDZNOiIjdSn0dVWVfl0NEPGOJqVLzSrcFk4Is0= +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.1.0 h1:QkAcEIAKbNL4KoFr4SathZPhDhF4mVwpBMFlYjyAqy8= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.1.0/go.mod h1:bhXu1AjYL+wutSL/kpSq6s7733q2Rb0yuot9Zgfqa/0= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.1.2 h1:+5VZ72z0Qan5Bog5C+ZkgSqUbeVUd9wgtHOrIKuc5b8= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.1.2/go.mod h1:eWRD7oawr1Mu1sLCawqVc0CUiF43ia3qQMxLscsKQ9w= +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/Azure/azure-sdk-for-go/sdk/resourcemanager/eventhub/armeventhub v1.0.0 h1:BWeAAEzkCnL0ABVJqs+4mYudNch7oFGPtTlSmIWL8ms= github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/eventhub/armeventhub v1.0.0/go.mod h1:Y3gnVwfaz8h6L1YHar+NfWORtBoVUSB5h4GlGkdeF7Q= github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v1.0.0 h1:u/LLAOFgsMv7HmNL4Qufg58y+qElGOt5qv0z1mURkRY= @@ -104,8 +104,8 @@ golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73r golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= -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/net v0.8.0 h1:Zrh2ngAOFYneWTAIAPethzeaQLuHwhuBkuV6ZiRnUaQ= +golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -117,14 +117,14 @@ golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -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/sys v0.6.0 h1:MVltZSvRTcU2ljQOhs94SXPftV6DCNnZViHeQps87pQ= +golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -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/text v0.8.0 h1:57P1ETyNKtuIjB4SRd15iJxuhj8Gc416Y78H3qgMh68= +golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= diff --git a/sdk/messaging/azservicebus/go.mod b/sdk/messaging/azservicebus/go.mod index 383c288fbbf7..3b70a5f5868e 100644 --- a/sdk/messaging/azservicebus/go.mod +++ b/sdk/messaging/azservicebus/go.mod @@ -5,9 +5,9 @@ go 1.18 retract v1.1.2 // Breaks customers in situations where close is slow/infinite. require ( - github.com/Azure/azure-sdk-for-go/sdk/azcore v1.0.0 + github.com/Azure/azure-sdk-for-go/sdk/azcore v1.4.0 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.0.0 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.1.2 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.2.0 ) require ( @@ -37,8 +37,8 @@ require ( github.com/pkg/browser v0.0.0-20210115035449-ce105d075bb4 // indirect github.com/pmezard/go-difflib v1.0.0 // 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 + golang.org/x/net v0.8.0 // indirect + golang.org/x/sys v0.6.0 // indirect + golang.org/x/text v0.8.0 // indirect gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect ) diff --git a/sdk/messaging/azservicebus/go.sum b/sdk/messaging/azservicebus/go.sum index 5b65d5ef3c5f..69c9fadf8fe8 100644 --- a/sdk/messaging/azservicebus/go.sum +++ b/sdk/messaging/azservicebus/go.sum @@ -1,11 +1,11 @@ code.cloudfoundry.org/clock v0.0.0-20180518195852-02e53af36e6c h1:5eeuG0BHx1+DHeT3AP+ISKZ2ht1UjGhm581ljqYpVeQ= code.cloudfoundry.org/clock v0.0.0-20180518195852-02e53af36e6c/go.mod h1:QD9Lzhd/ux6eNQVUDVRJX/RKTigpewimNYBi7ivZKY8= -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/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.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.1.2 h1:+5VZ72z0Qan5Bog5C+ZkgSqUbeVUd9wgtHOrIKuc5b8= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.1.2/go.mod h1:eWRD7oawr1Mu1sLCawqVc0CUiF43ia3qQMxLscsKQ9w= +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.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= @@ -101,8 +101,8 @@ golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73r golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= -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/net v0.8.0 h1:Zrh2ngAOFYneWTAIAPethzeaQLuHwhuBkuV6ZiRnUaQ= +golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= @@ -114,14 +114,14 @@ golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -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/sys v0.6.0 h1:MVltZSvRTcU2ljQOhs94SXPftV6DCNnZViHeQps87pQ= +golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -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/text v0.8.0 h1:57P1ETyNKtuIjB4SRd15iJxuhj8Gc416Y78H3qgMh68= +golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= diff --git a/sdk/monitor/azquery/go.mod b/sdk/monitor/azquery/go.mod index e53602590117..1b3d0d6d04f9 100644 --- a/sdk/monitor/azquery/go.mod +++ b/sdk/monitor/azquery/go.mod @@ -3,9 +3,9 @@ module github.com/Azure/azure-sdk-for-go/sdk/monitor/azquery go 1.18 require ( - github.com/Azure/azure-sdk-for-go/sdk/azcore v1.3.0 + github.com/Azure/azure-sdk-for-go/sdk/azcore v1.4.0 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.1.0 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.1.1 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.2.0 github.com/stretchr/testify v1.7.0 ) @@ -19,9 +19,9 @@ require ( github.com/pkg/browser v0.0.0-20210115035449-ce105d075bb4 // indirect github.com/pmezard/go-difflib v1.0.0 // 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 + golang.org/x/net v0.8.0 // indirect + golang.org/x/sys v0.6.0 // indirect + golang.org/x/text v0.8.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect ) diff --git a/sdk/monitor/azquery/go.sum b/sdk/monitor/azquery/go.sum index 4d5d8a411a3d..342569ba6411 100644 --- a/sdk/monitor/azquery/go.sum +++ b/sdk/monitor/azquery/go.sum @@ -1,9 +1,9 @@ -github.com/Azure/azure-sdk-for-go/sdk/azcore v1.3.0 h1:VuHAcMq8pU1IWNT/m5yRaGqbK0BiQKHT8X4DTp9CHdI= -github.com/Azure/azure-sdk-for-go/sdk/azcore v1.3.0/go.mod h1:tZoQYdDZNOiIjdSn0dVWVfl0NEPGOJqVLzSrcFk4Is0= +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.1.0 h1:QkAcEIAKbNL4KoFr4SathZPhDhF4mVwpBMFlYjyAqy8= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.1.0/go.mod h1:bhXu1AjYL+wutSL/kpSq6s7733q2Rb0yuot9Zgfqa/0= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.1.1 h1:Oj853U9kG+RLTCQXpjvOnrv0WaZHxgmZz1TlLywgOPY= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.1.1/go.mod h1:eWRD7oawr1Mu1sLCawqVc0CUiF43ia3qQMxLscsKQ9w= +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.5.1 h1:BWe8a+f/t+7KY7zH2mqygeUD0t8hNFXe08p1Pb3/jKE= github.com/AzureAD/microsoft-authentication-library-for-go v0.5.1/go.mod h1:Vt9sXTKwMyGcOxSmLDMnGPgqsUg7m8pe215qMLrDXw4= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -29,13 +29,13 @@ github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5Cc github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= 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/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-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -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/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/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= 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= diff --git a/sdk/security/keyvault/internal/go.mod b/sdk/security/keyvault/internal/go.mod index b171b82bc26f..2e578ea43390 100644 --- a/sdk/security/keyvault/internal/go.mod +++ b/sdk/security/keyvault/internal/go.mod @@ -11,8 +11,7 @@ require ( require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect - github.com/stretchr/objx v0.5.0 // indirect - golang.org/x/net v0.7.0 // indirect - golang.org/x/text v0.7.0 // indirect + golang.org/x/net v0.8.0 // indirect + golang.org/x/text v0.8.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/sdk/security/keyvault/internal/go.sum b/sdk/security/keyvault/internal/go.sum index 1759c649a67d..2528f26b4197 100644 --- a/sdk/security/keyvault/internal/go.sum +++ b/sdk/security/keyvault/internal/go.sum @@ -1,14 +1,7 @@ -github.com/Azure/azure-sdk-for-go/sdk/azcore v1.3.0 h1:VuHAcMq8pU1IWNT/m5yRaGqbK0BiQKHT8X4DTp9CHdI= -github.com/Azure/azure-sdk-for-go/sdk/azcore v1.3.0/go.mod h1:tZoQYdDZNOiIjdSn0dVWVfl0NEPGOJqVLzSrcFk4Is0= 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/internal v1.1.1 h1:Oj853U9kG+RLTCQXpjvOnrv0WaZHxgmZz1TlLywgOPY= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.1.1/go.mod h1:eWRD7oawr1Mu1sLCawqVc0CUiF43ia3qQMxLscsKQ9w= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.1.2 h1:+5VZ72z0Qan5Bog5C+ZkgSqUbeVUd9wgtHOrIKuc5b8= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.1.2/go.mod h1:eWRD7oawr1Mu1sLCawqVc0CUiF43ia3qQMxLscsKQ9w= 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/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= 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/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -16,25 +9,17 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb 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/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= -github.com/stretchr/objx v0.5.0 h1:1zr/of2m5FGMsad5YfcqgdqdWrIhu+EBEJRhR1U7z/c= github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= -github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= -github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= github.com/stretchr/testify v1.8.2 h1:+h33VjcLVPDHtOdpUCuF+7gSuG3yGIftsP1YvFihtJ8= github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= -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/net v0.7.0 h1:rJrUqqhjsgNp7KqAIc25s9pZnjU7TUcSY7HcVZjdn1g= -golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= -golang.org/x/text v0.3.8 h1:nAL+RVCQ9uMn3vJZbV+MRnydTJFPf8qqY42YiA6MrqY= -golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ= -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/net v0.8.0 h1:Zrh2ngAOFYneWTAIAPethzeaQLuHwhuBkuV6ZiRnUaQ= +golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc= +golang.org/x/text v0.8.0 h1:57P1ETyNKtuIjB4SRd15iJxuhj8Gc416Y78H3qgMh68= +golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/sdk/storage/azblob/go.mod b/sdk/storage/azblob/go.mod index 145012f581c5..b806c73c66ed 100644 --- a/sdk/storage/azblob/go.mod +++ b/sdk/storage/azblob/go.mod @@ -3,9 +3,9 @@ module github.com/Azure/azure-sdk-for-go/sdk/storage/azblob go 1.18 require ( - github.com/Azure/azure-sdk-for-go/sdk/azcore v1.3.0 + github.com/Azure/azure-sdk-for-go/sdk/azcore v1.4.0 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.1.0 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.1.1 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.2.0 github.com/stretchr/testify v1.7.1 ) @@ -19,9 +19,9 @@ require ( github.com/pkg/browser v0.0.0-20210115035449-ce105d075bb4 // indirect github.com/pmezard/go-difflib v1.0.0 // 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 + golang.org/x/net v0.8.0 // indirect + golang.org/x/sys v0.6.0 // indirect + golang.org/x/text v0.8.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect ) diff --git a/sdk/storage/azblob/go.sum b/sdk/storage/azblob/go.sum index 425802174911..5570bcf240ad 100644 --- a/sdk/storage/azblob/go.sum +++ b/sdk/storage/azblob/go.sum @@ -1,9 +1,9 @@ -github.com/Azure/azure-sdk-for-go/sdk/azcore v1.3.0 h1:VuHAcMq8pU1IWNT/m5yRaGqbK0BiQKHT8X4DTp9CHdI= -github.com/Azure/azure-sdk-for-go/sdk/azcore v1.3.0/go.mod h1:tZoQYdDZNOiIjdSn0dVWVfl0NEPGOJqVLzSrcFk4Is0= +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.1.0 h1:QkAcEIAKbNL4KoFr4SathZPhDhF4mVwpBMFlYjyAqy8= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.1.0/go.mod h1:bhXu1AjYL+wutSL/kpSq6s7733q2Rb0yuot9Zgfqa/0= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.1.1 h1:Oj853U9kG+RLTCQXpjvOnrv0WaZHxgmZz1TlLywgOPY= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.1.1/go.mod h1:eWRD7oawr1Mu1sLCawqVc0CUiF43ia3qQMxLscsKQ9w= +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.5.1 h1:BWe8a+f/t+7KY7zH2mqygeUD0t8hNFXe08p1Pb3/jKE= github.com/AzureAD/microsoft-authentication-library-for-go v0.5.1/go.mod h1:Vt9sXTKwMyGcOxSmLDMnGPgqsUg7m8pe215qMLrDXw4= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -29,13 +29,13 @@ github.com/stretchr/testify v1.7.1 h1:5TQK59W5E3v0r2duFAb7P95B6hEeOyEnHRa8MjYSMT github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= 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/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-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -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/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/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= 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= diff --git a/sdk/storage/azblob/testdata/perf/go.mod b/sdk/storage/azblob/testdata/perf/go.mod index ef6081157ff0..da2d6c9afcaa 100644 --- a/sdk/storage/azblob/testdata/perf/go.mod +++ b/sdk/storage/azblob/testdata/perf/go.mod @@ -3,14 +3,14 @@ module github.com/Azure/azure-sdk-for-go/sdk/storage/azblob/testdata/perf go 1.18 require ( - github.com/Azure/azure-sdk-for-go/sdk/azcore v1.3.0 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.1.1 - github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v0.4.0 + github.com/Azure/azure-sdk-for-go/sdk/azcore v1.4.0 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.2.0 + github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v1.0.0 ) require ( - golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4 // indirect - golang.org/x/text v0.3.7 // indirect + golang.org/x/net v0.8.0 // indirect + golang.org/x/text v0.8.0 // indirect ) replace github.com/Azure/azure-sdk-for-go/sdk/storage/azblob => ../../. diff --git a/sdk/storage/azblob/testdata/perf/go.sum b/sdk/storage/azblob/testdata/perf/go.sum index be8f9ac6365e..51f7f5206270 100644 --- a/sdk/storage/azblob/testdata/perf/go.sum +++ b/sdk/storage/azblob/testdata/perf/go.sum @@ -1,8 +1,8 @@ -github.com/Azure/azure-sdk-for-go/sdk/azcore v1.3.0 h1:VuHAcMq8pU1IWNT/m5yRaGqbK0BiQKHT8X4DTp9CHdI= -github.com/Azure/azure-sdk-for-go/sdk/azcore v1.3.0/go.mod h1:tZoQYdDZNOiIjdSn0dVWVfl0NEPGOJqVLzSrcFk4Is0= +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.1.0 h1:QkAcEIAKbNL4KoFr4SathZPhDhF4mVwpBMFlYjyAqy8= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.1.1 h1:Oj853U9kG+RLTCQXpjvOnrv0WaZHxgmZz1TlLywgOPY= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.1.1/go.mod h1:eWRD7oawr1Mu1sLCawqVc0CUiF43ia3qQMxLscsKQ9w= +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.5.1 h1:BWe8a+f/t+7KY7zH2mqygeUD0t8hNFXe08p1Pb3/jKE= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/dnaeon/go-vcr v1.1.0 h1:ReYa/UBrRyQdant9B4fNHGoCNKw6qh6P0fsdGmZpR7c= @@ -13,10 +13,10 @@ github.com/pkg/browser v0.0.0-20210115035449-ce105d075bb4 h1:Qj1ukM4GlMWXNdMBuXc github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/stretchr/testify v1.7.1 h1:5TQK59W5E3v0r2duFAb7P95B6hEeOyEnHRa8MjYSMTY= golang.org/x/crypto v0.0.0-20220511200225-c6db032c6c88 h1:Tgea0cVUD0ivh5ADBX4WwuI12DUd2to3nCYe2eayMIw= -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-20211216021012-1d35b9e2eb4e h1:fLOSk5Q00efkSvAm+4xcoXD+RRmLmmulPn5I3Y9F2EM= -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/net v0.8.0 h1:Zrh2ngAOFYneWTAIAPethzeaQLuHwhuBkuV6ZiRnUaQ= +golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc= +golang.org/x/sys v0.6.0 h1:MVltZSvRTcU2ljQOhs94SXPftV6DCNnZViHeQps87pQ= +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= diff --git a/sdk/storage/azqueue/go.mod b/sdk/storage/azqueue/go.mod index c3f687d02999..71326b314675 100644 --- a/sdk/storage/azqueue/go.mod +++ b/sdk/storage/azqueue/go.mod @@ -3,9 +3,9 @@ module github.com/Azure/azure-sdk-for-go/sdk/storage/azqueue go 1.18 require ( - github.com/Azure/azure-sdk-for-go/sdk/azcore v1.3.1 + github.com/Azure/azure-sdk-for-go/sdk/azcore v1.4.0 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.1.0 - github.com/Azure/azure-sdk-for-go/sdk/internal v1.1.2 + github.com/Azure/azure-sdk-for-go/sdk/internal v1.2.0 github.com/stretchr/testify v1.7.0 ) @@ -19,9 +19,9 @@ require ( github.com/pkg/browser v0.0.0-20210115035449-ce105d075bb4 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect golang.org/x/crypto v0.0.0-20220511200225-c6db032c6c88 // 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/net v0.8.0 // indirect + golang.org/x/sys v0.6.0 // indirect + golang.org/x/text v0.8.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect ) diff --git a/sdk/storage/azqueue/go.sum b/sdk/storage/azqueue/go.sum index b9c9d0bd698e..342569ba6411 100644 --- a/sdk/storage/azqueue/go.sum +++ b/sdk/storage/azqueue/go.sum @@ -1,9 +1,9 @@ -github.com/Azure/azure-sdk-for-go/sdk/azcore v1.3.1 h1:gVXuXcWd1i4C2Ruxe321aU+IKGaStvGB/S90PUPB/W8= -github.com/Azure/azure-sdk-for-go/sdk/azcore v1.3.1/go.mod h1:DffdKW9RFqa5VgmsjUOsS7UE7eiA5iAvYUs63bhKQ0M= +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.1.0 h1:QkAcEIAKbNL4KoFr4SathZPhDhF4mVwpBMFlYjyAqy8= github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.1.0/go.mod h1:bhXu1AjYL+wutSL/kpSq6s7733q2Rb0yuot9Zgfqa/0= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.1.2 h1:+5VZ72z0Qan5Bog5C+ZkgSqUbeVUd9wgtHOrIKuc5b8= -github.com/Azure/azure-sdk-for-go/sdk/internal v1.1.2/go.mod h1:eWRD7oawr1Mu1sLCawqVc0CUiF43ia3qQMxLscsKQ9w= +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.5.1 h1:BWe8a+f/t+7KY7zH2mqygeUD0t8hNFXe08p1Pb3/jKE= github.com/AzureAD/microsoft-authentication-library-for-go v0.5.1/go.mod h1:Vt9sXTKwMyGcOxSmLDMnGPgqsUg7m8pe215qMLrDXw4= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= @@ -29,13 +29,13 @@ github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5Cc github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= 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.7.0 h1:rJrUqqhjsgNp7KqAIc25s9pZnjU7TUcSY7HcVZjdn1g= -golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= +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-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -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/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= 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= From 57dc4036ff8c43ee7a4155cc2a1c56d1cfa3aa93 Mon Sep 17 00:00:00 2001 From: Rick Winter Date: Tue, 7 Feb 2023 17:33:07 -0800 Subject: [PATCH 106/107] Add azcore aasets.json --- sdk/azcore/assets.json | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 sdk/azcore/assets.json diff --git a/sdk/azcore/assets.json b/sdk/azcore/assets.json new file mode 100644 index 000000000000..55043f3348b0 --- /dev/null +++ b/sdk/azcore/assets.json @@ -0,0 +1,6 @@ +{ + "AssetsRepo": "Azure/azure-sdk-assets", + "AssetsRepoPrefixPath": "go", + "TagPrefix": "go/azcore", + "Tag": "" +} From 5f0537852e9b782e94fae7a36fb6b823872de61b Mon Sep 17 00:00:00 2001 From: Rick Winter Date: Tue, 7 Feb 2023 17:34:33 -0800 Subject: [PATCH 107/107] Move azidentity recordings --- sdk/azidentity/assets.json | 6 + ...tClientCertificateCredentialADFS_Live.json | 145 --------- ...CertificateCredential_InvalidCertLive.json | 218 ------------- .../PEM.json | 213 ------------- .../PKCS12.json | 213 ------------- .../SNI.json | 213 ------------- .../instance_discovery_disabled.json | 136 -------- ...tClientCertificateCredential_Regional.json | 120 ------- .../TestClientSecretCredentialADFS_Live.json | 145 --------- ...entSecretCredential_InvalidSecretLive.json | 218 ------------- .../default_options.json | 213 ------------- .../instance_discovery_disabled.json | 138 -------- .../TestDeviceCodeCredentialADFS_Live.json | 183 ----------- .../default_options.json | 296 ----------------- .../instance_discovery_disabled.json | 179 ----------- .../optional_tenant.json | 299 ------------------ ...onmentCredentialADFS_ClientSecretLive.json | 145 --------- ...onmentCredentialADFS_UserPasswordLive.json | 149 --------- .../default_options.json | 213 ------------- .../instance_discovery_disabled.json | 136 -------- ...entCredential_InvalidClientSecretLive.json | 218 ------------- ...ronmentCredential_InvalidPasswordLive.json | 255 --------------- .../default_options.json | 255 --------------- .../instance_discovery_disabled.json | 180 ----------- ...edIdentityCredential_IMDSClientIDLive.json | 33 -- ...estManagedIdentityCredential_IMDSLive.json | 33 -- ...IdentityCredential_IMDSResourceIDLive.json | 33 -- ...stUsernamePasswordCredentialADFS_Live.json | 149 --------- ...asswordCredential_InvalidPasswordLive.json | 255 --------------- .../default_options.json | 255 --------------- .../instance_discovery_disabled.json | 177 ----------- 31 files changed, 6 insertions(+), 5415 deletions(-) create mode 100644 sdk/azidentity/assets.json delete mode 100644 sdk/azidentity/testdata/recordings/TestClientCertificateCredentialADFS_Live.json delete mode 100644 sdk/azidentity/testdata/recordings/TestClientCertificateCredential_InvalidCertLive.json delete mode 100644 sdk/azidentity/testdata/recordings/TestClientCertificateCredential_Live/PEM.json delete mode 100644 sdk/azidentity/testdata/recordings/TestClientCertificateCredential_Live/PKCS12.json delete mode 100644 sdk/azidentity/testdata/recordings/TestClientCertificateCredential_Live/SNI.json delete mode 100644 sdk/azidentity/testdata/recordings/TestClientCertificateCredential_Live/instance_discovery_disabled.json delete mode 100644 sdk/azidentity/testdata/recordings/TestClientCertificateCredential_Regional.json delete mode 100644 sdk/azidentity/testdata/recordings/TestClientSecretCredentialADFS_Live.json delete mode 100644 sdk/azidentity/testdata/recordings/TestClientSecretCredential_InvalidSecretLive.json delete mode 100644 sdk/azidentity/testdata/recordings/TestClientSecretCredential_Live/default_options.json delete mode 100644 sdk/azidentity/testdata/recordings/TestClientSecretCredential_Live/instance_discovery_disabled.json delete mode 100644 sdk/azidentity/testdata/recordings/TestDeviceCodeCredentialADFS_Live.json delete mode 100644 sdk/azidentity/testdata/recordings/TestDeviceCodeCredential_Live/default_options.json delete mode 100644 sdk/azidentity/testdata/recordings/TestDeviceCodeCredential_Live/instance_discovery_disabled.json delete mode 100644 sdk/azidentity/testdata/recordings/TestDeviceCodeCredential_Live/optional_tenant.json delete mode 100644 sdk/azidentity/testdata/recordings/TestEnvironmentCredentialADFS_ClientSecretLive.json delete mode 100644 sdk/azidentity/testdata/recordings/TestEnvironmentCredentialADFS_UserPasswordLive.json delete mode 100644 sdk/azidentity/testdata/recordings/TestEnvironmentCredential_ClientSecretLive/default_options.json delete mode 100644 sdk/azidentity/testdata/recordings/TestEnvironmentCredential_ClientSecretLive/instance_discovery_disabled.json delete mode 100644 sdk/azidentity/testdata/recordings/TestEnvironmentCredential_InvalidClientSecretLive.json delete mode 100644 sdk/azidentity/testdata/recordings/TestEnvironmentCredential_InvalidPasswordLive.json delete mode 100644 sdk/azidentity/testdata/recordings/TestEnvironmentCredential_UserPasswordLive/default_options.json delete mode 100644 sdk/azidentity/testdata/recordings/TestEnvironmentCredential_UserPasswordLive/instance_discovery_disabled.json delete mode 100644 sdk/azidentity/testdata/recordings/TestManagedIdentityCredential_IMDSClientIDLive.json delete mode 100644 sdk/azidentity/testdata/recordings/TestManagedIdentityCredential_IMDSLive.json delete mode 100644 sdk/azidentity/testdata/recordings/TestManagedIdentityCredential_IMDSResourceIDLive.json delete mode 100644 sdk/azidentity/testdata/recordings/TestUsernamePasswordCredentialADFS_Live.json delete mode 100644 sdk/azidentity/testdata/recordings/TestUsernamePasswordCredential_InvalidPasswordLive.json delete mode 100644 sdk/azidentity/testdata/recordings/TestUsernamePasswordCredential_Live/default_options.json delete mode 100644 sdk/azidentity/testdata/recordings/TestUsernamePasswordCredential_Live/instance_discovery_disabled.json diff --git a/sdk/azidentity/assets.json b/sdk/azidentity/assets.json new file mode 100644 index 000000000000..495d0a2db8a3 --- /dev/null +++ b/sdk/azidentity/assets.json @@ -0,0 +1,6 @@ +{ + "AssetsRepo": "Azure/azure-sdk-assets", + "AssetsRepoPrefixPath": "go", + "TagPrefix": "go/azidentity", + "Tag": "go/azidentity_ad45cd3446" +} diff --git a/sdk/azidentity/testdata/recordings/TestClientCertificateCredentialADFS_Live.json b/sdk/azidentity/testdata/recordings/TestClientCertificateCredentialADFS_Live.json deleted file mode 100644 index 5f9e74524d22..000000000000 --- a/sdk/azidentity/testdata/recordings/TestClientCertificateCredentialADFS_Live.json +++ /dev/null @@ -1,145 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://fake.adfs.local/adfs/.well-known/openid-configuration", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v1.3.0-beta.3 (go1.19.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Content-Length": "1986", - "Content-Security-Policy": "default-src \u0027self\u0027 \u0027unsafe-inline\u0027 \u0027unsafe-eval\u0027; img-src \u0027self\u0027 data:;", - "Content-Type": "application/json; charset=UTF-8", - "Date": "Mon, 30 Jan 2023 17:38:54 GMT", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age = 31536000", - "X-Content-Type-Options": "nosniff", - "X-XSS-Protection": "1; mode=block" - }, - "ResponseBody": { - "issuer": "https://fake.adfs.local/adfs/eae0822e-4c1b-41cf-8d9e-6bddf440029c/", - "authorization_endpoint": "https://fake.adfs.local/adfs/oauth2/authorize/", - "token_endpoint": "https://fake.adfs.local/adfs/oauth2/token/", - "jwks_uri": "https://fake.adfs.local/adfs/discovery/keys", - "token_endpoint_auth_methods_supported": [ - "client_secret_post", - "client_secret_basic", - "private_key_jwt", - "windows_client_authentication" - ], - "response_types_supported": [ - "code", - "id_token", - "code id_token", - "id_token token", - "code token", - "code id_token token" - ], - "response_modes_supported": [ - "query", - "fragment", - "form_post" - ], - "grant_types_supported": [ - "authorization_code", - "refresh_token", - "client_credentials", - "urn:ietf:params:oauth:grant-type:jwt-bearer", - "implicit", - "password", - "srv_challenge", - "urn:ietf:params:oauth:grant-type:device_code", - "device_code" - ], - "subject_types_supported": [ - "pairwise" - ], - "scopes_supported": [ - "aza", - "logon_cert", - "profile", - ".default", - "vpn_cert", - "email", - "openid", - "allatclaims", - "user_impersonation", - "winhello_cert" - ], - "id_token_signing_alg_values_supported": [ - "RS256" - ], - "token_endpoint_auth_signing_alg_values_supported": [ - "RS256" - ], - "access_token_issuer": "https://fake.adfs.local/adfs/eae0822e-4c1b-41cf-8d9e-6bddf440029c/", - "claims_supported": [ - "aud", - "iss", - "iat", - "exp", - "auth_time", - "nonce", - "at_hash", - "c_hash", - "sub", - "upn", - "unique_name", - "pwd_url", - "pwd_exp", - "mfa_auth_time", - "sid", - "nbf" - ], - "microsoft_multi_refresh_token": true, - "userinfo_endpoint": "https://fake.adfs.local/adfs/userinfo", - "capabilities": [ - "kdf_ver2" - ], - "end_session_endpoint": "https://fake.adfs.local/adfs/oauth2/logout", - "as_access_token_token_binding_supported": false, - "as_refresh_token_token_binding_supported": false, - "resource_access_token_token_binding_supported": false, - "op_id_token_token_binding_supported": false, - "rp_id_token_token_binding_supported": false, - "frontchannel_logout_supported": true, - "frontchannel_logout_session_supported": true, - "device_authorization_endpoint": "https://fake.adfs.local/adfs/oauth2/devicecode" - } - }, - { - "RequestUri": "https://fake.adfs.local/adfs/oauth2/token/", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Content-Length": "2", - "Content-Type": "application/x-www-form-urlencoded; charset=utf-8", - "User-Agent": "azsdk-go-azidentity/v1.3.0-beta.3 (go1.19.3; Windows_NT)" - }, - "RequestBody": {}, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store", - "Content-Length": "136", - "Content-Security-Policy": "default-src \u0027self\u0027 \u0027unsafe-inline\u0027 \u0027unsafe-eval\u0027; img-src \u0027self\u0027 data:;", - "Content-Type": "application/json; charset=UTF-8", - "Date": "Mon, 30 Jan 2023 17:38:54 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age = 31536000", - "X-Content-Type-Options": "nosniff", - "X-XSS-Protection": "1; mode=block" - }, - "ResponseBody": { - "access_token": "redacted", - "token_type": "bearer", - "expires_in": 3600, - "scope": "profile openid https://fake.adfs.local/fake-scope/.default" - } - } - ], - "Variables": {} -} diff --git a/sdk/azidentity/testdata/recordings/TestClientCertificateCredential_InvalidCertLive.json b/sdk/azidentity/testdata/recordings/TestClientCertificateCredential_InvalidCertLive.json deleted file mode 100644 index eed517e8ef6d..000000000000 --- a/sdk/azidentity/testdata/recordings/TestClientCertificateCredential_InvalidCertLive.json +++ /dev/null @@ -1,218 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https%3A%2F%2Flogin.microsoftonline.com%2Ffake-tenant%2Foauth2%2Fv2.0%2Fauthorize", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Methods": "GET, OPTIONS", - "Access-Control-Allow-Origin": "*", - "Cache-Control": "max-age=86400, private", - "Content-Length": "955", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:10 GMT", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMAwAAAAUigdkOAAAA; expires=Wed, 23-Feb-2022 22:41:11 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12381.20 - EUS ProdSlices", - "x-ms-request-id": "237378e3-1140-4884-b9e0-4637fb786300" - }, - "ResponseBody": { - "tenant_discovery_endpoint": "https://login.microsoftonline.com/fake-tenant/v2.0/.well-known/openid-configuration", - "api-version": "1.1", - "metadata": [ - { - "preferred_network": "login.microsoftonline.com", - "preferred_cache": "login.windows.net", - "aliases": [ - "login.microsoftonline.com", - "login.windows.net", - "login.microsoft.com", - "sts.windows.net" - ] - }, - { - "preferred_network": "login.partner.microsoftonline.cn", - "preferred_cache": "login.partner.microsoftonline.cn", - "aliases": [ - "login.partner.microsoftonline.cn", - "login.chinacloudapi.cn" - ] - }, - { - "preferred_network": "login.microsoftonline.de", - "preferred_cache": "login.microsoftonline.de", - "aliases": [ - "login.microsoftonline.de" - ] - }, - { - "preferred_network": "login.microsoftonline.us", - "preferred_cache": "login.microsoftonline.us", - "aliases": [ - "login.microsoftonline.us", - "login.usgovcloudapi.net" - ] - }, - { - "preferred_network": "login-us.microsoftonline.com", - "preferred_cache": "login-us.microsoftonline.com", - "aliases": [ - "login-us.microsoftonline.com" - ] - } - ] - } - }, - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/v2.0/.well-known/openid-configuration", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Methods": "GET, OPTIONS", - "Access-Control-Allow-Origin": "*", - "Cache-Control": "max-age=86400, private", - "Content-Length": "1578", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:10 GMT", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMAwAAAAUigdkOAAAA; expires=Wed, 23-Feb-2022 22:41:11 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12381.20 - WUS2 ProdSlices", - "x-ms-request-id": "407dfcf3-37e2-4813-951c-9e18168b0700" - }, - "ResponseBody": { - "token_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "token_endpoint_auth_methods_supported": [ - "client_secret_post", - "private_key_jwt", - "client_secret_basic" - ], - "jwks_uri": "https://login.microsoftonline.com/fake-tenant/discovery/v2.0/keys", - "response_modes_supported": [ - "query", - "fragment", - "form_post" - ], - "subject_types_supported": [ - "pairwise" - ], - "id_token_signing_alg_values_supported": [ - "RS256" - ], - "response_types_supported": [ - "code", - "id_token", - "code id_token", - "id_token token" - ], - "scopes_supported": [ - "openid", - "profile", - "email", - "offline_access" - ], - "issuer": "https://login.microsoftonline.com/fake-tenant/v2.0", - "request_uri_parameter_supported": false, - "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", - "authorization_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/authorize", - "device_authorization_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/devicecode", - "http_logout_supported": true, - "frontchannel_logout_supported": true, - "end_session_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/logout", - "claims_supported": [ - "sub", - "iss", - "cloud_instance_name", - "cloud_instance_host_name", - "cloud_graph_host_name", - "msgraph_host", - "aud", - "exp", - "iat", - "auth_time", - "acr", - "nonce", - "preferred_username", - "name", - "tid", - "ver", - "at_hash", - "c_hash", - "email" - ], - "kerberos_endpoint": "https://login.microsoftonline.com/fake-tenant/kerberos", - "tenant_region_scope": "NA", - "cloud_instance_name": "microsoftonline.com", - "cloud_graph_host_name": "graph.windows.net", - "msgraph_host": "graph.microsoft.com", - "rbac_url": "https://pas.windows.net" - } - }, - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "RequestMethod": "POST", - "RequestHeaders": { - ":method": "POST", - "Accept-Encoding": "gzip", - "Content-Length": "2", - "Content-Type": "application/x-www-form-urlencoded; charset=utf-8", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": {}, - "StatusCode": 401, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Length": "1325", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:10 GMT", - "Expires": "-1", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Pragma": "no-cache", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMBAAAAAUigdkOAAAA; expires=Wed, 23-Feb-2022 22:41:11 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - EUS ProdSlices", - "x-ms-request-id": "fc51a374-1d45-4b16-ac30-410a6352fb00" - }, - "ResponseBody": { - "error": "invalid_client", - "error_description": "AADSTS700027: Client assertion contains an invalid signature. [Reason - The key was not found., Thumbprint of key used by client: \u00278CA6895C58FD5C9AEED13121F784629BE0261977\u0027, Please visit the Azure Portal, Graph Explorer or directly use MS Graph to see configured keys for app Id \u002726790ce1-d05c-4de7-ba73-51837152f0bc\u0027. Review the documentation at https://docs.microsoft.com/en-us/graph/deployments to determine the corresponding service endpoint and https://docs.microsoft.com/en-us/graph/api/application-get?view=graph-rest-1.0\u0026tabs=http to build a query request URL, such as \u0027https://graph.microsoft.com/beta/applications/26790ce1-d05c-4de7-ba73-51837152f0bc\u0027]. Alternatively, SNI may be configured on the app. Please ensure that client assertion is being sent with the x5c claim in the JWT header using MSAL\u0027s WithSendX5C() method so that Azure Active Directory can validate the certificate being used.\r\nTrace ID: fc51a374-1d45-4b16-ac30-410a6352fb00\r\nCorrelation ID: 6c340c8c-14c7-4197-bd71-f510287fba40\r\nTimestamp: 2022-01-24 22:41:11Z", - "error_codes": [ - 700027 - ], - "timestamp": "2022-01-24 22:41:11Z", - "trace_id": "fc51a374-1d45-4b16-ac30-410a6352fb00", - "correlation_id": "6c340c8c-14c7-4197-bd71-f510287fba40", - "error_uri": "https://login.microsoftonline.com/error?code=700027" - } - } - ], - "Variables": {} -} diff --git a/sdk/azidentity/testdata/recordings/TestClientCertificateCredential_Live/PEM.json b/sdk/azidentity/testdata/recordings/TestClientCertificateCredential_Live/PEM.json deleted file mode 100644 index cd4c2de2c790..000000000000 --- a/sdk/azidentity/testdata/recordings/TestClientCertificateCredential_Live/PEM.json +++ /dev/null @@ -1,213 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https%3A%2F%2Flogin.microsoftonline.com%2Ffake-tenant%2Foauth2%2Fv2.0%2Fauthorize", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Methods": "GET, OPTIONS", - "Access-Control-Allow-Origin": "*", - "Cache-Control": "max-age=86400, private", - "Content-Length": "955", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:09 GMT", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwA; expires=Wed, 23-Feb-2022 22:41:10 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - SCUS ProdSlices", - "x-ms-request-id": "a71bb559-a871-4f92-839d-f5f2a88e7500" - }, - "ResponseBody": { - "tenant_discovery_endpoint": "https://login.microsoftonline.com/fake-tenant/v2.0/.well-known/openid-configuration", - "api-version": "1.1", - "metadata": [ - { - "preferred_network": "login.microsoftonline.com", - "preferred_cache": "login.windows.net", - "aliases": [ - "login.microsoftonline.com", - "login.windows.net", - "login.microsoft.com", - "sts.windows.net" - ] - }, - { - "preferred_network": "login.partner.microsoftonline.cn", - "preferred_cache": "login.partner.microsoftonline.cn", - "aliases": [ - "login.partner.microsoftonline.cn", - "login.chinacloudapi.cn" - ] - }, - { - "preferred_network": "login.microsoftonline.de", - "preferred_cache": "login.microsoftonline.de", - "aliases": [ - "login.microsoftonline.de" - ] - }, - { - "preferred_network": "login.microsoftonline.us", - "preferred_cache": "login.microsoftonline.us", - "aliases": [ - "login.microsoftonline.us", - "login.usgovcloudapi.net" - ] - }, - { - "preferred_network": "login-us.microsoftonline.com", - "preferred_cache": "login-us.microsoftonline.com", - "aliases": [ - "login-us.microsoftonline.com" - ] - } - ] - } - }, - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/v2.0/.well-known/openid-configuration", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Methods": "GET, OPTIONS", - "Access-Control-Allow-Origin": "*", - "Cache-Control": "max-age=86400, private", - "Content-Length": "1578", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:09 GMT", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwA; expires=Wed, 23-Feb-2022 22:41:10 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12381.20 - WUS2 ProdSlices", - "x-ms-request-id": "407dfcf3-37e2-4813-951c-9e18e58a0700" - }, - "ResponseBody": { - "token_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "token_endpoint_auth_methods_supported": [ - "client_secret_post", - "private_key_jwt", - "client_secret_basic" - ], - "jwks_uri": "https://login.microsoftonline.com/fake-tenant/discovery/v2.0/keys", - "response_modes_supported": [ - "query", - "fragment", - "form_post" - ], - "subject_types_supported": [ - "pairwise" - ], - "id_token_signing_alg_values_supported": [ - "RS256" - ], - "response_types_supported": [ - "code", - "id_token", - "code id_token", - "id_token token" - ], - "scopes_supported": [ - "openid", - "profile", - "email", - "offline_access" - ], - "issuer": "https://login.microsoftonline.com/fake-tenant/v2.0", - "request_uri_parameter_supported": false, - "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", - "authorization_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/authorize", - "device_authorization_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/devicecode", - "http_logout_supported": true, - "frontchannel_logout_supported": true, - "end_session_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/logout", - "claims_supported": [ - "sub", - "iss", - "cloud_instance_name", - "cloud_instance_host_name", - "cloud_graph_host_name", - "msgraph_host", - "aud", - "exp", - "iat", - "auth_time", - "acr", - "nonce", - "preferred_username", - "name", - "tid", - "ver", - "at_hash", - "c_hash", - "email" - ], - "kerberos_endpoint": "https://login.microsoftonline.com/fake-tenant/kerberos", - "tenant_region_scope": "NA", - "cloud_instance_name": "microsoftonline.com", - "cloud_graph_host_name": "graph.windows.net", - "msgraph_host": "graph.microsoft.com", - "rbac_url": "https://pas.windows.net" - } - }, - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "RequestMethod": "POST", - "RequestHeaders": { - ":method": "POST", - "Accept-Encoding": "gzip", - "Content-Length": "2", - "Content-Type": "application/x-www-form-urlencoded; charset=utf-8", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": {}, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Length": "89", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:09 GMT", - "Expires": "-1", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Pragma": "no-cache", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMAQAAAAUigdkOAAAA; expires=Wed, 23-Feb-2022 22:41:10 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - SCUS ProdSlices", - "x-ms-request-id": "8cba3351-104c-46eb-a7f8-cb7b6747d800" - }, - "ResponseBody": { - "token_type": "Bearer", - "expires_in": 3599, - "ext_expires_in": 3599, - "access_token": "redacted" - } - } - ], - "Variables": {} -} diff --git a/sdk/azidentity/testdata/recordings/TestClientCertificateCredential_Live/PKCS12.json b/sdk/azidentity/testdata/recordings/TestClientCertificateCredential_Live/PKCS12.json deleted file mode 100644 index 928a5286fb8a..000000000000 --- a/sdk/azidentity/testdata/recordings/TestClientCertificateCredential_Live/PKCS12.json +++ /dev/null @@ -1,213 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https%3A%2F%2Flogin.microsoftonline.com%2Ffake-tenant%2Foauth2%2Fv2.0%2Fauthorize", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Methods": "GET, OPTIONS", - "Access-Control-Allow-Origin": "*", - "Cache-Control": "max-age=86400, private", - "Content-Length": "955", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:09 GMT", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMAQAAAAUigdkOAAAA; expires=Wed, 23-Feb-2022 22:41:10 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - SCUS ProdSlices", - "x-ms-request-id": "c64b679b-de6c-4f79-b2da-637ac5a71e01" - }, - "ResponseBody": { - "tenant_discovery_endpoint": "https://login.microsoftonline.com/fake-tenant/v2.0/.well-known/openid-configuration", - "api-version": "1.1", - "metadata": [ - { - "preferred_network": "login.microsoftonline.com", - "preferred_cache": "login.windows.net", - "aliases": [ - "login.microsoftonline.com", - "login.windows.net", - "login.microsoft.com", - "sts.windows.net" - ] - }, - { - "preferred_network": "login.partner.microsoftonline.cn", - "preferred_cache": "login.partner.microsoftonline.cn", - "aliases": [ - "login.partner.microsoftonline.cn", - "login.chinacloudapi.cn" - ] - }, - { - "preferred_network": "login.microsoftonline.de", - "preferred_cache": "login.microsoftonline.de", - "aliases": [ - "login.microsoftonline.de" - ] - }, - { - "preferred_network": "login.microsoftonline.us", - "preferred_cache": "login.microsoftonline.us", - "aliases": [ - "login.microsoftonline.us", - "login.usgovcloudapi.net" - ] - }, - { - "preferred_network": "login-us.microsoftonline.com", - "preferred_cache": "login-us.microsoftonline.com", - "aliases": [ - "login-us.microsoftonline.com" - ] - } - ] - } - }, - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/v2.0/.well-known/openid-configuration", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Methods": "GET, OPTIONS", - "Access-Control-Allow-Origin": "*", - "Cache-Control": "max-age=86400, private", - "Content-Length": "1578", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:09 GMT", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMAQAAAAUigdkOAAAA; expires=Wed, 23-Feb-2022 22:41:10 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - EUS ProdSlices", - "x-ms-request-id": "fc51a374-1d45-4b16-ac30-410a2f52fb00" - }, - "ResponseBody": { - "token_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "token_endpoint_auth_methods_supported": [ - "client_secret_post", - "private_key_jwt", - "client_secret_basic" - ], - "jwks_uri": "https://login.microsoftonline.com/fake-tenant/discovery/v2.0/keys", - "response_modes_supported": [ - "query", - "fragment", - "form_post" - ], - "subject_types_supported": [ - "pairwise" - ], - "id_token_signing_alg_values_supported": [ - "RS256" - ], - "response_types_supported": [ - "code", - "id_token", - "code id_token", - "id_token token" - ], - "scopes_supported": [ - "openid", - "profile", - "email", - "offline_access" - ], - "issuer": "https://login.microsoftonline.com/fake-tenant/v2.0", - "request_uri_parameter_supported": false, - "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", - "authorization_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/authorize", - "device_authorization_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/devicecode", - "http_logout_supported": true, - "frontchannel_logout_supported": true, - "end_session_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/logout", - "claims_supported": [ - "sub", - "iss", - "cloud_instance_name", - "cloud_instance_host_name", - "cloud_graph_host_name", - "msgraph_host", - "aud", - "exp", - "iat", - "auth_time", - "acr", - "nonce", - "preferred_username", - "name", - "tid", - "ver", - "at_hash", - "c_hash", - "email" - ], - "kerberos_endpoint": "https://login.microsoftonline.com/fake-tenant/kerberos", - "tenant_region_scope": "NA", - "cloud_instance_name": "microsoftonline.com", - "cloud_graph_host_name": "graph.windows.net", - "msgraph_host": "graph.microsoft.com", - "rbac_url": "https://pas.windows.net" - } - }, - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "RequestMethod": "POST", - "RequestHeaders": { - ":method": "POST", - "Accept-Encoding": "gzip", - "Content-Length": "2", - "Content-Type": "application/x-www-form-urlencoded; charset=utf-8", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": {}, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Length": "89", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:09 GMT", - "Expires": "-1", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Pragma": "no-cache", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMAgAAAAUigdkOAAAA; expires=Wed, 23-Feb-2022 22:41:10 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - SCUS ProdSlices", - "x-ms-request-id": "7e3f8ad4-ea8b-4ee0-b49e-2844160ed300" - }, - "ResponseBody": { - "token_type": "Bearer", - "expires_in": 3599, - "ext_expires_in": 3599, - "access_token": "redacted" - } - } - ], - "Variables": {} -} diff --git a/sdk/azidentity/testdata/recordings/TestClientCertificateCredential_Live/SNI.json b/sdk/azidentity/testdata/recordings/TestClientCertificateCredential_Live/SNI.json deleted file mode 100644 index 00923d2d85ce..000000000000 --- a/sdk/azidentity/testdata/recordings/TestClientCertificateCredential_Live/SNI.json +++ /dev/null @@ -1,213 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https%3A%2F%2Flogin.microsoftonline.com%2Ffake-tenant%2Foauth2%2Fv2.0%2Fauthorize", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Methods": "GET, OPTIONS", - "Access-Control-Allow-Origin": "*", - "Cache-Control": "max-age=86400, private", - "Content-Length": "955", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:10 GMT", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMAgAAAAUigdkOAAAA; expires=Wed, 23-Feb-2022 22:41:10 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - EUS ProdSlices", - "x-ms-request-id": "69990d5e-d115-44af-92d0-8728ff0e8800" - }, - "ResponseBody": { - "tenant_discovery_endpoint": "https://login.microsoftonline.com/fake-tenant/v2.0/.well-known/openid-configuration", - "api-version": "1.1", - "metadata": [ - { - "preferred_network": "login.microsoftonline.com", - "preferred_cache": "login.windows.net", - "aliases": [ - "login.microsoftonline.com", - "login.windows.net", - "login.microsoft.com", - "sts.windows.net" - ] - }, - { - "preferred_network": "login.partner.microsoftonline.cn", - "preferred_cache": "login.partner.microsoftonline.cn", - "aliases": [ - "login.partner.microsoftonline.cn", - "login.chinacloudapi.cn" - ] - }, - { - "preferred_network": "login.microsoftonline.de", - "preferred_cache": "login.microsoftonline.de", - "aliases": [ - "login.microsoftonline.de" - ] - }, - { - "preferred_network": "login.microsoftonline.us", - "preferred_cache": "login.microsoftonline.us", - "aliases": [ - "login.microsoftonline.us", - "login.usgovcloudapi.net" - ] - }, - { - "preferred_network": "login-us.microsoftonline.com", - "preferred_cache": "login-us.microsoftonline.com", - "aliases": [ - "login-us.microsoftonline.com" - ] - } - ] - } - }, - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/v2.0/.well-known/openid-configuration", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Methods": "GET, OPTIONS", - "Access-Control-Allow-Origin": "*", - "Cache-Control": "max-age=86400, private", - "Content-Length": "1578", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:10 GMT", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMAgAAAAUigdkOAAAA; expires=Wed, 23-Feb-2022 22:41:11 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - NCUS ProdSlices", - "x-ms-request-id": "61c77800-294d-4552-af47-859469fcae00" - }, - "ResponseBody": { - "token_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "token_endpoint_auth_methods_supported": [ - "client_secret_post", - "private_key_jwt", - "client_secret_basic" - ], - "jwks_uri": "https://login.microsoftonline.com/fake-tenant/discovery/v2.0/keys", - "response_modes_supported": [ - "query", - "fragment", - "form_post" - ], - "subject_types_supported": [ - "pairwise" - ], - "id_token_signing_alg_values_supported": [ - "RS256" - ], - "response_types_supported": [ - "code", - "id_token", - "code id_token", - "id_token token" - ], - "scopes_supported": [ - "openid", - "profile", - "email", - "offline_access" - ], - "issuer": "https://login.microsoftonline.com/fake-tenant/v2.0", - "request_uri_parameter_supported": false, - "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", - "authorization_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/authorize", - "device_authorization_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/devicecode", - "http_logout_supported": true, - "frontchannel_logout_supported": true, - "end_session_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/logout", - "claims_supported": [ - "sub", - "iss", - "cloud_instance_name", - "cloud_instance_host_name", - "cloud_graph_host_name", - "msgraph_host", - "aud", - "exp", - "iat", - "auth_time", - "acr", - "nonce", - "preferred_username", - "name", - "tid", - "ver", - "at_hash", - "c_hash", - "email" - ], - "kerberos_endpoint": "https://login.microsoftonline.com/fake-tenant/kerberos", - "tenant_region_scope": "NA", - "cloud_instance_name": "microsoftonline.com", - "cloud_graph_host_name": "graph.windows.net", - "msgraph_host": "graph.microsoft.com", - "rbac_url": "https://pas.windows.net" - } - }, - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "RequestMethod": "POST", - "RequestHeaders": { - ":method": "POST", - "Accept-Encoding": "gzip", - "Content-Length": "2", - "Content-Type": "application/x-www-form-urlencoded; charset=utf-8", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": {}, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Length": "89", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:10 GMT", - "Expires": "-1", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Pragma": "no-cache", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMAwAAAAUigdkOAAAA; expires=Wed, 23-Feb-2022 22:41:11 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - SCUS ProdSlices", - "x-ms-request-id": "8cba3351-104c-46eb-a7f8-cb7b8b47d800" - }, - "ResponseBody": { - "token_type": "Bearer", - "expires_in": 3599, - "ext_expires_in": 3599, - "access_token": "redacted" - } - } - ], - "Variables": {} -} diff --git a/sdk/azidentity/testdata/recordings/TestClientCertificateCredential_Live/instance_discovery_disabled.json b/sdk/azidentity/testdata/recordings/TestClientCertificateCredential_Live/instance_discovery_disabled.json deleted file mode 100644 index 50b5ff3253b9..000000000000 --- a/sdk/azidentity/testdata/recordings/TestClientCertificateCredential_Live/instance_discovery_disabled.json +++ /dev/null @@ -1,136 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/v2.0/.well-known/openid-configuration", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v1.3.0-beta.3 (go1.19.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Methods": "GET, OPTIONS", - "Access-Control-Allow-Origin": "*", - "Cache-Control": "max-age=86400, private", - "Content-Length": "1578", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 27 Jan 2023 00:33:29 GMT", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Set-Cookie": [ - "fpc=AtldTtlEjTNPhKsSvKLZB72uN0zNAgAAAKkSZdsOAAAA; expires=Sun, 26-Feb-2023 00:33:30 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.14357.8 - EUS ProdSlices", - "x-ms-request-id": "cfe15df3-7e53-4953-9d2a-4436347f9800", - "X-XSS-Protection": "0" - }, - "ResponseBody": { - "token_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "token_endpoint_auth_methods_supported": [ - "client_secret_post", - "private_key_jwt", - "client_secret_basic" - ], - "jwks_uri": "https://login.microsoftonline.com/fake-tenant/discovery/v2.0/keys", - "response_modes_supported": [ - "query", - "fragment", - "form_post" - ], - "subject_types_supported": [ - "pairwise" - ], - "id_token_signing_alg_values_supported": [ - "RS256" - ], - "response_types_supported": [ - "code", - "id_token", - "code id_token", - "id_token token" - ], - "scopes_supported": [ - "openid", - "profile", - "email", - "offline_access" - ], - "issuer": "https://login.microsoftonline.com/fake-tenant/v2.0", - "request_uri_parameter_supported": false, - "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", - "authorization_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/authorize", - "device_authorization_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/devicecode", - "http_logout_supported": true, - "frontchannel_logout_supported": true, - "end_session_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/logout", - "claims_supported": [ - "sub", - "iss", - "cloud_instance_name", - "cloud_instance_host_name", - "cloud_graph_host_name", - "msgraph_host", - "aud", - "exp", - "iat", - "auth_time", - "acr", - "nonce", - "preferred_username", - "name", - "tid", - "ver", - "at_hash", - "c_hash", - "email" - ], - "kerberos_endpoint": "https://login.microsoftonline.com/fake-tenant/kerberos", - "tenant_region_scope": "NA", - "cloud_instance_name": "microsoftonline.com", - "cloud_graph_host_name": "graph.windows.net", - "msgraph_host": "graph.microsoft.com", - "rbac_url": "https://pas.windows.net" - } - }, - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Content-Length": "2", - "Content-Type": "application/x-www-form-urlencoded; charset=utf-8", - "User-Agent": "azsdk-go-azidentity/v1.3.0-beta.3 (go1.19.3; Windows_NT)" - }, - "RequestBody": {}, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Length": "89", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 27 Jan 2023 00:33:29 GMT", - "Expires": "-1", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Pragma": "no-cache", - "Set-Cookie": [ - "fpc=AtldTtlEjTNPhKsSvKLZB72uN0zNAwAAAKkSZdsOAAAA; expires=Sun, 26-Feb-2023 00:33:30 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.14357.8 - NCUS ProdSlices", - "x-ms-request-id": "a6552987-aa11-4b7f-bc1f-d828539f6f01", - "X-XSS-Protection": "0" - }, - "ResponseBody": { - "token_type": "Bearer", - "expires_in": 3599, - "ext_expires_in": 3599, - "access_token": "redacted" - } - } - ], - "Variables": {} -} diff --git a/sdk/azidentity/testdata/recordings/TestClientCertificateCredential_Regional.json b/sdk/azidentity/testdata/recordings/TestClientCertificateCredential_Regional.json deleted file mode 100644 index b0f03490f2c0..000000000000 --- a/sdk/azidentity/testdata/recordings/TestClientCertificateCredential_Regional.json +++ /dev/null @@ -1,120 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://westus2.r.login.microsoftonline.com/fake-tenant/v2.0/.well-known/openid-configuration", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v1.0.1 (go1.18.3; linux)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "max-age=86400, private", - "Content-Length": "1245", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 02 Jun 2022 16:27:23 GMT", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Set-Cookie": "fpc=Alg0CxoeRidMjWt5yaT51Z4; expires=Sat, 02-Jul-2022 16:27:24 GMT; path=/; secure; HttpOnly; SameSite=None", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12794.7 - WUS2 ProdSlices", - "x-ms-request-id": "19ce7346-9009-4435-9704-b567248f0802", - "X-XSS-Protection": "0" - }, - "ResponseBody": { - "token_endpoint": "https://westus2.r.login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "token_endpoint_auth_methods_supported": [ - "client_secret_post", - "private_key_jwt", - "client_secret_basic" - ], - "jwks_uri": "https://westus2.r.login.microsoftonline.com/fake-tenant/discovery/v2.0/keys", - "response_modes_supported": [ - "query", - "fragment", - "form_post" - ], - "subject_types_supported": [ - "pairwise" - ], - "id_token_signing_alg_values_supported": [ - "RS256" - ], - "response_types_supported": [ - "code", - "id_token", - "code id_token", - "id_token token" - ], - "scopes_supported": [ - "openid", - "profile", - "email", - "offline_access" - ], - "issuer": "https://login.microsoftonline.com/fake-tenant/v2.0", - "request_uri_parameter_supported": false, - "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", - "authorization_endpoint": "unsupported", - "claims_supported": [ - "sub", - "iss", - "cloud_instance_name", - "cloud_instance_host_name", - "cloud_graph_host_name", - "msgraph_host", - "aud", - "exp", - "iat", - "auth_time", - "acr", - "nonce", - "tid", - "ver", - "at_hash", - "c_hash" - ], - "tenant_region_scope": "NA", - "cloud_instance_name": "microsoftonline.com", - "cloud_graph_host_name": "graph.windows.net", - "msgraph_host": "graph.microsoft.com", - "rbac_url": "https://pas.windows.net" - } - }, - { - "RequestUri": "https://westus2.r.login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "RequestMethod": "POST", - "RequestHeaders": { - ":method": "POST", - "Accept-Encoding": "gzip", - "Content-Length": "2", - "Content-Type": "application/x-www-form-urlencoded; charset=utf-8", - "User-Agent": "azsdk-go-azidentity/v1.0.1 (go1.18.3; linux)" - }, - "RequestBody": {}, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Length": "89", - "Content-Type": "application/json; charset=utf-8", - "Date": "Thu, 02 Jun 2022 16:27:23 GMT", - "Expires": "-1", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Pragma": "no-cache", - "Set-Cookie": "fpc=Alg0CxoeRidMjWt5yaT51Z4; expires=Sat, 02-Jul-2022 16:27:24 GMT; path=/; secure; HttpOnly; SameSite=None", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12794.7 - WUS2 ProdSlices", - "x-ms-request-id": "e32199b8-7d70-45ec-b403-d1b39593e301", - "X-XSS-Protection": "0" - }, - "ResponseBody": { - "token_type": "Bearer", - "expires_in": 3599, - "ext_expires_in": 3599, - "access_token": "redacted" - } - } - ], - "Variables": {} - } diff --git a/sdk/azidentity/testdata/recordings/TestClientSecretCredentialADFS_Live.json b/sdk/azidentity/testdata/recordings/TestClientSecretCredentialADFS_Live.json deleted file mode 100644 index bbffff65f968..000000000000 --- a/sdk/azidentity/testdata/recordings/TestClientSecretCredentialADFS_Live.json +++ /dev/null @@ -1,145 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://fake.adfs.local/adfs/.well-known/openid-configuration", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v1.3.0-beta.3 (go1.19.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Content-Length": "1986", - "Content-Security-Policy": "default-src \u0027self\u0027 \u0027unsafe-inline\u0027 \u0027unsafe-eval\u0027; img-src \u0027self\u0027 data:;", - "Content-Type": "application/json; charset=UTF-8", - "Date": "Mon, 30 Jan 2023 17:29:01 GMT", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age = 31536000", - "X-Content-Type-Options": "nosniff", - "X-XSS-Protection": "1; mode=block" - }, - "ResponseBody": { - "issuer": "https://fake.adfs.local/adfs/eae0822e-4c1b-41cf-8d9e-6bddf440029c/", - "authorization_endpoint": "https://fake.adfs.local/adfs/oauth2/authorize/", - "token_endpoint": "https://fake.adfs.local/adfs/oauth2/token/", - "jwks_uri": "https://fake.adfs.local/adfs/discovery/keys", - "token_endpoint_auth_methods_supported": [ - "client_secret_post", - "client_secret_basic", - "private_key_jwt", - "windows_client_authentication" - ], - "response_types_supported": [ - "code", - "id_token", - "code id_token", - "id_token token", - "code token", - "code id_token token" - ], - "response_modes_supported": [ - "query", - "fragment", - "form_post" - ], - "grant_types_supported": [ - "authorization_code", - "refresh_token", - "client_credentials", - "urn:ietf:params:oauth:grant-type:jwt-bearer", - "implicit", - "password", - "srv_challenge", - "urn:ietf:params:oauth:grant-type:device_code", - "device_code" - ], - "subject_types_supported": [ - "pairwise" - ], - "scopes_supported": [ - "aza", - "logon_cert", - "profile", - ".default", - "vpn_cert", - "email", - "openid", - "allatclaims", - "user_impersonation", - "winhello_cert" - ], - "id_token_signing_alg_values_supported": [ - "RS256" - ], - "token_endpoint_auth_signing_alg_values_supported": [ - "RS256" - ], - "access_token_issuer": "https://fake.adfs.local/adfs/eae0822e-4c1b-41cf-8d9e-6bddf440029c/", - "claims_supported": [ - "aud", - "iss", - "iat", - "exp", - "auth_time", - "nonce", - "at_hash", - "c_hash", - "sub", - "upn", - "unique_name", - "pwd_url", - "pwd_exp", - "mfa_auth_time", - "sid", - "nbf" - ], - "microsoft_multi_refresh_token": true, - "userinfo_endpoint": "https://fake.adfs.local/adfs/userinfo", - "capabilities": [ - "kdf_ver2" - ], - "end_session_endpoint": "https://fake.adfs.local/adfs/oauth2/logout", - "as_access_token_token_binding_supported": false, - "as_refresh_token_token_binding_supported": false, - "resource_access_token_token_binding_supported": false, - "op_id_token_token_binding_supported": false, - "rp_id_token_token_binding_supported": false, - "frontchannel_logout_supported": true, - "frontchannel_logout_session_supported": true, - "device_authorization_endpoint": "https://fake.adfs.local/adfs/oauth2/devicecode" - } - }, - { - "RequestUri": "https://fake.adfs.local/adfs/oauth2/token/", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Content-Length": "2", - "Content-Type": "application/x-www-form-urlencoded; charset=utf-8", - "User-Agent": "azsdk-go-azidentity/v1.3.0-beta.3 (go1.19.3; Windows_NT)" - }, - "RequestBody": {}, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store", - "Content-Length": "136", - "Content-Security-Policy": "default-src \u0027self\u0027 \u0027unsafe-inline\u0027 \u0027unsafe-eval\u0027; img-src \u0027self\u0027 data:;", - "Content-Type": "application/json; charset=UTF-8", - "Date": "Mon, 30 Jan 2023 17:29:01 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age = 31536000", - "X-Content-Type-Options": "nosniff", - "X-XSS-Protection": "1; mode=block" - }, - "ResponseBody": { - "access_token": "redacted", - "token_type": "bearer", - "expires_in": 3600, - "scope": "profile openid https://fake.adfs.local/fake-scope/.default" - } - } - ], - "Variables": {} -} diff --git a/sdk/azidentity/testdata/recordings/TestClientSecretCredential_InvalidSecretLive.json b/sdk/azidentity/testdata/recordings/TestClientSecretCredential_InvalidSecretLive.json deleted file mode 100644 index e7169ab77a60..000000000000 --- a/sdk/azidentity/testdata/recordings/TestClientSecretCredential_InvalidSecretLive.json +++ /dev/null @@ -1,218 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https%3A%2F%2Flogin.microsoftonline.com%2Ffake-tenant%2Foauth2%2Fv2.0%2Fauthorize", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Methods": "GET, OPTIONS", - "Access-Control-Allow-Origin": "*", - "Cache-Control": "max-age=86400, private", - "Content-Length": "955", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:11 GMT", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMBQAAAAUigdkOAAAA; expires=Wed, 23-Feb-2022 22:41:12 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - SCUS ProdSlices", - "x-ms-request-id": "eb0308f8-8557-4220-b579-a574bb2e2001" - }, - "ResponseBody": { - "tenant_discovery_endpoint": "https://login.microsoftonline.com/fake-tenant/v2.0/.well-known/openid-configuration", - "api-version": "1.1", - "metadata": [ - { - "preferred_network": "login.microsoftonline.com", - "preferred_cache": "login.windows.net", - "aliases": [ - "login.microsoftonline.com", - "login.windows.net", - "login.microsoft.com", - "sts.windows.net" - ] - }, - { - "preferred_network": "login.partner.microsoftonline.cn", - "preferred_cache": "login.partner.microsoftonline.cn", - "aliases": [ - "login.partner.microsoftonline.cn", - "login.chinacloudapi.cn" - ] - }, - { - "preferred_network": "login.microsoftonline.de", - "preferred_cache": "login.microsoftonline.de", - "aliases": [ - "login.microsoftonline.de" - ] - }, - { - "preferred_network": "login.microsoftonline.us", - "preferred_cache": "login.microsoftonline.us", - "aliases": [ - "login.microsoftonline.us", - "login.usgovcloudapi.net" - ] - }, - { - "preferred_network": "login-us.microsoftonline.com", - "preferred_cache": "login-us.microsoftonline.com", - "aliases": [ - "login-us.microsoftonline.com" - ] - } - ] - } - }, - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/v2.0/.well-known/openid-configuration", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Methods": "GET, OPTIONS", - "Access-Control-Allow-Origin": "*", - "Cache-Control": "max-age=86400, private", - "Content-Length": "1578", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:11 GMT", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMBQAAAAUigdkOAAAA; expires=Wed, 23-Feb-2022 22:41:12 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12381.20 - WUS2 ProdSlices", - "x-ms-request-id": "2d1cb536-473f-4771-9d61-2c12aaa90700" - }, - "ResponseBody": { - "token_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "token_endpoint_auth_methods_supported": [ - "client_secret_post", - "private_key_jwt", - "client_secret_basic" - ], - "jwks_uri": "https://login.microsoftonline.com/fake-tenant/discovery/v2.0/keys", - "response_modes_supported": [ - "query", - "fragment", - "form_post" - ], - "subject_types_supported": [ - "pairwise" - ], - "id_token_signing_alg_values_supported": [ - "RS256" - ], - "response_types_supported": [ - "code", - "id_token", - "code id_token", - "id_token token" - ], - "scopes_supported": [ - "openid", - "profile", - "email", - "offline_access" - ], - "issuer": "https://login.microsoftonline.com/fake-tenant/v2.0", - "request_uri_parameter_supported": false, - "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", - "authorization_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/authorize", - "device_authorization_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/devicecode", - "http_logout_supported": true, - "frontchannel_logout_supported": true, - "end_session_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/logout", - "claims_supported": [ - "sub", - "iss", - "cloud_instance_name", - "cloud_instance_host_name", - "cloud_graph_host_name", - "msgraph_host", - "aud", - "exp", - "iat", - "auth_time", - "acr", - "nonce", - "preferred_username", - "name", - "tid", - "ver", - "at_hash", - "c_hash", - "email" - ], - "kerberos_endpoint": "https://login.microsoftonline.com/fake-tenant/kerberos", - "tenant_region_scope": "NA", - "cloud_instance_name": "microsoftonline.com", - "cloud_graph_host_name": "graph.windows.net", - "msgraph_host": "graph.microsoft.com", - "rbac_url": "https://pas.windows.net" - } - }, - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "RequestMethod": "POST", - "RequestHeaders": { - ":method": "POST", - "Accept-Encoding": "gzip", - "Content-Length": "2", - "Content-Type": "application/x-www-form-urlencoded; charset=utf-8", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": {}, - "StatusCode": 401, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Length": "632", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:11 GMT", - "Expires": "-1", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Pragma": "no-cache", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMBgAAAAUigdkOAAAA; expires=Wed, 23-Feb-2022 22:41:12 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12381.20 - WUS2 ProdSlices", - "x-ms-request-id": "efa7004d-8611-4e8e-aa74-4f43ecec0600" - }, - "ResponseBody": { - "error": "invalid_client", - "error_description": "AADSTS7000215: Invalid client secret provided. Ensure the secret being sent in the request is the client secret value, not the client secret ID, for a secret added to app \u002726790ce1-d05c-4de7-ba73-51837152f0bc\u0027.\r\nTrace ID: efa7004d-8611-4e8e-aa74-4f43ecec0600\r\nCorrelation ID: 781088e8-41a8-4b69-8d42-891673702834\r\nTimestamp: 2022-01-24 22:41:12Z", - "error_codes": [ - 7000215 - ], - "timestamp": "2022-01-24 22:41:12Z", - "trace_id": "efa7004d-8611-4e8e-aa74-4f43ecec0600", - "correlation_id": "781088e8-41a8-4b69-8d42-891673702834", - "error_uri": "https://login.microsoftonline.com/error?code=7000215" - } - } - ], - "Variables": {} -} diff --git a/sdk/azidentity/testdata/recordings/TestClientSecretCredential_Live/default_options.json b/sdk/azidentity/testdata/recordings/TestClientSecretCredential_Live/default_options.json deleted file mode 100644 index 7fd57ddd0da0..000000000000 --- a/sdk/azidentity/testdata/recordings/TestClientSecretCredential_Live/default_options.json +++ /dev/null @@ -1,213 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https%3A%2F%2Flogin.microsoftonline.com%2Ffake-tenant%2Foauth2%2Fv2.0%2Fauthorize", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Methods": "GET, OPTIONS", - "Access-Control-Allow-Origin": "*", - "Cache-Control": "max-age=86400, private", - "Content-Length": "955", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:11 GMT", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMBAAAAAUigdkOAAAA; expires=Wed, 23-Feb-2022 22:41:11 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - SCUS ProdSlices", - "x-ms-request-id": "3f6eb452-55c3-456d-bfc0-71d4da33a400" - }, - "ResponseBody": { - "tenant_discovery_endpoint": "https://login.microsoftonline.com/fake-tenant/v2.0/.well-known/openid-configuration", - "api-version": "1.1", - "metadata": [ - { - "preferred_network": "login.microsoftonline.com", - "preferred_cache": "login.windows.net", - "aliases": [ - "login.microsoftonline.com", - "login.windows.net", - "login.microsoft.com", - "sts.windows.net" - ] - }, - { - "preferred_network": "login.partner.microsoftonline.cn", - "preferred_cache": "login.partner.microsoftonline.cn", - "aliases": [ - "login.partner.microsoftonline.cn", - "login.chinacloudapi.cn" - ] - }, - { - "preferred_network": "login.microsoftonline.de", - "preferred_cache": "login.microsoftonline.de", - "aliases": [ - "login.microsoftonline.de" - ] - }, - { - "preferred_network": "login.microsoftonline.us", - "preferred_cache": "login.microsoftonline.us", - "aliases": [ - "login.microsoftonline.us", - "login.usgovcloudapi.net" - ] - }, - { - "preferred_network": "login-us.microsoftonline.com", - "preferred_cache": "login-us.microsoftonline.com", - "aliases": [ - "login-us.microsoftonline.com" - ] - } - ] - } - }, - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/v2.0/.well-known/openid-configuration", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Methods": "GET, OPTIONS", - "Access-Control-Allow-Origin": "*", - "Cache-Control": "max-age=86400, private", - "Content-Length": "1578", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:11 GMT", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMBAAAAAUigdkOAAAA; expires=Wed, 23-Feb-2022 22:41:11 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12381.20 - WUS2 ProdSlices", - "x-ms-request-id": "5a78bd7d-c9b3-4fa5-96b2-4dacf81e0a00" - }, - "ResponseBody": { - "token_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "token_endpoint_auth_methods_supported": [ - "client_secret_post", - "private_key_jwt", - "client_secret_basic" - ], - "jwks_uri": "https://login.microsoftonline.com/fake-tenant/discovery/v2.0/keys", - "response_modes_supported": [ - "query", - "fragment", - "form_post" - ], - "subject_types_supported": [ - "pairwise" - ], - "id_token_signing_alg_values_supported": [ - "RS256" - ], - "response_types_supported": [ - "code", - "id_token", - "code id_token", - "id_token token" - ], - "scopes_supported": [ - "openid", - "profile", - "email", - "offline_access" - ], - "issuer": "https://login.microsoftonline.com/fake-tenant/v2.0", - "request_uri_parameter_supported": false, - "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", - "authorization_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/authorize", - "device_authorization_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/devicecode", - "http_logout_supported": true, - "frontchannel_logout_supported": true, - "end_session_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/logout", - "claims_supported": [ - "sub", - "iss", - "cloud_instance_name", - "cloud_instance_host_name", - "cloud_graph_host_name", - "msgraph_host", - "aud", - "exp", - "iat", - "auth_time", - "acr", - "nonce", - "preferred_username", - "name", - "tid", - "ver", - "at_hash", - "c_hash", - "email" - ], - "kerberos_endpoint": "https://login.microsoftonline.com/fake-tenant/kerberos", - "tenant_region_scope": "NA", - "cloud_instance_name": "microsoftonline.com", - "cloud_graph_host_name": "graph.windows.net", - "msgraph_host": "graph.microsoft.com", - "rbac_url": "https://pas.windows.net" - } - }, - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "RequestMethod": "POST", - "RequestHeaders": { - ":method": "POST", - "Accept-Encoding": "gzip", - "Content-Length": "2", - "Content-Type": "application/x-www-form-urlencoded; charset=utf-8", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": {}, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Length": "89", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:11 GMT", - "Expires": "-1", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Pragma": "no-cache", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMBQAAAAUigdkOAAAA; expires=Wed, 23-Feb-2022 22:41:12 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - SCUS ProdSlices", - "x-ms-request-id": "7e3f8ad4-ea8b-4ee0-b49e-2844450ed300" - }, - "ResponseBody": { - "token_type": "Bearer", - "expires_in": 3599, - "ext_expires_in": 3599, - "access_token": "redacted" - } - } - ], - "Variables": {} -} diff --git a/sdk/azidentity/testdata/recordings/TestClientSecretCredential_Live/instance_discovery_disabled.json b/sdk/azidentity/testdata/recordings/TestClientSecretCredential_Live/instance_discovery_disabled.json deleted file mode 100644 index dbfa7164a2a3..000000000000 --- a/sdk/azidentity/testdata/recordings/TestClientSecretCredential_Live/instance_discovery_disabled.json +++ /dev/null @@ -1,138 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/v2.0/.well-known/openid-configuration", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v1.3.0-beta.3 (go1.19.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Methods": "GET, OPTIONS", - "Access-Control-Allow-Origin": "*", - "Cache-Control": "max-age=86400, private", - "Content-Length": "1578", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 27 Jan 2023 00:32:41 GMT", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Set-Cookie": [ - "fpc=AtldTtlEjTNPhKsSvKLZB70; expires=Sun, 26-Feb-2023 00:32:42 GMT; path=/; secure; HttpOnly; SameSite=None", - "esctx=PAQABAAEAAAD--DLA3VO7QrddgJg7WevrH4QEwxsg54bQ3AHgPb3j2Z5SVbJcbF9JVof0ngwf_m8vvYnyuBYhObOUB902nkrbIfGIED1xLlgmOerELuoXLOiulVYlwPlY1bVQ9ImtAn2wUh7raahFWVZRLsg-0WDEUxpkpvv2TqHYDtq4BDPd2P377fYE728LWRSUM3CsiY8gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.14357.8 - WUS2 ProdSlices", - "x-ms-request-id": "44ee3465-4da4-4581-9da2-e40e94389201", - "X-XSS-Protection": "0" - }, - "ResponseBody": { - "token_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "token_endpoint_auth_methods_supported": [ - "client_secret_post", - "private_key_jwt", - "client_secret_basic" - ], - "jwks_uri": "https://login.microsoftonline.com/fake-tenant/discovery/v2.0/keys", - "response_modes_supported": [ - "query", - "fragment", - "form_post" - ], - "subject_types_supported": [ - "pairwise" - ], - "id_token_signing_alg_values_supported": [ - "RS256" - ], - "response_types_supported": [ - "code", - "id_token", - "code id_token", - "id_token token" - ], - "scopes_supported": [ - "openid", - "profile", - "email", - "offline_access" - ], - "issuer": "https://login.microsoftonline.com/fake-tenant/v2.0", - "request_uri_parameter_supported": false, - "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", - "authorization_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/authorize", - "device_authorization_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/devicecode", - "http_logout_supported": true, - "frontchannel_logout_supported": true, - "end_session_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/logout", - "claims_supported": [ - "sub", - "iss", - "cloud_instance_name", - "cloud_instance_host_name", - "cloud_graph_host_name", - "msgraph_host", - "aud", - "exp", - "iat", - "auth_time", - "acr", - "nonce", - "preferred_username", - "name", - "tid", - "ver", - "at_hash", - "c_hash", - "email" - ], - "kerberos_endpoint": "https://login.microsoftonline.com/fake-tenant/kerberos", - "tenant_region_scope": "NA", - "cloud_instance_name": "microsoftonline.com", - "cloud_graph_host_name": "graph.windows.net", - "msgraph_host": "graph.microsoft.com", - "rbac_url": "https://pas.windows.net" - } - }, - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Content-Length": "2", - "Content-Type": "application/x-www-form-urlencoded; charset=utf-8", - "User-Agent": "azsdk-go-azidentity/v1.3.0-beta.3 (go1.19.3; Windows_NT)" - }, - "RequestBody": {}, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Length": "89", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 27 Jan 2023 00:32:41 GMT", - "Expires": "-1", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Pragma": "no-cache", - "Set-Cookie": [ - "fpc=AtldTtlEjTNPhKsSvKLZB72uN0zNAQAAAKkSZdsOAAAA; expires=Sun, 26-Feb-2023 00:32:42 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.14357.8 - EUS ProdSlices", - "x-ms-request-id": "cfe15df3-7e53-4953-9d2a-44364c789800", - "X-XSS-Protection": "0" - }, - "ResponseBody": { - "token_type": "Bearer", - "expires_in": 3599, - "ext_expires_in": 3599, - "access_token": "redacted" - } - } - ], - "Variables": {} -} diff --git a/sdk/azidentity/testdata/recordings/TestDeviceCodeCredentialADFS_Live.json b/sdk/azidentity/testdata/recordings/TestDeviceCodeCredentialADFS_Live.json deleted file mode 100644 index fd51420a1bef..000000000000 --- a/sdk/azidentity/testdata/recordings/TestDeviceCodeCredentialADFS_Live.json +++ /dev/null @@ -1,183 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://fake.adfs.local/adfs/.well-known/openid-configuration", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v1.3.0-beta.3 (go1.19.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Content-Length": "1986", - "Content-Security-Policy": "default-src \u0027self\u0027 \u0027unsafe-inline\u0027 \u0027unsafe-eval\u0027; img-src \u0027self\u0027 data:;", - "Content-Type": "application/json; charset=UTF-8", - "Date": "Mon, 30 Jan 2023 17:39:36 GMT", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age = 31536000", - "X-Content-Type-Options": "nosniff", - "X-XSS-Protection": "1; mode=block" - }, - "ResponseBody": { - "issuer": "https://fake.adfs.local/adfs/eae0822e-4c1b-41cf-8d9e-6bddf440029c/", - "authorization_endpoint": "https://fake.adfs.local/adfs/oauth2/authorize/", - "token_endpoint": "https://fake.adfs.local/adfs/oauth2/token/", - "jwks_uri": "https://fake.adfs.local/adfs/discovery/keys", - "token_endpoint_auth_methods_supported": [ - "client_secret_post", - "client_secret_basic", - "private_key_jwt", - "windows_client_authentication" - ], - "response_types_supported": [ - "code", - "id_token", - "code id_token", - "id_token token", - "code token", - "code id_token token" - ], - "response_modes_supported": [ - "query", - "fragment", - "form_post" - ], - "grant_types_supported": [ - "authorization_code", - "refresh_token", - "client_credentials", - "urn:ietf:params:oauth:grant-type:jwt-bearer", - "implicit", - "password", - "srv_challenge", - "urn:ietf:params:oauth:grant-type:device_code", - "device_code" - ], - "subject_types_supported": [ - "pairwise" - ], - "scopes_supported": [ - "aza", - "logon_cert", - "profile", - ".default", - "vpn_cert", - "email", - "openid", - "allatclaims", - "user_impersonation", - "winhello_cert" - ], - "id_token_signing_alg_values_supported": [ - "RS256" - ], - "token_endpoint_auth_signing_alg_values_supported": [ - "RS256" - ], - "access_token_issuer": "https://fake.adfs.local/adfs/eae0822e-4c1b-41cf-8d9e-6bddf440029c/", - "claims_supported": [ - "aud", - "iss", - "iat", - "exp", - "auth_time", - "nonce", - "at_hash", - "c_hash", - "sub", - "upn", - "unique_name", - "pwd_url", - "pwd_exp", - "mfa_auth_time", - "sid", - "nbf" - ], - "microsoft_multi_refresh_token": true, - "userinfo_endpoint": "https://fake.adfs.local/adfs/userinfo", - "capabilities": [ - "kdf_ver2" - ], - "end_session_endpoint": "https://fake.adfs.local/adfs/oauth2/logout", - "as_access_token_token_binding_supported": false, - "as_refresh_token_token_binding_supported": false, - "resource_access_token_token_binding_supported": false, - "op_id_token_token_binding_supported": false, - "rp_id_token_token_binding_supported": false, - "frontchannel_logout_supported": true, - "frontchannel_logout_session_supported": true, - "device_authorization_endpoint": "https://fake.adfs.local/adfs/oauth2/devicecode" - } - }, - { - "RequestUri": "https://fake.adfs.local/adfs/oauth2/devicecode/", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Content-Length": "2", - "Content-Type": "application/x-www-form-urlencoded; charset=utf-8", - "User-Agent": "azsdk-go-azidentity/v1.3.0-beta.3 (go1.19.3; Windows_NT)" - }, - "RequestBody": {}, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store", - "Content-Length": "388", - "Content-Security-Policy": "default-src \u0027self\u0027 \u0027unsafe-inline\u0027 \u0027unsafe-eval\u0027; img-src \u0027self\u0027 data:;", - "Content-Type": "application/json; charset=UTF-8", - "Date": "Mon, 30 Jan 2023 17:39:36 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age = 31536000", - "X-Content-Type-Options": "nosniff", - "X-XSS-Protection": "1; mode=block" - }, - "ResponseBody": { - "device_code": "redacted", - "expires_in": 900, - "interval": 5, - "message": "redacted", - "user_code": "redacted", - "verification_uri": "https://fake.adfs.local/adfs/oauth2/deviceauth", - "verification_uri_complete": "https://fake.adfs.local/adfs/oauth2/deviceauth?user_code=TPWGLBSKM\u0026client-request-id=2a5bf874-bebf-462e-f814-0080010000ee", - "verification_url": "https://fake.adfs.local/adfs/oauth2/deviceauth" - } - }, - { - "RequestUri": "https://fake.adfs.local/adfs/oauth2/token/", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Content-Length": "2", - "Content-Type": "application/x-www-form-urlencoded; charset=utf-8", - "User-Agent": "azsdk-go-azidentity/v1.3.0-beta.3 (go1.19.3; Windows_NT)" - }, - "RequestBody": {}, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store", - "Content-Length": "2231", - "Content-Security-Policy": "default-src \u0027self\u0027 \u0027unsafe-inline\u0027 \u0027unsafe-eval\u0027; img-src \u0027self\u0027 data:;", - "Content-Type": "application/json; charset=UTF-8", - "Date": "Mon, 30 Jan 2023 17:40:03 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age = 31536000", - "X-Content-Type-Options": "nosniff", - "X-XSS-Protection": "1; mode=block" - }, - "ResponseBody": { - "access_token": "redacted", - "token_type": "bearer", - "expires_in": 3600, - "resource": "https://adminmanagement.adfs.redmond.selfhost.local/eae0822e-4c1b-41cf-8d9e-6bddf440029c", - "refresh_token": "redacted", - "refresh_token_expires_in": 3600, - "scope": "profile openid https://fake.adfs.local/fake-scope/.default", - "id_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6InRoYUE3NzlSUlZvRWNwWmp5VnlKNXZhMm1oSSIsImtpZCI6InRoYUE3NzlSUlZvRWNwWmp5VnlKNXZhMm1oSSJ9.eyJhdWQiOiIxOTUwYTI1OC0yMjdiLTRlMzEtYTljZi03MTc0OTU5NDVmYzIiLCJpc3MiOiJodHRwczovL2FkZnMucmVkbW9uZC5henVyZXN0YWNrLmNvcnAubWljcm9zb2Z0LmNvbS9hZGZzL2VhZTA4MjJlLTRjMWItNDFjZi04ZDllLTZiZGRmNDQwMDI5Yy8iLCJpYXQiOjE2NzUxMDAzOTksIm5iZiI6MTY3NTEwMDM5OSwiZXhwIjoxNjc1MTAzOTk5LCJhdXRoX3RpbWUiOjE2NzUwOTk4ODEsInN1YiI6ImkrL01ROThlMFY1aUREYnhpV285N2RpRkJqLzJlUHYrRXVEemJtTW1nUk09Iiwic2lkIjoiNmJmZDhiNTItYTJhNy00ZDg5LWEyY2ItYTQ3NTFjODY0ZjQyIiwidXBuIjoiam9ubmd1eWVuQG1pY3Jvc29mdC5jb20iLCJ1bmlxdWVfbmFtZSI6Impvbm5ndXllbkBtaWNyb3NvZnQuY29tIiwiZmFtaWx5X25hbWUiOiJOZ3V5ZW4iLCJnaXZlbl9uYW1lIjoiSm9uYXRoYW4iLCJvaWQiOiJTLTEtNS0yMS0yMTI3NTIxMTg0LTE2MDQwMTI5MjAtMTg4NzkyNzUyNy02MDU0NTk3NCIsInRpZCI6ImVhZTA4MjJlLTRjMWItNDFjZi04ZDllLTZiZGRmNDQwMDI5YyIsImhhc2dyb3VwcyI6InRydWUiLCJhcHBpZGFjciI6IjAiLCJhdXRobWV0aG9kIjoiaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS93cy8yMDA4LzA2L2lkZW50aXR5L2F1dGhlbnRpY2F0aW9ubWV0aG9kL3dpbmRvd3MiLCJBcHBJZCI6IjE5NTBhMjU4LTIyN2ItNGUzMS1hOWNmLTcxNzQ5NTk0NWZjMiIsImFwcHR5cGUiOiJQdWJsaWMiLCJhcHBpZCI6IjE5NTBhMjU4LTIyN2ItNGUzMS1hOWNmLTcxNzQ5NTk0NWZjMiIsInZlciI6IjEuMCIsInNjcCI6InByb2ZpbGUgb3BlbmlkIC5kZWZhdWx0In0.va71bhTEI73k3SlVywEVvUxSK4HwPYHWbD1VTdHfhkLwLQMYBBHjB5Lq1MFnKGlwEZ-5grSojk4VdO2ub6Fy1C0DDRDnNB3JcKAZcb90zRdlVJX6fEzL_29ETHHl1zHzc4xs2um4ybm-HWTybusP9E9Ywl0Ql7oxcXyw_IMVgHJ2jY7_JUEO2cVx5-D9bq0qMvpN-xiFO8P5dWrt31a85uiZz9LdbJXqoroJQfLZTftcG-GzF7zzSlwoXsrPXrH--Gx8Lr4kQhKZcAoDtfMydAEylm_yxC4UPwstXszymZ2zPzFgVSqce96OHj00vqMVP2-8WVERP2DjP2gnWoyeK9Gr320rWQh1NVh6_ZP4Ib2JgG0VwnMhFeFfg9iVic768O_HKdXJ9cLqlvZe1BVPkMPtcQ61xeM2RueoYP8AxzdUKsuR3Ye64KBAz8DsD7egcf-uO0tT-50LfMczxJrE7yW-8hOIcsBvT6g4reRKBs0BzLsyY1DN-zAJCt5pGpYHYZQA15NWhvvDb-DtwFFh89qgeDNHu8wAJ-ihJwnrdcYrlxZeR6VpFzTrd3_Mv5kmJonQ16z-0HR6tdT9FeOtPu8nyXzDxClS13zj9QIOjV1Ua02AolmE_IibROj3g3wt0JJueZKsvMijC7iUtUDqUaoN3dxTTAR81j632F4frTI" - } - } - ], - "Variables": {} -} diff --git a/sdk/azidentity/testdata/recordings/TestDeviceCodeCredential_Live/default_options.json b/sdk/azidentity/testdata/recordings/TestDeviceCodeCredential_Live/default_options.json deleted file mode 100644 index 50761db19c57..000000000000 --- a/sdk/azidentity/testdata/recordings/TestDeviceCodeCredential_Live/default_options.json +++ /dev/null @@ -1,296 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https%3A%2F%2Flogin.microsoftonline.com%2Forganizations%2Foauth2%2Fv2.0%2Fauthorize", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v1.3.0-beta.3 (go1.19.3; linux)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Methods": "GET, OPTIONS", - "Access-Control-Allow-Origin": "*", - "Cache-Control": "max-age=86400, private", - "Content-Length": "957", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 27 Jan 2023 00:49:33 GMT", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Set-Cookie": [ - "fpc=AqAlGewT7B5JkCU6TpQSF6c; expires=Sun, 26-Feb-2023 00:49:33 GMT; path=/; secure; HttpOnly; SameSite=None", - "esctx=PAQABAAEAAAD--DLA3VO7QrddgJg7Wevr_L7XvOHAYbOWadW7aqOsG_byrhy0vaciCdHA52hyTUG50GbEWY0T0JLJPNo5WRiZUQOlkLsbhf_cmyAKhf_AxQ-GNg031zK-zMq7uWhcFxs7sVSINaxWDtRUGOW__1Cb2rj-eOaBENXfknrk7OmDADXDKJHA_-fcKaHPf0prau0gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.14357.8 - EUS ProdSlices", - "x-ms-request-id": "ffb7d6e0-5ccb-4a0e-9f3b-06624062d600", - "X-XSS-Protection": "0" - }, - "ResponseBody": { - "tenant_discovery_endpoint": "https://login.microsoftonline.com/organizations/v2.0/.well-known/openid-configuration", - "api-version": "1.1", - "metadata": [ - { - "preferred_network": "login.microsoftonline.com", - "preferred_cache": "login.windows.net", - "aliases": [ - "login.microsoftonline.com", - "login.windows.net", - "login.microsoft.com", - "sts.windows.net" - ] - }, - { - "preferred_network": "login.partner.microsoftonline.cn", - "preferred_cache": "login.partner.microsoftonline.cn", - "aliases": [ - "login.partner.microsoftonline.cn", - "login.chinacloudapi.cn" - ] - }, - { - "preferred_network": "login.microsoftonline.de", - "preferred_cache": "login.microsoftonline.de", - "aliases": [ - "login.microsoftonline.de" - ] - }, - { - "preferred_network": "login.microsoftonline.us", - "preferred_cache": "login.microsoftonline.us", - "aliases": [ - "login.microsoftonline.us", - "login.usgovcloudapi.net" - ] - }, - { - "preferred_network": "login-us.microsoftonline.com", - "preferred_cache": "login-us.microsoftonline.com", - "aliases": [ - "login-us.microsoftonline.com" - ] - } - ] - } - }, - { - "RequestUri": "https://login.microsoftonline.com/organizations/v2.0/.well-known/openid-configuration", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v1.3.0-beta.3 (go1.19.3; linux)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Methods": "GET, OPTIONS", - "Access-Control-Allow-Origin": "*", - "Cache-Control": "max-age=86400, private", - "Content-Length": "1589", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 27 Jan 2023 00:49:33 GMT", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Set-Cookie": [ - "fpc=AqAlGewT7B5JkCU6TpQSF6c; expires=Sun, 26-Feb-2023 00:49:34 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.14357.8 - WUS2 ProdSlices", - "x-ms-request-id": "1c1e15dc-ba3e-4b7a-a9de-bb6213f07c00", - "X-XSS-Protection": "0" - }, - "ResponseBody": { - "token_endpoint": "https://login.microsoftonline.com/organizations/oauth2/v2.0/token", - "token_endpoint_auth_methods_supported": [ - "client_secret_post", - "private_key_jwt", - "client_secret_basic" - ], - "jwks_uri": "https://login.microsoftonline.com/organizations/discovery/v2.0/keys", - "response_modes_supported": [ - "query", - "fragment", - "form_post" - ], - "subject_types_supported": [ - "pairwise" - ], - "id_token_signing_alg_values_supported": [ - "RS256" - ], - "response_types_supported": [ - "code", - "id_token", - "code id_token", - "id_token token" - ], - "scopes_supported": [ - "openid", - "profile", - "email", - "offline_access" - ], - "issuer": "https://login.microsoftonline.com/{tenantid}/v2.0", - "request_uri_parameter_supported": false, - "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", - "authorization_endpoint": "https://login.microsoftonline.com/organizations/oauth2/v2.0/authorize", - "device_authorization_endpoint": "https://login.microsoftonline.com/organizations/oauth2/v2.0/devicecode", - "http_logout_supported": true, - "frontchannel_logout_supported": true, - "end_session_endpoint": "https://login.microsoftonline.com/organizations/oauth2/v2.0/logout", - "claims_supported": [ - "sub", - "iss", - "cloud_instance_name", - "cloud_instance_host_name", - "cloud_graph_host_name", - "msgraph_host", - "aud", - "exp", - "iat", - "auth_time", - "acr", - "nonce", - "preferred_username", - "name", - "tid", - "ver", - "at_hash", - "c_hash", - "email" - ], - "kerberos_endpoint": "https://login.microsoftonline.com/organizations/kerberos", - "tenant_region_scope": null, - "cloud_instance_name": "microsoftonline.com", - "cloud_graph_host_name": "graph.windows.net", - "msgraph_host": "graph.microsoft.com", - "rbac_url": "https://pas.windows.net" - } - }, - { - "RequestUri": "https://login.microsoftonline.com/organizations/oauth2/v2.0/devicecode", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Content-Length": "2", - "Content-Type": "application/x-www-form-urlencoded; charset=utf-8", - "User-Agent": "azsdk-go-azidentity/v1.3.0-beta.3 (go1.19.3; linux)" - }, - "RequestBody": {}, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Length": "155", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 27 Jan 2023 00:49:33 GMT", - "Expires": "-1", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Pragma": "no-cache", - "Set-Cookie": [ - "fpc=AqAlGewT7B5JkCU6TpQSF6d1eSrYAQAAAJ4WZdsOAAAA; expires=Sun, 26-Feb-2023 00:49:34 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.14526.6 - NCUS ProdSlices", - "x-ms-request-id": "5d82da0f-b8a5-4c14-bd49-01915cff3900", - "X-XSS-Protection": "0" - }, - "ResponseBody": { - "user_code": "redacted", - "device_code": "redacted", - "verification_uri": "https://microsoft.com/devicelogin", - "expires_in": 900, - "interval": 5, - "message": "redacted" - } - }, - { - "RequestUri": "https://login.microsoftonline.com/organizations/oauth2/v2.0/token", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Content-Length": "2", - "Content-Type": "application/x-www-form-urlencoded; charset=utf-8", - "User-Agent": "azsdk-go-azidentity/v1.3.0-beta.3 (go1.19.3; linux)" - }, - "RequestBody": {}, - "StatusCode": 400, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Length": "510", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 27 Jan 2023 00:50:04 GMT", - "Expires": "-1", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Pragma": "no-cache", - "Set-Cookie": [ - "fpc=AqAlGewT7B5JkCU6TpQSF6d1eSrYAQAAAJ4WZdsOAAAA; expires=Sun, 26-Feb-2023 00:50:05 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.14357.8 - SCUS ProdSlices", - "x-ms-request-id": "2902ef55-9b43-4155-a7c0-1f02278e6600", - "X-XSS-Protection": "0" - }, - "ResponseBody": { - "error": "authorization_pending", - "error_description": "AADSTS70016: OAuth 2.0 device flow error. Authorization is pending. Continue polling.\r\nTrace ID: 2902ef55-9b43-4155-a7c0-1f02278e6600\r\nCorrelation ID: 867ce6b1-f4b6-4f78-ad0a-1d14cc78dbf9\r\nTimestamp: 2023-01-27 00:50:05Z", - "error_codes": [ - 70016 - ], - "timestamp": "2023-01-27 00:50:05Z", - "trace_id": "2902ef55-9b43-4155-a7c0-1f02278e6600", - "correlation_id": "867ce6b1-f4b6-4f78-ad0a-1d14cc78dbf9", - "error_uri": "https://login.microsoftonline.com/error?code=70016" - } - }, - { - "RequestUri": "https://login.microsoftonline.com/organizations/oauth2/v2.0/token", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Content-Length": "2", - "Content-Type": "application/x-www-form-urlencoded; charset=utf-8", - "User-Agent": "azsdk-go-azidentity/v1.3.0-beta.3 (go1.19.3; linux)" - }, - "RequestBody": {}, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Length": "1716", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 27 Jan 2023 00:50:09 GMT", - "Expires": "-1", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Pragma": "no-cache", - "Set-Cookie": [ - "fpc=AqAlGewT7B5JkCU6TpQSF6d1eSrYAQAAAJ4WZdsOAAAACxysCAEAAADBFmXbDgAAAA; expires=Sun, 26-Feb-2023 00:50:10 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.14526.6 - NCUS ProdSlices", - "x-ms-request-id": "4c4c8386-e2a7-4933-9588-add8c8cb7b00", - "X-XSS-Protection": "0" - }, - "ResponseBody": { - "token_type": "Bearer", - "scope": "https://management.core.windows.net//user_impersonation https://management.core.windows.net//.default", - "expires_in": 4145, - "ext_expires_in": 4145, - "access_token": "redacted", - "refresh_token": "redacted", - "foci": "1", - "id_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6Ii1LSTNROW5OUjdiUm9meG1lWm9YcWJIWkdldyJ9.eyJhdWQiOiIwNGIwNzc5NS04ZGRiLTQ2MWEtYmJlZS0wMmY5ZTFiZjdiNDYiLCJpc3MiOiJodHRwczovL2xvZ2luLm1pY3Jvc29mdG9ubGluZS5jb20vNzJmOTg4YmYtODZmMS00MWFmLTkxYWItMmQ3Y2QwMTFkYjQ3L3YyLjAiLCJpYXQiOjE2NzQ3ODAzMTAsIm5iZiI6MTY3NDc4MDMxMCwiZXhwIjoxNjc0Nzg0MjEwLCJhaW8iOiJBV1FBbS84VEFBQUFHajV6TkdEZllZQTIvNzdCM21DYlZUZUd0bEpYdS9qMXl3T05LZUtINWtQY0VBem9Va0Q1M3pkdVZtZ3UyQWNWUkNNYi9YdXYwUDFTUDFZQXJMQXhKeHRUTy9CckQ4YUNHWnFRZjNsdzh3anRnZHlxVnQ4N3JiaG9Hb1BtaHkzeSIsIm5hbWUiOiJDaGFybGVzIExvd2VsbCIsIm9pZCI6Ijc0Njc3NTU4LWYzNjktNDc5Mi1hZmU1LWY5OTczOGI1ZmE3YyIsInByZWZlcnJlZF91c2VybmFtZSI6ImNobG93ZUBtaWNyb3NvZnQuY29tIiwicHVpZCI6IjEwMDMwMDAwOEM1NTk3NzgiLCJyaCI6IjAuQVFFQXY0ajVjdkdHcjBHUnF5MTgwQkhiUjVWM3NBVGJqUnBHdS00Qy1lR19lMFlhQUx3LiIsInN1YiI6ImN2dmdUTkhneDJYS0F5NDVRVEhCQ3JuQl8tS2ZKeHNDLTBTWXBNVkNaUWsiLCJ0aWQiOiI3MmY5ODhiZi04NmYxLTQxYWYtOTFhYi0yZDdjZDAxMWRiNDciLCJ1dGkiOiJob05NVEtmaU0wbVZpSzNZeU10N0FBIiwidmVyIjoiMi4wIn0.hCvBG_-C9Wo4Vx3uUImdbE3DDiWDL5Z6CFgkJaK5wjsz2LZagv7UQWhz_P4p7NgqjX2fVzjHpp_cuY1-c4WUd6lsc0c7JU7ukTwhcub0oTiwxDmhGPJPQva1E5BnDCnQknb7u9X6xUPWcgosrPWhrQ3J9bI9ZbHHcgV9TYDWs_O5V9MiJMAdvjPU18DjEwCoceeiBojge5OG6uyPzMNrSEIh66Qp5bsqYAtPZDFDg8edUK8Kj9bv6gy-_zma-H0AU44cAsj0NEjDbBhbgotqo6T0Q1y5rwXDYlJioRfce71GzcKIGxYlyinjxM8gTUgYkfqU7svqYEkcsUzUGM0r8w", - "client_info": "eyJ1aWQiOiI3NDY3NzU1OC1mMzY5LTQ3OTItYWZlNS1mOTk3MzhiNWZhN2MiLCJ1dGlkIjoiNzJmOTg4YmYtODZmMS00MWFmLTkxYWItMmQ3Y2QwMTFkYjQ3In0" - } - } - ], - "Variables": {} -} diff --git a/sdk/azidentity/testdata/recordings/TestDeviceCodeCredential_Live/instance_discovery_disabled.json b/sdk/azidentity/testdata/recordings/TestDeviceCodeCredential_Live/instance_discovery_disabled.json deleted file mode 100644 index 497fdd4baf49..000000000000 --- a/sdk/azidentity/testdata/recordings/TestDeviceCodeCredential_Live/instance_discovery_disabled.json +++ /dev/null @@ -1,179 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/v2.0/.well-known/openid-configuration", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v1.3.0-beta.3 (go1.19.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Methods": "GET, OPTIONS", - "Access-Control-Allow-Origin": "*", - "Cache-Control": "max-age=86400, private", - "Content-Length": "1577", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 27 Jan 2023 01:08:55 GMT", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Set-Cookie": [ - "fpc=AtldTtlEjTNPhKsSvKLZB711eSrYAgAAAMMZZdsOAAAAu0ycEAIAAADkGWXbDgAAAA; expires=Sun, 26-Feb-2023 01:08:55 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.14357.8 - EUS ProdSlices", - "x-ms-request-id": "d5c1731a-1297-4b9e-9625-5b226f886700", - "X-XSS-Protection": "0" - }, - "ResponseBody": { - "token_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "token_endpoint_auth_methods_supported": [ - "client_secret_post", - "private_key_jwt", - "client_secret_basic" - ], - "jwks_uri": "https://login.microsoftonline.com/fake-tenant/discovery/v2.0/keys", - "response_modes_supported": [ - "query", - "fragment", - "form_post" - ], - "subject_types_supported": [ - "pairwise" - ], - "id_token_signing_alg_values_supported": [ - "RS256" - ], - "response_types_supported": [ - "code", - "id_token", - "code id_token", - "id_token token" - ], - "scopes_supported": [ - "openid", - "profile", - "email", - "offline_access" - ], - "issuer": "https://login.microsoftonline.com/{tenantid}/v2.0", - "request_uri_parameter_supported": false, - "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", - "authorization_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/authorize", - "device_authorization_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/devicecode", - "http_logout_supported": true, - "frontchannel_logout_supported": true, - "end_session_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/logout", - "claims_supported": [ - "sub", - "iss", - "cloud_instance_name", - "cloud_instance_host_name", - "cloud_graph_host_name", - "msgraph_host", - "aud", - "exp", - "iat", - "auth_time", - "acr", - "nonce", - "preferred_username", - "name", - "tid", - "ver", - "at_hash", - "c_hash", - "email" - ], - "kerberos_endpoint": "https://login.microsoftonline.com/fake-tenant/kerberos", - "tenant_region_scope": null, - "cloud_instance_name": "microsoftonline.com", - "cloud_graph_host_name": "graph.windows.net", - "msgraph_host": "graph.microsoft.com", - "rbac_url": "https://pas.windows.net" - } - }, - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/devicecode", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Content-Length": "2", - "Content-Type": "application/x-www-form-urlencoded; charset=utf-8", - "User-Agent": "azsdk-go-azidentity/v1.3.0-beta.3 (go1.19.3; Windows_NT)" - }, - "RequestBody": {}, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Length": "155", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 27 Jan 2023 01:08:55 GMT", - "Expires": "-1", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Pragma": "no-cache", - "Set-Cookie": [ - "fpc=AtldTtlEjTNPhKsSvKLZB711eSrYAQAAAO8aZdsOAAAAu0ycEAIAAADkGWXbDgAAAA; expires=Sun, 26-Feb-2023 01:08:55 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.14357.8 - WUS2 ProdSlices", - "x-ms-request-id": "4eabe359-c66c-4eda-82e9-606f0f540800", - "X-XSS-Protection": "0" - }, - "ResponseBody": { - "user_code": "redacted", - "device_code": "redacted", - "verification_uri": "https://microsoft.com/devicelogin", - "expires_in": 900, - "interval": 5, - "message": "redacted" - } - }, - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Content-Length": "2", - "Content-Type": "application/x-www-form-urlencoded; charset=utf-8", - "User-Agent": "azsdk-go-azidentity/v1.3.0-beta.3 (go1.19.3; Windows_NT)" - }, - "RequestBody": {}, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Length": "1753", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 27 Jan 2023 01:09:23 GMT", - "Expires": "-1", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Pragma": "no-cache", - "Set-Cookie": [ - "fpc=AtldTtlEjTNPhKsSvKLZB711eSrYAQAAAO8aZdsOAAAAu0ycEAEAAAAQG2XbDgAAAA; expires=Sun, 26-Feb-2023 01:09:24 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.14526.6 - EUS ProdSlices", - "x-ms-request-id": "269d4f7f-17d3-473c-99ff-4692d62c3500", - "X-XSS-Protection": "0" - }, - "ResponseBody": { - "token_type": "Bearer", - "scope": "https://management.core.windows.net//user_impersonation https://management.core.windows.net//.default", - "expires_in": 3868, - "ext_expires_in": 3868, - "access_token": "redacted", - "refresh_token": "redacted", - "foci": "1", - "id_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6Ii1LSTNROW5OUjdiUm9meG1lWm9YcWJIWkdldyJ9.eyJhdWQiOiIwNGIwNzc5NS04ZGRiLTQ2MWEtYmJlZS0wMmY5ZTFiZjdiNDYiLCJpc3MiOiJodHRwczovL2xvZ2luLm1pY3Jvc29mdG9ubGluZS5jb20vNzJmOTg4YmYtODZmMS00MWFmLTkxYWItMmQ3Y2QwMTFkYjQ3L3YyLjAiLCJpYXQiOjE2NzQ3ODE0NjMsIm5iZiI6MTY3NDc4MTQ2MywiZXhwIjoxNjc0Nzg1MzYzLCJhaW8iOiJBWFFBaS84VEFBQUFDdTZtZlZtUjd5TVFvTjJPclJiZy83cis0YnEzVFhXbmlFbGFNSXY2dFpFNVp6Ly9jejZ0NERKZ0o2Z3A2eDNyS2NDWC9rTGEvRU5NY1B2R2tDb1JQVlhyRUxKU3RaQXNlM2NMMnQ2c3pHQStQRTh4b0lxRWd2YiszcWQ4V3FJVkFuUFI2UjJ0dkdOOEdFVDQ0Q1I3WkE9PSIsIm5hbWUiOiJKb25hdGhhbiBOZ3V5ZW4iLCJvaWQiOiJjYjg2MjRhNi1iZWFjLTRlOGYtOTg3Zi05NzY5ZWFjZWEyZjgiLCJwcmVmZXJyZWRfdXNlcm5hbWUiOiJqb25uZ3V5ZW5AbWljcm9zb2Z0LmNvbSIsInB1aWQiOiIxMDAzMjAwMjI0MTEyNjc2IiwicmgiOiIwLkFSb0F2NGo1Y3ZHR3IwR1JxeTE4MEJIYlI1VjNzQVRialJwR3UtNEMtZUdfZTBZYUFFRS4iLCJzdWIiOiJaeWVJZ25PUENuX2JUWnJzSTJmc2xWckI2aDhmNGx4WlhtdHJSdDRMNXprIiwidGlkIjoiNzJmOTg4YmYtODZmMS00MWFmLTkxYWItMmQ3Y2QwMTFkYjQ3IiwidXRpIjoiZjAtZEp0TVhQRWVaXzBhUzFpdzFBQSIsInZlciI6IjIuMCJ9.eWFje3XfMww79Y6wcG4B87lB-nIl2EvRP3hioTpkaj_MU5yUVAUOPRNM_voIjTuDOk13we3GgKDxKTSJhF_jcc-xSnSC_JG14BpyyJ8H7SS6BWscfN-PCMGYDmaJ98LtO2imz_7niMwlw_DhD4nBZbc1NaQ2htILMEhzYRPW3X4D11kKsRn82dtfsA7Bo83Sc7FfTrlrYxanAxyrPkkE5MeV-KfhOBGRdQWZvWFlLrXb-D24QuAKZXE9LPDYEHfMTLWMUVtlYyP2WxytMCATWMBKKXMTIZ87UdsknCNZfxV-X9OhqP04pzHjPeoY1ERKu022WsCOcq_R_pHv8DwsdA", - "client_info": "eyJ1aWQiOiJjYjg2MjRhNi1iZWFjLTRlOGYtOTg3Zi05NzY5ZWFjZWEyZjgiLCJ1dGlkIjoiNzJmOTg4YmYtODZmMS00MWFmLTkxYWItMmQ3Y2QwMTFkYjQ3In0" - } - } - ], - "Variables": {} -} diff --git a/sdk/azidentity/testdata/recordings/TestDeviceCodeCredential_Live/optional_tenant.json b/sdk/azidentity/testdata/recordings/TestDeviceCodeCredential_Live/optional_tenant.json deleted file mode 100644 index 037121df960e..000000000000 --- a/sdk/azidentity/testdata/recordings/TestDeviceCodeCredential_Live/optional_tenant.json +++ /dev/null @@ -1,299 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https%3A%2F%2Flogin.microsoftonline.com%2Ffake-tenant%2Foauth2%2Fv2.0%2Fauthorize", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Methods": "GET, OPTIONS", - "Access-Control-Allow-Origin": "*", - "Cache-Control": "max-age=86400, private", - "Content-Length": "955", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 25 Jan 2022 00:31:27 GMT", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwA; expires=Thu, 24-Feb-2022 00:31:28 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - NCUS ProdSlices", - "x-ms-request-id": "85bf313d-a0fa-45ca-906b-c4a4111a1a00" - }, - "ResponseBody": { - "tenant_discovery_endpoint": "https://login.microsoftonline.com/fake-tenant/v2.0/.well-known/openid-configuration", - "api-version": "1.1", - "metadata": [ - { - "preferred_network": "login.microsoftonline.com", - "preferred_cache": "login.windows.net", - "aliases": [ - "login.microsoftonline.com", - "login.windows.net", - "login.microsoft.com", - "sts.windows.net" - ] - }, - { - "preferred_network": "login.partner.microsoftonline.cn", - "preferred_cache": "login.partner.microsoftonline.cn", - "aliases": [ - "login.partner.microsoftonline.cn", - "login.chinacloudapi.cn" - ] - }, - { - "preferred_network": "login.microsoftonline.de", - "preferred_cache": "login.microsoftonline.de", - "aliases": [ - "login.microsoftonline.de" - ] - }, - { - "preferred_network": "login.microsoftonline.us", - "preferred_cache": "login.microsoftonline.us", - "aliases": [ - "login.microsoftonline.us", - "login.usgovcloudapi.net" - ] - }, - { - "preferred_network": "login-us.microsoftonline.com", - "preferred_cache": "login-us.microsoftonline.com", - "aliases": [ - "login-us.microsoftonline.com" - ] - } - ] - } - }, - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/v2.0/.well-known/openid-configuration", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Methods": "GET, OPTIONS", - "Access-Control-Allow-Origin": "*", - "Cache-Control": "max-age=86400, private", - "Content-Length": "1578", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 25 Jan 2022 00:31:28 GMT", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwA; expires=Thu, 24-Feb-2022 00:31:29 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - EUS ProdSlices", - "x-ms-request-id": "fd83906d-505d-49f7-9332-0832b67e9700" - }, - "ResponseBody": { - "token_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "token_endpoint_auth_methods_supported": [ - "client_secret_post", - "private_key_jwt", - "client_secret_basic" - ], - "jwks_uri": "https://login.microsoftonline.com/fake-tenant/discovery/v2.0/keys", - "response_modes_supported": [ - "query", - "fragment", - "form_post" - ], - "subject_types_supported": [ - "pairwise" - ], - "id_token_signing_alg_values_supported": [ - "RS256" - ], - "response_types_supported": [ - "code", - "id_token", - "code id_token", - "id_token token" - ], - "scopes_supported": [ - "openid", - "profile", - "email", - "offline_access" - ], - "issuer": "https://login.microsoftonline.com/fake-tenant/v2.0", - "request_uri_parameter_supported": false, - "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", - "authorization_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/authorize", - "device_authorization_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/devicecode", - "http_logout_supported": true, - "frontchannel_logout_supported": true, - "end_session_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/logout", - "claims_supported": [ - "sub", - "iss", - "cloud_instance_name", - "cloud_instance_host_name", - "cloud_graph_host_name", - "msgraph_host", - "aud", - "exp", - "iat", - "auth_time", - "acr", - "nonce", - "preferred_username", - "name", - "tid", - "ver", - "at_hash", - "c_hash", - "email" - ], - "kerberos_endpoint": "https://login.microsoftonline.com/fake-tenant/kerberos", - "tenant_region_scope": "NA", - "cloud_instance_name": "microsoftonline.com", - "cloud_graph_host_name": "graph.windows.net", - "msgraph_host": "graph.microsoft.com", - "rbac_url": "https://pas.windows.net" - } - }, - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/devicecode", - "RequestMethod": "POST", - "RequestHeaders": { - ":method": "POST", - "Accept-Encoding": "gzip", - "Content-Length": "2", - "Content-Type": "application/x-www-form-urlencoded; charset=utf-8", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": {}, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Length": "155", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 25 Jan 2022 00:31:28 GMT", - "Expires": "-1", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Pragma": "no-cache", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwDerBK3AQAAAOA7gdkOAAAA; expires=Thu, 24-Feb-2022 00:31:29 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - NCUS ProdSlices", - "x-ms-request-id": "a4be07f0-9bbb-43a2-8435-3ac0d8955800" - }, - "ResponseBody": { - "user_code": "redacted", - "device_code": "redacted", - "verification_uri": "https://microsoft.com/devicelogin", - "expires_in": 900, - "interval": 5, - "message": "redacted" - } - }, - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "RequestMethod": "POST", - "RequestHeaders": { - ":method": "POST", - "Accept-Encoding": "gzip", - "Content-Length": "2", - "Content-Type": "application/x-www-form-urlencoded; charset=utf-8", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": {}, - "StatusCode": 400, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Length": "510", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 25 Jan 2022 00:31:41 GMT", - "Expires": "-1", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Pragma": "no-cache", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwDerBK3AQAAAOA7gdkOAAAA; expires=Thu, 24-Feb-2022 00:31:41 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - SCUS ProdSlices", - "x-ms-request-id": "11b07c5a-510c-401a-863b-865bb7b7bd00" - }, - "ResponseBody": { - "error": "authorization_pending", - "error_description": "AADSTS70016: OAuth 2.0 device flow error. Authorization is pending. Continue polling.\r\nTrace ID: 11b07c5a-510c-401a-863b-865bb7b7bd00\r\nCorrelation ID: 28a362d7-4334-4653-87d9-3545212ad4b7\r\nTimestamp: 2022-01-25 00:31:41Z", - "error_codes": [ - 70016 - ], - "timestamp": "2022-01-25 00:31:41Z", - "trace_id": "11b07c5a-510c-401a-863b-865bb7b7bd00", - "correlation_id": "28a362d7-4334-4653-87d9-3545212ad4b7", - "error_uri": "https://login.microsoftonline.com/error?code=70016" - } - }, - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "RequestMethod": "POST", - "RequestHeaders": { - ":method": "POST", - "Accept-Encoding": "gzip", - "Content-Length": "2", - "Content-Type": "application/x-www-form-urlencoded; charset=utf-8", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": {}, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Length": "1680", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 25 Jan 2022 00:31:46 GMT", - "Expires": "-1", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Pragma": "no-cache", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwDerBK3AQAAAOA7gdkOAAAAptODMAEAAADyO4HZDgAAAA; expires=Thu, 24-Feb-2022 00:31:46 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - WUS2 ProdSlices", - "x-ms-request-id": "e259a8e3-e82d-441d-b52e-32db07d4aa00" - }, - "ResponseBody": { - "token_type": "Bearer", - "scope": "https://management.core.windows.net//user_impersonation https://management.core.windows.net//.default", - "expires_in": 5395, - "ext_expires_in": 5395, - "access_token": "redacted", - "refresh_token": "redacted", - "foci": "1", - "id_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6Imwzc1EtNTBjQ0g0eEJWWkxIVEd3blNSNzY4MCJ9.eyJhdWQiOiIwNGIwNzc5NS04ZGRiLTQ2MWEtYmJlZS0wMmY5ZTFiZjdiNDYiLCJpc3MiOiJodHRwczovL2xvZ2luLm1pY3Jvc29mdG9ubGluZS5jb20vYzU0ZmFjODgtM2RkMy00NjFmLWE3YzQtOGEzNjhlMDM0MGIzL3YyLjAiLCJpYXQiOjE2MzcxODcyMDksIm5iZiI6MTYzNzE4NzIwOSwiZXhwIjoxNjM3MTkxMTA5LCJhaW8iOiJBWFFBaS84VEFBQUE2TEIyelluZGdKU2dGMFg3bFNCdmZDdmVMOWpHaWRvQytCNW9LdG43VTYrN0tmcXpPSElNQkIvK2phdWYzVmVWUUc4RElxbGVDZjFWZGxFZHZ6SzluaDRuakFGell4VndFUnpZakZrM1BtSmdiR1NQVzdNcENHdzlUNGFWME9RTTBDWDMxY2VKUkl4c1JCT0lUNWhBQXc9PSIsImlkcCI6Imh0dHBzOi8vc3RzLndpbmRvd3MubmV0LzcyZjk4OGJmLTg2ZjEtNDFhZi05MWFiLTJkN2NkMDExZGI0Ny8iLCJuYW1lIjoiQ2hhcmxlcyBMb3dlbGwiLCJwcmVmZXJyZWRfdXNlcm5hbWUiOiJjaGxvd2VAbWljcm9zb2Z0LmNvbSIsInJoIjoiMC5BUzBBaUt4UHhkTTlIMGFueElvMmpnTkFzNVYzc0FUYmpScEd1LTRDLWVHX2UwWXRBTHcuIiwic3ViIjoiaTAyeDB0VlRvZml5ZEItbHpDcllrZHFMMG9WWURJa1FZOWxjQkRaektYWSIsInRpZCI6ImM1NGZhYzg4LTNkZDMtNDYxZi1hN2M0LThhMzY4ZTAzNDBiMyIsInV0aSI6IlhhLTAzaEJYaEVDQzFlTnBBUG4tQUEiLCJ2ZXIiOiIyLjAifQ.jB_62weja3xe6gS25CuoGjWz0QoWflJwg-SVoCZfN9ceZoikftx2rh0elh-_qmh53TSHQM4txybxH02weo_K4tVR-g_KJB9BhsmN_RiHNrYZGC1UZ8R0pYFq3nYXo6XYyN1pN1GD8S6R_DB59IWGBe3TqBoMavn3tGHqXGipnKVkFMGvmoj5ac8MwAU4JoZizLla7Ue6QP_X_FsMaVIHI5W3WpVgHr-JQk8CoDgeiSFLkkjsJtx84Lpz6EVuObfMJ0yG00_zWuzPeDce6yTvirB0RaoY3jUiemwIEAqXliCYL9x4V930OxsPnR4Jtk8IK63ryRS6QcIMd_7JnpsaOw", - "client_info": "eyJ1aWQiOiI3NDY3NzU1OC1mMzY5LTQ3OTItYWZlNS1mOTk3MzhiNWZhN2MiLCJ1dGlkIjoiNzJmOTg4YmYtODZmMS00MWFmLTkxYWItMmQ3Y2QwMTFkYjQ3In0" - } - } - ], - "Variables": {} -} diff --git a/sdk/azidentity/testdata/recordings/TestEnvironmentCredentialADFS_ClientSecretLive.json b/sdk/azidentity/testdata/recordings/TestEnvironmentCredentialADFS_ClientSecretLive.json deleted file mode 100644 index 9fd2093bdf2a..000000000000 --- a/sdk/azidentity/testdata/recordings/TestEnvironmentCredentialADFS_ClientSecretLive.json +++ /dev/null @@ -1,145 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://fake.adfs.local/adfs/.well-known/openid-configuration", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v1.3.0-beta.3 (go1.19.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Content-Length": "1986", - "Content-Security-Policy": "default-src \u0027self\u0027 \u0027unsafe-inline\u0027 \u0027unsafe-eval\u0027; img-src \u0027self\u0027 data:;", - "Content-Type": "application/json; charset=UTF-8", - "Date": "Mon, 30 Jan 2023 17:45:18 GMT", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age = 31536000", - "X-Content-Type-Options": "nosniff", - "X-XSS-Protection": "1; mode=block" - }, - "ResponseBody": { - "issuer": "https://fake.adfs.local/adfs/eae0822e-4c1b-41cf-8d9e-6bddf440029c/", - "authorization_endpoint": "https://fake.adfs.local/adfs/oauth2/authorize/", - "token_endpoint": "https://fake.adfs.local/adfs/oauth2/token/", - "jwks_uri": "https://fake.adfs.local/adfs/discovery/keys", - "token_endpoint_auth_methods_supported": [ - "client_secret_post", - "client_secret_basic", - "private_key_jwt", - "windows_client_authentication" - ], - "response_types_supported": [ - "code", - "id_token", - "code id_token", - "id_token token", - "code token", - "code id_token token" - ], - "response_modes_supported": [ - "query", - "fragment", - "form_post" - ], - "grant_types_supported": [ - "authorization_code", - "refresh_token", - "client_credentials", - "urn:ietf:params:oauth:grant-type:jwt-bearer", - "implicit", - "password", - "srv_challenge", - "urn:ietf:params:oauth:grant-type:device_code", - "device_code" - ], - "subject_types_supported": [ - "pairwise" - ], - "scopes_supported": [ - "aza", - "logon_cert", - "profile", - ".default", - "vpn_cert", - "email", - "openid", - "allatclaims", - "user_impersonation", - "winhello_cert" - ], - "id_token_signing_alg_values_supported": [ - "RS256" - ], - "token_endpoint_auth_signing_alg_values_supported": [ - "RS256" - ], - "access_token_issuer": "https://fake.adfs.local/adfs/eae0822e-4c1b-41cf-8d9e-6bddf440029c/", - "claims_supported": [ - "aud", - "iss", - "iat", - "exp", - "auth_time", - "nonce", - "at_hash", - "c_hash", - "sub", - "upn", - "unique_name", - "pwd_url", - "pwd_exp", - "mfa_auth_time", - "sid", - "nbf" - ], - "microsoft_multi_refresh_token": true, - "userinfo_endpoint": "https://fake.adfs.local/adfs/userinfo", - "capabilities": [ - "kdf_ver2" - ], - "end_session_endpoint": "https://fake.adfs.local/adfs/oauth2/logout", - "as_access_token_token_binding_supported": false, - "as_refresh_token_token_binding_supported": false, - "resource_access_token_token_binding_supported": false, - "op_id_token_token_binding_supported": false, - "rp_id_token_token_binding_supported": false, - "frontchannel_logout_supported": true, - "frontchannel_logout_session_supported": true, - "device_authorization_endpoint": "https://fake.adfs.local/adfs/oauth2/devicecode" - } - }, - { - "RequestUri": "https://fake.adfs.local/adfs/oauth2/token/", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Content-Length": "2", - "Content-Type": "application/x-www-form-urlencoded; charset=utf-8", - "User-Agent": "azsdk-go-azidentity/v1.3.0-beta.3 (go1.19.3; Windows_NT)" - }, - "RequestBody": {}, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store", - "Content-Length": "136", - "Content-Security-Policy": "default-src \u0027self\u0027 \u0027unsafe-inline\u0027 \u0027unsafe-eval\u0027; img-src \u0027self\u0027 data:;", - "Content-Type": "application/json; charset=UTF-8", - "Date": "Mon, 30 Jan 2023 17:45:18 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age = 31536000", - "X-Content-Type-Options": "nosniff", - "X-XSS-Protection": "1; mode=block" - }, - "ResponseBody": { - "access_token": "redacted", - "token_type": "bearer", - "expires_in": 3600, - "scope": "profile openid https://fake.adfs.local/fake-scope/.default" - } - } - ], - "Variables": {} -} diff --git a/sdk/azidentity/testdata/recordings/TestEnvironmentCredentialADFS_UserPasswordLive.json b/sdk/azidentity/testdata/recordings/TestEnvironmentCredentialADFS_UserPasswordLive.json deleted file mode 100644 index b628ddd78d6c..000000000000 --- a/sdk/azidentity/testdata/recordings/TestEnvironmentCredentialADFS_UserPasswordLive.json +++ /dev/null @@ -1,149 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://fake.adfs.local/adfs/.well-known/openid-configuration", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v1.3.0-beta.3 (go1.19.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Content-Length": "1986", - "Content-Security-Policy": "default-src \u0027self\u0027 \u0027unsafe-inline\u0027 \u0027unsafe-eval\u0027; img-src \u0027self\u0027 data:;", - "Content-Type": "application/json; charset=UTF-8", - "Date": "Mon, 30 Jan 2023 17:45:46 GMT", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age = 31536000", - "X-Content-Type-Options": "nosniff", - "X-XSS-Protection": "1; mode=block" - }, - "ResponseBody": { - "issuer": "https://fake.adfs.local/adfs/eae0822e-4c1b-41cf-8d9e-6bddf440029c/", - "authorization_endpoint": "https://fake.adfs.local/adfs/oauth2/authorize/", - "token_endpoint": "https://fake.adfs.local/adfs/oauth2/token/", - "jwks_uri": "https://fake.adfs.local/adfs/discovery/keys", - "token_endpoint_auth_methods_supported": [ - "client_secret_post", - "client_secret_basic", - "private_key_jwt", - "windows_client_authentication" - ], - "response_types_supported": [ - "code", - "id_token", - "code id_token", - "id_token token", - "code token", - "code id_token token" - ], - "response_modes_supported": [ - "query", - "fragment", - "form_post" - ], - "grant_types_supported": [ - "authorization_code", - "refresh_token", - "client_credentials", - "urn:ietf:params:oauth:grant-type:jwt-bearer", - "implicit", - "password", - "srv_challenge", - "urn:ietf:params:oauth:grant-type:device_code", - "device_code" - ], - "subject_types_supported": [ - "pairwise" - ], - "scopes_supported": [ - "aza", - "logon_cert", - "profile", - ".default", - "vpn_cert", - "email", - "openid", - "allatclaims", - "user_impersonation", - "winhello_cert" - ], - "id_token_signing_alg_values_supported": [ - "RS256" - ], - "token_endpoint_auth_signing_alg_values_supported": [ - "RS256" - ], - "access_token_issuer": "https://fake.adfs.local/adfs/eae0822e-4c1b-41cf-8d9e-6bddf440029c/", - "claims_supported": [ - "aud", - "iss", - "iat", - "exp", - "auth_time", - "nonce", - "at_hash", - "c_hash", - "sub", - "upn", - "unique_name", - "pwd_url", - "pwd_exp", - "mfa_auth_time", - "sid", - "nbf" - ], - "microsoft_multi_refresh_token": true, - "userinfo_endpoint": "https://fake.adfs.local/adfs/userinfo", - "capabilities": [ - "kdf_ver2" - ], - "end_session_endpoint": "https://fake.adfs.local/adfs/oauth2/logout", - "as_access_token_token_binding_supported": false, - "as_refresh_token_token_binding_supported": false, - "resource_access_token_token_binding_supported": false, - "op_id_token_token_binding_supported": false, - "rp_id_token_token_binding_supported": false, - "frontchannel_logout_supported": true, - "frontchannel_logout_session_supported": true, - "device_authorization_endpoint": "https://fake.adfs.local/adfs/oauth2/devicecode" - } - }, - { - "RequestUri": "https://fake.adfs.local/adfs/oauth2/token/", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Content-Length": "2", - "Content-Type": "application/x-www-form-urlencoded; charset=utf-8", - "User-Agent": "azsdk-go-azidentity/v1.3.0-beta.3 (go1.19.3; Windows_NT)" - }, - "RequestBody": {}, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store", - "Content-Length": "2500", - "Content-Security-Policy": "default-src \u0027self\u0027 \u0027unsafe-inline\u0027 \u0027unsafe-eval\u0027; img-src \u0027self\u0027 data:;", - "Content-Type": "application/json; charset=UTF-8", - "Date": "Mon, 30 Jan 2023 17:45:46 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age = 31536000", - "X-Content-Type-Options": "nosniff", - "X-XSS-Protection": "1; mode=block" - }, - "ResponseBody": { - "access_token": "redacted", - "token_type": "bearer", - "expires_in": 3600, - "resource": "https://adminmanagement.adfs.redmond.selfhost.local/eae0822e-4c1b-41cf-8d9e-6bddf440029c", - "refresh_token": "redacted", - "refresh_token_expires_in": 143999, - "scope": "profile openid https://fake.adfs.local/fake-scope/.default", - "id_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6InRoYUE3NzlSUlZvRWNwWmp5VnlKNXZhMm1oSSIsImtpZCI6InRoYUE3NzlSUlZvRWNwWmp5VnlKNXZhMm1oSSJ9.eyJhdWQiOiIxOTUwYTI1OC0yMjdiLTRlMzEtYTljZi03MTc0OTU5NDVmYzIiLCJpc3MiOiJodHRwczovL2FkZnMucmVkbW9uZC5henVyZXN0YWNrLmNvcnAubWljcm9zb2Z0LmNvbS9hZGZzL2VhZTA4MjJlLTRjMWItNDFjZi04ZDllLTZiZGRmNDQwMDI5Yy8iLCJpYXQiOjE2NzUxMDA3NDYsIm5iZiI6MTY3NTEwMDc0NiwiZXhwIjoxNjc1MTA0MzQ2LCJhdXRoX3RpbWUiOjE2NzUxMDA3NDYsInN1YiI6IllKRDVqQ0V2OHlzU0dsc0RSUGprd1ZQdkJPKzl4UGd3dXlJZ283NEkrNGs9Iiwic2lkIjoiUy0xLTUtMjEtMjc3NTU5MDAyNy0xMjk3MjE4MTQ3LTE2NzM5NDYwOTgtMTI4MSIsInVwbiI6IkNsb3VkQWRtaW5AcmVkbW9uZC5zZWxmaG9zdC5sb2NhbCIsInVuaXF1ZV9uYW1lIjoiQ2xvdWRBZG1pbkByZWRtb25kLnNlbGZob3N0LmxvY2FsIiwib2lkIjoiUy0xLTUtMjEtMjc3NTU5MDAyNy0xMjk3MjE4MTQ3LTE2NzM5NDYwOTgtMTI4MSIsInRpZCI6ImVhZTA4MjJlLTRjMWItNDFjZi04ZDllLTZiZGRmNDQwMDI5YyIsImdyb3VwcyI6WyJTLTEtNS0yMS0yNzc1NTkwMDI3LTEyOTcyMTgxNDctMTY3Mzk0NjA5OC01MTMiLCJTLTEtMS0wIiwiUy0xLTUtMzItNTQ1IiwiUy0xLTUtMiIsIlMtMS01LTExIiwiUy0xLTUtMTUiLCJTLTEtMTgtMSIsIlMtMS01LTIxLTI3NzU1OTAwMjctMTI5NzIxODE0Ny0xNjczOTQ2MDk4LTE1Njc0IiwiUy0xLTUtMjEtMjc3NTU5MDAyNy0xMjk3MjE4MTQ3LTE2NzM5NDYwOTgtMTEzOCJdLCJnaXZlbl9uYW1lIjoiQ2xvdWRBZG1pbiIsImFwcGlkYWNyIjoiMCIsImF1dGhtZXRob2QiOiJ1cm46b2FzaXM6bmFtZXM6dGM6U0FNTDoyLjA6YWM6Y2xhc3NlczpQYXNzd29yZFByb3RlY3RlZFRyYW5zcG9ydCIsIkFwcElkIjoiMTk1MGEyNTgtMjI3Yi00ZTMxLWE5Y2YtNzE3NDk1OTQ1ZmMyIiwiYXBwdHlwZSI6IlB1YmxpYyIsImFwcGlkIjoiMTk1MGEyNTgtMjI3Yi00ZTMxLWE5Y2YtNzE3NDk1OTQ1ZmMyIiwidmVyIjoiMS4wIiwic2NwIjoicHJvZmlsZSBvcGVuaWQgLmRlZmF1bHQifQ.t5-E1Jtot3WLvhD8idEkcK27OcfG3OxTJO0D5O_73arDjkpBIbouQE4SW-tUkQcNi-rXdyPm_rvu6z4ZknhJS2BO9aWiQhC1phY7YtWQtcrUsRk3ImiLnB8GCCMuXlmcZk9AKjoGXTv42X2XsTikjLJGnYJagpsfr21ktqp7ws1RTjCCQByUOJRznmWjHTjD-KjFcba-UXcEsrj17An-nrfQ9BEjhG4tlGH8BQpMTdV581_DYhugNItrFDQcluTqc1_L-5yblsPbpYYTXYWYKB1OzGCDW0rD-HmhyQUGP85LtI_xgtYPbGQViqoxFWKmxZmSy0J1CVFTYvscSL76I5HGrjrXP6NW2tF09frJIKaPXt0VmkrdQL1nl5-kUt0ArXfYyzRLndHILhoUMqxzogw7fTa0WFQYxBUhJw7z8F6pUrTtISLIyCNsiwNtVbboEAlSFWk8nNm0iVIgpyuBSKD1CdrgGaYY5gQeLntiBXGmOO2Tv9ZasM_UD-rJH7RXmdpzLy9bYht5QtLaEqVh6bTcYqq6jiVQg6mblRf3j_6leUb8RInWlk7lNs0995ckJV0sDkC-41bTeXGB8eoF1p4BdtuFRHlrILkG_2m9HO79TyAPG9Q2eJcn4n2qtYt_5lqtGjLkHjMYX_XrFbv_Uzh6kSjeiGyMne4L0WvUQ8k" - } - } - ], - "Variables": {} -} diff --git a/sdk/azidentity/testdata/recordings/TestEnvironmentCredential_ClientSecretLive/default_options.json b/sdk/azidentity/testdata/recordings/TestEnvironmentCredential_ClientSecretLive/default_options.json deleted file mode 100644 index ebdf14724f2e..000000000000 --- a/sdk/azidentity/testdata/recordings/TestEnvironmentCredential_ClientSecretLive/default_options.json +++ /dev/null @@ -1,213 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https%3A%2F%2Flogin.microsoftonline.com%2Ffake-tenant%2Foauth2%2Fv2.0%2Fauthorize", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Methods": "GET, OPTIONS", - "Access-Control-Allow-Origin": "*", - "Cache-Control": "max-age=86400, private", - "Content-Length": "955", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:12 GMT", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMBgAAAAUigdkOAAAA; expires=Wed, 23-Feb-2022 22:41:12 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12381.20 - NCUS ProdSlices", - "x-ms-request-id": "43ab3c4c-81eb-4605-8058-96cf2dc84b00" - }, - "ResponseBody": { - "tenant_discovery_endpoint": "https://login.microsoftonline.com/fake-tenant/v2.0/.well-known/openid-configuration", - "api-version": "1.1", - "metadata": [ - { - "preferred_network": "login.microsoftonline.com", - "preferred_cache": "login.windows.net", - "aliases": [ - "login.microsoftonline.com", - "login.windows.net", - "login.microsoft.com", - "sts.windows.net" - ] - }, - { - "preferred_network": "login.partner.microsoftonline.cn", - "preferred_cache": "login.partner.microsoftonline.cn", - "aliases": [ - "login.partner.microsoftonline.cn", - "login.chinacloudapi.cn" - ] - }, - { - "preferred_network": "login.microsoftonline.de", - "preferred_cache": "login.microsoftonline.de", - "aliases": [ - "login.microsoftonline.de" - ] - }, - { - "preferred_network": "login.microsoftonline.us", - "preferred_cache": "login.microsoftonline.us", - "aliases": [ - "login.microsoftonline.us", - "login.usgovcloudapi.net" - ] - }, - { - "preferred_network": "login-us.microsoftonline.com", - "preferred_cache": "login-us.microsoftonline.com", - "aliases": [ - "login-us.microsoftonline.com" - ] - } - ] - } - }, - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/v2.0/.well-known/openid-configuration", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Methods": "GET, OPTIONS", - "Access-Control-Allow-Origin": "*", - "Cache-Control": "max-age=86400, private", - "Content-Length": "1578", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:12 GMT", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMBgAAAAUigdkOAAAA; expires=Wed, 23-Feb-2022 22:41:13 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - SCUS ProdSlices", - "x-ms-request-id": "d9754b96-c9f2-4215-84a2-dcfa069bd600" - }, - "ResponseBody": { - "token_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "token_endpoint_auth_methods_supported": [ - "client_secret_post", - "private_key_jwt", - "client_secret_basic" - ], - "jwks_uri": "https://login.microsoftonline.com/fake-tenant/discovery/v2.0/keys", - "response_modes_supported": [ - "query", - "fragment", - "form_post" - ], - "subject_types_supported": [ - "pairwise" - ], - "id_token_signing_alg_values_supported": [ - "RS256" - ], - "response_types_supported": [ - "code", - "id_token", - "code id_token", - "id_token token" - ], - "scopes_supported": [ - "openid", - "profile", - "email", - "offline_access" - ], - "issuer": "https://login.microsoftonline.com/fake-tenant/v2.0", - "request_uri_parameter_supported": false, - "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", - "authorization_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/authorize", - "device_authorization_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/devicecode", - "http_logout_supported": true, - "frontchannel_logout_supported": true, - "end_session_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/logout", - "claims_supported": [ - "sub", - "iss", - "cloud_instance_name", - "cloud_instance_host_name", - "cloud_graph_host_name", - "msgraph_host", - "aud", - "exp", - "iat", - "auth_time", - "acr", - "nonce", - "preferred_username", - "name", - "tid", - "ver", - "at_hash", - "c_hash", - "email" - ], - "kerberos_endpoint": "https://login.microsoftonline.com/fake-tenant/kerberos", - "tenant_region_scope": "NA", - "cloud_instance_name": "microsoftonline.com", - "cloud_graph_host_name": "graph.windows.net", - "msgraph_host": "graph.microsoft.com", - "rbac_url": "https://pas.windows.net" - } - }, - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "RequestMethod": "POST", - "RequestHeaders": { - ":method": "POST", - "Accept-Encoding": "gzip", - "Content-Length": "2", - "Content-Type": "application/x-www-form-urlencoded; charset=utf-8", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": {}, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Length": "89", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:12 GMT", - "Expires": "-1", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Pragma": "no-cache", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMBwAAAAUigdkOAAAA; expires=Wed, 23-Feb-2022 22:41:13 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - EUS ProdSlices", - "x-ms-request-id": "a0ff3da8-9a6b-4a93-b27e-8e4e5f6cfd00" - }, - "ResponseBody": { - "token_type": "Bearer", - "expires_in": 3599, - "ext_expires_in": 3599, - "access_token": "redacted" - } - } - ], - "Variables": {} -} diff --git a/sdk/azidentity/testdata/recordings/TestEnvironmentCredential_ClientSecretLive/instance_discovery_disabled.json b/sdk/azidentity/testdata/recordings/TestEnvironmentCredential_ClientSecretLive/instance_discovery_disabled.json deleted file mode 100644 index cf8c6325beaf..000000000000 --- a/sdk/azidentity/testdata/recordings/TestEnvironmentCredential_ClientSecretLive/instance_discovery_disabled.json +++ /dev/null @@ -1,136 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/v2.0/.well-known/openid-configuration", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v1.3.0-beta.3 (go1.19.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Methods": "GET, OPTIONS", - "Access-Control-Allow-Origin": "*", - "Cache-Control": "max-age=86400, private", - "Content-Length": "1578", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 27 Jan 2023 00:38:03 GMT", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Set-Cookie": [ - "fpc=AtldTtlEjTNPhKsSvKLZB72uN0zNAwAAAKkSZdsOAAAAdXkq2AIAAAAeE2XbDgAAALtMnBACAAAAZRNl2w4AAAA; expires=Sun, 26-Feb-2023 00:38:03 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.14357.8 - WUS2 ProdSlices", - "x-ms-request-id": "759172d1-9f39-4e83-820a-9b6d8b108801", - "X-XSS-Protection": "0" - }, - "ResponseBody": { - "token_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "token_endpoint_auth_methods_supported": [ - "client_secret_post", - "private_key_jwt", - "client_secret_basic" - ], - "jwks_uri": "https://login.microsoftonline.com/fake-tenant/discovery/v2.0/keys", - "response_modes_supported": [ - "query", - "fragment", - "form_post" - ], - "subject_types_supported": [ - "pairwise" - ], - "id_token_signing_alg_values_supported": [ - "RS256" - ], - "response_types_supported": [ - "code", - "id_token", - "code id_token", - "id_token token" - ], - "scopes_supported": [ - "openid", - "profile", - "email", - "offline_access" - ], - "issuer": "https://login.microsoftonline.com/fake-tenant/v2.0", - "request_uri_parameter_supported": false, - "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", - "authorization_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/authorize", - "device_authorization_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/devicecode", - "http_logout_supported": true, - "frontchannel_logout_supported": true, - "end_session_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/logout", - "claims_supported": [ - "sub", - "iss", - "cloud_instance_name", - "cloud_instance_host_name", - "cloud_graph_host_name", - "msgraph_host", - "aud", - "exp", - "iat", - "auth_time", - "acr", - "nonce", - "preferred_username", - "name", - "tid", - "ver", - "at_hash", - "c_hash", - "email" - ], - "kerberos_endpoint": "https://login.microsoftonline.com/fake-tenant/kerberos", - "tenant_region_scope": "NA", - "cloud_instance_name": "microsoftonline.com", - "cloud_graph_host_name": "graph.windows.net", - "msgraph_host": "graph.microsoft.com", - "rbac_url": "https://pas.windows.net" - } - }, - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Content-Length": "2", - "Content-Type": "application/x-www-form-urlencoded; charset=utf-8", - "User-Agent": "azsdk-go-azidentity/v1.3.0-beta.3 (go1.19.3; Windows_NT)" - }, - "RequestBody": {}, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Length": "89", - "Content-Type": "application/json; charset=utf-8", - "Date": "Fri, 27 Jan 2023 00:38:03 GMT", - "Expires": "-1", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Pragma": "no-cache", - "Set-Cookie": [ - "fpc=AtldTtlEjTNPhKsSvKLZB72uN0zNAQAAANUTZdsOAAAAdXkq2AIAAAAeE2XbDgAAALtMnBACAAAAZRNl2w4AAAA; expires=Sun, 26-Feb-2023 00:38:03 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.14357.8 - WUS2 ProdSlices", - "x-ms-request-id": "c1bb1c89-79f3-457b-9093-f7b9af423701", - "X-XSS-Protection": "0" - }, - "ResponseBody": { - "token_type": "Bearer", - "expires_in": 3599, - "ext_expires_in": 3599, - "access_token": "redacted" - } - } - ], - "Variables": {} -} diff --git a/sdk/azidentity/testdata/recordings/TestEnvironmentCredential_InvalidClientSecretLive.json b/sdk/azidentity/testdata/recordings/TestEnvironmentCredential_InvalidClientSecretLive.json deleted file mode 100644 index 33d8517ecb44..000000000000 --- a/sdk/azidentity/testdata/recordings/TestEnvironmentCredential_InvalidClientSecretLive.json +++ /dev/null @@ -1,218 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https%3A%2F%2Flogin.microsoftonline.com%2Ffake-tenant%2Foauth2%2Fv2.0%2Fauthorize", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Methods": "GET, OPTIONS", - "Access-Control-Allow-Origin": "*", - "Cache-Control": "max-age=86400, private", - "Content-Length": "955", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:12 GMT", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMBwAAAAUigdkOAAAA; expires=Wed, 23-Feb-2022 22:41:13 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - NCUS ProdSlices", - "x-ms-request-id": "b37f4dd8-15c3-4914-aeec-1c76be585a00" - }, - "ResponseBody": { - "tenant_discovery_endpoint": "https://login.microsoftonline.com/fake-tenant/v2.0/.well-known/openid-configuration", - "api-version": "1.1", - "metadata": [ - { - "preferred_network": "login.microsoftonline.com", - "preferred_cache": "login.windows.net", - "aliases": [ - "login.microsoftonline.com", - "login.windows.net", - "login.microsoft.com", - "sts.windows.net" - ] - }, - { - "preferred_network": "login.partner.microsoftonline.cn", - "preferred_cache": "login.partner.microsoftonline.cn", - "aliases": [ - "login.partner.microsoftonline.cn", - "login.chinacloudapi.cn" - ] - }, - { - "preferred_network": "login.microsoftonline.de", - "preferred_cache": "login.microsoftonline.de", - "aliases": [ - "login.microsoftonline.de" - ] - }, - { - "preferred_network": "login.microsoftonline.us", - "preferred_cache": "login.microsoftonline.us", - "aliases": [ - "login.microsoftonline.us", - "login.usgovcloudapi.net" - ] - }, - { - "preferred_network": "login-us.microsoftonline.com", - "preferred_cache": "login-us.microsoftonline.com", - "aliases": [ - "login-us.microsoftonline.com" - ] - } - ] - } - }, - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/v2.0/.well-known/openid-configuration", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Methods": "GET, OPTIONS", - "Access-Control-Allow-Origin": "*", - "Cache-Control": "max-age=86400, private", - "Content-Length": "1578", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:12 GMT", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMBwAAAAUigdkOAAAA; expires=Wed, 23-Feb-2022 22:41:13 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - SCUS ProdSlices", - "x-ms-request-id": "7e3f8ad4-ea8b-4ee0-b49e-2844800ed300" - }, - "ResponseBody": { - "token_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "token_endpoint_auth_methods_supported": [ - "client_secret_post", - "private_key_jwt", - "client_secret_basic" - ], - "jwks_uri": "https://login.microsoftonline.com/fake-tenant/discovery/v2.0/keys", - "response_modes_supported": [ - "query", - "fragment", - "form_post" - ], - "subject_types_supported": [ - "pairwise" - ], - "id_token_signing_alg_values_supported": [ - "RS256" - ], - "response_types_supported": [ - "code", - "id_token", - "code id_token", - "id_token token" - ], - "scopes_supported": [ - "openid", - "profile", - "email", - "offline_access" - ], - "issuer": "https://login.microsoftonline.com/fake-tenant/v2.0", - "request_uri_parameter_supported": false, - "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", - "authorization_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/authorize", - "device_authorization_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/devicecode", - "http_logout_supported": true, - "frontchannel_logout_supported": true, - "end_session_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/logout", - "claims_supported": [ - "sub", - "iss", - "cloud_instance_name", - "cloud_instance_host_name", - "cloud_graph_host_name", - "msgraph_host", - "aud", - "exp", - "iat", - "auth_time", - "acr", - "nonce", - "preferred_username", - "name", - "tid", - "ver", - "at_hash", - "c_hash", - "email" - ], - "kerberos_endpoint": "https://login.microsoftonline.com/fake-tenant/kerberos", - "tenant_region_scope": "NA", - "cloud_instance_name": "microsoftonline.com", - "cloud_graph_host_name": "graph.windows.net", - "msgraph_host": "graph.microsoft.com", - "rbac_url": "https://pas.windows.net" - } - }, - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "RequestMethod": "POST", - "RequestHeaders": { - ":method": "POST", - "Accept-Encoding": "gzip", - "Content-Length": "2", - "Content-Type": "application/x-www-form-urlencoded; charset=utf-8", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": {}, - "StatusCode": 401, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Length": "471", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:12 GMT", - "Expires": "-1", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Pragma": "no-cache", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMCAAAAAUigdkOAAAA; expires=Wed, 23-Feb-2022 22:41:13 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - SCUS ProdSlices", - "x-ms-request-id": "b266fc08-8ca0-436d-892d-fc938509d300" - }, - "ResponseBody": { - "error": "invalid_client", - "error_description": "AADSTS7000215: Invalid client secret is provided.\r\nTrace ID: b266fc08-8ca0-436d-892d-fc938509d300\r\nCorrelation ID: 23c34cfd-c80d-44b2-80b8-8985f01b24d3\r\nTimestamp: 2022-01-24 22:41:13Z", - "error_codes": [ - 7000215 - ], - "timestamp": "2022-01-24 22:41:13Z", - "trace_id": "b266fc08-8ca0-436d-892d-fc938509d300", - "correlation_id": "23c34cfd-c80d-44b2-80b8-8985f01b24d3", - "error_uri": "https://login.microsoftonline.com/error?code=7000215" - } - } - ], - "Variables": {} -} diff --git a/sdk/azidentity/testdata/recordings/TestEnvironmentCredential_InvalidPasswordLive.json b/sdk/azidentity/testdata/recordings/TestEnvironmentCredential_InvalidPasswordLive.json deleted file mode 100644 index b437ffe541ee..000000000000 --- a/sdk/azidentity/testdata/recordings/TestEnvironmentCredential_InvalidPasswordLive.json +++ /dev/null @@ -1,255 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https%3A%2F%2Flogin.microsoftonline.com%2Ffake-tenant%2Foauth2%2Fv2.0%2Fauthorize", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Methods": "GET, OPTIONS", - "Access-Control-Allow-Origin": "*", - "Cache-Control": "max-age=86400, private", - "Content-Length": "955", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:13 GMT", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMCAAAAAUigdkOAAAAT6t2KAEAAAAJIoHZDgAAAA; expires=Wed, 23-Feb-2022 22:41:14 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - EUS ProdSlices", - "x-ms-request-id": "ac3cb3e2-cdb2-4e78-8c2b-006ca4681c00" - }, - "ResponseBody": { - "tenant_discovery_endpoint": "https://login.microsoftonline.com/fake-tenant/v2.0/.well-known/openid-configuration", - "api-version": "1.1", - "metadata": [ - { - "preferred_network": "login.microsoftonline.com", - "preferred_cache": "login.windows.net", - "aliases": [ - "login.microsoftonline.com", - "login.windows.net", - "login.microsoft.com", - "sts.windows.net" - ] - }, - { - "preferred_network": "login.partner.microsoftonline.cn", - "preferred_cache": "login.partner.microsoftonline.cn", - "aliases": [ - "login.partner.microsoftonline.cn", - "login.chinacloudapi.cn" - ] - }, - { - "preferred_network": "login.microsoftonline.de", - "preferred_cache": "login.microsoftonline.de", - "aliases": [ - "login.microsoftonline.de" - ] - }, - { - "preferred_network": "login.microsoftonline.us", - "preferred_cache": "login.microsoftonline.us", - "aliases": [ - "login.microsoftonline.us", - "login.usgovcloudapi.net" - ] - }, - { - "preferred_network": "login-us.microsoftonline.com", - "preferred_cache": "login-us.microsoftonline.com", - "aliases": [ - "login-us.microsoftonline.com" - ] - } - ] - } - }, - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/v2.0/.well-known/openid-configuration", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Methods": "GET, OPTIONS", - "Access-Control-Allow-Origin": "*", - "Cache-Control": "max-age=86400, private", - "Content-Length": "1578", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:13 GMT", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMCAAAAAUigdkOAAAAT6t2KAEAAAAJIoHZDgAAAA; expires=Wed, 23-Feb-2022 22:41:14 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - NCUS ProdSlices", - "x-ms-request-id": "a4be07f0-9bbb-43a2-8435-3ac05bbf5300" - }, - "ResponseBody": { - "token_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "token_endpoint_auth_methods_supported": [ - "client_secret_post", - "private_key_jwt", - "client_secret_basic" - ], - "jwks_uri": "https://login.microsoftonline.com/fake-tenant/discovery/v2.0/keys", - "response_modes_supported": [ - "query", - "fragment", - "form_post" - ], - "subject_types_supported": [ - "pairwise" - ], - "id_token_signing_alg_values_supported": [ - "RS256" - ], - "response_types_supported": [ - "code", - "id_token", - "code id_token", - "id_token token" - ], - "scopes_supported": [ - "openid", - "profile", - "email", - "offline_access" - ], - "issuer": "https://login.microsoftonline.com/fake-tenant/v2.0", - "request_uri_parameter_supported": false, - "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", - "authorization_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/authorize", - "device_authorization_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/devicecode", - "http_logout_supported": true, - "frontchannel_logout_supported": true, - "end_session_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/logout", - "claims_supported": [ - "sub", - "iss", - "cloud_instance_name", - "cloud_instance_host_name", - "cloud_graph_host_name", - "msgraph_host", - "aud", - "exp", - "iat", - "auth_time", - "acr", - "nonce", - "preferred_username", - "name", - "tid", - "ver", - "at_hash", - "c_hash", - "email" - ], - "kerberos_endpoint": "https://login.microsoftonline.com/fake-tenant/kerberos", - "tenant_region_scope": "NA", - "cloud_instance_name": "microsoftonline.com", - "cloud_graph_host_name": "graph.windows.net", - "msgraph_host": "graph.microsoft.com", - "rbac_url": "https://pas.windows.net" - } - }, - { - "RequestUri": "https://login.microsoftonline.com/common/UserRealm/fake@user?api-version=1.0", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Disposition": "inline; filename=userrealm.json", - "Content-Length": "184", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:13 GMT", - "Expires": "-1", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Pragma": "no-cache", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMCAAAAAUigdkOAAAAT6t2KAEAAAAJIoHZDgAAAA; expires=Wed, 23-Feb-2022 22:41:14 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - EUS ProdSlices", - "x-ms-request-id": "3f05cebe-06a6-44f9-a3b9-93c40a25a400" - }, - "ResponseBody": { - "ver": "1.0", - "account_type": "Managed", - "domain_name": "azuresdkoutlook.onmicrosoft.com", - "cloud_instance_name": "microsoftonline.com", - "cloud_audience_urn": "urn:federation:MicrosoftOnline" - } - }, - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "RequestMethod": "POST", - "RequestHeaders": { - ":method": "POST", - "Accept-Encoding": "gzip", - "Content-Length": "2", - "Content-Type": "application/x-www-form-urlencoded; charset=utf-8", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": {}, - "StatusCode": 400, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Length": "495", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:14 GMT", - "Expires": "-1", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Pragma": "no-cache", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMCAAAAAUigdkOAAAAT6t2KAIAAAAJIoHZDgAAAA; expires=Wed, 23-Feb-2022 22:41:14 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - SCUS ProdSlices", - "x-ms-request-id": "be3e1080-9e7f-418d-9c32-dc4278f2d400" - }, - "ResponseBody": { - "error": "invalid_grant", - "error_description": "AADSTS50126: Error validating credentials due to invalid username or password.\r\nTrace ID: be3e1080-9e7f-418d-9c32-dc4278f2d400\r\nCorrelation ID: 2021f9d7-b14d-4d41-94e7-b8f068abaaba\r\nTimestamp: 2022-01-24 22:41:14Z", - "error_codes": [ - 50126 - ], - "timestamp": "2022-01-24 22:41:14Z", - "trace_id": "be3e1080-9e7f-418d-9c32-dc4278f2d400", - "correlation_id": "2021f9d7-b14d-4d41-94e7-b8f068abaaba", - "error_uri": "https://login.microsoftonline.com/error?code=50126" - } - } - ], - "Variables": {} -} diff --git a/sdk/azidentity/testdata/recordings/TestEnvironmentCredential_UserPasswordLive/default_options.json b/sdk/azidentity/testdata/recordings/TestEnvironmentCredential_UserPasswordLive/default_options.json deleted file mode 100644 index d5f20c0e0ed5..000000000000 --- a/sdk/azidentity/testdata/recordings/TestEnvironmentCredential_UserPasswordLive/default_options.json +++ /dev/null @@ -1,255 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https%3A%2F%2Flogin.microsoftonline.com%2Ffake-tenant%2Foauth2%2Fv2.0%2Fauthorize", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Methods": "GET, OPTIONS", - "Access-Control-Allow-Origin": "*", - "Cache-Control": "max-age=86400, private", - "Content-Length": "955", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:12 GMT", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMCAAAAAUigdkOAAAA; expires=Wed, 23-Feb-2022 22:41:13 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - NCUS ProdSlices", - "x-ms-request-id": "34954104-afb6-4679-954f-cd83f1ac9800" - }, - "ResponseBody": { - "tenant_discovery_endpoint": "https://login.microsoftonline.com/fake-tenant/v2.0/.well-known/openid-configuration", - "api-version": "1.1", - "metadata": [ - { - "preferred_network": "login.microsoftonline.com", - "preferred_cache": "login.windows.net", - "aliases": [ - "login.microsoftonline.com", - "login.windows.net", - "login.microsoft.com", - "sts.windows.net" - ] - }, - { - "preferred_network": "login.partner.microsoftonline.cn", - "preferred_cache": "login.partner.microsoftonline.cn", - "aliases": [ - "login.partner.microsoftonline.cn", - "login.chinacloudapi.cn" - ] - }, - { - "preferred_network": "login.microsoftonline.de", - "preferred_cache": "login.microsoftonline.de", - "aliases": [ - "login.microsoftonline.de" - ] - }, - { - "preferred_network": "login.microsoftonline.us", - "preferred_cache": "login.microsoftonline.us", - "aliases": [ - "login.microsoftonline.us", - "login.usgovcloudapi.net" - ] - }, - { - "preferred_network": "login-us.microsoftonline.com", - "preferred_cache": "login-us.microsoftonline.com", - "aliases": [ - "login-us.microsoftonline.com" - ] - } - ] - } - }, - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/v2.0/.well-known/openid-configuration", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Methods": "GET, OPTIONS", - "Access-Control-Allow-Origin": "*", - "Cache-Control": "max-age=86400, private", - "Content-Length": "1578", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:13 GMT", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMCAAAAAUigdkOAAAA; expires=Wed, 23-Feb-2022 22:41:13 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - NCUS ProdSlices", - "x-ms-request-id": "c482b4f6-560f-4681-9a5f-fb1e1bee9600" - }, - "ResponseBody": { - "token_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "token_endpoint_auth_methods_supported": [ - "client_secret_post", - "private_key_jwt", - "client_secret_basic" - ], - "jwks_uri": "https://login.microsoftonline.com/fake-tenant/discovery/v2.0/keys", - "response_modes_supported": [ - "query", - "fragment", - "form_post" - ], - "subject_types_supported": [ - "pairwise" - ], - "id_token_signing_alg_values_supported": [ - "RS256" - ], - "response_types_supported": [ - "code", - "id_token", - "code id_token", - "id_token token" - ], - "scopes_supported": [ - "openid", - "profile", - "email", - "offline_access" - ], - "issuer": "https://login.microsoftonline.com/fake-tenant/v2.0", - "request_uri_parameter_supported": false, - "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", - "authorization_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/authorize", - "device_authorization_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/devicecode", - "http_logout_supported": true, - "frontchannel_logout_supported": true, - "end_session_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/logout", - "claims_supported": [ - "sub", - "iss", - "cloud_instance_name", - "cloud_instance_host_name", - "cloud_graph_host_name", - "msgraph_host", - "aud", - "exp", - "iat", - "auth_time", - "acr", - "nonce", - "preferred_username", - "name", - "tid", - "ver", - "at_hash", - "c_hash", - "email" - ], - "kerberos_endpoint": "https://login.microsoftonline.com/fake-tenant/kerberos", - "tenant_region_scope": "NA", - "cloud_instance_name": "microsoftonline.com", - "cloud_graph_host_name": "graph.windows.net", - "msgraph_host": "graph.microsoft.com", - "rbac_url": "https://pas.windows.net" - } - }, - { - "RequestUri": "https://login.microsoftonline.com/common/UserRealm/fake@user?api-version=1.0", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Disposition": "inline; filename=userrealm.json", - "Content-Length": "184", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:13 GMT", - "Expires": "-1", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Pragma": "no-cache", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMCAAAAAUigdkOAAAA; expires=Wed, 23-Feb-2022 22:41:14 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - EUS ProdSlices", - "x-ms-request-id": "3f05cebe-06a6-44f9-a3b9-93c4e624a400" - }, - "ResponseBody": { - "ver": "1.0", - "account_type": "Managed", - "domain_name": "azuresdkoutlook.onmicrosoft.com", - "cloud_instance_name": "microsoftonline.com", - "cloud_audience_urn": "urn:federation:MicrosoftOnline" - } - }, - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "RequestMethod": "POST", - "RequestHeaders": { - ":method": "POST", - "Accept-Encoding": "gzip", - "Content-Length": "2", - "Content-Type": "application/x-www-form-urlencoded; charset=utf-8", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": {}, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Length": "1673", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:13 GMT", - "Expires": "-1", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Pragma": "no-cache", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMCAAAAAUigdkOAAAAT6t2KAEAAAAJIoHZDgAAAA; expires=Wed, 23-Feb-2022 22:41:14 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - NCUS ProdSlices", - "x-ms-request-id": "a4be07f0-9bbb-43a2-8435-3ac04cbf5300" - }, - "ResponseBody": { - "token_type": "Bearer", - "scope": "https://management.core.windows.net//user_impersonation https://management.core.windows.net//.default", - "expires_in": 5101, - "ext_expires_in": 5101, - "access_token": "redacted", - "refresh_token": "redacted", - "foci": "1", - "id_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6Imwzc1EtNTBjQ0g0eEJWWkxIVEd3blNSNzY4MCJ9.eyJhdWQiOiIwNGIwNzc5NS04ZGRiLTQ2MWEtYmJlZS0wMmY5ZTFiZjdiNDYiLCJpc3MiOiJodHRwczovL2xvZ2luLm1pY3Jvc29mdG9ubGluZS5jb20vYzU0ZmFjODgtM2RkMy00NjFmLWE3YzQtOGEzNjhlMDM0MGIzL3YyLjAiLCJpYXQiOjE2Mzc2MDYxMzAsIm5iZiI6MTYzNzYwNjEzMCwiZXhwIjoxNjM3NjEwMDMwLCJhaW8iOiJBVVFBdS84VEFBQUFSWGljK0VsYzA4NTZDSnR0S1RDYTdqNGh5ZVJscjhUbms3VDIzR1Jld3ZoZy84KzYvem5CRW1wVDFwaFk1YnVXY3dlUk50VEFJM1c4Q1dhY1R0aGd3UT09IiwiaWRwIjoiaHR0cHM6Ly9zdHMud2luZG93cy5uZXQvZTBiZDIzMjEtMDdmYS00Y2YwLTg3YjgtMDBhYTJhNzQ3MzI5LyIsIm5hbWUiOiJJZGVudGl0eSBUZXN0IFVzZXIiLCJwcmVmZXJyZWRfdXNlcm5hbWUiOiJpZGVudGl0eXRlc3R1c2VyQGF6dXJlc2Rrb3V0bG9vay5vbm1pY3Jvc29mdC5jb20iLCJyaCI6IjAuQVMwQWlLeFB4ZE05SDBhbnhJbzJqZ05BczVWM3NBVGJqUnBHdS00Qy1lR19lMFl0QUxFLiIsInN1YiI6ImMxYTBsY2xtbWxCYW9wc0MwVmlaLVpPMjFCT2dSUXE3SG9HRUtOOXloZnMiLCJ0aWQiOiJjNTRmYWM4OC0zZGQzLTQ2MWYtYTdjNC04YTM2OGUwMzQwYjMiLCJ1dGkiOiI0WjJ2Rm1EMF9rU1BUTTZhcXFpUEFBIiwidmVyIjoiMi4wIn0.PfTaFdt0K1Kd3H1zNBrRpSDbf3Bu-JKwR-rpUNi6L6gOtHA6ixJUjkPtRMa2iwF9GCert_9K8Pzu8kqY0Y_fYZhTiI2a2G1BlR134JoWZJsoPZOxOiuHNBMDBwgkprRSOcIGLn7X_hwSNc8FBKC21ob9eRHFBGRIuSO9QQMd1EiW19F4Fj15u6Wqcg0L8_ucbnElS3hI-hkaodeaV9cwEqFc3yHHTz19pJyjnK52KH1YI5mTe3ThRlsqxWdH7ildiViGTflBbtCLtgcP-aTMozIggd1mtK0GEPfww6RGDhUESiGYXy2sMlkdPniwMf05dJ3nL4TVx-PVyF7aXbuFXA", - "client_info": "eyJ1aWQiOiJjNzNjNmYyOC1hZTVmLTQxM2QtYTlhMi1lMTFlNWFmNjY4ZjgiLCJ1dGlkIjoiZTBiZDIzMjEtMDdmYS00Y2YwLTg3YjgtMDBhYTJhNzQ3MzI5In0" - } - } - ], - "Variables": {} -} diff --git a/sdk/azidentity/testdata/recordings/TestEnvironmentCredential_UserPasswordLive/instance_discovery_disabled.json b/sdk/azidentity/testdata/recordings/TestEnvironmentCredential_UserPasswordLive/instance_discovery_disabled.json deleted file mode 100644 index 085d6f3c10d4..000000000000 --- a/sdk/azidentity/testdata/recordings/TestEnvironmentCredential_UserPasswordLive/instance_discovery_disabled.json +++ /dev/null @@ -1,180 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/v2.0/.well-known/openid-configuration", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Methods": "GET, OPTIONS", - "Access-Control-Allow-Origin": "*", - "Cache-Control": "max-age=86400, private", - "Content-Length": "1578", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:13 GMT", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMCAAAAAUigdkOAAAA; expires=Wed, 23-Feb-2022 22:41:13 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - NCUS ProdSlices", - "x-ms-request-id": "c482b4f6-560f-4681-9a5f-fb1e1bee9600" - }, - "ResponseBody": { - "token_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "token_endpoint_auth_methods_supported": [ - "client_secret_post", - "private_key_jwt", - "client_secret_basic" - ], - "jwks_uri": "https://login.microsoftonline.com/fake-tenant/discovery/v2.0/keys", - "response_modes_supported": [ - "query", - "fragment", - "form_post" - ], - "subject_types_supported": [ - "pairwise" - ], - "id_token_signing_alg_values_supported": [ - "RS256" - ], - "response_types_supported": [ - "code", - "id_token", - "code id_token", - "id_token token" - ], - "scopes_supported": [ - "openid", - "profile", - "email", - "offline_access" - ], - "issuer": "https://login.microsoftonline.com/fake-tenant/v2.0", - "request_uri_parameter_supported": false, - "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", - "authorization_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/authorize", - "device_authorization_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/devicecode", - "http_logout_supported": true, - "frontchannel_logout_supported": true, - "end_session_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/logout", - "claims_supported": [ - "sub", - "iss", - "cloud_instance_name", - "cloud_instance_host_name", - "cloud_graph_host_name", - "msgraph_host", - "aud", - "exp", - "iat", - "auth_time", - "acr", - "nonce", - "preferred_username", - "name", - "tid", - "ver", - "at_hash", - "c_hash", - "email" - ], - "kerberos_endpoint": "https://login.microsoftonline.com/fake-tenant/kerberos", - "tenant_region_scope": "NA", - "cloud_instance_name": "microsoftonline.com", - "cloud_graph_host_name": "graph.windows.net", - "msgraph_host": "graph.microsoft.com", - "rbac_url": "https://pas.windows.net" - } - }, - { - "RequestUri": "https://login.microsoftonline.com/common/UserRealm/fake@user?api-version=1.0", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Disposition": "inline; filename=userrealm.json", - "Content-Length": "184", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:13 GMT", - "Expires": "-1", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Pragma": "no-cache", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMCAAAAAUigdkOAAAA; expires=Wed, 23-Feb-2022 22:41:14 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - EUS ProdSlices", - "x-ms-request-id": "3f05cebe-06a6-44f9-a3b9-93c4e624a400" - }, - "ResponseBody": { - "ver": "1.0", - "account_type": "Managed", - "domain_name": "azuresdkoutlook.onmicrosoft.com", - "cloud_instance_name": "microsoftonline.com", - "cloud_audience_urn": "urn:federation:MicrosoftOnline" - } - }, - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "RequestMethod": "POST", - "RequestHeaders": { - ":method": "POST", - "Accept-Encoding": "gzip", - "Content-Length": "2", - "Content-Type": "application/x-www-form-urlencoded; charset=utf-8", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": {}, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Length": "1673", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:13 GMT", - "Expires": "-1", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Pragma": "no-cache", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMCAAAAAUigdkOAAAAT6t2KAEAAAAJIoHZDgAAAA; expires=Wed, 23-Feb-2022 22:41:14 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - NCUS ProdSlices", - "x-ms-request-id": "a4be07f0-9bbb-43a2-8435-3ac04cbf5300" - }, - "ResponseBody": { - "token_type": "Bearer", - "scope": "https://management.core.windows.net//user_impersonation https://management.core.windows.net//.default", - "expires_in": 5101, - "ext_expires_in": 5101, - "access_token": "redacted", - "refresh_token": "redacted", - "foci": "1", - "id_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6Imwzc1EtNTBjQ0g0eEJWWkxIVEd3blNSNzY4MCJ9.eyJhdWQiOiIwNGIwNzc5NS04ZGRiLTQ2MWEtYmJlZS0wMmY5ZTFiZjdiNDYiLCJpc3MiOiJodHRwczovL2xvZ2luLm1pY3Jvc29mdG9ubGluZS5jb20vYzU0ZmFjODgtM2RkMy00NjFmLWE3YzQtOGEzNjhlMDM0MGIzL3YyLjAiLCJpYXQiOjE2Mzc2MDYxMzAsIm5iZiI6MTYzNzYwNjEzMCwiZXhwIjoxNjM3NjEwMDMwLCJhaW8iOiJBVVFBdS84VEFBQUFSWGljK0VsYzA4NTZDSnR0S1RDYTdqNGh5ZVJscjhUbms3VDIzR1Jld3ZoZy84KzYvem5CRW1wVDFwaFk1YnVXY3dlUk50VEFJM1c4Q1dhY1R0aGd3UT09IiwiaWRwIjoiaHR0cHM6Ly9zdHMud2luZG93cy5uZXQvZTBiZDIzMjEtMDdmYS00Y2YwLTg3YjgtMDBhYTJhNzQ3MzI5LyIsIm5hbWUiOiJJZGVudGl0eSBUZXN0IFVzZXIiLCJwcmVmZXJyZWRfdXNlcm5hbWUiOiJpZGVudGl0eXRlc3R1c2VyQGF6dXJlc2Rrb3V0bG9vay5vbm1pY3Jvc29mdC5jb20iLCJyaCI6IjAuQVMwQWlLeFB4ZE05SDBhbnhJbzJqZ05BczVWM3NBVGJqUnBHdS00Qy1lR19lMFl0QUxFLiIsInN1YiI6ImMxYTBsY2xtbWxCYW9wc0MwVmlaLVpPMjFCT2dSUXE3SG9HRUtOOXloZnMiLCJ0aWQiOiJjNTRmYWM4OC0zZGQzLTQ2MWYtYTdjNC04YTM2OGUwMzQwYjMiLCJ1dGkiOiI0WjJ2Rm1EMF9rU1BUTTZhcXFpUEFBIiwidmVyIjoiMi4wIn0.PfTaFdt0K1Kd3H1zNBrRpSDbf3Bu-JKwR-rpUNi6L6gOtHA6ixJUjkPtRMa2iwF9GCert_9K8Pzu8kqY0Y_fYZhTiI2a2G1BlR134JoWZJsoPZOxOiuHNBMDBwgkprRSOcIGLn7X_hwSNc8FBKC21ob9eRHFBGRIuSO9QQMd1EiW19F4Fj15u6Wqcg0L8_ucbnElS3hI-hkaodeaV9cwEqFc3yHHTz19pJyjnK52KH1YI5mTe3ThRlsqxWdH7ildiViGTflBbtCLtgcP-aTMozIggd1mtK0GEPfww6RGDhUESiGYXy2sMlkdPniwMf05dJ3nL4TVx-PVyF7aXbuFXA", - "client_info": "eyJ1aWQiOiJjNzNjNmYyOC1hZTVmLTQxM2QtYTlhMi1lMTFlNWFmNjY4ZjgiLCJ1dGlkIjoiZTBiZDIzMjEtMDdmYS00Y2YwLTg3YjgtMDBhYTJhNzQ3MzI5In0" - } - } - ], - "Variables": {} -} \ No newline at end of file diff --git a/sdk/azidentity/testdata/recordings/TestManagedIdentityCredential_IMDSClientIDLive.json b/sdk/azidentity/testdata/recordings/TestManagedIdentityCredential_IMDSClientIDLive.json deleted file mode 100644 index 661ae2b3d327..000000000000 --- a/sdk/azidentity/testdata/recordings/TestManagedIdentityCredential_IMDSClientIDLive.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "http://169.254.169.254/metadata/identity/oauth2/token?api-version=2018-02-01\u0026client_id=fake-client-id\u0026resource=https%3A%2F%2Fmanagement.core.windows.net%2F", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "metadata": "true", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.3; linux)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Content-Length": "226", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 25 Jan 2022 01:25:03 GMT", - "Server": "IMDS/150.870.65.528" - }, - "ResponseBody": { - "access_token": "redacted", - "client_id": "fake-client-id", - "expires_in": "85771", - "expires_on": "1643159675", - "ext_expires_in": "86399", - "not_before": "1643072975", - "resource": "https://management.core.windows.net/", - "token_type": "Bearer" - } - } - ], - "Variables": {} -} diff --git a/sdk/azidentity/testdata/recordings/TestManagedIdentityCredential_IMDSLive.json b/sdk/azidentity/testdata/recordings/TestManagedIdentityCredential_IMDSLive.json deleted file mode 100644 index ab93ba728c11..000000000000 --- a/sdk/azidentity/testdata/recordings/TestManagedIdentityCredential_IMDSLive.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "http://169.254.169.254/metadata/identity/oauth2/token?api-version=2018-02-01\u0026resource=https%3A%2F%2Fmanagement.core.windows.net%2F", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "metadata": "true", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.3; linux)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Content-Length": "248", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 25 Jan 2022 01:25:03 GMT", - "Server": "IMDS/150.870.65.528" - }, - "ResponseBody": { - "access_token": "redacted", - "client_id": "615e6319-bf4f-4279-937c-b9eb198e511f", - "expires_in": "85770", - "expires_on": "1643159674", - "ext_expires_in": "86399", - "not_before": "1643072974", - "resource": "https://management.core.windows.net/", - "token_type": "Bearer" - } - } - ], - "Variables": {} -} diff --git a/sdk/azidentity/testdata/recordings/TestManagedIdentityCredential_IMDSResourceIDLive.json b/sdk/azidentity/testdata/recordings/TestManagedIdentityCredential_IMDSResourceIDLive.json deleted file mode 100644 index 8fb648188f2c..000000000000 --- a/sdk/azidentity/testdata/recordings/TestManagedIdentityCredential_IMDSResourceIDLive.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "http://169.254.169.254/metadata/identity/oauth2/token?api-version=2018-02-01\u0026mi_res_id=%2Ffake%2Fresource%2FID\u0026resource=https%3A%2F%2Fmanagement.core.windows.net%2F", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "metadata": "true", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.3; linux)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Content-Length": "226", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 25 Jan 2022 01:25:03 GMT", - "Server": "IMDS/150.870.65.528" - }, - "ResponseBody": { - "access_token": "redacted", - "client_id": "fake-client-id", - "expires_in": "85771", - "expires_on": "1643159675", - "ext_expires_in": "86399", - "not_before": "1643072975", - "resource": "https://management.core.windows.net/", - "token_type": "Bearer" - } - } - ], - "Variables": {} -} diff --git a/sdk/azidentity/testdata/recordings/TestUsernamePasswordCredentialADFS_Live.json b/sdk/azidentity/testdata/recordings/TestUsernamePasswordCredentialADFS_Live.json deleted file mode 100644 index 5af411704056..000000000000 --- a/sdk/azidentity/testdata/recordings/TestUsernamePasswordCredentialADFS_Live.json +++ /dev/null @@ -1,149 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://fake.adfs.local/adfs/.well-known/openid-configuration", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v1.3.0-beta.3 (go1.19.3; Windows_NT)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Content-Length": "1986", - "Content-Security-Policy": "default-src \u0027self\u0027 \u0027unsafe-inline\u0027 \u0027unsafe-eval\u0027; img-src \u0027self\u0027 data:;", - "Content-Type": "application/json; charset=UTF-8", - "Date": "Mon, 30 Jan 2023 17:47:07 GMT", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age = 31536000", - "X-Content-Type-Options": "nosniff", - "X-XSS-Protection": "1; mode=block" - }, - "ResponseBody": { - "issuer": "https://fake.adfs.local/adfs/eae0822e-4c1b-41cf-8d9e-6bddf440029c/", - "authorization_endpoint": "https://fake.adfs.local/adfs/oauth2/authorize/", - "token_endpoint": "https://fake.adfs.local/adfs/oauth2/token/", - "jwks_uri": "https://fake.adfs.local/adfs/discovery/keys", - "token_endpoint_auth_methods_supported": [ - "client_secret_post", - "client_secret_basic", - "private_key_jwt", - "windows_client_authentication" - ], - "response_types_supported": [ - "code", - "id_token", - "code id_token", - "id_token token", - "code token", - "code id_token token" - ], - "response_modes_supported": [ - "query", - "fragment", - "form_post" - ], - "grant_types_supported": [ - "authorization_code", - "refresh_token", - "client_credentials", - "urn:ietf:params:oauth:grant-type:jwt-bearer", - "implicit", - "password", - "srv_challenge", - "urn:ietf:params:oauth:grant-type:device_code", - "device_code" - ], - "subject_types_supported": [ - "pairwise" - ], - "scopes_supported": [ - "aza", - "logon_cert", - "profile", - ".default", - "vpn_cert", - "email", - "openid", - "allatclaims", - "user_impersonation", - "winhello_cert" - ], - "id_token_signing_alg_values_supported": [ - "RS256" - ], - "token_endpoint_auth_signing_alg_values_supported": [ - "RS256" - ], - "access_token_issuer": "https://fake.adfs.local/adfs/eae0822e-4c1b-41cf-8d9e-6bddf440029c/", - "claims_supported": [ - "aud", - "iss", - "iat", - "exp", - "auth_time", - "nonce", - "at_hash", - "c_hash", - "sub", - "upn", - "unique_name", - "pwd_url", - "pwd_exp", - "mfa_auth_time", - "sid", - "nbf" - ], - "microsoft_multi_refresh_token": true, - "userinfo_endpoint": "https://fake.adfs.local/adfs/userinfo", - "capabilities": [ - "kdf_ver2" - ], - "end_session_endpoint": "https://fake.adfs.local/adfs/oauth2/logout", - "as_access_token_token_binding_supported": false, - "as_refresh_token_token_binding_supported": false, - "resource_access_token_token_binding_supported": false, - "op_id_token_token_binding_supported": false, - "rp_id_token_token_binding_supported": false, - "frontchannel_logout_supported": true, - "frontchannel_logout_session_supported": true, - "device_authorization_endpoint": "https://fake.adfs.local/adfs/oauth2/devicecode" - } - }, - { - "RequestUri": "https://fake.adfs.local/adfs/oauth2/token/", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Content-Length": "2", - "Content-Type": "application/x-www-form-urlencoded; charset=utf-8", - "User-Agent": "azsdk-go-azidentity/v1.3.0-beta.3 (go1.19.3; Windows_NT)" - }, - "RequestBody": {}, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store", - "Content-Length": "2500", - "Content-Security-Policy": "default-src \u0027self\u0027 \u0027unsafe-inline\u0027 \u0027unsafe-eval\u0027; img-src \u0027self\u0027 data:;", - "Content-Type": "application/json; charset=UTF-8", - "Date": "Mon, 30 Jan 2023 17:47:07 GMT", - "Pragma": "no-cache", - "Server": "Microsoft-HTTPAPI/2.0", - "Strict-Transport-Security": "max-age = 31536000", - "X-Content-Type-Options": "nosniff", - "X-XSS-Protection": "1; mode=block" - }, - "ResponseBody": { - "access_token": "redacted", - "token_type": "bearer", - "expires_in": 3600, - "resource": "https://adminmanagement.adfs.redmond.selfhost.local/eae0822e-4c1b-41cf-8d9e-6bddf440029c", - "refresh_token": "redacted", - "refresh_token_expires_in": 143999, - "scope": "profile openid https://fake.adfs.local/fake-scope/.default", - "id_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6InRoYUE3NzlSUlZvRWNwWmp5VnlKNXZhMm1oSSIsImtpZCI6InRoYUE3NzlSUlZvRWNwWmp5VnlKNXZhMm1oSSJ9.eyJhdWQiOiIxOTUwYTI1OC0yMjdiLTRlMzEtYTljZi03MTc0OTU5NDVmYzIiLCJpc3MiOiJodHRwczovL2FkZnMucmVkbW9uZC5henVyZXN0YWNrLmNvcnAubWljcm9zb2Z0LmNvbS9hZGZzL2VhZTA4MjJlLTRjMWItNDFjZi04ZDllLTZiZGRmNDQwMDI5Yy8iLCJpYXQiOjE2NzUxMDA4MjcsIm5iZiI6MTY3NTEwMDgyNywiZXhwIjoxNjc1MTA0NDI3LCJhdXRoX3RpbWUiOjE2NzUxMDA4MjcsInN1YiI6IllKRDVqQ0V2OHlzU0dsc0RSUGprd1ZQdkJPKzl4UGd3dXlJZ283NEkrNGs9Iiwic2lkIjoiUy0xLTUtMjEtMjc3NTU5MDAyNy0xMjk3MjE4MTQ3LTE2NzM5NDYwOTgtMTI4MSIsInVwbiI6IkNsb3VkQWRtaW5AcmVkbW9uZC5zZWxmaG9zdC5sb2NhbCIsInVuaXF1ZV9uYW1lIjoiQ2xvdWRBZG1pbkByZWRtb25kLnNlbGZob3N0LmxvY2FsIiwib2lkIjoiUy0xLTUtMjEtMjc3NTU5MDAyNy0xMjk3MjE4MTQ3LTE2NzM5NDYwOTgtMTI4MSIsInRpZCI6ImVhZTA4MjJlLTRjMWItNDFjZi04ZDllLTZiZGRmNDQwMDI5YyIsImdyb3VwcyI6WyJTLTEtNS0yMS0yNzc1NTkwMDI3LTEyOTcyMTgxNDctMTY3Mzk0NjA5OC01MTMiLCJTLTEtMS0wIiwiUy0xLTUtMzItNTQ1IiwiUy0xLTUtMiIsIlMtMS01LTExIiwiUy0xLTUtMTUiLCJTLTEtMTgtMSIsIlMtMS01LTIxLTI3NzU1OTAwMjctMTI5NzIxODE0Ny0xNjczOTQ2MDk4LTE1Njc0IiwiUy0xLTUtMjEtMjc3NTU5MDAyNy0xMjk3MjE4MTQ3LTE2NzM5NDYwOTgtMTEzOCJdLCJnaXZlbl9uYW1lIjoiQ2xvdWRBZG1pbiIsImFwcGlkYWNyIjoiMCIsImF1dGhtZXRob2QiOiJ1cm46b2FzaXM6bmFtZXM6dGM6U0FNTDoyLjA6YWM6Y2xhc3NlczpQYXNzd29yZFByb3RlY3RlZFRyYW5zcG9ydCIsIkFwcElkIjoiMTk1MGEyNTgtMjI3Yi00ZTMxLWE5Y2YtNzE3NDk1OTQ1ZmMyIiwiYXBwdHlwZSI6IlB1YmxpYyIsImFwcGlkIjoiMTk1MGEyNTgtMjI3Yi00ZTMxLWE5Y2YtNzE3NDk1OTQ1ZmMyIiwidmVyIjoiMS4wIiwic2NwIjoicHJvZmlsZSBvcGVuaWQgLmRlZmF1bHQifQ.huIhjZORvIa2NMGzCfbTT_9Ju23g3SZmmm4XaR3YmUqmjnI5sbMGCQsAD2jSuxH4VYIm3pU9RRqH3Ohsy17kSaeZSj28nXRQDq2-92_O-p75RMrSq6RUhiKxANjhKD6v6jI9r1X5EFtpzkW_Cd9q5oqcEApvvVdGiSZkD5mT_07YxZ9omuHnGDTS5ff-sUBAHnu0tki6D5uX06_YKAx2qbArS1PnGR8MxyyVnUHc4FaEPPApKPLrPVueYurAb4W61cY52-Szxrql6Vz193RP8_IE7c7cgLAmF8f5ETKodr4nuJpTUcKxlykt-hkB99PC2Tm2b-Bl2TkIZqR9Fw1CfI5Uvr4nsNcxuPErKGsxriPf_wesxNUVpUXl3KO_t43iipvgN5w0l6xrktZxxkaMNY_5tT9aJOzMO2PDGlFC5_tA6GjQY_xCBFsqRAepaKysl6ZuYamtmWAVpdY7b_AYTUVKDK7CgP2Ua17UUp0l9fxJ7IPj1wxdsrGs-NhB_hz6lRzin0voA4oPN_zhVGuWJmreCX6hAFsEp6Ke7aqZb-pygRUiqyXqabFjz07jGh3YtqCJhzWz1-OnRoEjxEzsU1EHvDVLVqPmTrchpZUOi_oretBoSemhz3lYIbC8FfdCbPNp1FiFDv7KnGBKo1bNGsaK6eoPTOo8jx16h5MCWN4" - } - } - ], - "Variables": {} -} diff --git a/sdk/azidentity/testdata/recordings/TestUsernamePasswordCredential_InvalidPasswordLive.json b/sdk/azidentity/testdata/recordings/TestUsernamePasswordCredential_InvalidPasswordLive.json deleted file mode 100644 index bf384f61707a..000000000000 --- a/sdk/azidentity/testdata/recordings/TestUsernamePasswordCredential_InvalidPasswordLive.json +++ /dev/null @@ -1,255 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https%3A%2F%2Flogin.microsoftonline.com%2Ffake-tenant%2Foauth2%2Fv2.0%2Fauthorize", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Methods": "GET, OPTIONS", - "Access-Control-Allow-Origin": "*", - "Cache-Control": "max-age=86400, private", - "Content-Length": "955", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:14 GMT", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMCAAAAAUigdkOAAAAT6t2KAMAAAAJIoHZDgAAAA; expires=Wed, 23-Feb-2022 22:41:15 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - EUS ProdSlices", - "x-ms-request-id": "15e446e1-6762-4833-a890-6e8e1531d300" - }, - "ResponseBody": { - "tenant_discovery_endpoint": "https://login.microsoftonline.com/fake-tenant/v2.0/.well-known/openid-configuration", - "api-version": "1.1", - "metadata": [ - { - "preferred_network": "login.microsoftonline.com", - "preferred_cache": "login.windows.net", - "aliases": [ - "login.microsoftonline.com", - "login.windows.net", - "login.microsoft.com", - "sts.windows.net" - ] - }, - { - "preferred_network": "login.partner.microsoftonline.cn", - "preferred_cache": "login.partner.microsoftonline.cn", - "aliases": [ - "login.partner.microsoftonline.cn", - "login.chinacloudapi.cn" - ] - }, - { - "preferred_network": "login.microsoftonline.de", - "preferred_cache": "login.microsoftonline.de", - "aliases": [ - "login.microsoftonline.de" - ] - }, - { - "preferred_network": "login.microsoftonline.us", - "preferred_cache": "login.microsoftonline.us", - "aliases": [ - "login.microsoftonline.us", - "login.usgovcloudapi.net" - ] - }, - { - "preferred_network": "login-us.microsoftonline.com", - "preferred_cache": "login-us.microsoftonline.com", - "aliases": [ - "login-us.microsoftonline.com" - ] - } - ] - } - }, - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/v2.0/.well-known/openid-configuration", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Methods": "GET, OPTIONS", - "Access-Control-Allow-Origin": "*", - "Cache-Control": "max-age=86400, private", - "Content-Length": "1578", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:14 GMT", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMCAAAAAUigdkOAAAAT6t2KAMAAAAJIoHZDgAAAA; expires=Wed, 23-Feb-2022 22:41:15 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - NCUS ProdSlices", - "x-ms-request-id": "a4be07f0-9bbb-43a2-8435-3ac090bf5300" - }, - "ResponseBody": { - "token_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "token_endpoint_auth_methods_supported": [ - "client_secret_post", - "private_key_jwt", - "client_secret_basic" - ], - "jwks_uri": "https://login.microsoftonline.com/fake-tenant/discovery/v2.0/keys", - "response_modes_supported": [ - "query", - "fragment", - "form_post" - ], - "subject_types_supported": [ - "pairwise" - ], - "id_token_signing_alg_values_supported": [ - "RS256" - ], - "response_types_supported": [ - "code", - "id_token", - "code id_token", - "id_token token" - ], - "scopes_supported": [ - "openid", - "profile", - "email", - "offline_access" - ], - "issuer": "https://login.microsoftonline.com/fake-tenant/v2.0", - "request_uri_parameter_supported": false, - "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", - "authorization_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/authorize", - "device_authorization_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/devicecode", - "http_logout_supported": true, - "frontchannel_logout_supported": true, - "end_session_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/logout", - "claims_supported": [ - "sub", - "iss", - "cloud_instance_name", - "cloud_instance_host_name", - "cloud_graph_host_name", - "msgraph_host", - "aud", - "exp", - "iat", - "auth_time", - "acr", - "nonce", - "preferred_username", - "name", - "tid", - "ver", - "at_hash", - "c_hash", - "email" - ], - "kerberos_endpoint": "https://login.microsoftonline.com/fake-tenant/kerberos", - "tenant_region_scope": "NA", - "cloud_instance_name": "microsoftonline.com", - "cloud_graph_host_name": "graph.windows.net", - "msgraph_host": "graph.microsoft.com", - "rbac_url": "https://pas.windows.net" - } - }, - { - "RequestUri": "https://login.microsoftonline.com/common/UserRealm/fake@user?api-version=1.0", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Disposition": "inline; filename=userrealm.json", - "Content-Length": "184", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:15 GMT", - "Expires": "-1", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Pragma": "no-cache", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMCAAAAAUigdkOAAAAT6t2KAMAAAAJIoHZDgAAAA; expires=Wed, 23-Feb-2022 22:41:15 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - EUS ProdSlices", - "x-ms-request-id": "fd83906d-505d-49f7-9332-0832e22a9300" - }, - "ResponseBody": { - "ver": "1.0", - "account_type": "Managed", - "domain_name": "azuresdkoutlook.onmicrosoft.com", - "cloud_instance_name": "microsoftonline.com", - "cloud_audience_urn": "urn:federation:MicrosoftOnline" - } - }, - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "RequestMethod": "POST", - "RequestHeaders": { - ":method": "POST", - "Accept-Encoding": "gzip", - "Content-Length": "2", - "Content-Type": "application/x-www-form-urlencoded; charset=utf-8", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": {}, - "StatusCode": 400, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Length": "495", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:15 GMT", - "Expires": "-1", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Pragma": "no-cache", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMCAAAAAUigdkOAAAAT6t2KAQAAAAJIoHZDgAAAA; expires=Wed, 23-Feb-2022 22:41:16 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - SCUS ProdSlices", - "x-ms-request-id": "be3e1080-9e7f-418d-9c32-dc42cdf2d400" - }, - "ResponseBody": { - "error": "invalid_grant", - "error_description": "AADSTS50126: Error validating credentials due to invalid username or password.\r\nTrace ID: be3e1080-9e7f-418d-9c32-dc42cdf2d400\r\nCorrelation ID: e4caccbc-1ab2-43f8-a4b4-c74b9a94c87a\r\nTimestamp: 2022-01-24 22:41:16Z", - "error_codes": [ - 50126 - ], - "timestamp": "2022-01-24 22:41:16Z", - "trace_id": "be3e1080-9e7f-418d-9c32-dc42cdf2d400", - "correlation_id": "e4caccbc-1ab2-43f8-a4b4-c74b9a94c87a", - "error_uri": "https://login.microsoftonline.com/error?code=50126" - } - } - ], - "Variables": {} -} diff --git a/sdk/azidentity/testdata/recordings/TestUsernamePasswordCredential_Live/default_options.json b/sdk/azidentity/testdata/recordings/TestUsernamePasswordCredential_Live/default_options.json deleted file mode 100644 index 2b0a987d6949..000000000000 --- a/sdk/azidentity/testdata/recordings/TestUsernamePasswordCredential_Live/default_options.json +++ /dev/null @@ -1,255 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https%3A%2F%2Flogin.microsoftonline.com%2Ffake-tenant%2Foauth2%2Fv2.0%2Fauthorize", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Methods": "GET, OPTIONS", - "Access-Control-Allow-Origin": "*", - "Cache-Control": "max-age=86400, private", - "Content-Length": "955", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:14 GMT", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMCAAAAAUigdkOAAAAT6t2KAIAAAAJIoHZDgAAAA; expires=Wed, 23-Feb-2022 22:41:15 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - SCUS ProdSlices", - "x-ms-request-id": "044645a7-5a09-4968-9c61-129a6a81b700" - }, - "ResponseBody": { - "tenant_discovery_endpoint": "https://login.microsoftonline.com/fake-tenant/v2.0/.well-known/openid-configuration", - "api-version": "1.1", - "metadata": [ - { - "preferred_network": "login.microsoftonline.com", - "preferred_cache": "login.windows.net", - "aliases": [ - "login.microsoftonline.com", - "login.windows.net", - "login.microsoft.com", - "sts.windows.net" - ] - }, - { - "preferred_network": "login.partner.microsoftonline.cn", - "preferred_cache": "login.partner.microsoftonline.cn", - "aliases": [ - "login.partner.microsoftonline.cn", - "login.chinacloudapi.cn" - ] - }, - { - "preferred_network": "login.microsoftonline.de", - "preferred_cache": "login.microsoftonline.de", - "aliases": [ - "login.microsoftonline.de" - ] - }, - { - "preferred_network": "login.microsoftonline.us", - "preferred_cache": "login.microsoftonline.us", - "aliases": [ - "login.microsoftonline.us", - "login.usgovcloudapi.net" - ] - }, - { - "preferred_network": "login-us.microsoftonline.com", - "preferred_cache": "login-us.microsoftonline.com", - "aliases": [ - "login-us.microsoftonline.com" - ] - } - ] - } - }, - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/v2.0/.well-known/openid-configuration", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Methods": "GET, OPTIONS", - "Access-Control-Allow-Origin": "*", - "Cache-Control": "max-age=86400, private", - "Content-Length": "1578", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:14 GMT", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMCAAAAAUigdkOAAAAT6t2KAIAAAAJIoHZDgAAAA; expires=Wed, 23-Feb-2022 22:41:15 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - WUS2 ProdSlices", - "x-ms-request-id": "95797be6-852c-44d4-8e27-64da4c0fa000" - }, - "ResponseBody": { - "token_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "token_endpoint_auth_methods_supported": [ - "client_secret_post", - "private_key_jwt", - "client_secret_basic" - ], - "jwks_uri": "https://login.microsoftonline.com/fake-tenant/discovery/v2.0/keys", - "response_modes_supported": [ - "query", - "fragment", - "form_post" - ], - "subject_types_supported": [ - "pairwise" - ], - "id_token_signing_alg_values_supported": [ - "RS256" - ], - "response_types_supported": [ - "code", - "id_token", - "code id_token", - "id_token token" - ], - "scopes_supported": [ - "openid", - "profile", - "email", - "offline_access" - ], - "issuer": "https://login.microsoftonline.com/fake-tenant/v2.0", - "request_uri_parameter_supported": false, - "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", - "authorization_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/authorize", - "device_authorization_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/devicecode", - "http_logout_supported": true, - "frontchannel_logout_supported": true, - "end_session_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/logout", - "claims_supported": [ - "sub", - "iss", - "cloud_instance_name", - "cloud_instance_host_name", - "cloud_graph_host_name", - "msgraph_host", - "aud", - "exp", - "iat", - "auth_time", - "acr", - "nonce", - "preferred_username", - "name", - "tid", - "ver", - "at_hash", - "c_hash", - "email" - ], - "kerberos_endpoint": "https://login.microsoftonline.com/fake-tenant/kerberos", - "tenant_region_scope": "NA", - "cloud_instance_name": "microsoftonline.com", - "cloud_graph_host_name": "graph.windows.net", - "msgraph_host": "graph.microsoft.com", - "rbac_url": "https://pas.windows.net" - } - }, - { - "RequestUri": "https://login.microsoftonline.com/common/UserRealm/fake@user?api-version=1.0", - "RequestMethod": "GET", - "RequestHeaders": { - ":method": "GET", - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Disposition": "inline; filename=userrealm.json", - "Content-Length": "184", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:14 GMT", - "Expires": "-1", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Pragma": "no-cache", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMCAAAAAUigdkOAAAAT6t2KAIAAAAJIoHZDgAAAA; expires=Wed, 23-Feb-2022 22:41:15 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - EUS ProdSlices", - "x-ms-request-id": "3f05cebe-06a6-44f9-a3b9-93c43025a400" - }, - "ResponseBody": { - "ver": "1.0", - "account_type": "Managed", - "domain_name": "azuresdkoutlook.onmicrosoft.com", - "cloud_instance_name": "microsoftonline.com", - "cloud_audience_urn": "urn:federation:MicrosoftOnline" - } - }, - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "RequestMethod": "POST", - "RequestHeaders": { - ":method": "POST", - "Accept-Encoding": "gzip", - "Content-Length": "2", - "Content-Type": "application/x-www-form-urlencoded; charset=utf-8", - "User-Agent": "azsdk-go-azidentity/v0.13.1 azsdk-go-azcore/v0.21.0 (go1.17.6; linux)" - }, - "RequestBody": {}, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Length": "1673", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 24 Jan 2022 22:41:14 GMT", - "Expires": "-1", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Pragma": "no-cache", - "Set-Cookie": [ - "fpc=Ak0y6QLJ6d1DnAxcmiQedwBKXQmMCAAAAAUigdkOAAAAT6t2KAMAAAAJIoHZDgAAAA; expires=Wed, 23-Feb-2022 22:41:15 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", - "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.12261.22 - NCUS ProdSlices", - "x-ms-request-id": "a4be07f0-9bbb-43a2-8435-3ac07fbf5300" - }, - "ResponseBody": { - "token_type": "Bearer", - "scope": "https://management.core.windows.net//user_impersonation https://management.core.windows.net//.default", - "expires_in": 4697, - "ext_expires_in": 4697, - "access_token": "redacted", - "refresh_token": "redacted", - "foci": "1", - "id_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6Imwzc1EtNTBjQ0g0eEJWWkxIVEd3blNSNzY4MCJ9.eyJhdWQiOiIwNGIwNzc5NS04ZGRiLTQ2MWEtYmJlZS0wMmY5ZTFiZjdiNDYiLCJpc3MiOiJodHRwczovL2xvZ2luLm1pY3Jvc29mdG9ubGluZS5jb20vYzU0ZmFjODgtM2RkMy00NjFmLWE3YzQtOGEzNjhlMDM0MGIzL3YyLjAiLCJpYXQiOjE2MzcxOTEyMTIsIm5iZiI6MTYzNzE5MTIxMiwiZXhwIjoxNjM3MTk1MTEyLCJhaW8iOiJBVVFBdS84VEFBQUFQMExOZGNRUXQxNmJoSkFreXlBdjFoUGJuQVhtT0o3RXJDVHV4N0hNTjhHd2VMb2FYMWR1cDJhQ2Y0a0p5bDFzNmovSzF5R05DZmVIQlBXM21QUWlDdz09IiwiaWRwIjoiaHR0cHM6Ly9zdHMud2luZG93cy5uZXQvZTBiZDIzMjEtMDdmYS00Y2YwLTg3YjgtMDBhYTJhNzQ3MzI5LyIsIm5hbWUiOiJJZGVudGl0eSBUZXN0IFVzZXIiLCJwcmVmZXJyZWRfdXNlcm5hbWUiOiJpZGVudGl0eXRlc3R1c2VyQGF6dXJlc2Rrb3V0bG9vay5vbm1pY3Jvc29mdC5jb20iLCJyaCI6IjAuQVMwQWlLeFB4ZE05SDBhbnhJbzJqZ05BczVWM3NBVGJqUnBHdS00Qy1lR19lMFl0QUxFLiIsInN1YiI6ImMxYTBsY2xtbWxCYW9wc0MwVmlaLVpPMjFCT2dSUXE3SG9HRUtOOXloZnMiLCJ0aWQiOiJjNTRmYWM4OC0zZGQzLTQ2MWYtYTdjNC04YTM2OGUwMzQwYjMiLCJ1dGkiOiI5TXFOSWI5WjdrQy1QVHRtai11X0FBIiwidmVyIjoiMi4wIn0.hh5Exz9MBjTXrTuTZnz7vceiuQjcC_oRSTeBIC9tYgSO2c2sqQRpZi91qBZFQD9okayLPPKcwqXgEJD9p0-c4nUR5UQN7YSeDLmYtZUYMG79EsA7IMiQaiy94AyIe2E-oBDcLwFycGwh1iIOwwOwjbanmu2Dx3HfQx831lH9uVjagf0Aow0wTkTVCsedGSZvG-cRUceFLj-kFN-feFH3NuScuOfLR2Magf541pJda7X7oStwL_RNUFqjJFTdsiFV4e-VHK5qo--3oPU06z0rS9bosj0pFSATIVHrrS4gY7jiSvgMbG837CDBQkz5b08GUN5GlLN9jlygl1plBmbgww", - "client_info": "eyJ1aWQiOiJjNzNjNmYyOC1hZTVmLTQxM2QtYTlhMi1lMTFlNWFmNjY4ZjgiLCJ1dGlkIjoiZTBiZDIzMjEtMDdmYS00Y2YwLTg3YjgtMDBhYTJhNzQ3MzI5In0" - } - } - ], - "Variables": {} -} diff --git a/sdk/azidentity/testdata/recordings/TestUsernamePasswordCredential_Live/instance_discovery_disabled.json b/sdk/azidentity/testdata/recordings/TestUsernamePasswordCredential_Live/instance_discovery_disabled.json deleted file mode 100644 index e804558be7f3..000000000000 --- a/sdk/azidentity/testdata/recordings/TestUsernamePasswordCredential_Live/instance_discovery_disabled.json +++ /dev/null @@ -1,177 +0,0 @@ -{ - "Entries": [ - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/v2.0/.well-known/openid-configuration", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v1.3.0-beta.3 (go1.19.3; linux)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Access-Control-Allow-Methods": "GET, OPTIONS", - "Access-Control-Allow-Origin": "*", - "Cache-Control": "max-age=86400, private", - "Content-Length": "1578", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 31 Jan 2023 00:44:57 GMT", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Set-Cookie": [ - "fpc=Ais9pGCFGF9Ft4kncpqhZpU; expires=Thu, 02-Mar-2023 00:44:57 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.14526.6 - WUS2 ProdSlices", - "x-ms-request-id": "eaf946b1-4fc5-48ac-a04f-f4e692091500", - "X-XSS-Protection": "0" - }, - "ResponseBody": { - "token_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "token_endpoint_auth_methods_supported": [ - "client_secret_post", - "private_key_jwt", - "client_secret_basic" - ], - "jwks_uri": "https://login.microsoftonline.com/fake-tenant/discovery/v2.0/keys", - "response_modes_supported": [ - "query", - "fragment", - "form_post" - ], - "subject_types_supported": [ - "pairwise" - ], - "id_token_signing_alg_values_supported": [ - "RS256" - ], - "response_types_supported": [ - "code", - "id_token", - "code id_token", - "id_token token" - ], - "scopes_supported": [ - "openid", - "profile", - "email", - "offline_access" - ], - "issuer": "https://login.microsoftonline.com/fake-tenant/v2.0", - "request_uri_parameter_supported": false, - "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", - "authorization_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/authorize", - "device_authorization_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/devicecode", - "http_logout_supported": true, - "frontchannel_logout_supported": true, - "end_session_endpoint": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/logout", - "claims_supported": [ - "sub", - "iss", - "cloud_instance_name", - "cloud_instance_host_name", - "cloud_graph_host_name", - "msgraph_host", - "aud", - "exp", - "iat", - "auth_time", - "acr", - "nonce", - "preferred_username", - "name", - "tid", - "ver", - "at_hash", - "c_hash", - "email" - ], - "kerberos_endpoint": "https://login.microsoftonline.com/fake-tenant/kerberos", - "tenant_region_scope": "NA", - "cloud_instance_name": "microsoftonline.com", - "cloud_graph_host_name": "graph.windows.net", - "msgraph_host": "graph.microsoft.com", - "rbac_url": "https://pas.windows.net" - } - }, - { - "RequestUri": "https://login.microsoftonline.com/common/UserRealm/fake@user?api-version=1.0", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "User-Agent": "azsdk-go-azidentity/v1.3.0-beta.3 (go1.19.3; linux)" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Disposition": "inline; filename=userrealm.json", - "Content-Length": "184", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 31 Jan 2023 00:44:57 GMT", - "Expires": "-1", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Pragma": "no-cache", - "Set-Cookie": [ - "fpc=Ais9pGCFGF9Ft4kncpqhZpU; expires=Thu, 02-Mar-2023 00:44:57 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.14526.6 - WUS2 ProdSlices", - "x-ms-request-id": "eaf946b1-4fc5-48ac-a04f-f4e697091500", - "X-XSS-Protection": "0" - }, - "ResponseBody": { - "ver": "1.0", - "account_type": "Managed", - "domain_name": "azuresdkoutlook.onmicrosoft.com", - "cloud_instance_name": "microsoftonline.com", - "cloud_audience_urn": "urn:federation:MicrosoftOnline" - } - }, - { - "RequestUri": "https://login.microsoftonline.com/fake-tenant/oauth2/v2.0/token", - "RequestMethod": "POST", - "RequestHeaders": { - "Accept-Encoding": "gzip", - "Content-Length": "2", - "Content-Type": "application/x-www-form-urlencoded; charset=utf-8", - "User-Agent": "azsdk-go-azidentity/v1.3.0-beta.3 (go1.19.3; linux)" - }, - "RequestBody": {}, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-store, no-cache", - "Content-Length": "1673", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 31 Jan 2023 00:44:57 GMT", - "Expires": "-1", - "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", - "Pragma": "no-cache", - "Set-Cookie": [ - "fpc=Ais9pGCFGF9Ft4kncpqhZpVPq3YoAQAAAIlbatsOAAAA; expires=Thu, 02-Mar-2023 00:44:58 GMT; path=/; secure; HttpOnly; SameSite=None", - "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly" - ], - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "X-Content-Type-Options": "nosniff", - "x-ms-ests-server": "2.1.14357.8 - SCUS ProdSlices", - "x-ms-request-id": "767fe140-950b-475d-82c3-495050418b01", - "X-XSS-Protection": "0" - }, - "ResponseBody": { - "token_type": "Bearer", - "scope": "https://management.core.windows.net//user_impersonation https://management.core.windows.net//.default", - "expires_in": 5162, - "ext_expires_in": 5162, - "access_token": "redacted", - "refresh_token": "redacted", - "foci": "1", - "id_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6Ii1LSTNROW5OUjdiUm9meG1lWm9YcWJIWkdldyJ9.eyJhdWQiOiIwNGIwNzc5NS04ZGRiLTQ2MWEtYmJlZS0wMmY5ZTFiZjdiNDYiLCJpc3MiOiJodHRwczovL2xvZ2luLm1pY3Jvc29mdG9ubGluZS5jb20vZTBiZDIzMjEtMDdmYS00Y2YwLTg3YjgtMDBhYTJhNzQ3MzI5L3YyLjAiLCJpYXQiOjE2NzUxMjU1OTcsIm5iZiI6MTY3NTEyNTU5NywiZXhwIjoxNjc1MTI5NDk3LCJhaW8iOiJBVFFBeS84VEFBQUF1TVliellTOWgzOU5nN3YxV2wzOXhOdGxRWUtNejUvNjhNSHE1VXI3VUVTck14NnB3WFZsdTRmblJJZlZsanVGIiwibmFtZSI6IklkZW50aXR5IFRlc3QgVXNlciIsIm9pZCI6ImM3M2M2ZjI4LWFlNWYtNDEzZC1hOWEyLWUxMWU1YWY2NjhmOCIsInByZWZlcnJlZF91c2VybmFtZSI6ImlkZW50aXR5dGVzdHVzZXJAYXp1cmVzZGtvdXRsb29rLm9ubWljcm9zb2Z0LmNvbSIsInB1aWQiOiIxMDAzMjAwMTY1QzkwODU2IiwicmgiOiIwLkFWQUFJU085NFBvSDhFeUh1QUNxS25SektaVjNzQVRialJwR3UtNEMtZUdfZTBaUUFMRS4iLCJzdWIiOiJqUk5kRVZ2b0t4YW1GdzFoZEF4WHQzR216UXlOdU5YM3U5eEFyMFJqTDZnIiwidGlkIjoiZTBiZDIzMjEtMDdmYS00Y2YwLTg3YjgtMDBhYTJhNzQ3MzI5IiwidXRpIjoiUU9GX2RndVZYVWVDdzBsUVVFR0xBUSIsInZlciI6IjIuMCJ9.P2QWT0omgERZzaTt54Y7juKB3nmJIQ4Ixq0umMFYKeV1VvOQC52Uf9NBzQgVM_60bVwn8A9I2b6Jhg2HyKoR6n6yfIPKB4SjeZC2EtYVRCX0c1CpSNaXLzxMk5lFGIC-CJW_dNu_twjkrlwhS_5Oz_qiNQIaRicUm_sdprSXbsi1IhGvrkA0mnZOUIPpoquyZMxU1QjDMgp5rnGPUtMJ-02i1HA275yU1p0rd0x0q_kxB-u9i-fw58ScPI3UpUr_811LVsJkA_UFal_jcdZqHbwqm7x8SheOUG48AqkB5vMlA264k_X-jrQh_8xp9qmsnLI2V_91RE_nBFNOyEh5Fw", - "client_info": "eyJ1aWQiOiJjNzNjNmYyOC1hZTVmLTQxM2QtYTlhMi1lMTFlNWFmNjY4ZjgiLCJ1dGlkIjoiZTBiZDIzMjEtMDdmYS00Y2YwLTg3YjgtMDBhYTJhNzQ3MzI5In0" - } - } - ], - "Variables": {} -} \ No newline at end of file